PageSourceSearch

https://lush.base44.app/assets/index-CAvViUwy.js

js lush.base44.app collected 2026-10-03 03:15:25 UTC 925,174 bytes, 491 lines download raw bytes

vendor: 6,242 bytes, lines 1-9
1var i0=e=>{throw TypeError(e)};var Af=(e,t,n)=>t.has(e)||i0("Cannot "+n);var M=(e,t,n)=>(Af(e,t,"read from private field"),n?n.call(e):t.get(e)),we=(e,t,n)=>t.has(e)?i0("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),ce=(e,t,n,s)=>(Af(e,t,"write to private field"),s?s.call(e,n):t.set(e,n),n),Oe=(e,t,n)=>(Af(e,t,"access private method"),n);var iu=(e,t,n,s)=>({set _(i){ce(e,t,i,n)},get _(){return M(e,t,s)}});function uP(e,t){for(var n=0;n<t.length;n++){const s=t[n];if(typeof s!="string"&&!Array.isArray(s)){for(const i in s)if(i!=="default"&&!(i in e)){const l=Object.getOwnPropertyDescriptor(s,i);l&&Object.defineProperty(e,i,l.get?l:{enumerable:!0,get:()=>s[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))s(i);new MutationObserver(i=>{for(const l of i)if(l.type==="childList")for(const c of l.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&s(c)}).observe(document,{childList:!0,subtree:!0});function n(i){const l={};return i.integrity&&(l.integrity=i.integrity),i.referrerPolicy&&(l.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?l.credentials="include":i.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function s(i){if(i.ep)return;i.ep=!0;const l=n(i);fetch(i.href,l)}})();function Tp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Pf={exports:{}},Da={},Ef={exports:{}},Ee={};/**
2 * @license React
3 * react.production.min.js
4 *
5 * Copyright (c) Facebook, Inc. and its affiliates.
6 *
7 * This source code is licensed under the MIT license found in the
8 * LICENSE file in the root directory of this source tree.
9 */var o0;function dP(){if(o0)return Ee;o0=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),g=Symbol.iterator;function x(F){return F===null||typeof F!="object"?null:(F=g&&F[g]||F["@@iterator"],typeof F=="function"?F:null)}var N={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,w={};function S(F,q,pe){this.props=F,this.context=q,this.refs=w,this.updater=pe||N}S.prototype.isReactComponent={},S.prototype.setState=function(F,q){if(typeof F!="object"&&typeof F!="function"&&F!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,F,q,"setState")},S.prototype.forceUpdate=function(F){this.updater.enqueueForceUpdate(this,F,"forceUpdate")};function j(){}j.prototype=S.prototype;function P(F,q,pe){this.props=F,this.context=q,this.refs=w,this.updater=pe||N}var A=P.prototype=new j;A.constructor=P,b(A,S.prototype),A.isPureReactComponent=!0;var E=Array.isArray,D=Object.prototype.hasOwnProperty,V={current:null},B={key:!0,ref:!0,__self:!0,__source:!0};function L(F,q,pe){var ye,Ce={},Te=null,Se=null;if(q!=null)for(ye in q.ref!==void 0&&(Se=q.ref),q.key!==void 0&&(Te=""+q.key),q)D.call(q,ye)&&!B.hasOwnProperty(ye)&&(Ce[ye]=q[ye]);var Fe=arguments.length-2;if(Fe===1)Ce.children=pe;else if(1<Fe){for(var ze=Array(Fe),dt=0;dt<Fe;dt++)ze[dt]=arguments[dt+2];Ce.children=ze}if(F&&F.defaultProps)for(ye in Fe=F.defaultProps,Fe)Ce[ye]===void 0&&(Ce[ye]=Fe[ye]);return{$$typeof:e,type:F,key:Te,ref:Se,props:Ce,_owner:V.current}}function ne(F,q){return{$$typeof:e,type:F.type,key:q,ref:F.ref,props:F.props,_owner:F._owner}}function Q(F){return typeof F=="object"&&F!==null&&F.$$typeof===e}function re(F){var q={"=":"=0",":":"=2"};return"$"+F.replace(/[=:]/g,function(pe){return q[pe]})}var ie=/\/+/g;function I(F,q){return typeof F=="object"&&F!==null&&F.key!=null?re(""+F.key):q.toString(36)}function Y(F,q,pe,ye,Ce){var Te=typeof F;(Te==="undefined"||Te==="boolean")&&(F=null);var Se=!1;if(F===null)Se=!0;else switch(Te){case"string":case"number":Se=!0;break;case"object":switch(F.$$typeof){case e:case t:Se=!0}}if(Se)return Se=F,Ce=Ce(Se),F=ye===""?"."+I(Se,0):ye,E(Ce)?(pe="",F!=null&&(pe=F.replace(ie,"$&/")+"/"),Y(Ce,q,pe,"",function(dt){return dt})):Ce!=null&&(Q(Ce)&&(Ce=ne(Ce,pe+(!Ce.key||Se&&Se.key===Ce.key?"":(""+Ce.key).replace(ie,"$&/")+"/")+F)),q.push(Ce)),1;if(Se=0,ye=ye===""?".":ye+":",E(F))for(var Fe=0;Fe<F.length;Fe++){Te=F[Fe];var ze=ye+I(Te,Fe);Se+=Y(Te,q,pe,ze,Ce)}else if(ze=x(F),typeof ze=="function")for(F=ze.call(F),Fe=0;!(Te=F.next()).done;)Te=Te.value,ze=ye+I(Te,Fe++),Se+=Y(Te,q,pe,ze,Ce);else if(Te==="object")throw q=String(F),Error("Objects are not valid as a React child (found: "+(q==="[object Object]"?"object with keys {"+Object.keys(F).join(", ")+"}":q)+"). If you meant to render a collection of children, use an array instead.");return Se}function oe(F,q,pe){if(F==null)return F;var ye=[],Ce=0;return Y(F,ye,"","",function(Te){return q.call(pe,Te,Ce++)}),ye}function ee(F){if(F._status===-1){var q=F._result;q=q(),q.then(function(pe){(F._status===0||F._status===-1)&&(F._status=1,F._result=pe)},function(pe){(F._status===0||F._status===-1)&&(F._status=2,F._result=pe)}),F._status===-1&&(F._status=0,F._result=q)}if(F._status===1)return F._result.default;throw F._result}var H={current:null},R={transition:null},se={ReactCurrentDispatcher:H,ReactCurrentBatchConfig:R,ReactCurrentOwner:V};function J(){throw Error("act(...) is not supported in production builds of React.")}return Ee.Children={map:oe,forEach:function(F,q,pe){oe(F,function(){q.apply(this,arguments)},pe)},count:function(F){var q=0;return oe(F,function(){q++}),q},toArray:function(F){return oe(F,function(q){return q})||[]},only:function(F){if(!Q(F))throw Error("React.Children.only expected to receive a single React element child.");return F}},Ee.Component=S,Ee.Fragment=n,Ee.Profiler=i,Ee.PureComponent=P,Ee.StrictMode=s,Ee.Suspense=f,Ee.__SECRET_INT
vendor: 4,897 bytes, lines 9-25
9ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=se,Ee.act=J,Ee.cloneElement=function(F,q,pe){if(F==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+F+".");var ye=b({},F.props),Ce=F.key,Te=F.ref,Se=F._owner;if(q!=null){if(q.ref!==void 0&&(Te=q.ref,Se=V.current),q.key!==void 0&&(Ce=""+q.key),F.type&&F.type.defaultProps)var Fe=F.type.defaultProps;for(ze in q)D.call(q,ze)&&!B.hasOwnProperty(ze)&&(ye[ze]=q[ze]===void 0&&Fe!==void 0?Fe[ze]:q[ze])}var ze=arguments.length-2;if(ze===1)ye.children=pe;else if(1<ze){Fe=Array(ze);for(var dt=0;dt<ze;dt++)Fe[dt]=arguments[dt+2];ye.children=Fe}return{$$typeof:e,type:F.type,key:Ce,ref:Te,props:ye,_owner:Se}},Ee.createContext=function(F){return F={$$typeof:c,_currentValue:F,_currentValue2:F,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},F.Provider={$$typeof:l,_context:F},F.Consumer=F},Ee.createElement=L,Ee.createFactory=function(F){var q=L.bind(null,F);return q.type=F,q},Ee.createRef=function(){return{current:null}},Ee.forwardRef=function(F){return{$$typeof:d,render:F}},Ee.isValidElement=Q,Ee.lazy=function(F){return{$$typeof:p,_payload:{_status:-1,_result:F},_init:ee}},Ee.memo=function(F,q){return{$$typeof:m,type:F,compare:q===void 0?null:q}},Ee.startTransition=function(F){var q=R.transition;R.transition={};try{F()}finally{R.transition=q}},Ee.unstable_act=J,Ee.useCallback=function(F,q){return H.current.useCallback(F,q)},Ee.useContext=function(F){return H.current.useContext(F)},Ee.useDebugValue=function(){},Ee.useDeferredValue=function(F){return H.current.useDeferredValue(F)},Ee.useEffect=function(F,q){return H.current.useEffect(F,q)},Ee.useId=function(){return H.current.useId()},Ee.useImperativeHandle=function(F,q,pe){return H.current.useImperativeHandle(F,q,pe)},Ee.useInsertionEffect=function(F,q){return H.current.useInsertionEffect(F,q)},Ee.useLayoutEffect=function(F,q){return H.current.useLayoutEffect(F,q)},Ee.useMemo=function(F,q){return H.current.useMemo(F,q)},Ee.useReducer=function(F,q,pe){return H.current.useReducer(F,q,pe)},Ee.useRef=function(F){return H.current.useRef(F)},Ee.useState=function(F){return H.current.useState(F)},Ee.useSyncExternalStore=function(F,q,pe){return H.current.useSyncExternalStore(F,q,pe)},Ee.useTransition=function(){return H.current.useTransition()},Ee.version="18.3.1",Ee}var a0;function Rp(){return a0||(a0=1,Ef.exports=dP()),Ef.exports}/**
10 * @license React
11 * react-jsx-runtime.production.min.js
12 *
13 * Copyright (c) Facebook, Inc. and its affiliates.
14 *
15 * This source code is licensed under the MIT license found in the
16 * LICENSE file in the root directory of this source tree.
17 */var l0;function hP(){if(l0)return Da;l0=1;var e=Rp(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(d,f,m){var p,g={},x=null,N=null;m!==void 0&&(x=""+m),f.key!==void 0&&(x=""+f.key),f.ref!==void 0&&(N=f.ref);for(p in f)s.call(f,p)&&!l.hasOwnProperty(p)&&(g[p]=f[p]);if(d&&d.defaultProps)for(p in f=d.defaultProps,f)g[p]===void 0&&(g[p]=f[p]);return{$$typeof:t,type:d,key:x,ref:N,props:g,_owner:i.current}}return Da.Fragment=n,Da.jsx=c,Da.jsxs=c,Da}var c0;function fP(){return c0||(c0=1,Pf.exports=hP()),Pf.exports}var a=fP(),k=Rp();const dr=Tp(k),_p=uP({__proto__:null,default:dr},[k]);var ou={},Tf={exports:{}},tn={},Rf={exports:{}},_f={};/**
18 * @license React
19 * scheduler.production.min.js
20 *
21 * Copyright (c) Facebook, Inc. and its affiliates.
22 *
23 * This source code is licensed under the MIT license found in the
24 * LICENSE file in the root directory of this source tree.
25 */var u0;function mP(){return u0||(u0=1,(function(e){function t(R,se){var J=R.length;R.push(se);e:for(;0<J;){var F=J-1>>>1,q=R[F];if(0<i(q,se))R[F]=se,R[J]=q,J=F;else break e}}function n(R){return R.length===0?null:R[0]}function s(R){if(R.length===0)return null;var se=R[0],J=R.pop();if(J!==se){R[0]=J;e:for(var F=0,q=R.length,pe=q>>>1;F<pe;){var ye=2*(F+1)-1,Ce=R[ye],Te=ye+1,Se=R[Te];if(0>i(Ce,J))Te<q&&0>i(Se,Ce)?(R[F]=Se,R[Te]=J,F=Te):(R[F]=Ce,R[ye]=J,F=ye);else if(Te<q&&0>i(Se,J))R[F]=Se,R[Te]=J,F=Te;else break e}}return se}function i(R,se){var J=R.sortIndex-se.sortIndex;return J!==0?J:R.id-se.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var c=Date,d=c.now();e.unstable_now=function(){return c.now()-d}}var f=[],m=[],p=1,g=null,x=3,N=!1,b=!1,w=!1,S=typeof setTimeout=="function"?setTimeout:null,j=typeof clearTimeout=="function"?clearTimeout:null,P=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function A(R){for(var se=n(m);
vendor: 51,102 bytes, lines 25-38
25se!==null;){if(se.callback===null)s(m);else if(se.startTime<=R)s(m),se.sortIndex=se.expirationTime,t(f,se);else break;se=n(m)}}function E(R){if(w=!1,A(R),!b)if(n(f)!==null)b=!0,ee(D);else{var se=n(m);se!==null&&H(E,se.startTime-R)}}function D(R,se){b=!1,w&&(w=!1,j(L),L=-1),N=!0;var J=x;try{for(A(se),g=n(f);g!==null&&(!(g.expirationTime>se)||R&&!re());){var F=g.callback;if(typeof F=="function"){g.callback=null,x=g.priorityLevel;var q=F(g.expirationTime<=se);se=e.unstable_now(),typeof q=="function"?g.callback=q:g===n(f)&&s(f),A(se)}else s(f);g=n(f)}if(g!==null)var pe=!0;else{var ye=n(m);ye!==null&&H(E,ye.startTime-se),pe=!1}return pe}finally{g=null,x=J,N=!1}}var V=!1,B=null,L=-1,ne=5,Q=-1;function re(){return!(e.unstable_now()-Q<ne)}function ie(){if(B!==null){var R=e.unstable_now();Q=R;var se=!0;try{se=B(!0,R)}finally{se?I():(V=!1,B=null)}}else V=!1}var I;if(typeof P=="function")I=function(){P(ie)};else if(typeof MessageChannel<"u"){var Y=new MessageChannel,oe=Y.port2;Y.port1.onmessage=ie,I=function(){oe.postMessage(null)}}else I=function(){S(ie,0)};function ee(R){B=R,V||(V=!0,I())}function H(R,se){L=S(function(){R(e.unstable_now())},se)}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(R){R.callback=null},e.unstable_continueExecution=function(){b||N||(b=!0,ee(D))},e.unstable_forceFrameRate=function(R){0>R||125<R?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ne=0<R?Math.floor(1e3/R):5},e.unstable_getCurrentPriorityLevel=function(){return x},e.unstable_getFirstCallbackNode=function(){return n(f)},e.unstable_next=function(R){switch(x){case 1:case 2:case 3:var se=3;break;default:se=x}var J=x;x=se;try{return R()}finally{x=J}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(R,se){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var J=x;x=R;try{return se()}finally{x=J}},e.unstable_scheduleCallback=function(R,se,J){var F=e.unstable_now();switch(typeof J=="object"&&J!==null?(J=J.delay,J=typeof J=="number"&&0<J?F+J:F):J=F,R){case 1:var q=-1;break;case 2:q=250;break;case 5:q=1073741823;break;case 4:q=1e4;break;default:q=5e3}return q=J+q,R={id:p++,callback:se,priorityLevel:R,startTime:J,expirationTime:q,sortIndex:-1},J>F?(R.sortIndex=J,t(m,R),n(f)===null&&R===n(m)&&(w?(j(L),L=-1):w=!0,H(E,J-F))):(R.sortIndex=q,t(f,R),b||N||(b=!0,ee(D))),R},e.unstable_shouldYield=re,e.unstable_wrapCallback=function(R){var se=x;return function(){var J=x;x=se;try{return R.apply(this,arguments)}finally{x=J}}}})(_f)),_f}var d0;function pP(){return d0||(d0=1,Rf.exports=mP()),Rf.exports}/**
26 * @license React
27 * react-dom.production.min.js
28 *
29 * Copyright (c) Facebook, Inc. and its affiliates.
30 *
31 * This source code is licensed under the MIT license found in the
32 * LICENSE file in the root directory of this source tree.
33 */var h0;function gP(){if(h0)return tn;h0=1;var e=Rp(),t=pP();function n(r){for(var o="https://reactjs.org/docs/error-decoder.html?invariant="+r,u=1;u<arguments.length;u++)o+="&args[]="+encodeURIComponent(arguments[u]);return"Minified React error #"+r+"; visit "+o+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s=new Set,i={};function l(r,o){c(r,o),c(r+"Capture",o)}function c(r,o){for(i[r]=o,r=0;r<o.length;r++)s.add(o[r])}var d=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),f=Object.prototype.hasOwnProperty,m=/^[: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]*$/,p={},g={};function x(r){return f.call(g,r)?!0:f.call(p,r)?!1:m.test(r)?g[r]=!0:(p[r]=!0,!1)}function N(r,o,u,h){if(u!==null&&u.type===0)return!1;switch(typeof o){case"function":case"symbol":return!0;case"boolean":return h?!1:u!==null?!u.acceptsBooleans:(r=r.toLowerCase().slice(0,5),r!=="data-"&&r!=="aria-");default:return!1}}function b(r,o,u,h){if(o===null||typeof o>"u"||N(r,o,u,h))return!0;if(h)return!1;if(u!==null)switch(u.type){case 3:return!o;case 4:return o===!1;case 5:return isNaN(o);case 6:return isNaN(o)||1>o}return!1}function w(r,o,u,h,y,v,C){this.acceptsBooleans=o===2||o===3||o===4,this.attributeName=h,this.attributeNamespace=y,this.mustUseProperty=u,this.propertyName=r,this.type=o,this.sanitizeURL=v,this.removeEmptyString=C}var S={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(r){S[r]=new w(r,0,!1,r,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(r){var o=r[0];S[o]=new w(o,1,!1,r[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(r){S[r]=new w(r,2,!1,r.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(r){S[r]=new w(r,2,!1,r,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(r){S[r]=new w(r,3,!1,r.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(r){S[r]=new w(r,3,!0,r,null,!1,!1)}),["capture","download"].forEach(function(r){S[r]=new w(r,4,!1,r,null,!1,!1)}),["cols","rows","size","span"].forEach(function(r){S[r]=new w(r,6,!1,r,null,!1,!1)}),["rowSpan","start"].forEach(function(r){S[r]=new w(r,5,!1,r.toLowerCase(),null,!1,!1)});var j=/[\-:]([a-z])/g;function P(r){return r[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(r){var o=r.replace(j,P);S[o]=new w(o,1,!1,r,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(r){var o=r.replace(j,P);S[o]=new w(o,1,!1,r,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(r){var o=r.replace(j,P);S[o]=new w(o,1,!1,r,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(r){S[r]=new w(r,1,!1,r.toLowerCase(),null,!1,!1)}),S.xlinkHref=new w("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(r){S[r]=new w(r,1,!1,r.toLowerCase(),null,!0,!0)});function A(r,o,u,h){var y=S.hasOwnProperty(o)?S[o]:null;(y!==null?y.type!==0:h||!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(b(o,u,y,h)&&(u=null),h||y===null?x(o)&&(u===null?r.removeAttribute(o):r.setAttribute(o,""+u)):y.mustUseProperty?r[y.propertyName]=u===null?y.type===3?!1:"":u:(o=y.attributeName,h=y.attributeNamespace,u===null?r.removeAttribute(o):(y=y.type,u=y===3||y===4&&u===!0?"":""+u,h?r.setAttributeNS(h,o,u):r.setAttribute(o,u))))}var E=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,D=Symbol.for("react.element"),V=Symbol.for("react.portal"),B=Symbol.for("react.fragment"),L=Symbol.for("react.strict_mode"),ne=Symbol.for("react.profiler"),Q=Symbol.for("react.provider"),re=Symbol.for("react.context"),ie=Symbol.for("react.forward_ref"),I=Symbol.for("react.suspense"),Y=Symbol.for("react.suspense_list"),oe=Symbol.for("react.memo"),ee=Symbol.for("react.lazy"),H=Symbol.for("react.offscreen"),R=Symbol.iterator;function se(r){return r===null||typeof r!="object"?null:(r=R&&r[R]||r["@@iterator"],typeof r=="function"?r:null)}var J=Object.assign,F;function q(r){if(F===void 0)try{throw Error()}catch(u){var o=u.stack.trim().match(/\n( *(at )?)/);F=o&&o[1]||""}return`
34`+F+r}var pe=!1;function ye(r,o){if(!r||pe)return"";pe=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(o)if(o=function(){throw Error()},Object.defineProperty(o.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(o,[])}catch($){var h=$}Reflect.construct(r,[],o)}else{try{o.call()}catch($){h=$}r.call(o.prototype)}else{try{throw Error()}catch($){h=$}r()}}catch($){if($&&h&&typeof $.stack=="string"){for(var y=$.stack.split(`
35`),v=h.stack.split(`
36`),C=y.length-1,T=v.length-1;1<=C&&0<=T&&y[C]!==v[T];)T--;for(;1<=C&&0<=T;C--,T--)if(y[C]!==v[T]){if(C!==1||T!==1)do if(C--,T--,0>T||y[C]!==v[T]){var _=`
37`+y[C].replace(" at new "," at ");return r.displayName&&_.includes("<anonymous>")&&(_=_.replace("<anonymous>",r.displayName)),_}while(1<=C&&0<=T);break}}}finally{pe=!1,Error.prepareStackTrace=u}return(r=r?r.displayName||r.name:"")?q(r):""}function Ce(r){switch(r.tag){case 5:return q(r.type);case 16:return q("Lazy");case 13:return q("Suspense");case 19:return q("SuspenseList");case 0:case 2:case 15:return r=ye(r.type,!1),r;case 11:return r=ye(r.type.render,!1),r;case 1:return r=ye(r.type,!0),r;default:return""}}function Te(r){if(r==null)return null;if(typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case B:return"Fragment";case V:return"Portal";case ne:return"Profiler";case L:return"StrictMode";case I:return"Suspense";case Y:return"SuspenseList"}if(typeof r=="object")switch(r.$$typeof){case re:return(r.displayName||"Context")+".Consumer";case Q:return(r._context.displayName||"Context")+".Provider";case ie:var o=r.render;return r=r.displayName,r||(r=o.displayName||o.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case oe:return o=r.displayName||null,o!==null?o:Te(r.type)||"Memo";case ee:o=r._payload,r=r._init;try{return Te(r(o))}catch{}}return null}function Se(r){var o=r.type;switch(r.tag){case 24:return"Cache";case 9:return(o.displayName||"Context")+".Consumer";case 10:return(o._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return r=o.render,r=r.displayName||r.name||"",o.displayName||(r!==""?"ForwardRef("+r+")":"ForwardRef");case 7:return"Fragment";case 5:return o;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Te(o);case 8:return o===L?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o}return null}function Fe(r){switch(typeof r){case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function ze(r){var o=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function dt(r){var o=ze(r)?"checked":"value",u=Object.getOwnPropertyDescriptor(r.constructor.prototype,o),h=""+r[o];if(!r.hasOwnProperty(o)&&typeof u<"u"&&typeof u.get=="function"&&typeof u.set=="function"){var y=u.get,v=u.set;return Object.defineProperty(r,o,{configurable:!0,get:function(){return y.call(this)},set:function(C){h=""+C,v.call(this,C)}}),Object.defineProperty(r,o,{enumerable:u.enumerable}),{getValue:function(){return h},setValue:function(C){h=""+C},stopTracking:function(){r._valueTracker=null,delete r[o]}}}}function Rn(r){r._valueTracker||(r._valueTracker=dt(r))}function Jn(r){if(!r)return!1;var o=r._valueTracker;if(!o)return!0;var u=o.getValue(),h="";return r&&(h=ze(r)?r.checked?"true":"false":r.value),r=h,r!==u?(o.setValue(r),!0):!1}function Zn(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}function Ti(r,o){var u=o.checked;return J({},o,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:u??r._wrapperState.initialChecked})}function Yl(r,o){var u=o.defaultValue==null?"":o.defaultValue,h=o.checked!=null?o.checked:o.defaultChecked;u=Fe(o.value!=null?o.value:u),r._wrapperState={initialChecked:h,initialValue:u,controlled:o.type==="checkbox"||o.type==="radio"?o.checked!=null:o.value!=null}}function Kl(r,o){o=o.checked,o!=null&&A(r,"checked",o,!1)}function Go(r,o){Kl(r,o);var u=Fe(o.value),h=o.type;if(u!=null)h==="number"?(u===0&&r.value===""||r.value!=u)&&(r.value=""+u):r.value!==""+u&&(r.value=""+u);else if(h==="submit"||h==="reset"){r.removeAttribute("value");return}o.hasOwnProperty("value")?$s(r,o.type,u):o.hasOwnProperty("defaultValue")&&$s(r,o.type,Fe(o.defaultValue)),o.checked==null&&o.defaultChecked!=null&&(r.defaultChecked=!!o.defaultChecked)}function Ql(r,o,u){if(o.hasOwnProperty("value")||o.hasOwnProperty("defaultValue")){var h=o.type;if(!(h!=="submit"&&h!=="reset"||o.value!==void 0&&o.value!==null))return;o=""+r._wrapperState.initialValue,u||o===r.value||(r.value=o),r.defaultValue=o}u=r.name,u!==""&&(r.name=""),r.defaultChecked=!!r._wrapperState.initialChecked,u!==""&&(r.name=u)}function $s(r,o,u){(o!=="number"||Zn(r.ownerDocument)!==r)&&(u==null?r.defaultValue=""+r._wrapperState.initialValue:r.defaultValue!==""+u&&(r.defaultValue=""+u))}var Yo=Array.isArray;function Ri(r,o,u,h){if(r=r.options,o){o={};for(var y=0;y<u.length;y++)o["$"+u[y]]=!0;for(u=0;u<r.length;u++)y=o.hasOwnProperty("$"+r[u].value),r[u].selected!==y&&(r[u].selected=y),y&&h&&(r[u].defaultSelected=!0)}else{for(u=""+Fe(u),o=null,y=0;y<r.length;y++){if(r[y].value===u){r[y].selected=!0,h&&(r[y].defaultSelected=!0);return}o!==null||r[y].disabled||(o=r[y])}o!==null&&(o.selected=!0)}}function Od(r,o){if(o.dangerouslySetInnerHTML!=null)throw Error(n(91));return J({},o,{value:void 0,defaultValue:void 0,children:""+r._wrapperState.initialValue})}function py(r,o){var u=o.value;if(u==null){if(u=o.children,o=o.defaultValue,u!=null){if(o!=null)throw Error(n(92));if(Yo(u)){if(1<u.length)throw Error(n(93));u=u[0]}o=u}o==null&&(o=""),u=o}r._wrapperState={initialValue:Fe(u)}}function gy(r,o){var u=Fe(o.value),h=Fe(o.defaultValue);u!=null&&(u=""+u,u!==r.value&&(r.value=u),o.defaultValue==null&&r.defaultValue!==u&&(r.defaultValue=u)),h!=null&&(r.defaultValue=""+h)}function yy(r){var o=r.textContent;o===r._wrapperState.initialValue&&o!==""&&o!==null&&(r.value=o)}function vy(r){switch(r){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Ld(r,o){return r==null||r==="http://www.w3.org/1999/xhtml"?vy(o):r==="http://www.w3.org/2000/svg"&&o==="foreignObject"?"http://www.w3.org/1999/xhtml":r}var Xl,xy=(function(r){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(o,u,h,y){MSApp.execUnsafeLocalFunction(function(){return r(o,u,h,y)})}:r})(function(r,o){if(r.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in r)r.innerHTML=o;else{for(Xl=Xl||document.createElement("div"),Xl.innerHTML="<svg>"+o.valueOf().toString()+"</svg>",o=Xl.firstChild;r.firstChild;)r.removeChild(r.firstChild);for(;o.firstChild;)r.appendChild(o.firstChild)}});function Ko(r,o){if(o){var u=r.firstChild;if(u&&u===r.lastChild&&u.nodeType===3){u.nodeValue=o;return}}r.textContent=o}var Qo={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},m2=["Webkit","ms","Moz","O"];Object.keys(Qo).forEach(function(r){m2.forEach(function(o){o=o+r.charAt(0).toUpperCase()+r.substring(1),Qo[o]=Qo[r]})});function wy(r,o,u){return o==null||typeof o=="boolean"||o===""?"":u||typeof o!="number"||o===0||Qo.hasOwnProperty(r)&&Qo[r]?(""+o).trim():o+"px"}function by(r,o){r=r.style;for(var u in o)if(o.hasOwnProperty(u)){var h=u.indexOf("--")===0,y=wy(u,o[u],h);u==="float"&&(u="cssFloat"),h?r.setProperty(u,y):r[u]=y}}var p2=J({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Id(r,o){if(o){if(p2[r]&&(o.children!=null||o.dangerouslySetInnerHTML!=null))throw Error(n(137,r));if(o.dangerouslySetInnerHTML!=null){if(o.children!=null)throw Error(n(60));if(typeof o.dangerouslySetInnerHTML!="object"||!("__html"in o.dangerouslySetInnerHTML))throw Error(n(61))}if(o.style!=null&&typeof o.style!="object")throw Error(n(62))}}function Bd(r,o){if(r.indexOf("-")===-1)return typeof o.is=="string";switch(r){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 Vd=null;function zd(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var Ud=null,_i=null,Di=null;function ky(r){if(r=va(r)){if(typeof Ud!="function")throw Error(n(280));var o=r.stateNode;o&&(o=wc(o),Ud(r.stateNode,r.type,o))}}function Sy(r){_i?Di?Di.push(r):Di=[r]:_i=r}function Ny(){if(_i){var r=_i,o=Di;if(Di=_i=null,ky(r),o)for(r=0;r<o.length;r++)ky(o[r])}}function jy(r,o){return r(o)}function Cy(){}var $d=!1;function Ay(r,o,u){if($d)return r(o,u);$d=!0;try{return jy(r,o,u)}finally{$d=!1,(_i!==null||Di!==null)&&(Cy(),Ny())}}function Xo(r,o){var u=r.stateNode;if(u===null)return null;var h=wc(u);if(h===null)return null;u=h[o];e:switch(o){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(h=!h.disabled)||(r=r.type,h=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!h;break e;default:r=!1}if(r)return null;if(u&&typeof u!="function")throw Error(n(231,o,typeof u));return u}var Wd=!1;if(d)try{var Jo={};Object.defineProperty(Jo,"passive",{get:function(){Wd=!0}}),window.addEventListener("test",Jo,Jo),window.removeEventListener("test",Jo,Jo)}catch{Wd=!1}function g2(r,o,u,h,y,v,C,T,_){var $=Array.prototype.slice.call(arguments,3);try{o.apply(u,$)}catch(K){this.onError(K)}}var Zo=!1,Jl=null,Zl=!1,Hd=null,y2={onError:function(r){Zo=!0,Jl=r}};function v2(r,o,u,h,y,v,C,T,_){Zo=!1,Jl=null,g2.apply(y2,arguments)}function x2(r,o,u,h,y,v,C,T,_){if(v2.apply(this,arguments),Zo){if(Zo){var $=Jl;Zo=!1,Jl=null}else throw Error(n(198));Zl||(Zl=!0,Hd=$)}}function Vr(r){var o=r,u=r;if(r.alternate)for(;o.return;)o=o.return;else{r=o;do o=r,(o.flags&4098)!==0&&(u=o.return),r=o.return;while(r)}return o.tag===3?u:null}function Py(r){if(r.tag===13){var o=r.memoizedState;if(o===null&&(r=r.alternate,r!==null&&(o=r.memoizedState)),o!==null)return o.dehydrated}return null}function Ey(r){if(Vr(r)!==r)throw Error(n(188))}function w2(r){var o=r.alternate;if(!o){if(o=Vr(r),o===null)throw Error(n(188));return o!==r?null:r}for(var u=r,h=o;;){var y=u.return;if(y===null)break;var v=y.alternate;if(v===null){if(h=y.return,h!==null){u=h;continue}break}if(y.child===v.child){for(v=y.child;v;){if(v===u)return Ey(y),r;if(v===h)return Ey(y),o;v=v.sibling}throw Error(n(188))}if(u.return!==h.return)u=y,h=v;else{for(var C=!1,T=y.child;T;){if(T===u){C=!0,u=y,h=v;break}if(T===h){C=!0,h=y,u=v;break}T=T.sibling}if(!C){for(T=v.child;T;){if(T===u){C=!0,u=v,h=y;break}if(T===h){C=!0,h=v,u=y;break}T=T.sibling}if(!C)throw Error(n(189))}}if(u.alternate!==h)throw Error(n(190))}if(u.tag!==3)throw Error(n(188));return u.stateNode.current===u?r:o}function Ty(r){return r=w2(r),r!==null?Ry(r):null}function Ry(r){if(r.tag===5||r.tag===6)return r;for(r=r.child;r!==null;){var o=Ry(r);if(o!==null)return o;r=r.sibling}return null}var _y=t.unstable_scheduleCallback,Dy=t.unstable_cancelCallback,b2=t.unstable_shouldYield,k2=t.unstable_requestPaint,ht=t.unstable_now,S2=t.unstable_getCurrentPriorityLevel,qd=t.unstable_ImmediatePriority,My=t.unstable_UserBlockingPriority,ec=t.unstable_NormalPriority,N2=t.unstable_LowPriority,Fy=t.unstable_IdlePriority,tc=null,es=null;function j2(r){if(es&&typeof es.onCommitFiberRoot=="function")try{es.onCommitFiberRoot(tc,r,void 0,(r.current.flags&128)===128)}catch{}}var _n=Math.clz32?Math.clz32:P2,C2=Math.log,A2=Math.LN2;function P2(r){return r>>>=0,r===0?32:31-(C2(r)/A2|0)|0}var nc=64,sc=4194304;function ea(r){switch(r&-r){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return r&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return r&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return r}}function rc(r,o){var u=r.pendingLanes;if(u===0)return 0;var h=0,y=r.suspendedLanes,v=r.pingedLanes,C=u&268435455;if(C!==0){var T=C&~y;T!==0?h=ea(T):(v&=C,v!==0&&(h=ea(v)))}else C=u&~y,C!==0?h=ea(C):v!==0&&(h=ea(v));if(h===0)return 0;if(o!==0&&o!==h&&(o&y)===0&&(y=h&-h,v=o&-o,y>=v||y===16&&(v&4194240)!==0))return o;if((h&4)!==0&&(h|=u&16),o=r.entangledLanes,o!==0)for(r=r.entanglements,o&=h;0<o;)u=31-_n(o),y=1<<u,h|=r[u],o&=~y;return h}function E2(r,o){switch(r){case 1:case 2:case 4:return o+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return o+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function T2(r,o){for(var u=r.suspendedLanes,h=r.pingedLanes,y=r.expirationTimes,v=r.pendingLanes;0<v;){var C=31-_n(v),T=1<<C,_=y[C];_===-1?((T&u)===0||(T&h)!==0)&&(y[C]=E2(T,o)):_<=o&&(r.expiredLanes|=T),v&=~T}}function Gd(r){return r=r.pendingLanes&-1073741825,r!==0?r:r&1073741824?1073741824:0}function Oy(){var r=nc;return nc<<=1,(nc&4194240)===0&&(nc=64),r}function Yd(r){for(var o=[],u=0;31>u;u++)o.push(r);return o}function ta(r,o,u){r.pendingLanes|=o,o!==536870912&&(r.suspendedLanes=0,r.pingedLanes=0),r=r.eventTimes,o=31-_n(o),r[o]=u}function R2(r,o){var u=r.pendingLanes&~o;r.pendingLanes=o,r.suspendedLanes=0,r.pingedLanes=0,r.expiredLanes&=o,r.mutableReadLanes&=o,r.entangledLanes&=o,o=r.entanglements;var h=r.eventTimes;for(r=r.expirationTimes;0<u;){var y=31-_n(u),v=1<<y;o[y]=0,h[y]=-1,r[y]=-1,u&=~v}}function Kd(r,o){var u=r.entangledLanes|=o;for(r=r.entanglements;u;){var h=31-_n(u),y=1<<h;y&o|r[h]&o&&(r[h]|=o),u&=~y}}var We=0;function Ly(r){return r&=-r,1<r?4<r?(r&268435455)!==0?16:536870912:4:1}var Iy,Qd,By,Vy,zy,Xd=!1,ic=[],Ws=null,Hs=null,qs=null,na=new Map,sa=new Map,Gs=[],_2="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Uy(r,o){switch(r){case"focusin":case"focusout":Ws=null;break;case"dragenter":case"dragleave":Hs=null;break;case"mouseover":case"mouseout":qs=null;break;case"pointerover":case"pointerout":na.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":sa.delete(o.pointerId)}}function ra(r,o,u,h,y,v){return r===null||r.nativeEvent!==v?(r={blockedOn:o,domEventName:u,eventSystemFlags:h,nativeEvent:v,targetContainers:[y]},o!==null&&(o=va(o),o!==null&&Qd(o)),r):(r.eventSystemFlags|=h,o=r.targetContainers,y!==null&&o.indexOf(y)===-1&&o.push(y),r)}function D2(r,o,u,h,y){switch(o){case"focusin":return Ws=ra(Ws,r,o,u,h,y),!0;case"dragenter":return Hs=ra(Hs,r,o,u,h,y),!0;case"mouseover":return qs=ra(qs,r,o,u,h,y),!0;case"pointerover":var v=y.pointerId;return na.set(v,ra(na.get(v)||null,r,o,u,h,y)),!0;case"gotpointercapture":return v=y.pointerId,sa.set(v,ra(sa.get(v)||null,r,o,u,h,y)),!0}return!1}function $y(r){var o=zr(r.target);if(o!==null){var u=Vr(o);if(u!==null){if(o=u.tag,o===13){if(o=Py(u),o!==null){r.blockedOn=o,zy(r.priority,function(){By(u)});return}}else if(o===3&&u.stateNode.current.memoizedState.isDehydrated){r.blockedOn=u.tag===3?u.stateNode.containerInfo:null;return}}}r.blockedOn=null}function oc(r){if(r.blockedOn!==null)return!1;for(var o=r.targetContainers;0<o.length;){var u=Zd(r.domEventName,r.eventSystemFlags,o[0],r.nativeEvent);if(u===null){u=r.nativeEvent;var h=new u.constructor(u.type,u);Vd=h,u.target.dispatchEvent(h),Vd=null}else return o=va(u),o!==null&&Qd(o),r.blockedOn=u,!1;o.shift()}return!0}function Wy(r,o,u){oc(r)&&u.delete(o)}function M2(){Xd=!1,Ws!==null&&oc(Ws)&&(Ws=null),Hs!==null&&oc(Hs)&&(Hs=null),qs!==null&&oc(qs)&&(qs=null),na.forEach(Wy),sa.forEach(Wy)}function ia(r,o){r.blockedOn===o&&(r.blockedOn=null,Xd||(Xd=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,M2)))}function oa(r){function o(y){return ia(y,r)}if(0<ic.length){ia(ic[0],r);for(var u=1;u<ic.length;u++){var h=ic[u];h.blockedOn===r&&(h.blockedOn=null)}}for(Ws!==null&&ia(Ws,r),Hs!==null&&ia(Hs,r),qs!==null&&ia(qs,r),na.forEach(o),sa.forEach(o),u=0;u<Gs.length;u++)h=Gs[u],h.blockedOn===r&&(h.blockedOn=null);for(;0<Gs.length&&(u=Gs[0],u.blockedOn===null);)$y(u),u.blockedOn===null&&Gs.shift()}var Mi=E.ReactCurrentBatchConfig,ac=!0;function F2(r,o,u,h){var y=We,v=Mi.transition;Mi.transition=null;try{We=1,Jd(r,o,u,h)}finally{We=y,Mi.transition=v}}function O2(r,o,u,h){var y=We,v=Mi.transition;Mi.transition=null;try{We=4,Jd(r,o,u,h)}finally{We=y,Mi.transition=v}}function Jd(r,o,u,h){if(ac){var y=Zd(r,o,u,h);if(y===null)gh(r,o,h,lc,u),Uy(r,h);else if(D2(y,r,o,u,h))h.stopPropagation();else if(Uy(r,h),o&4&&-1<_2.indexOf(r)){for(;y!==null;){var v=va(y);if(v!==null&&Iy(v),v=Zd(r,o,u,h),v===null&&gh(r,o,h,lc,u),v===y)break;y=v}y!==null&&h.stopPropagation()}else gh(r,o,h,null,u)}}var lc=null;function Zd(r,o,u,h){if(lc=null,r=zd(h),r=zr(r),r!==null)if(o=Vr(r),o===null)r=null;else if(u=o.tag,u===13){if(r=Py(o),r!==null)return r;r=null}else if(u===3){if(o.stateNode.current.memoizedState.isDehydrated)return o.tag===3?o.stateNode.containerInfo:null;r=null}else o!==r&&(r=null);return lc=r,null}function Hy(r){switch(r){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(S2()){case qd:return 1;case My:return 4;case ec:case N2:return 16;case Fy:return 536870912;default:return 16}default:return 16}}var Ys=null,eh=null,cc=null;function qy(){if(cc)return cc;var r,o=eh,u=o.length,h,y="value"in Ys?Ys.value:Ys.textContent,v=y.length;for(r=0;r<u&&o[r]===y[r];r++);var C=u-r;for(h=1;h<=C&&o[u-h]===y[v-h];h++);return cc=y.slice(r,1<h?1-h:void 0)}function uc(r){var o=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&o===13&&(r=13)):r=o,r===10&&(r=13),32<=r||r===13?r:0}function dc(){return!0}function Gy(){return!1}function dn(r){function o(u,h,y,v,C){this._reactName=u,this._targetInst=y,this.type=h,this.nativeEvent=v,this.target=C,this.currentTarget=null;for(var T in r)r.hasOwnProperty(T)&&(u=r[T],this[T]=u?u(v):v[T]);return this.isDefaultPrevented=(v.defaultPrevented!=null?v.defaultPrevented:v.returnValue===!1)?dc:Gy,this.isPropagationStopped=Gy,this}return J(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var u=this.nativeEvent;u&&(u.preventDefault?u.preventDefault():typeof u.returnValue!="unknown"&&(u.returnValue=!1),this.isDefaultPrevented=dc)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=dc)},persist:function(){},isPersistent:dc}),o}var Fi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},th=dn(Fi),aa=J({},Fi,{view:0,detail:0}),L2=dn(aa),nh,sh,la,hc=J({},aa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ih,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(r!==la&&(la&&r.type==="mousemove"?(nh=r.screenX-la.screenX,sh=r.screenY-la.screenY):sh=nh=0,la=r),nh)},movementY:function(r){return"movementY"in r?r.movementY:sh}}),Yy=dn(hc),I2=J({},hc,{dataTransfer:0}),B2=dn(I2),V2=J({},aa,{relatedTarget:0}),rh=dn(V2),z2=J({},Fi,{animationName:0,elapsedTime:0,pseudoElement:0}),U2=dn(z2),$2=J({},Fi,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),W2=dn($2),H2=J({},Fi,{data:0}),Ky=dn(H2),q2={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},G2={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"},Y2={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function K2(r){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(r):(r=Y2[r])?!!o[r]:!1}function ih(){return K2}var Q2=J({},aa,{key:function(r){if(r.key){var o=q2[r.key]||r.key;if(o!=="Unidentified")return o}return r.type==="keypress"?(r=uc(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?G2[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ih,charCode:function(r){return r.type==="keypress"?uc(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?uc(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),X2=dn(Q2),J2=J({},hc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Qy=dn(J2),Z2=J({},aa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ih}),eA=dn(Z2),tA=J({},Fi,{propertyName:0,elapsedTime:0,pseudoElement:0}),nA=dn(tA),sA=J({},hc,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),rA=dn(sA),iA=[9,13,27,32],oh=d&&"CompositionEvent"in window,ca=null;d&&"documentMode"in document&&(ca=document.documentMode);var oA=d&&"TextEvent"in window&&!ca,Xy=d&&(!oh||ca&&8<ca&&11>=ca),Jy=" ",Zy=!1;function ev(r,o){switch(r){case"keyup":return iA.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function tv(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var Oi=!1;function aA(r,o){switch(r){case"compositionend":return tv(o);case"keypress":return o.which!==32?null:(Zy=!0,Jy);case"textInput":return r=o.data,r===Jy&&Zy?null:r;default:return null}}function lA(r,o){if(Oi)return r==="compositionend"||!oh&&ev(r,o)?(r=qy(),cc=eh=Ys=null,Oi=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1<o.char.length)return o.char;if(o.which)return String.fromCharCode(o.which)}return null;case"compositionend":return Xy&&o.locale!=="ko"?null:o.data;default:return null}}var cA={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 nv(r){var o=r&&r.nodeName&&r.nodeName.toLowerCase();return o==="input"?!!cA[r.type]:o==="textarea"}function sv(r,o,u,h){Sy(h),o=yc(o,"onChange"),0<o.length&&(u=new th("onChange","change",null,u,h),r.push({event:u,listeners:o}))}var ua=null,da=null;function uA(r){bv(r,0)}function fc(r){var o=zi(r);if(Jn(o))return r}function dA(r,o){if(r==="change")return o}var rv=!1;if(d){var ah;if(d){var lh="oninput"in document;if(!lh){var iv=document.createElement("div");iv.setAttribute("oninput","return;"),lh=typeof iv.oninput=="function"}ah=lh}else ah=!1;rv=ah&&(!document.documentMode||9<document.documentMode)}function ov(){ua&&(ua.detachEvent("onpropertychange",av),da=ua=null)}function av(r){if(r.propertyName==="value"&&fc(da)){var o=[];sv(o,da,r,zd(r)),Ay(uA,o)}}function hA(r,o,u){r==="focusin"?(ov(),ua=o,da=u,ua.attachEvent("onpropertychange",av)):r==="focusout"&&ov()}function fA(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return fc(da)}function mA(r,o){if(r==="click")return fc(o)}function pA(r,o){if(r==="input"||r==="change")return fc(o)}function gA(r,o){return r===o&&(r!==0||1/r===1/o)||r!==r&&o!==o}var Dn=typeof Object.is=="function"?Object.is:gA;function ha(r,o){if(Dn(r,o))return!0;if(typeof r!="object"||r===null||typeof o!="object"||o===null)return!1;var u=Object.keys(r),h=Object.keys(o);if(u.length!==h.length)return!1;for(h=0;h<u.length;h++){var y=u[h];if(!f.call(o,y)||!Dn(r[y],o[y]))return!1}return!0}function lv(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function cv(r,o){var u=lv(r);r=0;for(var h;u;){if(u.nodeType===3){if(h=r+u.textContent.length,r<=o&&h>=o)return{node:u,offset:o-r};r=h}e:{for(;u;){if(u.nextSibling){u=u.nextSibling;break e}u=u.parentNode}u=void 0}u=lv(u)}}function uv(r,o){return r&&o?r===o?!0:r&&r.nodeType===3?!1:o&&o.nodeType===3?uv(r,o.parentNode):"contains"in r?r.contains(o):r.compareDocumentPosition?!!(r.compareDocumentPosition(o)&16):!1:!1}function dv(){for(var r=window,o=Zn();o instanceof r.HTMLIFrameElement;){try{var u=typeof o.contentWindow.location.href=="string"}catch{u=!1}if(u)r=o.contentWindow;else break;o=Zn(r.document)}return o}function ch(r){var o=r&&r.nodeName&&r.nodeName.toLowerCase();return o&&(o==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||o==="textarea"||r.contentEditable==="true")}function yA(r){var o=dv(),u=r.focusedElem,h=r.selectionRange;if(o!==u&&u&&u.ownerDocument&&uv(u.ownerDocument.documentElement,u)){if(h!==null&&ch(u)){if(o=h.start,r=h.end,r===void 0&&(r=o),"selectionStart"in u)u.selectionStart=o,u.selectionEnd=Math.min(r,u.value.length);else if(r=(o=u.ownerDocument||document)&&o.defaultView||window,r.getSelection){r=r.getSelection();var y=u.textContent.length,v=Math.min(h.start,y);h=h.end===void 0?v:Math.min(h.end,y),!r.extend&&v>h&&(y=h,h=v,v=y),y=cv(u,v);var C=cv(u,h);y&&C&&(r.rangeCount!==1||r.anchorNode!==y.node||r.anchorOffset!==y.offset||r.focusNode!==C.node||r.focusOffset!==C.offset)&&(o=o.createRange(),o.setStart(y.node,y.offset),r.removeAllRanges(),v>h?(r.addRange(o),r.extend(C.node,C.offset)):(o.setEnd(C.node,C.offset),r.addRange(o)))}}for(o=[],r=u;r=r.parentNode;)r.nodeType===1&&o.push({element:r,left:r.scrollLeft,top:r.scrollTop});for(typeof u.focus=="function"&&u.focus(),u=0;u<o.length;u++)r=o[u],r.element.scrollLeft=r.left,r.element.scrollTop=r.top}}var vA=d&&"documentMode"in document&&11>=document.documentMode,Li=null,uh=null,fa=null,dh=!1;function hv(r,o,u){var h=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;dh||Li==null||Li!==Zn(h)||(h=Li,"selectionStart"in h&&ch(h)?h={start:h.selectionStart,end:h.selectionEnd}:(h=(h.ownerDocument&&h.ownerDocument.defaultView||window).getSelection(),h={anchorNode:h.anchorNode,anchorOffset:h.anchorOffset,focusNode:h.focusNode,focusOffset:h.focusOffset}),fa&&ha(fa,h)||(fa=h,h=yc(uh,"onSelect"),0<h.length&&(o=new th("onSelect","select",null,o,u),r.push({event:o,listeners:h}),o.target=Li)))}function mc(r,o){var u={};return u[r.toLowerCase()]=o.toLowerCase(),u["Webkit"+r]="webkit"+o,u["Moz"+r]="moz"+o,u}var Ii={animationend:mc("Animation","AnimationEnd"),animationiteration:mc("Animation","AnimationIteration"),animationstart:mc("Animation","AnimationStart"),transitionend:mc("Transition","TransitionEnd")},hh={},fv={};d&&(fv=document.createElement("div").style,"AnimationEvent"in window||(delete Ii.animationend.animation,delete Ii.animationiteration.animation,delete Ii.animationstart.animation),"TransitionEvent"in window||delete Ii.transitionend.transition);function pc(r){if(hh[r])return hh[r];if(!Ii[r])return r;var o=Ii[r],u;for(u in o)if(o.hasOwnProperty(u)&&u in fv)return hh[r]=o[u];return r}var mv=pc("animationend"),pv=pc("animationiteration"),gv=pc("animationstart"),yv=pc("transitionend"),vv=new Map,xv="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Ks(r,o){vv.set(r,o),l(o,[r])}for(var fh=0;fh<xv.length;fh++){var mh=xv[fh],xA=mh.toLowerCase(),wA=mh[0].toUpperCase()+mh.slice(1);Ks(xA,"on"+wA)}Ks(mv,"onAnimationEnd"),Ks(pv,"onAnimationIteration"),Ks(gv,"onAnimationStart"),Ks("dblclick","onDoubleClick"),Ks("focusin","onFocus"),Ks("focusout","onBlur"),Ks(yv,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ma="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(" "),bA=new Set("cancel close invalid load scroll toggle".split(" ").concat(ma));function wv(r,o,u){var h=r.type||"unknown-event";r.currentTarget=u,x2(h,o,void 0,r),r.currentTarget=null}function bv(r,o){o=(o&4)!==0;for(var u=0;u<r.length;u++){var h=r[u],y=h.event;h=h.listeners;e:{var v=void 0;if(o)for(var C=h.length-1;0<=C;C--){var T=h[C],_=T.instance,$=T.currentTarget;if(T=T.listener,_!==v&&y.isPropagationStopped())break e;wv(y,T,$),v=_}else for(C=0;C<h.length;C++){if(T=h[C],_=T.instance,$=T.currentTarget,T=T.listener,_!==v&&y.isPropagationStopped())break e;wv(y,T,$),v=_}}}if(Zl)throw r=Hd,Zl=!1,Hd=null,r}function Je(r,o){var u=o[kh];u===void 0&&(u=o[kh]=new Set);var h=r+"__bubble";u.has(h)||(kv(o,r,2,!1),u.add(h))}function ph(r,o,u){var h=0;o&&(h|=4),kv(u,r,h,o)}var gc="_reactListening"+Math.random().toString(36).slice(2);function pa(r){if(!r[gc]){r[gc]=!0,s.forEach(function(u){u!=="selectionchange"&&(bA.has(u)||ph(u,!1,r),ph(u,!0,r))});var o=r.nodeType===9?r:r.ownerDocument;o===null||o[gc]||(o[gc]=!0,ph("selectionchange",!1,o))}}function kv(r,o,u,h){switch(Hy(o)){case 1:var y=F2;break;case 4:y=O2;break;default:y=Jd}u=y.bind(null,o,u,r),y=void 0,!Wd||o!=="touchstart"&&o!=="touchmove"&&o!=="wheel"||(y=!0),h?y!==void 0?r.addEventListener(o,u,{capture:!0,passive:y}):r.addEventListener(o,u,!0):y!==void 0?r.addEventListener(o,u,{passive:y}):r.addEventListener(o,u,!1)}function gh(r,o,u,h,y){var v=h;if((o&1)===0&&(o&2)===0&&h!==null)e:for(;;){if(h===null)return;var C=h.tag;if(C===3||C===4){var T=h.stateNode.containerInfo;if(T===y||T.nodeType===8&&T.parentNode===y)break;if(C===4)for(C=h.return;C!==null;){var _=C.tag;if((_===3||_===4)&&(_=C.stateNode.containerInfo,_===y||_.nodeType===8&&_.parentNode===y))return;C=C.return}for(;T!==null;){if(C=zr(T),C===null)return;if(_=C.tag,_===5||_===6){h=v=C;continue e}T=T.parentNode}}h=h.return}Ay(function(){var $=v,K=zd(u),X=[];e:{var G=vv.get(r);if(G!==void 0){var le=th,de=r;switch(r){case"keypress":if(uc(u)===0)break e;case"keydown":case"keyup":le=X2;break;case"focusin":de="focus",le=rh;break;case"focusout":de="blur",le=rh;break;case"beforeblur":case"afterblur":le=rh;break;case"click":if(u.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":le=Yy;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":le=B2;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":le=eA;break;case mv:case pv:case gv:le=U2;break;case yv:le=nA;break;case"scroll":le=L2;break;case"wheel":le=rA;break;case"copy":case"cut":case"paste":le=W2;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":le=Qy}var me=(o&4)!==0,ft=!me&&r==="scroll",z=me?G!==null?G+"Capture":null:G;me=[];for(var O=$,U;O!==null;){U=O;var te=U.stateNode;if(U.tag===5&&te!==null&&(U=te,z!==null&&(te=Xo(O,z),te!=null&&me.push(ga(O,te,U)))),ft)break;O=O.return}0<me.length&&(G=new le(G,de,null,u,K),X.push({event:G,listeners:me}))}}if((o&7)===0){e:{if(G=r==="mouseover"||r==="pointerover",le=r==="mouseout"||r==="pointerout",G&&u!==Vd&&(de=u.relatedTarget||u.fromElement)&&(zr(de)||de[ks]))break e;if((le||G)&&(G=K.window===K?K:(G=K.ownerDocument)?G.defaultView||G.parentWindow:window,le?(de=u.relatedTarget||u.toElement,le=$,de=de?zr(de):null,de!==null&&(ft=Vr(de),de!==ft||de.tag!==5&&de.tag!==6)&&(de=null)):(le=null,de=$),le!==de)){if(me=Yy,te="onMouseLeave",z="onMouseEnter",O="mouse",(r==="pointerout"||r==="pointerover")&&(me=Qy,te="onPointerLeave",z="onPointerEnter",O="pointer"),ft=le==null?G:zi(le),U=de==null?G:zi(de),G=new me(te,O+"leave",le,u,K),G.target=ft,G.relatedTarget=U,te=null,zr(K)===$&&(me=new me(z,O+"enter",de,u,K),me.target=U,me.relatedTarget=ft,te=me),ft=te,le&&de)t:{for(me=le,z=de,O=0,U=me;U;U=Bi(U))O++;for(U=0,te=z;te;te=Bi(te))U++;for(;0<O-U;)me=Bi(me),O--;for(;0<U-O;)z=Bi(z),U--;for(;O--;){if(me===z||z!==null&&me===z.alternate)break t;me=Bi(me),z=Bi(z)}me=null}else me=null;le!==null&&Sv(X,G,le,me,!1),de!==null&&ft!==null&&Sv(X,ft,de,me,!0)}}e:{if(G=$?zi($):window,le=G.nodeName&&G.nodeName.toLowerCase(),le==="select"||le==="input"&&G.type==="file")var ge=dA;else if(nv(G))if(rv)ge=pA;else{ge=fA;var ve=hA}else(le=G.nodeName)&&le.toLowerCase()==="input"&&(G.type==="checkbox"||G.type==="radio")&&(ge=mA);if(ge&&(ge=ge(r,$))){sv(X,ge,u,K);break e}ve&&ve(r,G,$),r==="focusout"&&(ve=G._wrapperState)&&ve.controlled&&G.type==="number"&&$s(G,"number",G.value)}switch(ve=$?zi($):window,r){case"focusin":(nv(ve)||ve.contentEditable==="true")&&(Li=ve,uh=$,fa=null);break;case"focusout":fa=uh=Li=null;break;case"mousedown":dh=!0;break;case"contextmenu":case"mouseup":case"dragend":dh=!1,hv(X,u,K);break;case"selectionchange":if(vA)break;case"keydown":case"keyup":hv(X,u,K)}var xe;if(oh)e:{switch(r){case"compositionstart":var je="onCompositionStart";break e;case"compositionend":je="onCompositionEnd";break e;case"compositionupdate":je="onCompositionUpdate";break e}je=void 0}else Oi?ev(r,u)&&(je="onCompositionEnd"):r==="keydown"&&u.keyCode===229&&(je="onCompositionStart");je&&(Xy&&u.locale!=="ko"&&(Oi||je!=="onCompositionStart"?je==="onCompositionEnd"&&Oi&&(xe=qy()):(Ys=K,eh="value"in Ys?Ys.value:Ys.textContent,Oi=!0)),ve=yc($,je),0<ve.length&&(je=new Ky(je,r,null,u,K),X.push({event:je,listeners:ve}),xe?je.data=xe:(xe=tv(u),xe!==null&&(je.data=xe)))),(xe=oA?aA(r,u):lA(r,u))&&($=yc($,"onBeforeInput"),0<$.length&&(K=new Ky("onBeforeInput","beforeinput",null,u,K),X.push({event:K,listeners:$}),K.data=xe))}bv(X,o)})}function ga(r,o,u){return{instance:r,listener:o,currentTarget:u}}function yc(r,o){for(var u=o+"Capture",h=[];r!==null;){var y=r,v=y.stateNode;y.tag===5&&v!==null&&(y=v,v=Xo(r,u),v!=null&&h.unshift(ga(r,v,y)),v=Xo(r,o),v!=null&&h.push(ga(r,v,y))),r=r.return}return h}function Bi(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5);return r||null}function Sv(r,o,u,h,y){for(var v=o._reactName,C=[];u!==null&&u!==h;){var T=u,_=T.alternate,$=T.stateNode;if(_!==null&&_===h)break;T.tag===5&&$!==null&&(T=$,y?(_=Xo(u,v),_!=null&&C.unshift(ga(u,_,T))):y||(_=Xo(u,v),_!=null&&C.push(ga(u,_,T)))),u=u.return}C.length!==0&&r.push({event:o,listeners:C})}var kA=/\r\n?/g,SA=/\u0000|\uFFFD/g;function Nv(r){return(typeof r=="string"?r:""+r).replace(kA,`
38`).replace(SA,"")}function vc(r,o,u){if(o=Nv(o),Nv(r)!==o&&u)throw Error(n(425))}function xc(){}var yh=null,vh=null;function xh(r,o){return r==="textarea"||r==="noscript"||typeof o.children=="string"||typeof o.children=="number"||typeof o.dangerouslySetInnerHTML=="object"&&o.dangerouslySetInnerHTML!==null&&o.dangerouslySetInnerHTML.__html!=null}var wh=typeof setTimeout=="function"?setTimeout:void 0,NA=typeof clearTimeout=="function"?clearTimeout:void 0,jv=typeof Promise=="function"?Promise:void 0,jA=typeof queueMicrotask=="function"?queueMicrotask:typeof jv<"u"?function(r){return jv.resolve(null).then(r).catch(CA)}:wh;function CA(r){setTimeout(function(){throw r})}function bh(r,o){var u=o,h=0;do{var y=u.nextSibling;if(r.removeChild(u),y&&y.nodeType===8)if(u=y.data,u==="/$"){if(h===0){r.removeChild(y),oa(o);return}h--}else u!=="$"&&u!=="$?"&&u!=="$!"||h++;u=y}while(u);oa(o)}function Qs(r){for(;r!=null;r=r.nextSibling){var o=r.nodeType;if(o===1||o===3)break;if(o===8){if(o=r.data,o==="$"||o==="$!"||o==="$?")break;if(o==="/$")return null}}return r}function Cv(r){r=r.previousSibling;for(var o=0;r;){if(r.nodeType===8){var u=r.data;if(u==="$"||u==="$!"||u==="$?"){if(o===0)return r;o--}else u==="/$"&&o++}r=r.previousSibling}return null}var Vi=Math.random().toString(36).slice(2),ts="__reactFiber$"+Vi,ya="__reactProps$"+Vi,ks="__reactContainer$"+Vi,kh="__reactEvents$"+Vi,AA="__reactListeners$"+Vi,PA="__reactHandles$"+Vi;function zr(r){var o=r[ts];if(o)return o;for(var u=r.parentNode;u;){if(o=u[ks]||u[ts]){if(u=o.alternate,o.child!==null||u!==null&&u.child!==null)for(r=Cv(r);r!==null;){if(u=r[ts])return u;r=Cv(r)}return o}r=u,u=r.parentNode}return null}function va(r){return r=r[ts]||r[ks],!r||r.tag!==5&&r.tag!==6&&r.tag!==13&&r.tag!==3?null:r}function zi(r){if(r.tag===5||r.tag===6)return r.stateNode;throw Error(n(33))}function wc(r){return r[ya]||null}var Sh=[],Ui=-1;function Xs(r){return{current:r}}function Ze(r){0>Ui||(r.current=Sh[Ui],Sh[Ui]=null,Ui--)}function Ye(r,o){Ui++,Sh[Ui]=r.current,r.current=o}var Js={},Ot=Xs(Js),Qt=Xs(!1),Ur=Js;function $i(r,o){var u=r.type.contextTypes;if(!u)return Js;var h=r.stateNode;if(h&&h.__reactInternalMemoizedUnmaskedChildContext===o)return h.__reactInternalMemoizedMaskedChildContext;var y={},v;for(v in u)y[v]=o[v];return h&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=o,r.__reactInternalMemoizedMaskedChildContext=y),y}function Xt(r){return r=r.childContextTypes,r!=null}function bc(){Ze(Qt),Ze(Ot)}function Av(r,o,u){if(Ot.current!==Js)throw Error(n(168));Ye(Ot,o),Ye(Qt,u)}function Pv(r,o,u){var h=r.stateNode;if(o=o.childContextTypes,typeof h.getChildContext!="function")return u;h=h.getChildContext();for(var y in h)if(!(y in o))throw Error(n(108,Se(r)||"Unknown",y));return J({},u,h)}function kc(r){return r=(r=r.stateNode)&&r.__reactInternalMemoizedMergedChildContext||Js,Ur=Ot.current,Ye(Ot,r),Ye(Qt,Qt.current),!0}function Ev(r,o,u){var h=r.stateNode;if(!h)throw Error(n(169));u?(r=Pv(r,o,Ur),h.__reactInternalMemoizedMergedChildContext=r,Ze(Qt),Ze(Ot),Ye(Ot,r)):Ze(Qt),Ye(Qt,u)}var Ss=null,Sc=!1,Nh=!1;function Tv(r){Ss===null?Ss=[r]:Ss.push(r)}function EA(r){Sc=!0,Tv(r)}function Zs(){if(!Nh&&Ss!==null){Nh=!0;var r=0,o=We;try{var u=Ss;for(We=1;r<u.length;r++){var h=u[r];do h=h(!0);while(h!==null)}Ss=null,Sc=!1}catch(y){throw Ss!==null&&(Ss=Ss.slice(r+1)),_y(qd,Zs),y}finally{We=o,Nh=!1}}return null}var Wi=[],Hi=0,Nc=null,jc=0,wn=[],bn=0,$r=null,Ns=1,js="";function Wr(r,o){Wi[Hi++]=jc,Wi[Hi++]=Nc,Nc=r,jc=o}function Rv(r,o,u){wn[bn++]=Ns,wn[bn++]=js,wn[bn++]=$r,$r=r;var h=Ns;r=js;var y=32-_n(h)-1;h&=~(1<<y),u+=1;var v=32-_n(o)+y;
vendor: 4,384 bytes, line 38
38if(30<v){var C=y-y%5;v=(h&(1<<C)-1).toString(32),h>>=C,y-=C,Ns=1<<32-_n(o)+y|u<<y|h,js=v+r}else Ns=1<<v|u<<y|h,js=r}function jh(r){r.return!==null&&(Wr(r,1),Rv(r,1,0))}function Ch(r){for(;r===Nc;)Nc=Wi[--Hi],Wi[Hi]=null,jc=Wi[--Hi],Wi[Hi]=null;for(;r===$r;)$r=wn[--bn],wn[bn]=null,js=wn[--bn],wn[bn]=null,Ns=wn[--bn],wn[bn]=null}var hn=null,fn=null,tt=!1,Mn=null;function _v(r,o){var u=jn(5,null,null,0);u.elementType="DELETED",u.stateNode=o,u.return=r,o=r.deletions,o===null?(r.deletions=[u],r.flags|=16):o.push(u)}function Dv(r,o){switch(r.tag){case 5:var u=r.type;return o=o.nodeType!==1||u.toLowerCase()!==o.nodeName.toLowerCase()?null:o,o!==null?(r.stateNode=o,hn=r,fn=Qs(o.firstChild),!0):!1;case 6:return o=r.pendingProps===""||o.nodeType!==3?null:o,o!==null?(r.stateNode=o,hn=r,fn=null,!0):!1;case 13:return o=o.nodeType!==8?null:o,o!==null?(u=$r!==null?{id:Ns,overflow:js}:null,r.memoizedState={dehydrated:o,treeContext:u,retryLane:1073741824},u=jn(18,null,null,0),u.stateNode=o,u.return=r,r.child=u,hn=r,fn=null,!0):!1;default:return!1}}function Ah(r){return(r.mode&1)!==0&&(r.flags&128)===0}function Ph(r){if(tt){var o=fn;if(o){var u=o;if(!Dv(r,o)){if(Ah(r))throw Error(n(418));o=Qs(u.nextSibling);var h=hn;o&&Dv(r,o)?_v(h,u):(r.flags=r.flags&-4097|2,tt=!1,hn=r)}}else{if(Ah(r))throw Error(n(418));r.flags=r.flags&-4097|2,tt=!1,hn=r}}}function Mv(r){for(r=r.return;r!==null&&r.tag!==5&&r.tag!==3&&r.tag!==13;)r=r.return;hn=r}function Cc(r){if(r!==hn)return!1;if(!tt)return Mv(r),tt=!0,!1;var o;if((o=r.tag!==3)&&!(o=r.tag!==5)&&(o=r.type,o=o!=="head"&&o!=="body"&&!xh(r.type,r.memoizedProps)),o&&(o=fn)){if(Ah(r))throw Fv(),Error(n(418));for(;o;)_v(r,o),o=Qs(o.nextSibling)}if(Mv(r),r.tag===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(n(317));e:{for(r=r.nextSibling,o=0;r;){if(r.nodeType===8){var u=r.data;if(u==="/$"){if(o===0){fn=Qs(r.nextSibling);break e}o--}else u!=="$"&&u!=="$!"&&u!=="$?"||o++}r=r.nextSibling}fn=null}}else fn=hn?Qs(r.stateNode.nextSibling):null;return!0}function Fv(){for(var r=fn;r;)r=Qs(r.nextSibling)}function qi(){fn=hn=null,tt=!1}function Eh(r){Mn===null?Mn=[r]:Mn.push(r)}var TA=E.ReactCurrentBatchConfig;function xa(r,o,u){if(r=u.ref,r!==null&&typeof r!="function"&&typeof r!="object"){if(u._owner){if(u=u._owner,u){if(u.tag!==1)throw Error(n(309));var h=u.stateNode}if(!h)throw Error(n(147,r));var y=h,v=""+r;return o!==null&&o.ref!==null&&typeof o.ref=="function"&&o.ref._stringRef===v?o.ref:(o=function(C){var T=y.refs;C===null?delete T[v]:T[v]=C},o._stringRef=v,o)}if(typeof r!="string")throw Error(n(284));if(!u._owner)throw Error(n(290,r))}return r}function Ac(r,o){throw r=Object.prototype.toString.call(o),Error(n(31,r==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":r))}function Ov(r){var o=r._init;return o(r._payload)}function Lv(r){function o(z,O){if(r){var U=z.deletions;U===null?(z.deletions=[O],z.flags|=16):U.push(O)}}function u(z,O){if(!r)return null;for(;O!==null;)o(z,O),O=O.sibling;return null}function h(z,O){for(z=new Map;O!==null;)O.key!==null?z.set(O.key,O):z.set(O.index,O),O=O.sibling;return z}function y(z,O){return z=ar(z,O),z.index=0,z.sibling=null,z}function v(z,O,U){return z.index=U,r?(U=z.alternate,U!==null?(U=U.index,U<O?(z.flags|=2,O):U):(z.flags|=2,O)):(z.flags|=1048576,O)}function C(z){return r&&z.alternate===null&&(z.flags|=2),z}function T(z,O,U,te){return O===null||O.tag!==6?(O=bf(U,z.mode,te),O.return=z,O):(O=y(O,U),O.return=z,O)}function _(z,O,U,te){var ge=U.type;return ge===B?K(z,O,U.props.children,te,U.key):O!==null&&(O.elementType===ge||typeof ge=="object"&&ge!==null&&ge.$$typeof===ee&&Ov(ge)===O.type)?(te=y(O,U.props),te.ref=xa(z,O,U),te.return=z,te):(te=Xc(U.type,U.key,U.props,null,z.mode,te),te.ref=xa(z,O,U),te.return=z,te)}function $(z,O,U,te){return O===null||O.tag!==4||O.stateNode.containerInfo!==U.containerInfo||O.stateNode.implementation!==U.implementation?(O=kf(U,z.mode,te),O.return=z,O):(O=y(O,U.children||[]),O.return=z,O)}function K(z,O,U,te,ge){return O===null||O.tag!==7?(O=Jr(U,z.mode,te,ge),O.return=z,O):(O=y(O,U),O.return=z,O)}function X(z,O,U){if(typeof O=="string"&&O!==""||typeof O=="number")return O=bf(""+O,z.mode,U),O.return=z,O;if(typeof O=="object"&&O!==null){switch(O.$$typeof){case D:return U=Xc(O.type,O.key,O.props,null,z.mode,U),U.ref=xa(z,null,O),U.return=z,U;case V:return O=kf(O,z.mode,U),O.return=z,O;
vendor: 10,764 bytes, line 38
38case ee:var te=O._init;return X(z,te(O._payload),U)}if(Yo(O)||se(O))return O=Jr(O,z.mode,U,null),O.return=z,O;Ac(z,O)}return null}function G(z,O,U,te){var ge=O!==null?O.key:null;if(typeof U=="string"&&U!==""||typeof U=="number")return ge!==null?null:T(z,O,""+U,te);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case D:return U.key===ge?_(z,O,U,te):null;case V:return U.key===ge?$(z,O,U,te):null;case ee:return ge=U._init,G(z,O,ge(U._payload),te)}if(Yo(U)||se(U))return ge!==null?null:K(z,O,U,te,null);Ac(z,U)}return null}function le(z,O,U,te,ge){if(typeof te=="string"&&te!==""||typeof te=="number")return z=z.get(U)||null,T(O,z,""+te,ge);if(typeof te=="object"&&te!==null){switch(te.$$typeof){case D:return z=z.get(te.key===null?U:te.key)||null,_(O,z,te,ge);case V:return z=z.get(te.key===null?U:te.key)||null,$(O,z,te,ge);case ee:var ve=te._init;return le(z,O,U,ve(te._payload),ge)}if(Yo(te)||se(te))return z=z.get(U)||null,K(O,z,te,ge,null);Ac(O,te)}return null}function de(z,O,U,te){for(var ge=null,ve=null,xe=O,je=O=0,Pt=null;xe!==null&&je<U.length;je++){xe.index>je?(Pt=xe,xe=null):Pt=xe.sibling;var Ue=G(z,xe,U[je],te);if(Ue===null){xe===null&&(xe=Pt);break}r&&xe&&Ue.alternate===null&&o(z,xe),O=v(Ue,O,je),ve===null?ge=Ue:ve.sibling=Ue,ve=Ue,xe=Pt}if(je===U.length)return u(z,xe),tt&&Wr(z,je),ge;if(xe===null){for(;je<U.length;je++)xe=X(z,U[je],te),xe!==null&&(O=v(xe,O,je),ve===null?ge=xe:ve.sibling=xe,ve=xe);return tt&&Wr(z,je),ge}for(xe=h(z,xe);je<U.length;je++)Pt=le(xe,z,je,U[je],te),Pt!==null&&(r&&Pt.alternate!==null&&xe.delete(Pt.key===null?je:Pt.key),O=v(Pt,O,je),ve===null?ge=Pt:ve.sibling=Pt,ve=Pt);return r&&xe.forEach(function(lr){return o(z,lr)}),tt&&Wr(z,je),ge}function me(z,O,U,te){var ge=se(U);if(typeof ge!="function")throw Error(n(150));if(U=ge.call(U),U==null)throw Error(n(151));for(var ve=ge=null,xe=O,je=O=0,Pt=null,Ue=U.next();xe!==null&&!Ue.done;je++,Ue=U.next()){xe.index>je?(Pt=xe,xe=null):Pt=xe.sibling;var lr=G(z,xe,Ue.value,te);if(lr===null){xe===null&&(xe=Pt);break}r&&xe&&lr.alternate===null&&o(z,xe),O=v(lr,O,je),ve===null?ge=lr:ve.sibling=lr,ve=lr,xe=Pt}if(Ue.done)return u(z,xe),tt&&Wr(z,je),ge;if(xe===null){for(;!Ue.done;je++,Ue=U.next())Ue=X(z,Ue.value,te),Ue!==null&&(O=v(Ue,O,je),ve===null?ge=Ue:ve.sibling=Ue,ve=Ue);return tt&&Wr(z,je),ge}for(xe=h(z,xe);!Ue.done;je++,Ue=U.next())Ue=le(xe,z,je,Ue.value,te),Ue!==null&&(r&&Ue.alternate!==null&&xe.delete(Ue.key===null?je:Ue.key),O=v(Ue,O,je),ve===null?ge=Ue:ve.sibling=Ue,ve=Ue);return r&&xe.forEach(function(cP){return o(z,cP)}),tt&&Wr(z,je),ge}function ft(z,O,U,te){if(typeof U=="object"&&U!==null&&U.type===B&&U.key===null&&(U=U.props.children),typeof U=="object"&&U!==null){switch(U.$$typeof){case D:e:{for(var ge=U.key,ve=O;ve!==null;){if(ve.key===ge){if(ge=U.type,ge===B){if(ve.tag===7){u(z,ve.sibling),O=y(ve,U.props.children),O.return=z,z=O;break e}}else if(ve.elementType===ge||typeof ge=="object"&&ge!==null&&ge.$$typeof===ee&&Ov(ge)===ve.type){u(z,ve.sibling),O=y(ve,U.props),O.ref=xa(z,ve,U),O.return=z,z=O;break e}u(z,ve);break}else o(z,ve);ve=ve.sibling}U.type===B?(O=Jr(U.props.children,z.mode,te,U.key),O.return=z,z=O):(te=Xc(U.type,U.key,U.props,null,z.mode,te),te.ref=xa(z,O,U),te.return=z,z=te)}return C(z);case V:e:{for(ve=U.key;O!==null;){if(O.key===ve)if(O.tag===4&&O.stateNode.containerInfo===U.containerInfo&&O.stateNode.implementation===U.implementation){u(z,O.sibling),O=y(O,U.children||[]),O.return=z,z=O;break e}else{u(z,O);break}else o(z,O);O=O.sibling}O=kf(U,z.mode,te),O.return=z,z=O}return C(z);case ee:return ve=U._init,ft(z,O,ve(U._payload),te)}if(Yo(U))return de(z,O,U,te);if(se(U))return me(z,O,U,te);Ac(z,U)}return typeof U=="string"&&U!==""||typeof U=="number"?(U=""+U,O!==null&&O.tag===6?(u(z,O.sibling),O=y(O,U),O.return=z,z=O):(u(z,O),O=bf(U,z.mode,te),O.return=z,z=O),C(z)):u(z,O)}return ft}var Gi=Lv(!0),Iv=Lv(!1),Pc=Xs(null),Ec=null,Yi=null,Th=null;function Rh(){Th=Yi=Ec=null}function _h(r){var o=Pc.current;Ze(Pc),r._currentValue=o}function Dh(r,o,u){for(;r!==null;){var h=r.alternate;if((r.childLanes&o)!==o?(r.childLanes|=o,h!==null&&(h.childLanes|=o)):h!==null&&(h.childLanes&o)!==o&&(h.childLanes|=o),r===u)break;r=r.return}}function Ki(r,o){Ec=r,Th=Yi=null,r=r.dependencies,r!==null&&r.firstContext!==null&&((r.lanes&o)!==0&&(Jt=!0),r.firstContext=null)}function kn(r){var o=r._currentValue;if(Th!==r)if(r={context:r,memoizedValue:o,next:null},Yi===null){if(Ec===null)throw Error(n(308));Yi=r,Ec.dependencies={lanes:0,firstContext:r}}else Yi=Yi.next=r;return o}var Hr=null;function Mh(r){Hr===null?Hr=[r]:Hr.push(r)}function Bv(r,o,u,h){var y=o.interleaved;return y===null?(u.next=u,Mh(o)):(u.next=y.next,y.next=u),o.interleaved=u,Cs(r,h)}function Cs(r,o){r.lanes|=o;var u=r.alternate;for(u!==null&&(u.lanes|=o),u=r,r=r.return;r!==null;)r.childLanes|=o,u=r.alternate,u!==null&&(u.childLanes|=o),u=r,r=r.return;return u.tag===3?u.stateNode:null}var er=!1;function Fh(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Vv(r,o){r=r.updateQueue,o.updateQueue===r&&(o.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,effects:r.effects})}function As(r,o){return{eventTime:r,lane:o,tag:0,payload:null,callback:null,next:null}}function tr(r,o,u){var h=r.updateQueue;if(h===null)return null;if(h=h.shared,(Be&2)!==0){var y=h.pending;return y===null?o.next=o:(o.next=y.next,y.next=o),h.pending=o,Cs(r,u)}return y=h.interleaved,y===null?(o.next=o,Mh(h)):(o.next=y.next,y.next=o),h.interleaved=o,Cs(r,u)}function Tc(r,o,u){if(o=o.updateQueue,o!==null&&(o=o.shared,(u&4194240)!==0)){var h=o.lanes;h&=r.pendingLanes,u|=h,o.lanes=u,Kd(r,u)}}function zv(r,o){var u=r.updateQueue,h=r.alternate;if(h!==null&&(h=h.updateQueue,u===h)){var y=null,v=null;if(u=u.firstBaseUpdate,u!==null){do{var C={eventTime:u.eventTime,lane:u.lane,tag:u.tag,payload:u.payload,callback:u.callback,next:null};v===null?y=v=C:v=v.next=C,u=u.next}while(u!==null);v===null?y=v=o:v=v.next=o}else y=v=o;u={baseState:h.baseState,firstBaseUpdate:y,lastBaseUpdate:v,shared:h.shared,effects:h.effects},r.updateQueue=u;return}r=u.lastBaseUpdate,r===null?u.firstBaseUpdate=o:r.next=o,u.lastBaseUpdate=o}function Rc(r,o,u,h){var y=r.updateQueue;er=!1;var v=y.firstBaseUpdate,C=y.lastBaseUpdate,T=y.shared.pending;if(T!==null){y.shared.pending=null;var _=T,$=_.next;_.next=null,C===null?v=$:C.next=$,C=_;var K=r.alternate;K!==null&&(K=K.updateQueue,T=K.lastBaseUpdate,T!==C&&(T===null?K.firstBaseUpdate=$:T.next=$,K.lastBaseUpdate=_))}if(v!==null){var X=y.baseState;C=0,K=$=_=null,T=v;do{var G=T.lane,le=T.eventTime;if((h&G)===G){K!==null&&(K=K.next={eventTime:le,lane:0,tag:T.tag,payload:T.payload,callback:T.callback,next:null});e:{var de=r,me=T;switch(G=o,le=u,me.tag){case 1:if(de=me.payload,typeof de=="function"){X=de.call(le,X,G);break e}X=de;break e;case 3:de.flags=de.flags&-65537|128;case 0:if(de=me.payload,G=typeof de=="function"?de.call(le,X,G):de,G==null)break e;X=J({},X,G);break e;case 2:er=!0}}T.callback!==null&&T.lane!==0&&(r.flags|=64,G=y.effects,G===null?y.effects=[T]:G.push(T))}else le={eventTime:le,lane:G,tag:T.tag,payload:T.payload,callback:T.callback,next:null},K===null?($=K=le,_=X):K=K.next=le,C|=G;if(T=T.next,T===null){if(T=y.shared.pending,T===null)break;G=T,T=G.next,G.next=null,y.lastBaseUpdate=G,y.shared.pending=null}}while(!0);if(K===null&&(_=X),y.baseState=_,y.firstBaseUpdate=$,y.lastBaseUpdate=K,o=y.shared.interleaved,o!==null){y=o;do C|=y.lane,y=y.next;while(y!==o)}else v===null&&(y.shared.lanes=0);Yr|=C,r.lanes=C,r.memoizedState=X}}function Uv(r,o,u){if(r=o.effects,o.effects=null,r!==null)for(o=0;o<r.length;o++){var h=r[o],y=h.callback;if(y!==null){if(h.callback=null,h=u,typeof y!="function")throw Error(n(191,y));y.call(h)}}}var wa={},ns=Xs(wa),ba=Xs(wa),ka=Xs(wa);function qr(r){if(r===wa)throw Error(n(174));return r}function Oh(r,o){switch(Ye(ka,o),Ye(ba,r),Ye(ns,wa),r=o.nodeType,r){case 9:case 11:o=(o=o.documentElement)?o.namespaceURI:Ld(null,"");break;default:r=r===8?o.parentNode:o,o=r.namespaceURI||null,r=r.tagName,o=Ld(o,r)}Ze(ns),Ye(ns,o)}function Qi(){Ze(ns),Ze(ba),Ze(ka)}function $v(r){qr(ka.current);var o=qr(ns.current),u=Ld(o,r.type);o!==u&&(Ye(ba,r),Ye(ns,u))}function Lh(r){ba.current===r&&(Ze(ns),Ze(ba))}var st=Xs(0);function _c(r){for(var o=r;o!==null;){if(o.tag===13){var u=o.memoizedState;if(u!==null&&(u=u.dehydrated,u===null||u.data==="$?"||u.data==="$!"))return o}else if(o.tag===19&&o.memoizedProps.revealOrder!==void 0){if((o.flags&128)!==0)return o}else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===r)break;for(;o.sibling===null;){if(o.return===null||o.return===r)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}var Ih=[];function Bh(){for(var r=0;r<Ih.length;r++)Ih[r]._workInProgressVersionPrimary=null;Ih.length=0}var Dc=E.ReactCurrentDispatcher,Vh=E.ReactCurrentBatchConfig,Gr=0,rt=null,St=null,Ct=null,Mc=!1,Sa=!1,Na=0,RA=0;function Lt(){throw Error(n(321))}function zh(r,o){if(o===null)return!1;for(var u=0;u<o.length&&u<r.length;u++)if(!Dn(r[u],o[u]))return!1;return!0}function Uh(r,o,u,h,y,v){if(Gr=v,rt=o,o.memoizedState=null,o.updateQueue=null,o.lanes=0,Dc.current=r===null||r.memoizedState===null?FA:OA,r=u(h,y),Sa){v=0;do{if(Sa=!1,Na=0,25<=v)throw Error(n(301));v+=1,Ct=St=null,o.updateQueue=null,Dc.current=LA,r=u(h,y)}while(Sa)}if(Dc.current=Lc,o=St!==null&&St.next!==null,Gr=0,Ct=St=rt=null,Mc=!1,o)throw Error(n(300));return r}function $h(){var r=Na!==0;return Na=0,r}function ss(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ct===null?rt.memoizedState=Ct=r:Ct=Ct.next=r,Ct}function Sn(){if(St===null){var r=rt.alternate;r=r!==null?r.memoizedState:null}else r=St.next;var o=Ct===null?rt.memoizedState:Ct.next;if(o!==null)Ct=o,St=r;else{if(r===null)throw Error(n(310));St=r,r={memoizedState:St.memoizedState,baseState:St.baseState,baseQueue:St.baseQueue,queue:St.queue,next:null},Ct===null?rt.memoizedState=Ct=r:Ct=Ct.next=r}return Ct}function ja(r,o){return typeof o=="function"?o(r):o}function Wh(r){var o=Sn(),u=o.queue;if(u===null)throw Error(n(311));u.lastRenderedReducer=r;var h=St,y=h.baseQueue,v=u.pending;if(v!==null){if(y!==null){var C=y.next;y.next=v.next,v.next=C}h.baseQueue=y=v,u.pending=null}if(y!==null){v=y.next,h=h.baseState;var T=C=null,_=null,$=v;do{var K=$.lane;if((Gr&K)===K)_!==null&&(_=_.next={lane:0,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null}),h=$.hasEagerState?$.eagerState:r(h,$.action);else{var X={lane:K,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null};_===null?(T=_=X,C=h):_=_.next=X,rt.lanes|=K,Yr|=K}$=$.next}
vendor: 5,173 bytes, line 38
38while($!==null&&$!==v);_===null?C=h:_.next=T,Dn(h,o.memoizedState)||(Jt=!0),o.memoizedState=h,o.baseState=C,o.baseQueue=_,u.lastRenderedState=h}if(r=u.interleaved,r!==null){y=r;do v=y.lane,rt.lanes|=v,Yr|=v,y=y.next;while(y!==r)}else y===null&&(u.lanes=0);return[o.memoizedState,u.dispatch]}function Hh(r){var o=Sn(),u=o.queue;if(u===null)throw Error(n(311));u.lastRenderedReducer=r;var h=u.dispatch,y=u.pending,v=o.memoizedState;if(y!==null){u.pending=null;var C=y=y.next;do v=r(v,C.action),C=C.next;while(C!==y);Dn(v,o.memoizedState)||(Jt=!0),o.memoizedState=v,o.baseQueue===null&&(o.baseState=v),u.lastRenderedState=v}return[v,h]}function Wv(){}function Hv(r,o){var u=rt,h=Sn(),y=o(),v=!Dn(h.memoizedState,y);if(v&&(h.memoizedState=y,Jt=!0),h=h.queue,qh(Yv.bind(null,u,h,r),[r]),h.getSnapshot!==o||v||Ct!==null&&Ct.memoizedState.tag&1){if(u.flags|=2048,Ca(9,Gv.bind(null,u,h,y,o),void 0,null),At===null)throw Error(n(349));(Gr&30)!==0||qv(u,o,y)}return y}function qv(r,o,u){r.flags|=16384,r={getSnapshot:o,value:u},o=rt.updateQueue,o===null?(o={lastEffect:null,stores:null},rt.updateQueue=o,o.stores=[r]):(u=o.stores,u===null?o.stores=[r]:u.push(r))}function Gv(r,o,u,h){o.value=u,o.getSnapshot=h,Kv(o)&&Qv(r)}function Yv(r,o,u){return u(function(){Kv(o)&&Qv(r)})}function Kv(r){var o=r.getSnapshot;r=r.value;try{var u=o();return!Dn(r,u)}catch{return!0}}function Qv(r){var o=Cs(r,1);o!==null&&In(o,r,1,-1)}function Xv(r){var o=ss();return typeof r=="function"&&(r=r()),o.memoizedState=o.baseState=r,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ja,lastRenderedState:r},o.queue=r,r=r.dispatch=MA.bind(null,rt,r),[o.memoizedState,r]}function Ca(r,o,u,h){return r={tag:r,create:o,destroy:u,deps:h,next:null},o=rt.updateQueue,o===null?(o={lastEffect:null,stores:null},rt.updateQueue=o,o.lastEffect=r.next=r):(u=o.lastEffect,u===null?o.lastEffect=r.next=r:(h=u.next,u.next=r,r.next=h,o.lastEffect=r)),r}function Jv(){return Sn().memoizedState}function Fc(r,o,u,h){var y=ss();rt.flags|=r,y.memoizedState=Ca(1|o,u,void 0,h===void 0?null:h)}function Oc(r,o,u,h){var y=Sn();h=h===void 0?null:h;var v=void 0;if(St!==null){var C=St.memoizedState;if(v=C.destroy,h!==null&&zh(h,C.deps)){y.memoizedState=Ca(o,u,v,h);return}}rt.flags|=r,y.memoizedState=Ca(1|o,u,v,h)}function Zv(r,o){return Fc(8390656,8,r,o)}function qh(r,o){return Oc(2048,8,r,o)}function ex(r,o){return Oc(4,2,r,o)}function tx(r,o){return Oc(4,4,r,o)}function nx(r,o){if(typeof o=="function")return r=r(),o(r),function(){o(null)};if(o!=null)return r=r(),o.current=r,function(){o.current=null}}function sx(r,o,u){return u=u!=null?u.concat([r]):null,Oc(4,4,nx.bind(null,o,r),u)}function Gh(){}function rx(r,o){var u=Sn();o=o===void 0?null:o;var h=u.memoizedState;return h!==null&&o!==null&&zh(o,h[1])?h[0]:(u.memoizedState=[r,o],r)}function ix(r,o){var u=Sn();o=o===void 0?null:o;var h=u.memoizedState;return h!==null&&o!==null&&zh(o,h[1])?h[0]:(r=r(),u.memoizedState=[r,o],r)}function ox(r,o,u){return(Gr&21)===0?(r.baseState&&(r.baseState=!1,Jt=!0),r.memoizedState=u):(Dn(u,o)||(u=Oy(),rt.lanes|=u,Yr|=u,r.baseState=!0),o)}function _A(r,o){var u=We;We=u!==0&&4>u?u:4,r(!0);var h=Vh.transition;Vh.transition={};try{r(!1),o()}finally{We=u,Vh.transition=h}}function ax(){return Sn().memoizedState}function DA(r,o,u){var h=ir(r);if(u={lane:h,action:u,hasEagerState:!1,eagerState:null,next:null},lx(r))cx(o,u);else if(u=Bv(r,o,u,h),u!==null){var y=Gt();In(u,r,h,y),ux(u,o,h)}}function MA(r,o,u){var h=ir(r),y={lane:h,action:u,hasEagerState:!1,eagerState:null,next:null};if(lx(r))cx(o,y);else{var v=r.alternate;if(r.lanes===0&&(v===null||v.lanes===0)&&(v=o.lastRenderedReducer,v!==null))try{var C=o.lastRenderedState,T=v(C,u);if(y.hasEagerState=!0,y.eagerState=T,Dn(T,C)){var _=o.interleaved;_===null?(y.next=y,Mh(o)):(y.next=_.next,_.next=y),o.interleaved=y;return}}catch{}finally{}u=Bv(r,o,y,h),u!==null&&(y=Gt(),In(u,r,h,y),ux(u,o,h))}}function lx(r){var o=r.alternate;return r===rt||o!==null&&o===rt}function cx(r,o){Sa=Mc=!0;var u=r.pending;u===null?o.next=o:(o.next=u.next,u.next=o),r.pending=o}function ux(r,o,u){if((u&4194240)!==0){var h=o.lanes;h&=r.pendingLanes,u|=h,o.lanes=u,Kd(r,u)}}var Lc={readContext:kn,useCallback:Lt,useContext:Lt,useEffect:Lt,useImperativeHandle:Lt,useInsertionEffect:Lt,useLayoutEffect:Lt,useMemo:Lt,useReducer:Lt,useRef:Lt,useState:Lt,useDebugValue:Lt,useDeferredValue:Lt,useTransition:Lt,useMutableSource:Lt,useSyncExternalStore:Lt,useId:Lt,unstable_isNewReconciler:!1},FA={readContext:kn,useCallback:function(r,o){return ss().memoizedState=[r,o===void 0?null:o],r},useContext:kn,useEffect:Zv,useImperativeHandle:function(r,o,u){return u=u!=null?u.concat([r]):null,Fc(4194308,4,nx.bind(null,o,r),u)},useLayoutEffect:function(r,o){return Fc(4194308,4,r,o)},useInsertionEffect:function(r,o){return Fc(4,2,r,o)},useMemo:function(r,o){var u=ss();return o=o===void 0?null:o,r=r(),u.memoizedState=[r,o],r},useReducer:function(r,o,u){var h=ss();return o=u!==void 0?u(o):o,h.memoizedState=h.baseState=o,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:o},h.queue=r,r=r.dispatch=DA.bind(null,rt,r),[h.memoizedState,r]}
vendor: 7,250 bytes, lines 38-40
38,useRef:function(r){var o=ss();return r={current:r},o.memoizedState=r},useState:Xv,useDebugValue:Gh,useDeferredValue:function(r){return ss().memoizedState=r},useTransition:function(){var r=Xv(!1),o=r[0];return r=_A.bind(null,r[1]),ss().memoizedState=r,[o,r]},useMutableSource:function(){},useSyncExternalStore:function(r,o,u){var h=rt,y=ss();if(tt){if(u===void 0)throw Error(n(407));u=u()}else{if(u=o(),At===null)throw Error(n(349));(Gr&30)!==0||qv(h,o,u)}y.memoizedState=u;var v={value:u,getSnapshot:o};return y.queue=v,Zv(Yv.bind(null,h,v,r),[r]),h.flags|=2048,Ca(9,Gv.bind(null,h,v,u,o),void 0,null),u},useId:function(){var r=ss(),o=At.identifierPrefix;if(tt){var u=js,h=Ns;u=(h&~(1<<32-_n(h)-1)).toString(32)+u,o=":"+o+"R"+u,u=Na++,0<u&&(o+="H"+u.toString(32)),o+=":"}else u=RA++,o=":"+o+"r"+u.toString(32)+":";return r.memoizedState=o},unstable_isNewReconciler:!1},OA={readContext:kn,useCallback:rx,useContext:kn,useEffect:qh,useImperativeHandle:sx,useInsertionEffect:ex,useLayoutEffect:tx,useMemo:ix,useReducer:Wh,useRef:Jv,useState:function(){return Wh(ja)},useDebugValue:Gh,useDeferredValue:function(r){var o=Sn();return ox(o,St.memoizedState,r)},useTransition:function(){var r=Wh(ja)[0],o=Sn().memoizedState;return[r,o]},useMutableSource:Wv,useSyncExternalStore:Hv,useId:ax,unstable_isNewReconciler:!1},LA={readContext:kn,useCallback:rx,useContext:kn,useEffect:qh,useImperativeHandle:sx,useInsertionEffect:ex,useLayoutEffect:tx,useMemo:ix,useReducer:Hh,useRef:Jv,useState:function(){return Hh(ja)},useDebugValue:Gh,useDeferredValue:function(r){var o=Sn();return St===null?o.memoizedState=r:ox(o,St.memoizedState,r)},useTransition:function(){var r=Hh(ja)[0],o=Sn().memoizedState;return[r,o]},useMutableSource:Wv,useSyncExternalStore:Hv,useId:ax,unstable_isNewReconciler:!1};function Fn(r,o){if(r&&r.defaultProps){o=J({},o),r=r.defaultProps;for(var u in r)o[u]===void 0&&(o[u]=r[u]);return o}return o}function Yh(r,o,u,h){o=r.memoizedState,u=u(h,o),u=u==null?o:J({},o,u),r.memoizedState=u,r.lanes===0&&(r.updateQueue.baseState=u)}var Ic={isMounted:function(r){return(r=r._reactInternals)?Vr(r)===r:!1},enqueueSetState:function(r,o,u){r=r._reactInternals;var h=Gt(),y=ir(r),v=As(h,y);v.payload=o,u!=null&&(v.callback=u),o=tr(r,v,y),o!==null&&(In(o,r,y,h),Tc(o,r,y))},enqueueReplaceState:function(r,o,u){r=r._reactInternals;var h=Gt(),y=ir(r),v=As(h,y);v.tag=1,v.payload=o,u!=null&&(v.callback=u),o=tr(r,v,y),o!==null&&(In(o,r,y,h),Tc(o,r,y))},enqueueForceUpdate:function(r,o){r=r._reactInternals;var u=Gt(),h=ir(r),y=As(u,h);y.tag=2,o!=null&&(y.callback=o),o=tr(r,y,h),o!==null&&(In(o,r,h,u),Tc(o,r,h))}};function dx(r,o,u,h,y,v,C){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(h,v,C):o.prototype&&o.prototype.isPureReactComponent?!ha(u,h)||!ha(y,v):!0}function hx(r,o,u){var h=!1,y=Js,v=o.contextType;return typeof v=="object"&&v!==null?v=kn(v):(y=Xt(o)?Ur:Ot.current,h=o.contextTypes,v=(h=h!=null)?$i(r,y):Js),o=new o(u,v),r.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=Ic,r.stateNode=o,o._reactInternals=r,h&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=y,r.__reactInternalMemoizedMaskedChildContext=v),o}function fx(r,o,u,h){r=o.state,typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps(u,h),typeof o.UNSAFE_componentWillReceiveProps=="function"&&o.UNSAFE_componentWillReceiveProps(u,h),o.state!==r&&Ic.enqueueReplaceState(o,o.state,null)}function Kh(r,o,u,h){var y=r.stateNode;y.props=u,y.state=r.memoizedState,y.refs={},Fh(r);var v=o.contextType;typeof v=="object"&&v!==null?y.context=kn(v):(v=Xt(o)?Ur:Ot.current,y.context=$i(r,v)),y.state=r.memoizedState,v=o.getDerivedStateFromProps,typeof v=="function"&&(Yh(r,o,v,u),y.state=r.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof y.getSnapshotBeforeUpdate=="function"||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(o=y.state,typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount(),o!==y.state&&Ic.enqueueReplaceState(y,y.state,null),Rc(r,u,y,h),y.state=r.memoizedState),typeof y.componentDidMount=="function"&&(r.flags|=4194308)}function Xi(r,o){try{var u="",h=o;do u+=Ce(h),h=h.return;while(h);var y=u}catch(v){y=`
39Error generating stack: `+v.message+`
40`+v.stack}return{value:r,source:o,stack:y,digest:null}}function Qh(r,o,u){return{value:r,source:null,stack:u??null,digest:o??null}}function Xh(r,o){try{console.error(o.value)}catch(u){setTimeout(function(){throw u})}}var IA=typeof WeakMap=="function"?WeakMap:Map;function mx(r,o,u){u=As(-1,u),u.tag=3,u.payload={element:null};var h=o.value;return u.callback=function(){Hc||(Hc=!0,ff=h),Xh(r,o)},u}function px(r,o,u){u=As(-1,u),u.tag=3;var h=r.type.getDerivedStateFromError;if(typeof h=="function"){var y=o.value;u.payload=function(){return h(y)},u.callback=function(){Xh(r,o)}}var v=r.stateNode;return v!==null&&typeof v.componentDidCatch=="function"&&(u.callback=function(){Xh(r,o),typeof h!="function"&&(sr===null?sr=new Set([this]):sr.add(this));var C=o.stack;this.componentDidCatch(o.value,{componentStack:C!==null?C:""})}),u}function gx(r,o,u){var h=r.pingCache;if(h===null){h=r.pingCache=new IA;var y=new Set;h.set(o,y)}else y=h.get(o),y===void 0&&(y=new Set,h.set(o,y));y.has(u)||(y.add(u),r=JA.bind(null,r,o,u),o.then(r,r))}function yx(r){do{var o;if((o=r.tag===13)&&(o=r.memoizedState,o=o!==null?o.dehydrated!==null:!0),o)return r;r=r.return}while(r!==null);return null}function vx(r,o,u,h,y){return(r.mode&1)===0?(r===o?r.flags|=65536:(r.flags|=128,u.flags|=131072,u.flags&=-52805,u.tag===1&&(u.alternate===null?u.tag=17:(o=As(-1,1),o.tag=2,tr(u,o,1))),u.lanes|=1),r):(r.flags|=65536,r.lanes=y,r)}var BA=E.ReactCurrentOwner,Jt=!1;function qt(r,o,u,h){o.child=r===null?Iv(o,null,u,h):Gi(o,r.child,u,h)}function xx(r,o,u,h,y){u=u.render;var v=o.ref;return Ki(o,y),h=Uh(r,o,u,h,v,y),u=$h(),r!==null&&!Jt?(o.updateQueue=r.updateQueue,o.flags&=-2053,r.lanes&=~y,Ps(r,o,y)):(tt&&u&&jh(o),o.flags|=1,qt(r,o,h,y),o.child)}function wx(r,o,u,h,y){if(r===null){var v=u.type;return typeof v=="function"&&!wf(v)&&v.defaultProps===void 0&&u.compare===null&&u.defaultProps===void 0?(o.tag=15,o.type=v,bx(r,o,v,h,y)):(r=Xc(u.type,null,h,o,o.mode,y),r.ref=o.ref,r.return=o,o.child=r)}if(v=r.child,(r.lanes&y)===0){var C=v.memoizedProps;if(u=u.compare,u=u!==null?u:ha,u(C,h)&&r.ref===o.ref)return Ps(r,o,y)}return o.flags|=1,r=ar(v,h),r.ref=o.ref,r.return=o,o.child=r}function bx(r,o,u,h,y){if(r!==null){var v=r.memoizedProps;if(ha(v,h)&&r.ref===o.ref)if(Jt=!1,o.pendingProps=h=v,(r.lanes&y)!==0)(r.flags&131072)!==0&&(Jt=!0);else return o.lanes=r.lanes,Ps(r,o,y)}return Jh(r,o,u,h,y)}function kx(r,o,u){var h=o.pendingProps,y=h.children,v=r!==null?r.memoizedState:null;if(h.mode==="hidden")if((o.mode&1)===0)o.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ye(Zi,mn),mn|=u;else{if((u&1073741824)===0)return r=v!==null?v.baseLanes|u:u,o.lanes=o.childLanes=1073741824,o.memoizedState={baseLanes:r,cachePool:null,transitions:null},o.updateQueue=null,Ye(Zi,mn),mn|=r,null;o.memoizedState={baseLanes:0,cachePool:null,transitions:null},h=v!==null?v.baseLanes:u,Ye(Zi,mn),mn|=h}
vendor: 40,595 bytes, line 40
40else v!==null?(h=v.baseLanes|u,o.memoizedState=null):h=u,Ye(Zi,mn),mn|=h;return qt(r,o,y,u),o.child}function Sx(r,o){var u=o.ref;(r===null&&u!==null||r!==null&&r.ref!==u)&&(o.flags|=512,o.flags|=2097152)}function Jh(r,o,u,h,y){var v=Xt(u)?Ur:Ot.current;return v=$i(o,v),Ki(o,y),u=Uh(r,o,u,h,v,y),h=$h(),r!==null&&!Jt?(o.updateQueue=r.updateQueue,o.flags&=-2053,r.lanes&=~y,Ps(r,o,y)):(tt&&h&&jh(o),o.flags|=1,qt(r,o,u,y),o.child)}function Nx(r,o,u,h,y){if(Xt(u)){var v=!0;kc(o)}else v=!1;if(Ki(o,y),o.stateNode===null)Vc(r,o),hx(o,u,h),Kh(o,u,h,y),h=!0;else if(r===null){var C=o.stateNode,T=o.memoizedProps;C.props=T;var _=C.context,$=u.contextType;typeof $=="object"&&$!==null?$=kn($):($=Xt(u)?Ur:Ot.current,$=$i(o,$));var K=u.getDerivedStateFromProps,X=typeof K=="function"||typeof C.getSnapshotBeforeUpdate=="function";X||typeof C.UNSAFE_componentWillReceiveProps!="function"&&typeof C.componentWillReceiveProps!="function"||(T!==h||_!==$)&&fx(o,C,h,$),er=!1;var G=o.memoizedState;C.state=G,Rc(o,h,C,y),_=o.memoizedState,T!==h||G!==_||Qt.current||er?(typeof K=="function"&&(Yh(o,u,K,h),_=o.memoizedState),(T=er||dx(o,u,T,h,G,_,$))?(X||typeof C.UNSAFE_componentWillMount!="function"&&typeof C.componentWillMount!="function"||(typeof C.componentWillMount=="function"&&C.componentWillMount(),typeof C.UNSAFE_componentWillMount=="function"&&C.UNSAFE_componentWillMount()),typeof C.componentDidMount=="function"&&(o.flags|=4194308)):(typeof C.componentDidMount=="function"&&(o.flags|=4194308),o.memoizedProps=h,o.memoizedState=_),C.props=h,C.state=_,C.context=$,h=T):(typeof C.componentDidMount=="function"&&(o.flags|=4194308),h=!1)}else{C=o.stateNode,Vv(r,o),T=o.memoizedProps,$=o.type===o.elementType?T:Fn(o.type,T),C.props=$,X=o.pendingProps,G=C.context,_=u.contextType,typeof _=="object"&&_!==null?_=kn(_):(_=Xt(u)?Ur:Ot.current,_=$i(o,_));var le=u.getDerivedStateFromProps;(K=typeof le=="function"||typeof C.getSnapshotBeforeUpdate=="function")||typeof C.UNSAFE_componentWillReceiveProps!="function"&&typeof C.componentWillReceiveProps!="function"||(T!==X||G!==_)&&fx(o,C,h,_),er=!1,G=o.memoizedState,C.state=G,Rc(o,h,C,y);var de=o.memoizedState;T!==X||G!==de||Qt.current||er?(typeof le=="function"&&(Yh(o,u,le,h),de=o.memoizedState),($=er||dx(o,u,$,h,G,de,_)||!1)?(K||typeof C.UNSAFE_componentWillUpdate!="function"&&typeof C.componentWillUpdate!="function"||(typeof C.componentWillUpdate=="function"&&C.componentWillUpdate(h,de,_),typeof C.UNSAFE_componentWillUpdate=="function"&&C.UNSAFE_componentWillUpdate(h,de,_)),typeof C.componentDidUpdate=="function"&&(o.flags|=4),typeof C.getSnapshotBeforeUpdate=="function"&&(o.flags|=1024)):(typeof C.componentDidUpdate!="function"||T===r.memoizedProps&&G===r.memoizedState||(o.flags|=4),typeof C.getSnapshotBeforeUpdate!="function"||T===r.memoizedProps&&G===r.memoizedState||(o.flags|=1024),o.memoizedProps=h,o.memoizedState=de),C.props=h,C.state=de,C.context=_,h=$):(typeof C.componentDidUpdate!="function"||T===r.memoizedProps&&G===r.memoizedState||(o.flags|=4),typeof C.getSnapshotBeforeUpdate!="function"||T===r.memoizedProps&&G===r.memoizedState||(o.flags|=1024),h=!1)}return Zh(r,o,u,h,v,y)}function Zh(r,o,u,h,y,v){Sx(r,o);var C=(o.flags&128)!==0;if(!h&&!C)return y&&Ev(o,u,!1),Ps(r,o,v);h=o.stateNode,BA.current=o;var T=C&&typeof u.getDerivedStateFromError!="function"?null:h.render();return o.flags|=1,r!==null&&C?(o.child=Gi(o,r.child,null,v),o.child=Gi(o,null,T,v)):qt(r,o,T,v),o.memoizedState=h.state,y&&Ev(o,u,!0),o.child}function jx(r){var o=r.stateNode;o.pendingContext?Av(r,o.pendingContext,o.pendingContext!==o.context):o.context&&Av(r,o.context,!1),Oh(r,o.containerInfo)}function Cx(r,o,u,h,y){return qi(),Eh(y),o.flags|=256,qt(r,o,u,h),o.child}var ef={dehydrated:null,treeContext:null,retryLane:0};function tf(r){return{baseLanes:r,cachePool:null,transitions:null}}function Ax(r,o,u){var h=o.pendingProps,y=st.current,v=!1,C=(o.flags&128)!==0,T;if((T=C)||(T=r!==null&&r.memoizedState===null?!1:(y&2)!==0),T?(v=!0,o.flags&=-129):(r===null||r.memoizedState!==null)&&(y|=1),Ye(st,y&1),r===null)return Ph(o),r=o.memoizedState,r!==null&&(r=r.dehydrated,r!==null)?((o.mode&1)===0?o.lanes=1:r.data==="$!"?o.lanes=8:o.lanes=1073741824,null):(C=h.children,r=h.fallback,v?(h=o.mode,v=o.child,C={mode:"hidden",children:C},(h&1)===0&&v!==null?(v.childLanes=0,v.pendingProps=C):v=Jc(C,h,0,null),r=Jr(r,h,u,null),v.return=o,r.return=o,v.sibling=r,o.child=v,o.child.memoizedState=tf(u),o.memoizedState=ef,r):nf(o,C));if(y=r.memoizedState,y!==null&&(T=y.dehydrated,T!==null))return VA(r,o,C,h,T,y,u);if(v){v=h.fallback,C=o.mode,y=r.child,T=y.sibling;var _={mode:"hidden",children:h.children};return(C&1)===0&&o.child!==y?(h=o.child,h.childLanes=0,h.pendingProps=_,o.deletions=null):(h=ar(y,_),h.subtreeFlags=y.subtreeFlags&14680064),T!==null?v=ar(T,v):(v=Jr(v,C,u,null),v.flags|=2),v.return=o,h.return=o,h.sibling=v,o.child=h,h=v,v=o.child,C=r.child.memoizedState,C=C===null?tf(u):{baseLanes:C.baseLanes|u,cachePool:null,transitions:C.transitions},v.memoizedState=C,v.childLanes=r.childLanes&~u,o.memoizedState=ef,h}return v=r.child,r=v.sibling,h=ar(v,{mode:"visible",children:h.children}),(o.mode&1)===0&&(h.lanes=u),h.return=o,h.sibling=null,r!==null&&(u=o.deletions,u===null?(o.deletions=[r],o.flags|=16):u.push(r)),o.child=h,o.memoizedState=null,h}function nf(r,o){return o=Jc({mode:"visible",children:o},r.mode,0,null),o.return=r,r.child=o}function Bc(r,o,u,h){return h!==null&&Eh(h),Gi(o,r.child,null,u),r=nf(o,o.pendingProps.children),r.flags|=2,o.memoizedState=null,r}function VA(r,o,u,h,y,v,C){if(u)return o.flags&256?(o.flags&=-257,h=Qh(Error(n(422))),Bc(r,o,C,h)):o.memoizedState!==null?(o.child=r.child,o.flags|=128,null):(v=h.fallback,y=o.mode,h=Jc({mode:"visible",children:h.children},y,0,null),v=Jr(v,y,C,null),v.flags|=2,h.return=o,v.return=o,h.sibling=v,o.child=h,(o.mode&1)!==0&&Gi(o,r.child,null,C),o.child.memoizedState=tf(C),o.memoizedState=ef,v);if((o.mode&1)===0)return Bc(r,o,C,null);if(y.data==="$!"){if(h=y.nextSibling&&y.nextSibling.dataset,h)var T=h.dgst;return h=T,v=Error(n(419)),h=Qh(v,h,void 0),Bc(r,o,C,h)}if(T=(C&r.childLanes)!==0,Jt||T){if(h=At,h!==null){switch(C&-C){case 4:y=2;break;case 16:y=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:y=32;break;case 536870912:y=268435456;break;default:y=0}y=(y&(h.suspendedLanes|C))!==0?0:y,y!==0&&y!==v.retryLane&&(v.retryLane=y,Cs(r,y),In(h,r,y,-1))}return xf(),h=Qh(Error(n(421))),Bc(r,o,C,h)}return y.data==="$?"?(o.flags|=128,o.child=r.child,o=ZA.bind(null,r),y._reactRetry=o,null):(r=v.treeContext,fn=Qs(y.nextSibling),hn=o,tt=!0,Mn=null,r!==null&&(wn[bn++]=Ns,wn[bn++]=js,wn[bn++]=$r,Ns=r.id,js=r.overflow,$r=o),o=nf(o,h.children),o.flags|=4096,o)}function Px(r,o,u){r.lanes|=o;var h=r.alternate;h!==null&&(h.lanes|=o),Dh(r.return,o,u)}function sf(r,o,u,h,y){var v=r.memoizedState;v===null?r.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:h,tail:u,tailMode:y}:(v.isBackwards=o,v.rendering=null,v.renderingStartTime=0,v.last=h,v.tail=u,v.tailMode=y)}function Ex(r,o,u){var h=o.pendingProps,y=h.revealOrder,v=h.tail;if(qt(r,o,h.children,u),h=st.current,(h&2)!==0)h=h&1|2,o.flags|=128;else{if(r!==null&&(r.flags&128)!==0)e:for(r=o.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&Px(r,u,o);else if(r.tag===19)Px(r,u,o);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===o)break e;for(;r.sibling===null;){if(r.return===null||r.return===o)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}h&=1}if(Ye(st,h),(o.mode&1)===0)o.memoizedState=null;else switch(y){case"forwards":for(u=o.child,y=null;u!==null;)r=u.alternate,r!==null&&_c(r)===null&&(y=u),u=u.sibling;u=y,u===null?(y=o.child,o.child=null):(y=u.sibling,u.sibling=null),sf(o,!1,y,u,v);break;case"backwards":for(u=null,y=o.child,o.child=null;y!==null;){if(r=y.alternate,r!==null&&_c(r)===null){o.child=y;break}r=y.sibling,y.sibling=u,u=y,y=r}sf(o,!0,u,null,v);break;case"together":sf(o,!1,null,null,void 0);break;default:o.memoizedState=null}return o.child}function Vc(r,o){(o.mode&1)===0&&r!==null&&(r.alternate=null,o.alternate=null,o.flags|=2)}function Ps(r,o,u){if(r!==null&&(o.dependencies=r.dependencies),Yr|=o.lanes,(u&o.childLanes)===0)return null;if(r!==null&&o.child!==r.child)throw Error(n(153));if(o.child!==null){for(r=o.child,u=ar(r,r.pendingProps),o.child=u,u.return=o;r.sibling!==null;)r=r.sibling,u=u.sibling=ar(r,r.pendingProps),u.return=o;u.sibling=null}return o.child}function zA(r,o,u){switch(o.tag){case 3:jx(o),qi();break;case 5:$v(o);break;case 1:Xt(o.type)&&kc(o);break;case 4:Oh(o,o.stateNode.containerInfo);break;case 10:var h=o.type._context,y=o.memoizedProps.value;Ye(Pc,h._currentValue),h._currentValue=y;break;case 13:if(h=o.memoizedState,h!==null)return h.dehydrated!==null?(Ye(st,st.current&1),o.flags|=128,null):(u&o.child.childLanes)!==0?Ax(r,o,u):(Ye(st,st.current&1),r=Ps(r,o,u),r!==null?r.sibling:null);Ye(st,st.current&1);break;case 19:if(h=(u&o.childLanes)!==0,(r.flags&128)!==0){if(h)return Ex(r,o,u);o.flags|=128}if(y=o.memoizedState,y!==null&&(y.rendering=null,y.tail=null,y.lastEffect=null),Ye(st,st.current),h)break;return null;case 22:case 23:return o.lanes=0,kx(r,o,u)}return Ps(r,o,u)}var Tx,rf,Rx,_x;Tx=function(r,o){for(var u=o.child;u!==null;){if(u.tag===5||u.tag===6)r.appendChild(u.stateNode);else if(u.tag!==4&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===o)break;for(;u.sibling===null;){if(u.return===null||u.return===o)return;u=u.return}u.sibling.return=u.return,u=u.sibling}},rf=function(){},Rx=function(r,o,u,h){var y=r.memoizedProps;if(y!==h){r=o.stateNode,qr(ns.current);var v=null;switch(u){case"input":y=Ti(r,y),h=Ti(r,h),v=[];break;case"select":y=J({},y,{value:void 0}),h=J({},h,{value:void 0}),v=[];break;case"textarea":y=Od(r,y),h=Od(r,h),v=[];break;default:typeof y.onClick!="function"&&typeof h.onClick=="function"&&(r.onclick=xc)}Id(u,h);var C;u=null;for($ in y)if(!h.hasOwnProperty($)&&y.hasOwnProperty($)&&y[$]!=null)if($==="style"){var T=y[$];for(C in T)T.hasOwnProperty(C)&&(u||(u={}),u[C]="")}else $!=="dangerouslySetInnerHTML"&&$!=="children"&&$!=="suppressContentEditableWarning"&&$!=="suppressHydrationWarning"&&$!=="autoFocus"&&(i.hasOwnProperty($)?v||(v=[]):(v=v||[]).push($,null));for($ in h){var _=h[$];if(T=y!=null?y[$]:void 0,h.hasOwnProperty($)&&_!==T&&(_!=null||T!=null))if($==="style")if(T){for(C in T)!T.hasOwnProperty(C)||_&&_.hasOwnProperty(C)||(u||(u={}),u[C]="");for(C in _)_.hasOwnProperty(C)&&T[C]!==_[C]&&(u||(u={}),u[C]=_[C])}else u||(v||(v=[]),v.push($,u)),u=_;else $==="dangerouslySetInnerHTML"?(_=_?_.__html:void 0,T=T?T.__html:void 0,_!=null&&T!==_&&(v=v||[]).push($,_)):$==="children"?typeof _!="string"&&typeof _!="number"||(v=v||[]).push($,""+_):$!=="suppressContentEditableWarning"&&$!=="suppressHydrationWarning"&&(i.hasOwnProperty($)?(_!=null&&$==="onScroll"&&Je("scroll",r),v||T===_||(v=[])):(v=v||[]).push($,_))}u&&(v=v||[]).push("style",u);var $=v;(o.updateQueue=$)&&(o.flags|=4)}},_x=function(r,o,u,h){u!==h&&(o.flags|=4)};function Aa(r,o){if(!tt)switch(r.tailMode){case"hidden":o=r.tail;for(var u=null;o!==null;)o.alternate!==null&&(u=o),o=o.sibling;u===null?r.tail=null:u.sibling=null;break;case"collapsed":u=r.tail;for(var h=null;u!==null;)u.alternate!==null&&(h=u),u=u.sibling;h===null?o||r.tail===null?r.tail=null:r.tail.sibling=null:h.sibling=null}}function It(r){var o=r.alternate!==null&&r.alternate.child===r.child,u=0,h=0;if(o)for(var y=r.child;y!==null;)u|=y.lanes|y.childLanes,h|=y.subtreeFlags&14680064,h|=y.flags&14680064,y.return=r,y=y.sibling;else for(y=r.child;y!==null;)u|=y.lanes|y.childLanes,h|=y.subtreeFlags,h|=y.flags,y.return=r,y=y.sibling;return r.subtreeFlags|=h,r.childLanes=u,o}function UA(r,o,u){var h=o.pendingProps;switch(Ch(o),o.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return It(o),null;case 1:return Xt(o.type)&&bc(),It(o),null;case 3:return h=o.stateNode,Qi(),Ze(Qt),Ze(Ot),Bh(),h.pendingContext&&(h.context=h.pendingContext,h.pendingContext=null),(r===null||r.child===null)&&(Cc(o)?o.flags|=4:r===null||r.memoizedState.isDehydrated&&(o.flags&256)===0||(o.flags|=1024,Mn!==null&&(gf(Mn),Mn=null))),rf(r,o),It(o),null;case 5:Lh(o);var y=qr(ka.current);if(u=o.type,r!==null&&o.stateNode!=null)Rx(r,o,u,h,y),r.ref!==o.ref&&(o.flags|=512,o.flags|=2097152);else{if(!h){if(o.stateNode===null)throw Error(n(166));return It(o),null}if(r=qr(ns.current),Cc(o)){h=o.stateNode,u=o.type;var v=o.memoizedProps;switch(h[ts]=o,h[ya]=v,r=(o.mode&1)!==0,u){case"dialog":Je("cancel",h),Je("close",h);break;case"iframe":case"object":case"embed":Je("load",h);break;case"video":case"audio":for(y=0;y<ma.length;y++)Je(ma[y],h);break;case"source":Je("error",h);break;case"img":case"image":case"link":Je("error",h),Je("load",h);break;case"details":Je("toggle",h);break;case"input":Yl(h,v),Je("invalid",h);break;case"select":h._wrapperState={wasMultiple:!!v.multiple},Je("invalid",h);break;case"textarea":py(h,v),Je("invalid",h)}Id(u,v),y=null;for(var C in v)if(v.hasOwnProperty(C)){var T=v[C];C==="children"?typeof T=="string"?h.textContent!==T&&(v.suppressHydrationWarning!==!0&&vc(h.textContent,T,r),y=["children",T]):typeof T=="number"&&h.textContent!==""+T&&(v.suppressHydrationWarning!==!0&&vc(h.textContent,T,r),y=["children",""+T]):i.hasOwnProperty(C)&&T!=null&&C==="onScroll"&&Je("scroll",h)}switch(u){case"input":Rn(h),Ql(h,v,!0);break;case"textarea":Rn(h),yy(h);break;case"select":case"option":break;default:typeof v.onClick=="function"&&(h.onclick=xc)}h=y,o.updateQueue=h,h!==null&&(o.flags|=4)}else{C=y.nodeType===9?y:y.ownerDocument,r==="http://www.w3.org/1999/xhtml"&&(r=vy(u)),r==="http://www.w3.org/1999/xhtml"?u==="script"?(r=C.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild)):typeof h.is=="string"?r=C.createElement(u,{is:h.is}):(r=C.createElement(u),u==="select"&&(C=r,h.multiple?C.multiple=!0:h.size&&(C.size=h.size))):r=C.createElementNS(r,u),r[ts]=o,r[ya]=h,Tx(r,o,!1,!1),o.stateNode=r;e:{switch(C=Bd(u,h),u){case"dialog":Je("cancel",r),Je("close",r),y=h;break;case"iframe":case"object":case"embed":Je("load",r),y=h;break;case"video":case"audio":for(y=0;y<ma.length;y++)Je(ma[y],r);y=h;break;case"source":Je("error",r),y=h;break;case"img":case"image":case"link":Je("error",r),Je("load",r),y=h;break;case"details":Je("toggle",r),y=h;break;case"input":Yl(r,h),y=Ti(r,h),Je("invalid",r);break;case"option":y=h;break;case"select":r._wrapperState={wasMultiple:!!h.multiple},y=J({},h,{value:void 0}),Je("invalid",r);break;case"textarea":py(r,h),y=Od(r,h),Je("invalid",r);break;default:y=h}Id(u,y),T=y;for(v in T)if(T.hasOwnProperty(v)){var _=T[v];v==="style"?by(r,_):v==="dangerouslySetInnerHTML"?(_=_?_.__html:void 0,_!=null&&xy(r,_)):v==="children"?typeof _=="string"?(u!=="textarea"||_!=="")&&Ko(r,_):typeof _=="number"&&Ko(r,""+_):v!=="suppressContentEditableWarning"&&v!=="suppressHydrationWarning"&&v!=="autoFocus"&&(i.hasOwnProperty(v)?_!=null&&v==="onScroll"&&Je("scroll",r):_!=null&&A(r,v,_,C))}switch(u){case"input":Rn(r),Ql(r,h,!1);break;case"textarea":Rn(r),yy(r);break;case"option":h.value!=null&&r.setAttribute("value",""+Fe(h.value));break;case"select":r.multiple=!!h.multiple,v=h.value,v!=null?Ri(r,!!h.multiple,v,!1):h.defaultValue!=null&&Ri(r,!!h.multiple,h.defaultValue,!0);break;default:typeof y.onClick=="function"&&(r.onclick=xc)}switch(u){case"button":case"input":case"select":case"textarea":h=!!h.autoFocus;break e;case"img":h=!0;break e;default:h=!1}}h&&(o.flags|=4)}o.ref!==null&&(o.flags|=512,o.flags|=2097152)}return It(o),null;case 6:if(r&&o.stateNode!=null)_x(r,o,r.memoizedProps,h);else{if(typeof h!="string"&&o.stateNode===null)throw Error(n(166));if(u=qr(ka.current),qr(ns.current),Cc(o)){if(h=o.stateNode,u=o.memoizedProps,h[ts]=o,(v=h.nodeValue!==u)&&(r=hn,r!==null))switch(r.tag){case 3:vc(h.nodeValue,u,(r.mode&1)!==0);break;case 5:r.memoizedProps.suppressHydrationWarning!==!0&&vc(h.nodeValue,u,(r.mode&1)!==0)}v&&(o.flags|=4)}else h=(u.nodeType===9?u:u.ownerDocument).createTextNode(h),h[ts]=o,o.stateNode=h}return It(o),null;case 13:if(Ze(st),h=o.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(tt&&fn!==null&&(o.mode&1)!==0&&(o.flags&128)===0)Fv(),qi(),o.flags|=98560,v=!1;else if(v=Cc(o),h!==null&&h.dehydrated!==null){if(r===null){if(!v)throw Error(n(318));if(v=o.memoizedState,v=v!==null?v.dehydrated:null,!v)throw Error(n(317));v[ts]=o}else qi(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;It(o),v=!1}else Mn!==null&&(gf(Mn),Mn=null),v=!0;if(!v)return o.flags&65536?o:null}return(o.flags&128)!==0?(o.lanes=u,o):(h=h!==null,h!==(r!==null&&r.memoizedState!==null)&&h&&(o.child.flags|=8192,(o.mode&1)!==0&&(r===null||(st.current&1)!==0?Nt===0&&(Nt=3):xf())),o.updateQueue!==null&&(o.flags|=4),It(o),null);case 4:return Qi(),rf(r,o),r===null&&pa(o.stateNode.containerInfo),It(o),null;case 10:return _h(o.type._context),It(o),null;case 17:return Xt(o.type)&&bc(),It(o),null;case 19:if(Ze(st),v=o.memoizedState,v===null)return It(o),null;if(h=(o.flags&128)!==0,C=v.rendering,C===null)if(h)Aa(v,!1);else{if(Nt!==0||r!==null&&(r.flags&128)!==0)for(r=o.child;r!==null;){if(C=_c(r),C!==null){for(o.flags|=128,Aa(v,!1),h=C.updateQueue,h!==null&&(o.updateQueue=h,o.flags|=4),o.subtreeFlags=0,h=u,u=o.child;u!==null;)v=u,r=h,v.flags&=14680066,C=v.alternate,C===null?(v.childLanes=0,v.lanes=r,v.child=null,v.subtreeFlags=0,v.memoizedProps=null,v.memoizedState=null,v.updateQueue=null,v.dependencies=null,v.stateNode=null):(v.childLanes=C.childLanes,v.lanes=C.lanes,v.child=C.child,v.subtreeFlags=0,v.deletions=null,v.memoizedProps=C.memoizedProps,v.memoizedState=C.memoizedState,v.updateQueue=C.updateQueue,v.type=C.type,r=C.dependencies,v.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),u=u.sibling;return Ye(st,st.current&1|2),o.child}r=r.sibling}v.tail!==null&&ht()>eo&&(o.flags|=128,h=!0,Aa(v,!1),o.lanes=4194304)}else{if(!h)if(r=_c(C),r!==null){if(o.flags|=128,h=!0,u=r.updateQueue,u!==null&&(o.updateQueue=u,o.flags|=4),Aa(v,!0),v.tail===null&&v.tailMode==="hidden"&&!C.alternate&&!tt)return It(o),null}else 2*ht()-v.renderingStartTime>eo&&u!==1073741824&&(o.flags|=128,h=!0,Aa(v,!1),o.lanes=4194304);v.isBackwards?(C.sibling=o.child,o.child=C):(u=v.last,u!==null?u.sibling=C:o.child=C,v.last=C)}return v.tail!==null?(o=v.tail,v.rendering=o,v.tail=o.sibling,v.renderingStartTime=ht(),o.sibling=null,u=st.current,Ye(st,h?u&1|2:u&1),o):(It(o),null);case 22:case 23:return vf(),h=o.memoizedState!==null,r!==null&&r.memoizedState!==null!==h&&(o.flags|=8192),h&&(o.mode&1)!==0?(mn&1073741824)!==0&&(It(o),o.subtreeFlags&6&&(o.flags|=8192)):It(o),null;case 24:return null;case 25:return null}throw Error(n(156,o.tag))}function $A(r,o){switch(Ch(o),o.tag){case 1:return Xt(o.type)&&bc(),r=o.flags,r&65536?(o.flags=r&-65537|128,o):null;case 3:return Qi(),Ze(Qt),Ze(Ot),Bh(),r=o.flags,(r&65536)!==0&&(r&128)===0?(o.flags=r&-65537|128,o):null;case 5:return Lh(o),null;case 13:if(Ze(st),r=o.memoizedState,r!==null&&r.dehydrated!==null){if(o.alternate===null)throw Error(n(340));qi()}return r=o.flags,r&65536?(o.flags=r&-65537|128,o):null;case 19:return Ze(st),null;case 4:return Qi(),null;case 10:return _h(o.type._context),null;case 22:case 23:return vf(),null;case 24:return null;default:return null}}var zc=!1,Bt=!1,WA=typeof WeakSet=="function"?WeakSet:Set,ue=null;function Ji(r,o){var u=r.ref;if(u!==null)if(typeof u=="function")try{u(null)}catch(h){at(r,o,h)}else u.current=null}function of(r,o,u){try{u()}catch(h){at(r,o,h)}}var Dx=!1;function HA(r,o){if(yh=ac,r=dv(),ch(r)){if("selectionStart"in r)var u={start:r.selectionStart,end:r.selectionEnd};else e:{u=(u=r.ownerDocument)&&u.defaultView||window;var h=u.getSelection&&u.getSelection();if(h&&h.rangeCount!==0){u=h.anchorNode;var y=h.anchorOffset,v=h.focusNode;h=h.focusOffset;try{u.nodeType,v.nodeType}catch{u=null;break e}var C=0,T=-1,_=-1,$=0,K=0,X=r,G=null;t:for(;;){for(var le;X!==u||y!==0&&X.nodeType!==3||(T=C+y),X!==v||h!==0&&X.nodeType!==3||(_=C+h),X.nodeType===3&&(C+=X.nodeValue.length),(le=X.firstChild)!==null;)G=X,X=le;for(;;){if(X===r)break t;if(G===u&&++$===y&&(T=C),G===v&&++K===h&&(_=C),(le=X.nextSibling)!==null)break;X=G,G=X.parentNode}X=le}u=T===-1||_===-1?null:{start:T,end:_}}else u=null}u=u||{start:0,end:0}}else u=null;for(vh={focusedElem:r,selectionRange:u},ac=!1,ue=o;ue!==null;)if(o=ue,r=o.child,(o.subtreeFlags&1028)!==0&&r!==null)r.return=o,ue=r;else for(;ue!==null;){o=ue;try{var de=o.alternate;if((o.flags&1024)!==0)switch(o.tag){case 0:case 11:case 15:break;case 1:if(de!==null){var me=de.memoizedProps,ft=de.memoizedState,z=o.stateNode,O=z.getSnapshotBeforeUpdate(o.elementType===o.type?me:Fn(o.type,me),ft);z.__reactInternalSnapshotBeforeUpdate=O}break;case 3:var U=o.stateNode.containerInfo;U.nodeType===1?U.textContent="":U.nodeType===9&&U.documentElement&&U.removeChild(U.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(te){at(o,o.return,te)}if(r=o.sibling,r!==null){r.return=o.return,ue=r;break}ue=o.return}return de=Dx,Dx=!1,de}function Pa(r,o,u){var h=o.updateQueue;if(h=h!==null?h.lastEffect:null,h!==null){var y=h=h.next;do{if((y.tag&r)===r){var v=y.destroy;y.destroy=void 0,v!==void 0&&of(o,u,v)}y=y.next}while(y!==h)}}function Uc(r,o){if(o=o.updateQueue,o=o!==null?o.lastEffect:null,o!==null){var u=o=o.next;do{if((u.tag&r)===r){var h=u.create;u.destroy=h()}u=u.next}while(u!==o)}}function af(r){var o=r.ref;if(o!==null){var u=r.stateNode;switch(r.tag){case 5:r=u;break;default:r=u}typeof o=="function"?o(r):o.current=r}}function Mx(r){var o=r.alternate;o!==null&&(r.alternate=null,Mx(o)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(o=r.stateNode,o!==null&&(delete o[ts],delete o[ya],delete o[kh],delete o[AA],delete o[PA])),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}function Fx(r){return r.tag===5||r.tag===3||r.tag===4}function Ox(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||Fx(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function lf(r,o,u){var h=r.tag;if(h===5||h===6)r=r.stateNode,o?u.nodeType===8?u.parentNode.insertBefore(r,o):u.insertBefore(r,o):(u.nodeType===8?(o=u.parentNode,o.insertBefore(r,u)):(o=u,o.appendChild(r)),u=u._reactRootContainer,u!=null||o.onclick!==null||(o.onclick=xc));else if(h!==4&&(r=r.child,r!==null))for(lf(r,o,u),r=r.sibling;r!==null;)lf(r,o,u),r=r.sibling}function cf(r,o,u){var h=r.tag;if(h===5||h===6)r=r.stateNode,o?u.insertBefore(r,o):u.appendChild(r);else if(h!==4&&(r=r.child,r!==null))for(cf(r,o,u),r=r.sibling;r!==null;)cf(r,o,u),r=r.sibling}var Rt=null,On=!1;function nr(r,o,u){for(u=u.child;u!==null;)Lx(r,o,u),u=u.sibling}function Lx(r,o,u){if(es&&typeof es.onCommitFiberUnmount=="function")try{es.onCommitFiberUnmount(tc,u)}catch{}switch(u.tag){case 5:Bt||Ji(u,o);case 6:var h=Rt,y=On;Rt=null,nr(r,o,u),Rt=h,On=y,Rt!==null&&(On?(r=Rt,u=u.stateNode,r.nodeType===8?r.parentNode.removeChild(u):r.removeChild(u)):Rt.removeChild(u.stateNode));break;case 18:Rt!==null&&(On?(r=Rt,u=u.stateNode,r.nodeType===8?bh(r.parentNode,u):r.nodeType===1&&bh(r,u),oa(r)):bh(Rt,u.stateNode));break;case 4:h=Rt,y=On,Rt=u.stateNode.containerInfo,On=!0,nr(r,o,u),Rt=h,On=y;break;case 0:case 11:case 14:case 15:if(!Bt&&(h=u.updateQueue,h!==null&&(h=h.lastEffect,h!==null))){y=h=h.next;do{var v=y,C=v.destroy;v=v.tag,C!==void 0&&((v&2)!==0||(v&4)!==0)&&of(u,o,C),y=y.next}while(y!==h)}nr(r,o,u);break;case 1:if(!Bt&&(Ji(u,o),h=u.stateNode,typeof h.componentWillUnmount=="function"))try{h.props=u.memoizedProps,h.state=u.memoizedState,h.componentWillUnmount()}catch(T){at(u,o,T)}nr(r,o,u);break;case 21:nr(r,o,u);break;case 22:u.mode&1?(Bt=(h=Bt)||u.memoizedState!==null,nr(r,o,u),Bt=h):nr(r,o,u);break;default:nr(r,o,u)}}function Ix(r){var o=r.updateQueue;if(o!==null){r.updateQueue=null;var u=r.stateNode;u===null&&(u=r.stateNode=new WA),o.forEach(function(h){var y=eP.bind(null,r,h);u.has(h)||(u.add(h),h.then(y,y))})}}function Ln(r,o){var u=o.deletions;if(u!==null)for(var h=0;h<u.length;h++){var y=u[h];try{var v=r,C=o,T=C;e:for(;T!==null;){switch(T.tag){case 5:Rt=T.stateNode,On=!1;break e;case 3:Rt=T.stateNode.containerInfo,On=!0;break e;case 4:Rt=T.stateNode.containerInfo,On=!0;break e}T=T.return}if(Rt===null)throw Error(n(160));Lx(v,C,y),Rt=null,On=!1;var _=y.alternate;_!==null&&(_.return=null),y.return=null}catch($){at(y,o,$)}}if(o.subtreeFlags&12854)for(o=o.child;o!==null;)Bx(o,r),o=o.sibling}function Bx(r,o){var u=r.alternate,h=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:if(Ln(o,r),rs(r),h&4){try{Pa(3,r,r.return),Uc(3,r)}catch(me){at(r,r.return,me)}try{Pa(5,r,r.return)}catch(me){at(r,r.return,me)}}break;case 1:Ln(o,r),rs(r),h&512&&u!==null&&Ji(u,u.return);break;case 5:if(Ln(o,r),rs(r),h&512&&u!==null&&Ji(u,u.return),r.flags&32){var y=r.stateNode;try{Ko(y,"")}catch(me){at(r,r.return,me)}}if(h&4&&(y=r.stateNode,y!=null)){var v=r.memoizedProps,C=u!==null?u.memoizedProps:v,T=r.type,_=r.updateQueue;if(r.updateQueue=null,_!==null)try{T==="input"&&v.type==="radio"&&v.name!=null&&Kl(y,v),Bd(T,C);var $=Bd(T,v);for(C=0;C<_.length;C+=2){var K=_[C],X=_[C+1];K==="style"?by(y,X):K==="dangerouslySetInnerHTML"?xy(y,X):K==="children"?Ko(y,X):A(y,K,X,$)}switch(T){case"input":Go(y,v);break;case"textarea":gy(y,v);break;case"select":var G=y._wrapperState.wasMultiple;y._wrapperState.wasMultiple=!!v.multiple;var le=v.value;le!=null?Ri(y,!!v.multiple,le,!1):G!==!!v.multiple&&(v.defaultValue!=null?Ri(y,!!v.multiple,v.defaultValue,!0):Ri(y,!!v.multiple,v.multiple?[]:"",!1))}y[ya]=v}catch(me){at(r,r.return,me)}}break;case 6:if(Ln(o,r),rs(r),h&4){if(r.stateNode===null)throw Error(n(162));y=r.stateNode,v=r.memoizedProps;try{y.nodeValue=v}catch(me){at(r,r.return,me)}}break;case 3:if(Ln(o,r),rs(r),h&4&&u!==null&&u.memoizedState.isDehydrated)try{oa(o.containerInfo)}catch(me){at(r,r.return,me)}break;case 4:Ln(o,r),rs(r);break;case 13:Ln(o,r),rs(r),y=r.child,y.flags&8192&&(v=y.memoizedState!==null,y.stateNode.isHidden=v,!v||y.alternate!==null&&y.alternate.memoizedState!==null||(hf=ht())),h&4&&Ix(r);break;case 22:if(K=u!==null&&u.memoizedState!==null,r.mode&1?(Bt=($=Bt)||K,Ln(o,r),Bt=$):Ln(o,r),rs(r),h&8192){if($=r.memoizedState!==null,(r.stateNode.isHidden=$)&&!K&&(r.mode&1)!==0)for(ue=r,K=r.child;K!==null;){for(X=ue=K;ue!==null;){switch(G=ue,le=G.child,G.tag){case 0:case 11:case 14:case 15:Pa(4,G,G.return);break;case 1:Ji(G,G.return);var de=G.stateNode;if(typeof de.componentWillUnmount=="function"){h=G,u=G.return;try{o=h,de.props=o.memoizedProps,de.state=o.memoizedState,de.componentWillUnmount()}catch(me){at(h,u,me)}}break;case 5:Ji(G,G.return);break;case 22:if(G.memoizedState!==null){Ux(X);continue}}le!==null?(le.return=G,ue=le):Ux(X)}K=K.sibling}e:for(K=null,X=r;;){if(X.tag===5){if(K===null){K=X;try{y=X.stateNode,$?(v=y.style,typeof v.setProperty=="function"?v.setProperty("display","none","important"):v.display="none"):(T=X.stateNode,_=X.memoizedProps.style,C=_!=null&&_.hasOwnProperty("display")?_.display:null,T.style.display=wy("display",C))}catch(me){at(r,r.return,me)}}}else if(X.tag===6){if(K===null)try{X.stateNode.nodeValue=$?"":X.memoizedProps}catch(me){at(r,r.return,me)}}else if((X.tag!==22&&X.tag!==23||X.memoizedState===null||X===r)&&X.child!==null){X.child.return=X,X=X.child;continue}if(X===r)break e;for(;X.sibling===null;){if(X.return===null||X.return===r)break e;K===X&&(K=null),X=X.return}K===X&&(K=null),X.sibling.return=X.return,X=X.sibling}}break;case 19:Ln(o,r),rs(r),h&4&&Ix(r);break;case 21:break;default:Ln(o,r),rs(r)}}function rs(r){var o=r.flags;if(o&2){try{e:{for(var u=r.return;u!==null;){if(Fx(u)){var h=u;break e}u=u.return}throw Error(n(160))}switch(h.tag){case 5:var y=h.stateNode;h.flags&32&&(Ko(y,""),h.flags&=-33);var v=Ox(r);cf(r,v,y);break;case 3:case 4:var C=h.stateNode.containerInfo,T=Ox(r);lf(r,T,C);break;default:throw Error(n(161))}}catch(_){at(r,r.return,_)}r.flags&=-3}o&4096&&(r.flags&=-4097)}function qA(r,o,u){ue=r,Vx(r)}function Vx(r,o,u){for(var h=(r.mode&1)!==0;ue!==null;){var y=ue,v=y.child;if(y.tag===22&&h){var C=y.memoizedState!==null||zc;if(!C){var T=y.alternate,_=T!==null&&T.memoizedState!==null||Bt;T=zc;var $=Bt;if(zc=C,(Bt=_)&&!$)for(ue=y;ue!==null;)C=ue,_=C.child,C.tag===22&&C.memoizedState!==null?$x(y):_!==null?(_.return=C,ue=_):$x(y);for(;v!==null;)ue=v,Vx(v),v=v.sibling;ue=y,zc=T,Bt=$}zx(r)}else(y.subtreeFlags&8772)!==0&&v!==null?(v.return=y,ue=v):zx(r)}}function zx(r){for(;ue!==null;){var o=ue;if((o.flags&8772)!==0){var u=o.alternate;try{if((o.flags&8772)!==0)switch(o.tag){case 0:case 11:case 15:Bt||Uc(5,o);break;case 1:var h=o.stateNode;if(o.flags&4&&!Bt)if(u===null)h.componentDidMount();else{var y=o.elementType===o.type?u.memoizedProps:Fn(o.type,u.memoizedProps);h.componentDidUpdate(y,u.memoizedState,h.__reactInternalSnapshotBeforeUpdate)}var v=o.updateQueue;v!==null&&Uv(o,v,h);break;case 3:var C=o.updateQueue;if(C!==null){if(u=null,o.child!==null)switch(o.child.tag){case 5:u=o.child.stateNode;break;case 1:u=o.child.stateNode}Uv(o,C,u)}break;case 5:var T=o.stateNode;if(u===null&&o.flags&4){u=T;var _=o.memoizedProps;switch(o.type){case"button":case"input":case"select":case"textarea":_.autoFocus&&u.focus();break;case"img":_.src&&(u.src=_.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(o.memoizedState===null){var $=o.alternate;if($!==null){var K=$.memoizedState;if(K!==null){var X=K.dehydrated;X!==null&&oa(X)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}Bt||o.flags&512&&af(o)}catch(G){at(o,o.return,G)}}if(o===r){ue=null;break}if(u=o.sibling,u!==null){u.return=o.return,ue=u;break}ue=o.return}}function Ux(r){for(;ue!==null;){var o=ue;if(o===r){ue=null;break}var u=o.sibling;if(u!==null){u.return=o.return,ue=u;break}ue=o.return}}function $x(r){for(;ue!==null;){var o=ue;try{switch(o.tag){case 0:case 11:case 15:var u=o.return;try{Uc(4,o)}catch(_){at(o,u,_)}break;case 1:var h=o.stateNode;if(typeof h.componentDidMount=="function"){var y=o.return;try{h.componentDidMount()}catch(_){at(o,y,_)}}var v=o.return;try{af(o)}catch(_){at(o,v,_)}break;case 5:var C=o.return;try{af(o)}catch(_){at(o,C,_)}}}catch(_){at(o,o.return,_)}if(o===r){ue=null;break}var T=o.sibling;if(T!==null){T.return=o.return,ue=T;break}ue=o.return}}var GA=Math.ceil,$c=E.ReactCurrentDispatcher,uf=E.ReactCurrentOwner,Nn=E.ReactCurrentBatchConfig,Be=0,At=null,yt=null,_t=0,mn=0,Zi=Xs(0),Nt=0,Ea=null,Yr=0,Wc=0,df=0,Ta=null,Zt=null,hf=0,eo=1/0,Es=null,Hc=!1,ff=null,sr=null,qc=!1,rr=null,Gc=0,Ra=0,mf=null,Yc=-1,Kc=0;function Gt(){return(Be&6)!==0?ht():Yc!==-1?Yc:Yc=ht()}function ir(r){return(r.mode&1)===0?1:(Be&2)!==0&&_t!==0?_t&-_t:TA.transition!==null?(Kc===0&&(Kc=Oy()),Kc):(r=We,r!==0||(r=window.event,r=r===void 0?16:Hy(r.type)),r)}function In(r,o,u,h){if(50<Ra)throw Ra=0,mf=null,Error(n(185));ta(r,u,h),((Be&2)===0||r!==At)&&(r===At&&((Be&2)===0&&(Wc|=u),Nt===4&&or(r,_t)),en(r,h),u===1&&Be===0&&(o.mode&1)===0&&(eo=ht()+500,Sc&&Zs()))}function en(r,o){var u=r.callbackNode;T2(r,o);var h=rc(r,r===At?_t:0);if(h===0)u!==null&&Dy(u),r.callbackNode=null,r.callbackPriority=0;else if(o=h&-h,r.callbackPriority!==o){if(u!=null&&Dy(u),o===1)r.tag===0?EA(Hx.bind(null,r)):Tv(Hx.bind(null,r)),jA(function(){(Be&6)===0&&Zs()}),u=null;else{switch(Ly(h)){case 1:u=qd;break;case 4:u=My;break;case 16:u=ec;break;case 536870912:u=Fy;break;default:u=ec}u=Zx(u,Wx.bind(null,r))}r.callbackPriority=o,r.callbackNode=u}}function Wx(r,o){if(Yc=-1,Kc=0,(Be&6)!==0)throw Error(n(327));var u=r.callbackNode;if(to()&&r.callbackNode!==u)return null;var h=rc(r,r===At?_t:0);if(h===0)return null;if((h&30)!==0||(h&r.expiredLanes)!==0||o)o=Qc(r,h);else{o=h;var y=Be;Be|=2;var v=Gx();(At!==r||_t!==o)&&(Es=null,eo=ht()+500,Qr(r,o));do try{QA();break}catch(T){qx(r,T)}while(!0);Rh(),$c.current=v,Be=y,yt!==null?o=0:(At=null,_t=0,o=Nt)}if(o!==0){if(o===2&&(y=Gd(r),y!==0&&(h=y,o=pf(r,y))),o===1)throw u=Ea,Qr(r,0),or(r,h),en(r,ht()),u;if(o===6)or(r,h);else{if(y=r.current.alternate,(h&30)===0&&!YA(y)&&(o=Qc(r,h),o===2&&(v=Gd(r),v!==0&&(h=v,o=pf(r,v))),o===1))throw u=Ea,Qr(r,0),or(r,h),en(r,ht()),u;switch(r.finishedWork=y,r.finishedLanes=h,o){case 0:case 1:throw Error(n(345));case 2:Xr(r,Zt,Es);break;case 3:if(or(r,h),(h&130023424)===h&&(o=hf+500-ht(),10<o)){if(rc(r,0)!==0)break;if(y=r.suspendedLanes,(y&h)!==h){Gt(),r.pingedLanes|=r.suspendedLanes&y;break}r.timeoutHandle=wh(Xr.bind(null,r,Zt,Es),o);break}Xr(r,Zt,Es);break;case 4:if(or(r,h),(h&4194240)===h)break;for(o=r.eventTimes,y=-1;0<h;){var C=31-_n(h);v=1<<C,C=o[C],C>y&&(y=C),h&=~v}if(h=y,h=ht()-h,h=(120>h?120:480>h?480:1080>h?1080:1920>h?1920:3e3>h?3e3:4320>h?4320:1960*GA(h/1960))-h,10<h){r.timeoutHandle=wh(Xr.bind(null,r,Zt,Es),h);break}Xr(r,Zt,Es);break;case 5:Xr(r,Zt,Es);break;default:throw Error(n(329))}}}return en(r,ht()),r.callbackNode===u?Wx.bind(null,r):null}function pf(r,o){var u=Ta;return r.current.memoizedState.isDehydrated&&(Qr(r,o).flags|=256),r=Qc(r,o),r!==2&&(o=Zt,Zt=u,o!==null&&gf(o)),r}function gf(r){Zt===null?Zt=r:Zt.push.apply(Zt,r)}function YA(r){for(var o=r;;){if(o.flags&16384){var u=o.updateQueue;if(u!==null&&(u=u.stores,u!==null))for(var h=0;h<u.length;h++){var y=u[h],v=y.getSnapshot;y=y.value;try{if(!Dn(v(),y))return!1}catch{return!1}}}if(u=o.child,o.subtreeFlags&16384&&u!==null)u.return=o,o=u;else{if(o===r)break;for(;o.sibling===null;){if(o.return===null||o.return===r)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}}return!0}function or(r,o){for(o&=~df,o&=~Wc,r.suspendedLanes|=o,r.pingedLanes&=~o,r=r.expirationTimes;0<o;){var u=31-_n(o),h=1<<u;r[u]=-1,o&=~h}}function Hx(r){if((Be&6)!==0)throw Error(n(327));to();var o=rc(r,0);if((o&1)===0)return en(r,ht()),null;var u=Qc(r,o);if(r.tag!==0&&u===2){var h=Gd(r);h!==0&&(o=h,u=pf(r,h))}if(u===1)throw u=Ea,Qr(r,0),or(r,o),en(r,ht()),u;if(u===6)throw Error(n(345));return r.finishedWork=r.current.alternate,r.finishedLanes=o,Xr(r,Zt,Es),en(r,ht()),null}function yf(r,o){var u=Be;Be|=1;try{return r(o)}finally{Be=u,Be===0&&(eo=ht()+500,Sc&&Zs())}}function Kr(r){rr!==null&&rr.tag===0&&(Be&6)===0&&to();var o=Be;Be|=1;var u=Nn.transition,h=We;try{if(Nn.transition=null,We=1,r)return r()}finally{We=h,Nn.transition=u,Be=o,(Be&6)===0&&Zs()}}function vf(){mn=Zi.current,Ze(Zi)}function Qr(r,o){r.finishedWork=null,r.finishedLanes=0;var u=r.timeoutHandle;if(u!==-1&&(r.timeoutHandle=-1,NA(u)),yt!==null)for(u=yt.return;u!==null;){var h=u;switch(Ch(h),h.tag){case 1:h=h.type.childContextTypes,h!=null&&bc();break;case 3:Qi(),Ze(Qt),Ze(Ot),Bh();break;case 5:Lh(h);break;case 4:Qi();break;case 13:Ze(st);break;case 19:Ze(st);break;case 10:_h(h.type._context);break;case 22:case 23:vf()}u=u.return}if(At=r,yt=r=ar(r.current,null),_t=mn=o,Nt=0,Ea=null,df=Wc=Yr=0,Zt=Ta=null,Hr!==null){for(o=0;o<Hr.length;o++)if(u=Hr[o],h=u.interleaved,h!==null){u.interleaved=null;var y=h.next,v=u.pending;if(v!==null){var C=v.next;v.next=y,h.next=C}u.pending=h}Hr=null}return r}function qx(r,o){do{var u=yt;try{if(Rh(),Dc.current=Lc,Mc){for(var h=rt.memoizedState;h!==null;){var y=h.queue;y!==null&&(y.pending=null),h=h.next}Mc=!1}if(Gr=0,Ct=St=rt=null,Sa=!1,Na=0,uf.current=null,u===null||u.return===null){Nt=1,Ea=o,yt=null;break}e:{var v=r,C=u.return,T=u,_=o;if(o=_t,T.flags|=32768,_!==null&&typeof _=="object"&&typeof _.then=="function"){var $=_,K=T,X=K.tag;if((K.mode&1)===0&&(X===0||X===11||X===15)){var G=K.alternate;G?(K.updateQueue=G.updateQueue,K.memoizedState=G.memoizedState,K.lanes=G.lanes):(K.updateQueue=null,K.memoizedState=null)}var le=yx(C);if(le!==null){le.flags&=-257,vx(le,C,T,v,o),le.mode&1&&gx(v,$,o),o=le,_=$;var de=o.updateQueue;if(de===null){var me=new Set;me.add(_),o.updateQueue=me}else de.add(_);break e}else{if((o&1)===0){gx(v,$,o),xf();break e}_=Error(n(426))}}else if(tt&&T.mode&1){var ft=yx(C);if(ft!==null){(ft.flags&65536)===0&&(ft.flags|=256),vx(ft,C,T,v,o),Eh(Xi(_,T));break e}}v=_=Xi(_,T),Nt!==4&&(Nt=2),Ta===null?Ta=[v]:Ta.push(v),v=C;do{switch(v.tag){case 3:v.flags|=65536,o&=-o,v.lanes|=o;var z=mx(v,_,o);zv(v,z);break e;case 1:T=_;var O=v.type,U=v.stateNode;if((v.flags&128)===0&&(typeof O.getDerivedStateFromError=="function"||U!==null&&typeof U.componentDidCatch=="function"&&(sr===null||!sr.has(U)))){v.flags|=65536,o&=-o,v.lanes|=o;var te=px(v,T,o);zv(v,te);break e}}v=v.return}while(v!==null)}Kx(u)}catch(ge){o=ge,yt===u&&u!==null&&(yt=u=u.return);continue}break}while(!0)}function Gx(){var r=$c.current;return $c.current=Lc,r===null?Lc:r}function xf(){(Nt===0||Nt===3||Nt===2)&&(Nt=4),At===null||(Yr&268435455)===0&&(Wc&268435455)===0||or(At,_t)}function Qc(r,o){var u=Be;Be|=2;var h=Gx();(At!==r||_t!==o)&&(Es=null,Qr(r,o));do try{KA();break}catch(y){qx(r,y)}while(!0);if(Rh(),Be=u,$c.current=h,yt!==null)throw Error(n(261));return At=null,_t=0,Nt}function KA(){for(;yt!==null;)Yx(yt)}function QA(){for(;yt!==null&&!b2();)Yx(yt)}function Yx(r){var o=Jx(r.alternate,r,mn);r.memoizedProps=r.pendingProps,o===null?Kx(r):yt=o,uf.current=null}function Kx(r){var o=r;do{var u=o.alternate;if(r=o.return,(o.flags&32768)===0){if(u=UA(u,o,mn),u!==null){yt=u;return}}else{if(u=$A(u,o),u!==null){u.flags&=32767,yt=u;return}if(r!==null)r.flags|=32768,r.subtreeFlags=0,r.deletions=null;else{Nt=6,yt=null;return}}if(o=o.sibling,o!==null){yt=o;return}yt=o=r}while(o!==null);Nt===0&&(Nt=5)}function Xr(r,o,u){var h=We,y=Nn.transition;try{Nn.transition=null,We=1,XA(r,o,u,h)}finally{Nn.transition=y,We=h}return null}function XA(r,o,u,h){do to();while(rr!==null);if((Be&6)!==0)throw Error(n(327));u=r.finishedWork;var y=r.finishedLanes;if(u===null)return null;if(r.finishedWork=null,r.finishedLanes=0,u===r.current)throw Error(n(177));r.callbackNode=null,r.callbackPriority=0;var v=u.lanes|u.childLanes;if(R2(r,v),r===At&&(yt=At=null,_t=0),(u.subtreeFlags&2064)===0&&(u.flags&2064)===0||qc||(qc=!0,Zx(ec,function(){return to(),null})),v=(u.flags&15990)!==0,(u.subtreeFlags&15990)!==0||v){v=Nn.transition,Nn.transition=null;var C=We;We=1;var T=Be;Be|=4,uf.current=null,HA(r,u),Bx(u,r),yA(vh),ac=!!yh,vh=yh=null,r.current=u,qA(u),k2(),Be=T,We=C,Nn.transition=v}else r.current=u;if(qc&&(qc=!1,rr=r,Gc=y),v=r.pendingLanes,v===0&&(sr=null),j2(u.stateNode),en(r,ht()),o!==null)for(h=r.onRecoverableError,u=0;u<o.length;u++)y=o[u],h(y.value,{componentStack:y.stack,digest:y.digest});if(Hc)throw Hc=!1,r=ff,ff=null,r;return(Gc&1)!==0&&r.tag!==0&&to(),v=r.pendingLanes,(v&1)!==0?r===mf?Ra++:(Ra=0,mf=r):Ra=0,Zs(),null}function to(){if(rr!==null){var r=Ly(Gc),o=Nn.transition,u=We;try{if(Nn.transition=null,We=16>r?16:r,rr===null)var h=!1;else{if(r=rr,rr=null,Gc=0,(Be&6)!==0)throw Error(n(331));var y=Be;for(Be|=4,ue=r.current;ue!==null;){var v=ue,C=v.child;if((ue.flags&16)!==0){var T=v.deletions;if(T!==null){for(var _=0;_<T.length;_++){var $=T[_];for(ue=$;ue!==null;){var K=ue;switch(K.tag){case 0:case 11:case 15:Pa(8,K,v)}var X=K.child;if(X!==null)X.return=K,ue=X;else for(;ue!==null;){K=ue;var G=K.sibling,le=K.return;if(Mx(K),K===$){ue=null;break}if(G!==null){G.return=le,ue=G;break}ue=le}}}var de=v.alternate;if(de!==null){var me=de.child;if(me!==null){de.child=null;do{var ft=me.sibling;me.sibling=null,me=ft}while(me!==null)}}ue=v}}if((v.subtreeFlags&2064)!==0&&C!==null)C.return=v,ue=C;else e:for(;ue!==null;){if(v=ue,(v.flags&2048)!==0)switch(v.tag){case 0:case 11:case 15:Pa(9,v,v.return)}var z=v.sibling;if(z!==null){z.return=v.return,ue=z;break e}ue=v.return}}var O=r.current;for(ue=O;ue!==null;){C=ue;var U=C.child;if((C.subtreeFlags&2064)!==0&&U!==null)U.return=C,ue=U;else e:for(C=O;ue!==null;){if(T=ue,(T.flags&2048)!==0)try{switch(T.tag){case 0:case 11:case 15:Uc(9,T)}}catch(ge){at(T,T.return,ge)}if(T===C){ue=null;break e}var te=T.sibling;if(te!==null){te.return=T.return,ue=te;break e}ue=T.return}}if(Be=y,Zs(),es&&typeof es.onPostCommitFiberRoot=="function")try{es.onPostCommitFiberRoot(tc,r)}catch{}h=!0}return h}finally{We=u,Nn.transition=o}}return!1}function Qx(r,o,u){o=Xi(u,o),o=mx(r,o,1),r=tr(r,o,1),o=Gt(),r!==null&&(ta(r,1,o),en(r,o))}function at(r,o,u){if(r.tag===3)Qx(r,r,u);else for(;o!==null;){if(o.tag===3){Qx(o,r,u);break}else if(o.tag===1){var h=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof h.componentDidCatch=="function"&&(sr===null||!sr.has(h))){r=Xi(u,r),r=px(o,r,1),o=tr(o,r,1),r
vendor: 4,232 bytes, line 40
40=Gt(),o!==null&&(ta(o,1,r),en(o,r));break}}o=o.return}}function JA(r,o,u){var h=r.pingCache;h!==null&&h.delete(o),o=Gt(),r.pingedLanes|=r.suspendedLanes&u,At===r&&(_t&u)===u&&(Nt===4||Nt===3&&(_t&130023424)===_t&&500>ht()-hf?Qr(r,0):df|=u),en(r,o)}function Xx(r,o){o===0&&((r.mode&1)===0?o=1:(o=sc,sc<<=1,(sc&130023424)===0&&(sc=4194304)));var u=Gt();r=Cs(r,o),r!==null&&(ta(r,o,u),en(r,u))}function ZA(r){var o=r.memoizedState,u=0;o!==null&&(u=o.retryLane),Xx(r,u)}function eP(r,o){var u=0;switch(r.tag){case 13:var h=r.stateNode,y=r.memoizedState;y!==null&&(u=y.retryLane);break;case 19:h=r.stateNode;break;default:throw Error(n(314))}h!==null&&h.delete(o),Xx(r,u)}var Jx;Jx=function(r,o,u){if(r!==null)if(r.memoizedProps!==o.pendingProps||Qt.current)Jt=!0;else{if((r.lanes&u)===0&&(o.flags&128)===0)return Jt=!1,zA(r,o,u);Jt=(r.flags&131072)!==0}else Jt=!1,tt&&(o.flags&1048576)!==0&&Rv(o,jc,o.index);switch(o.lanes=0,o.tag){case 2:var h=o.type;Vc(r,o),r=o.pendingProps;var y=$i(o,Ot.current);Ki(o,u),y=Uh(null,o,h,r,y,u);var v=$h();return o.flags|=1,typeof y=="object"&&y!==null&&typeof y.render=="function"&&y.$$typeof===void 0?(o.tag=1,o.memoizedState=null,o.updateQueue=null,Xt(h)?(v=!0,kc(o)):v=!1,o.memoizedState=y.state!==null&&y.state!==void 0?y.state:null,Fh(o),y.updater=Ic,o.stateNode=y,y._reactInternals=o,Kh(o,h,r,u),o=Zh(null,o,h,!0,v,u)):(o.tag=0,tt&&v&&jh(o),qt(null,o,y,u),o=o.child),o;case 16:h=o.elementType;e:{switch(Vc(r,o),r=o.pendingProps,y=h._init,h=y(h._payload),o.type=h,y=o.tag=nP(h),r=Fn(h,r),y){case 0:o=Jh(null,o,h,r,u);break e;case 1:o=Nx(null,o,h,r,u);break e;case 11:o=xx(null,o,h,r,u);break e;case 14:o=wx(null,o,h,Fn(h.type,r),u);break e}throw Error(n(306,h,""))}return o;case 0:return h=o.type,y=o.pendingProps,y=o.elementType===h?y:Fn(h,y),Jh(r,o,h,y,u);case 1:return h=o.type,y=o.pendingProps,y=o.elementType===h?y:Fn(h,y),Nx(r,o,h,y,u);case 3:e:{if(jx(o),r===null)throw Error(n(387));h=o.pendingProps,v=o.memoizedState,y=v.element,Vv(r,o),Rc(o,h,null,u);var C=o.memoizedState;if(h=C.element,v.isDehydrated)if(v={element:h,isDehydrated:!1,cache:C.cache,pendingSuspenseBoundaries:C.pendingSuspenseBoundaries,transitions:C.transitions},o.updateQueue.baseState=v,o.memoizedState=v,o.flags&256){y=Xi(Error(n(423)),o),o=Cx(r,o,h,u,y);break e}else if(h!==y){y=Xi(Error(n(424)),o),o=Cx(r,o,h,u,y);break e}else for(fn=Qs(o.stateNode.containerInfo.firstChild),hn=o,tt=!0,Mn=null,u=Iv(o,null,h,u),o.child=u;u;)u.flags=u.flags&-3|4096,u=u.sibling;else{if(qi(),h===y){o=Ps(r,o,u);break e}qt(r,o,h,u)}o=o.child}return o;case 5:return $v(o),r===null&&Ph(o),h=o.type,y=o.pendingProps,v=r!==null?r.memoizedProps:null,C=y.children,xh(h,y)?C=null:v!==null&&xh(h,v)&&(o.flags|=32),Sx(r,o),qt(r,o,C,u),o.child;case 6:return r===null&&Ph(o),null;case 13:return Ax(r,o,u);case 4:return Oh(o,o.stateNode.containerInfo),h=o.pendingProps,r===null?o.child=Gi(o,null,h,u):qt(r,o,h,u),o.child;case 11:return h=o.type,y=o.pendingProps,y=o.elementType===h?y:Fn(h,y),xx(r,o,h,y,u);case 7:return qt(r,o,o.pendingProps,u),o.child;case 8:return qt(r,o,o.pendingProps.children,u),o.child;case 12:return qt(r,o,o.pendingProps.children,u),o.child;case 10:e:{if(h=o.type._context,y=o.pendingProps,v=o.memoizedProps,C=y.value,Ye(Pc,h._currentValue),h._currentValue=C,v!==null)if(Dn(v.value,C)){if(v.children===y.children&&!Qt.current){o=Ps(r,o,u);break e}}else for(v=o.child,v!==null&&(v.return=o);v!==null;){var T=v.dependencies;if(T!==null){C=v.child;for(var _=T.firstContext;_!==null;){if(_.context===h){if(v.tag===1){_=As(-1,u&-u),_.tag=2;var $=v.updateQueue;if($!==null){$=$.shared;var K=$.pending;K===null?_.next=_:(_.next=K.next,K.next=_),$.pending=_}}v.lanes|=u,_=v.alternate,_!==null&&(_.lanes|=u),Dh(v.return,u,o),T.lanes|=u;break}_=_.next}}else if(v.tag===10)C=v.type===o.type?null:v.child;else if(v.tag===18){if(C=v.return,C===null)throw Error(n(341));C.lanes|=u,T=C.alternate,T!==null&&(T.lanes|=u),Dh(C,u,o),C=v.sibling}else C=v.child;if(C!==null)C.return=v;else for(C=v;C!==null;){if(C===o){C=null;break}if(v=C.sibling,v!==null){v.return=C.return,C=v;break}C=C.return}v=C}qt(r,o,y.children,u),o=o.child}return o;case 9:return y=o.type,h=o.pendingProps.children,Ki(o,u),y=kn(y),h=h(y),o.flags|=1,qt(r,o,h,u),o.child;
vendor: 8,051 bytes, line 40
40case 14:return h=o.type,y=Fn(h,o.pendingProps),y=Fn(h.type,y),wx(r,o,h,y,u);case 15:return bx(r,o,o.type,o.pendingProps,u);case 17:return h=o.type,y=o.pendingProps,y=o.elementType===h?y:Fn(h,y),Vc(r,o),o.tag=1,Xt(h)?(r=!0,kc(o)):r=!1,Ki(o,u),hx(o,h,y),Kh(o,h,y,u),Zh(null,o,h,!0,r,u);case 19:return Ex(r,o,u);case 22:return kx(r,o,u)}throw Error(n(156,o.tag))};function Zx(r,o){return _y(r,o)}function tP(r,o,u,h){this.tag=r,this.key=u,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=h,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function jn(r,o,u,h){return new tP(r,o,u,h)}function wf(r){return r=r.prototype,!(!r||!r.isReactComponent)}function nP(r){if(typeof r=="function")return wf(r)?1:0;if(r!=null){if(r=r.$$typeof,r===ie)return 11;if(r===oe)return 14}return 2}function ar(r,o){var u=r.alternate;return u===null?(u=jn(r.tag,o,r.key,r.mode),u.elementType=r.elementType,u.type=r.type,u.stateNode=r.stateNode,u.alternate=r,r.alternate=u):(u.pendingProps=o,u.type=r.type,u.flags=0,u.subtreeFlags=0,u.deletions=null),u.flags=r.flags&14680064,u.childLanes=r.childLanes,u.lanes=r.lanes,u.child=r.child,u.memoizedProps=r.memoizedProps,u.memoizedState=r.memoizedState,u.updateQueue=r.updateQueue,o=r.dependencies,u.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},u.sibling=r.sibling,u.index=r.index,u.ref=r.ref,u}function Xc(r,o,u,h,y,v){var C=2;if(h=r,typeof r=="function")wf(r)&&(C=1);else if(typeof r=="string")C=5;else e:switch(r){case B:return Jr(u.children,y,v,o);case L:C=8,y|=8;break;case ne:return r=jn(12,u,o,y|2),r.elementType=ne,r.lanes=v,r;case I:return r=jn(13,u,o,y),r.elementType=I,r.lanes=v,r;case Y:return r=jn(19,u,o,y),r.elementType=Y,r.lanes=v,r;case H:return Jc(u,y,v,o);default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case Q:C=10;break e;case re:C=9;break e;case ie:C=11;break e;case oe:C=14;break e;case ee:C=16,h=null;break e}throw Error(n(130,r==null?r:typeof r,""))}return o=jn(C,u,o,y),o.elementType=r,o.type=h,o.lanes=v,o}function Jr(r,o,u,h){return r=jn(7,r,h,o),r.lanes=u,r}function Jc(r,o,u,h){return r=jn(22,r,h,o),r.elementType=H,r.lanes=u,r.stateNode={isHidden:!1},r}function bf(r,o,u){return r=jn(6,r,null,o),r.lanes=u,r}function kf(r,o,u){return o=jn(4,r.children!==null?r.children:[],r.key,o),o.lanes=u,o.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},o}function sP(r,o,u,h,y){this.tag=o,this.containerInfo=r,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Yd(0),this.expirationTimes=Yd(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Yd(0),this.identifierPrefix=h,this.onRecoverableError=y,this.mutableSourceEagerHydrationData=null}function Sf(r,o,u,h,y,v,C,T,_){return r=new sP(r,o,u,T,_),o===1?(o=1,v===!0&&(o|=8)):o=0,v=jn(3,null,null,o),r.current=v,v.stateNode=r,v.memoizedState={element:h,isDehydrated:u,cache:null,transitions:null,pendingSuspenseBoundaries:null},Fh(v),r}function rP(r,o,u){var h=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:V,key:h==null?null:""+h,children:r,containerInfo:o,implementation:u}}function e0(r){if(!r)return Js;r=r._reactInternals;e:{if(Vr(r)!==r||r.tag!==1)throw Error(n(170));var o=r;do{switch(o.tag){case 3:o=o.stateNode.context;break e;case 1:if(Xt(o.type)){o=o.stateNode.__reactInternalMemoizedMergedChildContext;break e}}o=o.return}while(o!==null);throw Error(n(171))}if(r.tag===1){var u=r.type;if(Xt(u))return Pv(r,u,o)}return o}function t0(r,o,u,h,y,v,C,T,_){return r=Sf(u,h,!0,r,y,v,C,T,_),r.context=e0(null),u=r.current,h=Gt(),y=ir(u),v=As(h,y),v.callback=o??null,tr(u,v,y),r.current.lanes=y,ta(r,y,h),en(r,h),r}function Zc(r,o,u,h){var y=o.current,v=Gt(),C=ir(y);return u=e0(u),o.context===null?o.context=u:o.pendingContext=u,o=As(v,C),o.payload={element:r},h=h===void 0?null:h,h!==null&&(o.callback=h),r=tr(y,o,C),r!==null&&(In(r,y,C,v),Tc(r,y,C)),C}function eu(r){if(r=r.current,!r.child)return null;switch(r.child.tag){case 5:return r.child.stateNode;default:return r.child.stateNode}}function n0(r,o){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var u=r.retryLane;r.retryLane=u!==0&&u<o?u:o}}function Nf(r,o){n0(r,o),(r=r.alternate)&&n0(r,o)}function iP(){return null}var s0=typeof reportError=="function"?reportError:function(r){console.error(r)};function jf(r){this._internalRoot=r}tu.prototype.render=jf.prototype.render=function(r){var o=this._internalRoot;if(o===null)throw Error(n(409));Zc(r,o,null,null)},tu.prototype.unmount=jf.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var o=r.containerInfo;Kr(function(){Zc(null,r,null,null)}),o[ks]=null}};function tu(r){this._internalRoot=r}tu.prototype.unstable_scheduleHydration=function(r){if(r){var o=Vy();r={blockedOn:null,target:r,priority:o};for(var u=0;u<Gs.length&&o!==0&&o<Gs[u].priority;u++);Gs.splice(u,0,r),u===0&&$y(r)}};function Cf(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function nu(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11&&(r.nodeType!==8||r.nodeValue!==" react-mount-point-unstable "))}function r0(){}function oP(r,o,u,h,y){if(y){if(typeof h=="function"){var v=h;h=function(){var $=eu(C);v.call($)}}var C=t0(o,h,r,0,null,!1,!1,"",r0);return r._reactRootContainer=C,r[ks]=C.current,pa(r.nodeType===8?r.parentNode:r),Kr(),C}for(;y=r.lastChild;)r.removeChild(y);if(typeof h=="function"){var T=h;h=function(){var $=eu(_);T.call($)}}var _=Sf(r,0,!1,null,null,!1,!1,"",r0);return r._reactRootContainer=_,r[ks]=_.current,pa(r.nodeType===8?r.parentNode:r),Kr(function(){Zc(o,_,u,h)}),_}function su(r,o,u,h,y){var v=u._reactRootContainer;if(v){var C=v;if(typeof y=="function"){var T=y;y=function(){var _=eu(C);T.call(_)}}Zc(o,C,r,y)}else C=oP(u,o,r,y,h);return eu(C)}Iy=function(r){switch(r.tag){case 3:var o=r.stateNode;if(o.current.memoizedState.isDehydrated){var u=ea(o.pendingLanes);u!==0&&(Kd(o,u|1),en(o,ht()),(Be&6)===0&&(eo=ht()+500,Zs()))}break;case 13:Kr(function(){var h=Cs(r,1);if(h!==null){var y=Gt();In(h,r,1,y)}}),Nf(r,1)}},Qd=function(r){if(r.tag===13){var o=Cs(r,134217728);if(o!==null){var u=Gt();In(o,r,134217728,u)}Nf(r,134217728)}},By=function(r){if(r.tag===13){var o=ir(r),u=Cs(r,o);if(u!==null){var h=Gt();In(u,r,o,h)}Nf(r,o)}},Vy=function(){return We},zy=function(r,o){var u=We;try{return We=r,o()}finally{We=u}},Ud=function(r,o,u){switch(o){case"input":if(Go(r,u),o=u.name,u.type==="radio"&&o!=null){for(u=r;u.parentNode;)u=u.parentNode;for(u=u.querySelectorAll("input[name="+JSON.stringify(""+o)+'][type="radio"]'),o=0;o<u.length;o++){var h=u[o];if(h!==r&&h.form===r.form){var y=wc(h);if(!y)throw Error(n(90));Jn(h),Go(h,y)}}}break;case"textarea":gy(r,u);break;case"select":o=u.value,o!=null&&Ri(r,!!u.multiple,o,!1)}},jy=yf,Cy=Kr;var aP={usingClientEntryPoint:!1,Events:[va,zi,wc,Sy,Ny,yf]},_a={findFiberByHostInstance:zr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},lP={bundleType:_a.bundleType,version:_a.version,rendererPackageName:_a.rendererPackageName,rendererConfig:_a.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:E.ReactCurrentDispatcher,findHostInstanceByFiber:function(r){return r=Ty(r),r===null?null:r.stateNode},findFiberByHostInstance:_a.findFiberByHostInstance||iP,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};
40if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ru=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ru.isDisabled&&ru.supportsFiber)try{tc=ru.inject(lP),es=ru}catch{}}return tn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=aP,tn.createPortal=function(r,o){var u=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Cf(o))throw Error(n(200));return rP(r,o,null,u)},tn.createRoot=function(r,o){if(!Cf(r))throw Error(n(299));var u=!1,h="",y=s0;return o!=null&&(o.unstable_strictMode===!0&&(u=!0),o.identifierPrefix!==void 0&&(h=o.identifierPrefix),o.onRecoverableError!==void 0&&(y=o.onRecoverableError)),o=Sf(r,1,!1,null,null,u,!1,h,y),r[ks]=o.current,pa(r.nodeType===8?r.parentNode:r),new jf(o)},tn.findDOMNode=function(r){if(r==null)return null;if(r.nodeType===1)return r;var o=r._reactInternals;if(o===void 0)throw typeof r.render=="function"?Error(n(188)):(r=Object.keys(r).join(","),Error(n(268,r)));return r=Ty(o),r=r===null?null:r.stateNode,r},tn.flushSync=function(r){return Kr(r)},tn.hydrate=function(r,o,u){if(!nu(o))throw Error(n(200));return su(null,r,o,!0,u)},tn.hydrateRoot=function(r,o,u){if(!Cf(r))throw Error(n(405));var h=u!=null&&u.hydratedSources||null,y=!1,v="",C=s0;if(u!=null&&(u.unstable_strictMode===!0&&(y=!0),u.identifierPrefix!==void 0&&(v=u.identifierPrefix),u.onRecoverableError!==void 0&&(C=u.onRecoverableError)),o=t0(o,null,r,1,u??null,y,!1,v,C),r[ks]=o.current,pa(r),h)for(r=0;r<h.length;r++)u=h[r],y=u._getVersion,y=y(u._source),o.mutableSourceEagerHydrationData==null?o.mutableSourceEagerHydrationData=[u,y]:o.mutableSourceEagerHydrationData.push(u,y);return new tu(o)},tn.render=function(r,o,u){if(!nu(o))throw Error(n(200));return su(null,r,o,!1,u)},tn.unmountComponentAtNode=function(r){if(!nu(r))throw Error(n(40));return r._reactRootContainer?(Kr(function(){su(null,null,r,!1,function(){r._reactRootContainer=null,r[ks]=null})}),!0):!1},tn.unstable_batchedUpdates=yf,tn.unstable_renderSubtreeIntoContainer=function(r,o,u,h){if(!nu(u))throw Error(n(200));if(r==null||r._reactInternals===void 0)throw Error(n(38));return su(r,o,u,!1,h)},tn.version="18.3.1-next-f1338f8080-20240426",tn}var f0;function M1(){if(f0)return Tf.exports;f0=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(),Tf.exports=gP(),Tf.exports}var m0;function yP(){if(m0)return ou;m0=1;var e=M1();return ou.createRoot=e.createRoot,ou.hydrateRoot=e.hydrateRoot,ou}var vP=yP();const xP=Tp(vP),wP=20,bP=1e6,Fs={ADD_TOAST:"ADD_TOAST",UPDATE_TOAST:"UPDATE_TOAST",DISMISS_TOAST:"DISMISS_TOAST",REMOVE_TOAST:"REMOVE_TOAST"};let Df=0;function kP(){return Df=(Df+1)%Number.MAX_VALUE,Df.toString()}const Mf=new Map,p0=e=>{if(Mf.has(e))return;const t=setTimeout(()=>{Mf.delete(e),Qa({type:Fs.REMOVE_TOAST,toastId:e})},bP);Mf.set(e,t)},SP=(e,t)=>{switch(t.type){case Fs.ADD_TOAST:return{...e,toasts:[t.toast,...e.toasts].slice(0,wP)};case Fs.UPDATE_TOAST:return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case Fs.DISMISS_TOAST:{const{toastId:n}=t;return n?p0(n):e.toasts.forEach(s=>{p0(s.id)}),{...e,toasts:e.toasts.map(s=>s.id===n||n===void 0?{...s,open:!1}:s)}}case Fs.REMOVE_TOAST:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},Su=[];let Nu={toasts:[]};function Qa(e){Nu=SP(Nu,e),Su.forEach(t=>{t(Nu)})}function NP({...e}){const t=kP(),n=i=>Qa({type:Fs.UPDATE_TOAST,toast:{...i,id:t}}),s=()=>Qa({type:Fs.DISMISS_TOAST,toastId:t});return Qa({type:Fs.ADD_TOAST,toast:{...e,id:t,open:!0,onOpenChange:i=>{i||s()}}}),{id:t,dismiss:s,update:n}}function jP(){const[e,t]=k.useState(Nu);return k.useEffect(()=>(Su.push(t),()=>{const n=Su.indexOf(t);n>-1&&Su.splice(n,1)}),[e]),{...e,toast:NP,dismiss:n=>Qa({type:Fs.DISMISS_TOAST,toastId:n})}}function F1(e){var t,n,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=F1(e[t]))&&(s&&(s+=" "),s+=n)}else for(n in e)e[n]&&(s&&(s+=" "),s+=n);return s}function O1(){for(var e,t,n=0,s="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=F1(e))&&(s&&(s+=" "),s+=t);return s}const g0=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,y0=O1,Al=(e,t)=>
vendor: 5,112 bytes, lines 40-109
40n=>{var s;if((t==null?void 0:t.variants)==null)return y0(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:i,defaultVariants:l}=t,c=Object.keys(i).map(m=>{const p=n==null?void 0:n[m],g=l==null?void 0:l[m];if(p===null)return null;const x=g0(p)||g0(g);return i[m][x]}),d=n&&Object.entries(n).reduce((m,p)=>{let[g,x]=p;return x===void 0||(m[g]=x),m},{}),f=t==null||(s=t.compoundVariants)===null||s===void 0?void 0:s.reduce((m,p)=>{let{class:g,className:x,...N}=p;return Object.entries(N).every(b=>{let[w,S]=b;return Array.isArray(S)?S.includes({...l,...d}[w]):{...l,...d}[w]===S})?[...m,g,x]:m},[]);return y0(e,c,f,n==null?void 0:n.class,n==null?void 0:n.className)};/**
41 * @license lucide-react v0.475.0 - ISC
42 *
43 * This source code is licensed under the ISC license.
44 * See the LICENSE file in the root directory of this source tree.
45 */const CP=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),L1=(...e)=>e.filter((t,n,s)=>!!t&&t.trim()!==""&&s.indexOf(t)===n).join(" ").trim();/**
46 * @license lucide-react v0.475.0 - ISC
47 *
48 * This source code is licensed under the ISC license.
49 * See the LICENSE file in the root directory of this source tree.
50 */var AP={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"};/**
51 * @license lucide-react v0.475.0 - ISC
52 *
53 * This source code is licensed under the ISC license.
54 * See the LICENSE file in the root directory of this source tree.
55 */const PP=k.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:s,className:i="",children:l,iconNode:c,...d},f)=>k.createElement("svg",{ref:f,...AP,width:t,height:t,stroke:e,strokeWidth:s?Number(n)*24/Number(t):n,className:L1("lucide",i),...d},[...c.map(([m,p])=>k.createElement(m,p)),...Array.isArray(l)?l:[l]]));/**
56 * @license lucide-react v0.475.0 - ISC
57 *
58 * This source code is licensed under the ISC license.
59 * See the LICENSE file in the root directory of this source tree.
60 */const ke=(e,t)=>{const n=k.forwardRef(({className:s,...i},l)=>k.createElement(PP,{ref:l,iconNode:t,className:L1(`lucide-${CP(e)}`,s),...i}));return n.displayName=`${e}`,n};/**
61 * @license lucide-react v0.475.0 - ISC
62 *
63 * This source code is licensed under the ISC license.
64 * See the LICENSE file in the root directory of this source tree.
65 */const EP=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],zu=ke("ArrowLeft",EP);/**
66 * @license lucide-react v0.475.0 - ISC
67 *
68 * This source code is licensed under the ISC license.
69 * See the LICENSE file in the root directory of this source tree.
70 */const TP=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],rn=ke("ArrowRight",TP);/**
71 * @license lucide-react v0.475.0 - ISC
72 *
73 * This source code is licensed under the ISC license.
74 * See the LICENSE file in the root directory of this source tree.
75 */const RP=[["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"}]],un=ke("Calendar",RP);/**
76 * @license lucide-react v0.475.0 - ISC
77 *
78 * This source code is licensed under the ISC license.
79 * See the LICENSE file in the root directory of this source tree.
80 */const _P=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],v0=ke("ChartColumn",_P);/**
81 * @license lucide-react v0.475.0 - ISC
82 *
83 * This source code is licensed under the ISC license.
84 * See the LICENSE file in the root directory of this source tree.
85 */const DP=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Us=ke("Check",DP);/**
86 * @license lucide-react v0.475.0 - ISC
87 *
88 * This source code is licensed under the ISC license.
89 * See the LICENSE file in the root directory of this source tree.
90 */const MP=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],FP=ke("ChevronLeft",MP);/**
91 * @license lucide-react v0.475.0 - ISC
92 *
93 * This source code is licensed under the ISC license.
94 * See the LICENSE file in the root directory of this source tree.
95 */const OP=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],us=ke("ChevronRight",OP);/**
96 * @license lucide-react v0.475.0 - ISC
97 *
98 * This source code is licensed under the ISC license.
99 * See the LICENSE file in the root directory of this source tree.
100 */const LP=[["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"}]],Wn=ke("CircleAlert",LP);/**
101 * @license lucide-react v0.475.0 - ISC
102 *
103 * This source code is licensed under the ISC license.
104 * See the LICENSE file in the root directory of this source tree.
105 */const IP=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Uu=ke("CircleCheck",IP);/**
106 * @license lucide-react v0.475.0 - ISC
107 *
108 * This source code is licensed under the ISC license.
109 * See the LICENSE file in the root directory of this source tree.
110 */const BP=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]],I1=ke("ClipboardList",BP);/**
111 * @license lucide-react v0.475.0 - ISC
112 *
113 * This source code is licensed under the ISC license.
114 * See the LICENSE file in the root directory of this source tree.
115 */const VP=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],Pl=ke("Clock",VP);/**
116 * @license lucide-react v0.475.0 - ISC
117 *
118 * This source code is licensed under the ISC license.
119 * See the LICENSE file in the root directory of this source tree.
120 */const zP=[["path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z",key:"1vdc57"}],["path",{d:"M5 21h14",key:"11awu3"}]],al=ke("Crown",zP);/**
121 * @license lucide-react v0.475.0 - ISC
122 *
123 * This source code is licensed under the ISC license.
124 * See the LICENSE file in the root directory of this source tree.
125 */const UP=[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]],$P=ke("Download",UP);/**
126 * @license lucide-react v0.475.0 - ISC
127 *
128 * This source code is licensed under the ISC license.
129 * See the LICENSE file in the root directory of this source tree.
130 */const WP=[["path",{d:"M7 16.3c2.2 0 4-1.83 4-4.05 0-1.16-.57-2.26-1.71-3.19S7.29 6.75 7 5.3c-.29 1.45-1.14 2.84-2.29 3.76S3 11.1 3 12.25c0 2.22 1.8 4.05 4 4.05z",key:"1ptgy4"}],["path",{d:"M12.56 6.6A10.97 10.97 0 0 0 14 3.02c.5 2.5 2 4.9 4 6.5s3 3.5 3 5.5a6.98 6.98 0 0 1-11.91 4.97",key:"1sl1rz"}]],ll=ke("Droplets",WP);/**
131 * @license lucide-react v0.475.0 - ISC
132 *
133 * This source code is licensed under the ISC license.
134 * See the LICENSE file in the root directory of this source tree.
135 */const HP=[["path",{d:"M14.4 14.4 9.6 9.6",key:"ic80wn"}],["path",{d:"M18.657 21.485a2 2 0 1 1-2.829-2.828l-1.767 1.768a2 2 0 1 1-2.829-2.829l6.364-6.364a2 2 0 1 1 2.829 2.829l-1.768 1.767a2 2 0 1 1 2.828 2.829z",key:"nnl7wr"}],["path",{d:"m21.5 21.5-1.4-1.4",key:"1f1ice"}],["path",{d:"M3.9 3.9 2.5 2.5",key:"1evmna"}],["path",{d:"M6.404 12.768a2 2 0 1 1-2.829-2.829l1.768-1.767a2 2 0 1 1-2.828-2.829l2.828-2.828a2 2 0 1 1 2.829 2.828l1.767-1.768a2 2 0 1 1 2.829 2.829z",key:"yhosts"}]],Xa=ke("Dumbbell",HP);/**
136 * @license lucide-react v0.475.0 - ISC
137 *
138 * This source code is licensed under the ISC license.
139 * See the LICENSE file in the root directory of this source tree.
140 */const qP=[["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"}]],qe=ke("ExternalLink",qP);/**
141 * @license lucide-react v0.475.0 - ISC
142 *
143 * This source code is licensed under the ISC license.
144 * See the LICENSE file in the root directory of this source tree.
145 */const GP=[["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"}]],Dp=ke("Eye",GP);/**
146 * @license lucide-react v0.475.0 - ISC
147 *
148 * This source code is licensed under the ISC license.
149 * See the LICENSE file in the root directory of this source tree.
150 */const YP=[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]],KP=ke("Facebook",YP);/**
151 * @license lucide-react v0.475.0 - ISC
152 *
153 * This source code is licensed under the ISC license.
154 * See the LICENSE file in the root directory of this source tree.
155 */const QP=[["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"}]],vi=ke("FileText",QP);/**
156 * @license lucide-react v0.475.0 - ISC
157 *
158 * This source code is licensed under the ISC license.
159 * See the LICENSE file in the root directory of this source tree.
160 */const XP=[["path",{d:"M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2",key:"18mbvz"}],["path",{d:"M6.453 15h11.094",key:"3shlmq"}],["path",{d:"M8.5 2h7",key:"csnxdl"}]],B1=ke("FlaskConical",XP);/**
161 * @license lucide-react v0.475.0 - ISC
162 *
163 * This source code is licensed under the ISC license.
164 * See the LICENSE file in the root directory of this source tree.
165 */const JP=[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]],Ut=ke("Heart",JP);/**
166 * @license lucide-react v0.475.0 - ISC
167 *
168 * This source code is licensed under the ISC license.
169 * See the LICENSE file in the root directory of this source tree.
170 */const ZP=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]],V1=ke("House",ZP);
170/**
171 * @license lucide-react v0.475.0 - ISC
172 *
173 * This source code is licensed under the ISC license.
174 * See the LICENSE file in the root directory of this source tree.
175 */const eE=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],tE=ke("Info",eE);/**
176 * @license lucide-react v0.475.0 - ISC
177 *
178 * This source code is licensed under the ISC license.
179 * See the LICENSE file in the root directory of this source tree.
180 */const nE=[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]],sE=ke("Instagram",nE);/**
181 * @license lucide-react v0.475.0 - ISC
182 *
183 * This source code is licensed under the ISC license.
184 * See the LICENSE file in the root directory of this source tree.
185 */const rE=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Po=ke("LoaderCircle",rE);/**
186 * @license lucide-react v0.475.0 - ISC
187 *
188 * This source code is licensed under the ISC license.
189 * See the LICENSE file in the root directory of this source tree.
190 */const iE=[["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"}]],z1=ke("Lock",iE);/**
191 * @license lucide-react v0.475.0 - ISC
192 *
193 * This source code is licensed under the ISC license.
194 * See the LICENSE file in the root directory of this source tree.
195 */const oE=[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]],Mp=ke("Mail",oE);/**
196 * @license lucide-react v0.475.0 - ISC
197 *
198 * This source code is licensed under the ISC license.
199 * See the LICENSE file in the root directory of this source tree.
200 */const aE=[["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"}]],Fp=ke("MapPin",aE);/**
201 * @license lucide-react v0.475.0 - ISC
202 *
203 * This source code is licensed under the ISC license.
204 * See the LICENSE file in the root directory of this source tree.
205 */const lE=[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]],cE=ke("Menu",lE);/**
206 * @license lucide-react v0.475.0 - ISC
207 *
208 * This source code is licensed under the ISC license.
209 * See the LICENSE file in the root directory of this source tree.
210 */const uE=[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]],dE=ke("MessageCircle",uE);/**
211 * @license lucide-react v0.475.0 - ISC
212 *
213 * This source code is licensed under the ISC license.
214 * See the LICENSE file in the root directory of this source tree.
215 */const hE=[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]],Nr=ke("MessageSquare",hE);/**
216 * @license lucide-react v0.475.0 - ISC
217 *
218 * This source code is licensed under the ISC license.
219 * See the LICENSE file in the root directory of this source tree.
220 */const fE=[["path",{d:"M6 18h8",key:"1borvv"}],["path",{d:"M3 22h18",key:"8prr45"}],["path",{d:"M14 22a7 7 0 1 0 0-14h-1",key:"1jwaiy"}],["path",{d:"M9 14h2",key:"197e7h"}],["path",{d:"M9 12a2 2 0 0 1-2-2V6h6v4a2 2 0 0 1-2 2Z",key:"1bmzmy"}],["path",{d:"M12 6V3a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v3",key:"1drr47"}]],mE=ke("Microscope",fE);/**
221 * @license lucide-react v0.475.0 - ISC
222 *
223 * This source code is licensed under the ISC license.
224 * See the LICENSE file in the root directory of this source tree.
225 */const pE=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]],$u=ke("Package",pE);/**
226 * @license lucide-react v0.475.0 - ISC
227 *
228 * This source code is licensed under the ISC license.
229 * See the LICENSE file in the root directory of this source tree.
230 */const gE=[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]],Ci=ke("Phone",gE);/**
231 * @license lucide-react v0.475.0 - ISC
232 *
233 * This source code is licensed under the ISC license.
234 * See the LICENSE file in the root directory of this source tree.
235 */const yE=[["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}
235],["path",{d:"M8.12 8.12 12 12",key:"1alkpv"}],["path",{d:"M20 4 8.12 15.88",key:"xgtan2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M14.8 14.8 20 20",key:"ptml3r"}]],vE=ke("Scissors",yE);/**
236 * @license lucide-react v0.475.0 - ISC
237 *
238 * This source code is licensed under the ISC license.
239 * See the LICENSE file in the root directory of this source tree.
240 */const xE=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],U1=ke("Search",xE);/**
241 * @license lucide-react v0.475.0 - ISC
242 *
243 * This source code is licensed under the ISC license.
244 * See the LICENSE file in the root directory of this source tree.
245 */const wE=[["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"}]],$1=ke("Send",wE);/**
246 * @license lucide-react v0.475.0 - ISC
247 *
248 * This source code is licensed under the ISC license.
249 * See the LICENSE file in the root directory of this source tree.
250 */const bE=[["path",{d:"M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z",key:"hou9p0"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M16 10a4 4 0 0 1-8 0",key:"1ltviw"}]],Eo=ke("ShoppingBag",bE);/**
251 * @license lucide-react v0.475.0 - ISC
252 *
253 * This source code is licensed under the ISC license.
254 * See the LICENSE file in the root directory of this source tree.
255 */const kE=[["circle",{cx:"8",cy:"21",r:"1",key:"jimo8o"}],["circle",{cx:"19",cy:"21",r:"1",key:"13723u"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12",key:"9zh506"}]],Ja=ke("ShoppingCart",kE);/**
256 * @license lucide-react v0.475.0 - ISC
257 *
258 * This source code is licensed under the ISC license.
259 * See the LICENSE file in the root directory of this source tree.
260 */const SE=[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]],Me=ke("Sparkles",SE);/**
261 * @license lucide-react v0.475.0 - ISC
262 *
263 * This source code is licensed under the ISC license.
264 * See the LICENSE file in the root directory of this source tree.
265 */const NE=[["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"}]],ud=ke("Star",NE);/**
266 * @license lucide-react v0.475.0 - ISC
267 *
268 * This source code is licensed under the ISC license.
269 * See the LICENSE file in the root directory of this source tree.
270 */const jE=[["path",{d:"M11 2v2",key:"1539x4"}],["path",{d:"M5 2v2",key:"1yf1q8"}],["path",{d:"M5 3H4a2 2 0 0 0-2 2v4a6 6 0 0 0 12 0V5a2 2 0 0 0-2-2h-1",key:"rb5t3r"}],["path",{d:"M8 15a6 6 0 0 0 12 0v-3",key:"x18d4x"}],["circle",{cx:"20",cy:"10",r:"2",key:"ts1r5v"}]],x0=ke("Stethoscope",jE);/**
271 * @license lucide-react v0.475.0 - ISC
272 *
273 * This source code is licensed under the ISC license.
274 * See the LICENSE file in the root directory of this source tree.
275 */const CE=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],AE=ke("Target",CE);/**
276 * @license lucide-react v0.475.0 - ISC
277 *
278 * This source code is licensed under the ISC license.
279 * See the LICENSE file in the root directory of this source tree.
280 */const PE=[["path",{d:"M14 4v10.54a4 4 0 1 1-4 0V4a2 2 0 0 1 4 0Z",key:"17jzev"}]],Op=ke("Thermometer",PE);/**
281 * @license lucide-react v0.475.0 - ISC
282 *
283 * This source code is licensed under the ISC license.
284 * See the LICENSE file in the root directory of this source tree.
285 */const EE=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}
vendor: 4,581 bytes, lines 285-305
285],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]],TE=ke("Trash2",EE);/**
286 * @license lucide-react v0.475.0 - ISC
287 *
288 * This source code is licensed under the ISC license.
289 * See the LICENSE file in the root directory of this source tree.
290 */const RE=[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]],w0=ke("Upload",RE);/**
291 * @license lucide-react v0.475.0 - ISC
292 *
293 * This source code is licensed under the ISC license.
294 * See the LICENSE file in the root directory of this source tree.
295 */const _E=[["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"}]],dd=ke("User",_E);/**
296 * @license lucide-react v0.475.0 - ISC
297 *
298 * This source code is licensed under the ISC license.
299 * See the LICENSE file in the root directory of this source tree.
300 */const DE=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Fr=ke("X",DE);/**
301 * @license lucide-react v0.475.0 - ISC
302 *
303 * This source code is licensed under the ISC license.
304 * See the LICENSE file in the root directory of this source tree.
305 */const ME=[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]],FE=ke("Youtube",ME),Lp="-",OE=e=>{const t=IE(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:c=>{const d=c.split(Lp);return d[0]===""&&d.length!==1&&d.shift(),W1(d,t)||LE(c)},getConflictingClassGroupIds:(c,d)=>{const f=n[c]||[];return d&&s[c]?[...f,...s[c]]:f}}},W1=(e,t)=>{var c;if(e.length===0)return t.classGroupId;const n=e[0],s=t.nextPart.get(n),i=s?W1(e.slice(1),s):void 0;if(i)return i;if(t.validators.length===0)return;const l=e.join(Lp);return(c=t.validators.find(({validator:d})=>d(l)))==null?void 0:c.classGroupId},b0=/^\[(.+)\]$/,LE=e=>{if(b0.test(e)){const t=b0.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},IE=e=>{const{theme:t,classGroups:n}=e,s={nextPart:new Map,validators:[]};for(const i in n)Am(n[i],s,i,t);return s},Am=(e,t,n,s)=>{e.forEach(i=>{if(typeof i=="string"){const l=i===""?t:k0(t,i);l.classGroupId=n;return}if(typeof i=="function"){if(BE(i)){Am(i(s),t,n,s);return}t.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([l,c])=>{Am(c,k0(t,l),n,s)})})},k0=(e,t)=>{let n=e;return t.split(Lp).forEach(s=>{n.nextPart.has(s)||n.nextPart.set(s,{nextPart:new Map,validators:[]}),n=n.nextPart.get(s)}),n},BE=e=>e.isThemeGetter,VE=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,s=new Map;const i=(l,c)=>{n.set(l,c),t++,t>e&&(t=0,s=n,n=new Map)};return{get(l){let c=n.get(l);if(c!==void 0)return c;if((c=s.get(l))!==void 0)return i(l,c),c},set(l,c){n.has(l)?n.set(l,c):i(l,c)}}},Pm="!",Em=":",zE=Em.length,UE=e=>{const{prefix:t,experimentalParseClassName:n}=e;let s=i=>{const l=[];let c=0,d=0,f=0,m;for(let b=0;b<i.length;b++){let w=i[b];if(c===0&&d===0){if(w===Em){l.push(i.slice(f,b)),f=b+zE;continue}if(w==="/"){m=b;continue}}w==="["?c++:w==="]"?c--:w==="("?d++:w===")"&&d--}const p=l.length===0?i:i.substring(f),g=$E(p),x=g!==p,N=m&&m>f?m-f:void 0;return{modifiers:l,hasImportantModifier:x,baseClassName:g,maybePostfixModifierPosition:N}};if(t){const i=t+Em,l=s;s=c=>c.startsWith(i)?l(c.substring(i.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:c,maybePostfixModifierPosition:void 0}}if(n){const i=s;s=l=>n({className:l,parseClassName:i})}return s},$E=e=>e.endsWith(Pm)?e.substring(0,e.length-1):e.startsWith(Pm)?e.substring(1):e,WE=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(s=>[s,!0]));return s=>{if(s.length<=1)return s;const i=[];let l=[];return s.forEach(c=>{c[0]==="["||t[c]?(i.push(...l.sort(),c),l=[]):l.push(c)}),i.push(...l.sort()),i}},HE=e=>({cache:VE(e.cacheSize),parseClassName:UE(e),sortModifiers:WE(e),...OE(e)}),qE=/\s+/,GE=(e,t)=>{const{parseClassName:n,getClassGroupId:s,getConflictingClassGroupIds:i,sortModifiers:l}=t,c=[],d=e.trim().split(qE);let f="";for(let m=d.length-1;m>=0;m-=1){const p=d[m],{isExternal:g,modifiers:x,hasImportantModifier:N,baseClassName:b,maybePostfixModifierPosition:w}=n(p);if(g){f=p+(f.length>0?" "+f:f);continue}let S=!!w,j=s(S?b.substring(0,w):b);
vendor: 4,511 bytes, line 305
305if(!j){if(!S){f=p+(f.length>0?" "+f:f);continue}if(j=s(b),!j){f=p+(f.length>0?" "+f:f);continue}S=!1}const P=l(x).join(":"),A=N?P+Pm:P,E=A+j;if(c.includes(E))continue;c.push(E);const D=i(j,S);for(let V=0;V<D.length;++V){const B=D[V];c.push(A+B)}f=p+(f.length>0?" "+f:f)}return f};function YE(){let e=0,t,n,s="";for(;e<arguments.length;)(t=arguments[e++])&&(n=H1(t))&&(s&&(s+=" "),s+=n);return s}const H1=e=>{if(typeof e=="string")return e;let t,n="";for(let s=0;s<e.length;s++)e[s]&&(t=H1(e[s]))&&(n&&(n+=" "),n+=t);return n};function KE(e,...t){let n,s,i,l=c;function c(f){const m=t.reduce((p,g)=>g(p),e());return n=HE(m),s=n.cache.get,i=n.cache.set,l=d,d(f)}function d(f){const m=s(f);if(m)return m;const p=GE(f,n);return i(f,p),p}return function(){return l(YE.apply(null,arguments))}}const jt=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},q1=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,G1=/^\((?:(\w[\w-]*):)?(.+)\)$/i,QE=/^\d+\/\d+$/,XE=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,JE=/\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$/,ZE=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,e4=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,t4=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,no=e=>QE.test(e),Pe=e=>!!e&&!Number.isNaN(Number(e)),cr=e=>!!e&&Number.isInteger(Number(e)),Ff=e=>e.endsWith("%")&&Pe(e.slice(0,-1)),Ts=e=>XE.test(e),n4=()=>!0,s4=e=>JE.test(e)&&!ZE.test(e),Y1=()=>!1,r4=e=>e4.test(e),i4=e=>t4.test(e),o4=e=>!he(e)&&!fe(e),a4=e=>Lo(e,X1,Y1),he=e=>q1.test(e),Zr=e=>Lo(e,J1,s4),Of=e=>Lo(e,h4,Pe),S0=e=>Lo(e,K1,Y1),l4=e=>Lo(e,Q1,i4),au=e=>Lo(e,Z1,r4),fe=e=>G1.test(e),Ma=e=>Io(e,J1),c4=e=>Io(e,f4),N0=e=>Io(e,K1),u4=e=>Io(e,X1),d4=e=>Io(e,Q1),lu=e=>Io(e,Z1,!0),Lo=(e,t,n)=>{const s=q1.exec(e);return s?s[1]?t(s[1]):n(s[2]):!1},Io=(e,t,n=!1)=>{const s=G1.exec(e);return s?s[1]?t(s[1]):n:!1},K1=e=>e==="position"||e==="percentage",Q1=e=>e==="image"||e==="url",X1=e=>e==="length"||e==="size"||e==="bg-size",J1=e=>e==="length",h4=e=>e==="number",f4=e=>e==="family-name",Z1=e=>e==="shadow",m4=()=>{const e=jt("color"),t=jt("font"),n=jt("text"),s=jt("font-weight"),i=jt("tracking"),l=jt("leading"),c=jt("breakpoint"),d=jt("container"),f=jt("spacing"),m=jt("radius"),p=jt("shadow"),g=jt("inset-shadow"),x=jt("text-shadow"),N=jt("drop-shadow"),b=jt("blur"),w=jt("perspective"),S=jt("aspect"),j=jt("ease"),P=jt("animate"),A=()=>["auto","avoid","all","avoid-page","page","left","right","column"],E=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],D=()=>[...E(),fe,he],V=()=>["auto","hidden","clip","visible","scroll"],B=()=>["auto","contain","none"],L=()=>[fe,he,f],ne=()=>[no,"full","auto",...L()],Q=()=>[cr,"none","subgrid",fe,he],re=()=>["auto",{span:["full",cr,fe,he]},cr,fe,he],ie=()=>[cr,"auto",fe,he],I=()=>["auto","min","max","fr",fe,he],Y=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],oe=()=>["start","end","center","stretch","center-safe","end-safe"],ee=()=>["auto",...L()],H=()=>[no,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...L()],R=()=>[e,fe,he],se=()=>[...E(),N0,S0,{position:[fe,he]}],J=()=>["no-repeat",{repeat:["","x","y","space","round"]}],F=()=>["auto","cover","contain",u4,a4,{size:[fe,he]}],q=()=>[Ff,Ma,Zr],pe=()=>["","none","full",m,fe,he],ye=()=>["",Pe,Ma,Zr],Ce=()=>["solid","dashed","dotted","double"],Te=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Se=()=>[Pe,Ff,N0,S0],Fe=()=>["","none",b,fe,he],ze=()=>["none",Pe,fe,he],dt=()=>["none",Pe,fe,he],Rn=()=>[Pe,fe,he],Jn=()=>[no,"full",...L()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ts],breakpoint:[Ts],color:[n4],container:[Ts],"drop-shadow":[Ts],ease:["in","out","in-out"],font:[o4],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ts],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ts],shadow:[Ts],spacing:["px",Pe],text:[Ts],"text-shadow":[Ts],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",no,he,fe,S]}
vendor: 12,904 bytes, line 305
305],container:["container"],columns:[{columns:[Pe,he,fe,d]}],"break-after":[{"break-after":A()}],"break-before":[{"break-before":A()}],"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:V()}],"overflow-x":[{"overflow-x":V()}],"overflow-y":[{"overflow-y":V()}],overscroll:[{overscroll:B()}],"overscroll-x":[{"overscroll-x":B()}],"overscroll-y":[{"overscroll-y":B()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:ne()}],"inset-x":[{"inset-x":ne()}],"inset-y":[{"inset-y":ne()}],start:[{start:ne()}],end:[{end:ne()}],top:[{top:ne()}],right:[{right:ne()}],bottom:[{bottom:ne()}],left:[{left:ne()}],visibility:["visible","invisible","collapse"],z:[{z:[cr,"auto",fe,he]}],basis:[{basis:[no,"full","auto",d,...L()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Pe,no,"auto","initial","none",he]}],grow:[{grow:["",Pe,fe,he]}],shrink:[{shrink:["",Pe,fe,he]}],order:[{order:[cr,"first","last","none",fe,he]}],"grid-cols":[{"grid-cols":Q()}],"col-start-end":[{col:re()}],"col-start":[{"col-start":ie()}],"col-end":[{"col-end":ie()}],"grid-rows":[{"grid-rows":Q()}],"row-start-end":[{row:re()}],"row-start":[{"row-start":ie()}],"row-end":[{"row-end":ie()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":I()}],"auto-rows":[{"auto-rows":I()}],gap:[{gap:L()}],"gap-x":[{"gap-x":L()}],"gap-y":[{"gap-y":L()}],"justify-content":[{justify:[...Y(),"normal"]}],"justify-items":[{"justify-items":[...oe(),"normal"]}],"justify-self":[{"justify-self":["auto",...oe()]}],"align-content":[{content:["normal",...Y()]}],"align-items":[{items:[...oe(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...oe(),{baseline:["","last"]}]}],"place-content":[{"place-content":Y()}],"place-items":[{"place-items":[...oe(),"baseline"]}],"place-self":[{"place-self":["auto",...oe()]}],p:[{p:L()}],px:[{px:L()}],py:[{py:L()}],ps:[{ps:L()}],pe:[{pe:L()}],pt:[{pt:L()}],pr:[{pr:L()}],pb:[{pb:L()}],pl:[{pl:L()}],m:[{m:ee()}],mx:[{mx:ee()}],my:[{my:ee()}],ms:[{ms:ee()}],me:[{me:ee()}],mt:[{mt:ee()}],mr:[{mr:ee()}],mb:[{mb:ee()}],ml:[{ml:ee()}],"space-x":[{"space-x":L()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":L()}],"space-y-reverse":["space-y-reverse"],size:[{size:H()}],w:[{w:[d,"screen",...H()]}],"min-w":[{"min-w":[d,"screen","none",...H()]}],"max-w":[{"max-w":[d,"screen","none","prose",{screen:[c]},...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",n,Ma,Zr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[s,fe,Of]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ff,he]}],"font-family":[{font:[c4,he,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:[i,fe,he]}],"line-clamp":[{"line-clamp":[Pe,"none",fe,Of]}],leading:[{leading:[l,...L()]}],"list-image":[{"list-image":["none",fe,he]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",fe,he]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:R()}],"text-color":[{text:R()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Ce(),"wavy"]}],"text-decoration-thickness":[{decoration:[Pe,"from-font","auto",fe,Zr]}],"text-decoration-color":[{decoration:R()}],"underline-offset":[{"underline-offset":[Pe,"auto",fe,he]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:L()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",fe,he]}],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",fe,he]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:se()}],"bg-repeat":[{bg:J()}],"bg-size":[{bg:F()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},cr,fe,he],radial:["",fe,he],conic:[cr,fe,he]},d4,l4]}],"bg-color":[{bg:R()}],"gradient-from-pos":[{from:q()}],"gradient-via-pos":[{via:q()}],"gradient-to-pos":[{to:q()}],"gradient-from":[{from:R()}],"gradient-via":[{via:R()}],"gradient-to":[{to:R()}],rounded:[{rounded:pe()}],"rounded-s":[{"rounded-s":pe()}],"rounded-e":[{"rounded-e":pe()}],"rounded-t":[{"rounded-t":pe()}],"rounded-r":[{"rounded-r":pe()}],"rounded-b":[{"rounded-b":pe()}],"rounded-l":[{"rounded-l":pe()}],"rounded-ss":[{"rounded-ss":pe()}],"rounded-se":[{"rounded-se":pe()}],"rounded-ee":[{"rounded-ee":pe()}],"rounded-es":[{"rounded-es":pe()}],"rounded-tl":[{"rounded-tl":pe()}],"rounded-tr":[{"rounded-tr":pe()}],"rounded-br":[{"rounded-br":pe()}],"rounded-bl":[{"rounded-bl":pe()}],"border-w":[{border:ye()}],"border-w-x":[{"border-x":ye()}],"border-w-y":[{"border-y":ye()}],"border-w-s":[{"border-s":ye()}],"border-w-e":[{"border-e":ye()}],"border-w-t":[{"border-t":ye()}],"border-w-r":[{"border-r":ye()}],"border-w-b":[{"border-b":ye()}],"border-w-l":[{"border-l":ye()}],"divide-x":[{"divide-x":ye()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ye()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Ce(),"hidden","none"]}],"divide-style":[{divide:[...Ce(),"hidden","none"]}],"border-color":[{border:R()}],"border-color-x":[{"border-x":R()}],"border-color-y":[{"border-y":R()}],"border-color-s":[{"border-s":R()}],"border-color-e":[{"border-e":R()}],"border-color-t":[{"border-t":R()}],"border-color-r":[{"border-r":R()}],"border-color-b":[{"border-b":R()}],"border-color-l":[{"border-l":R()}],"divide-color":[{divide:R()}],"outline-style":[{outline:[...Ce(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Pe,fe,he]}],"outline-w":[{outline:["",Pe,Ma,Zr]}],"outline-color":[{outline:R()}],shadow:[{shadow:["","none",p,lu,au]}],"shadow-color":[{shadow:R()}],"inset-shadow":[{"inset-shadow":["none",g,lu,au]}],"inset-shadow-color":[{"inset-shadow":R()}],"ring-w":[{ring:ye()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:R()}],"ring-offset-w":[{"ring-offset":[Pe,Zr]}],"ring-offset-color":[{"ring-offset":R()}],"inset-ring-w":[{"inset-ring":ye()}],"inset-ring-color":[{"inset-ring":R()}],"text-shadow":[{"text-shadow":["none",x,lu,au]}],"text-shadow-color":[{"text-shadow":R()}],opacity:[{opacity:[Pe,fe,he]}],"mix-blend":[{"mix-blend":[...Te(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Te()}],"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":[Pe]}],"mask-image-linear-from-pos":[{"mask-linear-from":Se()}],"mask-image-linear-to-pos":[{"mask-linear-to":Se()}],"mask-image-linear-from-color":[{"mask-linear-from":R()}],"mask-image-linear-to-color":[{"mask-linear-to":R()}],"mask-image-t-from-pos":[{"mask-t-from":Se()}],"mask-image-t-to-pos":[{"mask-t-to":Se()}],"mask-image-t-from-color":[{"mask-t-from":R()}],"mask-image-t-to-color":[{"mask-t-to":R()}],"mask-image-r-from-pos":[{"mask-r-from":Se()}],"mask-image-r-to-pos":[{"mask-r-to":Se()}],"mask-image-r-from-color":[{"mask-r-from":R()}],"mask-image-r-to-color":[{"mask-r-to":R()}],"mask-image-b-from-pos":[{"mask-b-from":Se()}],"mask-image-b-to-pos":[{"mask-b-to":Se()}],"mask-image-b-from-color":[{"mask-b-from":R()}],"mask-image-b-to-color":[{"mask-b-to":R()}],"mask-image-l-from-pos":[{"mask-l-from":Se()}],"mask-image-l-to-pos":[{"mask-l-to":Se()}],"mask-image-l-from-color":[{"mask-l-from":R()}],"mask-image-l-to-color":[{"mask-l-to":R()}],"mask-image-x-from-pos":[{"mask-x-from":Se()}],"mask-image-x-to-pos":[{"mask-x-to":Se()}],"mask-image-x-from-color":[{"mask-x-from":R()}],"mask-image-x-to-color":[{"mask-x-to":R()}],"mask-image-y-from-pos":[{"mask-y-from":Se()}],"mask-image-y-to-pos":[{"mask-y-to":Se()}],"mask-image-y-from-color":[{"mask-y-from":R()}],"mask-image-y-to-color":[{"mask-y-to":R()}],"mask-image-radial":[{"mask-radial":[fe,he]}],"mask-image-radial-from-pos":[{"mask-radial-from":Se()}],"mask-image-radial-to-pos":[{"mask-radial-to":Se()}],"mask-image-radial-from-color":[{"mask-radial-from":R()}],"mask-image-radial-to-color":[{"mask-radial-to":R()}],"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":E()}],"mask-image-conic-pos":[{"mask-conic":[Pe]}],"mask-image-conic-from-pos":[{"mask-conic-from":Se()}],"mask-image-conic-to-pos":[{"mask-conic-to":Se()}],"mask-image-conic-from-color":[{"mask-conic-from":R()}],"mask-image-conic-to-color":[{"mask-conic-to":R()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:se()}],"mask-repeat":[{mask:J()}],"mask-size":[{mask:F()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",fe,he]}],filter:[{filter:["","none",fe,he]}],blur:[{blur:Fe()}],brightness:[{brightness:[Pe,fe,he]}],contrast:[{contrast:[Pe,fe,he]}],"drop-shadow":[{"drop-shadow":["","none",N,lu,au]}],"drop-shadow-color":[{"drop-shadow":R()}],grayscale:[{grayscale:["",Pe,fe,he]}],"hue-rotate":[{"hue-rotate":[Pe,fe,he]}],invert:[{invert:["",Pe,fe,he]}],saturate:[{saturate:[Pe,fe,he]}],sepia:[{sepia:["",Pe,fe,he]}],"backdrop-filter":[{"backdrop-filter":["","none",fe,he]}],"backdrop-blur":[{"backdrop-blur":Fe()}],"backdrop-brightness":[{"backdrop-brightness":[Pe,fe,he]}],"backdrop-contrast":[{"backdrop-contrast":[Pe,fe,he]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Pe,fe,he]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Pe,fe,he]}],"backdrop-invert":[{"backdrop-invert":["",Pe,fe,he]}],"backdrop-opacity":[{"backdrop-opacity":[Pe,fe,he]}],"backdrop-saturate":[{"backdrop-saturate":[Pe,fe,he]}],"backdrop-sepia":[{"backdrop-sepia":["",Pe,fe,he]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":L()}],"border-spacing-x":[{"border-spacing-x":L()}],"border-spacing-y":[{"border-spacing-y":L()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",fe,he]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Pe,"initial",fe,he]}],ease:[{ease:["linear","initial",j,fe,he]}],delay:[{delay:[Pe,fe,he]}],animate:[{animate:["none",P,fe,he]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[w,fe,he]}],"perspective-origin":[{"perspective-origin":D()}],rotate:[{rotate:ze()}],"rotate-x":[{"rotate-x":ze()}],"rotate-y":[{"rotate-y":ze()}],"rotate-z":[{"rotate-z":ze()}],scale:[{scale:dt()}],"scale-x":[{"scale-x":dt()}],"scale-y":[{"scale-y":dt()}],"scale-z":[{"scale-z":dt()}],"scale-3d":["scale-3d"],skew:[{skew:Rn()}],"skew-x":[{"skew-x":Rn()}],"skew-y":[{"skew-y":Rn()}],transform:[{transform:[fe,he,"","none","gpu","cpu"]}],"transform-origin":[{origin:D()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Jn()}],"translate-x":[{"translate-x":Jn()}],"translate-y":[{"translate-y":Jn()}],"translate-z":[{"translate-z":Jn()}],"translate-none":["translate-none"],accent:[{accent:R()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:R()}
vendor: 6,657 bytes, line 305
305],"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",fe,he]}],"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":L()}],"scroll-mx":[{"scroll-mx":L()}],"scroll-my":[{"scroll-my":L()}],"scroll-ms":[{"scroll-ms":L()}],"scroll-me":[{"scroll-me":L()}],"scroll-mt":[{"scroll-mt":L()}],"scroll-mr":[{"scroll-mr":L()}],"scroll-mb":[{"scroll-mb":L()}],"scroll-ml":[{"scroll-ml":L()}],"scroll-p":[{"scroll-p":L()}],"scroll-px":[{"scroll-px":L()}],"scroll-py":[{"scroll-py":L()}],"scroll-ps":[{"scroll-ps":L()}],"scroll-pe":[{"scroll-pe":L()}],"scroll-pt":[{"scroll-pt":L()}],"scroll-pr":[{"scroll-pr":L()}],"scroll-pb":[{"scroll-pb":L()}],"scroll-pl":[{"scroll-pl":L()}],"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",fe,he]}],fill:[{fill:["none",...R()]}],"stroke-w":[{stroke:[Pe,Ma,Zr,Of]}],stroke:[{stroke:["none",...R()]}],"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"]}},p4=KE(m4);function Re(...e){return p4(O1(e))}const ek=k.forwardRef(({...e},t)=>a.jsx("div",{ref:t,className:"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}));ek.displayName="ToastProvider";const tk=k.forwardRef(({...e},t)=>a.jsx("div",{ref:t,className:"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}));tk.displayName="ToastViewport";const g4=Al("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"}}),nk=k.forwardRef(({className:e,variant:t,...n},s)=>a.jsx("div",{ref:s,className:Re(g4({variant:t}),e),...n}));nk.displayName="Toast";const y4=k.forwardRef(({className:e,...t},n)=>a.jsx("div",{ref:n,className:Re("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}));y4.displayName="ToastAction";const sk=k.forwardRef(({className:e,...t},n)=>a.jsx("button",{ref:n,className:Re("absolute right-2 top-2 rounded-md p-1 text-foreground
vendor: 4,532 bytes, line 305
305/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(Fr,{className:"h-4 w-4"})}));sk.displayName="ToastClose";const rk=k.forwardRef(({className:e,...t},n)=>a.jsx("div",{ref:n,className:Re("text-sm font-semibold",e),...t}));rk.displayName="ToastTitle";const ik=k.forwardRef(({className:e,...t},n)=>a.jsx("div",{ref:n,className:Re("text-sm opacity-90",e),...t}));ik.displayName="ToastDescription";function v4(){const{toasts:e}=jP();return a.jsxs(ek,{children:[e.map(function({id:t,title:n,description:s,action:i,...l}){return a.jsxs(nk,{...l,children:[a.jsxs("div",{className:"grid gap-1",children:[n&&a.jsx(rk,{children:n}),s&&a.jsx(ik,{children:s})]}),i,a.jsx(sk,{})]},t)}),a.jsx(tk,{})]})}var El=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(){}},x4={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},gr,Ep,N1,w4=(N1=class{constructor(){we(this,gr,x4);we(this,Ep,!1)}setTimeoutProvider(e){ce(this,gr,e)}setTimeout(e,t){return M(this,gr).setTimeout(e,t)}clearTimeout(e){M(this,gr).clearTimeout(e)}setInterval(e,t){return M(this,gr).setInterval(e,t)}clearInterval(e){M(this,gr).clearInterval(e)}},gr=new WeakMap,Ep=new WeakMap,N1),ri=new w4;function b4(e){setTimeout(e,0)}var xi=typeof window>"u"||"Deno"in globalThis;function sn(){}function k4(e,t){return typeof e=="function"?e(t):e}function Tm(e){return typeof e=="number"&&e>=0&&e!==1/0}function ok(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Cr(e,t){return typeof e=="function"?e(t):e}function En(e,t){return typeof e=="function"?e(t):e}function j0(e,t){const{type:n="all",exact:s,fetchStatus:i,predicate:l,queryKey:c,stale:d}=e;if(c){if(s){if(t.queryHash!==Ip(c,t.options))return!1}else if(!ul(t.queryKey,c))return!1}if(n!=="all"){const f=t.isActive();if(n==="active"&&!f||n==="inactive"&&f)return!1}return!(typeof d=="boolean"&&t.isStale()!==d||i&&i!==t.state.fetchStatus||l&&!l(t))}function C0(e,t){const{exact:n,status:s,predicate:i,mutationKey:l}=e;if(l){if(!t.options.mutationKey)return!1;if(n){if(cl(t.options.mutationKey)!==cl(l))return!1}else if(!ul(t.options.mutationKey,l))return!1}return!(s&&t.state.status!==s||i&&!i(t))}function Ip(e,t){return((t==null?void 0:t.queryKeyHashFn)||cl)(e)}function cl(e){return JSON.stringify(e,(t,n)=>_m(n)?Object.keys(n).sort().reduce((s,i)=>(s[i]=n[i],s),{}):n)}function ul(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>ul(e[n],t[n])):!1}var S4=Object.prototype.hasOwnProperty;function ak(e,t){if(e===t)return e;const n=A0(e)&&A0(t);if(!n&&!(_m(e)&&_m(t)))return t;const i=(n?e:Object.keys(e)).length,l=n?t:Object.keys(t),c=l.length,d=n?new Array(c):{};let f=0;for(let m=0;m<c;m++){const p=n?m:l[m],g=e[p],x=t[p];if(g===x){d[p]=g,(n?m<i:S4.call(e,p))&&f++;continue}if(g===null||x===null||typeof g!="object"||typeof x!="object"){d[p]=x;continue}const N=ak(g,x);d[p]=N,N===g&&f++}return i===c&&f===i?e:d}function Rm(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function A0(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function _m(e){if(!P0(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!P0(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function P0(e){return Object.prototype.toString.call(e)==="[object Object]"}function N4(e){return new Promise(t=>{ri.setTimeout(t,e)})}function Dm(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?ak(e,t):t}function j4(e,t,n=0){const s=[...e,t];return n&&s.length>n?s.slice(1):s}function C4(e,t,n=0){const s=[t,...e];return n&&s.length>n?s.slice(0,-1):s}var Bp=Symbol();function lk(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Bp?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function A4(e,t){return typeof e=="function"?e(...t):!!e}
vendor: 5,702 bytes, line 305
305var ai,yr,go,j1,P4=(j1=class extends El{constructor(){super();we(this,ai);we(this,yr);we(this,go);ce(this,go,t=>{if(!xi&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){M(this,yr)||this.setEventListener(M(this,go))}onUnsubscribe(){var t;this.hasListeners()||((t=M(this,yr))==null||t.call(this),ce(this,yr,void 0))}setEventListener(t){var n;ce(this,go,t),(n=M(this,yr))==null||n.call(this),ce(this,yr,t(s=>{typeof s=="boolean"?this.setFocused(s):this.onFocus()}))}setFocused(t){M(this,ai)!==t&&(ce(this,ai,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof M(this,ai)=="boolean"?M(this,ai):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},ai=new WeakMap,yr=new WeakMap,go=new WeakMap,j1),Vp=new P4;function Mm(){let e,t;const n=new Promise((i,l)=>{e=i,t=l});n.status="pending",n.catch(()=>{});function s(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{s({status:"fulfilled",value:i}),e(i)},n.reject=i=>{s({status:"rejected",reason:i}),t(i)},n}var E4=b4;function T4(){let e=[],t=0,n=d=>{d()},s=d=>{d()},i=E4;const l=d=>{t?e.push(d):i(()=>{n(d)})},c=()=>{const d=e;e=[],d.length&&i(()=>{s(()=>{d.forEach(f=>{n(f)})})})};return{batch:d=>{let f;t++;try{f=d()}finally{t--,t||c()}return f},batchCalls:d=>(...f)=>{l(()=>{d(...f)})},schedule:l,setNotifyFunction:d=>{n=d},setBatchNotifyFunction:d=>{s=d},setScheduler:d=>{i=d}}}var Ft=T4(),yo,vr,vo,C1,R4=(C1=class extends El{constructor(){super();we(this,yo,!0);we(this,vr);we(this,vo);ce(this,vo,t=>{if(!xi&&window.addEventListener){const n=()=>t(!0),s=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",s)}}})}onSubscribe(){M(this,vr)||this.setEventListener(M(this,vo))}onUnsubscribe(){var t;this.hasListeners()||((t=M(this,vr))==null||t.call(this),ce(this,vr,void 0))}setEventListener(t){var n;ce(this,vo,t),(n=M(this,vr))==null||n.call(this),ce(this,vr,t(this.setOnline.bind(this)))}setOnline(t){M(this,yo)!==t&&(ce(this,yo,t),this.listeners.forEach(s=>{s(t)}))}isOnline(){return M(this,yo)}},yo=new WeakMap,vr=new WeakMap,vo=new WeakMap,C1),Wu=new R4;function _4(e){return Math.min(1e3*2**e,3e4)}function ck(e){return(e??"online")==="online"?Wu.isOnline():!0}var Fm=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function uk(e){let t=!1,n=0,s;const i=Mm(),l=()=>i.status!=="pending",c=w=>{var S;if(!l()){const j=new Fm(w);x(j),(S=e.onCancel)==null||S.call(e,j)}},d=()=>{t=!0},f=()=>{t=!1},m=()=>Vp.isFocused()&&(e.networkMode==="always"||Wu.isOnline())&&e.canRun(),p=()=>ck(e.networkMode)&&e.canRun(),g=w=>{l()||(s==null||s(),i.resolve(w))},x=w=>{l()||(s==null||s(),i.reject(w))},N=()=>new Promise(w=>{var S;s=j=>{(l()||m())&&w(j)},(S=e.onPause)==null||S.call(e)}).then(()=>{var w;s=void 0,l()||(w=e.onContinue)==null||w.call(e)}),b=()=>{if(l())return;let w;const S=n===0?e.initialPromise:void 0;try{w=S??e.fn()}catch(j){w=Promise.reject(j)}Promise.resolve(w).then(g).catch(j=>{var V;if(l())return;const P=e.retry??(xi?0:3),A=e.retryDelay??_4,E=typeof A=="function"?A(n,j):A,D=P===!0||typeof P=="number"&&n<P||typeof P=="function"&&P(n,j);if(t||!D){x(j);return}n++,(V=e.onFail)==null||V.call(e,n,j),N4(E).then(()=>m()?void 0:N()).then(()=>{t?x(j):b()})})};return{promise:i,status:()=>i.status,cancel:c,continue:()=>(s==null||s(),i),cancelRetry:d,continueRetry:f,canStart:p,start:()=>(p()?b():N().then(b),i)}}var li,A1,dk=(A1=class{constructor(){we(this,li)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Tm(this.gcTime)&&ce(this,li,ri.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(xi?1/0:300*1e3))}clearGcTimeout(){M(this,li)&&(ri.clearTimeout(M(this,li)),ce(this,li,void 0))}},li=new WeakMap,A1),ci,xo,Pn,ui,Et,kl,di,Vn,_s,P1,D4=(P1=class extends dk{constructor(t){super();we(this,Vn);we(this,ci);we(this,xo);we(this,Pn);we(this,ui);we(this,Et);we(this,kl);we(this,di);ce(this,di,!1),ce(this,kl,t.defaultOptions),this.setOptions(t.options),this.observers=[],ce(this,ui,t.client),ce(this,Pn,M(this,ui).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,ce(this,ci,E0(this.options)),this.state=t.state??M(this,ci),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=M(this,Et))==null?void 0:t.promise}setOptions(t){if(this.options={...M(this,kl),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=E0(this.options);n.data!==void 0&&(this.setData(n.data,{updatedAt:n.dataUpdatedAt,manual:!0}),ce(this,ci,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&M(this,Pn).remove(this)}setData(t,n){const s=Dm(this.state.data,t,this.options);return Oe(this,Vn,_s).call(this,{data:s,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),s}setState(t,n){Oe(this,Vn,_s).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var s,i;const n=(s=M(this,Et))==null?void 0:s.promise;return(i=M(this,Et))==null||i.cancel(t),n?n.then(sn).catch(sn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(M(this,ci))}isActive(){return this.observers.some(t=>En(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Bp||this.state.dataUpdateCount+this.state.errorUpdate
305Count===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Cr(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!ok(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(s=>s.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=M(this,Et))==null||n.continue()}onOnline(){var n;const t=this.observers.find(s=>s.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=M(this,Et))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),M(this,Pn).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(M(this,Et)&&(M(this,di)?M(this,Et).cancel({revert:!0}):M(this,Et).cancelRetry()),this.scheduleGc()),M(this,Pn).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Oe(this,Vn,_s).call(this,{type:"invalidate"})}async fetch(t,n){var f,m,p,g,x,N,b,w,S,j,P,A;if(this.state.fetchStatus!=="idle"&&((f=M(this,Et))==null?void 0:f.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(M(this,Et))return M(this,Et).continueRetry(),M(this,Et).promise}if(t&&this.setOptions(t),!this.options.queryFn){const E=this.observers.find(D=>D.options.queryFn);E&&this.setOptions(E.options)}const s=new AbortController,i=E=>{Object.defineProperty(E,"signal",{enumerable:!0,get:()=>(ce(this,di,!0),s.signal)})},l=()=>{const E=lk(this.options,n),V=(()=>{const B={client:M(this,ui),queryKey:this.queryKey,meta:this.meta};return i(B),B})();return ce(this,di,!1),this.options.persister?this.options.persister(E,V,this):E(V)},d=(()=>{const E={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:M(this,ui),state:this.state,fetchFn:l};return i(E),E})();(m=this.options.behavior)==null||m.onFetch(d,this),ce(this,xo,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((p=d.fetchOptions)==null?void 0:p.meta))&&Oe(this,Vn,_s).call(this,{type:"fetch",meta:(g=d.fetchOptions)==null?void 0:g.meta}),ce(this,Et,uk({initialPromise:n==null?void 0:n.initialPromise,fn:d.fetchFn,onCancel:E=>{E instanceof Fm&&E.revert&&this.setState({...M(this,xo),fetchStatus:"idle"}),s.abort()},onFail:(E,D)=>{Oe(this,Vn,_s).call(this,{type:"failed",failureCount:E,error:D})},onPause:()=>{Oe(this,Vn,_s).call(this,{type:"pause"})},onContinue:()=>{Oe(this,Vn,_s).call(this,{type:"continue"})},retry:d.options.retry,retryDelay:d.options.retryDelay,networkMode:d.options.networkMode,canRun:()=>!0}));try{const E=await M(this,Et).start();if(E===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(E),(N=(x=M(this,Pn).config).onSuccess)==null||N.call(x,E,this),(w=(b=M(this,Pn).config).onSettled)==null||w.call(b,E,this.state.error,this),E}catch(E){if(E instanceof Fm){if(E.silent)return M(this,Et).promise;if(E.revert){if(this.state.data===void 0)throw E;return this.state.data}}throw Oe(this,Vn,_s).call(this,{type:"error",error:E}),(j=(S=M(this,Pn).config).onError)==null||j.call(S,E,this),(A=(P=M(this,Pn).config).onSettled)==null||A.call(P,this.state.data,E,this),E}finally{this.scheduleGc()}}},ci=new WeakMap,xo=new WeakMap,Pn=new WeakMap,ui=new WeakMap,Et=new WeakMap,kl=new WeakMap,di=new WeakMap,Vn=new WeakSet,_s=function(t){const n=s=>{switch(t.type){case"failed":return{...s,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,...hk(s.data,this.options),fetchMeta:t.meta??null};case"success":const i={...s,data:t.data,dataUpdateCount:s.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return ce(this,xo,t.manual?i:void 0),i;case"error":const l=t.error;
vendor: 13,782 bytes, line 305
305return{...s,error:l,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:l,fetchStatus:"idle",status:"error"};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...t.state}}};this.state=n(this.state),Ft.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),M(this,Pn).notify({query:this,type:"updated",action:t})})},P1);function hk(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:ck(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function E0(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,s=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var nn,Le,Sl,Yt,hi,wo,Ds,xr,Nl,bo,ko,fi,mi,wr,So,$e,Ua,Om,Lm,Im,Bm,Vm,zm,Um,fk,E1,M4=(E1=class extends El{constructor(t,n){super();we(this,$e);we(this,nn);we(this,Le);we(this,Sl);we(this,Yt);we(this,hi);we(this,wo);we(this,Ds);we(this,xr);we(this,Nl);we(this,bo);we(this,ko);we(this,fi);we(this,mi);we(this,wr);we(this,So,new Set);this.options=n,ce(this,nn,t),ce(this,xr,null),ce(this,Ds,Mm()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(M(this,Le).addObserver(this),T0(M(this,Le),this.options)?Oe(this,$e,Ua).call(this):this.updateResult(),Oe(this,$e,Bm).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return $m(M(this,Le),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return $m(M(this,Le),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Oe(this,$e,Vm).call(this),Oe(this,$e,zm).call(this),M(this,Le).removeObserver(this)}setOptions(t){const n=this.options,s=M(this,Le);if(this.options=M(this,nn).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof En(this.options.enabled,M(this,Le))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Oe(this,$e,Um).call(this),M(this,Le).setOptions(this.options),n._defaulted&&!Rm(this.options,n)&&M(this,nn).getQueryCache().notify({type:"observerOptionsUpdated",query:M(this,Le),observer:this});const i=this.hasListeners();i&&R0(M(this,Le),s,this.options,n)&&Oe(this,$e,Ua).call(this),this.updateResult(),i&&(M(this,Le)!==s||En(this.options.enabled,M(this,Le))!==En(n.enabled,M(this,Le))||Cr(this.options.staleTime,M(this,Le))!==Cr(n.staleTime,M(this,Le)))&&Oe(this,$e,Om).call(this);const l=Oe(this,$e,Lm).call(this);i&&(M(this,Le)!==s||En(this.options.enabled,M(this,Le))!==En(n.enabled,M(this,Le))||l!==M(this,wr))&&Oe(this,$e,Im).call(this,l)}getOptimisticResult(t){const n=M(this,nn).getQueryCache().build(M(this,nn),t),s=this.createResult(n,t);return O4(this,s)&&(ce(this,Yt,s),ce(this,wo,this.options),ce(this,hi,M(this,Le).state)),s}getCurrentResult(){return M(this,Yt)}trackResult(t,n){return new Proxy(t,{get:(s,i)=>(this.trackProp(i),n==null||n(i),i==="promise"&&!this.options.experimental_prefetchInRender&&M(this,Ds).status==="pending"&&M(this,Ds).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(s,i))})}trackProp(t){M(this,So).add(t)}getCurrentQuery(){return M(this,Le)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=M(this,nn).defaultQueryOptions(t),s=M(this,nn).getQueryCache().build(M(this,nn),n);return s.fetch().then(()=>this.createResult(s,n))}fetch(t){return Oe(this,$e,Ua).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),M(this,Yt)))}createResult(t,n){var ne;const s=M(this,Le),i=this.options,l=M(this,Yt),c=M(this,hi),d=M(this,wo),m=t!==s?t.state:M(this,Sl),{state:p}=t;let g={...p},x=!1,N;if(n._optimisticResults){const Q=this.hasListeners(),re=!Q&&T0(t,n),ie=Q&&R0(t,s,n,i);(re||ie)&&(g={...g,...hk(p.data,t.options)}),n._optimisticResults==="isRestoring"&&(g.fetchStatus="idle")}let{error:b,errorUpdatedAt:w,status:S}=g;N=g.data;let j=!1;if(n.placeholderData!==void 0&&N===void 0&&S==="pending"){let Q;l!=null&&l.isPlaceholderData&&n.placeholderData===(d==null?void 0:d.placeholderData)?(Q=l.data,j=!0):Q=typeof n.placeholderData=="function"?n.placeholderData((ne=M(this,ko))==null?void 0:ne.state.data,M(this,ko)):n.placeholderData,Q!==void 0&&(S="success",N=Dm(l==null?void 0:l.data,Q,n),x=!0)}if(n.select&&N!==void 0&&!j)if(l&&N===(c==null?void 0:c.data)&&n.select===M(this,Nl))N=M(this,bo);else try{ce(this,Nl,n.select),N=n.select(N),N=Dm(l==null?void 0:l.data,N,n),ce(this,bo,N),ce(this,xr,null)}catch(Q){ce(this,xr,Q)}M(this,xr)&&(b=M(this,xr),N=M(this,bo),w=Date.now(),S="error");const P=g.fetchStatus==="fetching",A=S==="pending",E=S==="error",D=A&&P,V=N!==void 0,L={status:S,fetchStatus:g.fetchStatus,isPending:A,isSuccess:S==="success",isError:E,isInitialLoading:D,isLoading:D,data:N,dataUpdatedAt:g.dataUpdatedAt,error:b,errorUpdatedAt:w,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:g.dataUpdateCount>0||g.errorUpdateCount>0,isFetchedAfterMount:g.dataUpdateCount>m.dataUpdateCount||g.errorUpdateCount>m.errorUpdateCount,isFetching:P,isRefetching:P&&!A,isLoadingError:E&&!V,isPaused:g.fetchStatus==="paused",isPlaceholderData:x,isRefetchError:E&&V,isStale:zp(t,n),refetch:this.refetch,promise:M(this,Ds),isEnabled:En(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const Q=I=>{L.status==="error"?I.reject(L.error):L.data!==void 0&&I.resolve(L.data)},re=()=>{const I=ce(this,Ds,L.promise=Mm());Q(I)},ie=M(this,Ds);switch(ie.status){case"pending":t.queryHash===s.queryHash&&Q(ie);break;case"fulfilled":(L.status==="error"||L.data!==ie.value)&&re();break;case"rejected":(L.status!=="error"||L.error!==ie.reason)&&re();break}}return L}updateResult(){const t=M(this,Yt),n=this.createResult(M(this,Le),this.options);if(ce(this,hi,M(this,Le).state),ce(this,wo,this.options),M(this,hi).data!==void 0&&ce(this,ko,M(this,Le)),Rm(n,t))return;ce(this,Yt,n);const s=()=>{if(!t)return!0;const{notifyOnChangeProps:i}=this.options,l=typeof i=="function"?i():i;if(l==="all"||!l&&!M(this,So).size)return!0;const c=new Set(l??M(this,So));return this.options.throwOnError&&c.add("error"),Object.keys(M(this,Yt)).some(d=>{const f=d;return M(this,Yt)[f]!==t[f]&&c.has(f)})};Oe(this,$e,fk).call(this,{listeners:s()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Oe(this,$e,Bm).call(this)}},nn=new WeakMap,Le=new WeakMap,Sl=new WeakMap,Yt=new WeakMap,hi=new WeakMap,wo=new WeakMap,Ds=new WeakMap,xr=new WeakMap,Nl=new WeakMap,bo=new WeakMap,ko=new WeakMap,fi=new WeakMap,mi=new WeakMap,wr=new WeakMap,So=new WeakMap,$e=new WeakSet,Ua=function(t){Oe(this,$e,Um).call(this);let n=M(this,Le).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(sn)),n},Om=function(){Oe(this,$e,Vm).call(this);const t=Cr(this.options.staleTime,M(this,Le));if(xi||M(this,Yt).isStale||!Tm(t))return;const s=ok(M(this,Yt).dataUpdatedAt,t)+1;ce(this,fi,ri.setTimeout(()=>{M(this,Yt).isStale||this.updateResult()},s))},Lm=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(M(this,Le)):this.options.refetchInterval)??!1},Im=function(t){Oe(this,$e,zm).call(this),ce(this,wr,t),!(xi||En(this.options.enabled,M(this,Le))===!1||!Tm(M(this,wr))||M(this,wr)===0)&&ce(this,mi,ri.setInterval(()=>{(this.options.refetchIntervalInBackground||Vp.isFocused())&&Oe(this,$e,Ua).call(this)},M(this,wr)))},Bm=function(){Oe(this,$e,Om).call(this),Oe(this,$e,Im).call(this,Oe(this,$e,Lm).call(this))},Vm=function(){M(this,fi)&&(ri.clearTimeout(M(this,fi)),ce(this,fi,void 0))},zm=function(){M(this,mi)&&(ri.clearInterval(M(this,mi)),ce(this,mi,void 0))},Um=function(){const t=M(this,nn).getQueryCache().build(M(this,nn),this.options);if(t===M(this,Le))return;const n=M(this,Le);ce(this,Le,t),ce(this,Sl,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},fk=function(t){Ft.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(M(this,Yt))}),M(this,nn).getQueryCache().notify({query:M(this,Le),type:"observerResultsUpdated"})})},E1);function F4(e,t){return En(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function T0(e,t){return F4(e,t)||e.state.data!==void 0&&$m(e,t,t.refetchOnMount)}function $m(e,t,n){if(En(t.enabled,e)!==!1&&Cr(t.staleTime,e)!=="static"){const s=typeof n=="function"?n(e):n;return s==="always"||s!==!1&&zp(e,t)}return!1}function R0(e,t,n,s){return(e!==t||En(s.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&zp(e,n)}function zp(e,t){return En(t.enabled,e)!==!1&&e.isStaleByTime(Cr(t.staleTime,e))}function O4(e,t){return!Rm(e.getCurrentResult(),t)}function _0(e){return{onFetch:(t,n)=>{var p,g,x,N,b;const s=t.options,i=(x=(g=(p=t.fetchOptions)==null?void 0:p.meta)==null?void 0:g.fetchMore)==null?void 0:x.direction,l=((N=t.state.data)==null?void 0:N.pages)||[],c=((b=t.state.data)==null?void 0:b.pageParams)||[];let d={pages:[],pageParams:[]},f=0;const m=async()=>{let w=!1;const S=A=>{Object.defineProperty(A,"signal",{enumerable:!0,get:()=>(t.signal.aborted?w=!0:t.signal.addEventListener("abort",()=>{w=!0}),t.signal)})},j=lk(t.options,t.fetchOptions),P=async(A,E,D)=>{if(w)return Promise.reject();if(E==null&&A.pages.length)return Promise.resolve(A);const B=(()=>{const re={client:t.client,queryKey:t.queryKey,pageParam:E,direction:D?"backward":"forward",meta:t.options.meta};return S(re),re})(),L=await j(B),{maxPages:ne}=t.options,Q=D?C4:j4;return{pages:Q(A.pages,L,ne),pageParams:Q(A.pageParams,E,ne)}};if(i&&l.length){const A=i==="backward",E=A?L4:D0,D={pages:l,pageParams:c},V=E(s,D);d=await P(D,V,A)}else{const A=e??l.length;do{const E=f===0?c[0]??s.initialPageParam:D0(s,d);if(f>0&&E==null)break;d=await P(d,E),f++}while(f<A)}return d};t.options.persister?t.fetchFn=()=>{var w,S;return(S=(w=t.options).persister)==null?void 0:S.call(w,m,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=m}}}function D0(e,{pages:t,pageParams:n}){const s=t.length-1;return t.length>0?e.getNextPageParam(t[s],t,n[s],n):void 0}function L4(e,{pages:t,pageParams:n}){var s;return t.length>0?(s=e.getPreviousPageParam)==null?void 0:s.call(e,t[0],t,n[0],n):void 0}var jl,os,Kt,pi,as,hr,T1,I4=(T1=class extends dk{constructor(t){super();we(this,as);we(this,jl);we(this,os);we(this,Kt);we(this,pi);ce(this,jl,t.client),this.mutationId=t.mutationId,ce(this,Kt,t.mutationCache),ce(this,os,[]),this.state=t.state||B4(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){M(this,os).includes(t)||(M(this,os).push(t),this.clearGcTimeout(),M(this,Kt).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){ce(this,os,M(this,os).filter(n=>n!==t)),this.scheduleGc(),M(this,Kt).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){M(this,os).length||(this.state.status==="pending"?this.scheduleGc():M(this,Kt).remove(this))}continue(){var t;return((t=M(this,pi))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var c,d,f,m,p,g,x,N,b,w,S,j,P,A,E,D,V,B,L,ne;const n=()=>{Oe(this,as,hr).call(this,{type:"continue"})},s={client:M(this,jl),meta:this.options.meta,mutationKey:this.options.mutationKey};ce(this,pi,uk({fn:()=>this.options.mutationFn?this.options.mutationFn(t,s):Promise.reject(new Error("No mutationFn found")),onFail:(Q,re)=>{Oe(this,as,hr).call(this,{type:"failed",failureCount:Q,error:re})},onPause:()=>{Oe(this,as,hr).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>M(this,Kt).canRun(this)}));const i=this.state.status==="pending",l=!M(this,pi).canStart();try{if(i)n();else{Oe(this,as,hr).call(this,{type:"pending",variables:t,isPaused:l}),await((d=(c=M(this,Kt).config).onMutate)==null?void 0:d.call(c,t,this,s));const re=await((m=(f=this.options).onMutate)==null?void 0:m.call(f,t,s));re!==this.state.context&&Oe(this,as,hr).call(this,{type:"pending",context:re,variables:t,isPaused:l})}const Q=await M(this,pi).start();return await((g=(p=M(this,Kt).config).onSuccess)==null?void 0:g.call(p,Q,t,this.state.context,this,s)),await((N=(x=this.options).onSuccess)==null?void 0:N.call(x,Q,t,this.state.context,s)),await((w=(b=M(this,Kt).config).onSettled)==null?void 0:w.call(b,Q,null,this.state.variables,this.state.context,this,s)),await((j=(S=this.options).onSettled)==null?void 0:j.call(S,Q,null,t,this.state.context,s)),Oe(this,as,hr).call(this,{type:"success",data:Q}),Q}catch(Q){try{throw await((A=(P=M(this,Kt).config).onError)==null?void 0:A.call(P,Q,t,this.state.context,this,s)),await((D=(E=this.options).onError)==null?void 0:D.call(E,Q,t,this.state.context,s)),await((B=(V=M(this,Kt).config).onSettled)==null?void 0:B.call(V,void 0,Q,this.state.variables,this.state.context,this,s)),await((ne=(L=this.options).onSettled)==null?void 0:ne.call(L,void 0,Q,t,this.state.context,s)),Q}finally{Oe(this,as,hr).call(this,{type:"error",error:Q})}}finally{M(this,Kt).runNext(this)}}},jl=new WeakMap,os=new WeakMap,Kt=new WeakMap,pi=new WeakMap,as=new WeakSet,hr=function(t){const n=s=>{switch(t.type){case"failed":return{...s,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};
305case"pending":return{...s,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...s,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:t.error,failureCount:s.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Ft.batch(()=>{M(this,os).forEach(s=>{s.onMutationUpdate(t)}),M(this,Kt).notify({mutation:this,type:"updated",action:t})})},T1);function B4(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Ms,zn,Cl,R1,V4=(R1=class extends El{constructor(t={}){super();we(this,Ms);we(this,zn);we(this,Cl);this.config=t,ce(this,Ms,new Set),ce(this,zn,new Map),ce(this,Cl,0)}build(t,n,s){const i=new I4({client:t,mutationCache:this,mutationId:++iu(this,Cl)._,options:t.defaultMutationOptions(n),state:s});return this.add(i),i}add(t){M(this,Ms).add(t);const n=cu(t);if(typeof n=="string"){const s=M(this,zn).get(n);s?s.push(t):M(this,zn).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(M(this,Ms).delete(t)){const n=cu(t);if(typeof n=="string"){const s=M(this,zn).get(n);if(s)if(s.length>1){const i=s.indexOf(t);i!==-1&&s.splice(i,1)}else s[0]===t&&M(this,zn).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=cu(t);if(typeof n=="string"){const s=M(this,zn).get(n),i=s==null?void 0:s.find(l=>l.state.status==="pending");return!i||i===t}else return!0}runNext(t){var s;const n=cu(t);if(typeof n=="string"){const i=(s=M(this,zn).get(n))==null?void 0:s.find(l=>
vendor: 6,869 bytes, line 305
305l!==t&&l.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Ft.batch(()=>{M(this,Ms).forEach(t=>{this.notify({type:"removed",mutation:t})}),M(this,Ms).clear(),M(this,zn).clear()})}getAll(){return Array.from(M(this,Ms))}find(t){const n={exact:!0,...t};return this.getAll().find(s=>C0(n,s))}findAll(t={}){return this.getAll().filter(n=>C0(t,n))}notify(t){Ft.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Ft.batch(()=>Promise.all(t.map(n=>n.continue().catch(sn))))}},Ms=new WeakMap,zn=new WeakMap,Cl=new WeakMap,R1);function cu(e){var t;return(t=e.options.scope)==null?void 0:t.id}var ls,_1,z4=(_1=class extends El{constructor(t={}){super();we(this,ls);this.config=t,ce(this,ls,new Map)}build(t,n,s){const i=n.queryKey,l=n.queryHash??Ip(i,n);let c=this.get(l);return c||(c=new D4({client:t,queryKey:i,queryHash:l,options:t.defaultQueryOptions(n),state:s,defaultOptions:t.getQueryDefaults(i)}),this.add(c)),c}add(t){M(this,ls).has(t.queryHash)||(M(this,ls).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=M(this,ls).get(t.queryHash);n&&(t.destroy(),n===t&&M(this,ls).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Ft.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return M(this,ls).get(t)}getAll(){return[...M(this,ls).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(s=>j0(n,s))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(s=>j0(t,s)):n}notify(t){Ft.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Ft.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Ft.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},ls=new WeakMap,_1),lt,br,kr,No,jo,Sr,Co,Ao,D1,U4=(D1=class{constructor(e={}){we(this,lt);we(this,br);we(this,kr);we(this,No);we(this,jo);we(this,Sr);we(this,Co);we(this,Ao);ce(this,lt,e.queryCache||new z4),ce(this,br,e.mutationCache||new V4),ce(this,kr,e.defaultOptions||{}),ce(this,No,new Map),ce(this,jo,new Map),ce(this,Sr,0)}mount(){iu(this,Sr)._++,M(this,Sr)===1&&(ce(this,Co,Vp.subscribe(async e=>{e&&(await this.resumePausedMutations(),M(this,lt).onFocus())})),ce(this,Ao,Wu.subscribe(async e=>{e&&(await this.resumePausedMutations(),M(this,lt).onOnline())})))}unmount(){var e,t;iu(this,Sr)._--,M(this,Sr)===0&&((e=M(this,Co))==null||e.call(this),ce(this,Co,void 0),(t=M(this,Ao))==null||t.call(this),ce(this,Ao,void 0))}isFetching(e){return M(this,lt).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return M(this,br).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=M(this,lt).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=M(this,lt).build(this,t),s=n.state.data;return s===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Cr(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(s))}getQueriesData(e){return M(this,lt).findAll(e).map(({queryKey:t,state:n})=>{const s=n.data;return[t,s]})}setQueryData(e,t,n){const s=this.defaultQueryOptions({queryKey:e}),i=M(this,lt).get(s.queryHash),l=i==null?void 0:i.state.data,c=k4(t,l);if(c!==void 0)return M(this,lt).build(this,s).setData(c,{...n,manual:!0})}setQueriesData(e,t,n){return Ft.batch(()=>M(this,lt).findAll(e).map(({queryKey:s})=>[s,this.setQueryData(s,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=M(this,lt).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=M(this,lt);Ft.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=M(this,lt);return Ft.batch(()=>(n.findAll(e).forEach(s=>{s.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},s=Ft.batch(()=>M(this,lt).findAll(e).map(i=>i.cancel(n)));return Promise.all(s).then(sn).catch(sn)}invalidateQueries(e,t={}){return Ft.batch(()=>(M(this,lt).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},s=Ft.batch(()=>M(this,lt).findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let l=i.fetch(void 0,n);return n.throwOnError||(l=l.catch(sn)),i.state.fetchStatus==="paused"?Promise.resolve():l}));return Promise.all(s).then(sn)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=M(this,lt).build(this,t);return n.isStaleByTime(Cr(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(sn).catch(sn)}fetchInfiniteQuery(e){return e.behavior=_0(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(sn).catch(sn)}ensureInfiniteQueryData(e){return e.behavior=_0(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Wu.isOnline()?M(this,br).resumePausedMutations():Promise.resolve()}getQueryCache(){return M(this,lt)}getMutationCache(){return M(this,br)}getDefaultOptions(){return M(this,kr)}setDefaultOptions(e){ce(this,kr,e)}setQueryDefaults(e,t){M(this,No).set(cl(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...M(this,No).values()],n={};return t.forEach(s=>{ul(e,s.queryKey)&&Object.assign(n,s.defaultOptions)}),n}setMutationDefaults(e,t){M(this,jo).set(cl(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...M(this,jo).values()],n={};return t.forEach(s=>{ul(e,s.mutationKey)&&Object.assign(n,s.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...M(this,kr).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Ip(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.queryFn===Bp&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...M(this,kr).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){M(this,lt).clear(),M(this,br).clear()}},lt=new WeakMap,br=new WeakMap,kr=new WeakMap,No=new WeakMap,jo=new WeakMap,Sr=new WeakMap,Co=new WeakMap,Ao=new WeakMap,D1),mk=k.createContext(void 0),$4=e=>{const t=k.useContext(mk);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},W4=({client:e,children:t})=>(k.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),a.jsx(mk.Provider,{value:e,children:t})),pk=k.createContext(!1),H4=()=>k.useContext(pk);pk.Provider;function q4(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}
305var G4=k.createContext(q4()),Y4=()=>k.useContext(G4),K4=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},Q4=e=>{k.useEffect(()=>{e.clearReset()},[e])},X4=({result:e,errorResetBoundary:t,throwOnError:n,query:s,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&s&&(i&&e.data===void 0||A4(n,[e.error,s])),J4=e=>{if(e.suspense){const n=i=>i==="static"?i:Math.max(i??1e3,1e3),s=e.staleTime;e.staleTime=typeof s=="function"?(...i)=>n(s(...i)):n(s),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},Z4=(e,t)=>e.isLoading&&e.isFetching&&!t,eT=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,M0=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function tT(e,t,n){var g,x,N,b,w;const s=H4(),i=Y4(),l=$4(),c=l.defaultQueryOptions(e);(x=(g=l.getDefaultOptions().queries)==null?void 0:g._experimental_beforeQuery)==null||x.call(g,c),c._optimisticResults=s?"isRestoring":"optimistic",J4(c),K4(c,i),Q4(i);const d=!l.getQueryCache().get(c.queryHash),[f]=k.useState(()=>new t(l,c)),m=f.getOptimisticResult(c),p=!s&&e.subscribed!==!1;if(k.useSyncExternalStore(k.useCallback(S=>{const j=p?f.subscribe(Ft.batchCalls(S)):sn;return f.updateResult(),j},[f,p]),()=>f.getCurrentResult(),()=>f.getCurrentResult()),k.useEffect(()=>{f.setOptions(c)},[c,f]),eT(c,m))throw M0(c,f,i);if(X4({result:m,errorResetBoundary:i,throwOnError:c.throwOnError,query:l.getQueryCache().get(c.queryHash),suspense:c.suspense}))throw m.error;if((b=(N=l.getDefaultOptions().queries)==null?void 0:N._experimental_afterQuery)==null||b.call(N,c,m),c.experimental_prefetchInRender&&!xi&&Z4(m,s)){const S=d?M0(c,f,i):(w=l.getQueryCache().get(c.queryHash))==null?void 0:w.promise;S==null||S.catch(sn).finally(()=>{f.updateResult()})}return c.notifyOnChangeProps?m:f.trackResult(m)}function Hu(e,t){return tT(e,M4)}const nT=new U4({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:1}}});var Up=M1();const sT=Tp(Up);/**
306 * @remix-run/router v1.23.0
307 *
308 * Copyright (c) Remix Software Inc.
309 *
310 * This source code is licensed under the MIT license found in the
311 * LICENSE.md file in the root directory of this source tree.
312 *
313 * @license MIT
314 */function dl(){return dl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},dl.apply(this,arguments)}var jr;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(jr||(jr={}));const F0="popstate";function rT(e){e===void 0&&(e={});function t(s,i){let{pathname:l,search:c,hash:d}=s.location;return Wm("",{pathname:l,search:c,hash:d},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(s,i){return typeof i=="string"?i:qu(i)}return oT(t,n,null,e)}function kt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function gk(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function iT(){return Math.random().toString(36).substr(2,8)}function O0(e,t){return{usr:e.state,key:e.key,idx:t}}function Wm(e,t,n,s){return n===void 0&&(n=null),dl({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Bo(t):t,{state:n,key:t&&t.key||s||iT()})}function qu(e){let{pathname:t="/",search:n="",hash:s=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),s&&s!=="#"&&(t+=s.charAt(0)==="#"?s:"#"+s),t}function Bo(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let s=e.indexOf("?");s>=0&&(t.search=e.substr(s),e=e.substr(0,s)),e&&(t.pathname=e)}return t}function oT(e,t,n,s){s===void 0&&(s={});let{window:i=document.defaultView,v5Compat:l=!1}=s,c=i.history,d=jr.Pop,f=null,m=p();m==null&&(m=0,c.replaceState(dl({},c.state,{idx:m}),""));function p(){return(c.state||{idx:null}).idx}function g(){d=jr.Pop;let S=p(),j=S==null?null:S-m;m=S,f&&f({action:d,location:w.location,delta:j})}function x(S,j){d=jr.Push;let P=Wm(w.location,S,j);m=p()+1;let A=O0(P,m),E=w.createHref(P);try{c.pushState(A,"",E)}catch(D){if(D instanceof DOMException&&D.name==="DataCloneError")throw D;i.location.assign(E)}l&&f&&f({action:d,location:w.location,delta:1})}function N(S,j){d=jr.Replace;let P=Wm(w.location,S,j);m=p();let A=O0(P,m),E=w.createHref(P);c.replaceState(A,"",E),l&&f&&f({action:d,location:w.location,delta:0})}function b(S){let j=i.location.origin!=="null"?i.location.origin:i.location.href,P=typeof S=="string"?S:qu(S);return P=P.replace(/ $/,"%20"),kt(j,"No window.location.(origin|href) available to create URL for href: "+P),new URL(P,j)}let w={get action(){return d},get location(){return e(i,c)},listen(S){if(f)throw new Error("A history only accepts one active listener");return i.addEventListener(F0,g),f=S,()=>{i.removeEventListener(F0,g),f=null}},createHref(S){return t(i,S)},createURL:b,encodeLocation(S){let j=b(S);return{pathname:j.pathname,search:j.search,hash:j.hash}},push:x,replace:N,go(S){return c.go(S)}};return w}var L0;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(L0||(L0={}));function aT(e,t,n){return n===void 0&&(n="/"),lT(e,t,n)}function lT(e,t,n,s){let i=typeof t=="string"?Bo(t):t,l=$p(i.pathname||"/",n);if(l==null)return null;
vendor: 11,451 bytes, lines 314-323
314let c=yk(e);cT(c);let d=null;for(let f=0;d==null&&f<c.length;++f){let m=bT(l);d=vT(c[f],m)}return d}function yk(e,t,n,s){t===void 0&&(t=[]),n===void 0&&(n=[]),s===void 0&&(s="");let i=(l,c,d)=>{let f={relativePath:d===void 0?l.path||"":d,caseSensitive:l.caseSensitive===!0,childrenIndex:c,route:l};f.relativePath.startsWith("/")&&(kt(f.relativePath.startsWith(s),'Absolute route path "'+f.relativePath+'" nested under path '+('"'+s+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),f.relativePath=f.relativePath.slice(s.length));let m=Ar([s,f.relativePath]),p=n.concat(f);l.children&&l.children.length>0&&(kt(l.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+m+'".')),yk(l.children,t,p,m)),!(l.path==null&&!l.index)&&t.push({path:m,score:gT(m,l.index),routesMeta:p})};return e.forEach((l,c)=>{var d;if(l.path===""||!((d=l.path)!=null&&d.includes("?")))i(l,c);else for(let f of vk(l.path))i(l,c,f)}),t}function vk(e){let t=e.split("/");if(t.length===0)return[];let[n,...s]=t,i=n.endsWith("?"),l=n.replace(/\?$/,"");if(s.length===0)return i?[l,""]:[l];let c=vk(s.join("/")),d=[];return d.push(...c.map(f=>f===""?l:[l,f].join("/"))),i&&d.push(...c),d.map(f=>e.startsWith("/")&&f===""?"/":f)}function cT(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:yT(t.routesMeta.map(s=>s.childrenIndex),n.routesMeta.map(s=>s.childrenIndex)))}const uT=/^:[\w-]+$/,dT=3,hT=2,fT=1,mT=10,pT=-2,I0=e=>e==="*";function gT(e,t){let n=e.split("/"),s=n.length;return n.some(I0)&&(s+=pT),t&&(s+=hT),n.filter(i=>!I0(i)).reduce((i,l)=>i+(uT.test(l)?dT:l===""?fT:mT),s)}function yT(e,t){return e.length===t.length&&e.slice(0,-1).every((s,i)=>s===t[i])?e[e.length-1]-t[t.length-1]:0}function vT(e,t,n){let{routesMeta:s}=e,i={},l="/",c=[];for(let d=0;d<s.length;++d){let f=s[d],m=d===s.length-1,p=l==="/"?t:t.slice(l.length)||"/",g=xT({path:f.relativePath,caseSensitive:f.caseSensitive,end:m},p),x=f.route;if(!g)return null;Object.assign(i,g.params),c.push({params:i,pathname:Ar([l,g.pathname]),pathnameBase:jT(Ar([l,g.pathnameBase])),route:x}),g.pathnameBase!=="/"&&(l=Ar([l,g.pathnameBase]))}return c}function xT(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,s]=wT(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let l=i[0],c=l.replace(/(.)\/+$/,"$1"),d=i.slice(1);return{params:s.reduce((m,p,g)=>{let{paramName:x,isOptional:N}=p;if(x==="*"){let w=d[g]||"";c=l.slice(0,l.length-w.length).replace(/(.)\/+$/,"$1")}const b=d[g];return N&&!b?m[x]=void 0:m[x]=(b||"").replace(/%2F/g,"/"),m},{}),pathname:l,pathnameBase:c,pattern:e}}function wT(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),gk(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let s=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(c,d,f)=>(s.push({paramName:d,isOptional:f!=null}),f?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(s.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),s]}function bT(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return gk(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function $p(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,s=e.charAt(n);return s&&s!=="/"?null:e.slice(n)||"/"}function kT(e,t){t===void 0&&(t="/");let{pathname:n,search:s="",hash:i=""}=typeof e=="string"?Bo(e):e;return{pathname:n?n.startsWith("/")?n:ST(n,t):t,search:CT(s),hash:AT(i)}}function ST(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function Lf(e,t,n,s){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(s)+"].  Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function NT(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function xk(e,t){let n=NT(e);return t?n.map((s,i)=>i===n.length-1?s.pathname:s.pathnameBase):n.map(s=>s.pathnameBase)}function wk(e,t,n,s){s===void 0&&(s=!1);let i;typeof e=="string"?i=Bo(e):(i=dl({},e),kt(!i.pathname||!i.pathname.includes("?"),Lf("?","pathname","search",i)),kt(!i.pathname||!i.pathname.includes("#"),Lf("#","pathname","hash",i)),kt(!i.search||!i.search.includes("#"),Lf("#","search","hash",i)));let l=e===""||i.pathname==="",c=l?"/":i.pathname,d;if(c==null)d=n;else{let g=t.length-1;if(!s&&c.startsWith("..")){let x=c.split("/");for(;x[0]==="..";)x.shift(),g-=1;i.pathname=x.join("/")}d=g>=0?t[g]:"/"}let f=kT(i,d),m=c&&c!=="/"&&c.endsWith("/"),p=(l||c===".")&&n.endsWith("/");return!f.pathname.endsWith("/")&&(m||p)&&(f.pathname+="/"),f}const Ar=e=>e.join("/").replace(/\/\/+/g,"/"),jT=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),CT=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,AT=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function PT(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const bk=["post","put","patch","delete"];new Set(bk);const ET=["get",...bk];new Set(ET);/**
315 * React Router v6.30.1
316 *
317 * Copyright (c) Remix Software Inc.
318 *
319 * This source code is licensed under the MIT license found in the
320 * LICENSE.md file in the root directory of this source tree.
321 *
322 * @license MIT
323 */function hl(){return hl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},hl.apply(this,arguments)}const Wp=k.createContext(null),TT=k.createContext(null),Ai=k.createContext(null),hd=k.createContext(null),Pi=k.createContext({outlet:null,matches:[],isDataRoute:!1}),kk=k.createContext(null);function RT(e,t){let{relative:n}=t===void 0?{}:t;Tl()||kt(!1);let{basename:s,navigator:i}=k.useContext(Ai),{hash:l,pathname:c,search:d}=Nk(e,{relative:n}),f=c;return s!=="/"&&(f=c==="/"?s:Ar([s,c])),i.createHref({pathname:f,search:d,hash:l})}function Tl(){return k.useContext(hd)!=null}function Vo(){return Tl()||kt(!1),k.useContext(hd).location}function Sk(e){k.useContext(Ai).static||k.useLayoutEffect(e)}function _T(){let{isDataRoute:e}=k.useContext(Pi);return e?HT():DT()}function DT(){Tl()||kt(!1);let e=k.useContext(Wp),{basename:t,future:n,navigator:s}=k.useContext(Ai),{matches:i}=k.useContext(Pi),{pathname:l}=Vo(),c=JSON.stringify(xk(i,n.v7_relativeSplatPath)),d=k.useRef(!1);return Sk(()=>{d.current=!0}),k.useCallback(function(m,p){if(p===void 0&&(p={}),!d.current)return;if(typeof m=="number"){s.go(m);return}let g=wk(m,JSON.parse(c),l,p.relative==="path");e==null&&t!=="/"&&(g.pathname=g.pathname==="/"?t:Ar([t,g.pathname])),(p.replace?s.replace:s.push)(g,p.state,p)},[t,s,c,l,e])}function Nk(e,t){let{relative:n}=t===void 0?{}:t,{future:s}=k.useContext(Ai),{matches:i}=k.useContext(Pi),{pathname:l}=Vo(),c=JSON.stringify(xk(i,s.v7_relativeSplatPath));return k.useMemo(()=>wk(e,JSON.parse(c),l,n==="path"),[e,c,l,n])}function MT(e,t){return FT(e,t)}function FT(e,t,n,s){Tl()||kt(!1);let{navigator:i}=k.useContext(Ai),{matches:l}=k.useContext(Pi),c=l[l.length-1],d=c?c.params:{};c&&c.pathname;let f=c?c.pathnameBase:"/";c&&c.route;let m=Vo(),p;if(t){var g;let S=typeof t=="string"?Bo(t):t;f==="/"||(g=S.pathname)!=null&&g.startsWith(f)||kt(!1),p=S}else p=m;let x=p.pathname||"/",N=x;if(f!=="/"){let S=f.replace(/^\//,"").split("/");N="/"+x.replace(/^\//,"").split("/").slice(S.length).join("/")}let b=aT(e,{pathname:N}),w=VT(b&&b.map(S=>Object.assign({},S,{params:Object.assign({},d,S.params),pathname:Ar([f,i.encodeLocation?i.encodeLocation(S.pathname).pathname:S.pathname]),pathnameBase:S.pathnameBase==="/"?f:Ar([f,i.encodeLocation?i.encodeLocation(S.pathnameBase).pathname:S.pathnameBase])})),l,n,s);return t&&w?k.createElement(hd.Provider,{value:{location:hl({pathname:"/",search:"",hash:"",state:null,key:"default"},p),navigationType:jr.Pop}},w):w}function OT(){let e=WT(),t=PT(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return k.createElement(k.Fragment,null,k.createElement("h2",null,"Unexpected Application Error!"),k.createElement("h3",{style:{fontStyle:"italic"}},t),n?k.createElement("pre",{style:i},n):null,null)}const LT=k.createElement(OT,null);class IT extends k.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?k.createElement(Pi.Provider,{value:this.props.routeContext},k.createElement(kk.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function BT(e){let{routeContext:t,match:n,children:s}=e,i=k.useContext(Wp);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),k.createElement(Pi.Provider,{value:t},s)}function VT(e,t,n,s){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),s===void 0&&(s=null),e==null){var l;if(!n)return null;if(n.errors)e=n.matches;else if((l=s)!=null&&l.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let c=e,d=(i=n)==null?void 0:i.errors;if(d!=null){let p=c.findIndex(g=>g.route.id&&(d==null?void 0:d[g.route.id])!==void 0);p>=0||kt(!1),c=c.slice(0,Math.min(c.length,p+1))}let f=!1,m=-1;if(n&&s&&s.v7_partialHydration)for(let p=0;p<c.length;p++){let g=c[p];if((g.route.HydrateFallback||g.route.hydrateFallbackElement)&&(m=p),g.route.id){let{loaderData:x,errors:N}=n,b=g.route.loader&&x[g.route.id]===void 0&&(!N||N[g.route.id]===void 0);if(g.route.lazy||b){f=!0,m>=0?c=c.slice(0,m+1):c=[c[0]];break}}}return c.reduceRight((p,g,x)=>{let N,b=!1,w=null,S=null;n&&(N=d&&g.route.id?d[g.route.id]:void 0,w=g.route.errorElement||LT,f&&(m<0&&x===0?(qT("route-fallback"),b=!0,S=null):m===x&&(b=!0,S=g.route.hydrateFallbackElement||null)));let j=t.concat(c.slice(0,x+1)),P=()=>{let A;return N?A=w:b?A=S:g.route.Component?A=k.createElement(g.route.Component,null):g.route.element?A=g.route.element:A=p,k.createElement(BT,{match:g,routeContext:{outlet:p,matches:j,isDataRoute:n!=null},children:A})};return n&&(g.route.ErrorBoundary||g.route.errorElement||x===0)?k.createElement(IT,{location:n.location,revalidation:n.revalidation,component:w,error:N,children:P(),routeC
vendor: 1,412 bytes, line 323
323ontext:{outlet:null,matches:j,isDataRoute:!0}}):P()},null)}var jk=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})(jk||{}),Ck=(function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e})(Ck||{});function zT(e){let t=k.useContext(Wp);return t||kt(!1),t}function UT(e){let t=k.useContext(TT);return t||kt(!1),t}function $T(e){let t=k.useContext(Pi);return t||kt(!1),t}function Ak(e){let t=$T(),n=t.matches[t.matches.length-1];return n.route.id||kt(!1),n.route.id}function WT(){var e;let t=k.useContext(kk),n=UT(),s=Ak();return t!==void 0?t:(e=n.errors)==null?void 0:e[s]}function HT(){let{router:e}=zT(jk.UseNavigateStable),t=Ak(Ck.UseNavigateStable),n=k.useRef(!1);return Sk(()=>{n.current=!0}),k.useCallback(function(i,l){l===void 0&&(l={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,hl({fromRouteId:t},l)))},[e,t])}const B0={};function qT(e,t,n){B0[e]||(B0[e]=!0)}function GT(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function $a(e){kt(!1)}function YT(e){let{basename:t="/",children:n=null,location:s,navigationType:i=jr.Po
323p,navigator:l,static:c=!1,future:d}=e;Tl()&&kt(!1);let f=t.replace(/^\/*/,"/"),m=k.useMemo(()=>({basename:f,navigator:l,static:c,future:hl({v7_relativeSplatPath:!1},d)}),[f,d,l,c]);typeof s=="string"&&(s=Bo(s));let{pathname:p="/",search:g="",hash:x="",state:N=null,key:b="default"}=s,w=k.useMemo(()=>{let S=$p(p,f);return S==null?null:{location:{pathname:S,search:g,hash:x,state:N,key:b},navigationType:i}},[f,p,g,x,N,b,i]);return w==null?null:k.createElement(Ai.Provider,{value:m},k.createElement(hd.Provider,{children:n,value:w}))}function KT(e){let{children:t,location:n}=e;return MT(Hm(t),n)}new Promise(()=>{});function Hm(e,t){t===void 0&&(t=[]);let n=[];return k.Children.forEach(e,(s,i)=>{if(!k.isValidElement(s))return;let l=[...t,i];if(s.type===k.Fragment){n.push.apply(n,Hm(s.props.children,l));return}s.type!==$a&&kt(!1),!s.props.index||!s.props.children||kt(!1);let c={id:s.props.id||l.join("-"),caseSensitive:s.props.caseSensitive,element:s.props.element,Component:s.props.Component,index:s.props.index,path:s.props.path,loader:s.props.loader,action:s.props.action,errorElement:s.props.errorElement,ErrorBoundary:s.props.ErrorBoundary,hasErrorBoundary:s.props.ErrorBoundary!=null||s.props.errorElement!=null,shouldRevalidate:s.props.shouldRevalidate,handle:s.props.handle,lazy:s.props.lazy};s.props.children&&(c.children=Hm(s.props.children,l)),n.push(c)}),n}/**
324 * React Router DOM v6.30.1
325 *
326 * Copyright (c) Remix Software Inc.
327 *
328 * This source code is licensed under the MIT license found in the
329 * LICENSE.md file in the root directory of this source tree.
330 *
331 * @license MIT
332 */function qm(){return qm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},qm.apply(this,arguments)}function QT(e,t){if(e==null)return{};var n={},s=Object.keys(e),i,l;for(l=0;l<s.length;l++)i=s[l],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function XT(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function JT(e,t){return e.button===0&&(!t||t==="_self")&&!XT(e)}const ZT=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],eR="6";try{window.__reactRouterVersion=eR}catch{}const tR="startTransition",V0=_p[tR];function nR(e){let{basename:t,children:n,future:s,window:i}=e,l=k.useRef();l.current==null&&(l.current=rT({window:i,v5Compat:!0}));let c=l.current,[d,f]=k.useState({action:c.action,location:c.location}),{v7_startTransition:m}=s||{},p=k.useCallback(g=>{m&&V0?V0(()=>f(g)):f(g)},[f,m]);return k.useLayoutEffect(()=>c.listen(p),[c,p]),k.useEffect(()=>GT(s),[s]),k.createElement(YT,{basename:t,children:n,location:d.location,navigationType:d.action,navigator:c,future:s})}const sR=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",rR=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Tt=k.forwardRef(function(t,n){let{onClick:s,relative:i,reloadDocument:l,replace:c,state:d,target:f,to:m,preventScrollReset:p,viewTransition:g}=t,x=QT(t,ZT),{basename:N}=k.useContext(Ai),b,w=!1;if(typeof m=="string"&&rR.test(m)&&(b=m,sR))try{let A=new URL(window.location.href),E=m.startsWith("//")?new URL(A.protocol+m):new URL(m),D=$p(E.pathname,N);E.origin===A.origin&&D!=null?m=D+E.search+E.hash:w=!0}catch{}let S=RT(m,{relative:i}),j=iR(m,{replace:c,state:d,target:f,preventScrollReset:p,relative:i,viewTransition:g});function P(A){s&&s(A),A.defaultPrevented||j(A)}return k.createElement("a",qm({},x,{href:b||S,onClick:w||l?s:P,ref:n,target:f}))});var z0;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(z0||(z0={}));var U0;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(U0||(U0={}));function iR(e,t){let{target:n,replace:s,state:i,preventScrollReset:l,relative:c,viewTransition:d}=t===void 0?{}:t,f=_T(),m=Vo(),p=Nk(e,{relative:c}
vendor: 4,218 bytes, line 332
332);return k.useCallback(g=>{if(JT(g,n)){g.preventDefault();let x=s!==void 0?s:qu(m)===qu(p);f(e,{replace:x,state:i,preventScrollReset:l,relative:c,viewTransition:d})}},[m,f,p,s,i,n,e,l,c,d])}function Pk(e,t){return function(){return e.apply(t,arguments)}}const{toString:oR}=Object.prototype,{getPrototypeOf:Hp}=Object,{iterator:fd,toStringTag:Ek}=Symbol,md=(e=>t=>{const n=oR.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Qn=e=>(e=e.toLowerCase(),t=>md(t)===e),pd=e=>t=>typeof t===e,{isArray:zo}=Array,To=pd("undefined");function Rl(e){return e!==null&&!To(e)&&e.constructor!==null&&!To(e.constructor)&&an(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Tk=Qn("ArrayBuffer");function aR(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Tk(e.buffer),t}const lR=pd("string"),an=pd("function"),Rk=pd("number"),_l=e=>e!==null&&typeof e=="object",cR=e=>e===!0||e===!1,ju=e=>{if(md(e)!=="object")return!1;const t=Hp(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Ek in e)&&!(fd in e)},uR=e=>{if(!_l(e)||Rl(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},dR=Qn("Date"),hR=Qn("File"),fR=Qn("Blob"),mR=Qn("FileList"),pR=e=>_l(e)&&an(e.pipe),gR=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||an(e.append)&&((t=md(e))==="formdata"||t==="object"&&an(e.toString)&&e.toString()==="[object FormData]"))},yR=Qn("URLSearchParams"),[vR,xR,wR,bR]=["ReadableStream","Request","Response","Headers"].map(Qn),kR=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Dl(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let s,i;if(typeof e!="object"&&(e=[e]),zo(e))for(s=0,i=e.length;s<i;s++)t.call(null,e[s],s,e);else{if(Rl(e))return;const l=n?Object.getOwnPropertyNames(e):Object.keys(e),c=l.length;let d;for(s=0;s<c;s++)d=l[s],t.call(null,e[d],d,e)}}function _k(e,t){if(Rl(e))return null;t=t.toLowerCase();const n=Object.keys(e);let s=n.length,i;for(;s-- >0;)if(i=n[s],t===i.toLowerCase())return i;return null}const ii=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Dk=e=>!To(e)&&e!==ii;function Gm(){const{caseless:e,skipUndefined:t}=Dk(this)&&this||{},n={},s=(i,l)=>{const c=e&&_k(n,l)||l;ju(n[c])&&ju(i)?n[c]=Gm(n[c],i):ju(i)?n[c]=Gm({},i):zo(i)?n[c]=i.slice():(!t||!To(i))&&(n[c]=i)};for(let i=0,l=arguments.length;i<l;i++)arguments[i]&&Dl(arguments[i],s);return n}const SR=(e,t,n,{allOwnKeys:s}={})=>(Dl(t,(i,l)=>{n&&an(i)?e[l]=Pk(i,n):e[l]=i},{allOwnKeys:s}),e),NR=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),jR=(e,t,n,s)=>{e.prototype=Object.create(t.prototype,s),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},CR=(e,t,n,s)=>{let i,l,c;const d={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),l=i.length;l-- >0;)c=i[l],(!s||s(c,e,t))&&!d[c]&&(t[c]=e[c],d[c]=!0);e=n!==!1&&Hp(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},AR=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const s=e.indexOf(t,n);return s!==-1&&s===n},PR=e=>{if(!e)return null;if(zo(e))return e;let t=e.length;if(!Rk(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},ER=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Hp(Uint8Array)),TR=(e,t)=>{const s=(e&&e[fd]).call(e);let i;for(;(i=s.next())&&!i.done;){const l=i.value;t.call(e,l[0],l[1])}},RR=(e,t)=>{let n;const s=[];for(;(n=e.exec(t))!==null;)s.push(n);return s},_R=Qn("HTMLFormElement"),DR=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,s,i){return s.toUpperCase()+i}),$0=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),MR=Qn("RegExp"),Mk=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),s={};Dl(n,(i,l)=>{let c;(c=t(i,l,e))!==!1&&(s[l]=c||i)}),Object.defineProperties(e,s)},FR=e=>{Mk(e,(t,n)=>{if(an(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const s=e[n];if(an(s)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},OR=(e,t)=>{const n={},s=i=>
vendor: 2,307 bytes, line 332
332{i.forEach(l=>{n[l]=!0})};return zo(e)?s(e):s(String(e).split(t)),n},LR=()=>{},IR=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function BR(e){return!!(e&&an(e.append)&&e[Ek]==="FormData"&&e[fd])}const VR=e=>{const t=new Array(10),n=(s,i)=>{if(_l(s)){if(t.indexOf(s)>=0)return;if(Rl(s))return s;if(!("toJSON"in s)){t[i]=s;const l=zo(s)?[]:{};return Dl(s,(c,d)=>{const f=n(c,i+1);!To(f)&&(l[d]=f)}),t[i]=void 0,l}}return s};return n(e,0)},zR=Qn("AsyncFunction"),UR=e=>e&&(_l(e)||an(e))&&an(e.then)&&an(e.catch),Fk=((e,t)=>e?setImmediate:t?((n,s)=>(ii.addEventListener("message",({source:i,data:l})=>{i===ii&&l===n&&s.length&&s.shift()()},!1),i=>{s.push(i),ii.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",an(ii.postMessage)),$R=typeof queueMicrotask<"u"?queueMicrotask.bind(ii):typeof process<"u"&&process.nextTick||Fk,WR=e=>e!=null&&an(e[fd]),W={isArray:zo,isArrayBuffer:Tk,isBuffer:Rl,isFormData:gR,isArrayBufferView:aR,isString:lR,isNumber:Rk,isBoolean:cR,isObject:_l,isPlainObject:ju,isEmptyObject:uR,isReadableStream:vR,isRequest:xR,isResponse:wR,isHeaders:bR,isUndefined:To,isDate:dR,isFile:hR,isBlob:fR,isRegExp:MR,isFunction:an,isStream:pR,isURLSearchParams:yR,isTypedArray:ER,isFileList:mR,forEach:Dl,merge:Gm,extend:SR,trim:kR,stripBOM:NR,inherits:jR,toFlatObject:CR,kindOf:md,kindOfTest:Qn,endsWith:AR,toArray:PR,forEachEntry:TR,matchAll:RR,isHTMLForm:_R,hasOwnProperty:$0,hasOwnProp:$0,reduceDescriptors:Mk,freezeMethods:FR,toObjectSet:OR,toCamelCase:DR,noop:LR,toFiniteNumber:IR,findKey:_k,global:ii,isContextDefined:Dk,isSpecCompliantForm:BR,toJSONObject:VR,isAsyncFn:zR,isThenable:UR,setImmediate:Fk,asap:$R,isIterable:WR};function Ae(e,t,n,s,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),s&&(this.request=s),i&&(this.response=i,this.status=i.status?i.status:null)}W.inherits(Ae,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:W.toJSONObject(this.config),code:this.code,status:this.status}}});const Ok=Ae.prototype,Lk={};
vendor: 1,945 bytes, line 332
332["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Lk[e]={value:e}});Object.defineProperties(Ae,Lk);Object.defineProperty(Ok,"isAxiosError",{value:!0});Ae.from=(e,t,n,s,i,l)=>{const c=Object.create(Ok);W.toFlatObject(e,c,function(p){return p!==Error.prototype},m=>m!=="isAxiosError");const d=e&&e.message?e.message:"Error",f=t==null&&e?e.code:t;return Ae.call(c,d,f,n,s,i),e&&c.cause==null&&Object.defineProperty(c,"cause",{value:e,configurable:!0}),c.name=e&&e.name||"Error",l&&Object.assign(c,l),c};const HR=null;function Ym(e){return W.isPlainObject(e)||W.isArray(e)}function Ik(e){return W.endsWith(e,"[]")?e.slice(0,-2):e}function W0(e,t,n){return e?e.concat(t).map(function(i,l){return i=Ik(i),!n&&l?"["+i+"]":i}).join(n?".":""):t}function qR(e){return W.isArray(e)&&!e.some(Ym)}const GR=W.toFlatObject(W,{},null,function(t){return/^is[A-Z]/.test(t)});function gd(e,t,n){if(!W.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=W.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(w,S){return!W.isUndefined(S[w])});const s=n.metaTokens,i=n.visitor||p,l=n.dots,c=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&W.isSpecCompliantForm(t);if(!W.isFunction(i))throw new TypeError("visitor must be a function");function m(b){if(b===null)return"";if(W.isDate(b))return b.toISOString();if(W.isBoolean(b))return b.toString();if(!f&&W.isBlob(b))throw new Ae("Blob is not supported. Use a Buffer instead.");return W.isArrayBuffer(b)||W.isTypedArray(b)?f&&typeof Blob=="function"?new Blob([b]):Buffer.from(b):b}function p(b,w,S){let j=b;if(b&&!S&&typeof b=="object"){if(W.endsWith(w,"{}"))w=s?w:w.slice(0,-2),b=JSON.stringify(b);else if(W.isArray(b)&&qR(b)||(W.isFileList(b)||W.endsWith(w,"[]"))&&(j=W.toArray(b)))return w=Ik(w),j.forEac
vendor: 4,183 bytes, line 332
332h(function(A,E){!(W.isUndefined(A)||A===null)&&t.append(c===!0?W0([w],E,l):c===null?w:w+"[]",m(A))}),!1}return Ym(b)?!0:(t.append(W0(S,w,l),m(b)),!1)}const g=[],x=Object.assign(GR,{defaultVisitor:p,convertValue:m,isVisitable:Ym});function N(b,w){if(!W.isUndefined(b)){if(g.indexOf(b)!==-1)throw Error("Circular reference detected in "+w.join("."));g.push(b),W.forEach(b,function(j,P){(!(W.isUndefined(j)||j===null)&&i.call(t,j,W.isString(P)?P.trim():P,w,x))===!0&&N(j,w?w.concat(P):[P])}),g.pop()}}if(!W.isObject(e))throw new TypeError("data must be an object");return N(e),t}function H0(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return t[s]})}function qp(e,t){this._pairs=[],e&&gd(e,this,t)}const Bk=qp.prototype;Bk.append=function(t,n){this._pairs.push([t,n])};Bk.toString=function(t){const n=t?function(s){return t.call(this,s,H0)}:H0;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function YR(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Vk(e,t,n){if(!t)return e;const s=n&&n.encode||YR;W.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let l;if(i?l=i(t,n):l=W.isURLSearchParams(t)?t.toString():new qp(t,n).toString(s),l){const c=e.indexOf("#");c!==-1&&(e=e.slice(0,c)),e+=(e.indexOf("?")===-1?"?":"&")+l}return e}class q0{constructor(){this.handlers=[]}use(t,n,s){return this.handlers.push({fulfilled:t,rejected:n,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){W.forEach(this.handlers,function(s){s!==null&&t(s)})}}const zk={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},KR=typeof URLSearchParams<"u"?URLSearchParams:qp,QR=typeof FormData<"u"?FormData:null,XR=typeof Blob<"u"?Blob:null,JR={isBrowser:!0,classes:{URLSearchParams:KR,FormData:QR,Blob:XR},protocols:["http","https","file","blob","url","data"]},Gp=typeof window<"u"&&typeof document<"u",Km=typeof navigator=="object"&&navigator||void 0,ZR=Gp&&(!Km||["ReactNative","NativeScript","NS"].indexOf(Km.product)<0),e3=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",t3=Gp&&window.location.href||"http://localhost",n3=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Gp,hasStandardBrowserEnv:ZR,hasStandardBrowserWebWorkerEnv:e3,navigator:Km,origin:t3},Symbol.toStringTag,{value:"Module"})),$t={...n3,...JR};function s3(e,t){return gd(e,new $t.classes.URLSearchParams,{visitor:function(n,s,i,l){return $t.isNode&&W.isBuffer(n)?(this.append(s,n.toString("base64")),!1):l.defaultVisitor.apply(this,arguments)},...t})}function r3(e){return W.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function i3(e){const t={},n=Object.keys(e);let s;const i=n.length;let l;for(s=0;s<i;s++)l=n[s],t[l]=e[l];return t}function Uk(e){function t(n,s,i,l){let c=n[l++];if(c==="__proto__")return!0;const d=Number.isFinite(+c),f=l>=n.length;return c=!c&&W.isArray(i)?i.length:c,f?(W.hasOwnProp(i,c)?i[c]=[i[c],s]:i[c]=s,!d):((!i[c]||!W.isObject(i[c]))&&(i[c]=[]),t(n,s,i[c],l)&&W.isArray(i[c])&&(i[c]=i3(i[c])),!d)}if(W.isFormData(e)&&W.isFunction(e.entries)){const n={};return W.forEachEntry(e,(s,i)=>{t(r3(s),i,n,0)}),n}return null}function o3(e,t,n){if(W.isString(e))try{return(t||JSON.parse)(e),W.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(n||JSON.stringify)(e)}const Ml={transitional:zk,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const s=n.getContentType()||"",i=s.indexOf("application/json")>-1,l=W.isObject(t);if(l&&W.isHTMLForm(t)&&(t=new FormData(t)),W.isFormData(t))return i?JSON.stringify(Uk(t)):t;if(W.isArrayBuffer(t)||W.isBuffer(t)||W.isStream(t)||W.isFile(t)||W.isBlob(t)||W.isReadableStream(t))return t;if(W.isArrayBufferView(t))return t.buffer;if(W.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let d;if(l){if(s.indexOf("application/x-www-form-urlencoded")>
vendor: 4,427 bytes, lines 332-334
332-1)return s3(t,this.formSerializer).toString();if((d=W.isFileList(t))||s.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return gd(d?{"files[]":t}:t,f&&new f,this.formSerializer)}}return l||i?(n.setContentType("application/json",!1),o3(t)):t}],transformResponse:[function(t){const n=this.transitional||Ml.transitional,s=n&&n.forcedJSONParsing,i=this.responseType==="json";if(W.isResponse(t)||W.isReadableStream(t))return t;if(t&&W.isString(t)&&(s&&!this.responseType||i)){const c=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t,this.parseReviver)}catch(d){if(c)throw d.name==="SyntaxError"?Ae.from(d,Ae.ERR_BAD_RESPONSE,this,null,this.response):d}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:$t.classes.FormData,Blob:$t.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};W.forEach(["delete","get","head","post","put","patch"],e=>{Ml.headers[e]={}});const a3=W.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),l3=e=>{const t={};let n,s,i;return e&&e.split(`
333`).forEach(function(c){i=c.indexOf(":"),n=c.substring(0,i).trim().toLowerCase(),s=c.substring(i+1).trim(),!(!n||t[n]&&a3[n])&&(n==="set-cookie"?t[n]?t[n].push(s):t[n]=[s]:t[n]=t[n]?t[n]+", "+s:s)}),t},G0=Symbol("internals");function Fa(e){return e&&String(e).trim().toLowerCase()}function Cu(e){return e===!1||e==null?e:W.isArray(e)?e.map(Cu):String(e)}function c3(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=n.exec(e);)t[s[1]]=s[2];return t}const u3=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function If(e,t,n,s,i){if(W.isFunction(s))return s.call(this,t,n);if(i&&(t=n),!!W.isString(t)){if(W.isString(s))return t.indexOf(s)!==-1;if(W.isRegExp(s))return s.test(t)}}function d3(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,s)=>n.toUpperCase()+s)}function h3(e,t){const n=W.toCamelCase(" "+t);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+n,{value:function(i,l,c){return this[s].call(this,t,i,l,c)},configurable:!0})})}let ln=class{constructor(t){t&&this.set(t)}set(t,n,s){const i=this;function l(d,f,m){const p=Fa(f);if(!p)throw new Error("header name must be a non-empty string");const g=W.findKey(i,p);(!g||i[g]===void 0||m===!0||m===void 0&&i[g]!==!1)&&(i[g||f]=Cu(d))}const c=(d,f)=>W.forEach(d,(m,p)=>l(m,p,f));if(W.isPlainObject(t)||t instanceof this.constructor)c(t,n);else if(W.isString(t)&&(t=t.trim())&&!u3(t))c(l3(t),n);else if(W.isObject(t)&&W.isIterable(t)){let d={},f,m;for(const p of t){if(!W.isArray(p))throw TypeError("Object iterator must return a key-value pair");d[m=p[0]]=(f=d[m])?W.isArray(f)?[...f,p[1]]:[f,p[1]]:p[1]}c(d,n)}else t!=null&&l(n,t,s);return this}get(t,n){if(t=Fa(t),t){const s=W.findKey(this,t);if(s){const i=this[s];if(!n)return i;if(n===!0)return c3(i);if(W.isFunction(n))return n.call(this,i,s);if(W.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Fa(t),t){const s=W.findKey(this,t);return!!(s&&this[s]!==void 0&&(!n||If(this,this[s],s,n)))}return!1}delete(t,n){const s=this;let i=!1;function l(c){if(c=Fa(c),c){const d=W.findKey(s,c);d&&(!n||If(s,s[d],d,n))&&(delete s[d],i=!0)}}return W.isArray(t)?t.forEach(l):l(t),i}clear(t){const n=Object.keys(this);let s=n.length,i=!1;for(;s--;){const l=n[s];(!t||If(this,this[l],l,t,!0))&&(delete this[l],i=!0)}return i}normalize(t){const n=this,s={};return W.forEach(this,(i,l)=>{const c=W.findKey(s,l);if(c){n[c]=Cu(i),delete n[l];return}const d=t?d3(l):String(l).trim();d!==l&&delete n[l],n[d]=Cu(i),s[d]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return W.forEach(this,(s,i)=>{s!=null&&s!==!1&&(n[i]=t&&W.isArray(s)?s.join(", "):s)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
334`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const s=new this(t);
vendor: 4,549 bytes, line 334
334return n.forEach(i=>s.set(i)),s}static accessor(t){const s=(this[G0]=this[G0]={accessors:{}}).accessors,i=this.prototype;function l(c){const d=Fa(c);s[d]||(h3(i,c),s[d]=!0)}return W.isArray(t)?t.forEach(l):l(t),this}};ln.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);W.reduceDescriptors(ln.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(s){this[n]=s}}});W.freezeMethods(ln);function Bf(e,t){const n=this||Ml,s=t||n,i=ln.from(s.headers);let l=s.data;return W.forEach(e,function(d){l=d.call(n,l,i.normalize(),t?t.status:void 0)}),i.normalize(),l}function $k(e){return!!(e&&e.__CANCEL__)}function Uo(e,t,n){Ae.call(this,e??"canceled",Ae.ERR_CANCELED,t,n),this.name="CanceledError"}W.inherits(Uo,Ae,{__CANCEL__:!0});function Wk(e,t,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?e(n):t(new Ae("Request failed with status code "+n.status,[Ae.ERR_BAD_REQUEST,Ae.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function f3(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function m3(e,t){e=e||10;const n=new Array(e),s=new Array(e);let i=0,l=0,c;return t=t!==void 0?t:1e3,function(f){const m=Date.now(),p=s[l];c||(c=m),n[i]=f,s[i]=m;let g=l,x=0;for(;g!==i;)x+=n[g++],g=g%e;if(i=(i+1)%e,i===l&&(l=(l+1)%e),m-c<t)return;const N=p&&m-p;return N?Math.round(x*1e3/N):void 0}}function p3(e,t){let n=0,s=1e3/t,i,l;const c=(m,p=Date.now())=>{n=p,i=null,l&&(clearTimeout(l),l=null),e(...m)};return[(...m)=>{const p=Date.now(),g=p-n;g>=s?c(m,p):(i=m,l||(l=setTimeout(()=>{l=null,c(i)},s-g)))},()=>i&&c(i)]}const Gu=(e,t,n=3)=>{let s=0;const i=m3(50,250);return p3(l=>{const c=l.loaded,d=l.lengthComputable?l.total:void 0,f=c-s,m=i(f),p=c<=d;s=c;const g={loaded:c,total:d,progress:d?c/d:void 0,bytes:f,rate:m||void 0,estimated:m&&d&&p?(d-c)/m:void 0,event:l,lengthComputable:d!=null,[t?"download":"upload"]:!0};e(g)},n)},Y0=(e,t)=>{const n=e!=null;return[s=>t[0]({lengthComputable:n,total:e,loaded:s}),t[1]]},K0=e=>(...t)=>W.asap(()=>e(...t)),g3=$t.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,$t.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL($t.origin),$t.navigator&&/(msie|trident)/i.test($t.navigator.userAgent)):()=>!0,y3=$t.hasStandardBrowserEnv?{write(e,t,n,s,i,l){const c=[e+"="+encodeURIComponent(t)];W.isNumber(n)&&c.push("expires="+new Date(n).toGMTString()),W.isString(s)&&c.push("path="+s),W.isString(i)&&c.push("domain="+i),l===!0&&c.push("secure"),document.cookie=c.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function v3(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function x3(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Hk(e,t,n){let s=!v3(t);return e&&(s||n==!1)?x3(e,t):t}const Q0=e=>e instanceof ln?{...e}:e;function wi(e,t){t=t||{};const n={};function s(m,p,g,x){return W.isPlainObject(m)&&W.isPlainObject(p)?W.merge.call({caseless:x},m,p):W.isPlainObject(p)?W.merge({},p):W.isArray(p)?p.slice():p}function i(m,p,g,x){if(W.isUndefined(p)){if(!W.isUndefined(m))return s(void 0,m,g,x)}else return s(m,p,g,x)}function l(m,p){if(!W.isUndefined(p))return s(void 0,p)}function c(m,p){if(W.isUndefined(p)){if(!W.isUndefined(m))return s(void 0,m)}else return s(void 0,p)}function d(m,p,g){if(g in t)return s(m,p);if(g in e)return s(void 0,m)}const f={url:l,method:l,data:l,baseURL:c,transformRequest:c,transformResponse:c,paramsSerializer:c,timeout:c,timeoutMessage:c,withCredentials:c,withXSRFToken:c,adapter:c,responseType:c,xsrfCookieName:c,xsrfHeaderName:c,onUploadProgress:c,onDownloadProgress:c,decompress:c,maxContentLength:c,maxBodyLength:c,beforeRedirect:c,transport:c,httpAgent:c,httpsAgent:c,cancelToken:c,socketPath:c,responseEncoding:c,validateStatus:d,headers:(m,p,g)=>i(Q0(m),Q0(p),g,!0)};return W.forEach(Object.keys({...e,...t}),function(p){const g=f[p]||i,x=g(e[p],t[p],p);W.isUndefined(x)&&g!==d||(n[p]=x)}),n}const qk=e=>{const t=wi({},e);let{data:n,withXSRFToken:s,xsrfHeaderName:i,xsrfCookieName:l,headers:c,auth:d}=t;if(t.headers=c=ln.from(c),t.url=Vk(Hk(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),d&&c.set("Authorization","Basic "+btoa((d.username||"")+":"+(d.password?unescape(encodeURIComponent(d.password)):""))),W.isFormData(n)){if($t.hasStandardBrowserEnv||$t.hasStandardBrowserWebWorkerEnv)c.setContentType(void 0);
vendor: 4,267 bytes, line 334
334else if(W.isFunction(n.getHeaders)){const f=n.getHeaders(),m=["content-type","content-length"];Object.entries(f).forEach(([p,g])=>{m.includes(p.toLowerCase())&&c.set(p,g)})}}if($t.hasStandardBrowserEnv&&(s&&W.isFunction(s)&&(s=s(t)),s||s!==!1&&g3(t.url))){const f=i&&l&&y3.read(l);f&&c.set(i,f)}return t},w3=typeof XMLHttpRequest<"u",b3=w3&&function(e){return new Promise(function(n,s){const i=qk(e);let l=i.data;const c=ln.from(i.headers).normalize();let{responseType:d,onUploadProgress:f,onDownloadProgress:m}=i,p,g,x,N,b;function w(){N&&N(),b&&b(),i.cancelToken&&i.cancelToken.unsubscribe(p),i.signal&&i.signal.removeEventListener("abort",p)}let S=new XMLHttpRequest;S.open(i.method.toUpperCase(),i.url,!0),S.timeout=i.timeout;function j(){if(!S)return;const A=ln.from("getAllResponseHeaders"in S&&S.getAllResponseHeaders()),D={data:!d||d==="text"||d==="json"?S.responseText:S.response,status:S.status,statusText:S.statusText,headers:A,config:e,request:S};Wk(function(B){n(B),w()},function(B){s(B),w()},D),S=null}"onloadend"in S?S.onloadend=j:S.onreadystatechange=function(){!S||S.readyState!==4||S.status===0&&!(S.responseURL&&S.responseURL.indexOf("file:")===0)||setTimeout(j)},S.onabort=function(){S&&(s(new Ae("Request aborted",Ae.ECONNABORTED,e,S)),S=null)},S.onerror=function(E){const D=E&&E.message?E.message:"Network Error",V=new Ae(D,Ae.ERR_NETWORK,e,S);V.event=E||null,s(V),S=null},S.ontimeout=function(){let E=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const D=i.transitional||zk;i.timeoutErrorMessage&&(E=i.timeoutErrorMessage),s(new Ae(E,D.clarifyTimeoutError?Ae.ETIMEDOUT:Ae.ECONNABORTED,e,S)),S=null},l===void 0&&c.setContentType(null),"setRequestHeader"in S&&W.forEach(c.toJSON(),function(E,D){S.setRequestHeader(D,E)}),W.isUndefined(i.withCredentials)||(S.withCredentials=!!i.withCredentials),d&&d!=="json"&&(S.responseType=i.responseType),m&&([x,b]=Gu(m,!0),S.addEventListener("progress",x)),f&&S.upload&&([g,N]=Gu(f),S.upload.addEventListener("progress",g),S.upload.addEventListener("loadend",N)),(i.cancelToken||i.signal)&&(p=A=>{S&&(s(!A||A.type?new Uo(null,e,S):A),S.abort(),S=null)},i.cancelToken&&i.cancelToken.subscribe(p),i.signal&&(i.signal.aborted?p():i.signal.addEventListener("abort",p)));const P=f3(i.url);if(P&&$t.protocols.indexOf(P)===-1){s(new Ae("Unsupported protocol "+P+":",Ae.ERR_BAD_REQUEST,e));return}S.send(l||null)})},k3=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let s=new AbortController,i;const l=function(m){if(!i){i=!0,d();const p=m instanceof Error?m:this.reason;s.abort(p instanceof Ae?p:new Uo(p instanceof Error?p.message:p))}};let c=t&&setTimeout(()=>{c=null,l(new Ae(`timeout ${t} of ms exceeded`,Ae.ETIMEDOUT))},t);const d=()=>{e&&(c&&clearTimeout(c),c=null,e.forEach(m=>{m.unsubscribe?m.unsubscribe(l):m.removeEventListener("abort",l)}),e=null)};e.forEach(m=>m.addEventListener("abort",l));const{signal:f}=s;return f.unsubscribe=()=>W.asap(d),f}},S3=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let s=0,i;for(;s<n;)i=s+t,yield e.slice(s,i),s=i},N3=async function*(e,t){for await(const n of j3(e))yield*S3(n,t)},j3=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:s}=await t.read();if(n)break;yield s}}finally{await t.cancel()}},X0=(e,t,n,s)=>{const i=N3(e,t);let l=0,c,d=f=>{c||(c=!0,s&&s(f))};return new ReadableStream({async pull(f){try{const{done:m,value:p}=await i.next();if(m){d(),f.close();return}let g=p.byteLength;if(n){let x=l+=g;n(x)}f.enqueue(new Uint8Array(p))}catch(m){throw d(m),m}},cancel(f){return d(f),i.return()}},{highWaterMark:2})},J0=64*1024,{isFunction:uu}=W,C3=(({Request:e,Response:t})=>({Request:e,Response:t}))(W.global),{ReadableStream:Z0,TextEncoder:ew}=W.global,tw=(e,...t)=>{try{return!!e(...t)}catch{return!1}},A3=e=>{e=W.merge.call({skipUndefined:!0},C3,e);const{fetch:t,Request:n,Response:s}=e,i=t?uu(t):typeof fetch=="function",l=uu(n),c=uu(s);if(!i)return!1;const d=i&&uu(Z0),f=i&&(typeof ew=="function"?(b=>w=>b.encode(w))(new ew):async b=>new Uint8Array(await new n(b).arrayBuffer())),m=l&&d&&tw(()=>{let b=!1;const w=new n($t.origin,{body:new Z0,method:"POST",get duplex(){return b=!0,"half"}}).headers.has("Content-Type");return b&&!w}),p=c&&d&&tw(()=>
vendor: 8,626 bytes, lines 334-337
334W.isReadableStream(new s("").body)),g={stream:p&&(b=>b.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(b=>{!g[b]&&(g[b]=(w,S)=>{let j=w&&w[b];if(j)return j.call(w);throw new Ae(`Response type '${b}' is not supported`,Ae.ERR_NOT_SUPPORT,S)})});const x=async b=>{if(b==null)return 0;if(W.isBlob(b))return b.size;if(W.isSpecCompliantForm(b))return(await new n($t.origin,{method:"POST",body:b}).arrayBuffer()).byteLength;if(W.isArrayBufferView(b)||W.isArrayBuffer(b))return b.byteLength;if(W.isURLSearchParams(b)&&(b=b+""),W.isString(b))return(await f(b)).byteLength},N=async(b,w)=>{const S=W.toFiniteNumber(b.getContentLength());return S??x(w)};return async b=>{let{url:w,method:S,data:j,signal:P,cancelToken:A,timeout:E,onDownloadProgress:D,onUploadProgress:V,responseType:B,headers:L,withCredentials:ne="same-origin",fetchOptions:Q}=qk(b),re=t||fetch;B=B?(B+"").toLowerCase():"text";let ie=k3([P,A&&A.toAbortSignal()],E),I=null;const Y=ie&&ie.unsubscribe&&(()=>{ie.unsubscribe()});let oe;try{if(V&&m&&S!=="get"&&S!=="head"&&(oe=await N(L,j))!==0){let F=new n(w,{method:"POST",body:j,duplex:"half"}),q;if(W.isFormData(j)&&(q=F.headers.get("content-type"))&&L.setContentType(q),F.body){const[pe,ye]=Y0(oe,Gu(K0(V)));j=X0(F.body,J0,pe,ye)}}W.isString(ne)||(ne=ne?"include":"omit");const ee=l&&"credentials"in n.prototype,H={...Q,signal:ie,method:S.toUpperCase(),headers:L.normalize().toJSON(),body:j,duplex:"half",credentials:ee?ne:void 0};I=l&&new n(w,H);let R=await(l?re(I,Q):re(w,H));const se=p&&(B==="stream"||B==="response");if(p&&(D||se&&Y)){const F={};["status","statusText","headers"].forEach(Ce=>{F[Ce]=R[Ce]});const q=W.toFiniteNumber(R.headers.get("content-length")),[pe,ye]=D&&Y0(q,Gu(K0(D),!0))||[];R=new s(X0(R.body,J0,pe,()=>{ye&&ye(),Y&&Y()}),F)}B=B||"text";let J=await g[W.findKey(g,B)||"text"](R,b);return!se&&Y&&Y(),await new Promise((F,q)=>{Wk(F,q,{data:J,headers:ln.from(R.headers),status:R.status,statusText:R.statusText,config:b,request:I})})}catch(ee){throw Y&&Y(),ee&&ee.name==="TypeError"&&/Load failed|fetch/i.test(ee.message)?Object.assign(new Ae("Network Error",Ae.ERR_NETWORK,b,I),{cause:ee.cause||ee}):Ae.from(ee,ee&&ee.code,b,I)}}},P3=new Map,Gk=e=>{let t=e?e.env:{};const{fetch:n,Request:s,Response:i}=t,l=[s,i,n];let c=l.length,d=c,f,m,p=P3;for(;d--;)f=l[d],m=p.get(f),m===void 0&&p.set(f,m=d?new Map:A3(t)),p=m;return m};Gk();const Qm={http:HR,xhr:b3,fetch:{get:Gk}};W.forEach(Qm,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const nw=e=>`- ${e}`,E3=e=>W.isFunction(e)||e===null||e===!1,Yk={getAdapter:(e,t)=>{e=W.isArray(e)?e:[e];const{length:n}=e;let s,i;const l={};for(let c=0;c<n;c++){s=e[c];let d;if(i=s,!E3(s)&&(i=Qm[(d=String(s)).toLowerCase()],i===void 0))throw new Ae(`Unknown adapter '${d}'`);if(i&&(W.isFunction(i)||(i=i.get(t))))break;l[d||"#"+c]=i}if(!i){const c=Object.entries(l).map(([f,m])=>`adapter ${f} `+(m===!1?"is not supported by the environment":"is not available in the build"));let d=n?c.length>1?`since :
335`+c.map(nw).join(`
336`):" "+nw(c[0]):"as no adapter specified";throw new Ae("There is no suitable adapter to dispatch the request "+d,"ERR_NOT_SUPPORT")}return i},adapters:Qm};function Vf(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Uo(null,e)}function sw(e){return Vf(e),e.headers=ln.from(e.headers),e.data=Bf.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Yk.getAdapter(e.adapter||Ml.adapter,e)(e).then(function(s){return Vf(e),s.data=Bf.call(e,e.transformResponse,s),s.headers=ln.from(s.headers),s},function(s){return $k(s)||(Vf(e),s&&s.response&&(s.response.data=Bf.call(e,e.transformResponse,s.response),s.response.headers=ln.from(s.response.headers))),Promise.reject(s)})}const Kk="1.12.2",yd={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{yd[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});const rw={};yd.transitional=function(t,n,s){function i(l,c){return"[Axios v"+Kk+"] Transitional option '"+l+"'"+c+(s?". "+s:"")}return(l,c,d)=>{if(t===!1)throw new Ae(i(c," has been removed"+(n?" in "+n:"")),Ae.ERR_DEPRECATED);return n&&!rw[c]&&(rw[c]=!0,console.warn(i(c," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(l,c,d):!0}};yd.spelling=function(t){return(n,s)=>(console.warn(`${s} is likely a misspelling of ${t}`),!0)};function T3(e,t,n){if(typeof e!="object")throw new Ae("options must be an object",Ae.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let i=s.length;for(;i-- >0;){const l=s[i],c=t[l];if(c){const d=e[l],f=d===void 0||c(d,l,e);if(f!==!0)throw new Ae("option "+l+" must be "+f,Ae.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Ae("Unknown option "+l,Ae.ERR_BAD_OPTION)}}const Au={assertOptions:T3,validators:yd},is=Au.validators;let gi=class{constructor(t){this.defaults=t||{},this.interceptors={request:new q0,response:new q0}}async request(t,n){try{return await this._request(t,n)}catch(s){if(s instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const l=i.stack?i.stack.replace(/^.+\n/,""):"";try{s.stack?l&&!String(s.stack).endsWith(l.replace(/^.+\n.+\n/,""))&&(s.stack+=`
337`+l):s.stack=l}catch{}}throw s}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=wi(this.defaults,n);const{transitional:s,paramsSerializer:i,headers:l}=n;s!==void 0&&Au.assertOptions(s,{silentJSONParsing:is.transitional(is.boolean),forcedJSONParsing:is.transitional(is.boolean),clarifyTimeoutError:is.transitional(is.boolean)},!1),i!=null&&(W.isFunction(i)?n.paramsSerializer={serialize:i}:Au.assertOptions(i,{encode:is.function,serialize:is.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Au.assertOptions(n,{baseUrl:is.spelling("baseURL"),withXsrfToken:is.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let c=l&&W.merge(l.common,l[n.method]);l&&W.forEach(["delete","get","head","post","put","patch","common"],b=>{delete l[b]}),n.headers=ln.concat(c,l);const d=[];let f=!0;this.interceptors.request.forEach(function(w){typeof w.runWhen=="function"&&w.runWhen(n)===!1||(f=f&&w.synchronous,d.unshift(w.fulfilled,w.rejected))});const m=[];this.interceptors.response.forEach(function(w){m.push(w.fulfilled,w.rejected)});let p,g=0,x;if(!f){const b=[sw.bind(this),void 0];for(b.unshift(...d),b.push(...m),x=b.length,p=Promise.resolve(n);g<x;)p=p.then(b[g++],b[g++]);return p}x=d.length;let N=n;for(;g<x;){const b=d[g++],w=d[g++];try{N=b(N)}catch(S){w.call(this,S);break}}try{p=sw.call(this,N)}catch(b){return Promise.reject(b)}for(g=0,x=m.length;g<x;)p=p.then(m[g++],m[g++]);return p}getUri(t){t=wi(this.defaults,t);const n=Hk(t.baseURL,t.url,t.allowAbsoluteUrls);return Vk(n,t.params,t.paramsSerializer)}};W.forEach(["delete","get","head","options"],function(t){gi.prototype[t]=function(n,s){return this.request(wi(s||{},{method:t,url:n,data:(s||{}).data}))}});W.forEach(["post","put","patch"],function(t){function n(s){return function(l,c,d){return this.request(wi(d||{},{method:t,headers:s?{"Content-Type":"multipart/form-data"}:{},url:l,data:c}))}}gi.prototype[t]=n(),gi.prototype[t+"Form"]=n(!0)});let R3=class Qk{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(l){n=l});const s=this;this.promise.then(i=>{if(!s._listeners)return;let l=s._listeners.length;for(;l-- >0;)s._listeners[l](i);s._listeners=null}),this.promise.then=i=>{let l;const c=new Promise(d=>{s.subscribe(d),l=d}).then(i);return c.cancel=function(){s.unsubscribe(l)},c},t(function(l,c,d){s.reason||(s.reason=new Uo(l,c,d),n(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=s=>{t.abort(s)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Qk(function(i){t=i}),cancel:t}}};function _3(e){return function(n){return e.apply(null,n)}}function D3(e){return W.isObject(e)&&e.isAxiosError===!0}const Xm={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,Re
337setContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Xm).forEach(([e,t])=>{Xm[t]=e});function Xk(e){const t=new gi(e),n=Pk(gi.prototype.request,t);return W.extend(n,gi.prototype,t,{allOwnKeys:!0}),W.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return Xk(wi(e,i))},n}const gt=Xk(Ml);gt.Axios=gi;gt.CanceledError=Uo;gt.CancelToken=R3;gt.isCancel=$k;gt.VERSION=Kk;gt.toFormData=gd;gt.AxiosError=Ae;gt.Cancel=gt.CanceledError;gt.all=function(t){return Promise.all(t)};gt.spread=_3;gt.isAxiosError=D3;gt.mergeConfig=wi;gt.AxiosHeaders=ln;gt.formToJSON=e=>Uk(W.isHTMLForm(e)?new FormData(e):e);gt.getAdapter=Yk.getAdapter;gt.HttpStatusCode=Xm;gt.default=gt;const{Axios:IV,AxiosError:BV,CanceledError:VV,isCancel:zV,CancelToken:UV,VERSION:$V,all:WV,Cancel:HV,isAxiosError:qV,spread:GV,toFormData:YV,AxiosHeaders:KV,HttpStatusCode:QV,formToJSON:XV,getAdapter:JV,mergeConfig:ZV}=gt,M3=typeof window>"u",iw=!M3&&window.self!==window.top,zf=()=>Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15),Dt=[];for(let e=0;e<256;++e)Dt.push((e+256).toString(16).slice(1));function F3(e,t=0){return(Dt[e[t+0]]+Dt[e[t+1]]+Dt[e[t+2]]+Dt[e[t+3]]+"-"+Dt[e[t+4]]+Dt[e[t+5]]+"-"+Dt[e[t+6]]+Dt[e[t+7]]+"-"+Dt[e[t+8]]+Dt[e[t+9]]+"-"+Dt[e[t+10]]+Dt[e[t+11]]+Dt[e[t+12]]+Dt[e[t+13]]+Dt[e[t+14]]+Dt[e[t+15]]).toLowerCase()}let Uf;const O3=new Uint8Array(16);function L3(){if(!Uf){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Uf=crypto.getRandomValues.bind(crypto)}return Uf(O3)}const I3=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),ow={randomUUID:I3};function B3(e,t,n){var i;e=e||{};const s=e.random??((i=e.rng)==null?void 0:i.call(e))??L3();if(s.length<16)throw new Error("Random bytes length must be >= 16");return s[6]=s[6]&15|64,s[8]=s[8]&63|128,F3(s)}function V3(e,t,n){return ow.randomUUID&&!e?ow.randomUUID():B3(e)}class z3 extends Error{constructor(t,n,s,i,l){super(t),this.name="Base44Error",this.status=n,this.code=s,this.data=i,this.originalError=l}toJSON(){return{name:this.name,message:this.message,status:this.status,code:this.code,data:this.data}}}function Wa({baseURL:e,headers:t={},token:n,interceptResponses:s=!0,onError:i}){const l=gt.create({baseURL:e,headers:{"Content-Type":"application/json",Accept:"application/json",...t}});return n&&(l.defaults.headers.common.Authorization=`Bearer ${n}`),l.interceptors.request.use(c=>{typeof window<"u"&&c.headers.set("X-Origin-URL",window.location.href);const d=V3();if(c.requestId=d,iw)try{window.parent.postMessage({type:"api-request-start",requestId:d,data:{url:e+c.url,method:c.method,body:c.data instanceof FormData?"[FormData object]":c.data}},"*")}catch{}return c}),s&&l.interceptors.response.use(c=>{var d;const f=(d=c.config)===null||d===void 0?void 0:d.requestId;try{iw&&f&&window.parent.postMessage({type:"api-request-end",requestId:f,data:{statusCode:c.status,response:c.data}},"*")}catch{}return c.data},c=>{var d,f,m,p,g,x,N,b;const w=((f=(d=c.response)===null||d===void 0?void 0:d.data)===null||f===void 0?void 0:f.message)||((p=(m=c.response)===null||m===void 0?void 0:m.data)===null||p===void 0?void 0:p.detail)||c.message,S=new z3(w,(g=c.response)===null||g===void 0?void 0:g.status,(N=(x=c.response)===null||x===void 0?void 0:x.data)===null||N===void 0?void 0:N.co
337de,(b=c.response)===null||b===void 0?void 0:b.data,c);return i==null||i(S),Promise.reject(S)}),l}function aw(e){const{axios:t,appId:n,getSocket:s}=e;return new Proxy({},{get(i,l){if(!(typeof l!="string"||l==="then"||l.startsWith("_")))return $3(t,n,l,s)}})}function U3(e){var t;try{const n=JSON.parse(e);return{type:n.type,data:n.data,id:n.id||((t=n.data)===null||t===void 0?void 0:t.id),timestamp:n.timestamp||new Date().toISOString()}}catch(n){return console.warn("[Base44 SDK] Failed to parse realtime message:",n),null}}function $3(e,t,n,s){const i=`/apps/${t}/entities/${n}`;return{async list(l,c,d,f){const m={};return l&&(m.sort=l),c&&(m.limit=c),d&&(m.skip=d),f&&(m.fields=Array.isArray(f)?f.join(","):f),e.get(i,{params:m})},async filter(l,c,d,f,m){const p={q:JSON.stringify(l)};return c&&(p.sort=c),d&&(p.limit=d),f&&(p.skip=f),m&&(p.fields=Array.isArray(m)?m.join(","):m),e.get(i,{params:p})},async get(l){return e.get(`${i}/${l}`)},async create(l){return e.post(i,l)},async update(l,c){return e.put(`${i}/${l}`,c)},async delete(l){return e.delete(`${i}/${l}`)},async deleteMany(l){return e.delete(i,{data:l})},async bulkCreate(l){return e.post(`${i}/bulk`,l)},async updateMany(l,c){return e.patch(`${i}/update-many`,{query:l,data:c})},async bulkUpdate(l){return e.put(`${i}/bulk`,l)},async importEntities(l){const c=new FormData;return c.append("file",l,l.name),e.post(`${i}/import`,c,{headers:{"Content-Type":"multipart/form-data"}})},subscribe(l){const c=`entities:${t}:${n}`;return s().subscribeToRoom(c,{update_model:m=>{const p=U3(m.data);if(p)try{l(p)}catch(g){console.error("[Base44 SDK] Subscription callback error:",g)}}})}}}function W3(e,t){return{async call(n,s,i){if(!(n!=null&&n.trim()))throw new Error("Integration slug is required and cannot be empty");if(!(s!=null&&s.trim()))throw new Error("Operation ID is required and cannot be empty");const{pathParams:l,queryParams:c,...d}=i??{},f={...d,...l&&{path_params:l},...c&&{query_params:c}};return await e.post(`/apps/${t}/integrations/custom/${n}/${s}`,f)}}}function lw(e,t){const n=W3(e,t);return new Proxy({},{get(s,i){if(!(typeof i!="string"||i==="then"||i.startsWith("_")))return i==="custom"?n:new Proxy({},{get(l,c){if(!(typeof c!="string"||c==="then"||c.startsWith("_")))return async d=>{if(typeof d=="string")throw new Error(`Integration ${c} must receive an object with named parameters, received: ${d}`);let f,m;return d instanceof FormData||d&&Object.values(d).some(p=>p instanceof File)?(f=new FormData,Object.keys(d).forEach(p=>{d[p]instanceof File?f.append(p,d[p],d[p].name):typeof d[p]=="object"&&d[p]!==null?f.append(p,JSON.stringify(d[p])):f.append(p,d[p])}),m="multipart/form-data"):(f=d,m="application/json"),i==="Core"?e.post(`/apps/${t}/integration-endpoints/Core/${c}`,f||d,{headers:{"Content-Type":m}}):e.post(`/apps/${t}/integration-endpoints/installable/${i}/integration-endpoints/${c}`,f||d,{headers:{"Content-Type":m}})}}})}})}function H3(e,t,n,s){return{async me(){return e.get(`/apps/${n}/entities/User/me`)},async updateMe(i){return e.put(`/apps/${n}/entities/User/me`,i)},redirectToLogin(i){if(typeof window>"u")throw new Error("Login method can only be used in a browser environment");const l=i?new URL(i,window.location.origin).toString():window.location.href,c=`${s.appBaseUrl}/login?from_url=${encodeURIComponent(l)}`;window.location.href=c},loginWithProvider(i,l="/"){const c=new URL(l,window.location.origin).toString(),d=`app_id=${n}&from_url=${encodeURIComponent(c)}`;let f;i==="sso"?f=`/apps/${n}/auth/sso/login`:f=`/apps/auth${i==="google"?"":`/${i}`}/login`;const m=`${s.appBaseUrl}/api${f}?${d}`;window.location.href=m},logout(i){if(delete e.defaults.headers.common.Authorization,typeof window<"u"){if(window.localStorage)try{window.localStorage.removeItem("base44_access_token"),window.localStorage.removeItem("token")}catch(d){console.error("Failed to remove token from localStorage:",d)}const l=i||window.location.href,c=`${s.appBaseUrl}/api/apps/auth/logout?from_url=${encodeURIComponent(l)}`;window.location.href=c}},setToken(i,l=!0){if(i&&(e.defaults.headers.common.Authorization=`Bearer ${i}`,t.defaults.headers.common.Authorization=`Bearer ${i}`,l&&typeof window<"u"&&window.localStorage))try{window.localStorage.setItem("base44_access_token",i),window.localStorage.setItem("token",
337i)}catch(c){console.error("Failed to save token to localStorage:",c)}},async loginViaEmailPassword(i,l,c){var d;try{const f=await e.post(`/apps/${n}/auth/login`,{email:i,password:l,...c&&{turnstile_token:c}}),{access_token:m,user:p}=f;return m&&this.setToken(m),{access_token:m,user:p}}catch(f){throw((d=f.response)===null||d===void 0?void 0:d.status)===401&&await this.logout(),f}},async isAuthenticated(){try{return await this.me(),!0}catch{return!1}},inviteUser(i,l){return e.post(`/apps/${n}/users/invite-user`,{user_email:i,role:l})},register(i){return e.post(`/apps/${n}/auth/register`,i)},verifyOtp({email:i,otpCode:l}){return e.post(`/apps/${n}/auth/verify-otp`,{email:i,otp_code:l})},resendOtp(i){return e.post(`/apps/${n}/auth/resend-otp`,{email:i})},resetPasswordRequest(i){return e.post(`/apps/${n}/auth/reset-password-request`,{email:i})},resetPassword({resetToken:i,newPassword:l}){return e.post(`/apps/${n}/auth/reset-password`,{reset_token:i,new_password:l})},changePassword({userId:i,currentPassword:l,newPassword:c}){return e.post(`/apps/${n}/auth/change-password`,{user_id:i,current_password:l,new_password:c})}}}function q3(e,t){return{async getAccessToken(n){const s=`/apps/${t}/auth/sso/accesstoken/${n}`;return e.get(s)}}}function G3(e,t){return{async getAccessToken(n){if(!n||typeof n!="string")throw new Error("Integration type is required and must be a string");return(await e.get(`/apps/${t}/external-auth/tokens/${n}`)).access_token},async getConnection(n){var s;if(!n||typeof n!="string")throw new Error("Integration type is required and must be a string");const l=await e.get(`/apps/${t}/external-auth/tokens/${n}`);return{accessToken:l.access_token,connectionConfig:(s=l.connection_config)!==null&&s!==void 0?s:null}},async getCurrentAppUserAccessToken(n){if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");return(await e.get(`/apps/${t}/app-user-auth/connectors/${n}/token`)).access_token}}}function Y3(e,t){return{async connectAppUser(n){if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");return(await e.post(`/apps/${t}/app-user-auth/connectors/${n}/initiate`)).redirect_url},async disconnectAppUser(n){if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");await e.delete(`/apps/${t}/app-user-auth/connectors/${n}`)}}}function fl(e={}){const{storageKey:t="base44_access_token",paramName:n="access_token",saveToStorage:s=!0,removeFromUrl:i=!0}=e;let l=null;if(typeof window<"u"&&window.location)try{const c=new URLSearchParams(window.location.search);if(l=c.get(n),l){if(s&&K3(l,{storageKey:t}),i){c.delete(n);const d=`${window.location.pathname}${c.toString()?`?${c.toString()}`:""}${window.location.hash}`;window.history.replaceState({},document.title,d)}return l}}catch(c){console.error("Error retrieving token from URL:",c)}if(typeof window<"u"&&window.localStorage)try{return l=window.localStorage.getItem(t),l}catch(c){console.error("Error retrieving token from local storage:",c)}return null}function K3(e,t){const{storageKey:n="base44_access_token"}=t;if(typeof window>"u"||!window.localStorage||!e)return!1;try{return window.localStorage.setItem(n,e),window.localStorage.setItem("token",e),!0}catch(s){return console.error("Error saving token to local storage:",s),!1}}function cw(e,t,n){const s=(l,c)=>l?`${String(l).replace(/\/$/,"")}${c}`:c,i=l=>{const c=new Headers;if(n!=null&&n.getAuthHeaders){const d=n.getAuthHeaders();Object.entries(d).forEach(([f,m])=>{m!=null&&c.set(f,String(m))})}return l&&new Headers(l).forEach((d,f)=>{c.set(f,d)}),c};return{async invoke(l,c){if(typeof c=="string")throw new Error(`Function ${l} must receive an object with named parameters, received: ${c}`);let d,f;return c instanceof FormData||c&&Object.values(c).some(m=>m instanceof File)?(d=new FormData,Object.keys(c).forEach(m=>{c[m]instanceof File?d.append(m,c[m],c[m].name):typeof c[m]=="object"&&c[m]!==null?d.append(m,JSON.stringify(c[m])):d.append(m,c[m])}),f="multipart/form-data"):(d=c,f="application/json"),e.post(`/apps/${t}/functions/${l}`,d||c,{headers:{"Content-Type":f}})},async fetch(l,c={}){const f=`/functions${l.startsWith("/")?l:`/${l}`}`,m=i(c.headers),p={...c,headers:m};return await fetch(s(n==null?void 0:n.baseURL,f),p)}}}function uw({axios:e,getSocket:t,appId:n,serverUrl:s,token:i}){const l=`/apps/${n}/agents`,c={},d=()=>e.get(`${l}/conversations`),f=w=>e.get(`${l}/conversations/${w}`);return{getConversations:d,getConversation:f,listConversations:w=>e.get(`${l}/conversations`,{params:w}),createConversation:w=>e.post(`${l}/conversations`,w),addMessage:async(w,S)=>e.post(`${l}/conversations/v2/${w.id}/messages`,S),subscribeToConversation:(w,S)=>{const j=`/agent-conversations/${w}`,P=t(),A=f(w).then(E=>(c[w]=E,E));return P.subscribeToRoom(j,{connect:()=>{},update_model:async({data:E})=>{const D=JSON.parse(E);if(D._message){await A;const V=D._message,B=c[w];
337if(B){const L=B.messages||[],ne=L.findIndex(re=>re.id===V.id),Q=ne!==-1?L.map((re,ie)=>ie===ne?V:re):[...L,V];c[w]={...B,messages:Q},S==null||S(c[w])}}}})},getWhatsAppConnectURL:w=>{const S=`${s}/api/apps/${n}/agents/${encodeURIComponent(w)}/whatsapp`,j=i??fl();return j?`${S}?token=${j}`:S},getTelegramConnectURL:w=>{const S=`${s}/api/apps/${n}/agents/${encodeURIComponent(w)}/telegram`,j=i??fl();return j?`${S}?token=${j}`:S}}}function dw(e,t){const n=`/app-logs/${t}`;return{async logUserInApp(s){await e.post(`${n}/log-user-in-app/${s}`)},async fetchLogs(s={}){return await e.get(n,{params:s})},async getStats(s={}){return await e.get(`${n}/stats`,{params:s})}}}function Q3(e,t){return{async inviteUser(n,s){if(s!=="user"&&s!=="admin")throw new Error(`Invalid role: "${s}". Role must be either "user" or "admin".`);return await e.post(`/apps/${t}/runtime/users/invite-user`,{user_email:n,role:s})}}}const vs=Object.create(null);vs.open="0";vs.close="1";vs.ping="2";vs.pong="3";vs.message="4";vs.upgrade="5";vs.noop="6";const Pu=Object.create(null);Object.keys(vs).forEach(e=>{Pu[vs[e]]=e});const Jm={type:"error",data:"parser error"},Jk=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Zk=typeof ArrayBuffer=="function",eS=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,Yp=({type:e,data:t},n,s)=>Jk&&t instanceof Blob?n?s(t):hw(t,s):Zk&&(t instanceof ArrayBuffer||eS(t))?n?s(t):hw(new Blob([t]),s):s(vs[e]+(t||"")),hw=(e,t)=>{const n=new FileReader;return n.onload=function(){const s=n.result.split(",")[1];t("b"+(s||""))},n.readAsDataURL(e)};function fw(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let $f;function X3(e,t){if(Jk&&e.data instanceof Blob)return e.data.arrayBuffer().then(fw).then(t);if(Zk&&(e.data instanceof ArrayBuffer||eS(e.data)))return t(fw(e.data));Yp(e,!1,n=>{$f||($f=new TextEncoder),t($f.encode(n))})}const mw="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ha=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<mw.length;e++)Ha[mw.charCodeAt(e)]=e;const J3=e=>{let t=e.length*.75,n=e.length,s,i=0,l,c,d,f;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const m=new ArrayBuffer(t),p=new Uint8Array(m);for(s=0;s<n;s+=4)l=Ha[e.charCodeAt(s)],c=Ha[e.charCodeAt(s+1)],d=Ha[e.charCodeAt(s+2)],f=Ha[e.charCodeAt(s+3)],p[i++]=l<<2|c>>4,p[i++]=(c&15)<<4|d>>2,p[i++]=(d&3)<<6|f&63;return m},Z3=typeof ArrayBuffer=="function",Kp=(e,t)=>{if(typeof e!="string")return{type:"message",data:tS(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:e_(e.substring(1),t)}:Pu[n]?e.length>1?{type:Pu[n],data:e.substring(1)}:{type:Pu[n]}:Jm},e_=(e,t)=>
vendor: 38,107 bytes, line 337
337{if(Z3){const n=J3(e);return tS(n,t)}else return{base64:!0,data:e}},tS=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},nS="�",t_=(e,t)=>{const n=e.length,s=new Array(n);let i=0;e.forEach((l,c)=>{Yp(l,!1,d=>{s[c]=d,++i===n&&t(s.join(nS))})})},n_=(e,t)=>{const n=e.split(nS),s=[];for(let i=0;i<n.length;i++){const l=Kp(n[i],t);if(s.push(l),l.type==="error")break}return s};function s_(){return new TransformStream({transform(e,t){X3(e,n=>{const s=n.length;let i;if(s<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,s);else if(s<65536){i=new Uint8Array(3);const l=new DataView(i.buffer);l.setUint8(0,126),l.setUint16(1,s)}else{i=new Uint8Array(9);const l=new DataView(i.buffer);l.setUint8(0,127),l.setBigUint64(1,BigInt(s))}e.data&&typeof e.data!="string"&&(i[0]|=128),t.enqueue(i),t.enqueue(n)})}})}let Wf;function du(e){return e.reduce((t,n)=>t+n.length,0)}function hu(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let s=0;for(let i=0;i<t;i++)n[i]=e[0][s++],s===e[0].length&&(e.shift(),s=0);return e.length&&s<e[0].length&&(e[0]=e[0].slice(s)),n}function r_(e,t){Wf||(Wf=new TextDecoder);const n=[];let s=0,i=-1,l=!1;return new TransformStream({transform(c,d){for(n.push(c);;){if(s===0){if(du(n)<1)break;const f=hu(n,1);l=(f[0]&128)===128,i=f[0]&127,i<126?s=3:i===126?s=1:s=2}else if(s===1){if(du(n)<2)break;const f=hu(n,2);i=new DataView(f.buffer,f.byteOffset,f.length).getUint16(0),s=3}else if(s===2){if(du(n)<8)break;const f=hu(n,8),m=new DataView(f.buffer,f.byteOffset,f.length),p=m.getUint32(0);if(p>Math.pow(2,21)-1){d.enqueue(Jm);break}i=p*Math.pow(2,32)+m.getUint32(4),s=3}else{if(du(n)<i)break;const f=hu(n,i);d.enqueue(Kp(l?f:Wf.decode(f),t)),s=0}if(i===0||i>e){d.enqueue(Jm);break}}}})}const sS=4;function wt(e){if(e)return i_(e)}function i_(e){for(var t in wt.prototype)e[t]=wt.prototype[t];return e}wt.prototype.on=wt.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};wt.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};wt.prototype.off=wt.prototype.removeListener=wt.prototype.removeAllListeners=wt.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var s,i=0;i<n.length;i++)if(s=n[i],s===t||s.fn===t){n.splice(i,1);break}return n.length===0&&delete this._callbacks["$"+e],this};wt.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],s=1;s<arguments.length;s++)t[s-1]=arguments[s];if(n){n=n.slice(0);for(var s=0,i=n.length;s<i;++s)n[s].apply(this,t)}return this};wt.prototype.emitReserved=wt.prototype.emit;wt.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};wt.prototype.hasListeners=function(e){return!!this.listeners(e).length};const vd=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0),Tn=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),o_="arraybuffer";function rS(e,...t){return t.reduce((n,s)=>(e.hasOwnProperty(s)&&(n[s]=e[s]),n),{})}const a_=Tn.setTimeout,l_=Tn.clearTimeout;function xd(e,t){t.useNativeTimers?(e.setTimeoutFn=a_.bind(Tn),e.clearTimeoutFn=l_.bind(Tn)):(e.setTimeoutFn=Tn.setTimeout.bind(Tn),e.clearTimeoutFn=Tn.clearTimeout.bind(Tn))}const c_=1.33;function u_(e){return typeof e=="string"?d_(e):Math.ceil((e.byteLength||e.size)*c_)}function d_(e){let t=0,n=0;for(let s=0,i=e.length;s<i;s++)t=e.charCodeAt(s),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(s++,n+=4);return n}function iS(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function h_(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function f_(e){let t={},n=e.split("&");for(let s=0,i=n.length;s<i;s++){let l=n[s].split("=");t[decodeURIComponent(l[0])]=decodeURIComponent(l[1])}return t}class m_ extends Error{constructor(t,n,s){super(t),this.description=n,this.context=s,this.type="TransportError"}}class Qp extends wt{constructor(t){super(),this.writable=!1,xd(this,t),this.opts=t,this.query=t.query,this.socket=t.socket,this.supportsBinary=!t.forceBase64}onError(t,n,s){return super.emitReserved("error",new m_(t,n,s)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){const n=Kp(t,this.socket.binaryType);this.onPacket(n)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}createUri(t,n={}){return t+"://"+this._hostname()+this._port()+this.opts.path+this._query(n)}_hostname(){const t=this.opts.hostname;return t.indexOf(":")===-1?t:"["+t+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(t){const n=h_(t);return n.length?"?"+n:""}}class p_ extends Qp{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(t){this.readyState="pausing";const n=()=>{this.readyState="paused",t()};if(this._polling||!this.writable){let s=0;this._polling&&(s++,this.once("pollComplete",function(){--s||n()})),this.writable||(s++,this.once("drain",function(){--s||n()}))}else n()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=s=>{if(this.readyState==="opening"&&s.type==="open"&&this.onOpen(),s.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(s)};n_(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,t_(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=iS()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}}let oS=!1;try{oS=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const g_=oS;function y_(){}class v_ extends p_{constructor(t){if(super(t),typeof location<"u"){const n=location.protocol==="https:";let s=location.port;s||(s=n?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||s!==t.port}}doWrite(t,n){const s=this.request({method:"POST",data:t});s.on("success",n),s.on("error",(i,l)=>{this.onError("xhr post error",i,l)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,s)=>{this.onError("xhr poll error",n,s)}),this.pollXhr=t}}class fs extends wt{constructor(t,n,s){super(),this.createRequest=t,xd(this,s),this._opts=s,this._method=s.method||"GET",this._uri=n,this._data=s.data!==void 0?s.data:null,this._create()}_create(){var t;const n=rS(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this._opts.xd;const s=this._xhr=this.createRequest(n);try{s.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){s.setDisableHeaderCheck&&s.setDisableHeaderCheck(!0);for(let i in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(i)&&s.setRequestHeader(i,this._opts.extraHeaders[i])}}catch{}if(this._method==="POST")try{s.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{s.setRequestHeader("Accept","*/*")}catch{}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(s),"withCredentials"in s&&(s.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(s.timeout=this._opts.requestTimeout),s.onreadystatechange=()=>{var i;s.readyState===3&&((i=this._opts.cookieJar)===null||i===void 0||i.parseCookies(s.getResponseHeader("set-cookie"))),s.readyState===4&&(s.status===200||s.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof s.status=="number"?s.status:0)},0))},s.send(this._data)}catch(i){this.setTimeoutFn(()=>{this._onError(i)},0);return}typeof document<"u"&&(this._index=fs.requestsCount++,fs.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=y_,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete fs.requests[this._index],this._xhr=null}}_onLoad(){const t=this._xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}fs.requestsCount=0;fs.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",pw);else if(typeof addEventListener=="function"){const e="onpagehide"in Tn?"pagehide":"unload";addEventListener(e,pw,!1)}}function pw(){for(let e in fs.requests)fs.requests.hasOwnProperty(e)&&fs.requests[e].abort()}const x_=(function(){const e=aS({xdomain:!1});return e&&e.responseType!==null})();class w_ extends v_{constructor(t){super(t);const n=t&&t.forceBase64;this.supportsBinary=x_&&!n}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new fs(aS,this.uri(),t)}}function aS(e){const t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||g_))return new XMLHttpRequest}catch{}if(!t)try{return new Tn[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const lS=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class b_ extends Qp{get name(){return"websocket"}doOpen(){const t=this.uri(),n=this.opts.protocols,s=lS?{}:rS(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(s.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,n,s)}catch(i){return this.emitReserved("error",i)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const s=t[n],i=n===t.length-1;Yp(s,this.supportsBinary,l=>{try{this.doWrite(s,l)}catch{}i&&vd(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=iS()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}}const Hf=Tn.WebSocket||Tn.MozWebSocket;class k_ extends b_{createSocket(t,n,s){return lS?new Hf(t,n,s):n?new Hf(t,n):new Hf(t)}doWrite(t,n){this.ws.send(n)}}class S_ extends Qp{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved("error",t)}this._transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(t=>{const n=r_(Number.MAX_SAFE_INTEGER,this.socket.binaryType),s=t.readable.pipeThrough(n).getReader(),i=s_();i.readable.pipeTo(t.writable),this._writer=i.writable.getWriter();const l=()=>{s.read().then(({done:d,value:f})=>{d||(this.onPacket(f),l())}).catch(d=>{})};l();const c={type:"open"};this.query.sid&&(c.data=`{"sid":"${this.query.sid}"}`),this._writer.write(c).then(()=>this.onOpen())})})}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const s=t[n],i=n===t.length-1;this._writer.write(s).then(()=>{i&&vd(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}}const N_={websocket:k_,webtransport:S_,polling:w_},j_=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,C_=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Zm(e){if(e.length>8e3)throw"URI too long";const t=e,n=e.indexOf("["),s=e.indexOf("]");n!=-1&&s!=-1&&(e=e.substring(0,n)+e.substring(n,s).replace(/:/g,";")+e.substring(s,e.length));let i=j_.exec(e||""),l={},c=14;for(;c--;)l[C_[c]]=i[c]||"";return n!=-1&&s!=-1&&(l.source=t,l.host=l.host.substring(1,l.host.length-1).replace(/;/g,":"),l.authority=l.authority.replace("[","").replace("]","").replace(/;/g,":"),l.ipv6uri=!0),l.pathNames=A_(l,l.path),l.queryKey=P_(l,l.query),l}function A_(e,t){const n=/\/{2,9}/g,s=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&s.splice(0,1),t.slice(-1)=="/"&&s.splice(s.length-1,1),s}function P_(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(s,i,l){i&&(n[i]=l)}),n}const ep=typeof addEventListener=="function"&&typeof removeEventListener=="function",Eu=[];ep&&addEventListener("offline",()=>{Eu.forEach(e=>e())},!1);class Pr extends wt{constructor(t,n){if(super(),this.binaryType=o_,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t=="object"&&(n=t,t=null),t){const s=Zm(t);n.hostname=s.host,n.secure=s.protocol==="https"||s.protocol==="wss",n.port=s.port,s.query&&(n.query=s.query)}else n.host&&(n.hostname=Zm(n.host).host);xd(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},n.transports.forEach(s=>{const i=s.prototype.name;this.transports.push(i),this._transportsByName[i]=s}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=f_(this.opts.query)),ep&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},Eu.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=sS,n.transport=t,this.id&&(n.sid=this.id);const s=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](s)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const t=this.opts.rememberUpgrade&&Pr.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const n=this.createTransport(t);n.open(),this.setTransport(n)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",n=>this._onClose("transport close",n))}onOpen(){this.readyState="open",Pr.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const n=new Error("server error");n.code=t.data,this._onError(n);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let s=0;s<this.writeBuffer.length;s++){const i=this.writeBuffer[s].data;if(i&&(n+=u_(i)),s>0&&n>this._maxPayload)return this.writeBuffer.slice(0,s);n+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,vd(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,n,s){return this._sendPacket("message",t,n,s),this}send(t,n,s){return this._sendPacket("message",t,n,s),this}_sendPacket(t,n,s,i){if(typeof n=="function"&&(i=n,n=void 0),typeof s=="function"&&(i=s,s=null),this.readyState==="closing"||this.readyState==="closed")return;s=s||{},s.compress=s.compress!==!1;const l={type:t,data:n,options:s};this.emitReserved("packetCreate",l),this.writeBuffer.push(l),i&&this.once("flush",i),this.flush()}close(){const t=()=>{this._onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},s=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?s():t()}):this.upgrading?s():t()),this}_onError(t){if(Pr.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,n){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),ep&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const s=Eu.indexOf(this._offlineEventListener);s!==-1&&Eu.splice(s,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this._prevBufferLen=0}}}Pr.protocol=sS;class E_ extends Pr{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let t=0;t<this._upgrades.length;t++)this._probe(this._upgrades[t])}_probe(t){let n=this.createTransport(t),s=!1;Pr.priorWebsocketSuccess=!1;const i=()=>{s||(n.send([{type:"ping",data:"probe"}]),n.once("packet",g=>{if(!s)if(g.type==="pong"&&g.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;Pr.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{s||this.readyState!=="closed"&&(p(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const x=new Error("probe error");x.transport=n.name,this.emitReserved("upgradeError",x)}}))};function l(){s||(s=!0,p(),n.close(),n=null)}const c=g=>{const x=new Error("probe error: "+g);x.transport=n.name,l(),this.emitReserved("upgradeError",x)};function d(){c("transport closed")}function f(){c("socket closed")}function m(g){n&&g.name!==n.name&&l()}const p=()=>{n.removeListener("open",i),n.removeListener("error",c),n.removeListener("close",d),this.off("close",f),this.off("upgrading",m)};n.once("open",i),n.once("error",c),n.once("close",d),this.once("close",f),this.once("upgrading",m),this._upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{s||n.open()},200):n.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){const n=[];for(let s=0;s<t.length;s++)~this.transports.indexOf(t[s])&&n.push(t[s]);return n}}let T_=class extends E_{constructor(t,n={}){const s=typeof t=="object"?t:n;(!s.transports||s.transports&&typeof s.transports[0]=="string")&&(s.transports=(s.transports||["polling","websocket","webtransport"]).map(i=>N_[i]).filter(i=>!!i)),super(t,s)}};function R_(e,t="",n){let s=e;n=n||typeof location<"u"&&location,e==null&&(e=n.protocol+"//"+n.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=n.protocol+e:e=n.host+e),/^(https?|wss?):\/\//.test(e)||(typeof n<"u"?e=n.protocol+"//"+e:e="https://"+e),s=Zm(e)),s.port||(/^(http|ws)$/.test(s.protocol)?s.port="80":/^(http|ws)s$/.test(s.protocol)&&(s.port="443")),s.path=s.path||"/";const l=s.host.indexOf(":")!==-1?"["+s.host+"]":s.host;return s.id=s.protocol+"://"+l+":"+s.port+t,s.href=s.protocol+"://"+l+(n&&n.port===s.port?"":":"+s.port),s}const __=typeof ArrayBuffer=="function",D_=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,cS=Object.prototype.toString,M_=typeof Blob=="function"||typeof Blob<"u"&&cS.call(Blob)==="[object BlobConstructor]",F_=typeof File=="function"||typeof File<"u"&&cS.call(File)==="[object FileConstructor]";function Xp(e){return __&&(e instanceof ArrayBuffer||D_(e))||M_&&e instanceof Blob||F_&&e instanceof File}function Tu(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,s=e.length;n<s;n++)if(Tu(e[n]))return!0;return!1}if(Xp(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return Tu(e.toJSON(),!0);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&Tu(e[n]))return!0;return!1}function O_(e){const t=[],n=e.data,s=e;return s.data=tp(n,t),s.attachments=t.length,{packet:s,buffers:t}}function tp(e,t){if(!e)return e;if(Xp(e)){const n={_placeholder:!0,num:t.length};return t.push(e),n}else if(Array.isArray(e)){const n=new Array(e.length);for(let s=0;s<e.length;s++)n[s]=tp(e[s],t);return n}else if(typeof e=="object"&&!(e instanceof Date)){const n={};for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(n[s]=tp(e[s],t));return n}return e}function L_(e,t){return e.data=np(e.data,t),delete e.attachments,e}function np(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=np(e[n],t);else if(typeof e=="object")for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=np(e[n],t));return e}const I_=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],B_=5;var Ie;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(Ie||(Ie={}));class V_{constructor(t){this.replacer=t}encode(t){return(t.type===Ie.EVENT||t.type===Ie.ACK)&&Tu(t)?this.encodeAsBinary({type:t.type===Ie.EVENT?Ie.BINARY_EVENT:Ie.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let n=""+t.type;return(t.type===Ie.BINARY_EVENT||t.type===Ie.BINARY_ACK)&&(n+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(n+=t.nsp+","),t.id!=null&&(n+=t.id),t.data!=null&&(n+=JSON.stringify(t.data,this.replacer)),n}encodeAsBinary(t){const n=O_(t),s=this.encodeAsString(n.packet),i=n.buffers;return i.unshift(s),i}}function gw(e){return Object.prototype.toString.call(e)==="[object Object]"}class Jp extends wt{constructor(t){super(),this.reviver=t}add(t){let n;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=this.decodeString(t);const s=n.type===Ie.BINARY_EVENT;s||n.type===Ie.BINARY_ACK?(n.type=s?Ie.EVENT:Ie.ACK,this.reconstructor=new z_(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(Xp(t)||t.base64)if(this.reconstructor)n=this.reconstructor.takeBinaryData(t),n&&(this.reconstructor=null,super.emitReserved("decoded",n));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let n=0;const s={type:Number(t.charAt(0))};if(Ie[s.type]===void 0)throw new Error("unknown packet type "+s.type);if(s.type===Ie.BINARY_EVENT||s.type===Ie.BINARY_ACK){const l=n+1;for(;t.charAt(++n)!=="-"&&n!=t.length;);const c=t.substring(l,n);if(c!=Number(c)||t.charAt(n)!=="-")throw new Error("Illegal attachments");s.attachments=Number(c)}if(t.charAt(n+1)==="/"){const l=n+1;for(;++n&&!(t.charAt(n)===","||n===t.length););s.nsp=t.substring(l,n)}else s.nsp="/";const i=t.charAt(n+1);if(i!==""&&Number(i)==i){const l=n+1;for(;++n;){const c=t.charAt(n);if(c==null||Number(c)!=c){--n;break}if(n===t.length)break}s.id=Number(t.substring(l,n+1))}if(t.charAt(++n)){const l=this.tryParse(t.substr(n));if(Jp.isPayloadValid(s.type,l))s.data=l;else throw new Error("invalid payload")}return s}tryParse(t){try{return JSON.parse(t,this.reviver)}catch{return!1}}static isPayloadValid(t,n){switch(t){case Ie.CONNECT:return gw(n);case Ie.DISCONNECT:return n===void 0;case Ie.CONNECT_ERROR:return typeof n=="string"||gw(n);case Ie.EVENT:case Ie.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&I_.indexOf(n[0])===-1);case Ie.ACK:case Ie.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class z_{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const n=L_(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const U_=Object.freeze(Object.defineProperty({__proto__:null,Decoder:Jp,Encoder:V_,get PacketType(){return Ie},protocol:B_},Symbol.toStringTag,{value:"Module"}));function Un(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const $_=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class uS extends wt{constructor(t,n,s){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=n,s&&s.auth&&(this.auth=s.auth),this._opts=Object.assign({},s),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[Un(t,"open",this.onopen.bind(this)),Un(t,"packet",this.onpacket.bind(this)),Un(t,"error",this.onerror.bind(this)),Un(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...n){var s,i,l;if($_.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(n.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(n),this;const c={type:Ie.EVENT,data:n};if(c.options={},c.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const p=this.ids++,g=n.pop();this._registerAckCallback(p,g),c.id=p}const d=(i=(s=this.io.engine)===null||s===void 0?void 0:s.transport)===null||i===void 0?void 0:i.writable,f=this.connected&&!(!((l=this.io.engine)===null||l===void 0)&&l._hasPingExpired());return this.flags.volatile&&!d||(f?(this.notifyOutgoingListeners(c),this.packet(c)):this.sendBuffer.push(c)),this.flags={},this}_registerAckCallback(t,n){var s;const i=(s=this.flags.timeout)!==null&&s!==void 0?s:this._opts.ackTimeout;if(i===void 0){this.acks[t]=n;return}const l=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let d=0;d<this.sendBuffer.length;d++)this.sendBuffer[d].id===t&&this.sendBuffer.splice(d,1);n.call(this,new Error("operation has timed out"))},i),c=(...d)=>{this.io.clearTimeoutFn(l),n.apply(this,d)};c.withError=!0,this.acks[t]=c}emitWithAck(t,...n){return new Promise((s,i)=>{const l=(c,d)=>c?i(c):s(d);l.withError=!0,n.push(l),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());const s={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((i,...l)=>s!==this._queue[0]?void 0:(i!==null?s.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(i)):(this._queue.shift(),n&&n(null,...l)),s.pending=!1,this._drainQueue())),this._queue.push(s),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:Ie.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(s=>String(s.id)===t)){const s=this.acks[t];delete this.acks[t],s.withError&&s.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case Ie.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Ie.EVENT:case Ie.BINARY_EVENT:this.onevent(t);break;case Ie.ACK:case Ie.BINARY_ACK:this.onack(t);break;case Ie.DISCONNECT:this.ondisconnect();break;case Ie.CONNECT_ERROR:this.destroy();const s=new Error(t.data.message);s.data=t.data.data,this.emitReserved("connect_error",s);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const s of n)s.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const n=this;let s=!1;return function(...i){s||(s=!0,n.packet({type:Ie.ACK,id:t,data:i}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(delete this.acks[t.id],n.withError&&t.data.unshift(null),n.apply(this,t.data))}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Ie.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let s=0;s<n.length;s++)if(t===n[s])return n.splice(s,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){const n=this._anyOutgoingListeners;for(let s=0;s<n.length;s++)if(t===n[s])return n.splice(s,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const n=this._anyOutgoingListeners.slice();for(const s of n)s.apply(this,t.data)}}}function $o(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}$o.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=(Math.floor(t*10)&1)==0?e-n:e+n}return Math.min(e,this.max)|0};$o.prototype.reset=function(){this.attempts=0};$o.prototype.setMin=function(e){this.ms=e};$o.prototype.setMax=function(e){this.max=e};$o.prototype.setJitter=function(e){this.jitter=e};class sp extends wt{constructor(t,n){var s;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,xd(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((s=n.randomizationFactor)!==null&&s!==void 0?s:.5),this.backoff=new $o({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const i=n.parser||U_;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new T_(this.uri,this.opts);const n=this.engine,s=this;this._readyState="opening",this.skipReconnect=!1;const i=Un(n,"open",function(){s.onopen(),t&&t()}),l=d=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",d),t?t(d):this.maybeReconnectOnOpen()},c=Un(n,"error",l);if(this._timeout!==!1){const d=this._timeout,f=this.setTimeoutFn(()=>{i(),l(new Error("timeout")),n.close()},d);this.opts.autoUnref&&f.unref(),this.subs.push(()=>{this.clearTimeoutFn(f)})}return this.subs.push(i),this.subs.push(c),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(Un(t,"ping",this.onping.bind(this)),Un(t,"data",this.ondata.bind(this)),Un(t,"error",this.onerror.bind(this)),Un(t,"close",this.onclose.bind(this)),Un(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){vd(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let s=this.nsps[t];return s?this._autoConnect&&!s.active&&s.connect():(s=new uS(this,t,n),this.nsps[t]=s),s}_destroy(t){const n=Object.keys(this.nsps);for(const s of n)if(this.nsps[s].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let s=0;s<n.length;s++)this.engine.write(n[s],t.options)}
337cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,n){var s;this.cleanup(),(s=this.engine)===null||s===void 0||s.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const s=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(i=>{i?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",i)):t.onreconnect()}))},n);this.opts.autoUnref&&s.unref(),this.subs.push(()=>{this.clearTimeoutFn(s)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const Oa={};function Ru(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=R_(e,t.path||"/socket.io"),s=n.source,i=n.id,l=n.path,c=Oa[i]&&l in Oa[i].nsps,d=t.forceNew||t["force new connection"]||t.multiplex===!1||c;let f;return d?f=new sp(s,t):(Oa[i]||(Oa[i]=new sp(s,t)),f=Oa[i]),n.query&&!t.query&&(t.query=n.queryKey),f.socket(n.path,t)}Object.assign(Ru,{Manager:sp,Socket:uS,io:Ru,connect:Ru});function yw(e,t){var n;const s=Ru(e.serverUrl,{path:e.mountPath,transports:e.transports,query:{app_id:e.appId,token:(n=e.token)!==null&&n!==void 0?n:fl()}});return s.on("connect",async()=>{var i;return console.log("connect",s.id),(i=t.connect)===null||i===void 0?void 0:i.call(t)}),s.on("update_model",async i=>{var l;return(l=t.update_model)===null||l===void 0?void 0:l.call(t,i)}),s.on("error",async i=>{var l;return(l=t.error)===null||l===void 0?void 0:l.call(t,i)}),s.on("connect_error",async i=>{var l;return console.error("connect_error",i),(l=t.error)===null||l===void 0?void 0:l.call(t,i)}),s}function W_({config:e}){let t={...e};const n={},s={connect:async()=>{const N=[];Object.keys(n).forEach(b=>{f(b);const w=g(b);w==null||w.forEach(({connect:S})=>{const j=async()=>S==null?void 0:S();N.push(j())})}),await Promise.all(N)},update_model:async N=>{const w=g(N.room).map(S=>{var j;return(j=S.update_model)===null||j===void 0?void 0:j.call(S,N)});await Promise.all(w)},error:async N=>{console.error("error",N);const b=Object.values(n).flat().map(w=>{var S;return(S=w.error)===null||S===void 0?void 0:S.call(w,N)});await Promise.all(b)}};let i=yw(e,s);function l(){c()}function c(){i&&i.disconnect()}function d(N){l(),t={...t,...N},i=yw(t,s)}function f(N){i.emit("join",N)}function m(N){i.emit("leave",N)}async function p(N,b){var w;const S=JSON.stringify(b);return(w=s.update_model)===null||w===void 0?void 0:w.call(s,{room:N,data:S})}function g(N){return n[N]}return{socket:i,subscribeToRoom:(N,b)=>(n[N]||(f(N),n[N]=[]),n[N].push(b),()=>{var w,S;n[N]=(S=(w=n[N])===null||w===void 0?void 0:w.filter(j=>j!==b))!==null&&S!==void 0?S:[],n[N].length===0&&m(N)}),updateConfig:d,updateModel:p,disconnect:c}}const La=typeof window<"u"?window:{base44SharedInstances:{}};function H_(e,t){return La.base44SharedInstances||(La.base44SharedInstances={}),La.base44SharedInstances[e]||(La.base44SharedInstances[e]={instance:t()}),La.base44SharedInstances[e].instance}const q_="__user_heartbeat_event__",G_="__initialization_event__",Y_="__session_duration_event__",vw="analytics-enable",xw="base44_analytics_session_id",K_={enabled:!0,maxQueueSize:1e3,throttleTime:1e3,batchSize:30,heartBeatInterval:60*1e3},Q_="analytics",Ge=H_(Q_,()=>({requestsQueue:[],isProcessing:!1,isHeartBeatProcessing:!1,wasInitializationTracked:!1,sessionContext:null,sessionStartTime:null,config:{...K_,...rD()}})),X_=({axiosClient:e,serverUrl:t,appId:n,userAuthModule:s})=>{var i;const{maxQueueSize:l,throttleTime:c,batchSize:d}=Ge.config;if(!(!((i=Ge.config)===null||i===void 0)&&i.enabled))return{track:()=>{},cleanup:()=>{}};let f;const m=`${t}/api/apps/${n}/analytics/track/batch`,p=async A=>{await e.request({method:"POST",url:`/apps/${n}/analytics/track/batch`,data:{events:A}})},g=A=>{try{const E=JSON.stringify({events:A}),D=new Blob([E],{type:"application/json"});return typeof navigator>"u"||E.length>6e4||!navigator.sendBeacon(m,D)}catch{return!1}},x=async(A,E={})=>
337{if(A.length===0)return;const D=await sD(s),V=A.map(nD(D));try{(!E.isBeacon||!g(V))&&await p(V)}catch{}},N=()=>{bw(x,{throttleTime:c,batchSize:d})},b=A=>{if(Ge.requestsQueue.length>=l)return;const E=tD();Ge.requestsQueue.push({...A,...E}),N()},w=()=>{bw(x,{throttleTime:c,batchSize:d}),f=kw(b),Z_()},S=()=>{ww(),f==null||f(),eD(b);const A=Ge.requestsQueue.splice(0);x(A,{isBeacon:!0})},j=()=>{typeof window>"u"||(document.visibilityState==="hidden"?S():document.visibilityState==="visible"&&w())},P=()=>{ww(),f==null||f(),typeof window<"u"&&window.removeEventListener("visibilitychange",j)};return N(),f=kw(b),J_(b),typeof window<"u"&&window.addEventListener("visibilitychange",j),{track:b,cleanup:P}};function ww(){Ge.isProcessing=!1}async function bw(e,t){if(Ge.isProcessing)return;Ge.isProcessing=!0;const{throttleTime:n=1e3,batchSize:s=30}=t??{};for(;Ge.isProcessing&&Ge.requestsQueue.length>0;){const i=Ge.requestsQueue.splice(0,s);i.length&&await e(i),await new Promise(l=>setTimeout(l,n))}Ge.isProcessing=!1}function kw(e){var t;if(Ge.isHeartBeatProcessing||((t=Ge.config.heartBeatInterval)!==null&&t!==void 0?t:0)<10)return()=>{};Ge.isHeartBeatProcessing=!0;const n=setInterval(()=>{e({eventName:q_})},Ge.config.heartBeatInterval);return()=>{clearInterval(n),Ge.isHeartBeatProcessing=!1}}function J_(e){typeof window>"u"||Ge.wasInitializationTracked||(Ge.wasInitializationTracked=!0,e({eventName:G_,properties:{referrer:document==null?void 0:document.referrer}}))}function Z_(){typeof window>"u"||Ge.sessionStartTime!==null||(Ge.sessionStartTime=new Date().toISOString())}function eD(e){if(typeof window>"u"||Ge.sessionStartTime===null)return;const t=new Date().getTime()-new Date(Ge.sessionStartTime).getTime();Ge.sessionStartTime=null,e({eventName:Y_,properties:{sessionDuration:t}})}function tD(){return{timestamp:new Date().toISOString(),pageUrl:typeof window<"u"?window.location.pathname:null}}function nD(e){return t=>({event_name:t.eventName,properties:t.properties,timestamp:t.timestamp,page_url:t.pageUrl,...e})}let qf=null;async function sD(e){if(!Ge.sessionContext){if(!qf){const t=iD();qf=e.me().then(n=>({user_id:n.id,session_id:t})).catch(()=>({user_id:null,session_id:t}))}Ge.sessionContext=await qf}return Ge.sessionContext}function rD(){if(typeof window>"u")return;const t=new URLSearchParams(window.location.search).get(vw);if(t==null||!t.length)return;const n=new URLSearchParams(window.location.search);n.delete(vw);const s=window.location.pathname+(n.toString()?"?"+n.toString():"");return window.history.replaceState({},"",s),{enabled:t==="true"}}function iD(){if(typeof window>"u")return zf();try{const e=localStorage.getItem(xw);if(!e){const t=zf();return localStorage.setItem(xw,t),t}return e}catch{return zf()}}function oD(e){var t,n;const{serverUrl:s="https://base44.app",appId:i,token:l,serviceToken:c,requiresAuth:d=!1,appBaseUrl:f,options:m,functionsVersion:p,headers:g}=e,x=typeof f=="string"?f:"",N={serverUrl:s,mountPath:"/ws-user-apps/socket.io/",transports:["websocket"],appId:i,token:l};let b=null;const w=()=>(b||(b=W_({config:N})),b),S={...g,"X-App-Id":String(i)},j=p?{...S,"Base44-Functions-Version":p}:S,P=Wa({baseURL:`${s}/api`,headers:S,token:l,onError:m==null?void 0:m.onError}),A=Wa({baseURL:`${s}/api`,headers:j,token:l,interceptResponses:!1,onError:m==null?void 0:m.onError}),E={...S,...l?{"on-behalf-of":`Bearer ${l}`}:{}},D=Wa({baseURL:`${s}/api`,headers:E,token:c,onError:m==null?void 0:m.onError}),V=Wa({baseURL:`${s}/api`,headers:j,token:c,interceptResponses:!1}),B=H3(P,A,i,{appBaseUrl:x}),L={entities:aw({axios:P,appId:i,getSocket:w}),integrations:lw(P,i),connectors:Y3(P,i),auth:B,functions:cw(A,i,{getAuthHeaders:()=>{const re={},ie=l||fl();return ie&&(re.Authorization=`Bearer ${ie}`),re},baseURL:(t=A.defaults)===null||t===void 0?void 0:t.baseURL}),agents:uw({axios:P,getSocket:w,appId:i,serverUrl:s,token:l}),appLogs:dw(P,i),users:Q3(P,i),analytics:X_({axiosClient:P,serverUrl:s,appId:i,userAuthModule:B}),cleanup:()=>{L.analytics.cleanup(),b&&b.disconnect()}},ne={entities:aw({axios:D,appId:i,getSocket:w}
337),integrations:lw(D,i),sso:q3(D,i),connectors:G3(D,i),functions:cw(V,i,{getAuthHeaders:()=>{const re={};return c&&(re.Authorization=`Bearer ${c}`),re},baseURL:(n=V.defaults)===null||n===void 0?void 0:n.baseURL}),agents:uw({axios:D,getSocket:w,appId:i,serverUrl:s,token:l}),appLogs:dw(D,i),cleanup:()=>{b&&b.disconnect()}};if(typeof window<"u"){const re=l||fl();re&&L.auth.setToken(re)}return d&&typeof window<"u"&&setTimeout(async()=>{try{await L.auth.isAuthenticated()||L.auth.redirectToLogin(window.location.href)}catch(re){console.error("Authentication check failed:",re),L.auth.redirectToLogin(window.location.href)}},0),{...L,setToken(re){L.auth.setToken(re),b&&b.updateConfig({token:re}),N.token=re},getConfig(){return{serverUrl:s,appId:i,requiresAuth:d}},get asServiceRole(){if(!c)throw new Error("Service token is required to use asServiceRole. Please provide a serviceToken when creating the client.");return ne}}}const dS=typeof window>"u",aD=dS?{localStorage:new Map}:window,Za=aD.localStorage,lD=e=>e.replace(/([A-Z])/g,"_$1").toLowerCase(),Ia=(e,{defaultValue:t=void 0,removeFromUrl:n=!1}={})=>{if(dS)return t;const s=`base44_${lD(e)}`,i=new URLSearchParams(window.location.search),l=i.get(e);if(n){i.delete(e);const d=`${window.location.pathname}${i.toString()?`?${i.toString()}`:""}${window.location.hash}`;window.history.replaceState({},document.title,d)}if(l)return Za.setItem(s,l),l;if(t)return Za.setItem(s,t),t;const c=Za.getItem(s);return c||null},cD=()=>(Ia("clear_access_token")==="true"&&(Za.removeItem("base44_access_token"),Za.removeItem("token")),{appId:Ia("app_id",{defaultValue:"6951d4c5f53c7bd92a68d780"}),token:Ia("access_token",{removeFromUrl:!0}),fromUrl:Ia("from_url",{defaultValue:window.location.href}),functionsVersion:Ia("functions_version",{defaultValue:"prod"})}),qa={...cD()},{appId:uD,token:dD,functionsVersion:hD}=qa,bt=oD({appId:uD,token:dD,functionsVersion:hD,serverUrl:"",requiresAuth:!1}),hS=k.createContext(),fD=({children:e})=>{const[t,n]=k.useState(null),[s,i]=k.useState(!1),[l,c]=k.useState(!0),[d,f]=k.useState(!0),[m,p]=k.useState(null),[g,x]=k.useState(null);k.useEffect(()=>{N()},[]);const N=async()=>{var j,P;try{f(!0),p(null);const A=Wa({baseURL:"/api/apps/public",headers:{"X-App-Id":qa.appId},token:qa.token,interceptResponses:!0});try{const E=await A.get(`/prod/public-settings/by-id/${qa.appId}`);x(E),qa.token?await b():(c(!1),i(!1)),f(!1)}catch(E){if(console.error("App state check failed:",E),E.status===403&&((P=(j=E.data)==null?void 0:j.extra_data)!=null&&P.reason)){const D=E.data.extra_data.reason;p(D==="auth_required"?{type:"auth_required",message:"Authentication required"}:D==="user_not_registered"?{type:"user_not_registered",message:"User not registered for this app"}:{type:D,message:E.message})}else p({type:"unknown",message:E.message||"Failed to load app"});f(!1),c(!1)}}catch(A){console.error("Unexpected error:",A),p({type:"unknown",message:A.message||"An unexpected error occurred"}),f(!1),c(!1)}},b=async()=>{try{c(!0);const j=await bt.auth.me();n(j),i(!0),c(!1)}catch(j){console.error("User auth check failed:",j),c(!1),i(!1),(j.status===401||j.status===403)&&p({type:"auth_required",message:"Authentication required"})}},w=(j=!0)=>{n(null),i(!1),j?bt.auth.logout(window.location.href):bt.auth.logout()},S=()=>{bt.auth.redirectToLogin(window.location.href)};return a.jsx(hS.Provider,{value:{user:t,isAuthenticated:s,isLoadingAuth:l,isLoadingPublicSettings:d,authError:m,appPublicSettings:g,logout:w,navigateToLogin:S,checkAppState:N},children:e})},fS=()=>{const e=k.useContext(hS);if(!e)throw new Error("useAuth must be used within an AuthProvider");return e},wd=k.createContext(null);function Zp(e){const t=k.useRef(null);return t.current===null&&(t.current=e()),t.current}const eg=k.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class mD extends k.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const s=this.props.sizeRef.current;s.height=n.offsetHeight||0,s.width=n.offsetWidth||0,s.top=n.offsetTop,s.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function pD({children:e,isPresent:t}){const n=k.useId(),s=k.useRef(null),i=k.useRef({width:0,height:0,top:0,left:0}),{nonce:l}=k.useContext(eg);return k.useInsertionEffect(()=>{const{width:c,height:d,top:f,left:m}=i.current;if(t||!s.current||!c||!d)return;s.current.dataset.motionPopId=n;const p=document.createElement("style");return l&&(p.nonce=l),document.head.appendChild(p),p.sheet&&p.sheet.insertRule(`
338          [data-motion-pop-id="${n}"] {
339            position: absolute !important;
340            width: ${c}px !important;
341            height: ${d}px !important;
342            top: ${f}px !important;
343            left: ${m}px !important;
344          }
345        `),()=>{document.head.removeChild(p)}},[t]),a.jsx(mD,{isPresent:t,childRef:s,sizeRef:i,children:k.cloneElement(e,{ref:s})})}const gD=({children:e,initial:t,isPresent:n,onExitComplete:s,custom:i,presenceAffectsLayout:l,mode:c})=>{const d=Zp(yD),f=k.useId(),m=k.useCallback(g=>{d.set(g,!0);for(const x of d.values())if(!x)return;s&&s()},[d,s]),p=k.useMemo(()=>({id:f,initial:t,isPresent:n,custom:i,onExitComplete:m,register:g=>(d.set(g,!1),()=>d.delete(g))}),l?[Math.random(),m]:[n,m]);return k.useMemo(()=>{d.forEach((g,x)=>d.set(x,!1))},[n]),k.useEffect(()=>{!n&&!d.size&&s&&s()},[n]),c==="popLayout"&&(e=a.jsx(pD,{isPresent:n,children:e})),a.jsx(wd.Provider,{value:p,children:e})};function yD(){return new Map}const tg=k.createContext({}),gn=e=>e;let mS=gn;function ng(e){let t;return()=>(t===void 0&&(t=e()),t)}const Ro=(e,t,n)=>{const s=t-e;return s===0?1:(n-e)/s},Os=e=>e*1e3,Ls=e=>e/1e3,fu=e=>e.key||"";function Sw(e){const t=[];
vendor: 38,947 bytes, line 345
345return k.Children.forEach(e,n=>{k.isValidElement(n)&&t.push(n)}),t}const sg=typeof window<"u",pS=sg?k.useLayoutEffect:k.useEffect,Hn=({children:e,exitBeforeEnter:t,custom:n,initial:s=!0,onExitComplete:i,presenceAffectsLayout:l=!0,mode:c="sync"})=>{const d=k.useMemo(()=>Sw(e),[e]),f=d.map(fu),m=k.useRef(!0),p=k.useRef(d),g=Zp(()=>new Map),[x,N]=k.useState(d),[b,w]=k.useState(d);pS(()=>{m.current=!1,p.current=d;for(let P=0;P<b.length;P++){const A=fu(b[P]);f.includes(A)?g.delete(A):g.get(A)!==!0&&g.set(A,!1)}},[b,f.length,f.join("-")]);const S=[];if(d!==x){let P=[...d];for(let A=0;A<b.length;A++){const E=b[A],D=fu(E);f.includes(D)||(P.splice(A,0,E),S.push(E))}c==="wait"&&S.length&&(P=S),w(Sw(P)),N(d);return}const{forceRender:j}=k.useContext(tg);return a.jsx(a.Fragment,{children:b.map(P=>{const A=fu(P),E=d===b||f.includes(A),D=()=>{if(g.has(A))g.set(A,!0);else return;let V=!0;g.forEach(B=>{B||(V=!1)}),V&&(j==null||j(),w(p.current),i&&i())};return a.jsx(gD,{isPresent:E,initial:!m.current||s?void 0:!1,custom:E?void 0:n,presenceAffectsLayout:l,mode:c,onExitComplete:E?void 0:D,children:P},A)})})},vD={useManualTiming:!1};function xD(e){let t=new Set,n=new Set,s=!1,i=!1;const l=new WeakSet;let c={delta:0,timestamp:0,isProcessing:!1};function d(m){l.has(m)&&(f.schedule(m),e()),m(c)}const f={schedule:(m,p=!1,g=!1)=>{const N=g&&s?t:n;return p&&l.add(m),N.has(m)||N.add(m),m},cancel:m=>{n.delete(m),l.delete(m)},process:m=>{if(c=m,s){i=!0;return}s=!0,[t,n]=[n,t],t.forEach(d),t.clear(),s=!1,i&&(i=!1,f.process(m))}};return f}const mu=["read","resolveKeyframes","update","preRender","render","postRender"],wD=40;function gS(e,t){let n=!1,s=!0;const i={delta:0,timestamp:0,isProcessing:!1},l=()=>n=!0,c=mu.reduce((j,P)=>(j[P]=xD(l),j),{}),{read:d,resolveKeyframes:f,update:m,preRender:p,render:g,postRender:x}=c,N=()=>{const j=performance.now();n=!1,i.delta=s?1e3/60:Math.max(Math.min(j-i.timestamp,wD),1),i.timestamp=j,i.isProcessing=!0,d.process(i),f.process(i),m.process(i),p.process(i),g.process(i),x.process(i),i.isProcessing=!1,n&&t&&(s=!1,e(N))},b=()=>{n=!0,s=!0,i.isProcessing||e(N)};return{schedule:mu.reduce((j,P)=>{const A=c[P];return j[P]=(E,D=!1,V=!1)=>(n||b(),A.schedule(E,D,V)),j},{}),cancel:j=>{for(let P=0;P<mu.length;P++)c[mu[P]].cancel(j)},state:i,steps:c}}const{schedule:et,cancel:Tr,state:Mt,steps:Gf}=gS(typeof requestAnimationFrame<"u"?requestAnimationFrame:gn,!0),yS=k.createContext({strict:!1}),Nw={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"]},_o={};for(const e in Nw)_o[e]={isEnabled:t=>Nw[e].some(n=>!!t[n])};function bD(e){for(const t in e)_o[t]={..._o[t],...e[t]}}const kD=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 Yu(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||kD.has(e)}let vS=e=>!Yu(e);function SD(e){e&&(vS=t=>t.startsWith("on")?!Yu(t):e(t))}try{SD(require("@emotion/is-prop-valid").default)}catch{}function ND(e,t,n){const s={};for(const i in e)i==="values"&&typeof e.values=="object"||(vS(i)||n===!0&&Yu(i)||!t&&!Yu(i)||e.draggable&&i.startsWith("onDrag"))&&(s[i]=e[i]);return s}function jD(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...s)=>e(...s);return new Proxy(n,{get:(s,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}const bd=k.createContext({});function ml(e){return typeof e=="string"||Array.isArray(e)}function kd(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const rg=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ig=["initial",...rg];function Sd(e){return kd(e.animate)||ig.some(t=>ml(e[t]))}function xS(e){return!!(Sd(e)||e.variants)}function CD(e,t){if(Sd(e)){const{initial:n,animate:s}=e;return{initial:n===!1||ml(n)?n:void 0,animate:ml(s)?s:void 0}}return e.inherit!==!1?t:{}}function AD(e){const{initial:t,animate:n}=CD(e,k.useContext(bd));return k.useMemo(()=>({initial:t,animate:n}),[jw(t),jw(n)])}function jw(e){return Array.isArray(e)?e.join(" "):e}const PD=Symbol.for("motionComponentSymbol");function ao(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function ED(e,t,n){return k.useCallback(s=>{s&&e.mount&&e.mount(s),t&&(s?t.mount(s):t.unmount()),n&&(typeof n=="function"?n(s):ao(n)&&(n.current=s))},[t])}const og=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),TD="framerAppearId",wS="data-"+og(TD),{schedule:ag}=gS(queueMicrotask,!1),bS=k.createContext({});function RD(e,t,n,s,i){var l,c;const{visualElement:d}=k.useContext(bd),f=k.useContext(yS),m=k.useContext(wd),p=k.useContext(eg).reducedMotion,g=k.useRef(null);s=s||f.renderer,!g.current&&s&&(g.current=s(e,{visualState:t,parent:d,props:n,presenceContext:m,blockInitialAnimation:m?m.initial===!1:!1,reducedMotionConfig:p}));const x=g.current,N=k.useContext(bS);x&&!x.projection&&i&&(x.type==="html"||x.type==="svg")&&_D(g.current,n,i,N);const b=k.useRef(!1);k.useInsertionEffect(()=>{x&&b.current&&x.update(n,m)});const w=n[wS],S=k.useRef(!!w&&!(!((l=window.MotionHandoffIsComplete)===null||l===void 0)&&l.call(window,w))&&((c=window.MotionHasOptimisedAnimation)===null||c===void 0?void 0:c.call(window,w)));return pS(()=>{x&&(b.current=!0,window.MotionIsMounted=!0,x.updateFeatures(),ag.render(x.render),S.current&&x.animationState&&x.animationState.animateChanges())}),k.useEffect(()=>{x&&(!S.current&&x.animationState&&x.animationState.animateChanges(),S.current&&(queueMicrotask(()=>{var j;(j=window.MotionHandoffMarkAsComplete)===null||j===void 0||j.call(window,w)}),S.current=!1))}),x}function _D(e,t,n,s){const{layoutId:i,layout:l,drag:c,dragConstraints:d,layoutScroll:f,layoutRoot:m}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:kS(e.parent)),e.projection.setOptions({layoutId:i,layout:l,alwaysMeasureLayout:!!c||d&&ao(d),visualElement:e,animationType:typeof l=="string"?l:"both",initialPromotionConfig:s,layoutScroll:f,layoutRoot:m})}function kS(e){if(e)return e.options.allowProjection!==!1?e.projection:kS(e.parent)}function DD({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:s,Component:i}){var l,c;e&&bD(e);function d(m,p){let g;const x={...k.useContext(eg),...m,layoutId:MD(m)},{isStatic:N}=x,b=AD(m),w=s(m,N);if(!N&&sg){FD();const S=OD(x);g=S.MeasureLayout,b.visualElement=RD(i,w,x,t,S.ProjectionNode)}return a.jsxs(bd.Provider,{value:b,children:[g&&b.visualElement?a.jsx(g,{visualElement:b.visualElement,...x}):null,n(i,m,ED(w,b.visualElement,p),w,N,b.visualElement)]})}d.displayName=`motion.${typeof i=="string"?i:`create(${(c=(l=i.displayName)!==null&&l!==void 0?l:i.name)!==null&&c!==void 0?c:""})`}`;const f=k.forwardRef(d);return f[PD]=i,f}function MD({layoutId:e}){const t=k.useContext(tg).id;return t&&e!==void 0?t+"-"+e:e}function FD(e,t){k.useContext(yS).strict}function OD(e){const{drag:t,layout:n}=_o;if(!t&&!n)return{};const s={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}const LD=["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 lg(e){return typeof e!="string"||e.includes("-")?!1:!!(LD.indexOf(e)>-1||/[A-Z]/u.test(e))}function SS(e,{style:t,vars:n},s,i){Object.assign(e.style,t,i&&i.getProjectionStyles(s));for(const l in n)e.style.setProperty(l,n[l])}const NS=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 jS(e,t,n,s){SS(e,t,void 0,s);for(const i in t.attrs)e.setAttribute(NS.has(i)?i:og(i),t.attrs[i])}const Wt=e=>!!(e&&e.getVelocity),Ku={};function ID(e){Object.assign(Ku,e)}const Fl=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ei=new Set(Fl);function CS(e,{layout:t,layoutId:n}){return Ei.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Ku[e]||e==="opacity")}function cg(e,t,n){var s;const{style:i}=e,l={};for(const c in i)(Wt(i[c])||t.style&&Wt(t.style[c])||CS(c,e)||((s=n==null?void 0:n.getValue(c))===null||s===void 0?void 0:s.liveStyle)!==void 0)&&(l[c]=i[c]);return l}function AS(e,t,n){const s=cg(e,t,n);for(const i in e)if(Wt(e[i])||Wt(t[i])){const l=Fl.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;s[l]=e[i]}return s}function Cw(e){const t=[{},{}];return e==null||e.values.forEach((n,s)=>{t[0][s]=n.get(),t[1][s]=n.getVelocity()}),t}function ug(e,t,n,s){if(typeof t=="function"){const[i,l]=Cw(s);t=t(n!==void 0?n:e.custom,i,l)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,l]=Cw(s);t=t(n!==void 0?n:e.custom,i,l)}return t}const rp=e=>Array.isArray(e),BD=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),VD=e=>rp(e)?e[e.length-1]||0:e;function _u(e){const t=Wt(e)?e.get():e;return BD(t)?t.toValue():t}function zD({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},s,i,l){const c={latestValues:UD(s,i,l,e),renderState:t()};return n&&(c.mount=d=>n(s,d,c)),c}const PS=e=>(t,n)=>{const s=k.useContext(bd),i=k.useContext(wd),l=()=>zD(e,t,s,i);return n?l():Zp(l)};function UD(e,t,n,s){const i={},l=s(e,{});for(const x in l)i[x]=_u(l[x]);let{initial:c,animate:d}=e;const f=Sd(e),m=xS(e);t&&m&&!f&&e.inherit!==!1&&(c===void 0&&(c=t.initial),d===void 0&&(d=t.animate));let p=n?n.initial===!1:!1;p=p||c===!1;const g=p?d:c;if(g&&typeof g!="boolean"&&!kd(g)){const x=Array.isArray(g)?g:[g];for(let N=0;N<x.length;N++){const b=ug(e,x[N]);if(b){const{transitionEnd:w,transition:S,...j}=b;for(const P in j){let A=j[P];if(Array.isArray(A)){const E=p?A.length-1:0;A=A[E]}A!==null&&(i[P]=A)}for(const P in w)i[P]=w[P]}}}return i}const dg=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),ES=()=>({...dg(),attrs:{}}),TS=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Is=(e,t,n)=>n>t?t:n<e?e:n,Wo={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},pl={...Wo,transform:e=>Is(0,1,e)},pu={...Wo,default:1},Ol=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),fr=Ol("deg"),ms=Ol("%"),be=Ol("px"),$D=Ol("vh"),WD=Ol("vw"),Aw={...ms,parse:e=>ms.parse(e)/100,transform:e=>ms.transform(e*100)},HD={borderWidth:be,borderTopWidth:be,borderRightWidth:be,borderBottomWidth:be,borderLeftWidth:be,borderRadius:be,radius:be,borderTopLeftRadius:be,borderTopRightRadius:be,borderBottomRightRadius:be,borderBottomLeftRadius:be,width:be,maxWidth:be,height:be,maxHeight:be,top:be,right:be,bottom:be,left:be,padding:be,paddingTop:be,paddingRight:be,paddingBottom:be,paddingLeft:be,margin:be,marginTop:be,marginRight:be,marginBottom:be,marginLeft:be,backgroundPositionX:be,backgroundPositionY:be},qD={rotate:fr,rotateX:fr,rotateY:fr,rotateZ:fr,scale:pu,scaleX:pu,scaleY:pu,scaleZ:pu,skew:fr,skewX:fr,skewY:fr,distance:be,translateX:be,translateY:be,translateZ:be,x:be,y:be,z:be,perspective:be,transformPerspective:be,opacity:pl,originX:Aw,originY:Aw,originZ:be},Pw={...Wo,transform:Math.round},hg={...HD,...qD,zIndex:Pw,size:be,fillOpacity:pl,strokeOpacity:pl,numOctaves:Pw},GD={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},YD=Fl.length;function KD(e,t,n){let s="",i=!0;for(let l=0;l<YD;l++){const c=Fl[l],d=e[c];if(d===void 0)continue;let f=!0;if(typeof d=="number"?f=d===(c.startsWith("scale")?1:0):f=parseFloat(d)===0,!f||n){const m=TS(d,hg[c]);if(!f){i=!1;const p=GD[c]||c;s+=`${p}(${m}) `}n&&(t[c]=m)}}return s=s.trim(),n?s=n(t,i?"":s):i&&(s="none"),s}const RS=e=>t=>typeof t=="string"&&t.startsWith(e),_S=RS("--"),QD=RS("var(--"),fg=e=>QD(e)?XD.test(e.split("/*")[0].trim()):!1,XD=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function mg(e,t,n){const{style:s,vars:i,transformOrigin:l}=e;let c=!1,d=!1;for(const f in t){const m=t[f];if(Ei.has(f)){c=!0;continue}else if(_S(f)){i[f]=m;continue}else{const p=TS(m,hg[f]);f.startsWith("origin")?(d=!0,l[f]=p):s[f]=p}}if(t.transform||(c||n?s.transform=KD(t,e.transform,n):s.transform&&(s.transform="none")),d){const{originX:f="50%",originY:m="50%",originZ:p=0}=l;s.transformOrigin=`${f} ${m} ${p}`}}function Ew(e,t,n){return typeof e=="string"?e:be.transform(t+n*e)}function JD(e,t,n){const s=Ew(t,e.x,e.width),i=Ew(n,e.y,e.height);return`${s} ${i}`}const ZD={offset:"stroke-dashoffset",array:"stroke-dasharray"},eM={offset:"strokeDashoffset",array:"strokeDasharray"};function tM(e,t,n=1,s=0,i=!0){e.pathLength=1;const l=i?ZD:eM;e[l.offset]=be.transform(-s);const c=be.transform(t),d=be.transform(n);e[l.array]=`${c} ${d}`}function pg(e,{attrX:t,attrY:n,attrScale:s,originX:i,originY:l,pathLength:c,pathSpacing:d=1,pathOffset:f=0,...m},p,g){if(mg(e,m,g),p){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:x,style:N,dimensions:b}=e;x.transform&&(b&&(N.transform=x.transform),delete x.transform),b&&(i!==void 0||l!==void 0||N.transform)&&(N.transformOrigin=JD(b,i!==void 0?i:.5,l!==void 0?l:.5)),t!==void 0&&(x.x=t),n!==void 0&&(x.y=n),s!==void 0&&(x.scale=s),c!==void 0&&tM(x,c,d,f,!1)}const gg=e=>typeof e=="string"&&e.toLowerCase()==="svg",nM={useVisualState:PS({scrapeMotionValuesFromProps:AS,createRenderState:ES,onMount:(e,t,{renderState:n,latestValues:s})=>{et.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),et.render(()=>{pg(n,s,gg(t.tagName),e.transformTemplate),jS(t,n)})}})},sM={useVisualState:PS({scrapeMotionValuesFromProps:cg,createRenderState:dg})};function DS(e,t,n){for(const s in t)!Wt(t[s])&&!CS(s,n)&&(e[s]=t[s])}function rM({transformTemplate:e},t){return k.useMemo(()=>{const n=dg();return mg(n,t,e),Object.assign({},n.vars,n.style)},[t])}function iM(e,t){const n=e.style||{},s={};return DS(s,n,e),Object.assign(s,rM(e,t)),s}function oM(e,t){const n={},s=iM(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=s,n}function aM(e,t,n,s){const i=k.useMemo(()=>{const l=ES();return pg(l,t,gg(s),e.transformTemplate),{...l.attrs,style:{...l.style}}},[t]);if(e.style){const l={};DS(l,e.style,e),i.style={...l,...i.style}}return i}function lM(e=!1){return(n,s,i,{latestValues:l},c)=>{const f=(lg(n)?aM:oM)(s,l,c,n),m=ND(s,typeof n=="string",e),p=n!==k.Fragment?{...m,...f,ref:i}:{},{children:g}=s,x=k.useMemo(()=>Wt(g)?g.get():g,[g]);return k.createElement(n,{...p,children:x})}}function cM(e,t){return function(s,{forwardMotionProps:i}={forwardMotionProps:!1}){const c={...lg(s)?nM:sM,preloadedFeatures:e,useRender:lM(i),createVisualElement:t,Component:s};return DD(c)}}function MS(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let s=0;s<n;s++)if(t[s]!==e[s])return!1;return!0}function Nd(e,t,n){const s=e.getProps();return ug(s,t,n!==void 0?n:s.custom,e)}const uM=ng(()=>window.ScrollTimeline!==void 0);class dM{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let s=0;s<this.animations.length;s++)this.animations[s][t]=n}attachTimeline(t,n){const s=this.animations.map(i=>{if(uM()&&i.attachTimeline)return i.attachTimeline(t);if(typeof n=="function")return n(i)});return()=>{s.forEach((i,l)=>{i&&i(),this.animations[l].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class hM extends dM{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function yg(e,t){return e?e[t]||e.default||e:void 0}const ip=2e4;function FS(e){let t=0;const n=50;let s=e.next(t);for(;!s.done&&t<ip;)t+=n,s=e.next(t);return t>=ip?1/0:t}function vg(e){return typeof e=="function"}function Tw(e,t){e.timeline=t,e.onfinish=null}const xg=e=>Array.isArray(e)&&typeof e[0]=="number",fM={linearEasing:void 0};function mM(e,t){const n=ng(e);return()=>{var s;return(s=fM[t])!==null&&s!==void 0?s:n()}}const Qu=mM(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),OS=(e,t,n=10)=>{let s="";const i=Math.max(Math.round(t/n),2);for(let l=0;l<i;l++)s+=e(Ro(0,i-1,l))+", ";return`linear(${s.substring(0,s.length-2)})`};function LS(e){return!!(typeof e=="function"&&Qu()||!e||typeof e=="string"&&(e in op||Qu())||xg(e)||Array.isArray(e)&&e.every(LS))}const Ga=([e,t,n,s])=>`cubic-bezier(${e}, ${t}, ${n}, ${s})`,op={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ga([0,.65,.55,1]),circOut:Ga([.55,0,1,.45]),backIn:Ga([.31,.01,.66,-.59]),backOut:Ga([.33,1.53,.69,.99])};function IS(e,t){if(e)return typeof e=="function"&&Qu()?OS(e,t):xg(e)?Ga(e):Array.isArray(e)?e.map(n=>IS(n,t)||op.easeOut):op[e]}const Bn={x:!1,y:!1};function BS(){return Bn.x||Bn.y}function pM(e,t,n){var s;if(e instanceof Element)return[e];if(typeof e=="string"){let i=document;const l=(s=void 0)!==null&&s!==void 0?s:i.querySelectorAll(e);return l?Array.from(l):[]}return Array.from(e)}function VS(e,t){const n=pM(e),s=new AbortController,i={passive:!0,...t,signal:s.signal};return[n,i,()=>s.abort()]}function Rw(e){return t=>{t.pointerType==="touch"||BS()||e(t)}}function gM(e,t,n={}){const[s,i,l]=VS(e,n),c=Rw(d=>{const{target:f}=d,m=t(d);if(typeof m!="function"||!f)return;const p=Rw(g=>{m(g),f.removeEventListener("pointerleave",p)});f.addEventListener("pointerleave",p,i)});return s.forEach(d=>{d.addEventListener("pointerenter",c,i)}),l}const zS=(e,t)=>t?e===t?!0:zS(e,t.parentElement):!1,wg=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,yM=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function vM(e){return yM.has(e.tagName)||e.tabIndex!==-1}const Ya=new WeakSet;function _w(e){return t=>{t.key==="Enter"&&e(t)}}function Yf(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const xM=(e,t)=>{const n=e.currentTarget;if(!n)return;const s=_w(()=>{if(Ya.has(n))return;Yf(n,"down");const i=_w(()=>{Yf(n,"up")}),l=()=>Yf(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",l,t)});n.addEventListener("keydown",s,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",s),t)};function Dw(e){return wg(e)&&!BS()}function wM(e,t,n={}){const[s,i,l]=VS(e,n),c=d=>{const f=d.currentTarget;if(!Dw(d)||Ya.has(f))return;Ya.add(f);const m=t(d),p=(N,b)=>{window.removeEventListener("pointerup",g),window.removeEventListener("pointercancel",x),!(!Dw(N)||!Ya.has(f))&&(Ya.delete(f),typeof m=="function"&&m(N,{success:b}))},g=N=>{p(N,n.useGlobalTarget||zS(f,N.target))},x=N=>{p(N,!1)};window.addEventListener("pointerup",g,i),window.addEventListener("pointercancel",x,i)};return s.forEach(d=>{!vM(d)&&d.getAttribute("tabindex")===null&&(d.tabIndex=0),(n.useGlobalTarget?window:d).addEventListener("pointerdown",c,i),d.addEventListener("focus",m=>xM(m,i),i)}),l}function bM(e){return e==="x"||e==="y"?Bn[e]?null:(Bn[e]=!0,()=>{Bn[e]=!1}):Bn.x||Bn.y?null:(Bn.x=Bn.y=!0,()=>{Bn.x=Bn.y=!1})}let Du;function kM(){Du=void 0}const ps={now:()=>(Du===void 0&&ps.set(Mt.isProcessing||vD.useManualTiming?Mt.timestamp:performance.now()),Du),set:e=>{Du=e,queueMicrotask(kM)}};function bg(e,t){e.indexOf(t)===-1&&e.push(t)}function kg(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Sg{constructor(){this.subscriptions=[]}add(t){return bg(this.subscriptions,t),()=>kg(this.subscriptions,t)}notify(t,n,s){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,s);else for(let l=0;l<i;l++){const c=this.subscriptions[l];c&&c(t,n,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function US(e,t){return t?e*(1e3/t):0}const Mw=30,SM=e=>!isNaN(parseFloat(e));class NM{constructor(t,n={}){this.version="11.16.4",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(s,i=!0)=>{const l=ps.now();this.updatedAt!==l&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=ps.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=SM(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Sg);const s=this.events[t].add(n);return t==="change"?()=>{s(),et.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,s){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-s}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=ps.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Mw)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Mw);return US(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),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.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function gl(e,t){return new NM(e,t)}function jM(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,gl(n))}function CM(e,t){const n=Nd(e,t);let{transitionEnd:s={},transition:i={},...l}=n||{};l={...l,...s};for(const c in l){const d=VD(l[c]);jM(e,c,d)}}function AM(e){return!!(Wt(e)&&e.add)}function ap(e,t){const n=e.getValue("willChange");if(AM(n))return n.add(t)}function $S(e){return e.props[wS]}const WS=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,PM=1e-7,EM=12;function TM(e,t,n,s,i){let l,c,d=0;do c=t+(n-t)/2,l=WS(c,s,i)-e,l>0?n=c:t=c;while(Math.abs(l)>PM&&++d<EM);return c}function Ll(e,t,n,s){if(e===t&&n===s)return gn;const i=l=>TM(l,0,1,e,n);return l=>l===0||l===1?l:WS(i(l),t,s)}const HS=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,qS=e=>t=>1-e(1-t),GS=Ll(.33,1.53,.69,.99),Ng=qS(GS),YS=HS(Ng),KS=e=>(e*=2)<1?.5*Ng(e):.5*(2-Math.pow(2,-10*(e-1))),jg=e=>1-Math.sin(Math.acos(e)),QS=qS(jg),XS=HS(jg),JS=e=>/^0[^.\s]+$/u.test(e);function RM(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||JS(e):!0}const ZS=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),_M=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function DM(e){const t=_M.exec(e);if(!t)return[,];const[,n,s,i]=t;return[`--${n??s}`,i]}function eN(e,t,n=1){const[s,i]=DM(e);if(!s)return;const l=window.getComputedStyle(t).getPropertyValue(s);if(l){const c=l.trim();return ZS(c)?parseFloat(c):c}return fg(i)?eN(i,t,n+1):i}const MM=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Fw=e=>e===Wo||e===be,Ow=(e,t)=>parseFloat(e.split(", ")[t]),Lw=(e,t)=>(n,{transform:s})=>{if(s==="none"||!s)return 0;const i=s.match(/^matrix3d\((.+)\)$/u);if(i)return Ow(i[1],t);{const l=s.match(/^matrix\((.+)\)$/u);return l?Ow(l[1],e):0}},FM=new Set(["x","y","z"]),OM=Fl.filter(e=>!FM.has(e));function LM(e){const t=[];return OM.forEach(n=>{const s=e.getValue(n);s!==void 0&&(t.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),t}const Do={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),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:Lw(4,13),y:Lw(5,14)};Do.translateX=Do.x;Do.translateY=Do.y;const tN=e=>t=>t.test(e),IM={test:e=>e==="auto",parse:e=>e},nN=[Wo,be,ms,fr,WD,$D,IM],Iw=e=>nN.find(tN(e)),yi=new Set;let lp=!1,cp=!1;function sN(){if(cp){const e=Array.from(yi).filter(s=>s.needsMeasurement),t=new Set(e.map(s=>s.element)),n=new Map;t.forEach(s=>{const i=LM(s);i.length&&(n.set(s,i),s.render())}),e.forEach(s=>s.measureInitialState()),t.forEach(s=>{s.render();const i=n.get(s);i&&i.forEach(([l,c])=>{var d;(d=s.getValue(l))===null||d===void 0||d.set(c)})}),e.forEach(s=>s.measureEndState()),e.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}cp=!1,lp=!1,yi.forEach(e=>e.complete()),yi.clear()}function rN(){yi.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(cp=!0)})}function BM(){rN(),sN()}class Cg{constructor(t,n,s,i,l,c=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=s,this.motionValue=i,this.element=l,this.isAsync=c}scheduleResolve(){this.isScheduled=!0,this.isAsync?(yi.add(this),lp||(lp=!0,et.read(rN),et.resolveKeyframes(sN))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:s,motionValue:i}=this;for(let l=0;l<t.length;l++)if(t[l]===null)if(l===0){const c=i==null?void 0:i.get(),d=t[t.length-1];if(c!==void 0)t[0]=c;else if(s&&n){const f=s.readValue(n,d);f!=null&&(t[0]=f)}t[0]===void 0&&(t[0]=d),i&&c===void 0&&i.set(t[0])}else t[l]=t[l-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),yi.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,yi.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const el=e=>Math.round(e*1e5)/1e5,Ag=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function VM(e){return e==null}const zM=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Pg=(e,t)=>n=>!!(typeof n=="string"&&zM.test(n)&&n.startsWith(e)||t&&!VM(n)&&Object.prototype.hasOwnProperty.call(n,t)),iN=(e,t,n)=>s=>{if(typeof s!="string")return s;const[i,l,c,d]=s.match(Ag);return{[e]:parseFloat(i),[t]:parseFloat(l),[n]:parseFloat(c),alpha:d!==void 0?parseFloat(d):1}},UM=e=>Is(0,255,e),Kf={...Wo,transform:e=>Math.round(UM(e))},oi={test:Pg("rgb","red"),parse:iN("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:s=1})=>"rgba("+Kf.transform(e)+", "+Kf.transform(t)+", "+Kf.transform(n)+", "+el(pl.transform(s))+")"};function $M(e){let t="",n="",s="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),s=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),s=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,s+=s,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:i?parseInt(i,16)/255:1}}const up={test:Pg("#"),parse:$M,transform:oi.transform},lo={test:Pg("hsl","hue"),parse:iN("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:s=1})=>"hsla("+Math.round(e)+", "+ms.transform(el(t))+", "+ms.transform(el(n))+", "+el(pl.transform(s))+")"},Vt={test:e=>oi.test(e)||up.test(e)||lo.test(e),parse:e=>oi.test(e)?oi.parse(e):lo.test(e)?lo.parse(e):up.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?oi.transform(e):lo.transform(e)},WM=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function HM(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Ag))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(WM))===null||n===void 0?void 0:n.length)||0)>0}const oN="number",aN="color",qM="var",GM="var(",Bw="${}",YM=/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 yl(e){const t=e.toString(),n=[],s={color:[],number:[],var:[]},i=[];let l=0;const d=t.replace(YM,f=>(Vt.test(f)?(s.color.push(l),i.push(aN),n.push(Vt.parse(f))):f.startsWith(GM)?(s.var.push(l),i.push(qM),n.push(f)):(s.number.push(l),i.push(oN),n.push(parseFloat(f))),++l,Bw)).split(Bw);return{values:n,split:d,indexes:s,types:i}}function lN(e){return yl(e).values}function cN(e){const{split:t,types:n}=yl(e),s=t.length;return i=>{let l="";for(let c=0;c<s;c++)if(l+=t[c],i[c]!==void 0){const d=n[c];d===oN?l+=el(i[c]):d===aN?l+=Vt.transform(i[c]):l+=i[c]}return l}}const KM=e=>typeof e=="number"?0:e;function QM(e){const t=lN(e);return cN(e)(t.map(KM))}const Rr={test:HM,parse:lN,createTransformer:cN,getAnimatableNone:QM},XM=new Set(["brightness","contrast","saturate","opacity"]);function JM(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[s]=n.match(Ag)||[];if(!s)return e;const i=n.replace(s,"");let l=XM.has(t)?1:0;return s!==n&&(l*=100),t+"("+l+i+")"}const ZM=/\b([a-z-]*)\(.*?\)/gu,dp={...Rr,getAnimatableNone:e=>{const t=e.match(ZM);return t?t.map(JM).join(" "):e}},e5={...hg,color:Vt,backgroundColor:Vt,outlineColor:Vt,fill:Vt,stroke:Vt,borderColor:Vt,borderTopColor:Vt,borderRightColor:Vt,borderBottomColor:Vt,borderLeftColor:Vt,filter:dp,WebkitFilter:dp},Eg=e=>e5[e];function uN(e,t){let n=Eg(e);return n!==dp&&(n=Rr),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const t5=new Set(["auto","none","0"]);function n5(e,t,n){let s=0,i;for(;s<e.length&&!i;){const l=e[s];typeof l=="string"&&!t5.has(l)&&yl(l).values.length&&(i=e[s]),s++}if(i&&n)for(const l of t)e[l]=uN(n,i)}class dN extends Cg{constructor(t,n,s,i,l){super(t,n,s,i,l,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:s}=this;if(!n||!n.current)return;super.readKeyframes();for(let f=0;f<t.length;f++){let m=t[f];if(typeof m=="string"&&(m=m.trim(),fg(m))){const p=eN(m,n.current);p!==void 0&&(t[f]=p),f===t.length-1&&(this.finalKeyframe=m)}}if(this.resolveNoneKeyframes(),!MM.has(s)||t.length!==2)return;const[i,l]=t,c=Iw(i),d=Iw(l);if(c!==d)if(Fw(c)&&Fw(d))for(let f=0;f<t.length;f++){const m=t[f];typeof m=="string"&&(t[f]=parseFloat(m))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,s=[];for(let i=0;i<t.length;i++)RM(t[i])&&s.push(i);s.length&&n5(t,s,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:s}=this;if(!t||!t.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Do[s](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(s,i).jump(i,!1)}measureEndState(){var t;const{element:n,name:s,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const l=n.getValue(s);l&&l.jump(this.measuredOrigin,!1);const c=i.length-1,d=i[c];i[c]=Do[s](n.measureViewportBox(),window.getComputedStyle(n.current)),d!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=d),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([f,m])=>{n.getValue(f).set(m)}),this.resolveNoneKeyframes()}}const Vw=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Rr.test(e)||e==="0")&&!e.startsWith("url("));function s5(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function r5(e,t,n,s){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const l=e[e.length-1],c=Vw(i,t),d=Vw(l,t);return!c||!d?!1:s5(e)||(n==="spring"||vg(n))&&s}const i5=e=>e!==null;function jd(e,{repeat:t,repeatType:n="loop"},s){const i=e.filter(i5),l=t&&n!=="loop"&&t%2===1?0:i.length-1;return!l||s===void 0?i[l]:s}const o5=40;class hN{constructor({autoplay:t=!0,delay:n=0,type:s="keyframes",repeat:i=0,repeatDelay:l=0,repeatType:c="loop",...d}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=ps.now(),this.options={autoplay:t,delay:n,type:s,repeat:i,repeatDelay:l,repeatType:c,...d},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>o5?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&BM(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=ps.now(),this.hasAttemptedResolve=!0;const{name:s,type:i,velocity:l,delay:c,onComplete:d,onUpdate:f,isGenerator:m}=this.options;if(!m&&!r5(t,s,i,l))if(c)this.options.duration=0;else{f==null||f(jd(t,this.options,n)),d==null||d(),this.resolveFinishedPromise();return}const p=this.initPlayback(t,n);p!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...p},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const ot=(e,t,n)=>e+(t-e)*n;function Qf(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function a5({hue:e,saturation:t,lightness:n,alpha:s}){e/=360,t/=100,n/=100;let i=0,l=0,c=0;if(!t)i=l=c=n;else{const d=n<.5?n*(1+t):n+t-n*t,f=2*n-d;i=Qf(f,d,e+1/3),l=Qf(f,d,e),c=Qf(f,d,e-1/3)}return{red:Math.round(i*255),green:Math.round(l*255),blue:Math.round(c*255),alpha:s}}function Xu(e,t){return n=>n>0?t:e}const Xf=(e,t,n)=>{const s=e*e,i=n*(t*t-s)+s;return i<0?0:Math.sqrt(i)},l5=[up,oi,lo],c5=e=>l5.find(t=>t.test(e));function zw(e){const t=c5(e);if(!t)return!1;let n=t.parse(e);return t===lo&&(n=a5(n)),n}const Uw=(e,t)=>{const n=zw(e),s=zw(t);if(!n||!s)return Xu(e,t);const i={...n};return l=>(i.red=Xf(n.red,s.red,l),i.green=Xf(n.green,s.green,l),i.blue=Xf(n.blue,s.blue,l),i.alpha=ot(n.alpha,s.alpha,l),oi.transform(i))},u5=(e,t)=>n=>t(e(n)),Il=(...e)=>e.reduce(u5),hp=new Set(["none","hidden"]);function d5(e,t){return hp.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function h5(e,t){return n=>ot(e,t,n)}function Tg(e){return typeof e=="number"?h5:typeof e=="string"?fg(e)?Xu:Vt.test(e)?Uw:p5:Array.isArray(e)?fN:typeof e=="object"?Vt.test(e)?Uw:f5:Xu}function fN(e,t){const n=[...e],s=n.length,i=e.map((l,c)=>Tg(l)(l,t[c]));return l=>{for(let c=0;c<s;c++)n[c]=i[c](l);return n}}function f5(e,t){const n={...e,...t},s={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(s[i]=Tg(e[i])(e[i],t[i]));return i=>{for(const l in s)n[l]=s[l](i);return n}}function m5(e,t){var n;const s=[],i={color:0,var:0,number:0};for(let l=0;l<t.values.length;l++){const c=t.types[l],d=e.indexes[c][i[c]],f=(n=e.values[d])!==null&&n!==void 0?n:0;s[l]=f,i[c]++}return s}const p5=(e,t)=>{const n=Rr.createTransformer(t),s=yl(e),i=yl(t);return s.indexes.var.length===i.indexes.var.length&&s.indexes.color.length===i.indexes.color.length&&s.indexes.number.length>=i.indexes.number.length?hp.has(e)&&!i.values.length||hp.has(t)&&!s.values.length?d5(e,t):Il(fN(m5(s,i),i.values),n):Xu(e,t)};function mN(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ot(e,t,n):Tg(e)(e,t)}const g5=5;function pN(e,t,n){const s=Math.max(t-g5,0);return US(n-e(s),t-s)}const ut={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},Jf=.001;function y5({duration:e=ut.duration,bounce:t=ut.bounce,velocity:n=ut.velocity,mass:s=ut.mass}){let i,l,c=1-t;c=Is(ut.minDamping,ut.maxDamping,c),e=Is(ut.minDuration,ut.maxDuration,Ls(e)),c<1?(i=m=>{const p=m*c,g=p*e,x=p-n,N=fp(m,c),b=Math.exp(-g);return Jf-x/N*b},l=m=>{const g=m*c*e,x=g*n+n,N=Math.pow(c,2)*Math.pow(m,2)*e,b=Math.exp(-g),w=fp(Math.pow(m,2),c);return(-i(m)+Jf>0?-1:1)*((x-N)*b)/w}):(i=m=>{const p=Math.exp(-m*e),g=(m-n)*e+1;return-Jf+p*g},l=m=>{const p=Math.exp(-m*e),g=(n-m)*(e*e);return p*g});const d=5/e,f=x5(i,l,d);if(e=Os(e),isNaN(f))return{stiffness:ut.stiffness,damping:ut.damping,duration:e};{const m=Math.pow(f,2)*s;return{stiffness:m,damping:c*2*Math.sqrt(s*m),duration:e}}}const v5=12;function x5(e,t,n){let s=n;for(let i=1;i<v5;i++)s=s-e(s)/t(s);return s}function fp(e,t){return e*Math.sqrt(1-t*t)}const w5=["duration","bounce"],b5=["stiffness","damping","mass"];function $w(e,t){return t.some(n=>e[n]!==void 0)}function k5(e){let t={velocity:ut.velocity,stiffness:ut.stiffness,damping:ut.damping,mass:ut.mass,isResolvedFromDuration:!1,...e};if(!$w(e,b5)&&$w(e,w5))if(e.visualDuration){const n=e.visualDuration,s=2*Math.PI/(n*1.2),i=s*s,l=2*Is(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:ut.mass,stiffness:i,damping:l}}else{const n=y5(e);t={...t,...n,mass:ut.mass},t.isResolvedFromDuration=!0}return t}function gN(e=ut.visualDuration,t=ut.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:s,restDelta:i}=n;const l=n.keyframes[0],c=n.keyframes[n.keyframes.length-1],d={done:!1,value:l},{stiffness:f,damping:m,mass:p,duration:g,velocity:x,isResolvedFromDuration:N}=k5({...n,velocity:-Ls(n.velocity||0)}
vendor: 4,870 bytes, line 345
345),b=x||0,w=m/(2*Math.sqrt(f*p)),S=c-l,j=Ls(Math.sqrt(f/p)),P=Math.abs(S)<5;s||(s=P?ut.restSpeed.granular:ut.restSpeed.default),i||(i=P?ut.restDelta.granular:ut.restDelta.default);let A;if(w<1){const D=fp(j,w);A=V=>{const B=Math.exp(-w*j*V);return c-B*((b+w*j*S)/D*Math.sin(D*V)+S*Math.cos(D*V))}}else if(w===1)A=D=>c-Math.exp(-j*D)*(S+(b+j*S)*D);else{const D=j*Math.sqrt(w*w-1);A=V=>{const B=Math.exp(-w*j*V),L=Math.min(D*V,300);return c-B*((b+w*j*S)*Math.sinh(L)+D*S*Math.cosh(L))/D}}const E={calculatedDuration:N&&g||null,next:D=>{const V=A(D);if(N)d.done=D>=g;else{let B=0;w<1&&(B=D===0?Os(b):pN(A,D,V));const L=Math.abs(B)<=s,ne=Math.abs(c-V)<=i;d.done=L&&ne}return d.value=d.done?c:V,d},toString:()=>{const D=Math.min(FS(E),ip),V=OS(B=>E.next(D*B).value,D,30);return D+"ms "+V}};return E}function Ww({keyframes:e,velocity:t=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:l=500,modifyTarget:c,min:d,max:f,restDelta:m=.5,restSpeed:p}){const g=e[0],x={done:!1,value:g},N=L=>d!==void 0&&L<d||f!==void 0&&L>f,b=L=>d===void 0?f:f===void 0||Math.abs(d-L)<Math.abs(f-L)?d:f;let w=n*t;const S=g+w,j=c===void 0?S:c(S);j!==S&&(w=j-g);const P=L=>-w*Math.exp(-L/s),A=L=>j+P(L),E=L=>{const ne=P(L),Q=A(L);x.done=Math.abs(ne)<=m,x.value=x.done?j:Q};let D,V;const B=L=>{N(x.value)&&(D=L,V=gN({keyframes:[x.value,b(x.value)],velocity:pN(A,L,x.value),damping:i,stiffness:l,restDelta:m,restSpeed:p}))};return B(0),{calculatedDuration:null,next:L=>{let ne=!1;return!V&&D===void 0&&(ne=!0,E(L),B(L)),D!==void 0&&L>=D?V.next(L-D):(!ne&&E(L),x)}}}const S5=Ll(.42,0,1,1),N5=Ll(0,0,.58,1),yN=Ll(.42,0,.58,1),j5=e=>Array.isArray(e)&&typeof e[0]!="number",C5={linear:gn,easeIn:S5,easeInOut:yN,easeOut:N5,circIn:jg,circInOut:XS,circOut:QS,backIn:Ng,backInOut:YS,backOut:GS,anticipate:KS},Hw=e=>{if(xg(e)){mS(e.length===4);const[t,n,s,i]=e;return Ll(t,n,s,i)}else if(typeof e=="string")return C5[e];return e};function A5(e,t,n){const s=[],i=n||mN,l=e.length-1;for(let c=0;c<l;c++){let d=i(e[c],e[c+1]);if(t){const f=Array.isArray(t)?t[c]||gn:t;d=Il(f,d)}s.push(d)}return s}function P5(e,t,{clamp:n=!0,ease:s,mixer:i}={}){const l=e.length;if(mS(l===t.length),l===1)return()=>t[0];if(l===2&&e[0]===e[1])return()=>t[1];e[0]>e[l-1]&&(e=[...e].reverse(),t=[...t].reverse());const c=A5(t,s,i),d=c.length,f=m=>{let p=0;if(d>1)for(;p<e.length-2&&!(m<e[p+1]);p++);const g=Ro(e[p],e[p+1],m);return c[p](g)};return n?m=>f(Is(e[0],e[l-1],m)):f}function E5(e,t){const n=e[e.length-1];for(let s=1;s<=t;s++){const i=Ro(0,t,s);e.push(ot(n,1,i))}}function T5(e){const t=[0];return E5(t,e.length-1),t}function R5(e,t){return e.map(n=>n*t)}function _5(e,t){return e.map(()=>t||yN).splice(0,e.length-1)}function Ju({duration:e=300,keyframes:t,times:n,ease:s="easeInOut"}){const i=j5(s)?s.map(Hw):Hw(s),l={done:!1,value:t[0]},c=R5(n&&n.length===t.length?n:T5(t),e),d=P5(c,t,{ease:Array.isArray(i)?i:_5(t,i)});return{calculatedDuration:e,next:f=>(l.value=d(f),l.done=f>=e,l)}}const D5=e=>{const t=({timestamp:n})=>e(n);return{start:()=>et.update(t,!0),stop:()=>Tr(t),now:()=>Mt.isProcessing?Mt.timestamp:ps.now()}},M5={decay:Ww,inertia:Ww,tween:Ju,keyframes:Ju,spring:gN},F5=e=>e/100;class Rg extends hN{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:f}=this.options;f&&f()};const{name:n,motionValue:s,element:i,keyframes:l}=this.options,c=(i==null?void 0:i.KeyframeResolver)||Cg,d=(f,m)=>this.onKeyframesResolved(f,m);this.resolver=new c(l,d,n,s,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:s=0,repeatDelay:i=0,repeatType:l,velocity:c=0}=this.options,d=vg(n)?n:M5[n]||Ju;let f,m;d!==Ju&&typeof t[0]!="number"&&(f=Il(F5,mN(t[0],t[1])),t=[0,100]);const p=d({...this.options,keyframes:t});l==="mirror"&&(m=d({...this.options,keyframes:[...t].reverse(),velocity:-c})),p.calculatedDuration===null&&(p.calculatedDuration=FS(p));const{calculatedDuration:g}=p,x=g+i,N=x*(s+1)-i;return{generator:p,mirroredGenerator:m,mapPercentToKeyframes:f,calculatedDuration:g,resolvedDuration:x,totalDuration:N}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:s}=this;if(!s){const{keyframes:L}=this.options;return{done:!0,value:L[L.length-1]}}const{finalKeyframe:i,generator:l,mirroredGenerator:c,mapPercentToKeyframes:d,keyframes:f,calculatedDuration:m,totalDuration:p,resolvedDuration:g}=s;if(this.startTime===null)return l.next(0);const{delay:x,repeat:N,repeatType:b,repeatDelay:w,onUpdate:S}
vendor: 67,926 bytes, line 345
345=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-p/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const j=this.currentTime-x*(this.speed>=0?1:-1),P=this.speed>=0?j<0:j>p;this.currentTime=Math.max(j,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=p);let A=this.currentTime,E=l;if(N){const L=Math.min(this.currentTime,p)/g;let ne=Math.floor(L),Q=L%1;!Q&&L>=1&&(Q=1),Q===1&&ne--,ne=Math.min(ne,N+1),!!(ne%2)&&(b==="reverse"?(Q=1-Q,w&&(Q-=w/g)):b==="mirror"&&(E=c)),A=Is(0,1,Q)*g}const D=P?{done:!1,value:f[0]}:E.next(A);d&&(D.value=d(D.value));let{done:V}=D;!P&&m!==null&&(V=this.speed>=0?this.currentTime>=p:this.currentTime<=0);const B=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&V);return B&&i!==void 0&&(D.value=jd(f,this.options,i)),S&&S(D.value),B&&this.finish(),D}get duration(){const{resolved:t}=this;return t?Ls(t.calculatedDuration):0}get time(){return Ls(this.currentTime)}set time(t){t=Os(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Ls(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=D5,onPlay:n,startTime:s}=this.options;this.driver||(this.driver=t(l=>this.tick(l))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=s??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const O5=new Set(["opacity","clipPath","filter","transform"]);function L5(e,t,n,{delay:s=0,duration:i=300,repeat:l=0,repeatType:c="loop",ease:d="easeInOut",times:f}={}){const m={[t]:n};f&&(m.offset=f);const p=IS(d,i);return Array.isArray(p)&&(m.easing=p),e.animate(m,{delay:s,duration:i,easing:Array.isArray(p)?"linear":p,fill:"both",iterations:l+1,direction:c==="reverse"?"alternate":"normal"})}const I5=ng(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Zu=10,B5=2e4;function V5(e){return vg(e.type)||e.type==="spring"||!LS(e.ease)}function z5(e,t){const n=new Rg({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let s={done:!1,value:e[0]};const i=[];let l=0;for(;!s.done&&l<B5;)s=n.sample(l),i.push(s.value),l+=Zu;return{times:void 0,keyframes:i,duration:l-Zu,ease:"linear"}}const vN={anticipate:KS,backInOut:YS,circInOut:XS};function U5(e){return e in vN}class qw extends hN{constructor(t){super(t);const{name:n,motionValue:s,element:i,keyframes:l}=this.options;this.resolver=new dN(l,(c,d)=>this.onKeyframesResolved(c,d),n,s,i),this.resolver.scheduleResolve()}initPlayback(t,n){var s;let{duration:i=300,times:l,ease:c,type:d,motionValue:f,name:m,startTime:p}=this.options;if(!(!((s=f.owner)===null||s===void 0)&&s.current))return!1;if(typeof c=="string"&&Qu()&&U5(c)&&(c=vN[c]),V5(this.options)){const{onComplete:x,onUpdate:N,motionValue:b,element:w,...S}=this.options,j=z5(t,S);t=j.keyframes,t.length===1&&(t[1]=t[0]),i=j.duration,l=j.times,c=j.ease,d="keyframes"}const g=L5(f.owner.current,m,t,{...this.options,duration:i,times:l,ease:c});return g.startTime=p??this.calcStartTime(),this.pendingTimeline?(Tw(g,this.pendingTimeline),this.pendingTimeline=void 0):g.onfinish=()=>{const{onComplete:x}=this.options;f.set(jd(t,this.options,n)),x&&x(),this.cancel(),this.resolveFinishedPromise()},{animation:g,duration:i,times:l,type:d,ease:c,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Ls(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Ls(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:s}=n;s.currentTime=Os(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:s}=n;s.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return gn;const{animation:s}=n;Tw(s,t)}return gn}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:s,duration:i,type:l,ease:c,times:d}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:m,onUpdate:p,onComplete:g,element:x,...N}=this.options,b=new Rg({...N,keyframes:s,duration:i,type:l,ease:c,times:d,isGenerator:!0}),w=Os(this.time);m.setWithVelocity(b.sample(w-Zu).value,b.sample(w).value,Zu)}const{onStop:f}=this.options;f&&f(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:s,repeatDelay:i,repeatType:l,damping:c,type:d}=t;return I5()&&s&&O5.has(s)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!i&&l!=="mirror"&&c!==0&&d!=="inertia"}}const $5={type:"spring",stiffness:500,damping:25,restSpeed:10},W5=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),H5={type:"keyframes",duration:.8},q5={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},G5=(e,{keyframes:t})=>t.length>2?H5:Ei.has(e)?e.startsWith("scale")?W5(t[1]):$5:q5;function Y5({when:e,delay:t,delayChildren:n,staggerChildren:s,staggerDirection:i,repeat:l,repeatType:c,repeatDelay:d,from:f,elapsed:m,...p}){return!!Object.keys(p).length}const _g=(e,t,n,s={},i,l)=>c=>{const d=yg(s,e)||{},f=d.delay||s.delay||0;let{elapsed:m=0}=s;m=m-Os(f);let p={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...d,delay:-m,onUpdate:x=>{t.set(x),d.onUpdate&&d.onUpdate(x)},onComplete:()=>{c(),d.onComplete&&d.onComplete()},name:e,motionValue:t,element:l?void 0:i};Y5(d)||(p={...p,...G5(e,p)}),p.duration&&(p.duration=Os(p.duration)),p.repeatDelay&&(p.repeatDelay=Os(p.repeatDelay)),p.from!==void 0&&(p.keyframes[0]=p.from);let g=!1;if((p.type===!1||p.duration===0&&!p.repeatDelay)&&(p.duration=0,p.delay===0&&(g=!0)),g&&!l&&t.get()!==void 0){const x=jd(p.keyframes,d);if(x!==void 0)return et.update(()=>{p.onUpdate(x),p.onComplete()}),new hM([])}return!l&&qw.supports(p)?new qw(p):new Rg(p)};function K5({protectedKeys:e,needsAnimating:t},n){const s=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,s}function xN(e,t,{delay:n=0,transitionOverride:s,type:i}={}){var l;let{transition:c=e.getDefaultTransition(),transitionEnd:d,...f}=t;s&&(c=s);const m=[],p=i&&e.animationState&&e.animationState.getState()[i];for(const g in f){const x=e.getValue(g,(l=e.latestValues[g])!==null&&l!==void 0?l:null),N=f[g];if(N===void 0||p&&K5(p,g))continue;const b={delay:n,...yg(c||{},g)};let w=!1;if(window.MotionHandoffAnimation){const j=$S(e);if(j){const P=window.MotionHandoffAnimation(j,g,et);P!==null&&(b.startTime=P,w=!0)}}ap(e,g),x.start(_g(g,x,N,e.shouldReduceMotion&&Ei.has(g)?{type:!1}:b,e,w));const S=x.animation;S&&m.push(S)}return d&&Promise.all(m).then(()=>{et.update(()=>{d&&CM(e,d)})}),m}function mp(e,t,n={}){var s;const i=Nd(e,t,n.type==="exit"?(s=e.presenceContext)===null||s===void 0?void 0:s.custom:void 0);let{transition:l=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(l=n.transitionOverride);const c=i?()=>Promise.all(xN(e,i,n)):()=>Promise.resolve(),d=e.variantChildren&&e.variantChildren.size?(m=0)=>{const{delayChildren:p=0,staggerChildren:g,staggerDirection:x}=l;return Q5(e,t,p+m,g,x,n)}:()=>Promise.resolve(),{when:f}=l;if(f){const[m,p]=f==="beforeChildren"?[c,d]:[d,c];return m().then(()=>p())}else return Promise.all([c(),d(n.delay)])}function Q5(e,t,n=0,s=0,i=1,l){const c=[],d=(e.variantChildren.size-1)*s,f=i===1?(m=0)=>m*s:(m=0)=>d-m*s;return Array.from(e.variantChildren).sort(X5).forEach((m,p)=>{m.notify("AnimationStart",t),c.push(mp(m,t,{...l,delay:n+f(p)}).then(()=>m.notify("AnimationComplete",t)))}),Promise.all(c)}function X5(e,t){return e.sortNodePosition(t)}function J5(e,t,n={}){e.notify("AnimationStart",t);let s;if(Array.isArray(t)){const i=t.map(l=>mp(e,l,n));s=Promise.all(i)}else if(typeof t=="string")s=mp(e,t,n);else{const i=typeof t=="function"?Nd(e,t,n.custom):t;s=Promise.all(xN(e,i,n))}return s.then(()=>{e.notify("AnimationComplete",t)})}const Z5=ig.length;function wN(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?wN(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<Z5;n++){const s=ig[n],i=e.props[s];(ml(i)||i===!1)&&(t[s]=i)}return t}const eF=[...rg].reverse(),tF=rg.length;function nF(e){return t=>Promise.all(t.map(({animation:n,options:s})=>J5(e,n,s)))}function sF(e){let t=nF(e),n=Gw(),s=!0;const i=f=>(m,p)=>{var g;const x=Nd(e,p,f==="exit"?(g=e.presenceContext)===null||g===void 0?void 0:g.custom:void 0);if(x){const{transition:N,transitionEnd:b,...w}=x;m={...m,...w,...b}}return m};function l(f){t=f(e)}function c(f){const{props:m}=e,p=wN(e.parent)||{},g=[],x=new Set;let N={},b=1/0;for(let S=0;S<tF;S++){const j=eF[S],P=n[j],A=m[j]!==void 0?m[j]:p[j],E=ml(A),D=j===f?P.isActive:null;D===!1&&(b=S);let V=A===p[j]&&A!==m[j]&&E;if(V&&s&&e.manuallyAnimateOnMount&&(V=!1),P.protectedKeys={...N},!P.isActive&&D===null||!A&&!P.prevProp||kd(A)||typeof A=="boolean")continue;const B=rF(P.prevProp,A);let L=B||j===f&&P.isActive&&!V&&E||S>b&&E,ne=!1;const Q=Array.isArray(A)?A:[A];let re=Q.reduce(i(j),{});D===!1&&(re={});const{prevResolvedValues:ie={}}=P,I={...ie,...re},Y=H=>{L=!0,x.has(H)&&(ne=!0,x.delete(H)),P.needsAnimating[H]=!0;const R=e.getValue(H);R&&(R.liveStyle=!1)};for(const H in I){const R=re[H],se=ie[H];if(N.hasOwnProperty(H))continue;let J=!1;rp(R)&&rp(se)?J=!MS(R,se):J=R!==se,J?R!=null?Y(H):x.add(H):R!==void 0&&x.has(H)?Y(H):P.protectedKeys[H]=!0}P.prevProp=A,P.prevResolvedValues=re,P.isActive&&(N={...N,...re}),s&&e.blockInitialAnimation&&(L=!1),L&&(!(V&&B)||ne)&&g.push(...Q.map(H=>({animation:H,options:{type:j}})))}if(x.size){const S={};x.forEach(j=>{const P=e.getBaseTarget(j),A=e.getValue(j);A&&(A.liveStyle=!0),S[j]=P??null}),g.push({animation:S})}let w=!!g.length;return s&&(m.initial===!1||m.initial===m.animate)&&!e.manuallyAnimateOnMount&&(w=!1),s=!1,w?t(g):Promise.resolve()}function d(f,m){var p;if(n[f].isActive===m)return Promise.resolve();(p=e.variantChildren)===null||p===void 0||p.forEach(x=>{var N;return(N=x.animationState)===null||N===void 0?void 0:N.setActive(f,m)}),n[f].isActive=m;const g=c(f);for(const x in n)n[x].protectedKeys={};return g}return{animateChanges:c,setActive:d,setAnimateFunction:l,getState:()=>n,reset:()=>{n=Gw(),s=!0}}}function rF(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!MS(t,e):!1}function ei(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Gw(){return{animate:ei(!0),whileInView:ei(),whileHover:ei(),whileTap:ei(),whileDrag:ei(),whileFocus:ei(),exit:ei()}}class Or{constructor(t){this.isMounted=!1,this.node=t}update(){}}class iF extends Or{constructor(t){super(t),t.animationState||(t.animationState=sF(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();kd(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let oF=0;class aF extends Or{constructor(){super(...arguments),this.id=oF++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===s)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const lF={animation:{Feature:iF},exit:{Feature:aF}};function vl(e,t,n,s={passive:!0}){return e.addEventListener(t,n,s),()=>e.removeEventListener(t,n)}function Bl(e){return{point:{x:e.pageX,y:e.pageY}}}const cF=e=>t=>wg(t)&&e(t,Bl(t));function tl(e,t,n,s){return vl(e,t,cF(n),s)}const Yw=(e,t)=>Math.abs(e-t);function uF(e,t){const n=Yw(e.x,t.x),s=Yw(e.y,t.y);return Math.sqrt(n**2+s**2)}class bN{constructor(t,n,{transformPagePoint:s,contextWindow:i,dragSnapToOrigin:l=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const g=em(this.lastMoveEventInfo,this.history),x=this.startEvent!==null,N=uF(g.offset,{x:0,y:0})>=3;if(!x&&!N)return;const{point:b}=g,{timestamp:w}=Mt;this.history.push({...b,timestamp:w});const{onStart:S,onMove:j}=this.handlers;x||(S&&S(this.lastMoveEvent,g),this.startEvent=this.lastMoveEvent),j&&j(this.lastMoveEvent,g)},this.handlePointerMove=(g,x)=>{this.lastMoveEvent=g,this.lastMoveEventInfo=Zf(x,this.transformPagePoint),et.update(this.updatePoint,!0)},this.handlePointerUp=(g,x)=>{this.end();const{onEnd:N,onSessionEnd:b,resumeAnimation:w}=this.handlers;if(this.dragSnapToOrigin&&w&&w(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const S=em(g.type==="pointercancel"?this.lastMoveEventInfo:Zf(x,this.transformPagePoint),this.history);this.startEvent&&N&&N(g,S),b&&b(g,S)},!wg(t))return;this.dragSnapToOrigin=l,this.handlers=n,this.transformPagePoint=s,this.contextWindow=i||window;const c=Bl(t),d=Zf(c,this.transformPagePoint),{point:f}=d,{timestamp:m}=Mt;this.history=[{...f,timestamp:m}];const{onSessionStart:p}=n;p&&p(t,em(d,this.history)),this.removeListeners=Il(tl(this.contextWindow,"pointermove",this.handlePointerMove),tl(this.contextWindow,"pointerup",this.handlePointerUp),tl(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Tr(this.updatePoint)}}function Zf(e,t){return t?{point:t(e.point)}:e}function Kw(e,t){return{x:e.x-t.x,y:e.y-t.y}}function em({point:e},t){return{point:e,delta:Kw(e,kN(t)),offset:Kw(e,dF(t)),velocity:hF(t,.1)}}function dF(e){return e[0]}function kN(e){return e[e.length-1]}function hF(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,s=null;const i=kN(e);for(;n>=0&&(s=e[n],!(i.timestamp-s.timestamp>Os(t)));)n--;if(!s)return{x:0,y:0};const l=Ls(i.timestamp-s.timestamp);if(l===0)return{x:0,y:0};const c={x:(i.x-s.x)/l,y:(i.y-s.y)/l};return c.x===1/0&&(c.x=0),c.y===1/0&&(c.y=0),c}const SN=1e-4,fF=1-SN,mF=1+SN,NN=.01,pF=0-NN,gF=0+NN;function vn(e){return e.max-e.min}function yF(e,t,n){return Math.abs(e-t)<=n}function Qw(e,t,n,s=.5){e.origin=s,e.originPoint=ot(t.min,t.max,e.origin),e.scale=vn(n)/vn(t),e.translate=ot(n.min,n.max,e.origin)-e.originPoint,(e.scale>=fF&&e.scale<=mF||isNaN(e.scale))&&(e.scale=1),(e.translate>=pF&&e.translate<=gF||isNaN(e.translate))&&(e.translate=0)}function nl(e,t,n,s){Qw(e.x,t.x,n.x,s?s.originX:void 0),Qw(e.y,t.y,n.y,s?s.originY:void 0)}function Xw(e,t,n){e.min=n.min+t.min,e.max=e.min+vn(t)}function vF(e,t,n){Xw(e.x,t.x,n.x),Xw(e.y,t.y,n.y)}function Jw(e,t,n){e.min=t.min-n.min,e.max=e.min+vn(t)}function sl(e,t,n){Jw(e.x,t.x,n.x),Jw(e.y,t.y,n.y)}function xF(e,{min:t,max:n},s){return t!==void 0&&e<t?e=s?ot(t,e,s.min):Math.max(e,t):n!==void 0&&e>n&&(e=s?ot(n,e,s.max):Math.min(e,n)),e}function Zw(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function wF(e,{top:t,left:n,bottom:s,right:i}){return{x:Zw(e.x,n,i),y:Zw(e.y,t,s)}}function eb(e,t){let n=t.min-e.min,s=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,s]=[s,n]),{min:n,max:s}}function bF(e,t){return{x:eb(e.x,t.x),y:eb(e.y,t.y)}}function kF(e,t){let n=.5;const s=vn(e),i=vn(t);return i>s?n=Ro(t.min,t.max-s,e.min):s>i&&(n=Ro(e.min,e.max-i,t.min)),Is(0,1,n)}function SF(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const pp=.35;function NF(e=pp){return e===!1?e=0:e===!0&&(e=pp),{x:tb(e,"left","right"),y:tb(e,"top","bottom")}}function tb(e,t,n){return{min:nb(e,t),max:nb(e,n)}}function nb(e,t){return typeof e=="number"?e:e[t]||0}const sb=()=>({translate:0,scale:1,origin:0,originPoint:0}),co=()=>({x:sb(),y:sb()}),rb=()=>({min:0,max:0}),mt=()=>({x:rb(),y:rb()});function An(e){return[e("x"),e("y")]}function jN({top:e,left:t,right:n,bottom:s}){return{x:{min:t,max:n},y:{min:e,max:s}}}function jF({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function CF(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),s=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function tm(e){return e===void 0||e===1}function gp({scale:e,scaleX:t,scaleY:n}){return!tm(e)||!tm(t)||!tm(n)}function ti(e){return gp(e)||CN(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function CN(e){return ib(e.x)||ib(e.y)}function ib(e){return e&&e!=="0%"}function ed(e,t,n){const s=e-n,i=t*s;return n+i}function ob(e,t,n,s,i){return i!==void 0&&(e=ed(e,i,s)),ed(e,n,s)+t}function yp(e,t=0,n=1,s,i){e.min=ob(e.min,t,n,s,i),e.max=ob(e.max,t,n,s,i)}function AN(e,{x:t,y:n}){yp(e.x,t.translate,t.scale,t.originPoint),yp(e.y,n.translate,n.scale,n.originPoint)}const ab=.999999999999,lb=1.0000000000001;function AF(e,t,n,s=!1){const i=n.length;if(!i)return;t.x=t.y=1;let l,c;for(let d=0;d<i;d++){l=n[d],c=l.projectionDelta;const{visualElement:f}=l.options;f&&f.props.style&&f.props.style.display==="contents"||(s&&l.options.layoutScroll&&l.scroll&&l!==l.root&&ho(e,{x:-l.scroll.offset.x,y:-l.scroll.offset.y}),c&&(t.x*=c.x.scale,t.y*=c.y.scale,AN(e,c)),s&&ti(l.latestValues)&&ho(e,l.latestValues))}t.x<lb&&t.x>ab&&(t.x=1),t.y<lb&&t.y>ab&&(t.y=1)}function uo(e,t){e.min=e.min+t,e.max=e.max+t}function cb(e,t,n,s,i=.5){const l=ot(e.min,e.max,i);yp(e,t,n,l,s)}function ho(e,t){cb(e.x,t.x,t.scaleX,t.scale,t.originX),cb(e.y,t.y,t.scaleY,t.scale,t.originY)}function PN(e,t){return jN(CF(e.getBoundingClientRect(),t))}function PF(e,t,n){const s=PN(e,n),{scroll:i}=t;return i&&(uo(s.x,i.offset.x),uo(s.y,i.offset.y)),s}const EN=({current:e})=>e?e.ownerDocument.defaultView:null,EF=new WeakMap;class TF{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=mt(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:s}=this.visualElement;if(s&&s.isPresent===!1)return;const i=p=>{const{dragSnapToOrigin:g}=this.getProps();g?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Bl(p).point)},l=(p,g)=>{const{drag:x,dragPropagation:N,onDragStart:b}=this.getProps();if(x&&!N&&(this.openDragLock&&this.openDragLock(),this.openDragLock=bM(x),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),An(S=>{let j=this.getAxisMotionValue(S).get()||0;if(ms.test(j)){const{projection:P}=this.visualElement;if(P&&P.layout){const A=P.layout.layoutBox[S];A&&(j=vn(A)*(parseFloat(j)/100))}}this.originPoint[S]=j}),b&&et.postRender(()=>b(p,g)),ap(this.visualElement,"transform");const{animationState:w}=this.visualElement;w&&w.setActive("whileDrag",!0)},c=(p,g)=>{const{dragPropagation:x,dragDirectionLock:N,onDirectionLock:b,onDrag:w}=this.getProps();if(!x&&!this.openDragLock)return;const{offset:S}=g;if(N&&this.currentDirection===null){this.currentDirection=RF(S),this.currentDirection!==null&&b&&b(this.currentDirection);return}this.updateAxis("x",g.point,S),this.updateAxis("y",g.point,S),this.visualElement.render(),w&&w(p,g)},d=(p,g)=>this.stop(p,g),f=()=>An(p=>{var g;return this.getAnimationState(p)==="paused"&&((g=this.getAxisMotionValue(p).animation)===null||g===void 0?void 0:g.play())}),{dragSnapToOrigin:m}=this.getProps();this.panSession=new bN(t,{onSessionStart:i,onStart:l,onMove:c,onSessionEnd:d,resumeAnimation:f},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:m,contextWindow:EN(this.visualElement)})}stop(t,n){const s=this.isDragging;if(this.cancel(),!s)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:l}=this.getProps();l&&et.postRender(()=>l(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,s){const{drag:i}=this.getProps();if(!s||!gu(t,i,this.currentDirection))return;const l=this.getAxisMotionValue(t);let c=this.originPoint[t]+s[t];this.constraints&&this.constraints[t]&&(c=xF(c,this.constraints[t],this.elastic[t])),l.set(c)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:s}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,l=this.constraints;n&&ao(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=wF(i.layoutBox,n):this.constraints=!1,this.elastic=NF(s),l!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&An(c=>{this.constraints!==!1&&this.getAxisMotionValue(c)&&(this.constraints[c]=SF(i.layoutBox[c],this.constraints[c]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!ao(t))return!1;const s=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const l=PF(s,i.root,this.visualElement.getTransformPagePoint());let c=bF(i.layout.layoutBox,l);if(n){const d=n(jF(c));this.hasMutatedConstraints=!!d,d&&(c=jN(d))}return c}startAnimation(t){const{drag:n,dragMomentum:s,dragElastic:i,dragTransition:l,dragSnapToOrigin:c,onDragTransitionEnd:d}=this.getProps(),f=this.constraints||{},m=An(p=>{if(!gu(p,n,this.currentDirection))return;let g=f&&f[p]||{};c&&(g={min:0,max:0});const x=i?200:1e6,N=i?40:1e7,b={type:"inertia",velocity:s?t[p]:0,bounceStiffness:x,bounceDamping:N,timeConstant:750,restDelta:1,restSpeed:10,...l,...g};return this.startAxisValueAnimation(p,b)});return Promise.all(m).then(d)}startAxisValueAnimation(t,n){const s=this.getAxisMotionValue(t);return ap(this.visualElement,t),s.start(_g(t,s,0,n,this.visualElement,!1))}stopAnimation(){An(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){An(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,s=this.visualElement.getProps(),i=s[n];return i||this.visualElement.getValue(t,(s.initial?s.initial[t]:void 0)||0)}snapToCursor(t){An(n=>{const{drag:s}=this.getProps();if(!gu(n,s,this.currentDirection))return;const{projection:i}=this.visualElement,l=this.getAxisMotionValue(n);if(i&&i.layout){const{min:c,max:d}=i.layout.layoutBox[n];l.set(t[n]-ot(c,d,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!ao(n)||!s||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};An(c=>{const d=this.getAxisMotionValue(c);if(d&&this.constraints!==!1){const f=d.get();i[c]=kF({min:f,max:f},this.constraints[c])}});const{transformTemplate:l}=this.visualElement.getProps();this.visualElement.current.style.transform=l?l({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.resolveConstraints(),An(c=>{if(!gu(c,t,null))return;const d=this.getAxisMotionValue(c),{min:f,max:m}=this.constraints[c];d.set(ot(f,m,i[c]))})}addListeners(){if(!this.visualElement.current)return;EF.set(this.visualElement,this);const t=this.visualElement.current,n=tl(t,"pointerdown",f=>{const{drag:m,dragListener:p=!0}=this.getProps();m&&p&&this.start(f)}),s=()=>{const{dragConstraints:f}=this.getProps();ao(f)&&f.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,l=i.addEventListener("measure",s);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),et.read(s);const c=vl(window,"resize",()=>this.scalePositionWithinConstraints()),d=i.addEventListener("didUpdate",(({delta:f,hasLayoutChanged:m})=>{this.isDragging&&m&&(An(p=>{const g=this.getAxisMotionValue(p);g&&(this.originPoint[p]+=f[p].translate,g.set(g.get()+f[p].translate))}),this.visualElement.render())}));return()=>{c(),n(),l(),d&&d()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:s=!1,dragPropagation:i=!1,dragConstraints:l=!1,dragElastic:c=pp,dragMomentum:d=!0}=t;return{...t,drag:n,dragDirectionLock:s,dragPropagation:i,dragConstraints:l,dragElastic:c,dragMomentum:d}}}function gu(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function RF(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class _F extends Or{constructor(t){super(t),this.removeGroupControls=gn,this.removeListeners=gn,this.controls=new TF(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||gn}unmount(){this.removeGroupControls(),this.removeListeners()}}const ub=e=>(t,n)=>{e&&et.postRender(()=>e(t,n))};class DF extends Or{constructor(){super(...arguments),this.removePointerDownListener=gn}onPointerDown(t){this.session=new bN(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:EN(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:s,onPanEnd:i}=this.node.getProps();return{onSessionStart:ub(t),onStart:ub(n),onMove:s,onEnd:(l,c)=>{delete this.session,i&&et.postRender(()=>i(l,c))}}}mount(){this.removePointerDownListener=tl(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function MF(){const e=k.useContext(wd);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:s}=e,i=k.useId();k.useEffect(()=>s(i),[]);const l=k.useCallback(()=>n&&n(i),[i,n]);return!t&&n?[!1,l]:[!0]}const Mu={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function db(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Ba={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(be.test(e))e=parseFloat(e);else return e;const n=db(e,t.target.x),s=db(e,t.target.y);return`${n}% ${s}%`}},FF={correct:(e,{treeScale:t,projectionDelta:n})=>{const s=e,i=Rr.parse(e);if(i.length>5)return s;const l=Rr.createTransformer(e),c=typeof i[0]!="number"?1:0,d=n.x.scale*t.x,f=n.y.scale*t.y;i[0+c]/=d,i[1+c]/=f;const m=ot(d,f,.5);return typeof i[2+c]=="number"&&(i[2+c]/=m),typeof i[3+c]=="number"&&(i[3+c]/=m),l(i)}};class OF extends k.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:s,layoutId:i}=this.props,{projection:l}=t;ID(LF),l&&(n.group&&n.group.add(l),s&&s.register&&i&&s.register(l),l.root.didUpdate(),l.addEventListener("animationComplete",()=>{this.safeToRemove()}),l.setOptions({...l.options,onExitComplete:()=>this.safeToRemove()})),Mu.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:s,drag:i,isPresent:l}=this.props,c=s.projection;return c&&(c.isPresent=l,i||t.layoutDependency!==n||n===void 0?c.willUpdate():this.safeToRemove(),t.isPresent!==l&&(l?c.promote():c.relegate()||et.postRender(()=>{const d=c.getStack();(!d||!d.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),ag.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:s}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),s&&s.deregister&&s.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function TN(e){const[t,n]=MF(),s=k.useContext(tg);return a.jsx(OF,{...e,layoutGroup:s,switchLayoutGroup:k.useContext(bS),isPresent:t,safeToRemove:n})}const LF={borderRadius:{...Ba,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ba,borderTopRightRadius:Ba,borderBottomLeftRadius:Ba,borderBottomRightRadius:Ba,boxShadow:FF};function IF(e,t,n){const s=Wt(e)?e:gl(e);return s.start(_g("",s,t,n)),s.animation}function BF(e){return e instanceof SVGElement&&e.tagName!=="svg"}const VF=(e,t)=>e.depth-t.depth;class zF{constructor(){this.children=[],this.isDirty=!1}add(t){bg(this.children,t),this.isDirty=!0}remove(t){kg(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(VF),this.isDirty=!1,this.children.forEach(t)}}function UF(e,t){const n=ps.now(),s=({timestamp:i})=>{const l=i-n;l>=t&&(Tr(s),e(l-t))};return et.read(s,!0),()=>Tr(s)}const RN=["TopLeft","TopRight","BottomLeft","BottomRight"],$F=RN.length,hb=e=>typeof e=="string"?parseFloat(e):e,fb=e=>typeof e=="number"||be.test(e);function WF(e,t,n,s,i,l){i?(e.opacity=ot(0,n.opacity!==void 0?n.opacity:1,HF(s)),e.opacityExit=ot(t.opacity!==void 0?t.opacity:1,0,qF(s))):l&&(e.opacity=ot(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,s));for(let c=0;c<$F;c++){const d=`border${RN[c]}Radius`;let f=mb(t,d),m=mb(n,d);if(f===void 0&&m===void 0)continue;f||(f=0),m||(m=0),f===0||m===0||fb(f)===fb(m)?(e[d]=Math.max(ot(hb(f),hb(m),s),0),(ms.test(m)||ms.test(f))&&(e[d]+="%")):e[d]=m}(t.rotate||n.rotate)&&(e.rotate=ot(t.rotate||0,n.rotate||0,s))}function mb(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const HF=_N(0,.5,QS),qF=_N(.5,.95,gn);function _N(e,t,n){return s=>s<e?0:s>t?1:n(Ro(e,t,s))}function pb(e,t){e.min=t.min,e.max=t.max}function Cn(e,t){pb(e.x,t.x),pb(e.y,t.y)}function gb(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function yb(e,t,n,s,i){return e-=t,e=ed(e,1/n,s),i!==void 0&&(e=ed(e,1/i,s)),e}function GF(e,t=0,n=1,s=.5,i,l=e,c=e){if(ms.test(t)&&(t=parseFloat(t),t=ot(c.min,c.max,t/100)-c.min),typeof t!="number")return;let d=ot(l.min,l.max,s);e===l&&(d-=t),e.min=yb(e.min,t,n,d,i),e.max=yb(e.max,t,n,d,i)}function vb(e,t,[n,s,i],l,c){GF(e,t[n],t[s],t[i],t.scale,l,c)}const YF=["x","scaleX","originX"],KF=["y","scaleY","originY"];function xb(e,t,n,s){vb(e.x,t,YF,n?n.x:void 0,s?s.x:void 0),vb(e.y,t,KF,n?n.y:void 0,s?s.y:void 0)}function wb(e){return e.translate===0&&e.scale===1}function DN(e){return wb(e.x)&&wb(e.y)}function bb(e,t){return e.min===t.min&&e.max===t.max}function QF(e,t){return bb(e.x,t.x)&&bb(e.y,t.y)}function kb(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function MN(e,t){return kb(e.x,t.x)&&kb(e.y,t.y)}function Sb(e){return vn(e.x)/vn(e.y)}function Nb(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class XF{constructor(){this.members=[]}add(t){bg(this.members,t),t.scheduleRender()}remove(t){if(kg(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let s;for(let i=n;i>=0;i--){const l=this.members[i];if(l.isPresent!==!1){s=l;break}}return s?(this.promote(s),!0):!1}promote(t,n){const s=this.lead;if(t!==s&&(this.prevLead=s,this.lead=t,t.show(),s)){s.instance&&s.scheduleRender(),t.scheduleRender(),t.resumeFrom=s,n&&(t.resumeFrom.preserveOpacity=!0),s.snapshot&&(t.snapshot=s.snapshot,t.snapshot.latestValues=s.animationValues||s.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:s}=t;n.onExitComplete&&n.onExitComplete(),s&&s.options.onExitComplete&&s.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function JF(e,t,n){let s="";const i=e.x.translate/t.x,l=e.y.translate/t.y,c=(n==null?void 0:n.z)||0;if((i||l||c)&&(s=`translate3d(${i}px, ${l}px, ${c}px) `),(t.x!==1||t.y!==1)&&(s+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:m,rotate:p,rotateX:g,rotateY:x,skewX:N,skewY:b}=n;m&&(s=`perspective(${m}px) ${s}`),p&&(s+=`rotate(${p}deg) `),g&&(s+=`rotateX(${g}deg) `),x&&(s+=`rotateY(${x}deg) `),N&&(s+=`skewX(${N}deg) `),b&&(s+=`skewY(${b}deg) `)}const d=e.x.scale*t.x,f=e.y.scale*t.y;return(d!==1||f!==1)&&(s+=`scale(${d}, ${f})`),s||"none"}const ni={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Ka=typeof window<"u"&&window.MotionDebug!==void 0,nm=["","X","Y","Z"],ZF={visibility:"hidden"},jb=1e3;let eO=0;function sm(e,t,n,s){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),s&&(s[e]=0))}function FN(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=$S(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:l}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",et,!(i||l))}const{parent:s}=e;s&&!s.hasCheckedOptimisedAppear&&FN(s)}function ON({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:s,resetTransform:i}){return class{constructor(c={},d=t==null?void 0:t()){this.id=eO++,this.animationId=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,Ka&&(ni.totalNodes=ni.resolvedTargetDeltas=ni.recalculatedProjection=0),this.nodes.forEach(sO),this.nodes.forEach(lO),this.nodes.forEach(cO),this.nodes.forEach(rO),Ka&&window.MotionDebug.record(ni)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=c,this.root=d?d.root||d:this,this.path=d?[...d.path,d]:[],this.parent=d,this.depth=d?d.depth+1:0;for(let f=0;f<this.path.length;f++)this.path[f].shouldResetTransform=!0;this.root===this&&(this.nodes=new zF)}addEventListener(c,d){return this.eventHandlers.has(c)||this.eventHandlers.set(c,new Sg),this.eventHandlers.get(c).add(d)}notifyListeners(c,...d){const f=this.eventHandlers.get(c);f&&f.notify(...d)}hasListeners(c){return this.eventHandlers.has(c)}mount(c,d=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=BF(c),this.instance=c;const{layoutId:f,layout:m,visualElement:p}=this.options;if(p&&!p.current&&p.mount(c),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),d&&(m||f)&&(this.isLayoutDirty=!0),e){let g;const x=()=>this.root.updateBlockedByResize=!1;e(c,()=>{this.root.updateBlockedByResize=!0,g&&g(),g=UF(x,250),Mu.hasAnimatedSinceResize&&(Mu.hasAnimatedSinceResize=!1,this.nodes.forEach(Ab))})}f&&this.root.registerSharedNode(f,this),this.options.animate!==!1&&p&&(f||m)&&this.addEventListener("didUpdate",({delta:g,hasLayoutChanged:x,hasRelativeTargetChanged:N,layout:b})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const w=this.options.transition||p.getDefaultTransition()||mO,{onLayoutAnimationStart:S,onLayoutAnimationComplete:j}=p.getProps(),P=!this.targetLayout||!MN(this.targetLayout,b)||N,A=!x&&N;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||A||x&&(P||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(g,A);const E={...yg(w,"layout"),onPlay:S,onComplete:j};(p.shouldReduceMotion||this.options.layoutRoot)&&(E.delay=0,E.type=!1),this.startAnimation(E)}else x||Ab(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=b})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const c=this.getStack();c&&c.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Tr(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(uO),this.animationId++)}getTransformTemplate(){const{visualElement:c}=this.options;return c&&c.getProps().transformTemplate}willUpdate(c=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&FN(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let p=0;p<this.path.length;p++){const g=this.path[p];g.shouldResetTransform=!0,g.updateScroll("snapshot"),g.options.layoutRoot&&g.willUpdate(!1)}const{layoutId:d,layout:f}=this.options;if(d===void 0&&!f)return;const m=this.getTransformTemplate();this.prevTransformTemplateValue=m?m(this.latestValues,""):void 0,this.updateSnapshot(),c&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Cb);return}this.isUpdating||this.nodes.forEach(oO),this.isUpdating=!1,this.nodes.forEach(aO),this.nodes.forEach(tO),this.nodes.forEach(nO),this.clearAllSnapshots();const d=ps.now();Mt.delta=Is(0,1e3/60,d-Mt.timestamp),Mt.timestamp=d,Mt.isProcessing=!0,Gf.update.process(Mt),Gf.preRender.process(Mt),Gf.render.process(Mt),Mt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ag.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(iO),this.sharedNodes.forEach(dO)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,et.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){et.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let f=0;f<this.path.length;f++)this.path[f].updateScroll();const c=this.layout;this.layout=this.measure(!1),this.layoutCorrected=mt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:d}=this.options;d&&d.notify("LayoutMeasure",this.layout.layoutBox,c?c.layoutBox:void 0)}updateScroll(c="measure"){let d=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===c&&(d=!1),d){const f=s(this.instance);this.scroll={animationId:this.root.animationId,phase:c,isRoot:f,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:f}}}resetTransform(){if(!i)return;const c=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,d=this.projectionDelta&&!DN(this.projectionDelta),f=this.getTransformTemplate(),m=f?f(this.latestValues,""):void 0,p=m!==this.prevTransformTemplateValue;c&&(d||ti(this.latestValues)||p)&&(i(this.instance,m),this.shouldResetTransform=!1,this.scheduleRender())}measure(c=!0){const d=this.measurePageBox();let f=this.removeElementScroll(d);return c&&(f=this.removeTransform(f)),pO(f),{animationId:this.root.animationId,measuredBox:d,layoutBox:f,latestValues:{},source:this.id}}measurePageBox(){var c;const{visualElement:d}=this.options;if(!d)return mt();const f=d.measureViewportBox();if(!(((c=this.scroll)===null||c===void 0?void 0:c.wasRoot)||this.path.some(gO))){const{scroll:p}=this.root;p&&(uo(f.x,p.offset.x),uo(f.y,p.offset.y))}return f}removeElementScroll(c){var d;const f=mt();if(Cn(f,c),!((d=this.scroll)===null||d===void 0)&&d.wasRoot)return f;for(let m=0;m<this.path.length;m++){const p=this.path[m],{scroll:g,options:x}=p;p!==this.root&&g&&x.layoutScroll&&(g.wasRoot&&Cn(f,c),uo(f.x,g.offset.x),uo(f.y,g.offset.y))}return f}applyTransform(c,d=!1){const f=mt();Cn(f,c);for(let m=0;m<this.path.length;m++){const p=this.path[m];!d&&p.options.layoutScroll&&p.scroll&&p!==p.root&&ho(f,{x:-p.scroll.offset.x,y:-p.scroll.offset.y}),ti(p.latestValues)&&ho(f,p.latestValues)}return ti(this.latestValues)&&ho(f,this.latestValues),f}removeTransform(c){const d=mt();Cn(d,c);for(let f=0;f<this.path.length;f++){const m=this.path[f];if(!m.instance||!ti(m.latestValues))continue;gp(m.latestValues)&&m.updateSnapshot();const p=mt(),g=m.measurePageBox();Cn(p,g),xb(d,m.latestValues,m.snapshot?m.snapshot.layoutBox:void 0,p)}return ti(this.latestValues)&&xb(d,this.latestValues),d}setTargetDelta(c){this.targetDelta=c,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(c){this.options={...this.options,...c,crossfade:c.crossfade!==void 0?c.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!==Mt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(c=!1){var d;const f=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=f.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=f.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=f.isSharedProjectionDirty);const m=!!this.resumingFrom||this!==f;if(!(c||m&&this.isSharedProjectionDirty||this.isProjectionDirty||!((d=this.parent)===null||d===void 0)&&d.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:g,layoutId:x}=this.options;if(!(!this.layout||!(g||x))){if(this.resolvedRelativeTargetAt=Mt.timestamp,!this.targetDelta&&!this.relativeTarget){const N=this.getClosestProjectingParent();N&&N.layout&&this.animationProgress!==1?(this.relativeParent=N,this.forceRelativeParentToResolveTarget(),this.relativeTarget=mt(),this.relativeTargetOrigin=mt(),sl(this.relativeTargetOrigin,this.layout.layoutBox,N.layout.layoutBox),Cn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=mt(),this.targetWithTransforms=mt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),vF(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Cn(this.target,this.layout.layoutBox),AN(this.target,this.targetDelta)):Cn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const N=this.getClosestProjectingParent();N&&!!N.resumingFrom==!!this.resumingFrom&&!N.options.layoutScroll&&N.target&&this.animationProgress!==1?(this.relativeParent=N,this.forceRelativeParentToResolveTarget(),this.relativeTarget=mt(),this.relativeTargetOrigin=mt(),sl(this.relativeTargetOrigin,this.target,N.target),Cn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Ka&&ni.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||gp(this.parent.latestValues)||CN(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var c;const d=this.getLead(),f=!!this.resumingFrom||this!==d;let m=!0;if((this.isProjectionDirty||!((c=this.parent)===null||c===void 0)&&c.isProjectionDirty)&&(m=!1),f&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(m=!1),this.resolvedRelativeTargetAt===Mt.timestamp&&(m=!1),m)return;const{layout:p,layoutId:g}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(p||g))return;Cn(this.layoutCorrected,this.layout.layoutBox);const x=this.treeScale.x,N=this.treeScale.y;AF(this.layoutCorrected,this.treeScale,this.path,f),d.layout&&!d.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(d.target=d.layout.layoutBox,d.targetWithTransforms=mt());const{target:b}=d;if(!b){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(gb(this.prevProjectionDelta.x,this.projectionDelta.x),gb(this.prevProjectionDelta.y,this.projectionDelta.y)),nl(this.projectionDelta,this.layoutCorrected,b,this.latestValues),(this.treeScale.x!==x||this.treeScale.y!==N||!Nb(this.projectionDelta.x,this.prevProjectionDelta.x)||!Nb(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",b)),Ka&&ni.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(c=!0){var d;if((d=this.options.visualElement)===null||d===void 0||d.scheduleRender(),c){const f=this.getStack();f&&f.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=co(),this.projectionDelta=co(),this.projectionDeltaWithTransform=co()}setAnimationOrigin(c,d=!1){const f=this.snapshot,m=f?f.latestValues:{},p={...this.latestValues},g=co();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!d;const x=mt(),N=f?f.source:void 0,b=this.layout?this.layout.source:void 0,w=N!==b,S=this.getStack(),j=!S||S.members.length<=1,P=!!(w&&!j&&this.options.crossfade===!0&&!this.path.some(fO));this.animationProgress=0;let A;this.mixTargetDelta=E=>{const D=E/1e3;Pb(g.x,c.x,D),Pb(g.y,c.y,D),this.setTargetDelta(g),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(sl(x,this.layout.layoutBox,this.relativeParent.layout.layoutBox),hO(this.relativeTarget,this.relativeTargetOrigin,x,D),A&&QF(this.relativeTarget,A)&&(this.isProjectionDirty=!1),A||(A=mt()),Cn(A,this.relativeTarget)),w&&(this.animationValues=p,WF(p,m,this.latestValues,D,P,j)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=D},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(c){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Tr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=et.update(()=>{Mu.hasAnimatedSinceResize=!0,this.currentAnimation=IF(0,jb,{...c,onUpdate:d=>{this.mixTargetDelta(d),c.onUpdate&&c.onUpdate(d)},onComplete:()=>{c.onComplete&&c.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 c=this.getStack();c&&c.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(jb),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const c=this.getLead();let{targetWithTransforms:d,target:f,layout:m,latestValues:p}=c;if(!(!d||!f||!m)){if(this!==c&&this.layout&&m&&LN(this.options.animationType,this.layout.layoutBox,m.layoutBox)){f=this.target||mt();const g=vn(this.layout.layoutBox.x);f.x.min=c.target.x.min,f.x.max=f.x.min+g;const x=vn(this.layout.layoutBox.y);f.y.min=c.target.y.min,f.y.max=f.y.min+x}Cn(d,f),ho(d,p),nl(this.projectionDeltaWithTransform,this.layoutCorrected,d,p)}}registerSharedNode(c,d){this.sharedNodes.has(c)||this.sharedNodes.set(c,new XF),this.sharedNodes.get(c).add(d);const m=d.options.initialPromotionConfig;d.promote({transition:m?m.transition:void 0,preserveFollowOpacity:m&&m.shouldPreserveFollowOpacity?m.shouldPreserveFollowOpacity(d):void 0})}isLead(){const c=this.getStack();return c?c.lead===this:!0}getLead(){var c;const{layoutId:d}=this.options;return d?((c=this.getStack())===null||c===void 0?void 0:c.lead)||this:this}getPrevLead(){var c;const{layoutId:d}=this.options;return d?(c=this.getStack())===null||c===void 0?void 0:c.prevLead:void 0}getStack(){const{layoutId:c}=this.options;if(c)return this.root.sharedNodes.get(c)}promote({needsReset:c,transition:d,preserveFollowOpacity:f}={}){const m=this.getStack();m&&m.promote(this,f),c&&(this.projectionDelta=void 0,this.needsReset=!0),d&&this.setOptions({transition:d})}relegate(){const c=this.getStack();return c?c.relegate(this):!1}resetSkewAndRotation(){const{visualElement:c}=this.options;if(!c)return;let d=!1;const{latestValues:f}=c;if((f.z||f.rotate||f.rotateX||f.rotateY||f.rotateZ||f.skewX||f.skewY)&&(d=!0),!d)return;const m={};f.z&&sm("z",c,m,this.animationValues);for(let p=0;p<nm.length;p++)sm(`rotate${nm[p]}`,c,m,this.animationValues),sm(`skew${nm[p]}`,c,m,this.animationValues);c.render();for(const p in m)c.setStaticValue(p,m[p]),this.animationValues&&(this.animationValues[p]=m[p]);c.scheduleRender()}getProjectionStyles(c){var d,f;if(!this.instance||this.isSVG)return;if(!this.isVisible)return ZF;const m={visibility:""},p=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,m.opacity="",m.pointerEvents=_u(c==null?void 0:c.pointerEvents)||"",m.transform=p?p(this.latestValues,""):"none",m;const g=this.getLead();if(!this.projectionDelta||!this.layout||!g.target){const w={};return this.options.layoutId&&(w.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,w.pointerEvents=_u(c==null?void 0:c.pointerEvents)||""),this.hasProjected&&!ti(this.latestValues)&&(w.transform=p?p({},""):"none",this.hasProjected=!1),w}const x=g.animationValues||g.latestValues;this.applyTransformsToTarget(),m.transform=JF(this.projectionDeltaWithTransform,this.treeScale,x),p&&(m.transform=p(x,m.transform));const{x:N,y:b}=this.projectionDelta;m.transformOrigin=`${N.origin*100}% ${b.origin*100}% 0`,g.animationValues?m.opacity=g===this?(f=(d=x.opacity)!==null&&d!==void 0?d:this.latestValues.opacity)!==null&&f!==void 0?f:1:this.preserveOpacity?this.latestValues.opacity:x.opacityExit:m.opacity=g===this?x.opacity!==void 0?x.opacity:"":x.opacityExit!==void 0?x.opacityExit:0;for(const w in Ku){if(x[w]===void 0)continue;const{correct:S,applyTo:j}=Ku[w],P=m.transform==="none"?x[w]:S(x[w],g);if(j){const A=j.length;for(let E=0;E<A;E++)m[j[E]]=P}else m[w]=P}return this.options.layoutId&&(m.pointerEvents=g===this?_u(c==null?void 0:c.pointerEvents)||"":"none"),m}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(c=>{var d;return(d=c.currentAnimation)===null||d===void 0?void 0:d.stop()}),this.root.nodes.forEach(Cb),this.root.sharedNodes.clear()}}}function tO(e){e.updateLayout()}function nO(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:i}=e.layout,{animationType:l}=e.options,c=n.source!==e.layout.source;l==="size"?An(g=>{const x=c?n.measuredBox[g]:n.layoutBox[g],N=vn(x);x.min=s[g].min,x.max=x.min+N}):LN(l,n.layoutBox,s)&&An(g=>{const x=c?n.measuredBox[g]:n.layoutBox[g],N=vn(s[g]);x.max=x.min+N,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[g].max=e.relativeTarget[g].min+N)});const d=co();nl(d,s,n.layoutBox);const f=co();c?nl(f,e.applyTransform(i,!0),n.measuredBox):nl(f,s,n.layoutBox);const m=!DN(d);let p=!1;if(!e.resumeFrom){const g=e.getClosestProjectingParent();if(g&&!g.resumeFrom){const{snapshot:x,layout:N}=g;if(x&&N){const b=mt();sl(b,n.layoutBox,x.layoutBox);const w=mt();sl(w,s,N.layoutBox),MN(b,w)||(p=!0),g.options.layoutRoot&&(e.relativeTarget=w,e.relativeTargetOrigin=b,e.relativeParent=g)}}}e.notifyListeners("didUpdate",{layout:s,snapshot:n,delta:f,layoutDelta:d,hasLayoutChanged:m,hasRelativeTargetChanged:p})}else if(e.isLead()){const{onExitComplete:s}=e.options;s&&s()}e.options.transition=void 0}function sO(e){Ka&&ni.totalNodes++,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 rO(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function iO(e){e.clearSnapshot()}function Cb(e){e.clearMeasurements()}function oO(e){e.isLayoutDirty=!1}function aO(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Ab(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function lO(e){e.resolveTargetDelta()}function cO(e){e.calcProjection()}function uO(e){e.resetSkewAndRotation()}function dO(e){e.removeLeadSnapshot()}function Pb(e,t,n){e.translate=ot(t.translate,0,n),e.scale=ot(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Eb(e,t,n,s){e.min=ot(t.min,n.min,s),e.max=ot(t.max,n.max,s)}function hO(e,t,n,s){Eb(e.x,t.x,n.x,s),Eb(e.y,t.y,n.y,s)}function fO(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const mO={duration:.45,ease:[.4,0,.1,1]},Tb=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Rb=Tb("applewebkit/")&&!Tb("chrome/")?Math.round:gn;function _b(e){e.min=Rb(e.min),e.max=Rb(e.max)}function pO(e){_b(e.x),_b(e.y)}function LN(e,t,n){return e==="position"||e==="preserve-aspect"&&!yF(Sb(t),Sb(n),.2)}function gO(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const yO=ON({attachResizeListener:(e,t)=>vl(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),rm={current:void 0},IN=ON({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!rm.current){const e=new yO({});e.mount(window),e.setOptions({layoutScroll:!0}),rm.current=e}return rm.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),vO={pan:{Feature:DF},drag:{Feature:_F,ProjectionNode:IN,MeasureLayout:TN}};function Db(e,t,n){const{props:s}=e;e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,l=s[i];l&&et.postRender(()=>l(t,Bl(t)))}class xO extends Or{mount(){const{current:t}=this.node;t&&(this.unmount=gM(t,n=>(Db(this.node,n,"Start"),s=>Db(this.node,s,"End"))))}unmount(){}}class wO extends Or{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=Il(vl(this.node.current,"focus",()=>this.onFocus()),vl(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Mb(e,t,n){const{props:s}=e;e.animationState&&s.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),l=s[i];l&&et.postRender(()=>l(t,Bl(t)))}class bO extends Or{mount(){const{current:t}=this.node;t&&(this.unmount=wM(t,n=>(Mb(this.node,n,"Start"),(s,{success:i})=>Mb(this.node,s,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const vp=new WeakMap,im=new WeakMap,kO=e=>{const t=vp.get(e.target);t&&t(e)},SO=e=>{e.forEach(kO)};function NO({root:e,...t}){const n=e||document;im.has(n)||im.set(n,{});const s=im.get(n),i=JSON.stringify(t);return s[i]||(s[i]=new IntersectionObserver(SO,{root:e,...t})),s[i]}function jO(e,t,n){const s=NO(t);return vp.set(e,n),s.observe(e),()=>{vp.delete(e),s.unobserve(e)}}const CO={some:0,all:1};class AO extends Or{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:s,amount:i="some",once:l}=t,c={root:n?n.current:void 0,rootMargin:s,threshold:typeof i=="number"?i:CO[i]},d=f=>{const{isIntersecting:m}=f;if(this.isInView===m||(this.isInView=m,l&&!m&&this.hasEnteredView))return;m&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",m);const{onViewportEnter:p,onViewportLeave:g}=this.node.getProps(),x=m?p:g;x&&x(f)};return jO(this.node.current,c,d)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(PO(t,n))&&this.startObserver()}unmount(){}}function PO({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const EO={inView:{Feature:AO},tap:{Feature:bO},focus:{Feature:wO},hover:{Feature:xO}},TO={layout:{ProjectionNode:IN,MeasureLayout:TN}},xp={current:null},BN={current:!1};function RO(){if(BN.current=!0,!!sg)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>xp.current=e.matches;e.addListener(t),t()}else xp.current=!1}function _O(e,t,n){for(const s in t){const i=t[s],l=n[s];if(Wt(i))e.addValue(s,i);else if(Wt(l))e.addValue(s,gl(i,{owner:e}));else if(l!==i)if(e.hasValue(s)){const c=e.getValue(s);c.liveStyle===!0?c.jump(i):c.hasAnimated||c.set(i)}else{const c=e.getStaticValue(s);e.addValue(s,gl(c!==void 0?c:i,{owner:e}))}}for(const s in n)t[s]===void 0&&e.removeValue(s);return t}const Fb=new WeakMap,DO=[...nN,Vt,Rr],MO=e=>DO.find(tN(e)),Ob=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class FO{scrapeMotionValuesFromProps(t,n,s){return{}}constructor({parent:t,props:n,presenceContext:s,reducedMotionConfig:i,blockInitialAnimation:l,visualState:c},d={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Cg,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 x=ps.now();this.renderScheduledAt<x&&(this.renderScheduledAt=x,et.render(this.render,!1,!0))};const{latestValues:f,renderState:m}=c;this.latestValues=f,this.baseTarget={...f},this.initialValues=n.initial?{...f}:{},this.renderState=m,this.parent=t,this.props=n,this.presenceContext=s,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=d,this.blockInitialAnimation=!!l,this.isControllingVariants=Sd(n),this.isVariantNode=xS(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:p,...g}=this.scrapeMotionValuesFromProps(n,{},this);for(const x in g){const N=g[x];f[x]!==void 0&&Wt(N)&&N.set(f[x],!1)}}mount(t){this.current=t,Fb.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((n,s)=>this.bindToMotionValue(s,n)),BN.current||RO(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:xp.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Fb.delete(this.current),this.projection&&this.projection.unmount(),Tr(this.notifyUpdate),Tr(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const s=Ei.has(t),i=n.on("change",d=>{this.latestValues[t]=d,this.props.onUpdate&&et.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0)}),l=n.on("renderRequest",this.scheduleRender);let c;window.MotionCheckAppearSync&&(c=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),l(),c&&c(),n.owner&&n.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 _o){const n=_o[t];if(!n)continue;const{isEnabled:s,Feature:i}=n;if(!this.features[t]&&i&&s(this.props)&&(this.features[t]=new i(this)),this.features[t]){const l=this.features[t];l.isMounted?l.update():(l.mount(),l.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):mt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let s=0;s<Ob.length;s++){const i=Ob[s];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const l="on"+i,c=t[l];c&&(this.propEventSubscriptions[i]=this.on(i,c))}this.prevMotionValues=_O(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 n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const s=this.values.get(t);n!==s&&(s&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let s=this.values.get(t);return s===void 0&&n!==void 0&&(s=gl(n===null?void 0:n,{owner:this}),this.addValue(t,s)),s}readValue(t,n){var s;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(s=this.getBaseTargetFromProps(this.props,t))!==null&&s!==void 0?s:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(ZS(i)||JS(i))?i=parseFloat(i):!MO(i)&&Rr.test(n)&&(i=uN(t,n)),this.setBaseTarget(t,Wt(i)?i.get():i)),Wt(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:s}=this.props;let i;if(typeof s=="string"||typeof s=="object"){const c=ug(this.props,s,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);c&&(i=c[t])}if(s&&i!==void 0)return i;const l=this.getBaseTargetFromProps(this.props,t);return l!==void 0&&!Wt(l)?l:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Sg),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class VN extends FO{constructor(){super(...arguments),this.KeyframeResolver=dN}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:s}){delete n[t],delete s[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Wt(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function OO(e){return window.getComputedStyle(e)}class LO extends VN{constructor(){super(...arguments),this.type="html",this.renderInstance=SS}readValueFromInstance(t,n){if(Ei.has(n)){const s=Eg(n);return s&&s.default||0}else{const s=OO(t),i=(_S(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return PN(t,n)}build(t,n,s){mg(t,n,s.transformTemplate)}scrapeMotionValuesFromProps(t,n,s){return cg(t,n,s)}}class IO extends VN{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=mt}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Ei.has(n)){const s=Eg(n);return s&&s.default||0}return n=NS.has(n)?n:og(n),t.getAttribute(n)}
345scrapeMotionValuesFromProps(t,n,s){return AS(t,n,s)}build(t,n,s){pg(t,n,this.isSVGTag,s.transformTemplate)}renderInstance(t,n,s,i){jS(t,n,s,i)}mount(t){this.isSVGTag=gg(t.tagName),super.mount(t)}}const BO=(e,t)=>lg(e)?new IO(t):new LO(t,{allowProjection:e!==k.Fragment}),VO=cM({...lF,...EO,...vO,...TO},BO),Z=jD(VO),it=k.forwardRef(({className:e,type:t,...n},s)=>a.jsx("input",{type:t,className:Re("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:s,...n}));it.displayName="Input";const _e=k.forwardRef(({className:e,...t},n)=>a.jsx("div",{ref:n,className:Re("rounded-xl border bg-card text-card-foreground shadow",e),...t}));_e.displayName="Card";const vt=k.forwardRef(({className:e,...t},n)=>a.jsx("div",{ref:n,className:Re("flex flex-col space-y-1.5 p-6",e),...t}));vt.displayName="CardHeader";const xt=k.forwardRef(({className:e,...t},n)=>a.jsx("div",{ref:n,className:Re("font-semibold leading-none tracking-tight",e),...t}));xt.displayName="CardTitle";const $n=k.forwardRef(({className:e,...t},n)=>a.jsx("div",{ref:n,className:Re("text-sm text-muted-foreground",e),...t}));$n.displayName="CardDescription";const De=k.forwardRef(({className:e,...t},n)=>a.jsx("div",{ref:n,className:Re("p-6 pt-0",e),...t}));De.displayName="CardContent";const zO=k.forwardRef(({className:e,...t},n)=>a.jsx("div",{ref:n,className:Re("flex items-center p-6 pt-0",e),...t}));zO.displayName="CardFooter";const UO=Al("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",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function pt({className:e,variant:t,...n}){return a.jsx("div",{className:Re(UO({variant:t}),e),...n})}function Lb(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function zN(...e){return t=>{let n=!1;const s=e.map(i=>{const l=Lb(i,t);return!n&&typeof l=="function"&&(n=!0),l});if(n)return()=>{for(let i=0;i<s.length;i++){const l=s[i];typeof l=="function"?l():Lb(e[i],null)}}}}function Ht(...e){return k.useCallback(zN(...e),e)}function Mo(e){const t=WO(e),n=k.forwardRef((s,i)=>{const{children:l,...c}=s,d=k.Children.toArray(l),f=d.find(qO);if(f){const m=f.props.children,p=d.map(g=>g===f?k.Children.count(m)>1?k.Children.only(null):k.isValidElement(m)?m.props.children:null:g);return a.jsx(t,{...c,ref:i,children:k.isValidElement(m)?k.cloneElement(m,void 0,p):null})}return a.jsx(t,{...c,ref:i,children:l})});return n.displayName=`${e}.Slot`,n}var $O=Mo("Slot");function WO(e){const t=k.forwardRef((n,s)=>{const{children:i,...l}=n;if(k.isValidElement(i)){const c=YO(i),d=GO(l,i.props);return i.type!==k.Fragment&&(d.ref=s?zN(s,c):c),k.cloneElement(i,d)}return k.Children.count(i)>1?k.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var HO=Symbol("radix.slottable");function qO(e){return k.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===HO}function GO(e,t){const n={...t};for(const s in t){const i=e[s],l=t[s];/^on[A-Z]/.test(s)?i&&l?n[s]=(...d)=>{const f=l(...d);return i(...d),f}:i&&(n[s]=i):s==="style"?n[s]={...i,...l}:s==="className"&&(n[s]=[i,l].filter(Boolean).join(" "))}return{...e,...n}}function YO(e){var s,i;let t=(s=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const wp=Al("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",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),ae=k.forwardRef(({className:e,variant:t,size:n,asChild:s=!1,...i},l)=>{const c=s?$O:"button";return a.jsx(c,{className:Re(wp({variant:t,size:n,className:e})),ref:l,...i})});ae.displayName="Button";function KO(){const[e,t]=k.useState(""),[n,s]=k.useState(!1),[i,l]=k.useState(!0),[c,d]=k.useState(""),[f,m]=k.useState(!1);k.useEffect(()=>{(async()=>{try{(await bt.auth.me()).role==="admin"&&s(!0)}catch{}finally{l(!1)}})()},[]);const p=w=>{w.preventDefault(),c==="NewLush5165"?(s(!0),m(!1)):m(!0)},{data:g,isLoading:x}=Hu({queryKey:["admin-concerns"],queryFn:()=>bt.entities.Concern.list("-created_date",100),refetchInterval:3e4}),N=(g==null?void 0:g.filter(w=>{var S,j,P;return((S=w.user_name)==null?void 0:S.toLowerCase().includes(e.toLowerCase()))||((j=w.user_email)==null?void 0:j.toLowerCase().includes(e.toLowerCase()))||((P=w.subcategory)==null?void 0:P.toLowerCase().includes(e.toLowerCase()))}))||[],b=w=>
345{switch(w){case"severe":return"bg-red-100 text-red-800 border-red-200";case"moderate":return"bg-yellow-100 text-yellow-800 border-yellow-200";default:return"bg-green-100 text-green-800 border-green-200"}};return i?a.jsx("div",{className:"min-h-screen bg-stone-50 flex items-center justify-center",children:a.jsxs("div",{className:"text-center",children:[a.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-[#D4AF37] mx-auto mb-4"}),a.jsx("p",{className:"text-stone-600",children:"Loading..."})]})}):n?a.jsx("div",{className:"min-h-screen bg-stone-50 py-8 px-6",children:a.jsxs("div",{className:"max-w-7xl mx-auto",children:[a.jsxs("div",{className:"mb-8",children:[a.jsx("h1",{className:"text-3xl font-light text-stone-900 mb-2",children:"Patient Assessments"}),a.jsx("p",{className:"text-stone-600",children:"Review and manage patient wellness assessments"})]}),a.jsx("div",{className:"mb-6",children:a.jsxs("div",{className:"relative",children:[a.jsx(U1,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 w-5 h-5 text-stone-400"}),a.jsx(it,{placeholder:"Search by name, email, or concern...",value:e,onChange:w=>t(w.target.value),className:"pl-10 rounded-xl"})]})}),a.jsxs("div",{className:"grid md:grid-cols-4 gap-4 mb-6",children:[a.jsx(_e,{children:a.jsxs(De,{className:"pt-6",children:[a.jsx("div",{className:"text-2xl font-bold text-stone-900",children:(g==null?void 0:g.length)||0}),a.jsx("div",{className:"text-sm text-stone-600",children:"Total Assessments"})]})}),a.jsx(_e,{children:a.jsxs(De,{className:"pt-6",children:[a.jsx("div",{className:"text-2xl font-bold text-red-600",children:(g==null?void 0:g.filter(w=>w.severity==="severe").length)||0}),a.jsx("div",{className:"text-sm text-stone-600",children:"Severe Cases"})]})}),a.jsx(_e,{children:a.jsxs(De,{className:"pt-6",children:[a.jsx("div",{className:"text-2xl font-bold text-yellow-600",children:(g==null?void 0:g.filter(w=>w.severity==="moderate").length)||0}),a.jsx("div",{className:"text-sm text-stone-600",children:"Moderate Cases"})]})}),a.jsx(_e,{children:a.jsxs(De,{className:"pt-6",children:[a.jsx("div",{className:"text-2xl font-bold text-green-600",children:(g==null?void 0:g.filter(w=>w.severity==="mild").length)||0}),a.jsx("div",{className:"text-sm text-stone-600",children:"Mild Cases"})]})})]}),a.jsxs("div",{className:"space-y-4",children:[N.map((w,S)=>{var j;return a.jsx(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:S*.05},children:a.jsxs(_e,{className:"hover:shadow-lg transition-all",children:[a.jsx(vt,{children:a.jsxs("div",{className:"flex items-start justify-between",children:[a.jsxs("div",{className:"flex-1",children:[a.jsxs(xt,{className:"text-lg mb-2 flex items-center gap-2",children:[a.jsx(dd,{className:"w-5 h-5 text-[#D4AF37]"}),w.user_name||"No name provided"]}),a.jsxs("div",{className:"flex flex-wrap gap-2 mb-3",children:[a.jsxs(pt,{className:b(w.severity),children:[w.severity," severity"]}),a.jsx(pt,{variant:"outline",className:"bg-stone-50",children:w.category}),a.jsx(pt,{variant:"outline",className:"bg-stone-50",children:w.subcategory})]})]}),a.jsxs("div",{className:"text-sm text-stone-500",children:[a.jsx(un,{className:"w-4 h-4 inline mr-1"}),new Date(w.created_date).toLocaleDateString()]})]})}),a.jsxs(De,{children:[a.jsxs("div",{className:"grid md:grid-cols-2 gap-6 mb-4",children:[a.jsxs("div",{className:"space-y-2",children:[a.jsx("h4",{className:"font-medium text-stone-900 mb-2",children:"Contact Information"}),w.user_email&&a.jsxs("div",{className:"flex items-center gap-2 text-sm text-stone-600",children:[a.jsx(Mp,{className:"w-4 h-4"}),a.jsx("a",{href:`mailto:${w.user_email}`,className:"hover:text-[#D4AF37]",children:w.user_email})]}),w.user_phone&&a.jsxs("div",{className:"flex items-center gap-2 text-sm text-stone-600",children:[a.jsx(Ci,{className:"w-4 h-4"}),a.jsx("a",{href:`tel:${w.user_phone}`,className:"hover:text-[#D4AF37]",children:w.user_phone})]})]}),a.jsxs("div",{children:[a.jsx("h4",{className:"font-medium text-stone-900 mb-2",children:"Reported Symptoms"}),a.jsx("div",{className:"flex flex-wrap gap-1",children:(j=w.symptoms)==null?void 0:j.map((P,A)=>a.jsx("span",{className:"px-2 py-1 bg-stone-100 text-stone-700 text-xs rounded",children:P},A))})]})]}),w.recommendations&&w.recommendations.length>0&&a.jsxs("div",{className:"bg-[#D4AF37]/10 rounded-lg p-4 mt-4",children:[a.jsxs("h4",{className:"font-medium text-stone-900 mb
345-2 flex items-center gap-2",children:[a.jsx(vi,{className:"w-4 h-4 text-[#D4AF37]"}),"Recommended Treatments"]}),a.jsx("ul",{className:"space-y-1",children:w.recommendations.map((P,A)=>a.jsxs("li",{className:"text-sm text-stone-700",children:["• ",P]},A))})]}),w.goals&&w.goals.length>0&&a.jsxs("div",{className:"mt-4",children:[a.jsx("h4",{className:"font-medium text-stone-900 mb-2",children:"Patient Goals"}),a.jsx("div",{className:"text-sm text-stone-600",children:w.goals.join(", ")})]})]})]})},w.id)}),N.length===0&&a.jsxs("div",{className:"text-center py-12",children:[a.jsx(Wn,{className:"w-12 h-12 text-stone-300 mx-auto mb-4"}),a.jsx("p",{className:"text-stone-600",children:"No assessments found"})]})]})]})}):a.jsx("div",{className:"min-h-screen bg-stone-50 flex items-center justify-center p-6",children:a.jsxs(_e,{className:"max-w-md w-full",children:[a.jsxs(vt,{className:"text-center",children:[a.jsx("div",{className:"w-16 h-16 rounded-full bg-stone-100 flex items-center justify-center mx-auto mb-4",children:a.jsx(z1,{className:"w-8 h-8 text-stone-400"})}),a.jsx(xt,{children:"Staff Access Required"})]}),a.jsxs(De,{className:"space-y-4",children:[a.jsx("p",{className:"text-stone-600 text-center",children:"Enter the staff password to access patient assessments."}),a.jsxs("form",{onSubmit:p,className:"space-y-4",children:[a.jsxs("div",{children:[a.jsx(it,{type:"password",placeholder:"Staff Password",value:c,onChange:w=>{d(w.target.value),m(!1)},className:f?"border-red-500":""}),f&&a.jsx("p",{className:"text-red-500 text-sm mt-2",children:"Incorrect password"})]}),a.jsx(ae,{type:"submit",className:"w-full bg-[#D4AF37] hover:bg-[#C19B2E]",children:"Access Dashboard"})]})]})]})})}const rl="https://lush.myaestheticrecord.com/online-booking/v2/book-appointment",QO=[{name:"Botox & Dysport",description:"Smooth wrinkles and prevent new lines with neurotoxin injections",duration:"15-30 min",price:"$250-500",benefits:["Smooths forehead lines","Reduces crow's feet","Softens frown lines","Natural-looking results","No downtime"]},{name:"Dermal Fillers",description:"Restore volume, define contours, and enhance facial features",duration:"30-45 min",price:"$600-1200",benefits:["Volume restoration","Cheek enhancement","Jawline definition","Under-eye hollows","Immediate results"]},{name:"LUSH Lips",description:"Our signature lip enhancement technique for natural, beautiful results",duration:"30-45 min",price:"$700",benefits:["Natural-looking fullness","Precise enhancement","Enhanced definition","Expert technique","Beautiful balance"]}],XO=[{name:"Chemical Peels",description:"Medical-grade exfoliation for glowing, renewed skin",duration:"30-45 min",price:"$175-350",benefits:["Brighter complexion","Even skin tone","Smoother texture","Reduced sun damage","Youthful glow"]},{name:"Customized Facials",description:"Personalized facial treatments tailored to your unique skin needs",duration:"60 min",price:"$125-250",benefits:["Deep cleansing","Hydration","Relaxation","Customized care","Glowing results"]},{name:"PRP Hair Restoration",description:"Stimulate hair growth and thickness with platelet-rich plasma therapy",duration:"60 min",price:"$600-1000",benefits:["Natural regrowth","Thicker hair","Stimulates follicles","Safe and effective","Visible results"]}],Ib="https://media.base44.com/images/public/6951d4c5f53c7bd92a68d780/2910da53f_Latisse_5ml.jpg",JO=[{name:"✨ LUSH Lashes Bundle",description:"Our signature lash package — combines FDA-approved Latisse prescription with a professional lash lift and tint for the ultimate lash transformation. Grow your lashes fuller, longer, and darker while keeping them perfectly lifted and defined.",duration:"Initial appt + ongoing Latisse",price:"Bundle pricing — contact us",badge:"Most Popular",benefits:["Latisse prescription (FDA approved)","Professional lash lift included","Lash tint included","Fuller, longer, darker lashes","Results in as little as 16 weeks"],image:Ib,beforeAfter:[]},{name:"Latisse® (Prescription)",description:"The ONLY FDA-approved prescription treatment proven to grow eyelashes fuller, longer, and darker. Unlike over-the-counter products that only condition lashes, Latisse actually grows them — with clinically proven results in 16 weeks. Available exclusively in-clinic with a prescription.",duration:"16 weeks for full results",price:"In-clinic prescription only",badge:"FDA Approved Rx",benefits:["FDA approved since 2008","Grows fuller, longer, darker lashes","Clinically proven in 16 weeks","Only prescription lash growth available","Prescription required — available in-cl
345inic"],image:Ib,beforeAfter:[]},{name:"Lash Lift",description:"A semi-permanent treatment that lifts and curls your natural lashes from root to tip, creating wide-open, beautifully curled lashes without extensions — no maintenance needed.",duration:"45-60 min",price:"Contact for pricing",benefits:["Lifted, curled natural lashes","No extensions required","Long-lasting results (6-8 weeks)","Waterproof & low maintenance","Makes eyes look larger"],beforeAfter:[{before:"https://images.unsplash.com/photo-1631274465009-c2e3e5caa7b6?w=400&q=80",after:"https://images.unsplash.com/photo-1512290923902-8a9f81dc236c?w=400&q=80",label:"Lash Lift"}]},{name:"Lash Tint",description:"Darken and define your natural lashes with a semi-permanent dye — perfect on its own or paired with a lash lift for maximum impact. Wake up with dark, defined lashes every day.",duration:"30 min",price:"Contact for pricing",benefits:["Darker, defined lashes","No mascara needed","Pairs perfectly with lash lift","Long-lasting (4-6 weeks)","Natural-looking results"],beforeAfter:[]},{name:"Brow Waxing",description:"Precise shaping and cleanup to give your brows a clean, polished look that frames your face beautifully.",duration:"15-20 min",price:"Contact for pricing",benefits:["Clean, defined shape","Removes stray hairs","Expert brow mapping","Long-lasting results","Frames the face"],beforeAfter:[]},{name:"Brow Lamination",description:"The ultimate brow treatment — straightens, lifts, and sets brow hairs in place for a full, fluffy, feathered look that stays all day. Perfect for unruly, sparse, or downward-growing brows.",duration:"45-60 min",price:"Contact for pricing",benefits:["Fluffy, feathered brow look","Covers sparse areas","Lasts 6-8 weeks","No daily styling needed","Fuller-looking brows"],beforeAfter:[{before:"https://images.unsplash.com/photo-1616394584738-fc6e612e71b9?w=400&q=80",after:"https://images.unsplash.com/photo-1604881988758-f76ad2f7aac1?w=400&q=80",label:"Brow Lamination"}]},{name:"Brow Tinting",description:"Fill in, define, and darken your brows with a semi-permanent dye matched to your natural color — creating the look of fuller, more defined brows instantly.",duration:"20-30 min",price:"Contact for pricing",benefits:["Fuller-looking brows","Fills in sparse areas","Lasts 4-6 weeks","Customized color match","Pairs with lamination"],beforeAfter:[]}];function ZO({item:e}){return a.jsx("div",{className:"rounded-2xl overflow-hidden border border-stone-200 shadow-sm",children:a.jsxs("div",{className:"grid grid-cols-2",children:[a.jsxs("div",{className:"relative",children:[a.jsx("img",{src:e.before,alt:"Before",className:"w-full h-48 object-cover",onError:t=>{t.target.style.display="none"}}),a.jsx("div",{className:"absolute bottom-0 left-0 right-0 bg-black/60 text-white text-xs text-center py-1.5 font-medium",children:"Before"})]}),a.jsxs("div",{className:"relative",children:[a.jsx("img",{src:e.after,alt:"After",className:"w-full h-48 object-cover",onError:t=>{t.target.style.display="none"}}),a.jsx("div",{className:"absolute bottom-0 left-0 right-0 bg-[#D4AF37]/80 text-white text-xs text-center py-1.5 font-medium",children:"After"})]})]})})}function Bb({service:e}){return a.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"bg-white rounded-2xl p-6 shadow-md hover:shadow-xl transition-all duration-300 flex flex-col",children:[a.jsx("h3",{className:"text-lg font-medium text-stone-900 mb-2",children:e.name}),a.jsx("p",{className:"text-stone-600 text-sm mb-4 leading-relaxed flex-1",children:e.description}),a.jsxs("div",{className:"flex items-center gap-4 mb-4 text-sm text-stone-500",children:[a.jsxs("span",{children:["⏱️ ",e.duration]}),a.jsxs("span",{children:["💰 ",e.price]})]}),a.jsx("div",{className:"space-y-1.5 mb-5",children:e.benefits.map(t=>a.jsxs("div",{className:"flex items-center gap-2 text-sm text-stone-700",children:[a.jsx("div",{className:"w-1.5 h-1.5 rounded-full bg-[#D4AF37] flex-shrink-0"}),t]},t))}),a.jsx("a",{href:rl,target:"_blank",rel:"noopener noreferrer",children:a.jsxs(ae,{className:"w-full bg-black hover:bg-[#D4AF37] text-white transition-colors",children:["Book Now ",a.jsx(qe,{className:"w-3.5 h-3.5 ml-2"})]})})]})}function e6({service:e,index:t}){const n=e.beforeAfter&&e.beforeAfter.length>0;return a.jsxs(Z.div,{initial:{opacity:0,y:20}
345,animate:{opacity:1,y:0},transition:{delay:t*.07},className:"bg-white rounded-2xl overflow-hidden shadow-md hover:shadow-xl transition-all duration-300",children:[e.image&&!n&&a.jsx("div",{className:"h-52 overflow-hidden bg-stone-100",children:a.jsx("img",{src:e.image,alt:e.name,className:"w-full h-full object-contain p-4"})}),n&&a.jsx("div",{className:"p-4 pb-0",children:e.beforeAfter.map((s,i)=>a.jsx(ZO,{item:s},i))}),a.jsxs("div",{className:"p-6",children:[e.badge&&a.jsx(pt,{className:"bg-[#D4AF37] text-black border-0 text-xs mb-2",children:e.badge}),a.jsx("h3",{className:"text-lg font-medium text-stone-900 mb-2",children:e.name}),a.jsx("p",{className:"text-stone-600 text-sm mb-4 leading-relaxed",children:e.description}),a.jsxs("div",{className:"flex items-center gap-4 mb-4 text-sm text-stone-500",children:[a.jsxs("span",{children:["⏱️ ",e.duration]}),a.jsxs("span",{children:["💰 ",e.price]})]}),a.jsx("div",{className:"space-y-1.5 mb-5",children:e.benefits.map(s=>a.jsxs("div",{className:"flex items-center gap-2 text-sm text-stone-700",children:[a.jsx("div",{className:"w-1.5 h-1.5 rounded-full bg-[#D4AF37] flex-shrink-0"}),s]},s))}),a.jsx("a",{href:rl,target:"_blank",rel:"noopener noreferrer",children:a.jsxs(ae,{className:"w-full bg-black hover:bg-[#D4AF37] text-white transition-colors",children:["Book Now ",a.jsx(qe,{className:"w-3.5 h-3.5 ml-2"})]})})]})]})}function t6(){return a.jsx("div",{className:"min-h-screen bg-stone-50 py-12 px-6",children:a.jsxs("div",{className:"max-w-6xl mx-auto",children:[a.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center mb-14",children:[a.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 rounded-full bg-[#D4AF37]/10 border border-[#D4AF37]/20 text-sm text-stone-700 mb-6",children:[a.jsx(Me,{className:"w-4 h-4 text-[#D4AF37]"}),"Aesthetic Treatments"]}),a.jsx("h1",{className:"text-3xl md:text-5xl font-light text-stone-900 mb-4",children:"Look & Feel Your Best"}),a.jsx("p",{className:"text-stone-600 text-lg max-w-2xl mx-auto",children:"Medical-grade aesthetic treatments delivered by expert providers in a luxurious environment"})]}),a.jsx(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"rounded-3xl overflow-hidden mb-14 shadow-2xl shadow-stone-300/40",children:a.jsxs("div",{className:"grid md:grid-cols-2",children:[a.jsxs("div",{className:"bg-gradient-to-br from-stone-900 to-black p-8 md:p-12 flex flex-col justify-center",children:[a.jsx(pt,{className:"bg-[#D4AF37] text-black border-0 w-fit mb-4 text-xs font-semibold uppercase tracking-wider",children:"Our Most Transformative Treatment"}),a.jsx("h2",{className:"text-2xl md:text-3xl font-light text-white mb-4",children:"Microneedling with PRP"}),a.jsx("p",{className:"text-stone-300 text-sm leading-relaxed mb-6",children:"PRP — platelet-rich plasma drawn from your own blood — supercharges microneedling with a concentrated surge of your body's natural growth factors. The result: dramatically accelerated collagen production, faster healing, and skin transformation that standard microneedling simply can't match."}),a.jsx("div",{className:"space-y-3 mb-8",children:["Up to 40% more collagen than microneedling alone","Uses your own biology — 100% natural","Addresses scars, texture, fine lines & laxity","Faster recovery with reduced redness","Results build for months post-treatment"].map(e=>a.jsxs("div",{className:"flex items-start gap-2 text-sm text-stone-300",children:[a.jsx(ud,{className:"w-4 h-4 text-[#D4AF37] flex-shrink-0 mt-0.5"}),e]},e))}),a.jsx("a",{href:rl,target:"_blank",rel:"noopener noreferrer",children:a.jsxs(ae,{className:"bg-[#D4AF37] hover:bg-[#C19B2E] text-black font-semibold px-8 py-5 rounded-xl w-full md:w-auto",children:["Book Microneedling with PRP",a.jsx(qe,{className:"w-4 h-4 ml-2"})]})})]}),a.jsxs("div",{className:"relative min-h-64",children:[a.jsx("img",{src:"https://images.unsplash.com/photo-1570172619644-dfd03ed5d881?w=800&q=80",alt:"Microneedling treatment",className:"w-full h-full object-cover"}),a.jsx("div",{className:"absolute inset-0 bg-gradient-to-l from-transparent to-black/20"}),a.jsxs("div",{className:"absolute top-4 left-4 bg-white/90 rounded-2xl p-3 shadow-lg max-w-[180px]",children:[a.jsx("p",{className:"text-xs font-semibold text-stone-900 mb
345-0.5",children:"Also available:"}),a.jsx("p",{className:"text-xs text-stone-600",children:"Standard Microneedling & RF Microneedling — ask your provider which is right for you"})]})]})]})}),a.jsx("div",{className:"mb-14",children:a.jsx("div",{className:"grid md:grid-cols-3 gap-5",children:[{name:"Microneedling",description:"Foundational collagen-stimulating treatment for improved texture, reduced pores, and smoother skin.",duration:"45-60 min",price:"$300-500",benefits:["Collagen production","Scar reduction","Pore minimization","Texture improvement"]},{name:"Microneedling with PRP",description:"Your own platelet-rich plasma amplifies results for maximum collagen stimulation and skin renewal.",duration:"60-90 min",price:"$400-700",benefits:["Maximum collagen boost","Natural healing factors","Faster recovery","Superior results","100% natural"]},{name:"RF Microneedling",description:"Radio-frequency energy combined with microneedling for advanced tightening and deep tissue remodeling.",duration:"60 min",price:"$500-900",benefits:["Deep skin tightening","Wrinkle reduction","Collagen remodeling","Long-lasting results"]}].map((e,t)=>a.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:t*.1},className:`rounded-2xl p-6 flex flex-col shadow-md ${e.name==="Microneedling with PRP"?"bg-gradient-to-br from-stone-900 to-stone-800 text-white ring-2 ring-[#D4AF37]":"bg-white"}`,children:[e.name==="Microneedling with PRP"&&a.jsx(pt,{className:"bg-[#D4AF37] text-black border-0 w-fit mb-3 text-xs",children:"Recommended"}),a.jsx("h3",{className:`text-lg font-medium mb-2 ${e.name==="Microneedling with PRP"?"text-white":"text-stone-900"}`,children:e.name}),a.jsx("p",{className:`text-sm mb-4 leading-relaxed flex-1 ${e.name==="Microneedling with PRP"?"text-stone-300":"text-stone-600"}`,children:e.description}),a.jsxs("div",{className:`flex items-center gap-4 mb-4 text-sm ${e.name==="Microneedling with PRP"?"text-stone-400":"text-stone-500"}`,children:[a.jsxs("span",{children:["⏱️ ",e.duration]}),a.jsxs("span",{children:["💰 ",e.price]})]}),a.jsx("div",{className:"space-y-1.5 mb-5",children:e.benefits.map(n=>a.jsxs("div",{className:`flex items-center gap-2 text-sm ${e.name==="Microneedling with PRP"?"text-stone-300":"text-stone-700"}`,children:[a.jsx("div",{className:"w-1.5 h-1.5 rounded-full bg-[#D4AF37] flex-shrink-0"}),n]},n))}),a.jsx("a",{href:rl,target:"_blank",rel:"noopener noreferrer",children:a.jsxs(ae,{className:`w-full ${e.name==="Microneedling with PRP"?"bg-[#D4AF37] hover:bg-[#C19B2E] text-black":"bg-black hover:bg-[#D4AF37] text-white"}`,children:["Book Now ",a.jsx(qe,{className:"w-3.5 h-3.5 ml-2"})]})})]},e.name))})}),a.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"mb-10",children:[a.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[a.jsx(Dp,{className:"w-6 h-6 text-[#D4AF37]"}),a.jsx("h2",{className:"text-2xl font-light text-stone-900",children:"Lashes & Brows"})]}),a.jsx("p",{className:"text-stone-500 mb-8",children:"Define your eyes and frame your face with our expert lash and brow services. Wake up beautiful — no makeup required."}),a.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:JO.map((e,t)=>a.jsx(e6,{service:e,index:t},e.name))})]}),a.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"mb-10",children:[a.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[a.jsx(Me,{className:"w-6 h-6 text-[#D4AF37]"}),a.jsx("h2",{className:"text-2xl font-light text-stone-900",children:"Injectables"})]}),a.jsx("p",{className:"text-stone-500 mb-8",children:"Expert neurotoxin and filler treatments for natural, refreshed results."}),a.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:QO.map((e,t)=>a.jsx(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:t*.07},children:a.jsx(Bb,{service:e})},e.name))})]}),a.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"mb-14",children:[a.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[a.jsx(vE,{className:"w-6 h-6 text-[#D4AF37]"}),a.jsx("h2",{className:"text-2xl font-light text-stone-900",children:"Skin & Hair Treatments"})]}),a.jsx("p",{className:"text-stone-500 mb-8",children:"Medical-grade facials, peels, and PRP hair restoration."}),a.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:XO.map((e,t)=>a.jsx(Z.div,{initial:{opacity:0,y:20}
345,animate:{opacity:1,y:0},transition:{delay:t*.07},children:a.jsx(Bb,{service:e})},e.name))})]}),a.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"bg-gradient-to-br from-black to-stone-900 rounded-3xl p-8 md:p-12 text-center text-white",children:[a.jsx("h2",{className:"text-2xl md:text-3xl font-medium mb-4",children:"Ready to Get Started?"}),a.jsx("p",{className:"text-stone-300 mb-8 max-w-2xl mx-auto",children:"Book your appointment online or take our assessment for a personalized treatment plan"}),a.jsx("div",{className:"flex flex-wrap gap-4 justify-center",children:a.jsx("a",{href:rl,target:"_blank",rel:"noopener noreferrer",children:a.jsxs(ae,{className:"bg-[#D4AF37] hover:bg-[#C19B2E] text-black px-8 py-6 rounded-xl text-lg shadow-lg shadow-[#D4AF37]/20 font-semibold",children:["Book Appointment",a.jsx(qe,{className:"w-5 h-5 ml-2"})]})})})]})]})})}function n6(e,t){const n=k.createContext(t),s=l=>{const{children:c,...d}=l,f=k.useMemo(()=>d,Object.values(d));return a.jsx(n.Provider,{value:f,children:c})};s.displayName=e+"Provider";function i(l){const c=k.useContext(n);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${l}\` must be used within \`${e}\``)}return[s,i]}function Lr(e,t=[]){let n=[];function s(l,c){const d=k.createContext(c),f=n.length;n=[...n,c];const m=g=>{var j;const{scope:x,children:N,...b}=g,w=((j=x==null?void 0:x[e])==null?void 0:j[f])||d,S=k.useMemo(()=>b,Object.values(b));return a.jsx(w.Provider,{value:S,children:N})};m.displayName=l+"Provider";function p(g,x){var w;const N=((w=x==null?void 0:x[e])==null?void 0:w[f])||d,b=k.useContext(N);if(b)return b;if(c!==void 0)return c;throw new Error(`\`${g}\` must be used within \`${l}\``)}return[m,p]}const i=()=>{const l=n.map(c=>k.createContext(c));return function(d){const f=(d==null?void 0:d[e])||l;return k.useMemo(()=>({[`__scope${e}`]:{...d,[e]:f}}),[d,f])}};return i.scopeName=e,[s,s6(i,...t)]}function s6(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const s=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(l){const c=s.reduce((d,{useScope:f,scopeName:m})=>{const g=f(l)[`__scope${m}`];return{...d,...g}},{});return k.useMemo(()=>({[`__scope${t.scopeName}`]:c}),[c])}};return n.scopeName=t.scopeName,n}var r6=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Qe=r6.reduce((e,t)=>{const n=Mo(`Primitive.${t}`),s=k.forwardRef((i,l)=>{const{asChild:c,...d}=i,f=c?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),a.jsx(f,{...d,ref:l})});return s.displayName=`Primitive.${t}`,{...e,[t]:s}},{});function i6(e,t){e&&Up.flushSync(()=>e.dispatchEvent(t))}var Dg="Progress",Mg=100,[o6]=Lr(Dg),[a6,l6]=o6(Dg),UN=k.forwardRef((e,t)=>{const{__scopeProgress:n,value:s=null,max:i,getValueLabel:l=c6,...c}=e;(i||i===0)&&!Vb(i)&&console.error(u6(`${i}`,"Progress"));const d=Vb(i)?i:Mg;s!==null&&!zb(s,d)&&console.error(d6(`${s}`,"Progress"));const f=zb(s,d)?s:null,m=td(f)?l(f,d):void 0;return a.jsx(a6,{scope:n,value:f,max:d,children:a.jsx(Qe.div,{"aria-valuemax":d,"aria-valuemin":0,"aria-valuenow":td(f)?f:void 0,"aria-valuetext":m,role:"progressbar","data-state":HN(f,d),"data-value":f??void 0,"data-max":d,...c,ref:t})})});UN.displayName=Dg;var $N="ProgressIndicator",WN=k.forwardRef((e,t)=>{const{__scopeProgress:n,...s}=e,i=l6($N,n);return a.jsx(Qe.div,{"data-state":HN(i.value,i.max),"data-value":i.value??void 0,"data-max":i.max,...s,ref:t})});WN.displayName=$N;function c6(e,t){return`${Math.round(e/t*100)}%`}function HN(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function td(e){return typeof e=="number"}function Vb(e){return td(e)&&!isNaN(e)&&e>0}function zb(e,t){return td(e)&&!isNaN(e)&&e<=t&&e>=0}function u6(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${Mg}\`.`}function d6(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
346  - a positive number
347  - less than the value passed to \`max\` (or ${Mg} if no \`max\` prop is set)
348  - \`null\` or \`undefined\` if the progress is indeterminate.
349
350Defaulting to \`null\`.`}var qN=UN,h6=WN;const GN=k.forwardRef(({className:e,value:t,...n},s)=>a.jsx(qN,{ref:s,className:Re("relative h-2 w-full overflow-hidden rounded-full bg-primary/20",e),...n,children:a.jsx(h6,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})}));GN.displayName=qN.displayName;var f6="Label",YN=k.forwardRef((e,t)=>
vendor: 17,447 bytes, line 350
350a.jsx(Qe.label,{...e,ref:t,onMouseDown:n=>{var i;n.target.closest("button, input, select, textarea")||((i=e.onMouseDown)==null||i.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));YN.displayName=f6;var KN=YN;const m6=Al("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Ke=k.forwardRef(({className:e,...t},n)=>a.jsx(KN,{ref:n,className:Re(m6(),e),...t}));Ke.displayName=KN.displayName;function nt(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e==null||e(i),n===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}var _r=globalThis!=null&&globalThis.document?k.useLayoutEffect:()=>{},p6=_p[" useInsertionEffect ".trim().toString()]||_r;function Vl({prop:e,defaultProp:t,onChange:n=()=>{},caller:s}){const[i,l,c]=g6({defaultProp:t,onChange:n}),d=e!==void 0,f=d?e:i;{const p=k.useRef(e!==void 0);k.useEffect(()=>{const g=p.current;g!==d&&console.warn(`${s} is changing from ${g?"controlled":"uncontrolled"} to ${d?"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.`),p.current=d},[d,s])}const m=k.useCallback(p=>{var g;if(d){const x=y6(p)?p(e):p;x!==e&&((g=c.current)==null||g.call(c,x))}else l(p)},[d,e,l,c]);return[f,m]}function g6({defaultProp:e,onChange:t}){const[n,s]=k.useState(e),i=k.useRef(n),l=k.useRef(t);return p6(()=>{l.current=t},[t]),k.useEffect(()=>{var c;i.current!==n&&((c=l.current)==null||c.call(l,n),i.current=n)},[n,i]),[n,s,l]}function y6(e){return typeof e=="function"}function v6(e){const t=k.useRef({value:e,previous:e});return k.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function QN(e){const[t,n]=k.useState(void 0);return _r(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const s=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const l=i[0];let c,d;if("borderBoxSize"in l){const f=l.borderBoxSize,m=Array.isArray(f)?f[0]:f;c=m.inlineSize,d=m.blockSize}else c=e.offsetWidth,d=e.offsetHeight;n({width:c,height:d})});return s.observe(e,{box:"border-box"}),()=>s.unobserve(e)}else n(void 0)},[e]),t}function x6(e,t){return k.useReducer((n,s)=>t[n][s]??n,e)}var Ir=e=>{const{present:t,children:n}=e,s=w6(t),i=typeof n=="function"?n({present:s.isPresent}):k.Children.only(n),l=Ht(s.ref,b6(i));return typeof n=="function"||s.isPresent?k.cloneElement(i,{ref:l}):null};Ir.displayName="Presence";function w6(e){const[t,n]=k.useState(),s=k.useRef(null),i=k.useRef(e),l=k.useRef("none"),c=e?"mounted":"unmounted",[d,f]=x6(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return k.useEffect(()=>{const m=yu(s.current);l.current=d==="mounted"?m:"none"},[d]),_r(()=>{const m=s.current,p=i.current;if(p!==e){const x=l.current,N=yu(m);e?f("MOUNT"):N==="none"||(m==null?void 0:m.display)==="none"?f("UNMOUNT"):f(p&&x!==N?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,f]),_r(()=>{if(t){let m;const p=t.ownerDocument.defaultView??window,g=N=>{const w=yu(s.current).includes(CSS.escape(N.animationName));if(N.target===t&&w&&(f("ANIMATION_END"),!i.current)){const S=t.style.animationFillMode;t.style.animationFillMode="forwards",m=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=S)})}},x=N=>{N.target===t&&(l.current=yu(s.current))};return t.addEventListener("animationstart",x),t.addEventListener("animationcancel",g),t.addEventListener("animationend",g),()=>{p.clearTimeout(m),t.removeEventListener("animationstart",x),t.removeEventListener("animationcancel",g),t.removeEventListener("animationend",g)}}else f("ANIMATION_END")},[t,f]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:k.useCallback(m=>{s.current=m?getComputedStyle(m):null,n(m)},[])}}function yu(e){return(e==null?void 0:e.animationName)||"none"}function b6(e){var s,i;let t=(s=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Cd="Checkbox",[k6]=Lr(Cd),[S6,Fg]=k6(Cd);function N6(e){const{__scopeCheckbox:t,checked:n,children:s,defaultChecked:i,disabled:l,form:c,name:d,onCheckedChange:f,required:m,value:p="on",internal_do_not_use_render:g}=e,[x,N]=Vl({prop:n,defaultProp:i??!1,onChange:f,caller:Cd}),[b,w]=k.useState(null),[S,j]=k.useState(null),P=k.useRef(!1),A=b?!!c||!!b.closest("form"):!0,E={checked:x,disabled:l,setChecked:N,control:b,setControl:w,name:d,form:c,value:p,hasConsumerStoppedPropagationRef:P,required:m,defaultChecked:Er(i)?!1:i,isFormControl:A,bubbleInput:S,setBubbleInput:j};return a.jsx(S6,{scope:t,...E,children:j6(g)?g(E):s})}var XN="CheckboxTrigger",JN=k.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...s},i)=>{const{control:l,value:c,disabled:d,checked:f,required:m,setControl:p,setChecked:g,hasConsumerStoppedPropagationRef:x,isFormControl:N,bubbleInput:b}=Fg(XN,e),w=Ht(i,p),S=k.useRef(f);return k.useEffect(()=>{const j=l==null?void 0:l.form;if(j){const P=()=>g(S.current);return j.addEventListener("reset",P),()=>j.removeEventListener("reset",P)}},[l,g]),a.jsx(Qe.button,{type:"button",role:"checkbox","aria-checked":Er(f)?"mixed":f,"aria-required":m,"data-state":sj(f),"data-disabled":d?"":void 0,disabled:d,value:c,...s,ref:w,onKeyDown:nt(t,j=>{j.key==="Enter"&&j.preventDefault()}),onClick:nt(n,j=>{g(P=>Er(P)?!0:!P),b&&N&&(x.current=j.isPropagationStopped(),x.current||j.stopPropagation())})})});JN.displayName=XN;var Og=k.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:s,checked:i,defaultChecked:l,required:c,disabled:d,value:f,onCheckedChange:m,form:p,...g}=e;return a.jsx(N6,{__scopeCheckbox:n,checked:i,defaultChecked:l,disabled:d,required:c,onCheckedChange:m,name:s,form:p,value:f,internal_do_not_use_render:({isFormControl:x})=>a.jsxs(a.Fragment,{children:[a.jsx(JN,{...g,ref:t,__scopeCheckbox:n}),x&&a.jsx(nj,{__scopeCheckbox:n})]})})});Og.displayName=Cd;var ZN="CheckboxIndicator",ej=k.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:s,...i}=e,l=Fg(ZN,n);return a.jsx(Ir,{present:s||Er(l.checked)||l.checked===!0,children:a.jsx(Qe.span,{"data-state":sj(l.checked),"data-disabled":l.disabled?"":void 0,...i,ref:t,style:{pointerEvents:"none",...e.style}})})});ej.displayName=ZN;var tj="CheckboxBubbleInput",nj=k.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:s,hasConsumerStoppedPropagationRef:i,checked:l,defaultChecked:c,required:d,disabled:f,name:m,value:p,form:g,bubbleInput:x,setBubbleInput:N}=Fg(tj,e),b=Ht(n,N),w=v6(l),S=QN(s);k.useEffect(()=>{const P=x;if(!P)return;const A=window.HTMLInputElement.prototype,D=Object.getOwnPropertyDescriptor(A,"checked").set,V=!i.current;if(w!==l&&D){const B=new Event("click",{bubbles:V});P.indeterminate=Er(l),D.call(P,Er(l)?!1:l),P.dispatchEvent(B)}},[x,w,l,i]);const j=k.useRef(Er(l)?!1:l);return a.jsx(Qe.input,{type:"checkbox","aria-hidden":!0,defaultChecked:c??j.current,required:d,disabled:f,name:m,value:p,form:g,...t,tabIndex:-1,ref:b,style:{...t.style,...S,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});nj.displayName=tj;function j6(e){return typeof e=="function"}function Er(e){return e==="indeterminate"}function sj(e){return Er(e)?"indeterminate":e?"checked":"unchecked"}const gs=k.forwardRef(({className:e,...t},n)=>a.jsx(Og,{ref:n,className:Re("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(ej,{className:Re("flex items-center justify-center text-current"),children:a.jsx(Us,{className:"h-4 w-4"})})}));gs.displayName=Og.displayName;var C6=_p[" useId ".trim().toString()]||(()=>{}),A6=0;function fo(e){const[t,n]=k.useState(C6());return _r(()=>{n(s=>s??String(A6++))},[e]),t?`radix-${t}`:""}function bi(e){const t=k.useRef(e);return k.useEffect(()=>{t.current=e}),k.useMemo(()=>(...n)=>{var s;return(s=t.current)==null?void 0:s.call(t,...n)},[])}function P6(e,t=globalThis==null?void 0:globalThis.document){const n=bi(e);k.useEffect(()=>{const s=i=>{i.key==="Escape"&&n(i)};return t.addEventListener("keydown",s,{capture:!0}),()=>t.removeEventListener("keydown",s,{capture:!0})},[n,t])}var E6="DismissableLayer",bp="dismissableLayer.update",T6="dismissableLayer.pointerDownOutside",R6="dismissableLayer.focusOutside",Ub,rj=k.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Lg=k.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:l,onInteractOutside:c,onDismiss:d,...f}=e,m=k.useContext(rj),[p,g]=k.useState(null),x=(p==null?void 0:p.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,N]=k.useState({}),b=Ht(t,B=>g(B)),w=Array.from(m.layers),[S]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),j=w.indexOf(S),P=p?w.indexOf(p):-1,A=m.layersWithOutsidePointerEventsDisabled.size>0,E=P>=j,D=M6(B=>{const L=B.target,ne=[...m.branches].some(Q=>Q.contains(L));!E||ne||(i==null||i(B),c==null||c(B),B.defaultPrevented||d==null||d())},x),V=F6(B=>{const L=B.target;[...m.branches].some(Q=>Q.contains(L))||(l==null||l(B),c==null||c(B),B.defaultPrevented||d==null||d())},x);return P6(B=>{P===m.layers.size-1&&(s==null||s(B),!B.defaultPrevented&&d&&(B.preventDefault(),d()))},x),k.useEffect(()=>{if(p)return n&&(m.layersWithOutsidePointerEventsDisabled.size===0&&(Ub=x.body.style.pointerEvents,x.body.style.pointerEvents="none"),m.layersWithOutsidePointerEventsDisabled.add(p)),m.layers.add(p),$b(),()=>{n&&m.layersWithOutsidePointerEventsDisabled.size===1&&(x.body.style.pointerEvents=Ub)}},[p,x,n,m]),k.useEffect(()=>()=>{p&&(m.layers.delete(p),m.layersWithOutsidePointerEventsDisabled.delete(p),$b())},[p,m]),k.useEffect(()=>{const B=()=>N({});return document.addEventListener(bp,B),()=>document.removeEventListener(bp,B)},[]),a.jsx(Qe.div,{...f,ref:b,style:{pointerEvents:A?E?"auto":"none":void 0,...e.style},onFocusCapture:nt(e.onFocusCapture,V.onFocusCapture),onBlurCapture:nt(e.onBlurCapture,V.onBlurCapture),onPointerDownCapture:nt(e.onPointerDownCapture,D.onPointerDownCapture)})});Lg.displayName=E6;var _6="DismissableLayerBranch",D6=k.forwardRef((e,t)=>{const n=k.useContext(rj),s=k.useRef(null),i=Ht(t,s);return k.useEffect(()=>{const l=s.current;if(l)return n.branches.add(l),()=>{n.branches.delete(l)}},[n.branches]),a.jsx(Qe.div,{...e,ref:i})});D6.displayName=_6;function M6(e,t=globalThis==null?void 0:globalThis.document){const n=bi(e),s=k.useRef(!1),i=k.useRef(()=>{});return k.useEffect(()=>{const l=d=>{if(d.target&&!s.current){let f=function(){ij(T6,n,m,{discrete:!0})};const m={originalEvent:d};d.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=f,t.addEventListener("click",i.current,{once:!0})):f()}else t.removeEventListener("click",i.current);s.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",l)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",l),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>s.current=!0}}function F6(e,t=globalThis==null?void 0:globalThis.document){const n=bi(e),s=k.useRef(!1);return k.useEffect(()=>{const i=l=>{l.target&&!s.current&&ij(R6,n,{originalEvent:l},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}function $b(){const e=new CustomEvent(bp);document.dispatchEvent(e)}function ij(e,t,n,{discrete:s}){const i=n.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),s?i6(i,l):i.dispatchEvent(l)}var om="focusScope.autoFocusOnMount",am="focusScope.autoFocusOnUnmount",Wb={bubbles:!1,cancelable:!0},O6="FocusScope",Ig=k.forwardRef((e,t)=>{const{loop:n=!1,trapped:s=!1,onMountAutoFocus:i,onUnmountAutoFocus:l,...c}=e,[d,f]=k.useState(null),m=bi(i),p=bi(l),g=k.useRef(null),x=Ht(t,w=>f(w)),N=k.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;k.useEffect(()=>{if(s){let w=function(A){if(N.paused||!d)return;const E=A.target;d.contains(E)?g.current=E:mr(g.current,{select:!0})},S=function(A){if(N.paused||!d)return;const E=A.relatedTarget;E!==null&&(d.contains(E)||mr(g.current,{select:!0}))},j=function(A){if(document.activeElement===document.body)for(const D of A)D.removedNodes.length>0&&mr(d)};document.addEventListener("focusin",w),document.addEventListener("focusout",S);const P=new MutationObserver(j);return d&&P.observe(d,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",w),document.removeEventListener("focusout",S),P.disconnect()}}},[s,d,N.paused]),k.useEffect(()=>{if(d){qb.add(N);const w=document.activeElement;if(!d.contains(w)){const j=new CustomEvent(om,Wb);d.addEventListener(om,m),d.dispatchEvent(j),j.defaultPrevented||(L6(U6(oj(d)),{select:!0}),document.activeElement===w&&mr(d))}return()=>{d.removeEventListener(om,m),setTimeout(()=>{const j=new CustomEvent(am,Wb);d.addEventListener(am,p),d.dispatchEvent(j),j.defaultPrevented||mr(w??document.body,{select:!0}),d.removeEventListener(am,p),qb.remove(N)},0)}}},[d,m,p,N]);const b=k.useCallback(w=>{if(!n&&!s||N.paused)return;const S=w.key==="Tab"&&!w.altKey&&!w.ctrlKey&&!w.metaKey,j=document.activeElement;if(S&&j){const P=w.currentTarget,[A,E]=I6(P);A&&E?!w.shiftKey&&j===E?(w.preventDefault(),n&&mr(A,{select:!0})):w.shiftKey&&j===A&&(w.preventDefault(),n&&mr(E,{select:!0})):j===P&&w.preventDefault()}},[n,s,N.paused]);return a.jsx(Qe.div,{tabIndex:-1,...c,ref:x,onKeyDown:b})});Ig.displayName=O6;function L6(e,{select:t=!1}={}){const n=document.activeElement;for(const s of e)if(mr(s,{select:t}),document.activeElement!==n)return}function I6(e){const t=oj(e),n=Hb(t,e),s=Hb(t.reverse(),e);return[n,s]}function oj(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{const i=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||i?NodeFilter.FILTER_SKIP:s.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Hb(e,t){for(const n of e)if(!B6(n,{upTo:t}))return n}function B6(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 V6(e){return e instanceof HTMLInputElement&&"select"in e}function mr(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&V6(e)&&t&&e.select()}}var qb=z6();function z6(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Gb(e,t),e.unshift(t)},remove(t){var n;e=Gb(e,t),(n=e[0])==null||n.resume()}}}function Gb(e,t){const n=[...e],s=n.indexOf(t);return s!==-1&&n.splice(s,1),n}function U6(e){return e.filter(t=>t.tagName!=="A")}var $6="Portal",Bg=k.forwardRef((e,t)=>{var d;const{container:n,...s}=e,[i,l]=k.useState(!1);_r(()=>l(!0),[]);const c=n||i&&((d=globalThis==null?void 0:globalThis.document)==null?void 0:d.body);return c?sT.createPortal(a.jsx(Qe.div,{...s,ref:t}),c):null});Bg.displayName=$6;var lm=0;function aj(){k.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Yb()),document.body.insertAdjacentElement("beforeend",e[1]??Yb()),lm++,()=>{lm===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),lm--}},[])}function Yb(){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 cs=function(){return cs=Object.assign||function(t){for(var n,s=1,i=arguments.length;s<i;s++){n=arguments[s];for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(t[l]=n[l])}return t},cs.apply(this,arguments)};function lj(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,s=Object.getOwnPropertySymbols(e);i<s.length;i++)t.indexOf(s[i])<0&&Object.prototype.propertyIsEnumerable.call(e,s[i])&&(n[s[i]]=e[s[i]]);return n}function W6(e,t,n){if(n||arguments.length===2)for(var s=0,i=t.length,l;s<i;s++)(l||!(s in t))&&(l||(l=Array.prototype.slice.call(t,0,s)),l[s]=t[s]);return e.concat(l||Array.prototype.slice.call(t))}var Fu="right-scroll-bar-position",Ou="width-before-scroll-bar",H6="with-scroll-bars-hidden",q6="--removed-body-scroll-bar-size";function cm(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function G6(e,t){var n=k.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(s){var i=n.value;i!==s&&(n.value=s,n.callback(s,i))}}}})[0];return n.callback=t,n.facade}var Y6=typeof window<"u"?k.useLayoutEffect:k.useEffect,Kb=new WeakMap;function K6(e,t){var n=G6(null,function(s){return e.forEach(function(i){return cm(i,s)})});return Y6(function(){var s=Kb.get(n);if(s){var i=new Set(s),l=new Set(e),c=n.current;
vendor: 4,196 bytes, lines 350-365
350i.forEach(function(d){l.has(d)||cm(d,null)}),l.forEach(function(d){i.has(d)||cm(d,c)})}Kb.set(n,e)},[e]),n}function Q6(e){return e}function X6(e,t){t===void 0&&(t=Q6);var n=[],s=!1,i={read:function(){if(s)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(l){var c=t(l,s);return n.push(c),function(){n=n.filter(function(d){return d!==c})}},assignSyncMedium:function(l){for(s=!0;n.length;){var c=n;n=[],c.forEach(l)}n={push:function(d){return l(d)},filter:function(){return n}}},assignMedium:function(l){s=!0;var c=[];if(n.length){var d=n;n=[],d.forEach(l),c=n}var f=function(){var p=c;c=[],p.forEach(l)},m=function(){return Promise.resolve().then(f)};m(),n={push:function(p){c.push(p),m()},filter:function(p){return c=c.filter(p),n}}}};return i}function J6(e){e===void 0&&(e={});var t=X6(null);return t.options=cs({async:!0,ssr:!1},e),t}var cj=function(e){var t=e.sideCar,n=lj(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var s=t.read();if(!s)throw new Error("Sidecar medium not found");return k.createElement(s,cs({},n))};cj.isSideCarExport=!0;function Z6(e,t){return e.useMedium(t),cj}var uj=J6(),um=function(){},Ad=k.forwardRef(function(e,t){var n=k.useRef(null),s=k.useState({onScrollCapture:um,onWheelCapture:um,onTouchMoveCapture:um}),i=s[0],l=s[1],c=e.forwardProps,d=e.children,f=e.className,m=e.removeScrollBar,p=e.enabled,g=e.shards,x=e.sideCar,N=e.noRelative,b=e.noIsolation,w=e.inert,S=e.allowPinchZoom,j=e.as,P=j===void 0?"div":j,A=e.gapMode,E=lj(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),D=x,V=K6([n,t]),B=cs(cs({},E),i);return k.createElement(k.Fragment,null,p&&k.createElement(D,{sideCar:uj,removeScrollBar:m,shards:g,noRelative:N,noIsolation:b,inert:w,setCallbacks:l,allowPinchZoom:!!S,lockRef:n,gapMode:A}),c?k.cloneElement(k.Children.only(d),cs(cs({},B),{ref:V})):k.createElement(P,cs({},B,{className:f,ref:V}),d))});Ad.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ad.classNames={fullWidth:Ou,zeroRight:Fu};var eL=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function tL(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=eL();return t&&e.setAttribute("nonce",t),e}function nL(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function sL(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var rL=function(){var e=0,t=null;return{add:function(n){e==0&&(t=tL())&&(nL(t,n),sL(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},iL=function(){var e=rL();return function(t,n){k.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},dj=function(){var e=iL(),t=function(n){var s=n.styles,i=n.dynamic;return e(s,i),null};return t},oL={left:0,top:0,right:0,gap:0},dm=function(e){return parseInt(e||"",10)||0},aL=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],s=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[dm(n),dm(s),dm(i)]},lL=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return oL;var t=aL(e),n=document.documentElement.clientWidth,s=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,s-n+t[2]-t[0])}},cL=dj(),mo="data-scroll-locked",uL=function(e,t,n,s){var i=e.left,l=e.top,c=e.right,d=e.gap;return n===void 0&&(n="margin"),`
351  .`.concat(H6,` {
352   overflow: hidden `).concat(s,`;
353   padding-right: `).concat(d,"px ").concat(s,`;
354  }
355  body[`).concat(mo,`] {
356    overflow: hidden `).concat(s,`;
357    overscroll-behavior: contain;
358    `).concat([t&&"position: relative ".concat(s,";"),n==="margin"&&`
359    padding-left: `.concat(i,`px;
360    padding-top: `).concat(l,`px;
361    padding-right: `).concat(c,`px;
362    margin-left:0;
363    margin-top:0;
364    margin-right: `).concat(d,"px ").concat(s,`;
365    `),n==="padding"&&"padding-right: ".concat(d,"px ").concat(s,";
365")].filter(Boolean).join(""),`
366  }
367  
368  .`).concat(Fu,` {
369    right: `).concat(d,"px ").concat(s,`;
370  }
371  
372  .`).concat(Ou,` {
373    margin-right: `).concat(d,"px ").concat(s,`;
374  }
375  
376  .`).concat(Fu," .").concat(Fu,` {
377    right: 0 `).concat(s,`;
378  }
379  
380  .`).concat(Ou," .").concat(Ou,` {
381    margin-right: 0 `).concat(s,`;
382  }
383  
384  body[`).concat(mo,`] {
385    `).concat(q6,": ").concat(d,`px;
386  }
387`)},Qb=function(){var e=parseInt(document.body.getAttribute(mo)||"0",10);return isFinite(e)?e:0},dL=function(){k.useEffect(function(){return document.body.setAttribute(mo,(Qb()+1).toString()),function(){var e=Qb()-1;e<=0?document.body.removeAttribute(mo):document.body.setAttribute(mo,e.toString())}},[])},hL=function(e){var t=e.noRelative,n=e.noImportant,s=e.gapMode,i=s===void 0?"margin":s;dL();var l=k.useMemo(function(){return lL(i)},[i]);return k.createElement(cL,{styles:uL(l,!t,i,n?"":"!important")})},kp=!1;if(typeof window<"u")try{var vu=Object.defineProperty({},"passive",{get:function(){return kp=!0,!0}});window.addEventListener("test",vu,vu),window.removeEventListener("test",vu,vu)}catch{kp=!1}var so=kp?{passive:!1}:!1,fL=function(e){return e.tagName==="TEXTAREA"},hj=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!fL(e)&&n[t]==="visible")},mL=function(e){return hj(e,"overflowY")},pL=function(e){return hj(e,"overflowX")},Xb=function(e,t){var n=t.ownerDocument,s=t;do{typeof ShadowRoot<"u"&&s instanceof ShadowRoot&&(s=s.host);var i=fj(e,s);if(i){var l=mj(e,s),c=l[1],d=l[2];if(c>d)return!0}s=s.parentNode}while(s&&s!==n.body);return!1},gL=function(e){var t=e.scrollTop,n=e.scrollHeight,s=e.clientHeight;return[t,n,s]},yL=function(e){var t=e.scrollLeft,n=e.scrollWidth,s=e.clientWidth;return[t,n,s]},fj=function(e,t){return e==="v"?mL(t):pL(t)},mj=function(e,t){return e==="v"?gL(t):yL(t)},vL=function(e,t){return e==="h"&&t==="rtl"?-1:1},xL=function(e,t,n,s,i){var l=vL(e,window.getComputedStyle(t).direction),c=l*s,d=n.target,f=t.contains(d),m=!1,p=c>0,g=0,x=0;do{if(!d)break;var N=mj(e,d),b=N[0],w=N[1],S=N[2],j=w-S-l*b;(b||j)&&fj(e,d)&&(g+=j,x+=b);var P=d.parentNode;d=P&&P.nodeType===Node.DOCUMENT_FRAGMENT_NODE?P.host:P}while(!f&&d!==document.body||f&&(t.contains(d)||t===d));return(p&&Math.abs(g)<1||!p&&Math.abs(x)<1)&&(m=!0),m},xu=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Jb=function(e){return[e.deltaX,e.deltaY]},Zb=function(e){return e&&"current"in e?e.current:e},wL=function(e,t){return e[0]===t[0]&&e[1]===t[1]},bL=function(e){return`
388  .block-interactivity-`.concat(e,` {pointer-events: none;}
389  .allow-interactivity-`).concat(e,` {pointer-events: all;}
390`)},kL=0,ro=[];function SL(e){var t=k.useRef([]),n=k.useRef([0,0]),s=k.useRef(),i=k.useState(kL++)[0],l=k.useState(dj)[0],c=k.useRef(e);k.useEffect(function(){c.current=e},[e]),k.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var w=W6([e.lockRef.current],(e.shards||[]).map(Zb),!0).filter(Boolean);return w.forEach(function(S){return S.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),w.forEac
vendor: 4,390 bytes, line 390
390h(function(S){return S.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var d=k.useCallback(function(w,S){if("touches"in w&&w.touches.length===2||w.type==="wheel"&&w.ctrlKey)return!c.current.allowPinchZoom;var j=xu(w),P=n.current,A="deltaX"in w?w.deltaX:P[0]-j[0],E="deltaY"in w?w.deltaY:P[1]-j[1],D,V=w.target,B=Math.abs(A)>Math.abs(E)?"h":"v";if("touches"in w&&B==="h"&&V.type==="range")return!1;var L=Xb(B,V);if(!L)return!0;if(L?D=B:(D=B==="v"?"h":"v",L=Xb(B,V)),!L)return!1;if(!s.current&&"changedTouches"in w&&(A||E)&&(s.current=D),!D)return!0;var ne=s.current||D;return xL(ne,S,w,ne==="h"?A:E)},[]),f=k.useCallback(function(w){var S=w;if(!(!ro.length||ro[ro.length-1]!==l)){var j="deltaY"in S?Jb(S):xu(S),P=t.current.filter(function(D){return D.name===S.type&&(D.target===S.target||S.target===D.shadowParent)&&wL(D.delta,j)})[0];if(P&&P.should){S.cancelable&&S.preventDefault();return}if(!P){var A=(c.current.shards||[]).map(Zb).filter(Boolean).filter(function(D){return D.contains(S.target)}),E=A.length>0?d(S,A[0]):!c.current.noIsolation;E&&S.cancelable&&S.preventDefault()}}},[]),m=k.useCallback(function(w,S,j,P){var A={name:w,delta:S,target:j,should:P,shadowParent:NL(j)};t.current.push(A),setTimeout(function(){t.current=t.current.filter(function(E){return E!==A})},1)},[]),p=k.useCallback(function(w){n.current=xu(w),s.current=void 0},[]),g=k.useCallback(function(w){m(w.type,Jb(w),w.target,d(w,e.lockRef.current))},[]),x=k.useCallback(function(w){m(w.type,xu(w),w.target,d(w,e.lockRef.current))},[]);k.useEffect(function(){return ro.push(l),e.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:x}),document.addEventListener("wheel",f,so),document.addEventListener("touchmove",f,so),document.addEventListener("touchstart",p,so),function(){ro=ro.filter(function(w){return w!==l}),document.removeEventListener("wheel",f,so),document.removeEventListener("touchmove",f,so),document.removeEventListener("touchstart",p,so)}},[]);var N=e.removeScrollBar,b=e.inert;return k.createElement(k.Fragment,null,b?k.createElement(l,{styles:bL(i)}):null,N?k.createElement(hL,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function NL(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const jL=Z6(uj,SL);var Vg=k.forwardRef(function(e,t){return k.createElement(Ad,cs({},e,{ref:t,sideCar:jL}))});Vg.classNames=Ad.classNames;var CL=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},io=new WeakMap,wu=new WeakMap,bu={},hm=0,pj=function(e){return e&&(e.host||pj(e.parentNode))},AL=function(e,t){return t.map(function(n){if(e.contains(n))return n;var s=pj(n);return s&&e.contains(s)?s:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},PL=function(e,t,n,s){var i=AL(t,Array.isArray(e)?e:[e]);bu[n]||(bu[n]=new WeakMap);var l=bu[n],c=[],d=new Set,f=new Set(i),m=function(g){!g||d.has(g)||(d.add(g),m(g.parentNode))};i.forEach(m);var p=function(g){!g||f.has(g)||Array.prototype.forEach.call(g.children,function(x){if(d.has(x))p(x);else try{var N=x.getAttribute(s),b=N!==null&&N!=="false",w=(io.get(x)||0)+1,S=(l.get(x)||0)+1;io.set(x,w),l.set(x,S),c.push(x),w===1&&b&&wu.set(x,!0),S===1&&x.setAttribute(n,"true"),b||x.setAttribute(s,"true")}catch(j){console.error("aria-hidden: cannot operate on ",x,j)}})};return p(t),d.clear(),hm++,function(){c.forEach(function(g){var x=io.get(g)-1,N=l.get(g)-1;io.set(g,x),l.set(g,N),x||(wu.has(g)||g.removeAttribute(s),wu.delete(g)),N||g.removeAttribute(n)}),hm--,hm||(io=new WeakMap,io=new WeakMap,wu=new WeakMap,bu={})}},gj=function(e,t,n){n===void 0&&(n="data-aria-hidden");var s=Array.from(Array.isArray(e)?e:[e]),i=CL(e);return i?(s.push.apply(s,Array.from(i.querySelectorAll("[aria-live], script"))),PL(s,i,n,"aria-hidden")):function(){return null}},Pd="Dialog",[yj]=Lr(Pd),[EL,Xn]=yj(Pd),vj=e=>{const{__scopeDialog:t,children:n,open:s,defaultOpen:i,onOpenChange:l,modal:c=!0}=e,d=k.useRef(null),f=k.useRef(null),[m,p]=Vl({prop:s,defaultProp:i??!1,onChange:l,caller:Pd});return a.jsx(EL,{scope:t,triggerRef:d,contentRef:f,contentId:fo(),titleId:fo(),descriptionId:fo(),open:m,onOpenChange:p,onOpenToggle:k.useCallback(()=>p(g=>!g),[p]),modal:c,children:n})};vj.displayName=Pd;var xj="DialogTrigger",TL=k.forwardRef((e,t)=>
vendor: 5,513 bytes, lines 390-394
390{const{__scopeDialog:n,...s}=e,i=Xn(xj,n),l=Ht(t,i.triggerRef);return a.jsx(Qe.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":$g(i.open),...s,ref:l,onClick:nt(e.onClick,i.onOpenToggle)})});TL.displayName=xj;var zg="DialogPortal",[RL,wj]=yj(zg,{forceMount:void 0}),bj=e=>{const{__scopeDialog:t,forceMount:n,children:s,container:i}=e,l=Xn(zg,t);return a.jsx(RL,{scope:t,forceMount:n,children:k.Children.map(s,c=>a.jsx(Ir,{present:n||l.open,children:a.jsx(Bg,{asChild:!0,container:i,children:c})}))})};bj.displayName=zg;var nd="DialogOverlay",kj=k.forwardRef((e,t)=>{const n=wj(nd,e.__scopeDialog),{forceMount:s=n.forceMount,...i}=e,l=Xn(nd,e.__scopeDialog);return l.modal?a.jsx(Ir,{present:s||l.open,children:a.jsx(DL,{...i,ref:t})}):null});kj.displayName=nd;var _L=Mo("DialogOverlay.RemoveScroll"),DL=k.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,i=Xn(nd,n);return a.jsx(Vg,{as:_L,allowPinchZoom:!0,shards:[i.contentRef],children:a.jsx(Qe.div,{"data-state":$g(i.open),...s,ref:t,style:{pointerEvents:"auto",...s.style}})})}),ki="DialogContent",Sj=k.forwardRef((e,t)=>{const n=wj(ki,e.__scopeDialog),{forceMount:s=n.forceMount,...i}=e,l=Xn(ki,e.__scopeDialog);return a.jsx(Ir,{present:s||l.open,children:l.modal?a.jsx(ML,{...i,ref:t}):a.jsx(FL,{...i,ref:t})})});Sj.displayName=ki;var ML=k.forwardRef((e,t)=>{const n=Xn(ki,e.__scopeDialog),s=k.useRef(null),i=Ht(t,n.contentRef,s);return k.useEffect(()=>{const l=s.current;if(l)return gj(l)},[]),a.jsx(Nj,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:nt(e.onCloseAutoFocus,l=>{var c;l.preventDefault(),(c=n.triggerRef.current)==null||c.focus()}),onPointerDownOutside:nt(e.onPointerDownOutside,l=>{const c=l.detail.originalEvent,d=c.button===0&&c.ctrlKey===!0;(c.button===2||d)&&l.preventDefault()}),onFocusOutside:nt(e.onFocusOutside,l=>l.preventDefault())})}),FL=k.forwardRef((e,t)=>{const n=Xn(ki,e.__scopeDialog),s=k.useRef(!1),i=k.useRef(!1);return a.jsx(Nj,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:l=>{var c,d;(c=e.onCloseAutoFocus)==null||c.call(e,l),l.defaultPrevented||(s.current||(d=n.triggerRef.current)==null||d.focus(),l.preventDefault()),s.current=!1,i.current=!1},onInteractOutside:l=>{var f,m;(f=e.onInteractOutside)==null||f.call(e,l),l.defaultPrevented||(s.current=!0,l.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const c=l.target;((m=n.triggerRef.current)==null?void 0:m.contains(c))&&l.preventDefault(),l.detail.originalEvent.type==="focusin"&&i.current&&l.preventDefault()}})}),Nj=k.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:s,onOpenAutoFocus:i,onCloseAutoFocus:l,...c}=e,d=Xn(ki,n),f=k.useRef(null),m=Ht(t,f);return aj(),a.jsxs(a.Fragment,{children:[a.jsx(Ig,{asChild:!0,loop:!0,trapped:s,onMountAutoFocus:i,onUnmountAutoFocus:l,children:a.jsx(Lg,{role:"dialog",id:d.contentId,"aria-describedby":d.descriptionId,"aria-labelledby":d.titleId,"data-state":$g(d.open),...c,ref:m,onDismiss:()=>d.onOpenChange(!1)})}),a.jsxs(a.Fragment,{children:[a.jsx(OL,{titleId:d.titleId}),a.jsx(IL,{contentRef:f,descriptionId:d.descriptionId})]})]})}),Ug="DialogTitle",jj=k.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,i=Xn(Ug,n);return a.jsx(Qe.h2,{id:i.titleId,...s,ref:t})});jj.displayName=Ug;var Cj="DialogDescription",Aj=k.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,i=Xn(Cj,n);return a.jsx(Qe.p,{id:i.descriptionId,...s,ref:t})});Aj.displayName=Cj;var Pj="DialogClose",Ej=k.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,i=Xn(Pj,n);return a.jsx(Qe.button,{type:"button",...s,ref:t,onClick:nt(e.onClick,()=>i.onOpenChange(!1))})});Ej.displayName=Pj;function $g(e){return e?"open":"closed"}var Tj="DialogTitleWarning",[nz,Rj]=n6(Tj,{contentName:ki,titleName:Ug,docsSlug:"dialog"}),OL=({titleId:e})=>{const t=Rj(Tj),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
391
392If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
393
394For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return k.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},LL="DialogDescriptionWarning",IL=({contentRef:e,descriptionId:t})=>{const s=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Rj(LL).contentName}}.`;return k.useEffect(()=>{var l;const i=(l=e.current)==null?void 0:l.getAttribute("aria-describedby");t&&i&&(document.getElementById(t)||console.warn(s))},[s,e,t]),null},BL=vj,VL=bj,_j=kj,Dj=Sj,Mj=jj,Fj=Aj,zL=Ej;const UL=BL,$L=VL,Oj=k.forwardRef(({className:e,...t},n)=>a.jsx(_j,{ref:n,className:Re("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}));Oj.displayName=_j.displayName;const Lj=k.forwardRef(({className:e,children:t,...n},s)=>a.jsxs($L,{children:[a.jsx(Oj,{}),a.jsxs(Dj,{ref:s,className:Re("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rou
394nded-lg",e),...n,children:[t,a.jsxs(zL,{className:"absolute right-4 top-4 rounded-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(Fr,{className:"h-4 w-4"}),a.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Lj.displayName=Dj.displayName;const Ij=({className:e,...t})=>a.jsx("div",{className:Re("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Ij.displayName="DialogHeader";const Bj=k.forwardRef(({className:e,...t},n)=>a.jsx(Mj,{ref:n,className:Re("text-lg font-semibold leading-none tracking-tight",e),...t}));Bj.displayName=Mj.displayName;const WL=k.forwardRef(({className:e,...t},n)=>a.jsx(Fj,{ref:n,className:Re("text-sm text-muted-foreground",e),...t}));WL.displayName=Fj.displayName;const HL=Al("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),il=k.forwardRef(({className:e,variant:t,...n},s)=>a.jsx("div",{ref:s,role:"alert",className:Re(HL({variant:t}),e),...n}));il.displayName="Alert";const qL=k.forwardRef(({className:e,...t},n)=>a.jsx("h5",{ref:n,className:Re("mb-1 font-medium leading-none tracking-tight",e),...t}));qL.displayName="AlertTitle";const ol=k.forwardRef(({className:e,...t},n)=>a.jsx("div",{ref:n,className:Re("text-sm [&_p]:leading-relaxed",e),...t}));ol.displayName="AlertDescription";const GL={aesthetics:[{id:"antiaging",icon:Me,title:"I Want to Look Younger",symptoms:["Fine lines & wrinkles","Sagging skin","Loss of facial volume","Under-eye bags or dark circles","Dull or tired-looking skin","Age spots or sun damage","Thinning lips","Undefined jawline","Neck lines or loose neck skin"]},{id:"facials",icon:Me,title:"Facials, Peels & Skincare",symptoms:["Dull or lackluster skin","I want radiant, glowing skin","Uneven skin tone or texture","Fine lines & wrinkles","Sun damage or age spots","Large pores","Acne or scarring","Dry or dehydrated skin","Oily or congested skin","I want a personalized skincare routine","Redness or sensitivity","Hyperpigmentation or dark spots"]},{id:"injectables",icon:Me,title:"Injectables",symptoms:["Undefined jawline","Double chin","Hollow cheeks","Thin lips","Nasolabial folds","Marionette lines","Under-eye hollowing","Loss of volume"]},{id:"microneedling",icon:Me,title:"Microneedling",symptoms:["Acne scars","Fine lines","Uneven texture","Large pores","Stretch marks","Dull skin","Age spots","Sagging skin"]},{id:"hairloss",icon:ll,title:"Hair Loss Treatment",symptoms:["Thinning hair","Hair loss","Receding hairline","Weak hair growth","Patchy hair loss","Post-pregnancy hair loss","Stress-related hair loss","Age-related thinning"]},{id:"wrinkles",icon:Me,title:"Wrinkles & Lines",symptoms:["Forehead lines","Crow's feet around eyes","Frown lines between brows","Smile lines","Nasolabial folds","Marionette lines","Lip lines","Neck wrinkles"]},{id:"lips",icon:Me,title:"Lip Enhancement",symptoms:["Thin upper lip","Thin lower lip","Lack of definition","Asymmetric lips","Vertical lip lines","Loss of volume","Want more fullness","Desire better shape"]},{id:"microneedling",icon:Me,title:"Microneedling & Skin Renewal",symptoms:["Acne scars","Fine lines & wrinkles","Uneven skin texture","Large pores","Stretch marks","Dull or aging skin","Sun damage or age spots","Skin laxity or sagging","Redness or uneven tone","Post-surgical scarring"]},{id:"lashesbrows",icon:Dp,title:"Lashes, Brows & LUSH Lashes",symptoms:["Want lifted or curled lashes","Want darker, defined lashes","Tired of daily mascara","Short or thin natural lashes","Interested in prescription lash growth (Latisse)","Interested in LUSH Lashes bundle","Want fuller-looking brows","Sparse or thin brows","Unruly or downward brow hairs","Want defined brow shape","Want brow color or tint"]},{id:"hairloss",icon:Me,title:"Hair Loss & Thinning",symptoms:["Thinning hair on scalp","Receding hairline","Hair loss after pregnancy","Stress-related hair loss","Hormone-related thinning","Patchy hair loss","Weak or slow hair growth","Age-related hair thinning","Eyebrow or lash thinning","Diffuse overall thinning"]}],wellness:[{id:"hormones",icon:Ut,title:"Hormone Therapy",symptoms:["Fatigue & low energy","Mood swings","Sleep disturbances","Hot flashes / night sweats","Weight fluctuations","Low libido","Brain fog","Hair thinning","Vaginal dryness or discomfort","Skin changes from hormonal decline","Perimenopause or menopause symptoms","Aging-related hormone decline"]},{id:"menshealth",icon:Xa,title:"Men's Health & Testosterone",symptoms:["Low energy or fatigue","Low testosterone symptoms","Decreased muscle mass","Low libido or sex drive","Mood changes or irritability","Difficulty building muscle","Sports performance & recovery","Men's vitality & endurance","Weight gain around midsection","Brain fog or poor focus"]},{id:"weight",icon:Xa,title:"Weight Loss",symptoms:["Difficulty losing weight","Slow metabolism","Increased appetite","Emotional eating","Stubborn belly fat","Low muscle tone","Energy crashes","Post-meal fatigue"]},{id:"ivvitamins",icon:ll,title:"IV Therapy & Vitamins",symptoms:["Chronic fatigue","Frequent headaches","Dehydration","Weakened immune system","Poor recovery after exercise","Jet lag","Nutrient deficiency","Low energy"]},{id:"jointpain",icon:Ut,title:"Joint Pain Treatment",symptoms:["Joint discomfort","Mobility limitations","Chronic pain","Post-injury recovery","Inflammation","Arthritis symptoms","Athletic performance","Age-related stiffness"]},{id:"redlight",icon:Me,title:"Red Light Therapy",symptoms:["Chronic pain","Inflammation","Slow wound healing","Muscle soreness","Joint stiffness","Skin concerns","Poor recovery","Low energy"]}],primarycare:[{id:"primarycare",icon:Ut,title:"Primary Care",symptoms:["Annual wellness check","Chronic disease management","Diabetes management","High blood pressure","High cholesterol","Thyroid conditions","Health screenings","Ongoing care needs"]}],sickcare:[{id:"sickvisits",icon:Op,title:"Sick Visits",emergencySymptoms:["Chest pain","Shortness of breath","Difficulty speaking","Difficulty swallowing"],symptoms:["Cold or flu symptoms","Fever","Cough or congestion","Sore throat","Ear pain","Urinary symptoms","Nausea or vomiting","Diarrhea","Abdominal pain","Headache","Body aches","Rash or skin irritation"]}],afterhours:[{id:"afterhours",icon:Ut,title:"LUSH After Hours",symptoms:["Planning a bridal party","Looking for a girls night activity","Want a unique party experience","Need group wellness activity","Celebrating a special occasion","Want IV drips for the group","
394Looking for relaxing group experience"]}]};function YL({selectedCategory:e,setSelectedCategory:t,selectedConcern:n,setSelectedConcern:s,selectedSymptoms:i,setSelectedSymptoms:l}){const c=m=>{i.includes(m)?l(i.filter(p=>p!==m)):l([...i,m])},f=(e?GL[e]:[]).find(m=>m.id===n);return a.jsxs("div",{className:"space-y-8",children:[e==="sickcare"&&a.jsxs(il,{className:"bg-red-50 border-red-200",children:[a.jsx(Wn,{className:"h-4 w-4 text-red-600"}),a.jsx(ol,{className:"text-red-800 font-medium",children:"Medical Emergency? Call 911 immediately. This is not monitored for emergencies."})]}),e==="primarycare"&&a.jsxs(il,{className:"bg-blue-50 border-blue-200",children:[a.jsx(Wn,{className:"h-4 w-4 text-blue-600"}),a.jsxs(ol,{className:"text-blue-800",children:[a.jsx("strong",{children:"Note:"}),' If you are currently sick, please select "I am sick" for a sick visit instead. Primary care is for annual exams, chronic disease management, and ongoing wellness care.']})]}),a.jsxs("div",{children:[a.jsx("h3",{className:"text-lg font-medium text-stone-800 mb-4",children:"What brings you to Lush Health today?"}),a.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3",children:[{concernId:"antiaging",category:"aesthetics",label:"I want to look younger",icon:Me},{concernId:"wrinkles",category:"aesthetics",label:"I am getting wrinkles",icon:Me},{concernId:"lips",category:"aesthetics",label:"I want fuller lips",icon:Me},{concernId:"facials",category:"aesthetics",label:"I want to improve my skin",icon:Me},{concernId:"facials",category:"aesthetics",label:"I want radiant, glowing skin",icon:Me},{concernId:"jointpain",category:"wellness",label:"I have joint pain",icon:Ut},{concernId:"primarycare",category:"primarycare",label:"I need a primary care provider",icon:Ut},{concernId:"sickvisits",category:"sickcare",label:"I am sick",icon:Op},{concernId:"ivvitamins",category:"wellness",label:"I want to be more hydrated",icon:ll},{concernId:"weight",category:"wellness",label:"I want to lose weight",icon:ll},{concernId:"hormones",category:"wellness",label:"I want to balance my hormones",icon:Ut},{concernId:"hormones",category:"wellness",label:"I am going through menopause / perimenopause",icon:Ut},{concernId:"hormones",category:"wellness",label:"I have vaginal dryness or intimate health concerns",icon:Ut},{concernId:"menshealth",category:"wellness",label:"Men's health & testosterone support",icon:Xa},{concernId:"menshealth",category:"wellness",label:"I want to improve sports performance & vitality",icon:Xa},{concernId:"menshealth",category:"wellness",label:"I want more energy and endurance",icon:Xa},{concernId:"afterhours",category:"wellness",label:"My friends and I need something to do",icon:Ut},{concernId:"microneedling",category:"aesthetics",label:"I want microneedling / skin renewal",icon:Me},{concernId:"lashesbrows",category:"aesthetics",label:"I want lash or brow services",icon:Dp},{concernId:"hairloss",category:"aesthetics",label:"I have hair loss or thinning",icon:Me}].filter(m=>!e||m.category===e).map((m,p)=>{const g=n===m.concernId;return a.jsxs(Z.button,{onClick:()=>{t(m.category),s(m.concernId),l([])},whileTap:{scale:.98},className:`p-4 rounded-xl border-2 transition-all duration-300 text-left flex items-center gap-3 ${g?"border-[#D4AF37] bg-[#D4AF37]/10 shadow-lg shadow-[#D4AF37]/10":"border-stone-200 bg-white hover:border-[#D4AF37]/30"}`,children:[a.jsx(m.icon,{className:`w-6 h-6 flex-shrink-0 ${g?"text-[#D4AF37]":"text-stone-500"}`}),a.jsx("div",{className:`font-medium text-sm ${g?"text-stone-900":"text-stone-600"}`,children:m.label})]},`${m.label}-${p}`)})})]}),f&&a.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},children:[a.jsx("h3",{className:"text-lg font-medium text-stone-800 mb-4",children:"Which of these symptoms are you experiencing?"}),a.jsx("p",{className:"text-stone-500 text-sm mb-4",children:"Select all that apply"}),e==="sickcare"&&f.emergencySymptoms&&a.jsxs(il,{className:"bg-red-50 border-red-200 mb-4",children:[a.jsx(Wn,{className:"h-4 w-4 text-red-600"}),a.jsxs(ol,{className:"text-red-800",children:[a.jsx("strong",{className:"font-bold",children:"CALL 911 NOW if experiencing:"})," Chest pain, Shortness of breath, Difficulty speaking, or Difficulty swallowing"]})]}),a.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:f.symptoms.map(m=>a.jsxs(Z.button,{onClick:()=>c(m),whileTap:{scale:.98},className:`p-4 rounded-xl border text-left transition-all duration-200 flex items-center justify-between ${i.includes(m)?"border-yellow-600 bg-yellow-50/50 text-stone-900":"border-stone-200 bg-white hover:border-yellow-500/30 text-stone-700"}`,children:[a.jsx("span",{className:"text-sm",children:m}),i.includes(m)&&a.jsx(Us,{className:"w-4 h-4 text-yellow-600"})]},m))})]})]})}const Wg={magnesium:{name:"Magnesium Glycinate",brand:"Pure Encapsulations",category:"Foundational Mineral Support",tagline:"Promotes relaxation, sleep & cellular energy",benefits:["Supports relaxation and sleep quality","Promotes muscle and nerve function","Supports cardiovascular health","Assists cellular energy production"],image:"https://images.unsplash.com/photo-1541781774459-bb2af2f05b55?w=600&q=80",detailImage:"https://images.unsplash.com/photo-1520206183501-b80df61043c2?w=800&q=80",symptoms:["poor sleep","muscle tension","stress anxiety","fatigue","headaches"],goals:["better sleep","stress relief","energy","muscle recovery"],dosing:"200–400 mg daily",timeline:"Sleep improvement in 1–2 weeks; long-term mineral support",howItWorks:"Magnesium glycinate is one of the most bioavailable forms of magnesium. It binds to the calming neurotransmitter GABA, helping quiet the nervous system and prepare the body for deep, restful sleep. It also relaxes smooth muscle throughout the body, easing tension and supporting cardiovascular function.",whoItsFor:"Anyone experiencing stress, muscle tension, poor sleep, fatigue, or headaches — magnesium is one of the most common deficiencies in adults and the benefits are wide-reaching.",providerNote:"Our providers recommend Magnesium Glycinate as a cornerstone supplement for nearly all wellness protocols. It's gentle, well-tolerated, and most people notice a difference in sleep quality within the first week."},zinc:{name:"Zinc 15",brand:"Pure Encapsulations",category:"Foundational Mineral Support",tagline:"Immune function, skin health & hormone balance",benefits:["Supports immune function","Supports skin health","Supports hormone balance","Supports wound healing"],image:"https://images.unsplash.com/photo-1498837167922-ddd27525d352?w=600&q=80",detailImage:"https://images.unsplash.com/photo-1490645935967-10de6ba17061?w=800&q=80",symptoms:["frequent illness","hair thinning","skin issues","poor wound healing"],goals:["immune support","skin health","hormone balance"],dosing:"15–30 mg daily",timeline:"Improved immune resilience in weeks; skin improvement in months",howItWorks:"Zinc is essential for over 300 enzymatic reactions in the body. It plays a critical role in immune cell development, skin repair, and hormone production — particularly testosterone and thyroid hormones. Low zinc is linked to acne, hair thinning, slow healing, and frequent illness.",whoItsFor:"Those who get sick often, have skin issues like acne or slow healing, experience hair thinning, or are working on hormone optimization.",providerNote:"Zinc is often overlooked but incredibly impactful. We recommend 15–30 mg daily — enough to correct deficiency without risk of over-supplementation. Take with food to avoid nausea."},omega3:{name:"OmegaGenics EPA-DHA 1000",brand:"Metagenics",category:"Cardiometabolic Support",tagline:"Heart health, inflammation & brain function",benefits:["Supports heart health","Reduces inflammation","Supports brain function","Supports joint comfort"],image:"https://images.unsplash.com/photo-1535914254981-b5012eebbd15?w=600&q=80",detailImage:"https://images.unsplash.com/photo-1544367567-0f2fcb009e0b?w=800&q=80",symptoms:["j
394oint pain","inflammation","dry skin","brain fog","cardiovascular concerns"],goals:["heart health","reduce inflammation","joint support","brain health"],dosing:"1–2 grams EPA + DHA daily",timeline:"Reduced inflammation in 2–4 weeks; improved lipids in 2–3 months",howItWorks:"EPA and DHA are long-chain omega-3 fatty acids that serve as the building blocks for anti-inflammatory compounds in the body. They're incorporated into cell membranes throughout the brain, heart, and joints — improving flexibility, reducing chronic inflammation, and supporting healthy cholesterol levels.",whoItsFor:"Anyone with joint pain, brain fog, cardiovascular concerns, dry skin, or a diet low in fatty fish. Omega-3s are one of the most broadly studied supplements with consistent evidence behind them.",providerNote:"We recommend pharmaceutical-grade omega-3s like OmegaGenics because purity and concentration matter. Many over-the-counter fish oils don't deliver therapeutic EPA+DHA levels. Take with a fat-containing meal for best absorption."},greens:{name:"EssentiaGreens & Reds",brand:"Designs for Health",category:"Nutrient Density / Antioxidant Support",tagline:"Plant-powered antioxidant & gut health support",benefits:["Supports detoxification pathways","Supports gut health","Supports antioxidant status","Helps increase plant nutrient intake"],image:"https://images.unsplash.com/photo-1490818387583-1baba5e638af?w=600&q=80",detailImage:"https://images.unsplash.com/photo-1610348725531-843dff563e2c?w=800&q=80",symptoms:["fatigue","digestive issues","low vegetable intake"],goals:["detox support","gut health","energy","antioxidant protection"],dosing:"As directed on label",timeline:"Improved digestion and energy within 1–2 weeks",howItWorks:"EssentiaGreens & Reds combines concentrated phytonutrients from fruits, vegetables, and superfoods into one formula. These plant compounds activate the body's detoxification enzymes, feed beneficial gut bacteria, and flood cells with antioxidants that neutralize free radical damage.",whoItsFor:"Those who struggle to eat enough vegetables daily, feel sluggish, or want extra nutritional insurance alongside a busy lifestyle.",providerNote:"Think of greens and reds powders as concentrated plant nutrition. One scoop doesn't replace real vegetables, but it significantly bridges the gap and provides phytonutrients that are hard to get consistently from diet alone."},electrolytes:{name:"Daily Electrolytes",brand:"Thorne",category:"Hydration & Performance",tagline:"Optimal hydration & muscle performance",benefits:["Supports hydration","Supports nerve and muscle function","Supports exercise performance","Supports adrenal health"],image:"https://images.unsplash.com/photo-1559839734-2b71ea197ec2?w=600&q=80",detailImage:"https://images.unsplash.com/photo-1571019613454-1cb2f99b2d8b?w=800&q=80",symptoms:["dehydration","muscle cramps","fatigue","headaches","exercise recovery"],goals:["athletic performance","hydration","energy","muscle recovery"],dosing:"As directed on label",timeline:"Improved hydration and performance within days",howItWorks:"Electrolytes — sodium, potassium, magnesium, and chloride — are minerals that carry electrical charges needed for nerve signals and muscle contractions. When depleted through sweat, stress, or low-carb diets, cells can't function optimally, leading to cramps, brain fog, and fatigue.",whoItsFor:"Active individuals, those on low-carb or keto diets, anyone prone to muscle cramps or afternoon energy crashes, and people in hot climates.",providerNote:"Most people are mildly dehydrated at a cellular level without knowing it. Proper electrolyte balance is foundational — it affects everything from energy to mood to athletic performance."},coq10:{name:"CoQ10 200 mg",brand:"Jarrow",category:"Mitochondrial Energy Support",tagline:"Cellular energy & cardiovascular protection",benefits:["Supports cellular energy production","Supports cardiovascular health","Supports mitochondrial function","Supports antioxidant protection"],image:"https://images.unsplash.com/photo-1476480862126-209bfaa8edc8?w=600&q=80",detailImage:"https://images.unsplash.com/photo-1487452066049-a710f7296400?w=800&q=80",symptoms:["fatigue","cardiovascular concerns","statin use","low energy","aging"],goals:["energy","heart health","longevity","cellular health"],dosing:"200 mg daily",timeline:"Improved energy in 2–4 weeks; cardiovascular support in 2–3 months",howItWorks:"CoQ10 (Coenzyme Q10) is a molecule found in the mitochondria — the energy factories of every cell. It acts as a critical electron carrier in the ATP production chain and is a powerful fat-soluble antioxidant. Natural production declines with age and is dramatically depleted by statin medications.",whoItsFor:"Anyone over 40, those on statin medications (which deplete CoQ10), people experiencing fatigue or cardiovascular concerns, and those focused on longevity.",providerNote:"If you're on a statin, CoQ10 supplementation is essentially non-negotiable. Statins block the same pathway the body uses to make CoQ10, which can cause the muscle aches and fatigue many statin users experience."},astaxanthin:{name:"Astaxanthin 6 mg",brand:"Designs for Health",category:"Antioxidant Longevity Support",tagline:"Powerful antioxidant for skin, eyes & recovery",benefits:["Powerful antioxidant protection","Supports skin health and elasticity","Supports eye health","Supports exercise recovery"],image:"https://images.unsplash.com/photo-1522337360788-8b13dee7a37e?w=600&q=80",detailImage:"https://images.unsplash.com/photo-1510771463146-e89e6e86560e?w=800&q=80",symptoms:["aging skin","sun damage","intense exercise","eye strain"],goals:["skin health","longevity","antioxidant protection","exercise recovery"],dosing:"6 mg daily",timeline:"Improved skin hydration and exercise recovery in 4–8 weeks",howItWorks:"Astaxanthin is a carotenoid pigment found in marine algae and is considered one of the most potent antioxidants in nature — up to 6,000x stronger than vitamin C. It crosses both the blood-brain and blood-retinal barriers, offering protection to brain, eyes, and skin that most antioxidants can't reach.",whoItsFor:"Those focused on anti-aging, skin health, eye health, athletic recovery, and anyone concerned about oxidative stress from exercise or sun exposure.",providerNote:"Astaxanthin is one of our favorite longevity supplements because its antioxidant reach is extraordinary. Most people notice better skin texture and improved exercise recovery within the first month."},nmn:{name:"Liposomal NMN",brand:"Codeage / Designs for Health",category:"NAD+ Support",tagline:"Cellular energy & healthy aging at the source",benefits:["Supports healthy aging","Supports cellular energy","Supports metabolic health","Supports DNA repair pathways"],image:"https://images.unsplash.com/photo-1528715471579-d1bcf0ba5e83?w=600&q=80",detailImage:"https://images.unsplash.com/photo-1506126613408-eca07ce68773?w=800&q=80",symptoms:["fatigue","aging concerns","cognitive decline","metabolic changes"],goals:["longevity","energy","cognitive health","healthy aging"],dosing:"As directed on label",timeline:"Improved energy and metabolic resilience in 2–4 weeks",howItWorks:"NMN (Nicotinamide Mononucleotide) is a precursor to NAD+, a coenzyme that declines dramatically with age. NAD+ is required for energy metabolism, DNA repair, and cellular stress responses. Restoring NAD+ levels via NMN supplementation is one of the most studied longevity strategies.",whoItsFor:"Those focused on longevity, experiencing age-related fatigue or cognitive changes, or anyone over 40 interested in supporting cellular health from the inside out.",providerNote:"Liposomal delivery is key — it dramatically improves how much NMN actually reaches your cells. We recommend liposomal formulations for maximum bioavailability and real-world results."},glutathione:{name:"Liposomal Glutathione",brand:"Quicksilver Scientific",category:"Antioxidant / Detoxification Support",tagline:"The master antioxidant for detox & immune defense",benefits:["Supports detoxification pathways","Supports liver function","Supports immune function","Supports antioxidant protection"],image:"https://images.unsplash.com/photo-1571019613454-1cb2f99b2d8b?w=600&q=80",detailImage:"https://images.unsplash.com/photo-1540189549336-e6e99c3679fe?w=800&q=80",symptoms:["toxin exposure","fatigue","immune challenges","chronic inflammation"],goals:["detox support","immune support","longevity","liver health"],dosing:"As directed on label",timeline:"Improved antioxidant status over 2–6 weeks",howItWorks:"Glutathione is the body's primary antioxidant and detoxification molecule, found in every cell. It neutralizes free radicals, recycles other antioxidants (like Vitamin C and E), and is the liver's main tool for binding and removing toxins. Levels decline with age, stress, and environmental exposures.",whoItsFor:"Anyone dealing with chronic fatigue, frequent illness, high toxic load (medications, alcohol, environmental), liver support needs, or those focused on deep anti-aging and cellular protection.",providerNote:"Oral glutathione used to be considered poorly absorbed — liposomal delivery solves that. Quicksilver Scientific's formulation is among the best we've found for actual cellular uptake."},digestiveEnzymes:{name:"Digestive Enzymes Ultra",brand:"Pure Encapsulations",category:"Digestive Support",tagline:"Optimize digestion & nutrient absorption",benefits:["Supports breakdown of proteins, fats, and carbohydrates","Supports nutrient absorption","Reduces bloating and digestive discomfort"],image:"https://images.unsplash.com/photo-1547592180-85f173990554?w=600&q=80",detailImage:"https://images.unsplash.com/photo-1567620905732-2d1ec7ab7445?w=800&q=80",symptoms:["bloating","gas","heavy feeling after eating","food intolerances"],goals:["gut health","digestive comfort","nutrient absorption"],dosing:"With meals as directed",timeline:"Reduced bloating within days; improved nutrient absorption in 2–4 weeks",howItWorks:"Digestive enzymes are proteins that break down food into absorbable nutrients. As we age (or under stress), enzyme production naturally declines. Taking a broad-spectrum enzyme formula with meals ensures food is fully broken down, reducing the gas, bloating, and discomfort from undigested food fermenting in the gut.",whoItsFor:"Anyone who regularly experiences bloating, gas, heaviness after eating, food sensitivities, or feels their digestion has slowed over time.",providerNote:"Digestive enzymes are a simple, immediate intervention for bloating and digestive discomfort. Many patients notice a significant difference within the first few meals. It's especially helpful if you eat a diverse diet or have a history of digestive issues."},lGlutamine:{name:"L-Glutamine Powder",brand:"Designs for Health",category:"Gut Barrier Support",tagline:"Repair and strengthen the gut lining",benefits:["Supports intestinal lining integrity","Supports gut repair","Supports immune function"],image:"https://images.unsplash.com/photo-1565895405227-31cfa49b5a95?
394w=600&q=80",detailImage:"https://images.unsplash.com/photo-1490818387583-1baba5e638af?w=800&q=80",symptoms:["digestive discomfort","food sensitivities","leaky gut symptoms","bloating"],goals:["gut health","immune support","athletic performance"],dosing:"As directed on label",timeline:"Improved digestive comfort in 2–4 weeks; gut repair in 1–3 months",howItWorks:"L-Glutamine is the most abundant amino acid in the body and the primary fuel source for intestinal cells. It supports the tight junctions that form the gut barrier — the protective lining that prevents undigested food particles and toxins from leaking into the bloodstream (leaky gut). It's also important for muscle recovery and immune cell production.",whoItsFor:"Those with food sensitivities, digestive discomfort, leaky gut symptoms, athletes in heavy training, or anyone recovering from gut-disrupting events like antibiotics or illness.",providerNote:"L-Glutamine is foundational for gut healing protocols. We often pair it with probiotics and digestive enzymes for comprehensive gut restoration."},akkermansia:{name:"Pendulum Akkermansia",brand:"Pendulum",category:"Advanced Microbiome Support",tagline:"Next-generation probiotic for metabolic & gut health",benefits:["Supports metabolic health","Supports gut barrier function","Supports microbiome diversity"],image:"https://images.unsplash.com/photo-1490645935967-10de6ba17061?w=600&q=80",detailImage:"https://images.unsplash.com/photo-1467003909585-2f8a72700288?w=800&q=80",symptoms:["metabolic dysfunction","weight management challenges","digestive issues","microbiome imbalance"],goals:["metabolic health","gut health","weight management"],dosing:"As directed on label",timeline:"Improved microbiome balance over 4–8 weeks",howItWorks:"Akkermansia muciniphila is a keystone gut bacteria species that lives in the mucosal lining of the gut. Research shows it's significantly depleted in people with metabolic disease, obesity, and type 2 diabetes. Restoring Akkermansia levels strengthens the gut barrier and improves metabolic signaling.",whoItsFor:"Those with metabolic concerns, weight management challenges, blood sugar issues, or anyone interested in cutting-edge microbiome science and longevity.",providerNote:"Akkermansia is one of the most exciting probiotic discoveries of the last decade. The research connecting gut microbiome health to metabolic outcomes is compelling — and Pendulum is the only brand with a live, viable Akkermansia supplement."},calocurb:{name:"Calocurb Amarasate",brand:"Calocurb",category:"Appetite Regulation Support",tagline:"Natural GLP-1 activator for appetite control",benefits:["Supports appetite control","Helps reduce food cravings","Supports healthy weight management"],image:"https://images.unsplash.com/photo-1571019613454-1cb2f99b2d8b?w=600&q=80",detailImage:"https://images.unsplash.com/photo-1538805060514-97d9cc17730c?w=800&q=80",symptoms:["frequent hunger","food cravings","difficulty losing weight","portion control challenges"],goals:["weight loss","appetite control","metabolic health"],dosing:"1 hour before meals, twice daily",timeline:"Reduced appetite within days; improved weight management over 1–3 months",howItWorks:"Calocurb contains Amarasate, a concentrated hops bitter extract that activates bitter taste receptors in the small intestine. This triggers the natural release of GLP-1 (glucagon-like peptide-1) — the same satiety hormone targeted by medications like Ozempic — using a 100% plant-based approach. Clinical studies showed a 30% reduction in hunger and 18% reduction in calorie intake.",whoItsFor:"Anyone struggling with appetite control, portion sizes, between-meal cravings, or those looking for a natural complement to a weight loss program.",providerNote:"Calocurb is one of our most recommended weight management tools. It works with your body's own biology rather than suppressing it, making it sustainable and well-tolerated. We carry it exclusively for our patients at Lush Health."},berberine:{name:"Dihydroberberine SR",brand:"Various",category:"Blood Sugar Support",tagline:"Advanced berberine for blood sugar & metabolism",benefits:["Supports healthy blood sugar","Supports insulin sensitivity","Supports metabolic health"],image:"https://images.unsplash.com/photo-1466637574441-749b8f19452f?w=600&q=80",detailImage:"https://images.unsplash.com/photo-1504674900247-0877df9cc836?w=800&q=80",symptoms:["blood sugar fluctuations","insulin resistance","difficulty losing weight","post-meal fatigue"],goals:["blood sugar balance","weight loss","metabolic health"],dosing:"As directed on label",timeline:"Improved blood sugar stability in 2–4 weeks; metabolic improvement in 1–3 months",howItWorks:"Dihydroberber
394ine is a more bioavailable form of berberine that activates AMPK — often called the 'metabolic master switch.' This improves insulin sensitivity, reduces glucose production in the liver, and enhances cellular glucose uptake. It's often compared to metformin in mechanism, but plant-derived.",whoItsFor:"Those with blood sugar fluctuations, insulin resistance, PCOS, difficulty losing weight, or post-meal energy crashes. Also valuable for metabolic health and longevity.",providerNote:"Berberine has some of the most robust clinical evidence of any metabolic supplement. We prefer the dihydroberberine (sustained-release) form for better absorption and fewer digestive side effects compared to standard berberine."},inositol:{name:"Inositol Powder",brand:"Pure Encapsulations",category:"Metabolic & Hormone Support",tagline:"Hormone & insulin balance for women's health",benefits:["Supports insulin sensitivity","Supports ovarian hormone balance","Supports mood and cognitive function"],image:"https://images.unsplash.com/photo-1512621776951-a57141f2eefd?w=600&q=80",detailImage:"https://images.unsplash.com/photo-1493770348161-369560ae357d?w=800&q=80",symptoms:["PCOS symptoms","insulin resistance","irregular cycles","hormonal mood changes"],goals:["hormone balance","metabolic health","women's health","blood sugar balance"],dosing:"As directed on label",timeline:"Improved metabolic markers over 4–8 weeks; cycle improvements in 2–3 months",howItWorks:"Inositol (particularly the myo-inositol and D-chiro-inositol combination) acts as a second messenger in insulin signaling pathways and plays a key role in ovarian FSH signaling. It effectively improves insulin sensitivity and supports follicle development, making it especially powerful for women with PCOS.",whoItsFor:"Women with PCOS, irregular cycles, insulin resistance, hormonal mood changes, or those struggling with fertility concerns.",providerNote:"Inositol is one of the most evidence-backed natural interventions for PCOS and hormonal insulin resistance. We often combine it with our InosiCare formula for a comprehensive approach."},inosicare:{name:"InosiCare",brand:"Lush Health",category:"Hormonal & Metabolic Support",tagline:"Comprehensive PCOS & metabolic hormone formula",benefits:["Supports insulin sensitivity","Supports healthy hormone balance","Promotes metabolic efficiency","Supports ovulatory function"],image:"https://images.unsplash.com/photo-1476480862126-209bfaa8edc8?w=600&q=80",detailImage:"https://images.unsplash.com/photo-1607619662634-3ac55ec0e216?w=800&q=80",symptoms:["PCOS symptoms","stubborn belly fat","irregular cycles","insulin resistance","hormone-related mood changes"],goals:["PCOS support","hormone balance","weight loss","metabolic health"],dosing:"1 scoop (7g) daily",timeline:"Energy and cravings improve in 2–4 weeks; hormone balance in 1–3 months",howItWorks:"InosiCare is Lush Health's proprietary PCOS and metabolic hormone formula combining myo-inositol, D-chiro-inositol, berberine, chromium, and other synergistic nutrients at therapeutic ratios. This combination addresses insulin resistance at multiple levels while supporting healthy LH/FSH ratios and ovulatory function.",whoItsFor:"Women with PCOS, stubborn weight especially around the midsection, irregular cycles, insulin resistance, or any combination of hormonal and metabolic concerns.",providerNote:"InosiCare is our most comprehensive solution for PCOS and hormonal metabolic dysfunction. We designed it to combine the most evidence-backed ingredients into one convenient daily formula."},dhea:{name:"DHEA 10 mg",brand:"Pure Encapsulations",category:"Hormone Precursor Support",tagline:"Energy, vitality & hormone balance support",benefits:["Supports healthy hormone balance","Supports energy and vitality","Supports mood and cognitive function","Supports healthy aging"],image:"https://images.unsplash.com/photo-1535914254981-b5012eebbd15?w=600&q=80",detailImage:"https://images.unsplash.com/photo-1506126613408-eca07ce68773?w=800&q=80",symptoms:["fatigue","low libido","hormone decline","aging concerns"],goals:["hormone balance","energy","healthy aging","vitality"],dosing:"10 mg daily (lab-guided)",timeline:"Improved energy in 2–4 weeks; hormone balance in 1–3 months",howItWorks:"DHEA is a master hormone precursor made primarily in the adrenal glands that converts into testosterone and estrogen as needed by the body. DHEA levels peak in our 20s and decline steadily with age, contributing to fatigue, low libido, mood changes, and reduced vitality.",whoItsFor:"Adults over 40 experiencing age-related hormone decline, low energy, reduced libido, or anyone whose labs show low DHEA-S levels. Always best guided by testing.",providerNote:"We start with a conservative 10 mg dose and adjust based on lab results. DHEA is a hormone — it should always be taken under provider guidance with appropriate testing."},vitex:{name:"Vitex Extract",brand:"Integrative Therapeutics",category:"Female Hormone Balance",tagline:"Natural cycle regulation & progesterone support",benefits:["Supports menstrual cycle regulation","Supports progesterone balance","Supports reproductive health"],image:"https://images.unsplash.com/photo-1515023115689-589c33041d3c?w=600&q=80",detailImage:"https://images.unsplash.com/photo-1490735891913-40897cdaafd1?w=800&q=80",symptoms:["PMS symptoms","irregular cycles","hormone fluctuations","breast tenderness"],goals:["hormone balance","cycle regulation","women's health"],dosing:"As directed on label",timeline:"Cycle regulation support over 1–3 months",howItWorks:"Vitex (chaste tree berry) acts on the pituitary gland to modulate LH and prolactin secretion, indirectly supporting progesterone production and cycle regularity. It's particularly effective for symptoms of luteal phase deficiency — PMS, breast tenderness, irregular cycles, and spotting.",whoItsFor:"Women with PMS, irregular cycles, breast tenderness, spotting, or those with suspected low progesterone or luteal phase insufficiency.",providerNote:"Vitex is one of the most studied herbs for female hormone balance. Consistency is key — it typically takes 1–3 cycles to see full benefit. We often recommend it alongside DIM for comprehensive estrogen/progesterone balance."},dim:{name:"DIM + CDG",brand:"Jarrow",category:"Estrogen Metabol
394ism Support",tagline:"Support healthy estrogen metabolism & detox",benefits:["Supports healthy estrogen metabolism","Supports hormonal detoxification","Supports hormonal balance"],image:"https://images.unsplash.com/photo-1490818387583-1baba5e638af?w=600&q=80",detailImage:"https://images.unsplash.com/photo-1512621776951-a57141f2eefd?w=800&q=80",symptoms:["estrogen dominance","hormonal acne","PMS","breast tenderness"],goals:["hormone balance","estrogen detox","women's health","skin health"],dosing:"As directed on label",timeline:"Improved hormone balance over 4–8 weeks",howItWorks:"DIM (Diindolylmethane) is derived from cruciferous vegetables and supports the liver's Phase 1 and Phase 2 estrogen detoxification. It shifts estrogen metabolism toward less potent, protective forms and away from more aggressive metabolites. CDG (Calcium D-Glucarate) supports Phase 2 liver detox and prevents reabsorption of excreted hormones.",whoItsFor:"Women with estrogen dominance symptoms — PMS, bloating, breast tenderness, hormonal acne, irregular periods, or heavy cycles. Also beneficial for anyone with a family history of estrogen-sensitive conditions.",providerNote:"DIM + CDG is our go-to combination for estrogen detox support. It works best alongside lifestyle changes that reduce estrogen load — minimizing plastics, alcohol, and processed foods."},ashwagandha:{name:"Ashwagandha",brand:"Pure Encapsulations",category:"Adaptogenic Stress Support",tagline:"Adapt to stress & restore hormonal balance",benefits:["Supports stress resilience","Supports cortisol balance","Supports mood and sleep"],image:"https://images.unsplash.com/photo-1545389336-cf090694435e?w=600&q=80",detailImage:"https://images.unsplash.com/photo-1544367567-0f2fcb009e0b?w=800&q=80",symptoms:["chronic stress","fatigue","sleep disturbances","anxiety","cortisol imbalance"],goals:["stress relief","better sleep","hormone balance","energy"],dosing:"As directed on label",timeline:"Improved stress resilience over 2–6 weeks",howItWorks:"Ashwagandha is a clinically studied adaptogen that works primarily by modulating the HPA axis — the stress response system. It lowers cortisol, supports thyroid function, and has been shown to improve sleep quality, anxiety, and even testosterone levels in men. It helps the body become more resilient to stress rather than just blunting the response.",whoItsFor:"Anyone dealing with chronic stress, burnout, anxiety, disrupted sleep, or adrenal fatigue. Also beneficial for athletes and those with demanding lifestyles.",providerNote:"Ashwagandha is our most recommended adaptogen because it has outstanding clinical backing. The KSM-66 extract standardized for withanolides consistently outperforms other forms in research."},melatonin:{name:"Melatonin SR",brand:"Pure Encapsulations",category:"Sleep Cycle Support",tagline:"Gentle sustained-release for deep, restful sleep",benefits:["Supports healthy sleep onset","Supports circadian rhythm balance","Supports restful sleep"],image:"https://images.unsplash.com/photo-1519003722824-194d4455a60c?w=600&q=80",detailImage:"https://images.unsplash.com/photo-1541781774459-bb2af2f05b55?w=800&q=80",symptoms:["difficulty falling asleep","irregular sleep patterns","jet lag","night waking"],goals:["better sleep","sleep onset","circadian balance"],dosing:"As directed on label, before bed",timeline:"Improved sleep onset within first few nights",howItWorks:"Sustained-release melatonin provides a gradual, physiological dose that mirrors the body's natural melatonin curve — helping with both falling asleep and staying asleep throughout the night. Unlike high-dose melatonin that can cause grogginess, SR melatonin maintains receptors and avoids tolerance.",whoItsFor:"Those with difficulty falling or staying asleep, shift workers, frequent travelers dealing with jet lag, or anyone whose circadian rhythm has been disrupted.",providerNote:"We recommend SR (sustained-release) melatonin at low doses rather than the 5–10 mg products at most pharmacies. More is not better with melatonin — the goal is physiological support, not sedation."},lTheanine:{name:"L-Theanine",brand:"Pure Encapsulations",category:"Relaxation Support",tagline:"Calm focus & relaxation without sedation",benefits:["Promotes relaxation without sedation","Supports stress reduction","Supports improved sleep quality"],image:"https://images.unsplash.com/photo-1544367567-0f2fcb009e0b?w=600&q=80",detailImage:"https://images.unsplash.com/photo-1556909172-54557c7e4fb7?w=800&q=80",symptoms:["racing thoughts","stress","anxiety","difficulty relaxing"],goals:["stress relief","better sleep","focus","calm"],dosing:"100–200 mg as needed",timeline:"Improved relaxation within hours to days",howItWorks:"L-Theanine is an amino acid found naturally in green tea that promotes alpha brain wave activity — the state associated with calm alertness. It counteracts the anxious edge of stress and caffeine while enhancing focus and clarity. At higher doses taken before bed, it reduces mental chatter and improves sleep quality.",whoItsFor:"Those with anxiety, racing thoughts, difficulty winding down, or anyone looking for calm focus without sedation. Often paired with caffeine for clean, jitter-free energy.",providerNote:"L-Theanine is one of the most safe and well-tolerated o
394ptions for anxiety and stress. We often recommend it as an immediate, as-needed tool for high-stress moments or to improve sleep onset."},glycine:{name:"Glycine Powder",brand:"Designs for Health",category:"Sleep and Nervous System Support",tagline:"Deeper, more restorative sleep",benefits:["Supports deeper sleep","Supports nervous system relaxation","Supports metabolic health"],image:"https://images.unsplash.com/photo-1520206183501-b80df61043c2?w=600&q=80",detailImage:"https://images.unsplash.com/photo-1519003722824-194d4455a60c?w=800&q=80",symptoms:["light sleep","fragmented sleep","evening restlessness","difficulty deep sleep"],goals:["better sleep","sleep quality","recovery"],dosing:"3 g before bed",timeline:"Improved sleep quality within days",howItWorks:"Glycine is an inhibitory amino acid that acts on NMDA receptors and glycine receptors in the brain, lowering core body temperature at night — a key trigger for deep sleep. Studies show 3g of glycine before bed significantly improves subjective sleep quality, reduces daytime sleepiness, and supports memory consolidation.",whoItsFor:"Those with light or fragmented sleep, trouble reaching deep sleep stages, or waking unrefreshed. Also beneficial for cognitive performance through improved sleep architecture.",providerNote:"Glycine is a surprisingly underrated sleep supplement. The research is impressive — it genuinely improves sleep depth without grogginess, and 3g is a very safe dose that's well-tolerated long term."},curcumin:{name:"Curcumin Phytosome",brand:"Thorne",category:"Anti-Inflammatory Joint Support",tagline:"Enhanced absorption curcumin for inflammation & joints",benefits:["Supports healthy inflammatory response","Supports joint comfort","Supports mobility and flexibility"],image:"https://images.unsplash.com/photo-1556909172-54557c7e4fb7?w=600&q=80",detailImage:"https://images.unsplash.com/photo-1571019613454-1cb2f99b2d8b?w=800&q=80",symptoms:["joint stiffness","inflammation","exercise discomfort","arthritis symptoms"],goals:["joint support","reduce inflammation","mobility","pain relief"],dosing:"As directed on label",timeline:"Reduced joint discomfort in 4–8 weeks; improved mobility in 2–3 months",howItWorks:"Curcumin phytosome uses a phospholipid delivery system to dramatically improve bioavailability over standard curcumin — up to 29x better absorption. It inhibits multiple inflammatory pathways (NF-κB, COX-2, LOX) and reduces pro-inflammatory cytokines, making it a comprehensive natural anti-inflammatory.",whoItsFor:"Those with joint pain, stiffness, arthritis, exercise-induced inflammation, or any chronic inflammatory condition.",providerNote:"Standard curcumin from turmeric spice is poorly absorbed — only phytosome or piperine-enhanced forms deliver therapeutic results. Thorne's Meriva curcumin phytosome is among the most clinically validated formulations."},collagen:{name:"Whole Body Collagen",brand:"Designs for Health",category:"Connective Tissue Support",tagline:"Structural support for joints, skin & tendons",benefits:["Supports joint health","Supports tendon and ligament integrity","Supports skin and connective tissue"],image:"https://images.unsplash.com/photo-1571019614242-c5c5dee9f50b?w=600&q=80",detailImage:"https://images.unsplash.com/photo-1571019614242-c5c5dee9f50b?w=800&q=80",symptoms:["joint stiffness","aging skin","hair thinning","tendon strain"],goals:["joint support","skin health","hair health","connective tissue"],dosing:"As directed on label",timeline:"Improved tissue recovery in 4–8 weeks; connective tissue strength in 2–4 months",howItWorks:"Collagen peptides provide the amino acid building blocks (glycine, proline, hydroxyproline) that the body uses to produce new collagen in skin, tendons, cartilage, and bone. They signal fibroblasts — collagen-producing cells — to ramp up production. Results are systemic: joints, skin, hair, and nails all benefit.",whoItsFor:"Those with joint pain, aging skin, hair thinning, active lifestyles with connective tissue demands, or anyone looking for a foundational anti-aging supplement.",providerNote:"Collagen quality varies enormously. We recommend Whole Body Collagen because it's multi-type (Types I, II, and III) covering skin, joints, and gut — not just the single-type formulas common in commercial products."},hyaluronicAcid:{name:"Hyaluronic Acid",brand:"Pure Encapsulations",category:"Joint Lubrication & Skin Hydration",tagline:"Lubricate joints & hydrate skin from within",benefits:["Supports joint lubrication","Supports cartilage hydration","Supports skin hydration"],image:"https://images.unsplash.com/photo-1559181567-c3190ca9be46?w=600&q=80",detailImage:"https://images.unsplash.com/photo-1559181567-c3190ca9be46?w=800&q=80",symptoms:["j
394oint stiffness","dry skin","decreased joint lubrication"],goals:["joint support","skin health","hydration"],dosing:"As directed on label",timeline:"Improved joint comfort and skin hydration in 4–8 weeks",howItWorks:"Hyaluronic acid is a natural molecule that holds up to 1,000x its weight in water. In joints, it acts as a lubricating cushion in synovial fluid. In skin, it fills the space between collagen fibers and draws in moisture. Oral HA is effectively absorbed and distributed to both joints and skin.",whoItsFor:"Those with joint stiffness, dry or aging skin, or anyone wanting to support the moisture-retaining properties of their connective tissue from the inside.",providerNote:"While topical HA is well-known, oral hyaluronic acid is often overlooked. Clinical studies show real improvements in joint comfort and skin elasticity with oral supplementation — we often combine it with collagen for synergistic connective tissue support."},viviscal:{name:"Viviscal Pro Hair Health",brand:"Viviscal",category:"Hair Growth Support",tagline:"Clinically proven hair growth & thickness",benefits:["Supports healthy hair growth","Supports hair thickness","Supports hair follicle health"],image:"https://images.unsplash.com/photo-1522337360788-8b13dee7a37e?w=600&q=80",detailImage:"https://images.unsplash.com/photo-1523264939339-c89f9dadde2e?w=800&q=80",symptoms:["hair thinning","hair loss","brittle hair","slow hair growth"],goals:["hair growth","hair thickness","hair health"],dosing:"As directed on label",timeline:"Hair growth improvements visible over 3–6 months",howItWorks:"Viviscal Pro contains the patented AminoMar marine complex — a combination of shark and mollusk powder that provides the amino acids and glycosaminoglycans needed to nourish hair follicles in the growth phase. Clinical trials show significant increases in hair count and thickness vs. placebo.",whoItsFor:"Those experiencing hair thinning, excessive shedding, brittle hair, or slow growth — whether from hormonal changes, nutritional deficiency, stress, or aging.",providerNote:"Viviscal Pro is the professional-grade version of one of the most clinically studied hair supplements available. We recommend the full 3–6 month commitment because hair growth cycles are slow — patience and consistency yield the best results."},anteAgeVRS:{name:"AnteAGE VRS — Vaginal Rejuvenation System",brand:"AnteAGE",category:"Intimate Wellness",tagline:"Hormone-free vaginal rejuvenation with stem cell growth factors",benefits:["Reduces vaginal dryness & irritation","Restores vaginal wall thickness","Reduces pain with intercourse","Clinically tested by gynecologists","Results in 1–3 months of use"],image:"https://media.base44.com/images/public/6951d4c5f53c7bd92a68d780/1d6d54a8b_AnteAgeVRS.png",detailImage:"https://media.base44.com/images/public/6951d4c5f53c7bd92a68d780/1d6d54a8b_AnteAgeVRS.png",symptoms:["vaginal dryness","menopause","intimate discomfort","hormonal changes"],goals:["intimate health","menopause support","vaginal wellness"],dosing:"As directed — topical application",timeline:"Improvements in dryness and comfort within 1–3 months",howItWorks:"The AnteAGE VRS uses bone marrow stem cell growth factors and cytokines to restore a youthful micro-environment in vaginal tissue. Hyaluronic acid restores native moisture while growth factors reduce inflammation and stimulate the vaginal epithelium to thicken and regenerate — hormone-free.",whoItsFor:"Women experiencing vaginal dryness, discomfort, or pain associated with menopause, perimenopause, or hormonal changes. Safe for women who cannot use hormone-based therapies.",providerNote:"The AnteAGE VRS is one of the most exciting regenerative options we offer for intimate wellness. It's hormone-free, clinically tested, and addresses the root cause rather than just providing temporary moisture. Available on Fullscript or in-clinic at Lush Health.",shopUrl:"https://us.fullscript.com/welcome/lush-health"},kleanIsolate:{name:"Klean Isolate Whey Protein",brand:"Klean Athlete",category:"Performance Protein Support",tagline:"Clean whey protein for muscle recovery & metabolism",benefits:["Supports muscle protein synthesis","Supports recovery after exercise","Provides essential BCAAs","Supports metabolic function & satiety"],image:"https://images.unsplash.com/photo-1593095948071-474c5cc2989d?w=600&q=80",detailImage:"https://images.unsplash.com/photo-1593095948071-474c5cc2989d?w=800&q=80",symptoms:["poor muscle recovery","low protein intake","fatigue","difficulty building muscle"],goals:["athletic performance","muscle recovery","weight management","lean muscle"],dosing:"20–30g per serving; 1–2 scoops depending on goals",timeline:"Improved recovery within days; lean mass changes over 4–8 weeks",howItWorks:"Klean Isolate provides a pure whey protein isolate with essential amino acids and BCAAs — the building blocks the body uses for muscle protein synthesis. After exercise, muscle tissue needs rapid amino acid delivery to initiate repair and growth. Adequate protein intake also preserves lean muscle during weight loss and supports overall metabolic function.",whoItsFor:"Athletes, active individuals, those working on body composition, weight loss patients needing adequate protein, or anyone whose diet falls short on quality protein intake.",providerNote:"Protein is foundational to nearly every wellness goal — muscle, metabolism, satiety, and recovery. Klean Isolate is NSF Certified for Sport, making it a clean, trustworthy option for all patients from athletes to everyday health seekers."},kleanCreatine:{name:"Klean Creatine",brand:"Klean Athlete",category:"Strength & Cellular Energy Support",tagline:"Most researched supplement for strength, power & muscle",benefits:["Supports ATP (cellular energy) production","Improves strength and power output","Supports muscle recovery","Supports cognitive function","Preserves lean muscle"],image:"https://images.unsplash.com/photo-1534438327276-14e5300c3a48?w=600&q=80",detailImage:"https://images.unsplash.com/photo-1534438327276-14e5300c3a48?w=800&q=80",symptoms:["difficulty building muscle","poor exercise performance","fatigue","decreased muscle mass"],goals:["athletic performance","muscle recovery","lean muscle","strength","energy"],dosing:"5 grams once daily — consistency matters more than timing",timeline:"Strength improvements in 2–4 weeks; muscle fullness in 1–2 weeks",howItWorks:"Creatine increases the availability of phosphocreatine in muscle cells, enabling faster regeneration of ATP — the body's primary energy currency during high-intensity effort. This translates to more power output, better performance, and faster recovery between sets. Creatine also draws water into muscle cells (beneficial) and has emerging evidence for cognitive support.",whoItsFor:"Anyone seeking improved strength, exercise performance, or lean muscle — from competitive athletes to aging individuals wanting to preserve muscle mass and cognitive health.",providerNote:"Creatine monohydrate is the single most researched performance supplement in existence. The evidence is overwhelming and consistent. We recommend it not just for athletes but for anyone over 40, as it supports both muscle preservation and emerging cognitive benef
394its."},citraNOX:{name:"CitraNOX",brand:"Integrative Therapeutics",category:"Blood Flow & Endurance Support",tagline:"Nitric oxide support for circulation, performance & sexual health",benefits:["Supports nitric oxide production","Improves blood flow & circulation","Enhances oxygen delivery","Supports exercise endurance","Supports sexual health & erectile function"],image:"https://images.unsplash.com/photo-1571019613576-2b22c76fd955?w=600&q=80",detailImage:"https://images.unsplash.com/photo-1571019613576-2b22c76fd955?w=800&q=80",symptoms:["exercise fatigue","poor endurance","reduced sexual performance","circulation concerns"],goals:["athletic performance","men's vitality","cardiovascular health","energy","sexual health"],dosing:"As directed on label, typically before exercise",timeline:"Improved circulation and performance within 30–60 minutes; sustained benefits with regular use",howItWorks:"CitraNOX uses citrulline and other precursors to boost nitric oxide (NO) — a molecule that relaxes blood vessel walls and dramatically improves blood flow. Enhanced circulation means more oxygen and nutrients reach working muscles during exercise, improving endurance and recovery. NO is also essential for healthy sexual function and erectile response.",whoItsFor:"Endurance athletes, men seeking performance and sexual health support, anyone with fatigue during exercise, or those seeking cardiovascular circulation support.",providerNote:"CitraNOX is a valuable tool for both sports performance and men's health. The nitric oxide pathway is foundational — improved circulation benefits exercise capacity, recovery, cardiovascular health, and sexual performance."},mitocore:{name:"MitoCORE",brand:"Ortho Molecular",category:"Cellular Energy & Recovery Support",tagline:"Mitochondrial support for energy, antioxidants & recovery",benefits:["Supports mitochondrial energy production","Provides antioxidant defense","Supports cellular recovery","Supports metabolic resilience","Reduces exercise-induced oxidative stress"],image:"https://images.unsplash.com/photo-1506126613408-eca07ce68773?w=600&q=80",detailImage:"https://images.unsplash.com/photo-1506126613408-eca07ce68773?w=800&q=80",symptoms:["fatigue","poor recovery","high stress","metabolic dysfunction","aging"],goals:["energy","recovery","longevity","athletic performance","cellular health"],dosing:"As directed on label",timeline:"Improved energy and recovery in 2–4 weeks",howItWorks:"MitoCORE provides a comprehensive mitochondrial support matrix including CoQ10, N-Acetyl Cysteine (NAC), Alpha Lipoic Acid, and B vitamins. These nutrients fuel the electron transport chain — the engine of cellular energy — while simultaneously protecting mitochondria from the oxidative damage produced during energy generation.",whoItsFor:"Those with fatigue, high-stress lifestyles, poor workout recovery, metabolic dysfunction, or anyone focused on longevity and peak cellular performance.",providerNote:"MitoCORE is our go-to for patients who report persistent fatigue despite adequate sleep and nutrition. It addresses energy production at the cellular level — particularly valuable after illness, during heavy training blocks, or as part of a longevity protocol."},pregnenolone:{name:"Pregnenolone 10 mg",brand:"Pure Encapsulations",category:"Hormone Precursor & Cognitive Support",tagline:"Master hormone precursor for balance & cognitive function",benefits:["Supports hormone pathway production","Supports cognitive function & memory","Supports mood balance","Supports estrogen and progesterone balance","Adrenal and stress resilience support"],image:"https://images.unsplash.com/photo-1559757175-5700dde675bc?w=600&q=80",detailImage:"https://images.unsplash.com/photo-1559757175-5700dde675bc?w=800&q=80",symptoms:["brain fog","hormone decline","fatigue","mood changes","aging concerns"],goals:["hormone balance","cognitive health","women's health","healthy aging"],dosing:"10 mg daily (lab-guided)",timeline:"Cognitive and mood improvements in 2–4 weeks; hormone balance in 1–3 months",howItWorks:"Pregnenolone is the master hormone precursor — synthesized from cholesterol and used to produce DHEA, progesterone, cortisol, and other downstream hormones. It also acts directly as a neurosteroid, supporting memory formation, cognitive clarity, and mood regulation. Levels decline significantly with age.",whoItsFor:"Women experiencing hormonal decline, brain fog, memory changes, mood instability, or those in perimenopause or menopause. Best used under provider guidance with hormone testing.",providerNote:"Pregnenolone is an often-overlooked piece of the hormone optimization puzzle. It sits at the very top of the hormone cascade — supporting both sex hormones and the stress axis. We always re
394commend lab-guided dosing."},seabuckthorn:{name:"Seabuckthorn (Sea Buckthorn Oil)",brand:"Sibu / Various",category:"Mucosal Hydration & Intimate Wellness",tagline:"Natural omega-7 support for mucosal and vaginal hydration",benefits:["Supports mucosal tissue hydration","Supports vaginal dryness relief","Rich in omega-7 fatty acids","Supports skin and mucous membrane health","Anti-inflammatory properties"],image:"https://images.unsplash.com/photo-1506543730435-e2c1d4553a84?w=600&q=80",detailImage:"https://images.unsplash.com/photo-1506543730435-e2c1d4553a84?w=800&q=80",symptoms:["vaginal dryness","mucosal dryness","dry eyes","menopause","intimate discomfort"],goals:["intimate health","menopause support","vaginal wellness","mucosal hydration"],dosing:"As directed on label (typically 2 capsules/day)",timeline:"Improved mucosal hydration in 4–8 weeks",howItWorks:"Sea buckthorn oil is one of the richest natural sources of omega-7 fatty acids (palmitoleic acid), which are essential structural components of mucous membranes throughout the body — including vaginal tissue. Omega-7s help maintain the moisture and integrity of mucosal linings, making them valuable for women experiencing dryness from hormonal changes.",whoItsFor:"Women experiencing vaginal dryness, intimate discomfort, dry eyes, or other mucosal dryness symptoms — especially during perimenopause and menopause. Complements the AnteAGE VRS for comprehensive intimate wellness.",providerNote:"Seabuckthorn is an underused gem for intimate wellness. Its omega-7 content directly nourishes mucosal tissue from the inside. We often pair it with the AnteAGE VRS (topical) for a complete inside-out approach to vaginal health."},vaginalProbiotic:{name:"Fem-Dophilus (Vaginal Probiotic)",brand:"Jarrow Formulas",category:"Intimate Microbiome Support",tagline:"Clinically studied probiotic strains for vaginal microbiome balance",benefits:["Supports vaginal microbiome balance","Supports urinary tract health","Reduces risk of yeast & bacterial infections","Supports intimate pH balance","Clinically studied Lactobacillus strains"],image:"https://images.unsplash.com/photo-1567620905732-2d1ec7ab7445?w=600&q=80",detailImage:"https://images.unsplash.com/photo-1567620905732-2d1ec7ab7445?w=800&q=80",symptoms:["vaginal dryness","recurrent infections","intimate discomfort","UTI history","menopause"],goals:["intimate health","vaginal wellness","menopause support","gut health"],dosing:"As directed on label",timeline:"Microbiome balance improvement in 2–4 weeks",howItWorks:"Fem-Dophilus contains two clinically validated Lactobacillus strains (L. rhamnosus GR-1 and L. reuteri RC-14) proven to colonize the vaginal microbiome when taken orally. These strains produce lactic acid and hydrogen peroxide to maintain healthy vaginal pH, crowd out pathogenic bacteria, and reduce the recurrence of yeast infections and bacterial vaginosis.",whoItsFor:"Women with recurrent vaginal infections, UTIs, intimate discomfort, or those experiencing microbiome disruption from antibiotics, hormonal changes, or menopause.",providerNote:"Not all probiotics address vaginal health — strain specificity is critical. Fem-Dophilus is one of the only oral probiotics with strong clinical evidence for vaginal colonization. We recommend it alongside the AnteAGE VRS for comprehensive intimate wellness."},ultraflora:{name:"UltraFlora Healthy Weight",brand:"Metagenics",category:"Probiotic Support",tagline:"Microbiome support for weight & metabolic health",benefits:["Supports gut microbiome balance","Supports metabolic health","Supports healthy weight management"],image:"https://images.unsplash.com/photo-1540189549336-e6e99c3679fe?w=600&q=80",detailImage:"https://images.unsplash.com/photo-1467003909585-2f8a72700288?w=800&q=80",symptoms:["digestive imbalance","weight management challenges","metabolic concerns"],goals:["gut health","weight management","metabolic health"],dosing:"As directed on label",timeline:"Improved digestion in 1–2 weeks; metabolic balance in 1–3 months",howItWorks:"UltraFlora Healthy Weight contains clinically studied strains (including Lactobacillus gasseri) shown to specifically support metabolic health and body composition alongside diet and exercise. The gut microbiome plays a profou
394nd role in metabolism, inflammation, and even appetite regulation.",whoItsFor:"Those with digestive imbalance, weight management challenges, metabolic concerns, or anyone who has recently taken antibiotics and wants to restore healthy gut flora.",providerNote:"Not all probiotics are created equal — strain specificity matters enormously for metabolic outcomes. UltraFlora Healthy Weight is one of the few probiotics with clinical evidence specifically for weight management support."}},Vj={"Poor sleep / insomnia":["magnesium","melatonin","lTheanine","glycine","ashwagandha"],"Fatigue / low energy":["magnesium","coq10","nmn","electrolytes","greens","dhea","ashwagandha"],"Chronic stress / anxiety":["ashwagandha","magnesium","lTheanine"],"Bloating / digestive discomfort":["digestiveEnzymes","lGlutamine","akkermansia","ultraflora"],"Food sensitivities":["lGlutamine","digestiveEnzymes","akkermansia"],"Joint pain / stiffness":["curcumin","collagen","hyaluronicAcid","omega3"],Inflammation:["omega3","curcumin","glutathione","astaxanthin"],"Weight gain / difficulty losing weight":["calocurb","berberine","akkermansia","ultraflora","inosicare"],"Blood sugar fluctuations":["berberine","inositol","inosicare","calocurb"],"Hormone imbalance":["dhea","pregnenolone","vitex","dim","ashwagandha","inositol","inosicare"],"PMS / irregular cycles":["vitex","dim","inositol","inosicare","magnesium"],"Brain fog / cognitive decline":["omega3","nmn","coq10","lTheanine","ashwagandha"],"Hair thinning / loss":["viviscal","collagen","zinc"],"Skin aging / dullness":["collagen","astaxanthin","hyaluronicAcid","zinc"],"Frequent illness / weak immunity":["zinc","glutathione","omega3","greens"],"Muscle tension / cramps":["magnesium","electrolytes"],"Dehydration / exercise fatigue":["electrolytes","magnesium"],"Aging / longevity concerns":["nmn","coq10","astaxanthin","glutathione","collagen"],"Low libido / vitality":["dhea","ashwagandha","zinc"],"PCOS symptoms":["inosicare","inositol","dim","vitex"],"Vaginal dryness / discomfort":["anteAgeVRS","seabuckthorn","vaginalProbiotic","dhea","hyaluronicAcid","omega3"],"Menopause symptoms (hot flashes, night sweats)":["dhea","pregnenolone","ashwagandha","magnesium","anteAgeVRS","seabuckthorn"],"Low testosterone (men)":["dhea","zinc","ashwagandha","kleanCreatine","citraNOX","berberine","omega3","coq10"],"Men's vitality / testosterone support":["dhea","zinc","ashwagandha","kleanCreatine","kleanIsolate","citraNOX","coq10","magnesium","berberine"],"Sports performance / endurance":["kleanIsolate","kleanCreatine","electrolytes","citraNOX","mitocore","magnesium","omega3","coq10","lGlutamine","ashwagandha"],"Perimenopause / menopause symptoms":["dhea","pregnenolone","ashwagandha","magnesium","anteAgeVRS","seabuckthorn","vaginalProbiotic","omega3"],"Aging & longevity":["nmn","coq10","mitocore","astaxanthin","glutathione","collagen","dhea"]},zj={"Better sleep":["magnesium","melatonin","lTheanine","glycine"],"More energy & less fatigue":["coq10","nmn","magnesium","electrolytes","greens"],"Stress relief & calm":["ashwagandha","magnesium","lTheanine"],"Healthy weight management":["calocurb","berberine","akkermansia","ultraflora","inosicare"],"Hormone balance":["dhea","vitex","dim","ashwagandha","inositol","inosicare"],"Gut health & digestion":["digestiveEnzymes","lGlutamine","akkermansia","ultraflora","greens"],"Joint & mobility support":["curcumin","collagen","hyaluronicAcid","omega3"],"Skin health & anti-aging":["collagen","astaxanthin","hyaluronicAcid","zinc"],"Hair growth & thickness":["viviscal","collagen","zinc"],"Heart & cardiovascular health":["omega3","coq10","magnesium"],"Immune system support":["zinc","glutathione","omega3"],"Longevity & healthy aging":["nmn","coq10","astaxanthin","glutathione"],"Blood sugar balance":["berberine","inositol","inosicare"],"Cognitive health & focus":["omega3","nmn","lTheanine","ashwagandha"],"Women's wellness (PCOS, cycles)":["inosicare","inositol","vitex","dim"],"Athletic performance & recovery":["kleanIsolate","kleanCreatine","electrolytes","citraNOX","mitocore","magnesium","omega3","lGlutamine","collagen"],"Me
394n's hormone & testosterone balance":["dhea","zinc","ashwagandha","kleanCreatine","citraNOX","berberine","omega3","coq10"],"Men's vitality & sports performance":["kleanIsolate","kleanCreatine","citraNOX","dhea","zinc","ashwagandha","coq10","electrolytes","lGlutamine"],"Women's intimate & vaginal health":["anteAgeVRS","seabuckthorn","vaginalProbiotic","dhea","hyaluronicAcid","omega3"],"Menopause & hormonal aging support":["anteAgeVRS","seabuckthorn","pregnenolone","dhea","ashwagandha","magnesium","collagen"]},KL="https://us.fullscript.com/welcome/lush-health/store-start",QL="https://lush.myaestheticrecord.com/online-booking/v2/book-appointment";function Uj({supp:e,onClose:t}){return e?a.jsx(Hn,{children:a.jsxs(Z.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 z-50 flex items-end sm:items-center justify-center p-0 sm:p-4",onClick:t,children:[a.jsx("div",{className:"absolute inset-0 bg-black/50 backdrop-blur-sm"}),a.jsxs(Z.div,{initial:{opacity:0,y:60},animate:{opacity:1,y:0},exit:{opacity:0,y:60},transition:{type:"spring",damping:28,stiffness:300},className:"relative bg-white w-full sm:max-w-2xl sm:rounded-3xl overflow-hidden shadow-2xl max-h-[95vh] overflow-y-auto",onClick:n=>n.stopPropagation(),children:[a.jsxs("div",{className:"relative h-56 sm:h-72 overflow-hidden",children:[a.jsx("img",{src:e.detailImage||e.image,alt:e.name,className:"w-full h-full object-cover"}),a.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/70 via-black/20 to-transparent"}),a.jsx("button",{onClick:t,className:"absolute top-4 right-4 w-9 h-9 rounded-full bg-white/90 flex items-center justify-center hover:bg-white transition-colors shadow-md",children:a.jsx(Fr,{className:"w-4 h-4 text-stone-700"})}),a.jsxs("div",{className:"absolute bottom-0 left-0 right-0 p-6",children:[a.jsx(pt,{className:"bg-[#D4AF37] text-white border-0 text-xs mb-2",children:e.category}),a.jsx("h2",{className:"text-2xl font-semibold text-white leading-tight",children:e.name}),a.jsx("p",{className:"text-white/80 text-sm",children:e.brand})]})]}),a.jsxs("div",{className:"p-6 space-y-6",children:[a.jsxs("p",{className:"text-stone-700 text-base italic leading-relaxed",children:['"',e.tagline,'"']}),a.jsxs("div",{children:[a.jsx("h3",{className:"font-semibold text-stone-900 mb-3 text-sm uppercase tracking-wider",children:"Key Benefits"}),a.jsx("ul",{className:"space-y-2",children:e.benefits.map((n,s)=>a.jsxs("li",{className:"flex items-start gap-3",children:[a.jsx("div",{className:"w-5 h-5 rounded-full bg-[#D4AF37]/15 flex items-center justify-center flex-shrink-0 mt-0.5",children:a.jsx(Us,{className:"w-3 h-3 text-[#D4AF37]"})}),a.jsx("span",{className:"text-sm text-stone-700",children:n})]},s))})]}),e.howItWorks&&a.jsxs("div",{className:"bg-stone-50 rounded-2xl p-5",children:[a.jsxs("h3",{className:"font-semibold text-stone-900 mb-2 text-sm uppercase tracking-wider flex items-center gap-2",children:[a.jsx(Me,{className:"w-4 h-4 text-[#D4AF37]"}),"How It Works"]}),a.jsx("p",{className:"text-sm text-stone-600 leading-relaxed",children:e.howItWorks})]}),e.whoItsFor&&a.jsxs("div",{children:[a.jsx("h3",{className:"font-semibold text-stone-900 mb-2 text-sm uppercase tracking-wider",children:"Who It's For"}),a.jsx("p",{className:"text-sm text-stone-600 leading-relaxed",children:e.whoItsFor})]}),a.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[a.jsxs("div",{className:"bg-[#D4AF37]/8 rounded-xl p-4",children:[a.jsx("p",{className:"text-xs text-stone-500 uppercase tracking-wider mb-1",children:"Recommended Dosing"}),a.jsx("p",{className:"text-sm font-medium text-stone-800",children:e.dosing})]}),a.jsxs("div",{className:"bg-stone-50 rounded-xl p-4",children:[a.jsxs("div",{className:"flex items-center gap-1.5 mb-1",children:[a.jsx(Pl,{className:"w-3 h-3 text-stone-400"}),a.jsx("p",{className:"text-xs text-stone-500 uppercase tracking-wider",children:"Timeline"})]}),a.jsx("p",{className:"text-sm font-medium text-stone-800",children:e.timeline})]})]}),e.providerNote&&a.jsxs("div",{className:"border-l-4 border-[#D4AF37] pl-4 py-1",children:[a.jsx("p",{className:"text-xs font-semibold text-[#D4AF37] uppercase tracking-wider mb-1",children:"Provider Note"}),a.jsx("p",{className:"text-sm text-stone-600 italic leading-relaxed",children:e.providerNote})]}),a.jsxs("div",{className:"grid grid-cols-2 gap-3 pt-2",children:[a.jsx("a",{href:e.shopUrl||KL,target:"_blank",rel:"noopener noreferrer",className:"block",children:a.jsxs(ae,{className:"w-full bg-[#D4AF37] hover:bg-[#C19B2E] text-white rounded-xl h-12 text-sm gap-2",children:[a.jsx(Eo,{className:"w-4 h-4"}),"Shop on Fullscript"]})}),a.jsx("a",{href:QL,target:"_blank",rel:"noopener noreferrer",className:"block",children:a.jsxs(ae,{variant:"outline",className:"w-full rounded-xl h-12 text-sm gap-2 border-stone-300",children:[a.jsx(un,{className:"w-4 h-4"}),"Book Consultation"]})})]}),a.jsx("p",{className:"text-xs text-stone-400 text-center pb-2",children:"For personalized dosing and lab-guided protocols, consult one of our Lush Health providers."})]})]})]})}):null}const $j="https://www.circadiaretailer.com/dealer/941637",pr="https://us.fullscript.com/welcome/lush-health",sd="https://lush.myaestheticrecord.com/online-booking/v2/book-appointment",XL={anteAgeSerum:{id:"anteAgeSerum",brand:"AnteAGE",name:"AnteAGE GF Serum",category:"Serum",skinType:"All Skin Types / Aging",description:"Step 1 of the AnteAGE system. A concentrated growth factor serum powered by bone marrow stem cell cytokines that delivers bio-signals to skin cells, stimulating natural repair, collagen production, and renewal. Clinically shown to reduce fine lines, improve texture, and restore radiance.",benefits:["Bone marrow stem cell cytokines","Stimulates collagen production","Reduces fine lines & wrinkles","Improves skin texture & tone","Accelerates natural skin repair"],image:"https://media.base44.com/images/public/6951d4c5f53c7bd92a68d780/9b101fa8b_AnteageSerum.png",shopUrl:pr,shopLabel:"Shop on Fullscript",concerns:["aging","fine lines","wrinkles","texture","dull","brightening","all"]},anteAgeAccelerator:{id:"anteAgeAccelerator",brand:"AnteAGE",name:"AnteAGE GF Accelerator",category:"Serum",skinType:"All Skin Types / Aging",description:"Step 2 of the AnteAGE system. A lightweight, fast-absorbing finishing serum that locks in the growth factors from the Serum and provides additional hydration, antioxidant protection, and barrier support. Used after the Serum morning and evening.",benefits:["Seals in growth factors","Antioxidant protection","
394Lightweight barrier support","Enhanced hydration","Anti-aging finishing step"],image:"https://media.base44.com/images/public/6951d4c5f53c7bd92a68d780/49891ee3f_AnteageAccelerator.png",shopUrl:pr,shopLabel:"Shop on Fullscript",concerns:["aging","fine lines","wrinkles","texture","dull","all"]},anteAgeSerumAndAccelerator:{id:"anteAgeSerumAndAccelerator",brand:"AnteAGE",name:"AnteAGE Serum + Accelerator Bundle",category:"Bundle",skinType:"All Skin Types / Aging",description:"The complete AnteAGE two-step home system. Serum (Step 1) delivers concentrated stem cell growth factors and cytokines; Accelerator (Step 2) seals them in and provides hydration and antioxidant support. Together, they deliver a powerful anti-aging protocol from the comfort of home.",benefits:["Complete 2-step system","Maximum growth factor delivery","Stem cell cytokine technology","Comprehensive anti-aging","AM & PM protocol"],image:"https://media.base44.com/images/public/6951d4c5f53c7bd92a68d780/2a058b773_Anteageserumandaccelerator.png",shopUrl:pr,shopLabel:"Shop on Fullscript",concerns:["aging","fine lines","wrinkles","texture","dull","all"]},anteAgeCleanser:{id:"anteAgeCleanser",brand:"AnteAGE",name:"AnteAGE Cleanser",category:"Cleanser",skinType:"All Skin Types",description:"A gentle yet thorough gel cleanser formulated to remove impurities without disrupting the skin barrier. Prepares skin to receive the maximum benefit of the AnteAGE growth factor system. Sulfate-free and pH-balanced.",benefits:["Sulfate-free gentle formula","pH-balanced","Preserves skin barrier","Preps skin for actives","All skin types"],image:"https://media.base44.com/images/public/6951d4c5f53c7bd92a68d780/18fda4e5c_Anteagecleanser.png",shopUrl:pr,shopLabel:"Shop on Fullscript",concerns:["aging","all","sensitive","dry","acne"]},anteAgeVRS:{id:"anteAgeVRS",brand:"AnteAGE",name:"AnteAGE VRS — Vaginal Rejuvenation System",category:"Intimate Health",skinType:"Intimate Wellness / Menopause",description:"A regenerative vaginal moisturizer harnessing the natural power of bone marrow stem cell growth factors and cytokines to restore a youthful micro-environment. Hormone-free. Clinically tested by gynecologists. The at-home VRS safely restores the vaginal wall using growth factors and cytokines — reducing inflammation while hyaluronic acid restores native moisture. Clinical studies show improvements in dryness, pain, and vaginal epithelium thickness within 1–3 months.",benefits:["Hormone-free vaginal rejuvenation","Reduces vaginal dryness & irritation","Restores vaginal wall thickness","Reduces pain with intercourse","Stem cell growth factors & cytokines","Clinically tested by gynecologists","Reduces stress incontinence symptoms","Results in 1–3 months of use"],image:"https://media.base44.com/images/public/6951d4c5f53c7bd92a68d780/1d6d54a8b_AnteAgeVRS.png",shopUrl:pr,shopLabel:"Shop on Fullscript",concerns:["hormonal","menopause","intimate health","vaginal health","dryness"],intimateHealth:!0}},e1={amandolaMilk:{id:"amandolaMilk",name:"Amandola Milk Cleanser",category:"Cleanser",skinType:"Aging/Repair",description:"A conditioning almond milk cleanser containing lactic acid and mandelic acid that gently exfoliates, hydrates, and brightens rough, uneven-toned skin.",benefits:["Gently exfoliates","Brightens uneven tone","Deeply hydrating","Aging/repair formula"],image:"https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/6951d4c5f53c7bd92a68d780/cabf6f283_AmandolaMilkCleanser.png",concerns:["aging","dull","brightening","dry"]},lipidReplacingGel:{id:"lipidReplacingGel",name:"Lipid Replacing Cleansing Gel",category:"Cleanser",skinType:"All Skin Types",description:"This revitalizing cleanser effectively removes dirt, makeup, and lipids without damaging the skin barrier or denaturing keratin. Best for normal or slightly oily skin.",benefits:["Barrier-safe formula","Removes makeup & impurities","Gentle yet effective","Normal to oily skin"],concerns:["acne","oily","sensitive"]},cleansingGelSalicylic:{id:"cleansingGelSalicylic",name:"Cleansing Gel with Salicylic Acid",category:"Cleanser",skinType:"Acne",description:"A light cleansing gel that lathers into a creamy foam, deep cleansing while beta-hydroxy salicylic acid helps to soften and exfoliate.",benefits:["Deep pore cleansing","Controls acne","Softens & exfoliates","Beta-hydroxy formula"],concerns:["acne","oily","pores"]},nourishCreamCleanser:{id:"nourishCreamCleanser",name:"Nourish Cream Cleanser",category:"Cleanser",skinType:"Sensitive",description:"This cream cleanser gently cleanses and calms the skin while providing deep, lasting moisture and optimizing the skin's barrier function.",benefits:["Ultra-gentle formula","Deep lasting moisture","Barrier optimization","Calming & soothing"],concerns:["sensitive","dry","redness","rosacea"]},vitaminVeilOil:{id:"vitaminVeilOil",name:"Vitamin Veil Cleansing Oil",category:"Cleanser",skinType:"All Skin Types",description:"A unique soybean oil-based, non-foaming cleanser that gently removes makeup, dirt, and surface impurities while leaving an invisible veil of antioxidant ingredients.",benefits:["Dissolves makeup","Antioxidant protection","Non-foaming formula","All skin types"],concerns:["all","makeup removal","aging"]},vitaminCReversal:{id:"vitaminCReversal",name:"Vitamin C Reversal Antioxidant Serum",category:"Serum",skinType:"All Skin Types",description:"This age-defying essential contains the most stable and active form of Vitamin C to increase the firm look of skin and neutralize free radicals. Also contains hyaluronic acid and Vitamin B5.",benefits:["Potent antioxidant","Firms skin","Neutralizes free radicals","Hyaluronic acid + Vitamin B5"],image:"https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/6951d4c5f53c7bd92a68d780/3b46e2673_serum71.png",concerns:["aging","brightening","dull","fine lines","all"]},serum71:{id:"serum71",name:"Serum 71 Renewal Serum",category:"Serum",skinType:"Aging/Repair",description:"A nutrient-rich formulation with a powerful trio of tranexamic, mandelic, and azelaic acids, plus second-generation Beta Glucan and Neodermyl® copper peptide that helps restore skin firmness.",benefits:["Triple-acid brightening blend","Next-gen copper peptide","Restores firmness","Anti-aging renewal"],image:"https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/6951d4c5f53c7bd92a68d780/3b46e2673_serum71.png",concerns:["aging","dull","brightening","pigmentation","firmness"]},radiantBrighteningSerum:{id:"radiantBrighteningSerum",name:"Radiant Brightening Serum",category:"Serum",skinType:"Pigmentation",description:"A lightweight milky serum formulated with antioxidant ingredients to help promote a brighter, more even-looking complexion and reduce the appearance of dark spots and discoloration.",benefits:["Reduces dark spots","Evens complexion","Lightweight milky texture","Antioxidant protection"],concerns:["pigmentation","dark spots","brightening","dull"]},chronoCalm:{id:"chronoCalm",name:"Chrono-Calm Serum",category:"Serum",skinType:"Sensitive",description:"A lightweight water-based hydrating serum that soothes chronically irritated skin and improves the appearance of redness and dilated capillaries.",benefits:["Soothes chronic irritation","Reduces redness","Minim
394izes capillary appearance","Lightweight formula"],concerns:["sensitive","redness","rosacea","irritation"]},myoCytePlus:{id:"myoCytePlus",name:"Myo-Cyte Plus",category:"Serum",skinType:"Aging/Repair",description:"An award-winning serum containing Matrixyl®, Matrixyl® 3000, Snap 8, and Inyline™ that work together to greatly improve the look of expression lines.",benefits:["Reduces expression lines","Multiple peptide complex","Award-winning formula","Visible wrinkle improvement"],concerns:["aging","fine lines","wrinkles"]},counterAGE:{id:"counterAGE",name:"Counter A.G.E.",category:"Serum",skinType:"Aging/Repair",description:"A water-based serum formulated with hyaluronic acid and antioxidant ingredients to help counter the appearance of visible signs of skin aging, supporting smoother, more radiant-looking skin.",benefits:["Hyaluronic acid","Antioxidant rich","Smoothing formula","Radiance boost"],concerns:["aging","dull","dehydration","brightening"]},nighttimeRepairPlus:{id:"nighttimeRepairPlus",name:"Nighttime Repair Plus Retinol Cream",category:"Moisturizer",skinType:"Aging/Repair",description:"This innovative formulation addresses the increased demands of more mature or damaged skin. Contains higher levels of Vitamin A, antioxidants, and peptides than the standard Nighttime Repair.",benefits:["Advanced Vitamin A formula","Higher peptide concentration","For mature/damaged skin","Works with skin's repair cycle"],image:"https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/6951d4c5f53c7bd92a68d780/b5e8d79c2_NighttimeRepairPLUS.png",concerns:["aging","fine lines","wrinkles","mature skin"]},aquaPorin:{id:"aquaPorin",name:"AquaPorin Hydrating Cream",category:"Moisturizer",skinType:"All Skin Types",description:"An award-winning product that hydrates with natural oils to increase skin moisture. With the most effective hydrating agents, this potent cream revitalizes and soothes skin.",benefits:["Award-winning hydration","Natural oils blend","Revitalizes & soothes","Soft, healthy feel"],concerns:["dry","dehydration","all skin types"]},tranquiliCream:{id:"tranquiliCream",name:"Tranquili-Cream",category:"Moisturizer",skinType:"Sensitive",description:"Designed for sensitive, redness-prone skin. Formulated with hydrating and soothing ingredients to help reduce the appearance of redness and improve the look of skin softness.",benefits:["Redness reduction","Ultra-soothing","For sensitive skin","Softening formula"],concerns:["sensitive","redness","rosacea","irritation"]},radiantVeilBrightener:{id:"radiantVeilBrightener",name:"Radiant Veil Brightener",category:"Targeted Treatment",skinType:"Pigmentation",description:"A silky, fast-absorbing lotion containing SepiWhite MSH, Chromabright, and B-White — all clinically shown to illuminate the complexion and brighten hyperpigmented skin.",benefits:["Clinically proven brighteners","3 illuminating actives","Fast-absorbing","Brightens hyperpigmentation"],concerns:["pigmentation","dark spots","brightening","dull"]},revitaCyte:{id:"revitaCyte",name:"Revita-Cyte Complex",category:"Targeted Treatment",skinType:"Aging/Repair",description:"A Vitamin A alternative lotion to use when avoiding retinoids. This anti-aging complex helps skin feel and appear firmer and smoother, while providing immediate skin softness.",benefits:["Retinol alternative","Firms & smooths","Immediate softness","Anti-aging complex"],concerns:["aging","fine lines","sensitive to retinol"]},emergencyEyeLift:{id:"emergencyEyeLift",name:"Emergency Eye Lift",category:"Eye Treatment",skinType:"Aging/Repair",description:"This clear gel works quickly to produce a tighter feel and lifted look to the eye area.",image:"https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/6951d4c5f53c7bd92a68d780/54aebcd0e_EmergencyEyeLift.png",benefits:["Instant tightening effect","Lifted eye appearance","Fast-absorbing gel","Anti-aging formula"],concerns:["aging","fine lines","eye area","puffiness"]},fullCircleEyeRepair:{id:"fullCircleEyeRepair",name:"Full Circle Eye Repair",category:"Eye Treatment",skinType:"Aging/Repair",description:"Day Formula uses innovative peptide technology and vitamins with smoothing agents. Night Formula works with the natural repair cycle while helping prevent new lines and reducing puffiness.",benefits:["Day + Night system","Advanced peptide technology","Reduces puffiness","Prevents new lines"],image:"https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/6951d4c5f53c7bd92a68d780/54aebcd0e_EmergencyEyeLift.png",concerns:["aging","fine lines","eye area","puffiness","dark circles"]}
394,lightDaySPF37:{id:"lightDaySPF37",name:"Light Day Sunscreen SPF 37",category:"Sunscreen",skinType:"All Skin Types",description:"Provides reliable UVA and UVB protection. Features the award-winning photostabilizer Solastay® S1 plus antioxidant ingredients. Lightweight, fast-absorbing texture ideal for everyday wear.",benefits:["SPF 37 broad spectrum","Award-winning photostabilizer","Antioxidant protection","Lightweight daily wear"],concerns:["all skin types","sun protection","aging prevention"]},circaShield:{id:"circaShield",name:"Circa-Shield Mineral Sunscreen SPF 30",category:"Sunscreen",skinType:"All Skin Types",description:"Mineral-based UVA/UVB protection formulated with BlueOleoactif® and antioxidant ingredients. Protects against environmental stressors from screen-filled lifestyles.",benefits:["Mineral SPF 30","Protects from blue light","Antioxidant shield","Clean mineral formula"],concerns:["sensitive","all skin types","sun protection"]}},JL={radiance4C:{id:"radiance4C",name:"Radiance 4C Facial",tagline:"4 Forms of Vitamin C • Instant Glow",duration:"45-60 minutes",skinTypes:["Aging","Hyperpigmented","Dull","Photodamaged"],benefits:["Anti-aging","Antioxidant","Firming","Hydration","Brightening"],description:"A high-performance, clinical-grade treatment powered by four advanced forms of Vitamin C and a powerful citrus infusion. Instantly revitalizes lackluster skin — resurfaces, brightens, and restores.",indications:["Dull skin","Uneven tone","Fine lines and wrinkles","Hyperpigmentation","Loss of elasticity"],homeCareSuggested:["Vitamin C Reversal Serum","Serum 71","Light Day Sunscreen SPF 37","Emergency Eye Lift"],concernTags:["dull","brightening","aging","pigmentation","glow"]},dream:{id:"dream",name:"Dream Facial",tagline:"Ultimate Hydration & Relaxation",duration:"55-65 minutes",skinTypes:["All skin types"],benefits:["Balancing","Hydrating","Rejuvenating","Relaxing"],description:"A luxurious facial that rejuvenates body, mind, and spirit. Pre/post biotic infusion, Gua Sha stone massage, and the Circadian Time Balancing Mask with Malachite. Awaken to younger, softer, more beautiful skin.",indications:["Dry/dehydrated skin","Dull or lackluster skin","Fine lines","Stress & fatigue in skin"],homeCareSuggested:["Vitamin C Reversal Serum","Serum 71","Nighttime Repair Plus","Cyto-Comm"],concernTags:["dry","dehydration","dull","glow","all","relaxation"]},luxeLift:{id:"luxeLift",name:"Luxe Lift Facial",tagline:"Instant Firming & Wrinkle Reduction",duration:"60 minutes",skinTypes:["Aging","Hyperpigmented"],benefits:["Firming","Brightening","Exfoliating","Antioxidant","Anti-aging"],description:"Instantly firms and brightens the skin. Dramatically increases skin elasticity and visibly reduces wrinkles. Contains ingredients that stimulate collagen and elastin production at the cellular level for lasting results.",indications:["Fine lines and wrinkles","Loss of elasticity","Hyperpigmentation","Sagging skin"],homeCareSuggested:["Vitamin C Reversal Serum","Serum 71","Myo-Cyte Plus","Emergency Eye Lift","Light Day Sunscreen SPF 37"],concernTags:["aging","fine lines","wrinkles","firming","elasticity"]},calming:{id:"calming",name:"Calming Facial",tagline:"Soothes Redness, Acne & Sensitivity",duration:"60 minutes",skinTypes:["Rosacea","Sensitive","Acne"],benefits:["Anti-inflammatory","Antioxidant","Decongesting","Calming","Hydrating"],description:"Combines luxury with instant results. Designed to address redness, irritation, and inflammation from acne, rosacea, and sensitive skin. Reduces inflammation and restores harmony, enhancing the skin's natural healing.",indications:["Acne & congestion","Inflammation","Redne
394ss and discomfort","Sensitive or compromised skin"],homeCareSuggested:["Lipid Replacing Cleansing Gel","Aloe & Calendula Calming Mist","Chrono-Calm","Tranquili-Cream","Circa-Shield"],concernTags:["acne","redness","sensitive","rosacea","irritation","inflammation"]},balanceRestore:{id:"balanceRestore",name:"Balance & Restore Facial",tagline:"Ideal for Hormonal Skin Changes & Menopause",duration:"60 minutes",skinTypes:["Aging","Sensitive","Photodamaged","Dehydrated"],benefits:["Exfoliating","Anti-aging","Soothing","Brightening","Hydrating"],description:"A cooling, calming facial targeting the discomforts hormonal fluctuations cause in the skin. Hydrating lactic acid, amino acids, and soothing ingredients will balance, brighten, and beautify skin for a more youthful glow.",indications:["Hormone-related skin changes","Loss of elasticity","Fine lines","Dullness","Hyperpigmentation","Peri/post-menopausal skin"],homeCareSuggested:["Hydralox","Revita-Cyte","Vitamin C Reversal Serum","AquaPorin Hydrating Cream","Light Day Sunscreen SPF 37"],concernTags:["hormonal","aging","sensitive","dehydration","brightening","menopause"]},swich:{id:"swich",name:"SWiCH™ Dermal Rejuvenation",tagline:"No-Downtime Anti-Aging & Pigmentation",duration:"70 minutes",skinTypes:["All skin types","Aging","Hyperpigmented"],benefits:["Exfoliating","Brightening","Anti-aging","Cellular repair"],description:"A revolutionary alternative to chemical peels that uses the skin's own natural repair mechanism to restore its optimum appearance — no injury, no downtime. Reverses visible signs of aging from the inside out.",indications:["Dull lackluster skin","Fine lines and wrinkles","Hyperpigmentation","Loss of elasticity","Keratinized skin"],homeCareSuggested:["Vitamin C Reversal Serum","Serum 71","Revita-Cyte Complex","Myo-Cyte Plus","Light Day Sunscreen SPF 37"],concernTags:["aging","dull","pigmentation","brightening","no downtime","fine lines"]}},ZL={dull:{products:["vitaminCReversal","serum71","radiantBrighteningSerum","lightDaySPF37","anteage:anteAgeSerumAndAccelerator"],facials:["radiance4C","swich","dream"]},brightening:{products:["vitaminCReversal","radiantBrighteningSerum","radiantVeilBrightener","lightDaySPF37"],facials:["radiance4C","luxeLift","swich"]},aging:{products:["vitaminCReversal","nighttimeRepairPlus","serum71","myoCytePlus","lightDaySPF37","anteage:anteAgeSerumAndAccelerator"],facials:["luxeLift","swich","radiance4C"]},"fine lines":{products:["vitaminCReversal","nighttimeRepairPlus","myoCytePlus","anteage:anteAgeSerumAndAccelerator","emergencyEyeLift"],facials:["luxeLift","radiance4C","dream"]},acne:{products:["cleansingGelSalicylic","vitaminCReversal","chronoCalm","lightDaySPF37"],facials:["calming"]},sensitive:{products:["nourishCreamCleanser","chronoCalm","tranquiliCream","circaShield"],facials:["calming","dream"]},redness:{products:["nourishCreamCleanser","chronoCalm","tranquiliCream","circaShield"],facials:["calming"]},pigmentation:{products:["radiantBrighteningSerum","radiantVeilBrightener","vitaminCReversal","lightDaySPF37"],facials:["radiance4C","swich"]},dry:{products:["nourishCreamCleanser","aquaPorin","vitaminCReversal","lightDaySPF37"],facials:["dream","balanceRestore"]},hormonal:{products:["amandolaMilk","vitaminCReversal","revitaCyte","aquaPorin","lightDaySPF37","anteage:anteAgeVRS"],facials:["balanceRestore"],intimateProducts:["anteage:anteAgeVRS"]},general:{products:["amandolaMilk","vitaminCReversal","serum71","lightDaySPF37"],facials:["radiance4C","dream","luxeLift"]}};function eI(e=[]){const t=new Set,n=new Set,s=new Set,i=e.map(N=>N.toLowerCase()),l={dull:"dull",glowing:"brightening",radiant:"brightening",glow:"brightening",aging:"aging",wrinkle:"fine lines","fine line":"fine lines",acne:"acne",sensitive:"sensitive",redness:"redness",rosacea:"redness",pigment:"pigmentation","dark spot":"pigmentation",dry:"dry",dehydrat:"dry",hormon:"hormonal",menopause:"hormonal",texture:"aging",pore:"acne",brightening:"brightening",vaginal:"hormonal",intimate:"hormonal"};let c=new Set;for(const N of i)for(const[b,w]of Object.entries(l))N.includes(b)&&c.add(w);c.size===0&&c.add("general");for(const N of c){const b=ZL[N];
394b&&(b.products.forEach(w=>t.add(w)),b.facials.forEach(w=>n.add(w)),b.intimateProducts&&b.intimateProducts.forEach(w=>s.add(w)))}const d=N=>{if(N.startsWith("anteage:")){const b=N.replace("anteage:","");return XL[b]||null}return e1[N]||null},f=[...t].filter(N=>!s.has(N)),m=f.filter(N=>!N.startsWith("anteage:")).slice(0,4).map(N=>e1[N]).filter(Boolean),p=f.filter(N=>N.startsWith("anteage:")).slice(0,3).map(d).filter(Boolean),g=[...s].map(d).filter(Boolean),x=[...n].slice(0,3).map(N=>JL[N]).filter(Boolean);return{circadiaProducts:m,anteAgeProducts:p,intimateProducts:g,facials:x}}function tI({product:e,onClose:t}){const n=e.brand==="AnteAGE",s=e.intimateHealth,i=e.shopUrl||(n?pr:$j),l=e.shopLabel||(n?"Shop on Fullscript":"Shop Online");return a.jsx(Hn,{children:a.jsx(Z.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 z-50 flex items-center justify-center p-4 bg-black/60 backdrop-blur-sm",onClick:t,children:a.jsxs(Z.div,{initial:{opacity:0,scale:.95,y:20},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:20},className:"bg-white rounded-3xl max-w-md w-full overflow-hidden shadow-2xl max-h-[90vh] overflow-y-auto",onClick:c=>c.stopPropagation(),children:[a.jsxs("div",{className:`relative p-6 pb-4 ${s?"bg-gradient-to-br from-teal-800 to-teal-600":n?"bg-gradient-to-br from-slate-800 to-slate-700":"bg-gradient-to-br from-stone-100 to-stone-50"}`,children:[a.jsx("button",{onClick:t,className:`absolute top-4 right-4 w-8 h-8 rounded-full flex items-center justify-center ${s||n?"bg-white/20 hover:bg-white/30":"bg-white/80 hover:bg-white"}`,children:a.jsx(Fr,{className:`w-4 h-4 ${s||n?"text-white":"text-stone-600"}`})}),e.image&&a.jsx("div",{className:"flex justify-center mb-4",children:a.jsx("img",{src:e.image,alt:e.name,className:"h-36 object-contain"})}),a.jsxs(pt,{className:`border-0 text-xs mb-2 ${s||n?"bg-white/20 text-white":"bg-[#D4AF37]/20 text-stone-700"}`,children:[n?"AnteAGE® ":"",e.category]}),a.jsx("h3",{className:`text-xl font-medium ${s||n?"text-white":"text-stone-900"}`,children:e.name}),a.jsx("p",{className:`text-sm mt-1 ${s||n?"text-white/70":"text-stone-500"}`,children:e.skinType})]}),a.jsxs("div",{className:"p-6",children:[a.jsx("p",{className:"text-sm text-stone-700 leading-relaxed mb-4",children:e.description}),a.jsxs("div",{className:"mb-5",children:[a.jsx("p",{className:"text-xs font-semibold text-stone-500 uppercase tracking-wider mb-2",children:"Key Benefits"}),a.jsx("div",{className:"space-y-1.5",children:e.benefits.map((c,d)=>a.jsxs("div",{className:"flex items-center gap-2 text-sm text-stone-700",children:[a.jsx(Us,{className:`w-3.5 h-3.5 flex-shrink-0 ${s?"text-teal-600":"text-[#D4AF37]"}`}),c]},d))})]}),a.jsxs("div",{className:"bg-stone-50 rounded-xl p-3 mb-5 text-xs text-stone-600",children:[a.jsx("p",{className:"font-medium text-stone-800 mb-1",children:"Where to get it:"}),a.jsx("p",{children:n?"Available on Fullscript (online) or purchase in-clinic at Lush Health.":"Available in-clinic at Lush Health or online through our Circadia shop."})]}),a.jsxs("div",{className:"flex gap-3",children:[a.jsx("a",{href:i,target:"_blank",rel:"noopener noreferrer",className:"flex-1",children:a.jsxs(ae,{className:`w-full text-sm text-white ${s?"bg-teal-700 hover:bg-teal-600":"bg-black hover:bg-[#D4AF37]"}`,children:[a.jsx(Ja,{className:"w-4 h-4 mr-2"}),l,a.jsx(qe,{className:"w-3 h-3 ml-1"})]})}),a.jsx("a",{href:sd,target:"_blank",rel:"noopener noreferrer",className:"flex-1",children:a.jsxs(ae,{variant:"outline",className:"w-full border-stone-300 text-sm",children:[a.jsx(un,{className:"w-4 h-4 mr-2"}),"Buy In-Clinic"]})})]})]})]})})})}function nI({facial:e,onClose:t}){return a.jsx(Hn,{children:a.jsx(Z.div,{initial:{opacity:0}
394,animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 z-50 flex items-center justify-center p-4 bg-black/60 backdrop-blur-sm",onClick:t,children:a.jsxs(Z.div,{initial:{opacity:0,scale:.95,y:20},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:20},className:"bg-white rounded-3xl max-w-lg w-full overflow-hidden shadow-2xl max-h-[90vh] overflow-y-auto",onClick:n=>n.stopPropagation(),children:[a.jsxs("div",{className:"bg-gradient-to-br from-stone-900 to-black p-6 text-white sticky top-0 z-10",children:[a.jsx("button",{onClick:t,className:"absolute top-4 right-4 w-8 h-8 rounded-full bg-white/10 flex items-center justify-center hover:bg-white/20",children:a.jsx(Fr,{className:"w-4 h-4 text-white"})}),a.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[a.jsx(Me,{className:"w-4 h-4 text-[#D4AF37]"}),a.jsx("span",{className:"text-[#D4AF37] text-xs font-medium uppercase tracking-wider",children:"Circadia Signature Facial"})]}),a.jsx("h3",{className:"text-2xl font-light mb-1",children:e.name}),a.jsx("p",{className:"text-stone-400 text-sm",children:e.tagline}),a.jsx("div",{className:"flex flex-wrap gap-2 mt-3",children:a.jsxs("span",{className:"text-xs px-2 py-1 bg-white/10 rounded-full",children:["⏱️ ",e.duration]})})]}),a.jsxs("div",{className:"p-6",children:[a.jsx("p",{className:"text-sm text-stone-700 leading-relaxed mb-5",children:e.description}),a.jsxs("div",{className:"mb-4",children:[a.jsx("p",{className:"text-xs font-semibold text-stone-500 uppercase tracking-wider mb-2",children:"Best For"}),a.jsx("div",{className:"flex flex-wrap gap-1.5",children:e.skinTypes.map((n,s)=>a.jsx(pt,{className:"bg-stone-100 text-stone-700 border-0 text-xs",children:n},s))})]}),a.jsxs("div",{className:"mb-4",children:[a.jsx("p",{className:"text-xs font-semibold text-stone-500 uppercase tracking-wider mb-2",children:"Benefits"}),a.jsx("div",{className:"flex flex-wrap gap-1.5",children:e.benefits.map((n,s)=>a.jsxs("span",{className:"flex items-center gap-1 text-xs text-stone-700 bg-[#D4AF37]/10 px-2 py-1 rounded-full",children:[a.jsx(ud,{className:"w-2.5 h-2.5 text-[#D4AF37]"}),n]},s))})]}),a.jsxs("div",{className:"mb-5",children:[a.jsx("p",{className:"text-xs font-semibold text-stone-500 uppercase tracking-wider mb-2",children:"Addresses"}),a.jsx("div",{className:"space-y-1",children:e.indications.map((n,s)=>a.jsxs("div",{className:"flex items-center gap-2 text-sm text-stone-700",children:[a.jsx(Us,{className:"w-3.5 h-3.5 text-[#D4AF37] flex-shrink-0"}),n]},s))})]}),a.jsxs("div",{className:"bg-[#D4AF37]/10 rounded-xl p-4 mb-5",children:[a.jsx("p",{className:"text-xs font-semibold text-stone-800 mb-2",children:"Recommended Home Care After Treatment"}),a.jsx("div",{className:"flex flex-wrap gap-1.5",children:e.homeCareSuggested.map((n,s)=>a.jsx("span",{className:"text-xs bg-white border border-[#D4AF37]/30 text-stone-700 px-2 py-0.5 rounded-full",children:n},s))})]}),a.jsxs("div",{className:"bg-stone-50 rounded-xl p-4 mb-5 text-sm text-stone-700",children:[a.jsx("p",{className:"font-medium text-stone-900 mb-1",children:"✨ Complimentary Skin Analysis Available"}),a.jsx("p",{className:"text-xs text-stone-600",children:"Come in for a complimentary skin analysis with our licensed esthetician and receive your custom facial the same day. No commitment required."})]}),a.jsx("a",{href:sd,target:"_blank",rel:"noopener noreferrer",children:a.jsxs(ae,{className:"w-full bg-[#D4AF37] hover:bg-[#C19B2E] text-black font-semibold",children:[a.jsx(un,{className:"w-4 h-4 mr-2"}),"Book This Facial",a.jsx(qe,{className:"w-3 h-3 ml-1"})]})})]})]})})})}function fm({product:e,onClick:t}){const n=e.brand==="AnteAGE",s=e.intimateHealth;return a.jsxs(Z.div,{onClick:t,whileTap:{scale:.98},className:`p-4 rounded-xl border cursor-pointer hover:shadow-md transition-all group ${s?"border-teal-200 bg-gradient-to-r from-teal-50 to-white hover:border-teal-400":n?"border-slate-200 bg-gradient-to-r from-slate-50 to-white hover:border-slate-400":"border-stone-200 bg-white hover:border-[#D4AF37]"}`,children:[e.image&&a.jsx("img",{src:e.image,alt:e.name,className:"w-full h-24 object-contain mb-3"}),a.jsxs("div",{className:"flex items-center gap-1.5 mb-1.5",children:[n&&a.jsx(pt,{className:"bg-teal-700 text-white border-0 text-xs",children:"AnteAGE®"}),a.jsx(pt,{className:`border-0 text-xs ${s?"bg-teal-100 text-teal-800":n?"bg-slate-100 text-slate-700":"bg-stone-100 text-stone-600"}`,children:e.category})]}),a.jsx("p",{className:"font-medium text-stone-900 text-sm mb-1",children:e.name}),a.jsx("p",{className:"text-xs text-stone-500 line-clamp-2 mb-2",children:e.description}),a.jsxs("p",{className:`text-xs font-medium flex items-center gap-1 ${s?"text-teal-700":n?"text-slate-600":"text-[#D4AF37]"}`,children:[a.jsx(us,{className:"w-3 h-3"})," Tap to learn more"]})]})}function sI({circadiaProducts:e=[],anteAgeProducts:t=[],intimateProducts:n=[],facials:s=[],products:i=[]}){const[l,c]=k.useState(null),[d,f]=k.useState(null),m=e.length?e:i;return s.length||m.length||t.length||n.length?a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:"mb-6",children:[a.jsxs("div",{className:"flex items-center gap-3 mb-5",children:[a.jsx("div",{className:"w-8 h-8 rounded-full bg-[#D4AF37]/20 flex items-center justify-center",children:a.jsx(Me,{className:"w-4 h-4 text-[#D4AF37]"})}),a.jsxs("div",{children:[a.jsx("h4",{className:"font-medium text-stone-900",children:"Your Skincare Plan"}),a.jsx("p",{className:"text-xs text-stone-500",children:"Medical-Grade Skincare — Circadia & AnteAGE®"})]})]}),s.length>0&&a.jsxs("div",{className:"mb-6",children:[a.jsxs("div",{className:"flex items-center justify-between mb-3",children:[a.jsx("p",{className:"text-sm font-medium text-stone-700",children:"Recommended Facials"}),a.jsx(pt,{className:"bg-stone-100 text-stone-600 border-0 text-xs",children:"Tap to learn more & book"})]}),a.jsx("div",{className:"space-y-3",children:s.map(g=>a.jsxs(Z.div,{onClick:()=>f(g),whileTap:{scale:.98},className:"p-4 rounded-xl border border-[#D4AF37]/30 bg-gradient-to-r from-[#D4AF37]/5 to-white cursor-pointer hover:border-[#D4AF37] hover:shadow-md transition-all group",children:[a.jsxs("div",{className:"flex items-start justify-between",children:[a.jsxs("div",{className:"flex-1",children:[a.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[a.jsx("p",{className:"font-medium text-stone-900 text-sm",children:g.name}),a.jsx(pt,{className:"bg-black text-white border-0 text-xs",children:"In-Clinic"})]}),a.jsx("p",{className:"text-xs text-stone-500 mb-2",children:g.tagline}),a.jsxs("div",{className:"text-xs text-stone-500",children:["⏱️ ",g.duration]}),a.jsx("div",{className:"flex flex-wrap gap-1 mt-2",children:g.benefits.slice(0,3).map((x,N)=>
394a.jsx("span",{className:"text-xs bg-white border border-stone-200 text-stone-600 px-2 py-0.5 rounded-full",children:x},N))})]}),a.jsx(us,{className:"w-4 h-4 text-[#D4AF37] ml-3 flex-shrink-0 mt-1 opacity-60 group-hover:opacity-100 transition-opacity"})]}),a.jsxs("p",{className:"text-xs text-[#D4AF37] font-medium mt-2 flex items-center gap-1",children:[a.jsx(Me,{className:"w-3 h-3"})," Tap to see details & book online"]})]},g.id))}),a.jsxs("div",{className:"mt-3 p-4 bg-stone-900 rounded-xl text-white",children:[a.jsx("p",{className:"text-sm font-medium mb-1",children:"✨ Complimentary Skin Analysis"}),a.jsx("p",{className:"text-xs text-stone-400 mb-3",children:"Come in for a free skin analysis with our licensed esthetician — receive your custom facial the same day."}),a.jsx("a",{href:sd,target:"_blank",rel:"noopener noreferrer",children:a.jsxs(ae,{size:"sm",className:"bg-[#D4AF37] hover:bg-[#C19B2E] text-black font-semibold text-xs",children:[a.jsx(un,{className:"w-3.5 h-3.5 mr-1.5"}),"Book Skin Analysis",a.jsx(qe,{className:"w-3 h-3 ml-1"})]})})]})]}),m.length>0&&a.jsxs("div",{className:"mb-6",children:[a.jsxs("div",{className:"flex items-center justify-between mb-3",children:[a.jsx("p",{className:"text-sm font-medium text-stone-700",children:"Circadia Home Care"}),a.jsx(pt,{className:"bg-stone-100 text-stone-600 border-0 text-xs",children:"Tap any to learn more"})]}),a.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3 mb-4",children:m.map(g=>a.jsx(fm,{product:g,onClick:()=>c(g)},g.id))}),a.jsxs("div",{className:"flex flex-wrap gap-3",children:[a.jsx("a",{href:$j,target:"_blank",rel:"noopener noreferrer",children:a.jsxs(ae,{className:"bg-black hover:bg-[#D4AF37] text-white text-sm",children:[a.jsx(Ja,{className:"w-4 h-4 mr-2"}),"Shop Circadia Online",a.jsx(qe,{className:"w-3 h-3 ml-1"})]})}),a.jsx("a",{href:sd,target:"_blank",rel:"noopener noreferrer",children:a.jsxs(ae,{variant:"outline",className:"border-stone-300 text-sm",children:[a.jsx(un,{className:"w-4 h-4 mr-2"}),"Buy In-Clinic at Lush Health"]})})]})]}),t.length>0&&a.jsxs("div",{className:"mb-6",children:[a.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[a.jsx("p",{className:"text-sm font-medium text-stone-700",children:"AnteAGE® Growth Factor Skincare"}),a.jsx(pt,{className:"bg-teal-700 text-white border-0 text-xs",children:"Fullscript"})]}),a.jsx("p",{className:"text-xs text-stone-500 mb-3",children:"Powered by bone marrow stem cell cytokines — a medical-grade approach to skin renewal."}),a.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3 mb-4",children:t.map(g=>a.jsx(fm,{product:g,onClick:()=>c(g)},g.id))}),a.jsx("a",{href:pr,target:"_blank",rel:"noopener noreferrer",children:a.jsxs(ae,{className:"bg-teal-700 hover:bg-teal-600 text-white text-sm",children:[a.jsx(Ja,{className:"w-4 h-4 mr-2"}),"Shop AnteAGE® on Fullscript",a.jsx(qe,{className:"w-3 h-3 ml-1"})]})})]}),n.length>0&&a.jsxs("div",{className:"mb-2",children:[a.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[a.jsx(Ut,{className:"w-4 h-4 text-teal-600"}),a.jsx("p",{className:"text-sm font-medium text-stone-700",children:"Intimate Health"}),a.jsx(pt,{className:"bg-teal-100 text-teal-800 border-0 text-xs",children:"Hormonal Wellness"})]}),a.jsx("p",{className:"text-xs text-stone-500 mb-3",children:"For women experiencing vaginal dryness, discomfort, or other symptoms of menopause — hormone-free options to restore comfort and intimate health."}),a.jsx("div",{className:"grid grid-cols-1 gap-3 mb-4",children:n.map(g=>a.jsx(fm,{product:g,onClick:()=>c(g)},g.id))}),a.jsx("a",{href:pr,target:"_blank",rel:"noopener noreferrer",children:a.jsxs(ae,{className:"bg-teal-700 hover:bg-teal-600 text-white text-sm",children:[a.jsx(Ja,{className:"w-4 h-4 mr-2"}),"Shop on Fullscript",a.jsx(qe,{className:"w-3 h-3 ml-1"})]})})]})]}),l&&a.jsx(tI,{product:l,onClose:()=>c(null)}),d&&a.jsx(nI,{facial:d,onClose:()=>f(null)})]}):null}const rI="https://us.fullscript.com/welcome/lush-health/store-start",mm={"Collagen Peptides":"collagen","Omega-3 Fish Oil":"omega3","Omega-3 Fish Oil (2000mg)":"omega3","Magnesium Glycinate":"magnesium","Zinc (30mg)":"zinc",Zinc:"zinc","Vitamin D3":null,"B-Complex Vitamins":null,"B-Complex":null,Probiotics:"ultraflora","Calocurb Clinical GLP-1 Activator":"calocurb",Calocurb:"calocurb",Ashwagandha:"ashwagandha","Biotin (5000mcg)":null,"Saw Palmetto":null,MSM:null,"Vitamin C (1000mg)":null,"Vitamin C":null,"Vitamin E":null,Resveratrol
394:null,"DIM + CDG":"dim","Vitex Extract":"vitex",DHEA:"dhea",Inositol:"inositol",Astaxanthin:"astaxanthin",CoQ10:"coq10","Hyaluronic Acid":"hyaluronicAcid","L-Glutamine":"lGlutamine",Curcumin:"curcumin","Liposomal Glutathione":"glutathione","Viviscal Pro":"viviscal"};function iI(e){if(!e)return null;if(mm[e]!==void 0)return mm[e];for(const[n,s]of Object.entries(mm))if(e.toLowerCase().includes(n.toLowerCase())||n.toLowerCase().includes(e.toLowerCase()))return s;const t=e.toLowerCase().replace(/\s+/g,"");for(const n of Object.keys(Wg))if(t.includes(n.toLowerCase())||n.toLowerCase().includes(t))return n;return null}function oI({supp:e,onLearnMore:t}){const n=iI(e.name),s=n?Wg[n]:null;return a.jsxs("div",{className:`p-4 rounded-xl border transition-all duration-200 ${s?"border-[#D4AF37]/30 bg-[#D4AF37]/5 cursor-pointer hover:border-[#D4AF37] hover:shadow-md group":"border-stone-200 bg-stone-50"}`,onClick:()=>s&&t(s),children:[a.jsxs("div",{className:"flex items-start justify-between mb-2",children:[a.jsxs("div",{className:"flex items-center gap-2 flex-1",children:[a.jsx("div",{className:"w-2 h-2 rounded-full bg-[#D4AF37] flex-shrink-0 mt-1.5"}),a.jsx("p",{className:"font-medium text-stone-900 text-sm",children:e.name})]}),a.jsxs("div",{className:"flex items-center gap-2 flex-shrink-0 ml-2",children:[a.jsx("span",{className:"text-xs px-2 py-0.5 bg-white border border-stone-200 rounded-full text-stone-600",children:e.timing}),s&&a.jsx(us,{className:"w-4 h-4 text-[#D4AF37] opacity-0 group-hover:opacity-100 transition-opacity"})]})]}),a.jsx("p",{className:"text-xs text-stone-600 leading-relaxed ml-4",children:e.benefits}),e.note&&a.jsx("p",{className:"text-xs text-stone-500 italic ml-4 mt-1",children:e.note}),s&&a.jsxs("p",{className:"text-xs text-[#D4AF37] font-medium ml-4 mt-2 flex items-center gap-1",children:[a.jsx(Me,{className:"w-3 h-3"})," Tap to learn more & shop"]})]})}function aI({plan:e,selectedSymptoms:t=[]}){const[n,s]=k.useState(null),i=(e==null?void 0:e.supplementShop)||(e==null?void 0:e.category)==="wellness",l=e!=null&&e.skincareRecommendations?eI(e!=null&&e.forceHormonalSkincare?[...t,"hormonal","menopause"]:t):{circadiaProducts:[],anteAgeProducts:[],intimateProducts:[],facials:[]};return a.jsxs(a.Fragment,{children:[a.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"bg-white rounded-2xl p-8 shadow-lg mb-6",children:[a.jsxs("div",{className:"mb-6",children:[a.jsx("h3",{className:"text-2xl font-medium text-stone-900 mb-3",children:e.title}),a.jsx("p",{className:"text-stone-600 leading-relaxed",children:e.overview})]}),e.assessment&&a.jsxs("div",{className:"mb-6 p-4 bg-stone-50 rounded-xl",children:[a.jsxs("h4",{className:"font-medium text-stone-900 mb-2 flex items-center gap-2",children:[a.jsx(Me,{className:"w-4 h-4 text-[#D4AF37]"}),"Your Assessment"]}),a.jsx("p",{className:"text-sm text-stone-700 leading-relaxed",children:e.assessment})]}),e.treatments&&e.treatments.length>0&&a.jsxs("div",{className:"mb-6",children:[a.jsx("h4",{className:"font-medium text-stone-900 mb-4",children:"Recommended In-Office Treatments"}),a.jsx("div",{className:"space-y-3",children:e.treatments.map((c,d)=>a.jsxs("div",{className:"flex gap-3 p-3 bg-[#D4AF37]/5 rounded-lg",children:[a.jsx("div",{className:"w-8 h-8 rounded-full bg-[#D4AF37] text-white flex items-center justify-center flex-shrink-0 font-medium text-sm",children:d+1}),a.jsxs("div",{className:"flex-1",children:[a.jsx("p",{className:"font-medium text-stone-900",children:c.name}),a.jsx("p",{className:"text-sm text-stone-600",children:c.description}),c.timing&&a.jsx("p",{className:"text-xs text-stone-500 mt-1",children:c.timing})]})]},d))})]}),e.homeRoutine&&a.jsxs("div",{className:"mb-6",children:[a.jsx("h4",{className:"font-medium text-stone-900 mb-4",children:"Daily Home Care Routine"}),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-2 border-stone-200",children:[a.jsx("th",{className:"text-left py-3 px-2 font-medium text-stone-900",children:"Step"}),a.jsx("th",{className:"text-left py-3 px-2 font-medium text-stone-900",children:"Morning"}),a.jsx("th",{className:"text-left py-3 px-2 font-medium text-stone-900",children:"Evening"}),a.jsx("th",{className:"text-left py-3 px-2 font-medium text-stone-900",children:"Why"})]})}),a.jsx("tbody",{children:e.homeRoutine.map((c,d)=>a.jsxs("tr",{className:"border-b border-stone-100",children:[a.jsx("td",{className:"py-3 px-2 font-medium text-stone-900",children:c.step}),a.jsx("td",{className:"py-3 px-2 text-stone-700",children:c.morning}),a.jsx("td",{className:"py-3 px-2 text-stone-700",children:c.evening}),a.jsx("td",{className:"py-3 px-2 text-stone-600 text-xs",children:c.rationale})]},d))})]})})]}),e.skincareRecommendations&&a.jsx(sI,{circadiaProducts:l.circadiaProducts,anteAgeProducts:l.anteAgeProducts,intimateProducts:l.intimateProducts,facials:l.facials}),e.supplements&&e.supplements.length>0&&a.jsxs("div",{className:"mb-6",children:[a.jsxs("div",{className:"flex items-center justify-between mb-3",children:[a.jsx("h4",{className:"font-medium text-stone-900",children:"Recommended Supplements"}),a.jsx(pt,{className:"bg-[#D4AF37]/10 text-[#D4AF37] border-0 text-xs",children:"Tap any to learn more & shop"})]}),a.jsx("div",{className:"space-y-3",children:e.supplements.map((c,d)=>a.jsx(oI,{supp:c,onLearnMore:s},d))})]}),e.products&&e.products.length>0&&a.jsxs("div",{className:"mb-6",children:[a.jsx("h4",{className:"font-medium text-stone-900 mb
394-4",children:"Key Products for Your Plan"}),a.jsx("div",{className:"grid md:grid-cols-2 gap-3",children:e.products.map((c,d)=>a.jsxs("div",{className:"p-4 border border-stone-200 rounded-lg hover:border-[#D4AF37] transition-colors",children:[c.image&&a.jsx("img",{src:c.image,alt:c.name,className:"w-full h-32 object-contain mb-3"}),a.jsx("p",{className:"font-medium text-sm text-stone-900 mb-1",children:c.name}),a.jsx("p",{className:"text-xs text-stone-600",children:c.description})]},d))})]}),a.jsxs("div",{className:"mt-8 p-6 bg-gradient-to-br from-[#D4AF37]/10 to-[#D4AF37]/5 rounded-xl",children:[a.jsx("h4",{className:"font-medium text-stone-900 mb-3",children:"Ready to Start Your Journey?"}),a.jsx("p",{className:"text-sm text-stone-700 mb-5",children:e.nextSteps}),a.jsxs("div",{className:"flex flex-wrap gap-3",children:[e.bookingType&&a.jsx("a",{href:"https://lush.myaestheticrecord.com/online-booking/v2/book-appointment",target:"_blank",rel:"noopener noreferrer",children:a.jsxs(ae,{className:"bg-black hover:bg-[#D4AF37] text-white",children:[a.jsx(un,{className:"w-4 h-4 mr-2"}),"Book ",e.bookingType,a.jsx(qe,{className:"w-3 h-3 ml-1"})]})}),e.supplementShop&&a.jsx("a",{href:rI,target:"_blank",rel:"noopener noreferrer",children:a.jsxs(ae,{variant:"outline",className:"border-stone-300",children:[a.jsx(Eo,{className:"w-4 h-4 mr-2"}),"Shop Supplements",a.jsx(qe,{className:"w-3 h-3 ml-1"})]})}),e.skincareShop&&a.jsx("a",{href:"https://www.circadiaretailer.com/dealer/941637",target:"_blank",rel:"noopener noreferrer",children:a.jsxs(ae,{variant:"outline",className:"border-stone-300",children:[a.jsx(Ja,{className:"w-4 h-4 mr-2"}),"Shop Skincare",a.jsx(qe,{className:"w-3 h-3 ml-1"})]})}),i&&a.jsx("a",{href:"https://us.fullscript.com/j/lush-health",target:"_blank",rel:"noopener noreferrer",children:a.jsxs(ae,{variant:"outline",className:"border-[#D4AF37]/50 text-[#D4AF37] hover:bg-[#D4AF37]/10",children:[a.jsx(V1,{className:"w-4 h-4 mr-2"}),"Manage Wellness at Home",a.jsx(qe,{className:"w-3 h-3 ml-1"})]})})]})]})]}),n&&a.jsx(Uj,{supp:n,onClose:()=>s(null)})]})}const t1={antiaging:{title:"Anti-Aging & Rejuvenation Treatment Plan",overview:"This comprehensive plan combines in-office procedures with medical-grade home care to address multiple signs of aging. Our approach uses your body's natural healing abilities enhanced by cutting-edge aesthetic treatments.",assessment:"Fine lines, wrinkles, and loss of facial volume result from decreased collagen production, sun damage, and natural aging. The body's repair mechanisms slow down over time, requiring strategic support through treatments and products.",treatments:[{name:"Microneedling with PRP",description:"Harness your body's own healing power. PRP (platelet-rich plasma) amplifies collagen production for dramatic skin renewal.",timing:"Start with 3 sessions, 4-6 weeks apart"},{name:"Botox or Daxxify",description:"Prevent dynamic wrinkles from forming while existing lines are being addressed.",timing:"2-4 weeks after first microneedling"},{name:"Dermal Fillers",description:"Restore lost volume in cheeks, temples, and under eyes for youthful contours.",timing:"Month 3-4, after initial texture improvement"},{name:"Chemical Peel",description:"Medical-grade exfoliation to brighten, even tone, and enhance cellular turnover.",timing:"Between microneedling sessions"}],homeRoutine:[{step:"Cleanser",morning:"Circadia Amandola Milk Cleanser",evening:"Same cleanser, massage for 60 sec",rationale:"Gentle exfoliation removes dead cells without stripping natural oils"},{step:"Treatment Serum",morning:"Circadia Vitamin C Reversal Serum",evening:"Circadia Nighttime Repair Plus with Vitamin A",rationale:"Vitamin C protects from damage during day; Vitamin A stimulates collagen at night"},{step:"Moisturizer",morning:"Lightweight hydrator with peptides",evening:"Same lightweight moisturizer",rationale:"Maintains skin barrier and prevents moisture loss"},{step:"Protection",morning:"Circadia SPF 30+ (mandatory)",evening:"N/A",rationale:"Prevents sun damage that accelerates aging and protects healing skin"}],supplements:[{name:"Collagen Peptides",timing:"Morning",benefits:"Supports skin elasticity, hydration, and reduces fine lines. Generates connective tissue including collagen."},{name:"Vitamin C (1000mg)",timing:"Morning with food",benefits:"Antioxidant that protects from sun damage, supports collagen synthesis, and helps heal skin.",note:"May inhibit melanin production - beneficial for brightening"},{name:"Omega-3 Fish Oil",timing:"Evening",benefits:"Reduces inflammation, protects from UV rays, moisturizes skin, and supports overall skin health"},{name:"MSM",timing:"Morning",benefits:"Generates connective tissues including collagen. Shown to lower fine lines and wrinkles"}],products:[{name:"Circadia Vitamin C Reversal Serum",description:"Award-winning antioxidant serum",image:"https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/6951d4c5f53c7bd92a68d780/3b46e2673_serum71.png"},{name:"Circadia Nighttime Repair Plus",description:"Advanced anti-aging night treatment",image:"https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/6951d4c5f53c7bd92a68d780/b5e8d79c2_NighttimeRepairPLUS.png"},{name:"Circadia Amandola Milk Cleanser",description:"Exfoliating, hydrating cleanser",image:"https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/6951d4c5f53c7bd92a68d780/cabf6f283_AmandolaMilkCleanser.png"}],nextSteps:"Book your free consultation with our expert providers to discu
394ss this personalized plan and get started on your anti-aging journey.",bookingType:"Anti-Aging Consultation",skincareShop:!0,supplementShop:!0},facials:{title:"Skin Rejuvenation & Glow Treatment Plan",overview:"Achieve radiant, glowing skin with our Circadia signature facials and medical-grade skincare. Whether you have dullness, uneven tone, acne, sensitivity, or aging concerns — we have a personalized treatment pathway for you.",assessment:"Skin concerns like dullness, uneven texture, acne, and signs of aging result from a combination of cellular turnover slowdown, environmental damage, oil imbalance, and inflammation. Our licensed esthetician will perform a complimentary skin analysis to determine your exact needs.",treatments:[{name:"Complimentary Skin Analysis",description:"Come in for a FREE skin analysis with our licensed esthetician. She will assess your skin and perform your custom facial the same day — no commitment required.",timing:"Book any time — walk-ins welcome"},{name:"Circadia Signature Facials",description:"Choose from our menu of Circadia Signature Facials: Radiance 4C (brightening), Dream (hydration), Luxe Lift (firming), Calming (sensitive/acne), Balance & Restore (hormonal/menopausal), or SWiCH™ (anti-aging, no downtime).",timing:"Monthly recommended"},{name:"Chemical Peels",description:"Medical-grade chemical peels for deeper exfoliation, pigmentation, acne, and renewal. Lactic, salicylic, mandelic, and Jessner options available.",timing:"As recommended by your esthetician"},{name:"Maintenance Plan",description:"Establish a quarterly facial routine with medical-grade home care to sustain and build on your results long-term.",timing:"Ongoing"}],homeRoutine:[{step:"Cleanser",morning:"Circadia Amandola Milk Cleanser (brightening) or Nourish Cream (sensitive)",evening:"Same, massage 60 sec",rationale:"Prepares skin to absorb active ingredients and removes daily buildup"},{step:"Serum",morning:"Circadia Vitamin C Reversal Antioxidant Serum",evening:"Circadia Serum 71 or Nighttime Repair Plus",rationale:"Vitamin C protects from damage during day; actives repair and renew at night"},{step:"Moisturizer",morning:"AquaPorin Hydrating Cream or Revita-Cyte Complex",evening:"Same or Nighttime Repair Plus",rationale:"Maintains skin barrier and supports ongoing repair"},{step:"Protection",morning:"Circadia Light Day Sunscreen SPF 37 (mandatory)",evening:"N/A",rationale:"Sun protection is the #1 anti-aging and brightening step — non-negotiable"}],supplements:[{name:"Zinc (30mg)",timing:"Morning with food",benefits:"Essential for wound healing, treats acne, regulates oil production, reduces inflammation"},{name:"Probiotics",timing:"Morning",benefits:"Reduces skin sensitivity, balances skin microbiome, reduces eczema and acne"},{name:"Omega-3 Fish Oil",timing:"Evening",benefits:"Reduces acne and inflammation, improves overall skin health and appearance"},{name:"Collagen Peptides",timing:"Morning",benefits:"Supports skin elasticity, hydration, and collagen synthesis"}],nextSteps:"Book your complimentary skin analysis with our licensed esthetician — she'll assess your skin, recommend your ideal Circadia facial, and get you started on your glow journey the same day. Circadia skincare products are available in-clinic or online for home delivery.",bookingType:"Complimentary Skin Analysis",skincareShop:!0,supplementShop:!0,skincareRecommendations:!0},jointpain:{title:"Joint Pain Relief & Mobility Restoration Plan",overview:"Address joint pain naturally using your body's own healing factors. PRP therapy, red light therapy, and anti-inflammatory support provide lasting relief and improved mobility.",assessment:"Joint pain from arthritis, injury, or inflammation limits mobility and quality of life. PRP (platelet-rich plasma) and regenerative therapies use your body's healing factors for natural pain relief.",treatments:[{name:"PRP Joint Injection Series",description:"Your own concentrated platelets injected into affected joints for natural healing and pain relief. Minimum of 3 PRP injections - once per month - are recommended, but more might be recommended by the provider on evaluation. This regenerative therapy addresses the root cause.",timing:"Monthly sessions - minimum 3 treatments"}
394,{name:"Red Light Therapy Sessions",description:"Non-invasive light therapy reduces inflammation and promotes tissue healing.",timing:"2-3x per week for 4-6 weeks"},{name:"Maintenance PRP",description:"Additional PRP injections as recommended by your provider for sustained results.",timing:"As determined during evaluation"}],supplements:[{name:"Omega-3 Fish Oil (2000mg)",timing:"Morning and evening with meals",benefits:"Powerful anti-inflammatory that reduces joint pain and stiffness"},{name:"Vitamin D3",timing:"Morning",benefits:"Supports bone health, reduces inflammation, critical for joint health"},{name:"Magnesium Glycinate",timing:"Evening",benefits:"Supports muscle relaxation and reduces inflammation"},{name:"Collagen Peptides",timing:"Morning",benefits:"Supports joint cartilage health and reduces joint pain"},{name:"MSM",timing:"Morning",benefits:"Generates connective tissue, reduces inflammation and joint pain"}],nextSteps:"PRP therapy is a game-changer for joint pain - using your body's own healing factors. Book a consultation to discuss if you're a candidate for this revolutionary treatment.",bookingType:"Joint Pain Consultation",supplementShop:!0},hairloss:{title:"Hair Restoration & Growth Stimulation Plan",overview:"Combat hair loss with PRP therapy that uses your body's own growth factors combined with targeted supplements for scalp health and hair strength.",assessment:"Hair thinning and loss result from hormonal changes, stress, nutrient deficiencies, or aging. PRP delivers concentrated growth factors directly to hair follicles, while supplements support from within.",treatments:[{name:"PRP Hair Restoration",description:"Your own platelet-rich plasma injected into the scalp stimulates dormant follicles and promotes thicker, healthier hair growth.",timing:"3-4 sessions, 4-6 weeks apart"},{name:"Scalp Rejuvenation Treatment",description:"Nourishing therapy to optimize scalp health between PRP sessions.",timing:"Between PRP treatments"},{name:"Maintenance PRP",description:"Quarterly PRP sessions to maintain results long-term.",timing:"After initial series"}],supplements:[{name:"Biotin (5000mcg)",timing:"Morning",benefits:"Supports hair thickness, strength, and healthy growth"},{name:"Saw Palmetto",timing:"Morning",benefits:"Prevents hair loss due to excessive DHT hormone"},{name:"MSM",timing:"Morning",benefits:"Generates connective tissue including hair. Supports hair strength and growth."},{name:"Omega-3 Fish Oil",timing:"With meals",benefits:"Reduces inflammation, nourishes follicles, supports scalp health"},{name:"Vitamin D3",timing:"Morning",benefits:"Critical for hair follicle cycling and growth"},{name:"Collagen Peptides",timing:"Morning",benefits:"Provides amino acids needed for hair protein structure"}],nextSteps:"PRP uses your body's own growth factors - it's natural, safe, and effective. Book a hair restoration consultation to see if you're a candidate and review your personalized plan.",bookingType:"Hair Restoration Consultation",supplementShop:!0},wrinkles:{title:"Wrinkle Reduction & Prevention Plan",overview:"Target wrinkles with neurotoxins for immediate smoothing, then support with collagen-stimulating treatments and anti-aging home care for comprehensive rejuvenation.",assessment:"Wrinkles form from repeated facial expressions, collagen loss, and sun damage. Strategic neurotoxin use prevents new wrinkles while other treatments address existing aging.",treatments:[{name:"Botox or Daxxify",description:"Smooth existing wrinkles and prevent new ones from forming. Results last 3-4 months.",timing:"Start here"},{name:"Microneedling with PRP",description:"Boost collagen production to improve skin quality and texture. PRP amplifies results.",timing:"4 weeks after neurotoxins"},{name:"Dermal Fillers (if needed)",description:"Fill deeper lines and restore volume for comprehensive correction.",timing:"As recommended during consultation"}],homeRoutine:[{step:"Cleanser",morning:"Circadia gentle cleanser",evening:"Same, massage thoroughly",rationale:"Prepares skin for active ingredients"},{step:"Treatment",morning:"Circadia Vitamin C serum",evening:"Circadia Nighttime Repair with Vitamin A",rationale:"Day protection plus night repair for comprehensive anti-aging"},{step:"Eye Area",morning:"Circadia Emergency Eye Lift",evening:"Circadia Full Circle Eye Repair",rationale:"Targets delicate eye area with peptides and firming agents"},{step:"Moisturizer",morning:"Lightweight with peptides",evening:"Same formula",rationale:"Supports skin barrier and hydration"},{step:"Protection",morning:"Circadia SPF 37",evening:"N/A",rationale:"Prevents further sun damage and wrinkle formation"}],supplements:[{name:"Collagen Peptides",timing:"Morning",benefits:"Supports skin structure, reduces fine lines, improves elasticity"},{name:"Vitamin C (1000mg)",timing:"Morning",benefits:"Protects from sun damage, supports collagen synthesis"},{name:"Vitamin E",timing:"Evening",benefits:"Antioxidant that moisturizes, reduces inflammation, speeds wound healing"},{name:"Resveratrol",timing:"Evening",benefits:"Powerful antioxidant that combats aging, reduces inflammation, promotes collagen"}],products:[{name:"Circadia Emergency Eye Lift",description:"Instant lifting and long-term eye area improvement",image:"https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/6951d4c5f53c7bd92a68d780/54aebcd0e_EmergencyEyeLift.png"},{name:"Circadia Nighttime Repair Plus",description:"Advanced Vitamin A anti-aging treatment",image:"https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/6951d4c5f53c7bd92a68d780/b5e8d79c2_NighttimeRepairPLUS.png"}],nextSteps:"Neurotoxins provide immediate wrinkle smoothing. Book your consultation to discu
394ss your personalized wrinkle reduction plan.",bookingType:"Injectable Consultation",skincareShop:!0,supplementShop:!0},lips:{title:"LUSH Lips Enhancement Plan",overview:"Achieve the perfect pout with our signature LUSH Lips technique. Natural, beautiful results that enhance your features without looking overdone.",assessment:"Lips naturally lose volume with age, or you may simply want fuller, more defined lips. Our expert injector Rachel uses precise technique for balanced, natural-looking results.",treatments:[{name:"LUSH Lips Consultation",description:"Complimentary consultation with Rachel to discuss your goals and desired look.",timing:"Start here - FREE"},{name:"LUSH Lips Treatment",description:"Our signature lip enhancement technique for natural, beautiful fullness and definition - $700.",timing:"Same day or scheduled appointment"},{name:"Touch-Up (if desired)",description:"Fine-tune results 2 weeks after initial treatment.",timing:"Optional, 2-4 weeks after"}],homeRoutine:[{step:"Lip Care",morning:"Circadia Lip Renewing Hydrator",evening:"Same hydrator",rationale:"Collagen-boosting peptides and hyaluronic filling spheres enhance lip fullness and elasticity"}],supplements:[{name:"Collagen Peptides",timing:"Morning",benefits:"Supports lip fullness and skin elasticity from within"},{name:"Vitamin E",timing:"Evening",benefits:"Moisturizes and protects delicate lip skin, reduces fine lines"}],products:[{name:"Circadia Lip Renewing Hydrator",description:"Plumping and nourishing lip treatment with peptides"}],nextSteps:"Ready for the perfect pout? Book your complimentary LUSH Lips consultation with Rachel to discuss your goals and see her beautiful before/after results.",bookingType:"LUSH Lips Consultation",skincareShop:!0,supplementShop:!0},weight:{title:"Medical Weight Loss & Metabolism Support Plan",overview:"Physician-supervised weight management addressing underlying hormonal and metabolic factors. This plan combines medical support, natural supplements, and sustainable lifestyle changes.",assessment:"Difficulty losing weight often stems from hormonal imbalances, slow metabolism, insulin resistance, or nutrient deficiencies - not just willpower. We address root causes for sustainable results.",treatments:[{name:"FREE Weight Loss Consultation",description:"Comprehensive evaluation of metabolism, hormones, and health history.",timing:"Start here"},{name:"Calocurb GLP-1 Activator",description:"Natural supplement that activates your body's own GLP-1 for appetite control - $120/month.",timing:"Begin after consultation"},{name:"Monthly Follow-Up Visits",description:"Progress monitoring, plan adjustments, and ongoing medical support.",timing:"Monthly"},{name:"Optional: Bioidentical Hormone Optimization",description:"If hormonal imbalances are contributing to weight gain.",timing:"As recommended"}],supplements:[{name:"Calocurb Clinical GLP-1 Activator",timing:"1 hour before meals, twice daily",benefits:"Activates natural GLP-1 release for 30% reduction in hunger, 40% reduction in cravings, 18% reduced calorie intake. Plant-based and clinically proven.",note:"Exclusive to Lush Health patients - $120/month"},{name:"B-Complex Vitamins",timing:"Morning with breakfast",benefits:"Supports energy production and metabolism"},{name:"Magnesium Glycinate",timing:"Evening",benefits:"Improves sleep quality, reduces stress, supports metabolism"},{name:"Omega-3 Fish Oil",timing:"With meals",benefits:"Reduces inflammation, supports metabolism and overall health"},{name:"Vitamin D3",timing:"Morning",benefits:"Supports metabolism, mood, and immune function - deficiency linked to weight gain"}],nextSteps:"Schedule your FREE weight loss consultation to discuss testing, get your personalized plan, and start Calocurb if appropriate. Our providers will guide you through sustainable, medically-supervised weight loss.",bookingType:"Free Weight Loss Consultation",supplementShop:!0},hormones:{title:"Bioidentical Hormone Therapy Plan",overview:"Restore vitality, energy, and hormonal balance with personalized bioidentical hormone therapy. Address fatigue, mood, sleep, and overall wellness — including the skin, hair, and body changes that come with hormonal shifts and menopause.",assessment:"Hormonal decline — from perimenopause, menopause, or imbalance — causes fatigue, mood swings, weight gain, low libido, and more. It also directly affects skin collagen, hair thickness, and body composition. Bioidentical hormones identical to your body's own restore optimal function safely and holistically.",treatments:[{name:"Free Hormone Consultation",description:"Discuss symptoms and review hormone testing options.",timing:"Start here - FREE"},{name:"Comprehensive Hormone Testing",description:"Blood work to identify specific hormone deficiencies.",timing:"After consultation"},{name:"Bioidentical Hormone Therapy",description:"Customized treatment plan with bioidentical hormones.",timing:"After results"},{name:"Monthly Follow-Ups (first 3 months)",description:"Monitor symptoms and adjust dosing for optimization.",timing:"Months 1-3"},{name:"Quarterly Maintenance",description:"Ongoing care and periodic retesting.",timing:"Ongoing"}],supplements:[{name:"Vitamin D3",timing:"Morning",benefits:"Critical for hormone production and overall endocrine health"},{name:"Magnesium Glycinate",timing:"Evening",benefits:"Supports hormone production, sleep quality, and stress management"},{name:"Omega-3 Fish Oil",timing:"With meals",benefits:"Supports brain health, mood, and reduces inflammation"},{name:"B-Complex",timing:"Morning",benefits:"Supports energy, neurological function, and hormone metabolism"},{name:"Probiotics",timing:"Morning",benefits:"Gut health directly impacts hormone metabolism and balance"},{name:"Collagen Peptides",timing:"Morning",benefits:"Estrogen loss accelerates collagen breakdown — collagen supports skin elasticity, hair structure, and joint integrity"},{name:"Astaxanthin",timing:"Daily",benefits:"Powerful antioxidant that protects against the accelerated skin aging associated with hormonal decline"},{name:"Viviscal Pro",timing:"As directed",benefits:"Clinically proven to support hair thickness and growth — particularly helpful when hormone-related thinning occurs"},{name:"Hyaluronic Acid",timing:"Daily",benefits:"Hormonal changes reduce skin and joint moisture — HA helps restore hydration from within"},{name:"DHEA",timing:"Morning (lab-guided)",benefits:"A hormone precursor that supports both estrogen and testosterone balance — especially valuable for low libido, fatigue, and adrenal support. For men: supports testosterone production and vitality."},{name:"Zinc",timing:"Morning with food",benefits:"Essential for testosterone production in both men and women — supports libido, energy, and hormonal balance"}],nextSteps:"Hormone optimization can transform your energy, mood, skin, hair, and overall quality of life. Schedule your FREE consultation to discu
394ss testing and your personalized plan.",bookingType:"Free Hormone Consultation",supplementShop:!0,skincareShop:!0,skincareRecommendations:!0,forceHormonalSkincare:!0},menshealth:{title:"Men's Health & Testosterone Optimization Plan",overview:"Restore vitality, strength, and hormonal balance with a personalized men's health approach. Whether you're dealing with low testosterone, declining energy, difficulty building muscle, or want to optimize sports performance — we address root causes with lab-guided hormone therapy, targeted supplements, and regenerative support.",assessment:"Testosterone naturally declines 1–2% per year after age 30. Low T causes fatigue, decreased muscle mass, low libido, mood changes, and weight gain. Sports performance and recovery also suffer. Lab testing reveals exactly where your levels stand and guides a personalized optimization plan.",treatments:[{name:"Free Testosterone Consultation",description:"Discuss symptoms, goals, and hormone testing options with our providers.",timing:"Start here — FREE"},{name:"Comprehensive Hormone Panel",description:"Blood work including total & free testosterone, DHEA-S, cortisol, thyroid, and metabolic markers.",timing:"After consultation"},{name:"Testosterone Optimization Therapy",description:"Customized bioidentical testosterone therapy based on your lab results and symptoms.",timing:"After results"},{name:"IV Therapy — Performance & Recovery",description:"Myers' Cocktail or custom IV drip to support energy, recovery, and peak performance.",timing:"Monthly or as needed"},{name:"Monthly Follow-Ups (first 3 months)",description:"Monitor labs, symptoms, and optimize dosing.",timing:"Months 1–3"}],supplements:[{name:"DHEA",timing:"Morning (lab-guided)",benefits:"Hormone precursor that supports testosterone production and adrenal vitality — especially valuable when DHEA-S levels are low"},{name:"Zinc",timing:"Morning with food",benefits:"Essential cofactor for testosterone synthesis — one of the most common deficiencies in men with low T"},{name:"Ashwagandha",timing:"Daily",benefits:"Clinically shown to increase testosterone by 15–17% in men — also reduces cortisol, improves sleep quality, and supports endurance"},{name:"Omega-3 Fish Oil",timing:"With meals",benefits:"Reduces systemic inflammation, supports cardiovascular health, and promotes healthy hormone metabolism"},{name:"CoQ10",timing:"Daily with a meal",benefits:"Mitochondrial energy support — fuels cellular performance, cardiovascular endurance, and recovery from exercise"},{name:"Magnesium Glycinate",timing:"Evening",benefits:"Boosts free testosterone levels (binds SHBG), supports deep sleep, muscle recovery, and stress resilience"},{name:"Collagen Peptides",timing:"Morning",benefits:"Supports joint integrity, tendon strength, and connective tissue — critical for active men and athletic recovery"}],nextSteps:"Optimizing testosterone and men's hormonal health can transform energy, physique, mood, and performance. Schedule your FREE consultation to get started with lab-guided testing and a personalized plan.",bookingType:"Free Men's Health Consultation",supplementShop:!0,skincareShop:!1},ivvitamins:{title:"IV Vitamin Therapy & Energy Optimization Plan",overview:"Replenish nutrients, boost energy, and support immune function with targeted IV therapy and supplementation. Direct delivery ensures maximum absorption.",assessment:"Chronic fatigue, poor energy, and dehydration can stem from nutrient deficiencies, but may also indicate underlying medical issues like thyroid disorders, anemia, insulin resistance, hormone imbalances, or vitamin deficiencies. We can perform a comprehensive panel to identify any underlying causes and ensure we're addressing the root issue, not just symptoms.",treatments:[{name:"Initial Consultation & Assessment",description:"Evaluate your symptoms and energy concerns. We'll discuss comprehensive lab testing to rule out underlying conditions like thyroid dysfunction, anemia, vitamin deficiencies, or metabolic issues that may be causing your fatigue.",timing:"Start here"},{name:"Comprehensive Blood Panel (if recommended)",description:"Testing to assess thyroid function, vitamin levels (B12, D, iron), metabolic markers, and other factors that could be contributing to fatigue and low energy.",timing:"After consultation"},{name:"Initial IV Therapy Session",description:"Choose Myers' Cocktail for energy, Hydration for recovery, or Immunity Boost for immune support - $150-300.",timing:"After assessment"}
394,{name:"Weekly or Bi-Weekly Sessions",description:"Regular IV therapy for sustained energy and wellness support.",timing:"First 4-8 weeks"},{name:"Treatment for Underlying Conditions",description:"If testing reveals thyroid issues, deficiencies, or other medical causes, we'll address these with appropriate treatment alongside IV therapy.",timing:"As determined by results"},{name:"Maintenance Plan",description:"Monthly IV therapy to maintain optimal nutrient levels.",timing:"Ongoing"}],supplements:[{name:"B-Complex Vitamins",timing:"Daily, morning",benefits:"Supports energy production between IV sessions. Essential for metabolism and neurological function."},{name:"Magnesium",timing:"Evening",benefits:"Supports energy, sleep, and muscle function. Reduces fatigue and improves mood."},{name:"Vitamin C (1000mg)",timing:"Morning",benefits:"Antioxidant support, immune function, and collagen production"},{name:"Vitamin D3",timing:"Morning",benefits:"Energy, mood, and immune support. Deficiency linked to chronic fatigue."},{name:"Omega-3 Fish Oil",timing:"With meals",benefits:"Reduces inflammation, supports brain health and energy production"}],nextSteps:"IV therapy delivers nutrients directly to your cells for immediate energy and wellness benefits. Book your first session to experience the difference.",bookingType:"IV Therapy Session",supplementShop:!0},primarycare:{title:"Primary Care & Preventative Health Plan",overview:"Establish ongoing care with Nurse Practitioner Vanessa for annual exams, chronic disease management, and preventative screenings. Available in-person or virtually.",assessment:"Regular primary care is essential for wellness checks, managing chronic conditions, preventative screenings, and having a trusted provider who knows your health history.",treatments:[{name:"Annual Wellness Exam",description:"Comprehensive physical, health screenings, and preventative care planning - $175-275.",timing:"Yearly"},{name:"Chronic Disease Management",description:"Ongoing care for conditions like diabetes, high blood pressure, thyroid issues.",timing:"As needed"},{name:"Routine Follow-Ups",description:"Monitor conditions, adjust medications, address new concerns.",timing:"As recommended"}],nextSteps:"Vanessa NP has over 20 years of healthcare experience. Book your annual exam or routine visit - virtual and in-person options available with cash pay discounts.",bookingType:"Primary Care Visit"},sickvisits:{title:"Sick Care Visit",overview:"Get care for acute illness in-person or virtually. Same-day appointments available for urgent concerns.",assessment:"Your symptoms need medical evaluation and treatment. Our providers can diagnose common conditions, prescribe medications, and provide follow-up care.",treatments:[{name:"Sick Visit",description:"In-person or virtual evaluation and treatment for acute illness. Starting at $250 with cash pay discounts.",timing:"Same-day or next-day available"}],nextSteps:"Not feeling well? Book a sick visit for prompt evaluation and treatment. Virtual and in-person options available.",bookingType:"Sick Visit"},microneedling:{title:"Microneedling Treatment Plan",overview:"Microneedling stimulates your skin's natural collagen production to improve texture, reduce scars, minimize pores, and rejuvenate your appearance. We strongly recommend adding PRP (platelet-rich plasma) to amplify your results significantly.",assessment:"Collagen loss, sun damage, scarring, and enlarged pores are addressed through controlled micro-injuries that activate your body's healing response. Adding your own PRP supercharges this process with concentrated growth factors — delivering up to 40% more collagen stimulation and faster recovery.",treatments:[{name:"Microneedling with PRP ⭐ Most Recommended",description:"Your platelet-rich plasma is drawn, concentrated, and applied during microneedling for dramatically enhanced collagen production, faster healing, and superior skin renewal. This is the gold standard — we highly recommend this over standard microneedling.",timing:"Series of 3 sessions, 4-6 weeks apart"},{name:"RF Microneedling",description:"Radio-frequency energy adds deep tissue tightening and remodeling to standard microneedling — ideal for skin laxity and deeper wrinkles.",timing:"Series of 3 sessions, 4-6 weeks a
394part"},{name:"Standard Microneedling",description:"Foundational collagen-stimulating treatment. Excellent results — and even better with PRP added.",timing:"Series of 3 sessions, 4-6 weeks apart"},{name:"Maintenance Sessions",description:"Quarterly sessions to sustain and build on your results long-term.",timing:"Every 3 months after initial series"}],homeRoutine:[{step:"Cleanser",morning:"Circadia gentle cleanser",evening:"Same, gentle massage",rationale:"Keep skin clean and prep for healing between sessions"},{step:"Treatment Serum",morning:"Circadia Vitamin C Reversal Serum",evening:"Circadia Nighttime Repair Plus",rationale:"Vitamin C protects and brightens; Vitamin A supports collagen at night"},{step:"Moisturizer",morning:"Hydrating peptide moisturizer",evening:"Same formula",rationale:"Supports skin barrier during the healing and remodeling process"},{step:"Protection",morning:"Circadia SPF 30+ (mandatory)",evening:"N/A",rationale:"Protect treated skin from sun damage — critical during healing"}],supplements:[{name:"Collagen Peptides",timing:"Morning",benefits:"Feeds the skin's collagen-building process — amplifies your microneedling results from the inside out"},{name:"Vitamin C (1000mg)",timing:"Morning with food",benefits:"Essential cofactor for collagen synthesis; also protects from oxidative damage"},{name:"Omega-3 Fish Oil",timing:"Evening",benefits:"Reduces post-treatment inflammation and supports overall skin health"},{name:"Zinc (30mg)",timing:"Morning with food",benefits:"Critical for wound healing and skin repair — supports the microneedling recovery process"}],products:[{name:"Circadia Vitamin C Reversal Serum",description:"Award-winning antioxidant serum",image:"https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/6951d4c5f53c7bd92a68d780/3b46e2673_serum71.png"},{name:"Circadia Nighttime Repair Plus",description:"Advanced anti-aging night treatment",image:"https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/6951d4c5f53c7bd92a68d780/b5e8d79c2_NighttimeRepairPLUS.png"}],nextSteps:"We strongly recommend starting with Microneedling + PRP for maximum results. Book your consultation and our providers will create your personalized series plan.",bookingType:"Microneedling Consultation",skincareShop:!0,supplementShop:!0},lashesbrows:{title:"Lash & Brow Enhancement Plan",overview:"Define your eyes and frame your face with our expert lash and brow services — including the LUSH Lashes bundle with FDA-approved Latisse for real lash growth. Wake up beautiful every day, no makeup required.",assessment:"Whether you want lifted, curled lashes, darker defined lashes, or genuinely fuller lash growth, we have the right solution. Our LUSH Lashes bundle combines Latisse (the only FDA-approved prescription lash growth treatment) with a professional lash lift and tint for a complete transformation.",treatments:[{name:"⭐ LUSH Lashes Bundle — Most Popular",description:"Our signature lash package: Latisse prescription + lash lift + lash tint. Grow your lashes fuller, longer, and darker with Latisse while keeping them perfectly lifted and defined. Real results in 16 weeks.",timing:"Bundle — contact for pricing"},{name:"Latisse® Prescription",description:"The ONLY FDA-approved treatment proven to grow eyelashes fuller, longer, and darker. Available exclusively in-clinic with a prescription. Clinically proven results in 16 weeks.",timing:"Applied nightly — results in 16 weeks"},{name:"Lash Lift",description:"Semi-permanent curl and lift of your natural lashes from root to tip. Wide-open, beautifully curled lashes without extensions — 6-8 week results.",timing:"45-60 min"},{name:"Lash Tint",description:"Darken and define your natural lashes with semi-permanent dye. Wake up with dark, defined lashes every day — pairs perfectly with lash lift.",timing:"30 min"},{name:"Brow Lamination",description:"Lift, set, and tame brow hairs for a full, fluffy feathered look lasting 6-8 weeks. Perfect for sparse or unruly brows.",timing:"45-60 min"},{name:"Brow Waxing & Tinting",description:"Expert shaping plus semi-permanent color for clean, defined, filled-in brows that last 4-6 weeks.",timing:"30-45 min"}],nextSteps:"Book your appointment online. Ask about our LUSH Lashes bundle — Latisse + lash lift + tint for the ultimate lash transformation. Same-day combination services are available.",bookingType:"Lash & Brow Appointment"},afterhours:{title:"LUSH After Hours Private Party Experience",overview:"An exclusive wellness party for you and up to 5 friends. Enjoy IV drips, jelly masks, refreshments, and quality time together in our luxurious space.",assessment:"Perfect for bridal parties, girls' nights, birthday celebrations, or any special occasion. A unique, relaxing group wellness experience.",treatments:[{name:"LUSH After Hours Party",description:"Private wellness party for up to 6 people with IV therapy, jelly masks, and refreshments. Available weekend mornings or evenings.",timing:"2-3 hours"}],nextSteps:"Create an unforgettable group wellness experience. Contact us through our booking portal to reserve your LUSH After Hours party.",bookingType:"After Hours Party"}};function lI(){const[e,t]=k.useState(1),[n,s]=k.useState(null),[i,l]=k.useState(null),[c,d]=k.useState([]),[f,m]=k.useState([]),[p,g]=k.useState(!1),[x,N]=k.useState(null),[b,w]=k.useState(null),[S,j]=k.useState({name:"",email:"",ph
394one:""}),[P,A]=k.useState(!1);k.useEffect(()=>{const L=new URLSearchParams(window.location.search).get("category");L==="wellness"?s("wellness"):L==="aesthetics"?s("aesthetics"):L==="primarycare"?s("primarycare"):L==="sickcare"&&s("sickcare")},[]);const E=()=>{t(2)},D=async()=>{var ne;g(!0);const B=t1[i],L=await bt.entities.Concern.create({category:n,subcategory:i,symptoms:c,severity:c.length>4?"severe":c.length>2?"moderate":"mild",user_name:S.name,user_email:S.email,user_phone:S.phone,recommendations:((ne=B==null?void 0:B.treatments)==null?void 0:ne.map(Q=>Q.name))||[]});w(L.id),g(!1),t(3)},V=e===1?33:e===2?66:100;return a.jsx("div",{className:"min-h-screen bg-stone-50 py-12 px-6",children:a.jsxs("div",{className:"max-w-3xl mx-auto",children:[a.jsxs(Z.div,{className:"text-center mb-8",initial:{opacity:0,y:20},animate:{opacity:1,y:0},children:[a.jsxs("h1",{className:"text-3xl md:text-4xl font-light text-stone-900 mb-3",children:[e===1&&"Tell Us About Your Concerns",e===2&&"Your Contact Information",e===3&&"Your Personalized Recommendations"]}),a.jsxs("p",{className:"text-stone-600 font-light",children:[e===1&&"Select your symptoms so we can recommend the best treatments",e===2&&"You're almost there! Just a few more details to see your personalized results",e===3&&"Based on your concerns, here are our top recommendations"]})]}),a.jsxs("div",{className:"mb-8",children:[a.jsx(GN,{value:V,className:"h-1.5 bg-stone-200"}),a.jsxs("div",{className:"flex justify-between mt-2 text-sm text-stone-400",children:[a.jsx("span",{className:e>=1?"text-[#D4AF37] font-medium":"",children:"Concerns"}),a.jsx("span",{className:e>=2?"text-[#D4AF37] font-medium":"",children:"Contact"}),a.jsx("span",{className:e>=3?"text-[#D4AF37] font-medium":"",children:"Recommendations"})]})]}),a.jsxs(Hn,{mode:"wait",children:[e===1&&a.jsxs(Z.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},exit:{opacity:0,x:-20},className:"bg-white rounded-3xl shadow-xl shadow-stone-200/50 p-8",children:[a.jsx(YL,{selectedCategory:n,setSelectedCategory:s,selectedConcern:i,setSelectedConcern:l,selectedSymptoms:c,setSelectedSymptoms:d}),a.jsx("div",{className:"mt-8 flex justify-end",children:a.jsx(ae,{onClick:E,disabled:c.length===0||p,className:"bg-[#D4AF37] hover:bg-[#C19B2E] text-white px-8 py-6 rounded-xl text-lg shadow-lg shadow-[#D4AF37]/20",children:p?a.jsxs(a.Fragment,{children:[a.jsx(Po,{className:"w-5 h-5 mr-2 animate-spin"}),"Analyzing..."]}):a.jsxs(a.Fragment,{children:["Get Recommendations",a.jsx(rn,{className:"w-5 h-5 ml-2"})]})})})]},"step1"),e===2&&a.jsx(Z.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},exit:{opacity:0,x:-20},className:"bg-white rounded-3xl shadow-xl shadow-stone-200/50 p-8",children:a.jsxs("div",{className:"space-y-4",children:[a.jsxs("div",{className:"space-y-2",children:[a.jsx(Ke,{htmlFor:"name",children:"Full Name *"}),a.jsx(it,{id:"name",placeholder:"Your name",value:S.name,onChange:B=>j({...S,name:B.target.value}),className:"rounded-xl",required:!0})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsx(Ke,{htmlFor:"email",children:"Email Address *"}),a.jsx(it,{id:"email",type:"email",placeholder:"[email protected]",value:S.email,onChange:B=>j({...S,email:B.target.value}),className:"rounded-xl",required:!0})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsx(Ke,{htmlFor:"phone",children:"Phone Number *"}),a.jsx(it,{id:"phone",type:"tel",placeholder:"(555) 123-4567",value:S.phone,onChange:B=>j({...S,phone:B.target.value}),className:"rounded-xl",required:!0})]}),a.jsxs("div",{className:"flex items-start space-x-3 p-3 rounded-lg border border-stone-200 bg-stone-50",children:[a.jsx(gs,{id:"consent",checked:S.consent||!1,onCheckedChange:B=>j({...S,consent:B}),required:!0}),a.jsx(Ke,{htmlFor:"consent",className:"cursor-pointer text-sm text-stone-700 leading-relaxed",children:"I agree to receive information via email and text about services, upcoming specials, and wellness tips from Lush Health. *"})]}),a.jsx("div",{className:"bg-[#D4AF37]/10 rounded-xl p-4 mt-6",children:a.jsx("p",{className:"text-sm text-stone-700",children:"Enter your info to see your personalized treatment plan and recommendations right away!"})}),a.jsxs("div",{className:"flex gap-4 pt-4",children:[a.jsxs(ae,{variant:"outline",onClick:()=>t(1),className:"rounded-xl",children:[a.jsx(zu,{className:"w-4 h-4 mr-2"}),"Back"]}),a.jsx(ae,{onClick:D,disabled:!S.name||!S.email||!S.phone||!S.consent||p,className:"flex-1 bg-[#D4AF37] hover:bg-[#C19B2E] text-white rounded-xl",children:p?a.jsxs(a.Fragment,{children:[a.jsx(Po,{className:"w-5 h-5 mr-2 animate-spin"}),"Creating Your Plan..."]}):a.jsxs(a.Fragment,{children:["Get My Recommendations",a.jsx(rn,{className:"w-5 h-5 ml-2"})]})})]})]})},"step2"),e===3&&a.jsxs(Z.div,{initial:{opacity:0,x:20}
394,animate:{opacity:1,x:0},exit:{opacity:0,x:-20},children:[a.jsx(aI,{plan:t1[i],selectedSymptoms:c}),a.jsx("div",{className:"flex gap-4",children:a.jsxs(ae,{variant:"outline",onClick:()=>t(2),className:"rounded-xl border-stone-200",children:[a.jsx(zu,{className:"w-4 h-4 mr-2"}),"Back"]})})]},"step3")]})]})})}const Hg=k.forwardRef(({className:e,...t},n)=>a.jsx("textarea",{className:Re("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:n,...t}));Hg.displayName="Textarea";function Ve(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 xn(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function zt(e,t){const n=Ve(e);return isNaN(t)?xn(e,NaN):(t&&n.setDate(n.getDate()+t),n)}function qn(e,t){const n=Ve(e);if(isNaN(t))return xn(e,NaN);if(!t)return n;const s=n.getDate(),i=xn(e,n.getTime());i.setMonth(n.getMonth()+t+1,0);const l=i.getDate();return s>=l?i:(n.setFullYear(i.getFullYear(),i.getMonth(),s),n)}const qg=6048e5,cI=864e5;let uI={};function zl(){return uI}function xs(e,t){var d,f,m,p;const n=zl(),s=(t==null?void 0:t.weekStartsOn)??((f=(d=t==null?void 0:t.locale)==null?void 0:d.options)==null?void 0:f.weekStartsOn)??n.weekStartsOn??((p=(m=n.locale)==null?void 0:m.options)==null?void 0:p.weekStartsOn)??0,i=Ve(e),l=i.getDay(),c=(l<s?7:0)+l-s;return i.setDate(i.getDate()-c),i.setHours(0,0,0,0),i}function Si(e){return xs(e,{weekStartsOn:1})}function Wj(e){const t=Ve(e),n=t.getFullYear(),s=xn(e,0);s.setFullYear(n+1,0,4),s.setHours(0,0,0,0);const i=Si(s),l=xn(e,0);l.setFullYear(n,0,4),l.setHours(0,0,0,0);const c=Si(l);return t.getTime()>=i.getTime()?n+1:t.getTime()>=c.getTime()?n:n-1}function Ni(e){const t=Ve(e);return t.setHours(0,0,0,0),t}function rd(e){const t=Ve(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function ds(e,t){const n=Ni(e),s=Ni(t),i=+n-rd(n),l=+s-rd(s);return Math.round((i-l)/cI)}function dI(e){const t=Wj(e),n=xn(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),Si(n)}function Sp(e,t){const n=t*7;return zt(e,n)}function hI(e,t){return qn(e,t*12)}function fI(e){let t;return e.forEach(function(n){const s=Ve(n);(t===void 0||t<s||isNaN(Number(s)))&&(t=s)}),t||new Date(NaN)}function mI(e){let t;return e.forEach(n=>{const s=Ve(n);(!t||t>s||isNaN(+s))&&(t=s)}),t||new Date(NaN)}function on(e,t){const n=Ni(e),s=Ni(t);return+n==+s}function Gg(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function pI(e){if(!Gg(e)&&typeof e!="number")return!1;const t=Ve(e);return!isNaN(Number(t))}function xl(e,t){const n=Ve(e),s=Ve(t),i=n.getFullYear()-s.getFullYear(),l=n.getMonth()-s.getMonth();return i*12+l}function gI(e,t,n){const s=xs(e,n),i=xs(t,n),l=+s-rd(s),c=+i-rd(i);return Math.round((l-c)/qg)}function Yg(e){const t=Ve(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function cn(e){const t=Ve(e);return t.setDate(1),t.setHours(0,0,0,0),t}function Hj(e){const t=Ve(e),n=xn(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function Kg(e,t){var d,f,m,p;const n=zl(),s=(t==null?void 0:t.weekStartsOn)??((f=(d=t==null?void 0:t.locale)==null?void 0:d.options)==null?void 0:f.weekStartsOn)??n.weekStartsOn??((p=(m=n.locale)==null?void 0:m.options)==null?void 0:p.weekStartsOn)??0,i=Ve(e),l=i.getDay(),c=(l<s?-7:0)+6-(l-s);return i.setDate(i.getDate()+c),i.setHours(23,59,59,999),i}function qj(e){return Kg(e,{weekStartsOn:1})}const yI={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"}},vI=(e,t,n)=>{let s;const i=yI[e];return typeof i=="string"?s=i:t===1?s=i.one:s=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+s:s+" ago":s};function pm(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const xI={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},wI={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},bI={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},kI={date:pm({formats:xI,defaultWidth:"full"}),time:pm({formats:wI,defaultWidth:"full"}),dateTime:pm({formats:bI,defaultWidth:"full"})},SI={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},NI=(e,t,n,s)=>SI[e];function Va(e){return(t,n)=>{const s=n!=null&&n.context?String(n.context):"standalone";let i;if(s==="formatting"&&e.formattingValues){const c=e.defaultFormattingWidth||e.defaultWidth,d=n!=null&&n.width?String(n.width):c;i=e.formattingValues[d]||e.formattingValues[c]}else{const c=e.defaultWidth,d=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[d]||e.values[c]}const l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}const jI={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},CI={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},AI={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"]},PI={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","Frid
394ay","Saturday"]},EI={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"}},TI={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"}},RI=(e,t)=>{const n=Number(e),s=n%100;if(s>20||s<10)switch(s%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},_I={ordinalNumber:RI,era:Va({values:jI,defaultWidth:"wide"}),quarter:Va({values:CI,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Va({values:AI,defaultWidth:"wide"}),day:Va({values:PI,defaultWidth:"wide"}),dayPeriod:Va({values:EI,defaultWidth:"wide",formattingValues:TI,defaultFormattingWidth:"wide"})};function za(e){return(t,n={})=>{const s=n.width,i=s&&e.matchPatterns[s]||e.matchPatterns[e.defaultMatchWidth],l=t.match(i);if(!l)return null;const c=l[0],d=s&&e.parsePatterns[s]||e.parsePatterns[e.defaultParseWidth],f=Array.isArray(d)?MI(d,g=>g.test(c)):DI(d,g=>g.test(c));let m;m=e.valueCallback?e.valueCallback(f):f,m=n.valueCallback?n.valueCallback(m):m;const p=t.slice(c.length);return{value:m,rest:p}}}function DI(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function MI(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function FI(e){return(t,n={})=>{const s=t.match(e.matchPattern);if(!s)return null;const i=s[0],l=t.match(e.parsePattern);if(!l)return null;let c=e.valueCallback?e.valueCallback(l[0]):l[0];c=n.valueCallback?n.valueCallback(c):c;const d=t.slice(i.length);return{value:c,rest:d}}}const OI=/^(\d+)(th|st|nd|rd)?/i,LI=/\d+/i,II={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},BI={any:[/^b/i,/^(a|c)/i]},VI={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},zI={any:[/1/i,/2/i,/3/i,/4/i]},UI={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},$I={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]},WI={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},HI={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]},qI={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},GI={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}},YI={ordinalNumber:FI({matchPattern:OI,parsePattern:LI,valueCallback:e=>parseInt(e,10)}),era:za({matchPatterns:II,defaultMatchWidth:"wide",parsePatterns:BI,defaultParseWidth:"any"}),quarter:za({matchPatterns:VI,defaultMatchWidth:"wide",parsePatterns:zI,defaultParseWidth:"any",valueCallback:e=>e+1}),month:za({matchPatterns:UI,defaultMatchWidth:"wide",parsePatterns:$I,defaultParseWidth:"any"}),day:za({matchPatterns:WI,defaultMatchWidth:"wide",parsePatterns:HI,defaultParseWidth:"any"}),dayPeriod:za({matchPatterns:qI,defaultMatchWidth:"any",parsePatterns:GI,defaultParseWidth:"any"})},Gj={code:"en-US",formatDistance:vI,formatLong:kI,formatRelative:NI,localize:_I,match:YI,options:{weekStartsOn:0,firstWeekContainsDate:1}};function KI(e){const t=Ve(e);return ds(t,Hj(t))+1}function Yj(e){const t=Ve(e),n=+Si(t)-+dI(t);return Math.round(n/qg)+1}function Kj(e,t){var p,g,x,N;const n=Ve(e),s=n.getFullYear(),i=zl(),l=(t==null?void 0:t.firstWeekContainsDate)??((g=(p=t==null?void 0:t.locale)==null?void 0:p.options)==null?void 0:g.firstWeekContainsDate)??i.firstWeekContainsDate??((N=(x=i.locale)==null?void 0:x.options)==null?void 0:N.firstWeekContainsDate)??1,c=xn(e,0);c.setFullYear(s+1,0,l),c.setHours(0,0,0,0);const d=xs(c,t),f=xn(e,0);f.setFullYear(s,0,l),f.setHours(0,0,0,0);const m=xs(f,t);return n.getTime()>=d.getTime()?s+1:n.getTime()>=m.getTime()?s:s-1}function QI(e,t){var d,f,m,p;const n=zl(),s=(t==null?void 0:t.firstWeekContainsDate)??((f=(d=t==null?void 0:t.locale)==null?void 0:d.options)==null?void 0:f.firstWeekContainsDate)??n.firstWeekContainsDate??((p=(m=n.locale)==null?void 0:m.options)==null?void 0:p.firstWeekContainsDate)??1,i=Kj(e,t),l=xn(e,0);return l.setFullYear(i,0,s),l.setHours(0,0,0,0),xs(l,t)}function Qj(e,t){const n=Ve(e),s=+xs(n,t)-+QI(n,t);return Math.round(s/qg)+1}function He(e,t){const n=e<0?"-":"",s=Math.abs(e).toString().padStart(t,"0");return n+s}const ur={y(e,t){const n=e.getFullYear(),s=n>0?n:1-n;return He(t==="yy"?s%100:s,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):He(n+1,2)},d(e,t){return He(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return He(e.getHours()%12||12,t.length)},H(e,t){return He(e.getHours(),t.length)},m(e,t){return He(e.getMinutes(),t.length)},s(e,t){return He(e.getSeconds(),t.length)},S(e,t){const n=t.length,s=e.getMilliseconds(),i=Math.trunc(s*Math.pow(10,n-3));return He(i,t.length)}},oo={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},n1={G:function(e,t,n){const s=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(s,{width:"abbreviated"});case"GGGGG":return n.era(s,{width:"narrow"});case"GGGG":default:return n.era(s,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const s=e.getFullYear(),i=s>0?s:1-s;return n.ordinalNumber(i,{unit:"year"})}return ur.y(e,t)},Y:function(e,t,n,s){const i=Kj(e,s),l=i>0?i:1-i;if(t==="YY"){const c=l%100;return He(c,2)}return t==="Yo"?n.ordinalNumber(l,{unit:"year"}):He(l,t.length)},R:function(e,t){const n=Wj(e);return He(n,t.length)},u:function(e,t){const n=e.getFullYear();return He(n,t.length)},Q:function(e,t,n){const s=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(s);case"QQ":return He(s,2);case"Qo":return n.ordinalNumber(s,{unit:"quarter"});case"QQQ":return n.quarter(s,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(s,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(s,{width:"wide",context:"formatting"})}},q:function(e,t,n){const s=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(s);case"qq":return He(s,2);case"qo":return n.ordinalNumber(s,{unit:"quarter"});case"qqq":return n.quarter(s,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(s,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(s,{width:"wide",context:"standalone"})}},M:function(e,t,n){const s=e.getMonth();switch(t){case"M":case"MM":return ur.M(e,t);case"Mo":return n.ordinalNumber(s+1,{unit:"month"});case"MMM":return n.month(s,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(s,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(s,{width:"wide",context:"formatting"})}},L:function(e,t,n){const s=e.getMonth();switch(t){case"L":return String(s+1);case"LL":return He(s+1,2);case"Lo":return n.ordinalNumber(s+1,{unit:"month"});case"LLL":return n.month(s,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(s,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(s,{width:"wide",context:"standalone"})}},w:function(e,t,n,s){const i=Qj(e,s);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):He(i,t.length)},I:function(e,t,n){const s=Yj(e);return t==="Io"?n.ordinalNumber(s,{unit:"week"}):He(s,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):ur.d(e,t)},D:function(e,t,n){const s=KI(e);return t==="Do"?n.ordinalNumber(s,{unit:"dayOfYear"}):He(s,t.length)},E:function(e,t,n){const s=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(s,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(s,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(s,{width:"short",context:"formatting"});case"EEEE":default:return n.day(s,{width:"wide",context:"formatting"})}},e:function(e,t,n,s){const i=e.getDay(),l=(i-s.weekStartsOn+8)%7||7;switch(t){case"e":return String(l);case"ee":return He(l,2);case"eo":return n.ordinalNumber(l,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,s){const i=e.getDay(),l=(i-s.weekStartsOn+8)%7||7;switch(t){case"c":return String(l);case"cc":return He(l,t.length);case"co":return n.ordinalNumber(l,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const s=e.getDay(),i=s===0?7:s;switch(t){case"i":return String(i);case"ii":return He(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(s,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(s,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(s,{width:"short",context:"formatting"});case"iiii":default:return n.day(s,{width:"wide",context:"formatting"})}},a:function(e,t,n){const i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){const s=e.getHours();let i;switch(s===12?i=oo.noon:s===0?i=oo.midnight:i=s/12>
vendor: 4,693 bytes, line 394
394=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){const s=e.getHours();let i;switch(s>=17?i=oo.evening:s>=12?i=oo.afternoon:s>=4?i=oo.morning:i=oo.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let s=e.getHours()%12;return s===0&&(s=12),n.ordinalNumber(s,{unit:"hour"})}return ur.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):ur.H(e,t)},K:function(e,t,n){const s=e.getHours()%12;return t==="Ko"?n.ordinalNumber(s,{unit:"hour"}):He(s,t.length)},k:function(e,t,n){let s=e.getHours();return s===0&&(s=24),t==="ko"?n.ordinalNumber(s,{unit:"hour"}):He(s,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):ur.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):ur.s(e,t)},S:function(e,t){return ur.S(e,t)},X:function(e,t,n){const s=e.getTimezoneOffset();if(s===0)return"Z";switch(t){case"X":return r1(s);case"XXXX":case"XX":return si(s);case"XXXXX":case"XXX":default:return si(s,":")}},x:function(e,t,n){const s=e.getTimezoneOffset();switch(t){case"x":return r1(s);case"xxxx":case"xx":return si(s);case"xxxxx":case"xxx":default:return si(s,":")}},O:function(e,t,n){const s=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+s1(s,":");case"OOOO":default:return"GMT"+si(s,":")}},z:function(e,t,n){const s=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+s1(s,":");case"zzzz":default:return"GMT"+si(s,":")}},t:function(e,t,n){const s=Math.trunc(e.getTime()/1e3);return He(s,t.length)},T:function(e,t,n){const s=e.getTime();return He(s,t.length)}};function s1(e,t=""){const n=e>0?"-":"+",s=Math.abs(e),i=Math.trunc(s/60),l=s%60;return l===0?n+String(i):n+String(i)+t+He(l,2)}function r1(e,t){return e%60===0?(e>0?"-":"+")+He(Math.abs(e)/60,2):si(e,t)}function si(e,t=""){const n=e>0?"-":"+",s=Math.abs(e),i=He(Math.trunc(s/60),2),l=He(s%60,2);return n+i+t+l}const i1=(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"});case"PPPP":default:return t.date({width:"full"})}},Xj=(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"});case"pppp":default:return t.time({width:"full"})}},XI=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],s=n[1],i=n[2];if(!i)return i1(e,t);let l;switch(s){case"P":l=t.dateTime({width:"short"});break;case"PP":l=t.dateTime({width:"medium"});break;case"PPP":l=t.dateTime({width:"long"});break;case"PPPP":default:l=t.dateTime({width:"full"});break}return l.replace("{{date}}",i1(s,t)).replace("{{time}}",Xj(i,t))},JI={p:Xj,P:XI},ZI=/^D+$/,e8=/^Y+$/,t8=["D","DD","YY","YYYY"];function n8(e){return ZI.test(e)}function s8(e){return e8.test(e)}function r8(e,t,n){const s=i8(e,t,n);if(console.warn(s),t8.includes(e))throw new RangeError(s)}function i8(e,t,n){const s=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${s} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const o8=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,a8=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,l8=/^'([^]*?)'?$/,c8=/''/g,u8=/[a-zA-Z]/;function Bs(e,t,n){var p,g,x,N,b,w,S,j;const s=zl(),i=(n==null?void 0:n.locale)??s.locale??Gj,l=(n==null?void 0:n.firstWeekContainsDate)??((g=(p=n==null?void 0:n.locale)==null?void 0:p.options)==null?void 0:g.firstWeekContainsDate)??s.firstWeekContainsDate??((N=(x=s.locale)==null?void 0:x.options)==null?void 0:N.firstWeekContainsDate)??1,c=(n==null?void 0:n.weekStartsOn)??((w=(b=n==null?void 0:n.locale)==null?void 0:b.options)==null?void 0:w.weekStartsOn)??s.weekStartsOn??((j=(S=s.locale)==null?void 0:S.options)==null?void 0:j.weekStartsOn)??0,d=Ve(e);if(!pI(d))throw new RangeError("Invalid time value");let f=t.match(a8).map(P=>{const A=P[0];if(A==="p"||A==="P"){const E=JI[A];return E(P,i.formatLong)}return P}).join("").match(o8).map(P=>{if(P==="''")return{isToken:!1,value:"'"};const A=P[0];if(A==="'")return{isToken:!1,value:d8(P)};if(n1[A])return{isToken:!0,value:P};
394if(A.match(u8))throw new RangeError("Format string contains an unescaped latin alphabet character `"+A+"`");return{isToken:!1,value:P}});i.localize.preprocessor&&(f=i.localize.preprocessor(d,f));const m={firstWeekContainsDate:l,weekStartsOn:c,locale:i};return f.map(P=>{if(!P.isToken)return P.value;const A=P.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&s8(A)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&n8(A))&&r8(A,t,String(e));const E=n1[A[0]];return E(d,A,i.localize,m)}).join("")}function d8(e){const t=e.match(l8);return t?t[1].replace(c8,"'"):e}function h8(e){const t=Ve(e),n=t.getFullYear(),s=t.getMonth(),i=xn(e,0);return i.setFullYear(n,s+1,0),i.setHours(0,0,0,0),i.getDate()}function f8(e){return Math.trunc(+Ve(e)/1e3)}function m8(e){const t=Ve(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(0,0,0,0),t}function p8(e,t){return gI(m8(e),cn(e),t)+1}function Np(e,t){const n=Ve(e),s=Ve(t);return n.getTime()>s.getTime()}function Qg(e,t){const n=Ve(e),s=Ve(t);return+n<+s}function Xg(e,t){const n=Ve(e),s=Ve(t);return n.getFullYear()===s.getFullYear()&&n.getMonth()===s.getMonth()}function g8(e,t){const n=Ve(e),s=Ve(t);return n.getFullYear()===s.getFullYear()}function gm(e,t){return zt(e,-t)}function ym(e,t){const n=Ve(e),s=n.getFullYear(),i=n.getDate(),l=xn(e,0);l.setFullYear(s,t,15),l.setHours(0,0,0,0);const c=h8(l);return n.setMonth(t,Math.min(i,c)),n}function o1(e,t){const n=Ve(e);return isNaN(+n)?xn(e,NaN):(n.setFullYear(t),n)}function y8(){return Ni(Date.now())}var Ne=function(){return Ne=Object.assign||function(t){for(var n,s=1,i=arguments.length;s<i;s++){n=arguments[s];for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(t[l]=n[l])}return t},Ne.apply(this,arguments)};function v8(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,s=Object.getOwnPropertySymbols(e);i<s.length;i++)t.indexOf(s[i])<0&&Object.prototype.propertyIsEnumerable.call(e,s[i])&&(n[s[i]]=e[s[i]]);return n}function Jj(e,t,n){for(var s=0,i=t.length,l;s<i;s++)(l||!(s in t))&&(l||(l=Array.prototype.slice.call(t,0,s)),l[s]=t[s]);return e.concat(l||Array.prototype.slice.call(t))}function Ul(e){return e.mode==="multiple"}function $l(e){return e.mode==="range"}function Ed(e){return e.mode==="single"}var x8={root:"rdp",multiple_months:"rdp-multiple_months",with_weeknumber:"rdp-with_weeknumber",vhidden:"rdp-vhidden",button_reset:"rdp-button_reset",button:"rdp-button",caption:"rdp-caption",caption_start:"rdp-caption_start",caption_end:"rdp-caption_end",caption_between:"rdp-caption_between",caption_label:"rdp-caption_label",caption_dropdowns:"rdp-caption_dropdowns",dropdown:"rdp-dropdown",dropdown_month:"rdp-dropdown_month",dropdown_year:"rdp-dropdown_year",dropdown_icon:"rdp-dropdown_icon",months:"rdp-months",month:"rdp-month",table:"rdp-table",tbody:"rdp-tbody",tfoot:"rdp-tfoot",head:"rdp-head",head_row:"rdp-head_row",head_cell:"rdp-head_cell",nav:"rdp-nav",nav_button:"rdp-nav_button",nav_button_previous:"rdp-nav_button_previous",nav_button_next:"rdp-nav_button_next",nav_icon:"rdp-nav_icon",row:"rdp-row",weeknumber:"rdp-weeknumber",cell:"rdp-cell",day:"rdp-day",day_today:"rdp-day_today",day_outside:"rdp-day_outside",day_selected:"rdp-day_selected",day_disabled:"rdp-day_disabled",day_hidden:"rdp-day_hidden",day_range_start:"rdp-day_range_start",day_range_end:"rdp-day_range_end",day_range_middle:"rdp-day_range_middle"};function w8(e,t){return Bs(e,"LLLL y",t)}function b8(e,t){return Bs(e,"d",t)}function k8(e,t){return Bs(e,"LLLL",t)}function S8(e){return"".concat(e)}function N8(e,t){return Bs(e,"cccccc",t)}function j8(e,t){return Bs(e,"yyyy",t)}var C8=Object.freeze({__proto__:null,formatCaption:w8,formatDay:b8,formatMonthCaption:k8,formatWeekNumber:S8,formatWeekdayName:N8,formatYearCaption:j8}),A8=function(e,t,n){return Bs(e,"do MMMM (EEEE)",n)},P8=function(){return"Month: "},E8=function(){return"Go to next month"},T8=function(){return"Go to previous month"},R8=function(e,t){return Bs(e,"cccc",t)},_8=function(e){return"Week n. ".concat(e)},D8=function(){return"Year: "},M8=Object.freeze({__proto__:null,labelDay:A8,labelMonthDropdown:P8,labelNext:E8,labelPrevious:T8,labelWeekNumber:_8,labelWeekday:R8,labelYearDropdown:D8});function F8(){var e="buttons",t=x8,n=Gj,s={},i={},l=1,c={},d=new Date;return{captionLayout:e,classNames:t,formatters:C8,labels:M8,locale:n,modifiersClassNames:s,modifiers:i,numberOfMonths:l,styles:c,today:d,mode:"default"}}function O8(e){var t=e.fromYear,n=e.toYear,s=e.fromMonth,i=e.toMonth,l=e.fromDate,c=e.toDate;return s?l=cn(s):t&&(l=new Date(t,0,1)),i?c=Yg(i):n&&(c=new Date(n,11,31)),{fromDate:l?Ni(l):void 0,toDate:c?Ni(c):void 0}}var Zj=k.createContext(void 0);function L8(e){var t,n=e.initialProps,s=F8(),i=O8(n),l=i.fromDate,c=i.toDate,d=(t=n.captionLayout)!==null&&t!==void 0?t:s.captionLayout;d!=="buttons"&&(!l||!c)&&(d="buttons");var f;(Ed(n)||Ul(n)||$l(n))&&(f=n.onSelect);var m=Ne(Ne(Ne({},s),n),{captionLayout:d,classNames:Ne(Ne({},s.classNames),n.classNames),components:Ne({}
394,n.components),formatters:Ne(Ne({},s.formatters),n.formatters),fromDate:l,labels:Ne(Ne({},s.labels),n.labels),mode:n.mode||s.mode,modifiers:Ne(Ne({},s.modifiers),n.modifiers),modifiersClassNames:Ne(Ne({},s.modifiersClassNames),n.modifiersClassNames),onSelect:f,styles:Ne(Ne({},s.styles),n.styles),toDate:c});return a.jsx(Zj.Provider,{value:m,children:e.children})}function Xe(){var e=k.useContext(Zj);if(!e)throw new Error("useDayPicker must be used within a DayPickerProvider.");return e}function eC(e){var t=Xe(),n=t.locale,s=t.classNames,i=t.styles,l=t.formatters.formatCaption;return a.jsx("div",{className:s.caption_label,style:i.caption_label,"aria-live":"polite",role:"presentation",id:e.id,children:l(e.displayMonth,{locale:n})})}function I8(e){return a.jsx("svg",Ne({width:"8px",height:"8px",viewBox:"0 0 120 120","data-testid":"iconDropdown"},e,{children:a.jsx("path",{d:"M4.22182541,48.2218254 C8.44222828,44.0014225 15.2388494,43.9273804 19.5496459,47.9996989 L19.7781746,48.2218254 L60,88.443 L100.221825,48.2218254 C104.442228,44.0014225 111.238849,43.9273804 115.549646,47.9996989 L115.778175,48.2218254 C119.998577,52.4422283 120.07262,59.2388494 116.000301,63.5496459 L115.778175,63.7781746 L67.7781746,111.778175 C63.5577717,115.998577 56.7611506,116.07262 52.4503541,112.000301 L52.2218254,111.778175 L4.22182541,63.7781746 C-0.0739418023,59.4824074 -0.0739418023,52.5175926 4.22182541,48.2218254 Z",fill:"currentColor",fillRule:"nonzero"})}))}function tC(e){var t,n,s=e.onChange,i=e.value,l=e.children,c=e.caption,d=e.className,f=e.style,m=Xe(),p=(n=(t=m.components)===null||t===void 0?void 0:t.IconDropdown)!==null&&n!==void 0?n:I8;return a.jsxs("div",{className:d,style:f,children:[a.jsx("span",{className:m.classNames.vhidden,children:e["aria-label"]}),a.jsx("select",{name:e.name,"aria-label":e["aria-label"],className:m.classNames.dropdown,style:m.styles.dropdown,value:i,onChange:s,children:l}),a.jsxs("div",{className:m.classNames.caption_label,style:m.styles.caption_label,"aria-hidden":"true",children:[c,a.jsx(p,{className:m.classNames.dropdown_icon,style:m.styles.dropdown_icon})]})]})}function B8(e){var t,n=Xe(),s=n.fromDate,i=n.toDate,l=n.styles,c=n.locale,d=n.formatters.formatMonthCaption,f=n.classNames,m=n.components,p=n.labels.labelMonthDropdown;if(!s)return a.jsx(a.Fragment,{});if(!i)return a.jsx(a.Fragment,{});var g=[];if(g8(s,i))for(var x=cn(s),N=s.getMonth();N<=i.getMonth();N++)g.push(ym(x,N));else for(var x=cn(new Date),N=0;N<=11;N++)g.push(ym(x,N));var b=function(S){var j=Number(S.target.value),P=ym(cn(e.displayMonth),j);e.onChange(P)},w=(t=m==null?void 0:m.Dropdown)!==null&&t!==void 0?t:tC;return a.jsx(w,{name:"months","aria-label":p(),className:f.dropdown_month,style:l.dropdown_month,onChange:b,value:e.displayMonth.getMonth(),caption:d(e.displayMonth,{locale:c}),children:g.map(function(S){return a.jsx("option",{value:S.getMonth(),children:d(S,{locale:c})},S.getMonth())})})}function V8(e){var t,n=e.displayMonth,s=Xe(),i=s.fromDate,l=s.toDate,c=s.locale,d=s.styles,f=s.classNames,m=s.components,p=s.formatters.formatYearCaption,g=s.labels.labelYearDropdown,x=[];if(!i)return a.jsx(a.Fragment,{});if(!l)return a.jsx(a.Fragment,{});for(var N=i.getFullYear(),b=l.getFullYear(),w=N;w<=b;w++)x.push(o1(Hj(new Date),w));var S=function(P){var A=o1(cn(n),Number(P.target.value));e.onChange(A)},j=(t=m==null?void 0:m.Dropdown)!==null&&t!==void 0?t:tC;return a.jsx(j,{name:"years","aria-label":g(),className:f.dropdown_year,style:d.dropdown_year,onChange:S,value:n.getFullYear(),caption:p(n,{locale:c}),children:x.map(function(P){return a.jsx("option",{value:P.getFullYear(),children:p(P,{locale:c})},P.getFullYear())})})}function z8(e,t){var n=k.useState(e),s=n[0],i=n[1],l=t===void 0?s:t;return[l,i]}function U8(e){var t=e.month,n=e.defaultMonth,s=e.today,i=t||n||s||new Date,l=e.toDate,c=e.fromDate,d=e.numberOfMonths,f=d===void 0?1:d;if(l&&xl(l,i)<0){var m=-1*(f-1);i=qn(l,m)}return c&&xl(i,c)<0&&(i=c),cn(i)}function $8(){var e=Xe(),t=U8(e),n=z8(t,e.month),s=n[0],i=n[1],l=function(c){var d;if(!e.disableNavigation){var f=cn(c);i(f),(d=e.onMonthChange)===null||d===void 0||d.call(e,f)}};return[s,l]}function W8(e,t){for(var n=t.reverseMonths,s=t.numberOfMonths,i=cn(e),l=cn(qn(i,s)),c=xl(l,i),d=[],f=0;f<c;f++){var m=qn(i,f);d.push(m)}return n&&(d=d.reverse()),d}function H8(e,t){if(!t.disableNavigation){var n=t.toDate,s=t.pagedNavigation,i=t.numberOfMonths,l=i===void 0?1:i,c=s?l:1,d=cn(e);if(!n)return qn(d,c);var f=xl(n,e);if(!(f<l))return qn(d,c)}}function q8(e,t){if(!t.disableNavigation){var n=t.fromDate,s=t.pagedNavigation,i=t.numberOfMonths,l=i===void 0?1:i,c=s?l:1,d=cn(e);if(!n)return qn(d,-c);var f=xl(d,n);if(!(f<=0))return qn(d,-c)}}var nC=k.createContext(void 0);function G8(e){var t=Xe(),n=$8(),s=n[0],i=n[1],l=W8(s,t),c=H8(s,t),d=q8(s,t),f=function(g){return l.some(function(x){return Xg(g,x)})},m=function(g,x){f(g)||(x&&Qg(g,x)?i(qn(g,1+t.numberOfMonths*-1)):i(g))},p={currentMonth:s,displayMonths:l,goToMonth:i,goToDate:m,previousMonth:d,nextMonth:c,isDateDisplayed:f};return a.jsx(nC.Provider,{value:p,children:e.children})}function Wl(){var e=k.useContext(nC);if(!e)throw new Error("useNavigation must be used within a NavigationProvider");return e}function a1(e){var t,n=Xe(),s=n.classNames,i=n.styles,l=n.components,c=Wl().goToMonth,d=function(p){c(qn(p,e.displayIndex?-e.dis
394playIndex:0))},f=(t=l==null?void 0:l.CaptionLabel)!==null&&t!==void 0?t:eC,m=a.jsx(f,{id:e.id,displayMonth:e.displayMonth});return a.jsxs("div",{className:s.caption_dropdowns,style:i.caption_dropdowns,children:[a.jsx("div",{className:s.vhidden,children:m}),a.jsx(B8,{onChange:d,displayMonth:e.displayMonth}),a.jsx(V8,{onChange:d,displayMonth:e.displayMonth})]})}function Y8(e){return a.jsx("svg",Ne({width:"16px",height:"16px",viewBox:"0 0 120 120"},e,{children:a.jsx("path",{d:"M69.490332,3.34314575 C72.6145263,0.218951416 77.6798462,0.218951416 80.8040405,3.34314575 C83.8617626,6.40086786 83.9268205,11.3179931 80.9992143,14.4548388 L80.8040405,14.6568542 L35.461,60 L80.8040405,105.343146 C83.8617626,108.400868 83.9268205,113.317993 80.9992143,116.454839 L80.8040405,116.656854 C77.7463184,119.714576 72.8291931,119.779634 69.6923475,116.852028 L69.490332,116.656854 L18.490332,65.6568542 C15.4326099,62.5991321 15.367552,57.6820069 18.2951583,54.5451612 L18.490332,54.3431458 L69.490332,3.34314575 Z",fill:"currentColor",fillRule:"nonzero"})}))}function K8(e){return a.jsx("svg",Ne({width:"16px",height:"16px",viewBox:"0 0 120 120"},e,{children:a.jsx("path",{d:"M49.8040405,3.34314575 C46.6798462,0.218951416 41.6145263,0.218951416 38.490332,3.34314575 C35.4326099,6.40086786 35.367552,11.3179931 38.2951583,14.4548388 L38.490332,14.6568542 L83.8333725,60 L38.490332,105.343146 C35.4326099,108.400868 35.367552,113.317993 38.2951583,116.454839 L38.490332,116.656854 C41.5480541,119.714576 46.4651794,119.779634 49.602025,116.852028 L49.8040405,116.656854 L100.804041,65.6568542 C103.861763,62.5991321 103.926821,57.6820069 100.999214,54.5451612 L100.804041,54.3431458 L49.8040405,3.34314575 Z",fill:"currentColor"})}))}var id=k.forwardRef(function(e,t){var n=Xe(),s=n.classNames,i=n.styles,l=[s.button_reset,s.button];e.className&&l.push(e.className);var c=l.join(" "),d=Ne(Ne({},i.button_reset),i.button);return e.style&&Object.assign(d,e.style),a.jsx("button",Ne({},e,{ref:t,type:"button",className:c,style:d}))});function Q8(e){var t,n,s=Xe(),i=s.dir,l=s.locale,c=s.classNames,d=s.styles,f=s.labels,m=f.labelPrevious,p=f.labelNext,g=s.components;if(!e.nextMonth&&!e.previousMonth)return a.jsx(a.Fragment,{});var x=m(e.previousMonth,{locale:l}),N=[c.nav_button,c.nav_button_previous].join(" "),b=p(e.nextMonth,{locale:l}),w=[c.nav_button,c.nav_button_next].join(" "),S=(t=g==null?void 0:g.IconRight)!==null&&t!==void 0?t:K8,j=(n=g==null?void 0:g.IconLeft)!==null&&n!==void 0?n:Y8;return a.jsxs("div",{className:c.nav,style:d.nav,children:[!e.hidePrevious&&a.jsx(id,{name:"previous-month","aria-label":x,className:N,style:d.nav_button_previous,disabled:!e.previousMonth,onClick:e.onPreviousClick,children:i==="rtl"?a.jsx(S,{className:c.nav_icon,style:d.nav_icon}):a.jsx(j,{className:c.nav_icon,style:d.nav_icon})}),!e.hideNext&&a.jsx(id,{name:"next-month","aria-label":b,className:w,style:d.nav_button_next,disabled:!e.nextMonth,onClick:e.onNextClick,children:i==="rtl"?a.jsx(j,{className:c.nav_icon,style:d.nav_icon}):a.jsx(S,{className:c.nav_icon,style:d.nav_icon})})]})}function l1(e){var t=Xe().numberOfMonths,n=Wl(),s=n.previousMonth,i=n.nextMonth,l=n.goToMonth,c=n.displayMonths,d=c.findIndex(function(b){return Xg(e.displayMonth,b)}),f=d===0,m=d===c.length-1,p=t>1&&(f||!m),g=t>1&&(m||!f),x=function(){s&&l(s)},N=function(){i&&l(i)};return a.jsx(Q8,{displayMonth:e.displayMonth,hideNext:p,hidePrevious:g,nextMonth:i,previousMonth:s,onPreviousClick:x,onNextClick:N})}function X8(e){var t,n=Xe(),s=n.classNames,i=n.disableNavigation,l=n.styles,c=n.captionLayout,d=n.components,f=(t=d==null?void 0:d.CaptionLabel)!==null&&t!==void 0?t:eC,m;return i?m=a.jsx(f,{id:e.id,displayMonth:e.displayMonth}):c==="dropdown"?m=a.jsx(a1,{displayMonth:e.displayMonth,id:e.id}):c==="dropdown-buttons"?m=a.jsxs(a.Fragment,{children:[a.jsx(a1,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id}),a.jsx(l1,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id})]}):m=a.jsxs(a.Fragment,{children:[a.jsx(f,{id:e.id,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),a.jsx(l1,{displayMonth:e.displayMonth,id:e.id})]}),a.jsx("div",{className:s.caption,style:l.caption,children:m})}function J8(e){var t=Xe(),n=t.footer,s=t.styles,i=t.classNames.tfoot;return n?a.jsx("tfoot",{className:i,style:s.tfoot,children:a.jsx("tr",{children:a.jsx("td",{colSpan:8,children:n})})}):a.jsx(a.Fragment,{})}function Z8(e,t,n){for(var s=n?Si(new Date):xs(new Date,{locale:e,weekStartsOn:t}),i=[],l=0;l<7;l++){var c=zt(s,l);i.push(c)}return i}function e7(){var e=Xe(),t=e.classNames,n=e.styles,s=e.showWeekNumber,i=e.locale,l=e.weekStartsOn,c=e.ISOWeek,d=e.formatters.formatWeekdayName,f=e.labels.labelWeekday,m=Z8(i,l,c);return a.jsxs("tr",{style:n.head_row,className:t.head_row,children:[s&&a.jsx("td",{style:n.head_cell,className:t.head_cell}),m.map(function(p,g){return a.jsx("th",{scope:"col",className:t.head_cell,style:n.head_cell,"aria-label":f(p,{locale:i}),children:d(p,{locale:i})},g)})]})}function t7(){var e,t=Xe(),n=t.classNames,s=t.styles,i=t.components,l=(e=i==null?void 0:i.HeadRow)!==null&&e!==void 0?e:e7;return a.jsx("thead",{style:s.head,className:n.head,children:a.jsx(l,{})})}function n7(e){var t=Xe(),n=t.locale,s=t.formatters.formatDay;return a.jsx(a.Fragment,{children:s(e.date,{locale:n})})}var Jg=k.createContext(void 0);function s7(e){if(!Ul(e.initialProps)){var t={selected:void 0,modifiers:{disabled:[]}};return a.jsx(Jg.Provider,{value:t,children:e.children})}return a.jsx(r7,{initialProps:e.initialProps,children:e.children})}function r7(e){var t=e.initialProps,n=e.children,s=t.selected,i=t.min,l=t.max,c=function(m,p,g){var x,N;(x=t.onDayClick)===null||x===void 0||x.call(t,m,p,g);var b=!!(p.selected&&i&&(s==null?void 0:s.length)===i);if(!b){var w=!!(!p.selected&&l&&(s==null?void 0:s.length)===l);if(!w){var S=s?Jj([],s):[];if(p.selected){var j=S.findIndex(function(P){return on(m,P)});S.splice(j,1)}else S.push(m);(N=t.onSelect)===null||N===void 0||N.call(t,S,m,p,g)}}},d={disabled:[]};s&&d.disabled.push(function(m){var p=l&&s.length>l-1,g=s.some(function(x){return on(x,m)});return!!(p&&!g)});
394var f={selected:s,onDayClick:c,modifiers:d};return a.jsx(Jg.Provider,{value:f,children:n})}function Zg(){var e=k.useContext(Jg);if(!e)throw new Error("useSelectMultiple must be used within a SelectMultipleProvider");return e}function i7(e,t){var n=t||{},s=n.from,i=n.to;return s&&i?on(i,e)&&on(s,e)?void 0:on(i,e)?{from:i,to:void 0}:on(s,e)?void 0:Np(s,e)?{from:e,to:i}:{from:s,to:e}:i?Np(e,i)?{from:i,to:e}:{from:e,to:i}:s?Qg(e,s)?{from:e,to:s}:{from:s,to:e}:{from:e,to:void 0}}var ey=k.createContext(void 0);function o7(e){if(!$l(e.initialProps)){var t={selected:void 0,modifiers:{range_start:[],range_end:[],range_middle:[],disabled:[]}};return a.jsx(ey.Provider,{value:t,children:e.children})}return a.jsx(a7,{initialProps:e.initialProps,children:e.children})}function a7(e){var t=e.initialProps,n=e.children,s=t.selected,i=s||{},l=i.from,c=i.to,d=t.min,f=t.max,m=function(N,b,w){var S,j;(S=t.onDayClick)===null||S===void 0||S.call(t,N,b,w);var P=i7(N,s);(j=t.onSelect)===null||j===void 0||j.call(t,P,N,b,w)},p={range_start:[],range_end:[],range_middle:[],disabled:[]};if(l?(p.range_start=[l],c?(p.range_end=[c],on(l,c)||(p.range_middle=[{after:l,before:c}])):p.range_end=[l]):c&&(p.range_start=[c],p.range_end=[c]),d&&(l&&!c&&p.disabled.push({after:gm(l,d-1),before:zt(l,d-1)}),l&&c&&p.disabled.push({after:l,before:zt(l,d-1)}),!l&&c&&p.disabled.push({after:gm(c,d-1),before:zt(c,d-1)})),f){if(l&&!c&&(p.disabled.push({before:zt(l,-f+1)}),p.disabled.push({after:zt(l,f-1)})),l&&c){var g=ds(c,l)+1,x=f-g;p.disabled.push({before:gm(l,x)}),p.disabled.push({after:zt(c,x)})}!l&&c&&(p.disabled.push({before:zt(c,-f+1)}),p.disabled.push({after:zt(c,f-1)}))}return a.jsx(ey.Provider,{value:{selected:s,onDayClick:m,modifiers:p},children:n})}function ty(){var e=k.useContext(ey);if(!e)throw new Error("useSelectRange must be used within a SelectRangeProvider");return e}function Lu(e){return Array.isArray(e)?Jj([],e):e!==void 0?[e]:[]}function l7(e){var t={};return Object.entries(e).forEach(function(n){var s=n[0],i=n[1];t[s]=Lu(i)}),t}var Gn;(function(e){e.Outside="outside",e.Disabled="disabled",e.Selected="selected",e.Hidden="hidden",e.Today="today",e.RangeStart="range_start",e.RangeEnd="range_end",e.RangeMiddle="range_middle"})(Gn||(Gn={}));var c7=Gn.Selected,Rs=Gn.Disabled,u7=Gn.Hidden,d7=Gn.Today,vm=Gn.RangeEnd,xm=Gn.RangeMiddle,wm=Gn.RangeStart,h7=Gn.Outside;function f7(e,t,n){var s,i=(s={},s[c7]=Lu(e.selected),s[Rs]=Lu(e.disabled),s[u7]=Lu(e.hidden),s[d7]=[e.today],s[vm]=[],s[xm]=[],s[wm]=[],s[h7]=[],s);return e.fromDate&&i[Rs].push({before:e.fromDate}),e.toDate&&i[Rs].push({after:e.toDate}),Ul(e)?i[Rs]=i[Rs].concat(t.modifiers[Rs]):$l(e)&&(i[Rs]=i[Rs].concat(n.modifiers[Rs]),i[wm]=n.modifiers[wm],i[xm]=n.modifiers[xm],i[vm]=n.modifiers[vm]),i}var sC=k.createContext(void 0);function m7(e){var t=Xe(),n=Zg(),s=ty(),i=f7(t,n,s),l=l7(t.modifiers),c=Ne(Ne({},i),l);return a.jsx(sC.Provider,{value:c,children:e.children})}function rC(){var e=k.useContext(sC);if(!e)throw new Error("useModifiers must be used within a ModifiersProvider");return e}function p7(e){return!!(e&&typeof e=="object"&&"before"in e&&"after"in e)}function g7(e){return!!(e&&typeof e=="object"&&"from"in e)}function y7(e){return!!(e&&typeof e=="object"&&"after"in e)}function v7(e){return!!(e&&typeof e=="object"&&"before"in e)}function x7(e){return!!(e&&typeof e=="object"&&"dayOfWeek"in e)}function w7(e,t){var n,s=t.from,i=t.to;if(s&&i){var l=ds(i,s)<0;l&&(n=[i,s],s=n[0],i=n[1]);var c=ds(e,s)>=0&&ds(i,e)>=0;return c}return i?on(i,e):s?on(s,e):!1}function b7(e){return Gg(e)}function k7(e){return Array.isArray(e)&&e.every(Gg)}function S7(e,t){return t.some(function(n){if(typeof n=="boolean")return n;if(b7(n))return on(e,n);if(k7(n))return n.includes(e);if(g7(n))return w7(e,n);if(x7(n))return n.dayOfWeek.includes(e.getDay());if(p7(n)){var s=ds(n.before,e),i=ds(n.after,e),l=s>0,c=i<0,d=Np(n.before,n.after);return d?c&&l:l||c}return y7(n)?ds(e,n.after)>0:v7(n)?ds(n.before,e)>0:typeof n=="function"?n(e):!1})}function ny(e,t,n){var s=Object.keys(t).reduce(function(l,c){var d=t[c];return S7(e,d)&&l.push(c),l},[]),i={};
394return s.forEach(function(l){return i[l]=!0}),n&&!Xg(e,n)&&(i.outside=!0),i}function N7(e,t){for(var n=cn(e[0]),s=Yg(e[e.length-1]),i,l,c=n;c<=s;){var d=ny(c,t),f=!d.disabled&&!d.hidden;if(!f){c=zt(c,1);continue}if(d.selected)return c;d.today&&!l&&(l=c),i||(i=c),c=zt(c,1)}return l||i}var j7=365;function iC(e,t){var n=t.moveBy,s=t.direction,i=t.context,l=t.modifiers,c=t.retry,d=c===void 0?{count:0,lastFocused:e}:c,f=i.weekStartsOn,m=i.fromDate,p=i.toDate,g=i.locale,x={day:zt,week:Sp,month:qn,year:hI,startOfWeek:function(S){return i.ISOWeek?Si(S):xs(S,{locale:g,weekStartsOn:f})},endOfWeek:function(S){return i.ISOWeek?qj(S):Kg(S,{locale:g,weekStartsOn:f})}},N=x[n](e,s==="after"?1:-1);s==="before"&&m?N=fI([m,N]):s==="after"&&p&&(N=mI([p,N]));var b=!0;if(l){var w=ny(N,l);b=!w.disabled&&!w.hidden}return b?N:d.count>j7?d.lastFocused:iC(N,{moveBy:n,direction:s,context:i,modifiers:l,retry:Ne(Ne({},d),{count:d.count+1})})}var oC=k.createContext(void 0);function C7(e){var t=Wl(),n=rC(),s=k.useState(),i=s[0],l=s[1],c=k.useState(),d=c[0],f=c[1],m=N7(t.displayMonths,n),p=i??(d&&t.isDateDisplayed(d))?d:m,g=function(){f(i),l(void 0)},x=function(S){l(S)},N=Xe(),b=function(S,j){if(i){var P=iC(i,{moveBy:S,direction:j,context:N,modifiers:n});on(i,P)||(t.goToDate(P,i),x(P))}},w={focusedDay:i,focusTarget:p,blur:g,focus:x,focusDayAfter:function(){return b("day","after")},focusDayBefore:function(){return b("day","before")},focusWeekAfter:function(){return b("week","after")},focusWeekBefore:function(){return b("week","before")},focusMonthBefore:function(){return b("month","before")},focusMonthAfter:function(){return b("month","after")},focusYearBefore:function(){return b("year","before")},focusYearAfter:function(){return b("year","after")},focusStartOfWeek:function(){return b("startOfWeek","before")},focusEndOfWeek:function(){return b("endOfWeek","after")}};return a.jsx(oC.Provider,{value:w,children:e.children})}function sy(){var e=k.useContext(oC);if(!e)throw new Error("useFocusContext must be used within a FocusProvider");return e}function A7(e,t){var n=rC(),s=ny(e,n,t);return s}var ry=k.createContext(void 0);function P7(e){if(!Ed(e.initialProps)){var t={selected:void 0};return a.jsx(ry.Provider,{value:t,children:e.children})}return a.jsx(E7,{initialProps:e.initialProps,children:e.children})}function E7(e){var t=e.initialProps,n=e.children,s=function(l,c,d){var f,m,p;if((f=t.onDayClick)===null||f===void 0||f.call(t,l,c,d),c.selected&&!t.required){(m=t.onSelect)===null||m===void 0||m.call(t,void 0,l,c,d);return}(p=t.onSelect)===null||p===void 0||p.call(t,l,l,c,d)},i={selected:t.selected,onDayClick:s};return a.jsx(ry.Provider,{value:i,children:n})}function aC(){var e=k.useContext(ry);if(!e)throw new Error("useSelectSingle must be used within a SelectSingleProvider");return e}function T7(e,t){var n=Xe(),s=aC(),i=Zg(),l=ty(),c=sy(),d=c.focusDayAfter,f=c.focusDayBefore,m=c.focusWeekAfter,p=c.focusWeekBefore,g=c.blur,x=c.focus,N=c.focusMonthBefore,b=c.focusMonthAfter,w=c.focusYearBefore,S=c.focusYearAfter,j=c.focusStartOfWeek,P=c.focusEndOfWeek,A=function(H){var R,se,J,F;Ed(n)?(R=s.onDayClick)===null||R===void 0||R.call(s,e,t,H):Ul(n)?(se=i.onDayClick)===null||se===void 0||se.call(i,e,t,H):$l(n)?(J=l.onDayClick)===null||J===void 0||J.call(l,e,t,H):(F=n.onDayClick)===null||F===void 0||F.call(n,e,t,H)},E=function(H){var R;x(e),(R=n.onDayFocus)===null||R===void 0||R.call(n,e,t,H)},D=function(H){var R;g(),(R=n.onDayBlur)===null||R===void 0||R.call(n,e,t,H)},V=function(H){var R;(R=n.onDayMouseEnter)===null||R===void 0||R.call(n,e,t,H)},B=function(H){var R;(R=n.onDayMouseLeave)===null||R===void 0||R.call(n,e,t,H)},L=function(H){var R;(R=n.onDayPointerEnter)===null||R===void 0||R.call(n,e,t,H)},ne=function(H){var R;(R=n.onDayPointerLeave)===null||R===void 0||R.call(n,e,t,H)},Q=function(H){var R;(R=n.onDayTouchCancel)===null||R===void 0||R.call(n,e,t,H)},re=function(H){var R;(R=n.onDayTouchEnd)===null||R===void 0||R.call(n,e,t,H)},ie=function(H){var R;(R=n.onDayTouchMove)===null||R===void 0||R.call(n,e,t,H)},I=function(H){var R;(R=n.onDayTouchStart)===null||R===void 0||R.call(n,e,t,H)},Y=function(H){var R;(R=n.onDayKeyUp)===null||R===void 0||R.call(n,e,t,H)},oe=function(H){var R;switch(H.key){case"ArrowLeft":H.preventDefault(),H.stopPropagation(),n.dir==="rtl"?d():f();break;case"ArrowRight":H.preventDefault(),H.stopPropagation(),n.dir==="rtl"?f():d();break;case"ArrowDown":H.preventDefault(),H.stopPropagation(),m();break;case"ArrowUp":H.preventDefault(),H.stopPropagation(),p();break;case"PageUp":H.preventDefault(),H.stopPropagation(),H.shiftKey?w():N();break;case"PageDown":H.preventDefault(),H.stopPropagation(),H.shiftKey?S():b();break;case"Home":H.preventDefault(),H.stopPropagation(),j();break;case"End":H.preventDefault(),H.stopPropagation(),P();break}(R=n.onDayKeyDown)===null||R===void 0||R.call(n,e,t,H)},ee={onClick:A,onFocus:E,onBlur:D,onKeyDown:oe,onKeyUp:Y,onMouseEnter:V,onMouseLeave:B,onPointerEnter:L,onPointerLeave:ne,onTouchCancel:Q,onTouchEnd:re,onTouchMove:ie,onTouchStart:I};return ee}function R7(){var e=Xe(),t=aC(),n=Zg(),s=ty(),i=Ed(e)?t.selected:Ul(e)?n.selected:$l(e)?s.selected:void 0;return i}function _7(e){return Object.values(Gn).includes(e)}function D7(e,t){var n=[e.classNames.day];return Object.keys(t).forEach(function(s){var i=e.modifiersClassNames[s];if(i)n.push(i);else if(_7(s)){var l=e.classNames["day_".concat(s)];l&&n.push(l)}}),n}function M7(e,t){var n=Ne({},e.styles.day);return Object.keys(t).forEach(function(s){var i;n=Ne(Ne({},n),(i=e.modifiersStyles)===null||i===void 0?void 0:i[s])}),n}function F7(e,t,n){var s,i,l,c=Xe(),d=sy(),f=A7(e,t),m=T7(e,f),p=R7(),g=!!(c.onDayCl
394ick||c.mode!=="default");k.useEffect(function(){var V;f.outside||d.focusedDay&&g&&on(d.focusedDay,e)&&((V=n.current)===null||V===void 0||V.focus())},[d.focusedDay,e,n,g,f.outside]);var x=D7(c,f).join(" "),N=M7(c,f),b=!!(f.outside&&!c.showOutsideDays||f.hidden),w=(l=(i=c.components)===null||i===void 0?void 0:i.DayContent)!==null&&l!==void 0?l:n7,S=a.jsx(w,{date:e,displayMonth:t,activeModifiers:f}),j={style:N,className:x,children:S,role:"gridcell"},P=d.focusTarget&&on(d.focusTarget,e)&&!f.outside,A=d.focusedDay&&on(d.focusedDay,e),E=Ne(Ne(Ne({},j),(s={disabled:f.disabled,role:"gridcell"},s["aria-selected"]=f.selected,s.tabIndex=A||P?0:-1,s)),m),D={isButton:g,isHidden:b,activeModifiers:f,selectedDays:p,buttonProps:E,divProps:j};return D}function O7(e){var t=k.useRef(null),n=F7(e.date,e.displayMonth,t);return n.isHidden?a.jsx("div",{role:"gridcell"}):n.isButton?a.jsx(id,Ne({name:"day",ref:t},n.buttonProps)):a.jsx("div",Ne({},n.divProps))}function L7(e){var t=e.number,n=e.dates,s=Xe(),i=s.onWeekNumberClick,l=s.styles,c=s.classNames,d=s.locale,f=s.labels.labelWeekNumber,m=s.formatters.formatWeekNumber,p=m(Number(t),{locale:d});if(!i)return a.jsx("span",{className:c.weeknumber,style:l.weeknumber,children:p});var g=f(Number(t),{locale:d}),x=function(N){i(t,n,N)};return a.jsx(id,{name:"week-number","aria-label":g,className:c.weeknumber,style:l.weeknumber,onClick:x,children:p})}function I7(e){var t,n,s=Xe(),i=s.styles,l=s.classNames,c=s.showWeekNumber,d=s.components,f=(t=d==null?void 0:d.Day)!==null&&t!==void 0?t:O7,m=(n=d==null?void 0:d.WeekNumber)!==null&&n!==void 0?n:L7,p;return c&&(p=a.jsx("td",{className:l.cell,style:i.cell,children:a.jsx(m,{number:e.weekNumber,dates:e.dates})})),a.jsxs("tr",{className:l.row,style:i.row,children:[p,e.dates.map(function(g){return a.jsx("td",{className:l.cell,style:i.cell,role:"presentation",children:a.jsx(f,{displayMonth:e.displayMonth,date:g})},f8(g))})]})}function c1(e,t,n){for(var s=n!=null&&n.ISOWeek?qj(t):Kg(t,n),i=n!=null&&n.ISOWeek?Si(e):xs(e,n),l=ds(s,i),c=[],d=0;d<=l;d++)c.push(zt(i,d));var f=c.reduce(function(m,p){var g=n!=null&&n.ISOWeek?Yj(p):Qj(p,n),x=m.find(function(N){return N.weekNumber===g});return x?(x.dates.push(p),m):(m.push({weekNumber:g,dates:[p]}),m)},[]);return f}function B7(e,t){var n=c1(cn(e),Yg(e),t);if(t!=null&&t.useFixedWeeks){var s=p8(e,t);if(s<6){var i=n[n.length-1],l=i.dates[i.dates.length-1],c=Sp(l,6-s),d=c1(Sp(l,1),c,t);n.push.apply(n,d)}}return n}function V7(e){var t,n,s,i=Xe(),l=i.locale,c=i.classNames,d=i.styles,f=i.hideHead,m=i.fixedWeeks,p=i.components,g=i.weekStartsOn,x=i.firstWeekContainsDate,N=i.ISOWeek,b=B7(e.displayMonth,{useFixedWeeks:!!m,ISOWeek:N,locale:l,weekStartsOn:g,firstWeekContainsDate:x}),w=(t=p==null?void 0:p.Head)!==null&&t!==void 0?t:t7,S=(n=p==null?void 0:p.Row)!==null&&n!==void 0?n:I7,j=(s=p==null?void 0:p.Footer)!==null&&s!==void 0?s:J8;return a.jsxs("table",{id:e.id,className:c.table,style:d.table,role:"grid","aria-labelledby":e["aria-labelledby"],children:[!f&&a.jsx(w,{}),a.jsx("tbody",{className:c.tbody,style:d.tbody,children:b.map(function(P){return a.jsx(S,{displayMonth:e.displayMonth,dates:P.dates,weekNumber:P.weekNumber},P.weekNumber)})}),a.jsx(j,{displayMonth:e.displayMonth})]})}function z7(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var U7=z7()?k.useLayoutEffect:k.useEffect,bm=!1,$7=0;function u1(){return"react-day-picker-".concat(++$7)}function W7(e){var t,n=e??(bm?u1():null),s=k.useState(n),i=s[0],l=s[1];return U7(function(){i===null&&l(u1())},[]),k.useEffect(function(){bm===!1&&(bm=!0)},[]),(t=e??i)!==null&&t!==void 0?t:void 0}function H7(e){var t,n,s=Xe(),i=s.dir,l=s.classNames,c=s.styles,d=s.components,f=Wl().displayMonths,m=W7(s.id?"".concat(s.id,"-").concat(e.displayIndex):void 0),p=s.id?"".concat(s.id,"-grid-").concat(e.displayIndex):void 0,g=[l.month],x=c.month,N=e.displayIndex===0,b=e.displayIndex===f.length-1,w=!N&&!b;i==="rtl"&&(t=[N,b],b=t[0],N=t[1]),N&&(g.push(l.caption_start),x=Ne(Ne({},x),c.caption_start)),b&&(g.push(l.caption_end),x=Ne(Ne({},x),c.caption_end)),w&&(g.push(l.caption_between),x=Ne(Ne({},x),c.caption_between));var S=(n=d==null?void 0:d.Caption)!==null&&n!==void 0?n:X8;return a.jsxs("div",{className:g.join(" "),style:x,children:[a.jsx(S,{id:m,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),a.jsx(V7,{id:p,"aria-labelledby":m,displayMonth:e.displayMonth})]},e.displayIndex)}function q7(e){var t=Xe(),n=t.classNames,s=t.styles;return a.jsx("div",{className:n.months,style:s.months,children:e.children})}function G7(e){var t,n,s=e.initialProps,i=Xe(),l=sy(),c=Wl(),d=k.useState(!1),f=d[0],m=d[1];k.useEffect(function(){i.initialFocus&&l.focusTarget&&(f||(l.focus(l.focusTarget),m(!0)))},[i.initialFocus,f,l.focus,l.focusTarget,l]);var p=[i.classNames.root,i.className];i.numberOfMonths>1&&p.push(i.classNames.multiple_months),i.showWeekNumber&&p.push(i.classNames.with_weeknumber);var g=Ne(Ne({},i.styles.root),i.style),x=Object.keys(s).filter(function(b){return b.startsWith("data-")}).reduce(function(b,w){var S;return Ne(Ne({},b),(S={},S[w]=s[w],S))},{}),N=(n=(t=s.components)===null||t===void 0?void 0:t.Months)!==null&&n!==void 0?n:q7;return a.jsx("div",Ne({className:p.join(" "),style:g,dir:i.dir,id:i.id,nonce:s.nonce,title:s.title,lang:s.lang},x,{children:a.jsx(N,{children:c.displayMonths.map(function(b,w){return a.jsx(H7,{displayIndex:w,displayMonth:b},w)})})}))}function Y7(e){var t=e.children,n=v8(e,["children"]);return a.jsx(L8,{initialProps:n,children:a.jsx(G8,{children:a.jsx(P7,{initialProps:n,children:a.jsx(s7,{initialProps:n,children:a.jsx(o7,{initialProps:n,children:a.jsx(m7,{children:a.jsx(C7,{children:t})})})})})})})}function K7(e){return a.jsx(Y7,Ne({},e,{children:a.jsx(G7,{initialProps:e})}))}function lC({className:e,classNames:t,showOutsideDays:n=!0,...s}){return a.jsx(K7,{showOutsideDays:n,className:Re("p-3",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:sp
394ace-x-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",nav_button:Re(wp({variant:"outline"}),"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-8 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:Re("relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected].day-range-end)]:rounded-r-md",s.mode==="range"?"[&:has(>.day-range-end)]:rounded-r-md [&:has(>.day-range-start)]:rounded-l-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md":"[&:has([aria-selected])]:rounded-md"),day:Re(wp({variant:"ghost"}),"h-8 w-8 p-0 font-normal aria-selected:opacity-100"),day_range_start:"day-range-start",day_range_end:"day-range-end",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground aria-selected:bg-accent/50 aria-selected:text-muted-foreground",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...t},components:{IconLeft:({className:i,...l})=>a.jsx(FP,{className:Re("h-4 w-4",i),...l}),IconRight:({className:i,...l})=>a.jsx(us,{className:Re("h-4 w-4",i),...l})},...s})}lC.displayName="Calendar";const Q7=["top","right","bottom","left"],Dr=Math.min,pn=Math.max,od=Math.round,ku=Math.floor,ys=e=>({x:e,y:e}),X7={left:"right",right:"left",bottom:"top",top:"bottom"},J7={start:"end",end:"start"};
vendor: 25,686 bytes, line 394
394function jp(e,t,n){return pn(e,Dr(t,n))}function Vs(e,t){return typeof e=="function"?e(t):e}function zs(e){return e.split("-")[0]}function Ho(e){return e.split("-")[1]}function iy(e){return e==="x"?"y":"x"}function oy(e){return e==="y"?"height":"width"}const Z7=new Set(["top","bottom"]);function hs(e){return Z7.has(zs(e))?"y":"x"}function ay(e){return iy(hs(e))}function eB(e,t,n){n===void 0&&(n=!1);const s=Ho(e),i=ay(e),l=oy(i);let c=i==="x"?s===(n?"end":"start")?"right":"left":s==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(c=ad(c)),[c,ad(c)]}function tB(e){const t=ad(e);return[Cp(e),t,Cp(t)]}function Cp(e){return e.replace(/start|end/g,t=>J7[t])}const d1=["left","right"],h1=["right","left"],nB=["top","bottom"],sB=["bottom","top"];function rB(e,t,n){switch(e){case"top":case"bottom":return n?t?h1:d1:t?d1:h1;case"left":case"right":return t?nB:sB;default:return[]}}function iB(e,t,n,s){const i=Ho(e);let l=rB(zs(e),n==="start",s);return i&&(l=l.map(c=>c+"-"+i),t&&(l=l.concat(l.map(Cp)))),l}function ad(e){return e.replace(/left|right|bottom|top/g,t=>X7[t])}function oB(e){return{top:0,right:0,bottom:0,left:0,...e}}function cC(e){return typeof e!="number"?oB(e):{top:e,right:e,bottom:e,left:e}}function ld(e){const{x:t,y:n,width:s,height:i}=e;return{width:s,height:i,top:n,left:t,right:t+s,bottom:n+i,x:t,y:n}}function f1(e,t,n){let{reference:s,floating:i}=e;const l=hs(t),c=ay(t),d=oy(c),f=zs(t),m=l==="y",p=s.x+s.width/2-i.width/2,g=s.y+s.height/2-i.height/2,x=s[d]/2-i[d]/2;let N;switch(f){case"top":N={x:p,y:s.y-i.height};break;case"bottom":N={x:p,y:s.y+s.height};break;case"right":N={x:s.x+s.width,y:g};break;case"left":N={x:s.x-i.width,y:g};break;default:N={x:s.x,y:s.y}}switch(Ho(t)){case"start":N[c]-=x*(n&&m?-1:1);break;case"end":N[c]+=x*(n&&m?-1:1);break}return N}const aB=async(e,t,n)=>{const{placement:s="bottom",strategy:i="absolute",middleware:l=[],platform:c}=n,d=l.filter(Boolean),f=await(c.isRTL==null?void 0:c.isRTL(t));let m=await c.getElementRects({reference:e,floating:t,strategy:i}),{x:p,y:g}=f1(m,s,f),x=s,N={},b=0;for(let w=0;w<d.length;w++){const{name:S,fn:j}=d[w],{x:P,y:A,data:E,reset:D}=await j({x:p,y:g,initialPlacement:s,placement:x,strategy:i,middlewareData:N,rects:m,platform:c,elements:{reference:e,floating:t}});p=P??p,g=A??g,N={...N,[S]:{...N[S],...E}},D&&b<=50&&(b++,typeof D=="object"&&(D.placement&&(x=D.placement),D.rects&&(m=D.rects===!0?await c.getElementRects({reference:e,floating:t,strategy:i}):D.rects),{x:p,y:g}=f1(m,x,f)),w=-1)}return{x:p,y:g,placement:x,strategy:i,middlewareData:N}};async function wl(e,t){var n;t===void 0&&(t={});const{x:s,y:i,platform:l,rects:c,elements:d,strategy:f}=e,{boundary:m="clippingAncestors",rootBoundary:p="viewport",elementContext:g="floating",altBoundary:x=!1,padding:N=0}=Vs(t,e),b=cC(N),S=d[x?g==="floating"?"reference":"floating":g],j=ld(await l.getClippingRect({element:(n=await(l.isElement==null?void 0:l.isElement(S)))==null||n?S:S.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(d.floating)),boundary:m,rootBoundary:p,strategy:f})),P=g==="floating"?{x:s,y:i,width:c.floating.width,height:c.floating.height}:c.reference,A=await(l.getOffsetParent==null?void 0:l.getOffsetParent(d.floating)),E=await(l.isElement==null?void 0:l.isElement(A))?await(l.getScale==null?void 0:l.getScale(A))||{x:1,y:1}:{x:1,y:1},D=ld(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:P,offsetParent:A,strategy:f}):P);return{top:(j.top-D.top+b.top)/E.y,bottom:(D.bottom-j.bottom+b.bottom)/E.y,left:(j.left-D.left+b.left)/E.x,right:(D.right-j.right+b.right)/E.x}}const lB=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:s,placement:i,rects:l,platform:c,elements:d,middlewareData:f}=t,{element:m,padding:p=0}=Vs(e,t)||{};if(m==null)return{};const g=cC(p),x={x:n,y:s},N=ay(i),b=oy(N),w=await c.getDimensions(m),S=N==="y",j=S?"top":"left",P=S?"bottom":"right",A=S?"clientHeight":"clientWidth",E=l.reference[b]+l.reference[N]-x[N]-l.floating[b],D=x[N]-l.reference[N],V=await(c.getOffsetParent==null?void 0:c.getOffsetParent(m));let B=V?V[A]:0;(!B||!await(c.isElement==null?void 0:c.isElement(V)))&&(B=d.floating[A]||l.floating[b]);const L=E/2-D/2,ne=B/2-w[b]/2-1,Q=Dr(g[j],ne),re=Dr(g[P],ne),ie=Q,I=B-w[b]-re,Y=B/2-w[b]/2+L,oe=jp(ie,Y,I),ee=!f.arrow&&Ho(i)!=null&&Y!==oe&&l.reference[b]/2-(Y<ie?Q:re)-w[b]/2<0,H=ee?Y<ie?Y-ie:Y-I:0;return{[N]:x[N]+H,data:{[N]:oe,centerOffset:Y-oe-H,...ee&&{alignmentOffset:H}},reset:ee}}}),cB=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,s;const{placement:i,middlewareData:l,rects:c,initialPlacement:d,platform:f,elements:m}=t,{mainAxis:p=!0,crossAxis:g=!0,fallbackPlacements:x,fallbackStrategy:N="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:w=!0,...S}=Vs(e,t);if((n=l.arrow)!=null&&n.alignmentOffset)return{};const j=zs(i),P=hs(d),A=zs(d)===d,E=await(f.isRTL==null?void 0:f.isRTL(m.floating)),D=x||(A||!w?[ad(d)]:tB(d)),V=b!=="none";!x&&V&&D.push(...iB(d,w,b,E));const B=[d,...D],L=await wl(t,S),ne=[];let Q=((s=l.flip)==null?void 0:s.overflows)||[];if(p&&ne.push(L[j]),g){const Y=eB(i,c,E);ne.push(L[Y[0]],L[Y[1]])}if(Q=[...Q,{placement:i,overflows:ne}],!ne.every(Y=>Y<=0)){var re,ie;const Y=(((re=l.flip)==null?void 0:re.index)||0)+1,oe=B[Y];if(oe&&(!(g==="alignment"?P!==hs(oe):!1)||Q.every(R=>hs(R.placement)===P?R.overflows[0]>0:!0)))return{data:{index:Y,overflows:Q},reset:{placement:oe}};let ee=(ie=Q.filter(H=>H.overflows[0]<=0).sort((H,R)=>H.overflows[1]-R.overflows[1])[0])==null?void 0:ie.placement;if(!ee)switch(N){case"bestFit":{var I;const H=(I=Q.filter(R=>{if(V){const se=hs(R.placement);return se===P||se==="y"}return!0}).map(R=>[R.placement,R.overflows.filter(se=>se>0).reduce((se,J)=>se+J,0)]).sort((R,se)=>R[1]-se[1])[0])==null?void 0:I[0];H&&(ee=H);break}case"initialPlacement":ee=d;break}if(i!==ee)return{reset:{placement:ee}}}return{}}}};function m1(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function p1(e){return Q7.some(t=>e[t]>=0)}const uB=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:s="referenceHidden",...i}=Vs(e,t);switch(s){case"referenceHidden":{const l=await wl(t,{...i,elementContext:"reference"}),c=m1(l,n.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:p1(c)}}}case"escaped":{const l=await wl(t,{...i,altBoundary:!0}),c=m1(l,n.floating);return{data:{escapedOffsets:c,escaped:p1(c)}}}default:return{}}}}},uC=new Set(["left","top"]);async function dB(e,t){const{placement:n,platform:s,elements:i}=e,l=await(s.isRTL==null?void 0:s.isRTL(i.floating)),c=zs(n),d=Ho(n),f=hs(n)==="y",m=uC.has(c)?-1:1,p=l&&f?-1:1,g=Vs(t,e);let{mainAxis:x,crossAxis:N,alignmentAxis:b}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return d&&typeof b=="number"&&(N=d==="end"?b*-1:b),f?{x:N*p,y:x*m}:{x:x*m,y:N*p}}const hB=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,s;const{x:i,y:l,placement:c,middlewareData:d}=t,f=await dB(t,e);return c===((n=d.offset)==null?void 0:n.placement)&&(s=d.arrow)!=null&&s.alignmentOffset?{}:{x:i+f.x,y:l+f.y,data:{...f,placement:c}}}}},fB=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:s,placement:i}=t,{mainAxis:l=!0,crossAxis:c=!1,limiter:d={fn:S=>{let{x:j,y:P}=S;return{x:j,y:P}}},...f}=Vs(e,t),m={x:n,y:s},p=await wl(t,f),g=hs(zs(i)),x=iy(g);let N=m[x],b=m[g];if(l){const S=x==="y"?"top":"left",j=x==="y"?"bottom":"right",P=N+p[S],A=N-p[j];N=jp(P,N,A)}if(c){const S=g==="y"?"top":"left",j=g==="y"?"bottom":"right",P=b+p[S],A=b-p[j];b=jp(P,b,A)}const w=d.fn({...t,[x]:N,[g]:b});return{...w,data:{x:w.x-n,y:w.y-s,enabled:{[x]:l,[g]:c}}}}}},mB=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:s,placement:i,rects:l,middlewareData:c}=t,{offset:d=0,mainAxis:f=!0,crossAxis:m=!0}=Vs(e,t),p={x:n,y:s},g=hs(i),x=iy(g);let N=p[x],b=p[g];const w=Vs(d,t),S=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(f){const A=x==="y"?"height":"width",E=l.reference[x]-l.floating[A]+S.mainAxis,D=l.reference[x]+l.reference[A]-S.mainAxis;N<E?N=E:N>D&&(N=D)}if(m){var j,P;const A=x==="y"?"width":"height",E=uC.has(zs(i)),D=l.reference[g]-l.floating[A]+(E&&((j=c.offset)==null?void 0:j[g])||0)+(E?0:S.crossAxis),V=l.reference[g]+l.reference[A]+(E?0:((P=c.offset)==null?void 0:P[g])||0)-(E?S.crossAxis:0);b<D?b=D:b>V&&(b=V)}return{[x]:N,[g]:b}}}},pB=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,s;const{placement:i,rects:l,platform:c,elements:d}=t,{apply:f=()=>{},...m}=Vs(e,t),p=await wl(t,m),g=zs(i),x=Ho(i),N=hs(i)==="y",{width:b,height:w}=l.floating;let S,j;g==="top"||g==="bottom"?(S=g,j=x===(await(c.isRTL==null?void 0:c.isRTL(d.floating))?"start":"end")?"left":"right"):(j=g,S=x==="end"?"top":"bottom");const P=w-p.top-p.bottom,A=b-p.left-p.right,E=Dr(w-p[S],P),D=Dr(b-p[j],A),V=!t.middlewareData.shift;let B=E,L=D;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(L=A),(s=t.middlewareData.shift)!=null&&s.enabled.y&&(B=P),V&&!x){const Q=pn(p.left,0),re=pn(p.right,0),ie=pn(p.top,0),I=pn(p.bottom,0);N?L=b-2*(Q!==0||re!==0?Q+re:pn(p.left,p.right)):B=w-2*(ie!==0||I!==0?ie+I:pn(p.top,p.bottom))}await f({...t,availableWidth:L,availableHeight:B});const ne=await c.getDimensions(d.floating);return b!==ne.width||w!==ne.height?{reset:{rects:!0}}:{}}}};function Td(){return typeof window<"u"}function qo(e){return dC(e)?(e.nodeName||"").toLowerCase():"#document"}function yn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function bs(e){var t;return(t=(dC(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function dC(e){return Td()?e instanceof Node||e instanceof yn(e).Node:!1}function Yn(e){return Td()?e instanceof Element||e instanceof yn(e).Element:!1}function ws(e){return Td()?e instanceof HTMLElement||e instanceof yn(e).HTMLElement:!1}function g1(e){return!Td()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof yn(e).ShadowRoot}const gB=new Set(["inline","contents"]);function Hl(e){const{overflow:t,overflowX:n,overflowY:s,display:i}=Kn(e);return/auto|scroll|overlay|hidden|clip/.test(t+s+n)&&!gB.has(i)}const yB=new Set(["table","td","th"]);function vB(e){return yB.has(qo(e))}const xB=[":popover-open",":modal"];function Rd(e){return xB.some(t=>{try{return e.matches(t)}catch{return!1}})}const wB=["transform","translate","scale","rotate","perspective"],bB=["transform","translate","scale","rotate","perspective","filter"],kB=["paint","layout","strict","content"];function ly(e){const t=cy(),n=Yn(e)?Kn(e):e;return wB.some(s=>n[s]?n[s]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||bB.some(s=>(n.willChange||"").includes(s))||kB.some(s=>(n.contain||"").includes(s))}function SB(e){let t=Mr(e);for(;ws(t)&&!Fo(t);){if(ly(t))return t;if(Rd(t))return null;t=Mr(t)}return null}function cy(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const NB=new Set(["html","body","#document"]);function Fo(e){return NB.has(qo(e))}function Kn(e){return yn(e).getComputedStyle(e)}function _d(e){return Yn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Mr(e){if(qo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||g1(e)&&e.host||bs(e);return g1(t)?t.host:t}function hC(e){const t=Mr(e);return Fo(t)?e.ownerDocument?e.ownerDocument.body:e.body:ws(t)&&Hl(t)?t:hC(t)}function bl(e,t,n){var s;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=hC(e),l=i===((s=e.ownerDocument)==null?void 0:s.body),c=yn(i);if(l){const d=Ap(c);return t.concat(c,c.visualViewport||[],Hl(i)?i:[],d&&n?bl(d):[])}return t.concat(i,bl(i,[],n))}function Ap(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function fC(e){const t=Kn(e);let n=parseFloat(t.width)||0,s=parseFloat(t.height)||0;const i=ws(e),l=i?e.offsetWidth:n,c=i?e.offsetHeight:s,d=od(n)!==l||od(s)!==c;return d&&(n=l,s=c),{width:n,height:s,$:d}}function uy(e){return Yn(e)?e:e.contextElement}function po(e){const t=uy(e);if(!ws(t))return ys(1);const n=t.getBoundingClientRect(),{width:s,height:i,$:l}=fC(t);let c=(l?od(n.width):n.width)/s,d=(l?od(n.height):n.height)/i;return(!c||!Number.isFinite(c))&&(c=1),(!d||!Number.isFinite(d))&&(d=1),{x:c,y:d}}const jB=ys(0);function mC(e){const t=yn(e);return!cy()||!t.visualViewport?jB:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function CB(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==yn(e)?!1:t}function ji(e,t,n,s){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),l=uy(e);let c=ys(1);t&&(s?Yn(s)&&(c=po(s)):c=po(e));const d=CB(l,n,s)?mC(l):ys(0);let f=(i.left+d.x)/c.x,m=(i.top+d.y)/c.y,p=i.width/c.x,g=i.height/c.y;if(l){const x=yn(l),N=s&&Yn(s)?yn(s):s;let b=x,w=Ap(b);for(;w&&s&&N!==b;){const S=po(w),j=w.getBoundingClientRect(),P=Kn(w),A=j.left+(w.clientLeft+parseFloat(P.paddingLeft))*S.x,E=j.top+(w.clientTop+parseFloat(P.paddingTop))*S.y;f*=S.x,m*=S.y,p*=S.x,g*=S.y,f+=A,m+=E,b=yn(w),w=Ap(b)}}return ld({width:p,height:g,x:f,y:m})}function Dd(e,t){const n=_d(e).scrollLeft;return t?t.left+n:ji(bs(e)).left+n}function pC(e,t){const n=e.getBoundingClientRect(),s=n.left+t.scrollLeft-Dd(e,n),i=n.top+t.scrollTop;return{x:s,y:i}}function AB(e){let{elements:t,rect:n,offsetParent:s,strategy:i}=e;const l=i==="fixed",c=bs(s),d=t?Rd(t.floating):!1;if(s===c||d&&l)return n;let f={scrollLeft:0,scrollTop:0},m=ys(1);const p=ys(0),g=ws(s);if((g||!g&&!l)&&((qo(s)!=="body"||Hl(c))&&(f=_d(s)),ws(s))){const N=ji(s);m=po(s),p.x=N.x+s.clientLeft,p.y=N.y+s.clientTop}const x=c&&!g&&!l?pC(c,f):ys(0);return{width:n.width*m.x,height:n.height*m.y,x:n.x*m.x-f.scrollLeft*m.x+p.x+x.x,y:n.y*m.y-f.scrollTop*m.y+p.y+x.y}}function PB(e){return Array.from(e.getClientRects())}function EB(e){const t=bs(e),n=_d(e),s=e.ownerDocument.body,i=pn(t.scrollWidth,t.clientWidth,s.scrollWidth,s.clientWidth),l=pn(t.scrollHeight,t.clientHeight,s.scrollHeight,s.clientHeight);let c=-n.scrollLeft+Dd(e);const d=-n.scrollTop;return Kn(s).direction==="rtl"&&(c+=pn(t.clientWidth,s.clientWidth)-i),{width:i,height:l,x:c,y:d}}const y1=25;function TB(e,t){const n=yn(e),s=bs(e),i=n.visualViewport;let l=s.clientWidth,c=s.clientHeight,d=0,f=0;if(i){l=i.width,c=i.height;const p=cy();(!p||p&&t==="fixed")&&(d=i.offsetLeft,f=i.offsetTop)}const m=Dd(s);if(m<=0){const p=s.ownerDocument,g=p.body,x=getComputedStyle(g),N=p.compatMode==="CSS1Compat"&&parseFloat(x.marginLeft)+parseFloat(x.marginRight)||0,b=Math.abs(s.clientWidth-g.clientWidth-N);b<=y1&&(l-=b)}else m<=y1&&(l+=m);return{width:l,height:c,x:d,y:f}}const RB=new Set(["absolute","fixed"]);function _B(e,t){const n=ji(e,!0,t==="fixed"),s=n.top+e.clientTop,i=n.left+e.clientLeft,l=ws(e)?po(e):ys(1),c=e.clientWidth*l.x,d=e.clientHeight*l.y,f=i*l.x,m=s*l.y;return{width:c,height:d,x:f,y:m}}function v1(e,t,n){let s;if(t==="viewport")s=TB(e,n);else if(t==="document")s=EB(bs(e));else if(Yn(t))s=_B(t,n);else{const i=mC(e);s={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return ld(s)}function gC(e,t){const n=Mr(e);return n===t||!Yn(n)||Fo(n)?!1:Kn(n).position==="fixed"||gC(n,t)}function DB(e,t){const n=t.get(e);if(n)return n;let s=bl(e,[],!1).filter(d=>Yn(d)&&qo(d)!=="body"),i=null;const l=Kn(e).position==="fixed";let c=l?Mr(e):e;for(;Yn(c)&&!Fo(c);){const d=Kn(c),f=ly(c);!f&&d.position==="fixed"&&(i=null),(l?!f&&!i:!f&&d.position==="static"&&!!i&&RB.has(i.position)||Hl(c)&&!f&&gC(e,c))?s=s.filter(p=>p!==c):i=d,c=Mr(c)}return t.set(e,s),s}function MB(e){let{element:t,boundary:n,rootBoundary:s,strategy:i}=e;const c=[...n==="clippingAncestors"?Rd(t)?[]:DB(t,this._c):[].concat(n),s],d=c[0],f=c.reduce((m,p)=>{const g=v1(t,p,i);return m.top=pn(g.top,m.top),m.right=Dr(g.right,m.right),m.bottom=Dr(g.bottom,m.bottom),m.left=pn(g.left,m.left),m},v1(t,d,i));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function FB(e){const{width:t,height:n}=fC(e);return{width:t,height:n}}function OB(e,t,n){const s=ws(t),i=bs(t),l=n==="fixed",c=ji(e,!0,l,t);let d={scrollLeft:0,scrollTop:0};const f=ys(0);function m(){f.x=Dd(i)}if(s||!s&&!l)if((qo(t)!=="body"||Hl(i))&&(d=_d(t)),s){const N=ji(t,!0,l,t);f.x=N.x+t.clientLeft,f.y=N.y+t.clientTop}else i&&m();l&&!s&&i&&m();const p=i&&!s&&!l?pC(i,d):ys(0),g=c.left+d.scrollLeft-f.x-p.x,x=c.top+d.scrollTop-f.y-p.y;return{x:g,y:x,width:c.width,height:c.height}}function km(e){return Kn(e).position==="static"}function x1(e,t){if(!ws(e)||Kn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return bs(e)===n&&(n=n.ownerDocument.body),n}function yC(e,t){const n=yn(e);if(Rd(e))return n;if(!ws(e)){let i=Mr(e);for(;i&&!Fo(i);){if(Yn(i)&&!km(i))return i;i=Mr(i)}return n}let s=x1(e,t);for(;s&&vB(s)&&km(s);)s=x1(s,t);return s&&Fo(s)&&km(s)&&!ly(s)?n:s||SB(e)||n}const LB=async function(e){const t=this.getOffsetParent||yC,n=this.getDimensions,s=await n(e.floating);return{reference:OB(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function IB(e){return Kn(e).direction==="rtl"}const BB={convertOffsetParentRelativeRectToViewportRelativeRect:AB,getDocumentElement:bs,getClippingRect:MB,getOffsetParent:yC,getElementRects:LB,getClientRects:PB,getDimensions:FB,getScale:po,isElement:Yn,isRTL:IB};function vC(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function VB(e,t){let n=null,s;const i=bs(e);function l(){var d;clearTimeout(s),(d=n)==null||d.disconnect(),n=null}function c(d,f){d===void 0&&(d=!1),f===void 0&&(f=1),l();const m=e.getBoundingClientRect(),{left:p,top:g,width:x,height:N}=m;if(d||t(),!x||!N)return;const b=ku(g),w=ku(i.clientWidth-(p+x)),S=ku(i.clientHeight-(g+N)),j=ku(p),A={rootMargin:-b+"px "+-w+"px "+-S+"px "+-j+"px",threshold:pn(0,Dr(1,f))||1};let E=!0;function D(V){const B=V[0].intersectionRatio;if(B!==f){if(!E)return c();B?c(!1,B):s=setTimeout(()=>{c(!1,1e-7)},1e3)}B===1&&!vC(m,e.getBoundingClientRect())&&c(),E=!1}try{n=new IntersectionObserver(D,{...A,root:i.ownerDocument})}catch{n=new IntersectionObserver(D,A)}n.observe(e)}return c(!0),l}function zB(e,t,n,s){s===void 0&&(s={});const{ancestorScroll:i=!0,ancestorResize:l=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:d=typeof IntersectionObserver=="function",animationFrame:f=!1}=s,m=uy(e),p=i||l?[...m?bl(m):[],...bl(t)]:[];p.forEach(j=>{i&&j.addEventListener("scroll",n,{passive:!0}),l&&j.addEventListener("resize",n)});const g=m&&d?VB(m,n):null;let x=-1,N=null;c&&(N=new ResizeObserver(j=>{let[P]=j;P&&P.target===m&&N&&(N.unobserve(t),cancelAnimationFrame(x),x=requestAnimationFrame(()=>{var A;(A=N)==null||A.observe(t)})),n()}),m&&!f&&N.observe(m),N.observe(t));let b,w=f?ji(e):null;f&&S();function S(){const j=ji(e);w&&!vC(w,j)&&n(),w=j,b=requestAnimationFrame(S)}return n(),()=>{var j;p.forEach(P=>{i&&P.removeEventListener("scroll",n),l&&P.removeEventListener("resize",n)}),g==null||g(),(j=N)==null||j.disconnect(),N=null,f&&cancelAnimationFrame(b)}}const UB=hB,$B=fB,WB=cB,HB=pB,qB=uB,w1=lB,GB=mB,YB=(e,t,n)=>{const s=new Map,i={platform:BB,...n},l={...i.platform,_c:s};return aB(e,t,{...i,platform:l})};var KB=typeof document<"u",QB=function(){},Iu=KB?k.useLayoutEffect:QB;function cd(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 n,s,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(s=n;s--!==0;)if(!cd(e[s],t[s]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(s=n;s--!==0;)if(!{}.hasOwnProperty.call(t,i[s]))return!1;for(s=n;s--!==0;){const l=i[s];if(!(l==="_owner"&&e.$$typeof)&&!cd(e[l],t[l]))return!1}return!0}return e!==e&&t!==t}function xC(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function b1(e,t){const n=xC(e);return Math.round(t*n)/n}function Sm(e){const t=k.useRef(e);return Iu(()=>{t.current=e}),t}function XB(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:s=[],platform:i,elements:{reference:l,floating:c}={},transform:d=!0,whileElementsMounted:f,open:m}=e,[p,g]=k.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[x,N]=k.useState(s);cd(x,s)||N(s);const[b,w]=k.useState(null),[S,j]=k.useState(null),P=k.useCallback(R=>{R!==V.current&&(V.current=R,w(R))},[]),A=k.useCallback(R=>{R!==B.current&&(B.current=R,j(R))},[]),E=l||b,D=c||S,V=k.useRef(null),B=k.useRef(null),L=k.useRef(p),ne=f!=null,Q=Sm(f),re=Sm(i),ie=Sm(m),I=k.useCallback(()=>{if(!V.current||!B.current)return;const R={placement:t,strategy:n,middleware:x};re.current&&(R.platform=re.current),YB(V.current,B.current,R).then(se=>{const J={...se,isPositioned:ie.current!==!1};Y.current&&!cd(L.current,J)&&(L.current=J,Up.flushSync(()=>{g(J)}))})},[x,t,n,re,ie]);Iu(()=>{m===!1&&L.current.isPositioned&&(L.current.isPositioned=!1,g(R=>({...R,isPositioned:!1})))},[m]);const Y=k.useRef(!1);Iu(()=>(Y.current=!0,()=>{Y.current=!1}),[]),Iu(()=>{if(E&&(V.current=E),D&&(B.current=D),E&&D){if(Q.current)return Q.current(E,D,I);I()}},[E,D,I,Q,ne]);const oe=k.useMemo(()=>({reference:V,floating:B,setReference:P,setFloating:A}),[P,A]),ee=k.useMemo(()=>({reference:E,floating:D}),[E,D]),H=k.useMemo(()=>{const R={position:n,left:0,top:0};if(!ee.floating)return R;const se=b1(ee.floating,p.x),J=b1(ee.floating,p.y);return d?{...R,transform:"translate("+se+"px, "+J+"px)",...xC(ee.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:se,top:J}},[n,d,ee.floating,p.x,p.y]);return k.useMemo(()=>({...p,update:I,refs:oe,elements:ee,floatingStyles:H}),[p,I,oe,ee,H])}const JB=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:s,padding:i}=typeof e=="function"?e(n):e;return s&&t(s)?s.current!=null?w1({element:s.current,padding:i}).fn(n):{}:s?w1({element:s,padding:i}).fn(n):{}}}},ZB=(e,t)=>({...UB(e),options:[e,t]}),e9=(e,t)=>({...$B(e),options:[e,t]}),t9=(e,t)=>({...GB(e),options:[e,t]}),n9=(e,t)=>({...WB(e),options:[e,t]}),s9=(e,t)=>({...HB(e),options:[e,t]}),r9=(e,t)=>({...qB(e),options:[e,t]}),i9=(e,t)=>({...JB(e),options:[e,t]});var o9="Arrow",wC=k.forwardRef((e,t)=>{const{children:n,width:s=10,height:i=5,...l}=e;return a.jsx(Qe.svg,{...l,ref:t,width:s,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:a.jsx("polygon",{points:"0,0 30,0 15,10"})})});wC.displayName=o9;var a9=wC,dy="Popper",[bC,kC]=Lr(dy),[l9,SC]=bC(dy),NC=e=>{const{__scopePopper:t,children:n}=e,[s,i]=k.useState(null);return a.jsx(l9,{scope:t,anchor:s,onAnchorChange:i,children:n})};NC.displayName=dy;var jC="PopperAnchor",CC=k.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:s,...i}=e,l=SC(jC,n),c=k.useRef(null),d=Ht(t,c),f=k.useRef(null);return k.useEffect(()=>{const m=f.current;f.current=(s==null?void 0:s.current)||c.current,m!==f.current&&l.onAnchorChange(f.current)}),s?null:a.jsx(Qe.div,{...i,ref:d})});CC.displayName=jC;var hy="PopperContent",[c9,u9]=bC(hy),AC=k.forwardRef((e,t)=>{var Se,Fe,ze,dt,Rn,Jn;const{__scopePopper:n,side:s="bottom",sideOffset:i=0,align:l="center",alignOffset:c=0,arrowPadding:d=0,avoidCollisions:f=!0,collisionBoundary:m=[],collisionPadding:p=0,sticky:g="partial",hideWhenDetached:x=!1,updatePositionStrategy:N="optimized",onPlaced:b,...w}=e,S=SC(hy,n),[j,P]=k.useState(null),A=Ht(t,Zn=>P(Zn)),[E,D]=k.useState(null),V=QN(E),B=(V==null?void 0:V.width)??0,L=(V==null?void 0:V.height)??0,ne=s+(l!=="center"?"-"+l:""),Q=typeof p=="number"?p:{top:0,right:0,bottom:0,left:0,...p},re=Array.isArray(m)?m:[m],ie=re.length>0,I={padding:Q,boundary:re.filter(h9),altBoundary:ie},{refs:Y,floatingStyles:oe,placement:ee,isPositioned:H,middlewareData:R}=XB({strategy:"fixed",placement:ne,whileElementsMounted:(...Zn)=>zB(...Zn,{animationFrame:N==="always"}),elements:{reference:S.anchor},middleware:[ZB({mainAxis:i+L,alignmentAxis:c}),f&&e9({mainAxis:!0,crossAxis:!1,limiter:g==="partial"?t9():void 0,...I}),f&&n9({...I}),s9({...I,apply:({elements:Zn,rects:Ti,availableWidth:Yl,availableHeight:Kl})=>{const{width:Go,height:Ql}=Ti.reference,$s=Zn.floating.style;$s.setProperty("--radix-popper-available-width",`${Yl}px`),$s.setProperty("--radix-popper-available-height",`${Kl}px`),$s.setProperty("--radix-popper-anchor-width",`${Go}px`),$s.setProperty("--radix-popper-anchor-height",`${Ql}px`)}}),E&&i9({element:E,padding:d}),f9({arrowWidth:B,arrowHeight:L}),x&&r9({strategy:"referenceHidden",...I})]}),[se,J]=TC(ee),F=bi(b);_r(()=>{H&&(F==null||F())},[H,F]);const q=(Se=R.arrow)==null?void 0:Se.x,pe=(Fe=R.arrow)==null?void 0:Fe.y,ye=((ze=R.arrow)==null?void 0:ze.centerOffset)!==0,[Ce,Te]=k.useState();return _r(()=>{j&&Te(window.getComputedStyle(j).zIndex)},[j]),a.jsx("div",{ref:Y.setFloating,"data-radix-popper-content-wrapper":"",style:{...oe,transform:H?oe.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ce,"--radix-popper-transform-origin":[(dt=R.transformOrigin)==null?void 0:dt.x,(Rn=R.transformOrigin)==null?void 0:Rn.y].join(" "),...((Jn=R.hide)==null?void 0:Jn.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:a.jsx(c9,{scope:n,placedSide:se,onArrowChange:D,arrowX:q,arrowY:pe,shouldHideArrow:ye,children:a.jsx(Qe.div,{"data-side":se,"data-align":J,...w,ref:A,style:{...w.style,animation:H?void 0:"none"}})})})});AC.displayName=hy;var PC="PopperArrow",d9={top:"bottom",right:"left",bottom:"top",left:"r
394ight"},EC=k.forwardRef(function(t,n){const{__scopePopper:s,...i}=t,l=u9(PC,s),c=d9[l.placedSide];return a.jsx("span",{ref:l.onArrowChange,style:{position:"absolute",left:l.arrowX,top:l.arrowY,[c]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[l.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[l.placedSide],visibility:l.shouldHideArrow?"hidden":void 0},children:a.jsx(a9,{...i,ref:n,style:{...i.style,display:"block"}})})});EC.displayName=PC;function h9(e){return e!==null}var f9=e=>({name:"transformOrigin",options:e,fn(t){var S,j,P;const{placement:n,rects:s,middlewareData:i}=t,c=((S=i.arrow)==null?void 0:S.centerOffset)!==0,d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[m,p]=TC(n),g={start:"0%",center:"50%",end:"100%"}[p],x=(((j=i.arrow)==null?void 0:j.x)??0)+d/2,N=(((P=i.arrow)==null?void 0:P.y)??0)+f/2;let b="",w="";return m==="bottom"?(b=c?g:`${x}px`,w=`${-f}px`):m==="top"?(b=c?g:`${x}px`,w=`${s.floating.height+f}px`):m==="right"?(b=`${-f}px`,w=c?g:`${N}px`):m==="left"&&(b=`${s.floating.width+f}px`,w=c?g:`${N}px`),{data:{x:b,y:w}}}});function TC(e){const[t,n="center"]=e.split("-");return[t,n]}var m9=NC,RC=CC,p9=AC,g9=EC,Md="Popover",[_C]=Lr(Md,[kC]),ql=kC(),[y9,Br]=_C(Md),DC=e=>{const{__scopePopover:t,children:n,open:s,defaultOpen:i,onOpenChange:l,modal:c=!1}=e,d=ql(t),f=k.useRef(null),[m,p]=k.useState(!1),[g,x]=Vl({prop:s,defaultProp:i??!1,onChange:l,caller:Md});return a.jsx(m9,{...d,children:a.jsx(y9,{scope:t,contentId:fo(),triggerRef:f,open:g,onOpenChange:x,onOpenToggle:k.useCallback(()=>x(N=>!N),[x]),hasCustomAnchor:m,onCustomAnchorAdd:k.useCallback(()=>p(!0),[]),onCustomAnchorRemove:k.useCallback(()=>p(!1),[]),modal:c,children:n})})};DC.displayName=Md;var MC="PopoverAnchor",v9=k.forwardRef((e,t)=>{const{__scopePopover:n,...s}=e,i=Br(MC,n),l=ql(n),{onCustomAnchorAdd:c,onCustomAnchorRemove:d}=i;return k.useEffect(()=>(c(),()=>d()),[c,d]),a.jsx(RC,{...l,...s,ref:t})});v9.displayName=MC;var FC="PopoverTrigger",OC=k.forwardRef((e,t)=>{const{__scopePopover:n,...s}=e,i=Br(FC,n),l=ql(n),c=Ht(t,i.triggerRef),d=a.jsx(Qe.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":zC(i.open),...s,ref:c,onClick:nt(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?d:a.jsx(RC,{asChild:!0,...l,children:d})});OC.displayName=FC;var fy="PopoverPortal",[x9,w9]=_C(fy,{forceMount:void 0}),LC=e=>{const{__scopePopover:t,forceMount:n,children:s,container:i}=e,l=Br(fy,t);return a.jsx(x9,{scope:t,forceMount:n,children:a.jsx(Ir,{present:n||l.open,children:a.jsx(Bg,{asChild:!0,container:i,children:s})})})};LC.displayName=fy;var Oo="PopoverContent",IC=k.forwardRef((e,t)=>{const n=w9(Oo,e.__scopePopover),{forceMount:s=n.forceMount,...i}=e,l=Br(Oo,e.__scopePopover);return a.jsx(Ir,{present:s||l.open,children:l.modal?a.jsx(k9,{...i,ref:t}):a.jsx(S9,{...i,ref:t})})});IC.displayName=Oo;var b9=Mo("PopoverContent.RemoveScroll"),k9=k.forwardRef((e,t)=>{const n=Br(Oo,e.__scopePopover),s=k.useRef(null),i=Ht(t,s),l=k.useRef(!1);return k.useEffect(()=>{const c=s.current;if(c)return gj(c)},[]),a.jsx(Vg,{as:b9,allowPinchZoom:!0,children:a.jsx(BC,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:nt(e.onCloseAutoFocus,c=>{var d;c.preventDefault(),l.current||(d=n.triggerRef.current)==null||d.focus()}),onPointerDownOutside:nt(e.onPointerDownOutside,c=>{const d=c.detail.originalEvent,f=d.button===0&&d.ctrlKey===!0,m=d.button===2||f;l.current=m},{checkForDefaultPrevented:!1}),onFocusOutside:nt(e.onFocusOutside,c=>c.preventDefault(),{checkForDefaultPrevented:!1})})})}),S9=k.forwardRef((e,t)=>{const n=Br(Oo,e.__scopePopover),s=k.useRef(!1),i=k.useRef(!1);return a.jsx(BC,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:l=>{var c,d;(c=e.onCloseAutoFocus)==null||c.call(e,l),l.defaultPrevented||(s.current||(d=n.triggerRef.current)==null||d.focus(),l.preventDefault()),s.current=!1,i.current=!1},onInteractOutside:l=>{var f,m;(f=e.onInteractOutside)==null||f.call(e,l),l.defaultPrevented||(s.current=!0,l.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const c=l.target;((m=n.triggerRef.current)==null?void 0:m.contains(c))&&l.preventDefault(),l.detail.originalEvent.type==="focusin"&&i.current&&l.preventDefault()}})}),BC=k.forwardRef((e,t)=>
394{const{__scopePopover:n,trapFocus:s,onOpenAutoFocus:i,onCloseAutoFocus:l,disableOutsidePointerEvents:c,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:m,onInteractOutside:p,...g}=e,x=Br(Oo,n),N=ql(n);return aj(),a.jsx(Ig,{asChild:!0,loop:!0,trapped:s,onMountAutoFocus:i,onUnmountAutoFocus:l,children:a.jsx(Lg,{asChild:!0,disableOutsidePointerEvents:c,onInteractOutside:p,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:m,onDismiss:()=>x.onOpenChange(!1),children:a.jsx(p9,{"data-state":zC(x.open),role:"dialog",id:x.contentId,...N,...g,ref:t,style:{...g.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)"}})})})}),VC="PopoverClose",N9=k.forwardRef((e,t)=>{const{__scopePopover:n,...s}=e,i=Br(VC,n);return a.jsx(Qe.button,{type:"button",...s,ref:t,onClick:nt(e.onClick,()=>i.onOpenChange(!1))})});N9.displayName=VC;var j9="PopoverArrow",C9=k.forwardRef((e,t)=>{const{__scopePopover:n,...s}=e,i=ql(n);return a.jsx(g9,{...i,...s,ref:t})});C9.displayName=j9;function zC(e){return e?"open":"closed"}var A9=DC,P9=OC,E9=LC,UC=IC;const T9=A9,R9=P9,$C=k.forwardRef(({className:e,align:t="center",sideOffset:n=4,...s},i)=>a.jsx(E9,{children:a.jsx(UC,{ref:i,align:t,sideOffset:n,className:Re("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",e),...s})}));$C.displayName=UC.displayName;const _9=["9:00 AM","10:00 AM","11:00 AM","1:00 PM","2:00 PM","3:00 PM","4:00 PM"];function D9({treatment:e,concernId:t,onComplete:n}){const[s,i]=k.useState({client_name:"",client_email:"",client_phone:"",notes:""}),[l,c]=k.useState(null),[d,f]=k.useState(null),[m,p]=k.useState(!1),[g,x]=k.useState(!1),N=async b=>{b.preventDefault(),p(!0),await bt.entities.Appointment.create({...s,treatment_type:(e==null?void 0:e.name)||"Consultation",date:Bs(l,"yyyy-MM-dd"),time:d,status:"pending",concern_id:t}),x(!0),p(!1),setTimeout(()=>{n&&n()},2e3)};return g?a.jsxs(Z.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},className:"text-center py-12",children:[a.jsx("div",{className:"w-20 h-20 rounded-full bg-green-100 flex items-center justify-center mx-auto mb-6",children:a.jsx(Uu,{className:"w-10 h-10 text-green-500"})}),a.jsx("h3",{className:"text-2xl font-medium text-stone-800 mb-2",children:"Booking Confirmed!"}),a.jsxs("p",{className:"text-stone-500",children:["We'll send a confirmation email to ",s.client_email]})]}):a.jsxs("form",{onSubmit:N,className:"space-y-6",children:[e&&a.jsxs("div",{className:"bg-stone-100 rounded-xl p-4 mb-6 border border-stone-200",children:[a.jsx("p",{className:"text-sm text-stone-700 font-medium",children:"Selected Treatment"}),a.jsx("p",{className:"text-stone-900 font-medium",children:e.name})]}),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(Ke,{htmlFor:"name",className:"text-stone-700",children:"Full Name"}),a.jsxs("div",{className:"relative",children:[a.jsx(dd,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-stone-400"}),a.jsx(it,{id:"name",placeholder:"Your full name",value:s.client_name,onChange:b=>i({...s,client_name:b.target.value}),className:"pl-10 rounded-xl border-stone-200 focus:border-stone-400",required:!0})]})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsx(Ke,{htmlFor:"email",className:"text-stone-700",children:"Email"}),a.jsxs("div",{className:"relative",children:[a.jsx(Mp,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-stone-400"}),a.jsx(it,{id:"email",type:"email",placeholder:"[email protected]",value:s.client_email,onChange:b=>i({...s,client_email:b.target.value}),className:"pl-10 rounded-xl border-stone-200 focus:border-stone-400",required:!0})]})]})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsx(Ke,{htmlFor:"phone",className:"text-stone-700",children:"Phone Number"}),a.jsxs("div",{className:"relative",children:[a.jsx(Ci,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-stone-400"}),a.jsx(it,{id:"phone",type:"tel",placeholder:"(555) 123-4567",value:s.client_phone,onChange:b=>i({...s,client_phone:b.target.value}),className:"pl-10 rounded-xl border-stone-200 focus:border-rose-400",required:!0})]})]}),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(Ke,{className:"text-stone-700",children:"Preferred Date"}),a.jsxs(T9,{children:[a.jsx(R9,{asChild:!0,children:a.jsxs(ae,{variant:"outline",className:"w-full justify-start text-left font-normal rounded-xl border-stone-200 hover:border-stone-400",children:[a.jsx(un,{className:"mr-2 h-4 w-4 text-stone-400"}),l?Bs(l,"PPP"):"Select a date"]})}),a.jsx($C,{className:"w-auto p-0",align:"start",children:a.jsx(lC,{mode:"single",selected:l,onSelect:c,disabled:b=>Qg(b,y8())||b<zt(new Date,1),initialFocus:!0})})]})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsx(Ke,{className:"text-stone-700",children:"Preferred Time"}),a.jsx("div",{className:"grid grid-cols-3 gap-2",children:_9.map(b=>a.jsx(ae,{type:"button",variant:d===b?"default":"outline",size:"sm",onClick:()=>f(b),className:`rounded-lg text-xs ${d===b?"bg-yellow-600 hover:bg-yellow-700 border-yellow-600 text-white":"border-stone-200 hover:border-yellow-500/30"}`,children:b},b))})]})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsx(Ke,{htmlFor:"notes",className:"text-stone-700",children:"Additional Notes (Optional)"}),a.jsxs("div",{className:"relative",children:[a.jsx(Nr,{className:"absolute left-3 top-3 w-4 h-4 text-stone-400"}),a.jsx(Hg,{id:"notes",placeholder:"Any specific concerns or questions...",value:s.notes,onChange:b=>i({...s,notes:b.target.value}),className:"pl-10 rounded-xl border-stone-200 focus:border-rose-400 min-h-[100px]"})]})]}),a.jsx(ae,{type:"submit",disabled:m||!l||!d,className:"w-full bg-gradient-to-r from-yellow-600 to-yellow-700 hover:from-yellow-700 hover:to-yellow-800 text-white py-6 rounded-xl text-lg shadow-lg shadow-yellow-600/20",children:m?a.jsxs(a.Fragment,{children:[a.jsx(Po,{className:"w-5 h-5 mr-2 animate-spin"}),"Booking..."]}):"Confirm Booking"})]})}function ct(e){return"/"+e.replace(/ /g,"-")}function M9(){return a.jsx("div",{className:"min-h-screen bg-stone-50",children:a.jsx("div",{className:"max-w-6xl mx-auto py-12 px-6",children:a.jsxs("div",{className:"grid lg:grid-cols-2 gap-12",children:[a.jsxs(Z.div,{initial:{opacity:0,x:-20}
394,animate:{opacity:1,x:0},children:[a.jsxs("h1",{className:"text-4xl md:text-5xl font-light text-stone-900 mb-4",children:["Book Your",a.jsx("span",{className:"block font-medium text-black",children:"Appointment"})]}),a.jsx("p",{className:"text-stone-600 text-lg font-light mb-8 leading-relaxed",children:"Ready to start your transformation? Schedule a consultation or treatment with our expert team."}),a.jsx("div",{className:"space-y-6 mb-8",children:[{icon:Fp,title:"Our Location",detail:"5165 Northland Dr NE, Grand Rapids, MI 49525"},{icon:Ci,title:"Call Us",detail:"(616) 386-1840"},{icon:Pl,title:"Office Hours",detail:"M-Th 8am-7pm, Fri 8am-5pm, Sat 10am-4pm"},{icon:un,title:"Availability",detail:"By Appointment"}].map(e=>a.jsxs("div",{className:"flex items-start gap-4",children:[a.jsx("div",{className:"w-12 h-12 rounded-xl bg-stone-100 flex items-center justify-center flex-shrink-0",children:a.jsx(e.icon,{className:"w-5 h-5 text-stone-900"})}),a.jsxs("div",{children:[a.jsx("h3",{className:"font-medium text-stone-900",children:e.title}),a.jsx("p",{className:"text-stone-600 text-sm",children:e.detail})]})]},e.title))}),a.jsxs("div",{className:"bg-gradient-to-br from-black to-stone-900 rounded-2xl p-6 text-white",children:[a.jsx("h3",{className:"font-medium mb-2",children:"Not sure what you need?"}),a.jsx("p",{className:"text-stone-300 text-sm mb-4",children:"Take our quick assessment to get personalized treatment recommendations"}),a.jsx(Tt,{to:ct("Assessment"),className:"inline-flex items-center text-white hover:text-stone-300 text-sm font-medium",children:"Start Assessment →"})]})]}),a.jsxs(Z.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},className:"bg-white rounded-3xl shadow-xl shadow-stone-200/50 p-8",children:[a.jsx("h2",{className:"text-2xl font-medium text-stone-900 mb-6",children:"Schedule Your Visit"}),a.jsx(D9,{})]})]})})})}function F9(){return a.jsx("div",{className:"min-h-screen bg-stone-50 py-12 px-6",children:a.jsxs("div",{className:"max-w-4xl mx-auto",children:[a.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center mb-12",children:[a.jsx("h1",{className:"text-3xl md:text-4xl font-light text-stone-900 mb-3",children:"Book Your Appointment"}),a.jsx("p",{className:"text-stone-600 text-lg",children:"Ready to begin your wellness journey? We're here to help."})]}),a.jsxs("div",{className:"grid md:grid-cols-2 gap-8 mb-12",children:[a.jsxs(Z.div,{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},className:"bg-white rounded-3xl shadow-xl shadow-stone-200/50 p-8",children:[a.jsx("h2",{className:"text-2xl font-medium text-stone-900 mb-6",children:"Visit Us"}),a.jsxs("div",{className:"space-y-6",children:[a.jsxs("div",{className:"flex items-start gap-4",children:[a.jsx("div",{className:"w-12 h-12 rounded-xl bg-[#D4AF37]/10 flex items-center justify-center flex-shrink-0",children:a.jsx(Fp,{className:"w-6 h-6 text-[#D4AF37]"})}),a.jsxs("div",{children:[a.jsx("h3",{className:"font-medium text-stone-900 mb-1",children:"Location"}),a.jsxs("a",{href:"https://maps.app.goo.gl/mbdixY3FX9ZQbuLc7",target:"_blank",rel:"noopener noreferrer",className:"text-stone-600 text-sm hover:text-[#D4AF37] transition-colors",children:["5165 Northland Drive NE",a.jsx("br",{}),"Grand Rapids, MI 49525",a.jsx("br",{}),a.jsx("span",{className:"text-xs",children:"(Corner of Plainfield & East Beltline, behind Mr. Burger)"})]})]})]}),a.jsxs("div",{className:"flex items-start gap-4",children:[a.jsx("div",{className:"w-12 h-12 rounded-xl bg-[#D4AF37]/10 flex items-center justify-center flex-shrink-0",children:a.jsx(Ci,{className:"w-6 h-6 text-[#D4AF37]"})}),a.jsxs("div",{children:[a.jsx("h3",{className:"font-medium text-stone-900 mb-1",children:"Phone"}),a.jsx("a",{href:"tel:+16163861840",className:"text-stone-600 text-sm hover:text-[#D4AF37] transition-colors",children:"(616) 386-1840"}),a.jsx("p",{className:"text-xs text-stone-500 mt-1",children:"24/7 call center available"})]})]}),a.jsxs("div",{className:"flex items-start gap-4",children:[a.jsx("div",{className:"w-12 h-12 rounded-xl bg-[#D4AF37]/10 flex items-center justify-center flex-shrink-0",children:a.jsx(Pl,{className:"w-6 h-6 text-[#D4AF37]"})}),a.jsxs("div",{children:[a.jsx("h3",{className:"font-medium text-stone-900 mb
394-1",children:"Hours"}),a.jsxs("div",{className:"text-stone-600 text-sm space-y-1",children:[a.jsx("p",{children:"Monday - Thursday: 8am - 7pm"}),a.jsx("p",{children:"Friday: 8am - 5pm"}),a.jsx("p",{children:"Saturday: 10am - 4pm"}),a.jsx("p",{className:"text-xs text-stone-500 mt-2",children:"By appointment only"})]})]})]})]})]}),a.jsxs(Z.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},className:"bg-gradient-to-br from-stone-900 to-black rounded-3xl shadow-xl p-8 text-white",children:[a.jsxs("div",{className:"flex items-start gap-3 mb-6",children:[a.jsx(Me,{className:"w-8 h-8 text-[#D4AF37] flex-shrink-0"}),a.jsxs("div",{children:[a.jsx("h2",{className:"text-2xl font-medium mb-2",children:"Not Sure What You Need?"}),a.jsx("p",{className:"text-stone-300 text-sm",children:"Take our quick assessment to get personalized treatment recommendations"})]})]}),a.jsx(Tt,{to:ct("Assessment"),children:a.jsxs(ae,{className:"w-full bg-[#D4AF37] hover:bg-[#C19B2E] text-black rounded-xl py-6 mb-4",children:[a.jsx(Me,{className:"w-5 h-5 mr-2"}),"Take Assessment"]})}),a.jsx("p",{className:"text-stone-400 text-xs text-center",children:"Get matched with the perfect treatments in just 2 minutes"})]})]}),a.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.2},className:"bg-white rounded-3xl shadow-xl shadow-stone-200/50 p-8 text-center",children:[a.jsx(un,{className:"w-12 h-12 text-[#D4AF37] mx-auto mb-4"}),a.jsx("h2",{className:"text-2xl font-medium text-stone-900 mb-3",children:"Ready to Book?"}),a.jsx("p",{className:"text-stone-600 mb-6",children:"Schedule your appointment through our secure online booking portal"}),a.jsx("a",{href:"https://lush.myaestheticrecord.com/online-booking/v2",target:"_blank",rel:"noopener noreferrer",children:a.jsxs(ae,{className:"bg-[#D4AF37] hover:bg-[#C19B2E] text-white px-8 py-6 rounded-xl text-lg shadow-lg shadow-[#D4AF37]/20",children:["Go to Booking Portal",a.jsx(qe,{className:"w-5 h-5 ml-2"})]})})]})]})})}function O9(){return a.jsxs("section",{className:"relative min-h-[90vh] flex items-center justify-center overflow-hidden bg-white",children:[a.jsxs("div",{className:"absolute inset-0 overflow-hidden",children:[a.jsx(Z.div,{className:"absolute top-20 right-20 w-96 h-96 bg-stone-100/60 rounded-full blur-3xl",animate:{scale:[1,1.2,1],opacity:[.3,.5,.3]},transition:{duration:8,repeat:1/0}}),a.jsx(Z.div,{className:"absolute bottom-20 left-20 w-80 h-80 bg-stone-200/40 rounded-full blur-3xl",animate:{scale:[1.2,1,1.2],opacity:[.4,.3,.4]},transition:{duration:10,repeat:1/0}})]}),a.jsxs("div",{className:"relative z-10 max-w-5xl mx-auto px-6 text-center",children:[a.jsx(Z.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.8},children:a.jsxs("span",{className:"inline-flex items-center gap-2 px-4 py-2 rounded-full bg-stone-100 border border-stone-200 text-sm text-stone-700 mb-8",children:[a.jsx(Me,{className:"w-4 h-4 text-stone-900"}),"Where Timeless Beauty Meets Modern Wellness"]})}),a.jsxs(Z.h1,{className:"text-5xl md:text-7xl font-light text-stone-900 leading-tight tracking-tight mb-6",initial:{opacity:0,y:40},animate:{opacity:1,y:0},transition:{duration:.8,delay:.2},children:["Discover Your",a.jsx("span",{className:"block font-medium text-black",children:"Perfect Treatment"})]}),a.jsx(Z.p,{className:"text-lg md:text-xl text-stone-500 max-w-2xl mx-auto mb-12 font-light leading-relaxed",initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.8,delay:.4},children:"From wellness optimization to aesthetic enhancement, we help you understand your concerns and find personalized solutions for your unique needs."}),a.jsxs(Z.div,{className:"flex flex-col sm:flex-row gap-4 justify-center items-center",initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.8,delay:.6},children:[a.jsx(Tt,{to:ct("Assessment"),children:a.jsxs(ae,{size:"lg",className:"bg-[#D4AF37] hover:bg-[#C19B2E] text-white px-8 py-6 text-lg rounded-full transition-all duration-300 hover:shadow-xl hover:shadow-[#D4AF37]/30 hover:scale-105",children:["Start Your Assessment",a.jsx(rn,{className:"ml-2 w-5 h-5"})]})}),a.jsx(Tt,{to:ct("Shop"),children:a.jsx(ae,{variant:"ghost",size:"lg",className:"text-stone-700 hover:text-black px-8 py-6 text-lg rounded-full",children:"Browse Products"})})]})]})]})}const L9=[{icon:Me,title:"Aesthetic Treatments",description:"Facials, injectables, lash & brow services, and skincare",color:"from-stone-700 to-black",bgColor:"bg-stone-50",concerns:["aesthetics"]},{icon:ll,title:"Wellness",description:"Hormone therapy, men's health, weight loss, IV therapy, intimate wellness, and joint pain relief",color:"from-stone-500 to-stone-800",bgColor:"bg-stone-50",concerns:["wellness"]},{icon:Ut,title:"Primary Care",description:"Chronic disease management and preventative care",color:"from-stone-600 to-stone-800",bgColor:"bg-stone-100",concerns:["primarycare"]},{icon:Op,title:"Sick Care",description:"Fast care for acute illness and urgent health concerns",color:"from-stone-600 to-stone-900",bgColor:"bg-stone-100",concerns:["sickcare"]}];function I9(){const[e,t]=k.useState(!1);return a.jsx("section",{className:"py-24 px-6 bg-white",children:a.jsxs("div",{className:"max-w-6xl mx-auto",children:[a.jsxs(Z.div,{className:"text-center mb-16",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},children:[a.jsx("h2",{className:"text-3xl md:text-4xl font-light text-stone-900 mb
394-4",children:"How Can We Help You?"}),a.jsx("p",{className:"text-stone-600 text-lg font-light max-w-xl mx-auto",children:"Select your area of concern to begin your personalized journey"})]}),a.jsx("div",{className:"grid md:grid-cols-2 gap-6",children:L9.map((n,s)=>a.jsx(Z.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:s*.1},children:n.concerns[0]==="wellness"?a.jsxs("div",{className:`${n.bgColor} rounded-3xl p-8 h-full transition-all duration-500 border cursor-pointer ${e?"border-[#D4AF37]/40 shadow-2xl shadow-yellow-500/10":"border-stone-200 hover:shadow-2xl hover:shadow-yellow-500/10 hover:-translate-y-2 hover:border-yellow-600/30"}`,onClick:()=>t(!e),children:[a.jsxs("div",{className:"flex items-start justify-between mb-6",children:[a.jsx("div",{className:`w-14 h-14 rounded-2xl bg-gradient-to-br ${n.color} flex items-center justify-center transition-all duration-300`,children:a.jsx(n.icon,{className:"w-7 h-7 text-white"})}),a.jsx(us,{className:`w-5 h-5 text-stone-400 mt-1 transition-transform duration-300 ${e?"rotate-90":""}`})]}),a.jsx("h3",{className:"text-xl font-medium text-stone-900 mb-3",children:n.title}),a.jsx("p",{className:"text-stone-600 font-light leading-relaxed mb-4",children:n.description}),a.jsx(Hn,{children:e&&a.jsx(Z.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{duration:.25},className:"overflow-hidden",onClick:i=>i.stopPropagation(),children:a.jsxs("div",{className:"pt-2 space-y-3 border-t border-stone-200 mt-2",children:[a.jsx("p",{className:"text-xs text-stone-500 uppercase tracking-wider pt-2",children:"Choose your path"}),a.jsxs(Tt,{to:`${ct("Assessment")}?category=wellness`,className:"flex items-center gap-3 p-4 rounded-2xl bg-black text-white hover:bg-[#D4AF37] hover:text-black transition-all duration-300 group",children:[a.jsx(I1,{className:"w-5 h-5 flex-shrink-0"}),a.jsxs("div",{children:[a.jsx("p",{className:"font-medium text-sm",children:"Take the Wellness Assessment"}),a.jsx("p",{className:"text-xs opacity-70",children:"Get personalized treatment recommendations"})]}),a.jsx(us,{className:"w-4 h-4 ml-auto flex-shrink-0"})]}),a.jsxs("a",{href:"https://us.fullscript.com/j/lush-health",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-3 p-4 rounded-2xl bg-[#D4AF37]/10 border border-[#D4AF37]/30 text-stone-900 hover:bg-[#D4AF37]/20 transition-all duration-300",children:[a.jsx($u,{className:"w-5 h-5 flex-shrink-0 text-[#D4AF37]"}),a.jsxs("div",{children:[a.jsx("p",{className:"font-medium text-sm",children:"Manage Wellness at Home"}),a.jsx("p",{className:"text-xs text-stone-500",children:"Order labs, get provider review & supplements delivered"})]}),a.jsx(us,{className:"w-4 h-4 ml-auto flex-shrink-0 text-stone-400"})]}),a.jsxs(Tt,{to:ct("SupplementAssessment"),className:"flex items-center gap-3 p-4 rounded-2xl bg-stone-100 border border-stone-200 text-stone-900 hover:bg-stone-200 transition-all duration-300",onClick:i=>i.stopPropagation(),children:[a.jsx($u,{className:"w-5 h-5 flex-shrink-0 text-stone-500"}),a.jsxs("div",{children:[a.jsx("p",{className:"font-medium text-sm",children:"Browse & Order Supplements"}),a.jsx("p",{className:"text-xs text-stone-500",children:"Find the right supplements for your goals"})]}),a.jsx(us,{className:"w-4 h-4 ml-auto flex-shrink-0 text-stone-400"})]})]})})})]}):a.jsx(Tt,{to:`${ct("Assessment")}?category=${n.concerns[0]}`,className:"block group",children:a.jsxs("div",{className:`${n.bgColor} rounded-3xl p-8 h-full transition-all duration-500 hover:shadow-2xl hover:shadow-yellow-500/10 hover:-translate-y-2 border border-stone-200 hover:border-yellow-600/30`,children:[a.jsx("div",{className:`w-14 h-14 rounded-2xl bg-gradient-to-br ${n.color} flex items-center justify-center mb-6 transition-all duration-300 group-hover:scale-110 group-hover:shadow-lg group-hover:shadow-yellow-600/20`,children:a.jsx(n.icon,{className:"w-7 h-7 text-white"})}),a.jsx("h3",{className:"text-xl font-medium text-stone-900 mb-3",children:n.title}),a.jsx("p",{className:"text-stone-600 font-light leading-relaxed",children:n.description})]})})},n.title))})]})})}function B9(){return a.jsxs("section",{className:"py-24 px-6 bg-gradient-to-br from-black via-stone-900 to-black relative overflow-hidden",children:[a.jsxs("div",{className:"absolute inset-0 overflow-hidden",children:[a.jsx("div",{className:"absolute top-0 right-0 w-96 h-96 bg-stone-700/10 rounded-full blur-3xl"}),a.jsx("div",{className:"absolute bottom-0 left-0 w-80 h-80 bg-stone-600/10 rounded-full blur-3xl"})]}),a.jsx("div",{className:"max-w-5xl mx-auto relative z-10",children:a.jsxs("div",{className:"flex flex-col lg:flex-row items-center gap-12",children:[a.jsxs(Z.div,{className:"flex-1 text-center lg:text-left",initial:{opacity:0,x:-30},whileInView:{opacity:1,x:0},viewport:{once:!0},children:[a.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 rounded-full bg-white/10 backdrop-blur-sm border border-white/10 text-sm text-stone-300 mb-6",children:[a.jsx(al,{className:"w-4 h-4"}),"Exclusive Membership Benefits"]}),a.jsxs("h2",{className:"text-3xl md:text-5xl font-light text-white leading-tight mb-6",children:["Unlock Premium",a.jsx("span",{className:"block font-medium text-white",children:"Savings & Perks"})]}),a.jsx("p",{className:"text-stone-400 text-lg font-light max-w-lg leading-relaxed mb-8",children:"Join our membership program and enjoy exclusive discounts on all treatments, priority booking, and member-only product access."}),a.jsx("div",{className:"flex flex-wrap gap-4 justify-center lg:justify-start mb-8",children:["Exclusive discounts on treatments","Priority booking","Exclusive products"].map(e=>a.jsxs("div",{className:"flex items-center gap-2 text-stone-300",children:[a.jsx("div",{className:"w-5 h-5 rounded-full bg-white/20 flex items-center justify-center",children:a.jsx(Us,{className:"w-3 h-3 text-white"})}),a.jsx("span",{className:"text-sm",children:e})]},e))}),a.jsx(Tt,{to:ct("Membership"),children:a.jsxs(ae,{size:"lg",className:"bg-gradient-to-r from-yellow-500 to-yellow-600 hover:from-yellow-600 hover:to-yellow-700 text-white px-8 py-6 text-lg rounded-full transition-all duration-300 hover:shadow-xl hover:shadow-yellow-500/30 hover:scale-105",children:["View Membership Plans",a.jsx(rn,{className:"ml-2 w-5 h-5"})]})})]}),a.jsx(Z.div,{className:"flex-1 flex justify-center",initial:{opacity:0,x:30},whileInView:{opacity:1,x:0},viewport:{once:!0},children:a.jsxs("div",{className:"relative",children:[a.jsxs("div",{className:"w-72 h-80 rounded-3xl bg-gradient-to-br from-stone-700/20 to-stone-600/20 backdrop-blur-sm border border-white/10 p-8 flex flex-col items-center justify-center",children:[a.jsx(al,{className:"w-16 h-16 text-white mb-4"}),a.jsx("div",{className:"text-3xl font-light text-white mb-2",children:"Exclusive"}),a.jsx("div",{className:"text-stone-400 text-center",children:"discounts on select treatments"})]}),a.jsx("div",{className:"absolute -bottom-6 -right-6 w-24 h-24 rounded-2xl bg-white/20 backdrop-blur-sm border border-white/10 flex items-center justify-center",children:a.jsx("span",{className:"text-2xl",children:"✨"})})]})})]})})]})}const Nm=[{name:"Sarah M.",service:"Hormone Therapy",text:"Life-changing experience! The providers at Lush Health are incredibly knowledgeable and caring. My energy is back and I feel like myself again.",rating:5},{name:"Jennifer K.",service:"Botox & Fillers",text:"Natural, beautiful results! I was nervous about injectables but the team made me feel so comfortable. I look refreshed, not overdone.",rating:5},{name:"Michael T.",service:"Weight Loss Program",text:"Down 35 pounds and feeling amazing! The medical weight loss program is comprehensive and the support is outstanding.",rating:5},{name:"Amanda R.",service:"IV Therapy",text:"The perfect pick-me-up! I get the Myers' Cocktail monthly and it's made such a difference in my energy levels and overall wellness.",rating:5},{name:"David L.",service:"Joint Pain Treatment",text:"After years of knee pain, the orthobiologics treatment has given me my active lifestyle back. Highly recommend!",rating:5},{name:"Lisa W.",service:"Chemical Peel",text:"My skin has never looked better! The results were incredible and the staff explained everything so thoroughly.",rating:5},{name:"Rachel P.",service:"Microneedling with PRP",text:"Worth every penny! My acne scars have significantly improved and my skin texture is so smooth now.",rating:5},{name:"Tom H.",service:"Testosterone Therapy",text:"Game changer for my overall health and vitality. The team at Lush Health is professional and results-focused.",rating:5}];function V9(){const[e,t]=k.useState(0),[n,s]=k.useState(!0),[i,l]=k.useState(!1);if(k.useEffect(()=>{if(i)return;const d=setInterval(()=>{t(f=>(f+1)%Nm.length)},5e3);return()=>clearInterval(d)},[i]),i)return null;const c=Nm[e];return a.jsx(Z.div,{initial:{opacity:0,y:100}
394,animate:{opacity:1,y:0},transition:{delay:1},className:"fixed left-3 md:left-6 bottom-6 md:bottom-8 z-40",children:a.jsx(Hn,{mode:"wait",children:a.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:-20},className:"bg-white rounded-lg md:rounded-2xl shadow-2xl p-2 md:p-6 max-w-[140px] md:max-w-sm border-2 border-[#D4AF37]/20 relative",children:[a.jsx(ae,{variant:"ghost",size:"icon",className:"absolute top-1 right-1 md:top-2 md:right-2 h-5 w-5 md:h-6 md:w-6 rounded-full",onClick:()=>l(!0),children:a.jsx(Fr,{className:"w-3 h-3 md:w-4 md:h-4"})}),a.jsx("div",{className:"flex gap-0.5 md:gap-1 mb-1 md:mb-3",children:[...Array(5)].map((d,f)=>a.jsx(ud,{className:"w-2 h-2 md:w-4 md:h-4 fill-[#D4AF37] text-[#D4AF37]"},f))}),a.jsxs("p",{className:"text-stone-700 text-[9px] md:text-sm leading-tight md:leading-relaxed mb-1 md:mb-4 italic line-clamp-2 md:line-clamp-none",children:['"',c.text,'"']}),a.jsxs("div",{className:"border-t border-stone-100 pt-1 md:pt-3",children:[a.jsx("p",{className:"font-medium text-stone-900 text-[10px] md:text-base",children:c.name}),a.jsx("p",{className:"text-[8px] md:text-xs text-stone-500",children:c.service})]}),a.jsx("div",{className:"flex gap-0.5 md:gap-1 mt-1 md:mt-4 justify-center",children:Nm.map((d,f)=>a.jsx("div",{className:`h-0.5 md:h-1.5 rounded-full transition-all ${f===e?"w-3 md:w-6 bg-[#D4AF37]":"w-0.5 md:w-1.5 bg-stone-200"}`},f))})]},e)})})}function z9(){return a.jsxs("div",{className:"min-h-screen relative",children:[a.jsx("div",{className:"fixed inset-0 z-0 opacity-[0.03]",style:{backgroundImage:"url(https://images.unsplash.com/photo-1515377905703-c4788e51af15?w=1920&h=1080&fit=crop)",backgroundSize:"cover",backgroundPosition:"center",filter:"grayscale(100%)"}}),a.jsxs("div",{className:"relative z-10 bg-gradient-to-b from-white/95 via-stone-50/30 to-white/95",children:[a.jsx(V9,{}),a.jsx(O9,{}),a.jsx(I9,{}),a.jsx(B9,{}),a.jsxs("section",{className:"py-32 px-6 bg-gradient-to-br from-stone-900 via-black to-stone-900 relative overflow-hidden",children:[a.jsxs("div",{className:"absolute inset-0 opacity-10",children:[a.jsx("div",{className:"absolute top-20 left-20 w-96 h-96 bg-[#D4AF37] rounded-full blur-3xl"}),a.jsx("div",{className:"absolute bottom-20 right-20 w-96 h-96 bg-white rounded-full blur-3xl"})]}),a.jsxs("div",{className:"max-w-5xl mx-auto text-center relative z-10",children:[a.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},children:[a.jsx("div",{className:"inline-block mb-4 px-4 py-1.5 bg-[#D4AF37]/20 backdrop-blur-sm rounded-full border border-[#D4AF37]/30",children:a.jsx("span",{className:"text-[#D4AF37] text-sm font-medium",children:"We're Here For You"})}),a.jsx("h2",{className:"text-4xl md:text-5xl font-light text-white mb-5",children:"Visit Our Office"}),a.jsx("p",{className:"text-stone-300 text-lg font-light mb-16 max-w-2xl mx-auto leading-relaxed",children:"We'd love to welcome you to our modern wellness sanctuary"})]}),a.jsx("div",{className:"grid md:grid-cols-3 gap-8",children:[{icon:Fp,title:"Location",detail:"5165 Northland Dr NE, Grand Rapids, MI 49525",link:"https://maps.app.goo.gl/mbdixY3FX9ZQbuLc7"},{icon:Ci,title:"Phone",detail:"(616) 386-1840",link:"tel:+16163861840"}
394,{icon:Pl,title:"Hours",detail:"By Appointment: M-Th 8am-7pm, Fri 8am-5pm, Sat 10am-4pm",link:ct("BookAppointment")}].map((e,t)=>a.jsx(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:t*.1},className:"relative group",children:a.jsx("a",{href:e.link,target:e.title==="Location"?"_blank":void 0,rel:e.title==="Location"?"noopener noreferrer":void 0,className:"block",children:a.jsxs("div",{className:"bg-white/5 backdrop-blur-sm border border-white/10 rounded-2xl p-8 hover:bg-white/10 transition-all duration-300 hover:border-[#D4AF37]/30 cursor-pointer",children:[a.jsx("div",{className:"w-16 h-16 rounded-2xl bg-gradient-to-br from-[#D4AF37]/20 to-white/5 flex items-center justify-center mb-5 mx-auto border border-[#D4AF37]/20 group-hover:scale-110 transition-transform",children:a.jsx(e.icon,{className:"w-7 h-7 text-[#D4AF37]"})}),a.jsx("h3",{className:"font-medium text-white mb-2 text-lg",children:e.title}),a.jsx("p",{className:"text-stone-400 text-sm leading-relaxed",children:e.detail})]})})},e.title))})]})]})]})]})}function U9(){return a.jsx("div",{className:"min-h-screen bg-stone-50 py-12 px-6",children:a.jsxs("div",{className:"max-w-4xl mx-auto",children:[a.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center mb-8",children:[a.jsx("h1",{className:"text-3xl md:text-4xl font-light text-stone-900 mb-3",children:"Submit Medical Records & Labs"}),a.jsx("p",{className:"text-stone-600",children:"Send us your medical records or lab results securely"}),a.jsx("div",{className:"mt-4 bg-blue-50 border border-blue-200 rounded-xl p-4 text-left max-w-2xl mx-auto",children:a.jsxs("p",{className:"text-sm text-blue-900",children:[a.jsx("strong",{children:"Note:"})," Messages go to a general mailbox. Please include your full name and phone number with all communications to ensure we can respond appropriately."]})})]}),a.jsx(_e,{className:"mb-6 border-red-200 bg-red-50",children:a.jsxs(De,{className:"p-4 flex items-start gap-3",children:[a.jsx(Wn,{className:"w-5 h-5 text-red-600 flex-shrink-0 mt-0.5"}),a.jsxs("div",{children:[a.jsx("p",{className:"text-sm font-medium text-red-900",children:"Medical Emergency?"}),a.jsx("p",{className:"text-xs text-red-700",children:"Call 911 immediately. These channels are not monitored for emergencies."})]})]})}),a.jsx(_e,{className:"mb-8 border-blue-200 bg-blue-50",children:a.jsxs(De,{className:"p-4 flex items-start gap-3",children:[a.jsx(Pl,{className:"w-5 h-5 text-blue-600 flex-shrink-0 mt-0.5"}),a.jsxs("div",{children:[a.jsx("p",{className:"text-sm font-medium text-blue-900",children:"Response Time"}),a.jsx("p",{className:"text-xs text-blue-700",children:"Please allow up to 48 hours for a response during business hours."})]})]})}),a.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[a.jsx(Z.div,{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},children:a.jsxs(_e,{className:"h-full hover:shadow-lg transition-shadow",children:[a.jsxs(vt,{children:[a.jsxs(xt,{className:"flex items-center gap-2",children:[a.jsx(vi,{className:"w-5 h-5 text-[#D4AF37]"}),"HIPAA Compliant Fax"]}),a.jsx($n,{children:"Securely fax your documents"})]}),a.jsxs(De,{className:"space-y-4",children:[a.jsxs("div",{className:"bg-[#D4AF37]/10 rounded-xl p-6 text-center border-2 border-[#D4AF37]/20",children:[a.jsx("p",{className:"text-sm text-stone-600 mb-2",children:"Fax Number"}),a.jsx("p",{className:"text-3xl font-medium text-stone-900",children:"843-897-5100"})]}),a.jsxs("div",{className:"space-y-2 text-sm text-stone-600",children:[a.jsx("p",{className:"font-medium text-stone-900",children:"What to Include:"}),a.jsxs("ul",{className:"space-y-1 ml-4 list-disc",children:[a.jsx("li",{children:"Your full name"}),a.jsx("li",{children:"Date of birth"}),a.jsx("li",{children:"Phone number"}),a.jsx("li",{children:"Medical records or lab results"})]})]}),a.jsx("div",{className:"bg-stone-50 rounded-lg p-3",children:a.jsxs("p",{className:"text-xs text-stone-600 flex items-start gap-2",children:[a.jsx(Wn,{className:"w-3 h-3 mt-0.5 flex-shrink-0"}),"This fax line is HIPAA compliant and secure for sending sensitive medical information."]})})]})]})}),a.jsx(Z.div,{initial:{opacity:0,x:20}
394,animate:{opacity:1,x:0},children:a.jsxs(_e,{className:"h-full hover:shadow-lg transition-shadow",children:[a.jsxs(vt,{children:[a.jsxs(xt,{className:"flex items-center gap-2",children:[a.jsx(Nr,{className:"w-5 h-5 text-[#D4AF37]"}),"HIPAA Secure Text Line"]}),a.jsx($n,{children:"Text us for questions, document submission, or general clinic needs"})]}),a.jsxs(De,{className:"space-y-4",children:[a.jsxs("div",{className:"bg-[#D4AF37]/10 rounded-xl p-6 text-center border-2 border-[#D4AF37]/20",children:[a.jsx("p",{className:"text-sm text-stone-600 mb-2",children:"Text Number"}),a.jsx("a",{href:"sms:+16163035874",className:"text-3xl font-medium text-stone-900 hover:text-[#D4AF37] transition-colors",children:"(616) 303-LUSH"}),a.jsx("p",{className:"text-xs text-stone-500 mt-1",children:"(616) 303-5874"})]}),a.jsxs("div",{className:"space-y-2 text-sm text-stone-600",children:[a.jsx("p",{className:"font-medium text-stone-900",children:"In Your Text Include:"}),a.jsxs("ul",{className:"space-y-1 ml-4 list-disc",children:[a.jsx("li",{children:"Your full name"}),a.jsx("li",{children:"Date of birth"}),a.jsx("li",{children:"Brief description of documents"}),a.jsx("li",{children:"Attach photos of records/labs"})]})]}),a.jsx("div",{className:"bg-stone-50 rounded-lg p-3",children:a.jsxs("p",{className:"text-xs text-stone-600 flex items-start gap-2",children:[a.jsx(Wn,{className:"w-3 h-3 mt-0.5 flex-shrink-0"}),"This text line is HIPAA compliant and monitored during business hours only."]})})]})]})})]}),a.jsx(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.2},className:"mt-8",children:a.jsx(_e,{children:a.jsxs(De,{className:"p-6",children:[a.jsx("h3",{className:"font-medium text-stone-900 mb-3",children:"Need Help?"}),a.jsx("p",{className:"text-sm text-stone-600 mb-4",children:"If you need assistance submitting your records or have questions, you can call our office during business hours."}),a.jsx("a",{href:"tel:+16163861840",children:a.jsx(ae,{variant:"outline",className:"rounded-xl",children:"Call (616) 386-1840"})})]})})})]})})}const $9=[{id:"regular",name:"All Clients",price:0,period:"",setup:0,color:"from-stone-300 to-stone-500",bgColor:"bg-white",features:["Access to all services","Professional expert care","Luxurious treatment experience","High-quality medical-grade products","Flexible scheduling","Personalized treatment plans","No membership required"]},{id:"luscious",name:"LUSCIOUS Loyalty",price:1,period:"/year",setup:25,color:"from-stone-500 to-stone-700",bgColor:"bg-stone-50",features:["Member-exclusive discounts all year","Earn $5 monthly credits automatically","Credits valid for 1 year","Referral bonuses for referring friends","Easy appointment booking via portal","Manage account from anywhere","Smart beauty rewards program"]},{id:"hush",name:"HUSH by LUSH",price:150,period:"/month",setup:25,color:"from-stone-800 to-black",bgColor:"bg-stone-100",popular:!0,subtitle:"Discreet monthly payments",features:["$150/month goes into YOUR credit account","Pay for treatments in smaller, discreet monthly payments","No large transactions - we keep it private","Deepest discounts on all services","Free monthly B12 injection & red light therapy",'Share 4 "Day as HUSH member" passes per year',"Credits remain yours for 3 months after cancel","Transfer balance to friends","Earn additional loyalty credits","No contracts, cancel anytime"]}];function W9(){const[e,t]=k.useState(null),[n,s]=k.useState(!1),[i,l]=k.useState({name:"",email:""}),[c,d]=k.useState(!1),[f,m]=k.useState(!1),p=()=>{(e==null?void 0:e.id)==="regular"?window.location.href="https://lush.myaestheticrecord.com/online-booking/v2/book-appointment":window.location.href="https://lush.myaestheticrecord.com/online-booking/v2/memberships"};return a.jsxs("div",{className:"min-h-screen bg-stone-50",children:[a.jsx("section",{className:"py-20 px-6 text-center",children:a.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},children:[a.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 rounded-full bg-stone-100 border border-stone-200 text-sm text-stone-700 mb-6",children:[a.jsx(al,{className:"w-4 h-4 text-stone-900"}),"Exclusive Membership Program"]}),a.jsxs("h1",{className:"text-4xl md:text-6xl font-light text-stone-900 mb
394-4",children:["Join Our",a.jsx("span",{className:"block font-medium text-black",children:"Inner Circle"})]}),a.jsx("p",{className:"text-stone-600 text-lg font-light max-w-xl mx-auto",children:"Unlock exclusive savings, priority access, and member-only perks with our membership plans"})]})}),a.jsx("section",{className:"pb-24 px-6",children:a.jsx("div",{className:"max-w-7xl mx-auto",children:a.jsx("div",{className:"grid md:grid-cols-3 gap-8",children:$9.map((g,x)=>a.jsxs(Z.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{delay:x*.1},className:`relative ${g.bgColor} rounded-3xl p-8 border-2 transition-all duration-300 ${g.popular?"border-stone-400 shadow-xl shadow-stone-200":"border-stone-200 hover:border-stone-400"}`,children:[g.popular&&a.jsx("div",{className:"absolute -top-4 left-1/2 -translate-x-1/2",children:a.jsxs("div",{className:"flex items-center gap-1 px-4 py-1.5 rounded-full bg-black text-white text-sm font-medium shadow-lg",children:[a.jsx(ud,{className:"w-4 h-4 fill-white"}),"Most Popular"]})}),a.jsx("div",{className:`w-16 h-16 rounded-2xl bg-gradient-to-br ${g.color} flex items-center justify-center mb-6`,children:a.jsx(al,{className:"w-8 h-8 text-white"})}),a.jsx("h3",{className:"text-2xl font-medium text-stone-900 mb-2",children:g.name}),g.subtitle&&a.jsx("p",{className:"text-sm text-stone-600 italic mb-2",children:g.subtitle}),a.jsx("div",{className:"flex items-baseline gap-1 mb-2",children:g.price===0?a.jsx("span",{className:"text-4xl font-light text-stone-900",children:"No Fee"}):a.jsxs(a.Fragment,{children:[a.jsxs("span",{className:"text-4xl font-light text-stone-900",children:["$",g.price]}),a.jsx("span",{className:"text-stone-600",children:g.period})]})}),g.setup>0&&a.jsxs("p",{className:"text-xs text-stone-500 mb-6",children:["+ $",g.setup," setup fee"]}),a.jsx("div",{className:"inline-flex items-center gap-2 px-3 py-1.5 rounded-full bg-white border border-stone-200 text-sm text-stone-700 mb-6",children:a.jsx("span",{className:"font-medium text-stone-900",children:g.id==="hush"?"Discreet Payments":g.id==="luscious"?"Best Value":"Great Service"})}),a.jsx("ul",{className:"space-y-3 mb-8",children:g.features.map(N=>a.jsxs("li",{className:"flex items-start gap-3 text-stone-600",children:[a.jsx(Us,{className:"w-5 h-5 text-green-500 flex-shrink-0 mt-0.5"}),a.jsx("span",{className:"text-sm",children:N})]},N))}),a.jsxs(ae,{onClick:()=>{t(g),s(!0)},className:`w-full py-6 rounded-xl text-lg ${g.popular?"bg-[#D4AF37] hover:bg-[#C19B2E] text-white shadow-lg shadow-[#D4AF37]/20":"bg-stone-900 hover:bg-stone-800 text-white"}`,children:[g.id==="regular"?"Book Now":`Join ${g.name}`,a.jsx(rn,{className:"w-5 h-5 ml-2"})]})]},g.id))})})}),a.jsx("section",{className:"py-20 px-6 bg-white",children:a.jsxs("div",{className:"max-w-3xl mx-auto",children:[a.jsx("h2",{className:"text-3xl font-light text-stone-900 text-center mb-12",children:"Frequently Asked Questions"}),a.jsx("div",{className:"space-y-6",children:[{q:"Can I cancel anytime?",a:"Yes, you can cancel your membership at any time with no cancellation fees. Your benefits will continue until the end of your billing period."},{q:"Are discounts applied automatically?",a:"Absolutely! Once you're a member, your discount is automatically applied to all eligible treatments and services."},{q:"Can I upgrade my plan?",a:"Yes, you can upgrade or downgrade your plan at any time. The change will be reflected in your next billing cycle."},{q:"Is there a commitment period?",a:"No long-term commitment required. All our memberships are month-to-month."}].map(g=>a.jsxs("div",{className:"border-b border-stone-100 pb-6",children:[a.jsx("h3",{className:"font-medium text-stone-900 mb-2",children:g.q}),a.jsx("p",{className:"text-stone-600 font-light",children:g.a})]},g.q))})]})}),a.jsx(UL,{open:n,onOpenChange:s,children:a.jsx(Lj,{className:"sm:max-w-md",children:f?a.jsxs("div",{className:"text-center py-8",children:[a.jsx("div",{className:"w-20 h-20 rounded-full bg-green-100 flex items-center justify-center mx-auto mb-6",children:a.jsx(Uu,{className:"w-10 h-10 text-green-500"})}),a.jsxs("h3",{className:"text-2xl font-medium text-stone-900 mb
394-2",children:["Welcome to ",e==null?void 0:e.name,"!"]}),a.jsx("p",{className:"text-stone-600 mb-6",children:"Your membership is now active. Check your email for confirmation."}),a.jsx(ae,{onClick:()=>{s(!1),m(!1)},className:"rounded-xl",children:"Close"})]}):a.jsxs(a.Fragment,{children:[a.jsx(Ij,{children:a.jsx(Bj,{className:"text-xl",children:(e==null?void 0:e.id)==="regular"?"Book Your Appointment":`Join ${e==null?void 0:e.name}`})}),a.jsxs("div",{className:"space-y-4 mt-4",children:[(e==null?void 0:e.price)>0&&a.jsxs("div",{className:"bg-stone-50 rounded-xl p-4",children:[a.jsxs("div",{className:"flex justify-between text-sm mb-2",children:[a.jsx("span",{className:"text-stone-600",children:"Price"}),a.jsxs("span",{className:"font-medium",children:["$",e==null?void 0:e.price,e==null?void 0:e.period]})]}),(e==null?void 0:e.setup)>0&&a.jsxs("div",{className:"flex justify-between text-sm",children:[a.jsx("span",{className:"text-stone-600",children:"Setup fee"}),a.jsxs("span",{className:"font-medium",children:["$",e==null?void 0:e.setup]})]})]}),a.jsx("p",{className:"text-sm text-stone-600",children:(e==null?void 0:e.id)==="regular"?"You'll be redirected to our booking portal to schedule your appointment.":"You'll be redirected to our secure membership portal to complete your enrollment."}),a.jsxs(ae,{onClick:p,className:"w-full bg-[#D4AF37] hover:bg-[#C19B2E] text-white py-6 rounded-xl shadow-lg shadow-[#D4AF37]/20",children:["Continue",a.jsx(rn,{className:"ml-2 w-4 h-4"})]})]})]})})})]})}function H9(){const[e,t]=k.useState("upload"),[n,s]=k.useState(""),[i,l]=k.useState(!1),[c,d]=k.useState(null),[f,m]=k.useState(""),[p,g]=k.useState(""),[x,N]=k.useState(""),[b,w]=k.useState(""),[S,j]=k.useState(""),[P,A]=k.useState(""),[E,D]=k.useState(!1),[V,B]=k.useState(!1),[L,ne]=k.useState(!1),Q=async ie=>{if(ie.preventDefault(),!!c){B(!0);try{const{file_url:I}=await bt.integrations.Core.UploadFile({file:c});await bt.integrations.Core.SendEmail({to:"[email protected]",subject:"Patient Record Upload - Fax to 843-897-5100",body:`New patient record uploaded.
395        
396Patient Name: ${f}
397Email: ${p}
398Phone: ${x}
399
400File URL: ${I}
401
402Please fax to: 843-897-5100`}),ne(!0),d(null),m(""),g(""),N(""),setTimeout(()=>ne(!1),3e3)}catch(I){console.error("Upload failed:",I)}B(!1)}},re=async ie=>{if(ie.preventDefault(),!(!n||!i||!E)){B(!0);try{await bt.integrations.Core.SendEmail({to:"[email protected]",subject:"Patient Message from Insider Line",body:`Patient Name: ${b}
403Email: ${S}
404Phone: ${P}
405Text Permission: Yes
406
407Message:
408${n}`}),ne(!0),s(""),w(""),j(""),A(""),l(!1),D(!1),setTimeout(()=>ne(!1),3e3)}catch(I){console.error("Message failed:",I)}B(!1)}};return a.jsx("div",{className:"min-h-screen bg-stone-50 py-12 px-6",children:a.jsxs("div",{className:"max-w-4xl mx-auto",children:[a.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center mb-8",children:[a.jsx("h1",{className:"text-3xl md:text-4xl font-light text-stone-900 mb-3",children:"Insider Line"}),a.jsx("p",{className:"text-stone-600",children:"Upload records, send messages, and connect with us"}),a.jsx("a",{href:"https://lush.myaestheticrecord.com",target:"_blank",rel:"noopener noreferrer",className:"inline-block mt-4",children:a.jsxs(ae,{variant:"outline",className:"rounded-xl",children:[a.jsx(vi,{className:"w-4 h-4 mr-2"}),"Login to Patient Portal"]})})]}),a.jsx(_e,{className:"mb-6 border-red-200 bg-red-50",children:a.jsxs(De,{className:"p-4 flex items-start gap-3",children:[a.jsx(Wn,{className:"w-5 h-5 text-red-600 flex-shrink-0 mt-0.5"}),a.jsxs("div",{children:[a.jsx("p",{className:"text-sm font-medium text-red-900",children:"Medical Emergency?"}),a.jsx("p",{className:"text-xs text-red-700",children:"Call 911 immediately. This portal is not monitored for emergencies."})]})]})}),a.jsxs("div",{className:"flex gap-4 mb-6",children:[a.jsxs(ae,{onClick:()=>t("upload"),variant:e==="upload"?"default":"outline",className:e==="upload"?"bg-[#D4AF37] hover:bg-[#C19B2E]":"",children:[a.jsx(w0,{className:"w-4 h-4 mr-2"}),"Upload Records"]}),a.jsxs(ae,{onClick:()=>t("message"),variant:e==="message"?"default":"outline",className:e==="message"?"bg-[#D4AF37] hover:bg-[#C19B2E]":"",children:[a.jsx(Nr,{className:"w-4 h-4 mr-2"}),"Send Message"]})]}),e==="upload"&&a.jsx(Z.div,{initial:{opacity:0,x:-20}
408,animate:{opacity:1,x:0},children:a.jsxs(_e,{children:[a.jsxs(vt,{children:[a.jsxs(xt,{className:"flex items-center gap-2",children:[a.jsx(vi,{className:"w-5 h-5"}),"Upload Medical Records or Labs"]}),a.jsx($n,{children:"Securely send your records to our HIPAA-compliant fax: 843-897-5100"})]}),a.jsx(De,{children:L?a.jsxs("div",{className:"text-center py-8",children:[a.jsx(Uu,{className:"w-12 h-12 text-green-500 mx-auto mb-3"}),a.jsx("p",{className:"text-stone-900 font-medium",children:"Record Submitted Successfully"}),a.jsx("p",{className:"text-stone-600 text-sm",children:"We'll add this to your chart shortly."})]}):a.jsxs("form",{onSubmit:Q,className:"space-y-4",children:[a.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[a.jsxs("div",{className:"space-y-2",children:[a.jsx(Ke,{htmlFor:"uploadName",children:"Your Name *"}),a.jsx(it,{id:"uploadName",placeholder:"Full name",value:f,onChange:ie=>m(ie.target.value),className:"rounded-xl",required:!0})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsx(Ke,{htmlFor:"uploadPhone",children:"Phone Number *"}),a.jsx(it,{id:"uploadPhone",type:"tel",placeholder:"(555) 123-4567",value:x,onChange:ie=>N(ie.target.value),className:"rounded-xl",required:!0})]})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsx(Ke,{htmlFor:"uploadEmail",children:"Email Address *"}),a.jsx(it,{id:"uploadEmail",type:"email",placeholder:"[email protected]",value:p,onChange:ie=>g(ie.target.value),className:"rounded-xl",required:!0})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsx(Ke,{htmlFor:"file",children:"Select File (PDF, JPG, PNG) *"}),a.jsx(it,{id:"file",type:"file",accept:".pdf,.jpg,.jpeg,.png",onChange:ie=>d(ie.target.files[0]),className:"rounded-xl",required:!0})]}),a.jsx("div",{className:"bg-stone-50 rounded-xl p-4",children:a.jsxs("p",{className:"text-sm text-stone-700 flex items-start gap-2",children:[a.jsx(Wn,{className:"w-4 h-4 mt-0.5 text-stone-500"}),"Your records will be securely transmitted to our HIPAA-compliant fax (843-897-5100) and added to your medical chart."]})}),a.jsx(ae,{type:"submit",disabled:!c||!f||!p||!x||V,className:"w-full bg-[#D4AF37] hover:bg-[#C19B2E] text-white",children:V?a.jsxs(a.Fragment,{children:[a.jsx(Po,{className:"w-4 h-4 mr-2 animate-spin"}),"Uploading..."]}):a.jsxs(a.Fragment,{children:[a.jsx(w0,{className:"w-4 h-4 mr-2"}),"Upload Record"]})})]})})]})}),e==="message"&&a.jsx(Z.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},children:a.jsxs(_e,{children:[a.jsxs(vt,{children:[a.jsxs(xt,{className:"flex items-center gap-2",children:[a.jsx(Nr,{className:"w-5 h-5"}),"Send a Message"]}),a.jsx($n,{children:"Our number is text-enabled. We'll respond during business hours."})]}),a.jsx(De,{children:L?a.jsxs("div",{className:"text-center py-8",children:[a.jsx(Uu,{className:"w-12 h-12 text-green-500 mx-auto mb-3"}),a.jsx("p",{className:"text-stone-900 font-medium",children:"Message Sent"}),a.jsx("p",{className:"text-stone-600 text-sm",children:"We'll respond during business hours."})]}):a.jsxs("form",{onSubmit:re,className:"space-y-4",children:[a.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[a.jsxs("div",{className:"space-y-2",children:[a.jsx(Ke,{htmlFor:"messageName",children:"Your Name *"}),a.jsx(it,{id:"messageName",placeholder:"Full name",value:b,onChange:ie=>w(ie.target.value),className:"rounded-xl",required:!0})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsx(Ke,{htmlFor:"messagePhone",children:"Phone Number *"}),a.jsx(it,{id:"messagePhone",type:"tel",placeholder:"(555) 123-4567",value:P,onChange:ie=>A(ie.target.value),className:"rounded-xl",required:!0})]})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsx(Ke,{htmlFor:"messageEmail",children:"Email Address *"}),a.jsx(it,{id:"messageEmail",type:"email",placeholder:"[email protected]",value:S,onChange:ie=>j(ie.target.value),className:"rounded-xl",required:!0})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsx(Ke,{htmlFor:"message",children:"Your Message *"}),a.jsx(Hg,{id:"message",placeholder:"Type your message here...",value:n,onChange:ie=>s(ie.target.value),className:"rounded-xl min-h-[150px]",required:!0})]}),a.jsxs("div",{className:"bg-yellow-50 rounded-xl p-4 border border-yellow-200",children:[a.jsxs("p",{className:"text-sm text-yellow-900 flex items-start gap-2 mb-3",children:[a.jsx(Wn,{className:"w-4 h-4 mt-0.5"}),a.jsx("strong",{children:"Important:"})," This messaging system is NOT HIPAA compliant. Do not share sensitive medical information."]}),a.jsxs("div",{className:"space-y-2",children:[a.jsxs("div",{className:"flex items-start gap-2",children:[a.jsx(gs,{id:"terms",checked:i,onCheckedChange:l}),a.jsx("label",{htmlFor:"terms",className:"text-xs text-stone-700 cursor-pointer",children:"I understand this is not a secure messaging system and agree not to share sensitive health information."})]}),a.jsxs("div",{className:"flex items-start gap-2",children:[a.jsx(gs,{id:"textPermission",checked:E,onCheckedChange:D}),a.jsx("label",{htmlFor:"textPermission",className:"text-xs text-stone-700 cursor-pointer",children:"I give permission to text me back at the phone number provided."})]})]})]}),a.jsx("div",{className:"bg-stone-50 rounded-xl p-4",children:a.jsxs("p",{className:"text-sm text-stone-700",children:[a.jsx(Ci,{className:"w-4 h-4 inline mr-1"}),"For urgent matters, call us at: ",a.jsx("strong",{children:"(616) 386-1840"})]})}),a.jsx(ae,{type:"submit",disabled:!n||!b||!S||!P||!i||!E||V,className:"w-full bg-[#D4AF37] hover:bg-[#C19B2E] text-white",children:V?a.jsxs(a.Fragment,{children:[a.jsx(Po,{className:"w-4 h-4 mr-2 animate-spin"}),"Sending..."]}):a.jsxs(a.Fragment,{children:[a.jsx($1,{className:"w-4 h-4 mr-2"}),"Send Message"]})})]})})]})})]})})}const q9=[{name:"Annual Wellness Exams",description:"Comprehensive physical exams and preventative care to keep you healthy",duration:"45-60 min",price:"$150-300",benefits:["Complete physical exam","Health screenings","Preventative care","Lab work coordination","Personalized health plan"]},{name:"Chronic Disease Management",description:"Ongoing care for diabetes, hypertension, high cholesterol, and other conditions",duration:"30-45 min",price:"$150-275",benefits:["Regular monitoring","Medication management","Lifestyle guidance","Lab tracking","Personalized care"]},{name:"Sick Visits",description:"Same-day care for acute illnesses like colds, flu, infections, and minor injuries",duration:"20-30 min",price:"$250+",benefits:["Quick care","In-person or virtual","Same-day available","Prescriptions when needed","Follow-up support"]},{name:"Follow-Up Care",description:"Ongoing medical care to monitor your health and adjust treatment plans",duration:"20-30 min",price:"$150-275",benefits:["Regular check-ins","Medication adjustments","Lab review","Convenient scheduling","Virtual options"]},{name:"Health Screenings",description:"Preventative screenings to catch health issues early",duration:"Varies",price:"Varies by screening",benefits:["E
408arly detection","Age-appropriate tests","Lab work coordination","Results review","Next steps guidance"]}];function G9(){return a.jsx("div",{className:"min-h-screen bg-stone-50 py-12 px-6",children:a.jsxs("div",{className:"max-w-6xl mx-auto",children:[a.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center mb-8",children:[a.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 rounded-full bg-[#D4AF37]/10 border border-[#D4AF37]/20 text-sm text-stone-700 mb-6",children:[a.jsx(x0,{className:"w-4 h-4 text-[#D4AF37]"}),"Primary Care Services"]}),a.jsx("h1",{className:"text-3xl md:text-5xl font-light text-stone-900 mb-4",children:"Your Health Partner"}),a.jsx("p",{className:"text-stone-600 text-lg max-w-2xl mx-auto",children:"Comprehensive primary care with a provider who takes time to know you and your health goals"})]}),a.jsx(Z.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.1},className:"mb-12",children:a.jsxs(il,{className:"bg-blue-50 border-blue-200",children:[a.jsx(tE,{className:"h-4 w-4 text-blue-600"}),a.jsxs(ol,{className:"text-blue-900",children:[a.jsx("strong",{children:"Insurance Information:"})," We do not currently accept insurance but offer cash pay discounts to make quality care accessible. We are actively working on insurance credentialing and hope to accept insurance soon."]})]})}),a.jsx(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.2},className:"bg-white rounded-3xl shadow-xl p-8 mb-12",children:a.jsxs("div",{className:"flex flex-col md:flex-row items-center gap-6",children:[a.jsx("div",{className:"w-24 h-24 rounded-full bg-[#D4AF37]/10 flex items-center justify-center flex-shrink-0",children:a.jsx(x0,{className:"w-12 h-12 text-[#D4AF37]"})}),a.jsxs("div",{className:"flex-1 text-center md:text-left",children:[a.jsx("h2",{className:"text-2xl font-medium text-stone-900 mb-2",children:"Meet Vanessa, NP"}),a.jsx("p",{className:"text-stone-600 leading-relaxed",children:"Vanessa is a nurse practitioner with over 20 years of healthcare experience. She specializes in primary care, chronic disease management, hormone replacement therapy, and joint injections. Vanessa is dedicated to helping you feel like yourself again and getting you back on track with your health. She takes the time to listen, understand your concerns, and create personalized treatment plans."})]})]})}),a.jsx("div",{className:"grid md:grid-cols-2 gap-6 mb-12",children:q9.map((e,t)=>a.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.3+t*.05},className:"bg-white rounded-2xl p-8 shadow-lg hover:shadow-xl transition-all duration-300",children:[a.jsx("div",{className:"flex items-start justify-between mb-4",children:a.jsxs("div",{children:[a.jsx("h3",{className:"text-xl font-medium text-stone-900 mb-2",children:e.name}),a.jsx("p",{className:"text-stone-600 text-sm mb-4",children:e.description})]})}),a.jsxs("div",{className:"flex items-center gap-4 mb-4 text-sm text-stone-500",children:[a.jsxs("span",{children:["⏱️ ",e.duration]}),a.jsxs("span",{children:["💰 ",e.price]})]}),a.jsx("div",{className:"space-y-2 mb-6",children:e.benefits.map(n=>a.jsxs("div",{className:"flex items-center gap-2 text-sm text-stone-700",children:[a.jsx("div",{className:"w-1.5 h-1.5 rounded-full bg-[#D4AF37]"}),n]},n))})]},e.name))}),a.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.5},className:"bg-gradient-to-br from-black to-stone-900 rounded-3xl p-8 md:p-12 text-center text-white",children:[a.jsx("h2",{className:"text-2xl md:text-3xl font-medium mb-4",children:"Ready to Establish Care?"}),a.jsx("p",{className:"text-stone-300 mb-8 max-w-2xl mx-auto",children:"Schedule your first appointment and experience personalized primary care that puts you first"}),a.jsx("a",{href:"https://lush.myaestheticrecord.com/online-booking/v2",target:"_blank",rel:"noopener noreferrer",children:a.jsxs(ae,{className:"bg-[#D4AF37] hover:bg-[#C19B2E] text-black px-8 py-6 rounded-xl text-lg shadow-lg shadow-[#D4AF37]/20",children:["Book Appointment",a.jsx(qe,{className:"w-5 h-5 ml-2"})]})})]})]})})}const Y9={acne:[{name:"Circadia Vitamin C Reversal Serum",benefits:"Brightens skin, reduces acne scars, and promotes even tone",reason:"Vitamin C helps fade post-acne marks and prevents future breakouts"},{name:"Circadia Spot Stop",benefits:"Targets active breakouts with salicylic acid",reason:"Clears pores and reduces inflammation for clearer skin"},{name:"Circadia Hydrating Gel",benefits:"Oil-free hydration without clogging pores",reason:"Keeps acne-prone skin balanced and moisturized"}],aging:[{name:"Circadia Nighttime Repair Plus",benefits:"Powerful anti-aging peptides and retinol",reason:"Reduces fine lines and wrinkles while you sleep for youthful skin"},{name:"Circadia Vitamin C Reversal Serum",benefits:"Brightens and firms aging skin",reason:"Boosts collagen production for firmer, more radiant complexion"},{name:"Circadia Hydralux",benefits:"Intense hydration and plumping",reason:"Smooths fine lines and restores moisture for supple skin"}],dryness:[{name:"Circadia Hydralux",benefits:"Deep moisturization with hyaluronic acid",reason:"Attracts and retains moisture for all-day hydration"},{name:"Circadia Lipid Replacing Cleansing Gel",benefits:"Gentle cleansing without stripping",reason:"Maintains skin's natural moisture barrier"},{name:"Circadia Omega Repair",benefits:"Nourishing omega fatty acids",reason:"Repairs and protects dry, damaged skin"}],sensitivity:[{name:"Circadia Soothing Complex",benefits:"Calms redness and irritation",reason:"Anti-inflammatory ingredients reduce sensitivity"},{name:"Circadia Lipid Replacing Cleansing Gel",benefits:"Gentle, non-irritating cleanser",reason:"Cleans without triggering sensitivity"},{name:"Circadia Hydralux",benefits:"Soothing, fragrance-free hydration",reason:"Comforts sensitive skin without reactions"}],pigmentation:[{name:"Circadia Vitamin C Reversal Serum",benefits:"Fades dark spots and evens tone",reason:"Powerful brightening agents target hyperpigmentation"},{name:"Circadia Nighttime Repair Plus",benefits:"Accelerates cell turnover",reason:"Reveals brighter, more even skin tone"},{name:"Circadia Daytime Control",benefits:"SPF protection prevents new spots",reason:"Shields skin from sun damage that causes pigmentation"}]},K9={energy:[{name:"B-Complex Vitamins",benefits:"Boosts energy and mental clarity",reason:"B vitamins are essential for converting food into energy and supporting nervous system function"},{name:"CoQ10",benefits:"Cellular energy production",reason:"Powers your cells' energy centers for sustained vitality throughout the day"},{name:"Iron (if deficient)",benefits:"Increases oxygen delivery",reason:"Supports healthy red blood cells to combat fatigue and boost stamina"}],stress:[{name:"Magnesium Glycinate",benefits:"Promotes relaxation and calm",reason:"Supports nervous system health and helps your body manage stress responses"},{name:"Ashwagandha",benefits:"Adaptogenic stress relief",reason:"Helps your body adapt to stress while supporting mood and mental clarity"},{name:"L-Theanine",benefits:"Calm focus without drowsiness",reason:"Promotes relaxation while maintaining alertness and mental sharpness"}],immunity:[{name:"Vitamin D3",benefits:"Immune system support",reason:"Critical for immune cell function and defending against illness"},{name:"Zinc",benefits:"Strengthens immune response",reason:"Essential mineral for immune cell production and function"},{name:"Vitamin C",benefits:"Antioxidant immune boost",reason:"Protects cells and enhances immune system efficiency"}],sleep:[{name:"Magnesium Glycinate",benefits:"Promotes deep, restful sleep",reason:"Relaxes muscles and nervous system for quality sleep"},{name:"Melatonin",benefits:"Regulates sleep-wake cycle",reason:"Helps you fall asleep faster and maintain healthy sleep patterns"},{name:"L-Theanine",benefits:"Calm mind for better sleep",reason:"Reduces racing thoughts and promotes relaxation before bed"}],digestion:[{name:"Probiotic Complex",benefits:"Supports gut health",reason:"Balances beneficial bacteria for optimal digestion and nutrient absorption"},{name:"Digestive Enzymes",benefits:"Enhances nutrient breakdown",reason:"Helps your body efficie
408ntly digest and absorb nutrients from food"},{name:"L-Glutamine",benefits:"Gut lining repair",reason:"Supports intestinal health and reduces digestive discomfort"}]};function Q9(){const[e,t]=k.useState(1),[n,s]=k.useState(null),[i,l]=k.useState([]),[c,d]=k.useState([]),[f,m]=k.useState(null),[p,g]=k.useState({name:"",email:"",phone:""}),[x,N]=k.useState(!1),b=j=>{l(P=>P.includes(j)?P.filter(A=>A!==j):[...P,j])},w=()=>{t(3)},S=async()=>{N(!0);let j=[];n==="skincare"?j=i.flatMap(P=>Y9[P]||[]):j=i.flatMap(P=>K9[P]||[]),d([...new Set(j)]),N(!1),t(4)};return a.jsx("div",{className:"min-h-screen bg-stone-50 py-12 px-6",children:a.jsxs("div",{className:"max-w-4xl mx-auto",children:[a.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center mb-8",children:[a.jsx("h1",{className:"text-3xl md:text-4xl font-light text-stone-900 mb-3",children:"Personalized Product Recommendations"}),a.jsx("p",{className:"text-stone-600",children:"Answer a few questions to discover your perfect products"})]}),a.jsxs(Hn,{mode:"wait",children:[e===1&&a.jsx(Z.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},exit:{opacity:0,x:-20},children:a.jsxs(_e,{children:[a.jsxs(vt,{children:[a.jsx(xt,{children:"What are you shopping for?"}),a.jsx($n,{children:"Choose the category that interests you"})]}),a.jsxs(De,{className:"space-y-3",children:[a.jsxs(ae,{onClick:()=>{s("skincare"),t(2)},className:"w-full justify-start h-auto py-6 text-left bg-white hover:bg-stone-50 text-stone-900 border-2 border-stone-200 hover:border-[#D4AF37]",variant:"outline",children:[a.jsx(Me,{className:"w-5 h-5 mr-3 text-[#D4AF37]"}),a.jsxs("div",{children:[a.jsx("div",{className:"font-medium",children:"Skincare Products"}),a.jsx("div",{className:"text-sm text-stone-500",children:"Medical-grade Circadia skincare"})]})]}),a.jsxs(ae,{onClick:()=>{s("supplements"),t("supplement-path")},className:"w-full justify-start h-auto py-6 text-left bg-white hover:bg-stone-50 text-stone-900 border-2 border-stone-200 hover:border-[#D4AF37]",variant:"outline",children:[a.jsx(Ut,{className:"w-5 h-5 mr-3 text-[#D4AF37]"}),a.jsxs("div",{children:[a.jsx("div",{className:"font-medium",children:"Wellness Supplements"}),a.jsx("div",{className:"text-sm text-stone-500",children:"Professional-grade supplements"})]})]}),a.jsx("a",{href:"https://lush.myaestheticrecord.com/online-booking/v2/giftcards",target:"_blank",rel:"noopener noreferrer",className:"block",children:a.jsxs(ae,{className:"w-full justify-start h-auto py-6 text-left bg-white hover:bg-stone-50 text-stone-900 border-2 border-stone-200 hover:border-[#D4AF37]",variant:"outline",children:[a.jsx(Eo,{className:"w-5 h-5 mr-3 text-[#D4AF37]"}),a.jsxs("div",{children:[a.jsx("div",{className:"font-medium",children:"Gift Cards"}),a.jsx("div",{className:"text-sm text-stone-500",children:"The perfect gift of wellness"})]}),a.jsx(qe,{className:"w-4 h-4 ml-auto text-stone-400"})]})})]})]})},"step1"),e==="supplement-path"&&a.jsx(Z.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},exit:{opacity:0,x:-20},children:a.jsxs(_e,{children:[a.jsxs(vt,{children:[a.jsx(xt,{children:"How would you like to proceed?"}),a.jsx($n,{children:"Choose the option that best fits your needs"})]}),a.jsxs(De,{className:"space-y-4",children:[a.jsx("a",{href:"https://us.fullscript.com/j/lush-health",target:"_blank",rel:"noopener noreferrer",className:"block",children:a.jsx("div",{className:"w-full text-left p-5 rounded-xl border-2 border-[#D4AF37]/40 bg-[#D4AF37]/5 hover:bg-[#D4AF37]/10 hover:border-[#D4AF37] transition-all duration-300 cursor-pointer",children:a.jsxs("div",{className:"flex items-start gap-4",children:[a.jsx("div",{className:"w-11 h-11 rounded-xl bg-[#D4AF37]/20 flex items-center justify-center flex-shrink-0",children:a.jsx(B1,{className:"w-5 h-5 text-[#D4AF37]"})}),a.jsxs("div",{className:"flex-1",children:[a.jsx("div",{className:"font-medium text-stone-900 mb-1",children:"Start My Wellness Journey"}),a.jsx("div",{className:"text-sm text-stone-600",children:"Order your own labs, get a personalized review from one of our medical providers, and receive supplement recommendations — all from home. Supplements delivered directly to you."}),a.jsxs("div",{className:"mt-3 flex items-center gap-1 text-xs font-medium text-[#D4AF37]",children:["Get started ",a.jsx(qe,{className:"w-3 h-3"})]})]})]})})}),a.jsx("a",{href:"https://us.fullscript.com/welcome/lush-health",target:"_blank",rel:"noopener noreferrer",className:"block",children:a.jsx("div",{className:"w-full text-left p-5 rounded-xl border-2 border-stone-200 bg-white hover:bg-stone-50 hover:border-stone-300 transition-all duration-300 cursor-pointer",children:a.jsxs("div",{className:"flex items-start gap-4",children:[a.jsx("div",{className:"w-11 h-11 rounded-xl bg-stone-100 flex items-center justify-center flex-shrink-0",children:a.jsx($u,{className:"w-5 h-5 text-stone-600"})}),a.jsxs("div",{className:"flex-1",children:[a.jsx("div",{className:"font-medium text-stone-900 mb
408-1",children:"Browse & Order Supplements"}),a.jsx("div",{className:"text-sm text-stone-600",children:"Shop professional-grade supplements from our Fullscript store — delivered directly to your door."}),a.jsxs("div",{className:"mt-3 flex items-center gap-1 text-xs font-medium text-stone-500",children:["Shop now ",a.jsx(qe,{className:"w-3 h-3"})]})]})]})})}),a.jsx(Tt,{to:ct("SupplementAssessment"),className:"block",children:a.jsx("div",{className:"w-full text-left p-5 rounded-xl border-2 border-stone-200 bg-white hover:bg-stone-50 hover:border-[#D4AF37]/40 transition-all duration-300 cursor-pointer",children:a.jsxs("div",{className:"flex items-start gap-4",children:[a.jsx("div",{className:"w-11 h-11 rounded-xl bg-stone-100 flex items-center justify-center flex-shrink-0",children:a.jsx(I1,{className:"w-5 h-5 text-stone-600"})}),a.jsxs("div",{className:"flex-1",children:[a.jsx("div",{className:"font-medium text-stone-900 mb-1",children:"Get Personalized Recommendations"}),a.jsx("div",{className:"text-sm text-stone-600",children:"Take a short assessment based on your symptoms or goals and we'll recommend the right supplements for you."}),a.jsxs("div",{className:"mt-3 flex items-center gap-1 text-xs font-medium text-stone-500",children:["Start assessment ",a.jsx(rn,{className:"w-3 h-3"})]})]})]})})}),a.jsx(ae,{variant:"outline",onClick:()=>{t(1),s(null)},className:"w-full mt-2",children:"Back"})]})]})},"supplement-path"),e===2&&n==="skincare"&&a.jsx(Z.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},exit:{opacity:0,x:-20},children:a.jsxs(_e,{children:[a.jsxs(vt,{children:[a.jsx(xt,{children:"Select Your Skin Concerns"}),a.jsx($n,{children:"Choose all that apply"})]}),a.jsxs(De,{className:"space-y-4",children:[[{id:"acne",label:"Acne & Breakouts"},{id:"aging",label:"Fine Lines & Wrinkles"},{id:"dryness",label:"Dryness & Dehydration"},{id:"sensitivity",label:"Redness & Sensitivity"},{id:"pigmentation",label:"Dark Spots & Uneven Tone"}].map(j=>a.jsxs("div",{className:"flex items-center space-x-3 p-3 rounded-lg hover:bg-stone-50",children:[a.jsx(gs,{id:j.id,checked:i.includes(j.id),onCheckedChange:()=>b(j.id)}),a.jsx(Ke,{htmlFor:j.id,className:"cursor-pointer flex-1",children:j.label})]},j.id)),a.jsxs("div",{className:"flex gap-3 pt-4",children:[a.jsx(ae,{variant:"outline",onClick:()=>{t(1),l([])},children:"Back"}),a.jsxs(ae,{onClick:w,disabled:i.length===0,className:"flex-1 bg-[#D4AF37] hover:bg-[#C19B2E] text-white",children:["Continue",a.jsx(rn,{className:"w-4 h-4 ml-2"})]})]})]})]})},"step2-skincare"),e===2&&n==="supplements"&&a.jsx(Z.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},exit:{opacity:0,x:-20},children:a.jsxs(_e,{children:[a.jsxs(vt,{children:[a.jsx(xt,{children:"Select Your Wellness Goals"}),a.jsx($n,{children:"Choose all that apply"})]}),a.jsxs(De,{className:"space-y-4",children:[[{id:"energy",label:"Boost Energy & Reduce Fatigue"},{id:"stress",label:"Manage Stress & Anxiety"},{id:"immunity",label:"Strengthen Immune System"},{id:"sleep",label:"Improve Sleep Quality"},{id:"digestion",label:"Support Digestive Health"}].map(j=>a.jsxs("div",{className:"flex items-center space-x-3 p-3 rounded-lg hover:bg-stone-50",children:[a.jsx(gs,{id:j.id,checked:i.includes(j.id),onCheckedChange:()=>b(j.id)}),a.jsx(Ke,{htmlFor:j.id,className:"cursor-pointer flex-1",children:j.label})]},j.id)),a.jsxs("div",{className:"flex gap-3 pt-4",children:[a.jsx(ae,{variant:"outline",onClick:()=>{t(1),l([])},children:"Back"}),a.jsxs(ae,{onClick:w,disabled:i.length===0,className:"flex-1 bg-[#D4AF37] hover:bg-[#C19B2E] text-white",children:["Continue",a.jsx(rn,{className:"w-4 h-4 ml-2"})]})]})]})]})},"step2-supplements"),e===3&&a.jsx(Z.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},exit:{opacity:0,x:-20},children:a.jsxs(_e,{children:[a.jsxs(vt,{children:[a.jsx(xt,{children:"Your Contact Information"}),a.jsx($n,{children:"Just a few details to personalize your recommendations"})]}),a.jsxs(De,{className:"space-y-4",children:[a.jsxs("div",{className:"space-y-2",children:[a.jsx(Ke,{htmlFor:"name",children:"Full Name *"}),a.jsx(it,{id:"name",placeholder:"Your name",value:p.name,onChange:j=>g({...p,name:j.target.value}),className:"rounded-xl"})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsx(Ke,{htmlFor:"email",children:"Email Address *"}),a.jsx(it,{id:"email",type:"email",placeholder:"[email protected]",value:p.email,onChange:j=>g({...p,email:j.target.value}),className:"rounded-xl"})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsx(Ke,{htmlFor:"phone",children:"Phone Number *"}),a.jsx(it,{id:"phone",type:"tel",placeholder:"(555) 123-4567",value:p.phone,onChange:j=>g({...p,phone:j.target.value}),className:"rounded-xl"})]}),a.jsxs("div",{className:"flex items-start space-x-3 p-3 rounded-lg border border-stone-200 bg-stone-50",children:[a.jsx(gs,{id:"consent",checked:p.consent||!1,onCheckedChange:j=>g({...p,consent:j}),required:!0}),a.jsx(Ke,{htmlFor:"consent",className:"cursor-pointer text-sm text-stone-700 leading-relaxed",children:"I agree to re
408ceive information via email and text about services, upcoming specials, and wellness tips from Lush Health. *"})]}),a.jsxs("div",{className:"flex gap-3 pt-4",children:[a.jsx(ae,{variant:"outline",onClick:()=>t(2),children:"Back"}),a.jsx(ae,{onClick:S,disabled:!p.name||!p.email||!p.phone||!p.consent||x,className:"flex-1 bg-[#D4AF37] hover:bg-[#C19B2E] text-white",children:x?a.jsxs(a.Fragment,{children:[a.jsx(Po,{className:"w-4 h-4 mr-2 animate-spin"}),"Generating..."]}):a.jsxs(a.Fragment,{children:["Get My Recommendations",a.jsx(rn,{className:"w-4 h-4 ml-2"})]})})]})]})]})},"step3"),e===4&&a.jsx(Z.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},exit:{opacity:0,x:-20},className:"space-y-6",children:a.jsxs(_e,{children:[a.jsxs(vt,{children:[a.jsx(xt,{children:"Your Personalized Recommendations"}),a.jsxs($n,{children:["Based on your ",n==="skincare"?"skin concerns":"wellness goals"]})]}),a.jsxs(De,{className:"space-y-4",children:[c.map((j,P)=>a.jsx(Z.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:P*.1},className:"rounded-xl border-2 border-stone-200 bg-white overflow-hidden hover:border-[#D4AF37]/50 transition-all cursor-pointer",onClick:()=>m(f===P?null:P),children:a.jsxs("div",{className:"p-4",children:[a.jsxs("div",{className:"flex items-start justify-between",children:[a.jsxs("div",{className:"flex-1",children:[a.jsx("h3",{className:"font-medium text-stone-900 mb-1",children:j.name}),a.jsx("p",{className:"text-sm text-stone-600",children:j.benefits})]}),a.jsx(Z.div,{animate:{rotate:f===P?180:0},transition:{duration:.3},children:a.jsx(rn,{className:"w-5 h-5 text-[#D4AF37] transform rotate-90"})})]}),a.jsx(Hn,{children:f===P&&a.jsxs(Z.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.3},className:"mt-4",children:[a.jsxs("div",{className:"flex items-start gap-2 bg-[#D4AF37]/10 p-3 rounded-lg mb-3",children:[a.jsx(Me,{className:"w-4 h-4 text-[#D4AF37] flex-shrink-0 mt-0.5"}),a.jsxs("p",{className:"text-sm text-stone-700",children:[a.jsx("strong",{children:"Why this works:"})," ",j.reason]})]}),a.jsx("p",{className:"text-sm text-stone-600 italic",children:'Click the "Shop" button below to add this premium product to your routine and experience visible results.'})]})})]})},P)),a.jsxs("div",{className:"pt-4 space-y-3",children:[a.jsx("a",{href:n==="skincare"?"https://www.circadiaretailer.com/dealer/941637":"https://us.fullscript.com/welcome/lush-health",target:"_blank",rel:"noopener noreferrer",children:a.jsxs(ae,{className:"w-full bg-[#D4AF37] hover:bg-[#C19B2E] text-white py-6",children:[a.jsx(Eo,{className:"w-5 h-5 mr-2"}),"Shop ",n==="skincare"?"Circadia Skincare":"Fullscript Supplements",a.jsx(qe,{className:"w-4 h-4 ml-2"})]})}),a.jsx(ae,{variant:"outline",onClick:()=>{t(1),l([]),d([]),g({name:"",email:"",phone:""})},className:"w-full",children:"Start Over"})]}),a.jsx("div",{className:"bg-stone-50 rounded-xl p-4 mt-4",children:a.jsxs("p",{className:"text-sm text-stone-600",children:[a.jsx("strong",{children:"Note:"})," ",n==="supplements"?"These are general recommendations. For personalized supplement guidance, please consult with one of our providers.":"Our team is here to help if you have questions about any products."]})})]})]})},"step3")]})]})})}function X9(e){const t=e+"CollectionProvider",[n,s]=Lr(t),[i,l]=n(t,{collectionRef:{current:null},itemMap:new Map}),c=w=>{const{scope:S,children:j}=w,P=dr.useRef(null),A=dr.useRef(new Map).current;return a.jsx(i,{scope:S,itemMap:A,collectionRef:P,children:j})};c.displayName=t;const d=e+"CollectionSlot",f=Mo(d),m=dr.forwardRef((w,S)=>{const{scope:j,children:P}=w,A=l(d,j),E=Ht(S,A.collectionRef);return a.jsx(f,{ref:E,children:P})});m.displayName=d;const p=e+"CollectionItemSlot",g="data-radix-collection-item",x=Mo(p),N=dr.forwardRef((w,S)=>{const{scope:j,children:P,...A}=w,E=dr.useRef(null),D=Ht(S,E),V=l(p,j);return dr.useEffect(()=>(V.itemMap.set(E,{ref:E,...A}),()=>void V.itemMap.delete(E))),a.jsx(x,{[g]:"",ref:D,children:P})});N.displayName=p;function b(w){const S=l(e+"CollectionConsumer",w);return dr.useCallback(()=>{const P=S.collectionRef.current;if(!P)return[];const A=Array.from(P.querySelectorAll(`[${g}]`));return Array.from(S.itemMap.values()).sort((V,B)=>A.indexOf(V.ref.current)-A.indexOf(B.ref.current))},[S.collectionRef,S.itemMap])}return[{Provider:c,Slot:m,ItemSlot:N},b,s]}var J9=k.createContext(void 0);function WC(e){const t=k.useContext(J9);return e||t||"ltr"}var jm="rovingFocusGroup.onEntryFocus",Z9={bubbles:!1,cancelable:!0},Gl="RovingFocusGroup",[Pp,HC,eV]=X9(Gl),[tV,qC]=Lr(Gl,[eV]),[nV,sV]=tV(Gl),GC=k.forwardRef((e,t)=>
vendor: 4,687 bytes, line 408
408a.jsx(Pp.Provider,{scope:e.__scopeRovingFocusGroup,children:a.jsx(Pp.Slot,{scope:e.__scopeRovingFocusGroup,children:a.jsx(rV,{...e,ref:t})})}));GC.displayName=Gl;var rV=k.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:s,loop:i=!1,dir:l,currentTabStopId:c,defaultCurrentTabStopId:d,onCurrentTabStopIdChange:f,onEntryFocus:m,preventScrollOnEntryFocus:p=!1,...g}=e,x=k.useRef(null),N=Ht(t,x),b=WC(l),[w,S]=Vl({prop:c,defaultProp:d??null,onChange:f,caller:Gl}),[j,P]=k.useState(!1),A=bi(m),E=HC(n),D=k.useRef(!1),[V,B]=k.useState(0);return k.useEffect(()=>{const L=x.current;if(L)return L.addEventListener(jm,A),()=>L.removeEventListener(jm,A)},[A]),a.jsx(nV,{scope:n,orientation:s,dir:b,loop:i,currentTabStopId:w,onItemFocus:k.useCallback(L=>S(L),[S]),onItemShiftTab:k.useCallback(()=>P(!0),[]),onFocusableItemAdd:k.useCallback(()=>B(L=>L+1),[]),onFocusableItemRemove:k.useCallback(()=>B(L=>L-1),[]),children:a.jsx(Qe.div,{tabIndex:j||V===0?-1:0,"data-orientation":s,...g,ref:N,style:{outline:"none",...e.style},onMouseDown:nt(e.onMouseDown,()=>{D.current=!0}),onFocus:nt(e.onFocus,L=>{const ne=!D.current;if(L.target===L.currentTarget&&ne&&!j){const Q=new CustomEvent(jm,Z9);if(L.currentTarget.dispatchEvent(Q),!Q.defaultPrevented){const re=E().filter(ee=>ee.focusable),ie=re.find(ee=>ee.active),I=re.find(ee=>ee.id===w),oe=[ie,I,...re].filter(Boolean).map(ee=>ee.ref.current);QC(oe,p)}}D.current=!1}),onBlur:nt(e.onBlur,()=>P(!1))})})}),YC="RovingFocusGroupItem",KC=k.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:s=!0,active:i=!1,tabStopId:l,children:c,...d}=e,f=fo(),m=l||f,p=sV(YC,n),g=p.currentTabStopId===m,x=HC(n),{onFocusableItemAdd:N,onFocusableItemRemove:b,currentTabStopId:w}=p;return k.useEffect(()=>{if(s)return N(),()=>b()},[s,N,b]),a.jsx(Pp.ItemSlot,{scope:n,id:m,focusable:s,active:i,children:a.jsx(Qe.span,{tabIndex:g?0:-1,"data-orientation":p.orientation,...d,ref:t,onMouseDown:nt(e.onMouseDown,S=>{s?p.onItemFocus(m):S.preventDefault()}),onFocus:nt(e.onFocus,()=>p.onItemFocus(m)),onKeyDown:nt(e.onKeyDown,S=>{if(S.key==="Tab"&&S.shiftKey){p.onItemShiftTab();return}if(S.target!==S.currentTarget)return;const j=aV(S,p.orientation,p.dir);if(j!==void 0){if(S.metaKey||S.ctrlKey||S.altKey||S.shiftKey)return;S.preventDefault();let A=x().filter(E=>E.focusable).map(E=>E.ref.current);if(j==="last")A.reverse();else if(j==="prev"||j==="next"){j==="prev"&&A.reverse();const E=A.indexOf(S.currentTarget);A=p.loop?lV(A,E+1):A.slice(E+1)}setTimeout(()=>QC(A))}}),children:typeof c=="function"?c({isCurrentTabStop:g,hasTabStop:w!=null}):c})})});KC.displayName=YC;var iV={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function oV(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function aV(e,t,n){const s=oV(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(s))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(s)))return iV[s]}function QC(e,t=!1){const n=document.activeElement;for(const s of e)if(s===n||(s.focus({preventScroll:t}),document.activeElement!==n))return}function lV(e,t){return e.map((n,s)=>e[(t+s)%e.length])}var cV=GC,uV=KC,Fd="Tabs",[dV]=Lr(Fd,[qC]),XC=qC(),[hV,my]=dV(Fd),JC=k.forwardRef((e,t)=>{const{__scopeTabs:n,value:s,onValueChange:i,defaultValue:l,orientation:c="horizontal",dir:d,activationMode:f="automatic",...m}=e,p=WC(d),[g,x]=Vl({prop:s,onChange:i,defaultProp:l??"",caller:Fd});return a.jsx(hV,{scope:n,baseId:fo(),value:g,onValueChange:x,orientation:c,dir:p,activationMode:f,children:a.jsx(Qe.div,{dir:p,"data-orientation":c,...m,ref:t})})});JC.displayName=Fd;var ZC="TabsList",e2=k.forwardRef((e,t)=>{const{__scopeTabs:n,loop:s=!0,...i}=e,l=my(ZC,n),c=XC(n);return a.jsx(cV,{asChild:!0,...c,orientation:l.orientation,dir:l.dir,loop:s,children:a.jsx(Qe.div,{role:"tablist","aria-orientation":l.orientation,...i,ref:t})})});e2.displayName=ZC;var t2="TabsTrigger",n2=k.forwardRef((e,t)=>{const{__scopeTabs:n,value:s,disabled:i=!1,...l}=e,c=my(t2,n),d=XC(n),f=i2(c.baseId,s),m=o2(c.baseId,s),p=s===c.value;return a.jsx(uV,{asChild:!0,...d,focusable:!i,active:p,children:a.jsx(Qe.button,{type:"button",role:"tab","aria-selected":p,"aria-controls":m,"data-state":p?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:f,...l,ref:t,onMouseDown:nt(e.onMouseDown,g=>{!i&&g.button===0&&g.ctrlKey===!1?c.onValueChange(s):g.preventDefault()}),onKeyDown:nt(e.onKeyDown,g=>{[" ","Enter"].includes(g.key)&&c.onValueChange(s)}),onFocus:nt(e.onFocus,()=>{const g=c.activationMode!=="manual";!p&&!i&&g&&c.onValueChange(s)})})})});n2.displayName=t2;var s2="TabsContent",r2=k.forwardRef((e,t)=>
408{const{__scopeTabs:n,value:s,forceMount:i,children:l,...c}=e,d=my(s2,n),f=i2(d.baseId,s),m=o2(d.baseId,s),p=s===d.value,g=k.useRef(p);return k.useEffect(()=>{const x=requestAnimationFrame(()=>g.current=!1);return()=>cancelAnimationFrame(x)},[]),a.jsx(Ir,{present:i||p,children:({present:x})=>a.jsx(Qe.div,{"data-state":p?"active":"inactive","data-orientation":d.orientation,role:"tabpanel","aria-labelledby":f,hidden:!x,id:m,tabIndex:0,...c,ref:t,style:{...e.style,animationDuration:g.current?"0s":void 0},children:x&&l})})});r2.displayName=s2;function i2(e,t){return`${e}-trigger-${t}`}function o2(e,t){return`${e}-content-${t}`}var fV=JC,a2=e2,l2=n2,c2=r2;const mV=fV,u2=k.forwardRef(({className:e,...t},n)=>a.jsx(a2,{ref:n,className:Re("inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",e),...t}));u2.displayName=a2.displayName;const Bu=k.forwardRef(({className:e,...t},n)=>a.jsx(l2,{ref:n,className:Re("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 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}));Bu.displayName=l2.displayName;const Vu=k.forwardRef(({className:e,...t},n)=>a.jsx(c2,{ref:n,className:Re("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));Vu.displayName=c2.displayName;function pV(){const[e,t]=k.useState(""),[n,s]=k.useState(!1),[i,l]=k.useState(!0),[c,d]=k.useState(""),[f,m]=k.useState(!1),[p,g]=k.useState([]),[x,N]=k.useState({start:"",end:""}),[b,w]=k.useState(null);k.useEffect(()=>{(async()=>{try{(await bt.auth.me()).role==="admin"&&s(!0)}catch{}finally{l(!1)}})()},[]);const S=I=>{I.preventDefault(),c==="NewLush5165"?(s(!0),m(!1)):m(!0)},{data:j,isLoading:P}=Hu({queryKey:["admin-concerns"],queryFn:()=>bt.entities.Concern.list("-created_date",200),enabled:n,refetchInterval:3e4}),{data:A,isLoading:E}=Hu({queryKey:["admin-conversations"],queryFn:async()=>(await bt.agents.listConversations({agent_name:"harper"})).sort((Y,oe)=>new Date(oe.created_date)-new Date(Y.created_date)),enabled:n,refetchInterval:3e4}),D=I=>!x.start&&!x.end?I:(I==null?void 0:I.filter(Y=>{const oe=new Date(Y.created_date),ee=x.start?new Date(x.start):null,H=x.end?new Date(x.end):null;return ee&&H?oe>=ee&&oe<=H:ee?oe>=ee:H?oe<=H:!0}))||[],V=D(j==null?void 0:j.filter(I=>{var Y,oe,ee;return((Y=I.user_name)==null?void 0:Y.toLowerCase().includes(e.toLowerCase()))||((oe=I.user_email)==null?void 0:oe.toLowerCase().includes(e.toLowerCase()))||((ee=I.subcategory)==null?void 0:ee.toLowerCase().includes(e.toLowerCase()))})),B=D(A==null?void 0:A.filter(I=>{var Y,oe,ee;return((oe=(Y=I.metadata)==null?void 0:Y.name)==null?void 0:oe.toLowerCase().includes(e.toLowerCase()))||((ee=I.id)==null?void 0:ee.toLowerCase().includes(e.toLowerCase()))})),L=()=>{b==="assessments"?p.length===(V==null?void 0:V.length)?g([]):g((V==null?void 0:V.map(I=>I.id))||[]):b==="chats"&&(p.length===(B==null?void 0:B.length)?g([]):g((B==null?void 0:B.map(I=>I.id))||[]))},ne=I=>{g(Y=>Y.includes(I)?Y.filter(oe=>oe!==I):[...Y,I])},Q=async()=>{if(window.confirm(`Delete ${p.length} selected items?`))try{b==="assessments"?(await Promise.all(p.map(I=>bt.entities.Concern.delete(I))),window.location.reload()):b==="chats"&&alert("Chat deletion coming soon"),g([])}catch(I){console.error("Delete error:",I),alert("Failed to delete items")}},re=()=>{let I="",Y="";b==="assessments"?(I=`Name,Email,Phone,Category,Subcategory,Severity,Symptoms,Date
409`,V==null||V.forEach(R=>{var se;I+=`"${R.user_name||""}","${R.user_email||""}","${R.user_phone||""}","${R.category}","${R.subcategory}","${R.severity}","${((se=R.symptoms)==null?void 0:se.join("; "))||""}","${new Date(R.created_date).toLocaleDateString()}"
410`}),Y=`assessments_${new Date().toISOString().split("T")[0]}.csv`):b==="chats"&&(I=`Conversation ID,Created,Messages Count,Last Message
411`,B==null||B.forEach(R=>{var J,F,q;const se=((F=(J=R.messages)==null?void 0:J[R.messages.length-1])==null?void 0:F.content)||"";I+=`"${R.id}","${new Date(R.created_date).toLocaleDateString()}","${((q=R.messages)==null?void 0:q.length)||0}","${se.substring(0,50)}..."
412`}),Y=`chats_${new Date().toISOString().split("T")[0]}.csv`);const oe=new Blob([I],{type:"text/csv"}),ee=window.URL.createObjectURL(oe),H=document.createElement("a");H.href=ee,H.download=Y,H.click()},ie=I=>{switch(I){case"severe":return"bg-red-100 text-red-800 border-red-200";case"moderate":return"bg-yellow-100 text-yellow-800 border-yellow-200";default:return"bg-green-100 text-green-800 border-green-200"}};return i?a.jsx("div",{className:"min-h-screen bg-stone-50 flex items-center justify-center",children:a.jsxs("div",{className:"text-center",children:[a.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-[#D4AF37] mx-auto mb-4"}),a.jsx("p",{className:"text-stone-600",children:"Loading..."})]})}):!n&&!b?a.jsx("div",{className:"min-h-screen bg-stone-50 flex items-center justify-center p-6",children:a.jsxs(_e,{className:"max-w-md w-full",children:[a.jsxs(vt,{className:"text-center",children:[a.jsx("div",{className:"w-16 h-16 rounded-full bg-stone-100 flex items-center justify-center mx-auto mb-4",children:a.jsx(z1,{className:"w-8 h-8 text-stone-400"})}),a.jsx(xt,{children:"Staff Access Required"})]}),a.jsxs(De,{className:"space-y-4",children:[a.jsx("p",{className:"text-stone-600 text-center",children:"Enter the staff password to access the portal."}),a.jsxs("form",{onSubmit:S,className:"space-y-4",children:[a.jsxs("div",{children:[a.jsx(it,{type:"password",placeholder:"Staff Password",value:c,onChange:I=>{d(I.target.value),m(!1)},className:f?"border-red-500":""}),f&&a.jsx("p",{className:"text-red-500 text-sm mt-2",children:"Incorrect password"})]}),a.jsx(ae,{type:"submit",className:"w-full bg-[#D4AF37] hover:bg-[#C19B2E]",children:"Access Portal"})]})]})]})}):b?a.jsx("div",{className:"min-h-screen bg-stone-50 py-8 px-6",children:a.jsxs("div",{className:"max-w-7xl mx-auto",children:[a.jsxs("div",{className:"mb-8 flex items-center justify-between",children:[a.jsxs("div",{children:[a.jsx("h1",{className:"text-3xl font-light text-stone-900 mb
412-2",children:b==="assessments"?"Contact Info & Treatment Plans":b==="chats"?"Chatbot History":"App Analytics"}),a.jsx("p",{className:"text-stone-600",children:b==="assessments"?"Manage patient assessments and contact information":b==="chats"?"View AI assistant conversation history":"View trends and metrics"})]}),a.jsx(ae,{onClick:()=>w(null),variant:"outline",children:"Back to Menu"})]}),a.jsxs(mV,{value:b,onValueChange:I=>{w(I),g([]),t(""),N({start:"",end:""})},children:[a.jsxs(u2,{className:"mb-6 hidden",children:[a.jsxs(Bu,{value:"assessments",className:"gap-2",children:[a.jsx(vi,{className:"w-4 h-4"}),"Assessments"]}),a.jsxs(Bu,{value:"chats",className:"gap-2",children:[a.jsx(Nr,{className:"w-4 h-4"}),"AI Chats"]}),a.jsxs(Bu,{value:"analytics",className:"gap-2",children:[a.jsx(v0,{className:"w-4 h-4"}),"Analytics"]})]}),(b==="assessments"||b==="chats")&&a.jsxs("div",{className:"mb-6 space-y-4",children:[a.jsxs("div",{className:"flex flex-col md:flex-row gap-4",children:[a.jsxs("div",{className:"flex-1 relative",children:[a.jsx(U1,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 w-5 h-5 text-stone-400"}),a.jsx(it,{placeholder:"Search...",value:e,onChange:I=>t(I.target.value),className:"pl-10 rounded-xl"})]}),a.jsxs("div",{className:"flex gap-2",children:[a.jsx(it,{type:"date",value:x.start,onChange:I=>N({...x,start:I.target.value}),className:"rounded-xl",placeholder:"Start date"}),a.jsx(it,{type:"date",value:x.end,onChange:I=>N({...x,end:I.target.value}),className:"rounded-xl",placeholder:"End date"})]})]}),a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx(gs,{checked:p.length>0,onCheckedChange:L}),a.jsx(Ke,{className:"text-sm text-stone-600",children:p.length>0?`${p.length} selected`:"Select all"})]}),a.jsxs("div",{className:"flex gap-2",children:[a.jsxs(ae,{onClick:re,variant:"outline",size:"sm",className:"gap-2",children:[a.jsx($P,{className:"w-4 h-4"}),"Export CSV"]}),p.length>0&&a.jsxs(ae,{onClick:Q,variant:"destructive",size:"sm",className:"gap-2",children:[a.jsx(TE,{className:"w-4 h-4"}),"Delete Selected"]})]})]})]}),a.jsxs(Vu,{value:"assessments",className:"space-y-4",children:[a.jsxs("div",{className:"grid md:grid-cols-4 gap-4 mb-6",children:[a.jsx(_e,{children:a.jsxs(De,{className:"pt-6",children:[a.jsx("div",{className:"text-2xl font-bold text-stone-900",children:(j==null?void 0:j.length)||0}),a.jsx("div",{className:"text-sm text-stone-600",children:"Total Assessments"})]})}),a.jsx(_e,{children:a.jsxs(De,{className:"pt-6",children:[a.jsx("div",{className:"text-2xl font-bold text-red-600",children:(j==null?void 0:j.filter(I=>I.severity==="severe").length)||0}),a.jsx("div",{className:"text-sm text-stone-600",children:"Severe Cases"})]})}),a.jsx(_e,{children:a.jsxs(De,{className:"pt-6",children:[a.jsx("div",{className:"text-2xl font-bold text-yellow-600",children:(j==null?void 0:j.filter(I=>I.severity==="moderate").length)||0}),a.jsx("div",{className:"text-sm text-stone-600",children:"Moderate Cases"})]})}),a.jsx(_e,{children:a.jsxs(De,{className:"pt-6",children:[a.jsx("div",{className:"text-2xl font-bold text-green-600",children:(j==null?void 0:j.filter(I=>I.severity==="mild").length)||0}),a.jsx("div",{className:"text-sm text-stone-600",children:"Mild Cases"})]})})]}),V==null?void 0:V.map((I,Y)=>{var oe;return a.jsx(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:Y*.02},children:a.jsxs(_e,{className:"hover:shadow-lg transition-all",children:[a.jsx(vt,{children:a.jsxs("div",{className:"flex items-start gap-4",children:[a.jsx(gs,{checked:p.includes(I.id),onCheckedChange:()=>ne(I.id),className:"mt-1"}),a.jsxs("div",{className:"flex-1",children:[a.jsxs(xt,{className:"text-lg mb-2 flex items-center gap-2",children:[a.jsx(dd,{className:"w-5 h-5 text-[#D4AF37]"}),I.user_name||"No name provided"]}),a.jsxs("div",{className:"flex flex-wrap gap-2 mb-3",children:[a.jsxs(pt,{className:ie(I.severity),children:[I.severity," severity"]}),a.jsx(pt,{variant:"outline",className:"bg-stone-50",children:I.category}),a.jsx(pt,{variant:"outline",className:"bg-stone-50",children:I.subcategory})]})]}),a.jsxs("div",{className:"text-sm text-stone-500",children:[a.jsx(un,{className:"w-4 h-4 inline mr-1"}),new Date(I.created_date).toLocaleDateString()]})]})}),a.jsx(De,{children:a.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[a.jsxs("div",{className:"space-y-2",children:[a.jsx("h4",{className:"font-medium text-stone-900 mb
412-2",children:"Contact Information"}),I.user_email&&a.jsxs("div",{className:"flex items-center gap-2 text-sm text-stone-600",children:[a.jsx(Mp,{className:"w-4 h-4"}),a.jsx("a",{href:`mailto:${I.user_email}`,className:"hover:text-[#D4AF37]",children:I.user_email})]}),I.user_phone&&a.jsxs("div",{className:"flex items-center gap-2 text-sm text-stone-600",children:[a.jsx(Ci,{className:"w-4 h-4"}),a.jsx("a",{href:`tel:${I.user_phone}`,className:"hover:text-[#D4AF37]",children:I.user_phone})]})]}),a.jsxs("div",{children:[a.jsx("h4",{className:"font-medium text-stone-900 mb-2",children:"Reported Symptoms"}),a.jsx("div",{className:"flex flex-wrap gap-1",children:(oe=I.symptoms)==null?void 0:oe.map((ee,H)=>a.jsx("span",{className:"px-2 py-1 bg-stone-100 text-stone-700 text-xs rounded",children:ee},H))})]})]})})]})},I.id)}),(V==null?void 0:V.length)===0&&a.jsxs("div",{className:"text-center py-12",children:[a.jsx(Wn,{className:"w-12 h-12 text-stone-300 mx-auto mb-4"}),a.jsx("p",{className:"text-stone-600",children:"No assessments found"})]})]}),a.jsxs(Vu,{value:"chats",className:"space-y-4",children:[a.jsx(_e,{className:"mb-6",children:a.jsxs(De,{className:"pt-6",children:[a.jsx("div",{className:"text-2xl font-bold text-stone-900",children:(A==null?void 0:A.length)||0}),a.jsx("div",{className:"text-sm text-stone-600",children:"Total Conversations"})]})}),B==null?void 0:B.map((I,Y)=>{var oe,ee;return a.jsx(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:Y*.02},children:a.jsxs(_e,{className:"hover:shadow-lg transition-all",children:[a.jsx(vt,{children:a.jsxs("div",{className:"flex items-start gap-4",children:[a.jsx(gs,{checked:p.includes(I.id),onCheckedChange:()=>ne(I.id),className:"mt-1"}),a.jsxs("div",{className:"flex-1",children:[a.jsxs(xt,{className:"text-lg mb-2 flex items-center gap-2",children:[a.jsx(Nr,{className:"w-5 h-5 text-[#D4AF37]"}),"Conversation ",I.id.substring(0,8),"..."]}),a.jsxs("div",{className:"text-sm text-stone-600",children:[((oe=I.messages)==null?void 0:oe.length)||0," messages"]})]}),a.jsxs("div",{className:"text-sm text-stone-500",children:[a.jsx(un,{className:"w-4 h-4 inline mr-1"}),new Date(I.created_date).toLocaleDateString()]})]})}),a.jsx(De,{children:a.jsx("div",{className:"bg-stone-50 rounded-lg p-4 max-h-60 overflow-y-auto space-y-2",children:(ee=I.messages)==null?void 0:ee.filter(H=>H.role!=="system").slice(-5).map((H,R)=>{var se,J;return a.jsxs("div",{className:`text-sm ${H.role==="user"?"text-stone-900 font-medium":"text-stone-600"}`,children:[a.jsxs("span",{className:"font-bold",children:[H.role==="user"?"User":"Harper",":"]})," ",(se=H.content)==null?void 0:se.substring(0,100),((J=H.content)==null?void 0:J.length)>100?"...":""]},R)})})})]})},I.id)}),(B==null?void 0:B.length)===0&&a.jsxs("div",{className:"text-center py-12",children:[a.jsx(Nr,{className:"w-12 h-12 text-stone-300 mx-auto mb-4"}),a.jsx("p",{className:"text-stone-600",children:"No conversations found"})]})]}),a.jsxs(Vu,{value:"analytics",children:[a.jsxs("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6 mb-6",children:[a.jsx(_e,{children:a.jsxs(De,{className:"pt-6",children:[a.jsx("div",{className:"text-2xl font-bold text-stone-900",children:(j==null?void 0:j.reduce((I,Y)=>(Y.user_email&&!I.includes(Y.user_email)&&I.push(Y.user_email),I),[]).length)||0}),a.jsx("div",{className:"text-sm text-stone-600",children:"Total Users"})]})}),a.jsx(_e,{children:a.jsxs(De,{className:"pt-6",children:[a.jsxs("div",{className:"text-2xl font-bold text-stone-900",children:[A!=null&&A.length?Math.round(A.reduce((I,Y)=>{var oe;return I+(((oe=Y.messages)==null?void 0:oe.length)||0)*2},0)/A.length):0," min"]}),a.jsx("div",{className:"text-sm text-stone-600",children:"Avg Time Spent"})]})}),a.jsx(_e,{children:a.jsxs(De,{className:"pt-6",children:[a.jsx("div",{className:"text-2xl font-bold text-stone-900",children:(j==null?void 0:j.length)+((A==null?void 0:A.length)||0)}),a.jsx("div",{className:"text-sm text-stone-600",children:"Total Interactions"})]})})]}),a.jsxs("div",{className:"grid md:grid-cols-2 gap-6 mb-6",children:[a.jsxs(_e,{children:[a.jsx(vt,{children:a.jsx(xt,{children:"Assessment Trends"})}),a.jsx(De,{children:a.jsx("div",{className:"space-y-4",children:["wellness","aesthetics","primarycare","sickcare"].map(I=>{const Y=(j==null?void 0:j.filter(ee=>ee.category===I).length)||0,oe=j!=null&&j.length?(Y/j.length*100).toFixed(1):0;return a.jsxs("div",{children:[a.jsxs("div",{className:"flex justify-between text-sm mb-2",children:[a.jsx("span",{className:"capitalize",children:I}),a.jsxs("span",{className:"font-medium",children:[Y," (",oe,"%)"]})]}),a.jsx("div",{className:"w-full bg-stone-200 rounded-full h-2",children:a.jsx("div",{className:"bg-[#D4AF37] h-2 rounded-full",style:{width:`${oe}%`}})})]},I)})})})]}),a.jsxs(_e,{children:[a.jsx(vt,{children:a.jsx(xt,{children:"Conversation Metrics"})}),a.jsx(De,{children:a.jsxs("div",{className:"space-y-4",children:[a.jsxs("div",{className:"flex justify-between items-center p-4 bg-stone-50 rounded-lg",children:[a.jsx("span",{className:"text-stone-600",children:"Total Conversations"}),a.jsx("span",{className:"text-2xl font-bold",children:(A==null?void 0:A.length)||0})]}),a.jsxs("div",{className:"flex justify-between items-center p-4 bg-stone-50 rounded-lg",children:[a.jsx("span",{className:"text-stone-600",children:"Avg Messages/Chat"}),a.jsx("span",{className:"text-2xl font-bold",children:A!=null&&A.length?Math.round(A.reduce((I,Y)=>{var oe;return I+(((oe=Y.messages)==null?void 0:oe.length)||0)},0)/A.length):0})]}),a.jsxs("div",{className:"flex justify-between items-center p-4 bg-stone-50 rounded-lg",children:[a.jsx("span",{className:"text-stone-600",children:"This Week"}),a.jsx("span",{className:"text-2xl font-bold",children:(A==null?void 0:A.filter(I=>Date.now()-new Date(I.created_date).getTime()<10080*60*1e3).length)||0})]})]})})]})]}),a.jsxs(_e,{children:[a.jsx(vt,{children:a.jsx(xt,{children:"User Demographics"})}),a.jsx(De,{children:a.jsxs("div",{className:"grid md:grid-cols-3 gap-6",children:[a.jsxs("div",{children:[a.jsx("h4",{className:"font-medium text-stone-900 mb
412-3",children:"Top Concerns"}),a.jsx("div",{className:"space-y-2",children:Object.entries((j==null?void 0:j.reduce((I,Y)=>(I[Y.subcategory]=(I[Y.subcategory]||0)+1,I),{}))||{}).sort((I,Y)=>Y[1]-I[1]).slice(0,5).map(([I,Y])=>a.jsxs("div",{className:"flex justify-between text-sm",children:[a.jsx("span",{className:"capitalize text-stone-600",children:I}),a.jsx("span",{className:"font-medium",children:Y})]},I))})]}),a.jsxs("div",{children:[a.jsx("h4",{className:"font-medium text-stone-900 mb-3",children:"Severity Distribution"}),a.jsx("div",{className:"space-y-2",children:["severe","moderate","mild"].map(I=>{const Y=(j==null?void 0:j.filter(oe=>oe.severity===I).length)||0;return a.jsxs("div",{className:"flex justify-between text-sm",children:[a.jsx("span",{className:"capitalize text-stone-600",children:I}),a.jsx("span",{className:"font-medium",children:Y})]},I)})})]}),a.jsxs("div",{children:[a.jsx("h4",{className:"font-medium text-stone-900 mb-3",children:"Activity Timeline"}),a.jsx("div",{className:"space-y-2",children:["Today","This Week","This Month"].map(I=>{let Y=0;const oe=Date.now();return I==="Today"?Y=(j==null?void 0:j.filter(ee=>oe-new Date(ee.created_date).getTime()<1440*60*1e3).length)||0:I==="This Week"?Y=(j==null?void 0:j.filter(ee=>oe-new Date(ee.created_date).getTime()<10080*60*1e3).length)||0:Y=(j==null?void 0:j.filter(ee=>oe-new Date(ee.created_date).getTime()<720*60*60*1e3).length)||0,a.jsxs("div",{className:"flex justify-between text-sm",children:[a.jsx("span",{className:"text-stone-600",children:I}),a.jsx("span",{className:"font-medium",children:Y})]},I)})})]})]})})]})]})]})]})}):a.jsx("div",{className:"min-h-screen bg-stone-50 flex items-center justify-center p-6",children:a.jsxs(_e,{className:"max-w-2xl w-full",children:[a.jsxs(vt,{className:"text-center",children:[a.jsx(xt,{className:"text-2xl",children:"Select Staff Portal View"}),a.jsx("p",{className:"text-stone-600 mt-2",children:"Choose what you'd like to access"})]}),a.jsxs(De,{className:"space-y-3",children:[a.jsxs(ae,{onClick:()=>w("assessments"),className:"w-full justify-start h-auto py-6 text-left bg-white hover:bg-stone-50 text-stone-900 border-2 border-stone-200 hover:border-[#D4AF37]",variant:"outline",children:[a.jsx(vi,{className:"w-6 h-6 mr-3 text-[#D4AF37]"}),a.jsxs("div",{children:[a.jsx("div",{className:"font-medium text-lg",children:"Contact Info & Treatment Plans"}),a.jsx("div",{className:"text-sm text-stone-500",children:"View assessments and contact information"})]})]}),a.jsxs(ae,{onClick:()=>w("chats"),className:"w-full justify-start h-auto py-6 text-left bg-white hover:bg-stone-50 text-stone-900 border-2 border-stone-200 hover:border-[#D4AF37]",variant:"outline",children:[a.jsx(Nr,{className:"w-6 h-6 mr-3 text-[#D4AF37]"}),a.jsxs("div",{children:[a.jsx("div",{className:"font-medium text-lg",children:"Chatbot History"}),a.jsx("div",{className:"text-sm text-stone-500",children:"View AI assistant conversations"})]})]}),a.jsxs(ae,{onClick:()=>w("analytics"),className:"w-full justify-start h-auto py-6 text-left bg-white hover:bg-stone-50 text-stone-900 border-2 border-stone-200 hover:border-[#D4AF37]",variant:"outline",children:[a.jsx(v0,{className:"w-6 h-6 mr-3 text-[#D4AF37]"}),a.jsxs("div",{children:[a.jsx("div",{className:"font-medium text-lg",children:"App Analytics"}),a.jsx("div",{className:"text-sm text-stone-500",children:"View trends and metrics"})]})]})]})]})})}const gV=[{name:"Bioidentical Hormone Therapy",description:"Personalized hormone replacement to restore balance, energy, and vitality",duration:"30-45 min consultation",price:"$250-500",benefits:["Energy restoration","Mood balance","Better sleep","Weight management","Improved libido"]},{name:"Testosterone Therapy",description:"Optimize testosterone levels for improved vitality and wellness",duration:"30-45 min",price:"$200-450",benefits:["Increased energy","Muscle tone improvement","Enhanced libido","Better focus","Mood improvement"]},{name:"Medical Weight Loss",description:"Physician-supervised weight management program with medication-assisted options available. FREE first consultation",duration:"Monthly program",price:"Free consultation",benefits:["Medical supervision","Medication options available","Personalized plan","Sustainable results","Ongoing support"]},{name:"IV Therapy - Myers' Cocktail",description:"Classic vitamin and mineral infusion for overall wellness and energy",duration:"45-60 min",price:"$150-250",benefits:["Energy boost","Immune support","Nutrient replenishment","Hydration","Quick results"]},{name:"Hydration IV",description:"Pure hydrating fluids for deep hydration from the inside out",duration:"30-45 min",price:"$100-200",benefits:["Deep hydration","Energy boost","Recovery support","Headache relief","Wellness support"]},{name:"Immunity Boost IV",description:"High-dose vitamin C and zinc to strengthen your immune system",duration:"45 min",price:"$175-275",benefits:["Immune defense","Antioxidants","Wellness support","Cold prevention","Quick absorption"]},{name:"Vitamin B12 Injections",description:"Quick vitamin B12 boost for energy and mental clarity",duration:"5-10 min",price:"$25-50",benefits:["Energy boost","Mental clarity","Mood support","Metabol
412ism support","Quick and easy"]},{name:"Red Light Therapy",description:"Non-invasive therapy for pain relief, inflammation reduction, and healing",duration:"30 min",price:"$40+/session",benefits:["Pain relief","Inflammation reduction","Tissue healing","Improved recovery","No downtime"]},{name:"Joint Pain Treatments (PRP & Orthobiologics)",description:"Advanced joint therapy using biologics for natural healing and pain relief",duration:"45-60 min",price:"$1000+",benefits:["Natural healing","Pain reduction","Improved mobility","Long-lasting relief","Minimally invasive"]}];function yV(){return a.jsx("div",{className:"min-h-screen bg-stone-50 py-12 px-6",children:a.jsxs("div",{className:"max-w-6xl mx-auto",children:[a.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center mb-12",children:[a.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 rounded-full bg-[#D4AF37]/10 border border-[#D4AF37]/20 text-sm text-stone-700 mb-6",children:[a.jsx(Ut,{className:"w-4 h-4 text-[#D4AF37]"}),"Wellness Services"]}),a.jsx("h1",{className:"text-3xl md:text-5xl font-light text-stone-900 mb-4",children:"Feel Like Yourself Again"}),a.jsx("p",{className:"text-stone-600 text-lg max-w-2xl mx-auto",children:"Comprehensive wellness treatments to restore your energy, balance, and vitality"})]}),a.jsx("div",{className:"grid md:grid-cols-2 gap-6 mb-12",children:gV.map((e,t)=>a.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:t*.05},className:"bg-white rounded-2xl p-8 shadow-lg hover:shadow-xl transition-all duration-300",children:[a.jsx("div",{className:"flex items-start justify-between mb-4",children:a.jsxs("div",{children:[a.jsx("h3",{className:"text-xl font-medium text-stone-900 mb-2",children:e.name}),a.jsx("p",{className:"text-stone-600 text-sm mb-4",children:e.description})]})}),a.jsxs("div",{className:"flex items-center gap-4 mb-4 text-sm text-stone-500",children:[a.jsxs("span",{children:["⏱️ ",e.duration]}),a.jsxs("span",{children:["💰 ",e.price]})]}),a.jsx("div",{className:"space-y-2 mb-6",children:e.benefits.map(n=>a.jsxs("div",{className:"flex items-center gap-2 text-sm text-stone-700",children:[a.jsx("div",{className:"w-1.5 h-1.5 rounded-full bg-[#D4AF37]"}),n]},n))})]},e.name))}),a.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.3},className:"mb-8 rounded-3xl overflow-hidden border-2 border-[#D4AF37]/30",children:[a.jsxs("div",{className:"bg-gradient-to-r from-[#D4AF37]/10 to-[#D4AF37]/5 p-6 md:p-8 border-b border-[#D4AF37]/20",children:[a.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[a.jsx("div",{className:"w-10 h-10 rounded-full bg-[#D4AF37]/20 flex items-center justify-center",children:a.jsx(Ut,{className:"w-5 h-5 text-[#D4AF37]"})}),a.jsx("span",{className:"text-sm font-medium text-[#D4AF37] uppercase tracking-wider",children:"New"})]}),a.jsx("h2",{className:"text-2xl md:text-3xl font-medium text-stone-900 mb-2",children:"Manage Your Wellness From Home"}),a.jsx("p",{className:"text-stone-600 max-w-2xl",children:"Too busy to come in? No problem. Take control of your health on your own schedule — no appointment needed."})]}),a.jsxs("div",{className:"bg-white p-6 md:p-8",children:[a.jsxs("div",{className:"grid md:grid-cols-3 gap-6 mb-8",children:[a.jsxs("div",{className:"flex flex-col items-start gap-3",children:[a.jsx("div",{className:"w-12 h-12 rounded-2xl bg-stone-100 flex items-center justify-center",children:a.jsx(mE,{className:"w-6 h-6 text-stone-700"})}),a.jsx("h3",{className:"font-medium text-stone-900",children:"Order Your Own Labs"}),a.jsx("p",{className:"text-sm text-stone-600",children:"Skip the waiting room. Order your own lab tests and get results delivered directly to you."})]}),a.jsxs("div",{className:"flex flex-col items-start gap-3",children:[a.jsx("div",{className:"w-12 h-12 rounded-2xl bg-stone-100 flex items-center justify-center",children:a.jsx(B1,{className:"w-6 h-6 text-stone-700"})}),a.jsx("h3",{className:"font-medium text-stone-900",children:"Personalized Lab Review"}),a.jsx("p",{className:"text-sm text-stone-600",children:"Get your results reviewed by one of our medical providers who will guide you on next steps."})]}),a.jsxs("div",{className:"flex flex-col items-start gap-3",children:[a.jsx("div",{className:"w-12 h-12 rounded-2xl bg-stone-100 flex items-center justify-center",children:a.jsx($u,{className:"w-6 h-6 text-stone-700"})}),a.jsx("h3",{className:"font-medium text-stone-900",children:"Supplements Delivered to You"}),a.jsx("p",{className:"text-sm text-stone-600",children:"Browse professional-grade supplements curated by our providers and have them shipped directly to your door."})]})]}),a.jsx("a",{href:"https://us.fullscript.com/j/lush-health",target:"_blank",rel:"noopener noreferrer",children:a.jsxs(ae,{className:"bg-black hover:bg-[#D4AF37] text-white hover:text-black px-6 py-5 rounded-xl text-base shadow-lg transition-all duration-300",children:["Get Started — No Appointment Needed",a.jsx(qe,{className:"w-4 h-4 ml-2"})]})})]})]}),a.jsxs(Z.div,{initial:{opacity:0,y:20}
412,animate:{opacity:1,y:0},transition:{delay:.4},className:"bg-gradient-to-br from-black to-stone-900 rounded-3xl p-8 md:p-12 text-center text-white",children:[a.jsx("h2",{className:"text-2xl md:text-3xl font-medium mb-4",children:"Start Your Wellness Journey"}),a.jsx("p",{className:"text-stone-300 mb-8 max-w-2xl mx-auto",children:"Schedule your consultation today and discover how our wellness services can help you feel your best"}),a.jsx("a",{href:"https://lush.myaestheticrecord.com/online-booking/v2",target:"_blank",rel:"noopener noreferrer",children:a.jsxs(ae,{className:"bg-[#D4AF37] hover:bg-[#C19B2E] text-black px-8 py-6 rounded-xl text-lg shadow-lg shadow-[#D4AF37]/20",children:["Book Appointment",a.jsx(qe,{className:"w-5 h-5 ml-2"})]})})]})]})})}function vV(){const[e,t]=k.useState(!1),[n,s]=k.useState([{id:1,text:`Hello! I'm Harper, your expert AI concierge at LUSH HEALTH. I can help you with:
413
414🔹 Guide you to our online booking portal
415🔹 Tell you about our luxury treatments and services
416🔹 Recommend products and treatments
417🔹 Get directions and contact info
418🔹 Learn about our membership options
419🔹 Answer wellness questions
420
421How can I assist you today?`,sender:"bot",timestamp:new Date}]),[i,l]=k.useState(""),[c,d]=k.useState(!1),f=k.useRef(null),m=()=>{var b;(b=f.current)==null||b.scrollIntoView({behavior:"smooth"})};k.useEffect(()=>{m()},[n]);const p=async()=>`You are Harper, Lush Health's luxury wellness concierge - warm, knowledgeable, and your guide to looking and feeling your absolute best.
422
423LUSH HEALTH INFORMATION:
424- Location: 5165 Northland Drive NE, Grand Rapids, MI 49525
425- Phone: (616) 386-1840
426- Email: [email protected]
427- Hours: By appointment - M-Th 8am-7pm, Fri 8am-5pm, Sat 10am-4pm
428- Book online: https://lush.myaestheticrecord.com/online-booking/v2/book-appointment
429
430AESTHETIC SERVICES:
431- Botox & Daxxify: $250-500 - smooth wrinkles and prevent new lines
432- Dermal Fillers: $700-1400 - restore volume and define contours
433- LUSH Lips (signature): $700 - natural lip enhancement
434- Microneedling with PRP: $400-700 - collagen boost and skin renewal
435- Chemical Peels: $150-350 - brighten and improve texture
436- Orthobiologics: $1000+ - natural joint pain relief
437- PRP Hair Restoration: $600-1000 - stimulate hair growth
438- Red Light Therapy: $40+/session - healing and pain relief
439
440WELLNESS SERVICES:
441- Bioidentical Hormone Therapy: free initial consult - restore balance and vitality
442- Testosterone Therapy: free initial consult - optimize energy and wellness
443- Medical Weight Loss: FREE first consultation - medically-supervised
444- Oral GLP-1 Support - Calocurb: $120/month - natural appetite control supplement
445- Supplement Weight Loss: $50+/week - natural metabolism support
446- IV Therapy: $150-300 - Myers' Cocktail, Hydration, Immunity Boost
447
448PRIMARY & SICK CARE:
449- Primary Care Visits: $175-275 - annual exams and chronic disease management
450- Routine Medical Visits: $175-275 - follow-up care
451- Sick Visits: $250+ - in-person or virtual for acute illness
452- Nurse Practitioner Vanessa: 20+ years experience, cash pay discounts
453
454SPECIAL EXPERIENCES:
455- LUSH After Hours: Private wellness parties for up to 6 people - IV drips, jelly masks, refreshments. Perfect for bridal parties!
456- Gift Cards: Available for all services
457
458PRODUCTS:
459- Circadia Skincare: Medical-grade skincare
460- Fullscript Supplements: Professional-grade supplements
461
462OUR TEAM:
463- Rachel: Expert nurse injector - natural-looking results
464- Lexce: Aesthetic specialist - relaxing facials, luminous skin
465- Vanessa NP: Primary care and wellness expert
466
467MEMBERSHIP:
468- Luscious: $1/year - treatment savings, priority booking
469- HUSH: $150/month - special savings, flexible monthly
470- Regular: Free - standard pricing
471
472Recent Appointments:
473${(await bt.entities.Appointment.list("-created_date",50)).map(w=>`- ${w.client_name} (${w.client_email}): ${w.treatment_type} on ${w.date} - ${w.status}`).join(`
474`)}
475
476Your Approach:
477- Warm, friendly, professional with occasional tasteful humor
478- Guide naturally toward booking when interest is clear
479- Be enthusiastic but never pushy
480- Use emojis sparingly (✨, 💆‍♀️, 🌟)
481- If unsure, suggest calling (616) 386-1840 or booking a consultation
482- NEVER include URLs or links in your responses - the user will have clickable buttons for booking and shopping
483- When mentioning booking, skincare products, or supplements, just describe them without providing links
484
485Current date: ${new Date().toISOString().split("T")[0]}
486
487Remember: You represent high-end medical aesthetics and wellness. Maintain that premium, caring tone throughout.`,g=async()=>
487{if(!i.trim())return;const b={id:Date.now(),text:i,sender:"user",timestamp:new Date};s(w=>[...w,b]),l(""),d(!0);try{const w=await p(),S=await bt.integrations.Core.InvokeLLM({prompt:`${w}
488
489User message: ${i}
490
491Please respond as Harper, the luxury wellness concierge for Lush Health. Be helpful, friendly, professional, and provide accurate information about services, appointments, and wellness topics. Format your response nicely with line breaks where better readability.`,add_context_from_internet:!1}),j=S.toLowerCase(),P=j.includes("book")||j.includes("appointment")||j.includes("consultation")||j.includes("schedule"),A=j.includes("skincare")||j.includes("circadia")||j.includes("serum")||j.includes("cleanser")||j.includes("moisturizer")||j.includes("facial"),E=j.includes("supplement")||j.includes("vitamin")||j.includes("fullscript")||j.includes("collagen")||j.includes("omega"),D={id:Date.now()+1,text:S,sender:"bot",timestamp:new Date,showBooking:P,showSkincare:A,showSupplements:E};s(V=>[...V,D])}catch(w){console.error("Chat error:",w);const S={id:Date.now()+1,text:"I apologize, but I'm experiencing technical difficulties. Please call us directly at (616) 386-1840 or visit our contact page for assistance. Our team will be happy to help you! ✨",sender:"bot",timestamp:new Date};s(j=>[...j,S])}finally{d(!1)}},x=b=>{b.key==="Enter"&&!b.shiftKey&&(b.preventDefault(),g())},N=n.length>1&&n[n.length-1].sender==="bot"&&!e;return a.jsxs(a.Fragment,{children:[a.jsxs(Z.button,{initial:{scale:0},animate:{scale:1},whileHover:{scale:1.1},whileTap:{scale:.9},onClick:()=>t(!0),style:{position:"fixed",bottom:"1.5rem",right:"1.5rem",zIndex:9999},className:`bg-black border-2 border-white text-white rounded-full shadow-2xl flex items-center justify-center transition-all duration-300 ${e?"scale-0":"scale-100"} w-16 h-16`,"aria-label":"Open AI chat assistant",children:[a.jsx(dE,{className:"w-6 h-6 text-[#D4AF37]"}),N&&a.jsxs(a.Fragment,{children:[a.jsx(Z.div,{animate:{y:[-5,-15,-5],opacity:[.5,1,.5]},transition:{duration:2,repeat:1/0,ease:"easeInOut"},className:"absolute -top-2 -right-1",children:a.jsx(Me,{className:"w-5 h-5 text-[#D4AF37]"})}),a.jsx(Z.div,{animate:{y:[-5,-15,-5],opacity:[.5,1,.5]},transition:{duration:2,repeat:1/0,ease:"easeInOut",delay:.3},className:"absolute -top-3 right-2",children:a.jsx(Me,{className:"w-4 h-4 text-[#D4AF37]"})}),a.jsx(Z.div,{animate:{y:[-5,-15,-5],opacity:[.5,1,.5]},transition:{duration:2,repeat:1/0,ease:"easeInOut",delay:.6},className:"absolute -top-1 right-4",children:a.jsx(Me,{className:"w-3 h-3 text-[#D4AF37]"})})]})]}),a.jsx(Hn,{children:e&&a.jsxs(Z.div,{initial:{opacity:0,scale:.8,y:50},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.8,y:50},transition:{type:"spring",stiffness:300,damping:30},style:{position:"fixed",bottom:"1rem",right:"1rem",zIndex:9999},className:"w-[calc(100%-2rem)] max-w-sm h-[75vh] sm:bottom-6 sm:right-6 sm:w-96 sm:h-[600px] bg-white rounded-3xl shadow-2xl flex flex-col overflow-hidden border-2 border-stone-200",children:[a.jsxs("div",{className:"bg-black text-white p-4 flex items-center justify-between flex-shrink-0 border-b-2 border-[#D4AF37]",children:[a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsxs("div",{className:"w-10 h-10 rounded-full flex items-center justify-center relative",children:[a.jsx("img",{src:"https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/6951d4c5f53c7bd92a68d780/a3b8b667f_HarperChatBot.jpeg",alt:"Harper",className:"w-10 h-10 rounded-full object-cover"}),a.jsx("div",{className:"absolute -bottom-1 -right-1 w-3 h-3 bg-green-400 rounded-full border-2 border-black"})]}),a.jsxs("div",{children:[a.jsx("h3",{className:"font-serif text-lg font-bold",children:"Harper AI"}),a.jsx("p",{className:"text-xs text-stone-300",children:"Lush Health Assistant • Online"})]})]}),a.jsx("button",{onClick:()=>t(!1),className:"w-8 h-8 bg-white/10 rounded-full flex items-center justify-center hover:bg-white/20 transition-colors","aria-label":"Close chat",children:a.jsx(Fr,{className:"w-4 h-4"})})]}),a.jsxs("div",{className:"flex-1 overflow-y-auto p-4 space-y-4",children:[n.map(b=>a.jsx(Z.div,{initial:{opacity:0,y:20}
491,animate:{opacity:1,y:0},className:`flex ${b.sender==="user"?"justify-end":"justify-start"}`,children:a.jsxs("div",{className:"flex items-start gap-2 max-w-[85%]",children:[b.sender==="bot"&&a.jsx("img",{src:"https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/6951d4c5f53c7bd92a68d780/a3b8b667f_HarperChatBot.jpeg",alt:"Harper",className:"w-8 h-8 rounded-full object-cover flex-shrink-0"}),a.jsxs("div",{className:"flex flex-col gap-2",children:[a.jsxs("div",{className:`p-3 rounded-2xl ${b.sender==="user"?"bg-black text-white ml-2":"bg-stone-100 text-stone-900 border border-stone-200"}`,children:[a.jsx("p",{className:"text-sm leading-relaxed whitespace-pre-wrap break-words",children:b.text}),a.jsx("p",{className:`text-xs mt-1 text-right ${b.sender==="user"?"text-white/70":"text-stone-500"}`,children:b.timestamp.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})})]}),b.sender==="bot"&&(b.showBooking||b.showSkincare||b.showSupplements)&&a.jsxs("div",{className:"flex flex-wrap gap-2",children:[b.showBooking&&a.jsxs(ae,{size:"sm",onClick:()=>window.open("https://lush.myaestheticrecord.com/online-booking/v2","_blank"),className:"bg-black hover:bg-[#D4AF37] text-white text-xs h-8",children:["📅 Book Appointment",a.jsx(qe,{className:"w-3 h-3 ml-1"})]}),b.showSkincare&&a.jsxs(ae,{size:"sm",onClick:()=>window.open("https://www.circadiaretailer.com/dealer/941637","_blank"),className:"bg-black hover:bg-[#D4AF37] text-white text-xs h-8",children:["🛍️ Shop Skincare",a.jsx(qe,{className:"w-3 h-3 ml-1"})]}),b.showSupplements&&a.jsxs(ae,{size:"sm",onClick:()=>window.open("https://us.fullscript.com/welcome/lush-health","_blank"),className:"bg-black hover:bg-[#D4AF37] text-white text-xs h-8",children:["💊 Shop Supplements",a.jsx(qe,{className:"w-3 h-3 ml-1"})]})]})]}),b.sender==="user"&&a.jsx("div",{className:"w-8 h-8 rounded-full bg-black flex items-center justify-center flex-shrink-0",children:a.jsx(dd,{className:"w-4 h-4 text-white"})})]})},b.id)),c&&a.jsx(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"flex justify-start",children:a.jsxs("div",{className:"flex items-start gap-2",children:[a.jsx("img",{src:"https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/6951d4c5f53c7bd92a68d780/a3b8b667f_HarperChatBot.jpeg",alt:"Harper",className:"w-8 h-8 rounded-full object-cover"}),a.jsx("div",{className:"bg-gray-100 p-3 rounded-2xl",children:a.jsxs("div",{className:"flex gap-1",children:[a.jsx("div",{className:"w-2 h-2 bg-gray-400 rounded-full animate-bounce"}),a.jsx("div",{className:"w-2 h-2 bg-gray-400 rounded-full animate-bounce",style:{animationDelay:"0.1s"}}),a.jsx("div",{className:"w-2 h-2 bg-gray-400 rounded-full animate-bounce",style:{animationDelay:"0.2s"}})]})})]})}),a.jsx("div",{ref:f})]}),a.jsx("div",{className:"px-4 py-2 border-t-2 border-stone-200 bg-stone-50",children:a.jsxs("div",{className:"flex gap-2 mb-2 overflow-x-auto",children:[a.jsx("a",{href:"https://lush.myaestheticrecord.com/online-booking/v2",target:"_blank",rel:"noopener noreferrer",className:"px-3 py-1 bg-black text-white text-xs rounded-full whitespace-nowrap hover:bg-[#D4AF37] hover:text-black transition-colors",children:"📅 Book Now"}),a.jsx("a",{href:ct("Assessment"),className:"px-3 py-1 bg-black text-white text-xs rounded-full whitespace-nowrap hover:bg-[#D4AF37] hover:text-black transition-colors",children:"✨ Recommendations"}),a.jsx("a",{href:"https://maps.app.goo.gl/rXmtjfw3yjJAk32u6",target:"_blank",rel:"noopener noreferrer",className:"px-3 py-1 bg-black text-white text-xs rounded-full whitespace-nowrap hover:bg-[#D4AF37] hover:text-black transition-colors",children:"📍 Location"})]})}),a.jsx("div",{className:"p-4 border-t-2 border-stone-200",children:a.jsxs("div",{className:"flex gap-2",children:[a.jsx("input",{type:"text",value:i,onChange:b=>l(b.target.value),onKeyPress:x,placeholder:"Ask about services, booking, prices...",className:"flex-1 px-4 py-2 border-2 border-stone-200 rounded-full focus:outline-none focus:border-[#D4AF37] transition-colors",disabled:c}),a.jsx("button",{onClick:g,disabled:!i.trim()||c,className:"w-10 h-10 bg-black text-[#D4AF37] rounded-full flex items-center justify-center hover:bg-[#D4AF37] hover:text-black transition-colors disabled:opacity-50 disabled:cursor-not-allowed","aria-label":"Send message",children:a.jsx($1,{className:"w-4 h-4"})})]})})]})})]})}const k1=[{name:"Home",icon:V1,page:"Home"},{name:"Assessment",icon:Me,page:"Assessment"},{name:"Shop",icon:Eo,page:"Shop"},{name:"Message Us",icon:vi,page:"Insiders"},{name:"Membership",icon:al,page:"Membership"},{name:"Book Now",icon:un,url:"https://lush.myaestheticrecord.com/online-booking/v2",external:!0,primary:!0}];function xV({children:e,currentPageName:t}){const[n,s]=k.useState(!1),[i,l]=k.useState(!1);return k.useEffect(()=>{(async()=>{try{const d=await bt.auth.me();l(d.role==="admin")}catch{l(!1)}})()},[]),a.jsxs("div",{className:"min-h-screen bg-white",children:[a.jsx(vV,{}),a.jsxs("nav",{className:"fixed top-0 left-0 right-0 z-50 bg-white/80 backdrop-blur-lg border-b border-stone-100",children:[a.jsx("div",{className:"max-w-7xl mx-auto px-6",children:a.jsxs("div",{className:"flex items-center justify-between h-16",children:[a.jsxs("a",{href:"https://www.lush-health.com",className:"flex items-center gap-3",children:[a.jsx("img",{src:"https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/6951d4c5f53c7bd92a68d780/0a2e36432_SquareLushHealthBlack.png",alt:"Lush Health",className:"h-12 w-auto"}),a.jsx("span",{className:"text-xl font-medium text-stone-900 hidden sm:block",children:"Lush Health"})]}),a.jsx("div",{className:"hidden md:flex items-center gap-1",children:k1.map(c=>{const d=c.external?"a":Tt,f=c.external?{href:c.url,target:"_blank",rel:"noopener noreferrer"}:{to:ct(c.page)};return a.jsx(d,{...f,children:c.primary?a.jsxs(ae,{className:"bg-[#D4AF37] hover:bg-[#C19B2E] text-white rounded-full ml-2 shadow-lg shadow-[#D4AF37]/20",children:[a.jsx(c.icon,{className:"w-4 h-4 mr-2"}),c.name]}):a.jsxs(ae,{variant:"ghost",className:`rounded-full ${t===c.page?"bg-stone-100 text-black":"text-stone-700 hover:text-black"}`,children:[a.jsx(c.icon,{className:"w-4 h-4 mr-2"}),c.name]})},c.name)})}),a.jsx(ae,{variant:"ghost",size:"icon",className:"md:hidden",onClick:()=>s(!n),children:n?a.jsx(Fr,{className:"w-5 h-5"}):a.jsx(cE,{className:"w-5 h-5"})})]})}),a.jsx(Hn,{children:n&&a.jsx(Z.div,{initial:{opacity:0,height:0}
491,animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},className:"md:hidden bg-white border-t border-stone-100",children:a.jsx("div",{className:"px-6 py-4 space-y-2",children:k1.map(c=>{const d=c.external?"a":Tt,f=c.external?{href:c.url,target:"_blank",rel:"noopener noreferrer"}:{to:ct(c.page)};return a.jsxs(d,{...f,onClick:()=>s(!1),className:`flex items-center gap-3 px-4 py-3 rounded-xl transition-colors ${t===c.page?"bg-stone-100 text-black":"text-stone-700 hover:bg-stone-50"} ${c.primary?"bg-[#D4AF37] text-white hover:bg-[#C19B2E]":""}`,children:[a.jsx(c.icon,{className:"w-5 h-5"}),c.name]},c.name)})})})})]}),a.jsx("main",{className:"pt-16",children:e}),a.jsx("footer",{className:"bg-black text-white py-16 px-6",children:a.jsxs("div",{className:"max-w-6xl mx-auto",children:[a.jsxs("div",{className:"grid md:grid-cols-4 gap-12 mb-12",children:[a.jsxs("div",{children:[a.jsx("a",{href:"https://www.lush-health.com",className:"flex items-center gap-3 mb-4",children:a.jsx("img",{src:"https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/6951d4c5f53c7bd92a68d780/0a2e36432_SquareLushHealthBlack.png",alt:"Lush Health",className:"h-10 w-auto invert"})}),a.jsx("p",{className:"text-stone-400 text-sm",children:"Modern wellness and aesthetic excellence."})]}),a.jsxs("div",{children:[a.jsx("h4",{className:"font-medium mb-4",children:"Services"}),a.jsxs("ul",{className:"space-y-2 text-stone-400 text-sm",children:[a.jsx("li",{children:a.jsx(Tt,{to:ct("AestheticServices"),className:"hover:text-white transition-colors",children:"Aesthetic Treatments"})}),a.jsx("li",{children:a.jsx(Tt,{to:ct("WellnessServices"),className:"hover:text-white transition-colors",children:"Wellness Services"})}),a.jsx("li",{children:a.jsx(Tt,{to:ct("PrimaryCareServices"),className:"hover:text-white transition-colors",children:"Primary Care"})})]})]}),a.jsxs("div",{children:[a.jsx("h4",{className:"font-medium mb-4",children:"Quick Links"}),a.jsxs("ul",{className:"space-y-2 text-stone-400 text-sm",children:[a.jsx("li",{children:a.jsx(Tt,{to:ct("Shop"),className:"hover:text-white transition-colors",children:"Shop Products"})}),a.jsx("li",{children:a.jsx(Tt,{to:ct("Membership"),className:"hover:text-white transition-colors",children:"Membership"})}),a.jsx("li",{children:a.jsx(Tt,{to:ct("BookAppointment"),className:"hover:text-white transition-colors",children:"Book Appointment"})}),a.jsx("li",{children:a.jsx(Tt,{to:ct("Insiders"),className:"hover:text-white transition-colors",children:"Submit Records"})})]})]}),a.jsxs("div",{children:[a.jsx("h4",{className:"font-medium mb-4",children:"Contact"}),a.jsxs("ul",{className:"space-y-2 text-stone-400 text-sm",children:[a.jsx("li",{children:a.jsxs("a",{href:"https://maps.app.goo.gl/mbdixY3FX9ZQbuLc7",target:"_blank",rel:"noopener noreferrer",className:"hover:text-white transition-colors",children:["5165 Northland Drive NE",a.jsx("br",{}),"Grand Rapids, MI 49525"]})}),a.jsx("li",{children:a.jsx("a",{href:"tel:+16163861840",className:"hover:text-white transition-colors",children:"(616) 386-1840"})}),a.jsx("li",{children:a.jsx("a",{href:"mailto:[email protected]",className:"hover:text-white transition-colors",children:"[email protected]"})})]})]})]}),a.jsxs("div",{className:"border-t border-stone-800 pt-8",children:[a.jsxs("div",{className:"flex justify-center gap-6 mb-6",children:[a.jsx("a",{href:"https://www.facebook.com/profile.php?id=61566613553599",target:"_blank",rel:"noopener noreferrer",className:"text-stone-400 hover:text-[#D4AF37] transition-colors","aria-label":"Facebook",children:a.jsx(KP,{className:"w-6 h-6"})}),a.jsx("a",{href:"https://www.instagram.com/lush_health_gr/",target:"_blank",rel:"noopener noreferrer",className:"text-stone-400 hover:text-[#D4AF37] transition-colors","aria-label":"Instagram",children:a.jsx(sE,{className:"w-6 h-6"})}),a.jsx("a",{href:"https://www.tiktok.com/@lush.health",target:"_blank",rel:"noopener noreferrer",className:"text-stone-400 hover:text-[#D4AF37] transition-colors","aria-label":"TikTok",children:a.jsx("svg",{className:"w-6 h-6",fill:"currentColor",viewBox:"0 0 24 24",children:a.jsx("path",{d:"M19.59 6.69a4.83 4.83 0 0 1-3.77-4.25V2h-3.45v13.67a2.89 2.89 0 0 1-5.2 1.74 2.89 2.89 0 0 1 2.31-4.64 2.93 2.93 0 0 1 .88.13V9.4a6.84 6.84 0 0 0-1-.05A6.33 6.33 0 0 0 5 20.1a6.34 
4916.34 0 0 0 10.86-4.43v-7a8.16 8.16 0 0 0 4.77 1.52v-3.4a4.85 4.85 0 0 1-1-.1z"})})}),a.jsx("a",{href:"https://www.youtube.com/@Lush.Health",target:"_blank",rel:"noopener noreferrer",className:"text-stone-400 hover:text-[#D4AF37] transition-colors","aria-label":"YouTube",children:a.jsx(FE,{className:"w-6 h-6"})})]}),a.jsxs("div",{className:"text-center text-stone-500 text-sm",children:[a.jsx("p",{children:"© 2026 Lush Health. All rights reserved."}),a.jsx("a",{href:ct("StaffPortal"),onClick:c=>{c.preventDefault();const d=prompt("Staff Password:");d==="NewLush5165"?window.location.href=ct("StaffPortal"):d!==null&&alert("Incorrect password")},className:"text-stone-600 hover:text-stone-400 text-xs mt-2 inline-block cursor-pointer",children:"Staff Portal"})]})]})]})})]})}const wV={AdminAssessments:KO,AestheticServices:t6,Assessment:lI,Book:M9,BookAppointment:F9,Home:z9,Insiders:U9,Membership:W9,PatientPortal:H9,PrimaryCareServices:G9,Shop:Q9,StaffPortal:pV,WellnessServices:yV},d2={mainPage:"Home",Pages:wV,Layout:xV};function bV(){const e=Vo(),{isAuthenticated:t}=fS(),{Pages:n,mainPage:s}=d2,i=s;return k.useEffect(()=>{const l=e.pathname;let c;if(l==="/"||l==="")c=i;else{const d=l.replace(/^\//,"").split("/")[0];c=Object.keys(n).find(p=>p.toLowerCase()===d.toLowerCase())||null}t&&c&&bt.appLogs.logUserInApp(c).catch(()=>{})},[e,t,n,i]),null}function kV({}){var i;const t=Vo().pathname.substring(1),{data:n,isFetched:s}=Hu({queryKey:["user"],queryFn:async()=>{try{return{user:await bt.auth.me(),isAuthenticated:!0}}catch{return{user:null,isAuthenticated:!1}}}});return a.jsx("div",{className:"min-h-screen flex items-center justify-center p-6 bg-slate-50",children:a.jsx("div",{className:"max-w-md w-full",children:a.jsxs("div",{className:"text-center space-y-6",children:[a.jsxs("div",{className:"space-y-2",children:[a.jsx("h1",{className:"text-7xl font-light text-slate-300",children:"404"}),a.jsx("div",{className:"h-0.5 w-16 bg-slate-200 mx-auto"})]}),a.jsxs("div",{className:"space-y-3",children:[a.jsx("h2",{className:"text-2xl font-medium text-slate-800",children:"Page Not Found"}),a.jsxs("p",{className:"text-slate-600 leading-relaxed",children:["The page ",a.jsxs("span",{className:"font-medium text-slate-700",children:['"',t,'"']})," could not be found in this application."]})]}),s&&n.isAuthenticated&&((i=n.user)==null?void 0:i.role)==="admin"&&a.jsx("div",{className:"mt-8 p-4 bg-slate-100 rounded-lg border border-slate-200",children:a.jsxs("div",{className:"flex items-start space-x-3",children:[a.jsx("div",{className:"flex-shrink-0 w-5 h-5 rounded-full bg-orange-100 flex items-center justify-center mt-0.5",children:a.jsx("div",{className:"w-2 h-2 rounded-full bg-orange-400"})}),a.jsxs("div",{className:"text-left space-y-1",children:[a.jsx("p",{className:"text-sm font-medium text-slate-700",children:"Admin Note"}),a.jsx("p",{className:"text-sm text-slate-600 leading-relaxed",children:"This could mean that the AI hasn't implemented this page yet. Ask it to implement it in the chat."})]})]})}),a.jsx("div",{className:"pt-6",children:a.jsxs("button",{onClick:()=>window.location.href="/",className:"inline-flex items-center px-4 py-2 text-sm font-medium text-slate-700 bg-white border border-slate-200 rounded-lg hover:bg-slate-50 hover:border-slate-300 transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-slate-500",children:[a.jsx("svg",{className:"w-4 h-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"})}),"Go Home"]})})]})})})}const SV=()=>a.jsx("div",{className:"flex flex-col items-center justify-center min-h-screen bg-gradient-to-b from-white to-slate-50",children:a.jsx("div",{className:"max-w-md w-full p-8 bg-white rounded-lg shadow-lg border border-slate-100",children:a.jsxs("div",{className:"text-center",children:[a.jsx("div",{className:"inline-flex items-center justify-center w-16 h-16 mb-6 rounded-full bg-orange-100",children:a.jsx("svg",{className:"w-8 h-8 text-orange-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})})}),a.jsx("h1",{className:"text-3xl font-bold text-slate-900 mb-4",children:"Access Restricted"}),a.jsx("p",{className:"text-slate-600 mb-8",children:"You are not registered to use this application. Please contact the app administrator to request access."}),a.jsxs("div",{className:"p-4 bg-slate-50 rounded-md text-sm text-slate-600",children:[a.jsx("p",{children:"If you believe this is an error, you can:"}),a.jsxs("ul",{className:"list-disc list-inside mt-2 space-y-1",children:[a.jsx("li",{children:"Verify you are logged in with the correct account"}),a.jsx("li",{children:"Contact the app administrator for access"}),a.jsx("li",{children:"Try logging out and back in again"})]})]})]})})}),NV="https://us.fullscript.com/welcome/lush-health/store-start",jV="https://lush.myaestheticrecord.com/online-booking/v2/book-appointment",CV=Object.keys(Vj),AV=Object.keys(zj);function PV({label:e,selected:t,onClick:n}){return a.jsxs(Z.button,{whileTap:{scale:.97},onClick:n,className:`w-full text-left px-4 py-3 rounded-xl border-2 transition-all duration-200 flex items-center justify-between text-sm ${t?"border-[#D4AF37] bg-[#D4AF37]/10 text-stone-900 font-medium":"border-stone-200 bg-white text-stone-700 hover:border-[#D4AF37]/40"}`,children:[a.jsx("span",{children:e}),t&&a.jsx(Us,{className:"w-4 h-4 text-[#D4AF37] flex-shrink-0"})]})}function EV({suppKey:e,index:t,onLearnMore:n}){const s=Wg[e];return s?a.jsxs(Z.button,{initial:{opacity:0,y:16}
491,animate:{opacity:1,y:0},transition:{delay:t*.07},whileHover:{y:-4},onClick:()=>n(s),className:"bg-white rounded-2xl border border-stone-200 overflow-hidden hover:shadow-xl hover:border-[#D4AF37]/50 transition-all duration-300 text-left w-full group",children:[a.jsxs("div",{className:"h-48 overflow-hidden bg-stone-100 relative",children:[a.jsx("img",{src:s.image,alt:s.name,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500",onError:i=>{i.target.src="https://images.unsplash.com/photo-1506126613408-eca07ce68773?w=600&q=80"}}),a.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/30 to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-300"}),a.jsx("div",{className:"absolute bottom-3 right-3 opacity-0 group-hover:opacity-100 transition-opacity duration-300",children:a.jsxs("div",{className:"bg-white/90 rounded-full px-3 py-1 text-xs font-medium text-stone-800 flex items-center gap-1",children:["Learn more ",a.jsx(us,{className:"w-3 h-3"})]})})]}),a.jsxs("div",{className:"p-4",children:[a.jsx(pt,{className:"bg-[#D4AF37]/10 text-[#D4AF37] border-0 text-xs mb-2",children:s.category}),a.jsx("h3",{className:"font-semibold text-stone-900 mb-0.5 group-hover:text-[#D4AF37] transition-colors",children:s.name}),a.jsx("p",{className:"text-xs text-stone-500 mb-2",children:s.brand}),a.jsx("p",{className:"text-sm text-stone-600 italic mb-3 leading-snug",children:s.tagline}),a.jsx("ul",{className:"space-y-1 mb-3",children:s.benefits.slice(0,2).map((i,l)=>a.jsxs("li",{className:"flex items-start gap-2 text-xs text-stone-600",children:[a.jsx(Us,{className:"w-3.5 h-3.5 text-[#D4AF37] flex-shrink-0 mt-0.5"}),i]},l))}),a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsx("p",{className:"text-xs text-stone-400",children:s.dosing}),a.jsxs("span",{className:"text-xs text-[#D4AF37] font-medium flex items-center gap-0.5 group-hover:gap-1.5 transition-all",children:["Details ",a.jsx(us,{className:"w-3 h-3"})]})]})]})]}):null}function TV(){const[e,t]=k.useState("mode"),[n,s]=k.useState(null),[i,l]=k.useState([]),[c,d]=k.useState([]),[f,m]=k.useState(null),p=n==="symptoms"?CV:AV,g=n==="symptoms"?Vj:zj,x=b=>{l(w=>w.includes(b)?w.filter(S=>S!==b):[...w,b])},N=()=>{const b={};i.forEach(S=>{(g[S]||[]).forEach(j=>{b[j]=(b[j]||0)+1})});const w=Object.entries(b).sort((S,j)=>j[1]-S[1]).slice(0,8).map(([S])=>S);d(w),t("results")};return a.jsxs("div",{className:"min-h-screen bg-stone-50 py-12 px-6",children:[a.jsxs("div",{className:"max-w-4xl mx-auto",children:[a.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center mb-8",children:[a.jsxs("div",{className:"inline-flex items-center gap-2 bg-[#D4AF37]/10 text-[#D4AF37] rounded-full px-4 py-1.5 text-sm font-medium mb-4",children:[a.jsx(Me,{className:"w-4 h-4"}),"Supplement Assessment"]}),a.jsx("h1",{className:"text-3xl md:text-4xl font-light text-stone-900 mb-3",children:"Find Your Perfect Supplements"}),a.jsx("p",{className:"text-stone-600 max-w-xl mx-auto",children:"Tell us what you're experiencing or what you'd like to achieve — we'll match you with the right professional-grade supplements from our Lush Health collection."})]}),a.jsxs(Hn,{mode:"wait",children:[e==="mode"&&a.jsx(Z.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},exit:{opacity:0,x:-20},className:"max-w-2xl mx-auto",children:a.jsxs("div",{className:"bg-white rounded-3xl shadow-xl shadow-stone-200/50 p-8",children:[a.jsx("h2",{className:"text-xl font-medium text-stone-900 mb-2 text-center",children:"How would you like to start?"}),a.jsx("p",{className:"text-stone-500 text-center text-sm mb-8",children:"Choose the approach that best fits your needs"}),a.jsxs("div",{className:"space-y-4",children:[a.jsx("button",{onClick:()=>{s("symptoms"),t("select")},className:"w-full text-left p-6 rounded-2xl border-2 border-stone-200 bg-white hover:border-[#D4AF37] hover:bg-[#D4AF37]/5 transition-all duration-300 group",children:a.jsxs("div",{className:"flex items-start gap-4",children:[a.jsx("div",{className:"w-12 h-12 rounded-xl bg-red-50 flex items-center justify-center flex-shrink-0 group-hover:bg-[#D4AF37]/10 transition-colors",children:a.jsx(Ut,{className:"w-6 h-6 text-red-400 group-hover:text-[#D4AF37] transition-colors"})}),a.jsxs("div",{children:[a.jsx("p",{className:"font-semibold text-stone-900 mb
491-1",children:"Address My Symptoms"}),a.jsx("p",{className:"text-sm text-stone-500",children:"Tell us what you're experiencing — fatigue, poor sleep, joint pain, hormone issues, digestive problems, and more — and we'll find supplements that target your specific concerns."}),a.jsxs("div",{className:"flex items-center gap-1 text-xs font-medium text-[#D4AF37] mt-3",children:["Get started ",a.jsx(rn,{className:"w-3 h-3"})]})]})]})}),a.jsx("button",{onClick:()=>{s("goals"),t("select")},className:"w-full text-left p-6 rounded-2xl border-2 border-stone-200 bg-white hover:border-[#D4AF37] hover:bg-[#D4AF37]/5 transition-all duration-300 group",children:a.jsxs("div",{className:"flex items-start gap-4",children:[a.jsx("div",{className:"w-12 h-12 rounded-xl bg-blue-50 flex items-center justify-center flex-shrink-0 group-hover:bg-[#D4AF37]/10 transition-colors",children:a.jsx(AE,{className:"w-6 h-6 text-blue-400 group-hover:text-[#D4AF37] transition-colors"})}),a.jsxs("div",{children:[a.jsx("p",{className:"font-semibold text-stone-900 mb-1",children:"Achieve My Goals"}),a.jsx("p",{className:"text-sm text-stone-500",children:"Tell us what you'd like to optimize — better sleep, more energy, weight management, heart health, longevity, and more — and we'll match you with goal-oriented protocols."}),a.jsxs("div",{className:"flex items-center gap-1 text-xs font-medium text-[#D4AF37] mt-3",children:["Get started ",a.jsx(rn,{className:"w-3 h-3"})]})]})]})})]})]})},"mode"),e==="select"&&a.jsx(Z.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},exit:{opacity:0,x:-20},children:a.jsxs("div",{className:"bg-white rounded-3xl shadow-xl shadow-stone-200/50 p-8",children:[a.jsx("h2",{className:"text-xl font-medium text-stone-900 mb-1",children:n==="symptoms"?"What symptoms are you experiencing?":"What are your wellness goals?"}),a.jsx("p",{className:"text-stone-500 text-sm mb-6",children:"Select all that apply — we'll tailor your recommendations"}),a.jsx("div",{className:"grid sm:grid-cols-2 gap-3 mb-8",children:p.map(b=>a.jsx(PV,{label:b,selected:i.includes(b),onClick:()=>x(b)},b))}),a.jsxs("div",{className:"flex gap-3 flex-wrap",children:[a.jsxs(ae,{variant:"outline",onClick:()=>{t("mode"),l([])},className:"rounded-xl",children:[a.jsx(zu,{className:"w-4 h-4 mr-2"}),"Back"]}),a.jsxs(ae,{onClick:N,disabled:i.length===0,className:"flex-1 bg-[#D4AF37] hover:bg-[#C19B2E] text-white rounded-xl py-5",children:["See My Recommendations (",i.length," selected)",a.jsx(rn,{className:"w-4 h-4 ml-2"})]})]})]})},"select"),e==="results"&&a.jsxs(Z.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},exit:{opacity:0,x:-20},children:[a.jsx("div",{className:"bg-gradient-to-r from-stone-900 to-stone-800 rounded-3xl p-8 mb-8 text-white",children:a.jsxs("div",{className:"flex items-start gap-4",children:[a.jsx("div",{className:"w-12 h-12 rounded-xl bg-[#D4AF37] flex items-center justify-center flex-shrink-0",children:a.jsx(Me,{className:"w-6 h-6 text-white"})}),a.jsxs("div",{children:[a.jsx("h2",{className:"text-2xl font-light mb-2",children:"Your Personalized Protocol"}),a.jsxs("p",{className:"text-stone-300 text-sm",children:["Based on your ",n==="symptoms"?"symptoms":"goals"," — ",a.jsx("span",{className:"text-[#D4AF37]",children:i.join(", ")})]}),a.jsx("p",{className:"text-stone-400 text-xs mt-2",children:"These are evidence-based recommendations from our Lush Health supplement guide. For personalized dosing and lab-guided protocols, book a consultation with one of our providers."})]})]})}),a.jsx("div",{className:"grid sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-
4915 mb-8",children:c.map((b,w)=>a.jsx(EV,{suppKey:b,index:w,onLearnMore:m},b))}),a.jsxs("div",{className:"bg-white rounded-3xl shadow-xl shadow-stone-200/50 p-8",children:[a.jsx("h3",{className:"text-xl font-medium text-stone-900 mb-2 text-center",children:"Ready to get started?"}),a.jsx("p",{className:"text-stone-600 text-sm text-center mb-8 max-w-xl mx-auto",children:"Shop all recommended supplements directly through our Fullscript store — professional-grade, delivered to your door. Or book a consultation for a fully personalized, lab-guided protocol."}),a.jsxs("div",{className:"grid sm:grid-cols-2 gap-4 mb-6",children:[a.jsx("a",{href:NV,target:"_blank",rel:"noopener noreferrer",children:a.jsxs("div",{className:"w-full p-5 rounded-2xl bg-[#D4AF37] hover:bg-[#C19B2E] transition-colors text-white cursor-pointer text-center",children:[a.jsx(Eo,{className:"w-6 h-6 mx-auto mb-2"}),a.jsx("p",{className:"font-semibold mb-1",children:"Shop on Fullscript"}),a.jsx("p",{className:"text-xs opacity-80",children:"Professional supplements delivered to you"}),a.jsxs("div",{className:"flex items-center justify-center gap-1 text-xs mt-2 opacity-70",children:[a.jsx(qe,{className:"w-3 h-3"})," Open store"]})]})}),a.jsx("a",{href:jV,target:"_blank",rel:"noopener noreferrer",children:a.jsxs("div",{className:"w-full p-5 rounded-2xl bg-stone-900 hover:bg-stone-800 transition-colors text-white cursor-pointer text-center",children:[a.jsx(un,{className:"w-6 h-6 mx-auto mb-2"}),a.jsx("p",{className:"font-semibold mb-1",children:"Book a Consultation"}),a.jsx("p",{className:"text-xs opacity-80",children:"Get a personalized, lab-guided protocol"}),a.jsxs("div",{className:"flex items-center justify-center gap-1 text-xs mt-2 opacity-70",children:[a.jsx(qe,{className:"w-3 h-3"})," Schedule now"]})]})})]}),a.jsxs("div",{className:"flex gap-3 flex-wrap",children:[a.jsxs(ae,{variant:"outline",onClick:()=>{t("select"),d([])},className:"rounded-xl text-sm",children:[a.jsx(zu,{className:"w-4 h-4 mr-2"}),"Adjust Selections"]}),a.jsx(ae,{variant:"outline",onClick:()=>{t("mode"),l([]),d([]),s(null)},className:"rounded-xl text-sm",children:"Start Over"})]}),a.jsx("p",{className:"text-xs text-stone-400 mt-6 text-center",children:"These recommendations are for educational purposes only and do not replace individualized medical care. Consult your healthcare provider before beginning any supplement regimen."})]})]},"results")]})]}),f&&a.jsx(Uj,{supp:f,onClose:()=>m(null)})]})}const{Pages:h2,Layout:S1,mainPage:RV}=d2,f2=RV,_V=h2[f2],Cm=({children:e,currentPageName:t})=>S1?a.jsx(S1,{currentPageName:t,children:e}):a.jsx(a.Fragment,{children:e}),DV=()=>{const{isLoadingAuth:e,isLoadingPublicSettings:t,authError:n,navigateToLogin:s}=fS();if(t||e)return a.jsx("div",{className:"fixed inset-0 flex items-center justify-center",children:a.jsx("div",{className:"w-8 h-8 border-4 border-slate-200 border-t-slate-800 rounded-full animate-spin"})});if(n){if(n.type==="user_not_registered")return a.jsx(SV,{});if(n.type==="auth_required")return s(),null}return a.jsxs(KT,{children:[a.jsx($a,{path:"/",element:a.jsx(Cm,{currentPageName:f2,children:a.jsx(_V,{})})}),Object.entries(h2).map(([i,l])=>a.jsx($a,{path:`/${i}`,element:a.jsx(Cm,{currentPageName:i,children:a.jsx(l,{})})},i)),a.jsx($a,{path:"/SupplementAssessment",element:a.jsx(Cm,{currentPageName:"SupplementAssessment",children:a.jsx(TV,{})})}),a.jsx($a,{path:"*",element:a.jsx(kV,{})})]})};function MV(){return a.jsx(fD,{children:a.jsxs(W4,{client:nT,children:[a.jsxs(nR,{children:[a.jsx(bV,{}),a.jsx(DV,{})]}),a.jsx(v4,{})]})})}xP.createRoot(document.getElementById("root")).render(a.jsx(MV,{}));

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.