vendor: 9,612 bytes, line 1
1function wA(e,t){for(var s=0;s<t.length;s++){const i=t[s];if(typeof i!="string"&&!Array.isArray(i)){for(const o in i)if(o!=="default"&&!(o in e)){const c=Object.getOwnPropertyDescriptor(i,o);c&&Object.defineProperty(e,o,c.get?c:{enumerable:!0,get:()=>i[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))i(o);new MutationObserver(o=>{for(const c of o)if(c.type==="childList")for(const u of c.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&i(u)}).observe(document,{childList:!0,subtree:!0});function s(o){const c={};return o.integrity&&(c.integrity=o.integrity),o.referrerPolicy&&(c.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?c.credentials="include":o.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function i(o){if(o.ep)return;o.ep=!0;const c=s(o);fetch(o.href,c)}})();function AN(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var kp={exports:{}},uc={};var dw;function jA(){if(dw)return uc;dw=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function s(i,o,c){var u=null;if(c!==void 0&&(u=""+c),o.key!==void 0&&(u=""+o.key),"key"in o){c={};for(var f in o)f!=="key"&&(c[f]=o[f])}else c=o;return o=c.ref,{$$typeof:e,type:i,key:u,ref:o!==void 0?o:null,props:c}}return uc.Fragment=t,uc.jsx=s,uc.jsxs=s,uc}var uw;function NA(){return uw||(uw=1,kp.exports=jA()),kp.exports}var a=NA(),Tp={exports:{}},fc={},Ep={exports:{}},Mp={};var fw;function SA(){return fw||(fw=1,(function(e){function t(I,H){var $=I.length;I.push(H);e:for(;0<$;){var re=$-1>>>1,me=I[re];if(0<o(me,H))I[re]=H,I[$]=me,$=re;else break e}}function s(I){return I.length===0?null:I[0]}function i(I){if(I.length===0)return null;var H=I[0],$=I.pop();if($!==H){I[0]=$;e:for(var re=0,me=I.length,L=me>>>1;re<L;){var K=2*(re+1)-1,J=I[K],oe=K+1,pe=I[oe];if(0>o(J,$))oe<me&&0>o(pe,J)?(I[re]=pe,I[oe]=$,re=oe):(I[re]=J,I[K]=$,re=K);else if(oe<me&&0>o(pe,$))I[re]=pe,I[oe]=$,re=oe;else break e}}return H}function o(I,H){var $=I.sortIndex-H.sortIndex;return $!==0?$:I.id-H.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;e.unstable_now=function(){return c.now()}}else{var u=Date,f=u.now();e.unstable_now=function(){return u.now()-f}}var h=[],m=[],x=1,y=null,b=3,w=!1,C=!1,j=!1,S=!1,T=typeof setTimeout=="function"?setTimeout:null,M=typeof clearTimeout=="function"?clearTimeout:null,k=typeof setImmediate<"u"?setImmediate:null;function R(I){for(var H=s(m);H!==null;){if(H.callback===null)i(m);else if(H.startTime<=I)i(m),H.sortIndex=H.expirationTime,t(h,H);else break;H=s(m)}}function D(I){if(j=!1,R(I),!C)if(s(h)!==null)C=!0,P||(P=!0,ce());else{var H=s(m);H!==null&&ie(D,H.startTime-I)}}var P=!1,O=-1,_=5,G=-1;function ne(){return S?!0:!(e.unstable_now()-G<_)}function se(){if(S=!1,P){var I=e.unstable_now();G=I;var H=!0;try{e:{C=!1,j&&(j=!1,M(O),O=-1),w=!0;var $=b;try{t:{for(R(I),y=s(h);y!==null&&!(y.expirationTime>I&&ne());){var re=y.callback;if(typeof re=="function"){y.callback=null,b=y.priorityLevel;var me=re(y.expirationTime<=I);if(I=e.unstable_now(),typeof me=="function"){y.callback=me,R(I),H=!0;break t}y===s(h)&&i(h),R(I)}else i(h);y=s(h)}if(y!==null)H=!0;else{var L=s(m);L!==null&&ie(D,L.startTime-I),H=!1}}break e}finally{y=null,b=$,w=!1}H=void 0}}finally{H?ce():P=!1}}}var ce;if(typeof k=="function")ce=function(){k(se)};else if(typeof MessageChannel<"u"){var Z=new MessageChannel,F=Z.port2;Z.port1.onmessage=se,ce=function(){F.postMessage(null)}}else ce=function(){T(se,0)};function ie(I,H){O=T(function(){I(e.unstable_now())},H)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(I){I.callback=null},e.unstable_forceFrameRate=function(I){0>I||125<I?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):_=0<I?Math.floor(1e3/I):5},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_next=function(I){switch(b){case 1:case 2:case 3:var H=3;break;default:H=b}var $=b;b=H;try{return I()}finally{b=$}},e.unstable_requestPaint=function(){S=!0},e.unstable_runWithPriority=function(I,H){switch(I){case 1:case 2:case 3:case 4:case 5:break;default:I=3}var $=b;b=I;try{return H()}finally{b=$}},e.unstable_scheduleCallback=function(I,H,$){var re=e.unstable_now();switch(typeof $=="object"&&$!==null?($=$.delay,$=typeof $=="number"&&0<$?re+$:re):$=re,I){case 1:var me=-1;break;case 2:me=250;break;case 5:me=1073741823;break;case 4:me=1e4;break;default:me=5e3}return me=$+me,I={id:x++,callback:H,priorityLevel:I,startTime:$,expirationTime:me,sortIndex:-1},$>re?(I.sortIndex=$,t(m,I),s(h)===null&&I===s(m)&&(j?(M(O),O=-1):j=!0,ie(D,$-re))):(I.sortIndex=me,t(h,I),C||w||(C=!0,P||(P=!0,ce()))),I},e.unstable_shouldYield=ne,e.unstable_wrapCallback=function(I){var H=b;return function(){var $=b;b=H;try{return I.apply(this,arguments)}finally{b=$}}}})(Mp)),Mp}var hw;function CA(){return hw||(hw=1,Ep.exports=SA()),Ep.exports}var Ap={exports:{}},Be={};var mw;function kA(){if(mw)return Be;mw=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),u=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),b=Symbol.iterator;function w(L){return L===null||typeof L!="object"?null:(L=b&&L[b]||L["@@iterator"],typeof L=="function"?L:null)}var C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},j=Object.assign,S={};function T(L,K,J){this.props=L,this.context=K,this.refs=S,this.updater=J||C}T.prototype.isReactComponent={},T.prototype.setState=function(L,K){if(typeof L!="object"&&typeof L!="function"&&L!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,L,K,"setState")},T.prototype.forceUpdate=function(L){this.updater.enqueueForceUpdate(this,L,"forceUpdate")};function M(){}M.prototype=T.prototype;function k(L,K,J){this.props=L,this.context=K,this.refs=S,this.updater=J||C}var R=k.prototype=new M;R.constructor=k,j(R,T.prototype),R.isPureReactComponent=!0;var D=Array.isArray;function P(){}var O={H:null,A:null,T:null,S:null},_=Object.prototype.hasOwnProperty;function G(L,K,J){var oe=J.ref;return{$$typeof:e,type:L,key:K,ref:oe!==void 0?oe:null,props:J}}function ne(L,K){return G(L.type,K,L.props)}function se(L){return typeof L=="object"&&L!==null&&L.$$typeof===e}function ce(L){var K={"=":"=0",":":"=2"};return"$"+L.replace(/[=:]/g,function(J){return K[J]})}var Z=/\/+/g;function F(L,K){return typeof L=="object"&&L!==null&&L.key!=null?ce(""+L.key):K.toString(36)}function ie(L){switch(L.status){case"fulfilled":return L.value;case"rejected":throw L.reason;default:switch(typeof L.status=="string"?L.then(P,P):(L.status="pending",L.then(function(K){L.status==="pending"&&(L.status="fulfilled",L.value=K)},function(K){L.status==="pending"&&(L.status="rejected",L.reason=K)})),L.status){case"fulfilled":return L.value;case"rejected":throw L.reason}}throw L}function I(L,K,J,oe,pe){var we=typeof L;(we==="undefined"||we==="boolean")&&(L=null);var ee=!1;if(L===null)ee=!0;else switch(we){case"bigint":case"string":case"number":ee=!0;break;case"object":switch(L.$$typeof){case e:case t:ee=!0;break;case x:return ee=L._init,I(ee(L._payload),K,J,oe,pe)}}if(ee)return pe=pe(L),ee=oe===""?"."+F(L,0):oe,D(pe)?(J="",ee!=null&&(J=ee.replace(Z,"$&/")+"/"),I(pe,K,J,"",function(_e){return _e})):pe!=null&&(se(pe)&&(pe=ne(pe,J+(pe.key==null||L&&L.key===pe.key?"":(""+pe.key).replace(Z,"$&/")+"/")+ee)),K.push(pe)),1;ee=0;var Me=oe===""?".":oe+":";if(D(L))for(var Ce=0;Ce<L.length;Ce++)oe=L[Ce],we=Me+F(oe,Ce),ee+=I(oe,K,J,we,pe);else if(Ce=w(L),typeof Ce=="function")for(L=Ce.call(L),Ce=0;!(oe=L.next()).done;)oe=oe.value,we=Me+F(oe,Ce++),ee+=I(oe,K,J,we,pe);else if(we==="object"){if(typeof L.then=="function")return I(ie(L),K,J,oe,pe);throw K=String(L),Error("Objects are not valid as a React child (found: "+(K==="[object Object]"?"object with keys {"+Object.keys(L).join(", ")+"}":K)+"). If you meant to render a collection of children, use an array instead.")}return ee}function H(L,K,J){if(L==null)return L;var oe=[],pe=0;return I(L,oe,"","",function(we){return K.call(J,we,pe++)}),oe}function $(L){if(L._status===-1){var K=L._result;K=K(),K.then(function(J){(L._status===0||L._status===-1)&&(L._status=1,L._result=J)},function(J){(L._status===0||L._status===-1)&&(L._status=2,L._result=J)}),L._status===-1&&(L._status=0,L._result=K)}if(L._status===1)return L._result.default;throw L._result}var re=typeof reportError=="function"?reportError:function(L){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var K=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof L=="object"&&L!==null&&typeof L.message=="string"?String(L.message):String(L),error:L});if(!window.dispatchEvent(K))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",L);return}console.error(L)}
vendor: 10,597 bytes, line 1
1,me={map:H,forEach:function(L,K,J){H(L,function(){K.apply(this,arguments)},J)},count:function(L){var K=0;return H(L,function(){K++}),K},toArray:function(L){return H(L,function(K){return K})||[]},only:function(L){if(!se(L))throw Error("React.Children.only expected to receive a single React element child.");return L}};return Be.Activity=y,Be.Children=me,Be.Component=T,Be.Fragment=s,Be.Profiler=o,Be.PureComponent=k,Be.StrictMode=i,Be.Suspense=h,Be.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=O,Be.__COMPILER_RUNTIME={__proto__:null,c:function(L){return O.H.useMemoCache(L)}},Be.cache=function(L){return function(){return L.apply(null,arguments)}},Be.cacheSignal=function(){return null},Be.cloneElement=function(L,K,J){if(L==null)throw Error("The argument must be a React element, but you passed "+L+".");var oe=j({},L.props),pe=L.key;if(K!=null)for(we in K.key!==void 0&&(pe=""+K.key),K)!_.call(K,we)||we==="key"||we==="__self"||we==="__source"||we==="ref"&&K.ref===void 0||(oe[we]=K[we]);var we=arguments.length-2;if(we===1)oe.children=J;else if(1<we){for(var ee=Array(we),Me=0;Me<we;Me++)ee[Me]=arguments[Me+2];oe.children=ee}return G(L.type,pe,oe)},Be.createContext=function(L){return L={$$typeof:u,_currentValue:L,_currentValue2:L,_threadCount:0,Provider:null,Consumer:null},L.Provider=L,L.Consumer={$$typeof:c,_context:L},L},Be.createElement=function(L,K,J){var oe,pe={},we=null;if(K!=null)for(oe in K.key!==void 0&&(we=""+K.key),K)_.call(K,oe)&&oe!=="key"&&oe!=="__self"&&oe!=="__source"&&(pe[oe]=K[oe]);var ee=arguments.length-2;if(ee===1)pe.children=J;else if(1<ee){for(var Me=Array(ee),Ce=0;Ce<ee;Ce++)Me[Ce]=arguments[Ce+2];pe.children=Me}if(L&&L.defaultProps)for(oe in ee=L.defaultProps,ee)pe[oe]===void 0&&(pe[oe]=ee[oe]);return G(L,we,pe)},Be.createRef=function(){return{current:null}},Be.forwardRef=function(L){return{$$typeof:f,render:L}},Be.isValidElement=se,Be.lazy=function(L){return{$$typeof:x,_payload:{_status:-1,_result:L},_init:$}},Be.memo=function(L,K){return{$$typeof:m,type:L,compare:K===void 0?null:K}},Be.startTransition=function(L){var K=O.T,J={};O.T=J;try{var oe=L(),pe=O.S;pe!==null&&pe(J,oe),typeof oe=="object"&&oe!==null&&typeof oe.then=="function"&&oe.then(P,re)}catch(we){re(we)}finally{K!==null&&J.types!==null&&(K.types=J.types),O.T=K}},Be.unstable_useCacheRefresh=function(){return O.H.useCacheRefresh()},Be.use=function(L){return O.H.use(L)},Be.useActionState=function(L,K,J){return O.H.useActionState(L,K,J)},Be.useCallback=function(L,K){return O.H.useCallback(L,K)},Be.useContext=function(L){return O.H.useContext(L)},Be.useDebugValue=function(){},Be.useDeferredValue=function(L,K){return O.H.useDeferredValue(L,K)},Be.useEffect=function(L,K){return O.H.useEffect(L,K)},Be.useEffectEvent=function(L){return O.H.useEffectEvent(L)},Be.useId=function(){return O.H.useId()},Be.useImperativeHandle=function(L,K,J){return O.H.useImperativeHandle(L,K,J)},Be.useInsertionEffect=function(L,K){return O.H.useInsertionEffect(L,K)},Be.useLayoutEffect=function(L,K){return O.H.useLayoutEffect(L,K)},Be.useMemo=function(L,K){return O.H.useMemo(L,K)},Be.useOptimistic=function(L,K){return O.H.useOptimistic(L,K)},Be.useReducer=function(L,K,J){return O.H.useReducer(L,K,J)},Be.useRef=function(L){return O.H.useRef(L)},Be.useState=function(L){return O.H.useState(L)},Be.useSyncExternalStore=function(L,K,J){return O.H.useSyncExternalStore(L,K,J)},Be.useTransition=function(){return O.H.useTransition()},Be.version="19.2.0",Be}var pw;function Df(){return pw||(pw=1,Ap.exports=kA()),Ap.exports}var Dp={exports:{}},bn={};var gw;function TA(){if(gw)return bn;gw=1;var e=Df();function t(h){var m="https://react.dev/errors/"+h;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var x=2;x<arguments.length;x++)m+="&args[]="+encodeURIComponent(arguments[x])}return"Minified React error #"+h+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var i={d:{f:s,r:function(){throw Error(t(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},o=Symbol.for("react.portal");function c(h,m,x){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:y==null?null:""+y,children:h,containerInfo:m,implementation:x}}var u=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(h,m){if(h==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return bn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,bn.createPortal=function(h,m){var x=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(t(299));return c(h,m,null,x)},bn.flushSync=function(h){var m=u.T,x=i.p;try{if(u.T=null,i.p=2,h)return h()}finally{u.T=m,i.p=x,i.d.f()}},bn.preconnect=function(h,m){typeof h=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,i.d.C(h,m))},bn.prefetchDNS=function(h){typeof h=="string"&&i.d.D(h)},bn.preinit=function(h,m){if(typeof h=="string"&&m&&typeof m.as=="string"){var x=m.as,y=f(x,m.crossOrigin),b=typeof m.integrity=="string"?m.integrity:void 0,w=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;x==="style"?i.d.S(h,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:y,integrity:b,fetchPriority:w}):x==="script"&&i.d.X(h,{crossOrigin:y,integrity:b,fetchPriority:w,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},bn.preinitModule=function(h,m){if(typeof h=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var x=f(m.as,m.crossOrigin);i.d.M(h,{crossOrigin:x,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&i.d.M(h)},bn.preload=function(h,m){if(typeof h=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var x=m.as,y=f(x,m.crossOrigin);i.d.L(h,x,{crossOrigin:y,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},bn.preloadModule=function(h,m){if(typeof h=="string")if(m){var x=f(m.as,m.crossOrigin);i.d.m(h,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:x,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else i.d.m(h)},bn.requestFormReset=function(h){i.d.r(h)},bn.unstable_batchedUpdates=function(h,m){return h(m)},bn.useFormState=function(h,m,x){return u.H.useFormState(h,m,x)},bn.useFormStatus=function(){return u.H.useHostTransitionStatus()},bn.version="19.2.0",bn}var xw;function DN(){if(xw)return Dp.exports;xw=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Dp.exports=TA(),Dp.exports}var yw;function EA(){if(yw)return fc;yw=1;var e=CA(),t=Df(),s=DN();function i(n){var r="https://react.dev/errors/"+n;if(1<arguments.length){r+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)r+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+n+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function c(n){var r=n,l=n;if(n.alternate)for(;r.return;)r=r.return;else{n=r;do r=n,(r.flags&4098)!==0&&(l=r.return),n=r.return;while(n)}return r.tag===3?l:null}function u(n){if(n.tag===13){var r=n.memoizedState;if(r===null&&(n=n.alternate,n!==null&&(r=n.memoizedState)),r!==null)return r.dehydrated}return null}function f(n){if(n.tag===31){var r=n.memoizedState;if(r===null&&(n=n.alternate,n!==null&&(r=n.memoizedState)),r!==null)return r.dehydrated}return null}function h(n){if(c(n)!==n)throw Error(i(188))}function m(n){var r=n.alternate;if(!r){if(r=c(n),r===null)throw Error(i(188));return r!==n?null:n}for(var l=n,d=r;;){var g=l.return;if(g===null)break;var v=g.alternate;if(v===null){if(d=g.return,d!==null){l=d;continue}break}if(g.child===v.child){for(v=g.child;v;){if(v===l)return h(g),n;if(v===d)return h(g),r;v=v.sibling}throw Error(i(188))}if(l.return!==d.return)l=g,d=v;else{for(var N=!1,A=g.child;A;){if(A===l){N=!0,l=g,d=v;break}if(A===d){N=!0,d=g,l=v;break}A=A.sibling}if(!N){for(A=v.child;A;){if(A===l){N=!0,l=v,d=g;break}if(A===d){N=!0,d=v,l=g;break}A=A.sibling}if(!N)throw Error(i(189))}}if(l.alternate!==d)throw Error(i(190))}if(l.tag!==3)throw Error(i(188));return l.stateNode.current===l?n:r}function x(n){var r=n.tag;if(r===5||r===26||r===27||r===6)return n;for(n=n.child;n!==null;){if(r=x(n),r!==null)return r;n=n.sibling}return null}var y=Object.assign,b=Symbol.for("react.element"),w=Symbol.for("react.transitional.element"),C=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),M=Symbol.for("react.consumer"),k=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),D=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),O=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),G=Symbol.for("react.activity"),ne=Symbol.for("react.memo_cache_sentinel"),se=Symbol.iterator;function ce(n){return n===null||typeof n!="object"?null:(n=se&&n[se]||n["@@iterator"],typeof n=="function"?n:null)}var Z=Symbol.for("react.client.reference");function F(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===Z?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case j:return"Fragment";case T:return"Profiler";case S:return"StrictMode";case D:return"Suspense";case P:return"SuspenseList";case G:return"Activity"}if(typeof n=="object")switch(n.$$typeof){case C:return"Portal";case k:return n.displayName||"Context";case M:return(n._context.displayName||"Context")+".Consumer";case R:var r=n.render;return n=n.displayName,n||(n=r.displayName||r.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case O:return r=n.displayName||null,r!==null?r:F(n.type)||"Memo";case _:r=n._payload,n=n._init;try{return F(n(r))}catch{}}return null}var ie=Array.isArray,I=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$={pen
vendor: 4,216 bytes, lines 1-8
1ding:!1,data:null,method:null,action:null},re=[],me=-1;function L(n){return{current:n}}function K(n){0>me||(n.current=re[me],re[me]=null,me--)}function J(n,r){me++,re[me]=n.current,n.current=r}var oe=L(null),pe=L(null),we=L(null),ee=L(null);function Me(n,r){switch(J(we,r),J(pe,n),J(oe,null),r.nodeType){case 9:case 11:n=(n=r.documentElement)&&(n=n.namespaceURI)?R1(n):0;break;default:if(n=r.tagName,r=r.namespaceURI)r=R1(r),n=_1(r,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}K(oe),J(oe,n)}function Ce(){K(oe),K(pe),K(we)}function _e(n){n.memoizedState!==null&&J(ee,n);var r=oe.current,l=_1(r,n.type);r!==l&&(J(pe,n),J(oe,l))}function Ve(n){pe.current===n&&(K(oe),K(pe)),ee.current===n&&(K(ee),oc._currentValue=$)}var Pe,Tt;function St(n){if(Pe===void 0)try{throw Error()}catch(l){var r=l.stack.trim().match(/\n( *(at )?)/);Pe=r&&r[1]||"",Tt=-1<l.stack.indexOf(` 2 at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return` 3`+Pe+n+Tt}var Fe=!1;function ge(n,r){if(!n||Fe)return"";Fe=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var d={DetermineComponentFrameRoot:function(){try{if(r){var te=function(){throw Error()};if(Object.defineProperty(te.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(te,[])}catch(Y){var W=Y}Reflect.construct(n,[],te)}else{try{te.call()}catch(Y){W=Y}n.call(te.prototype)}}else{try{throw Error()}catch(Y){W=Y}(te=n())&&typeof te.catch=="function"&&te.catch(function(){})}}catch(Y){if(Y&&W&&typeof Y.stack=="string")return[Y.stack,W.stack]}return[null,null]}};d.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var g=Object.getOwnPropertyDescriptor(d.DetermineComponentFrameRoot,"name");g&&g.configurable&&Object.defineProperty(d.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var v=d.DetermineComponentFrameRoot(),N=v[0],A=v[1];if(N&&A){var z=N.split(` 4`),q=A.split(` 5`);for(g=d=0;d<z.length&&!z[d].includes("DetermineComponentFrameRoot");)d++;for(;g<q.length&&!q[g].includes("DetermineComponentFrameRoot");)g++;if(d===z.length||g===q.length)for(d=z.length-1,g=q.length-1;1<=d&&0<=g&&z[d]!==q[g];)g--;for(;1<=d&&0<=g;d--,g--)if(z[d]!==q[g]){if(d!==1||g!==1)do if(d--,g--,0>g||z[d]!==q[g]){var Q=` 6`+z[d].replace(" at new "," at ");return n.displayName&&Q.includes("<anonymous>")&&(Q=Q.replace("<anonymous>",n.displayName)),Q}while(1<=d&&0<=g);break}}}finally{Fe=!1,Error.prepareStackTrace=l}return(l=n?n.displayName||n.name:"")?St(l):""}function st(n,r){switch(n.tag){case 26:case 27:case 5:return St(n.type);case 16:return St("Lazy");case 13:return n.child!==r&&r!==null?St("Suspense Fallback"):St("Suspense");case 19:return St("SuspenseList");case 0:case 15:return ge(n.type,!1);case 11:return ge(n.type.render,!1);case 1:return ge(n.type,!0);case 31:return St("Activity");default:return""}}function xa(n){try{var r="",l=null;do r+=st(n,l),l=n,n=n.return;while(n);return r}catch(d){return` 7Error generating stack: `+d.message+` 8`+d.stack}}var Ns=Object.prototype.hasOwnProperty,as=e.unstable_scheduleCallback,Ss=e.unstable_cancelCallback,un=e.unstable_shouldYield,is=e.unstable_requestPaint,Ot=e.unstable_now,ya=e.unstable_getCurrentPriorityLevel,Fn=e.unstable_ImmediatePriority,Cs=e.unstable_UserBlockingPriority,ks=e.unstable_NormalPriority,ei=e.unstable_LowPriority,ti=e.unstable_IdlePriority,va=e.log,ba=e.unstable_setDisableYieldValue,rs=null,ue=null;function $e(n){if(typeof va=="function"&&ba(n),ue&&typeof ue.setStrictMode=="function")try{ue.setStrictMode(rs,n)}catch{}}var at=Math.clz32?Math.clz32:Ke,Sn=Math.log,ze=Math.LN2;function Ke(n){return n>>>=0,n===0?32:31-(Sn(n)/ze|0)|0}var Oe=256,rt=262144,Yt=4194304;function qe(n){var r=n&42;if(r!==0)return r;switch(n&-n){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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return n&261888;case 262144:case 524288:case 1048576:case 2097152:return n&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return n&62914560;case 67108864:return 67108864;
vendor: 6,949 bytes, line 8
8case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return n}}function ni(n,r,l){var d=n.pendingLanes;if(d===0)return 0;var g=0,v=n.suspendedLanes,N=n.pingedLanes;n=n.warmLanes;var A=d&134217727;return A!==0?(d=A&~v,d!==0?g=qe(d):(N&=A,N!==0?g=qe(N):l||(l=A&~n,l!==0&&(g=qe(l))))):(A=d&~v,A!==0?g=qe(A):N!==0?g=qe(N):l||(l=d&~n,l!==0&&(g=qe(l)))),g===0?0:r!==0&&r!==g&&(r&v)===0&&(v=g&-g,l=r&-r,v>=l||v===32&&(l&4194048)!==0)?r:g}function wa(n,r){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&r)===0}function Vr(n,r){switch(n){case 1:case 2:case 4:case 8:case 64:return r+250;case 16:case 32: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 r+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function ja(){var n=Yt;return Yt<<=1,(Yt&62914560)===0&&(Yt=4194304),n}function qs(n){for(var r=[],l=0;31>l;l++)r.push(n);return r}function Ki(n,r){n.pendingLanes|=r,r!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function wl(n,r,l,d,g,v){var N=n.pendingLanes;n.pendingLanes=l,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=l,n.entangledLanes&=l,n.errorRecoveryDisabledLanes&=l,n.shellSuspendCounter=0;var A=n.entanglements,z=n.expirationTimes,q=n.hiddenUpdates;for(l=N&~l;0<l;){var Q=31-at(l),te=1<<Q;A[Q]=0,z[Q]=-1;var W=q[Q];if(W!==null)for(q[Q]=null,Q=0;Q<W.length;Q++){var Y=W[Q];Y!==null&&(Y.lane&=-536870913)}l&=~te}d!==0&&pd(n,d,0),v!==0&&g===0&&n.tag!==0&&(n.suspendedLanes|=v&~(N&~r))}function pd(n,r,l){n.pendingLanes|=r,n.suspendedLanes&=~r;var d=31-at(r);n.entangledLanes|=r,n.entanglements[d]=n.entanglements[d]|1073741824|l&261930}function gd(n,r){var l=n.entangledLanes|=r;for(n=n.entanglements;l;){var d=31-at(l),g=1<<d;g&r|n[d]&r&&(n[d]|=r),l&=~g}}function xd(n,r){var l=r&-r;return l=(l&42)!==0?1:E(l),(l&(n.suspendedLanes|r))!==0?0:l}function E(n){switch(n){case 2:n=1;break;case 8:n=4;break;case 32:n=16;break;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:n=128;break;case 268435456:n=134217728;break;default:n=0}return n}function fe(n){return n&=-n,2<n?8<n?(n&134217727)!==0?32:268435456:8:2}function je(){var n=H.p;return n!==0?n:(n=window.event,n===void 0?32:sw(n.type))}function ct(n,r){var l=H.p;try{return H.p=n,r()}finally{H.p=l}}var ft=Math.random().toString(36).slice(2),Ct="__reactFiber$"+ft,Ee="__reactProps$"+ft,Et="__reactContainer$"+ft,Vt="__reactEvents$"+ft,rn="__reactListeners$"+ft,yh="__reactHandles$"+ft,jl="__reactResources$"+ft,An="__reactMarker$"+ft;function $r(n){delete n[Ct],delete n[Ee],delete n[Vt],delete n[rn],delete n[yh]}function si(n){var r=n[Ct];if(r)return r;for(var l=n.parentNode;l;){if(r=l[Et]||l[Ct]){if(l=r.alternate,r.child!==null||l!==null&&l.child!==null)for(n=B1(n);n!==null;){if(l=n[Ct])return l;n=B1(n)}return r}n=l,l=n.parentNode}return null}function vn(n){if(n=n[Ct]||n[Et]){var r=n.tag;if(r===5||r===6||r===13||r===31||r===26||r===27||r===3)return n}return null}function Nl(n){var r=n.tag;if(r===5||r===26||r===27||r===6)return n.stateNode;throw Error(i(33))}function Br(n){var r=n[jl];return r||(r=n[jl]={hoistableStyles:new Map,hoistableScripts:new Map}),r}function on(n){n[An]=!0}var wy=new Set,jy={};function Qi(n,r){Fr(n,r),Fr(n+"Capture",r)}function Fr(n,r){for(jy[n]=r,n=0;n<r.length;n++)wy.add(r[n])}var fE=RegExp("^[: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]*$"),Ny={},Sy={};function hE(n){return Ns.call(Sy,n)?!0:Ns.call(Ny,n)?!1:fE.test(n)?Sy[n]=!0:(Ny[n]=!0,!1)}function yd(n,r,l){if(hE(r))if(l===null)n.removeAttribute(r);else{switch(typeof l){case"undefined":case"function":case"symbol":n.removeAttribute(r);return;case"boolean":var d=r.toLowerCase().slice(0,5);if(d!=="data-"&&d!=="aria-"){n.removeAttribute(r);return}}n.setAttribute(r,""+l)}}function vd(n,r,l){if(l===null)n.removeAttribute(r);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(r);return}n.setAttribute(r,""+l)}}function Na(n,r,l,d){if(d===null)n.removeAttribute(l);else{switch(typeof d){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(l);return}n.setAttributeNS(r,l,""+d)}}function os(n){switch(typeof n){case"bigint":case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function Cy(n){var r=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function mE(n,r,l){var d=Object.getOwnPropertyDescriptor(n.constructor.prototype,r);if(!n.hasOwnProperty(r)&&typeof d<"u"&&typeof d.get=="function"&&typeof d.set=="function"){var g=d.get,v=d.set;return Object.defineProperty(n,r,{configurable:!0,get:function(){return g.call(this)},set:function(N){l=""+N,v.call(this,N)}}),Object.defineProperty(n,r,{enumerable:d.enumerable}),{getValue:function(){return l},setValue:function(N){l=""+N},stopTracking:function(){n._valueTracker=null,delete n[r]}}}}function vh(n){if(!n._valueTracker){var r=Cy(n)?"checked":"value";n._valueTracker=mE(n,r,""+n[r])}}function ky(n){if(!n)return!1;var r=n._valueTracker;if(!r)return!0;var l=r.getValue(),d="";return n&&(d=Cy(n)?n.checked?"true":"false":n.value),n=d,n!==l?(r.setValue(n),!0):!1}function bd(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}var pE=/[\n"\\]/g;function ls(n){return n.replace(pE,function(r){return"\\"+r.charCodeAt(0).toString(16)+" "})}function bh(n,r,l,d,g,v,N,A){n.name="",N!=null&&typeof N!="function"&&typeof N!="symbol"&&typeof N!="boolean"?n.type=N:n.removeAttribute("type"),r!=null?N==="number"?(r===0&&n.value===""||n.value!=r)&&(n.value=""+os(r)):n.value!==""+os(r)&&(n.value=""+os(r)):N!=="submit"&&N!=="reset"||n.removeAttribute("value"),r!=null?wh(n,N,os(r)):l!=null?wh(n,N,os(l)):d!=null&&n.removeAttribute("value"),g==null&&v!=null&&(n.defaultChecked=!!v),g!=null&&(n.checked=g&&typeof g!="function"&&typeof g!="symbol"),A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"?n.name=""+os(A):n.removeAttribute("name")}function Ty(n,r,l,d,g,v,N,A){if(v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(n.type=v),r!=null||l!=null){if(!(v!=="submit"&&v!=="reset"||r!=null)){vh(n);return}
vendor: 5,349 bytes, line 8
8l=l!=null?""+os(l):"",r=r!=null?""+os(r):l,A||r===n.value||(n.value=r),n.defaultValue=r}d=d??g,d=typeof d!="function"&&typeof d!="symbol"&&!!d,n.checked=A?n.checked:!!d,n.defaultChecked=!!d,N!=null&&typeof N!="function"&&typeof N!="symbol"&&typeof N!="boolean"&&(n.name=N),vh(n)}function wh(n,r,l){r==="number"&&bd(n.ownerDocument)===n||n.defaultValue===""+l||(n.defaultValue=""+l)}function Hr(n,r,l,d){if(n=n.options,r){r={};for(var g=0;g<l.length;g++)r["$"+l[g]]=!0;for(l=0;l<n.length;l++)g=r.hasOwnProperty("$"+n[l].value),n[l].selected!==g&&(n[l].selected=g),g&&d&&(n[l].defaultSelected=!0)}else{for(l=""+os(l),r=null,g=0;g<n.length;g++){if(n[g].value===l){n[g].selected=!0,d&&(n[g].defaultSelected=!0);return}r!==null||n[g].disabled||(r=n[g])}r!==null&&(r.selected=!0)}}function Ey(n,r,l){if(r!=null&&(r=""+os(r),r!==n.value&&(n.value=r),l==null)){n.defaultValue!==r&&(n.defaultValue=r);return}n.defaultValue=l!=null?""+os(l):""}function My(n,r,l,d){if(r==null){if(d!=null){if(l!=null)throw Error(i(92));if(ie(d)){if(1<d.length)throw Error(i(93));d=d[0]}l=d}l==null&&(l=""),r=l}l=os(r),n.defaultValue=l,d=n.textContent,d===l&&d!==""&&d!==null&&(n.value=d),vh(n)}function Ur(n,r){if(r){var l=n.firstChild;if(l&&l===n.lastChild&&l.nodeType===3){l.nodeValue=r;return}}n.textContent=r}var gE=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Ay(n,r,l){var d=r.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?d?n.setProperty(r,""):r==="float"?n.cssFloat="":n[r]="":d?n.setProperty(r,l):typeof l!="number"||l===0||gE.has(r)?r==="float"?n.cssFloat=l:n[r]=(""+l).trim():n[r]=l+"px"}function Dy(n,r,l){if(r!=null&&typeof r!="object")throw Error(i(62));if(n=n.style,l!=null){for(var d in l)!l.hasOwnProperty(d)||r!=null&&r.hasOwnProperty(d)||(d.indexOf("--")===0?n.setProperty(d,""):d==="float"?n.cssFloat="":n[d]="");for(var g in r)d=r[g],r.hasOwnProperty(g)&&l[g]!==d&&Ay(n,g,d)}else for(var v in r)r.hasOwnProperty(v)&&Ay(n,v,r[v])}function jh(n){if(n.indexOf("-")===-1)return!1;switch(n){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 xE=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode
8-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),yE=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function wd(n){return yE.test(""+n)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":n}function Sa(){}var Nh=null;function Sh(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var qr=null,Wr=null;function Oy(n){var r=vn(n);if(r&&(n=r.stateNode)){var l=n[Ee]||null;e:switch(n=r.stateNode,r.type){case"input":if(bh(n,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),r=l.name,l.type==="radio"&&r!=null){for(l=n;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+ls(""+r)+'"][type="radio"]'),r=0;r<l.length;r++){var d=l[r];if(d!==n&&d.form===n.form){var g=d[Ee]||null;if(!g)throw Error(i(90));bh(d,g.value,g.defaultValue,g.defaultValue,g.checked,g.defaultChecked,g.type,g.name)}}for(r=0;r<l.length;r++)d=l[r],d.form===n.form&&ky(d)}break e;case"textarea":Ey(n,l.value,l.defaultValue);break e;case"select":r=l.value,r!=null&&Hr(n,!!l.multiple,r,!1)}}}var Ch=!1;function Ry(n,r,l){if(Ch)return n(r,l);Ch=!0;try{var d=n(r);return d}finally{if(Ch=!1,(qr!==null||Wr!==null)&&(lu(),qr&&(r=qr,n=Wr,Wr=qr=null,Oy(r),n)))for(r=0;r<n.length;r++)Oy(n[r])}}function Sl(n,r){var l=n.stateNode;if(l===null)return null;var d=l[Ee]||null;if(d===null)return null;l=d[r];e:switch(r){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(d=!d.disabled)||(n=n.type,d=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!d;break e;default:n=!1}if(n)return null;if(l&&typeof l!="function")throw Error(i(231,r,typeof l));return l}var Ca=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),kh=!1;if(Ca)try{var Cl={};Object.defineProperty(Cl,"passive",{get:function(){kh=!0}}),window.addEventListener("test",Cl,Cl),window.removeEventListener("test",Cl,Cl)}catch{kh=!1}var ai=null,Th=null,jd=null;function _y(){if(jd)return jd;var n,r=Th,l=r.length,d,g="value"in ai?ai.value:ai.textContent,v=g.length;for(n=0;n<l&&r[n]===g[n];n++);var N=l-n;for(d=1;d<=N&&r[l-d]===g[v-d];d++);return jd=g.slice(n,1<d?1-d:void 0)}function Nd(n){var r=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&r===13&&(n=13)):n=r,n===10&&(n=13),32<=n||n===13?n:0}function Sd(){return!0}function Py(){return!1}function Dn(n){function r(l,d,g,v,N){this._reactName=l,this._targetInst=g,this.type=d,this.nativeEvent=v,this.target=N,this.currentTarget=null;for(var A in n)n.hasOwnProperty(A)&&(l=n[A],this[A]=l?l(v):v[A]);return this.isDefaultPrevented=(v.defaultPrevented!=null?v.defaultPrevented:v.returnValue===!1)?Sd:Py,this.isPropagationStopped=Py,this}return y(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Sd)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Sd)},persist:function(){},isPersistent:Sd}),r}var Xi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Cd=Dn(Xi),kl=y({},Xi,{view:0,detail:0}),vE=Dn(kl),Eh,Mh,Tl,kd=y({},kl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Dh,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==Tl&&(Tl&&n.type==="mousemove"?(Eh=n.screenX-Tl.screenX,Mh=n.screenY-Tl.screenY):Mh=Eh=0,Tl=n),Eh)},movementY:function(n){return"movementY"in n?n.movementY:Mh}}),zy=Dn(kd),bE=y({},kd,{dataTransfer:0}),wE=Dn(bE),jE=y({},kl,{relatedTarget:0}),Ah=Dn(jE),NE=y({},Xi,{animationName:0,elapsedTime:0,pseudoElement:0}),SE=Dn(NE),CE=y({},Xi,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),kE=Dn(CE),TE=y({},Xi,{data:0}),Ly=Dn(TE),EE={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ME={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"},AE={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function DE(n){var r=this.nativeEvent;return r.getModifierState?r.getModifierState(n):(n=AE[n])?!!r[n]:!1}function Dh(){return DE}var OE=y({},kl,{key:function(n){if(n.key){var r=EE[n.key]||n.key;if(r!=="Unidentified")return r}
vendor: 5,186 bytes, line 8
8return n.type==="keypress"?(n=Nd(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?ME[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Dh,charCode:function(n){return n.type==="keypress"?Nd(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?Nd(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),RE=Dn(OE),_E=y({},kd,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Iy=Dn(_E),PE=y({},kl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Dh}),zE=Dn(PE),LE=y({},Xi,{propertyName:0,elapsedTime:0,pseudoElement:0}),IE=Dn(LE),VE=y({},kd,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),$E=Dn(VE),BE=y({},Xi,{newState:0,oldState:0}),FE=Dn(BE),HE=[9,13,27,32],Oh=Ca&&"CompositionEvent"in window,El=null;Ca&&"documentMode"in document&&(El=document.documentMode);var UE=Ca&&"TextEvent"in window&&!El,Vy=Ca&&(!Oh||El&&8<El&&11>=El),$y=" ",By=!1;function Fy(n,r){switch(n){case"keyup":return HE.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Hy(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var Gr=!1;function qE(n,r){switch(n){case"compositionend":return Hy(r);case"keypress":return r.which!==32?null:(By=!0,$y);case"textInput":return n=r.data,n===$y&&By?null:n;default:return null}}function WE(n,r){if(Gr)return n==="compositionend"||!Oh&&Fy(n,r)?(n=_y(),jd=Th=ai=null,Gr=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(r.ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(r.char&&1<r.char.length)return r.char;if(r.which)return String.fromCharCode(r.which)}return null;case"compositionend":return Vy&&r.locale!=="ko"?null:r.data;default:return null}}var GE={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 Uy(n){var r=n&&n.nodeName&&n.nodeName.toLowerCase();return r==="input"?!!GE[n.type]:r==="textarea"}function qy(n,r,l,d){qr?Wr?Wr.push(d):Wr=[d]:qr=d,r=pu(r,"onChange"),0<r.length&&(l=new Cd("onChange","change",null,l,d),n.push({event:l,listeners:r}))}var Ml=null,Al=null;function YE(n){T1(n,0)}function Td(n){var r=Nl(n);if(ky(r))return n}function Wy(n,r){if(n==="change")return r}var Gy=!1;if(Ca){var Rh;if(Ca){var _h="oninput"in document;if(!_h){var Yy=document.createElement("div");Yy.setAttribute("oninput","return;"),_h=typeof Yy.oninput=="function"}Rh=_h}else Rh=!1;Gy=Rh&&(!document.documentMode||9<document.documentMode)}function Ky(){Ml&&(Ml.detachEvent("onpropertychange",Qy),Al=Ml=null)}function Qy(n){if(n.propertyName==="value"&&Td(Al)){var r=[];qy(r,Al,n,Sh(n)),Ry(YE,r)}}function KE(n,r,l){n==="focusin"?(Ky(),Ml=r,Al=l,Ml.attachEvent("onpropertychange",Qy)):n==="focusout"&&Ky()}function QE(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return Td(Al)}function XE(n,r){if(n==="click")return Td(r)}function ZE(n,r){if(n==="input"||n==="change")return Td(r)}function JE(n,r){return n===r&&(n!==0||1/n===1/r)||n!==n&&r!==r}var Hn=typeof Object.is=="function"?Object.is:JE;function Dl(n,r){if(Hn(n,r))return!0;if(typeof n!="object"||n===null||typeof r!="object"||r===null)return!1;var l=Object.keys(n),d=Object.keys(r);if(l.length!==d.length)return!1;for(d=0;d<l.length;d++){var g=l[d];if(!Ns.call(r,g)||!Hn(n[g],r[g]))return!1}return!0}function Xy(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function Zy(n,r){var l=Xy(n);n=0;for(var d;l;){if(l.nodeType===3){if(d=n+l.textContent.length,n<=r&&d>=r)return{node:l,offset:r-n};n=d}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Xy(l)}}function Jy(n,r){return n&&r?n===r?!0:n&&n.nodeType===3?!1:r&&r.nodeType===3?Jy(n,r.parentNode):"contains"in n?n.contains(r):n.compareDocumentPosition?!!(n.compareDocumentPosition(r)&16):!1:!1}function ev(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var r=bd(n.document);r instanceof n.HTMLIFrameElement;){try{var l=typeof r.contentWindow.location.href=="string"}catch{l=!1}if(l)n=r.contentWindow;else break;r=bd(n.document)}return r}function Ph(n){var r=n&&n.nodeName&&n.nodeName.toLowerCase();return r&&(r==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||r==="textarea"||n.contentEditable==="true")}var eM=Ca&&"documentMode"in document&&11>=document.documentMode,Yr=null,zh=null,Ol=null,Lh=!1;function tv(n,r,l){var d=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Lh||Yr==null||Yr!==bd(d)||(d=Yr,"selectionStart"in d&&Ph(d)?d={start:d.selectionStart,end:d.selectionEnd}:(d=(d.ownerDocument&&d.ownerDocument.defaultView||window).getSelection(),d={anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focu
vendor: 10,559 bytes, line 8
8sNode:d.focusNode,focusOffset:d.focusOffset}),Ol&&Dl(Ol,d)||(Ol=d,d=pu(zh,"onSelect"),0<d.length&&(r=new Cd("onSelect","select",null,r,l),n.push({event:r,listeners:d}),r.target=Yr)))}function Zi(n,r){var l={};return l[n.toLowerCase()]=r.toLowerCase(),l["Webkit"+n]="webkit"+r,l["Moz"+n]="moz"+r,l}var Kr={animationend:Zi("Animation","AnimationEnd"),animationiteration:Zi("Animation","AnimationIteration"),animationstart:Zi("Animation","AnimationStart"),transitionrun:Zi("Transition","TransitionRun"),transitionstart:Zi("Transition","TransitionStart"),transitioncancel:Zi("Transition","TransitionCancel"),transitionend:Zi("Transition","TransitionEnd")},Ih={},nv={};Ca&&(nv=document.createElement("div").style,"AnimationEvent"in window||(delete Kr.animationend.animation,delete Kr.animationiteration.animation,delete Kr.animationstart.animation),"TransitionEvent"in window||delete Kr.transitionend.transition);function Ji(n){if(Ih[n])return Ih[n];if(!Kr[n])return n;var r=Kr[n],l;for(l in r)if(r.hasOwnProperty(l)&&l in nv)return Ih[n]=r[l];return n}var sv=Ji("animationend"),av=Ji("animationiteration"),iv=Ji("animationstart"),tM=Ji("transitionrun"),nM=Ji("transitionstart"),sM=Ji("transitioncancel"),rv=Ji("transitionend"),ov=new Map,Vh="abort auxClick beforeToggle 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(" ");Vh.push("scrollEnd");function Ts(n,r){ov.set(n,r),Qi(r,[n])}var Ed=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var r=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof n=="object"&&n!==null&&typeof n.message=="string"?String(n.message):String(n),error:n});if(!window.dispatchEvent(r))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)},cs=[],Qr=0,$h=0;function Md(){for(var n=Qr,r=$h=Qr=0;r<n;){var l=cs[r];cs[r++]=null;var d=cs[r];cs[r++]=null;var g=cs[r];cs[r++]=null;var v=cs[r];if(cs[r++]=null,d!==null&&g!==null){var N=d.pending;N===null?g.next=g:(g.next=N.next,N.next=g),d.pending=g}v!==0&&lv(l,g,v)}}function Ad(n,r,l,d){cs[Qr++]=n,cs[Qr++]=r,cs[Qr++]=l,cs[Qr++]=d,$h|=d,n.lanes|=d,n=n.alternate,n!==null&&(n.lanes|=d)}function Bh(n,r,l,d){return Ad(n,r,l,d),Dd(n)}function er(n,r){return Ad(n,null,null,r),Dd(n)}function lv(n,r,l){n.lanes|=l;var d=n.alternate;d!==null&&(d.lanes|=l);for(var g=!1,v=n.return;v!==null;)v.childLanes|=l,d=v.alternate,d!==null&&(d.childLanes|=l),v.tag===22&&(n=v.stateNode,n===null||n._visibility&1||(g=!0)),n=v,v=v.return;return n.tag===3?(v=n.stateNode,g&&r!==null&&(g=31-at(l),n=v.hiddenUpdates,d=n[g],d===null?n[g]=[r]:d.push(r),r.lane=l|536870912),v):null}function Dd(n){if(50<ec)throw ec=0,Qm=null,Error(i(185));for(var r=n.return;r!==null;)n=r,r=n.return;return n.tag===3?n.stateNode:null}var Xr={};function aM(n,r,l,d){this.tag=n,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=r,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=d,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Un(n,r,l,d){return new aM(n,r,l,d)}function Fh(n){return n=n.prototype,!(!n||!n.isReactComponent)}function ka(n,r){var l=n.alternate;return l===null?(l=Un(n.tag,r,n.key,n.mode),l.elementType=n.elementType,l.type=n.type,l.stateNode=n.stateNode,l.alternate=n,n.alternate=l):(l.pendingProps=r,l.type=n.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=n.flags&65011712,l.childLanes=n.childLanes,l.lanes=n.lanes,l.child=n.child,l.memoizedProps=n.memoizedProps,l.memoizedState=n.memoizedState,l.updateQueue=n.updateQueue,r=n.dependencies,l.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext},l.sibling=n.sibling,l.index=n.index,l.ref=n.ref,l.refCleanup=n.refCleanup,l}function cv(n,r){n.flags&=65011714;var l=n.alternate;return l===null?(n.childLanes=0,n.lanes=r,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null):(n.childLanes=l.childLanes,n.lanes=l.lanes,n.child=l.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=l.memoizedProps,n.memoizedState=l.memoizedState,n.updateQueue=l.updateQueue,n.type=l.type,r=l.dependencies,n.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),n}function Od(n,r,l,d,g,v){var N=0;if(d=n,typeof n=="function")Fh(n)&&(N=1);else if(typeof n=="string")N=cA(n,l,oe.current)?26:n==="html"||n==="head"||n==="body"?27:5;else e:switch(n){case G:return n=Un(31,l,r,g),n.elementType=G,n.lanes=v,n;case j:return tr(l.children,g,v,r);case S:N=8,g|=24;break;case T:return n=Un(12,l,r,g|2),n.elementType=T,n.lanes=v,n;case D:return n=Un(13,l,r,g),n.elementType=D,n.lanes=v,n;case P:return n=Un(19,l,r,g),n.elementType=P,n.lanes=v,n;default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case k:N=10;break e;case M:N=9;break e;case R:N=11;break e;case O:N=14;break e;case _:N=16,d=null;break e}N=29,l=Error(i(130,n===null?"null":typeof n,"")),d=null}return r=Un(N,l,r,g),r.elementType=n,r.type=d,r.lanes=v,r}function tr(n,r,l,d){return n=Un(7,n,d,r),n.lanes=l,n}function Hh(n,r,l){return n=Un(6,n,null,r),n.lanes=l,n}function dv(n){var r=Un(18,null,null,0);return r.stateNode=n,r}function Uh(n,r,l){return r=Un(4,n.children!==null?n.children:[],n.key,r),r.lanes=l,r.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},r}var uv=new WeakMap;function ds(n,r){if(typeof n=="object"&&n!==null){var l=uv.get(n);return l!==void 0?l:(r={value:n,source:r,stack:xa(r)},uv.set(n,r),r)}return{value:n,source:r,stack:xa(r)}}var Zr=[],Jr=0,Rd=null,Rl=0,us=[],fs=0,ii=null,Ws=1,Gs="";function Ta(n,r){Zr[Jr++]=Rl,Zr[Jr++]=Rd,Rd=n,Rl=r}function fv(n,r,l){us[fs++]=Ws,us[fs++]=Gs,us[fs++]=ii,ii=n;var d=Ws;n=Gs;var g=32-at(d)-1;d&=~(1<<g),l+=1;var v=32-at(r)+g;if(30<v){var N=g-g%5;v=(d&(1<<N)-1).toString(32),d>>=N,g-=N,Ws=1<<32-at(r)+g|l<<g|d,Gs=v+n}else Ws=1<<v|l<<g|d,Gs=n}function qh(n){n.return!==null&&(Ta(n,1),fv(n,1,0))}function Wh(n){for(;n===Rd;)Rd=Zr[--Jr],Zr[Jr]=null,Rl=Zr[--Jr],Zr[Jr]=null;for(;n===ii;)ii=us[--fs],us[fs]=null,Gs=us[--fs],us[fs]=null,Ws=us[--fs],us[fs]=null}function hv(n,r){us[fs++]=Ws,us[fs++]=Gs,us[fs++]=ii,Ws=r.id,Gs=r.overflow,ii=n}var fn=null,Mt=null,nt=!1,ri=null,hs=!1,Gh=Error(i(519));function oi(n){var r=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw _l(ds(r,n)),Gh}function mv(n){var r=n.stateNode,l=n.type,d=n.memoizedProps;switch(r[Ct]=n,r[Ee]=d,l){case"dialog":Je("cancel",r),Je("close",r);break;case"iframe":case"object":case"embed":Je("load",r);break;case"video":case"audio":for(l=0;l<nc.length;l++)Je(nc[l],r);break;case"source":Je("error",r);break;case"img":case"image":case"link":Je("error",r),Je("load",r);break;case"details":Je("toggle",r);break;case"input":Je("invalid",r),Ty(r,d.value,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name,!0);break;case"select":Je("invalid",r);break;case"textarea":Je("invalid",r),My(r,d.value,d.defaultValue,d.children)}l=d.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||r.textContent===""+l||d.suppressHydrationWarning===!0||D1(r.textContent,l)?(d.popover!=null&&(Je("beforetoggle",r),Je("toggle",r)),d.onScroll!=null&&Je("scroll",r),d.onScrollEnd!=null&&Je("scrollend",r),d.onClick!=null&&(r.onclick=Sa),r=!0):r=!1,r||oi(n,!0)}function pv(n){for(fn=n.return;fn;)switch(fn.tag){case 5:case 31:case 13:hs=!1;return;case 27:case 3:hs=!0;return;default:fn=fn.return}}function eo(n){if(n!==fn)return!1;if(!nt)return pv(n),nt=!0,!1;var r=n.tag,l;if((l=r!==3&&r!==27)&&((l=r===5)&&(l=n.type,l=!(l!=="form"&&l!=="button")||up(n.type,n.memoizedProps)),l=!l),l&&Mt&&oi(n),pv(n),r===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(i(317));Mt=$1(n)}else if(r===31){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(i(317));Mt=$1(n)}else r===27?(r=Mt,wi(n.type)?(n=gp,gp=null,Mt=n):Mt=r):Mt=fn?ps(n.stateNode.nextSibling):null;return!0}function nr(){Mt=fn=null,nt=!1}function Yh(){var n=ri;return n!==null&&(Pn===null?Pn=n:Pn.push.apply(Pn,n),ri=null),n}function _l(n){ri===null?ri=[n]:ri.push(n)}var Kh=L(null),sr=null,Ea=null;function li(n,r,l){J(Kh,r._currentValue),r._currentValue=l}function Ma(n){n._currentValue=Kh.current,K(Kh)}function Qh(n,r,l){for(;n!==null;){var d=n.alternate;if((n.childLanes&r)!==r?(n.childLanes|=r,d!==null&&(d.childLanes|=r)):d!==null&&(d.childLanes&r)!==r&&(d.childLanes|=r),n===l)break;n=n.return}}function Xh(n,r,l,d){var g=n.child;for(g!==null&&(g.return=n);g!==null;){var v=g.dependencies;if(v!==null){var N=g.child;v=v.firstContext;e:for(;v!==null;){var A=v;v=g;for(var z=0;z<r.length;z++)if(A.context===r[z]){v.lanes|=l,A=v.alternate,A!==null&&(A.lanes|=l),Qh(v.return,l,n),d||(N=null);break e}v=A.next}}else if(g.tag===18){if(N=g.return,N===null)throw Error(i(341));N.lanes|=l,v=N.alternate,v!==null&&(v.lanes|=l),Qh(N,l,n),N=null}else N=g.child;if(N!==null)N.return=g;else for(N=g;N!==null;){if(N===n){N=null;break}if(g=N.sibling,g!==null){g.return=N.return,N=g;break}N=N.return}g=N}}function to(n,r,l,d){n=null;for(var g=r,v=!1;g!==null;){if(!v){if((g.flags&524288)!==0)v=!0;else if((g.flags&262144)!==0)break}if(g.tag===10){var N=g.alternate;if(N===null)throw Error(i(387));if(N=N.memoizedProps,N!==null){var A=g.type;Hn(g.pendingProps.value,N.value)||(n!==null?n.push(A):n=[A])}}else if(g===ee.current){if(N=g.alternate,N===null)throw Error(i(387));N.memoizedState.memoizedState!==g.memoizedState.memoizedState&&(n!==null?n.push(oc):n=[oc])}g=g.return}n!==null&&Xh(r,n,l,d),r.flags|=262144}function _d(n){for(n=n.firstContext;n!==null;){if(!Hn(n.context._currentValue,n.memoizedValue))return!0;n=n.next}return!1}function ar(n){sr=n,Ea=null,n=n.dependencies,n!==null&&(n.firstContext=null)}function hn(n){return gv(sr,n)}function Pd(n,r){return sr===null&&ar(n),gv(n,r)}
vendor: 1,203 bytes, line 8
8function gv(n,r){var l=r._currentValue;if(r={context:r,memoizedValue:l,next:null},Ea===null){if(n===null)throw Error(i(308));Ea=r,n.dependencies={lanes:0,firstContext:r},n.flags|=524288}else Ea=Ea.next=r;return l}var iM=typeof AbortController<"u"?AbortController:function(){var n=[],r=this.signal={aborted:!1,addEventListener:function(l,d){n.push(d)}};this.abort=function(){r.aborted=!0,n.forEach(function(l){return l()})}},rM=e.unstable_scheduleCallback,oM=e.unstable_NormalPriority,Kt={$$typeof:k,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Zh(){return{controller:new iM,data:new Map,refCount:0}}function Pl(n){n.refCount--,n.refCount===0&&rM(oM,function(){n.controller.abort()})}var zl=null,Jh=0,no=0,so=null;function lM(n,r){if(zl===null){var l=zl=[];Jh=0,no=np(),so={status:"pending",value:void 0,then:function(d){l.push(d)}}}return Jh++,r.then(xv,xv),r}function xv(){if(--Jh===0&&zl!==null){so!==null&&(so.status="fulfilled");var n=zl;zl=null,no=0,so=null;for(var r=0;r<n.length;r++)(0,n[r])()}}function cM(n,r){var l=[],d={status:"pending",value:null,reason:null,then:function(g){l.push(g)}};return n.then(function(){d.status="fulfilled",d.value=r;
vendor: 4,478 bytes, line 8
8for(var g=0;g<l.length;g++)(0,l[g])(r)},function(g){for(d.status="rejected",d.reason=g,g=0;g<l.length;g++)(0,l[g])(void 0)}),d}var yv=I.S;I.S=function(n,r){t1=Ot(),typeof r=="object"&&r!==null&&typeof r.then=="function"&&lM(n,r),yv!==null&&yv(n,r)};var ir=L(null);function em(){var n=ir.current;return n!==null?n:jt.pooledCache}function zd(n,r){r===null?J(ir,ir.current):J(ir,r.pool)}function vv(){var n=em();return n===null?null:{parent:Kt._currentValue,pool:n}}var ao=Error(i(460)),tm=Error(i(474)),Ld=Error(i(542)),Id={then:function(){}};function bv(n){return n=n.status,n==="fulfilled"||n==="rejected"}function wv(n,r,l){switch(l=n[l],l===void 0?n.push(r):l!==r&&(r.then(Sa,Sa),r=l),r.status){case"fulfilled":return r.value;case"rejected":throw n=r.reason,Nv(n),n;default:if(typeof r.status=="string")r.then(Sa,Sa);else{if(n=jt,n!==null&&100<n.shellSuspendCounter)throw Error(i(482));n=r,n.status="pending",n.then(function(d){if(r.status==="pending"){var g=r;g.status="fulfilled",g.value=d}},function(d){if(r.status==="pending"){var g=r;g.status="rejected",g.reason=d}})}switch(r.status){case"fulfilled":return r.value;case"rejected":throw n=r.reason,Nv(n),n}throw or=r,ao}}function rr(n){try{var r=n._init;return r(n._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(or=l,ao):l}}var or=null;function jv(){if(or===null)throw Error(i(459));var n=or;return or=null,n}function Nv(n){if(n===ao||n===Ld)throw Error(i(483))}var io=null,Ll=0;function Vd(n){var r=Ll;return Ll+=1,io===null&&(io=[]),wv(io,n,r)}function Il(n,r){r=r.props.ref,n.ref=r!==void 0?r:null}function $d(n,r){throw r.$$typeof===b?Error(i(525)):(n=Object.prototype.toString.call(r),Error(i(31,n==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":n)))}function Sv(n){function r(B,V){if(n){var U=B.deletions;U===null?(B.deletions=[V],B.flags|=16):U.push(V)}}function l(B,V){if(!n)return null;for(;V!==null;)r(B,V),V=V.sibling;return null}function d(B){for(var V=new Map;B!==null;)B.key!==null?V.set(B.key,B):V.set(B.index,B),B=B.sibling;return V}function g(B,V){return B=ka(B,V),B.index=0,B.sibling=null,B}function v(B,V,U){return B.index=U,n?(U=B.alternate,U!==null?(U=U.index,U<V?(B.flags|=67108866,V):U):(B.flags|=67108866,V)):(B.flags|=1048576,V)}function N(B){return n&&B.alternate===null&&(B.flags|=67108866),B}function A(B,V,U,X){return V===null||V.tag!==6?(V=Hh(U,B.mode,X),V.return=B,V):(V=g(V,U),V.return=B,V)}function z(B,V,U,X){var ke=U.type;return ke===j?Q(B,V,U.props.children,X,U.key):V!==null&&(V.elementType===ke||typeof ke=="object"&&ke!==null&&ke.$$typeof===_&&rr(ke)===V.type)?(V=g(V,U.props),Il(V,U),V.return=B,V):(V=Od(U.type,U.key,U.props,null,B.mode,X),Il(V,U),V.return=B,V)}function q(B,V,U,X){return V===null||V.tag!==4||V.stateNode.containerInfo!==U.containerInfo||V.stateNode.implementation!==U.implementation?(V=Uh(U,B.mode,X),V.return=B,V):(V=g(V,U.children||[]),V.return=B,V)}function Q(B,V,U,X,ke){return V===null||V.tag!==7?(V=tr(U,B.mode,X,ke),V.return=B,V):(V=g(V,U),V.return=B,V)}function te(B,V,U){if(typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint")return V=Hh(""+V,B.mode,U),V.return=B,V;if(typeof V=="object"&&V!==null){switch(V.$$typeof){case w:return U=Od(V.type,V.key,V.props,null,B.mode,U),Il(U,V),U.return=B,U;case C:return V=Uh(V,B.mode,U),V.return=B,V;case _:return V=rr(V),te(B,V,U)}if(ie(V)||ce(V))return V=tr(V,B.mode,U,null),V.return=B,V;if(typeof V.then=="function")return te(B,Vd(V),U);if(V.$$typeof===k)return te(B,Pd(B,V),U);$d(B,V)}return null}function W(B,V,U,X){var ke=V!==null?V.key:null;if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return ke!==null?null:A(B,V,""+U,X);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case w:return U.key===ke?z(B,V,U,X):null;case C:return U.key===ke?q(B,V,U,X):null;case _:return U=rr(U),W(B,V,U,X)}if(ie(U)||ce(U))return ke!==null?null:Q(B,V,U,X,null);if(typeof U.then=="function")return W(B,V,Vd(U),X);if(U.$$typeof===k)return W(B,V,Pd(B,U),X);$d(B,U)}return null}function Y(B,V,U,X,ke){if(typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint")return B=B.get(U)||null,A(V,B,""+X,ke);if(typeof X=="object"&&X!==null){switch(X.$$typeof){case w:return B=B.get(X.key===null?U:X.key)||null,z(V,B,X,ke);case C:return B=B.get(X.key===null?U:X.key)||null,q(V,B,X,ke);case _:return X=rr(X),Y(B,V,U,X,ke)}if(ie(X)||ce(X))return B=B.get(U)||null,Q(V,B,X,ke,null);if(typeof X.then=="function")return Y(B,V,U,Vd(X),ke);
vendor: 5,949 bytes, line 8
8if(X.$$typeof===k)return Y(B,V,U,Pd(V,X),ke);$d(V,X)}return null}function xe(B,V,U,X){for(var ke=null,ot=null,be=V,Ye=V=0,tt=null;be!==null&&Ye<U.length;Ye++){be.index>Ye?(tt=be,be=null):tt=be.sibling;var lt=W(B,be,U[Ye],X);if(lt===null){be===null&&(be=tt);break}n&&be&<.alternate===null&&r(B,be),V=v(lt,V,Ye),ot===null?ke=lt:ot.sibling=lt,ot=lt,be=tt}if(Ye===U.length)return l(B,be),nt&&Ta(B,Ye),ke;if(be===null){for(;Ye<U.length;Ye++)be=te(B,U[Ye],X),be!==null&&(V=v(be,V,Ye),ot===null?ke=be:ot.sibling=be,ot=be);return nt&&Ta(B,Ye),ke}for(be=d(be);Ye<U.length;Ye++)tt=Y(be,B,Ye,U[Ye],X),tt!==null&&(n&&tt.alternate!==null&&be.delete(tt.key===null?Ye:tt.key),V=v(tt,V,Ye),ot===null?ke=tt:ot.sibling=tt,ot=tt);return n&&be.forEach(function(ki){return r(B,ki)}),nt&&Ta(B,Ye),ke}function Ae(B,V,U,X){if(U==null)throw Error(i(151));for(var ke=null,ot=null,be=V,Ye=V=0,tt=null,lt=U.next();be!==null&&!lt.done;Ye++,lt=U.next()){be.index>Ye?(tt=be,be=null):tt=be.sibling;var ki=W(B,be,lt.value,X);if(ki===null){be===null&&(be=tt);break}n&&be&&ki.alternate===null&&r(B,be),V=v(ki,V,Ye),ot===null?ke=ki:ot.sibling=ki,ot=ki,be=tt}if(lt.done)return l(B,be),nt&&Ta(B,Ye),ke;if(be===null){for(;!lt.done;Ye++,lt=U.next())lt=te(B,lt.value,X),lt!==null&&(V=v(lt,V,Ye),ot===null?ke=lt:ot.sibling=lt,ot=lt);return nt&&Ta(B,Ye),ke}for(be=d(be);!lt.done;Ye++,lt=U.next())lt=Y(be,B,Ye,lt.value,X),lt!==null&&(n&<.alternate!==null&&be.delete(lt.key===null?Ye:lt.key),V=v(lt,V,Ye),ot===null?ke=lt:ot.sibling=lt,ot=lt);return n&&be.forEach(function(bA){return r(B,bA)}),nt&&Ta(B,Ye),ke}function bt(B,V,U,X){if(typeof U=="object"&&U!==null&&U.type===j&&U.key===null&&(U=U.props.children),typeof U=="object"&&U!==null){switch(U.$$typeof){case w:e:{for(var ke=U.key;V!==null;){if(V.key===ke){if(ke=U.type,ke===j){if(V.tag===7){l(B,V.sibling),X=g(V,U.props.children),X.return=B,B=X;break e}}else if(V.elementType===ke||typeof ke=="object"&&ke!==null&&ke.$$typeof===_&&rr(ke)===V.type){l(B,V.sibling),X=g(V,U.props),Il(X,U),X.return=B,B=X;break e}l(B,V);break}else r(B,V);V=V.sibling}U.type===j?(X=tr(U.props.children,B.mode,X,U.key),X.return=B,B=X):(X=Od(U.type,U.key,U.props,null,B.mode,X),Il(X,U),X.return=B,B=X)}return N(B);case C:e:{for(ke=U.key;V!==null;){if(V.key===ke)if(V.tag===4&&V.stateNode.containerInfo===U.containerInfo&&V.stateNode.implementation===U.implementation){l(B,V.sibling),X=g(V,U.children||[]),X.return=B,B=X;break e}else{l(B,V);break}else r(B,V);V=V.sibling}X=Uh(U,B.mode,X),X.return=B,B=X}return N(B);case _:return U=rr(U),bt(B,V,U,X)}if(ie(U))return xe(B,V,U,X);if(ce(U)){if(ke=ce(U),typeof ke!="function")throw Error(i(150));return U=ke.call(U),Ae(B,V,U,X)}if(typeof U.then=="function")return bt(B,V,Vd(U),X);if(U.$$typeof===k)return bt(B,V,Pd(B,U),X);$d(B,U)}return typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint"?(U=""+U,V!==null&&V.tag===6?(l(B,V.sibling),X=g(V,U),X.return=B,B=X):(l(B,V),X=Hh(U,B.mode,X),X.return=B,B=X),N(B)):l(B,V)}return function(B,V,U,X){try{Ll=0;var ke=bt(B,V,U,X);return io=null,ke}catch(be){if(be===ao||be===Ld)throw be;var ot=Un(29,be,null,B.mode);return ot.lanes=X,ot.return=B,ot}}}var lr=Sv(!0),Cv=Sv(!1),ci=!1;function nm(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function sm(n,r){n=n.updateQueue,r.updateQueue===n&&(r.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,callbacks:null})}function di(n){return{lane:n,tag:0,payload:null,callback:null,next:null}}function ui(n,r,l){var d=n.updateQueue;if(d===null)return null;if(d=d.shared,(dt&2)!==0){var g=d.pending;return g===null?r.next=r:(r.next=g.next,g.next=r),d.pending=r,r=Dd(n),lv(n,null,l),r}return Ad(n,d,r,l),Dd(n)}function Vl(n,r,l){if(r=r.updateQueue,r!==null&&(r=r.shared,(l&4194048)!==0)){var d=r.lanes;d&=n.pendingLanes,l|=d,r.lanes=l,gd(n,l)}}function am(n,r){var l=n.updateQueue,d=n.alternate;if(d!==null&&(d=d.updateQueue,l===d)){var g=null,v=null;if(l=l.firstBaseUpdate,l!==null){do{var N={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};v===null?g=v=N:v=v.next=N,l=l.next}while(l!==null);v===null?g=v=r:v=v.next=r}else g=v=r;l={baseState:d.baseState,firstBaseUpdate:g,lastBaseUpdate:v,shared:d.shared,callbacks:d.callbacks},n.updateQueue=l;return}n=l.lastBaseUpdate,n===null?l.firstBaseUpdate=r:n.next=r,l.lastBaseUpdate=r}var im=!1;function $l(){if(im){var n=so;if(n!==null)throw n}}function Bl(n,r,l,d){im=!1;var g=n.updateQueue;ci=!1;var v=g.firstBaseUpdate,N=g.lastBaseUpdate,A=g.shared.pending;if(A!==null){g.shared.pending=null;var z=A,q=z.next;z.next=null,N===null?v=q:N.next=q,N=z;var Q=n.alternate;Q!==null&&(Q=Q.updateQueue,A=Q.lastBaseUpdate,A!==N&&(A===null?Q.firstBaseUpdate=q:A.next=q,Q.lastBaseUpdate=z))}if(v!==null){var te=g.baseState;N=0,Q=q=z=null,A=v;do{var W=A.lane&-536870913,Y=W!==A.lane;if(Y?(et&W)===W:(d&W)===W){W!==0&&W===no&&(im=!0),Q!==null&&(Q=Q.next={lane:0,tag:A.tag,payload:A.payload,callback:null,next:null});e:{var xe=n,Ae=A;W=r;var bt=l;switch(Ae.tag){case 1:if(xe=Ae.payload,typeof xe=="function"){te=xe.call(bt,te,W);break e}te=xe;break e;case 3:xe.flags=xe.flags&-65537|128;case 0:if(xe=Ae.payload,W=typeof xe=="function"?xe.call(bt,te,W):xe,W==null)break e;te=y({},te,W);break e;case 2:ci=!0}}W=A.callback,W!==null&&(n.flags|=64,Y&&(n.flags|=8192),Y=g.callbacks,Y===null?g.callbacks=[W]:Y.push(W))}else Y={lane:W,tag:A.tag,payload:A.payload,callback:A.callback,next:null},Q===null?(q=Q=Y,z=te):Q=Q.next=Y,N|=W;if(A=A.next,A===null){if(A=g.shared.pending,A===null)break;Y=A,A=Y.next,Y.next=null,g.lastBaseUpdate=Y,g.shared.pending=null}}while(!0);Q===null&&(z=te),g.baseState=z,g.firstBaseUpdate=q,g.lastBaseUpdate=Q,v===null&&(g.shared.lanes=0),gi|=N,n.lanes=N,n.memoizedState=te}}function kv(n,r){if(typeof n!="function")throw Error(i(191,n));n.call(r)}function Tv(n,r){var l=n.callbacks;
vendor: 1,196 bytes, line 8
8if(l!==null)for(n.callbacks=null,n=0;n<l.length;n++)kv(l[n],r)}var ro=L(null),Bd=L(0);function Ev(n,r){n=Ia,J(Bd,n),J(ro,r),Ia=n|r.baseLanes}function rm(){J(Bd,Ia),J(ro,ro.current)}function om(){Ia=Bd.current,K(ro),K(Bd)}var qn=L(null),ms=null;function fi(n){var r=n.alternate;J(Ut,Ut.current&1),J(qn,n),ms===null&&(r===null||ro.current!==null||r.memoizedState!==null)&&(ms=n)}function lm(n){J(Ut,Ut.current),J(qn,n),ms===null&&(ms=n)}function Mv(n){n.tag===22?(J(Ut,Ut.current),J(qn,n),ms===null&&(ms=n)):hi()}function hi(){J(Ut,Ut.current),J(qn,qn.current)}function Wn(n){K(qn),ms===n&&(ms=null),K(Ut)}var Ut=L(0);function Fd(n){for(var r=n;r!==null;){if(r.tag===13){var l=r.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||mp(l)||pp(l)))return r}else if(r.tag===19&&(r.memoizedProps.revealOrder==="forwards"||r.memoizedProps.revealOrder==="backwards"||r.memoizedProps.revealOrder==="unstable_legacy-backwards"||r.memoizedProps.revealOrder==="together")){if((r.flags&128)!==0)return r}else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===n)break;for(;r.sibling===null;){if(r.return===null||r.return===n)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}return null}
vendor: 6,735 bytes, line 8
8var Aa=0,We=null,yt=null,Qt=null,Hd=!1,oo=!1,cr=!1,Ud=0,Fl=0,lo=null,dM=0;function $t(){throw Error(i(321))}function cm(n,r){if(r===null)return!1;for(var l=0;l<r.length&&l<n.length;l++)if(!Hn(n[l],r[l]))return!1;return!0}function dm(n,r,l,d,g,v){return Aa=v,We=r,r.memoizedState=null,r.updateQueue=null,r.lanes=0,I.H=n===null||n.memoizedState===null?fb:Cm,cr=!1,v=l(d,g),cr=!1,oo&&(v=Dv(r,l,d,g)),Av(n),v}function Av(n){I.H=ql;var r=yt!==null&&yt.next!==null;if(Aa=0,Qt=yt=We=null,Hd=!1,Fl=0,lo=null,r)throw Error(i(300));n===null||Xt||(n=n.dependencies,n!==null&&_d(n)&&(Xt=!0))}function Dv(n,r,l,d){We=n;var g=0;do{if(oo&&(lo=null),Fl=0,oo=!1,25<=g)throw Error(i(301));if(g+=1,Qt=yt=null,n.updateQueue!=null){var v=n.updateQueue;v.lastEffect=null,v.events=null,v.stores=null,v.memoCache!=null&&(v.memoCache.index=0)}I.H=hb,v=r(l,d)}while(oo);return v}function uM(){var n=I.H,r=n.useState()[0];return r=typeof r.then=="function"?Hl(r):r,n=n.useState()[0],(yt!==null?yt.memoizedState:null)!==n&&(We.flags|=1024),r}function um(){var n=Ud!==0;return Ud=0,n}function fm(n,r,l){r.updateQueue=n.updateQueue,r.flags&=-2053,n.lanes&=~l}function hm(n){if(Hd){for(n=n.memoizedState;n!==null;){var r=n.queue;r!==null&&(r.pending=null),n=n.next}Hd=!1}Aa=0,Qt=yt=We=null,oo=!1,Fl=Ud=0,lo=null}function Cn(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Qt===null?We.memoizedState=Qt=n:Qt=Qt.next=n,Qt}function qt(){if(yt===null){var n=We.alternate;n=n!==null?n.memoizedState:null}else n=yt.next;var r=Qt===null?We.memoizedState:Qt.next;if(r!==null)Qt=r,yt=n;else{if(n===null)throw We.alternate===null?Error(i(467)):Error(i(310));yt=n,n={memoizedState:yt.memoizedState,baseState:yt.baseState,baseQueue:yt.baseQueue,queue:yt.queue,next:null},Qt===null?We.memoizedState=Qt=n:Qt=Qt.next=n}return Qt}function qd(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Hl(n){var r=Fl;return Fl+=1,lo===null&&(lo=[]),n=wv(lo,n,r),r=We,(Qt===null?r.memoizedState:Qt.next)===null&&(r=r.alternate,I.H=r===null||r.memoizedState===null?fb:Cm),n}function Wd(n){if(n!==null&&typeof n=="object"){if(typeof n.then=="function")return Hl(n);if(n.$$typeof===k)return hn(n)}throw Error(i(438,String(n)))}function mm(n){var r=null,l=We.updateQueue;if(l!==null&&(r=l.memoCache),r==null){var d=We.alternate;d!==null&&(d=d.updateQueue,d!==null&&(d=d.memoCache,d!=null&&(r={data:d.data.map(function(g){return g.slice()}),index:0})))}if(r==null&&(r={data:[],index:0}),l===null&&(l=qd(),We.updateQueue=l),l.memoCache=r,l=r.data[r.index],l===void 0)for(l=r.data[r.index]=Array(n),d=0;d<n;d++)l[d]=ne;return r.index++,l}function Da(n,r){return typeof r=="function"?r(n):r}function Gd(n){var r=qt();return pm(r,yt,n)}function pm(n,r,l){var d=n.queue;if(d===null)throw Error(i(311));d.lastRenderedReducer=l;var g=n.baseQueue,v=d.pending;if(v!==null){if(g!==null){var N=g.next;g.next=v.next,v.next=N}r.baseQueue=g=v,d.pending=null}if(v=n.baseState,g===null)n.memoizedState=v;else{r=g.next;var A=N=null,z=null,q=r,Q=!1;do{var te=q.lane&-536870913;if(te!==q.lane?(et&te)===te:(Aa&te)===te){var W=q.revertLane;if(W===0)z!==null&&(z=z.next={lane:0,revertLane:0,gesture:null,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null}),te===no&&(Q=!0);else if((Aa&W)===W){q=q.next,W===no&&(Q=!0);continue}else te={lane:0,revertLane:q.revertLane,gesture:null,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null},z===null?(A=z=te,N=v):z=z.next=te,We.lanes|=W,gi|=W;te=q.action,cr&&l(v,te),v=q.hasEagerState?q.eagerState:l(v,te)}else W={lane:te,revertLane:q.revertLane,gesture:q.gesture,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null},z===null?(A=z=W,N=v):z=z.next=W,We.lanes|=te,gi|=te;q=q.next}while(q!==null&&q!==r);if(z===null?N=v:z.next=A,!Hn(v,n.memoizedState)&&(Xt=!0,Q&&(l=so,l!==null)))throw l;n.memoizedState=v,n.baseState=N,n.baseQueue=z,d.lastRenderedState=v}return g===null&&(d.lanes=0),[n.memoizedState,d.dispatch]}function gm(n){var r=qt(),l=r.queue;if(l===null)throw Error(i(311));l.lastRenderedReducer=n;var d=l.dispatch,g=l.pending,v=r.memoizedState;if(g!==null){l.pending=null;var N=g=g.next;do v=n(v,N.action),N=N.next;while(N!==g);Hn(v,r.memoizedState)||(Xt=!0),r.memoizedState=v,r.baseQueue===null&&(r.baseState=v),l.lastRenderedState=v}return[v,d]}function Ov(n,r,l){var d=We,g=qt(),v=nt;if(v){if(l===void 0)throw Error(i(407));l=l()}else l=r();var N=!Hn((yt||g).memoizedState,l);if(N&&(g.memoizedState=l,Xt=!0),g=g.queue,vm(Pv.bind(null,d,g,n),[n]),g.getSnapshot!==r||N||Qt!==null&&Qt.memoizedState.tag&1){if(d.flags|=2048,co(9,{destroy:void 0},_v.bind(null,d,g,l,r),null),jt===null)throw Error(i(349));v||(Aa&127)!==0||Rv(d,r,l)}return l}function Rv(n,r,l){n.flags|=16384,n={getSnapshot:r,value:l},r=We.updateQueue,r===null?(r=qd(),We.updateQueue=r,r.stores=[n]):(l=r.stores,l===null?r.stores=[n]:l.push(n))}function _v(n,r,l,d){r.value=l,r.getSnapshot=d,zv(r)&&Lv(n)}function Pv(n,r,l){return l(function(){zv(r)&&Lv(n)})}function zv(n){var r=n.getSnapshot;n=n.value;try{var l=r();return!Hn(n,l)}catch{return!0}}function Lv(n){var r=er(n,2);r!==null&&zn(r,n,2)}function xm(n){var r=Cn();if(typeof n=="function"){var l=n;if(n=l(),cr){$e(!0);try{l()}finally{$e(!1)}}}return r.memoizedState=r.baseState=n,r.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Da,lastRenderedState:n},r}function Iv(n,r,l,d){return n.baseState=l,pm(n,yt,typeof d=="function"?d:Da)}function fM(n,r,l,d,g){if(Qd(n))throw Error(i(485));if(n=r.action,n!==null){var v={payload:g,action:n,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(N){v.listeners.push(N)}};I.T!==null?l(!0):v.isTransition=!1,d(v),l=r.pending,l===null?(v.next=r.pending=v,Vv(r,v)):(v.next=l.next,r.pending=l.next=v)}}function Vv(n,r){var l=r.action,d=r.payload,g=n.state;if(r.isTransition){var v=I.T,N={};I.T=N;try{var A=l(g,d),z=I.S;z!==null&&z(N,A),$v(n,r,A)}catch(q){ym(n,r,q)}finally{v!==null&&N.types!==null&&(v.types=N.types),I.T=v}}else try{v=l(g,d),$v(n,r,v)}catch(q){ym(n,r,q)}}function $v(n,r,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(d){Bv(n,r,d)},function(d){return ym(n,r,d)}):Bv(n,r,l)}function Bv(n,r,l){r.status="fulfilled",r.value=l,Fv(r),n.state=l,r=n.pending,r!==null&&(l=r.next,l===r?n.pending=null:(l=l.next,r.next=l,Vv(n,l)))}function ym(n,r,l){var d=n.pending;if(n.pending=null,d!==null){d=d.next;do r.status="rejected",r.reason=l,Fv(r),r=r.next;while(r!==d)}n.action=null}function Fv(n){n=n.listeners;for(var r=0;r<n.length;r++)(0,n[r])()}function Hv(n,r){return r}function Uv(n,r){if(nt){var l=jt.formState;if(l!==null){e:{var d=We;if(nt){if(Mt){t:{for(var g=Mt,v=hs;
vendor: 5,237 bytes, line 8
8g.nodeType!==8;){if(!v){g=null;break t}if(g=ps(g.nextSibling),g===null){g=null;break t}}v=g.data,g=v==="F!"||v==="F"?g:null}if(g){Mt=ps(g.nextSibling),d=g.data==="F!";break e}}oi(d)}d=!1}d&&(r=l[0])}}return l=Cn(),l.memoizedState=l.baseState=r,d={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Hv,lastRenderedState:r},l.queue=d,l=cb.bind(null,We,d),d.dispatch=l,d=xm(!1),v=Sm.bind(null,We,!1,d.queue),d=Cn(),g={state:r,dispatch:null,action:n,pending:null},d.queue=g,l=fM.bind(null,We,g,v,l),g.dispatch=l,d.memoizedState=n,[r,l,!1]}function qv(n){var r=qt();return Wv(r,yt,n)}function Wv(n,r,l){if(r=pm(n,r,Hv)[0],n=Gd(Da)[0],typeof r=="object"&&r!==null&&typeof r.then=="function")try{var d=Hl(r)}catch(N){throw N===ao?Ld:N}else d=r;r=qt();var g=r.queue,v=g.dispatch;return l!==r.memoizedState&&(We.flags|=2048,co(9,{destroy:void 0},hM.bind(null,g,l),null)),[d,v,n]}function hM(n,r){n.action=r}function Gv(n){var r=qt(),l=yt;if(l!==null)return Wv(r,l,n);qt(),r=r.memoizedState,l=qt();var d=l.queue.dispatch;return l.memoizedState=n,[r,d,!1]}function co(n,r,l,d){return n={tag:n,create:l,deps:d,inst:r,next:null},r=We.updateQueue,r===null&&(r=qd(),We.updateQueue=r),l=r.lastEffect,l===null?r.lastEffect=n.next=n:(d=l.next,l.next=n,n.next=d,r.lastEffect=n),n}function Yv(){return qt().memoizedState}function Yd(n,r,l,d){var g=Cn();We.flags|=n,g.memoizedState=co(1|r,{destroy:void 0},l,d===void 0?null:d)}function Kd(n,r,l,d){var g=qt();d=d===void 0?null:d;var v=g.memoizedState.inst;yt!==null&&d!==null&&cm(d,yt.memoizedState.deps)?g.memoizedState=co(r,v,l,d):(We.flags|=n,g.memoizedState=co(1|r,v,l,d))}function Kv(n,r){Yd(8390656,8,n,r)}function vm(n,r){Kd(2048,8,n,r)}function mM(n){We.flags|=4;var r=We.updateQueue;if(r===null)r=qd(),We.updateQueue=r,r.events=[n];else{var l=r.events;l===null?r.events=[n]:l.push(n)}}function Qv(n){var r=qt().memoizedState;return mM({ref:r,nextImpl:n}),function(){if((dt&2)!==0)throw Error(i(440));return r.impl.apply(void 0,arguments)}}function Xv(n,r){return Kd(4,2,n,r)}function Zv(n,r){return Kd(4,4,n,r)}function Jv(n,r){if(typeof r=="function"){n=n();var l=r(n);return function(){typeof l=="function"?l():r(null)}}if(r!=null)return n=n(),r.current=n,function(){r.current=null}}function eb(n,r,l){l=l!=null?l.concat([n]):null,Kd(4,4,Jv.bind(null,r,n),l)}function bm(){}function tb(n,r){var l=qt();r=r===void 0?null:r;var d=l.memoizedState;return r!==null&&cm(r,d[1])?d[0]:(l.memoizedState=[n,r],n)}function nb(n,r){var l=qt();r=r===void 0?null:r;var d=l.memoizedState;if(r!==null&&cm(r,d[1]))return d[0];if(d=n(),cr){$e(!0);try{n()}finally{$e(!1)}}return l.memoizedState=[d,r],d}function wm(n,r,l){return l===void 0||(Aa&1073741824)!==0&&(et&261930)===0?n.memoizedState=r:(n.memoizedState=l,n=s1(),We.lanes|=n,gi|=n,l)}function sb(n,r,l,d){return Hn(l,r)?l:ro.current!==null?(n=wm(n,l,d),Hn(n,r)||(Xt=!0),n):(Aa&42)===0||(Aa&1073741824)!==0&&(et&261930)===0?(Xt=!0,n.memoizedState=l):(n=s1(),We.lanes|=n,gi|=n,r)}function ab(n,r,l,d,g){var v=H.p;H.p=v!==0&&8>v?v:8;var N=I.T,A={};I.T=A,Sm(n,!1,r,l);try{var z=g(),q=I.S;if(q!==null&&q(A,z),z!==null&&typeof z=="object"&&typeof z.then=="function"){var Q=cM(z,d);Ul(n,r,Q,Kn(n))}else Ul(n,r,d,Kn(n))}catch(te){Ul(n,r,{then:function(){},status:"rejected",reason:te},Kn())}finally{H.p=v,N!==null&&A.types!==null&&(N.types=A.types),I.T=N}}function pM(){}function jm(n,r,l,d){if(n.tag!==5)throw Error(i(476));var g=ib(n).queue;ab(n,g,r,$,l===null?pM:function(){return rb(n),l(d)})}function ib(n){var r=n.memoizedState;if(r!==null)return r;r={memoizedState:$,baseState:$,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Da,lastRenderedState:$},next:null};var l={};return r.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Da,lastRenderedState:l},next:null},n.memoizedState=r,n=n.alternate,n!==null&&(n.memoizedState=r),r}function rb(n){var r=ib(n);r.next===null&&(r=n.alternate.memoizedState),Ul(n,r.next.queue,{},Kn())}function Nm(){return hn(oc)}function ob(){return qt().memoizedState}function lb(){return qt().memoizedState}function gM(n){for(var r=n.return;r!==null;){switch(r.tag){case 24:case 3:var l=Kn();n=di(l);var d=ui(r,n,l);d!==null&&(zn(d,r,l),Vl(d,r,l)),r={cache:Zh()},n.payload=r;return}r=r.return}}function xM(n,r,l){var d=Kn();l={lane:d,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Qd(n)?db(r,l):(l=Bh(n,r,l,d),l!==null&&(zn(l,n,d),ub(l,r,d)))}function cb(n,r,l){var d=Kn();Ul(n,r,l,d)}function Ul(n,r,l,d){var g={lane:d,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Qd(n))db(r,g);else{var v=n.alternate;if(n.lanes===0&&(v===null||v.lanes===0)&&(v=r.lastRenderedReducer,v!==null))try{var N=r.lastRenderedState,A=v(N,l);if(g.hasEagerState=!0,g.eagerState=A,Hn(A,N))return Ad(n,r,g,0),jt===null&&Md(),!1}catch{}if(l=Bh(n,r,g,d),l!==null)return zn(l,n,d),ub(l,r,d),!0}return!1}function Sm(n,r,l,d){if(d={lane:2,revertLane:np(),gesture:null,action:d,hasEagerState:!1,eagerState:null,next:null},Qd(n)){if(r)throw Error(i(479))}else r=Bh(n,l,d,2),r!==null&&zn(r,n,2)}function Qd(n){var r=n.alternate;return n===We||r!==null&&r===We}function db(n,r){oo=Hd=!0;var l=n.pending;
vendor: 5,152 bytes, line 8
8l===null?r.next=r:(r.next=l.next,l.next=r),n.pending=r}function ub(n,r,l){if((l&4194048)!==0){var d=r.lanes;d&=n.pendingLanes,l|=d,r.lanes=l,gd(n,l)}}var ql={readContext:hn,use:Wd,useCallback:$t,useContext:$t,useEffect:$t,useImperativeHandle:$t,useLayoutEffect:$t,useInsertionEffect:$t,useMemo:$t,useReducer:$t,useRef:$t,useState:$t,useDebugValue:$t,useDeferredValue:$t,useTransition:$t,useSyncExternalStore:$t,useId:$t,useHostTransitionStatus:$t,useFormState:$t,useActionState:$t,useOptimistic:$t,useMemoCache:$t,useCacheRefresh:$t};ql.useEffectEvent=$t;var fb={readContext:hn,use:Wd,useCallback:function(n,r){return Cn().memoizedState=[n,r===void 0?null:r],n},useContext:hn,useEffect:Kv,useImperativeHandle:function(n,r,l){l=l!=null?l.concat([n]):null,Yd(4194308,4,Jv.bind(null,r,n),l)},useLayoutEffect:function(n,r){return Yd(4194308,4,n,r)},useInsertionEffect:function(n,r){Yd(4,2,n,r)},useMemo:function(n,r){var l=Cn();r=r===void 0?null:r;var d=n();if(cr){$e(!0);try{n()}finally{$e(!1)}}return l.memoizedState=[d,r],d},useReducer:function(n,r,l){var d=Cn();if(l!==void 0){var g=l(r);if(cr){$e(!0);try{l(r)}finally{$e(!1)}}}else g=r;return d.memoizedState=d.baseState=g,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:g},d.queue=n,n=n.dispatch=xM.bind(null,We,n),[d.memoizedState,n]},useRef:function(n){var r=Cn();return n={current:n},r.memoizedState=n},useState:function(n){n=xm(n);var r=n.queue,l=cb.bind(null,We,r);return r.dispatch=l,[n.memoizedState,l]},useDebugValue:bm,useDeferredValue:function(n,r){var l=Cn();return wm(l,n,r)},useTransition:function(){var n=xm(!1);return n=ab.bind(null,We,n.queue,!0,!1),Cn().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,r,l){var d=We,g=Cn();if(nt){if(l===void 0)throw Error(i(407));l=l()}else{if(l=r(),jt===null)throw Error(i(349));(et&127)!==0||Rv(d,r,l)}g.memoizedState=l;var v={value:l,getSnapshot:r};return g.queue=v,Kv(Pv.bind(null,d,v,n),[n]),d.flags|=2048,co(9,{destroy:void 0},_v.bind(null,d,v,l,r),null),l},useId:function(){var n=Cn(),r=jt.identifierPrefix;if(nt){var l=Gs,d=Ws;l=(d&~(1<<32-at(d)-1)).toString(32)+l,r="_"+r+"R_"+l,l=Ud++,0<l&&(r+="H"+l.toString(32)),r+="_"}else l=dM++,r="_"+r+"r_"+l.toString(32)+"_";return n.memoizedState=r},useHostTransitionStatus:Nm,useFormState:Uv,useActionState:Uv,useOptimistic:function(n){var r=Cn();r.memoizedState=r.baseState=n;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return r.queue=l,r=Sm.bind(null,We,!0,l),l.dispatch=r,[n,r]},useMemoCache:mm,useCacheRefresh:function(){return Cn().memoizedState=gM.bind(null,We)},useEffectEvent:function(n){var r=Cn(),l={impl:n};return r.memoizedState=l,function(){if((dt&2)!==0)throw Error(i(440));return l.impl.apply(void 0,arguments)}}},Cm={readContext:hn,use:Wd,useCallback:tb,useContext:hn,useEffect:vm,useImperativeHandle:eb,useInsertionEffect:Xv,useLayoutEffect:Zv,useMemo:nb,useReducer:Gd,useRef:Yv,useState:function(){return Gd(Da)},useDebugValue:bm,useDeferredValue:function(n,r){var l=qt();return sb(l,yt.memoizedState,n,r)},useTransition:function(){var n=Gd(Da)[0],r=qt().memoizedState;return[typeof n=="boolean"?n:Hl(n),r]},useSyncExternalStore:Ov,useId:ob,useHostTransitionStatus:Nm,useFormState:qv,useActionState:qv,useOptimistic:function(n,r){var l=qt();return Iv(l,yt,n,r)},useMemoCache:mm,useCacheRefresh:lb};Cm.useEffectEvent=Qv;var hb={readContext:hn,use:Wd,useCallback:tb,useContext:hn,useEffect:vm,useImperativeHandle:eb,useInsertionEffect:Xv,useLayoutEffect:Zv,useMemo:nb,useReducer:gm,useRef:Yv,useState:function(){return gm(Da)},useDebugValue:bm,useDeferredValue:function(n,r){var l=qt();return yt===null?wm(l,n,r):sb(l,yt.memoizedState,n,r)},useTransition:function(){var n=gm(Da)[0],r=qt().memoizedState;return[typeof n=="boolean"?n:Hl(n),r]},useSyncExternalStore:Ov,useId:ob,useHostTransitionStatus:Nm,useFormState:Gv,useActionState:Gv,useOptimistic:function(n,r){var l=qt();return yt!==null?Iv(l,yt,n,r):(l.baseState=n,[n,l.queue.dispatch])},useMemoCache:mm,useCacheRefresh:lb};hb.useEffectEvent=Qv;function km(n,r,l,d){r=n.memoizedState,l=l(d,r),l=l==null?r:y({},r,l),n.memoizedState=l,n.lanes===0&&(n.updateQueue.baseState=l)}var Tm={enqueueSetState:function(n,r,l){n=n._reactInternals;var d=Kn(),g=di(d);g.payload=r,l!=null&&(g.callback=l),r=ui(n,g,d),r!==null&&(zn(r,n,d),Vl(r,n,d))},enqueueReplaceState:function(n,r,l){n=n._reactInternals;var d=Kn(),g=di(d);g.tag=1,g.payload=r,l!=null&&(g.callback=l),r=ui(n,g,d),r!==null&&(zn(r,n,d),Vl(r,n,d))},enqueueForceUpdate:function(n,r){n=n._reactInternals;var l=Kn(),d=di(l);d.tag=2,r!=null&&(d.callback=r),r=ui(n,d,l),r!==null&&(zn(r,n,l),Vl(r,n,l))}};function mb(n,r,l,d,g,v,N){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(d,v,N):r.prototype&&r.prototype.isPureReactComponent?!Dl(l,d)||!Dl(g,v):!0}function pb(n,r,l,d){n=r.state,typeof r.componentWillReceiveProps=="function"&&r.componentWillReceiveProps(l,d),typeof r.UNSAFE_componentWillReceiveProps=="function"&&r.UNSAFE_componentWillReceiveProps(l,d),r.state!==n&&Tm.enqueueReplaceState(r,r.state,null)}function dr(n,r){var l=r;if("ref"in r){l={};
vendor: 5,591 bytes, line 8
8for(var d in r)d!=="ref"&&(l[d]=r[d])}if(n=n.defaultProps){l===r&&(l=y({},l));for(var g in n)l[g]===void 0&&(l[g]=n[g])}return l}function gb(n){Ed(n)}function xb(n){console.error(n)}function yb(n){Ed(n)}function Xd(n,r){try{var l=n.onUncaughtError;l(r.value,{componentStack:r.stack})}catch(d){setTimeout(function(){throw d})}}function vb(n,r,l){try{var d=n.onCaughtError;d(l.value,{componentStack:l.stack,errorBoundary:r.tag===1?r.stateNode:null})}catch(g){setTimeout(function(){throw g})}}function Em(n,r,l){return l=di(l),l.tag=3,l.payload={element:null},l.callback=function(){Xd(n,r)},l}function bb(n){return n=di(n),n.tag=3,n}function wb(n,r,l,d){var g=l.type.getDerivedStateFromError;if(typeof g=="function"){var v=d.value;n.payload=function(){return g(v)},n.callback=function(){vb(r,l,d)}}var N=l.stateNode;N!==null&&typeof N.componentDidCatch=="function"&&(n.callback=function(){vb(r,l,d),typeof g!="function"&&(xi===null?xi=new Set([this]):xi.add(this));var A=d.stack;this.componentDidCatch(d.value,{componentStack:A!==null?A:""})})}function yM(n,r,l,d,g){if(l.flags|=32768,d!==null&&typeof d=="object"&&typeof d.then=="function"){if(r=l.alternate,r!==null&&to(r,l,g,!0),l=qn.current,l!==null){switch(l.tag){case 31:case 13:return ms===null?cu():l.alternate===null&&Bt===0&&(Bt=3),l.flags&=-257,l.flags|=65536,l.lanes=g,d===Id?l.flags|=16384:(r=l.updateQueue,r===null?l.updateQueue=new Set([d]):r.add(d),Jm(n,d,g)),!1;case 22:return l.flags|=65536,d===Id?l.flags|=16384:(r=l.updateQueue,r===null?(r={transitions:null,markerInstances:null,retryQueue:new Set([d])},l.updateQueue=r):(l=r.retryQueue,l===null?r.retryQueue=new Set([d]):l.add(d)),Jm(n,d,g)),!1}throw Error(i(435,l.tag))}return Jm(n,d,g),cu(),!1}if(nt)return r=qn.current,r!==null?((r.flags&65536)===0&&(r.flags|=256),r.flags|=65536,r.lanes=g,d!==Gh&&(n=Error(i(422),{cause:d}),_l(ds(n,l)))):(d!==Gh&&(r=Error(i(423),{cause:d}),_l(ds(r,l))),n=n.current.alternate,n.flags|=65536,g&=-g,n.lanes|=g,d=ds(d,l),g=Em(n.stateNode,d,g),am(n,g),Bt!==4&&(Bt=2)),!1;var v=Error(i(520),{cause:d});if(v=ds(v,l),Jl===null?Jl=[v]:Jl.push(v),Bt!==4&&(Bt=2),r===null)return!0;d=ds(d,l),l=r;do{switch(l.tag){case 3:return l.flags|=65536,n=g&-g,l.lanes|=n,n=Em(l.stateNode,d,n),am(l,n),!1;case 1:if(r=l.type,v=l.stateNode,(l.flags&128)===0&&(typeof r.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(xi===null||!xi.has(v))))return l.flags|=65536,g&=-g,l.lanes|=g,g=bb(g),wb(g,n,l,d),am(l,g),!1}l=l.return}while(l!==null);return!1}var Mm=Error(i(461)),Xt=!1;function mn(n,r,l,d){r.child=n===null?Cv(r,null,l,d):lr(r,n.child,l,d)}function jb(n,r,l,d,g){l=l.render;var v=r.ref;if("ref"in d){var N={};for(var A in d)A!=="ref"&&(N[A]=d[A])}else N=d;return ar(r),d=dm(n,r,l,N,v,g),A=um(),n!==null&&!Xt?(fm(n,r,g),Oa(n,r,g)):(nt&&A&&qh(r),r.flags|=1,mn(n,r,d,g),r.child)}function Nb(n,r,l,d,g){if(n===null){var v=l.type;return typeof v=="function"&&!Fh(v)&&v.defaultProps===void 0&&l.compare===null?(r.tag=15,r.type=v,Sb(n,r,v,d,g)):(n=Od(l.type,null,d,r,r.mode,g),n.ref=r.ref,n.return=r,r.child=n)}if(v=n.child,!Lm(n,g)){var N=v.memoizedProps;if(l=l.compare,l=l!==null?l:Dl,l(N,d)&&n.ref===r.ref)return Oa(n,r,g)}return r.flags|=1,n=ka(v,d),n.ref=r.ref,n.return=r,r.child=n}function Sb(n,r,l,d,g){if(n!==null){var v=n.memoizedProps;if(Dl(v,d)&&n.ref===r.ref)if(Xt=!1,r.pendingProps=d=v,Lm(n,g))(n.flags&131072)!==0&&(Xt=!0);else return r.lanes=n.lanes,Oa(n,r,g)}return Am(n,r,l,d,g)}function Cb(n,r,l,d){var g=d.children,v=n!==null?n.memoizedState:null;if(n===null&&r.stateNode===null&&(r.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),d.mode==="hidden"){if((r.flags&128)!==0){if(v=v!==null?v.baseLanes|l:l,n!==null){for(d=r.child=n.child,g=0;d!==null;)g=g|d.lanes|d.childLanes,d=d.sibling;d=g&~v}else d=0,r.child=null;return kb(n,r,v,l,d)}if((l&536870912)!==0)r.memoizedState={baseLanes:0,cachePool:null},n!==null&&zd(r,v!==null?v.cachePool:null),v!==null?Ev(r,v):rm(),Mv(r);else return d=r.lanes=536870912,kb(n,r,v!==null?v.baseLanes|l:l,l,d)}else v!==null?(zd(r,v.cachePool),Ev(r,v),hi(),r.memoizedState=null):(n!==null&&zd(r,null),rm(),hi());return mn(n,r,g,l),r.child}function Wl(n,r){return n!==null&&n.tag===22||r.stateNode!==null||(r.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.sibling}function kb(n,r,l,d,g){var v=em();return v=v===null?null:{parent:Kt._currentValue,pool:v},r.memoizedState={baseLanes:l,cachePool:v},n!==null&&zd(r,null),rm(),Mv(r),n!==null&&to(n,r,d,!0),r.childLanes=g,null}function Zd(n,r){return r=eu({mode:r.mode,children:r.children},n.mode),r.ref=n.ref,n.child=r,r.return=n,r}function Tb(n,r,l){return lr(r,n.child,null,l),n=Zd(r,r.pendingProps),n.flags|=2,Wn(r),r.memoizedState=null,n}function vM(n,r,l){var d=r.pendingProps,g=(r.flags&128)!==0;if(r.flags&=-129,n===null){if(nt){if(d.mode==="hidden")return n=Zd(r,d),r.lanes=536870912,Wl(null,n);if(lm(r),(n=Mt)?(n=V1(n,hs),n=n!==null&&n.data==="&"?n:null,n!==null&&(r.memoizedState={dehydrated:n,treeContext:ii!==null?{id:Ws,overflow:Gs}:null,retryLane:536870912,hydrationErrors:null},l=dv(n),l.return=r,r.child=l,fn=r,Mt=null)):n=null,n===null)throw oi(r);return r.lanes=536870912,null}return Zd(r,d)}var v=n.memoizedState;if(v!==null){var N=v.dehydrated;if(lm(r),g)if(r.flags&256)r.flags&=-257,r=Tb(n,r,l);else if(r.memoizedState!==null)r.child=n.child,r.flags|=128,r=null;else throw Error(i(558));else if(Xt||to(n,r,l,!1),g=(l&n.childLanes)!==0,Xt||g){if(d=jt,d!==null&&(N=xd(d,l),N!==0&&N!==v.retryLane))throw v.retryLane=N,er(n,N),zn(d,n,N),Mm;
vendor: 4,704 bytes, line 8
8cu(),r=Tb(n,r,l)}else n=v.treeContext,Mt=ps(N.nextSibling),fn=r,nt=!0,ri=null,hs=!1,n!==null&&hv(r,n),r=Zd(r,d),r.flags|=4096;return r}return n=ka(n.child,{mode:d.mode,children:d.children}),n.ref=r.ref,r.child=n,n.return=r,n}function Jd(n,r){var l=r.ref;if(l===null)n!==null&&n.ref!==null&&(r.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(i(284));(n===null||n.ref!==l)&&(r.flags|=4194816)}}function Am(n,r,l,d,g){return ar(r),l=dm(n,r,l,d,void 0,g),d=um(),n!==null&&!Xt?(fm(n,r,g),Oa(n,r,g)):(nt&&d&&qh(r),r.flags|=1,mn(n,r,l,g),r.child)}function Eb(n,r,l,d,g,v){return ar(r),r.updateQueue=null,l=Dv(r,d,l,g),Av(n),d=um(),n!==null&&!Xt?(fm(n,r,v),Oa(n,r,v)):(nt&&d&&qh(r),r.flags|=1,mn(n,r,l,v),r.child)}function Mb(n,r,l,d,g){if(ar(r),r.stateNode===null){var v=Xr,N=l.contextType;typeof N=="object"&&N!==null&&(v=hn(N)),v=new l(d,v),r.memoizedState=v.state!==null&&v.state!==void 0?v.state:null,v.updater=Tm,r.stateNode=v,v._reactInternals=r,v=r.stateNode,v.props=d,v.state=r.memoizedState,v.refs={},nm(r),N=l.contextType,v.context=typeof N=="object"&&N!==null?hn(N):Xr,v.state=r.memoizedState,N=l.getDerivedStateFromProps,typeof N=="function"&&(km(r,l,N,d),v.state=r.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof v.getSnapshotBeforeUpdate=="function"||typeof v.UNSAFE_componentWillMount!="function"&&typeof v.componentWillMount!="function"||(N=v.state,typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount(),N!==v.state&&Tm.enqueueReplaceState(v,v.state,null),Bl(r,d,v,g),$l(),v.state=r.memoizedState),typeof v.componentDidMount=="function"&&(r.flags|=4194308),d=!0}else if(n===null){v=r.stateNode;var A=r.memoizedProps,z=dr(l,A);v.props=z;var q=v.context,Q=l.contextType;N=Xr,typeof Q=="object"&&Q!==null&&(N=hn(Q));var te=l.getDerivedStateFromProps;Q=typeof te=="function"||typeof v.getSnapshotBeforeUpdate=="function",A=r.pendingProps!==A,Q||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(A||q!==N)&&pb(r,v,d,N),ci=!1;var W=r.memoizedState;v.state=W,Bl(r,d,v,g),$l(),q=r.memoizedState,A||W!==q||ci?(typeof te=="function"&&(km(r,l,te,d),q=r.memoizedState),(z=ci||mb(r,l,z,d,W,q,N))?(Q||typeof v.UNSAFE_componentWillMount!="function"&&typeof v.componentWillMount!="function"||(typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount()),typeof v.componentDidMount=="function"&&(r.flags|=4194308)):(typeof v.componentDidMount=="function"&&(r.flags|=4194308),r.memoizedProps=d,r.memoizedState=q),v.props=d,v.state=q,v.context=N,d=z):(typeof v.componentDidMount=="function"&&(r.flags|=4194308),d=!1)}else{v=r.stateNode,sm(n,r),N=r.memoizedProps,Q=dr(l,N),v.props=Q,te=r.pendingProps,W=v.context,q=l.contextType,z=Xr,typeof q=="object"&&q!==null&&(z=hn(q)),A=l.getDerivedStateFromProps,(q=typeof A=="function"||typeof v.getSnapshotBeforeUpdate=="function")||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(N!==te||W!==z)&&pb(r,v,d,z),ci=!1,W=r.memoizedState,v.state=W,Bl(r,d,v,g),$l();var Y=r.memoizedState;N!==te||W!==Y||ci||n!==null&&n.dependencies!==null&&_d(n.dependencies)?(typeof A=="function"&&(km(r,l,A,d),Y=r.memoizedState),(Q=ci||mb(r,l,Q,d,W,Y,z)||n!==null&&n.dependencies!==null&&_d(n.dependencies))?(q||typeof v.UNSAFE_componentWillUpdate!="function"&&typeof v.componentWillUpdate!="function"||(typeof v.componentWillUpdate=="function"&&v.componentWillUpdate(d,Y,z),typeof v.UNSAFE_componentWillUpdate=="function"&&v.UNSAFE_componentWillUpdate(d,Y,z)),typeof v.componentDidUpdate=="function"&&(r.flags|=4),typeof v.getSnapshotBeforeUpdate=="function"&&(r.flags|=1024)):(typeof v.componentDidUpdate!="function"||N===n.memoizedProps&&W===n.memoizedState||(r.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||N===n.memoizedProps&&W===n.memoizedState||(r.flags|=1024),r.memoizedProps=d,r.memoizedState=Y),v.props=d,v.state=Y,v.context=z,d=Q):(typeof v.componentDidUpdate!="function"||N===n.memoizedProps&&W===n.memoizedState||(r.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||N===n.memoizedProps&&W===n.memoizedState||(r.flags|=1024),d=!1)}return v=d,Jd(n,r),d=(r.flags&128)!==0,v||d?(v=r.stateNode,l=d&&typeof l.getDerivedStateFromError!="function"?null:v.render(),r.flags|=1,n!==null&&d?(r.child=lr(r,n.child,null,g),r.child=lr(r,null,l,g)):mn(n,r,l,g),r.memoizedState=v.state,n=r.child):n=Oa(n,r,g),n}function Ab(n,r,l,d){return nr(),r.flags|=256,mn(n,r,l,d),r.child}var Dm={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};
vendor: 7,030 bytes, line 8
8function Om(n){return{baseLanes:n,cachePool:vv()}}function Rm(n,r,l){return n=n!==null?n.childLanes&~l:0,r&&(n|=Yn),n}function Db(n,r,l){var d=r.pendingProps,g=!1,v=(r.flags&128)!==0,N;if((N=v)||(N=n!==null&&n.memoizedState===null?!1:(Ut.current&2)!==0),N&&(g=!0,r.flags&=-129),N=(r.flags&32)!==0,r.flags&=-33,n===null){if(nt){if(g?fi(r):hi(),(n=Mt)?(n=V1(n,hs),n=n!==null&&n.data!=="&"?n:null,n!==null&&(r.memoizedState={dehydrated:n,treeContext:ii!==null?{id:Ws,overflow:Gs}:null,retryLane:536870912,hydrationErrors:null},l=dv(n),l.return=r,r.child=l,fn=r,Mt=null)):n=null,n===null)throw oi(r);return pp(n)?r.lanes=32:r.lanes=536870912,null}var A=d.children;return d=d.fallback,g?(hi(),g=r.mode,A=eu({mode:"hidden",children:A},g),d=tr(d,g,l,null),A.return=r,d.return=r,A.sibling=d,r.child=A,d=r.child,d.memoizedState=Om(l),d.childLanes=Rm(n,N,l),r.memoizedState=Dm,Wl(null,d)):(fi(r),_m(r,A))}var z=n.memoizedState;if(z!==null&&(A=z.dehydrated,A!==null)){if(v)r.flags&256?(fi(r),r.flags&=-257,r=Pm(n,r,l)):r.memoizedState!==null?(hi(),r.child=n.child,r.flags|=128,r=null):(hi(),A=d.fallback,g=r.mode,d=eu({mode:"visible",children:d.children},g),A=tr(A,g,l,null),A.flags|=2,d.return=r,A.return=r,d.sibling=A,r.child=d,lr(r,n.child,null,l),d=r.child,d.memoizedState=Om(l),d.childLanes=Rm(n,N,l),r.memoizedState=Dm,r=Wl(null,d));else if(fi(r),pp(A)){if(N=A.nextSibling&&A.nextSibling.dataset,N)var q=N.dgst;N=q,d=Error(i(419)),d.stack="",d.digest=N,_l({value:d,source:null,stack:null}),r=Pm(n,r,l)}else if(Xt||to(n,r,l,!1),N=(l&n.childLanes)!==0,Xt||N){if(N=jt,N!==null&&(d=xd(N,l),d!==0&&d!==z.retryLane))throw z.retryLane=d,er(n,d),zn(N,n,d),Mm;mp(A)||cu(),r=Pm(n,r,l)}else mp(A)?(r.flags|=192,r.child=n.child,r=null):(n=z.treeContext,Mt=ps(A.nextSibling),fn=r,nt=!0,ri=null,hs=!1,n!==null&&hv(r,n),r=_m(r,d.children),r.flags|=4096);return r}return g?(hi(),A=d.fallback,g=r.mode,z=n.child,q=z.sibling,d=ka(z,{mode:"hidden",children:d.children}),d.subtreeFlags=z.subtreeFlags&65011712,q!==null?A=ka(q,A):(A=tr(A,g,l,null),A.flags|=2),A.return=r,d.return=r,d.sibling=A,r.child=d,Wl(null,d),d=r.child,A=n.child.memoizedState,A===null?A=Om(l):(g=A.cachePool,g!==null?(z=Kt._currentValue,g=g.parent!==z?{parent:z,pool:z}:g):g=vv(),A={baseLanes:A.baseLanes|l,cachePool:g}),d.memoizedState=A,d.childLanes=Rm(n,N,l),r.memoizedState=Dm,Wl(n.child,d)):(fi(r),l=n.child,n=l.sibling,l=ka(l,{mode:"visible",children:d.children}),l.return=r,l.sibling=null,n!==null&&(N=r.deletions,N===null?(r.deletions=[n],r.flags|=16):N.push(n)),r.child=l,r.memoizedState=null,l)}function _m(n,r){return r=eu({mode:"visible",children:r},n.mode),r.return=n,n.child=r}function eu(n,r){return n=Un(22,n,null,r),n.lanes=0,n}function Pm(n,r,l){return lr(r,n.child,null,l),n=_m(r,r.pendingProps.children),n.flags|=2,r.memoizedState=null,n}function Ob(n,r,l){n.lanes|=r;var d=n.alternate;d!==null&&(d.lanes|=r),Qh(n.return,r,l)}function zm(n,r,l,d,g,v){var N=n.memoizedState;N===null?n.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:d,tail:l,tailMode:g,treeForkCount:v}:(N.isBackwards=r,N.rendering=null,N.renderingStartTime=0,N.last=d,N.tail=l,N.tailMode=g,N.treeForkCount=v)}function Rb(n,r,l){var d=r.pendingProps,g=d.revealOrder,v=d.tail;d=d.children;var N=Ut.current,A=(N&2)!==0;if(A?(N=N&1|2,r.flags|=128):N&=1,J(Ut,N),mn(n,r,d,l),d=nt?Rl:0,!A&&n!==null&&(n.flags&128)!==0)e:for(n=r.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&Ob(n,l,r);else if(n.tag===19)Ob(n,l,r);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===r)break e;for(;n.sibling===null;){if(n.return===null||n.return===r)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}switch(g){case"forwards":for(l=r.child,g=null;l!==null;)n=l.alternate,n!==null&&Fd(n)===null&&(g=l),l=l.sibling;l=g,l===null?(g=r.child,r.child=null):(g=l.sibling,l.sibling=null),zm(r,!1,g,l,v,d);break;case"backwards":case"unstable_legacy-backwards":for(l=null,g=r.child,r.child=null;g!==null;){if(n=g.alternate,n!==null&&Fd(n)===null){r.child=g;break}n=g.sibling,g.sibling=l,l=g,g=n}zm(r,!0,l,null,v,d);break;case"together":zm(r,!1,null,null,void 0,d);break;default:r.memoizedState=null}return r.child}function Oa(n,r,l){if(n!==null&&(r.dependencies=n.dependencies),gi|=r.lanes,(l&r.childLanes)===0)if(n!==null){if(to(n,r,l,!1),(l&r.childLanes)===0)return null}else return null;if(n!==null&&r.child!==n.child)throw Error(i(153));if(r.child!==null){for(n=r.child,l=ka(n,n.pendingProps),r.child=l,l.return=r;n.sibling!==null;)n=n.sibling,l=l.sibling=ka(n,n.pendingProps),l.return=r;l.sibling=null}return r.child}function Lm(n,r){return(n.lanes&r)!==0?!0:(n=n.dependencies,!!(n!==null&&_d(n)))}function bM(n,r,l){switch(r.tag){case 3:Me(r,r.stateNode.containerInfo),li(r,Kt,n.memoizedState.cache),nr();break;case 27:case 5:_e(r);break;case 4:Me(r,r.stateNode.containerInfo);break;case 10:li(r,r.type,r.memoizedProps.value);break;case 31:if(r.memoizedState!==null)return r.flags|=128,lm(r),null;break;case 13:var d=r.memoizedState;if(d!==null)return d.dehydrated!==null?(fi(r),r.flags|=128,null):(l&r.child.childLanes)!==0?Db(n,r,l):(fi(r),n=Oa(n,r,l),n!==null?n.sibling:null);fi(r);break;case 19:var g=(n.flags&128)!==0;if(d=(l&r.childLanes)!==0,d||(to(n,r,l,!1),d=(l&r.childLanes)!==0),g){if(d)return Rb(n,r,l);r.flags|=128}if(g=r.memoizedState,g!==null&&(g.rendering=null,g.tail=null,g.lastEffect=null),J(Ut,Ut.current),d)break;return null;case 22:return r.lanes=0,Cb(n,r,l,r.pendingProps);case 24:li(r,Kt,n.memoizedState.cache)}return Oa(n,r,l)}function _b(n,r,l){if(n!==null)if(n.memoizedProps!==r.pendingProps)Xt=!0;else{if(!Lm(n,l)&&(r.flags&128)===0)return Xt=!1,bM(n,r,l);Xt=(n.flags&131072)!==0}else Xt=!1,nt&&(r.flags&1048576)!==0&&fv(r,Rl,r.index);switch(r.lanes=0,r.tag){case 16:e:{var d=r.pendingProps;if(n=rr(r.elementType),r.type=n,typeof n=="function")Fh(n)?(d=dr(n,d),r.tag=1,r=Mb(null,r,n,d,l)):(r.tag=0,r=Am(null,r,n,d,l));else{if(n!=null){var g=n.$$typeof;if(g===R){r.tag=11,r=jb(null,r,n,d,l);break e}else if(g===O){r.tag=14,r=Nb(null,r,n,d,l);break e}}throw r=F(n)||n,Error(i(306,r,""))}}return r;case 0:return Am(n,r,r.type,r.pendingProps,l);case 1:return d=r.type,g=dr(d,r.pendingProps),Mb(n,r,d,g,l);case 3:e:{if(Me(r,r.stateNode.containerInfo),n===null)throw Error(i(387));d=r.pendingProps;var v=r.memoizedState;g=v.element,sm(n,r),Bl(r,d,null,l);var N=r.memoizedState;if(d=N.cache,li(r,Kt,d),d!==v.cache&&Xh(r,[Kt],l,!0),$l(),d=N.element,v.isDehydrated)if(v={element:d,isDehydrated:!1,cache:N.cache},r.updateQueue.baseState=v,r.memoizedState=v,r.flags&256){r=Ab(n,r,d,l);break e}else if(d!==g){g=ds(Error(i(424)),r),_l(g),r=Ab(n,r,d,l);break e}else for(n=r.stateNode.containerInfo,n.nodeType===9?n=n.body:n=n.nodeName==="HTML"?n.ownerDocument.body:n,Mt=ps(n.firstChild),fn=r,nt=!0,ri=null,hs=!0,l=Cv(r,null,d,l),r.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(nr(),d===g){r=Oa(n,r,l);break e}mn(n,r,d,l)}r=r.child}return r;case 26:return Jd(n,r),n===null?(l=q1(r.type,null,r.pendingProps,null))?r.memoizedState=l:nt||(l=r.type,n=r.pen
vendor: 4,957 bytes, line 8
8dingProps,d=gu(we.current).createElement(l),d[Ct]=r,d[Ee]=n,pn(d,l,n),on(d),r.stateNode=d):r.memoizedState=q1(r.type,n.memoizedProps,r.pendingProps,n.memoizedState),null;case 27:return _e(r),n===null&&nt&&(d=r.stateNode=F1(r.type,r.pendingProps,we.current),fn=r,hs=!0,g=Mt,wi(r.type)?(gp=g,Mt=ps(d.firstChild)):Mt=g),mn(n,r,r.pendingProps.children,l),Jd(n,r),n===null&&(r.flags|=4194304),r.child;case 5:return n===null&&nt&&((g=d=Mt)&&(d=QM(d,r.type,r.pendingProps,hs),d!==null?(r.stateNode=d,fn=r,Mt=ps(d.firstChild),hs=!1,g=!0):g=!1),g||oi(r)),_e(r),g=r.type,v=r.pendingProps,N=n!==null?n.memoizedProps:null,d=v.children,up(g,v)?d=null:N!==null&&up(g,N)&&(r.flags|=32),r.memoizedState!==null&&(g=dm(n,r,uM,null,null,l),oc._currentValue=g),Jd(n,r),mn(n,r,d,l),r.child;case 6:return n===null&&nt&&((n=l=Mt)&&(l=XM(l,r.pendingProps,hs),l!==null?(r.stateNode=l,fn=r,Mt=null,n=!0):n=!1),n||oi(r)),null;case 13:return Db(n,r,l);case 4:return Me(r,r.stateNode.containerInfo),d=r.pendingProps,n===null?r.child=lr(r,null,d,l):mn(n,r,d,l),r.child;case 11:return jb(n,r,r.type,r.pendingProps,l);case 7:return mn(n,r,r.pendingProps,l),r.child;case 8:return mn(n,r,r.pendingProps.children,l),r.child;case 12:return mn(n,r,r.pendingProps.children,l),r.child;case 10:return d=r.pendingProps,li(r,r.type,d.value),mn(n,r,d.children,l),r.child;case 9:return g=r.type._context,d=r.pendingProps.children,ar(r),g=hn(g),d=d(g),r.flags|=1,mn(n,r,d,l),r.child;case 14:return Nb(n,r,r.type,r.pendingProps,l);case 15:return Sb(n,r,r.type,r.pendingProps,l);case 19:return Rb(n,r,l);case 31:return vM(n,r,l);case 22:return Cb(n,r,l,r.pendingProps);case 24:return ar(r),d=hn(Kt),n===null?(g=em(),g===null&&(g=jt,v=Zh(),g.pooledCache=v,v.refCount++,v!==null&&(g.pooledCacheLanes|=l),g=v),r.memoizedState={parent:d,cache:g},nm(r),li(r,Kt,g)):((n.lanes&l)!==0&&(sm(n,r),Bl(r,null,null,l),$l()),g=n.memoizedState,v=r.memoizedState,g.parent!==d?(g={parent:d,cache:d},r.memoizedState=g,r.lanes===0&&(r.memoizedState=r.updateQueue.baseState=g),li(r,Kt,d)):(d=v.cache,li(r,Kt,d),d!==g.cache&&Xh(r,[Kt],l,!0))),mn(n,r,r.pendingProps.children,l),r.child;case 29:throw r.pendingProps}throw Error(i(156,r.tag))}function Ra(n){n.flags|=4}function Im(n,r,l,d,g){if((r=(n.mode&32)!==0)&&(r=!1),r){if(n.flags|=16777216,(g&335544128)===g)if(n.stateNode.complete)n.flags|=8192;else if(o1())n.flags|=8192;else throw or=Id,tm}else n.flags&=-16777217}function Pb(n,r){if(r.type!=="stylesheet"||(r.state.loading&4)!==0)n.flags&=-16777217;else if(n.flags|=16777216,!Q1(r))if(o1())n.flags|=8192;else throw or=Id,tm}function tu(n,r){r!==null&&(n.flags|=4),n.flags&16384&&(r=n.tag!==22?ja():536870912,n.lanes|=r,mo|=r)}function Gl(n,r){if(!nt)switch(n.tailMode){case"hidden":r=n.tail;for(var l=null;r!==null;)r.alternate!==null&&(l=r),r=r.sibling;l===null?n.tail=null:l.sibling=null;break;case"collapsed":l=n.tail;for(var d=null;l!==null;)l.alternate!==null&&(d=l),l=l.sibling;d===null?r||n.tail===null?n.tail=null:n.tail.sibling=null:d.sibling=null}}function At(n){var r=n.alternate!==null&&n.alternate.child===n.child,l=0,d=0;if(r)for(var g=n.child;g!==null;)l|=g.lanes|g.childLanes,d|=g.subtreeFlags&65011712,d|=g.flags&65011712,g.return=n,g=g.sibling;else for(g=n.child;g!==null;)l|=g.lanes|g.childLanes,d|=g.subtreeFlags,d|=g.flags,g.return=n,g=g.sibling;return n.subtreeFlags|=d,n.childLanes=l,r}function wM(n,r,l){var d=r.pendingProps;switch(Wh(r),r.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return At(r),null;case 1:return At(r),null;case 3:return l=r.stateNode,d=null,n!==null&&(d=n.memoizedState.cache),r.memoizedState.cache!==d&&(r.flags|=2048),Ma(Kt),Ce(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(n===null||n.child===null)&&(eo(r)?Ra(r):n===null||n.memoizedState.isDehydrated&&(r.flags&256)===0||(r.flags|=1024,Yh())),At(r),null;case 26:var g=r.type,v=r.memoizedState;return n===null?(Ra(r),v!==null?(At(r),Pb(r,v)):(At(r),Im(r,g,null,d,l))):v?v!==n.memoizedState?(Ra(r),At(r),Pb(r,v)):(At(r),r.flags&=-16777217):(n=n.memoizedProps,n!==d&&Ra(r),At(r),Im(r,g,n,d,l)),null;case 27:if(Ve(r),l=we.current,g=r.type,n!==null&&r.stateNode!=null)n.memoizedProps!==d&&Ra(r);else{if(!d){if(r.stateNode===null)throw Error(i(166));return At(r),null}n=oe.current,eo(r)?mv(r):(n=F1(g,d,l),r.stateNode=n,Ra(r))}return At(r),null;case 5:if(Ve(r),g=r.type,n!==null&&r.stateNode!=null)n.memoizedProps!==d&&Ra(r);else{if(!d){if(r.stateNode===null)throw Error(i(166));return At(r),null}if(v=oe.current,eo(r))mv(r);else{var N=gu(we.current);switch(v){case 1:v=N.createElementNS("http://www.w3.org/2000/svg",g);break;case 2:v=N.createElementNS("http://www.w3.org/1998/Math/MathML",g);break;default:switch(g){case"svg":v=N.createElementNS("http://www.w3.org/2000/svg",g);break;case"math":v=N.createElementNS("http://www.w3.org/1998/Math/MathML",g);break;case"script":v=N.createElement("div"),v.innerHTML="<script><\/script>",v=v.removeChild(v.firstChild);break;
vendor: 19,574 bytes, line 8
8case"select":v=typeof d.is=="string"?N.createElement("select",{is:d.is}):N.createElement("select"),d.multiple?v.multiple=!0:d.size&&(v.size=d.size);break;default:v=typeof d.is=="string"?N.createElement(g,{is:d.is}):N.createElement(g)}}v[Ct]=r,v[Ee]=d;e:for(N=r.child;N!==null;){if(N.tag===5||N.tag===6)v.appendChild(N.stateNode);else if(N.tag!==4&&N.tag!==27&&N.child!==null){N.child.return=N,N=N.child;continue}if(N===r)break e;for(;N.sibling===null;){if(N.return===null||N.return===r)break e;N=N.return}N.sibling.return=N.return,N=N.sibling}r.stateNode=v;e:switch(pn(v,g,d),g){case"button":case"input":case"select":case"textarea":d=!!d.autoFocus;break e;case"img":d=!0;break e;default:d=!1}d&&Ra(r)}}return At(r),Im(r,r.type,n===null?null:n.memoizedProps,r.pendingProps,l),null;case 6:if(n&&r.stateNode!=null)n.memoizedProps!==d&&Ra(r);else{if(typeof d!="string"&&r.stateNode===null)throw Error(i(166));if(n=we.current,eo(r)){if(n=r.stateNode,l=r.memoizedProps,d=null,g=fn,g!==null)switch(g.tag){case 27:case 5:d=g.memoizedProps}n[Ct]=r,n=!!(n.nodeValue===l||d!==null&&d.suppressHydrationWarning===!0||D1(n.nodeValue,l)),n||oi(r,!0)}else n=gu(n).createTextNode(d),n[Ct]=r,r.stateNode=n}return At(r),null;case 31:if(l=r.memoizedState,n===null||n.memoizedState!==null){if(d=eo(r),l!==null){if(n===null){if(!d)throw Error(i(318));if(n=r.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(i(557));n[Ct]=r}else nr(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;At(r),n=!1}else l=Yh(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=l),n=!0;if(!n)return r.flags&256?(Wn(r),r):(Wn(r),null);if((r.flags&128)!==0)throw Error(i(558))}return At(r),null;case 13:if(d=r.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(g=eo(r),d!==null&&d.dehydrated!==null){if(n===null){if(!g)throw Error(i(318));if(g=r.memoizedState,g=g!==null?g.dehydrated:null,!g)throw Error(i(317));g[Ct]=r}else nr(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;At(r),g=!1}else g=Yh(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=g),g=!0;if(!g)return r.flags&256?(Wn(r),r):(Wn(r),null)}return Wn(r),(r.flags&128)!==0?(r.lanes=l,r):(l=d!==null,n=n!==null&&n.memoizedState!==null,l&&(d=r.child,g=null,d.alternate!==null&&d.alternate.memoizedState!==null&&d.alternate.memoizedState.cachePool!==null&&(g=d.alternate.memoizedState.cachePool.pool),v=null,d.memoizedState!==null&&d.memoizedState.cachePool!==null&&(v=d.memoizedState.cachePool.pool),v!==g&&(d.flags|=2048)),l!==n&&l&&(r.child.flags|=8192),tu(r,r.updateQueue),At(r),null);case 4:return Ce(),n===null&&rp(r.stateNode.containerInfo),At(r),null;case 10:return Ma(r.type),At(r),null;case 19:if(K(Ut),d=r.memoizedState,d===null)return At(r),null;if(g=(r.flags&128)!==0,v=d.rendering,v===null)if(g)Gl(d,!1);else{if(Bt!==0||n!==null&&(n.flags&128)!==0)for(n=r.child;n!==null;){if(v=Fd(n),v!==null){for(r.flags|=128,Gl(d,!1),n=v.updateQueue,r.updateQueue=n,tu(r,n),r.subtreeFlags=0,n=l,l=r.child;l!==null;)cv(l,n),l=l.sibling;return J(Ut,Ut.current&1|2),nt&&Ta(r,d.treeForkCount),r.child}n=n.sibling}d.tail!==null&&Ot()>ru&&(r.flags|=128,g=!0,Gl(d,!1),r.lanes=4194304)}else{if(!g)if(n=Fd(v),n!==null){if(r.flags|=128,g=!0,n=n.updateQueue,r.updateQueue=n,tu(r,n),Gl(d,!0),d.tail===null&&d.tailMode==="hidden"&&!v.alternate&&!nt)return At(r),null}else 2*Ot()-d.renderingStartTime>ru&&l!==536870912&&(r.flags|=128,g=!0,Gl(d,!1),r.lanes=4194304);d.isBackwards?(v.sibling=r.child,r.child=v):(n=d.last,n!==null?n.sibling=v:r.child=v,d.last=v)}return d.tail!==null?(n=d.tail,d.rendering=n,d.tail=n.sibling,d.renderingStartTime=Ot(),n.sibling=null,l=Ut.current,J(Ut,g?l&1|2:l&1),nt&&Ta(r,d.treeForkCount),n):(At(r),null);case 22:case 23:return Wn(r),om(),d=r.memoizedState!==null,n!==null?n.memoizedState!==null!==d&&(r.flags|=8192):d&&(r.flags|=8192),d?(l&536870912)!==0&&(r.flags&128)===0&&(At(r),r.subtreeFlags&6&&(r.flags|=8192)):At(r),l=r.updateQueue,l!==null&&tu(r,l.retryQueue),l=null,n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(l=n.memoizedState.cachePool.pool),d=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(d=r.memoizedState.cachePool.pool),d!==l&&(r.flags|=2048),n!==null&&K(ir),null;case 24:return l=null,n!==null&&(l=n.memoizedState.cache),r.memoizedState.cache!==l&&(r.flags|=2048),Ma(Kt),At(r),null;case 25:return null;case 30:return null}throw Error(i(156,r.tag))}function jM(n,r){switch(Wh(r),r.tag){case 1:return n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 3:return Ma(Kt),Ce(),n=r.flags,(n&65536)!==0&&(n&128)===0?(r.flags=n&-65537|128,r):null;case 26:case 27:case 5:return Ve(r),null;case 31:if(r.memoizedState!==null){if(Wn(r),r.alternate===null)throw Error(i(340));nr()}return n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 13:if(Wn(r),n=r.memoizedState,n!==null&&n.dehydrated!==null){if(r.alternate===null)throw Error(i(340));nr()}return n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 19:return K(Ut),null;case 4:return Ce(),null;case 10:return Ma(r.type),null;case 22:case 23:return Wn(r),om(),n!==null&&K(ir),n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 24:return Ma(Kt),null;case 25:return null;default:return null}}function zb(n,r){switch(Wh(r),r.tag){case 3:Ma(Kt),Ce();break;case 26:case 27:case 5:Ve(r);break;case 4:Ce();break;case 31:r.memoizedState!==null&&Wn(r);break;case 13:Wn(r);break;case 19:K(Ut);break;case 10:Ma(r.type);break;case 22:case 23:Wn(r),om(),n!==null&&K(ir);break;case 24:Ma(Kt)}}function Yl(n,r){try{var l=r.updateQueue,d=l!==null?l.lastEffect:null;if(d!==null){var g=d.next;l=g;do{if((l.tag&n)===n){d=void 0;var v=l.create,N=l.inst;d=v(),N.destroy=d}l=l.next}while(l!==g)}}catch(A){mt(r,r.return,A)}}function mi(n,r,l){try{var d=r.updateQueue,g=d!==null?d.lastEffect:null;if(g!==null){var v=g.next;d=v;do{if((d.tag&n)===n){var N=d.inst,A=N.destroy;if(A!==void 0){N.destroy=void 0,g=r;var z=l,q=A;try{q()}catch(Q){mt(g,z,Q)}}}d=d.next}while(d!==v)}}catch(Q){mt(r,r.return,Q)}}function Lb(n){var r=n.updateQueue;if(r!==null){var l=n.stateNode;try{Tv(r,l)}catch(d){mt(n,n.return,d)}}}function Ib(n,r,l){l.props=dr(n.type,n.memoizedProps),l.state=n.memoizedState;try{l.componentWillUnmount()}catch(d){mt(n,r,d)}}function Kl(n,r){try{var l=n.ref;if(l!==null){switch(n.tag){case 26:case 27:case 5:var d=n.stateNode;break;case 30:d=n.stateNode;break;default:d=n.stateNode}typeof l=="function"?n.refCleanup=l(d):l.current=d}}catch(g){mt(n,r,g)}}function Ys(n,r){var l=n.ref,d=n.refCleanup;if(l!==null)if(typeof d=="function")try{d()}catch(g){mt(n,r,g)}finally{n.refCleanup=null,n=n.alternate,n!=null&&(n.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(g){mt(n,r,g)}else l.current=null}function Vb(n){var r=n.type,l=n.memoizedProps,d=n.stateNode;try{e:switch(r){case"button":case"input":case"select":case"textarea":l.autoFocus&&d.focus();break e;case"img":l.src?d.src=l.src:l.srcSet&&(d.srcset=l.srcSet)}}catch(g){mt(n,n.return,g)}}function Vm(n,r,l){try{var d=n.stateNode;UM(d,n.type,l,r),d[Ee]=r}catch(g){mt(n,n.return,g)}}function $b(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27&&wi(n.type)||n.tag===4}function $m(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||$b(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.tag===27&&wi(n.type)||n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function Bm(n,r,l){var d=n.tag;if(d===5||d===6)n=n.stateNode,r?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(n,r):(r=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,r.appendChild(n),l=l._reactRootContainer,l!=null||r.onclick!==null||(r.onclick=Sa));else if(d!==4&&(d===27&&wi(n.type)&&(l=n.stateNode,r=null),n=n.child,n!==null))for(Bm(n,r,l),n=n.sibling;n!==null;)Bm(n,r,l),n=n.sibling}function nu(n,r,l){var d=n.tag;if(d===5||d===6)n=n.stateNode,r?l.insertBefore(n,r):l.appendChild(n);else if(d!==4&&(d===27&&wi(n.type)&&(l=n.stateNode),n=n.child,n!==null))for(nu(n,r,l),n=n.sibling;n!==null;)nu(n,r,l),n=n.sibling}function Bb(n){var r=n.stateNode,l=n.memoizedProps;try{for(var d=n.type,g=r.attributes;g.length;)r.removeAttributeNode(g[0]);pn(r,d,l),r[Ct]=n,r[Ee]=l}catch(v){mt(n,n.return,v)}}var _a=!1,Zt=!1,Fm=!1,Fb=typeof WeakSet=="function"?WeakSet:Set,ln=null;function NM(n,r){if(n=n.containerInfo,cp=Nu,n=ev(n),Ph(n)){if("selectionStart"in n)var l={start:n.selectionStart,end:n.selectionEnd};else e:{l=(l=n.ownerDocument)&&l.defaultView||window;var d=l.getSelection&&l.getSelection();if(d&&d.rangeCount!==0){l=d.anchorNode;var g=d.anchorOffset,v=d.focusNode;d=d.focusOffset;try{l.nodeType,v.nodeType}catch{l=null;break e}var N=0,A=-1,z=-1,q=0,Q=0,te=n,W=null;t:for(;;){for(var Y;te!==l||g!==0&&te.nodeType!==3||(A=N+g),te!==v||d!==0&&te.nodeType!==3||(z=N+d),te.nodeType===3&&(N+=te.nodeValue.length),(Y=te.firstChild)!==null;)W=te,te=Y;for(;;){if(te===n)break t;if(W===l&&++q===g&&(A=N),W===v&&++Q===d&&(z=N),(Y=te.nextSibling)!==null)break;te=W,W=te.parentNode}te=Y}l=A===-1||z===-1?null:{start:A,end:z}}else l=null}l=l||{start:0,end:0}}else l=null;for(dp={focusedElem:n,selectionRange:l},Nu=!1,ln=r;ln!==null;)if(r=ln,n=r.child,(r.subtreeFlags&1028)!==0&&n!==null)n.return=r,ln=n;else for(;ln!==null;){switch(r=ln,v=r.alternate,n=r.flags,r.tag){case 0:if((n&4)!==0&&(n=r.updateQueue,n=n!==null?n.events:null,n!==null))for(l=0;l<n.length;l++)g=n[l],g.ref.impl=g.nextImpl;break;case 11:case 15:break;case 1:if((n&1024)!==0&&v!==null){n=void 0,l=r,g=v.memoizedProps,v=v.memoizedState,d=l.stateNode;try{var xe=dr(l.type,g);n=d.getSnapshotBeforeUpdate(xe,v),d.__reactInternalSnapshotBeforeUpdate=n}catch(Ae){mt(l,l.return,Ae)}}break;case 3:if((n&1024)!==0){if(n=r.stateNode.containerInfo,l=n.nodeType,l===9)hp(n);else if(l===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":hp(n);break;default:n.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((n&1024)!==0)throw Error(i(163))}if(n=r.sibling,n!==null){n.return=r.return,ln=n;break}ln=r.return}}function Hb(n,r,l){var d=l.flags;switch(l.tag){case 0:case 11:case 15:za(n,l),d&4&&Yl(5,l);break;case 1:if(za(n,l),d&4)if(n=l.stateNode,r===null)try{n.componentDidMount()}catch(N){mt(l,l.return,N)}else{var g=dr(l.type,r.memoizedProps);r=r.memoizedState;try{n.componentDidUpdate(g,r,n.__reactInternalSnapshotBeforeUpdate)}catch(N){mt(l,l.return,N)}}d&64&&Lb(l),d&512&&Kl(l,l.return);break;case 3:if(za(n,l),d&64&&(n=l.updateQueue,n!==null)){if(r=null,l.child!==null)switch(l.child.tag){case 27:case 5:r=l.child.stateNode;break;case 1:r=l.child.stateNode}try{Tv(n,r)}catch(N){mt(l,l.return,N)}}break;case 27:r===null&&d&4&&Bb(l);case 26:case 5:za(n,l),r===null&&d&4&&Vb(l),d&512&&Kl(l,l.return);break;case 12:za(n,l);break;case 31:za(n,l),d&4&&Wb(n,l);break;case 13:za(n,l),d&4&&Gb(n,l),d&64&&(n=l.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&(l=OM.bind(null,l),ZM(n,l))));break;case 22:if(d=l.memoizedState!==null||_a,!d){r=r!==null&&r.memoizedState!==null||Zt,g=_a;var v=Zt;_a=d,(Zt=r)&&!v?La(n,l,(l.subtreeFlags&8772)!==0):za(n,l),_a=g,Zt=v}break;case 30:break;default:za(n,l)}}function Ub(n){var r=n.alternate;r!==null&&(n.alternate=null,Ub(r)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(r=n.stateNode,r!==null&&$r(r)),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}var Rt=null,On=!1;function Pa(n,r,l){for(l=l.child;l!==null;)qb(n,r,l),l=l.sibling}function qb(n,r,l){if(ue&&typeof ue.onCommitFiberUnmount=="function")try{ue.onCommitFiberUnmount(rs,l)}catch{}switch(l.tag){case 26:Zt||Ys(l,r),Pa(n,r,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Zt||Ys(l,r);var d=Rt,g=On;wi(l.type)&&(Rt=l.stateNode,On=!1),Pa(n,r,l),ac(l.stateNode),Rt=d,On=g;break;case 5:Zt||Ys(l,r);case 6:if(d=Rt,g=On,Rt=null,Pa(n,r,l),Rt=d,On=g,Rt!==null)if(On)try{(Rt.nodeType===9?Rt.body:Rt.nodeName==="HTML"?Rt.ownerDocument.body:Rt).removeChild(l.stateNode)}catch(v){mt(l,r,v)}else try{Rt.removeChild(l.stateNode)}catch(v){mt(l,r,v)}break;case 18:Rt!==null&&(On?(n=Rt,L1(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,l.stateNode),jo(n)):L1(Rt,l.stateNode));break;case 4:d=Rt,g=On,Rt=l.stateNode.containerInfo,On=!0,Pa(n,r,l),Rt=d,On=g;break;case 0:case 11:case 14:case 15:mi(2,l,r),Zt||mi(4,l,r),Pa(n,r,l);break;case 1:Zt||(Ys(l,r),d=l.stateNode,typeof d.componentWillUnmount=="function"&&Ib(l,r,d)),Pa(n,r,l);break;case 21:Pa(n,r,l);break;case 22:Zt=(d=Zt)||l.memoizedState!==null,Pa(n,r,l),Zt=d;break;default:Pa(n,r,l)}}function Wb(n,r){if(r.memoizedState===null&&(n=r.alternate,n!==null&&(n=n.memoizedState,n!==null))){n=n.dehydrated;try{jo(n)}catch(l){mt(r,r.return,l)}}}function Gb(n,r){if(r.memoizedState===null&&(n=r.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null))))try{jo(n)}catch(l){mt(r,r.return,l)}}function SM(n){switch(n.tag){case 31:case 13:case 19:var r=n.stateNode;return r===null&&(r=n.stateNode=new Fb),r;case 22:return n=n.stateNode,r=n._retryCache,r===null&&(r=n._retryCache=new Fb),r;default:throw Error(i(435,n.tag))}}function su(n,r){var l=SM(n);r.forEach(function(d){if(!l.has(d)){l.add(d);var g=RM.bind(null,n,d);d.then(g,g)}})}function Rn(n,r){var l=r.deletions;if(l!==null)for(var d=0;d<l.length;d++){var g=l[d],v=n,N=r,A=N;e:for(;A!==null;){switch(A.tag){case 27:if(wi(A.type)){Rt=A.stateNode,On=!1;break e}break;case 5:Rt=A.stateNode,On=!1;break e;case 3:case 4:Rt=A.stateNode.containerInfo,On=!0;break e}A=A.return}if(Rt===null)throw Error(i(160));qb(v,N,g),Rt=null,On=!1,v=g.alternate,v!==null&&(v.return=null),g.return=null}if(r.subtreeFlags&13886)for(r=r.child;r!==null;)Yb(r,n),r=r.sibling}var Es=null;function Yb(n,r){var l=n.alternate,d=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:Rn(r,n),_n(n),d&4&&(mi(3,n,n.return),Yl(3,n),mi(5,n,n.return));break;case 1:Rn(r,n),_n(n),d&512&&(Zt||l===null||Ys(l,l.return)),d&64&&_a&&(n=n.updateQueue,n!==null&&(d=n.callbacks,d!==null&&(l=n.shared.hiddenCallbacks,n.shared.hiddenCallbacks=l===null?d:l.concat(d))));break;case 26:var g=Es;if(Rn(r,n),_n(n),d&512&&(Zt||l===null||Ys(l,l.return)),d&4){var v=l!==null?l.memoizedState:null;if(d=n.memoizedState,l===null)if(d===null)if(n.stateNode===null){e:{d=n.type,l=n.memoizedProps,g=g.ownerDocument||g;t:switch(d){case"title":v=g.getElementsByTagName("title")[0],(!v||v[An]||v[Ct]||v.namespaceURI==="http://www.w3.org/2000/svg"||v.hasAttribute("itemprop"))&&(v=g.createElement(d),g.head.insertBefore(v,g.querySelector("head > title"))),pn(v,d,l),v[Ct]=n,on(v),d=v;break e;case"link":var N=Y1("link","href",g).get(d+(l.href||""));if(N){for(var A=0;A<N.length;A++)if(v=N[A],v.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&v.getAttribute("rel")===(l.rel==null?null:l.rel)&&v.getAttribute("title")===(l.title==null?null:l.title)&&v.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){N.splice(A,1);break t}}v=g.createElement(d),pn(v,d,l),g.head.appendChild(v);break;case"meta":if(N=Y1("meta","content",g).get(d+(l.content||""))){for(A=0;A<N.length;A++)if(v=N[A],v.getAttribute("content")===(l.content==null?null:""+l.content)&&v.getAttribute("name")===(l.name==null?null:l.name)&&v.getAttribute("property")===(l.property==null?null:l.property)&&v.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&v.getAttribute("charset")===(l.charSet==null?null:l.charSet)){N.splice(A,1);break t}}v=g.createElement(d),pn(v,d,l),g.head.appendChild(v);break;default:throw Error(i(468,d))}v[Ct]=n,on(v),d=v}n.stateNode=d}else K1(g,n.type,n.stateNode);else n.stateNode=G1(g,d,n.memoizedProps);else v!==d?(v===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):v.count--,d===null?K1(g,n.type,n.stateNode):G1(g,d,n.memoizedProps)):d===null&&n.stateNode!==null&&Vm(n,n.memoizedProps,l.memoizedProps)}break;case 27:Rn(r,n),_n(n),d&512&&(Zt||l===null||Ys(l,l.return)),l!==null&&d&4&&Vm(n,n.memoizedProps,l.memoizedProps);break;case 5:if(Rn(r,n),_n(n),d&512&&(Zt||l===null||Ys(l,l.return)),n.flags&32){g=n.stateNode;try{Ur(g,"")}catch(xe){mt(n,n.return,xe)}}d&4&&n.stateNode!=null&&(g=n.memoizedProps,Vm(n,g,l!==null?l.memoizedProps:g)),d&1024&&(Fm=!0);break;case 6:if(Rn(r,n),_n(n),d&4){if(n.stateNode===null)throw Error(i(162));d=n.memoizedProps,l=n.stateNode;try{l.nodeValue=d}catch(xe){mt(n,n.return,xe)}}break;case 3:if(vu=null,g=Es,Es=xu(r.containerInfo),Rn(r,n),Es=g,_n(n),d&4&&l!==null&&l.memoizedState.isDehydrated)try{jo(r.containerInfo)}catch(xe){mt(n,n.return,xe)}Fm&&(Fm=!1,Kb(n));break;case 4:d=Es,Es=xu(n.stateNode.containerInfo),Rn(r,n),_n(n),Es=d;break;case 12:Rn(r,n),_n(n);break;case 31:Rn(r,n),_n(n),d&4&&(d=n.updateQueue,d!==null&&(n.updateQueue=null,su(n,d)));break;case 13:Rn(r,n),_n(n),n.child.flags&8192&&n.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(iu=Ot()),d&4&&(d=n.updateQueue,d!==null&&(n.updateQueue=null,su(n,d)));break;case 22:g=n.memoizedState!==null;var z=l!==null&&l.memoizedState!==null,q=_a,Q=Zt;if(_a=q||g,Zt=Q||z,Rn(r,n),Zt=Q,_a=q,_n(n),d&8192)e:for(r=n.stateNode,r._visibility=g?r._visibility&-2:r._visibility|1,g&&(l===null||z||_a||Zt||ur(n)),l=null,r=n;;){if(r.tag===5||r.tag===26){if(l===null){z=l=r;try{if(v=z.stateNode,g)N=v.style,typeof N.setProperty=="function"?N.setProperty("display","none","important"):N.display="none";else{A=z.stateNode;var te=z.memoizedProps.style,W=te!=null&&te.hasOwnProperty("display")?te.display:null;A.style.display=W==null||typeof W=="boolean"?"":(""+W).trim()}}catch(xe){mt(z,z.return,xe)}}}else if(r.tag===6){if(l===null){z=r;try{z.stateNode.nodeValue=g?"":z.memoizedProps}catch(xe){mt(z,z.return,xe)}}}else if(r.tag===18){if(l===null){z=r;try{var Y=z.stateNode;g?I1(Y,!0):I1(z.stateNode,!1)}catch(xe){mt(z,z.return,xe)}}}else if((r.tag!==22&&r.tag!==23||r.memoizedState===null||r===n)&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===n)break e;for(;r.sibling===null;){if(r.return===null||r.return===n)break e;l===r&&(l=null),r=r.return}l===r&&(l=null),r.sibling.return=r.return,r=r.sibling}d&4&&(d=n.updateQueue,d!==null&&(l=d.retryQueue,l!==null&&(d.retryQueue=null,su(n,l))));break;case 19:Rn(r,n),_n(n),d&4&&(d=n.updateQueue,d!==null&&(n.updateQueue=null,su(n,d)));break;case 30:break;case 21:break;default:Rn(r,n),_n(n)}}function _n(n){var r=n.flags;if(r&2){try{for(var l,d=n.return;d!==null;){if($b(d)){l=d;break}d=d.return}if(l==null)throw Error(i(160));switch(l.tag){case 27:var g=l.stateNode,v=$m(n);nu(n,v,g);break;case 5:var N=l.stateNode;l.flags&32&&(Ur(N,""),l.flags&=-33);var A=$m(n);nu(n,A,N);break;case 3:case 4:var z=l.stateNode.containerInfo,q=$m(n);Bm(n,q,z);break;default:throw Error(i(161))}}catch(Q){mt(n,n.return,Q)}n.flags&=-3}r&4096&&(n.flags&=-4097)}function Kb(n){if(n.subtreeFlags&1024)for(n=n.child;n!==null;){var r=n;Kb(r),r.tag===5&&r.flags&1024&&r.stateNode.reset(),n=n.sibling}}function za(n,r){if(r.subtreeFlags&8772)for(r=r.child;r!==null;)Hb(n,r.alternate,r),r=r.sibling}function ur(n){for(n=n.child;n!==null;){var r=n;switch(r.tag){case 0:case 11:case 14:case 15:mi(4,r,r.return),ur(r);break;case 1:Ys(r,r.return);var l=r.stateNode;typeof l.componentWillUnmount=="function"&&Ib(r,r.return,l),ur(r);break;case 27:ac(r.stateNode);case 26:case 5:Ys(r,r.return),ur(r);break;case 22:r.memoizedState===null&&ur(r);break;case 30:ur(r);break;default:ur(r)}n=n.sibling}}function La(n,r,l){for(l=l&&(r.subtreeFlags&8772)!==0,r=r.child;r!==null;
vendor: 8,040 bytes, line 8
8){var d=r.alternate,g=n,v=r,N=v.flags;switch(v.tag){case 0:case 11:case 15:La(g,v,l),Yl(4,v);break;case 1:if(La(g,v,l),d=v,g=d.stateNode,typeof g.componentDidMount=="function")try{g.componentDidMount()}catch(q){mt(d,d.return,q)}if(d=v,g=d.updateQueue,g!==null){var A=d.stateNode;try{var z=g.shared.hiddenCallbacks;if(z!==null)for(g.shared.hiddenCallbacks=null,g=0;g<z.length;g++)kv(z[g],A)}catch(q){mt(d,d.return,q)}}l&&N&64&&Lb(v),Kl(v,v.return);break;case 27:Bb(v);case 26:case 5:La(g,v,l),l&&d===null&&N&4&&Vb(v),Kl(v,v.return);break;case 12:La(g,v,l);break;case 31:La(g,v,l),l&&N&4&&Wb(g,v);break;case 13:La(g,v,l),l&&N&4&&Gb(g,v);break;case 22:v.memoizedState===null&&La(g,v,l),Kl(v,v.return);break;case 30:break;default:La(g,v,l)}r=r.sibling}}function Hm(n,r){var l=null;n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(l=n.memoizedState.cachePool.pool),n=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(n=r.memoizedState.cachePool.pool),n!==l&&(n!=null&&n.refCount++,l!=null&&Pl(l))}function Um(n,r){n=null,r.alternate!==null&&(n=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==n&&(r.refCount++,n!=null&&Pl(n))}function Ms(n,r,l,d){if(r.subtreeFlags&10256)for(r=r.child;r!==null;)Qb(n,r,l,d),r=r.sibling}function Qb(n,r,l,d){var g=r.flags;switch(r.tag){case 0:case 11:case 15:Ms(n,r,l,d),g&2048&&Yl(9,r);break;case 1:Ms(n,r,l,d);break;case 3:Ms(n,r,l,d),g&2048&&(n=null,r.alternate!==null&&(n=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==n&&(r.refCount++,n!=null&&Pl(n)));break;case 12:if(g&2048){Ms(n,r,l,d),n=r.stateNode;try{var v=r.memoizedProps,N=v.id,A=v.onPostCommit;typeof A=="function"&&A(N,r.alternate===null?"mount":"update",n.passiveEffectDuration,-0)}catch(z){mt(r,r.return,z)}}else Ms(n,r,l,d);break;case 31:Ms(n,r,l,d);break;case 13:Ms(n,r,l,d);break;case 23:break;case 22:v=r.stateNode,N=r.alternate,r.memoizedState!==null?v._visibility&2?Ms(n,r,l,d):Ql(n,r):v._visibility&2?Ms(n,r,l,d):(v._visibility|=2,uo(n,r,l,d,(r.subtreeFlags&10256)!==0||!1)),g&2048&&Hm(N,r);break;case 24:Ms(n,r,l,d),g&2048&&Um(r.alternate,r);break;default:Ms(n,r,l,d)}}function uo(n,r,l,d,g){for(g=g&&((r.subtreeFlags&10256)!==0||!1),r=r.child;r!==null;){var v=n,N=r,A=l,z=d,q=N.flags;switch(N.tag){case 0:case 11:case 15:uo(v,N,A,z,g),Yl(8,N);break;case 23:break;case 22:var Q=N.stateNode;N.memoizedState!==null?Q._visibility&2?uo(v,N,A,z,g):Ql(v,N):(Q._visibility|=2,uo(v,N,A,z,g)),g&&q&2048&&Hm(N.alternate,N);break;case 24:uo(v,N,A,z,g),g&&q&2048&&Um(N.alternate,N);break;default:uo(v,N,A,z,g)}r=r.sibling}}function Ql(n,r){if(r.subtreeFlags&10256)for(r=r.child;r!==null;){var l=n,d=r,g=d.flags;switch(d.tag){case 22:Ql(l,d),g&2048&&Hm(d.alternate,d);break;case 24:Ql(l,d),g&2048&&Um(d.alternate,d);break;default:Ql(l,d)}r=r.sibling}}var Xl=8192;function fo(n,r,l){if(n.subtreeFlags&Xl)for(n=n.child;n!==null;)Xb(n,r,l),n=n.sibling}function Xb(n,r,l){switch(n.tag){case 26:fo(n,r,l),n.flags&Xl&&n.memoizedState!==null&&dA(l,Es,n.memoizedState,n.memoizedProps);break;case 5:fo(n,r,l);break;case 3:case 4:var d=Es;Es=xu(n.stateNode.containerInfo),fo(n,r,l),Es=d;break;case 22:n.memoizedState===null&&(d=n.alternate,d!==null&&d.memoizedState!==null?(d=Xl,Xl=16777216,fo(n,r,l),Xl=d):fo(n,r,l));break;default:fo(n,r,l)}}function Zb(n){var r=n.alternate;if(r!==null&&(n=r.child,n!==null)){r.child=null;do r=n.sibling,n.sibling=null,n=r;while(n!==null)}}function Zl(n){var r=n.deletions;if((n.flags&16)!==0){if(r!==null)for(var l=0;l<r.length;l++){var d=r[l];ln=d,e1(d,n)}Zb(n)}if(n.subtreeFlags&10256)for(n=n.child;n!==null;)Jb(n),n=n.sibling}function Jb(n){switch(n.tag){case 0:case 11:case 15:Zl(n),n.flags&2048&&mi(9,n,n.return);break;case 3:Zl(n);break;case 12:Zl(n);break;case 22:var r=n.stateNode;n.memoizedState!==null&&r._visibility&2&&(n.return===null||n.return.tag!==13)?(r._visibility&=-3,au(n)):Zl(n);break;default:Zl(n)}}function au(n){var r=n.deletions;if((n.flags&16)!==0){if(r!==null)for(var l=0;l<r.length;l++){var d=r[l];ln=d,e1(d,n)}Zb(n)}for(n=n.child;n!==null;){switch(r=n,r.tag){case 0:case 11:case 15:mi(8,r,r.return),au(r);break;case 22:l=r.stateNode,l._visibility&2&&(l._visibility&=-3,au(r));break;default:au(r)}n=n.sibling}}function e1(n,r){for(;ln!==null;){var l=ln;switch(l.tag){case 0:case 11:case 15:mi(8,l,r);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var d=l.memoizedState.cachePool.pool;d!=null&&d.refCount++}break;case 24:Pl(l.memoizedState.cache)}if(d=l.child,d!==null)d.return=l,ln=d;else e:for(l=n;ln!==null;){d=ln;var g=d.sibling,v=d.return;if(Ub(d),d===l){ln=null;break e}if(g!==null){g.return=v,ln=g;break e}ln=v}}}var CM={getCacheForType:function(n){var r=hn(Kt),l=r.data.get(n);return l===void 0&&(l=n(),r.data.set(n,l)),l},cacheSignal:function(){return hn(Kt).controller.signal}},kM=typeof WeakMap=="function"?WeakMap:Map,dt=0,jt=null,Ze=null,et=0,ht=0,Gn=null,pi=!1,ho=!1,qm=!1,Ia=0,Bt=0,gi=0,fr=0,Wm=0,Yn=0,mo=0,Jl=null,Pn=null,Gm=!1,iu=0,t1=0,ru=1/0,ou=null,xi=null,tn=0,yi=null,po=null,Va=0,Ym=0,Km=null,n1=null,ec=0,Qm=null;function Kn(){return(dt&2)!==0&&et!==0?et&-et:I.T!==null?np():je()}function s1(){if(Yn===0)if((et&536870912)===0||nt){var n=rt;rt<<=1,(rt&3932160)===0&&(rt=262144),Yn=n}else Yn=536870912;return n=qn.current,n!==null&&(n.flags|=32),Yn}function zn(n,r,l){(n===jt&&(ht===2||ht===9)||n.cancelPendingCommit!==null)&&(go(n,0),vi(n,et,Yn,!1)),Ki(n,l),((dt&2)===0||n!==jt)&&(n===jt&&((dt&2)===0&&(fr|=l),Bt===4&&vi(n,et,Yn,!1)),Ks(n))}function a1(n,r,l){if((dt&6)!==0)throw Error(i(327));var d=!l&&(r&127)===0&&(r&n.expiredLanes)===0||wa(n,r),g=d?MM(n,r):Zm(n,r,!0),v=d;do{if(g===0){ho&&!d&&vi(n,r,0,!1);break}else{if(l=n.current.alternate,v&&!TM(l)){g=Zm(n,r,!1),v=!1;continue}if(g===2){if(v=r,n.errorRecoveryDisabledLanes&v)var N=0;else N=n.pendingLanes&-536870913,N=N!==0?N:N&536870912?536870912:0;if(N!==0){r=N;e:{var A=n;g=Jl;var z=A.current.memoizedState.isDehydrated;if(z&&(go(A,N).flags|=256),N=Zm(A,N,!1),N!==2){if(qm&&!z){A.errorRecoveryDisabledLanes|=v,fr|=v,g=4;break e}v=Pn,Pn=g,v!==null&&(Pn===null?Pn=v:Pn.push.apply(Pn,v))}g=N}if(v=!1,g!==2)continue}}if(g===1){go(n,0),vi(n,r,0,!0);break}e:{switch(d=n,v=g,v){case 0:case 1:throw Error(i(345));case 4:if((r&4194048)!==r)break;case 6:vi(d,r,Yn,!pi);break e;case 2:Pn=null;break;case 3:case 5:break;default:throw Error(i(329))}if((r&62914560)===r&&(g=iu+300-Ot(),10<g)){if(vi(d,r,Yn,!pi),ni(d,0,!0)!==0)break e;Va=r,d.timeoutHandle=P1(i1.bind(null,d,l,Pn,ou,Gm,r,Yn,fr,mo,pi,v,"Throttled",-0,0),g);break e}i1(d,l,Pn,ou,Gm,r,Yn,fr,mo,pi,v,null,-0,0)}}break}while(!0);Ks(n)}function i1(n,r,l,d,g,v,N,A,z,q,Q,te,W,Y){if(n.timeoutHandle=-1,te=r.subtreeFlags,te&8192||(te&16785408)===16785408){te={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Sa},Xb(r,v,te);var xe=(v&62914560)===v?iu-Ot():(v&4194048)===v?t1-Ot():0;if(xe=uA(te,xe),xe!==null){Va=v,n.cancelPendingCommit=xe(h1.bind(null,n,r,v,l,d,g,N,A,z,Q,te,null,W,Y)),vi(n,v,N,!q);return}}h1(n,r,v,l,d,g,N,A,z)}function TM(n){for(var r=n;;){var l=r.tag;if((l===0||l===11||l===15)&&r.flags&16384&&(l=r.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var d=0;d<l.length;d++){var g=l[d],v=g.getSnapshot;g=g.value;try{if(!Hn(v(),g))return!1}catch{return!1}}if(l=r.child,r.subtreeFlags&16384&&l!==null)l.return=r,r=l;else{if(r===n)break;for(;r.sibling===null;){if(r.return===null||r.return===n)return!0;r=r.return}r.sibling.return=r.return,r=r.sibling}}return!0}function vi(n,r,l,d){r&=~Wm,r&=~fr,n.suspendedLanes|=r,n.pingedLanes&=~r,d&&(n.warmLanes|=r),d=n.expirationTimes;for(var g=r;0<g;){var v=31-at(g),N=1<<v;d[v]=-1,g&=~N}l!==0&&pd(n,l,r)}function lu(){return(dt&6)===0?(tc(0),!1):!0}function Xm(){if(Ze!==null){if(ht===0)var n=Ze.return;else n=Ze,Ea=sr=null,hm(n),io=null,Ll=0,n=Ze;for(;n!==null;)zb(n.alternate,n),n=n.return;Ze=null}}function go(n,r){var l=n.timeoutHandle;l!==-1&&(n.timeoutHandle=-1,GM(l)),l=n.cancelPendingCommit,l!==null&&(n.cancelPendingCommit=null,l()),Va=0,
vendor: 4,091 bytes, line 8
8Xm(),jt=n,Ze=l=ka(n.current,null),et=r,ht=0,Gn=null,pi=!1,ho=wa(n,r),qm=!1,mo=Yn=Wm=fr=gi=Bt=0,Pn=Jl=null,Gm=!1,(r&8)!==0&&(r|=r&32);var d=n.entangledLanes;if(d!==0)for(n=n.entanglements,d&=r;0<d;){var g=31-at(d),v=1<<g;r|=n[g],d&=~v}return Ia=r,Md(),l}function r1(n,r){We=null,I.H=ql,r===ao||r===Ld?(r=jv(),ht=3):r===tm?(r=jv(),ht=4):ht=r===Mm?8:r!==null&&typeof r=="object"&&typeof r.then=="function"?6:1,Gn=r,Ze===null&&(Bt=1,Xd(n,ds(r,n.current)))}function o1(){var n=qn.current;return n===null?!0:(et&4194048)===et?ms===null:(et&62914560)===et||(et&536870912)!==0?n===ms:!1}function l1(){var n=I.H;return I.H=ql,n===null?ql:n}function c1(){var n=I.A;return I.A=CM,n}function cu(){Bt=4,pi||(et&4194048)!==et&&qn.current!==null||(ho=!0),(gi&134217727)===0&&(fr&134217727)===0||jt===null||vi(jt,et,Yn,!1)}function Zm(n,r,l){var d=dt;dt|=2;var g=l1(),v=c1();(jt!==n||et!==r)&&(ou=null,go(n,r)),r=!1;var N=Bt;e:do try{if(ht!==0&&Ze!==null){var A=Ze,z=Gn;switch(ht){case 8:Xm(),N=6;break e;case 3:case 2:case 9:case 6:qn.current===null&&(r=!0);var q=ht;if(ht=0,Gn=null,xo(n,A,z,q),l&&ho){N=0;break e}break;default:q=ht,ht=0,Gn=null,xo(n,A,z,q)}}EM(),N=Bt;break}catch(Q){r1(n,Q)}while(!0);return r&&n.shellSuspendCounter++,Ea=sr=null,dt=d,I.H=g,I.A=v,Ze===null&&(jt=null,et=0,Md()),N}function EM(){for(;Ze!==null;)d1(Ze)}function MM(n,r){var l=dt;dt|=2;var d=l1(),g=c1();jt!==n||et!==r?(ou=null,ru=Ot()+500,go(n,r)):ho=wa(n,r);e:do try{if(ht!==0&&Ze!==null){r=Ze;var v=Gn;t:switch(ht){case 1:ht=0,Gn=null,xo(n,r,v,1);break;case 2:case 9:if(bv(v)){ht=0,Gn=null,u1(r);break}r=function(){ht!==2&&ht!==9||jt!==n||(ht=7),Ks(n)},v.then(r,r);break e;case 3:ht=7;break e;case 4:ht=5;break e;case 7:bv(v)?(ht=0,Gn=null,u1(r)):(ht=0,Gn=null,xo(n,r,v,7));break;case 5:var N=null;switch(Ze.tag){case 26:N=Ze.memoizedState;case 5:case 27:var A=Ze;if(N?Q1(N):A.stateNode.complete){ht=0,Gn=null;var z=A.sibling;if(z!==null)Ze=z;else{var q=A.return;q!==null?(Ze=q,du(q)):Ze=null}break t}}ht=0,Gn=null,xo(n,r,v,5);break;case 6:ht=0,Gn=null,xo(n,r,v,6);break;case 8:Xm(),Bt=6;break e;default:throw Error(i(462))}}AM();break}catch(Q){r1(n,Q)}while(!0);return Ea=sr=null,I.H=d,I.A=g,dt=l,Ze!==null?0:(jt=null,et=0,Md(),Bt)}function AM(){for(;Ze!==null&&!un();)d1(Ze)}function d1(n){var r=_b(n.alternate,n,Ia);n.memoizedProps=n.pendingProps,r===null?du(n):Ze=r}function u1(n){var r=n,l=r.alternate;switch(r.tag){case 15:case 0:r=Eb(l,r,r.pendingProps,r.type,void 0,et);break;case 11:r=Eb(l,r,r.pendingProps,r.type.render,r.ref,et);break;case 5:hm(r);default:zb(l,r),r=Ze=cv(r,Ia),r=_b(l,r,Ia)}n.memoizedProps=n.pendingProps,r===null?du(n):Ze=r}function xo(n,r,l,d){Ea=sr=null,hm(r),io=null,Ll=0;var g=r.return;try{if(yM(n,g,r,l,et)){Bt=1,Xd(n,ds(l,n.current)),Ze=null;return}}catch(v){if(g!==null)throw Ze=g,v;Bt=1,Xd(n,ds(l,n.current)),Ze=null;return}r.flags&32768?(nt||d===1?n=!0:ho||(et&536870912)!==0?n=!1:(pi=n=!0,(d===2||d===9||d===3||d===6)&&(d=qn.current,d!==null&&d.tag===13&&(d.flags|=16384))),f1(r,n)):du(r)}function du(n){var r=n;do{if((r.flags&32768)!==0){f1(r,pi);return}n=r.return;var l=wM(r.alternate,r,Ia);if(l!==null){Ze=l;return}if(r=r.sibling,r!==null){Ze=r;return}Ze=r=n}while(r!==null);Bt===0&&(Bt=5)}function f1(n,r){do{var l=jM(n.alternate,n);if(l!==null){l.flags&=32767,Ze=l;return}if(l=n.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!r&&(n=n.sibling,n!==null)){Ze=n;return}Ze=n=l}while(n!==null);Bt=6,Ze=null}function h1(n,r,l,d,g,v,N,A,z){n.cancelPendingCommit=null;do uu();while(tn!==0);if((dt&6)!==0)throw Error(i(327));if(r!==null){if(r===n.current)throw Error(i(177));if(v=r.lanes|r.childLanes,v|=$h,wl(n,l,v,N,A,z),n===jt&&(Ze=jt=null,et=0),po=r,yi=n,Va=l,Ym=v,Km=g,n1=d,(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?(n.callbackNode=null,n.callbackPriority=0,_M(ks,function(){return y1(),null})):(n.callbackNode=null,n.callbackPriority=0),d=(r.flags&13878)!==0,(r.subtreeFlags&13878)!==0||d){d=I.T,I.T=null,g=H.p,H.p=2,N=dt,dt|=4;try{NM(n,r,l)}finally{dt=N,H.p=g,I.T=d}}tn=1,m1(),p1(),g1()}}function m1(){if(tn===1){tn=0;var n=yi,r=po,l=(r.flags&13878)!==0;
vendor: 17,596 bytes, lines 8-9
8if((r.subtreeFlags&13878)!==0||l){l=I.T,I.T=null;var d=H.p;H.p=2;var g=dt;dt|=4;try{Yb(r,n);var v=dp,N=ev(n.containerInfo),A=v.focusedElem,z=v.selectionRange;if(N!==A&&A&&A.ownerDocument&&Jy(A.ownerDocument.documentElement,A)){if(z!==null&&Ph(A)){var q=z.start,Q=z.end;if(Q===void 0&&(Q=q),"selectionStart"in A)A.selectionStart=q,A.selectionEnd=Math.min(Q,A.value.length);else{var te=A.ownerDocument||document,W=te&&te.defaultView||window;if(W.getSelection){var Y=W.getSelection(),xe=A.textContent.length,Ae=Math.min(z.start,xe),bt=z.end===void 0?Ae:Math.min(z.end,xe);!Y.extend&&Ae>bt&&(N=bt,bt=Ae,Ae=N);var B=Zy(A,Ae),V=Zy(A,bt);if(B&&V&&(Y.rangeCount!==1||Y.anchorNode!==B.node||Y.anchorOffset!==B.offset||Y.focusNode!==V.node||Y.focusOffset!==V.offset)){var U=te.createRange();U.setStart(B.node,B.offset),Y.removeAllRanges(),Ae>bt?(Y.addRange(U),Y.extend(V.node,V.offset)):(U.setEnd(V.node,V.offset),Y.addRange(U))}}}}for(te=[],Y=A;Y=Y.parentNode;)Y.nodeType===1&&te.push({element:Y,left:Y.scrollLeft,top:Y.scrollTop});for(typeof A.focus=="function"&&A.focus(),A=0;A<te.length;A++){var X=te[A];X.element.scrollLeft=X.left,X.element.scrollTop=X.top}}Nu=!!cp,dp=cp=null}finally{dt=g,H.p=d,I.T=l}}n.current=r,tn=2}}function p1(){if(tn===2){tn=0;var n=yi,r=po,l=(r.flags&8772)!==0;if((r.subtreeFlags&8772)!==0||l){l=I.T,I.T=null;var d=H.p;H.p=2;var g=dt;dt|=4;try{Hb(n,r.alternate,r)}finally{dt=g,H.p=d,I.T=l}}tn=3}}function g1(){if(tn===4||tn===3){tn=0,is();var n=yi,r=po,l=Va,d=n1;(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?tn=5:(tn=0,po=yi=null,x1(n,n.pendingLanes));var g=n.pendingLanes;if(g===0&&(xi=null),fe(l),r=r.stateNode,ue&&typeof ue.onCommitFiberRoot=="function")try{ue.onCommitFiberRoot(rs,r,void 0,(r.current.flags&128)===128)}catch{}if(d!==null){r=I.T,g=H.p,H.p=2,I.T=null;try{for(var v=n.onRecoverableError,N=0;N<d.length;N++){var A=d[N];v(A.value,{componentStack:A.stack})}}finally{I.T=r,H.p=g}}(Va&3)!==0&&uu(),Ks(n),g=n.pendingLanes,(l&261930)!==0&&(g&42)!==0?n===Qm?ec++:(ec=0,Qm=n):ec=0,tc(0)}}function x1(n,r){(n.pooledCacheLanes&=r)===0&&(r=n.pooledCache,r!=null&&(n.pooledCache=null,Pl(r)))}function uu(){return m1(),p1(),g1(),y1()}function y1(){if(tn!==5)return!1;var n=yi,r=Ym;Ym=0;var l=fe(Va),d=I.T,g=H.p;try{H.p=32>l?32:l,I.T=null,l=Km,Km=null;var v=yi,N=Va;if(tn=0,po=yi=null,Va=0,(dt&6)!==0)throw Error(i(331));var A=dt;if(dt|=4,Jb(v.current),Qb(v,v.current,N,l),dt=A,tc(0,!1),ue&&typeof ue.onPostCommitFiberRoot=="function")try{ue.onPostCommitFiberRoot(rs,v)}catch{}return!0}finally{H.p=g,I.T=d,x1(n,r)}}function v1(n,r,l){r=ds(l,r),r=Em(n.stateNode,r,2),n=ui(n,r,2),n!==null&&(Ki(n,2),Ks(n))}function mt(n,r,l){if(n.tag===3)v1(n,n,l);else for(;r!==null;){if(r.tag===3){v1(r,n,l);break}else if(r.tag===1){var d=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof d.componentDidCatch=="function"&&(xi===null||!xi.has(d))){n=ds(l,n),l=bb(2),d=ui(r,l,2),d!==null&&(wb(l,d,r,n),Ki(d,2),Ks(d));break}}r=r.return}}function Jm(n,r,l){var d=n.pingCache;if(d===null){d=n.pingCache=new kM;var g=new Set;d.set(r,g)}else g=d.get(r),g===void 0&&(g=new Set,d.set(r,g));g.has(l)||(qm=!0,g.add(l),n=DM.bind(null,n,r,l),r.then(n,n))}function DM(n,r,l){var d=n.pingCache;d!==null&&d.delete(r),n.pingedLanes|=n.suspendedLanes&l,n.warmLanes&=~l,jt===n&&(et&l)===l&&(Bt===4||Bt===3&&(et&62914560)===et&&300>Ot()-iu?(dt&2)===0&&go(n,0):Wm|=l,mo===et&&(mo=0)),Ks(n)}function b1(n,r){r===0&&(r=ja()),n=er(n,r),n!==null&&(Ki(n,r),Ks(n))}function OM(n){var r=n.memoizedState,l=0;r!==null&&(l=r.retryLane),b1(n,l)}function RM(n,r){var l=0;switch(n.tag){case 31:case 13:var d=n.stateNode,g=n.memoizedState;g!==null&&(l=g.retryLane);break;case 19:d=n.stateNode;break;case 22:d=n.stateNode._retryCache;break;default:throw Error(i(314))}d!==null&&d.delete(r),b1(n,l)}function _M(n,r){return as(n,r)}var fu=null,yo=null,ep=!1,hu=!1,tp=!1,bi=0;function Ks(n){n!==yo&&n.next===null&&(yo===null?fu=yo=n:yo=yo.next=n),hu=!0,ep||(ep=!0,zM())}function tc(n,r){if(!tp&&hu){tp=!0;do for(var l=!1,d=fu;d!==null;){if(n!==0){var g=d.pendingLanes;if(g===0)var v=0;else{var N=d.suspendedLanes,A=d.pingedLanes;v=(1<<31-at(42|n)+1)-1,v&=g&~(N&~A),v=v&201326741?v&201326741|1:v?v|2:0}v!==0&&(l=!0,S1(d,v))}else v=et,v=ni(d,d===jt?v:0,d.cancelPendingCommit!==null||d.timeoutHandle!==-1),(v&3)===0||wa(d,v)||(l=!0,S1(d,v));d=d.next}while(l);tp=!1}}function PM(){w1()}function w1(){hu=ep=!1;var n=0;bi!==0&&WM()&&(n=bi);for(var r=Ot(),l=null,d=fu;d!==null;){var g=d.next,v=j1(d,r);v===0?(d.next=null,l===null?fu=g:l.next=g,g===null&&(yo=l)):(l=d,(n!==0||(v&3)!==0)&&(hu=!0)),d=g}tn!==0&&tn!==5||tc(n),bi!==0&&(bi=0)}function j1(n,r){for(var l=n.suspendedLanes,d=n.pingedLanes,g=n.expirationTimes,v=n.pendingLanes&-62914561;0<v;){var N=31-at(v),A=1<<N,z=g[N];z===-1?((A&l)===0||(A&d)!==0)&&(g[N]=Vr(A,r)):z<=r&&(n.expiredLanes|=A),v&=~A}if(r=jt,l=et,l=ni(n,n===r?l:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),d=n.callbackNode,l===0||n===r&&(ht===2||ht===9)||n.cancelPendingCommit!==null)return d!==null&&d!==null&&Ss(d),n.callbackNode=null,n.callbackPriority=0;if((l&3)===0||wa(n,l)){if(r=l&-l,r===n.callbackPriority)return r;switch(d!==null&&Ss(d),fe(l)){case 2:case 8:l=Cs;break;case 32:l=ks;break;case 268435456:l=ti;break;default:l=ks}return d=N1.bind(null,n),l=as(l,d),n.callbackPriority=r,n.callbackNode=l,r}return d!==null&&d!==null&&Ss(d),n.callbackPriority=2,n.callbackNode=null,2}function N1(n,r){if(tn!==0&&tn!==5)return n.callbackNode=null,n.callbackPriority=0,null;var l=n.callbackNode;if(uu()&&n.callbackNode!==l)return null;var d=et;return d=ni(n,n===jt?d:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),d===0?null:(a1(n,d,r),j1(n,Ot()),n.callbackNode!=null&&n.callbackNode===l?N1.bind(null,n):null)}function S1(n,r){if(uu())return null;a1(n,r,!0)}function zM(){YM(function(){(dt&6)!==0?as(Fn,PM):w1()})}function np(){if(bi===0){var n=no;n===0&&(n=Oe,Oe<<=1,(Oe&261888)===0&&(Oe=256)),bi=n}return bi}function C1(n){return n==null||typeof n=="symbol"||typeof n=="boolean"?null:typeof n=="function"?n:wd(""+n)}function k1(n,r){var l=r.ownerDocument.createElement("input");return l.name=r.name,l.value=r.value,n.id&&l.setAttribute("form",n.id),r.parentNode.insertBefore(l,r),n=new FormData(n),l.parentNode.removeChild(l),n}function LM(n,r,l,d,g){if(r==="submit"&&l&&l.stateNode===g){var v=C1((g[Ee]||null).action),N=d.submitter;N&&(r=(r=N[Ee]||null)?C1(r.formAction):N.getAttribute("formAction"),r!==null&&(v=r,N=null));var A=new Cd("action","action",null,d,g);n.push({event:A,listeners:[{instance:null,listener:function(){if(d.defaultPrevented){if(bi!==0){var z=N?k1(g,N):new FormData(g);jm(l,{pending:!0,data:z,method:g.method,action:v},null,z)}}else typeof v=="function"&&(A.preventDefault(),z=N?k1(g,N):new FormData(g),jm(l,{pending:!0,data:z,method:g.method,action:v},v,z))},currentTarget:g}]})}}for(var sp=0;sp<Vh.length;sp++){var ap=Vh[sp],IM=ap.toLowerCase(),VM=ap[0].toUpperCase()+ap.slice(1);Ts(IM,"on"+VM)}Ts(sv,"onAnimationEnd"),Ts(av,"onAnimationIteration"),Ts(iv,"onAnimationStart"),Ts("dblclick","onDoubleClick"),Ts("focusin","onFocus"),Ts("focusout","onBlur"),Ts(tM,"onTransitionRun"),Ts(nM,"onTransitionStart"),Ts(sM,"onTransitionCancel"),Ts(rv,"onTransitionEnd"),Fr("onMouseEnter",["mouseout","mouseover"]),Fr("onMouseLeave",["mouseout","mouseover"]),Fr("onPointerEnter",["pointerout","pointerover"]),Fr("onPointerLeave",["pointerout","pointerover"]),Qi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Qi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Qi("onBeforeInput",["compositionend","keypress","textInput","paste"]),Qi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Qi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Qi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var nc="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(" "),$M=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(nc));function T1(n,r){r=(r&4)!==0;for(var l=0;l<n.length;l++){var d=n[l],g=d.event;d=d.listeners;e:{var v=void 0;if(r)for(var N=d.length-1;0<=N;N--){var A=d[N],z=A.instance,q=A.currentTarget;if(A=A.listener,z!==v&&g.isPropagationStopped())break e;v=A,g.currentTarget=q;try{v(g)}catch(Q){Ed(Q)}g.currentTarget=null,v=z}else for(N=0;N<d.length;N++){if(A=d[N],z=A.instance,q=A.currentTarget,A=A.listener,z!==v&&g.isPropagationStopped())break e;v=A,g.currentTarget=q;try{v(g)}catch(Q){Ed(Q)}g.currentTarget=null,v=z}}}}function Je(n,r){var l=r[Vt];l===void 0&&(l=r[Vt]=new Set);var d=n+"__bubble";l.has(d)||(E1(r,n,2,!1),l.add(d))}function ip(n,r,l){var d=0;r&&(d|=4),E1(l,n,d,r)}var mu="_reactListening"+Math.random().toString(36).slice(2);function rp(n){if(!n[mu]){n[mu]=!0,wy.forEach(function(l){l!=="selectionchange"&&($M.has(l)||ip(l,!1,n),ip(l,!0,n))});var r=n.nodeType===9?n:n.ownerDocument;r===null||r[mu]||(r[mu]=!0,ip("selectionchange",!1,r))}}function E1(n,r,l,d){switch(sw(r)){case 2:var g=mA;break;case 8:g=pA;break;default:g=wp}l=g.bind(null,r,l,n),g=void 0,!kh||r!=="touchstart"&&r!=="touchmove"&&r!=="wheel"||(g=!0),d?g!==void 0?n.addEventListener(r,l,{capture:!0,passive:g}):n.addEventListener(r,l,!0):g!==void 0?n.addEventListener(r,l,{passive:g}):n.addEventListener(r,l,!1)}function op(n,r,l,d,g){var v=d;if((r&1)===0&&(r&2)===0&&d!==null)e:for(;;){if(d===null)return;var N=d.tag;if(N===3||N===4){var A=d.stateNode.containerInfo;if(A===g)break;if(N===4)for(N=d.return;N!==null;){var z=N.tag;if((z===3||z===4)&&N.stateNode.containerInfo===g)return;N=N.return}for(;A!==null;){if(N=si(A),N===null)return;if(z=N.tag,z===5||z===6||z===26||z===27){d=v=N;continue e}A=A.parentNode}}d=d.return}Ry(function(){var q=v,Q=Sh(l),te=[];e:{var W=ov.get(n);if(W!==void 0){var Y=Cd,xe=n;switch(n){case"keypress":if(Nd(l)===0)break e;case"keydown":case"keyup":Y=RE;break;case"focusin":xe="focus",Y=Ah;break;case"focusout":xe="blur",Y=Ah;break;case"beforeblur":case"afterblur":Y=Ah;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Y=zy;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Y=wE;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Y=zE;break;case sv:case av:case iv:Y=SE;break;case rv:Y=IE;break;case"scroll":case"scrollend":Y=vE;break;case"wheel":Y=$E;break;case"copy":case"cut":case"paste":Y=kE;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Y=Iy;break;case"toggle":case"beforetoggle":Y=FE}var Ae=(r&4)!==0,bt=!Ae&&(n==="scroll"||n==="scrollend"),B=Ae?W!==null?W+"Capture":null:W;Ae=[];for(var V=q,U;V!==null;){var X=V;if(U=X.stateNode,X=X.tag,X!==5&&X!==26&&X!==27||U===null||B===null||(X=Sl(V,B),X!=null&&Ae.push(sc(V,X,U))),bt)break;V=V.return}0<Ae.length&&(W=new Y(W,xe,null,l,Q),te.push({event:W,listeners:Ae}))}}if((r&7)===0){e:{if(W=n==="mouseover"||n==="pointerover",Y=n==="mouseout"||n==="pointerout",W&&l!==Nh&&(xe=l.relatedTarget||l.fromElement)&&(si(xe)||xe[Et]))break e;if((Y||W)&&(W=Q.window===Q?Q:(W=Q.ownerDocument)?W.defaultView||W.parentWindow:window,Y?(xe=l.relatedTarget||l.toElement,Y=q,xe=xe?si(xe):null,xe!==null&&(bt=c(xe),Ae=xe.tag,xe!==bt||Ae!==5&&Ae!==27&&Ae!==6)&&(xe=null)):(Y=null,xe=q),Y!==xe)){if(Ae=zy,X="onMouseLeave",B="onMouseEnter",V="mouse",(n==="pointerout"||n==="pointerover")&&(Ae=Iy,X="onPointerLeave",B="onPointerEnter",V="pointer"),bt=Y==null?W:Nl(Y),U=xe==null?W:Nl(xe),W=new Ae(X,V+"leave",Y,l,Q),W.target=bt,W.relatedTarget=U,X=null,si(Q)===q&&(Ae=new Ae(B,V+"enter",xe,l,Q),Ae.target=U,Ae.relatedTarget=bt,X=Ae),bt=X,Y&&xe)t:{for(Ae=BM,B=Y,V=xe,U=0,X=B;X;X=Ae(X))U++;X=0;for(var ke=V;ke;ke=Ae(ke))X++;for(;0<U-X;)B=Ae(B),U--;for(;0<X-U;)V=Ae(V),X--;for(;U--;){if(B===V||V!==null&&B===V.alternate){Ae=B;break t}B=Ae(B),V=Ae(V)}Ae=null}else Ae=null;Y!==null&&M1(te,W,Y,Ae,!1),xe!==null&&bt!==null&&M1(te,bt,xe,Ae,!0)}}e:{if(W=q?Nl(q):window,Y=W.nodeName&&W.nodeName.toLowerCase(),Y==="select"||Y==="input"&&W.type==="file")var ot=Wy;else if(Uy(W))if(Gy)ot=ZE;else{ot=QE;var be=KE}else Y=W.nodeName,!Y||Y.toLowerCase()!=="input"||W.type!=="checkbox"&&W.type!=="radio"?q&&jh(q.elementType)&&(ot=Wy):ot=XE;if(ot&&(ot=ot(n,q))){qy(te,ot,l,Q);break e}be&&be(n,W,q),n==="focusout"&&q&&W.type==="number"&&q.memoizedProps.value!=null&&wh(W,"number",W.value)}switch(be=q?Nl(q):window,n){case"focusin":(Uy(be)||be.contentEditable==="true")&&(Yr=be,zh=q,Ol=null);break;case"focusout":Ol=zh=Yr=null;break;case"mousedown":Lh=!0;break;case"contextmenu":case"mouseup":case"dragend":Lh=!1,tv(te,l,Q);break;case"selectionchange":if(eM)break;case"keydown":case"keyup":tv(te,l,Q)}var Ye;if(Oh)e:{switch(n){case"compositionstart":var tt="onCompositionStart";break e;case"compositionend":tt="onCompositionEnd";break e;case"compositionupdate":tt="onCompositionUpdate";break e}tt=void 0}else Gr?Fy(n,l)&&(tt="onCompositionEnd"):n==="keydown"&&l.keyCode===229&&(tt="onCompositionStart");tt&&(Vy&&l.locale!=="ko"&&(Gr||tt!=="onCompositionStart"?tt==="onCompositionEnd"&&Gr&&(Ye=_y()):(ai=Q,Th="value"in ai?ai.value:ai.textContent,Gr=!0)),be=pu(q,tt),0<be.length&&(tt=new Ly(tt,n,null,l,Q),te.push({event:tt,listeners:be}),Ye?tt.data=Ye:(Ye=Hy(l),Ye!==null&&(tt.data=Ye)))),(Ye=UE?qE(n,l):WE(n,l))&&(tt=pu(q,"onBeforeInput"),0<tt.length&&(be=new Ly("onBeforeInput","beforeinput",null,l,Q),te.push({event:be,listeners:tt}),be.data=Ye)),LM(te,n,q,l,Q)}T1(te,r)})}function sc(n,r,l){return{instance:n,listener:r,currentTarget:l}}function pu(n,r){for(var l=r+"Capture",d=[];n!==null;){var g=n,v=g.stateNode;if(g=g.tag,g!==5&&g!==26&&g!==27||v===null||(g=Sl(n,l),g!=null&&d.unshift(sc(n,g,v)),g=Sl(n,r),g!=null&&d.push(sc(n,g,v))),n.tag===3)return d;n=n.return}return[]}function BM(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5&&n.tag!==27);return n||null}function M1(n,r,l,d,g){for(var v=r._reactName,N=[];l!==null&&l!==d;){var A=l,z=A.alternate,q=A.stateNode;if(A=A.tag,z!==null&&z===d)break;A!==5&&A!==26&&A!==27||q===null||(z=q,g?(q=Sl(l,v),q!=null&&N.unshift(sc(l,q,z))):g||(q=Sl(l,v),q!=null&&N.push(sc(l,q,z)))),l=l.return}N.length!==0&&n.push({event:r,listeners:N})}var FM=/\r\n?/g,HM=/\u0000|\uFFFD/g;function A1(n){return(typeof n=="string"?n:""+n).replace(FM,` 9`).replace(HM,"")}function D1(n,r){return r=A1(r),A1(n)===r}function vt(n,r,l,d,g,v){switch(l){case"children":typeof d=="string"?r==="body"||r==="textarea"&&d===""||Ur(n,d):(typeof d=="number"||typeof d=="bigint")&&r!=="body"&&Ur(n,""+d);break;case"className":vd(n,"class",d);break;case"tabIndex":vd(n,"tabindex",d);break;case"dir":case"role":case"viewBox":case"width":case"height":vd(n,l,d);break;case"style":Dy(n,d,v);break;case"data":if(r!=="object"){vd(n,"data",d);break}case"src":case"href":if(d===""&&(r!=="a"||l!=="href")){n.removeAttribute(l);break}if(d==null||typeof d=="function"||typeof d=="symbol"||typeof d=="boolean"){n.removeAttribute(l);break}d=wd(""+d),n.setAttribute(l,d);break;case"action":case"formAction":if(typeof d=="function"){n.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof v=="function"&&(l==="formAction"?(r!=="input"&&vt(n,r,"name",g.name,g,null),vt(n,r,"formEncType",g.formEncType,g,null),vt(n,r,"formMethod",g.formMethod,g,null),vt(n,r,"formTarget",g.formTarget,g,null)):(vt(n,r,"encType",g.encType,g,null),vt(n,r,"method",g.method,g,null),vt(n,r,"target",g.target,g,null)));if(d==null||typeof d=="symbol"||typeof d=="boolean"){n.removeAttribute(l);break}d=wd(""+d),n.setAttribute(l,d);break;case"onClick":d!=null&&(n.onclick=Sa);break;case"onScroll":d!=null&&Je("scroll",n);break;case"onScrollEnd":d!=null&&Je("scrollend",n);break;case"dangerouslySetInnerHTML":if(d!=null){if(typeof d!="object"||!("__html"in d))throw Error(i(61));if(l=d.__html,l!=null){if(g.children!=null)throw Error(i(60));n.innerHTML=l}}break;case"multiple":n.multiple=d&&typeof d!="function"&&typeof d!="symbol";break;case"muted":n.muted=d&&typeof d!="function"&&typeof d!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(d==null||typeof d=="function"||typeof d=="boolean"||typeof d=="symbol"){n.removeAttribute("xlink:href");break}l=wd(""+d),n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":d!=null&&typeof d!="function"&&typeof d!="symbol"?n.setAttribute(l,""+d):n.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInl
9ine":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":d&&typeof d!="function"&&typeof d!="symbol"?n.setAttribute(l,""):n.removeAttribute(l);break;case"capture":case"download":d===!0?n.setAttribute(l,""):d!==!1&&d!=null&&typeof d!="function"&&typeof d!="symbol"?n.setAttribute(l,d):n.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":d!=null&&typeof d!="function"&&typeof d!="symbol"&&!isNaN(d)&&1<=d?n.setAttribute(l,d):n.removeAttribute(l);break;case"rowSpan":case"start":d==null||typeof d=="function"||typeof d=="symbol"||isNaN(d)?n.removeAttribute(l):n.setAttribute(l,d);break;case"popover":Je("beforetoggle",n),Je("toggle",n),yd(n,"popover",d);break;case"xlinkActuate":Na(n,"http://www.w3.org/1999/xlink","xlink:actuate",d);break;case"xlinkArcrole":Na(n,"http://www.w3.org/1999/xlink","xlink:arcrole",d);break;case"xlinkRole":Na(n,"http://www.w3.org/1999/xlink","xlink:role",d);break;case"xlinkShow":Na(n,"http://www.w3.org/1999/xlink","xlink:show",d);break;case"xlinkTitle":Na(n,"http://www.w3.org/1999/xlink","xlink:title",d);break;case"xlinkType":Na(n,"http://www.w3.org/1999/xlink","xlink:type",d);break;case"xmlBase":Na(n,"http://www.w3.org/XML/1998/namespace","xml:base",d);break;case"xmlLang":Na(n,"http://www.w3.org/XML/1998/namespace","xml:lang",d);break;case"xmlSpace":Na(n,"http://www.w3.org/XML/1998/namespace","xml:space",d);break;case"is":yd(n,"is",d);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=xE.get(l)||l,yd(n,l,d))}}function lp(n,r,l,d,g,v){switch(l){case"style":Dy(n,d,v);break;case"dangerouslySetInnerHTML":if(d!=null){if(typeof d!="object"||!("__html"in d))throw Error(i(61));if(l=d.__html,l!=null){if(g.children!=null)throw Error(i(60));n.innerHTML=l}}break;case"children":typeof d=="string"?Ur(n,d):(typeof d=="number"||typeof d=="bigint")&&Ur(n,""+d);break;case"onScroll":d!=null&&Je("scroll",n);break;case"onScrollEnd":d!=null&&Je("scrollend",n);break;case"onClick":d!=null&&(n.onclick=Sa);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!jy.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(g=l.endsWith("Capture"),r=l.slice(2,g?l.length-7:void 0),v=n[Ee]||null,v=v!=null?v[l]:null,typeof v=="function"&&n.removeEventListener(r,v,g),typeof d=="function")){typeof v!="function"&&v!==null&&(l in n?n[l]=null:n.hasAttribute(l)&&n.removeAttribute(l)),n.addEventListener(r,d,g);break e}l in n?n[l]=d:d===!0?n.setAttribute(l,""):yd(n,l,d)}}}function pn(n,r,l){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Je("error",n),Je("load",n);var d=!1,g=!1,v;for(v in l)if(l.hasOwnProperty(v)){var N=l[v];if(N!=null)switch(v){case"src":d=!0;break;case"srcSet":g=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,r));default:vt(n,r,v,N,l,null)}}g&&vt(n,r,"srcSet",l.srcSet,l,null),d&&vt(n,r,"src",l.src,l,null);return;case"input":Je("invalid",n);var A=v=N=g=null,z=null,q=null;for(d in l)if(l.hasOwnProperty(d)){var Q=l[d];if(Q!=null)switch(d){case"name":g=Q;break;case"type":N=Q;break;case"checked":z=Q;break;case"defaultChecked":q=Q;break;case"value":v=Q;break;case"defaultValue":A=Q;break;case"children":case"dangerouslySetInnerHTML":if(Q!=null)throw Error(i(137,r));break;default:vt(n,r,d,Q,l,null)}}Ty(n,v,A,z,q,N,g,!1);return;case"select":Je("invalid",n),d=N=v=null;for(g in l)if(l.hasOwnProperty(g)&&(A=l[g],A!=null))switch(g){case"value":v=A;break;case"defaultValue":N=A;break;case"multiple":d=A;default:vt(n,r,g,A,l,null)}r=v,l=N,n.multiple=!!d,r!=null?Hr(n,!!d,r,!1):l!=null&&Hr(n,!!d,l,!0);return;case"textarea":Je("invalid",n),v=g=d=null;for(N in l)if(l.hasOwnProperty(N)&&(A=l[N],A!=null))switch(N){case"value":d=A;break;case"defaultValue":g=A;break;case"children":v=A;break;case"dangerouslySetInnerHTML":if(A!=null)throw Error(i(91));break;default:vt(n,r,N,A,l,null)}My(n,d,g,v);return;case"option":for(z in l)l.hasOwnProperty(z)&&(d=l[z],d!=null)&&(z==="selected"?n.selected=d&&typeof d!="function"&&typeof d!="symbol":vt(n,r,z,d,l,null));return;case"dialog":Je("beforetoggle",n),Je("toggle",n),Je("cancel",n),Je("close",n);break;case"iframe":case"object":Je("load",n);break;case"video":case"audio":for(d=0;d<nc.length;d++)Je(nc[d],n);break;case"image":Je("error",n),Je("load",n);break;case"details":Je("toggle",n);break;case"embed":case"source":case"link":Je("error",n),Je("load",n);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(q in l)if(l.hasOwnProperty(q)&&(d=l[q],d!=null))switch(q){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,r));default:vt(n,r,q,d,l,null)}return;default:if(jh(r)){for(Q in l)l.hasOwnProperty(Q)&&(d=l[Q],d!==void 0&&lp(n,r,Q,d,l,void 0));return}}for(A in l)l.hasOwnProperty(A)&&(d=l[A],d!=null&&vt(n,r,A,d,l,null))}function UM(n,r,l,d){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var g=null,v=null,N=null,A=null,z=null,q=null,Q=null;for(Y in l){var te=l[Y];if(l.hasOwnProperty(Y)&&te!=null)switch(Y){case"checked":break;case"value":break;case"defaultValue":z=te;default:d.hasOwnProperty(Y)||vt(n,r,Y,null,d,te)}}for(var W in d){var Y=d[W];if(te=l[W],d.hasOwnProperty(W)&&(Y!=null||te!=null))switch(W){case"type":v=Y;break;case"name":g=Y;break;case"checked":q=Y;break;case"defaultChecked":Q=Y;break;case"value":N=Y;break;case"defaultValue":A=Y;break;case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(i(137,r));break;default:Y!==te&&vt(n,r,W,Y,d,te)}}bh(n,N,A,z,q,Q,v,g);return;case"select":Y=N=A=W=null;for(v in l)if(z=l[v],l.hasOwnProperty(v)&&z!=null)switch(v){case"value":break;case"multiple":Y=z;default:d.hasOwnProperty(v)||vt(n,r,v,null,d,z)}for(g in d)if(v=d[g],z=l[g],d.hasOwnProperty(g)&&(v!=null||z!=null))switch(g){case"value":W=v;break;case"defaultValue":A=v;break;case"multiple":N=v;default:v!==z&&vt(n,r,g,v,d,z)}r=A,l=N,d=Y,W!=null?Hr(n,!!l,W,!1):!!d!=!!l&&(r!=null?Hr(n,!!l,r,!0):Hr(n,!!l,l?[]:"",!1));return;case"textarea":Y=W=null;for(A in l)if(g=l[A],l.hasOwnProperty(A)&&g!=null&&!d.hasOwnProperty(A))switch(A){case"value":break;case"children":break;default:vt(n,r,A,null,d,g)}for(N in d)if(g=d[N],v=l[N],d.hasOwnProperty(N)&&(g!=null||v!=null))switch(N){case"value":W=g;break;case"defaultValue":Y=g;break;case"children":break;case"dangerouslySetInnerHTML":if(g!=null)throw Error(i(91));break;default:g!==v&&vt(n,r,N,g,d,v)}Ey(n,W,Y);return;case"option":for(var xe in l)W=l[xe],l.hasOwnProperty(xe)&&W!=null&&!d.hasOwnProperty(xe)&&(xe==="selected"?n.selected=!1:vt(n,r,xe,null,d,W));for(z in d)W=d[z],Y=l[z],d.hasOwnProperty(z)&&W!==Y&&(W!=null||Y!=null)&&(z==="selected"?n.selected=W&&typeof W!="function"&&typeof W!="symbol":vt(n,r,z,W,d,Y));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Ae in l)W=l[Ae],l.hasOwnProperty(Ae)&&W!=null&&!d.hasOwnProperty(Ae)&&vt(n,r,Ae,null,d,W);for(q in d)if(W=d[q],Y=l[q],d.hasOwnProperty(q)&&W!==Y&&(W!=null||Y!=null))switch(q){case"children":case"dangerouslySetInnerHTML":if(W!=null)throw Error(i(137,r));break;default:vt(n,r,q,W,d,Y)}return;default:if(jh(r)){for(var bt in l)W=l[bt],l.hasOwnProperty(bt)&&W!==void 0&&!d.hasOwnProperty(bt)&&lp(n,r,bt,void 0,d,W);for(Q in d)W=d[Q],Y=l[Q],!d.hasOwnProperty(Q)||W===Y||W===void 0&&Y===void 0||lp(n,r,Q,W,d,Y);return}}for(var B in l)W=l[B],l.hasOwnProperty(B)&&W!=null&&!d.hasOwnProperty(B)&&vt(n,r,B,null,d,W);for(te in d)W=d[te],Y=l[te],!d.hasOwnProperty(te)||W===Y||W==null&&Y==null||vt(n,r,te,W,d,Y)}function O1(n){switch(n){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function qM(){if(typeof performance.getEntriesByType=="function"){for(var n=0,r=0,l=performance.getEntriesByType("resource"),d=0;d<l.length;d++){var g=l[d],v=g.transferSize,N=g.initiatorType,A=g.duration;if(v&&A&&O1(N)){for(N=0,A=g.responseEnd,d+=1;d<l.length;d++){var z=l[d],q=z.startTime;if(q>A)break;var Q=z.transferSize,te=z.initiatorType;Q&&O1(te)&&(z=z.responseEnd,N+=Q*(z<A?1:(A-q)/(z-q)))}if(--d,r+=8*(v+N)/(g.duration/1e3),n++,10<n)break}}if(0<n)return r/n/1e6}return navigator.connection&&(n=navigator.connection.downlink,typeof n=="number")?
vendor: 8,599 bytes, line 9
9n:5}var cp=null,dp=null;function gu(n){return n.nodeType===9?n:n.ownerDocument}function R1(n){switch(n){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function _1(n,r){if(n===0)switch(r){case"svg":return 1;case"math":return 2;default:return 0}return n===1&&r==="foreignObject"?0:n}function up(n,r){return n==="textarea"||n==="noscript"||typeof r.children=="string"||typeof r.children=="number"||typeof r.children=="bigint"||typeof r.dangerouslySetInnerHTML=="object"&&r.dangerouslySetInnerHTML!==null&&r.dangerouslySetInnerHTML.__html!=null}var fp=null;function WM(){var n=window.event;return n&&n.type==="popstate"?n===fp?!1:(fp=n,!0):(fp=null,!1)}var P1=typeof setTimeout=="function"?setTimeout:void 0,GM=typeof clearTimeout=="function"?clearTimeout:void 0,z1=typeof Promise=="function"?Promise:void 0,YM=typeof queueMicrotask=="function"?queueMicrotask:typeof z1<"u"?function(n){return z1.resolve(null).then(n).catch(KM)}:P1;function KM(n){setTimeout(function(){throw n})}function wi(n){return n==="head"}function L1(n,r){var l=r,d=0;do{var g=l.nextSibling;if(n.removeChild(l),g&&g.nodeType===8)if(l=g.data,l==="/$"||l==="/&"){if(d===0){n.removeChild(g),jo(r);return}d--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")d++;else if(l==="html")ac(n.ownerDocument.documentElement);else if(l==="head"){l=n.ownerDocument.head,ac(l);for(var v=l.firstChild;v;){var N=v.nextSibling,A=v.nodeName;v[An]||A==="SCRIPT"||A==="STYLE"||A==="LINK"&&v.rel.toLowerCase()==="stylesheet"||l.removeChild(v),v=N}}else l==="body"&&ac(n.ownerDocument.body);l=g}while(l);jo(r)}function I1(n,r){var l=n;n=0;do{var d=l.nextSibling;if(l.nodeType===1?r?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(r?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),d&&d.nodeType===8)if(l=d.data,l==="/$"){if(n===0)break;n--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||n++;l=d}while(l)}function hp(n){var r=n.firstChild;for(r&&r.nodeType===10&&(r=r.nextSibling);r;){var l=r;switch(r=r.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":hp(l),$r(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}n.removeChild(l)}}function QM(n,r,l,d){for(;n.nodeType===1;){var g=l;if(n.nodeName.toLowerCase()!==r.toLowerCase()){if(!d&&(n.nodeName!=="INPUT"||n.type!=="hidden"))break}else if(d){if(!n[An])switch(r){case"meta":if(!n.hasAttribute("itemprop"))break;return n;case"link":if(v=n.getAttribute("rel"),v==="stylesheet"&&n.hasAttribute("data-precedence"))break;if(v!==g.rel||n.getAttribute("href")!==(g.href==null||g.href===""?null:g.href)||n.getAttribute("crossorigin")!==(g.crossOrigin==null?null:g.crossOrigin)||n.getAttribute("title")!==(g.title==null?null:g.title))break;return n;case"style":if(n.hasAttribute("data-precedence"))break;return n;case"script":if(v=n.getAttribute("src"),(v!==(g.src==null?null:g.src)||n.getAttribute("type")!==(g.type==null?null:g.type)||n.getAttribute("crossorigin")!==(g.crossOrigin==null?null:g.crossOrigin))&&v&&n.hasAttribute("async")&&!n.hasAttribute("itemprop"))break;return n;default:return n}}else if(r==="input"&&n.type==="hidden"){var v=g.name==null?null:""+g.name;if(g.type==="hidden"&&n.getAttribute("name")===v)return n}else return n;if(n=ps(n.nextSibling),n===null)break}return null}function XM(n,r,l){if(r==="")return null;for(;n.nodeType!==3;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!l||(n=ps(n.nextSibling),n===null))return null;return n}function V1(n,r){for(;n.nodeType!==8;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!r||(n=ps(n.nextSibling),n===null))return null;return n}function mp(n){return n.data==="$?"||n.data==="$~"}function pp(n){return n.data==="$!"||n.data==="$?"&&n.ownerDocument.readyState!=="loading"}function ZM(n,r){var l=n.ownerDocument;if(n.data==="$~")n._reactRetry=r;else if(n.data!=="$?"||l.readyState!=="loading")r();else{var d=function(){r(),l.removeEventListener("DOMContentLoaded",d)};l.addEventListener("DOMContentLoaded",d),n._reactRetry=d}}function ps(n){for(;n!=null;n=n.nextSibling){var r=n.nodeType;if(r===1||r===3)break;if(r===8){if(r=n.data,r==="$"||r==="$!"||r==="$?"||r==="$~"||r==="&"||r==="F!"||r==="F")break;if(r==="/$"||r==="/&")return null}}return n}var gp=null;function $1(n){n=n.nextSibling;for(var r=0;n;){if(n.nodeType===8){var l=n.data;if(l==="/$"||l==="/&"){if(r===0)return ps(n.nextSibling);r--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||r++}n=n.nextSibling}return null}function B1(n){n=n.previousSibling;for(var r=0;n;){if(n.nodeType===8){var l=n.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(r===0)return n;r--}else l!=="/$"&&l!=="/&"||r++}n=n.previousSibling}return null}function F1(n,r,l){switch(r=gu(l),n){case"html":if(n=r.documentElement,!n)throw Error(i(452));return n;case"head":if(n=r.head,!n)throw Error(i(453));return n;case"body":if(n=r.body,!n)throw Error(i(454));return n;default:throw Error(i(451))}}function ac(n){for(var r=n.attributes;r.length;)n.removeAttributeNode(r[0]);$r(n)}var gs=new Map,H1=new Set;function xu(n){return typeof n.getRootNode=="function"?n.getRootNode():n.nodeType===9?n:n.ownerDocument}var $a=H.d;H.d={f:JM,r:eA,D:tA,C:nA,L:sA,m:aA,X:rA,S:iA,M:oA};function JM(){var n=$a.f(),r=lu();return n||r}function eA(n){var r=vn(n);r!==null&&r.tag===5&&r.type==="form"?rb(r):$a.r(n)}var vo=typeof document>"u"?null:document;function U1(n,r,l){var d=vo;if(d&&typeof r=="string"&&r){var g=ls(r);g='link[rel="'+n+'"][href="'+g+'"]',typeof l=="string"&&(g+='[crossorigin="'+l+'"]'),H1.has(g)||(H1.add(g),n={rel:n,crossOrigin:l,href:r},d.querySelector(g)===null&&(r=d.createElement("link"),pn(r,"link",n),on(r),d.head.appendChild(r)))}}function tA(n){$a.D(n),U1("dns-prefetch",n,null)}function nA(n,r){$a.C(n,r),U1("preconnect",n,r)}function sA(n,r,l){$a.L(n,r,l);var d=vo;if(d&&n&&r){var g='link[rel="preload"][as="'+ls(r)+'"]';r==="image"&&l&&l.imageSrcSet?(g+='[imagesrcset="'+ls(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(g+='[imagesizes="'+ls(l.imageSizes)+'"]')):g+='[href="'+ls(n)+'"]';var v=g;switch(r){case"style":v=bo(n);break;case"script":v=wo(n)}gs.has(v)||(n=y({rel:"preload",href:r==="image"&&l&&l.imageSrcSet?void 0:n,as:r},l),gs.set(v,n),d.querySelector(g)!==null||r==="style"&&d.querySelector(ic(v))||r==="script"&&d.querySelector(rc(v))||(r=d.createElement("link"),pn(r,"link",n),on(r),d.head.appendChild(r)))}}function aA(n,r){$a.m(n,r);var l=vo;if(l&&n){var d=r&&typeof r.as=="string"?r.as:"script",g='link[rel="modulepreload"][as="'+ls(d)+'"][href="'+ls(n)+'"]',v=g;switch(d){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":v=wo(n)}if(!gs.has(v)&&(n=y({rel:"modulepreload",href:n},r),gs.set(v,n),l.querySelector(g)===null)){switch(d){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(rc(v)))return}d=l.createElement("link"),pn(d,"link",n),on(d),l.head.appendChild(d)}}}function iA(n,r,l){$a.S(n,r,l);var d=vo;if(d&&n){var g=Br(d).hoistableStyles,v=bo(n);r=r||"default";var N=g.get(v);if(!N){var A={loading:0,preload:null};if(N=d.querySelector(ic(v)))A.loading=5;else{n=y({rel:"stylesheet",href:n,"data-precedence":r},l),(l=gs.get(v))&&xp(n,l);var z=N=d.createElement("link");on(z),pn(z,"link",n),z._p=new Promise(function(q,Q){z.onload=q,z.onerror=Q}),z.addEventListener("load",function(){A.loading|=1}),z.addEventListener("error",function(){A.loading|=2}),A.loading|=4,yu(N,r,d)}N={type:"stylesheet",instance:N,count:1,state:A},g.set(v,N)}}}function rA(n,r){$a.X(n,r);var l=vo;if(l&&n){var d=Br(l).hoistableScripts,g=wo(n),v=d.get(g);v||(v=l.querySelector(rc(g)),v||(n=y({src:n,async:!0},r),(r=gs.get(g))&&yp(n,r),v=l.createElement("script"),on(v),pn(v,"link",n),l.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},d.set(g,v))}}function oA(n,r){$a.M(n,r);var l=vo;if(l&&n){var d=Br(l).hoistableScripts,g=wo(n),v=d.get(g);v||(v=l.querySelector(rc(g)),v||(n=y({src:n,async:!0,type:"module"},r),(r=gs.get(g))&&yp(n,r),v=l.createElement("script"),on(v),pn(v,"link",n),l.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},d.set(g,v))}}function q1(n,r,l,d){var g=(g=we.current)?xu(g):null;if(!g)throw Error(i(446));switch(n){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(r=bo(l.href),l=Br(g).hoistableStyles,d=l.get(r),d||(
vendor: 4,570 bytes, line 9
9d={type:"style",instance:null,count:0,state:null},l.set(r,d)),d):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){n=bo(l.href);var v=Br(g).hoistableStyles,N=v.get(n);if(N||(g=g.ownerDocument||g,N={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},v.set(n,N),(v=g.querySelector(ic(n)))&&!v._p&&(N.instance=v,N.state.loading=5),gs.has(n)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},gs.set(n,l),v||lA(g,n,l,N.state))),r&&d===null)throw Error(i(528,""));return N}if(r&&d!==null)throw Error(i(529,""));return null;case"script":return r=l.async,l=l.src,typeof l=="string"&&r&&typeof r!="function"&&typeof r!="symbol"?(r=wo(l),l=Br(g).hoistableScripts,d=l.get(r),d||(d={type:"script",instance:null,count:0,state:null},l.set(r,d)),d):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,n))}}function bo(n){return'href="'+ls(n)+'"'}function ic(n){return'link[rel="stylesheet"]['+n+"]"}function W1(n){return y({},n,{"data-precedence":n.precedence,precedence:null})}function lA(n,r,l,d){n.querySelector('link[rel="preload"][as="style"]['+r+"]")?d.loading=1:(r=n.createElement("link"),d.preload=r,r.addEventListener("load",function(){return d.loading|=1}),r.addEventListener("error",function(){return d.loading|=2}),pn(r,"link",l),on(r),n.head.appendChild(r))}function wo(n){return'[src="'+ls(n)+'"]'}function rc(n){return"script[async]"+n}function G1(n,r,l){if(r.count++,r.instance===null)switch(r.type){case"style":var d=n.querySelector('style[data-href~="'+ls(l.href)+'"]');if(d)return r.instance=d,on(d),d;var g=y({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return d=(n.ownerDocument||n).createElement("style"),on(d),pn(d,"style",g),yu(d,l.precedence,n),r.instance=d;case"stylesheet":g=bo(l.href);var v=n.querySelector(ic(g));if(v)return r.state.loading|=4,r.instance=v,on(v),v;d=W1(l),(g=gs.get(g))&&xp(d,g),v=(n.ownerDocument||n).createElement("link"),on(v);var N=v;return N._p=new Promise(function(A,z){N.onload=A,N.onerror=z}),pn(v,"link",d),r.state.loading|=4,yu(v,l.precedence,n),r.instance=v;case"script":return v=wo(l.src),(g=n.querySelector(rc(v)))?(r.instance=g,on(g),g):(d=l,(g=gs.get(v))&&(d=y({},l),yp(d,g)),n=n.ownerDocument||n,g=n.createElement("script"),on(g),pn(g,"link",d),n.head.appendChild(g),r.instance=g);case"void":return null;default:throw Error(i(443,r.type))}else r.type==="stylesheet"&&(r.state.loading&4)===0&&(d=r.instance,r.state.loading|=4,yu(d,l.precedence,n));return r.instance}function yu(n,r,l){for(var d=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),g=d.length?d[d.length-1]:null,v=g,N=0;N<d.length;N++){var A=d[N];if(A.dataset.precedence===r)v=A;else if(v!==g)break}v?v.parentNode.insertBefore(n,v.nextSibling):(r=l.nodeType===9?l.head:l,r.insertBefore(n,r.firstChild))}function xp(n,r){n.crossOrigin==null&&(n.crossOrigin=r.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=r.referrerPolicy),n.title==null&&(n.title=r.title)}function yp(n,r){n.crossOrigin==null&&(n.crossOrigin=r.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=r.referrerPolicy),n.integrity==null&&(n.integrity=r.integrity)}var vu=null;function Y1(n,r,l){if(vu===null){var d=new Map,g=vu=new Map;g.set(l,d)}else g=vu,d=g.get(l),d||(d=new Map,g.set(l,d));if(d.has(n))return d;for(d.set(n,null),l=l.getElementsByTagName(n),g=0;g<l.length;g++){var v=l[g];if(!(v[An]||v[Ct]||n==="link"&&v.getAttribute("rel")==="stylesheet")&&v.namespaceURI!=="http://www.w3.org/2000/svg"){var N=v.getAttribute(r)||"";N=n+N;var A=d.get(N);A?A.push(v):d.set(N,[v])}}return d}function K1(n,r,l){n=n.ownerDocument||n,n.head.insertBefore(l,r==="title"?n.querySelector("head > title"):null)}function cA(n,r,l){if(l===1||r.itemProp!=null)return!1;switch(n){case"meta":case"title":return!0;case"style":if(typeof r.precedence!="string"||typeof r.href!="string"||r.href==="")break;return!0;case"link":if(typeof r.rel!="string"||typeof r.href!="string"||r.href===""||r.onLoad||r.onError)break;return r.rel==="stylesheet"?(n=r.disabled,typeof r.precedence=="string"&&n==null):!0;case"script":if(r.async&&typeof r.async!="function"&&typeof r.async!="symbol"&&!r.onLoad&&!r.onError&&r.src&&typeof r.src=="string")return!0}return!1}function Q1(n){return!(n.type==="stylesheet"&&(n.state.loading&3)===0)}function dA(n,r,l,d){if(l.type==="stylesheet"&&(typeof d.media!="str
9ing"||matchMedia(d.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var g=bo(d.href),v=r.querySelector(ic(g));if(v){r=v._p,r!==null&&typeof r=="object"&&typeof r.then=="function"&&(n.count++,n=bu.bind(n),r.then(n,n)),l.state.loading|=4,l.instance=v,on(v);return}v=r.ownerDocument||r,d=W1(d),(g=gs.get(g))&&xp(d,g),v=v.createElement("link"),on(v);var N=v;N._p=new Promise(function(A,z){N.onload=A,N.onerror=z}),pn(v,"link",d),l.instance=v}n.stylesheets===null&&(n.stylesheets=new Map),n.stylesheets.set(l,r),(r=l.state.preload)&&(l.state.loading&3)===0&&(n.count++,l=bu.bind(n),r.addEventListener("load",l),r.addEventListener("error",l))}}var vp=0;function uA(n,r){return n.stylesheets&&n.count===0&&ju(n,n.stylesheets),0<n.count||0<n.imgCount?function(l){var d=setTimeout(function(){if(n.stylesheets&&ju(n,n.stylesheets),n.unsuspend){var v=n.unsuspend;n.unsuspend=null,v()}},6e4+r);0<n.imgBytes&&vp===0&&(vp=62500*qM());var g=setTimeout(function(){if(n.waitingForImages=!1,n.count===0&&(n.stylesheets&&ju(n,n.stylesheets),n.unsuspend)){var v=n.unsuspend;n.unsuspend=null,v()}},(n.imgBytes>vp?50:800)+r);return n.unsuspend=l,function(){n.unsuspend=null,clearTimeout(d),clearTimeout(g)}}:null}function bu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ju(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}var wu=null;function ju(n,r){n.stylesheets=null,n.unsuspend!==null&&(n.count++,wu=new Map,r.forEach(fA,n),wu=null,bu.call(n))}function fA(n,r){if(!(r.state.loading&4)){var l=wu.get(n);if(l)var d=l.get(null);else{l=new Map,wu.set(n,l);for(var g=n.querySelectorAll("link[data-precedence],style[data-precedence]"),v=0;v<g.length;v++){var N=g[v];(N.nodeName==="LINK"||N.getAttribute("media")!=="not all")&&(l.set(N.dataset.precedence,N),d=N)}d&&l.set(null,d)}g=r.instance,N=g.getAttribute("data-precedence"),v=l.get(N)||d,v===d&&l.set(null,g),l.set(N,g),this.count++,d=bu.bind(this),g.addEventListener("load",d),g.addEventListener("error",d),v?v.parentNode.insertBefore(g,v.nextSibling):(n=n.nodeType===9?n.head:n,n.insertBefore(g,n.firstChild)),r.state.loading|=4}}var oc={$$typeof:k,Provider:null,Consumer:null,_currentValue:$,_currentValue2:$,_threadCount:0};function hA(n,r,l,d,g,v,N,A,z){this.tag=1,this.containerInfo=n,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=qs(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=qs(0),this.hiddenUpdates=qs(null),this.identifierPrefix=d,this.onUncaughtError=g,this.onCaughtError=v,this.onRecoverableError=N,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=z,this.incompleteTransitions=new Map}function X1(n,r,l,d,g,v,N,A,z,q,Q,te){return n=new hA(n,r,l,N,z,q,Q,te,A),r=1,v===!0&&(r|=24),v=Un(3,null,null,r),n.current=v,v.stateNode=n,r=Zh(),r.refCount++,n.pooledCache=r,r.refCount++,v.memoizedState={element:d,isDehydrated:l,cache:r},nm(v),n}function Z1(n){return n?(n=Xr,n):Xr}function J1(n,r,l,d,g,v){g=Z1(g),d.context===null?d.context=g:d.pendingContext=g,d=di(r),d.payload={element:l},v=v===void 0?null:v,v!==null&&(d.callback=v),l=ui(n,d,r),l!==null&&(zn(l,n,r),Vl(l,n,r))}function ew(n,r){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var l=n.retryLane;n.retryLane=l!==0&&l<r?l:r}}function bp(n,r){ew(n,r),(n=n.alternate)&&ew(n,r)}function tw(n){if(n.tag===13||n.tag===31){var r=er(n,67108864);r!==null&&zn(r,n,67108864),bp(n,67108864)}}function nw(n){if(n.tag===13||n.tag===31){var r=Kn();r=E(r);var l=er(n,r);l!==null&&zn(l,n,r),bp(n,r)}}var Nu=!0;function mA(n,r,l,d){var g=I.T;I.T=null;var v=H.p;try{H.p=2,wp(n,r,l,d)}finally{H.p=v,I.T=g}}function pA(n,r,l,d){var g=I.T;I.T=null;var v=H.p;try{H.p=8,wp(n,r,l,d)}finally{H.p=v,I.T=g}}function wp(n,r,l,d){if(Nu){var g=jp(d);if(g===null)op(n,r,d,Su,l),aw(n,d);else if(xA(g,n,r,l,d))d.stopPropagation();else if(aw(n,d),r&4&&-1<gA.indexOf(n)){for(;g!==null;){var v=vn(g);if(v!==null)switch(v.tag){case 3:if(v=v.stateNode,v.current.memoizedState.isDehydrated){var N=qe(v.pendingLanes);if(N!==0){var A=v;for(A.pendingLanes|=2,A.entangledLanes|=2;N;){var z=1<<31-at(N);A.entanglements[1]|=z,N&=~z}Ks(v),(dt&6)===0&&(ru=Ot()+500,tc(0))}}break;
vendor: 4,325 bytes, line 9
9case 31:case 13:A=er(v,2),A!==null&&zn(A,v,2),lu(),bp(v,2)}if(v=jp(d),v===null&&op(n,r,d,Su,l),v===g)break;g=v}g!==null&&d.stopPropagation()}else op(n,r,d,null,l)}}function jp(n){return n=Sh(n),Np(n)}var Su=null;function Np(n){if(Su=null,n=si(n),n!==null){var r=c(n);if(r===null)n=null;else{var l=r.tag;if(l===13){if(n=u(r),n!==null)return n;n=null}else if(l===31){if(n=f(r),n!==null)return n;n=null}else if(l===3){if(r.stateNode.current.memoizedState.isDehydrated)return r.tag===3?r.stateNode.containerInfo:null;n=null}else r!==n&&(n=null)}}return Su=n,null}function sw(n){switch(n){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(ya()){case Fn:return 2;case Cs:return 8;case ks:case ei:return 32;case ti:return 268435456;default:return 32}default:return 32}}var Sp=!1,ji=null,Ni=null,Si=null,lc=new Map,cc=new Map,Ci=[],gA="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".split(" ");function aw(n,r){switch(n){case"focusin":case"focusout":ji=null;break;case"dragenter":case"dragleave":Ni=null;break;case"mouseover":case"mouseout":Si=null;break;case"pointerover":case"pointerout":lc.delete(r.pointerId);break;case"gotpointercapture":case"lostpointercapture":cc.delete(r.pointerId)}}function dc(n,r,l,d,g,v){return n===null||n.nativeEvent!==v?(n={blockedOn:r,domEventName:l,eventSystemFlags:d,nativeEvent:v,targetContainers:[g]},r!==null&&(r=vn(r),r!==null&&tw(r)),n):(n.eventSystemFlags|=d,r=n.targetContainers,g!==null&&r.indexOf(g)===-1&&r.push(g),n)}function xA(n,r,l,d,g){switch(r){case"focusin":return ji=dc(ji,n,r,l,d,g),!0;case"dragenter":return Ni=dc(Ni,n,r,l,d,g),!0;case"mouseover":return Si=dc(Si,n,r,l,d,g),!0;case"pointerover":var v=g.pointerId;return lc.set(v,dc(lc.get(v)||null,n,r,l,d,g)),!0;case"gotpointercapture":return v=g.pointerId,cc.set(v,dc(cc.get(v)||null,n,r,l,d,g)),!0}return!1}function iw(n){var r=si(n.target);if(r!==null){var l=c(r);if(l!==null){if(r=l.tag,r===13){if(r=u(l),r!==null){n.blockedOn=r,ct(n.priority,function(){nw(l)});return}}else if(r===31){if(r=f(l),r!==null){n.blockedOn=r,ct(n.priority,function(){nw(l)});return}}else if(r===3&&l.stateNode.current.memoizedState.isDehydrated){n.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}n.blockedOn=null}function Cu(n){if(n.blockedOn!==null)return!1;for(var r=n.targetContainers;0<r.length;){var l=jp(n.nativeEvent);if(l===null){l=n.nativeEvent;var d=new l.constructor(l.type,l);Nh=d,l.target.dispatchEvent(d),Nh=null}else return r=vn(l),r!==null&&tw(r),n.blockedOn=l,!1;r.shift()}return!0}function rw(n,r,l){Cu(n)&&l.delete(r)}function yA(){Sp=!1,ji!==null&&Cu(ji)&&(ji=null),Ni!==null&&Cu(Ni)&&(Ni=null),Si!==null&&Cu(Si)&&(Si=null),lc.forEach(rw),cc.forEach(rw)}function ku(n,r){n.blockedOn===r&&(n.blockedOn=null,Sp||(Sp=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,yA)))}var Tu=null;function ow(n){Tu!==n&&(Tu=n,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Tu===n&&(Tu=null);for(var r=0;r<n.length;r+=3){var l=n[r],d=n[r+1],g=n[r+2];if(typeof d!="function"){if(Np(d||l)===null)continue;break}var v=vn(l);
vendor: 1,879 bytes, line 9
9v!==null&&(n.splice(r,3),r-=3,jm(v,{pending:!0,data:g,method:l.method,action:d},d,g))}}))}function jo(n){function r(z){return ku(z,n)}ji!==null&&ku(ji,n),Ni!==null&&ku(Ni,n),Si!==null&&ku(Si,n),lc.forEach(r),cc.forEach(r);for(var l=0;l<Ci.length;l++){var d=Ci[l];d.blockedOn===n&&(d.blockedOn=null)}for(;0<Ci.length&&(l=Ci[0],l.blockedOn===null);)iw(l),l.blockedOn===null&&Ci.shift();if(l=(n.ownerDocument||n).$$reactFormReplay,l!=null)for(d=0;d<l.length;d+=3){var g=l[d],v=l[d+1],N=g[Ee]||null;if(typeof v=="function")N||ow(l);else if(N){var A=null;if(v&&v.hasAttribute("formAction")){if(g=v,N=v[Ee]||null)A=N.formAction;else if(Np(g)!==null)continue}else A=N.action;typeof A=="function"?l[d+1]=A:(l.splice(d,3),d-=3),ow(l)}}}function lw(){function n(v){v.canIntercept&&v.info==="react-transition"&&v.intercept({handler:function(){return new Promise(function(N){return g=N})},focusReset:"manual",scroll:"manual"})}function r(){g!==null&&(g(),g=null),d||setTimeout(l,20)}function l(){if(!d&&!navigation.transition){var v=navigation.currentEntry;v&&v.url!=null&&navigation.navigate(v.url,{state:v.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var d=!1,g=null;return navigation.addEventListener("navigate",n),navigation.addEventListener("navigatesuccess",r),navigation.addEventListener("navigateerror",r),setTimeout(l,100),function(){d=!0,navigation.removeEventListener("navigate",n),navigation.removeEventListener("navigatesuccess",r),navigation.removeEventListener("navigateerror",r),g!==null&&(g(),g=null)}}}function Cp(n){this._internalRoot=n}Eu.prototype.render=Cp.prototype.render=function(n){var r=this._internalRoot;if(r===null)throw Error(i(409));var l=r.current,d=Kn();J1(l,d,n,r,null,null)},Eu.prototype.unmount=Cp.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var r=n.containerInfo;
9J1(n.current,2,null,n,null,null),lu(),r[Et]=null}};function Eu(n){this._internalRoot=n}Eu.prototype.unstable_scheduleHydration=function(n){if(n){var r=je();n={blockedOn:null,target:n,priority:r};for(var l=0;l<Ci.length&&r!==0&&r<Ci[l].priority;l++);Ci.splice(l,0,n),l===0&&iw(n)}};var cw=t.version;if(cw!=="19.2.0")throw Error(i(527,cw,"19.2.0"));H.findDOMNode=function(n){var r=n._reactInternals;if(r===void 0)throw typeof n.render=="function"?Error(i(188)):(n=Object.keys(n).join(","),Error(i(268,n)));return n=m(r),n=n!==null?x(n):null,n=n===null?null:n.stateNode,n};var vA={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:I,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Mu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Mu.isDisabled&&Mu.supportsFiber)try{rs=Mu.inject(vA),ue=Mu}catch{}}return fc.createRoot=function(n,r){if(!o(n))throw Error(i(299));var l=!1,d="",g=gb,v=xb,N=yb;return r!=null&&(r.unstable_strictMode===!0&&(l=!0),r.identifierPrefix!==void 0&&(d=r.identifierPrefix),r.onUncaughtError!==void 0&&(g=r.onUncaughtError),r.onCaughtError!==void 0&&(v=r.onCaughtError),r.onRecoverableError!==void 0&&(N=r.onRecoverableError)),r=X1(n,1,!1,null,null,l,d,null,g,v,N,lw),n[Et]=r.current,rp(n),new Cp(r)},fc.hydrateRoot=function(n,r,l){if(!o(n))throw Error(i(299));var d=!1,g="",v=gb,N=xb,A=yb,z=null;return l!=null&&(l.unstable_strictMode===!0&&(d=!0),l.identifierPrefix!==void 0&&(g=l.identifierPrefix),l.onUncaughtError!==void 0&&(v=l.onUncaughtError),l.onCaughtError!==void 0&&(N=l.onCaughtError),l.onRecoverableError!==void 0&&(A=l.onRecoverableError),l.formState!==void 0&&(z=l.formState)),r=X1(n,1,!0,r,l??null,d,g,z,v,N,A,lw),r.context=Z1(null),l=r.current,d=Kn(),d=E(d),g=di(d),g.callback=null,ui(l,g,d),l=d,r.current.lanes=l,Ki(r,l),Ks(r),n[Et]=r.current,rp(n),new Eu(r)},fc.version="19.2.0",fc}var vw;function MA(){if(vw)return Tp.exports;vw=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Tp.exports=EA(),Tp.exports}var AA=MA();function DA(e,t){if(e instanceof RegExp)return{keys:!1,pattern:e};var s,i,o,c,u=[],f="",h=e.split("/");for(h[0]||h.shift();o=h.shift();)s=o[0],s==="*"?(u.push(s),f+=o[1]==="?"?"(?:/(.*))?":"/(.*)"):s===":"?(i=o.indexOf("?",1),c=o.indexOf(".",1),u.push(o.substring(1,~i?i:~c?c:o.length)),f+=~i&&!~c?"(?:/([^/]+?))?":"/([^/]+?)",~c&&(f+=(~i?"?":"")+"\\"+o.substring(c))):f+="/"+o;return{keys:u,pattern:new RegExp("^"+f+(t?"(?=$|/)":"/?$"),"i")}}var p=Df();const de=AN(p),Bs=wA({__proto__:null,default:de},[p]);var Op={exports:{}},Rp={};var bw;function OA(){if(bw)return Rp;bw=1;var e=Df();function t(y,b){return y===b&&(y!==0||1/y===1/b)||y!==y&&b!==b}var s=typeof Object.is=="function"?Object.is:t,i=e.useState,o=e.useEffect,c=e.useLayoutEffect,u=e.useDebugValue;function f(y,b){var w=b(),C=i({inst:{value:w,getSnapshot:b}}),j=C[0].inst,S=C[1];return c(function(){j.value=w,j.getSnapshot=b,h(j)&&S({inst:j})},[y,w,b]),o(function(){return h(j)&&S({inst:j}),y(function(){h(j)&&S({inst:j})})},[y]),u(w),w}function h(y){var b=y.getSnapshot;y=y.value;try{var w=b();return!s(y,w)}catch{return!0}}function m(y,b){return b()}var x=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?m:f;return Rp.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:x,Rp}var ww;function RA(){return ww||(ww=1,Op.exports=OA()),Op.exports}var ON=RA();const _A=Bs.useInsertionEffect,PA=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",RN=PA?p.useLayoutEffect:p.useEffect,zA=_A||RN,Dx=e=>{const t=p.useRef([e,(...s)=>t[0](...s)]).current;return zA(()=>{t[0]=e}),t[1]},LA="popstate",Ox="pushState",Rx="replaceState",IA="hashchange",jw=[LA,Ox,Rx,IA],VA=e=>{for(const t of jw)addEventListener(t,e);return()=>{for(const t of jw)removeEventListener(t,e)}},_N=(e,t)=>ON.useSyncExternalStore(VA,e,t),$A=()=>location.search,BA=({ssrSearch:e=""}={})=>_N($A,()=>e),Nw=()=>location.pathname,FA=({ssrPath:e}={})=>_N(Nw,e?()=>e:Nw),HA=(e,{replace:t=!1,state:s=null}={})=>history[t?Rx:Ox](s,"",e),UA=(e={})=>[FA(e),HA],Sw=Symbol.for("wouter_v3");if(typeof history<"u"&&typeof window[Sw]>"u"){for(const e of[Ox,Rx]){const t=history[e];history[e]=function(){const s=t.apply(this,arguments),i=new Event(e);return i.arguments=arguments,dispatchEvent(i),s}}Object.defineProperty(window,Sw,{value:!0})}const qA=(e,t)=>
9t.toLowerCase().indexOf(e.toLowerCase())?"~"+t:t.slice(e.length)||"/",PN=(e="")=>e==="/"?"":e,WA=(e,t)=>e[0]==="~"?e.slice(1):PN(t)+e,GA=(e="",t)=>qA(Cw(PN(e)),Cw(t)),Cw=e=>{try{return decodeURI(e)}catch{return e}},zN={hook:UA,searchHook:BA,parser:DA,base:"",ssrPath:void 0,ssrSearch:void 0,hrefs:e=>e},LN=p.createContext(zN),nl=()=>p.useContext(LN),IN={},VN=p.createContext(IN),YA=()=>p.useContext(VN),Of=e=>{const[t,s]=e.hook(e);return[GA(e.base,t),Dx((i,o)=>s(WA(i,e.base),o))]},ns=()=>Of(nl()),_x=(e,t,s,i)=>{const{pattern:o,keys:c}=t instanceof RegExp?{keys:!1,pattern:t}:e(t||"*",i),u=o.exec(s)||[],[f,...h]=u;return f!==void 0?[!0,(()=>{const m=c!==!1?Object.fromEntries(c.map((y,b)=>[y,h[b]])):u.groups;let x={...h};return m&&Object.assign(x,m),x})(),...i?[f]:[]]:[!1,null]},Wo=e=>_x(nl().parser,e,ns()[0]),KA=({children:e,...t})=>{const s=nl(),i=t.hook?zN:s;let o=i;const[c,u]=t.ssrPath?.split("?")??[];u&&(t.ssrSearch=u,t.ssrPath=c),t.hrefs=t.hrefs??t.hook?.hrefs;let f=p.useRef({}),h=f.current,m=h;for(let x in i){const y=x==="base"?i[x]+(t[x]||""):t[x]||i[x];h===m&&y!==m[x]&&(f.current=m={...m}),m[x]=y,y!==i[x]&&(o=m)}return p.createElement(LN.Provider,{value:o,children:e})},kw=({children:e,component:t},s)=>t?p.createElement(t,{params:s}):typeof e=="function"?e(s):e,QA=e=>{let t=p.useRef(IN),s=t.current;for(const i in e)e[i]!==s[i]&&(s=e);return Object.keys(e).length===0&&(s=e),t.current=s},Pt=({path:e,nest:t,match:s,...i})=>{const o=nl(),[c]=Of(o),[u,f,h]=s??_x(o.parser,e,c,t),m=QA({...YA(),...f});if(!u)return null;const x=h?p.createElement(KA,{base:h},kw(i,m)):kw(i,m);return p.createElement(VN.Provider,{value:m,children:x})},sn=p.forwardRef((e,t)=>{const s=nl(),[i,o]=Of(s),{to:c="",href:u=c,onClick:f,asChild:h,children:m,className:x,replace:y,state:b,...w}=e,C=Dx(S=>{S.ctrlKey||S.metaKey||S.altKey||S.shiftKey||S.button!==0||(f?.(S),S.defaultPrevented||(S.preventDefault(),o(u,e)))}),j=s.hrefs(u[0]==="~"?u.slice(1):s.base+u,s);return h&&p.isValidElement(m)?p.cloneElement(m,{onClick:C,href:j}):p.createElement("a",{...w,onClick:C,href:j,className:x?.call?x(i===u):x,children:m,ref:t})}),$N=e=>Array.isArray(e)?e.flatMap(t=>$N(t&&t.type===p.Fragment?t.props.children:t)):[e],Yu=({children:e,location:t})=>{const s=nl(),[i]=Of(s);for(const o of $N(e)){let c=0;if(p.isValidElement(o)&&(c=_x(s.parser,o.props.path,t||i,o.props.nest))[0])return p.cloneElement(o,{match:c})}return null},kg=e=>{const{to:t,href:s=t}=e,[,i]=ns(),o=Dx(()=>i(t||s,e));return RN(()=>{o()},[]),null};var sl=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Tr=typeof window>"u"||"Deno"in globalThis;function bs(){}function XA(e,t){return typeof e=="function"?e(t):e}function Tg(e){return typeof e=="number"&&e>=0&&e!==1/0}function BN(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Io(e,t){return typeof e=="function"?e(t):e}function Os(e,t){return typeof e=="function"?e(t):e}function Tw(e,t){const{type:s="all",exact:i,fetchStatus:o,predicate:c,queryKey:u,stale:f}=e;if(u){if(i){if(t.queryHash!==Px(u,t.options))return!1}else if(!Ic(t.queryKey,u))return!1}if(s!=="all"){const h=t.isActive();if(s==="active"&&!h||s==="inactive"&&h)return!1}return!(typeof f=="boolean"&&t.isStale()!==f||o&&o!==t.state.fetchStatus||c&&!c(t))}function Ew(e,t){const{exact:s,status:i,predicate:o,mutationKey:c}=e;if(c){if(!t.options.mutationKey)return!1;if(s){if(Er(t.options.mutationKey)!==Er(c))return!1}else if(!Ic(t.options.mutationKey,c))return!1}return!(i&&t.state.status!==i||o&&!o(t))}function Px(e,t){return(t?.queryKeyHashFn||Er)(e)}function Er(e){return JSON.stringify(e,(t,s)=>Eg(s)?Object.keys(s).sort().reduce((i,o)=>(i[o]=s[o],i),{}):s)}function Ic(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(s=>!Ic(e[s],t[s])):!1}function FN(e,t){if(e===t)return e;const s=Mw(e)&&Mw(t);if(s||Eg(e)&&Eg(t)){const i=s?e:Object.keys(e),o=i.length,c=s?t:Object.keys(t),u=c.length,f=s?[]:{};let h=0;for(let m=0;m<u;m++){const x=s?m:c[m];(!s&&i.includes(x)||s)&&e[x]===void 0&&t[x]===void 0?(f[x]=void 0,h++):(f[x]=FN(e[x],t[x]),f[x]===e[x]&&e[x]!==void 0&&h++)}return o===u&&h===o?e:f}return t}function cf(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const s in e)if(e[s]!==t[s])return!1;return!0}function Mw(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Eg(e){if(!Aw(e))return!1;const t=e.constructor;if(t===void 0)return!0;const s=t.prototype;return!(!Aw(s)||!s.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Aw(e){return Object.prototype.toString.call(e)==="[object Object]"}function ZA(e){return new Promise(t=>{setTimeout(t,e)})}
vendor: 26,284 bytes, line 9
9function Mg(e,t,s){return typeof s.structuralSharing=="function"?s.structuralSharing(e,t):s.structuralSharing!==!1?FN(e,t):t}function JA(e,t,s=0){const i=[...e,t];return s&&i.length>s?i.slice(1):i}function e6(e,t,s=0){const i=[t,...e];return s&&i.length>s?i.slice(0,-1):i}var zx=Symbol();function HN(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===zx?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var t6=class extends sl{#e;#t;#s;constructor(){super(),this.#s=e=>{if(!Tr&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#s)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#s=e,this.#t?.(),this.#t=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},Lx=new t6,n6=class extends sl{#e=!0;#t;#s;constructor(){super(),this.#s=e=>{if(!Tr&&window.addEventListener){const t=()=>e(!0),s=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",s)}}}}onSubscribe(){this.#t||this.setEventListener(this.#s)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#s=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(s=>{s(e)}))}isOnline(){return this.#e}},df=new n6;function Ag(){let e,t;const s=new Promise((o,c)=>{e=o,t=c});s.status="pending",s.catch(()=>{});function i(o){Object.assign(s,o),delete s.resolve,delete s.reject}return s.resolve=o=>{i({status:"fulfilled",value:o}),e(o)},s.reject=o=>{i({status:"rejected",reason:o}),t(o)},s}function s6(e){return Math.min(1e3*2**e,3e4)}function UN(e){return(e??"online")==="online"?df.isOnline():!0}var qN=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function _p(e){return e instanceof qN}function WN(e){let t=!1,s=0,i=!1,o;const c=Ag(),u=j=>{i||(b(new qN(j)),e.abort?.())},f=()=>{t=!0},h=()=>{t=!1},m=()=>Lx.isFocused()&&(e.networkMode==="always"||df.isOnline())&&e.canRun(),x=()=>UN(e.networkMode)&&e.canRun(),y=j=>{i||(i=!0,e.onSuccess?.(j),o?.(),c.resolve(j))},b=j=>{i||(i=!0,e.onError?.(j),o?.(),c.reject(j))},w=()=>new Promise(j=>{o=S=>{(i||m())&&j(S)},e.onPause?.()}).then(()=>{o=void 0,i||e.onContinue?.()}),C=()=>{if(i)return;let j;const S=s===0?e.initialPromise:void 0;try{j=S??e.fn()}catch(T){j=Promise.reject(T)}Promise.resolve(j).then(y).catch(T=>{if(i)return;const M=e.retry??(Tr?0:3),k=e.retryDelay??s6,R=typeof k=="function"?k(s,T):k,D=M===!0||typeof M=="number"&&s<M||typeof M=="function"&&M(s,T);if(t||!D){b(T);return}s++,e.onFail?.(s,T),ZA(R).then(()=>m()?void 0:w()).then(()=>{t?b(T):C()})})};return{promise:c,cancel:u,continue:()=>(o?.(),c),cancelRetry:f,continueRetry:h,canStart:x,start:()=>(x()?C():w().then(C),c)}}function a6(){let e=[],t=0,s=f=>{f()},i=f=>{f()},o=f=>setTimeout(f,0);const c=f=>{t?e.push(f):o(()=>{s(f)})},u=()=>{const f=e;e=[],f.length&&o(()=>{i(()=>{f.forEach(h=>{s(h)})})})};return{batch:f=>{let h;t++;try{h=f()}finally{t--,t||u()}return h},batchCalls:f=>(...h)=>{c(()=>{f(...h)})},schedule:c,setNotifyFunction:f=>{s=f},setBatchNotifyFunction:f=>{i=f},setScheduler:f=>{o=f}}}var an=a6(),GN=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Tg(this.gcTime)&&(this.#e=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Tr?1/0:300*1e3))}clearGcTimeout(){this.#e&&(clearTimeout(this.#e),this.#e=void 0)}},i6=class extends GN{#e;#t;#s;#n;#r;#i;constructor(e){super(),this.#i=!1,this.#r=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#s=e.cache,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=r6(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#n?.promise}setOptions(e){this.options={...this.#r,...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#s.remove(this)}setData(e,t){const s=Mg(this.state.data,e,this.options);return this.#a({data:s,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),s}setState(e,t){this.#a({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#n?.promise;return this.#n?.cancel(e),t?t.then(bs).catch(bs):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>Os(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===zx||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(e=0){return this.state.isInvalidated||this.state.data===void 0||!BN(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#n?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#n?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#s.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#n&&(this.#i?this.#n.cancel({revert:!0}):this.#n.cancelRetry()),this.scheduleGc()),this.#s.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#a({type:"invalidate"})}fetch(e,t){if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#n)return this.#n.continueRetry(),this.#n.promise}if(e&&this.setOptions(e),!this.options.queryFn){const f=this.observers.find(h=>h.options.queryFn);f&&this.setOptions(f.options)}const s=new AbortController,i=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(this.#i=!0,s.signal)})},o=()=>{const f=HN(this.options,t),h={queryKey:this.queryKey,meta:this.meta};return i(h),this.#i=!1,this.options.persister?this.options.persister(f,h,this):f(h)},c={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:o};i(c),this.options.behavior?.onFetch(c,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==c.fetchOptions?.meta)&&this.#a({type:"fetch",meta:c.fetchOptions?.meta});const u=f=>{_p(f)&&f.silent||this.#a({type:"error",error:f}),_p(f)||(this.#s.config.onError?.(f,this),this.#s.config.onSettled?.(this.state.data,f,this)),this.scheduleGc()};return this.#n=WN({initialPromise:t?.initialPromise,fn:c.fetchFn,abort:s.abort.bind(s),onSuccess:f=>{if(f===void 0){u(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(f)}catch(h){u(h);return}this.#s.config.onSuccess?.(f,this),this.#s.config.onSettled?.(f,this.state.error,this),this.scheduleGc()},onError:u,onFail:(f,h)=>{this.#a({type:"failed",failureCount:f,error:h})},onPause:()=>{this.#a({type:"pause"})},onContinue:()=>{this.#a({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:()=>!0}),this.#n.start()}#a(e){const t=s=>{switch(e.type){case"failed":return{...s,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,...YN(s.data,this.options),fetchMeta:e.meta??null};case"success":return{...s,data:e.data,dataUpdateCount:s.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=e.error;return _p(i)&&i.revert&&this.#t?{...this.#t,fetchStatus:"idle"}:{...s,error:i,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...e.state}}};this.state=t(this.state),an.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),this.#s.notify({query:this,type:"updated",action:e})})}};function YN(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:UN(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function r6(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,s=t!==void 0,i=s?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:s?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}var o6=class extends sl{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,s){const i=t.queryKey,o=t.queryHash??Px(i,t);let c=this.get(o);return c||(c=new i6({cache:this,queryKey:i,queryHash:o,options:e.defaultQueryOptions(t),state:s,defaultOptions:e.getQueryDefaults(i)}),this.add(c)),c}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){an.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(s=>Tw(t,s))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(s=>Tw(e,s)):t}notify(e){an.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){an.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){an.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},l6=class extends GN{#e;#t;#s;constructor(e){super(),this.mutationId=e.mutationId,this.#t=e.mutationCache,this.#e=[],this.state=e.state||KN(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#e.includes(e)||(this.#e.push(e),this.clearGcTimeout(),this.#t.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#e=this.#e.filter(t=>t!==e),this.scheduleGc(),this.#t.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#e.length||(this.state.status==="pending"?this.scheduleGc():this.#t.remove(this))}continue(){return this.#s?.continue()??this.execute(this.state.variables)}async execute(e){this.#s=WN({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(i,o)=>{this.#n({type:"failed",failureCount:i,error:o})},onPause:()=>{this.#n({type:"pause"})},onContinue:()=>{this.#n({type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#t.canRun(this)});const t=this.state.status==="pending",s=!this.#s.canStart();try{if(!t){this.#n({type:"pending",variables:e,isPaused:s}),await this.#t.config.onMutate?.(e,this);const o=await this.options.onMutate?.(e);o!==this.state.context&&this.#n({type:"pending",context:o,variables:e,isPaused:s})}const i=await this.#s.start();return await this.#t.config.onSuccess?.(i,e,this.state.context,this),await this.options.onSuccess?.(i,e,this.state.context),await this.#t.config.onSettled?.(i,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(i,null,e,this.state.context),this.#n({type:"success",data:i}),i}catch(i){try{throw await this.#t.config.onError?.(i,e,this.state.context,this),await this.options.onError?.(i,e,this.state.context),await this.#t.config.onSettled?.(void 0,i,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,i,e,this.state.context),i}finally{this.#n({type:"error",error:i})}}finally{this.#t.runNext(this)}}#n(e){const t=s=>{switch(e.type){case"failed":return{...s,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};case"pending":return{...s,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{...s,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:e.error,failureCount:s.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),an.batch(()=>{this.#e.forEach(s=>{s.onMutationUpdate(e)}),this.#t.notify({mutation:this,type:"updated",action:e})})}};function KN(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var c6=class extends sl{constructor(e={}){super(),this.config=e,this.#e=new Map,this.#t=Date.now()}#e;#t;build(e,t,s){const i=new l6({mutationCache:this,mutationId:++this.#t,options:e.defaultMutationOptions(t),state:s});return this.add(i),i}add(e){const t=Au(e),s=this.#e.get(t)??[];s.push(e),this.#e.set(t,s),this.notify({type:"added",mutation:e})}remove(e){const t=Au(e);if(this.#e.has(t)){const s=this.#e.get(t)?.filter(i=>i!==e);s&&(s.length===0?this.#e.delete(t):this.#e.set(t,s))}this.notify({type:"removed",mutation:e})}canRun(e){const t=this.#e.get(Au(e))?.find(s=>s.state.status==="pending");return!t||t===e}runNext(e){return this.#e.get(Au(e))?.find(s=>s!==e&&s.state.isPaused)?.continue()??Promise.resolve()}clear(){an.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}getAll(){return[...this.#e.values()].flat()}find(e){const t={exact:!0,...e};return this.getAll().find(s=>Ew(t,s))}findAll(e={}){return this.getAll().filter(t=>Ew(e,t))}notify(e){an.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return an.batch(()=>Promise.all(e.map(t=>t.continue().catch(bs))))}};function Au(e){return e.options.scope?.id??String(e.mutationId)}function Dw(e){return{onFetch:(t,s)=>{const i=t.options,o=t.fetchOptions?.meta?.fetchMore?.direction,c=t.state.data?.pages||[],u=t.state.data?.pageParams||[];let f={pages:[],pageParams:[]},h=0;const m=async()=>{let x=!1;const y=C=>{Object.defineProperty(C,"signal",{enumerable:!0,get:()=>(t.signal.aborted?x=!0:t.signal.addEventListener("abort",()=>{x=!0}),t.signal)})},b=HN(t.options,t.fetchOptions),w=async(C,j,S)=>{if(x)return Promise.reject();if(j==null&&C.pages.length)return Promise.resolve(C);const T={queryKey:t.queryKey,pageParam:j,direction:S?"backward":"forward",meta:t.options.meta};y(T);const M=await b(T),{maxPages:k}=t.options,R=S?e6:JA;return{pages:R(C.pages,M,k),pageParams:R(C.pageParams,j,k)}};if(o&&c.length){const C=o==="backward",j=C?d6:Ow,S={pages:c,pageParams:u},T=j(i,S);f=await w(S,T,C)}else{const C=e??c.length;do{const j=h===0?u[0]??i.initialPageParam:Ow(i,f);if(h>0&&j==null)break;f=await w(f,j),h++}while(h<C)}return f};t.options.persister?t.fetchFn=()=>t.options.persister?.(m,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},s):t.fetchFn=m}}}function Ow(e,{pages:t,pageParams:s}){const i=t.length-1;return t.length>0?e.getNextPageParam(t[i],t,s[i],s):void 0}function d6(e,{pages:t,pageParams:s}){return t.length>0?e.getPreviousPageParam?.(t[0],t,s[0],s):void 0}var u6=class{#e;#t;#s;#n;#r;#i;#a;#o;constructor(e={}){this.#e=e.queryCache||new o6,this.#t=e.mutationCache||new c6,this.#s=e.defaultOptions||{},this.#n=new Map,this.#r=new Map,this.#i=0}mount(){this.#i++,this.#i===1&&(this.#a=Lx.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#o=df.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#i--,this.#i===0&&(this.#a?.(),this.#a=void 0,this.#o?.(),this.#o=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#t.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const s=this.defaultQueryOptions(e),i=this.#e.build(this,s);return e.revalidateIfStale&&i.isStaleByTime(Io(s.staleTime,i))&&this.prefetchQuery(s),Promise.resolve(t)}}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:t,state:s})=>{const i=s.data;return[t,i]})}setQueryData(e,t,s){const i=this.defaultQueryOptions({queryKey:e}),c=this.#e.get(i.queryHash)?.state.data,u=XA(t,c);if(u!==void 0)return this.#e.build(this,i).setData(u,{...s,manual:!0})}setQueriesData(e,t,s){return an.batch(()=>this.#e.findAll(e).map(({queryKey:i})=>[i,this.setQueryData(i,t,s)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){const t=this.#e;an.batch(()=>{t.findAll(e).forEach(s=>{t.remove(s)})})}resetQueries(e,t){const s=this.#e,i={type:"active",...e};return an.batch(()=>(s.findAll(e).forEach(o=>{o.reset()}),this.refetchQueries(i,t)))}cancelQueries(e={},t={}){const s={revert:!0,...t},i=an.batch(()=>this.#e.findAll(e).map(o=>o.cancel(s)));return Promise.all(i).then(bs).catch(bs)}invalidateQueries(e={},t={}){return an.batch(()=>{if(this.#e.findAll(e).forEach(i=>{i.invalidate()}),e.refetchType==="none")return Promise.resolve();const s={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(s,t)})}refetchQueries(e={},t){const s={...t,cancelRefetch:t?.cancelRefetch??!0},i=an.batch(()=>this.#e.findAll(e).filter(o=>!o.isDisabled()).map(o=>{let c=o.fetch(void 0,s);return s.throwOnError||(c=c.catch(bs)),o.state.fetchStatus==="paused"?Promise.resolve():c}));return Promise.all(i).then(bs)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const s=this.#e.build(this,t);return s.isStaleByTime(Io(t.staleTime,s))?s.fetch(t):Promise.resolve(s.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(bs).catch(bs)}fetchInfiniteQuery(e){return e.behavior=Dw(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(bs).catch(bs)}ensureInfiniteQueryData(e){return e.behavior=Dw(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return df.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#s}setDefaultOptions(e){this.#s=e}setQueryDefaults(e,t){this.#n.set(Er(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#n.values()];let s={};return t.forEach(i=>{Ic(e,i.queryKey)&&(s={...s,...i.defaultOptions})}),s}setMutationDefaults(e,t){this.#r.set(Er(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#r.values()];let s={};return t.forEach(i=>{Ic(e,i.mutationKey)&&(s={...s,...i.defaultOptions})}),s}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#s.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Px(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.enabled!==!0&&t.queryFn===zx&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#s.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},f6=class extends sl{constructor(e,t){super(),this.options=t,this.#e=e,this.#o=null,this.#a=Ag(),this.options.experimental_prefetchInRender||this.#a.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#s=void 0;#n=void 0;#r;#i;#a;#o;#p;#f;#h;#c;#d;#l;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),Rw(this.#t,this.options)?this.#u():this.updateResult(),this.#v())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Dg(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Dg(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#w(),this.#t.removeObserver(this)}setOptions(e,t){const s=this.options,i=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Os(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#j(),this.#t.setOptions(this.options),s._defaulted&&!cf(this.options,s)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const o=this.hasListeners();o&&_w(this.#t,i,this.options,s)&&this.#u(),this.updateResult(t),o&&(this.#t!==i||Os(this.options.enabled,this.#t)!==Os(s.enabled,this.#t)||Io(this.options.staleTime,this.#t)!==Io(s.staleTime,this.#t))&&this.#g();const c=this.#x();o&&(this.#t!==i||Os(this.options.enabled,this.#t)!==Os(s.enabled,this.#t)||c!==this.#l)&&this.#y(c)}getOptimisticResult(e){const t=this.#e.getQueryCache().build(this.#e,e),s=this.createResult(t,e);return m6(this,s)&&(this.#n=s,this.#i=this.options,this.#r=this.#t.state),s}getCurrentResult(){return this.#n}trackResult(e,t){const s={};return Object.keys(e).forEach(i=>{Object.defineProperty(s,i,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(i),t?.(i),e[i])})}),s}trackProp(e){this.#m.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#e.defaultQueryOptions(e),s=this.#e.getQueryCache().build(this.#e,t);return s.fetch().then(()=>this.createResult(s,t))}fetch(e){return this.#u({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#n))}#u(e){this.#j();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(bs)),t}#g(){this.#b();const e=Io(this.options.staleTime,this.#t);if(Tr||this.#n.isStale||!Tg(e))return;const s=BN(this.#n.dataUpdatedAt,e)+1;this.#c=setTimeout(()=>{this.#n.isStale||this.updateResult()},s)}#x(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#y(e){this.#w(),this.#l=e,!(Tr||Os(this.options.enabled,this.#t)===!1||!Tg(this.#l)||this.#l===0)&&(this.#d=setInterval(()=>{(this.options.refetchIntervalInBackground||Lx.isFocused())&&this.#u()},this.#l))}#v(){this.#g(),this.#y(this.#x())}#b(){this.#c&&(clearTimeout(this.#c),this.#c=void 0)}#w(){this.#d&&(clearInterval(this.#d),this.#d=void 0)}createResult(e,t){const s=this.#t,i=this.options,o=this.#n,c=this.#r,u=this.#i,h=e!==s?e.state:this.#s,{state:m}=e;let x={...m},y=!1,b;if(t._optimisticResults){const O=this.hasListeners(),_=!O&&Rw(e,t),G=O&&_w(e,s,t,i);(_||G)&&(x={...x,...YN(m.data,e.options)}),t._optimisticResults==="isRestoring"&&(x.fetchStatus="idle")}let{error:w,errorUpdatedAt:C,status:j}=x;if(t.select&&x.data!==void 0)if(o&&x.data===c?.data&&t.select===this.#p)b=this.#f;else try{this.#p=t.select,b=t.select(x.data),b=Mg(o?.data,b,t),this.#f=b,this.#o=null}catch(O){this.#o=O}else b=x.data;if(t.placeholderData!==void 0&&b===void 0&&j==="pending"){let O;if(o?.isPlaceholderData&&t.placeholderData===u?.placeholderData)O=o.data;else if(O=typeof t.placeholderData=="function"?t.placeholderData(this.#h?.state.data,this.#h):t.placeholderData,t.select&&O!==void 0)try{O=t.select(O),this.#o=null}catch(_){this.#o=_}O!==void 0&&(j="success",b=Mg(o?.data,O,t),y=!0)}this.#o&&(w=this.#o,b=this.#f,C=Date.now(),j="error");const S=x.fetchStatus==="fetching",T=j==="pending",M=j==="error",k=T&&S,R=b!==void 0,P={status:j,fetchStatus:x.fetchStatus,isPending:T,isSuccess:j==="success",isError:M,isInitialLoading:k,isLoading:k,data:b,dataUpdatedAt:x.dataUpdatedAt,error:w,errorUpdatedAt:C,failureCount:x.fetchFailureCount,failureReason:x.fetchFailureReason,errorUpdateCount:x.errorUpdateCount,isFetched:x.dataUpdateCount>0||x.errorUpdateCount>0,isFetchedAfterMount:x.dataUpdateCount>h.dataUpdateCount||x.errorUpdateCount>h.errorUpdateCount,isFetching:S,isRefetching:S&&!T,isLoadingError:M&&!R,isPaused:x.fetchStatus==="paused",isPlaceholderData:y,isRefetchError:M&&R,isStale:Ix(e,t),refetch:this.refetch,promise:this.#a};if(this.options.experimental_prefetchInRender){const O=ne=>{P.status==="error"?ne.reject(P.error):P.data!==void 0&&ne.resolve(P.data)},_=()=>{const ne=this.#a=P.promise=Ag();O(ne)},G=this.#a;switch(G.status){case"pending":e.queryHash===s.queryHash&&O(G);break;case"fulfilled":(P.status==="error"||P.data!==G.value)&&_();break;case"rejected":(P.status!=="error"||P.error!==G.reason)&&_();break}}return P}updateResult(e){const t=this.#n,s=this.createResult(this.#t,this.options);if(this.#r=this.#t.state,this.#i=this.options,this.#r.data!==void 0&&(this.#h=this.#t),cf(s,t))return;this.#n=s;const i={},o=()=>{if(!t)return!0;const{notifyOnChangeProps:c}=this.options,u=typeof c=="function"?c():c;if(u==="all"||!u&&!this.#m.size)return!0;const f=new Set(u??this.#m);return this.options.throwOnError&&f.add("error"),Object.keys(this.#n).some(h=>{const m=h;return this.#n[m]!==t[m]&&f.has(m)})};e?.listeners!==!1&&o()&&(i.listeners=!0),this.#N({...i,...e})}#j(){const e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;const t=this.#t;this.#t=e,this.#s=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#v()}#N(e){an.batch(()=>
9{e.listeners&&this.listeners.forEach(t=>{t(this.#n)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function h6(e,t){return Os(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Rw(e,t){return h6(e,t)||e.state.data!==void 0&&Dg(e,t,t.refetchOnMount)}function Dg(e,t,s){if(Os(t.enabled,e)!==!1){const i=typeof s=="function"?s(e):s;return i==="always"||i!==!1&&Ix(e,t)}return!1}function _w(e,t,s,i){return(e!==t||Os(i.enabled,e)===!1)&&(!s.suspense||e.state.status!=="error")&&Ix(e,s)}function Ix(e,t){return Os(t.enabled,e)!==!1&&e.isStaleByTime(Io(t.staleTime,e))}function m6(e,t){return!cf(e.getCurrentResult(),t)}var p6=class extends sl{#e;#t=void 0;#s;#n;constructor(t,s){super(),this.#e=t,this.setOptions(s),this.bindMethods(),this.#r()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const s=this.options;this.options=this.#e.defaultMutationOptions(t),cf(this.options,s)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#s,observer:this}),s?.mutationKey&&this.options.mutationKey&&Er(s.mutationKey)!==Er(this.options.mutationKey)?this.reset():this.#s?.state.status==="pending"&&this.#s.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#s?.removeObserver(this)}onMutationUpdate(t){this.#r(),this.#i(t)}getCurrentResult(){return this.#t}reset(){this.#s?.removeObserver(this),this.#s=void 0,this.#r(),this.#i()}mutate(t,s){return this.#n=s,this.#s?.removeObserver(this),this.#s=this.#e.getMutationCache().build(this.#e,this.options),this.#s.addObserver(this),this.#s.execute(t)}#r(){const t=this.#s?.state??KN();this.#t={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#i(t){an.batch(()=>{if(this.#n&&this.hasListeners()){const s=this.#t.variables,i=this.#t.context;t?.type==="success"?(this.#n.onSuccess?.(t.data,s,i),this.#n.onSettled?.(t.data,null,s,i)):t?.type==="error"&&(this.#n.onError?.(t.error,s,i),this.#n.onSettled?.(void 0,t.error,s,i))}this.listeners.forEach(s=>{s(this.#t)})})}},QN=p.createContext(void 0),Fs=e=>{const t=p.useContext(QN);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},g6=({client:e,children:t})=>(p.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),a.jsx(QN.Provider,{value:e,children:t})),XN=p.createContext(!1),x6=()=>p.useContext(XN);XN.Provider;function y6(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var v6=p.createContext(y6()),b6=()=>p.useContext(v6);function ZN(e,t){return typeof e=="function"?e(...t):!!e}function Og(){}var w6=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},j6=e=>{p.useEffect(()=>{e.clearReset()},[e])},N6=({result:e,errorResetBoundary:t,throwOnError:s,query:i})=>e.isError&&!t.isReset()&&!e.isFetching&&i&&ZN(s,[e.error,i]),S6=e=>{e.suspense&&(e.staleTime===void 0&&(e.staleTime=1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},C6=(e,t)=>e.isLoading&&e.isFetching&&!t,k6=(e,t)=>e?.suspense&&t.isPending,Pw=(e,t,s)=>t.fetchOptimistic(e).catch(()=>{s.clearReset()});function T6(e,t,s){const i=Fs(),o=x6(),c=b6(),u=i.defaultQueryOptions(e);i.getDefaultOptions().queries?._experimental_beforeQuery?.(u),u._optimisticResults=o?"isRestoring":"optimistic",S6(u),w6(u,c),j6(c);const f=!i.getQueryCache().get(u.queryHash),[h]=p.useState(()=>new t(i,u)),m=h.getOptimisticResult(u);if(p.useSyncExternalStore(p.useCallback(x=>{const y=o?Og:h.subscribe(an.batchCalls(x));return h.updateResult(),y},[h,o]),()=>h.getCurrentResult(),()=>h.getCurrentResult()),p.useEffect(()=>{h.setOptions(u,{listeners:!1})},[u,h]),k6(u,m))throw Pw(u,h,c);if(N6({result:m,errorResetBoundary:c,throwOnError:u.throwOnError,query:i.getQueryCache().get(u.queryHash)}))throw m.error;return i.getDefaultOptions().queries?._experimental_afterQuery?.(u,m),u.experimental_prefetchInRender&&!Tr&&C6(m,o)&&(f?Pw(u,h,c):i.getQueryCache().get(u.queryHash)?.promise)?.catch(Og).finally(()=>{h.updateResult()}),u.notifyOnChangeProps?m:h.trackResult(m)}function Gt(e,t){return T6(e,f6)}function dn(e,t){const s=Fs(),[i]=p.useState(()=>new p6(s,e));p.useEffect(()=>{i.setOptions(e)},[i,e]);const o=p.useSyncExternalStore(p.useCallback(u=>i.subscribe(an.batchCalls(u)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),c=p.useCallback((u,f)=>{i.mutate(u,f).catch(Og)},[i]);if(o.error&&ZN(i.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:c,mutateAsync:o.mutate}}async function JN(e){if(!e.ok){const t=await e.text()||e.statusText;throw new Error(`${e.status}: ${t}`)}}async function Vx(e,t,s){const i=await fetch(t,{method:e,headers:s?{"Content-Type":"application/json"}:{},body:s?JSON.stringify(s):void 0,credentials:"include"});return await JN(i),i}const E6=({on401:e})=>async({queryKey:t})=>{const s=await fetch(t.join("/"),{credentials:"include"});return await JN(s),await s.json()},M6=new u6({defaultOptions:{queries:{queryFn:E6({on401:"throw"}),refetchInterval:!1,refetchOnWindowFocus:!1,staleTime:1/0,retry:!1},mutations:{retry:!1}}}),A6=1,D6=1e6;let Pp=0;function O6(){return Pp=(Pp+1)%Number.MAX_SAFE_INTEGER,Pp.toString()}const zp=new Map,zw=e=>{if(zp.has(e))return;const t=setTimeout(()=>{zp.delete(e),Tc({type:"REMOVE_TOAST",toastId:e})},D6);zp.set(e,t)},R6=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,A6)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(s=>s.id===t.toast.id?{...s,...t.toast}:s)};case"DISMISS_TOAST":{const{toastId:s}=t;
9return s?zw(s):e.toasts.forEach(i=>{zw(i.id)}),{...e,toasts:e.toasts.map(i=>i.id===s||s===void 0?{...i,open:!1}:i)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(s=>s.id!==t.toastId)}}},Ku=[];let Qu={toasts:[]};function Tc(e){Qu=R6(Qu,e),Ku.forEach(t=>{t(Qu)})}function Ps({...e}){const t=O6(),s=o=>Tc({type:"UPDATE_TOAST",toast:{...o,id:t}}),i=()=>Tc({type:"DISMISS_TOAST",toastId:t});return Tc({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:o=>{o||i()}}}),{id:t,dismiss:i,update:s}}function $x(){const[e,t]=p.useState(Qu);return p.useEffect(()=>(Ku.push(t),()=>{const s=Ku.indexOf(t);s>-1&&Ku.splice(s,1)}),[e]),{...e,toast:Ps,dismiss:s=>Tc({type:"DISMISS_TOAST",toastId:s})}}var Lr=DN();const eS=AN(Lr);function Zn(e,t,{checkForDefaultPrevented:s=!0}={}){return function(o){if(e?.(o),s===!1||!o.defaultPrevented)return t?.(o)}}function Lw(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Fi(...e){return t=>{let s=!1;const i=e.map(o=>{const c=Lw(o,t);return!s&&typeof c=="function"&&(s=!0),c});if(s)return()=>{for(let o=0;o<i.length;o++){const c=i[o];typeof c=="function"?c():Lw(e[o],null)}}}}function Ue(...e){return p.useCallback(Fi(...e),e)}function _6(e,t){const s=p.createContext(t),i=c=>{const{children:u,...f}=c,h=p.useMemo(()=>f,Object.values(f));return a.jsx(s.Provider,{value:h,children:u})};i.displayName=e+"Provider";function o(c){const u=p.useContext(s);if(u)return u;if(t!==void 0)return t;throw new Error(`\`${c}\` must be used within \`${e}\``)}return[i,o]}function ss(e,t=[]){let s=[];function i(c,u){const f=p.createContext(u),h=s.length;s=[...s,u];const m=y=>{const{scope:b,children:w,...C}=y,j=b?.[e]?.[h]||f,S=p.useMemo(()=>C,Object.values(C));return a.jsx(j.Provider,{value:S,children:w})};m.displayName=c+"Provider";function x(y,b){const w=b?.[e]?.[h]||f,C=p.useContext(w);if(C)return C;if(u!==void 0)return u;throw new Error(`\`${y}\` must be used within \`${c}\``)}return[m,x]}const o=()=>{const c=s.map(u=>p.createContext(u));return function(f){const h=f?.[e]||c;return p.useMemo(()=>({[`__scope${e}`]:{...f,[e]:h}}),[f,h])}};return o.scopeName=e,[i,P6(o,...t)]}function P6(...e){const t=e[0];if(e.length===1)return t;const s=()=>{const i=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(c){const u=i.reduce((f,{useScope:h,scopeName:m})=>{const y=h(c)[`__scope${m}`];return{...f,...y}},{});return p.useMemo(()=>({[`__scope${t.scopeName}`]:u}),[u])}};return s.scopeName=t.scopeName,s}function Rg(e){const t=z6(e),s=p.forwardRef((i,o)=>{const{children:c,...u}=i,f=p.Children.toArray(c),h=f.find(I6);if(h){const m=h.props.children,x=f.map(y=>y===h?p.Children.count(m)>1?p.Children.only(null):p.isValidElement(m)?m.props.children:null:y);return a.jsx(t,{...u,ref:o,children:p.isValidElement(m)?p.cloneElement(m,void 0,x):null})}return a.jsx(t,{...u,ref:o,children:c})});return s.displayName=`${e}.Slot`,s}function z6(e){const t=p.forwardRef((s,i)=>{const{children:o,...c}=s;if(p.isValidElement(o)){const u=$6(o),f=V6(c,o.props);return o.type!==p.Fragment&&(f.ref=i?Fi(i,u):u),p.cloneElement(o,f)}return p.Children.count(o)>1?p.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var L6=Symbol("radix.slottable");function I6(e){return p.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===L6}function V6(e,t){const s={...t};for(const i in t){const o=e[i],c=t[i];/^on[A-Z]/.test(i)?o&&c?s[i]=(...f)=>{c(...f),o(...f)}:o&&(s[i]=o):i==="style"?s[i]={...o,...c}:i==="className"&&(s[i]=[o,c].filter(Boolean).join(" "))}return{...e,...s}}function $6(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,s=t&&"isReactWarning"in t&&t.isReactWarning;return s?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,s=t&&"isReactWarning"in t&&t.isReactWarning,s?e.props.ref:e.props.ref||e.ref)}function B6(e){const t=e+"CollectionProvider",[s,i]=ss(t),[o,c]=s(t,{collectionRef:{current:null},itemMap:new Map}),u=j=>{const{scope:S,children:T}=j,M=de.useRef(null),k=de.useRef(new Map).current;return a.jsx(o,{scope:S,itemMap:k,collectionRef:M,children:T})};u.displayName=t;const f=e+"CollectionSlot",h=Rg(f),m=de.forwardRef((j,S)=>{const{scope:T,children:M}=j,k=c(f,T),R=Ue(S,k.collectionRef);return a.jsx(h,{ref:R,children:M})});m.displayName=f;const x=e+"CollectionItemSlot",y="data-radix-collection-item",b=Rg(x),w=de.forwardRef((j,S)=>{const{scope:T,children:M,...k}=j,R=de.useRef(null),D=Ue(S,R),P=c(x,T);return de.useEffect(()=>(P.itemMap.set(R,{ref:R,...k}),()=>{P.itemMap.delete(R)})),a.jsx(b,{[y]:"",ref:D,children:M})});w.displayName=x;function C(j){const S=c(e+"CollectionConsumer",j);return de.useCallback(()=>{const M=S.collectionRef.current;if(!M)return[];const k=Array.from(M.querySelectorAll(`[${y}]`));return Array.from(S.itemMap.values()).sort((P,O)=>k.indexOf(P.ref.current)-k.indexOf(O.ref.current))},[S.collectionRef,S.itemMap])}return[{Provider:u,Slot:m,ItemSlot:w}
vendor: 4,178 bytes, line 9
9,C,i]}var F6=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],ha=F6.reduce((e,t)=>{const s=Rg(`Primitive.${t}`),i=p.forwardRef((o,c)=>{const{asChild:u,...f}=o,h=u?s:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),a.jsx(h,{...f,ref:c})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{});function tS(e,t){e&&Lr.flushSync(()=>e.dispatchEvent(t))}function yn(e){const t=p.useRef(e);return p.useEffect(()=>{t.current=e}),p.useMemo(()=>(...s)=>t.current?.(...s),[])}function nS(e,t=globalThis?.document){const s=yn(e);p.useEffect(()=>{const i=o=>{o.key==="Escape"&&s(o)};return t.addEventListener("keydown",i,{capture:!0}),()=>t.removeEventListener("keydown",i,{capture:!0})},[s,t])}var H6="DismissableLayer",_g="dismissableLayer.update",U6="dismissableLayer.pointerDownOutside",q6="dismissableLayer.focusOutside",Iw,sS=p.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),aS=p.forwardRef((e,t)=>{const{disableOutsidePointerEvents:s=!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:c,onInteractOutside:u,onDismiss:f,...h}=e,m=p.useContext(sS),[x,y]=p.useState(null),b=x?.ownerDocument??globalThis?.document,[,w]=p.useState({}),C=Ue(t,O=>y(O)),j=Array.from(m.layers),[S]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),T=j.indexOf(S),M=x?j.indexOf(x):-1,k=m.layersWithOutsidePointerEventsDisabled.size>0,R=M>=T,D=G6(O=>{const _=O.target,G=[...m.branches].some(ne=>ne.contains(_));!R||G||(o?.(O),u?.(O),O.defaultPrevented||f?.())},b),P=Y6(O=>{const _=O.target;[...m.branches].some(ne=>ne.contains(_))||(c?.(O),u?.(O),O.defaultPrevented||f?.())},b);return nS(O=>{M===m.layers.size-1&&(i?.(O),!O.defaultPrevented&&f&&(O.preventDefault(),f()))},b),p.useEffect(()=>{if(x)return s&&(m.layersWithOutsidePointerEventsDisabled.size===0&&(Iw=b.body.style.pointerEvents,b.body.style.pointerEvents="none"),m.layersWithOutsidePointerEventsDisabled.add(x)),m.layers.add(x),Vw(),()=>{s&&m.layersWithOutsidePointerEventsDisabled.size===1&&(b.body.style.pointerEvents=Iw)}},[x,b,s,m]),p.useEffect(()=>()=>{x&&(m.layers.delete(x),m.layersWithOutsidePointerEventsDisabled.delete(x),Vw())},[x,m]),p.useEffect(()=>{const O=()=>w({});return document.addEventListener(_g,O),()=>document.removeEventListener(_g,O)},[]),a.jsx(ha.div,{...h,ref:C,style:{pointerEvents:k?R?"auto":"none":void 0,...e.style},onFocusCapture:Zn(e.onFocusCapture,P.onFocusCapture),onBlurCapture:Zn(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:Zn(e.onPointerDownCapture,D.onPointerDownCapture)})});aS.displayName=H6;var W6="DismissableLayerBranch",iS=p.forwardRef((e,t)=>{const s=p.useContext(sS),i=p.useRef(null),o=Ue(t,i);return p.useEffect(()=>{const c=i.current;if(c)return s.branches.add(c),()=>{s.branches.delete(c)}},[s.branches]),a.jsx(ha.div,{...e,ref:o})});iS.displayName=W6;function G6(e,t=globalThis?.document){const s=yn(e),i=p.useRef(!1),o=p.useRef(()=>{});return p.useEffect(()=>{const c=f=>{if(f.target&&!i.current){let h=function(){rS(U6,s,m,{discrete:!0})};const m={originalEvent:f};f.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=h,t.addEventListener("click",o.current,{once:!0})):h()}else t.removeEventListener("click",o.current);i.current=!1},u=window.setTimeout(()=>{t.addEventListener("pointerdown",c)},0);return()=>{window.clearTimeout(u),t.removeEventListener("pointerdown",c),t.removeEventListener("click",o.current)}},[t,s]),{onPointerDownCapture:()=>i.current=!0}}function Y6(e,t=globalThis?.document){const s=yn(e),i=p.useRef(!1);return p.useEffect(()=>{const o=c=>{c.target&&!i.current&&rS(q6,s,{originalEvent:c},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,s]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function Vw(){const e=new CustomEvent(_g);document.dispatchEvent(e)}function rS(e,t,s,{discrete:i}){const o=s.originalEvent.target,c=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:s});t&&o.addEventListener(e,t,{once:!0}),i?tS(o,c):o.dispatchEvent(c)}var K6=aS,Q6=iS,ut=globalThis?.document?p.useLayoutEffect:()=>{},X6="Portal",oS=p.forwardRef((e,t)=>
9{const{container:s,...i}=e,[o,c]=p.useState(!1);ut(()=>c(!0),[]);const u=s||o&&globalThis?.document?.body;return u?eS.createPortal(a.jsx(ha.div,{...i,ref:t}),u):null});oS.displayName=X6;function Z6(e,t){return p.useReducer((s,i)=>t[s][i]??s,e)}var lS=e=>{const{present:t,children:s}=e,i=J6(t),o=typeof s=="function"?s({present:i.isPresent}):p.Children.only(s),c=Ue(i.ref,eD(o));return typeof s=="function"||i.isPresent?p.cloneElement(o,{ref:c}):null};lS.displayName="Presence";function J6(e){const[t,s]=p.useState(),i=p.useRef({}),o=p.useRef(e),c=p.useRef("none"),u=e?"mounted":"unmounted",[f,h]=Z6(u,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return p.useEffect(()=>{const m=Du(i.current);c.current=f==="mounted"?m:"none"},[f]),ut(()=>{const m=i.current,x=o.current;if(x!==e){const b=c.current,w=Du(m);e?h("MOUNT"):w==="none"||m?.display==="none"?h("UNMOUNT"):h(x&&b!==w?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,h]),ut(()=>{if(t){let m;const x=t.ownerDocument.defaultView??window,y=w=>{const j=Du(i.current).includes(w.animationName);if(w.target===t&&j&&(h("ANIMATION_END"),!o.current)){const S=t.style.animationFillMode;t.style.animationFillMode="forwards",m=x.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=S)})}},b=w=>{w.target===t&&(c.current=Du(i.current))};return t.addEventListener("animationstart",b),t.addEventListener("animationcancel",y),t.addEventListener("animationend",y),()=>{x.clearTimeout(m),t.removeEventListener("animationstart",b),t.removeEventListener("animationcancel",y),t.removeEventListener("animationend",y)}}else h("ANIMATION_END")},[t,h]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:p.useCallback(m=>{m&&(i.current=getComputedStyle(m)),s(m)},[])}}function Du(e){return e?.animationName||"none"}function eD(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,s=t&&"isReactWarning"in t&&t.isReactWarning;return s?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,s=t&&"isReactWarning"in t&&t.isReactWarning,s?e.props.ref:e.props.ref||e.ref)}function tD({prop:e,defaultProp:t,onChange:s=()=>{}}){const[i,o]=nD({defaultProp:t,onChange:s}),c=e!==void 0,u=c?e:i,f=yn(s),h=p.useCallback(m=>{if(c){const y=typeof m=="function"?m(e):m;y!==e&&f(y)}else o(m)},[c,e,o,f]);return[u,h]}function nD({defaultProp:e,onChange:t}){const s=p.useState(e),[i]=s,o=p.useRef(i),c=yn(t);return p.useEffect(()=>{o.current!==i&&(c(i),o.current=i)},[i,o,c]),s}var sD="VisuallyHidden",Bx=p.forwardRef((e,t)=>a.jsx(ha.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));Bx.displayName=sD;var Fx="ToastProvider",[Hx,aD,iD]=B6("Toast"),[cS]=ss("Toast",[iD]),[rD,Rf]=cS(Fx),dS=e=>{const{__scopeToast:t,label:s="Notification",duration:i=5e3,swipeDirection:o="right",swipeThreshold:c=50,children:u}=e,[f,h]=p.useState(null),[m,x]=p.useState(0),y=p.useRef(!1),b=p.useRef(!1);return s.trim()||console.error(`Invalid prop \`label\` supplied to \`${Fx}\`. Expected non-empty \`string\`.`),a.jsx(Hx.Provider,{scope:t,children:a.jsx(rD,{scope:t,label:s,duration:i,swipeDirection:o,swipeThreshold:c,toastCount:m,viewport:f,onViewportChange:h,onToastAdd:p.useCallback(()=>x(w=>w+1),[]),onToastRemove:p.useCallback(()=>x(w=>w-1),[]),isFocusedToastEscapeKeyDownRef:y,isClosePausedRef:b,children:u})})};dS.displayName=Fx;var uS="ToastViewport",oD=["F8"],Pg="toast.viewportPause",zg="toast.viewportResume",fS=p.forwardRef((e,t)=>{const{__scopeToast:s,hotkey:i=oD,label:o="Notifications ({hotkey})",...c}=e,u=Rf(uS,s),f=aD(s),h=p.useRef(null),m=p.useRef(null),x=p.useRef(null),y=p.useRef(null),b=Ue(t,y,u.onViewportChange),w=i.join("+").replace(/Key/g,"").replace(/Digit/g,""),C=u.toastCount>0;p.useEffect(()=>{const S=T=>{i.length!==0&&i.every(k=>T[k]||T.code===k)&&y.current?.focus()};return document.addEventListener("keydown",S),()=>document.removeEventListener("keydown",S)},[i]),p.useEffect(()=>{const S=h.current,T=y.current;if(C&&S&&T){const M=()=>
9{if(!u.isClosePausedRef.current){const P=new CustomEvent(Pg);T.dispatchEvent(P),u.isClosePausedRef.current=!0}},k=()=>{if(u.isClosePausedRef.current){const P=new CustomEvent(zg);T.dispatchEvent(P),u.isClosePausedRef.current=!1}},R=P=>{!S.contains(P.relatedTarget)&&k()},D=()=>{S.contains(document.activeElement)||k()};return S.addEventListener("focusin",M),S.addEventListener("focusout",R),S.addEventListener("pointermove",M),S.addEventListener("pointerleave",D),window.addEventListener("blur",M),window.addEventListener("focus",k),()=>{S.removeEventListener("focusin",M),S.removeEventListener("focusout",R),S.removeEventListener("pointermove",M),S.removeEventListener("pointerleave",D),window.removeEventListener("blur",M),window.removeEventListener("focus",k)}}},[C,u.isClosePausedRef]);const j=p.useCallback(({tabbingDirection:S})=>{const M=f().map(k=>{const R=k.ref.current,D=[R,...bD(R)];return S==="forwards"?D:D.reverse()});return(S==="forwards"?M.reverse():M).flat()},[f]);return p.useEffect(()=>{const S=y.current;if(S){const T=M=>{const k=M.altKey||M.ctrlKey||M.metaKey;if(M.key==="Tab"&&!k){const D=document.activeElement,P=M.shiftKey;if(M.target===S&&P){m.current?.focus();return}const G=j({tabbingDirection:P?"backwards":"forwards"}),ne=G.findIndex(se=>se===D);Lp(G.slice(ne+1))?M.preventDefault():P?m.current?.focus():x.current?.focus()}};return S.addEventListener("keydown",T),()=>S.removeEventListener("keydown",T)}},[f,j]),a.jsxs(Q6,{ref:h,role:"region","aria-label":o.replace("{hotkey}",w),tabIndex:-1,style:{pointerEvents:C?void 0:"none"},children:[C&&a.jsx(Lg,{ref:m,onFocusFromOutsideViewport:()=>{const S=j({tabbingDirection:"forwards"});Lp(S)}}),a.jsx(Hx.Slot,{scope:s,children:a.jsx(ha.ol,{tabIndex:-1,...c,ref:b})}),C&&a.jsx(Lg,{ref:x,onFocusFromOutsideViewport:()=>{const S=j({tabbingDirection:"backwards"});Lp(S)}})]})});fS.displayName=uS;var hS="ToastFocusProxy",Lg=p.forwardRef((e,t)=>{const{__scopeToast:s,onFocusFromOutsideViewport:i,...o}=e,c=Rf(hS,s);return a.jsx(Bx,{"aria-hidden":!0,tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:u=>{const f=u.relatedTarget;!c.viewport?.contains(f)&&i()}})});Lg.displayName=hS;var _f="Toast",lD="toast.swipeStart",cD="toast.swipeMove",dD="toast.swipeCancel",uD="toast.swipeEnd",mS=p.forwardRef((e,t)=>{const{forceMount:s,open:i,defaultOpen:o,onOpenChange:c,...u}=e,[f=!0,h]=tD({prop:i,defaultProp:o,onChange:c});return a.jsx(lS,{present:s||f,children:a.jsx(mD,{open:f,...u,ref:t,onClose:()=>h(!1),onPause:yn(e.onPause),onResume:yn(e.onResume),onSwipeStart:Zn(e.onSwipeStart,m=>{m.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Zn(e.onSwipeMove,m=>{const{x,y}=m.detail.delta;m.currentTarget.setAttribute("data-swipe","move"),m.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${x}px`),m.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${y}px`)}),onSwipeCancel:Zn(e.onSwipeCancel,m=>{m.currentTarget.setAttribute("data-swipe","cancel"),m.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),m.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),m.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),m.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:Zn(e.onSwipeEnd,m=>{const{x,y}=m.detail.delta;m.currentTarget.setAttribute("data-swipe","end"),m.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),m.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),m.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${x}px`),m.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${y}px`),h(!1)})})})});mS.displayName=_f;var[fD,hD]=cS(_f,{onClose(){}}),mD=p.forwardRef((e,t)=>{const{__scopeToast:s,type:i="foreground",duration:o,open:c,onClose:u,onEscapeKeyDown:f,onPause:h,onResume:m,onSwipeStart:x,onSwipeMove:y,onSwipeCancel:b,onSwipeEnd:w,...C}=e,j=Rf(_f,s),[S,T]=p.useState(null),M=Ue(t,F=>T(F)),k=p.useRef(null),R=p.useRef(null),D=o||j.duration,P=p.useRef(0),O=p.useRef(D),_=p.useRef(0),{onToastAdd:G,onToastRemove:ne}=j,se=yn(()=>{S?.contains(document.activeElement)&&j.viewport?.focus(),u()}),ce=p.useCallback(F=>
9{!F||F===1/0||(window.clearTimeout(_.current),P.current=new Date().getTime(),_.current=window.setTimeout(se,F))},[se]);p.useEffect(()=>{const F=j.viewport;if(F){const ie=()=>{ce(O.current),m?.()},I=()=>{const H=new Date().getTime()-P.current;O.current=O.current-H,window.clearTimeout(_.current),h?.()};return F.addEventListener(Pg,I),F.addEventListener(zg,ie),()=>{F.removeEventListener(Pg,I),F.removeEventListener(zg,ie)}}},[j.viewport,D,h,m,ce]),p.useEffect(()=>{c&&!j.isClosePausedRef.current&&ce(D)},[c,D,j.isClosePausedRef,ce]),p.useEffect(()=>(G(),()=>ne()),[G,ne]);const Z=p.useMemo(()=>S?wS(S):null,[S]);return j.viewport?a.jsxs(a.Fragment,{children:[Z&&a.jsx(pD,{__scopeToast:s,role:"status","aria-live":i==="foreground"?"assertive":"polite","aria-atomic":!0,children:Z}),a.jsx(fD,{scope:s,onClose:se,children:Lr.createPortal(a.jsx(Hx.ItemSlot,{scope:s,children:a.jsx(K6,{asChild:!0,onEscapeKeyDown:Zn(f,()=>{j.isFocusedToastEscapeKeyDownRef.current||se(),j.isFocusedToastEscapeKeyDownRef.current=!1}),children:a.jsx(ha.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":c?"open":"closed","data-swipe-direction":j.swipeDirection,...C,ref:M,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:Zn(e.onKeyDown,F=>{F.key==="Escape"&&(f?.(F.nativeEvent),F.nativeEvent.defaultPrevented||(j.isFocusedToastEscapeKeyDownRef.current=!0,se()))}),onPointerDown:Zn(e.onPointerDown,F=>{F.button===0&&(k.current={x:F.clientX,y:F.clientY})}),onPointerMove:Zn(e.onPointerMove,F=>{if(!k.current)return;const ie=F.clientX-k.current.x,I=F.clientY-k.current.y,H=!!R.current,$=["left","right"].includes(j.swipeDirection),re=["left","up"].includes(j.swipeDirection)?Math.min:Math.max,me=$?re(0,ie):0,L=$?0:re(0,I),K=F.pointerType==="touch"?10:2,J={x:me,y:L},oe={originalEvent:F,delta:J};H?(R.current=J,Ou(cD,y,oe,{discrete:!1})):$w(J,j.swipeDirection,K)?(R.current=J,Ou(lD,x,oe,{discrete:!1}),F.target.setPointerCapture(F.pointerId)):(Math.abs(ie)>K||Math.abs(I)>K)&&(k.current=null)}),onPointerUp:Zn(e.onPointerUp,F=>{const ie=R.current,I=F.target;if(I.hasPointerCapture(F.pointerId)&&I.releasePointerCapture(F.pointerId),R.current=null,k.current=null,ie){const H=F.currentTarget,$={originalEvent:F,delta:ie};$w(ie,j.swipeDirection,j.swipeThreshold)?Ou(uD,w,$,{discrete:!0}):Ou(dD,b,$,{discrete:!0}),H.addEventListener("click",re=>re.preventDefault(),{once:!0})}})})})}),j.viewport)})]}):null}),pD=e=>{const{__scopeToast:t,children:s,...i}=e,o=Rf(_f,t),[c,u]=p.useState(!1),[f,h]=p.useState(!1);return yD(()=>u(!0)),p.useEffect(()=>{const m=window.setTimeout(()=>h(!0),1e3);return()=>window.clearTimeout(m)},[]),f?null:a.jsx(oS,{asChild:!0,children:a.jsx(Bx,{...i,children:c&&a.jsxs(a.Fragment,{children:[o.label," ",s]})})})},gD="ToastTitle",pS=p.forwardRef((e,t)=>{const{__scopeToast:s,...i}=e;return a.jsx(ha.div,{...i,ref:t})});pS.displayName=gD;var xD="ToastDescription",gS=p.forwardRef((e,t)=>{const{__scopeToast:s,...i}=e;return a.jsx(ha.div,{...i,ref:t})});gS.displayName=xD;var xS="ToastAction",yS=p.forwardRef((e,t)=>{const{altText:s,...i}=e;return s.trim()?a.jsx(bS,{altText:s,asChild:!0,children:a.jsx(Ux,{...i,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${xS}\`. Expected non-empty \`string\`.`),null)});yS.displayName=xS;var vS="ToastClose",Ux=p.forwardRef((e,t)=>{const{__scopeToast:s,...i}=e,o=hD(vS,s);return a.jsx(bS,{asChild:!0,children:a.jsx(ha.button,{type:"button",...i,ref:t,onClick:Zn(e.onClick,o.onClose)})})});Ux.displayName=vS;var bS=p.forwardRef((e,t)=>{const{__scopeToast:s,altText:i,...o}=e;return a.jsx(ha.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":i||void 0,...o,ref:t})});function wS(e){const t=[];return Array.from(e.childNodes).forEach(i=>{if(i.nodeType===i.TEXT_NODE&&i.textContent&&t.push(i.textContent),vD(i)){const o=i.ariaHidden||i.hidden||i.style.display==="none",c=i.dataset.radixToastAnnounceExclude==="";if(!o)if(c){const u=i.dataset.radixToastAnnounceAlt;u&&t.push(u)}else t.push(...wS(i))}}),t}function Ou(e,t,s,{discrete:i}){const o=s.originalEvent.currentTarget,c=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:s});t&&o.addEventListener(e,t,{once:!0}),i?tS(o,c):o.dispatchEvent(c)}var $w=(e,t,s=0)=>{const i=Math.abs(e.x),o=Math.abs(e.y),c=i>o;return t==="left"||t==="right"?c&&i>s:!c&&o>s};function yD(e=()=>{}){const t=yn(e);ut(()=>{let s=0,i=0;return s=window.requestAnimationFrame(()=>i=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(s),window.cancelAnimationFrame(i)}},[t])}
vendor: 5,368 bytes, line 9
9function vD(e){return e.nodeType===e.ELEMENT_NODE}function bD(e){const t=[],s=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const o=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||o?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;s.nextNode();)t.push(s.currentNode);return t}function Lp(e){const t=document.activeElement;return e.some(s=>s===t?!0:(s.focus(),document.activeElement!==t))}var wD=dS,jS=fS,NS=mS,SS=pS,CS=gS,kS=yS,TS=Ux;function ES(e){var t,s,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(s=ES(e[t]))&&(i&&(i+=" "),i+=s)}else for(s in e)e[s]&&(i&&(i+=" "),i+=s);return i}function MS(){for(var e,t,s=0,i="",o=arguments.length;s<o;s++)(e=arguments[s])&&(t=ES(e))&&(i&&(i+=" "),i+=t);return i}const Bw=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Fw=MS,Pf=(e,t)=>s=>{var i;if(t?.variants==null)return Fw(e,s?.class,s?.className);const{variants:o,defaultVariants:c}=t,u=Object.keys(o).map(m=>{const x=s?.[m],y=c?.[m];if(x===null)return null;const b=Bw(x)||Bw(y);return o[m][b]}),f=s&&Object.entries(s).reduce((m,x)=>{let[y,b]=x;return b===void 0||(m[y]=b),m},{}),h=t==null||(i=t.compoundVariants)===null||i===void 0?void 0:i.reduce((m,x)=>{let{class:y,className:b,...w}=x;return Object.entries(w).every(C=>{let[j,S]=C;return Array.isArray(S)?S.includes({...c,...f}[j]):{...c,...f}[j]===S})?[...m,y,b]:m},[]);return Fw(e,u,h,s?.class,s?.className)};const jD=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ND=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,s,i)=>i?i.toUpperCase():s.toLowerCase()),Hw=e=>{const t=ND(e);return t.charAt(0).toUpperCase()+t.slice(1)},AS=(...e)=>e.filter((t,s,i)=>!!t&&t.trim()!==""&&i.indexOf(t)===s).join(" ").trim(),SD=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var CD={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"};const kD=p.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:s=2,absoluteStrokeWidth:i,className:o="",children:c,iconNode:u,...f},h)=>p.createElement("svg",{ref:h,...CD,width:t,height:t,stroke:e,strokeWidth:i?Number(s)*24/Number(t):s,className:AS("lucide",o),...!c&&!SD(f)&&{"aria-hidden":"true"},...f},[...u.map(([m,x])=>p.createElement(m,x)),...Array.isArray(c)?c:[c]]));const ae=(e,t)=>{const s=p.forwardRef(({className:i,...o},c)=>p.createElement(kD,{ref:c,iconNode:t,className:AS(`lucide-${jD(Hw(e))}`,`lucide-${e}`,i),...o}));return s.displayName=Hw(e),s};const TD=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],wc=ae("activity",TD);const ED=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],MD=ae("arrow-down",ED);const AD=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],uf=ae("arrow-left",AD);const DD=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Vn=ae("arrow-right",DD);const OD=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],DS=ae("bell",OD);const RD=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]],_D=ae("book-open",RD);const PD=[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]],zD=ae("briefcase",PD);const LD=[["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"}],["path",{d:"m9 16 2 2 4-4",key:"19s6y9"}]],ID=ae("calendar-check",LD);const VD=[["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"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]],$D=ae("calendar-days",VD);const BD=[["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"}]],Uw=ae("calendar",BD);const FD=[["path",{d:"M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",key:"18u6gg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]],Vc=ae("camera",FD);const HD=[["path",{d:"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2",key:"5owen"}],["circle",{cx:"7",cy:"17",r:"2",key:"u2ysq9"}],["path",{d:"M9 17h6",key:"r8uit2"}],["circle",{cx:"17",cy:"17",r:"2",key:"axvx0g"}]],Mr=ae("car",HD);
9const UD=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],ia=ae("check",UD);const qD=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],zf=ae("chevron-down",qD);const WD=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],qx=ae("chevron-left",WD);const GD=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Zs=ae("chevron-right",GD);const YD=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],OS=ae("chevron-up",YD);const KD=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],RS=ae("circle-alert",KD);const QD=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],He=ae("circle-check",QD);const XD=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],ZD=ae("circle-check-big",XD);const JD=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Ka=ae("clock",JD);const eO=[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M8 19v1",key:"1dk2by"}],["path",{d:"M8 14v1",key:"84yxot"}],["path",{d:"M16 19v1",key:"v220m7"}],["path",{d:"M16 14v1",key:"g12gj6"}],["path",{d:"M12 21v1",key:"q8vafk"}],["path",{d:"M12 16v1",key:"1mx6rx"}]],tO=ae("cloud-drizzle",eO);const nO=[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M16 17H7",key:"pygtm1"}],["path",{d:"M17 21H9",key:"1u2q02"}]],sO=ae("cloud-fog",nO);const aO=[["path",{d:"M6 16.326A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 .5 8.973",key:"1cez44"}],["path",{d:"m13 12-3 5h4l-3 5",key:"1t22er"}]],iO=ae("cloud-lightning",aO);const rO=[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M16 14v6",key:"1j4efv"}],["path",{d:"M8 14v6",key:"17c4r9"}],["path",{d:"M12 16v6",key:"c8a4gj"}]],oO=ae("cloud-rain",rO);const lO=[["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}],["path",{d:"M15.947 12.65a4 4 0 0 0-5.925-4.128",key:"dpwdj0"}],["path",{d:"M13 22H7a5 5 0 1 1 4.9-6H13a3 3 0 0 1 0 6Z",key:"s09mg5"}]],_S=ae("cloud-sun",lO);const cO=[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]],dO=ae("cloud",cO);const uO=[["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"}]],fO=ae("coffee",uO);const hO=[["path",{d:"M3 20a1 1 0 0 1-1-1v-1a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v1a1 1 0 0 1-1 1Z",key:"1pvr1r"}],["path",{d:"M20 16a8 8 0 1 0-16 0",key:"1pa543"}],["path",{d:"M12 4v4",key:"1bq03y"}],["path",{d:"M10 4h4",key:"1xpv9s"}]],mO=ae("concierge-bell",hO);const pO=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],gO=ae("copy",pO);const xO=[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]],Wx=ae("cpu",xO);const yO=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],vO=ae("database",yO);const bO=[["path",{d:"M11 20H2",key:"nlcfvz"}],["path",{d:"M11 4.562v16.157a1 1 0 0 0 1.242.97L19 20V5.562a2 2 0 0 0-1.515-1.94l-4-1A2 2 0 0 0 11 4.561z",key:"au4z13"}],["path",{d:"M11 4H8a2 2 0 0 0-2 2v14",key:"74r1mk"}],["path",{d:"M14 12h.01",key:"1jfl7z"}],["path",{d:"M22 20h-3",key:"vhrsz"}]],wO=ae("door-open",bO);const jO=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],NO=ae("download",jO);const SO=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],PS=ae("external-link",SO);const CO=[["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"}]],Gx=ae("eye-off",CO);const kO=[["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"}]],al=ae("eye",kO);const TO=[["path",{d:"M10.827 16.379a6.082 6.082 0 0 1-8.618-7.002l5.412 1.45a6.082 6.082 0 0 1 7.002-8.618l-1.45 5.412a6.082 6.082 0 0 1 8.618 7.002l-5.412-1.45a6.082 6.082 0 0 1-7.002 8.618l1.45-5.412Z",key:"484a7f"}],["path",{d:"M12 12v.01",key:"u5ubse"}]],Ig=ae("fan",TO);const EO=[["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"}]],zS=ae("file-text",EO);const MO=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M7 3v18",key:"bbkbws"}],["path",{d:"M3 7.5h4",key:"zfgn84"}],["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M3 16.5h4",key:"1230mu"}],["path",{d:"M17 3v18",key:"in4fa5"}],["path",{d:"M17 7.5h4",key:"myr1c1"}],["path",{d:"M17 16.5h4",key:"go4c1d"}]],LS=ae("film",MO);const AO=[["path",{d:"M12 10a2 2 0 0 0-2 2c0 1.02-.1 2.51-.26 4",key:"1nerag"}],["path",{d:"M14 13.12c0 2.38 0 6.38-1 8.88",key:"o46ks0"}],["path",{d:"M17.29 21.02c.12-.6.43-2.3.5-3.02",key:"ptglia"}],["path",{d:"M2 12a10 10 0 0 1 18-6",key:"ydlgp0"}],["path",{d:"M2 16h.01",key:"1gqxmh"}],["path",{d:"M21.8 16c.2-2 .131-5.354 0-6",key:"drycrb"}
9],["path",{d:"M5 19.5C5.5 18 6 15 6 12a6 6 0 0 1 .34-2",key:"1tidbn"}],["path",{d:"M8.65 22c.21-.66.45-1.32.57-2",key:"13wd9y"}],["path",{d:"M9 6.8a6 6 0 0 1 9 5.2v2",key:"1fr1j5"}]],DO=ae("fingerprint",AO);const OO=[["path",{d:"M12 3q1 4 4 6.5t3 5.5a1 1 0 0 1-14 0 5 5 0 0 1 1-3 1 1 0 0 0 5 0c0-2-1.5-3-1.5-5q0-2 2.5-4",key:"1slcih"}]],RO=ae("flame",OO);const _O=[["path",{d:"M12 5a3 3 0 1 1 3 3m-3-3a3 3 0 1 0-3 3m3-3v1M9 8a3 3 0 1 0 3 3M9 8h1m5 0a3 3 0 1 1-3 3m3-3h-1m-2 3v-1",key:"3pnvol"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["path",{d:"M12 10v12",key:"6ubwww"}],["path",{d:"M12 22c4.2 0 7-1.667 7-5-4.2 0-7 1.667-7 5Z",key:"9hd38g"}],["path",{d:"M12 22c-4.2 0-7-1.667-7-5 4.2 0 7 1.667 7 5Z",key:"ufn41s"}]],IS=ae("flower-2",_O);const PO=[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]],zO=ae("funnel",PO);const LO=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],IO=ae("globe",LO);const VO=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]],Ip=ae("history",VO);const $O=[["path",{d:"M10 22v-6.57",key:"1wmca3"}],["path",{d:"M12 11h.01",key:"z322tv"}],["path",{d:"M12 7h.01",key:"1ivr5q"}],["path",{d:"M14 15.43V22",key:"1q2vjd"}],["path",{d:"M15 16a5 5 0 0 0-6 0",key:"o9wqvi"}],["path",{d:"M16 11h.01",key:"xkw8gn"}],["path",{d:"M16 7h.01",key:"1kdx03"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 7h.01",key:"1vti4s"}],["rect",{x:"4",y:"2",width:"16",height:"20",rx:"2",key:"1uxh74"}]],VS=ae("hotel",$O);const BO=[["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-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]],Hi=ae("house",BO);const FO=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],$S=ae("info",FO);const HO=[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]],Ec=ae("key-round",HO);const UO=[["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"}]],Vg=ae("key",UO);const qO=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],BS=ae("layers",qO);const WO=[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]],GO=ae("layout-grid",WO);const YO=[["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"}]],Ha=ae("lightbulb",YO);const KO=[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]],QO=ae("link",KO);const XO=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],br=ae("loader-circle",XO);const ZO=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 9.9-1",key:"1mm8w8"}]],ff=ae("lock-open",ZO);const JO=[["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"}]],En=ae("lock",JO);const e8=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],t8=ae("mail",e8);const n8=[["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"}]],Vo=ae("map-pin",n8);const s8=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],qw=ae("message-square",s8);const a8=[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3",key:"s6n7sd"}]],i8=ae("mic",a8);const r8=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],$c=ae("moon",r8);const o8=[["path",{d:"M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z",key:"e79jfc"}],["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}]],l8=ae("palette",o8);const c8=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]],d8=ae("panel-left-close",c8);const u8=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],FS=ae("pencil",u8);const f8=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2
90 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],Yx=ae("phone",f8);const h8=[["path",{d:"M17.8 19.2 16 11l3.5-3.5C21 6 21.5 4 21 3c-1-.5-3 0-4.5 1.5L13 8 4.8 6.2c-.5-.1-.9.1-1.1.5l-.3.5c-.2.5-.1 1 .3 1.3L9 12l-2 3H4l-1 1 3 2 2 3 1-1v-3l3-2 3.5 5.3c.3.4.8.5 1.3.3l.5-.2c.4-.3.6-.7.5-1.2z",key:"1v9wt8"}]],Kx=ae("plane",h8);const m8=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],$g=ae("play",m8);const p8=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Qx=ae("plus",p8);const g8=[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]],x8=ae("power",g8);const y8=[["path",{d:"M2 3h20",key:"91anmk"}],["path",{d:"M21 3v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V3",key:"2k9sn8"}],["path",{d:"m7 21 5-5 5 5",key:"bip4we"}]],v8=ae("presentation",y8);const b8=[["path",{d:"M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2",key:"143wyd"}],["path",{d:"M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6",key:"1itne7"}],["rect",{x:"6",y:"14",width:"12",height:"8",rx:"1",key:"1ue0tg"}]],w8=ae("printer",b8);const j8=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],Vp=ae("refresh-cw",j8);const N8=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],HS=ae("rotate-ccw",N8);const S8=[["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}]],C8=ae("scan",S8);const k8=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],T8=ae("search",k8);const E8=[["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"}]],US=ae("send",E8);const M8=[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]],A8=ae("server",M8);const D8=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],qS=ae("settings",D8);const O8=[["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"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]],R8=ae("shield-alert",O8);const _8=[["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"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Go=ae("shield-check",_8);const P8=[["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M5 5a1 1 0 0 0-1 1v7c0 5 3.5 7.5 7.67 8.94a1 1 0 0 0 .67.01c2.35-.82 4.48-1.97 5.9-3.71",key:"1jlk70"}],["path",{d:"M9.309 3.652A12.252 12.252 0 0 0 11.24 2.28a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1v7a9.784 9.784 0 0 1-.08 1.264",key:"18rp1v"}]],WS=ae("shield-off",P8);const z8=[["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",ke
9y:"oel41y"}]],_i=ae("shield",z8);const L8=[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]],Ww=ae("smartphone",L8);const I8=[["path",{d:"m10 20-1.25-2.5L6 18",key:"18frcb"}],["path",{d:"M10 4 8.75 6.5 6 6",key:"7mghy3"}],["path",{d:"m14 20 1.25-2.5L18 18",key:"1chtki"}],["path",{d:"m14 4 1.25 2.5L18 6",key:"1b4wsy"}],["path",{d:"m17 21-3-6h-4",key:"15hhxa"}],["path",{d:"m17 3-3 6 1.5 3",key:"11697g"}],["path",{d:"M2 12h6.5L10 9",key:"kv9z4n"}],["path",{d:"m20 10-1.5 2 1.5 2",key:"1swlpi"}],["path",{d:"M22 12h-6.5L14 15",key:"1mxi28"}],["path",{d:"m4 10 1.5 2L4 14",key:"k9enpj"}],["path",{d:"m7 21 3-6-1.5-3",key:"j8hb9u"}],["path",{d:"m7 3 3 6h4",key:"1otusx"}]],V8=ae("snowflake",I8);const $8=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}
9],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],$o=ae("sparkles",$8);const B8=[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",key:"1nb95v"}],["path",{d:"M12 6h.01",key:"1vi96p"}],["circle",{cx:"12",cy:"14",r:"4",key:"1jruaj"}],["path",{d:"M12 14h.01",key:"1etili"}]],GS=ae("speaker",B8);const F8=[["path",{d:"M21 10.656V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.344",key:"2acyp4"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],Gw=ae("square-check-big",F8);const H8=[["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"}]],hf=ae("star",H8);const U8=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],il=ae("sun",U8);const q8=[["path",{d:"M12 2v8",key:"1q4o3n"}],["path",{d:"m4.93 10.93 1.41 1.41",key:"2a7f42"}],["path",{d:"M2 18h2",key:"j10viu"}],["path",{d:"M20 18h2",key:"wocana"}],["path",{d:"m19.07 10.93-1.41 1.41",key:"15zs5n"}],["path",{d:"M22 22H2",key:"19qnx5"}],["path",{d:"m8 6 4-4 4 4",key:"ybng9g"}],["path",{d:"M16 18a4 4 0 0 0-8 0",key:"1lzouq"}]],YS=ae("sunrise",q8);const W8=[["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"}]],G8=ae("tag",W8);const Y8=[["path",{d:"M14 4v10.54a4 4 0 1 1-4 0V4a2 2 0 0 1 4 0Z",key:"17jzev"}]],Lf=ae("thermometer",Y8);const K8=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],Xx=ae("trash-2",K8);const Q8=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Qa=ae("triangle-alert",Q8);const X8=[["path",{d:"M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2",key:"wrbu53"}],["path",{d:"M15 18H9",key:"1lyqi6"}],["path",{d:"M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14",key:"lysw3i"}],["circle",{cx:"17",cy:"18",r:"2",key:"332jqn"}],["circle",{cx:"7",cy:"18",r:"2",key:"19iecd"}]],Z8=ae("truck",X8);const J8=[["path",{d:"m19 5 3-3",key:"yk6iyv"}],["path",{d:"m2 22 3-3",key:"19mgm9"}],["path",{d:"M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z",key:"goz73y"}],["path",{d:"M7.5 13.5 10 11",key:"7xgeeb"}],["path",{d:"M10.5 16.5 13 14",key:"10btkg"}],["path",{d:"m12 6 6 6 2.3-2.3a2.4 2.4 0 0 0 0-3.4l-2.6-2.6a2.4 2.4 0 0 0-3.4 0Z",key:"1snsnr"}]],eR=ae("unplug",J8);const tR=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],Bo=ae("users",tR);const nR=[["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"}]],sR=ae("user",nR);const aR=[["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"}]],Zx=ae("utensils",aR);const iR=[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]],Yo=ae("wifi",iR);
vendor: 8,432 bytes, line 9
9const rR=[["path",{d:"M12.8 19.6A2 2 0 1 0 14 16H2",key:"148xed"}],["path",{d:"M17.5 8a2.5 2.5 0 1 1 2 4H2",key:"1u4tom"}],["path",{d:"M9.8 4.4A2 2 0 1 1 11 8H2",key:"75valh"}]],Ao=ae("wind",rR);const oR=[["path",{d:"M8 22h8",key:"rmew8v"}],["path",{d:"M7 10h10",key:"1101jm"}],["path",{d:"M12 15v7",key:"t2xh3l"}],["path",{d:"M12 15a5 5 0 0 0 5-5c0-2-.5-4-2-8H9c-1.5 4-2 6-2 8a5 5 0 0 0 5 5Z",key:"10ffi3"}]],ed=ae("wine",oR);const lR=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]],mf=ae("wrench",lR);const cR=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Ui=ae("x",cR);const dR=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],Fa=ae("zap",dR),Jx="-",uR=e=>{const t=hR(e),{conflictingClassGroups:s,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:u=>{const f=u.split(Jx);return f[0]===""&&f.length!==1&&f.shift(),KS(f,t)||fR(u)},getConflictingClassGroupIds:(u,f)=>{const h=s[u]||[];return f&&i[u]?[...h,...i[u]]:h}}},KS=(e,t)=>{if(e.length===0)return t.classGroupId;const s=e[0],i=t.nextPart.get(s),o=i?KS(e.slice(1),i):void 0;if(o)return o;if(t.validators.length===0)return;const c=e.join(Jx);return t.validators.find(({validator:u})=>u(c))?.classGroupId},Yw=/^\[(.+)\]$/,fR=e=>{if(Yw.test(e)){const t=Yw.exec(e)[1],s=t?.substring(0,t.indexOf(":"));if(s)return"arbitrary.."+s}},hR=e=>{const{theme:t,classGroups:s}=e,i={nextPart:new Map,validators:[]};for(const o in s)Bg(s[o],i,o,t);return i},Bg=(e,t,s,i)=>{e.forEach(o=>{if(typeof o=="string"){const c=o===""?t:Kw(t,o);c.classGroupId=s;return}if(typeof o=="function"){if(mR(o)){Bg(o(i),t,s,i);return}t.validators.push({validator:o,classGroupId:s});return}Object.entries(o).forEach(([c,u])=>{Bg(u,Kw(t,c),s,i)})})},Kw=(e,t)=>{let s=e;return t.split(Jx).forEach(i=>{s.nextPart.has(i)||s.nextPart.set(i,{nextPart:new Map,validators:[]}),s=s.nextPart.get(i)}),s},mR=e=>e.isThemeGetter,pR=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,s=new Map,i=new Map;const o=(c,u)=>{s.set(c,u),t++,t>e&&(t=0,i=s,s=new Map)};return{get(c){let u=s.get(c);if(u!==void 0)return u;if((u=i.get(c))!==void 0)return o(c,u),u},set(c,u){s.has(c)?s.set(c,u):o(c,u)}}},Fg="!",Hg=":",gR=Hg.length,xR=e=>{const{prefix:t,experimentalParseClassName:s}=e;let i=o=>{const c=[];let u=0,f=0,h=0,m;for(let C=0;C<o.length;C++){let j=o[C];if(u===0&&f===0){if(j===Hg){c.push(o.slice(h,C)),h=C+gR;continue}if(j==="/"){m=C;continue}}j==="["?u++:j==="]"?u--:j==="("?f++:j===")"&&f--}const x=c.length===0?o:o.substring(h),y=yR(x),b=y!==x,w=m&&m>h?m-h:void 0;return{modifiers:c,hasImportantModifier:b,baseClassName:y,maybePostfixModifierPosition:w}};if(t){const o=t+Hg,c=i;i=u=>u.startsWith(o)?c(u.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:u,maybePostfixModifierPosition:void 0}}if(s){const o=i;i=c=>s({className:c,parseClassName:o})}return i},yR=e=>e.endsWith(Fg)?e.substring(0,e.length-1):e.startsWith(Fg)?e.substring(1):e,vR=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(i=>[i,!0]));return i=>{if(i.length<=1)return i;const o=[];let c=[];return i.forEach(u=>{u[0]==="["||t[u]?(o.push(...c.sort(),u),c=[]):c.push(u)}),o.push(...c.sort()),o}},bR=e=>({cache:pR(e.cacheSize),parseClassName:xR(e),sortModifiers:vR(e),...uR(e)}),wR=/\s+/,jR=(e,t)=>{const{parseClassName:s,getClassGroupId:i,getConflictingClassGroupIds:o,sortModifiers:c}=t,u=[],f=e.trim().split(wR);let h="";for(let m=f.length-1;m>=0;m-=1){const x=f[m],{isExternal:y,modifiers:b,hasImportantModifier:w,baseClassName:C,maybePostfixModifierPosition:j}=s(x);if(y){h=x+(h.length>0?" "+h:h);continue}let S=!!j,T=i(S?C.substring(0,j):C);if(!T){if(!S){h=x+(h.length>0?" "+h:h);continue}if(T=i(C),!T){h=x+(h.length>0?" "+h:h);continue}S=!1}const M=c(b).join(":"),k=w?M+Fg:M,R=k+T;if(u.includes(R))continue;u.push(R);const D=o(T,S);for(let P=0;P<D.length;++P){const O=D[P];u.push(k+O)}h=x+(h.length>0?" "+h:h)}return h};function NR(){let e=0,t,s,i="";for(;e<arguments.length;)(t=arguments[e++])&&(s=QS(t))&&(i&&(i+=" "),i+=s);return i}const QS=e=>{if(typeof e=="string")return e;let t,s="";for(let i=0;i<e.length;i++)e[i]&&(t=QS(e[i]))&&(s&&(s+=" "),s+=t);return s};function SR(e,...t){let s,i,o,c=u;function u(h){const m=t.reduce((x,y)=>y(x),e());return s=bR(m),i=s.cache.get,o=s.cache.set,c=f,f(h)}function f(h){const m=i(h);if(m)return m;const x=jR(h,s);return o(h,x),x}return function(){return c(NR.apply(null,arguments))}}const nn=e=>{const t=s=>s[e]||[];return t.isThemeGetter=!0,t},XS=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ZS=/^\((?:(\w[\w-]*):)?(.+)\)$/i,CR=/^\d+\/\d+$/,kR=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,TR=/\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$/,ER=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,MR=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,AR=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,No=e=>CR.test(e),Qe=e=>!!e&&!Number.isNaN(Number(e)),Ti=e=>!!e&&Number.isInteger(Number(e)),$p=e=>e.endsWith("%")&&Qe(e.slice(0,-1)),Ba=e=>kR.test(e),DR=()=>!0,OR=e=>TR.test(e)&&!ER.test(e),JS=()=>!1,RR=e=>MR.test(e),_R=e=>AR.test(e),PR=e=>!ye(e)&&!ve(e),zR=e=>rl(e,n5,JS),ye=e=>XS.test(e),hr=e=>rl(e,s5,OR),Bp=e=>rl(e,BR,Qe),Qw=e=>rl(e,e5,JS),LR=e=>rl(e,t5,_R),Ru=e=>rl(e,a5,RR),ve=e=>ZS.test(e),hc=e=>ol(e,s5),IR=e=>ol(e,FR),Xw=e=>ol(e,e5),VR=e=>ol(e,n5),$R=e=>ol(e,t5),_u=e=>ol(e,a5,!0),rl=(e,t,s)=>{const i=XS.exec(e);return i?i[1]?t(i[1]):s(i[2]):!1},ol=(e,t,s=!1)=>{const i=ZS.exec(e);return i?i[1]?t(i[1]):s:!1},e5=e=>e==="position"||e==="percentage",t5=e=>e==="image"||e==="url",n5=e=>e==="length"||e==="size"||e==="bg-size",s5=e=>e==="length",BR=e=>e==="number",FR=e=>e==="family-name",a5=e=>e==="shadow",HR=()=>{const e=nn("color"),t=nn("font"),s=nn("text"),i=nn("font-weight"),o=nn("tracking"),c=nn("leading"),u=nn("breakpoint"),f=nn("container"),h=nn("spacing"),m=nn("radius"),x=nn("shadow"),y=nn("inset-shadow"),b=nn("text-shadow"),w=nn("drop-shadow"),C=nn("blur"),j=nn("perspective"),S=nn("aspect"),T=nn("ease"),M=nn("animate"),k=()=>["auto","avoid","all","avoid-page","page","left","right","column"],R=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],D=()=>[...R(),ve,ye],P=()=>["auto","hidden","clip","visible","scroll"],O=()=>["auto","contain","none"],_=()=>[ve,ye,h],G=()=>[No,"full","auto",..._()],ne=()=>[Ti,"none","subgrid",ve,ye],se=()=>["auto",{span:["full",Ti,ve,ye]},Ti,ve,ye],ce=()=>[Ti,"auto",ve,ye],Z=()=>["auto","min","max","fr",ve,ye],F=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ie=()=>["start","end","center","stretch","center-safe","end-safe"],I=()=>["auto",..._()],H=()=>[No,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",..._()],$=()=>[e,ve,ye],re=()=>[...R(),Xw,Qw,{position:[ve,ye]}],me=()=>["no-repeat",{repeat:["","x","y","space","round"]}],L=()=>["auto","cover","contain",VR,zR,{size:[ve,ye]}],K=()=>[$p,hc,hr],J=()=>["","none","full",m,ve,ye],oe=()=>["",Qe,hc,hr],pe=()=>["solid","dashed","dotted","double"],we=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ee=()=>[Qe,$p,Xw,Qw],Me=()=>["","none",C,ve,ye],Ce=()=>["none",Qe,ve,ye],_e=()=>["none",Qe,ve,ye],Ve=()=>[Qe,ve,ye],Pe=()=>[No,"full",..._()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ba],breakpoint:[Ba],color:[DR],container:[Ba],"drop-shadow":[Ba],ease:["in","out","in-out"],font:[PR],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ba],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ba],shadow:[Ba],spacing:["px",Qe],text:[Ba],"text-shadow":[Ba],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",No,ye,ve,S]}
vendor: 12,875 bytes, line 9
9],container:["container"],columns:[{columns:[Qe,ye,ve,f]}],"break-after":[{"break-after":k()}],"break-before":[{"break-before":k()}],"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"],sr:["sr-only","not-sr-only"],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:D()}],overflow:[{overflow:P()}],"overflow-x":[{"overflow-x":P()}],"overflow-y":[{"overflow-y":P()}],overscroll:[{overscroll:O()}],"overscroll-x":[{"overscroll-x":O()}],"overscroll-y":[{"overscroll-y":O()}],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:[Ti,"auto",ve,ye]}],basis:[{basis:[No,"full","auto",f,..._()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Qe,No,"auto","initial","none",ye]}],grow:[{grow:["",Qe,ve,ye]}],shrink:[{shrink:["",Qe,ve,ye]}],order:[{order:[Ti,"first","last","none",ve,ye]}],"grid-cols":[{"grid-cols":ne()}],"col-start-end":[{col:se()}],"col-start":[{"col-start":ce()}],"col-end":[{"col-end":ce()}],"grid-rows":[{"grid-rows":ne()}],"row-start-end":[{row:se()}],"row-start":[{"row-start":ce()}],"row-end":[{"row-end":ce()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Z()}],"auto-rows":[{"auto-rows":Z()}],gap:[{gap:_()}],"gap-x":[{"gap-x":_()}],"gap-y":[{"gap-y":_()}],"justify-content":[{justify:[...F(),"normal"]}],"justify-items":[{"justify-items":[...ie(),"normal"]}],"justify-self":[{"justify-self":["auto",...ie()]}],"align-content":[{content:["normal",...F()]}],"align-items":[{items:[...ie(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ie(),{baseline:["","last"]}]}],"place-content":[{"place-content":F()}],"place-items":[{"place-items":[...ie(),"baseline"]}],"place-self":[{"place-self":["auto",...ie()]}],p:[{p:_()}],px:[{px:_()}],py:[{py:_()}],ps:[{ps:_()}],pe:[{pe:_()}],pt:[{pt:_()}],pr:[{pr:_()}],pb:[{pb:_()}],pl:[{pl:_()}],m:[{m:I()}],mx:[{mx:I()}],my:[{my:I()}],ms:[{ms:I()}],me:[{me:I()}],mt:[{mt:I()}],mr:[{mr:I()}],mb:[{mb:I()}],ml:[{ml:I()}],"space-x":[{"space-x":_()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":_()}],"space-y-reverse":["space-y-reverse"],size:[{size:H()}],w:[{w:[f,"screen",...H()]}],"min-w":[{"min-w":[f,"screen","none",...H()]}],"max-w":[{"max-w":[f,"screen","none","prose",{screen:[u]},...H()]}],h:[{h:["screen","lh",...H()]}],"min-h":[{"min-h":["screen","lh","none",...H()]}],"max-h":[{"max-h":["screen","lh",...H()]}],"font-size":[{text:["base",s,hc,hr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,ve,Bp]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",$p,ye]}],"font-family":[{font:[IR,ye,t]}],"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:[o,ve,ye]}],"line-clamp":[{"line-clamp":[Qe,"none",ve,Bp]}],leading:[{leading:[c,..._()]}],"list-image":[{"list-image":["none",ve,ye]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ve,ye]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:$()}],"text-color":[{text:$()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...pe(),"wavy"]}],"text-decoration-thickness":[{decoration:[Qe,"from-font","auto",ve,hr]}],"text-decoration-color":[{decoration:$()}],"underline-offset":[{"underline-offset":[Qe,"auto",ve,ye]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:_()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ve,ye]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ve,ye]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:re()}],"bg-repeat":[{bg:me()}],"bg-size":[{bg:L()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ti,ve,ye],radial:["",ve,ye],conic:[Ti,ve,ye]},$R,LR]}],"bg-color":[{bg:$()}],"gradient-from-pos":[{from:K()}],"gradient-via-pos":[{via:K()}],"gradient-to-pos":[{to:K()}],"gradient-from":[{from:$()}],"gradient-via":[{via:$()}],"gradient-to":[{to:$()}],rounded:[{rounded:J()}],"rounded-s":[{"rounded-s":J()}],"rounded-e":[{"rounded-e":J()}],"rounded-t":[{"rounded-t":J()}],"rounded-r":[{"rounded-r":J()}],"rounded-b":[{"rounded-b":J()}],"rounded-l":[{"rounded-l":J()}],"rounded-ss":[{"rounded-ss":J()}],"rounded-se":[{"rounded-se":J()}],"rounded-ee":[{"rounded-ee":J()}],"rounded-es":[{"rounded-es":J()}],"rounded-tl":[{"rounded-tl":J()}],"rounded-tr":[{"rounded-tr":J()}],"rounded-br":[{"rounded-br":J()}],"rounded-bl":[{"rounded-bl":J()}],"border-w":[{border:oe()}],"border-w-x":[{"border-x":oe()}],"border-w-y":[{"border-y":oe()}],"border-w-s":[{"border-s":oe()}],"border-w-e":[{"border-e":oe()}],"border-w-t":[{"border-t":oe()}],"border-w-r":[{"border-r":oe()}],"border-w-b":[{"border-b":oe()}],"border-w-l":[{"border-l":oe()}],"divide-x":[{"divide-x":oe()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":oe()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...pe(),"hidden","none"]}],"divide-style":[{divide:[...pe(),"hidden","none"]}],"border-color":[{border:$()}],"border-color-x":[{"border-x":$()}],"border-color-y":[{"border-y":$()}],"border-color-s":[{"border-s":$()}],"border-color-e":[{"border-e":$()}],"border-color-t":[{"border-t":$()}],"border-color-r":[{"border-r":$()}],"border-color-b":[{"border-b":$()}],"border-color-l":[{"border-l":$()}],"divide-color":[{divide:$()}],"outline-style":[{outline:[...pe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Qe,ve,ye]}],"outline-w":[{outline:["",Qe,hc,hr]}],"outline-color":[{outline:$()}],shadow:[{shadow:["","none",x,_u,Ru]}],"shadow-color":[{shadow:$()}],"inset-shadow":[{"inset-shadow":["none",y,_u,Ru]}],"inset-shadow-color":[{"inset-shadow":$()}],"ring-w":[{ring:oe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:$()}],"ring-offset-w":[{"ring-offset":[Qe,hr]}],"ring-offset-color":[{"ring-offset":$()}],"inset-ring-w":[{"inset-ring":oe()}],"inset-ring-color":[{"inset-ring":$()}],"text-shadow":[{"text-shadow":["none",b,_u,Ru]}],"text-shadow-color":[{"text-shadow":$()}],opacity:[{opacity:[Qe,ve,ye]}],"mix-blend":[{"mix-blend":[...we(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":we()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Qe]}],"mask-image-linear-from-pos":[{"mask-linear-from":ee()}],"mask-image-linear-to-pos":[{"mask-linear-to":ee()}],"mask-image-linear-from-color":[{"mask-linear-from":$()}],"mask-image-linear-to-color":[{"mask-linear-to":$()}],"mask-image-t-from-pos":[{"mask-t-from":ee()}],"mask-image-t-to-pos":[{"mask-t-to":ee()}],"mask-image-t-from-color":[{"mask-t-from":$()}],"mask-image-t-to-color":[{"mask-t-to":$()}],"mask-image-r-from-pos":[{"mask-r-from":ee()}],"mask-image-r-to-pos":[{"mask-r-to":ee()}],"mask-image-r-from-color":[{"mask-r-from":$()}],"mask-image-r-to-color":[{"mask-r-to":$()}],"mask-image-b-from-pos":[{"mask-b-from":ee()}],"mask-image-b-to-pos":[{"mask-b-to":ee()}],"mask-image-b-from-color":[{"mask-b-from":$()}],"mask-image-b-to-color":[{"mask-b-to":$()}],"mask-image-l-from-pos":[{"mask-l-from":ee()}],"mask-image-l-to-pos":[{"mask-l-to":ee()}],"mask-image-l-from-color":[{"mask-l-from":$()}],"mask-image-l-to-color":[{"mask-l-to":$()}],"mask-image-x-from-pos":[{"mask-x-from":ee()}],"mask-image-x-to-pos":[{"mask-x-to":ee()}],"mask-image-x-from-color":[{"mask-x-from":$()}],"mask-image-x-to-color":[{"mask-x-to":$()}],"mask-image-y-from-pos":[{"mask-y-from":ee()}],"mask-image-y-to-pos":[{"mask-y-to":ee()}],"mask-image-y-from-color":[{"mask-y-from":$()}],"mask-image-y-to-color":[{"mask-y-to":$()}],"mask-image-radial":[{"mask-radial":[ve,ye]}],"mask-image-radial-from-pos":[{"mask-radial-from":ee()}],"mask-image-radial-to-pos":[{"mask-radial-to":ee()}],"mask-image-radial-from-color":[{"mask-radial-from":$()}],"mask-image-radial-to-color":[{"mask-radial-to":$()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":R()}],"mask-image-conic-pos":[{"mask-conic":[Qe]}],"mask-image-conic-from-pos":[{"mask-conic-from":ee()}],"mask-image-conic-to-pos":[{"mask-conic-to":ee()}],"mask-image-conic-from-color":[{"mask-conic-from":$()}],"mask-image-conic-to-color":[{"mask-conic-to":$()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:re()}],"mask-repeat":[{mask:me()}],"mask-size":[{mask:L()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ve,ye]}],filter:[{filter:["","none",ve,ye]}],blur:[{blur:Me()}],brightness:[{brightness:[Qe,ve,ye]}],contrast:[{contrast:[Qe,ve,ye]}],"drop-shadow":[{"drop-shadow":["","none",w,_u,Ru]}],"drop-shadow-color":[{"drop-shadow":$()}],grayscale:[{grayscale:["",Qe,ve,ye]}],"hue-rotate":[{"hue-rotate":[Qe,ve,ye]}],invert:[{invert:["",Qe,ve,ye]}],saturate:[{saturate:[Qe,ve,ye]}],sepia:[{sepia:["",Qe,ve,ye]}],"backdrop-filter":[{"backdrop-filter":["","none",ve,ye]}],"backdrop-blur":[{"backdrop-blur":Me()}],"backdrop-brightness":[{"backdrop-brightness":[Qe,ve,ye]}],"backdrop-contrast":[{"backdrop-contrast":[Qe,ve,ye]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Qe,ve,ye]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Qe,ve,ye]}],"backdrop-invert":[{"backdrop-invert":["",Qe,ve,ye]}],"backdrop-opacity":[{"backdrop-opacity":[Qe,ve,ye]}],"backdrop-saturate":[{"backdrop-saturate":[Qe,ve,ye]}],"backdrop-sepia":[{"backdrop-sepia":["",Qe,ve,ye]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":_()}],"border-spacing-x":[{"border-spacing-x":_()}],"border-spacing-y":[{"border-spacing-y":_()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ve,ye]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Qe,"initial",ve,ye]}],ease:[{ease:["linear","initial",T,ve,ye]}],delay:[{delay:[Qe,ve,ye]}],animate:[{animate:["none",M,ve,ye]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[j,ve,ye]}],"perspective-origin":[{"perspective-origin":D()}],rotate:[{rotate:Ce()}],"rotate-x":[{"rotate-x":Ce()}],"rotate-y":[{"rotate-y":Ce()}],"rotate-z":[{"rotate-z":Ce()}],scale:[{scale:_e()}],"scale-x":[{"scale-x":_e()}],"scale-y":[{"scale-y":_e()}],"scale-z":[{"scale-z":_e()}],"scale-3d":["scale-3d"],skew:[{skew:Ve()}],"skew-x":[{"skew-x":Ve()}],"skew-y":[{"skew-y":Ve()}],transform:[{transform:[ve,ye,"","none","gpu","cpu"]}],"transform-origin":[{origin:D()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Pe()}],"translate-x":[{"translate-x":Pe()}],"translate-y":[{"translate-y":Pe()}],"translate-z":[{"translate-z":Pe()}],"translate-none":["translate-none"],accent:[{accent:$()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:$()}
9],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],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",ve,ye]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":_()}],"scroll-mx":[{"scroll-mx":_()}],"scroll-my":[{"scroll-my":_()}],"scroll-ms":[{"scroll-ms":_()}],"scroll-me":[{"scroll-me":_()}],"scroll-mt":[{"scroll-mt":_()}],"scroll-mr":[{"scroll-mr":_()}],"scroll-mb":[{"scroll-mb":_()}],"scroll-ml":[{"scroll-ml":_()}],"scroll-p":[{"scroll-p":_()}],"scroll-px":[{"scroll-px":_()}],"scroll-py":[{"scroll-py":_()}],"scroll-ps":[{"scroll-ps":_()}],"scroll-pe":[{"scroll-pe":_()}],"scroll-pt":[{"scroll-pt":_()}],"scroll-pr":[{"scroll-pr":_()}],"scroll-pb":[{"scroll-pb":_()}],"scroll-pl":[{"scroll-pl":_()}],"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",ve,ye]}],fill:[{fill:["none",...$()]}],"stroke-w":[{stroke:[Qe,hc,hr,Bp]}],stroke:[{stroke:["none",...$()]}],"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-x","border-w-y","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-x","border-color-y","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"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"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"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},UR=SR(HR);function he(...e){return UR(MS(e))}const qR=wD,i5=p.forwardRef(({className:e,...t},s)=>a.jsx(jS,{ref:s,className:he("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]",e),...t}));i5.displayName=jS.displayName;const WR=Pf("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"}}),r5=p.forwardRef(({className:e,variant:t,...s},i)=>a.jsx(NS,{ref:i,className:he(WR({variant:t}),e),...s}));r5.displayName=NS.displayName;const GR=p.forwardRef(({className:e,...t},s)=>a.jsx(kS,{ref:s,className:he("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 hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));GR.displayName=kS.displayName;const o5=p.forwardRef(({className:e,...t},s)=>a.jsx(TS,{ref:s,className:he("absolute right-2 top-2 rounded-md p-1 text-foreground
vendor: 9,246 bytes, line 9
9/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:a.jsx(Ui,{className:"h-4 w-4"})}));o5.displayName=TS.displayName;const l5=p.forwardRef(({className:e,...t},s)=>a.jsx(SS,{ref:s,className:he("text-sm font-semibold",e),...t}));l5.displayName=SS.displayName;const c5=p.forwardRef(({className:e,...t},s)=>a.jsx(CS,{ref:s,className:he("text-sm opacity-90",e),...t}));c5.displayName=CS.displayName;function Zw(){const{toasts:e}=$x();return a.jsxs(qR,{children:[e.map(function({id:t,title:s,description:i,action:o,...c}){return a.jsxs(r5,{...c,children:[a.jsxs("div",{className:"grid gap-1",children:[s&&a.jsx(l5,{children:s}),i&&a.jsx(c5,{children:i})]}),o,a.jsx(o5,{})]},t)}),a.jsx(i5,{})]})}function So(e,t,{checkForDefaultPrevented:s=!0}={}){return function(o){if(e?.(o),s===!1||!o.defaultPrevented)return t?.(o)}}function Fp(e,t,{checkForDefaultPrevented:s=!0}={}){return function(o){if(e?.(o),s===!1||!o.defaultPrevented)return t?.(o)}}function YR(e){const t=KR(e),s=p.forwardRef((i,o)=>{const{children:c,...u}=i,f=p.Children.toArray(c),h=f.find(XR);if(h){const m=h.props.children,x=f.map(y=>y===h?p.Children.count(m)>1?p.Children.only(null):p.isValidElement(m)?m.props.children:null:y);return a.jsx(t,{...u,ref:o,children:p.isValidElement(m)?p.cloneElement(m,void 0,x):null})}return a.jsx(t,{...u,ref:o,children:c})});return s.displayName=`${e}.Slot`,s}function KR(e){const t=p.forwardRef((s,i)=>{const{children:o,...c}=s;if(p.isValidElement(o)){const u=JR(o),f=ZR(c,o.props);return o.type!==p.Fragment&&(f.ref=i?Fi(i,u):u),p.cloneElement(o,f)}return p.Children.count(o)>1?p.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var QR=Symbol("radix.slottable");function XR(e){return p.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===QR}function ZR(e,t){const s={...t};for(const i in t){const o=e[i],c=t[i];/^on[A-Z]/.test(i)?o&&c?s[i]=(...f)=>{const h=c(...f);return o(...f),h}:o&&(s[i]=o):i==="style"?s[i]={...o,...c}:i==="className"&&(s[i]=[o,c].filter(Boolean).join(" "))}return{...e,...s}}function JR(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,s=t&&"isReactWarning"in t&&t.isReactWarning;return s?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,s=t&&"isReactWarning"in t&&t.isReactWarning,s?e.props.ref:e.props.ref||e.ref)}var e_=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ie=e_.reduce((e,t)=>{const s=YR(`Primitive.${t}`),i=p.forwardRef((o,c)=>{const{asChild:u,...f}=o,h=u?s:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),a.jsx(h,{...f,ref:c})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{});function t_(e,t){e&&Lr.flushSync(()=>e.dispatchEvent(t))}var n_="DismissableLayer",Ug="dismissableLayer.update",s_="dismissableLayer.pointerDownOutside",a_="dismissableLayer.focusOutside",Jw,d5=p.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),td=p.forwardRef((e,t)=>{const{disableOutsidePointerEvents:s=!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:c,onInteractOutside:u,onDismiss:f,...h}=e,m=p.useContext(d5),[x,y]=p.useState(null),b=x?.ownerDocument??globalThis?.document,[,w]=p.useState({}),C=Ue(t,O=>y(O)),j=Array.from(m.layers),[S]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),T=j.indexOf(S),M=x?j.indexOf(x):-1,k=m.layersWithOutsidePointerEventsDisabled.size>0,R=M>=T,D=o_(O=>{const _=O.target,G=[...m.branches].some(ne=>ne.contains(_));!R||G||(o?.(O),u?.(O),O.defaultPrevented||f?.())},b),P=l_(O=>{const _=O.target;[...m.branches].some(ne=>ne.contains(_))||(c?.(O),u?.(O),O.defaultPrevented||f?.())},b);return nS(O=>{M===m.layers.size-1&&(i?.(O),!O.defaultPrevented&&f&&(O.preventDefault(),f()))},b),p.useEffect(()=>{if(x)return s&&(m.layersWithOutsidePointerEventsDisabled.size===0&&(Jw=b.body.style.pointerEvents,b.body.style.pointerEvents="none"),m.layersWithOutsidePointerEventsDisabled.add(x)),m.layers.add(x),e2(),()=>{s&&m.layersWithOutsidePointerEventsDisabled.size===1&&(b.body.style.pointerEvents=Jw)}},[x,b,s,m]),p.useEffect(()=>()=>{x&&(m.layers.delete(x),m.layersWithOutsidePointerEventsDisabled.delete(x),e2())},[x,m]),p.useEffect(()=>{const O=()=>w({});return document.addEventListener(Ug,O),()=>document.removeEventListener(Ug,O)},[]),a.jsx(Ie.div,{...h,ref:C,style:{pointerEvents:k?R?"auto":"none":void 0,...e.style},onFocusCapture:Fp(e.onFocusCapture,P.onFocusCapture),onBlurCapture:Fp(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:Fp(e.onPointerDownCapture,D.onPointerDownCapture)})});td.displayName=n_;var i_="DismissableLayerBranch",r_=p.forwardRef((e,t)=>{const s=p.useContext(d5),i=p.useRef(null),o=Ue(t,i);return p.useEffect(()=>{const c=i.current;if(c)return s.branches.add(c),()=>{s.branches.delete(c)}},[s.branches]),a.jsx(Ie.div,{...e,ref:o})});r_.displayName=i_;function o_(e,t=globalThis?.document){const s=yn(e),i=p.useRef(!1),o=p.useRef(()=>{});return p.useEffect(()=>{const c=f=>{if(f.target&&!i.current){let h=function(){u5(s_,s,m,{discrete:!0})};const m={originalEvent:f};f.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=h,t.addEventListener("click",o.current,{once:!0})):h()}else t.removeEventListener("click",o.current);i.current=!1},u=window.setTimeout(()=>{t.addEventListener("pointerdown",c)},0);return()=>{window.clearTimeout(u),t.removeEventListener("pointerdown",c),t.removeEventListener("click",o.current)}},[t,s]),{onPointerDownCapture:()=>i.current=!0}}function l_(e,t=globalThis?.document){const s=yn(e),i=p.useRef(!1);return p.useEffect(()=>{const o=c=>{c.target&&!i.current&&u5(a_,s,{originalEvent:c},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,s]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function e2(){const e=new CustomEvent(Ug);document.dispatchEvent(e)}function u5(e,t,s,{discrete:i}){const o=s.originalEvent.target,c=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:s});t&&o.addEventListener(e,t,{once:!0}),i?t_(o,c):o.dispatchEvent(c)}var c_=Bs[" useId ".trim().toString()]||(()=>{}),d_=0;function Wa(e){const[t,s]=p.useState(c_());return ut(()=>{s(i=>i??String(d_++))},[e]),t?`radix-${t}`:""}const u_=["top","right","bottom","left"],Pi=Math.min,Xn=Math.max,pf=Math.round,Pu=Math.floor,ta=e=>({x:e,y:e}),f_={left:"right",right:"left",bottom:"top",top:"bottom"},h_={start:"end",end:"start"};function qg(e,t,s){return Xn(e,Pi(t,s))}function Xa(e,t){return typeof e=="function"?e(t):e}function Za(e){return e.split("-")[0]}function ll(e){return e.split("-")[1]}function e0(e){return e==="x"?"y":"x"}function t0(e){return e==="y"?"height":"width"}const m_=new Set(["top","bottom"]);function Js(e){return m_.has(Za(e))?"y":"x"}function n0(e){return e0(Js(e))}function p_(e,t,s){s===void 0&&(s=!1);const i=ll(e),o=n0(e),c=t0(o);let u=o==="x"?i===(s?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[c]>t.floating[c]&&(u=gf(u)),[u,gf(u)]}function g_(e){const t=gf(e);return[Wg(e),t,Wg(t)]}function Wg(e){return e.replace(/start|end/g,t=>h_[t])}const t2=["left","right"],n2=["right","left"],x_=["top","bottom"],y_=["bottom","top"];function v_(e,t,s){switch(e){case"top":case"bottom":return s?t?n2:t2:t?t2:n2;case"left":case"right":return t?x_:y_;default:return[]}}function b_(e,t,s,i){const o=ll(e);let c=v_(Za(e),s==="start",i);return o&&(c=c.map(u=>u+"-"+o),t&&(c=c.concat(c.map(Wg)))),c}function gf(e){return e.replace(/left|right|bottom|top/g,t=>f_[t])}function w_(e){return{top:0,right:0,bottom:0,left:0,...e}}function f5(e){return typeof e!="number"?w_(e):{top:e,right:e,bottom:e,left:e}}function xf(e){const{x:t,y:s,width:i,height:o}=e;return{width:i,height:o,top:s,left:t,right:t+i,bottom:s+o,x:t,y:s}}function s2(e,t,s){let{reference:i,floating:o}=e;const c=Js(t),u=n0(t),f=t0(u),h=Za(t),m=c==="y",x=i.x+i.width/2-o.width/2,y=i.y+i.height/2-o.height/2,b=i[f]/2-o[f]/2;let w;switch(h){case"top":w={x,y:i.y-o.height};break;case"bottom":w={x,y:i.y+i.height};break;case"right":w={x:i.x+i.width,y};break;case"left":w={x:i.x-o.width,y};break;default:w={x:i.x,y:i.y}}switch(ll(t)){case"start":w[u]-=b*(s&&m?-1:1);break;case"end":w[u]+=b*(s&&m?-1:1);break}return w}const j_=async(e,t,s)=>{const{placement:i="bottom",strategy:o="absolute",middleware:c=[],platform:u}=s,f=c.filter(Boolean),h=await(u.isRTL==null?void 0:u.isRTL(t));let m=await u.getElementRects({reference:e,floating:t,strategy:o}),{x,y}=s2(m,i,h),b=i,w={},C=0;for(let j=0;j<f.length;j++){const{name:S,fn:T}=f[j],{x:M,y:k,data:R,reset:D}=await T({x,y,initialPlacement:i,placement:b,strategy:o,middlewareData:w,rects:m,platform:u,elements:{reference:e,floating:t}});x=M??x,y=k??y,w={...w,[S]:{...w[S],...R}},D&&C<=50&&(C++,typeof D=="object"&&(D.placement&&(b=D.placement),D.rects&&(m=D.rects===!0?await u.getElementRects({reference:e,floating:t,strategy:o}):D.rects),{x,y}=s2(m,b,h)),j=-1)}return{x,y,placement:b,strategy:o,middlewareData:w}};async function Bc(e,t){var s;
vendor: 13,913 bytes, line 9
9t===void 0&&(t={});const{x:i,y:o,platform:c,rects:u,elements:f,strategy:h}=e,{boundary:m="clippingAncestors",rootBoundary:x="viewport",elementContext:y="floating",altBoundary:b=!1,padding:w=0}=Xa(t,e),C=f5(w),S=f[b?y==="floating"?"reference":"floating":y],T=xf(await c.getClippingRect({element:(s=await(c.isElement==null?void 0:c.isElement(S)))==null||s?S:S.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(f.floating)),boundary:m,rootBoundary:x,strategy:h})),M=y==="floating"?{x:i,y:o,width:u.floating.width,height:u.floating.height}:u.reference,k=await(c.getOffsetParent==null?void 0:c.getOffsetParent(f.floating)),R=await(c.isElement==null?void 0:c.isElement(k))?await(c.getScale==null?void 0:c.getScale(k))||{x:1,y:1}:{x:1,y:1},D=xf(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:M,offsetParent:k,strategy:h}):M);return{top:(T.top-D.top+C.top)/R.y,bottom:(D.bottom-T.bottom+C.bottom)/R.y,left:(T.left-D.left+C.left)/R.x,right:(D.right-T.right+C.right)/R.x}}const N_=e=>({name:"arrow",options:e,async fn(t){const{x:s,y:i,placement:o,rects:c,platform:u,elements:f,middlewareData:h}=t,{element:m,padding:x=0}=Xa(e,t)||{};if(m==null)return{};const y=f5(x),b={x:s,y:i},w=n0(o),C=t0(w),j=await u.getDimensions(m),S=w==="y",T=S?"top":"left",M=S?"bottom":"right",k=S?"clientHeight":"clientWidth",R=c.reference[C]+c.reference[w]-b[w]-c.floating[C],D=b[w]-c.reference[w],P=await(u.getOffsetParent==null?void 0:u.getOffsetParent(m));let O=P?P[k]:0;(!O||!await(u.isElement==null?void 0:u.isElement(P)))&&(O=f.floating[k]||c.floating[C]);const _=R/2-D/2,G=O/2-j[C]/2-1,ne=Pi(y[T],G),se=Pi(y[M],G),ce=ne,Z=O-j[C]-se,F=O/2-j[C]/2+_,ie=qg(ce,F,Z),I=!h.arrow&&ll(o)!=null&&F!==ie&&c.reference[C]/2-(F<ce?ne:se)-j[C]/2<0,H=I?F<ce?F-ce:F-Z:0;return{[w]:b[w]+H,data:{[w]:ie,centerOffset:F-ie-H,...I&&{alignmentOffset:H}},reset:I}}}),S_=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var s,i;const{placement:o,middlewareData:c,rects:u,initialPlacement:f,platform:h,elements:m}=t,{mainAxis:x=!0,crossAxis:y=!0,fallbackPlacements:b,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:C="none",flipAlignment:j=!0,...S}=Xa(e,t);if((s=c.arrow)!=null&&s.alignmentOffset)return{};const T=Za(o),M=Js(f),k=Za(f)===f,R=await(h.isRTL==null?void 0:h.isRTL(m.floating)),D=b||(k||!j?[gf(f)]:g_(f)),P=C!=="none";!b&&P&&D.push(...b_(f,j,C,R));const O=[f,...D],_=await Bc(t,S),G=[];let ne=((i=c.flip)==null?void 0:i.overflows)||[];if(x&&G.push(_[T]),y){const F=p_(o,u,R);G.push(_[F[0]],_[F[1]])}if(ne=[...ne,{placement:o,overflows:G}],!G.every(F=>F<=0)){var se,ce;const F=(((se=c.flip)==null?void 0:se.index)||0)+1,ie=O[F];if(ie&&(!(y==="alignment"?M!==Js(ie):!1)||ne.every($=>Js($.placement)===M?$.overflows[0]>0:!0)))return{data:{index:F,overflows:ne},reset:{placement:ie}};let I=(ce=ne.filter(H=>H.overflows[0]<=0).sort((H,$)=>H.overflows[1]-$.overflows[1])[0])==null?void 0:ce.placement;if(!I)switch(w){case"bestFit":{var Z;const H=(Z=ne.filter($=>{if(P){const re=Js($.placement);return re===M||re==="y"}return!0}).map($=>[$.placement,$.overflows.filter(re=>re>0).reduce((re,me)=>re+me,0)]).sort(($,re)=>$[1]-re[1])[0])==null?void 0:Z[0];H&&(I=H);break}case"initialPlacement":I=f;break}if(o!==I)return{reset:{placement:I}}}return{}}}};function a2(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function i2(e){return u_.some(t=>e[t]>=0)}const C_=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:s}=t,{strategy:i="referenceHidden",...o}=Xa(e,t);switch(i){case"referenceHidden":{const c=await Bc(t,{...o,elementContext:"reference"}),u=a2(c,s.reference);return{data:{referenceHiddenOffsets:u,referenceHidden:i2(u)}}}case"escaped":{const c=await Bc(t,{...o,altBoundary:!0}),u=a2(c,s.floating);return{data:{escapedOffsets:u,escaped:i2(u)}}}default:return{}}}}},h5=new Set(["left","top"]);async function k_(e,t){const{placement:s,platform:i,elements:o}=e,c=await(i.isRTL==null?void 0:i.isRTL(o.floating)),u=Za(s),f=ll(s),h=Js(s)==="y",m=h5.has(u)?-1:1,x=c&&h?-1:1,y=Xa(t,e);let{mainAxis:b,crossAxis:w,alignmentAxis:C}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:y.mainAxis||0,crossAxis:y.crossAxis||0,alignmentAxis:y.alignmentAxis};return f&&typeof C=="number"&&(w=f==="end"?C*-1:C),h?{x:w*x,y:b*m}:{x:b*m,y:w*x}}const T_=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var s,i;const{x:o,y:c,placement:u,middlewareData:f}=t,h=await k_(t,e);return u===((s=f.offset)==null?void 0:s.placement)&&(i=f.arrow)!=null&&i.alignmentOffset?{}:{x:o+h.x,y:c+h.y,data:{...h,placement:u}}}}},E_=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:s,y:i,placement:o}=t,{mainAxis:c=!0,crossAxis:u=!1,limiter:f={fn:S=>{let{x:T,y:M}=S;return{x:T,y:M}}},...h}=Xa(e,t),m={x:s,y:i},x=await Bc(t,h),y=Js(Za(o)),b=e0(y);let w=m[b],C=m[y];if(c){const S=b==="y"?"top":"left",T=b==="y"?"bottom":"right",M=w+x[S],k=w-x[T];w=qg(M,w,k)}if(u){const S=y==="y"?"top":"left",T=y==="y"?"bottom":"right",M=C+x[S],k=C-x[T];C=qg(M,C,k)}const j=f.fn({...t,[b]:w,[y]:C});return{...j,data:{x:j.x-s,y:j.y-i,enabled:{[b]:c,[y]:u}}}}}},M_=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:s,y:i,placement:o,rects:c,middlewareData:u}=t,{offset:f=0,mainAxis:h=!0,crossAxis:m=!0}=Xa(e,t),x={x:s,y:i},y=Js(o),b=e0(y);let w=x[b],C=x[y];const j=Xa(f,t),S=typeof j=="number"?{mainAxis:j,crossAxis:0}:{mainAxis:0,crossAxis:0,...j};if(h){const k=b==="y"?"height":"width",R=c.reference[b]-c.floating[k]+S.mainAxis,D=c.reference[b]+c.reference[k]-S.mainAxis;w<R?w=R:w>D&&(w=D)}if(m){var T,M;const k=b==="y"?"width":"height",R=h5.has(Za(o)),D=c.reference[y]-c.floating[k]+(R&&((T=u.offset)==null?void 0:T[y])||0)+(R?0:S.crossAxis),P=c.reference[y]+c.reference[k]+(R?0:((M=u.offset)==null?void 0:M[y])||0)-(R?S.crossAxis:0);C<D?C=D:C>P&&(C=P)}return{[b]:w,[y]:C}}}},A_=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var s,i;const{placement:o,rects:c,platform:u,elements:f}=t,{apply:h=()=>{},...m}=Xa(e,t),x=await Bc(t,m),y=Za(o),b=ll(o),w=Js(o)==="y",{width:C,height:j}=c.floating;let S,T;y==="top"||y==="bottom"?(S=y,T=b===(await(u.isRTL==null?void 0:u.isRTL(f.floating))?"start":"end")?"left":"right"):(T=y,S=b==="end"?"top":"bottom");const M=j-x.top-x.bottom,k=C-x.left-x.right,R=Pi(j-x[S],M),D=Pi(C-x[T],k),P=!t.middlewareData.shift;let O=R,_=D;if((s=t.middlewareData.shift)!=null&&s.enabled.x&&(_=k),(i=t.middlewareData.shift)!=null&&i.enabled.y&&(O=M),P&&!b){const ne=Xn(x.left,0),se=Xn(x.right,0),ce=Xn(x.top,0),Z=Xn(x.bottom,0);w?_=C-2*(ne!==0||se!==0?ne+se:Xn(x.left,x.right)):O=j-2*(ce!==0||Z!==0?ce+Z:Xn(x.top,x.bottom))}await h({...t,availableWidth:_,availableHeight:O});const G=await u.getDimensions(f.floating);return C!==G.width||j!==G.height?{reset:{rects:!0}}:{}}}};function If(){return typeof window<"u"}function cl(e){return m5(e)?(e.nodeName||"").toLowerCase():"#document"}function Jn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ma(e){var t;return(t=(m5(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function m5(e){return If()?e instanceof Node||e instanceof Jn(e).Node:!1}function Ls(e){return If()?e instanceof Element||e instanceof Jn(e).Element:!1}function ra(e){return If()?e instanceof HTMLElement||e instanceof Jn(e).HTMLElement:!1}function r2(e){return!If()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Jn(e).ShadowRoot}const D_=new Set(["inline","contents"]);function nd(e){const{overflow:t,overflowX:s,overflowY:i,display:o}=Is(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+s)&&!D_.has(o)}const O_=new Set(["table","td","th"]);function R_(e){return O_.has(cl(e))}const __=[":popover-open",":modal"];function Vf(e){return __.some(t=>{try{return e.matches(t)}catch{return!1}})}const P_=["transform","translate","scale","rotate","perspective"],z_=["transform","translate","scale","rotate","perspective","filter"],L_=["paint","layout","strict","content"];function s0(e){const t=a0(),s=Ls(e)?Is(e):e;return P_.some(i=>s[i]?s[i]!=="none":!1)||(s.containerType?s.containerType!=="normal":!1)||!t&&(s.backdropFilter?s.backdropFilter!=="none":!1)||!t&&(s.filter?s.filter!=="none":!1)||z_.some(i=>(s.willChange||"").includes(i))||L_.some(i=>(s.contain||"").includes(i))}function I_(e){let t=zi(e);for(;ra(t)&&!Ko(t);){if(s0(t))return t;if(Vf(t))return null;t=zi(t)}return null}function a0(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const V_=new Set(["html","body","#document"]);function Ko(e){return V_.has(cl(e))}function Is(e){return Jn(e).getComputedStyle(e)}function $f(e){return Ls(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function zi(e){if(cl(e)==="html")return e;const t=e.assignedSlot||e.parentNode||r2(e)&&e.host||ma(e);return r2(t)?t.host:t}function p5(e){const t=zi(e);return Ko(t)?e.ownerDocument?e.ownerDocument.body:e.body:ra(t)&&nd(t)?t:p5(t)}function Fc(e,t,s){var i;t===void 0&&(t=[]),s===void 0&&(s=!0);const o=p5(e),c=o===((i=e.ownerDocument)==null?void 0:i.body),u=Jn(o);if(c){const f=Gg(u);return t.concat(u,u.visualViewport||[],nd(o)?o:[],f&&s?Fc(f):[])}return t.concat(o,Fc(o,[],s))}function Gg(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function g5(e){const t=Is(e);let s=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const o=ra(e),c=o?e.offsetWidth:s,u=o?e.offsetHeight:i,f=pf(s)!==c||pf(i)!==u;return f&&(s=c,i=u),{width:s,height:i,$:f}}function i0(e){return Ls(e)?e:e.contextElement}function Fo(e){const t=i0(e);if(!ra(t))return ta(1);const s=t.getBoundingClientRect(),{width:i,height:o,$:c}=g5(t);let u=(c?pf(s.width):s.width)/i,f=(c?pf(s.height):s.height)/o;return(!u||!Number.isFinite(u))&&(u=1),(!f||!Number.isFinite(f))&&(f=1),{x:u,y:f}}const $_=ta(0);function x5(e){const t=Jn(e);return!a0()||!t.visualViewport?$_:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function B_(e,t,s){return t===void 0&&(t=!1),!s||t&&s!==Jn(e)?!1:t}function Ar(e,t,s,i){t===void 0&&(t=!1),s===void 0&&(s=!1);const o=e.getBoundingClientRect(),c=i0(e);let u=ta(1);t&&(i?Ls(i)&&(u=Fo(i)):u=Fo(e));const f=B_(c,s,i)?x5(c):ta(0);let h=(o.left+f.x)/u.x,m=(o.top+f.y)/u.y,x=o.width/u.x,y=o.height/u.y;if(c){const b=Jn(c),w=i&&Ls(i)?Jn(i):i;let C=b,j=Gg(C);for(;j&&i&&w!==C;){const S=Fo(j),T=j.getBoundingClientRect(),M=Is(j),k=T.left+(j.clientLeft+parseFloat(M.paddingLeft))*S.x,R=T.top+(j.clientTop+parseFloat(M.paddingTop))*S.y;h*=S.x,m*=S.y,x*=S.x,y*=S.y,h+=k,m+=R,C=Jn(j),j=Gg(C)}}return xf({width:x,height:y,x:h,y:m})}function Bf(e,t){const s=$f(e).scrollLeft;return t?t.left+s:Ar(ma(e)).left+s}function y5(e,t){const s=e.getBoundingClientRect(),i=s.left+t.scrollLeft-Bf(e,s),o=s.top+t.scrollTop;return{x:i,y:o}}function F_(e){let{elements:t,rect:s,offsetParent:i,strategy:o}=e;const c=o==="fixed",u=ma(i),f=t?Vf(t.floating):!1;if(i===u||f&&c)return s;let h={scrollLeft:0,scrollTop:0},m=ta(1);const x=ta(0),y=ra(i);if((y||!y&&!c)&&((cl(i)!=="body"||nd(u))&&(h=$f(i)),ra(i))){const w=Ar(i);m=Fo(i),x.x=w.x+i.clientLeft,x.y=w.y+i.clientTop}const b=u&&!y&&!c?y5(u,h):ta(0);return{width:s.width*m.x,height:s.height*m.y,x:s.x*m.x-h.scrollLeft*m.x+x.x+b.x,y:s.y*m.y-h.scrollTop*m.y+x.y+b.y}}function H_(e){return Array.from(e.getClientRects())}function U_(e){const t=ma(e),s=$f(e),i=e.ownerDocument.body,o=Xn(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),c=Xn(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight);let u=-s.scrollLeft+Bf(e);const f=-s.scrollTop;return Is(i).direction==="rtl"&&(u+=Xn(t.clientWidth,i.clientWidth)-o),{width:o,height:c,x:u,y:f}}const o2=25;function q_(e,t){const s=Jn(e),i=ma(e),o=s.visualViewport;let c=i.clientWidth,u=i.clientHeight,f=0,h=0;if(o){c=o.width,u=o.height;const x=a0();(!x||x&&t==="fixed")&&(f=o.offsetLeft,h=o.offsetTop)}const m=Bf(i);if(m<=0){const x=i.ownerDocument,y=x.body,b=getComputedStyle(y),w=x.compatMode==="CSS1Compat"&&parseFloat(b.marginLeft)+parseFloat(b.marginRight)||0,C=Math.abs(i.clientWidth-y.clientWidth-w);C<=o2&&(c-=C)}else m<=o2&&(c+=m);return{width:c,height:u,x:f,y:h}}const W_=new Set(["absolute","fixed"]);function G_(e,t){const s=Ar(e,!0,t==="fixed"),i=s.top+e.clientTop,o=s.left+e.clientLeft,c=ra(e)?Fo(e):ta(1),u=e.clientWidth*c.x,f=e.clientHeight*c.y,h=o*c.x,m=i*c.y;return{width:u,height:f,x:h,y:m}}function l2(e,t,s){let i;if(t==="viewport")i=q_(e,s);else if(t==="document")i=U_(ma(e));else if(Ls(t))i=G_(t,s);else{const o=x5(e);i={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return xf(i)}function v5(e,t){const s=zi(e);return s===t||!Ls(s)||Ko(s)?!1:Is(s).position==="fixed"||v5(s,t)}function Y_(e,t){const s=t.get(e);if(s)return s;let i=Fc(e,[],!1).filter(f=>Ls(f)&&cl(f)!=="body"),o=null;const c=Is(e).position==="fixed";let u=c?zi(e):e;for(;Ls(u)&&!Ko(u);){const f=Is(u),h=s0(u);!h&&f.position==="fixed"&&(o=null),(c?!h&&!o:!h&&f.position==="static"&&!!o&&W_.has(o.position)||nd(u)&&!h&&v5(e,u))?i=i.filter(x=>x!==u):o=f,u=zi(u)}return t.set(e,i),i}function K_(e){let{element:t,boundary:s,rootBoundary:i,strategy:o}=e;const u=[...s==="clippingAncestors"?Vf(t)?[]:Y_(t,this._c):[].concat(s),i],f=u[0],h=u.reduce((m,x)=>{const y=l2(t,x,o);return m.top=Xn(y.top,m.top),m.right=Pi(y.right,m.right),m.bottom=Pi(y.bottom,m.bottom),m.left=Xn(y.left,m.left),m},l2(t,f,o));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}}function Q_(e){const{width:t,height:s}=g5(e);return{width:t,height:s}}function X_(e,t,s){const i=ra(t),o=ma(t),c=s==="fixed",u=Ar(e,!0,c,t);let f={scrollLeft:0,scrollTop:0};const h=ta(0);function m(){h.x=Bf(o)}if(i||!i&&!c)if((cl(t)!=="body"||nd(o))&&(f=$f(t)),i){const w=Ar(t,!0,c,t);h.x=w.x+t.clientLeft,h.y=w.y+t.clientTop}else o&&m();
vendor: 9,421 bytes, line 9
9c&&!i&&o&&m();const x=o&&!i&&!c?y5(o,f):ta(0),y=u.left+f.scrollLeft-h.x-x.x,b=u.top+f.scrollTop-h.y-x.y;return{x:y,y:b,width:u.width,height:u.height}}function Hp(e){return Is(e).position==="static"}function c2(e,t){if(!ra(e)||Is(e).position==="fixed")return null;if(t)return t(e);let s=e.offsetParent;return ma(e)===s&&(s=s.ownerDocument.body),s}function b5(e,t){const s=Jn(e);if(Vf(e))return s;if(!ra(e)){let o=zi(e);for(;o&&!Ko(o);){if(Ls(o)&&!Hp(o))return o;o=zi(o)}return s}let i=c2(e,t);for(;i&&R_(i)&&Hp(i);)i=c2(i,t);return i&&Ko(i)&&Hp(i)&&!s0(i)?s:i||I_(e)||s}const Z_=async function(e){const t=this.getOffsetParent||b5,s=this.getDimensions,i=await s(e.floating);return{reference:X_(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function J_(e){return Is(e).direction==="rtl"}const eP={convertOffsetParentRelativeRectToViewportRelativeRect:F_,getDocumentElement:ma,getClippingRect:K_,getOffsetParent:b5,getElementRects:Z_,getClientRects:H_,getDimensions:Q_,getScale:Fo,isElement:Ls,isRTL:J_};function w5(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function tP(e,t){let s=null,i;const o=ma(e);function c(){var f;clearTimeout(i),(f=s)==null||f.disconnect(),s=null}function u(f,h){f===void 0&&(f=!1),h===void 0&&(h=1),c();const m=e.getBoundingClientRect(),{left:x,top:y,width:b,height:w}=m;if(f||t(),!b||!w)return;const C=Pu(y),j=Pu(o.clientWidth-(x+b)),S=Pu(o.clientHeight-(y+w)),T=Pu(x),k={rootMargin:-C+"px "+-j+"px "+-S+"px "+-T+"px",threshold:Xn(0,Pi(1,h))||1};let R=!0;function D(P){const O=P[0].intersectionRatio;if(O!==h){if(!R)return u();O?u(!1,O):i=setTimeout(()=>{u(!1,1e-7)},1e3)}O===1&&!w5(m,e.getBoundingClientRect())&&u(),R=!1}try{s=new IntersectionObserver(D,{...k,root:o.ownerDocument})}catch{s=new IntersectionObserver(D,k)}s.observe(e)}return u(!0),c}function nP(e,t,s,i){i===void 0&&(i={});const{ancestorScroll:o=!0,ancestorResize:c=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:h=!1}=i,m=i0(e),x=o||c?[...m?Fc(m):[],...Fc(t)]:[];x.forEach(T=>{o&&T.addEventListener("scroll",s,{passive:!0}),c&&T.addEventListener("resize",s)});const y=m&&f?tP(m,s):null;let b=-1,w=null;u&&(w=new ResizeObserver(T=>{let[M]=T;M&&M.target===m&&w&&(w.unobserve(t),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var k;(k=w)==null||k.observe(t)})),s()}),m&&!h&&w.observe(m),w.observe(t));let C,j=h?Ar(e):null;h&&S();function S(){const T=Ar(e);j&&!w5(j,T)&&s(),j=T,C=requestAnimationFrame(S)}return s(),()=>{var T;x.forEach(M=>{o&&M.removeEventListener("scroll",s),c&&M.removeEventListener("resize",s)}),y?.(),(T=w)==null||T.disconnect(),w=null,h&&cancelAnimationFrame(C)}}const sP=T_,aP=E_,iP=S_,rP=A_,oP=C_,d2=N_,lP=M_,cP=(e,t,s)=>{const i=new Map,o={platform:eP,...s},c={...o.platform,_c:i};return j_(e,t,{...o,platform:c})};var dP=typeof document<"u",uP=function(){},Xu=dP?p.useLayoutEffect:uP;function yf(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let s,i,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(s=e.length,s!==t.length)return!1;for(i=s;i--!==0;)if(!yf(e[i],t[i]))return!1;return!0}if(o=Object.keys(e),s=o.length,s!==Object.keys(t).length)return!1;for(i=s;i--!==0;)if(!{}.hasOwnProperty.call(t,o[i]))return!1;for(i=s;i--!==0;){const c=o[i];if(!(c==="_owner"&&e.$$typeof)&&!yf(e[c],t[c]))return!1}return!0}return e!==e&&t!==t}function j5(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function u2(e,t){const s=j5(e);return Math.round(t*s)/s}function Up(e){const t=p.useRef(e);return Xu(()=>{t.current=e}),t}function fP(e){e===void 0&&(e={});const{placement:t="bottom",strategy:s="absolute",middleware:i=[],platform:o,elements:{reference:c,floating:u}={},transform:f=!0,whileElementsMounted:h,open:m}=e,[x,y]=p.useState({x:0,y:0,strategy:s,placement:t,middlewareData:{},isPositioned:!1}),[b,w]=p.useState(i);yf(b,i)||w(i);const[C,j]=p.useState(null),[S,T]=p.useState(null),M=p.useCallback($=>{$!==P.current&&(P.current=$,j($))},[]),k=p.useCallback($=>{$!==O.current&&(O.current=$,T($))},[]),R=c||C,D=u||S,P=p.useRef(null),O=p.useRef(null),_=p.useRef(x),G=h!=null,ne=Up(h),se=Up(o),ce=Up(m),Z=p.useCallback(()=>{if(!P.current||!O.current)return;const $={placement:t,strategy:s,middleware:b};se.current&&($.platform=se.current),cP(P.current,O.current,$).then(re=>{const me={...re,isPositioned:ce.current!==!1};F.current&&!yf(_.current,me)&&(_.current=me,Lr.flushSync(()=>{y(me)}))})},[b,t,s,se,ce]);Xu(()=>{m===!1&&_.current.isPositioned&&(_.current.isPositioned=!1,y($=>({...$,isPositioned:!1})))},[m]);const F=p.useRef(!1);Xu(()=>(F.current=!0,()=>{F.current=!1}),[]),Xu(()=>{if(R&&(P.current=R),D&&(O.current=D),R&&D){if(ne.current)return ne.current(R,D,Z);Z()}},[R,D,Z,ne,G]);const ie=p.useMemo(()=>({reference:P,floating:O,setReference:M,setFloating:k}),[M,k]),I=p.useMemo(()=>({reference:R,floating:D}),[R,D]),H=p.useMemo(()=>{const $={position:s,left:0,top:0};if(!I.floating)return $;const re=u2(I.floating,x.x),me=u2(I.floating,x.y);return f?{...$,transform:"translate("+re+"px, "+me+"px)",...j5(I.floating)>=1.5&&{willChange:"transform"}}:{position:s,left:re,top:me}},[s,f,I.floating,x.x,x.y]);return p.useMemo(()=>({...x,update:Z,refs:ie,elements:I,floatingStyles:H}),[x,Z,ie,I,H])}const hP=e=>{function t(s){return{}.hasOwnProperty.call(s,"current")}return{name:"arrow",options:e,fn(s){const{element:i,padding:o}=typeof e=="function"?e(s):e;return i&&t(i)?i.current!=null?d2({element:i.current,padding:o}).fn(s):{}:i?d2({element:i,padding:o}).fn(s):{}}}},mP=(e,t)=>({...sP(e),options:[e,t]}),pP=(e,t)=>({...aP(e),options:[e,t]}),gP=(e,t)=>({...lP(e),options:[e,t]}),xP=(e,t)=>({...iP(e),options:[e,t]}),yP=(e,t)=>({...rP(e),options:[e,t]}),vP=(e,t)=>({...oP(e),options:[e,t]}),bP=(e,t)=>({...hP(e),options:[e,t]});var wP="Arrow",N5=p.forwardRef((e,t)=>{const{children:s,width:i=10,height:o=5,...c}=e;return a.jsx(Ie.svg,{...c,ref:t,width:i,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?s:a.jsx("polygon",{points:"0,0 30,0 15,10"})})});N5.displayName=wP;var jP=N5;function Ff(e){const[t,s]=p.useState(void 0);return ut(()=>{if(e){s({width:e.offsetWidth,height:e.offsetHeight});const i=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const c=o[0];let u,f;if("borderBoxSize"in c){const h=c.borderBoxSize,m=Array.isArray(h)?h[0]:h;u=m.inlineSize,f=m.blockSize}else u=e.offsetWidth,f=e.offsetHeight;s({width:u,height:f})});return i.observe(e,{box:"border-box"}),()=>i.unobserve(e)}else s(void 0)},[e]),t}var r0="Popper",[S5,dl]=ss(r0),[NP,C5]=S5(r0),k5=e=>{const{__scopePopper:t,children:s}=e,[i,o]=p.useState(null);return a.jsx(NP,{scope:t,anchor:i,onAnchorChange:o,children:s})};k5.displayName=r0;var T5="PopperAnchor",E5=p.forwardRef((e,t)=>{const{__scopePopper:s,virtualRef:i,...o}=e,c=C5(T5,s),u=p.useRef(null),f=Ue(t,u),h=p.useRef(null);return p.useEffect(()=>{const m=h.current;h.current=i?.current||u.current,m!==h.current&&c.onAnchorChange(h.current)}),i?null:a.jsx(Ie.div,{...o,ref:f})});E5.displayName=T5;var o0="PopperContent",[SP,CP]=S5(o0),M5=p.forwardRef((e,t)=>{const{__scopePopper:s,side:i="bottom",sideOffset:o=0,align:c="center",alignOffset:u=0,arrowPadding:f=0,avoidCollisions:h=!0,collisionBoundary:m=[],collisionPadding:x=0,sticky:y="partial",hideWhenDetached:b=!1,updatePositionStrategy:w="optimized",onPlaced:C,...j}=e,S=C5(o0,s),[T,M]=p.useState(null),k=Ue(t,ee=>M(ee)),[R,D]=p.useState(null),P=Ff(R),O=P?.width??0,_=P?.height??0,G=i+(c!=="center"?"-"+c:""),ne=typeof x=="number"?x:{top:0,right:0,bottom:0,left:0,...x},se=Array.isArray(m)?m:[m],ce=se.length>0,Z={padding:ne,boundary:se.filter(TP),altBoundary:ce},{refs:F,floatingStyles:ie,placement:I,isPositioned:H,middlewareData:$}=fP({strategy:"fixed",placement:G,whileElementsMounted:(...ee)=>nP(...ee,{animationFrame:w==="always"}),elements:{reference:S.anchor},middleware:[mP({mainAxis:o+_,alignmentAxis:u}),h&&pP({mainAxis:!0,crossAxis:!1,limiter:y==="partial"?gP():void 0,...Z}),h&&xP({...Z}),yP({...Z,apply:({elements:ee,rects:Me,availableWidth:Ce,availableHeight:_e})=>{const{width:Ve,height:Pe}=Me.reference,Tt=ee.floating.style;Tt.setProperty("--radix-popper-available-width",`${Ce}px`),Tt.setProperty("--radix-popper-available-height",`${_e}px`),Tt.setProperty("--radix-popper-anchor-width",`${Ve}px`),Tt.setProperty("--radix-popper-anchor-height",`${Pe}px`)}}),R&&bP({element:R,padding:f}),EP({arrowWidth:O,arrowHeight:_}),b&&vP({strategy:"referenceHidden",...Z})]}),[re,me]=O5(I),L=yn(C);ut(()=>{H&&L?.()},[H,L]);const K=$.arrow?.x,J=$.arrow?.y,oe=$.arrow?.centerOffset!==0,[pe,we]=p.useState();return ut(()=>{T&&we(window.getComputedStyle(T).zIndex)},[T]),a.jsx("div",{ref:F.setFloating,"data-radix-popper-content-wrapper":"",style:{...ie,transform:H?ie.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:pe,"--radix-popper-transform-origin":[$.transformOrigin?.x,$.transformOrigin?.y].join(" "),...$.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:a.jsx(SP,{scope:s,placedSide:re,onArrowChange:D,arrowX:K,arrowY:J,shouldHideArrow:oe,children:a.jsx(Ie.div,{"data-side":re,"data-align":me,...j,ref:k,style:{...j.style,animation:H?void 0:"none"}})})})});M5.displayName=o0;var A5="PopperArrow",kP={top:"bottom",right:"left",bottom:"top",left:"r
9ight"},D5=p.forwardRef(function(t,s){const{__scopePopper:i,...o}=t,c=CP(A5,i),u=kP[c.placedSide];return a.jsx("span",{ref:c.onArrowChange,style:{position:"absolute",left:c.arrowX,top:c.arrowY,[u]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[c.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[c.placedSide],visibility:c.shouldHideArrow?"hidden":void 0},children:a.jsx(jP,{...o,ref:s,style:{...o.style,display:"block"}})})});D5.displayName=A5;function TP(e){return e!==null}var EP=e=>({name:"transformOrigin",options:e,fn(t){const{placement:s,rects:i,middlewareData:o}=t,u=o.arrow?.centerOffset!==0,f=u?0:e.arrowWidth,h=u?0:e.arrowHeight,[m,x]=O5(s),y={start:"0%",center:"50%",end:"100%"}[x],b=(o.arrow?.x??0)+f/2,w=(o.arrow?.y??0)+h/2;let C="",j="";return m==="bottom"?(C=u?y:`${b}px`,j=`${-h}px`):m==="top"?(C=u?y:`${b}px`,j=`${i.floating.height+h}px`):m==="right"?(C=`${-h}px`,j=u?y:`${w}px`):m==="left"&&(C=`${i.floating.width+h}px`,j=u?y:`${w}px`),{data:{x:C,y:j}}}});function O5(e){const[t,s="center"]=e.split("-");return[t,s]}var R5=k5,Hf=E5,l0=M5,c0=D5,MP="Portal",sd=p.forwardRef((e,t)=>{const{container:s,...i}=e,[o,c]=p.useState(!1);ut(()=>c(!0),[]);const u=s||o&&globalThis?.document?.body;return u?eS.createPortal(a.jsx(Ie.div,{...i,ref:t}),u):null});sd.displayName=MP;function AP(e,t){return p.useReducer((s,i)=>t[s][i]??s,e)}var pa=e=>{const{present:t,children:s}=e,i=DP(t),o=typeof s=="function"?s({present:i.isPresent}):p.Children.only(s),c=Ue(i.ref,OP(o));return typeof s=="function"||i.isPresent?p.cloneElement(o,{ref:c}):null};pa.displayName="Presence";function DP(e){const[t,s]=p.useState(),i=p.useRef(null),o=p.useRef(e),c=p.useRef("none"),u=e?"mounted":"unmounted",[f,h]=AP(u,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return p.useEffect(()=>{const m=zu(i.current);c.current=f==="mounted"?m:"none"},[f]),ut(()=>{const m=i.current,x=o.current;if(x!==e){const b=c.current,w=zu(m);e?h("MOUNT"):w==="none"||m?.display==="none"?h("UNMOUNT"):h(x&&b!==w?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,h]),ut(()=>{if(t){let m;const x=t.ownerDocument.defaultView??window,y=w=>{const j=zu(i.current).includes(CSS.escape(w.animationName));if(w.target===t&&j&&(h("ANIMATION_END"),!o.current)){const S=t.style.animationFillMode;t.style.animationFillMode="forwards",m=x.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=S)})}},b=w=>{w.target===t&&(c.current=zu(i.current))};return t.addEventListener("animationstart",b),t.addEventListener("animationcancel",y),t.addEventListener("animationend",y),()=>{x.clearTimeout(m),t.removeEventListener("animationstart",b),t.removeEventListener("animationcancel",y),t.removeEventListener("animationend",y)}}else h("ANIMATION_END")},[t,h]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:p.useCallback(m=>{i.current=m?getComputedStyle(m):null,s(m)},[])}}function zu(e){return e?.animationName||"none"}function OP(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,s=t&&"isReactWarning"in t&&t.isReactWarning;return s?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,s=t&&"isReactWarning"in t&&t.isReactWarning,s?e.props.ref:e.props.ref||e.ref)}var RP=Symbol("radix.slottable");function _P(e){const t=({children:s})=>a.jsx(a.Fragment,{children:s});return t.displayName=`${e}.Slottable`,t.__radixId=RP,t}var _5=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"}),PP="VisuallyHidden",P5=p.forwardRef((e,t)=>a.jsx(Ie.span,{...e,ref:t,style:{..._5,...e.style}}));P5.displayName=PP;var zP=P5,[Uf]=ss("Tooltip",[dl]),d0=dl(),z5="TooltipProvider",LP=700,f2="tooltip.open",[IP,L5]=Uf(z5),I5=e=>{const{__scopeTooltip:t,delayDuration:s=LP,skipDelayDuration:i=300,disableHoverableContent:o=!1,children:c}=e,u=p.useRef(!0),f=p.useRef(!1),h=p.useRef(0);return p.useEffect(()=>{const m=h.current;return()=>window.clearTimeout(m)},[]),a.jsx(IP,{scope:t,isOpenDelayedRef:u,delayDuration:s,onOpen:p.useCallback(()=>{window.clearTimeout(h.current),u.current=!1},[]),onClose:p.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>u.current=!0,i)},[i]),isPointerInTransitRef:f,onPointerInTransitChange:p.useCallback(m=>{f.current=m},[]),disableHoverableContent:o,children:c})};I5.displayName=z5;var V5="Tooltip",[jK,ad]=Uf(V5),Yg="TooltipTrigger",VP=p.forwardRef((e,t)=>
vendor: 5,794 bytes, line 9
9{const{__scopeTooltip:s,...i}=e,o=ad(Yg,s),c=L5(Yg,s),u=d0(s),f=p.useRef(null),h=Ue(t,f,o.onTriggerChange),m=p.useRef(!1),x=p.useRef(!1),y=p.useCallback(()=>m.current=!1,[]);return p.useEffect(()=>()=>document.removeEventListener("pointerup",y),[y]),a.jsx(Hf,{asChild:!0,...u,children:a.jsx(Ie.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...i,ref:h,onPointerMove:So(e.onPointerMove,b=>{b.pointerType!=="touch"&&!x.current&&!c.isPointerInTransitRef.current&&(o.onTriggerEnter(),x.current=!0)}),onPointerLeave:So(e.onPointerLeave,()=>{o.onTriggerLeave(),x.current=!1}),onPointerDown:So(e.onPointerDown,()=>{o.open&&o.onClose(),m.current=!0,document.addEventListener("pointerup",y,{once:!0})}),onFocus:So(e.onFocus,()=>{m.current||o.onOpen()}),onBlur:So(e.onBlur,o.onClose),onClick:So(e.onClick,o.onClose)})})});VP.displayName=Yg;var u0="TooltipPortal",[$P,BP]=Uf(u0,{forceMount:void 0}),$5=e=>{const{__scopeTooltip:t,forceMount:s,children:i,container:o}=e,c=ad(u0,t);return a.jsx($P,{scope:t,forceMount:s,children:a.jsx(pa,{present:s||c.open,children:a.jsx(sd,{asChild:!0,container:o,children:i})})})};$5.displayName=u0;var Qo="TooltipContent",B5=p.forwardRef((e,t)=>{const s=BP(Qo,e.__scopeTooltip),{forceMount:i=s.forceMount,side:o="top",...c}=e,u=ad(Qo,e.__scopeTooltip);return a.jsx(pa,{present:i||u.open,children:u.disableHoverableContent?a.jsx(F5,{side:o,...c,ref:t}):a.jsx(FP,{side:o,...c,ref:t})})}),FP=p.forwardRef((e,t)=>{const s=ad(Qo,e.__scopeTooltip),i=L5(Qo,e.__scopeTooltip),o=p.useRef(null),c=Ue(t,o),[u,f]=p.useState(null),{trigger:h,onClose:m}=s,x=o.current,{onPointerInTransitChange:y}=i,b=p.useCallback(()=>{f(null),y(!1)},[y]),w=p.useCallback((C,j)=>{const S=C.currentTarget,T={x:C.clientX,y:C.clientY},M=GP(T,S.getBoundingClientRect()),k=YP(T,M),R=KP(j.getBoundingClientRect()),D=XP([...k,...R]);f(D),y(!0)},[y]);return p.useEffect(()=>()=>b(),[b]),p.useEffect(()=>{if(h&&x){const C=S=>w(S,x),j=S=>w(S,h);return h.addEventListener("pointerleave",C),x.addEventListener("pointerleave",j),()=>{h.removeEventListener("pointerleave",C),x.removeEventListener("pointerleave",j)}}},[h,x,w,b]),p.useEffect(()=>{if(u){const C=j=>{const S=j.target,T={x:j.clientX,y:j.clientY},M=h?.contains(S)||x?.contains(S),k=!QP(T,u);M?b():k&&(b(),m())};return document.addEventListener("pointermove",C),()=>document.removeEventListener("pointermove",C)}},[h,x,u,m,b]),a.jsx(F5,{...e,ref:c})}),[HP,UP]=Uf(V5,{isInside:!1}),qP=_P("TooltipContent"),F5=p.forwardRef((e,t)=>{const{__scopeTooltip:s,children:i,"aria-label":o,onEscapeKeyDown:c,onPointerDownOutside:u,...f}=e,h=ad(Qo,s),m=d0(s),{onClose:x}=h;return p.useEffect(()=>(document.addEventListener(f2,x),()=>document.removeEventListener(f2,x)),[x]),p.useEffect(()=>{if(h.trigger){const y=b=>{b.target?.contains(h.trigger)&&x()};return window.addEventListener("scroll",y,{capture:!0}),()=>window.removeEventListener("scroll",y,{capture:!0})}},[h.trigger,x]),a.jsx(td,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:y=>y.preventDefault(),onDismiss:x,children:a.jsxs(l0,{"data-state":h.stateAttribute,...m,...f,ref:t,style:{...f.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:[a.jsx(qP,{children:i}),a.jsx(HP,{scope:s,isInside:!0,children:a.jsx(zP,{id:h.contentId,role:"tooltip",children:o||i})})]})})});B5.displayName=Qo;var H5="TooltipArrow",WP=p.forwardRef((e,t)=>{const{__scopeTooltip:s,...i}=e,o=d0(s);return UP(H5,s).isInside?null:a.jsx(c0,{...o,...i,ref:t})});WP.displayName=H5;function GP(e,t){const s=Math.abs(t.top-e.y),i=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),c=Math.abs(t.left-e.x);switch(Math.min(s,i,o,c)){case c:return"left";case o:return"right";case s:return"top";case i:return"bottom";default:throw new Error("unreachable")}}function YP(e,t,s=5){const i=[];switch(t){case"top":i.push({x:e.x-s,y:e.y+s},{x:e.x+s,y:e.y+s});break;case"bottom":i.push({x:e.x-s,y:e.y-s},{x:e.x+s,y:e.y-s});break;case"left":i.push({x:e.x+s,y:e.y-s},{x:e.x+s,y:e.y+s});break;case"right":i.push({x:e.x-s,y:e.y-s},{x:e.x-s,y:e.y+s});break}return i}function KP(e){const{top:t,right:s,bottom:i,left:o}=e;return[{x:o,y:t},{x:s,y:t},{x:s,y:i},{x:o,y:i}]}function QP(e,t){const{x:s,y:i}=e;let o=!1;for(let c=0,u=t.length-1;c<t.length;u=c++){const f=t[c],h=t[u],m=f.x,x=f.y,y=h.x,b=h.y;x>i!=b>i&&s<(y-m)*(i-x)/(b-x)+m&&(o=!o)}return o}function XP(e){const t=e.slice();return t.sort((s,i)=>s.x<i.x?-1:s.x>i.x?1:s.y<i.y?-1:s.y>i.y?1:0),ZP(t)}function ZP(e){if(e.length<=1)return e.slice();const t=[];for(let i=0;i<e.length;i++){const o=e[i];for(;t.length>=2;){const c=t[t.length-1],u=t[t.length-2];if((c.x-u.x)*(o.y-u.y)>=(c.y-u.y)*(o.x-u.x))t.pop();else break}t.push(o)}t.pop();const s=[];for(let i=e.length-1;i>=0;i--){const o=e[i];for(;s.length>=2;){const c=s[s.length-1],u=s[s.length-2];if((c.x-u.x)*(o.y-u.y)>=(c.y-u.y)*(o.x-u.x))s.pop();else break}s.push(o)}return s.pop(),t.length===1&&s.length===1&&t[0].x===s[0].x&&t[0].y===s[0].y?t:t.concat(s)}var JP=I5,ez=$5,U5=B5;const h2=JP,tz=p.forwardRef(({className:e,sideOffset:t=4,...s},i)=>a.jsx(ez,{children:a.jsx(U5,{ref:i,sideOffset:t,className:he("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground 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]:sli
9de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-tooltip-content-transform-origin]",e),...s})}));tz.displayName=U5.displayName;const q5=p.createContext(void 0);function m2({children:e}){const[t,s]=p.useState(!1),[i,o]=p.useState(!0);p.useEffect(()=>{c()},[]);const c=async()=>{try{const m=await(await fetch("/api/check-dotto-access",{credentials:"include"})).json();return s(m.authenticated),o(!1),m.authenticated}catch{return s(!1),o(!1),!1}},u=()=>{s(!0)},f=async()=>{try{await fetch("/api/logout",{method:"POST",credentials:"include"})}catch{}s(!1)};return a.jsx(q5.Provider,{value:{isAuthenticated:t,isLoading:i,login:u,logout:f,checkAuth:c},children:e})}function f0(){const e=p.useContext(q5);if(e===void 0)throw new Error("useAuth must be used within an AuthProvider");return e}function W5(){return Gt({queryKey:["/api/service-requests"]})}function h0(){const e=Fs();return dn({mutationFn:async t=>(await Vx("POST","/api/service-requests",{...t,date:new Date(t.date).toISOString()})).json(),onSuccess:()=>{e.invalidateQueries({queryKey:["/api/service-requests"]}),setTimeout(()=>{e.invalidateQueries({queryKey:["/api/service-requests"]})},4e3)}})}function G5(){return Gt({queryKey:["/api/gate-guests"]})}function Y5(){const e=Fs();return dn({mutationFn:async t=>(await Vx("POST","/api/gate-guests",t)).json(),onSuccess:()=>{e.invalidateQueries({queryKey:["/api/gate-guests"]})}})}function K5(){const e=Fs();return dn({mutationFn:async t=>(await Vx("DELETE",`/api/gate-guests/${t}`)).json(),onSuccess:()=>{e.invalidateQueries({queryKey:["/api/gate-guests"]})}})}const Q5="dotto_resident_profile",p2={name:"Michael Dotto",photoUrl:"https://api.dicebear.com/9.x/initials/svg?seed=MD&backgroundColor=1a1a2e&textColor=c9a96e&fontSize=42"};function nz(){try{const e=localStorage.getItem(Q5);if(e){const t=JSON.parse(e);return{...p2,...t}}}catch{}return{...p2}}function sz(e){localStorage.setItem(Q5,JSON.stringify(e))}function m0(){const[e,t]=p.useState(nz),s=p.useCallback(i=>{t(o=>{const c={...o,...i};return sz(c),window.dispatchEvent(new CustomEvent("profile-updated",{detail:c})),c})},[]);return p.useEffect(()=>{const i=o=>{t(o.detail)};return window.addEventListener("profile-updated",i),()=>window.removeEventListener("profile-updated",i)},[]),{profile:e,updateProfile:s}}const X5=p.createContext(void 0);function az({children:e}){const[t,s]=p.useState("3"),[i,o]=p.useState(()=>localStorage.getItem("edit-mode")==="true");p.useEffect(()=>{document.documentElement.setAttribute("data-theme","3")},[]),p.useEffect(()=>{localStorage.setItem("edit-mode",String(i))},[i]);const c=f=>{s(f)},u=f=>{o(f)};return a.jsx(X5.Provider,{value:{theme:t,setTheme:c,editMode:i,setEditMode:u},children:e})}function qf(){const e=p.useContext(X5);if(e===void 0)throw new Error("useTheme must be used within a ThemeProvider");return e}const Se=p.forwardRef(({className:e,...t},s)=>a.jsx("div",{ref:s,className:he("rounded-xl border bg-card text-card-foreground shadow",e),...t}));Se.displayName="Card";const Hc=p.forwardRef(({className:e,...t},s)=>a.jsx("div",{ref:s,className:he("flex flex-col space-y-1.5 p-6",e),...t}));Hc.displayName="CardHeader";const vf=p.forwardRef(({className:e,...t},s)=>a.jsx("div",{ref:s,className:he("font-semibold leading-none tracking-tight",e),...t}));vf.displayName="CardTitle";const iz=p.forwardRef(({className:e,...t},s)=>a.jsx("div",{ref:s,className:he("text-sm text-muted-foreground",e),...t}));iz.displayName="CardDescription";const Te=p.forwardRef(({className:e,...t},s)=>a.jsx("div",{ref:s,className:he("p-6 pt-0",e),...t}));Te.displayName="CardContent";const Z5=p.forwardRef(({className:e,...t},s)=>a.jsx("div",{ref:s,className:he("flex items-center p-6 pt-0",e),...t}));Z5.displayName="CardFooter";function rz(){return a.jsx("div",{className:"min-h-screen w-full flex items-center justify-center bg-gray-50",children:a.jsx(Se,{className:"w-full max-w-md mx-4",children:a.jsxs(Te,{className:"pt-6",children:[a.jsxs("div",{className:"flex mb-4 gap-2",children:[a.jsx(RS,{className:"h-8 w-8 text-red-500"}),a.jsx("h1",{className:"text-2xl font-bold text-gray-900",children:"404 Page Not Found"})]}),a.jsx("p",{className:"mt-4 text-sm text-gray-600",children:"Did you forget to add the page to the router?"})]})})})}const p0=p.createContext({});function ul(e){const t=p.useRef(null);return t.current===null&&(t.current=e()),t.current}const g0=typeof window<"u",Wf=g0?p.useLayoutEffect:p.useEffect,Gf=p.createContext(null);function x0(e,t){e.indexOf(t)===-1&&e.push(t)}function y0(e,t){const s=e.indexOf(t);s>-1&&e.splice(s,1)}const oa=(e,t,s)=>s>t?t:s<e?e:s;let Uc=()=>{};const Ja={},J5=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function eC(e){return typeof e=="object"&&e!==null}const tC=e=>/^0[^.\s]+$/u.test(e);function v0(e){let t;return()=>(t===void 0&&(t=e()),t)}const Bn=e=>e,oz=(e,t)=>
vendor: 26,563 bytes, line 9
9s=>t(e(s)),id=(...e)=>e.reduce(oz),Xo=(e,t,s)=>{const i=t-e;return i===0?1:(s-e)/i};class b0{constructor(){this.subscriptions=[]}add(t){return x0(this.subscriptions,t),()=>y0(this.subscriptions,t)}notify(t,s,i){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,s,i);else for(let c=0;c<o;c++){const u=this.subscriptions[c];u&&u(t,s,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const na=e=>e*1e3,ws=e=>e/1e3;function w0(e,t){return t?e*(1e3/t):0}const nC=(e,t,s)=>(((1-3*s+3*t)*e+(3*s-6*t))*e+3*t)*e,lz=1e-7,cz=12;function dz(e,t,s,i,o){let c,u,f=0;do u=t+(s-t)/2,c=nC(u,i,o)-e,c>0?s=u:t=u;while(Math.abs(c)>lz&&++f<cz);return u}function rd(e,t,s,i){if(e===t&&s===i)return Bn;const o=c=>dz(c,0,1,e,s);return c=>c===0||c===1?c:nC(o(c),t,i)}const sC=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,aC=e=>t=>1-e(1-t),iC=rd(.33,1.53,.69,.99),j0=aC(iC),rC=sC(j0),oC=e=>(e*=2)<1?.5*j0(e):.5*(2-Math.pow(2,-10*(e-1))),N0=e=>1-Math.sin(Math.acos(e)),lC=aC(N0),cC=sC(N0),uz=rd(.42,0,1,1),fz=rd(0,0,.58,1),dC=rd(.42,0,.58,1),hz=e=>Array.isArray(e)&&typeof e[0]!="number",uC=e=>Array.isArray(e)&&typeof e[0]=="number",mz={linear:Bn,easeIn:uz,easeInOut:dC,easeOut:fz,circIn:N0,circInOut:cC,circOut:lC,backIn:j0,backInOut:rC,backOut:iC,anticipate:oC},pz=e=>typeof e=="string",g2=e=>{if(uC(e)){Uc(e.length===4);const[t,s,i,o]=e;return rd(t,s,i,o)}else if(pz(e))return mz[e];return e},Lu=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function gz(e,t){let s=new Set,i=new Set,o=!1,c=!1;const u=new WeakSet;let f={delta:0,timestamp:0,isProcessing:!1};function h(x){u.has(x)&&(m.schedule(x),e()),x(f)}const m={schedule:(x,y=!1,b=!1)=>{const C=b&&o?s:i;return y&&u.add(x),C.has(x)||C.add(x),x},cancel:x=>{i.delete(x),u.delete(x)},process:x=>{if(f=x,o){c=!0;return}o=!0,[s,i]=[i,s],s.forEach(h),s.clear(),o=!1,c&&(c=!1,m.process(x))}};return m}const xz=40;function fC(e,t){let s=!1,i=!0;const o={delta:0,timestamp:0,isProcessing:!1},c=()=>s=!0,u=Lu.reduce((k,R)=>(k[R]=gz(c),k),{}),{setup:f,read:h,resolveKeyframes:m,preUpdate:x,update:y,preRender:b,render:w,postRender:C}=u,j=()=>{const k=Ja.useManualTiming?o.timestamp:performance.now();s=!1,Ja.useManualTiming||(o.delta=i?1e3/60:Math.max(Math.min(k-o.timestamp,xz),1)),o.timestamp=k,o.isProcessing=!0,f.process(o),h.process(o),m.process(o),x.process(o),y.process(o),b.process(o),w.process(o),C.process(o),o.isProcessing=!1,s&&t&&(i=!1,e(j))},S=()=>{s=!0,i=!0,o.isProcessing||e(j)};return{schedule:Lu.reduce((k,R)=>{const D=u[R];return k[R]=(P,O=!1,_=!1)=>(s||S(),D.schedule(P,O,_)),k},{}),cancel:k=>{for(let R=0;R<Lu.length;R++)u[Lu[R]].cancel(k)},state:o,steps:u}}const{schedule:xt,cancel:Vs,state:cn,steps:qp}=fC(typeof requestAnimationFrame<"u"?requestAnimationFrame:Bn,!0);let Zu;function yz(){Zu=void 0}const $n={now:()=>(Zu===void 0&&$n.set(cn.isProcessing||Ja.useManualTiming?cn.timestamp:performance.now()),Zu),set:e=>{Zu=e,queueMicrotask(yz)}},hC=e=>t=>typeof t=="string"&&t.startsWith(e),S0=hC("--"),vz=hC("var(--"),C0=e=>vz(e)?bz.test(e.split("/*")[0].trim()):!1,bz=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,fl={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},qc={...fl,transform:e=>oa(0,1,e)},Iu={...fl,default:1},Mc=e=>Math.round(e*1e5)/1e5,k0=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function wz(e){return e==null}const jz=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,T0=(e,t)=>s=>!!(typeof s=="string"&&jz.test(s)&&s.startsWith(e)||t&&!wz(s)&&Object.prototype.hasOwnProperty.call(s,t)),mC=(e,t,s)=>i=>{if(typeof i!="string")return i;const[o,c,u,f]=i.match(k0);return{[e]:parseFloat(o),[t]:parseFloat(c),[s]:parseFloat(u),alpha:f!==void 0?parseFloat(f):1}},Nz=e=>oa(0,255,e),Wp={...fl,transform:e=>Math.round(Nz(e))},wr={test:T0("rgb","red"),parse:mC("red","green","blue"),transform:({red:e,green:t,blue:s,alpha:i=1})=>"rgba("+Wp.transform(e)+", "+Wp.transform(t)+", "+Wp.transform(s)+", "+Mc(qc.transform(i))+")"};function Sz(e){let t="",s="",i="",o="";return e.length>5?(t=e.substring(1,3),s=e.substring(3,5),i=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),s=e.substring(2,3),i=e.substring(3,4),o=e.substring(4,5),t+=t,s+=s,i+=i,o+=o),{red:parseInt(t,16),green:parseInt(s,16),blue:parseInt(i,16),alpha:o?parseInt(o,16)/255:1}}const Kg={test:T0("#"),parse:Sz,transform:wr.transform},od=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Di=od("deg"),sa=od("%"),Re=od("px"),Cz=od("vh"),kz=od("vw"),x2={...sa,parse:e=>sa.parse(e)/100,transform:e=>sa.transform(e*100)},Do={test:T0("hsl","hue"),parse:mC("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:s,alpha:i=1})=>"hsla("+Math.round(e)+", "+sa.transform(Mc(t))+", "+sa.transform(Mc(s))+", "+Mc(qc.transform(i))+")"},Jt={test:e=>wr.test(e)||Kg.test(e)||Do.test(e),parse:e=>wr.test(e)?wr.parse(e):Do.test(e)?Do.parse(e):Kg.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?wr.transform(e):Do.transform(e),getAnimatableNone:e=>{const t=Jt.parse(e);return t.alpha=0,Jt.transform(t)}},Tz=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Ez(e){return isNaN(e)&&typeof e=="string"&&(e.match(k0)?.length||0)+(e.match(Tz)?.length||0)>0}const pC="number",gC="color",Mz="var",Az="var(",y2="${}",Dz=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Wc(e){const t=e.toString(),s=[],i={color:[],number:[],var:[]},o=[];let c=0;const f=t.replace(Dz,h=>(Jt.test(h)?(i.color.push(c),o.push(gC),s.push(Jt.parse(h))):h.startsWith(Az)?(i.var.push(c),o.push(Mz),s.push(h)):(i.number.push(c),o.push(pC),s.push(parseFloat(h))),++c,y2)).split(y2);return{values:s,split:f,indexes:i,types:o}}function xC(e){return Wc(e).values}function yC(e){const{split:t,types:s}=Wc(e),i=t.length;return o=>{let c="";for(let u=0;u<i;u++)if(c+=t[u],o[u]!==void 0){const f=s[u];f===pC?c+=Mc(o[u]):f===gC?c+=Jt.transform(o[u]):c+=o[u]}return c}}const Oz=e=>typeof e=="number"?0:Jt.test(e)?Jt.getAnimatableNone(e):e;function Rz(e){const t=xC(e);return yC(e)(t.map(Oz))}const Li={test:Ez,parse:xC,createTransformer:yC,getAnimatableNone:Rz};function Gp(e,t,s){return s<0&&(s+=1),s>1&&(s-=1),s<1/6?e+(t-e)*6*s:s<1/2?t:s<2/3?e+(t-e)*(2/3-s)*6:e}function _z({hue:e,saturation:t,lightness:s,alpha:i}){e/=360,t/=100,s/=100;let o=0,c=0,u=0;if(!t)o=c=u=s;else{const f=s<.5?s*(1+t):s+t-s*t,h=2*s-f;o=Gp(h,f,e+1/3),c=Gp(h,f,e),u=Gp(h,f,e-1/3)}return{red:Math.round(o*255),green:Math.round(c*255),blue:Math.round(u*255),alpha:i}}function bf(e,t){return s=>s>0?t:e}const Lt=(e,t,s)=>e+(t-e)*s,Yp=(e,t,s)=>{const i=e*e,o=s*(t*t-i)+i;return o<0?0:Math.sqrt(o)},Pz=[Kg,wr,Do],zz=e=>Pz.find(t=>t.test(e));function v2(e){const t=zz(e);if(!t)return!1;let s=t.parse(e);return t===Do&&(s=_z(s)),s}const b2=(e,t)=>{const s=v2(e),i=v2(t);if(!s||!i)return bf(e,t);const o={...s};return c=>(o.red=Yp(s.red,i.red,c),o.green=Yp(s.green,i.green,c),o.blue=Yp(s.blue,i.blue,c),o.alpha=Lt(s.alpha,i.alpha,c),wr.transform(o))},Qg=new Set(["none","hidden"]);function Lz(e,t){return Qg.has(e)?s=>s<=0?e:t:s=>s>=1?t:e}function Iz(e,t){return s=>Lt(e,t,s)}function E0(e){return typeof e=="number"?Iz:typeof e=="string"?C0(e)?bf:Jt.test(e)?b2:Bz:Array.isArray(e)?vC:typeof e=="object"?Jt.test(e)?b2:Vz:bf}function vC(e,t){const s=[...e],i=s.length,o=e.map((c,u)=>E0(c)(c,t[u]));return c=>{for(let u=0;u<i;u++)s[u]=o[u](c);return s}}function Vz(e,t){const s={...e,...t},i={};for(const o in s)e[o]!==void 0&&t[o]!==void 0&&(i[o]=E0(e[o])(e[o],t[o]));return o=>{for(const c in i)s[c]=i[c](o);return s}}function $z(e,t){const s=[],i={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const c=t.types[o],u=e.indexes[c][i[c]],f=e.values[u]??0;s[o]=f,i[c]++}return s}const Bz=(e,t)=>{const s=Li.createTransformer(t),i=Wc(e),o=Wc(t);return i.indexes.var.length===o.indexes.var.length&&i.indexes.color.length===o.indexes.color.length&&i.indexes.number.length>=o.indexes.number.length?Qg.has(e)&&!o.values.length||Qg.has(t)&&!i.values.length?Lz(e,t):id(vC($z(i,o),o.values),s):bf(e,t)};function bC(e,t,s){return typeof e=="number"&&typeof t=="number"&&typeof s=="number"?Lt(e,t,s):E0(e)(e,t)}const Fz=e=>{const t=({timestamp:s})=>e(s);return{start:(s=!0)=>xt.update(t,s),stop:()=>Vs(t),now:()=>cn.isProcessing?cn.timestamp:$n.now()}},wC=(e,t,s=10)=>{let i="";const o=Math.max(Math.round(t/s),2);for(let c=0;c<o;c++)i+=Math.round(e(c/(o-1))*1e4)/1e4+", ";return`linear(${i.substring(0,i.length-2)})`},wf=2e4;function M0(e){let t=0;const s=50;let i=e.next(t);for(;!i.done&&t<wf;)t+=s,i=e.next(t);return t>=wf?1/0:t}function Hz(e,t=100,s){const i=s({...e,keyframes:[0,t]}),o=Math.min(M0(i),wf);return{type:"keyframes",ease:c=>i.next(o*c).value/t,duration:ws(o)}}const Uz=5;function jC(e,t,s){const i=Math.max(t-Uz,0);return w0(s-e(i),t-i)}const Ft={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Kp=.001;function qz({duration:e=Ft.duration,bounce:t=Ft.bounce,velocity:s=Ft.velocity,mass:i=Ft.mass}){let o,c,u=1-t;u=oa(Ft.minDamping,Ft.maxDamping,u),e=oa(Ft.minDuration,Ft.maxDuration,ws(e)),u<1?(o=m=>{const x=m*u,y=x*e,b=x-s,w=Xg(m,u),C=Math.exp(-y);return Kp-b/w*C},c=m=>{const y=m*u*e,b=y*s+s,w=Math.pow(u,2)*Math.pow(m,2)*e,C=Math.exp(-y),j=Xg(Math.pow(m,2),u);return(-o(m)+Kp>0?-1:1)*((b-w)*C)/j}):(o=m=>{const x=Math.exp(-m*e),y=(m-s)*e+1;return-Kp+x*y},c=m=>{const x=Math.exp(-m*e),y=(s-m)*(e*e);return x*y});const f=5/e,h=Gz(o,c,f);if(e=na(e),isNaN(h))return{stiffness:Ft.stiffness,damping:Ft.damping,duration:e};{const m=Math.pow(h,2)*i;return{stiffness:m,damping:u*2*Math.sqrt(i*m),duration:e}}}const Wz=12;function Gz(e,t,s){let i=s;for(let o=1;o<Wz;o++)i=i-e(i)/t(i);return i}function Xg(e,t){return e*Math.sqrt(1-t*t)}const Yz=["duration","bounce"],Kz=["stiffness","damping","mass"];function w2(e,t){return t.some(s=>e[s]!==void 0)}function Qz(e){let t={velocity:Ft.velocity,stiffness:Ft.stiffness,damping:Ft.damping,mass:Ft.mass,isResolvedFromDuration:!1,...e};if(!w2(e,Kz)&&w2(e,Yz))if(e.visualDuration){const s=e.visualDuration,i=2*Math.PI/(s*1.2),o=i*i,c=2*oa(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:Ft.mass,stiffness:o,damping:c}}else{const s=qz(e);t={...t,...s,mass:Ft.mass},t.isResolvedFromDuration=!0}return t}function jf(e=Ft.visualDuration,t=Ft.bounce){const s=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:i,restDelta:o}=s;const c=s.keyframes[0],u=s.keyframes[s.keyframes.length-1],f={done:!1,value:c},{stiffness:h,damping:m,mass:x,duration:y,velocity:b,isResolvedFromDuration:w}=Qz({...s,velocity:-ws(s.velocity||0)}),C=b||0,j=m/(2*Math.sqrt(h*x)),S=u-c,T=ws(Math.sqrt(h/x)),M=Math.abs(S)<5;i||(i=M?Ft.restSpeed.granular:Ft.restSpeed.default),o||(o=M?Ft.restDelta.granular:Ft.restDelta.default);let k;if(j<1){const D=Xg(T,j);k=P=>{const O=Math.exp(-j*T*P);return u-O*((C+j*T*S)/D*Math.sin(D*P)+S*Math.cos(D*P))}}else if(j===1)k=D=>u-Math.exp(-T*D)*(S+(C+T*S)*D);else{const D=T*Math.sqrt(j*j-1);k=P=>{const O=Math.exp(-j*T*P),_=Math.min(D*P,300);return u-O*((C+j*T*S)*Math.sinh(_)+D*S*Math.cosh(_))/D}}const R={calculatedDuration:w&&y||null,next:D=>{const P=k(D);if(w)f.done=D>=y;else{let O=D===0?C:0;j<1&&(O=D===0?na(C):jC(k,D,P));const _=Math.abs(O)<=i,G=Math.abs(u-P)<=o;f.done=_&&G}return f.value=f.done?u:P,f},toString:()=>{const D=Math.min(M0(R),wf),P=wC(O=>R.next(D*O).value,D,30);return D+"ms "+P},toTransition:()=>{}};return R}jf.applyToOptions=e=>{const t=Hz(e,100,jf);return e.ease=t.ease,e.duration=na(t.duration),e.type="keyframes",e};function Zg({keyframes:e,velocity:t=0,power:s=.8,timeConstant:i=325,bounceDamping:o=10,bounceStiffness:c=500,modifyTarget:u,min:f,max:h,restDelta:m=.5,restSpeed:x}){const y=e[0],b={done:!1,value:y},w=_=>f!==void 0&&_<f||h!==void 0&&_>h,C=_=>f===void 0?h:h===void 0||Math.abs(f-_)<Math.abs(h-_)?f:h;let j=s*t;const S=y+j,T=u===void 0?S:u(S);T!==S&&(j=T-y);const M=_=>-j*Math.exp(-_/i),k=_=>T+M(_),R=_=>{const G=M(_),ne=k(_);b.done=Math.abs(G)<=m,b.value=b.done?T:ne};let D,P;const O=_=>{w(b.value)&&(D=_,P=jf({keyframes:[b.value,C(b.value)],velocity:jC(k,_,b.value),damping:o,stiffness:c,restDelta:m,restSpeed:x}))};return O(0),{calculatedDuration:null,next:_=>{let G=!1;return!P&&D===void 0&&(G=!0,R(_),O(_)),D!==void 0&&_>=D?P.next(_-D):(!G&&R(_),b)}}}function Xz(e,t,s){const i=[],o=s||Ja.mix||bC,c=e.length-1;for(let u=0;u<c;u++){let f=o(e[u],e[u+1]);if(t){const h=Array.isArray(t)?t[u]||Bn:t;f=id(h,f)}i.push(f)}return i}function A0(e,t,{clamp:s=!0,ease:i,mixer:o}={}){const c=e.length;if(Uc(c===t.length),c===1)return()=>t[0];if(c===2&&t[0]===t[1])return()=>t[1];const u=e[0]===e[1];e[0]>e[c-1]&&(e=[...e].reverse(),t=[...t].reverse());const f=Xz(t,i,o),h=f.length,m=x=>{if(u&&x<e[0])return t[0];let y=0;if(h>1)for(;y<e.length-2&&!(x<e[y+1]);y++);const b=Xo(e[y],e[y+1],x);return f[y](b)};return s?x=>m(oa(e[0],e[c-1],x)):m}function Zz(e,t){const s=e[e.length-1];for(let i=1;i<=t;i++){const o=Xo(0,t,i);e.push(Lt(s,1,o))}}function NC(e){const t=[0];return Zz(t,e.length-1),t}function Jz(e,t){return e.map(s=>s*t)}function e7(e,t){return e.map(()=>t||dC).splice(0,e.length-1)}function Ac({duration:e=300,keyframes:t,times:s,ease:i="easeInOut"}){const o=hz(i)?i.map(g2):g2(i),c={done:!1,value:t[0]},u=Jz(s&&s.length===t.length?s:NC(t),e),f=A0(u,t,{ease:Array.isArray(o)?o:e7(t,o)});return{calculatedDuration:e,next:h=>(c.value=f(h),c.done=h>=e,c)}}const t7=e=>e!==null;function D0(e,{repeat:t,repeatType:s="loop"},i,o=1){const c=e.filter(t7),f=o<0||t&&s!=="loop"&&t%2===1?0:c.length-1;return!f||i===void 0?c[f]:i}const n7={decay:Zg,inertia:Zg,tween:Ac,keyframes:Ac,spring:jf};function SC(e){typeof e.type=="string"&&(e.type=n7[e.type])}class O0{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,s){return this.finished.then(t,s)}}const s7=e=>e/100;class R0 extends O0{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:s}=this.options;s&&s.updatedAt!==$n.now()&&this.tick($n.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;SC(t);const{type:s=Ac,repeat:i=0,repeatDelay:o=0,repeatType:c,velocity:u=0}=t;let{keyframes:f}=t;const h=s||Ac;h!==Ac&&typeof f[0]!="number"&&(this.mixKeyframes=id(s7,bC(f[0],f[1])),f=[0,100]);const m=h({...t,keyframes:f});c==="mirror"&&(this.mirroredGenerator=h({...t,keyframes:[...f].reverse(),velocity:-u})),m.calculatedDuration===null&&(m.calculatedDuration=M0(m));const{calculatedDuration:x}=m;this.calculatedDuration=x,this.resolvedDuration=x+o,this.totalDuration=this.resolvedDuration*(i+1)-o,this.generator=m}updateTime(t){const s=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=s}tick(t,s=!1){const{generator:i,totalDuration:o,mixKeyframes:c,mirroredGenerator:u,resolvedDuration:f,calculatedDuration:h}=this;if(this.startTime===null)return i.next(0);const{delay:m=0,keyframes:x,repeat:y,repeatType:b,repeatDelay:w,type:C,onUpdate:j,finalKeyframe:S}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-o/this.speed,this.startTime)),s?this.currentTime=t:this.updateTime(t);const T=this.currentTime-m*(this.playbackSpeed>=0?1:-1),M=this.playbackSpeed>=0?T<0:T>o;this.currentTime=Math.max(T,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let k=this.currentTime,R=i;if(y){const _=Math.min(this.currentTime,o)/f;let G=Math.floor(_),ne=_%1;!ne&&_>=1&&(ne=1),ne===1&&G--,G=Math.min(G,y+1),G%2&&(b==="reverse"?(ne=1-ne,w&&(ne-=w/f)):b==="mirror"&&(R=u)),k=oa(0,1,ne)*f}const D=M?{done:!1,value:x[0]}:R.next(k);c&&(D.value=c(D.value));let{done:P}=D;!M&&h!==null&&(P=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const O=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&P);return O&&C!==Zg&&(D.value=D0(x,this.options,S,this.speed)),j&&j(D.value),O&&this.finish(),D}then(t,s){return this.finished.then(t,s)}get duration(){return ws(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+ws(t)}get time(){return ws(this.currentTime)}set time(t){t=na(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime($n.now());const s=this.playbackSpeed!==t;this.playbackSpeed=t,s&&(this.time=ws(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=Fz,startTime:s}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),this.options.onPlay?.();const i=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=i):this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime||(this.startTime=s??i),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime($n.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function a7(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const jr=e=>e*180/Math.PI,Jg=e=>{const t=jr(Math.atan2(e[1],e[0]));return ex(t)},i7={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Jg,rotateZ:Jg,skewX:e=>jr(Math.atan(e[1])),skewY:e=>jr(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},ex=e=>(e=e%360,e<0&&(e+=360),e),j2=Jg,N2=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),S2=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),r7={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:N2,scaleY:S2,scale:e=>(N2(e)+S2(e))/2,rotateX:e=>ex(jr(Math.atan2(e[6],e[5]))),rotateY:e=>ex(jr(Math.atan2(-e[2],e[0]))),rotateZ:j2,rotate:j2,skewX:e=>jr(Math.atan(e[4])),skewY:e=>jr(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function tx(e){return e.includes("scale")?1:0}function nx(e,t){if(!e||e==="none")return tx(t);const s=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let i,o;if(s)i=r7,o=s;else{const f=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=i7,o=f}if(!o)return tx(t);const c=i[t],u=o[1].split(",").map(l7);return typeof c=="function"?c(u):u[c]}const o7=(e,t)=>{const{transform:s="none"}=getComputedStyle(e);return nx(s,t)};function l7(e){return parseFloat(e.trim())}const hl=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ml=new Set(hl),C2=e=>e===fl||e===Re,c7=new Set(["x","y","z"]),d7=hl.filter(e=>!c7.has(e));function u7(e){const t=[];return d7.forEach(s=>{const i=e.getValue(s);i!==void 0&&(t.push([s,i.get()]),i.set(s.startsWith("scale")?1:0))}),t}const Sr={width:({x:e},{paddingLeft:t="0",paddingRight:s="0"})=>e.max-e.min-parseFloat(t)-parseFloat(s),height:({y:e},{paddingTop:t="0",paddingBottom:s="0"})=>e.max-e.min-parseFloat(t)-parseFloat(s),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>nx(t,"x"),y:(e,{transform:t})=>nx(t,"y")};Sr.translateX=Sr.x;Sr.translateY=Sr.y;const Cr=new Set;let sx=!1,ax=!1,ix=!1;function CC(){if(ax){const e=Array.from(Cr).filter(i=>i.needsMeasurement),t=new Set(e.map(i=>i.element)),s=new Map;t.forEach(i=>{const o=u7(i);o.length&&(s.set(i,o),i.render())}),e.forEach(i=>i.measureInitialState()),t.forEach(i=>{i.render();const o=s.get(i);o&&o.forEach(([c,u])=>{i.getValue(c)?.set(u)})}),e.forEach(i=>i.measureEndState()),e.forEach(i=>{i.suspendedScrollY!==void 0&&window.scrollTo(0,i.suspendedScrollY)})}ax=!1,sx=!1,Cr.forEach(e=>e.complete(ix)),Cr.clear()}function kC(){Cr.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(ax=!0)})}function f7(){ix=!0,kC(),CC(),ix=!1}class _0{constructor(t,s,i,o,c,u=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=s,this.name=i,this.motionValue=o,this.element=c,this.isAsync=u}scheduleResolve(){this.state="scheduled",this.isAsync?(Cr.add(this),sx||(sx=!0,xt.read(kC),xt.resolveKeyframes(CC))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:s,element:i,motionValue:o}=this;if(t[0]===null){const c=o?.get(),u=t[t.length-1];if(c!==void 0)t[0]=c;else if(i&&s){const f=i.readValue(s,u);f!=null&&(t[0]=f)}t[0]===void 0&&(t[0]=u),o&&c===void 0&&o.set(t[0])}a7(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Cr.delete(this)}cancel(){this.state==="scheduled"&&(Cr.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const h7=e=>e.startsWith("--");function m7(e,t,s){h7(t)?e.style.setProperty(t,s):e.style[t]=s}const TC=v0(()=>window.ScrollTimeline!==void 0),p7={};function g7(e,t){const s=v0(e);return()=>p7[t]??s()}const EC=g7(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),jc=([e,t,s,i])=>`cubic-bezier(${e}, ${t}, ${s}, ${i})`,k2={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:jc([0,.65,.55,1]),circOut:jc([.55,0,1,.45]),backIn:jc([.31,.01,.66,-.59]),backOut:jc([.33,1.53,.69,.99])};function MC(e,t){if(e)return typeof e=="function"?EC()?wC(e,t):"ease-out":uC(e)?jc(e):Array.isArray(e)?e.map(s=>MC(s,t)||k2.easeOut):k2[e]}function x7(e,t,s,{delay:i=0,duration:o=300,repeat:c=0,repeatType:u="loop",ease:f="easeOut",times:h}={},m=void 0){const x={[t]:s};h&&(x.offset=h);const y=MC(f,o);Array.isArray(y)&&(x.easing=y);const b={delay:i,duration:o,easing:Array.isArray(y)?"linear":y,fill:"both",iterations:c+1,direction:u==="reverse"?"alternate":"normal"};return m&&(b.pseudoElement=m),e.animate(x,b)}function AC(e){return typeof e=="function"&&"applyToOptions"in e}function y7({type:e,...t}){return AC(e)&&EC()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class v7 extends O0{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:s,name:i,keyframes:o,pseudoElement:c,allowFlatten:u=!1,finalKeyframe:f,onComplete:h}=t;this.isPseudoElement=!!c,this.allowFlatten=u,this.options=t,Uc(typeof t.type!="string");const m=y7(t);this.animation=x7(s,i,o,m,c),m.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!c){const x=D0(o,this.options,f,this.speed);this.updateMotionValue?this.updateMotionValue(x):m7(s,i,x),this.animation.cancel()}h?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return ws(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+ws(t)}get time(){return ws(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=na(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:s}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&TC()?(this.animation.timeline=t,Bn):s(this)}}const DC={anticipate:oC,backInOut:rC,circInOut:cC};function b7(e){return e in DC}function w7(e){typeof e.ease=="string"&&b7(e.ease)&&(e.ease=DC[e.ease])}const T2=10;class j7 extends v7{constructor(t){w7(t),SC(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:s,onUpdate:i,onComplete:o,element:c,...u}=this.options;if(!s)return;if(t!==void 0){s.set(t);return}const f=new R0({...u,autoplay:!1}),h=na(this.finishedTime??this.time);s.setWithVelocity(f.sample(h-T2).value,f.sample(h).value,T2),f.stop()}}const E2=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Li.test(e)||e==="0")&&!e.startsWith("url("));function N7(e){const t=e[0];if(e.length===1)return!0;for(let s=0;s<e.length;s++)if(e[s]!==t)return!0}function S7(e,t,s,i){const o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;const c=e[e.length-1],u=E2(o,t),f=E2(c,t);return!u||!f?!1:N7(e)||(s==="spring"||AC(s))&&i}function rx(e){e.duration=0,e.type="keyframes"}const C7=new Set(["opacity","clipPath","filter","transform"]),k7=v0(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function T7(e){const{motionValue:t,name:s,repeatDelay:i,repeatType:
9o,damping:c,type:u}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:h,transformTemplate:m}=t.owner.getProps();return k7()&&s&&C7.has(s)&&(s!=="transform"||!m)&&!h&&!i&&o!=="mirror"&&c!==0&&u!=="inertia"}const E7=40;class M7 extends O0{constructor({autoplay:t=!0,delay:s=0,type:i="keyframes",repeat:o=0,repeatDelay:c=0,repeatType:u="loop",keyframes:f,name:h,motionValue:m,element:x,...y}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=$n.now();const b={autoplay:t,delay:s,type:i,repeat:o,repeatDelay:c,repeatType:u,name:h,motionValue:m,element:x,...y},w=x?.KeyframeResolver||_0;this.keyframeResolver=new w(f,(C,j,S)=>this.onKeyframesResolved(C,j,b,!S),h,m,x),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,s,i,o){this.keyframeResolver=void 0;const{name:c,type:u,velocity:f,delay:h,isHandoff:m,onUpdate:x}=i;this.resolvedAt=$n.now(),S7(t,c,u,f)||((Ja.instantAnimations||!h)&&x?.(D0(t,i,s)),t[0]=t[t.length-1],rx(i),i.repeat=0);const b={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>E7?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:s,...i,keyframes:t},w=!m&&T7(b)?new j7({...b,element:b.motionValue.owner.current}):new R0(b);w.finished.then(()=>this.notifyFinished()).catch(Bn),this.pendingTimeline&&(this.stopTimeline=w.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=w}get finished(){return this._animation?this.animation.finished:this._finished}then(t,s){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),f7()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const A7=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function D7(e){const t=A7.exec(e);if(!t)return[,];const[,s,i,o]=t;return[`--${s??i}`,o]}function OC(e,t,s=1){const[i,o]=D7(e);if(!i)return;const c=window.getComputedStyle(t).getPropertyValue(i);if(c){const u=c.trim();return J5(u)?parseFloat(u):u}return C0(o)?OC(o,t,s+1):o}function P0(e,t){return e?.[t]??e?.default??e}const RC=new Set(["width","height","top","left","right","bottom",...hl]),O7={test:e=>e==="auto",parse:e=>e},_C=e=>t=>t.test(e),PC=[fl,Re,sa,Di,kz,Cz,O7],M2=e=>PC.find(_C(e));function R7(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||tC(e):!0}const _7=new Set(["brightness","contrast","saturate","opacity"]);function P7(e){const[t,s]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[i]=s.match(k0)||[];if(!i)return e;const o=s.replace(i,"");let c=_7.has(t)?1:0;return i!==s&&(c*=100),t+"("+c+o+")"}const z7=/\b([a-z-]*)\(.*?\)/gu,ox={...Li,getAnimatableNone:e=>{const t=e.match(z7);return t?t.map(P7).join(" "):e}},A2={...fl,transform:Math.round},L7={rotate:Di,rotateX:Di,rotateY:Di,rotateZ:Di,scale:Iu,scaleX:Iu,scaleY:Iu,scaleZ:Iu,skew:Di,skewX:Di,skewY:Di,distance:Re,translateX:Re,translateY:Re,translateZ:Re,x:Re,y:Re,z:Re,perspective:Re,transformPerspective:Re,opacity:qc,originX:x2,originY:x2,originZ:Re},z0={borderWidth:Re,borderTopWidth:Re,borderRightWidth:Re,borderBottomWidth:Re,borderLeftWidth:Re,borderRadius:Re,radius:Re,borderTopLeftRadius:Re,borderTopRightRadius:Re,borderBottomRightRadius:Re,borderBottomLeftRadius:Re,width:Re,maxWidth:Re,height:Re,maxHeight:Re,top:Re,right:Re,bottom:Re,left:Re,padding:Re,paddingTop:Re,paddingRight:Re,paddingBottom:Re,paddingLeft:Re,margin:Re,marginTop:Re,marginRight:Re,marginBottom:Re,marginLeft:Re,backgroundPositionX:Re,backgroundPositionY:Re,...L7,zIndex:A2,fillOpacity:qc,strokeOpacity:qc,numOctaves:A2},I7={...z0,color:Jt,backgroundColor:Jt,outlineColor:Jt,fill:Jt,stroke:Jt,borderColor:Jt,borderTopColor:Jt,borderRightColor:Jt,borderBottomColor:Jt,borderLeftColor:Jt,filter:ox,WebkitFilter:ox},zC=e=>I7[e];function LC(e,t){let s=zC(e);return s!==ox&&(s=Li),s.getAnimatableNone?s.getAnimatableNone(t):void 0}
vendor: 6,177 bytes, line 9
9const V7=new Set(["auto","none","0"]);function $7(e,t,s){let i=0,o;for(;i<e.length&&!o;){const c=e[i];typeof c=="string"&&!V7.has(c)&&Wc(c).values.length&&(o=e[i]),i++}if(o&&s)for(const c of t)e[c]=LC(s,o)}class B7 extends _0{constructor(t,s,i,o,c){super(t,s,i,o,c,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:s,name:i}=this;if(!s||!s.current)return;super.readKeyframes();for(let h=0;h<t.length;h++){let m=t[h];if(typeof m=="string"&&(m=m.trim(),C0(m))){const x=OC(m,s.current);x!==void 0&&(t[h]=x),h===t.length-1&&(this.finalKeyframe=m)}}if(this.resolveNoneKeyframes(),!RC.has(i)||t.length!==2)return;const[o,c]=t,u=M2(o),f=M2(c);if(u!==f)if(C2(u)&&C2(f))for(let h=0;h<t.length;h++){const m=t[h];typeof m=="string"&&(t[h]=parseFloat(m))}else Sr[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:s}=this,i=[];for(let o=0;o<t.length;o++)(t[o]===null||R7(t[o]))&&i.push(o);i.length&&$7(t,i,s)}measureInitialState(){const{element:t,unresolvedKeyframes:s,name:i}=this;if(!t||!t.current)return;i==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Sr[i](t.measureViewportBox(),window.getComputedStyle(t.current)),s[0]=this.measuredOrigin;const o=s[s.length-1];o!==void 0&&t.getValue(i,o).jump(o,!1)}measureEndState(){const{element:t,name:s,unresolvedKeyframes:i}=this;if(!t||!t.current)return;const o=t.getValue(s);o&&o.jump(this.measuredOrigin,!1);const c=i.length-1,u=i[c];i[c]=Sr[s](t.measureViewportBox(),window.getComputedStyle(t.current)),u!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=u),this.removedTransforms?.length&&this.removedTransforms.forEach(([f,h])=>{t.getValue(f).set(h)}),this.resolveNoneKeyframes()}}function IC(e,t,s){if(e instanceof EventTarget)return[e];if(typeof e=="string"){const o=document.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}const VC=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function L0(e){return eC(e)&&"offsetHeight"in e}const D2=30,F7=e=>!isNaN(parseFloat(e)),Dc={current:void 0};class H7{constructor(t,s={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=i=>{const o=$n.now();if(this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(i),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const c of this.dependents)c.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=s.owner}setCurrent(t){this.current=t,this.updatedAt=$n.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=F7(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,s){this.events[t]||(this.events[t]=new b0);const i=this.events[t].add(s);return t==="change"?()=>{i(),xt.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,s){this.passiveEffect=t,this.stopPassiveEffect=s}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,s,i){this.set(s),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,s=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,s&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return Dc.current&&Dc.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=$n.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>D2)return 0;const s=Math.min(this.updatedAt-this.prevUpdatedAt,D2);return w0(parseFloat(this.current)-parseFloat(this.prevFrameValue),s)}start(t){return this.stop(),new Promise(s=>{this.hasAnimated=!0,this.animation=t(s),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Rs(e,t){return new H7(e,t)}const{schedule:I0}=fC(queueMicrotask,!1),As={x:!1,y:!1};function $C(){return As.x||As.y}function U7(e){return e==="x"||e==="y"?As[e]?null:(As[e]=!0,()=>{As[e]=!1}):As.x||As.y?null:(As.x=As.y=!0,()=>{As.x=As.y=!1})}function BC(e,t){const s=IC(e),i=new AbortController,o={passive:!0,...t,signal:i.signal};return[s,o,()=>i.abort()]}function O2(e){return!(e.pointerType==="touch"||$C())}function q7(e,t,s={}){const[i,o,c]=BC(e,s),u=f=>{if(!O2(f))return;const{target:h}=f,m=t(h,f);if(typeof m!="function"||!h)return;const x=y=>{O2(y)&&(m(y),h.removeEventListener("pointerleave",x))};h.addEventListener("pointerleave",x,o)};return i.forEach(f=>{f.addEventListener("pointerenter",u,o)}),c}const FC=(e,t)=>t?e===t?!0:FC(e,t.parentElement):!1,V0=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,W7=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function G7(e){return W7.has(e.tagName)||e.tabIndex!==-1}const Ju=new WeakSet;function R2(e){return t=>{t.key==="Enter"&&e(t)}}function Qp(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Y7=(e,t)=>{const s=e.currentTarget;if(!s)return;const i=R2(()=>{if(Ju.has(s))return;Qp(s,"down");const o=R2(()=>{Qp(s,"up")}),c=()=>Qp(s,"cancel");s.addEventListener("keyup",o,t),s.addEventListener("blur",c,t)});s.addEventListener("keydown",i,t),s.addEventListener("blur",()=>s.removeEventListener("keydown",i),t)};function _2(e){return V0(e)&&!$C()}function K7(e,t,s={}){const[i,o,c]=BC(e,s),u=f=>{const h=f.currentTarget;if(!_2(f))return;Ju.add(h);const m=t(h,f),x=(w,C)=>{window.removeEventListener("pointerup",y),window.removeEventListener("pointercancel",b),Ju.has(h
9)&&Ju.delete(h),_2(w)&&typeof m=="function"&&m(w,{success:C})},y=w=>{x(w,h===window||h===document||s.useGlobalTarget||FC(h,w.target))},b=w=>{x(w,!1)};window.addEventListener("pointerup",y,o),window.addEventListener("pointercancel",b,o)};return i.forEach(f=>{(s.useGlobalTarget?window:f).addEventListener("pointerdown",u,o),L0(f)&&(f.addEventListener("focus",m=>Y7(m,o)),!G7(f)&&!f.hasAttribute("tabindex")&&(f.tabIndex=0))}),c}function $0(e){return eC(e)&&"ownerSVGElement"in e}const ef=new WeakMap;let tf;const HC=(e,t,s)=>(i,o)=>o&&o[0]?o[0][e+"Size"]:$0(i)&&"getBBox"in i?i.getBBox()[t]:i[s],Q7=HC("inline","width","offsetWidth"),X7=HC("block","height","offsetHeight");function Z7({target:e,borderBoxSize:t}){ef.get(e)?.forEach(s=>{s(e,{get width(){return Q7(e,t)},get height(){return X7(e,t)}})})}function J7(e){e.forEach(Z7)}function eL(){typeof ResizeObserver>"u"||(tf=new ResizeObserver(J7))}function tL(e,t){tf||eL();const s=IC(e);return s.forEach(i=>{let o=ef.get(i);o||(o=new Set,ef.set(i,o)),o.add(t),tf?.observe(i)}),()=>{s.forEach(i=>{const o=ef.get(i);o?.delete(t),o?.size||tf?.unobserve(i)})}}const nf=new Set;let Oo;function nL(){Oo=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};nf.forEach(t=>t(e))},window.addEventListener("resize",Oo)}function sL(e){return nf.add(e),Oo||nL(),()=>{nf.delete(e),!nf.size&&typeof Oo=="function"&&(window.removeEventListener("resize",Oo),Oo=void 0)}}function aL(e,t){return typeof e=="function"?sL(e):tL(e,t)}function UC(e,t){let s;const i=()=>{const{currentTime:o}=t,u=(o===null?0:o.value)/100;s!==u&&e(u),s=u};return xt.preUpdate(i,!0),()=>Vs(i)}function iL(e){return $0(e)&&e.tagName==="svg"}function rL(...e){const t=!Array.isArray(e[0]),s=t?0:-1,i=e[0+s],o=e[1+s],c=e[2+s],u=e[3+s],f=A0(o,c,u);return t?f(i):f}const jn=e=>!!(e&&e.getVelocity),oL=[...PC,Jt,Li],lL=e=>oL.find(_C(e)),Yf=p.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function P2(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function cL(...e){return t=>{let s=!1;const i=e.map(o=>{const c=P2(o,t);return!s&&typeof c=="function"&&(s=!0),c});if(s)return()=>{for(let o=0;o<i.length;o++){const c=i[o];typeof c=="function"?c():P2(e[o],null)}}}}function dL(...e){return p.useCallback(cL(...e),e)}class uL extends p.Component{getSnapshotBeforeUpdate(t){const s=this.props.childRef.current;if(s&&t.isPresent&&!this.props.isPresent){const i=s.offsetParent,o=L0(i)&&i.offsetWidth||0,c=this.props.sizeRef.current;c.height=s.offsetHeight||0,c.width=s.offsetWidth||0,c.top=s.offsetTop,c.left=s.offsetLeft,c.right=o-c.width-c.left}return null}componentDidUpdate(){}render(){return this.props.children}}function fL({children:e,isPresent:t,anchorX:s,root:i}){const o=p.useId(),c=p.useRef(null),u=p.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:f}=p.useContext(Yf),h=dL(c,e?.ref);return p.useInsertionEffect(()=>{const{width:m,height:x,top:y,left:b,right:w}=u.current;if(t||!c.current||!m||!x)return;const C=s==="left"?`left: ${b}`:`right: ${w}`;c.current.dataset.motionPopId=o;const j=document.createElement("style");f&&(j.nonce=f);const S=i??document.head;return S.appendChild(j),j.sheet&&j.sheet.insertRule(` 10 [data-motion-pop-id="${o}"] { 11 position: absolute !important; 12 width: ${m}px !important; 13 height: ${x}px !important; 14 ${C}px !important; 15 top: ${y}px !important; 16 } 17 `),()=>{S.contains(j)&&S.removeChild(j)}},[t]),a.jsx(uL,{isPresent:t,childRef:c,sizeRef:u,children:p.cloneElement(e,{ref:h})})}const hL=({children:e,initial:t,isPresent:s,onExitComplete:i,custom:o,presenceAffectsLayout:c,mode:u,anchorX:f,root:h})=>{const m=ul(mL),x=p.useId();let y=!0,b=p.useMemo(()=>(y=!1,{id:x,initial:t,isPresent:s,custom:o,onExitComplete:w=>{m.set(w,!0);for(const C of m.values())if(!C)return;i&&i()},register:w=>(m.set(w,!1),()=>m.delete(w))}),[s,m,i]);return c&&y&&(b={...b}),p.useMemo(()=>{m.forEach((w,C)=>m.set(C,!1))},[s]),p.useEffect(()=>{!s&&!m.size&&i&&i()},[s]),u==="popLayout"&&(e=a.jsx(fL,{isPresent:s,anchorX:f,root:h,children:e})),a.jsx(Gf.Provider,{value:b,children:e})};function mL(){return new Map}function qC(e=!0){const t=p.useContext(Gf);if(t===null)return[!0,null];const{isPresent:s,onExitComplete:i,register:o}=t,c=p.useId();p.useEffect(()=>{if(e)return o(c)},[e]);const u=p.useCallback(()=>e&&i&&i(c),[c,i,e]);return!s&&i?[!1,u]:[!0]}const Vu=e=>e.key||"";function z2(e){const t=[];
17return p.Children.forEach(e,s=>{p.isValidElement(s)&&t.push(s)}),t}const gn=({children:e,custom:t,initial:s=!0,onExitComplete:i,presenceAffectsLayout:o=!0,mode:c="sync",propagate:u=!1,anchorX:f="left",root:h})=>{const[m,x]=qC(u),y=p.useMemo(()=>z2(e),[e]),b=u&&!m?[]:y.map(Vu),w=p.useRef(!0),C=p.useRef(y),j=ul(()=>new Map),[S,T]=p.useState(y),[M,k]=p.useState(y);Wf(()=>{w.current=!1,C.current=y;for(let P=0;P<M.length;P++){const O=Vu(M[P]);b.includes(O)?j.delete(O):j.get(O)!==!0&&j.set(O,!1)}},[M,b.length,b.join("-")]);const R=[];if(y!==S){let P=[...y];for(let O=0;O<M.length;O++){const _=M[O],G=Vu(_);b.includes(G)||(P.splice(O,0,_),R.push(_))}return c==="wait"&&R.length&&(P=R),k(z2(P)),T(y),null}const{forceRender:D}=p.useContext(p0);return a.jsx(a.Fragment,{children:M.map(P=>{const O=Vu(P),_=u&&!m?!1:y===M||b.includes(O),G=()=>{if(j.has(O))j.set(O,!0);else return;let ne=!0;j.forEach(se=>{se||(ne=!1)}),ne&&(D?.(),k(C.current),u&&x?.(),i&&i())};return a.jsx(hL,{isPresent:_,initial:!w.current||s?void 0:!1,custom:t,presenceAffectsLayout:o,mode:c,root:h,onExitComplete:_?void 0:G,anchorX:f,children:P},O)})})},WC=p.createContext({strict:!1}),L2={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Zo={};for(const e in L2)Zo[e]={isEnabled:t=>L2[e].some(s=>!!t[s])};function pL(e){for(const t in e)Zo[t]={...Zo[t],...e[t]}}const gL=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Nf(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||gL.has(e)}let GC=e=>!Nf(e);function xL(e){typeof e=="function"&&(GC=t=>t.startsWith("on")?!Nf(t):e(t))}try{xL(require("@emotion/is-prop-valid").default)}catch{}function yL(e,t,s){const i={};for(const o in e)o==="values"&&typeof e.values=="object"||(GC(o)||s===!0&&Nf(o)||!t&&!Nf(o)||e.draggable&&o.startsWith("onDrag"))&&(i[o]=e[o]);return i}const Kf=p.createContext({});function Qf(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Gc(e){return typeof e=="string"||Array.isArray(e)}const B0=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],F0=["initial",...B0];function Xf(e){return Qf(e.animate)||F0.some(t=>Gc(e[t]))}function YC(e){return!!(Xf(e)||e.variants)}function vL(e,t){if(Xf(e)){const{initial:s,animate:i}=e;return{initial:s===!1||Gc(s)?s:void 0,animate:Gc(i)?i:void 0}}return e.inherit!==!1?t:{}}function bL(e){const{initial:t,animate:s}=vL(e,p.useContext(Kf));return p.useMemo(()=>({initial:t,animate:s}),[I2(t),I2(s)])}function I2(e){return Array.isArray(e)?e.join(" "):e}const Yc={};function wL(e){for(const t in e)Yc[t]=e[t],S0(t)&&(Yc[t].isCSSVariable=!0)}function KC(e,{layout:t,layoutId:s}){return ml.has(e)||e.startsWith("origin")||(t||s!==void 0)&&(!!Yc[e]||e==="opacity")}const jL={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},NL=hl.length;function SL(e,t,s){let i="",o=!0;for(let c=0;c<NL;c++){const u=hl[c],f=e[u];if(f===void 0)continue;let h=!0;if(typeof f=="number"?h=f===(u.startsWith("scale")?1:0):h=parseFloat(f)===0,!h||s){const m=VC(f,z0[u]);if(!h){o=!1;const x=jL[u]||u;i+=`${x}(${m}) `}s&&(t[u]=m)}}return i=i.trim(),s?i=s(t,o?"":i):o&&(i="none"),i}function H0(e,t,s){const{style:i,vars:o,transformOrigin:c}=e;let u=!1,f=!1;for(const h in t){const m=t[h];if(ml.has(h)){u=!0;continue}else if(S0(h)){o[h]=m;continue}else{const x=VC(m,z0[h]);
17h.startsWith("origin")?(f=!0,c[h]=x):i[h]=x}}if(t.transform||(u||s?i.transform=SL(t,e.transform,s):i.transform&&(i.transform="none")),f){const{originX:h="50%",originY:m="50%",originZ:x=0}=c;i.transformOrigin=`${h} ${m} ${x}`}}const U0=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function QC(e,t,s){for(const i in t)!jn(t[i])&&!KC(i,s)&&(e[i]=t[i])}function CL({transformTemplate:e},t){return p.useMemo(()=>{const s=U0();return H0(s,t,e),Object.assign({},s.vars,s.style)},[t])}function kL(e,t){const s=e.style||{},i={};return QC(i,s,e),Object.assign(i,CL(e,t)),i}function TL(e,t){const s={},i=kL(e,t);return e.drag&&e.dragListener!==!1&&(s.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(s.tabIndex=0),s.style=i,s}const EL={offset:"stroke-dashoffset",array:"stroke-dasharray"},ML={offset:"strokeDashoffset",array:"strokeDasharray"};function AL(e,t,s=1,i=0,o=!0){e.pathLength=1;const c=o?EL:ML;e[c.offset]=Re.transform(-i);const u=Re.transform(t),f=Re.transform(s);e[c.array]=`${u} ${f}`}function XC(e,{attrX:t,attrY:s,attrScale:i,pathLength:o,pathSpacing:c=1,pathOffset:u=0,...f},h,m,x){if(H0(e,f,m),h){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:y,style:b}=e;y.transform&&(b.transform=y.transform,delete y.transform),(b.transform||y.transformOrigin)&&(b.transformOrigin=y.transformOrigin??"50% 50%",delete y.transformOrigin),b.transform&&(b.transformBox=x?.transformBox??"fill-box",delete y.transformBox),t!==void 0&&(y.x=t),s!==void 0&&(y.y=s),i!==void 0&&(y.scale=i),o!==void 0&&AL(y,o,c,u,!1)}const ZC=()=>({...U0(),attrs:{}}),JC=e=>typeof e=="string"&&e.toLowerCase()==="svg";function DL(e,t,s,i){const o=p.useMemo(()=>{const c=ZC();return XC(c,t,JC(i),e.transformTemplate,e.style),{...c.attrs,style:{...c.style}}},[t]);if(e.style){const c={};QC(c,e.style,e),o.style={...c,...o.style}}return o}const OL=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function q0(e){return typeof e!="string"||e.includes("-")?!1:!!(OL.indexOf(e)>-1||/[A-Z]/u.test(e))}function RL(e,t,s,{latestValues:i},o,c=!1){const f=(q0(e)?DL:TL)(t,i,o,e),h=yL(t,typeof e=="string",c),m=e!==p.Fragment?{...h,...f,ref:s}:{},{children:x}=t,y=p.useMemo(()=>jn(x)?x.get():x,[x]);return p.createElement(e,{...m,children:y})}function V2(e){const t=[{},{}];return e?.values.forEach((s,i)=>{t[0][i]=s.get(),t[1][i]=s.getVelocity()}),t}function W0(e,t,s,i){if(typeof t=="function"){const[o,c]=V2(i);t=t(s!==void 0?s:e.custom,o,c)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,c]=V2(i);t=t(s!==void 0?s:e.custom,o,c)}return t}function sf(e){return jn(e)?e.get():e}function _L({scrapeMotionValuesFromProps:e,createRenderState:t},s,i,o){return{latestValues:PL(s,i,o,e),renderState:t()}}function PL(e,t,s,i){const o={},c=i(e,{});for(const b in c)o[b]=sf(c[b]);let{initial:u,animate:f}=e;const h=Xf(e),m=YC(e);t&&m&&!h&&e.inherit!==!1&&(u===void 0&&(u=t.initial),f===void 0&&(f=t.animate));let x=s?s.initial===!1:!1;x=x||u===!1;const y=x?f:u;if(y&&typeof y!="boolean"&&!Qf(y)){const b=Array.isArray(y)?y:[y];for(let w=0;w<b.length;w++){const C=W0(e,b[w]);if(C){const{transitionEnd:j,transition:S,...T}=C;for(const M in T){let k=T[M];if(Array.isArray(k)){const R=x?k.length-1:0;k=k[R]}k!==null&&(o[M]=k)}for(const M in j)o[M]=j[M]}}}return o}const ek=e=>(t,s)=>{const i=p.useContext(Kf),o=p.useContext(Gf),c=()=>_L(e,t,i,o);return s?c():ul(c)};function G0(e,t,s){const{style:i}=e,o={};for(const c in i)(jn(i[c])||t.style&&jn(t.style[c])||KC(c,e)||s?.getValue(c)?.liveStyle!==void 0)&&(o[c]=i[c]);return o}const zL=ek({scrapeMotionValuesFromProps:G0,createRenderState:U0});function tk(e,t,s){const i=G0(e,t,s);
vendor: 22,755 bytes, line 17
17for(const o in e)if(jn(e[o])||jn(t[o])){const c=hl.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;i[c]=e[o]}return i}const LL=ek({scrapeMotionValuesFromProps:tk,createRenderState:ZC}),IL=Symbol.for("motionComponentSymbol");function Ro(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function VL(e,t,s){return p.useCallback(i=>{i&&e.onMount&&e.onMount(i),t&&(i?t.mount(i):t.unmount()),s&&(typeof s=="function"?s(i):Ro(s)&&(s.current=i))},[t])}const Y0=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),$L="framerAppearId",nk="data-"+Y0($L),sk=p.createContext({});function BL(e,t,s,i,o){const{visualElement:c}=p.useContext(Kf),u=p.useContext(WC),f=p.useContext(Gf),h=p.useContext(Yf).reducedMotion,m=p.useRef(null);i=i||u.renderer,!m.current&&i&&(m.current=i(e,{visualState:t,parent:c,props:s,presenceContext:f,blockInitialAnimation:f?f.initial===!1:!1,reducedMotionConfig:h}));const x=m.current,y=p.useContext(sk);x&&!x.projection&&o&&(x.type==="html"||x.type==="svg")&&FL(m.current,s,o,y);const b=p.useRef(!1);p.useInsertionEffect(()=>{x&&b.current&&x.update(s,f)});const w=s[nk],C=p.useRef(!!w&&!window.MotionHandoffIsComplete?.(w)&&window.MotionHasOptimisedAnimation?.(w));return Wf(()=>{x&&(b.current=!0,window.MotionIsMounted=!0,x.updateFeatures(),x.scheduleRenderMicrotask(),C.current&&x.animationState&&x.animationState.animateChanges())}),p.useEffect(()=>{x&&(!C.current&&x.animationState&&x.animationState.animateChanges(),C.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(w)}),C.current=!1),x.enteringChildren=void 0)}),x}function FL(e,t,s,i){const{layoutId:o,layout:c,drag:u,dragConstraints:f,layoutScroll:h,layoutRoot:m,layoutCrossfade:x}=t;e.projection=new s(e.latestValues,t["data-framer-portal-id"]?void 0:ak(e.parent)),e.projection.setOptions({layoutId:o,layout:c,alwaysMeasureLayout:!!u||f&&Ro(f),visualElement:e,animationType:typeof c=="string"?c:"both",initialPromotionConfig:i,crossfade:x,layoutScroll:h,layoutRoot:m})}function ak(e){if(e)return e.options.allowProjection!==!1?e.projection:ak(e.parent)}function Xp(e,{forwardMotionProps:t=!1}={},s,i){s&&pL(s);const o=q0(e)?LL:zL;function c(f,h){let m;const x={...p.useContext(Yf),...f,layoutId:HL(f)},{isStatic:y}=x,b=bL(f),w=o(f,y);if(!y&&g0){UL();const C=qL(x);m=C.MeasureLayout,b.visualElement=BL(e,w,x,i,C.ProjectionNode)}return a.jsxs(Kf.Provider,{value:b,children:[m&&b.visualElement?a.jsx(m,{visualElement:b.visualElement,...x}):null,RL(e,f,VL(w,b.visualElement,h),w,y,t)]})}c.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const u=p.forwardRef(c);return u[IL]=e,u}function HL({layoutId:e}){const t=p.useContext(p0).id;return t&&e!==void 0?t+"-"+e:e}function UL(e,t){p.useContext(WC).strict}function qL(e){const{drag:t,layout:s}=Zo;if(!t&&!s)return{};const i={...t,...s};return{MeasureLayout:t?.isEnabled(e)||s?.isEnabled(e)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}function WL(e,t){if(typeof Proxy>"u")return Xp;const s=new Map,i=(c,u)=>Xp(c,u,e,t),o=(c,u)=>i(c,u);return new Proxy(o,{get:(c,u)=>u==="create"?i:(s.has(u)||s.set(u,Xp(u,void 0,e,t)),s.get(u))})}function ik({top:e,left:t,right:s,bottom:i}){return{x:{min:t,max:s},y:{min:e,max:i}}}function GL({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function YL(e,t){if(!t)return e;const s=t({x:e.left,y:e.top}),i=t({x:e.right,y:e.bottom});return{top:s.y,left:s.x,bottom:i.y,right:i.x}}function Zp(e){return e===void 0||e===1}function lx({scale:e,scaleX:t,scaleY:s}){return!Zp(e)||!Zp(t)||!Zp(s)}function xr(e){return lx(e)||rk(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function rk(e){return $2(e.x)||$2(e.y)}function $2(e){return e&&e!=="0%"}function Sf(e,t,s){const i=e-s,o=t*i;return s+o}function B2(e,t,s,i,o){return o!==void 0&&(e=Sf(e,o,i)),Sf(e,s,i)+t}function cx(e,t=0,s=1,i,o){e.min=B2(e.min,t,s,i,o),e.max=B2(e.max,t,s,i,o)}function ok(e,{x:t,y:s}){cx(e.x,t.translate,t.scale,t.originPoint),cx(e.y,s.translate,s.scale,s.originPoint)}const F2=.999999999999,H2=1.0000000000001;function KL(e,t,s,i=!1){const o=s.length;if(!o)return;t.x=t.y=1;let c,u;for(let f=0;f<o;f++){c=s[f],u=c.projectionDelta;const{visualElement:h}=c.options;h&&h.props.style&&h.props.style.display==="contents"||(i&&c.options.layoutScroll&&c.scroll&&c!==c.root&&Po(e,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),u&&(t.x*=u.x.scale,t.y*=u.y.scale,ok(e,u)),i&&xr(c.latestValues)&&Po(e,c.latestValues))}t.x<H2&&t.x>F2&&(t.x=1),t.y<H2&&t.y>F2&&(t.y=1)}function _o(e,t){e.min=e.min+t,e.max=e.max+t}function U2(e,t,s,i,o=.5){const c=Lt(e.min,e.max,o);cx(e,t,s,c,i)}function Po(e,t){U2(e.x,t.x,t.scaleX,t.scale,t.originX),U2(e.y,t.y,t.scaleY,t.scale,t.originY)}function lk(e,t){return ik(YL(e.getBoundingClientRect(),t))}function QL(e,t,s){const i=lk(e,s),{scroll:o}=t;return o&&(_o(i.x,o.offset.x),_o(i.y,o.offset.y)),i}const q2=()=>({translate:0,scale:1,origin:0,originPoint:0}),zo=()=>({x:q2(),y:q2()}),W2=()=>({min:0,max:0}),Wt=()=>({x:W2(),y:W2()}),dx={current:null},ck={current:!1};function XL(){if(ck.current=!0,!!g0)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>dx.current=e.matches;e.addEventListener("change",t),t()}else dx.current=!1}const ZL=new WeakMap;function JL(e,t,s){for(const i in t){const o=t[i],c=s[i];if(jn(o))e.addValue(i,o);else if(jn(c))e.addValue(i,Rs(o,{owner:e}));else if(c!==o)if(e.hasValue(i)){const u=e.getValue(i);u.liveStyle===!0?u.jump(o):u.hasAnimated||u.set(o)}else{const u=e.getStaticValue(i);e.addValue(i,Rs(u!==void 0?u:o,{owner:e}))}}for(const i in s)t[i]===void 0&&e.removeValue(i);return t}const G2=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class e9{scrapeMotionValuesFromProps(t,s,i){return{}}constructor({parent:t,props:s,presenceContext:i,reducedMotionConfig:o,blockInitialAnimation:c,visualState:u},f={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=_0,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const b=$n.now();this.renderScheduledAt<b&&(this.renderScheduledAt=b,xt.render(this.render,!1,!0))};const{latestValues:h,renderState:m}=u;this.latestValues=h,this.baseTarget={...h},this.initialValues=s.initial?{...h}:{},this.renderState=m,this.parent=t,this.props=s,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=f,this.blockInitialAnimation=!!c,this.isControllingVariants=Xf(s),this.isVariantNode=YC(s),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:x,...y}=this.scrapeMotionValuesFromProps(s,{},this);for(const b in y){const w=y[b];h[b]!==void 0&&jn(w)&&w.set(h[b])}}mount(t){this.current=t,ZL.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((s,i)=>this.bindToMotionValue(i,s)),ck.current||XL(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:dx.current,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Vs(this.notifyUpdate),Vs(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const s=this.features[t];s&&(s.unmount(),s.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,s){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const i=ml.has(t);i&&this.onBindTransform&&this.onBindTransform();const o=s.on("change",u=>{this.latestValues[t]=u,this.props.onUpdate&&xt.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let c;window.MotionCheckAppearSync&&(c=window.MotionCheckAppearSync(this,t,s)),this.valueSubscriptions.set(t,()=>{o(),c&&c(),s.owner&&s.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Zo){const s=Zo[t];if(!s)continue;const{isEnabled:i,Feature:o}=s;if(!this.features[t]&&o&&i(this.props)&&(this.features[t]=new o(this)),this.features[t]){const c=this.features[t];c.isMounted?c.update():(c.mount(),c.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Wt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,s){this.latestValues[t]=s}update(t,s){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=s;for(let i=0;i<G2.length;i++){const o=G2[i];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const c="on"+o,u=t[c];u&&(this.propEventSubscriptions[o]=this.on(o,u))}this.prevMotionValues=JL(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const s=this.getClosestVariantNode();if(s)return s.variantChildren&&s.variantChildren.add(t),()=>s.variantChildren.delete(t)}addValue(t,s){const i=this.values.get(t);s!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,s),this.values.set(t,s),this.latestValues[t]=s.get())}removeValue(t){this.values.delete(t);const s=this.valueSubscriptions.get(t);s&&(s(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,s){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return i===void 0&&s!==void 0&&(i=Rs(s===null?void 0:s,{owner:this}),this.addValue(t,i)),i}readValue(t,s){let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(J5(i)||tC(i))?i=parseFloat(i):!lL(i)&&Li.test(s)&&(i=LC(t,s)),this.setBaseTarget(t,jn(i)?i.get():i)),jn(i)?i.get():i}setBaseTarget(t,s){this.baseTarget[t]=s}getBaseTarget(t){const{initial:s}=this.props;let i;if(typeof s=="string"||typeof s=="object"){const c=W0(this.props,s,this.presenceContext?.custom);c&&(i=c[t])}if(s&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!jn(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,s){return this.events[t]||(this.events[t]=new b0),this.events[t].add(s)}notify(t,...s){this.events[t]&&this.events[t].notify(...s)}scheduleRenderMicrotask(){I0.render(this.render)}}class dk extends e9{constructor(){super(...arguments),this.KeyframeResolver=B7}sortInstanceNodePosition(t,s){return t.compareDocumentPosition(s)&2?1:-1}getBaseTargetFromProps(t,s){return t.style?t.style[s]:void 0}removeValueFromRenderState(t,{vars:s,style:i}){delete s[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;jn(t)&&(this.childSubscription=t.on("change",s=>{this.current&&(this.current.textContent=`${s}`)}))}}function uk(e,{style:t,vars:s},i,o){const c=e.style;let u;for(u in t)c[u]=t[u];o?.applyProjectionStyles(c,i);for(u in s)c.setProperty(u,s[u])}function t9(e){return window.getComputedStyle(e)}class n9 extends dk{constructor(){super(...arguments),this.type="html",this.renderInstance=uk}readValueFromInstance(t,s){if(ml.has(s))return this.projection?.isProjecting?tx(s):o7(t,s);{const i=t9(t),o=(S0(s)?i.getPropertyValue(s):i[s])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:s}){return lk(t,s)}build(t,s,i){H0(t,s,i.transformTemplate)}scrapeMotionValuesFromProps(t,s,i){return G0(t,s,i)}}const fk=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function s9(e,t,s,i){uk(e,t,void 0,i);for(const o in t.attrs)e.setAttribute(fk.has(o)?o:Y0(o),t.attrs[o])}class a9 extends dk{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Wt}getBaseTargetFromProps(t,s){return t[s]}readValueFromInstance(t,s){if(ml.has(s)){const i=zC(s);return i&&i.default||0}return s=fk.has(s)?s:Y0(s),t.getAttribute(s)}scrapeMotionValuesFromProps(t,s,i){return tk(t,s,i)}build(t,s,i){XC(t,s,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,s,i,o){s9(t,s,i,o)}mount(t){this.isSVGTag=JC(t.tagName),super.mount(t)}}const i9=(e,t)=>q0(e)?new a9(t):new n9(t,{allowProjection:e!==p.Fragment});function Ho(e,t,s){const i=e.getProps();return W0(i,t,s!==void 0?s:i.custom,e)}const ux=e=>Array.isArray(e);function r9(e,t,s){e.hasValue(t)?e.getValue(t).set(s):e.addValue(t,Rs(s))}function o9(e){return ux(e)?e[e.length-1]||0:e}function l9(e,t){const s=Ho(e,t);let{transitionEnd:i={},transition:o={},...c}=s||{};c={...c,...i};for(const u in c){const f=o9(c[u]);r9(e,u,f)}}function c9(e){return!!(jn(e)&&e.add)}function fx(e,t){const s=e.getValue("willChange");if(c9(s))return s.add(t);if(!s&&Ja.WillChange){const i=new Ja.WillChange("auto");e.addValue("willChange",i),i.add(t)}}function hk(e){return e.props[nk]}const d9=e=>e!==null;function u9(e,{repeat:t,repeatType:s="loop"},i){const o=e.filter(d9),c=t&&s!=="loop"&&t%2===1?0:o.length-1;return o[c]}const f9={type:"spring",stiffness:500,damping:25,restSpeed:10},h9=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),m9={type:"keyframes",duration:.8},p9={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},g9=(e,{keyframes:t})=>t.length>2?m9:ml.has(e)?e.startsWith("scale")?h9(t[1]):f9:p9;function x9({when:e,delay:t,delayChildren:s,staggerChildren:i,staggerDirection:o,repeat:c,repeatType:u,repeatDelay:f,from:h,elapsed:m,...x}){return!!Object.keys(x).length}const K0=(e,t,s,i={},o,c)=>u=>{const f=P0(i,e)||{},h=f.delay||i.delay||0;let{elapsed:m=0}=i;m=m-na(h);const x={keyframes:Array.isArray(s)?s:[null,s],ease:"easeOut",velocity:t.getVelocity(),...f,delay:-m,onUpdate:b=>{t.set(b),f.onUpdate&&f.onUpdate(b)},onComplete:()=>{u(),f.onComplete&&f.onComplete()},name:e,motionValue:t,element:c?void 0:o};x9(f)||Object.assign(x,g9(e,x)),x.duration&&(x.duration=na(x.duration)),x.repeatDelay&&(x.repeatDelay=na(x.repeatDelay)),x.from!==void 0&&(x.keyframes[0]=x.from);let y=!1;if((x.type===!1||x.duration===0&&!x.repeatDelay)&&(rx(x),x.delay===0&&(y=!0)),(Ja.instantAnimations||Ja.skipAnimations)&&(y=!0,rx(x),x.delay=0),x.allowFlatten=!f.type&&!f.ease,y&&!c&&t.get()!==void 0){const b=u9(x.keyframes,f);if(b!==void 0){xt.update(()=>{x.onUpdate(b),x.onComplete()});return}}return f.isSync?new R0(x):new M7(x)};function y9({protectedKeys:e,needsAnimating:t},s){const i=e.hasOwnProperty(s)&&t[s]!==!0;return t[s]=!1,i}function mk(e,t,{delay:s=0,transitionOverride:i,type:o}={}){let{transition:c=e.getDefaultTransition(),transitionEnd:u,...f}=t;i&&(c=i);const h=[],m=o&&e.animationState&&e.animationState.getState()[o];for(const x in f){const y=e.getValue(x,e.latestValues[x]??null),b=f[x];if(b===void 0||m&&y9(m,x))continue;const w={delay:s,...P0(c||{},x)},C=y.get();if(C!==void 0&&!y.isAnimating&&!Array.isArray(b)&&b===C&&!w.velocity)continue;let j=!1;if(window.MotionHandoffAnimation){const T=hk(e);if(T){const M=window.MotionHandoffAnimation(T,x,xt);M!==null&&(w.startTime=M,j=!0)}}fx(e,x),y.start(K0(x,y,b,e.shouldReduceMotion&&RC.has(x)?{type:!1}:w,e,j));const S=y.animation;S&&h.push(S)}return u&&Promise.all(h).then(()=>{xt.update(()=>{u&&l9(e,u)})}),h}function pk(e,t,s,i=0,o=1){const c=Array.from(e).sort((m,x)=>m.sortNodePosition(x)).indexOf(t),u=e.size,f=(u-1)*i;return typeof s=="function"?s(c,u):o===1?c*i:f-c*i}function hx(e,t,s={}){const i=Ho(e,t,s.type==="exit"?e.presenceContext?.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=i||{};s.transitionOverride&&(o=s.transitionOverride);const c=i?()=>Promise.all(mk(e,i,s)):()=>Promise.resolve(),u=e.variantChildren&&e.variantChildren.size?(h=0)=>{const{delayChildren:m=0,staggerChildren:x,staggerDirection:y}=o;return v9(e,t,h,m,x,y,s)}:()=>Promise.resolve(),{when:f}=o;if(f){const[h,m]=f==="beforeChildren"?[c,u]:[u,c];return h().then(()=>m())}else return Promise.all([c(),u(s.delay)])}function v9(e,t,s=0,i=0,o=0,c=1,u){const f=[];for(const h of e.variantChildren)h.notify("AnimationStart",t),f.push(hx(h,t,{...u,delay:s+(typeof i=="function"?0:i)+pk(e.variantChildren,h,i,o,c)}).then(()=>h.notify("AnimationComplete",t)));return Promise.all(f)}function b9(e,t,s={}){e.notify("AnimationStart",t);let i;if(Array.isArray(t)){const o=t.map(c=>hx(e,c,s));i=Promise.all(o)}else if(typeof t=="string")i=hx(e,t,s);else{const o=typeof t=="function"?Ho(e,t,s.custom):t;i=Promise.all(mk(e,o,s))}return i.then(()=>{e.notify("AnimationComplete",t)})}function gk(e,t){if(!Array.isArray(t))return!1;const s=t.length;if(s!==e.length)return!1;for(let i=0;i<s;i++)if(t[i]!==e[i])return!1;return!0}const w9=F0.length;function xk(e){if(!e)return;if(!e.isControllingVariants){const s=e.parent?xk(e.parent)||{}:{};return e.props.initial!==void 0&&(s.initial=e.props.initial),s}const t={};for(let s=0;s<w9;s++){const i=F0[s],o=e.props[i];(Gc(o)||o===!1)&&(t[i]=o)}return t}const j9=[...B0].reverse(),N9=B0.length;function S9(e){return t=>Promise.all(t.map(({animation:s,options:i})=>b9(e,s,i)))}function C9(e){let t=S9(e),s=Y2(),i=!0;const o=h=>(m,x)=>{const y=Ho(e,x,h==="exit"?e.presenceContext?.custom:void 0);if(y){const{transition:b,transitionEnd:w,...C}=y;m={...m,...C,...w}}return m};function c(h){t=h(e)}function u(h){const{props:m}=e,x=xk(e.parent)||{},y=[],b=new Set;let w={},C=1/0;for(let S=0;S<N9;S++){const T=j9[S],M=s[T],k=m[T]!==void 0?m[T]:x[T],R=Gc(k),D=T===h?M.isActive:null;D===!1&&(C=S);let P=k===x[T]&&k!==m[T]&&R;if(P&&i&&e.manuallyAnimateOnMount&&(P=!1),M.protectedKeys={...w},!M.isActive&&D===null||!k&&!M.prevProp||Qf(k)||typeof k=="boolean")continue;const O=k9(M.prevProp,k);let _=O||T===h&&M.isActive&&!P&&R||S>C&&R,G=!1;const ne=Array.isArray(k)?k:[k];let se=ne.reduce(o(T),{});D===!1&&(se={});const{prevResolvedValues:ce={}}=M,Z={...ce,...se},F=H=>{_=!0,b.has(H)&&(G=!0,b.delete(H)),M.needsAnimating[H]=!0;const $=e.getValue(H);$&&($.liveStyle=!1)};for(const H in Z){const $=se[H],re=ce[H];if(w.hasOwnProperty(H))continue;let me=!1;ux($)&&ux(re)?me=!gk($,re):me=$!==re,me?$!=null?F(H):b.add(H):$!==void 0&&b.has(H)?F(H):M.protectedKeys[H]=!0}M.prevProp=k,M.prevResolvedValues=se,M.isActive&&(w={...w,...se}),i&&e.blockInitialAnimation&&(_=!1);const ie=P&&O;_&&(!ie||G)&&y.push(...ne.map(H=>{const $={type:T};if(typeof H=="string"&&i&&!ie&&e.manuallyAnimateOnMount&&e.parent){const{parent:re}=e,me=Ho(re,H);if(re.enteringChildren&&me){const{delayChildren:L}=me.transition||{};$.delay=pk(re.enteringChildren,e,L)}}return{animation:H,options:$}}))}if(b.size){const S={};if(typeof m.initial!="boolean"){const T=Ho(e,Array.isArray(m.initial)?m.initial[0]:m.initial);T&&T.transition&&(S.transition=T.transition)}b.forEach(T=>{const M=e.getBaseTarget(T),k=e.getValue(T);k&&(k.liveStyle=!0),S[T]=M??null}),y.push({animation:S})}let j=!!y.length;return i&&(m.initial===!1||m.initial===m.animate)&&!e.manuallyAnimateOnMount&&(j=!1),i=!1,j?t(y):Promise.resolve()}function f(h,m){if(s[h].isActive===m)return Promise.resolve();e.variantChildren?.forEach(y=>y.animationState?.setActive(h,m)),s[h].isActive=m;const x=u(h);for(const y in s)s[y].protectedKeys={};return x}return{animateChanges:u,setActive:f,setAnimateFunction:c,getState:()=>s,reset:()=>{s=Y2()}}}function k9(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!gk(t,e):!1}function mr(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Y2(){return{animate:mr(!0),whileInView:mr(),whileHover:mr(),whileTap:mr(),whileDrag:mr(),whileFocus:mr(),exit:mr()}}class qi{constructor(t){this.isMounted=!1,this.node=t}update(){}}class T9 extends qi{constructor(t){super(t),t.animationState||(t.animationState=C9(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Qf(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:s}=this.node.prevProps||{};t!==s&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let E9=0;class M9 extends qi{constructor(){super(...arguments),this.id=E9++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:s}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;const o=this.node.animationState.setActive("exit",!t);s&&!t&&o.then(()=>{s(this.id)})}mount(){const{register:t,onExitComplete:s}=this.node.presenceContext||{};s&&s(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const A9={animation:{Feature:T9},exit:{Feature:M9}};function Kc(e,t,s,i={passive:!0}){return e.addEventListener(t,s,i),()=>e.removeEventListener(t,s)}function ld(e){return{point:{x:e.pageX,y:e.pageY}}}const D9=e=>t=>V0(t)&&e(t,ld(t));function Oc(e,t,s,i){return Kc(e,t,D9(s),i)}const yk=1e-4,O9=1-yk,R9=1+yk,vk=.01,_9=0-vk,P9=0+vk;function Mn(e){return e.max-e.min}
vendor: 5,163 bytes, line 17
17function z9(e,t,s){return Math.abs(e-t)<=s}function K2(e,t,s,i=.5){e.origin=i,e.originPoint=Lt(t.min,t.max,e.origin),e.scale=Mn(s)/Mn(t),e.translate=Lt(s.min,s.max,e.origin)-e.originPoint,(e.scale>=O9&&e.scale<=R9||isNaN(e.scale))&&(e.scale=1),(e.translate>=_9&&e.translate<=P9||isNaN(e.translate))&&(e.translate=0)}function Rc(e,t,s,i){K2(e.x,t.x,s.x,i?i.originX:void 0),K2(e.y,t.y,s.y,i?i.originY:void 0)}function Q2(e,t,s){e.min=s.min+t.min,e.max=e.min+Mn(t)}function L9(e,t,s){Q2(e.x,t.x,s.x),Q2(e.y,t.y,s.y)}function X2(e,t,s){e.min=t.min-s.min,e.max=e.min+Mn(t)}function _c(e,t,s){X2(e.x,t.x,s.x),X2(e.y,t.y,s.y)}function vs(e){return[e("x"),e("y")]}const bk=({current:e})=>e?e.ownerDocument.defaultView:null,Z2=(e,t)=>Math.abs(e-t);function I9(e,t){const s=Z2(e.x,t.x),i=Z2(e.y,t.y);return Math.sqrt(s**2+i**2)}class wk{constructor(t,s,{transformPagePoint:i,contextWindow:o=window,dragSnapToOrigin:c=!1,distanceThreshold:u=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const b=eg(this.lastMoveEventInfo,this.history),w=this.startEvent!==null,C=I9(b.offset,{x:0,y:0})>=this.distanceThreshold;if(!w&&!C)return;const{point:j}=b,{timestamp:S}=cn;this.history.push({...j,timestamp:S});const{onStart:T,onMove:M}=this.handlers;w||(T&&T(this.lastMoveEvent,b),this.startEvent=this.lastMoveEvent),M&&M(this.lastMoveEvent,b)},this.handlePointerMove=(b,w)=>{this.lastMoveEvent=b,this.lastMoveEventInfo=Jp(w,this.transformPagePoint),xt.update(this.updatePoint,!0)},this.handlePointerUp=(b,w)=>{this.end();const{onEnd:C,onSessionEnd:j,resumeAnimation:S}=this.handlers;if(this.dragSnapToOrigin&&S&&S(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const T=eg(b.type==="pointercancel"?this.lastMoveEventInfo:Jp(w,this.transformPagePoint),this.history);this.startEvent&&C&&C(b,T),j&&j(b,T)},!V0(t))return;this.dragSnapToOrigin=c,this.handlers=s,this.transformPagePoint=i,this.distanceThreshold=u,this.contextWindow=o||window;const f=ld(t),h=Jp(f,this.transformPagePoint),{point:m}=h,{timestamp:x}=cn;this.history=[{...m,timestamp:x}];const{onSessionStart:y}=s;y&&y(t,eg(h,this.history)),this.removeListeners=id(Oc(this.contextWindow,"pointermove",this.handlePointerMove),Oc(this.contextWindow,"pointerup",this.handlePointerUp),Oc(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Vs(this.updatePoint)}}function Jp(e,t){return t?{point:t(e.point)}:e}function J2(e,t){return{x:e.x-t.x,y:e.y-t.y}}function eg({point:e},t){return{point:e,delta:J2(e,jk(t)),offset:J2(e,V9(t)),velocity:$9(t,.1)}}function V9(e){return e[0]}function jk(e){return e[e.length-1]}function $9(e,t){if(e.length<2)return{x:0,y:0};let s=e.length-1,i=null;const o=jk(e);for(;s>=0&&(i=e[s],!(o.timestamp-i.timestamp>na(t)));)s--;if(!i)return{x:0,y:0};const c=ws(o.timestamp-i.timestamp);if(c===0)return{x:0,y:0};const u={x:(o.x-i.x)/c,y:(o.y-i.y)/c};return u.x===1/0&&(u.x=0),u.y===1/0&&(u.y=0),u}function B9(e,{min:t,max:s},i){return t!==void 0&&e<t?e=i?Lt(t,e,i.min):Math.max(e,t):s!==void 0&&e>s&&(e=i?Lt(s,e,i.max):Math.min(e,s)),e}function ej(e,t,s){return{min:t!==void 0?e.min+t:void 0,max:s!==void 0?e.max+s-(e.max-e.min):void 0}}function F9(e,{top:t,left:s,bottom:i,right:o}){return{x:ej(e.x,s,o),y:ej(e.y,t,i)}}function tj(e,t){let s=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&([s,i]=[i,s]),{min:s,max:i}}function H9(e,t){return{x:tj(e.x,t.x),y:tj(e.y,t.y)}}function U9(e,t){let s=.5;const i=Mn(e),o=Mn(t);return o>i?s=Xo(t.min,t.max-i,e.min):i>o&&(s=Xo(e.min,e.max-o,t.min)),oa(0,1,s)}function q9(e,t){const s={};return t.min!==void 0&&(s.min=t.min-e.min),t.max!==void 0&&(s.max=t.max-e.min),s}const mx=.35;function W9(e=mx){return e===!1?e=0:e===!0&&(e=mx),{x:nj(e,"left","right"),y:nj(e,"top","bottom")}}function nj(e,t,s){return{min:sj(e,t),max:sj(e,s)}}function sj(e,t){return typeof e=="number"?e:e[t]||0}const G9=new WeakMap;class Y9{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Wt(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:s=!1,distanceThreshold:i}={}){const{presenceContext:o}=this.visualElement;if(o&&o.isPresent===!1)return;const c=y=>{const{dragSnapToOrigin:b}=this.getProps();b?this.pauseAnimation():this.stopAnimation(),s&&this.snapToCursor(ld(y).point)},u=(y,b)=>{const{drag:w,dragPropagation:C,onDragStart:j}=this.getProps();if(w&&!C&&(this.openDragLock&&this.openDragLock(),this.openDragLock=U7(w),!this.openDragLock))return;this.latestPointerEvent=y,this.latestPanInfo=b,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),vs(T=>{let M=this.getAxisMotionValue(T).get()||0;if(sa.test(M)){const{projection:k}=this.visualElement;if(k&&k.layout){const R=k.layout.layoutBox[T];
vendor: 19,063 bytes, line 17
17R&&(M=Mn(R)*(parseFloat(M)/100))}}this.originPoint[T]=M}),j&&xt.postRender(()=>j(y,b)),fx(this.visualElement,"transform");const{animationState:S}=this.visualElement;S&&S.setActive("whileDrag",!0)},f=(y,b)=>{this.latestPointerEvent=y,this.latestPanInfo=b;const{dragPropagation:w,dragDirectionLock:C,onDirectionLock:j,onDrag:S}=this.getProps();if(!w&&!this.openDragLock)return;const{offset:T}=b;if(C&&this.currentDirection===null){this.currentDirection=K9(T),this.currentDirection!==null&&j&&j(this.currentDirection);return}this.updateAxis("x",b.point,T),this.updateAxis("y",b.point,T),this.visualElement.render(),S&&S(y,b)},h=(y,b)=>{this.latestPointerEvent=y,this.latestPanInfo=b,this.stop(y,b),this.latestPointerEvent=null,this.latestPanInfo=null},m=()=>vs(y=>this.getAnimationState(y)==="paused"&&this.getAxisMotionValue(y).animation?.play()),{dragSnapToOrigin:x}=this.getProps();this.panSession=new wk(t,{onSessionStart:c,onStart:u,onMove:f,onSessionEnd:h,resumeAnimation:m},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:x,distanceThreshold:i,contextWindow:bk(this.visualElement)})}stop(t,s){const i=t||this.latestPointerEvent,o=s||this.latestPanInfo,c=this.isDragging;if(this.cancel(),!c||!o||!i)return;const{velocity:u}=o;this.startAnimation(u);const{onDragEnd:f}=this.getProps();f&&xt.postRender(()=>f(i,o))}cancel(){this.isDragging=!1;const{projection:t,animationState:s}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),s&&s.setActive("whileDrag",!1)}updateAxis(t,s,i){const{drag:o}=this.getProps();if(!i||!$u(t,o,this.currentDirection))return;const c=this.getAxisMotionValue(t);let u=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(u=B9(u,this.constraints[t],this.elastic[t])),c.set(u)}resolveConstraints(){const{dragConstraints:t,dragElastic:s}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,o=this.constraints;t&&Ro(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=F9(i.layoutBox,t):this.constraints=!1,this.elastic=W9(s),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&vs(c=>{this.constraints!==!1&&this.getAxisMotionValue(c)&&(this.constraints[c]=q9(i.layoutBox[c],this.constraints[c]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:s}=this.getProps();if(!t||!Ro(t))return!1;const i=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const c=QL(i,o.root,this.visualElement.getTransformPagePoint());let u=H9(o.layout.layoutBox,c);if(s){const f=s(GL(u));this.hasMutatedConstraints=!!f,f&&(u=ik(f))}return u}startAnimation(t){const{drag:s,dragMomentum:i,dragElastic:o,dragTransition:c,dragSnapToOrigin:u,onDragTransitionEnd:f}=this.getProps(),h=this.constraints||{},m=vs(x=>{if(!$u(x,s,this.currentDirection))return;let y=h&&h[x]||{};u&&(y={min:0,max:0});const b=o?200:1e6,w=o?40:1e7,C={type:"inertia",velocity:i?t[x]:0,bounceStiffness:b,bounceDamping:w,timeConstant:750,restDelta:1,restSpeed:10,...c,...y};return this.startAxisValueAnimation(x,C)});return Promise.all(m).then(f)}startAxisValueAnimation(t,s){const i=this.getAxisMotionValue(t);return fx(this.visualElement,t),i.start(K0(t,i,0,s,this.visualElement,!1))}stopAnimation(){vs(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){vs(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){const s=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps(),o=i[s];return o||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){vs(s=>{const{drag:i}=this.getProps();if(!$u(s,i,this.currentDirection))return;const{projection:o}=this.visualElement,c=this.getAxisMotionValue(s);if(o&&o.layout){const{min:u,max:f}=o.layout.layoutBox[s];c.set(t[s]-Lt(u,f,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:s}=this.getProps(),{projection:i}=this.visualElement;if(!Ro(s)||!i||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};vs(u=>{const f=this.getAxisMotionValue(u);if(f&&this.constraints!==!1){const h=f.get();o[u]=U9({min:h,max:h},this.constraints[u])}});const{transformTemplate:c}=this.visualElement.getProps();this.visualElement.current.style.transform=c?c({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),vs(u=>{if(!$u(u,t,null))return;const f=this.getAxisMotionValue(u),{min:h,max:m}=this.constraints[u];f.set(Lt(h,m,o[u]))})}addListeners(){if(!this.visualElement.current)return;G9.set(this.visualElement,this);const t=this.visualElement.current,s=Oc(t,"pointerdown",h=>{const{drag:m,dragListener:x=!0}=this.getProps();m&&x&&this.start(h)}),i=()=>{const{dragConstraints:h}=this.getProps();Ro(h)&&h.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,c=o.addEventListener("measure",i);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),xt.read(i);const u=Kc(window,"resize",()=>this.scalePositionWithinConstraints()),f=o.addEventListener("didUpdate",(({delta:h,hasLayoutChanged:m})=>{this.isDragging&&m&&(vs(x=>{const y=this.getAxisMotionValue(x);y&&(this.originPoint[x]+=h[x].translate,y.set(y.get()+h[x].translate))}),this.visualElement.render())}));return()=>{u(),s(),c(),f&&f()}}getProps(){const t=this.visualElement.getProps(),{drag:s=!1,dragDirectionLock:i=!1,dragPropagation:o=!1,dragConstraints:c=!1,dragElastic:u=mx,dragMomentum:f=!0}=t;return{...t,drag:s,dragDirectionLock:i,dragPropagation:o,dragConstraints:c,dragElastic:u,dragMomentum:f}}}function $u(e,t,s){return(t===!0||t===e)&&(s===null||s===e)}function K9(e,t=10){let s=null;return Math.abs(e.y)>t?s="y":Math.abs(e.x)>t&&(s="x"),s}class Q9 extends qi{constructor(t){super(t),this.removeGroupControls=Bn,this.removeListeners=Bn,this.controls=new Y9(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Bn}unmount(){this.removeGroupControls(),this.removeListeners()}}const aj=e=>(t,s)=>{e&&xt.postRender(()=>e(t,s))};class X9 extends qi{constructor(){super(...arguments),this.removePointerDownListener=Bn}onPointerDown(t){this.session=new wk(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:bk(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:s,onPan:i,onPanEnd:o}=this.node.getProps();return{onSessionStart:aj(t),onStart:aj(s),onMove:i,onEnd:(c,u)=>{delete this.session,o&&xt.postRender(()=>o(c,u))}}}mount(){this.removePointerDownListener=Oc(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const af={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function ij(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const mc={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Re.test(e))e=parseFloat(e);else return e;const s=ij(e,t.target.x),i=ij(e,t.target.y);return`${s}% ${i}%`}},Z9={correct:(e,{treeScale:t,projectionDelta:s})=>{const i=e,o=Li.parse(e);if(o.length>5)return i;const c=Li.createTransformer(e),u=typeof o[0]!="number"?1:0,f=s.x.scale*t.x,h=s.y.scale*t.y;o[0+u]/=f,o[1+u]/=h;const m=Lt(f,h,.5);return typeof o[2+u]=="number"&&(o[2+u]/=m),typeof o[3+u]=="number"&&(o[3+u]/=m),c(o)}};let tg=!1;class J9 extends p.Component{componentDidMount(){const{visualElement:t,layoutGroup:s,switchLayoutGroup:i,layoutId:o}=this.props,{projection:c}=t;wL(eI),c&&(s.group&&s.group.add(c),i&&i.register&&o&&i.register(c),tg&&c.root.didUpdate(),c.addEventListener("animationComplete",()=>{this.safeToRemove()}),c.setOptions({...c.options,onExitComplete:()=>this.safeToRemove()})),af.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:s,visualElement:i,drag:o,isPresent:c}=this.props,{projection:u}=i;return u&&(u.isPresent=c,tg=!0,o||t.layoutDependency!==s||s===void 0||t.isPresent!==c?u.willUpdate():this.safeToRemove(),t.isPresent!==c&&(c?u.promote():u.relegate()||xt.postRender(()=>{const f=u.getStack();(!f||!f.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),I0.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:s,switchLayoutGroup:i}=this.props,{projection:o}=t;tg=!0,o&&(o.scheduleCheckAfterUnmount(),s&&s.group&&s.group.remove(o),i&&i.deregister&&i.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Nk(e){const[t,s]=qC(),i=p.useContext(p0);return a.jsx(J9,{...e,layoutGroup:i,switchLayoutGroup:p.useContext(sk),isPresent:t,safeToRemove:s})}const eI={borderRadius:{...mc,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:mc,borderTopRightRadius:mc,borderBottomLeftRadius:mc,borderBottomRightRadius:mc,boxShadow:Z9};function tI(e,t,s){const i=jn(e)?e:Rs(e);return i.start(K0("",i,t,s)),i.animation}const nI=(e,t)=>e.depth-t.depth;class sI{constructor(){this.children=[],this.isDirty=!1}add(t){x0(this.children,t),this.isDirty=!0}remove(t){y0(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(nI),this.isDirty=!1,this.children.forEach(t)}}function aI(e,t){const s=$n.now(),i=({timestamp:o})=>{const c=o-s;c>=t&&(Vs(i),e(c-t))};return xt.setup(i,!0),()=>Vs(i)}const Sk=["TopLeft","TopRight","BottomLeft","BottomRight"],iI=Sk.length,rj=e=>typeof e=="string"?parseFloat(e):e,oj=e=>typeof e=="number"||Re.test(e);function rI(e,t,s,i,o,c){o?(e.opacity=Lt(0,s.opacity??1,oI(i)),e.opacityExit=Lt(t.opacity??1,0,lI(i))):c&&(e.opacity=Lt(t.opacity??1,s.opacity??1,i));for(let u=0;u<iI;u++){const f=`border${Sk[u]}Radius`;let h=lj(t,f),m=lj(s,f);if(h===void 0&&m===void 0)continue;h||(h=0),m||(m=0),h===0||m===0||oj(h)===oj(m)?(e[f]=Math.max(Lt(rj(h),rj(m),i),0),(sa.test(m)||sa.test(h))&&(e[f]+="%")):e[f]=m}(t.rotate||s.rotate)&&(e.rotate=Lt(t.rotate||0,s.rotate||0,i))}function lj(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const oI=Ck(0,.5,lC),lI=Ck(.5,.95,Bn);function Ck(e,t,s){return i=>i<e?0:i>t?1:s(Xo(e,t,i))}function cj(e,t){e.min=t.min,e.max=t.max}function xs(e,t){cj(e.x,t.x),cj(e.y,t.y)}function dj(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function uj(e,t,s,i,o){return e-=t,e=Sf(e,1/s,i),o!==void 0&&(e=Sf(e,1/o,i)),e}function cI(e,t=0,s=1,i=.5,o,c=e,u=e){if(sa.test(t)&&(t=parseFloat(t),t=Lt(u.min,u.max,t/100)-u.min),typeof t!="number")return;let f=Lt(c.min,c.max,i);e===c&&(f-=t),e.min=uj(e.min,t,s,f,o),e.max=uj(e.max,t,s,f,o)}function fj(e,t,[s,i,o],c,u){cI(e,t[s],t[i],t[o],t.scale,c,u)}const dI=["x","scaleX","originX"],uI=["y","scaleY","originY"];function hj(e,t,s,i){fj(e.x,t,dI,s?s.x:void 0,i?i.x:void 0),fj(e.y,t,uI,s?s.y:void 0,i?i.y:void 0)}function mj(e){return e.translate===0&&e.scale===1}function kk(e){return mj(e.x)&&mj(e.y)}function pj(e,t){return e.min===t.min&&e.max===t.max}function fI(e,t){return pj(e.x,t.x)&&pj(e.y,t.y)}function gj(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Tk(e,t){return gj(e.x,t.x)&&gj(e.y,t.y)}function xj(e){return Mn(e.x)/Mn(e.y)}function yj(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class hI{constructor(){this.members=[]}add(t){x0(this.members,t),t.scheduleRender()}remove(t){if(y0(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const s=this.members[this.members.length-1];s&&this.promote(s)}}relegate(t){const s=this.members.findIndex(o=>t===o);if(s===0)return!1;let i;for(let o=s;o>=0;o--){const c=this.members[o];if(c.isPresent!==!1){i=c;break}}return i?(this.promote(i),!0):!1}promote(t,s){const i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,s&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:s,resumingFrom:i}=t;s.onExitComplete&&s.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function mI(e,t,s){let i="";const o=e.x.translate/t.x,c=e.y.translate/t.y,u=s?.z||0;if((o||c||u)&&(i=`translate3d(${o}px, ${c}px, ${u}px) `),(t.x!==1||t.y!==1)&&(i+=`scale(${1/t.x}, ${1/t.y}) `),s){const{transformPerspective:m,rotate:x,rotateX:y,rotateY:b,skewX:w,skewY:C}=s;m&&(i=`perspective(${m}px) ${i}`),x&&(i+=`rotate(${x}deg) `),y&&(i+=`rotateX(${y}deg) `),b&&(i+=`rotateY(${b}deg) `),w&&(i+=`skewX(${w}deg) `),C&&(i+=`skewY(${C}deg) `)}const f=e.x.scale*t.x,h=e.y.scale*t.y;return(f!==1||h!==1)&&(i+=`scale(${f}, ${h})`),i||"none"}const ng=["","X","Y","Z"],pI=1e3;let gI=0;function sg(e,t,s,i){const{latestValues:o}=t;o[e]&&(s[e]=o[e],t.setStaticValue(e,0),i&&(i[e]=0))}function Ek(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const s=hk(t);if(window.MotionHasOptimisedAnimation(s,"transform")){const{layout:o,layoutId:c}=e.options;window.MotionCancelOptimisedAnimation(s,"transform",xt,!(o||c))}const{parent:i}=e;i&&!i.hasCheckedOptimisedAppear&&Ek(i)}function Mk({attachResizeListener:e,defaultParent:t,measureScroll:s,checkIsScrollRoot:i,resetTransform:o}){return class{constructor(u={},f=t?.()){this.id=gI++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(vI),this.nodes.forEach(NI),this.nodes.forEach(SI),this.nodes.forEach(bI)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=u,this.root=f?f.root||f:this,this.path=f?[...f.path,f]:[],this.parent=f,this.depth=f?f.depth+1:0;for(let h=0;h<this.path.length;h++)this.path[h].shouldResetTransform=!0;this.root===this&&(this.nodes=new sI)}addEventListener(u,f){return this.eventHandlers.has(u)||this.eventHandlers.set(u,new b0),this.eventHandlers.get(u).add(f)}notifyListeners(u,...f){const h=this.eventHandlers.get(u);h&&h.notify(...f)}hasListeners(u){return this.eventHandlers.has(u)}mount(u){if(this.instance)return;this.isSVG=$0(u)&&!iL(u),this.instance=u;const{layoutId:f,layout:h,visualElement:m}=this.options;if(m&&!m.current&&m.mount(u),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(h||f)&&(this.isLayoutDirty=!0),e){let x,y=0;const b=()=>this.root.updateBlockedByResize=!1;xt.read(()=>{y=window.innerWidth}),e(u,()=>{const w=window.innerWidth;w!==y&&(y=w,this.root.updateBlockedByResize=!0,x&&x(),x=aI(b,250),af.hasAnimatedSinceResize&&(af.hasAnimatedSinceResize=!1,this.nodes.forEach(wj)))})}f&&this.root.registerSharedNode(f,this),this.options.animate!==!1&&m&&(f||h)&&this.addEventListener("didUpdate",({delta:x,hasLayoutChanged:y,hasRelativeLayoutChanged:b,layout:w})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const C=this.options.transition||m.getDefaultTransition()||MI,{onLayoutAnimationStart:j,onLayoutAnimationComplete:S}=m.getProps(),T=!this.targetLayout||!Tk(this.targetLayout,w),M=!y&&b;if(this.options.layoutRoot||this.resumeFrom||M||y&&(T||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const k={...P0(C,"layout"),onPlay:j,onComplete:S};(m.shouldReduceMotion||this.options.layoutRoot)&&(k.delay=0,k.type=!1),this.startAnimation(k),this.setAnimationOrigin(x,M)}else y||wj(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=w})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const u=this.getStack();u&&u.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Vs(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(CI),this.animationId++)}getTransformTemplate(){const{visualElement:u}=this.options;return u&&u.getProps().transformTemplate}willUpdate(u=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Ek(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let x=0;x<this.path.length;x++){const y=this.path[x];y.shouldResetTransform=!0,y.updateScroll("snapshot"),y.options.layoutRoot&&y.willUpdate(!1)}const{layoutId:f,layout:h}=this.options;if(f===void 0&&!h)return;const m=this.getTransformTemplate();this.prevTransformTemplateValue=m?m(this.latestValues,""):void 0,this.updateSnapshot(),u&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(vj);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(bj);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(jI),this.nodes.forEach(xI),this.nodes.forEach(yI)):this.nodes.forEach(bj),this.clearAllSnapshots();const f=$n.now();cn.delta=oa(0,1e3/60,f-cn.timestamp),cn.timestamp=f,cn.isProcessing=!0,qp.update.process(cn),qp.preRender.process(cn),qp.render.process(cn),cn.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,I0.read(this.scheduleUpdate))}
vendor: 6,064 bytes, line 17
17clearAllSnapshots(){this.nodes.forEach(wI),this.sharedNodes.forEach(kI)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,xt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){xt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Mn(this.snapshot.measuredBox.x)&&!Mn(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let h=0;h<this.path.length;h++)this.path[h].updateScroll();const u=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Wt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:f}=this.options;f&&f.notify("LayoutMeasure",this.layout.layoutBox,u?u.layoutBox:void 0)}updateScroll(u="measure"){let f=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===u&&(f=!1),f&&this.instance){const h=i(this.instance);this.scroll={animationId:this.root.animationId,phase:u,isRoot:h,offset:s(this.instance),wasRoot:this.scroll?this.scroll.isRoot:h}}}resetTransform(){if(!o)return;const u=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,f=this.projectionDelta&&!kk(this.projectionDelta),h=this.getTransformTemplate(),m=h?h(this.latestValues,""):void 0,x=m!==this.prevTransformTemplateValue;u&&this.instance&&(f||xr(this.latestValues)||x)&&(o(this.instance,m),this.shouldResetTransform=!1,this.scheduleRender())}measure(u=!0){const f=this.measurePageBox();let h=this.removeElementScroll(f);return u&&(h=this.removeTransform(h)),AI(h),{animationId:this.root.animationId,measuredBox:f,layoutBox:h,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:u}=this.options;if(!u)return Wt();const f=u.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(DI))){const{scroll:m}=this.root;m&&(_o(f.x,m.offset.x),_o(f.y,m.offset.y))}return f}removeElementScroll(u){const f=Wt();if(xs(f,u),this.scroll?.wasRoot)return f;for(let h=0;h<this.path.length;h++){const m=this.path[h],{scroll:x,options:y}=m;m!==this.root&&x&&y.layoutScroll&&(x.wasRoot&&xs(f,u),_o(f.x,x.offset.x),_o(f.y,x.offset.y))}return f}applyTransform(u,f=!1){const h=Wt();xs(h,u);for(let m=0;m<this.path.length;m++){const x=this.path[m];!f&&x.options.layoutScroll&&x.scroll&&x!==x.root&&Po(h,{x:-x.scroll.offset.x,y:-x.scroll.offset.y}),xr(x.latestValues)&&Po(h,x.latestValues)}return xr(this.latestValues)&&Po(h,this.latestValues),h}removeTransform(u){const f=Wt();xs(f,u);for(let h=0;h<this.path.length;h++){const m=this.path[h];if(!m.instance||!xr(m.latestValues))continue;lx(m.latestValues)&&m.updateSnapshot();const x=Wt(),y=m.measurePageBox();xs(x,y),hj(f,m.latestValues,m.snapshot?m.snapshot.layoutBox:void 0,x)}return xr(this.latestValues)&&hj(f,this.latestValues),f}setTargetDelta(u){this.targetDelta=u,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(u){this.options={...this.options,...u,crossfade:u.crossfade!==void 0?u.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==cn.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(u=!1){const f=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=f.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=f.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=f.isSharedProjectionDirty);const h=!!this.resumingFrom||this!==f;if(!(u||h&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:x,layoutId:y}=this.options;if(!(!this.layout||!(x||y))){if(this.resolvedRelativeTargetAt=cn.timestamp,!this.targetDelta&&!this.relativeTarget){const b=this.getClosestProjectingParent();b&&b.layout&&this.animationProgress!==1?(this.relativeParent=b,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Wt(),this.relativeTargetOrigin=Wt(),_c(this.relativeTargetOrigin,this.layout.layoutBox,b.layout.layoutBox),xs(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Wt(),this.targetWithTransforms=Wt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),L9(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):xs(this.target,this.layout.layoutBox),ok(this.target,this.targetDelta)):xs(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const b=this.getClosestProjectingParent();b&&!!b.resumingFrom==!!this.resumingFrom&&!b.options.layoutScroll&&b.target&&this.animationProgress!==1?(this.relativeParent=b,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Wt(),this.relativeTargetOrigin=Wt(),_c(this.relativeTargetOrigin,this.target,b.target),xs(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||lx(this.parent.latestValues)||rk(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){const u=this.getLead(),f=!!this.resumingFrom||this!==u;let h=!0;
vendor: 9,323 bytes, line 17
17if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(h=!1),f&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(h=!1),this.resolvedRelativeTargetAt===cn.timestamp&&(h=!1),h)return;const{layout:m,layoutId:x}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(m||x))return;xs(this.layoutCorrected,this.layout.layoutBox);const y=this.treeScale.x,b=this.treeScale.y;KL(this.layoutCorrected,this.treeScale,this.path,f),u.layout&&!u.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(u.target=u.layout.layoutBox,u.targetWithTransforms=Wt());const{target:w}=u;if(!w){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(dj(this.prevProjectionDelta.x,this.projectionDelta.x),dj(this.prevProjectionDelta.y,this.projectionDelta.y)),Rc(this.projectionDelta,this.layoutCorrected,w,this.latestValues),(this.treeScale.x!==y||this.treeScale.y!==b||!yj(this.projectionDelta.x,this.prevProjectionDelta.x)||!yj(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",w))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(u=!0){if(this.options.visualElement?.scheduleRender(),u){const f=this.getStack();f&&f.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=zo(),this.projectionDelta=zo(),this.projectionDeltaWithTransform=zo()}setAnimationOrigin(u,f=!1){const h=this.snapshot,m=h?h.latestValues:{},x={...this.latestValues},y=zo();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!f;const b=Wt(),w=h?h.source:void 0,C=this.layout?this.layout.source:void 0,j=w!==C,S=this.getStack(),T=!S||S.members.length<=1,M=!!(j&&!T&&this.options.crossfade===!0&&!this.path.some(EI));this.animationProgress=0;let k;this.mixTargetDelta=R=>{const D=R/1e3;jj(y.x,u.x,D),jj(y.y,u.y,D),this.setTargetDelta(y),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(_c(b,this.layout.layoutBox,this.relativeParent.layout.layoutBox),TI(this.relativeTarget,this.relativeTargetOrigin,b,D),k&&fI(this.relativeTarget,k)&&(this.isProjectionDirty=!1),k||(k=Wt()),xs(k,this.relativeTarget)),j&&(this.animationValues=x,rI(x,m,this.latestValues,D,M,T)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=D},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(u){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Vs(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=xt.update(()=>{af.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Rs(0)),this.currentAnimation=tI(this.motionValue,[0,1e3],{...u,velocity:0,isSync:!0,onUpdate:f=>{this.mixTargetDelta(f),u.onUpdate&&u.onUpdate(f)},onStop:()=>{},onComplete:()=>{u.onComplete&&u.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const u=this.getStack();u&&u.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(pI),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const u=this.getLead();let{targetWithTransforms:f,target:h,layout:m,latestValues:x}=u;if(!(!f||!h||!m)){if(this!==u&&this.layout&&m&&Ak(this.options.animationType,this.layout.layoutBox,m.layoutBox)){h=this.target||Wt();const y=Mn(this.layout.layoutBox.x);h.x.min=u.target.x.min,h.x.max=h.x.min+y;const b=Mn(this.layout.layoutBox.y);h.y.min=u.target.y.min,h.y.max=h.y.min+b}xs(f,h),Po(f,x),Rc(this.projectionDeltaWithTransform,this.layoutCorrected,f,x)}}registerSharedNode(u,f){this.sharedNodes.has(u)||this.sharedNodes.set(u,new hI),this.sharedNodes.get(u).add(f);const m=f.options.initialPromotionConfig;f.promote({transition:m?m.transition:void 0,preserveFollowOpacity:m&&m.shouldPreserveFollowOpacity?m.shouldPreserveFollowOpacity(f):void 0})}isLead(){const u=this.getStack();return u?u.lead===this:!0}getLead(){const{layoutId:u}=this.options;return u?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:u}=this.options;return u?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:u}=this.options;if(u)return this.root.sharedNodes.get(u)}promote({needsReset:u,transition:f,preserveFollowOpacity:h}={}){const m=this.getStack();m&&m.promote(this,h),u&&(this.projectionDelta=void 0,this.needsReset=!0),f&&this.setOptions({transition:f})}relegate(){const u=this.getStack();return u?u.relegate(this):!1}resetSkewAndRotation(){const{visualElement:u}=this.options;if(!u)return;let f=!1;const{latestValues:h}=u;if((h.z||h.rotate||h.rotateX||h.rotateY||h.rotateZ||h.skewX||h.skewY)&&(f=!0),!f)return;const m={};h.z&&sg("z",u,m,this.animationValues);for(let x=0;x<ng.length;x++)sg(`rotate${ng[x]}`,u,m,this.animationValues),sg(`skew${ng[x]}`,u,m,this.animationValues);u.render();for(const x in m)u.setStaticValue(x,m[x]),this.animationValues&&(this.animationValues[x]=m[x]);u.scheduleRender()}applyProjectionStyles(u,f){if(!this.instance||this.isSVG)return;if(!this.isVisible){u.visibility="hidden";return}const h=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,u.visibility="",u.opacity="",u.pointerEvents=sf(f?.pointerEvents)||"",u.transform=h?h(this.latestValues,""):"none";return}const m=this.getLead();if(!this.projectionDelta||!this.layout||!m.target){this.options.layoutId&&(u.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,u.pointerEvents=sf(f?.pointerEvents)||""),this.hasProjected&&!xr(this.latestValues)&&(u.transform=h?h({},""):"none",this.hasProjected=!1);return}u.visibility="";const x=m.animationValues||m.latestValues;this.applyTransformsToTarget();let y=mI(this.projectionDeltaWithTransform,this.treeScale,x);h&&(y=h(x,y)),u.transform=y;const{x:b,y:w}=this.projectionDelta;u.transformOrigin=`${b.origin*100}% ${w.origin*100}% 0`,m.animationValues?u.opacity=m===this?x.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:x.opacityExit:u.opacity=m===this?x.opacity!==void 0?x.opacity:"":x.opacityExit!==void 0?x.opacityExit:0;for(const C in Yc){if(x[C]===void 0)continue;const{correct:j,applyTo:S,isCSSVariable:T}=Yc[C],M=y==="none"?x[C]:j(x[C],m);if(S){const k=S.length;for(let R=0;R<k;R++)u[S[R]]=M}else T?this.options.visualElement.renderState.vars[C]=M:u[C]=M}this.options.layoutId&&(u.pointerEvents=m===this?sf(f?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(u=>u.currentAnimation?.stop()),this.root.nodes.forEach(vj),this.root.sharedNodes.clear()}}}function xI(e){e.updateLayout()}function yI(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:i}=e.layout,{animationType:o}=e.options,c=t.source!==e.layout.source;o==="size"?vs(x=>{const y=c?t.measuredBox[x]:t.layoutBox[x],b=Mn(y);y.min=s[x].min,y.max=y.min+b}):Ak(o,t.layoutBox,s)&&vs(x=>{const y=c?t.measuredBox[x]:t.layoutBox[x],b=Mn(s[x]);y.max=y.min+b,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[x].max=e.relativeTarget[x].min+b)});const u=zo();Rc(u,s,t.layoutBox);const f=zo();c?Rc(f,e.applyTransform(i,!0),t.measuredBox):Rc(f,s,t.layoutBox);const h=!kk(u);let m=!1;if(!e.resumeFrom){const x=e.getClosestProjectingParent();if(x&&!x.resumeFrom){const{snapshot:y,layout:b}=x;if(y&&b){const w=Wt();_c(w,t.layoutBox,y.layoutBox);const C=Wt();_c(C,s,b.layoutBox),Tk(w,C)||(m=!0),x.options.layoutRoot&&(e.relativeTarget=C,e.relativeTargetOrigin=w,e.relativeParent=x)}}}e.notifyListeners("didUpdate",{layout:s,snapshot:t,delta:f,layoutDelta:u,hasLayoutChanged:h,hasRelativeLayoutChanged:m})}else if(e.isLead()){const{onExitComplete:s}=e.options;s&&s()}e.options.transition=void 0}function vI(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function bI(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function wI(e){e.clearSnapshot()}function vj(e){e.clearMeasurements()}function bj(e){e.isLayoutDirty=!1}function jI(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function wj(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function NI(e){e.resolveTargetDelta()}function SI(e){e.calcProjection()}
17function CI(e){e.resetSkewAndRotation()}function kI(e){e.removeLeadSnapshot()}function jj(e,t,s){e.translate=Lt(t.translate,0,s),e.scale=Lt(t.scale,1,s),e.origin=t.origin,e.originPoint=t.originPoint}function Nj(e,t,s,i){e.min=Lt(t.min,s.min,i),e.max=Lt(t.max,s.max,i)}function TI(e,t,s,i){Nj(e.x,t.x,s.x,i),Nj(e.y,t.y,s.y,i)}function EI(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const MI={duration:.45,ease:[.4,0,.1,1]},Sj=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Cj=Sj("applewebkit/")&&!Sj("chrome/")?Math.round:Bn;function kj(e){e.min=Cj(e.min),e.max=Cj(e.max)}function AI(e){kj(e.x),kj(e.y)}function Ak(e,t,s){return e==="position"||e==="preserve-aspect"&&!z9(xj(t),xj(s),.2)}function DI(e){return e!==e.root&&e.scroll?.wasRoot}const OI=Mk({attachResizeListener:(e,t)=>Kc(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ag={current:void 0},Dk=Mk({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!ag.current){const e=new OI({});e.mount(window),e.setOptions({layoutScroll:!0}),ag.current=e}return ag.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),RI={pan:{Feature:X9},drag:{Feature:Q9,ProjectionNode:Dk,MeasureLayout:Nk}};function Tj(e,t,s){const{props:i}=e;e.animationState&&i.whileHover&&e.animationState.setActive("whileHover",s==="Start");const o="onHover"+s,c=i[o];c&&xt.postRender(()=>c(t,ld(t)))}class _I extends qi{mount(){const{current:t}=this.node;t&&(this.unmount=q7(t,(s,i)=>(Tj(this.node,i,"Start"),o=>Tj(this.node,o,"End"))))}unmount(){}}class PI extends qi{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=id(Kc(this.node.current,"focus",()=>this.onFocus()),Kc(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Ej(e,t,s){const{props:i}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&i.whileTap&&e.animationState.setActive("whileTap",s==="Start");const o="onTap"+(s==="End"?"":s),c=i[o];c&&xt.postRender(()=>c(t,ld(t)))}class zI extends qi{mount(){const{current:t}=this.node;t&&(this.unmount=K7(t,(s,i)=>(Ej(this.node,i,"Start"),(o,{success:c})=>Ej(this.node,o,c?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const px=new WeakMap,ig=new WeakMap,LI=e=>{const t=px.get(e.target);t&&t(e)},II=e=>{e.forEach(LI)};function VI({root:e,...t}){const s=e||document;ig.has(s)||ig.set(s,{});const i=ig.get(s),o=JSON.stringify(t);return i[o]||(i[o]=new IntersectionObserver(II,{root:e,...t})),i[o]}function $I(e,t,s){const i=VI(t);return px.set(e,s),i.observe(e),()=>{px.delete(e),i.unobserve(e)}}const BI={some:0,all:1};class FI extends qi{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:s,margin:i,amount:o="some",once:c}=t,u={root:s?s.current:void 0,rootMargin:i,threshold:typeof o=="number"?o:BI[o]},f=h=>{const{isIntersecting:m}=h;if(this.isInView===m||(this.isInView=m,c&&!m&&this.hasEnteredView))return;m&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",m);const{onViewportEnter:x,onViewportLeave:y}=this.node.getProps(),b=m?x:y;b&&b(h)};return $I(this.node.current,u,f)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:s}=this.node;["amount","margin","root"].some(HI(t,s))&&this.startObserver()}unmount(){}}function HI({viewport:e={}},{viewport:t={}}={}){return s=>e[s]!==t[s]}const UI={inView:{Feature:FI},tap:{Feature:zI},focus:{Feature:PI},hover:{Feature:_I}},qI={layout:{ProjectionNode:Dk,MeasureLayout:Nk}},WI={...A9,...UI,...RI,...qI},le=WL(WI,i9),GI=50,Mj=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),YI=()=>({time:0,x:Mj(),y:Mj()}),KI={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function Aj(e,t,s,i){const o=s[t],{length:c,position:u}=KI[t],f=o.current,h=s.time;o.current=e[`scroll${u}`],o.scrollLength=e[`scroll${c}`]-e[`client${c}`],o.offset.length=0,o.offset[0]=0,o.offset[1]=o.scrollLength,o.progress=Xo(0,o.scrollLength,o.current);const m=i-h;o.velocity=m>GI?0:w0(o.current-f,m)}function QI(e,t,s){Aj(e,"x",t,s),Aj(e,"y",t,s),t.time=s}function XI(e,t){const s={x:0,y:0};let i=e;for(;i&&i!==t;)if(L0(i))s.x+=i.offsetLeft,s.y+=i.offsetTop,i=i.offsetParent;else if(i.tagName==="svg"){const o=i.getBoundingClientRect();i=i.parentElement;const c=i.getBoundingClientRect();s.x+=o.left-c.left,s.y+=o.top-c.top}else if(i instanceof SVGGraphicsElement){const{x:o,y:c}=i.getBBox();s.x+=o,s.y+=c;let u=null,f=i.parentNode;for(;!u;)f.tagName==="svg"&&(u=f),f=i.parentNode;i=u}else break;return s}const gx={start:0,center:.5,end:1};function Dj(e,t,s=0){let i=0;if(e in gx&&(e=gx[e]),typeof e=="string"){const o=parseFloat(e);e.endsWith("px")?i=o:e.endsWith("%")?e=o/100:e.endsWith("vw")?i=o/100*document.documentElement.clientWidth:e.endsWith("vh")?i=o/100*document.documentElement.clientHeight:e=o}return typeof e=="number"&&(i=t*e),s+i}const ZI=[0,0];function JI(e,t,s,i){let o=Array.isArray(e)?e:ZI,c=0,u=0;return typeof e=="number"?o=[e,e]:typeof e=="string"&&(e=e.trim(),e.includes(" ")?o=e.split(" "):o=[e,gx[e]?e:"0"]),c=Dj(o[0],s,i),u=Dj(o[1],t),c-u}const eV={All:[[0,0],[1,1]]},tV={x:0,y:0};function nV(e){return"getBBox"in e&&e.tagName!=="svg"?e.getBBox():{width:e.clientWidth,height:e.clientHeight}}function sV(e,t,s){const{offset:i=eV.All}=s,{target:o=e,axis:c="y"}=s,u=c==="y"?"height":"width",f=o!==e?XI(o,e):tV,h=o===e?{width:e.scrollWidth,height:e.scrollHeight}:nV(o),m={width:e.clientWidth,height:e.clientHeight};t[c].offset.length=0;let x=!t[c].interpolate;const y=i.length;for(let b=0;b<y;b++){const w=JI(i[b],m[u],h[u],f[c]);
17!x&&w!==t[c].interpolatorOffsets[b]&&(x=!0),t[c].offset[b]=w}x&&(t[c].interpolate=A0(t[c].offset,NC(i),{clamp:!1}),t[c].interpolatorOffsets=[...t[c].offset]),t[c].progress=oa(0,1,t[c].interpolate(t[c].current))}function aV(e,t=e,s){if(s.x.targetOffset=0,s.y.targetOffset=0,t!==e){let i=t;for(;i&&i!==e;)s.x.targetOffset+=i.offsetLeft,s.y.targetOffset+=i.offsetTop,i=i.offsetParent}s.x.targetLength=t===e?t.scrollWidth:t.clientWidth,s.y.targetLength=t===e?t.scrollHeight:t.clientHeight,s.x.containerLength=e.clientWidth,s.y.containerLength=e.clientHeight}function iV(e,t,s,i={}){return{measure:o=>{aV(e,i.target,s),QI(e,s,o),(i.offset||i.target)&&sV(e,s,i)},notify:()=>t(s)}}const pc=new WeakMap,Oj=new WeakMap,rg=new WeakMap,Rj=e=>e===document.scrollingElement?window:e;function Ok(e,{container:t=document.scrollingElement,...s}={}){if(!t)return Bn;let i=rg.get(t);i||(i=new Set,rg.set(t,i));const o=YI(),c=iV(t,e,o,s);if(i.add(c),!pc.has(t)){const f=()=>{for(const y of i)y.measure(cn.timestamp);xt.preUpdate(h)},h=()=>{for(const y of i)y.notify()},m=()=>xt.read(f);pc.set(t,m);const x=Rj(t);window.addEventListener("resize",m,{passive:!0}),t!==document.documentElement&&Oj.set(t,aL(t,m)),x.addEventListener("scroll",m,{passive:!0}),m()}const u=pc.get(t);return xt.read(u,!1,!0),()=>{Vs(u);const f=rg.get(t);if(!f||(f.delete(c),f.size))return;const h=pc.get(t);pc.delete(t),h&&(Rj(t).removeEventListener("scroll",h),Oj.get(t)?.(),window.removeEventListener("resize",h))}}const _j=new Map;function rV(e){const t={value:0},s=Ok(i=>{t.value=i[e.axis].progress*100},e);return{currentTime:t,cancel:s}}function Rk({source:e,container:t,...s}){const{axis:i}=s;e&&(t=e);const o=_j.get(t)??new Map;_j.set(t,o);const c=s.target??"self",u=o.get(c)??{},f=i+(s.offset??[]).join(",");return u[f]||(u[f]=!s.target&&TC()?new ScrollTimeline({source:t,axis:i}):rV({container:t,...s})),u[f]}function oV(e,t){const s=Rk(t);return e.attachTimeline({timeline:t.target?void 0:s,observe:i=>(i.pause(),UC(o=>{i.time=i.iterationDuration*o},s))})}function lV(e){return e.length===2}function cV(e,t){return lV(e)?Ok(s=>{e(s[t.axis].progress,s)},t):UC(e,Rk(t))}function dV(e,{axis:t="y",container:s=document.scrollingElement,...i}={}){if(!s)return Bn;const o={axis:t,container:s,...i};return typeof e=="function"?cV(e,o):oV(e,o)}const uV=()=>({scrollX:Rs(0),scrollY:Rs(0),scrollXProgress:Rs(0),scrollYProgress:Rs(0)}),Bu=e=>e?!e.current:!1;function fV({container:e,target:t,...s}={}){const i=ul(uV),o=p.useRef(null),c=p.useRef(!1),u=p.useCallback(()=>(o.current=dV((f,{x:h,y:m})=>{i.scrollX.set(h.current),i.scrollXProgress.set(h.progress),i.scrollY.set(m.current),i.scrollYProgress.set(m.progress)},{...s,container:e?.current||void 0,target:t?.current||void 0}),()=>{o.current?.()}),[e,t,JSON.stringify(s.offset)]);return Wf(()=>{if(c.current=!1,Bu(e)||Bu(t)){c.current=!0;return}else return u()},[u]),p.useEffect(()=>{if(c.current)return Uc(!Bu(e)),Uc(!Bu(t)),u()},[u]),i}function hV(e){const t=ul(()=>Rs(e)),{isStatic:s}=p.useContext(Yf);if(s){const[,i]=p.useState(e);p.useEffect(()=>t.on("change",i),[])}return t}function _k(e,t){const s=hV(t()),i=()=>s.set(t());return i(),Wf(()=>{const o=()=>xt.preRender(i,!1,!0),c=e.map(u=>u.on("change",o));return()=>{c.forEach(u=>u()),Vs(i)}}),s}function mV(e){Dc.current=[],e();const t=_k(Dc.current,e);return Dc.current=void 0,t}function og(e,t,s,i){if(typeof e=="function")return mV(e);const o=typeof t=="function"?t:rL(t,s,i);return Array.isArray(e)?Pj(e,o):Pj([e],([c])=>o(c))}function Pj(e,t){const s=ul(()=>[]);return _k(e,()=>{s.length=0;const i=e.length;for(let o=0;o<i;o++)s[o]=e[o].get();return t(s)})}const pV={"@context":"https://schema.org","@graph":[{"@type":"LocalBusiness","@id":"https://domovita.ai/#business",name:"DomoVita.AI",description:"AI-native smart home management platform for luxury estates in Sonoma County, California. Intelligent control of lighting, climate, security, and concierge services for wine country living.",url:"https://domovita.ai",logo:"https://domovita.ai/domovita-mark.svg",image:"https://domovita.ai/opengraph.png",telephone:"",address:{"@type":"PostalAddress",addressLocality:"Sonoma",addressRegion:"CA",addressCountry:"US"},areaServed:[{"@type":"County",name:"Sonoma County",addressRegion:"CA"},{"@type":"County",name:"Napa County",addressRegion:"CA"},{"@type":"State",name:"California"}],sameAs:["https://domovita.ai"],priceRange:"$$$$$"},{"@type":"Product",name:"DomoVita.AI Platform",description:"An AI-native luxury residence management platform that unifies smart home control, concierge services, and enterprise-grade security for high-end estates in California wine country.",brand:{"@type":"Brand",name:"DomoVita.AI"},url:"https://domovita.ai",category:"Smart Home Management Software"}]},gV=[{icon:Wx,title:"AI-Native Intelligence",body:"A natural language concierge that understands your household, anticipates needs, and executes commands across every system in the estate instantly."},{icon:Hi,title:"Total Home Control",body:"Lighting, climate, shades, audio, security â unified under one beautifully designed interface. Works with any hardware the estate was built with."},{icon:_i,title:"Enterprise-Grade Security",body:"Real-time risk scoring, anomaly detection, and per-device vulnerability monitoring â the level of oversight ultra-high-net-worth households demand."},{icon:hf,title:"White-Glove Service",body:"Transportation, concierge bookings, guest access, and home management â all from the same surface residents already use to control the
17ir home."}],xV=["Designed for estates starting at $5M","Compatible with Savant, Lutron, Control4 & more","Zero-compromise privacy architecture","Deployed by invitation only"];function yV({onDismiss:e}){return a.jsxs("div",{className:"fixed top-0 left-0 right-0 z-[60] h-10 bg-[#0a0a0a] border-b border-white/[0.07] flex items-center justify-center px-10",children:[a.jsxs("p",{className:"text-[10px] md:text-[11px] tracking-[0.22em] uppercase text-white/60 font-['Montserrat',sans-serif] select-none",children:[a.jsx("span",{className:"text-[#c9a84c] font-medium",children:"We are expanding our Seed Round â"}),a.jsx("span",{className:"text-white/70 font-light",children:" early investors are already committed."})," ",a.jsxs("a",{href:"/pitchdeck",target:"_blank",rel:"noopener noreferrer",className:"text-white/50 hover:text-[#c9a84c] transition-colors duration-200 inline-flex items-center gap-1 group","data-testid":"link-seed-round-learn-more",children:["Learn more",a.jsx("span",{className:"group-hover:translate-x-0.5 transition-transform duration-200 inline-block",children:"â"})]})]}),a.jsx("button",{onClick:e,"aria-label":"Dismiss announcement",className:"absolute right-4 text-white/30 hover:text-white/70 transition-colors duration-200 text-base leading-none","data-testid":"button-seed-round-dismiss",children:"Ã"})]})}function vV(){const[,e]=ns(),[t,s]=p.useState(""),[i,o]=p.useState(""),[c,u]=p.useState(!1),[f,h]=p.useState(!1),[m,x]=p.useState(!1),[y,b]=p.useState(!0),w=p.useRef(null),{scrollY:C}=fV(),j=og(C,[0,600],[1,0]),S=og(C,[0,600],[1,1.08]),T=og(C,[0,400],[0,-80]);p.useEffect(()=>{const k=()=>x(window.scrollY>40);return window.addEventListener("scroll",k,{passive:!0}),()=>window.removeEventListener("scroll",k)},[]);const M=async k=>{if(k.preventDefault(),!!t){h(!0);try{await fetch("/api/landing/request-access",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:i,email:t})})}catch{}h(!1),u(!0)}};return a.jsxs("div",{className:"bg-[#07090f] text-white min-h-screen font-['Montserrat',sans-serif] overflow-x-hidden",children:[a.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(pV)}}),a.jsx(gn,{children:y&&a.jsx(le.div,{initial:{opacity:1,height:"2.5rem"},exit:{opacity:0,height:0},transition:{duration:.35,ease:"easeInOut"},className:"overflow-hidden",children:a.jsx(yV,{onDismiss:()=>b(!1)})},"seed-banner")}),a.jsx(le.nav,{className:`fixed left-0 right-0 z-50 transition-all duration-500 ${m?"bg-[#07090f]/90 backdrop-blur-md border-b border-white/[0.06]":""}`,style:{top:y?"2.5rem":"0"},initial:{opacity:0,y:-16},animate:{opacity:1,y:0},transition:{duration:.8,delay:.2},children:a.jsxs("div",{className:"max-w-7xl mx-auto px-6 md:px-10 h-16 md:h-20 flex items-center justify-between",children:[a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx("img",{src:"/domovita-mark.svg",alt:"DomoVita",className:"h-9 md:h-10"}),a.jsxs("span",{className:"font-['Cormorant_Garamond',serif] text-lg md:text-xl font-light tracking-widest text-white/90",children:["DomoVita",a.jsx("span",{className:"text-[#c9a84c]",children:".ai"})]})]}),a.jsx("button",{onClick:()=>e("/login"),className:"text-[11px] tracking-[0.2em] uppercase text-white/70 hover:text-white transition-colors border border-white/20 hover:border-white/40 px-4 py-2 rounded","data-testid":"link-resident-login",children:"Resident Login"})]})}),a.jsxs("div",{ref:w,className:"relative h-screen min-h-[700px] flex items-center justify-center overflow-hidden",children:[a.jsxs(le.div,{className:"absolute inset-0",style:{scale:S,opacity:j},children:[a.jsx("img",{src:"/hero.jpeg",alt:"",className:"w-full h-full object-cover object-center"}),a.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-[#07090f]/50 via-[#07090f]/30 to-[#07090f]"}),a.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-[#07090f]/40 via-transparent to-[#07090f]/20"})]}),a.jsxs(le.div,{className:"relative z-10 text-center px-6 max-w-4xl mx-auto",style:{y:T},children:[a.jsx(le.p,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.8,delay:.6},className:"text-[#c9a84c] text-[10px] md:text-xs tracking-[0.5em] uppercase mb-6 font-medium",children:"Private Residences · By Invitation Only"}),a.jsxs(le.h1,{initial:{opacity:0,y:30}
17,animate:{opacity:1,y:0},transition:{duration:1,delay:.8},className:"font-['Cormorant_Garamond',serif] text-5xl md:text-7xl lg:text-8xl font-light leading-[1.05] tracking-wide mb-6",children:["The Operating System",a.jsx("br",{}),a.jsx("span",{className:"italic text-white/80",children:"for Luxury Living"})]}),a.jsx(le.p,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.8,delay:1.1},className:"text-white/80 text-base md:text-lg max-w-xl mx-auto leading-relaxed mb-10 font-light",children:"An AI-native residence platform that unifies every system in your estate â intelligently, beautifully, and without compromise."}),a.jsx(le.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:.6,delay:1.3},className:"flex flex-col sm:flex-row items-center justify-center gap-4",children:a.jsxs("a",{href:"#access",className:"group bg-[#c9a84c]/10 hover:bg-[#c9a84c]/20 border border-[#c9a84c]/30 hover:border-[#c9a84c]/60 text-[#c9a84c] px-8 py-3.5 rounded text-xs tracking-[0.25em] uppercase font-medium transition-all duration-300 flex items-center gap-2","data-testid":"link-request-access-hero",children:["Request Private Access",a.jsx(Zs,{className:"w-3.5 h-3.5 group-hover:translate-x-0.5 transition-transform"})]})})]}),a.jsxs(le.div,{className:"absolute bottom-10 left-1/2 -translate-x-1/2 flex flex-col items-center gap-2",initial:{opacity:0}
17,animate:{opacity:1},transition:{duration:.6,delay:1.8},children:[a.jsx("span",{className:"text-white/20 text-[9px] tracking-[0.3em] uppercase",children:"Discover"}),a.jsx(le.div,{animate:{y:[0,5,0]},transition:{duration:2,repeat:1/0,ease:"easeInOut"},children:a.jsx(MD,{className:"w-4 h-4 text-white/20"})})]})]}),a.jsx("section",{className:"py-24 md:py-32 px-6",children:a.jsx("div",{className:"max-w-3xl mx-auto text-center",children:a.jsxs(le.div,{initial:{opacity:0,y:24},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-80px"},transition:{duration:.9},children:[a.jsx("div",{className:"w-px h-12 bg-gradient-to-b from-transparent via-[#c9a84c]/40 to-transparent mx-auto mb-10"}),a.jsx("p",{className:"font-['Cormorant_Garamond',serif] text-2xl md:text-3xl lg:text-4xl font-light leading-relaxed text-white/85 mb-8",children:'"Where legacy systems give homeowners a complicated remote control, DomoVita gives them an intelligent partner."'}),a.jsx("div",{className:"w-16 h-px bg-gradient-to-r from-transparent via-[#c9a84c]/40 to-transparent mx-auto mt-8"})]})})}),a.jsx("section",{className:"px-6 md:px-10 pb-6",children:a.jsx("div",{className:"max-w-7xl mx-auto grid grid-cols-3 gap-2 md:gap-3 h-[260px] md:h-[360px]",children:["/estate1.jpeg","/estate2.jpeg","/estate3.jpeg"].map((k,R)=>a.jsxs(le.div,{className:"relative overflow-hidden rounded-sm",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-60px"},transition:{duration:.8,delay:R*.12},children:[a.jsx("img",{src:k,alt:"",className:"w-full h-full object-cover object-center scale-[1.02] hover:scale-[1.06] transition-transform duration-700"}),a.jsx("div",{className:"absolute inset-0 bg-[#07090f]/20"})]},k))})}),a.jsx("section",{className:"py-24 md:py-32 px-6",children:a.jsxs("div",{className:"max-w-7xl mx-auto",children:[a.jsxs(le.div,{className:"text-center mb-16 md:mb-20",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-80px"},transition:{duration:.8},children:[a.jsx("p",{className:"text-[#c9a84c] text-[10px] tracking-[0.4em] uppercase mb-4",children:"The Platform"}),a.jsxs("h2",{className:"font-['Cormorant_Garamond',serif] text-3xl md:text-4xl lg:text-5xl font-light tracking-wide",children:["Every Layer of the Estate,",a.jsx("br",{}),a.jsx("span",{className:"italic text-white/85",children:"Perfectly Orchestrated"})]})]}),a.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-px bg-white/[0.04] border border-white/[0.04]",children:gV.map((k,R)=>a.jsxs(le.div,{className:"bg-[#07090f] p-8 md:p-10 group",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-60px"},transition:{duration:.7,delay:R*.1},children:[a.jsx("div",{className:"w-10 h-10 rounded border border-[#c9a84c]/20 bg-[#c9a84c]/5 flex items-center justify-center mb-6 group-hover:border-[#c9a84c]/40 transition-colors",children:a.jsx(k.icon,{className:"w-4.5 h-4.5 text-[#c9a84c]/70",strokeWidth:1.5})}),a.jsx("h3",{className:"font-['Cormorant_Garamond',serif] text-xl md:text-2xl font-light tracking-wide mb-3 text-white/90",children:k.title}),a.jsx("p",{className:"text-white/75 text-sm leading-relaxed font-light",children:k.body})]},k.title))})]})}),a.jsx("section",{className:"py-24 md:py-32 px-6 bg-[#06080d]",children:a.jsxs("div",{className:"max-w-7xl mx-auto",children:[a.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-16 lg:gap-24 items-center",children:[a.jsxs(le.div,{initial:{opacity:0,x:-24},whileInView:{opacity:1,x:0},viewport:{once:!0,margin:"-80px"},transition:{duration:.9},children:[a.jsx("p",{className:"text-[#c9a84c] text-[10px] tracking-[0.4em] uppercase mb-5",children:"Community & Concierge"}),a.jsxs("h2",{className:"font-['Cormorant_Garamond',serif] text-3xl md:text-4xl lg:text-5xl font-light tracking-wide leading-tight mb-6",children:["A Living, Breathing",a.jsx("br",{}),a.jsx("span",{className:"italic text-white/85",children:"Community Platform"})]}),a.jsx("p",{className:"text-white/80 text-sm md:text-base leading-relaxed font-light mb-8",children:"DomoVita transforms a collection of luxury residences into a connected, curated community. From the vineyards of Sonoma to private estates worldwide, residents enjoy seamless access to premium services, shared amenities, and the full lifestyle their address promises â all from a single interface."}),a.jsx("p",{className:"text-white/65 text-sm leading-relaxed font-light",children:"Developers and operators gain a powerful tool for elevating perceived value, driving resident retention, and commanding premium pricing â without adding operational complexity."})]}),a.jsx(le.div,{className:"grid grid-cols-2 gap-3",initial:{opacity:0,x:24},whileInView:{opacity:1,x:0},viewport:{once:!0,margin:"-80px"},transition:{duration:.9,delay:.1},children:[{icon:Mr,title:"Private Transportation",body:"On-demand vehicles, airport transfers, and estate chauffeur services â requested in seconds."},{icon:ed,title:"Winery & Cellar Access",body:"Exclusive tasting reservations, cellar deliveries, and vineyard experiences for residents and guests."}
17,{icon:Zx,title:"Hospitality Bookings",body:"Private chef arrangements, catered events, and curated dining experiences at home or nearby."},{icon:Ec,title:"Guest & Gate Access",body:"Issue time-limited access codes for guests, vendors, and service providers without a phone call."},{icon:$D,title:"Shared Amenity Booking",body:"Reserve community spaces, wellness facilities, and private event venues from the same app."},{icon:Bo,title:"Resident Community",body:"Announcements, shared services, and community-wide moments â keeping neighbours connected without friction."}].map((k,R)=>a.jsxs(le.div,{className:"bg-[#07090f] border border-white/[0.05] p-5 rounded-sm group hover:border-[#c9a84c]/20 transition-colors",initial:{opacity:0,y:12},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-40px"},transition:{duration:.6,delay:R*.07},children:[a.jsx(k.icon,{className:"w-4 h-4 text-[#c9a84c]/50 mb-3 group-hover:text-[#c9a84c]/80 transition-colors",strokeWidth:1.5}),a.jsx("h4",{className:"font-['Cormorant_Garamond',serif] text-base font-light text-white/80 mb-1 leading-snug",children:k.title}),a.jsx("p",{className:"text-white/70 text-[11px] leading-relaxed font-light",children:k.body})]},k.title))})]}),a.jsx(le.div,{className:"mt-16 md:mt-20 pt-12 border-t border-white/[0.05] text-center",initial:{opacity:0,y:16},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.8},children:a.jsx("p",{className:"font-['Cormorant_Garamond',serif] text-xl md:text-2xl font-light italic text-white/70 max-w-2xl mx-auto",children:'"Built first for Sonoma Vineyard Estates â designed to scale to every world-class luxury development that follows."'})})]})}),a.jsx("section",{className:"py-16 border-y border-white/[0.05] px-6",children:a.jsx("div",{className:"max-w-7xl mx-auto",children:a.jsx("div",{className:"flex flex-col md:flex-row items-center justify-center gap-8 md:gap-16",children:xV.map((k,R)=>a.jsxs(le.div,{className:"flex items-center gap-3 text-white/75 text-sm",initial:{opacity:0}
17,whileInView:{opacity:1},viewport:{once:!0},transition:{duration:.6,delay:R*.08},children:[a.jsx(ia,{className:"w-3.5 h-3.5 text-[#c9a84c]/50 shrink-0",strokeWidth:2.5}),a.jsx("span",{className:"tracking-wide text-[13px]",children:k})]},k))})})}),a.jsxs("section",{className:"relative h-[50vh] md:h-[60vh] overflow-hidden",children:[a.jsx("img",{src:"/estate4.jpeg",alt:"",className:"w-full h-full object-cover object-center"}),a.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-[#07090f] via-transparent to-[#07090f]"})]}),a.jsx("section",{id:"access",className:"py-28 md:py-36 px-6",children:a.jsx("div",{className:"max-w-lg mx-auto text-center",children:a.jsxs(le.div,{initial:{opacity:0,y:24},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-80px"},transition:{duration:.9},children:[a.jsx("div",{className:"w-px h-12 bg-gradient-to-b from-transparent via-[#c9a84c]/40 to-transparent mx-auto mb-10"}),a.jsx("p",{className:"text-[#c9a84c] text-[10px] tracking-[0.4em] uppercase mb-4",children:"Private Access"}),a.jsx("h2",{className:"font-['Cormorant_Garamond',serif] text-3xl md:text-4xl font-light tracking-wide mb-4",children:"Request an Introduction"}),a.jsx("p",{className:"text-white/75 text-sm leading-relaxed mb-10 font-light",children:"DomoVita is currently deployed exclusively through select real estate developers and luxury integrators. Leave your details and we'll be in touch."}),a.jsx(gn,{mode:"wait",children:c?a.jsxs(le.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},className:"py-12 flex flex-col items-center gap-4",children:[a.jsx("div",{className:"w-12 h-12 rounded-full border border-[#c9a84c]/30 bg-[#c9a84c]/5 flex items-center justify-center",children:a.jsx(ia,{className:"w-5 h-5 text-[#c9a84c]"})}),a.jsx("p",{className:"font-['Cormorant_Garamond',serif] text-xl font-light text-white/80",children:"Thank you â we'll be in touch."}),a.jsx("p",{className:"text-white/60 text-xs tracking-wide",children:"Expect a response within 48 hours."})]},"success"):a.jsxs(le.form,{onSubmit:M,className:"space-y-3",initial:{opacity:1},exit:{opacity:0},children:[a.jsx("input",{type:"text",placeholder:"Your name",value:i,onChange:k=>o(k.target.value),className:"w-full bg-white/[0.03] border border-white/15 text-white placeholder:text-white/45 h-12 px-4 rounded text-sm focus:outline-none focus:border-[#c9a84c]/40 focus:ring-0 transition-colors","data-testid":"input-landing-name"}),a.jsx("input",{type:"email",placeholder:"Email address",value:t,onChange:k=>s(k.target.value),required:!0,className:"w-full bg-white/[0.03] border border-white/15 text-white placeholder:text-white/45 h-12 px-4 rounded text-sm focus:outline-none focus:border-[#c9a84c]/40 focus:ring-0 transition-colors","data-testid":"input-landing-email"}),a.jsx("button",{type:"submit",disabled:f||!t,className:"w-full bg-[#c9a84c]/10 hover:bg-[#c9a84c]/20 border border-[#c9a84c]/30 hover:border-[#c9a84c]/50 text-[#c9a84c] h-12 rounded text-xs tracking-[0.25em] uppercase font-medium transition-all disabled:opacity-30 disabled:cursor-not-allowed","data-testid":"button-landing-submit",children:f?"Sendingâ¦":"Request Access"})]},"form")})]})})}),a.jsxs("footer",{className:"border-t border-white/[0.05] py-10 px-6",children:[a.jsxs("div",{className:"max-w-7xl mx-auto flex flex-col md:flex-row items-center justify-between gap-6",children:[a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx("img",{src:"/domovita-mark.svg",alt:"DomoVita",className:"h-7 opacity-70"}),a.jsxs("span",{className:"font-['Cormorant_Garamond',serif] text-sm font-light tracking-widest text-white/55",children:["DomoVita",a.jsx("span",{className:"text-[#c9a84c]/70",children:".ai"})]})]}),a.jsxs("nav",{className:"flex items-center gap-6 text-white/35 text-[10px] tracking-[0.2em] uppercase",children:[a.jsx("button",{onClick:()=>e("/faq"),className:"hover:text-white/60 transition-colors","data-testid":"link-footer-faq",children:"FAQ"}),a.jsx("button",{onClick:()=>e("/blog"),className:"hover:text-white/60 transition-colors","data-testid":"link-footer-blog",children:"Blog"}),a.jsx("button",{onClick:()=>e("/brochure"),className:"hover:text-white/60 transition-colors","data-testid":"link-footer-brochure",children:"Brochure"})]}),a.jsx("button",{onClick:()=>
17e("/login"),className:"text-white/45 hover:text-white/75 text-[10px] tracking-[0.25em] uppercase transition-colors","data-testid":"link-footer-resident-login",children:"Resident Login"})]}),a.jsx("div",{className:"max-w-7xl mx-auto mt-4 text-center",children:a.jsxs("p",{className:"text-white/25 text-[10px] tracking-widest uppercase",children:["© ",new Date().getFullYear()," DomoVita.AI · Sonoma County, CA · For authorized inquiries only."]})}),a.jsxs("a",{href:"https://missionhouse.ai",target:"_blank",rel:"noopener noreferrer",className:"max-w-7xl mx-auto mt-8 pt-6 border-t border-white/[0.03] flex items-center justify-center gap-2.5 hover:opacity-70 transition-opacity",children:[a.jsx("span",{className:"text-white/15 text-[9px] tracking-[0.3em] uppercase",children:"Powered by"}),a.jsx("img",{src:"/favicon.png",alt:"MissionHouse.ai",className:"h-7 opacity-30"}),a.jsx("span",{className:"text-white/15 text-[9px] tracking-[0.2em] uppercase",children:"MissionHouse.ai"})]})]})]})}function bV(){const[e,t]=p.useState(""),[s,i]=p.useState(""),[o,c]=p.useState(!1),[u,f]=p.useState(!1),[,h]=ns(),{login:m,checkAuth:x}=f0();p.useEffect(()=>{x().then(b=>{b&&h("/smart-home")})},[]);const y=async b=>{b.preventDefault(),i(""),c(!0);try{const w=await fetch("/api/verify-dotto-access",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({password:e}),credentials:"include"});if(w.ok)m(),h("/smart-home");else{const C=await w.json();i(C.message||"Incorrect password"),c(!1)}}catch{i("Something went wrong"),c(!1)}};return a.jsxs("div",{className:"min-h-screen h-screen relative overflow-hidden overscroll-none fixed inset-0",children:[a.jsx("video",{autoPlay:!0,muted:!0,loop:!0,playsInline:!0,className:"absolute inset-0 w-full h-full object-cover",poster:"https://images.unsplash.com/photo-1506905925346-21bda4d32df4?auto=format&fit=crop&w=1920&q=80",children:a.jsx("source",{src:"https://assets.mixkit.co/videos/preview/mixkit-aerial-view-of-a-vineyard-on-a-hill-46606-large.mp4",type:"video/mp4"})}),a.jsx("div",{className:"absolute inset-0 bg-black/60"}),a.jsx("div",{className:"relative z-10 min-h-screen flex flex-col items-center justify-center px-6",children:a.jsxs(le.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.8},className:"w-full max-w-md flex flex-col items-center",children:[a.jsx("a",{href:"https://teammissionhouse.com",target:"_blank",rel:"noopener noreferrer","data-testid":"link-logo",children:a.jsx(le.img,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{duration:.6,delay:.2},src:"/favicon.png",alt:"Mission House",className:"h-40 md:h-48 mb-10 cursor-pointer hover:opacity-80 transition-opacity","data-testid":"img-logo"})}),a.jsx(le.h1,{initial:{opacity:0}
17,animate:{opacity:1},transition:{duration:.6,delay:.4},className:"text-white text-3xl md:text-4xl lg:text-5xl font-serif tracking-wide mb-4 text-center font-bold","data-testid":"text-title",children:"DomoVita.ai"}),a.jsx(le.p,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.6,delay:.5},className:"text-white/70 text-sm mb-8 text-center","data-testid":"text-description",children:"Enter password to access this preview"}),a.jsxs(le.form,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:.6,delay:.6},onSubmit:y,className:"w-full space-y-4",children:[a.jsxs("div",{className:"relative",children:[a.jsx("div",{className:"absolute left-4 top-1/2 -translate-y-1/2 text-white/50",children:a.jsx(En,{className:"w-4 h-4"})}),a.jsx("input",{type:u?"text":"password",placeholder:"Password",value:e,onChange:b=>t(b.target.value),className:"w-full bg-white/10 backdrop-blur-sm border border-white/20 text-white placeholder:text-white/40 h-12 pl-11 pr-11 rounded-lg focus:outline-none focus:ring-2 focus:ring-white/30 focus:border-transparent transition-all","data-testid":"input-password"}),a.jsx("button",{type:"button",onClick:()=>f(!u),className:"absolute right-4 top-1/2 -translate-y-1/2 text-white/50 hover:text-white/80 transition-colors","data-testid":"button-toggle-password",children:u?a.jsx(Gx,{className:"w-4 h-4"}):a.jsx(al,{className:"w-4 h-4"})})]}),a.jsx(gn,{children:s&&a.jsx(le.p,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},className:"text-red-400 text-sm text-center","data-testid":"text-error",children:s})}),a.jsx(le.button,{type:"submit",disabled:o||!e,whileHover:{scale:1.02},whileTap:{scale:.98},className:"w-full bg-white/10 hover:bg-white/20 backdrop-blur-sm text-white border border-white/30 h-12 font-medium rounded-lg transition-all disabled:opacity-50 disabled:cursor-not-allowed","data-testid":"button-submit",children:o?a.jsxs("span",{className:"flex items-center justify-center gap-2",children:[a.jsx(le.div,{animate:{rotate:360},transition:{duration:1,repeat:1/0,ease:"linear"},className:"w-4 h-4 border-2 border-white/30 border-t-white rounded-full"}),"Verifying..."]}):"Access Preview"})]}),a.jsx(le.p,{initial:{opacity:0}
vendor: 16,260 bytes, lines 17-32
17,animate:{opacity:1},transition:{duration:.6,delay:.8},className:"text-white/40 text-xs mt-10","data-testid":"text-footer",children:"Protected client preview"})]})})]})}var wV=Symbol.for("react.lazy"),Cf=Bs[" use ".trim().toString()];function jV(e){return typeof e=="object"&&e!==null&&"then"in e}function Pk(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===wV&&"_payload"in e&&jV(e._payload)}function Q0(e){const t=SV(e),s=p.forwardRef((i,o)=>{let{children:c,...u}=i;Pk(c)&&typeof Cf=="function"&&(c=Cf(c._payload));const f=p.Children.toArray(c),h=f.find(kV);if(h){const m=h.props.children,x=f.map(y=>y===h?p.Children.count(m)>1?p.Children.only(null):p.isValidElement(m)?m.props.children:null:y);return a.jsx(t,{...u,ref:o,children:p.isValidElement(m)?p.cloneElement(m,void 0,x):null})}return a.jsx(t,{...u,ref:o,children:c})});return s.displayName=`${e}.Slot`,s}var NV=Q0("Slot");function SV(e){const t=p.forwardRef((s,i)=>{let{children:o,...c}=s;if(Pk(o)&&typeof Cf=="function"&&(o=Cf(o._payload)),p.isValidElement(o)){const u=EV(o),f=TV(c,o.props);return o.type!==p.Fragment&&(f.ref=i?Fi(i,u):u),p.cloneElement(o,f)}return p.Children.count(o)>1?p.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var CV=Symbol("radix.slottable");function kV(e){return p.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===CV}function TV(e,t){const s={...t};for(const i in t){const o=e[i],c=t[i];/^on[A-Z]/.test(i)?o&&c?s[i]=(...f)=>{const h=c(...f);return o(...f),h}:o&&(s[i]=o):i==="style"?s[i]={...o,...c}:i==="className"&&(s[i]=[o,c].filter(Boolean).join(" "))}return{...e,...s}}function EV(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,s=t&&"isReactWarning"in t&&t.isReactWarning;return s?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,s=t&&"isReactWarning"in t&&t.isReactWarning,s?e.props.ref:e.props.ref||e.ref)}const xx=Pf("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 hover-elevate active-elevate-2",{variants:{variant:{default:"bg-primary text-primary-foreground border border-primary-border",destructive:"bg-destructive text-destructive-foreground shadow-sm border-destructive-border",outline:" border [border-color:var(--button-outline)] shadow-xs active:shadow-none ",secondary:"border bg-secondary text-secondary-foreground border border-secondary-border ",ghost:"border border-transparent",link:"text-primary underline-offset-4 hover:underline"},size:{default:"min-h-11 sm:min-h-9 px-4 py-2",sm:"min-h-11 sm:min-h-8 rounded-md px-3 text-xs",lg:"min-h-11 sm:min-h-10 rounded-md px-8",icon:"h-11 w-11 sm:h-9 sm:w-9"}},defaultVariants:{variant:"default",size:"default"}}),Xe=p.forwardRef(({className:e,variant:t,size:s,asChild:i=!1,...o},c)=>{const u=i?NV:"button";return a.jsx(u,{className:he(xx({variant:t,size:s,className:e})),ref:c,...o})});Xe.displayName="Button";function Pc(e,t,{checkForDefaultPrevented:s=!0}={}){return function(o){if(e?.(o),s===!1||!o.defaultPrevented)return t?.(o)}}var lg=0;function X0(){p.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??zj()),document.body.insertAdjacentElement("beforeend",e[1]??zj()),lg++,()=>{lg===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),lg--}},[])}function zj(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var cg="focusScope.autoFocusOnMount",dg="focusScope.autoFocusOnUnmount",Lj={bubbles:!1,cancelable:!0},MV="FocusScope",Zf=p.forwardRef((e,t)=>{const{loop:s=!1,trapped:i=!1,onMountAutoFocus:o,onUnmountAutoFocus:c,...u}=e,[f,h]=p.useState(null),m=yn(o),x=yn(c),y=p.useRef(null),b=Ue(t,j=>h(j)),w=p.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;p.useEffect(()=>{if(i){let j=function(k){if(w.paused||!f)return;const R=k.target;f.contains(R)?y.current=R:Oi(y.current,{select:!0})},S=function(k){if(w.paused||!f)return;const R=k.relatedTarget;R!==null&&(f.contains(R)||Oi(y.current,{select:!0}))},T=function(k){if(document.activeElement===document.body)for(const D of k)D.removedNodes.length>0&&Oi(f)};document.addEventListener("focusin",j),document.addEventListener("focusout",S);const M=new MutationObserver(T);return f&&M.observe(f,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",j),document.removeEventListener("focusout",S),M.disconnect()}}},[i,f,w.paused]),p.useEffect(()=>{if(f){Vj.add(w);const j=document.activeElement;if(!f.contains(j)){const T=new CustomEvent(cg,Lj);f.addEventListener(cg,m),f.dispatchEvent(T),T.defaultPrevented||(AV(PV(zk(f)),{select:!0}),document.activeElement===j&&Oi(f))}return()=>{f.removeEventListener(cg,m),setTimeout(()=>{const T=new CustomEvent(dg,Lj);f.addEventListener(dg,x),f.dispatchEvent(T),T.defaultPrevented||Oi(j??document.body,{select:!0}),f.removeEventListener(dg,x),Vj.remove(w)},0)}}},[f,m,x,w]);const C=p.useCallback(j=>{if(!s&&!i||w.paused)return;const S=j.key==="Tab"&&!j.altKey&&!j.ctrlKey&&!j.metaKey,T=document.activeElement;if(S&&T){const M=j.currentTarget,[k,R]=DV(M);k&&R?!j.shiftKey&&T===R?(j.preventDefault(),s&&Oi(k,{select:!0})):j.shiftKey&&T===k&&(j.preventDefault(),s&&Oi(R,{select:!0})):T===M&&j.preventDefault()}},[s,i,w.paused]);return a.jsx(Ie.div,{tabIndex:-1,...u,ref:b,onKeyDown:C})});Zf.displayName=MV;function AV(e,{select:t=!1}={}){const s=document.activeElement;for(const i of e)if(Oi(i,{select:t}),document.activeElement!==s)return}function DV(e){const t=zk(e),s=Ij(t,e),i=Ij(t.reverse(),e);return[s,i]}function zk(e){const t=[],s=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const o=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||o?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;s.nextNode();)t.push(s.currentNode);return t}function Ij(e,t){for(const s of e)if(!OV(s,{upTo:t}))return s}function OV(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function RV(e){return e instanceof HTMLInputElement&&"select"in e}function Oi(e,{select:t=!1}={}){if(e&&e.focus){const s=document.activeElement;e.focus({preventScroll:!0}),e!==s&&RV(e)&&t&&e.select()}}var Vj=_V();function _V(){let e=[];return{add(t){const s=e[0];t!==s&&s?.pause(),e=$j(e,t),e.unshift(t)},remove(t){e=$j(e,t),e[0]?.resume()}}}function $j(e,t){const s=[...e],i=s.indexOf(t);return i!==-1&&s.splice(i,1),s}function PV(e){return e.filter(t=>t.tagName!=="A")}function zV(e){const t=LV(e),s=p.forwardRef((i,o)=>{const{children:c,...u}=i,f=p.Children.toArray(c),h=f.find(VV);if(h){const m=h.props.children,x=f.map(y=>y===h?p.Children.count(m)>1?p.Children.only(null):p.isValidElement(m)?m.props.children:null:y);return a.jsx(t,{...u,ref:o,children:p.isValidElement(m)?p.cloneElement(m,void 0,x):null})}return a.jsx(t,{...u,ref:o,children:c})});return s.displayName=`${e}.Slot`,s}function LV(e){const t=p.forwardRef((s,i)=>{const{children:o,...c}=s;if(p.isValidElement(o)){const u=BV(o),f=$V(c,o.props);return o.type!==p.Fragment&&(f.ref=i?Fi(i,u):u),p.cloneElement(o,f)}return p.Children.count(o)>1?p.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var IV=Symbol("radix.slottable");function VV(e){return p.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===IV}function $V(e,t){const s={...t};for(const i in t){const o=e[i],c=t[i];/^on[A-Z]/.test(i)?o&&c?s[i]=(...f)=>{const h=c(...f);return o(...f),h}:o&&(s[i]=o):i==="style"?s[i]={...o,...c}:i==="className"&&(s[i]=[o,c].filter(Boolean).join(" "))}return{...e,...s}}function BV(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,s=t&&"isReactWarning"in t&&t.isReactWarning;return s?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,s=t&&"isReactWarning"in t&&t.isReactWarning,s?e.props.ref:e.props.ref||e.ref)}var FV=Bs[" useInsertionEffect ".trim().toString()]||ut;function HV({prop:e,defaultProp:t,onChange:s=()=>{},caller:i}){const[o,c,u]=UV({defaultProp:t,onChange:s}),f=e!==void 0,h=f?e:o;{const x=p.useRef(e!==void 0);p.useEffect(()=>{const y=x.current;y!==f&&console.warn(`${i} is changing from ${y?"controlled":"uncontrolled"} to ${f?"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.`),x.current=f},[f,i])}const m=p.useCallback(x=>{if(f){const y=qV(x)?x(e):x;y!==e&&u.current?.(y)}else c(x)},[f,e,c,u]);return[h,m]}function UV({defaultProp:e,onChange:t}){const[s,i]=p.useState(e),o=p.useRef(s),c=p.useRef(t);return FV(()=>{c.current=t},[t]),p.useEffect(()=>{o.current!==s&&(c.current?.(s),o.current=s)},[s,o]),[s,i,c]}function qV(e){return typeof e=="function"}var WV=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Co=new WeakMap,Fu=new WeakMap,Hu={},ug=0,Lk=function(e){return e&&(e.host||Lk(e.parentNode))},GV=function(e,t){return t.map(function(s){if(e.contains(s))return s;var i=Lk(s);return i&&e.contains(i)?i:(console.error("aria-hidden",s,"in not contained inside",e,". Doing nothing"),null)}).filter(function(s){return!!s})},YV=function(e,t,s,i){var o=GV(t,Array.isArray(e)?e:[e]);Hu[s]||(Hu[s]=new WeakMap);var c=Hu[s],u=[],f=new Set,h=new Set(o),m=function(y){!y||f.has(y)||(f.add(y),m(y.parentNode))};o.forEach(m);var x=function(y){!y||h.has(y)||Array.prototype.forEach.call(y.children,function(b){if(f.has(b))x(b);else try{var w=b.getAttribute(i),C=w!==null&&w!=="false",j=(Co.get(b)||0)+1,S=(c.get(b)||0)+1;Co.set(b,j),c.set(b,S),u.push(b),j===1&&C&&Fu.set(b,!0),S===1&&b.setAttribute(s,"true"),C||b.setAttribute(i,"true")}catch(T){console.error("aria-hidden: cannot operate on ",b,T)}})};return x(t),f.clear(),ug++,function(){u.forEach(function(y){var b=Co.get(y)-1,w=c.get(y)-1;Co.set(y,b),c.set(y,w),b||(Fu.has(y)||y.removeAttribute(i),Fu.delete(y)),w||y.removeAttribute(s)}),ug--,ug||(Co=new WeakMap,Co=new WeakMap,Fu=new WeakMap,Hu={})}},Z0=function(e,t,s){s===void 0&&(s="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),o=WV(e);return o?(i.push.apply(i,Array.from(o.querySelectorAll("[aria-live]"))),YV(i,o,s,"aria-hidden")):function(){return null}},Xs=function(){return Xs=Object.assign||function(t){for(var s,i=1,o=arguments.length;i<o;i++){s=arguments[i];for(var c in s)Object.prototype.hasOwnProperty.call(s,c)&&(t[c]=s[c])}return t},Xs.apply(this,arguments)};function Ik(e,t){var s={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(s[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(s[i[o]]=e[i[o]]);return s}function KV(e,t,s){if(s||arguments.length===2)for(var i=0,o=t.length,c;i<o;i++)(c||!(i in t))&&(c||(c=Array.prototype.slice.call(t,0,i)),c[i]=t[i]);return e.concat(c||Array.prototype.slice.call(t))}var rf="right-scroll-bar-position",of="width-before-scroll-bar",QV="with-scroll-bars-hidden",XV="--removed-body-scroll-bar-size";function fg(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function ZV(e,t){var s=p.useState(function(){return{value:e,callback:t,facade:{get current(){return s.value},set current(i){var o=s.value;o!==i&&(s.value=i,s.callback(i,o))}}}})[0];return s.callback=t,s.facade}var JV=typeof window<"u"?p.useLayoutEffect:p.useEffect,Bj=new WeakMap;function e$(e,t){var s=ZV(null,function(i){return e.forEach(function(o){return fg(o,i)})});return JV(function(){var i=Bj.get(s);if(i){var o=new Set(i),c=new Set(e),u=s.current;o.forEach(function(f){c.has(f)||fg(f,null)}),c.forEach(function(f){o.has(f)||fg(f,u)})}Bj.set(s,e)},[e]),s}function t$(e){return e}function n$(e,t){t===void 0&&(t=t$);var s=[],i=!1,o={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return s.length?s[s.length-1]:e},useMedium:function(c){var u=t(c,i);return s.push(u),function(){s=s.filter(function(f){return f!==u})}},assignSyncMedium:function(c){for(i=!0;s.length;){var u=s;s=[],u.forEach(c)}s={push:function(f){return c(f)},filter:function(){return s}}},assignMedium:function(c){i=!0;var u=[];if(s.length){var f=s;s=[],f.forEach(c),u=s}var h=function(){var x=u;u=[],x.forEach(c)},m=function(){return Promise.resolve().then(h)};m(),s={push:function(x){u.push(x),m()},filter:function(x){return u=u.filter(x),s}}}};return o}function s$(e){e===void 0&&(e={});var t=n$(null);return t.options=Xs({async:!0,ssr:!1},e),t}var Vk=function(e){var t=e.sideCar,s=Ik(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=t.read();if(!i)throw new Error("Sidecar medium not found");return p.createElement(i,Xs({},s))};Vk.isSideCarExport=!0;function a$(e,t){return e.useMedium(t),Vk}var $k=s$(),hg=function(){},Jf=p.forwardRef(function(e,t){var s=p.useRef(null),i=p.useState({onScrollCapture:hg,onWheelCapture:hg,onTouchMoveCapture:hg}),o=i[0],c=i[1],u=e.forwardProps,f=e.children,h=e.className,m=e.removeScrollBar,x=e.enabled,y=e.shards,b=e.sideCar,w=e.noIsolation,C=e.inert,j=e.allowPinchZoom,S=e.as,T=S===void 0?"div":S,M=e.gapMode,k=Ik(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),R=b,D=e$([s,t]),P=Xs(Xs({},k),o);return p.createElement(p.Fragment,null,x&&p.createElement(R,{sideCar:$k,removeScrollBar:m,shards:y,noIsolation:w,inert:C,setCallbacks:c,allowPinchZoom:!!j,lockRef:s,gapMode:M}),u?p.cloneElement(p.Children.only(f),Xs(Xs({},P),{ref:D})):p.createElement(T,Xs({},P,{className:h,ref:D}),f))});Jf.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Jf.classNames={fullWidth:of,zeroRight:rf};var i$=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function r$(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=i$();return t&&e.setAttribute("nonce",t),e}function o$(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function l$(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var c$=function(){var e=0,t=null;return{add:function(s){e==0&&(t=r$())&&(o$(t,s),l$(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},d$=function(){var e=c$();return function(t,s){p.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&s])}},Bk=function(){var e=d$(),t=function(s){var i=s.styles,o=s.dynamic;return e(i,o),null};return t},u$={left:0,top:0,right:0,gap:0},mg=function(e){return parseInt(e||"",10)||0},f$=function(e){var t=window.getComputedStyle(document.body),s=t[e==="padding"?"paddingLeft":"marginLeft"],i=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[mg(s),mg(i),mg(o)]},h$=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return u$;var t=f$(e),s=document.documentElement.clientWidth,i=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,i-s+t[2]-t[0])}},m$=Bk(),Uo="data-scroll-locked",p$=function(e,t,s,i){var o=e.left,c=e.top,u=e.right,f=e.gap;return s===void 0&&(s="margin"),` 18 .`.concat(QV,` { 19 overflow: hidden `).concat(i,`; 20 padding-right: `).concat(f,"px ").concat(i,`; 21 } 22 body[`).concat(Uo,`] { 23 overflow: hidden `).concat(i,`; 24 overscroll-behavior: contain; 25 `).concat([t&&"position: relative ".concat(i,";"),s==="margin"&&` 26 padding-left: `.concat(o,`px; 27 padding-top: `).concat(c,`px; 28 padding-right: `).concat(u,`px; 29 margin-left:0; 30 margin-top:0; 31 margin-right: `).concat(f,"px ").concat(i,`; 32 `),s==="padding"&&"padding-right: ".concat(f,"px ").concat(i,";
32")].filter(Boolean).join(""),` 33 } 34 35 .`).concat(rf,` { 36 right: `).concat(f,"px ").concat(i,`; 37 } 38 39 .`).concat(of,` { 40 margin-right: `).concat(f,"px ").concat(i,`; 41 } 42 43 .`).concat(rf," .").concat(rf,` { 44 right: 0 `).concat(i,`; 45 } 46 47 .`).concat(of," .").concat(of,` { 48 margin-right: 0 `).concat(i,`; 49 } 50 51 body[`).concat(Uo,`] { 52 `).concat(XV,": ").concat(f,`px; 53 } 54`)},Fj=function(){var e=parseInt(document.body.getAttribute(Uo)||"0",10);return isFinite(e)?e:0},g$=function(){p.useEffect(function(){return document.body.setAttribute(Uo,(Fj()+1).toString()),function(){var e=Fj()-1;e<=0?document.body.removeAttribute(Uo):document.body.setAttribute(Uo,e.toString())}},[])},x$=function(e){var t=e.noRelative,s=e.noImportant,i=e.gapMode,o=i===void 0?"margin":i;g$();var c=p.useMemo(function(){return h$(o)},[o]);return p.createElement(m$,{styles:p$(c,!t,o,s?"":"!important")})},yx=!1;if(typeof window<"u")try{var Uu=Object.defineProperty({},"passive",{get:function(){return yx=!0,!0}});window.addEventListener("test",Uu,Uu),window.removeEventListener("test",Uu,Uu)}catch{yx=!1}var ko=yx?{passive:!1}:!1,y$=function(e){return e.tagName==="TEXTAREA"},Fk=function(e,t){if(!(e instanceof Element))return!1;var s=window.getComputedStyle(e);return s[t]!=="hidden"&&!(s.overflowY===s.overflowX&&!y$(e)&&s[t]==="visible")},v$=function(e){return Fk(e,"overflowY")},b$=function(e){return Fk(e,"overflowX")},Hj=function(e,t){var s=t.ownerDocument,i=t;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var o=Hk(e,i);if(o){var c=Uk(e,i),u=c[1],f=c[2];if(u>f)return!0}i=i.parentNode}while(i&&i!==s.body);return!1},w$=function(e){var t=e.scrollTop,s=e.scrollHeight,i=e.clientHeight;return[t,s,i]},j$=function(e){var t=e.scrollLeft,s=e.scrollWidth,i=e.clientWidth;return[t,s,i]},Hk=function(e,t){return e==="v"?v$(t):b$(t)},Uk=function(e,t){return e==="v"?w$(t):j$(t)},N$=function(e,t){return e==="h"&&t==="rtl"?-1:1},S$=function(e,t,s,i,o){var c=N$(e,window.getComputedStyle(t).direction),u=c*i,f=s.target,h=t.contains(f),m=!1,x=u>0,y=0,b=0;do{var w=Uk(e,f),C=w[0],j=w[1],S=w[2],T=j-S-c*C;(C||T)&&Hk(e,f)&&(y+=T,b+=C),f instanceof ShadowRoot?f=f.host:f=f.parentNode}while(!h&&f!==document.body||h&&(t.contains(f)||t===f));return(x&&Math.abs(y)<1||!x&&Math.abs(b)<1)&&(m=!0),m},qu=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Uj=function(e){return[e.deltaX,e.deltaY]},qj=function(e){return e&&"current"in e?e.current:e},C$=function(e,t){return e[0]===t[0]&&e[1]===t[1]},k$=function(e){return` 55 .block-interactivity-`.concat(e,` {pointer-events: none;} 56 .allow-interactivity-`).concat(e,` {pointer-events: all;} 57`)},T$=0,To=[];function E$(e){var t=p.useRef([]),s=p.useRef([0,0]),i=p.useRef(),o=p.useState(T$++)[0],c=p.useState(Bk)[0],u=p.useRef(e);p.useEffect(function(){u.current=e},[e]),p.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var j=KV([e.lockRef.current],(e.shards||[]).map(qj),!0).filter(Boolean);return j.forEach(function(S){return S.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),j.forEach(function(S){return S.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var f=p.useCallback(function(j,S){if("touches"in j&&j.touches.length===2||j.type==="wheel"&&j.ctrlKey)return!u.current.allowPinchZoom;var T=qu(j),M=s.current,k="deltaX"in j?j.deltaX:M[0]-T[0],R="deltaY"in j?j.deltaY:M[1]-T[1],D,P=j.target,O=Math.abs(k)>Math.abs(R)?"h":"v";if("touches"in j&&O==="h"&&P.type==="range")return!1;var _=Hj(O,P);if(!_)return!0;if(_?D=O:(D=O==="v"?"h":"v",_=Hj(O,P)),!_)return!1;if(!i.current&&"changedTouches"in j&&(k||R)&&(i.current=D),!D)return!0;var G=i.current||D;return S$(G,S,j,G==="h"?k:R)},[]),h=p.useCallback(function(j){var S=j;if(!(!To.length||To[To.length-1]!==c)){var T="deltaY"in S?Uj(S):qu(S),M=t.current.filter(function(D){return D.name===S.type&&(D.target===S.target||S.target===D.shadowParent)&&C$(D.delta,T)})[0];if(M&&M.should){S.cancelable&&S.preventDefault();return}
vendor: 4,221 bytes, line 57
57if(!M){var k=(u.current.shards||[]).map(qj).filter(Boolean).filter(function(D){return D.contains(S.target)}),R=k.length>0?f(S,k[0]):!u.current.noIsolation;R&&S.cancelable&&S.preventDefault()}}},[]),m=p.useCallback(function(j,S,T,M){var k={name:j,delta:S,target:T,should:M,shadowParent:M$(T)};t.current.push(k),setTimeout(function(){t.current=t.current.filter(function(R){return R!==k})},1)},[]),x=p.useCallback(function(j){s.current=qu(j),i.current=void 0},[]),y=p.useCallback(function(j){m(j.type,Uj(j),j.target,f(j,e.lockRef.current))},[]),b=p.useCallback(function(j){m(j.type,qu(j),j.target,f(j,e.lockRef.current))},[]);p.useEffect(function(){return To.push(c),e.setCallbacks({onScrollCapture:y,onWheelCapture:y,onTouchMoveCapture:b}),document.addEventListener("wheel",h,ko),document.addEventListener("touchmove",h,ko),document.addEventListener("touchstart",x,ko),function(){To=To.filter(function(j){return j!==c}),document.removeEventListener("wheel",h,ko),document.removeEventListener("touchmove",h,ko),document.removeEventListener("touchstart",x,ko)}},[]);var w=e.removeScrollBar,C=e.inert;return p.createElement(p.Fragment,null,C?p.createElement(c,{styles:k$(o)}):null,w?p.createElement(x$,{gapMode:e.gapMode}):null)}function M$(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const A$=a$($k,E$);var eh=p.forwardRef(function(e,t){return p.createElement(Jf,Xs({},e,{ref:t,sideCar:A$}))});eh.classNames=Jf.classNames;var th="Popover",[qk]=ss(th,[dl]),cd=dl(),[D$,Wi]=qk(th),Wk=e=>{const{__scopePopover:t,children:s,open:i,defaultOpen:o,onOpenChange:c,modal:u=!1}=e,f=cd(t),h=p.useRef(null),[m,x]=p.useState(!1),[y,b]=HV({prop:i,defaultProp:o??!1,onChange:c,caller:th});return a.jsx(R5,{...f,children:a.jsx(D$,{scope:t,contentId:Wa(),triggerRef:h,open:y,onOpenChange:b,onOpenToggle:p.useCallback(()=>b(w=>!w),[b]),hasCustomAnchor:m,onCustomAnchorAdd:p.useCallback(()=>x(!0),[]),onCustomAnchorRemove:p.useCallback(()=>x(!1),[]),modal:u,children:s})})};Wk.displayName=th;var Gk="PopoverAnchor",O$=p.forwardRef((e,t)=>{const{__scopePopover:s,...i}=e,o=Wi(Gk,s),c=cd(s),{onCustomAnchorAdd:u,onCustomAnchorRemove:f}=o;return p.useEffect(()=>(u(),()=>f()),[u,f]),a.jsx(Hf,{...c,...i,ref:t})});O$.displayName=Gk;var Yk="PopoverTrigger",Kk=p.forwardRef((e,t)=>{const{__scopePopover:s,...i}=e,o=Wi(Yk,s),c=cd(s),u=Ue(t,o.triggerRef),f=a.jsx(Ie.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":e4(o.open),...i,ref:u,onClick:Pc(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?f:a.jsx(Hf,{asChild:!0,...c,children:f})});Kk.displayName=Yk;var J0="PopoverPortal",[R$,_$]=qk(J0,{forceMount:void 0}),Qk=e=>{const{__scopePopover:t,forceMount:s,children:i,container:o}=e,c=Wi(J0,t);return a.jsx(R$,{scope:t,forceMount:s,children:a.jsx(pa,{present:s||c.open,children:a.jsx(sd,{asChild:!0,container:o,children:i})})})};Qk.displayName=J0;var Jo="PopoverContent",Xk=p.forwardRef((e,t)=>{const s=_$(Jo,e.__scopePopover),{forceMount:i=s.forceMount,...o}=e,c=Wi(Jo,e.__scopePopover);return a.jsx(pa,{present:i||c.open,children:c.modal?a.jsx(z$,{...o,ref:t}):a.jsx(L$,{...o,ref:t})})});Xk.displayName=Jo;var P$=zV("PopoverContent.RemoveScroll"),z$=p.forwardRef((e,t)=>{const s=Wi(Jo,e.__scopePopover),i=p.useRef(null),o=Ue(t,i),c=p.useRef(!1);return p.useEffect(()=>{const u=i.current;if(u)return Z0(u)},[]),a.jsx(eh,{as:P$,allowPinchZoom:!0,children:a.jsx(Zk,{...e,ref:o,trapFocus:s.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Pc(e.onCloseAutoFocus,u=>{u.preventDefault(),c.current||s.triggerRef.current?.focus()}),onPointerDownOutside:Pc(e.onPointerDownOutside,u=>{const f=u.detail.originalEvent,h=f.button===0&&f.ctrlKey===!0,m=f.button===2||h;c.current=m},{checkForDefaultPrevented:!1}),onFocusOutside:Pc(e.onFocusOutside,u=>u.preventDefault(),{checkForDefaultPrevented:!1})})})}),L$=p.forwardRef((e,t)=>{const s=Wi(Jo,e.__scopePopover),i=p.useRef(!1),o=p.useRef(!1);return a.jsx(Zk,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:c=>{e.onCloseAutoFocus?.(c),c.defaultPrevented||(i.current||s.triggerRef.current?.focus(),c.preventDefault()),i.current=!1,o.current=!1},onInteractOutside:c=>
57{e.onInteractOutside?.(c),c.defaultPrevented||(i.current=!0,c.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const u=c.target;s.triggerRef.current?.contains(u)&&c.preventDefault(),c.detail.originalEvent.type==="focusin"&&o.current&&c.preventDefault()}})}),Zk=p.forwardRef((e,t)=>{const{__scopePopover:s,trapFocus:i,onOpenAutoFocus:o,onCloseAutoFocus:c,disableOutsidePointerEvents:u,onEscapeKeyDown:f,onPointerDownOutside:h,onFocusOutside:m,onInteractOutside:x,...y}=e,b=Wi(Jo,s),w=cd(s);return X0(),a.jsx(Zf,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:o,onUnmountAutoFocus:c,children:a.jsx(td,{asChild:!0,disableOutsidePointerEvents:u,onInteractOutside:x,onEscapeKeyDown:f,onPointerDownOutside:h,onFocusOutside:m,onDismiss:()=>b.onOpenChange(!1),children:a.jsx(l0,{"data-state":e4(b.open),role:"dialog",id:b.contentId,...w,...y,ref:t,style:{...y.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),Jk="PopoverClose",I$=p.forwardRef((e,t)=>{const{__scopePopover:s,...i}=e,o=Wi(Jk,s);return a.jsx(Ie.button,{type:"button",...i,ref:t,onClick:Pc(e.onClick,()=>o.onOpenChange(!1))})});I$.displayName=Jk;var V$="PopoverArrow",$$=p.forwardRef((e,t)=>{const{__scopePopover:s,...i}=e,o=cd(s);return a.jsx(c0,{...o,...i,ref:t})});$$.displayName=V$;function e4(e){return e?"open":"closed"}var B$=Wk,F$=Kk,H$=Qk,t4=Xk;const ey=B$,ty=F$,nh=p.forwardRef(({className:e,align:t="center",sideOffset:s=4,...i},o)=>a.jsx(H$,{children:a.jsx(t4,{ref:o,align:t,sideOffset:s,className:he("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none 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 origin-[--radix-popover-content-transform-origin]",e),...i})}));nh.displayName=t4.displayName;const Ht=p.forwardRef(({className:e,type:t,...s},i)=>a.jsx("input",{type:t,className:he("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors 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-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:i,...s}));Ht.displayName="Input";const U$=[{icon:Hi,label:"Home",href:"/smart-home"},{icon:Ec,label:"Gate Access",href:"/gate-access"},{icon:Mr,label:"Transport",href:"/transport"},{icon:$o,label:"Services",href:"/services"},{icon:mO,label:"Concierge",href:"/concierge"},{icon:qS,label:"My Home",href:"/my-home"}];function Wj(e){return e.split(" ").map(t=>t[0]).join("").toUpperCase().slice(0,2)}function Ii({children:e,headerTop:t}){const[s]=ns(),{profile:i,updateProfile:o}=m0(),{editMode:c}=qf(),[u,f]=p.useState(!1),[h,m]=p.useState(i.name),[x,y]=p.useState(i.photoUrl),b=()=>{o({name:h.trim()||"Resident",photoUrl:x.trim()}),f(!1)},w=()=>{m(i.name),y(i.photoUrl),f(!1)};return p.useEffect(()=>{c||f(!1)},[c]),a.jsxs("div",{className:"min-h-screen bg-background",children:[a.jsxs("header",{className:"sticky top-0 z-50 bg-background/95 backdrop-blur-xl border-b border-border/50",children:[t&&a.jsx("div",{className:"border-b border-border/30",children:t}),a.jsxs("div",{className:"max-w-7xl mx-auto",children:[a.jsxs("div",{className:"flex items-center justify-between px-4 md:px-8 py-4 border-b border-border/30",children:[a.jsx(sn,{href:"/smart-home",className:"group",children:a.jsxs("div",{className:"flex flex-col",children:[a.jsx("h1",{className:"text-xl md:text-2xl font-serif tracking-[0.2em] text-foreground group-hover:text-primary transition-colors",children:"DOMOVITA.AI"}),a.jsx("p",{className:"text-[10px] tracking-[0.3em] text-muted-foreground uppercase",children:"Private Residences"})]})}),a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsxs(Xe,{variant:"ghost",size:"sm",className:"flex items-center gap-1.5 text-[10px] md:text-xs tracking-wider up
57percase text-muted-foreground hover:text-primary hover:bg-transparent transition-colors px-2 md:px-3","data-testid":"button-concierge-call",children:[a.jsx(Yx,{className:"w-3 h-3 md:w-3.5 md:h-3.5"}),a.jsx("span",{className:"hidden sm:inline",children:"24/7"})," Concierge"]}),a.jsxs(ey,{onOpenChange:C=>{C&&(m(i.name),y(i.photoUrl),f(!1))},children:[a.jsx(ty,{asChild:!0,children:a.jsx("button",{className:"w-9 h-9 rounded-full overflow-hidden border-2 border-primary/20 hover:border-primary/50 transition-all duration-300 hover:scale-105 flex-shrink-0 focus:outline-none focus:ring-2 focus:ring-primary/30","data-testid":"button-profile-avatar",children:i.photoUrl?a.jsx("img",{src:i.photoUrl,alt:i.name,className:"w-full h-full object-cover"}):a.jsx("div",{className:"w-full h-full bg-primary/10 flex items-center justify-center text-primary text-xs font-semibold",children:Wj(i.name)})})}),a.jsxs(nh,{className:"w-72 p-0",align:"end",children:[a.jsxs("div",{className:"p-4 border-b flex items-center gap-3",children:[a.jsx("div",{className:"w-10 h-10 rounded-full overflow-hidden border border-border flex-shrink-0",children:i.photoUrl?a.jsx("img",{src:i.photoUrl,alt:i.name,className:"w-full h-full object-cover"}):a.jsx("div",{className:"w-full h-full bg-primary/10 flex items-center justify-center text-primary text-sm font-semibold",children:Wj(i.name)})}),a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsx("p",{className:"font-serif text-sm font-medium truncate","data-testid":"text-profile-name",children:i.name}),a.jsx("p",{className:"text-[10px] text-muted-foreground tracking-wider uppercase",children:"Resident"})]})]}),u?a.jsxs("div",{className:"p-4 space-y-3",children:[a.jsxs("div",{className:"space-y-1.5",children:[a.jsx("label",{className:"text-xs text-muted-foreground",children:"Name"}),a.jsx(Ht,{value:h,onChange:C=>m(C.target.value),placeholder:"Your name","data-testid":"input-profile-name"})]}),a.jsxs("div",{className:"space-y-1.5",children:[a.jsx("label",{className:"text-xs text-muted-foreground",children:"Photo URL"}),a.jsx(Ht,{value:x,onChange:C=>y(C.target.value),placeholder:"https://example.com/photo.jpg","data-testid":"input-profile-photo"})]}),a.jsxs("div",{className:"flex gap-2",children:[a.jsxs(Xe,{size:"sm",onClick:b,className:"flex-1","data-testid":"button-profile-save",children:[a.jsx(ia,{className:"w-3.5 h-3.5 mr-1"})," Save"]}),a.jsx(Xe,{size:"sm",variant:"outline",onClick:w,"data-testid":"button-profile-cancel",children:a.jsx(Ui,{className:"w-3.5 h-3.5"})})]})]}):a.jsx("div",{className:"p-3",children:c?a.jsxs(Xe,{variant:"ghost",size:"sm",className:"w-full justify-start text-sm",onClick:()=>f(!0),"data-testid":"button-edit-profile",children:[a.jsx(FS,{className:"w-3.5 h-3.5 mr-2"})," Edit Profile"]}):a.jsx("p",{className:"text-xs text-muted-foreground text-center py-1",children:"Enable edit mode to update profile"})})]})]})]})]}),a.jsx("nav",{className:"flex items-center justify-start sm:justify-center gap-1 md:gap-2 px-2 py-3 overflow-x-auto scrollbar-hide -mx-2 sm:mx-0",children:U$.map(C=>{const j=s===C.href;return a.jsx(sn,{href:C.href,children:a.jsxs("button",{className:he("relative flex items-center gap-1.5 sm:gap-2 px-3 sm:px-4 md:px-6 py-2.5 min-h-[44px] text-xs md:text-sm font-medium tracking-wide uppercase transition-all duration-300 rounded-full whitespace-nowrap",j?"bg-primary text-primary-foreground shadow-lg shadow-primary/20":"text-muted-foreground hover:text-foreground hover:bg-secondary/80"),"data-testid":`nav-${C.label.toLowerCase().replace(" ","-")}`,children:[a.jsx(C.icon,{className:he("w-4 h-4 flex-shrink-0 transition-transform duration-300",j&&"scale-110")}),a.jsx("span",{className:"hidden sm:inline",children:C.label})]})},C.href)})})]})]}),a.jsx("main",{className:"min-h-screen",children:a.jsx("div",{className:"max-w-6xl mx-auto px-4 md:px-8 lg:px-12 pt-6 pb-12 animate-in fade-in slide-in-from-bottom-4 duration-700",children:e})})]})}const q$=Pf("whitespace-nowrap inline-flex items-center rounded-md 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 hover-elevate ",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow-xs",secondary:"border-transparent bg-secondary text-secondary-foreground",destructive:"border-transparent bg-destructive text-destructive-foreground shadow-xs",outline:"text-foreground border [border-color:var(--badge-outline)]"}},defaultVariants:{variant:"default"}});function Le({className:e,variant:t,...s}){return a.jsx("div",{className:he(q$({variant:t}),e),...s})}const n4="/assets/luxury_home_with_vineyard_view-Cc466nUM.png",sh="/assets/luxury_black_chauffeur_car-CYn7COYe.png",ny="/assets/elegant_wine_tasting-Dw-_SVKT.png";function Hs(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function Dr(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}const s4=6048e5,W$=864e5;let G$={};function ah(){return G$}
vendor: 2,285 bytes, line 57
57function Qc(e,t){const s=ah(),i=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??s.weekStartsOn??s.locale?.options?.weekStartsOn??0,o=Hs(e),c=o.getDay(),u=(c<i?7:0)+c-i;return o.setDate(o.getDate()-u),o.setHours(0,0,0,0),o}function kf(e){return Qc(e,{weekStartsOn:1})}function a4(e){const t=Hs(e),s=t.getFullYear(),i=Dr(e,0);i.setFullYear(s+1,0,4),i.setHours(0,0,0,0);const o=kf(i),c=Dr(e,0);c.setFullYear(s,0,4),c.setHours(0,0,0,0);const u=kf(c);return t.getTime()>=o.getTime()?s+1:t.getTime()>=u.getTime()?s:s-1}function Gj(e){const t=Hs(e);return t.setHours(0,0,0,0),t}function Yj(e){const t=Hs(e),s=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return s.setUTCFullYear(t.getFullYear()),+e-+s}function Y$(e,t){const s=Gj(e),i=Gj(t),o=+s-Yj(s),c=+i-Yj(i);return Math.round((o-c)/W$)}function K$(e){const t=a4(e),s=Dr(e,0);return s.setFullYear(t,0,4),s.setHours(0,0,0,0),kf(s)}function Q$(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function X$(e){if(!Q$(e)&&typeof e!="number")return!1;const t=Hs(e);return!isNaN(Number(t))}function Z$(e){const t=Hs(e),s=Dr(e,0);return s.setFullYear(t.getFullYear(),0,1),s.setHours(0,0,0,0),s}const J$={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"}},eB=(e,t,s)=>{let i;const o=J$[e];return typeof o=="string"?i=o:t===1?i=o.one:i=o.other.replace("{{count}}
57",t.toString()),s?.addSuffix?s.comparison&&s.comparison>0?"in "+i:i+" ago":i};function pg(e){return(t={})=>{const s=t.width?String(t.width):e.defaultWidth;return e.formats[s]||e.formats[e.defaultWidth]}}const tB={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},nB={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},sB={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},aB={date:pg({formats:tB,defaultWidth:"full"}),time:pg({formats:nB,defaultWidth:"full"}),dateTime:pg({formats:sB,defaultWidth:"full"})},iB={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},rB=(e,t,s,i)=>iB[e];function gc(e){return(t,s)=>{const i=s?.context?String(s.context):"standalone";let o;if(i==="formatting"&&e.formattingValues){const u=e.defaultFormattingWidth||e.defaultWidth,f=s?.width?String(s.width):u;o=e.formattingValues[f]||e.formattingValues[u]}else{const u=e.defaultWidth,f=s?.width?String(s.width):e.defaultWidth;o=e.values[f]||e.values[u]}const c=e.argumentCallback?e.argumentCallback(t):t;return o[c]}}const oB={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},lB={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},cB={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"]},dB={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"]},uB={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"}},fB={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"}},hB=(e,t)=>{const s=Number(e),i=s%100;if(i>20||i<10)switch(i%10){case 1:return s+"st";case 2:return s+"nd";case 3:return s+"rd"}return s+"th"},mB={ordinalNumber:hB,era:gc({values:oB,defaultWidth:"wide"}),quarter:gc({values:lB,defaultWidth:"wide",argumentCallback:e=>e-1}),month:gc({values:cB,defaultWidth:"wide"}),day:gc({values:dB,defaultWidth:"wide"}),dayPeriod:gc({values:uB,defaultWidth:"wide",formattingValues:fB,defaultFormattingWidth:"wide"})};function xc(e){return(t,s={})=>{const i=s.width,o=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],c=t.match(o);if(!c)return null;const u=c[0],f=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],h=Array.isArray(f)?gB(f,y=>y.test(u)):pB(f,y=>y.test(u));let m;m=e.valueCallback?e.valueCallback(h):h,m=s.valueCallback?s.valueCallback(m):m;const x=t.slice(u.length);return{value:m,rest:x}}}function pB(e,t){for(const s in e)if(Object.prototype.hasOwnProperty.call(e,s)&&t(e[s]))return s}function gB(e,t){for(let s=0;s<e.length;s++)if(t(e[s]))return s}function xB(e){return(t,s={})=>{const i=t.match(e.matchPattern);if(!i)return null;const o=i[0],c=t.match(e.parsePattern);if(!c)return null;let u=e.valueCallback?e.valueCallback(c[0]):c[0];u=s.valueCallback?s.valueCallback(u):u;const f=t.slice(o.length);return{value:u,rest:f}}}const yB=/^(\d+)(th|st|nd|rd)?/i,vB=/\d+/i,bB={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},wB={any:[/^b/i,/^(a|c)/i]},jB={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},NB={any:[/1/i,/2/i,/3/i,/4/i]},SB={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},CB={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]},kB={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},TB={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]},EB={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},MB={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}},AB={ordinalNumber:xB({matchPattern:yB,parsePattern:vB,valueCallback:e=>parseInt(e,10)}),era:xc({matchPatterns:bB,defaultMatchWidth:"wide",parsePatterns:wB,defaultParseWidth:"any"}),quarter:xc({matchPatterns:jB,defaultMatchWidth:"wide",parsePatterns:NB,defaultParseWidth:"any",valueCallback:e=>e+1}),month:xc({matchPatterns:SB,defaultMatchWidth:"wide",parsePatterns:CB,defaultParseWidth:"any"}),day:xc({matchPatterns:kB,defaultMatchWidth:"wide",parsePatterns:TB,defaultParseWidth:"any"}),dayPeriod:xc({matchPatterns:EB,defaultMatchWidth:"any",parsePatterns:MB,defaultParseWidth:"any"})},DB={code:"en-US",formatDistance:eB,formatLong:aB,formatRelative:rB,localize:mB,match:AB,options:{weekStartsOn:0,firstWeekContainsDate:1}};function OB(e){const t=Hs(e);return Y$(t,Z$(t))+1}function RB(e){const t=Hs(e),s=+kf(t)-+K$(t);return Math.round(s/s4)+1}function i4(e,t){const s=Hs(e),i=s.getFullYear(),o=ah(),c=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,u=Dr(e,0);u.setFullYear(i+1,0,c),u.setHours(0,0,0,0);const f=Qc(u,t),h=Dr(e,0);h.setFullYear(i,0,c),h.setHours(0,0,0,0);const m=Qc(h,t);return s.getTime()>=f.getTime()?i+1:s.getTime()>=m.getTime()?i:i-1}function _B(e,t){const s=ah(),i=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??s.firstWeekContainsDate??s.locale?.options?.firstWeekContainsDate??1,o=i4(e,t),c=Dr(e,0);return c.setFullYear(o,0,i),c.setHours(0,0,0,0),Qc(c,t)}function PB(e,t){const s=Hs(e),i=+Qc(s,t)-+_B(s,t);return Math.round(i/s4)+1}function pt(e,t){const s=e<0?"-":"",i=Math.abs(e).toString().padStart(t,"0");return s+i}const Ei={y(e,t){const s=e.getFullYear(),i=s>0?s:1-s;return pt(t==="yy"?i%100:i,t.length)},M(e,t){const s=e.getMonth();return t==="M"?String(s+1):pt(s+1,2)},d(e,t){return pt(e.getDate(),t.length)},a(e,t){const s=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return s.toUpperCase();case"aaa":return s;case"aaaaa":return s[0];default:return s==="am"?"a.m.":"p.m."}},h(e,t){return pt(e.getHours()%12||12,t.length)},H(e,t){return pt(e.getHours(),t.length)},m(e,t){return pt(e.getMinutes(),t.length)},s(e,t){return pt(e.getSeconds(),t.length)},S(e,t){const s=t.length,i=e.getMilliseconds(),o=Math.trunc(i*Math.pow(10,s-3));return pt(o,t.length)}},Eo={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Kj={G:function(e,t,s){const i=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return s.era(i,{width:"abbreviated"});case"GGGGG":return s.era(i,{width:"narrow"});default:return s.era(i,{width:"wide"})}},y:function(e,t,s){if(t==="yo"){const i=e.getFullYear(),o=i>0?i:1-i;return s.ordinalNumber(o,{unit:"year"})}return Ei.y(e,t)},Y:function(e,t,s,i){const o=i4(e,i),c=o>0?o:1-o;if(t==="YY"){const u=c%100;return pt(u,2)}return t==="Yo"?s.ordinalNumber(c,{unit:"year"}):pt(c,t.length)},R:function(e,t){const s=a4(e);return pt(s,t.length)},u:function(e,t){const s=e.getFullYear();return pt(s,t.length)},Q:function(e,t,s){const i=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(i);case"QQ":return pt(i,2);case"Qo":return s.ordinalNumber(i,{unit:"quarter"});case"QQQ":return s.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return s.quarter(i,{width:"narrow",context:"formatting"});default:return s.quarter(i,{width:"wide",context:"formatting"})}},q:function(e,t,s){const i=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(i);case"qq":return pt(i,2);case"qo":return s.ordinalNumber(i,{unit:"quarter"});case"qqq":return s.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return s.quarter(i,{width:"narrow",context:"standalone"});default:return s.quarter(i,{width:"wide",context:"standalone"})}},M:function(e,t,s){const i=e.getMonth();switch(t){case"M":case"MM":return Ei.M(e,t);case"Mo":return s.ordinalNumber(i+1,{unit:"month"});case"MMM":return s.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return s.month(i,{width:"narrow",context:"formatting"});default:return s.month(i,{width:"wide",context:"formatting"})}},L:function(e,t,s){const i=e.getMonth();switch(t){case"L":return String(i+1);case"LL":return pt(i+1,2);case"Lo":return s.ordinalNumber(i+1,{unit:"month"});case"LLL":return s.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return s.month(i,{width:"narrow",context:"standalone"});default:return s.month(i,{width:"wide",context:"standalone"})}},w:function(e,t,s,i){const o=PB(e,i);return t==="wo"?s.ordinalNumber(o,{unit:"week"}):pt(o,t.length)},I:function(e,t,s){const i=RB(e);return t==="Io"?s.ordinalNumber(i,{unit:"week"}):pt(i,t.length)},d:function(e,t,s){return t==="do"?s.ordinalNumber(e.getDate(),{unit:"date"}):Ei.d(e,t)},D:function(e,t,s){const i=OB(e);return t==="Do"?s.ordinalNumber(i,{unit:"dayOfYear"}):pt(i,t.length)},E:function(e,t,s){const i=e.getDay();switch(t){case"E":case"EE":case"EEE":return s.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return s.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return s.day(i,{width:"short",context:"formatting"});default:return s.day(i,{width:"wide",context:"formatting"})}},e:function(e,t,s,i){const o=e.getDay(),c=(o-i.weekStartsOn+8)%7||7;switch(t){case"e":return String(c);case"ee":return pt(c,2);case"eo":return s.ordinalNumber(c,{unit:"day"});case"eee":return s.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return s.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return s.day(o,{width:"short",context:"formatting"});default:return s.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,s,i){const o=e.getDay(),c=(o-i.weekStartsOn+8)%7||7;switch(t){case"c":return String(c);case"cc":return pt(c,t.length);case"co":return s.ordinalNumber(c,{unit:"day"});case"ccc":return s.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return s.day(o,{width:"narrow",context:"standalone"});case"cccccc":return s.day(o,{width:"short",context:"standalone"});default:return s.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,s){const i=e.getDay(),o=i===0?7:i;switch(t){case"i":return String(o);case"ii":return pt(o,t.length);case"io":return s.ordinalNumber(o,{unit:"day"});case"iii":return s.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return s.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return s.day(i,{width:"short",context:"formatting"});default:return s.day(i,{width:"wide",context:"formatting"})}},a:function(e,t,s){const o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return s.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return s.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return s.dayPeriod(o,{width:"narrow",context:"formatting"});default:return s.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,s){const i=e.getHours();let o;switch(i===12?o=Eo.noon:i===0?o=Eo.midnight:o=i/12>
vendor: 4,193 bytes, line 57
57=1?"pm":"am",t){case"b":case"bb":return s.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return s.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return s.dayPeriod(o,{width:"narrow",context:"formatting"});default:return s.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,s){const i=e.getHours();let o;switch(i>=17?o=Eo.evening:i>=12?o=Eo.afternoon:i>=4?o=Eo.morning:o=Eo.night,t){case"B":case"BB":case"BBB":return s.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return s.dayPeriod(o,{width:"narrow",context:"formatting"});default:return s.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,s){if(t==="ho"){let i=e.getHours()%12;return i===0&&(i=12),s.ordinalNumber(i,{unit:"hour"})}return Ei.h(e,t)},H:function(e,t,s){return t==="Ho"?s.ordinalNumber(e.getHours(),{unit:"hour"}):Ei.H(e,t)},K:function(e,t,s){const i=e.getHours()%12;return t==="Ko"?s.ordinalNumber(i,{unit:"hour"}):pt(i,t.length)},k:function(e,t,s){let i=e.getHours();return i===0&&(i=24),t==="ko"?s.ordinalNumber(i,{unit:"hour"}):pt(i,t.length)},m:function(e,t,s){return t==="mo"?s.ordinalNumber(e.getMinutes(),{unit:"minute"}):Ei.m(e,t)},s:function(e,t,s){return t==="so"?s.ordinalNumber(e.getSeconds(),{unit:"second"}):Ei.s(e,t)},S:function(e,t){return Ei.S(e,t)},X:function(e,t,s){const i=e.getTimezoneOffset();if(i===0)return"Z";switch(t){case"X":return Xj(i);case"XXXX":case"XX":return yr(i);default:return yr(i,":")}},x:function(e,t,s){const i=e.getTimezoneOffset();switch(t){case"x":return Xj(i);case"xxxx":case"xx":return yr(i);default:return yr(i,":")}},O:function(e,t,s){const i=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Qj(i,":");default:return"GMT"+yr(i,":")}},z:function(e,t,s){const i=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Qj(i,":");default:return"GMT"+yr(i,":")}},t:function(e,t,s){const i=Math.trunc(e.getTime()/1e3);return pt(i,t.length)},T:function(e,t,s){const i=e.getTime();return pt(i,t.length)}};function Qj(e,t=""){const s=e>0?"-":"+",i=Math.abs(e),o=Math.trunc(i/60),c=i%60;return c===0?s+String(o):s+String(o)+t+pt(c,2)}function Xj(e,t){return e%60===0?(e>0?"-":"+")+pt(Math.abs(e)/60,2):yr(e,t)}function yr(e,t=""){const s=e>0?"-":"+",i=Math.abs(e),o=pt(Math.trunc(i/60),2),c=pt(i%60,2);return s+o+t+c}const Zj=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},r4=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},zB=(e,t)=>{const s=e.match(/(P+)(p+)?/)||[],i=s[1],o=s[2];if(!o)return Zj(e,t);let c;switch(i){case"P":c=t.dateTime({width:"short"});break;case"PP":c=t.dateTime({width:"medium"});break;case"PPP":c=t.dateTime({width:"long"});break;default:c=t.dateTime({width:"full"});break}return c.replace("{{date}}",Zj(i,t)).replace("{{time}}",r4(o,t))},LB={p:r4,P:zB},IB=/^D+$/,VB=/^Y+$/,$B=["D","DD","YY","YYYY"];function BB(e){return IB.test(e)}function FB(e){return VB.test(e)}function HB(e,t,s){const i=UB(e,t,s);if(console.warn(i),$B.includes(e))throw new RangeError(i)}function UB(e,t,s){const i=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${i} to the input \`${s}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const qB=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,WB=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,GB=/^'([^]*?)'?$/,YB=/''/g,KB=/[a-zA-Z]/;function kr(e,t,s){const i=ah(),o=i.locale??DB,c=i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,u=i.weekStartsOn??i.locale?.options?.weekStartsOn??0,f=Hs(e);if(!X$(f))throw new RangeError("Invalid time value");let h=t.match(WB).map(x=>{const y=x[0];if(y==="p"||y==="P"){const b=LB[y];return b(x,o.formatLong)}return x}).join("").match(qB).map(x=>{if(x==="''")return{isToken:!1,value:"'"};const y=x[0];if(y==="'")return{isToken:!1,value:QB(x)};if(Kj[y])return{isToken:!0,value:x};
57if(y.match(KB))throw new RangeError("Format string contains an unescaped latin alphabet character `"+y+"`");return{isToken:!1,value:x}});o.localize.preprocessor&&(h=o.localize.preprocessor(f,h));const m={firstWeekContainsDate:c,weekStartsOn:u,locale:o};return h.map(x=>{if(!x.isToken)return x.value;const y=x.value;(FB(y)||BB(y))&&HB(y,t,String(e));const b=Kj[y[0]];return b(f,y,o.localize,m)}).join("")}function QB(e){const t=e.match(GB);return t?t[1].replace(YB,"'"):e}const XB=[{id:"home",icon:a.jsx(Hi,{className:"w-5 h-5"}),label:"Home",href:"/smart-home"},{id:"grid",icon:a.jsx(GO,{className:"w-5 h-5"}),label:"Grid",href:null},{id:"rooms",icon:a.jsx(BS,{className:"w-5 h-5"}),label:"Rooms",href:null},{id:"devices",icon:a.jsx(Ha,{className:"w-5 h-5"}),label:"Devices",href:null},{id:"community",icon:a.jsx(Bo,{className:"w-5 h-5"}),label:"Community",href:"/community"},{id:"settings",icon:a.jsx(qS,{className:"w-5 h-5"}),label:"Settings",href:null}];function o4({activeTab:e,onTabChange:t,wsStatus:s,mode:i="smart-home"}){const[,o]=ns(),[c,u]=p.useState(null),f=p.useCallback(h=>{u(h),setTimeout(()=>u(null),300)},[]);return a.jsxs("nav",{className:i==="smart-home"?"flex items-center justify-center gap-1 px-6 py-3 bg-black/40 backdrop-blur-xl border-b border-white/10 relative":"flex items-center justify-center gap-1 px-4 py-3 mx-4 mt-3 bg-white/10 backdrop-blur-xl border border-white/20 rounded-2xl relative","data-testid":"homepad-nav-bar",children:[s&&a.jsx("span",{"data-testid":"ws-status-dot",title:s==="connected"?"Live":s==="connecting"?"Connecting":"Offline",className:`absolute top-2 right-2 w-2 h-2 rounded-full ${s==="connected"?"bg-emerald-400 shadow-[0_0_6px_rgba(52,211,153,0.5)]":s==="connecting"?"bg-amber-400 animate-pulse":"bg-red-400"}`}),XB.map(h=>{const m=i==="community"?h.id==="community":e===h.id;return a.jsxs("button",{onClick:()=>{if(i==="community"){if(h.id==="community")return;o("/smart-home");return}if(h.id==="community"){o("/community");return}t?.(h.id),f(`nav-${h.id}`)},className:`flex items-center gap-2 px-4 py-2 rounded-xl text-sm font-medium transition-all duration-200 josh-active-btn ${m?"bg-white/20 text-white":"text-white/50 hover:text-white/80 hover:bg-white/5"} ${c===`nav-${h.id}`?"josh-bounce":""}`,"data-testid":`nav-tab-${h.id}`,children:[h.icon,a.jsx("span",{className:"hidden sm:inline",children:h.label})]},h.id)})]})}const ZB={Sun:il,Cloud:dO,CloudSun:_S,CloudRain:oO,CloudDrizzle:tO,CloudLightning:iO,CloudFog:sO,Snowflake:V8};function JB(){return Gt({queryKey:["/api/weather"],staleTime:900*1e3,refetchInterval:1200*1e3})}function eF(){const e=new Date().getHours();return e<5?"Good Night":e<12?"Good Morning":e<17?"Good Afternoon":e<21?"Good Evening":"Good Night"}function Jj(){const{data:e=[]}=W5(),{data:t,isLoading:s}=JB(),{profile:i}=m0(),o=e.length,c=e.length>0?e[0]:null,u=i.name.split(" ")[0]||"Resident",f=eF(),h=t?.temperature??72,m=t?.condition??"Sunny",x=ZB[t?.icon??"Sun"]??il,y=t?.aqi!=null&&t?.aqiLabel!=null;return a.jsxs(Ii,{headerTop:a.jsx(o4,{mode:"community"}),children:[a.jsxs("div",{className:"relative rounded-3xl overflow-hidden shadow-2xl mb-10 group",children:[a.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/80 via-black/20 to-transparent z-10"}),a.jsx("img",{src:n4,alt:"DomoVita.AI",className:"w-full h-[250px] sm:h-[350px] md:h-[400px] object-cover transform group-hover:scale-105 transition-transform duration-1000"}),a.jsx("div",{className:"absolute top-6 right-6 z-20",children:a.jsxs(ey,{children:[a.jsx(ty,{asChild:!0,children:a.jsxs(Xe,{variant:"secondary",size:"icon",className:"rounded-full bg-white text-primary shadow-lg border-2 border-primary/20 hover:bg-primary hover:text-white hover:scale-110 transition-all duration-300 relative","data-testid":"button-notifications",children:[a.jsx(DS,{className:"w-5 h-5"}),o>0&&a.jsx("span",{className:"absolute top-0 right-0 w-3 h-3 bg-red-500 rounded-full border-2 border-transparent"})]})}),a.jsxs(nh,{className:"w-80 p-0",align:"end",children:[a.jsx("div",{className:"p-4 border-b",children:a.jsx("h3",{className:"font-serif text-lg",children:"Notifications"})}),a.jsx("div",{className:"max-h-[300px] overflow-y-auto",children:e.length>0?e.slice(0,5).map(b=>a.jsx("div",{className:"p-4 border-b last:border-0 hover:bg-muted/50 transition-colors",children:a.jsxs("div",{className:"flex items-start gap-3",children:[a.jsx("div",{className:"p-2 rounded-full bg-primary/10 text-primary mt-0.5",children:a.jsx(He,{className:"w-4 h-4"})}),a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsx("p",{className:"font-medium text-sm",children:b.title}),a.jsxs("p",{className:"text-xs text-muted-foreground mt-1",children:[b.status," ⢠",kr(new Date(b.date),"MMM d")]})]})]})},b.id)):a.jsx("div",{className:"p-6 text-center text-muted-foreground",children:a.jsx("p",{className:"text-sm",children:"No notifications yet"})})}),a.jsx("div",{className:"p-3 border-t",children:a.jsx(sn,{href:"/concierge",children:a.jsx(Xe,{variant:"ghost",className:"w-full text-sm","data-testid":"button-view-all-requests",children:"View All Requests"})})})]})]})}),a.jsxs("div",{className:"absolute bottom-0 left-0 p-5 sm:p-8 md:p-12 z-20 text-white",children:[a.jsx("p",{className:"text-xs sm:text-sm font-medium tracking-widest uppercase mb-2 opacity-90",children:"Welcome Home"}),a.jsxs("h1",{className:"text-2xl sm:text-4xl md:text-5xl font-serif mb-4 leading-tight","data-testid":"text-greeting",children:[f,", ",a.jsx("br",{}),u]}),a.jsxs("div",{className:`flex flex-wrap items-center gap-3 sm:gap-6 text-xs sm:text-sm font-medium transition-opacity duration-500 ${s?"opacity-50 animate-pulse":"opacity-90"}`,"data-testid":"weather-display",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(x,{className:"w-4 h-4"}),a.jsxs("span",{children:[h,"° ",m]})]}),y&&a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(Ao,{className:"w-4 h-4"}),a.jsxs("span",{children:["AQI ",t.aqi," (",t.aqiLabel,")"]})]})]})]})]}),a.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6 mb-12",children:[a.jsx(sn,{href:"/concierge",children:a.jsx(Se,{className:"bg-card/50 border-border/50 hover:bg-card hover:shadow-lg transition-all duration-300 group cursor-pointer","data-testid":"card-up-next",children:a.jsxs(Te,{className:"p-6",children:[a.jsxs("div",{className:"flex justify-between items-start mb-4",children:[a.jsx("div",{className:"p-2 rounded-full bg-primary/10 text-primary group-hover:bg-primary group-hover:text-primary-foreground transition-colors",children:a.jsx(Ka,{className:"w-5 h-5"})}),a.jsx(Le,{variant:"outline",className:"bg-background text-xs",children:"Up Next"})]}),c?a.jsxs(a.Fragment,{children:[a.jsx("h3",{className:"font-serif text-lg mb-1",children:c.title}),a.jsx("p",{className:"text-sm text-muted-foreground mb-3",children:kr(new Date(c.date),"EEEE, h:mm a")}),a.jsxs("div",{className:"flex items-center gap-2 text-xs font-medium text-primary",children:[a.jsxs("span",{className:"relative flex h-2 w-2",children:[a.jsx("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-primary opacity-75"}),a.jsx("span",{className:"relative inline-flex rounded-full h-2 w-2 bg-primary"})]}),c.status]})]}):a.jsxs(a.Fragment,{children:[a.jsx("h3",{className:"font-serif text-lg mb-1",children:"No upcoming services"}),a.jsx("p",{className:"text-sm text-muted-foreground mb-3",children:"Relax and enjoy your day."})]})]})})}),a.jsx(Se,{className:"border-primary/40 bg-primary/5 hover:bg-primary/10 hover:shadow-lg hover:shadow-
57primary/10 transition-all duration-300 group cursor-pointer","data-testid":"card-launch-party",children:a.jsxs(Te,{className:"p-6",children:[a.jsxs("div",{className:"flex justify-between items-start mb-4",children:[a.jsx("div",{className:"p-2 rounded-full bg-primary/15 text-primary",children:a.jsx(Fa,{className:"w-5 h-5"})}),a.jsxs(Le,{className:"bg-primary text-primary-foreground text-xs border-0 flex items-center gap-1.5",children:[a.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-primary-foreground animate-pulse"}),"Right Now"]})]}),a.jsx("h3",{className:"font-serif text-lg mb-1",children:"Launch Party"}),a.jsx("p",{className:"text-sm text-muted-foreground mb-1",children:"Sonoma Vineyard Estates"}),a.jsxs("a",{href:"https://www.paperlesspost.com/go/VKD8YEpuaYkNZJhkqR83a",target:"_blank",rel:"noopener noreferrer",className:"text-sm font-medium text-primary mb-4 flex items-center gap-1 hover:underline w-fit","data-testid":"link-launch-party",children:["Wing & Barrel Ranch",a.jsx(PS,{className:"w-3 h-3"})]}),a.jsx(sn,{href:"/concierge",children:a.jsxs(Xe,{size:"sm",variant:"outline",className:"w-full border-primary/30 text-primary hover:bg-primary hover:text-primary-foreground transition-all flex items-center gap-2 mt-2","data-testid":"button-schedule-ride",children:[a.jsx(Mr,{className:"w-3.5 h-3.5"}),"Schedule a Ride"]})})]})}),a.jsxs(Se,{className:"bg-primary text-primary-foreground border-none shadow-lg group cursor-pointer relative overflow-hidden",children:[a.jsx("div",{className:"absolute top-0 right-0 p-32 bg-white/5 rounded-full blur-3xl -mr-16 -mt-16 pointer-events-none"}),a.jsxs(Te,{className:"p-6 relative z-10 flex flex-col h-full justify-between",children:[a.jsxs("div",{children:[a.jsx("h3",{className:"font-serif text-xl mb-2",children:"Concierge Request"}),a.jsx("p",{className:"text-primary-foreground/80 text-sm",children:"Have a special request? Our team is standing by."})]}),a.jsx(sn,{href:"/concierge",children:a.jsxs(Xe,{variant:"secondary",className:"w-full mt-4 bg-white/10 hover:bg-white/20 border-0 text-white justify-between group-hover:px-6 transition-all",children:["Make a Request ",a.jsx(Vn,{className:"w-4 h-4 ml-2"})]})})]})]})]}),a.jsxs("div",{className:"mb-8",children:[a.jsxs("div",{className:"flex items-center justify-between mb-6",children:[a.jsx("h2",{className:"text-2xl font-serif text-foreground",children:"Curated Services"}),a.jsx(sn,{href:"/services",children:a.jsx(Xe,{variant:"link",className:"text-primary",children:"View All"})})]}),a.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8",children:[a.jsx(sn,{href:"/services",children:a.jsxs("div",{className:"group relative rounded-2xl overflow-hidden aspect-[16/9] cursor-pointer shadow-md hover:shadow-xl transition-all duration-500",children:[a.jsx("img",{src:ny,className:"absolute inset-0 w-full h-full object-cover transition-transform duration-700 group-hover:scale-110"}),a.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/80 to-transparent opacity-80 group-hover:opacity-90 transition-opacity"}),a.jsxs("div",{className:"absolute bottom-0 left-0 p-6 text-white transform translate-y-2 group-hover:translate-y-0 transition-transform",children:[a.jsx(Le,{className:"bg-white/20 hover:bg-white/30 text-white border-0 mb-3 backdrop-blur-md",children:"Winery Network"}),a.jsx("h3",{className:"text-2xl font-serif mb-2",children:"Priority Access & Tastings"}),a.jsx("p",{className:"text-white/80 text-sm line-clamp-2",children:"Exclusive member benefits at over 15 premier wineries in the valley."})]})]})}),a.jsx(sn,{href:"/services",children:a.jsxs("div",{className:"group relative rounded-2xl overflow-hidden aspect-[16/9] cursor-pointer shadow-md hover:shadow-xl transition-all duration-500",children:[a.jsx("img",{src:sh,className:"absolute inset-0 w-full h-full object-cover transition-transform duration-700 group-hover:scale-110"}),a.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/80 to-transparent opacity-80 group-hover:opacity-90 transition-opacity"}),a.jsxs("div",{className:"absolute bottom-0 left-0 p-6 text-white transform translate-y-2 group-hover:translate-y-0 transition-transform",children:[a.jsx(Le,{className:"bg-white/20 hover:bg-white/30 text-white border-0 mb-3 backdrop-blur-md",children:"Private Transport"}),a.jsx("h3",{className:"text-2xl font-serif mb-2",children:"On-Demand Chauffeur"}),a.jsx("p",{className:"text-white/80 text-sm line-clamp-2",children:"Luxury fleet available 24/7 for airport transfers and dinner service."})]})]})})]})]})]})}function zc(e,t,{checkForDefaultPrevented:s=!0}={}
vendor: 4,202 bytes, line 57
57){return function(o){if(e?.(o),s===!1||!o.defaultPrevented)return t?.(o)}}var tF=Bs[" useInsertionEffect ".trim().toString()]||ut;function nF({prop:e,defaultProp:t,onChange:s=()=>{},caller:i}){const[o,c,u]=sF({defaultProp:t,onChange:s}),f=e!==void 0,h=f?e:o;{const x=p.useRef(e!==void 0);p.useEffect(()=>{const y=x.current;y!==f&&console.warn(`${i} is changing from ${y?"controlled":"uncontrolled"} to ${f?"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.`),x.current=f},[f,i])}const m=p.useCallback(x=>{if(f){const y=aF(x)?x(e):x;y!==e&&u.current?.(y)}else c(x)},[f,e,c,u]);return[h,m]}function sF({defaultProp:e,onChange:t}){const[s,i]=p.useState(e),o=p.useRef(s),c=p.useRef(t);return tF(()=>{c.current=t},[t]),p.useEffect(()=>{o.current!==s&&(c.current?.(s),o.current=s)},[s,o]),[s,i,c]}function aF(e){return typeof e=="function"}function iF(e){const t=rF(e),s=p.forwardRef((i,o)=>{const{children:c,...u}=i,f=p.Children.toArray(c),h=f.find(lF);if(h){const m=h.props.children,x=f.map(y=>y===h?p.Children.count(m)>1?p.Children.only(null):p.isValidElement(m)?m.props.children:null:y);return a.jsx(t,{...u,ref:o,children:p.isValidElement(m)?p.cloneElement(m,void 0,x):null})}return a.jsx(t,{...u,ref:o,children:c})});return s.displayName=`${e}.Slot`,s}function rF(e){const t=p.forwardRef((s,i)=>{const{children:o,...c}=s;if(p.isValidElement(o)){const u=dF(o),f=cF(c,o.props);return o.type!==p.Fragment&&(f.ref=i?Fi(i,u):u),p.cloneElement(o,f)}return p.Children.count(o)>1?p.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var oF=Symbol("radix.slottable");function lF(e){return p.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===oF}function cF(e,t){const s={...t};for(const i in t){const o=e[i],c=t[i];/^on[A-Z]/.test(i)?o&&c?s[i]=(...f)=>{const h=c(...f);return o(...f),h}:o&&(s[i]=o):i==="style"?s[i]={...o,...c}:i==="className"&&(s[i]=[o,c].filter(Boolean).join(" "))}return{...e,...s}}function dF(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,s=t&&"isReactWarning"in t&&t.isReactWarning;return s?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,s=t&&"isReactWarning"in t&&t.isReactWarning,s?e.props.ref:e.props.ref||e.ref)}var ih="Dialog",[l4]=ss(ih),[uF,Us]=l4(ih),c4=e=>{const{__scopeDialog:t,children:s,open:i,defaultOpen:o,onOpenChange:c,modal:u=!0}=e,f=p.useRef(null),h=p.useRef(null),[m,x]=nF({prop:i,defaultProp:o??!1,onChange:c,caller:ih});return a.jsx(uF,{scope:t,triggerRef:f,contentRef:h,contentId:Wa(),titleId:Wa(),descriptionId:Wa(),open:m,onOpenChange:x,onOpenToggle:p.useCallback(()=>x(y=>!y),[x]),modal:u,children:s})};c4.displayName=ih;var d4="DialogTrigger",u4=p.forwardRef((e,t)=>{const{__scopeDialog:s,...i}=e,o=Us(d4,s),c=Ue(t,o.triggerRef);return a.jsx(Ie.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":iy(o.open),...i,ref:c,onClick:zc(e.onClick,o.onOpenToggle)})});u4.displayName=d4;var sy="DialogPortal",[fF,f4]=l4(sy,{forceMount:void 0}),h4=e=>{const{__scopeDialog:t,forceMount:s,children:i,container:o}=e,c=Us(sy,t);return a.jsx(fF,{scope:t,forceMount:s,children:p.Children.map(i,u=>a.jsx(pa,{present:s||c.open,children:a.jsx(sd,{asChild:!0,container:o,children:u})}))})};h4.displayName=sy;var Tf="DialogOverlay",m4=p.forwardRef((e,t)=>{const s=f4(Tf,e.__scopeDialog),{forceMount:i=s.forceMount,...o}=e,c=Us(Tf,e.__scopeDialog);return c.modal?a.jsx(pa,{present:i||c.open,children:a.jsx(mF,{...o,ref:t})}):null});m4.displayName=Tf;var hF=iF("DialogOverlay.RemoveScroll"),mF=p.forwardRef((e,t)=>{const{__scopeDialog:s,...i}=e,o=Us(Tf,s);return a.jsx(eh,{as:hF,allowPinchZoom:!0,shards:[o.contentRef],children:a.jsx(Ie.div,{"data-state":iy(o.open),...i,ref:t,style:{pointerEvents:"auto",...i.style}})})}),Or="DialogContent",p4=p.forwardRef((e,t)=>{const s=f4(Or,e.__scopeDialog),{forceMount:i=s.forceMount,...o}=e,c=Us(Or,e.__scopeDialog);return a.jsx(pa,{present:i||c.open,children:c.modal?a.jsx(pF,{...o,ref:t}):a.jsx(gF,{...o,ref:t})})});p4.displayName=Or;var pF=p.forwardRef((e,t)=>
vendor: 4,151 bytes, lines 57-61
57{const s=Us(Or,e.__scopeDialog),i=p.useRef(null),o=Ue(t,s.contentRef,i);return p.useEffect(()=>{const c=i.current;if(c)return Z0(c)},[]),a.jsx(g4,{...e,ref:o,trapFocus:s.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:zc(e.onCloseAutoFocus,c=>{c.preventDefault(),s.triggerRef.current?.focus()}),onPointerDownOutside:zc(e.onPointerDownOutside,c=>{const u=c.detail.originalEvent,f=u.button===0&&u.ctrlKey===!0;(u.button===2||f)&&c.preventDefault()}),onFocusOutside:zc(e.onFocusOutside,c=>c.preventDefault())})}),gF=p.forwardRef((e,t)=>{const s=Us(Or,e.__scopeDialog),i=p.useRef(!1),o=p.useRef(!1);return a.jsx(g4,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:c=>{e.onCloseAutoFocus?.(c),c.defaultPrevented||(i.current||s.triggerRef.current?.focus(),c.preventDefault()),i.current=!1,o.current=!1},onInteractOutside:c=>{e.onInteractOutside?.(c),c.defaultPrevented||(i.current=!0,c.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const u=c.target;s.triggerRef.current?.contains(u)&&c.preventDefault(),c.detail.originalEvent.type==="focusin"&&o.current&&c.preventDefault()}})}),g4=p.forwardRef((e,t)=>{const{__scopeDialog:s,trapFocus:i,onOpenAutoFocus:o,onCloseAutoFocus:c,...u}=e,f=Us(Or,s),h=p.useRef(null),m=Ue(t,h);return X0(),a.jsxs(a.Fragment,{children:[a.jsx(Zf,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:o,onUnmountAutoFocus:c,children:a.jsx(td,{role:"dialog",id:f.contentId,"aria-describedby":f.descriptionId,"aria-labelledby":f.titleId,"data-state":iy(f.open),...u,ref:m,onDismiss:()=>f.onOpenChange(!1)})}),a.jsxs(a.Fragment,{children:[a.jsx(xF,{titleId:f.titleId}),a.jsx(vF,{contentRef:h,descriptionId:f.descriptionId})]})]})}),ay="DialogTitle",x4=p.forwardRef((e,t)=>{const{__scopeDialog:s,...i}=e,o=Us(ay,s);return a.jsx(Ie.h2,{id:o.titleId,...i,ref:t})});x4.displayName=ay;var y4="DialogDescription",v4=p.forwardRef((e,t)=>{const{__scopeDialog:s,...i}=e,o=Us(y4,s);return a.jsx(Ie.p,{id:o.descriptionId,...i,ref:t})});v4.displayName=y4;var b4="DialogClose",w4=p.forwardRef((e,t)=>{const{__scopeDialog:s,...i}=e,o=Us(b4,s);return a.jsx(Ie.button,{type:"button",...i,ref:t,onClick:zc(e.onClick,()=>o.onOpenChange(!1))})});w4.displayName=b4;function iy(e){return e?"open":"closed"}var j4="DialogTitleWarning",[SK,N4]=_6(j4,{contentName:Or,titleName:ay,docsSlug:"dialog"}),xF=({titleId:e})=>{const t=N4(j4),s=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. 58 59If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. 60 61For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return p.useEffect(()=>{e&&(document.getElementById(e)||console.error(s))},[s,e]),null},yF="DialogDescriptionWarning",vF=({contentRef:e,descriptionId:t})=>{const i=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${N4(yF).contentName}}.`;return p.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(i))},[i,e,t]),null},bF=c4,wF=u4,jF=h4,S4=m4,C4=p4,k4=x4,T4=v4,NF=w4;const aa=bF,dd=wF,SF=jF,E4=p.forwardRef(({className:e,...t},s)=>a.jsx(S4,{ref:s,className:he("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",e),...t}));E4.displayName=S4.displayName;const la=p.forwardRef(({className:e,children:t,...s},i)=>a.jsxs(SF,{children:[a.jsx(E4,{}),a.jsxs(C4,{ref:i,className:he("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 max-h-[90vh] overflow-y-auto overscroll-contain 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",e),...s,children:[t,a.jsxs(NF,{className:"absolute right-4 top-4 roun
61ded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[a.jsx(Ui,{className:"h-4 w-4"}),a.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));la.displayName=C4.displayName;const ca=({className:e,...t})=>a.jsx("div",{className:he("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});ca.displayName="DialogHeader";const Vi=({className:e,...t})=>a.jsx("div",{className:he("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Vi.displayName="DialogFooter";const da=p.forwardRef(({className:e,...t},s)=>a.jsx(k4,{ref:s,className:he("text-lg font-semibold leading-none tracking-tight",e),...t}));da.displayName=k4.displayName;const ua=p.forwardRef(({className:e,...t},s)=>a.jsx(T4,{ref:s,className:he("text-sm text-muted-foreground",e),...t}));ua.displayName=T4.displayName;var CF=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],kF=CF.reduce((e,t)=>{const s=Q0(`Primitive.${t}`),i=p.forwardRef((o,c)=>{const{asChild:u,...f}=o,h=u?s:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),a.jsx(h,{...f,ref:c})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{}),TF="Label",M4=p.forwardRef((e,t)=>a.jsx(kF.label,{...e,ref:t,onMouseDown:s=>{s.target.closest("button, input, select, textarea")||(e.onMouseDown?.(s),!s.defaultPrevented&&s.detail>1&&s.preventDefault())}}));M4.displayName=TF;var A4=M4;const EF=Pf("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Ge=p.forwardRef(({className:e,...t},s)=>a.jsx(A4,{ref:s,className:he(EF(),e),...t}));Ge.displayName=A4.displayName;const MF="/assets/luxury_hotel_interior-C70AKi7n.png",AF="/assets/manicured_luxury_garden-CIWPC8iY.png",Ef="/assets/minimalist_navigation_map-CnB04Bne.png",Xc=p.forwardRef(({className:e,...t},s)=>a.jsx("textarea",{className:he("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:s,...t}));Xc.displayName="Textarea";function Mf(e,[t,s]){return Math.min(s,Math.max(t,e))}function xn(e,t,{checkForDefaultPrevented:s=!0}={}){return function(o){if(e?.(o),s===!1||!o.defaultPrevented)return t?.(o)}}function eN(e){const t=DF(e),s=p.forwardRef((i,o)=>{const{children:c,...u}=i,f=p.Children.toArray(c),h=f.find(RF);if(h){const m=h.props.children,x=f.map(y=>y===h?p.Children.count(m)>1?p.Children.only(null):p.isValidElement(m)?m.props.children:null:y);return a.jsx(t,{...u,ref:o,children:p.isValidElement(m)?p.cloneElement(m,void 0,x):null})}return a.jsx(t,{...u,ref:o,children:c})});return s.displayName=`${e}.Slot`,s}function DF(e){const t=p.forwardRef((s,i)=>{const{children:o,...c}=s;if(p.isValidElement(o)){const u=PF(o),f=_F(c,o.props);return o.type!==p.Fragment&&(f.ref=i?Fi(i,u):u),p.cloneElement(o,f)}return p.Children.count(o)>1?p.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var OF=Symbol("radix.slottable");function RF(e){return p.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===OF}function _F(e,t){const s={...t};for(const i in t){const o=e[i],c=t[i];/^on[A-Z]/.test(i)?o&&c?s[i]=(...f)=>{const h=c(...f);return o(...f),h}:o&&(s[i]=o):i==="style"?s[i]={...o,...c}:i==="className"&&(s[i]=[o,c].filter(Boolean).join(" "))}return{...e,...s}}function PF(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,s=t&&"isReactWarning"in t&&t.isReactWarning;return s?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,s=t&&"isReactWarning"in t&&t.isReactWarning,s?e.props.ref:e.props.ref||e.ref)}function ry(e){const t=e+"CollectionProvider",[s,i]=ss(t),[o,c]=s(t,{collectionRef:{current:null},itemMap:new Map}),u=j=>{const{scope:S,children:T}=j,M=de.useRef(null),k=de.useRef(new Map).current;return a.jsx(o,{scope:S,itemMap:k,collectionRef:M,children:T})};u.displayName=t;const f=e+"CollectionSlot",h=eN(f),m=de.forwardRef((j,S)=>{const{scope:T,children:M}=j,k=c(f,T),R=Ue(S,k.collectionRef);return a.jsx(h,{ref:R,children:M})});m.displayName=f;const x=e+"CollectionItemSlot",y="data-radix-collection-item",b=eN(x),w=de.forwardRef((j,S)=>{const{scope:T,children:M,...k}=j,R=de.useRef(null),D=Ue(S,R),P=c(x,T);return de.useEffect(()=>(P.itemMap.set(R,{ref:R,...k}),()=>{P.itemMap.delete(R)})),a.jsx(b,{[y]:"",ref:D,children:M})});w.displayName=x;function C(j){const S=c(e+"CollectionConsumer",j);return de.useCallback(()=>{const M=S.collectionRef.current;if(!M)return[];const k=Array.from(M.querySelectorAll(`[${y}]`));return Array.from(S.itemMap.values()).sort((P,O)=>k.indexOf(P.ref.current)-k.indexOf(O.ref.current))},[S.collectionRef,S.itemMap])}return[{Provider:u,Slot:m,ItemSlot:w}
vendor: 4,271 bytes, line 61
61,C,i]}var zF=p.createContext(void 0);function rh(e){const t=p.useContext(zF);return e||t||"ltr"}function LF(e){const t=IF(e),s=p.forwardRef((i,o)=>{const{children:c,...u}=i,f=p.Children.toArray(c),h=f.find($F);if(h){const m=h.props.children,x=f.map(y=>y===h?p.Children.count(m)>1?p.Children.only(null):p.isValidElement(m)?m.props.children:null:y);return a.jsx(t,{...u,ref:o,children:p.isValidElement(m)?p.cloneElement(m,void 0,x):null})}return a.jsx(t,{...u,ref:o,children:c})});return s.displayName=`${e}.Slot`,s}function IF(e){const t=p.forwardRef((s,i)=>{const{children:o,...c}=s;if(p.isValidElement(o)){const u=FF(o),f=BF(c,o.props);return o.type!==p.Fragment&&(f.ref=i?Fi(i,u):u),p.cloneElement(o,f)}return p.Children.count(o)>1?p.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var VF=Symbol("radix.slottable");function $F(e){return p.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===VF}function BF(e,t){const s={...t};for(const i in t){const o=e[i],c=t[i];/^on[A-Z]/.test(i)?o&&c?s[i]=(...f)=>{const h=c(...f);return o(...f),h}:o&&(s[i]=o):i==="style"?s[i]={...o,...c}:i==="className"&&(s[i]=[o,c].filter(Boolean).join(" "))}return{...e,...s}}function FF(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,s=t&&"isReactWarning"in t&&t.isReactWarning;return s?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,s=t&&"isReactWarning"in t&&t.isReactWarning,s?e.props.ref:e.props.ref||e.ref)}var HF=Bs[" useInsertionEffect ".trim().toString()]||ut;function tN({prop:e,defaultProp:t,onChange:s=()=>{},caller:i}){const[o,c,u]=UF({defaultProp:t,onChange:s}),f=e!==void 0,h=f?e:o;{const x=p.useRef(e!==void 0);p.useEffect(()=>{const y=x.current;y!==f&&console.warn(`${i} is changing from ${y?"controlled":"uncontrolled"} to ${f?"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.`),x.current=f},[f,i])}const m=p.useCallback(x=>{if(f){const y=qF(x)?x(e):x;y!==e&&u.current?.(y)}else c(x)},[f,e,c,u]);return[h,m]}function UF({defaultProp:e,onChange:t}){const[s,i]=p.useState(e),o=p.useRef(s),c=p.useRef(t);return HF(()=>{c.current=t},[t]),p.useEffect(()=>{o.current!==s&&(c.current?.(s),o.current=s)},[s,o]),[s,i,c]}function qF(e){return typeof e=="function"}function oh(e){const t=p.useRef({value:e,previous:e});return p.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var WF=[" ","Enter","ArrowUp","ArrowDown"],GF=[" ","Enter"],Rr="Select",[lh,ch,YF]=ry(Rr),[pl]=ss(Rr,[YF,dl]),dh=dl(),[KF,Gi]=pl(Rr),[QF,XF]=pl(Rr),D4=e=>{const{__scopeSelect:t,children:s,open:i,defaultOpen:o,onOpenChange:c,value:u,defaultValue:f,onValueChange:h,dir:m,name:x,autoComplete:y,disabled:b,required:w,form:C}=e,j=dh(t),[S,T]=p.useState(null),[M,k]=p.useState(null),[R,D]=p.useState(!1),P=rh(m),[O,_]=tN({prop:i,defaultProp:o??!1,onChange:c,caller:Rr}),[G,ne]=tN({prop:u,defaultProp:f,onChange:h,caller:Rr}),se=p.useRef(null),ce=S?C||!!S.closest("form"):!0,[Z,F]=p.useState(new Set),ie=Array.from(Z).map(I=>I.props.value).join(";");return a.jsx(R5,{...j,children:a.jsxs(KF,{required:w,scope:t,trigger:S,onTriggerChange:T,valueNode:M,onValueNodeChange:k,valueNodeHasChildren:R,onValueNodeHasChildrenChange:D,contentId:Wa(),value:G,onValueChange:ne,open:O,onOpenChange:_,dir:P,triggerPointerDownPosRef:se,disabled:b,children:[a.jsx(lh.Provider,{scope:t,children:a.jsx(QF,{scope:e.__scopeSelect,onNativeOptionAdd:p.useCallback(I=>{F(H=>new Set(H).add(I))},[]),onNativeOptionRemove:p.useCallback(I=>{F(H=>{const $=new Set(H);return $.delete(I),$})},[]),children:s})}),ce?a.jsxs(tT,{"aria-hidden":!0,required:w,tabIndex:-1,name:x,autoComplete:y,value:G,onChange:I=>ne(I.target.value),disabled:b,form:C,children:[G===void 0?a.jsx("option",{value:""}):null,Array.from(Z)]},ie):null]})})};D4.displayName=Rr;var O4="SelectTrigger",R4=p.forwardRef((e,t)=>{const{__scopeSelect:s,disabled:i=!1,...o}=e,c=dh(s),u=Gi(O4,s),f=u.disabled||i,h=Ue(t,u.onTriggerChange),m=ch(s),x=p.useRef("touch"),[y,b,w]=sT(j=>{const S=m().filter(k=>!k.disabled),T=S.find(k=>k.value===u.value),M=aT(S,j,T);M!==void 0&&u.onValueChange(M.value)}
vendor: 14,501 bytes, line 61
61),C=j=>{f||(u.onOpenChange(!0),w()),j&&(u.triggerPointerDownPosRef.current={x:Math.round(j.pageX),y:Math.round(j.pageY)})};return a.jsx(Hf,{asChild:!0,...c,children:a.jsx(Ie.button,{type:"button",role:"combobox","aria-controls":u.contentId,"aria-expanded":u.open,"aria-required":u.required,"aria-autocomplete":"none",dir:u.dir,"data-state":u.open?"open":"closed",disabled:f,"data-disabled":f?"":void 0,"data-placeholder":nT(u.value)?"":void 0,...o,ref:h,onClick:xn(o.onClick,j=>{j.currentTarget.focus(),x.current!=="mouse"&&C(j)}),onPointerDown:xn(o.onPointerDown,j=>{x.current=j.pointerType;const S=j.target;S.hasPointerCapture(j.pointerId)&&S.releasePointerCapture(j.pointerId),j.button===0&&j.ctrlKey===!1&&j.pointerType==="mouse"&&(C(j),j.preventDefault())}),onKeyDown:xn(o.onKeyDown,j=>{const S=y.current!=="";!(j.ctrlKey||j.altKey||j.metaKey)&&j.key.length===1&&b(j.key),!(S&&j.key===" ")&&WF.includes(j.key)&&(C(),j.preventDefault())})})})});R4.displayName=O4;var _4="SelectValue",P4=p.forwardRef((e,t)=>{const{__scopeSelect:s,className:i,style:o,children:c,placeholder:u="",...f}=e,h=Gi(_4,s),{onValueNodeHasChildrenChange:m}=h,x=c!==void 0,y=Ue(t,h.onValueNodeChange);return ut(()=>{m(x)},[m,x]),a.jsx(Ie.span,{...f,ref:y,style:{pointerEvents:"none"},children:nT(h.value)?a.jsx(a.Fragment,{children:u}):c})});P4.displayName=_4;var ZF="SelectIcon",z4=p.forwardRef((e,t)=>{const{__scopeSelect:s,children:i,...o}=e;return a.jsx(Ie.span,{"aria-hidden":!0,...o,ref:t,children:i||"â¼"})});z4.displayName=ZF;var JF="SelectPortal",L4=e=>a.jsx(sd,{asChild:!0,...e});L4.displayName=JF;var _r="SelectContent",I4=p.forwardRef((e,t)=>{const s=Gi(_r,e.__scopeSelect),[i,o]=p.useState();if(ut(()=>{o(new DocumentFragment)},[]),!s.open){const c=i;return c?Lr.createPortal(a.jsx(V4,{scope:e.__scopeSelect,children:a.jsx(lh.Slot,{scope:e.__scopeSelect,children:a.jsx("div",{children:e.children})})}),c):null}return a.jsx($4,{...e,ref:t})});I4.displayName=_r;var Ds=10,[V4,Yi]=pl(_r),eH="SelectContentImpl",tH=LF("SelectContent.RemoveScroll"),$4=p.forwardRef((e,t)=>{const{__scopeSelect:s,position:i="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:c,onPointerDownOutside:u,side:f,sideOffset:h,align:m,alignOffset:x,arrowPadding:y,collisionBoundary:b,collisionPadding:w,sticky:C,hideWhenDetached:j,avoidCollisions:S,...T}=e,M=Gi(_r,s),[k,R]=p.useState(null),[D,P]=p.useState(null),O=Ue(t,ee=>R(ee)),[_,G]=p.useState(null),[ne,se]=p.useState(null),ce=ch(s),[Z,F]=p.useState(!1),ie=p.useRef(!1);p.useEffect(()=>{if(k)return Z0(k)},[k]),X0();const I=p.useCallback(ee=>{const[Me,...Ce]=ce().map(Pe=>Pe.ref.current),[_e]=Ce.slice(-1),Ve=document.activeElement;for(const Pe of ee)if(Pe===Ve||(Pe?.scrollIntoView({block:"nearest"}),Pe===Me&&D&&(D.scrollTop=0),Pe===_e&&D&&(D.scrollTop=D.scrollHeight),Pe?.focus(),document.activeElement!==Ve))return},[ce,D]),H=p.useCallback(()=>I([_,k]),[I,_,k]);p.useEffect(()=>{Z&&H()},[Z,H]);const{onOpenChange:$,triggerPointerDownPosRef:re}=M;p.useEffect(()=>{if(k){let ee={x:0,y:0};const Me=_e=>{ee={x:Math.abs(Math.round(_e.pageX)-(re.current?.x??0)),y:Math.abs(Math.round(_e.pageY)-(re.current?.y??0))}},Ce=_e=>{ee.x<=10&&ee.y<=10?_e.preventDefault():k.contains(_e.target)||$(!1),document.removeEventListener("pointermove",Me),re.current=null};return re.current!==null&&(document.addEventListener("pointermove",Me),document.addEventListener("pointerup",Ce,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",Me),document.removeEventListener("pointerup",Ce,{capture:!0})}}},[k,$,re]),p.useEffect(()=>{const ee=()=>$(!1);return window.addEventListener("blur",ee),window.addEventListener("resize",ee),()=>{window.removeEventListener("blur",ee),window.removeEventListener("resize",ee)}},[$]);const[me,L]=sT(ee=>{const Me=ce().filter(Ve=>!Ve.disabled),Ce=Me.find(Ve=>Ve.ref.current===document.activeElement),_e=aT(Me,ee,Ce);_e&&setTimeout(()=>_e.ref.current.focus())}),K=p.useCallback((ee,Me,Ce)=>{const _e=!ie.current&&!Ce;(M.value!==void 0&&M.value===Me||_e)&&(G(ee),_e&&(ie.current=!0))},[M.value]),J=p.useCallback(()=>k?.focus(),[k]),oe=p.useCallback((ee,Me,Ce)=>{const _e=!ie.current&&!Ce;(M.value!==void 0&&M.value===Me||_e)&&se(ee)},[M.value]),pe=i==="popper"?vx:B4,we=pe===vx?{side:f,sideOffset:h,align:m,alignOffset:x,arrowPadding:y,collisionBoundary:b,collisionPadding:w,sticky:C,hideWhenDetached:j,avoidCollisions:S}:{};return a.jsx(V4,{scope:s,content:k,viewport:D,onViewportChange:P,itemRefCallback:K,selectedItem:_,onItemLeave:J,itemTextRefCallback:oe,focusSelectedItem:H,selectedItemText:ne,position:i,isPositioned:Z,searchRef:me,children:a.jsx(eh,{as:tH,allowPinchZoom:!0,children:a.jsx(Zf,{asChild:!0,trapped:M.open,onMountAutoFocus:ee=>{ee.preventDefault()},onUnmountAutoFocus:xn(o,ee=>{M.trigger?.focus({preventScroll:!0}),ee.preventDefault()}),children:a.jsx(td,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:ee=>ee.preventDefault(),onDismiss:()=>M.onOpenChange(!1),children:a.jsx(pe,{role:"listbox",id:M.contentId,"data-state":M.open?"open":"closed",dir:M.dir,onContextMenu:ee=>ee.preventDefault(),...T,...we,onPlaced:()=>F(!0),ref:O,style:{display:"flex",flexDirection:"column",outline:"none",...T.style},onKeyDown:xn(T.onKeyDown,ee=>{const Me=ee.ctrlKey||ee.altKey||ee.metaKey;if(ee.key==="Tab"&&ee.preventDefault(),!Me&&ee.key.length===1&&L(ee.key),["ArrowUp","ArrowDown","Home","End"].includes(ee.key)){let _e=ce().filter(Ve=>!Ve.disabled).map(Ve=>Ve.ref.current);if(["ArrowUp","End"].includes(ee.key)&&(_e=_e.slice().reverse()),["ArrowUp","ArrowDown"].includes(ee.key)){const Ve=ee.target,Pe=_e.indexOf(Ve);_e=_e.slice(Pe+1)}setTimeout(()=>I(_e)),ee.preventDefault()}})})})})})})});$4.displayName=eH;var nH="SelectItemAlignedPosition",B4=p.forwardRef((e,t)=>{const{__scopeSelect:s,onPlaced:i,...o}=e,c=Gi(_r,s),u=Yi(_r,s),[f,h]=p.useState(null),[m,x]=p.useState(null),y=Ue(t,O=>x(O)),b=ch(s),w=p.useRef(!1),C=p.useRef(!0),{viewport:j,selectedItem:S,selectedItemText:T,focusSelectedItem:M}=u,k=p.useCallback(()=>{if(c.trigger&&c.valueNode&&f&&m&&j&&S&&T){const O=c.trigger.getBoundingClientRect(),_=m.getBoundingClientRect(),G=c.valueNode.getBoundingClientRect(),ne=T.getBoundingClientRect();if(c.dir!=="rtl"){const Ve=ne.left-_.left,Pe=G.left-Ve,Tt=O.left-Pe,St=O.width+Tt,Fe=Math.max(St,_.width),ge=window.innerWidth-Ds,st=Mf(Pe,[Ds,Math.max(Ds,ge-Fe)]);f.style.minWidth=St+"px",f.style.left=st+"px"}else{const Ve=_.right-ne.right,Pe=window.innerWidth-G.right-Ve,Tt=window.innerWidth-O.right-Pe,St=O.width+Tt,Fe=Math.max(St,_.width),ge=window.innerWidth-Ds,st=Mf(Pe,[Ds,Math.max(Ds,ge-Fe)]);f.style.minWidth=St+"px",f.style.right=st+"px"}const se=b(),ce=window.innerHeight-Ds*2,Z=j.scrollHeight,F=window.getComputedStyle(m),ie=parseInt(F.borderTopWidth,10),I=parseInt(F.paddingTop,10),H=parseInt(F.borderBottomWidth,10),$=parseInt(F.paddingBottom,10),re=ie+I+Z+$+H,me=Math.min(S.offsetHeight*5,re),L=window.getComputedStyle(j),K=parseInt(L.paddingTop,10),J=parseInt(L.paddingBottom,10),oe=O.top+O.height/2-Ds,pe=ce-oe,we=S.offsetHeight/2,ee=S.offsetTop+we,Me=ie+I+ee,Ce=re-Me;if(Me<=oe){const Ve=se.length>0&&S===se[se.length-1].ref.current;f.style.bottom="0px";const Pe=m.clientHeight-j.offsetTop-j.offsetHeight,Tt=Math.max(pe,we+(Ve?J:0)+Pe+H),St=Me+Tt;f.style.height=St+"px"}else{const Ve=se.length>0&&S===se[0].ref.current;f.style.top="0px";const Tt=Math.max(oe,ie+j.offsetTop+(Ve?K:0)+we)+Ce;f.style.height=Tt+"px",j.scrollTop=Me-oe+j.offsetTop}f.style.margin=`${Ds}px 0`,f.style.minHeight=me+"px",f.style.maxHeight=ce+"px",i?.(),requestAnimationFrame(()=>w.current=!0)}},[b,c.trigger,c.valueNode,f,m,j,S,T,c.dir,i]);ut(()=>k(),[k]);const[R,D]=p.useState();ut(()=>{m&&D(window.getComputedStyle(m).zIndex)},[m]);const P=p.useCallback(O=>{O&&C.current===!0&&(k(),M?.(),C.current=!1)},[k,M]);return a.jsx(aH,{scope:s,contentWrapper:f,shouldExpandOnScrollRef:w,onScrollButtonChange:P,children:a.jsx("div",{ref:h,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:R},children:a.jsx(Ie.div,{...o,ref:y,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});B4.displayName=nH;var sH="SelectPopperPosition",vx=p.forwardRef((e,t)=>{const{__scopeSelect:s,align:i="start",collisionPadding:o=Ds,...c}=e,u=dh(s);return a.jsx(l0,{...u,...c,ref:t,align:i,collisionPadding:o,style:{boxSizing:"border-box",...c.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});vx.displayName=sH;var[aH,oy]=pl(_r,{}),bx="SelectViewport",F4=p.forwardRef((e,t)=>{const{__scopeSelect:s,nonce:i,...o}=e,c=Yi(bx,s),u=oy(bx,s),f=Ue(t,c.onViewportChange),h=p.useRef(0);return a.jsxs(a.Fragment,{children:[a.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:i}),a.jsx(lh.Slot,{scope:s,children:a.jsx(Ie.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:f,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:xn(o.onScroll,m=>{const x=m.currentTarget,{contentWrapper:y,shouldExpandOnScrollRef:b}=u;if(b?.current&&y){const w=Math.abs(h.current-x.scrollTop);if(w>0){const C=window.innerHeight-Ds*2,j=parseFloat(y.style.minHeight),S=parseFloat(y.style.height),T=Math.max(j,S);if(T<C){const M=T+w,k=Math.min(C,M),R=M-k;y.style.height=k+"px",y.style.bottom==="0px"&&(x.scrollTop=R>0?R:0,y.style.justifyContent="flex-end")}}}h.current=x.scrollTop})})})]})});F4.displayName=bx;var H4="SelectGroup",[iH,rH]=pl(H4),oH=p.forwardRef((e,t)=>{const{__scopeSelect:s,...i}=e,o=Wa();return a.jsx(iH,{scope:s,id:o,children:a.jsx(Ie.div,{role:"group","aria-labelledby":o,...i,ref:t})})});oH.displayName=H4;var U4="SelectLabel",q4=p.forwardRef((e,t)=>{const{__scopeSelect:s,...i}=e,o=rH(U4,s);return a.jsx(Ie.div,{id:o.id,...i,ref:t})});q4.displayName=U4;var Af="SelectItem",[lH,W4]=pl(Af),G4=p.forwardRef((e,t)=>{const{__scopeSelect:s,value:i,disabled:o=!1,textValue:c,...u}=e,f=Gi(Af,s),h=Yi(Af,s),m=f.value===i,[x,y]=p.useState(c??""),[b,w]=p.useState(!1),C=Ue(t,M=>h.itemRefCallback?.(M,i,o)),j=Wa(),S=p.useRef("touch"),T=()=>{o||(f.onValueChange(i),f.onOpenChange(!1))};if(i==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return a.jsx(lH,{scope:s,value:i,disabled:o,textId:j,isSelected:m,onItemTextChange:p.useCallback(M=>{y(k=>k||(M?.textContent??"").trim())},[]),children:a.jsx(lh.ItemSlot,{scope:s,value:i,disabled:o,textValue:x,children:a.jsx(Ie.div,{role:"option","aria-labelledby":j,"data-highlighted":b?"":void 0,"aria-selected":m&&b,"data-state":m?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...u,ref:C,onFocus:xn(u.onFocus,()=>w(!0)),onBlur:xn(u.onBlur,()=>w(!1)),onClick:xn(u.onClick,()=>{S.current!=="mouse"&&T()}),onPointerUp:xn(u.onPointerUp,()=>{S.current==="mouse"&&T()}),onPointerDown:xn(u.onPointerDown,M=>{S.current=M.pointerType}),onPointerMove:xn(u.onPointerMove,M=>{S.current=M.pointerType,o?h.onItemLeave?.():S.current==="mouse"&&M.currentTarget.focus({preventScroll:!0})}),onPointerLeave:xn(u.onPointerLeave,M=>{M.currentTarget===document.activeElement&&h.onItemLeave?.()}),onKeyDown:xn(u.onKeyDown,M=>{h.searchRef?.current!==""&&M.key===" "||(GF.includes(M.key)&&T(),M.key===" "&&M.preventDefault())})})})})});G4.displayName=Af;var Nc="SelectItemText",Y4=p.forwardRef((e,t)=>{const{__scopeSelect:s,className:i,style:o,...c}=e,u=Gi(Nc,s),f=Yi(Nc,s),h=W4(Nc,s),m=XF(Nc,s),[x,y]=p.useState(null),b=Ue(t,T=>y(T),h.onItemTextChange,T=>f.itemTextRefCallback?.(T,h.value,h.disabled)),w=x?.textContent,C=p.useMemo(()=>a.jsx("option",{value:h.value,disabled:h.disabled,children:w},h.value),[h.disabled,h.value,w]),{onNativeOptionAdd:j,onNativeOptionRemove:S}=m;return ut(()=>(j(C),()=>S(C)),[j,S,C]),a.jsxs(a.Fragment,{children:[a.jsx(Ie.span,{id:h.textId,...c,ref:b}),h.isSelected&&u.valueNode&&!u.valueNodeHasChildren?Lr.createPortal(c.children,u.valueNode):null]})});Y4.displayName=Nc;var K4="SelectItemIndicator",Q4=p.forwardRef((e,t)=>{const{__scopeSelect:s,...i}=e;return W4(K4,s).isSelected?a.jsx(Ie.span,{"aria-hidden":!0,...i,ref:t}):null});Q4.displayName=K4;var wx="SelectScrollUpButton",X4=p.forwardRef((e,t)=>{const s=Yi(wx,e.__scopeSelect),i=oy(wx,e.__scopeSelect),[o,c]=p.useState(!1),u=Ue(t,i.onScrollButtonChange);return ut(()=>{if(s.viewport&&s.isPositioned){let f=function(){const m=h.scrollTop>0;c(m)};const h=s.viewport;return f(),h.addEventListener("scroll",f),()=>h.removeEventListener("scroll",f)}},[s.viewport,s.isPositioned]),o?a.jsx(J4,{...e,ref:u,onAutoScroll:()=>{const{viewport:f,selectedItem:h}=s;f&&h&&(f.scrollTop=f.scrollTop-h.offsetHeight)}}):null});X4.displayName=wx;var jx="SelectScrollDownButton",Z4=p.forwardRef((e,t)=>{const s=Yi(jx,e.__scopeSelect),i=oy(jx,e.__scopeSelect),[o,c]=p.useState(!1),u=Ue(t,i.onScrollButtonChange);return ut(()=>{if(s.viewport&&s.isPositioned){let f=function(){const m=h.scrollHeight-h.clientHeight,x=Math.ceil(h.scrollTop)<m;c(x)};const h=s.viewport;return f(),h.addEventListener("scroll",f),()=>h.removeEventListener("scroll",f)}},[s.viewport,s.isPositioned]),o?a.jsx(J4,{...e,ref:u,onAutoScroll:()=>{const{viewport:f,selectedItem:h}=s;f&&h&&(f.scrollTop=f.scrollTop+h.offsetHeight)}}):null});Z4.displayName=jx;var J4=p.forwardRef((e,t)=>{const{__scopeSelect:s,onAutoScroll:i,...o}=e,c=Yi("SelectScrollButton",s),u=p.useRef(null),f=ch(s),h=p.useCallback(()=>{u.current!==null&&(window.clearInterval(u.current),u.current=null)},[]);return p.useEffect(()=>()=>h(),[h]),ut(()=>{f().find(x=>x.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[f]),a.jsx(Ie.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:xn(o.onPointerDown,()=>{u.current===null&&(u.current=window.setInterval(i,50))}),onPointerMove:xn(o.onPointerMove,()=>{c.onItemLeave?.(),u.current===null&&(u.current=window.setInterval(i,50))}),onPointerLeave:xn(o.onPointerLeave,()=>{h()})})}),cH="SelectSeparator",eT=p.forwardRef((e,t)=>
61{const{__scopeSelect:s,...i}=e;return a.jsx(Ie.div,{"aria-hidden":!0,...i,ref:t})});eT.displayName=cH;var Nx="SelectArrow",dH=p.forwardRef((e,t)=>{const{__scopeSelect:s,...i}=e,o=dh(s),c=Gi(Nx,s),u=Yi(Nx,s);return c.open&&u.position==="popper"?a.jsx(c0,{...o,...i,ref:t}):null});dH.displayName=Nx;var uH="SelectBubbleInput",tT=p.forwardRef(({__scopeSelect:e,value:t,...s},i)=>{const o=p.useRef(null),c=Ue(i,o),u=oh(t);return p.useEffect(()=>{const f=o.current;if(!f)return;const h=window.HTMLSelectElement.prototype,x=Object.getOwnPropertyDescriptor(h,"value").set;if(u!==t&&x){const y=new Event("change",{bubbles:!0});x.call(f,t),f.dispatchEvent(y)}},[u,t]),a.jsx(Ie.select,{...s,style:{..._5,...s.style},ref:c,defaultValue:t})});tT.displayName=uH;function nT(e){return e===""||e===void 0}function sT(e){const t=yn(e),s=p.useRef(""),i=p.useRef(0),o=p.useCallback(u=>{const f=s.current+u;t(f),(function h(m){s.current=m,window.clearTimeout(i.current),m!==""&&(i.current=window.setTimeout(()=>h(""),1e3))})(f)},[t]),c=p.useCallback(()=>{s.current="",window.clearTimeout(i.current)},[]);return p.useEffect(()=>()=>window.clearTimeout(i.current),[]),[s,o,c]}function aT(e,t,s){const o=t.length>1&&Array.from(t).every(m=>m===t[0])?t[0]:t,c=s?e.indexOf(s):-1;let u=fH(e,Math.max(c,0));o.length===1&&(u=u.filter(m=>m!==s));const h=u.find(m=>m.textValue.toLowerCase().startsWith(o.toLowerCase()));return h!==s?h:void 0}function fH(e,t){return e.map((s,i)=>e[(t+i)%e.length])}var hH=D4,iT=R4,mH=P4,pH=z4,gH=L4,rT=I4,xH=F4,oT=q4,lT=G4,yH=Y4,vH=Q4,cT=X4,dT=Z4,uT=eT;const Ln=hH,In=mH,kn=p.forwardRef(({className:e,children:t,...s},i)=>a.jsxs(iT,{ref:i,className:he("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...s,children:[t,a.jsx(pH,{asChild:!0,children:a.jsx(zf,{className:"h-4 w-4 opacity-50"})})]}));kn.displayName=iT.displayName;const fT=p.forwardRef(({className:e,...t},s)=>a.jsx(cT,{ref:s,className:he("flex cursor-default items-center justify-center py-1",e),...t,children:a.jsx(OS,{className:"h-4 w-4"})}));fT.displayName=cT.displayName;const hT=p.forwardRef(({className:e,...t},s)=>a.jsx(dT,{ref:s,className:he("flex cursor-default items-center justify-center py-1",e),...t,children:a.jsx(zf,{className:"h-4 w-4"})}));hT.displayName=dT.displayName;const Tn=p.forwardRef(({className:e,children:t,position:s="popper",...i},o)=>a.jsx(gH,{children:a.jsxs(rT,{ref:o,className:he("relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover 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 origin-[--radix-select-content-transform-origin]",s==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:s,...i,children:[a.jsx(fT,{}),a.jsx(xH,{className:he("p-1",s==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),a.jsx(hT,{})]})}));Tn.displayName=rT.displayName;const bH=p.forwardRef(({className:e,...t},s)=>a.jsx(oT,{ref:s,className:he("px-2 py-1.5 text-sm font-semibold",e),...t}));bH.displayName=oT.displayName;const De=p.forwardRef(({className:e,children:t,...s},i)=>a.jsxs(lT,{ref:i,className:he("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...s,children:[a.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsx(vH,{children:a.jsx(ia,{className:"h-4 w-4"})})}),a.jsx(yH,{children:t})]}));De.displayName=lT.displayName;const wH=p.forwardRef(({className:e,...t},s)=>a.jsx(uT,{ref:s,className:he("-mx-1 my-1 h-px bg-muted",e),...t}));wH.displayName=uT.displayName;function jH(e,t,{checkForDefaultPrevented:s=!0}={}
61){return function(o){if(e?.(o),s===!1||!o.defaultPrevented)return t?.(o)}}var NH=Bs[" useInsertionEffect ".trim().toString()]||ut;function SH({prop:e,defaultProp:t,onChange:s=()=>{},caller:i}){const[o,c,u]=CH({defaultProp:t,onChange:s}),f=e!==void 0,h=f?e:o;{const x=p.useRef(e!==void 0);p.useEffect(()=>{const y=x.current;y!==f&&console.warn(`${i} is changing from ${y?"controlled":"uncontrolled"} to ${f?"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.`),x.current=f},[f,i])}const m=p.useCallback(x=>{if(f){const y=kH(x)?x(e):x;y!==e&&u.current?.(y)}else c(x)},[f,e,c,u]);return[h,m]}function CH({defaultProp:e,onChange:t}){const[s,i]=p.useState(e),o=p.useRef(s),c=p.useRef(t);return NH(()=>{c.current=t},[t]),p.useEffect(()=>{o.current!==s&&(c.current?.(s),o.current=s)},[s,o]),[s,i,c]}function kH(e){return typeof e=="function"}var uh="Switch",[TH]=ss(uh),[EH,MH]=TH(uh),mT=p.forwardRef((e,t)=>{const{__scopeSwitch:s,name:i,checked:o,defaultChecked:c,required:u,disabled:f,value:h="on",onCheckedChange:m,form:x,...y}=e,[b,w]=p.useState(null),C=Ue(t,k=>w(k)),j=p.useRef(!1),S=b?x||!!b.closest("form"):!0,[T,M]=SH({prop:o,defaultProp:c??!1,onChange:m,caller:uh});return a.jsxs(EH,{scope:s,checked:T,disabled:f,children:[a.jsx(Ie.button,{type:"button",role:"switch","aria-checked":T,"aria-required":u,"data-state":yT(T),"data-disabled":f?"":void 0,disabled:f,value:h,...y,ref:C,onClick:jH(e.onClick,k=>{M(R=>!R),S&&(j.current=k.isPropagationStopped(),j.current||k.stopPropagation())})}),S&&a.jsx(xT,{control:b,bubbles:!j.current,name:i,value:h,checked:T,required:u,disabled:f,form:x,style:{transform:"translateX(-100%)"}})]})});mT.displayName=uh;var pT="SwitchThumb",gT=p.forwardRef((e,t)=>{const{__scopeSwitch:s,...i}=e,o=MH(pT,s);return a.jsx(Ie.span,{"data-state":yT(o.checked),"data-disabled":o.disabled?"":void 0,...i,ref:t})});gT.displayName=pT;var AH="SwitchBubbleInput",xT=p.forwardRef(({__scopeSwitch:e,control:t,checked:s,bubbles:i=!0,...o},c)=>{const u=p.useRef(null),f=Ue(u,c),h=oh(s),m=Ff(t);return p.useEffect(()=>{const x=u.current;if(!x)return;const y=window.HTMLInputElement.prototype,w=Object.getOwnPropertyDescriptor(y,"checked").set;if(h!==s&&w){const C=new Event("click",{bubbles:i});w.call(x,s),x.dispatchEvent(C)}},[h,s,i]),a.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:s,...o,tabIndex:-1,ref:f,style:{...o.style,...m,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});xT.displayName=AH;function yT(e){return e?"checked":"unchecked"}var vT=mT,DH=gT;const Pr=p.forwardRef(({className:e,...t},s)=>a.jsx(vT,{className:he("peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors 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 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",e),...t,ref:s,children:a.jsx(DH,{className:he("pointer-events-none block h-4 w-4 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0")})}));Pr.displayName=vT.displayName;const OH=[{id:1,title:"Luxury Transport",category:"Transport",description:"Book our S-Class fleet for airport transfers, winery tours, or evening events.",image:sh,icon:Mr,available:"24/7"},{id:2,title:"Winery Access",category:"Experience",description:"VIP status at 15+ partner wineries including private tasting rooms and barrel sampling.",image:ny,icon:ed,available:"10am - 6pm"},{id:3,title:"Hotel Partners",category:"Hospitality",description:"Preferred rates and room upgrades for your guests at The Auberge and Montage.",image:MF,icon:VS,available:"Always Open"},{id:4,title:"Landscape Maintenance",category:"Home Care",description:"Weekly scheduled maintenance, seasonal planting, and irrigation management.",image:AF,icon:IS,available:"Mon - Fri"},{id:5,title:"Private Chef",category:"Dining",description:"In-home dining experiences curated by our network of local executive chefs.",image:"https://images.unsplash.com/photo-1559339352-11d035aa65de?auto=format&fit=crop&q=80&w=1000",icon:Zx,available:"By Request"},{id:6,title:"Travel Concierge",category:"Travel",description:"Flight bookings, itinerary planning, and global accommodation arrangements.",image:"https://images.unsplash.com/photo-1436491865332-7a61a109cc05?auto=format&fit=crop&q=80&w=1000",icon:Kx,available:"Mon - Sat"},{id:7,title:"House Warranties",category:"Warranty",description:"Manage home appliance and system warranties. File claims and track repairs seamlessly.",image:"https://images.unsplash.com/photo-1558618666-fcd25c85cd64?auto=format&fit=crop&q=80&w=1000",icon:Go,available:"24/7 Claims"}];function RH(){const e=h0(),[t,s]=p.useState(null),[i,o]=p.useState(""),[c,u]=p.useState(""),[f,h]=p.useState(""),[m,x]=p.useState(""),[y,b]=p.useState("1"),[w,C]=p.useState(""),[j,S]=p.useState(!1),[T,M]=p.useState(""),[k,R]=p.useState(""),[D,P]=p.useState(""),[O,_]=p.useState("1"),[G,ne]=p.useState(""),[se,ce]=p.useState(""),[Z,F]=p.useState(""),[ie,I]=p.useState(""),[H,$]=p.useState(""),[re,me]=p.useState(""),[L,K]=p.useState(""),[J,oe]=p.useState(""),[pe,we]=p.useState(""),[ee,Me]=p.useState(""),[Ce,_e]=p.useState(!1),[Ve,Pe]=p.useState(!1),Tt=()=>{if(!t||!i||!c)return;if(t.category==="Transport"&&(!f||!m)){Ps({title:"Locations Required",description:"Please enter both pickup and drop-off addresses.",variant:"destructive"});return}const ge={Transport:"Transport","Home Care":"Maintenance",Dining:"Dining",Experience:"Event",Hospital
61ity:"Other",Travel:"Other",Warranty:"Maintenance"}[t.category]||"Other",st={notes:w};t.category==="Transport"&&(st.passengers=parseInt(y),st.luggage=j),t.category==="Experience"&&(st.guests=parseInt(y),st.winePreference=T,st.experienceType=k),t.category==="Hospitality"&&(st.hotelName=D,st.nights=parseInt(O),st.roomPreference=G),t.category==="Home Care"&&(st.focusArea=se,st.accessInfo=Z),t.category==="Dining"&&(st.cuisine=ie,st.guests=parseInt(y),st.dietaryRestrictions=H),t.category==="Travel"&&(st.destination=re,st.tripType=L),t.category==="Warranty"&&(st.warrantyType=J,st.applianceType=pe,st.issueDescription=ee),e.mutate({type:ge,title:`${t.title} Booking`,date:new Date(i+"T"+c).toISOString(),description:`Service: ${t.title}`,location:f?{address:f,dropoffAddress:m}:null,details:st},{onSuccess:()=>{_e(!1),Pe(!0)},onError:()=>{Ps({title:"Booking Failed",description:"Could not submit your booking. Please try again.",variant:"destructive"})}})},St=()=>{Pe(!1),o(""),u(""),h(""),x(""),b("1"),S(!1),C(""),M(""),R(""),P(""),_("1"),ne(""),ce(""),F(""),I(""),$(""),me(""),K(""),oe(""),we(""),Me(""),s(null)};return a.jsxs(Ii,{children:[a.jsxs("div",{className:"mb-8",children:[a.jsx("h1",{className:"text-2xl sm:text-3xl font-serif font-medium mb-2",children:"Our Services"}),a.jsx("p",{className:"text-muted-foreground",children:"Curated experiences and essential home management at your fingertips."})]}),a.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:[OH.map(Fe=>a.jsxs(Se,{className:"overflow-hidden border-0 shadow-md hover:shadow-xl transition-all duration-300 group flex flex-col",children:[a.jsxs("div",{className:"relative h-48 overflow-hidden",children:[a.jsx("img",{src:Fe.image,alt:Fe.title,className:"w-full h-full object-cover transition-transform duration-700 group-hover:scale-110"}),a.jsx("div",{className:"absolute top-4 right-4 bg-white/90 backdrop-blur-sm p-2 rounded-full text-primary shadow-sm",children:a.jsx(Fe.icon,{className:"w-5 h-5"})})]}),a.jsxs(Hc,{className:"pb-2",children:[a.jsxs("div",{className:"flex justify-between items-center mb-2",children:[a.jsx(Le,{variant:"secondary",className:"bg-secondary/50 font-normal",children:Fe.category}),a.jsx("span",{className:"text-xs text-muted-foreground font-medium",children:Fe.available})]}),a.jsx("h3",{className:"font-serif text-xl",children:Fe.title})]}),a.jsx(Te,{className:"flex-1 pb-4",children:a.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:Fe.description})}),a.jsx(Z5,{className:"pt-0 pb-6 px-6",children:a.jsxs(aa,{open:Ce&&t?.id===Fe.id,onOpenChange:ge=>{_e(ge),ge&&s(Fe)},children:[a.jsx(dd,{asChild:!0,children:a.jsxs(Xe,{className:"w-full group-hover:bg-primary group-hover:text-primary-foreground transition-colors",children:[a.jsx(ID,{className:"w-4 h-4 mr-2"})," Book Service"]})}),a.jsxs(la,{className:"sm:max-w-[500px]",children:[a.jsxs(ca,{children:[a.jsxs(da,{children:["Book ",Fe.title]}),a.jsx(ua,{children:"Request a reservation for this service. Our concierge will confirm availability."})]}),a.jsxs("div",{className:"grid gap-4 py-4",children:[a.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[a.jsxs("div",{className:"grid gap-2",children:[a.jsx(Ge,{htmlFor:"date",children:"Date"}),a.jsx(Ht,{id:"date",type:"date",value:i,onChange:ge=>o(ge.target.value)})]}),a.jsxs("div",{className:"grid gap-2",children:[a.jsx(Ge,{htmlFor:"time",children:"Time"}),a.jsx(Ht,{id:"time",type:"time",value:c,onChange:ge=>u(ge.target.value)})]})]}),t?.category==="Transport"&&a.jsxs("div",{className:"space-y-4",children:[a.jsxs("div",{className:"grid gap-2",children:[a.jsx(Ge,{htmlFor:"address",children:"Pickup Address"}),a.jsx(Ht,{id:"address",placeholder:"123 Vineyard Drive",value:f,onChange:ge=>h(ge.target.value)})]}),a.jsxs("div",{className:"grid gap-2",children:[a.jsx(Ge,{htmlFor:"dropoff",children:"Drop-off Destination"}),a.jsx(Ht,{id:"dropoff",placeholder:"e.g. SFO Terminal 2",value:m,onChange:ge=>x(ge.target.value)})]}),a.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[a.jsxs("div",{className:"grid gap-2",children:[a.jsx(Ge,{children:"Passengers"}),a.jsxs(Ln,{value:y,onValueChange:b,children:[a.jsx(kn,{children:a.jsx(In,{placeholder:"Select"})}),a.jsx(Tn,{children:[1,2,3,4,5,6].map(ge=>a.jsx(De,{value:ge.toString(),children:ge},ge))})]})]}),a.jsxs("div",{className:"flex flex-col gap-3 justify-center",children:[a.jsx(Ge,{className:"cursor-pointer",htmlFor:"luggage",children:"Luggage Assistance?"}),a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(Pr,{id:"luggage",checked:j,onCheckedChange:S}),a.jsx("span",{className:"text-sm text-muted-foreground",children:j?"Yes":"No"})]})]})]}),a.jsxs("div",{className:"rounded-lg overflow-hidden border border-border h-32 relative group",children:[a.jsx("img",{src:Ef,className:"w-full h-full object-cover opacity-80",alt:"Map Preview"}),a.jsx("div",{className:"absolute inset-0 flex items-center justify-center pointer-events-none",children:a.jsx(Vo,{className:"w-8 h-8 text-primary drop-shadow-lg fill-current"})})]})]}),t?.category==="Experience"&&a.jsxs("div",{className:"space-y-4",children:[a.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[a.jsxs("div",{className:"grid gap-2",children:[a.jsx(Ge,{children:"Guest Count"}),a.jsxs(Ln,{value:y,onValueChange:b,children:[a.jsx(kn,{children:a.jsx(In,{placeholder:"Select"})}),a.jsx(Tn,{children:[1,2,3,4,5,6,7,8].map(ge=>a.jsxs(De,{value:ge.toString(),children:[ge," Guests"]},ge))})]})]}),a.jsxs("div",{className:"grid gap-2",children:[a.jsx(Ge,{children:"Experience Type"}),a.jsxs(Ln,{value:k,onValueChange:R,children:[a.jsx(kn,{children:a.jsx(In,{placeholder:"Select"})}),a.jsxs(Tn,{children:[a.jsx(De,{value:"Tasting",children:"Standard Tasting"}),a.jsx(De,{value:"Tour",children:"Vineyard Tour"}),a.jsx(De,{value:"Lunch",children:"Lunch Pairing"}),a.jsx(De,{value:"Private",children:"Private Barrel Tasting"})]})]})]})]}),a.jsxs("div",{className:"grid gap-2",children:[a.jsx(Ge,{children:"Wine Preference"}),a.jsxs(Ln,{value:T,onValueChange:M,children:[a.jsx(kn,{children:a.jsx(In,{placeholder:"Prefered Varietals"})}),a.jsxs(Tn,{children:[a.jsx(De,{value:"Red",children:"Red Focus (Cabernet/Merlot)"}
61),a.jsx(De,{value:"White",children:"White Focus (Chardonnay/Sauvignon)"}),a.jsx(De,{value:"Mix",children:"Mixed Flight"}),a.jsx(De,{value:"Sparkling",children:"Sparkling Only"})]})]})]})]}),t?.category==="Hospitality"&&a.jsxs("div",{className:"space-y-4",children:[a.jsxs("div",{className:"grid gap-2",children:[a.jsx(Ge,{children:"Select Partner Hotel"}),a.jsxs(Ln,{value:D,onValueChange:P,children:[a.jsx(kn,{children:a.jsx(In,{placeholder:"Select Property"})}),a.jsxs(Tn,{children:[a.jsx(De,{value:"Auberge",children:"Auberge du Soleil"}),a.jsx(De,{value:"Montage",children:"Montage Healdsburg"}),a.jsx(De,{value:"Four Seasons",children:"Four Seasons Napa Valley"}),a.jsx(De,{value:"Solage",children:"Solage, Auberge Resorts"})]})]})]}),a.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[a.jsxs("div",{className:"grid gap-2",children:[a.jsx(Ge,{children:"Duration (Nights)"}),a.jsxs(Ln,{value:O,onValueChange:_,children:[a.jsx(kn,{children:a.jsx(In,{placeholder:"#"})}),a.jsx(Tn,{children:[1,2,3,4,5,7,10,14].map(ge=>a.jsxs(De,{value:ge.toString(),children:[ge," Nights"]},ge))})]})]}),a.jsxs("div",{className:"grid gap-2",children:[a.jsx(Ge,{children:"Room Preference"}),a.jsx(Ht,{placeholder:"e.g. King Suite, View...",value:G,onChange:ge=>ne(ge.target.value)})]})]})]}),t?.category==="Home Care"&&a.jsxs("div",{className:"space-y-4",children:[a.jsxs("div",{className:"grid gap-2",children:[a.jsx(Ge,{children:"Service Focus"}),a.jsxs(Ln,{value:se,onValueChange:ce,children:[a.jsx(kn,{children:a.jsx(In,{placeholder:"What needs attention?"})}),a.jsxs(Tn,{children:[a.jsx(De,{value:"General",children:"General Maintenance"}),a.jsx(De,{value:"Lawn",children:"Lawn Care / Mowing"}),a.jsx(De,{value:"Pruning",children:"Seasonal Pruning"}),a.jsx(De,{value:"Irrigation",children:"Irrigation Check"}),a.jsx(De,{value:"Planting",children:"New Planting"})]})]})]}),a.jsxs("div",{className:"grid gap-2",children:[a.jsx(Ge,{children:"Access Instructions"}),a.jsx(Ht,{placeholder:"e.g. Side gate code 1234, beware of dog",value:Z,onChange:ge=>F(ge.target.value)})]})]}),t?.category==="Dining"&&a.jsxs("div",{className:"space-y-4",children:[a.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[a.jsxs("div",{className:"grid gap-2",children:[a.jsx(Ge,{children:"Guests"}),a.jsxs(Ln,{value:y,onValueChange:b,children:[a.jsx(kn,{children:a.jsx(In,{placeholder:"#"})}),a.jsx(Tn,{children:[2,4,6,8,10,12,15,20].map(ge=>a.jsxs(De,{value:ge.toString(),children:[ge," Guests"]},ge))})]})]}),a.jsxs("div",{className:"grid gap-2",children:[a.jsx(Ge,{children:"Cuisine Style"}),a.jsx(Ht,{placeholder:"e.g. French, Italian, Sushi...",value:ie,onChange:ge=>I(ge.target.value)})]})]}),a.jsxs("div",{className:"grid gap-2",children:[a.jsx(Ge,{children:"Dietary Restrictions"}),a.jsx(Ht,{placeholder:"e.g. Gluten-free, Shellfish allergy...",value:H,onChange:ge=>$(ge.target.value)})]})]}),t?.category==="Travel"&&a.jsxs("div",{className:"space-y-4",children:[a.jsxs("div",{className:"grid gap-2",children:[a.jsx(Ge,{children:"Destination"}),a.jsx(Ht,{placeholder:"e.g. Paris, France",value:re,onChange:ge=>me(ge.target.value)})]}),a.jsxs("div",{className:"grid gap-2",children:[a.jsx(Ge,{children:"Trip Type"}),a.jsxs(Ln,{value:L,onValueChange:K,children:[a.jsx(kn,{children:a.jsx(In,{placeholder:"Select Type"})}),a.jsxs(Tn,{children:[a.jsx(De,{value:"Leisure",children:"Leisure / Vacation"}),a.jsx(De,{value:"Business",children:"Business"}),a.jsx(De,{value:"Family",children:"Family Trip"}),a.jsx(De,{value:"Honeymoon",children:"Honeymoon / Anniversary"})]})]})]})]}),t?.category==="Warranty"&&a.jsxs("div",{className:"space-y-4",children:[a.jsxs("div",{className:"grid gap-2",children:[a.jsx(Ge,{children:"Warranty Type"}),a.jsxs(Ln,{value:J,onValueChange:oe,children:[a.jsx(kn,{children:a.jsx(In,{placeholder:"Select Warranty Type"})}),a.jsxs(Tn,{children:[a.jsx(De,{value:"Appliance",children:"Appliance Warranty"}),a.jsx(De,{value:"HVAC",children:"HVAC System"}),a.jsx(De,{value:"Plumbing",children:"Plumbing"}),a.jsx(De,{value:"Electrical",children:"Electrical"}),a.jsx(De,{value:"Roofing",children:"Roofing"}),a.jsx(De,{value:"Pool",children:"Pool / Spa Equipment"}),a.jsx(De,{value:"Other",children:"Other Home System"})]})]})]}),a.jsxs("div",{className:"grid gap-2",children:[a.jsx(Ge,{children:"Appliance / System"}),a.jsx(Ht,{placeholder:"e.g. Sub-Zero Refrigerator, Carrier AC Unit...",value:pe,onCh
61ange:ge=>we(ge.target.value)})]}),a.jsxs("div",{className:"grid gap-2",children:[a.jsx(Ge,{children:"Issue Description"}),a.jsx(Xc,{placeholder:"Describe the issue you're experiencing...",value:ee,onChange:ge=>Me(ge.target.value),className:"h-24 resize-none"})]}),a.jsx("div",{className:"p-3 bg-primary/5 border border-primary/20 rounded-lg",children:a.jsxs("p",{className:"text-xs text-muted-foreground",children:[a.jsx(Go,{className:"w-4 h-4 inline mr-1 text-primary"}),"Your warranty claim will be processed and a service technician will be dispatched within 24-48 hours."]})})]}),a.jsxs("div",{className:"grid gap-2",children:[a.jsx(Ge,{htmlFor:"notes",children:t?.category==="Dining"?"Menu Requests / Notes":"Special Requests / Notes"}),a.jsx(Xc,{id:"notes",placeholder:t?.category==="Dining"?"Specific dishes or preferences...":"Any other details...",value:w,onChange:ge=>C(ge.target.value),className:"h-20 resize-none"})]}),a.jsxs("div",{className:"p-3 bg-secondary/30 rounded-lg flex items-start gap-3 text-sm text-muted-foreground",children:[a.jsx(Ka,{className:"w-4 h-4 mt-0.5"}),a.jsx("p",{children:"Typical response time is less than 15 minutes. You will receive a notification once confirmed."})]})]}),a.jsx(Vi,{children:a.jsx(Xe,{onClick:Tt,children:"Confirm Request"})})]})]})})]},Fe.id)),a.jsx(aa,{open:Ve,onOpenChange:Pe,children:a.jsxs(la,{className:"sm:max-w-[425px]",children:[a.jsxs(ca,{className:"text-center pt-6",children:[a.jsx("div",{className:"mx-auto w-12 h-12 bg-green-100 rounded-full flex items-center justify-center mb-4",children:a.jsx(ia,{className:"w-6 h-6 text-green-600"})}),a.jsx(da,{className:"text-2xl font-serif",children:"Booking Confirmed"}),a.jsx(ua,{children:"Your request has been successfully scheduled."})]}),a.jsxs("div",{className:"bg-secondary/20 rounded-xl p-6 my-4 space-y-4",children:[a.jsxs("div",{className:"flex justify-between border-b border-border/50 pb-3",children:[a.jsx("span",{className:"text-muted-foreground text-sm",children:"Service"}),a.jsx("span",{className:"font-medium text-sm",children:t?.title})]}),a.jsxs("div",{className:"flex justify-between border-b border-border/50 pb-3",children:[a.jsx("span",{className:"text-muted-foreground text-sm",children:"Date & Time"}),a.jsxs("span",{className:"font-medium text-sm",children:[i&&kr(new Date(i),"MMM d")," at ",c]})]}),f&&a.jsxs("div",{className:"space-y-3",children:[a.jsxs("div",{className:"space-y-2 pb-3 border-b border-border/50",children:[a.jsxs("div",{className:"flex justify-between items-start",children:[a.jsx("span",{className:"text-muted-foreground text-sm",children:"Pickup"}),a.jsx("span",{className:"font-medium text-sm text-right max-w-[200px] truncate",children:f})]}),m&&a.jsxs("div",{className:"flex justify-between items-start",children:[a.jsx("span",{className:"text-muted-foreground text-sm",children:"Drop-off"}),a.jsx("span",{className:"font-medium text-sm text-right max-w-[200px] truncate",children:m})]})]}),(y!=="1"||j||w||D||T||se||ie||re)&&a.jsxs("div",{className:"flex flex-wrap gap-2 pb-3 border-b border-border/50",children:[t?.category==="Transport"&&a.jsxs(a.Fragment,{children:[a.jsxs(Le,{variant:"outline",className:"text-xs font-normal",children:[a.jsx(Bo,{className:"w-3 h-3 mr-1"})," ",y," Passengers"]}),j&&a.jsxs(Le,{variant:"outline",className:"text-xs font-normal",children:[a.jsx(zD,{className:"w-3 h-3 mr-1"})," Luggage"]})]}),t?.category==="Experience"&&a.jsxs(a.Fragment,{children:[a.jsxs(Le,{variant:"outline",className:"text-xs font-normal",children:[a.jsx(Bo,{className:"w-3 h-3 mr-1"})," ",y," Guests"]}),k&&a.jsxs(Le,{variant:"outline",className:"text-xs font-normal",children:[a.jsx(ia,{className:"w-3 h-3 mr-1"})," ",k]}),T&&a.jsxs(Le,{variant:"outline",className:"text-xs font-normal",children:[a.jsx(ed,{className:"w-3 h-3 mr-1"})," ",T]})]}),t?.category==="Hospitality"&&a.jsxs(a.Fragment,{children:[D&&a.jsxs(Le,{variant:"outline",className:"text-xs font-normal",children:[a.jsx(VS,{className:"w-3 h-3 mr-1"})," ",D]}),a.jsxs(Le,{variant:"outline",className:"text-xs font-normal",children:[a.jsx(Ka,{className:"w-3 h-3 mr-1"})," ",O," Nights"]}),G&&a.jsx(Le,{variant:"outline",className:"text-xs font-normal",children:G})]}),t?.category==="Home Care"&&a.jsxs(a.Fragment,{children:[se&&a.jsxs(Le,{variant:"outline",className:"text-xs font-normal",children:[a.jsx(IS,{className:"w-3 h-3 mr-1"})," ",se]}),Z&&a.jsx(Le,{variant:"outline",className:"text-xs font-normal",children:"Access Info Provided"})]}),t?.category==="Dining"&&a.jsxs(a.Fragment,{children:[a.jsxs(Le,{variant:"outline",className:"text-xs font-normal",children:[a.jsx(Bo,{className:"w-3 h-3 mr-1"})," ",y," Guests"]}),ie&&a.jsxs(Le,{variant:"outline",className:"text-xs font-normal",children:[a.jsx(Zx,{className:"w-3 h-3 mr-1"})," ",ie]}),H&&a.jsx(Le,{variant:"outline",className:"text-xs font-normal",children:"Dietary Needs"})]}),t?.category==="Travel"&&a.jsxs(a.Fragment,{children:[re&&a.jsxs(Le,{variant:"outline",className:"text-xs font-normal",children:[a.jsx(Kx,{className:"w-3 h-3 mr-1"})," ",re]}),L&&a.jsx(Le,{variant:"outline",className:"text-xs font-normal",children:L})]}),w&&a.jsxs(Le,{variant:"outline",className:"text-xs font-normal",children:[a.jsx(zS,{className:"w-3 h-3 mr-1"})," ",t?.category==="Dining"?"Menu Notes":"Notes"]})]}),a.jsxs("div",{className:"h-24 rounded-lg overflow-hidden border border-border/50 relative",children:[a.jsx("img",{src:Ef,className:"w-full h-full object-cover",alt:"Location Map"}),a.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:a.jsx(Vo,{className:"w-6 h-6 text-primary fill-current drop-shadow-md"})})]})]})]}),a.jsx(Vi,{className:"sm:justify-center",children:a.jsx(Xe,{onClick:St,className:"w-full",children:"Return to Services"})})]})})]})]})}const _H=[{id:"chauffeur",title:"Chauffeur Service",description:"S-Class sedan for executive travel",icon:Mr,capacity:"1-3 passengers"},{id:"suv",title:"Luxury SUV",description:"Escalade or Range Rover for groups",icon:Mr,capacity:"4-6 passengers"},{id:"airport",title:"Airport Transfer",description:"SFO, OAK, or private terminals",icon:Kx,capacity:"Up to 6 passengers"}];function PH(){const e=h0(),[t,s]=p.useState(null),[i,o]=p.useState(""),[c,u]=p.useState(""),[f,h]=p.useState(""),[m,x]=p.useState(""),[y,b]=p.useState("1"),[w,C]=p.useState(!1),[j,S]=p.useState(""),[T,M]=p.useState(!1),[k,R]=p.useState(!1),D=()=>
61{if(!t||!i||!c||!f||!m){Ps({title:"Missing Information",description:"Please fill in all required fields.",variant:"destructive"});return}e.mutate({type:"Transport",title:`${t.title}`,date:new Date(i+"T"+c).toISOString(),description:`${t.description}`,location:{address:f,dropoffAddress:m},details:{passengers:parseInt(y),luggage:w,notes:j}},{onSuccess:()=>{M(!1),R(!0)},onError:()=>{Ps({title:"Booking Failed",description:"Could not submit your transport booking. Please try again.",variant:"destructive"})}})},P=()=>{R(!1),o(""),u(""),h(""),x(""),b("1"),C(!1),S(""),s(null)};return a.jsxs(Ii,{children:[a.jsxs("div",{className:"relative rounded-2xl overflow-hidden mb-10 group",children:[a.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-black/70 via-black/50 to-transparent z-10"}),a.jsx("img",{src:sh,alt:"Luxury Transport",className:"w-full h-[280px] object-cover"}),a.jsxs("div",{className:"absolute bottom-0 left-0 p-8 z-20 text-white",children:[a.jsx(Le,{className:"bg-white/20 text-white border-0 mb-3 backdrop-blur-md",children:"Available 24/7"}),a.jsx("h1",{className:"text-2xl sm:text-3xl md:text-4xl font-serif mb-2",children:"Private Transport"}),a.jsx("p",{className:"text-white/80 text-sm max-w-md",children:"Our fleet of luxury vehicles and professional chauffeurs are at your service around the clock."})]})]}),a.jsxs("div",{className:"grid grid-cols-3 gap-4 mb-10",children:[a.jsxs("div",{className:"text-center p-4 bg-card rounded-xl border border-border/50",children:[a.jsx("p",{className:"text-2xl font-serif text-primary",children:"15"}),a.jsx("p",{className:"text-xs text-muted-foreground uppercase tracking-wide",children:"Min Response"})]}),a.jsxs("div",{className:"text-center p-4 bg-card rounded-xl border border-border/50",children:[a.jsx("p",{className:"text-2xl font-serif text-primary",children:"24/7"}),a.jsx("p",{className:"text-xs text-muted-foreground uppercase tracking-wide",children:"Availability"})]}),a.jsxs("div",{className:"text-center p-4 bg-card rounded-xl border border-border/50",children:[a.jsx("p",{className:"text-2xl font-serif text-primary",children:"5â
"}),a.jsx("p",{className:"text-xs text-muted-foreground uppercase tracking-wide",children:"Rated Service"})]})]}),a.jsxs("div",{className:"mb-8",children:[a.jsx("h2",{className:"text-xl font-serif mb-6",children:"Choose Your Vehicle"}),a.jsx("div",{className:"grid gap-4",children:_H.map(O=>a.jsxs(aa,{open:T&&t?.id===O.id,onOpenChange:_=>{M(_),_&&s(O)},children:[a.jsx(dd,{asChild:!0,children:a.jsx(Se,{className:"cursor-pointer hover:shadow-lg hover:border-primary/30 transition-all duration-300 group","data-testid":`card-transport-${O.id}`,children:a.jsxs(Te,{className:"p-5 flex items-center gap-5",children:[a.jsx("div",{className:"p-4 rounded-xl bg-primary/10 text-primary group-hover:bg-primary group-hover:text-primary-foreground transition-colors",children:a.jsx(O.icon,{className:"w-6 h-6"})}),a.jsxs("div",{className:"flex-1",children:[a.jsx("h3",{className:"font-medium mb-1",children:O.title}),a.jsx("p",{className:"text-sm text-muted-foreground",children:O.description})]}),a.jsx("div",{className:"text-right",children:a.jsx(Le,{variant:"secondary",className:"text-xs",children:O.capacity})})]})})}),a.jsxs(la,{className:"sm:max-w-[500px]",children:[a.jsxs(ca,{children:[a.jsxs(da,{className:"font-serif text-xl",children:["Book ",O.title]}),a.jsxs(ua,{children:[O.description," ⢠",O.capacity]})]}),a.jsxs("div",{className:"grid gap-4 py-4",children:[a.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[a.jsxs("div",{className:"grid gap-2",children:[a.jsx(Ge,{htmlFor:"date",children:"Date"}),a.jsx(Ht,{id:"date",type:"date",value:i,onChange:_=>o(_.target.value),"data-testid":"input-transport-date"})]}),a.jsxs("div",{className:"grid gap-2",children:[a.jsx(Ge,{htmlFor:"time",children:"Pickup Time"}),a.jsx(Ht,{id:"time",type:"time",value:c,onChange:_=>u(_.target.value),"data-testid":"input-transport-time"})]})]}),a.jsxs("div",{className:"grid gap-2",children:[a.jsx(Ge,{htmlFor:"pickup",children:"Pickup Address"}),a.jsx(Ht,{id:"pickup",placeholder:"123 Vineyard Drive, Napa",value:f,onChange:_=>h(_.target.value),"data-testid":"input-pickup-address"})]}),a.jsxs("div",{className:"grid gap-2",children:[a.jsx(Ge,{htmlFor:"dropoff",children:"Drop-off Destination"}),a.jsx(Ht,{id:"dropoff",placeholder:"e.g. SFO Terminal 2, 450 Market St...",value:m,onChange:_=>x(_.target.value),"data-testid":"input-dropoff-address"})]}),a.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[a.jsxs("div",{className:"grid gap-2",children:[a.jsx(Ge,{children:"Passengers"}),a.jsxs(Ln,{value:y,onValueChange:b,children:[a.jsx(kn,{"data-testid":"select-passengers",children:a.jsx(In,{placeholder:"Select"})}),a.jsx(Tn,{children:[1,2,3,4,5,6].map(_=>a.jsx(De,{value:_.toString(),children:_},_))})]})]}),a.jsxs("div",{className:"flex flex-col gap-3 justify-center",children:[a.jsx(Ge,{htmlFor:"luggage",children:"Luggage Assistance?"}),a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(Pr,{id:"luggage",checked:w,onCheckedChange:C,"data-testid":"switch-luggage"}),a.jsx("span",{className:"text-sm text-muted-foreground",children:w?"Yes":"No"})]})]})]}),a.jsxs("div",{className:"rounded-lg overflow-hidden border border-border h-28 relative",children:[a.jsx("img",{src:Ef,className:"w-full h-full object-cover opacity-70",alt:"Route Preview"}),a.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:a.jsx(Vo,{className:"w-8 h-8 text-primary drop-shadow-lg"})})]}),a.jsxs("div",{className:"grid gap-2",children:[a.jsx(Ge,{htmlFor:"notes",children:"Special Requests"}),a.jsx(Xc,{id:"notes",placeholder:"Child seats, preferred route, stops along the way...",value:j,onChange:_=>S(_.target.value),className:"h-16 resize-none","data-testid":"textarea-transport-notes"})]}),a.jsxs("div",{className:"p-3 bg-secondary/30 rounded-lg flex items-start gap-3 text-sm text-muted-foreground",children:[a.jsx(Ka,{className:"w-4 h-4 mt-0.5"}),a.jsx("p",{children:"Your chauffeur will arrive 5 minutes early. Confirmation within 15 minutes."})]})]}),a.jsx(Vi,{children:a.jsx(Xe,{onClick:D,"data-testid":"button-confirm-transport",children:"Confirm Booking"})})]})]},O.id))})]}),a.jsx(aa,{open:k,onOpenChange:R,children:a.jsxs(la,{className:"sm:max-w-[425px]",children:[a.jsxs(ca,{className:"text-center pt-6",children:[a.jsx("div",{className:"mx-auto w-12 h-12 bg-green-100 rounded-full flex items-center justify-center mb-4",children:a.jsx(ia,{className:"w-6 h-6 text-green-600"})}),a.jsx(da,{className:"text-2xl font-serif",children:"Transport Confirmed"}),a.jsx(ua,{children:"Your driver will be notified immediately."})]}),a.jsxs("div",{className:"bg-secondary/20 rounded-xl p-6 my-4 space-y-4",children:[a.jsxs("div",{className:"flex justify-between border-b border-border/50 pb-3",children:[a.jsx("span",{className:"text-muted-foreground text-sm",children:"Vehicle"}),a.jsx("span",{className:"font-medium text-sm",children:t?.title})]}),a.jsxs("div",{className:"flex justify-between border-b border-border/50 pb-3",children:[a.jsx("span",{className:"text-muted-foreground text-sm",children:"Date & Time"}),a.jsxs("span",{className:"font-medium text-sm",children:[i&&kr(new Date(i),"MMM d")," at ",c]})]}),a.jsxs("div",{className:"space-y-2 pb-3 border-b border-border/50",children:[a.jsxs("div",{className:"flex justify-between items-start",children:[a.jsx("span",{className:"text-muted-foreground text-sm",children:"Pickup"}),a.jsx("span",{className:"font-medium text-sm text-right max-w-[200px] truncate",children:f})]}),a.jsxs("div",{className:"flex justify-between items-start",children:[a.jsx("span",{className:"text-muted-foreground text-sm",children:"Drop-off"}),a.jsx("span",{className:"font-medium text-sm text-right max-w-[200px] truncate",children:m})]})]}),a.jsxs("div",{className:"flex justify-between",children:[a.jsx("span",{className:"text-muted-foreground text-sm",children:"Status"}),a.jsx(Le,{className:"bg-amber-100 text-amber-800 hover:bg-amber-100",children:"Pending Confirmation"})]})]}),a.jsx(Vi,{children:a.jsx(Xe,{onClick:P,className:"w-full","data-testid":"button-close-confirmation",children:"Done"})})]})})]})}const zH=[{id:"delivery",label:"Delivery",icon:Z8,duration:"2 hours"},{id:"guest",label:"Guest",icon:sR,duration:"Today"},{id:"contractor",label:"Contractor",icon:mf,duration:"Full Day"},{id:"group",label:"Event Guests",icon:Bo,duration:"Custom"}];function LH(){const{data:e=[]}
61=G5(),t=Y5(),s=K5(),[i,o]=p.useState(!1),[c,u]=p.useState(""),[f,h]=p.useState(""),[m,x]=p.useState(""),[y,b]=p.useState(""),[w,C]=p.useState(!1),[j,S]=p.useState(""),T=k=>{u(k.id),x(k.duration),o(!0)},M=()=>{if(!f){Ps({title:"Name Required",description:"Please enter a name for the visitor.",variant:"destructive"});return}t.mutate({name:f,role:c.charAt(0).toUpperCase()+c.slice(1),accessDays:m},{onSuccess:()=>{Ps({title:"Access Granted",description:`${f} has been added to the guest list.`})}}),S(f),o(!1),C(!0),h(""),b("")};return a.jsxs(Ii,{children:[a.jsxs("div",{className:"mb-8",children:[a.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[a.jsx("div",{className:"p-2 rounded-full bg-primary/10",children:a.jsx(Ec,{className:"w-6 h-6 text-primary"})}),a.jsx("h1",{className:"text-2xl sm:text-3xl font-serif",children:"Gate Access"})]}),a.jsx("p",{className:"text-muted-foreground",children:"Grant quick access to visitors, deliveries, and service providers."})]}),a.jsxs("div",{className:"mb-10",children:[a.jsx("h2",{className:"text-sm font-medium text-muted-foreground uppercase tracking-wider mb-4",children:"Quick Access"}),a.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:zH.map(k=>a.jsx(Se,{className:"cursor-pointer hover:shadow-lg hover:border-primary/30 transition-all duration-300 group",onClick:()=>T(k),"data-testid":`quick-access-${k.id}`,children:a.jsxs(Te,{className:"p-5 text-center",children:[a.jsx("div",{className:"mx-auto w-12 h-12 rounded-full bg-primary/10 flex items-center justify-center mb-3 group-hover:bg-primary group-hover:text-primary-foreground transition-colors",children:a.jsx(k.icon,{className:"w-5 h-5"})}),a.jsx("h3",{className:"font-medium text-sm mb-1",children:k.label}),a.jsx("p",{className:"text-xs text-muted-foreground",children:k.duration})]})},k.id))})]}),a.jsxs("div",{className:"mb-8",children:[a.jsxs("div",{className:"flex items-center justify-between mb-4",children:[a.jsx("h2",{className:"text-sm font-medium text-muted-foreground uppercase tracking-wider",children:"Active Permissions"}),a.jsx(aa,{open:i&&!c,onOpenChange:k=>{o(k),k||u("")},children:a.jsx(dd,{asChild:!0,children:a.jsxs(Xe,{size:"sm",variant:"outline",className:"gap-2","data-testid":"button-add-permission",children:[a.jsx(Qx,{className:"w-4 h-4"})," Add Custom"]})})})]}),e.length===0?a.jsx(Se,{className:"border-dashed",children:a.jsxs(Te,{className:"p-8 text-center text-muted-foreground",children:[a.jsx(Ec,{className:"w-8 h-8 mx-auto mb-3 opacity-50"}),a.jsx("p",{className:"text-sm",children:"No active access permissions"}),a.jsx("p",{className:"text-xs mt-1",children:"Use Quick Access above to grant entry"})]})}):a.jsx("div",{className:"space-y-3",children:e.map(k=>a.jsx(Se,{className:"overflow-hidden","data-testid":`permission-${k.id}`,children:a.jsxs(Te,{className:"p-4 flex items-center gap-4",children:[a.jsx("div",{className:"w-10 h-10 rounded-full bg-secondary flex items-center justify-center text-sm font-medium",children:k.name.charAt(0)}),a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsx("h3",{className:"font-medium text-sm truncate",children:k.name}),a.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:[a.jsx(Le,{variant:"secondary",className:"text-[10px] px-2",children:k.role}),a.jsx("span",{children:"â¢"}),a.jsx(Ka,{className:"w-3 h-3"}),a.jsx("span",{children:k.accessDays})]})]}),a.jsx(Xe,{variant:"ghost",size:"icon",className:"text-muted-foreground hover:text-destructive",onClick:()=>s.mutate(k.id,{onSuccess:()=>Ps({title:"Access Revoked",description:"Guest has been removed from the access list."})}),"data-testid":`button-revoke-${k.id}`,children:a.jsx(Xx,{className:"w-4 h-4"})})]})},k.id))})]}),a.jsx(Se,{className:"bg-secondary/30 border-border/50",children:a.jsx(Te,{className:"p-6",children:a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsxs("div",{children:[a.jsx("h3",{className:"font-medium mb-1",children:"Front Gate Status"}),a.jsx("p",{className:"text-sm text-muted-foreground",children:"Main entrance ⢠Camera active"})]}),a.jsxs(Le,{className:"bg-green-100 text-green-800 hover:bg-green-100",children:[a.jsx("span",{className:"w-2 h-2 rounded-full bg-green-500 mr-2 animate-pulse"}),"Secured"]})]})})}),a.jsx(aa,{open:i,onOpenChange:k=>{o(k),k||u("")},children:a.jsxs(la,{className:"sm:max-w-[425px]",children:[a.jsxs(ca,{children:[a.jsx(da,{className:"font-serif text-xl",children:"Grant Gate Access"}),a.jsx(ua,{children:"The visitor will receive a one-time access code for entry."})]}),a.jsxs("div",{className:"grid gap-4 py-4",children:[a.jsxs("div",{className:"grid gap-2",children:[a.jsx(Ge,{htmlFor:"name",children:"Visitor Name"}),a.jsx(Ht,{id:"name",placeholder:"Enter name or company",value:f,onChange:k=>h(k.target.value),"data-testid":"input-visitor-name"})]}),a.jsxs("div",{className:"grid gap-2",children:[a.jsx(Ge,{children:"Access Type"}),a.jsxs(Ln,{value:c,onValueChange:u,children:[a.jsx(kn,{"data-testid":"select-access-type",children:a.jsx(In,{placeholder:"Select type"})}),a.jsxs(Tn,{children:[a.jsx(De,{value:"delivery",children:"Delivery"}),a.jsx(De,{value:"guest",children:"Guest"}),a.jsx(De,{value:"contractor",children:"Contractor"}),a.jsx(De,{value:"group",children:"Event Guests"})]})]})]}),a.jsxs("div",{className:"grid gap-2",children:[a.jsx(Ge,{children:"Access Duration"}),a.jsxs(Ln,{value:m,onValueChange:x,children:[a.jsx(kn,{"data-testid":"select-duration",children:a.jsx(In,{placeholder:"Select duration"})}),a.jsxs(Tn,{children:[a.jsx(De,{value:"1 hour",children:"1 Hour"}),a.jsx(De,{value:"2 hours",children:"2 Hours"}),a.jsx(De,{value:"Today",children:"Today Only"}),a.jsx(De,{value:"Full Day",children:"Full Day (24 hrs)"}),a.jsx(De,{value:"This Week",children:"This Week"}),a.jsx(De,{value:"Recurring",children:"Recurring Access"})]})]})]}),a.jsxs("div",{className:"grid gap-2",children:[a.jsx(Ge,{htmlFor:"vehicle",children:"Vehicle Info (Optional)"}),a.jsx(Ht,{id:"vehicle",placeholder:"e.g. White Ford van, License ABC123",value:y,onChange:k=>b(k.target.value),"data-testid":"input-vehicle"})]}),a.jsx("div",{className:"p-3 bg-primary/5 border border-primary/20 rounded-lg",children:a.jsxs("p",{className:"text-xs text-muted-foreground",children:[a.jsx(Ec,{className:"w-4 h-4 inline mr-1 text-primary"}),"Access code will be sent to your phone and can be shared with the visitor."]})})]}),a.jsx(Vi,{children:a.jsx(Xe,{onClick:M,className:"w-full","data-testid":"button-grant-access",children:"Grant Access"})})]})}),a.jsx(aa,{open:w,onOpenChange:C,children:a.jsxs(la,{className:"sm:max-w-[350px]",children:[a.jsxs(ca,{className:"text-center pt-6",children:[a.jsx("div",{className:"mx-auto w-12 h-12 bg-green-100 rounded-full flex items-center justify-center mb-4",children:a.jsx(ia,{className:"w-6 h-6 text-green-600"})}),a.jsx(da,{className:"text-xl font-serif",children:"Access Granted"}),a.jsxs(ua,{children:[j," can now enter through the front gate."]})]}),a.jsxs("div",{className:"bg-secondary/30 rounded-xl p-6 my-4 text-center",children:[a.jsx("p",{className:"text-xs text-muted-foreground uppercase tracking-wider mb-2",children:"One-Time Code"}),a.jsx("p",{className:"text-3xl font-mono font-bold tracking-widest text-primary",children:Math.floor(1e5+Math.random()*9e5)})]}),a.jsx(Vi,{children:a.jsx(Xe,{onClick:()=>C(!1),className:"w-full","data-testid":"button-done",children:"Done"})})]})})]})}function IH(e,t,s="long"){return new Intl.DateTimeFormat("en-US",{hour:"numeric",timeZone:e,timeZoneName:s}).format(t).split(/\s/g).slice(2).join(" ")}const VH={},Sc={};function Nr(e,t){try{const i=(VH[e]||=new Intl.DateTimeFormat("en-US",{timeZone:e,timeZoneName:"longOffset"}).format)(t).split("GMT")[1];return i in Sc?Sc[i]:nN(i,i.split(":"))}catch{if(e in Sc)return Sc[e];const s=e?.match($H);return s?nN(e,s.slice(1)):NaN}}const $H=/([+-]\d\d):?(\d\d)?/;function nN(e,t){const s=+(t[0]||0),i=+(t[1]||0),o=+(t[2]||0)/60;return Sc[e]=s*60+i>0?s*60+i+o:s*60-i-o}class ea extends Date{constructor(...t){super(),t.length>1&&typeof t[t.length-1]=="string"&&(this.timeZone=t.pop()),this.internal=new Date,isNaN(Nr(this.timeZone,this))?this.setTime(NaN):t.length?typeof t[0]=="number"&&(t.length===1||t.length===2&&typeof t[1]!="number")?this.setTime(t[0]):typeof t[0]=="string"?this.setTime(+new Date(t[0])
vendor: 2,763 bytes, line 61
61):t[0]instanceof Date?this.setTime(+t[0]):(this.setTime(+new Date(...t)),bT(this),Sx(this)):this.setTime(Date.now())}static tz(t,...s){return s.length?new ea(...s,t):new ea(Date.now(),t)}withTimeZone(t){return new ea(+this,t)}getTimezoneOffset(){const t=-Nr(this.timeZone,this);return t>0?Math.floor(t):Math.ceil(t)}setTime(t){return Date.prototype.setTime.apply(this,arguments),Sx(this),+this}[Symbol.for("constructDateFrom")](t){return new ea(+new Date(t),this.timeZone)}}const sN=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!sN.test(e))return;const t=e.replace(sN,"$1UTC");ea.prototype[t]&&(e.startsWith("get")?ea.prototype[e]=function(){return this.internal[t]()}:(ea.prototype[e]=function(){return Date.prototype[t].apply(this.internal,arguments),BH(this),+this},ea.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),Sx(this),+this}))});function Sx(e){e.internal.setTime(+e),e.internal.setUTCSeconds(e.internal.getUTCSeconds()-Math.round(-Nr(e.timeZone,e)*60))}function BH(e){Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),bT(e)}function bT(e){const t=Nr(e.timeZone,e),s=t>0?Math.floor(t):Math.ceil(t),i=new Date(+e);i.setUTCHours(i.getUTCHours()-1);const o=-new Date(+e).getTimezoneOffset(),c=-new Date(+i).getTimezoneOffset(),u=o-c,f=Date.prototype.getHours.apply(e)!==e.internal.getUTCHours();u&&f&&e.internal.setUTCMinutes(e.internal.getUTCMinutes()+u);const h=o-s;h&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+h);const m=new Date(+e);m.setUTCSeconds(0);const x=o>0?m.getSeconds():(m.getSeconds()-60)%60,y=Math.round(-(Nr(e.timeZone,e)*60))%60;(y||x)&&(e.internal.setUTCSeconds(e.internal.getUTCSeconds()+y),Date.prototype.setUTCSeconds.call(e,Date.prototype.getUTCSeconds.call(e)+y+x));const b=Nr(e.timeZone,e),w=b>0?Math.floor(b):Math.ceil(b),j=-new Date(+e).getTimezoneOffset()-w,S=w!==s,T=j-h;if(S&&T){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+T);const M=Nr(e.timeZone,e),k=M>0?Math.floor(M):Math.ceil(M),R=w-k;R&&(e.internal.setUTCMinutes(e.internal.getUTCMinutes()+R),Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+R))}}class wn extends ea{static tz(t,...s){return s.length?new wn(...s,t):new wn(Date.now(),t)}toISOString(){const[t,s,i]=this.tzComponents(),o=`${t}${s}:${i}`;return this.internal.toISOString().slice(0,-1)+o}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){const[t,s,i,o]=this.internal.toUTCString().split(" ");return`${t?.slice(0,-1)} ${i} ${s} ${o}`}
61toTimeString(){const t=this.internal.toUTCString().split(" ")[4],[s,i,o]=this.tzComponents();return`${t} GMT${s}${i}${o} (${IH(this.timeZone,this)})`}toLocaleString(t,s){return Date.prototype.toLocaleString.call(this,t,{...s,timeZone:s?.timeZone||this.timeZone})}toLocaleDateString(t,s){return Date.prototype.toLocaleDateString.call(this,t,{...s,timeZone:s?.timeZone||this.timeZone})}toLocaleTimeString(t,s){return Date.prototype.toLocaleTimeString.call(this,t,{...s,timeZone:s?.timeZone||this.timeZone})}tzComponents(){const t=this.getTimezoneOffset(),s=t>0?"-":"+",i=String(Math.floor(Math.abs(t)/60)).padStart(2,"0"),o=String(Math.abs(t)%60).padStart(2,"0");return[s,i,o]}withTimeZone(t){return new wn(+this,t)}[Symbol.for("constructDateFrom")](t){return new wn(+new Date(t),this.timeZone)}}const wT=6048e5,FH=864e5,aN=Symbol.for("constructDateFrom");function en(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&aN in e?e[aN](t):e instanceof Date?new e.constructor(t):new Date(t)}function wt(e,t){return en(t||e,e)}function jT(e,t,s){const i=wt(e,s?.in);return isNaN(t)?en(e,NaN):(t&&i.setDate(i.getDate()+t),i)}function NT(e,t,s){const i=wt(e,s?.in);if(isNaN(t))return en(e,NaN);if(!t)return i;const o=i.getDate(),c=en(e,i.getTime());c.setMonth(i.getMonth()+t+1,0);const u=c.getDate();return o>=u?c:(i.setFullYear(c.getFullYear(),c.getMonth(),o),i)}let HH={};function ud(){return HH}function el(e,t){const s=ud(),i=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??s.weekStartsOn??s.locale?.options?.weekStartsOn??0,o=wt(e,t?.in),c=o.getDay(),u=(c<i?7:0)+c-i;return o.setDate(o.getDate()-u),o.setHours(0,0,0,0),o}function Zc(e,t){return el(e,{...t,weekStartsOn:1})}function ST(e,t){const s=wt(e,t?.in),i=s.getFullYear(),o=en(s,0);o.setFullYear(i+1,0,4),o.setHours(0,0,0,0);const c=Zc(o),u=en(s,0);u.setFullYear(i,0,4),u.setHours(0,0,0,0);const f=Zc(u);return s.getTime()>=c.getTime()?i+1:s.getTime()>=f.getTime()?i:i-1}function iN(e){const t=wt(e),s=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return s.setUTCFullYear(t.getFullYear()),+e-+s}function gl(e,...t){const s=en.bind(null,t.find(i=>typeof i=="object"));return t.map(s)}function Jc(e,t){const s=wt(e,t?.in);return s.setHours(0,0,0,0),s}function CT(e,t,s){const[i,o]=gl(s?.in,e,t),c=Jc(i),u=Jc(o),f=+c-iN(c),h=+u-iN(u);return Math.round((f-h)/FH)}function UH(e,t){const s=ST(e,t),i=en(e,0);return i.setFullYear(s,0,4),i.setHours(0,0,0,0),Zc(i)}function qH(e,t,s){return jT(e,t*7,s)}function WH(e,t,s){return NT(e,t*12,s)}function GH(e,t){let s,i=t?.in;return e.forEach(o=>{!i&&typeof o=="object"&&(i=en.bind(null,o));const c=wt(o,i);(!s||s<c||isNaN(+c))&&(s=c)}),en(i,s||NaN)}function YH(e,t){let s,i=t?.in;return e.forEach(o=>{!i&&typeof o=="object"&&(i=en.bind(null,o));const c=wt(o,i);(!s||s>c||isNaN(+c))&&(s=c)}),en(i,s||NaN)}function KH(e,t,s){const[i,o]=gl(s?.in,e,t);return+Jc(i)==+Jc(o)}function kT(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function QH(e){return!(!kT(e)&&typeof e!="number"||isNaN(+wt(e)))}function XH(e,t,s){const[i,o]=gl(s?.in,e,t),c=i.getFullYear()-o.getFullYear(),u=i.getMonth()-o.getMonth();return c*12+u}function ZH(e,t){const s=wt(e,t?.in),i=s.getMonth();return s.setFullYear(s.getFullYear(),i+1,0),s.setHours(23,59,59,999),s}function TT(e,t){const[s,i]=gl(e,t.start,t.end);return{start:s,end:i}}function JH(e,t){const{start:s,end:i}=TT(t?.in,e);let o=+s>+i;const c=o?+s:+i,u=o?i:s;u.setHours(0,0,0,0),u.setDate(1);let f=1;const h=[];for(;+u<=c;)h.push(en(s,u)),u.setMonth(u.getMonth()+f);return o?h.reverse():h}function eU(e,t){const s=wt(e,t?.in);return s.setDate(1),s.setHours(0,0,0,0),s}function tU(e,t){const s=wt(e,t?.in),i=s.getFullYear();return s.setFullYear(i+1,0,0),s.setHours(23,59,59,999),s}function ET(e,t){const s=wt(e,t?.in);return s.setFullYear(s.getFullYear(),0,1),s.setHours(0,0,0,0),s}function nU(e,t){const{start:s,end:i}=TT(t?.in,e);let o=+s>+i;const c=o?+s:+i,u=o?i:s;u.setHours(0,0,0,0),u.setMonth(0,1);let f=1;const h=[];for(;+u<=c;)h.push(en(s,u)),u.setFullYear(u.getFullYear()+f);return o?h.reverse():h}
61function MT(e,t){const s=ud(),i=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??s.weekStartsOn??s.locale?.options?.weekStartsOn??0,o=wt(e,t?.in),c=o.getDay(),u=(c<i?-7:0)+6-(c-i);return o.setDate(o.getDate()+u),o.setHours(23,59,59,999),o}function sU(e,t){return MT(e,{...t,weekStartsOn:1})}const aU={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"}},iU=(e,t,s)=>{let i;const o=aU[e];return typeof o=="string"?i=o:t===1?i=o.one:i=o.other.replace("{{count}}
61",t.toString()),s?.addSuffix?s.comparison&&s.comparison>0?"in "+i:i+" ago":i};function gg(e){return(t={})=>{const s=t.width?String(t.width):e.defaultWidth;return e.formats[s]||e.formats[e.defaultWidth]}}const rU={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},oU={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},lU={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},cU={date:gg({formats:rU,defaultWidth:"full"}),time:gg({formats:oU,defaultWidth:"full"}),dateTime:gg({formats:lU,defaultWidth:"full"})},dU={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},uU=(e,t,s,i)=>dU[e];function yc(e){return(t,s)=>{const i=s?.context?String(s.context):"standalone";let o;if(i==="formatting"&&e.formattingValues){const u=e.defaultFormattingWidth||e.defaultWidth,f=s?.width?String(s.width):u;o=e.formattingValues[f]||e.formattingValues[u]}else{const u=e.defaultWidth,f=s?.width?String(s.width):e.defaultWidth;o=e.values[f]||e.values[u]}const c=e.argumentCallback?e.argumentCallback(t):t;return o[c]}}const fU={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},hU={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},mU={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"]},pU={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"]},gU={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"}},xU={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"}},yU=(e,t)=>{const s=Number(e),i=s%100;if(i>20||i<10)switch(i%10){case 1:return s+"st";case 2:return s+"nd";case 3:return s+"rd"}return s+"th"},vU={ordinalNumber:yU,era:yc({values:fU,defaultWidth:"wide"}),quarter:yc({values:hU,defaultWidth:"wide",argumentCallback:e=>e-1}),month:yc({values:mU,defaultWidth:"wide"}),day:yc({values:pU,defaultWidth:"wide"}),dayPeriod:yc({values:gU,defaultWidth:"wide",formattingValues:xU,defaultFormattingWidth:"wide"})};function vc(e){return(t,s={})=>{const i=s.width,o=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],c=t.match(o);if(!c)return null;const u=c[0],f=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],h=Array.isArray(f)?wU(f,y=>y.test(u)):bU(f,y=>y.test(u));let m;m=e.valueCallback?e.valueCallback(h):h,m=s.valueCallback?s.valueCallback(m):m;const x=t.slice(u.length);return{value:m,rest:x}}}function bU(e,t){for(const s in e)if(Object.prototype.hasOwnProperty.call(e,s)&&t(e[s]))return s}function wU(e,t){for(let s=0;s<e.length;s++)if(t(e[s]))return s}function jU(e){return(t,s={})=>{const i=t.match(e.matchPattern);if(!i)return null;const o=i[0],c=t.match(e.parsePattern);if(!c)return null;let u=e.valueCallback?e.valueCallback(c[0]):c[0];u=s.valueCallback?s.valueCallback(u):u;const f=t.slice(o.length);return{value:u,rest:f}}}const NU=/^(\d+)(th|st|nd|rd)?/i,SU=/\d+/i,CU={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},kU={any:[/^b/i,/^(a|c)/i]},TU={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},EU={any:[/1/i,/2/i,/3/i,/4/i]},MU={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}
vendor: 11,893 bytes, line 61
61,AU={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]},DU={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},OU={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]},RU={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},_U={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}},PU={ordinalNumber:jU({matchPattern:NU,parsePattern:SU,valueCallback:e=>parseInt(e,10)}),era:vc({matchPatterns:CU,defaultMatchWidth:"wide",parsePatterns:kU,defaultParseWidth:"any"}),quarter:vc({matchPatterns:TU,defaultMatchWidth:"wide",parsePatterns:EU,defaultParseWidth:"any",valueCallback:e=>e+1}),month:vc({matchPatterns:MU,defaultMatchWidth:"wide",parsePatterns:AU,defaultParseWidth:"any"}),day:vc({matchPatterns:DU,defaultMatchWidth:"wide",parsePatterns:OU,defaultParseWidth:"any"}),dayPeriod:vc({matchPatterns:RU,defaultMatchWidth:"any",parsePatterns:_U,defaultParseWidth:"any"})},ly={code:"en-US",formatDistance:iU,formatLong:cU,formatRelative:uU,localize:vU,match:PU,options:{weekStartsOn:0,firstWeekContainsDate:1}};function zU(e,t){const s=wt(e,t?.in);return CT(s,ET(s))+1}function AT(e,t){const s=wt(e,t?.in),i=+Zc(s)-+UH(s);return Math.round(i/wT)+1}function DT(e,t){const s=wt(e,t?.in),i=s.getFullYear(),o=ud(),c=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,u=en(t?.in||e,0);u.setFullYear(i+1,0,c),u.setHours(0,0,0,0);const f=el(u,t),h=en(t?.in||e,0);h.setFullYear(i,0,c),h.setHours(0,0,0,0);const m=el(h,t);return+s>=+f?i+1:+s>=+m?i:i-1}function LU(e,t){const s=ud(),i=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??s.firstWeekContainsDate??s.locale?.options?.firstWeekContainsDate??1,o=DT(e,t),c=en(t?.in||e,0);return c.setFullYear(o,0,i),c.setHours(0,0,0,0),el(c,t)}function OT(e,t){const s=wt(e,t?.in),i=+el(s,t)-+LU(s,t);return Math.round(i/wT)+1}function gt(e,t){const s=e<0?"-":"",i=Math.abs(e).toString().padStart(t,"0");return s+i}const Mi={y(e,t){const s=e.getFullYear(),i=s>0?s:1-s;return gt(t==="yy"?i%100:i,t.length)},M(e,t){const s=e.getMonth();return t==="M"?String(s+1):gt(s+1,2)},d(e,t){return gt(e.getDate(),t.length)},a(e,t){const s=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return s.toUpperCase();case"aaa":return s;case"aaaaa":return s[0];default:return s==="am"?"a.m.":"p.m."}},h(e,t){return gt(e.getHours()%12||12,t.length)},H(e,t){return gt(e.getHours(),t.length)},m(e,t){return gt(e.getMinutes(),t.length)},s(e,t){return gt(e.getSeconds(),t.length)},S(e,t){const s=t.length,i=e.getMilliseconds(),o=Math.trunc(i*Math.pow(10,s-3));return gt(o,t.length)}},Mo={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},rN={G:function(e,t,s){const i=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return s.era(i,{width:"abbreviated"});case"GGGGG":return s.era(i,{width:"narrow"});default:return s.era(i,{width:"wide"})}},y:function(e,t,s){if(t==="yo"){const i=e.getFullYear(),o=i>0?i:1-i;return s.ordinalNumber(o,{unit:"year"})}return Mi.y(e,t)},Y:function(e,t,s,i){const o=DT(e,i),c=o>0?o:1-o;if(t==="YY"){const u=c%100;return gt(u,2)}return t==="Yo"?s.ordinalNumber(c,{unit:"year"}):gt(c,t.length)},R:function(e,t){const s=ST(e);return gt(s,t.length)},u:function(e,t){const s=e.getFullYear();return gt(s,t.length)},Q:function(e,t,s){const i=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(i);case"QQ":return gt(i,2);case"Qo":return s.ordinalNumber(i,{unit:"quarter"});case"QQQ":return s.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return s.quarter(i,{width:"narrow",context:"formatting"});default:return s.quarter(i,{width:"wide",context:"formatting"})}},q:function(e,t,s){const i=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(i);case"qq":return gt(i,2);case"qo":return s.ordinalNumber(i,{unit:"quarter"});case"qqq":return s.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return s.quarter(i,{width:"narrow",context:"standalone"});default:return s.quarter(i,{width:"wide",context:"standalone"})}},M:function(e,t,s){const i=e.getMonth();switch(t){case"M":case"MM":return Mi.M(e,t);case"Mo":return s.ordinalNumber(i+1,{unit:"month"});case"MMM":return s.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return s.month(i,{width:"narrow",context:"formatting"});default:return s.month(i,{width:"wide",context:"formatting"})}},L:function(e,t,s){const i=e.getMonth();switch(t){case"L":return String(i+1);case"LL":return gt(i+1,2);case"Lo":return s.ordinalNumber(i+1,{unit:"month"});case"LLL":return s.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return s.month(i,{width:"narrow",context:"standalone"});default:return s.month(i,{width:"wide",context:"standalone"})}},w:function(e,t,s,i){const o=OT(e,i);return t==="wo"?s.ordinalNumber(o,{unit:"week"}):gt(o,t.length)},I:function(e,t,s){const i=AT(e);return t==="Io"?s.ordinalNumber(i,{unit:"week"}):gt(i,t.length)},d:function(e,t,s){return t==="do"?s.ordinalNumber(e.getDate(),{unit:"date"}):Mi.d(e,t)},D:function(e,t,s){const i=zU(e);return t==="Do"?s.ordinalNumber(i,{unit:"dayOfYear"}):gt(i,t.length)},E:function(e,t,s){const i=e.getDay();switch(t){case"E":case"EE":case"EEE":return s.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return s.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return s.day(i,{width:"short",context:"formatting"});default:return s.day(i,{width:"wide",context:"formatting"})}},e:function(e,t,s,i){const o=e.getDay(),c=(o-i.weekStartsOn+8)%7||7;switch(t){case"e":return String(c);case"ee":return gt(c,2);case"eo":return s.ordinalNumber(c,{unit:"day"});case"eee":return s.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return s.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return s.day(o,{width:"short",context:"formatting"});default:return s.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,s,i){const o=e.getDay(),c=(o-i.weekStartsOn+8)%7||7;switch(t){case"c":return String(c);case"cc":return gt(c,t.length);case"co":return s.ordinalNumber(c,{unit:"day"});case"ccc":return s.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return s.day(o,{width:"narrow",context:"standalone"});case"cccccc":return s.day(o,{width:"short",context:"standalone"});default:return s.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,s){const i=e.getDay(),o=i===0?7:i;switch(t){case"i":return String(o);case"ii":return gt(o,t.length);case"io":return s.ordinalNumber(o,{unit:"day"});case"iii":return s.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return s.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return s.day(i,{width:"short",context:"formatting"});default:return s.day(i,{width:"wide",context:"formatting"})}},a:function(e,t,s){const o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return s.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return s.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return s.dayPeriod(o,{width:"narrow",context:"formatting"});default:return s.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,s){const i=e.getHours();let o;switch(i===12?o=Mo.noon:i===0?o=Mo.midnight:o=i/12>=1?"pm":"am",t){case"b":case"bb":return s.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return s.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return s.dayPeriod(o,{width:"narrow",context:"formatting"});default:return s.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,s){const i=e.getHours();let o;switch(i>=17?o=Mo.evening:i>=12?o=Mo.afternoon:i>=4?o=Mo.morning:o=Mo.night,t){case"B":case"BB":case"BBB":return s.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return s.dayPeriod(o,{width:"narrow",context:"formatting"});default:return s.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,s){if(t==="ho"){let i=e.getHours()%12;return i===0&&(i=12),s.ordinalNumber(i,{unit:"hour"})}return Mi.h(e,t)},H:function(e,t,s){return t==="Ho"?s.ordinalNumber(e.getHours(),{unit:"hour"}):Mi.H(e,t)},K:function(e,t,s){const i=e.getHours()%12;return t==="Ko"?s.ordinalNumber(i,{unit:"hour"}):gt(i,t.length)},k:function(e,t,s){let i=e.getHours();return i===0&&(i=24),t==="ko"?s.ordinalNumber(i,{unit:"hour"}):gt(i,t.length)},m:function(e,t,s){return t==="mo"?s.ordinalNumber(e.getMinutes(),{unit:"minute"}):Mi.m(e,t)},s:function(e,t,s){return t==="so"?s.ordinalNumber(e.getSeconds(),{unit:"second"}):Mi.s(e,t)},S:function(e,t){return Mi.S(e,t)},X:function(e,t,s){const i=e.getTimezoneOffset();if(i===0)return"Z";switch(t){case"X":return lN(i);case"XXXX":case"XX":return vr(i);default:return vr(i,":")}},x:function(e,t,s){const i=e.getTimezoneOffset();switch(t){case"x":return lN(i);case"xxxx":case"xx":return vr(i);default:return vr(i,":")}},O:function(e,t,s){const i=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+oN(i,":");default:return"GMT"+vr(i,":")}},z:function(e,t,s){const i=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+oN(i,":");default:return"GMT"+vr(i,":")}},t:function(e,t,s){const i=Math.trunc(+e/1e3);return gt(i,t.length)},T:function(e,t,s){return gt(+e,t.length)}};function oN(e,t=""){const s=e>0?"-":"+",i=Math.abs(e),o=Math.trunc(i/60),c=i%60;return c===0?s+String(o):s+String(o)+t+gt(c,2)}function lN(e,t){return e%60===0?(e>0?"-":"+")+gt(Math.abs(e)/60,2):vr(e,t)}function vr(e,t=""){const s=e>0?"-":"+",i=Math.abs(e),o=gt(Math.trunc(i/60),2),c=gt(i%60,2);return s+o+t+c}const cN=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},RT=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},IU=(e,t)=>{const s=e.match(/(P+)(p+)?/)||[],i=s[1],o=s[2];if(!o)return cN(e,t);let c;switch(i){case"P":c=t.dateTime({width:"short"});break;case"PP":c=t.dateTime({width:"medium"});break;case"PPP":c=t.dateTime({width:"long"});break;default:c=t.dateTime({width:"full"});break}return c.replace("{{date}}",cN(i,t)).replace("{{time}}",RT(o,t))},VU={p:RT,P:IU},$U=/^D+$/,BU=/^Y+$/,FU=["D","DD","YY","YYYY"];function HU(e){return $U.test(e)}function UU(e){return BU.test(e)}function qU(e,t,s){const i=WU(e,t,s);if(console.warn(i),FU.includes(e))throw new RangeError(i)}function WU(e,t,s){const i=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${i} to the input \`${s}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const GU=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,YU=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,KU=/^'([^]*?)'?$/,QU=/''/g,XU=/[a-zA-Z]/;function ZU(e,t,s){const i=ud(),o=s?.locale??i.locale??ly,c=s?.firstWeekContainsDate??s?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,u=s?.weekStartsOn??s?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,f=wt(e,s?.in);if(!QH(f))throw new RangeError("Invalid time value");let h=t.match(YU).map(x=>{const y=x[0];if(y==="p"||y==="P"){const b=VU[y];return b(x,o.formatLong)}return x}).join("").match(GU).map(x=>
61{if(x==="''")return{isToken:!1,value:"'"};const y=x[0];if(y==="'")return{isToken:!1,value:JU(x)};if(rN[y])return{isToken:!0,value:x};if(y.match(XU))throw new RangeError("Format string contains an unescaped latin alphabet character `"+y+"`");return{isToken:!1,value:x}});o.localize.preprocessor&&(h=o.localize.preprocessor(f,h));const m={firstWeekContainsDate:c,weekStartsOn:u,locale:o};return h.map(x=>{if(!x.isToken)return x.value;const y=x.value;(!s?.useAdditionalWeekYearTokens&&UU(y)||!s?.useAdditionalDayOfYearTokens&&HU(y))&&qU(y,t,String(e));const b=rN[y[0]];return b(f,y,o.localize,m)}).join("")}function JU(e){const t=e.match(KU);return t?t[1].replace(QU,"'"):e}function eq(e,t){const s=wt(e,t?.in),i=s.getFullYear(),o=s.getMonth(),c=en(s,0);return c.setFullYear(i,o+1,0),c.setHours(0,0,0,0),c.getDate()}function tq(e,t){return wt(e,t?.in).getMonth()}function nq(e,t){return wt(e,t?.in).getFullYear()}function sq(e,t){return+wt(e)>+wt(t)}function aq(e,t){return+wt(e)<+wt(t)}function iq(e,t,s){const[i,o]=gl(s?.in,e,t);return i.getFullYear()===o.getFullYear()&&i.getMonth()===o.getMonth()}function rq(e,t,s){const[i,o]=gl(s?.in,e,t);return i.getFullYear()===o.getFullYear()}function oq(e,t,s){const i=wt(e,s?.in),o=i.getFullYear(),c=i.getDate(),u=en(e,0);u.setFullYear(o,t,15),u.setHours(0,0,0,0);const f=eq(u);return i.setMonth(t,Math.min(c,f)),i}function lq(e,t,s){const i=wt(e,s?.in);return isNaN(+i)?en(e,NaN):(i.setFullYear(t),i)}const dN=5,cq=4;function dq(e,t){const s=t.startOfMonth(e),i=s.getDay()>0?s.getDay():7,o=t.addDays(e,-i+1),c=t.addDays(o,dN*7-1);return t.getMonth(e)===t.getMonth(c)?dN:cq}function _T(e,t){const s=t.startOfMonth(e),i=s.getDay();return i===1?s:i===0?t.addDays(s,-6):t.addDays(s,-1*(i-1))}function uq(e,t){const s=_T(e,t),i=dq(e,t);return t.addDays(s,i*7-1)}class es{constructor(t,s){this.Date=Date,this.today=()=>this.overrides?.today?this.overrides.today():this.options.timeZone?wn.tz(this.options.timeZone):new this.Date,this.newDate=(i,o,c)=>this.overrides?.newDate?this.overrides.newDate(i,o,c):this.options.timeZone?new wn(i,o,c,this.options.timeZone):new Date(i,o,c),this.addDays=(i,o)=>this.overrides?.addDays?this.overrides.addDays(i,o):jT(i,o),this.addMonths=(i,o)=>this.overrides?.addMonths?this.overrides.addMonths(i,o):NT(i,o),this.addWeeks=(i,o)=>this.overrides?.addWeeks?this.overrides.addWeeks(i,o):qH(i,o),this.addYears=(i,o)=>this.overrides?.addYears?this.overrides.addYears(i,o):WH(i,o),this.differenceInCalendarDays=(i,o)=>this.overrides?.differenceInCalendarDays?this.overrides.differenceInCalendarDays(i,o):CT(i,o),this.differenceInCalendarMonths=(i,o)=>this.overrides?.differenceInCalendarMonths?this.overrides.differenceInCalendarMonths(i,o):XH(i,o),this.eachMonthOfInterval=i=>this.overrides?.eachMonthOfInterval?this.overrides.eachMonthOfInterval(i):JH(i),this.eachYearOfInterval=i=>{const o=this.overrides?.eachYearOfInterval?this.overrides.eachYearOfInterval(i):nU(i),c=new Set(o.map(f=>this.getYear(f)));if(c.size===o.length)return o;const u=[];return c.forEach(f=>{u.push(new Date(f,0,1))}),u},this.endOfBroadcastWeek=i=>this.overrides?.endOfBroadcastWeek?this.overrides.endOfBroadcastWeek(i):uq(i,this),this.endOfISOWeek=i=>this.overrides?.endOfISOWeek?this.overrides.endOfISOWeek(i):sU(i),this.endOfMonth=i=>this.overrides?.endOfMonth?this.overrides.endOfMonth(i):ZH(i),this.endOfWeek=(i,o)=>this.overrides?.endOfWeek?this.overrides.endOfWeek(i,o):MT(i,this.options),this.endOfYear=i=>this.overrides?.endOfYear?this.overrides.endOfYear(i):tU(i),this.format=(i,o,c)=>{const u=this.overrides?.format?this.overrides.format(i,o,this.options):ZU(i,o,this.options);return this.options.numerals&&this.options.numerals!=="latn"?this.replaceDigits(u):u},this.getISOWeek=i=>this.overrides?.getISOWeek?this.overrides.getISOWeek(i):AT(i),this.getMonth=(i,o)=>this.overrides?.getMonth?this.overrides.getMonth(i,this.options):tq(i,this.options),this.getYear=(i,o)=>this.overrides?.getYear?this.overrides.getYear(i,this.options):nq(i,this.options),this.getWeek=(i,o)=>this.overrides?.getWeek?this.overrides.getWeek(i,this.options):OT(i,this.options),this.isAfter=(i,o)=>this.overrides?.isAfter?this.overrides.isAfter(i,o):sq(i,o),this.isBefore=(i,o)=>this.overrides?.isBefore?this.overrides.isBefore(i,o):aq(i,o),this.isDate=i=>this.overrides?.isDate?this.overrides.isDate(i):kT(i),this.isSameDay=(i,o)=>this.overrides?.isSameDay?this.overrides.isSameDay(i,o):KH(i,o),this.isSameMonth=(i,o)=>this.overrides?.isSameMonth?this.overrides.isSameMonth(i,o):iq(i,o),this.isSameYear=(i,o)=>this.overrides?.isSameYear?this.overrides.isSameYear(i,o):rq(i,o),this.max=i=>this.overrides?.max?this.overrides.max(i):GH(i),this.min=i=>this.overrides?.min?this.overrides.min(i):YH(i),this.setMonth=(i,o)=>this.overrides?.setMonth?this.overrides.setMonth(i,o):oq(i,o),this.setYear=(i,o)=>this.overrides?.setYear?this.overrides.setYear(i,o):lq(i,o),this.startOfBroadcastWeek=(i,o)=>this.overrides?.startOfBroadcastWeek?this.overrides.startOfBroadcastWeek(i,this):_T(i,this),this.startOfDay=i=>this.overrides?.startOfDay?this.overrides.startOfDay(i):Jc(i),this.startOfISOWeek=i=>this.overrides?.startOfISOWeek?this.overrides.startOfISOWeek(i):Zc(i),this.startOfMonth=i=>
61this.overrides?.startOfMonth?this.overrides.startOfMonth(i):eU(i),this.startOfWeek=(i,o)=>this.overrides?.startOfWeek?this.overrides.startOfWeek(i,this.options):el(i,this.options),this.startOfYear=i=>this.overrides?.startOfYear?this.overrides.startOfYear(i):ET(i),this.options={locale:ly,...t},this.overrides=s}getDigitMap(){const{numerals:t="latn"}=this.options,s=new Intl.NumberFormat("en-US",{numberingSystem:t}),i={};for(let o=0;o<10;o++)i[o.toString()]=s.format(o);return i}replaceDigits(t){const s=this.getDigitMap();return t.replace(/\d/g,i=>s[i]||i)}formatNumber(t){return this.replaceDigits(t.toString())}getMonthYearOrder(){const t=this.options.locale?.code;return t&&es.yearFirstLocales.has(t)?"year-first":"month-first"}formatMonthYear(t){const{locale:s,timeZone:i,numerals:o}=this.options,c=s?.code;if(c&&es.yearFirstLocales.has(c))try{return new Intl.DateTimeFormat(c,{month:"long",year:"numeric",timeZone:i,numberingSystem:o}).format(t)}catch{}const u=this.getMonthYearOrder()==="year-first"?"y LLLL":"LLLL y";return this.format(t,u)}}es.yearFirstLocales=new Set(["eu","hu","ja","ja-Hira","ja-JP","ko","ko-KR","lt","lt-LT","lv","lv-LV","mn","mn-MN","zh","zh-CN","zh-HK","zh-TW"]);const ga=new es;class PT{constructor(t,s,i=ga){this.date=t,this.displayMonth=s,this.outside=!!(s&&!i.isSameMonth(t,s)),this.dateLib=i}isEqualTo(t){return this.dateLib.isSameDay(t.date,this.date)&&this.dateLib.isSameMonth(t.displayMonth,this.displayMonth)}}class fq{constructor(t,s){this.date=t,this.weeks=s}}class hq{constructor(t,s){this.days=s,this.weekNumber=t}}function mq(e){return de.createElement("button",{...e})}function pq(e){return de.createElement("span",{...e})}function gq(e){const{size:t=24,orientation:s="left",className:i}=e;return de.createElement("svg",{className:i,width:t,height:t,viewBox:"0 0 24 24"},s==="up"&&de.createElement("polygon",{points:"6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28"}),s==="down"&&de.createElement("polygon",{points:"6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72"}),s==="left"&&de.createElement("polygon",{points:"16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20"}),s==="right"&&de.createElement("polygon",{points:"8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20"}))}function xq(e){const{day:t,modifiers:s,...i}=e;return de.createElement("td",{...i})}function yq(e){const{day:t,modifiers:s,...i}=e,o=de.useRef(null);return de.useEffect(()=>{s.focused&&o.current?.focus()},[s.focused]),de.createElement("button",{ref:o,...i})}var Ne;(function(e){e.Root="root",e.Chevron="chevron",e.Day="day",e.DayButton="day_button",e.CaptionLabel="caption_label",e.Dropdowns="dropdowns",e.Dropdown="dropdown",e.DropdownRoot="dropdown_root",e.Footer="footer",e.MonthGrid="month_grid",e.MonthCaption="month_caption",e.MonthsDropdown="months_dropdown",e.Month="month",e.Months="months",e.Nav="nav",e.NextMonthButton="button_next",e.PreviousMonthButton="button_previous",e.Week="week",e.Weeks="weeks",e.Weekday="weekday",e.Weekdays="weekdays",e.WeekNumber="week_number",e.WeekNumberHeader="week_number_header",e.YearsDropdown="years_dropdown"})(Ne||(Ne={}));var zt;(function(e){e.disabled="disabled",e.hidden="hidden",e.outside="outside",e.focused="focused",e.today="today"})(zt||(zt={}));var _s;(function(e){e.range_end="range_end",e.range_middle="range_middle",e.range_start="range_start",e.selected="selected"})(_s||(_s={}));var Qn;(function(e){e.weeks_before_enter="weeks_before_enter",e.weeks_before_exit="weeks_before_exit",e.weeks_after_enter="weeks_after_enter",e.weeks_after_exit="weeks_after_exit",e.caption_after_enter="caption_after_enter",e.caption_after_exit="caption_after_exit",e.caption_before_enter="caption_before_enter",e.caption_before_exit="caption_before_exit"})(Qn||(Qn={}));function vq(e){const{options:t,className:s,components:i,classNames:o,...c}=e,u=[o[Ne.Dropdown],s].join(" "),f=t?.find(({value:h})=>h===c.value);return de.createElement("span",{"data-disabled":c.disabled,className:o[Ne.DropdownRoot]},de.createElement(i.Select,{className:u,...c},t?.map(({value:h,label:m,disabled:x})=>de.createElement(i.Option,{key:h,value:h,disabled:x},m))),de.createElement("span",{className:o[Ne.CaptionLabel],"aria-hidden":!0},f?.label,de.createElement(i.Chevron,{orientation:"down",size:18,className:o[Ne.Chevron]}
vendor: 14,379 bytes, line 61
61)))}function bq(e){return de.createElement("div",{...e})}function wq(e){return de.createElement("div",{...e})}function jq(e){const{calendarMonth:t,displayIndex:s,...i}=e;return de.createElement("div",{...i},e.children)}function Nq(e){const{calendarMonth:t,displayIndex:s,...i}=e;return de.createElement("div",{...i})}function Sq(e){return de.createElement("table",{...e})}function Cq(e){return de.createElement("div",{...e})}const zT=p.createContext(void 0);function fd(){const e=p.useContext(zT);if(e===void 0)throw new Error("useDayPicker() must be used within a custom component.");return e}function kq(e){const{components:t}=fd();return de.createElement(t.Dropdown,{...e})}function Tq(e){const{onPreviousClick:t,onNextClick:s,previousMonth:i,nextMonth:o,...c}=e,{components:u,classNames:f,labels:{labelPrevious:h,labelNext:m}}=fd(),x=p.useCallback(b=>{o&&s?.(b)},[o,s]),y=p.useCallback(b=>{i&&t?.(b)},[i,t]);return de.createElement("nav",{...c},de.createElement(u.PreviousMonthButton,{type:"button",className:f[Ne.PreviousMonthButton],tabIndex:i?void 0:-1,"aria-disabled":i?void 0:!0,"aria-label":h(i),onClick:y},de.createElement(u.Chevron,{disabled:i?void 0:!0,className:f[Ne.Chevron],orientation:"left"})),de.createElement(u.NextMonthButton,{type:"button",className:f[Ne.NextMonthButton],tabIndex:o?void 0:-1,"aria-disabled":o?void 0:!0,"aria-label":m(o),onClick:x},de.createElement(u.Chevron,{disabled:o?void 0:!0,orientation:"right",className:f[Ne.Chevron]})))}function Eq(e){const{components:t}=fd();return de.createElement(t.Button,{...e})}function Mq(e){return de.createElement("option",{...e})}function Aq(e){const{components:t}=fd();return de.createElement(t.Button,{...e})}function Dq(e){const{rootRef:t,...s}=e;return de.createElement("div",{...s,ref:t})}function Oq(e){return de.createElement("select",{...e})}function Rq(e){const{week:t,...s}=e;return de.createElement("tr",{...s})}function _q(e){return de.createElement("th",{...e})}function Pq(e){return de.createElement("thead",{"aria-hidden":!0},de.createElement("tr",{...e}))}function zq(e){const{week:t,...s}=e;return de.createElement("th",{...s})}function Lq(e){return de.createElement("th",{...e})}function Iq(e){return de.createElement("tbody",{...e})}function Vq(e){const{components:t}=fd();return de.createElement(t.Dropdown,{...e})}const $q=Object.freeze(Object.defineProperty({__proto__:null,Button:mq,CaptionLabel:pq,Chevron:gq,Day:xq,DayButton:yq,Dropdown:vq,DropdownNav:bq,Footer:wq,Month:jq,MonthCaption:Nq,MonthGrid:Sq,Months:Cq,MonthsDropdown:kq,Nav:Tq,NextMonthButton:Eq,Option:Mq,PreviousMonthButton:Aq,Root:Dq,Select:Oq,Week:Rq,WeekNumber:zq,WeekNumberHeader:Lq,Weekday:_q,Weekdays:Pq,Weeks:Iq,YearsDropdown:Vq},Symbol.toStringTag,{value:"Module"}));function Ua(e,t,s=!1,i=ga){let{from:o,to:c}=e;const{differenceInCalendarDays:u,isSameDay:f}=i;return o&&c?(u(c,o)<0&&([o,c]=[c,o]),u(t,o)>=(s?1:0)&&u(c,t)>=(s?1:0)):!s&&c?f(c,t):!s&&o?f(o,t):!1}function LT(e){return!!(e&&typeof e=="object"&&"before"in e&&"after"in e)}function cy(e){return!!(e&&typeof e=="object"&&"from"in e)}function IT(e){return!!(e&&typeof e=="object"&&"after"in e)}function VT(e){return!!(e&&typeof e=="object"&&"before"in e)}function $T(e){return!!(e&&typeof e=="object"&&"dayOfWeek"in e)}function BT(e,t){return Array.isArray(e)&&e.every(t.isDate)}function qa(e,t,s=ga){const i=Array.isArray(t)?t:[t],{isSameDay:o,differenceInCalendarDays:c,isAfter:u}=s;return i.some(f=>{if(typeof f=="boolean")return f;if(s.isDate(f))return o(e,f);if(BT(f,s))return f.includes(e);if(cy(f))return Ua(f,e,!1,s);if($T(f))return Array.isArray(f.dayOfWeek)?f.dayOfWeek.includes(e.getDay()):f.dayOfWeek===e.getDay();if(LT(f)){const h=c(f.before,e),m=c(f.after,e),x=h>0,y=m<0;return u(f.before,f.after)?y&&x:x||y}return IT(f)?c(e,f.after)>0:VT(f)?c(f.before,e)>0:typeof f=="function"?f(e):!1})}function Bq(e,t,s,i,o){const{disabled:c,hidden:u,modifiers:f,showOutsideDays:h,broadcastCalendar:m,today:x}=t,{isSameDay:y,isSameMonth:b,startOfMonth:w,isBefore:C,endOfMonth:j,isAfter:S}=o,T=s&&w(s),M=i&&j(i),k={[zt.focused]:[],[zt.outside]:[],[zt.disabled]:[],[zt.hidden]:[],[zt.today]:[]},R={};for(const D of e){const{date:P,displayMonth:O}=D,_=!!(O&&!b(P,O)),G=!!(T&&C(P,T)),ne=!!(M&&S(P,M)),se=!!(c&&qa(P,c,o)),ce=!!(u&&qa(P,u,o))||G||ne||!m&&!h&&_||m&&h===!1&&_,Z=y(P,x??o.today());_&&k.outside.push(D),se&&k.disabled.push(D),ce&&k.hidden.push(D),Z&&k.today.push(D),f&&Object.keys(f).forEach(F=>{const ie=f?.[F];ie&&qa(P,ie,o)&&(R[F]?R[F].push(D):R[F]=[D])})}return D=>{const P={[zt.focused]:!1,[zt.disabled]:!1,[zt.hidden]:!1,[zt.outside]:!1,[zt.today]:!1},O={};for(const _ in k){const G=k[_];P[_]=G.some(ne=>ne===D)}for(const _ in R)O[_]=R[_].some(G=>G===D);return{...P,...O}}}function Fq(e,t,s={}){return Object.entries(e).filter(([,o])=>o===!0).reduce((o,[c])=>(s[c]?o.push(s[c]):t[zt[c]]?o.push(t[zt[c]]):t[_s[c]]&&o.push(t[_s[c]]),o),[t[Ne.Day]])}function Hq(e){return{...$q,...e}}function Uq(e){const t={"data-mode":e.mode??void 0,"data-required":"required"in e?e.required:void 0,"data-multiple-months":e.numberOfMonths&&e.numberOfMonths>1||void 0,"data-week-numbers":e.showWeekNumber||void 0,"data-broadcast-calendar":e.broadcastCalendar||void 0,"data-nav-layout":e.navLayout||void 0};return Object.entries(e).forEach(([s,i])=>{s.startsWith("data-")&&(t[s]=i)}),t}function dy(){const e={};for(const t in Ne)e[Ne[t]]=`rdp-${Ne[t]}`;for(const t in zt)e[zt[t]]=`rdp-${zt[t]}`;for(const t in _s)e[_s[t]]=`rdp-${_s[t]}`;for(const t in Qn)e[Qn[t]]=`rdp-${Qn[t]}`;return e}function FT(e,t,s){return(s??new es(t)).formatMonthYear(e)}const qq=FT;function Wq(e,t,s){return(s??new es(t)).format(e,"d")}function Gq(e,t=ga){return t.format(e,"LLLL")}function Yq(e,t,s){return(s??new es(t)).format(e,"cccccc")}function Kq(e,t=ga){return e<10?t.formatNumber(`0${e.toLocaleString()}`):t.formatNumber(`${e.toLocaleString()}`)}function Qq(){return""}function HT(e,t=ga){return t.format(e,"yyyy")}const Xq=HT,Zq=Object.freeze(Object.defineProperty({__proto__:null,formatCaption:FT,formatDay:Wq,formatMonthCaption:qq,formatMonthDropdown:Gq,formatWeekNumber:Kq,formatWeekNumberHeader:Qq,formatWeekdayName:Yq,formatYearCaption:Xq,formatYearDropdown:HT},Symbol.toStringTag,{value:"Module"}));function Jq(e){return e?.formatMonthCaption&&!e.formatCaption&&(e.formatCaption=e.formatMonthCaption),e?.formatYearCaption&&!e.formatYearDropdown&&(e.formatYearDropdown=e.formatYearCaption),{...Zq,...e}}function eW(e,t,s,i,o){const{startOfMonth:c,startOfYear:u,endOfYear:f,eachMonthOfInterval:h,getMonth:m}=o;return h({start:u(e),end:f(e)}).map(b=>{const w=i.formatMonthDropdown(b,o),C=m(b),j=t&&b<c(t)||s&&b>c(s)||!1;return{value:C,label:w,disabled:j}})}function tW(e,t={},s={}){let i={...t?.[Ne.Day]};return Object.entries(e).filter(([,o])=>o===!0).forEach(([o])=>{i={...i,...s?.[o]}}),i}function nW(e,t,s){const i=e.today(),o=t?e.startOfISOWeek(i):e.startOfWeek(i),c=[];for(let u=0;u<7;u++){const f=e.addDays(o,u);c.push(f)}return c}function sW(e,t,s,i,o=!1){if(!e||!t)return;const{startOfYear:c,endOfYear:u,eachYearOfInterval:f,getYear:h}=i,m=c(e),x=u(t),y=f({start:m,end:x});return o&&y.reverse(),y.map(b=>{const w=s.formatYearDropdown(b,i);return{value:h(b),label:w,disabled:!1}})}function UT(e,t,s,i){let o=(i??new es(s)).format(e,"PPPP");return t.today&&(o=`Today, ${o}`),t.selected&&(o=`${o}, selected`),o}const aW=UT;function qT(e,t,s){return(s??new es(t)).formatMonthYear(e)}const iW=qT;function rW(e,t,s,i){let o=(i??new es(s)).format(e,"PPPP");return t?.today&&(o=`Today, ${o}`),o}function oW(e){return"Choose the Month"}function lW(){return""}function cW(e){return"Go to the Next Month"}function dW(e){return"Go to the Previous Month"}function uW(e,t,s){return(s??new es(t)).format(e,"cccc")}function fW(e,t){return`Week ${e}`}function hW(e){return"Week Number"}function mW(e){return"Choose the Year"}const pW=Object.freeze(Object.defineProperty({__proto__:null,labelCaption:iW,labelDay:aW,labelDayButton:UT,labelGrid:qT,labelGridcell:rW,labelMonthDropdown:oW,labelNav:lW,labelNext:cW,labelPrevious:dW,labelWeekNumber:fW,labelWeekNumberHeader:hW,labelWeekday:uW,labelYearDropdown:mW},Symbol.toStringTag,{value:"Module"})),hd=e=>e instanceof HTMLElement?e:null,xg=e=>[...e.querySelectorAll("[data-animated-month]")??[]],gW=e=>hd(e.querySelector("[data-animated-month]")),yg=e=>hd(e.querySelector("[data-animated-caption]")),vg=e=>hd(e.querySelector("[data-animated-weeks]")),xW=e=>hd(e.querySelector("[data-animated-nav]")),yW=e=>hd(e.querySelector("[data-animated-weekdays]"));function vW(e,t,{classNames:s,months:i,focused:o,dateLib:c}){const u=p.useRef(null),f=p.useRef(i),h=p.useRef(!1);p.useLayoutEffect(()=>{const m=f.current;if(f.current=i,!t||!e.current||!(e.current instanceof HTMLElement)||i.length===0||m.length===0||i.length!==m.length)return;const x=c.isSameMonth(i[0].date,m[0].date),y=c.isAfter(i[0].date,m[0].date),b=y?s[Qn.caption_after_enter]:s[Qn.caption_before_enter],w=y?s[Qn.weeks_after_enter]:s[Qn.weeks_before_enter],C=u.current,j=e.current.cloneNode(!0);if(j instanceof HTMLElement?(xg(j).forEach(k=>{if(!(k instanceof HTMLElement))return;const R=gW(k);R&&k.contains(R)&&k.removeChild(R);const D=yg(k);D&&D.classList.remove(b);const P=vg(k);P&&P.classList.remove(w)}),u.current=j):u.current=null,h.current||x||o)return;const S=C instanceof HTMLElement?xg(C):[],T=xg(e.current);if(T?.every(M=>M instanceof HTMLElement)&&S&&S.every(M=>M instanceof HTMLElement)){h.current=!0,e.current.style.isolation="isolate";const M=xW(e.current);M&&(M.style.zIndex="1"),T.forEach((k,R)=>{const D=S[R];if(!D)return;k.style.position="relative",k.style.overflow="hidden";const P=yg(k);P&&P.classList.add(b);const O=vg(k);O&&O.classList.add(w);const _=()=>{h.current=!1,e.current&&(e.current.style.isolation=""),M&&(M.style.zIndex=""),P&&P.classList.remove(b),O&&O.classList.remove(w),k.style.position="",k.style.overflow="",k.contains(D)&&k.removeChild(D)};D.style.pointerEvents="none",D.style.position="absolute",D.style.overflow="hidden",D.setAttribute("aria-hidden","true");const G=yW(D);G&&(G.style.opacity="0");const ne=yg(D);ne&&(ne.classList.add(y?s[Qn.caption_before_exit]:s[Qn.caption_after_exit]),ne.addEventListener("animationend",_));const se=vg(D);se&&se.classList.add(y?s[Qn.weeks_before_exit]:s[Qn.weeks_after_exit]),k.insertBefore(D,k.firstChild)})}})}function bW(e,t,s,i){const o=e[0],c=e[e.length-1],{ISOWeek:u,fixedWeeks:f,broadcastCalendar:h}=s??{},{addDays:m,differenceInCalendarDays:x,differenceInCalendarMonths:y,endOfBroadcastWeek:b,endOfISOWeek:w,endOfMonth:C,endOfWeek:j,isAfter:S,startOfBroadcastWeek:T,startOfISOWeek:M,startOfWeek:k}=i,R=h?T(o,i):u?M(o):k(o),D=h?b(c):u?w(C(c)):j(C(c)),P=x(D,R),O=y(c,o)+1,_=[];for(let se=0;se<=P;se++){const ce=m(R,se);if(t&&S(ce,t))break;_.push(ce)}const ne=(h?35:42)*O;if(f&&_.length<ne){const se=ne-_.length;for(let ce=0;ce<se;ce++){const Z=m(_[_.length-1],1);_.push(Z)}}return _}function wW(e){const t=[];return e.reduce((s,i)=>{const o=i.weeks.reduce((c,u)=>c.concat(u.days.slice()),t.slice());return s.concat(o.slice())},t.slice())}function jW(e,t,s,i){const{numberOfMonths:o=1}=s,c=[];for(let u=0;u<o;u++){const f=i.addMonths(e,u);if(t&&f>t)break;c.push(f)}return c}function uN(e,t,s,i){const{month:o,defaultMonth:c,today:u=i.today(),numberOfMonths:f=1}=e;let h=o||c||u;const{differenceInCalendarMonths:m,addMonths:x,startOfMonth:y}=i;if(s&&m(s,h)<f-1){const b=-1*(f-1);h=x(s,b)}return t&&m(h,t)<0&&(h=t),y(h)}function NW(e,t,s,i){const{addDays:o,endOfBroadcastWeek:c,endOfISOWeek:u,endOfMonth:f,endOfWeek:h,getISOWeek:m,getWeek:x,startOfBroadcastWeek:y,startOfISOWeek:b,startOfWeek:w}=i,C=e.reduce((j,S)=>{const T=s.broadcastCalendar?y(S,i):s.ISOWeek?b(S):w(S),M=s.broadcastCalendar?c(S):s.ISOWeek?u(f(S)):h(f(S)),k=t.filter(O=>O>=T&&O<=M),R=s.broadcastCalendar?35:42;if(s.fixedWeeks&&k.length<R){const O=t.filter(_=>{const G=R-k.length;return _>M&&_<=o(M,G)});k.push(...O)}const D=k.reduce((O,_)=>{const G=s.ISOWeek?m(_):x(_),ne=O.find(ce=>ce.weekNumber===G),se=new PT(_,S,i);return ne?ne.days.push(se):O.push(new hq(G,[se])),O},[]),P=new fq(S,D);return j.push(P),j},[]);return s.reverseMonths?C.reverse():C}function SW(e,t){let{startMonth:s,endMonth:i}=e;const{startOfYear:o,startOfDay:c,startOfMonth:u,endOfMonth:f,addYears:h,endOfYear:m,newDate:x,today:y}=t,{fromYear:b,toYear:w,fromMonth:C,toMonth:j}=e;!s&&C&&(s=C),!s&&b&&(s=t.newDate(b,0,1)),!i&&j&&(i=j),!i&&w&&(i=x(w,11,31));const S=e.captionLayout==="dropdown"||e.captionLayout==="dropdown-years";return s?s=u(s):b?s=x(b,0,1):!s&&S&&(s=o(h(e.today??y(),-100))),i?i=f(i):w?i=x(w,11,31):!i&&S&&(i=m(e.today??y())),[s&&c(s),i&&c(i)]}function CW(e,t,s,i){if(s.disableNavigation)return;const{pagedNavigation:o,numberOfMonths:c=1}=s,{startOfMonth:u,addMonths:f,differenceInCalendarMonths:h}=i,m=o?c:1,x=u(e);if(!t)return f(x,m);if(!(h(t,e)<c))return f(x,m)}function kW(e,t,s,i){if(s.disableNavigation)return;const{pagedNavigation:o,numberOfMonths:c}=s,{startOfMonth:u,addMonths:f,differenceInCalendarMonths:h}=i,m=o?c??1:1,x=u(e);if(!t)return f(x,-m);if(!(h(x,t)<=0))return f(x,-m)}function TW(e){const t=[];return e.reduce((s,i)=>s.concat(i.weeks.slice()),t.slice())}function fh(e,t){const[s,i]=p.useState(e);return[t===void 0?s:t,i]}function EW(e,t){const[s,i]=SW(e,t),{startOfMonth:o,endOfMonth:c}=t,u=uN(e,s,i,t),[f,h]=fh(u,e.month?u:void 0);p.useEffect(()=>{const P=uN(e,s,i,t);h(P)},[e.timeZone]);const m=jW(f,i,e,t),x=bW(m,e.endMonth?c(e.endMonth):void 0,e,t),y=NW(m,x,e,t),b=TW(y),w=wW(y),C=kW(f,s,e,t),j=CW(f,i,e,t),{disableNavigation:S,onMonthChange:T}=e,M=P=>b.some(O=>O.days.some(_=>_.isEqualTo(P))),k=P=>{if(S)return;let O=o(P);s&&O<o(s)&&(O=o(s)),i&&O>o(i)&&(O=o(i)),h(O),T?.(O)};return{months:y,weeks:b,days:w,navStart:s,navEnd:i,previousMonth:C,nextMonth:j,goToMonth:k,goToDay:P=>{M(P)||k(P.date)}}}var Qs;(function(e){e[e.Today=0]="Today",e[e.Selected=1]="Selected",e[e.LastFocused=2]="LastFocused",e[e.FocusedModifier=3]="FocusedModifier"})(Qs||(Qs={}));function fN(e){return!e[zt.disabled]&&!e[zt.hidden]&&!e[zt.outside]}function MW(e,t,s,i){let o,c=-1;for(const u of e){const f=t(u);fN(f)&&(f[zt.focused]&&c<Qs.FocusedModifier?(o=u,c=Qs.FocusedModifier):i?.isEqualTo(u)&&c<Qs.LastFocused?(o=u,c=Qs.LastFocused):s(u.date)&&c<Qs.Selected?(o=u,c=Qs.Selected):f[zt.today]&&c<Qs.Today&&(o=u,c=Qs.Today))}return o||(o=e.find(u=>fN(t(u)))),o}function AW(e,t,s,i,o,c,u){const{ISOWeek:f,broadcastCalendar:h}
61=c,{addDays:m,addMonths:x,addWeeks:y,addYears:b,endOfBroadcastWeek:w,endOfISOWeek:C,endOfWeek:j,max:S,min:T,startOfBroadcastWeek:M,startOfISOWeek:k,startOfWeek:R}=u;let P={day:m,week:y,month:x,year:b,startOfWeek:O=>h?M(O,u):f?k(O):R(O),endOfWeek:O=>h?w(O):f?C(O):j(O)}[e](s,t==="after"?1:-1);return t==="before"&&i?P=S([i,P]):t==="after"&&o&&(P=T([o,P])),P}function WT(e,t,s,i,o,c,u,f=0){if(f>365)return;const h=AW(e,t,s.date,i,o,c,u),m=!!(c.disabled&&qa(h,c.disabled,u)),x=!!(c.hidden&&qa(h,c.hidden,u)),y=h,b=new PT(h,y,u);return!m&&!x?b:WT(e,t,b,i,o,c,u,f+1)}function DW(e,t,s,i,o){const{autoFocus:c}=e,[u,f]=p.useState(),h=MW(t.days,s,i||(()=>!1),u),[m,x]=p.useState(c?h:void 0);return{isFocusTarget:j=>!!h?.isEqualTo(j),setFocused:x,focused:m,blur:()=>{f(m),x(void 0)},moveFocus:(j,S)=>{if(!m)return;const T=WT(j,S,m,t.navStart,t.navEnd,e,o);T&&(e.disableNavigation&&!t.days.some(k=>k.isEqualTo(T))||(t.goToDay(T),x(T)))}}}function OW(e,t){const{selected:s,required:i,onSelect:o}=e,[c,u]=fh(s,o?s:void 0),f=o?s:c,{isSameDay:h}=t,m=w=>f?.some(C=>h(C,w))??!1,{min:x,max:y}=e;return{selected:f,select:(w,C,j)=>{let S=[...f??[]];if(m(w)){if(f?.length===x||i&&f?.length===1)return;S=f?.filter(T=>!h(T,w))}else f?.length===y?S=[w]:S=[...S,w];return o||u(S),o?.(S,w,C,j),S},isSelected:m}}function RW(e,t,s=0,i=0,o=!1,c=ga){const{from:u,to:f}=t||{},{isSameDay:h,isAfter:m,isBefore:x}=c;let y;if(!u&&!f)y={from:e,to:s>0?void 0:e};else if(u&&!f)h(u,e)?s===0?y={from:u,to:e}:o?y={from:u,to:void 0}:y=void 0:x(e,u)?y={from:e,to:u}:y={from:u,to:e};else if(u&&f)if(h(u,e)&&h(f,e))o?y={from:u,to:f}:y=void 0;else if(h(u,e))y={from:u,to:s>0?void 0:e};else if(h(f,e))y={from:e,to:s>0?void 0:e};else if(x(e,u))y={from:e,to:f};else if(m(e,u))y={from:u,to:e};else if(m(e,f))y={from:u,to:e};else throw new Error("Invalid range");if(y?.from&&y?.to){const b=c.differenceInCalendarDays(y.to,y.from);i>0&&b>i?y={from:e,to:void 0}:s>1&&b<s&&(y={from:e,to:void 0})}return y}function _W(e,t,s=ga){const i=Array.isArray(t)?t:[t];let o=e.from;const c=s.differenceInCalendarDays(e.to,e.from),u=Math.min(c,6);for(let f=0;f<=u;f++){if(i.includes(o.getDay()))return!0;o=s.addDays(o,1)}return!1}function hN(e,t,s=ga){return Ua(e,t.from,!1,s)||Ua(e,t.to,!1,s)||Ua(t,e.from,!1,s)||Ua(t,e.to,!1,s)}function PW(e,t,s=ga){const i=Array.isArray(t)?t:[t];if(i.filter(f=>typeof f!="function").some(f=>typeof f=="boolean"?f:s.isDate(f)?Ua(e,f,!1,s):BT(f,s)?f.some(h=>Ua(e,h,!1,s)):cy(f)?f.from&&f.to?hN(e,{from:f.from,to:f.to},s):!1:$T(f)?_W(e,f.dayOfWeek,s):LT(f)?s.isAfter(f.before,f.after)?hN(e,{from:s.addDays(f.after,1),to:s.addDays(f.before,-1)},s):qa(e.from,f,s)||qa(e.to,f,s):IT(f)||VT(f)?qa(e.from,f,s)||qa(e.to,f,s):!1))return!0;const u=i.filter(f=>typeof f=="function");if(u.length){let f=e.from;const h=s.differenceInCalendarDays(e.to,e.from);for(let m=0;m<=h;m++){if(u.some(x=>x(f)))return!0;f=s.addDays(f,1)}}return!1}function zW(e,t){const{disabled:s,excludeDisabled:i,selected:o,required:c,onSelect:u}=e,[f,h]=fh(o,u?o:void 0),m=u?o:f;return{selected:m,select:(b,w,C)=>{const{min:j,max:S}=e,T=b?RW(b,m,j,S,c,t):void 0;return i&&s&&T?.from&&T.to&&PW({from:T.from,to:T.to},s,t)&&(T.from=b,T.to=void 0),u||h(T),u?.(T,b,w,C),T},isSelected:b=>m&&Ua(m,b,!1,t)}}function LW(e,t){const{selected:s,required:i,onSelect:o}=e,[c,u]=fh(s,o?s:void 0),f=o?s:c,{isSameDay:h}=t;return{selected:f,select:(y,b,w)=>{let C=y;return!i&&f&&f&&h(y,f)&&(C=void 0),o||u(C),o?.(C,y,b,w),C},isSelected:y=>f?h(f,y):!1}}function IW(e,t){const s=LW(e,t),i=OW(e,t),o=zW(e,t);switch(e.mode){case"single":return s;case"multiple":return i;case"range":return o;default:return}}function VW(e){let t=e;t.timeZone&&(t={...e},t.today&&(t.today=new wn(t.today,t.timeZone)),t.month&&(t.month=new wn(t.month,t.timeZone)),t.defaultMonth&&(t.defaultMonth=new wn(t.defaultMonth,t.timeZone)),t.startMonth&&(t.startMonth=new wn(t.startMonth,t.timeZone)),t.endMonth&&(t.endMonth=new wn(t.endMonth,t.timeZone)),t.mode==="single"&&t.selected?t.selected=new wn(t.selected,t.timeZone):t.mode==="multiple"&&t.selected?t.selected=t.selected?.map(ze=>new wn(ze,t.timeZone)):t.mode==="range"&&t.selected&&(t.selected={from:t.selected.from?new wn(t.selected.from,t.timeZone):void 0,to:t.selected.to?new wn(t.selected.to,t.timeZone):void 0}));const{components:s,formatters:i,labels:o,dateLib:c,locale:u,classNames:f}=p.useMemo(()=>{const ze={...ly,...t.locale};return{dateLib:new es({locale:ze,weekStartsOn:t.broadcastCalendar?1:t.weekStartsOn,firstWeekContainsDate:t.firstWeekContainsDate,useAdditionalWeekYearTokens:t.useAdditionalWeekYearTokens,useAdditionalDayOfYearTokens:t.useAdditionalDayOfYearTokens,timeZone:t.timeZone,numerals:t.numerals},t.dateLib),components:Hq(t.components),formatters:Jq(t.formatters),labels:{...pW,...t.labels},locale:ze,classNames:{...dy(),...t.classNames}}},[t.locale,t.broadcastCalendar,t.weekStartsOn,t.firstWeekContainsDate,t.useAdditionalWeekYearTokens,t.useAdditionalDayOfYearTokens,t.timeZone,t.numerals,t.dateLib,t.components,t.formatters,t.labels,t.classNames]),{captionLayout:h,mode:m,navLayout:x,numberOfMonths:y=1,onDayBlur:b,onDayClick:w,onDayFocus:C,onDayKeyDown:j,onDayMouseEnter:S,onDayMouseLeave:T,onNextClick:M,onPrevClick:k,showWeekNumber:R,styles:D}=t,{formatCaption:P,formatDay:O,formatMonthDropdown:_,formatWeekNumber:G,formatWeekNumberHeader:ne,formatWeekdayName:se,formatYearDropdown:ce}=i,Z=EW(t,c),{days:F,months:ie,navStart:I,navEnd:H,previousMonth:$,nextMonth:re,goToMonth:me}=Z,L=Bq(F,t,I,H,c),{isSelected:K,select:J,selected:oe}=IW(t,c)??{},{blur:pe,focused:we,isFocusTarget:ee,moveFocus:Me,setFocused:Ce}=DW(t,Z,L,K??(()=>!1),c),{labelDayButton:_e,labelGridcell:Ve,labelGrid:Pe,labelMonthDropdown:Tt,labelNav:St,labelPrevious:Fe,labelNext:ge,labelWeekday:st,labelWeekNumber:x
61a,labelWeekNumberHeader:Ns,labelYearDropdown:as}=o,Ss=p.useMemo(()=>nW(c,t.ISOWeek),[c,t.ISOWeek]),un=m!==void 0||w!==void 0,is=p.useCallback(()=>{$&&(me($),k?.($))},[$,me,k]),Ot=p.useCallback(()=>{re&&(me(re),M?.(re))},[me,re,M]),ya=p.useCallback((ze,Ke)=>Oe=>{Oe.preventDefault(),Oe.stopPropagation(),Ce(ze),J?.(ze.date,Ke,Oe),w?.(ze.date,Ke,Oe)},[J,w,Ce]),Fn=p.useCallback((ze,Ke)=>Oe=>{Ce(ze),C?.(ze.date,Ke,Oe)},[C,Ce]),Cs=p.useCallback((ze,Ke)=>Oe=>{pe(),b?.(ze.date,Ke,Oe)},[pe,b]),ks=p.useCallback((ze,Ke)=>Oe=>{const rt={ArrowLeft:[Oe.shiftKey?"month":"day",t.dir==="rtl"?"after":"before"],ArrowRight:[Oe.shiftKey?"month":"day",t.dir==="rtl"?"before":"after"],ArrowDown:[Oe.shiftKey?"year":"week","after"],ArrowUp:[Oe.shiftKey?"year":"week","before"],PageUp:[Oe.shiftKey?"year":"month","before"],PageDown:[Oe.shiftKey?"year":"month","after"],Home:["startOfWeek","before"],End:["endOfWeek","after"]};if(rt[Oe.key]){Oe.preventDefault(),Oe.stopPropagation();const[Yt,qe]=rt[Oe.key];Me(Yt,qe)}j?.(ze.date,Ke,Oe)},[Me,j,t.dir]),ei=p.useCallback((ze,Ke)=>Oe=>{S?.(ze.date,Ke,Oe)},[S]),ti=p.useCallback((ze,Ke)=>Oe=>{T?.(ze.date,Ke,Oe)},[T]),va=p.useCallback(ze=>Ke=>{const Oe=Number(Ke.target.value),rt=c.setMonth(c.startOfMonth(ze),Oe);me(rt)},[c,me]),ba=p.useCallback(ze=>Ke=>{const Oe=Number(Ke.target.value),rt=c.setYear(c.startOfMonth(ze),Oe);me(rt)},[c,me]),{className:rs,style:ue}=p.useMemo(()=>({className:[f[Ne.Root],t.className].filter(Boolean).join(" "),style:{...D?.[Ne.Root],...t.style}}),[f,t.className,t.style,D]),$e=Uq(t),at=p.useRef(null);vW(at,!!t.animate,{classNames:f,months:ie,focused:we,dateLib:c});const Sn={dayPickerProps:t,selected:oe,select:J,isSelected:K,months:ie,nextMonth:re,previousMonth:$,goToMonth:me,getModifiers:L,components:s,classNames:f,styles:D,labels:o,formatters:i};return de.createElement(zT.Provider,{value:Sn},de.createElement(s.Root,{rootRef:t.animate?at:void 0,className:rs,style:ue,dir:t.dir,id:t.id,lang:t.lang,nonce:t.nonce,title:t.title,role:t.role,"aria-label":t["aria-label"],"aria-labelledby":t["aria-labelledby"],...$e},de.createElement(s.Months,{className:f[Ne.Months],style:D?.[Ne.Months]},!t.hideNavigation&&!x&&de.createElement(s.Nav,{"data-animated-nav":t.animate?"true":void 0,className:f[Ne.Nav],style:D?.[Ne.Nav],"aria-label":St(),onPreviousClick:is,onNextClick:Ot,previousMonth:$,nextMonth:re}),ie.map((ze,Ke)=>de.createElement(s.Month,{"data-animated-month":t.animate?"true":void 0,className:f[Ne.Month],style:D?.[Ne.Month],key:Ke,displayIndex:Ke,calendarMonth:ze},x==="around"&&!t.hideNavigation&&Ke===0&&de.createElement(s.PreviousMonthButton,{type:"button",className:f[Ne.PreviousMonthButton],tabIndex:$?void 0:-1,"aria-disabled":$?void 0:!0,"aria-label":Fe($),onClick:is,"data-animated-button":t.animate?"true":void 0},de.createElement(s.Chevron,{disabled:$?void 0:!0,className:f[Ne.Chevron],orientation:t.dir==="rtl"?"right":"left"})),de.createElement(s.MonthCaption,{"data-animated-caption":t.animate?"true":void 0,className:f[Ne.MonthCaption],style:D?.[Ne.MonthCaption],calendarMonth:ze,displayIndex:Ke},h?.startsWith("dropdown")?de.createElement(s.DropdownNav,{className:f[Ne.Dropdowns],style:D?.[Ne.Dropdowns]},(()=>{const Oe=h==="dropdown"||h==="dropdown-months"?de.createElement(s.MonthsDropdown,{key:"month",className:f[Ne.MonthsDropdown],"aria-label":Tt(),classNames:f,components:s,disabled:!!t.disableNavigation,onChange:va(ze.date),options:eW(ze.date,I,H,i,c),style:D?.[Ne.Dropdown],value:c.getMonth(ze.date)}):de.createElement("span",{key:"month"},_(ze.date,c)),rt=h==="dropdown"||h==="dropdown-years"?de.createElement(s.YearsDropdown,{key:"year",className:f[Ne.YearsDropdown],"aria-label":as(c.options),classNames:f,components:s,disabled:!!t.disableNavigation,onChange:ba(ze.date),options:sW(I,H,i,c,!!t.reverseYears),style:D?.[Ne.Dropdown],value:c.getYear(ze.date)}):de.createElement("span",{key:"year"},ce(ze.date,c));return c.getMonthYearOrder()==="year-first"?[rt,Oe]:[Oe,rt]})(),de.createElement("span",{role:"status","aria-live":"polite",style:{border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"}},P(ze.date,c.options,c))):de.createElement(s.CaptionLabel,{className:f[Ne.CaptionLabel],role:"status","aria-live":"polite"},P(ze.date,c.options,c))),x==="around"&&!t.hideNavigation&&Ke===y-1&&de.createElement(s.NextMonthButton,{type:"button",className:f[Ne.NextMonthButton],tabIndex:re?void 0:-1,"aria-disabled":re?void 0:!0,"aria-label":ge(re),onClick:Ot,"data-animated-button":t.animate?"true":void 0},de.createElement(s.Chevron,{disabled:re?void 0:!0,className:f[Ne.Chevron],orientation:t.dir==="rtl"?"left"
61:"right"})),Ke===y-1&&x==="after"&&!t.hideNavigation&&de.createElement(s.Nav,{"data-animated-nav":t.animate?"true":void 0,className:f[Ne.Nav],style:D?.[Ne.Nav],"aria-label":St(),onPreviousClick:is,onNextClick:Ot,previousMonth:$,nextMonth:re}),de.createElement(s.MonthGrid,{role:"grid","aria-multiselectable":m==="multiple"||m==="range","aria-label":Pe(ze.date,c.options,c)||void 0,className:f[Ne.MonthGrid],style:D?.[Ne.MonthGrid]},!t.hideWeekdays&&de.createElement(s.Weekdays,{"data-animated-weekdays":t.animate?"true":void 0,className:f[Ne.Weekdays],style:D?.[Ne.Weekdays]},R&&de.createElement(s.WeekNumberHeader,{"aria-label":Ns(c.options),className:f[Ne.WeekNumberHeader],style:D?.[Ne.WeekNumberHeader],scope:"col"},ne()),Ss.map(Oe=>de.createElement(s.Weekday,{"aria-label":st(Oe,c.options,c),className:f[Ne.Weekday],key:String(Oe),style:D?.[Ne.Weekday],scope:"col"},se(Oe,c.options,c)))),de.createElement(s.Weeks,{"data-animated-weeks":t.animate?"true":void 0,className:f[Ne.Weeks],style:D?.[Ne.Weeks]},ze.weeks.map(Oe=>de.createElement(s.Week,{className:f[Ne.Week],key:Oe.weekNumber,style:D?.[Ne.Week],week:Oe},R&&de.createElement(s.WeekNumber,{week:Oe,style:D?.[Ne.WeekNumber],"aria-label":xa(Oe.weekNumber,{locale:u}),className:f[Ne.WeekNumber],scope:"row",role:"rowheader"},G(Oe.weekNumber,c)),Oe.days.map(rt=>{const{date:Yt}=rt,qe=L(rt);if(qe[zt.focused]=!qe.hidden&&!!we?.isEqualTo(rt),qe[_s.selected]=K?.(Yt)||qe.selected,cy(oe)){const{from:ja,to:qs}=oe;qe[_s.range_start]=!!(ja&&qs&&c.isSameDay(Yt,ja)),qe[_s.range_end]=!!(ja&&qs&&c.isSameDay(Yt,qs)),qe[_s.range_middle]=Ua(oe,Yt,!0,c)}const ni=tW(qe,D,t.modifiersStyles),wa=Fq(qe,f,t.modifiersClassNames),Vr=!un&&!qe.hidden?Ve(Yt,qe,c.options,c):void 0;return de.createElement(s.Day,{key:`${c.format(Yt,"yyyy-MM-dd")}_${c.format(rt.displayMonth,"yyyy-MM")}`,day:rt,modifiers:qe,className:wa.join(" "),style:ni,role:"gridcell","aria-selected":qe.selected||void 0,"aria-label":Vr,"data-day":c.format(Yt,"yyyy-MM-dd"),"data-month":rt.outside?c.format(Yt,"yyyy-MM"):void 0,"data-selected":qe.selected||void 0,"data-disabled":qe.disabled||void 0,"data-hidden":qe.hidden||void 0,"data-outside":rt.outside||void 0,"data-focused":qe.focused||void 0,"data-today":qe.today||void 0},!qe.hidden&&un?de.createElement(s.DayButton,{className:f[Ne.DayButton],style:D?.[Ne.DayButton],type:"button",day:rt,modifiers:qe,disabled:qe.disabled||void 0,tabIndex:ee(rt)?0:-1,"aria-label":_e(Yt,qe,c.options,c),onClick:ya(rt,qe),onBlur:Cs(rt,qe),onFocus:Fn(rt,qe),onKeyDown:ks(rt,qe),onMouseEnter:ei(rt,qe),onMouseLeave:ti(rt,qe)},O(Yt,c.options,c)):!qe.hidden&&O(rt.date,c.options,c))})))))))),t.footer&&de.createElement(s.Footer,{className:f[Ne.Footer],style:D?.[Ne.Footer],role:"status","aria-live":"polite"},t.footer)))}function $W({className:e,classNames:t,showOutsideDays:s=!0,captionLayout:i="label",buttonVariant:o="ghost",formatters:c,components:u,...f}){const h=dy();return a.jsx(VW,{showOutsideDays:s,className:he("bg-background group/calendar p-3 [--cell-size:2rem] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent",String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,e),captionLayout:i,formatters:{formatMonthDropdown:m=>m.toLocaleString("default",{month:"short"}),...c},classNames:{root:he("w-fit",h.root),months:he("relative flex flex-col gap-4 md:flex-row",h.months),month:he("flex w-full flex-col gap-4",h.month),nav:he("absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1",h.nav),button_previous:he(xx({variant:o}),"h-[--cell-size] w-[--cell-size] select-none p-0 aria-disabled:opacity-50",h.button_previous),button_next:he(xx({variant:o}),"h-[--cell-size] w-[--cell-size] select-none p-0 aria-disabled:opacity-50",h.button_next),month_caption:he("flex h-[--cell-size] w-full items-center justify-center px-[--cell-size]",h.month_caption),dropdowns:he("flex h-[--cell-size] w-full items-center justify-center gap-1.5 text-sm font-medium",h.dropdowns),dropdown_root:he("has-focus:border-ring border-input shadow-xs has-focus:ring-ring/50 has-focus:ring-[3px] relative rounded-md border",h.dropdown_root),dropdown:he("bg-popover absolute inset-0 opacity-0",h.dropdown),caption_label:he("select-none font-medium",i==="label"?"text-sm":"[&>svg]:text-muted-foreground flex h-8 items-center gap-1 rounded-md pl-2 pr-1 text-sm [&>svg]:size-3.5",h.caption_label),table:"w-full border-collapse",weekdays:he("flex",h.weekdays),weekday:he("text-muted-foreground flex-1 select-none rounded-md text-[0.8rem] font-normal",h.weekday),week:he("mt-2 flex w-full",h.week),week_number_header:he("w-[--cell-size] select-none",h.week_number_header),week_number:he("text-muted-foreground select-none text-[0.8rem]",h.week_number),day:he("group/day relative aspect-square h-full w-full select-none p-0 text-center [&:first-child[data-selected=true]_button]:rounded-l-md [&:last-child[data-selected=true]_button]:rounded-r-md",h.day),range_start:he("bg-accent rounded-l-md",h.range_start),range_middle:he("rounded-none",h.range_middle),range_end:he("bg-
61accent rounded-r-md",h.range_end),today:he("bg-accent text-accent-foreground rounded-md data-[selected=true]:rounded-none",h.today),outside:he("text-muted-foreground aria-selected:text-muted-foreground",h.outside),disabled:he("text-muted-foreground opacity-50",h.disabled),hidden:he("invisible",h.hidden),...t},components:{Root:({className:m,rootRef:x,...y})=>a.jsx("div",{"data-slot":"calendar",ref:x,className:he(m),...y}),Chevron:({className:m,orientation:x,...y})=>x==="left"?a.jsx(qx,{className:he("size-4",m),...y}):x==="right"?a.jsx(Zs,{className:he("size-4",m),...y}):a.jsx(zf,{className:he("size-4",m),...y}),DayButton:BW,WeekNumber:({children:m,...x})=>a.jsx("td",{...x,children:a.jsx("div",{className:"flex size-[--cell-size] items-center justify-center text-center",children:m})}),...u},...f})}function BW({className:e,day:t,modifiers:s,...i}){const o=dy(),c=p.useRef(null);return p.useEffect(()=>{s.focused&&c.current?.focus()},[s.focused]),a.jsx(Xe,{ref:c,variant:"ghost",size:"icon","data-day":t.date.toLocaleDateString(),"data-selected-single":s.selected&&!s.range_start&&!s.range_end&&!s.range_middle,"data-range-start":s.range_start,"data-range-end":s.range_end,"data-range-middle":s.range_middle,className:he("data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 flex aspect-square h-auto w-full min-w-[--cell-size] flex-col gap-1 font-normal leading-none data-[range-end=true]:rounded-md data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-md group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-[3px] [&>span]:text-xs [&>span]:opacity-70",o.day,e),...i})}const mN=({status:e})=>{const t={Pending:"bg-yellow-100 text-yellow-800 border-yellow-200",Confirmed:"bg-blue-100 text-blue-800 border-blue-200","In Progress":"bg-purple-100 text-purple-800 border-purple-200",Completed:"bg-green-100 text-green-800 border-green-200"};return a.jsx("span",{className:he("px-2.5 py-0.5 rounded-full text-xs font-medium border",t[e]),children:e})};function FW(){const[e,t]=p.useState(),[s,i]=p.useState(""),[o,c]=p.useState(""),[u,f]=p.useState(""),{data:h=[]}=W5(),m=h0(),x=y=>{if(y.preventDefault(),!s||!o||!e){Ps({title:"Missing Information",description:"Please fill in all required fields.",variant:"destructive"});return}const b=s.startsWith("Maintenance")?"Maintenance":s;m.mutate({type:b,title:o,date:e.toISOString(),description:u||null,location:null,details:null},{onSuccess:()=>{Ps({title:"Request Sent",description:"Your request has been submitted to the concierge desk."})},onError:()=>{Ps({title:"Submission Failed",description:"Could not submit your request. Please try again.",variant:"destructive"})}}),c(""),f(""),t(void 0),i("")};return a.jsx(Ii,{children:a.jsxs("div",{className:"max-w-6xl mx-auto",children:[a.jsxs("div",{className:"text-center mb-12",children:[a.jsx("h1",{className:"text-2xl sm:text-4xl font-serif font-medium mb-4",children:"Concierge Desk"}),a.jsx("p",{className:"text-muted-foreground max-w-xl mx-auto",children:"From maintenance requests to exclusive event planning, our dedicated team is here to ensure your residence runs seamlessly."})]}),a.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-8",children:[a.jsxs("div",{className:"lg:col-span-1 space-y-6",children:[a.jsxs(Se,{className:"bg-primary text-primary-foreground border-none shadow-xl overflow-hidden relative",children:[a.jsx("div",{className:"absolute top-0 right-0 w-32 h-32 bg-white/5 rounded-full blur-3xl -mr-16 -mt-16 pointer-events-none"}),a.jsxs(Te,{className:"p-8 relative z-10",children:[a.jsx("h3",{className:"font-serif text-2xl mb-2",children:"24/7 Support"}),a.jsx("p",{className:"text-primary-foreground/70 mb-8 text-sm",children:"For immediate assistance or emergencie
61s."}),a.jsx("div",{className:"space-y-4",children:a.jsxs("div",{className:"flex items-center gap-4",children:[a.jsx("div",{className:"w-10 h-10 rounded-full bg-white/10 flex items-center justify-center",children:a.jsx(Yx,{className:"w-5 h-5"})}),a.jsxs("div",{children:[a.jsx("p",{className:"text-xs text-primary-foreground/60 uppercase tracking-wider",children:"Direct Line"}),a.jsx("p",{className:"font-medium text-lg",children:"+1 (555) 012-3456"})]})]})})]})]}),a.jsxs(Se,{className:"border-border/60 shadow-sm max-h-[500px] overflow-hidden flex flex-col",children:[a.jsx("div",{className:"p-6 border-b border-border/50 bg-secondary/20",children:a.jsx("h4",{className:"font-serif text-lg",children:"My Requests"})}),a.jsx("div",{className:"overflow-y-auto p-4 space-y-3",children:h.length===0?a.jsx("div",{className:"text-center py-8 text-muted-foreground text-sm",children:"No active requests"}):h.map(y=>a.jsxs(aa,{children:[a.jsx(dd,{asChild:!0,children:a.jsxs("div",{className:"p-4 rounded-lg bg-card border border-border/50 hover:border-primary/20 transition-colors cursor-pointer group",children:[a.jsxs("div",{className:"flex justify-between items-start mb-2",children:[a.jsx(Le,{variant:"outline",className:"text-[10px] uppercase tracking-wider",children:y.type}),a.jsx(mN,{status:y.status})]}),a.jsx("h5",{className:"font-medium text-sm mb-1 group-hover:text-primary transition-colors",children:y.title}),a.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:[a.jsx(Uw,{className:"w-3 h-3"}),kr(new Date(y.date),"MMM d, yyyy")]}),y.location&&a.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground mt-1",children:[a.jsx(Vo,{className:"w-3 h-3"}),a.jsx("span",{className:"truncate",children:y.location.address})]})]})}),a.jsxs(la,{children:[a.jsxs(ca,{children:[a.jsx(da,{className:"font-serif",children:y.title}),a.jsxs(ua,{children:["Request ID: #",y.id.toUpperCase()]})]}),a.jsxs("div",{className:"py-4 space-y-4",children:[a.jsxs("div",{className:"flex justify-between py-2 border-b border-border/50",children:[a.jsx("span",{className:"text-muted-foreground",children:"Status"}),a.jsx(mN,{status:y.status})]}),a.jsxs("div",{className:"flex justify-between py-2 border-b border-border/50",children:[a.jsx("span",{className:"text-muted-foreground",children:"Date"}),a.jsx("span",{children:kr(new Date(y.date),"PPP p")})]}),y.description&&a.jsxs("div",{className:"py-2",children:[a.jsx("span",{className:"text-muted-foreground block mb-1",children:"Details"}),a.jsx("p",{className:"text-sm",children:y.description})]}),y.location&&a.jsxs("div",{className:"py-2",children:[a.jsx("span",{className:"text-muted-foreground block mb-2",children:"Location"}),a.jsxs("div",{className:"bg-secondary/20 rounded-lg p-3",children:[a.jsxs("p",{className:"text-sm font-medium mb-2 flex items-center gap-2",children:[a.jsx(Vo,{className:"w-4 h-4 text-primary"}),y.location.address]}),a.jsxs("div",{className:"h-32 rounded-md overflow-hidden relative border border-border/50",children:[a.jsx("img",{src:Ef,className:"w-full h-full object-cover",alt:"Location Map"}),a.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:a.jsx(Vo,{className:"w-6 h-6 text-primary fill-current drop-shadow-md"})})]})]})]})]})]})]},y.id))})]})]}),a.jsx(Se,{className:"lg:col-span-2 shadow-lg border-border/60",children:a.jsxs(Te,{className:"p-8",children:[a.jsx("h3",{className:"font-serif text-2xl mb-6",children:"New Request"}),a.jsxs("form",{onSubmit:x,className:"space-y-6",children:[a.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[a.jsxs("div",{className:"space-y-2",children:[a.jsx(Ge,{children:"Request Type"}),a.jsxs(Ln,{value:s,onValueChange:i,children:[a.jsx(kn,{children:a.jsx(In,{placeholder:"Select category"})}),a.jsxs(Tn,{children:[a.jsx(De,{value:"Maintenance",children:"Home Maintenance"}),a.jsx(De,{value:"Transport",children:"Transport Booking"}),a.jsx(De,{value:"Maintenance-garden",children:"Gardening & Landscaping"}),a.jsx(De,{value:"Housekeeping",children:"Housekeeping"}),a.jsx(De,{value:"Event",children:"Event Planning"}),a.jsx(De,{value:"Other",children:"Other"})]})]})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsx(Ge,{children:"Preferred Date"}),a.jsxs(ey,{children:[a.jsx(ty,{asChild:!0,children:a.jsxs(Xe,{variant:"outline",className:he("w-full justify-start text-left font-normal",!e&&"text-muted-foreground"),children:[a.jsx(Uw,{className:"mr-2 h-4 w-4"}),e?kr(e,"PPP"):a.jsx("span",{children:"Pick a date"})]})}),a.jsx(nh,{className:"w-auto p-0",align:"start",children:a.jsx($W,{mode:"single",selected:e,onSelect:t,initialFocus:!0})})]})]})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsx(Ge,{children:"Subject"}),a.jsx(Ht,{value:o,onChange:y=>c(y.target.value),placeholder:"e.g., Irrigation system check"})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsx(Ge,{children:"Details"}),a.jsx(Xc,{value:u,onChange:y=>f(y.target.value),placeholder:"Please provide any specific instructions or details...",className:"min-h-[150px] resize-none"})]}),a.jsx("div",{className:"flex justify-end",children:a.jsxs(Xe,{type:"submit",size:"lg",className:"px-8 bg-primary text-primary-foreground hover:bg-primary/90",children:["Submit Request ",a.jsx(US,{className:"w-4 h-4 ml-2"})]})})]})]})})]})]})})}function HW(e,t=[]){let s=[];function i(c,u){const f=p.createContext(u);f.displayName=c+"Context";const h=s.length;s=[...s,u];const m=y=>{const{scope:b,children:w,...C}=y,j=b?.[e]?.[h]||f,S=p.useMemo(()=>C,Object.values(C));return a.jsx(j.Provider,{value:S,children:w})};m.displayName=c+"Provider";function x(y,b){const w=b?.[e]?.[h]||f,C=p.useContext(w);if(C)return C;if(u!==void 0)return u;throw new Error(`\`${y}\` must be used within \`${c}\``)}return[m,x]}const o=()=>{const c=s.map(u=>p.createContext(u));return function(f){const h=f?.[e]||c;return p.useMemo(()=>({[`__scope${e}`]:{...f,[e]:h}}),[f,h])}};return o.scopeName=e,[i,UW(o,...t)]}function UW(...e){const t=e[0];if(e.length===1)return t;const s=()=>{const i=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(c){const u=i.reduce((f,{useScope:h,scopeName:m})=>{const y=h(c)[`__scope${m}`];return{...f,...y}},{});return p.useMemo(()=>({[`__scope${t.scopeName}`]:u}),[u])}};return s.scopeName=t.scopeName,s}var qW=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],uy=qW.reduce((e,t)=>
61{const s=Q0(`Primitive.${t}`),i=p.forwardRef((o,c)=>{const{asChild:u,...f}=o,h=u?s:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),a.jsx(h,{...f,ref:c})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{});function WW(){return ON.useSyncExternalStore(GW,()=>!0,()=>!1)}function GW(){return()=>{}}var fy="Avatar",[YW]=HW(fy),[KW,GT]=YW(fy),YT=p.forwardRef((e,t)=>{const{__scopeAvatar:s,...i}=e,[o,c]=p.useState("idle");return a.jsx(KW,{scope:s,imageLoadingStatus:o,onImageLoadingStatusChange:c,children:a.jsx(uy.span,{...i,ref:t})})});YT.displayName=fy;var KT="AvatarImage",QT=p.forwardRef((e,t)=>{const{__scopeAvatar:s,src:i,onLoadingStatusChange:o=()=>{},...c}=e,u=GT(KT,s),f=QW(i,c),h=yn(m=>{o(m),u.onImageLoadingStatusChange(m)});return ut(()=>{f!=="idle"&&h(f)},[f,h]),f==="loaded"?a.jsx(uy.img,{...c,ref:t,src:i}):null});QT.displayName=KT;var XT="AvatarFallback",ZT=p.forwardRef((e,t)=>{const{__scopeAvatar:s,delayMs:i,...o}=e,c=GT(XT,s),[u,f]=p.useState(i===void 0);return p.useEffect(()=>{if(i!==void 0){const h=window.setTimeout(()=>f(!0),i);return()=>window.clearTimeout(h)}},[i]),u&&c.imageLoadingStatus!=="loaded"?a.jsx(uy.span,{...o,ref:t}):null});ZT.displayName=XT;function pN(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function QW(e,{referrerPolicy:t,crossOrigin:s}){const i=WW(),o=p.useRef(null),c=i?(o.current||(o.current=new window.Image),o.current):null,[u,f]=p.useState(()=>pN(c,e));return ut(()=>{f(pN(c,e))},[c,e]),ut(()=>{const h=y=>()=>{f(y)};if(!c)return;const m=h("loaded"),x=h("error");return c.addEventListener("load",m),c.addEventListener("error",x),t&&(c.referrerPolicy=t),typeof s=="string"&&(c.crossOrigin=s),()=>{c.removeEventListener("load",m),c.removeEventListener("error",x)}},[c,s,t]),u}var JT=YT,e3=QT,t3=ZT;const n3=p.forwardRef(({className:e,...t},s)=>a.jsx(JT,{ref:s,className:he("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));n3.displayName=JT.displayName;const s3=p.forwardRef(({className:e,...t},s)=>a.jsx(e3,{ref:s,className:he("aspect-square h-full w-full",e),...t}));s3.displayName=e3.displayName;const a3=p.forwardRef(({className:e,...t},s)=>a.jsx(t3,{ref:s,className:he("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));a3.displayName=t3.displayName;function gN(e,t,{checkForDefaultPrevented:s=!0}={}){return function(o){if(e?.(o),s===!1||!o.defaultPrevented)return t?.(o)}}var XW=Bs[" useInsertionEffect ".trim().toString()]||ut;function ZW({prop:e,defaultProp:t,onChange:s=()=>{},caller:i}){const[o,c,u]=JW({defaultProp:t,onChange:s}),f=e!==void 0,h=f?e:o;{const x=p.useRef(e!==void 0);p.useEffect(()=>{const y=x.current;y!==f&&console.warn(`${i} is changing from ${y?"controlled":"uncontrolled"} to ${f?"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.`),x.current=f},[f,i])}const m=p.useCallback(x=>{if(f){const y=eG(x)?x(e):x;y!==e&&u.current?.(y)}else c(x)},[f,e,c,u]);return[h,m]}function JW({defaultProp:e,onChange:t}){const[s,i]=p.useState(e),o=p.useRef(s),c=p.useRef(t);return XW(()=>{c.current=t},[t]),p.useEffect(()=>{o.current!==s&&(c.current?.(s),o.current=s)},[s,o]),[s,i,c]}function eG(e){return typeof e=="function"}var hh="Checkbox",[tG]=ss(hh),[nG,hy]=tG(hh);function sG(e){const{__scopeCheckbox:t,checked:s,children:i,defaultChecked:o,disabled:c,form:u,name:f,onCheckedChange:h,required:m,value:x="on",internal_do_not_use_render:y}=e,[b,w]=ZW({prop:s,defaultProp:o??!1,onChange:h,caller:hh}),[C,j]=p.useState(null),[S,T]=p.useState(null),M=p.useRef(!1),k=C?!!u||!!C.closest("form"):!0,R={checked:b,disabled:c,setChecked:w,control:C,setControl:j,name:f,form:u,value:x,hasConsumerStoppedPropagationRef:M,required:m,defaultChecked:Ri(o)?!1:o,isFormControl:k,bubbleInput:S,setBubbleInput:T};return a.jsx(nG,{scope:t,...R,children:aG(y)?y(R):i})}var i3="CheckboxTrigger",r3=p.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:s,...i},o)=>{const{control:c,value:u,disabled:f,checked:h,required:m,setControl:x,setChecked:y,hasConsumerStoppedPropagationRef:b,isFormControl:w,bubbleInput:C}=hy(i3,e),j=Ue(o,x),S=p.useRef(h);return p.useEffect(()=>{const T=c?.form;if(T){const M=()=>y(S.current);return T.addEventListener("reset",M),()=>T.removeEventListener("reset",M)}},[c,y]),a.jsx(Ie.button,{type:"button",role:"checkbox","aria-checked":Ri(h)?"mixed":h,"aria-required":m,"data-state":u3(h),"data-disabled":f?"":void 0,disabled:f,value:u,...i,ref:j,onKeyDown:gN(t,T=>{T.key==="Enter"&&T.preventDefault()}),onClick:gN(s,T=>{y(M=>Ri(M)?!0:!M),C&&w&&(b.current=T.isPropagationStopped(),b.current||T.stopPropagation())})})});r3.displayName=i3;var my=p.forwardRef((e,t)=>
61{const{__scopeCheckbox:s,name:i,checked:o,defaultChecked:c,required:u,disabled:f,value:h,onCheckedChange:m,form:x,...y}=e;return a.jsx(sG,{__scopeCheckbox:s,checked:o,defaultChecked:c,disabled:f,required:u,onCheckedChange:m,name:i,form:x,value:h,internal_do_not_use_render:({isFormControl:b})=>a.jsxs(a.Fragment,{children:[a.jsx(r3,{...y,ref:t,__scopeCheckbox:s}),b&&a.jsx(d3,{__scopeCheckbox:s})]})})});my.displayName=hh;var o3="CheckboxIndicator",l3=p.forwardRef((e,t)=>{const{__scopeCheckbox:s,forceMount:i,...o}=e,c=hy(o3,s);return a.jsx(pa,{present:i||Ri(c.checked)||c.checked===!0,children:a.jsx(Ie.span,{"data-state":u3(c.checked),"data-disabled":c.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});l3.displayName=o3;var c3="CheckboxBubbleInput",d3=p.forwardRef(({__scopeCheckbox:e,...t},s)=>{const{control:i,hasConsumerStoppedPropagationRef:o,checked:c,defaultChecked:u,required:f,disabled:h,name:m,value:x,form:y,bubbleInput:b,setBubbleInput:w}=hy(c3,e),C=Ue(s,w),j=oh(c),S=Ff(i);p.useEffect(()=>{const M=b;if(!M)return;const k=window.HTMLInputElement.prototype,D=Object.getOwnPropertyDescriptor(k,"checked").set,P=!o.current;if(j!==c&&D){const O=new Event("click",{bubbles:P});M.indeterminate=Ri(c),D.call(M,Ri(c)?!1:c),M.dispatchEvent(O)}},[b,j,c,o]);const T=p.useRef(Ri(c)?!1:c);return a.jsx(Ie.input,{type:"checkbox","aria-hidden":!0,defaultChecked:u??T.current,required:f,disabled:h,name:m,value:x,form:y,...t,tabIndex:-1,ref:C,style:{...t.style,...S,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});d3.displayName=c3;function aG(e){return typeof e=="function"}function Ri(e){return e==="indeterminate"}function u3(e){return Ri(e)?"indeterminate":e?"checked":"unchecked"}const f3=p.forwardRef(({className:e,...t},s)=>a.jsx(my,{ref:s,className:he("grid place-content-center peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),...t,children:a.jsx(l3,{className:he("grid place-content-center text-current"),children:a.jsx(ia,{className:"h-4 w-4"})})}));f3.displayName=my.displayName;function iG(){const[e,t]=p.useState(!1),[s,i]=p.useState(!1),{data:o=[]}=G5(),c=Y5(),u=K5(),[f,h]=p.useState(!1),[m,x]=p.useState(""),[y,b]=p.useState(""),[w,C]=p.useState([]),j=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],S=()=>{!m||!y||(c.mutate({name:m,role:y,accessDays:w.length>0?w.join(", "):"One-time Access"}),x(""),b(""),C([]),h(!1))},T=M=>{w.includes(M)?C(w.filter(k=>k!==M)):C([...w,M])};return a.jsxs(Ii,{children:[a.jsxs("div",{className:"mb-8 flex flex-col md:flex-row md:items-center md:justify-between gap-4",children:[a.jsxs("div",{children:[a.jsx("h1",{className:"text-2xl sm:text-3xl font-serif font-medium mb-2",children:"My Residence"}),a.jsx("p",{className:"text-muted-foreground",children:"Unit 4 ⢠Sonoma Vineyard Estates"})]}),a.jsxs("div",{className:"flex items-center gap-2 px-4 py-2 bg-primary/10 text-primary rounded-full text-sm font-medium animate-pulse",children:[a.jsx(Go,{className:"w-4 h-4"}),"System Armed"]})]}),a.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-8",children:[a.jsxs("div",{className:"lg:col-span-2 space-y-8",children:[a.jsx("section",{children:a.jsx(sn,{href:"/smart-home",children:a.jsx(Se,{className:"mb-4 cursor-pointer hover:border-primary/50 transition-all group bg-gradient-to-r from-primary/5 to-primary/10","data-testid":"card-smart-home-link",children:a.jsxs(Te,{className:"p-6 flex items-center justify-between",children:[a.jsxs("div",{className:"flex items-center gap-4",children:[a.jsx("div",{className:"p-3 rounded-full bg-primary text-primary-foreground",children:a.jsx(Hi,{className:"w-6 h-6"})}),a.jsxs("div",{children:[a.jsx("h3",{className:"font-medium text-lg",children:"Smart Home Control"}),a.jsx("p",{className:"text-sm text-muted-foreground",children:"Control lights, shades, climate & more"})]})]}),a.jsx(Zs,{className:"w-5 h-5 text-muted-foreground group-hover:text-primary transition-colors"})]})})})}),a.jsxs("section",{children:[a.jsx("h2",{className:"text-xl font-serif mb-4",children:"Smart Access"}),a.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[a.jsx(Se,{className:`transition-all duration-300 cursor-pointer ${e?"border-primary bg-primary/5":"hover:border-primary/50"}`,onClick:()=>t(!e),children:a.jsxs(Te,{className:"p-6 flex items-center justify-between",children:[a.jsxs("div",{className:"flex items-center gap-4",children:[a.jsx("div",{className:`p-3 rounded-full transition-colors ${e?"bg-primary text-primary-foreground":"bg-secondary text-secondary-foreground"}`,children:e?a.jsx(ff,{className:"w-6 h-6"}):a.jsx(En,{className:"w-6 h-6"})}),a.jsxs("div",{children:[a.jsx("h3",{className:"font-medium",children:"Main Gate"}),a.jsx("p",{className:"text-sm text-muted-foreground",children:e?"Unlocked":"Locked"})]})]}),a.jsx(Pr,{checked:e,onCheckedChange:t})]})}),a.jsx(Se,{className:`transition-all duration-300 cursor-pointer ${s?"border-primary bg-primary/5":"hover:border-primary/50"}`,onClick:()=>i(!s),children:a.jsxs(Te,{className:"p-6 flex items-center justify-between",children:[a.jsxs("div",{className:"flex items-center gap-4",children:[a.jsx("div",{className:`p-3 rounded-full transition-colors ${s?"bg-primary text-primary-foreground":"bg-secondary text-secondary-foreground"}`,children:a.jsx(Vg,{className:"w-6 h-6"})}),a.jsxs("div",{children:[a.jsx("h3",{className:"font-medium",children:"Garage Door"}),a.jsx("p",{className:"text-sm text-muted-foreground",children:s?"Open":"Closed"})]})]}),a.jsx(Pr,{checked:s,onCheckedChange:i})]})})]})]}),a.jsxs("section",{children:[a.jsx("h2",{className:"text-xl font-serif mb-4",children:"Environment"}),a.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[a.jsx(Se,{children:a.jsxs(Te,{className:"p-6",children:[a.jsxs("div",{className:"flex justify-between items-start mb-4",children:[a.jsx(Lf,{className:"w-5 h-5 text-muted-foreground"}),a.jsx("span",{className:"text-2xl font-medium",children:"72°"})]}),a.jsx("p",{className:"text-sm font-medium",children:"Climate"}),a.jsx("p",{className:"text-xs text-muted-foreground",children:"Auto Mode"})]})}),a.jsx(Se,{children:a.jsxs(Te,{className:"p-6",children:[a.jsxs("div",{className:"flex justify-between items-start mb-4",children:[a.jsx(Yo,{className:"w-5 h-5 text-muted-foreground"}),a.jsx("span",{className:"text-xs font-medium bg-green-100 text-green-700 px-2 py-1 rounded",children:"Online"})]}),a.jsx("p",{className:"text-sm font-medium",children:"Network"}),a.jsx("p",{className:"text-xs text-muted-foreground",children:"1.2 Gbps"})]})}),a.jsx(Se,{children:a.jsxs(Te,{className:"p-6",children:[a.jsxs("div",{className:"flex justify-between items-start mb-4",children:[a.jsx(F
61a,{className:"w-5 h-5 text-muted-foreground"}),a.jsx("span",{className:"text-xs font-medium bg-green-100 text-green-700 px-2 py-1 rounded",children:"Good"})]}),a.jsx("p",{className:"text-sm font-medium",children:"Energy"}),a.jsx("p",{className:"text-xs text-muted-foreground",children:"Solar Active"})]})})]})]}),a.jsxs("section",{children:[a.jsxs("div",{className:"flex items-center justify-between mb-4",children:[a.jsx("h2",{className:"text-xl font-serif",children:"Recent Activity"}),a.jsx(Xe,{variant:"ghost",size:"sm",className:"text-muted-foreground",children:"View All"})]}),a.jsx(Se,{children:a.jsx(Te,{className:"p-0",children:[{event:"Gardener Entry",time:"Today, 9:00 AM",icon:Ip},{event:"Package Delivered",time:"Yesterday, 2:30 PM",icon:Ip},{event:"Main Gate Opened",time:"Yesterday, 6:15 PM",icon:Ip}].map((M,k)=>a.jsxs("div",{className:"flex items-center gap-4 p-4 border-b last:border-0 hover:bg-secondary/20 transition-colors",children:[a.jsx("div",{className:"p-2 rounded-full bg-secondary",children:a.jsx(M.icon,{className:"w-4 h-4 text-muted-foreground"})}),a.jsxs("div",{children:[a.jsx("p",{className:"font-medium text-sm",children:M.event}),a.jsx("p",{className:"text-xs text-muted-foreground",children:M.time})]})]},k))})})]})]}),a.jsxs("div",{className:"space-y-8",children:[a.jsxs(Se,{children:[a.jsxs(Hc,{className:"flex flex-row items-center justify-between",children:[a.jsx(vf,{className:"font-serif text-lg",children:"Authorized Access"}),a.jsxs("span",{className:"text-xs text-muted-foreground bg-secondary px-2 py-1 rounded-full",children:[o.length," Active"]})]}),a.jsx(Te,{children:a.jsxs("div",{className:"space-y-4",children:[o.map(M=>a.jsxs("div",{className:"flex items-center gap-3 group",children:[a.jsxs(n3,{className:"h-9 w-9",children:[a.jsx(s3,{src:`https://i.pravatar.cc/150?u=${M.id}`}),a.jsx(a3,{children:M.name[0]})]}),a.jsxs("div",{className:"flex-1",children:[a.jsx("p",{className:"text-sm font-medium",children:M.name}),a.jsx("p",{className:"text-xs text-muted-foreground",children:M.role}),a.jsx("p",{className:"text-[10px] text-muted-foreground/70",children:M.accessDays})]}),a.jsx(Xe,{variant:"ghost",size:"icon",className:"h-8 w-8 text-destructive opacity-0 group-hover:opacity-100 transition-opacity",onClick:()=>u.mutate(M.id),children:a.jsx(Xx,{className:"w-4 h-4"})})]},M.id)),a.jsxs(aa,{open:f,onOpenChange:h,children:[a.jsx(dd,{asChild:!0,children:a.jsxs(Xe,{variant:"outline",className:"w-full mt-4 border-dashed",children:[a.jsx(Qx,{className:"w-4 h-4 mr-2"})," Add Guest"]})}),a.jsxs(la,{children:[a.jsxs(ca,{children:[a.jsx(da,{children:"Grant Access"}),a.jsx(ua,{children:"Create a digital pass for a visitor or service provider."})]}),a.jsxs("div",{className:"grid gap-4 py-4",children:[a.jsxs("div",{className:"grid gap-2",children:[a.jsx(Ge,{htmlFor:"name",children:"Full Name"}),a.jsx(Ht,{id:"name",value:m,onChange:M=>x(M.target.value),placeholder:"e.g. John Smith"})]}),a.jsxs("div",{className:"grid gap-2",children:[a.jsx(Ge,{htmlFor:"role",children:"Role / Relationship"}),a.jsx(Ht,{id:"role",value:y,onChange:M=>b(M.target.value),placeholder:"e.g. Dog Walker"})]}),a.jsxs("div",{className:"grid gap-2",children:[a.jsx(Ge,{children:"Allowed Days"}),a.jsx("div",{className:"flex flex-wrap gap-2",children:j.map(M=>a.jsxs("div",{className:"flex items-center space-x-2",children:[a.jsx(f3,{id:M,checked:w.includes(M),onCheckedChange:()=>T(M)}),a.jsx("label",{htmlFor:M,className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:M})]},M))})]})]}),a.jsx(Vi,{children:a.jsx(Xe,{onClick:S,children:"Create Pass"})})]})]})]})})]}),a.jsxs(Se,{children:[a.jsx(Hc,{children:a.jsx(vf,{className:"font-serif text-lg",children:"Documents"})}),a.jsx(Te,{children:a.jsx("div",{className:"space-y-2",children:["HOA Guidelines 2024","Appliance Manuals","Trash Schedule"].map((M,k)=>a.jsxs(Xe,{variant:"ghost",className:"w-full justify-start h-auto py-3 px-2 text-muted-foreground hover:text-foreground",children:[a.jsx(zS,{className:"w-4 h-4 mr-3"}),M]},k))})})]})]})]})]})}function Lo(e,t,{checkForDefaultPrevented:s=!0}={}
61){return function(o){if(e?.(o),s===!1||!o.defaultPrevented)return t?.(o)}}var rG=Bs[" useInsertionEffect ".trim().toString()]||ut;function oG({prop:e,defaultProp:t,onChange:s=()=>{},caller:i}){const[o,c,u]=lG({defaultProp:t,onChange:s}),f=e!==void 0,h=f?e:o;{const x=p.useRef(e!==void 0);p.useEffect(()=>{const y=x.current;y!==f&&console.warn(`${i} is changing from ${y?"controlled":"uncontrolled"} to ${f?"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.`),x.current=f},[f,i])}const m=p.useCallback(x=>{if(f){const y=cG(x)?x(e):x;y!==e&&u.current?.(y)}else c(x)},[f,e,c,u]);return[h,m]}function lG({defaultProp:e,onChange:t}){const[s,i]=p.useState(e),o=p.useRef(s),c=p.useRef(t);return rG(()=>{c.current=t},[t]),p.useEffect(()=>{o.current!==s&&(c.current?.(s),o.current=s)},[s,o]),[s,i,c]}function cG(e){return typeof e=="function"}var h3=["PageUp","PageDown"],m3=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],p3={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},xl="Slider",[Cx,dG,uG]=ry(xl),[g3]=ss(xl,[uG]),[fG,mh]=g3(xl),x3=p.forwardRef((e,t)=>{const{name:s,min:i=0,max:o=100,step:c=1,orientation:u="horizontal",disabled:f=!1,minStepsBetweenThumbs:h=0,defaultValue:m=[i],value:x,onValueChange:y=()=>{},onValueCommit:b=()=>{},inverted:w=!1,form:C,...j}=e,S=p.useRef(new Set),T=p.useRef(0),k=u==="horizontal"?hG:mG,[R=[],D]=oG({prop:x,defaultProp:m,onChange:se=>{[...S.current][T.current]?.focus(),y(se)}}),P=p.useRef(R);function O(se){const ce=vG(R,se);ne(se,ce)}function _(se){ne(se,T.current)}function G(){const se=P.current[T.current];R[T.current]!==se&&b(R)}function ne(se,ce,{commit:Z}={commit:!1}){const F=NG(c),ie=SG(Math.round((se-i)/c)*c+i,F),I=Mf(ie,[i,o]);D((H=[])=>{const $=xG(H,I,ce);
61if(jG($,h*c)){T.current=$.indexOf(I);const re=String($)!==String(H);return re&&Z&&b($),re?$:H}else return H})}return a.jsx(fG,{scope:e.__scopeSlider,name:s,disabled:f,min:i,max:o,valueIndexToChangeRef:T,thumbs:S.current,values:R,orientation:u,form:C,children:a.jsx(Cx.Provider,{scope:e.__scopeSlider,children:a.jsx(Cx.Slot,{scope:e.__scopeSlider,children:a.jsx(k,{"aria-disabled":f,"data-disabled":f?"":void 0,...j,ref:t,onPointerDown:Lo(j.onPointerDown,()=>{f||(P.current=R)}),min:i,max:o,inverted:w,onSlideStart:f?void 0:O,onSlideMove:f?void 0:_,onSlideEnd:f?void 0:G,onHomeKeyDown:()=>!f&&ne(i,0,{commit:!0}),onEndKeyDown:()=>!f&&ne(o,R.length-1,{commit:!0}),onStepKeyDown:({event:se,direction:ce})=>{if(!f){const ie=h3.includes(se.key)||se.shiftKey&&m3.includes(se.key)?10:1,I=T.current,H=R[I],$=c*ie*ce;ne(H+$,I,{commit:!0})}}})})})})});x3.displayName=xl;var[y3,v3]=g3(xl,{startEdge:"left",endEdge:"right",size:"width",direction:1}),hG=p.forwardRef((e,t)=>{const{min:s,max:i,dir:o,inverted:c,onSlideStart:u,onSlideMove:f,onSlideEnd:h,onStepKeyDown:m,...x}=e,[y,b]=p.useState(null),w=Ue(t,k=>b(k)),C=p.useRef(void 0),j=rh(o),S=j==="ltr",T=S&&!c||!S&&c;function M(k){const R=C.current||y.getBoundingClientRect(),D=[0,R.width],O=py(D,T?[s,i]:[i,s]);return C.current=R,O(k-R.left)}return a.jsx(y3,{scope:e.__scopeSlider,startEdge:T?"left":"right",endEdge:T?"right":"left",direction:T?1:-1,size:"width",children:a.jsx(b3,{dir:j,"data-orientation":"horizontal",...x,ref:w,style:{...x.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:k=>{const R=M(k.clientX);u?.(R)},onSlideMove:k=>{const R=M(k.clientX);f?.(R)},onSlideEnd:()=>{C.current=void 0,h?.()},onStepKeyDown:k=>{const D=p3[T?"from-left":"from-right"].includes(k.key);m?.({event:k,direction:D?-1:1})}})})}),mG=p.forwardRef((e,t)=>{const{min:s,max:i,inverted:o,onSlideStart:c,onSlideMove:u,onSlideEnd:f,onStepKeyDown:h,...m}=e,x=p.useRef(null),y=Ue(t,x),b=p.useRef(void 0),w=!o;function C(j){const S=b.current||x.current.getBoundingClientRect(),T=[0,S.height],k=py(T,w?[i,s]:[s,i]);return b.current=S,k(j-S.top)}return a.jsx(y3,{scope:e.__scopeSlider,startEdge:w?"bottom":"top",endEdge:w?"top":"bottom",size:"height",direction:w?1:-1,children:a.jsx(b3,{"data-orientation":"vertical",...m,ref:y,style:{...m.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:j=>{const S=C(j.clientY);c?.(S)},onSlideMove:j=>{const S=C(j.clientY);u?.(S)},onSlideEnd:()=>{b.current=void 0,f?.()},onStepKeyDown:j=>{const T=p3[w?"from-bottom":"from-top"].includes(j.key);h?.({event:j,direction:T?-1:1})}})})}),b3=p.forwardRef((e,t)=>{const{__scopeSlider:s,onSlideStart:i,onSlideMove:o,onSlideEnd:c,onHomeKeyDown:u,onEndKeyDown:f,onStepKeyDown:h,...m}=e,x=mh(xl,s);return a.jsx(Ie.span,{...m,ref:t,onKeyDown:Lo(e.onKeyDown,y=>{y.key==="Home"?(u(y),y.preventDefault()):y.key==="End"?(f(y),y.preventDefault()):h3.concat(m3).includes(y.key)&&(h(y),y.preventDefault())}),onPointerDown:Lo(e.onPointerDown,y=>{const b=y.target;b.setPointerCapture(y.pointerId),y.preventDefault(),x.thumbs.has(b)?b.focus():i(y)}),onPointerMove:Lo(e.onPointerMove,y=>{y.target.hasPointerCapture(y.pointerId)&&o(y)}),onPointerUp:Lo(e.onPointerUp,y=>{const b=y.target;b.hasPointerCapture(y.pointerId)&&(b.releasePointerCapture(y.pointerId),c(y))})})}),w3="SliderTrack",j3=p.forwardRef((e,t)=>{const{__scopeSlider:s,...i}=e,o=mh(w3,s);return a.jsx(Ie.span,{"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation,...i,ref:t})});j3.displayName=w3;var kx="SliderRange",N3=p.forwardRef((e,t)=>{const{__scopeSlider:s,...i}=e,o=mh(kx,s),c=v3(kx,s),u=p.useRef(null),f=Ue(t,u),h=o.values.length,m=o.values.map(b=>k3(b,o.min,o.max)),x=h>1?Math.min(...m):0,y=100-Math.max(...m);return a.jsx(Ie.span,{"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0,...i,ref:f,style:{...e.style,[c.startEdge]:x+"%",[c.endEdge]:y+"%"}})});N3.displayName=kx;var Tx="SliderThumb",S3=p.forwardRef((e,t)=>{const s=dG(e.__scopeSlider),[i,o]=p.useState(null),c=Ue(t,f=>o(f)),u=p.useMemo(()=>i?s().findIndex(f=>f.ref.current===i):-1,[s,i]);return a.jsx(pG,{...e,ref:c,index:u})}),pG=p.forwardRef((e,t)=>
61{const{__scopeSlider:s,index:i,name:o,...c}=e,u=mh(Tx,s),f=v3(Tx,s),[h,m]=p.useState(null),x=Ue(t,M=>m(M)),y=h?u.form||!!h.closest("form"):!0,b=Ff(h),w=u.values[i],C=w===void 0?0:k3(w,u.min,u.max),j=yG(i,u.values.length),S=b?.[f.size],T=S?bG(S,C,f.direction):0;return p.useEffect(()=>{if(h)return u.thumbs.add(h),()=>{u.thumbs.delete(h)}},[h,u.thumbs]),a.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[f.startEdge]:`calc(${C}% + ${T}px)`},children:[a.jsx(Cx.ItemSlot,{scope:e.__scopeSlider,children:a.jsx(Ie.span,{role:"slider","aria-label":e["aria-label"]||j,"aria-valuemin":u.min,"aria-valuenow":w,"aria-valuemax":u.max,"aria-orientation":u.orientation,"data-orientation":u.orientation,"data-disabled":u.disabled?"":void 0,tabIndex:u.disabled?void 0:0,...c,ref:x,style:w===void 0?{display:"none"}:e.style,onFocus:Lo(e.onFocus,()=>{u.valueIndexToChangeRef.current=i})})}),y&&a.jsx(C3,{name:o??(u.name?u.name+(u.values.length>1?"[]":""):void 0),form:u.form,value:w},i)]})});S3.displayName=Tx;var gG="RadioBubbleInput",C3=p.forwardRef(({__scopeSlider:e,value:t,...s},i)=>{const o=p.useRef(null),c=Ue(o,i),u=oh(t);return p.useEffect(()=>{const f=o.current;if(!f)return;const h=window.HTMLInputElement.prototype,x=Object.getOwnPropertyDescriptor(h,"value").set;if(u!==t&&x){const y=new Event("input",{bubbles:!0});x.call(f,t),f.dispatchEvent(y)}},[u,t]),a.jsx(Ie.input,{style:{display:"none"},...s,ref:c,defaultValue:t})});C3.displayName=gG;function xG(e=[],t,s){const i=[...e];return i[s]=t,i.sort((o,c)=>o-c)}function k3(e,t,s){const c=100/(s-t)*(e-t);return Mf(c,[0,100])}function yG(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function vG(e,t){if(e.length===1)return 0;const s=e.map(o=>Math.abs(o-t)),i=Math.min(...s);return s.indexOf(i)}function bG(e,t,s){const i=e/2,c=py([0,50],[0,i]);return(i-c(t)*s)*s}function wG(e){return e.slice(0,-1).map((t,s)=>e[s+1]-t)}function jG(e,t){if(t>0){const s=wG(e);return Math.min(...s)>=t}return!0}function py(e,t){return s=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const i=(t[1]-t[0])/(e[1]-e[0]);return t[0]+i*(s-e[0])}}function NG(e){return(String(e).split(".")[1]||"").length}function SG(e,t){const s=Math.pow(10,t);return Math.round(e*s)/s}var T3=x3,CG=j3,kG=N3,TG=S3;const lf=p.forwardRef(({className:e,...t},s)=>a.jsxs(T3,{ref:s,className:he("relative flex w-full touch-none select-none items-center",e),...t,children:[a.jsx(CG,{className:"relative h-1.5 w-full grow overflow-hidden rounded-full bg-primary/20",children:a.jsx(kG,{className:"absolute h-full bg-primary"})}),a.jsx(TG,{className:"block h-4 w-4 rounded-full border border-primary/50 bg-background shadow transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50"})]}));
61lf.displayName=T3.displayName;const EG="/assets/room-living-CQG36vTx.png",MG="/assets/room-bedroom-J2POqt8C.png",AG="/assets/room-kitchen-Blq6mKNp.png",E3="/assets/property-hero-Cp631yWi.png",xN={driveway:"/cameras/driveway.mp4","front door":"/cameras/front-door.mp4","front entry":"/cameras/front-door.mp4",entry:"/cameras/front-door.mp4",backyard:"/cameras/backyard.mp4",garden:"/cameras/backyard.mp4",patio:"/cameras/backyard.mp4",pool:"/cameras/backyard.mp4",garage:"/cameras/garage.mp4"};function DG(e){const t=e.toLowerCase();for(const[o,c]of Object.entries(xN))if(t.includes(o))return c;const s=Object.values(xN);let i=0;for(let o=0;o<e.length;o++)i=(i<<5)-i+e.charCodeAt(o)|0;return s[Math.abs(i)%s.length]}function OG({cameraName:e,isOn:t,motionDetected:s,variant:i="default"}){const o=p.useRef(null),[c,u]=p.useState(!1),f=DG(e);p.useEffect(()=>{o.current&&t&&!c&&o.current.play().catch(()=>{})},[t,c]);const m=i==="glass"?"rounded-xl":"rounded-t-lg";return t?c?a.jsxs("div",{className:`aspect-video bg-gray-900 flex items-center justify-center relative ${m} overflow-hidden`,"data-testid":"camera-feed-fallback",children:[a.jsxs("div",{className:"absolute top-2 left-2 flex items-center gap-1.5 z-10",children:[a.jsx("div",{className:"w-2 h-2 rounded-full bg-green-500 animate-pulse"}),a.jsx("span",{className:"text-[10px] text-white/60 font-mono uppercase tracking-wider",children:"Live"})]}),a.jsx(Vc,{className:"w-8 h-8 text-gray-600"}),s&&a.jsx("span",{className:"absolute top-2 right-2 bg-red-500 text-white text-[10px] font-bold px-1.5 py-0.5 rounded z-10",children:"Motion"})]}):a.jsxs("div",{className:`aspect-video relative overflow-hidden ${m} bg-black`,"data-testid":"camera-feed-live",children:[a.jsx("video",{ref:o,src:f,autoPlay:!0,loop:!0,muted:!0,playsInline:!0,onError:()=>u(!0),className:"absolute inset-0 w-full h-full object-cover"}),a.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-black/30 via-transparent to-black/20 pointer-events-none"}),a.jsxs("div",{className:"absolute top-2 left-2 flex items-center gap-1.5 z-10",children:[a.jsx("div",{className:"w-2 h-2 rounded-full bg-red-500 animate-pulse shadow-[0_0_6px_rgba(239,68,68,0.7)]"}),a.jsx("span",{className:"text-[10px] font-bold tracking-wider text-red-400",children:"LIVE"})]}),a.jsx("div",{className:"absolute bottom-2 left-2 z-10",children:a.jsx("span",{className:"text-[10px] text-white/60 font-mono uppercase tracking-wider",children:e})}),s&&a.jsx("span",{className:"absolute top-2 right-2 bg-red-500/90 backdrop-blur-sm text-white text-[10px] font-bold px-1.5 py-0.5 rounded z-10 animate-pulse",children:"MOTION"}),a.jsx("div",{className:"absolute inset-0 pointer-events-none",style:{backgroundImage:"repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.03) 2px, rgba(0,0,0,0.03) 4px)"}})]}):a.jsxs("div",{className:`aspect-video bg-gray-900 flex items-center justify-center relative ${m} overflow-hidden`,"data-testid":"camera-feed-off",children:[a.jsxs("div",{className:"absolute top-2 left-2 flex items-center gap-1.5",children:[a.jsx("div",{className:"w-2 h-2 rounded-full bg-gray-500"}),a.jsx("span",{className:"text-[10px] text-white/50 font-mono uppercase tracking-wider",children:"Off"})]}),a.jsx(Vc,{className:"w-8 h-8 text-gray-600"})]})}const RG={sun:{bg:"bg-amber-500/20",text:"text-amber-300",ring:"ring-amber-400/40",shadow:"shadow-[0_0_16px_rgba(245,158,11,0.2)]"},moon:{bg:"bg-indigo-500/20",text:"text-indigo-300",ring:"ring-indigo-400/40",shadow:"shadow-[0_0_16px_rgba(99,102,241,0.2)]"},coffee:{bg:"bg-orange-500/20",text:"text-orange-300",ring:"ring-orange-400/40",shadow:"shadow-[0_0_16px_rgba(249,115,22,0.2)]"},film:{bg:"bg-violet-500/20",text:"text-violet-300",ring:"ring-violet-400/40",shadow:"shadow-[0_0_16px_rgba(139,92,246,0.2)]"},home:{bg:"bg-sky-500/20",text:"text-sky-300",ring:"ring-sky-400/40",shadow:"shadow-[0_0_16px_rgba(14,165,233,0.2)]"},sparkles:{bg:"bg-fuchsia-500/20",text:"text-fuchsia-300",ring:"ring-fuchsia-400/40",shadow:"shadow-[0_0_16px_rgba(217,70,239,0.2)]"},sunrise:{bg:"bg-rose-500/20",text:"text-rose-300",ring:"ring-rose-400/40",shadow:"shadow-[0_0_16px_rgba(244,63,94,0.2)]"},book:{bg:"bg-teal-500/20",text:"text-teal-300",ring:"ring-teal-400/40",shadow:"shadow-[0_0_16px_rgba(20,184,166,0.2)]"},flame:{bg:"bg-red-500/20",text:"text-red-300",ring:"ring-red-400/40",shadow:"shadow-[0_0_16px_rgba(239,68,68,0.2)]"},wine:{bg:"bg-pink-500/20",text:"text-pink-300",ring:"ring-pink-400/40",shadow:"shadow-[0_0_16px_rgba(236,72,153,0.2)]"}},yN=[{bg:"bg-amber-500/20",text:"text-amber-300",ring:"ring-amber-400/40",shadow:"shadow-[0_0_16px_rgba(245,158,11,0.2)]"},{bg:"bg-emerald-500/20",text:"text-emerald-300",ring:"ring-emerald-400/40",shadow:"shadow-[0_0_16px_rgba(52,211,153,0.2)]"},{bg:"bg-sky-500/20",text:"text-sky-300",ring:"ring-sky-400/40",shadow:"shadow-[0_0_16px_rgba(14,165,233,0.2)]"},{bg:"bg-violet-500/20",text:"text-violet-300",ring:"ring-violet-400/40",shadow:"shadow-[0_0_16px_rgba(139,92,246,0.2)]"},{bg:"bg-rose-500/20",text:"text-rose-300",ring:"ring-rose-400/40",shadow:"shadow-[0_0_16px_rgba(244,63,94,0.2)]"},{bg:"bg-teal-500/20",text:"text-teal-300",ring:"ring-teal-400/40",shadow:"shadow-[0_0_16px_rgba(20,184,166,0.2)]"}],_G={sun:a.jsx(il,{className:"w-5 h-5"}
61),moon:a.jsx($c,{className:"w-5 h-5"}),coffee:a.jsx(fO,{className:"w-5 h-5"}),film:a.jsx(LS,{className:"w-5 h-5"}),home:a.jsx(Hi,{className:"w-5 h-5"}),sparkles:a.jsx($o,{className:"w-5 h-5"}),sunrise:a.jsx(YS,{className:"w-5 h-5"}),book:a.jsx(_D,{className:"w-5 h-5"}),flame:a.jsx(RO,{className:"w-5 h-5"}),wine:a.jsx(ed,{className:"w-5 h-5"})};function vN(e){const t=e.toLowerCase();return t.includes("living")?EG:t.includes("bedroom")||t.includes("master")?MG:t.includes("kitchen")?AG:E3}function bN(e){const t=new Date(e),i=new Date().getTime()-t.getTime(),o=Math.floor(i/6e4);if(o<1)return"Just now";if(o<60)return`${o}m ago`;const c=Math.floor(o/60);return c<24?`${c}h ago`:t.toLocaleDateString()}function wN(){const e=new Date().getHours();return e<5?{greeting:"Good Night",period:"night"}:e<12?{greeting:"Good Morning",period:"morning"}:e<17?{greeting:"Good Afternoon",period:"afternoon"}:e<21?{greeting:"Good Evening",period:"evening"}:{greeting:"Good Night",period:"night"}}function jN(){return new Date().toLocaleTimeString([],{hour:"numeric",minute:"2-digit"})}function NN(){return new Date().toLocaleDateString([],{weekday:"long",month:"long",day:"numeric"})}const pr={light:10,dimmer:12,multicolor_light:15,shade:5,thermostat:2,fan:45,speaker:25,camera:8,lock:3,alarm:5,sauna:3e3,pool:1500,switch:100,door_sensor:1,window_sensor:1,motion_sensor:2,scale:5,custom:20},SN=['"Turn on the living room lights"','"Set bedroom to 72 degrees"','"Activate the Movie scene"','"Lock all doors"','"Close the kitchen shades"','"Dim the lights to 40%"',`"What's the home status?"`,'"Turn off everything"','"Open shades at 7am daily"','"Create a Dinner scene"'],bc={temp:74,high:82,low:65,condition:"Partly Cloudy",humidity:45},Wu=[{key:"lights",label:"LIGHTS",icon:a.jsx(Ha,{className:"w-6 h-6"}),types:["light","dimmer","multicolor_light"],getStatus:e=>{const t=e.filter(s=>s.state?.isOn===!0).length;return t>0?`${t} ON`:"ALL OFF"}},{key:"shades",label:"SHADES",icon:a.jsx(Ao,{className:"w-6 h-6"}),types:["shade"],getStatus:e=>{const t=e.filter(s=>(s.state?.position??0)>0).length;return t>0?`${t} OPEN`:"ALL CLOSED"}},{key:"locks",label:"LOCKS",icon:a.jsx(En,{className:"w-6 h-6"}),types:["lock"],getStatus:e=>{const t=e.filter(s=>s.state?.isLocked===!0).length;return t>0?`${t} LOCKED`:"ALL UNLOCKED"}},{key:"cameras",label:"CAMERAS",icon:a.jsx(Vc,{className:"w-6 h-6"}),types:["camera"],getStatus:e=>`${e.filter(s=>s.isOnline).length} ONLINE`},{key:"climate",label:"CLIMATE",icon:a.jsx(Lf,{className:"w-6 h-6"}),types:["thermostat"],getStatus:e=>{const t=e.find(s=>s.state?.temperature!=null);return t?`${t.state.temperature}°F`:"â"}},{key:"sensors",label:"SENSORS",icon:a.jsx(al,{className:"w-6 h-6"}),types:["door_sensor","window_sensor","motion_sensor"],getStatus:e=>{const t=e.filter(s=>s.state?.isOpen===!0||s.state?.motionDetected===!0).length;return t>0?`${t} ACTIVE`:"ALL CLEAR"}},{key:"security",label:"SECURITY",icon:a.jsx(_i,{className:"w-6 h-6"}),types:["alarm"],getStatus:e=>{const t=e.filter(s=>s.state?.isArmed===!0).length;return t>0?`${t} ARMED`:"DISARMED"}},{key:"speakers",label:"AUDIO",icon:a.jsx(GS,{className:"w-6 h-6"}),types:["speaker"],getStatus:e=>{const t=e.filter(s=>s.state?.isOn===!0).length;return t>0?`${t} PLAYING`:"SILENT"}},{key:"fans",label:"FANS",icon:a.jsx(Ig,{className:"w-6 h-6"}),types:["fan"],getStatus:e=>{const t=e.filter(s=>s.state?.isOn===!0).length;return t>0?`${t} ON`:"ALL OFF"}},{key:"other",label:"OTHER",icon:a.jsx(x8,{className:"w-6 h-6"}),types:["sauna","scale","pool","switch","custom"],getStatus:e=>{const t=e.filter(s=>s.state?.isOn===!0).length;return t>0?`${t} ACTIVE`:"â"}}];function PG({rooms:e}){const[t,s]=p.useState(""),[i,o]=p.useState(""),[c,u]=p.useState({connected:!1}),[f,h]=p.useState(!1),[m,x]=p.useState(!1),[y,b]=p.useState(!1),[w,C]=p.useState([]),[j,S]=p.useState(new Set),[T,M]=p.useState({}),[k,R]=p.useState(""),[D,P]=p.useState("");p.useEffect(()=>{fetch("/api/smart-home/ha/status").then(Z=>Z.json()).then(Z=>u(Z)).catch(()=>{})},[]);const O=async()=>{h(!0),R(""),P("");try{const Z=await fetch("/api/smart-home/ha/connect",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({url:t,token:i})}),F=await Z.json();if(!Z.ok)throw new Error(F.error||"Connection failed");u({connected:!0,haVersion:F.haVersion,locationName:F.locationName,entityCount:F.entityCount}),P(`Connected to ${F.locationName||"Home Assistant"} (v${F.haVersion})`)}catch(Z){R(Z.message)}finally{h(!1)}},_=async()=>{try{await fetch("/api/smart-home/ha/disconnect",{method:"POST"}),u({connected:!1}),C([]),S(new Set),P("Disconnected from Home Assistant")}catch{R("Failed to disconnect")}},G=async()=>{x(!0),R("");try{const Z=await fetch("/api/smart-home/ha/discover",{method:"POST"}),F=await Z.json();if(!Z.ok)throw new Error(F.error||"Discovery failed");C(F.devices||[]),P(`Found ${F.devices?.length||0} devices`)}catch(Z){R(Z.message)}finally{x(!1)}},ne=async()=>
61{if(j.size!==0){b(!0),R("");try{const Z=w.filter(I=>j.has(I.entityId)).map(I=>({entityId:I.entityId,name:I.friendlyName,roomId:T[I.entityId]||e[0]?.id||null,deviceType:I.suggestedType})),F=await fetch("/api/smart-home/ha/import",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({devices:Z})}),ie=await F.json();if(!F.ok)throw new Error(ie.error||"Import failed");P(`Imported ${ie.count} devices successfully`),C([]),S(new Set)}catch(Z){R(Z.message)}finally{b(!1)}}},se=Z=>{S(F=>{const ie=new Set(Array.from(F));return ie.has(Z)?ie.delete(Z):ie.add(Z),ie})},ce=()=>{j.size===w.length?S(new Set):S(new Set(w.map(Z=>Z.entityId)))};return a.jsxs("div",{className:"bg-white/10 backdrop-blur-xl border border-white/20 rounded-2xl p-5 mb-6 josh-slide-up josh-stagger-4","data-testid":"ha-integration-panel",children:[a.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[a.jsx(Yo,{className:"w-4 h-4 text-blue-400"}),a.jsx("h3",{className:"text-white/80 text-xs font-semibold tracking-[0.2em] uppercase",children:"Home Assistant Integration"}),a.jsx("div",{className:`w-2 h-2 rounded-full ml-auto ${c.connected?"bg-emerald-400 shadow-[0_0_6px_rgba(52,211,153,0.5)]":"bg-red-400"}`})]}),k&&a.jsx("div",{className:"bg-red-500/20 border border-red-500/30 rounded-xl p-3 mb-4",children:a.jsx("p",{className:"text-red-300 text-xs",children:k})}),D&&a.jsx("div",{className:"bg-emerald-500/20 border border-emerald-500/30 rounded-xl p-3 mb-4",children:a.jsx("p",{className:"text-emerald-300 text-xs",children:D})}),c.connected?a.jsxs("div",{className:"space-y-4",children:[a.jsxs("div",{className:"bg-white/5 rounded-xl p-3 space-y-2",children:[a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsx("span",{className:"text-white/60 text-xs",children:"Status"}),a.jsxs("span",{className:"text-emerald-400 text-xs font-medium flex items-center gap-1.5",children:[a.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-emerald-400 animate-pulse"})," Connected"]})]}),c.locationName&&a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsx("span",{className:"text-white/60 text-xs",children:"Location"}),a.jsx("span",{className:"text-white text-xs font-medium",children:c.locationName})]}),c.haVersion&&a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsx("span",{className:"text-white/60 text-xs",children:"Version"}),a.jsxs("span",{className:"text-white/80 text-xs",children:["HA ",c.haVersion]})]}),c.entityCount!==void 0&&a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsx("span",{className:"text-white/60 text-xs",children:"Entities"}),a.jsxs("span",{className:"text-white/80 text-xs",children:[c.entityCount," available"]})]})]}),a.jsxs("div",{className:"flex gap-2",children:[a.jsxs("button",{onClick:G,disabled:m,className:"flex-1 bg-amber-500/20 hover:bg-amber-500/30 disabled:opacity-40 border border-amber-400/30 rounded-xl py-2 text-amber-300 text-xs font-medium flex items-center justify-center gap-1.5 transition-all","data-testid":"ha-discover-btn",children:[m?a.jsx(br,{className:"w-3.5 h-3.5 animate-spin"}):a.jsx(T8,{className:"w-3.5 h-3.5"}),m?"Scanning...":"Discover Devices"]}),a.jsxs("button",{onClick:_,className:"bg-red-500/20 hover:bg-red-500/30 border border-red-400/30 rounded-xl py-2 px-4 text-red-300 text-xs font-medium flex items-center justify-center gap-1.5 transition-all","data-testid":"ha-disconnect-btn",children:[a.jsx(eR,{className:"w-3.5 h-3.5"}),"Disconnect"]})]}),w.length>0&&a.jsxs("div",{className:"space-y-3",children:[a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsxs("p",{className:"text-white/60 text-xs",children:[w.length," devices found"]}),a.jsx("button",{onClick:ce,className:"text-amber-400 text-xs hover:text-amber-300 transition-colors","data-testid":"ha-select-all",children:j.size===w.length?"Deselect All":"Select All"})]}),a.jsx("div",{className:"max-h-60 overflow-y-auto space-y-1.5 scrollbar-thin",children:w.map(Z=>a.jsxs("div",{onClick:()=>se(Z.entityId),className:`flex items-center gap-3 p-2.5 rounded-xl cursor-pointer transition-all ${j.has(Z.entityId)?"bg-amber-400/15 border border-amber-400/30":"bg-white/5 border border-transparent hover:bg-white/10"}
61`,"data-testid":`ha-device-${Z.entityId}`,children:[a.jsx("div",{className:`w-4 h-4 rounded border flex items-center justify-center flex-shrink-0 ${j.has(Z.entityId)?"bg-amber-400 border-amber-400":"border-white/30"}`,children:j.has(Z.entityId)&&a.jsx(Gw,{className:"w-3 h-3 text-black"})}),a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsx("p",{className:"text-white text-xs font-medium truncate",children:Z.friendlyName}),a.jsx("p",{className:"text-white/40 text-[10px] truncate",children:Z.entityId})]}),a.jsxs("div",{className:"flex flex-col items-end gap-1 flex-shrink-0",children:[a.jsx("span",{className:"text-white/40 text-[10px] uppercase",children:Z.domain}),a.jsx("span",{className:`text-[10px] ${Z.currentState==="on"||Z.currentState==="locked"?"text-emerald-400":"text-white/30"}`,children:Z.currentState})]}),j.has(Z.entityId)&&a.jsx("select",{value:T[Z.entityId]||e[0]?.id||"",onChange:F=>{F.stopPropagation(),M(ie=>({...ie,[Z.entityId]:F.target.value}))},onClick:F=>F.stopPropagation(),className:"bg-white/10 border border-white/20 rounded-lg px-2 py-1 text-white text-[10px] focus:outline-none flex-shrink-0","data-testid":`ha-room-select-${Z.entityId}`,children:e.map(F=>a.jsx("option",{value:F.id,className:"bg-gray-900",children:F.name},F.id))})]},Z.entityId))}),j.size>0&&a.jsxs("button",{onClick:ne,disabled:y,className:"w-full bg-emerald-500/25 hover:bg-emerald-500/35 disabled:opacity-40 border border-emerald-400/30 rounded-xl py-2.5 text-emerald-300 text-sm font-medium flex items-center justify-center gap-2 transition-all","data-testid":"ha-import-btn",children:[y?a.jsx(br,{className:"w-4 h-4 animate-spin"}):a.jsx(Gw,{className:"w-4 h-4"}),y?"Importing...":`Import ${j.size} Device${j.size>1?"s":""}`]})]})]}):a.jsxs("div",{className:"space-y-3",children:[a.jsxs("div",{children:[a.jsx("label",{className:"text-white/50 text-xs mb-1 block",children:"Home Assistant URL"}),a.jsx("input",{type:"text",value:t,onChange:Z=>s(Z.target.value),placeholder:"http://192.168.1.100:8123",className:"w-full bg-white/5 border border-white/15 rounded-xl px-4 py-2.5 text-white text-sm placeholder:text-white/25 focus:outline-none focus:border-amber-400/50","data-testid":"ha-url-input"})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-white/50 text-xs mb-1 block",children:"Long-Lived Access Token"}),a.jsx("input",{type:"password",value:i,onChange:Z=>o(Z.target.value),placeholder:"Your HA access token",className:"w-full bg-white/5 border border-white/15 rounded-xl px-4 py-2.5 text-white text-sm placeholder:text-white/25 focus:outline-none focus:border-amber-400/50","data-testid":"ha-token-input"})]}),a.jsxs("button",{onClick:O,disabled:f||!t||!i,className:"w-full bg-blue-500/30 hover:bg-blue-500/40 disabled:opacity-40 border border-blue-400/30 rounded-xl py-2.5 text-blue-300 text-sm font-medium flex items-center justify-center gap-2 transition-all","data-testid":"ha-connect-btn",children:[f?a.jsx(br,{className:"w-4 h-4 animate-spin"}):a.jsx(QO,{className:"w-4 h-4"}),f?"Connecting...":"Connect"]})]})]})}function M3(e){const{rooms:t,devices:s,scenes:i,activityLogs:o,selectedRoomId:c,setSelectedRoomId:u,onDeviceCommand:f,onBatchDeviceCommands:h,onSceneActivate:m,onSendMessage:x,chatMessages:y,wsStatus:b="disconnected",hideHomeAssistant:w=!1,hideEditMode:C=!1}=e,[j,S]=p.useState(()=>{if(typeof window>"u")return"home";const E=new URLSearchParams(window.location.search).get("tab");return E&&["home","grid","rooms","devices","community","settings"].includes(E)?E:"home"}),[T,M]=p.useState(""),[k,R]=p.useState(!1),[D,P]=p.useState(null),[O,_]=p.useState(!1),[G,ne]=p.useState(()=>{try{const E=localStorage.getItem("homepad-favorites");return E?new Set(JSON.parse(E)):new Set}catch{return new Set}}),[se,ce]=p.useState(0),[Z,F]=p.useState(null),[ie,I]=p.useState(jN()),[H,$]=p.useState(NN()),[re,me]=p.useState(0),[L,K]=p.useState("all"),[J,oe]=p.useState("all"),[pe,we]=p.useState(!1),[ee,Me]=p.useState(null),Ce=p.useRef(null);p.useRef(null);const _e=p.useRef(null),Ve=p.useRef(null),{editMode:Pe,setEditMode:Tt}=qf(),[,St]=ns(),[Fe,ge]=p.useState(!1),[st,xa]=p.useState(""),[Ns,as]=p.useState(""),[Ss,un]=p.useState(!1),is=t.find(E=>E.id===c),Ot=is?vN(is.name):E3,ya=c?s.filter(E=>E.roomId===c):s,Fn=s.filter(E=>["light","dimmer","multicolor_light"].includes(E.type)&&E.state?.isOn===!0).length,Cs=s.filter(E=>E.type==="shade"&&(E.state?.position??0)>0).length,ks=s.filter(E=>E.type==="lock"&&E.state?.isLocked===!0).length,ei=s.filter(E=>E.type==="speaker"&&E.state?.isOn===!0).length,ti=[{label:`${Fn} ON`,icon:a.jsx(Ha,{className:"w-3.5 h-3.5"}
61),color:"bg-amber-500/20 text-amber-300",visible:Fn>0},{label:`${Cs} OPEN`,icon:a.jsx(Ao,{className:"w-3.5 h-3.5"}),color:"bg-sky-500/20 text-sky-300",visible:Cs>0},{label:`${ks} LOCKED`,icon:a.jsx(En,{className:"w-3.5 h-3.5"}),color:"bg-emerald-500/20 text-emerald-300",visible:ks>0},{label:`${ei} PLAYING`,icon:a.jsx(GS,{className:"w-3.5 h-3.5"}),color:"bg-purple-500/20 text-purple-300",visible:ei>0}],va=c?i.filter(E=>E.roomId===c):i,ba=p.useMemo(()=>{let E=c?o.filter(fe=>fe.roomId===c):o;if(L!=="all"&&(E=E.filter(fe=>{if(L==="scenes")return fe.actionType==="scene_activated";const je=s.find(ft=>ft.id===fe.deviceId);return je?Wu.find(ft=>ft.types.includes(je.type))?.key===L:!1})),J!=="all"){const fe=Date.now(),je=J==="1h"?36e5:J==="6h"?216e5:J==="24h"?864e5:0;je>0&&(E=E.filter(ct=>fe-new Date(ct.createdAt).getTime()<je))}return E.slice(0,12)},[o,c,L,J,s]),rs=p.useMemo(()=>s.filter(E=>G.has(E.id)),[s,G]),ue=p.useMemo(()=>s.filter(E=>E.state?.isOn===!0).reduce((E,fe)=>E+(pr[fe.type]||10),0),[s]),$e=p.useMemo(()=>ya.filter(E=>E.state?.isOn===!0).reduce((E,fe)=>E+(pr[fe.type]||10),0),[ya]),at=p.useMemo(()=>{const E=[],fe=new Date().getHours(),{period:je}=wN();je==="evening"&&Fn===0&&E.push("It's getting dark. Would you like to turn on the lights?"),je==="night"&&Fn>3&&E.push(`${Fn} lights are still on. Activate Goodnight mode?`),je==="morning"&&Cs===0&&E.push("Good morning! Open the shades to let the sun in?");const ct=s.filter(ft=>ft.type==="lock"&&!ft.state?.isLocked).length;return ct>0&&(fe>=22||fe<6)&&E.push(`${ct} door${ct>1?"s":""} unlocked. Lock all for the night?`),ue>500&&E.push(`High energy use (${ue}W). Turn off unused devices?`),E},[Fn,Cs,s,ue]);p.useEffect(()=>{Ce.current?.scrollIntoView({behavior:"smooth"})},[y,O]),p.useEffect(()=>{const E=setInterval(()=>{I(jN()),$(NN())},1e4);return()=>clearInterval(E)},[]),p.useEffect(()=>{const E=setInterval(()=>{me(fe=>(fe+1)%SN.length)},5e3);return()=>clearInterval(E)},[]),p.useEffect(()=>{localStorage.setItem("homepad-favorites",JSON.stringify(Array.from(G)))},[G]);const Sn=p.useCallback(E=>{F(Ot),u(E),P(null),ce(fe=>fe+1)},[Ot,u]),ze=p.useCallback(E=>{ne(fe=>{const je=new Set(fe);return je.has(E)?je.delete(E):je.add(E),je})},[]),Ke=p.useCallback(E=>{Me(E),setTimeout(()=>Me(null),200)},[]),Oe=p.useCallback(E=>{_e.current=E.touches[0].clientX,Ve.current=null},[]),rt=p.useCallback(E=>{Ve.current=E.touches[0].clientX},[]),Yt=p.useCallback(()=>{if(_e.current===null||Ve.current===null)return;const E=_e.current-Ve.current,fe=[...t].sort((ct,ft)=>ct.order-ft.order),je=fe.findIndex(ct=>ct.id===c);Math.abs(E)>60&&(E>0&&je<fe.length-1?Sn(fe[je+1].id):E<0&&je>0&&Sn(fe[je-1].id)),_e.current=null,Ve.current=null},[t,c,Sn]),qe=async()=>{if(!T.trim()||k)return;const E=T.trim();M(""),R(!0);try{await x(E)}finally{R(!1)}},ni=E=>{const fe=s.find(ct=>ct.id===E.deviceId),je=i.find(ct=>ct.id===E.sceneId);if(E.actionType==="scene_activated"&&je)return`Activated "${je.name}"`;if(!fe)return E.actionType;switch(E.actionType){case"turnOn":return`${fe.name} turned on`;case"turnOff":return`${fe.name} turned off`;case"setLevel":return`${fe.name} set to ${E.actionDetails?.value}%`;case"setPosition":return`${fe.name} position ${E.actionDetails?.value}%`;case"setTemperature":return`${fe.name} set to ${E.actionDetails?.value}°`;case"lock":return`${fe.name} locked`;case"unlock":return`${fe.name} unlocked`;default:return`${E.actionType} · ${fe.name}`}},wa=E=>{const fe=s.find(je=>je.id===E.deviceId);if(!fe)return a.jsx(wc,{className:"w-4 h-4"});switch(fe.type){case"light":case"dimmer":case"multicolor_light":return a.jsx(Ha,{className:"w-4 h-4"});case"lock":return a.jsx(En,{className:"w-4 h-4"});case"shade":return a.jsx(Ao,{className:"w-4 h-4"});case"thermostat":return a.jsx(Lf,{className:"w-4 h-4"});case"camera":return a.jsx(Vc,{className:"w-4 h-4"});default:return a.jsx(wc,{className:"w-4 h-4"})}},Vr=Wu.map(E=>({...E,devices:ya.filter(fe=>E.types.includes(fe.type))})).filter(E=>E.devices.length>0),ja=E=>s.filter(fe=>fe.roomId===E.roomId),qs=E=>!E||E<=0?"":E<=33?"josh-fan-spin-slow":E<=66?"josh-fan-spin":"josh-fan-spin-fast",Ki=E=>{if(E.type==="alarm"&&E.state?.isArmed)return"shadow-[0_0_12px_rgba(239,68,68,0.25)]";if(E.type==="camera"&&E.isOnline)return"shadow-[0_0_12px_rgba(56,189,248,0.25)]";if(["door_sensor","window_sensor"].includes(E.type)&&E.state?.isOpen||E.type==="motion_sensor"&&E.state?.motionDetected)return"shadow-[0_0_12px_rgba(251,191,36,0.25)]";if(!E.state?.isOn)return"";switch(E.type){case"light":case"dimmer":case"multicolor_light":return"shadow-[0_0_12px_rgba(251,191,36,0.25)]";case"speaker":return"shadow-[0_0_12px_rgba(168,85,247,0.25)]";case"fan":return"shadow-[0_0_12px_rgba(56,189,248,0.25)]";case"thermostat":return"shadow-[0_0_12px_rgba(251,146,60,0.25)]";default:return"shadow-[0_0_12px_rgba(251,191,36,0.15)]"}},wl=(E,fe=!1)=>{const je=["light","dimmer","multicolor_light"].includes(E.type),ct=E.type==="shade",ft=E.type==="lock",Ct=E.type==="thermostat",Ee=E.type==="fan",Et=E.type==="alarm",Vt=E.type==="camera",rn=["door_sensor","window_sensor","motion_sensor"].includes(E.type),yh=je||Ee||E.type==="speaker"||E.type==="switch"||E.type==="sauna",jl=fe?t.find(vn=>vn.id===E.roomId):null,An=E.state?.isOn===!0,$r=G.has(E.id),si=Ki(E);return a.jsxs("div",{className:`bg-white/10 backdrop-blur-md rounded-xl p-4 flex flex-col gap-3 transition-all duration-300 josh-active-btn ${An||Vt||Et&&E.state?.isArmed||rn&&(E.state?.isOpen||E.state?.motionDetected)?`ring-1 ${Et&&E.state?.isArmed?"ring-red-400/40":rn&&(E.state?.isOpen||E.state?.motionDetected)?"ring-amber-400/40":Vt?"ring-sky-400/30":"ring-amber-400/40"} ${si} josh-device-glow`:""} ${ee===E.id?"josh-bounce":""}`,"data-testid":`device-control-${E.id}`,children:[a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsxs("div",{className:"flex items-center gap-2 flex-1 min-w-0",children:[Pe&&a.jsx("button",{onClick:()=>{ze(E.id),Ke(`fav-${E.id}`)},className:`flex-shrink-0 transition-all duration-200 ${$r?"text-amber-400 josh-star-pop":"text-white/20 hover:text-white/40"}`,"data-testid":`button-favorite-${E.id}`,children:a.jsx(hf,{className:`w-3.5 h-3.5 ${$r?"fill-amber-400":""}`})}),a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[Ee&&An&&a.jsx(Ig,{className:`w-4 h-4 text-sky-400 ${qs(E.state?.speed)}`}),a.jsx("p",{className:"text-white text-sm font-medium truncate",children:E.name})]}),a.jsxs("p",{className:"text-white/50 text-xs",children:[fe&&jl?`${jl.name} · `:"",E.isOnline?Et?E.state?.isArmed?"Armed":"Disarmed":rn?E.type==="motion_sensor"?E.state?.motionDetected?"Motion Detected":"Clear":E.state?.isOpen?"Open":"Closed":Vt?"Recording":An?"On":ft?E.state?.isLocked?"Locked":"Unlocked":"Off":"Offline",An&&pr[E.type]?` · ~${pr[E.type]}W`:""]})]})]}),yh&&a.jsx(Pr,{checked:An,onCheckedChange:vn=>{Ke(E.id),f(E.id,vn?"turnOn":"turnOff")},"data-testid":`switch-device-${E.id}`}),ft&&a.jsx(Xe,{size:"sm",variant:"ghost",className:`text-xs ${E.state?.isLocked?"text-emerald-400":"text-amber-400"}`,onClick:()=>{Ke(E.id),f(E.id,E.state?.isLocked?"unlock":"lock")},"data-testid":`button-lock-${E.id}`,children:E.state?.isLocked?a.jsx(En,{className:"w-4 h-4"}):a.jsx(ff,{className:"w-4 h-4"})}),Et&&a.jsx(Xe,{size:"sm",variant:"ghost",className:`text-xs ${E.state?.isArmed?"text-red-400":"text-emerald-400"}`,onClick:()=>{Ke(E.id),f(E.id,E.state?.isArmed?"disarm":"arm")},"data-testid":`button-alarm-${E.id}`,children:a.jsx(_i,{className:`w-4 h-4 ${E.state?.isArmed?"fill-red-400/30":""}`})}),Vt&&a.jsxs("div",{className:`flex items-center gap-1.5 px-2 py-1 rounded-lg text-xs ${E.isOnline?"bg-sky-500/15 text-sky-300":"bg-white/10 text-white/30"}`,"data-testid":`status-camera-${E.id}`,children:[a.jsx("div",{className:`w-2 h-2 rounded-full ${E.isOnline?"bg-sky-4
6100":"bg-white/30"}`}),a.jsx("span",{children:E.isOnline?"Online":"Offline"})]}),rn&&a.jsxs("div",{className:`flex items-center gap-1.5 px-2 py-1 rounded-lg text-xs ${E.type==="motion_sensor"?E.state?.motionDetected?"bg-amber-500/20 text-amber-400":"bg-white/10 text-white/40":E.state?.isOpen?"bg-amber-500/20 text-amber-400":"bg-emerald-500/20 text-emerald-400"}`,"data-testid":`status-sensor-${E.id}`,children:[E.type==="motion_sensor"?a.jsx(wc,{className:"w-3.5 h-3.5"}):a.jsx(al,{className:"w-3.5 h-3.5"}),a.jsx("span",{children:E.type==="motion_sensor"?E.state?.motionDetected?"Active":"Clear":E.state?.isOpen?"Open":"Closed"})]})]}),Vt&&a.jsx(OG,{cameraName:E.name,isOn:An,motionDetected:E.state?.motionDetected??!1,variant:"glass"}),je&&An&&E.state?.brightness!=null&&a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx(il,{className:"w-3.5 h-3.5 text-amber-400/70"}),a.jsx(lf,{value:[E.state.brightness],max:100,step:1,onValueChange:([vn])=>f(E.id,"setLevel",vn),className:"flex-1","data-testid":`slider-brightness-${E.id}`}),a.jsxs("span",{className:"text-white/60 text-xs w-8 text-right",children:[E.state.brightness,"%"]})]}),ct&&a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx(Ao,{className:"w-3.5 h-3.5 text-sky-400/70"}),a.jsx(lf,{value:[E.state?.position??0],max:100,step:1,onValueChange:([vn])=>f(E.id,"setPosition",vn),className:"flex-1","data-testid":`slider-shade-${E.id}`}),a.jsxs("span",{className:"text-white/60 text-xs w-8 text-right",children:[E.state?.position??0,"%"]})]}),Ct&&a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsxs("span",{className:"text-white/60 text-xs",children:["Current: ",E.state?.temperature??"â","°F"]}),a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsxs("span",{className:"text-amber-400 text-sm font-medium",children:[E.state?.targetTemperature??"â","°F"]}),a.jsxs("div",{className:"flex flex-col",children:[a.jsx(Xe,{size:"sm",variant:"ghost",className:"h-8 w-8 p-0 text-white/60 hover:text-white",onClick:()=>f(E.id,"setTemperature",(E.state?.targetTemperature??72)+1),"data-testid":`button-temp-up-${E.id}`,children:a.jsx(Zs,{className:"w-4 h-4 rotate-[-90deg]"})}),a.jsx(Xe,{size:"sm",variant:"ghost",className:"h-8 w-8 p-0 text-white/60 hover:text-white",onClick:()=>f(E.id,"setTemperature",(E.state?.targetTemperature??72)-1),"data-testid":`button-temp-down-${E.id}`,children:a.jsx(Zs,{className:"w-4 h-4 rotate-90"})})]})]})]}),Ee&&An&&E.state?.speed!=null&&a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx(Ig,{className:`w-3.5 h-3.5 text-sky-400/70 ${qs(E.state.speed)}`}),a.jsx(lf,{value:[E.state.speed],max:100,step:25,onValueChange:([vn])=>f(E.id,"setSpeed",vn),className:"flex-1","data-testid":`slider-fan-${E.id}`}),a.jsxs("span",{className:"text-white/60 text-xs w-8 text-right",children:[E.state.speed,"%"]})]})]},E.id)},{greeting:pd}=wN(),{profile:gd}=m0(),xd=gd.name.split(" ")[0]||"Resident";return a.jsxs("div",{className:"fixed inset-0 z-50 flex flex-col overflow-hidden","data-testid":"homepad-smart-home",onTouchStart:j==="home"?Oe:void 0,onTouchMove:j==="home"?rt:void 0,onTouchEnd:j==="home"?Yt:void 0,children:[Z&&a.jsx("div",{className:"absolute inset-0 bg-cover bg-center",style:{backgroundImage:`url(${Z})`}}),a.jsx("div",{className:`absolute inset-0 bg-cover bg-center ${Z?"josh-bg-fade":""}`,style:{backgroundImage:`url(${Ot})`},onAnimationEnd:()=>F(null)},se),a.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-black/70 via-black/50 to-black/80"}),a.jsxs("div",{className:"relative z-10 flex flex-col h-full",children:[a.jsx(o4,{activeTab:j,onTabChange:E=>{S(E),Ke(`nav-${E}`)},wsStatus:b,mode:"smart-home"}),a.jsxs("div",{className:"flex-1 overflow-y-auto px-4 sm:px-6 pb-24",children:[j==="home"&&a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:"mt-6 mb-4 josh-slide-up",children:[a.jsxs("div",{className:"flex items-start justify-between",children:[a.jsxs("div",{children:[a.jsxs("p",{className:"text-white/50 text-sm mb-1",children:[pd,", ",xd]}),a.jsx("h1",{className:"text-4xl sm:text-5xl font-serif font-medium text-white tracking-tight","data-testid":"text-property-name",children:"Sonoma Vineyard Estates"})]}),a.jsxs("div",{className:"text-right flex-shrink-0 ml-4",children:[a.jsx("p",{className:"text-white text-2xl font-light","data-testid":"text-live-clock",children:ie}),a.jsx("p",{className:"text-white/40 text-xs","data-testid":"text-live-date",children:H})]})]}),a.jsx("div",{className:"flex flex-wrap gap-2 mt-3","data-testid":"status-badges",children:ti.filter(E=>E.visible).map((E,fe)=>a.jsxs("span",{className:`inline-flex items-center gap-1.5 px-3 py-1 rounded-full text-xs font-medium ${E.color} backdrop-blur-sm`,"data-testid":`status-badge-${fe}`,children:[E.icon,E.label]},fe))}),a.jsxs("div",{className:"mt-4 flex items-center gap-3 bg-white/10 backdrop-blur-md border border-[#c9a84c]/30 rounded-xl px-4 py-3","data-testid":"banner-right-now",children:[a.jsx("div",{className:"flex-shrink-0 flex items-center justify-center w-8 h-8 rounded-lg bg-[#c9a84c]/20 border border-[#c9a84c]/30",children:a.jsx(Fa,{className:"w-4 h-4 text-[#c9a84c]"})}),a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsxs("div",{className:"flex items-center gap-2 mb-0.5",children:[a.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-[#c9a84c] animate-pulse flex-shrink-0"}),a.jsx("span",{className:"text-[#c9a84c] text-[10px] font-semibold tracking-[0.2em] uppercase",children:"Right Now"})]}),a.jsx("p",{className:"text-white text-sm font-medium leading-tight truncate",children:"Launch Party · Wing & Barrel Ranch"}),a.jsx("p",{className:"text-white/40 text-[11px]",children:"Sonoma Vineyard Estates"})]}),a.jsxs("div",{className:"flex items-center gap-2 flex-shrink-0",children:[a.jsxs("button",{onClick:()=>St("/concierge"),className:"flex items-center gap-1.5 px-3 py-1.5 rounded-lg bg-[#c9a84c]/20 hover:bg-[#c9a84c]/30 border border-[#c9a84c]/30 text-[#c9a84c] text-[11px] font-medium transition-all","data-testid":"button-right-now-ride",children:[a.jsx(Mr,{className:"w-3 h-3"}),"Schedule a Ride"]}),a.jsx("a",{href:"https://www.paperlesspost.com/go/VKD8YEpuaYkNZJhkqR83a",target:"_blank",rel:"noopener noreferrer",className:"p-1.5 rounded-lg text-white/30 hover:text-white/60 transition-colors","data-testid":"link-right-now-event",children:a.jsx(PS,{className:"w-3.5 h-3.5"})})]})]})]}),a.jsxs("div",{className:"flex gap-3 mb-6 josh-slide-up josh-stagger-1",children:[a.jsxs("div",{className:"bg-white/10 backdrop-blur-md border border-white/15 rounded-xl px-4 py-3 flex items-center gap-3 flex-1","data-testid":"weather-widget",children:[a.jsx(_S,{className:"w-8 h-8 text-amber-400 flex-shrink-0"}),a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsxs("div",{className:"flex items-baseline gap-2",children:[a.jsxs("span",{className:"text-white text-xl font-medium",children:[bc.temp,"°"]}),a.jsx("span",{className:"text-white/40 text-xs",children:bc.condition})]}),a.jsxs("p",{className:"text-white/40 text-xs",children:["H:",bc.high,"° L:",bc.low,"° · ",bc.humidity,"% humidity"]})]})]}),a.jsxs("div",{className:"bg-white/10 backdrop-blur-md border border-white/15 rounded-xl px-4 py-3 flex items-center gap-3","data-testid":"energy-widget",children:[a.jsx(F
61a,{className:`w-6 h-6 flex-shrink-0 ${ue>500?"text-orange-400":"text-emerald-400"}`}),a.jsxs("div",{children:[a.jsxs("p",{className:"text-white text-sm font-medium",children:[ue,"W"]}),a.jsx("p",{className:"text-white/40 text-xs",children:"Active use"})]})]})]}),at.length>0&&a.jsx("div",{className:"mb-6 josh-slide-up josh-stagger-2","data-testid":"ai-suggestions-panel",children:a.jsxs("div",{className:"bg-gradient-to-r from-amber-500/15 to-orange-500/10 backdrop-blur-md border border-amber-400/20 rounded-xl p-4",children:[a.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[a.jsx($o,{className:"w-4 h-4 text-amber-400"}),a.jsx("span",{className:"text-amber-300 text-xs font-semibold tracking-[0.15em] uppercase",children:"AI Suggestions"})]}),a.jsx("div",{className:"space-y-2",children:at.slice(0,2).map((E,fe)=>a.jsx("button",{onClick:()=>{M(E.replace(/\?$/,"")),_(!0)},className:"w-full text-left text-white/80 text-sm py-1.5 px-2 rounded-lg hover:bg-white/10 transition-colors","data-testid":`ai-suggestion-${fe}`,children:E},fe))})]})}),a.jsx("div",{className:"relative mb-6 josh-slide-up josh-stagger-2","data-testid":"room-selector",children:a.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 gap-3",children:t.sort((E,fe)=>E.order-fe.order).map(E=>{const fe=s.filter(Et=>Et.roomId===E.id),je=fe.filter(Et=>Et.type!=="lock"),ct=je.filter(Et=>Et.state?.isOn===!0).length,ft=E.id===c,Ct=je.length>0&&ct===je.length,Ee=ct>0;return a.jsxs("div",{className:`relative bg-white/10 backdrop-blur-md border rounded-2xl p-4 transition-all duration-200 cursor-pointer ${ft?"border-amber-400/60 bg-amber-500/15 ring-2 ring-amber-400/50 shadow-[0_0_24px_8px_rgba(251,191,36,0.25)]":"border-white/10 hover:bg-white/15"}`,onClick:()=>Sn(E.id),"data-testid":`button-room-${E.id}`,children:[a.jsxs("div",{className:"flex items-center justify-between mb-2",children:[a.jsx("span",{className:`text-sm font-semibold truncate ${ft?"text-amber-300":"text-white/90"}`,children:E.name}),a.jsx("button",{onClick:Et=>{Et.stopPropagation();const Vt=fe.filter(rn=>rn.type!=="lock").map(rn=>({deviceId:rn.id,action:rn.type==="shade"?"setPosition":Ee?"turnOff":"turnOn",value:rn.type==="shade"?Ee?0:100:void 0}));h?h(Vt):Vt.forEach(rn=>f(rn.deviceId,rn.action,rn.value)),Ke(`room-toggle-${E.id}`)},className:`w-10 h-6 rounded-full relative transition-all duration-300 flex-shrink-0 ${Ee?"bg-amber-500/60 border border-amber-400/50 shadow-[0_0_12px_rgba(245,158,11,0.4),0_0_4px_rgba(245,158,11,0.3)]":"bg-white/15 border border-white/20 shadow-[0_0_8px_rgba(255,255,255,0.1),0_0_3px_rgba(255,255,255,0.08)]"} ${ee===`room-toggle-${E.id}`?"josh-bounce":""}`,"data-testid":`toggle-room-${E.id}`,children:a.jsx("span",{className:`absolute top-0.5 w-5 h-5 rounded-full transition-all duration-300 ${Ee?"left-[18px] bg-amber-400 shadow-[0_0_8px_rgba(251,191,36,0.6)]":"left-0.5 bg-white/50 shadow-[0_0_4px_rgba(255,255,255,0.2)]"}`})})]}),a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsxs("span",{className:`text-[10px] uppercase tracking-wider ${Ee?"text-amber-400/70":"text-white/30"}`,children:[ct,"/",je.length," on"]}),Ee&&!Ct&&a.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-amber-400/50"}),Ct&&a.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-amber-400"})]})]},E.id)})})}),va.length>0&&a.jsxs("div",{className:"mb-4 josh-slide-up josh-stagger-3 relative z-20 bg-white/5 backdrop-blur-md border border-white/10 rounded-2xl p-4","data-testid":"scenes-panel",children:[a.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[a.jsx($o,{className:"w-4 h-4 text-amber-400"}),a.jsx("h2",{className:"text-white/80 text-xs font-semibold tracking-[0.2em] uppercase",children:c?`${is?.name||"Room"} Scenes`:"All Scenes"}),a.jsxs("span",{className:"text-white/30 text-xs ml-auto",children:[va.length," available"]})]}),a.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:va.map((E,fe)=>{const je=RG[E.icon]??yN[fe%yN.length];return a.jsxs("button",{onClick:()=>{m(E.id),Ke(`scene-${E.id}`)},className:`${je.bg} backdrop-blur-md rounded-xl p-4 flex flex-col gap-3 transition-all duration-300 josh-active-btn text-left ring-1 ${E.isActive?`${je.ring} ${je.shadow}`:"ring-white/10 hover:ring-white/20"} ${ee===`scene-${E.id}`?"josh-bounce":""}`,"data-testid":`button-scene-${E.id}`,children:[a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsxs("div",{className:"flex items-center gap-2 flex-1 min-w-0",children:[a.jsx("span",{className:`w-5 h-5 flex items-center justify-center ${je.text}`,children:_G[E.icon]||a.jsx($o,{className:"w-5 h-5"})}),a.jsx("p",{className:"text-white text-sm font-medium truncate",children:E.name})]}),a.jsx("div",{className:`w-8 h-8 rounded-full flex items-center justify-center transition-all duration-300 ${E.isActive?`${je.bg} ${je.text}`:"bg-white/10 text-white/40"}`,children:a.jsx($g,{className:"w-3.5 h-3.5"})})]}),a.jsxs("p",{className:"text-white/40 text-xs",children:[ja(E).length," device",ja(E).length!==1?"s":"",E.isActive&&a.jsx("span",{className:`ml-2 ${je.text} opacity-70`,children:"Active"})]})]},E.id)})})]}),rs.length>0&&a.jsxs("div",{className:"mb-6 bg-white/10 backdrop-blur-xl border border-white/20 rounded-2xl p-4 josh-slide-up josh-stagger-3","data-testid":"favorites-panel",children:[a.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[a.jsx(hf,{className:"w-4 h-4 text-amber-400 fill-amber-400"}),a.jsx("h2",{className:"text-white/80 text-xs font-semibold tracking-[0.2em] uppercase",children:"Favorites"})]}),a.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:rs.map(E=>wl(E,!0))})]}),a.jsxs("div",{className:"mb-6 bg-white/10 backdrop-blur-xl border border-white/20 rounded-2xl p-4 josh-slide-up josh-stagger-4","data-testid":"devices-panel",children:[a.jsxs("div",{className:"flex items-center justify-between mb-3",children:[a.jsx("h2",{className:"text-white/80 text-xs font-semibold tracking-[0.2em] uppercase",children:"Devices"}),c&&a.jsxs("span",{className:"text-white/30 text-xs flex items-center gap-1",children:[a.jsx(F
61a,{className:"w-3 h-3"}),"~",$e,"W"]})]}),D?a.jsxs("div",{children:[a.jsxs("button",{onClick:()=>P(null),className:"flex items-center gap-2 text-amber-400 text-sm mb-4 hover:text-amber-300 transition-colors","data-testid":"button-back-to-categories",children:[a.jsx(qx,{className:"w-4 h-4"}),"Back to categories"]}),a.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:Vr.find(E=>E.key===D)?.devices.map(E=>wl(E))})]}):a.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 gap-3",children:Vr.map(E=>a.jsxs("button",{onClick:()=>{P(E.key),Ke(`cat-${E.key}`)},className:`bg-white/15 backdrop-blur-md rounded-xl p-4 flex flex-col items-start gap-3 hover:bg-white/20 transition-all duration-200 text-left group josh-active-btn ${ee===`cat-${E.key}`?"josh-bounce":""}`,"data-testid":`button-category-${E.key}`,children:[a.jsx("div",{className:"text-white/70 group-hover:text-amber-400 transition-colors",children:E.icon}),a.jsxs("div",{children:[a.jsx("p",{className:"text-white text-xs font-bold tracking-[0.15em]",children:E.label}),a.jsx("p",{className:"text-white/50 text-xs mt-0.5",children:E.getStatus(E.devices)})]}),a.jsx(Le,{variant:"secondary",className:"bg-white/10 text-white/60 text-[10px] border-0 px-2 py-0.5",children:E.devices.length})]},E.key))})]}),ba.length>0&&a.jsxs("div",{className:"mb-6 bg-white/10 backdrop-blur-xl border border-white/20 rounded-2xl p-4 josh-slide-up josh-stagger-5","data-testid":"activity-panel",children:[a.jsxs("div",{className:"flex items-center justify-between mb-3",children:[a.jsx("h2",{className:"text-white/80 text-xs font-semibold tracking-[0.2em] uppercase",children:"Recent Activity"}),a.jsxs("button",{onClick:()=>we(!pe),className:`flex items-center gap-1 text-xs transition-colors ${pe?"text-amber-400":"text-white/40 hover:text-white/60"}`,"data-testid":"button-toggle-activity-filters",children:[a.jsx(zO,{className:"w-3.5 h-3.5"}),"Filters"]})]}),pe&&a.jsxs("div",{className:"flex flex-wrap gap-2 mb-3 pb-3 border-b border-white/10 josh-slide-up","data-testid":"activity-filters",children:[a.jsx("div",{className:"flex gap-1",children:["all","lights","locks","shades","climate","scenes"].map(E=>a.jsx("button",{onClick:()=>K(E),className:`px-2.5 py-1 rounded-lg text-[10px] font-medium uppercase tracking-wider transition-all ${L===E?"bg-amber-500/30 text-amber-300":"bg-white/5 text-white/40 hover:text-white/60"}`,"data-testid":`activity-filter-${E}`,children:E},E))}),a.jsx("div",{className:"flex gap-1 ml-auto",children:[{key:"all",label:"All"},{key:"1h",label:"1h"},{key:"6h",label:"6h"},{key:"24h",label:"24h"}].map(E=>a.jsx("button",{onClick:()=>oe(E.key),className:`px-2.5 py-1 rounded-lg text-[10px] font-medium transition-all ${J===E.key?"bg-sky-500/30 text-sky-300":"bg-white/5 text-white/40 hover:text-white/60"}`,"data-testid":`activity-time-filter-${E.key}`,children:E.label},E.key))})]}),a.jsxs("div",{className:"space-y-2",children:[ba.map(E=>a.jsxs("div",{className:"flex items-center gap-3 py-2 px-3 rounded-lg hover:bg-white/5 transition-colors","data-testid":`activity-log-${E.id}`,children:[a.jsx("div",{className:"text-white/40 flex-shrink-0",children:wa(E)}),a.jsx("p",{className:"text-white/70 text-sm flex-1 truncate",children:ni(E)}),a.jsxs("span",{className:"text-white/30 text-xs flex-shrink-0 flex items-center gap-1",children:[a.jsx(Ka,{className:"w-3 h-3"}),bN(E.createdAt)]})]},E.id)),ba.length===0&&a.jsx("p",{className:"text-white/30 text-sm text-center py-4",children:"No activity matching filters"})]})]})]}),j==="grid"&&a.jsxs("div",{className:"mt-6 josh-slide-up","data-testid":"grid-view",children:[a.jsx("h2",{className:"text-white text-2xl font-serif font-medium mb-2",children:"Overview"}),a.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[a.jsx("p",{className:"text-white/50 text-sm",children:"All rooms at a glance"}),a.jsxs("span",{className:"text-white/30 text-xs flex items-center gap-1 ml-auto",children:[a.jsx(Fa,{className:"w-3.5 h-3.5"}),ue,"W total"]})]}),a.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4",children:t.sort((E,fe)=>E.order-fe.order).map((E,fe)=>{const je=s.filter(Vt=>Vt.roomId===E.id),ct=i.filter(Vt=>Vt.roomId===E.id),ft=je.filter(Vt=>Vt.state?.isOn===!0).length,Ct=je.length,Ee=je.filter(Vt=>Vt.state?.isOn).reduce((Vt,rn)=>
61Vt+(pr[rn.type]||10),0),Et=vN(E.name);return a.jsxs("button",{onClick:()=>{Sn(E.id),S("home")},className:`relative overflow-hidden rounded-2xl h-48 group text-left transition-all duration-300 hover:scale-[1.02] josh-active-btn josh-slide-up josh-stagger-${Math.min(fe+1,6)}`,"data-testid":`grid-room-${E.id}`,children:[a.jsx("div",{className:"absolute inset-0 bg-cover bg-center transition-transform duration-500 group-hover:scale-110",style:{backgroundImage:`url(${Et})`}}),a.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/80 via-black/30 to-black/10"}),a.jsxs("div",{className:"relative z-10 h-full flex flex-col justify-end p-5",children:[a.jsx("h3",{className:"text-white text-lg font-semibold mb-1",children:E.name}),a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsxs("span",{className:"text-white/60 text-xs",children:[Ct," devices"]}),ft>0&&a.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-[10px] font-medium bg-amber-500/20 text-amber-300",children:[a.jsx(Ha,{className:"w-3 h-3"}),ft," on"]}),ct.length>0&&a.jsxs("span",{className:"text-white/40 text-xs",children:[ct.length," scenes"]}),Ee>0&&a.jsxs("span",{className:"text-white/30 text-xs flex items-center gap-1 ml-auto",children:[a.jsx(Fa,{className:"w-3 h-3"}),Ee,"W"]})]})]})]},E.id)})})]}),j==="rooms"&&a.jsxs("div",{className:"mt-6 josh-slide-up","data-testid":"rooms-view",children:[a.jsx("h2",{className:"text-white text-2xl font-serif font-medium mb-2",children:"Rooms"}),a.jsx("p",{className:"text-white/50 text-sm mb-6",children:"Manage your rooms and their devices"}),a.jsx("div",{className:"space-y-4",children:t.sort((E,fe)=>E.order-fe.order).map((E,fe)=>{const je=s.filter(Ee=>Ee.roomId===E.id),ct=i.filter(Ee=>Ee.roomId===E.id),ft=je.filter(Ee=>Ee.state?.isOn).reduce((Ee,Et)=>Ee+(pr[Et.type]||10),0),Ct=Wu.map(Ee=>({...Ee,devices:je.filter(Et=>Ee.types.includes(Et.type))})).filter(Ee=>Ee.devices.length>0);return a.jsxs("div",{className:`bg-white/10 backdrop-blur-xl border border-white/20 rounded-2xl p-5 transition-all duration-200 hover:bg-white/[0.12] josh-slide-up josh-stagger-${Math.min(fe+1,6)}`,"data-testid":`rooms-card-${E.id}`,children:[a.jsxs("div",{className:"flex items-center justify-between mb-4",children:[a.jsxs("div",{children:[a.jsx("h3",{className:"text-white text-lg font-semibold",children:E.name}),ft>0&&a.jsxs("p",{className:"text-white/30 text-xs flex items-center gap-1 mt-0.5",children:[a.jsx(Fa,{className:"w-3 h-3"})," ~",ft,"W active"]})]}),a.jsxs(Xe,{size:"sm",variant:"ghost",className:"text-amber-400 hover:text-amber-300 text-xs",onClick:()=>{Sn(E.id),S("home")},"data-testid":`button-goto-room-${E.id}`,children:["View Room",a.jsx(Zs,{className:"w-4 h-4 ml-1"})]})]}),a.jsx("div",{className:"flex flex-wrap gap-2 mb-3",children:Ct.map(Ee=>a.jsxs("span",{className:"inline-flex items-center gap-1.5 px-3 py-1.5 rounded-xl bg-white/10 text-white/70 text-xs",children:[a.jsx("span",{className:"text-white/50",children:Ee.icon}),Ee.devices.length," ",Ee.label.toLowerCase()]},Ee.key))}),ct.length>0&&a.jsx("div",{className:"flex flex-wrap gap-2 mt-2 pt-3 border-t border-white/10",children:ct.map(Ee=>a.jsxs("button",{onClick:()=>{m(Ee.id),Ke(`rscene-${Ee.id}`)},className:`px-3 py-1.5 rounded-xl text-xs font-medium transition-all duration-200 josh-active-btn ${Ee.isActive?"bg-amber-500/30 text-amber-300 ring-1 ring-amber-400/40":"bg-white/10 text-white/60 hover:bg-white/15 hover:text-white"} ${ee===`rscene-${Ee.id}`?"josh-bounce":""}`,"data-testid":`rooms-scene-${Ee.id}`,children:[a.jsx($g,{className:"w-3 h-3 inline mr-1"}),Ee.name]},Ee.id))})]},E.id)})})]}),j==="devices"&&a.jsxs("div",{className:"mt-6 josh-slide-up","data-testid":"devices-view",children:[a.jsx("h2",{className:"text-white text-2xl font-serif font-medium mb-2",children:"All Devices"}),a.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[a.jsxs("p",{className:"text-white/50 text-sm",children:[s.length," devices across ",t.length," rooms"]}),a.jsxs("span",{className:"text-white/30 text-xs flex items-center gap-1 ml-auto",children:[a.jsx(F
61a,{className:"w-3.5 h-3.5"}),ue,"W active"]})]}),Wu.map(E=>({...E,devices:s.filter(fe=>E.types.includes(fe.type))})).filter(E=>E.devices.length>0).map((E,fe)=>a.jsxs("div",{className:`mb-6 josh-slide-up josh-stagger-${Math.min(fe+1,6)}`,children:[a.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[a.jsx("span",{className:"text-amber-400",children:E.icon}),a.jsx("h3",{className:"text-white text-sm font-bold tracking-[0.15em] uppercase",children:E.label}),a.jsxs("span",{className:"text-white/40 text-xs ml-1",children:["(",E.devices.length,")"]}),a.jsx("span",{className:"text-white/30 text-xs ml-auto",children:E.getStatus(E.devices)})]}),a.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-3",children:E.devices.map(je=>wl(je,!0))})]},E.key))]}),j==="settings"&&a.jsxs("div",{className:"mt-6 josh-slide-up","data-testid":"settings-view",children:[a.jsx("h2",{className:"text-white text-2xl font-serif font-medium mb-2",children:"Settings"}),a.jsx("p",{className:"text-white/50 text-sm mb-6",children:"Automations & preferences"}),a.jsxs("div",{className:"bg-white/10 backdrop-blur-xl border border-white/20 rounded-2xl p-5 mb-6 josh-slide-up josh-stagger-1",children:[a.jsx("h3",{className:"text-white/80 text-xs font-semibold tracking-[0.2em] uppercase mb-4",children:"Energy Overview"}),a.jsxs("div",{className:"space-y-3",children:[a.jsxs("div",{className:"flex items-center justify-between py-2",children:[a.jsx("span",{className:"text-white/60 text-sm",children:"Total Active Power"}),a.jsxs("span",{className:`text-sm font-medium ${ue>500?"text-orange-400":"text-emerald-400"}`,children:[ue,"W"]})]}),[...t].sort((E,fe)=>E.order-fe.order).map(E=>{const fe=s.filter(je=>je.roomId===E.id&&je.state?.isOn).reduce((je,ct)=>je+(pr[ct.type]||10),0);return a.jsxs("div",{className:"flex items-center justify-between py-2 border-t border-white/10",children:[a.jsx("span",{className:"text-white/60 text-sm",children:E.name}),a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx("div",{className:"w-20 h-1.5 bg-white/10 rounded-full overflow-hidden",children:a.jsx("div",{className:"h-full bg-amber-400/60 rounded-full transition-all duration-500",style:{width:`${ue>0?fe/ue*100:0}%`}})}),a.jsxs("span",{className:"text-white/50 text-xs w-12 text-right",children:[fe,"W"]})]})]},E.id)})]})]}),a.jsxs("div",{className:"bg-white/10 backdrop-blur-xl border border-white/20 rounded-2xl p-5 mb-6 josh-slide-up josh-stagger-2",children:[a.jsx("h3",{className:"text-white/80 text-xs font-semibold tracking-[0.2em] uppercase mb-4",children:"Automations"}),a.jsxs("div",{className:"space-y-3",children:[e.automations.map(E=>a.jsxs("div",{className:`flex items-center gap-4 p-4 rounded-xl transition-all duration-200 ${E.isEnabled?"bg-white/10":"bg-white/5"}`,"data-testid":`automation-${E.id}`,children:[a.jsx("div",{className:`flex-shrink-0 ${E.isEnabled?"text-amber-400":"text-white/30"}`,children:E.triggerType==="sunset"?a.jsx($c,{className:"w-5 h-5"}):E.triggerType==="sunrise"?a.jsx(YS,{className:"w-5 h-5"}):a.jsx(Ka,{className:"w-5 h-5"})}),a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsx("p",{className:`text-sm font-medium truncate ${E.isEnabled?"text-white":"text-white/50"}`,children:E.name}),a.jsx("p",{className:"text-white/40 text-xs truncate",children:E.description}),E.lastTriggered&&a.jsxs("p",{className:"text-white/30 text-xs mt-1",children:["Last: ",bN(E.lastTriggered)]})]}),a.jsx(Pr,{checked:E.isEnabled,onCheckedChange:()=>{fetch(`/api/smart-home/automations/${E.id}/toggle`,{method:"POST"})},"data-testid":`switch-automation-${E.id}`})]},E.id)),e.automations.length===0&&a.jsx("p",{className:"text-white/40 text-sm text-center py-6",children:"No automations configured yet"})]})]}),a.jsxs("div",{className:"bg-white/10 backdrop-blur-xl border border-white/20 rounded-2xl p-5 mb-6 josh-slide-up josh-stagger-3",children:[a.jsx("h3",{className:"text-white/80 text-xs font-semibold tracking-[0.2em] uppercase mb-4",children:"System Info"}),a.jsxs("div",{className:"space-y-3",children:[a.jsxs("div",{className:"flex items-center justify-between py-2",children:[a.jsx("span",{className:"text-white/60 text-sm",children:"Controller Mode"}),a.jsx("span",{className:"text-amber-400 text-sm font-medium",children:"Mock (Demo)"})]}),a.jsxs("div",{className:"flex items-center justify-between py-2 border-t border-white/10",children:[a.jsx("span",{className:"text-white/60 text-sm",children:"Total Devices"}),a.jsx("span",{className:"text-white text-sm font-medium",children:s.length})]}),a.jsxs("div",{className:"flex items-center justify-between py-2 border-t border-white/10",children:[a.jsx("span",{className:"text-white/60 text-sm",children:"Total Rooms"}),a.jsx("span",{className:"text-white text-sm font-medium",children:t.length})]}),a.jsxs("div",{className:"flex items-center justify-between py-2 border-t border-white/10",children:[a.jsx("span",{className:"text-white/60 text-sm",children:"Scenes"}),a.jsx("span",{className:"text-white text-sm font-medium",children:i.length})]}),a.jsxs("div",{className:"flex items-center justify-between py-2 border-t border-white/10",children:[a.jsx("span",{className:"text-white/60 text-sm",children:"Automations"}),a.jsx("span",{className:"text-white text-sm font-medium",children:e.automations.length})]}),a.jsxs("div",{className:"flex items-center justify-between py-2 border-t border-white/10",children:[a.jsx("span",{className:"text-white/60 text-sm",children:"Online Devices"}),a.jsxs("span",{className:"text-emerald-400 text-sm font-medium",children:[s.filter(E=>E.isOnline).length," / ",s.length]})]}),a.jsxs("div",{className:"flex items-center justify-between py-2 border-t border-white/10",children:[a.jsx("span",{className:"text-white/60 text-sm",children:"Favorites"}),a.jsx("span",{className:"text-amber-400 text-sm font-medium",children:G.size})]})]})]}),!w&&a.jsx(PG,{rooms:t}),a.jsxs("div",{className:"bg-white/10 backdrop-blur-xl border border-white/20 rounded-2xl p-5 josh-slide-up josh-stagger-4",children:[a.jsx("h3",{className:"text-white/80 text-xs font-semibold tracking-[0.2em] uppercase mb-4",children:"Qu
61ick Actions"}),a.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[a.jsxs("button",{onClick:()=>{Ke("qa-lights"),s.filter(E=>["light","dimmer","multicolor_light"].includes(E.type)&&E.state?.isOn).forEach(E=>f(E.id,"turnOff"))},className:`bg-white/10 hover:bg-white/15 rounded-xl p-4 text-left transition-all josh-active-btn ${ee==="qa-lights"?"josh-bounce":""}`,"data-testid":"quick-all-lights-off",children:[a.jsx(Ha,{className:"w-5 h-5 text-white/50 mb-2"}),a.jsx("p",{className:"text-white text-sm font-medium",children:"All Lights Off"}),a.jsx("p",{className:"text-white/40 text-xs",children:"Turn off every light"})]}),a.jsxs("button",{onClick:()=>{Ke("qa-lock"),s.filter(E=>E.type==="lock"&&!E.state?.isLocked).forEach(E=>f(E.id,"lock"))},className:`bg-white/10 hover:bg-white/15 rounded-xl p-4 text-left transition-all josh-active-btn ${ee==="qa-lock"?"josh-bounce":""}`,"data-testid":"quick-lock-all",children:[a.jsx(En,{className:"w-5 h-5 text-white/50 mb-2"}),a.jsx("p",{className:"text-white text-sm font-medium",children:"Lock All"}),a.jsx("p",{className:"text-white/40 text-xs",children:"Lock every door"})]}),a.jsxs("button",{onClick:()=>{Ke("qa-shades"),s.filter(E=>E.type==="shade").forEach(E=>f(E.id,"setPosition",0))},className:`bg-white/10 hover:bg-white/15 rounded-xl p-4 text-left transition-all josh-active-btn ${ee==="qa-shades"?"josh-bounce":""}`,"data-testid":"quick-close-shades",children:[a.jsx(Ao,{className:"w-5 h-5 text-white/50 mb-2"}),a.jsx("p",{className:"text-white text-sm font-medium",children:"Close Shades"}),a.jsx("p",{className:"text-white/40 text-xs",children:"Close all window shades"})]}),a.jsxs("button",{onClick:()=>{Ke("qa-night"),s.filter(E=>["light","dimmer","multicolor_light"].includes(E.type)&&E.state?.isOn).forEach(E=>f(E.id,"turnOff")),s.filter(E=>E.type==="lock"&&!E.state?.isLocked).forEach(E=>f(E.id,"lock")),s.filter(E=>E.type==="shade").forEach(E=>f(E.id,"setPosition",0))},className:`bg-white/10 hover:bg-white/15 rounded-xl p-4 text-left transition-all josh-active-btn ${ee==="qa-night"?"josh-bounce":""}
61`,"data-testid":"quick-goodnight",children:[a.jsx($c,{className:"w-5 h-5 text-white/50 mb-2"}),a.jsx("p",{className:"text-white text-sm font-medium",children:"Goodnight"}),a.jsx("p",{className:"text-white/40 text-xs",children:"Lights off, lock up, close shades"})]})]})]}),!C&&a.jsxs("div",{className:"bg-white/10 backdrop-blur-xl border border-white/20 rounded-2xl p-5 mt-6 josh-slide-up josh-stagger-5",children:[a.jsx("h3",{className:"text-white/80 text-xs font-semibold tracking-[0.2em] uppercase mb-4",children:"Admin"}),a.jsxs("div",{className:"space-y-3",children:[a.jsxs("div",{className:"flex items-center justify-between py-2",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[Pe?a.jsx(FS,{className:"w-4 h-4 text-amber-400"}):a.jsx(En,{className:"w-4 h-4 text-white/40"}),a.jsx("span",{className:"text-white/60 text-sm",children:Pe?"Edit Mode Active":"Edit Mode"})]}),a.jsx("button",{onClick:()=>{Pe?Tt(!1):(xa(""),as(""),ge(!0))},className:`px-3 py-1.5 rounded-lg text-xs font-medium transition-all ${Pe?"bg-amber-500/30 text-amber-300 hover:bg-amber-500/40":"bg-white/10 text-white/50 hover:bg-white/15 hover:text-white/70"}`,"data-testid":"button-toggle-edit-mode",children:Pe?"Disable":"Enable"})]}),Pe&&a.jsxs("button",{onClick:()=>St("/pitchdeck-passwords"),className:"flex items-center gap-2 w-full py-2 border-t border-white/10 text-white/50 hover:text-white/70 transition-colors","data-testid":"button-pitchdeck-passwords",children:[a.jsx(v8,{className:"w-4 h-4"}),a.jsx("span",{className:"text-sm",children:"Pitch Deck Passwords"})]}),Pe&&a.jsxs("button",{onClick:()=>St("/demo-alert"),className:"flex items-center gap-2 w-full py-2 border-t border-white/10 text-white/50 hover:text-red-300 transition-colors","data-testid":"button-trigger-demo-alert",children:[a.jsx(Qa,{className:"w-4 h-4"}),a.jsx("span",{className:"text-sm",children:"Trigger Demo Alert"})]})]})]})]})]}),a.jsx(aa,{open:Fe,onOpenChange:ge,children:a.jsxs(la,{className:"sm:max-w-[360px]",children:[a.jsxs(ca,{children:[a.jsx(da,{children:"Enter Edit Mode Password"}),a.jsx(ua,{children:"A password is required to enable edit mode."})]}),a.jsxs("form",{onSubmit:async E=>{E.preventDefault(),un(!0),as("");try{(await fetch("/api/verify-edit-password",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({password:st})})).ok?(Tt(!0),ge(!1),xa("")):as("Incorrect password")}catch{as("Failed to verify password")}finally{un(!1)}},className:"flex flex-col gap-3",children:[a.jsx("input",{type:"password",value:st,onChange:E=>xa(E.target.value),placeholder:"Password",autoFocus:!0,className:"w-full px-3 py-2 border border-border rounded-md bg-background text-foreground text-sm focus:outline-none focus:ring-2 focus:ring-primary","data-testid":"input-edit-password"}),Ns&&a.jsx("p",{className:"text-destructive text-sm","data-testid":"text-edit-password-error",children:Ns}),a.jsx("button",{type:"submit",disabled:Ss||!st,className:"w-full px-3 py-2 bg-primary text-primary-foreground rounded-md text-sm font-medium hover:bg-primary/90 disabled:opacity-50 disabled:cursor-not-allowed","data-testid":"button-submit-edit-password",children:Ss?"Verifying...":"Unlock"})]})]})}),O&&a.jsxs("div",{className:"fixed inset-x-0 bottom-0 z-60 bg-black/80 backdrop-blur-2xl border-t border-white/10 max-h-[60vh] flex flex-col josh-slide-up","data-testid":"chat-panel",children:[a.jsxs("div",{className:"flex items-center justify-between px-4 py-3 border-b border-white/10",children:[a.jsx("h3",{className:"text-white text-sm font-medium",children:"AI Assistant"}),a.jsx("button",{onClick:()=>_(!1),className:"text-white/50 hover:text-white","data-testid":"button-close-chat",children:a.jsx(Ui,{className:"w-5 h-5"})})]}),a.jsxs("div",{className:"flex-1 overflow-y-auto p-4 space-y-3",children:[y.map((E,fe)=>a.jsx("div",{className:`flex ${E.role==="user"?"justify-end":"justify-start"}`,children:a.jsx("div",{className:`max-w-[80%] rounded-2xl px-4 py-2.5 text-sm ${E.role==="user"?"bg-amber-500/30 text-white":"bg-white/10 text-white/90"}`,children:E.content})},fe)),a.jsx("div",{ref:Ce})]})]}),a.jsx("div",{className:"fixed bottom-0 inset-x-0 z-50 px-4 pb-4 pt-2","data-testid":"chat-bar-container",children:a.jsxs("div",{className:"bg-white/10 backdrop-blur-xl border border-white/20 rounded-2xl flex items-center gap-3 px-4 py-3",children:[a.jsx("button",{onClick:()=>_(!O),className:"text-white/40 hover:text-white transition-colors","data-testid":"button-toggle-chat",children:a.jsx(wc,{className:"w-5 h-5"})}),a.jsx("input",{type:"text",value:T,onChange:E=>M(E.target.value),onKeyDown:E=>
61E.key==="Enter"&&qe(),placeholder:`Try... ${SN[re]}`,className:"flex-1 bg-transparent text-white text-sm placeholder:text-white/30 focus:outline-none","data-testid":"input-chat"}),T.trim()?a.jsx("button",{onClick:qe,disabled:k,className:"bg-blue-500 hover:bg-blue-600 text-white rounded-full p-2 transition-colors disabled:opacity-50 josh-active-btn","data-testid":"button-send-chat",children:a.jsx(US,{className:"w-4 h-4"})}):a.jsx("button",{onClick:()=>_(!0),className:"bg-blue-500 hover:bg-blue-600 text-white rounded-full p-2 transition-colors josh-active-btn","data-testid":"button-mic",children:a.jsx(i8,{className:"w-4 h-4"})})]})})]})]})}const zG=1e3,LG=15e3;function A3(){const[e,t]=p.useState("disconnected"),s=p.useRef(null),i=p.useRef(null),o=p.useRef(0),c=Fs(),u=p.useRef(!1),f=p.useCallback(()=>{if(u.current||s.current?.readyState===WebSocket.OPEN||s.current?.readyState===WebSocket.CONNECTING)return;const h=window.location.protocol==="https:"?"wss:":"ws:",m=new WebSocket(`${h}//${window.location.host}/ws`);s.current=m,t("connecting"),m.onopen=()=>{if(u.current){m.close();return}t("connected"),o.current=0},m.onmessage=x=>{try{const y=JSON.parse(x.data);y.type==="device_update"||y.type==="scene_activation"?(c.invalidateQueries({queryKey:["/api/smart-home/devices"]}),c.invalidateQueries({queryKey:["/api/smart-home/scenes"]}),c.invalidateQueries({queryKey:["/api/smart-home/activity"]})):(y.type==="security_event"||y.type==="security_event_acknowledged")&&(c.invalidateQueries({queryKey:["/api/security/events"]}),c.invalidateQueries({queryKey:["/api/security/overview"]}))}catch{}},m.onclose=()=>{if(u.current)return;t("disconnected"),s.current=null;const x=Math.min(zG*Math.pow(2,o.current),LG);o.current++,i.current=setTimeout(f,x)},m.onerror=()=>{m.close()}},[c]);return p.useEffect(()=>(u.current=!1,f(),()=>{u.current=!0,i.current&&clearTimeout(i.current),s.current?.close()}),[f]),e}function IG(){const{theme:e,editMode:t}=qf(),s=A3(),{toast:i}=$x(),[o,c]=p.useState([{role:"assistant",content:"Hello! I'm your smart home assistant. How can I help you today?"}]),[u,f]=p.useState(""),[h,m]=p.useState(!1),[x,y]=p.useState(null),[b,w]=p.useState(!1),[C,j]=p.useState(""),[S,T]=p.useState(""),[M,k]=p.useState("mock"),[R,D]=p.useState(null),[P,O]=p.useState(!1),[_,G]=p.useState(""),[ne,se]=p.useState(""),[ce,Z]=p.useState("time"),[F,ie]=p.useState("08:00"),[I,H]=p.useState([]),[$,re]=p.useState(null),[me,L]=p.useState(""),[K,J]=p.useState(""),[oe,pe]=p.useState("mock"),[we,ee]=p.useState(null),[Me,Ce]=p.useState(null),[_e,Ve]=p.useState(""),[Pe,Tt]=p.useState(null),St=p.useRef(null),Fe=Fs();p.useEffect(()=>{t||(w(!1),O(!1),re(null),ee(null),Ce(null),Tt(null))},[t]);const{data:ge=[]}=Gt({queryKey:["/api/smart-home/rooms"],refetchInterval:3e4}),{data:st=[],isLoading:xa}=Gt({queryKey:["/api/smart-home/devices"],refetchInterval:5e3}),{data:Ns=[]}=Gt({queryKey:["/api/smart-home/scenes"],refetchInterval:5e3}),{data:as=[]}=Gt({queryKey:["/api/smart-home/automations"],refetchInterval:1e4}),{data:Ss=[]}=Gt({queryKey:["/api/smart-home/activity"],refetchInterval:5e3});p.useEffect(()=>{ge.length>0&&!x&&y(ge[0].id)},[ge,x]),ge.find(ue=>ue.id===x);const un=st.filter(ue=>ue.roomId===x);Ns.filter(ue=>ue.roomId===x);const is=dn({mutationFn:async({deviceId:ue,action:$e,value:at})=>(await fetch(`/api/smart-home/devices/${ue}/command`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:$e,value:at})})).json(),onSuccess:()=>{Fe.invalidateQueries({queryKey:["/api/smart-home/devices"]})}}),Ot=dn({mutationFn:async ue=>(await fetch(`/api/smart-home/scenes/${ue}/activate`,{method:"POST"})).json(),onSuccess:()=>{Fe.invalidateQueries({queryKey:["/api/smart-home/devices"]}),Fe.invalidateQueries({queryKey:["/api/smart-home/scenes"]})}});dn({mutationFn:async ue=>(await fetch(`/api/smart-home/automations/${ue}/toggle`,{method:"POST"})).json(),onSuccess:()=>{Fe.invalidateQueries({queryKey:["/api/smart-home/automations"]})}}),dn({mutationFn:async ue=>(await fetch("/api/smart-home/automations",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(ue)})).json(),onSuccess:()=>{Fe.invalidateQueries({queryKey:["/api/smart-home/automations"]}),O(!1),G(""),se(""),Z("time"),ie("08:00"),H([]),i({title:"Automation Created",description:"Your new automation is now active"})}}),dn({mutationFn:async ue=>{const $e=await fetch("/api/smart-home/devices",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(ue)});if(!$e.ok){const at=await $e.json().catch(()=>({message:"Failed to add device"}));throw new Error(at.message||"Failed to add device")}
61return $e.json()},onSuccess:()=>{Fe.invalidateQueries({queryKey:["/api/smart-home/devices"]}),w(!1),j(""),T(""),k("mock")}}),dn({mutationFn:async({id:ue,data:$e})=>{const at=await fetch(`/api/smart-home/devices/${ue}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify($e)});if(!at.ok)throw new Error("Failed to update device");return at.json()},onSuccess:()=>{Fe.invalidateQueries({queryKey:["/api/smart-home/devices"]}),re(null),i({title:"Device Updated"})}}),dn({mutationFn:async ue=>{const $e=await fetch(`/api/smart-home/devices/${ue}`,{method:"DELETE"});if(!$e.ok)throw new Error("Failed to delete device");return $e.json()},onSuccess:()=>{Fe.invalidateQueries({queryKey:["/api/smart-home/devices"]}),ee(null),i({title:"Device Removed"})},onError:()=>{i({title:"Failed to delete device",description:"Something went wrong. Please try again.",variant:"destructive"})}}),dn({mutationFn:async({id:ue,data:$e})=>{const at=await fetch(`/api/smart-home/rooms/${ue}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify($e)});if(!at.ok)throw new Error("Failed to update room");return at.json()},onSuccess:()=>{Fe.invalidateQueries({queryKey:["/api/smart-home/rooms"]}),Ce(null),i({title:"Room Updated"})}}),dn({mutationFn:async ue=>{const $e=await fetch(`/api/smart-home/rooms/${ue}`,{method:"DELETE"});if(!$e.ok)throw new Error("Failed to delete room");return $e.json()},onSuccess:()=>{Fe.invalidateQueries({queryKey:["/api/smart-home/rooms"]}),Fe.invalidateQueries({queryKey:["/api/smart-home/devices"]}),Tt(null),x===Pe?.id&&y(ge[0]?.id||null),i({title:"Room Removed"})},onError:()=>{i({title:"Failed to delete room",description:"Something went wrong. Please try again.",variant:"destructive"})}});const ya=()=>{St.current?.scrollIntoView({behavior:"smooth"})};p.useEffect(()=>{ya()},[o]),un.filter(ue=>ue.type==="light"||ue.type==="dimmer"||ue.type==="multicolor_light"),un.filter(ue=>ue.type==="shade"),un.filter(ue=>ue.type==="thermostat"),un.filter(ue=>ue.type==="fan");const Fn=un.filter(ue=>ue.type==="lock"),Cs=un.filter(ue=>ue.type==="camera"),ks=un.filter(ue=>["door_sensor","window_sensor","motion_sensor"].includes(ue.type)),ei=un.filter(ue=>ue.type==="alarm");[...Fn,...Cs,...ks,...ei],un.filter(ue=>["sauna","scale","speaker","pool","switch","custom"].includes(ue.type)),Ss.filter(ue=>ue.roomId===x).slice(0,5);const ti=p.useCallback(async ue=>{c($e=>[...$e,{role:"user",content:ue}]);try{const $e=o.slice(-10).map(ze=>({role:ze.role,content:ze.content})),Sn=await(await fetch("/api/smart-home/ai/chat",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({message:ue,history:$e})})).json();return c(ze=>[...ze,{role:"assistant",content:Sn.response,actions:Sn.actions}]),Fe.invalidateQueries({queryKey:["/api/smart-home/devices"]}),Fe.invalidateQueries({queryKey:["/api/smart-home/scenes"]}),Fe.invalidateQueries({queryKey:["/api/smart-home/automations"]}),Fe.invalidateQueries({queryKey:["/api/smart-home/rooms"]}),Sn.response}catch{const $e="I'm sorry, I encountered an error processing your request.";return c(at=>[...at,{role:"assistant",content:$e}]),$e}},[o,Fe]),va=p.useCallback((ue,$e,at)=>{is.mutate({deviceId:ue,action:$e,value:at})},[is]),ba=p.useCallback(async ue=>{await Promise.all(ue.map($e=>fetch(`/api/smart-home/devices/${$e.deviceId}/command`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:$e.action,value:$e.value})}))),Fe.invalidateQueries({queryKey:["/api/smart-home/devices"]})},[Fe]),rs=p.useCallback(ue=>{Ot.mutate(ue)},[Ot]);return a.jsx(M3,{rooms:ge,devices:st,scenes:Ns,automations:as,activityLogs:Ss,selectedRoomId:x,setSelectedRoomId:y,onDeviceCommand:va,onBatchDeviceCommands:ba,onSceneActivate:rs,onSendMessage:ti,chatMessages:o,wsStatus:s})}function gy({alerts:e,onDismiss:t,primaryAction:s}){const[i,o]=p.useState("toast"),[c,u]=p.useState(null),f=c&&e.find(y=>y.id===c)||e[0]||null;if(p.useEffect(()=>{if(!f){c!==null&&u(null),i!=="toast"&&o("toast");return}f.id!==c&&(u(f.id),o("toast"))},[f,c,i]),!f)return null;const h=()=>{t(f.id),o("toast")},m=()=>{s&&(s.onClick(f.id),o("toast"))},x=e.length-1;return a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"pointer-events-none fixed inset-0 z-40 motion-reduce:animate-none",style:{boxShadow:"inset 0 0 120px 40px rgba(239, 68, 68, 0.45), inset 0 0 240px 80px rgba(239, 68, 68, 0.2)",animation:"alert-overlay-pulse 2s ease-in-out infinite alternate"},"data-testid":"alert-glow"}),a.jsx("style",{children:` 62 @keyframes alert-overlay-pulse { 63 0% { 64 box-shadow: 65 inset 0 0 120px 40px rgba(239, 68, 68, 0.35), 66 inset 0 0 240px 80px rgba(239, 68, 68, 0.15); 67 } 68 100% { 69 box-shadow: 70 inset 0 0 160px 60px rgba(239, 68, 68, 0.6), 71 inset 0 0 280px 100px rgba(239, 68, 68, 0.28); 72 } 73 } 74 `}),i==="toast"&&a.jsxs("div",{className:"fixed top-6 right-6 z-50 max-w-sm bg-white/10 backdrop-blur-xl border border-red-400/40 rounded-2xl p-5 shadow-[0_0_24px_rgba(239,68,68,0.4)]",role:"alert","aria-live":"assertive","data-testid":"alert-toast",children:[a.jsx("button",{onClick:h,className:"absolute top-2 right-2 p-1.5 rounded-lg hover:bg-white/10 text-white/60 hover:text-white transition-colors","data-testid":"button-dismiss-alert","aria-label":"Dismiss",children:a.jsx(Ui,{className:"w-4 h-4"})}),a.jsxs("div",{className:"flex items-start gap-3 pr-6",children:[a.jsx("div",{className:"flex-shrink-0 w-10 h-10 rounded-xl bg-red-500/20 border border-red-400/40 flex items-center justify-center",children:a.jsx(Qa,{className:"w-5 h-5 text-red-400"})}),a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsx("h3",{className:"text-white font-semibold text-base leading-tight","data-testid":"text-alert-title",children:f.title}),a.jsx("p",{className:"text-white/70 text-sm mt-1 leading-snug",children:f.shortDe
74scription})]})]}),a.jsx("button",{onClick:()=>o("diagnostics"),className:"w-full mt-4 bg-red-500/80 hover:bg-red-500 text-white text-sm font-medium rounded-xl px-4 py-2.5 transition-colors","data-testid":"button-view-diagnostics",children:"View Diagnostics"}),x>0&&a.jsxs("p",{className:"text-white/40 text-xs mt-3 text-center","data-testid":"text-additional-alerts",children:["+",x," more active alert",x===1?"":"s"]})]}),i==="diagnostics"&&a.jsx("div",{className:"fixed inset-0 z-50 flex items-start justify-center overflow-y-auto px-4 py-10 bg-black/40 backdrop-blur-sm","data-testid":"card-diagnostics",children:a.jsxs("div",{className:"max-w-2xl w-full bg-white/10 backdrop-blur-xl border border-white/20 rounded-3xl p-8 shadow-2xl",children:[a.jsxs("button",{onClick:()=>o("toast"),className:"flex items-center gap-1.5 text-white/50 hover:text-white text-xs mb-6 transition-colors","data-testid":"button-back-to-alert",children:[a.jsx(uf,{className:"w-3.5 h-3.5"}),"Back to alert"]}),a.jsxs("div",{className:"flex items-start gap-4 mb-6",children:[a.jsx("div",{className:"flex-shrink-0 w-14 h-14 rounded-2xl bg-red-500/20 border border-red-400/40 flex items-center justify-center",children:a.jsx(Qa,{className:"w-7 h-7 text-red-400"})}),a.jsxs("div",{children:[a.jsx("h2",{className:"text-white text-2xl font-serif font-medium","data-testid":"text-diagnostics-heading",children:f.diagnosticsHeading}),f.diagnosticsSubtitle&&a.jsx("p",{className:"text-white/50 text-sm mt-1",children:f.diagnosticsSubtitle})]})]}),f.issues.length>0&&a.jsxs("div",{className:"mt-6",children:[a.jsx("h3",{className:"text-white/80 text-xs font-semibold uppercase tracking-wider mb-3",children:"Detected Issues"}),a.jsx("ul",{className:"space-y-3",children:f.issues.map((y,b)=>a.jsxs("li",{className:"flex items-start gap-3 bg-white/5 border border-white/10 rounded-xl px-4 py-3","data-testid":`issue-${y.label.toLowerCase().replace(/\s+/g,"-")}`,children:[a.jsx("span",{className:"flex-shrink-0 w-2 h-2 mt-2 rounded-full bg-red-400 shadow-[0_0_8px_rgba(239,68,68,0.7)]"}),a.jsxs("div",{className:"flex-1",children:[a.jsx("p",{className:"text-white text-sm font-medium",children:y.label}),a.jsx("p",{className:"text-white/60 text-sm mt-0.5",children:y.desc})]})]},`${y.label}-${b}`))})]}),f.recommendation&&a.jsx("div",{className:"mt-6 bg-amber-500/10 border border-amber-400/30 rounded-xl p-4",children:a.jsxs("p",{className:"text-amber-100/90 text-sm leading-relaxed",children:[a.jsx("span",{className:"font-semibold",children:"Recommended:"})," ",f.recommendation]})}),a.jsxs("div",{className:"mt-8 flex flex-col sm:flex-row gap-3",children:[s&&a.jsxs("button",{onClick:m,className:"flex-1 inline-flex items-center justify-center gap-2 bg-amber-500 hover:bg-amber-400 text-slate-900 font-semibold rounded-xl px-5 py-3 transition-colors","data-testid":"button-primary-action",children:[s.icon,s.label]}),a.jsxs("button",{onClick:h,className:"flex-1 inline-flex items-center justify-center gap-2 border border-white/20 hover:bg-white/10 text-white/80 hover:text-white rounded-xl px-5 py-3 transition-colors","data-testid":"button-dismiss-warning",children:[a.jsx(_i,{className:"w-4 h-4"}),"Dismiss Warning"]})]})]})})]})}const VG={id:"demo-water-heater",title:"Water Heater Malfunction",shortDescription:"Detected unusual temperature drop in basement water heater",diagnosticsHeading:"Water Heater Diagnostics",diagnosticsSubtitle:"Basement utility room · Last reading 3 min ago",issues:[{label:"Pilot light failure",desc:"Water temperature has dropped 18°F over the past 2 hours"},{label:"Pressure relief valve activity",desc:"Abnormal pressure spikes detected on the relief line"},{label:"Heating element draw",desc:"Element may be partially shorted â power draw is 30% above baseline"}],recommendation:"Schedule a service visit within 24 hours to prevent water damage and full hot-water loss."};function $G(){const[e,t]=p.useState("alert");return a.jsx("div",{className:"relative min-h-screen w-full overflow-hidden bg-gradient-to-br from-slate-900 via-slate-950 to-black",children:a.jsxs("div",{className:"relative z-10 px-6 pt-10 pb-20",children:[a.jsxs("div",{className:"max-w-3xl mx-auto text-center mb-12",children:[a.jsx("p",{className:"text-white/40 text-xs uppercase tracking-[0.3em] mb-3",children:"Demo Mode"}),a.jsx("h1",{className:"text-white font-serif text-4xl sm:text-5xl mb-3",children:"Home Health Alert"}),a.jsx("p",{className:"text-white/50 text-sm max-w-xl mx-auto",children:"Live demonstration of how a critical home issue would surface to a resident in real time."})]}),e==="alert"&&a.jsx(gy,{alerts:[VG],onDismiss:()=>t("dismissed"),primaryAction:{label:"Schedule for Repair",icon:a.jsx(mf,{className:"w-4 h-4"}),onClick:()=>t("scheduled")}}),e==="scheduled"&&a.jsxs("div",{className:"max-w-md mx-auto bg-white/10 backdrop-blur-xl border border-emerald-400/30 rounded-3xl p-8 text-center shadow-2xl","data-testid":"card-scheduled",children:[a.jsx("div",{className:"w-16 h-16 mx-auto rounded-2xl bg-emerald-500/20 border border-emerald-400/40 flex items-center justify-center mb-4",children:a.jsx(He,{className:"w-8 h-8 text-emerald-400"})}),a.jsx("h2",{className:"text-white text-2xl font-serif font-medium mb-2",children:"Service Scheduled"}),a.jsxs("p",{className:"text-white/60 text-sm leading-relaxed mb-6",children:["A certified technician has been dispatched and will arrive between",a.jsxs("span",{className:"text-white font-medium",children:[" ","9:00 AM â 11:00 AM"," "]}),"tomorrow."]}),a.jsx("button",{onClick:()=>t("dismissed"),className:"w-full bg-white/10 hover:bg-white/15 border border-white/20 text-white rounded-xl px-5 py-3 transition-colors","data-testid":"button-done",children:"Done"})]}),e==="dismissed"&&a.jsxs("div",{className:"max-w-md mx-auto bg-white/10 backdrop-blur-xl border border-white/20 rounded-3xl p-8 text-center shadow-2xl","data-testid":"card-dismissed",children:[a.jsx("div",{className:"w-14 h-14 mx-auto rounded-2xl bg-white/10 border border-white/20 flex items-center justify-center mb-4",children:a.jsx(_i,{className:"w-7 h-7 text-white/60"})}),a.jsx("h2",{className:"text-white text-xl font-serif font-medium mb-2",children:"All clear"}),a.jsx("p",{className:"text-white/50 text-sm mb-6",children:"No active alerts."}),a.jsx("button",{onClick:()=>t("alert"),className:"bg-amber-500/90 hover:bg-amber-400 text-slate-900 font-semibold rounded-xl px-6 py-2.5 text-sm transition-colors","data-testid":"button-replay-demo",children:"Re-trigger demo alert"})]})]})})}const BG="/assets/smart-home-demo-D-JNjvNg.mp4";function FG(){const e=()=>{window.print()};return a.jsxs("div",{className:"min-h-screen bg-background",children:[a.jsx("style",{children:` 75 @media print { 76 .no-print { display: none !important; } 77 .print-break { page-break-before: always; } 78 body { font-size: 11pt; } 79 .milestone-card { break-inside: avoid; } 80 } 81 `}),a.jsx("header",{className:"fixed top-0 left-0 right-0 z-50 bg-background/80 backdrop-blur-xl border-b border-border/50 no-print",children:a.jsxs("div",{className:"max-w-6xl mx-auto flex items-center justify-between px-4 md:px-8 py-4",children:[a.jsx(sn,{href:"/smart-home",className:"group",children:a.jsxs("div",{className:"flex flex-col",children:[a.jsx("h1",{className:"text-xl md:text-2xl font-serif tracking-[0.2em] text-foreground group-hover:text-primary transition-colors",children:"Dotto Vineyard Estates"}),a.jsx("p",{className:"text-[10px] tracking-[0.3em] text-muted-foreground uppercase",children:"Private Residences"})]})}),a.jsxs("div",{className:"flex items-center gap-2 sm:gap-3",children:[a.jsx(sn,{href:"/smart-home",children:a.jsxs(Xe,{variant:"outline",size:"sm",className:"text-xs tracking-wider up
81percase","data-testid":"button-live-demo",children:[a.jsx(Ww,{className:"w-3.5 h-3.5 sm:mr-2"}),a.jsx("span",{className:"hidden sm:inline",children:"Live Demo"})]})}),a.jsxs(Xe,{size:"sm",className:"text-xs tracking-wider uppercase",onClick:e,"data-testid":"button-download-pdf",children:[a.jsx(NO,{className:"w-3.5 h-3.5 sm:mr-2"}),a.jsx("span",{className:"hidden sm:inline",children:"Save as PDF"})]})]})]})}),a.jsxs("main",{className:"pt-24 pb-20 max-w-6xl mx-auto px-4 md:px-8",children:[a.jsxs("section",{className:"text-center mb-20","data-testid":"section-hero",children:[a.jsx("p",{className:"text-xs tracking-[0.3em] uppercase text-primary mb-4",children:"App Development Proposal"}),a.jsxs("h2",{className:"text-3xl sm:text-4xl md:text-5xl font-serif text-foreground mb-6 leading-tight",children:["Smart Home",a.jsx("br",{}),"Control Center"]}),a.jsx("p",{className:"text-lg text-muted-foreground max-w-2xl mx-auto leading-relaxed",children:"A smart home management platform designed for Vineyard Estates. Intelligent automation, AI assisted controls, and a seamless multiprotocol integration â all wrapped in an elegant, intuitive interface."}),a.jsxs("div",{className:"flex flex-wrap justify-center gap-3 mt-8",children:[a.jsx(Le,{variant:"outline",className:"text-sm px-4 py-1.5",children:"Security First"}),a.jsx(Le,{variant:"outline",className:"text-sm px-4 py-1.5",children:"AI Supported"}),a.jsx(Le,{variant:"outline",className:"text-sm px-4 py-1.5",children:"Multi-Protocol"}),a.jsx(Le,{variant:"outline",className:"text-sm px-4 py-1.5",children:"Mobile Ready"})]})]}),a.jsx("section",{className:"mb-20","data-testid":"section-problem-solution",children:a.jsxs("div",{className:"grid md:grid-cols-2 gap-8",children:[a.jsx(Se,{className:"border-red-200/50 bg-red-50/30",children:a.jsxs(Te,{className:"p-8",children:[a.jsx("h3",{className:"text-xl font-serif mb-4 text-red-900/80",children:"The Problem"}),a.jsxs("ul",{className:"space-y-3 text-sm text-red-900/70",children:[a.jsxs("li",{className:"flex items-start gap-2",children:[a.jsx(Zs,{className:"w-4 h-4 mt-0.5 flex-shrink-0"}),a.jsx("span",{children:"Luxury residences rely on multiple fragmented, brand-specific apps to control their homes"})]}),a.jsxs("li",{className:"flex items-start gap-2",children:[a.jsx(Zs,{className:"w-4 h-4 mt-0.5 flex-shrink-0"}),a.jsx("span",{children:"Residents need technical knowledge to manage devices across different protocols"})]}),a.jsxs("li",{className:"flex items-start gap-2",children:[a.jsx(Zs,{className:"w-4 h-4 mt-0.5 flex-shrink-0"}),a.jsx("span",{children:"No unified dashboard for security, lighting, climate, and automation"})]}),a.jsxs("li",{className:"flex items-start gap-2",children:[a.jsx(Zs,{className:"w-4 h-4 mt-0.5 flex-shrink-0"}),a.jsx("span",{children:"Property managers lack visibility into home systems across multiple residences"})]})]})]})}),a.jsx(Se,{className:"border-emerald-200/50 bg-emerald-50/30",children:a.jsxs(Te,{className:"p-8",children:[a.jsx("h3",{className:"text-xl font-serif mb-4 text-emerald-900/80",children:"The Solution"}),a.jsxs("ul",{className:"space-y-3 text-sm text-emerald-900/70",children:[a.jsxs("li",{className:"flex items-start gap-2",children:[a.jsx(He,{className:"w-4 h-4 mt-0.5 flex-shrink-0"}),a.jsx("span",{children:"One elegant app that unifies all smart home devices regardless of brand or protocol"})]}),a.jsxs("li",{className:"flex items-start gap-2",children:[a.jsx(He,{className:"w-4 h-4 mt-0.5 flex-shrink-0"}),a.jsx("span",{children:"AI assistant that understands natural language â no technical knowledge needed"})]}),a.jsxs("li",{className:"flex items-start gap-2",children:[a.jsx(He,{className:"w-4 h-4 mt-0.5 flex-shrink-0"}),a.jsx("span",{children:"Comprehensive security, automation, and scene management in one dashboard"})]}),a.jsxs("li",{className:"flex items-start gap-2",children:[a.jsx(He,{className:"w-4 h-4 mt-0.5 flex-shrink-0"}),a.jsx("span",{children:"Built for luxury â premium design and white-glove user experience"})]})]})]})})]})}),a.jsxs("section",{className:"mb-20","data-testid":"section-features",children:[a.jsxs("div",{className:"text-center mb-12",children:[a.jsx("p",{className:"text-xs tracking-[0.3em] uppercase text-primary mb-3",children:"Platform Capabilities"}),a.jsx("h3",{className:"text-3xl font-serif text-foreground",children:"Key Features"})]}),a.jsxs("div",{className:"grid sm:grid-cols-2 lg:grid-cols-3 gap-6",children:[a.jsx(Se,{className:"hover:shadow-lg transition-shadow",children:a.jsxs(Te,{className:"p-6",children:[a.jsx(Ha,{className:"w-8 h-8 text-primary mb-3"}),a.jsx("h4",{className:"font-serif text-lg mb-2","data-testid":"text-feature-0",children:"Device Control"}),a.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:"Lights, shades, thermostats, fans â all controllable from one interface with room-based organization."})]})}),a.jsx(Se,{className:"hover:shadow-lg transition-shadow",children:a.jsxs(Te,{className:"p-6",children:[a.jsx(_i,{className:"w-8 h-8 text-primary mb-3"}),a.jsx("h4",{className:"font-serif text-lg mb-2","data-testid":"text-feature-1",children:"Security System"}),a.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:"Smart locks, cameras, sensors, and alarm panel with real-time status monitoring and quick actions."})]})}),a.jsx(Se,{className:"hover:shadow-lg transition-shadow",children:a.jsxs(Te,{className:"p-6",children:[a.jsx(Ka,{className:"w-8 h-8 text-primary mb-3"}),a.jsx("h4",{className:"font-serif text-lg mb-2","data-testid":"text-feature-2",children:"Automation Engine"}),a.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:"Time based, sunrise/sunset, diagnostics, and device-triggered automations that run your home on auto
81pilot."})]})}),a.jsx(Se,{className:"hover:shadow-lg transition-shadow",children:a.jsxs(Te,{className:"p-6",children:[a.jsx(qw,{className:"w-8 h-8 text-primary mb-3"}),a.jsx("h4",{className:"font-serif text-lg mb-2","data-testid":"text-feature-3",children:"AI Concierge"}),a.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:"Natural language control â just tell the AI what you want and it handles the rest, with conversational memory."})]})}),a.jsx(Se,{className:"hover:shadow-lg transition-shadow",children:a.jsxs(Te,{className:"p-6",children:[a.jsx(Yo,{className:"w-8 h-8 text-primary mb-3"}),a.jsx("h4",{className:"font-serif text-lg mb-2","data-testid":"text-feature-4",children:"Multi-Protocol"}),a.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:"Built to work with Control4, Lutron, Z-Wave, Zigbee, WiFi, MQTT, Bluetooth, and HomeKit devices."})]})}),a.jsx(Se,{className:"hover:shadow-lg transition-shadow",children:a.jsxs(Te,{className:"p-6",children:[a.jsx(Ww,{className:"w-8 h-8 text-primary mb-3"}),a.jsx("h4",{className:"font-serif text-lg mb-2","data-testid":"text-feature-5",children:"Mobile-First"}),a.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:"Responsive design that works beautifully on phones, tablets, and desktops â access your home from anywhere."})]})})]})]}),a.jsxs("section",{className:"mb-20 print-break","data-testid":"section-milestones",children:[a.jsxs("div",{className:"text-center mb-12",children:[a.jsx("p",{className:"text-xs tracking-[0.3em] uppercase text-primary mb-3",children:"Development Roadmap"}),a.jsx("h3",{className:"text-3xl font-serif text-foreground mb-3",children:"8 Milestones to Completion"}),a.jsx("p",{className:"text-muted-foreground max-w-xl mx-auto",children:"Each milestone delivers a working, demonstrable feature set. Payment is tied to delivery â you see results before each payment."})]}),a.jsxs("div",{className:"space-y-6",children:[a.jsx(Se,{className:"milestone-card overflow-hidden transition-all opacity-90","data-testid":"card-milestone-1",children:a.jsx(Te,{className:"p-0",children:a.jsxs("div",{className:"flex flex-col md:flex-row",children:[a.jsx("div",{className:"flex items-center justify-center p-6 md:p-8 md:w-20 bg-emerald-50 text-emerald-700",children:a.jsx("span",{className:"text-2xl font-serif font-bold",children:"1"})}),a.jsxs("div",{className:"flex-1 p-6 md:p-8",children:[a.jsxs("div",{className:"flex flex-wrap items-center gap-3 mb-3",children:[a.jsx(l8,{className:"w-5 h-5 text-primary"}),a.jsx("h4",{className:"text-lg font-serif",children:"Discovery & Design"}),a.jsx(Le,{className:"bg-emerald-100 text-emerald-800 border-emerald-200",children:"In Progress"}),a.jsx("span",{className:"ml-auto text-lg font-semibold text-primary","data-testid":"text-price-1",children:"$0"})]}),a.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:"Laying the foundation with research, design, and architecture."}),a.jsxs("div",{className:"grid sm:grid-cols-2 gap-2 mb-4",children:[a.jsxs("div",{className:"flex items-start gap-2 text-sm",children:[a.jsx(He,{className:"w-3.5 h-3.5 mt-0.5 flex-shrink-0 text-emerald-600"}),a.jsx("span",{className:"text-foreground/80",children:"Stakeholder interviews & requirements gathering"})]}),a.jsxs("div",{className:"flex items-start gap-2 text-sm",children:[a.jsx(He,{className:"w-3.5 h-3.5 mt-0.5 flex-shrink-0 text-emerald-600"}),a.jsx("span",{className:"text-foreground/80",children:"UI/UX wireframes and visual design system"})]}),a.jsxs("div",{className:"flex items-start gap-2 text-sm",children:[a.jsx(He,{className:"w-3.5 h-3.5 mt-0.5 flex-shrink-0 text-emerald-600"}),a.jsx("span",{className:"text-foreground/80",children:"Technical architecture document"})]}),a.jsxs("div",{className:"flex items-start gap-2 text-sm",children:[a.jsx(He,{className:"w-3.5 h-3.5 mt-0.5 flex-shrink-0 text-emerald-600"}),a.jsx("span",{className:"text-foreground/80",children:"Database schema & API specification"})]})]}),a.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground bg-muted/30 rounded-lg px-3 py-2",children:[a.jsx(Vn,{className:"w-3 h-3"}),a.jsx("span",{className:"font-medium",children:"Deliverable:"}),a.jsx("span",{children:"Signed-off design package"})]})]})]})})}),a.jsx(Se,{className:"milestone-card overflow-hidden transition-all opacity-90","data-testid":"card-milestone-2",children:a.jsx(Te,{className:"p-0",children:a.jsxs("div",{className:"flex flex-col md:flex-row",children:[a.jsx("div",{className:"flex items-center justify-center p-6 md:p-8 md:w-20 bg-emerald-50 text-emerald-700",children:a.jsx("span",{className:"text-2xl font-serif font-bold",children:"2"})}),a.jsxs("div",{className:"flex-1 p-6 md:p-8",children:[a.jsxs("div",{className:"flex flex-wrap items-center gap-3 mb-3",children:[a.jsx(Hi,{className:"w-5 h-5 text-primary"}),a.jsx("h4",{className:"text-lg font-serif",children:"Foundation & Infrastru
81cture"}),a.jsx(Le,{className:"bg-emerald-100 text-emerald-800 border-emerald-200",children:"Complete"}),a.jsx("span",{className:"ml-auto text-lg font-semibold text-primary","data-testid":"text-price-2",children:"$0"})]}),a.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:"Core platform setup with authentication and branding."}),a.jsxs("div",{className:"grid sm:grid-cols-2 gap-2 mb-4",children:[a.jsxs("div",{className:"flex items-start gap-2 text-sm",children:[a.jsx(He,{className:"w-3.5 h-3.5 mt-0.5 flex-shrink-0 text-emerald-600"}),a.jsx("span",{className:"text-foreground/80",children:"Project setup, hosting & CI/CD pipeline"})]}),a.jsxs("div",{className:"flex items-start gap-2 text-sm",children:[a.jsx(He,{className:"w-3.5 h-3.5 mt-0.5 flex-shrink-0 text-emerald-600"}),a.jsx("span",{className:"text-foreground/80",children:"Database setup and user authentication"})]}),a.jsxs("div",{className:"flex items-start gap-2 text-sm",children:[a.jsx(He,{className:"w-3.5 h-3.5 mt-0.5 flex-shrink-0 text-emerald-600"}),a.jsx("span",{className:"text-foreground/80",children:"Basic resident portal with login"})]}),a.jsxs("div",{className:"flex items-start gap-2 text-sm",children:[a.jsx(He,{className:"w-3.5 h-3.5 mt-0.5 flex-shrink-0 text-emerald-600"}),a.jsx("span",{className:"text-foreground/80",children:"Mobile-responsive layout with luxury branding"})]})]}),a.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground bg-muted/30 rounded-lg px-3 py-2",children:[a.jsx(Vn,{className:"w-3 h-3"}),a.jsx("span",{className:"font-medium",children:"Deliverable:"}),a.jsx("span",{children:"Working login and empty dashboard"})]})]})]})})}),a.jsx(Se,{className:"milestone-card overflow-hidden transition-all opacity-90","data-testid":"card-milestone-3",children:a.jsx(Te,{className:"p-0",children:a.jsxs("div",{className:"flex flex-col md:flex-row",children:[a.jsx("div",{className:"flex items-center justify-center p-6 md:p-8 md:w-20 bg-emerald-50 text-emerald-700",children:a.jsx("span",{className:"text-2xl font-serif font-bold",children:"3"})}),a.jsxs("div",{className:"flex-1 p-6 md:p-8",children:[a.jsxs("div",{className:"flex flex-wrap items-center gap-3 mb-3",children:[a.jsx(Ha,{className:"w-5 h-5 text-primary"}),a.jsx("h4",{className:"text-lg font-serif",children:"Device Control MVP"}),a.jsx(Le,{className:"bg-emerald-100 text-emerald-800 border-emerald-200",children:"Complete"}),a.jsx("span",{className:"ml-auto text-lg font-semibold text-primary","data-testid":"text-price-3",children:"$20,000"})]}),a.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:"The core smart home experience â controlling real devices."}),a.jsxs("div",{className:"grid sm:grid-cols-2 gap-2 mb-4",children:[a.jsxs("div",{className:"flex items-start gap-2 text-sm",children:[a.jsx(He,{className:"w-3.5 h-3.5 mt-0.5 flex-shrink-0 text-emerald-600"}),a.jsx("span",{className:"text-foreground/80",children:"Room-based device organization"})]}),a.jsxs("div",{className:"flex items-start gap-2 text-sm",children:[a.jsx(He,{className:"w-3.5 h-3.5 mt-0.5 flex-shrink-0 text-emerald-600"}),a.jsx("span",{className:"text-foreground/80",children:"Introductory back end security established"})]}),a.jsxs("div",{className:"flex items-start gap-2 text-sm",children:[a.jsx(He,{className:"w-3.5 h-3.5 mt-0.5 flex-shrink-0 text-emerald-600"}),a.jsx("span",{className:"text-foreground/80",children:"Mock mode for demos without real hardware"})]}),a.jsxs("div",{className:"flex items-start gap-2 text-sm",children:[a.jsx(He,{className:"w-3.5 h-3.5 mt-0.5 flex-shrink-0 text-emerald-600"}),a.jsx("span",{className:"text-foreground/80",children:"Pre-configured scene activation"})]})]}),a.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground bg-muted/30 rounded-lg px-3 py-2",children:[a.jsx(Vn,{className:"w-3 h-3"}),a.jsx("span",{className:"font-medium",children:"Deliverable:"}),a.jsx("span",{children:"Functional demo controlling devices in mock mode"})]})]})]})})}),a.jsx(Se,{className:"milestone-card overflow-hidden transition-all opacity-90","data-testid":"card-milestone-4",children:a.jsx(Te,{className:"p-0",children:a.jsxs("div",{className:"flex flex-col md:flex-row",children:[a.jsx("div",{className:"flex items-center justify-center p-6 md:p-8 md:w-20 bg-emerald-50 text-emerald-700",children:a.jsx("span",{className:"text-2xl font-serif font-bold",children:"4"})}),a.jsxs("div",{className:"flex-1 p-6 md:p-8",children:[a.jsxs("div",{className:"flex flex-wrap items-center gap-3 mb-3",children:[a.jsx(_i,{className:"w-5 h-5 text-primary"}),a.jsx("h4",{className:"text-lg font-serif",children:"Security System"}),a.jsx(Le,{className:"bg-emerald-100 text-emerald-800 border-emerald-200",children:"Complete"}),a.jsx("span",{className:"ml-auto text-lg font-semibold text-primary","data-testid":"text-price-4",children:"$30,000"})]}),a.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:"Comprehensive security monitoring and control."}),a.jsxs("div",{className:"grid sm:grid-cols-2 gap-2 mb-4",children:[a.jsxs("div",{className:"flex items-start gap-2 text-sm",children:[a.jsx(He,{className:"w-3.5 h-3.5 mt-0.5 flex-shrink-0 text-emerald-600"}
81),a.jsx("span",{className:"text-foreground/80",children:"Smart lock controls with status"})]}),a.jsxs("div",{className:"flex items-start gap-2 text-sm",children:[a.jsx(He,{className:"w-3.5 h-3.5 mt-0.5 flex-shrink-0 text-emerald-600"}),a.jsx("span",{className:"text-foreground/80",children:"Camera feeds and motion detection indicators"})]}),a.jsxs("div",{className:"flex items-start gap-2 text-sm",children:[a.jsx(He,{className:"w-3.5 h-3.5 mt-0.5 flex-shrink-0 text-emerald-600"}),a.jsx("span",{className:"text-foreground/80",children:"Door/window sensors and alarm panel"})]}),a.jsxs("div",{className:"flex items-start gap-2 text-sm",children:[a.jsx(He,{className:"w-3.5 h-3.5 mt-0.5 flex-shrink-0 text-emerald-600"}),a.jsx("span",{className:"text-foreground/80",children:"Security scenes (Away, Home)"})]}),a.jsxs("div",{className:"flex items-start gap-2 text-sm",children:[a.jsx(He,{className:"w-3.5 h-3.5 mt-0.5 flex-shrink-0 text-emerald-600"}),a.jsx("span",{className:"text-foreground/80",children:"Item text here"})]}),a.jsxs("div",{className:"flex items-start gap-2 text-sm",children:[a.jsx(He,{className:"w-3.5 h-3.5 mt-0.5 flex-shrink-0 text-emerald-600"}),a.jsx("span",{className:"text-foreground/80",children:"Item text here"})]})]}),a.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground bg-muted/30 rounded-lg px-3 py-2",children:[a.jsx(Vn,{className:"w-3 h-3"}),a.jsx("span",{className:"font-medium",children:"Deliverable:"}),a.jsx("span",{children:"Full security dashboard with arm/disarm"})]})]})]})})}),a.jsx(Se,{className:"milestone-card overflow-hidden transition-all opacity-90","data-testid":"card-milestone-5",children:a.jsx(Te,{className:"p-0",children:a.jsxs("div",{className:"flex flex-col md:flex-row",children:[a.jsx("div",{className:"flex items-center justify-center p-6 md:p-8 md:w-20 bg-emerald-50 text-emerald-700",children:a.jsx("span",{className:"text-2xl font-serif font-bold",children:"5"})}),a.jsxs("div",{className:"flex-1 p-6 md:p-8",children:[a.jsxs("div",{className:"flex flex-wrap items-center gap-3 mb-3",children:[a.jsx(Ka,{className:"w-5 h-5 text-primary"}),a.jsx("h4",{className:"text-lg font-serif",children:"Scenes & Automations"}),a.jsx(Le,{className:"bg-emerald-100 text-emerald-800 border-emerald-200",children:"Complete"}),a.jsx("span",{className:"ml-auto text-lg font-semibold text-primary","data-testid":"text-price-5",children:"$70,000"})]}),a.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:"Personalized automation and scheduling engine."}),a.jsxs("div",{className:"grid sm:grid-cols-2 gap-2 mb-4",children:[a.jsxs("div",{className:"flex items-start gap-2 text-sm",children:[a.jsx(He,{className:"w-3.5 h-3.5 mt-0.5 flex-shrink-0 text-emerald-600"}),a.jsx("span",{className:"text-foreground/80",children:"Custom scene creation and editing"})]}),a.jsxs("div",{className:"flex items-start gap-2 text-sm",children:[a.jsx(He,{className:"w-3.5 h-3.5 mt-0.5 flex-shrink-0 text-emerald-600"}),a.jsx("span",{className:"text-foreground/80",children:"Time-based automation engine"})]}),a.jsxs("div",{className:"flex items-start gap-2 text-sm",children:[a.jsx(He,{className:"w-3.5 h-3.5 mt-0.5 flex-shrink-0 text-emerald-600"}),a.jsx("span",{className:"text-foreground/80",children:"Sunrise/sunset triggers"})]}),a.jsxs("div",{className:"flex items-start gap-2 text-sm",children:[a.jsx(He,{className:"w-3.5 h-3.5 mt-0.5 flex-shrink-0 text-emerald-600"}),a.jsx("span",{className:"text-foreground/80",children:"Activity logging and history feed"})]})]}),a.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground bg-muted/30 rounded-lg px-3 py-2",children:[a.jsx(Vn,{className:"w-3 h-3"}),a.jsx("span",{className:"font-medium",children:"Deliverable:"}),a.jsx("span",{children:"Users can create and schedule their own scenes and automations"})]})]})]})})}),a.jsx(Se,{className:"milestone-card overflow-hidden transition-all ring-2 ring-primary/30 shadow-lg","data-testid":"card-milestone-6",children:a.jsx(Te,{className:"p-0",children:a.jsxs("div",{className:"flex flex-col md:flex-row",children:[a.jsx("div",{className:"flex items-center justify-center p-6 md:p-8 md:w-20 bg-primary/10 text-primary",children:a.jsx("span",{className:"text-2xl font-serif font-bold",children:"6"})}),a.jsxs("div",{className:"flex-1 p-6 md:p-8",children:[a.jsxs("div",{className:"flex flex-wrap items-center gap-3 mb-3",children:[a.jsx(qw,{className:"w-5 h-5 text-primary"}),a.jsx("h4",{className:"text-lg font-serif",children:"AI Assistant"}),a.jsx(Le,{className:"bg-amber-100 text-amber-800 border-amber-200 animate-pulse",children:"In Progress"}),a.jsx("span",{className:"ml-auto text-lg font-semibold text-primary","data-testid":"text-price-6",children:"$120,000"})]}),a.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:"Natural language control powered by artificial intelligence."}),a.jsxs("div",{className:"grid sm:grid-cols-2 gap-2 mb-4",children:[a.jsxs("div",{className:"flex items-start gap-2 text-sm",children:[a.jsx(He,{className:"w-3.5 h-3.5 mt-0.5 flex-shrink-0 text-muted-foreground
81/50"}),a.jsx("span",{className:"text-foreground/80",children:"Natural language chat interface"})]}),a.jsxs("div",{className:"flex items-start gap-2 text-sm",children:[a.jsx(He,{className:"w-3.5 h-3.5 mt-0.5 flex-shrink-0 text-muted-foreground/50"}),a.jsx("span",{className:"text-foreground/80",children:"AI-powered device control via conversation"})]}),a.jsxs("div",{className:"flex items-start gap-2 text-sm",children:[a.jsx(He,{className:"w-3.5 h-3.5 mt-0.5 flex-shrink-0 text-muted-foreground/50"}),a.jsx("span",{className:"text-foreground/80",children:"Smart device discovery and setup through chat"})]}),a.jsxs("div",{className:"flex items-start gap-2 text-sm",children:[a.jsx(He,{className:"w-3.5 h-3.5 mt-0.5 flex-shrink-0 text-muted-foreground/50"}),a.jsx("span",{className:"text-foreground/80",children:"Natural language scheduling & conversational memory"})]})]}),a.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground bg-muted/30 rounded-lg px-3 py-2",children:[a.jsx(Vn,{className:"w-3 h-3"}),a.jsx("span",{className:"font-medium",children:"Deliverable:"}),a.jsx("span",{children:"Working AI concierge that understands complex requests"})]})]})]})})}),a.jsx(Se,{className:"milestone-card overflow-hidden transition-all","data-testid":"card-milestone-7",children:a.jsx(Te,{className:"p-0",children:a.jsxs("div",{className:"flex flex-col md:flex-row",children:[a.jsx("div",{className:"flex items-center justify-center p-6 md:p-8 md:w-20 bg-muted/30 text-muted-foreground",children:a.jsx("span",{className:"text-2xl font-serif font-bold",children:"7"})}),a.jsxs("div",{className:"flex-1 p-6 md:p-8",children:[a.jsxs("div",{className:"flex flex-wrap items-center gap-3 mb-3",children:[a.jsx(Yo,{className:"w-5 h-5 text-primary"}),a.jsx("h4",{className:"text-lg font-serif",children:"Hardware Integration"}),a.jsx(Le,{variant:"outline",className:"text-muted-foreground",children:"Upcoming"}),a.jsx("span",{className:"ml-auto text-lg font-semibold text-primary","data-testid":"text-price-7",children:"$75,000"})]}),a.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:"Connecting to real controllers and hardware protocols."}),a.jsxs("div",{className:"grid sm:grid-cols-2 gap-2 mb-4",children:[a.jsxs("div",{className:"flex items-start gap-2 text-sm",children:[a.jsx(He,{className:"w-3.5 h-3.5 mt-0.5 flex-shrink-0 text-muted-foreground/50"}),a.jsx("span",{className:"text-foreground/80",children:"Replace mock mode with real controller adapters"})]}),a.jsxs("div",{className:"flex items-start gap-2 text-sm",children:[a.jsx(He,{className:"w-3.5 h-3.5 mt-0.5 flex-shrink-0 text-muted-foreground/50"}),a.jsx("span",{className:"text-foreground/80",children:"Multi-protocol support (Control4, Lutron, Z-Wave, Zigbee, WiFi, HomeKit)"})]}),a.jsxs("div",{className:"flex items-start gap-2 text-sm",children:[a.jsx(He,{className:"w-3.5 h-3.5 mt-0.5 flex-shrink-0 text-muted-foreground/50"}),a.jsx("span",{className:"text-foreground/80",children:"Real-time device state syncing"})]}),a.jsxs("div",{className:"flex items-start gap-2 text-sm",children:[a.jsx(He,{className:"w-3.5 h-3.5 mt-0.5 flex-shrink-0 text-muted-foreground/50"}),a.jsx("span",{className:"text-foreground/80",children:"Connection management and error handling"})]})]}),a.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground bg-muted/30 rounded-lg px-3 py-2",children:[a.jsx(Vn,{className:"w-3 h-3"}),a.jsx("span",{className:"font-medium",children:"Deliverable:"}),a.jsx("span",{children:"App controlling real hardware in a test environment"})]})]})]})})}),a.jsx(Se,{className:"milestone-card overflow-hidden transition-all","data-testid":"card-milestone-8",children:a.jsx(Te,{className:"p-0",children:a.jsxs("div",{className:"flex flex-col md:flex-row",children:[a.jsx("div",{className:"flex items-center justify-center p-6 md:p-8 md:w-20 bg-muted/30 text-muted-foreground",children:a.jsx("span",{className:"text-2xl font-serif font-bold",children:"8"})}),a.jsxs("div",{className:"flex-1 p-6 md:p-8",children:[a.jsxs("div",{className:"flex flex-wrap items-center gap-3 mb-3",children:[a.jsx($o,{className:"w-5 h-5 text-primary"}),a.jsx("h4",{className:"text-lg font-serif",children:"Polish & Launch"}),a.jsx(Le,{variant:"outline",className:"text-muted-foreground",children:"Upcoming"}),a.jsx("span",{className:"ml-auto text-lg font-semibold text-primary","data-testid":"text-price-8",children:"$125,000"})]}),a.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:"Final testing, optimization, and production deployment."}),a.jsxs("div",{className:"grid sm:grid-cols-2 gap-2 mb-4",children:[a.jsxs("div",{className:"flex items-start gap-2 text-sm",children:[a.jsx(He,{className:"w-3.5 h-3.5 mt-0.5 flex-shrink-0 text-muted-foreground
81/50"}),a.jsx("span",{className:"text-foreground/80",children:"Performance optimization and security hardening"})]}),a.jsxs("div",{className:"flex items-start gap-2 text-sm",children:[a.jsx(He,{className:"w-3.5 h-3.5 mt-0.5 flex-shrink-0 text-muted-foreground/50"}),a.jsx("span",{className:"text-foreground/80",children:"Admin dashboard for property management and community app side"})]}),a.jsxs("div",{className:"flex items-start gap-2 text-sm",children:[a.jsx(He,{className:"w-3.5 h-3.5 mt-0.5 flex-shrink-0 text-muted-foreground/50"}),a.jsx("span",{className:"text-foreground/80",children:"User onboarding flow"})]}),a.jsxs("div",{className:"flex items-start gap-2 text-sm",children:[a.jsx(He,{className:"w-3.5 h-3.5 mt-0.5 flex-shrink-0 text-muted-foreground/50"}),a.jsx("span",{className:"text-foreground/80",children:"Production deployment, documentation & training"})]})]}),a.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground bg-muted/30 rounded-lg px-3 py-2",children:[a.jsx(Vn,{className:"w-3 h-3"}),a.jsx("span",{className:"font-medium",children:"Deliverable:"}),a.jsx("span",{children:"Production-ready app, deployed and handed off"})]})]})]})})})]})]}),a.jsxs("section",{className:"mb-20 print-break","data-testid":"section-pricing-summary",children:[a.jsxs("div",{className:"text-center mb-12",children:[a.jsx("p",{className:"text-xs tracking-[0.3em] uppercase text-primary mb-3",children:"Investment Summary"}),a.jsx("h3",{className:"text-3xl font-serif text-foreground",children:"Project Pricing"})]}),a.jsxs("div",{className:"grid md:grid-cols-3 gap-6",children:[a.jsx(Se,{children:a.jsxs(Te,{className:"p-6 text-center",children:[a.jsx("p",{className:"text-xs tracking-widest uppercase text-muted-foreground mb-2",children:"Payment Structure"}),a.jsx("p",{className:"text-2xl font-serif font-bold text-primary mb-1",children:"Defined by Milestones"}),a.jsx("p",{className:"text-sm text-muted-foreground",children:"Deposit upfront to begin"})]})}),a.jsx(Se,{children:a.jsxs(Te,{className:"p-6 text-center",children:[a.jsx("p",{className:"text-xs tracking-widest uppercase text-muted-foreground mb-2",children:"Milestone Billing"}),a.jsx("p",{className:"text-2xl font-serif font-bold text-primary mb-1",children:"Per Phase"}),a.jsx("p",{className:"text-sm text-muted-foreground",children:"Payments start each milestone with the approval of previous milestone"})]})}),a.jsx(Se,{children:a.jsxs(Te,{className:"p-6 text-center",children:[a.jsx("p",{className:"text-xs tracking-widest uppercase text-muted-foreground mb-2",children:"Timeline"}),a.jsx("p",{className:"text-2xl font-serif font-bold text-primary mb-1",children:"30â44 Weeks"}),a.jsx("p",{className:"text-sm text-muted-foreground",children:"Estimated to completion"})]})})]})]}),a.jsx("section",{className:"mb-20","data-testid":"section-demo-cta",children:a.jsx(Se,{className:"bg-primary/5 border-primary/20 overflow-hidden",children:a.jsxs(Te,{className:"p-0",children:[a.jsxs("div",{className:"relative rounded-t-lg overflow-hidden",children:[a.jsx("video",{src:BG,autoPlay:!0,loop:!0,muted:!0,playsInline:!0,className:"w-full aspect-video object-cover","data-testid":"video-smart-home-demo"}),a.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/60 via-trans
81parent to-transparent"})]}),a.jsxs("div",{className:"p-8 md:p-12 text-center",children:[a.jsx(Wx,{className:"w-10 h-10 text-primary mx-auto mb-4"}),a.jsx("h3",{className:"text-2xl font-serif mb-3",children:"See It In Action"}),a.jsx("p",{className:"text-muted-foreground mb-6 max-w-lg mx-auto",children:"Milestones 1â6 are already built and running. Explore the live demo to see device controls, security monitoring, automations, and the AI assistant working in real time."}),a.jsx(sn,{href:"/smart-home",children:a.jsxs(Xe,{size:"lg",className:"text-sm tracking-wider uppercase px-8","data-testid":"button-see-demo",children:["Launch Live Demo",a.jsx(Vn,{className:"w-4 h-4 ml-2"})]})})]})]})})}),a.jsxs("section",{className:"print-break","data-testid":"section-contact",children:[a.jsxs("div",{className:"text-center mb-12",children:[a.jsx("p",{className:"text-xs tracking-[0.3em] uppercase text-primary mb-3",children:"Next Steps"}),a.jsx("h3",{className:"text-3xl font-serif text-foreground",children:"Ready to Get Started?"})]}),a.jsx(Se,{children:a.jsx(Te,{className:"p-8 md:p-12",children:a.jsxs("div",{className:"grid md:grid-cols-2 gap-12",children:[a.jsxs("div",{children:[a.jsx("h4",{className:"font-serif text-xl mb-4",children:"What Happens Next"}),a.jsxs("ol",{className:"space-y-4",children:[a.jsxs("li",{className:"flex items-start gap-3 text-sm",children:[a.jsx("span",{className:"flex items-center justify-center w-6 h-6 rounded-full bg-primary text-primary-foreground text-xs font-bold flex-shrink-0 mt-0.5",children:"1"}),a.jsx("span",{className:"text-foreground/80",children:"Schedule a call to discuss your specific requirements"})]}),a.jsxs("li",{className:"flex items-start gap-3 text-sm",children:[a.jsx("span",{className:"flex items-center justify-center w-6 h-6 rounded-full bg-primary text-primary-foreground text-xs font-bold flex-shrink-0 mt-0.5",children:"2"}),a.jsx("span",{className:"text-foreground/80",children:"Review and customize the milestone plan for your property"})]}),a.jsxs("li",{className:"flex items-start gap-3 text-sm",children:[a.jsx("span",{className:"flex items-center justify-center w-6 h-6 rounded-full bg-primary text-primary-foreground text-xs font-bold flex-shrink-0 mt-0.5",children:"3"}),a.jsx("span",{className:"text-foreground/80",children:"Sign agreement and submit initial deposit"})]}),a.jsxs("li",{className:"flex items-start gap-3 text-sm",children:[a.jsx("span",{className:"flex items-center justify-center w-6 h-6 rounded-full bg-primary text-primary-foreground text-xs font-bold flex-shrink-0 mt-0.5",children:"4"}),a.jsx("span",{className:"text-foreground/80",children:"Kick off Mission House Project Dashboard initiation and weekly progress updates"})]})]})]}),a.jsxs("div",{children:[a.jsx("h4",{className:"font-serif text-xl mb-4",children:"Get in Touch"}),a.jsxs("div",{className:"space-y-4",children:[a.jsxs("a",{href:"tel:+1234567890",className:"flex items-center gap-3 text-sm text-foreground/80 hover:text-primary transition-colors","data-testid":"link-phone",children:[a.jsx(Yx,{className:"w-5 h-5 text-primary"}),a.jsx("span",{children:"(530)798-9113"})]}),a.jsxs("a",{href:"mailto:[email protected]",className:"flex items-center gap-3 text-sm text-foreground/80 hover:text-primary transition-colors","data-testid":"link-email",children:[a.jsx(t8,{className:"w-5 h-5 text-primary"}),a.jsx("span",{children:"[email protected]"})]})]})]})]})})})]})]}),a.jsx("footer",{className:"border-t py-8 no-print",children:a.jsxs("div",{className:"max-w-6xl mx-auto px-4 md:px-8 text-center",children:[a.jsx("p",{className:"text-xs tracking-[0.2em] uppercase text-muted-foreground",children:"Vineyard Estates Private Residences â Smart Home Control Center Proposal"}),a.jsxs("p",{className:"text-xs text-muted-foreground/60 mt-2",children:["Confidential â Prepared ",new Date().toLocaleDateString("en-US",{month:"long",year:"numeric"})]})]})})]})}function bg(e,t,{checkForDefaultPrevented:s=!0}={}){return function(o){if(e?.(o),s===!1||!o.defaultPrevented)return t?.(o)}}function qo(e,t,{checkForDefaultPrevented:s=!0}={}
vendor: 4,140 bytes, line 81
81){return function(o){if(e?.(o),s===!1||!o.defaultPrevented)return t?.(o)}}var HG=Bs[" useInsertionEffect ".trim().toString()]||ut;function UG({prop:e,defaultProp:t,onChange:s=()=>{},caller:i}){const[o,c,u]=qG({defaultProp:t,onChange:s}),f=e!==void 0,h=f?e:o;{const x=p.useRef(e!==void 0);p.useEffect(()=>{const y=x.current;y!==f&&console.warn(`${i} is changing from ${y?"controlled":"uncontrolled"} to ${f?"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.`),x.current=f},[f,i])}const m=p.useCallback(x=>{if(f){const y=WG(x)?x(e):x;y!==e&&u.current?.(y)}else c(x)},[f,e,c,u]);return[h,m]}function qG({defaultProp:e,onChange:t}){const[s,i]=p.useState(e),o=p.useRef(s),c=p.useRef(t);return HG(()=>{c.current=t},[t]),p.useEffect(()=>{o.current!==s&&(c.current?.(s),o.current=s)},[s,o]),[s,i,c]}function WG(e){return typeof e=="function"}var wg="rovingFocusGroup.onEntryFocus",GG={bubbles:!1,cancelable:!0},md="RovingFocusGroup",[Ex,D3,YG]=ry(md),[KG,O3]=ss(md,[YG]),[QG,XG]=KG(md),R3=p.forwardRef((e,t)=>a.jsx(Ex.Provider,{scope:e.__scopeRovingFocusGroup,children:a.jsx(Ex.Slot,{scope:e.__scopeRovingFocusGroup,children:a.jsx(ZG,{...e,ref:t})})}));R3.displayName=md;var ZG=p.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:s,orientation:i,loop:o=!1,dir:c,currentTabStopId:u,defaultCurrentTabStopId:f,onCurrentTabStopIdChange:h,onEntryFocus:m,preventScrollOnEntryFocus:x=!1,...y}=e,b=p.useRef(null),w=Ue(t,b),C=rh(c),[j,S]=UG({prop:u,defaultProp:f??null,onChange:h,caller:md}),[T,M]=p.useState(!1),k=yn(m),R=D3(s),D=p.useRef(!1),[P,O]=p.useState(0);return p.useEffect(()=>{const _=b.current;if(_)return _.addEventListener(wg,k),()=>_.removeEventListener(wg,k)},[k]),a.jsx(QG,{scope:s,orientation:i,dir:C,loop:o,currentTabStopId:j,onItemFocus:p.useCallback(_=>S(_),[S]),onItemShiftTab:p.useCallback(()=>M(!0),[]),onFocusableItemAdd:p.useCallback(()=>O(_=>_+1),[]),onFocusableItemRemove:p.useCallback(()=>O(_=>_-1),[]),children:a.jsx(Ie.div,{tabIndex:T||P===0?-1:0,"data-orientation":i,...y,ref:w,style:{outline:"none",...e.style},onMouseDown:qo(e.onMouseDown,()=>{D.current=!0}),onFocus:qo(e.onFocus,_=>{const G=!D.current;if(_.target===_.currentTarget&&G&&!T){const ne=new CustomEvent(wg,GG);if(_.currentTarget.dispatchEvent(ne),!ne.defaultPrevented){const se=R().filter(I=>I.focusable),ce=se.find(I=>I.active),Z=se.find(I=>I.id===j),ie=[ce,Z,...se].filter(Boolean).map(I=>I.ref.current);z3(ie,x)}}D.current=!1}),onBlur:qo(e.onBlur,()=>M(!1))})})}),_3="RovingFocusGroupItem",P3=p.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:s,focusable:i=!0,active:o=!1,tabStopId:c,children:u,...f}=e,h=Wa(),m=c||h,x=XG(_3,s),y=x.currentTabStopId===m,b=D3(s),{onFocusableItemAdd:w,onFocusableItemRemove:C,currentTabStopId:j}=x;return p.useEffect(()=>{if(i)return w(),()=>C()},[i,w,C]),a.jsx(Ex.ItemSlot,{scope:s,id:m,focusable:i,active:o,children:a.jsx(Ie.span,{tabIndex:y?0:-1,"data-orientation":x.orientation,...f,ref:t,onMouseDown:qo(e.onMouseDown,S=>{i?x.onItemFocus(m):S.preventDefault()}),onFocus:qo(e.onFocus,()=>x.onItemFocus(m)),onKeyDown:qo(e.onKeyDown,S=>{if(S.key==="Tab"&&S.shiftKey){x.onItemShiftTab();return}if(S.target!==S.currentTarget)return;const T=tY(S,x.orientation,x.dir);if(T!==void 0){if(S.metaKey||S.ctrlKey||S.altKey||S.shiftKey)return;S.preventDefault();let k=b().filter(R=>R.focusable).map(R=>R.ref.current);if(T==="last")k.reverse();else if(T==="prev"||T==="next"){T==="prev"&&k.reverse();const R=k.indexOf(S.currentTarget);k=x.loop?nY(k,R+1):k.slice(R+1)}setTimeout(()=>z3(k))}}),children:typeof u=="function"?u({isCurrentTabStop:y,hasTabStop:j!=null}):u})})});P3.displayName=_3;var JG={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function eY(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function tY(e,t,s){const i=eY(e.key,s);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(i))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(i)))return JG[i]}
81function z3(e,t=!1){const s=document.activeElement;for(const i of e)if(i===s||(i.focus({preventScroll:t}),document.activeElement!==s))return}function nY(e,t){return e.map((s,i)=>e[(t+i)%e.length])}var sY=R3,aY=P3,iY=Bs[" useInsertionEffect ".trim().toString()]||ut;function rY({prop:e,defaultProp:t,onChange:s=()=>{},caller:i}){const[o,c,u]=oY({defaultProp:t,onChange:s}),f=e!==void 0,h=f?e:o;{const x=p.useRef(e!==void 0);p.useEffect(()=>{const y=x.current;y!==f&&console.warn(`${i} is changing from ${y?"controlled":"uncontrolled"} to ${f?"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.`),x.current=f},[f,i])}const m=p.useCallback(x=>{if(f){const y=lY(x)?x(e):x;y!==e&&u.current?.(y)}else c(x)},[f,e,c,u]);return[h,m]}function oY({defaultProp:e,onChange:t}){const[s,i]=p.useState(e),o=p.useRef(s),c=p.useRef(t);return iY(()=>{c.current=t},[t]),p.useEffect(()=>{o.current!==s&&(c.current?.(s),o.current=s)},[s,o]),[s,i,c]}function lY(e){return typeof e=="function"}var ph="Tabs",[cY]=ss(ph,[O3]),L3=O3(),[dY,xy]=cY(ph),I3=p.forwardRef((e,t)=>{const{__scopeTabs:s,value:i,onValueChange:o,defaultValue:c,orientation:u="horizontal",dir:f,activationMode:h="automatic",...m}=e,x=rh(f),[y,b]=rY({prop:i,onChange:o,defaultProp:c??"",caller:ph});return a.jsx(dY,{scope:s,baseId:Wa(),value:y,onValueChange:b,orientation:u,dir:x,activationMode:h,children:a.jsx(Ie.div,{dir:x,"data-orientation":u,...m,ref:t})})});I3.displayName=ph;var V3="TabsList",$3=p.forwardRef((e,t)=>{const{__scopeTabs:s,loop:i=!0,...o}=e,c=xy(V3,s),u=L3(s);return a.jsx(sY,{asChild:!0,...u,orientation:c.orientation,dir:c.dir,loop:i,children:a.jsx(Ie.div,{role:"tablist","aria-orientation":c.orientation,...o,ref:t})})});$3.displayName=V3;var B3="TabsTrigger",F3=p.forwardRef((e,t)=>{const{__scopeTabs:s,value:i,disabled:o=!1,...c}=e,u=xy(B3,s),f=L3(s),h=q3(u.baseId,i),m=W3(u.baseId,i),x=i===u.value;return a.jsx(aY,{asChild:!0,...f,focusable:!o,active:x,children:a.jsx(Ie.button,{type:"button",role:"tab","aria-selected":x,"aria-controls":m,"data-state":x?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:h,...c,ref:t,onMouseDown:bg(e.onMouseDown,y=>{!o&&y.button===0&&y.ctrlKey===!1?u.onValueChange(i):y.preventDefault()}),onKeyDown:bg(e.onKeyDown,y=>{[" ","Enter"].includes(y.key)&&u.onValueChange(i)}),onFocus:bg(e.onFocus,()=>{const y=u.activationMode!=="manual";!x&&!o&&y&&u.onValueChange(i)})})})});F3.displayName=B3;var H3="TabsContent",U3=p.forwardRef((e,t)=>{const{__scopeTabs:s,value:i,forceMount:o,children:c,...u}=e,f=xy(H3,s),h=q3(f.baseId,i),m=W3(f.baseId,i),x=i===f.value,y=p.useRef(x);return p.useEffect(()=>{const b=requestAnimationFrame(()=>y.current=!1);return()=>cancelAnimationFrame(b)},[]),a.jsx(pa,{present:o||x,children:({present:b})=>a.jsx(Ie.div,{"data-state":x?"active":"inactive","data-orientation":f.orientation,role:"tabpanel","aria-labelledby":h,hidden:!b,id:m,tabIndex:0,...u,ref:t,style:{...e.style,animationDuration:y.current?"0s":void 0},children:b&&c})})});U3.displayName=H3;function q3(e,t){return`${e}-trigger-${t}`}function W3(e,t){return`${e}-content-${t}`}var uY=I3,G3=$3,Y3=F3,K3=U3;const fY=uY,Q3=p.forwardRef(({className:e,...t},s)=>a.jsx(G3,{ref:s,className:he("inline-flex h-auto sm:h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",e),...t}));Q3.displayName=G3.displayName;const Cc=p.forwardRef(({className:e,...t},s)=>a.jsx(Y3,{ref:s,className:he("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-2 sm:py-1 min-h-[44px] sm:min-h-0 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",e),...t}));Cc.displayName=Y3.displayName;const kc=p.forwardRef(({className:e,...t},s)=>a.jsx(K3,{ref:s,className:he("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));kc.displayName=K3.displayName;function CN({severity:e}){switch(e){case"critical":return a.jsx(WS,{className:"w-4 h-4 text-red-600"});case"high":return a.jsx(Qa,{className:"w-4 h-4 text-orange-500"});case"medium":return a.jsx(RS,{className:"w-4 h-4 text-amber-500"});case"low":return a.jsx($S,{className:"w-4 h-4 text-blue-500"});default:return a.jsx(He,{className:"w-4 h-4 text-emerald-500"})}}function jg({severity:e}){const t={critical:"bg-red-100 text-red-800 border-red-200",high:"bg-orange-100 text-orange-800 border-orange-200",medium:"bg-amber-100 text-amber-800 border-amber-200",low:"bg-blue-100 text-blue-800 border-blue-200",info:"bg-slate-100 text-slate-800 border-slate-200"};return a.jsx(Le,{className:t[e]||t.info,"data-testid":`badge-severity-${e}`,children:e.charAt(0).toUpperCase()+e.slice(1)})}function hY({score:e,grade:t}){const s=2*Math.PI*58,i=s-e/100*s;let o="text-emerald-500",c="stroke-emerald-500";return e<60?(o="text-red-500",c="stroke-red-500"):e<70?(o="text-orange-500",c="stroke-orange-500"):e<80?(o="text-amber-500",c="stroke-amber-500"):e<90&&(o="text-blue-500",c="stroke-blue-500"),a.jsxs("div",{className:"relative w-40 h-40 mx-auto","data-testid":"gauge-security-score",children:[a.jsxs("svg",{className:"w-40 h-40 -rotate-90",viewBox:"0 0 128 128",children:[a.jsx("circle",{cx:"64",cy:"64",r:"58",fill:"none",stroke:"currentColor",strokeWidth:"8",className:"text-muted/20"}),a.jsx("circle",{cx:"64",cy:"64",r:"58",fill:"none",strokeWidth:"8",strokeLinecap:"round",className:c,strokeDasharray:s,strokeDashoffset:i,style:{transition:"stroke-dashoffset 1s ease-in-out"}})]}),a.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center",children:[a.jsx("span",{className:`text-4xl font-serif font-bold ${o}`,children:t}),a.jsxs("span",{className:"text-sm text-muted-foreground",children:[e,"/100"]})]})]})}function kN({type:e}){switch(e){case"camera":return a.jsx(Vc,{className:"w-4 h-4"});case"lock":return a.jsx(En,{className:"w-4 h-4"});case"thermostat":return a.jsx(Lf,{className:"w-4 h-4"});case"light":case"dimmer":case"multicolor_light":return a.jsx(Ha,{className:"w-4 h-4"});case"door_sensor":return a.jsx(wO,{className:"w-4 h-4"});case"motion_sensor":return a.jsx(al,{className:"w-4 h-4"});case"alarm":return a.jsx(R8,{className:"w-4 h-4"});default:return a.jsx(A8,{className:"w-4 h-4"})}}function Ng(e){const t=Date.now(),s=new Date(e).getTime(),i=t-s,o=Math.floor(i/6e4);if(o<60)return`${o}m ago`;const c=Math.floor(o/60);return c<24?`${c}h ago`:`${Math.floor(c/24)}d ago`}function mY(){const{toast:e}=$x(),t=Fs(),[s,i]=p.useState(!1),{data:o,isLoading:c}=Gt({queryKey:["/api/security/overview"],refetchInterval:3e4}),{data:u}=Gt({queryKey:["/api/security/devices"]}),{data:f}=Gt({queryKey:["/api/security/vulnerabilities"]}),{data:h}=Gt({queryKey:["/api/security/privacy"]}),{data:m}=Gt({queryKey:["/api/security/events"]}),x=dn({mutationFn:async()=>{i(!0);const w=await fetch("/api/security/scan",{method:"POST"});if(!w.ok)throw new Error("Scan failed");return w.json()},onSuccess:w=>{i(!1),t.invalidateQueries({queryKey:["/api/security"]}),t.invalidateQueries({queryKey:["/api/security/overview"]}),t.invalidateQueries({queryKey:["/api/security/devices"]}),t.invalidateQueries({queryKey:["/api/security/events"]}),e({title:"Scan Complete",description:`${w.devicesScanned} devices scanned. Security score: ${w.overallScore}/100`})},onError:()=>{i(!1),e({title:"Scan Failed",description:"Could not complete security scan.",variant:"destructive"})}}),y=dn({mutationFn:async w=>{const C=await fetch(`/api/security/events/${w}/acknowledge`,{method:"POST"});if(!C.ok)throw new Error("Failed");return C.json()},onSuccess:()=>{t.invalidateQueries({queryKey:["/api/security/events"]})}}),b=dn({mutationFn:async w=>{const C=await fetch(`/api/security/vulnerabilities/${w}/resolve`,{method:"POST"});if(!C.ok)throw new Error("Failed");return C.json()},onSuccess:()=>{t.invalidateQueries({queryKey:["/api/security/vulnerabilities"]}),t.invalidateQueries({queryKey:["/api/security/overview"]}),e({title:"Vulnerability Resolved",description:"Issue marked as resolved."})}});return c?a.jsx(Ii,{children:a.jsx("div",{className:"flex items-center justify-center min-h-[60vh]",children:a.jsx(Vp,{className:"w-8 h-8 animate-spin text-primary"})})}):a.jsx(Ii,{children:a.jsxs("div",{className:"max-w-7xl mx-auto px-4 py-6 space-y-6",children:[a.jsxs("div",{className:"flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4",children:[a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx(sn,{href:"/smart-home",children:a.jsx(Xe,{variant:"ghost",size:"icon","data-testid":"button-back-smart-home",children:a.jsx(qx,{className:"w-5 h-5"})})}),a.jsxs("div",{children:[a.jsx("h1",{className:"text-xl sm:text-2xl font-serif","data-testid":"text-page-title",children:"IoT Security & Risk Analysis"}),a.jsx("p",{className:"text-sm text-muted-foreground",children:"Device authentication, privacy controls, and vulnerability management"})]})]}),a.jsxs(Xe,{onClick:()=>
81x.mutate(),disabled:s,className:"text-xs tracking-wider uppercase","data-testid":"button-run-scan",children:[s?a.jsx(Vp,{className:"w-4 h-4 mr-2 animate-spin"}):a.jsx(C8,{className:"w-4 h-4 mr-2"}),s?"Scanning...":"Run Security Scan"]})]}),a.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-4",children:[a.jsx(Se,{className:"md:row-span-2",children:a.jsxs(Te,{className:"p-6 flex flex-col items-center justify-center h-full",children:[a.jsx("p",{className:"text-xs tracking-widest uppercase text-muted-foreground mb-4",children:"Security Posture"}),a.jsx(hY,{score:o?.overallScore||0,grade:o?.grade||"?"}),a.jsxs("p",{className:"text-xs text-muted-foreground mt-4",children:["Last scan: ",o?.lastScanAt?Ng(o.lastScanAt):"Never"]})]})}),a.jsx(Se,{children:a.jsxs(Te,{className:"p-4",children:[a.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[a.jsx(DO,{className:"w-4 h-4 text-primary"}),a.jsx("p",{className:"text-xs tracking-widest uppercase text-muted-foreground",children:"Authenticated"})]}),a.jsxs("p",{className:"text-2xl font-serif font-bold","data-testid":"text-authenticated-count",children:[o?.authenticatedDevices||0,a.jsxs("span",{className:"text-sm text-muted-foreground font-normal",children:["/",o?.totalDevices||0]})]}),a.jsx("p",{className:"text-xs text-muted-foreground",children:"devices verified"})]})}),a.jsx(Se,{children:a.jsxs(Te,{className:"p-4",children:[a.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[a.jsx(En,{className:"w-4 h-4 text-primary"}),a.jsx("p",{className:"text-xs tracking-widest uppercase text-muted-foreground",children:"Encrypted"})]}),a.jsxs("p",{className:"text-2xl font-serif font-bold","data-testid":"text-encrypted-count",children:[o?.encryptedDevices||0,a.jsxs("span",{className:"text-sm text-muted-foreground font-normal",children:["/",o?.totalDevices||0]})]}),a.jsx("p",{className:"text-xs text-muted-foreground",children:"secure channels"})]})}),a.jsx(Se,{children:a.jsxs(Te,{className:"p-4",children:[a.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[a.jsx(Vp,{className:"w-4 h-4 text-primary"}),a.jsx("p",{className:"text-xs tracking-widest uppercase text-muted-foreground",children:"Firmware"})]}),a.jsxs("p",{className:"text-2xl font-serif font-bold","data-testid":"text-firmware-count",children:[o?.upToDateFirmware||0,a.jsxs("span",{className:"text-sm text-muted-foreground font-normal",children:["/",o?.totalDevices||0]})]}),a.jsx("p",{className:"text-xs text-muted-foreground",children:"up to date"})]})}),a.jsx(Se,{children:a.jsxs(Te,{className:"p-4",children:[a.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[a.jsx(Qa,{className:"w-4 h-4 text-red-500"}),a.jsx("p",{className:"text-xs tracking-widest uppercase text-muted-foreground",children:"Vulnerabilities"})]}),a.jsxs("div",{className:"flex items-center gap-3",children:[(o?.criticalVulnerabilities||0)>0&&a.jsxs("span",{className:"text-sm",children:[a.jsx("span",{className:"font-bold text-red-600",children:o?.criticalVulnerabilities})," critical"]}),(o?.highVulnerabilities||0)>0&&a.jsxs("span",{className:"text-sm",children:[a.jsx("span",{className:"font-bold text-orange-500",children:o?.highVulnerabilities})," high"]}),(o?.mediumVulnerabilities||0)>0&&a.jsxs("span",{className:"text-sm",children:[a.jsx("span",{className:"font-bold text-amber-500",children:o?.mediumVulnerabilities})," medium"]})]})]})}),a.jsx(Se,{children:a.jsxs(Te,{className:"p-4",children:[a.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[a.jsx(wc,{className:"w-4 h-4 text-primary"}),a.jsx("p",{className:"text-xs tracking-widest uppercase text-muted-foreground",children:"Events"})]}),a.jsx("p",{className:"text-2xl font-serif font-bold","data-testid":"text-events-count",children:o?.recentEvents||0}),a.jsx("p",{className:"text-xs text-muted-foreground",children:"security events logged"})]})}),a.jsx(Se,{children:a.jsxs(Te,{className:"p-4",children:[a.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[a.jsx(IO,{className:"w-4 h-4 text-primary"}),a.jsx("p",{className:"text-xs tracking-widest uppercase text-muted-foreground",children:"Network"})]}),a.jsx("div",{className:"flex flex-wrap gap-1.5",children:o?.riskBreakdown?.filter(w=>w.count>0).map(w=>a.jsxs(Le,{variant:"outline",className:"text-xs",children:[w.count," ",w.level]},w.level))})]})})]}),a.jsxs(fY,{defaultValue:"devices",className:"space-y-4",children:[a.jsxs(Q3,{className:"grid w-full grid-cols-2 sm:grid-cols-4 max-w-lg",children:[a.jsx(Cc,{value:"devices","data-testid":"tab-devices",children:"Devices"}),a.jsx(Cc,{value:"vulnerabilities","data-testid":"tab-vulnerabilities",children:"Vulnerabilities"}),a.jsx(Cc,{value:"privacy","data-testid":"tab-privacy",children:"Privacy"}),a.jsx(Cc,{value:"events","data-testid":"tab-events",children:"Events"})]}),a.jsx(kc,{value:"devices",className:"space-y-3",children:a.jsx("div",{className:"grid gap-3",children:u?.map(w=>a.jsx(Se,{className:"overflow-hidden","data-testid":`card-device-security-${w.device.id}`,children:a.jsx(Te,{className:"p-4",children:a.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center gap-3",children:[a.jsxs("div",{className:"flex items-center gap-3 flex-1 min-w-0",children:[a.jsx("div",{className:`p-2 rounded-lg ${w.profile.riskLevel==="low"?"bg-emerald-50 text-emerald-600":w.profile.riskLevel==="medium"?"bg-amber-50 text-amber-600":w.profile.riskLevel==="high"?"bg-orange-50 text-orange-600":"bg-red-50 text-red-600"}`,children:a.jsx(kN,{type:w.device.type})}),a.jsxs("div",{className:"min-w-0",children:[a.jsx("p",{className:"font-medium text-sm truncate",children:w.device.name}),a.jsxs("p",{className:"text-xs text-muted-foreground",children:[w.device.controllerType," · ",w.profile.networkSegment.replace("_"," ")]})]})]}),a.jsxs("div",{className:"flex flex-wrap items-center gap-2 text-xs",children:[a.jsxs("div",{className:"flex items-center gap-1",title:"Authentication",children:[w.profile.authStatus==="authenticated"?a.jsx(Go,{className:"w-3.5 h-3.5 text-emerald-500"}):a.jsx(WS,{className:"w-3.5 h-3.5 text-red-500"}),a.jsx("span",{className:"text-muted-foreground",children:w.profile.authMethod})]}),a.jsxs("div",{className:"flex items-center gap-1",title:"Encryption",children:[w.profile.encryptionEnabled?a.jsx(En,{className:"w-3.5 h-3.5 text-emerald-500"}):a.jsx(ff,{className:"w-3.5 h-3.5 text-red-500"}),a.jsx("span",{className:"text-muted-foreground",children:w.profile.encryptionProtocol||"none"})]}),a.jsxs("div",{className:"flex items-center gap-1",title:"Firmware",children:[w.profile.firmwareUpToDate?a.jsx(He,{className:"w-3.5 h-3.5 text-emerald-500"}):a.jsx(Qa,{className:"w-3.5 h-3.5 text-amber-500"}),a.jsxs("span",{className:"text-muted-foreground",children:["v",w.profile.firmwareVersion]})]}),a.jsxs("div",{className:"flex items-center gap-1 ml-2",children:[a.jsx("span",{className:`inline-block w-2 h-2 rounded-full ${w.profile.riskLevel==="low"?"bg-emerald-500":w.profile.riskLevel==="medium"?"bg-amber-500":w.profile.riskLevel==="high"?"bg-orange-500":"bg-red-500"}`}),a.jsxs("span",{className:"font-medium",children:[w.profile.riskScore,"/100"]})]})]})]})})},w.device.id))})}),a.jsxs(kc,{value:"vulnerabilities",className:"space-y-3",children:[f?.length===0&&a.jsx(Se,{children:a.jsxs(Te,{className:"p-8 text-center",children:[a.jsx(Go,{className:"w-10 h-10 text-emerald-500 mx-auto mb-3"}),a.jsx("p",{className:"font-medium",children:"No active vulnerabilities"}),a.jsx("p",{className:"text-sm text-muted-foreground",children:"All detected issues have been resolved."})]})}),f?.map(w=>a.jsx(Se,{className:`border-l-4 ${w.severity==="critical"?"border-l-red-500":w.severity==="high"?"border-l-orange-500":w.severity==="medium"?"border-l-amber-500":w.severity==="low"?"border-l-blue-500":"border-l-slate-300"}`,"data-testid":`card-vulnerability-${w.id}`,children:a.jsxs(Te,{className:"p-4",children:[a.jsxs("div",{className:"flex items-start justify-between gap-3 mb-2",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(CN,{severity:w.severity}),a.jsx("h4",{className:"font-medium text-sm",children:w.title})]}),a.jsxs("div",{className:"flex items-center gap-2 flex-shrink-0",children:[a.jsx(jg,{severity:w.severity}),w.cveId&&a.jsx(Le,{variant:"outline",className:"text-xs font-mono",children:w.
81cveId})]})]}),a.jsx("p",{className:"text-sm text-muted-foreground mb-3",children:w.description}),w.remediation&&a.jsxs("div",{className:"bg-muted/30 rounded-lg p-3 mb-3",children:[a.jsx("p",{className:"text-xs font-medium mb-1",children:"Recommended Action"}),a.jsx("p",{className:"text-xs text-muted-foreground",children:w.remediation})]}),a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsxs("span",{className:"text-xs text-muted-foreground",children:["Detected ",w.detectedAt?Ng(w.detectedAt):"recently"," · Category: ",w.category]}),a.jsxs(Xe,{variant:"outline",size:"sm",className:"text-xs",onClick:()=>b.mutate(w.id),"data-testid":`button-resolve-${w.id}`,children:[a.jsx(He,{className:"w-3 h-3 mr-1"}),"Mark Resolved"]})]})]})},w.id))]}),a.jsx(kc,{value:"privacy",className:"space-y-4",children:a.jsxs(Se,{children:[a.jsx(Hc,{className:"pb-2",children:a.jsxs(vf,{className:"text-base flex items-center gap-2",children:[a.jsx(vO,{className:"w-4 h-4 text-primary"}),"Data Collection Audit"]})}),a.jsx(Te,{children:a.jsx("div",{className:"overflow-x-auto",children:a.jsxs("table",{className:"w-full text-sm",children:[a.jsx("thead",{children:a.jsxs("tr",{className:"border-b",children:[a.jsx("th",{className:"text-left p-2 font-medium",children:"Device"}),a.jsx("th",{className:"text-left p-2 font-medium",children:"Data Collected"}),a.jsx("th",{className:"text-left p-2 font-medium",children:"Retention"}),a.jsx("th",{className:"text-left p-2 font-medium",children:"Encrypted"}),a.jsx("th",{className:"text-left p-2 font-medium",children:"Segment"}),a.jsx("th",{className:"text-left p-2 font-medium",children:"Risk"})]})}),a.jsx("tbody",{children:h?.map(w=>a.jsxs("tr",{className:"border-b last:border-0 hover:bg-muted/20","data-testid":`row-privacy-${w.deviceId}`,children:[a.jsx("td",{className:"p-2",children:a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(kN,{type:w.deviceType}),a.jsxs("div",{children:[a.jsx("p",{className:"font-medium text-xs",children:w.deviceName}),a.jsx("p",{className:"text-xs text-muted-foreground",children:w.roomName||"Unassigned"})]})]})}),a.jsx("td",{className:"p-2",children:a.jsxs("div",{className:"flex flex-wrap gap-1",children:[w.dataTypes.slice(0,3).map(C=>a.jsx(Le,{variant:"outline",className:"text-[10px] py-0",children:C.replace(/_/g," ")},C)),w.dataTypes.length>3&&a.jsxs(Le,{variant:"outline",className:"text-[10px] py-0",children:["+",w.dataTypes.length-3]})]})}),a.jsxs("td",{className:"p-2 text-xs",children:[w.retentionDays," days"]}),a.jsx("td",{className:"p-2",children:w.encrypted?a.jsxs("div",{className:"flex items-center gap-1 text-emerald-600",children:[a.jsx(En,{className:"w-3 h-3"}),a.jsx("span",{className:"text-xs",children:w.encryptionProtocol})]}):a.jsxs("div",{className:"flex items-center gap-1 text-red-500",children:[a.jsx(ff,{className:"w-3 h-3"}),a.jsx("span",{className:"text-xs",children:"None"})]})}),a.jsx("td",{className:"p-2 text-xs text-muted-foreground",children:w.networkSegment.replace(/_/g," ")}),a.jsx("td",{className:"p-2",children:a.jsx(jg,{severity:w.riskLevel})})]},w.deviceId))})]})})})]})}),a.jsx(kc,{value:"events",className:"space-y-3",children:m?.map(w=>a.jsx(Se,{className:`${w.isAcknowledged?"opacity-60":""}`,"data-testid":`card-event-${w.id}`,children:a.jsx(Te,{className:"p-4",children:a.jsxs("div",{className:"flex items-start justify-between gap-3",children:[a.jsxs("div",{className:"flex items-start gap-3 flex-1",children:[a.jsx("div",{className:`p-1.5 rounded-md mt-0.5 ${w.severity==="critical"?"bg-red-100":w.severity==="high"?"bg-orange-100":w.severity==="medium"?"bg-amber-100":w.severity==="low"?"bg-blue-100":"bg-slate-100"}`,children:a.jsx(CN,{severity:w.severity})}),a.jsxs("div",{className:"min-w-0",children:[a.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[a.jsx("h4",{className:"font-medium text-sm",children:w.title}),a.jsx(jg,{severity:w.severity})]}),a.jsx("p",{className:"text-xs text-muted-foreground mb-2",children:w.description}),a.jsxs("div",{className:"flex flex-wrap items-center gap-3 text-xs text-muted-foreground",children:[a.jsx("span",{children:Ng(w.createdAt)}),a.jsx("span",{className:"capitalize",children:w.eventType.replace(/_/g," ")}),w.sourceIp&&a.jsxs("span",{children:["Source: ",w.sourceIp]})]})]})]}),!w.isAcknowledged&&a.jsx(Xe,{variant:"ghost",size:"sm",className:"text-xs flex-shrink-0",onClick:()=>y.mutate(w.id),"data-testid":`button-ack-${w.id}`,children:"Acknowledge"})]})})},w.id))})]})]})})}const Mx="pitchdeck-theme";
81function pY(){if(typeof window>"u")return"dark";try{return window.localStorage.getItem(Mx)==="light"?"light":"dark"}catch{return"dark"}}function X3(){const[e,t]=p.useState(()=>pY());return p.useEffect(()=>{try{window.localStorage.setItem(Mx,e)}catch{}},[e]),p.useEffect(()=>{const i=o=>{o.key===Mx&&(o.newValue==="light"||o.newValue==="dark")&&t(o.newValue)};return window.addEventListener("storage",i),()=>window.removeEventListener("storage",i)},[]),{theme:e,setTheme:t,toggle:()=>t(i=>i==="light"?"dark":"light"),isLight:e==="light"}}function gY(){const[e,t]=p.useState(""),[s,i]=p.useState(""),[o,c]=p.useState(!1),[u,f]=p.useState(!1),[h,m]=p.useState(!0),[,x]=ns(),{isLight:y,toggle:b}=X3();p.useEffect(()=>{fetch("/api/pitchdeck/check",{credentials:"include"}).then(P=>P.json()).then(P=>{P.authenticated&&x("/pitchdeck/view"),m(!1)}).catch(()=>m(!1))},[]);const w=async P=>{P.preventDefault(),i(""),c(!0);const O=e.trim();try{const _=await fetch("/api/pitchdeck/verify",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({password:O}),credentials:"include"});if(_.ok)x("/pitchdeck/view");else{const G=await _.json();i(G.message||"Incorrect password"),c(!1)}}catch{i("Something went wrong"),c(!1)}};if(h)return a.jsx("div",{className:`min-h-screen flex items-center justify-center ${y?"bg-[#f7f1e6]":"bg-[#0a0a0a]"}`,children:a.jsx("div",{className:`w-8 h-8 border-2 rounded-full animate-spin ${y?"border-black/15 border-t-black/60":"border-white/20 border-t-white/80"}`})});const C=y?"bg-[#f7f1e6]":"bg-[#0a0a0a]",j=y?"bg-gradient-to-br from-[#f7f1e6] via-[#f0e8d6] to-[#f7f1e6]":"bg-gradient-to-br from-[#0a0a0a] via-[#111318] to-[#0a0a0a]",S=y?"text-[#1a1612]":"text-white",T=y?"text-black/30":"text-white/30",M=y?"hover:text-black/60":"hover:text-white/60",k=y?"bg-black/[0.03] border-black/15 text-[#1a1612] placeholder:text-black/35":"bg-white/[0.04] border-white/10 text-white placeholder:text-white/25",R=y?"text-black/35":"text-white/20",D=y?"repeating-linear-gradient(0deg, transparent, transparent 50px, rgba(0,0,0,0.04) 50px, rgba(0,0,0,0.04) 51px)":"repeating-linear-gradient(0deg, transparent, transparent 50px, rgba(255,255,255,0.03) 50px, rgba(255,255,255,0.03) 51px)";return a.jsxs("div",{className:`min-h-screen h-screen relative overflow-hidden fixed inset-0 ${C}`,children:[a.jsxs("div",{className:"absolute inset-0",children:[a.jsx("div",{className:`absolute inset-0 ${j}`}),a.jsx("div",{className:"absolute top-0 left-1/2 -translate-x-1/2 w-[800px] h-[800px] bg-gradient-radial from-amber-900/8 via-transparent to-transparent rounded-full blur-3xl"}),a.jsx("div",{className:"absolute bottom-0 right-0 w-[600px] h-[600px] bg-gradient-radial from-amber-800/5 via-transparent to-transparent rounded-full blur-3xl"})]}),a.jsx("div",{className:"absolute inset-0 opacity-[0.6]",style:{backgroundImage:D}}),a.jsx("button",{type:"button",onClick:b,"aria-label":y?"Switch to dark mode":"Switch to light mode",title:y?"Switch to dark mode":"Switch to light mode","data-testid":"button-pitchdeck-theme-toggle",className:`absolute top-5 right-5 z-20 w-10 h-10 rounded-lg border flex items-center justify-center transition-colors backdrop-blur-md ${y?"border-black/15 bg-white/60 text-amber-700 hover:bg-white/80":"border-white/10 bg-white/[0.04] text-amber-400/70 hover:bg-white/[0.08]"}`,children:y?a.jsx($c,{className:"w-4 h-4"}):a.jsx(il,{className:"w-4 h-4"})}),a.jsx("div",{className:"relative z-10 min-h-screen flex flex-col items-center justify-center px-6",children:a.jsxs(le.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:1,ease:[.25,.46,.45,.94]},className:"w-full max-w-sm flex flex-col items-center",children:[a.jsx(le.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{duration:.8,delay:.2},className:"mb-12",children:a.jsx("img",{src:"/favicon.png",alt:"Mission House",className:`h-24 md:h-28 ${y?"opacity-95":"opacity-90"}`,"data-testid":"img-pitchdeck-logo"})}),a.jsxs(le.div,{initial:{opacity:0}
81,animate:{opacity:1},transition:{duration:.6,delay:.4},className:"text-center mb-10",children:[a.jsx("p",{className:`${y?"text-amber-700/80":"text-amber-500/60"} text-[10px] tracking-[0.4em] uppercase mb-3 font-medium`,children:"Confidential"}),a.jsx("h1",{className:`${S} text-2xl md:text-3xl font-serif font-light tracking-wide mb-2`,"data-testid":"text-pitchdeck-title",children:"Investor Presentation"}),a.jsx("div",{className:`w-12 h-px ${y?"bg-gradient-to-r from-transparent via-amber-700/50 to-transparent":"bg-gradient-to-r from-transparent via-amber-500/40 to-transparent"} mx-auto mt-4`})]}),a.jsxs(le.form,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:.6,delay:.6},onSubmit:w,className:"w-full space-y-5",children:[a.jsxs("div",{className:"relative group",children:[a.jsx("div",{className:`absolute left-4 top-1/2 -translate-y-1/2 ${T} group-focus-within:text-amber-500/70 transition-colors`,children:a.jsx(En,{className:"w-4 h-4"})}),a.jsx("input",{type:u?"text":"password",placeholder:"Enter access code",value:e,onChange:P=>t(P.target.value),onPaste:P=>setTimeout(()=>t(P.target.value.trim()),0),className:`w-full ${k} border h-13 pl-11 pr-11 rounded-lg focus:outline-none focus:ring-1 focus:ring-amber-500/30 focus:border-amber-500/20 transition-all text-sm tracking-wide`,"data-testid":"input-pitchdeck-password"}),a.jsx("button",{type:"button",onClick:()=>f(!u),className:`absolute right-4 top-1/2 -translate-y-1/2 ${T} ${M} transition-colors`,"data-testid":"button-pitchdeck-toggle-password",children:u?a.jsx(Gx,{className:"w-4 h-4"}):a.jsx(al,{className:"w-4 h-4"})})]}),a.jsx(gn,{children:s&&a.jsx(le.p,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},className:`${y?"text-red-600/80":"text-red-400/80"} text-xs text-center tracking-wide`,"data-testid":"text-pitchdeck-error",children:s})}),a.jsx(le.button,{type:"submit",disabled:o||!e,whileHover:{scale:1.01},whileTap:{scale:.99},className:`w-full ${y?"bg-gradient-to-r from-amber-700/15 to-amber-600/15 hover:from-amber-700/25 hover:to-amber-600/25 text-amber-900 border-amber-700/30":"bg-gradient-to-r from-amber-600/20 to-amber-500/20 hover:from-amber-600/30 hover:to-amber-500/30 text-amber-100/90 border-amber-500/20"} border h-12 font-medium rounded-lg transition-all disabled:opacity-30 disabled:cursor-not-allowed text-sm tracking-widest uppercase flex items-center justify-center gap-2`,"data-testid":"button-pitchdeck-submit",children:o?a.jsx(le.div,{animate:{rotate:360},transition:{duration:1,repeat:1/0,ease:"linear"},className:"w-4 h-4 border-2 border-amber-500/30 border-t-amber-400 rounded-full"}):a.jsxs(a.Fragment,{children:["Access Deck",a.jsx(Vn,{className:"w-3.5 h-3.5"})]})})]}),a.jsx(le.p,{initial:{opacity:0}
81,animate:{opacity:1},transition:{duration:.6,delay:1},className:`${R} text-[10px] mt-12 tracking-wider uppercase`,"data-testid":"text-pitchdeck-footer",children:"For authorized recipients only"})]})})]})}const Z3="/assets/DB641327-D196-4ADC-BDE3-8683B8B805C4_1776636762161-CmRkOrbW.jpeg",xY="/assets/B1A28C08-24EC-4E09-B902-18D24BD22502_1776636762161-B3AdndPT.jpeg",J3="/assets/DD7D1DC8-4268-48DD-B793-E558FCEC85B3_1776636762163-CNxwvm6p.jpeg",Ax="/assets/84D5E79F-7F4C-4653-8E42-ED6D621286ED_1776636762158-BB8yfN6a.jpeg",eE="/assets/AAFB4ABE-2AD1-4048-8F03-704A115E5765_1776636762162-DXfyKkAs.jpeg",yY="/assets/79B8511F-572E-44F3-89D5-06CAF40694A4_1776636762163-w1q6tPM3.jpeg",vY="/assets/homepad-rooms-CrdIuB--.jpg",yy="/assets/security-center-BoDZ7m6n.jpg",tE="/assets/ai-concierge-CuGjc4Dw.jpg",nE="/assets/dashboard-BuqxoYTV.jpg",bY="/assets/energy-monitor-BVLAVYgr.jpg",wY="/assets/demo-alert-BevLjbtU.jpg",vy="/assets/homepad-hero-Buh8hCFj.png",jY=` 82 @import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Outfit:wght@200;300;400;500;600&family=DM+Mono:wght@300;400&display=swap'); 83 84 :root { 85 --navy: #07090f; 86 --gold: #c9a84c; 87 --gold-light: #e2c27d; 88 --gold-dim: rgba(201,168,76,0.15); 89 --gold-border: rgba(201,168,76,0.3); 90 --white: #f5f0e8; 91 --gray: #8a97aa; 92 --gray-light: #b8c4d0; 93 --glass: rgba(255,255,255,0.03); 94 --glass-border: rgba(255,255,255,0.07); 95 --overlay-top: rgba(7,9,15,0.74); 96 --overlay-bottom: rgba(7,9,15,0.93); 97 --caption-fade: rgba(7,9,15,0.85); 98 --pill-bg: rgba(7,9,15,0.7); 99 --backdrop-bg: rgba(7,11,20,0.92); 100 --dialog-bg: rgba(15,18,28,0.96); 101 --matrix-dim: rgba(255,255,255,0.17); 102 --upcoming-title: rgba(245,240,232,0.55); 103 --node-bg: #07090f; 104 --node-check: #07090f; 105 } 106 107 .pitch-light { 108 --navy: #f7f1e6; 109 --gold: #9c7c2a; 110 --gold-light: #b8932f; 111 --gold-dim: rgba(156,124,42,0.12); 112 --gold-border: rgba(156,124,42,0.42); 113 --white: #1a1612; 114 --gray: #6b665d; 115 --gray-light: #3b372f; 116 --glass: rgba(0,0,0,0.025); 117 --glass-border: rgba(0,0,0,0.1); 118 --overlay-top: rgba(247,241,230,0.78); 119 --overlay-bottom: rgba(247,241,230,0.96); 120 --caption-fade: rgba(247,241,230,0.9); 121 --pill-bg: rgba(255,251,242,0.85); 122 --backdrop-bg: rgba(247,241,230,0.92); 123 --dialog-bg: rgba(255,252,244,0.97); 124 --matrix-dim: rgba(0,0,0,0.15); 125 --upcoming-title: rgba(26,22,18,0.5); 126 --node-bg: #f7f1e6; 127 --node-check: #f7f1e6; 128 } 129 130 .pitch-root *, .pitch-root *::before, .pitch-root *::after { margin: 0; padding: 0; box-sizing: border-box; } 131 .pitch-root { 132 background: var(--navy); 133 font-family: 'Outfit', sans-serif; 134 color: var(--white); 135 overflow-x: hidden; 136 min-height: 100vh; 137 } 138 139 #pitch-progress-bar { 140 position: fixed; top: 0; left: 0; 141 height: 2px; width: 0%; 142 background: linear-gradient(90deg, var(--gold), var(--gold-light)); 143 z-index: 200; 144 box-shadow: 0 0 8px rgba(201,168,76,0.5); 145 transition: width 0.08s linear; 146 } 147 148 #pitch-logo-mark { 149 position: fixed; top: 28px; left: 40px; 150 z-index: 150; 151 display: flex; align-items: center; gap: 10px; 152 opacity: 0; transition: opacity 0.4s ease; 153 } 154 #pitch-logo-mark.visible { opacity: 1; } 155 #pitch-logo-mark .mark { 156 width: 28px; height: 28px; 157 border: 1.5px solid var(--gold); border-radius: 6px; 158 display: flex; align-items: center; justify-content: center; 159 font-family: 'Cormorant Garamond', serif; font-size: 14px; 160 color: var(--gold); background: rgba(201,168,76,0.08); 161 } 162 #pitch-logo-mark .wordmark { 163 font-size: 11px; font-weight: 300; letter-spacing: 0.25em; 164 color: rgba(201,168,76,0.7); text-transform: uppercase; 165 } 166 167 #pitch-nav { 168 position: fixed; right: 28px; top: 50%; transform: translateY(-50%); 169 display: flex; flex-direction: column; gap: 10px; z-index: 150; 170 } 171 .nav-dot { 172 width: 5px; height: 5px; border-radius: 50%; 173 background: rgba(201,168,76,0.2); 174 border: 1px solid rgba(201,168,76,0.35); 175 cursor: pointer; transition: all 0.35s ease; 176 position: relative; 177 } 178 .nav-dot::after { 179 content: attr(data-label); 180 position: absolute; right: 14px; top: 50%; transform: translateY(-50%); 181 font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: 0.12em; 182 color: var(--gold); white-space: nowrap; opacity: 0; 183 transition: opacity 0.2s ease; pointer-events: none; 184 } 185 .nav-dot:hover::after { opacity: 0.7; } 186 .nav-dot.active { background: var(--gold); box-shadow: 0 0 8px var(--gold); transform: scale(1.6); } 187 .nav-dot:hover:not(.active) { background: rgba(201,168,76,0.5); } 188 189 .pitch-root .section { 190 position: relative; 191 min-height: 100vh; 192 display: flex; align-items: center; justify-content: center; 193 padding: 110px 80px; 194 overflow: hidden; 195 } 196 .pitch-root .section::before { 197 content: ''; 198 position: absolute; inset: 0; 199 background-image: 200 linear-gradient(rgba(201,168,76,0.03) 1px, transparent 1px), 201 linear-gradient(90deg, rgba(201,168,76,0.03) 1px, transparent 1px); 202 background-size: 60px 60px; 203 pointer-events: none; z-index: 0; 204 } 205 .pitch-root .section + .section::after { 206 content: ''; 207 position: absolute; top: 0; left: 8%; right: 8%; height: 1px; 208 background: linear-gradient(90deg, transparent, rgba(201,168,76,0.1), transparent); 209 } 210 .pitch-root .section-inner { 211 position: relative; z-index: 2; 212 width: 100%; max-width: 1100px; margin: 0 auto; 213 } 214 215 .pitch-root .orb { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; z-index: 1; } 216 .pitch-root .orb-gold { background: rgba(201,168,76,0.07); } 217 .pitch-root .orb-blue { background: rgba(30,80,180,0.06); } 218 219 .pitch-root .reveal { 220 opacity: 0; 221 transform: translateY(30px); 222 transition: opacity 0.75s cubic-bezier(0.22,1,0.36,1), 223 transform 0.75s cubic-bezier(0.22,1,0.36,1); 224 } 225 .pitch-root .reveal.from-left { transform: translateX(-30px) translateY(0); } 226 .pitch-root .reveal.from-right { transform: translateX(30px) translateY(0); } 227 228 .pitch-root .section.in-view .reveal:nth-child(1) { opacity:1; transform:none; transition-delay:0.05s; } 229 .pitch-root .section.in-view .reveal:nth-child(2) { opacity:1; transform:none; transition-delay:0.18s; } 230 .pitch-root .section.in-view .reveal:nth-child(3) { opacity:1; transform:none; transition-delay:0.30s; } 231 .pitch-root .section.in-view .reveal:nth-child(4) { opacity:1; transform:none; transition-delay:0.42s; } 232 .pitch-root .section.in-view .reveal:nth-child(5) { opacity:1; transform:none; transition-delay:0.54s; } 233 .pitch-root .section.in-view .reveal:nth-child(6) { opacity:1; transform:none; transition-delay:0.66s; } 234 235 .pitch-root .stagger-grid > * { 236 opacity: 0; 237 transform: translateY(24px); 238 transition: opacity 0.6s cubic-bezier(0.22,1,0.36,1), 239 transform 0.6s cubic-bezier(0.22,1,0.36,1); 240 } 241 .pitch-root .section.in-view .stagger-grid > *:nth-child(1) { opacity:1; transform:none; transition-delay:0.28s; } 242 .pitch-root .section.in-view .stagger-grid > *:nth-child(2) { opacity:1; transform:none; transition-delay:0.40s; } 243 .pitch-root .section.in-view .stagger-grid > *:nth-child(3) { opacity:1; transform:none; transition-delay:0.52s; } 244 .pitch-root .section.in-view .stagger-grid > *:nth-child(4) { opacity:1; transform:none; transition-delay:0.64s; } 245 .pitch-root .section.in-view .stagger-grid > *:nth-child(5) { opacity:1; transform:none; transition-delay:0.76s; } 246 .pitch-root .section.in-view .stagger-grid > *:nth-child(6) { opacity:1; transform:none; transition-delay:0.88s; } 247 248 .fund-bar-fill { width: 0 !important; transition: width 1.3s cubic-bezier(0.22,1,0.36,1) 0.5s !important; } 249 .pitch-root .section.in-view .fund-bar-fill { width: var(--w) !important; } 250 251 .pitch-root .display { 252 font-family: 'Cormorant Garamond', serif; 253 font-size: clamp(52px,7vw,88px); font-weight:300; line-height:1.04; letter-spacing:-0.01em; 254 } 255 .pitch-root .display em { font-style:italic; color:var(--gold); } 256 .pitch-root .headline { 257 font-family: 'Cormorant Garamond', serif; 258 font-size: clamp(32px,4vw,54px); font-weight:300; line-height:1.1; 259 } 260 .pitch-root .headline em { font-style:italic; color:var(--gold); } 261 .pitch-root .overline { 262 font-family:'DM Mono',monospace; font-size:10px; letter-spacing:0.3em; 263 text-transform:uppercase; color:var(--gold); display:block; margin-bottom:16px; 264 } 265 .pitch-root .tagline-text { 266 font-family:'Cormorant Garamond',serif; 267 font-size:clamp(18px,2.5vw,28px); font-weight:300; font-style:italic; 268 color:var(--gray-light); letter-spacing:0.02em; 269 } 270 271 .pitch-root .glass-card { 272 background:var(--glass); border:1px solid var(--glass-border); 273 border-radius:12px; padding:28px 32px; position:relative; overflow:hidden; 274 } 275 .pitch-root .glass-card::before { 276 content:''; position:absolute; top:0; left:0; right:0; height:1px; 277 background:linear-gradient(90deg,transparent,rgba(201,168,76,0.3),transparent); 278 } 279 .pitch-root .glass-card.gold-glow { 280 border-color:rgba(201,168,76,0.2); 281 box-shadow:0 0 40px rgba(201,168,76,0.05), inset 0 1px 0 rgba(201,168,76,0.07); 282 } 283 284 .pitch-root .grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:20px; } 285 .pitch-root .grid-3 { display:grid; grid-template-columns:1fr 1fr 1fr; gap:16px; } 286 287 .pitch-root .divider { width:100%; height:1px; background:linear-gradient(90deg,transparent,var(--gold-border),transparent); margin:24px 0; } 288 .pitch-root .divider-left { height:1px; max-width:64px; background:linear-gradient(90deg,var(--gold),transparent); margin:20px 0; } 289 290 .pitch-root .problem-item { display:flex; gap:20px; align-items:flex-start; } 291 .pitch-root .problem-num { 292 font-family:'Cormorant Garamond',serif; font-size:38px; font-weight:300; 293 color:var(--gold); opacity:0.22; line-height:1; flex-shrink:0; width:32px; 294 } 295 .pitch-root .problem-content h4 { 296 font-size:13px; font-weight:500; letter-spacing:0.12em; 297 text-transform:uppercase; color:var(--white); margin-bottom:6px; 298 } 299 .pitch-root .problem-content p { font-size:13px; font-weight:300; line-height:1.65; color:var(--gray); } 300 301 .pitch-root .icon-box { 302 width:44px; height:44px; border:1px solid var(--gold-border); border-radius:10px; 303 display:flex; align-items:center; justify-content:center; 304 font-size:20px; background:var(--gold-dim); margin-bottom:14px; 305 } 306 307 .pitch-root .feature-pill { 308 display:inline-flex; align-items:center; gap:7px; padding:7px 13px; 309 border:1px solid var(--gold-border); border-radius:100px; 310 font-size:11px; letter-spacing:0.08em; color:var(--gold-light); background:var(--gold-dim); 311 } 312 .pitch-root .feature-pill::before { content:'â'; font-size:5px; color:var(--gold); } 313 314 .pitch-root .device-chip { 315 display:inline-flex; align-items:center; gap:8px; padding:7px 14px; 316 border:1px solid var(--glass-border); border-radius:8px; 317 font-size:12px; font-weight:300; color:var(--gray-light); background:var(--glass); white-space:nowrap; 318 } 319 .pitch-root .dot-on { width:6px; height:6px; border-radius:50%; background:#4ade80; box-shadow:0 0 6px #4ade80; flex-shrink:0; } 320 .pitch-root .dot-off { width:6px; height:6px; border-radius:50%; background:var(--gray); opacity:0.35; flex-shrink:0; } 321 322 .pitch-root .proto-badge { 323 padding:6px 14px; border:1px solid var(--glass-border); border-radius:6px; 324 font-family:'DM Mono',monospace; font-size:10px; letter-spacing:0.08em; 325 color:var(--gray); background:var(--glass); 326 } 327 328 .pitch-root .pitch-table { width:100%; border-collapse:collapse; } 329 .pitch-root .pitch-table th { font-family:'DM Mono',monospace; font-size:9px; letter-spacing:0.2em; text-transform:uppercase; color:var(--gold); padding:10px 16px; text-align:left; border-bottom:1px solid var(--gold-border); font-weight:400; } 330 .pitch-root .pitch-table td { padding:12px 16px; font-size:13px; font-weight:300; color:var(--gray-light); border-bottom:1px solid var(--glass-border); } 331 .pitch-root .pitch-table td:first-child { color:var(--white); font-weight:400; } 332 .pitch-root .pitch-table tr:last-child td { border-bottom:none; } 333 334 .pitch-root .matrix-wrap { 335 position:relative; width:100%; height:320px; 336 border:1px solid var(--glass-border); border-radius:12px; background:var(--glass); overflow:hidden; 337 } 338 .pitch-root .matrix-axis-x { position:absolute; bottom:50%; left:0; right:0; height:1px; background:linear-gradient(90deg,transparent,rgba(201,168,76,0.22),transparent); } 339 .pitch-root .matrix-axis-y { position:absolute; left:50%; top:0; bottom:0; width:1px; background:linear-gradient(180deg,transparent,rgba(201,168,76,0.22),transparent); } 340 .pitch-root .matrix-label { position:absolute; font-family:'DM Mono',monospace; font-size:9px; letter-spacing:0.12em; text-transform:uppercase; color:var(--gray); } 341 .pitch-root .matrix-label.left { bottom:50%; left:10px; transform:translateY(50%); } 342 .pitch-root .matrix-label.right { bottom:50%; right:10px; transform:translateY(50%); } 343 .pitch-root .matrix-label.top { top:10px; left:50%; transform:translateX(-50%); } 344 .pitch-root .matrix-label.bottom { bottom:10px; left:50%; transform:translateX(-50%); } 345 .pitch-root .matrix-node { position:absolute; transform:translate(-50%,-50%); text-align:center; } 346 .pitch-root .matrix-node .dot { width:9px; height:9px; border-radius:50%; margin:0 auto 5px; } 347 .pitch-root .matrix-node .dot.gold { background:var(--gold); box-shadow:0 0 14px var(--gold); animation:pulse-dot 2.2s infinite; } 348 .pitch-root .matrix-node .dot.dim { background:var(--matrix-dim); } 349 .pitch-root .matrix-node span { font-size:10px; font-weight:300; color:var(--gray-light); display:block; white-space:nowrap; } 350 .pitch-root .matrix-node span.gold { color:var(--gold); font-weight:500; font-size:11px; } 351 352 .pitch-root .roadmap-row { display:flex; align-items:stretch; } 353 .pitch-root .roadmap-phase { flex:1; padding:22px 20px; border-right:1px solid var(--glass-border); border-top:2px solid var(--glass-border); } 354 .pitch-root .roadmap-phase:last-child { border-right:none; } 355 .pitch-root .roadmap-phase.done { border-top-color:var(--gold); } 356 .pitch-root .phase-tag { font-family:'DM Mono',monospace; font-size:9px; letter-spacing:0.2em; text-transform:uppercase; color:var(--gold); margin-bottom:10px; } 357 .pitch-root .phase-tag.future { color:var(--gray); } 358 .pitch-root .phase-name { font-size:14px; font-weight:500; color:var(--white); margin-bottom:10px; } 359 .pitch-root .phase-items { list-style:none; font-size:12px; font-weight:300; color:var(--gray); line-height:1.9; } 360 .pitch-root .phase-items li::before { content:'â '; color:var(--gold); opacity:0.5; } 361 362 /* ââ Milestones timeline âââââââââââââââââââââââââââââââââââ */ 363 .pitch-root .ms-track { 364 position:relative; 365 display:grid; 366 grid-template-columns:repeat(7, minmax(0,1fr)); 367 gap:8px; 368 padding:24px 8px 8px; 369 } 370 .pitch-root .ms-line { 371 position:absolute; 372 left:calc(100%/14); right:calc(100%/14); 373 top:calc(50% + 6px); 374 height:1px; background:var(--glass-border); 375 z-index:0; 376 } 377 .pitch-root .ms-line::after { 378 content:''; position:absolute; 379 left:0; top:-1px; 380 height:3px; width:0; 381 background:linear-gradient(90deg,var(--gold),var(--gold-light)); 382 box-shadow:0 0 10px rgba(201,168,76,0.5); 383 border-radius:2px; 384 transition:width 1.6s cubic-bezier(0.22,1,0.36,1) 0.6s; 385 } 386 .pitch-root .section.in-view .ms-line::after { width:var(--progress, 0%); } 387 388 .pitch-root .ms-card { 389 position:relative; z-index:1; 390 display:flex; flex-direction:column; align-items:center; 391 text-align:center; 392 padding:0 4px; 393 } 394 .pitch-root .ms-top { 395 min-height:104px; 396 display:flex; flex-direction:column; align-items:center; 397 justify-content:flex-end; 398 padding-bottom:18px; 399 } 400 .pitch-root .ms-bottom { 401 min-height:78px; 402 display:flex; flex-direction:column; align-items:center; 403 gap:8px; padding-top:18px; 404 } 405 .pitch-root .ms-num { 406 font-family:'DM Mono',monospace; 407 font-size:9px; letter-spacing:0.22em; 408 color:var(--gold); opacity:0.65; 409 margin-bottom:6px; 410 } 411 .pitch-root .ms-title { 412 font-family:'Cormoran
412t Garamond',serif; 413 font-size:15px; font-weight:400; 414 color:var(--white); line-height:1.2; 415 } 416 .pitch-root .ms-card.complete .ms-title, 417 .pitch-root .ms-card.current .ms-title { color:var(--white); } 418 .pitch-root .ms-card.upcoming .ms-title { color:var(--upcoming-title); } 419 .pitch-root .ms-caption { 420 font-size:10px; font-weight:300; 421 color:var(--gray); line-height:1.4; 422 margin-top:5px; 423 } 424 .pitch-root .ms-date { 425 font-family:'DM Mono',monospace; 426 font-size:10px; letter-spacing:0.1em; 427 color:var(--gray-light); 428 } 429 .pitch-root .ms-card.upcoming .ms-date { color:var(--gray); opacity:0.7; } 430 .pitch-root .ms-status { 431 display:inline-block; 432 padding:4px 10px; border-radius:100px; 433 font-family:'DM Mono',monospace; 434 font-size:9px; letter-spacing:0.14em; 435 text-transform:uppercase; 436 } 437 .pitch-root .ms-status.complete { 438 color:var(--gold); border:1px solid var(--gold-border); 439 background:var(--gold-dim); 440 } 441 .pitch-root .ms-status.current { 442 color:var(--gold-light); border:1px solid var(--gold); 443 background:rgba(201,168,76,0.2); 444 box-shadow:0 0 14px rgba(201,168,76,0.25); 445 } 446 .pitch-root .ms-status.upcoming { 447 color:var(--gray); border:1px solid var(--glass-border); 448 background:var(--glass); 449 } 450 451 .pitch-root .ms-node { 452 position:absolute; 453 top:calc(50%); left:50%; 454 transform:translate(-50%,-50%); 455 width:14px; height:14px; 456 border-radius:50%; 457 background:var(--node-bg); 458 border:1.5px solid var(--glass-border); 459 z-index:2; 460 } 461 .pitch-root .ms-node.complete { 462 background:var(--gold); border-color:var(--gold); 463 box-shadow:0 0 10px rgba(201,168,76,0.5); 464 } 465 .pitch-root .ms-node.complete::after { 466 content:''; position:absolute; 467 left:50%; top:48%; 468 width:5px; height:2px; 469 border-left:1.5px solid var(--node-check); 470 border-bottom:1.5px solid var(--node-check); 471 transform:translate(-50%,-50%) rotate(-45deg); 472 } 473 .pitch-root .ms-node.current { 474 background:var(--gold); border-color:var(--gold); 475 animation:pulse-dot 2.2s infinite; 476 } 477 .pitch-root .ms-node.upcoming { 478 background:var(--navy); 479 border-color:rgba(201,168,76,0.3); 480 } 481 482 .pitch-root .stat-num { font-family:'Cormorant Garamond',serif; font-size:clamp(36px,4vw,52px); font-weight:300; color:var(--gold); line-height:1; display:block; } 483 .pitch-root .stat-label { font-size:10px; font-weight:400; letter-spacing:0.12em; text-transform:uppercase; color:var(--gray); margin-top:6px; display:block; } 484 485 .pitch-root .margin-callout { text-align:center; padding:20px; border:1px solid rgba(201,168,76,0.2); border-radius:12px; background:rgba(201,168,76,0.04); } 486 .pitch-root .big-num { font-family:'Cormorant Garamond',serif; font-size:46px; font-weight:300; color:var(--gold); line-height:1; } 487 .pitch-root .big-label { font-size:10px; letter-spacing:0.15em; text-transform:uppercase; color:var(--gray); margin-top:6px; } 488 489 .pitch-root .fund-label { display:flex; justify-content:space-between; font-size:12px; font-weight:300; color:var(--gray-light); margin-bottom:6px; } 490 .pitch-root .fund-label span:last-child { font-family:'DM Mono',monospace; font-size:11px; color:var(--gold); } 491 .pitch-root .fund-bar { height:4px; border-radius:2px; background:var(--glass-border); overflow:hidden; margin-bottom:14px; } 492 .pitch-root .fund-bar-fill { height:100%; border-radius:2px; background:linear-gradient(90deg,var(--gold),var(--gold-light)); } 493 494 .pitch-root .seed-badge { 495 display:inline-block; padding:8px 20px; 496 border:1px solid var(--gold-border); border-radius:100px; 497 font-family:'DM Mono',monospace; font-size:10px; letter-spacing:0.2em; 498 color:var(--gold); background:var(--gold-dim); 499 } 500 501 #s1 { text-align:center; } 502 .pitch-root .hero-logo { 503 width:88px; height:88px; border:1.5px solid var(--gold-border); border-radius:22px; 504 display:flex; align-items:center; justify-content:center; 505 font-family:'Cormorant Garamond',serif; font-size:36px; font-weight:300; 506 color:var(--gold); background:var(--gold-dim); 507 margin:0 auto 20px; animation:pulse-ring 3s infinite; 508 } 509 @keyframes pulse-ring { 510 0% { box-shadow:0 0 0 0 rgba(201,168,76,0.3),0 0 50px rgba(201,168,76,0.08); } 511 70% { box-shadow:0 0 0 20px rgba(201,168,76,0),0 0 50px rgba(201,168,76,0.08); } 512 100% { box-shadow:0 0 0 0 rgba(201,168,76,0),0 0 50px rgba(201,168,76,0.08); } 513 } 514 @keyframes pulse-dot { 515 0% { box-shadow:0 0 0 0 rgba(201,168,76,0.45); } 516 70% { box-shadow:0 0 0 14px rgba(201,168,76,0); } 517 100% { box-shadow:0 0 0 0 rgba(201,168,76,0); } 518 } 519 520 .pitch-root .scroll-hint { 521 position:absolute; bottom:36px; left:50%; transform:translateX(-50%); 522 display:flex; flex-direction:column; align-items:center; gap:12px; 523 opacity:0.45; animation:scroll-bounce 2.2s ease-in-out infinite; 524 } 525 .pitch-root .scroll-hint span { font-family:'DM Mono',monospace; font-size:10px; letter-spacing:0.25em; text-transform:uppercase; color:var(--gold); } 526 .pitch-root .scroll-hint svg { width:16px; height:20px; } 527 @keyframes scroll-bounce { 528 0%,100% { transform:translateX(-50%) translateY(0); } 529 50% { transform:translateX(-50%) translateY(10px); } 530 } 531 532 .pitch-root .closing-quote { 533 font-family:'Cormorant Garamond',serif; 534 font-size:clamp(22px,3vw,38px); font-weight:300; font-style:italic; 535 line-height:1.4; color:var(--white); text-align:center; max-width:800px; margin:0 auto; 536 } 537 .pitch-root .closing-quote em { color:var(--gold); } 538 539 .pitch-exit-btn { 540 position: fixed; top: 20px; right: 60px; z-index: 300; 541 display: flex; align-items: center; gap: 6px; 542 padding: 7px 16px; 543 font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; 544 color: rgba(201,168,76,0.6); border: 1px solid rgba(201,168,76,0.2); border-radius: 6px; 545 background: var(--pill-bg); backdrop-filter: blur(12px); 546 cursor: pointer; transition: all 0.2s ease; 547 } 548 .pitch-light .pitch-exit-btn, 549 .pitch-light .pitch-toc-pill, 550 .pitch-light .pitch-theme-toggle { color: rgba(156,124,42,0.85); border-color: rgba(156,124,42,0.35); } 551 .pitch-light .pitch-exit-btn:hover, 552 .pitch-light .pitch-toc-pill:hover, 553 .pitch-light .pitch-theme-toggle:hover { color: var(--gold); border-color: rgba(156,124,42,0.55); background: rgba(156,124,42,0.07); } 554 .pitch-exit-btn:hover { color: var(--gold); border-color: rgba(201,168,76,0.4); background: rgba(201,168,76,0.05); } 555 556 .pitch-theme-toggle { 557 position: fixed; top: 20px; right: 235px; z-index: 300; 558 display: flex; align-items: center; justify-content: center; 559 width: 34px; height: 30px; 560 color: rgba(201,168,76,0.6); border: 1px solid rgba(201,168,76,0.2); border-radius: 6px; 561 background: var(--pill-bg); backdrop-filter: blur(12px); 562 cursor: pointer; transition: all 0.2s ease; 563 } 564 .pitch-theme-toggle:hover { color: var(--gold); border-color: rgba(201,168,76,0.4); background: rgba(201,168,76,0.05); } 565 .pitch-theme-toggle svg { width: 14px; height: 14px; } 566 567 /* ââ TOC pill + dialog âââââââââââââââââââââââââââââââââââ */ 568 .pitch-toc-pill { 569 position: fixed; top: 20px; right: 145px; z-index: 300; 570 display: flex; align-items: center; gap: 8px; 571 padding: 7px 14px; 572 font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; 573 color: rgba(201,168,76,0.6); border: 1px solid rgba(201,168,76,0.2); border-radius: 6px; 574 background: var(--pill-bg); backdrop-filter: blur(12px); 575 cursor: pointer; transition: all 0.2s ease; 576 } 577 .pitch-toc-pill:hover { color: var(--gold); border-color: rgba(201,168,76,0.4); background: rgba(201,168,76,0.05); } 578 .pitch-toc-pill .pill-icon { 579 display: grid; grid-template-columns: 1fr 1fr; gap: 2px; 580 width: 10px; height: 10px; 581 } 582 .pitch-toc-pill .pill-icon span { 583 background: currentColor; border-radius: 1px; 584 } 585 586 .pitch-toc-backdrop { 587 position: fixed; inset: 0; z-index: 400; 588 background: var(--backdrop-bg); backdrop-filter: blur(8px); 589 display: flex; align-items: flex-start; justify-content: center; 590 padding: 60px 24px 40px; 591 opacity: 0; pointer-events: none; 592 transition: opacity 0.22s ease; 593 } 594 .pitch-toc-backdrop.open { opacity: 1; pointer-events: auto; } 595 596 .pitch-toc-dialog { 597 position: relative; 598 background: var(--dialog-bg); 599 border: 1px solid var(--glass-border); 600 border-radius: 14px; 601 width: 100%; max-width: 720px; max-height: calc(100vh - 100px); 602 overflow-y: auto; 603 padding: 32px 36px 28px; 604 transform: translateY(12px); transition: transform 0.32s cubic-bezier(0.22,1,0.36,1); 605 } 606 .pitch-toc-dialog::before { 607 content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; 608 background: linear-gradient(90deg, transparent, rgba(201,168,76,0.45), transparent); 609 } 610 .pitch-toc-backdrop.open .pitch-toc-dialog { transform: translateY(0); } 611 612 .pitch-toc-close { 613 position: absolute; top: 14px; right: 14px; 614 width: 30px; height: 30px; 615 display: flex; align-items: center; justify-content: center; 616 background: transparent; border: 1px solid var(--glass-border); border-radius: 6px; 617 color: var(--gray); cursor: pointer; transition: all 0.18s ease; 618 font-family: 'DM Mono', monospace; font-size: 13px; 619 } 620 .pitch-toc-close:hover { color: var(--gold); border-color: var(--gold-border); background: rgba(201,168,76,0.05); } 621 622 .pitch-toc-overline { 623 font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: 0.3em; 624 text-transform: uppercase; color: var(--gold); 625 }
626 .pitch-toc-headline { 627 font-family: 'Cormorant Garamond', serif; 628 font-size: 26px; font-weight: 300; color: var(--white); 629 margin-top: 6px; line-height: 1.1; 630 } 631 .pitch-toc-headline em { font-style: italic; color: var(--gold); } 632 .pitch-toc-divider { 633 height: 1px; max-width: 64px; 634 background: linear-gradient(90deg, var(--gold), transparent); 635 margin: 14px 0 22px; 636 } 637 638 .pitch-toc-group { margin-bottom: 18px; } 639 .pitch-toc-group:last-child { margin-bottom: 0; } 640 .pitch-toc-group-label { 641 font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: 0.25em; 642 text-transform: uppercase; color: var(--gold); opacity: 0.7; 643 margin-bottom: 6px; padding-left: 16px; 644 } 645 646 .pitch-toc-row { 647 display: grid; grid-template-columns: 30px 1fr auto; 648 align-items: center; gap: 14px; 649 width: 100%; 650 padding: 10px 14px; 651 background: transparent; border: none; 652 border-left: 2px solid transparent; 653 border-radius: 6px; 654 text-align: left; 655 cursor: pointer; 656 font-family: inherit; color: inherit; 657 transition: background 0.18s ease, border-left-color 0.18s ease; 658 } 659 .pitch-toc-row:hover { background: rgba(201,168,76,0.05); } 660 .pitch-toc-row:hover .pitch-toc-row-title { color: var(--gold-light); } 661 .pitch-toc-row:focus-visible { outline: 1px solid var(--gold); outline-offset: 2px; } 662 .pitch-toc-row.current { 663 border-left-color: var(--gold); 664 background: rgba(201,168,76,0.04); 665 } 666 .pitch-toc-row-num { 667 font-family: 'DM Mono', monospace; font-size: 10px; 668 letter-spacing: 0.12em; color: var(--gold); opacity: 0.55; 669 } 670 .pitch-toc-row-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; } 671 .pitch-toc-row-title { 672 font-family: 'Cormorant Garamond', serif; 673 font-size: 17px; font-weight: 400; color: var(--white); 674 line-height: 1.1; 675 transition: color 0.18s ease; 676 } 677 .pitch-toc-row-caption { 678 font-size: 11px; font-weight: 300; color: var(--gray); 679 } 680 .pitch-toc-row-here { 681 font-family: 'DM Mono', monospace; font-size: 8px; letter-spacing: 0.2em; 682 text-transform: uppercase; color: var(--gold); 683 opacity: 0; transition: opacity 0.18s ease; 684 white-space: nowrap; 685 } 686 .pitch-toc-row.current .pitch-toc-row-here { opacity: 1; } 687 688 @media print { 689 #pitch-progress-bar, #pitch-logo-mark, #pitch-nav, .pitch-exit-btn, .pitch-toc-pill, .pitch-theme-toggle, .pitch-toc-backdrop { display: none !important; } 690 .pitch-root .section { min-height: auto; padding: 60px 40px; page-break-inside: avoid; } 691 .pitch-root { background: var(--navy) !important; color: var(--white) !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; } 692 .pitch-root .reveal, .pitch-root .stagger-grid > * { opacity: 1 !important; transform: none !important; } 693 .pitch-root .fund-bar-fill { width: var(--w) !important; } 694 .pitch-root .ms-line::after { width: var(--progress, 0%) !important; } 695 } 696 697 @media (max-width:1024px) { 698 .pitch-root .section { padding:96px 40px; } 699 .pitch-root #s3 .grid-3 { grid-template-columns:1fr; gap:18px; } 700 .pitch-root .grid-3 { grid-template-columns:1fr 1fr; } 701 .pitch-root .ms-track { gap:4px; padding:20px 4px 6px; } 702 .pitch-root .ms-title { font-size:13px; } 703 .pitch-root .ms-caption { font-size:9px; } 704 .pitch-root .ms-num { font-size:8px; letter-spacing:0.18em; } 705 .pitch-root .ms-status { padding:3px 8px; font-size:8px; letter-spacing:0.1em; } 706 .pitch-root .ms-date { font-size:9px; } 707 } 708 709 @media (max-width:768px) { 710 .pitch-root .section { padding:80px 24px; } 711 .pitch-root .grid-2,.pitch-root .grid-3 { grid-template-columns:1fr; } 712 #pitch-nav { display:none; } 713 .pitch-root .roadmap-row { flex-direction:column; } 714 .pitch-root .roadmap-phase { border-right:none; border-bottom:1px solid var(--glass-border); } 715 .pitch-exit-btn { right: 16px; top: 16px; } 716 .pitch-toc-pill { right: 96px; top: 16px; padding: 7px 10px; gap: 0; } 717 .pitch-toc-pill .pill-label { display: none; } 718 .pitch-theme-toggle { right: 156px; top: 16px; width: 32px; height: 28px; } 719 .pitch-toc-dialog { padding: 26px 22px; max-height: calc(100vh - 60px); }
720 .pitch-toc-headline { font-size: 22px; } 721 .pitch-toc-row-title { font-size: 16px; } 722 .pitch-toc-backdrop { padding: 30px 16px; } 723 .pitch-root .ms-track { grid-template-columns:1fr; gap:10px; padding:6px 0; } 724 .pitch-root .ms-line { display:none; } 725 .pitch-root .ms-card { 726 flex-direction:row; align-items:center; gap:14px; 727 text-align:left; 728 padding:14px 16px; 729 border:1px solid var(--glass-border); border-radius:10px; 730 background:var(--glass); 731 } 732 .pitch-root .ms-card.complete { border-color:var(--gold-border); background:rgba(201,168,76,0.04); } 733 .pitch-root .ms-card.current { border-color:var(--gold); background:rgba(201,168,76,0.08); box-shadow:0 0 18px rgba(201,168,76,0.1); } 734 .pitch-root .ms-node { 735 position:static; transform:none; 736 width:18px; height:18px; flex-shrink:0; 737 } 738 .pitch-root .ms-top { 739 flex:1; min-height:0; padding:0; 740 align-items:flex-start; justify-content:flex-start; 741 } 742 .pitch-root .ms-title { font-size:15px; } 743 .pitch-root .ms-caption { font-size:11px; margin-top:3px; } 744 .pitch-root .ms-bottom { 745 min-height:0; padding:0; 746 align-items:flex-end; gap:6px; flex-shrink:0; 747 } 748 } 749 750 .pitch-root .bg-photo { 751 position:absolute; inset:0; z-index:0; pointer-events:none; 752 background-size:cover; background-position:center; 753 } 754 .pitch-root .bg-photo::after { 755 content:''; position:absolute; inset:0; 756 background:linear-gradient(180deg, var(--overlay-top), var(--overlay-bottom)); 757 } 758 .pitch-root .photo-frame { 759 border:1px solid var(--gold-border); border-radius:8px; overflow:hidden; 760 box-shadow:0 20px 60px rgba(0,0,0,0.5), 0 0 30px rgba(201,168,76,0.06); 761 position:relative; background:var(--glass); 762 } 763 .pitch-root .photo-frame img { display:block; width:100%; height:auto; } 764 .pitch-root .photo-frame .caption { 765 position:absolute; left:0; right:0; bottom:0; 766 padding:10px 14px; 767 background:linear-gradient(180deg, transparent, var(--caption-fade)); 768 font-family:'DM Mono',monospace; font-size:9px; letter-spacing:0.18em; 769 text-transform:uppercase; color:var(--gold); 770 } 771 .pitch-root .device-frame { 772 border:1px solid var(--gold-border); border-radius:14px; overflow:hidden; 773 background:#000; 774 box-shadow:0 30px 80px rgba(0,0,0,0.6), 0 0 40px rgba(201,168,76,0.08); 775 } 776 .pitch-root .device-frame img { display:block; width:100%; height:auto; } 777 778 /* ââ Pillars âââââââââââââââââââââââââââââââââââââââââââââââ */ 779 .pitch-root .pillars { display:flex; flex-direction:column; gap:14px; width:100%; } 780 .pitch-root .pillar { 781 display:flex; align-items:center; gap:24px; 782 padding:26px 30px; border:1px solid var(--glass-border); border-radius:14px; 783 background:var(--glass); position:relative; overflow:hidden; 784 transition:transform 0.35s ease, border-color 0.35s ease; 785 } 786 .pitch-root .pillar::before { 787 content:''; position:absolute; top:0; left:0; bottom:0; width:3px; 788 background:linear-gradient(180deg,transparent,var(--gold-border),transparent); 789 } 790 .pitch-root .pillar:hover { transform:translateX(6px); border-color:rgba(201,168,76,0.2); } 791 .pitch-root .pillar.ft { 792 background:rgba(201,168,76,0.05); border-color:rgba(201,168,76,0.22); 793 box-shadow:0 0 40px rgba(201,168,76,0.06); 794 } 795 .pitch-root .pillar.ft::after { 796 content:''; position:absolute; top:0; left:0; right:0; height:2px; 797 background:linear-gradient(90deg,transparent,var(--gold),transparent); 798 } 799 .pitch-root .pillar.ft::before { 800 background:linear-gradient(180deg,transparent,var(--gold),transparent); opacity:0.6; 801 } 802 .pitch-root .p-num { 803 font-family:'Cormorant Garamond',serif; font-size:52px; font-weight:300; 804 color:var(--gold); opacity:0.18; line-height:1; width:48px; flex-shrink:0; text-align:center; 805 } 806 .pitch-root .p-icon { 807 width:48px; height:48px; border:1px solid var(--gold-border); border-radius:12px; 808 background:var(--gold-dim); display:flex; align-items:center; justify-content:center; 809 font-size:22px; flex-shrink:0; 810 } 811 .pitch-root .p-body { flex:1; } 812 .pitch-root .p-title { 813 font-family:'Cormorant Garamond',serif; font-size:clamp(17px,1.9vw,24px); font-weight:400; 814 color:var(--white); margin-bottom:4px; 815 } 816 .pitch-root .p-title em { font-style:italic; color:var(--gold); } 817 .pitch-root .p-desc { font-size:12px; font-weight:300; color:var(--gray); line-height:1.6; } 818 .pitch-root .p-tags { display:flex; gap:8px; flex-shrink:0; } 819 .pitch-root .tag { 820 padding:5px 12px; border:1px solid var(--gold-border); border-radius:20px; 821 font-size:10px; font-family:'DM Mono',monospace; color:var(--gold); white-space:nowrap; 822 } 823 824 /* ââ Problem / Solution rows âââââââââââââââââââââââââââââââ */ 825 .pitch-root .ps-row { 826 display:flex; align-items:center; gap:20px; 827 padding:18px 24px; border-radius:10px; 828 border:1px solid var(--glass-border); background:var(--glass); 829 } 830 .pitch-root .ps-row.red { 831 background:rgba(239,68,68,0.04); border-color:rgba(239,68,68,0.2); 832 border-left:3px solid #ef4444; 833 } 834 .pitch-root .ps-row.red-soft { border-left:3px solid rgba(239,68,68,0.5); } 835 .pitch-root .ps-row.gold-soft { border-left:3px solid rgba(201,168,76,0.5); } 836 .pitch-root .ps-row.gold-ft { 837 background:rgba(201,168,76,0.05); border-color:rgba(201,168,76,0.22); 838 border-left:3px solid var(--gold); box-shadow:0 0 30px rgba(201,168,76,0.05); 839 } 840 .pitch-root .ps-label { font-size:13px; font-weight:500; color:var(--white); letter-spacing:0.04em; } 841 .pitch-root .ps-sub { font-size:12px; font-weight:300; color:var(--gray); margin-left:10px; } 842 .pitch-root .ps-row > div { min-width:0; } 843 .pitch-root .badge { 844 padding:4px 10px; border-radius:6px; font-size:10px; 845 font-family:'DM Mono',monospace; white-space:nowrap; flex-shrink:0; max-width:100%; 846 } 847 .pitch-root .badge-red { background:rgba(239,68,68,0.15); border:1px solid rgba(239,68,68,0.3); color:#ef4444; } 848 .pitch-root .badge-gold { background:var(--gold-dim); border:1px solid var(--gold-border); color:var(--gold); } 849 .pitch-root .badge-green { background:rgba(74,222,128,0.1); border:1px solid rgba(74,222,128,0.3); color:#4ade80; } 850 851 /* ââ Metric grid (4-up) ââââââââââââââââââââââââââââââââââââ */ 852 .pitch-root .metrics { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; } 853 .pitch-root .metric { 854 text-align:center; padding:20px 12px; border-radius:10px; 855 border:1px solid var(--glass-border); background:var(--glass); 856 } 857 .pitch-root .metric.red { border-color:rgba(239,68,68,0.25); background:rgba(239,68,68,0.04); } 858 .pitch-root .metric.gold { border:1px solid var(--gold-border); background:var(--gold-dim); } 859 .pitch-root .metric-val { 860 font-family:'Cormorant Garamond',serif; font-size:34px; font-weight:300; 861 line-height:1; display:block; 862 } 863 .pitch-root .metric-val.gold-c { color:var(--gold); } 864 .pitch-root .metric-val.red-c { color:#ef4444; } 865 .pitch-root .metric-lbl {
866 font-size:10px; font-weight:300; color:var(--gray); letter-spacing:0.08em; 867 text-transform:uppercase; margin-top:6px; display:block; 868 } 869 @media (max-width:1024px) { 870 .pitch-root .metrics { grid-template-columns:repeat(2,1fr); gap:10px; } 871 .pitch-root .metric { padding:18px 10px; } 872 .pitch-root .metric-val { font-size:30px; } 873 874 .pitch-root .pillar { flex-wrap:wrap; padding:22px 24px; gap:18px; } 875 .pitch-root .pillar .p-body { flex:1 1 260px; min-width:0; } 876 .pitch-root .pillar .p-tags { flex:0 0 100%; padding-left:60px; gap:6px; flex-wrap:wrap; } 877 878 .pitch-root .ps-row { flex-wrap:wrap; padding:16px 20px; gap:14px; } 879 .pitch-root .ps-row > div { flex:1 1 240px; } 880 .pitch-root .ps-row .badge { margin-left:auto; } 881 } 882 883 @media (max-width:768px) { 884 .pitch-root .metrics { grid-template-columns:1fr 1fr; } 885 .pitch-root .p-tags, .pitch-root .p-num { display:none; } 886 .pitch-root .pillar { flex-wrap:wrap; gap:14px; } 887 .pitch-root .pillar .p-body { flex:1 1 100%; } 888 .pitch-root .ps-sub { display:block; margin-left:0; margin-top:2px; } 889 } 890`,NY=` 891<div id="pitch-progress-bar"></div> 892<div id="pitch-logo-mark"><div class="mark">S</div><span class="wordmark">Sonoma Vineyard Estates</span></div> 893<div id="pitch-nav"></div> 894 895<!-- S1: HERO --> 896<section class="section" id="s1" data-label="Intro" style="position:relative;overflow:hidden;"> 897 <div class="bg-photo" style="background-image:url(${Z3});"></div> 898 <div class="orb orb-gold" style="width:700px;height:700px;top:50%;left:50%;transform:translate(-50%,-50%);"></div> 899 <div class="section-inner" style="display:flex;flex-direction:column;align-items:center;gap:16px;"> 900 <div class="reveal" style="width:100%;max-width:880px;"> 901 <p style="font-size:10px;font-family:'DM Mono',monospace;letter-spacing:0.2em;color:var(--gold);text-align:center;margin:0 0 10px;">LIVE MVP â HOMEPAD CONTROL CENTER</p> 902 <div class="device-frame"><img src="${vy}" alt="Sonoma Vineyard Estates HomePad smart-home control center" /></div> 903 </div> 904 <div class="reveal" style="margin-top:10px;"><div class="hero-logo">S</div></div> 905 <span class="overline reveal" style="text-align:center;">Seed Round · Working MVP · Live Demo Available</span> 906 <h1 class="display reveal" style="text-align:center;">Sonoma Vineyard Estates<br><em>Smart Home System</em></h1> 907 <p class="tagline-text reveal">"The Operating System for Luxury Living"</p> 908 <div class="divider reveal" style="max-width:240px;"></div> 909 <p class="reveal" style="font-size:15px;font-weight:300;line-height:1.8;color:var(--gray-light);max-width:540px;text-align:center;">A device-agnostic smart home control, AI concierge, IoT security, and lifestyle management platform for ultra-luxury residences.</p> 910 <div class="reveal" style="display:flex;gap:12px;flex-wrap:wrap;justify-content:center;margin-top:8px;"> 911 <span class="seed-badge">SEED ROUND â $500K</span> 912 <span class="seed-badge">21 DEVICE TYPES</span> 913 <span class="seed-badge">2,700+ INTEGRATIONS</span> 914 <span class="seed-badge">85â94% GROSS MARGIN</span> 915 </div> 916 </div> 917 <div class="scroll-hint"> 918 <span>Scroll</span> 919 <svg width="16" height="20" viewBox="0 0 16 20" fill="none" stroke="var(--gold)" stroke-width="1.5"> 920 <rect x="1" y="1" width="14" height="18" rx="7" stroke-opacity="0.5"/> 921 <line x1="8" y1="5" x2="8" y2="9" stroke-linecap="round"/> 922 </svg> 923 </div> 924</section> 925 926<!-- S1b: THREE PILLARS --> 927<section class="section" id="s1b" data-label="Pillars" style="position:relative;overflow:hidden;"> 928 <div class="orb orb-gold" style="width:600px;height:500px;top:50%;left:50%;transform:translate(-50%,-50%);"></div> 929 <div class="section-inner" style="text-align:center;"> 930 <span class="overline reveal">Core Differentiating Factors</span> 931 <h2 class="headline reveal" style="margin-bottom:36px;">Three pillars. <em>No one has built them together.</em></h2> 932 <div class="pillars stagger-grid reveal" style="text-align:left;"> 933 <div class="pillar"> 934 <div class="p-num">01</div> 935 <div class="p-icon">ð</div> 936 <div class="p-body"> 937 <h3 class="p-title">Security <em>no one else offers.</em></h3> 938 <p class="p-desc">
938The only residential system with active CVE scanning, anomaly detection, and a live AâF security grade for every device in the home.</p> 939 </div> 940 <div class="p-tags"><span class="tag">CVE Scanning</span><span class="tag">Live Grade</span></div> 941 </div> 942 <div class="pillar ft"> 943 <div class="p-num">02</div> 944 <div class="p-icon">ð¡</div> 945 <div class="p-body"> 946 <h3 class="p-title">Full ecosystem of control <em>& lifestyle support.</em></h3> 947 <p class="p-desc">21 device types. Any protocol. Plus chauffeur, chef, winery, gate access â all in one system. No lock-in. Works above existing hardware.</p> 948 </div> 949 <div class="p-tags"><span class="tag">21 Devices</span><span class="tag">Full Lifestyle</span></div> 950 </div> 951 <div class="pillar"> 952 <div class="p-num">03</div> 953 <div class="p-icon">ð¤</div> 954 <div class="p-body"> 955 <h3 class="p-title">AI that understands <em>the whole home.</em></h3> 956 <p class="p-desc">Not a voice router â a context-aware concierge. Creates automations from conversation, suggests actions proactively, knows the full estate state at all times.</p> 957 </div> 958 <div class="p-tags"><span class="tag">Proactive</span><span class="tag">Context-Aware</span></div> 959 </div> 960 </div> 961 </div> 962</section> 963 964<!-- S2: PROBLEM --> 965<section class="section" id="s2" data-label="Problem" style="position:relative;overflow:hidden;"> 966 <div class="bg-photo" style="background-image:url(${yY});opacity:0.5;"></div> 967 <div class="orb orb-gold" style="width:500px;height:500px;top:-150px;right:-100px;"></div> 968 <div class="section-inner"> 969 <span class="overline reveal">The Market Gap</span> 970 <h2 class="headline reveal">The $5M+ home is <em>broken by design.</em></h2> 971 <div class="divider-left reveal"></div> 972 973 <div class="metrics stagger-grid reveal" style="margin:28px 0;"> 974 <div class="metric"><span class="metric-val gold-c">5â8</span><span class="metric-lbl">Apps per home</span></div> 975 <div class="metric"><span class="metric-val gold-c">100+</span><span class="metric-lbl">Connected devices</span></div> 976 <div class="metric red"><span class="metric-val red-c">$0</span><span class="metric-lbl">Security monitoring</span></div> 977 <div class="metric red"><span class="metric-val red-c">$200K</span><span class="metric-lbl">Avg. lock-in cost</span></div> 978 </div> 979 980 <div class="stagger-grid reveal" style="display:flex;flex-direction:column;gap:10px;"> 981 <div class="ps-row red-soft"> 982 <span style="font-size:20px;flex-shrink:0;">ð±</span> 983 <div style="flex:1;"><span class="ps-label">Too many apps, zero unity.</span><span class="ps-sub">Lutron, Control4, Ring, August â all separate. No single view of the home.</span></div> 984 </div> 985 <div class="ps-row red-soft"> 986 <span style="font-size:20px;flex-shrink:0;">ð</span> 987 <div style="flex:1;"><span class="ps-label">Vendor lock-in is a trap.</span><span class="ps-sub">Switching platforms costs $50Kâ$200K. Homeowners are held hostage to a single dealer.</span></div> 988 </div> 989 <div class="ps-row red"> 990 <span style="font-size:20px;flex-shrink:0;">â ï¸</span> 991 <div style="flex:1;"><span class="ps-label">No one is watching for cyber threats.</span><span class="ps-sub">HNW individuals are prime targets. Smart cameras and locks are unguarded attack surfaces.</span></div> 992 <span class="badge badge-red">Critical Gap</span> 993 </div> 994 <div class="ps-row red-soft"> 995 <span style="font-size:20px;flex-shrink:0;">âï¸</span> 996 <div style="flex:1;"><span class="ps-label">The home stops at devices.</span><span class="ps-sub">Chauffeurs, chefs, gate access, concierge â all live outside the home system.</span></div> 997 </div> 998 <div class="ps-row red-soft"> 999 <span style="font-size:20px;flex-shrink:0;">ð ï¸</span> 1000 <div style="flex:1;"><span class="ps-label">Maintenance is reactive, not predictive.</span><span class="ps-sub">Nothing watches your equipment until it breaks. Estates absorb six-figure surprise repairs.</span></div> 1001 </div> 1002 </div> 1003 </div> 1004</section> 1005 1006<!-- S3: SOLUTION --> 1007<section class="section" id="s3" data-label="Solution" style="position:relative;overflow:hidden;"> 1008 <div class="bg-photo" style="background-image:url(${xY});opacity:0.55;"></div>
1009 <div class="orb orb-blue" style="width:500px;height:500px;bottom:-100px;left:-80px;"></div> 1010 <div class="section-inner"> 1011 <span class="overline reveal">How We Solve It</span> 1012 <h2 class="headline reveal">One system. <em>Every answer.</em></h2> 1013 <div class="divider-left reveal"></div> 1014 1015 <div class="stagger-grid reveal" style="display:flex;flex-direction:column;gap:10px;margin-top:24px;"> 1016 <div class="ps-row gold-soft"> 1017 <span style="font-size:20px;flex-shrink:0;">ð </span> 1018 <div style="flex:1;"><span class="ps-label">One interface. Every device.</span><span class="ps-sub">Control 21 device types across any protocol from a single, elegant system.</span></div> 1019 <span class="badge badge-gold">21 Device Types</span> 1020 </div> 1021 <div class="ps-row gold-soft"> 1022 <span style="font-size:20px;flex-shrink:0;">ð</span> 1023 <div style="flex:1;"><span class="ps-label">No rip and replace. Ever.</span><span class="ps-sub">Our protocol adapter sits above existing hardware. Keep your Control4, your Lutron â we unify it all.</span></div> 1024 <span class="badge badge-gold">Protocol-Agnostic</span> 1025 </div> 1026 <div class="ps-row gold-ft"> 1027 <span style="font-size:20px;flex-shrink:0;">ð</span> 1028 <div style="flex:1;"><span class="ps-label">Active security. First in the market.</span><span class="ps-sub">CVE scanning, anomaly detection, privacy audit, AâF grade. The only residential system that does this.</span></div> 1029 <span class="badge badge-green">Unique to SVE</span> 1030 </div> 1031 <div class="ps-row gold-soft"> 1032 <span style="font-size:20px;flex-shrink:0;">â¨</span> 1033 <div style="flex:1;"><span class="ps-label">The full estate. In one system.</span><span class="ps-sub">Chauffeur, private chef, gate access, winery â lifestyle services inside the same platform as home controls.</span></div> 1034 <span class="badge badge-gold">6 Lifestyle Services</span> 1035 </div> 1036 </div> 1037 1038 <p class="reveal" style="font-size:10px;font-family:'DM Mono',monospace;letter-spacing:0.2em;color:var(--gold);text-align:center;margin:28px 0 14px;">LIVE IN THE MVP TODAY</p> 1039 <div class="grid-3 stagger-grid reveal" style="gap:14px;"> 1040 <div> 1041 <div class="device-frame"><img src="${nE}" alt="Sonoma Vineyard Estates resident dashboard" /></div> 1042 <p style="font-size:10px;font-family:'DM Mono',monospace;letter-spacing:0.16em;color:var(--gold);text-align:center;margin-top:8px;">Resident Dashboard</p> 1043 </div> 1044 <div> 1045 <div class="device-frame"><img src="${bY}" alt="Per-room energy & utility monitor" /></div> 1046 <p style="font-size:10px;font-family:'DM Mono',monospace;letter-spacing:0.16em;color:var(--gold);text-align:center;margin-top:8px;">Energy & Utility Monitor</p> 1047 </div> 1048 <div> 1049 <div class="device-frame"><img src="${wY}" alt="Predictive maintenance alert" /></div> 1050 <p style="font-size:10px;font-family:'DM Mono',monospace;letter-spacing:0.16em;color:var(--gold);text-align:center;margin-top:8px;">Predictive Maintenance</p> 1051 </div> 1052 </div> 1053 1054 <div class="metrics stagger-grid reveal" style="margin-top:24px;"> 1055 <div class="metric gold"><span class="metric-val gold-c">85â94%</span><span class="metric-lbl">Gross Margin</span></div> 1056 <div class="metric gold"><span class="metric-val gold-c">$150B</span><span class="metric-lbl">Market by 2028</span></div> 1057 <div class="metric gold"><span class="metric-val gold-c">125K</span><span class="metric-lbl">U.S. Target Homes</span></div> 1058 <div class="metric gold"><span class="metric-val gold-c">$1,667</span><span class="metric-lbl">Est. Ceiling / Home / Mo</span></div> 1059 </div> 1060 </div> 1061</section> 1062 1063<!-- S4: MVP --> 1064<section class="section" id="s4" data-label="MVP"> 1065 <div class="orb orb-gold" style="width:600px;height:400px;top:50%;left:50%;transform:translate(-50%,-50%);"></div> 1066 <div class="section-inner"> 1067 <span class="overline reveal">Working MVP · Live Demo Available</span> 1068 <h2 class="headline reveal">Built. Working. <em>Ready to deploy.</em></h2> 1069 <div class="divider-left reveal"></div> 1070 <div class="grid-2 reveal" style="gap:24px;align-items:start;margin-top:8px;"> 1071 <div> 1072 <div class="glass-card" style="margin-bottom:16px;"><p style="font-size:10px;font-family:'DM Mono',monospace;letter-spacing:0.2em;color:var(--gold);margin-bottom:14px;">CONTROLLED DEVICES</p><div style="display:flex;flex-wrap:wrap;gap:8px;"><span class="device-chip"><span class="dot-on"></span>Lights (RGB)</span><span class="device-chip"><span class="dot-on"></span>Shades</span><span class="device-chip"><span class="dot-on"></span>Thermostat</span><span class="device-chip"><span class="dot-on"></span>Locks</span><span class="device-chip"><span class="dot-on"></span>Cameras</span><span class="device-chip"><span class="dot-on"></span>Alarm Panel</span><span class="device-chip"><span class="dot-on"></span>Pool</span><span class="device-chip"><span class="dot-on"></span>Irrigation</span><span class="device-chip"><span class="dot-on"></span>
1072Sauna</span><span class="device-chip"><span class="dot-on"></span>Garage</span><span class="device-chip"><span class="dot-off"></span>Speakers</span><span class="device-chip"><span class="dot-off"></span>Fans</span></div></div> 1073 <div class="glass-card"><p style="font-size:10px;font-family:'DM Mono',monospace;letter-spacing:0.2em;color:var(--gold);margin-bottom:14px;">SUPPORTED PROTOCOLS</p><div style="display:flex;flex-wrap:wrap;gap:8px;"><span class="proto-badge">Control4</span><span class="proto-badge">Lutron</span><span class="proto-badge">Z-Wave</span><span class="proto-badge">Zigbee</span><span class="proto-badge">HomeKit</span><span class="proto-badge">MQTT</span><span class="proto-badge">WiFi</span><span class="proto-badge">Bluetooth</span><span class="proto-badge">Open Hub API</span></div></div> 1074 </div> 1075 <div> 1076 <div class="glass-card gold-glow" style="margin-bottom:16px;"><p style="font-size:10px;font-family:'DM Mono',monospace;letter-spacing:0.2em;color:var(--gold);margin-bottom:16px;">AI CONCIERGE â LIVE</p><div style="display:flex;flex-direction:column;gap:12px;"><div style="border-left:2px solid var(--gold-border);padding-left:14px;"><p style="font-size:12px;color:var(--gray);font-style:italic;margin-bottom:4px;">"Lock all doors and arm the alarm"</p><p style="font-size:11px;color:var(--gray-light);">â 4 locks secured · Alarm armed · Logged 11:42 PM</p></div><div style="border-left:2px solid var(--gold-border);padding-left:14px;"><p style="font-size:12px;color:var(--gray);font-style:italic;margin-bottom:4px;">"Turn off lights at 9PM every Thursday"</p><p style="font-size:11px;color:var(--gray-light);">â Automation created · Recurring schedule saved</p></div><div style="background:rgba(201,168,76,0.05);border-radius:6px;border-left:2px solid rgba(201,168,76,0.45);padding:8px 14px;"><p style="font-size:11px;color:var(--gold);font-style:italic;">7 lights still on â activate Goodnight mode?</p></div></div></div> 1077 <div class="device-frame"><img src="${vY}" alt="HomePad â live MVP" /></div> 1078 <p style="font-size:10px;font-family:'DM Mono',monospace;letter-spacing:0.2em;color:var(--gold);margin-top:10px;text-align:center;">LIVE â HOMEPAD CONTROL CENTER</p> 1079 </div> 1080 </div> 1081 </div> 1082</section> 1083 1084<!-- S5: ARCHITECTURE --> 1085<section class="section" id="s5" data-label="Architecture"> 1086 <div class="orb orb-blue" style="width:400px;height:400px;top:-80px;right:-50px;"></div> 1087 <div class="section-inner"> 1088 <span class="overline reveal">Technology Architecture</span> 1089 <h2 class="headline reveal">Protocol-agnostic.<br><em>Infinitely extensible.</em></h2> 1090 <div class="divider-left reveal"></div> 1091 <div class="grid-2 reveal" style="gap:28px;align-items:center;margin-top:8px;"> 1092 <div class="glass-card" style="padding:28px;"> 1093 <p style="font-size:10px;font-family:'DM Mono',monospace;letter-spacing:0.2em;color:var(--gold);margin-bottom:22px;text-align:center;">ADAPTER PATTERN ARCHITECTURE</p> 1094 <div style="background:rgba(201,168,76,0.04);border:1px solid var(--gold-border);border-radius:8px;padding:12px;text-align:center;margin-bottom:10px;"><p style="font-size:10px;color:var(--gray);letter-spacing:0.1em;text-transform:uppercase;margin-bottom:8px;">Hardware Layer</p><div style="display:flex;gap:6px;flex-wrap:wrap;justify-content:center;"><span style="font-size:10px;padding:3px 10px;border:1px solid var(--glass-border);border-radius:4px;color:var(--gray-light);">Control4</span><span style="font-size:10px;padding:3px 10px;border:1px solid var(--glass-border);border-radius:4px;color:var(--gray-light);">Lutron</span><span style="font-size:10px;padding:3px 10px;border:1px solid var(--glass-border);border-radius:4px;color:var(--gray-light);">Z-Wave</span><span style="font-size:10px;padding:3px 10px;border:1px solid var(--glass-border);border-radius:4px;color:var(--gray-light);">Zigbee</span><span style="font-size:10px;padding:3px 10px;border:1px solid var(--glass-border);border-radius:4px;color:var(--gray-light);">Open+</span></div></div> 1095 <div style="text-align:center;color:var(--gold);opacity:0.35;font-size:18px;margin:4px 0;">â</div> 1096 <div style="background:rgba(201,168,76,0.08);border:1px solid rgba(201,168,76,0.25);border-radius:8px;padding:12px;text-align:center;margin-bottom:10px;"><p style="font-size:10px;color:var(--gold);letter-spacing:0.1em;text-transform:uppercase;margin-bottom:4px;">Protocol Adapters</p><p style="font-size:11px;color:var(--gray);font-weight:300;">Self-contained modules · Config, not rebuild</p></div> 1097 <div style="text-align:center;color:var(--gold);opacity:0.35;font-size:18px;margin:4px 0;">â</div> 1098 <div style="background:rgba(201,168,76,0.12);border:1px solid rgba(201,168,76,0.35);border-radius:8px;padding:12px;text-align:center;margin-bottom:10px;"><p style="font-size:10px;color:var(--gold);letter-spacing:0.1em;text-transform:uppercase;margin-bottom:4px;">Unified Command Pipeline</p><p style="font-size:11px;color:var(--gray);font-weight:300;">14 standardized command types · Single API</p></div> 1099 <div style="text-align:center;color:var(--gold);opacity:0.35;font-size:18px;margin:4px 0;">â</div> 1100 <div style="background:rgba(201,168,76,0.04);border:1px solid var(--gold-border);border-radius:8px;padding:12px;text-align:center;"><p style="font-size:10px;color:var(--gray);letter-spacing:0.1em;text-transform:uppercase;">SVE Smart Home System · AI · Security · Lifestyle</p></div> 1101 </div> 1102 <div> 1103 <div style="margin-bottom:22px;"><h4 style="font-size:14px;font-weight:500;color:var(--white);margin-bottom:10px;">We Don't Replace â We Unify</h4><p style="font-size:13px;font-weight:300;color:var(--gray);line-height:1.75;">Sonoma Vineyard Estates sits above existing hardware. Homeowners keep their Control4, their Lutron, their cameras. We unify everything through a single elegant interface.</p></div> 1104 <div style="margin-bottom:22px;"><h4 style="font-size:14px;font-weight:500;color:var(--white);margin-bottom:10px;">Adding Protocols = Configuration</h4><p style="font-size:13px;font-weight:300;color:var(--gray);line-height:1.75;">Each protocol adapter is a self-contained module. Adding a new integration is a configuration step, not an engineering rebuild â our moat compounds with every adapter shipped.</p></div> 1105 <div class="glass-card gold-glow"><div style="display:flex;"><div style="flex:1;text-align:center;padding:16px 0;"><span class="stat-num">21</span><span class="stat-label">Device Types</span></div><div style="width:1px;background:var(--glass-border);"></div><div style="flex:1;text-align:center;padding:16px 0;"><span class="stat-num">14</span><span class="stat-label">Command Types</span></div><div style="width:1px;background:var(--glass-border);"></div><div style="flex:1;text-align:center;padding:16px 0;"><span class="stat-num">2.7K+</span><span class="stat-label">Integrations</span></div></div></div> 1106 </div> 1107 </div> 1108 </div> 1109</section> 1110 1111<!-- S6: HOME ASSISTANT --> 1112<section class="section" id="s6" data-label="Protocol Engine">
1113 <div class="orb orb-gold" style="width:500px;height:300px;bottom:-60px;left:-80px;"></div> 1114 <div class="section-inner"> 1115 <span class="overline reveal">Open Protocol Integration Engine</span> 1116 <h2 class="headline reveal">We're building a bridge to<br><em>every device ever made.</em></h2> 1117 <div class="divider-left reveal"></div> 1118 <div class="grid-2 reveal" style="gap:28px;margin-top:8px;"> 1119 <div> 1120 <p style="font-size:14px;font-weight:300;color:var(--gray-light);line-height:1.8;margin-bottom:18px;">We're building a proprietary protocol integration engine that connects the SVE system to any open-source automation hub on the market â giving us compatibility with thousands of devices across every major protocol through a single adapter layer we own and control.</p> 1121 <div class="photo-frame" style="margin-bottom:18px;"> 1122 <img src="${J3}" alt="Sonoma Vineyard Estates â arrival drive" /> 1123 <span class="caption">Sonoma Vineyard Estates · Arrival Drive</span> 1124 </div> 1125 <div class="glass-card"><p style="font-size:10px;font-family:'DM Mono',monospace;letter-spacing:0.2em;color:var(--gold);margin-bottom:14px;">10 DEVICE DOMAINS SUPPORTED</p><div style="display:flex;flex-wrap:wrap;gap:8px;"><span class="feature-pill">Lights</span><span class="feature-pill">Switches</span><span class="feature-pill">Covers / Shades</span><span class="feature-pill">Climate</span><span class="feature-pill">Locks</span><span class="feature-pill">Fans</span><span class="feature-pill">Media Players</span><span class="feature-pill">Alarm Panels</span><span class="feature-pill">Cameras</span><span class="feature-pill">Binary Sensors</span></div></div> 1126 </div> 1127 <div> 1128 <div class="glass-card gold-glow" style="margin-bottom:16px;"><p style="font-size:10px;font-family:'DM Mono',monospace;letter-spacing:0.2em;color:var(--gold);margin-bottom:14px;">WHAT WE'VE BUILT</p><div style="display:flex;flex-direction:column;gap:12px;"><div style="display:flex;align-items:flex-start;gap:12px;"><span style="color:#4ade80;font-size:14px;flex-shrink:0;">â</span><p style="font-size:12px;font-weight:300;color:var(--gray-light);">Automatic device discovery â scans network, identifies devices, maps to our unified system</p></div><div style="display:flex;align-items:flex-start;gap:12px;"><span style="color:#4ade80;font-size:14px;flex-shrink:0;">â</span><p style="font-size:12px;font-weight:300;color:var(--gray-light);">Bidirectional state sync â commands flow to real hardware, state changes flow back in real time</p></div><div style="display:flex;align-items:flex-start;gap:12px;"><span style="color:#4ade80;font-size:14px;flex-shrink:0;">â</span><p style="font-size:12px;font-weight:300;color:var(--gray-light);">Cloud or on-premise deployment â same codebase, same API, zero changes required</p></div><div style="display:flex;align-items:flex-start;gap:12px;"><span style="color:#4ade80;font-size:14px;flex-shrink:0;">â</span><p style="font-size:12px;font-weight:300;color:var(--gray-light);">Live adapter running today â mock and real-hardware modes both tested and operational</p></div></div></div> 1129 <div class="glass-card"><p style="font-size:12px;font-weight:300;color:var(--gray);line-height:1.65;font-style:italic;">Our adapter architecture means adding a new protocol is a configuration step, not a rebuild. Every integration we ship compounds the moat â and the marginal cost of the next one approaches zero.</p></div> 1130 </div> 1131 </div> 1132 </div> 1133</section> 1134 1135<!-- S7: AI CONCIERGE --> 1136<section class="section" id="s7" data-label="AI Concierge"> 1137 <div class="orb orb-blue" style="width:500px;height:500px;top:50%;right:-100px;transform:translateY(-50%);"></div> 1138 <div class="section-inner"> 1139 <span class="overline reveal">SVE AI Concierge</span> 1140 <h2 class="headline reveal">The home knows you.<br><em>Not the other way around.</em></h2> 1141 <div class="divider-left reveal"></div> 1142 <div class="reveal device-frame" style="margin:14px auto 22px;max-width:820px;"><img src="${tE}" alt="SVE AI Concierge â live MVP" /></div> 1143 <p class="reveal" style="font-size:10px;font-family:'DM Mono',monospace;letter-spacing:0.2em;color:var(--gold);text-align:center;margin-bottom:14px;">LIVE â AI SUGGESTIONS & NATURAL LANGUAGE CHAT</p> 1144 <div class="grid-2 reveal" style="gap:28px;margin-top:8px;"> 1145 <div class="glass-card gold-glow"><p style="font-size:10px;font-family:'DM Mono',monospace;letter-spacing:0.2em;color:var(--gold);margin-bottom:16px;">NATURAL LANGUAGE CONTROL â LIVE</p><div style="display:flex;flex-direction:column;gap:14px;"><div style="padding:10px 14px;background:var(--glass);border-radius:8px;border-left:2px solid var(--glass-border);"><p style="font-size:11px;color:var(--gray);font-style:italic;margin-bottom:4px;">"Set bedroom to 72, dim living room to 40%"</p><p style="font-size:11px;color:var(--gray-light);">â Done · 2 devices updated · 1.1s</p></div><div style="padding:10px 14px;background:var(--glass);border-radius:8px;border-left:2px solid var(--glass-border);"><p style="font-size:11px;color:var(--gray);font-style:italic;margin-bottom:4px;">
1145"Turn off lights at 9PM every Thursday"</p><p style="font-size:11px;color:var(--gray-light);">â Automation created · Recurring schedule saved</p></div><div style="padding:10px 14px;background:var(--glass);border-radius:8px;border-left:2px solid var(--glass-border);"><p style="font-size:11px;color:var(--gray);font-style:italic;margin-bottom:4px;">"Add a Reading Lamp to the bedroom"</p><p style="font-size:11px;color:var(--gray-light);">â Device created and mapped to bedroom</p></div><div style="padding:10px 14px;background:rgba(201,168,76,0.06);border-radius:8px;border-left:2px solid rgba(201,168,76,0.4);"><p style="font-size:11px;color:var(--gold);font-style:italic;">It's getting dark â turn on the living room lights?</p></div></div></div> 1146 <div> 1147 <div style="margin-bottom:18px;"><h4 style="font-size:14px;font-weight:500;color:var(--white);margin-bottom:8px;">Context-Aware Intelligence, Not Voice Commands</h4><p style="font-size:13px;font-weight:300;color:var(--gray);line-height:1.75;">We're building AI that understands the full home â which devices are on, what time it is, recent patterns. It proactively suggests actions rather than waiting to be told.</p></div> 1148 <div class="glass-card" style="margin-bottom:16px;"><p style="font-size:10px;font-family:'DM Mono',monospace;letter-spacing:0.2em;color:var(--gold);margin-bottom:14px;">TIERED AI COST EFFICIENCY</p><div style="display:flex;flex-direction:column;gap:12px;"><div style="display:flex;align-items:center;gap:12px;"><span style="font-family:'DM Mono',monospace;font-size:10px;color:var(--gold);width:72px;">Fast Tier</span><div style="height:4px;width:30%;border-radius:2px;background:linear-gradient(90deg,var(--gold),var(--gold-light));"></div><span style="font-size:10px;color:var(--gray);">Pennies per call · Simple commands</span></div><div style="display:flex;align-items:center;gap:12px;"><span style="font-family:'DM Mono',monospace;font-size:10px;color:var(--gold);width:72px;">Smart Tier</span><div style="height:4px;width:60%;border-radius:2px;background:linear-gradient(90deg,var(--gold),var(--gold-light));"></div><span style="font-size:10px;color:var(--gray);">Balanced cost · Automations & scenes</span></div><div style="display:flex;align-items:center;gap:12px;"><span style="font-family:'DM Mono',monospace;font-size:10px;color:var(--gold);width:72px;">Deep Tier</span><div style="height:4px;width:90%;border-radius:2px;background:linear-gradient(90deg,var(--gold),var(--gold-light));"></div><span style="font-size:10px;color:var(--gray);">Full reasoning · Complex multi-device</span></div></div></div> 1149 <div class="glass-card gold-glow"><p style="font-size:10px;font-family:'DM Mono',monospace;letter-spacing:0.2em;color:var(--gold);margin-bottom:10px;">POWERED BY</p><p style="font-size:13px;font-weight:300;color:var(--gray-light);">Anthropic Claude API · Structured JSON output · Intent classification · Full home context window</p></div> 1150 </div> 1151 </div> 1152 </div> 1153</section> 1154 1155<!-- S8: IOT SECURITY --> 1156<section class="section" id="s8" data-label="Security"> 1157 <div class="orb orb-gold" style="width:400px;height:400px;bottom:-100px;right:-60px;"></div> 1158 <div class="section-inner"> 1159 <span class="overline reveal">IoT Security Center</span> 1160 <h2 class="headline reveal">The first residential platform<br>that <em>watches for intrusion.</em></h2> 1161 <div class="divider-left reveal"></div> 1162 <div class="grid-2 reveal" style="gap:28px;margin-top:8px;"> 1163 <div> 1164 <p style="font-size:14px;font-weight:300;color:var(--gray-light);line-height:1.8;margin-bottom:18px;">High-net-worth individuals are prime targets for cyber intrusion. Their smart cameras, locks, and thermostats are unguarded attack surfaces. No existing residential platform audits them.</p> 1165 <div class="device-frame"><img src="${yy}" alt="IoT Security & Risk Analysis â live MVP" /></div> 1166 <p style="font-size:10px;font-family:'DM Mono',monospace;letter-spacing:0.2em;color:var(--gold);margin-top:10px;text-align:center;">LIVE â IoT SECURITY & RISK ANALYSIS CENTER</p> 1167 <p style="font-size:11px;font-weight:300;color:var(--gray);line-height:1.6;margin-top:14px;text-align:center;font-style:italic;">Real CVE data · AâF posture grading · Vulnerability triage · Privacy & VLAN tracking â already shipping in the MVP.</p> 1168 </div> 1169 <div> 1170 <div class="grid-2" style="gap:12px;margin-bottom:16px;"> 1171 <div class="glass-card" style="padding:20px;"><div class="icon-box" style="width:36px;height:36px;margin-bottom:10px;font-size:16px;">ð</div><h5 style="font-size:12px;font-weight:500;color:var(--white);margin-bottom:6px;">CVE Scanning</h5><p style="font-size:11px;font-weight:300;color:var(--gray);line-height:1.6;">Real vulnerability references with severity ratings and remediation steps per device.</p></div> 1172 <div class="glass-card" style="padding:20px;"><div class="icon-box" style="width:36px;height:36px;margin-bottom:10px;font-size:16px;">ð¡</div><h5 style="font-size:12px;font-weight:500;color:var(--white);margin-bottom:6px;">Anomaly Detection</h5><p style="font-size:11px;font-weight:300;color:var(--gray);line-height:1.6;">Brute force, port scans, unusual data volumes, off-hours activity patterns.</p></div> 1173 <div class="glass-card" style="padding:20px;"><div class="icon-box" style="width:36px;height:36px;margin-bottom:10px;font-size:16px;">ð</div><h5 style="font-size:12px;font-weight:500;color:var(--white);margin-bottom:6px;">Privacy Audit</h5><p style="font-size:11px;font-weight:300;color:var(--gray);line-height:1.6;">What each device collects, retention periods, encryption status, data sharing.</p></div> 1174 <div class="glass-card" style="padding:20px;"><div class="icon-box" style="width:36px;height:36px;margin-bottom:10px;font-size:16px;">ðï¸</div><h5 style="font-size:12px;font-weight:500;color:var(--white);margin-bottom:6px;">VLAN Tracking</h5><p style="font-size:11px;font-weight:300;color:var(--gray);line-height:1.6;">Network segmentation across security, health, and IoT VLANs with mapping.</p></div> 1175 </div> 1176 <div class="glass-card" style="padding:16px 20px;"><p style="font-size:12px;font-weight:300;color:var(--gray);line-height:1.65;font-style:italic;">Directly aligned with NSF + DHS SBIR funding topics â a $500Kâ$2M non-dilutive pathway through federal partnership.</p></div> 1177 </div> 1178 </div> 1179 </div> 1180</section> 1181 1182<!-- S9: LIFESTYLE --> 1183<section class="section" id="s9" data-label="Lifestyle" style="position:relative;overflow:hidden;"> 1184 <div class="bg-photo" style="background-image:url(${Ax});opacity:0.4;"></div>
1185 <div class="orb orb-blue" style="width:600px;height:400px;top:-100px;left:50%;transform:translateX(-50%);"></div> 1186 <div class="section-inner"> 1187 <span class="overline reveal">Lifestyle Platform</span> 1188 <h2 class="headline reveal">Beyond device control.<br><em>The full luxury experience.</em></h2> 1189 <div class="divider-left reveal"></div> 1190 <div class="reveal photo-frame" style="margin-top:18px;max-width:760px;"> 1191 <img src="${Ax}" alt="Sonoma Vineyard Estates â Living Room" /> 1192 <span class="caption">Sonoma Vineyard Estates · Resident Salon</span> 1193 </div> 1194 <div class="grid-3 stagger-grid reveal" style="margin-top:16px;"> 1195 <div class="glass-card" style="padding:22px;"><div style="font-size:28px;margin-bottom:12px;">ð</div><h5 style="font-size:12px;font-weight:500;color:var(--white);letter-spacing:0.08em;margin-bottom:8px;">Chauffeur Booking</h5><p style="font-size:12px;font-weight:300;color:var(--gray);line-height:1.65;">S-Class sedan, luxury SUV, airport transfer. Route preview, luggage assistance, passenger management.</p></div> 1196 <div class="glass-card gold-glow" style="padding:22px;"><div style="font-size:28px;margin-bottom:12px;">ð·</div><h5 style="font-size:12px;font-weight:500;color:var(--white);letter-spacing:0.08em;margin-bottom:8px;">VIP Winery Access</h5><p style="font-size:12px;font-weight:300;color:var(--gray);line-height:1.65;">15+ Sonoma and Napa vineyards. Wine preference profiles. Private tastings and cellar experiences.</p></div> 1197 <div class="glass-card" style="padding:22px;"><div style="font-size:28px;margin-bottom:12px;">ð¨âð³</div><h5 style="font-size:12px;font-weight:500;color:var(--white);letter-spacing:0.08em;margin-bottom:8px;">Private Chef</h5><p style="font-size:12px;font-weight:300;color:var(--gray);line-height:1.65;">Cuisine style and dietary preference booking. Full kitchen coordination and event catering.</p></div> 1198 <div class="glass-card" style="padding:22px;"><div style="font-size:28px;margin-bottom:12px;">ð¨</div><h5 style="font-size:12px;font-weight:500;color:var(--white);letter-spacing:0.08em;margin-bottom:8px;">Hotel Partners</h5><p style="font-size:12px;font-weight:300;color:var(--gray);line-height:1.65;">Auberge, Montage, and curated luxury properties. Preferred rates with one-tap booking.</p></div> 1199 <div class="glass-card" style="padding:22px;"><div style="font-size:28px;margin-bottom:12px;">ðª</div><h5 style="font-size:12px;font-weight:500;color:var(--white);letter-spacing:0.08em;margin-bottom:8px;">Gate Access Control</h5><p style="font-size:12px;font-weight:300;color:var(--gray);line-height:1.65;">One-time codes, duration settings, real-time camera, active permission tracking for staff and visitors.</p></div> 1200 <div class="glass-card" style="padding:22px;"><div style="font-size:28px;margin-bottom:12px;">ð¯</div><h5 style="font-size:12px;font-weight:500;color:var(--white);letter-spacing:0.08em;margin-bottom:8px;">24/7 Concierge</h5><p style="font-size:12px;font-weight:300;color:var(--gray);line-height:1.65;">Request tracking from submission to completion. Landscape, warranty, and estate management.</p></div> 1201 </div> 1202 </div> 1203</section> 1204 1205<!-- S10: MARKET --> 1206<section class="section" id="s10" data-label="Market"> 1207 <div class="orb orb-gold" style="width:500px;height:400px;bottom:-150px;left:50%;transform:translateX(-50%);"></div> 1208 <div class="section-inner"> 1209 <span class="overline reveal">Market Opportunity</span> 1210 <h2 class="headline reveal">A $150B market.<br><em>We own the premium tier.</em></h2> 1211 <div class="divider-left reveal"></div> 1212 <div class="grid-2 reveal" style="gap:28px;align-items:center;margin-top:8px;"> 1213 <div class="glass-card gold-glow" style="padding:28px;"> 1214 <p style="font-size:10px;font-family:'DM Mono',monospace;letter-spacing:0.2em;color:var(--gold);margin-bottom:20px;text-align:center;">TAM · SAM · SOM</p> 1215 <div style="display:flex;flex-direction:column;gap:18px;"> 1216 <div style="display:flex;align-items:center;gap:16px;"><div style="width:80px;height:80px;border:1.5px solid rgba(201,168,76,0.2);border-radius:50%;display:flex;align-items:center;justify-content:center;flex-direction:column;flex-shrink:0;background:rgba(201,168,76,0.04);"><span style="font-family:'Cormorant Garamond',serif;font-size:20px;color:var(--gold);">$150B</span><span style="font-size:8px;letter-spacing:0.1em;color:var(--gray);margin-top:2px;">TAM</span></div><p style="font-size:12px;font-weight:300;color:var(--gray);line-height:1.6;">Global smart home market by 2028 · 25%+ CAGR in luxury segment</p></div> 1217 <div style="display:flex;align-items:center;gap:16px;"><div style="width:64px;
1217height:64px;border:1.5px solid rgba(201,168,76,0.35);border-radius:50%;display:flex;align-items:center;justify-content:center;flex-direction:column;flex-shrink:0;background:rgba(201,168,76,0.07);"><span style="font-family:'Cormorant Garamond',serif;font-size:16px;color:var(--gold);">$8B</span><span style="font-size:8px;letter-spacing:0.1em;color:var(--gray);margin-top:2px;">SAM</span></div><p style="font-size:12px;font-weight:300;color:var(--gray);line-height:1.6;">Luxury residential smart home · U.S. $5M+ properties</p></div> 1218 <div style="display:flex;align-items:center;gap:16px;"><div style="width:50px;height:50px;border:1.5px solid var(--gold-border);border-radius:50%;display:flex;align-items:center;justify-content:center;flex-direction:column;flex-shrink:0;background:rgba(201,168,76,0.1);"><span style="font-family:'Cormorant Garamond',serif;font-size:12px;color:var(--gold);">$625M</span><span style="font-size:7px;letter-spacing:0.1em;color:var(--gray);margin-top:2px;">SOM</span></div><p style="font-size:12px;font-weight:300;color:var(--gray);line-height:1.6;">125K U.S. luxury homes · Seed target is <0.01% penetration</p></div> 1219 </div> 1220 </div> 1221 <div style="display:flex;flex-direction:column;gap:14px;"> 1222 <div class="glass-card"><div style="display:flex;align-items:flex-start;gap:14px;"><span style="font-family:'Cormorant Garamond',serif;font-size:28px;color:var(--gold);line-height:1;">$2.9B</span><div><p style="font-size:12px;font-weight:500;color:var(--white);">Snap One (Control4) acquisition</p><p style="font-size:11px;font-weight:300;color:var(--gray);">Validates the market. Closed ecosystem â we disrupt it.</p></div></div></div> 1223 <div class="glass-card"><div style="display:flex;align-items:flex-start;gap:14px;"><span style="font-family:'Cormorant Garamond',serif;font-size:28px;color:var(--gold);line-height:1;">$22M</span><div><p style="font-size:12px;font-weight:500;color:var(--white);">
1223Raised for voice-only control (competitor)</p><p style="font-size:11px;font-weight:300;color:var(--gray);">We're building the full platform: control + security + lifestyle + AI.</p></div></div></div> 1224 <div class="glass-card"><div style="display:flex;align-items:flex-start;gap:14px;"><span style="font-family:'Cormorant Garamond',serif;font-size:28px;color:var(--gold);line-height:1;">125K</span><div><p style="font-size:12px;font-weight:500;color:var(--white);">U.S. luxury homes ($5M+)</p><p style="font-size:11px;font-weight:300;color:var(--gray);">Our initial TAM. Global luxury market multiples beyond.</p></div></div></div> 1225 </div> 1226 </div> 1227 </div> 1228</section> 1229 1230<!-- S11: COMPETITIVE --> 1231<section class="section" id="s11" data-label="Competition"> 1232 <div class="orb orb-blue" style="width:400px;height:400px;top:50%;left:-100px;transform:translateY(-50%);"></div> 1233 <div class="section-inner"> 1234 <span class="overline reveal">Competitive Landscape</span> 1235 <h2 class="headline reveal">We occupy a <em>quadrant no one else</em><br>is building in.</h2> 1236 <div class="divider-left reveal"></div> 1237 <div class="grid-2 reveal" style="gap:24px;align-items:start;margin-top:8px;"> 1238 <div class="matrix-wrap"><div class="matrix-axis-x"></div><div class="matrix-axis-y"></div><div class="matrix-label left">Single Vendor</div><div class="matrix-label right">Multi-Protocol</div><div class="matrix-label top">Full Platform</div><div class="matrix-label bottom">Device Only</div><div class="matrix-node" style="left:20%;top:75%;"><div class="dot dim"></div><span>Control4</span></div><div class="matrix-node" style="left:25%;top:63%;"><div class="dot dim"></div><span>Crestron</span></div><div class="matrix-node" style="left:22%;top:82%;"><div class="dot dim"></div><span>Savant</span></div><div class="matrix-node" style="left:75%;top:80%;"><div class="dot dim"></div><span>DIY Hubs</span></div><div class="matrix-node" style="left:80%;top:70%;"><div class="dot dim"></div><span>Open-Source</span></div><div class="matrix-node" style="left:30%;top:34%;"><div class="dot dim"></div><span>Voice-Only</span></div><div class="matrix-node" style="left:78%;top:20%;"><div class="dot gold"></div><span class="gold">SVE â¦</span></div></div> 1239 <div style="display:flex;flex-direction:column;gap:12px;"> 1240 <div class="glass-card"><h5 style="font-size:12px;font-weight:500;color:var(--white);margin-bottom:6px;">Control4 / Crestron / Savant</h5><p style="font-size:12px;font-weight:300;color:var(--gray);line-height:1.65;">Single-vendor closed ecosystems. $50Kâ$200K lock-in cycles. Device control only. No AI, no security, no lifestyle.</p></div> 1241 <div class="glass-card"><h5 style="font-size:12px;font-weight:500;color:var(--white);margin-bottom:6px;">Open-Source Hubs (DIY Market)</h5><p style="font-size:12px;font-weight:300;color:var(--gray);line-height:1.65;">Multi-protocol but technical and DIY. No luxury UX, no AI concierge, no lifestyle services, no managed offering.</p></div> 1242 <div class="glass-card"><h5 style="font-size:12px;font-weight:500;color:var(--white);margin-bottom:6px;">Voice-Only Control ($22M raised)</h5><p style="font-size:12px;font-weight:300;color:var(--gray);line-height:1.65;">Routes voice to device commands. Single-vendor leaning. No IoT security. No unified control layer. No lifestyle platform.</p></div> 1243 <div class="glass-card gold-glow"><h5 style="font-size:12px;font-weight:500;color:var(--gold);margin-bottom:6px;">Sonoma Vineyard Estates â Alone in this quadrant</h5><p style="font-size:12px;font-weight:300;color:var(--gray);line-height:1.65;">Multi-protocol · AI-native · IoT security · Full lifestyle platform · Software revenue.</p></div> 1244 </div> 1245 </div> 1246 </div> 1247</section> 1248 1249<!-- S12: BUSINESS MODEL --> 1250<section class="section" id="s12" data-label="Business"> 1251 <div class="orb orb-gold" style="width:400px;height:400px;bottom:-100px;right:-60px;"></div> 1252 <div class="section-inner"> 1253 <span class="overline reveal">Business Model</span> 1254 <h2 class="headline reveal">Pure software margins.</h2> 1255 <div class="divider-left reveal"></div> 1256 <div class="grid-2 reveal" style="gap:24px;align-items:start;margin-top:8px;"> 1257 <div> 1258 <div class="glass-card" style="margin-bottom:16px;"><table class="pitch-table"><thead><tr><th>
1258Revenue Stream</th><th>Pricing</th></tr></thead><tbody><tr><td>Per-Residence License</td><td>$5Kâ$15K / yr</td></tr><tr><td>Premium AI Concierge</td><td>+$2Kâ$5K / yr</td></tr><tr><td>Integrator Rev Share</td><td>15â20%</td></tr><tr><td>Enterprise Licensing</td><td>$50Kâ$200K / yr</td></tr><tr><td>SBIR Federal Grants</td><td>$500Kâ$2M</td></tr></tbody></table></div> 1259 </div> 1260 <div> 1261 <div class="grid-2" style="gap:12px;margin-bottom:16px;"> 1262 <div class="margin-callout"><span class="big-num">85â94%</span><div class="big-label">Gross Margin at Scale</div></div> 1263 <div class="glass-card" style="text-align:center;padding:20px;"><span style="font-family:'Cormorant Garamond',serif;font-size:34px;font-weight:300;color:var(--gold);display:block;">$400â</span><span style="font-family:'Cormorant Garamond',serif;font-size:34px;font-weight:300;color:var(--gold);display:block;margin-top:-6px;">$1,250</span><span style="font-size:10px;letter-spacing:0.15em;text-transform:uppercase;color:var(--gray);display:block;margin-top:6px;">Revenue / property / mo</span></div> 1264 </div> 1265 <div class="glass-card"><p style="font-size:10px;font-family:'DM Mono',monospace;letter-spacing:0.2em;color:var(--gold);margin-bottom:14px;">UNIT ECONOMICS</p><div style="display:flex;flex-direction:column;gap:8px;"><div style="display:flex;justify-content:space-between;"><span style="font-size:12px;color:var(--gray-light);">One-time hardware (per property)</span><span style="font-size:12px;color:var(--white);font-family:'DM Mono',monospace;">$2Kâ$5K</span></div><div class="divider" style="margin:6px 0;"></div><div style="display:flex;justify-content:space-between;"><span style="font-size:12px;color:var(--gray-light);">Cloud hosting + AI API / property</span><span style="font-size:12px;color:var(--white);font-family:'DM Mono',monospace;">$25â80 / mo</span></div><div style="display:flex;justify-content:space-between;"><span style="font-size:12px;color:var(--gray-light);">Revenue per property</span><span style="font-size:12px;color:var(--white);font-family:'DM Mono',monospace;">$400â$1,250 / mo</span></div><div class="divider" style="margin:8px 0;"></div><div style="display:flex;justify-content:space-between;"><span style="font-size:12px;color:var(--gray-light);">Marginal cost of property #200</span><span style="font-size:12px;color:#4ade80;font-family:'DM Mono',monospace;">â $0 incremental</span></div></div></div> 1266 </div> 1267 </div> 1268 </div> 1269</section> 1270 1271<!-- S13: ROADMAP --> 1272<section class="section" id="s13" data-label="Roadmap"> 1273 <div class="orb orb-blue" style="width:500px;height:300px;top:0;right:-100px;"></div> 1274 <div class="section-inner"> 1275 <span class="overline reveal">Roadmap</span> 1276 <h2 class="headline reveal">From MVP to <em>market-defining</em><br>platform in 12 months.</h2> 1277 <div class="divider-left reveal"></div> 1278 <div class="glass-card reveal" style="margin-top:8px;padding:0;overflow:hidden;"> 1279 <div class="roadmap-row stagger-grid"> 1280 <div class="roadmap-phase done"><div class="phase-tag">⦠Months 1â2</div><div class="phase-name">Phase 1 â MVP</div><ul class="phase-items"><li>Working demo live</li><li>SVE AI concierge</li><li>IoT security center</li><li>Open protocol adapter</li><li>3 full UI themes</li><li>Mock controller</li></ul></div> 1281 <div class="roadmap-phase"><div class="phase-tag future">Months 3â7</div><div class="phase-name">Phase 2 â Pilot</div><ul class="phase-items"><li>3â5 luxury properties</li><li>Real hardware control</li><li>Resident feedback loop</li><li>Refine UX from field</li></ul></div> 1282 <div class="roadmap-phase"><div class="phase-tag future">Months 8â12</div><div class="phase-name">Phase 3 â Protocols</div><ul class="phase-items"><li>Control4 Director API</li><li>Lutron LEAP protocol</li><li>On-premise hardware</li><li>SBIR grant applications</li></ul></div> 1283 <div class="roadmap-phase"><div class="phase-tag future">Months 13+</div><div class="phase-name">Phase 4 â Scale</div><ul class="phase-items"><li>Enterprise licensing</li><li>Developer API</li><li>Partner integrator program</li><li>Hotel group pilots</li></ul></div> 1284 </div> 1285 </div> 1286 <div class="glass-card reveal" style="margin-top:16px;padding:16px 24px;"> 1287 <div style="display:flex;gap:32px;flex-wrap:wrap;"> 1288 <div><p style="font-size:10px;font-family:'DM Mono',monospace;letter-spacing:0.15em;color:var(--gold);margin-bottom:4px;">SBIR ALIGNMENT</p><p style="font-size:12px;font-weight:300;color:var(--gray);">
1288NSF: Secure IoT computing · DHS: Critical infrastructure cyber · Opens $500Kâ$2M non-dilutive pathway</p></div> 1289 <div style="width:1px;background:var(--glass-border);"></div> 1290 <div><p style="font-size:10px;font-family:'DM Mono',monospace;letter-spacing:0.15em;color:var(--gold);margin-bottom:4px;">TECH STACK</p><p style="font-size:12px;font-weight:300;color:var(--gray);">React + TypeScript · Node.js + Express · PostgreSQL + Drizzle ORM · Claude API · Zod validation</p></div> 1291 </div> 1292 </div> 1293 </div> 1294</section> 1295 1296<!-- S13c: MILESTONES & PROGRESS --> 1297<section class="section" id="s13c" data-label="Milestones"> 1298 <div class="orb orb-gold" style="width:480px;height:280px;bottom:-80px;left:-100px;"></div> 1299 <div class="section-inner"> 1300 <span class="overline reveal">Milestones & Progress</span> 1301 <h2 class="headline reveal">From MVP today to <em>first install</em><br>by December 2026.</h2> 1302 <div class="divider-left reveal"></div> 1303 <p class="reveal" style="font-size:14px;font-weight:300;color:var(--gray-light);line-height:1.7;max-width:760px;margin-top:14px;">An honest, dated build-out plan. The MVP just shipped. Five milestones remain â scenes & automation, AI assistant, hardware & security integration, final field testing, and launch â each with a hard date investors can hold us to.</p> 1304 <div class="glass-card reveal" style="margin-top:22px;padding:22px 18px 18px;overflow:hidden;"> 1305 <div class="ms-track" style="--progress:33.3%;"> 1306 <div class="ms-line"></div> 1307 1308 <div class="ms-card complete"> 1309 <div class="ms-top"> 1310 <div class="ms-num">01</div> 1311 <div class="ms-title">Discovery & Foundation</div> 1312 <div class="ms-caption">Vision, system architecture, design language, infrastructure</div> 1313 </div> 1314 <div class="ms-node complete"></div> 1315 <div class="ms-bottom"> 1316 <div class="ms-date">Mar 6, 2026</div> 1317 <div class="ms-status complete">Complete</div> 1318 </div> 1319 </div> 1320 1321 <div class="ms-card complete"> 1322 <div class="ms-top"> 1323 <div class="ms-num">02</div> 1324 <div class="ms-title">MVP</div> 1325 <div class="ms-caption">Working demo: HomePad, AI concierge, IoT security center</div> 1326 </div> 1327 <div class="ms-node complete"></div> 1328 <div class="ms-bottom"> 1329 <div class="ms-date">Apr 17, 2026</div> 1330 <div class="ms-status complete">Complete</div> 1331 </div> 1332 </div> 1333 1334 <div class="ms-card current"> 1335 <div class="ms-top"> 1336 <div class="ms-num">03</div> 1337 <div class="ms-title">Scenes & Automation</div> 1338 <div class="ms-caption">Multi-room scenes, time- and event-triggered automations</div> 1339 </div> 1340 <div class="ms-node current"></div> 1341 <div class="ms-bottom"> 1342 <div class="ms-date">May 8, 2026</div> 1343 <div class="ms-status current">In Progress</div> 1344 </div> 1345 </div> 1346 1347 <div class="ms-card upcoming"> 1348 <div class="ms-top"> 1349 <div class="ms-num">04</div> 1350 <div class="ms-title">AI Assistant</div> 1351 <div class="ms-caption">Claude-powered intent parsing, natural-language home control</div> 1352 </div> 1353 <div class="ms-node upcoming"></div> 1354 <div class="ms-bottom"> 1355 <div class="ms-date">Jun 1, 2026</div> 1356 <div class="ms-status upcoming">Upcoming</div> 1357 </div> 1358 </div> 1359 1360 <div class="ms-card upcoming"> 1361 <div class="ms-top"> 1362 <div class="ms-num">05</div> 1363 <div class="ms-title">Hardware & Security Integration</div> 1364 <div class="ms-caption">Control4 / Lutron / on-prem hardware + security hardening</div> 1365 </div> 1366 <div class="ms-node upcoming"></div> 1367 <div class="ms-bottom"> 1368 <div class="ms-date">Oct 2, 2026</div> 1369 <div class="ms-status upcoming">Upcoming</div> 1370 </div> 1371 </div> 1372 1373 <div class="ms-card upcoming"> 1374 <div class="ms-top"> 1375 <div class="ms-num">06</div> 1376 <div class="ms-title">Final Testing</div> 1377 <div class="ms-caption">Pilot install, field testing, iterate on resident feedback</div> 1378 </div> 1379 <div class="ms-node upcoming"></div> 1380 <div class="ms-bottom"> 1381 <div class="ms-date">Nov 20, 2026</div> 1382 <div class="ms-status upcoming">Upcoming</div> 1383 </div> 1384 </div> 1385 1386 <div class="ms-card upcoming"> 1387 <div class="ms-top"> 1388 <div class="ms-num">07</div> 1389 <div class="ms-title">Launch</div> 1390 <div class="ms-caption">First production install live at Sonoma Vineyard Estates</div> 1391 </div> 1392 <div class="ms-node upcoming"></div> 1393 <div class="ms-bottom"> 1394 <div class="ms-date">Dec 1, 2026</div> 1395 <div class="ms-status upcoming">Upcoming</div> 1396 </div> 1397 </div> 1398 </div> 1399 </div> 1400 <div class="glass-card reveal" style="margin-top:14px;padding:14px 22px;display:flex;gap:18px;align-items:center;flex-wrap:wrap;">
1401 <span style="font-family:'DM Mono',monospace;font-size:10px;letter-spacing:0.18em;color:var(--gold);">2 OF 7 COMPLETE</span> 1402 <span style="width:1px;height:14px;background:var(--glass-border);"></span> 1403 <span style="font-size:12px;font-weight:300;color:var(--gray-light);">This seed round funds milestones 3â7: scenes & automation, AI assistant, hardware integration, field testing, and the December launch.</span> 1404 </div> 1405 </div> 1406</section> 1407 1408<!-- S14: THE ASK --> 1409<section class="section" id="s14" data-label="The Ask" style="position:relative;overflow:hidden;"> 1410 <div class="bg-photo" style="background-image:url(${eE});"></div> 1411 <div class="orb orb-gold" style="width:700px;height:700px;top:50%;left:50%;transform:translate(-50%,-50%);"></div> 1412 <div class="section-inner" style="text-align:center;"> 1413 <span class="overline reveal" style="text-align:center;">Seed Round</span> 1414 <div class="glass-card gold-glow reveal" style="max-width:680px;margin:0 auto 28px;padding:36px 44px;"> 1415 <div style="font-family:'Cormorant Garamond',serif;font-size:76px;font-weight:300;color:var(--gold);line-height:1;margin-bottom:4px;">$500K</div> 1416 <p style="font-size:12px;font-weight:300;color:var(--gray);letter-spacing:0.1em;margin-bottom:24px;">SEED ROUND · WORKING MVP · LIVE DEMO AVAILABLE</p> 1417 <div class="divider"></div> 1418 <div style="text-align:left;padding:8px 0;"> 1419 <div class="fund-label"><span>Software Development & Hardware Integration Engineering</span><span>40% â $200K</span></div> 1420 <div class="fund-bar"><div class="fund-bar-fill" style="--w:40%;"></div></div> 1421 <div class="fund-label"><span>Pilot Deployments â 3â5 Luxury Properties</span><span>20% â $100K</span></div> 1422 <div class="fund-bar"><div class="fund-bar-fill" style="--w:20%;"></div></div> 1423 <div class="fund-label"><span>SBIR Grant Applications & Security R&D</span><span>15% â $75K</span></div> 1424 <div class="fund-bar"><div class="fund-bar-fill" style="--w:15%;"></div></div> 1425 <div class="fund-label"><span>Team: Embedded Systems Eng + Sales Lead</span><span>25% â $125K</span></div> 1426 <div class="fund-bar"><div class="fund-bar-fill" style="--w:25%;"></div></div> 1427 </div> 1428 </div> 1429 <p class="closing-quote reveal">"Every luxury home deserves a single, intelligent, secure platform.<br><em>Sonoma Vineyard Estates is building it.</em>"</p> 1430 <div class="divider reveal" style="max-width:200px;margin:24px auto;"></div> 1431 <div class="reveal" style="display:flex;gap:12px;justify-content:center;flex-wrap:wrap;"> 1432 <span class="seed-badge">LIVE DEMO AVAILABLE</span> 1433 <span class="seed-badge">21 DEVICE TYPES</span> 1434 <span class="seed-badge">85â94% GROSS MARGIN</span> 1435 <span class="seed-badge">SBIR ELIGIBLE</span> 1436 </div> 1437 </div> 1438</section> 1439`,SY=[{id:"s1",title:"Intro",caption:"Welcome",group:"The Story"},{id:"s1b",title:"Pillars",caption:"Why now",group:"The Story"},{id:"s2",title:"Problem",caption:"What is broken today",group:"The Story"},{id:"s3",title:"Solution",caption:"What we built",group:"The Story"},{id:"s4",title:"MVP",caption:"What's live today",group:"The Product"},{id:"s5",title:"Architecture",caption:"How it's built",group:"The Product"},{id:"s6",title:"Protocol Engine",caption:"Speaks every brand",group:"The Product"},{id:"s7",title:"AI Concierge",caption:"Natural-language control",group:"The Product"},{id:"s8",title:"Security",caption:"Risk scoring + monitoring",group:"The Product"},{id:"s9",title:"Lifestyle",caption:"Resident experience",group:"The Product"},{id:"s10",title:"Market",caption:"TAM and timing",group:"The Business"},{id:"s11",title:"Competition",caption:"Where we win",group:"The Business"},{id:"s12",title:"Business",caption:"How we make money",group:"The Business"},{id:"s13",title:"Roadmap",caption:"Phases ahead",group:"The Business"},{id:"s13c",title:"Milestones",caption:"Dated build-out plan",group:"The Business"},{id:"s14",title:"The Ask",caption:"$500K seed round",group:"The Business"}],CY=["The Story","The Product","The Business"],kY={__html:NY};function TY(){const[e,t]=p.useState(!0),[,s]=ns(),i=p.useRef(null),[o,c]=p.useState(!1),{isLight:u,toggle:f}=X3(),h=p.useRef("s1"),m=p.useRef(null),x=p.useRef(null);p.useEffect(()=>{fetch("/api/pitchdeck/check",{credentials:"include"}).then(w=>
1439w.json()).then(w=>{w.authenticated||s("/pitchdeck"),t(!1)}).catch(()=>{s("/pitchdeck")})},[]),p.useEffect(()=>{if(e)return;const w=document.querySelectorAll(".pitch-root .section"),C=document.getElementById("pitch-nav"),j=document.getElementById("pitch-logo-mark"),S=document.getElementById("pitch-progress-bar");if(!C||!j||!S)return;C.innerHTML="",w.forEach((_,G)=>{const ne=document.createElement("div");ne.className="nav-dot"+(G===0?" active":""),ne.dataset.label=_.dataset.label||"",ne.addEventListener("click",()=>_.scrollIntoView({behavior:"smooth"})),C.appendChild(ne)});const T=C.querySelectorAll(".nav-dot"),M=new IntersectionObserver(_=>{_.forEach(G=>{G.isIntersecting&&G.target.classList.add("in-view")})},{threshold:.1,rootMargin:"0px 0px -80px 0px"});w.forEach(_=>M.observe(_));const k=new IntersectionObserver(_=>{_.forEach(G=>{if(G.isIntersecting){const ne=Array.from(w).indexOf(G.target);T.forEach(ce=>ce.classList.remove("active")),T[ne]&&T[ne].classList.add("active");const se=G.target.id;se&&(h.current=se)}})},{threshold:.45});w.forEach(_=>k.observe(_));const R=new URLSearchParams(window.location.search).get("slide"),D=window.location.hash.slice(1)||R||"",P=[];if(D){const _=()=>{const G=document.getElementById(D);G&&G.scrollIntoView({behavior:"auto",block:"start"})};_(),P.push(window.setTimeout(_,100)),P.push(window.setTimeout(_,400))}const O=()=>{const _=window.scrollY,G=document.body.scrollHeight-window.innerHeight;S.style.width=_/G*100+"%",j.classList.toggle("visible",_>100)};return window.addEventListener("scroll",O,{passive:!0}),()=>{M.disconnect(),k.disconnect(),window.removeEventListener("scroll",O),P.forEach(_=>window.clearTimeout(_))}},[e]);const y=async()=>{await fetch("/api/pitchdeck/logout",{method:"POST",credentials:"include"}),s("/pitchdeck")};p.useEffect(()=>{if(e)return;const w=C=>{const j=C.target,S=!!j&&(j.tagName==="INPUT"||j.tagName==="TEXTAREA"||j.tagName==="SELECT"||j.isContentEditable);if(C.key==="Escape"&&o){C.preventDefault(),c(!1);return}!S&&(C.key==="m"||C.key==="M")&&(C.preventDefault(),c(T=>!T))};return window.addEventListener("keydown",w),()=>window.removeEventListener("keydown",w)},[o,e]),p.useEffect(()=>{if(o){const w=document.body.style.overflow;document.body.style.overflow="hidden";const C=x.current,j=C?C.querySelectorAll('button, [href], [tabindex]:not([tabindex="-1"])'):null;j&&j.length>0&&j[0].focus();const S=T=>{if(T.key!=="Tab"||!C)return;const M=C.querySelectorAll('button, [href], [tabindex]:not([tabindex="-1"])');if(M.length===0)return;const k=M[0],R=M[M.length-1];T.shiftKey&&document.activeElement===k?(T.preventDefault(),R.focus()):!T.shiftKey&&document.activeElement===R&&(T.preventDefault(),k.focus())};return window.addEventListener("keydown",S),()=>{document.body.style.overflow=w,window.removeEventListener("keydown",S),m.current?.focus({preventScroll:!0})}}},[o]);const b=w=>{c(!1),requestAnimationFrame(()=>{const C=document.getElementById(w);C&&(C.classList.add("in-view"),C.scrollIntoView({behavior:"smooth",block:"start"}))})};return e?a.jsx("div",{style:{minHeight:"100vh",display:"flex",alignItems:"center",justifyContent:"center",background:"#07090f"},children:a.jsx("div",{style:{width:32,height:32,border:"2px solid rgba(201,168,76,0.2)",borderTopColor:"rgba(201,168,76,0.8)",borderRadius:"50%",animation:"spin 0.8s linear infinite"}})}):a.jsxs("div",{className:u?"pitch-light":void 0,children:[a.jsx("style",{children:jY}),a.jsx("button",{type:"button",className:"pitch-theme-toggle",onClick:f,"aria-label":u?"Switch to dark mode":"Switch to light mode",title:u?"Switch to dark mode":"Switch to light mode","data-testid":"button-pitchdeck-theme-toggle",children:u?a.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:a.jsx("path",{d:"M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"})}):a.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[a.jsx("circle",{cx:"12",cy:"12",r:"4"}),a.jsx("path",{d:"M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M4.93 19.07l1.41-1.41
1439M17.66 6.34l1.41-1.41"})]})}),a.jsxs("button",{ref:m,className:"pitch-toc-pill",onClick:()=>c(w=>!w),"aria-label":"Open table of contents","aria-expanded":o,"aria-controls":"dialog-toc","data-testid":"button-toc-open",children:[a.jsxs("span",{className:"pill-icon","aria-hidden":"true",children:[a.jsx("span",{}),a.jsx("span",{}),a.jsx("span",{}),a.jsx("span",{})]}),a.jsx("span",{className:"pill-label",children:"Menu"})]}),a.jsx("button",{className:"pitch-exit-btn",onClick:y,"data-testid":"button-pitchdeck-exit",children:"â Exit"}),a.jsx("div",{className:`pitch-toc-backdrop${o?" open":""}`,onClick:w=>{w.target===w.currentTarget&&c(!1)},"aria-hidden":!o,inert:!o,children:a.jsxs("div",{ref:x,id:"dialog-toc",role:"dialog","aria-modal":"true","aria-labelledby":"toc-headline",className:"pitch-toc-dialog","data-testid":"dialog-toc",children:[a.jsx("button",{type:"button",className:"pitch-toc-close",onClick:()=>c(!1),"aria-label":"Close table of contents","data-testid":"button-toc-close",children:"â"}),a.jsx("span",{className:"pitch-toc-overline",children:"Table of Contents"}),a.jsxs("h2",{id:"toc-headline",className:"pitch-toc-headline",children:["DomoVita.AI · ",a.jsx("em",{children:"Investor Deck"})]}),a.jsx("div",{className:"pitch-toc-divider"}),CY.map(w=>{const C=SY.map((j,S)=>({...j,num:S+1})).filter(j=>j.group===w);return a.jsxs("div",{className:"pitch-toc-group",children:[a.jsx("div",{className:"pitch-toc-group-label",children:w}),C.map(j=>a.jsxs("button",{type:"button",className:`pitch-toc-row${h.current===j.id?" current":""}`,onClick:()=>b(j.id),"data-testid":`link-toc-${j.id}`,children:[a.jsx("span",{className:"pitch-toc-row-num",children:String(j.num).padStart(2,"0")}),a.jsxs("span",{className:"pitch-toc-row-text",children:[a.jsx("span",{className:"pitch-toc-row-title",children:j.title}),a.jsx("span",{className:"pitch-toc-row-caption",children:j.caption})]}),a.jsx("span",{className:"pitch-toc-row-here",children:"You are here"})]},j.id))]},w)})]})}),a.jsx("div",{className:"pitch-root",ref:i,dangerouslySetInnerHTML:kY})]})}function EY({onVerified:e}){const[t,s]=p.useState(""),[i,o]=p.useState(""),[c,u]=p.useState(!1),[f,h]=p.useState(!1),m=p.useRef(null);p.useEffect(()=>{m.current?.focus()},[]);const x=async y=>{if(y.preventDefault(),!!t.trim()){u(!0),o("");try{(await fetch("/api/pitchdeck/verify-admin",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({pin:t}),credentials:"include"})).ok?e():(o("Incorrect PIN. Please try again."),s(""),h(!0),setTimeout(()=>h(!1),600),m.current?.focus())}catch{o("Could not verify. Please try again.")}finally{u(!1)}}};return a.jsx("div",{className:"fixed inset-0 z-50 bg-background flex items-center justify-center p-6",children:a.jsxs(le.div,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},transition:{duration:.3,ease:"easeOut"},className:"w-full max-w-sm",children:[a.jsxs("div",{className:"text-center mb-8",children:[a.jsx("div",{className:"w-14 h-14 rounded-full bg-primary/10 border border-primary/20 flex items-center justify-center mx-auto mb-4",children:a.jsx(Go,{className:"w-6 h-6 text-primary"})}),a.jsx("h1",{className:"text-xl font-serif tracking-wide text-foreground mb-1",children:"Admin Access"}),a.jsx("p",{className:"text-sm text-muted-foreground",children:"Enter the admin PIN to manage investor access codes."})]}),a.jsxs("form",{onSubmit:x,className:"flex flex-col gap-3",children:[a.jsx(le.div,{animate:f?{x:[0,-10,10,-8,8,-4,4,0]}:{},transition:{duration:.5},children:a.jsx("input",{ref:m,type:"password",value:t,onChange:y=>s(y.target.value),placeholder:"Admin PIN",autoComplete:"current-password",className:"w-full bg-background border border-border text-foreground h-11 px-4 rounded-xl text-sm focus:outline-none focus:ring-2 focus:ring-primary/40 placeholder:text-muted-foreground/50 text-center tracking-widest","data-testid":"input-admin-pin"})}),a.jsx(gn,{children:i&&a.jsx(le.p,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},className:"text-red-500 text-xs text-center","data-testid":"text-pin-error",children:i})}),a.jsx("button",{type:"submit",disabled:c||!t.trim(),className:"w-full h-11 bg-primary text-primary-foreground rounded-xl text-sm font-medium hover:opacity-90 transition-all disabled:opacity-50 disabled:cursor-not-allowed","data-testid":"button-submit-pin",children:c?"Verifying...":"Unlock"})]}),a.jsx("div",{className:"mt-6 text-center",children:a.jsx(sn,{href:"/smart-home",children:a.jsxs("button",{className:"text-xs text-muted-foreground hover:text-foreground transition-colors flex items-center gap-1.5 mx-auto","data-testid":"link-back-from-pin",children:[a.jsx(uf,{className:"w-3 h-3"}),"Back to Dashboard"]})})})]})})}function MY(){const{editMode:e}
1439=qf(),[t,s]=p.useState(!1),[i,o]=p.useState([]),[c,u]=p.useState(""),[f,h]=p.useState(""),[m,x]=p.useState(!0),[y,b]=p.useState(!1),[w,C]=p.useState(null),[j,S]=p.useState(""),T=async()=>{try{const D=await fetch("/api/pitchdeck/passwords",{credentials:"include"});if(!D.ok){S(D.status===401?"Unauthorized":"Failed to load passwords");return}const P=await D.json();o(Array.isArray(P)?P:[])}catch{S("Failed to load passwords")}finally{x(!1)}};p.useEffect(()=>{fetch("/api/pitchdeck/check-admin",{credentials:"include"}).then(D=>D.json()).then(D=>{D.verified&&s(!0)}).catch(()=>{})},[]),p.useEffect(()=>{t?T():x(!1)},[t]);const M=async D=>{if(D.preventDefault(),!!c.trim()){b(!0),S("");try{const P=await fetch("/api/pitchdeck/passwords",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({password:c,label:f||null}),credentials:"include"});if(P.ok)u(""),h(""),await T();else{const O=await P.json();S(O.message||"Failed to add password")}}catch{S("Failed to add password")}finally{b(!1)}}},k=async D=>{try{await fetch(`/api/pitchdeck/passwords/${D}`,{method:"DELETE",credentials:"include"}),await T()}catch{S("Failed to delete password")}},R=(D,P)=>{navigator.clipboard.writeText(D),C(P),setTimeout(()=>C(null),2e3)};return e?t?a.jsxs("div",{className:"min-h-screen bg-background",children:[a.jsx("header",{className:"border-b border-border/50 bg-background/80 backdrop-blur-xl",children:a.jsxs("div",{className:"max-w-3xl mx-auto px-6 py-4 flex items-center justify-between",children:[a.jsxs("div",{className:"flex items-center gap-4",children:[a.jsx(sn,{href:"/smart-home",children:a.jsx("button",{className:"text-muted-foreground hover:text-foreground transition-colors","data-testid":"button-back",children:a.jsx(uf,{className:"w-5 h-5"})})}),a.jsxs("div",{children:[a.jsx("h1",{className:"text-lg font-serif tracking-wide text-foreground","data-testid":"text-page-title",children:"Pitch Deck Passwords"}),a.jsx("p",{className:"text-xs text-muted-foreground",children:"Manage investor access codes"})]})]}),a.jsx(sn,{href:"/pitchdeck",target:"_blank",children:a.jsx("button",{className:"text-xs tracking-wider uppercase text-primary border border-primary/20 px-3 py-1.5 rounded-lg hover:bg-primary/5 transition-all","data-testid":"link-preview-pitchdeck",children:"Preview Pitch Deck"})})]})}),a.jsxs("main",{className:"max-w-3xl mx-auto px-6 py-8",children:[a.jsx("form",{onSubmit:M,className:"mb-8","data-testid":"form-add-password",children:a.jsxs("div",{className:"bg-card border border-border rounded-xl p-6",children:[a.jsxs("h3",{className:"text-sm font-semibold text-foreground mb-4 flex items-center gap-2",children:[a.jsx(Qx,{className:"w-4 h-4"}),"Create New Access Code"]}),a.jsxs("div",{className:"grid sm:grid-cols-2 gap-3 mb-4",children:[a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-muted-foreground mb-1 block",children:"Password *"}),a.jsx("input",{type:"text",value:c,onChange:D=>u(D.target.value),placeholder:"e.g. sequoia-spring-2026",className:"w-full bg-background border border-border text-foreground h-10 px-3 rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-primary/30","data-testid":"input-new-password"})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-xs text-muted-foreground mb-1 block",children:"Label (optional)"}),a.jsxs("div",{className:"relative",children:[a.jsx(G8,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-3.5 h-3.5 text-muted-foreground/50"}),a.jsx("input",{type:"text",value:f,onChange:D=>h(D.target.value),placeholder:"e.g. Sequoia - March 2026",className:"w-full bg-background border border-border text-foreground h-10 pl-9 pr-3 rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-primary/30","data-testid":"input-new-label"})]})]})]}),a.jsx("button",{type:"submit",disabled:y||!c.trim(),className:"bg-primary text-primary-foreground px-4 py-2 rounded-lg text-sm font-medium hover:opacity-90 transition-all disabled:opacity-50 disabled:cursor-not-allowed","data-testid":"button-add-password",children:y?"Creating...":"Create Access Code"})]})}),a.jsx(gn,{children:j&&a.jsx(le.div,{initial:{opacity:0,height:0}
1439,animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},className:"mb-4 p-3 bg-red-500/10 border border-red-500/20 rounded-lg text-red-500 text-sm","data-testid":"text-error",children:j})}),a.jsxs("div",{children:[a.jsxs("h3",{className:"text-sm font-semibold text-foreground mb-4",children:["Active Access Codes (",i.length,")"]}),m?a.jsx("div",{className:"flex items-center justify-center py-12",children:a.jsx("div",{className:"w-6 h-6 border-2 border-primary/20 border-t-primary rounded-full animate-spin"})}):i.length===0?a.jsxs("div",{className:"text-center py-12 text-muted-foreground",children:[a.jsx(Vg,{className:"w-8 h-8 mx-auto mb-3 opacity-30"}),a.jsx("p",{className:"text-sm",children:"No access codes created yet."})]}):a.jsx("div",{className:"space-y-2",children:i.map((D,P)=>a.jsxs(le.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:P*.05},className:"bg-card border border-border rounded-xl p-4 flex items-center justify-between gap-4 group","data-testid":`card-password-${D.id}`,children:[a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[a.jsx("code",{className:"text-sm font-mono text-foreground bg-muted px-2 py-0.5 rounded","data-testid":`text-password-value-${D.id}`,children:D.password}),a.jsx("button",{onClick:()=>R(D.password,D.id),className:"text-muted-foreground hover:text-foreground transition-colors","data-testid":`button-copy-${D.id}`,children:w===D.id?a.jsx(ia,{className:"w-3.5 h-3.5 text-green-500"}):a.jsx(gO,{className:"w-3.5 h-3.5"})})]}),D.label&&a.jsx("p",{className:"text-xs text-muted-foreground truncate","data-testid":`text-password-label-${D.id}`,children:D.label}),a.jsxs("p",{className:"text-[10px] text-muted-foreground/50 mt-1",children:["Created ",new Date(D.createdAt).toLocaleDateString()]})]}),a.jsx("button",{onClick:()=>k(D.id),className:"text-muted-foreground/50 hover:text-red-500 transition-colors opacity-0 group-hover:opacity-100","data-testid":`button-delete-${D.id}`,children:a.jsx(Xx,{className:"w-4 h-4"})})]},D.id))})]})]})]}):a.jsx(EY,{onVerified:()=>s(!0)}):a.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center p-6",children:a.jsxs("div",{className:"text-center",children:[a.jsx(Vg,{className:"w-12 h-12 text-muted-foreground/30 mx-auto mb-4"}),a.jsx("h2",{className:"text-xl font-serif text-foreground/80 mb-2",children:"Edit Mode Required"}),a.jsx("p",{className:"text-muted-foreground text-sm mb-6",children:"Enable edit mode to manage pitch deck passwords."}),a.jsx(sn,{href:"/smart-home",children:a.jsxs("button",{className:"text-sm text-primary hover:underline flex items-center gap-2 mx-auto","data-testid":"link-back-dashboard",children:[a.jsx(uf,{className:"w-4 h-4"}),"Back to Dashboard"]})})]})})}const AY={id:"demo-water-heater",title:"Water Heater Malfunction",shortDescription:"Detected unusual temperature drop in basement water heater",diagnosticsHeading:"Water Heater Diagnostics",diagnosticsSubtitle:"Basement utility room · Last reading 3 min ago",issues:[{label:"Pilot light failure",desc:"Water temperature has dropped 18°F over the past 2 hours"},{label:"Pressure relief valve activity",desc:"Abnormal pressure spikes detected on the relief line"},{label:"Heating element draw",desc:"Element may be partially shorted â power draw is 30% above baseline"}],recommendation:"Schedule a service visit within 24 hours to prevent water damage and full hot-water loss."};async function DY(e,t,s){await fetch(`/api/smart-home/devices/${e}/command`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:t,value:s}),credentials:"include"})}async function _t(e,t,s,i){const o=e.filter(c=>t.includes(c.type));await Promise.all(o.map(c=>DY(c.id,s,i)))}const OY=[{id:"emergency",icon:Qa,label:"Appliance Failure",tagline:"Water heater offline",description:"Critical fault detected. Lights flash to alert mode and the security system runs an automatic scan across all estate devices.",color:"#ef4444",triggersAlert:!0,run:async e=>{await _t(e,["dimmer","multicolor_light","switch"],"turnOn"),await _t(e,["dimmer","multicolor_light"],"setLevel",100),await fetch("/api/security/scan",{method:"POST",credentials:"include"}),await new Promise(t=>setTimeout(t,800)),await _t(e,["dimmer","multicolor_light"],"setLevel",20)}},{id:"night",icon:$c,label:"Night Routine",tagline:"Wind-down for the bedroom",description:"Dims every light to 12%, closes all shades, and dials the thermostat down to a perfect sleeping temperature.",color:"#818cf8",run:async e=>{await _t(e,["dimmer","multicolor_light"],"setLevel",12),await _t(e,["shade"],"setPosition",0),await _t(e,["thermostat"],"setTemperature",68)}},{id:"morning",icon:il,label:"Good Morning",tagline:"Rise & energise",description:"Opens every shade to let in natural light, raises lighting to a warm 80%, and sets the estate to daytime temperature.",color:"#f59e0b",run:async e=>{await _t(e,["dimmer","multicolor_light","switch"],"turnOn"),await _t(e,["dimmer","multicolor_light"],"setLevel",80),await _t(e,["shade"],"setPosition",100),await _t(e,["thermostat"],"setTemperature",72)}},{id:"movie",icon:LS,label:"Movie Night",tagline:"Cinematic ambiance",description:"Drops all lights near-black, closes every shade, and sets a cosy temperature â the full cinema experience in one tap.",color:"#c084fc",run:async e=>{await _t(e,["dimmer","multicolor_light"],"setLevel",5),await _t(e,["shade"],"setPosition",0),await _t(e,["thermostat"],"setTemperature",70)}},{id:"away",icon:Hi,label:"Away Mode",tagline:"Estate secured",description:"Kills all lights, closes every shade, and lowers the thermostat to economy â the whole estate secured remotely with one command.",color:"#34d399",run:async e=>{await _t(e,["dimmer","multicolor_light","switch","speaker","fan","media_player"],"turnOff"),await _t(e,["shade"],"setPosition",0),await _t(e,["thermostat"],"setTemperature",62)}},{id:"entertain",icon:ed,label:"Entertaining",tagline:"Host without lifting a finger",description:"Warm lighting at 75%, shades half-open for golden-hour ambiance, and the thermostat set for a full house of guests.",color:"#c9a84c",run:async e=>{await _t(e,["dimmer","multicolor_light","switch"],"turnOn"),await _t(e,["dimmer","multicolor_light"],"setLevel",75),await _t(e,["shade"],"setPosition",50),await _t(e,["thermostat"],"setTemperature",70)}}];function RY(){const e=Fs(),[t,s]=p.useState(null),[i,o]=p.useState([]),{data:c=[]}=Gt({queryKey:["/api/smart-home/rooms"],refetchInterval:3e4}),{data:u=[]}=Gt({queryKey:["/api/smart-home/devices"],refetchInterval:5e3}),{data:f=[]}=Gt({queryKey:["/api/smart-home/scenes"],refetchInterval:5e3}),{data:h=[]}=Gt({queryKey:["/api/smart-home/automations"],refetchInterval:1e4}),{data:m=[]}=Gt({queryKey:["/api/smart-home/activity"],refetchInterval:5e3});p.useEffect(()=>{c.length>0&&!t&&s(c[0].id)},[c,t]);const x=dn({mutationFn:async({deviceId:S,action:T,value:M})=>(await fetch(`/api/smart-home/devices/${S}/command`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:T,value:M}),credentials:"include"})).json(),onSuccess:()=>e.invalidateQueries({queryKey:["/api/smart-home/devices"]})}),y=dn({mutationFn:async S=>(await fetch(`/api/smart-home/scenes/${S}/activate`,{method:"POST",credentials:"include"})).json(),onSuccess:()=>
1439{e.invalidateQueries({queryKey:["/api/smart-home/devices"]}),e.invalidateQueries({queryKey:["/api/smart-home/scenes"]})}}),b=p.useCallback((S,T,M)=>{x.mutate({deviceId:S,action:T,value:M})},[x]),w=p.useCallback(async S=>{await Promise.all(S.map(T=>fetch(`/api/smart-home/devices/${T.deviceId}/command`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:T.action,value:T.value}),credentials:"include"}))),e.invalidateQueries({queryKey:["/api/smart-home/devices"]})},[e]),C=p.useCallback(S=>{y.mutate(S)},[y]),j=p.useCallback(async S=>{o(T=>[...T,{role:"user",content:S}]);try{const M=await(await fetch("/api/smart-home/ai/chat",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({message:S,history:i.slice(-10)}),credentials:"include"})).json();return o(k=>[...k,{role:"assistant",content:M.response,actions:M.actions}]),e.invalidateQueries({queryKey:["/api/smart-home/devices"]}),M.response}catch{const T="I'm sorry, I encountered an error processing your request.";return o(M=>[...M,{role:"assistant",content:T}]),T}},[i,e]);return a.jsx(M3,{rooms:c,devices:u,scenes:f,automations:h,activityLogs:m,selectedRoomId:t,setSelectedRoomId:s,onDeviceCommand:b,onBatchDeviceCommands:w,onSceneActivate:C,onSendMessage:j,chatMessages:i,hideHomeAssistant:!0,hideEditMode:!0})}function _Y(){const e=Fs(),[,t]=ns(),[s,i]=p.useState(!1),o=p.useRef(!1),[c,u]=p.useState(!1),[f,h]=p.useState(0);p.useEffect(()=>{o.current||(o.current=!0,fetch("/api/pitchdeck/check",{credentials:"include"}).then(F=>F.json()).then(F=>{F.authenticated?i(!0):t("/demo-login")}).catch(()=>t("/demo-login")))},[]);const[m,x]=p.useState(null),[y,b]=p.useState(null),[w,C]=p.useState(null),[j,S]=p.useState(!1),[T,M]=p.useState(!1),[k,R]=p.useState(!0),[D,P]=p.useState([]),[O,_]=p.useState(!1);p.useEffect(()=>{const F=()=>{const ie=window.innerWidth<=1024;M(ie),ie&&S(!0)};return F(),window.addEventListener("resize",F),()=>window.removeEventListener("resize",F)},[]),p.useEffect(()=>{(async()=>{try{await fetch("/api/demo/start",{method:"POST",credentials:"include"});const F=await fetch("/api/smart-home/devices",{credentials:"include"});if(F.ok){const ie=await F.json();h(ie.length)}}finally{u(!0)}})()},[]);const G=p.useCallback(async F=>{if(!(y||!c)){x(F.id),b(F.id),C(null),F.id!=="emergency"&&(P([]),_(!1)),T&&S(!0);try{const ie=await fetch("/api/smart-home/devices",{credentials:"include"}),I=ie.ok?await ie.json():[];await F.run(I),e.invalidateQueries({queryKey:["/api/smart-home/devices"]}),C(F.id),setTimeout(()=>C(null),3e3),F.triggersAlert&&(P([AY]),_(!1))}finally{b(null)}}},[y,c,e,T]),ne=p.useCallback(async()=>{if(!(y||!c)){b("reset"),x(null),C(null),P([]),_(!1),T&&S(!0);try{const F=await fetch("/api/smart-home/devices",{credentials:"include"}),ie=F.ok?await F.json():[];await Promise.all([_t(ie,["dimmer","multicolor_light","switch"],"turnOn"),_t(ie,["dimmer","multicolor_light"],"setLevel",60),_t(ie,["shade"],"setPosition",70),_t(ie,["thermostat"],"setTemperature",71)]),e.invalidateQueries({queryKey:["/api/smart-home/devices"]})}finally{b(null)}}},[y,c,e,T]),se=p.useCallback(F=>{P(ie=>ie.filter(I=>I.id!==F))},[]),ce=p.useCallback(F=>{_(!0),P([])},[]);if(!s)return a.jsx("div",{className:"fixed inset-0 bg-[#07090f] flex items-center justify-center",children:a.jsx("div",{className:"w-8 h-8 border-2 border-white/10 border-t-white/30 rounded-full animate-spin"})});const Z=a.jsxs("div",{className:"w-[288px] h-full flex flex-col bg-[#07090f] border-r border-white/[0.07]",children:[a.jsxs("div",{className:"px-5 pt-5 pb-4 border-b border-white/[0.05]",children:[a.jsxs("div",{className:"flex items-center gap-2.5 mb-3",children:[a.jsx("img",{src:"/domovita-mark.svg",alt:"DomoVita",className:"h-8"}),a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsxs("p",{className:"text-white text-sm font-light tracking-widest",style:{fontFamily:"'Cormorant Garamond', serif"},children:["DomoVita",a.jsx("span",{className:"text-[#c9a84c]",children:".ai"})]}),a.jsx("p",{className:"text-white/30 text-[9px] tracking-[0.35em] uppercase",children:"Sandbox Demo"})]}),T&&a.jsx("button",{onClick:()=>S(!0),className:"flex-shrink-0 h-12 w-12 flex items-center justify-center rounded-lg hover:bg-white/10 text-white/40 hover:text-white/80 transition-colors","data-testid":"button-demo-sidebar-close","aria-label":"Close scenarios panel",children:a.jsx(Ui,{className:"w-4 h-4"})})]}),a.jsx("div",{className:`flex items-center gap-2 px-3 py-1.5 rounded border text-[10px] tracking-wide transition-all ${c?"border-[#34d399]/20 bg-[#34d399]/5 text-[#34d399]/80":"border-white/10 bg-white/5 text-white/30"}`,children:c?a.jsxs(a.Fragment,{children:[a.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-[#34d399] animate-pulse flex-shrink-0"}),a.jsxs("span",{children:[f," devices · Live"]})]}):a.jsxs(a.Fragment,{children:[a.jsx(br,{className:"w-3 h-3 animate-spin flex-shrink-0"}),a.jsx("span",{children:"Connectingâ¦"})]})})]}),a.jsx(gn,{children:D.length>0&&a.jsx(le.div,{initial:{opacity:0,height:0}
1439,animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},className:"overflow-hidden",children:a.jsxs("div",{className:"mx-3 mt-3 px-3 py-2.5 rounded-lg border border-red-400/30 bg-red-500/10 flex items-center gap-2.5",children:[a.jsx("span",{className:"w-2 h-2 rounded-full bg-red-400 animate-pulse flex-shrink-0 shadow-[0_0_6px_rgba(239,68,68,0.8)]"}),a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsx("p",{className:"text-red-300 text-[10px] font-semibold tracking-wide",children:"Critical Alert Active"}),a.jsx("p",{className:"text-red-400/60 text-[9px] truncate",children:"Water heater malfunction detected"})]})]})})}),a.jsx(gn,{children:O&&!D.length&&a.jsx(le.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},className:"overflow-hidden",children:a.jsxs("div",{className:"mx-3 mt-3 px-3 py-2.5 rounded-lg border border-emerald-400/20 bg-emerald-500/8 flex items-center gap-2.5",children:[a.jsx("span",{className:"w-2 h-2 rounded-full bg-emerald-400 flex-shrink-0"}),a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsx("p",{className:"text-emerald-300 text-[10px] font-semibold tracking-wide",children:"Service Scheduled"}),a.jsx("p",{className:"text-emerald-400/60 text-[9px]",children:"Technician arriving tomorrow 9â11 AM"})]})]})})}),a.jsxs("div",{className:"flex-1 overflow-y-auto px-3 py-3 space-y-1 scrollbar-none",children:[a.jsx("p",{className:"text-white/20 text-[9px] tracking-[0.3em] uppercase px-2 mb-2.5",children:"Trigger a scenario"}),OY.map(F=>{const ie=F.icon,I=m===F.id,H=y===F.id,$=w===F.id,re=F.triggersAlert&&D.length>0;return a.jsx(le.button,{onClick:()=>G(F),disabled:!!y||!c,whileTap:{scale:.98},"data-testid":`button-demo-${F.id}`,className:"w-full text-left px-3.5 rounded-lg border transition-all duration-200 group disabled:opacity-40 disabled:cursor-not-allowed",style:{minHeight:"52px",paddingTop:"10px",paddingBottom:"10px",...I?{borderColor:`${F.color}30`,background:`${F.color}09`}:{borderColor:"transparent"}},onMouseEnter:me=>{I||(me.currentTarget.style.borderColor="rgba(255,255,255,0.08)")},onMouseLeave:me=>{I||(me.currentTarget.style.borderColor="transparent")},children:a.jsxs("div",{className:"flex items-start gap-3",children:[a.jsxs("div",{className:"w-8 h-8 rounded-lg flex items-center justify-center flex-shrink-0 mt-0.5 relative",style:{background:I?`${F.color}20`:"rgba(255,255,255,0.04)"},children:[H?a.jsx(br,{className:"w-3.5 h-3.5 animate-spin",style:{color:F.color}}):$?a.jsx(ZD,{className:"w-3.5 h-3.5",style:{color:F.color}}):a.jsx(ie,{className:"w-3.5 h-3.5",style:{color:I?F.color:"rgba(255,255,255,0.38)"}}),re&&a.jsx("span",{className:"absolute -top-1 -right-1 w-2.5 h-2.5 rounded-full bg-red-500 border border-[#07090f] shadow-[0_0_6px_rgba(239,68,68,0.9)]"})]}),a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsxs("div",{className:"flex items-center justify-between gap-1",children:[a.jsx("p",{className:"text-white/90 text-xs font-medium leading-tight truncate",children:F.label}),$&&a.jsx("span",{className:"text-[9px] tracking-wider flex-shrink-0",style:{color:F.color},children:"Applied â"}),H&&a.jsx("span",{className:"text-[9px] text-white/30 tracking-wider flex-shrink-0",children:"Runningâ¦"}),re&&!H&&a.jsx("span",{className:"text-[9px] text-red-400/80 tracking-wider flex-shrink-0 animate-pulse",children:"â Alert"})]}),a.jsx("p",{className:"text-white/35 text-[10px] leading-tight mt-0.5",children:F.tagline}),a.jsx(gn,{children:I&&!H&&!$&&!re&&a.jsx(le.p,{initial:{opacity:0,height:0,marginTop:0},animate:{opacity:1,height:"auto",marginTop:8},exit:{opacity:0,height:0,marginTop:0},className:"text-white/45 text-[10px] leading-relaxed",children:F.description})}),!I&&!y&&a.jsxs("div",{className:"flex items-center gap-1 mt-2 opacity-0 group-hover:opacity-100 transition-opacity",children:[a.jsx($g,{className:"w-2.5 h-2.5 text-white/25"}),a.jsx("span",{className:"text-[9px] text-white/25 tracking-wider",children:"Run scenario"})]})]})]})},F.id)})]}),a.jsx("div",{className:"px-3 pb-5 pt-3 border-t border-white/[0.05] space-y-2",children:a.jsxs("button",{onClick:ne,disabled:!!y||!c,"data-testid":"button-demo-reset",className:"w-full flex items-center justify-center gap-2 rounded-lg border border-white/10 text-white/40 text-[10px] tracking-[0.2em] uppercase hover:border-white/20 hover:text-white/60 transition-all disabled:opacity-30 disabled:cursor-not-allowed",style:{minHeight:"48px"},children:[y==="reset"?a.jsx(br,{className:"w-3 h-3 animate-spin"}):a.jsx(HS,{className:"w-3 h-3"}),"Reset Estate"]})})]});return a.jsxs("div",{className:"fixed inset-0 flex bg-[#07090f] overflow-hidden",style:{fontFamily:"'Montserrat', sans-serif"},children:[a.jsx(gn,{children:k&&a.jsxs(le.div,{initial:{opacity:1},exit:{opacity:0}
1439,transition:{duration:.5},className:"fixed inset-0 z-[100] flex flex-col items-center justify-center bg-[#07090f] cursor-pointer select-none",onClick:()=>R(!1),onTouchStart:()=>R(!1),"data-testid":"demo-splash-screen",children:[a.jsxs(le.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{delay:.15,duration:.5},className:"flex flex-col items-center gap-6",children:[a.jsx("img",{src:"/domovita-mark.svg",alt:"DomoVita",className:"h-20 opacity-90"}),a.jsxs("div",{className:"text-center",children:[a.jsxs("p",{className:"text-white text-2xl font-light tracking-[0.3em] mb-1",style:{fontFamily:"'Cormorant Garamond', serif"},children:["DomoVita",a.jsx("span",{className:"text-[#c9a84c]",children:".ai"})]}),a.jsx("p",{className:"text-white/30 text-[10px] tracking-[0.45em] uppercase",children:"Sonoma Vineyard Estates"})]}),a.jsxs(le.div,{animate:{opacity:[.4,1,.4]},transition:{duration:2,repeat:1/0,ease:"easeInOut"},className:"mt-6 flex flex-col items-center gap-2",children:[a.jsx("div",{className:"w-10 h-10 rounded-full border border-white/20 flex items-center justify-center",children:a.jsx("span",{className:"text-white/60 text-lg",children:"â"})}),a.jsx("p",{className:"text-white/40 text-xs tracking-[0.3em] uppercase",children:"Tap to Begin"})]})]}),a.jsx("p",{className:"absolute bottom-8 text-white/15 text-[9px] tracking-[0.3em] uppercase",children:"Live Estate Demo"})]})}),a.jsx(gn,{children:D.length>0&&a.jsx(gy,{alerts:D,onDismiss:se,primaryAction:{label:"Schedule for Repair",icon:a.jsx(mf,{className:"w-4 h-4"}),onClick:ce}})}),a.jsx(gn,{children:O&&a.jsx(le.div,{initial:{opacity:0,y:-20},animate:{opacity:1,y:0},exit:{opacity:0,y:-20},className:"fixed top-6 right-6 z-50 max-w-sm bg-emerald-500/20 backdrop-blur-xl border border-emerald-400/40 rounded-2xl px-5 py-4 shadow-[0_0_24px_rgba(52,211,153,0.3)]",children:a.jsxs("div",{className:"flex items-start gap-3",children:[a.jsx("div",{className:"w-8 h-8 rounded-lg bg-emerald-500/20 border border-emerald-400/40 flex items-center justify-center flex-shrink-0",children:a.jsx(mf,{className:"w-4 h-4 text-emerald-400"})}),a.jsxs("div",{children:[a.jsx("p",{className:"text-emerald-300 text-sm font-semibold",children:"Service Scheduled"}),a.jsx("p",{className:"text-white/50 text-xs mt-0.5",children:"A certified technician will arrive tomorrow, 9â11 AM."})]})]})})}),!T&&a.jsx(le.div,{initial:{width:288},animate:{width:j?0:288},transition:{duration:.3,ease:"easeInOut"},className:"flex-shrink-0 overflow-hidden relative z-10",children:Z}),T&&a.jsxs(a.Fragment,{children:[a.jsx(gn,{children:!j&&a.jsx(le.div,{initial:{opacity:0}
1439,animate:{opacity:1},exit:{opacity:0},transition:{duration:.25},className:"fixed inset-0 z-20 bg-black/50 backdrop-blur-sm",onClick:()=>S(!0),"data-testid":"demo-sidebar-backdrop"})}),a.jsx(le.div,{initial:{x:-288},animate:{x:j?-288:0},transition:{duration:.3,ease:"easeInOut"},className:"fixed inset-y-0 left-0 z-30 w-[288px] overflow-hidden",style:{WebkitTransform:"translateZ(0)",transform:"translateZ(0)"},children:Z})]}),!T&&a.jsx(le.button,{animate:{left:j?0:288},transition:{duration:.3,ease:"easeInOut"},onClick:()=>S(F=>!F),"data-testid":"button-demo-collapse",className:"absolute top-1/2 -translate-y-1/2 z-20 w-5 h-10 flex items-center justify-center bg-[#0d1018] border border-white/[0.08] rounded-r text-white/20 hover:text-white/50 hover:border-white/20 transition-colors",children:a.jsx(le.div,{animate:{rotate:j?180:0},transition:{duration:.3},children:a.jsx(d8,{className:"w-3 h-3"})})}),T&&j&&a.jsxs(le.button,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},onClick:()=>S(!1),"data-testid":"button-demo-scenarios-fab",className:"fixed bottom-6 left-6 z-50 flex items-center gap-2.5 px-5 rounded-full shadow-[0_4px_24px_rgba(201,168,76,0.35)] border border-[#c9a84c]/40 bg-[#c9a84c]/20 backdrop-blur-xl text-[#c9a84c] text-sm font-medium tracking-wide transition-all active:scale-95",style:{minHeight:"48px"},children:[a.jsx(Qa,{className:"w-4 h-4"}),"Scenarios"]}),a.jsxs("div",{className:"flex-1 relative overflow-hidden",style:{transform:"translateZ(0)",WebkitTransform:"translateZ(0)"},children:[a.jsxs("div",{className:"absolute top-3 right-4 z-10 flex items-center gap-2 bg-black/40 backdrop-blur-sm border border-white/[0.08] rounded px-3 py-1.5 pointer-events-none",children:[a.jsx(Yo,{className:"w-3 h-3 text-[#34d399]/60"}),a.jsx("span",{className:"text-white/30 text-[9px] tracking-[0.25em] uppercase",children:"Live Estate View"})]}),a.jsx(gn,{children:!c&&a.jsxs(le.div,{initial:{opacity:1},exit:{opacity:0},className:"absolute inset-0 z-20 bg-[#07090f] flex flex-col items-center justify-center gap-4",children:[a.jsx("img",{src:"/domovita-mark.svg",alt:"",className:"h-12 opacity-60"}),a.jsxs("div",{className:"flex items-center gap-2 text-white/30 text-xs tracking-widest",children:[a.jsx(br,{className:"w-4 h-4 animate-spin"}),a.jsx("span",{children:"Initialising estate systemsâ¦"})]})]})}),c&&a.jsx(RY,{})]})]})}function PY(){const[e,t]=p.useState(""),[s,i]=p.useState(""),[o,c]=p.useState(!1),[u,f]=p.useState(!1),[h,m]=p.useState(!0),[,x]=ns();p.useEffect(()=>{fetch("/api/pitchdeck/check",{credentials:"include"}).then(b=>b.json()).then(b=>{b.authenticated&&x("/demo"),m(!1)}).catch(()=>m(!1))},[]);const y=async b=>{b.preventDefault(),i(""),c(!0);try{const w=await fetch("/api/pitchdeck/verify",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({password:e.trim()}),credentials:"include"});if(w.ok)x("/demo");else{const C=await w.json();i(C.message||"Incorrect access code"),c(!1)}}catch{i("Something went wrong. Please try again."),c(!1)}};return h?a.jsx("div",{className:"min-h-screen flex items-center justify-center bg-[#07090f]",children:a.jsx("div",{className:"w-8 h-8 border-2 border-white/10 border-t-white/50 rounded-full animate-spin"})}):a.jsxs("div",{className:"fixed inset-0 bg-[#07090f] flex items-center justify-center",style:{fontFamily:"'Montserrat', sans-serif"},children:[a.jsx("div",{className:"absolute inset-0 overflow-hidden pointer-events-none",children:a.jsx("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[600px] h-[600px] bg-[#c9a84c]/4 rounded-full blur-3xl"})}),a.jsxs(le.div,{initial:{opacity:0,y:24},animate:{opacity:1,y:0},transition:{duration:.8,ease:[.25,.46,.45,.94]},className:"relative z-10 w-full max-w-xs flex flex-col items-center px-6",children:[a.jsx(le.img,{src:"/domovita-mark.svg",alt:"DomoVita",className:"h-16 opacity-90 mb-10",initial:{opacity:0,scale:.9},animate:{opacity:.9,scale:1},transition:{duration:.7,delay:.15}}),a.jsxs(le.div,{className:"text-center mb-10",initial:{opacity:0}
1439,animate:{opacity:1},transition:{duration:.6,delay:.3},children:[a.jsx("p",{className:"text-[#c9a84c]/60 text-[9px] tracking-[0.45em] uppercase mb-3 font-medium",children:"Estate Demo"}),a.jsxs("h1",{className:"text-white text-2xl font-light tracking-wide mb-1",style:{fontFamily:"'Cormorant Garamond', serif"},children:["DomoVita",a.jsx("span",{className:"text-[#c9a84c]",children:".ai"})]}),a.jsx("p",{className:"text-white/25 text-[10px] tracking-[0.35em] uppercase mt-1",children:"Sonoma Vineyard Estates"}),a.jsx("div",{className:"w-10 h-px bg-gradient-to-r from-transparent via-[#c9a84c]/30 to-transparent mx-auto mt-5"})]}),a.jsxs(le.form,{onSubmit:y,className:"w-full space-y-4",initial:{opacity:0,y:8},animate:{opacity:1,y:0},transition:{duration:.6,delay:.5},children:[a.jsxs("div",{className:"relative group",children:[a.jsx("div",{className:"absolute left-4 top-1/2 -translate-y-1/2 text-white/25 group-focus-within:text-[#c9a84c]/60 transition-colors",children:a.jsx(En,{className:"w-4 h-4"})}),a.jsx("input",{type:u?"text":"password",placeholder:"Enter access code",value:e,onChange:b=>t(b.target.value),onPaste:b=>setTimeout(()=>t(b.target.value.trim()),0),autoFocus:!0,className:"w-full bg-white/[0.04] border border-white/10 text-white placeholder:text-white/20 h-12 pl-11 pr-11 rounded-xl focus:outline-none focus:ring-1 focus:ring-[#c9a84c]/30 focus:border-[#c9a84c]/20 transition-all text-sm tracking-wide"}),a.jsx("button",{type:"button",onClick:()=>f(b=>!b),className:"absolute right-4 top-1/2 -translate-y-1/2 text-white/25 hover:text-white/50 transition-colors",children:u?a.jsx(Gx,{className:"w-4 h-4"}):a.jsx(al,{className:"w-4 h-4"})})]}),a.jsx(gn,{children:s&&a.jsx(le.p,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},className:"text-red-400/80 text-xs text-center tracking-wide",children:s})}),a.jsx(le.button,{type:"submit",disabled:o||!e,whileHover:{scale:1.01},whileTap:{scale:.99},className:"w-full bg-gradient-to-r from-[#c9a84c]/20 to-[#c9a84c]/15 hover:from-[#c9a84c]/30 hover:to-[#c9a84c]/25 text-[#c9a84c]/90 border border-[#c9a84c]/20 h-12 font-medium rounded-xl transition-all disabled:opacity-30 disabled:cursor-not-allowed text-xs tracking-[0.25em] uppercase flex items-center justify-center gap-2",children:o?a.jsx("div",{className:"w-4 h-4 border-2 border-[#c9a84c]/30 border-t-[#c9a84c] rounded-full animate-spin"}):a.jsxs(a.Fragment,{children:["Access Demo",a.jsx(Vn,{className:"w-3.5 h-3.5"})]})})]}),a.jsx(le.p,{initial:{opacity:0}
1439,animate:{opacity:1},transition:{duration:.6,delay:1},className:"text-white/15 text-[9px] mt-10 tracking-[0.35em] uppercase",children:"For authorized recipients only"})]})]})}const sE="/assets/community-sonoma-fwJ6bNUs.jpg",kt="#a8792a",Lc="#c9a84c",gh="rgba(168,121,42,0.09)",$i="rgba(168,121,42,0.28)",zY="#ffffff",aE="#faf9f6",Ir="#0d1117",tl="#3a3f4a",Bi="#6b7180",Ga="rgba(0,0,0,0.07)",$s="'Cormorant Garamond', Georgia, serif",It="'Montserrat', Arial, sans-serif",yl={width:"3.67in",height:"8.5in",backgroundColor:zY,color:Ir,fontFamily:It,position:"relative",overflow:"hidden",flexShrink:0,display:"flex",flexDirection:"column"};function fa({style:e}){return a.jsx("div",{style:{height:"1px",background:`linear-gradient(90deg, transparent, ${Lc}, transparent)`,...e}})}function xh({src:e,alt:t,style:s}){return a.jsx("div",{style:{borderRadius:"6px",overflow:"hidden",border:`1px solid ${$i}`,boxShadow:"0 4px 16px rgba(0,0,0,0.12)",...s},children:a.jsx("img",{src:e,alt:t,style:{width:"100%",display:"block",objectFit:"cover"}})})}function iE({size:e="md"}){const t=e==="lg"?"28px":e==="md"?"20px":"14px";return a.jsxs("div",{style:{fontFamily:$s,fontWeight:300,letterSpacing:"0.12em",display:"flex",alignItems:"baseline",gap:"1px"},children:[a.jsx("span",{style:{fontSize:t,color:Ir},children:"DomoVita"}),a.jsx("span",{style:{fontSize:t,color:kt},children:".AI"})]})}function rE({children:e}){return a.jsx("span",{style:{fontFamily:It,fontSize:"7px",letterSpacing:"0.2em",textTransform:"uppercase",color:kt,border:`1px solid ${$i}`,borderRadius:"100px",padding:"3px 9px",background:gh,display:"inline-block"},children:e})}function zr({children:e}){return a.jsx("p",{style:{fontFamily:It,fontSize:"7.5px",letterSpacing:"0.35em",textTransform:"uppercase",color:kt,marginBottom:"8px"},children:e})}function by({children:e}){return a.jsx("h2",{style:{fontFamily:$s,fontSize:"22px",fontWeight:300,lineHeight:1.15,color:Ir},children:e})}function LY(){return a.jsxs("div",{style:{...yl,justifyContent:"space-between",padding:"0.48in 0.38in"},className:"brochure-panel",children:[a.jsx("div",{style:{position:"absolute",inset:0,backgroundImage:"linear-gradient(rgba(168,121,42,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(168,121,42,0.04) 1px, transparent 1px)",backgroundSize:"32px 32px",pointerEvents:"none"}}),a.jsx("div",{style:{position:"absolute",top:0,right:0,width:"60%",height:"40%",background:"radial-gradient(ellipse at top right, rgba(201,168,76,0.06) 0%, transparent 70%)",pointerEvents:"none"}}),a.jsxs("div",{style:{position:"relative",zIndex:2},children:[a.jsx("div",{style:{width:"40px",height:"40px",border:`1.5px solid ${$i}`,borderRadius:"9px",display:"flex",alignItems:"center",justifyContent:"center",background:gh,marginBottom:"14px"},children:a.jsx("span",{style:{fontFamily:$s,fontSize:"20px",color:kt,fontWeight:300},children:"D"})}),a.jsx(iE,{size:"md"}),a.jsx("p",{style:{fontFamily:It,fontSize:"7.5px",letterSpacing:"0.3em",textTransform:"uppercase",color:kt,marginTop:"8px"},children:"Private Residences"})]}),a.jsxs("div",{style:{position:"relative",zIndex:2,margin:"0.16in 0"},children:[a.jsx(xh,{src:vy,alt:"DomoVita HomePad"}),a.jsx("div",{style:{marginTop:"8px",display:"flex",gap:"5px",flexWrap:"wrap"},children:["21 Device Types","2,700+ Integrations","Claude AI"].map(e=>a.jsx(rE,{children:e},e))})]}),a.jsxs("div",{style:{position:"relative",zIndex:2},children:[a.jsx(fa,{style:{marginBottom:"18px",opacity:.6}}),a.jsxs("h1",{style:{fontFamily:$s,fontSize:"30px",fontWeight:300,lineHeight:1.1,color:Ir,marginBottom:"14px"},children:["The Operating",a.jsx("br",{}),"System for",a.jsx("br",{}),a.jsx("em",{style:{color:kt,fontStyle:"italic"},children:"Luxury Living"})]}),a.jsx(fa,{style:{marginBottom:"14px",opacity:.6}}),a.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[a.jsx("span",{style:{width:"5px",height:"5px",borderRadius:"50%",background:kt,display:"inline-block",flexShrink:0}}),a.jsx("span",{style:{fontFamily:It,fontSize:"7.5px",letterSpacing:"0.22em",textTransform:"uppercase",color:kt},children:"By Invitation Only"})]}),a.jsx("p",{style:{fontSize:"8px",color:Bi,letterSpacing:"0.12em",marginTop:"10px",fontFamily:It},children:"DomoVita.AI"})]})]})}function IY(){return a.jsxs("div",{style:{...yl,justifyContent:"space-between",padding:"0.48in 0.38in",borderLeft:`1px solid ${Ga}`,borderRight:`1px solid ${Ga}`},className:"brochure-panel",children:[a.jsx("div",{style:{position:"absolute",inset:0,background:"radial-gradient(ellipse at 50% 50%, rgba(201,168,76,0.04) 0%, transparent 70%)",pointerEvents:"none"}}),a.jsxs("div",{style:{position:"relative",zIndex:2},children:[a.jsx(zr,{children:"Connect"}),a.jsx(iE,{size:"sm"})]}),a.jsxs("div",{style:{position:"relative",zIndex:2,flex:1,display:"flex",flexDirection:"column",justifyContent:"center",gap:"18px",paddingTop:"0.25in"},children:[a.jsx(xh,{src:sE,alt:"DomoVita Community Dashboard"}),a.jsxs("div",{style:{textAlign:"center"},children:[a.jsx(fa,{style:{marginBottom:"14px",opacity:.5}}),a.jsxs("p",{style:{fontFamily:$s,fontSize:"14px",fontWeight:300,fontStyle:"italic",color:tl,lineHeight:1.55,marginBottom:"14px"},children:['"Intelligent. Unified.',a.jsx("br",{}),'Without compromise."']}
1439),a.jsx(fa,{style:{opacity:.5}})]}),a.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"7px"},children:[{label:"Web",value:"DomoVita.AI"},{label:"Demo",value:"By appointment"},{label:"Access",value:"By invitation only"}].map(({label:e,value:t})=>a.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",borderBottom:`1px solid ${Ga}`,paddingBottom:"7px"},children:[a.jsx("span",{style:{fontFamily:It,fontSize:"7px",letterSpacing:"0.2em",textTransform:"uppercase",color:kt},children:e}),a.jsx("span",{style:{fontFamily:It,fontSize:"8.5px",color:tl},children:t})]},e))}),a.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:"4px",justifyContent:"center"},children:["Live MVP","$500K Seed Round","85â94% Margins","SBIR Eligible"].map(e=>a.jsx(rE,{children:e},e))})]}),a.jsx("div",{style:{position:"relative",zIndex:2,textAlign:"center"},children:a.jsxs("p",{style:{fontFamily:It,fontSize:"7.5px",color:Bi,letterSpacing:"0.07em",lineHeight:1.7},children:["© ",new Date().getFullYear()," DomoVita. All rights reserved.",a.jsx("br",{}),"Confidential â for authorized recipients only."]})})]})}function VY(){const e=[{num:"$150B",label:"Global smart home market by 2028 · 25%+ CAGR in luxury segment"},{num:"$8B",label:"SAM â U.S. luxury residential ($5M+ properties)"},{num:"125K",label:"U.S. homes at $5M+ â initial beachhead, <0.01% penetration at seed"},{num:"$0",label:"True AI-native competitors in the ultra-luxury residential segment"}];return a.jsxs("div",{style:{...yl,justifyContent:"space-between",padding:"0.48in 0.38in"},className:"brochure-panel",children:[a.jsx("div",{style:{position:"absolute",bottom:0,left:0,width:"60%",height:"40%",background:"radial-gradient(ellipse at bottom left, rgba(201,168,76,0.05) 0%, transparent 70%)",pointerEvents:"none"}}),a.jsxs("div",{style:{position:"relative",zIndex:2},children:[a.jsx(zr,{children:"Why Now"}),a.jsxs(by,{children:["The moment",a.jsx("br",{}),"is ",a.jsx("em",{style:{color:kt},children:"now."})]}),a.jsx(fa,{style:{marginTop:"14px",opacity:.5}})]}),a.jsxs("div",{style:{position:"relative",zIndex:2,marginTop:"0.18in"},children:[a.jsx(xh,{src:J3,alt:"Sonoma Vineyard Estates arrival drive",style:{borderRadius:"8px"}}),a.jsx("p",{style:{fontFamily:It,fontSize:"7px",color:Bi,letterSpacing:"0.1em",marginTop:"6px",textAlign:"center",textTransform:"uppercase"},children:"Sonoma Vineyard Estates · Arrival Drive"})]}),a.jsx("div",{style:{position:"relative",zIndex:2,flex:1,display:"flex",flexDirection:"column",justifyContent:"center",gap:"10px",paddingTop:"0.2in"},children:e.map(({num:t,label:s})=>a.jsxs("div",{style:{display:"flex",gap:"12px",alignItems:"flex-start",borderBottom:`1px solid ${Ga}`,paddingBottom:"9px"},children:[a.jsx("span",{style:{fontFamily:$s,fontSize:"22px",fontWeight:300,color:kt,lineHeight:1,flexShrink:0,minWidth:"58px"},children:t}),a.jsx("span",{style:{fontFamily:It,fontSize:"8px",color:Bi,lineHeight:1.55,paddingTop:"4px"},children:s})]},t))}),a.jsxs("div",{style:{position:"relative",zIndex:2},children:[a.jsx(fa,{style:{marginBottom:"12px",opacity:.5}}),a.jsx("p",{style:{fontFamily:$s,fontSize:"12px",fontWeight:300,fontStyle:"italic",color:tl,lineHeight:1.6},children:'"The luxury estate market has the demand, the dollars, and the devices â but no unified AI-native OS. DomoVita fills the void."'})]})]})}function $Y(){const e=[{icon:a.jsx(BS,{size:11,color:kt,strokeWidth:1.5}),title:"Fragmented Control",body:"The average luxury estate runs 50â100+ devices across 5â8 separate apps â Lutron, Control4, Ecobee, Ring, August. No unified experience exists."},{icon:a.jsx(En,{size:11,color:kt,strokeWidth:1.5}),title:"Dealer Lock-In",body:"Control4, Savant & Crestron are closed ecosystems. Switching costs $50Kâ$200K in rip-and-replace cycles. Homeowners are hostages."},{icon:a.jsx(Qa,{size:11,color:kt,strokeWidth:1.5}),title:"Zero Security Visibility",body:"UHNW individuals are prime cyber targets. Smart cameras, locks & thermostats are unguarded attack surfaces â no residential platform monitors them."},{icon:a.jsx(Yo,{size:11,color:kt,strokeWidth:1.5}),title:"Lifestyle Disconnect",body:"Existing platforms stop at device control. Chauffeur, gate access, private chef â all managed in yet more disconnected apps."}],t=[{name:"Control4/Savant",ai:!1,security:!1,lifestyle:!1,open:!1},{name:"DIY Hubs",ai:!1,security:!1,lifestyle:!1,open:!0},{name:"DomoVita",ai:!0,security:!0,lifestyle:!0,open:!0}];return a.jsxs("div",{style:{...yl,justifyContent:"space-between",padding:"0"},className:"brochure-panel",children:[a.jsxs("div",{style:{position:"relative",height:"1.9in",flexShrink:0,overflow:"hidden"},children:[a.jsx("img",{src:Z3,alt:"Luxury estate",style:{width:"100%",height:"100%",objectFit:"cover",display:"block"}}),a.jsx("div",{style:{position:"absolute",inset:0,background:"linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.55) 100%)"}}),a.jsxs("div",{style:{position:"absolute",bottom:0,left:0,padding:"14px 18px"},children:[a.jsx(zr,{children:"The Problem"}),a.jsxs("h2",{style:{fontFamily:$s,fontSize:"20px",fontWeight:300,color:"#fff",lineHeight:1.15},children:["A $5M+ home",a.jsx("br",{}),"shouldn't require",a.jsx("br",{}),a.jsx("em",{style:{color:Lc},children:"a manual."})]})]})]}),a.jsxs("div",{style:{flex:1,padding:"0.22in 0.38in 0.16in",display:"flex",flexDirection:"column",justifyContent:"space-between"},children:[a.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"9px"},children:e.map(({icon:s,title:i,body:o})=>
1439a.jsxs("div",{style:{display:"flex",gap:"10px",alignItems:"flex-start",borderBottom:`1px solid ${Ga}`,paddingBottom:"9px"},children:[a.jsx("div",{style:{flexShrink:0,marginTop:"2px"},children:s}),a.jsxs("div",{children:[a.jsx("p",{style:{fontFamily:It,fontSize:"8px",fontWeight:600,letterSpacing:"0.07em",textTransform:"uppercase",color:Ir,marginBottom:"3px"},children:i}),a.jsx("p",{style:{fontFamily:It,fontSize:"8px",color:Bi,lineHeight:1.55,fontWeight:300},children:o})]})]},i))}),a.jsxs("div",{style:{position:"relative",zIndex:2,marginTop:"0.1in"},children:[a.jsx(zr,{children:"Competitive Snapshot"}),a.jsxs("div",{style:{border:`1px solid ${$i}`,borderRadius:"6px",overflow:"hidden"},children:[a.jsx("div",{style:{display:"grid",gridTemplateColumns:"1.6fr 1fr 1fr 1fr 1fr",background:gh,borderBottom:`1px solid ${$i}`},children:["","AI","Security","Lifestyle","Open"].map(s=>a.jsx("div",{style:{padding:"5px 4px",fontFamily:It,fontSize:"6.5px",letterSpacing:"0.1em",textTransform:"uppercase",color:kt,textAlign:"center"},children:s},s))}),t.map(({name:s,ai:i,security:o,lifestyle:c,open:u},f)=>{const h=s==="DomoVita";return a.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1.6fr 1fr 1fr 1fr 1fr",borderBottom:f<t.length-1?`1px solid ${Ga}`:"none",background:h?"rgba(168,121,42,0.06)":"transparent"},children:[a.jsx("div",{style:{padding:"6px 7px",fontFamily:It,fontSize:"7.5px",color:h?kt:tl,fontWeight:h?600:400},children:s}),[i,o,c,u].map((m,x)=>a.jsx("div",{style:{padding:"6px 4px",textAlign:"center",fontSize:"10px",color:m?h?"#16a34a":"#86a88e":"#d1d5db"},children:m?"â":"â"},x))]},s)})]})]})]})]})}function BY(){const e=[{icon:a.jsx(Hi,{size:13,color:kt,strokeWidth:1.5}),title:"Device-Agnostic Control",body:"21 device types, 14 command types. Any protocol â Control4, Lutron, Z-Wave, HomeKit, MQTT. Unified in one interface.",shot:Ax,shotAlt:"Luxury estate interior"},{icon:a.jsx(Wx,{size:13,color:kt,strokeWidth:1.5}),title:"AI Concierge",body:"Natural language commands via Claude. Creates automations, scenes, rooms through conversation. Full home context â not a chatbot bolted on.",shot:tE,shotAlt:"AI Concierge interface"},{icon:a.jsx(_i,{size:13,color:kt,strokeWidth:1.5}),title:"IoT Security Center",body:"CVE scanning, anomaly detection, AâF security grading per device. Privacy audits & VLAN segmentation. First in residential.",shot:yy,shotAlt:"Security center"},{icon:a.jsx(hf,{size:13,color:kt,strokeWidth:1.5}),title:"Lifestyle & Hospitality",body:"Chauffeur, private chef, VIP winery access (15+ Sonoma/Napa vineyards), gate control, hotel partner booking â one surface.",shot:eE,shotAlt:"Estate pool at golden hour"}];return a.jsxs("div",{style:{...yl,justifyContent:"space-between",padding:"0.48in 0.38in",borderLeft:`1px solid ${Ga}`,borderRight:`1px solid ${Ga}`},className:"brochure-panel",children:[a.jsx("div",{style:{position:"absolute",inset:0,background:"radial-gradient(ellipse at 50% 35%, rgba(201,168,76,0.05) 0%, transparent 55%)",pointerEvents:"none"}}),a.jsxs("div",{style:{position:"relative",zIndex:2,textAlign:"center"},children:[a.jsx(zr,{children:"The Platform"}),a.jsxs(by,{children:["Four Pillars.",a.jsx("br",{}),a.jsx("em",{style:{color:kt},children:"One Platform."})]}),a.jsx(fa,{style:{marginTop:"12px",opacity:.5}})]}),a.jsx("div",{style:{position:"relative",zIndex:2,flex:1,display:"flex",flexDirection:"column",justifyContent:"flex-start",gap:"9px",paddingTop:"0.16in"},children:e.map(({icon:t,title:s,body:i,shot:o,shotAlt:c})=>a.jsxs("div",{style:{background:aE,border:`1px solid ${$i}`,borderRadius:"7px",padding:"10px 12px"},children:[a.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"7px",marginBottom:"5px"},children:[t,a.jsx("span",{style:{fontFamily:$s,fontSize:"13px",fontWeight:400,color:Ir,letterSpacing:"0.03em"},children:s})]}),a.jsx("p",{style:{fontFamily:It,fontSize:"7.5px",color:Bi,lineHeight:1.55,fontWeight:300,marginBottom:o?"8px":"0"},children:i}),o&&a.jsx(xh,{src:o,alt:c,style:{borderRadius:"4px"}})]},s))}),a.jsxs("div",{style:{position:"relative",zIndex:2,textAlign:"center",marginTop:"8px"},children:[a.jsx(fa,{style:{opacity:.4,marginBottom:"8px"}}),a.jsx("p",{style:{fontFamily:It,fontSize:"7.5px",letterSpacing:"0.07em",color:Bi},children:"Open adapter architecture · 2,700+ device integrations"})]})]})}function FY(){const e=[{icon:"ð ",title:"No Rip-and-Replace",body:"Works with your existing Control4, Lutron, and smart devices. Unified in one surface â nothing removed."},{icon:"ð¤",title:"Always-On AI Concierge",body:"Claude-powered assistant understands your home, your schedule, and your preferences. Just ask."},{icon:"ð",title:"Institutional-Grade Security",body:"CVE scanning, anomaly detection, and VLAN segmentation purpose-built for UHNW residences."},{icon:"ð·",title:"Curated Lifestyle Access",body:"15+ Sonoma & Napa vineyard memberships, private chef booking, and a luxury chauffeur fleet â on demand."}
1439,{icon:"ð¨",title:"Hotel-Caliber Hospitality",body:"Concierge requests, gate access for guests, hotel partner rates, and spa bookings from one screen."},{icon:"â¡",title:"Intelligent Automation",body:"Time-based, scene, and event-triggered automations that adapt to your lifestyle â set once, enjoy always."}],t=["21 device types across every major protocol","Real-time energy & climate monitoring","Guest gate access with custom permissions","Secure multi-resident profiles","Proactive alerts & incident timeline","White-glove onboarding & dedicated support"];return a.jsxs("div",{style:{...yl,justifyContent:"space-between",padding:"0.48in 0.38in"},className:"brochure-panel",children:[a.jsx("div",{style:{position:"absolute",bottom:0,left:0,width:"60%",height:"45%",background:"radial-gradient(ellipse at bottom left, rgba(201,168,76,0.05) 0%, transparent 70%)",pointerEvents:"none"}}),a.jsxs("div",{style:{position:"relative",zIndex:2},children:[a.jsx(zr,{children:"The Experience"}),a.jsxs(by,{children:["Everything your",a.jsx("br",{}),"estate deserves,",a.jsx("br",{}),a.jsx("em",{style:{color:kt},children:"finally unified."})]}),a.jsx(fa,{style:{marginTop:"14px",opacity:.5}})]}),a.jsxs("div",{style:{position:"relative",zIndex:2,flex:1,display:"flex",flexDirection:"column",justifyContent:"flex-start",gap:"8px",paddingTop:"0.15in"},children:[a.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"7px"},children:e.map(({icon:s,title:i,body:o})=>a.jsxs("div",{style:{display:"flex",gap:"9px",alignItems:"flex-start",borderBottom:`1px solid ${Ga}`,paddingBottom:"7px"},children:[a.jsx("span",{style:{fontSize:"11px",flexShrink:0,marginTop:"1px",lineHeight:1},children:s}),a.jsxs("div",{children:[a.jsx("p",{style:{fontFamily:It,fontSize:"7.5px",fontWeight:600,color:Ir,letterSpacing:"0.05em",marginBottom:"2px"},children:i}),a.jsx("p",{style:{fontFamily:It,fontSize:"7px",color:Bi,lineHeight:1.55,fontWeight:300},children:o})]})]},i))}),a.jsxs("div",{style:{background:aE,border:`1px solid ${$i}`,borderRadius:"7px",padding:"10px 12px",marginTop:"4px"},children:[a.jsx(zr,{children:"Platform Includes"}),a.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"4px"},children:t.map(s=>a.jsxs("div",{style:{display:"flex",alignItems:"flex-start",gap:"7px"},children:[a.jsx("span",{style:{color:kt,fontSize:"8px",flexShrink:0,marginTop:"1px",fontWeight:500},children:"â"}),a.jsx("span",{style:{fontFamily:It,fontSize:"7.5px",color:tl,lineHeight:1.4},children:s})]},s))})]})]}),a.jsxs("div",{style:{position:"relative",zIndex:2},children:[a.jsx(fa,{style:{marginBottom:"10px",opacity:.5}}),a.jsxs("div",{style:{border:`1px solid ${$i}`,borderRadius:"7px",padding:"10px 14px",background:gh,display:"flex",alignItems:"center",justifyContent:"space-between"},children:[a.jsxs("div",{children:[a.jsx("p",{style:{fontFamily:It,fontSize:"7px",letterSpacing:"0.2em",textTransform:"uppercase",color:kt,marginBottom:"3px"},children:"Request a Demo"}),a.jsx("p",{style:{fontFamily:It,fontSize:"9px",color:tl},children:"DomoVita.AI"})]}),a.jsx(Vn,{size:14,color:kt,strokeWidth:1.5})]})]})]})}function HY(){const e=new URLSearchParams(window.location.search).get("face")==="inside"?"inside":"outside",[t,s]=p.useState(e),i=t==="outside";return a.jsxs(a.Fragment,{children:[a.jsx("style",{children:` 1440 @import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&family=Montserrat:wght@300;400;500;600&display=swap'); 1441 * { box-sizing: border-box; } 1442 1443 .brochure-toolbar { 1444 position: fixed; top: 0; left: 0; right: 0; z-index: 100; 1445 background: rgba(7,9,15,0.94); backdrop-filter: blur(12px); 1446 border-bottom: 1px solid rgba(201,168,76,0.15); 1447 display: flex; align-items: center; justify-content: space-between; 1448 padding: 0 32px; height: 56px; 1449 } 1450 1451 .brochure-wrap { 1452 min-height: 100vh; padding: 80px 40px 60px; 1453 display: flex; flex-direction: column; align-items: center; gap: 24px; 1454 background: #e8e4de; 1455 } 1456 1457 .face-label { 1458 font-family: 'Montserrat', sans-serif; font-size: 9px; 1459 letter-spacing: 0.3em; text-transform: uppercase; 1460 color: rgba(7,9,15,0.4); text-align: center; margin-bottom: 6px; 1461 } 1462 1463 .brochure-sheet { 1464 display: flex; flex-direction: row; 1465 box-shadow: 0 20px 60px rgba(0,0,0,0.2), 0 0 0 1px rgba(168,121,42,0.15); 1466 border-radius: 2px; overflow: hidden; 1467 } 1468 1469 .fold-line { width: 1px; background: rgba(168,121,42,0.2); flex-shrink: 0; } 1470 1471 .toolbar-btn { 1472 display: flex; align-items: center; gap: 8px; padding: 8px 18px; 1473 border-radius: 4px; font-family: 'Montserrat', sans-serif; 1474 font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; 1475 cursor: pointer; transition: all 0.2s; border: none; outline: none; 1476 } 1477 .toolbar-btn-flip { 1478 background: rgba(201,168,76,0.08); border: 1px solid rgba(201,168,76,0.25) !important; color: #c9a84c; 1479 } 1480 .toolbar-btn-flip:hover { background: rgba(201,168,76,0.15); border-color: rgba(201,168,76,0.5) !important; } 1481 .toolbar-btn-print { 1482 background: rgba(201,168,76,0.12); border: 1px solid rgba(201,168,76,0.35) !important; color: #c9a84c; 1483 } 1484 .toolbar-btn-print:hover { background: rgba(201,168,76,0.22); border-color: #c9a84c !important; } 1485 1486 .print-hint { 1487 font-family: 'Montserrat', sans-serif; font-size: 9px; 1488 color: rgba(7,9,15,0.35); letter-spacing: 0.1em; text-align: center; max-width: 600px; 1489 } 1490 1491 /* Screen: hide inactive face */ 1492 .face-block { display: none; } 1493 .face-block.active { display: block; } 1494 1495 @media print { 1496 html, body { margin: 0 !important; padding: 0 !important; background: #fff !important; } 1497 .brochure-toolbar, .face-label, .print-hint, .screen-only { display: none !important; } 1498 .brochure-wrap { padding: 0 !important; background: #fff !important; min-height: unset !important; display: block !important; gap: 0 !important; } 1499 .face-block { display: block !important; } 1500 .brochure-sheet { display: flex !important; box-shadow: none !important; border-radius: 0 !important; page-break-after: always; break-after: page; } 1501 .face-block:last-child .brochure-sheet { page-break-after: auto; break-after: auto; } 1502 .brochure-panel { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; color-adjust: exact !important; } 1503 @page { size: letter landscape; margin: 0; } 1504 } 1505 `}),a.jsxs("div",{className:"brochure-wrap",children:[a.jsxs("div",{className:"brochure-toolbar screen-only",children:[a.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"10px"},children:[a.jsx("div",{style:{width:"28px",height:"28px",border:"1.5px solid rgba(201,168,76,0.35)",borderRadius:"6px",display:"flex",alignItems:"center",justifyContent:"center",background:"rgba(201,168,76,0.1)"},children:a.jsx("span",{style:{fontFamily:$s,fontSize:"14px",color:Lc},children:"D"})}),a.jsxs("span",{style:{fontFamily:$s,fontSize:"15px",color:"#f5f0e8",letterSpacing:"0.08em"},children:["DomoVita",a.jsx("span",{style:{color:Lc},children:".AI"})]}),a.jsx("span",{style:{fontFamily:It,fontSize:"8px",letterSpacing:"0.22em",textTransform:"uppercase",color:"rgba(245,240,232,0.4)",marginLeft:"8px"},children:"Tri-Fold Brochure"})]}),a.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"10px"},children:[a.jsx("div",{style:{display:"flex",gap:"6px",marginRight:"8px"},children:["outside","inside"].map(o=>a.jsx("button",{className:"toolbar-btn",onClick:()=>s(o),style:{background:t===o?"rgba(201,168,76,0.12)":"transparent",border:`1px solid ${t===o?"rgba(201,168,76,0.3)":"rgba(255,255,255,0.1)"}`,color:t===o?Lc:"rgba(245,240,232,0.4)",padding:"7px 14px",textTransform:"capitalize"},"data-testid":`button-${o}-face`,children:o.charAt(0).toUpperCase()+o.slice(1)},o))}),a.jsxs("button",{className:"toolbar-btn toolbar-btn-flip",onClick:()=>s(o=>o==="outside"?"inside":"outside"),"data-testid":"button-flip-brochure",children:[a.jsx(HS,{size:12})," Flip"]}),a.jsxs("button",{className:"toolbar-btn toolbar-btn-print",onClick:()=>window.print(),"data-testid":"button-print-brochure",children:[a.jsx(w8,{size:12})," Print / Save as PDF"]})]})]}),a.jsxs("div",{className:`face-block${i?" active":""}`,children:[a.jsx("p",{className:"face-label",children:"Outside Face â Right panel is the front cover when folded"}),a.jsxs("div",{className:"brochure-sheet",style:{width:"11in"},children:[a.jsx(VY,{}),a.jsx("div",{className:"fold-line"}),a.jsx(IY,{}),a.jsx("div",{className:"fold-line"}),a.jsx(LY,{})]})]}),a.jsxs("div",{className:`face-block${i?"":" active"}`,children:[a.jsx("p",{className:"face-label",children:"Inside Face â Opens left to right when unfolded"}),a.jsxs("div",{className:"brochure-sheet",style:{width:"11in"},children:[a.jsx($Y,{}),a.jsx("div",{className:"fold-line"}),a.jsx(BY,{}),a.jsx("div",{className:"fold-line"}),a.jsx(FY,{})]})]}),a.jsx("p",{className:"print-hint screen-only",children:"File â Print â Save as PDF · Letter · Landscape · Both faces print automatically on separate pages"})]})]})}const it="#c9a84c",vl="#e2c27d",Ya="rgba(201,168,76,0.12)",js="rgba(201,168,76,0.28)",oE="#07090f",Nn="'Cormorant Garamond', Georgia, serif",zs="'DM Mono', 'Courier New', monospace",ts="'Montserrat', Arial, sans-serif",Ai=[10,10,11,9,10,22,10,9];function lE(e,t,s=1800){const[i,o]=p.useState(0);return p.useEffect(()=>{if(!t){o(0);return}let c=null,u;const f=h=>
1505{c||(c=h);const m=Math.min((h-c)/s,1),x=1-Math.pow(1-m,3);o(Math.floor(x*e)),m<1?u=requestAnimationFrame(f):o(e)};return u=requestAnimationFrame(f),()=>cancelAnimationFrame(u)},[t,e,s]),i}const Dt={initial:{opacity:0,y:32},animate:{opacity:1,y:0},exit:{opacity:0,y:-16}},UY={initial:{opacity:0},animate:{opacity:1},exit:{opacity:0}},Nt={duration:.7,ease:[.22,1,.36,1]};function bl({children:e,style:t}){return a.jsx("p",{style:{fontFamily:zs,fontSize:10,letterSpacing:"0.32em",textTransform:"uppercase",color:it,marginBottom:16,opacity:.9,...t},children:e})}function cE({style:e}){return a.jsx("div",{style:{height:1,background:`linear-gradient(90deg, transparent, ${it}, transparent)`,opacity:.35,...e}})}function dE({size:e=64,style:t}){return a.jsx("div",{style:{width:e,height:e,border:`1.5px solid ${js}`,borderRadius:e*.22,display:"flex",alignItems:"center",justifyContent:"center",fontFamily:Nn,fontSize:e*.42,fontWeight:300,color:it,background:Ya,boxShadow:`0 0 ${e*.6}px rgba(201,168,76,0.18), 0 0 0 0 rgba(201,168,76,0.25)`,...t},children:"D"})}function qY(){return a.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",gap:0},children:[a.jsx(le.div,{...Dt,transition:{...Nt,delay:.1},children:a.jsx(dE,{size:88,style:{margin:"0 auto 28px",animation:"reelPulse 3s ease-in-out infinite"}})}),a.jsx(le.p,{...Dt,transition:{...Nt,delay:.25},style:{fontFamily:zs,fontSize:10,letterSpacing:"0.35em",textTransform:"uppercase",color:it,marginBottom:20},children:"DomoVita.AI"}),a.jsxs(le.h1,{...Dt,transition:{...Nt,delay:.4},style:{fontFamily:Nn,fontSize:"clamp(52px,7vw,96px)",fontWeight:300,color:"#f5f0e8",lineHeight:1.04,letterSpacing:"-0.01em",marginBottom:24},children:["The Operating System",a.jsx("br",{}),"for ",a.jsx("em",{style:{color:it,fontStyle:"italic"},children:"Luxury Living"})]}),a.jsx(le.p,{...Dt,transition:{...Nt,delay:.55},style:{fontFamily:Nn,fontSize:"clamp(16px,2.2vw,26px)",fontWeight:300,fontStyle:"italic",color:"rgba(245,240,232,0.55)",letterSpacing:"0.02em",marginBottom:32},children:"Sonoma Vineyard Estates · Private Residences"}),a.jsx(le.div,{...Dt,transition:{...Nt,delay:.7},children:a.jsx(cE,{style:{width:120,margin:"0 auto"}})})]})}const WY=[{num:"01",title:"Fragmented Control",body:"The average luxury estate runs 50â100+ devices across 5â8 separate apps. Lutron, Control4, Ecobee, Ring, August â none of them talk."},{num:"02",title:"Dealer Lock-In",body:"Control4, Savant & Crestron are closed ecosystems. Switching costs $50Kâ$200K in rip-and-replace cycles. Homeowners are held hostage."},{num:"03",title:"Zero Security Visibility",body:"UHNW individuals are prime cyber targets. Smart cameras, locks & thermostats are unguarded attack surfaces â no platform monitors them."},{num:"04",title:"Lifestyle Disconnect",body:"Existing platforms stop at device control. Chauffeur, gate access, private chef â managed in yet more disconnected apps."}];function GY(){return a.jsxs("div",{style:{maxWidth:760},children:[a.jsxs(le.div,{...Dt,transition:{...Nt,delay:.1},children:[a.jsx(bl,{children:"The Problem"}),a.jsxs("h2",{style:{fontFamily:Nn,fontSize:"clamp(36px,4.5vw,62px)",fontWeight:300,color:"#f5f0e8",lineHeight:1.08,marginBottom:40},children:["A $5M+ home shouldn't",a.jsx("br",{}),"require ",a.jsx("em",{style:{color:it,fontStyle:"italic"},children:"a manual."})]})]}),a.jsx("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"16px 40px"},children:WY.map(({num:e,title:t,body:s},i)=>a.jsx(le.div,{...Dt,transition:{...Nt,delay:.25+i*.12},children:a.jsxs("div",{style:{display:"flex",gap:16,alignItems:"flex-start"},children:[a.jsx("span",{style:{fontFamily:Nn,fontSize:36,fontWeight:300,color:it,opacity:.22,lineHeight:1,flexShrink:0,width:32},children:e}),a.jsxs("div",{children:[a.jsx("p",{style:{fontFamily:ts,fontSize:12,fontWeight:600,letterSpacing:"0.1em",textTransform:"uppercase",color:"#f5f0e8",marginBottom:6},children:t}),a.jsx("p",{style:{fontFamily:ts,fontSize:12.5,fontWeight:300,lineHeight:1.65,color:"rgba(138,151,170,0.9)"},children:s})]})]})},e))})]})}
1505function YY({label:e,icon:t,lit:s,delay:i}){return a.jsxs(le.div,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},transition:{...Nt,delay:i},style:{background:s?Ya:"rgba(255,255,255,0.04)",border:`1px solid ${s?js:"rgba(255,255,255,0.08)"}`,borderRadius:10,padding:"12px 14px",display:"flex",alignItems:"center",gap:10,boxShadow:s?"0 0 20px rgba(201,168,76,0.18)":"none",transition:"all 1.2s ease"},children:[a.jsx("span",{style:{fontSize:18},children:t}),a.jsxs("div",{children:[a.jsx("p",{style:{fontFamily:ts,fontSize:10.5,fontWeight:500,color:s?vl:"rgba(245,240,232,0.45)",letterSpacing:"0.05em"},children:e}),a.jsx("p",{style:{fontFamily:zs,fontSize:9,color:s?"rgba(201,168,76,0.7)":"rgba(138,151,170,0.5)",marginTop:2},children:s?"ON":"OFF"})]}),a.jsx("div",{style:{marginLeft:"auto",width:7,height:7,borderRadius:"50%",background:s?it:"rgba(138,151,170,0.25)",boxShadow:s?`0 0 8px ${it}`:"none",transition:"all 1.2s ease"}})]})}const TN=[{label:"Grand Foyer Lights",icon:"ð¡",litAt:.3},{label:"Living Room Shades",icon:"ðª",litAt:.5},{label:"Climate Control",icon:"ð¡ï¸",litAt:.7},{label:"Pool & Spa",icon:"â¨ï¸",litAt:.9},{label:"Security System",icon:"ð",litAt:1.1},{label:"AV & Audio",icon:"ðµ",litAt:1.3}];function KY({active:e}){const[t,s]=p.useState(0);return p.useEffect(()=>{if(!e){s(0);return}const i=[];return TN.forEach((o,c)=>{i.push(setTimeout(()=>s(c+1),o.litAt*1e3+600))}),()=>i.forEach(clearTimeout)},[e]),a.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:40,alignItems:"center",maxWidth:960},children:[a.jsxs("div",{children:[a.jsxs(le.div,{...Dt,transition:{...Nt,delay:.1},children:[a.jsx(bl,{children:"The Solution"}),a.jsxs("h2",{style:{fontFamily:Nn,fontSize:"clamp(32px,4vw,56px)",fontWeight:300,color:"#f5f0e8",lineHeight:1.1,marginBottom:20},children:["One surface.",a.jsx("br",{}),"Every system.",a.jsx("br",{}),a.jsx("em",{style:{color:it,fontStyle:"italic"},children:"All intelligent."})]})]}),a.jsx(le.p,{...Dt,transition:{...Nt,delay:.3},style:{fontFamily:ts,fontSize:14,fontWeight:300,lineHeight:1.7,color:"rgba(184,196,208,0.85)",marginBottom:24},children:"DomoVita.AI unifies every device, service, and experience in your estate â powered by Claude AI, built for the world's most discerning residences."}),a.jsx(le.div,{...Dt,transition:{...Nt,delay:.45},children:a.jsx("div",{style:{display:"inline-flex",gap:8,flexWrap:"wrap"},children:["21 Device Types","2,700+ Integrations","Claude AI","No Rip-and-Replace"].map(i=>a.jsx("span",{style:{fontFamily:zs,fontSize:9.5,letterSpacing:"0.1em",color:vl,border:`1px solid ${js}`,borderRadius:100,padding:"5px 12px",background:Ya},children:i},i))})})]}),a.jsx("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:10},children:TN.map((i,o)=>a.jsx(YY,{label:i.label,icon:i.icon,lit:o<t,delay:.2+o*.08},i.label))})]})}const QY=[{icon:"ð ",title:"Smart Home Control",sub:"Device-Agnostic Architecture",body:"21 device types. Any protocol â Control4, Lutron, Z-Wave, HomeKit. Unified in one cinematic interface."},{icon:"ð¤",title:"AI Concierge",sub:"Powered by Claude",body:"Natural language commands. Creates automations, scenes, and rooms through conversation. Full home context."},{icon:"ð",title:"Security & IoT",sub:"Institutional-Grade",body:"CVE scanning, anomaly detection, AâF security grading. Privacy audits & VLAN segmentation. First in residential."}];function XY(){return a.jsxs("div",{style:{maxWidth:960,width:"100%"},children:[a.jsxs(le.div,{...Dt,transition:{...Nt,delay:.1},style:{textAlign:"center",marginBottom:48},children:[a.jsx(bl,{style:{textAlign:"center"},children:"Key Features"}),a.jsxs("h2",{style:{fontFamily:Nn,fontSize:"clamp(36px,4.5vw,60px)",fontWeight:300,color:"#f5f0e8",lineHeight:1.08},children:["Three pillars. ",a.jsx("em",{style:{color:it,fontStyle:"italic"},children:"One platform."})]})]}),a.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:20},children:QY.map(({icon:e,title:t,sub:s,body:i},o)=>a.jsx(le.div,{...Dt,transition:{...Nt,delay:.25+o*.15},children:a.jsxs("div",{style:{background:"rgba(255,255,255,0.03)",border:"1px solid rgba(255,255,255,0.07)",borderRadius:16,padding:"28px 24px",height:"100%",position:"relative",overflow:"hidden"},children:[a.jsx("div",{style:{position:"absolute",top:0,left:0,right:0,height:1,background:`linear-gradient(90deg, transparent, ${js}, transparent)`}}),a.jsx("div",{style:{width:48,height:48,border:`1px solid ${js}`,borderRadius:12,display:"flex",alignItems:"center",justifyContent:"center",fontSize:22,background:Ya,marginBottom:18},children:e}),a.jsx("p",{style:{fontFamily:zs,fontSize:9,letterSpacing:"0.18em",textTransform:"uppercase",color:it,marginBottom:8},children:s}),a.jsx("h3",{style:{fontFamily:Nn,fontSize:22,fontWeight:400,color:"#f5f0e8",marginBottom:10,lineHeight:1.2},children:t}),a.jsx("p",{style:{fontFamily:ts,fontSize:13,fontWeight:300,lineHeight:1.65,color:"rgba(138,151,170,0.85)"},children:i})]})},t))})]})}function ZY({value:e,suffix:t,label:s,active:i,delay:o,duration:c}){const[u,f]=p.useState(!1);p.useEffect(()=>{if(!i){f(!1);return}const m=setTimeout(()=>f(!0),(o??0)*1e3);return()=>clearTimeout(m)},[i,o]);const h=lE(e,u,c??1800);
1505return a.jsxs(le.div,{...Dt,transition:{...Nt,delay:(o??0)+.2},style:{textAlign:"center"},children:[a.jsxs("span",{style:{fontFamily:Nn,fontSize:"clamp(44px,5vw,70px)",fontWeight:300,color:it,lineHeight:1,display:"block"},children:[h.toLocaleString(),t]}),a.jsx("span",{style:{fontFamily:ts,fontSize:11,fontWeight:400,letterSpacing:"0.15em",textTransform:"uppercase",color:"rgba(138,151,170,0.8)",marginTop:10,display:"block"},children:s})]})}function JY({active:e}){const t=[{value:21,suffix:"",label:"Device Types Supported · Today",delay:0,duration:1200},{value:2700,suffix:"+",label:"Third-Party Integrations · Current",delay:.18,duration:1500},{value:150,suffix:"B",label:"Global Smart Home Market · Current ($)",delay:.36,duration:1400},{value:94,suffix:"%",label:"Gross Margin Potential · Current Est.",delay:.54,duration:1300},{value:125,suffix:"K",label:"U.S. Target Homes ($5M+) · Current",delay:.72,duration:1600},{value:500,suffix:"ms",label:"AI Response Time · Current",delay:.9,duration:900}];return a.jsxs("div",{style:{maxWidth:900,width:"100%"},children:[a.jsxs(le.div,{...Dt,transition:{...Nt,delay:.1},style:{textAlign:"center",marginBottom:56},children:[a.jsx(bl,{style:{textAlign:"center"},children:"The Numbers"}),a.jsxs("h2",{style:{fontFamily:Nn,fontSize:"clamp(34px,4vw,56px)",fontWeight:300,color:"#f5f0e8",lineHeight:1.1},children:["Built for a ",a.jsx("em",{style:{color:it,fontStyle:"italic"},children:"$150B market."})]})]}),a.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:"40px 32px"},children:t.map(s=>a.jsx(ZY,{...s,active:e},s.label))})]})}const Gu=[{src:vy,label:"HomePad Control Center",sub:"Real-time device management across every room"},{src:sE,label:"AI Concierge",sub:"Natural language commands powered by Claude"},{src:yy,label:"IoT Security Center",sub:"CVE scanning & anomaly detection, graded AâF"},{src:nE,label:"Community Dashboard",sub:"Services, transport, and gate access in one view"}];function eK(){const[e,t]=p.useState(0);return p.useEffect(()=>{const s=setInterval(()=>t(i=>(i+1)%Gu.length),4400);return()=>clearInterval(s)},[]),a.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:48,alignItems:"center",maxWidth:1e3,width:"100%"},children:[a.jsxs("div",{children:[a.jsxs(le.div,{...Dt,transition:{...Nt,delay:.1},children:[a.jsx(bl,{children:"Resident Experience"}),a.jsxs("h2",{style:{fontFamily:Nn,fontSize:"clamp(30px,3.8vw,52px)",fontWeight:300,color:"#f5f0e8",lineHeight:1.1,marginBottom:24},children:["Every touchpoint, ",a.jsx("em",{style:{color:it,fontStyle:"italic"},children:"perfected."})]})]}),a.jsx("div",{style:{display:"flex",flexDirection:"column",gap:10},children:Gu.map((s,i)=>a.jsx(le.div,{...Dt,transition:{...Nt,delay:.2+i*.1},children:a.jsxs("div",{onClick:()=>t(i),style:{display:"flex",alignItems:"center",gap:14,padding:"12px 16px",borderRadius:10,cursor:"pointer",background:e===i?Ya:"rgba(255,255,255,0.02)",border:`1px solid ${e===i?js:"rgba(255,255,255,0.06)"}`,transition:"all 0.3s ease"},children:[a.jsx("div",{style:{width:6,height:6,borderRadius:"50%",background:e===i?it:"rgba(138,151,170,0.3)",boxShadow:e===i?`0 0 8px ${it}`:"none",flexShrink:0,transition:"all 0.3s ease"}}),a.jsxs("div",{children:[a.jsx("p",{style:{fontFamily:ts,fontSize:12,fontWeight:500,color:e===i?vl:"#f5f0e8",letterSpacing:"0.04em"},children:s.label}),a.jsx("p",{style:{fontFamily:ts,fontSize:11,fontWeight:300,color:"rgba(138,151,170,0.7)",marginTop:2},children:s.sub})]})]})},s.label))})]}),a.jsx("div",{style:{position:"relative"},children:a.jsxs(le.div,{initial:{opacity:0,scale:.96},animate:{opacity:1,scale:1},transition:{...Nt,delay:.3},children:[a.jsx("div",{style:{borderRadius:14,overflow:"hidden",border:`1px solid ${js}`,boxShadow:"0 0 60px rgba(201,168,76,0.12), 0 20px 60px rgba(0,0,0,0.5)"},children:a.jsx(gn,{mode:"wait",children:a.jsx(le.img,{src:Gu[e].src,alt:Gu[e].label,initial:{opacity:0}
1505,animate:{opacity:1},exit:{opacity:0},transition:{duration:.5},style:{width:"100%",display:"block",objectFit:"cover"}},e)})}),a.jsx("div",{style:{position:"absolute",bottom:-1,left:0,right:0,height:"40%",background:"linear-gradient(to top, rgba(7,9,15,0.6), transparent)",borderRadius:"0 0 14px 14px",pointerEvents:"none"}})]})})]})}function Sg({value:e,prefix:t,suffix:s,label:i,active:o,delay:c,duration:u}){const[f,h]=p.useState(!1);p.useEffect(()=>{if(!o){h(!1);return}const x=setTimeout(()=>h(!0),(c??0)*1e3);return()=>clearTimeout(x)},[o,c]);const m=lE(e,f,u??1800);return a.jsxs(le.div,{...Dt,transition:{...Nt,delay:(c??0)+.2},style:{textAlign:"center",padding:"28px 24px",border:"1px solid rgba(201,168,76,0.2)",borderRadius:14,background:"rgba(201,168,76,0.04)"},children:[a.jsxs("span",{style:{fontFamily:Nn,fontSize:"clamp(36px,4vw,58px)",fontWeight:300,color:it,lineHeight:1,display:"block"},children:[t??"",m.toLocaleString(),s??""]}),a.jsx("span",{style:{fontFamily:ts,fontSize:10,fontWeight:400,letterSpacing:"0.14em",textTransform:"uppercase",color:"rgba(138,151,170,0.75)",marginTop:10,display:"block",lineHeight:1.6},children:i})]})}function tK({active:e}){return a.jsxs("div",{style:{maxWidth:920,width:"100%"},children:[a.jsxs(le.div,{...Dt,transition:{...Nt,delay:.1},style:{textAlign:"center",marginBottom:48},children:[a.jsx(bl,{style:{textAlign:"center"},children:"The Opportunity"}),a.jsxs("h2",{style:{fontFamily:Nn,fontSize:"clamp(34px,4vw,58px)",fontWeight:300,color:"#f5f0e8",lineHeight:1.1},children:["Rare economics.",a.jsx("br",{}),a.jsx("em",{style:{color:it,fontStyle:"italic"},children:"Zero true competition."})]})]}),a.jsxs("div",{style:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:16,marginBottom:24},children:[a.jsx(Sg,{value:144e4,prefix:"$",suffix:"",label:"Projected ARR at 100 homes",active:e,delay:0,duration:1600}),a.jsx(Sg,{value:5e5,prefix:"$",suffix:"",label:"Seed Round Target",active:e,delay:.2,duration:1400}),a.jsx(Sg,{value:94,prefix:"",suffix:"%",label:"Gross Margin Potential",active:e,delay:.4,duration:1200})]}),a.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(2, 1fr)",gap:16},children:[{label:"SBIR Eligible",body:"Government grant pathway for AI-in-critical-infrastructure track."},{label:"$0 True Competition",body:"No AI-native competitor in the ultra-luxury residential segment exists today."},{label:"$8B SAM",body:"U.S. luxury residential ($5M+ properties) serviceable addressable market."},{label:"85â94% Margins",body:"SaaS model with minimal COGS â hardware-agnostic, cloud-delivered."}].map(({label:t,body:s},i)=>a.jsx(le.div,{...Dt,transition:{...Nt,delay:.5+i*.1},children:a.jsxs("div",{style:{background:"rgba(255,255,255,0.02)",border:"1px solid rgba(255,255,255,0.07)",borderRadius:10,padding:"16px 18px",display:"flex",gap:14,alignItems:"flex-start"},children:[a.jsx("span",{style:{color:it,fontSize:14,flexShrink:0,marginTop:1},children:"â"}),a.jsxs("div",{children:[a.jsx("p",{style:{fontFamily:ts,fontSize:11.5,fontWeight:600,color:vl,letterSpacing:"0.06em",marginBottom:4},children:t}),a.jsx("p",{style:{fontFamily:ts,fontSize:12,fontWeight:300,lineHeight:1.6,color:"rgba(138,151,170,0.8)"},children:s})]})]})},t))})]})}function nK(){return a.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",maxWidth:700},children:[a.jsx(le.div,{...Dt,transition:{...Nt,delay:.1},children:a.jsx(dE,{size:72,style:{margin:"0 auto 28px",animation:"reelPulse 3s ease-in-out infinite"}})}),a.jsx(le.p,{...Dt,transition:{...Nt,delay:.22},style:{fontFamily:zs,fontSize:10,letterSpacing:"0.35em",textTransform:"uppercase",color:it,marginBottom:20},children:"By Invitation Only"}),a.jsxs(le.h1,{...Dt,transition:{...Nt,delay:.36},style:{fontFamily:Nn,fontSize:"clamp(40px,5.5vw,80px)",fontWeight:300,color:"#f5f0e8",lineHeight:1.06,marginBottom:20},children:["Ready to experience",a.jsx("br",{}),a.jsx("em",{style:{color:it,fontStyle:"italic"},children:"the future of home?"})]}),a.jsx(le.p,{...Dt,transition:{...Nt,delay:.5},style:{fontFamily:Nn,fontSize:"clamp(16px,2vw,22px)",fontWeight:300,fontStyle:"italic",color:"rgba(245,240,232,0.5)",marginBottom:44},children:'"Intelligent. Unified. Without compromise."'}),a.jsxs(le.div,{...Dt,transition:{...Nt,delay:.65},style:{display:"flex",gap:16,flexWrap:"wrap",justifyContent:"center"},children:[a.jsx(sn,{href:"/",children:a.jsx("a",{style:{display:"inline-flex",alignItems:"center",gap:10,padding:"14px 36px",fontFamily:zs,fontSize:11,letterSpacing:"0.2em",textTransform:"uppercase",color:oE,background:`linear-gradient(135deg, ${it}, ${vl})`,borderRadius:8,textDecoration:"none",boxShadow:"0 0 30px rgba(201,168,76,0.3)",transition:"all 0.2s ease"},children:"Request a Private Demo"})}),a.jsx("a",{href:"/brochure",style:{display:"inline-flex",alignItems:"center",gap:10,padding:"14px 28px",fontFamily:zs,fontSize:11,letterSpacing:"0.2em",textTransform:"uppercase",color:it,background:Ya,border:`1px solid ${js}`,borderRadius:8,textDecoration:"none"},children:"View Brochure"})]}),a.jsxs(le.div,{...Dt,transition:{...Nt,delay:.8},style:{marginTop:48},children:[a.jsx(cE,{style:{width:160,margin:"0 auto 20px"}}),a.jsx("p",{style:{fontFamily:ts,fontSize:11,color:"rgba(138,151,170,0.5)",letterSpacing:"0.1em"},children:"DomoVita.AI · Sonoma Vineyard Estates · Confidential"})]})]})}const gr=[{id:"hero",label:"Intro",duration:Ai[0]},{id:"problem",label:"Problem",duration:Ai[1]},{id:"solution",label:"Solution",duration:Ai[2]},{id:"features",label:"Features",duration:Ai[3]},{id:"numbers",label:"Numbers",duration:Ai[4]},{id:"experience",label:"Experience",duration:Ai[5]},{id:"opportunity",label:"Opportunity",duration:Ai[6]},{id:"cta",label:"Demo",duration:Ai[7]}],sK=` 1506 @import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Montserrat:wght@200;300;400;500;600&family=DM+Mono:wght@300;400&display=swap'); 1507 @keyframes reelPulse { 1508 0% { box-shadow: 0 0 0 0 rgba(201,168,76,0.35), 0 0 50px rgba(201,168,76,0.1); } 1509 70% { box-shadow: 0 0 0 20px rgba(201,168,76,0), 0 0 50px rgba(201,168,76,0.1); } 1510 100% { box-shadow: 0 0 0 0 rgba(201,168,76,0), 0 0 50px rgba(201,168,76,0.1); } 1511 } 1512 @keyframes reelGlow { 1513 0%, 100% { opacity: 0.4; } 1514 50% { opacity: 0.7; } 1515 } 1516 .reel-tap-zone { opacity: 0; transition: opacity 0.2s; } 1517 .reel-tap-zone:hover { opacity: 1; } 1518`;function aK(){const[e,t]=p.useState(0),[s,i]=p.useState(!1),[o,c]=p.useState(0),[u,f]=p.useState(1),h=p.useRef(null),m=p.useRef(null),x=p.useRef(0),y=p.useCallback((j,S=1)=>{f(S),t(j),c(0),x.current=0},[]),b=p.useCallback(()=>{t(j=>{const S=(j+1)%gr.length;return f(1),c(0),x.current=0,S})},[]),w=p.useCallback(()=>{t(j=>{const S=(j-1+gr.length)%gr.length;return f(-1),c(0),x.current=0,S})},[]);p.useEffect(()=>{if(s){h.current&&clearInterval(h.current),m.current&&clearInterval(m.current);return}const j=80;return m.current=setInterval(()=>{const S=gr[e].duration*1e3;x.current=Math.min(x.current+j,S),c(x.current/S),x.current>=S&&(x.current=0,t(T=>(T+1)%gr.length),f(1),c(0))},j),()=>{m.current&&clearInterval(m.current)}},[s,e]),p.useEffect(()=>{const j=S=>{S.key==="ArrowRight"||S.key==="ArrowDown"?b():S.key==="ArrowLeft"||S.key==="ArrowUp"?w():S.key===" "&&(S.preventDefault(),i(T=>!T))};return window.addEventListener("keydown",j),()=>window.removeEventListener("keydown",j)},[b,w]);const C={initial:j=>({opacity:0,x:j*60}
1518),animate:{opacity:1,x:0},exit:j=>({opacity:0,x:j*-40})};return a.jsxs(a.Fragment,{children:[a.jsx("style",{children:sK}),a.jsxs("div",{style:{position:"fixed",inset:0,background:oE,fontFamily:ts,color:"#f5f0e8",overflow:"hidden",userSelect:"none"},"data-testid":"reel-root",children:[a.jsx("div",{style:{position:"absolute",inset:0,backgroundImage:"linear-gradient(rgba(201,168,76,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(201,168,76,0.025) 1px, transparent 1px)",backgroundSize:"60px 60px",pointerEvents:"none",zIndex:0}}),a.jsx("div",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"80vw",height:"80vh",background:"radial-gradient(ellipse at center, rgba(201,168,76,0.04) 0%, transparent 70%)",pointerEvents:"none",zIndex:0,animation:"reelGlow 4s ease-in-out infinite"}}),a.jsx("div",{style:{position:"absolute",top:0,left:0,right:0,height:2,background:"rgba(201,168,76,0.12)",zIndex:100},children:a.jsx("div",{"data-testid":"reel-progress-bar",style:{height:"100%",width:`${o*100}%`,background:`linear-gradient(90deg, ${it}, ${vl})`,boxShadow:"0 0 8px rgba(201,168,76,0.6)",transition:"width 0.08s linear"}})}),a.jsxs("div",{style:{position:"absolute",top:24,left:32,zIndex:50,display:"flex",alignItems:"center",gap:10},children:[a.jsx("div",{style:{width:28,height:28,border:`1.5px solid ${js}`,borderRadius:7,display:"flex",alignItems:"center",justifyContent:"center",fontFamily:Nn,fontSize:14,color:it,background:Ya},children:"D"}),a.jsx("span",{style:{fontFamily:zs,fontSize:9.5,letterSpacing:"0.28em",textTransform:"uppercase",color:"rgba(201,168,76,0.65)"},children:"DomoVita.AI"})]}),a.jsxs("div",{style:{position:"absolute",top:24,right:80,zIndex:50,fontFamily:zs,fontSize:9.5,letterSpacing:"0.22em",color:"rgba(201,168,76,0.5)"},children:[String(e+1).padStart(2,"0")," / ",String(gr.length).padStart(2,"0")]}),a.jsx("div",{style:{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",padding:"64px 80px 100px",zIndex:10},children:a.jsx(gn,{mode:"wait",custom:u,children:a.jsxs(le.div,{custom:u,variants:C,initial:"initial",animate:"animate",exit:"exit",transition:{duration:.55,ease:[.22,1,.36,1]},style:{width:"100%",display:"flex",alignItems:"center",justifyContent:"center"},children:[e===0&&a.jsx(qY,{}),e===1&&a.jsx(GY,{}),e===2&&a.jsx(KY,{active:e===2}),e===3&&a.jsx(XY,{}),e===4&&a.jsx(JY,{active:e===4}),e===5&&a.jsx(eK,{}),e===6&&a.jsx(tK,{active:e===6}),e===7&&a.jsx(nK,{})]},e)})}),a.jsx("div",{className:"reel-tap-zone",onClick:w,"data-testid":"reel-prev",style:{position:"absolute",left:0,top:0,bottom:0,width:"15%",zIndex:20,cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"flex-start",paddingLeft:20},children:a.jsx("div",{style:{width:36,height:36,borderRadius:"50%",border:`1px solid ${js}`,background:Ya,display:"flex",alignItems:"center",justifyContent:"center",backdropFilter:"blur(8px)"},children:a.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:a.jsx("path",{d:"M8 2L4 6L8 10",stroke:it,strokeWidth:"1.5",strokeLinecap:"round"})})})}),a.jsx("div",{className:"reel-tap-zone",onClick:b,"data-testid":"reel-next",style:{position:"absolute",right:0,top:0,bottom:0,width:"15%",zIndex:20,cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"flex-end",paddingRight:20},children:a.jsx("div",{style:{width:36,height:36,borderRadius:"50%",border:`1px solid ${js}`,background:Ya,display:"flex",alignItems:"center",justifyContent:"center",backdropFilter:"blur(8px)"},children:a.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:a.jsx("path",{d:"M4 2L8 6L4 10",stroke:it,strokeWidth:"1.5",strokeLinecap:"round"})})})}),a.jsx("div",{style:{position:"absolute",bottom:28,left:0,right:0,zIndex:30,display:"flex",alignItems:"center",justifyContent:"center",gap:10},children:gr.map((j,S)=>a.jsx("button",{"data-testid":`reel-dot-${S}`,onClick:()=>y(S,S>e?1:-1),title:j.label,style:{width:e===S?20:5,height:5,borderRadius:100,background:e===S?it:"rgba(201,168,76,0.25)",border:`1px solid ${e===S?it:"rgba(201,168,76,0.35)"}`,cursor:"pointer",padding:0,boxShadow:e===S?`0 0 8px ${it}`:"none",transition:"all 0.35s ease"}},j.id))}),a.jsx("button",{onClick:()=>i(j=>!j),"data-testid":"reel-pause",title:s?"Resume":"Pause",style:{position:"absolute",bottom:22,right:28,zIndex:30,width:32,height:32,borderRadius:8,border:"1px solid rgba(201,168,76,0.25)",background:"rgba(7,9,15,0.7)",backdropFilter:"blur(8px)",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",opacity:.5,transition:"opacity 0.2s"},onMouseEnter:j=>j.currentTarget.style.opacity="1",onMouseLeave:j=>j.currentTarget.style.opacity="0.5",children:s?a.jsx("svg",{width:"10",height:"12",viewBox:"0 0 10 12",fill:"none",children:a.jsx("path",{d:"M2 1L9 6L2 11V1Z",fill:it})}):a.jsxs("svg",{width:"10",height:"12",viewBox:"0 0 10 12",fill:"none",children:[a.jsx("rect",{x:"1",y:"1",width:"3",height:"10",rx:"1",fill:it}),a.jsx("rect",{x:"6",y:"1",width:"3",height:"10",rx:"1",fill:it})]})}),s&&a.jsx(le.div,{...UY,transition:{duration:.3},style:{position:"absolute",top:24,left:"50%",transform:"translateX(-50%)",zIndex:50,fontFamily:zs,fontSize:9.5,letterSpacing:"0.25em",textTransform:"uppercase",color:"rgba(201,168,76,0.5)",background:"rgba(7,9,15,0.7)",backdropFilter:"blur(8px)",border:`1px solid ${js}`,borderRadius:6,padding:"6px 14px"},children:"Paused"})]})]})}function iK(){return a.jsxs("div",{style:{width:"1280px",background:"#0d0f14",minHeight:"800px",fontFamily:"'Georgia', serif",padding:"0",margin:"0",overflow:"hidden"},children:[a.jsx("style",{children:` 1519 @import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300&family=Montserrat:wght@300;400;500&display=swap'); 1520 * { box-sizing: border-box; margin: 0; padding: 0; } 1521 .sc-page { background: #0d0f14; font-family: 'Montserrat', sans-serif; width: 1280px; } 1522
1523 /* Top nav */ 1524 .sc-nav { 1525 display: flex; align-items: center; justify-content: space-between; 1526 padding: 0 40px; height: 64px; 1527 background: rgba(13,15,20,0.95); 1528 border-bottom: 1px solid rgba(201,168,76,0.15); 1529 } 1530 .sc-nav-logo { display: flex; align-items: center; gap: 10px; } 1531 .sc-nav-mark { 1532 width: 34px; height: 34px; border-radius: 8px; 1533 border: 1.5px solid rgba(201,168,76,0.4); 1534 background: rgba(201,168,76,0.1); 1535 display: flex; align-items: center; justify-content: center; 1536 font-family: 'Cormorant Garamond', serif; font-size: 18px; color: #c9a84c; 1537 } 1538 .sc-wordmark { font-family: 'Cormorant Garamond', serif; font-size: 18px; color: #f5f0e8; letter-spacing: 0.1em; } 1539 .sc-wordmark span { color: #c9a84c; } 1540 .sc-nav-items { display: flex; gap: 32px; } 1541 .sc-nav-item { font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(245,240,232,0.45); cursor: pointer; } 1542 .sc-nav-item.active { color: #c9a84c; border-bottom: 1px solid #c9a84c; padding-bottom: 2px; } 1543 .sc-nav-right { display: flex; align-items: center; gap: 14px; } 1544 .sc-avatar { 1545 width: 34px; height: 34px; border-radius: 50%; 1546 background: rgba(201,168,76,0.15); border: 1.5px solid rgba(201,168,76,0.3); 1547 display: flex; align-items: center; justify-content: center; 1548 font-size: 12px; color: #c9a84c; font-family: 'Montserrat', sans-serif; font-weight: 500; 1549 } 1550 1551 /* Main */ 1552 .sc-main { padding: 32px 40px; } 1553 1554 /* Hero */ 1555 .sc-hero { 1556 position: relative; border-radius: 16px; overflow: hidden; 1557 height: 320px; margin-bottom: 28px; 1558 } 1559 .sc-hero img { width: 100%; height: 100%; object-fit: cover; } 1560 .sc-hero-overlay { 1561 position: absolute; inset: 0; 1562 background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.1) 60%, transparent 100%); 1563 } 1564 .sc-hero-content { 1565 position: absolute; bottom: 0; left: 0; padding: 36px 40px; 1566 } 1567 .sc-welcome { font-size: 10px; letter-spacing: 0.35em; text-transform: uppercase; color: rgba(255,255,255,0.7); margin-bottom: 6px; font-family: 'Montserrat', sans-serif; } 1568 .sc-hero-estate { font-family: 'Cormorant Garamond', serif; font-size: 13px; letter-spacing: 0.25em; text-transform: uppercase; color: #c9a84c; margin-bottom: 4px; } 1569 .sc-hero-greeting { font-family: 'Cormorant Garamond', serif; font-size: 42px; font-weight: 300; color: #fff; line-height: 1.1; margin-bottom: 12px; } 1570 .sc-hero-weather { display: flex; align-items: center; gap: 20px; font-size: 13px; color: rgba(255,255,255,0.8); font-family: 'Montserrat', sans-serif; } 1571 1572 /* Cards row */ 1573 .sc-cards { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; margin-bottom: 28px; } 1574 .sc-card { 1575 background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); 1576 border-radius: 12px; padding: 22px; 1577 } 1578 .sc-card.gold { background: rgba(201,168,76,0.1); border-color: rgba(201,168,76,0.25); } 1579 .sc-card-label { font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(245,240,232,0.4); margin-bottom: 10px; } 1580 .sc-card-title { font-family: 'Cormorant Garamond', serif; font-size: 18px; color: #f5f0e8; margin-bottom: 4px; } 1581 .sc-card-sub { font-size: 12px; color: rgba(245,240,232,0.5); } 1582 .sc-card-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #c9a84c; margin-right: 6px; vertical-align: middle; } 1583 1584 /* Services */ 1585 .sc-services-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; } 1586 .sc-services-title { font-family: 'Cormorant Garamond', serif; font-size: 22px; color: #f5f0e8; } 1587 .sc-services-link { font-size: 11px; letter-spacing: 0.12em; color: #c9a84c; text-transform: uppercase; } 1588 .sc-services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; } 1589 .sc-service-card { position: relative; border-radius: 12px; overflow: hidden; height: 180px; } 1590 .sc-service-card img { width: 100%; height: 100%; object-fit: cover; } 1591 .sc-service-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, transparent 60%); } 1592 .sc-service-content { position: absolute; bottom: 0; left: 0; padding: 20px; } 1593 .sc-service-badge { 1594 display: inline-block; font-size: 9px; letter-spacing: 0.15em; text-transform: uppercase; 1595 background: rgba(255,255,255,0.15); color: #fff; border-radius: 100px; 1596 padding: 3px 10px; margin-bottom: 7px; backdrop-filter: blur(6px); 1597 } 1598 .sc-service-title { font-family: 'Cormorant Garamond', serif; font-size: 18px; color: #fff; } 1599 `}),a.jsxs("div",{className:"sc-page",children:[a.jsxs("nav",{className:"sc-nav",children:[a.jsxs("div",{className:"sc-nav-logo",children:[a.jsx("div",{className:"sc-nav-mark",children:"S"}),a.jsxs("span",{className:"sc-wordmark",children:["Sonoma Vineyard Estates",a.jsx("span",{children:".ai"})]})]}),a.jsx("div",{className:"sc-nav-items",children:["Home","Gate Access","Transport","Services","Concierge","My Home"].map((e,t)=>a.jsx("span",{className:`sc-nav-item${t===0?" active":""}`,children:e},e))}),a.jsx("div",{className:"sc-nav-right",children:a.jsx("div",{className:"sc-avatar",children:"MR"})})]}),a.jsxs("div",{className:"sc-main",children:[a.jsxs("div",{className:"sc-hero",children:[a.jsx("img",{src:n4,alt:"Sonoma Vineyard Estates"}),a.jsx("div",{className:"sc-hero-overlay"}),a.jsxs("div",{className:"sc-hero-content",children:[a.jsx("p",{className:"sc-welcome",children:"Welcome Home"}),a.jsx("p",{className:"sc-hero-estate",children:"Sonoma Vineyard Estates"}),a.jsxs("h1",{className:"sc-hero-greeting",children:["Good Evening,",a.jsx("br",{}),"Michael"]}),a.jsxs("div",{className:"sc-hero-weather",children:[a.jsx("span",{children:"âï¸ 74° Sunny"}),a.jsx("span",{children:"AQI 12 · Good"})]})]})]}),a.jsxs("div",{className:"sc-cards",children:[a.jsxs("div",{className:"sc-card",children:[a.jsx("div",{className:"sc-card-label",children:"Up Next"}),a.jsx("div",{className:"sc-card-title",children:"Chauffeur to SFO"}),a.jsx("div",{className:"sc-card-sub",children:"Tomorrow · 6:30 AM"}),a.jsxs("div",{style:{marginTop:"12px",fontSize:"11px",color:"#c9a84c"},children:[a.jsx("span",{className:"sc-card-dot"}),"Confirmed"]})]}),a.jsxs("div",{className:"sc-card",children:[a.jsx("div",{className:"sc-card-label",children:"New Benefit"}),a.jsx("div",{className:"sc-card-title",children:"Silver Oak Exclusive"}),a.jsx("div",{className:"sc-card-sub",children:"Private tasting access"})]}),a.jsxs("div",{className:"sc-card gold",children:[a.jsx("div",{className:"sc-card-label",children:"Concierge"}),a.jsx("div",{className:"sc-card-title",children:"Request a Service"}),a.jsx("div",{className:"sc-card-sub",style:{color:"rgba(201,168,76,0.7)"},children:"Our team is standing by"}),a.jsx("div",{style:{marginTop:"14px",fontSize:"11px",letterSpacing:"0.12em",textTransform:"uppercase",color:"#c9a84c"},children:"Make a Request â"})]})]}),a.jsxs("div",{children:[a.jsxs("div",{className:"sc-services-header",children:[a.jsx("span",{className:"sc-services-title",children:"Curated Services"}),a.jsx("span",{className:"sc-services-link",children:"View All â"})]}),a.jsxs("div",{className:"sc-services-grid",children:[a.jsxs("div",{className:"sc-service-card",children:[a.jsx("img",{src:ny,alt:"Winery"}),a.jsx("div",{className:"sc-service-overlay"}),a.jsxs("div",{className:"sc-service-content",children:[a.jsx("span",{className:"sc-service-badge",children:"Winery Network"}),a.jsx("div",{className:"sc-service-title",children:"Priority Access & Tastings"})]})]}),a.jsxs("div",{className:"sc-service-card",children:[a.jsx("img",{src:sh,alt:"Transport"}),a.jsx("div",{className:"sc-service-overlay"}),a.jsxs("div",{className:"sc-service-content",children:[a.jsx("span",{className:"sc-service-badge",children:"Private Transport"}),a.jsx("div",{className:"sc-service-title",children:"On-Demand Chauffeur"})]})]})]})]})]})]})]})}const EN=[{q:"What is DomoVita.AI and who is it designed for?",a:"DomoVita.AI is an AI-native smart home management platform built exclusively for luxury estates in Sonoma County and California's wine country. It's designed for high-net-worth homeowners, estate managers, and luxury real estate developers who want a single, intelligent interface to control every system in their home â from lighting and climate to security and concierge services. Our platform is currently deployed at Sonoma Vineyard Estates and is available by invitation to select properties across Northern California."},{q:"How does smart home automation work for luxury estates in Sonoma County?",a:"Smart home automation for Sonoma Valley estates goes far beyond simple app control. DomoVita.AI uses artificial intelligence to learn your household rhythms â automatically adjusting lighting as the sun sets over the vineyard, preparing your preferred indoor climate before you return from a tasting, or activating a 'guest arrival' scene the moment a visitor is cleared at the gate. Our AI concierge understands natural language, so you can simply say what you want and it happens across every connected system simultaneously."},{q:"Which smart home systems and hardware does DomoVita.AI work with?",a:"DomoVita.AI is hardware-agnostic and integrates with the industry's leading luxury home automation platforms, including Savant, Control4, Lutron, and Home Assistant. Most Sonoma County estates are already wired for one of these systems â DomoVita adds the AI intelligence layer on top, unifying everything under one beautifully designed interface without requiring you to replace your existing infrastru
1599cture. We also support Zigbee, Z-Wave, and Wi-Fi devices for newer installations."},{q:"Is DomoVita.AI available for properties in Napa Valley or other parts of California?",a:"Yes. While our flagship deployment is Sonoma Vineyard Estates in Sonoma County, DomoVita.AI is designed to scale to luxury estates throughout California's wine country, including Napa Valley, the Marin headlands, and the greater Bay Area. We work with select luxury real estate developers and hospitality operators to deploy the platform at properties where the standard of living demands something more than off-the-shelf smart home solutions. Reach out through our private access request form to discuss your property."},{q:"What security and privacy protections does DomoVita.AI provide for my estate?",a:"DomoVita.AI was built from the ground up with privacy as a non-negotiable. Your home data never leaves your private deployment â we do not sell, aggregate, or share resident behavioral data. The platform includes real-time IoT security risk scoring, per-device vulnerability monitoring, anomaly detection, and network segmentation across security, health, and IoT VLANs. All sessions use encrypted, httpOnly cookies and our infrastructure is audited against enterprise security standards. This is the level of oversight ultra-high-net-worth households in Sonoma County demand."},{q:"Can DomoVita.AI manage concierge and lifestyle services, not just smart home devices?",a:"Absolutely â this is one of the things that sets DomoVita apart from standard smart home platforms. In addition to device control, residents use DomoVita to book private transportation, arrange winery and cellar access, coordinate housekeeping and gardening schedules, manage guest and gate access permissions, and request concierge services like private chef arrangements or event catering. Everything is unified in one interface, so your home and lifestyle are managed from the same surface."},{q:"How does AI home automation compare to traditional smart home systems for wine country estates?",a:"Traditional smart home systems â even premium ones â give you sophisticated remote controls. You tap a scene button and the lights change. DomoVita.AI's AI layer makes the system proactive rather than reactive. It understands context: the time of day, who is home, what the weather is doing outside, whether guests are arriving, and what you've preferred in the past. For Sonoma Valley estates where the setting changes dramatically with seasons, time of day, and events, this intelligence makes an enormous difference in daily comfort and energy efficiency."},{q:"What does it cost to deploy DomoVita.AI at a luxury estate?",a:"DomoVita.AI is an invitation-only platform positioned for estates starting at $5 million. Pricing is structured as a deployment fee plus a platform subscription and is scoped to the size and complexity of the property. We partner directly with real estate developers, estate managers, and luxury integrators â not retail channels. If you're a property developer in Sonoma County or a homeowner interested in DomoVita for your estate, please request a private introduction through our contact form."},{q:"How is DomoVita.AI different from platforms like Alexa, Google Home, or Apple HomeKit?",a:"Consumer platforms like Alexa or Apple HomeKit are designed for the mass market â they work well for a typical home but weren't built for the complexity, privacy requirements, or service expectations of a luxury Sonoma Valley estate. DomoVita.AI handles hundreds of devices across multiple wings and structures, integrates with professional-grade hardware (Savant, Control4, Lutron), provides white-glove concierge workflows, includes enterprise security monitoring, and is deployed as a private cloud â meaning your data and home intelligence stay yours, not in a shared consumer cloud."},{q:"How do I request access or a demo for my property in Sonoma County?",a:"DomoVita.AI is deployed exclusively through partnerships with luxury real estate developers, estate managers, and certified integrators in California. To request a private introduction for your Sonoma County estate or development project, use the contact form on our homepage. We typically respond within 48 hours and can arrange a live demo of the full platform â including the AI concierge, smart home controls, security center, and concierge management workflows â at a time convenient for you."}];function rK(){const[,e]=ns(),[t,s]=p.useState(null);p.useEffect(()=>{document.title="FAQ | Luxury Smart Home Sonoma County â DomoVita.AI"},[]);const i={"@context":"https://schema.org","@type":"FAQPage",mainEntity:EN.map(o=>
1599({"@type":"Question",name:o.q,acceptedAnswer:{"@type":"Answer",text:o.a}}))};return a.jsxs("div",{className:"bg-[#07090f] text-white min-h-screen font-['Montserrat',sans-serif]",children:[a.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(i)}}),a.jsxs("nav",{className:"border-b border-white/[0.06] px-6 md:px-10 h-16 md:h-20 flex items-center justify-between sticky top-0 bg-[#07090f]/95 backdrop-blur-md z-50",children:[a.jsxs("button",{onClick:()=>e("/"),className:"flex items-center gap-3 hover:opacity-80 transition-opacity","data-testid":"link-faq-home",children:[a.jsx("img",{src:"/domovita-mark.svg",alt:"DomoVita",className:"h-8"}),a.jsxs("span",{className:"font-['Cormorant_Garamond',serif] text-lg font-light tracking-widest text-white/90",children:["DomoVita",a.jsx("span",{className:"text-[#c9a84c]",children:".ai"})]})]}),a.jsxs("div",{className:"flex items-center gap-6",children:[a.jsx("button",{onClick:()=>e("/blog"),className:"text-[10px] tracking-[0.2em] uppercase text-white/50 hover:text-white/80 transition-colors hidden md:block","data-testid":"link-faq-blog",children:"Blog"}),a.jsx("button",{onClick:()=>e("/login"),className:"text-[10px] tracking-[0.2em] uppercase text-white/70 hover:text-white transition-colors border border-white/20 hover:border-white/40 px-4 py-2 rounded","data-testid":"link-faq-login",children:"Resident Login"})]})]}),a.jsxs("header",{className:"py-20 md:py-28 px-6 text-center border-b border-white/[0.05]",children:[a.jsx("p",{className:"text-[#c9a84c] text-[10px] tracking-[0.5em] uppercase mb-5 font-medium",children:"Frequently Asked Questions"}),a.jsxs("h1",{className:"font-['Cormorant_Garamond',serif] text-4xl md:text-5xl lg:text-6xl font-light leading-tight tracking-wide mb-5",children:["Luxury Smart Home Management",a.jsx("br",{}),a.jsx("span",{className:"italic text-white/75",children:"in Sonoma County, California"})]}),a.jsx("p",{className:"text-white/60 text-sm md:text-base max-w-2xl mx-auto leading-relaxed font-light",children:"Everything you need to know about AI-native estate management, smart home automation for wine country properties, and what makes DomoVita.AI different."})]}),a.jsxs("main",{className:"max-w-3xl mx-auto px-6 py-16 md:py-20",children:[a.jsx("div",{className:"space-y-0 divide-y divide-white/[0.06]",children:EN.map((o,c)=>a.jsxs("div",{"data-testid":`faq-item-${c}`,children:[a.jsxs("button",{className:"w-full text-left py-6 flex items-start justify-between gap-6 group",onClick:()=>s(t===c?null:c),"data-testid":`faq-toggle-${c}`,children:[a.jsx("span",{className:"font-['Cormorant_Garamond',serif] text-lg md:text-xl font-light text-white/90 group-hover:text-white transition-colors leading-snug",children:o.q}),a.jsx("span",{className:"flex-shrink-0 mt-1 text-[#c9a84c]/60 group-hover:text-[#c9a84c] transition-colors",children:t===c?a.jsx(OS,{className:"w-4 h-4"}):a.jsx(zf,{className:"w-4 h-4"})})]}),t===c&&a.jsx("div",{className:"pb-7 -mt-1",children:a.jsx("p",{className:"text-white/65 text-sm leading-relaxed font-light",children:o.a})})]},c))}),a.jsxs("div",{className:"mt-20 pt-12 border-t border-white/[0.05] text-center",children:[a.jsx("p",{className:"font-['Cormorant_Garamond',serif] text-2xl font-light text-white/80 mb-3",children:"Ready to explore DomoVita for your estate?"}),a.jsx("p",{className:"text-white/50 text-sm mb-8 font-light",children:"We work exclusively with luxury properties in Sonoma County and California wine country."}),a.jsx("button",{onClick:()=>e("/#access"),className:"bg-[#c9a84c]/10 hover:bg-[#c9a84c]/20 border border-[#c9a84c]/30 hover:border-[#c9a84c]/60 text-[#c9a84c] px-8 py-3.5 rounded text-xs tracking-[0.25em] uppercase font-medium transition-all duration-300","data-testid":"button-faq-request-access",children:"Request Private Access"})]})]}),a.jsx("footer",{className:"border-t border-white/[0.05] py-10 px-6",children:a.jsxs("div",{className:"max-w-7xl mx-auto flex flex-col md:flex-row items-center justify-between gap-6",children:[a.jsxs("button",{onClick:()=>e("/"),className:"flex items-center gap-3 opacity-60 hover:opacity-90 transition-opacity",children:[a.jsx("img",{src:"/domovita-mark.svg",alt:"DomoVita",className:"h-7"}),a.jsxs("span",{className:"font-['Cormorant_Garamond',serif] text-sm font-light tracking-widest text-white/55",children:["DomoVita",a.jsx("span",{className:"text-[#c9a84c]/70",children:".ai"})]})]}),a.jsxs("div",{className:"flex items-center gap-6 text-white/35 text-[10px] tracking-[0.2em] uppercase",children:[a.jsx("button",{onClick:()=>e("/"),className:"hover:text-white/60 transition-colors",children:"Home"}),a.jsx("button",{onClick:()=>e("/faq"),className:"text-white/60",children:"FAQ"}),a.jsx("button",{onClick:()=>e("/blog"),className:"hover:text-white/60 transition-colors",children:"Blog"}),a.jsx("button",{onClick:()=>
1599e("/login"),className:"hover:text-white/60 transition-colors",children:"Resident Login"})]}),a.jsxs("p",{className:"text-white/30 text-[10px] tracking-widest uppercase",children:["© ",new Date().getFullYear()," DomoVita.AI · Sonoma County, CA"]})]})})]})}const Cg=[{slug:"sonoma-homeowners-ai-home-management",date:"June 2026",category:"Estate Living",title:"Why Sonoma Valley's Most Discerning Homeowners Are Embracing AI-Native Home Management",excerpt:"For generations, Sonoma County's luxury estate owners have demanded the best â in wine, in architecture, in the land itself. Now that same standard is reshaping how the homes on those estates are managed.",body:`For generations, Sonoma County's luxury estate owners have demanded the best â in wine, in architecture, in the land itself. Now that same standard is reshaping how the homes on those estates are managed. 1600 1601The shift began quietly. A handful of high-net-worth homeowners in the Alexander Valley and Dry Creek corridor started asking their estate managers the same question: why does controlling a $12 million home feel more complicated than it should? Lights that require three different apps. Climate systems that need a technician to reprogram. Security cameras on a fourth platform entirely. 1602 1603AI-native home management platforms like DomoVita.AI are the answer that Sonoma County's most discerning homeowners have been waiting for. Rather than adding another layer of fragmentation, DomoVita acts as an intelligence layer â sitting above whatever hardware the home was already built with and unifying it under a single, beautifully designed interface that understands natural language. 1604 1605The difference is felt most acutely in the moments that matter. When 14 guests are arriving for a harvest dinner and you need the outdoor lighting, the wine cellar temperature, the gate codes for the valet, and the speakers in the great room all configured before they arrive â that's when an AI concierge that understands context pays for itself entirely. 1606 1607Sonoma Valley's estate lifestyle has always been about effortlessness. The best wineries here have long understood that the mark of true luxury is invisible service â things that simply work the way you want them to, before you even articulate the need. DomoVita brings that same philosophy to how a home thinks, responds, and takes care of the people inside it. 1608 1609Early adopters at Sonoma Vineyard Estates report that the most valued capability isn't any single automation â it's the feeling that the home is paying attention. The AI learns preferences gradually: preferred evening lighting levels in different seasons, the climate adjustment that happens when the fog rolls in from Bodega Bay, the morning routine that begins on weekdays versus weekends. Over time, the estate begins to feel genuinely intelligent â not because it's running a complicated script, but because it's learning to anticipate. 1610 1611For homeowners who've spent decades curating every other element of the Sonoma lifestyle, that level of intelligence in the home itself is no longer a luxury. It's an expectation.`},{slug:"smart-home-wine-country-estates",date:"May 2026",category:"Technology",title:"Smart Home Technology for Wine Country Estates: What to Look For",excerpt:"Not all smart home platforms are created equal â and luxury estates in Napa and Sonoma counties have requirements that most consumer-grade systems simply weren't designed to handle.",body:`Not all smart home platforms are created equal â and luxury estates in Napa and Sonoma counties have requirements that most consumer-grade systems simply weren't designed to handle. 1612 1613Wine country estates present a unique set of smart home challenges. Properties are often large â multiple structures, guest houses, wine caves, agricultural outbuildings â with complex HVAC requirements driven by the same microclimates that make Sonoma County wines so distinctive. A morning fog in the valley, afternoon warmth on the hillside, and a cool evening breeze all within the same property boundary demand a system sophisticated enough to respond dynamically rather than execute a fixed schedule. 1614 1615Here's what to look for when evaluating smart home technology for a Sonoma or Napa Valley estate. 1616 1617**Hardware compatibility without vendor lock-in.** The best luxury estates in California wine country are built with professional-grade hardware â Savant, Control4, Lutron â that represents significant investment. The right smart home platform should work with these systems, not replace them. DomoVita.AI is designed to sit on top of existing infrastru
1617cture, adding intelligence without requiring a full hardware replacement. 1618 1619**Multi-structure support.** A main residence, a guest cottage, a pool house, and a wine cave are not unusual for a premium Sonoma County property. Your platform should handle all of them under one roof â with room-level and structure-level control, not just device-level management. 1620 1621**Privacy architecture that matches the property's value.** Consumer smart home platforms are built on shared cloud infrastructure. For estates valued at $5 million and above, that's not acceptable. Look for platforms that offer private deployment, encrypted sessions, and on-premise data processing â the same standards applied to enterprise security at that scale. 1622 1623**AI that learns rather than just executes.** A scene button that dims lights to 30% is a remote control. True smart home intelligence for wine country estates means a system that notices you dim the lights to 30% every evening when the sun reaches the western ridge, and starts doing it before you ask. 1624 1625**Concierge and lifestyle integration.** The smart home platform of choice for Sonoma Valley's luxury market shouldn't stop at device control. Gate access management for vendors and guests, transportation booking, housekeeping scheduling, and winery reservation coordination should all live in the same interface. The goal is a single surface for managing the entire estate lifestyle â not nine separate apps. 1626 1627DomoVita.AI was built with all of these considerations in mind, and is currently deployed at Sonoma Vineyard Estates. If you're evaluating platforms for a luxury property in Northern California, we'd welcome the conversation.`},{slug:"domovita-unifies-luxury-estate",date:"April 2026",category:"Platform",title:"From Lighting to Security: How DomoVita.AI Unifies the Modern Luxury Estate",excerpt:"The modern luxury estate in California wine country is, in many ways, a feat of engineering. What DomoVita.AI makes possible is something that's been missing: a single intelligence that holds it all together.",body:`The modern luxury estate in California wine country is, in many ways, a feat of engineering. Savant systems managing audio-visual distribution. Lutron controlling thousands of lighting zones. A Crestron-driven HVAC network. A professional-grade security system. A wine cellar with its own climate controls. Smart irrigation mapped to drought-condition forecasts. 1628 1629Each of these systems represents a significant investment â and each one, individually, works beautifully. What's been missing is a single intelligence that holds them all together and makes the whole greater than the sum of its parts. 1630 1631That's what DomoVita.AI was built to be. 1632 1633**The unified interface.** DomoVita.AI doesn't replace the hardware you've invested in. It sits above it â translating between different proprietary systems and presenting everything through a single, elegantly designed interface. Whether your estate runs Control4, Savant, Lutron, or a combination, DomoVita speaks all of their languages and presents everything to the resident as one coherent home. 1634 1635**AI that acts on context, not commands.** The platform's AI concierge understands natural language and acts on context. "Prepare the house for tonight's dinner" is understood as a multi-system command: lighting scenes in the dining room and outdoor terrasse, the wine cellar brought to serving temperature, the guest gate codes activated for the evening, the landscape lighting set to the warm evening palette. One instruction. Everything done. 1636 1637**Security that scales to the estate.** DomoVita.AI includes a comprehensive IoT security center â real-time risk scoring across every connected device, anomaly detection, per-device vulnerability assessment, and network segmentation across security, health, and IoT VLANs. For a Sonoma County estate with 200+ connected devices, this level of monitoring is not optional. It's the same oversight framework applied to enterprise data centers, adapted for the luxury residential context. 1638 1639**Concierge woven into the home.** The platform's concierge layer handles transportation bookings, gate access management, housekeeping coordination, winery reservations, and vendor scheduling â all from the same interface residents use to dim their lights. At Sonoma Vineyard Estates, residents report that the concierge integration is the feature that surprises them most. Not because device control isn't impressive, but because the integration of lifestyle services into the home interface feels genuinely new. 1640 1641The luxury estate of 2026 is defined not just by what it's built of, but by how intelligently it responds to the people living in it. DomoVita.AI is the platform making that intelligence real â starting in Sonoma Valley, and expanding to the world's most exceptional properties from there.`}];function oK(){const[,e]=ns(),[t,s]=p.useState(null);p.useEffect(()=>{document.title="Blog | Smart Home Insights for Sonoma Valley Estates â DomoVita.AI"},[]);const i=Cg.find(c=>c.slug===t),o={"@context":"https://schema.org","@type":"Blog",name:"DomoVita.AI â Luxury Smart Home Insights",description:"Articles on AI-native smart home management, luxury estate automation, and living well in California wine country.",url:"https://domovita.ai/blog",blogPost:Cg.map(c=>
1641({"@type":"BlogPosting",headline:c.title,description:c.excerpt,datePublished:c.date,author:{"@type":"Organization",name:"DomoVita.AI"},publisher:{"@type":"Organization",name:"DomoVita.AI",url:"https://domovita.ai"}}))};return a.jsxs("div",{className:"bg-[#07090f] text-white min-h-screen font-['Montserrat',sans-serif]",children:[a.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(o)}}),a.jsxs("nav",{className:"border-b border-white/[0.06] px-6 md:px-10 h-16 md:h-20 flex items-center justify-between sticky top-0 bg-[#07090f]/95 backdrop-blur-md z-50",children:[a.jsxs("button",{onClick:()=>e("/"),className:"flex items-center gap-3 hover:opacity-80 transition-opacity","data-testid":"link-blog-home",children:[a.jsx("img",{src:"/domovita-mark.svg",alt:"DomoVita",className:"h-8"}),a.jsxs("span",{className:"font-['Cormorant_Garamond',serif] text-lg font-light tracking-widest text-white/90",children:["DomoVita",a.jsx("span",{className:"text-[#c9a84c]",children:".ai"})]})]}),a.jsxs("div",{className:"flex items-center gap-6",children:[a.jsx("button",{onClick:()=>e("/faq"),className:"text-[10px] tracking-[0.2em] uppercase text-white/50 hover:text-white/80 transition-colors hidden md:block","data-testid":"link-blog-faq",children:"FAQ"}),a.jsx("button",{onClick:()=>e("/login"),className:"text-[10px] tracking-[0.2em] uppercase text-white/70 hover:text-white transition-colors border border-white/20 hover:border-white/40 px-4 py-2 rounded","data-testid":"link-blog-login",children:"Resident Login"})]})]}),i&&a.jsx("div",{className:"fixed inset-0 bg-[#07090f]/98 z-50 overflow-y-auto",children:a.jsxs("div",{className:"max-w-2xl mx-auto px-6 py-16",children:[a.jsxs("button",{onClick:()=>s(null),className:"flex items-center gap-2 text-white/40 hover:text-white/70 text-[10px] tracking-[0.2em] uppercase mb-12 transition-colors","data-testid":"button-close-article",children:[a.jsx(Ui,{className:"w-3.5 h-3.5"})," Back to Blog"]}),a.jsxs("p",{className:"text-[#c9a84c] text-[10px] tracking-[0.4em] uppercase mb-3",children:[i.category," · ",i.date]}),a.jsx("h1",{className:"font-['Cormorant_Garamond',serif] text-3xl md:text-4xl font-light leading-tight tracking-wide mb-10 text-white/95",children:i.title}),a.jsx("div",{className:"w-12 h-px bg-gradient-to-r from-[#c9a84c]/40 to-transparent mb-10"}),i.body.split(` 1642 1643`).map((c,u)=>{if(c.startsWith("**")&&c.endsWith("**"))return a.jsx("h3",{className:"font-['Cormorant_Garamond',serif] text-xl font-light text-white/85 mt-8 mb-3",children:c.replace(/\*\*/g,"")},u);if(c.includes("**")){const f=c.split(/\*\*(.*?)\*\*/g);return a.jsx("p",{className:"text-white/65 text-sm leading-relaxed mb-5 font-light",children:f.map((h,m)=>m%2===1?a.jsx("strong",{className:"text-white/85 font-medium",children:h},m):h)},u)}return a.jsx("p",{className:"text-white/65 text-sm leading-relaxed mb-5 font-light",children:c},u)}),a.jsxs("div",{className:"mt-16 pt-10 border-t border-white/[0.05] text-center",children:[a.jsx("p",{className:"text-white/50 text-sm font-light mb-6",children:"Interested in DomoVita.AI for your Sonoma County estate?"}),a.jsx("button",{onClick:()=>e("/#access"),className:"bg-[#c9a84c]/10 hover:bg-[#c9a84c]/20 border border-[#c9a84c]/30 hover:border-[#c9a84c]/60 text-[#c9a84c] px-8 py-3.5 rounded text-xs tracking-[0.25em] uppercase font-medium transition-all","data-testid":"button-article-request-access",children:"Request Private Access"})]})]})}),a.jsxs("header",{className:"py-20 md:py-28 px-6 text-center border-b border-white/[0.05]",children:[a.jsx("p",{className:"text-[#c9a84c] text-[10px] tracking-[0.5em] uppercase mb-5 font-medium",children:"Insights & Perspectives"}),a.jsxs("h1",{className:"font-['Cormorant_Garamond',serif] text-4xl md:text-5xl lg:text-6xl font-light leading-tight tracking-wide mb-5",children:["Smart Home Living",a.jsx("br",{}),a.jsx("span",{className:"italic text-white/75",children:"in California Wine Country"})]}),a.jsx("p",{className:"text-white/60 text-sm md:text-base max-w-xl mx-auto leading-relaxed font-light",children:"Perspectives on AI-native estate management, luxury home automation, and the future of intelligent living in Sonoma Valley."})]}),a.jsx("main",{className:"max-w-5xl mx-auto px-6 py-16 md:py-20",children:a.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-px bg-white/[0.04] border border-white/[0.04]",children:Cg.map(c=>a.jsxs("article",{className:"bg-[#07090f] p-8 flex flex-col group","data-testid":`article-card-${c.slug}`,children:[a.jsxs("p",{className:"text-[#c9a84c]/60 text-[10px] tracking-[0.3em] uppercase mb-4 font-medium",children:[c.category," · ",c.date]}),a.jsx("h2",{className:"font-['Cormorant_Garamond',serif] text-xl md:text-2xl font-light leading-snug text-white/90 mb-4 group-hover:text-white transition-colors flex-1",children:c.title}),a.jsx("p",{className:"text-white/55 text-sm leading-relaxed font-light mb-6",children:c.excerpt}),a.jsxs("button",{onClick:()=>s(c.slug),className:"flex items-center gap-2 text-[#c9a84c]/70 hover:text-[#c9a84c] text-xs tracking-[0.2em] uppercase font-medium transition-colors group/btn w-fit","data-testid":`button-read-${c.slug}`,children:["Read Article",a.jsx(Vn,{className:"w-3.5 h-3.5 group-hover/btn:translate-x-0.5 transition-transform"})]})]},c.slug))})}),a.jsx("footer",{className:"border-t border-white/[0.05] py-10 px-6",children:a.jsxs("div",{className:"max-w-7xl mx-auto flex flex-col md:flex-row items-center justify-between gap-6",children:[a.jsxs("button",{onClick:()=>e("/"),className:"flex items-center gap-3 opacity-60 hover:opacity-90 transition-opacity",children:[a.jsx("img",{src:"/domovita-mark.svg",alt:"DomoVita",className:"h-7"}),a.jsxs("span",{className:"font-['Cormorant_Garamond',serif] text-sm font-light tracking-widest text-white/55",children:["DomoVita",a.jsx("span",{className:"text-[#c9a84c]/70",children:".ai"})]})]}),a.jsxs("div",{className:"flex items-center gap-6 text-white/35 text-[10px] tracking-[0.2em] uppercase",children:[a.jsx("button",{onClick:()=>e("/"),className:"hover:text-white/60 transition-colors",children:"Home"}),a.jsx("button",{onClick:()=>e("/faq"),className:"hover:text-white/60 transition-colors",children:"FAQ"}),a.jsx("button",{onClick:()=>e("/blog"),className:"text-white/60",children:"Blog"}),a.jsx("button",{onClick:()=>
1643e("/login"),className:"hover:text-white/60 transition-colors",children:"Resident Login"})]}),a.jsxs("p",{className:"text-white/30 text-[10px] tracking-widest uppercase",children:["© ",new Date().getFullYear()," DomoVita.AI · Sonoma County, CA"]})]})})]})}function lK({alerts:e,onDismiss:t}){const[s,i]=p.useState(!1),o=p.useRef(null);if(p.useEffect(()=>{e.length===0&&s&&i(!1)},[e.length,s]),p.useEffect(()=>{if(!s)return;const u=f=>{o.current&&!o.current.contains(f.target)&&i(!1)};return document.addEventListener("mousedown",u),()=>document.removeEventListener("mousedown",u)},[s]),e.length===0)return null;const c=e.length;return a.jsxs("div",{ref:o,className:"fixed bottom-6 right-6 z-40","data-testid":"medium-alert-notifications",children:[s&&a.jsxs("div",{className:"absolute bottom-16 right-0 w-[22rem] max-h-[28rem] overflow-y-auto bg-slate-900/90 backdrop-blur-xl border border-amber-400/30 rounded-2xl shadow-xl",role:"region","aria-label":"Medium severity notifications","data-testid":"panel-medium-alerts",children:[a.jsxs("div",{className:"sticky top-0 bg-slate-900/95 backdrop-blur-xl px-4 py-3 border-b border-white/10 flex items-center justify-between",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx($S,{className:"w-4 h-4 text-amber-300"}),a.jsx("h3",{className:"text-white text-sm font-semibold",children:"Heads up"}),a.jsxs("span",{className:"text-white/40 text-xs",children:[c," notice",c===1?"":"s"]})]}),a.jsx("button",{onClick:()=>i(!1),className:"p-1 rounded-md hover:bg-white/10 text-white/50 hover:text-white","aria-label":"Close notifications","data-testid":"button-close-medium-panel",children:a.jsx(Ui,{className:"w-4 h-4"})})]}),a.jsx("ul",{className:"divide-y divide-white/5",children:e.map(u=>a.jsx("li",{className:"px-4 py-3 hover:bg-white/5 transition-colors","data-testid":`medium-alert-${u.id}`,children:a.jsxs("div",{className:"flex items-start gap-3",children:[a.jsx("span",{className:"flex-shrink-0 w-2 h-2 mt-2 rounded-full bg-amber-300/90"}),a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsx("p",{className:"text-white text-sm font-medium leading-snug","data-testid":`text-medium-alert-title-${u.id}`,children:u.title}),a.jsx("p",{className:"text-white/60 text-xs mt-1 leading-snug",children:u.description}),a.jsx("p",{className:"text-white/35 text-[11px] mt-1.5",children:[u.contextLabel,u.timeLabel].filter(Boolean).join(" · ")})]}),a.jsx("button",{onClick:()=>t(u.id),className:"flex-shrink-0 text-white/40 hover:text-white text-xs px-2 py-1 rounded-md hover:bg-white/10 transition-colors","aria-label":"Acknowledge","data-testid":`button-acknowledge-medium-${u.id}`,children:"Got it"})]})},u.id))})]}),a.jsxs("button",{onClick:()=>i(u=>!u),className:"relative inline-flex items-center justify-center w-12 h-12 rounded-full bg-slate-900/80 backdrop-blur-xl border border-amber-400/40 text-amber-200 hover:text-amber-100 hover:border-amber-300/60 shadow-lg transition-colors","aria-label":`${c} medium severity notification${c===1?"":"s"}`,"aria-expanded":s,"data-testid":"button-medium-alert-bell",children:[a.jsx(DS,{className:"w-5 h-5"}),a.jsx("span",{className:"absolute -top-1 -right-1 min-w-[1.25rem] h-5 px-1 rounded-full bg-amber-400 text-slate-900 text-[11px] font-bold flex items-center justify-center","data-testid":"badge-medium-alert-count",children:c>9?"9+":c})]})]})}const cK=new Set(["critical","high"]),MN={critical:0,high:1,medium:2,low:3,info:4};function uE(e){const t=new Date(e).getTime();if(Number.isNaN(t))return"recently";const s=Date.now()-t,i=Math.max(0,Math.round(s/6e4));if(i<1)return"just now";if(i<60)return`${i} min ago`;const o=Math.round(i/60);if(o<24)return`${o} hr ago`;const c=Math.round(o/24);return`${c} day${c===1?"":"s"} ago`}function dK(e){return e.replace(/([A-Z])/g," $1").replace(/_/g," ").replace(/\s+/g," ").trim().replace(/\b\w/g,t=>t.toUpperCase())}function uK(e){return e==="critical"?"Immediate attention required. Isolate the affected device and contact support.":"Investigate within the next few hours to prevent escalation."}function fK(e,t,s){const i=[{label:"What happened",desc:e.description}];if(e.metadata&&typeof e.metadata=="object")for(const[f,h]of Object.entries(e.metadata))h==null||typeof h=="object"||i.push({label:dK(f),desc:String(h)});e.sourceIp&&i.push({label:"Source IP",desc:e.sourceIp});const o=[t?`${t}${s?` · ${s}`:""}`:null,`Detected ${uE(e.createdAt)}`,`Severity: ${e.severity}
1643`].filter(Boolean),c=t?`${t} â ${e.title}`:e.title,u=t?`${t}: ${e.description}`:e.description;return{id:e.id,title:e.title,shortDescription:u,diagnosticsHeading:c,diagnosticsSubtitle:o.join(" · "),issues:i,recommendation:uK(e.severity)}}function hK(){const e=Fs();A3();const{data:t=[]}=Gt({queryKey:["/api/security/events"],refetchInterval:3e4}),{data:s=[]}=Gt({queryKey:["/api/security/devices"]}),{data:i=[]}=Gt({queryKey:["/api/smart-home/rooms"]}),o=dn({mutationFn:async m=>{if(!(await fetch(`/api/security/events/${m}/acknowledge`,{method:"POST"})).ok)throw new Error("Failed to acknowledge alert")},onSuccess:()=>{e.invalidateQueries({queryKey:["/api/security/events"]}),e.invalidateQueries({queryKey:["/api/security/overview"]})}}),c=new Map(s.map(m=>[m.device.id,m.device])),u=new Map(i.map(m=>[m.id,m.name])),f=t.filter(m=>!m.isAcknowledged&&cK.has(m.severity)).sort((m,x)=>{const y=MN[m.severity]-MN[x.severity];return y!==0?y:new Date(x.createdAt).getTime()-new Date(m.createdAt).getTime()}).map(m=>{const x=m.deviceId?c.get(m.deviceId):null,y=x?.roomId?u.get(x.roomId)??null:null;return fK(m,x?.name??null,y)}),h=t.filter(m=>!m.isAcknowledged&&m.severity==="medium").sort((m,x)=>new Date(x.createdAt).getTime()-new Date(m.createdAt).getTime()).map(m=>{const x=m.deviceId?c.get(m.deviceId):null,y=x?.roomId?u.get(x.roomId)??null:null,b=x?`${x.name}${y?` · ${y}`:""}`:null;return{id:m.id,title:m.title,description:m.description,contextLabel:b,timeLabel:uE(m.createdAt)}});return a.jsxs(a.Fragment,{children:[a.jsx(gy,{alerts:f,onDismiss:m=>o.mutate(m)}),a.jsx(lK,{alerts:h,onDismiss:m=>o.mutate(m)})]})}function ys({component:e}){const{isAuthenticated:t,isLoading:s}=f0();return s?a.jsx("div",{className:"min-h-screen flex items-center justify-center bg-background",children:a.jsx("div",{className:"w-8 h-8 border-2 border-primary border-t-transparent rounded-full animate-spin"})}):t?a.jsx(e,{}):a.jsx(kg,{to:"/login"})}function mK(){const{isAuthenticated:e,isLoading:t}=f0();return t?a.jsx("div",{className:"min-h-screen flex items-center justify-center bg-black",children:a.jsx("div",{className:"w-8 h-8 border-2 border-white/30 border-t-white rounded-full animate-spin"})}):a.jsxs(a.Fragment,{children:[e&&a.jsx(hK,{}),a.jsxs(Yu,{children:[a.jsx(Pt,{path:"/",children:e?a.jsx(kg,{to:"/smart-home"}):a.jsx(vV,{})}),a.jsx(Pt,{path:"/login",children:e?a.jsx(kg,{to:"/smart-home"}):a.jsx(bV,{})}),a.jsx(Pt,{path:"/dashboard",children:a.jsx(ys,{component:Jj})}),a.jsx(Pt,{path:"/community",children:a.jsx(ys,{component:Jj})}),a.jsx(Pt,{path:"/gate-access",children:a.jsx(ys,{component:LH})}),a.jsx(Pt,{path:"/transport",children:a.jsx(ys,{component:PH})}),a.jsx(Pt,{path:"/services",children:a.jsx(ys,{component:RH})}),a.jsx(Pt,{path:"/concierge",children:a.jsx(ys,{component:FW})}),a.jsx(Pt,{path:"/my-home",children:a.jsx(ys,{component:iG})}),a.jsx(Pt,{path:"/smart-home",children:a.jsx(ys,{component:IG})}),a.jsx(Pt,{path:"/demo-alert",children:a.jsx(ys,{component:$G})}),a.jsx(Pt,{path:"/proposal",children:a.jsx(ys,{component:FG})}),a.jsx(Pt,{path:"/security",children:a.jsx(ys,{component:mY})}),a.jsx(Pt,{path:"/pitchdeck-passwords",children:a.jsx(ys,{component:MY})}),a.jsx(Pt,{path:"/faq",children:a.jsx(rK,{})}),a.jsx(Pt,{path:"/blog",children:a.jsx(oK,{})}),a.jsx(Pt,{path:"/screenshot-community",children:a.jsx(iK,{})}),a.jsx(Pt,{component:rz})]})]})}function pK(){const[e]=Wo("/demo"),[t]=Wo("/demo-login");return e||t}function gK(){const[e]=Wo("/pitchdeck"),[t]=Wo("/pitchdeck/view");return e||t}function xK(){const[e]=Wo("/brochure");return e}function yK(){const[e]=Wo("/reel");return e}function vK(){const e=gK(),t=pK(),s=xK();return yK()?a.jsx(Yu,{children:a.jsx(Pt,{path:"/reel",component:aK})}):e?a.jsxs(Yu,{children:[a.jsx(Pt,{path:"/pitchdeck",component:gY}),a.jsx(Pt,{path:"/pitchdeck/view",component:TY})]}):s?a.jsx(Yu,{children:a.jsx(Pt,{path:"/brochure",component:HY})}):t?a.jsx(m2,{children:a.jsxs(h2,{children:[a.jsx(Pt,{path:"/demo-login",component:PY}),a.jsx(Pt,{path:"/demo",component:_Y}),a.jsx(Zw,{})]})}):a.jsx(m2,{children:a.jsxs(h2,{children:[a.jsx(mK,{}),a.jsx(Zw,{})]})})}function bK(){return a.jsx(g6,{client:M6,children:a.jsx(az,{children:a.jsx(vK,{})})})}AA.createRoot(document.getElementById("root")).render(a.jsx(bK,{}));
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.