PageSourceSearch

https://ptau.betterbrain.com/assets/index-BkP81vK7.js

js betterbrain.com collected 2026-09-28 08:34:37 UTC 594,805 bytes, 242 lines download raw bytes

vendor: 4,302 bytes, lines 1-9
1var Hw=Object.defineProperty;var fh=e=>{throw TypeError(e)};var Uw=(e,t,n)=>t in e?Hw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var xn=(e,t,n)=>Uw(e,typeof t!="symbol"?t+"":t,n),uc=(e,t,n)=>t.has(e)||fh("Cannot "+n);var R=(e,t,n)=>(uc(e,t,"read from private field"),n?n.call(e):t.get(e)),ie=(e,t,n)=>t.has(e)?fh("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),X=(e,t,n,r)=>(uc(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Ge=(e,t,n)=>(uc(e,t,"access private method"),n);var Mi=(e,t,n,r)=>({set _(s){X(e,t,s,n)},get _(){return R(e,t,r)}});function Ww(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const s in r)if(s!=="default"&&!(s in e)){const i=Object.getOwnPropertyDescriptor(r,s);i&&Object.defineProperty(e,s,i.get?i:{enumerable:!0,get:()=>r[s]})}}}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 s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();function mi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Lm={exports:{}},gl={},Im={exports:{}},Z={};/**
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 gi=Symbol.for("react.element"),Vw=Symbol.for("react.portal"),Gw=Symbol.for("react.fragment"),Yw=Symbol.for("react.strict_mode"),qw=Symbol.for("react.profiler"),Qw=Symbol.for("react.provider"),Kw=Symbol.for("react.context"),Xw=Symbol.for("react.forward_ref"),Jw=Symbol.for("react.suspense"),Zw=Symbol.for("react.memo"),eb=Symbol.for("react.lazy"),hh=Symbol.iterator;function tb(e){return e===null||typeof e!="object"?null:(e=hh&&e[hh]||e["@@iterator"],typeof e=="function"?e:null)}var Dm={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},zm=Object.assign,Fm={};function Vs(e,t,n){this.props=e,this.context=t,this.refs=Fm,this.updater=n||Dm}Vs.prototype.isReactComponent={};Vs.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Vs.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function $m(){}$m.prototype=Vs.prototype;function Nd(e,t,n){this.props=e,this.context=t,this.refs=Fm,this.updater=n||Dm}var Sd=Nd.prototype=new $m;Sd.constructor=Nd;zm(Sd,Vs.prototype);Sd.isPureReactComponent=!0;var ph=Array.isArray,Hm=Object.prototype.hasOwnProperty,Cd={current:null},Um={key:!0,ref:!0,__self:!0,__source:!0};function Wm(e,t,n){var r,s={},i=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)Hm.call(t,r)&&!Um.hasOwnProperty(r)&&(s[r]=t[r]);var l=arguments.length-2;if(l===1)s.children=n;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];s.children=c}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)s[r]===void 0&&(s[r]=l[r]);return{$$typeof:gi,type:e,key:i,ref:a,props:s,_owner:Cd.current}}function nb(e,t){return{$$typeof:gi,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Ed(e){return typeof e=="object"&&e!==null&&e.$$typeof===gi}function rb(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var mh=/\/+/g;function dc(e,t){return typeof e=="object"&&e!==null&&e.key!=null?rb(""+e.key):t.toString(36)}
vendor: 4,749 bytes, lines 9-17
9function ha(e,t,n,r,s){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case gi:case Vw:a=!0}}if(a)return a=e,s=s(a),e=r===""?"."+dc(a,0):r,ph(s)?(n="",e!=null&&(n=e.replace(mh,"$&/")+"/"),ha(s,t,n,"",function(u){return u})):s!=null&&(Ed(s)&&(s=nb(s,n+(!s.key||a&&a.key===s.key?"":(""+s.key).replace(mh,"$&/")+"/")+e)),t.push(s)),1;if(a=0,r=r===""?".":r+":",ph(e))for(var l=0;l<e.length;l++){i=e[l];var c=r+dc(i,l);a+=ha(i,t,n,c,s)}else if(c=tb(e),typeof c=="function")for(e=c.call(e),l=0;!(i=e.next()).done;)i=i.value,c=r+dc(i,l++),a+=ha(i,t,n,c,s);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function Li(e,t,n){if(e==null)return e;var r=[],s=0;return ha(e,r,"","",function(i){return t.call(n,i,s++)}),r}function sb(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var ot={current:null},pa={transition:null},ob={ReactCurrentDispatcher:ot,ReactCurrentBatchConfig:pa,ReactCurrentOwner:Cd};function Vm(){throw Error("act(...) is not supported in production builds of React.")}Z.Children={map:Li,forEach:function(e,t,n){Li(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Li(e,function(){t++}),t},toArray:function(e){return Li(e,function(t){return t})||[]},only:function(e){if(!Ed(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Z.Component=Vs;Z.Fragment=Gw;Z.Profiler=qw;Z.PureComponent=Nd;Z.StrictMode=Yw;Z.Suspense=Jw;Z.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ob;Z.act=Vm;Z.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=zm({},e.props),s=e.key,i=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,a=Cd.current),t.key!==void 0&&(s=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)Hm.call(t,c)&&!Um.hasOwnProperty(c)&&(r[c]=t[c]===void 0&&l!==void 0?l[c]:t[c])}var c=arguments.length-2;if(c===1)r.children=n;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:gi,type:e.type,key:s,ref:i,props:r,_owner:a}};Z.createContext=function(e){return e={$$typeof:Kw,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Qw,_context:e},e.Consumer=e};Z.createElement=Wm;Z.createFactory=function(e){var t=Wm.bind(null,e);return t.type=e,t};Z.createRef=function(){return{current:null}};Z.forwardRef=function(e){return{$$typeof:Xw,render:e}};Z.isValidElement=Ed;Z.lazy=function(e){return{$$typeof:eb,_payload:{_status:-1,_result:e},_init:sb}};Z.memo=function(e,t){return{$$typeof:Zw,type:e,compare:t===void 0?null:t}};Z.startTransition=function(e){var t=pa.transition;pa.transition={};try{e()}finally{pa.transition=t}};Z.unstable_act=Vm;Z.useCallback=function(e,t){return ot.current.useCallback(e,t)};Z.useContext=function(e){return ot.current.useContext(e)};Z.useDebugValue=function(){};Z.useDeferredValue=function(e){return ot.current.useDeferredValue(e)};Z.useEffect=function(e,t){return ot.current.useEffect(e,t)};Z.useId=function(){return ot.current.useId()};Z.useImperativeHandle=function(e,t,n){return ot.current.useImperativeHandle(e,t,n)};Z.useInsertionEffect=function(e,t){return ot.current.useInsertionEffect(e,t)};Z.useLayoutEffect=function(e,t){return ot.current.useLayoutEffect(e,t)};Z.useMemo=function(e,t){return ot.current.useMemo(e,t)};Z.useReducer=function(e,t,n){return ot.current.useReducer(e,t,n)};Z.useRef=function(e){return ot.current.useRef(e)};Z.useState=function(e){return ot.current.useState(e)};Z.useSyncExternalStore=function(e,t,n){return ot.current.useSyncExternalStore(e,t,n)};Z.useTransition=function(){return ot.current.useTransition()};Z.version="18.3.1";Im.exports=Z;var p=Im.exports;const P=mi(p),Gm=Ww({__proto__:null,default:P},[p]);/**
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 ib=p,ab=Symbol.for("react.element"),lb=Symbol.for("react.fragment"),cb=Object.prototype.hasOwnProperty,ub=ib.__SECRET_INT
vendor: 11,413 bytes, lines 17-34
17ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,db={key:!0,ref:!0,__self:!0,__source:!0};function Ym(e,t,n){var r,s={},i=null,a=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)cb.call(t,r)&&!db.hasOwnProperty(r)&&(s[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)s[r]===void 0&&(s[r]=t[r]);return{$$typeof:ab,type:e,key:i,ref:a,props:s,_owner:ub.current}}gl.Fragment=lb;gl.jsx=Ym;gl.jsxs=Ym;Lm.exports=gl;var o=Lm.exports,qm={exports:{}},Ct={},Qm={exports:{}},Km={};/**
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 */(function(e){function t(T,_){var z=T.length;T.push(_);e:for(;0<z;){var L=z-1>>>1,H=T[L];if(0<s(H,_))T[L]=_,T[z]=H,z=L;else break e}}function n(T){return T.length===0?null:T[0]}function r(T){if(T.length===0)return null;var _=T[0],z=T.pop();if(z!==_){T[0]=z;e:for(var L=0,H=T.length,Q=H>>>1;L<Q;){var se=2*(L+1)-1,Me=T[se],ne=se+1,ge=T[ne];if(0>s(Me,z))ne<H&&0>s(ge,Me)?(T[L]=ge,T[ne]=z,L=ne):(T[L]=Me,T[se]=z,L=se);else if(ne<H&&0>s(ge,z))T[L]=ge,T[ne]=z,L=ne;else break e}}return _}function s(T,_){var z=T.sortIndex-_.sortIndex;return z!==0?z:T.id-_.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var c=[],u=[],f=1,h=null,d=3,v=!1,y=!1,x=!1,b=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(T){for(var _=n(u);_!==null;){if(_.callback===null)r(u);else if(_.startTime<=T)r(u),_.sortIndex=_.expirationTime,t(c,_);else break;_=n(u)}}function j(T){if(x=!1,w(T),!y)if(n(c)!==null)y=!0,U(N);else{var _=n(u);_!==null&&G(j,_.startTime-T)}}function N(T,_){y=!1,x&&(x=!1,m(E),E=-1),v=!0;var z=d;try{for(w(_),h=n(c);h!==null&&(!(h.expirationTime>_)||T&&!B());){var L=h.callback;if(typeof L=="function"){h.callback=null,d=h.priorityLevel;var H=L(h.expirationTime<=_);_=e.unstable_now(),typeof H=="function"?h.callback=H:h===n(c)&&r(c),w(_)}else r(c);h=n(c)}if(h!==null)var Q=!0;else{var se=n(u);se!==null&&G(j,se.startTime-_),Q=!1}return Q}finally{h=null,d=z,v=!1}}var C=!1,S=null,E=-1,k=5,A=-1;function B(){return!(e.unstable_now()-A<k)}function I(){if(S!==null){var T=e.unstable_now();A=T;var _=!0;try{_=S(!0,T)}finally{_?W():(C=!1,S=null)}}else C=!1}var W;if(typeof g=="function")W=function(){g(I)};else if(typeof MessageChannel<"u"){var M=new MessageChannel,V=M.port2;M.port1.onmessage=I,W=function(){V.postMessage(null)}}else W=function(){b(I,0)};function U(T){S=T,C||(C=!0,W())}function G(T,_){E=b(function(){T(e.unstable_now())},_)}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(T){T.callback=null},e.unstable_continueExecution=function(){y||v||(y=!0,U(N))},e.unstable_forceFrameRate=function(T){0>T||125<T?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):k=0<T?Math.floor(1e3/T):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(T){switch(d){case 1:case 2:case 3:var _=3;break;default:_=d}var z=d;d=_;try{return T()}finally{d=z}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(T,_){switch(T){case 1:case 2:case 3:case 4:case 5:break;default:T=3}var z=d;d=T;try{return _()}finally{d=z}},e.unstable_scheduleCallback=function(T,_,z){var L=e.unstable_now();switch(typeof z=="object"&&z!==null?(z=z.delay,z=typeof z=="number"&&0<z?L+z:L):z=L,T){case 1:var H=-1;break;case 2:H=250;break;case 5:H=1073741823;break;case 4:H=1e4;break;default:H=5e3}return H=z+H,T={id:f++,callback:_,priorityLevel:T,startTime:z,expirationTime:H,sortIndex:-1},z>L?(T.sortIndex=z,t(u,T),n(c)===null&&T===n(u)&&(x?(m(E),E=-1):x=!0,G(j,z-L))):(T.sortIndex=H,t(c,T),y||v||(y=!0,U(N))),T},e.unstable_shouldYield=B,e.unstable_wrapCallback=function(T){var _=d;return function(){var z=d;d=_;try{return T.apply(this,arguments)}finally{d=z}}}})(Km);Qm.exports=Km;var fb=Qm.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 hb=p,St=fb;function O(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Xm=new Set,Do={};function $r(e,t){_s(e,t),_s(e+"Capture",t)}function _s(e,t){for(Do[e]=t,e=0;e<t.length;e++)Xm.add(t[e])}var kn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ou=Object.prototype.hasOwnProperty,pb=/^[: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]*$/,gh={},xh={};function mb(e){return ou.call(xh,e)?!0:ou.call(gh,e)?!1:pb.test(e)?xh[e]=!0:(gh[e]=!0,!1)}function gb(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function xb(e,t,n,r){if(t===null||typeof t>"u"||gb(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function it(e,t,n,r,s,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var We={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){We[e]=new it(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];We[t]=new it(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){We[e]=new it(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){We[e]=new it(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){We[e]=new it(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){We[e]=new it(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){We[e]=new it(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){We[e]=new it(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){We[e]=new it(e,5,!1,e.toLowerCase(),null,!1,!1)});var Td=/[\-:]([a-z])/g;function kd(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Td,kd);We[t]=new it(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Td,kd);We[t]=new it(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Td,kd);We[t]=new it(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){We[e]=new it(e,1,!1,e.toLowerCase(),null,!1,!1)});We.xlinkHref=new it("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){We[e]=new it(e,1,!1,e.toLowerCase(),null,!0,!0)});function Pd(e,t,n,r){var s=We.hasOwnProperty(t)?We[t]:null;(s!==null?s.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(xb(t,n,s,r)&&(n=null),r||s===null?mb(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):s.mustUseProperty?e[s.propertyName]=n===null?s.type===3?!1:"":n:(t=s.attributeName,r=s.attributeNamespace,n===null?e.removeAttribute(t):(s=s.type,n=s===3||s===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Bn=hb.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ii=Symbol.for("react.element"),ts=Symbol.for("react.portal"),ns=Symbol.for("react.fragment"),Ad=Symbol.for("react.strict_mode"),iu=Symbol.for("react.profiler"),Jm=Symbol.for("react.provider"),Zm=Symbol.for("react.context"),Rd=Symbol.for("react.forward_ref"),au=Symbol.for("react.suspense"),lu=Symbol.for("react.suspense_list"),Od=Symbol.for("react.memo"),Hn=Symbol.for("react.lazy"),eg=Symbol.for("react.offscreen"),vh=Symbol.iterator;function ao(e){return e===null||typeof e!="object"?null:(e=vh&&e[vh]||e["@@iterator"],typeof e=="function"?e:null)}var Ee=Object.assign,fc;function bo(e){if(fc===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);fc=t&&t[1]||""}return`
34`+fc+e}var hc=!1;function pc(e,t){if(!e||hc)return"";hc=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}
vendor: 4,297 bytes, lines 34-37
34catch(u){if(u&&r&&typeof u.stack=="string"){for(var s=u.stack.split(`
35`),i=r.stack.split(`
36`),a=s.length-1,l=i.length-1;1<=a&&0<=l&&s[a]!==i[l];)l--;for(;1<=a&&0<=l;a--,l--)if(s[a]!==i[l]){if(a!==1||l!==1)do if(a--,l--,0>l||s[a]!==i[l]){var c=`
37`+s[a].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=a&&0<=l);break}}}finally{hc=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?bo(e):""}function vb(e){switch(e.tag){case 5:return bo(e.type);case 16:return bo("Lazy");case 13:return bo("Suspense");case 19:return bo("SuspenseList");case 0:case 2:case 15:return e=pc(e.type,!1),e;case 11:return e=pc(e.type.render,!1),e;case 1:return e=pc(e.type,!0),e;default:return""}}function cu(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ns:return"Fragment";case ts:return"Portal";case iu:return"Profiler";case Ad:return"StrictMode";case au:return"Suspense";case lu:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Zm:return(e.displayName||"Context")+".Consumer";case Jm:return(e._context.displayName||"Context")+".Provider";case Rd:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Od:return t=e.displayName||null,t!==null?t:cu(e.type)||"Memo";case Hn:t=e._payload,e=e._init;try{return cu(e(t))}catch{}}return null}function yb(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return cu(t);case 8:return t===Ad?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function cr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function tg(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function wb(e){var t=tg(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var s=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(a){r=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Di(e){e._valueTracker||(e._valueTracker=wb(e))}function ng(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=tg(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function _a(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function uu(e,t){var n=t.checked;return Ee({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function yh(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=cr(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function rg(e,t){t=t.checked,t!=null&&Pd(e,"checked",t,!1)}function du(e,t){rg(e,t);var n=cr(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?fu(e,t.type,n):t.hasOwnProperty("defaultValue")&&fu(e,t.type,cr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}
vendor: 4,180 bytes, line 37
37function wh(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function fu(e,t,n){(t!=="number"||_a(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var jo=Array.isArray;function hs(e,t,n,r){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t["$"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty("$"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&r&&(e[n].defaultSelected=!0)}else{for(n=""+cr(n),t=null,s=0;s<e.length;s++){if(e[s].value===n){e[s].selected=!0,r&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function hu(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(O(91));return Ee({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function bh(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(O(92));if(jo(n)){if(1<n.length)throw Error(O(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:cr(n)}}function sg(e,t){var n=cr(t.value),r=cr(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function jh(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function og(e){switch(e){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 pu(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?og(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var zi,ig=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,s){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,s)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(zi=zi||document.createElement("div"),zi.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=zi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function zo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Eo={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},bb=["Webkit","ms","Moz","O"];Object.keys(Eo).forEach(function(e){bb.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Eo[t]=Eo[e]})});function ag(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Eo.hasOwnProperty(e)&&Eo[e]?(""+t).trim():t+"px"}function lg(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,s=ag(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,s):e[n]=s}}var jb=Ee({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 mu(e,t){if(t){if(jb[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(O(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(O(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(O(61))}if(t.style!=null&&typeof t.style!="object")throw Error(O(62))}}function gu(e,t){if(e.indexOf("-")===-1)return typeof t.is=="str
37ing";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var xu=null;function _d(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var vu=null,ps=null,ms=null;function Nh(e){if(e=yi(e)){if(typeof vu!="function")throw Error(O(280));var t=e.stateNode;t&&(t=bl(t),vu(e.stateNode,e.type,t))}}function cg(e){ps?ms?ms.push(e):ms=[e]:ps=e}function ug(){if(ps){var e=ps,t=ms;if(ms=ps=null,Nh(e),t)for(e=0;e<t.length;e++)Nh(t[e])}}function dg(e,t){return e(t)}function fg(){}var mc=!1;function hg(e,t,n){if(mc)return e(t,n);mc=!0;try{return dg(e,t,n)}finally{mc=!1,(ps!==null||ms!==null)&&(fg(),ug())}}function Fo(e,t){var n=e.stateNode;if(n===null)return null;var r=bl(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(O(231,t,typeof n));return n}var yu=!1;if(kn)try{var lo={};Object.defineProperty(lo,"passive",{get:function(){yu=!0}}),window.addEventListener("test",lo,lo),window.removeEventListener("test",lo,lo)}catch{yu=!1}function Nb(e,t,n,r,s,i,a,l,c){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(f){this.onError(f)}}var To=!1,Ba=null,Ma=!1,wu=null,Sb={onError:function(e){To=!0,Ba=e}};function Cb(e,t,n,r,s,i,a,l,c){To=!1,Ba=null,Nb.apply(Sb,arguments)}function Eb(e,t,n,r,s,i,a,l,c){if(Cb.apply(this,arguments),To){if(To){var u=Ba;To=!1,Ba=null}else throw Error(O(198));Ma||(Ma=!0,wu=u)}}function Hr(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function pg(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Sh(e){if(Hr(e)!==e)throw Error(O(188))}function Tb(e){var t=e.alternate;if(!t){if(t=Hr(e),t===null)throw Error(O(188));return t!==e?null:e}for(var n=e,r=t;;){var s=n.return;if(s===null)break;var i=s.alternate;if(i===null){if(r=s.return,r!==null){n=r;continue}break}if(s.child===i.child){for(i=s.child;i;){if(i===n)return Sh(s),e;if(i===r)return Sh(s),t;i=i.sibling}throw Error(O(188))}if(n.return!==r.return)n=s,r=i;else{for(var a=!1,l=s.child;l;){if(l===n){a=!0,n=s,r=i;break}if(l===r){a=!0,r=s,n=i;break}l=l.sibling}if(!a){for(l=i.child;l;){if(l===n){a=!0,n=i,r=s;break}if(l===r){a=!0,r=i,n=s;break}l=l.sibling}if(!a)throw Error(O(189))}}if(n.alternate!==r)throw Error(O(190))}if(n.tag!==3)throw Error(O(188));return n.stateNode.current===n?e:t}function mg(e){return e=Tb(e),e!==null?gg(e):null}function gg(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=gg(e);if(t!==null)return t;e=e.sibling}return null}var xg=St.unstable_scheduleCallback,Ch=St.unstable_cancelCallback,kb=St.unstable_shouldYield,Pb=St.unstable_requestPaint,Re=St.unstable_now,Ab=St.unstable_getCurrentPriorityLevel,Bd=St.unstable_ImmediatePriority,vg=St.unstable_UserBlockingPriority,La=St.unstable_NormalPriority,Rb=St.unstable_LowPriority,yg=St.unstable_IdlePriority,xl=null,un=null;function Ob(e){if(un&&typeof un.onCommitFiberRoot=="function")try{un.onCommitFiberRoot(xl,e,void 0,(e.current.flags&128)===128)}catch{}}var Yt=Math.clz32?Math.clz32:Mb,_b=Math.log,Bb=Math.LN2;function Mb(e){return e>>>=0,e===0?32:31-(_b(e)/Bb|0)|0}var Fi=64,$i=4194304;function No(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ia(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,s=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(a!==0){var l=a&~s;l!==0?r=No(l):(i&=a,i!==0&&(r=No(i)))}else a=n&~s,a!==0?r=No(a):i!==0&&(r=No(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&s)&&(s=r&-r,i=t&-t,s>=i||s===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Yt(t),s=1<<n,r|=e[n],t&=~s;return r}
vendor: 3,871 bytes, line 37
37function Lb(e,t){switch(e){case 1:case 2:case 4:return t+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 t+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 Ib(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,s=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-Yt(i),l=1<<a,c=s[a];c===-1?(!(l&n)||l&r)&&(s[a]=Lb(l,t)):c<=t&&(e.expiredLanes|=l),i&=~l}}function bu(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function wg(){var e=Fi;return Fi<<=1,!(Fi&4194240)&&(Fi=64),e}function gc(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function xi(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Yt(t),e[t]=n}function Db(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var s=31-Yt(n),i=1<<s;t[s]=0,r[s]=-1,e[s]=-1,n&=~i}}function Md(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Yt(n),s=1<<r;s&t|e[r]&t&&(e[r]|=t),n&=~s}}var ce=0;function bg(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var jg,Ld,Ng,Sg,Cg,ju=!1,Hi=[],er=null,tr=null,nr=null,$o=new Map,Ho=new Map,Wn=[],zb="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 Eh(e,t){switch(e){case"focusin":case"focusout":er=null;break;case"dragenter":case"dragleave":tr=null;break;case"mouseover":case"mouseout":nr=null;break;case"pointerover":case"pointerout":$o.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ho.delete(t.pointerId)}}function co(e,t,n,r,s,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[s]},t!==null&&(t=yi(t),t!==null&&Ld(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function Fb(e,t,n,r,s){switch(t){case"focusin":return er=co(er,e,t,n,r,s),!0;case"dragenter":return tr=co(tr,e,t,n,r,s),!0;case"mouseover":return nr=co(nr,e,t,n,r,s),!0;case"pointerover":var i=s.pointerId;return $o.set(i,co($o.get(i)||null,e,t,n,r,s)),!0;case"gotpointercapture":return i=s.pointerId,Ho.set(i,co(Ho.get(i)||null,e,t,n,r,s)),!0}return!1}function Eg(e){var t=Nr(e.target);if(t!==null){var n=Hr(t);if(n!==null){if(t=n.tag,t===13){if(t=pg(n),t!==null){e.blockedOn=t,Cg(e.priority,function(){Ng(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ma(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Nu(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);xu=r,n.target.dispatchEvent(r),xu=null}else return t=yi(n),t!==null&&Ld(t),e.blockedOn=n,!1;t.shift()}return!0}function Th(e,t,n){ma(e)&&n.delete(t)}function $b(){ju=!1,er!==null&&ma(er)&&(er=null),tr!==null&&ma(tr)&&(tr=null),nr!==null&&ma(nr)&&(nr=null),$o.forEach(Th),Ho.forEach(Th)}function uo(e,t){e.blockedOn===t&&(e.blockedOn=null,ju||(ju=!0,St.unstable_scheduleCallback(St.unstable_NormalPriority,$b)))}function Uo(e){function t(s){return uo(s,e)}if(0<Hi.length){uo(Hi[0],e);for(var n=1;n<Hi.length;n++){var r=Hi[n];r.blockedOn===e&&(r.blockedOn=null)}}for(er!==null&&uo(er,e),tr!==null&&uo(tr,e),nr!==null&&uo(nr,e),$o.forEach(t),Ho.forEac
vendor: 11,458 bytes, line 37
37h(t),n=0;n<Wn.length;n++)r=Wn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Wn.length&&(n=Wn[0],n.blockedOn===null);)Eg(n),n.blockedOn===null&&Wn.shift()}var gs=Bn.ReactCurrentBatchConfig,Da=!0;function Hb(e,t,n,r){var s=ce,i=gs.transition;gs.transition=null;try{ce=1,Id(e,t,n,r)}finally{ce=s,gs.transition=i}}function Ub(e,t,n,r){var s=ce,i=gs.transition;gs.transition=null;try{ce=4,Id(e,t,n,r)}finally{ce=s,gs.transition=i}}function Id(e,t,n,r){if(Da){var s=Nu(e,t,n,r);if(s===null)Ec(e,t,r,za,n),Eh(e,r);else if(Fb(s,e,t,n,r))r.stopPropagation();else if(Eh(e,r),t&4&&-1<zb.indexOf(e)){for(;s!==null;){var i=yi(s);if(i!==null&&jg(i),i=Nu(e,t,n,r),i===null&&Ec(e,t,r,za,n),i===s)break;s=i}s!==null&&r.stopPropagation()}else Ec(e,t,r,null,n)}}var za=null;function Nu(e,t,n,r){if(za=null,e=_d(r),e=Nr(e),e!==null)if(t=Hr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=pg(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return za=e,null}function Tg(e){switch(e){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(Ab()){case Bd:return 1;case vg:return 4;case La:case Rb:return 16;case yg:return 536870912;default:return 16}default:return 16}}var Xn=null,Dd=null,ga=null;function kg(){if(ga)return ga;var e,t=Dd,n=t.length,r,s="value"in Xn?Xn.value:Xn.textContent,i=s.length;for(e=0;e<n&&t[e]===s[e];e++);var a=n-e;for(r=1;r<=a&&t[n-r]===s[i-r];r++);return ga=s.slice(e,1<r?1-r:void 0)}function xa(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Ui(){return!0}function kh(){return!1}function Et(e){function t(n,r,s,i,a){this._reactName=n,this._targetInst=s,this.type=r,this.nativeEvent=i,this.target=a,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(i):i[l]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Ui:kh,this.isPropagationStopped=kh,this}return Ee(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Ui)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ui)},persist:function(){},isPersistent:Ui}),t}var Gs={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},zd=Et(Gs),vi=Ee({},Gs,{view:0,detail:0}),Wb=Et(vi),xc,vc,fo,vl=Ee({},vi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Fd,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==fo&&(fo&&e.type==="mousemove"?(xc=e.screenX-fo.screenX,vc=e.screenY-fo.screenY):vc=xc=0,fo=e),xc)},movementY:function(e){return"movementY"in e?e.movementY:vc}}),Ph=Et(vl),Vb=Ee({},vl,{dataTransfer:0}),Gb=Et(Vb),Yb=Ee({},vi,{relatedTarget:0}),yc=Et(Yb),qb=Ee({},Gs,{animationName:0,elapsedTime:0,pseudoElement:0}),Qb=Et(qb),Kb=Ee({},Gs,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Xb=Et(Kb),Jb=Ee({},Gs,{data:0}),Ah=Et(Jb),Zb={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},e1={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"},t1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function n1(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=t1[e])?!!t[e]:!1}function Fd(){return n1}var r1=Ee({},vi,{key:function(e){if(e.key){var t=Zb[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=xa(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?e1[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Fd,charCode:function(e){return e.type==="keypress"?xa(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?xa(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),s1=Et(r1),o1=Ee({},vl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Rh=Et(o1),i1=Ee({},vi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Fd}),a1=Et(i1),l1=Ee({},Gs,{propertyName:0,elapsedTime:0,pseudoElement:0}),c1=Et(l1),u1=Ee({},vl,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),d1=Et(u1),f1=[9,13,27,32],$d=kn&&"CompositionEvent"in window,ko=null;kn&&"documentMode"in document&&(ko=document.documentMode);var h1=kn&&"TextEvent"in window&&!ko,Pg=kn&&(!$d||ko&&8<ko&&11>=ko),Oh=" ",_h=!1;function Ag(e,t){switch(e){case"keyup":return f1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Rg(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var rs=!1;function p1(e,t){switch(e){case"compositionend":return Rg(t);case"keypress":return t.which!==32?null:(_h=!0,Oh);case"textInput":return e=t.data,e===Oh&&_h?null:e;default:return null}}function m1(e,t){if(rs)return e==="compositionend"||!$d&&Ag(e,t)?(e=kg(),ga=Dd=Xn=null,rs=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Pg&&t.locale!=="ko"?null:t.data;default:return null}}var g1={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 Bh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!g1[e.type]:t==="textarea"}function Og(e,t,n,r){cg(r),t=Fa(t,"onChange"),0<t.length&&(n=new zd("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Po=null,Wo=null;function x1(e){Ug(e,0)}function yl(e){var t=is(e);if(ng(t))return e}function v1(e,t){if(e==="change")return t}var _g=!1;if(kn){var wc;if(kn){var bc="oninput"in document;if(!bc){var Mh=document.createElement("div");Mh.setAttribute("oninput","return;"),bc=typeof Mh.oninput=="function"}wc=bc}else wc=!1;_g=wc&&(!document.documentMode||9<document.documentMode)}function Lh(){Po&&(Po.detachEvent("onpropertychange",Bg),Wo=Po=null)}function Bg(e){if(e.propertyName==="value"&&yl(Wo)){var t=[];Og(t,Wo,e,_d(e)),hg(x1,t)}}function y1(e,t,n){e==="focusin"?(Lh(),Po=t,Wo=n,Po.attachEvent("onpropertychange",Bg)):e==="focusout"&&Lh()}function w1(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return yl(Wo)}function b1(e,t){if(e==="click")return yl(t)}function j1(e,t){if(e==="input"||e==="change")return yl(t)}function N1(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Kt=typeof Object.is=="function"?Object.is:N1;function Vo(e,t){if(Kt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var s=n[r];if(!ou.call(t,s)||!Kt(e[s],t[s]))return!1}return!0}function Ih(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Dh(e,t){var n=Ih(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Ih(n)}}function Mg(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Mg(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Lg(){for(var e=window,t=_a();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=_a(e.document)}return t}function Hd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function S1(e){var t=Lg(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Mg(n.ownerDocument.documentElement,n)){if(r!==null&&Hd(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var s=n.textContent.length,i=Math.min(r.start,s);r=r.end===void 0?i:Math.min(r.end,s),!e.extend&&i>r&&(s=r,r=i,i=s),s=Dh(n,i);var a=Dh(n,r);s&&a&&(e.rangeCount!==1||e.anchorNode!==s.node||e.anchorOffset!==s.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(s.node,s.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var C1=kn&&"documentMode"in document&&11>=document.documentMode,ss=null,Su=null,Ao=null,Cu=!1;function zh(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Cu||ss==null||ss!==_a(r)||(r=ss,"selectionStart"in r&&Hd(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focu
vendor: 4,352 bytes, line 37
37sNode:r.focusNode,focusOffset:r.focusOffset}),Ao&&Vo(Ao,r)||(Ao=r,r=Fa(Su,"onSelect"),0<r.length&&(t=new zd("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=ss)))}function Wi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var os={animationend:Wi("Animation","AnimationEnd"),animationiteration:Wi("Animation","AnimationIteration"),animationstart:Wi("Animation","AnimationStart"),transitionend:Wi("Transition","TransitionEnd")},jc={},Ig={};kn&&(Ig=document.createElement("div").style,"AnimationEvent"in window||(delete os.animationend.animation,delete os.animationiteration.animation,delete os.animationstart.animation),"TransitionEvent"in window||delete os.transitionend.transition);function wl(e){if(jc[e])return jc[e];if(!os[e])return e;var t=os[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Ig)return jc[e]=t[n];return e}var Dg=wl("animationend"),zg=wl("animationiteration"),Fg=wl("animationstart"),$g=wl("transitionend"),Hg=new Map,Fh="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 mr(e,t){Hg.set(e,t),$r(t,[e])}for(var Nc=0;Nc<Fh.length;Nc++){var Sc=Fh[Nc],E1=Sc.toLowerCase(),T1=Sc[0].toUpperCase()+Sc.slice(1);mr(E1,"on"+T1)}mr(Dg,"onAnimationEnd");mr(zg,"onAnimationIteration");mr(Fg,"onAnimationStart");mr("dblclick","onDoubleClick");mr("focusin","onFocus");mr("focusout","onBlur");mr($g,"onTransitionEnd");_s("onMouseEnter",["mouseout","mouseover"]);_s("onMouseLeave",["mouseout","mouseover"]);_s("onPointerEnter",["pointerout","pointerover"]);_s("onPointerLeave",["pointerout","pointerover"]);$r("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));$r("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));$r("onBeforeInput",["compositionend","keypress","textInput","paste"]);$r("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));$r("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));$r("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var So="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(" "),k1=new Set("cancel close invalid load scroll toggle".split(" ").concat(So));function $h(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Eb(r,t,void 0,e),e.currentTarget=null}function Ug(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],s=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var l=r[a],c=l.instance,u=l.currentTarget;if(l=l.listener,c!==i&&s.isPropagationStopped())break e;$h(s,l,u),i=c}else for(a=0;a<r.length;a++){if(l=r[a],c=l.instance,u=l.currentTarget,l=l.listener,c!==i&&s.isPropagationStopped())break e;$h(s,l,u),i=c}}}if(Ma)throw e=wu,Ma=!1,wu=null,e}function ve(e,t){var n=t[Au];n===void 0&&(n=t[Au]=new Set);var r=e+"__bubble";n.has(r)||(Wg(t,e,2,!1),n.add(r))}function Cc(e,t,n){var r=0;t&&(r|=4),Wg(n,e,r,t)}var Vi="_reactListening"+Math.random().toString(36).slice(2);function Go(e){if(!e[Vi]){e[Vi]=!0,Xm.forEach(function(n){n!=="selectionchange"&&(k1.has(n)||Cc(n,!1,e),Cc(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Vi]||(t[Vi]=!0,Cc("selectionchange",!1,t))}}function Wg(e,t,n,r){switch(Tg(t)){case 1:var s=Hb;break;case 4:s=Ub;break;default:s=Id}n=s.bind(null,t,n,e),s=void 0,!yu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),r?s!==void 0?e.addEventListener(t,n,{capture:!0,passive:s}):e.addEventListener(t,n,!0):s!==void 0?e.addEventListener(t,n,{passive:s}):e.addEventListener(t,n,!1)}
vendor: 1,640 bytes, line 37
37function Ec(e,t,n,r,s){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var a=r.tag;if(a===3||a===4){var l=r.stateNode.containerInfo;if(l===s||l.nodeType===8&&l.parentNode===s)break;if(a===4)for(a=r.return;a!==null;){var c=a.tag;if((c===3||c===4)&&(c=a.stateNode.containerInfo,c===s||c.nodeType===8&&c.parentNode===s))return;a=a.return}for(;l!==null;){if(a=Nr(l),a===null)return;if(c=a.tag,c===5||c===6){r=i=a;continue e}l=l.parentNode}}r=r.return}hg(function(){var u=i,f=_d(n),h=[];e:{var d=Hg.get(e);if(d!==void 0){var v=zd,y=e;switch(e){case"keypress":if(xa(n)===0)break e;case"keydown":case"keyup":v=s1;break;case"focusin":y="focus",v=yc;break;case"focusout":y="blur",v=yc;break;case"beforeblur":case"afterblur":v=yc;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":v=Ph;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":v=Gb;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":v=a1;break;case Dg:case zg:case Fg:v=Qb;break;case $g:v=c1;break;case"scroll":v=Wb;break;case"wheel":v=d1;break;case"copy":case"cut":case"paste":v=Xb;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":v=Rh}var x=(t&4)!==0,b=!x&&e==="scroll",m=x?d!==null?d+"Capture":null:d;x=[];for(var g=u,w;g!==null;){w=g;var j=w.stateNode;if(w.tag===5&&j!==null&&(w=j,m!==null&&(j=Fo(g,m),j!=null&&x.push(Yo(g,j,w)))),b)break;g=g.return}
vendor: 5,083 bytes, lines 37-38
370<x.length&&(d=new v(d,y,null,n,f),h.push({event:d,listeners:x}))}}if(!(t&7)){e:{if(d=e==="mouseover"||e==="pointerover",v=e==="mouseout"||e==="pointerout",d&&n!==xu&&(y=n.relatedTarget||n.fromElement)&&(Nr(y)||y[Pn]))break e;if((v||d)&&(d=f.window===f?f:(d=f.ownerDocument)?d.defaultView||d.parentWindow:window,v?(y=n.relatedTarget||n.toElement,v=u,y=y?Nr(y):null,y!==null&&(b=Hr(y),y!==b||y.tag!==5&&y.tag!==6)&&(y=null)):(v=null,y=u),v!==y)){if(x=Ph,j="onMouseLeave",m="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(x=Rh,j="onPointerLeave",m="onPointerEnter",g="pointer"),b=v==null?d:is(v),w=y==null?d:is(y),d=new x(j,g+"leave",v,n,f),d.target=b,d.relatedTarget=w,j=null,Nr(f)===u&&(x=new x(m,g+"enter",y,n,f),x.target=w,x.relatedTarget=b,j=x),b=j,v&&y)t:{for(x=v,m=y,g=0,w=x;w;w=Qr(w))g++;for(w=0,j=m;j;j=Qr(j))w++;for(;0<g-w;)x=Qr(x),g--;for(;0<w-g;)m=Qr(m),w--;for(;g--;){if(x===m||m!==null&&x===m.alternate)break t;x=Qr(x),m=Qr(m)}x=null}else x=null;v!==null&&Hh(h,d,v,x,!1),y!==null&&b!==null&&Hh(h,b,y,x,!0)}}e:{if(d=u?is(u):window,v=d.nodeName&&d.nodeName.toLowerCase(),v==="select"||v==="input"&&d.type==="file")var N=v1;else if(Bh(d))if(_g)N=j1;else{N=w1;var C=y1}else(v=d.nodeName)&&v.toLowerCase()==="input"&&(d.type==="checkbox"||d.type==="radio")&&(N=b1);if(N&&(N=N(e,u))){Og(h,N,n,f);break e}C&&C(e,d,u),e==="focusout"&&(C=d._wrapperState)&&C.controlled&&d.type==="number"&&fu(d,"number",d.value)}switch(C=u?is(u):window,e){case"focusin":(Bh(C)||C.contentEditable==="true")&&(ss=C,Su=u,Ao=null);break;case"focusout":Ao=Su=ss=null;break;case"mousedown":Cu=!0;break;case"contextmenu":case"mouseup":case"dragend":Cu=!1,zh(h,n,f);break;case"selectionchange":if(C1)break;case"keydown":case"keyup":zh(h,n,f)}var S;if($d)e:{switch(e){case"compositionstart":var E="onCompositionStart";break e;case"compositionend":E="onCompositionEnd";break e;case"compositionupdate":E="onCompositionUpdate";break e}E=void 0}else rs?Ag(e,n)&&(E="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(E="onCompositionStart");E&&(Pg&&n.locale!=="ko"&&(rs||E!=="onCompositionStart"?E==="onCompositionEnd"&&rs&&(S=kg()):(Xn=f,Dd="value"in Xn?Xn.value:Xn.textContent,rs=!0)),C=Fa(u,E),0<C.length&&(E=new Ah(E,e,null,n,f),h.push({event:E,listeners:C}),S?E.data=S:(S=Rg(n),S!==null&&(E.data=S)))),(S=h1?p1(e,n):m1(e,n))&&(u=Fa(u,"onBeforeInput"),0<u.length&&(f=new Ah("onBeforeInput","beforeinput",null,n,f),h.push({event:f,listeners:u}),f.data=S))}Ug(h,t)})}function Yo(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Fa(e,t){for(var n=t+"Capture",r=[];e!==null;){var s=e,i=s.stateNode;s.tag===5&&i!==null&&(s=i,i=Fo(e,n),i!=null&&r.unshift(Yo(e,i,s)),i=Fo(e,t),i!=null&&r.push(Yo(e,i,s))),e=e.return}return r}function Qr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Hh(e,t,n,r,s){for(var i=t._reactName,a=[];n!==null&&n!==r;){var l=n,c=l.alternate,u=l.stateNode;if(c!==null&&c===r)break;l.tag===5&&u!==null&&(l=u,s?(c=Fo(n,i),c!=null&&a.unshift(Yo(n,c,l))):s||(c=Fo(n,i),c!=null&&a.push(Yo(n,c,l)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var P1=/\r\n?/g,A1=/\u0000|\uFFFD/g;function Uh(e){return(typeof e=="string"?e:""+e).replace(P1,`
38`).replace(A1,"")}function Gi(e,t,n){if(t=Uh(t),Uh(e)!==t&&n)throw Error(O(425))}function $a(){}var Eu=null,Tu=null;function ku(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Pu=typeof setTimeout=="function"?setTimeout:void 0,R1=typeof clearTimeout=="function"?clearTimeout:void 0,Wh=typeof Promise=="function"?Promise:void 0,O1=typeof queueMicrotask=="function"?queueMicrotask:typeof Wh<"u"?function(e){return Wh.resolve(null).then(e).catch(_1)}:Pu;function _1(e){setTimeout(function(){throw e})}function Tc(e,t){var n=t,r=0;do{var s=n.nextSibling;if(e.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"){if(r===0){e.removeChild(s),Uo(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=s}while(n);Uo(t)}function rr(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Vh(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Ys=Math.random().toString(36).slice(2),ln="__reactFiber$"+Ys,qo="__reactProps$"+Ys,Pn="__reactContainer$"+Ys,Au="__reactEvents$"+Ys,B1="__reactListeners$"+Ys,M1="__reactHandles$"+Ys;function Nr(e){var t=e[ln];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Pn]||n[ln]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Vh(e);e!==null;){if(n=e[ln])return n;e=Vh(e)}return t}e=n,n=e.parentNode}return null}function yi(e){return e=e[ln]||e[Pn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function is(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(O(33))}function bl(e){return e[qo]||null}
vendor: 14,827 bytes, line 38
38var Ru=[],as=-1;function gr(e){return{current:e}}function ye(e){0>as||(e.current=Ru[as],Ru[as]=null,as--)}function me(e,t){as++,Ru[as]=e.current,e.current=t}var ur={},Xe=gr(ur),ut=gr(!1),_r=ur;function Bs(e,t){var n=e.type.contextTypes;if(!n)return ur;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var s={},i;for(i in n)s[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function dt(e){return e=e.childContextTypes,e!=null}function Ha(){ye(ut),ye(Xe)}function Gh(e,t,n){if(Xe.current!==ur)throw Error(O(168));me(Xe,t),me(ut,n)}function Vg(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var s in r)if(!(s in t))throw Error(O(108,yb(e)||"Unknown",s));return Ee({},n,r)}function Ua(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ur,_r=Xe.current,me(Xe,e),me(ut,ut.current),!0}function Yh(e,t,n){var r=e.stateNode;if(!r)throw Error(O(169));n?(e=Vg(e,t,_r),r.__reactInternalMemoizedMergedChildContext=e,ye(ut),ye(Xe),me(Xe,e)):ye(ut),me(ut,n)}var bn=null,jl=!1,kc=!1;function Gg(e){bn===null?bn=[e]:bn.push(e)}function L1(e){jl=!0,Gg(e)}function xr(){if(!kc&&bn!==null){kc=!0;var e=0,t=ce;try{var n=bn;for(ce=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}bn=null,jl=!1}catch(s){throw bn!==null&&(bn=bn.slice(e+1)),xg(Bd,xr),s}finally{ce=t,kc=!1}}return null}var ls=[],cs=0,Wa=null,Va=0,At=[],Rt=0,Br=null,jn=1,Nn="";function br(e,t){ls[cs++]=Va,ls[cs++]=Wa,Wa=e,Va=t}function Yg(e,t,n){At[Rt++]=jn,At[Rt++]=Nn,At[Rt++]=Br,Br=e;var r=jn;e=Nn;var s=32-Yt(r)-1;r&=~(1<<s),n+=1;var i=32-Yt(t)+s;if(30<i){var a=s-s%5;i=(r&(1<<a)-1).toString(32),r>>=a,s-=a,jn=1<<32-Yt(t)+s|n<<s|r,Nn=i+e}else jn=1<<i|n<<s|r,Nn=e}function Ud(e){e.return!==null&&(br(e,1),Yg(e,1,0))}function Wd(e){for(;e===Wa;)Wa=ls[--cs],ls[cs]=null,Va=ls[--cs],ls[cs]=null;for(;e===Br;)Br=At[--Rt],At[Rt]=null,Nn=At[--Rt],At[Rt]=null,jn=At[--Rt],At[Rt]=null}var jt=null,wt=null,be=!1,Vt=null;function qg(e,t){var n=Ot(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function qh(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,jt=e,wt=rr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,jt=e,wt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Br!==null?{id:jn,overflow:Nn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ot(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,jt=e,wt=null,!0):!1;default:return!1}}function Ou(e){return(e.mode&1)!==0&&(e.flags&128)===0}function _u(e){if(be){var t=wt;if(t){var n=t;if(!qh(e,t)){if(Ou(e))throw Error(O(418));t=rr(n.nextSibling);var r=jt;t&&qh(e,t)?qg(r,n):(e.flags=e.flags&-4097|2,be=!1,jt=e)}}else{if(Ou(e))throw Error(O(418));e.flags=e.flags&-4097|2,be=!1,jt=e}}}function Qh(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;jt=e}function Yi(e){if(e!==jt)return!1;if(!be)return Qh(e),be=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!ku(e.type,e.memoizedProps)),t&&(t=wt)){if(Ou(e))throw Qg(),Error(O(418));for(;t;)qg(e,t),t=rr(t.nextSibling)}if(Qh(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(O(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){wt=rr(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}wt=null}}else wt=jt?rr(e.stateNode.nextSibling):null;return!0}function Qg(){for(var e=wt;e;)e=rr(e.nextSibling)}function Ms(){wt=jt=null,be=!1}function Vd(e){Vt===null?Vt=[e]:Vt.push(e)}var I1=Bn.ReactCurrentBatchConfig;function ho(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(O(309));var r=n.stateNode}if(!r)throw Error(O(147,e));var s=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(a){var l=s.refs;a===null?delete l[i]:l[i]=a},t._stringRef=i,t)}if(typeof e!="string")throw Error(O(284));if(!n._owner)throw Error(O(290,e))}return e}function qi(e,t){throw e=Object.prototype.toString.call(t),Error(O(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Kh(e){var t=e._init;return t(e._payload)}function Kg(e){function t(m,g){if(e){var w=m.deletions;w===null?(m.deletions=[g],m.flags|=16):w.push(g)}}function n(m,g){if(!e)return null;for(;g!==null;)t(m,g),g=g.sibling;return null}function r(m,g){for(m=new Map;g!==null;)g.key!==null?m.set(g.key,g):m.set(g.index,g),g=g.sibling;return m}function s(m,g){return m=ar(m,g),m.index=0,m.sibling=null,m}function i(m,g,w){return m.index=w,e?(w=m.alternate,w!==null?(w=w.index,w<g?(m.flags|=2,g):w):(m.flags|=2,g)):(m.flags|=1048576,g)}function a(m){return e&&m.alternate===null&&(m.flags|=2),m}function l(m,g,w,j){return g===null||g.tag!==6?(g=Mc(w,m.mode,j),g.return=m,g):(g=s(g,w),g.return=m,g)}function c(m,g,w,j){var N=w.type;return N===ns?f(m,g,w.props.children,j,w.key):g!==null&&(g.elementType===N||typeof N=="object"&&N!==null&&N.$$typeof===Hn&&Kh(N)===g.type)?(j=s(g,w.props),j.ref=ho(m,g,w),j.return=m,j):(j=Sa(w.type,w.key,w.props,null,m.mode,j),j.ref=ho(m,g,w),j.return=m,j)}function u(m,g,w,j){return g===null||g.tag!==4||g.stateNode.containerInfo!==w.containerInfo||g.stateNode.implementation!==w.implementation?(g=Lc(w,m.mode,j),g.return=m,g):(g=s(g,w.children||[]),g.return=m,g)}function f(m,g,w,j,N){return g===null||g.tag!==7?(g=Or(w,m.mode,j,N),g.return=m,g):(g=s(g,w),g.return=m,g)}function h(m,g,w){if(typeof g=="string"&&g!==""||typeof g=="number")return g=Mc(""+g,m.mode,w),g.return=m,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Ii:return w=Sa(g.type,g.key,g.props,null,m.mode,w),w.ref=ho(m,null,g),w.return=m,w;case ts:return g=Lc(g,m.mode,w),g.return=m,g;case Hn:var j=g._init;return h(m,j(g._payload),w)}if(jo(g)||ao(g))return g=Or(g,m.mode,w,null),g.return=m,g;qi(m,g)}return null}function d(m,g,w,j){var N=g!==null?g.key:null;if(typeof w=="string"&&w!==""||typeof w=="number")return N!==null?null:l(m,g,""+w,j);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Ii:return w.key===N?c(m,g,w,j):null;case ts:return w.key===N?u(m,g,w,j):null;case Hn:return N=w._init,d(m,g,N(w._payload),j)}if(jo(w)||ao(w))return N!==null?null:f(m,g,w,j,null);qi(m,w)}return null}function v(m,g,w,j,N){if(typeof j=="string"&&j!==""||typeof j=="number")return m=m.get(w)||null,l(g,m,""+j,N);if(typeof j=="object"&&j!==null){switch(j.$$typeof){case Ii:return m=m.get(j.key===null?w:j.key)||null,c(g,m,j,N);case ts:return m=m.get(j.key===null?w:j.key)||null,u(g,m,j,N);case Hn:var C=j._init;return v(m,g,w,C(j._payload),N)}if(jo(j)||ao(j))return m=m.get(w)||null,f(g,m,j,N,null);qi(g,j)}return null}function y(m,g,w,j){for(var N=null,C=null,S=g,E=g=0,k=null;S!==null&&E<w.length;E++){S.index>E?(k=S,S=null):k=S.sibling;var A=d(m,S,w[E],j);if(A===null){S===null&&(S=k);break}e&&S&&A.alternate===null&&t(m,S),g=i(A,g,E),C===null?N=A:C.sibling=A,C=A,S=k}if(E===w.length)return n(m,S),be&&br(m,E),N;if(S===null){for(;E<w.length;E++)S=h(m,w[E],j),S!==null&&(g=i(S,g,E),C===null?N=S:C.sibling=S,C=S);return be&&br(m,E),N}for(S=r(m,S);E<w.length;E++)k=v(S,m,E,w[E],j),k!==null&&(e&&k.alternate!==null&&S.delete(k.key===null?E:k.key),g=i(k,g,E),C===null?N=k:C.sibling=k,C=k);return e&&S.forEach(function(B){return t(m,B)}),be&&br(m,E),N}function x(m,g,w,j){var N=ao(w);if(typeof N!="function")throw Error(O(150));if(w=N.call(w),w==null)throw Error(O(151));for(var C=N=null,S=g,E=g=0,k=null,A=w.next();S!==null&&!A.done;E++,A=w.next()){S.index>E?(k=S,S=null):k=S.sibling;var B=d(m,S,A.value,j);if(B===null){S===null&&(S=k);break}e&&S&&B.alternate===null&&t(m,S),g=i(B,g,E),C===null?N=B:C.sibling=B,C=B,S=k}if(A.done)return n(m,S),be&&br(m,E),N;if(S===null){for(;!A.done;E++,A=w.next())A=h(m,A.value,j),A!==null&&(g=i(A,g,E),C===null?N=A:C.sibling=A,C=A);return be&&br(m,E),N}for(S=r(m,S);!A.done;E++,A=w.next())A=v(S,m,E,A.value,j),A!==null&&(e&&A.alternate!==null&&S.delete(A.key===null?E:A.key),g=i(A,g,E),C===null?N=A:C.sibling=A,C=A);return e&&S.forEach(function(I){return t(m,I)}),be&&br(m,E),N}function b(m,g,w,j){if(typeof w=="object"&&w!==null&&w.type===ns&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case Ii:e:{for(var N=w.key,C=g;C!==null;){if(C.key===N){if(N=w.type,N===ns){if(C.tag===7){n(m,C.sibling),g=s(C,w.props.children),g.return=m,m=g;break e}}else if(C.elementType===N||typeof N=="object"&&N!==null&&N.$$typeof===Hn&&Kh(N)===C.type){n(m,C.sibling),g=s(C,w.props),g.ref=ho(m,C,w),g.return=m,m=g;break e}n(m,C);break}else t(m,C);C=C.sibling}w.type===ns?(g=Or(w.props.children,m.mode,j,w.key),g.return=m,m=g):(j=Sa(w.type,w.key,w.props,null,m.mode,j),j.ref=ho(m,g,w),j.return=m,m=j)}return a(m);case ts:e:{for(C=w.key;g!==null;){if(g.key===C)if(g.tag===4&&g.stateNode.containerInfo===w.containerInfo&&g.stateNode.implementation===w.implementation){n(m,g.sibling),g=s(g,w.children||[]),g.return=m,m=g;break e}else{n(m,g);break}else t(m,g);g=g.sibling}g=Lc(w,m.mode,j),g.return=m,m=g}return a(m);case Hn:return C=w._init,b(m,g,C(w._payload),j)}if(jo(w))return y(m,g,w,j);if(ao(w))return x(m,g,w,j);qi(m,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,g!==null&&g.tag===6?(n(m,g.sibling),g=s(g,w),g.return=m,m=g):(n(m,g),g=Mc(w,m.mode,j),g.return=m,m=g),a(m)):n(m,g)}return b}var Ls=Kg(!0),Xg=Kg(!1),Ga=gr(null),Ya=null,us=null,Gd=null;function Yd(){Gd=us=Ya=null}function qd(e){var t=Ga.current;ye(Ga),e._currentValue=t}function Bu(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function xs(e,t){Ya=e,Gd=us=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ct=!0),e.firstContext=null)}function Bt(e){var t=e._currentValue;if(Gd!==e)if(e={context:e,memoizedValue:t,next:null},us===null){if(Ya===null)throw Error(O(308));us=e,Ya.dependencies={lanes:0,firstContext:e}}else us=us.next=e;return t}var Sr=null;function Qd(e){Sr===null?Sr=[e]:Sr.push(e)}function Jg(e,t,n,r){var s=t.interleaved;return s===null?(n.next=n,Qd(t)):(n.next=s.next,s.next=n),t.interleaved=n,An(e,r)}function An(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Un=!1;function Kd(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Zg(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Cn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function sr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,oe&2){var s=r.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),r.pending=t,An(e,n)}return s=r.interleaved,s===null?(t.next=t,Qd(r)):(t.next=s.next,s.next=t),r.interleaved=t,An(e,n)}function va(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Md(e,n)}}function Xh(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var s=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?s=i=a:i=i.next=a,n=n.next}while(n!==null);i===null?s=i=t:i=i.next=t}else s=i=t;n={baseState:r.baseState,firstBaseUpdate:s,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function qa(e,t,n,r){var s=e.updateQueue;Un=!1;var i=s.firstBaseUpdate,a=s.lastBaseUpdate,l=s.shared.pending;if(l!==null){s.shared.pending=null;var c=l,u=c.next;c.next=null,a===null?i=u:a.next=u,a=c;var f=e.alternate;f!==null&&(f=f.updateQueue,l=f.lastBaseUpdate,l!==a&&(l===null?f.firstBaseUpdate=u:l.next=u,f.lastBaseUpdate=c))}if(i!==null){var h=s.baseState;a=0,f=u=c=null,l=i;do{var d=l.lane,v=l.eventTime;if((r&d)===d){f!==null&&(f=f.next={eventTime:v,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var y=e,x=l;switch(d=t,v=n,x.tag){case 1:if(y=x.payload,typeof y=="function"){h=y.call(v,h,d);break e}h=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=x.payload,d=typeof y=="function"?y.call(v,h,d):y,d==null)break e;h=Ee({},h,d);break e;case 2:Un=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,d=s.effects,d===null?s.effects=[l]:d.push(l))}else v={eventTime:v,lane:d,tag:l.tag,payload:l.payload,callback:l.callback,next:null},f===null?(u=f=v,c=h):f=f.next=v,a|=d;if(l=l.next,l===null){if(l=s.shared.pending,l===null)break;d=l,l=d.next,d.next=null,s.lastBaseUpdate=d,s.shared.pending=null}}while(!0);if(f===null&&(c=h),s.baseState=c,s.firstBaseUpdate=u,s.lastBaseUpdate=f,t=s.shared.interleaved,t!==null){s=t;do a|=s.lane,s=s.next;while(s!==t)}else i===null&&(s.shared.lanes=0);Lr|=a,e.lanes=a,e.memoizedState=h}}function Jh(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],s=r.callback;if(s!==null){if(r.callback=null,r=n,typeof s!="function")throw Error(O(191,s));s.call(r)}}}var wi={},dn=gr(wi),Qo=gr(wi),Ko=gr(wi);function Cr(e){if(e===wi)throw Error(O(174));return e}function Xd(e,t){switch(me(Ko,t),me(Qo,e),me(dn,wi),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:pu(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=pu(t,e)}ye(dn),me(dn,t)}function Is(){ye(dn),ye(Qo),ye(Ko)}function ex(e){Cr(Ko.current);var t=Cr(dn.current),n=pu(t,e.type);t!==n&&(me(Qo,e),me(dn,n))}function Jd(e){Qo.current===e&&(ye(dn),ye(Qo))}var je=gr(0);function Qa(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Pc=[];function Zd(){for(var e=0;e<Pc.length;e++)Pc[e]._workInProgressVersionPrimary=null;Pc.length=0}var ya=Bn.ReactCurrentDispatcher,Ac=Bn.ReactCurrentBatchConfig,Mr=0,Ce=null,Ie=null,Fe=null,Ka=!1,Ro=!1,
vendor: 4,820 bytes, line 38
38Xo=0,D1=0;function Ye(){throw Error(O(321))}function ef(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Kt(e[n],t[n]))return!1;return!0}function tf(e,t,n,r,s,i){if(Mr=i,Ce=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ya.current=e===null||e.memoizedState===null?H1:U1,e=n(r,s),Ro){i=0;do{if(Ro=!1,Xo=0,25<=i)throw Error(O(301));i+=1,Fe=Ie=null,t.updateQueue=null,ya.current=W1,e=n(r,s)}while(Ro)}if(ya.current=Xa,t=Ie!==null&&Ie.next!==null,Mr=0,Fe=Ie=Ce=null,Ka=!1,t)throw Error(O(300));return e}function nf(){var e=Xo!==0;return Xo=0,e}function rn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Fe===null?Ce.memoizedState=Fe=e:Fe=Fe.next=e,Fe}function Mt(){if(Ie===null){var e=Ce.alternate;e=e!==null?e.memoizedState:null}else e=Ie.next;var t=Fe===null?Ce.memoizedState:Fe.next;if(t!==null)Fe=t,Ie=e;else{if(e===null)throw Error(O(310));Ie=e,e={memoizedState:Ie.memoizedState,baseState:Ie.baseState,baseQueue:Ie.baseQueue,queue:Ie.queue,next:null},Fe===null?Ce.memoizedState=Fe=e:Fe=Fe.next=e}return Fe}function Jo(e,t){return typeof t=="function"?t(e):t}function Rc(e){var t=Mt(),n=t.queue;if(n===null)throw Error(O(311));n.lastRenderedReducer=e;var r=Ie,s=r.baseQueue,i=n.pending;if(i!==null){if(s!==null){var a=s.next;s.next=i.next,i.next=a}r.baseQueue=s=i,n.pending=null}if(s!==null){i=s.next,r=r.baseState;var l=a=null,c=null,u=i;do{var f=u.lane;if((Mr&f)===f)c!==null&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var h={lane:f,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};c===null?(l=c=h,a=r):c=c.next=h,Ce.lanes|=f,Lr|=f}u=u.next}while(u!==null&&u!==i);c===null?a=r:c.next=l,Kt(r,t.memoizedState)||(ct=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=c,n.lastRenderedState=r}if(e=n.interleaved,e!==null){s=e;do i=s.lane,Ce.lanes|=i,Lr|=i,s=s.next;while(s!==e)}else s===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Oc(e){var t=Mt(),n=t.queue;if(n===null)throw Error(O(311));n.lastRenderedReducer=e;var r=n.dispatch,s=n.pending,i=t.memoizedState;if(s!==null){n.pending=null;var a=s=s.next;do i=e(i,a.action),a=a.next;while(a!==s);Kt(i,t.memoizedState)||(ct=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function tx(){}function nx(e,t){var n=Ce,r=Mt(),s=t(),i=!Kt(r.memoizedState,s);if(i&&(r.memoizedState=s,ct=!0),r=r.queue,rf(ox.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||Fe!==null&&Fe.memoizedState.tag&1){if(n.flags|=2048,Zo(9,sx.bind(null,n,r,s,t),void 0,null),$e===null)throw Error(O(349));Mr&30||rx(n,t,s)}return s}function rx(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ce.updateQueue,t===null?(t={lastEffect:null,stores:null},Ce.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function sx(e,t,n,r){t.value=n,t.getSnapshot=r,ix(t)&&ax(e)}function ox(e,t,n){return n(function(){ix(t)&&ax(e)})}function ix(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Kt(e,n)}catch{return!0}}function ax(e){var t=An(e,1);t!==null&&qt(t,e,1,-1)}function Zh(e){var t=rn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Jo,lastRenderedState:e},t.queue=e,e=e.dispatch=$1.bind(null,Ce,e),[t.memoizedState,e]}function Zo(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Ce.updateQueue,t===null?(t={lastEffect:null,stores:null},Ce.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function lx(){return Mt().memoizedState}function wa(e,t,n,r){var s=rn();Ce.flags|=e,s.memoizedState=Zo(1|t,n,void 0,r===void 0?null:r)}function Nl(e,t,n,r){var s=Mt();r=r===void 0?null:r;var i=void 0;if(Ie!==null){var a=Ie.memoizedState;if(i=a.destroy,r!==null&&ef(r,a.deps)){s.memoizedState=Zo(t,n,i,r);return}}Ce.flags|=e,s.memoizedState=Zo(1|t,n,i,r)}function ep(e,t){return wa(8390656,8,e,t)}function rf(e,t){return Nl(2048,8,e,t)}function cx(e,t){return Nl(4,2,e,t)}function ux(e,t){return Nl(4,4,e,t)}function dx(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function fx(e,t,n){return n=n!=null?n.concat([e]):null,Nl(4,4,dx.bind(null,t,e),n)}function sf(){}function hx(e,t){var n=Mt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&ef(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function px(e,t){var n=Mt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&ef(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function mx(e,t,n){return Mr&21?(Kt(n,t)||(n=wg(),Ce.lanes|=n,Lr|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,
vendor: 8,606 bytes, lines 38-40
38ct=!0),e.memoizedState=n)}function z1(e,t){var n=ce;ce=n!==0&&4>n?n:4,e(!0);var r=Ac.transition;Ac.transition={};try{e(!1),t()}finally{ce=n,Ac.transition=r}}function gx(){return Mt().memoizedState}function F1(e,t,n){var r=ir(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},xx(e))vx(t,n);else if(n=Jg(e,t,n,r),n!==null){var s=st();qt(n,e,r,s),yx(n,t,r)}}function $1(e,t,n){var r=ir(e),s={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(xx(e))vx(t,s);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,l=i(a,n);if(s.hasEagerState=!0,s.eagerState=l,Kt(l,a)){var c=t.interleaved;c===null?(s.next=s,Qd(t)):(s.next=c.next,c.next=s),t.interleaved=s;return}}catch{}finally{}n=Jg(e,t,s,r),n!==null&&(s=st(),qt(n,e,r,s),yx(n,t,r))}}function xx(e){var t=e.alternate;return e===Ce||t!==null&&t===Ce}function vx(e,t){Ro=Ka=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function yx(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Md(e,n)}}var Xa={readContext:Bt,useCallback:Ye,useContext:Ye,useEffect:Ye,useImperativeHandle:Ye,useInsertionEffect:Ye,useLayoutEffect:Ye,useMemo:Ye,useReducer:Ye,useRef:Ye,useState:Ye,useDebugValue:Ye,useDeferredValue:Ye,useTransition:Ye,useMutableSource:Ye,useSyncExternalStore:Ye,useId:Ye,unstable_isNewReconciler:!1},H1={readContext:Bt,useCallback:function(e,t){return rn().memoizedState=[e,t===void 0?null:t],e},useContext:Bt,useEffect:ep,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,wa(4194308,4,dx.bind(null,t,e),n)},useLayoutEffect:function(e,t){return wa(4194308,4,e,t)},useInsertionEffect:function(e,t){return wa(4,2,e,t)},useMemo:function(e,t){var n=rn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=rn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=F1.bind(null,Ce,e),[r.memoizedState,e]},useRef:function(e){var t=rn();return e={current:e},t.memoizedState=e},useState:Zh,useDebugValue:sf,useDeferredValue:function(e){return rn().memoizedState=e},useTransition:function(){var e=Zh(!1),t=e[0];return e=z1.bind(null,e[1]),rn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Ce,s=rn();if(be){if(n===void 0)throw Error(O(407));n=n()}else{if(n=t(),$e===null)throw Error(O(349));Mr&30||rx(r,t,n)}s.memoizedState=n;var i={value:n,getSnapshot:t};return s.queue=i,ep(ox.bind(null,r,i,e),[e]),r.flags|=2048,Zo(9,sx.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=rn(),t=$e.identifierPrefix;if(be){var n=Nn,r=jn;n=(r&~(1<<32-Yt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Xo++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=D1++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},U1={readContext:Bt,useCallback:hx,useContext:Bt,useEffect:rf,useImperativeHandle:fx,useInsertionEffect:cx,useLayoutEffect:ux,useMemo:px,useReducer:Rc,useRef:lx,useState:function(){return Rc(Jo)},useDebugValue:sf,useDeferredValue:function(e){var t=Mt();return mx(t,Ie.memoizedState,e)},useTransition:function(){var e=Rc(Jo)[0],t=Mt().memoizedState;return[e,t]},useMutableSource:tx,useSyncExternalStore:nx,useId:gx,unstable_isNewReconciler:!1},W1={readContext:Bt,useCallback:hx,useContext:Bt,useEffect:rf,useImperativeHandle:fx,useInsertionEffect:cx,useLayoutEffect:ux,useMemo:px,useReducer:Oc,useRef:lx,useState:function(){return Oc(Jo)},useDebugValue:sf,useDeferredValue:function(e){var t=Mt();return Ie===null?t.memoizedState=e:mx(t,Ie.memoizedState,e)},useTransition:function(){var e=Oc(Jo)[0],t=Mt().memoizedState;return[e,t]},useMutableSource:tx,useSyncExternalStore:nx,useId:gx,unstable_isNewReconciler:!1};function $t(e,t){if(e&&e.defaultProps){t=Ee({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Mu(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Ee({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Sl={isMounted:function(e){return(e=e._reactInternals)?Hr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=st(),s=ir(e),i=Cn(r,s);i.payload=t,n!=null&&(i.callback=n),t=sr(e,i,s),t!==null&&(qt(t,e,s,r),va(t,e,s))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=st(),s=ir(e),i=Cn(r,s);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=sr(e,i,s),t!==null&&(qt(t,e,s,r),va(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=st(),r=ir(e),s=Cn(n,r);s.tag=2,t!=null&&(s.callback=t),t=sr(e,s,r),t!==null&&(qt(t,e,r,n),va(t,e,r))}};function tp(e,t,n,r,s,i,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,a):t.prototype&&t.prototype.isPureReactComponent?!Vo(n,r)||!Vo(s,i):!0}function wx(e,t,n){var r=!1,s=ur,i=t.contextType;return typeof i=="object"&&i!==null?i=Bt(i):(s=dt(t)?_r:Xe.current,r=t.contextTypes,i=(r=r!=null)?Bs(e,s):ur),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Sl,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=i),t}function np(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Sl.enqueueReplaceState(t,t.state,null)}function Lu(e,t,n,r){var s=e.stateNode;s.props=n,s.state=e.memoizedState,s.refs={},Kd(e);var i=t.contextType;typeof i=="object"&&i!==null?s.context=Bt(i):(i=dt(t)?_r:Xe.current,s.context=Bs(e,i)),s.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(Mu(e,t,i,n),s.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(t=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),t!==s.state&&Sl.enqueueReplaceState(s,s.state,null),qa(e,n,s,r),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308)}function Ds(e,t){try{var n="",r=t;do n+=vb(r),r=r.return;while(r);var s=n}catch(i){s=`
39Error generating stack: `+i.message+`
40`+i.stack}return{value:e,source:t,stack:s,digest:null}}function _c(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Iu(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var V1=typeof WeakMap=="function"?WeakMap:Map;function bx(e,t,n){n=Cn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Za||(Za=!0,Yu=r),Iu(e,t)},n}function jx(e,t,n){n=Cn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var s=t.value;n.payload=function(){return r(s)},n.callback=function(){Iu(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Iu(e,t),typeof r!="function"&&(or===null?or=new Set([this]):or.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function rp(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new V1;var s=new Set;r.set(t,s)}else s=r.get(t),s===void 0&&(s=new Set,r.set(t,s));s.has(n)||(s.add(n),e=oj.bind(null,e,t,n),t.then(e,e))}function sp(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function op(e,t,n,r,s){return e.mode&1?(e.flags|=65536,e.lanes=s,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Cn(-1,1),t.tag=2,sr(n,t,1))),n.lanes|=1),e)}var G1=Bn.ReactCurrentOwner,ct=!1;function Ze(e,t,n,r){t.child=e===null?Xg(t,null,n,r):Ls(t,e.child,n,r)}function ip(e,t,n,r,s){n=n.render;var i=t.ref;return xs(t,s),r=tf(e,t,n,r,i,s),n=nf(),e!==null&&!ct?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Rn(e,t,s)):(be&&n&&Ud(t),t.flags|=1,Ze(e,t,r,s),t.child)}function ap(e,t,n,r,s){if(e===null){var i=n.type;return typeof i=="function"&&!hf(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,Nx(e,t,i,r,s)):(e=Sa(n.type,null,r,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&s)){var a=i.memoizedProps;if(n=n.compare,n=n!==null?n:Vo,n(a,r)&&e.ref===t.ref)return Rn(e,t,s)}return t.flags|=1,e=ar(i,r),e.ref=t.ref,e.return=t,t.child=e}
vendor: 9,087 bytes, line 40
40function Nx(e,t,n,r,s){if(e!==null){var i=e.memoizedProps;if(Vo(i,r)&&e.ref===t.ref)if(ct=!1,t.pendingProps=r=i,(e.lanes&s)!==0)e.flags&131072&&(ct=!0);else return t.lanes=e.lanes,Rn(e,t,s)}return Du(e,t,n,r,s)}function Sx(e,t,n){var r=t.pendingProps,s=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},me(fs,vt),vt|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,me(fs,vt),vt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,me(fs,vt),vt|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,me(fs,vt),vt|=r;return Ze(e,t,s,n),t.child}function Cx(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Du(e,t,n,r,s){var i=dt(n)?_r:Xe.current;return i=Bs(t,i),xs(t,s),n=tf(e,t,n,r,i,s),r=nf(),e!==null&&!ct?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Rn(e,t,s)):(be&&r&&Ud(t),t.flags|=1,Ze(e,t,n,s),t.child)}function lp(e,t,n,r,s){if(dt(n)){var i=!0;Ua(t)}else i=!1;if(xs(t,s),t.stateNode===null)ba(e,t),wx(t,n,r),Lu(t,n,r,s),r=!0;else if(e===null){var a=t.stateNode,l=t.memoizedProps;a.props=l;var c=a.context,u=n.contextType;typeof u=="object"&&u!==null?u=Bt(u):(u=dt(n)?_r:Xe.current,u=Bs(t,u));var f=n.getDerivedStateFromProps,h=typeof f=="function"||typeof a.getSnapshotBeforeUpdate=="function";h||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==r||c!==u)&&np(t,a,r,u),Un=!1;var d=t.memoizedState;a.state=d,qa(t,r,a,s),c=t.memoizedState,l!==r||d!==c||ut.current||Un?(typeof f=="function"&&(Mu(t,n,f,r),c=t.memoizedState),(l=Un||tp(t,n,l,r,d,c,u))?(h||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),a.props=r,a.state=c,a.context=u,r=l):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Zg(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:$t(t.type,l),a.props=u,h=t.pendingProps,d=a.context,c=n.contextType,typeof c=="object"&&c!==null?c=Bt(c):(c=dt(n)?_r:Xe.current,c=Bs(t,c));var v=n.getDerivedStateFromProps;(f=typeof v=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==h||d!==c)&&np(t,a,r,c),Un=!1,d=t.memoizedState,a.state=d,qa(t,r,a,s);var y=t.memoizedState;l!==h||d!==y||ut.current||Un?(typeof v=="function"&&(Mu(t,n,v,r),y=t.memoizedState),(u=Un||tp(t,n,u,r,d,y,c)||!1)?(f||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,y,c),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,y,c)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=y),a.props=r,a.state=y,a.context=c,r=u):(typeof a.componentDidUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return zu(e,t,n,r,i,s)}function zu(e,t,n,r,s,i){Cx(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return s&&Yh(t,n,!1),Rn(e,t,i);r=t.stateNode,G1.current=t;var l=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=Ls(t,e.child,null,i),t.child=Ls(t,null,l,i)):Ze(e,t,l,i),t.memoizedState=r.state,s&&Yh(t,n,!0),t.child}function Ex(e){var t=e.stateNode;t.pendingContext?Gh(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Gh(e,t.context,!1),Xd(e,t.containerInfo)}function cp(e,t,n,r,s){return Ms(),Vd(s),t.flags|=256,Ze(e,t,n,r),t.child}var Fu={dehydrated:null,treeContext:null,retryLane:0};function $u(e){return{baseLanes:e,cachePool:null,transitions:null}}function Tx(e,t,n){var r=t.pendingProps,s=je.current,i=!1,a=(t.flags&128)!==0,l;if((l=a)||(l=e!==null&&e.memoizedState===null?!1:(s&2)!==0),l?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(s|=1),me(je,s&1),e===null)return _u(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(a=r.children,e=r.fallback,i?(r=t.mode,i=t.child,a={mode:"hidden",children:a},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=a):i=Tl(a,r,0,null),e=Or(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=$u(n),t.memoizedState=Fu,e):of(t,a));if(s=e.memoizedState,s!==null&&(l=s.dehydrated,l!==null))return Y1(e,t,a,r,l,s,n);if(i){i=r.fallback,a=t.mode,s=e.child,l=s.sibling;var c={mode:"hidden",children:r.children};return!(a&1)&&t.child!==s?(r=t.child,r.childLanes=0,r.pendingProps=c,t.deletions=null):(r=ar(s,c),r.subtreeFlags=s.subtreeFlags&14680064),l!==null?i=ar(l,i):(i=Or(i,a,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,a=e.child.memoizedState,a=a===null?$u(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},i.memoizedState=a,i.childLanes=e.childLanes&~n,t.memoizedState=Fu,r}return i=e.child,e=i.sibling,r=ar(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function of(e,t){return t=Tl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Qi(e,t,n,r){return r!==null&&Vd(r),Ls(t,e.child,null,n),e=of(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Y1(e,t,n,r,s,i,a){if(n)return t.flags&256?(t.flags&=-257,r=_c(Error(O(422))),Qi(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,s=t.mode,r=Tl({mode:"visible",children:r.children},s,0,null),i=Or(i,s,a,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Ls(t,e.child,null,a),t.child.memoizedState=$u(a),t.memoizedState=Fu,i);if(!(t.mode&1))return Qi(e,t,a,null);if(s.data==="$!"){if(r=s.nextSibling&&s.nextSibling.dataset,r)var l=r.dgst;return r=l,i=Error(O(419)),r=_c(i,r,void 0),Qi(e,t,a,r)}if(l=(a&e.childLanes)!==0,ct||l){if(r=$e,r!==null){switch(a&-a){case 4:s=2;break;case 16:s=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:s=32;break;case 536870912:s=268435456;break;default:s=0}s=s&(r.suspendedLanes|a)?0:s,s!==0&&s!==i.retryLane&&(i.retryLane=s,An(e,s),qt(r,e,s,-1))}return ff(),r=_c(Error(O(421))),Qi(e,t,a,r)}return s.data==="$?"?(t.flags|=128,t.child=e.child,t=ij.bind(null,e),s._reactRetry=t,null):(e=i.treeContext,wt=rr(s.nextSibling),jt=t,be=!0,Vt=null,e!==null&&(At[Rt++]=jn,At[Rt++]=Nn,At[Rt++]=Br,jn=e.id,Nn=e.overflow,Br=t),t=of(t,r.children),t.flags|=4096,t)}function up(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Bu(e.return,t,n)}function Bc(e,t,n,r,s){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:s}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=s)}function kx(e,t,n){var r=t.pendingProps,s=r.revealOrder,i=r.tail;if(Ze(e,t,r.children,n),r=je.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&up(e,n,t);else if(e.tag===19)up(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(me(je,r),!(t.mode&1))t.memoizedState=null;else switch(s){case"forwards":for(n=t.child,s=null;n!==null;)e=n.alternate,e!==null&&Qa(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),Bc(t,!1,s,n,i);break;case"backwards":for(n=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&Qa(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}Bc(t,!0,n,null,i);break;case"together":Bc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ba(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Rn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Lr|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(O(153));
vendor: 5,451 bytes, line 40
40if(t.child!==null){for(e=t.child,n=ar(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ar(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function q1(e,t,n){switch(t.tag){case 3:Ex(t),Ms();break;case 5:ex(t);break;case 1:dt(t.type)&&Ua(t);break;case 4:Xd(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,s=t.memoizedProps.value;me(Ga,r._currentValue),r._currentValue=s;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(me(je,je.current&1),t.flags|=128,null):n&t.child.childLanes?Tx(e,t,n):(me(je,je.current&1),e=Rn(e,t,n),e!==null?e.sibling:null);me(je,je.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return kx(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),me(je,je.current),r)break;return null;case 22:case 23:return t.lanes=0,Sx(e,t,n)}return Rn(e,t,n)}var Px,Hu,Ax,Rx;Px=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Hu=function(){};Ax=function(e,t,n,r){var s=e.memoizedProps;if(s!==r){e=t.stateNode,Cr(dn.current);var i=null;switch(n){case"input":s=uu(e,s),r=uu(e,r),i=[];break;case"select":s=Ee({},s,{value:void 0}),r=Ee({},r,{value:void 0}),i=[];break;case"textarea":s=hu(e,s),r=hu(e,r),i=[];break;default:typeof s.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=$a)}mu(n,r);var a;n=null;for(u in s)if(!r.hasOwnProperty(u)&&s.hasOwnProperty(u)&&s[u]!=null)if(u==="style"){var l=s[u];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Do.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var c=r[u];if(l=s!=null?s[u]:void 0,r.hasOwnProperty(u)&&c!==l&&(c!=null||l!=null))if(u==="style")if(l){for(a in l)!l.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in c)c.hasOwnProperty(a)&&l[a]!==c[a]&&(n||(n={}),n[a]=c[a])}else n||(i||(i=[]),i.push(u,n)),n=c;else u==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,l=l?l.__html:void 0,c!=null&&l!==c&&(i=i||[]).push(u,c)):u==="children"?typeof c!="string"&&typeof c!="number"||(i=i||[]).push(u,""+c):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Do.hasOwnProperty(u)?(c!=null&&u==="onScroll"&&ve("scroll",e),i||l===c||(i=[])):(i=i||[]).push(u,c))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};Rx=function(e,t,n,r){n!==r&&(t.flags|=4)};function po(e,t){if(!be)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function qe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags&14680064,r|=s.flags&14680064,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags,r|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Q1(e,t,n){var r=t.pendingProps;switch(Wd(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return qe(t),null;case 1:return dt(t.type)&&Ha(),qe(t),null;case 3:return r=t.stateNode,Is(),ye(ut),ye(Xe),Zd(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Yi(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Vt!==null&&(Ku(Vt),Vt=null))),Hu(e,t),qe(t),null;case 5:Jd(t);var s=Cr(Ko.current);if(n=t.type,e!==null&&t.stateNode!=null)Ax(e,t,n,r,s),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(O(166));return qe(t),null}if(e=Cr(dn.current),Yi(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[ln]=t,r[qo]=i,e=(t.mode&1)!==0,n){case"dialog":ve("cancel",r),ve("close",r);break;case"iframe":case"object":case"embed":ve("load",r);break;case"video":case"audio":for(s=0;s<So.length;s++)ve(So[s],r);break;case"source":ve("error",r);break;case"img":case"image":case"link":ve("error",r),ve("load",r);break;case"details":ve("toggle",r);break;case"input":yh(r,i),ve("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},ve("invalid",r);break;case"textarea":bh(r,i),ve("invalid",r)}mu(n,i),s=null;for(var a in i)if(i.hasOwnProperty(a)){var l=i[a];a==="children"?typeof l=="string"?r.textContent!==l&&(i.suppressHydrationWarning!==!0&&Gi(r.textContent,l,e),s=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(i.suppressHydrationWarning!==!0&&Gi(r.textContent,l,e),s=["children",""+l]):Do.hasOwnProperty(a)&&l!=null&&a==="onScroll"&&ve("scroll",r)}switch(n){case"input":Di(r),wh(r,i,!0);break;case"textarea":Di(r),jh(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=$a)}r=s,t.updateQueue=r,r!==null&&(t.flags|=4)}else{a=s.nodeType===9?s:s.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=og(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>
40",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[ln]=t,e[qo]=r,Px(e,t,!1,!1),t.stateNode=e;e:{switch(a=gu(n,r),n){case"dialog":ve("cancel",e),ve("close",e),s=r;break;case"iframe":case"object":case"embed":ve("load",e),s=r;break;case"video":case"audio":for(s=0;s<So.length;s++)ve(So[s],e);s=r;break;case"source":ve("error",e),s=r;break;case"img":case"image":case"link":ve("error",e),ve("load",e),s=r;break;case"details":ve("toggle",e),s=r;break;case"input":yh(e,r),s=uu(e,r),ve("invalid",e);break;case"option":s=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},s=Ee({},r,{value:void 0}),ve("invalid",e);break;case"textarea":bh(e,r),s=hu(e,r),ve("invalid",e);break;default:s=r}mu(n,s),l=s;for(i in l)if(l.hasOwnProperty(i)){var c=l[i];i==="style"?lg(e,c):i==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&ig(e,c)):i==="children"?typeof c=="string"?(n!=="textarea"||c!=="")&&zo(e,c):typeof c=="number"&&zo(e,""+c):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Do.hasOwnProperty(i)?c!=null&&i==="onScroll"&&ve("scroll",e):c!=null&&Pd(e,i,c,a))}switch(n){case"input":Di(e),wh(e,r,!1);break;case"textarea":Di(e),jh(e);break;case"option":r.value!=null&&e.setAttribute("value",""+cr(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?hs(e,!!r.multiple,i,!1):r.defaultValue!=null&&hs(e,!!r.multiple,r.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=$a)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return qe(t),null;case 6:if(e&&t.stateNode!=null)Rx(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(O(166));if(n=Cr(Ko.current),Cr(dn.current),Yi(t)){if(r=t.stateNode,n=t.memoizedProps,r[ln]=t,(i=r.nodeValue!==n)&&(e=jt,e!==null))switch(e.tag){case 3:Gi(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Gi(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[ln]=t,t.stateNode=r}return qe(t),null;case 13:if(ye(je),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(be&&wt!==null&&t.mode&1&&!(t.flags&128))Qg(),Ms(),t.flags|=98560,i=!1;else if(i=Yi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(O(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(O(317));i[ln]=t}else Ms(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;qe(t),i=!1}else Vt!==null&&(Ku(Vt),Vt=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||je.current&1?De===0&&(De=3):ff())),t.updateQueue!==null&&(t.flags|=4),qe(t),null);case 4:return Is(),Hu(e,t),e===null&&Go(t.stateNode.containerInfo),qe(t),null;case 10:return qd(t.type._context),qe(t),null;case 17:return dt(t.type)&&Ha(),qe(t),null;case 19:if(ye(je),i=t.memoizedState,i===null)return qe(t),null;if(r=(t.flags&128)!==0,a=i.rendering,a===null)if(r)po(i,!1);else{if(De!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=Qa(e),a!==null){for(t.flags|=128,po(i,!1),r=a.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,a=i.alternate,a===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=a.childLanes,i.lanes=a.lanes,i.child=a.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=a.memoizedProps,i.memoizedState=a.memoizedState,i.updateQueue=a.updateQueue,i.type=a.type,e=a.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return me(je,je.current&1|2),t.child}e=e.sibling}i.tail!==null&&Re()>zs&&(t.flags|=128,r=!0,po(i,!1),t.lanes=4194304)}else{if(!r)if(e=Qa(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),po(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!be)return qe(t),null}else 2*Re()-i.renderingStartTime>zs&&n!==1073741824&&(t.flags|=128,r=!0,po(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(n=i.last,n!==null?n.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Re(),t.sibling=null,n=je.current,me(je,r?n&1|2:n&1),t):(qe(t),null);case 22:case 23:return df(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?vt&1073741824&&(qe(t),t.subtreeFlags&6&&(t.flags|=8192)):qe(t),null;case 24:return null;case 25:return null}throw Error(O(156,t.tag))}function K1(e,t){switch(Wd(t),t.tag){case 1:return dt(t.type)&&Ha(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;
vendor: 25,693 bytes, line 40
40case 3:return Is(),ye(ut),ye(Xe),Zd(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Jd(t),null;case 13:if(ye(je),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(O(340));Ms()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ye(je),null;case 4:return Is(),null;case 10:return qd(t.type._context),null;case 22:case 23:return df(),null;case 24:return null;default:return null}}var Ki=!1,Ke=!1,X1=typeof WeakSet=="function"?WeakSet:Set,D=null;function ds(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ke(e,t,r)}else n.current=null}function Uu(e,t,n){try{n()}catch(r){ke(e,t,r)}}var dp=!1;function J1(e,t){if(Eu=Da,e=Lg(),Hd(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var s=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var a=0,l=-1,c=-1,u=0,f=0,h=e,d=null;t:for(;;){for(var v;h!==n||s!==0&&h.nodeType!==3||(l=a+s),h!==i||r!==0&&h.nodeType!==3||(c=a+r),h.nodeType===3&&(a+=h.nodeValue.length),(v=h.firstChild)!==null;)d=h,h=v;for(;;){if(h===e)break t;if(d===n&&++u===s&&(l=a),d===i&&++f===r&&(c=a),(v=h.nextSibling)!==null)break;h=d,d=h.parentNode}h=v}n=l===-1||c===-1?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(Tu={focusedElem:e,selectionRange:n},Da=!1,D=t;D!==null;)if(t=D,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,D=e;else for(;D!==null;){t=D;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var x=y.memoizedProps,b=y.memoizedState,m=t.stateNode,g=m.getSnapshotBeforeUpdate(t.elementType===t.type?x:$t(t.type,x),b);m.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(O(163))}}catch(j){ke(t,t.return,j)}if(e=t.sibling,e!==null){e.return=t.return,D=e;break}D=t.return}return y=dp,dp=!1,y}function Oo(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var s=r=r.next;do{if((s.tag&e)===e){var i=s.destroy;s.destroy=void 0,i!==void 0&&Uu(t,n,i)}s=s.next}while(s!==r)}}function Cl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Wu(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Ox(e){var t=e.alternate;t!==null&&(e.alternate=null,Ox(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ln],delete t[qo],delete t[Au],delete t[B1],delete t[M1])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function _x(e){return e.tag===5||e.tag===3||e.tag===4}function fp(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||_x(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Vu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=$a));else if(r!==4&&(e=e.child,e!==null))for(Vu(e,t,n),e=e.sibling;e!==null;)Vu(e,t,n),e=e.sibling}function Gu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Gu(e,t,n),e=e.sibling;e!==null;)Gu(e,t,n),e=e.sibling}var He=null,Wt=!1;function In(e,t,n){for(n=n.child;n!==null;)Bx(e,t,n),n=n.sibling}function Bx(e,t,n){if(un&&typeof un.onCommitFiberUnmount=="function")try{un.onCommitFiberUnmount(xl,n)}catch{}switch(n.tag){case 5:Ke||ds(n,t);case 6:var r=He,s=Wt;He=null,In(e,t,n),He=r,Wt=s,He!==null&&(Wt?(e=He,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):He.removeChild(n.stateNode));break;case 18:He!==null&&(Wt?(e=He,n=n.stateNode,e.nodeType===8?Tc(e.parentNode,n):e.nodeType===1&&Tc(e,n),Uo(e)):Tc(He,n.stateNode));break;case 4:r=He,s=Wt,He=n.stateNode.containerInfo,Wt=!0,In(e,t,n),He=r,Wt=s;break;case 0:case 11:case 14:case 15:if(!Ke&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){s=r=r.next;do{var i=s,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&Uu(n,t,a),s=s.next}while(s!==r)}In(e,t,n);break;case 1:if(!Ke&&(ds(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){ke(n,t,l)}In(e,t,n);break;case 21:In(e,t,n);break;case 22:n.mode&1?(Ke=(r=Ke)||n.memoizedState!==null,In(e,t,n),Ke=r):In(e,t,n);break;default:In(e,t,n)}}function hp(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new X1),t.forEach(function(r){var s=aj.bind(null,e,r);n.has(r)||(n.add(r),r.then(s,s))})}}function zt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var s=n[r];try{var i=e,a=t,l=a;e:for(;l!==null;){switch(l.tag){case 5:He=l.stateNode,Wt=!1;break e;case 3:He=l.stateNode.containerInfo,Wt=!0;break e;case 4:He=l.stateNode.containerInfo,Wt=!0;break e}l=l.return}if(He===null)throw Error(O(160));Bx(i,a,s),He=null,Wt=!1;var c=s.alternate;c!==null&&(c.return=null),s.return=null}catch(u){ke(s,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Mx(t,e),t=t.sibling}function Mx(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(zt(t,e),nn(e),r&4){try{Oo(3,e,e.return),Cl(3,e)}catch(x){ke(e,e.return,x)}try{Oo(5,e,e.return)}catch(x){ke(e,e.return,x)}}break;case 1:zt(t,e),nn(e),r&512&&n!==null&&ds(n,n.return);break;case 5:if(zt(t,e),nn(e),r&512&&n!==null&&ds(n,n.return),e.flags&32){var s=e.stateNode;try{zo(s,"")}catch(x){ke(e,e.return,x)}}if(r&4&&(s=e.stateNode,s!=null)){var i=e.memoizedProps,a=n!==null?n.memoizedProps:i,l=e.type,c=e.updateQueue;if(e.updateQueue=null,c!==null)try{l==="input"&&i.type==="radio"&&i.name!=null&&rg(s,i),gu(l,a);var u=gu(l,i);for(a=0;a<c.length;a+=2){var f=c[a],h=c[a+1];f==="style"?lg(s,h):f==="dangerouslySetInnerHTML"?ig(s,h):f==="children"?zo(s,h):Pd(s,f,h,u)}switch(l){case"input":du(s,i);break;case"textarea":sg(s,i);break;case"select":var d=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!i.multiple;var v=i.value;v!=null?hs(s,!!i.multiple,v,!1):d!==!!i.multiple&&(i.defaultValue!=null?hs(s,!!i.multiple,i.defaultValue,!0):hs(s,!!i.multiple,i.multiple?[]:"",!1))}s[qo]=i}catch(x){ke(e,e.return,x)}}break;case 6:if(zt(t,e),nn(e),r&4){if(e.stateNode===null)throw Error(O(162));s=e.stateNode,i=e.memoizedProps;try{s.nodeValue=i}catch(x){ke(e,e.return,x)}}break;case 3:if(zt(t,e),nn(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Uo(t.containerInfo)}catch(x){ke(e,e.return,x)}break;case 4:zt(t,e),nn(e);break;case 13:zt(t,e),nn(e),s=e.child,s.flags&8192&&(i=s.memoizedState!==null,s.stateNode.isHidden=i,!i||s.alternate!==null&&s.alternate.memoizedState!==null||(cf=Re())),r&4&&hp(e);break;case 22:if(f=n!==null&&n.memoizedState!==null,e.mode&1?(Ke=(u=Ke)||f,zt(t,e),Ke=u):zt(t,e),nn(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!f&&e.mode&1)for(D=e,f=e.child;f!==null;){for(h=D=f;D!==null;){switch(d=D,v=d.child,d.tag){case 0:case 11:case 14:case 15:Oo(4,d,d.return);break;case 1:ds(d,d.return);var y=d.stateNode;if(typeof y.componentWillUnmount=="function"){r=d,n=d.return;try{t=r,y.props=t.memoizedProps,y.state=t.memoizedState,y.componentWillUnmount()}catch(x){ke(r,n,x)}}break;case 5:ds(d,d.return);break;case 22:if(d.memoizedState!==null){mp(h);continue}}v!==null?(v.return=d,D=v):mp(h)}f=f.sibling}e:for(f=null,h=e;;){if(h.tag===5){if(f===null){f=h;try{s=h.stateNode,u?(i=s.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(l=h.stateNode,c=h.memoizedProps.style,a=c!=null&&c.hasOwnProperty("display")?c.display:null,l.style.display=ag("display",a))}catch(x){ke(e,e.return,x)}}}else if(h.tag===6){if(f===null)try{h.stateNode.nodeValue=u?"":h.memoizedProps}catch(x){ke(e,e.return,x)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===e)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;h.sibling===null;){if(h.return===null||h.return===e)break e;f===h&&(f=null),h=h.return}f===h&&(f=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:zt(t,e),nn(e),r&4&&hp(e);break;case 21:break;default:zt(t,e),nn(e)}}function nn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(_x(n)){var r=n;break e}n=n.return}throw Error(O(160))}switch(r.tag){case 5:var s=r.stateNode;r.flags&32&&(zo(s,""),r.flags&=-33);var i=fp(e);Gu(e,i,s);break;case 3:case 4:var a=r.stateNode.containerInfo,l=fp(e);Vu(e,l,a);break;default:throw Error(O(161))}}catch(c){ke(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Z1(e,t,n){D=e,Lx(e)}function Lx(e,t,n){for(var r=(e.mode&1)!==0;D!==null;){var s=D,i=s.child;if(s.tag===22&&r){var a=s.memoizedState!==null||Ki;if(!a){var l=s.alternate,c=l!==null&&l.memoizedState!==null||Ke;l=Ki;var u=Ke;if(Ki=a,(Ke=c)&&!u)for(D=s;D!==null;)a=D,c=a.child,a.tag===22&&a.memoizedState!==null?gp(s):c!==null?(c.return=a,D=c):gp(s);for(;i!==null;)D=i,Lx(i),i=i.sibling;D=s,Ki=l,Ke=u}pp(e)}else s.subtreeFlags&8772&&i!==null?(i.return=s,D=i):pp(e)}}function pp(e){for(;D!==null;){var t=D;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Ke||Cl(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Ke)if(n===null)r.componentDidMount();else{var s=t.elementType===t.type?n.memoizedProps:$t(t.type,n.memoizedProps);r.componentDidUpdate(s,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&Jh(t,i,r);break;case 3:var a=t.updateQueue;if(a!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Jh(t,a,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var f=u.memoizedState;if(f!==null){var h=f.dehydrated;h!==null&&Uo(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(O(163))}Ke||t.flags&512&&Wu(t)}catch(d){ke(t,t.return,d)}}if(t===e){D=null;break}if(n=t.sibling,n!==null){n.return=t.return,D=n;break}D=t.return}}function mp(e){for(;D!==null;){var t=D;if(t===e){D=null;break}var n=t.sibling;if(n!==null){n.return=t.return,D=n;break}D=t.return}}function gp(e){for(;D!==null;){var t=D;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Cl(4,t)}catch(c){ke(t,n,c)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var s=t.return;try{r.componentDidMount()}catch(c){ke(t,s,c)}}var i=t.return;try{Wu(t)}catch(c){ke(t,i,c)}break;case 5:var a=t.return;try{Wu(t)}catch(c){ke(t,a,c)}}}catch(c){ke(t,t.return,c)}if(t===e){D=null;break}var l=t.sibling;if(l!==null){l.return=t.return,D=l;break}D=t.return}}var ej=Math.ceil,Ja=Bn.ReactCurrentDispatcher,af=Bn.ReactCurrentOwner,_t=Bn.ReactCurrentBatchConfig,oe=0,$e=null,_e=null,Ue=0,vt=0,fs=gr(0),De=0,ei=null,Lr=0,El=0,lf=0,_o=null,lt=null,cf=0,zs=1/0,wn=null,Za=!1,Yu=null,or=null,Xi=!1,Jn=null,el=0,Bo=0,qu=null,ja=-1,Na=0;function st(){return oe&6?Re():ja!==-1?ja:ja=Re()}function ir(e){return e.mode&1?oe&2&&Ue!==0?Ue&-Ue:I1.transition!==null?(Na===0&&(Na=wg()),Na):(e=ce,e!==0||(e=window.event,e=e===void 0?16:Tg(e.type)),e):1}function qt(e,t,n,r){if(50<Bo)throw Bo=0,qu=null,Error(O(185));xi(e,n,r),(!(oe&2)||e!==$e)&&(e===$e&&(!(oe&2)&&(El|=n),De===4&&Vn(e,Ue)),ft(e,r),n===1&&oe===0&&!(t.mode&1)&&(zs=Re()+500,jl&&xr()))}function ft(e,t){var n=e.callbackNode;Ib(e,t);var r=Ia(e,e===$e?Ue:0);if(r===0)n!==null&&Ch(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Ch(n),t===1)e.tag===0?L1(xp.bind(null,e)):Gg(xp.bind(null,e)),O1(function(){!(oe&6)&&xr()}),n=null;else{switch(bg(r)){case 1:n=Bd;break;case 4:n=vg;break;case 16:n=La;break;case 536870912:n=yg;break;default:n=La}n=Wx(n,Ix.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Ix(e,t){if(ja=-1,Na=0,oe&6)throw Error(O(327));var n=e.callbackNode;if(vs()&&e.callbackNode!==n)return null;var r=Ia(e,e===$e?Ue:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=tl(e,r);else{t=r;var s=oe;oe|=2;var i=zx();($e!==e||Ue!==t)&&(wn=null,zs=Re()+500,Rr(e,t));do try{rj();break}catch(l){Dx(e,l)}while(!0);Yd(),Ja.current=i,oe=s,_e!==null?t=0:($e=null,Ue=0,t=De)}if(t!==0){if(t===2&&(s=bu(e),s!==0&&(r=s,t=Qu(e,s))),t===1)throw n=ei,Rr(e,0),Vn(e,r),ft(e,Re()),n;if(t===6)Vn(e,r);else{if(s=e.current.alternate,!(r&30)&&!tj(s)&&(t=tl(e,r),t===2&&(i=bu(e),i!==0&&(r=i,t=Qu(e,i))),t===1))throw n=ei,Rr(e,0),Vn(e,r),ft(e,Re()),n;switch(e.finishedWork=s,e.finishedLanes=r,t){case 0:case 1:throw Error(O(345));case 2:jr(e,lt,wn);break;case 3:if(Vn(e,r),(r&130023424)===r&&(t=cf+500-Re(),10<t)){if(Ia(e,0)!==0)break;if(s=e.suspendedLanes,(s&r)!==r){st(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=Pu(jr.bind(null,e,lt,wn),t);break}jr(e,lt,wn);break;case 4:if(Vn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,s=-1;0<r;){var a=31-Yt(r);i=1<<a,a=t[a],a>s&&(s=a),r&=~i}if(r=s,r=Re()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*ej(r/1960))-r,10<r){e.timeoutHandle=Pu(jr.bind(null,e,lt,wn),r);break}jr(e,lt,wn);break;case 5:jr(e,lt,wn);break;default:throw Error(O(329))}}}return ft(e,Re()),e.callbackNode===n?Ix.bind(null,e):null}function Qu(e,t){var n=_o;return e.current.memoizedState.isDehydrated&&(Rr(e,t).flags|=256),e=tl(e,t),e!==2&&(t=lt,lt=n,t!==null&&Ku(t)),e}function Ku(e){lt===null?lt=e:lt.push.apply(lt,e)}function tj(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var s=n[r],i=s.getSnapshot;s=s.value;try{if(!Kt(i(),s))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Vn(e,t){for(t&=~lf,t&=~El,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Yt(t),r=1<<n;e[n]=-1,t&=~r}}function xp(e){if(oe&6)throw Error(O(327));vs();var t=Ia(e,0);if(!(t&1))return ft(e,Re()),null;var n=tl(e,t);if(e.tag!==0&&n===2){var r=bu(e);r!==0&&(t=r,n=Qu(e,r))}if(n===1)throw n=ei,Rr(e,0),Vn(e,t),ft(e,Re()),n;if(n===6)throw Error(O(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,jr(e,lt,wn),ft(e,Re()),null}function uf(e,t){var n=oe;oe|=1;try{return e(t)}finally{oe=n,oe===0&&(zs=Re()+500,jl&&xr())}}function Ir(e){Jn!==null&&Jn.tag===0&&!(oe&6)&&vs();var t=oe;oe|=1;var n=_t.transition,r=ce;try{if(_t.transition=null,ce=1,e)return e()}finally{ce=r,_t.transition=n,oe=t,!(oe&6)&&xr()}}function df(){vt=fs.current,ye(fs)}function Rr(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,R1(n)),_e!==null)for(n=_e.return;n!==null;){var r=n;switch(Wd(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Ha();break;case 3:Is(),ye(ut),ye(Xe),Zd();break;case 5:Jd(r);break;case 4:Is();break;case 13:ye(je);break;case 19:ye(je);break;case 10:qd(r.type._context);break;case 22:case 23:df()}n=n.return}if($e=e,_e=e=ar(e.current,null),Ue=vt=t,De=0,ei=null,lf=El=Lr=0,lt=_o=null,Sr!==null){for(t=0;t<Sr.length;t++)if(n=Sr[t],r=n.interleaved,r!==null){n.interleaved=null;var s=r.next,i=n.pending;if(i!==null){var a=i.next;i.next=s,r.next=a}n.pending=r}Sr=null}return e}function Dx(e,t){do{var n=_e;try{if(Yd(),ya.current=Xa,Ka){for(var r=Ce.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}Ka=!1}if(Mr=0,Fe=Ie=Ce=null,Ro=!1,Xo=0,af.current=null,n===null||n.return===null){De=1,ei=t,_e=null;break}e:{var i=e,a=n.return,l=n,c=t;if(t=Ue,l.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var u=c,f=l,h=f.tag;if(!(f.mode&1)&&(h===0||h===11||h===15)){var d=f.alternate;d?(f.updateQueue=d.updateQueue,f.memoizedState=d.memoizedState,f.lanes=d.lanes):(f.updateQueue=null,f.memoizedState=null)}var v=sp(a);if(v!==null){v.flags&=-257,op(v,a,l,i,t),v.mode&1&&rp(i,u,t),t=v,c=u;var y=t.updateQueue;if(y===null){var x=new Set;x.add(c),t.updateQueue=x}else y.add(c);break e}else{if(!(t&1)){rp(i,u,t),ff();break e}c=Error(O(426))}}else if(be&&l.mode&1){var b=sp(a);if(b!==null){!(b.flags&65536)&&(b.flags|=256),op(b,a,l,i,t),Vd(Ds(c,l));break e}}i=c=Ds(c,l),De!==4&&(De=2),_o===null?_o=[i]:_o.push(i),i=a;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var m=bx(i,c,t);Xh(i,m);break e;case 1:l=c;var g=i.type,w=i.stateNode;if(!(i.flags&128)&&(typeof g.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&(or===null||!or.has(w)))){i.flags|=65536,t&=-t,i.lanes|=t;var j=jx(i,l,t);Xh(i,j);break e}}i=i.return}while(i!==null)}$x(n)}catch(N){t=N,_e===n&&n!==null&&(_e=n=n.return);continue}break}while(!0)}function zx(){var e=Ja.current;return Ja.current=Xa,e===null?Xa:e}function ff(){(De===0||De===3||De===2)&&(De=4),$e===null||!(Lr&268435455)&&!(El&268435455)||Vn($e,Ue)}function tl(e,t){var n=oe;oe|=2;var r=zx();($e!==e||Ue!==t)&&(wn=null,Rr(e,t));do try{nj();break}catch(s){Dx(e,s)}while(!0);if(Yd(),oe=n,Ja.current=r,_e!==null)throw Error(O(261));return $e=null,Ue=0,De}function nj(){for(;_e!==null;)Fx(_e)}function rj(){for(;_e!==null&&!kb();)Fx(_e)}function Fx(e){var t=Ux(e.alternate,e,vt);e.memoizedProps=e.pendingProps,t===null?$x(e):_e=t,af.current=null}function $x(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=K1(n,t),n!==null){n.flags&=32767,_e=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{De=6,_e=null;return}}else if(n=Q1(n,t,vt),n!==null){_e=n;return}if(t=t.sibling,t!==null){_e=t;return}_e=t=e}while(t!==null);De===0&&(De=5)}function jr(e,t,n){var r=ce,s=_t.transition;try{_t.transition=null,ce=1,sj(e,t,n,r)}finally{_t.transition=s,ce=r}return null}function sj(e,t,n,r){do vs();while(Jn!==null);if(oe&6)throw Error(O(327));n=e.finishedWork;var s=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(O(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(Db(e,i),e===$e&&(_e=$e=null,Ue=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Xi||(Xi=!0,Wx(La,function(){return vs(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=_t.transition,_t.transition=null;var a=ce;ce=1;var l=oe;oe|=4,af.current=null,J1(e,n),Mx(n,e),S1(Tu),Da=!!Eu,Tu=Eu=null,e.current=n,Z1(n),Pb(),oe=l,ce=a,_t.transition=i}else e.current=n;if(Xi&&(Xi=!1,Jn=e,el=s),i=e.pendingLanes,i===0&&(or=null),Ob(n.stateNode),ft(e,Re()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)s=t[n],r(s.value,{componentStack:s.stack,digest:s.digest});if(Za)throw Za=!1,e=Yu,Yu=null,e;return el&1&&e.tag!==0&&vs(),i=e.pendingLanes,i&1?e===qu?Bo++:(Bo=0,qu=e):Bo=0,xr(),null}function vs(){if(Jn!==null){var e=bg(el),t=_t.transition,n=ce;try{if(_t.transition=null,ce=16>e?16:e,Jn===null)var r=!1;else{if(e=Jn,Jn=null,el=0,oe&6)throw Error(O(331));var s=oe;for(oe|=4,D=e.current;D!==null;){var i=D,a=i.child;if(D.flags&16){var l=i.deletions;if(l!==null){for(var c=0;c<l.length;c++){var u=l[c];for(D=u;D!==null;){var f=D;switch(f.tag){case 0:case 11:case 15:Oo(8,f,i)}var h=f.child;if(h!==null)h.return=f,D=h;else for(;D!==null;){f=D;var d=f.sibling,v=f.return;if(Ox(f),f===u){D=null;break}if(d!==null){d.return=v,D=d;break}D=v}}}var y=i.alternate;if(y!==null){var x=y.child;if(x!==null){y.child=null;do{var b=x.sibling;x.sibling=null,x=b}while(x!==null)}}D=i}}if(i.subtreeFlags&2064&&a!==null)a.return=i,D=a;else e:for(;D!==null;){if(i=D,i.flags&2048)switch(i.tag){case 0:case 11:case 15:Oo(9,i,i.return)}var m=i.sibling;if(m!==null){m.return=i.return,D=m;break e}D=i.return}}var g=e.current;for(D=g;D!==null;){a=D;var w=a.child;if(a.subtreeFlags&2064&&w!==null)w.return=a,D=w;else e:for(a=g;D!==null;){if(l=D,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:Cl(9,l)}}catch(N){ke(l,l.return,N)}if(l===a){D=null;break e}var j=l.sibling;if(j!==null){j.return=l.return,D=j;break e}D=l.return}}if(oe=s,xr(),un&&typeof un.onPostCommitFiberRoot=="function")try{un.onPostCommitFiberRoot(xl,e)}catch{}r=!0}return r}finally{ce=n,_t.transition=t}}return!1}function vp(e,t,n){t=Ds(n,t),t=bx(e,t,1),e=sr(e,t,1),t=st(),e!==null&&(xi(e,1,t),ft(e,t))}function ke(e,t,n){if(e.tag===3)vp(e,e,n);else for(;t!==null;){if(t.tag===3){vp(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(or===null||!or.has(r))){e=Ds(n,e),e=jx(t,e,1),t=sr(t,e,1),e=st(),t!==null&&(xi(t,1,e),ft(t,e));break}}t=t.return}}function oj(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=st(),e.pingedLanes|=e.suspendedLanes&n,$e===e&&(Ue&n)===n&&(De===4||De===3&&(Ue&130023424)===Ue&&500>Re()-cf?Rr(e,0):lf|=n),ft(e,t)}function Hx(e,t){t===0&&(e.mode&1?(t=$i,$i<<=1,!($i&130023424)&&($i=4194304)):t=1);var n=st();e=An(e,t),e!==null&&(xi(e,t,n),ft(e,n))}function ij(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Hx(e,n)}function aj(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,s=e.memoizedState;s!==null&&(n=s.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(O(314))}r!==null&&r.delete(t),Hx(e,n)}var Ux;Ux=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ut.current)ct=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ct=!1,q1(e,t,n);ct=!!(e.flags&131072)}else ct=!1,be&&t.flags&1048576&&Yg(t,Va,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ba(e,t),e=t.pendingProps;var s=Bs(t,Xe.current);xs(t,n),s=tf(null,t,r,e,s,n);var i=nf();return t.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,dt(r)?(i=!0,Ua(t)):i=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,Kd(t),s.updater=Sl,t.stateNode=s,s._reactInternals=t,Lu(t,r,e,n),t=zu(null,t,r,!0,i,n)):(t.tag=0,be&&i&&Ud(t),Ze(null,t,s,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ba(e,t),e=t.pendingProps,s=r._init,r=s(r._payload),t.type=r,s=t.tag=cj(r),e=$t(r,e),s){case 0:t=Du(null,t,r,e,n);break e;case 1:t=lp(null,t,r,e,n);break e;case 11:t=ip(null,t,r,e,n);break e;case 14:t=ap(null,t,r,$t(r.type,e),n);break e}throw Error(O(306,r,""))}return t;case 0:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:$t(r,s),Du(e,t,r,s,n);case 1:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:$t(r,s),lp(e,t,r,s,n);case 3:e:{if(Ex(t),e===null)throw Error(O(387));r=t.pendingProps,i=t.memoizedState,s=i.element,Zg(e,t),qa(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){s=Ds(Error(O(423)),t),t=cp(e,t,r,n,s);break e}else if(r!==s){s=Ds(Error(O(424)),t),t=cp(e,t,r,n,s);break e}else for(wt=rr(t.stateNode.containerInfo.firstChild),jt=t,be=!0,Vt=null,n=Xg(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ms(),r===s){t=Rn(e,t,n);break e}Ze(e,t,r,n)}t=t.child}return t;case 5:return ex(t),e===null&&_u(t),r=t.type,s=t.pendingProps,i=e!==null?e.memoizedProps:null,a=s.children,ku(r,s)?a=null:i!==null&&ku(r,i)&&(t.flags|=32),Cx(e,t),Ze(e,t,a,n),t.child;case 6:return e===null&&_u(t),null;case 13:return Tx(e,t,n);case 4:return Xd(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ls(t,null,r,n):Ze(e,t,r,n),t.child;case 11:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:$t(r,s),ip(e,t,r,s,n);case 7:return Ze(e,t,t.pendingProps,n),t.child;case 8:return Ze(e,t,t.pendingProps.children,n),t.child;case 12:return Ze(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,s=t.pendingProps,i=t.memoizedProps,a=s.value,me(Ga,r._currentValue),r._currentValue=a,i!==null)if(Kt(i.value,a)){if(i.children===s.children&&!ut.current){t=Rn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){a=i.child;for(var c=l.firstContext;c!==null;){if(c.context===r){if(i.tag===1){c=Cn(-1,n&-n),c.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var f=u.pending;f===null?c.next=c:(c.next=f.next,f.next=c),u.pending=c}}i.lanes|=n,c=i.alternate,c!==null&&(c.lanes|=n),Bu(i.return,n,t),l.lanes|=n;break}c=c.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(O(341));a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),Bu(a,n,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}Ze(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,r=t.pendingProps.children,xs(t,n),s=Bt(s),r=r(s),t.flags|=1,Ze(e,t,r,n),t.child;case 14:return r=t.type,s=$t(r,t.pendingProps),s=$t(r.type,s),ap(e,t,r,s,n);case 15:return Nx(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:$t(r,s),ba(e,t),t.tag=1,dt(r)?(e=!0,Ua(t)):e=!1,xs(t,n),w
vendor: 5,313 bytes, line 40
40x(t,r,s),Lu(t,r,s,n),zu(null,t,r,!0,e,n);case 19:return kx(e,t,n);case 22:return Sx(e,t,n)}throw Error(O(156,t.tag))};function Wx(e,t){return xg(e,t)}function lj(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ot(e,t,n,r){return new lj(e,t,n,r)}function hf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function cj(e){if(typeof e=="function")return hf(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Rd)return 11;if(e===Od)return 14}return 2}function ar(e,t){var n=e.alternate;return n===null?(n=Ot(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Sa(e,t,n,r,s,i){var a=2;if(r=e,typeof e=="function")hf(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case ns:return Or(n.children,s,i,t);case Ad:a=8,s|=8;break;case iu:return e=Ot(12,n,t,s|2),e.elementType=iu,e.lanes=i,e;case au:return e=Ot(13,n,t,s),e.elementType=au,e.lanes=i,e;case lu:return e=Ot(19,n,t,s),e.elementType=lu,e.lanes=i,e;case eg:return Tl(n,s,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Jm:a=10;break e;case Zm:a=9;break e;case Rd:a=11;break e;case Od:a=14;break e;case Hn:a=16,r=null;break e}throw Error(O(130,e==null?e:typeof e,""))}return t=Ot(a,n,t,s),t.elementType=e,t.type=r,t.lanes=i,t}function Or(e,t,n,r){return e=Ot(7,e,r,t),e.lanes=n,e}function Tl(e,t,n,r){return e=Ot(22,e,r,t),e.elementType=eg,e.lanes=n,e.stateNode={isHidden:!1},e}function Mc(e,t,n){return e=Ot(6,e,null,t),e.lanes=n,e}function Lc(e,t,n){return t=Ot(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function uj(e,t,n,r,s){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gc(0),this.expirationTimes=gc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gc(0),this.identifierPrefix=r,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function pf(e,t,n,r,s,i,a,l,c){return e=new uj(e,t,n,l,c),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Ot(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Kd(i),e}function dj(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ts,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Vx(e){if(!e)return ur;e=e._reactInternals;e:{if(Hr(e)!==e||e.tag!==1)throw Error(O(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(dt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(O(171))}if(e.tag===1){var n=e.type;if(dt(n))return Vg(e,n,t)}return t}function Gx(e,t,n,r,s,i,a,l,c){return e=pf(n,r,!0,e,s,i,a,l,c),e.context=Vx(null),n=e.current,r=st(),s=ir(n),i=Cn(r,s),i.callback=t??null,sr(n,i,s),e.current.lanes=s,xi(e,s,r),ft(e,r),e}function kl(e,t,n,r){var s=t.current,i=st(),a=ir(s);return n=Vx(n),t.context===null?t.context=n:t.pendingContext=n,t=Cn(i,a),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=sr(s,t,a),e!==null&&(qt(e,s,a,i),va(e,s,a)),a}function nl(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function yp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function mf(e,t){yp(e,t),(e=e.alternate)&&yp(e,t)}function fj(){return null}var Yx=typeof reportError=="function"?reportError:function(e){console.error(e)};function gf(e){this._internalRoot=e}Pl.prototype.render=gf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(O(409));kl(e,t,null,null)};Pl.prototype.unmount=gf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ir(function(){kl(null,e,null,null)}),t[Pn]=null}};function Pl(e){this._internalRoot=e}Pl.prototype.unstable_scheduleHydration=function(e){if(e){var t=Sg();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Wn.length&&t!==0&&t<Wn[n].priority;n++);Wn.splice(n,0,e),n===0&&Eg(e)}};function xf(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Al(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function wp(){}
vendor: 5,083 bytes, line 40
40function hj(e,t,n,r,s){if(s){if(typeof r=="function"){var i=r;r=function(){var u=nl(a);i.call(u)}}var a=Gx(t,r,e,0,null,!1,!1,"",wp);return e._reactRootContainer=a,e[Pn]=a.current,Go(e.nodeType===8?e.parentNode:e),Ir(),a}for(;s=e.lastChild;)e.removeChild(s);if(typeof r=="function"){var l=r;r=function(){var u=nl(c);l.call(u)}}var c=pf(e,0,!1,null,null,!1,!1,"",wp);return e._reactRootContainer=c,e[Pn]=c.current,Go(e.nodeType===8?e.parentNode:e),Ir(function(){kl(t,c,n,r)}),c}function Rl(e,t,n,r,s){var i=n._reactRootContainer;if(i){var a=i;if(typeof s=="function"){var l=s;s=function(){var c=nl(a);l.call(c)}}kl(t,a,e,s)}else a=hj(n,t,e,s,r);return nl(a)}jg=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=No(t.pendingLanes);n!==0&&(Md(t,n|1),ft(t,Re()),!(oe&6)&&(zs=Re()+500,xr()))}break;case 13:Ir(function(){var r=An(e,1);if(r!==null){var s=st();qt(r,e,1,s)}}),mf(e,1)}};Ld=function(e){if(e.tag===13){var t=An(e,134217728);if(t!==null){var n=st();qt(t,e,134217728,n)}mf(e,134217728)}};Ng=function(e){if(e.tag===13){var t=ir(e),n=An(e,t);if(n!==null){var r=st();qt(n,e,t,r)}mf(e,t)}};Sg=function(){return ce};Cg=function(e,t){var n=ce;try{return ce=e,t()}finally{ce=n}};vu=function(e,t,n){switch(t){case"input":if(du(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var s=bl(r);if(!s)throw Error(O(90));ng(r),du(r,s)}}}break;case"textarea":sg(e,n);break;case"select":t=n.value,t!=null&&hs(e,!!n.multiple,t,!1)}};dg=uf;fg=Ir;var pj={usingClientEntryPoint:!1,Events:[yi,is,bl,cg,ug,uf]},mo={findFiberByHostInstance:Nr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},mj={bundleType:mo.bundleType,version:mo.version,rendererPackageName:mo.rendererPackageName,rendererConfig:mo.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Bn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=mg(e),e===null?null:e.stateNode},findFiberByHostInstance:mo.findFiberByHostInstance||fj,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ji=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ji.isDisabled&&Ji.supportsFiber)try{xl=Ji.inject(mj),un=Ji}catch{}}Ct.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=pj;Ct.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!xf(t))throw Error(O(200));return dj(e,t,null,n)};Ct.createRoot=function(e,t){if(!xf(e))throw Error(O(299));var n=!1,r="",s=Yx;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=pf(e,1,!1,null,null,n,!1,r,s),e[Pn]=t.current,Go(e.nodeType===8?e.parentNode:e),new gf(t)};Ct.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(O(188)):(e=Object.keys(e).join(","),Error(O(268,e)));return e=mg(t),e=e===null?null:e.stateNode,e};Ct.flushSync=function(e){return Ir(e)};Ct.hydrate=function(e,t,n){if(!Al(t))throw Error(O(200));return Rl(null,e,t,!0,n)};Ct.hydrateRoot=function(e,t,n){if(!xf(e))throw Error(O(405));var r=n!=null&&n.hydratedSources||null,s=!1,i="",a=Yx;if(n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),t=Gx(t,null,e,1,n??null,s,!1,i,a),e[Pn]=t.current,Go(e),r)for(e=0;e<r.length;e++)n=r[e],s=n._getVersion,s=s(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,s]:t.mutableSourceEagerHydrationData.push(n,s);return new Pl(t)};Ct.render=function(e,t,n){if(!Al(t))throw Error(O(200));return Rl(null,e,t,!1,n)};Ct.unmountComponentAtNode=function(e){if(!Al(e))throw Error(O(40));return e._reactRootContainer?(Ir(function(){Rl(null,null,e,!1,function(){e._reactRootContainer=null,e[Pn]=null})}),!0):!1};Ct.unstable_batchedUpdates=uf;Ct.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Al(n))throw Error(O(200));if(e==null||e._reactInternals===void 0)throw Error(O(38));return Rl(e,t,n,!1,r)};Ct.version="18.3.1-next-f1338f8080-20240426";function qx(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(qx)}catch(e){console.error(e)}}qx(),qm.exports=Ct;var qs=qm.exports;const vf=mi(qs);var Qx,bp=qs;Qx=bp.createRoot,bp.hydrateRoot;var gj=typeof Element<"u",xj=typeof Map=="function",vj=typeof Set=="function",yj=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Ca(e,t){if(e===t)return!0;
40if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,s;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Ca(e[r],t[r]))return!1;return!0}var i;if(xj&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;for(i=e.entries();!(r=i.next()).done;)if(!Ca(r.value[1],t.get(r.value[0])))return!1;return!0}if(vj&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(yj&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,s[r]))return!1;if(gj&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((s[r]==="_owner"||s[r]==="__v"||s[r]==="__o")&&e.$$typeof)&&!Ca(e[s[r]],t[s[r]]))return!1;return!0}return e!==e&&t!==t}var wj=function(t,n){try{return Ca(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const bj=mi(wj);var jj=function(e,t,n,r,s,i,a,l){if(!e){var c;if(t===void 0)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,s,i,a,l],f=0;c=new Error(t.replace(/%s/g,function(){return u[f++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}},Nj=jj;const jp=mi(Nj);var Sj=function(t,n,r,s){var i=r?r.call(s,t,n):void 0;if(i!==void 0)return!!i;if(t===n)return!0;if(typeof t!="object"||!t||typeof n!="object"||!n)return!1;var a=Object.keys(t),l=Object.keys(n);if(a.length!==l.length)return!1;for(var c=Object.prototype.hasOwnProperty.bind(n),u=0;u<a.length;u++){var f=a[u];if(!c(f))return!1;var h=t[f],d=n[f];if(i=r?r.call(s,h,d,f):void 0,i===!1||i===void 0&&h!==d)return!1}return!0};const Cj=mi(Sj);var Kx=(e=>(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(Kx||{}),Ic={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]},meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}},Np=Object.values(Kx),Ol={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},Xx=Object.entries(Ol).reduce((e,[t,n])=>(e[n]=t,e),{}),Gt="data-rh",ys={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},ws=(e,t)=>{for(let n=e.length-1;n>=0;n-=1){const r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},Ej=e=>{let t=ws(e,"title");const n=ws(e,ys.TITLE_TEMPLATE);if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,()=>t);const r=ws(e,ys.DEFAULT_TITLE);return t||r||void 0},Tj=e=>ws(e,ys.ON_CHANGE_CLIENT_STATE)||(()=>{}),Dc=(e,t)=>t.filter(n=>typeof n[e]<"u").map(n=>n[e]).reduce((n,r)=>({...n,...r}),{}),kj=(e,t)=>t.filter(n=>typeof n.base<"u").map(n=>n.base).reverse().reduce((n,r)=>{if(!n.length){const s=Object.keys(r);for(let i=0;i<s.length;i+=1){const l=s[i].toLowerCase();if(e.indexOf(l)!==-1&&r[l])return n.concat(r)}}return n},[]),Pj=e=>console&&typeof console.warn=="function"&&console.warn(e),go=(e,t,n)=>{const r={};return n.filter(s=>Array.isArray(s[e])?!0:(typeof s[e]<"u"&&Pj(`Helmet: ${e} should be of type "Array". Instead found type "${typeof s[e]}"`),!1)).map(s=>s[e]).reverse().reduce((s,i)=>{const a={};i.filter(c=>{let u;const f=Object.keys(c);for(let d=0;d<f.length;d+=1){const v=f[d],y=v.toLowerCase();t.indexOf(y)!==-1&&!(u==="rel"&&c[u].toLowerCase()==="canonical")&&!(y==="rel"&&c[y].toLowerCase()==="stylesheet")&&(u=y),t.indexOf(v)!==-1&&(v==="innerHTML"||v==="cssText"||v==="itemprop")&&(u=v)}if(!u||!c[u])return!1;const h=c[u].toLowerCase();return r[u]||(r[u]={}),a[u]||(a[u]={}),r[u][h]?!1:(a[u][h]=!0,!0)}
40).reverse().forEach(c=>s.push(c));const l=Object.keys(a);for(let c=0;c<l.length;c+=1){const u=l[c],f={...r[u],...a[u]};r[u]=f}return s},[]).reverse()},Aj=(e,t)=>{if(Array.isArray(e)&&e.length){for(let n=0;n<e.length;n+=1)if(e[n][t])return!0}return!1},Rj=e=>({baseTag:kj(["href"],e),bodyAttributes:Dc("bodyAttributes",e),defer:ws(e,ys.DEFER),encode:ws(e,ys.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:Dc("htmlAttributes",e),linkTags:go("link",["rel","href"],e),metaTags:go("meta",["name","charset","http-equiv","property","itemprop"],e),noscriptTags:go("noscript",["innerHTML"],e),onChangeClientState:Tj(e),scriptTags:go("script",["src","innerHTML"],e),styleTags:go("style",["cssText"],e),title:Ej(e),titleAttributes:Dc("titleAttributes",e),prioritizeSeoTags:Aj(e,ys.PRIORITIZE_SEO_TAGS)}),Jx=e=>Array.isArray(e)?e.join(""):e,Oj=(e,t)=>{const n=Object.keys(e);for(let r=0;r<n.length;r+=1)if(t[n[r]]&&t[n[r]].includes(e[n[r]]))return!0;return!1},zc=(e,t)=>Array.isArray(e)?e.reduce((n,r)=>(Oj(r,t)?n.priority.push(r):n.default.push(r),n),{priority:[],default:[]}):{default:e,priority:[]},Sp=(e,t)=>({...e,[t]:void 0}),_j=["noscript","script","style"],Xu=(e,t=!0)=>t===!1?String(e):String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;"),Zx=e=>Object.keys(e).reduce((t,n)=>{const r=typeof e[n]<"u"?`${n}="${e[n]}"`:`${n}`;return t?`${t} ${r}`:r},""),Bj=(e,t,n,r)=>{const s=Zx(n),i=Jx(t);return s?`<${e} ${Gt}="true" ${s}>${Xu(i,r)}</${e}>`:`<${e} ${Gt}="true">${Xu(i,r)}</${e}>`},Mj=(e,t,n=!0)=>t.reduce((r,s)=>{const i=s,a=Object.keys(i).filter(u=>!(u==="innerHTML"||u==="cssText")).reduce((u,f)=>{const h=typeof i[f]>"u"?f:`${f}="${Xu(i[f],n)}"`;return u?`${u} ${h}`:h},""),l=i.innerHTML||i.cssText||"",c=_j.indexOf(e)===-1;return`${r}<${e} ${Gt}="true" ${a}${c?"/>":`>${l}</${e}>`}`},""),ev=(e,t={})=>Object.keys(e).reduce((n,r)=>{const s=Ol[r];return n[s||r]=e[r],n},t),Lj=(e,t,n)=>{const r={key:t,[Gt]:!0},s=ev(n,r);return[P.createElement("title",s,t)]},Ea=(e,t)=>t.map((n,r)=>{const s={key:r,[Gt]:!0};return Object.keys(n).forEach(i=>{const l=Ol[i]||i;if(l==="innerHTML"||l==="cssText"){const c=n.innerHTML||n.cssText;s.dangerouslySetInnerHTML={__html:c}}else s[l]=n[i]}),P.createElement(e,s)}),kt=(e,t,n=!0)=>{switch(e){case"title":return{toComponent:()=>Lj(e,t.title,t.titleAttributes),toString:()=>Bj(e,t.title,t.titleAttributes,n)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>ev(t),toString:()=>Zx(t)};default:return{toComponent:()=>Ea(e,t),toString:()=>Mj(e,t,n)}}},Ij=({metaTags:e,linkTags:t,scriptTags:n,encode:r})=>{const s=zc(e,Ic.meta),i=zc(t,Ic.link),a=zc(n,Ic.script);return{priorityMethods:{toComponent:()=>[...Ea("meta",s.priority),...Ea("link",i.priority),...Ea("script",a.priority)],toString:()=>`${kt("meta",s.priority,r)} ${kt("link",i.priority,r)} ${kt("script",a.priority,r)}`},metaTags:s.default,linkTags:i.default,scriptTags:a.default}},Dj=e=>{const{baseTag:t,bodyAttributes:n,encode:r=!0,htmlAttributes:s,noscriptTags:i,styleTags:a,title:l="",titleAttributes:c,prioritizeSeoTags:u}=e;let{linkTags:f,metaTags:h,scriptTags:d}=e,v={toComponent:()=>[],toString:()=>""};return u&&({priorityMethods:v,linkTags:f,metaTags:h,scriptTags:d}=Ij(e)),{priority:v,base:kt("base",t,r),bodyAttributes:kt("bodyAttributes",n,r),htmlAttributes:kt("htmlAttributes",s,r),link:kt("link",f,r),meta:kt("meta",h,r),noscript:kt("noscript",i,r),script:kt("script",d,r),style:kt("style",a,r),title:kt("title",{title:l,titleAttributes:c},r)}},Ju=Dj,Zi=[],yf=!!(typeof window<"u"&&window.document&&window.document.createElement),Zu=class{constructor(e,t){xn(this,"instances",[]);xn(this,"canUseDOM",yf);xn(this,"context");xn(this,"value",{setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?Zi:this.instances,add:e=>{(this.canUseDOM?Zi:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?Zi:this.instances).indexOf(e);(this.canUseDOM?Zi:this.instances).splice(t,1)}}});this.context=e,this.canUseDOM=t||!1,t||(e.helmet=Ju({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},zj=parseInt(P.version.split(".")[0],10),ed=zj>=19,Fj={},tv=P.createContext(Fj),Er,nv=(Er=class extends p.Component{constructor(n){super(n);xn(this,"helmetData");ed?this.helmetData=null:this.helmetData=new Zu(this.props.context||{},Er.canUseDOM)}render(){return ed?P.createElement(P.Fragment,null,this.props.children):P.createElement(tv.Provider,{value:this.helmetData.value},this.props.children)}},xn(Er,"canUseDOM",yf),Er),Kr=(e,t)=>
40{const n=document.head||document.querySelector("head"),r=n.querySelectorAll(`${e}[${Gt}]`),s=[].slice.call(r),i=[];let a;return t&&t.length&&t.forEach(l=>{const c=document.createElement(e);for(const u in l)if(Object.prototype.hasOwnProperty.call(l,u))if(u==="innerHTML")c.innerHTML=l.innerHTML;else if(u==="cssText"){const f=l.cssText;c.appendChild(document.createTextNode(f))}else{const f=u,h=typeof l[f]>"u"?"":l[f];c.setAttribute(u,h)}c.setAttribute(Gt,"true"),s.some((u,f)=>(a=f,c.isEqualNode(u)))?s.splice(a,1):i.push(c)}),s.forEach(l=>{var c;return(c=l.parentNode)==null?void 0:c.removeChild(l)}),i.forEach(l=>n.appendChild(l)),{oldTags:s,newTags:i}},td=(e,t)=>{const n=document.getElementsByTagName(e)[0];if(!n)return;const r=n.getAttribute(Gt),s=r?r.split(","):[],i=[...s],a=Object.keys(t);for(const l of a){const c=t[l]||"";n.getAttribute(l)!==c&&n.setAttribute(l,c),s.indexOf(l)===-1&&s.push(l);const u=i.indexOf(l);u!==-1&&i.splice(u,1)}for(let l=i.length-1;l>=0;l-=1)n.removeAttribute(i[l]);s.length===i.length?n.removeAttribute(Gt):n.getAttribute(Gt)!==a.join(",")&&n.setAttribute(Gt,a.join(","))},$j=(e,t)=>{typeof e<"u"&&document.title!==e&&(document.title=Jx(e)),td("title",t)},Cp=(e,t)=>{const{baseTag:n,bodyAttributes:r,htmlAttributes:s,linkTags:i,metaTags:a,noscriptTags:l,onChangeClientState:c,scriptTags:u,styleTags:f,title:h,titleAttributes:d}=e;td("body",r),td("html",s),$j(h,d);const v={baseTag:Kr("base",n),linkTags:Kr("link",i),metaTags:Kr("meta",a),noscriptTags:Kr("noscript",l),scriptTags:Kr("script",u),styleTags:Kr("style",f)},y={},x={};Object.keys(v).forEach(b=>{const{newTags:m,oldTags:g}=v[b];m.length&&(y[b]=m),g.length&&(x[b]=v[b].oldTags)}),t&&t(),c(e,y,x)},xo=null,Hj=e=>{xo&&cancelAnimationFrame(xo),e.defer?xo=requestAnimationFrame(()=>{Cp(e,()=>{xo=null})}):(Cp(e),xo=null)},Uj=Hj,Ep=class extends p.Component{constructor(){super(...arguments);xn(this,"rendered",!1)}shouldComponentUpdate(t){return!Cj(t,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:t}=this.props.context;t.remove(this),this.emitChange()}emitChange(){const{helmetInstances:t,setHelmet:n}=this.props.context;let r=null;const s=Rj(t.get().map(i=>{const{context:a,...l}=i.props;return l}));nv.canUseDOM?Uj(s):Ju&&(r=Ju(s)),n(r)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:t}=this.props.context;t.add(this),this.emitChange()}render(){return this.init(),null}},Ta=[],Tp=e=>{const t={};for(const n of Object.keys(e))t[Xx[n]||n]=e[n];return t},wr=e=>{const t={};for(const n of Object.keys(e)){const r=Ol[n];t[r||n]=e[n]}return t},kp=(e,t)=>{if(!yf)return;const n=document.getElementsByTagName(e)[0];if(!n)return;const r="data-rh-managed",s=n.getAttribute(r),i=s?s.split(","):[],a=Object.keys(t);for(const l of i)a.includes(l)||n.removeAttribute(l);for(const l of a){const c=t[l];c==null||c===!1?n.removeAttribute(l):c===!0?n.setAttribute(l,""):n.setAttribute(l,String(c))}a.length>0?n.setAttribute(r,a.join(",")):n.removeAttribute(r)},Fc=()=>{const e={},t={};for(const n of Ta){const{htmlAttributes:r,bodyAttributes:s}=n.props;r&&Object.assign(e,Tp(r)),s&&Object.assign(t,Tp(s))}kp("html",e),kp("body",t)},Wj=class extends p.Component{componentDidMount(){Ta.push(this),Fc()}componentDidUpdate(){Fc()}componentWillUnmount(){const e=Ta.indexOf(this);e!==-1&&Ta.splice(e,1),Fc()}resolveTitle(){const{title:e,titleTemplate:t,defaultTitle:n}=this.props;return e&&t?t.replace(/%s/g,()=>Array.isArray(e)?e.join(""):e):e||n||void 0}renderTitle(){const e=this.resolveTitle();if(e===void 0)return null;const t=this.props.titleAttributes||{};return P.createElement("title",wr(t),e)}renderBase(){const{base:e}=this.props;return e?P.createElement("base",wr(e)):null}renderMeta(){const{meta:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>P.createElement("meta",{key:n,...wr(t)}))}renderLink(){const{link:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>P.createElement("link",{key:n,...wr(t)}))}renderScript(){const{script:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>{const{innerHTML:r,...s}=t,i=wr(s);return r&&(i.dangerouslySetInnerHTML={__html:r}),P.createElement("script",{key:n,...i})})}renderStyle(){const{style:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>{const{cssText:r,...s}=t,i=wr(s);return r&&(i.dangerouslySetInnerHTML={__html:r}),P.createElement("style",{key:n,...i})})}renderNoscript(){const{noscript:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>{const{innerHTML:r,...s}=t,i=wr(s);return r&&(i.dangerouslySetInnerHTML={__html:r}),P.createElement("noscript",{key:n,...i})})}render(){return P.createElement(P.Fragment,null,this.renderTitle(),this.renderBase(),this.renderMeta(),this.renderLink(),this.renderScript(),this.renderStyle(),this.renderNoscript())}},su,Qs=(su=class extends p.Component{shouldComponentUpdate(e){return!bj(Sp(this.props,"helmetData"),Sp(e,"helmetData"))}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case"script":case"noscript":return{innerHTML:t};case"style":return{cssText:t};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,t,n,r){return{...t,[e.type]:[...t[e.type]||[],{...n,...this.mapNestedChildrenToProps(e,r)}]}}mapObjectTypeChildren(e,t,n,r){switch(e.type){case"title":return{...t,[e.type]:r,titleAttributes:{...n}};case"body":return{...t,bodyAttributes:{...n}};case"html":return{...t,htmlAttributes:{...n}};default:return{...t,[e.type]:{...n}}}}mapArrayTypeChildrenToProps(e,t){let n={...t};return Object.keys(e).forEach(r=>{n={...n,[r]:e[r]}}),n}
40warnOnInvalidChildren(e,t){return jp(Np.some(n=>e.type===n),typeof e.type=="function"?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${Np.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),jp(!t||typeof t=="string"||Array.isArray(t)&&!t.some(n=>typeof n!="string"),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`}</${e.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(e,t){let n={};return P.Children.forEach(e,r=>{if(!r||!r.props)return;const{children:s,...i}=r.props,a=Object.keys(i).reduce((c,u)=>(c[Xx[u]||u]=i[u],c),{});let{type:l}=r;switch(typeof l=="symbol"?l=l.toString():this.warnOnInvalidChildren(r,s),l){case"Symbol(react.fragment)":t=this.mapChildrenToProps(s,t);break;case"link":case"meta":case"noscript":case"script":case"style":n=this.flattenArrayTypeChildren(r,n,a,s);break;default:t=this.mapObjectTypeChildren(r,t,a,s);break}}),this.mapArrayTypeChildrenToProps(n,t)}render(){const{children:e,...t}=this.props;let n={...t},{helmetData:r}=t;if(e&&(n=this.mapChildrenToProps(e,n)),r&&!(r instanceof Zu)){const s=r;r=new Zu(s.context,!0),delete n.helmetData}return ed?P.createElement(Wj,{...n}):r?P.createElement(Ep,{...n,context:r.value}):P.createElement(tv.Consumer,null,s=>P.createElement(Ep,{...n,context:s}))}},xn(su,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),su);const Vj=1,Gj=1e6;let $c=0;function Yj(){return $c=($c+1)%Number.MAX_SAFE_INTEGER,$c.toString()}const Hc=new Map,Pp=e=>{if(Hc.has(e))return;const t=setTimeout(()=>{Hc.delete(e),Mo({type:"REMOVE_TOAST",toastId:e})},Gj);Hc.set(e,t)},qj=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,Vj)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?Pp(n):e.toasts.forEach(r=>{Pp(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},ka=[];let Pa={toasts:[]};function Mo(e){Pa=qj(Pa,e),ka.forEach(t=>{t(Pa)})}function Qj({...e}){const t=Yj(),n=s=>Mo({type:"UPDATE_TOAST",toast:{...s,id:t}}),r=()=>Mo({type:"DISMISS_TOAST",toastId:t});return Mo({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:s=>{s||r()}}}),{id:t,dismiss:r,update:n}}function Kj(){const[e,t]=p.useState(Pa);return p.useEffect(()=>(ka.push(t),()=>{const n=ka.indexOf(t);n>-1&&ka.splice(n,1)}),[e]),{...e,toast:Qj,dismiss:n=>Mo({type:"DISMISS_TOAST",toastId:n})}}function ee(e,t,{checkForDefaultPrevented:n=!0}={}){return function(s){if(e==null||e(s),n===!1||!s.defaultPrevented)return t==null?void 0:t(s)}}function Xj(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function rv(...e){return t=>e.forEach(n=>Xj(n,t))}function fe(...e){return p.useCallback(rv(...e),e)}function Ur(e,t=[]){let n=[];function r(i,a){const l=p.createContext(a),c=n.length;n=[...n,a];function u(h){const{scope:d,children:v,...y}=h,x=(d==null?void 0:d[e][c])||l,b=p.useMemo(()=>y,Object.values(y));return o.jsx(x.Provider,{value:b,children:v})}function f(h,d){const v=(d==null?void 0:d[e][c])||l,y=p.useContext(v);if(y)return y;if(a!==void 0)return a;throw new Error(`\`${h}\` must be used within \`${i}\``)}return u.displayName=i+"Provider",[u,f]}const s=()=>{const i=n.map(a=>p.createContext(a));return function(l){const c=(l==null?void 0:l[e])||i;return p.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return s.scopeName=e,[r,Jj(s,...t)]}function Jj(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const a=r.reduce((l,{useScope:c,scopeName:u})=>{const h=c(i)[`__scope${u}`];return{...l,...h}},{});return p.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}var Fs=p.forwardRef((e,t)=>
vendor: 9,381 bytes, line 40
40{const{children:n,...r}=e,s=p.Children.toArray(n),i=s.find(Zj);if(i){const a=i.props.children,l=s.map(c=>c===i?p.Children.count(a)>1?p.Children.only(null):p.isValidElement(a)?a.props.children:null:c);return o.jsx(nd,{...r,ref:t,children:p.isValidElement(a)?p.cloneElement(a,void 0,l):null})}return o.jsx(nd,{...r,ref:t,children:n})});Fs.displayName="Slot";var nd=p.forwardRef((e,t)=>{const{children:n,...r}=e;if(p.isValidElement(n)){const s=tN(n);return p.cloneElement(n,{...eN(r,n.props),ref:t?rv(t,s):s})}return p.Children.count(n)>1?p.Children.only(null):null});nd.displayName="SlotClone";var sv=({children:e})=>o.jsx(o.Fragment,{children:e});function Zj(e){return p.isValidElement(e)&&e.type===sv}function eN(e,t){const n={...t};for(const r in t){const s=e[r],i=t[r];/^on[A-Z]/.test(r)?s&&i?n[r]=(...l)=>{i(...l),s(...l)}:s&&(n[r]=s):r==="style"?n[r]={...s,...i}:r==="className"&&(n[r]=[s,i].filter(Boolean).join(" "))}return{...e,...n}}function tN(e){var r,s;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function ov(e){const t=e+"CollectionProvider",[n,r]=Ur(t),[s,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=v=>{const{scope:y,children:x}=v,b=P.useRef(null),m=P.useRef(new Map).current;return o.jsx(s,{scope:y,itemMap:m,collectionRef:b,children:x})};a.displayName=t;const l=e+"CollectionSlot",c=P.forwardRef((v,y)=>{const{scope:x,children:b}=v,m=i(l,x),g=fe(y,m.collectionRef);return o.jsx(Fs,{ref:g,children:b})});c.displayName=l;const u=e+"CollectionItemSlot",f="data-radix-collection-item",h=P.forwardRef((v,y)=>{const{scope:x,children:b,...m}=v,g=P.useRef(null),w=fe(y,g),j=i(u,x);return P.useEffect(()=>(j.itemMap.set(g,{ref:g,...m}),()=>void j.itemMap.delete(g))),o.jsx(Fs,{[f]:"",ref:w,children:b})});h.displayName=u;function d(v){const y=i(e+"CollectionConsumer",v);return P.useCallback(()=>{const b=y.collectionRef.current;if(!b)return[];const m=Array.from(b.querySelectorAll(`[${f}]`));return Array.from(y.itemMap.values()).sort((j,N)=>m.indexOf(j.ref.current)-m.indexOf(N.ref.current))},[y.collectionRef,y.itemMap])}return[{Provider:a,Slot:c,ItemSlot:h},d,r]}var nN=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],te=nN.reduce((e,t)=>{const n=p.forwardRef((r,s)=>{const{asChild:i,...a}=r,l=i?Fs:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),o.jsx(l,{...a,ref:s})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function wf(e,t){e&&qs.flushSync(()=>e.dispatchEvent(t))}function Pe(e){const t=p.useRef(e);return p.useEffect(()=>{t.current=e}),p.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function iv(e,t=globalThis==null?void 0:globalThis.document){const n=Pe(e);p.useEffect(()=>{const r=s=>{s.key==="Escape"&&n(s)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var rN="DismissableLayer",rd="dismissableLayer.update",sN="dismissableLayer.pointerDownOutside",oN="dismissableLayer.focusOutside",Ap,av=p.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),lv=p.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:s,onFocusOutside:i,onInteractOutside:a,onDismiss:l,...c}=e,u=p.useContext(av),[f,h]=p.useState(null),d=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,v]=p.useState({}),y=fe(t,S=>h(S)),x=Array.from(u.layers),[b]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),m=x.indexOf(b),g=f?x.indexOf(f):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,j=g>=m,N=aN(S=>{const E=S.target,k=[...u.branches].some(A=>A.contains(E));!j||k||(s==null||s(S),a==null||a(S),S.defaultPrevented||l==null||l())},d),C=lN(S=>{const E=S.target;[...u.branches].some(A=>A.contains(E))||(i==null||i(S),a==null||a(S),S.defaultPrevented||l==null||l())},d);return iv(S=>{g===u.layers.size-1&&(r==null||r(S),!S.defaultPrevented&&l&&(S.preventDefault(),l()))},d),p.useEffect(()=>{if(f)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Ap=d.body.style.pointerEvents,d.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),Rp(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(d.body.style.pointerEvents=Ap)}},[f,d,n,u]),p.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),Rp())},[f,u]),p.useEffect(()=>{const S=()=>v({});return document.addEventListener(rd,S),()=>document.removeEventListener(rd,S)},[]),o.jsx(te.div,{...c,ref:y,style:{pointerEvents:w?j?"auto":"none":void 0,...e.style},onFocusCapture:ee(e.onFocusCapture,C.onFocusCapture),onBlurCapture:ee(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:ee(e.onPointerDownCapture,N.onPointerDownCapture)})});lv.displayName=rN;var iN="DismissableLayerBranch",cv=p.forwardRef((e,t)=>{const n=p.useContext(av),r=p.useRef(null),s=fe(t,r);return p.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),o.jsx(te.div,{...e,ref:s})});cv.displayName=iN;function aN(e,t=globalThis==null?void 0:globalThis.document){const n=Pe(e),r=p.useRef(!1),s=p.useRef(()=>{});return p.useEffect(()=>{const i=l=>{if(l.target&&!r.current){let c=function(){uv(sN,n,u,{discrete:!0})};const u={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",s.current),s.current=c,t.addEventListener("click",s.current,{once:!0})):c()}else t.removeEventListener("click",s.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",i),t.removeEventListener("click",s.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function lN(e,t=globalThis==null?void 0:globalThis.document){const n=Pe(e),r=p.useRef(!1);return p.useEffect(()=>{const s=i=>{i.target&&!r.current&&uv(oN,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",s),()=>t.removeEventListener("focusin",s)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Rp(){const e=new CustomEvent(rd);document.dispatchEvent(e)}function uv(e,t,n,{discrete:r}){const s=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&s.addEventListener(e,t,{once:!0}),r?wf(s,i):s.dispatchEvent(i)}var cN=lv,uN=cv,Ve=globalThis!=null&&globalThis.document?p.useLayoutEffect:()=>{},dN="Portal",dv=p.forwardRef((e,t)=>{var l;const{container:n,...r}=e,[s,i]=p.useState(!1);Ve(()=>i(!0),[]);const a=n||s&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return a?vf.createPortal(o.jsx(te.div,{...r,ref:t}),a):null});dv.displayName=dN;function fN(e,t){return p.useReducer((n,r)=>t[n][r]??n,e)}var Wr=e=>{const{present:t,children:n}=e,r=hN(t),s=typeof n=="function"?n({present:r.isPresent}):p.Children.only(n),i=fe(r.ref,pN(s));return typeof n=="function"||r.isPresent?p.cloneElement(s,{ref:i}):null};Wr.displayName="Presence";function hN(e){const[t,n]=p.useState(),r=p.useRef({}),s=p.useRef(e),i=p.useRef("none"),a=e?"mounted":"unmounted",[l,c]=fN(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return p.useEffect(()=>{const u=ea(r.current);i.current=l==="mounted"?u:"none"},[l]),Ve(()=>{const u=r.current,f=s.current;if(f!==e){const d=i.current,v=ea(u);e?c("MOUNT"):v==="none"||(u==null?void 0:u.display)==="none"?c("UNMOUNT"):c(f&&d!==v?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,c]),Ve(()=>{if(t){const u=h=>{const v=ea(r.current).includes(h.animationName);h.target===t&&v&&qs.flushSync(()=>c("ANIMATION_END"))},f=h=>{h.target===t&&(i.current=ea(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:p.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function ea(e){return(e==null?void 0:e.animationName)||"none"}function pN(e){var r,s;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function bi({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,s]=mN({defaultProp:t,onChange:n}),i=e!==void 0,a=i?e:r,l=Pe(n),c=p.useCallback(u=>{if(i){const h=typeof u=="function"?u(e):u;h!==e&&l(h)}else s(u)},[i,e,s,l]);return[a,c]}function mN({defaultProp:e,onChange:t}){const n=p.useState(e),[r]=n,s=p.useRef(r),i=Pe(t);return p.useEffect(()=>{s.current!==r&&(i(r),s.current=r)},[r,s,i]),n}var gN="VisuallyHidden",_l=p.forwardRef((e,t)=>o.jsx(te.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));_l.displayName=gN;
40var xN=_l,bf="ToastProvider",[jf,vN,yN]=ov("Toast"),[fv,JA]=Ur("Toast",[yN]),[wN,Bl]=fv(bf),hv=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:s="right",swipeThreshold:i=50,children:a}=e,[l,c]=p.useState(null),[u,f]=p.useState(0),h=p.useRef(!1),d=p.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${bf}\`. Expected non-empty \`string\`.`),o.jsx(jf.Provider,{scope:t,children:o.jsx(wN,{scope:t,label:n,duration:r,swipeDirection:s,swipeThreshold:i,toastCount:u,viewport:l,onViewportChange:c,onToastAdd:p.useCallback(()=>f(v=>v+1),[]),onToastRemove:p.useCallback(()=>f(v=>v-1),[]),isFocusedToastEscapeKeyDownRef:h,isClosePausedRef:d,children:a})})};hv.displayName=bf;var pv="ToastViewport",bN=["F8"],sd="toast.viewportPause",od="toast.viewportResume",mv=p.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=bN,label:s="Notifications ({hotkey})",...i}=e,a=Bl(pv,n),l=vN(n),c=p.useRef(null),u=p.useRef(null),f=p.useRef(null),h=p.useRef(null),d=fe(t,h,a.onViewportChange),v=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),y=a.toastCount>0;p.useEffect(()=>{const b=m=>{var w;r.every(j=>m[j]||m.code===j)&&((w=h.current)==null||w.focus())};return document.addEventListener("keydown",b),()=>document.removeEventListener("keydown",b)},[r]),p.useEffect(()=>{const b=c.current,m=h.current;if(y&&b&&m){const g=()=>{if(!a.isClosePausedRef.current){const C=new CustomEvent(sd);m.dispatchEvent(C),a.isClosePausedRef.current=!0}},w=()=>{if(a.isClosePausedRef.current){const C=new CustomEvent(od);m.dispatchEvent(C),a.isClosePausedRef.current=!1}},j=C=>{!b.contains(C.relatedTarget)&&w()},N=()=>{b.contains(document.activeElement)||w()};return b.addEventListener("focusin",g),b.addEventListener("focusout",j),b.addEventListener("pointermove",g),b.addEventListener("pointerleave",N),window.addEventListener("blur",g),window.addEventListener("focus",w),()=>{b.removeEventListener("focusin",g),b.removeEventListener("focusout",j),b.removeEventListener("pointermove",g),b.removeEventListener("pointerleave",N),window.removeEventListener("blur",g),window.removeEventListener("focus",w)}}},[y,a.isClosePausedRef]);const x=p.useCallback(({tabbingDirection:b})=>{const g=l().map(w=>{const j=w.ref.current,N=[j,...BN(j)];return b==="forwards"?N:N.reverse()});return(b==="forwards"?g.reverse():g).flat()},[l]);return p.useEffect(()=>{const b=h.current;if(b){const m=g=>{var N,C,S;const w=g.altKey||g.ctrlKey||g.metaKey;if(g.key==="Tab"&&!w){const E=document.activeElement,k=g.shiftKey;if(g.target===b&&k){(N=u.current)==null||N.focus();return}const I=x({tabbingDirection:k?"backwards":"forwards"}),W=I.findIndex(M=>M===E);Uc(I.slice(W+1))?g.preventDefault():k?(C=u.current)==null||C.focus():(S=f.current)==null||S.focus()}};return b.addEventListener("keydown",m),()=>b.removeEventListener("keydown",m)}},[l,x]),o.jsxs(uN,{ref:c,role:"region","aria-label":s.replace("{hotkey}",v),tabIndex:-1,style:{pointerEvents:y?void 0:"none"},children:[y&&o.jsx(id,{ref:u,onFocusFromOutsideViewport:()=>{const b=x({tabbingDirection:"forwards"});Uc(b)}}),o.jsx(jf.Slot,{scope:n,children:o.jsx(te.ol,{tabIndex:-1,...i,ref:d})}),y&&o.jsx(id,{ref:f,onFocusFromOutsideViewport:()=>{const b=x({tabbingDirection:"backwards"});Uc(b)}})]})});mv.displayName=pv;var gv="ToastFocusProxy",id=p.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...s}=e,i=Bl(gv,n);return o.jsx(_l,{"aria-hidden":!0,tabIndex:0,...s,ref:t,style:{position:"fixed"},onFocus:a=>{var u;const l=a.relatedTarget;!((u=i.viewport)!=null&&u.contains(l))&&r()}})});id.displayName=gv;var Ml="Toast",jN="toast.swipeStart",NN="toast.swipeMove",SN="toast.swipeCancel",CN="toast.swipeEnd",xv=p.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:s,onOpenChange:i,...a}=e,[l=!0,c]=bi({prop:r,defaultProp:s,onChange:i});return o.jsx(Wr,{present:n||l,children:o.jsx(kN,{open:l,...a,ref:t,onClose:()=>c(!1),onPause:Pe(e.onPause),onResume:Pe(e.onResume),onSwipeStart:ee(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:ee(e.onSwipeMove,u=>{const{x:f,y:h}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${f}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${h}px`)}),onSwipeCancel:ee(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:ee(e.onSwipeEnd,u=>{const{x:f,y:h}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${f}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${h}px`),c(!1)})})})});xv.displayName=Ml;var[EN,TN]=fv(Ml,{onClose(){}}),kN=p.forwardRef((e,t)=>
40{const{__scopeToast:n,type:r="foreground",duration:s,open:i,onClose:a,onEscapeKeyDown:l,onPause:c,onResume:u,onSwipeStart:f,onSwipeMove:h,onSwipeCancel:d,onSwipeEnd:v,...y}=e,x=Bl(Ml,n),[b,m]=p.useState(null),g=fe(t,M=>m(M)),w=p.useRef(null),j=p.useRef(null),N=s||x.duration,C=p.useRef(0),S=p.useRef(N),E=p.useRef(0),{onToastAdd:k,onToastRemove:A}=x,B=Pe(()=>{var V;(b==null?void 0:b.contains(document.activeElement))&&((V=x.viewport)==null||V.focus()),a()}),I=p.useCallback(M=>{!M||M===1/0||(window.clearTimeout(E.current),C.current=new Date().getTime(),E.current=window.setTimeout(B,M))},[B]);p.useEffect(()=>{const M=x.viewport;if(M){const V=()=>{I(S.current),u==null||u()},U=()=>{const G=new Date().getTime()-C.current;S.current=S.current-G,window.clearTimeout(E.current),c==null||c()};return M.addEventListener(sd,U),M.addEventListener(od,V),()=>{M.removeEventListener(sd,U),M.removeEventListener(od,V)}}},[x.viewport,N,c,u,I]),p.useEffect(()=>{i&&!x.isClosePausedRef.current&&I(N)},[i,N,x.isClosePausedRef,I]),p.useEffect(()=>(k(),()=>A()),[k,A]);const W=p.useMemo(()=>b?Sv(b):null,[b]);return x.viewport?o.jsxs(o.Fragment,{children:[W&&o.jsx(PN,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:W}),o.jsx(EN,{scope:n,onClose:B,children:qs.createPortal(o.jsx(jf.ItemSlot,{scope:n,children:o.jsx(cN,{asChild:!0,onEscapeKeyDown:ee(l,()=>{x.isFocusedToastEscapeKeyDownRef.current||B(),x.isFocusedToastEscapeKeyDownRef.current=!1}),children:o.jsx(te.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":x.swipeDirection,...y,ref:g,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:ee(e.onKeyDown,M=>{M.key==="Escape"&&(l==null||l(M.nativeEvent),M.nativeEvent.defaultPrevented||(x.isFocusedToastEscapeKeyDownRef.current=!0,B()))}),onPointerDown:ee(e.onPointerDown,M=>{M.button===0&&(w.current={x:M.clientX,y:M.clientY})}),onPointerMove:ee(e.onPointerMove,M=>{if(!w.current)return;const V=M.clientX-w.current.x,U=M.clientY-w.current.y,G=!!j.current,T=["left","right"].includes(x.swipeDirection),_=["left","up"].includes(x.swipeDirection)?Math.min:Math.max,z=T?_(0,V):0,L=T?0:_(0,U),H=M.pointerType==="touch"?10:2,Q={x:z,y:L},se={originalEvent:M,delta:Q};G?(j.current=Q,ta(NN,h,se,{discrete:!1})):Op(Q,x.swipeDirection,H)?(j.current=Q,ta(jN,f,se,{discrete:!1}),M.target.setPointerCapture(M.pointerId)):(Math.abs(V)>H||Math.abs(U)>H)&&(w.current=null)}),onPointerUp:ee(e.onPointerUp,M=>{const V=j.current,U=M.target;if(U.hasPointerCapture(M.pointerId)&&U.releasePointerCapture(M.pointerId),j.current=null,w.current=null,V){const G=M.currentTarget,T={originalEvent:M,delta:V};Op(V,x.swipeDirection,x.swipeThreshold)?ta(CN,v,T,{discrete:!0}):ta(SN,d,T,{discrete:!0}),G.addEventListener("click",_=>_.preventDefault(),{once:!0})}})})})}),x.viewport)})]}):null}),PN=e=>{const{__scopeToast:t,children:n,...r}=e,s=Bl(Ml,t),[i,a]=p.useState(!1),[l,c]=p.useState(!1);return ON(()=>a(!0)),p.useEffect(()=>{const u=window.setTimeout(()=>c(!0),1e3);return()=>window.clearTimeout(u)},[]),l?null:o.jsx(dv,{asChild:!0,children:o.jsx(_l,{...r,children:i&&o.jsxs(o.Fragment,{children:[s.label," ",n]})})})},AN="ToastTitle",vv=p.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return o.jsx(te.div,{...r,ref:t})});vv.displayName=AN;var RN="ToastDescription",yv=p.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return o.jsx(te.div,{...r,ref:t})});yv.displayName=RN;var wv="ToastAction",bv=p.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?o.jsx(Nv,{altText:n,asChild:!0,children:o.jsx(Nf,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${wv}\`. Expected non-empty \`string\`.`),null)});bv.displayName=wv;var jv="ToastClose",Nf=p.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,s=TN(jv,n);return o.jsx(Nv,{asChild:!0,children:o.jsx(te.button,{type:"button",...r,ref:t,onClick:ee(e.onClick,s.onClose)})})});Nf.displayName=jv;var Nv=p.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...s}=e;return o.jsx(te.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...s,ref:t})});function Sv(e){const t=[];
vendor: 7,711 bytes, lines 40-120
40return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),_N(r)){const s=r.ariaHidden||r.hidden||r.style.display==="none",i=r.dataset.radixToastAnnounceExclude==="";if(!s)if(i){const a=r.dataset.radixToastAnnounceAlt;a&&t.push(a)}else t.push(...Sv(r))}}),t}function ta(e,t,n,{discrete:r}){const s=n.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&s.addEventListener(e,t,{once:!0}),r?wf(s,i):s.dispatchEvent(i)}var Op=(e,t,n=0)=>{const r=Math.abs(e.x),s=Math.abs(e.y),i=r>s;return t==="left"||t==="right"?i&&r>n:!i&&s>n};function ON(e=()=>{}){const t=Pe(e);Ve(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function _N(e){return e.nodeType===e.ELEMENT_NODE}function BN(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const s=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||s?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Uc(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var MN=hv,Cv=mv,Ev=xv,Tv=vv,kv=yv,Pv=bv,Av=Nf;function Rv(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=Rv(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ov(){for(var e,t,n=0,r="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=Rv(e))&&(r&&(r+=" "),r+=t);return r}const _p=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Bp=Ov,Sf=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Bp(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:s,defaultVariants:i}=t,a=Object.keys(s).map(u=>{const f=n==null?void 0:n[u],h=i==null?void 0:i[u];if(f===null)return null;const d=_p(f)||_p(h);return s[u][d]}),l=n&&Object.entries(n).reduce((u,f)=>{let[h,d]=f;return d===void 0||(u[h]=d),u},{}),c=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,f)=>{let{class:h,className:d,...v}=f;return Object.entries(v).every(y=>{let[x,b]=y;return Array.isArray(b)?b.includes({...i,...l}[x]):{...i,...l}[x]===b})?[...u,h,d]:u},[]);return Bp(e,a,c,n==null?void 0:n.class,n==null?void 0:n.className)};/**
41 * @license lucide-react v0.487.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 LN=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),IN=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),Mp=e=>{const t=IN(e);return t.charAt(0).toUpperCase()+t.slice(1)},_v=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
46 * @license lucide-react v0.487.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 DN={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.487.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 zN=p.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:s="",children:i,iconNode:a,...l},c)=>p.createElement("svg",{ref:c,...DN,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:_v("lucide",s),...l},[...a.map(([u,f])=>p.createElement(u,f)),...Array.isArray(i)?i:[i]]));/**
56 * @license lucide-react v0.487.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 Lt=(e,t)=>{const n=p.forwardRef(({className:r,...s},i)=>p.createElement(zN,{ref:i,iconNode:t,className:_v(`lucide-${LN(Mp(e))}`,`lucide-${e}`,r),...s}));return n.displayName=Mp(e),n};/**
61 * @license lucide-react v0.487.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 FN=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],$N=Lt("arrow-left",FN);/**
66 * @license lucide-react v0.487.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 HN=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],UN=Lt("arrow-right",HN);/**
71 * @license lucide-react v0.487.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 WN=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],$=Lt("check",WN);/**
76 * @license lucide-react v0.487.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 VN=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],GN=Lt("chevron-down",VN);/**
81 * @license lucide-react v0.487.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 YN=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Ll=Lt("chevron-left",YN);/**
86 * @license lucide-react v0.487.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 qN=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Il=Lt("chevron-right",qN);/**
91 * @license lucide-react v0.487.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 QN=[["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"}]],Bv=Lt("circle-alert",QN);/**
96 * @license lucide-react v0.487.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 KN=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Sn=Lt("circle-check",KN);/**
101 * @license lucide-react v0.487.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 XN=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],En=Lt("circle-help",XN);/**
106 * @license lucide-react v0.487.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 JN=[["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"}]],Cf=Lt("external-link",JN);/**
111 * @license lucide-react v0.487.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 ZN=[["path",{d:"M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8",key:"1b2hhj"}],["polyline",{points:"16 6 12 2 8 6",key:"m901s6"}],["line",{x1:"12",x2:"12",y1:"2",y2:"15",key:"1p0rca"}]],Mv=Lt("share",ZN);/**
116 * @license lucide-react v0.487.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 eS=[["path",{d:"M18 6 6 18",key:"1bl5f8"}
vendor: 5,919 bytes, line 120
120],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],ji=Lt("x",eS),Ef="-",tS=e=>{const t=rS(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:a=>{const l=a.split(Ef);return l[0]===""&&l.length!==1&&l.shift(),Lv(l,t)||nS(a)},getConflictingClassGroupIds:(a,l)=>{const c=n[a]||[];return l&&r[a]?[...c,...r[a]]:c}}},Lv=(e,t)=>{var a;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),s=r?Lv(e.slice(1),r):void 0;if(s)return s;if(t.validators.length===0)return;const i=e.join(Ef);return(a=t.validators.find(({validator:l})=>l(i)))==null?void 0:a.classGroupId},Lp=/^\[(.+)\]$/,nS=e=>{if(Lp.test(e)){const t=Lp.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},rS=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return oS(Object.entries(e.classGroups),n).forEach(([i,a])=>{ad(a,r,i,t)}),r},ad=(e,t,n,r)=>{e.forEach(s=>{if(typeof s=="string"){const i=s===""?t:Ip(t,s);i.classGroupId=n;return}if(typeof s=="function"){if(sS(s)){ad(s(r),t,n,r);return}t.validators.push({validator:s,classGroupId:n});return}Object.entries(s).forEach(([i,a])=>{ad(a,Ip(t,i),n,r)})})},Ip=(e,t)=>{let n=e;return t.split(Ef).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},sS=e=>e.isThemeGetter,oS=(e,t)=>t?e.map(([n,r])=>{const s=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([a,l])=>[t+a,l])):i);return[n,s]}):e,iS=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const s=(i,a)=>{n.set(i,a),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let a=n.get(i);if(a!==void 0)return a;if((a=r.get(i))!==void 0)return s(i,a),a},set(i,a){n.has(i)?n.set(i,a):s(i,a)}}},Iv="!",aS=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,s=t[0],i=t.length,a=l=>{const c=[];let u=0,f=0,h;for(let b=0;b<l.length;b++){let m=l[b];if(u===0){if(m===s&&(r||l.slice(b,b+i)===t)){c.push(l.slice(f,b)),f=b+i;continue}if(m==="/"){h=b;continue}}m==="["?u++:m==="]"&&u--}const d=c.length===0?l:l.substring(f),v=d.startsWith(Iv),y=v?d.substring(1):d,x=h&&h>f?h-f:void 0;return{modifiers:c,hasImportantModifier:v,baseClassName:y,maybePostfixModifierPosition:x}};return n?l=>n({className:l,parseClassName:a}):a},lS=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},cS=e=>({cache:iS(e.cacheSize),parseClassName:aS(e),...tS(e)}),uS=/\s+/,dS=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:s}=t,i=[],a=e.trim().split(uS);let l="";for(let c=a.length-1;c>=0;c-=1){const u=a[c],{modifiers:f,hasImportantModifier:h,baseClassName:d,maybePostfixModifierPosition:v}=n(u);let y=!!v,x=r(y?d.substring(0,v):d);if(!x){if(!y){l=u+(l.length>0?" "+l:l);continue}if(x=r(d),!x){l=u+(l.length>0?" "+l:l);continue}y=!1}const b=lS(f).join(":"),m=h?b+Iv:b,g=m+x;if(i.includes(g))continue;i.push(g);const w=s(x,y);for(let j=0;j<w.length;++j){const N=w[j];i.push(m+N)}l=u+(l.length>0?" "+l:l)}return l};function fS(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Dv(t))&&(r&&(r+=" "),r+=n);return r}const Dv=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Dv(e[r]))&&(n&&(n+=" "),n+=t);return n};function hS(e,...t){let n,r,s,i=a;function a(c){const u=t.reduce((f,h)=>h(f),e());return n=cS(u),r=n.cache.get,s=n.cache.set,i=l,l(c)}function l(c){const u=r(c);if(u)return u;const f=dS(c,n);return s(c,f),f}return function(){return i(fS.apply(null,arguments))}}const xe=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},zv=/^\[(?:([a-z-]+):)?(.+)\]$/i,pS=/^\d+\/\d+$/,mS=new Set(["px","full","screen"]),gS=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,xS=/\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$/,vS=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,yS=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,wS=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,vn=e=>bs(e)||mS.has(e)||pS.test(e),Dn=e=>Ks(e,"length",kS),bs=e=>!!e&&!Number.isNaN(Number(e)),Wc=e=>Ks(e,"number",bs),vo=e=>!!e&&Number.isInteger(Number(e)),bS=e=>e.endsWith("%")&&bs(e.slice(0,-1)),K=e=>zv.test(e),zn=e=>gS.test(e),jS=new Set(["length","size","percentage"]),NS=e=>Ks(e,jS,Fv),SS=e=>Ks(e,"position",Fv),CS=new Set(["image","url"]),ES=e=>Ks(e,CS,AS),TS=e=>Ks(e,"",PS),yo=()=>!0,Ks=(e,t,n)=>{const r=zv.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},kS=e=>xS.test(e)&&!vS.test(e),Fv=()=>!1,PS=e=>yS.test(e),AS=e=>wS.test(e),RS=()=>{const e=xe("colors"),t=xe("spacing"),n=xe("blur"),r=xe("brightness"),s=xe("borderColor"),i=xe("borderRadius"),a=xe("borderSpacing"),l=xe("borderWidth"),c=xe("contrast"),u=xe("grayscale"),f=xe("hueRotate"),h=xe("invert"),d=xe("gap"),v=xe("gradientColorStops"),y=xe("gradientColorStopPositions"),x=xe("inset"),b=xe("margin"),m=xe("opacity"),g=xe("padding"),w=xe("saturate"),j=xe("scale"),N=xe("sepia"),C=xe("skew"),S=xe("space"),E=xe("translate"),k=()=>["auto","contain","none"],A=()=>["auto","hidden","clip","visible","scroll"],B=()=>["auto",K,t],I=()=>[K,t],W=()=>["",vn,Dn],M=()=>["auto",bs,K],V=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],U=()=>["solid","dashed","dotted","double","none"],G=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],T=()=>["start","end","center","between","around","evenly","stretch"],_=()=>["","0",K],z=()=>["auto","avoid","all","avoid-page","page","left","right","column"],L=()=>[bs,K];return{cacheSize:500,separator:":",theme:{colors:[yo],spacing:[vn,Dn],blur:["none","",zn,K],brightness:L(),borderColor:[e],borderRadius:["n
120one","","full",zn,K],borderSpacing:I(),borderWidth:W(),contrast:L(),grayscale:_(),hueRotate:L(),invert:_(),gap:I(),gradientColorStops:[e],gradientColorStopPositions:[bS,Dn],inset:B(),margin:B(),opacity:L(),padding:I(),saturate:L(),scale:L(),sepia:_(),skew:L(),space:I(),translate:I()},classGroups:{aspect:[{aspect:["auto","square","video",K]}],container:["container"],columns:[{columns:[zn]}],"break-after":[{"break-after":z()}],"break-before":[{"break-before":z()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...V(),K]}],overflow:[{overflow:A()}],"overflow-x":[{"overflow-x":A()}],"overflow-y":[{"overflow-y":A()}],overscroll:[{overscroll:k()}],"overscroll-x":[{"overscroll-x":k()}],"overscroll-y":[{"overscroll-y":k()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[x]}],"inset-x":[{"inset-x":[x]}],"inset-y":[{"inset-y":[x]}],start:[{start:[x]}],end:[{end:[x]}],top:[{top:[x]}],right:[{right:[x]}],bottom:[{bottom:[x]}],left:[{left:[x]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",vo,K]}],basis:[{basis:B()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",K]}],grow:[{grow:_()}],shrink:[{shrink:_()}],order:[{order:["first","last","none",vo,K]}],"grid-cols":[{"grid-cols":[yo]}],"col-start-end":[{col:["auto",{span:["full",vo,K]},K]}],"col-start":[{"col-start":M()}],"col-end":[{"col-end":M()}],"grid-rows":[{"grid-rows":[yo]}],"row-start-end":[{row:["auto",{span:[vo,K]},K]}],"row-start":[{"row-start":M()}],"row-end":[{"row-end":M()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",K]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",K]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"justify-content":[{justify:["normal",...T()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...T(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...T(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[g]}],px:[{px:[g]}],py:[{py:[g]}],ps:[{ps:[g]}],pe:[{pe:[g]}],pt:[{pt:[g]}],pr:[{pr:[g]}],pb:[{pb:[g]}],pl:[{pl:[g]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[S]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[S]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",K,t]}],"min-w":[{"min-w":[K,t,"min","max","fit"]}],"max-w":[{"max-w":[K,t,"none","full","min","max","fit","prose",{screen:[zn]},zn]}],h:[{h:[K,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[K,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[K,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[K,t,"auto","min","max","fit"]}],"font-size":[{text:["base",zn,Dn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Wc]}],"font-family":[{font:[yo]}],"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-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",K]}],"line-clamp":[{"line-clamp":["none",bs,Wc]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",vn,K]}],"list-image":[{"list-image":["none",K]}],"list-style-type":[{list:["none","disc","decimal",K]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[m]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[m]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...U(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",vn,Dn]}],"underline-offset":[{"underline-offset":["auto",vn,K]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:I()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",K]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",K]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[m]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...V(),SS]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",NS]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},ES]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[y]}
vendor: 4,159 bytes, line 120
120],"gradient-via-pos":[{via:[y]}],"gradient-to-pos":[{to:[y]}],"gradient-from":[{from:[v]}],"gradient-via":[{via:[v]}],"gradient-to":[{to:[v]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[m]}],"border-style":[{border:[...U(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[m]}],"divide-style":[{divide:U()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...U()]}],"outline-offset":[{"outline-offset":[vn,K]}],"outline-w":[{outline:[vn,Dn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:W()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[m]}],"ring-offset-w":[{"ring-offset":[vn,Dn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",zn,TS]}],"shadow-color":[{shadow:[yo]}],opacity:[{opacity:[m]}],"mix-blend":[{"mix-blend":[...G(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":G()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",zn,K]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[h]}],saturate:[{saturate:[w]}],sepia:[{sepia:[N]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[m]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[N]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",K]}],duration:[{duration:L()}],ease:[{ease:["linear","in","out","in-out",K]}],delay:[{delay:L()}],animate:[{animate:["none","spin","ping","pulse","bounce",K]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[j]}],"scale-x":[{"scale-x":[j]}],"scale-y":[{"scale-y":[j]}],rotate:[{rotate:[vo,K]}],"translate-x":[{"translate-x":[E]}],"translate-y":[{"translate-y":[E]}],"skew-x":[{"skew-x":[C]}],"skew-y":[{"skew-y":[C]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",K]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",
vendor: 5,548 bytes, line 120
120K]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":I()}],"scroll-mx":[{"scroll-mx":I()}],"scroll-my":[{"scroll-my":I()}],"scroll-ms":[{"scroll-ms":I()}],"scroll-me":[{"scroll-me":I()}],"scroll-mt":[{"scroll-mt":I()}],"scroll-mr":[{"scroll-mr":I()}],"scroll-mb":[{"scroll-mb":I()}],"scroll-ml":[{"scroll-ml":I()}],"scroll-p":[{"scroll-p":I()}],"scroll-px":[{"scroll-px":I()}],"scroll-py":[{"scroll-py":I()}],"scroll-ps":[{"scroll-ps":I()}],"scroll-pe":[{"scroll-pe":I()}],"scroll-pt":[{"scroll-pt":I()}],"scroll-pr":[{"scroll-pr":I()}],"scroll-pb":[{"scroll-pb":I()}],"scroll-pl":[{"scroll-pl":I()}],"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",K]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[vn,Dn,Wc]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},OS=hS(RS);function J(...e){return OS(Ov(e))}const _S=MN,$v=p.forwardRef(({className:e,...t},n)=>o.jsx(Cv,{ref:n,className:J("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));$v.displayName=Cv.displayName;const BS=Sf("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"}}),Hv=p.forwardRef(({className:e,variant:t,...n},r)=>o.jsx(Ev,{ref:r,className:J(BS({variant:t}),e),...n}));Hv.displayName=Ev.displayName;const MS=p.forwardRef(({className:e,...t},n)=>o.jsx(Pv,{ref:n,className:J("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}));MS.displayName=Pv.displayName;const Uv=p.forwardRef(({className:e,...t},n)=>o.jsx(Av,{ref:n,className:J("absolute right-2 top-2 rounded-md p-1 text-foreground
120/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:o.jsx(ji,{className:"h-4 w-4"})}));Uv.displayName=Av.displayName;const Wv=p.forwardRef(({className:e,...t},n)=>o.jsx(Tv,{ref:n,className:J("text-sm font-semibold",e),...t}));Wv.displayName=Tv.displayName;const Vv=p.forwardRef(({className:e,...t},n)=>o.jsx(kv,{ref:n,className:J("text-sm opacity-90",e),...t}));Vv.displayName=kv.displayName;function LS(){const{toasts:e}=Kj();return o.jsxs(_S,{children:[e.map(function({id:t,title:n,description:r,action:s,...i}){return o.jsxs(Hv,{...i,children:[o.jsxs("div",{className:"grid gap-1",children:[n&&o.jsx(Wv,{children:n}),r&&o.jsx(Vv,{children:r})]}),s,o.jsx(Uv,{})]},t)}),o.jsx($v,{})]})}var Dp=["light","dark"],IS="(prefers-color-scheme: dark)",DS=p.createContext(void 0),zS={setTheme:e=>{},themes:[]},FS=()=>{var e;return(e=p.useContext(DS))!=null?e:zS};p.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:s,defaultTheme:i,value:a,attrs:l,nonce:c})=>{let u=i==="system",f=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${l.map(y=>`'${y}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,h=s?Dp.includes(i)&&i?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${i}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",d=(y,x=!1,b=!0)=>{let m=a?a[y]:y,g=x?y+"|| ''":`'${m}'`,w="";return s&&b&&!x&&Dp.includes(y)&&(w+=`d.style.colorScheme = '${y}';`),n==="class"?x||m?w+=`c.add(${g})`:w+="null":m&&(w+=`d[s](n,${g})`),w},v=e?`!function(){${f}${d(e)}}()`:r?`!function(){try{${f}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${u})){var t='${IS}',m=window.matchMedia(t);if(m.media!==t||m.matches){${d("dark")}}else{${d("light")}}}else if(e){${a?`var x=${JSON.stringify(a)};`:""}${d(a?"x[e]":"e",!0)}}${u?"":"else{"+d(i,!1,!1)+"}"}${h}}catch(e){}}()`:`!function(){try{${f}var e=localStorage.getItem('${t}');if(e){${a?`var x=${JSON.stringify(a)};`:""}${d(a?"x[e]":"e",!0)}}else{${d(i,!1,!1)};}${h}}catch(t){}}();`;return p.createElement("script",{nonce:c,dangerouslySetInnerHTML:{__html:v}})});var $S=e=>{switch(e){case"success":return WS;case"info":return GS;case"warning":return VS;case"error":return YS;default:return null}},HS=Array(12).fill(0),US=({visible:e})=>P.createElement("div",{className:"sonner-loading-wrapper","data-visible":e},P.createElement("div",{className:"sonner-spinner"},HS.map((t,n)=>P.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${n}`})))),WS=P.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},P.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),VS=P.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},P.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),GS=P.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},P.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),YS=P.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},P.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),qS=()=>{let[e,t]=P.useState(document.hidden);return P.useEffect(()=>{let n=()=>{t(document.hidden)};
120return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},ld=1,QS=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...r}=e,s=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:ld++,i=this.toasts.find(l=>l.id===s),a=e.dismissible===void 0?!0:e.dismissible;return i?this.toasts=this.toasts.map(l=>l.id===s?(this.publish({...l,...e,id:s,title:n}),{...l,...e,id:s,dismissible:a,title:n}):l):this.addToast({title:n,...r,dismissible:a,id:s}),s},this.dismiss=e=>(e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>
120this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let r=e instanceof Promise?e:e(),s=n!==void 0;return r.then(async i=>{if(XS(i)&&!i.ok){s=!1;let a=typeof t.error=="function"?await t.error(`HTTP error! status: ${i.status}`):t.error,l=typeof t.description=="function"?await t.description(`HTTP error! status: ${i.status}`):t.description;this.create({id:n,type:"error",message:a,description:l})}else if(t.success!==void 0){s=!1;let a=typeof t.success=="function"?await t.success(i):t.success,l=typeof t.description=="function"?await t.description(i):t.description;this.create({id:n,type:"success",message:a,description:l})}}).catch(async i=>{if(t.error!==void 0){s=!1;let a=typeof t.error=="function"?await t.error(i):t.error,l=typeof t.description=="function"?await t.description(i):t.description;this.create({id:n,type:"error",message:a,description:l})}}).finally(()=>{var i;s&&(this.dismiss(n),n=void 0),(i=t.finally)==null||i.call(t)}),n},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||ld++;return this.create({jsx:e(n),id:n,...t}),n},this.subscribers=[],this.toasts=[]}},xt=new QS,KS=(e,t)=>{let n=(t==null?void 0:t.id)||ld++;return xt.addToast({title:e,...t,id:n}),n},XS=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",JS=KS,ZS=()=>xt.toasts;Object.assign(JS,{success:xt.success,info:xt.info,warning:xt.warning,error:xt.error,custom:xt.custom,message:xt.message,promise:xt.promise,dismiss:xt.dismiss,loading:xt.loading},{getHistory:ZS});function eC(e,{insertAt:t}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}eC(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999}:where([data-sonner-toaster][data-x-position="right"]){right:max(var(--offset),env(safe-area-inset-right))}:where([data-sonner-toaster][data-x-position="left"]){left:max(var(--offset),env(safe-area-inset-left))}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:max(var(--offset),env(safe-area-inset-top))}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:max(var(--offset),env(safe-area-inset-bottom))}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;
120left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;background:var(--gray1);color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:0;right:0;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}
120:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount, 0px));transition:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation:swipe-out .2s ease-out forwards}@keyframes swipe-out{0%{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount)));opacity:1}to{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount) + var(--lift) * -100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;--mobile-offset: 16px;right:var(--mobile-offset);left:var(--mobile-offset);width:100%}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset)}[data-sonner-toaster][data-y-position=bottom]{bottom:20px}[data-sonner-toaster][data-y-position=top]{top:20px}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset);right:var(--mobile-offset);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
121`);function na(e){return e.label!==void 0}var tC=3,nC="32px",rC=4e3,sC=356,oC=14,iC=20,aC=200;function lC(...e){return e.filter(Boolean).join(" ")}var cC=e=>{var t,n,r,s,i,a,l,c,u,f;let{invert:h,toast:d,unstyled:v,interacting:y,setHeights:x,visibleToasts:b,heights:m,index:g,toasts:w,expanded:j,removeToast:N,defaultRichColors:C,closeButton:S,style:E,cancelButtonStyle:k,actionButtonStyle:A,className:B="",descriptionClassName:I="",duration:W,position:M,gap:V,loadingIcon:U,expandByDefault:G,classNames:T,icons:_,closeButtonAriaLabel:z="Close toast",pauseWhenPageIsHidden:L,cn:H}
121=e,[Q,se]=P.useState(!1),[Me,ne]=P.useState(!1),[ge,we]=P.useState(!1),[ze,Ae]=P.useState(!1),[ue,F]=P.useState(0),[re,he]=P.useState(0),Oe=P.useRef(null),Le=P.useRef(null),ht=g===0,Tt=g+1<=b,pe=d.type,at=d.dismissible!==!1,vr=d.className||"",to=d.descriptionClassName||"",Ln=P.useMemo(()=>m.findIndex(q=>q.toastId===d.id)||0,[m,d.id]),Oi=P.useMemo(()=>{var q;return(q=d.closeButton)!=null?q:S},[d.closeButton,S]),no=P.useMemo(()=>d.duration||W||rC,[d.duration,W]),ro=P.useRef(0),gn=P.useRef(0),_i=P.useRef(0),en=P.useRef(null),[Dt,so]=M.split("-"),Yr=P.useMemo(()=>m.reduce((q,de,le)=>le>=Ln?q:q+de.height,0),[m,Ln]),yr=qS(),oo=d.invert||h,io=pe==="loading";gn.current=P.useMemo(()=>Ln*V+Yr,[Ln,Yr]),P.useEffect(()=>{se(!0)},[]),P.useLayoutEffect(()=>{if(!Q)return;let q=Le.current,de=q.style.height;q.style.height="auto";let le=q.getBoundingClientRect().height;q.style.height=de,he(le),x(pt=>pt.find(mt=>mt.toastId===d.id)?pt.map(mt=>mt.toastId===d.id?{...mt,height:le}:mt):[{toastId:d.id,height:le,position:d.position},...pt])},[Q,d.title,d.description,x,d.id]);let tn=P.useCallback(()=>{ne(!0),F(gn.current),x(q=>q.filter(de=>de.toastId!==d.id)),setTimeout(()=>{N(d)},aC)},[d,N,x,gn]);P.useEffect(()=>{if(d.promise&&pe==="loading"||d.duration===1/0||d.type==="loading")return;let q,de=no;return j||y||L&&yr?(()=>{if(_i.current<ro.current){let le=new Date().getTime()-ro.current;de=de-le}_i.current=new Date().getTime()})():de!==1/0&&(ro.current=new Date().getTime(),q=setTimeout(()=>{var le;(le=d.onAutoClose)==null||le.call(d,d),tn()},de)),()=>clearTimeout(q)},[j,y,G,d,no,tn,d.promise,pe,L,yr]),P.useEffect(()=>{let q=Le.current;if(q){let de=q.getBoundingClientRect().height;return he(de),x(le=>[{toastId:d.id,height:de,position:d.position},...le]),()=>x(le=>le.filter(pt=>pt.toastId!==d.id))}},[x,d.id]),P.useEffect(()=>{d.delete&&tn()},[tn,d.delete]);function cc(){return _!=null&&_.loading?P.createElement("div",{className:"sonner-loader","data-visible":pe==="loading"},_.loading):U?P.createElement("div",{className:"sonner-loader","data-visible":pe==="loading"},U):P.createElement(US,{visible:pe==="loading"})}return P.createElement("li",{"aria-live":d.important?"assertive":"polite","aria-atomic":"true",role:"status",tabIndex:0,ref:Le,className:H(B,vr,T==null?void 0:T.toast,(t=d==null?void 0:d.classNames)==null?void 0:t.toast,T==null?void 0:T.default,T==null?void 0:T[pe],(n=d==null?void 0:d.classNames)==null?void 0:n[pe]),"data-sonner-toast":"","data-rich-colors":(r=d.richColors)!=null?r:C,"data-styled":!(d.jsx||d.unstyled||v),"data-mounted":Q,"data-promise":!!d.promise,"data-removed":Me,"data-visible":Tt,"data-y-position":Dt,"data-x-position":so,"data-index":g,"data-front":ht,"data-swiping":ge,"data-dismissible":at,"data-type":pe,"data-invert":oo,"data-swipe-out":ze,"data-expanded":!!(j||G&&Q),style:{"--index":g,"--toasts-before":g,"--z-index":w.length-g,"--offset":`${Me?ue:gn.current}px`,"--initial-height":G?"auto":`${re}px`,...E,...d.style},onPointerDown:q=>{io||!at||(Oe.current=new Date,F(gn.current),q.target.setPointerCapture(q.pointerId),q.target.tagName!=="BUTTON"&&(we(!0),en.current={x:q.clientX,y:q.clientY}))},onPointerUp:()=>{var q,de,le,pt;if(ze||!at)return;en.current=null;let mt=Number(((q=Le.current)==null?void 0:q.style.getPropertyValue("--swipe-amount").replace("px",""))||0),qr=new Date().getTime()-((de=Oe.current)==null?void 0:de.getTime()),Bi=Math.abs(mt)/qr;if(Math.abs(mt)>=iC||Bi>.11){F(gn.current),(le=d.onDismiss)==null||le.call(d,d),tn(),Ae(!0);return}(pt=Le.current)==null||pt.style.setProperty("--swipe-amount","0px"),we(!1)},onPointerMove:q=>{var de;if(!en.current||!at)return;let le=q.clientY-en.current.y,pt=q.clientX-en.current.x,mt=(Dt==="top"?Math.min:Math.max)(0,le),qr=q.pointerType==="touch"?10:2;Math.abs(mt)>qr?(de=Le.current)==null||de.style.setProperty("--swipe-amount",`${le}px`):Math.abs(pt)>qr&&(en.current=null)}},Oi&&!d.jsx?P.createElement("button",{"aria-label":z,"data-disabled":io,"data-close-button":!0,onClick:io||!at?()=>{}:()=>{var q;tn(),(q=d.onDismiss)==null||q.call(d,d)},className:H(T==null?void 0:T.closeButton,(s=d==null?void 0:d.classNames)==null?void 0:s.closeButton)},P.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},P.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),P.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))):null,d.jsx||P.isValidElement(d.title)?d.jsx||d.title:P.createElement(P.Fragment,null,pe||d.icon||d.promise?P.createElement("div",{"data-icon":"",className:H(T==null?void 0:T.icon,(i=d==null?void 0:d.classNames)==null?void 0:i.icon)},d.promise||d.type==="loading"&&!d.icon?d.icon||cc():null,d.type!=="loading"?d.icon||(_==null?void 0:_[pe])||$S(pe):null):null,P.createElement("div",{"data-content":"",className:H(T==null?void 0:T.content,(a=d==null?void 0:d.classNames)==null?void 0:a.content)},P.createElement("div",{"data-title":"",className:H(T==null?void 0:T.title,(l=d==null?void 0:d.classNames)==null?void 0:l.title)},d.title),d.description?P.createElement("div",{"data-description":"",className:H(I,to,T==null?void 0:T.description,(c=d==null?void 0:d.classNames)==null?void 0:c.description)},d.description):null),P.isValidElement(d.cancel)?d.cancel:d.cancel&&na(d.cancel)?P.createElement("button",{"data-button":!0,"data-cancel":!0,style:d.cancelButtonStyle||k,onClick:q=>{var de,le;na(d.cancel)&&at&&((le=(de=d.cancel).onClick)==null||le.call(de,q),tn())},className:H(T==null?void 0:T.cancelButton,(u=d==null?void 0:d.classNames)==null?void 0:u.cancelButton)},d.cancel.label):null,P.isValidElement(d.action)?d.action:d.action&&na(d.action)?P.createElement("button",{"data-button":!0,"data-action":!0,style:d.actionButtonStyle||A,onClick:q=>{var de,le;na(d.action)&&(q.defaultPrevented||((le=(de=d.action).onClick)==null||le.call(de,q),tn()))},className:H(T==null?void 0:T.actionButton,(f=d==null?void 0:d.classNames)==null?void 0:f.actionButton)},d.action.label):null))};function zp(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}var uC=e=>{let{invert:t,position:n="bottom-right",hotkey:r=["altKey","KeyT"],expand:s,closeButton:i,className:a,offset:l,theme:c="light",richColors:u,duration:f,style:h,visibleToasts:d=tC,toastOptions:v,dir:y=zp(),gap:x=oC,loadingIcon:b,icons:m,containerAriaLabel:g="Notifications",pauseWhenPageIsHidden:w,cn:j=lC}=e,[N,C]=P.useState([]),S=P.useMemo(()=>Array.from(new Set([n].concat(N.filter(L=>L.position).map(L=>L.position)))),[N,n]),[E,k]=P.useState([]),[A,B]=P.useState(!1),[I,W]=P.useState(!1),[M,V]=P.useState(c!=="system"?c:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dar
121k":"light"),U=P.useRef(null),G=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),T=P.useRef(null),_=P.useRef(!1),z=P.useCallback(L=>{var H;(H=N.find(Q=>Q.id===L.id))!=null&&H.delete||xt.dismiss(L.id),C(Q=>Q.filter(({id:se})=>se!==L.id))},[N]);return P.useEffect(()=>xt.subscribe(L=>{if(L.dismiss){C(H=>H.map(Q=>Q.id===L.id?{...Q,delete:!0}:Q));return}setTimeout(()=>{vf.flushSync(()=>{C(H=>{let Q=H.findIndex(se=>se.id===L.id);return Q!==-1?[...H.slice(0,Q),{...H[Q],...L},...H.slice(Q+1)]:[L,...H]})})})}),[]),P.useEffect(()=>{if(c!=="system"){V(c);return}c==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?V("dark"):V("light")),typeof window<"u"&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",({matches:L})=>{V(L?"dark":"light")})},[c]),P.useEffect(()=>{N.length<=1&&B(!1)},[N]),P.useEffect(()=>{let L=H=>{var Q,se;r.every(Me=>H[Me]||H.code===Me)&&(B(!0),(Q=U.current)==null||Q.focus()),H.code==="Escape"&&(document.activeElement===U.current||(se=U.current)!=null&&se.contains(document.activeElement))&&B(!1)};return document.addEventListener("keydown",L),()=>document.removeEventListener("keydown",L)},[r]),P.useEffect(()=>{if(U.current)return()=>{T.current&&(T.current.focus({preventScroll:!0}),T.current=null,_.current=!1)}},[U.current]),N.length?P.createElement("section",{"aria-label":`${g} ${G}`,tabIndex:-1},S.map((L,H)=>{var Q;let[se,Me]=L.split("-");return P.createElement("ol",{key:L,dir:y==="auto"?zp():y,tabIndex:-1,ref:U,className:a,"data-sonner-toaster":!0,"data-theme":M,"data-y-position":se,"data-x-position":Me,style:{"--front-toast-height":`${((Q=E[0])==null?void 0:Q.height)||0}px`,"--offset":typeof l=="number"?`${l}px`:l||nC,"--width":`${sC}px`,"--gap":`${x}px`,...h},onBlur:ne=>{_.current&&!ne.currentTarget.contains(ne.relatedTarget)&&(_.current=!1,T.current&&(T.current.focus({preventScroll:!0}),T.current=null))},onFocus:ne=>{ne.target instanceof HTMLElement&&ne.target.dataset.dismissible==="false"||_.current||(_.current=!0,T.current=ne.relatedTarget)},onMouseEnter:()=>B(!0),onMouseMove:()=>B(!0),onMouseLeave:()=>{I||B(!1)},onPointerDown:ne=>{ne.target instanceof HTMLElement&&ne.target.dataset.dismissible==="false"||W(!0)},onPointerUp:()=>W(!1)},N.filter(ne=>!ne.position&&H===0||ne.position===L).map((ne,ge)=>{var we,ze;return P.createElement(cC,{key:ne.id,icons:m,index:ge,toast:ne,defaultRichColors:u,duration:(we=v==null?void 0:v.duration)!=null?we:f,className:v==null?void 0:v.className,descriptionClassName:v==null?void 0:v.descriptionClassName,invert:t,visibleToasts:d,closeButton:(ze=v==null?void 0:v.closeButton)!=null?ze:i,interacting:I,position:L,style:v==null?void 0:v.style,unstyled:v==null?void 0:v.unstyled,classNames:v==null?void 0:v.classNames,cancelButtonStyle:v==null?void 0:v.cancelButtonStyle,actionButtonStyle:v==null?void 0:v.actionButtonStyle,removeToast:z,toasts:N.filter(Ae=>Ae.position==ne.position),heights:E.filter(Ae=>Ae.position==ne.position),setHeights:k,expandByDefault:s,gap:x,loadingIcon:b,expanded:A,pauseWhenPageIsHidden:w,cn:j})}))})):null};const dC=({...e})=>{const{theme:t="system"}=FS();return o.jsx(uC,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})};function fC(e,t=[]){let n=[];function r(i,a){const l=p.createContext(a),c=n.length;n=[...n,a];const u=h=>{var m;const{scope:d,children:v,...y}=h,x=((m=d==null?void 0:d[e])==null?void 0:m[c])||l,b=p.useMemo(()=>y,Object.values(y));return o.jsx(x.Provider,{value:b,children:v})};u.displayName=i+"Provider";function f(h,d){var x;const v=((x=d==null?void 0:d[e])==null?void 0:x[c])||l,y=p.useContext(v);if(y)return y;if(a!==void 0)return a;throw new Error(`\`${h}\` must be used within \`${i}\``)}return[u,f]}const s=()=>{const i=n.map(a=>p.createContext(a));return function(l){const c=(l==null?void 0:l[e])||i;return p.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return s.scopeName=e,[r,hC(s,...t)]}function hC(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(s=>({useScope:s(),scopeName:s.scopeName}));
vendor: 15,572 bytes, line 121
121return function(i){const a=r.reduce((l,{useScope:c,scopeName:u})=>{const h=c(i)[`__scope${u}`];return{...l,...h}},{});return p.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}var pC="DismissableLayer",cd="dismissableLayer.update",mC="dismissableLayer.pointerDownOutside",gC="dismissableLayer.focusOutside",Fp,Gv=p.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Tf=p.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:s,onFocusOutside:i,onInteractOutside:a,onDismiss:l,...c}=e,u=p.useContext(Gv),[f,h]=p.useState(null),d=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,v]=p.useState({}),y=fe(t,S=>h(S)),x=Array.from(u.layers),[b]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),m=x.indexOf(b),g=f?x.indexOf(f):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,j=g>=m,N=yC(S=>{const E=S.target,k=[...u.branches].some(A=>A.contains(E));!j||k||(s==null||s(S),a==null||a(S),S.defaultPrevented||l==null||l())},d),C=wC(S=>{const E=S.target;[...u.branches].some(A=>A.contains(E))||(i==null||i(S),a==null||a(S),S.defaultPrevented||l==null||l())},d);return iv(S=>{g===u.layers.size-1&&(r==null||r(S),!S.defaultPrevented&&l&&(S.preventDefault(),l()))},d),p.useEffect(()=>{if(f)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Fp=d.body.style.pointerEvents,d.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),$p(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(d.body.style.pointerEvents=Fp)}},[f,d,n,u]),p.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),$p())},[f,u]),p.useEffect(()=>{const S=()=>v({});return document.addEventListener(cd,S),()=>document.removeEventListener(cd,S)},[]),o.jsx(te.div,{...c,ref:y,style:{pointerEvents:w?j?"auto":"none":void 0,...e.style},onFocusCapture:ee(e.onFocusCapture,C.onFocusCapture),onBlurCapture:ee(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:ee(e.onPointerDownCapture,N.onPointerDownCapture)})});Tf.displayName=pC;var xC="DismissableLayerBranch",vC=p.forwardRef((e,t)=>{const n=p.useContext(Gv),r=p.useRef(null),s=fe(t,r);return p.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),o.jsx(te.div,{...e,ref:s})});vC.displayName=xC;function yC(e,t=globalThis==null?void 0:globalThis.document){const n=Pe(e),r=p.useRef(!1),s=p.useRef(()=>{});return p.useEffect(()=>{const i=l=>{if(l.target&&!r.current){let c=function(){Yv(mC,n,u,{discrete:!0})};const u={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",s.current),s.current=c,t.addEventListener("click",s.current,{once:!0})):c()}else t.removeEventListener("click",s.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",i),t.removeEventListener("click",s.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function wC(e,t=globalThis==null?void 0:globalThis.document){const n=Pe(e),r=p.useRef(!1);return p.useEffect(()=>{const s=i=>{i.target&&!r.current&&Yv(gC,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",s),()=>t.removeEventListener("focusin",s)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function $p(){const e=new CustomEvent(cd);document.dispatchEvent(e)}function Yv(e,t,n,{discrete:r}){const s=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&s.addEventListener(e,t,{once:!0}),r?wf(s,i):s.dispatchEvent(i)}var bC=Gm.useId||(()=>{}),jC=0;function Lo(e){const[t,n]=p.useState(bC());return Ve(()=>{n(r=>r??String(jC++))},[e]),t?`radix-${t}`:""}const NC=["top","right","bottom","left"],dr=Math.min,yt=Math.max,rl=Math.round,ra=Math.floor,fr=e=>({x:e,y:e}),SC={left:"right",right:"left",bottom:"top",top:"bottom"},CC={start:"end",end:"start"};function ud(e,t,n){return yt(e,dr(t,n))}function On(e,t){return typeof e=="function"?e(t):e}function _n(e){return e.split("-")[0]}function Xs(e){return e.split("-")[1]}function kf(e){return e==="x"?"y":"x"}function Pf(e){return e==="y"?"height":"width"}function hr(e){return["top","bottom"].includes(_n(e))?"y":"x"}function Af(e){return kf(hr(e))}function EC(e,t,n){n===void 0&&(n=!1);const r=Xs(e),s=Af(e),i=Pf(s);let a=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=sl(a)),[a,sl(a)]}function TC(e){const t=sl(e);return[dd(e),t,dd(t)]}function dd(e){return e.replace(/start|end/g,t=>CC[t])}function kC(e,t,n){const r=["left","right"],s=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?s:r:t?r:s;case"left":case"right":return t?i:a;default:return[]}}function PC(e,t,n,r){const s=Xs(e);let i=kC(_n(e),n==="start",r);return s&&(i=i.map(a=>a+"-"+s),t&&(i=i.concat(i.map(dd)))),i}function sl(e){return e.replace(/left|right|bottom|top/g,t=>SC[t])}function AC(e){return{top:0,right:0,bottom:0,left:0,...e}}function qv(e){return typeof e!="number"?AC(e):{top:e,right:e,bottom:e,left:e}}function ol(e){const{x:t,y:n,width:r,height:s}=e;return{width:r,height:s,top:n,left:t,right:t+r,bottom:n+s,x:t,y:n}}function Hp(e,t,n){let{reference:r,floating:s}=e;const i=hr(t),a=Af(t),l=Pf(a),c=_n(t),u=i==="y",f=r.x+r.width/2-s.width/2,h=r.y+r.height/2-s.height/2,d=r[l]/2-s[l]/2;let v;switch(c){case"top":v={x:f,y:r.y-s.height};break;case"bottom":v={x:f,y:r.y+r.height};break;case"right":v={x:r.x+r.width,y:h};break;case"left":v={x:r.x-s.width,y:h};break;default:v={x:r.x,y:r.y}}switch(Xs(t)){case"start":v[a]-=d*(n&&u?-1:1);break;case"end":v[a]+=d*(n&&u?-1:1);break}return v}const RC=async(e,t,n)=>{const{placement:r="bottom",strategy:s="absolute",middleware:i=[],platform:a}=n,l=i.filter(Boolean),c=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:s}),{x:f,y:h}=Hp(u,r,c),d=r,v={},y=0;for(let x=0;x<l.length;x++){const{name:b,fn:m}=l[x],{x:g,y:w,data:j,reset:N}=await m({x:f,y:h,initialPlacement:r,placement:d,strategy:s,middlewareData:v,rects:u,platform:a,elements:{reference:e,floating:t}});f=g??f,h=w??h,v={...v,[b]:{...v[b],...j}},N&&y<=50&&(y++,typeof N=="object"&&(N.placement&&(d=N.placement),N.rects&&(u=N.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:s}):N.rects),{x:f,y:h}=Hp(u,d,c)),x=-1)}return{x:f,y:h,placement:d,strategy:s,middlewareData:v}};async function ti(e,t){var n;t===void 0&&(t={});const{x:r,y:s,platform:i,rects:a,elements:l,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:d=!1,padding:v=0}=On(t,e),y=qv(v),b=l[d?h==="floating"?"reference":"floating":h],m=ol(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(b)))==null||n?b:b.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:u,rootBoundary:f,strategy:c})),g=h==="floating"?{x:r,y:s,width:a.floating.width,height:a.floating.height}:a.reference,w=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),j=await(i.isElement==null?void 0:i.isElement(w))?await(i.getScale==null?void 0:i.getScale(w))||{x:1,y:1}:{x:1,y:1},N=ol(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:g,offsetParent:w,strategy:c}):g);return{top:(m.top-N.top+y.top)/j.y,bottom:(N.bottom-m.bottom+y.bottom)/j.y,left:(m.left-N.left+y.left)/j.x,right:(N.right-m.right+y.right)/j.x}}const OC=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:s,rects:i,platform:a,elements:l,middlewareData:c}=t,{element:u,padding:f=0}=On(e,t)||{};if(u==null)return{};const h=qv(f),d={x:n,y:r},v=Af(s),y=Pf(v),x=await a.getDimensions(u),b=v==="y",m=b?"top":"left",g=b?"bottom":"right",w=b?"clientHeight":"clientWidth",j=i.reference[y]+i.reference[v]-d[v]-i.floating[y],N=d[v]-i.reference[v],C=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let S=C?C[w]:0;(!S||!await(a.isElement==null?void 0:a.isElement(C)))&&(S=l.floating[w]||i.floating[y]);const E=j/2-N/2,k=S/2-x[y]/2-1,A=dr(h[m],k),B=dr(h[g],k),I=A,W=S-x[y]-B,M=S/2-x[y]/2+E,V=ud(I,M,W),U=!c.arrow&&Xs(s)!=null&&M!==V&&i.reference[y]/2-(M<I?A:B)-x[y]/2<0,G=U?M<I?M-I:M-W:0;return{[v]:d[v]+G,data:{[v]:V,centerOffset:M-V-G,...U&&{alignmentOffset:G}},reset:U}}}),_C=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:s,middlewareData:i,rects:a,initialPlacement:l,platform:c,elements:u}=t,{mainAxis:f=!0,crossAxis:h=!0,fallbackPlacements:d,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:x=!0,...b}=On(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const m=_n(s),g=hr(l),w=_n(l)===l,j=await(c.isRTL==null?void 0:c.isRTL(u.floating)),N=d||(w||!x?[sl(l)]:TC(l)),C=y!=="none";!d&&C&&N.push(...PC(l,x,y,j));const S=[l,...N],E=await ti(t,b),k=[];let A=((r=i.flip)==null?void 0:r.overflows)||[];if(f&&k.push(E[m]),h){const M=EC(s,a,j);k.push(E[M[0]],E[M[1]])}if(A=[...A,{placement:s,overflows:k}],!k.every(M=>M<=0)){var B,I;const M=(((B=i.flip)==null?void 0:B.index)||0)+1,V=S[M];if(V)return{data:{index:M,overflows:A},reset:{placement:V}};let U=(I=A.filter(G=>G.overflows[0]<=0).sort((G,T)=>G.overflows[1]-T.overflows[1])[0])==null?void 0:I.placement;if(!U)switch(v){case"bestFit":{var W;const G=(W=A.filter(T=>{if(C){const _=hr(T.placement);return _===g||_==="y"}return!0}).map(T=>[T.placement,T.overflows.filter(_=>_>0).reduce((_,z)=>_+z,0)]).sort((T,_)=>T[1]-_[1])[0])==null?void 0:W[0];G&&(U=G);break}case"initialPlacement":U=l;break}if(s!==U)return{reset:{placement:U}}}return{}}}};function Up(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Wp(e){return NC.some(t=>e[t]>=0)}const BC=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...s}=On(e,t);switch(r){case"referenceHidden":{const i=await ti(t,{...s,elementContext:"reference"}),a=Up(i,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Wp(a)}}}case"escaped":{const i=await ti(t,{...s,altBoundary:!0}),a=Up(i,n.floating);return{data:{escapedOffsets:a,escaped:Wp(a)}}}default:return{}}}}};async function MC(e,t){const{placement:n,platform:r,elements:s}=e,i=await(r.isRTL==null?void 0:r.isRTL(s.floating)),a=_n(n),l=Xs(n),c=hr(n)==="y",u=["left","top"].includes(a)?-1:1,f=i&&c?-1:1,h=On(t,e);let{mainAxis:d,crossAxis:v,alignmentAxis:y}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return l&&typeof y=="number"&&(v=l==="end"?y*-1:y),c?{x:v*f,y:d*u}:{x:d*u,y:v*f}}const LC=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:s,y:i,placement:a,middlewareData:l}=t,c=await MC(t,e);return a===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:s+c.x,y:i+c.y,data:{...c,placement:a}}}}},IC=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:s}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:l={fn:b=>{let{x:m,y:g}=b;return{x:m,y:g}}},...c}=On(e,t),u={x:n,y:r},f=await ti(t,c),h=hr(_n(s)),d=kf(h);let v=u[d],y=u[h];if(i){const b=d==="y"?"top":"left",m=d==="y"?"bottom":"right",g=v+f[b],w=v-f[m];v=ud(g,v,w)}if(a){const b=h==="y"?"top":"left",m=h==="y"?"bottom":"right",g=y+f[b],w=y-f[m];y=ud(g,y,w)}const x=l.fn({...t,[d]:v,[h]:y});return{...x,data:{x:x.x-n,y:x.y-r,enabled:{[d]:i,[h]:a}}}}}},DC=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:s,rects:i,middlewareData:a}=t,{offset:l=0,mainAxis:c=!0,crossAxis:u=!0}=On(e,t),f={x:n,y:r},h=hr(s),d=kf(h);let v=f[d],y=f[h];const x=On(l,t),b=typeof x=="number"?{mainAxis:x,crossAxis:0}:{mainAxis:0,crossAxis:0,...x};if(c){const w=d==="y"?"height":"width",j=i.reference[d]-i.floating[w]+b.mainAxis,N=i.reference[d]+i.reference[w]-b.mainAxis;v<j?v=j:v>N&&(v=N)}if(u){var m,g;const w=d==="y"?"width":"height",j=["top","left"].includes(_n(s)),N=i.reference[h]-i.floating[w]+(j&&((m=a.offset)==null?void 0:m[h])||0)+(j?0:b.crossAxis),C=i.reference[h]+i.reference[w]+(j?0:((g=a.offset)==null?void 0:g[h])||0)-(j?b.crossAxis:0);y<N?y=N:y>C&&(y=C)}return{[d]:v,[h]:y}}}},zC=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:s,rects:i,platform:a,elements:l}=t,{apply:c=()=>{},...u}=On(e,t),f=await ti(t,u),h=_n(s),d=Xs(s),v=hr(s)==="y",{width:y,height:x}=i.floating;let b,m;h==="top"||h==="bottom"?(b=h,m=d===(await(a.isRTL==null?void 0:a.isRTL(l.floating))?"start":"end")?"left":"right"):(m=h,b=d==="end"?"top":"bottom");const g=x-f.top-f.bottom,w=y-f.left-f.right,j=dr(x-f[b],g),N=dr(y-f[m],w),C=!t.middlewareData.shift;let S=j,E=N;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(E=w),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(S=g),C&&!d){const A=yt(f.left,0),B=yt(f.right,0),I=yt(f.top,0),W=yt(f.bottom,0);v?E=y-2*(A!==0||B!==0?A+B:yt(f.left,f.right)):S=x-2*(I!==0||W!==0?I+W:yt(f.top,f.bottom))}await c({...t,availableWidth:E,availableHeight:S});const k=await a.getDimensions(l.floating);return y!==k.width||x!==k.height?{reset:{rects:!0}}:{}}}};function Dl(){return typeof window<"u"}function Js(e){return Qv(e)?(e.nodeName||"").toLowerCase():"#document"}function Nt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function hn(e){var t;return(t=(Qv(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Qv(e){return Dl()?e instanceof Node||e instanceof Nt(e).Node:!1}function Xt(e){return Dl()?e instanceof Element||e instanceof Nt(e).Element:!1}function fn(e){return Dl()?e instanceof HTMLElement||e instanceof Nt(e).HTMLElement:!1}function Vp(e){return!Dl()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Nt(e).ShadowRoot}function Ni(e){const{overflow:t,overflowX:n,overflowY:r,display:s}=Jt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(s)}function FC(e){return["table","td","th"].includes(Js(e))}function zl(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Rf(e){const t=Of(),n=Xt(e)?Jt(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function $C(e){let t=pr(e);for(;fn(t)&&!$s(t);){if(Rf(t))return t;if(zl(t))return null;t=pr(t)}return null}function Of(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function $s(e){return["html","body","#document"].includes(Js(e))}function Jt(e){return Nt(e).getComputedStyle(e)}function Fl(e){return Xt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function pr(e){if(Js(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Vp(e)&&e.host||hn(e);return Vp(t)?t.host:t}function Kv(e){const t=pr(e);return $s(t)?e.ownerDocument?e.ownerDocument.body:e.body:fn(t)&&Ni(t)?t:Kv(t)}function ni(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const s=Kv(e),i=s===((r=e.ownerDocument)==null?void 0:r.body),a=Nt(s);if(i){const l=fd(a);
vendor: 5,525 bytes, line 121
121return t.concat(a,a.visualViewport||[],Ni(s)?s:[],l&&n?ni(l):[])}return t.concat(s,ni(s,[],n))}function fd(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Xv(e){const t=Jt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const s=fn(e),i=s?e.offsetWidth:n,a=s?e.offsetHeight:r,l=rl(n)!==i||rl(r)!==a;return l&&(n=i,r=a),{width:n,height:r,$:l}}function _f(e){return Xt(e)?e:e.contextElement}function js(e){const t=_f(e);if(!fn(t))return fr(1);const n=t.getBoundingClientRect(),{width:r,height:s,$:i}=Xv(t);let a=(i?rl(n.width):n.width)/r,l=(i?rl(n.height):n.height)/s;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}const HC=fr(0);function Jv(e){const t=Nt(e);return!Of()||!t.visualViewport?HC:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function UC(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Nt(e)?!1:t}function Dr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),i=_f(e);let a=fr(1);t&&(r?Xt(r)&&(a=js(r)):a=js(e));const l=UC(i,n,r)?Jv(i):fr(0);let c=(s.left+l.x)/a.x,u=(s.top+l.y)/a.y,f=s.width/a.x,h=s.height/a.y;if(i){const d=Nt(i),v=r&&Xt(r)?Nt(r):r;let y=d,x=fd(y);for(;x&&r&&v!==y;){const b=js(x),m=x.getBoundingClientRect(),g=Jt(x),w=m.left+(x.clientLeft+parseFloat(g.paddingLeft))*b.x,j=m.top+(x.clientTop+parseFloat(g.paddingTop))*b.y;c*=b.x,u*=b.y,f*=b.x,h*=b.y,c+=w,u+=j,y=Nt(x),x=fd(y)}}return ol({width:f,height:h,x:c,y:u})}function WC(e){let{elements:t,rect:n,offsetParent:r,strategy:s}=e;const i=s==="fixed",a=hn(r),l=t?zl(t.floating):!1;if(r===a||l&&i)return n;let c={scrollLeft:0,scrollTop:0},u=fr(1);const f=fr(0),h=fn(r);if((h||!h&&!i)&&((Js(r)!=="body"||Ni(a))&&(c=Fl(r)),fn(r))){const d=Dr(r);u=js(r),f.x=d.x+r.clientLeft,f.y=d.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+f.x,y:n.y*u.y-c.scrollTop*u.y+f.y}}function VC(e){return Array.from(e.getClientRects())}function hd(e,t){const n=Fl(e).scrollLeft;return t?t.left+n:Dr(hn(e)).left+n}function GC(e){const t=hn(e),n=Fl(e),r=e.ownerDocument.body,s=yt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=yt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+hd(e);const l=-n.scrollTop;return Jt(r).direction==="rtl"&&(a+=yt(t.clientWidth,r.clientWidth)-s),{width:s,height:i,x:a,y:l}}function YC(e,t){const n=Nt(e),r=hn(e),s=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,l=0,c=0;if(s){i=s.width,a=s.height;const u=Of();(!u||u&&t==="fixed")&&(l=s.offsetLeft,c=s.offsetTop)}return{width:i,height:a,x:l,y:c}}function qC(e,t){const n=Dr(e,!0,t==="fixed"),r=n.top+e.clientTop,s=n.left+e.clientLeft,i=fn(e)?js(e):fr(1),a=e.clientWidth*i.x,l=e.clientHeight*i.y,c=s*i.x,u=r*i.y;return{width:a,height:l,x:c,y:u}}function Gp(e,t,n){let r;if(t==="viewport")r=YC(e,n);else if(t==="document")r=GC(hn(e));else if(Xt(t))r=qC(t,n);else{const s=Jv(e);r={...t,x:t.x-s.x,y:t.y-s.y}}return ol(r)}function Zv(e,t){const n=pr(e);return n===t||!Xt(n)||$s(n)?!1:Jt(n).position==="fixed"||Zv(n,t)}function QC(e,t){const n=t.get(e);if(n)return n;let r=ni(e,[],!1).filter(l=>Xt(l)&&Js(l)!=="body"),s=null;const i=Jt(e).position==="fixed";let a=i?pr(e):e;for(;Xt(a)&&!$s(a);){const l=Jt(a),c=Rf(a);!c&&l.position==="fixed"&&(s=null),(i?!c&&!s:!c&&l.position==="static"&&!!s&&["absolute","fixed"].includes(s.position)||Ni(a)&&!c&&Zv(e,a))?r=r.filter(f=>f!==a):s=l,a=pr(a)}return t.set(e,r),r}function KC(e){let{element:t,boundary:n,rootBoundary:r,strategy:s}=e;const a=[...n==="clippingAncestors"?zl(t)?[]:QC(t,this._c):[].concat(n),r],l=a[0],c=a.reduce((u,f)=>{const h=Gp(t,f,s);return u.top=yt(h.top,u.top),u.right=dr(h.right,u.right),u.bottom=dr(h.bottom,u.bottom),u.left=yt(h.left,u.left),u},Gp(t,l,s));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function XC(e){const{width:t,height:n}=Xv(e);return{width:t,height:n}}function JC(e,t,n){const r=fn(t),s=hn(t),i=n==="fixed",a=Dr(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const c=fr(0);if(r||!r&&!i)if((Js(t)!=="body"||Ni(s))&&(l=Fl(t)),r){const v=Dr(t,!0,i,t);c.x=v.x+t.clientLeft,c.y=v.y+t.clientTop}else s&&(c.x=hd(s));let u=0,f=0;if(s&&!r&&!i){const v=s.getBoundingClientRect();f=v.top+l.scrollTop,u=v.left+l.scrollLeft-hd(s,v)}const h=a.left+l.scrollLeft-c.x-u,d=a.top+l.scrollTop-c.y-f;return{x:h,y:d,width:a.width,height:a.height}}function Vc(e){return Jt(e).position==="static"}function Yp(e,t){if(!fn(e)||Jt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return hn(e)===n&&(n=n.ownerDocument.body),n}function ey(e,t){const n=Nt(e);if(zl(e))return n;if(!fn(e)){let s=pr(e);for(;s&&!$s(s);){if(Xt(s)&&!Vc(s))return s;s=pr(s)}return n}let r=Yp(e,t);for(;r&&FC(r)&&Vc(r);)r=Yp(r,t);return r&&$s(r)&&Vc(r)&&!Rf(r)?n:r||$C(e)||n}const ZC=async function(e){const t=this.getOffsetParent||ey,n=this.getDimensions,r=await n(e.floating);return{reference:JC(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function eE(e){return Jt(e).direction==="rtl"}const tE={convertOffsetParentRelativeRectToViewportRelativeRect:WC,getDocumentElement:hn,getClippingRect:KC,getOffsetParent:ey,getElementRects:ZC,getClientRects:VC,getDimensions:XC,getScale:js,isElement:Xt,isRTL:eE};function nE(e,t){let n=null,r;const s=hn(e);function i(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function a(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),i();const{left:u,top:f,width:h,height:d}=e.getBoundingClientRect();if(l||t(),!h||!d)return;
vendor: 9,278 bytes, line 121
121const v=ra(f),y=ra(s.clientWidth-(u+h)),x=ra(s.clientHeight-(f+d)),b=ra(u),g={rootMargin:-v+"px "+-y+"px "+-x+"px "+-b+"px",threshold:yt(0,dr(1,c))||1};let w=!0;function j(N){const C=N[0].intersectionRatio;if(C!==c){if(!w)return a();C?a(!1,C):r=setTimeout(()=>{a(!1,1e-7)},1e3)}w=!1}try{n=new IntersectionObserver(j,{...g,root:s.ownerDocument})}catch{n=new IntersectionObserver(j,g)}n.observe(e)}return a(!0),i}function rE(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,u=_f(e),f=s||i?[...u?ni(u):[],...ni(t)]:[];f.forEach(m=>{s&&m.addEventListener("scroll",n,{passive:!0}),i&&m.addEventListener("resize",n)});const h=u&&l?nE(u,n):null;let d=-1,v=null;a&&(v=new ResizeObserver(m=>{let[g]=m;g&&g.target===u&&v&&(v.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var w;(w=v)==null||w.observe(t)})),n()}),u&&!c&&v.observe(u),v.observe(t));let y,x=c?Dr(e):null;c&&b();function b(){const m=Dr(e);x&&(m.x!==x.x||m.y!==x.y||m.width!==x.width||m.height!==x.height)&&n(),x=m,y=requestAnimationFrame(b)}return n(),()=>{var m;f.forEach(g=>{s&&g.removeEventListener("scroll",n),i&&g.removeEventListener("resize",n)}),h==null||h(),(m=v)==null||m.disconnect(),v=null,c&&cancelAnimationFrame(y)}}const sE=LC,oE=IC,iE=_C,aE=zC,lE=BC,qp=OC,cE=DC,uE=(e,t,n)=>{const r=new Map,s={platform:tE,...n},i={...s.platform,_c:r};return RC(e,t,{...s,platform:i})};var Aa=typeof document<"u"?p.useLayoutEffect:p.useEffect;function il(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,r,s;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!il(e[r],t[r]))return!1;return!0}if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,s[r]))return!1;for(r=n;r--!==0;){const i=s[r];if(!(i==="_owner"&&e.$$typeof)&&!il(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function ty(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Qp(e,t){const n=ty(e);return Math.round(t*n)/n}function Gc(e){const t=p.useRef(e);return Aa(()=>{t.current=e}),t}function dE(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:s,elements:{reference:i,floating:a}={},transform:l=!0,whileElementsMounted:c,open:u}=e,[f,h]=p.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[d,v]=p.useState(r);il(d,r)||v(r);const[y,x]=p.useState(null),[b,m]=p.useState(null),g=p.useCallback(T=>{T!==C.current&&(C.current=T,x(T))},[]),w=p.useCallback(T=>{T!==S.current&&(S.current=T,m(T))},[]),j=i||y,N=a||b,C=p.useRef(null),S=p.useRef(null),E=p.useRef(f),k=c!=null,A=Gc(c),B=Gc(s),I=Gc(u),W=p.useCallback(()=>{if(!C.current||!S.current)return;const T={placement:t,strategy:n,middleware:d};B.current&&(T.platform=B.current),uE(C.current,S.current,T).then(_=>{const z={..._,isPositioned:I.current!==!1};M.current&&!il(E.current,z)&&(E.current=z,qs.flushSync(()=>{h(z)}))})},[d,t,n,B,I]);Aa(()=>{u===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,h(T=>({...T,isPositioned:!1})))},[u]);const M=p.useRef(!1);Aa(()=>(M.current=!0,()=>{M.current=!1}),[]),Aa(()=>{if(j&&(C.current=j),N&&(S.current=N),j&&N){if(A.current)return A.current(j,N,W);W()}},[j,N,W,A,k]);const V=p.useMemo(()=>({reference:C,floating:S,setReference:g,setFloating:w}),[g,w]),U=p.useMemo(()=>({reference:j,floating:N}),[j,N]),G=p.useMemo(()=>{const T={position:n,left:0,top:0};if(!U.floating)return T;const _=Qp(U.floating,f.x),z=Qp(U.floating,f.y);return l?{...T,transform:"translate("+_+"px, "+z+"px)",...ty(U.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:_,top:z}},[n,l,U.floating,f.x,f.y]);return p.useMemo(()=>({...f,update:W,refs:V,elements:U,floatingStyles:G}),[f,W,V,U,G])}const fE=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:s}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?qp({element:r.current,padding:s}).fn(n):{}:r?qp({element:r,padding:s}).fn(n):{}}}},hE=(e,t)=>({...sE(e),options:[e,t]}),pE=(e,t)=>({...oE(e),options:[e,t]}),mE=(e,t)=>({...cE(e),options:[e,t]}),gE=(e,t)=>({...iE(e),options:[e,t]}),xE=(e,t)=>({...aE(e),options:[e,t]}),vE=(e,t)=>({...lE(e),options:[e,t]}),yE=(e,t)=>({...fE(e),options:[e,t]});var wE="Arrow",ny=p.forwardRef((e,t)=>{const{children:n,width:r=10,height:s=5,...i}=e;return o.jsx(te.svg,{...i,ref:t,width:r,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:o.jsx("polygon",{points:"0,0 30,0 15,10"})})});ny.displayName=wE;var bE=ny;function jE(e){const[t,n]=p.useState(void 0);return Ve(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const i=s[0];let a,l;if("borderBoxSize"in i){const c=i.borderBoxSize,u=Array.isArray(c)?c[0]:c;a=u.inlineSize,l=u.blockSize}else a=e.offsetWidth,l=e.offsetHeight;n({width:a,height:l})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var ry="Popper",[sy,oy]=Ur(ry),[ZA,iy]=sy(ry),ay="PopperAnchor",ly=p.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...s}=e,i=iy(ay,n),a=p.useRef(null),l=fe(t,a);return p.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||a.current)}),r?null:o.jsx(te.div,{...s,ref:l})});ly.displayName=ay;var Bf="PopperContent",[NE,SE]=sy(Bf),cy=p.forwardRef((e,t)=>{var ge,we,ze,Ae,ue,F;const{__scopePopper:n,side:r="bottom",sideOffset:s=0,align:i="center",alignOffset:a=0,arrowPadding:l=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:f=0,sticky:h="partial",hideWhenDetached:d=!1,updatePositionStrategy:v="optimized",onPlaced:y,...x}=e,b=iy(Bf,n),[m,g]=p.useState(null),w=fe(t,re=>g(re)),[j,N]=p.useState(null),C=jE(j),S=(C==null?void 0:C.width)??0,E=(C==null?void 0:C.height)??0,k=r+(i!=="center"?"-"+i:""),A=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},B=Array.isArray(u)?u:[u],I=B.length>0,W={padding:A,boundary:B.filter(EE),altBoundary:I},{refs:M,floatingStyles:V,placement:U,isPositioned:G,middlewareData:T}=dE({strategy:"fixed",placement:k,whileElementsMounted:(...re)=>rE(...re,{animationFrame:v==="always"}),elements:{reference:b.anchor},middleware:[hE({mainAxis:s+E,alignmentAxis:a}),c&&pE({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?mE():void 0,...W}),c&&gE({...W}),xE({...W,apply:({elements:re,rects:he,availableWidth:Oe,availableHeight:Le})=>{const{width:ht,height:Tt}=he.reference,pe=re.floating.style;pe.setProperty("--radix-popper-available-width",`${Oe}px`),pe.setProperty("--radix-popper-available-height",`${Le}px`),pe.setProperty("--radix-popper-anchor-width",`${ht}px`),pe.setProperty("--radix-popper-anchor-height",`${Tt}px`)}}),j&&yE({element:j,padding:l}),TE({arrowWidth:S,arrowHeight:E}),d&&vE({strategy:"referenceHidden",...W})]}),[_,z]=fy(U),L=Pe(y);Ve(()=>{G&&(L==null||L())},[G,L]);const H=(ge=T.arrow)==null?void 0:ge.x,Q=(we=T.arrow)==null?void 0:we.y,se=((ze=T.arrow)==null?void 0:ze.centerOffset)!==0,[Me,ne]=p.useState();return Ve(()=>{m&&ne(window.getComputedStyle(m).zIndex)},[m]),o.jsx("div",{ref:M.setFloating,"data-radix-popper-content-wrapper":"",style:{...V,transform:G?V.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Me,"--radix-popper-transform-origin":[(Ae=T.transformOrigin)==null?void 0:Ae.x,(ue=T.transformOrigin)==null?void 0:ue.y].join(" "),...((F=T.hide)==null?void 0:F.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:o.jsx(NE,{scope:n,placedSide:_,onArrowChange:N,arrowX:H,arrowY:Q,shouldHideArrow:se,children:o.jsx(te.div,{"data-side":_,"data-align":z,...x,ref:w,style:{...x.style,animation:G?void 0:"none"}})})})});cy.displayName=Bf;var uy="PopperArrow",CE={top:"bottom",right:"left",bottom:"top",left:"right"},dy=p.forwardRef(function(t,n){const{__scopePopper:r,...s}=t,i=SE(uy,r),a=CE[i.placedSide];return o.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:o.jsx(bE,{...s,ref:n,style:{...s.style,display:"block"}})})});dy.displayName=uy;function EE(e){return e!==null}var TE=e=>({name:"transformOrigin",options:e,fn(t){var b,m,g;const{placement:n,rects:r,middlewareData:s}=t,a=((b=s.arrow)==null?void 0:b.centerOffset)!==0,l=a?0:e.arrowWidth,c=a?0:e.arrowHeight,[u,f]=fy(n),h={start:"0%",center:"50%",end:"100%"}[f],d=(((m=s.arrow)==null?void 0:m.x)??0)+l/2,v=(((g=s.arrow)==null?void 0:g.y)??0)+c/2;let y="",x="";return u==="bottom"?(y=a?h:`${d}px`,x=`${-c}px`):u==="top"?(y=a?h:`${d}px`,x=`${r.floating.height+c}px`):u==="right"?(y=`${-c}px`,x=a?h:`${v}px`):u==="left"&&(y=`${r.floating.width+c}px`,x=a?h:`${v}px`),{data:{x:y,y:x}}}});function fy(e){const[t,n="center"]=e.split("-");return[t,n]}var kE=ly,PE=cy,AE=dy,RE="Portal",hy=p.forwardRef((e,t)=>
vendor: 8,608 bytes, line 121
121{var l;const{container:n,...r}=e,[s,i]=p.useState(!1);Ve(()=>i(!0),[]);const a=n||s&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return a?vf.createPortal(o.jsx(te.div,{...r,ref:t}),a):null});hy.displayName=RE;function OE(e,t){return p.useReducer((n,r)=>t[n][r]??n,e)}var py=e=>{const{present:t,children:n}=e,r=_E(t),s=typeof n=="function"?n({present:r.isPresent}):p.Children.only(n),i=fe(r.ref,BE(s));return typeof n=="function"||r.isPresent?p.cloneElement(s,{ref:i}):null};py.displayName="Presence";function _E(e){const[t,n]=p.useState(),r=p.useRef({}),s=p.useRef(e),i=p.useRef("none"),a=e?"mounted":"unmounted",[l,c]=OE(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return p.useEffect(()=>{const u=sa(r.current);i.current=l==="mounted"?u:"none"},[l]),Ve(()=>{const u=r.current,f=s.current;if(f!==e){const d=i.current,v=sa(u);e?c("MOUNT"):v==="none"||(u==null?void 0:u.display)==="none"?c("UNMOUNT"):c(f&&d!==v?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,c]),Ve(()=>{if(t){let u;const f=t.ownerDocument.defaultView??window,h=v=>{const x=sa(r.current).includes(v.animationName);if(v.target===t&&x&&(c("ANIMATION_END"),!s.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",u=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},d=v=>{v.target===t&&(i.current=sa(r.current))};return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",h),t.addEventListener("animationend",h),()=>{f.clearTimeout(u),t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",h),t.removeEventListener("animationend",h)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:p.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function sa(e){return(e==null?void 0:e.animationName)||"none"}function BE(e){var r,s;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var[$l,eR]=fC("Tooltip",[oy]),Mf=oy(),my="TooltipProvider",ME=700,Kp="tooltip.open",[LE,gy]=$l(my),xy=e=>{const{__scopeTooltip:t,delayDuration:n=ME,skipDelayDuration:r=300,disableHoverableContent:s=!1,children:i}=e,[a,l]=p.useState(!0),c=p.useRef(!1),u=p.useRef(0);return p.useEffect(()=>{const f=u.current;return()=>window.clearTimeout(f)},[]),o.jsx(LE,{scope:t,isOpenDelayed:a,delayDuration:n,onOpen:p.useCallback(()=>{window.clearTimeout(u.current),l(!1)},[]),onClose:p.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>l(!0),r)},[r]),isPointerInTransitRef:c,onPointerInTransitChange:p.useCallback(f=>{c.current=f},[]),disableHoverableContent:s,children:i})};xy.displayName=my;var vy="Tooltip",[tR,Hl]=$l(vy),pd="TooltipTrigger",IE=p.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,s=Hl(pd,n),i=gy(pd,n),a=Mf(n),l=p.useRef(null),c=fe(t,l,s.onTriggerChange),u=p.useRef(!1),f=p.useRef(!1),h=p.useCallback(()=>u.current=!1,[]);return p.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),o.jsx(kE,{asChild:!0,...a,children:o.jsx(te.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...r,ref:c,onPointerMove:ee(e.onPointerMove,d=>{d.pointerType!=="touch"&&!f.current&&!i.isPointerInTransitRef.current&&(s.onTriggerEnter(),f.current=!0)}),onPointerLeave:ee(e.onPointerLeave,()=>{s.onTriggerLeave(),f.current=!1}),onPointerDown:ee(e.onPointerDown,()=>{u.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:ee(e.onFocus,()=>{u.current||s.onOpen()}),onBlur:ee(e.onBlur,s.onClose),onClick:ee(e.onClick,s.onClose)})})});IE.displayName=pd;var DE="TooltipPortal",[nR,zE]=$l(DE,{forceMount:void 0}),Hs="TooltipContent",yy=p.forwardRef((e,t)=>{const n=zE(Hs,e.__scopeTooltip),{forceMount:r=n.forceMount,side:s="top",...i}=e,a=Hl(Hs,e.__scopeTooltip);return o.jsx(py,{present:r||a.open,children:a.disableHoverableContent?o.jsx(wy,{side:s,...i,ref:t}):o.jsx(FE,{side:s,...i,ref:t})})}),FE=p.forwardRef((e,t)=>{const n=Hl(Hs,e.__scopeTooltip),r=gy(Hs,e.__scopeTooltip),s=p.useRef(null),i=fe(t,s),[a,l]=p.useState(null),{trigger:c,onClose:u}=n,f=s.current,{onPointerInTransitChange:h}=r,d=p.useCallback(()=>{l(null),h(!1)},[h]),v=p.useCallback((y,x)=>{const b=y.currentTarget,m={x:y.clientX,y:y.clientY},g=WE(m,b.getBoundingClientRect()),w=VE(m,g),j=GE(x.getBoundingClientRect()),N=qE([...w,...j]);l(N),h(!0)},[h]);return p.useEffect(()=>()=>d(),[d]),p.useEffect(()=>{if(c&&f){const y=b=>v(b,f),x=b=>v(b,c);return c.addEventListener("pointerleave",y),f.addEventListener("pointerleave",x),()=>{c.removeEventListener("pointerleave",y),f.removeEventListener("pointerleave",x)}}},[c,f,v,d]),p.useEffect(()=>{if(a){const y=x=>{const b=x.target,m={x:x.clientX,y:x.clientY},g=(c==null?void 0:c.contains(b))||(f==null?void 0:f.contains(b)),w=!YE(m,a);g?d():w&&(d(),u())};return document.addEventListener("pointermove",y),()=>document.removeEventListener("pointermove",y)}},[c,f,a,u,d]),o.jsx(wy,{...e,ref:i})}),[$E,HE]=$l(vy,{isInside:!1}),wy=p.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":s,onEscapeKeyDown:i,onPointerDownOutside:a,...l}=e,c=Hl(Hs,n),u=Mf(n),{onClose:f}=c;return p.useEffect(()=>(document.addEventListener(Kp,f),()=>document.removeEventListener(Kp,f)),[f]),p.useEffect(()=>{if(c.trigger){const h=d=>{const v=d.target;v!=null&&v.contains(c.trigger)&&f()};return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[c.trigger,f]),o.jsx(Tf,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:h=>h.preventDefault(),onDismiss:f,children:o.jsxs(PE,{"data-state":c.stateAttribute,...u,...l,ref:t,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[o.jsx(sv,{children:r}),o.jsx($E,{scope:n,isInside:!0,children:o.jsx(xN,{id:c.contentId,role:"tooltip",children:s||r})})]})})});yy.displayName=Hs;var by="TooltipArrow",UE=p.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,s=Mf(n);return HE(by,n).isInside?null:o.jsx(AE,{...s,...r,ref:t})});UE.displayName=by;function WE(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),s=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,s,i)){case i:return"left";case s:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function VE(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function GE(e){const{top:t,right:n,bottom:r,left:s}=e;return[{x:s,y:t},{x:n,y:t},{x:n,y:r},{x:s,y:r}]}function YE(e,t){const{x:n,y:r}=e;let s=!1;for(let i=0,a=t.length-1;i<t.length;a=i++){const l=t[i].x,c=t[i].y,u=t[a].x,f=t[a].y;c>r!=f>r&&n<(u-l)*(r-c)/(f-c)+l&&(s=!s)}return s}function qE(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),QE(t)}function QE(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const s=e[r];for(;t.length>=2;){const i=t[t.length-1],a=t[t.length-2];if((i.x-a.x)*(s.y-a.y)>=(i.y-a.y)*(s.x-a.x))t.pop();else break}t.push(s)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const s=e[r];for(;n.length>=2;){const i=n[n.length-1],a=n[n.length-2];if((i.x-a.x)*(s.y-a.y)>=(i.y-a.y)*(s.x-a.x))n.pop();else break}n.push(s)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var KE=xy,jy=yy;const XE=KE,JE=p.forwardRef(({className:e,sideOffset:t=4,...n},r)=>o.jsx(jy,{ref:r,sideOffset:t,className:J("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
121de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));JE.displayName=jy.displayName;var Ul=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(){}},Wl=typeof window>"u"||"Deno"in globalThis;function Ht(){}function ZE(e,t){return typeof e=="function"?e(t):e}function eT(e){return typeof e=="number"&&e>=0&&e!==1/0}function tT(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Xp(e,t){return typeof e=="function"?e(t):e}function nT(e,t){return typeof e=="function"?e(t):e}function Jp(e,t){const{type:n="all",exact:r,fetchStatus:s,predicate:i,queryKey:a,stale:l}=e;if(a){if(r){if(t.queryHash!==Lf(a,t.options))return!1}else if(!si(t.queryKey,a))return!1}if(n!=="all"){const c=t.isActive();if(n==="active"&&!c||n==="inactive"&&c)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||s&&s!==t.state.fetchStatus||i&&!i(t))}function Zp(e,t){const{exact:n,status:r,predicate:s,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(ri(t.options.mutationKey)!==ri(i))return!1}else if(!si(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||s&&!s(t))}function Lf(e,t){return((t==null?void 0:t.queryKeyHashFn)||ri)(e)}function ri(e){return JSON.stringify(e,(t,n)=>md(n)?Object.keys(n).sort().reduce((r,s)=>(r[s]=n[s],r),{}):n)}function si(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!si(e[n],t[n])):!1}function Ny(e,t){if(e===t)return e;const n=em(e)&&em(t);if(n||md(e)&&md(t)){const r=n?e:Object.keys(e),s=r.length,i=n?t:Object.keys(t),a=i.length,l=n?[]:{};let c=0;for(let u=0;u<a;u++){const f=n?u:i[u];(!n&&r.includes(f)||n)&&e[f]===void 0&&t[f]===void 0?(l[f]=void 0,c++):(l[f]=Ny(e[f],t[f]),l[f]===e[f]&&e[f]!==void 0&&c++)}return s===a&&c===s?e:l}return t}function em(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function md(e){if(!tm(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!tm(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function tm(e){return Object.prototype.toString.call(e)==="[object Object]"}function rT(e){return new Promise(t=>{setTimeout(t,e)})}function sT(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Ny(e,t):t}function oT(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function iT(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Sy=Symbol();function Cy(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Sy?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var Tr,Gn,Ss,km,aT=(km=class extends Ul{constructor(){super();ie(this,Tr);ie(this,Gn);ie(this,Ss);X(this,Ss,t=>{if(!Wl&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){R(this,Gn)||this.setEventListener(R(this,Ss))}onUnsubscribe(){var t;this.hasListeners()||((t=R(this,Gn))==null||t.call(this),X(this,Gn,void 0))}setEventListener(t){var n;X(this,Ss,t),(n=R(this,Gn))==null||n.call(this),X(this,Gn,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){R(this,Tr)!==t&&(X(this,Tr,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof R(this,Tr)=="boolean"?R(this,Tr):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Tr=new WeakMap,Gn=new WeakMap,Ss=new WeakMap,km),Ey=new aT,Cs,Yn,Es,Pm,lT=(Pm=class extends Ul{constructor(){super();ie(this,Cs,!0);ie(this,Yn);ie(this,Es);X(this,Es,t=>{if(!Wl&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){R(this,Yn)||this.setEventListener(R(this,Es))}onUnsubscribe(){var t;this.hasListeners()||((t=R(this,Yn))==null||t.call(this),X(this,Yn,void 0))}setEventListener(t){var n;X(this,Es,t),(n=R(this,Yn))==null||n.call(this),X(this,Yn,t(this.setOnline.bind(this)))}setOnline(t){R(this,Cs)!==t&&(X(this,Cs,t),this.listeners.forEac
vendor: 17,866 bytes, line 121
121h(r=>{r(t)}))}isOnline(){return R(this,Cs)}},Cs=new WeakMap,Yn=new WeakMap,Es=new WeakMap,Pm),al=new lT;function cT(e){return Math.min(1e3*2**e,3e4)}function Ty(e){return(e??"online")==="online"?al.isOnline():!0}var ky=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Yc(e){return e instanceof ky}function Py(e){let t=!1,n=0,r=!1,s,i,a;const l=new Promise((m,g)=>{i=m,a=g}),c=m=>{var g;r||(y(new ky(m)),(g=e.abort)==null||g.call(e))},u=()=>{t=!0},f=()=>{t=!1},h=()=>Ey.isFocused()&&(e.networkMode==="always"||al.isOnline())&&e.canRun(),d=()=>Ty(e.networkMode)&&e.canRun(),v=m=>{var g;r||(r=!0,(g=e.onSuccess)==null||g.call(e,m),s==null||s(),i(m))},y=m=>{var g;r||(r=!0,(g=e.onError)==null||g.call(e,m),s==null||s(),a(m))},x=()=>new Promise(m=>{var g;s=w=>{(r||h())&&m(w)},(g=e.onPause)==null||g.call(e)}).then(()=>{var m;s=void 0,r||(m=e.onContinue)==null||m.call(e)}),b=()=>{if(r)return;let m;const g=n===0?e.initialPromise:void 0;try{m=g??e.fn()}catch(w){m=Promise.reject(w)}Promise.resolve(m).then(v).catch(w=>{var E;if(r)return;const j=e.retry??(Wl?0:3),N=e.retryDelay??cT,C=typeof N=="function"?N(n,w):N,S=j===!0||typeof j=="number"&&n<j||typeof j=="function"&&j(n,w);if(t||!S){y(w);return}n++,(E=e.onFail)==null||E.call(e,n,w),rT(C).then(()=>h()?void 0:x()).then(()=>{t?y(w):b()})})};return{promise:l,cancel:c,continue:()=>(s==null||s(),l),cancelRetry:u,continueRetry:f,canStart:d,start:()=>(d()?b():x().then(b),l)}}function uT(){let e=[],t=0,n=l=>{l()},r=l=>{l()},s=l=>setTimeout(l,0);const i=l=>{t?e.push(l):s(()=>{n(l)})},a=()=>{const l=e;e=[],l.length&&s(()=>{r(()=>{l.forEach(c=>{n(c)})})})};return{batch:l=>{let c;t++;try{c=l()}finally{t--,t||a()}return c},batchCalls:l=>(...c)=>{i(()=>{l(...c)})},schedule:i,setNotifyFunction:l=>{n=l},setBatchNotifyFunction:l=>{r=l},setScheduler:l=>{s=l}}}var et=uT(),kr,Am,Ay=(Am=class{constructor(){ie(this,kr)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),eT(this.gcTime)&&X(this,kr,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Wl?1/0:5*60*1e3))}clearGcTimeout(){R(this,kr)&&(clearTimeout(R(this,kr)),X(this,kr,void 0))}},kr=new WeakMap,Am),Ts,ks,Pt,Qe,hi,Pr,Ut,yn,Rm,dT=(Rm=class extends Ay{constructor(t){super();ie(this,Ut);ie(this,Ts);ie(this,ks);ie(this,Pt);ie(this,Qe);ie(this,hi);ie(this,Pr);X(this,Pr,!1),X(this,hi,t.defaultOptions),this.setOptions(t.options),this.observers=[],X(this,Pt,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,X(this,Ts,hT(this.options)),this.state=t.state??R(this,Ts),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=R(this,Qe))==null?void 0:t.promise}setOptions(t){this.options={...R(this,hi),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&R(this,Pt).remove(this)}setData(t,n){const r=sT(this.state.data,t,this.options);return Ge(this,Ut,yn).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){Ge(this,Ut,yn).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,s;const n=(r=R(this,Qe))==null?void 0:r.promise;return(s=R(this,Qe))==null||s.cancel(t),n?n.then(Ht).catch(Ht):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(R(this,Ts))}isActive(){return this.observers.some(t=>nT(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!tT(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=R(this,Qe))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=R(this,Qe))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),R(this,Pt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(R(this,Qe)&&(R(this,Pr)?R(this,Qe).cancel({revert:!0}):R(this,Qe).cancelRetry()),this.scheduleGc()),R(this,Pt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Ge(this,Ut,yn).call(this,{type:"invalidate"})}fetch(t,n){var c,u,f;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(R(this,Qe))return R(this,Qe).continueRetry(),R(this,Qe).promise}if(t&&this.setOptions(t),!this.options.queryFn){const h=this.observers.find(d=>d.options.queryFn);h&&this.setOptions(h.options)}const r=new AbortController,s=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(X(this,Pr,!0),r.signal)})},i=()=>{const h=Cy(this.options,n),d={queryKey:this.queryKey,meta:this.meta};return s(d),X(this,Pr,!1),this.options.persister?this.options.persister(h,d,this):h(d)},a={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:i};s(a),(c=this.options.behavior)==null||c.onFetch(a,this),X(this,ks,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=a.fetchOptions)==null?void 0:u.meta))&&Ge(this,Ut,yn).call(this,{type:"fetch",meta:(f=a.fetchOptions)==null?void 0:f.meta});const l=h=>{var d,v,y,x;Yc(h)&&h.silent||Ge(this,Ut,yn).call(this,{type:"error",error:h}),Yc(h)||((v=(d=R(this,Pt).config).onError)==null||v.call(d,h,this),(x=(y=R(this,Pt).config).onSettled)==null||x.call(y,this.state.data,h,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return X(this,Qe,Py({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:h=>{var d,v,y,x;if(h===void 0){l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(h)}catch(b){l(b);return}(v=(d=R(this,Pt).config).onSuccess)==null||v.call(d,h,this),(x=(y=R(this,Pt).config).onSettled)==null||x.call(y,h,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:l,onFail:(h,d)=>{Ge(this,Ut,yn).call(this,{type:"failed",failureCount:h,error:d})},onPause:()=>{Ge(this,Ut,yn).call(this,{type:"pause"})},onContinue:()=>{Ge(this,Ut,yn).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),R(this,Qe).start()}},Ts=new WeakMap,ks=new WeakMap,Pt=new WeakMap,Qe=new WeakMap,hi=new WeakMap,Pr=new WeakMap,Ut=new WeakSet,yn=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...fT(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const s=t.error;return Yc(s)&&s.revert&&R(this,ks)?{...R(this,ks),fetchStatus:"idle"}:{...r,error:s,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),et.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),R(this,Pt).notify({query:this,type:"updated",action:t})})},Rm);function fT(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Ty(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function hT(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var sn,Om,pT=(Om=class extends Ul{constructor(t={}){super();ie(this,sn);this.config=t,X(this,sn,new Map)}build(t,n,r){const s=n.queryKey,i=n.queryHash??Lf(s,n);let a=this.get(i);return a||(a=new dT({cache:this,queryKey:s,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(s)}),this.add(a)),a}add(t){R(this,sn).has(t.queryHash)||(R(this,sn).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=R(this,sn).get(t.queryHash);n&&(t.destroy(),n===t&&R(this,sn).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){et.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return R(this,sn).get(t)}getAll(){return[...R(this,sn).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Jp(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Jp(t,r)):n}notify(t){et.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){et.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){et.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},sn=new WeakMap,Om),on,Je,Ar,an,Fn,_m,mT=(_m=class extends Ay{constructor(t){super();ie(this,an);ie(this,on);ie(this,Je);ie(this,Ar);this.mutationId=t.mutationId,X(this,Je,t.mutationCache),X(this,on,[]),this.state=t.state||gT(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){R(this,on).includes(t)||(R(this,on).push(t),this.clearGcTimeout(),R(this,Je).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){X(this,on,R(this,on).filter(n=>n!==t)),this.scheduleGc(),R(this,Je).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){R(this,on).length||(this.state.status==="pending"?this.scheduleGc():R(this,Je).remove(this))}continue(){var t;return((t=R(this,Ar))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var s,i,a,l,c,u,f,h,d,v,y,x,b,m,g,w,j,N,C,S;X(this,Ar,Py({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(E,k)=>{Ge(this,an,Fn).call(this,{type:"failed",failureCount:E,error:k})},onPause:()=>{Ge(this,an,Fn).call(this,{type:"pause"})},onContinue:()=>{Ge(this,an,Fn).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>R(this,Je).canRun(this)}));const n=this.state.status==="pending",r=!R(this,Ar).canStart();try{if(!n){Ge(this,an,Fn).call(this,{type:"pending",variables:t,isPaused:r}),await((i=(s=R(this,Je).config).onMutate)==null?void 0:i.call(s,t,this));const k=await((l=(a=this.options).onMutate)==null?void 0:l.call(a,t));k!==this.state.context&&Ge(this,an,Fn).call(this,{type:"pending",context:k,variables:t,isPaused:r})}const E=await R(this,Ar).start();return await((u=(c=R(this,Je).config).onSuccess)==null?void 0:u.call(c,E,t,this.state.context,this)),await((h=(f=this.options).onSuccess)==null?void 0:h.call(f,E,t,this.state.context)),await((v=(d=R(this,Je).config).onSettled)==null?void 0:v.call(d,E,null,this.state.variables,this.state.context,this)),await((x=(y=this.options).onSettled)==null?void 0:x.call(y,E,null,t,this.state.context)),Ge(this,an,Fn).call(this,{type:"success",data:E}),E}catch(E){try{throw await((m=(b=R(this,Je).config).onError)==null?void 0:m.call(b,E,t,this.state.context,this)),await((w=(g=this.options).onError)==null?void 0:w.call(g,E,t,this.state.context)),await((N=(j=R(this,Je).config).onSettled)==null?void 0:N.call(j,void 0,E,this.state.variables,this.state.context,this)),await((S=(C=this.options).onSettled)==null?void 0:S.call(C,void 0,E,t,this.state.context)),E}finally{Ge(this,an,Fn).call(this,{type:"error",error:E})}}finally{R(this,Je).runNext(this)}}},on=new WeakMap,Je=new WeakMap,Ar=new WeakMap,an=new WeakSet,Fn=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,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{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),et.batch(()=>{R(this,on).forEach(r=>{r.onMutationUpdate(t)}),R(this,Je).notify({mutation:this,type:"updated",action:t})})},_m);function gT(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var gt,pi,Bm,xT=(Bm=class extends Ul{constructor(t={}){super();ie(this,gt);ie(this,pi);this.config=t,X(this,gt,new Map),X(this,pi,Date.now())}build(t,n,r){const s=new mT({mutationCache:this,mutationId:++Mi(this,pi)._,options:t.defaultMutationOptions(n),state:r});return this.add(s),s}add(t){const n=oa(t),r=R(this,gt).get(n)??[];r.push(t),R(this,gt).set(n,r),this.notify({type:"added",mutation:t})}remove(t){var r;const n=oa(t);if(R(this,gt).has(n)){const s=(r=R(this,gt).get(n))==null?void 0:r.filter(i=>i!==t);s&&(s.length===0?R(this,gt).delete(n):R(this,gt).set(n,s))}this.notify({type:"removed",mutation:t})}canRun(t){var r;const n=(r=R(this,gt).get(oa(t)))==null?void 0:r.find(s=>s.state.status==="pending");return!n||n===t}runNext(t){var r;const n=(r=R(this,gt).get(oa(t)))==null?void 0:r.find(s=>s!==t&&s.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){et.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...R(this,gt).values()].flat()}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Zp(n,r))}findAll(t={}){return this.getAll().filter(n=>Zp(t,n))}notify(t){et.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return et.batch(()=>Promise.all(t.map(n=>n.continue().catch(Ht))))}},gt=new WeakMap,pi=new WeakMap,Bm);function oa(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function nm(e){return{onFetch:(t,n)=>{var f,h,d,v,y;const r=t.options,s=(d=(h=(f=t.fetchOptions)==null?void 0:f.meta)==null?void 0:h.fetchMore)==null?void 0:d.direction,i=((v=t.state.data)==null?void 0:v.pages)||[],a=((y=t.state.data)==null?void 0:y.pageParams)||[];let l={pages:[],pageParams:[]},c=0;const u=async()=>{let x=!1;const b=w=>{Object.defineProperty(w,"signal",{enumerable:!0,get:()=>(t.signal.aborted?x=!0:t.signal.addEventListener("abort",()=>{x=!0}),t.signal)})},m=Cy(t.options,t.fetchOptions),g=async(w,j,N)=>{if(x)return Promise.reject();if(j==null&&w.pages.length)return Promise.resolve(w);const C={queryKey:t.queryKey,pageParam:j,direction:N?"backward":"forward",meta:t.options.meta};b(C);const S=await m(C),{maxPages:E}=t.options,k=N?iT:oT;return{pages:k(w.pages,S,E),pageParams:k(w.pageParams,j,E)}};if(s&&i.length){const w=s==="backward",j=w?vT:rm,N={pages:i,pageParams:a},C=j(r,N);l=await g(N,C,w)}else{const w=e??i.length;do{const j=c===0?a[0]??r.initialPageParam:rm(r,l);if(c>0&&j==null)break;l=await g(l,j),c++}while(c<w)}return l};t.options.persister?t.fetchFn=()=>{var x,b;return(b=(x=t.options).persister)==null?void 0:b.call(x,u,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function rm(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function vT(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var Te,qn,Qn,Ps,As,Kn,Rs,Os,Mm,yT=(Mm=class{constructor(e={}){ie(this,Te);ie(this,qn);ie(this,Qn);ie(this,Ps);ie(this,As);ie(this,Kn);ie(this,Rs);ie(this,Os);X(this,Te,e.queryCache||new pT),X(this,qn,e.mutationCache||new xT),X(this,Qn,e.defaultOptions||{}),X(this,Ps,new Map),X(this,As,new Map),X(this,Kn,0)}mount(){Mi(this,Kn)._++,R(this,Kn)===1&&(X(this,Rs,Ey.subscribe(async e=>{e&&(await this.resumePausedMutations(),R(this,Te).onFocus())})),X(this,Os,al.subscribe(async e=>{e&&(await this.resumePausedMutations(),R(this,Te).onOnline())})))}unmount(){var e,t;Mi(this,Kn)._--,R(this,Kn)===0&&((e=R(this,Rs))==null||e.call(this),X(this,Rs,void 0),(t=R(this,Os))==null||t.call(this),X(this,Os,void 0))}isFetching(e){return R(this,Te).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return R(this,qn).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=R(this,Te).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=R(this,Te).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(Xp(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return R(this,Te).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),s=R(this,Te).get(r.queryHash),i=s==null?void 0:s.state.data,a=ZE(t,i);if(a!==void 0)return R(this,Te).build(this,r).setData(a,{...n,manual:!0})}
121setQueriesData(e,t,n){return et.batch(()=>R(this,Te).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=R(this,Te).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=R(this,Te);et.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=R(this,Te),r={type:"active",...e};return et.batch(()=>(n.findAll(e).forEach(s=>{s.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=et.batch(()=>R(this,Te).findAll(e).map(s=>s.cancel(n)));return Promise.all(r).then(Ht).catch(Ht)}invalidateQueries(e={},t={}){return et.batch(()=>{if(R(this,Te).findAll(e).forEach(r=>{r.invalidate()}),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){const n={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},r=et.batch(()=>R(this,Te).findAll(e).filter(s=>!s.isDisabled()).map(s=>{let i=s.fetch(void 0,n);return n.throwOnError||(i=i.catch(Ht)),s.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(Ht)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=R(this,Te).build(this,t);return n.isStaleByTime(Xp(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Ht).catch(Ht)}fetchInfiniteQuery(e){return e.behavior=nm(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Ht).catch(Ht)}ensureInfiniteQueryData(e){return e.behavior=nm(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return al.isOnline()?R(this,qn).resumePausedMutations():Promise.resolve()}getQueryCache(){return R(this,Te)}getMutationCache(){return R(this,qn)}getDefaultOptions(){return R(this,Qn)}setDefaultOptions(e){X(this,Qn,e)}setQueryDefaults(e,t){R(this,Ps).set(ri(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...R(this,Ps).values()];let n={};return t.forEach(r=>{si(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){R(this,As).set(ri(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...R(this,As).values()];let n={};return t.forEach(r=>{si(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...R(this,Qn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Lf(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.enabled!==!0&&t.queryFn===Sy&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...R(this,Qn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){R(this,Te).clear(),R(this,qn).clear()}},Te=new WeakMap,qn=new WeakMap,Qn=new WeakMap,Ps=new WeakMap,As=new WeakMap,Kn=new WeakMap,Rs=new WeakMap,Os=new WeakMap,Mm),wT=p.createContext(void 0),bT=({client:e,children:t})=>(p.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),o.jsx(wT.Provider,{value:e,children:t}));/**
122 * @remix-run/router v1.19.2
123 *
124 * Copyright (c) Remix Software Inc.
125 *
126 * This source code is licensed under the MIT license found in the
127 * LICENSE.md file in the root directory of this source tree.
128 *
129 * @license MIT
130 */function oi(){return oi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oi.apply(this,arguments)}var Zn;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Zn||(Zn={}));const sm="popstate";function jT(e){e===void 0&&(e={});function t(r,s){let{pathname:i,search:a,hash:l}=r.location;return gd("",{pathname:i,search:a,hash:l},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function n(r,s){return typeof s=="string"?s:ll(s)}return ST(t,n,null,e)}function Be(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Ry(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function NT(){return Math.random().toString(36).substr(2,8)}function om(e,t){return{usr:e.state,key:e.key,idx:t}}function gd(e,t,n,r){return n===void 0&&(n=null),oi({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Zs(t):t,{state:n,key:t&&t.key||r||NT()})}function ll(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Zs(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function ST(e,t,n,r){r===void 0&&(r={});let{window:s=document.defaultView,v5Compat:i=!1}=r,a=s.history,l=Zn.Pop,c=null,u=f();u==null&&(u=0,a.replaceState(oi({},a.state,{idx:u}),""));function f(){return(a.state||{idx:null}).idx}function h(){l=Zn.Pop;let b=f(),m=b==null?null:b-u;u=b,c&&c({action:l,location:x.location,delta:m})}function d(b,m){l=Zn.Push;let g=gd(x.location,b,m);u=f()+1;let w=om(g,u),j=x.createHref(g);try{a.pushState(w,"",j)}catch(N){if(N instanceof DOMException&&N.name==="DataCloneError")throw N;s.location.assign(j)}i&&c&&c({action:l,location:x.location,delta:1})}function v(b,m){l=Zn.Replace;let g=gd(x.location,b,m);u=f();let w=om(g,u),j=x.createHref(g);a.replaceState(w,"",j),i&&c&&c({action:l,location:x.location,delta:0})}function y(b){let m=s.location.origin!=="null"?s.location.origin:s.location.href,g=typeof b=="string"?b:ll(b);return g=g.replace(/ $/,"%20"),Be(m,"No window.location.(origin|href) available to create URL for href: "+g),new URL(g,m)}let x={get action(){return l},get location(){return e(s,a)},listen(b){if(c)throw new Error("A history only accepts one active listener");return s.addEventListener(sm,h),c=b,()=>{s.removeEventListener(sm,h),c=null}},createHref(b){return t(s,b)},createURL:y,encodeLocation(b){let m=y(b);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:d,replace:v,go(b){return a.go(b)}};return x}var im;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(im||(im={}));function CT(e,t,n){return n===void 0&&(n="/"),ET(e,t,n,!1)}function ET(e,t,n,r){let s=typeof t=="string"?Zs(t):t,i=If(s.pathname||"/",n);if(i==null)return null;let a=Oy(e);TT(a);let l=null;for(let c=0;l==null&&c<a.length;++c){let u=DT(i);l=LT(a[c],u,r)}return l}function Oy(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let s=(i,a,l)=>{let c={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};c.relativePath.startsWith("/")&&(Be(c.relativePath.startsWith(r),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+r+'" is not val
130id. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(r.length));let u=lr([r,c.relativePath]),f=n.concat(c);i.children&&i.children.length>0&&(Be(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),Oy(i.children,t,f,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:BT(u,i.index),routesMeta:f})};return e.forEach((i,a)=>{var l;if(i.path===""||!((l=i.path)!=null&&l.includes("?")))s(i,a);else for(let c of _y(i.path))s(i,a,c)}),t}function _y(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,s=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return s?[i,""]:[i];let a=_y(r.join("/")),l=[];return l.push(...a.map(c=>c===""?i:[i,c].join("/"))),s&&l.push(...a),l.map(c=>e.startsWith("/")&&c===""?"/":c)}function TT(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:MT(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const kT=/^:[\w-]+$/,PT=3,AT=2,RT=1,OT=10,_T=-2,am=e=>e==="*";function BT(e,t){let n=e.split("/"),r=n.length;return n.some(am)&&(r+=_T),t&&(r+=AT),n.filter(s=>!am(s)).reduce((s,i)=>s+(kT.test(i)?PT:i===""?RT:OT),r)}function MT(e,t){return e.length===t.length&&e.slice(0,-1).every((r,s)=>r===t[s])?e[e.length-1]-t[t.length-1]:0}function LT(e,t,n){let{routesMeta:r}=e,s={},i="/",a=[];for(let l=0;l<r.length;++l){let c=r[l],u=l===r.length-1,f=i==="/"?t:t.slice(i.length)||"/",h=lm({path:c.relativePath,caseSensitive:c.caseSensitive,end:u},f),d=c.route;if(!h&&u&&n&&!r[r.length-1].route.index&&(h=lm({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},f)),!h)return null;
vendor: 9,180 bytes, lines 130-139
130Object.assign(s,h.params),a.push({params:s,pathname:lr([i,h.pathname]),pathnameBase:HT(lr([i,h.pathnameBase])),route:d}),h.pathnameBase!=="/"&&(i=lr([i,h.pathnameBase]))}return a}function lm(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=IT(e.path,e.caseSensitive,e.end),s=t.match(n);if(!s)return null;let i=s[0],a=i.replace(/(.)\/+$/,"$1"),l=s.slice(1);return{params:r.reduce((u,f,h)=>{let{paramName:d,isOptional:v}=f;if(d==="*"){let x=l[h]||"";a=i.slice(0,i.length-x.length).replace(/(.)\/+$/,"$1")}const y=l[h];return v&&!y?u[d]=void 0:u[d]=(y||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:a,pattern:e}}function IT(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Ry(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,l,c)=>(r.push({paramName:l,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,t?void 0:"i"),r]}function DT(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Ry(!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 If(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function zT(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:s=""}=typeof e=="string"?Zs(e):e;return{pathname:n?n.startsWith("/")?n:FT(n,t):t,search:UT(r),hash:WT(s)}}function FT(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(s=>{s===".."?n.length>1&&n.pop():s!=="."&&n.push(s)}),n.length>1?n.join("/"):"/"}function qc(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"].  Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function $T(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function By(e,t){let n=$T(e);return t?n.map((r,s)=>s===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function My(e,t,n,r){r===void 0&&(r=!1);let s;typeof e=="string"?s=Zs(e):(s=oi({},e),Be(!s.pathname||!s.pathname.includes("?"),qc("?","pathname","search",s)),Be(!s.pathname||!s.pathname.includes("#"),qc("#","pathname","hash",s)),Be(!s.search||!s.search.includes("#"),qc("#","search","hash",s)));let i=e===""||s.pathname==="",a=i?"/":s.pathname,l;if(a==null)l=n;else{let h=t.length-1;if(!r&&a.startsWith("..")){let d=a.split("/");for(;d[0]==="..";)d.shift(),h-=1;s.pathname=d.join("/")}l=h>=0?t[h]:"/"}let c=zT(s,l),u=a&&a!=="/"&&a.endsWith("/"),f=(i||a===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(u||f)&&(c.pathname+="/"),c}const lr=e=>e.join("/").replace(/\/\/+/g,"/"),HT=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),UT=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,WT=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function VT(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Ly=["post","put","patch","delete"];new Set(Ly);const GT=["get",...Ly];new Set(GT);/**
131 * React Router v6.26.2
132 *
133 * Copyright (c) Remix Software Inc.
134 *
135 * This source code is licensed under the MIT license found in the
136 * LICENSE.md file in the root directory of this source tree.
137 *
138 * @license MIT
139 */function ii(){return ii=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ii.apply(this,arguments)}const Df=p.createContext(null),YT=p.createContext(null),Vr=p.createContext(null),Vl=p.createContext(null),Gr=p.createContext({outlet:null,matches:[],isDataRoute:!1}),Iy=p.createContext(null);function qT(e,t){let{relative:n}=t===void 0?{}:t;Si()||Be(!1);let{basename:r,navigator:s}=p.useContext(Vr),{hash:i,pathname:a,search:l}=zy(e,{relative:n}),c=a;return r!=="/"&&(c=a==="/"?r:lr([r,a])),s.createHref({pathname:c,search:l,hash:i})}function Si(){return p.useContext(Vl)!=null}function eo(){return Si()||Be(!1),p.useContext(Vl).location}function Dy(e){p.useContext(Vr).static||p.useLayoutEffect(e)}function zf(){let{isDataRoute:e}=p.useContext(Gr);return e?ak():QT()}function QT(){Si()||Be(!1);let e=p.useContext(Df),{basename:t,future:n,navigator:r}=p.useContext(Vr),{matches:s}=p.useContext(Gr),{pathname:i}=eo(),a=JSON.stringify(By(s,n.v7_relativeSplatPath)),l=p.useRef(!1);return Dy(()=>{l.current=!0}),p.useCallback(function(u,f){if(f===void 0&&(f={}),!l.current)return;if(typeof u=="number"){r.go(u);return}let h=My(u,JSON.parse(a),i,f.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:lr([t,h.pathname])),(f.replace?r.replace:r.push)(h,f.state,f)},[t,r,a,i,e])}function zy(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=p.useContext(Vr),{matches:s}=p.useContext(Gr),{pathname:i}=eo(),a=JSON.stringify(By(s,r.v7_relativeSplatPath));return p.useMemo(()=>My(e,JSON.parse(a),i,n==="path"),[e,a,i,n])}function KT(e,t){return XT(e,t)}function XT(e,t,n,r){Si()||Be(!1);let{navigator:s}=p.useContext(Vr),{matches:i}=p.useContext(Gr),a=i[i.length-1],l=a?a.params:{};a&&a.pathname;let c=a?a.pathnameBase:"/";a&&a.route;let u=eo(),f;if(t){var h;let b=typeof t=="string"?Zs(t):t;c==="/"||(h=b.pathname)!=null&&h.startsWith(c)||Be(!1),f=b}else f=u;let d=f.pathname||"/",v=d;if(c!=="/"){let b=c.replace(/^\//,"").split("/");v="/"+d.replace(/^\//,"").split("/").slice(b.length).join("/")}let y=CT(e,{pathname:v}),x=nk(y&&y.map(b=>Object.assign({},b,{params:Object.assign({},l,b.params),pathname:lr([c,s.encodeLocation?s.encodeLocation(b.pathname).pathname:b.pathname]),pathnameBase:b.pathnameBase==="/"?c:lr([c,s.encodeLocation?s.encodeLocation(b.pathnameBase).pathname:b.pathnameBase])})),i,n,r);return t&&x?p.createElement(Vl.Provider,{value:{location:ii({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:Zn.Pop}},x):x}function JT(){let e=ik(),t=VT(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,s={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},t),n?p.createElement("pre",{style:s},n):null,null)}const ZT=p.createElement(JT,null);class ek extends p.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?p.createElement(Gr.Provider,{value:this.props.routeContext},p.createElement(Iy.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function tk(e){let{routeContext:t,match:n,children:r}=e,s=p.useContext(Df);return s&&s.static&&s.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=n.route.id),p.createElement(Gr.Provider,{value:t},r)}function nk(e,t,n,r){var s;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,l=(s=n)==null?void 0:s.errors;if(l!=null){let f=a.findIndex(h=>h.route.id&&(l==null?void 0:l[h.route.id])!==void 0);f>=0||Be(!1),a=a.slice(0,Math.min(a.length,f+1))}let c=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let f=0;f<a.length;f++){let h=a[f];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(u=f),h.route.id){let{loaderData:d,errors:v}=n,y=h.route.loader&&d[h.route.id]===void 0&&(!v||v[h.route.id]===void 0);if(h.route.lazy||y){c=!0,u>=0?a=a.slice(0,u+1):a=[a[0]];break}}}return a.reduceRight((f,h,d)=>{let v,y=!1,x=null,b=null;n&&(v=l&&h.route.id?l[h.route.id]:void 0,x=h.route.errorElement||ZT,c&&(u<0&&d===0?(y=!0,b=null):u===d&&(y=!0,b=h.route.hydrateFallbackElement||null)));let m=t.concat(a.slice(0,d+1)),g=()=>{let w;return v?w=x:y?w=b:h.route.Component?w=p.createElement(h.route.Component,null):h.route.element?w=h.route.element:w=f,p.createElement(tk,{match:h,routeC
139ontext:{outlet:f,matches:m,isDataRoute:n!=null},children:w})};return n&&(h.route.ErrorBoundary||h.route.errorElement||d===0)?p.createElement(ek,{location:n.location,revalidation:n.revalidation,component:x,error:v,children:g(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):g()},null)}var Fy=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Fy||{}),cl=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}(cl||{});function rk(e){let t=p.useContext(Df);return t||Be(!1),t}function sk(e){let t=p.useContext(YT);return t||Be(!1),t}function ok(e){let t=p.useContext(Gr);return t||Be(!1),t}function $y(e){let t=ok(),n=t.matches[t.matches.length-1];return n.route.id||Be(!1),n.route.id}function ik(){var e;let t=p.useContext(Iy),n=sk(cl.UseRouteError),r=$y(cl.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function ak(){let{router:e}=rk(Fy.UseNavigateStable),t=$y(cl.UseNavigateStable),n=p.useRef(!1);return Dy(()=>{n.current=!0}),p.useCallback(function(s,i){i===void 0&&(i={}),n.current&&(typeof s=="number"?e.navigate(s):e.navigate(s,ii({fromRouteId:t},i)))},[e,t])}function Ft(e){Be(!1)}function lk(e){let{basename:t="/",children:n=null,location:r,navigationType:s=Zn.Pop,navigator:i,static:a=!1,future:l}=e;Si()&&Be(!1);let c=t.replace(/^\/*/,"/"),u=p.useMemo(()=>({basename:c,navigator:i,static:a,future:ii({v7_relativeSplatPath:!1},l)}),[c,l,i,a]);typeof r=="string"&&(r=Zs(r));let{pathname:f="/",search:h="",hash:d="",state:v=null,key:y="default"}=r,x=p.useMemo(()=>{let b=If(f,c);return b==null?null:{location:{pathname:b,search:h,hash:d,state:v,key:y},navigationType:s}},[c,f,h,d,v,y,s]);return x==null?null:p.createElement(Vr.Provider,{value:u},p.createElement(Vl.Provider,{children:n,value:x}))}function ck(e){let{children:t,location:n}=e;return KT(xd(t),n)}new Promise(()=>{});function xd(e,t){t===void 0&&(t=[]);let n=[];return p.Children.forEach(e,(r,s)=>{if(!p.isValidElement(r))return;let i=[...t,s];if(r.type===p.Fragment){n.push.apply(n,xd(r.props.children,i));return}r.type!==Ft&&Be(!1),!r.props.index||!r.props.children||Be(!1);let a={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=xd(r.props.children,i)),n.push(a)}),n}/**
140 * React Router DOM v6.26.2
141 *
142 * Copyright (c) Remix Software Inc.
143 *
144 * This source code is licensed under the MIT license found in the
145 * LICENSE.md file in the root directory of this source tree.
146 *
147 * @license MIT
148 */function vd(){return vd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vd.apply(this,arguments)}function uk(e,t){if(e==null)return{};var n={},r=Object.keys(e),s,i;for(i=0;i<r.length;i++)s=r[i],!(t.indexOf(s)>=0)&&(n[s]=e[s]);return n}function dk(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function fk(e,t){return e.button===0&&(!t||t==="_self")&&!dk(e)}const hk=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],pk="6";try{window.__reactRouterVersion=pk}catch{}const mk="startTransition",cm=Gm[mk];function gk(e){let{basename:t,children:n,future:r,window:s}=e,i=p.useRef();i.current==null&&(i.current=jT({window:s,v5Compat:!0}));let a=i.current,[l,c]=p.useState({action:a.action,location:a.location}),{v7_startTransition:u}=r||{},f=p.useCallback(h=>{u&&cm?cm(()=>c(h)):c(h)},[c,u]);return p.useLayoutEffect(()=>a.listen(f),[a,f]),p.createElement(lk,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:a,future:r})}const xk=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",vk=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Us=p.forwardRef(function(t,n){let{onClick:r,relative:s,reloadDocument:i,replace:a,state:l,target:c,to:u,preventScrollReset:f,unstable_viewTransition:h}=t,d=uk(t,hk),{basename:v}=p.useContext(Vr),y,x=!1;if(typeof u=="string"&&vk.test(u)&&(y=u,xk))try{let w=new URL(window.location.href),j=u.startsWith("//")?new URL(w.protocol+u):new URL(u),N=If(j.pathname,v);j.origin===w.origin&&N!=null?u=N+j.search+j.hash:x=!0}catch{}let b=qT(u,{relative:s}),m=yk(u,{replace:a,state:l,target:c,preventScrollReset:f,relative:s,unstable_viewTransition:h});function g(w){r&&r(w),w.defaultPrevented||m(w)}return p.createElement("a",vd({},d,{href:y||b,onClick:x||i?r:g,ref:n,target:c}))});var um;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(um||(um={}));var dm;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(dm||(dm={}));function yk(e,t){let{target:n,replace:r,state:s,preventScrollReset:i,relative:a,unstable_viewTransition:l}=t===void 0?{}:t,c=zf(),u=eo(),f=zy(e,{relative:a});return p.useCallback(h=>{if(fk(h,n)){h.preventDefault();let d=r!==void 0?r:ll(u)===ll(f);c(e,{replace:d,state:s,preventScrollReset:i,relative:a,unstable_viewTransition:l})}},[u,c,f,r,s,n,e,i,a,l])}const wk=Sf("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Y=p.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...s},i)=>{const a=r?Fs:"button";return o.jsx(a,{className:J(wk({variant:t,size:n,className:e})),ref:i,...s})});Y.displayName="Button";function bk(e,t){const n=p.createContext(t),r=i=>{const{children:a,...l}=i,c=p.useMemo(()=>l,Object.values(l));return o.jsx(n.Provider,{value:c,children:a})};r.displayName=e+"Provider";function s(i){const a=p.useContext(n);if(a)return a;
vendor: 8,316 bytes, line 148
148if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,s]}function jk(e,t=[]){let n=[];function r(i,a){const l=p.createContext(a),c=n.length;n=[...n,a];const u=h=>{var m;const{scope:d,children:v,...y}=h,x=((m=d==null?void 0:d[e])==null?void 0:m[c])||l,b=p.useMemo(()=>y,Object.values(y));return o.jsx(x.Provider,{value:b,children:v})};u.displayName=i+"Provider";function f(h,d){var x;const v=((x=d==null?void 0:d[e])==null?void 0:x[c])||l,y=p.useContext(v);if(y)return y;if(a!==void 0)return a;throw new Error(`\`${h}\` must be used within \`${i}\``)}return[u,f]}const s=()=>{const i=n.map(a=>p.createContext(a));return function(l){const c=(l==null?void 0:l[e])||i;return p.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return s.scopeName=e,[r,Nk(s,...t)]}function Nk(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const a=r.reduce((l,{useScope:c,scopeName:u})=>{const h=c(i)[`__scope${u}`];return{...l,...h}},{});return p.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}var Qc="focusScope.autoFocusOnMount",Kc="focusScope.autoFocusOnUnmount",fm={bubbles:!1,cancelable:!0},Sk="FocusScope",Hy=p.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:s,onUnmountAutoFocus:i,...a}=e,[l,c]=p.useState(null),u=Pe(s),f=Pe(i),h=p.useRef(null),d=fe(t,x=>c(x)),v=p.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;p.useEffect(()=>{if(r){let x=function(w){if(v.paused||!l)return;const j=w.target;l.contains(j)?h.current=j:$n(h.current,{select:!0})},b=function(w){if(v.paused||!l)return;const j=w.relatedTarget;j!==null&&(l.contains(j)||$n(h.current,{select:!0}))},m=function(w){if(document.activeElement===document.body)for(const N of w)N.removedNodes.length>0&&$n(l)};document.addEventListener("focusin",x),document.addEventListener("focusout",b);const g=new MutationObserver(m);return l&&g.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",x),document.removeEventListener("focusout",b),g.disconnect()}}},[r,l,v.paused]),p.useEffect(()=>{if(l){pm.add(v);const x=document.activeElement;if(!l.contains(x)){const m=new CustomEvent(Qc,fm);l.addEventListener(Qc,u),l.dispatchEvent(m),m.defaultPrevented||(Ck(Ak(Uy(l)),{select:!0}),document.activeElement===x&&$n(l))}return()=>{l.removeEventListener(Qc,u),setTimeout(()=>{const m=new CustomEvent(Kc,fm);l.addEventListener(Kc,f),l.dispatchEvent(m),m.defaultPrevented||$n(x??document.body,{select:!0}),l.removeEventListener(Kc,f),pm.remove(v)},0)}}},[l,u,f,v]);const y=p.useCallback(x=>{if(!n&&!r||v.paused)return;const b=x.key==="Tab"&&!x.altKey&&!x.ctrlKey&&!x.metaKey,m=document.activeElement;if(b&&m){const g=x.currentTarget,[w,j]=Ek(g);w&&j?!x.shiftKey&&m===j?(x.preventDefault(),n&&$n(w,{select:!0})):x.shiftKey&&m===w&&(x.preventDefault(),n&&$n(j,{select:!0})):m===g&&x.preventDefault()}},[n,r,v.paused]);return o.jsx(te.div,{tabIndex:-1,...a,ref:d,onKeyDown:y})});Hy.displayName=Sk;function Ck(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if($n(r,{select:t}),document.activeElement!==n)return}function Ek(e){const t=Uy(e),n=hm(t,e),r=hm(t.reverse(),e);return[n,r]}function Uy(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const s=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||s?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function hm(e,t){for(const n of e)if(!Tk(n,{upTo:t}))return n}function Tk(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 kk(e){return e instanceof HTMLInputElement&&"select"in e}function $n(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&kk(e)&&t&&e.select()}}var pm=Pk();function Pk(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=mm(e,t),e.unshift(t)},remove(t){var n;e=mm(e,t),(n=e[0])==null||n.resume()}}}function mm(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Ak(e){return e.filter(t=>t.tagName!=="A")}function Rk(e,t){return p.useReducer((n,r)=>t[n][r]??n,e)}var Gl=e=>{const{present:t,children:n}=e,r=Ok(t),s=typeof n=="function"?n({present:r.isPresent}):p.Children.only(n),i=fe(r.ref,_k(s));return typeof n=="function"||r.isPresent?p.cloneElement(s,{ref:i}):null};Gl.displayName="Presence";function Ok(e){const[t,n]=p.useState(),r=p.useRef({}),s=p.useRef(e),i=p.useRef("none"),a=e?"mounted":"unmounted",[l,c]=Rk(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return p.useEffect(()=>{const u=ia(r.current);i.current=l==="mounted"?u:"none"},[l]),Ve(()=>{const u=r.current,f=s.current;if(f!==e){const d=i.current,v=ia(u);e?c("MOUNT"):v==="none"||(u==null?void 0:u.display)==="none"?c("UNMOUNT"):c(f&&d!==v?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,c]),Ve(()=>{if(t){let u;const f=t.ownerDocument.defaultView??window,h=v=>{const x=ia(r.current).includes(v.animationName);if(v.target===t&&x&&(c("ANIMATION_END"),!s.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",u=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},d=v=>{v.target===t&&(i.current=ia(r.current))};return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",h),t.addEventListener("animationend",h),()=>{f.clearTimeout(u),t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",h),t.removeEventListener("animationend",h)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:p.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function ia(e){return(e==null?void 0:e.animationName)||"none"}function _k(e){var r,s;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Xc=0;function Bk(){p.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??gm()),document.body.insertAdjacentElement("beforeend",e[1]??gm()),Xc++,()=>{Xc===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Xc--}},[])}function gm(){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 cn=function(){return cn=Object.assign||function(t){for(var n,r=1,s=arguments.length;r<s;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},cn.apply(this,arguments)};function Wy(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(n[r[s]]=e[r[s]]);return n}function Mk(e,t,n){if(n||arguments.length===2)for(var r=0,s=t.length,i;r<s;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var Ra="right-scroll-bar-position",Oa="width-before-scroll-bar",Lk="with-scroll-bars-hidden",Ik="--removed-body-scroll-bar-size";function Jc(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Dk(e,t){var n=p.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var s=n.value;s!==r&&(n.value=r,n.callback(r,s))}}}})[0];return n.callback=t,n.facade}var zk=typeof window<"u"?p.useLayoutEffect:p.useEffect,xm=new WeakMap;function Fk(e,t){var n=Dk(null,function(r){return e.forEach(function(s){return Jc(s,r)})});return zk(function(){var r=xm.get(n);if(r){var s=new Set(r),i=new Set(e),a=n.current;
vendor: 4,155 bytes, lines 148-163
148s.forEach(function(l){i.has(l)||Jc(l,null)}),i.forEach(function(l){s.has(l)||Jc(l,a)})}xm.set(n,e)},[e]),n}function $k(e){return e}function Hk(e,t){t===void 0&&(t=$k);var n=[],r=!1,s={read:function(){if(r)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(i){var a=t(i,r);return n.push(a),function(){n=n.filter(function(l){return l!==a})}},assignSyncMedium:function(i){for(r=!0;n.length;){var a=n;n=[],a.forEach(i)}n={push:function(l){return i(l)},filter:function(){return n}}},assignMedium:function(i){r=!0;var a=[];if(n.length){var l=n;n=[],l.forEach(i),a=n}var c=function(){var f=a;a=[],f.forEach(i)},u=function(){return Promise.resolve().then(c)};u(),n={push:function(f){a.push(f),u()},filter:function(f){return a=a.filter(f),n}}}};return s}function Uk(e){e===void 0&&(e={});var t=Hk(null);return t.options=cn({async:!0,ssr:!1},e),t}var Vy=function(e){var t=e.sideCar,n=Wy(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return p.createElement(r,cn({},n))};Vy.isSideCarExport=!0;function Wk(e,t){return e.useMedium(t),Vy}var Gy=Uk(),Zc=function(){},Yl=p.forwardRef(function(e,t){var n=p.useRef(null),r=p.useState({onScrollCapture:Zc,onWheelCapture:Zc,onTouchMoveCapture:Zc}),s=r[0],i=r[1],a=e.forwardProps,l=e.children,c=e.className,u=e.removeScrollBar,f=e.enabled,h=e.shards,d=e.sideCar,v=e.noIsolation,y=e.inert,x=e.allowPinchZoom,b=e.as,m=b===void 0?"div":b,g=e.gapMode,w=Wy(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),j=d,N=Fk([n,t]),C=cn(cn({},w),s);return p.createElement(p.Fragment,null,f&&p.createElement(j,{sideCar:Gy,removeScrollBar:u,shards:h,noIsolation:v,inert:y,setCallbacks:i,allowPinchZoom:!!x,lockRef:n,gapMode:g}),a?p.cloneElement(p.Children.only(l),cn(cn({},C),{ref:N})):p.createElement(m,cn({},C,{className:c,ref:N}),l))});Yl.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Yl.classNames={fullWidth:Oa,zeroRight:Ra};var Vk=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Gk(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Vk();return t&&e.setAttribute("nonce",t),e}function Yk(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function qk(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Qk=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Gk())&&(Yk(t,n),qk(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Kk=function(){var e=Qk();return function(t,n){p.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Yy=function(){var e=Kk(),t=function(n){var r=n.styles,s=n.dynamic;return e(r,s),null};return t},Xk={left:0,top:0,right:0,gap:0},eu=function(e){return parseInt(e||"",10)||0},Jk=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],s=t[e==="padding"?"paddingRight":"marginRight"];return[eu(n),eu(r),eu(s)]},Zk=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Xk;var t=Jk(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},e2=Yy(),Ns="data-scroll-locked",t2=function(e,t,n,r){var s=e.left,i=e.top,a=e.right,l=e.gap;return n===void 0&&(n="margin"),`
149  .`.concat(Lk,` {
150   overflow: hidden `).concat(r,`;
151   padding-right: `).concat(l,"px ").concat(r,`;
152  }
153  body[`).concat(Ns,`] {
154    overflow: hidden `).concat(r,`;
155    overscroll-behavior: contain;
156    `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
157    padding-left: `.concat(s,`px;
158    padding-top: `).concat(i,`px;
159    padding-right: `).concat(a,`px;
160    margin-left:0;
161    margin-top:0;
162    margin-right: `).concat(l,"px ").concat(r,`;
163    `),n==="padding"&&"padding-right: ".concat(l,"px ").concat(r,";
163")].filter(Boolean).join(""),`
164  }
165  
166  .`).concat(Ra,` {
167    right: `).concat(l,"px ").concat(r,`;
168  }
169  
170  .`).concat(Oa,` {
171    margin-right: `).concat(l,"px ").concat(r,`;
172  }
173  
174  .`).concat(Ra," .").concat(Ra,` {
175    right: 0 `).concat(r,`;
176  }
177  
178  .`).concat(Oa," .").concat(Oa,` {
179    margin-right: 0 `).concat(r,`;
180  }
181  
182  body[`).concat(Ns,`] {
183    `).concat(Ik,": ").concat(l,`px;
184  }
185`)},vm=function(){var e=parseInt(document.body.getAttribute(Ns)||"0",10);return isFinite(e)?e:0},n2=function(){p.useEffect(function(){return document.body.setAttribute(Ns,(vm()+1).toString()),function(){var e=vm()-1;e<=0?document.body.removeAttribute(Ns):document.body.setAttribute(Ns,e.toString())}},[])},r2=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,s=r===void 0?"margin":r;n2();var i=p.useMemo(function(){return Zk(s)},[s]);return p.createElement(e2,{styles:t2(i,!t,s,n?"":"!important")})},yd=!1;if(typeof window<"u")try{var aa=Object.defineProperty({},"passive",{get:function(){return yd=!0,!0}});window.addEventListener("test",aa,aa),window.removeEventListener("test",aa,aa)}catch{yd=!1}var Xr=yd?{passive:!1}:!1,s2=function(e){return e.tagName==="TEXTAREA"},qy=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!s2(e)&&n[t]==="visible")},o2=function(e){return qy(e,"overflowY")},i2=function(e){return qy(e,"overflowX")},ym=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var s=Qy(e,r);if(s){var i=Ky(e,r),a=i[1],l=i[2];if(a>l)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},a2=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},l2=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Qy=function(e,t){return e==="v"?o2(t):i2(t)},Ky=function(e,t){return e==="v"?a2(t):l2(t)},c2=function(e,t){return e==="h"&&t==="rtl"?-1:1},u2=function(e,t,n,r,s){var i=c2(e,window.getComputedStyle(t).direction),a=i*r,l=n.target,c=t.contains(l),u=!1,f=a>0,h=0,d=0;do{var v=Ky(e,l),y=v[0],x=v[1],b=v[2],m=x-b-i*y;(y||m)&&Qy(e,l)&&(h+=m,d+=y),l instanceof ShadowRoot?l=l.host:l=l.parentNode}while(!c&&l!==document.body||c&&(t.contains(l)||t===l));return(f&&(Math.abs(h)<1||!s)||!f&&(Math.abs(d)<1||!s))&&(u=!0),u},la=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},wm=function(e){return[e.deltaX,e.deltaY]},bm=function(e){return e&&"current"in e?e.current:e},d2=function(e,t){return e[0]===t[0]&&e[1]===t[1]},f2=function(e){return`
186  .block-interactivity-`.concat(e,` {pointer-events: none;}
187  .allow-interactivity-`).concat(e,` {pointer-events: all;}
188`)},h2=0,Jr=[];function p2(e){var t=p.useRef([]),n=p.useRef([0,0]),r=p.useRef(),s=p.useState(h2++)[0],i=p.useState(Yy)[0],a=p.useRef(e);p.useEffect(function(){a.current=e},[e]),p.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var x=Mk([e.lockRef.current],(e.shards||[]).map(bm),!0).filter(Boolean);return x.forEach(function(b){return b.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),x.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var l=p.useCallback(function(x,b){if("touches"in x&&x.touches.length===2||x.type==="wheel"&&x.ctrlKey)return!a.current.allowPinchZoom;var m=la(x),g=n.current,w="deltaX"in x?x.deltaX:g[0]-m[0],j="deltaY"in x?x.deltaY:g[1]-m[1],N,C=x.target,S=Math.abs(w)>Math.abs(j)?"h":"v";if("touches"in x&&S==="h"&&C.type==="range")return!1;var E=ym(S,C);if(!E)return!0;if(E?N=S:(N=S==="v"?"h":"v",E=ym(S,C)),!E)return!1;if(!r.current&&"changedTouches"in x&&(w||j)&&(r.current=N),!N)return!0;var k=r.current||N;return u2(k,b,x,k==="h"?w:j,!0)},[]),c=p.useCallback(function(x){var b=x;if(!(!Jr.length||Jr[Jr.length-1]!==i)){var m="deltaY"in b?wm(b):la(b),g=t.current.filter(function(N){return N.name===b.type&&(N.target===b.target||b.target===N.shadowParent)&&d2(N.delta,m)})[0];if(g&&g.should){b.cancelable&&b.preventDefault();return}
vendor: 9,553 bytes, lines 188-192
188if(!g){var w=(a.current.shards||[]).map(bm).filter(Boolean).filter(function(N){return N.contains(b.target)}),j=w.length>0?l(b,w[0]):!a.current.noIsolation;j&&b.cancelable&&b.preventDefault()}}},[]),u=p.useCallback(function(x,b,m,g){var w={name:x,delta:b,target:m,should:g,shadowParent:m2(m)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(j){return j!==w})},1)},[]),f=p.useCallback(function(x){n.current=la(x),r.current=void 0},[]),h=p.useCallback(function(x){u(x.type,wm(x),x.target,l(x,e.lockRef.current))},[]),d=p.useCallback(function(x){u(x.type,la(x),x.target,l(x,e.lockRef.current))},[]);p.useEffect(function(){return Jr.push(i),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:d}),document.addEventListener("wheel",c,Xr),document.addEventListener("touchmove",c,Xr),document.addEventListener("touchstart",f,Xr),function(){Jr=Jr.filter(function(x){return x!==i}),document.removeEventListener("wheel",c,Xr),document.removeEventListener("touchmove",c,Xr),document.removeEventListener("touchstart",f,Xr)}},[]);var v=e.removeScrollBar,y=e.inert;return p.createElement(p.Fragment,null,y?p.createElement(i,{styles:f2(s)}):null,v?p.createElement(r2,{gapMode:e.gapMode}):null)}function m2(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const g2=Wk(Gy,p2);var Xy=p.forwardRef(function(e,t){return p.createElement(Yl,cn({},e,{ref:t,sideCar:g2}))});Xy.classNames=Yl.classNames;var x2=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Zr=new WeakMap,ca=new WeakMap,ua={},tu=0,Jy=function(e){return e&&(e.host||Jy(e.parentNode))},v2=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Jy(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},y2=function(e,t,n,r){var s=v2(t,Array.isArray(e)?e:[e]);ua[n]||(ua[n]=new WeakMap);var i=ua[n],a=[],l=new Set,c=new Set(s),u=function(h){!h||l.has(h)||(l.add(h),u(h.parentNode))};s.forEach(u);var f=function(h){!h||c.has(h)||Array.prototype.forEach.call(h.children,function(d){if(l.has(d))f(d);else try{var v=d.getAttribute(r),y=v!==null&&v!=="false",x=(Zr.get(d)||0)+1,b=(i.get(d)||0)+1;Zr.set(d,x),i.set(d,b),a.push(d),x===1&&y&&ca.set(d,!0),b===1&&d.setAttribute(n,"true"),y||d.setAttribute(r,"true")}catch(m){console.error("aria-hidden: cannot operate on ",d,m)}})};return f(t),l.clear(),tu++,function(){a.forEach(function(h){var d=Zr.get(h)-1,v=i.get(h)-1;Zr.set(h,d),i.set(h,v),d||(ca.has(h)||h.removeAttribute(r),ca.delete(h)),v||h.removeAttribute(n)}),tu--,tu||(Zr=new WeakMap,Zr=new WeakMap,ca=new WeakMap,ua={})}},w2=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),s=x2(e);return s?(r.push.apply(r,Array.from(s.querySelectorAll("[aria-live]"))),y2(r,s,n,"aria-hidden")):function(){return null}},Ff="Dialog",[Zy,rR]=jk(Ff),[b2,Zt]=Zy(Ff),e0=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:s,onOpenChange:i,modal:a=!0}=e,l=p.useRef(null),c=p.useRef(null),[u=!1,f]=bi({prop:r,defaultProp:s,onChange:i});return o.jsx(b2,{scope:t,triggerRef:l,contentRef:c,contentId:Lo(),titleId:Lo(),descriptionId:Lo(),open:u,onOpenChange:f,onOpenToggle:p.useCallback(()=>f(h=>!h),[f]),modal:a,children:n})};e0.displayName=Ff;var t0="DialogTrigger",n0=p.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=Zt(t0,n),i=fe(t,s.triggerRef);return o.jsx(te.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":Uf(s.open),...r,ref:i,onClick:ee(e.onClick,s.onOpenToggle)})});n0.displayName=t0;var $f="DialogPortal",[j2,r0]=Zy($f,{forceMount:void 0}),s0=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:s}=e,i=Zt($f,t);return o.jsx(j2,{scope:t,forceMount:n,children:p.Children.map(r,a=>o.jsx(Gl,{present:n||i.open,children:o.jsx(hy,{asChild:!0,container:s,children:a})}))})};s0.displayName=$f;var ul="DialogOverlay",o0=p.forwardRef((e,t)=>{const n=r0(ul,e.__scopeDialog),{forceMount:r=n.forceMount,...s}=e,i=Zt(ul,e.__scopeDialog);return i.modal?o.jsx(Gl,{present:r||i.open,children:o.jsx(N2,{...s,ref:t})}):null});o0.displayName=ul;var N2=p.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=Zt(ul,n);return o.jsx(Xy,{as:Fs,allowPinchZoom:!0,shards:[s.contentRef],children:o.jsx(te.div,{"data-state":Uf(s.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),zr="DialogContent",i0=p.forwardRef((e,t)=>{const n=r0(zr,e.__scopeDialog),{forceMount:r=n.forceMount,...s}=e,i=Zt(zr,e.__scopeDialog);return o.jsx(Gl,{present:r||i.open,children:i.modal?o.jsx(S2,{...s,ref:t}):o.jsx(C2,{...s,ref:t})})});i0.displayName=zr;var S2=p.forwardRef((e,t)=>{const n=Zt(zr,e.__scopeDialog),r=p.useRef(null),s=fe(t,n.contentRef,r);return p.useEffect(()=>{const i=r.current;if(i)return w2(i)},[]),o.jsx(a0,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ee(e.onCloseAutoFocus,i=>{var a;i.preventDefault(),(a=n.triggerRef.current)==null||a.focus()}),onPointerDownOutside:ee(e.onPointerDownOutside,i=>{const a=i.detail.originalEvent,l=a.button===0&&a.ctrlKey===!0;(a.button===2||l)&&i.preventDefault()}),onFocusOutside:ee(e.onFocusOutside,i=>i.preventDefault())})}),C2=p.forwardRef((e,t)=>{const n=Zt(zr,e.__scopeDialog),r=p.useRef(!1),s=p.useRef(!1);return o.jsx(a0,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var a,l;(a=e.onCloseAutoFocus)==null||a.call(e,i),i.defaultPrevented||(r.current||(l=n.triggerRef.current)==null||l.focus(),i.preventDefault()),r.current=!1,s.current=!1},onInteractOutside:i=>{var c,u;(c=e.onInteractOutside)==null||c.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const a=i.target;((u=n.triggerRef.current)==null?void 0:u.contains(a))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&s.current&&i.preventDefault()}})}),a0=p.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:i,...a}=e,l=Zt(zr,n),c=p.useRef(null),u=fe(t,c);return Bk(),o.jsxs(o.Fragment,{children:[o.jsx(Hy,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:s,onUnmountAutoFocus:i,children:o.jsx(Tf,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":Uf(l.open),...a,ref:u,onDismiss:()=>l.onOpenChange(!1)})}),o.jsxs(o.Fragment,{children:[o.jsx(E2,{titleId:l.titleId}),o.jsx(k2,{contentRef:c,descriptionId:l.descriptionId})]})]})}),Hf="DialogTitle",l0=p.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=Zt(Hf,n);return o.jsx(te.h2,{id:s.titleId,...r,ref:t})});l0.displayName=Hf;var c0="DialogDescription",u0=p.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=Zt(c0,n);return o.jsx(te.p,{id:s.descriptionId,...r,ref:t})});u0.displayName=c0;var d0="DialogClose",f0=p.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=Zt(d0,n);return o.jsx(te.button,{type:"button",...r,ref:t,onClick:ee(e.onClick,()=>s.onOpenChange(!1))})});f0.displayName=d0;function Uf(e){return e?"open":"closed"}var h0="DialogTitleWarning",[sR,p0]=bk(h0,{contentName:zr,titleName:Hf,docsSlug:"dialog"}),E2=({titleId:e})=>{const t=p0(h0),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
189
190If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
191
192For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return p.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},T2="DialogDescriptionWarning",k2=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${p0(T2).contentName}}.`;return p.useEffect(()=>{var i;const s=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&s&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},m0=e0,P2=n0,g0=s0,ql=o0,Ql=i0,Kl=l0,Xl=u0,x0=f0;const Wf=m0,Vf=P2,Gf=x0,A2=g0,v0=p.forwardRef(({className:e,...t},n)=>o.jsx(ql,{className:J("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,ref:n}));v0.displayName=ql.displayName;const R2=Sf("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 p-0 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),Jl=p.forwardRef(({side:e="right",className:t,children:n,...r},s)=>o.jsxs(A2,{children:[o.jsx(v0,{}),o.jsx(Ql,{ref:s,className:J(R2({side:e}),t),...r,children:n})]}));Jl.displayName=Ql.displayName;const O2=p.forwardRef(({className:e,...t},n)=>o.jsx(Kl,{ref:n,className:J("text-lg font-semibold text-foreground",e),...t}));O2.displayName=Kl.displayName;const _2=p.forwardRef(({className:e,...t},n)=>o.jsx(Xl,{ref:n,className:J("text-sm text-muted-foreground",e),...t}));_2.displayName=Xl.displayName;const B2=(e,t)=>
192{try{window.gtag?(window.gtag("event",e,t),console.log(`Analytics event tracked via gtag: ${e}`,t)):window.dataLayer?(window.dataLayer.push({event:e,...t}),console.log(`Analytics event tracked via dataLayer: ${e}`,t)):console.warn("Google Analytics not detected. Event not tracked:",e)}catch(n){console.error("Error tracking analytics event:",n)}},pn=()=>{B2("initiate_checkout",{checkout_step:1,product:"pTau testing"})},Yf=()=>{const[e,t]=p.useState(!1),n=[{to:"#how-it-works",label:"How it works"},{to:"#future-detection",label:"Science"},{to:"#reviews",label:"Reviews"},{to:"#faq",label:"FAQ"}],r=i=>{t(!1),setTimeout(()=>{const a=document.getElementById(i.substring(1));a&&a.scrollIntoView({behavior:"smooth"})},100)},s=i=>{i.preventDefault(),pn(),t(!1),setTimeout(()=>{const a=document.getElementById("pricing-comparison-table");a&&a.scrollIntoView({behavior:"smooth"})},100)};return o.jsx("header",{className:"border-b border-brandBlue bg-brandBlue",children:o.jsxs("div",{className:"container mx-auto flex items-center justify-between py-4 px-1 md:px-2",children:[o.jsx("div",{className:"flex items-center pl-0 ml-0 my-auto",children:o.jsx(Us,{to:"/",className:"flex items-center",children:o.jsx("img",{src:"/lovable-uploads/8f5a292b-3fe9-4171-8a6b-060885cb0f7d.png",alt:"BetterBrain Logo",className:"h-10"})})}),o.jsxs("nav",{className:"hidden md:flex items-center space-x-8",children:[n.map(i=>o.jsx(Us,{to:i.to,className:"text-white hover:text-gray-200 my-auto",onClick:()=>r(i.to),children:i.label},i.to)),o.jsx(Y,{className:"bg-white hover:bg-gray-100 text-brandBlue my-auto flex items-center justify-center",children:o.jsx("a",{href:"#pricing-comparison-table",className:"w-full h-full font-bold flex items-center justify-center",onClick:s,children:"Start today"})})]}),o.jsx("div",{className:"md:hidden pr-0 ml-auto",children:o.jsxs(Wf,{open:e,onOpenChange:t,children:[o.jsx(Vf,{asChild:!0,children:o.jsx(Y,{variant:"ghost",className:"text-white bg-brandBlue hover:bg-opacity-90 font-medium py-3 px-6 text-lg rounded-lg",children:o.jsx("span",{className:"text-lg font-medium",children:"MENU"})})}),o.jsxs(Jl,{side:"right",className:"bg-cream w-full border-none p-0",children:[o.jsxs("div",{className:"bg-brandBlue p-6 flex justify-between items-center",children:[o.jsx("img",{src:"/lovable-uploads/8f5a292b-3fe9-4171-8a6b-060885cb0f7d.png",alt:"BetterBrain Logo",className:"h-10"}),o.jsx(Gf,{className:"rounded-full bg-white text-brandBlue h-10 w-10 flex items-center justify-center",children:o.jsx(ji,{className:"h-5 w-5"})})]}),o.jsxs("div",{className:"flex flex-col p-0",children:[n.map(i=>o.jsx("div",{className:"py-6 px-6 text-xl font-semibold text-center border-b border-gray-200 cursor-pointer hover:bg-gray-50 transition-colors",onClick:()=>r(i.to),children:i.label},i.to)),o.jsx("div",{className:"p-6 flex items-center justify-center",children:o.jsx(Y,{className:"w-full bg-brandBlue hover:bg-opacity-90 text-white font-medium py-3 px-6 text-lg rounded-lg flex items-center justify-center",onClick:s,children:"Start today"})})]})]})]})})]})})},y0=({showInterpretBullet:e=!1})=>{const t=()=>{pn();const n=document.getElementById("pricing-comparison-table");n&&n.scrollIntoView({behavior:"smooth"})};return o.jsx("section",{className:"bg-cream py-16",id:"hero",children:o.jsx("div",{className:"container mx-auto px-2 md:px-4 max-w-7xl",children:o.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8 items-center",children:[o.jsxs("div",{children:[o.jsx("h1",{className:"text-4xl md:text-5xl font-bold text-brandBlue mb-6",children:"Detect dementia early & start your prevention journey"}),o.jsxs("p",{className:"text-gray-800 mb-6 font-opensans",children:["Get a ",o.jsx("span",{className:"font-semibold",children:"head start"})," on the disease and ",o.jsx("span",{className:"font-semibold",children:"take steps to prevent"})," and delay symptoms."]}),o.jsxs("ul",{className:"mb-8 space-y-4",children:[o.jsxs("li",{className:"flex items-center",children:[o.jsx(Sn,{className:"text-lightBlue mr-2 flex-shrink-0"}),o.jsx("span",{className:"text-gray-800",children:"pTau-217 blood test"})]}),o.jsxs("li",{className:"flex items-center",children:[o.jsx(Sn,{className:"text-lightBlue mr-2 flex-shrink-0"}),o.jsx("span",{className:"text-gray-800",children:"Detect dementia up to 20 years before symptoms start"})]}),o.jsxs("li",{className:"flex items-center",children:[o.jsx(Sn,{className:"text-lightBlue mr-2 flex-shrink-0"}),o.jsx("span",{className:"text-gray-800",children:"Actionable, science-backed prevention program"})]}),e&&o.jsxs("li",{className:"flex items-center",children:[o.jsx(Sn,{className:"text-lightBlue mr-2 flex-shrink-0"}),o.jsx("span",{className:"text-gray-800",children:"Interpret results with an expert, usually covered by insurance"})]})]}),o.jsx(Y,{className:"bg-brandBlue hover:bg-opacity-90 text-white font-medium py-3 px-6 text-lg rounded-lg",onClick:t,children:"Get tested today"})]}),o.jsx("div",{className:"hidden md:block",children:o.jsx("img",{src:"/lovable-uploads/6a5e0d0e-f430-4272-b7df-f94f7f52e632.png",alt:"BetterBrain dashboard showing health metrics",className:"w-full h-auto rounded-lg"})})]})})})};function M2(e){return Object.prototype.toString.call(e)==="[object Object]"}function jm(e){return M2(e)||Array.isArray(e)}function L2(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function qf(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;const s=JSON.stringify(Object.keys(e.breakpoints||{})),i=JSON.stringify(Object.keys(t.breakpoints||{}));return s!==i?!1:n.every(a=>{const l=e[a],c=t[a];return typeof l=="function"?`${l}`==`${c}`:!jm(l)||!jm(c)?l===c:qf(l,c)})}function Nm(e){return e.concat().sort((t,n)=>t.name>n.name?1:-1).map(t=>t.options)}function I2(e,t){if(e.length!==t.length)return!1;const n=Nm(e),r=Nm(t);return n.every((s,i)=>{const a=r[i];return qf(s,a)})}function Qf(e){return typeof e=="number"}function wd(e){return typeof e=="string"}function Zl(e){return typeof e=="boolean"}function Sm(e){return Object.prototype.toString.call(e)==="[object Object]"}function Se(e){return Math.abs(e)}function Kf(e){return Math.sign(e)}function Io(e,t){return Se(e-t)}function D2(e,t){if(e===0||t===0||Se(e)<=Se(t))return 0;const n=Io(Se(e),Se(t));return Se(n/e)}function ai(e){return li(e).map(Number)}function Qt(e){return e[Ci(e)]}function Ci(e){return Math.max(0,e.length-1)}function Xf(e,t){return t===Ci(e)}function Cm(e,t=0){return Array.from(Array(e),(n,r)=>t+r)}function li(e){return Object.keys(e)}function w0(e,t){return[e,t].reduce((n,r)=>(li(r).forEach(s=>{const i=n[s],a=r[s],l=Sm(i)&&Sm(a);n[s]=l?w0(i,a):a}),n),{})}function bd(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function z2(e,t){const n={start:r,center:s,end:i};function r(){return 0}function s(c){return i(c)/2}function i(c){return t-c}function a(c,u){return wd(e)?n[e](c):e(t,c,u)}return{measure:a}}function ci(){let e=[];function t(s,i,a,l={passive:!0}){let c;if("addEventListener"in s)s.addEventListener(i,a,l),c=()=>s.removeEventListener(i,a,l);else{const u=s;u.addListener(a),c=()=>u.removeListener(a)}return e.push(c),r}function n(){e=e.filter(s=>s())}const r={add:t,clear:n};return r}function F2(e,t,n,r){const s=ci(),i=1e3/60;let a=null,l=0,c=0;function u(){s.add(e,"visibilitychange",()=>{e.hidden&&y()})}function f(){v(),s.clear()}function h(b){if(!c)return;a||(a=b);const m=b-a;for(a=b,l+=m;l>=i;)n(i),l-=i;const g=l/i;r(g),c&&t.requestAnimationFrame(h)}function d(){c||(c=t.requestAnimationFrame(h))}function v(){t.cancelAnimationFrame(c),a=null,l=0,c=0}function y(){a=null,l=0}return{init:u,destroy:f,start:d,stop:v,update:()=>n(i),render:r}}function $2(e,t){const n=t==="rtl",r=e==="y",s=r?"y":"x",i=r?"x":"y",a=!r&&n?-1:1,l=f(),c=h();function u(y){const{height:x,width:b}=y;return r?x:b}function f(){return r?"top":n?"right":"left"}function h(){return r?"bottom":n?"left":"right"}function d(y){return y*a}return{scroll:s,cross:i,startEdge:l,endEdge:c,measureSize:u,direction:d}}function Fr(e=0,t=0){const n=Se(e-t);function r(u){return u<e}function s(u){return u>t}function i(u){return r(u)||s(u)}function a(u){return i(u)?r(u)?e:t:u}function l(u){return n?u-n*Math.ceil((u-t)/n):u}return{length:n,max:t,min:e,constrain:a,reachedAny:i,reachedMax:s,reachedMin:r,removeOffset:l}}
vendor: 16,084 bytes, line 192
192function b0(e,t,n){const{constrain:r}=Fr(0,e),s=e+1;let i=a(t);function a(d){return n?Se((s+d)%s):r(d)}function l(){return i}function c(d){return i=a(d),h}function u(d){return f().set(l()+d)}function f(){return b0(e,l(),n)}const h={get:l,set:c,add:u,clone:f};return h}function H2(e,t,n,r,s,i,a,l,c,u,f,h,d,v,y,x,b,m,g){const{cross:w,direction:j}=e,N=["INPUT","SELECT","TEXTAREA"],C={passive:!1},S=ci(),E=ci(),k=Fr(50,225).constrain(v.measure(20)),A={mouse:300,touch:400},B={mouse:500,touch:600},I=y?43:25;let W=!1,M=0,V=0,U=!1,G=!1,T=!1,_=!1;function z(F){if(!g)return;function re(Oe){(Zl(g)||g(F,Oe))&&ne(Oe)}const he=t;S.add(he,"dragstart",Oe=>Oe.preventDefault(),C).add(he,"touchmove",()=>{},C).add(he,"touchend",()=>{}).add(he,"touchstart",re).add(he,"mousedown",re).add(he,"touchcancel",we).add(he,"contextmenu",we).add(he,"click",ze,!0)}function L(){S.clear(),E.clear()}function H(){const F=_?n:t;E.add(F,"touchmove",ge,C).add(F,"touchend",we).add(F,"mousemove",ge,C).add(F,"mouseup",we)}function Q(F){const re=F.nodeName||"";return N.includes(re)}function se(){return(y?B:A)[_?"mouse":"touch"]}function Me(F,re){const he=h.add(Kf(F)*-1),Oe=f.byDistance(F,!y).distance;return y||Se(F)<k?Oe:b&&re?Oe*.5:f.byIndex(he.get(),0).distance}function ne(F){const re=bd(F,r);_=re,T=y&&re&&!F.buttons&&W,W=Io(s.get(),a.get())>=2,!(re&&F.button!==0)&&(Q(F.target)||(U=!0,i.pointerDown(F),u.useFriction(0).useDuration(0),s.set(a),H(),M=i.readPoint(F),V=i.readPoint(F,w),d.emit("pointerDown")))}function ge(F){if(!bd(F,r)&&F.touches.length>=2)return we(F);const he=i.readPoint(F),Oe=i.readPoint(F,w),Le=Io(he,M),ht=Io(Oe,V);if(!G&&!_&&(!F.cancelable||(G=Le>ht,!G)))return we(F);const Tt=i.pointerMove(F);Le>x&&(T=!0),u.useFriction(.3).useDuration(.75),l.start(),s.add(j(Tt)),F.preventDefault()}function we(F){const he=f.byDistance(0,!1).index!==h.get(),Oe=i.pointerUp(F)*se(),Le=Me(j(Oe),he),ht=D2(Oe,Le),Tt=I-10*ht,pe=m+ht/50;G=!1,U=!1,E.clear(),u.useDuration(Tt).useFriction(pe),c.distance(Le,!y),_=!1,d.emit("pointerUp")}function ze(F){T&&(F.stopPropagation(),F.preventDefault(),T=!1)}function Ae(){return U}return{init:z,destroy:L,pointerDown:Ae}}function U2(e,t){let r,s;function i(h){return h.timeStamp}function a(h,d){const y=`client${(d||e.scroll)==="x"?"X":"Y"}`;return(bd(h,t)?h:h.touches[0])[y]}function l(h){return r=h,s=h,a(h)}function c(h){const d=a(h)-a(s),v=i(h)-i(r)>170;return s=h,v&&(r=h),d}function u(h){if(!r||!s)return 0;const d=a(s)-a(r),v=i(h)-i(r),y=i(h)-i(s)>170,x=d/v;return v&&!y&&Se(x)>.1?x:0}return{pointerDown:l,pointerMove:c,pointerUp:u,readPoint:a}}function W2(){function e(n){const{offsetTop:r,offsetLeft:s,offsetWidth:i,offsetHeight:a}=n;return{top:r,right:s+i,bottom:r+a,left:s,width:i,height:a}}return{measure:e}}function V2(e){function t(r){return e*(r/100)}return{measure:t}}function G2(e,t,n,r,s,i,a){const l=[e].concat(r);let c,u,f=[],h=!1;function d(b){return s.measureSize(a.measure(b))}function v(b){if(!i)return;u=d(e),f=r.map(d);function m(g){for(const w of g){if(h)return;const j=w.target===e,N=r.indexOf(w.target),C=j?u:f[N],S=d(j?e:r[N]);if(Se(S-C)>=.5){b.reInit(),t.emit("resize");break}}}c=new ResizeObserver(g=>{(Zl(i)||i(b,g))&&m(g)}),n.requestAnimationFrame(()=>{l.forEach(g=>c.observe(g))})}function y(){h=!0,c&&c.disconnect()}return{init:v,destroy:y}}function Y2(e,t,n,r,s,i){let a=0,l=0,c=s,u=i,f=e.get(),h=0;function d(C){const S=C/1e3,E=c*S,k=r.get()-e.get(),A=!c;let B=0;return A?(a=0,n.set(r),e.set(r),B=k):(n.set(e),a+=k/E,a*=u,f+=a,e.add(a*S),B=f-h),l=Kf(B),h=f,N}function v(){const C=r.get()-t.get();return Se(C)<.001}function y(){return c}function x(){return l}function b(){return a}function m(){return w(s)}function g(){return j(i)}function w(C){return c=C,N}function j(C){return u=C,N}const N={direction:x,duration:y,velocity:b,seek:d,settled:v,useBaseFriction:g,useBaseDuration:m,useFriction:j,useDuration:w};return N}function q2(e,t,n,r,s){const i=s.measure(10),a=s.measure(50),l=Fr(.1,.99);let c=!1;function u(){return!(c||!e.reachedAny(n.get())||!e.reachedAny(t.get()))}function f(v){if(!u())return;const y=e.reachedMin(t.get())?"min":"max",x=Se(e[y]-t.get()),b=n.get()-t.get(),m=l.constrain(x/a);n.subtract(b*m),!v&&Se(b)<i&&(n.set(e.constrain(n.get())),r.useDuration(25).useBaseFriction())}function h(v){c=!v}return{shouldConstrain:u,constrain:f,toggleActive:h}}function Q2(e,t,n,r,s){const i=Fr(-t+e,0),a=h(),l=f(),c=d();function u(y,x){return Io(y,x)<1}function f(){const y=a[0],x=Qt(a),b=a.lastIndexOf(y),m=a.indexOf(x)+1;return Fr(b,m)}function h(){return n.map((y,x)=>{const{min:b,max:m}=i,g=i.constrain(y),w=!x,j=Xf(n,x);return w?m:j||u(b,g)?b:u(m,g)?m:g}).map(y=>parseFloat(y.toFixed(3)))}function d(){if(t<=e+s)return[i.max];if(r==="keepSnaps")return a;const{min:y,max:x}=l;return a.slice(y,x)}return{snapsContained:c,scrollContainLimit:l}}function K2(e,t,n){const r=t[0],s=n?r-e:Qt(t);return{limit:Fr(s,r)}}function X2(e,t,n,r){const i=t.min+.1,a=t.max+.1,{reachedMin:l,reachedMax:c}=Fr(i,a);function u(d){return d===1?c(n.get()):d===-1?l(n.get()):!1}function f(d){if(!u(d))return;const v=e*(d*-1);r.forEach(y=>y.add(v))}return{loop:f}}function J2(e){const{max:t,length:n}=e;function r(i){const a=i-t;return n?a/-n:0}return{get:r}}function Z2(e,t,n,r,s){const{startEdge:i,endEdge:a}=e,{groupSlides:l}=s,c=h().map(t.measure),u=d(),f=v();function h(){return l(r).map(x=>Qt(x)[a]-x[0][i]).map(Se)}function d(){return r.map(x=>n[i]-x[i]).map(x=>-Se(x))}function v(){return l(u).map(x=>x[0]).map((x,b)=>x+c[b])}return{snaps:u,snapsAligned:f}}function eP(e,t,n,r,s,i){const{groupSlides:a}=s,{min:l,max:c}=r,u=f();function f(){const d=a(i),v=!e||t==="keepSnaps";return n.length===1?[i]:v?d:d.slice(l,c).map((y,x,b)=>{const m=!x,g=Xf(b,x);if(m){const w=Qt(b[0])+1;return Cm(w)}if(g){const w=Ci(i)-Qt(b)[0]+1;return Cm(w,Qt(b)[0])}return y})}return{slideRegistry:u}}function tP(e,t,n,r,s){const{reachedAny:i,removeOffset:a,constrain:l}=r;function c(y){return y.concat().sort((x,b)=>Se(x)-Se(b))[0]}function u(y){const x=e?a(y):l(y),b=t.map((g,w)=>({diff:f(g-x,0),index:w})).sort((g,w)=>Se(g.diff)-Se(w.diff)),{index:m}=b[0];return{index:m,distance:x}}function f(y,x){const b=[y,y+n,y-n];if(!e)return y;if(!x)return c(b);const m=b.filter(g=>Kf(g)===x);return m.length?c(m):Qt(b)-n}function h(y,x){const b=t[y]-s.get(),m=f(b,x);return{index:y,distance:m}}function d(y,x){const b=s.get()+y,{index:m,distance:g}=u(b),w=!e&&i(b);if(!x||w)return{index:m,distance:y};const j=t[m]-g,N=y+f(j,0);return{index:m,distance:N}}return{byDistance:d,byIndex:h,shortcut:f}}function nP(e,t,n,r,s,i,a){function l(h){const d=h.distance,v=h.index!==t.get();i.add(d),d&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),v&&(n.set(t.get()),t.set(h.index),a.emit("select"))}function c(h,d){const v=s.byDistance(h,d);l(v)}function u(h,d){const v=t.clone().set(h),y=s.byIndex(v.get(),d);l(y)}return{distance:c,index:u}}function rP(e,t,n,r,s,i,a,l){const c={passive:!0,capture:!0};let u=0;function f(v){if(!l)return;function y(x){if(new Date().getTime()-u>10)return;a.emit("slideFocusStart"),e.scrollLeft=0;const g=n.findIndex(w=>w.includes(x));Qf(g)&&(s.useDuration(0),r.index(g,0),a.emit("slideFocus"))}i.add(document,"keydown",h,!1),t.forEach((x,b)=>{i.add(x,"focus",m=>{(Zl(l)||l(v,m))&&y(b)},c)})}function h(v){v.code==="Tab"&&(u=new Date().getTime())}return{init:f}}function Co(e){let t=e;function n(){return t}function r(c){t=a(c)}function s(c){t+=a(c)}function i(c){t-=a(c)}function a(c){return Qf(c)?c:c.get()}return{get:n,set:r,add:s,subtract:i}}function j0(e,t){const n=e.scroll==="x"?i:a,r=t.style;let s=!1;function i(h){return`translate3d(${h}px,0px,0px)`}function a(h){return`translate3d(0px,${h}px,0px)`}function l(h){s||(r.transform=n(e.direction(h)))}function c(h){s=!h}function u(){s||(r.transform="",t.getAttribute("style")||t.removeAttribute("style"))}return{clear:u,to:l,toggleActive:c}}function sP(e,t,n,r,s,i,a,l,c){const f=ai(s),h=ai(s).reverse(),d=m().concat(g());function v(S,E){return S.reduce((k,A)=>k-s[A],E)}function y(S,E){return S.reduce((k,A)=>v(k,E)>0?k.concat([A]):k,[])}function x(S){return i.map((E,k)=>({start:E-r[k]+.5+S,end:E+t-.5+S}))}function b(S,E,k){const A=x(E);return S.map(B=>{const I=k?0:-n,W=k?n:0,M=k?"end":"start",V=A[B][M];return{index:B,loopPoint:V,slideLocation:Co(-1),translate:j0(e,c[B]),target:()=>l.get()>V?I:W}})}function m(){const S=a[0],E=y(h,S);return b(E,n,!1)}function g(){const S=t-a[0]-1,E=y(f,S);return b(E,-n,!0)}function w(){return d.every(({index:S})=>{const E=f.filter(k=>k!==S);return v(E,t)<=.1})}function j(){d.forEach(S=>{const{target:E,translate:k,slideLocation:A}=S,B=E();B!==A.get()&&(k.to(B),A.set(B))})}function N(){d.forEach(S=>S.translate.clear())}return{canLoop:w,clear:N,loop:j,loopPoints:d}}function oP(e,t,n){let r,s=!1;function i(c){if(!n)return;function u(f){for(const h of f)if(h.type==="childList"){c.reInit(),t.emit("slidesChanged");break}}r=new MutationObserver(f=>{s||(Zl(n)||n(c,f))&&u(f)}),r.observe(e,{childList:!0})}function a(){r&&r.disconnect(),s=!0}return{init:i,destroy:a}}function iP(e,t,n,r){const s={};let i=null,a=null,l,c=!1;function u(){l=new IntersectionObserver(y=>{c||(y.forEach(x=>{const b=t.indexOf(x.target);s[b]=x}),i=null,a=null,n.emit("slidesInView"))},{root:e.parentElement,threshold:r}),t.forEach(y=>l.observe(y))}function f(){l&&l.disconnect(),c=!0}function h(y){return li(s).reduce((x,b)=>{const m=parseInt(b),{isIntersecting:g}=s[m];return(y&&g||!y&&!g)&&x.push(m),x},[])}function d(y=!0){if(y&&i)return i;if(!y&&a)return a;const x=h(y);return y&&(i=x),y||(a=x),x}return{init:u,destroy:f,get:d}}function aP(e,t,n,r,s,i){const{measureSize:a,startEdge:l,endEdge:c}=e,u=n[0]&&s,f=y(),h=x(),d=n.map(a),v=b();function y(){if(!u)return 0;const g=n[0];return Se(t[l]-g[l])}function x(){if(!u)return 0;const g=i.getComputedStyle(Qt(r));return parseFloat(g.getPropertyValue(`margin-${c}`))}function b(){return n.map((g,w,j)=>{const N=!w,C=Xf(j,w);return N?d[w]+f:C?d[w]+h:j[w+1][l]-g[l]}).map(Se)}return{slideSizes:d,slideSizesWithGaps:v,startGap:f,endGap:h}}function lP(e,t,n,r,s,i,a,l,c){const{startEdge:u,endEdge:f,direction:h}=e,d=Qf(n);function v(m,g){return ai(m).filter(w=>w%g===0).map(w=>m.slice(w,w+g))}function y(m){return m.length?ai(m).reduce((g,w,j)=>{const N=Qt(g)||0,C=N===0,S=w===Ci(m),E=s[u]-i[N][u],k=s[u]-i[w][f],A=!r&&C?h(a):0,B=!r&&S?h(l):0,I=Se(k-B-(E+A));return j&&I>t+c&&g.push(w),S&&g.push(m.length),g},[]).map((g,w,j)=>{const N=Math.max(j[w-1]||0);return m.slice(N,g)}):[]}function x(m){return d?v(m,n):y(m)}return{groupSlides:x}}function cP(e,t,n,r,s,i,a){const{align:l,axis:c,direction:u,startIndex:f,loop:h,duration:d,dragFree:v,dragThreshold:y,inViewThreshold:x,slidesToScroll:b,skipSnaps:m,containScroll:g,watchResize:w,watchSlides:j,watchDrag:N,watchFocus:C}=i,S=2,E=W2(),k=E.measure(t),A=n.map(E.measure),B=$2(c,u),I=B.measureSize(k),W=V2(I),M=z2(l,I),V=!h&&!!g,U=h||!!g,{slideSizes:G,slideSizesWithGaps:T,startGap:_,endGap:z}=aP(B,k,A,n,U,s),L=lP(B,I,b,h,k,A,_,z,S),{snaps:H,snapsAligned:Q}=Z2(B,M,k,A,L),se=-Qt(H)+Qt(T),{snapsContained:Me,scrollContainLimit:ne}=Q2(I,se,Q,g,S),ge=V?Me:Q,{limit:we}=K2(se,ge,h),ze=b0(Ci(ge),f,h),Ae=ze.clone(),ue=ai(n),F=({dragHandler:Dt,scrollBody:so,scrollBounds:Yr,options:{loop:yr}},oo)=>{yr||Yr.constrain(Dt.pointerDown()),so.seek(oo)},re=({scrollBody:Dt,translate:so,location:Yr,offsetLocation:yr,scrollLooper:oo,slideLooper:io,dragHandler:tn,animation:cc,eventHandler:q,scrollBounds:de,options:{loop:le}},pt)=>{const mt=Dt.settled(),qr=!de.shouldConstrain(),Bi=le?mt:mt&&qr;Bi&&!tn.pointerDown()&&(cc.stop(),q.emit("settle")),Bi||q.emit("scroll");const $w=Yr.get()*pt+Tt.get()*(1-pt);yr.set($w),le&&(oo.loop(Dt.direction()),io.loop()),so.to(yr.get())},he=F2(r,s,Dt=>F(en,Dt),Dt=>re(en,Dt)),Oe=.68,Le=ge[ze.get()],ht=Co(Le),Tt=Co(Le),pe=Co(Le),at=Co(Le),vr=Y2(ht,pe,Tt,at,d,Oe),to=tP(h,ge,se,we,at),Ln=nP(he,ze,Ae,vr,to,at,a),Oi=J2(we),no=ci(),ro=iP(t,n,a,x),{slideRegistry:gn}=eP(V,g,ge,ne,L,ue),_i=rP(e,n,gn,Ln,vr,no,a,C),en={ownerDocument:r,ownerWindow:s,eventHandler:a,containerRect:k,slideRects:A,animation:he,axis:B,dragHandler:H2(B,e,r,s,at,U2(B,s),ht,he,Ln,vr,to,ze,a,W,v,y,m,Oe,N),eventStore:no,percentOfView:W,index:ze,indexPrevious:Ae,limit:we,location:ht,offsetLocation:pe,previousLocation:Tt,options:i,resizeHandler:G2(t,a,s,n,B,w,E),scrollBody:vr,scrollBounds:q2(we,pe,at,vr,W),scrollLooper:X2(se,we,pe,[ht,pe,Tt,at]),scrollProgress:Oi,scrollSnapList:ge.map(Oi.get),scrollSnaps:ge,scrollTarget:to,scrollTo:Ln,slideLooper:sP(B,I,se,G,T,H,ge,pe,n),slideFocus:_i,slidesHandler:oP(t,a,j),slidesInView:ro,slideIndexes:ue,slideRegistry:gn,slidesToScroll:L,target:at,translate:j0(B,t)};return en}function uP(){let e={},t;function n(u){t=u}function r(u){return e[u]||[]}function s(u){return r(u).forEach(f=>f(t,u)),c}function i(u,f){return e[u]=r(u).concat([f]),c}function a(u,f){return e[u]=r(u).filter(h=>h!==f),c}function l(){e={}}const c={init:n,emit:s,off:a,on:i,clear:l};return c}const dP={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function fP(e){function t(i,a){return w0(i,a||{})}function n(i){const a=i.breakpoints||{},l=li(a).filter(c=>e.matchMedia(c).matches).map(c=>a[c]).reduce((c,u)=>t(c,u),{});return t(i,l)}function r(i){return i.map(a=>li(a.breakpoints||{})).reduce((a,l)=>a.concat(l),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:n,optionsMediaQueries:r}}function hP(e){let t=[];function n(i,a){return t=a.filter(({options:l})=>e.optionsAtMedia(l).active!==!1),t.forEach(l=>l.init(i,e)),a.reduce((l,c)=>Object.assign(l,{[c.name]:c}),{})}function r(){t=t.filter(i=>i.destroy())}return{init:n,destroy:r}}function dl(e,t,n){const r=e.ownerDocument,s=r.defaultView,i=fP(s),a=hP(i),l=ci(),c=uP(),{mergeOptions:u,optionsAtMedia:f,optionsMediaQueries:h}=i,{on:d,off:v,emit:y}=c,x=B;let b=!1,m,g=u(dP,dl.globalOptions),w=u(g),j=[],N,C,S;function E(){const{container:ue,slides:F}=w;C=(wd(ue)?e.querySelector(ue):ue)||e.children[0];const he=wd(F)?C.querySelectorAll(F):F;S=[].slice.call(he||C.children)}function k(ue){const F=cP(e,C,S,r,s,ue,c);if(ue.loop&&!F.slideLooper.canLoop()){const re=Object.assign({},ue,{loop:!1});return k(re)}return F}function A(ue,F){b||(g=u(g,ue),w=f(g),j=F||j,E(),m=k(w),h([g,...j.map(({options:re})=>re)]).forEach(re=>l.add(re,"change",B)),w.active&&(m.translate.to(m.location.get()),m.animation.init(),m.slidesInView.init(),m.slideFocus.init(Ae),m.eventHandler.init(Ae),m.resizeHandler.init(Ae),m.slidesHandler.init(Ae),m.options.loop&&m.slideLooper.loop(),C.offsetParent&&S.length&&m.dragHandler.init(Ae),N=a.init(Ae,j)))}function B(ue,F){const re=L();I(),A(u({startIndex:re},ue),F),c.emit("reInit")}function I(){m.dragHandler.destroy(),m.eventStore.clear(),m.translate.clear(),m.slideLooper.clear(),m.resizeHandler.destroy(),m.slidesHandler.destroy(),m.slidesInView.destroy(),m.animation.destroy(),a.destroy(),l.clear()}function W(){b||(b=!0,l.clear(),I(),c.emit("destroy"),c.clear())}function M(ue,F,re){!w.active||b||(m.scrollBody.useBaseFriction().useDuration(F===!0?0:w.duration),m.scrollTo.index(ue,re||0))}function V(ue){const F=m.index.add(1).get();M(F,ue,-1)}function U(ue){const F=m.index.add(-1).get();M(F,ue,1)}function G(){return m.index.add(1).get()!==L()}function T(){return m.index.add(-1).get()!==L()}function _(){return m.scrollSnapList}function z(){return m.scrollProgress.get(m.location.get())}function L(){return m.index.get()}function H(){return m.indexPrevious.get()}function Q(){return m.slidesInView.get()}function se(){return m.slidesInView.get(!1)}function Me(){return N}function ne(){return m}function ge(){return e}function we(){return C}function ze(){return S}const Ae={canScrollNext:G,canScrollPrev:T,containerNode:we,internalEngine:ne,destroy:W,off:v,on:d,emit:y,plugins:Me,previousScrollSnap:H,reInit:x,rootNode:ge,scrollNext:V,scrollPrev:U,scrollProgress:z,scrollSnapList:_,scrollTo:M,selectedScrollSnap:L,slideNo
192des:ze,slidesInView:Q,slidesNotInView:se};return A(t,n),setTimeout(()=>c.emit("init"),0),Ae}dl.globalOptions=void 0;function Ei(e={},t=[]){const n=p.useRef(e),r=p.useRef(t),[s,i]=p.useState(),[a,l]=p.useState(),c=p.useCallback(()=>{s&&s.reInit(n.current,r.current)},[s]);return p.useEffect(()=>{qf(n.current,e)||(n.current=e,c())},[e,c]),p.useEffect(()=>{I2(r.current,t)||(r.current=t,c())},[t,c]),p.useEffect(()=>{if(L2()&&a){dl.globalOptions=Ei.globalOptions;const u=dl(a,n.current,r.current);return i(u),()=>u.destroy()}else i(void 0)},[a,i]),[l,s]}Ei.globalOptions=void 0;const N0=p.createContext(null);function ec(){const e=p.useContext(N0);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}const Ti=p.forwardRef(({orientation:e="horizontal",opts:t,setApi:n,plugins:r,className:s,children:i,...a},l)=>{const[c,u]=Ei({...t,axis:e==="horizontal"?"x":"y"},r),[f,h]=p.useState(!1),[d,v]=p.useState(!1),y=p.useCallback(g=>{g&&(h(g.canScrollPrev()),v(g.canScrollNext()))},[]),x=p.useCallback(()=>{u==null||u.scrollPrev()},[u]),b=p.useCallback(()=>{u==null||u.scrollNext()},[u]),m=p.useCallback(g=>{g.key==="ArrowLeft"?(g.preventDefault(),x()):g.key==="ArrowRight"&&(g.preventDefault(),b())},[x,b]);return p.useEffect(()=>{!u||!n||n(u)},[u,n]),p.useEffect(()=>{if(u)return y(u),u.on("reInit",y),u.on("select",y),()=>{u==null||u.off("select",y)}},[u,y]),o.jsx(N0.Provider,{value:{carouselRef:c,api:u,opts:t,orientation:e||((t==null?void 0:t.axis)==="y"?"vertical":"horizontal"),scrollPrev:x,scrollNext:b,canScrollPrev:f,canScrollNext:d},children:o.jsx("div",{ref:l,onKeyDownCapture:m,className:J("relative",s),role:"region","aria-roledescription":"carousel",...a,children:i})})});Ti.displayName="Carousel";const ki=p.forwardRef(({className:e,...t},n)=>{const{carouselRef:r,orientation:s}=ec();return o.jsx("div",{ref:r,className:"overflow-hidden",children:o.jsx("div",{ref:n,className:J("flex",s==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})});ki.displayName="CarouselContent";const Pi=p.forwardRef(({className:e,...t},n)=>{const{orientation:r}=ec();return o.jsx("div",{ref:n,role:"group","aria-roledescription":"slide",className:J("min-w-0 shrink-0 grow-0 basis-full",r==="horizontal"?"pl-4":"pt-4",e),...t})});Pi.displayName="CarouselItem";const S0=p.forwardRef(({className:e,variant:t="outline",size:n="icon",...r},s)=>{const{orientation:i,scrollPrev:a,canScrollPrev:l}=ec();return o.jsxs(Y,{ref:s,variant:t,size:n,className:J("absolute  h-8 w-8 rounded-full",i==="horizontal"?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!l,onClick:a,...r,children:[o.jsx($N,{className:"h-4 w-4"}),o.jsx("span",{className:"sr-only",children:"Previous slide"})]})});S0.displayName="CarouselPrevious";const C0=p.forwardRef(({className:e,variant:t="outline",size:n="icon",...r},s)=>{const{orientation:i,scrollNext:a,canScrollNext:l}=ec();return o.jsxs(Y,{ref:s,variant:t,size:n,className:J("absolute h-8 w-8 rounded-full",i==="horizontal"?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!l,onClick:a,...r,children:[o.jsx(UN,{className:"h-4 w-4"}),o.jsx("span",{className:"sr-only",children:"Next slide"})]})});C0.displayName="CarouselNext";const E0=()=>{const[e,t]=p.useState(),n=[{outlet:"The New York Times",headline:"A Blood Test Accurately Diagnosed Alzheimer's 90% of the Time, Study Finds",logo:"/lovable-uploads/80ab7ab2-7864-44e1-afb0-a3ca2b2d6089.png",bgColor:"bg-slate-800",textColor:"text-white",url:"https://www.nytimes.com/2024/07/28/health/alzheimers-blood-test.html?smid=nytcore-ios-share&referringSource=articleShare",fontClass:"font-serif"},{outlet:"JAMA",headline:"Performance of Plasma Phosphorylated Tau 217 for Alzheimer Disease vs Clinical CSF Tests",logo:"/lovable-uploads/110ce892-279e-496e-9213-873b5e28f881.png",bgColor:"bg-red-700",textColor:"text-white",url:"https://jamanetwork.com/journals/jama/fullarticle/2821669",fontClass:"font-serif"},{outlet:"CNN Health",headline:"Signs of Alzheimer's were everywhere - then his brain improved",logo:"/lovable-uploads/c3b9823c-a845-4e71-b2ff-a9b0a0da3387.png",bgColor:"bg-red-600",textColor:"text-white",url:"https://edition.cnn.com/2024/05/18/health/alzheimers-blood-brain-improvement-wellness/index.html",fontClass:"font-sans font-bold"},{outlet:"New England Journal of Medicine",headline:"Blood-based biomarkers for Alzheimer disease: A systematic review and meta-analysis",logo:"/lovable-uploads/723694ab-9044-4fd2-83d3-dfd1a6cc5374.png",bgColor:"bg-blue-900",textColor:"text-white",url:"https://www.nejm.org/doi/full/10.1056/NEJMoa2310168",fontClass:"font-serif"},{outlet:"MedPage Today",headline:"Blood tests for Alzheimer's disease show promise for early detection",logo:"/lovable-uploads/fd93ffd3-f459-4828-ab5f-4aa1403b4bb7.png",bgColor:"bg-teal-700",textColor:"text-white",url:"https://www.medpagetoday.com/meetingcoverage/aaic/111288#:~:text=PHILADELPHIA%20%2D%2D%20Blood%20tests%20for,of%20the%20condition%2C%20researchers%20said",fontClass:"font-sans"},{outlet:"Nature Medicine",headline:"Highly accurate blood test for Alzheimer's disease is similar or superior to clinical cerebrospinal fluid tests",logo:"/lovable-uploads/7b0a257f-f647-4d30-99ad-f07a3a45e741.png",bgColor:"bg-white",textColor:"text-gray-800",border:"border border-gray-200",url:"https://www.nature.com/articles/s41591-024-02869-z",fontClass:"font-serif"}];return o.jsx("section",{className:"bg-brandBlue py-8",children:o.jsxs("div",{className:"container mx-auto px-2",children:[o.jsxs("div",{className:"text-center mb-6",children:[o.jsx("h2",{className:"text-xl font-bold text-white mb-2",children:"The Blood Test that's Transforming the Future of Alzheimer's Detection"}),o.jsx("p",{className:"text-blue-100 text-sm",children:"See how pTau testing is changing lives – and drawing global headlines."})]}),o.jsxs("div",{className:"w-full relative",children:[o.jsxs(Ti,{opts:{align:"center",loop:!0,slidesToScroll:1},plugins:[],className:"w-full",setApi:t,children:[o.jsx("div",{className:"absolute left-0 top-0 bottom-0 w-6 bg-gradient-to-r from-brandBlue to-transparent pointer-events-none z-10"}),o.jsx("div",{className:"absolute right-0 top-0 bottom-0 w-6 bg-gradient-to-l from-brandBlue to-transparent pointer-events-none z-10"}),o.jsx(ki,{className:"-ml-1",children:n.map((r,s)=>o.jsx(Pi,{className:"pl-1 basis-[80%] md:basis-[70%] lg:basis-[60%]",children:o.jsx("a",{href:r.url,target:"_blank",rel:"noopener noreferrer",className:"block h-full",children:o.jsx("div",{className:"group bg-white rounded-lg overflow-hidden shadow-lg hover:shadow-xl transition-all duration-300 hover:scale-105 h-full",children:o.jsxs("div",{className:"p-4 flex items-center justify-between gap-4 h-[120px]",children:[o.jsxs("div",{className:"flex items-center gap-4 flex-1",children:[o.jsxs("div",{className:"flex-shrink-0",children:[o.jsx("img",{src:r.logo,alt:`${r.outlet} logo`,className:`${r.outlet.includes("New England")?"h-24":"h-16"} w-auto object-contain`,onError:i=>{i.currentTarget.style.display="none";const a=i.currentTarget.nextElementSibling;a&&(a.style.display="block")}}),o.jsx("span",{className:`${r.fontClass} font-bold text-lg hidden`,children:r.outlet.includes("New York")?"NYT":r.outlet.includes("CNN")?"CNN":r.outlet.includes("JAMA")?"JAMA":r.outlet.includes("NEJM")?"NEJM":r.outlet.includes("MedPage")?"MPT":r.outlet.includes("Nature")?"Nature":r.outlet})]}),o.jsx("div",{className:"flex-1",children:o.jsx("p",{className:"text-gray-800 text-sm font-medium leading-snug line-clamp-3",children:r.headline})})]}),o.jsx(Cf,{className:"w-4 h-4 opacity-70 group-hover:opacity-100 transition-opacity flex-shrink-0"})]})})})},s))})]}),o.jsxs("div",{className:"flex justify-center gap-4 mt-4",children:[o.jsx("button",{onClick:()=>{e&&e.canScrollPrev()&&e.scrollPrev()},className:"bg-white/20 backdrop-blur-sm hover:bg-white/30 text-white p-2 rounded-full transition-all duration-300",disabled:!e,children:o.jsx(Ll,{className:"w-6 h-6"})}),o.jsx("button",{onClick:()=>{e&&e.canScrollNext()&&e.scrollNext()},className:"bg-white/20 backdrop-blur-sm hover:bg-white/30 text-white p-2 rounded-full transition-all duration-300",disabled:!e,children:o.jsx(Il,{className:"w-6 h-6"})})]})]}),o.jsx("div",{className:"text-center mt-6",children:o.jsx("button",{className:"bg-white hover:bg-gray-50 text-brandBlue px-8 py-3 rounded-lg text-base font-semibold shadow-lg hover:shadow-xl transition-all duration-300 border-2 border-white hover:border-blue-100",onClick:()=>{const r=document.getElementById("pricing-comparison-table");r&&r.scrollIntoView({behavior:"smooth"})},children:"Get tested today"})})]})})},nu=768;function Ai(){const[e,t]=p.useState(void 0);return p.useEffect(()=>{const n=window.matchMedia(`(max-width: ${nu-1}px)`),r=()=>{t(window.innerWidth<nu)};return n.addEventListener("change",r),t(window.innerWidth<nu),()=>n.removeEventListener("change",r)},[]),!!e}const T0=()=>{const e=Ai();return o.jsx("section",{className:`w-full ${e?"py-6 px-4":"py-8"}`,children:o.jsxs("div",{className:`
193        ${e?"bg-gray-200 mx-4 rounded-lg py-6 space-y-6":"bg-gray-200 py-8 px-12 flex justify-between items-start"}
194      `,children:[o.jsxs("div",{className:`flex flex-col items-center ${e?"":"w-1/2"}`,children:[o.jsx("p",{className:"text-gray-700 text-center mb-4 font-medium",children:"Proud member of"}),o.jsx("div",{className:`w-full ${e?"max-w-[50%]":"max-w-xs"}`,children:o.jsx("img",{src:"/lovable-uploads/a6e2b749-a391-4281-91a4-c71bec88138c.png",alt:"AgeTech Collaborative from AARP",className:"w-full h-auto"})})]}),o.jsxs("div",{className:`flex flex-col items-center ${e?"":"w-1/2"}`,children:[o.jsx("p",{className:"text-gray-700 text-center mb-4 font-medium",children:"Featured in"}),o.jsx("div",{className:"w-full max-w-xs",children:o.jsx("a",{href:"https://www.nature.com/articles/d41586-025-01105-z",target:"_blank",rel:"noopener noreferrer",children:o.jsx("img",{src:"/lovable-uploads/0e827e8f-e1c5-4491-aee1-38dc9890890d.png",alt:"Nature",className:"w-full h-auto object-contain"})})})]})]})})},k0=()=>{const e=()=>{const t=document.getElementById("pricing-comparison-table");t&&t.scrollIntoView({behavior:"smooth"}),pn()};return o.jsx("section",{className:"bg-white py-16",children:o.jsx("div",{className:"container mx-auto px-2 md:px-4 max-w-7xl",children:o.jsxs("div",{id:"future-detection",className:"mt-8",children:[o.jsx("h2",{className:"text-2xl md:text-3xl font-semibold text-center mb-4 text-brandBlue",children:"pTau-217: The future of early dementia detection is here"}),o.jsx("p",{className:"text-lg text-gray-600 text-center mb-12",children:"Breakthrough detection, in a simple blood test"}),o.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8 items-center",children:[o.jsx("div",{children:o.jsxs("p",{className:"text-gray-700 mb-4 font-normal",children:[o.jsx("strong",{children:"Elevated blood levels of Tau proteins Ptau 181 and 217 are among the earliest warning signs of Alzheimer's"}),"—and are directly linked to the buildup of amyloid plaques in the brain. Ptau levels begin to rise as the brain starts accumulating amyloid plaques, often appearing up to 20 years before symptoms begin.",o.jsx("br",{}),o.jsx("br",{}),o.jsx("strong",{children:"Measuring Ptau provides a safe, simple way to detect amyloid plaque early"}),"—without the need for invasive procedures like PET scans or spinal taps. With a simple blood test, you can take control early—giving yourself more time to act, slow disease progression, and explore preventative programs."]})}),o.jsx("div",{className:"block",children:o.jsx("div",{className:"w-full rounded-lg overflow-hidden",children:o.jsx("img",{src:"/lovable-uploads/4e19a7c8-c545-45f6-b0b6-7ca46c4fbc0d.png",alt:"Dementia progression and early detection graph",className:"w-full h-auto object-contain"})})})]}),o.jsx("div",{className:"flex justify-center mt-8",children:o.jsx(Y,{className:"bg-brandBlue hover:bg-lightBlue text-white text-lg",onClick:e,children:"Get tested today"})})]})})})};var Jf="Collapsible",[pP,P0]=Ur(Jf),[mP,Zf]=pP(Jf),A0=p.forwardRef((e,t)=>
194{const{__scopeCollapsible:n,open:r,defaultOpen:s,disabled:i,onOpenChange:a,...l}=e,[c=!1,u]=bi({prop:r,defaultProp:s,onChange:a});return o.jsx(mP,{scope:n,disabled:i,contentId:Lo(),open:c,onOpenToggle:p.useCallback(()=>u(f=>!f),[u]),children:o.jsx(te.div,{"data-state":th(c),"data-disabled":i?"":void 0,...l,ref:t})})});A0.displayName=Jf;var R0="CollapsibleTrigger",O0=p.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,s=Zf(R0,n);return o.jsx(te.button,{type:"button","aria-controls":s.contentId,"aria-expanded":s.open||!1,"data-state":th(s.open),"data-disabled":s.disabled?"":void 0,disabled:s.disabled,...r,ref:t,onClick:ee(e.onClick,s.onOpenToggle)})});O0.displayName=R0;var eh="CollapsibleContent",_0=p.forwardRef((e,t)=>{const{forceMount:n,...r}=e,s=Zf(eh,e.__scopeCollapsible);return o.jsx(Wr,{present:n||s.open,children:({present:i})=>o.jsx(gP,{...r,ref:t,present:i})})});_0.displayName=eh;var gP=p.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:s,...i}=e,a=Zf(eh,n),[l,c]=p.useState(r),u=p.useRef(null),f=fe(t,u),h=p.useRef(0),d=h.current,v=p.useRef(0),y=v.current,x=a.open||l,b=p.useRef(x),m=p.useRef();return p.useEffect(()=>{const g=requestAnimationFrame(()=>b.current=!1);return()=>cancelAnimationFrame(g)},[]),Ve(()=>{const g=u.current;if(g){m.current=m.current||{transitionDuration:g.style.transitionDuration,animationName:g.style.animationName},g.style.transitionDuration="0s",g.style.animationName="none";const w=g.getBoundingClientRect();h.current=w.height,v.current=w.width,b.current||(g.style.transitionDuration=m.current.transitionDuration,g.style.animationName=m.current.animationName),c(r)}},[a.open,r]),o.jsx(te.div,{"data-state":th(a.open),"data-disabled":a.disabled?"":void 0,id:a.contentId,hidden:!x,...i,ref:f,style:{"--radix-collapsible-content-height":d?`${d}px`:void 0,"--radix-collapsible-content-width":y?`${y}px`:void 0,...e.style},children:x&&s})});function th(e){return e?"open":"closed"}var xP=A0,vP=O0,yP=_0,wP=p.createContext(void 0);function B0(e){const t=p.useContext(wP);return e||t||"ltr"}var Mn="Accordion",bP=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[nh,jP,NP]=ov(Mn),[tc,oR]=Ur(Mn,[NP,P0]),rh=P0(),M0=P.forwardRef((e,t)=>{const{type:n,...r}=e,s=r,i=r;return o.jsx(nh.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?o.jsx(TP,{...i,ref:t}):o.jsx(EP,{...s,ref:t})})});M0.displayName=Mn;var[L0,SP]=tc(Mn),[I0,CP]=tc(Mn,{collapsible:!1}),EP=P.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:s=()=>{},collapsible:i=!1,...a}=e,[l,c]=bi({prop:n,defaultProp:r,onChange:s});return o.jsx(L0,{scope:e.__scopeAccordion,value:l?[l]:[],onItemOpen:c,onItemClose:P.useCallback(()=>i&&c(""),[i,c]),children:o.jsx(I0,{scope:e.__scopeAccordion,collapsible:i,children:o.jsx(D0,{...a,ref:t})})})}),TP=P.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:s=()=>{},...i}=e,[a=[],l]=bi({prop:n,defaultProp:r,onChange:s}),c=P.useCallback(f=>l((h=[])=>[...h,f]),[l]),u=P.useCallback(f=>l((h=[])=>h.filter(d=>d!==f)),[l]);return o.jsx(L0,{scope:e.__scopeAccordion,value:a,onItemOpen:c,onItemClose:u,children:o.jsx(I0,{scope:e.__scopeAccordion,collapsible:!0,children:o.jsx(D0,{...i,ref:t})})})}),[kP,nc]=tc(Mn),D0=P.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:s,orientation:i="vertical",...a}=e,l=P.useRef(null),c=fe(l,t),u=jP(n),h=B0(s)==="ltr",d=ee(e.onKeyDown,v=>{var E;if(!bP.includes(v.key))return;const y=v.target,x=u().filter(k=>{var A;return!((A=k.ref.current)!=null&&A.disabled)}),b=x.findIndex(k=>k.ref.current===y),m=x.length;if(b===-1)return;v.preventDefault();let g=b;const w=0,j=m-1,N=()=>{g=b+1,g>j&&(g=w)},C=()=>{g=b-1,g<w&&(g=j)};switch(v.key){case"Home":g=w;break;case"End":g=j;break;case"ArrowRight":i==="horizontal"&&(h?N():C());break;case"ArrowDown":i==="vertical"&&N();break;case"ArrowLeft":i==="horizontal"&&(h?C():N());break;case"ArrowUp":i==="vertical"&&C();break}const S=g%m;(E=x[S].ref.current)==null||E.focus()});return o.jsx(kP,{scope:n,disabled:r,direction:s,orientation:i,children:o.jsx(nh.Slot,{scope:n,children:o.jsx(te.div,{...a,"data-orientation":i,ref:c,onKeyDown:r?void 0:d})})})}),fl="AccordionItem",[PP,sh]=tc(fl),z0=P.forwardRef((e,t)=>
194{const{__scopeAccordion:n,value:r,...s}=e,i=nc(fl,n),a=SP(fl,n),l=rh(n),c=Lo(),u=r&&a.value.includes(r)||!1,f=i.disabled||e.disabled;return o.jsx(PP,{scope:n,open:u,disabled:f,triggerId:c,children:o.jsx(xP,{"data-orientation":i.orientation,"data-state":V0(u),...l,...s,ref:t,disabled:f,open:u,onOpenChange:h=>{h?a.onItemOpen(r):a.onItemClose(r)}})})});z0.displayName=fl;var F0="AccordionHeader",$0=P.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,s=nc(Mn,n),i=sh(F0,n);return o.jsx(te.h3,{"data-orientation":s.orientation,"data-state":V0(i.open),"data-disabled":i.disabled?"":void 0,...r,ref:t})});$0.displayName=F0;var jd="AccordionTrigger",H0=P.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,s=nc(Mn,n),i=sh(jd,n),a=CP(jd,n),l=rh(n);return o.jsx(nh.ItemSlot,{scope:n,children:o.jsx(vP,{"aria-disabled":i.open&&!a.collapsible||void 0,"data-orientation":s.orientation,id:i.triggerId,...l,...r,ref:t})})});H0.displayName=jd;var U0="AccordionContent",W0=P.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,s=nc(Mn,n),i=sh(U0,n),a=rh(n);return o.jsx(yP,{role:"region","aria-labelledby":i.triggerId,"data-orientation":s.orientation,...a,...r,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});W0.displayName=U0;function V0(e){return e?"open":"closed"}var AP=M0,RP=z0,OP=$0,G0=H0,Y0=W0;const hl=AP,ui=p.forwardRef(({className:e,...t},n)=>o.jsx(RP,{ref:n,className:J("border-b",e),...t}));ui.displayName="AccordionItem";const di=p.forwardRef(({className:e,children:t,...n},r)=>o.jsx(OP,{className:"flex",children:o.jsxs(G0,{ref:r,className:J("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",e),...n,children:[t,o.jsx(GN,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}));di.displayName=G0.displayName;const fi=p.forwardRef(({className:e,children:t,...n},r)=>o.jsx(Y0,{ref:r,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...n,children:o.jsx("div",{className:J("pb-4 pt-0",e),children:t})}));fi.displayName=Y0.displayName;const q0=()=>o.jsx("section",{className:"bg-darkCream py-16",children:o.jsxs("div",{className:"container mx-auto px-2 md:px-4 max-w-7xl",children:[o.jsx("h2",{className:"text-2xl md:text-3xl font-semibold text-center mb-12 text-brandBlue",children:"Who is pTau-217 testing for?"}),o.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-1 gap-8 max-w-2xl mx-auto",children:[o.jsx("div",{className:"bg-cream p-6 rounded-lg",children:o.jsx(hl,{type:"single",collapsible:!0,children:o.jsxs(ui,{value:"item-1",className:"border-none",children:[o.jsx(di,{className:"text-xl font-semibold text-brandBlue text-left",children:"You have a family history of dementia"}),o.jsx(fi,{className:"mt-4",children:o.jsx("ul",{className:"space-y-3",children:o.jsxs("li",{className:"text-gray-700",children:["A family history of dementia can ",o.jsx("strong",{children:"increase your risk up to 75%"})," — but with today's tools, you don't have to wait for symptoms to take control."]})})})]})})}),o.jsx("div",{className:"bg-cream p-6 rounded-lg",children:o.jsx(hl,{type:"single",collapsible:!0,children:o.jsxs(ui,{value:"item-1",className:"border-none",children:[o.jsx(di,{className:"text-xl font-semibold text-brandBlue text-left",children:"You want to be pro-active with your health"}),o.jsx(fi,{className:"mt-4",children:o.jsx("ul",{className:"space-y-3",children:o.jsxs("li",{className:"text-gray-700",children:["About ",o.jsx("strong",{children:"75–80% of dementia cases occur without any family history"}),", so having no affected relatives doesn't necessarily mean you're in the clear."]})})})]})})})]})]})}),Q0=()=>o.jsx("section",{className:"bg-brandBlue text-white py-16",children:o.jsxs("div",{className:"container mx-auto px-2 md:px-4 max-w-7xl",children:[o.jsx("h2",{className:"text-3xl md:text-4xl font-semibold text-center mb-12 text-white",children:"Understand your risk, change your trajectory."}),o.jsxs("div",{className:"max-w-5xl mx-auto grid gap-10 sm:grid-cols-3",children:[o.jsxs("div",{className:"text-center",children:[o.jsx("p",{className:"text-4xl font-semibold font-playfair text-white",children:"47 million"}),o.jsx("p",{className:"mt-2 text-lg leading-snug opacity-90",children:"Americans have pre-clinical Alzheimer's (most don't know it)"})]}),o.jsxs("div",{className:"text-center",children:[o.jsx("p",{className:"text-4xl font-semibold font-playfair text-white",children:"20-30 years"}),o.jsx("p",{className:"mt-2 text-lg leading-snug opacity-90",children:"Alzheimer's disease starts 20-30 years before symptoms begin"})]}),o.jsxs("div",{className:"text-center",children:[o.jsx("p",{className:"text-4xl font-semibold font-playfair text-white",children:"Nearly 1 in 2"}),o.jsx("p",{className:"mt-2 text-lg leading-snug opacity-90",children:"Cases can be prevented through early intervention, and the rest can be delayed"})]})]})]})}),K0=()=>{const e=()=>{const t=document.getElementById("pricing-comparison-table");t&&t.scrollIntoView({behavior:"smooth"}),pn()};return o.jsx("section",{className:"bg-cream py-16",children:o.jsxs("div",{className:"container mx-auto px-2 md:px-4 max-w-7xl",children:[o.jsx("h2",{className:"text-2xl md:text-3xl font-semibold mb-12 text-center text-brandBlue",children:"How it works: Get tested, get informed, get ahead"}),o.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8",children:[o.jsxs("div",{className:"flex flex-col",children:[o.jsxs("div",{className:"flex items-center mb-4",children:[o.jsx("div",{className:"w-10 h-10 rounded-full bg-brandBlue text-white flex items-center justify-center font-semibold text-xl mr-3",children:"1"}),o.jsx("h3",{className:"text-xl font-semibold text-brandBlue",children:"Order your blood test"})]}),o.jsxs("p",{className:"text-gray-700 ml-[52px]",children:["Schedule a ",o.jsx("strong",{children:"blood draw"})," from 1 of our 2,000 partner labs, or choose an at-home blood draw for extra comfort."]})]}),o.jsxs("div",{className:"flex flex-col",children:[o.jsxs("div",{className:"flex items-center mb-4",children:[o.jsx("div",{className:"w-10 h-10 rounded-full bg-brandBlue text-white flex items-center justify-center font-semibold text-xl mr-3",children:"2"}),o.jsx("h3",{className:"text-xl font-semibold text-brandBlue",children:"Receive Your Results"})]}),o.jsxs("p",{className:"text-gray-700 ml-[52px]",children:["Your results will be available ",o.jsx("strong",{children:"within 5 days"})," and will be personally explained to you by a dementia specialist who will help you understand the results & implications."]})]}),o.jsxs("div",{className:"flex flex-col",children:[o.jsxs("div",{className:"flex items-center mb-4",children:[o.jsx("div",{className:"w-10 h-10 rounded-full bg-brandBlue text-white flex items-center justify-center font-semibold text-xl mr-3",children:"3"}),o.jsx("h3",{className:"text-xl font-semibold text-brandBlue",children:"Begin Your Prevention Journey"})]}),o.jsxs("p",{className:"text-gray-700 ml-[52px]",children:["Uncovering high pTau levels doesn't mean you're powerless. Join BetterBrain's ",o.jsx("strong",{children:"prevention program"})," to ",o.jsx("strong",{children:"take back control"})," and reduce your overall risk."]})]})]}),o.jsx("div",{className:"mt-8 flex justify-center",children:o.jsx(Y,{className:"bg-brandBlue hover:bg-lightBlue text-white text-lg",onClick:e,children:"Get Started"})})]})})},X0=()=>o.jsx("section",{className:"bg-white py-16",children:o.jsxs("div",{className:"container mx-auto px-2 md:px-4 max-w-7xl",children:[o.jsx("h2",{className:"text-3xl font-bold mb-4 text-center",children:"High pTau levels detected?"}),o.jsx("h3",{className:"text-xl mb-8 text-center",children:"1 in 2 dementia cases can be prevented*"}),o.jsxs("div",{className:"max-w-4xl mx-auto",children:[o.jsxs("div",{className:"flex flex-col md:flex-row items-center gap-8",children:[o.jsx("div",{className:"md:w-3/5",children:o.jsxs("p",{className:"text-gray-800 text-lg",children:["Research shows that a personalized approach can ",o.jsx("strong",{children:"significantly lower your risk of developing dementia"}),". In other words, if your test reveals elevated pTau levels, you still have the power to take action. Targeted lifestyle changes can make a meaningful difference in reducing your risk and avoiding Alzheimer's altogether."]})}),o.jsx("div",{className:"md:w-2/5 flex justify-center",children:o.jsx("img",{src:"/lovable-uploads/7ef4dd9b-2396-43ef-8a2c-459761dd05da.png",alt:"BetterBrain Health Domains",className:"w-full max-w-xs object-contain"})})]}),o.jsx("p",{className:"text-xs text-gray-600 mt-8",children:"*Source: The Lancet. Dementia prevention, intervention, and care: 2024 report of the Lancet standing Commission"})]})]})}),J0=()=>{const e=Ai();return o.jsx("section",{className:"bg-brandBlue py-16 text-white",children:o.jsxs("div",{className:"container mx-auto px-2 md:px-4 max-w-7xl text-center",children:[o.jsx("h2",{className:"text-2xl md:text-3xl font-semibold mb-12 text-white",children:"Tailored prevention. Measurable progress."}),e?o.jsxs("div",{className:"flex flex-col items-center justify-center mb-16",children:[o.jsx("p",{className:"text-6xl font-semibold font-playfair text-white mb-2",children:"88%"}),o.jsx("p",{className:"text-white max-w-md",children:"of BetterBrain users improved key dementia risk markers in just 3 months."})]}):o.jsxs("div",{className:"flex items-center justify-center gap-10 mb-16",children:[o.jsx("p",{className:"text-6xl font-semibold font-playfair text-white",children:"88%"}),o.jsx("p",{className:"text-white max-w-md text-left",children:"of BetterBrain users improved key dementia risk markers in just 3 months."})]})]})})};var oh="Avatar",[_P,iR]=Ur(oh),[BP,Z0]=_P(oh),ew=p.forwardRef((e,t)=>
194{const{__scopeAvatar:n,...r}=e,[s,i]=p.useState("idle");return o.jsx(BP,{scope:n,imageLoadingStatus:s,onImageLoadingStatusChange:i,children:o.jsx(te.span,{...r,ref:t})})});ew.displayName=oh;var tw="AvatarImage",nw=p.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:s=()=>{},...i}=e,a=Z0(tw,n),l=MP(r),c=Pe(u=>{s(u),a.onImageLoadingStatusChange(u)});return Ve(()=>{l!=="idle"&&c(l)},[l,c]),l==="loaded"?o.jsx(te.img,{...i,ref:t,src:r}):null});nw.displayName=tw;var rw="AvatarFallback",sw=p.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...s}=e,i=Z0(rw,n),[a,l]=p.useState(r===void 0);return p.useEffect(()=>{if(r!==void 0){const c=window.setTimeout(()=>l(!0),r);return()=>window.clearTimeout(c)}},[r]),a&&i.imageLoadingStatus!=="loaded"?o.jsx(te.span,{...s,ref:t}):null});sw.displayName=rw;function MP(e){const[t,n]=p.useState("idle");return Ve(()=>{if(!e){n("error");return}let r=!0;const s=new window.Image,i=a=>()=>{r&&n(a)};return n("loading"),s.onload=i("loaded"),s.onerror=i("error"),s.src=e,()=>{r=!1}},[e]),t}var ow=ew,iw=nw,aw=sw;const lw=p.forwardRef(({className:e,...t},n)=>o.jsx(ow,{ref:n,className:J("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));lw.displayName=ow.displayName;const cw=p.forwardRef(({className:e,...t},n)=>o.jsx(iw,{ref:n,className:J("aspect-square h-full w-full",e),...t}));cw.displayName=iw.displayName;const uw=p.forwardRef(({className:e,...t},n)=>o.jsx(aw,{ref:n,className:J("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));uw.displayName=aw.displayName;const LP=({quote:e,name:t,title:n,imageSrc:r})=>o.jsxs("div",{className:"bg-cream p-8 rounded-lg h-full flex flex-col",children:[o.jsxs("p",{className:"text-gray-700 italic text-center flex-grow",children:['"',e,'"']}),o.jsxs("div",{className:"mt-6 flex items-center justify-center",children:[o.jsx("div",{className:"mr-4",children:o.jsx(lw,{className:"w-12 h-12",children:r?o.jsx(cw,{src:r,alt:t}):o.jsx(uw,{className:"bg-gray-300",children:t[0]})})}),o.jsxs("div",{children:[o.jsx("p",{className:"font-semibold text-brandBlue",children:t}),o.jsx("p",{className:"text-sm text-gray-600",children:n})]})]})]}),IP=(e,t=5e3)=>{const n=p.useRef(null);return p.useEffect(()=>{if(!e)return;const r=()=>{n.current!==null&&clearInterval(n.current),n.current=window.setInterval(()=>{e.canScrollNext()?e.scrollNext():e.scrollTo(0)},t)},s=()=>{n.current!==null&&(clearInterval(n.current),n.current=null)};return e.on("select",r),e.on("init",r),r(),()=>{s(),e.off("select",r),e.off("init",r)}},[e,t]),null},DP=({children:e,interval:t=5e3})=>{const[n,r]=Ei({loop:!0});IP(r,t);const s=P.useCallback(()=>{r&&r.scrollPrev()},[r]),i=P.useCallback(()=>{r&&r.scrollNext()},[r]),[a,l]=P.useState(!1),[c,u]=P.useState(!1);return P.useEffect(()=>{if(!r)return;const f=()=>{l(r.canScrollPrev()),u(r.canScrollNext())};return r.on("select",f),r.on("reInit",f),f(),()=>{r.off("select",f),r.off("reInit",f)}},[r]),o.jsxs("div",{className:"relative",children:[o.jsx("div",{ref:n,className:"overflow-hidden",children:o.jsx("div",{className:"flex -ml-4",children:e})}),o.jsxs(Y,{variant:"outline",size:"icon",className:"absolute left-0 lg:-left-12 top-1/2 -translate-y-1/2 h-8 w-8 rounded-full z-10",onClick:s,children:[o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"h-4 w-4",children:o.jsx("path",{d:"m15 18-6-6 6-6"})}),o.jsx("span",{className:"sr-only",children:"Previous slide"})]}),o.jsxs(Y,{variant:"outline",size:"icon",className:"absolute right-0 lg:-right-12 top-1/2 -translate-y-1/2 h-8 w-8 rounded-full z-10",onClick:i,children:[o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"h-4 w-4",children:o.jsx("path",{d:"m9 18 6-6-6-6"})}),o.jsx("span",{className:"sr-only",children:"Next slide"})]})]})},dw=()=>{const e=()=>{const n=document.getElementById("pricing-comparison-table");n&&n.scrollIntoView({behavior:"smooth"})},t=[{quote:"BetterBrain helped me cut through the noise and focus on what actually works.",name:"Amy",title:"BetterBrain User"},{quote:"BetterBrain exceeded our expectations—4X the information we were looking for. It changed so much in my life.",name:"Cara",title:"BetterBrain User"},{quote:"Within 3 months, I was able to completely change my bloodwork",name:"Victoria",title:"BetterBrain User"},{quote:"I finally have a sense of control and stop feeling hopeless about my brain health",name:"Sandra",title:"BetterBrain User"}];return o.jsx("section",{className:"bg-cream py-16",id:"reviews",children:o.jsxs("div",{className:"container mx-auto px-2 md:px-4 max-w-7xl",children:[o.jsx("h2",{className:"text-3xl font-bold mb-12 text-center text-brandBlue",children:"They're taking control of their health with BetterBrain"}),o.jsx("div",{className:"my-16",children:o.jsx(DP,{interval:5e3,children:t.map((n,r)=>o.jsx("div",{className:"min-w-0 shrink-0 grow-0 basis-full md:basis-1/2 lg:basis-1/3 pl-4",children:o.jsx(LP,{quote:n.quote,name:n.name,title:n.title,imageSrc:n.imageSrc})},r))})}),o.jsx("div",{className:"text-center",children:o.jsx(Y,{className:"bg-brandBlue hover:bg-opacity-90 text-white font-medium py-3 px-6 text-lg rounded-lg",onClick:e,children:"Start prevention"})})]})})},rc=p.forwardRef(({className:e,...t},n)=>o.jsx("div",{className:"relative w-full overflow-auto",children:o.jsx("table",{ref:n,className:J("w-full caption-bottom text-sm",e),...t})}));rc.displayName="Table";const sc=p.forwardRef(({className:e,...t},n)=>o.jsx("thead",{ref:n,className:J("[&_tr]:border-b",e),...t}));sc.displayName="TableHeader";const oc=p.forwardRef(({className:e,...t},n)=>o.jsx("tbody",{ref:n,className:J("[&_tr:last-child]:border-0",e),...t}));oc.displayName="TableBody";const zP=p.forwardRef(({className:e,...t},n)=>o.jsx("tfoot",{ref:n,className:J("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));zP.displayName="TableFooter";const bt=p.forwardRef(({className:e,...t},n)=>o.jsx("tr",{ref:n,className:J("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...t}));bt.displayName="TableRow";const Tn=p.forwardRef(({className:e,...t},n)=>o.jsx("th",{ref:n,className:J("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",e),...t}));Tn.displayName="TableHead";const Ne=p.forwardRef(({className:e,...t},n)=>o.jsx("td",{ref:n,className:J("p-4 align-middle [&:has([role=checkbox])]:pr-0",e),...t}));
194Ne.displayName="TableCell";const FP=p.forwardRef(({className:e,...t},n)=>o.jsx("caption",{ref:n,className:J("mt-4 text-sm text-muted-foreground",e),...t}));FP.displayName="TableCaption";const ic=m0,$P=g0,fw=p.forwardRef(({className:e,...t},n)=>o.jsx(ql,{ref:n,className:J("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}));fw.displayName=ql.displayName;const Ri=p.forwardRef(({className:e,children:t,...n},r)=>o.jsxs($P,{children:[o.jsx(fw,{}),o.jsxs(Ql,{ref:r,className:J("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...n,children:[t,o.jsxs(x0,{className:"absolute right-4 top-4 roun
194ded-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:[o.jsx(ji,{className:"h-4 w-4"}),o.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Ri.displayName=Ql.displayName;const tt=({className:e,...t})=>o.jsx("div",{className:J("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});tt.displayName="DialogHeader";const nt=p.forwardRef(({className:e,...t},n)=>o.jsx(Kl,{ref:n,className:J("text-lg font-semibold leading-none tracking-tight",e),...t}));nt.displayName=Kl.displayName;const HP=p.forwardRef(({className:e,...t},n)=>o.jsx(Xl,{ref:n,className:J("text-sm text-muted-foreground",e),...t}));HP.displayName=Xl.displayName;const ae=({isOpen:e,onClose:t,type:n})=>{const r=()=>{switch(n){case"bloodPanel":return o.jsxs(o.Fragment,{children:[o.jsx(tt,{children:o.jsx(nt,{className:"text-lg font-bold text-brandBlue",children:"50+ blood tests, many not typically covered in primary care"})}),o.jsxs("div",{className:"space-y-4 mt-4",children:[o.jsxs("div",{className:"flex gap-3",children:[o.jsx("div",{className:"mt-1",children:o.jsx($,{className:"h-5 w-5 text-green-600"})}),o.jsxs("div",{children:["Blood panel ",o.jsx("span",{className:"font-semibold",children:"curated"})," by our panel of cross-speciality physicians"]})]}),o.jsxs("div",{className:"flex gap-3",children:[o.jsx("div",{className:"mt-1",children:o.jsx($,{className:"h-5 w-5 text-green-600"})}),o.jsxs("div",{children:["Use one of ",o.jsx("span",{className:"font-semibold",children:"Quest"})," locations, or ",o.jsx("span",{className:"font-semibold",children:"from your home"})," (where available)"]})]}),o.jsxs("div",{className:"flex gap-3",children:[o.jsx("div",{className:"mt-1",children:o.jsx($,{className:"h-5 w-5 text-green-600"})}),o.jsx("div",{children:"98% of appointments available next day"})]})]})]});case"pTauTest":return o.jsxs(o.Fragment,{children:[o.jsx(tt,{children:o.jsx(nt,{className:"text-lg font-bold text-brandBlue",children:"Breakthrough blood test that can detect Alzheimer's pathology up to 20 years before symptoms begin"})}),o.jsx("div",{className:"space-y-4 mt-4",children:o.jsxs("div",{className:"flex gap-3",children:[o.jsx("div",{className:"mt-1 flex-shrink-0",children:o.jsx("div",{className:"h-6 w-6 rounded-full bg-red-100 flex items-center justify-center",children:o.jsx(Bv,{className:"h-4 w-4 text-red-600"})})}),o.jsx("div",{children:"We believe that pTau-217 can be a highly valuable test for anyone over 45 who wants to be proactive about their brain health. However, getting tested is a very personal choice which requires careful consideration of the benefits and drawbacks, particularly since receiving a positive ptau test can be emotionally challenging."})]})})]});case"consultation":return o.jsxs(o.Fragment,{children:[o.jsx(tt,{children:o.jsx(nt,{className:"text-lg font-bold text-brandBlue",children:"Up to 90-min virtual consultation to review your results and tailor your personalized prevention protocol"})}),o.jsxs("div",{className:"space-y-4 mt-4",children:[o.jsxs("div",{className:"flex gap-3",children:[o.jsx("div",{className:"mt-1",children:o.jsx($,{className:"h-5 w-5 text-green-600"})}),o.jsx("div",{children:"Convenient online consultation from the comfort of your home - no travel or wait"})]}),o.jsxs("div",{className:"flex gap-3",children:[o.jsx("div",{className:"mt-1",children:o.jsx($,{className:"h-5 w-5 text-green-600"})}),o.jsx("div",{children:"A Brain Health Coach with a deep background in preventive neurology, all yours for 90 minutes."})]}),o.jsxs("div",{className:"flex gap-3",children:[o.jsx("div",{className:"mt-1",children:o.jsx($,{className:"h-5 w-5 text-green-600"})}),o.jsx("div",{children:"We help you navigate the clinical and non-clinical actions to take for your brain health."})]})]})]});case"geneticTest":return o.jsxs(o.Fragment,{children:[o.jsx(tt,{children:o.jsx(nt,{className:"text-lg font-bold text-brandBlue",children:"Understand your genetic risk for dementia"})}
194),o.jsxs("div",{className:"space-y-4 mt-4",children:[o.jsxs("div",{className:"flex gap-3",children:[o.jsx("div",{className:"mt-1",children:o.jsx($,{className:"h-5 w-5 text-green-600"})}),o.jsxs("div",{children:[o.jsx("strong",{children:"APOE4 (one copy):"})," Approximately 25% of people carry 1 copy of the APOE4 variant, which increases Alzheimer's risk by 2-3 times compared to non-carriers."]})]}),o.jsxs("div",{className:"flex gap-3",children:[o.jsx("div",{className:"mt-1",children:o.jsx($,{className:"h-5 w-5 text-green-600"})}),o.jsxs("div",{children:[o.jsx("strong",{children:"APOE4/4 (two copies):"})," About 2-3% of the population carries 2 copies of APOE4, which may increase risk by 12-20 times."]})]}),o.jsx("div",{className:"mt-4",children:"If you have the APOE4 variant, there are specific lifestyle changes that may be particularly beneficial for your brain health."})]})]});case"expertSupport":return o.jsxs(o.Fragment,{children:[o.jsx(tt,{children:o.jsx(nt,{className:"text-lg font-bold text-brandBlue",children:"Unlimited SMS messaging support from your coach for expert guidance and accountability"})}),o.jsxs("div",{className:"space-y-4 mt-4",children:[o.jsxs("div",{className:"flex gap-3",children:[o.jsx("div",{className:"mt-1",children:o.jsx($,{className:"h-5 w-5 text-green-600"})}),o.jsxs("div",{children:[o.jsx("strong",{children:"Get peace of mind, anytime"})," - From questions about your protocol to help navigating a doctor's visit. No question is too small or too tough."]})]}),o.jsxs("div",{className:"flex gap-3",children:[o.jsx("div",{className:"mt-1",children:o.jsx($,{className:"h-5 w-5 text-green-600"})}),o.jsxs("div",{children:[o.jsx("strong",{children:"Responses within 24 hours"})," - Our experts review your overall health, research your question, and share answers with you. All in under a day."]})]}),o.jsxs("div",{className:"flex gap-3",children:[o.jsx("div",{className:"mt-1",children:o.jsx($,{className:"h-5 w-5 text-green-600"})}),o.jsxs("div",{children:[o.jsx("strong",{children:"Personalized to your profile"})," - This isn't generic advice—it's tailored support from specialists who understand your unique risk factors and goals."]})]})]})]});case"personalizedPlan":return o.jsxs(o.Fragment,{children:[o.jsx(tt,{children:o.jsx(nt,{className:"text-lg font-bold text-brandBlue",children:"Your science-backed roadmap to better brain health"})}),o.jsxs("div",{className:"space-y-4 mt-4",children:[o.jsxs("div",{className:"flex gap-3",children:[o.jsx("div",{className:"mt-1",children:o.jsx($,{className:"h-5 w-5 text-green-600"})}),o.jsxs("div",{children:[o.jsx("strong",{children:"Custom protocol based on your unique biology"})," - Tailored recommendations across nutrition, exercise, sleep, supplements and more specific to your biomarkers"]})]}),o.jsxs("div",{className:"flex gap-3",children:[o.jsx("div",{className:"mt-1",children:o.jsx($,{className:"h-5 w-5 text-green-600"})}),o.jsxs("div",{children:[o.jsx("strong",{children:"Prioritized by impact and difficulty"})," - Know exactly where to start first and what will move the needle most for your brain health"]})]}),o.jsxs("div",{className:"flex gap-3",children:[o.jsx("div",{className:"mt-1",children:o.jsx($,{className:"h-5 w-5 text-green-600"})}),o.jsxs("div",{children:[o.jsx("strong",{children:"BetterBrain app access"})," - Daily tracking, progress monitoring, and educational content integrated into an easy-to-use dashboard"]})]})]})]})}};return o.jsx(ic,{open:e,onOpenChange:s=>!s&&t(),children:o.jsx(Ri,{className:"max-w-md",children:r()})})},rt=(e,t)=>{const n=["utm_source","utm_medium","utm_campaign","utm_term","utm_content","gclid","fbclid"];try{const r=typeof window<"u"?new URLSearchParams(window.location.search):new URLSearchParams,s=new URL(e);return n.forEach(i=>{const a=r.get(i);a&&s.searchParams.set(i,a)}),t&&Object.entries(t).forEach(([i,a])=>{s.searchParams.set(i,a)}),s.toString()}catch{return e}},UP=()=>{const e=Ai(),[t,n]=p.useState(null),r=[{title:"Brain Health Assessment",subheader:"50+ biomarker lab test (Labcorp or at-home) and a 15-minute digital cognitive test to assess brain health.",leftColumn:"check",rightColumn:"check",modalType:"bloodPanel"}
194,{title:"pTau-217 Testing",subheader:"The most advanced Alzheimer's test - detect pathology up to 20 years before symptoms appear.",leftColumn:"check",rightColumn:"check",modalType:"pTauTest"},{title:"Up to 90 minute Expert Consultation",subheader:"One-on-one session with a dementia prevention specialist to review your results.",leftColumn:"check",rightColumn:"check",modalType:"consultation"},{title:"Personalized Brain Health Plan",subheader:"Science-backed plan across nutrition, exercise and more tailored to improve brain health and lower dementia risk.",leftColumn:"check",rightColumn:"check",modalType:"personalizedPlan"},{title:"Unlimited Expert Support",subheader:"Ongoing messaging support from a dedicated coach for expert guidance and accountability.",leftColumn:"check",rightColumn:"check",modalType:"expertSupport"},{title:"APOE4 Genetic Testing",subheader:"Know your genetic risk for Alzheimer's and get personalized prevention strategies based on your DNA.",leftColumn:"addon",rightColumn:"check",addonPrice:"$149",modalType:"geneticTest"}],s=c=>{n(c)},i=()=>{n(null)},a=(c,u)=>c==="check"?o.jsx("div",{className:"flex justify-center",children:o.jsx("div",{className:"w-6 h-6 rounded-full bg-green-100 flex items-center justify-center",children:o.jsx($,{size:14,className:"text-green-600"})})}):o.jsx("div",{className:"flex justify-center",children:o.jsxs("span",{className:"bg-amber-100 text-amber-800 px-3 py-1 rounded-full text-sm font-medium",children:["+",u]})}),l=(c,u)=>c==="check"?o.jsx("div",{className:"w-6 h-6 rounded-full bg-green-100 flex items-center justify-center",children:o.jsx($,{size:14,className:"text-green-600"})}):o.jsxs("span",{className:"bg-amber-100 text-amber-800 px-2 py-1 rounded-full text-xs font-medium",children:["+",u]});return e?o.jsxs("section",{className:"bg-white py-16 w-full overflow-x-hidden",children:[o.jsxs("div",{className:"container mx-auto px-4 md:px-6 max-w-full",children:[o.jsx("h2",{className:"text-2xl font-bold text-center mb-8 text-slate-800",children:"Stay ahead with the latest in dementia detection and prevention"}),o.jsxs("div",{className:"mb-8 border rounded-lg overflow-hidden shadow-sm max-w-full",children:[o.jsxs("div",{className:"p-4 bg-gray-50 border-b",children:[o.jsx("h3",{className:"text-xl font-bold text-center text-slate-800",children:"pTau BetterBrain"}),o.jsx("p",{className:"text-center text-slate-800",children:"Check-up"}),o.jsx("p",{className:"text-center text-slate-600 text-sm italic mt-1",children:"Get pTau-217 testing + comprehensive brain health assessment and personalized prevention plan"})]}),o.jsxs("div",{className:"p-4",children:[o.jsx("ul",{className:"space-y-4",children:r.map((c,u)=>o.jsxs("li",{className:"flex items-center justify-between",children:[o.jsxs("div",{className:"flex-1 min-w-0",children:[o.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[o.jsx("span",{className:"font-medium break-words",children:c.title}),c.modalType&&o.jsx("button",{className:"flex-shrink-0 w-5 h-5 rounded-full bg-gray-100 flex items-center justify-center",onClick:()=>s(c.modalType),children:o.jsx(En,{size:12,className:"text-gray-600"})})]}),o.jsx("p",{className:"text-sm text-gray-600 break-words leading-relaxed",children:c.subheader})]}),o.jsx("div",{className:"flex items-center flex-shrink-0 ml-3",children:l(c.leftColumn,c.addonPrice)})]},u))}),o.jsxs("div",{className:"mt-6 mb-4 p-3 bg-gray-100 rounded-lg",children:[o.jsx("p",{className:"font-medium text-gray-700",children:"Traditional dementia clinics"}),o.jsx("p",{className:"font-medium text-xl mt-1 text-center line-through text-gray-600",children:"$2,000 – $10,000"})]}),o.jsxs("div",{className:"pt-4",children:[o.jsxs("div",{className:"flex justify-between items-center mb-2",children:[o.jsx("span",{className:"font-semibold text-gray-900",children:"BetterBrain price"}),o.jsx("div",{className:"text-right",children:o.jsx("div",{className:"font-bold text-xl text-slate-800",children:"$698"})})]}),o.jsx(Y,{className:"w-full mt-2 bg-brandBlue hover:bg-opacity-90 text-white font-medium py-3 px-6 text-lg rounded-lg checkout-button","data-button":"get-started",onClick:()=>window.location.href=rt("https://app.betterbrain.com/ptau"),children:"Get started"})]})]})]}),o.jsxs("div",{className:"mb-8 border rounded-lg overflow-hidden shadow-sm max-w-full",children:[o.jsxs("div",{className:"p-4 bg-gray-50 border-b",children:[o.jsx("h3",{className:"text-xl font-bold text-center text-slate-800",children:"Complete BetterBrain"}),o.jsx("p",{className:"text-center text-slate-800",children:"Check-up"}),o.jsx("p",{className:"text-center text-slate-600 text-sm italic mt-1",children:"Everything included: pTau-217 + Alzheimers genetic test"})]}),o.jsxs("div",{className:"p-4",children:[o.jsx("ul",{className:"space-y-4",children:r.map((c,u)=>o.jsxs("li",{className:"flex items-center justify-between",children:[o.jsxs("div",{className:"flex-1 min-w-0",children:[o.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[o.jsx("span",{className:"font-medium break-words",children:c.title}),c.modalType&&o.jsx("button",{className:"flex-shrink-0 w-5 h-5 rounded-full bg-gray-100 flex items-center justify-center",onClick:()=>s(c.modalType),children:o.jsx(En,{size:12,className:"text-gray-600"})})]}),o.jsx("p",{className:"text-sm text-gray-600 break-words leading-relaxed",children:c.subheader})]}),o.jsx("div",{className:"flex items-center flex-shrink-0 ml-3",children:l(c.rightColumn,c.addonPrice)})]},u))}
194),o.jsxs("div",{className:"pt-4 border-t mt-6",children:[o.jsxs("div",{className:"flex justify-between items-center mb-2",children:[o.jsx("span",{className:"font-semibold text-gray-900",children:"BetterBrain price"}),o.jsx("div",{className:"text-right",children:o.jsx("div",{className:"font-bold text-xl text-slate-800",children:"$847"})})]}),o.jsx(Y,{className:"w-full mt-2 bg-brandBlue hover:bg-opacity-90 text-white font-medium py-3 px-6 text-lg rounded-lg checkout-button","data-button":"get-started",onClick:()=>window.location.href=rt("https://app.betterbrain.com/ptau-apoe"),children:"Get started"})]})]})]}),o.jsxs("div",{className:"flex flex-wrap justify-center gap-4 mt-6",children:[o.jsxs("div",{className:"flex items-center",children:[o.jsx("div",{className:"w-5 h-5 rounded-full bg-green-100 flex items-center justify-center mr-2",children:o.jsx($,{size:12,className:"text-green-600"})}),o.jsx("span",{className:"text-sm",children:"Money-Back Guarantee"})]}),o.jsxs("div",{className:"flex items-center",children:[o.jsx("div",{className:"w-5 h-5 rounded-full bg-green-100 flex items-center justify-center mr-2",children:o.jsx($,{size:12,className:"text-green-600"})}),o.jsx("span",{className:"text-sm",children:"HSA/FSA Eligible"})]}),o.jsxs("div",{className:"flex items-center",children:[o.jsx("div",{className:"w-5 h-5 rounded-full bg-green-100 flex items-center justify-center mr-2",children:o.jsx($,{size:12,className:"text-green-600"})}),o.jsx("span",{className:"text-sm",children:"Buy now, pay later"})]})]}),o.jsxs("div",{className:"max-w-2xl mx-auto bg-cyan-50 py-8 px-6 rounded-xl text-center mt-8",children:[o.jsx("h2",{className:"text-3xl font-semibold text-slate-800 mb-4",children:"Lingering questions?"}),o.jsx("p",{className:"text-lg text-slate-600 mb-6",children:"Schedule a free 15-minute call to explore your brain health options"}),o.jsx(Y,{className:"bg-brandBlue hover:bg-opacity-90 text-white font-medium py-3 px-6 text-lg rounded-lg",onClick:()=>window.open(rt("https://calendly.com/wendy-pietri-betterbrain/new-meeting"),"_blank"),children:"Schedule now"})]})]}),o.jsx(ae,{isOpen:t==="bloodPanel",onClose:i,type:"bloodPanel"}),o.jsx(ae,{isOpen:t==="pTauTest",onClose:i,type:"pTauTest"}),o.jsx(ae,{isOpen:t==="consultation",onClose:i,type:"consultation"}),o.jsx(ae,{isOpen:t==="geneticTest",onClose:i,type:"geneticTest"}),o.jsx(ae,{isOpen:t==="personalizedPlan",onClose:i,type:"personalizedPlan"}),o.jsx(ae,{isOpen:t==="expertSupport",onClose:i,type:"expertSupport"})]}):o.jsxs("section",{className:"bg-white py-16 w-full overflow-x-hidden",children:[o.jsxs("div",{className:"container mx-auto px-4 md:px-6 max-w-full",children:[o.jsx("h2",{className:"text-3xl font-bold text-center mb-12 text-slate-800",children:"Stay ahead with the latest in dementia detection and prevention"}),o.jsx("div",{className:"w-full overflow-x-auto",children:o.jsx("div",{className:"min-w-full",children:o.jsx("div",{className:"bg-white rounded-lg shadow-xl overflow-hidden border",children:o.jsxs(rc,{children:[o.jsx(sc,{children:o.jsxs(bt,{className:"border-0",children:[o.jsx(Tn,{className:"w-2/5 py-8 border-r border-gray-200 min-w-0"}),o.jsx(Tn,{className:"w-3/10 bg-white text-center py-8 border-r border-gray-200 min-w-0",children:o.jsxs("div",{children:[o.jsxs("h3",{className:"text-xl font-bold mb-2 text-slate-800",children:["pTau BetterBrain",o.jsx("br",{}),"Check-up"]}),o.jsx("p",{className:"text-slate-600 text-xs italic",children:"Get pTau-217 testing + comprehensive brain health assessment and personalized prevention plan"})]})}),o.jsx(Tn,{className:"w-3/10 bg-white text-center py-8 min-w-0",children:o.jsxs("div",{children:[o.jsxs("h3",{className:"text-xl font-bold mb-2 text-slate-800",children:["Complete BetterBrain",o.jsx("br",{}),"Check-up"]}),o.jsx("p",{className:"text-slate-600 text-xs italic",children:"Everything included: pTau-217 + Alzheimers genetic test"})]})})]})}),o.jsxs(oc,{children:[r.map((c,u)=>o.jsxs(bt,{className:"border-b hover:bg-gray-50/50 transition-colors",children:[o.jsx(Ne,{className:"py-6 border-r border-gray-200 min-w-0",children:o.jsx("div",{className:"flex items-start gap-2",children:o.jsxs("div",{className:"flex-1",children:[o.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[o.jsx("h4",{className:"font-semibold text-gray-900 text-base break-words",children:c.title}),c.modalType&&o.jsx("button",{className:"flex-shrink-0",onClick:()=>s(c.modalType),children:o.jsx(En,{className:"h-4 w-4 text-gray-400 cursor-pointer hover:text-gray-600 transition-colors"})})]}),o.jsx("p",{className:"text-sm text-gray-600 leading-relaxed break-words",children:c.subheader})]})})}),o.jsx(Ne,{className:"py-6 border-r border-gray-200 text-center min-w-0",children:a(c.leftColumn,c.addonPrice)}),o.jsx(Ne,{className:"py-6 text-center min-w-0",children:a(c.right
194Column,c.addonPrice)})]},u)),o.jsxs(bt,{className:"bg-gray-100",children:[o.jsx(Ne,{className:"py-6 border-r border-gray-200 min-w-0",children:o.jsx("div",{className:"text-center font-medium text-gray-700",children:"Traditional dementia clinics"})}),o.jsx(Ne,{className:"py-6 border-r border-gray-200 text-center font-medium line-through text-gray-600 min-w-0",colSpan:2,children:"$2,000 – $10,000"})]}),o.jsxs(bt,{className:"border-0",children:[o.jsx(Ne,{className:"py-6 bg-gray-50 border-r border-gray-200 min-w-0",children:o.jsx("div",{className:"text-center font-semibold text-gray-900 text-base",children:"BetterBrain price"})}),o.jsx(Ne,{className:"py-6 bg-gray-50 border-r border-gray-200 min-w-0",children:o.jsxs("div",{className:"flex flex-col items-center gap-2",children:[o.jsx("div",{className:"text-2xl font-bold text-slate-800",children:"$698"}),o.jsx(Y,{className:"bg-brandBlue hover:bg-opacity-90 text-white font-medium py-3 px-6 text-lg rounded-lg checkout-button","data-button":"get-started",onClick:()=>window.location.href=rt("https://app.betterbrain.com/ptau"),children:"Get started"})]})}),o.jsx(Ne,{className:"py-6 bg-gray-50 min-w-0",children:o.jsxs("div",{className:"flex flex-col items-center gap-2",children:[o.jsx("div",{className:"text-2xl font-bold text-slate-800",children:"$847"}),o.jsx(Y,{className:"bg-brandBlue hover:bg-opacity-90 text-white font-medium py-3 px-6 text-lg rounded-lg checkout-button","data-button":"get-started",onClick:()=>window.location.href=rt("https://app.betterbrain.com/ptau-apoe"),children:"Get started"})]})})]})]})]})})})}),o.jsxs("div",{className:"flex flex-wrap justify-center gap-6 mt-8",children:[o.jsxs("div",{className:"flex items-center",children:[o.jsx("div",{className:"w-5 h-5 rounded-full bg-green-100 flex items-center justify-center mr-2",children:o.jsx($,{size:12,className:"text-green-600"})}),o.jsx("span",{children:"Money-Back Guarantee"})]}),o.jsxs("div",{className:"flex items-center",children:[o.jsx("div",{className:"w-5 h-5 rounded-full bg-green-100 flex items-center justify-center mr-2",children:o.jsx($,{size:12,className:"text-green-600"})}),o.jsx("span",{children:"HSA/FSA Eligible"})]}),o.jsxs("div",{className:"flex items-center",children:[o.jsx("div",{className:"w-5 h-5 rounded-full bg-green-100 flex items-center justify-center mr-2",children:o.jsx($,{size:12,className:"text-green-600"})}),o.jsx("span",{children:"Buy now, pay later"})]})]}),o.jsxs("div",{className:"max-w-2xl mx-auto bg-cyan-50 py-10 px-8 rounded-xl text-center mt-10",children:[o.jsx("h2",{className:"text-4xl font-semibold text-slate-800 mb-4",children:"Lingering questions?"}),o.jsx("p",{className:"text-xl text-slate-600 mb-6",children:"Schedule a free 15-minute call to explore your brain health options"}),o.jsx(Y,{className:"bg-brandBlue hover:bg-opacity-90 text-white font-medium py-3 px-6 text-lg rounded-lg",onClick:()=>window.open(rt("https://calendly.com/wendy-pietri-betterbrain/new-meeting"),"_blank"),children:"Schedule now"})]})]}),o.jsx(ae,{isOpen:t==="bloodPanel",onClose:i,type:"bloodPanel"}),o.jsx(ae,{isOpen:t==="pTauTest",onClose:i,type:"pTauTest"}),o.jsx(ae,{isOpen:t==="consultation",onClose:i,type:"consultation"}),o.jsx(ae,{isOpen:t==="geneticTest",onClose:i,type:"geneticTest"}),o.jsx(ae,{isOpen:t==="personalizedPlan",onClose:i,type:"personalizedPlan"}),o.jsx(ae,{isOpen:t==="expertSupport",onClose:i,type:"expertSupport"})]})},hw=()=>o.jsx("section",{className:"bg-brandBlue py-16 text-white",children:o.jsxs("div",{className:"container mx-auto px-2 max-w-4xl",children:[o.jsx("h2",{className:"text-3xl font-bold text-center mb-10 text-white",children:"Why don't we offer standalone pTau testing?"}),o.jsx("p",{className:"text-center mb-6",children:"We believe that providing pTau testing without proper support and guidance is ethically problematic. Learning about your dementia risk can be emotionally challenging, and we want to ensure you have the resources and context needed to process this information."}),o.jsx("p",{className:"text-center",children:`Our comprehensive program offers not just testing, but also personalized prevention strategies, expert consultation, and ongoing support — giving you both clarity about your risk factors and actionable steps to improve your brain health. This integrated approach ensures you're never left wondering "what's next?" after receiving your results.`})]})});function WP(e,[t,n]){return Math.min(n,Math.max(t,e))}function VP(e,t){return p.useReducer((n,r)=>t[n][r]??n,e)}
vendor: 14,215 bytes, line 194
194var ih="ScrollArea",[pw,aR]=Ur(ih),[GP,It]=pw(ih),mw=p.forwardRef((e,t)=>{const{__scopeScrollArea:n,type:r="hover",dir:s,scrollHideDelay:i=600,...a}=e,[l,c]=p.useState(null),[u,f]=p.useState(null),[h,d]=p.useState(null),[v,y]=p.useState(null),[x,b]=p.useState(null),[m,g]=p.useState(0),[w,j]=p.useState(0),[N,C]=p.useState(!1),[S,E]=p.useState(!1),k=fe(t,B=>c(B)),A=B0(s);return o.jsx(GP,{scope:n,type:r,dir:A,scrollHideDelay:i,scrollArea:l,viewport:u,onViewportChange:f,content:h,onContentChange:d,scrollbarX:v,onScrollbarXChange:y,scrollbarXEnabled:N,onScrollbarXEnabledChange:C,scrollbarY:x,onScrollbarYChange:b,scrollbarYEnabled:S,onScrollbarYEnabledChange:E,onCornerWidthChange:g,onCornerHeightChange:j,children:o.jsx(te.div,{dir:A,...a,ref:k,style:{position:"relative","--radix-scroll-area-corner-width":m+"px","--radix-scroll-area-corner-height":w+"px",...e.style}})})});mw.displayName=ih;var gw="ScrollAreaViewport",xw=p.forwardRef((e,t)=>{const{__scopeScrollArea:n,children:r,nonce:s,...i}=e,a=It(gw,n),l=p.useRef(null),c=fe(t,l,a.onViewportChange);return o.jsxs(o.Fragment,{children:[o.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:s}),o.jsx(te.div,{"data-radix-scroll-area-viewport":"",...i,ref:c,style:{overflowX:a.scrollbarXEnabled?"scroll":"hidden",overflowY:a.scrollbarYEnabled?"scroll":"hidden",...e.style},children:o.jsx("div",{ref:a.onContentChange,style:{minWidth:"100%",display:"table"},children:r})})]})});xw.displayName=gw;var mn="ScrollAreaScrollbar",ah=p.forwardRef((e,t)=>{const{forceMount:n,...r}=e,s=It(mn,e.__scopeScrollArea),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:a}=s,l=e.orientation==="horizontal";return p.useEffect(()=>(l?i(!0):a(!0),()=>{l?i(!1):a(!1)}),[l,i,a]),s.type==="hover"?o.jsx(YP,{...r,ref:t,forceMount:n}):s.type==="scroll"?o.jsx(qP,{...r,ref:t,forceMount:n}):s.type==="auto"?o.jsx(vw,{...r,ref:t,forceMount:n}):s.type==="always"?o.jsx(lh,{...r,ref:t}):null});ah.displayName=mn;var YP=p.forwardRef((e,t)=>{const{forceMount:n,...r}=e,s=It(mn,e.__scopeScrollArea),[i,a]=p.useState(!1);return p.useEffect(()=>{const l=s.scrollArea;let c=0;if(l){const u=()=>{window.clearTimeout(c),a(!0)},f=()=>{c=window.setTimeout(()=>a(!1),s.scrollHideDelay)};return l.addEventListener("pointerenter",u),l.addEventListener("pointerleave",f),()=>{window.clearTimeout(c),l.removeEventListener("pointerenter",u),l.removeEventListener("pointerleave",f)}}},[s.scrollArea,s.scrollHideDelay]),o.jsx(Wr,{present:n||i,children:o.jsx(vw,{"data-state":i?"visible":"hidden",...r,ref:t})})}),qP=p.forwardRef((e,t)=>{const{forceMount:n,...r}=e,s=It(mn,e.__scopeScrollArea),i=e.orientation==="horizontal",a=lc(()=>c("SCROLL_END"),100),[l,c]=VP("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return p.useEffect(()=>{if(l==="idle"){const u=window.setTimeout(()=>c("HIDE"),s.scrollHideDelay);return()=>window.clearTimeout(u)}},[l,s.scrollHideDelay,c]),p.useEffect(()=>{const u=s.viewport,f=i?"scrollLeft":"scrollTop";if(u){let h=u[f];const d=()=>{const v=u[f];h!==v&&(c("SCROLL"),a()),h=v};return u.addEventListener("scroll",d),()=>u.removeEventListener("scroll",d)}},[s.viewport,i,c,a]),o.jsx(Wr,{present:n||l!=="hidden",children:o.jsx(lh,{"data-state":l==="hidden"?"hidden":"visible",...r,ref:t,onPointerEnter:ee(e.onPointerEnter,()=>c("POINTER_ENTER")),onPointerLeave:ee(e.onPointerLeave,()=>c("POINTER_LEAVE"))})})}),vw=p.forwardRef((e,t)=>{const n=It(mn,e.__scopeScrollArea),{forceMount:r,...s}=e,[i,a]=p.useState(!1),l=e.orientation==="horizontal",c=lc(()=>{if(n.viewport){const u=n.viewport.offsetWidth<n.viewport.scrollWidth,f=n.viewport.offsetHeight<n.viewport.scrollHeight;a(l?u:f)}},10);return Ws(n.viewport,c),Ws(n.content,c),o.jsx(Wr,{present:r||i,children:o.jsx(lh,{"data-state":i?"visible":"hidden",...s,ref:t})})}),lh=p.forwardRef((e,t)=>{const{orientation:n="vertical",...r}=e,s=It(mn,e.__scopeScrollArea),i=p.useRef(null),a=p.useRef(0),[l,c]=p.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=Nw(l.viewport,l.content),f={...r,sizes:l,onSizesChange:c,hasThumb:u>0&&u<1,onThumbChange:d=>i.current=d,onThumbPointerUp:()=>a.current=0,onThumbPointerDown:d=>a.current=d};function h(d,v){return eA(d,a.current,l,v)}return n==="horizontal"?o.jsx(QP,{...f,ref:t,onThumbPositionChange:()=>{if(s.viewport&&i.current){const d=s.viewport.scrollLeft,v=Em(d,l,s.dir);i.current.style.transform=`translate3d(${v}px, 0, 0)`}},onWheelScroll:d=>{s.viewport&&(s.viewport.scrollLeft=d)},onDragScroll:d=>{s.viewport&&(s.viewport.scrollLeft=h(d,s.dir))}}):n==="vertical"?o.jsx(KP,{...f,ref:t,onThumbPositionChange:()=>{if(s.viewport&&i.current){const d=s.viewport.scrollTop,v=Em(d,l);i.current.style.transform=`translate3d(0, ${v}px, 0)`}},onWheelScroll:d=>{s.viewport&&(s.viewport.scrollTop=d)},onDragScroll:d=>{s.viewport&&(s.viewport.scrollTop=h(d))}}):null}),QP=p.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...s}=e,i=It(mn,e.__scopeScrollArea),[a,l]=p.useState(),c=p.useRef(null),u=fe(t,c,i.onScrollbarXChange);return p.useEffect(()=>{c.current&&l(getComputedStyle(c.current))},[c]),o.jsx(ww,{"data-orientation":"horizontal",...s,ref:u,sizes:n,style:{bottom:0,left:i.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:i.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":ac(n)+"px",...e.style},onThumbPointerDown:f=>e.onThumbPointerDown(f.x),onDragScroll:f=>e.onDragScroll(f.x),onWheelScroll:(f,h)=>{if(i.viewport){const d=i.viewport.scrollLeft+f.deltaX;e.onWheelScroll(d),Cw(d,h)&&f.preventDefault()}},onResize:()=>{c.current&&i.viewport&&a&&r({content:i.viewport.scrollWidth,viewport:i.viewport.offsetWidth,scrollbar:{size:c.current.clientWidth,paddingStart:ml(a.paddingLeft),paddingEnd:ml(a.paddingRight)}})}})}),KP=p.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...s}=e,i=It(mn,e.__scopeScrollArea),[a,l]=p.useState(),c=p.useRef(null),u=fe(t,c,i.onScrollbarYChange);return p.useEffect(()=>{c.current&&l(getComputedStyle(c.current))},[c]),o.jsx(ww,{"data-orientation":"vertical",...s,ref:u,sizes:n,style:{top:0,right:i.dir==="ltr"?0:void 0,left:i.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":ac(n)+"px",...e.style},onThumbPointerDown:f=>e.onThumbPointerDown(f.y),onDragScroll:f=>e.onDragScroll(f.y),onWheelScroll:(f,h)=>{if(i.viewport){const d=i.viewport.scrollTop+f.deltaY;e.onWheelScroll(d),Cw(d,h)&&f.preventDefault()}},onResize:()=>{c.current&&i.viewport&&a&&r({content:i.viewport.scrollHeight,viewport:i.viewport.offsetHeight,scrollbar:{size:c.current.clientHeight,paddingStart:ml(a.paddingTop),paddingEnd:ml(a.paddingBottom)}})}})}),[XP,yw]=pw(mn),ww=p.forwardRef((e,t)=>{const{__scopeScrollArea:n,sizes:r,hasThumb:s,onThumbChange:i,onThumbPointerUp:a,onThumbPointerDown:l,onThumbPositionChange:c,onDragScroll:u,onWheelScroll:f,onResize:h,...d}=e,v=It(mn,n),[y,x]=p.useState(null),b=fe(t,k=>x(k)),m=p.useRef(null),g=p.useRef(""),w=v.viewport,j=r.content-r.viewport,N=Pe(f),C=Pe(c),S=lc(h,10);function E(k){if(m.current){const A=k.clientX-m.current.left,B=k.clientY-m.current.top;u({x:A,y:B})}}return p.useEffect(()=>{const k=A=>{const B=A.target;(y==null?void 0:y.contains(B))&&N(A,j)};return document.addEventListener("wheel",k,{passive:!1}),()=>document.removeEventListener("wheel",k,{passive:!1})},[w,y,j,N]),p.useEffect(C,[r,C]),Ws(y,S),Ws(v.content,S),o.jsx(XP,{scope:n,scrollbar:y,hasThumb:s,onThumbChange:Pe(i),onThumbPointerUp:Pe(a),onThumbPositionChange:C,onThumbPointerDown:Pe(l),children:o.jsx(te.div,{...d,ref:b,style:{position:"absolute",...d.style},onPointerDown:ee(e.onPointerDown,k=>{k.button===0&&(k.target.setPointerCapture(k.pointerId),m.current=y.getBoundingClientRect(),g.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",v.viewport&&(v.viewport.style.scrollBehavior="auto"),E(k))}),onPointerMove:ee(e.onPointerMove,E),onPointerUp:ee(e.onPointerUp,k=>{const A=k.target;A.hasPointerCapture(k.pointerId)&&A.releasePointerCapture(k.pointerId),document.body.style.webkitUserSelect=g.current,v.viewport&&(v.viewport.style.scrollBehavior=""),m.current=null})})})}),pl="ScrollAreaThumb",bw=p.forwardRef((e,t)=>{const{forceMount:n,...r}=e,s=yw(pl,e.__scopeScrollArea);return o.jsx(Wr,{present:n||s.hasThumb,children:o.jsx(JP,{ref:t,...r})})}),JP=p.forwardRef((e,t)=>{const{__scopeScrollArea:n,style:r,...s}=e,i=It(pl,n),a=yw(pl,n),{onThumbPositionChange:l}=a,c=fe(t,h=>a.onThumbChange(h)),u=p.useRef(),f=lc(()=>{u.current&&(u.current(),u.current=void 0)},100);return p.useEffect(()=>{const h=i.viewport;if(h){const d=()=>{if(f(),!u.current){const v=tA(h,l);u.current=v,l()}};return l(),h.addEventListener("scroll",d),()=>h.removeEventListener("scroll",d)}},[i.viewport,f,l]),o.jsx(te.div,{"data-state":a.hasThumb?"visible":"hidden",...s,ref:c,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:ee(e.onPointerDownCapture,h=>{const v=h.target.getBoundingClientRect(),y=h.clientX-v.left,x=h.clientY-v.top;a.onThumbPointerDown({x:y,y:x})}),onPointerUp:ee(e.onPointerUp,a.onThumbPointerUp)})});bw.displayName=pl;var ch="ScrollAreaCorner",jw=p.forwardRef((e,t)=>{const n=It(ch,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&r?o.jsx(ZP,{...e,ref:t}):null});jw.displayName=ch;var ZP=p.forwardRef((e,t)=>{const{__scopeScrollArea:n,...r}=e,s=It(ch,n),[i,a]=p.useState(0),[l,c]=p.useState(0),u=!!(i&&l);return Ws(s.scrollbarX,()=>{var h;const f=((h=s.scrollbarX)==null?void 0:h.offsetHeight)||0;s.onCornerHeightChange(f),c(f)}),Ws(s.scrollbarY,()=>{var h;const f=((h=s.scrollbarY)==null?void 0:h.offsetWidth)||0;s.onCornerWidthChange(f),a(f)}),u?o.jsx(te.div,{...r,ref:t,style:{width:i,height:l,position:"absolute",right:s.dir==="ltr"?0:void 0,left:s.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function ml(e){return e?parseInt(e,10):0}function Nw(e,t){const n=e/t;return isNaN(n)?0:n}function ac(e){const t=Nw(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function eA(e,t,n,r="ltr"){const s=ac(n),i=s/2,a=t||i,l=s-a,c=n.scrollbar.paddingStart+a,u=n.scrollbar.size-n.scrollbar.paddingEnd-l,f=n.content-n.viewport,h=r==="ltr"?[0,f]:[f*-1,0];return Sw([c,u],h)(e)}function Em(e,t,n="ltr"){const r=ac(t),s=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,i=t.scrollbar.size-s,a=t.content-t.viewport,l=i-r,c=n==="ltr"?[0,a]:[a*-1,0],u=WP(e,c);return Sw([0,a],[0,l])(u)}function Sw(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function Cw(e,t){return e>0&&e<t}var tA=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return function s(){const i={left:e.scrollLeft,top:e.scrollTop},a=n.left!==i.left,l=n.top!==i.top;(a||l)&&t(),n=i,r=window.requestAnimationFrame(s)}(),()=>window.cancelAnimationFrame(r)};function lc(e,t){const n=Pe(e),r=p.useRef(0);return p.useEffect(()=>()=>window.clearTimeout(r.current),[]),p.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function Ws(e,t){const n=Pe(t);Ve(()=>{let r=0;if(e){const s=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return s.observe(e),()=>{window.cancelAnimationFrame(r),s.unobserve(e)}}},[e,n])}var Ew=mw,nA=xw,rA=jw;const uh=p.forwardRef(({className:e,children:t,...n},r)=>o.jsxs(Ew,{ref:r,className:J("relative overflow-hidden",e),...n,children:[o.jsx(nA,{className:"h-full w-full rounded-[inherit]",children:t}),o.jsx(Tw,{}),o.jsx(rA,{})]}));uh.displayName=Ew.displayName;const Tw=p.forwardRef(({className:e,orientation:t="vertical",...n},r)=>o.jsx(ah,{ref:r,orientation:t,className:J("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...n,children:o.jsx(bw,{className:"relative flex-1 rounded-full bg-border"})}));Tw.displayName=ah.displayName;const sA=({name:e,credentials:t,imageUrl:n,bio:r})=>{const[s,i]=p.useState(!1);return o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"flex flex-col items-center",children:[o.jsx("div",{className:"bg-cream w-full aspect-square mb-4 rounded-lg overflow-hidden cursor-pointer hover:opacity-90 transition-opacity",onClick:()=>i(!0),children:o.jsx("img",{src:n,alt:`${e}, ${t}`,className:"w-full h-full object-cover"})}),o.jsx("p",{className:"font-medium text-brandBlue mt-2",children:e}),o.jsx("p",{className:"text-sm text-gray-700",children:t})]}),o.jsx(ic,{open:s,onOpenChange:i,children:o.jsxs(Ri,{className:"max-w-3xl max-h-[90vh]",children:[o.jsx(tt,{children:o.jsxs(nt,{className:"text-2xl font-playfair text-brandBlue",children:[e,", ",t]})}),o.jsx(uh,{className:"h-[70vh] pr-4",children:o.jsxs("div",{className:"flex flex-col md:flex-row gap-6 mt-4",children:[o.jsx("div",{className:"w-full md:w-1/3",children:o.jsx("img",{src:n,alt:`${e}, ${t}`,className:"w-full h-auto rounded-md object-cover"})}),o.jsx("div",{className:"flex-1",children:o.jsx("div",{className:"text-gray-700",children:r?o.jsx("p",{className:"leading-relaxed whitespace-pre-line",children:r}):o.jsxs("p",{className:"leading-relaxed",children:[e," is a respected expert in their field, contributing valuable insights to BetterBrain's dementia prevention program. Their expertise helps ensure our approach remains scientifically sound and effective."]})})})]})})]})})]})},kw=()=>{const e=[{name:"Ben Rein",credentials:"PhD",imageUrl:"/lovable-uploads/32700a1c-8e04-4391-968d-89238d3dd38b.png",bio:`Dr. Ben Rein is a neuroscientist and science educator whose research focuses on the neurobiology of social interactions. He has published over 20 scientific papers about the neuroscience of empathy, the genetic basis of autism, and how brain cell communication regulates s
194ocial interactions. His research has received awards from the NIH, Society for Neuroscience, and Sigma Xi.
195
196Outside the lab, Ben creates educational videos on research, neuroscience basics, and debunks misinformation for his audience of >1 million followers. His videos have received over 60 million views, been featured on major media outlets (ABC News, Good Morning America), and have won awards from the National Academies of Science, AAAS, Society for Neuroscience, and Stanford.
197
198Ben serves as Chief Science Officer of the Mind Science Foundation and is an Adjunct Lecturer at Stanford. He has been a scientific consultant for over 35 companies and foundations. He is also a contributing editor at OpenMind Magazine and the Founder of the Aspiring Scientists Coalition, an organization providing free guidance for students in 75+ countries.`},{name:"Jordan Glenn",credentials:"PhD",imageUrl:"/lovable-uploads/f03c8ba1-668f-407e-8c00-fdf27a301955.png",bio:`Starting from his time at Omada Health, he has developed a diverse background in the digital health space where he has used his aging expertise in exercise, nutrition, and behavior change to focus on disease states such as diabetes, cardiovascular disease, and now Alzheimer's and dementia.
199
200As Neurotrack's Chief Science Officer, Jordan leads the company's scientific development and validation pipeline, while informing the company's business development/ partnerships. He also holds an academic dual-appointment at the University of Arkansas and has been authored on over 100 scientific publications. He is also the primary investigator on the DC-MARVEL project, which is the first study ever to investigate the effects of fully remote, digital health coaching on Alzheimer's disease risk.
201
202Jordan holds a PhD with specializations in exercise physiology, gerontology, and nutrition from the University of Arkansas.`},{name:"John Jeffries",credentials:"MD",imageUrl:"/lovable-uploads/6daf0a4c-d02c-455d-8390-c9bf236a7534.png",bio:`Dr. John Jeffries is an internationally recognized cardiologist specializing in cardiomyopathies, heart failure, genetics, heritable disease, artificial intelligence, and rare diseases. He is currently a Professor in the School of Public Health at the University of Memphis, the team cardiologist for the Memphis Grizzlies, and a Research Member of St Jude Children's Research Hospital. Dr. Jefferies is also the immediate past Governor of the Tennessee Chapter of the American College of Cardiology and immediate President of the American Heart Association Mid-South region.
203
204Dr. Jefferies is the lead Editor of two leading textbooks in cardiology and has authored or co-authored over 300 peer-reviewed manuscripts and book chapters. His research is funded by sources including the National Institutes of Health and multiple industry partners. He is actively involved in the advancement of innovative technologies including AI in healthcare, novel strategies for healthcare provision connectivity, precision medicine, diagnosis and management of rare diseases, and patient advocacy. Additionally, he has served as a Key Opinion Leader for over 30 national and international companies, has served on multiple Scientific Advisory Boards, and is a consultant to both privately held and publicly traded companies.
205‍
206Dr. Jefferies completed his combined adult cardiology and pediatric training at the Baylor College of Medicine in Houston, Texas at the Texas Children's Hospital, and at the Texas Heart Institute. He received his MPH from the University of Kentucky with a major in Epidemiology, and his MBA from the Wharton Business School of the University of Pennsylvania with a dual major in Management and Entrepreneurship & Innovation.`},{name:"Craig Tanio",credentials:"MD, FACP",imageUrl:"/lovable-uploads/bec2435b-ce10-4216-a484-e89d0889543b.png",bio:`Dr. Tanio is trained in internal medicine, brain health, longevity, and precision medicine. As co-founder of Rezilir Health, he leads a clinical team treating complex chronic conditions such as cognitive decline, neurodegenerative disorders, Long Covid, autoimmune diseases, ME/CFS, and environmentally acquired illnesses. His approach emp
206hasizes identifying root causes and providing practical, evidence-based care, drawing from multiple medical disciplines and aligning with patients' values and preferences.
207
208He holds a BA in Political Science from UCLA, an M.D. from UCSF, and an MBA from the Wharton School. He completed his residency and fellowship at the University of Pennsylvania, where he served as Chief Medical Resident and was a Robert Wood Johnson Clinical Scholar. Dr. Tanio is board certified in internal and functional medicine and has trained in several functional protocols.
209
210He is a co-investigator in the Evanthea Research Study, which explores reversing cognitive decline through precision medicine, and leads studies on real-world outcomes for patients with cognitive decline and ME/CFS. His leadership roles have included serving as Chief Medical Officer of ChenMed, a multi-state group practice for Medicare Advantage patients, a Partner at McKinsey & Company and Chairman of the Maryland Health Care Commission. He is also on the faculty at Johns Hopkins and Nova Southeastern University and is a member of the Alpha Omega Alpha Medical Honor Society.`},{name:"Jay Saenz",credentials:"MD",imageUrl:"/lovable-uploads/6ef15270-4de7-44b0-aec4-29a5c318a750.png",bio:`Jay Saenz, MD, is a board-certified orthopedic surgeon and healthcare entrepreneur with over 19 years of experience in private practice. He is the Founder and President of Aethos Partners, a company dedicated to enhancing patient recovery through the integration of high-quality, innovative products into medical practices. Aethos Partners specializes in creating customized e-commerce platforms that align with the specific needs of individual practices.
211
212His company, Aethos Partners, formerly engaged in a joint venture with Obento Health, a Y Combinator-backed startup specializing in digital marketing and patient education. He now continues to contribute to Obento Health as an advisor. Additionally, his expertise has been pivotal in driving business development at OrthoSouth, where he has played a key role in establishing strategic partnerships and elevating the quality of orthopedic care in local hospitals.
213
214Dr. Saenz holds a Bachelor of Arts in Microbiology from the University of Arkansas and earned his Doctor of Medicine from the University of Arkansas for Medical Sciences. He completed his residency in Orthopedic Surgery at the University of Tennessee-Campbell Clinic and has been practicing in Memphis, TN, since 2005.`},{name:"Tommy Wood",credentials:"MD, PhD",imageUrl:"/lovable-uploads/91cdfdd8-1cf1-4aa7-9897-8c9b49d40fc7.png",bio:`Dr. Tommy Wood is an Associate Professor of Neuroscience and Pediatrics at the University of Washington, where his research focuses on brain health including factors influencing long-term cognitive function and dementia risk.
215
216Tommy earned his Bachelor's degree in Biochemistry from the University of Cambridge, a medical degree from the University of Oxford, and a PhD in Physiology and Neuroscience from the University of Oslo. In addition to his academic work, Tommy has spent over a decade as a performance consultant for professional athletes, including Olympians and world champions.
217
218He also hosts the Better Brain Fitness podcast, where he discusses strategies to prevent dementia and improve cognitive function. Tommy has appeared on The Drive by Dr. Peter Attia, sharing his expertise on dementia prevention and cognitive health.`}];return o.jsx("section",{className:"bg-cream py-16",id:"science",children:o.jsxs("div",{className:"container mx-auto px-2 md:px-4 max-w-6xl",children:[o.jsxs("div",{className:"max-w-4xl mx-auto text-center mb-8",children:[o.jsxs("h2",{className:"text-3xl font-bold mb-4",children:["Discover the top minds behind",o.jsx("br",{}),"BetterBrain's dementia prevention program"]}),o.jsxs("p",{className:"mb-8",children:["With expertise in ",o.jsx("span",{className:"font-medium",children:"genetics, neuroscience, epidemiology and heritable diseases"}),", BetterBrain's scientific advisors ensure that our prevention program remains guided by the latest scientific breakthroughs."]})]}),o.jsxs("div",{className:"flex flex-wrap justify-center items-center gap-8 max-w-4xl mx-auto mb-10",children:[o.jsx("img",{src:"/lovable-uploads/b903ac32-f89d-4c94-9f6c-0017f0c3079f.png",alt:"Stanford University",className:"h-32 object-contain"}),o.jsx("img",{src:"/lovable-uploads/f78f1c68-4d15-498c-bc6a-ec0738ba69a4.png",alt:"University of Pennsylvania",className:"h-32 object-contain"}),o.jsx("img",{src:"/lovable-uploads/69be4044-9bd0-4b07-8112-2d1fcbb9ba5b.png",alt:"American Heart Association",className:"h-32 object-contain"}),o.jsx("img",{src:"/lovable-uploads/cf8a4cbf-5e15-4a6f-a6c3-5213fa1bff91.png",alt:"University of Cambridge",className:"h-32 object-contain"})]}),o.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-6 gap-6",children:e.map((t,n)=>o.jsx(sA,{name:t.name,credentials:t.credentials,imageUrl:t.imageUrl,bio:t.bio},n))})]})})},Pw=[{question:"What is pTau-217?",answer:"pTau stands for phosphorylated tau. Tau is one of the proteins that accumulates in the brain in Alzheimer's patients. This blood test looks for a specific variety of that protein in your blood. The amount of pTau-217 in your blood is strongly associated with the progression of Alzheimer's in your brain, even before any symptoms show. That is 
218why it is such a useful tool for prevention. It can give you a sense of how far along the disease you are, and most importantly, help you make an informed choice on what prevention strategies you want to take."},{question:"Why should I consider pTau-217 testing?",answer:"pTau-217 is the most accurate blood test available for detecting Alzheimer's-related changes in the brain, up to 20 years before symptoms appear. Unlike genetic testing, which tells you about risk, pTau-217 tells you what is actually happening in your brain right now. This makes it one of the most powerful tools for deciding how aggressively to invest in prevention. If you have a family history of Alzheimer's, carry the APOE4 gene, or simply want the most complete picture of your brain health, pTau-217 testing can help you and your brain health expert build a more precise plan."},{question:"Does having a positive result mean that I have Alzheimer's?",answer:"The short answer is no. A positive result means that you are very likely to have an elevated amount of amyloid pathology in your brain, which incurs a higher risk for developing cognitive symptoms. In order to diagnose Alzheimer's, you would need either an amyloid PET scan or a spinal tap which tests for amyloid, as well as a clinical exam performed by a neurologist. Getting a positive pTau-217 result does not definitively mean you will develop Alzheimer's symptoms. However, it does mean you are at increased risk and may influence the decisions you make surrounding how you approach your brain health."},{question:"Does having a negative result mean that I am cleared of Alzheimer's?",answer:"No. A negative result means you are below the threshold at which you would most likely receive a positive amyloid PET scan. This is good news because it suggests a lower likelihood of having Alzheimer's-related changes in the brain at the time of testing. Depending on the amount of pTau-217 detected, you may be exhibiting signs of pre-clinical Alzheimer's. Elevated pTau results suggest the brain is showing early signs of damage which eventually may accumulate to cause cognitive symptoms. By taking action before your symptoms show, you may be able to prevent or delay the onset of Alzheimer's."},{question:"Are there any reasons I should not take this test?",answer:"pTau-217 testing relates to Alzheimer's, a serious disease without a cure. If you tend to feel anxious or have been diagnosed with anxiety or depression, you may have more emotional difficulty with these results. Before testing, consider: a positive result does not mean you will definitely develop Alzheimer's, a negative result does not guarantee you never will, and sharing your result could affect your ability to get certain types of insurance such as life or long-term care. If you decide to test, your results will include science-backed interventions and resources to help you take action."},{question:"What is the APOE gene?",answer:"APOE is a gene that affects how your brain handles cholesterol and clears amyloid plaques. Everyone has two copies of the APOE gene, creating combinations like 3/3, 3/4, or 4/4. Your combination affects your risk for Alzheimer's disease."},{question:"What do the APOE variants mean?",answer:"APOE2 is a protective variant associated with lower Alzheimer's risk. APOE3 is the most common variant, representing baseline risk. APOE4 is a higher risk variant that increases Alzheimer's likelihood. One copy of APOE4 means 2-3x higher risk. Two copies means 8-12x higher risk."},{question:"What can I do if I am an APOE4 carrier?",answer:"Key prevention strategies for APOE4 carriers include prioritizing heart-healthy fats, managing cholesterol, implementing anti-inflammatory lifestyle practices, optimizing sleep, and engaging in regular cognitive assessments. Your BetterBrain action plan will prioritize the strategies with the strongest evidence for your specific genotype."},{question:"What tests are included?",answer:"Blueprint includes 50+ blood biomarkers covering metabolic, cardiovascular, hormonal, inflammation, and nutrient markers, plus a digital cognitive assessment. pTau-217 testing is included with Blueprint on this page. APOE4 genetic testing is available as an optional add-on."},{question:"What is the coaching consultation?",answer:"You will be matched with a licensed brain health clinician for a session up to 90 minutes. Together, you will go through your results and build a personalized action plan based on your biology, lifestyle, and goals."},{question:"How can I schedule my test?",answer:"Testing requires a blood draw, which you can schedule at a Quest location near you (5,000+ locations available), a BioReference lab in NY, NJ, or RI, or at home where available for an additional $50. You can complete your cognitive assessment and health profile immediately after signing up."},{question:"How will my results be delivered to me?",answer:"Your results will be shared during your consultation with a brain health expert. After the session, you will have full access to your results and personalized action plan in the BetterBrain Portal."},{question:"How do you keep my health information safe?",answer:"BetterBrain uses HIPAA-compliant systems and restricts access to your results on a need-to-know basis. Only you, the ordering physician, and 
218your brain health expert have access to your health data."},{question:"What is your cancellation policy?",answer:"Money-back guarantee on Blueprint. If you have purchased Blueprint and are not satisfied for any reason, we will issue a 100% refund. This includes refunds even if your bloodwork has already been drawn. Refunds typically take up to two weeks to process. Appointment cancellation: if you need to reschedule or cancel your 90-minute expert session, you can do so free of charge with at least 24 hours notice. Cancellations within 24 hours of your appointment are subject to a $75 fee, which helps protect our coaches' time."},{question:"Other questions?",answer:"Feel free to contact us at [email protected]"}],Aw=()=>o.jsx("section",{className:"bg-darkCream py-16",id:"faq",children:o.jsxs("div",{className:"container mx-auto px-2 md:px-4 max-w-7xl",children:[o.jsx("h2",{className:"text-2xl md:text-3xl font-semibold text-center mb-12 text-brandBlue",children:"FAQs"}),o.jsx("div",{className:"max-w-3xl mx-auto bg-white rounded-lg p-6",children:o.jsx(hl,{type:"single",collapsible:!0,className:"w-full",children:Pw.map((e,t)=>o.jsxs(ui,{value:`item-${t}`,children:[o.jsx(di,{className:"text-brandBlue font-medium text-left",children:e.question}),o.jsx(fi,{className:"text-gray-700 whitespace-pre-line text-left",children:e.answer})]},t))})})]})}),dh=()=>{zf();const e=t=>{const n=document.getElementById(t);n&&n.scrollIntoView({behavior:"smooth"})};return o.jsx("footer",{className:"bg-brandBlue text-white py-12",children:o.jsxs("div",{className:"container mx-auto px-2",children:[o.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-8",children:[o.jsx("div",{className:"md:col-span-2",children:o.jsx("div",{className:"h-12 mb-4",children:o.jsx("img",{src:"/lovable-uploads/ec3d51e5-ec28-42a5-8f53-c302823ad845.png",alt:"BetterBrain Logo",className:"h-full w-auto object-contain max-w-[60%]",onError:t=>{const n=t.target;n.onerror=null,n.src="/placeholder.svg"}})})}),o.jsx("div",{className:"md:col-span-2",children:o.jsxs("ul",{className:"space-y-2 flex flex-col items-end",children:[o.jsx("li",{children:o.jsx("a",{href:"#how-it-works",className:"text-gray-300 hover:text-white transition-colors",onClick:t=>{t.preventDefault(),e("how-it-works")},children:"How it Works"})}),o.jsx("li",{children:o.jsx("a",{href:"#science",className:"text-gray-300 hover:text-white transition-colors",onClick:t=>{t.preventDefault(),e("science")},children:"Science"})}),o.jsx("li",{children:o.jsx("a",{href:"#reviews",className:"text-gray-300 hover:text-white transition-colors",onClick:t=>{t.preventDefault(),e("reviews")},children:"Reviews"})}),o.jsx("li",{children:o.jsx("a",{href:"#faq",className:"text-gray-300 hover:text-white transition-colors",onClick:t=>{t.preventDefault(),e("faq")},children:"FAQ"})})]})})]}),o.jsx("div",{className:"border-t border-gray-700 mt-8 pt-8",children:o.jsxs("div",{className:"flex flex-col md:flex-row justify-between items-center",children:[o.jsx("p",{className:"text-gray-400 text-sm mb-4 md:mb-0",children:"© 2025 BetterBrain Health Inc. All rights reserved."}),o.jsxs("div",{className:"flex flex-wrap justify-center space-x-4",children:[o.jsx("a",{href:"/terms",className:"text-gray-400 hover:text-white mb-2 transition-colors",children:"Terms"}),o.jsx("a",{href:"#",className:"text-gray-400 hover:text-white mb-2 transition-colors",children:"Privacy"})]})]})})]})})},Rw=()=>{const e={title:"Check out BetterBrain!",text:"I found this amazing brain health service. Give it a look:",url:"https://www.betterbrain.health"};return p.useEffect(()=>{const t=document.getElementById("shareBtn"),n=async()=>{if(navigator.share)try{await navigator.share(e),console.log("Share was successful")}catch(r){console.error("Share failed:",r)}else alert("Sharing is not supported on this browser. Try copying the link instead.")};return t&&t.addEventListener("click",n),()=>{t&&t.removeEventListener("click",n)}},[]),o.jsx("section",{className:"py-12 bg-cream",children:o.jsxs("div",{className:"container mx-auto px-2 text-center",children:[o.jsx("h2",{className:"text-3xl font-bold mb-6",children:"Share BetterBrain"}),o.jsx("p",{className:"text-gray-700 mb-8 max-w-xl mx-auto",children:"Know someone who might benefit from early Alzheimer's detection and prevention? Share BetterBrain with them today."}),o.jsxs(Y,{id:"shareBtn",className:"bg-brandBlue hover:bg-brandBlue/90 text-white font-semibold py-3 px-6 rounded-md flex items-center mx-auto",children:[o.jsx(Mv,{className:"mr-2 h-5 w-5"}),"Share BetterBrain"]})]})})},oA={"/how-it-works":{title:"How It Works — BetterBrain pTau Testing",description:"Learn how the BetterBrain pTau-217 blood test works and what to expect from your Alzheimer's risk assessment."},"/science":{title:"The Science — BetterBrain pTau Testing",description:"Explore the clinical research behind pTau-217 blood testing and its accuracy for detecting Alzheimer's risk."},"/reviews":{title:"Reviews — BetterBrain pTau Testing",description:"Read testimonials from people who used BetterBrain's pTau blood test to understand their Alzheimer's risk."},"/faq":{title:"FAQ — BetterBrain pTau Testing",description:"Get answers to frequently asked questions about pTau-217 testing, results, insurance, and refunds."}},wo=()=>{const{pathname:e}=eo(),t=oA[e]||{title:"BetterBrain pTau Testing — Simple At-Home Blood Test",description:"Test for pTau levels to understand your Alzheimer's risk and take preventive action with BetterBrain."};return p.useEffect(()=>{const n=document.createElement("script");return n.innerHTML=`
219      !function(t,e){var o,n,p,r;e.__SV||(window.posthog=e,e._i=[],e.init=function(i,s,a){function g(t,e){var o=e.split(".");2==o.length&&(t=t[o[0]],e=o[1]),t[e]=function(){t.push([e].concat(Array.prototype.slice.call(arguments,0)))}}(p=t.createElement("script")).type="text/javascript",p.crossOrigin="anonymous",p.async=!0,p.src=s.api_host.replace(".i.posthog.com","-assets.i.posthog.com")+"/static/array.js",(r=t.getElementsByTagName("script")[0]).parentNode.insertBefore(p,r);var u=e;for(void 0!==a?u=e[a]=[]:a="posthog",u.people=u.people||[],u.toString=function(t){var e="posthog";return"posthog"!==a&&(e+="."+a),t||(e+=" (stub)"),e},u.people.toString=function(){return u.toString(1)+".people (stub)"},o="init capture register register_once register_for_session unregister unregister_for_session getFeatureFlag getFeatureFlagPayload isFeatureEnabled reloadFeatureFlags updateEarlyAccessFeatureEnrollment getEarlyAccessFeatures on onFeatureFlags onSurveysLoaded onSessionId getSurveys getActiveMatchingSurveys render
219Survey canRenderSurvey identify setPersonProperties group resetGroups setPersonPropertiesForFlags resetPersonPropertiesForFlags setGroupPropertiesForFlags resetGroupPropertiesForFlags reset get_distinct_id getGroups get_session_id get_session_replay_url alias set_config startSessionRecording stopSessionRecording sessionRecordingStarted captureException loadToolbar get_property getSessionProperty createPersonProfile opt_in_capturing opt_out_capturing has_opted_in_capturing has_opted_out_capturing clear_opt_in_out_capturing debug getPageViewId captureTraceFeedback captureTraceMetric".split(" "),n=0;n<o.length;n++)g(u,o[n]);e._i.push([i,s,a])},e.__SV=1)}(document,window.posthog||[]);
220      posthog.init('phc_NxdU1YTyGyOdBhVpQra7I8hfCGjD58ZkSXQnLAyRNhG', {
221          api_host: 'https://us.i.posthog.com',
222          person_profiles: 'identified_only', // or 'always' to create profiles for anonymous users as well
223      })
224    `,document.head.appendChild(n),()=>{document.head.removeChild(n)}},[]),o.jsxs("div",{className:"min-h-screen bg-cream w-full overflow-x-hidden",children:[o.jsxs(Qs,{children:[o.jsx("title",{children:t.title}),o.jsx("meta",{name:"description",content:t.description}),o.jsx("link",{rel:"canonical",href:`https://p-tau-lp.lovable.app${e}`}),o.jsx("meta",{property:"og:title",content:t.title}),o.jsx("meta",{property:"og:description",content:t.description}),o.jsx("meta",{property:"og:url",content:`https://p-tau-lp.lovable.app${e}`}),o.jsx("script",{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"FAQPage",mainEntity:Pw.map(n=>({"@type":"Question",name:n.question,acceptedAnswer:{"@type":"Answer",text:n.answer}}))})}),o.jsx("script",{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"MedicalWebPage",name:t.title,description:t.description,url:`https://p-tau-lp.lovable.app${e}`,about:{"@type":"MedicalTest",name:"pTau-217 Blood Test",usedToDiagnose:{"@type":"MedicalCondition",name:"Alzheimer's Disease"}},audience:{"@type":"MedicalAudience",audienceType:"Patient"},lastReviewed:"2026-06-05"})})]}),o.jsx(Yf,{}),o.jsxs("main",{className:"bg-cream w-full",children:[o.jsx(y0,{}),o.jsx(T0,{}),o.jsx(k0,{}),o.jsx(Q0,{}),o.jsx("div",{id:"how-it-works",children:o.jsx(K0,{})}),o.jsx(X0,{}),o.jsx(J0,{}),o.jsx(dw,{}),o.jsx("div",{id:"pricing-comparison-table",className:"py-16",children:o.jsx(UP,{})}),o.jsx(hw,{}),o.jsx(q0,{}),o.jsx("div",{id:"science",children:o.jsx(kw,{})}),o.jsx(E0,{}),o.jsx(Aw,{}),o.jsx(Rw,{})]}),o.jsx(dh,{})]})},iA=()=>{const e=eo();return p.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),o.jsxs("div",{className:"min-h-screen flex items-center justify-center bg-gray-100",children:[o.jsxs(Qs,{children:[o.jsx("title",{children:"Page Not Found — BetterBrain"}),o.jsx("meta",{name:"description",content:"The page you are looking for could not be found. Return to BetterBrain's pTau testing homepage."})]}),o.jsxs("div",{className:"text-center",children:[o.jsx("h1",{className:"text-4xl font-bold mb-4",children:"404"}),o.jsx("p",{className:"text-xl text-gray-600 mb-4",children:"Oops! Page not found"}),o.jsx("a",{href:"/",className:"text-blue-500 hover:text-blue-700 underline",children:"Return to Home"})]})]})},aA=()=>o.jsxs("div",{className:"flex flex-col min-h-screen",children:[o.jsxs(Qs,{children:[o.jsx("title",{children:"Terms & Conditions — BetterBrain"}),o.jsx("meta",{name:"description",content:"Read the terms and conditions for using BetterBrain Health's pTau testing services and website."}),o.jsx("link",{rel:"canonical",href:"https://p-tau-lp.lovable.app/terms"}),o.jsx("meta",{property:"og:title",content:"Terms & Conditions — BetterBrain"}),o.jsx("meta",{property:"og:description",content:"Read the terms and conditions for using BetterBrain Health's pTau testing services and website."}),o.jsx("meta",{property:"og:url",content:"https://p-tau-lp.lovable.app/terms"})]}),o.jsx(Yf,{}),o.jsx("main",{className:"flex-grow bg-cream",children:o.jsxs("div",{className:"container mx-auto px-4 py-16",children:[o.jsx("h1",{className:"text-3xl md:text-4xl font-bold mb-8",children:"Terms & conditions"}),o.jsx("p",{className:"text-gray-500 mb-8",children:"Last updated September 17, 2024"}),o.jsxs("section",{className:"mb-8",children:[o.jsx("h2",{className:"text-xl font-bold mb-4",children:"AGREEMENT TO OUR LEGAL TERMS"}),o.jsx("p",{className:"mb-4",children:'We are BetterBrain Health, Inc, doing business as BetterBrain Health and BetterBrain ("Better Brain", "Company," "we," "us," "our"), a company registered in Ohio, United States at 600 Superior Ave. E., Suite 1800, Cleveland, OH 44114.'}),o.jsx("p",{className:"mb-4",children:'We operate the BetterBrain website, located at https://betterbrain.com/ (the "BetterBrain Website"), as well as any other related products and services that refer or link to these legal terms (the "Legal Terms") (collectively, the "Services").'})]}),o.jsx("section",{className:"mb-8",children:o.jsx("p",{className:"mb-4",children:'Please read the Legal Terms carefully before accessing or using the Services as it sets forth important information that you as a user ("You") need to understand about the Services. These Legal Terms constitute a legally binding agreement made between You, whether personally or on behalf of an entity as a user of the Services, and BetterBrain Health, Inc, concerning Your access to and use of the Services. You agree that by accessing browsing, otherwise using the Services, You have read, understood, and agreed to be bound by all of these Legal Terms. IF YOU DO NOT AGREE WITH THE LEGAL TERMS, THEN YOU MAY DISCONTINUE USE OF THE SERVICES IMMEDIATELY. YOU AGREE THAT THE AGREEMENT FORMED BY THESE LEGAL TERMS IS LIKE ANY WRITTEN, NEGOTIATED AGREEMENT SIGNED BY YOU, AND YOU AGREE TO BE BOUND BY, AND FULLY COMPLY WITH, ITS TERMS. YOU REPRESENT AND WARRANT THAT YOU HAVE ALL NECESSARY RIGHTS, POWER, AND AUTHORITY TO ENTER INTO THIS AGREEMENT AND TO PERFORM AND OTHERWISE DISCHARGE ALL OF YOUR OBLIGATIONS HEREUNDER, WHETHER ON BEHALF OF YOURSELF OR ANY ENTITY THAT YOU REPRESENT.'})}),o.jsx("section",{className:"mb-8",children:o.jsx("p",{className:"mb-4",children:'Supplemental terms and conditions or documents that may be posted on the Services from time to time are hereby expressly incorporated herein by reference. We reserve the right, in our sole discretion, to make changes or modifications to these Legal Terms at any time and for any reason. We will alert You about any changes by updating the "Last updated" date of these Legal Terms, and You waive any right to re
224ceive specific notice of each such change. It is Your responsibility to periodically review these Legal Terms to stay informed of updates. You will be subject to and will be deemed to have been made aware of and to have accepted, the changes in any revised Legal Terms by Your continued use of the Services after the date such revised Legal Terms are posted.'})}),o.jsx("section",{className:"mb-8",children:o.jsx("p",{className:"mb-4",children:"The Services are intended for users who are at least 18 years old. Persons under the age of 18 are not permitted to use or register for the Services. By using and accepting the Terms of the Services You are representing that you satisfy the eligibility requirements and agree to comply with all applicable United States laws and regulations, which may change from time to time."})}),o.jsx("section",{className:"mb-8",children:o.jsx("p",{className:"mb-4",children:"We recommend that You print a copy of these Legal Terms for Your records."})}),o.jsx("section",{className:"mb-8",children:o.jsx("p",{className:"mb-4",children:"You can contact us by email at [email protected]."})})]})}),o.jsx(dh,{})]}),ru=[{title:"Brain Health Assessment",subheader:"50+ biomarker lab test (Labcorp or at-home) and a 15-minute digital cognitive test to assess brain health.",leftColumn:"check",rightColumn:"check",modalType:"bloodPanel"},{title:"pTau-217 Testing",subheader:"The most advanced Alzheimer's test - detect pathology up to 20 years before symptoms appear.",leftColumn:"check",rightColumn:"check",modalType:"pTauTest"},{title:"Up to 90 minute Expert Consultation",subheader:"One-on-one session with a dementia prevention specialist to review your results.",leftColumn:"check",rightColumn:"check",modalType:"consultation"},{title:"Personalized Brain Health Plan",subheader:"Science-backed plan across nutrition, exercise and more tailored to improve brain health and lower dementia risk.",leftColumn:"check",rightColumn:"check",modalType:"personalizedPlan"},{title:"Unlimited Expert Support",subheader:"Ongoing messaging support from a dedicated coach for expert guidance and accountability.",leftColumn:"check",rightColumn:"check",modalType:"expertSupport"},{title:"APOE4 Genetic Testing",subheader:"Know your genetic risk for Alzheimer's and get personalized prevention strategies based on your DNA.",leftColumn:"addon",rightColumn:"check",addonPrice:"$149",modalType:"geneticTest"}],es=(e,t)=>{const n=["utm_source","utm_medium","utm_campaign","utm_term","utm_content"],r=new URLSearchParams(window.location.search),s=new URL(e);return n.forEach(i=>{const a=r.get(i);a&&s.searchParams.set(i,a)}),t&&Object.entries(t).forEach(([i,a])=>{s.searchParams.set(i,a)}),s.toString()},lA=()=>{const e=Ai(),[t,n]=p.useState(null),r=c=>{n(c)},s=()=>{n(null)},i=(c,u)=>c==="check"?o.jsx("div",{className:"flex justify-center",children:o.jsx("div",{className:"w-6 h-6 rounded-full bg-green-100 flex items-center justify-center",children:o.jsx($,{size:14,className:"text-green-600"})})}):o.jsx("div",{className:"flex justify-center",children:o.jsxs("span",{className:"bg-amber-100 text-amber-800 px-3 py-1 rounded-full text-sm font-medium",children:["+",u]})}),a=(c,u)=>c==="check"?o.jsx("div",{className:"w-6 h-6 rounded-full bg-green-100 flex items-center justify-center",children:o.jsx($,{size:14,className:"text-green-600"})}):o.jsxs("span",{className:"bg-amber-100 text-amber-800 px-2 py-1 rounded-full text-xs font-medium",children:["+",u]}),l=o.jsxs(o.Fragment,{children:[o.jsx(ae,{isOpen:t==="bloodPanel",onClose:s,type:"bloodPanel"}),o.jsx(ae,{isOpen:t==="pTauTest",onClose:s,type:"pTauTest"}),o.jsx(ae,{isOpen:t==="consultation",onClose:s,type:"consultation"}),o.jsx(ae,{isOpen:t==="geneticTest",onClose:s,type:"geneticTest"}),o.jsx(ae,{isOpen:t==="personalizedPlan",onClose:s,type:"personalizedPlan"}),o.jsx(ae,{isOpen:t==="expertSupport",onClose:s,type:"expertSupport"})]});return e?o.jsxs("section",{className:"bg-white py-16 w-full overflow-x-hidden",children:[o.jsxs("div",{className:"container mx-auto px-4 md:px-6 max-w-full",children:[o.jsx("h2",{className:"text-2xl font-bold text-center mb-8 text-slate-800",children:"Stay ahead with the latest in dementia detection and prevention"}),o.jsxs("div",{className:"mb-8 border rounded-lg overflow-hidden shadow-sm max-w-full",children:[o.jsxs("div",{className:"p-4 bg-gray-50 border-b",children:[o.jsx("h3",{className:"text-xl font-bold text-center text-slate-800",children:"pTau BetterBrain"}),o.jsx("p",{className:"text-center text-slate-800",children:"Check-up"}),o.jsx("p",{className:"text-center text-slate-600 text-sm italic mt-1",children:"Get pTau-217 testing + comprehensive brain health asse
224ssment and personalized prevention plan"})]}),o.jsxs("div",{className:"p-4",children:[o.jsx("ul",{className:"space-y-4",children:ru.map((c,u)=>o.jsxs("li",{className:"flex items-center justify-between",children:[o.jsxs("div",{className:"flex-1 min-w-0",children:[o.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[o.jsx("span",{className:"font-medium break-words",children:c.title}),c.modalType&&o.jsx("button",{className:"flex-shrink-0 w-5 h-5 rounded-full bg-gray-100 flex items-center justify-center",onClick:()=>r(c.modalType),children:o.jsx(En,{size:12,className:"text-gray-600"})})]}),o.jsx("p",{className:"text-sm text-gray-600 break-words leading-relaxed",children:c.subheader})]}),o.jsx("div",{className:"flex items-center flex-shrink-0 ml-3",children:a(c.leftColumn,c.addonPrice)})]},u))}),o.jsxs("div",{className:"mt-6 mb-4 p-3 bg-gray-100 rounded-lg",children:[o.jsx("p",{className:"font-medium text-gray-700",children:"Traditional dementia clinics"}),o.jsx("p",{className:"font-medium text-xl mt-1 text-center line-through text-gray-600",children:"$2,000 – $10,000"})]}),o.jsxs("div",{className:"pt-4",children:[o.jsxs("div",{className:"mb-3 flex justify-center gap-8",children:[o.jsxs("div",{className:"text-center",children:[o.jsx("p",{className:"text-sm text-slate-600",children:"With Insurance"}),o.jsx("p",{className:"text-2xl font-bold text-slate-800",children:"$388"})]}),o.jsxs("div",{className:"text-center",children:[o.jsx("p",{className:"text-sm text-slate-600",children:"Cash Pay"}),o.jsx("p",{className:"text-2xl font-bold text-slate-800",children:"$698"})]})]}),o.jsx(Y,{className:"w-full bg-brandBlue hover:bg-opacity-90 text-white font-medium py-3 px-6 text-base rounded-lg coverage-started",onClick:()=>window.location.href=es("https://app.betterbrain.com/registration",{product:"ptau"}),children:"Check Coverage"})]})]})]}),o.jsxs("div",{className:"mb-8 border rounded-lg overflow-hidden shadow-sm max-w-full",children:[o.jsxs("div",{className:"p-4 bg-gray-50 border-b",children:[o.jsx("h3",{className:"text-xl font-bold text-center text-slate-800",children:"Complete BetterBrain"}),o.jsx("p",{className:"text-center text-slate-800",children:"Check-up"}),o.jsx("p",{className:"text-center text-slate-600 text-sm italic mt-1",children:"Everything included: pTau-217 + Alzheimers genetic test"})]}),o.jsxs("div",{className:"p-4",children:[o.jsx("ul",{className:"space-y-4",children:ru.map((c,u)=>o.jsxs("li",{className:"flex items-center justify-between",children:[o.jsxs("div",{className:"flex-1 min-w-0",children:[o.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[o.jsx("span",{className:"font-medium break-words",children:c.title}),c.modalType&&o.jsx("button",{className:"flex-shrink-0 w-5 h-5 rounded-full bg-gray-100 flex items-center justify-center",onClick:()=>r(c.modalType),children:o.jsx(En,{size:12,className:"text-gray-600"})})]}),o.jsx("p",{className:"text-sm text-gray-600 break-words leading-relaxed",children:c.subheader})]}),o.jsx("div",{className:"flex items-center flex-shrink-0 ml-3",children:a(c.rightColumn,c.addonPrice)})]},u))}),o.jsxs("div",{className:"pt-4 border-t mt-6",children:[o.jsxs("div",{className:"mb-3 flex justify-center gap-8",children:[o.jsxs("div",{className:"text-center",children:[o.jsx("p",{className:"text-sm text-slate-600",children:"With Insurance"}),o.jsx("p",{className:"text-2xl font-bold text-slate-800",children:"$537"})]}),o.jsxs("div",{className:"text-center",children:[o.jsx("p",{className:"text-sm text-slate-600",children:"Cash Pay"}),o.jsx("p",{className:"text-2xl font-bold text-slate-800",children:"$847"})]})]}),o.jsx(Y,{className:"w-full bg-brandBlue hover:bg-opacity-90 text-white font-medium py-3 px-6 text-base rounded-lg coverage-started",onClick:()=>window.location.href=es("https://app.betterbrain.com/registration",{product:"ptau-apoe"}),children:"Check Coverage"})]})]})]}),o.jsxs("div",{className:"flex flex-wrap justify-center gap-4 mt-6",children:[o.jsxs("div",{className:"flex items-center",children:[o.jsx("div",{className:"w-5 h-5 rounded-full bg-green-100 flex items-center justify-center mr-2",children:o.jsx($,{size:12,className:"text-green-600"})}),o.jsx("span",{className:"text-sm",children:"Money-Back Guarantee"})]}),o.jsxs("div",{className:"flex items-center",children:[o.jsx("div",{className:"w-5 h-5 rounded-full bg-green-100 flex items-center justify-center mr-2",children:o.jsx($,{size:12,className:"text-green-600"})}),o.jsx("span",{className:"text-sm",children:"HSA/FSA Eligible"})]}),o.jsxs("div",{className:"flex items-center",children:[o.jsx("div",{className:"w-5 h-5 rounded-full bg-green-100 flex items-center justify-center mr-2",children:o.jsx($,{size:12,className:"text-green-600"})}),o.jsx("span",{className:"text-sm",children:"Buy now, pay later"})]})]}),o.jsxs("div",{className:"max-w-2xl mx-auto bg-cyan-50 py-8 px-6 rounded-xl text-center mt-8",children:[o.jsx("h2",{className:"text-3xl font-semibold text-slate-800 mb-4",children:"Lingering questions?"}),o.jsx("p",{className:"text-lg text-slate-600 mb-6",children:"Schedule a free 15-minute call to explore your brain health options"}),o.jsx(Y,{className:"bg-brandBlue hover:bg-opacity-90 text-white font-medium py-3 px-6 text-lg rounded-lg",onClick:()=>window.open(es("https://calendly.com/wendy-pietri-betterbrain/new-meeting"),"_blank"),children:"Schedule now"})]})]}),l]}):o.jsxs("section",{className:"bg-white py-16 w-full overflow-x-hidden",children:[o.jsxs("div",{className:"container mx-auto px-4 md:px-6 max-w-full",children:[o.jsx("h2",{className:"text-3xl font-bold text-center mb-12 text-slate-800",children:"Stay ahead with the latest in dementia detection and prevention"}),o.jsx("div",{className:"w-full overflow-x-auto",children:o.jsx("div",{className:"min-w-full",children:o.jsx("div",{className:"bg-white rounded-lg shadow-xl overflow-hidden border",children:o.jsxs(rc,{children:[o.jsx(sc,{children:o.jsxs(bt,{className:"border-0",children:[o.jsx(Tn,{className:"w-2/5 py-8 border-r border-gray-200 min-w-0"}),o.jsx(Tn,{className:"w-3/10 bg-white text-center py-8 border-r border-gray-200 min-w-0",children:o.jsxs("div",{children:[o.jsxs("h3",{className:"text-xl font-bold mb-2 text-slate-800",children:["pTau BetterBrain",o.jsx("br",{}),"Check-up"]}),o.jsx("p",{className:"text-slate-600 text-xs italic",children:"Get pTau-217 testing + comprehensive brain health asse
224ssment and personalized prevention plan"})]})}),o.jsx(Tn,{className:"w-3/10 bg-white text-center py-8 min-w-0",children:o.jsxs("div",{children:[o.jsxs("h3",{className:"text-xl font-bold mb-2 text-slate-800",children:["Complete BetterBrain",o.jsx("br",{}),"Check-up"]}),o.jsx("p",{className:"text-slate-600 text-xs italic",children:"Everything included: pTau-217 + Alzheimers genetic test"})]})})]})}),o.jsxs(oc,{children:[ru.map((c,u)=>o.jsxs(bt,{className:"border-b hover:bg-gray-50/50 transition-colors",children:[o.jsx(Ne,{className:"py-6 border-r border-gray-200 min-w-0",children:o.jsx("div",{className:"flex items-start gap-2",children:o.jsxs("div",{className:"flex-1",children:[o.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[o.jsx("h4",{className:"font-semibold text-gray-900 text-base break-words",children:c.title}),c.modalType&&o.jsx("button",{className:"flex-shrink-0",onClick:()=>r(c.modalType),children:o.jsx(En,{className:"h-4 w-4 text-gray-400 cursor-pointer hover:text-gray-600 transition-colors"})})]}),o.jsx("p",{className:"text-sm text-gray-600 leading-relaxed break-words",children:c.subheader})]})})}),o.jsx(Ne,{className:"py-6 border-r border-gray-200 text-center min-w-0",children:i(c.leftColumn,c.addonPrice)}),o.jsx(Ne,{className:"py-6 text-center min-w-0",children:i(c.rightColumn,c.addonPrice)})]},u)),o.jsxs(bt,{className:"bg-gray-100",children:[o.jsx(Ne,{className:"py-6 border-r border-gray-200 min-w-0",children:o.jsx("div",{className:"text-center font-medium text-gray-700",children:"Traditional dementia clinics"})}),o.jsx(Ne,{className:"py-6 border-r border-gray-200 text-center font-medium line-through text-gray-600 min-w-0",colSpan:2,children:"$2,000 – $10,000"})]}),o.jsxs(bt,{className:"border-0",children:[o.jsx(Ne,{className:"py-6 bg-gray-50 border-r border-gray-200 min-w-0",children:o.jsx("div",{className:"text-center font-semibold text-gray-900 text-base",children:"BetterBrain price"})}),o.jsx(Ne,{className:"py-6 bg-gray-50 border-r border-gray-200 min-w-0",children:o.jsxs("div",{className:"flex flex-col items-center gap-2",children:[o.jsxs("div",{className:"flex justify-center gap-8 w-full",children:[o.jsxs("div",{className:"text-center",children:[o.jsx("p",{className:"text-sm text-slate-600",children:"With Insurance"}),o.jsx("p",{className:"text-2xl font-bold text-slate-800",children:"$388"})]}),o.jsxs("div",{className:"text-center",children:[o.jsx("p",{className:"text-sm text-slate-600",children:"Cash Pay"}),o.jsx("p",{className:"text-2xl font-bold text-slate-800",children:"$698"})]})]}),o.jsx(Y,{className:"w-full bg-brandBlue hover:bg-opacity-90 text-white font-medium py-2 px-4 rounded-lg coverage-started",onClick:()=>window.location.href=es("https://app.betterbrain.com/registration",{product:"ptau"}),children:"Check Coverage"})]})}),o.jsx(Ne,{className:"py-6 bg-gray-50 min-w-0",children:o.jsxs("div",{className:"flex flex-col items-center gap-2",children:[o.jsxs("div",{className:"flex justify-center gap-8 w-full",children:[o.jsxs("div",{className:"text-center",children:[o.jsx("p",{className:"text-sm text-slate-600",children:"With Insurance"}),o.jsx("p",{className:"text-2xl font-bold text-slate-800",children:"$537"})]}),o.jsxs("div",{className:"text-center",children:[o.jsx("p",{className:"text-sm text-slate-600",children:"Cash Pay"}),o.jsx("p",{className:"text-2xl font-bold text-slate-800",children:"$847"})]})]}),o.jsx(Y,{className:"w-full bg-brandBlue hover:bg-opacity-90 text-white font-medium py-2 px-4 rounded-lg coverage-started",onClick:()=>window.location.href=es("https://app.betterbrain.com/registration",{product:"ptau-apoe"}),children:"Check Coverage"})]})})]})]})]})})})}),o.jsxs("div",{className:"flex flex-wrap justify-center gap-6 mt-8",children:[o.jsxs("div",{className:"flex items-center",children:[o.jsx("div",{className:"w-5 h-5 rounded-full bg-green-100 flex items-center justify-center mr-2",children:o.jsx($,{size:12,className:"text-green-600"})}),o.jsx("span",{children:"Money-Back Guarantee"})]}),o.jsxs("div",{className:"flex items-center",children:[o.jsx("div",{className:"w-5 h-5 rounded-full bg-green-100 flex items-center justify-center mr-2",children:o.jsx($,{size:12,className:"text-green-600"})}),o.jsx("span",{children:"HSA/FSA Eligible"})]}),o.jsxs("div",{className:"flex items-center",children:[o.jsx("div",{className:"w-5 h-5 rounded-full bg-green-100 flex items-center justify-center mr-2",children:o.jsx($,{size:12,className:"text-green-600"})}),o.jsx("span",{children:"Buy now, pay later"})]})]}),o.jsxs("div",{className:"max-w-2xl mx-auto bg-cyan-50 py-10 px-8 rounded-xl text-center mt-10",children:[o.jsx("h2",{className:"text-4xl font-semibold text-slate-800 mb-4",children:"Lingering questions?"}),o.jsx("p",{className:"text-xl text-slate-600 mb-6",children:"Schedule a free 15-minute call to explore your brain health options"}),o.jsx(Y,{className:"bg-brandBlue hover:bg-opacity-90 text-white font-medium py-3 px-6 text-lg rounded-lg",onClick:()=>window.open(es("https://calendly.com/wendy-pietri-betterbrain/new-meeting"),"_blank"),children:"Schedule now"})]})]}),l]})},cA=()=>(p.useEffect(()=>{const e=document.createElement("script");return e.innerHTML=`
225      !function(t,e){var o,n,p,r;e.__SV||(window.posthog=e,e._i=[],e.init=function(i,s,a){function g(t,e){var o=e.split(".");2==o.length&&(t=t[o[0]],e=o[1]),t[e]=function(){t.push([e].concat(Array.prototype.slice.call(arguments,0)))}}(p=t.createElement("script")).type="text/javascript",p.crossOrigin="anonymous",p.async=!0,p.src=s.api_host.replace(".i.posthog.com","-assets.i.posthog.com")+"/static/array.js",(r=t.getElementsByTagName("script")[0]).parentNode.insertBefore(p,r);var u=e;for(void 0!==a?u=e[a]=[]:a="posthog",u.people=u.people||[],u.toString=function(t){var e="posthog";return"posthog"!==a&&(e+="."+a),t||(e+=" (stub)"),e},u.people.toString=function(){return u.toString(1)+".people (stub)"},o="init capture register register_once register_for_session unregister unregister_for_session getFeatureFlag getFeatureFlagPayload isFeatureEnabled reloadFeatureFlags updateEarlyAccessFeatureEnrollment getEarlyAccessFeatures on onFeatureFlags onSurveysLoaded onSessionId getSurveys getActiveMatchingSurveys render
225Survey canRenderSurvey identify setPersonProperties group resetGroups setPersonPropertiesForFlags resetPersonPropertiesForFlags setGroupPropertiesForFlags resetGroupPropertiesForFlags reset get_distinct_id getGroups get_session_id get_session_replay_url alias set_config startSessionRecording stopSessionRecording sessionRecordingStarted captureException loadToolbar get_property getSessionProperty createPersonProfile opt_in_capturing opt_out_capturing has_opted_in_capturing has_opted_out_capturing clear_opt_in_out_capturing debug getPageViewId captureTraceFeedback captureTraceMetric".split(" "),n=0;n<o.length;n++)g(u,o[n]);e._i.push([i,s,a])},e.__SV=1)}(document,window.posthog||[]);
226      posthog.init('phc_NxdU1YTyGyOdBhVpQra7I8hfCGjD58ZkSXQnLAyRNhG', {
227          api_host: 'https://us.i.posthog.com',
228          person_profiles: 'identified_only',
229      })
230    `,document.head.appendChild(e),()=>{document.head.removeChild(e)}},[]),o.jsxs("div",{className:"min-h-screen bg-cream w-full overflow-x-hidden",children:[o.jsxs(Qs,{children:[o.jsx("title",{children:"Prevention — BetterBrain pTau Testing"}),o.jsx("meta",{name:"description",content:"Discover how pTau-217 testing can help you prevent Alzheimer's through early detection and personalized brain health coaching."}),o.jsx("link",{rel:"canonical",href:"https://p-tau-lp.lovable.app/prevention"}),o.jsx("meta",{property:"og:title",content:"Prevention — BetterBrain pTau Testing"}),o.jsx("meta",{property:"og:description",content:"Discover how pTau-217 testing can help you prevent Alzheimer's through early detection and personalized brain health coaching."}),o.jsx("meta",{property:"og:url",content:"https://p-tau-lp.lovable.app/prevention"})]}),o.jsx(Yf,{}),o.jsxs("main",{className:"bg-cream w-full",children:[o.jsx(y0,{showInterpretBullet:!0}),o.jsx(T0,{}),o.jsx(k0,{}),o.jsx(Q0,{}),o.jsx("div",{id:"how-it-works",children:o.jsx(K0,{})}),o.jsx(X0,{}),o.jsx(J0,{}),o.jsx(dw,{}),o.jsx("div",{id:"pricing-comparison-table",className:"py-16",children:o.jsx(lA,{})}),o.jsx(hw,{}),o.jsx(q0,{}),o.jsx("div",{id:"science",children:o.jsx(kw,{})}),o.jsx(E0,{}),o.jsx(Aw,{}),o.jsx(Rw,{})]}),o.jsx(dh,{})]})),uA=()=>{const[e,t]=p.useState(!1),n=[{to:"#how-it-works",label:"How it works"},{to:"#future-detection",label:"Science"},{to:"#reviews",label:"Reviews"},{to:"#faq",label:"FAQ"}],r=i=>{t(!1),setTimeout(()=>{const a=document.getElementById(i.substring(1));a&&a.scrollIntoView({behavior:"smooth"})},100)},s=i=>{i.preventDefault(),pn(),t(!1),setTimeout(()=>{const a=document.getElementById("pricing-comparison-table");a&&a.scrollIntoView({behavior:"smooth"})},100)};return o.jsx("header",{className:"border-b border-brandBlue bg-brandBlue",children:o.jsxs("div",{className:"container mx-auto flex items-center justify-between py-4 px-1 md:px-2",children:[o.jsx("div",{className:"flex items-center pl-0 ml-0 my-auto",children:o.jsx(Us,{to:"/",className:"flex items-center",children:o.jsx("img",{src:"/lovable-uploads/8f5a292b-3fe9-4171-8a6b-060885cb0f7d.png",alt:"BetterBrain Logo",className:"h-10"})})}),o.jsxs("nav",{className:"hidden md:flex items-center space-x-8",children:[n.map(i=>o.jsx(Us,{to:i.to,className:"text-white hover:text-gray-200 my-auto",onClick:()=>r(i.to),children:i.label},i.to)),o.jsx(Y,{className:"bg-white hover:bg-gray-100 text-brandBlue my-auto flex items-center justify-center",children:o.jsx("a",{href:"#pricing-comparison-table",className:"w-full h-full font-bold flex items-center justify-center",onClick:s,children:"Start today"})})]}),o.jsx("div",{className:"md:hidden pr-0 ml-auto",children:o.jsxs(Wf,{open:e,onOpenChange:t,children:[o.jsx(Vf,{asChild:!0,children:o.jsx(Y,{variant:"ghost",className:"text-white bg-brandBlue hover:bg-opacity-90 font-medium py-3 px-6 text-lg rounded-lg",children:o.jsx("span",{className:"text-lg font-medium",children:"MENU"})})}),o.jsxs(Jl,{side:"right",className:"bg-cream w-full border-none p-0",children:[o.jsxs("div",{className:"bg-brandBlue p-6 flex justify-between items-center",children:[o.jsx("img",{src:"/lovable-uploads/8f5a292b-3fe9-4171-8a6b-060885cb0f7d.png",alt:"BetterBrain Logo",className:"h-10"}),o.jsx(Gf,{className:"rounded-full bg-white text-brandBlue h-10 w-10 flex items-center justify-center",children:o.jsx(ji,{className:"h-5 w-5"})})]}),o.jsxs("div",{className:"flex flex-col p-0",children:[n.map(i=>o.jsx("div",{className:"py-6 px-6 text-xl font-semibold text-center border-b border-gray-200 cursor-pointer hover:bg-gray-50 transition-colors",onClick:()=>r(i.to),children:i.label},i.to)),o.jsx("div",{className:"p-6 flex items-center justify-center",children:o.jsx(Y,{className:"w-full bg-brandBlue hover:bg-opacity-90 text-white font-medium py-3 px-6 text-lg rounded-lg flex items-center justify-center",onClick:s,children:"Start today"})})]})]})]})})]})})},dA=({showInterpretBullet:e=!1})=>{const t=()=>{pn();const n=document.getElementById("pricing-comparison-table");n&&n.scrollIntoView({behavior:"smooth"})};return o.jsx("section",{className:"bg-cream py-16",id:"hero",children:o.jsx("div",{className:"container mx-auto px-2 md:px-4 max-w-7xl",children:o.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8 items-center",children:[o.jsxs("div",{children:[o.jsx("h1",{className:"text-4xl md:text-5xl font-bold text-brandBlue mb-6",children:"Detect dementia early & start your prevention plan"}
230),o.jsx("p",{className:"text-gray-800 mb-6 font-opensans",children:"BetterBrain combines advanced pTau-217 blood testing, 50+ brain health biomarkers, and a 1-on-1 expert consultation to give you a personalized prevention plan."}),o.jsxs("ul",{className:"mb-8 space-y-4",children:[o.jsxs("li",{className:"flex items-center",children:[o.jsx(Sn,{className:"text-lightBlue mr-2 flex-shrink-0"}),o.jsx("span",{className:"text-gray-800",children:"Detect Alzheimer's up to 20 years before symptoms with pTau-217"})]}),o.jsxs("li",{className:"flex items-center",children:[o.jsx(Sn,{className:"text-lightBlue mr-2 flex-shrink-0"}),o.jsx("span",{className:"text-gray-800",children:"50+ brain health biomarkers"})]}),o.jsxs("li",{className:"flex items-center",children:[o.jsx(Sn,{className:"text-lightBlue mr-2 flex-shrink-0"}),o.jsx("span",{className:"text-gray-800",children:"1-on-1 expert consultation and personalized action plan"})]}),e&&o.jsxs("li",{className:"flex items-center",children:[o.jsx(Sn,{className:"text-lightBlue mr-2 flex-shrink-0"}),o.jsx("span",{className:"text-gray-800",children:"Interpret results with an expert, usually covered by insurance"})]})]}),o.jsx(Y,{className:"bg-brandBlue hover:bg-opacity-90 text-white font-medium py-3 px-6 text-lg rounded-lg",onClick:t,children:"Get tested today"})]}),o.jsx("div",{className:"hidden md:block",children:o.jsx("img",{src:"/lovable-uploads/6a5e0d0e-f430-4272-b7df-f94f7f52e632.png",alt:"BetterBrain dashboard showing health metrics",className:"w-full h-auto rounded-lg"})})]})})})},fA=()=>{const[e,t]=p.useState(),n=[{outlet:"The New York Times",headline:"A Blood Test Accurately Diagnosed Alzheimer's 90% of the Time, Study Finds",logo:"/lovable-uploads/80ab7ab2-7864-44e1-afb0-a3ca2b2d6089.png",bgColor:"bg-slate-800",textColor:"text-white",url:"https://www.nytimes.com/2024/07/28/health/alzheimers-blood-test.html?smid=nytcore-ios-share&referringSource=articleShare",fontClass:"font-serif"},{outlet:"JAMA",headline:"Performance of Plasma Phosphorylated Tau 217 for Alzheimer Disease vs Clinical CSF Tests",logo:"/lovable-uploads/110ce892-279e-496e-9213-873b5e28f881.png",bgColor:"bg-red-700",textColor:"text-white",url:"https://jamanetwork.com/journals/jama/fullarticle/2821669",fontClass:"font-serif"},{outlet:"CNN Health",headline:"Signs of Alzheimer's were everywhere - then his brain improved",logo:"/lovable-uploads/c3b9823c-a845-4e71-b2ff-a9b0a0da3387.png",bgColor:"bg-red-600",textColor:"text-white",url:"https://edition.cnn.com/2024/05/18/health/alzheimers-blood-brain-improvement-wellness/index.html",fontClass:"font-sans font-bold"},{outlet:"New England Journal of Medicine",headline:"Blood-based biomarkers for Alzheimer disease: A systematic review and meta-analysis",logo:"/lovable-uploads/723694ab-9044-4fd2-83d3-dfd1a6cc5374.png",bgColor:"bg-blue-900",textColor:"text-white",url:"https://www.nejm.org/doi/full/10.1056/NEJMoa2310168",fontClass:"font-serif"},{outlet:"MedPage Today",headline:"Blood tests for Alzheimer's disease show promise for early detection",logo:"/lovable-uploads/fd93ffd3-f459-4828-ab5f-4aa1403b4bb7.png",bgColor:"bg-teal-700",textColor:"text-white",url:"https://www.medpagetoday.com/meetingcoverage/aaic/111288#:~:text=PHILADELPHIA%20%2D%2D%20Blood%20tests%20for,of%20the%20condition%2C%20researchers%20said",fontClass:"font-sans"},{outlet:"Nature Medicine",headline:"Highly accurate blood test for Alzheimer's disease is similar or superior to clinical cerebrospinal fluid tests",logo:"/lovable-uploads/7b0a257f-f647-4d30-99ad-f07a3a45e741.png",bgColor:"bg-white",textColor:"text-gray-800",border:"border border-gray-200",url:"https://www.nature.com/articles/s41591-024-02869-z",fontClass:"font-serif"}];return o.jsx("section",{className:"bg-brandBlue py-8",children:o.jsxs("div",{className:"container mx-auto px-2",children:[o.jsxs("div",{className:"text-center mb-6",children:[o.jsx("h2",{className:"text-xl font-bold text-white mb-2",children:"The Blood Test that's Transforming the Future of Alzheimer's Detection"}),o.jsx("p",{className:"text-blue-100 text-sm",children:"See how pTau testing is changing lives – and drawing global headlines."})]}),o.jsxs("div",{className:"w-full relative",children:[o.jsxs(Ti,{opts:{align:"center",loop:!0,slidesToScroll:1},plugins:[],className:"w-full",setApi:t,children:[o.jsx("div",{className:"absolute left-0 top-0 bottom-0 w-6 bg-gradient-to-r from-brandBlue to-transparent pointer-events-none z-10"}),o.jsx("div",{className:"absolute right-0 top-0 bottom-0 w-6 bg-gradient-to-l from-brandBlue to-transparent pointer-events-none z-10"}),o.jsx(ki,{className:"-ml-1",children:n.map((r,s)=>o.jsx(Pi,{className:"pl-1 basis-[80%] md:basis-[70%] lg:basis-[60%]",children:o.jsx("a",{href:r.url,target:"_blank",rel:"noopener noreferrer",className:"block h-full",children:o.jsx("div",{className:"group bg-white rounded-lg overflow-hidden shadow-lg hover:shadow-xl transition-all duration-300 hover:scale-105 h-full",children:o.jsxs("div",{className:"p-4 flex items-center justify-between gap-4 h-[120px]",children:[o.jsxs("div",{className:"flex items-center gap-4 flex-1",children:[o.jsxs("div",{className:"flex-shrink-0",children:[o.jsx("img",{src:r.logo,alt:`${r.outlet} logo`,className:`${r.outlet.includes("New England")?"h-24":"h-16"} w-auto object-contain`,onError:i=>{i.currentTarget.style.display="none";const a=i.currentTarget.nextElementSibling;a&&(a.style.display="block")}}),o.jsx("span",{className:`${r.fontClass} font-bold text-lg hidden`,children:r.outlet.includes("New York")?"NYT":r.outlet.includes("CNN")?"CNN":r.outlet.includes("JAMA")?"JAMA":r.outlet.includes("NEJM")?"NEJM":r.outlet.includes("MedPage")?"MPT":r.outlet.includes("Nature")?"Nature":r.outlet})]}),o.jsx("div",{className:"flex-1",children:o.jsx("p",{className:"text-gray-800 text-sm font-medium leading-snug line-clamp-3",children:r.headline})})]}),o.jsx(Cf,{className:"w-4 h-4 opacity-70 group-hover:opacity-100 transition-opacity flex-shrink-0"})]})})})},s))})]}),o.jsxs("div",{className:"flex justify-center gap-4 mt-4",children:[o.jsx("button",{onClick:()=>{e&&e.canScrollPrev()&&e.scrollPrev()},className:"bg-white/20 backdrop-blur-sm hover:bg-white/30 text-white p-2 rounded-full transition-all duration-300",disabled:!e,children:o.jsx(Ll,{className:"w-6 h-6"})}),o.jsx("button",{onClick:()=>{e&&e.canScrollNext()&&e.scrollNext()},className:"bg-white/20 backdrop-blur-sm hover:bg-white/30 text-white p-2 rounded-full transition-all duration-300",disabled:!e,children:o.jsx(Il,{className:"w-6 h-6"})})]})]}),o.jsx("div",{className:"text-center mt-6",children:o.jsx("button",{className:"bg-white hover:bg-gray-50 text-brandBlue px-8 py-3 rounded-lg text-base font-semibold shadow-lg hover:shadow-xl transition-all duration-300 border-2 border-white hover:border-blue-100",onClick:()=>{const r=document.getElementById("pricing-comparison-table");r&&r.scrollIntoView({behavior:"smooth"})},children:"Get tested today"})})]})})},hA=()=>{const e=()=>{const t=document.getElementById("pricing-comparison-table");t&&t.scrollIntoView({behavior:"smooth"}),pn()};return o.jsx("section",{className:"bg-white py-16",children:o.jsx("div",{className:"container mx-auto px-2 md:px-4 max-w-7xl",children:o.jsxs("div",{id:"future-detection",className:"mt-8",children:[o.jsx("h2",{className:"text-2xl md:text-3xl font-semibold text-center mb-4 text-brandBlue",children:"pTau-217: The future of early dementia detection is here"}),o.jsx("p",{className:"text-lg text-gray-600 text-center mb-12",children:"Breakthrough detection, in a simple blood test"}),o.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8 items-center",children:[o.jsx("div",{children:o.jsxs("p",{className:"text-gray-700 mb-4 font-normal",children:[o.jsx("strong",{children:"Elevated blood levels of Tau proteins Ptau 181 and 217 are among the earliest warning signs of Alzheimer's"}),"—and are directly linked to the buildup of amyloid plaques in the brain. Ptau levels begin to rise as the brain starts accumulating amyloid plaques, often appearing up to 20 years before symptoms begin.",o.jsx("br",{}),o.jsx("br",{}),o.jsx("strong",{children:"Measuring Ptau provides a safe, simple way to detect amyloid plaque early"}),"—without the need for invasive procedures like PET scans or spinal taps. With a simple blood test, you can take control early—giving yourself more time to act, slow disease progression, and explore preventative programs."]})}),o.jsx("div",{className:"block",children:o.jsx("div",{className:"w-full rounded-lg overflow-hidden",children:o.jsx("img",{src:"/lovable-uploads/4e19a7c8-c545-45f6-b0b6-7ca46c4fbc0d.png",alt:"Dementia progression and early detection graph",className:"w-full h-auto object-contain"})})})]}),o.jsx("div",{className:"flex justify-center mt-8",children:o.jsx(Y,{className:"bg-brandBlue hover:bg-lightBlue text-white text-lg",onClick:e,children:"Get tested today"})})]})})})},Ow=()=>o.jsx("section",{className:"bg-brandBlue py-16",children:o.jsxs("div",{className:"container mx-auto px-4 max-w-4xl text-center",children:[o.jsxs("h2",{className:"font-playfair text-3xl md:text-5xl leading-tight",children:[o.jsx("span",{className:"block font-semibold text-white",children:"Nearly 1 in 2 dementia cases"}),o.jsx("span",{className:"block italic text-lightBlue mt-2",children:"can be prevented"})]}),o.jsx("p",{className:"mt-6 text-base md:text-lg text-white/90 max-w-2xl mx-auto leading-relaxed",children:"A 2024 Lancet Commission report found that 45% of dementia cases are potentially preventable by addressing modifiable risk factors."})]})}),pA=({children:e})=>o.jsxs("li",{className:"flex items-start gap-3",children:[o.jsx("span",{className:"mt-0.5 flex h-5 w-5 shrink-0 items-center justify-center rounded-full bg-lightBlue",children:o.jsx($,{className:"h-3 w-3 text-white",strokeWidth:3})}),o.jsx("span",{className:"text-sm text-gray-700 leading-snug",children:e})]}),da=({step:e,title:t,description:n,bullets:r,visual:s})=>o.jsxs("div",{className:"flex flex-col rounded-2xl overflow-hidden border border-darkCream bg-white shadow-sm",children:[o.jsx("div",{className:"bg-darkCream/60 p-6 flex items-center justify-center min-h-[200px]",children:s}),o.jsxs("div",{className:"p-6 flex flex-col gap-4 flex-1",children:[o.jsxs("p",{className:"text-xs font-semibold tracking-widest text-lightBlue uppercase",children:["Step ",e]}),o.jsx("h3",{className:"font-playfair text-2xl text-brandBlue",children:t}),o.jsx("p",{className:"text-gray-700 text-sm leading-relaxed",children:n}),o.jsx("ul",{className:"space-y-2 mt-auto pt-2",children:r.map((i,a)=>o.jsx(pA,{children:i},a))})]})]}),mA=()=>
230o.jsxs("div",{className:"w-full max-w-[200px] bg-white rounded-xl shadow-md p-4 border border-darkCream",children:[o.jsx("p",{className:"text-[10px] font-semibold tracking-widest text-lightBlue uppercase mb-3",children:"Your Assessment"}),o.jsxs("div",{className:"space-y-2 text-sm",children:[o.jsxs("div",{className:"flex justify-between",children:[o.jsx("span",{className:"text-gray-600",children:"Biomarkers"}),o.jsx("span",{className:"font-semibold text-brandBlue",children:"50+"})]}),o.jsxs("div",{className:"flex justify-between",children:[o.jsx("span",{className:"text-gray-600",children:"pTau-217"}),o.jsx("span",{className:"font-semibold text-brandBlue",children:"Included"})]}),o.jsxs("div",{className:"flex justify-between",children:[o.jsx("span",{className:"text-gray-600",children:"Cognitive test"}),o.jsx("span",{className:"font-semibold text-brandBlue",children:"15 min"})]})]})]}),gA=()=>o.jsxs("div",{className:"w-full max-w-[220px] bg-white rounded-xl shadow-md p-4 border border-darkCream flex items-center gap-3",children:[o.jsx("div",{className:"w-12 h-12 rounded-full bg-lightBlue flex items-center justify-center text-white font-semibold",children:"E"}),o.jsxs("div",{className:"flex-1",children:[o.jsx("p",{className:"font-semibold text-brandBlue text-sm",children:"Erika, RN"}),o.jsx("p",{className:"text-xs text-gray-600",children:"Brain Health Expert"}),o.jsx("span",{className:"inline-block mt-1 text-[10px] px-2 py-0.5 bg-veryLightBlue text-brandBlue rounded-full",children:"Wed · 90-min session"})]})]}),_w=({value:e,label:t})=>{const r=2*Math.PI*28,s=r-e/100*r;return o.jsxs("div",{className:"relative w-20 h-20",children:[o.jsxs("svg",{className:"w-full h-full -rotate-90",viewBox:"0 0 64 64",children:[o.jsx("circle",{cx:"32",cy:"32",r:28,stroke:"#EBEBE5",strokeWidth:"6",fill:"none"}),o.jsx("circle",{cx:"32",cy:"32",r:28,stroke:"#008CA1",strokeWidth:"6",fill:"none",strokeDasharray:r,strokeDashoffset:s,strokeLinecap:"round"})]}),o.jsx("div",{className:"absolute inset-0 flex items-center justify-center font-playfair text-xl text-brandBlue",children:e}),t&&o.jsx("p",{className:"text-[10px] text-center text-gray-600 mt-1",children:t})]})},xA=()=>o.jsxs("div",{className:"w-full max-w-[220px] bg-white rounded-xl shadow-md p-4 border border-darkCream",children:[o.jsxs("div",{className:"flex items-center gap-3",children:[o.jsx(_w,{value:90}),o.jsxs("div",{children:[o.jsx("p",{className:"text-xs font-semibold tracking-widest text-lightBlue uppercase",children:"Protocol Score"}),o.jsx("p",{className:"text-xs text-gray-600",children:"3 of 12 practices"})]})]}),o.jsxs("div",{className:"flex flex-wrap gap-1.5 mt-3",children:[o.jsx("span",{className:"text-[10px] px-2 py-1 bg-veryLightBlue text-brandBlue rounded-full",children:"Strength training"}),o.jsx("span",{className:"text-[10px] px-2 py-1 bg-veryLightBlue text-brandBlue rounded-full",children:"Methylated B"})]})]}),vA=()=>o.jsxs("div",{className:"w-full max-w-[200px] bg-white rounded-xl shadow-md p-4 border border-darkCream flex flex-col items-center",children:[o.jsx("p",{className:"text-[10px] font-semibold tracking-widest text-lightBlue uppercase mb-2",children:"Brain Score"}),o.jsx(_w,{value:82}),o.jsx("p",{className:"text-xs text-green-600 font-semibold mt-2",children:"↑ +8 in 90 days"})]}),yA=()=>o.jsx("section",{className:"bg-cream py-16",children:o.jsxs("div",{className:"container mx-auto px-2 md:px-4 max-w-7xl",children:[o.jsxs("div",{className:"text-center mb-12 max-w-3xl mx-auto",children:[o.jsx("p",{className:"text-xs font-semibold tracking-widest text-lightBlue uppercase mb-4",children:"How it works"}),o.jsxs("h2",{className:"font-playfair text-3xl md:text-5xl leading-tight",children:[o.jsx("span",{className:"font-semibold text-brandBlue",children:"Brain health,"})," ",o.jsx("span",{className:"italic text-lightBlue",children:"made personal"})]}),o.jsx("p",{className:"mt-6 text-base md:text-lg text-gray-700",children:"A comprehensive assessment, a personalized action plan, and a system that adapts as your biology changes."})]}),o.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6",children:[o.jsx(da,{step:"01",title:"Measure",description:"Get the brain-specific testing your annual physical doesn't cover.",bullets:["50+ brain health biomarkers at 2000+ Quest Locations or at-home","15-min validated cognitive test","Advanced pTau-217 blood test"],visual:o.jsx(mA,{})}),o.jsx(da,{step:"02",title:"Plan",description:"Meet 1-on-1 with a brain health expert who builds a plan that fits your biology and your life.",bullets:["Up to 90 min 1-on-1 coaching session","Personalized action plan, ranked by impact","Results explained in plain English"],visual:o.jsx(gA,{})}),o.jsx(da,{step:"03",title:"Act",description:"Everything you need to act on your plan, every day, in one place.",bullets:["Personalized practices, ranked by impact","Curated product marketplace","24/7 BeBe (AI) + SMS coach access"],visual:o.jsx(xA,{})}),o.jsx(da,{step:"04",title:"Improve",description:"As your biology changes, your plan evolves with you.",bullets:["Deep dive into practices with coaching and add-on testing","Retest your labs to track progress","Follow-up coaching ($0 with insurance*)"],visual:o.jsx(vA,{})})]}),o.jsx("div",{className:"mt-12 flex justify-center",children:o.jsx(Y,{className:"bg-brandBlue hover:bg-lightBlue text-white text-lg px-8",onClick:()=>{window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"coverage-started"}),window.location.href=rt("https://app.betterbrain.com/registration",{product:"ptau"})},children:"Check Coverage"})})]})}),wA=[{quote:"I finally have a sense of control and stopped feeling hopeless about my brain health.",name:"Sandra",since:"BetterBrain member since 2023"},{quote:"They had the answer to every crazy question I had and the science to back it up.",name:"Amy",since:"BetterBrain member since 2023"},{quote:"Within 3 months, I was able to completely change my bloodwork.",name:"Kim",since:"BetterBrain member since 2023"},{quote:"BetterBrain helped me cut through the noise and focus on what actually works.",name:"Connor",since:"BetterBrain member since 2023"},{quote:"BetterBrain exceeded our expectations—4X the information we were looking for. It changed so much in my life.",name:"Cara",since:"BetterBrain member since 2023"}],bA=({quote:e,name:t,since:n})=>o.jsxs("div",{className:"bg-white rounded-2xl shadow-md p-6 flex flex-col aspect-[3/4] h-full",children:[o.jsx("div",{className:"flex-grow flex items-center justify-center",children:o.jsxs("p",{className:"font-playfair italic text-lightBlue text-center text-lg md:text-xl leading-relaxed",children:['"',e,'"']})}),o.jsxs("div",{className:"mt-6 text-left",children:[o.jsx("p",{className:"font-semibold text-brandBlue",children:t}),o.jsx("p",{className:"text-sm text-gray-500",children:n})]})]}),Bw=()=>{const[e,t]=Ei({loop:!0,align:"start"}),n=P.useCallback(()=>t==null?void 0:t.scrollPrev(),[t]),r=P.useCallback(()=>t==null?void 0:t.scrollNext(),[t]);return o.jsx("section",{className:"bg-cream py-16",id:"reviews",children:o.jsxs("div",{className:"container mx-auto px-2 md:px-4 max-w-7xl",children:[o.jsxs("h2",{className:"font-playfair text-4xl md:text-5xl text-center mb-12 leading-tight",children:[o.jsx("span",{className:"font-semibold text-brandBlue",children:"Real clients"})," ",o.jsx("span",{className:"italic text-lightBlue",children:"real results"})]}),o.jsxs("div",{className:"relative",children:[o.jsx("div",{ref:e,className:"overflow-hidden",children:o.jsx("div",{className:"flex -ml-4",children:wA.map((s,i)=>o.jsx("div",{className:"min-w-0 shrink-0 grow-0 basis-[80%] sm:basis-1/2 md:basis-1/3 lg:basis-1/4 pl-4",children:o.jsx(bA,{...s})},i))})}),o.jsxs(Y,{variant:"outline",size:"icon",onClick:n,className:"absolute left-2 lg:-left-6 top-1/2 -translate-y-1/2 h-10 w-10 rounded-full bg-white border border-gray-200 text-brandBlue hover:bg-white shadow-md z-10",children:[o.jsx(Ll,{className:"h-5 w-5"}),o.jsx("span",{className:"sr-only",children:"Previous"})]}),o.jsxs(Y,{variant:"outline",size:"icon",onClick:r,className:"absolute right-2 lg:-right-6 top-1/2 -translate-y-1/2 h-10 w-10 rounded-full bg-white border border-gray-200 text-brandBlue hover:bg-white shadow-md z-10",children:[o.jsx(Il,{className:"h-5 w-5"}),o.jsx("span",{className:"sr-only",children:"Next"})]})]})]})})},jA=()=>{const e=Ai(),[t,n]=p.useState(null),r=()=>{window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"coverage-started"}),window.setTimeout(()=>{window.location.href=rt("https://app.betterbrain.com/registration",{product:"ptau"})},300)},s=[{title:"Brain Health Assessment",subheader:"50+ biomarker lab test (Labcorp or at-home) and a 15-minute digital cognitive test to assess brain health.",leftColumn:"check",rightColumn:"check",modalType:"bloodPanel"}
230,{title:"pTau-217 Testing",subheader:"The most advanced Alzheimer's test - detect pathology up to 20 years before symptoms appear.",leftColumn:"check",rightColumn:"check",modalType:"pTauTest"},{title:"Up to 90 min Expert Consultation",subheader:"One-on-one session with a dementia prevention specialist to review your results.",leftColumn:"check",rightColumn:"check",modalType:"consultation"},{title:"Personalized Brain Health Plan",subheader:"Science-backed plan across nutrition, exercise and more tailored to improve brain health and lower dementia risk.",leftColumn:"check",rightColumn:"check",modalType:"personalizedPlan"},{title:"Unlimited Expert Support",subheader:"Ongoing messaging support from a dedicated coach for expert guidance and accountability.",leftColumn:"check",rightColumn:"check",modalType:"expertSupport"},{title:"APOE4 Genetic Testing",subheader:"Know your genetic risk for Alzheimer's and get personalized prevention strategies based on your DNA.",leftColumn:"addon",rightColumn:"addon",addonPrice:"$149",modalType:"geneticTest"}],i=u=>{n(u)},a=()=>{n(null)},l=(u,f)=>u==="check"?o.jsx("div",{className:"flex justify-center",children:o.jsx("div",{className:"w-6 h-6 rounded-full bg-green-100 flex items-center justify-center",children:o.jsx($,{size:14,className:"text-green-600"})})}):o.jsxs("div",{className:"flex flex-col items-center gap-1",children:[o.jsxs("span",{className:"bg-amber-100 text-amber-800 px-3 py-1 rounded-full text-sm font-medium",children:["+",f]}),o.jsx("span",{className:"text-xs text-gray-500",children:"Optional add-on"})]}),c=(u,f)=>u==="check"?o.jsx("div",{className:"w-6 h-6 rounded-full bg-green-100 flex items-center justify-center",children:o.jsx($,{size:14,className:"text-green-600"})}):o.jsxs("div",{className:"flex flex-col items-end gap-1",children:[o.jsxs("span",{className:"bg-amber-100 text-amber-800 px-2 py-1 rounded-full text-xs font-medium",children:["+",f]}),o.jsx("span",{className:"text-[10px] text-gray-500",children:"Optional add-on"})]});return e?o.jsxs("section",{className:"bg-white py-16 w-full overflow-x-hidden",children:[o.jsxs("div",{className:"container mx-auto px-4 md:px-6 max-w-full",children:[o.jsxs("h2",{className:"font-playfair text-2xl md:text-3xl leading-tight text-center mb-8",children:[o.jsx("span",{className:"font-semibold text-brandBlue",children:"Stay ahead with the latest in"}),o.jsx("br",{}),o.jsx("span",{className:"italic text-lightBlue",children:"dementia detection and prevention"})]}),o.jsxs("div",{className:"mb-8 border rounded-lg overflow-hidden shadow-sm max-w-full",children:[o.jsxs("div",{className:"p-4 bg-gray-50 border-b",children:[o.jsx("h3",{className:"text-xl font-bold text-center text-slate-800",children:"pTau BetterBrain"}),o.jsx("p",{className:"text-center text-slate-800",children:"Blueprint"}),o.jsx("p",{className:"text-center text-slate-600 text-sm italic mt-1",children:"Get pTau-217 testing + comprehensive brain health assessment and personalized prevention plan"})]}),o.jsxs("div",{className:"p-4",children:[o.jsx("ul",{className:"space-y-4",children:s.map((u,f)=>o.jsxs("li",{className:"flex items-center justify-between",children:[o.jsxs("div",{className:"flex-1 min-w-0",children:[o.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[o.jsx("span",{className:"font-medium break-words",children:u.title}),u.modalType&&o.jsx("button",{className:"flex-shrink-0 w-5 h-5 rounded-full bg-gray-100 flex items-center justify-center",onClick:()=>i(u.modalType),children:o.jsx(En,{size:12,className:"text-gray-600"})})]}),o.jsx("p",{className:"text-sm text-gray-600 break-words leading-relaxed",children:u.subheader})]}),o.jsx("div",{className:"flex items-center flex-shrink-0 ml-3",children:c(u.leftColumn,u.addonPrice)})]},f))}),o.jsxs("div",{className:"mt-6 mb-4 p-3 bg-gray-100 rounded-lg",children:[o.jsx("p",{className:"font-medium text-gray-700",children:"Traditional dementia clinics"}),o.jsx("p",{className:"font-medium text-xl mt-1 text-center line-through text-gray-600",children:"$2,000 – $10,000"})]}),o.jsxs("div",{className:"pt-4",children:[o.jsx("div",{className:"mb-3",children:o.jsx("span",{className:"font-semibold text-gray-900",children:"BetterBrain price"})}),o.jsxs("div",{className:"grid grid-cols-2 gap-3 mb-2",children:[o.jsxs("div",{className:"text-center",children:[o.jsx("div",{className:"text-xs uppercase tracking-wide text-slate-600 mb-1",children:"With Insurance"}),o.jsx("div",{className:"font-bold text-2xl text-slate-800",children:"$388"})]}),o.jsxs("div",{className:"text-center",children:[o.jsx("div",{className:"text-xs uppercase tracking-wide text-slate-600 mb-1",children:"Cash Pay"}),o.jsx("div",{className:"font-bold text-2xl text-slate-800",children:"$698"})]})]}),o.jsx("div",{className:"flex flex-col gap-2",children:o.jsx(Y,{className:"w-full bg-brandBlue hover:bg-opacity-90 text-white font-medium py-3 px-6 text-base rounded-lg coverage-started check-coverage-button","data-button":"check-coverage",onClick:r,children:"Check Coverage"})})]})]})]}),o.jsxs("div",{className:"flex flex-wrap justify-center gap-4 mt-6",children:[o.jsxs("div",{className:"flex items-center",children:[o.jsx("div",{className:"w-5 h-5 rounded-full bg-green-100 flex items-center justify-center mr-2",children:o.jsx($,{size:12,className:"text-green-600"})}),o.jsx("span",{className:"text-sm",children:"Money-Back Guarantee"})]}),o.jsxs("div",{className:"flex items-center",children:[o.jsx("div",{className:"w-5 h-5 rounded-full bg-green-100 flex items-center justify-center mr-2",children:o.jsx($,{size:12,className:"text-green-600"})}),o.jsx("span",{className:"text-sm",children:"HSA/FSA Eligible"})]}),o.jsxs("div",{className:"flex items-center",children:[o.jsx("div",{className:"w-5 h-5 rounded-full bg-green-100 flex items-center justify-center mr-2",children:o.jsx($,{size:12,className:"text-green-600"})}),o.jsx("span",{className:"text-sm",children:"Buy now, pay later"})]})]}),o.jsxs("div",{className:"max-w-2xl mx-auto bg-cyan-50 py-8 px-6 rounded-xl text-center mt-8",children:[o.jsx("h2",{className:"text-3xl font-semibold text-slate-800 mb-4",children:"Lingering questions?"}),o.jsx("p",{className:"text-lg text-slate-600 mb-6",children:"Schedule a free 15-minute call to explore your brain health options"}),o.jsx(Y,{className:"bg-brandBlue hover:bg-opacity-90 text-white font-medium py-3 px-6 text-lg rounded-lg",onClick:()=>window.open(rt("https://calendly.com/wendy-pietri-betterbrain/new-meeting"),"_blank"),children:"Schedule now"})]})]}),o.jsx(ae,{isOpen:t==="bloodPanel",onClose:a,type:"bloodPanel"}),o.jsx(ae,{isOpen:t==="pTauTest",onClose:a,type:"pTauTest"}),o.jsx(ae,{isOpen:t==="consultation",onClose:a,type:"consultation"}),o.jsx(ae,{isOpen:t==="geneticTest",onClose:a,type:"geneticTest"}),o.jsx(ae,{isOpen:t==="personalizedPlan",onClose:a,type:"personalizedPlan"}),o.jsx(ae,{isOpen:t==="expertSupport",onClose:a,type:"expertSupport"})]}):o.jsxs("section",{className:"bg-white py-16 w-full overflow-x-hidden",children:[o.jsxs("div",{className:"container mx-auto px-4 md:px-6 max-w-full",children:[o.jsxs("h2",{className:"font-playfair text-3xl md:text-5xl leading-tight text-center mb-12",children:[o.jsx("span",{className:"font-semibold text-brandBlue",children:"Stay ahead with the latest in"}),o.jsx("br",{}),o.jsx("span",{className:"italic text-lightBlue",children:"dementia detection and prevention"})]}),o.jsx("div",{className:"w-full overflow-x-auto",children:o.jsx("div",{className:"max-w-3xl mx-auto",children:o.jsx("div",{className:"bg-white rounded-lg shadow-xl overflow-hidden border",children:o.jsxs(rc,{children:[o.jsx(sc,{children:o.jsxs(bt,{className:"border-0",children:[o.jsx(Tn,{className:"w-1/2 py-8 border-r border-gray-200 min-w-0"}),o.jsx(Tn,{className:"w-1/2 bg-white text-center py-8 min-w-0",children:o.jsxs("div",{children:[o.jsxs("h3",{className:"text-xl font-bold mb-2 text-slate-800",children:["pTau BetterBrain",o.jsx("br",{}),"Blueprint"]}),o.jsx("p",{className:"text-slate-600 text-xs italic",children:"Get pTau-217 testing + comprehensive brain health asse
230ssment and personalized prevention plan"})]})})]})}),o.jsxs(oc,{children:[s.map((u,f)=>o.jsxs(bt,{className:"border-b hover:bg-gray-50/50 transition-colors",children:[o.jsx(Ne,{className:"py-6 border-r border-gray-200 min-w-0",children:o.jsx("div",{className:"flex items-start gap-2",children:o.jsxs("div",{className:"flex-1",children:[o.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[o.jsx("h4",{className:"font-semibold text-gray-900 text-base break-words",children:u.title}),u.modalType&&o.jsx("button",{className:"flex-shrink-0",onClick:()=>i(u.modalType),children:o.jsx(En,{className:"h-4 w-4 text-gray-400 cursor-pointer hover:text-gray-600 transition-colors"})})]}),o.jsx("p",{className:"text-sm text-gray-600 leading-relaxed break-words",children:u.subheader})]})})}),o.jsx(Ne,{className:"py-6 text-center min-w-0",children:l(u.leftColumn,u.addonPrice)})]},f)),o.jsxs(bt,{className:"bg-gray-100",children:[o.jsx(Ne,{className:"py-6 border-r border-gray-200 min-w-0",children:o.jsx("div",{className:"text-center font-medium text-gray-700",children:"Traditional dementia clinics"})}),o.jsx(Ne,{className:"py-6 text-center font-medium line-through text-gray-600 min-w-0",children:"$2,000 – $10,000"})]}),o.jsxs(bt,{className:"border-0",children:[o.jsx(Ne,{className:"py-6 bg-gray-50 border-r border-gray-200 min-w-0",children:o.jsx("div",{className:"text-center font-semibold text-gray-900 text-base",children:"BetterBrain price"})}),o.jsx(Ne,{className:"py-6 bg-gray-50 min-w-0",children:o.jsxs("div",{className:"flex flex-col items-stretch gap-3 px-4",children:[o.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[o.jsxs("div",{className:"text-center",children:[o.jsx("div",{className:"text-xs uppercase tracking-wide text-slate-600 mb-1",children:"With Insurance"}),o.jsx("div",{className:"text-2xl font-bold text-slate-800",children:"$388"})]}),o.jsxs("div",{className:"text-center",children:[o.jsx("div",{className:"text-xs uppercase tracking-wide text-slate-600 mb-1",children:"Cash Pay"}),o.jsx("div",{className:"text-2xl font-bold text-slate-800",children:"$698"})]})]}),o.jsx("div",{className:"flex flex-col gap-2",children:o.jsx(Y,{className:"w-full bg-brandBlue hover:bg-opacity-90 text-white font-medium py-3 px-6 text-base rounded-lg coverage-started check-coverage-button","data-button":"check-coverage",onClick:r,children:"Check Coverage"})})]})})]})]})]})})})}),o.jsxs("div",{className:"flex flex-wrap justify-center gap-6 mt-8",children:[o.jsxs("div",{className:"flex items-center",children:[o.jsx("div",{className:"w-5 h-5 rounded-full bg-green-100 flex items-center justify-center mr-2",children:o.jsx($,{size:12,className:"text-green-600"})}),o.jsx("span",{children:"Money-Back Guarantee"})]}),o.jsxs("div",{className:"flex items-center",children:[o.jsx("div",{className:"w-5 h-5 rounded-full bg-green-100 flex items-center justify-center mr-2",children:o.jsx($,{size:12,className:"text-green-600"})}),o.jsx("span",{children:"HSA/FSA Eligible"})]}),o.jsxs("div",{className:"flex items-center",children:[o.jsx("div",{className:"w-5 h-5 rounded-full bg-green-100 flex items-center justify-center mr-2",children:o.jsx($,{size:12,className:"text-green-600"})}),o.jsx("span",{children:"Buy now, pay later"})]})]}),o.jsxs("div",{className:"max-w-2xl mx-auto bg-cyan-50 py-10 px-8 rounded-xl text-center mt-10",children:[o.jsx("h2",{className:"text-4xl font-semibold text-slate-800 mb-4",children:"Lingering questions?"}),o.jsx("p",{className:"text-xl text-slate-600 mb-6",children:"Schedule a free 15-minute call to explore your brain health options"}),o.jsx(Y,{className:"bg-brandBlue hover:bg-opacity-90 text-white font-medium py-3 px-6 text-lg rounded-lg",onClick:()=>window.open(rt("https://calendly.com/wendy-pietri-betterbrain/new-meeting"),"_blank"),children:"Schedule now"})]})]}),o.jsx(ae,{isOpen:t==="bloodPanel",onClose:a,type:"bloodPanel"}),o.jsx(ae,{isOpen:t==="pTauTest",onClose:a,type:"pTauTest"}),o.jsx(ae,{isOpen:t==="consultation",onClose:a,type:"consultation"}),o.jsx(ae,{isOpen:t==="geneticTest",onClose:a,type:"geneticTest"}),o.jsx(ae,{isOpen:t==="personalizedPlan",onClose:a,type:"personalizedPlan"}),o.jsx(ae,{isOpen:t==="expertSupport",onClose:a,type:"expertSupport"})]})},Mw=()=>o.jsx("section",{className:"bg-brandBlue pt-8 pb-16 text-white",children:o.jsxs("div",{className:"container mx-auto px-2 max-w-4xl",children:[o.jsx("h2",{className:"text-3xl font-bold text-center mb-10 text-white",children:"Why don't we offer standalone pTau testing?"}),o.jsx("p",{className:"text-center mb-6",children:"We believe that providing pTau testing without proper support and guidance is ethically problematic. Learning about your dementia risk can be emotionally challenging, and we want to ensure you have the resources and context needed to process this information."}),o.jsx("p",{className:"text-center",children:`Our comprehensive program offers not just testing, but also personalized prevention strategies, expert consultation, and ongoing support — giving you both clarity about your risk factors and actionable steps to improve your brain health. This integrated approach ensures you're never left wondering "what's next?" after receiving your results.`})]})}),NA="/assets/oxford-CcTGKkwY.png",SA="/assets/cambridge-DAsG-6yA.png",CA="/assets/penn-BE-k6cLS.png",EA="/assets/ucsf-BqBzxABe.png",TA="/assets/tennessee-Cfpg3vdr.png",kA="/assets/uams-CNY5JGu6.png",PA="/assets/stanford-CG5nyHTS.png",Tm=[{name:"Tommy Wood",credentials:"MD, PhD",subtitle:"Chief Science Officer, BetterBrain",imageUrl:"/lovable-uploads/91cdfdd8-1cf1-4aa7-9897-8c9b49d40fc7.png",institutions:[{name:"Oxford",logo:NA},{name:"Cambridge",logo:SA}],bio:o.jsxs(o.Fragment,{children:["Dr. Tommy Wood is a world-leading brain health researcher and author of"," ",o.jsx("a",{href:"https://thestimulatedmind.betterbrain.com/",target:"_blank",rel:"noopener noreferrer",className:"text-lightBlue italic underline",children:"The Stimulated Mind"})," ","(in stores March 2026). He serves as Associate Professor of Neuroscience and Pediatrics at the University of Washington, where his laboratory focuses on brain health across the lifespan. Tommy earned degrees from Cambridge (Biochemistry), Oxford (Medicine), and Oslo (PhD in Physiology and Neuroscience). Beyond his academic work, Tommy has spent over a decade as a performance consultant for professional athletes, including Olympians, world champions, and Formula 1 drivers. His book introduces the 3-S Model (Stimulus, Support, and Supply), a framework for what the brain needs to thrive at any age."]})},{name:"Craig Tanio",credentials:"MD, FACP",imageUrl:"/lovable-uploads/bec2435b-ce10-4216-a484-e89d0889543b.png",institutions:[{name:"Penn",logo:CA},{name:"UCSF",logo:EA}],bio:o.jsx(o.Fragment,{children:"Dr. Tanio is trained in internal medicine, brain health, longevity, and precision medicine. As co-founder of Rezilir Health, he leads a clinical team treating complex chronic conditions such as cognitive decline, neurodegenerative disorders, Long Covid, autoimmune diseases, ME/CFS, and environmentally acquired illnesses. His approach emp
230hasizes identifying root causes and providing practical, evidence-based care, drawing from multiple medical disciplines and aligning with patients' values and preferences. He holds a BA in Political Science from UCLA, an M.D. from UCSF, and an MBA from the Wharton School. He completed his residency and fellowship at the University of Pennsylvania, where he served as Chief Medical Resident and was a Robert Wood Johnson Clinical Scholar. Dr. Tanio is board certified in internal and functional medicine and has trained in several functional protocols. He is a co-investigator in the Evanthea Research Study, which explores reversing cognitive decline through precision medicine, and leads studies on real-world outcomes for patients with cognitive decline and ME/CFS. His leadership roles have included serving as Chief Medical Officer of ChenMed, a multi-state group practice for Medicare Advantage patients, a Partner at McKinsey & Company and Chairman of the Maryland Health Care Commission. He is also on the faculty at Johns Hopkins and Nova Southeastern University and is a member of the Alpha Omega Alpha Medical Honor Society."})},{name:"Jay Saenz",credentials:"MD",imageUrl:"/lovable-uploads/6ef15270-4de7-44b0-aec4-29a5c318a750.png",institutions:[{name:"University of Tennessee",logo:TA},{name:"UAMS",logo:kA}],bio:o.jsx(o.Fragment,{children:"Jay Saenz, MD, is a board-certified orthopedic surgeon and healthcare entrepreneur with over 19 years of experience in private practice. He is the Founder and President of Aethos Partners, a company dedicated to enhancing patient recovery through the integration of high-quality, innovative products into medical practices. Aethos Partners specializes in creating customized e-commerce platforms that align with the specific needs of individual practices. His company, Aethos Partners, formerly engaged in a joint venture with Obento Health, a Y Combinator-backed startup specializing in digital marketing and patient education. He now continues to contribute to Obento Health as an advisor. Additionally, his expertise has been pivotal in driving business development at OrthoSouth, where he has played a key role in establishing strategic partnerships and elevating the quality of orthopedic care in local hospitals. Dr. Saenz holds a Bachelor of Arts in Microbiology from the University of Arkansas and earned his Doctor of Medicine from the University of Arkansas for Medical Sciences. He completed his residency in Orthopedic Surgery at the University of Tennessee-Campbell Clinic and has been practicing in Memphis, TN, since 2005."})},{name:"Ben Rein",credentials:"PhD",imageUrl:"/lovable-uploads/32700a1c-8e04-4391-968d-89238d3dd38b.png",institutions:[{name:"Stanford",logo:PA}],bio:o.jsx(o.Fragment,{children:"Dr. Ben Rein is a neuroscientist and science educator whose research focuses on the neurobiology of social interactions. He has published over 20 scientific papers about the neuroscience of empathy, the genetic basis of autism, and how brain cell communication regulates social interactions. His research has received awards from the NIH, Society for Neuroscience, and Sigma Xi. Outside the lab, Ben creates educational videos on research, neuroscience basics, and debunks misinformation for his audience of >1 million followers. His videos have received over 60 million views, been featured on major media outlets (ABC News, Good Morning America), and have won awards from the National Academies of Science, AAAS, Society for Neuroscience, and Stanford. Ben serves as Chief Science Officer of the Mind Science Foundation and is an Adjunct Lecturer at Stanford. He has been a scientific consultant for over 35 companies and foundations. He is also a contributing editor at OpenMind Magazine and the Founder of the Aspiring Scientists Coalition, an organization providing free guidance for students in 75+ countries."})}],AA=({advisor:e,onOpen:t})=>o.jsxs("div",{className:"relative w-full aspect-[3/4] rounded-2xl overflow-hidden cursor-pointer group shadow-lg",onClick:t,children:[o.jsx("img",{src:e.imageUrl,alt:`${e.name}, ${e.credentials}`,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"}),o.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/80 via-black/20 to-transparent"}),o.jsxs("div",{className:"absolute bottom-0 left-0 right-0 p-4 text-white",children:[o.jsxs("h3",{className:"font-bold text-lg leading-tight text-white",children:[e.name,", ",e.credentials]}),e.subtitle&&o.jsx("p",{className:"text-xs text-white/90 mt-1",children:e.subt
230itle}),o.jsx("button",{onClick:n=>{n.stopPropagation(),t()},className:"text-sm underline underline-offset-2 mt-1 hover:opacity-80",children:"Learn more"})]})]}),Lw=()=>{const[e,t]=p.useState(null),n=e!==null?Tm[e]:null;return o.jsxs("section",{className:"bg-brandBlue py-16 md:py-20",id:"science",children:[o.jsxs("div",{className:"container mx-auto px-4 md:px-8 max-w-7xl",children:[o.jsxs("div",{className:"max-w-4xl mx-auto text-center mb-12 text-white",children:[o.jsxs("h2",{className:"font-playfair text-3xl md:text-5xl leading-tight mb-4",children:[o.jsx("span",{className:"font-semibold text-white",children:"BetterBrain's"})," ",o.jsx("span",{className:"italic text-lightBlue",children:"clinical advisors"})]}),o.jsx("p",{className:"text-white/80 text-lg",children:"A cross-specialty panel of physicians and PhDs designs every part of BetterBrain, from the biomarkers we test to the protocols we recommend."})]}),o.jsxs("div",{className:"flex flex-wrap justify-center items-center gap-8 md:gap-12 max-w-4xl mx-auto mb-12 [&>img]:[filter:brightness(0)_invert(1)]",children:[o.jsx("img",{src:"/lovable-uploads/b903ac32-f89d-4c94-9f6c-0017f0c3079f.png",alt:"Stanford University",loading:"lazy",className:"h-16 md:h-20 object-contain opacity-90"}),o.jsx("img",{src:"/lovable-uploads/f78f1c68-4d15-498c-bc6a-ec0738ba69a4.png",alt:"University of Pennsylvania",loading:"lazy",className:"h-16 md:h-20 object-contain opacity-90"}),o.jsx("img",{src:"/lovable-uploads/69be4044-9bd0-4b07-8112-2d1fcbb9ba5b.png",alt:"American Heart Association",loading:"lazy",className:"h-16 md:h-20 object-contain opacity-90"}),o.jsx("img",{src:"/lovable-uploads/cf8a4cbf-5e15-4a6f-a6c3-5213fa1bff91.png",alt:"University of Cambridge",loading:"lazy",className:"h-16 md:h-20 object-contain opacity-90"})]}),o.jsx("div",{className:"px-8 md:px-12",children:o.jsxs(Ti,{opts:{align:"start",loop:!1},children:[o.jsx(ki,{className:"-ml-4",children:Tm.map((r,s)=>o.jsx(Pi,{className:"pl-4 basis-full sm:basis-1/2 lg:basis-1/3 xl:basis-1/4",children:o.jsx(AA,{advisor:r,onOpen:()=>t(s)})},r.name))}),o.jsx(S0,{className:"left-0 md:-left-4 bg-white text-brandBlue border-white hover:bg-white/90 hover:text-brandBlue h-10 w-10"}),o.jsx(C0,{className:"right-0 md:-right-4 bg-white text-brandBlue border-white hover:bg-white/90 hover:text-brandBlue h-10 w-10"})]})})]}),o.jsx(ic,{open:e!==null,onOpenChange:r=>!r&&t(null),children:o.jsx(Ri,{className:"max-w-2xl max-h-[90vh] bg-white rounded-2xl",children:n&&o.jsxs(o.Fragment,{children:[o.jsx(tt,{children:o.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 items-start",children:[o.jsx("img",{src:n.imageUrl,alt:n.name,className:"w-24 h-24 rounded-xl object-cover flex-shrink-0"}),o.jsxs("div",{className:"flex-1",children:[o.jsx("div",{className:"flex flex-wrap gap-2 mb-2",children:n.institutions.map(r=>o.jsx("img",{src:r.logo,alt:r.name,loading:"lazy",className:"h-14 md:h-16 w-auto object-contain [filter:brightness(0)]"},r.name))}),o.jsxs(nt,{className:"text-2xl font-playfair text-brandBlue text-left",children:[n.name,", ",n.credentials]}),n.subtitle&&o.jsx("p",{className:"text-sm text-gray-600 mt-1",children:n.subtitle})]})]})}),o.jsx(uh,{className:"max-h-[55vh] pr-4",children:o.jsx("p",{className:"text-gray-700 leading-relaxed whitespace-pre-line",children:n.bio})})]})})})]})},Iw=()=>{const e=[{question:"What is pTau-217?",answer:"pTau stands for phosphorylated tau. Tau is one of the proteins that accumulates in the brain in Alzheimer's patients. This blood test looks for a specific variety of that protein in your blood. The amount of pTau-217 in your blood is strongly associated with the progression of Alzheimer's in your brain, even before any symptoms show. That is why it is such a useful tool for prevention. It can give you a sense of how far along the disease you are, and most importantly, help you make an informed choice on what prevention strategies you want to take."},{question:"Why should I consider pTau-217 testing?",answer:"pTau-217 is the most accurate blood test available for detecting Alzheimer's-related changes in the brain, up to 20 years before symptoms appear. Unlike genetic testing, which tells you about risk, pTau-217 tells you what is actually happening in your brain right now. This makes it one of the most powerful tools for deciding how aggressively to invest in prevention. If you have a family history of Alzheimer's, carry the APOE4 gene, or simply want the most complete picture of your brain health, pTau-217 testing can help you and your brain health expert build a more precise plan."},{question:"Does having a positive result mean that I have Alzheimer's?",answer:"The short answer is no. A positive result means that you are very likely to have an elevated amount of amyloid pathology in your brain, which incurs a higher risk for developing cognitive symptoms. In order to diagnose Alzheimer's, you would need either an amyloid PET scan or a spinal tap which tests for amyloid, as well as a clinical exam performed by a neurologist. Getting a positive pTau-217 result does not definitively mean you will develop Alzheimer's symptoms. However, it does mean you are at increased risk and may influence the decisions you make surrounding how you approach your brain health."},{question:"Does having a negative result mean that I am cleared of Alzheimer's?",answer:"No. A negative result means you are below the threshold at which you would most likely receive a positive amyloid PET scan. This is good news because it suggests a lower likelihood of having Alzheimer's-related changes in the brain at the time of testing. Depending on the amount of pTau-217 detected, you may be exhibiting signs of pre-clinical Alzheimer's. Elevated pTau results suggest the brain is showing early signs of damage which eventually may accumulate to cause cognitive symptoms. By taking action before your symptoms show, you may be able to prevent or delay the onset of Alzheimer's."},{question:"Are there any reasons I should not take this test?",answer:"pTau-217 testing relates to Alzhe
230imer's, a serious disease without a cure. If you tend to feel anxious or have been diagnosed with anxiety or depression, you may have more emotional difficulty with these results. Before testing, consider: a positive result does not mean you will definitely develop Alzheimer's, a negative result does not guarantee you never will, and sharing your result could affect your ability to get certain types of insurance such as life or long-term care. If you decide to test, your results will include science-backed interventions and resources to help you take action."},{question:"What is the APOE gene?",answer:"APOE is a gene that affects how your brain handles cholesterol and clears amyloid plaques. Everyone has two copies of the APOE gene, creating combinations like 3/3, 3/4, or 4/4. Your combination affects your risk for Alzheimer's disease."},{question:"What do the APOE variants mean?",answer:"APOE2 is a protective variant associated with lower Alzheimer's risk. APOE3 is the most common variant, representing baseline risk. APOE4 is a higher risk variant that increases Alzheimer's likelihood. One copy of APOE4 means 2-3x higher risk. Two copies means 8-12x higher risk."},{question:"What can I do if I am an APOE4 carrier?",answer:"Key prevention strategies for APOE4 carriers include prioritizing heart-healthy fats, managing cholesterol, implementing anti-inflammatory lifestyle practices, optimizing sleep, and engaging in regular cognitive assessments. Your BetterBrain action plan will prioritize the strategies with the strongest evidence for your specific genotype."},{question:"What tests are included?",answer:"Blueprint includes 50+ blood biomarkers covering metabolic, cardiovascular, hormonal, inflammation, and nutrient markers, plus a digital cognitive assessment. pTau-217 testing is included with Blueprint on this page. APOE4 genetic testing is available as an optional add-on."},{question:"What is the coaching consultation?",answer:"You will be matched with a licensed brain health clinician for a session up to 90 minutes. Together, you will go through your results and build a personalized action plan based on your biology, lifestyle, and goals."},{question:"How can I schedule my test?",answer:"Testing requires a blood draw, which you can schedule at a Quest location near you (5,000+ locations available), a BioReference lab in NY, NJ, or RI, or at home where available for an additional $50. You can complete your cognitive assessment and health profile immediately after signing up."},{question:"How will my results be delivered to me?",answer:"Your results will be shared during your consultation with a brain health expert. After the session, you will have full access to your results and personalized action plan in the BetterBrain Portal."},{question:"How do you keep my health information safe?",answer:"BetterBrain uses HIPAA-compliant systems and restricts access to your results on a need-to-know basis. Only you, the ordering physician, and your brain health expert have access to your health data."},{question:"What is your cancellation policy?",answer:"Money-back guarantee on Blueprint. If you have purchased Blueprint and are not satisfied for any reason, we will issue a 100% refund. This includes refunds even if your bloodwork has already been drawn. Refunds typically take up to two weeks to process. Appointment cancellation: if you need to reschedule or cancel your 90-minute expert session, you can do so free of charge with at least 24 hours notice. Cancellations within 24 hours of your appointment are subject to a $75 fee, which helps protect our coaches' time."},{question:"Other questions?",answer:"Feel free to contact us at [email protected]"}];return o.jsx("section",{className:"bg-darkCream py-16",id:"faq",children:o.jsxs("div",{className:"container mx-auto px-2 md:px-4 max-w-7xl",children:[o.jsx("h2",{className:"text-2xl md:text-3xl font-semibold text-center mb-12 text-brandBlue",children:"FAQs"}),o.jsx("div",{className:"max-w-3xl mx-auto bg-white rounded-lg p-6",children:o.jsx(hl,{type:"single",collapsible:!0,className:"w-full",children:e.map((t,n)=>o.jsxs(ui,{value:`item-${n}`,children:[o.jsx(di,{className:"text-brandBlue font-medium text-left",children:t.question}),o.jsx(fi,{className:"text-gray-700 whitespace-pre-line text-left",children:t.answer})]},n))})})]})})},Dw=()=>{zf();const e=t=>{const n=document.getElementById(t);n&&n.scrollIntoView({behavior:"smooth"})};return o.jsx("footer",{className:"bg-brandBlue text-white py-12",children:o.jsxs("div",{className:"container mx-auto px-2",children:[o.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-8",children:[o.jsx("div",{className:"md:col-span-2",children:o.jsx("div",{className:"h-12 mb-4",children:o.jsx("img",{src:"/lovable-uploads/ec3d51e5-ec28-42a5-8f53-c302823ad845.png",alt:"BetterBrain Logo",className:"h-full w-auto object-contain max-w-[60%]",onError:t=>{const n=t.target;n.onerror=null,n.src="/placeholder.svg"}})})}),o.jsx("div",{className:"md:col-span-2",children:o.jsxs("ul",{className:"space-y-2 flex flex-col items-end",children:[o.jsx("li",{children:o.jsx("a",{href:"#how-it-works",className:"text-gray-300 hover:text-white transition-colors",onClick:t=>{t.preventDefault(),e("how-it-works")},children:"How it Works"})}),o.jsx("li",{children:o.jsx("a",{href:"#science",className:"text-gray-300 hover:text-white transition-colors",onClick:t=>{t.preventDefault(),e("science")},children:"Science"})}),o.jsx("li",{children:o.jsx("a",{href:"#reviews",className:"text-gray-300 hover:text-white transition-colors",onClick:t=>{t.preventDefault(),e("reviews")},children:"Reviews"})}),o.jsx("li",{children:o.jsx("a",{href:"#faq",className:"text-gray-300 hover:text-white transition-colors",onClick:t=>{t.preventDefault(),e("faq")},children:"FAQ"})})]})})]}),o.jsx("div",{className:"border-t border-gray-700 mt-8 pt-8",children:o.jsxs("div",{className:"flex flex-col md:flex-row justify-between items-center",children:[o.jsx("p",{className:"text-gray-400 text-sm mb-4 md:mb-0",children:"© 2025 BetterBrain Health Inc. All rights reserved."}),o.jsxs("div",{className:"flex flex-wrap justify-center space-x-4",children:[o.jsx("a",{href:"/terms",className:"text-gray-400 hover:text-white mb-2 transition-colors",children:"Terms"}),o.jsx("a",{href:"#",className:"text-gray-400 hover:text-white mb-2 transition-colors",children:"Privacy"})]})]})})]})})},zw=()=>
230{const e={title:"Check out BetterBrain!",text:"I found this amazing brain health service. Give it a look:",url:"https://www.betterbrain.health"};return p.useEffect(()=>{const t=document.getElementById("shareBtn"),n=async()=>{if(navigator.share)try{await navigator.share(e),console.log("Share was successful")}catch(r){console.error("Share failed:",r)}else alert("Sharing is not supported on this browser. Try copying the link instead.")};return t&&t.addEventListener("click",n),()=>{t&&t.removeEventListener("click",n)}},[]),o.jsx("section",{className:"py-12 bg-cream",children:o.jsxs("div",{className:"container mx-auto px-2 text-center",children:[o.jsx("h2",{className:"text-3xl font-bold mb-6",children:"Share BetterBrain"}),o.jsx("p",{className:"text-gray-700 mb-8 max-w-xl mx-auto",children:"Know someone who might benefit from early Alzheimer's detection and prevention? Share BetterBrain with them today."}),o.jsxs(Y,{id:"shareBtn",className:"bg-brandBlue hover:bg-brandBlue/90 text-white font-semibold py-3 px-6 rounded-md flex items-center mx-auto",children:[o.jsx(Mv,{className:"mr-2 h-5 w-5"}),"Share BetterBrain"]})]})})},RA=()=>(p.useEffect(()=>{const e=document.createElement("script");return e.innerHTML=`
231      !function(t,e){var o,n,p,r;e.__SV||(window.posthog=e,e._i=[],e.init=function(i,s,a){function g(t,e){var o=e.split(".");2==o.length&&(t=t[o[0]],e=o[1]),t[e]=function(){t.push([e].concat(Array.prototype.slice.call(arguments,0)))}}(p=t.createElement("script")).type="text/javascript",p.crossOrigin="anonymous",p.async=!0,p.src=s.api_host.replace(".i.posthog.com","-assets.i.posthog.com")+"/static/array.js",(r=t.getElementsByTagName("script")[0]).parentNode.insertBefore(p,r);var u=e;for(void 0!==a?u=e[a]=[]:a="posthog",u.people=u.people||[],u.toString=function(t){var e="posthog";return"posthog"!==a&&(e+="."+a),t||(e+=" (stub)"),e},u.people.toString=function(){return u.toString(1)+".people (stub)"},o="init capture register register_once register_for_session unregister unregister_for_session getFeatureFlag getFeatureFlagPayload isFeatureEnabled reloadFeatureFlags updateEarlyAccessFeatureEnrollment getEarlyAccessFeatures on onFeatureFlags onSurveysLoaded onSessionId getSurveys getActiveMatchingSurveys renderSurvey canRenderSurvey identify setPersonProperties group resetGroups setPersonPropertiesForFlags resetPersonPropertiesForFlags setGroupPropertiesForFlags resetGroupPropertiesForFlags reset get_distinct_id getGroups get_session_id get_session_replay_url alias set_config startSessionRecording stopSessionRecording sessionRecordingStarted captureException loadToolbar get_property getSessionProperty createPersonProfile opt_in_capturing opt_out_capturing has_opted_in_capturing has_opted_out_capturing clear_opt_in_out_capturing debug getPageViewId captureTraceFeedback captureTraceMetric".split(" "),n=0;n<o.length;n++)g(u,o[n]);e._i.push([i,s,a])},e.__SV=1)}(document,window.posthog||[]);
232      posthog.init('phc_NxdU1YTyGyOdBhVpQra7I8hfCGjD58ZkSXQnLAyRNhG', {
233          api_host: 'https://us.i.posthog.com',
234          person_profiles: 'identified_only',
235      })
236    `,document.head.appendChild(e),()=>{document.head.removeChild(e)}},[]),p.useEffect(()=>{const e=()=>{document.querySelectorAll('button, a, [role="button"]').forEach(n=>{var a,l;const r=(a=n.textContent)==null?void 0:a.trim().toLowerCase(),s=(l=n.getAttribute("data-button"))==null?void 0:l.toLowerCase();(r==="check coverage"||r==="check eligibility"||s==="check coverage"||s==="check-coverage")&&(n.classList.add("coverage-started"),n.setAttribute("data-button","check-coverage"))})};e();const t=new MutationObserver(e);return t.observe(document.body,{childList:!0,subtree:!0}),()=>t.disconnect()},[]),o.jsxs("div",{className:"min-h-screen bg-cream w-full overflow-x-hidden",children:[o.jsxs(Qs,{children:[o.jsx("title",{children:"Brain Health Optimization — BetterBrain"}),o.jsx("meta",{name:"description",content:"Learn how pTau testing can help you understand and manage your Alzheimer's risk with expert coaching."}),o.jsx("link",{rel:"canonical",href:"https://p-tau-lp.lovable.app/brain-health"}),o.jsx("meta",{property:"og:title",content:"Brain Health Optimization — BetterBrain"}),o.jsx("meta",{property:"og:description",content:"Learn how pTau testing can help you understand and manage your Alzheimer's risk with expert coaching."}),o.jsx("meta",{property:"og:url",content:"https://p-tau-lp.lovable.app/brain-health"})]}),o.jsx(uA,{}),o.jsxs("main",{className:"bg-cream w-full",children:[o.jsx(dA,{}),o.jsx(Ow,{}),o.jsx("div",{id:"how-it-works",children:o.jsx(yA,{})}),o.jsx(hA,{}),o.jsx("div",{id:"science",children:o.jsx(Lw,{})}),o.jsx(Bw,{}),o.jsx(fA,{}),o.jsx("div",{id:"pricing-comparison-table",className:"pt-16 pb-0",children:o.jsx(jA,{})}),o.jsx(Mw,{}),o.jsx(Iw,{}),o.jsx(zw,{})]}),o.jsx(Dw,{})]})),OA=()=>
236{const[e,t]=p.useState(!1),n=[{to:"#how-it-works",label:"How it works"},{to:"#future-detection",label:"Science"},{to:"#reviews",label:"Reviews"},{to:"#faq",label:"FAQ"}],r=i=>{t(!1),setTimeout(()=>{const a=document.getElementById(i.substring(1));a&&a.scrollIntoView({behavior:"smooth"})},100)},s=i=>{i.preventDefault(),pn(),t(!1),window.location.href=rt("https://app.betterbrain.com/registration",{product:"ptau"})};return o.jsx("header",{className:"border-b border-brandBlue bg-brandBlue",children:o.jsxs("div",{className:"container mx-auto flex items-center justify-between py-4 px-1 md:px-2",children:[o.jsx("div",{className:"flex items-center pl-0 ml-0 my-auto",children:o.jsx(Us,{to:"/",className:"flex items-center",children:o.jsx("img",{src:"/lovable-uploads/8f5a292b-3fe9-4171-8a6b-060885cb0f7d.png",alt:"BetterBrain Logo",className:"h-10"})})}),o.jsxs("nav",{className:"hidden md:flex items-center space-x-8",children:[n.map(i=>o.jsx(Us,{to:i.to,className:"text-white hover:text-gray-200 my-auto",onClick:()=>r(i.to),children:i.label},i.to)),o.jsx(Y,{className:"ptau-cta bg-white hover:bg-gray-100 text-brandBlue my-auto flex items-center justify-center",children:o.jsx("a",{href:"https://app.betterbrain.com/registration?product=ptau",className:"ptau-cta w-full h-full font-bold flex items-center justify-center",onClick:s,children:"Start today"})})]}),o.jsx("div",{className:"md:hidden pr-0 ml-auto",children:o.jsxs(Wf,{open:e,onOpenChange:t,children:[o.jsx(Vf,{asChild:!0,children:o.jsx(Y,{variant:"ghost",className:"text-white bg-brandBlue hover:bg-opacity-90 font-medium py-3 px-6 text-lg rounded-lg",children:o.jsx("span",{className:"text-lg font-medium",children:"MENU"})})}),o.jsxs(Jl,{side:"right",className:"bg-cream w-full border-none p-0",children:[o.jsxs("div",{className:"bg-brandBlue p-6 flex justify-between items-center",children:[o.jsx("img",{src:"/lovable-uploads/8f5a292b-3fe9-4171-8a6b-060885cb0f7d.png",alt:"BetterBrain Logo",className:"h-10"}),o.jsx(Gf,{className:"rounded-full bg-white text-brandBlue h-10 w-10 flex items-center justify-center",children:o.jsx(ji,{className:"h-5 w-5"})})]}),o.jsxs("div",{className:"flex flex-col p-0",children:[n.map(i=>o.jsx("div",{className:"py-6 px-6 text-xl font-semibold text-center border-b border-gray-200 cursor-pointer hover:bg-gray-50 transition-colors",onClick:()=>r(i.to),children:i.label},i.to)),o.jsx("div",{className:"p-6 flex items-center justify-center",children:o.jsx(Y,{className:"ptau-cta w-full bg-brandBlue hover:bg-opacity-90 text-white font-medium py-3 px-6 text-lg rounded-lg flex items-center justify-center",onClick:s,children:"Start today"})})]})]})]})})]})})},_A="/assets/avatar-1-D4Uoy2sF.png",BA="/assets/avatar-2-DZ9dlUfl.png",MA=()=>{const e=()=>{pn(),window.location.href=rt("https://app.betterbrain.com/registration",{product:"ptau"})};return o.jsx("section",{className:"bg-cream py-20 md:py-24",id:"hero",children:o.jsx("div",{className:"container mx-auto px-4 md:px-8 max-w-7xl",children:o.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-12 items-center",children:[o.jsxs("div",{children:[o.jsxs("div",{className:"inline-flex items-center gap-3 bg-white/70 border border-black/5 rounded-full pl-1 pr-5 py-1 mb-8 shadow-sm",children:[o.jsxs("div",{className:"flex -space-x-2",children:[o.jsx("img",{src:_A,alt:"",className:"w-8 h-8 rounded-full object-cover ring-2 ring-cream"}),o.jsx("img",{src:BA,alt:"",className:"w-8 h-8 rounded-full object-cover ring-2 ring-cream"})]}),o.jsx("span",{className:"text-sm font-semibold text-brandBlue font-opensans",children:"Join 22,460+ People Optimizing Brain Health"})]}),o.jsxs("h1",{className:"font-opensans font-bold text-brandBlue mb-6 tracking-tight text-4xl md:text-6xl leading-[1.05]",children:["Detect dementia early & start your"," ",o.jsx("span",{className:"font-playfair italic font-normal text-lightBlue",children:"prevention plan."})]}),o.jsxs("p",{className:"text-gray-700 mb-8 font-opensans text-lg leading-relaxed max-w-xl",children:["Advanced pTau-217 blood testing, 50+ brain biomarkers, and an up-to-90-minute consultation with a Brain Health Coach who turns your results into a personalized prevention plan. ",o.jsx("span",{className:"font-bold",children:"$388 with insurance."})]}),o.jsx(Y,{className:"ptau-cta bg-lightBlue hover:bg-lightBlue/90 text-white font-semibold py-6 px-8 text-base rounded-lg",onClick:e,children:"Get tested today"})]}),o.jsx("div",{className:"hidden md:block",children:o.jsx("img",{src:"/lovable-uploads/6a5e0d0e-f430-4272-b7df-f94f7f52e632.png",alt:"BetterBrain dashboard showing health metrics",className:"w-full h-auto rounded-lg"})})]})})})},LA=()=>{const[e,t]=p.useState(),n=[{outlet:"The New York Times",headline:"A Blood Test Accurately Diagnosed Alzhe
236imer's 90% of the Time, Study Finds",logo:"/lovable-uploads/80ab7ab2-7864-44e1-afb0-a3ca2b2d6089.png",bgColor:"bg-slate-800",textColor:"text-white",url:"https://www.nytimes.com/2024/07/28/health/alzheimers-blood-test.html?smid=nytcore-ios-share&referringSource=articleShare",fontClass:"font-serif"},{outlet:"JAMA",headline:"Performance of Plasma Phosphorylated Tau 217 for Alzheimer Disease vs Clinical CSF Tests",logo:"/lovable-uploads/110ce892-279e-496e-9213-873b5e28f881.png",bgColor:"bg-red-700",textColor:"text-white",url:"https://jamanetwork.com/journals/jama/fullarticle/2821669",fontClass:"font-serif"},{outlet:"CNN Health",headline:"Signs of Alzheimer's were everywhere - then his brain improved",logo:"/lovable-uploads/c3b9823c-a845-4e71-b2ff-a9b0a0da3387.png",bgColor:"bg-red-600",textColor:"text-white",url:"https://edition.cnn.com/2024/05/18/health/alzheimers-blood-brain-improvement-wellness/index.html",fontClass:"font-sans font-bold"},{outlet:"New England Journal of Medicine",headline:"Blood-based biomarkers for Alzheimer disease: A systematic review and meta-analysis",logo:"/lovable-uploads/723694ab-9044-4fd2-83d3-dfd1a6cc5374.png",bgColor:"bg-blue-900",textColor:"text-white",url:"https://www.nejm.org/doi/full/10.1056/NEJMoa2310168",fontClass:"font-serif"},{outlet:"MedPage Today",headline:"Blood tests for Alzheimer's disease show promise for early detection",logo:"/lovable-uploads/fd93ffd3-f459-4828-ab5f-4aa1403b4bb7.png",bgColor:"bg-teal-700",textColor:"text-white",url:"https://www.medpagetoday.com/meetingcoverage/aaic/111288#:~:text=PHILADELPHIA%20%2D%2D%20Blood%20tests%20for,of%20the%20condition%2C%20researchers%20said",fontClass:"font-sans"},{outlet:"Nature Medicine",headline:"Highly accurate blood test for Alzheimer's disease is similar or superior to clinical cerebrospinal fluid tests",logo:"/lovable-uploads/7b0a257f-f647-4d30-99ad-f07a3a45e741.png",bgColor:"bg-white",textColor:"text-gray-800",border:"border border-gray-200",url:"https://www.nature.com/articles/s41591-024-02869-z",fontClass:"font-serif"}];return o.jsx("section",{className:"bg-brandBlue py-8",children:o.jsxs("div",{className:"container mx-auto px-2",children:[o.jsxs("div",{className:"text-center mb-6",children:[o.jsx("h2",{className:"text-xl font-bold text-white mb-2",children:"The Blood Test that's Transforming the Future of Alzheimer's Detection"}),o.jsx("p",{className:"text-blue-100 text-sm",children:"See how pTau testing is changing lives – and drawing global headlines."})]}),o.jsxs("div",{className:"w-full relative",children:[o.jsxs(Ti,{opts:{align:"center",loop:!0,slidesToScroll:1},plugins:[],className:"w-full",setApi:t,children:[o.jsx("div",{className:"absolute left-0 top-0 bottom-0 w-6 bg-gradient-to-r from-brandBlue to-transparent pointer-events-none z-10"}),o.jsx("div",{className:"absolute right-0 top-0 bottom-0 w-6 bg-gradient-to-l from-brandBlue to-transparent pointer-events-none z-10"}),o.jsx(ki,{className:"-ml-1",children:n.map((r,s)=>o.jsx(Pi,{className:"pl-1 basis-[80%] md:basis-[70%] lg:basis-[60%]",children:o.jsx("a",{href:r.url,target:"_blank",rel:"noopener noreferrer",className:"block h-full",children:o.jsx("div",{className:"group bg-white rounded-lg overflow-hidden shadow-lg hover:shadow-xl transition-all duration-300 hover:scale-105 h-full",children:o.jsxs("div",{className:"p-4 flex items-center justify-between gap-4 h-[120px]",children:[o.jsxs("div",{className:"flex items-center gap-4 flex-1",children:[o.jsxs("div",{className:"flex-shrink-0",children:[o.jsx("img",{src:r.logo,alt:`${r.outlet} logo`,className:`${r.outlet.includes("New England")?"h-24":"h-16"} w-auto object-contain`,onError:i=>{i.currentTarget.style.display="none";const a=i.currentTarget.nextElementSibling;a&&(a.style.display="block")}}),o.jsx("span",{className:`${r.fontClass} font-bold text-lg hidden`,children:r.outlet.includes("New York")?"NYT":r.outlet.includes("CNN")?"CNN":r.outlet.includes("JAMA")?"JAMA":r.outlet.includes("NEJM")?"NEJM":r.outlet.includes("MedPage")?"MPT":r.outlet.includes("Nature")?"Nature":r.outlet})]}),o.jsx("div",{className:"flex-1",children:o.jsx("p",{className:"text-gray-800 text-sm font-medium leading-snug line-clamp-3",children:r.headline})})]}),o.jsx(Cf,{className:"w-4 h-4 opacity-70 group-hover:opacity-100 transition-opacity flex-shrink-0"})]})})})},s))})]}),o.jsxs("div",{className:"flex justify-center gap-4 mt-4",children:[o.jsx("button",{onClick:()=>{e&&e.canScrollPrev()&&e.scrollPrev()},className:"bg-white/20 backdrop-blur-sm hover:bg-white/30 text-white p-2 rounded-full transition-all duration-300",disabled:!e,children:o.jsx(Ll,{className:"w-6 h-6"})}),o.jsx("button",{onClick:()=>{e&&e.canScrollNext()&&e.scrollNext()},className:"bg-white/20 backdrop-blur-sm hover:bg-white/30 text-white p-2 rounded-full transition-all duration-300",disabled:!e,children:o.jsx(Il,{className:"w-6 h-6"})})]})]}),o.jsx("div",{className:"text-center mt-6",children:o.jsx("button",{className:"ptau-cta bg-white hover:bg-gray-50 text-brandBlue px-8 py-3 rounded-lg text-base font-semibold shadow-lg hover:shadow-xl transition-all duration-300 border-2 border-white hover:border-blue-100",onClick:()=>{const r=document.getElementById("pricing-comparison-table");r&&r.scrollIntoView({behavior:"smooth"})},children:"Get tested today"})})]})})},IA=()=>{const e=()=>{const t=document.getElementById("pricing-comparison-table");t&&t.scrollIntoView({behavior:"smooth"}),pn()};return o.jsx("section",{className:"bg-white py-16",children:o.jsx("div",{className:"container mx-auto px-2 md:px-4 max-w-7xl",children:o.jsxs("div",{id:"future-detection",className:"mt-8",children:[o.jsx("h2",{className:"text-2xl md:text-3xl font-semibold text-center mb-4 text-brandBlue",children:"pTau-217: The future of early dementia detection is here"}),o.jsx("p",{className:"text-lg text-gray-600 text-center mb-12",children:"Breakthrough detection, in a simple blood test"}),o.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8 items-center",children:[o.jsx("div",{children:o.jsxs("p",{className:"text-gray-700 mb-4 font-normal",children:[o.jsx("strong",{children:"Elevated blood levels of Tau proteins Ptau 181 and 217 are among the earliest warning signs of Alzheimer's"}),"—and are directly linked to the buildup of amyloid plaques in the brain. Ptau levels begin to rise as the brain starts accumulating amyloid plaques, often appearing up to 20 years before symptoms begin.",o.jsx("br",{}),o.jsx("br",{}),o.jsx("strong",{children:"Measuring Ptau provides a safe, simple way to detect amyloid plaque early"}),"—without the need for invasive procedures like PET scans or spinal taps. With a simple blood test, you can take control early—giving yourself more time to act, slow disease progression, and explore preventative programs."]})}),o.jsx("div",{className:"block",children:o.jsx("div",{className:"w-full rounded-lg overflow-hidden",children:o.jsx("img",{src:"/lovable-uploads/4e19a7c8-c545-45f6-b0b6-7ca46c4fbc0d.png",alt:"Dementia progression and early detection graph",className:"w-full h-auto object-contain"})})})]}),o.jsx("div",{className:"flex justify-center mt-8",children:o.jsx(Y,{className:"ptau-cta bg-brandBlue hover:bg-lightBlue text-white text-lg",onClick:e,children:"Get tested today"})})]})})})},DA=({children:e})=>o.jsxs("li",{className:"flex items-start gap-3",children:[o.jsx("span",{className:"mt-0.5 flex h-5 w-5 shrink-0 items-center justify-center rounded-full bg-lightBlue",children:o.jsx($,{className:"h-3 w-3 text-white",strokeWidth:3})}),o.jsx("span",{className:"text-sm text-gray-700 leading-snug",children:e})]}),fa=({step:e,title:t,description:n,bullets:r,visual:s})=>o.jsxs("div",{className:"flex flex-col rounded-2xl overflow-hidden border border-darkCream bg-white shadow-sm",children:[o.jsx("div",{className:"bg-darkCream/60 p-6 flex items-center justify-center min-h-[200px]",children:s}),o.jsxs("div",{className:"p-6 flex flex-col gap-4 flex-1",children:[o.jsxs("p",{className:"text-xs font-semibold tracking-widest text-lightBlue uppercase",children:["Step ",e]}),o.jsx("h3",{className:"font-playfair text-2xl text-brandBlue",children:t}),o.jsx("p",{className:"text-gray-700 text-sm leading-relaxed",children:n}),o.jsx("ul",{className:"space-y-2 mt-auto pt-2",children:r.map((i,a)=>o.jsx(DA,{children:i},a))})]})]}),zA=()=>o.jsxs("div",{className:"w-full max-w-[200px] bg-white rounded-xl shadow-md p-4 border border-darkCream",children:[o.jsx("p",{className:"text-[10px] font-semibold tracking-widest text-lightBlue uppercase mb-3",children:"Your Assessment"}),o.jsxs("div",{className:"space-y-2 text-sm",children:[o.jsxs("div",{className:"flex justify-between",children:[o.jsx("span",{className:"text-gray-600",children:"Biomarkers"}),o.jsx("span",{className:"font-semibold text-brandBlue",children:"50+"})]}),o.jsxs("div",{className:"flex justify-between",children:[o.jsx("span",{className:"text-gray-600",children:"pTau-217"}),o.jsx("span",{className:"font-semibold text-brandBlue",children:"Included"})]}),o.jsxs("div",{className:"flex justify-between",children:[o.jsx("span",{className:"text-gray-600",children:"Cognitive test"}),o.jsx("span",{className:"font-semibold text-brandBlue",children:"15 min"})]})]})]}),FA=()=>o.jsxs("div",{className:"w-full max-w-[220px] bg-white rounded-xl shadow-md p-4 border border-darkCream flex items-center gap-3",children:[o.jsx("div",{className:"w-12 h-12 rounded-full bg-lightBlue flex items-center justify-center text-white font-semibold",children:"E"}),o.jsxs("div",{className:"flex-1",children:[o.jsx("p",{className:"font-semibold text-brandBlue text-sm",children:"Erika, RN"}),o.jsx("p",{className:"text-xs text-gray-600",children:"Brain Health Expert"}),o.jsx("span",{className:"inline-block mt-1 text-[10px] px-2 py-0.5 bg-veryLightBlue text-brandBlue rounded-full",children:"Wed · 90-min session"})]})]}),Fw=({value:e,label:t})=>{const r=2*Math.PI*28,s=r-e/100*r;return o.jsxs("div",{className:"relative w-20 h-20",children:[o.jsxs("svg",{className:"w-full h-full -rotate-90",viewBox:"0 0 64 64",children:[o.jsx("circle",{cx:"32",cy:"32",r:28,stroke:"#EBEBE5",strokeWidth:"6",fill:"none"}),o.jsx("circle",{cx:"32",cy:"32",r:28,stroke:"#008CA1",strokeWidth:"6",fill:"none",strokeDasharray:r,strokeDashoffset:s,strokeLinecap:"round"})]}),o.jsx("div",{className:"absolute inset-0 flex items-center justify-center font-playfair text-xl text-brandBlue",children:e}),t&&o.jsx("p",{className:"text-[10px] text-center text-gray-600 mt-1",children:t})]})},$A=()=>o.jsxs("div",{className:"w-full max-w-[220px] bg-white rounded-xl shadow-md p-4 border border-darkCream",children:[o.jsxs("div",{className:"flex items-center gap-3",children:[o.jsx(Fw,{value:90}),o.jsxs("div",{children:[o.jsx("p",{className:"text-xs font-semibold tracking-widest text-lightBlue uppercase",children:"Protocol Score"}),o.jsx("p",{className:"text-xs text-gray-600",children:"3 of 12 practices"})]})]}),o.jsxs("div",{className:"flex flex-wrap gap-1.5 mt-3",children:[o.jsx("span",{className:"text-[10px] px-2 py-1 bg-veryLightBlue text-brandBlue rounded-full",children:"Strength training"}),o.jsx("span",{className:"text-[10px] px-2 py-1 bg-veryLightBlue text-brandBlue rounded-full",children:"Methylated B"})]})]}),HA=()=>o.jsxs("div",{className:"w-full max-w-[200px] bg-white rounded-xl shadow-md p-4 border border-darkCream flex flex-col items-center",children:[o.jsx("p",{className:"text-[10px] font-semibold tracking-widest text-lightBlue uppercase mb-2",children:"Brain Score"}),o.jsx(Fw,{value:82}),o.jsx("p",{className:"text-xs text-green-600 font-semibold mt-2",children:"↑ +8 in 90 days"})]}),UA=()=>o.jsx("section",{className:"bg-cream py-16",children:o.jsxs("div",{className:"container mx-auto px-2 md:px-4 max-w-7xl",children:[o.jsxs("div",{className:"text-center mb-12 max-w-3xl mx-auto",children:[o.jsx("p",{className:"text-xs font-semibold tracking-widest text-lightBlue uppercase mb-4",children:"How it works"}),o.jsxs("h2",{className:"font-playfair text-3xl md:text-5xl leading-tight",children:[o.jsx("span",{className:"font-semibold text-brandBlue",children:"Brain health,"})," ",o.jsx("span",{className:"italic text-lightBlue",children:"made personal"})]}),o.jsx("p",{className:"mt-6 text-base md:text-lg text-gray-700",children:"A comprehensive assessment, a personalized action plan, and a system that adapts as your biology changes."})]}),o.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6",children:[o.jsx(fa,{step:"01",title:"Measure",description:"Get the brain-specific testing your annual physical doesn't cover.",bullets:["50+ brain health biomarkers at 2000+ Quest Locations or at-home","15-min validated cognitive test","Advanced pTau-217 blood test"],visual:o.jsx(zA,{})}),o.jsx(fa,{step:"02",title:"Plan",description:"Meet 1-on-1 with a brain health expert who builds a plan that fits your biology and your life.",bullets:["Up to 90 min 1-on-1 coaching session","Personalized action plan, ranked by impact","Results explained in plain English"],visual:o.jsx(FA,{})}),o.jsx(fa,{step:"03",title:"Act",description:"Everything you need to act on your plan, every day, in one place.",bullets:["Personalized practices, ranked by impact","Curated product marketplace","24/7 BeBe (AI) + SMS coach access"],visual:o.jsx($A,{})}),o.jsx(fa,{step:"04",title:"Improve",description:"As your biology changes, your plan evolves with you.",bullets:["Deep dive into practices with coaching and add-on testing","Retest your labs to track progress","Follow-up coaching ($0 with insurance*)"],visual:o.jsx(HA,{})})]}),o.jsx("div",{className:"mt-12 flex justify-center",children:o.jsx(Y,{className:"ptau-cta bg-brandBlue hover:bg-lightBlue text-white text-lg px-8",onClick:()=>{window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"coverage-started"}),window.location.href=rt("https://app.betterbrain.com/registration",{product:"ptau"})},children:"Check Coverage"})})]})}),WA=({isOpen:e,onClose:t,type:n})=>{const r=()=>{switch(n){case"bloodPanel":return o.jsxs(o.Fragment,{children:[o.jsx(tt,{children:o.jsx(nt,{className:"text-lg font-bold text-brandBlue",children:"50+ blood tests, many not typically covered in primary care"})}
236),o.jsxs("div",{className:"space-y-4 mt-4",children:[o.jsxs("div",{className:"flex gap-3",children:[o.jsx("div",{className:"mt-1",children:o.jsx($,{className:"h-5 w-5 text-green-600"})}),o.jsxs("div",{children:["Blood panel ",o.jsx("span",{className:"font-semibold",children:"curated"})," by our panel of cross-speciality physicians"]})]}),o.jsxs("div",{className:"flex gap-3",children:[o.jsx("div",{className:"mt-1",children:o.jsx($,{className:"h-5 w-5 text-green-600"})}),o.jsxs("div",{children:["Use one of ",o.jsx("span",{className:"font-semibold",children:"Quest"})," locations, or ",o.jsx("span",{className:"font-semibold",children:"from your home"})," (where available)"]})]}),o.jsxs("div",{className:"flex gap-3",children:[o.jsx("div",{className:"mt-1",children:o.jsx($,{className:"h-5 w-5 text-green-600"})}),o.jsx("div",{children:"98% of appointments available next day"})]})]})]});case"pTauTest":return o.jsxs(o.Fragment,{children:[o.jsx(tt,{children:o.jsx(nt,{className:"text-lg font-bold text-brandBlue",children:"Breakthrough blood test that can detect Alzheimer's pathology up to 20 years before symptoms begin"})}),o.jsx("div",{className:"space-y-4 mt-4",children:o.jsxs("div",{className:"flex gap-3",children:[o.jsx("div",{className:"mt-1 flex-shrink-0",children:o.jsx("div",{className:"h-6 w-6 rounded-full bg-red-100 flex items-center justify-center",children:o.jsx(Bv,{className:"h-4 w-4 text-red-600"})})}),o.jsx("div",{children:"We believe that pTau-217 can be a highly valuable test for anyone over 45 who wants to be proactive about their brain health. However, getting tested is a very personal choice which requires careful consideration of the benefits and drawbacks, particularly since receiving a positive ptau test can be emotionally challenging."})]})})]});case"consultation":return o.jsxs(o.Fragment,{children:[o.jsx(tt,{children:o.jsx(nt,{className:"text-lg font-bold text-brandBlue",children:"Up to 90-min virtual consultation to review your results and tailor your personalized prevention protocol"})}),o.jsxs("div",{className:"space-y-4 mt-4",children:[o.jsxs("div",{className:"flex gap-3",children:[o.jsx("div",{className:"mt-1",children:o.jsx($,{className:"h-5 w-5 text-green-600"})}),o.jsx("div",{children:"Convenient online consultation from the comfort of your home - no travel or wait"})]}),o.jsxs("div",{className:"flex gap-3",children:[o.jsx("div",{className:"mt-1",children:o.jsx($,{className:"h-5 w-5 text-green-600"})}),o.jsx("div",{children:"A Brain Health Coach with a deep background in preventive neurology, all yours for 90 minutes."})]}),o.jsxs("div",{className:"flex gap-3",children:[o.jsx("div",{className:"mt-1",children:o.jsx($,{className:"h-5 w-5 text-green-600"})}),o.jsx("div",{children:"We help you navigate the clinical and non-clinical actions to take for your brain health."})]})]})]});case"geneticTest":return o.jsxs(o.Fragment,{children:[o.jsx(tt,{children:o.jsx(nt,{className:"text-lg font-bold text-brandBlue",children:"Understand your genetic risk for dementia"})}),o.jsxs("div",{className:"space-y-4 mt-4",children:[o.jsxs("div",{className:"flex gap-3",children:[o.jsx("div",{className:"mt-1",children:o.jsx($,{className:"h-5 w-5 text-green-600"})}),o.jsxs("div",{children:[o.jsx("strong",{children:"APOE4 (one copy):"})," Approximately 25% of people carry 1 copy of the APOE4 variant, which increases Alzheimer's risk by 2-3 times compared to non-carriers."]})]}),o.jsxs("div",{className:"flex gap-3",children:[o.jsx("div",{className:"mt-1",children:o.jsx($,{className:"h-5 w-5 text-green-600"})}),o.jsxs("div",{children:[o.jsx("strong",{children:"APOE4/4 (two copies):"})," About 2-3% of the population carries 2 copies of APOE4, which may increase risk by 12-20 times."]})]}),o.jsx("div",{className:"mt-4",children:"If you have the APOE4 variant, there are specific lifestyle changes that may be particularly beneficial for your brain health."})]})]});case"expertSupport":return o.jsxs(o.Fragment,{children:[o.jsx(tt,{children:o.jsx(nt,{className:"text-lg font-bold text-brandBlue",children:"Unlimited SMS messaging support from your coach for expert guidance and accountability"})}
236),o.jsxs("div",{className:"space-y-4 mt-4",children:[o.jsxs("div",{className:"flex gap-3",children:[o.jsx("div",{className:"mt-1",children:o.jsx($,{className:"h-5 w-5 text-green-600"})}),o.jsxs("div",{children:[o.jsx("strong",{children:"Get peace of mind, anytime"})," - From questions about your protocol to help navigating a doctor's visit. No question is too small or too tough."]})]}),o.jsxs("div",{className:"flex gap-3",children:[o.jsx("div",{className:"mt-1",children:o.jsx($,{className:"h-5 w-5 text-green-600"})}),o.jsxs("div",{children:[o.jsx("strong",{children:"Responses within 24 hours"})," - Our experts review your overall health, research your question, and share answers with you. All in under a day."]})]}),o.jsxs("div",{className:"flex gap-3",children:[o.jsx("div",{className:"mt-1",children:o.jsx($,{className:"h-5 w-5 text-green-600"})}),o.jsxs("div",{children:[o.jsx("strong",{children:"Personalized to your profile"})," - This isn't generic advice—it's tailored support from specialists who understand your unique risk factors and goals."]})]})]})]});case"personalizedPlan":return o.jsxs(o.Fragment,{children:[o.jsx(tt,{children:o.jsx(nt,{className:"text-lg font-bold text-brandBlue",children:"Your science-backed roadmap to better brain health"})}),o.jsxs("div",{className:"space-y-4 mt-4",children:[o.jsxs("div",{className:"flex gap-3",children:[o.jsx("div",{className:"mt-1",children:o.jsx($,{className:"h-5 w-5 text-green-600"})}),o.jsxs("div",{children:[o.jsx("strong",{children:"Custom protocol based on your unique biology"})," - Tailored recommendations across nutrition, exercise, sleep, supplements and more specific to your biomarkers"]})]}),o.jsxs("div",{className:"flex gap-3",children:[o.jsx("div",{className:"mt-1",children:o.jsx($,{className:"h-5 w-5 text-green-600"})}),o.jsxs("div",{children:[o.jsx("strong",{children:"Prioritized by impact and difficulty"})," - Know exactly where to start first and what will move the needle most for your brain health"]})]}),o.jsxs("div",{className:"flex gap-3",children:[o.jsx("div",{className:"mt-1",children:o.jsx($,{className:"h-5 w-5 text-green-600"})}),o.jsxs("div",{children:[o.jsx("strong",{children:"BetterBrain app access"})," - Daily tracking, progress monitoring, and educational content integrated into an easy-to-use dashboard"]})]})]})]})}};return o.jsx(ic,{open:e,onOpenChange:s=>!s&&t(),children:o.jsx(Ri,{className:"max-w-md",children:r()})})},VA=[{title:"50+ brain biomarkers",modalType:"bloodPanel"},{title:"pTau-217 Testing",modalType:"pTauTest"},{title:"Up to 90 min Expert Consultation",modalType:"consultation"},{title:"Personalized Brain Health Plan",modalType:"personalizedPlan"},{title:"Ongoing Concierge Coaching",modalType:"expertSupport"},{title:"APOE4 Genetic Testing",isAddon:!0,addonPrice:"$149",modalType:"geneticTest"}],GA=()=>{const[e,t]=p.useState(null),n=()=>{window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"coverage-started"}),window.setTimeout(()=>{window.location.href=rt("https://app.betterbrain.com/registration",{product:"ptau"})},300)};return o.jsxs("section",{className:"bg-white py-16 w-full overflow-x-hidden",children:[o.jsxs("div",{className:"container mx-auto px-4 md:px-6 max-w-full",children:[o.jsxs("h2",{className:"font-playfair text-3xl md:text-5xl leading-tight text-center mb-12",children:[o.jsx("span",{className:"font-semibold text-brandBlue",children:"Stay ahead with the latest in"}),o.jsx("br",{}),o.jsx("span",{className:"italic text-lightBlue",children:"dementia detection and prevention"})]}),o.jsx("div",{className:"max-w-5xl mx-auto bg-cream rounded-2xl shadow-sm border border-gray-200 overflow-hidden",children:o.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2",children:[o.jsxs("div",{className:"p-8 md:p-12 md:border-r border-gray-200 flex flex-col",children:[o.jsxs("div",{className:"inline-flex self-start items-center gap-2 bg-cyan-50 text-brandBlue px-4 py-2 rounded-full mb-8",children:[o.jsx(Sn,{className:"h-4 w-4"}),o.jsx("span",{className:"text-xs font-semibold tracking-wider uppercase",children:"Covered by insurance"})]}),o.jsx("h3",{className:"font-playfair text-3xl md:text-4xl font-bold text-slate-900 mb-4",children:"pTau-217 Blueprint"}),o.jsxs("div",{className:"mb-2 flex items-baseline gap-3",children:[o.jsx("span",{className:"font-playfair text-5xl md:text-6xl font-bold text-slate-900",children:"$388"}),o.jsx("span",{className:"text-slate-700 text-base",children:"with insurance"})]}),o.jsx("div",{className:"text-slate-500 mb-8",children:"$698 cash pay"}),o.jsx("div",{className:"mt-auto",children:o.jsx(Y,{className:"ptau-cta bg-brandBlue hover:bg-opacity-90 text-white font-medium py-6 px-10 text-lg rounded-lg coverage-started check-coverage-button","data-button":"check-coverage",onClick:n,children:"Get Started"})})]}),o.jsx("div",{className:"p-8 md:p-12 bg-cream",children:o.jsx("ul",{className:"divide-y divide-gray-200",children:VA.map((r,s)=>o.jsxs("li",{className:"flex items-center gap-4 py-4 first:pt-0 last:pb-0",children:[o.jsx($,{className:"h-5 w-5 text-lightBlue flex-shrink-0",strokeWidth:3}),o.jsxs("div",{className:"flex-1 flex items-center gap-2 flex-wrap",children:[o.jsx("span",{className:"text-slate-800 text-base md:text-lg",children:r.title}),r.isAddon&&o.jsxs("span",{className:"bg-amber-100 text-amber-800 px-3 py-1 rounded-full text-xs font-medium whitespace-nowrap",children:["+",r.addonPrice," ",o.jsx("span",{className:"font-normal",children:"optional add-on"})]})]}),o.jsx("button",{className:"flex-shrink-0 text-gray-400 hover:text-gray-600 transition-colors",onClick:()=>t(r.modalType),"aria-label":`More info about ${r.title}`,children:o.jsx(En,{className:"h-5 w-5"})})]},s))})})]})}),o.jsxs("div",{className:"flex flex-wrap justify-center gap-6 mt-8",children:[o.jsxs("div",{className:"flex items-center",children:[o.jsx("div",{className:"w-5 h-5 rounded-full bg-green-100 flex items-center justify-center mr-2",children:o.jsx($,{size:12,className:"text-green-600"})}),o.jsx("span",{children:"Money-Back Guarantee"})]}),o.jsxs("div",{className:"flex items-center",children:[o.jsx("div",{className:"w-5 h-5 rounded-full bg-green-100 flex items-center justify-center mr-2",children:o.jsx($,{size:12,className:"text-green-600"})}),o.jsx("span",{children:"HSA/FSA Eligible"})]}),o.jsxs("div",{className:"flex items-center",children:[o.jsx("div",{className:"w-5 h-5 rounded-full bg-green-100 flex items-center justify-center mr-2",children:o.jsx($,{size:12,className:"text-green-600"})}),o.jsx("span",{children:"Buy now, pay later"})]})]}),o.jsxs("div",{className:"max-w-2xl mx-auto bg-cyan-50 py-10 px-8 rounded-xl text-center mt-10",children:[o.jsx("h2",{className:"text-3xl font-semibold text-slate-800 mb-4",children:"Lingering questions?"}),o.jsx("p",{className:"text-lg text-slate-600 mb-6",children:"Schedule a free 15-minute call to explore your brain health options"}),o.jsx(Y,{className:"ptau-cta bg-brandBlue hover:bg-opacity-90 text-white font-medium py-3 px-6 text-lg rounded-lg",onClick:()=>window.open(rt("https://calendly.com/wendy-pietri-betterbrain/new-meeting"),"_blank"),children:"Schedule now"})]})]}),["bloodPanel","pTauTest","consultation","geneticTest","expertSupport","personalizedPlan"].map(r=>o.jsx(WA,{isOpen:e===r,onClose:()=>t(null),type:r},r))]})},YA=()=>(p.useEffect(()=>{const e=document.createElement("script");return e.innerHTML=`
237      !function(t,e){var o,n,p,r;e.__SV||(window.posthog=e,e._i=[],e.init=function(i,s,a){function g(t,e){var o=e.split(".");2==o.length&&(t=t[o[0]],e=o[1]),t[e]=function(){t.push([e].concat(Array.prototype.slice.call(arguments,0)))}}(p=t.createElement("script")).type="text/javascript",p.crossOrigin="anonymous",p.async=!0,p.src=s.api_host.replace(".i.posthog.com","-assets.i.posthog.com")+"/static/array.js",(r=t.getElementsByTagName("script")[0]).parentNode.insertBefore(p,r);var u=e;for(void 0!==a?u=e[a]=[]:a="posthog",u.people=u.people||[],u.toString=function(t){var e="posthog";return"posthog"!==a&&(e+="."+a),t||(e+=" (stub)"),e},u.people.toString=function(){return u.toString(1)+".people (stub)"},o="init capture register register_once register_for_session unregister unregister_for_session getFeatureFlag getFeatureFlagPayload isFeatureEnabled reloadFeatureFlags updateEarlyAccessFeatureEnrollment getEarlyAccessFeatures on onFeatureFlags onSurveysLoaded onSessionId getSurveys getActiveMatchingSurveys render
237Survey canRenderSurvey identify setPersonProperties group resetGroups setPersonPropertiesForFlags resetPersonPropertiesForFlags setGroupPropertiesForFlags resetGroupPropertiesForFlags reset get_distinct_id getGroups get_session_id get_session_replay_url alias set_config startSessionRecording stopSessionRecording sessionRecordingStarted captureException loadToolbar get_property getSessionProperty createPersonProfile opt_in_capturing opt_out_capturing has_opted_in_capturing has_opted_out_capturing clear_opt_in_out_capturing debug getPageViewId captureTraceFeedback captureTraceMetric".split(" "),n=0;n<o.length;n++)g(u,o[n]);e._i.push([i,s,a])},e.__SV=1)}(document,window.posthog||[]);
238      posthog.init('phc_NxdU1YTyGyOdBhVpQra7I8hfCGjD58ZkSXQnLAyRNhG', {
239          api_host: 'https://us.i.posthog.com',
240          person_profiles: 'identified_only',
241      })
242    `,document.head.appendChild(e),()=>{document.head.removeChild(e)}},[]),p.useEffect(()=>{const e=()=>{document.querySelectorAll('button, a, [role="button"]').forEach(n=>{var a,l;const r=(a=n.textContent)==null?void 0:a.trim().toLowerCase(),s=(l=n.getAttribute("data-button"))==null?void 0:l.toLowerCase();(r==="check coverage"||r==="check eligibility"||s==="check coverage"||s==="check-coverage")&&(n.classList.add("coverage-started"),n.setAttribute("data-button","check-coverage"))})};e();const t=new MutationObserver(e);return t.observe(document.body,{childList:!0,subtree:!0}),()=>t.disconnect()},[]),o.jsxs("div",{className:"min-h-screen bg-cream w-full overflow-x-hidden",children:[o.jsxs(Qs,{children:[o.jsx("title",{children:"pTau-217 Blood Test — BetterBrain"}),o.jsx("meta",{name:"description",content:"Get the pTau-217 blood test to detect Alzheimer's risk early and start a personalized brain health prevention plan with BetterBrain."}),o.jsx("link",{rel:"canonical",href:"https://p-tau-lp.lovable.app/ptau-217"}),o.jsx("meta",{property:"og:title",content:"pTau-217 Blood Test — BetterBrain"}),o.jsx("meta",{property:"og:description",content:"Get the pTau-217 blood test to detect Alzheimer's risk early and start a personalized brain health prevention plan with BetterBrain."}),o.jsx("meta",{property:"og:url",content:"https://p-tau-lp.lovable.app/ptau-217"})]}),o.jsx(OA,{}),o.jsxs("main",{className:"bg-cream w-full",children:[o.jsx(MA,{}),o.jsx(Ow,{}),o.jsx("div",{id:"how-it-works",children:o.jsx(UA,{})}),o.jsx(IA,{}),o.jsx("div",{id:"science",children:o.jsx(Lw,{})}),o.jsx(Bw,{}),o.jsx(LA,{}),o.jsx("div",{id:"pricing-comparison-table",className:"pt-16 pb-0",children:o.jsx(GA,{})}),o.jsx(Mw,{}),o.jsx(Iw,{}),o.jsx(zw,{})]}),o.jsx(Dw,{})]})),qA=new yT,QA=()=>o.jsx(bT,{client:qA,children:o.jsxs(XE,{children:[o.jsx(LS,{}),o.jsx(dC,{}),o.jsx(gk,{children:o.jsxs(ck,{children:[o.jsx(Ft,{path:"/",element:o.jsx(wo,{})}),o.jsx(Ft,{path:"/how-it-works",element:o.jsx(wo,{})}),o.jsx(Ft,{path:"/science",element:o.jsx(wo,{})}),o.jsx(Ft,{path:"/reviews",element:o.jsx(wo,{})}),o.jsx(Ft,{path:"/faq",element:o.jsx(wo,{})}),o.jsx(Ft,{path:"/prevention",element:o.jsx(cA,{})}),o.jsx(Ft,{path:"/brain-health",element:o.jsx(RA,{})}),o.jsx(Ft,{path:"/ptau-217",element:o.jsx(YA,{})}),o.jsx(Ft,{path:"/terms",element:o.jsx(aA,{})}),o.jsx(Ft,{path:"*",element:o.jsx(iA,{})})]})})]})}),KA=e=>{window.Intercom&&window.Intercom("boot",{app_id:"v15aj9ke",...e})};KA();Qx(document.getElementById("root")).render(o.jsx(nv,{children:o.jsx(QA,{})}));

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.