;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="1fc98da6-7e59-0dfa-62c3-8af9bd26884c")}catch(e){}}();
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,718122,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"warnOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},291441,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={assign:function(){return u},searchParamsToUrlQuery:function(){return a},urlQueryToSearchParams:function(){return i}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});function a(e){let t={};for(let[r,n]of e.entries()){let e=t[r];void 0===e?t[r]=n:Array.isArray(e)?e.push(n):t[r]=[e,n]}return t}function s(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function i(e){let t=new URLSearchParams;for(let[r,n]of Object.entries(e))if(Array.isArray(n))for(let e of n)t.append(r,s(e));else t.set(r,s(n));return t}function u(e,...t){for(let r of t){for(let t of r.keys())e.delete(t);for(let[t,n]of r.entries())e.append(t,n)}return e}},449187,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return i},formatWithValidation:function(){return l},urlObjectKeys:function(){return u}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let a=e.r(744066)._(e.r(291441)),s=/https?|ftp|gopher|file/;function i(e){let{auth:t,hostname:r}=e,n=e.protocol||"",o=e.pathname||"",i=e.hash||"",u=e.query||"",l=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?l=t+e.host:r&&(l=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(l+=":"+e.port)),u&&"object"==typeof u&&(u=String(a.urlQueryToSearchParams(u)));let c=e.search||u&&`?${u}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||s.test(n))&&!1!==l?(l="//"+(l||""),o&&"/"!==o[0]&&(o="/"+o)):l||(l=""),i&&"#"!==i[0]&&(i="#"+i),c&&"?"!==c[0]&&(c="?"+c),o=o.replace(/[?#]/g,encodeURIComponent),c=c.replace("#","%23"),`${n}${l}${o}${c}${i}`}let u=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function l(e){return i(e)}},149382,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return o}});let n=e.r(595052);function o(e,t){let r=(0,n.useRef)(null),o=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=o.current;t&&(o.current=null,t())}else e&&(r.current=a(e,n)),t&&(o.current=a(t,n))},[e,t])}function a(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},126592,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={DecodeError:function(){return v},MiddlewareNotFoundError:function(){return x},MissingStaticPage:function(){return w},NormalizeError:function(){return b},PageNotFoundError:function(){return y},SP:function(){return m},ST:function(){return g},WEB_VITALS:function(){return a},execOnce:function(){return s},getDisplayName:function(){return d},getLocationOrigin:function(){return l},getURL:function(){return c},isAbsoluteUrl:function(){return u},isResSent:function(){return f},loadGetInitialProps:function(){return h},normalizeRepeatedSlashes:function(){return p},stringifyError:function(){return E}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let a=["CLS","FCP","FID","INP","LCP","TTFB"];function s(e){let t,r=!1;return(...n)=>(r||(r=!0,t=e(...n)),t)}let i=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,u=e=>i.test(e);function l(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function c(){let{href:e}=window.location,t=l();return e.substring(t.length)}function d(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function f(e){return e.finished||e.headersSent}function p(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function h(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await h(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&f(r))return n;if(!n)throw Object.defineProperty(Error(`"${d(e)}.getInitialProps()" should resolve to an object. But found "${n}" instead.`),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return n}let m="u">typeof performance,g=m&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class v extends Error{}class b extends Error{}class y extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class w extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class x extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function E(e){return JSON.stringify({message:e.message,stack:e.stack})}},509672,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return a}});let n=e.r(126592),o=e.r(522780);function a(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,o.hasBasePath)(r.pathname)}catch(e){return!1}}},628655,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"errorOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},190642,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return v},useLinkStatus:function(){return y}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let a=e.r(744066),s=e.r(319181),i=a._(e.r(595052)),u=e.r(449187),l=e.r(54782),c=e.r(149382),d=e.r(126592),f=e.r(807554);e.r(718122);let p=e.r(922325),h=e.r(509672),m=e.r(323886);function g(e){return"string"==typeof e?e:(0,u.formatUrl)(e)}function v(t){var r;let n,o,a,[u,v]=(0,i.useOptimistic)(p.IDLE_LINK_STATUS),y=(0,i.useRef)(null),{href:w,as:x,children:E,prefetch:_=null,passHref:S,replace:P,shallow:k,scroll:j,onClick:L,onMouseEnter:T,onTouchStart:R,legacyBehavior:C=!1,onNavigate:$,ref:U,unstable_dynamicOnHover:A,...N}=t;n=E,C&&("string"==typeof n||"number"==typeof n)&&(n=(0,s.jsx)("a",{children:n}));let O=i.default.useContext(l.AppRouterContext),M=!1!==_,I=!1!==_?null===(r=_)||"auto"===r?m.FetchStrategy.PPR:m.FetchStrategy.Full:m.FetchStrategy.PPR,{href:B,as:z}=i.default.useMemo(()=>{let e=g(w);return{href:e,as:x?g(x):e}},[w,x]);if(C){if(n?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});o=i.default.Children.only(n)}let F=C?o&&"object"==typeof o&&o.ref:U,W=i.default.useCallback(e=>(null!==O&&(y.current=(0,p.mountLinkInstance)(e,B,O,I,M,v)),()=>{y.current&&((0,p.unmountLinkForCurrentNavigation)(y.current),y.current=null),(0,p.unmountPrefetchableInstance)(e)}),[M,B,O,I,v]),D={ref:(0,c.useMergedRef)(W,F),onClick(t){C||"function"!=typeof L||L(t),C&&o.props&&"function"==typeof o.props.onClick&&o.props.onClick(t),!O||t.defaultPrevented||function(t,r,n,o,a,s,u){if("u">typeof window){let l,{nodeName:c}=t.currentTarget;if("A"===c.toUpperCase()&&((l=t.currentTarget.getAttribute("target"))&&"_self"!==l||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,h.isLocalURL)(r)){a&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),u){let e=!1;if(u({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:d}=e.r(89083);i.default.startTransition(()=>{d(n||r,a?"replace":"push",s??!0,o.current)})}}(t,B,z,y,P,j,$)},onMouseEnter(e){C||"function"!=typeof T||T(e),C&&o.props&&"function"==typeof o.props.onMouseEnter&&o.props.onMouseEnter(e),O&&M&&(0,p.onNavigationIntent)(e.currentTarget,!0===A)},onTouchStart:function(e){C||"function"!=typeof R||R(e),C&&o.props&&"function"==typeof o.props.onTouchStart&&o.props.onTouchStart(e),O&&M&&(0,p.onNavigationIntent)(e.currentTarget,!0===A)}};return(0,d.isAbsoluteUrl)(z)?D.href=z:C&&!S&&("a"!==o.type||"href"in o.props)||(D.href=(0,f.addBasePath)(z)),a=C?i.default.cloneElement(o,D):(0,s.jsx)("a",{...N,...D,children:n}),(0,s.jsx)(b.Provider,{value:u,children:a})}e.r(628655);let b=(0,i.createContext)(p.IDLE_LINK_STATUS),y=()=>(0,i.useContext)(b);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},121169,e=>{"use strict";var t=e.i(129050),r=e.i(319181),n=e.i(595052);class o extends Error{constructor(e,t){e instanceof Error?super(void 0,{cause:{err:e,...e.cause,...t}}):"string"==typeof e?(t instanceof Error&&(t={err:t,...t.cause}),super(e,t)):super(void 0,e),this.name=this.constructor.name,this.type=this.constructor.type??"AuthError",this.kind=this.constructor.kind??"error",Error.captureStackTrace?.(this,this.constructor);const r=`https://errors.authjs.dev#${this.type.toLowerCase()}`;this.message+=`${this.message?". ":""}Read more at ${r}`}}class a extends o{}class s extends o{}async function i(e,t,r,n={}){let o=`${u(t)}/${e}`;try{let e={headers:{"Content-Type":"application/json",...n?.headers?.cookie?{cookie:n.headers.cookie}:{}}};n?.body&&(e.body=JSON.stringify(n.body),e.method="POST");let t=await fetch(o,e),r=await t.json();if(!t.ok)throw r;return r}catch(e){return r.error(new a(e.message,e)),null}}function u(e){return"u"o}}let d={baseUrl:c(t.default.env.NEXTAUTH_URL??t.default.env.VERCEL_URL).origin,basePath:c(t.default.env.NEXTAUTH_URL).path,baseUrlServer:c(t.default.env.NEXTAUTH_URL_INTERNAL??t.default.env.NEXTAUTH_URL??t.default.env.VERCEL_URL).origin,basePathServer:c(t.default.env.NEXTAUTH_URL_INTERNAL??t.default.env.NEXTAUTH_URL).path,_lastSync:0,_session:void 0,_getSession:()=>{}},f=null;function p(){return"u"{},addEventListener:()=>{},removeEventListener:()=>{},name:"next-auth",onmessage:null,onmessageerror:null,close:()=>{},dispatchEvent:()=>!1}:new BroadcastChannel("next-auth")}function h(){return null===f&&(f=p()),f}let m={debug:console.debug,error:console.error,warn:console.warn},g=n.createContext?.(void 0);function v(e){if(!g)throw Error("React Context is unavailable in Server Components");let t=n.useContext(g),{required:r,onUnauthenticated:o}=e??{},a=r&&"unauthenticated"===t.status;return(n.useEffect(()=>{if(a){let e=`${d.basePath}/signin?${new URLSearchParams({error:"SessionRequired",callbackUrl:window.location.href})}`;o?o():window.location.href=e}},[a,o]),a)?{data:t.data,update:t.update,status:"loading"}:t}async function b(e){let t=await i("session",d,m,e);return(e?.broadcast??!0)&&p().postMessage({event:"session",data:{trigger:"getSession"}}),t}async function y(){let e=await i("csrf",d,m);return e?.csrfToken??""}async function w(){return i("providers",d,m)}async function x(e,t,r){let{callbackUrl:n,...o}=t??{},{redirect:a=!0,redirectTo:s=n??window.location.href,...i}=o,l=u(d),c=await w();if(!c){let e=`${l}/error`;window.location.href=e;return}if(!e||!c[e]){let e=`${l}/signin?${new URLSearchParams({callbackUrl:s})}`;window.location.href=e;return}let f=c[e].type;if("webauthn"===f)throw TypeError(`Provider id "${e}" refers to a WebAuthn provider.
Please use \`import { signIn } from "next-auth/webauthn"\` instead.`);let p=`${l}/${"credentials"===f?"callback":"signin"}/${e}`,h=await y(),m=await fetch(`${p}?${new URLSearchParams(r)}`,{method:"post",headers:{"Content-Type":"application/x-www-form-urlencoded","X-Auth-Return-Redirect":"1"},body:new URLSearchParams({...i,csrfToken:h,callbackUrl:s})}),g=await m.json();if(a){let e=g.url??s;window.location.href=e,e.includes("#")&&window.location.reload();return}let v=new URL(g.url).searchParams.get("error")??void 0,b=new URL(g.url).searchParams.get("code")??void 0;return m.ok&&await d._getSession({event:"storage"}),{error:v,code:b,status:m.status,ok:m.ok,url:v?null:g.url}}async function E(e){let{redirect:t=!0,redirectTo:r=e?.callbackUrl??window.location.href}=e??{},n=u(d),o=await y(),a=await fetch(`${n}/signout`,{method:"post",headers:{"Content-Type":"application/x-www-form-urlencoded","X-Auth-Return-Redirect":"1"},body:new URLSearchParams({csrfToken:o,callbackUrl:r})}),s=await a.json();if(h().postMessage({event:"session",data:{trigger:"signout"}}),t){let e=s.url??r;window.location.href=e,e.includes("#")&&window.location.reload();return}return await d._getSession({event:"storage"}),s}function _(e){if(!g)throw Error("React Context is unavailable in Server Components");let{children:t,basePath:o,refetchInterval:a,refetchWhenOffline:u}=e;o&&(d.basePath=o);let c=void 0!==e.session;d._lastSync=c?l():0;let[f,p]=n.useState(()=>(c&&(d._session=e.session),e.session)),[v,w]=n.useState(!c);n.useEffect(()=>(d._getSession=async({event:e}={})=>{try{let t="storage"===e;if(t||void 0===d._session){d._lastSync=l(),d._session=await b({broadcast:!t}),p(d._session);return}if(!e||null===d._session||l(){d._lastSync=0,d._session=void 0,d._getSession=()=>{}}),[]),n.useEffect(()=>{let e=()=>d._getSession({event:"storage"});return h().addEventListener("message",e),()=>h().removeEventListener("message",e)},[]),n.useEffect(()=>{let{refetchOnWindowFocus:t=!0}=e,r=()=>{t&&"visible"===document.visibilityState&&d._getSession({event:"visibilitychange"})};return document.addEventListener("visibilitychange",r,!1),()=>document.removeEventListener("visibilitychange",r,!1)},[e.refetchOnWindowFocus]);let x=function(){let[e,t]=n.useState("u">typeof navigator&&navigator.onLine),r=()=>t(!0),o=()=>t(!1);return n.useEffect(()=>(window.addEventListener("online",r),window.addEventListener("offline",o),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",o)}),[]),e}(),E=!1!==u||x;n.useEffect(()=>{if(a&&E){let e=setInterval(()=>{d._session&&d._getSession({event:"poll"})},1e3*a);return()=>clearInterval(e)}},[a,E]);let _=n.useMemo(()=>({data:f,status:v?"loading":f?"authenticated":"unauthenticated",async update(e){if(v)return;w(!0);let t=await i("session",d,m,void 0===e?void 0:{body:{csrfToken:await y(),data:e}});return w(!1),t&&(p(t),h().postMessage({event:"session",data:{trigger:"getSession"}})),t}}),[f,v]);return(0,r.jsx)(g.Provider,{value:_,children:t})}e.s(["SessionProvider",()=>_,"signIn",()=>x,"signOut",()=>E,"useSession",()=>v],121169)},638961,(e,t,r)=>{t.exports=e.r(482122)},704498,e=>{"use strict";var t=e.i(129050),r=e.i(595052),n=e.i(638961);function o(){return"u">typeof window}function a(){return"production"}function s(){return"development"===((o()?window.vam:a())||"production")}function i(e){return RegExp(`/${e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}(?=[/?#]|$)`)}function u(e){return(0,r.useEffect)(()=>{var t;e.beforeSend&&(null==(t=window.va)||t.call(window,"beforeSend",e.beforeSend))},[e.beforeSend]),(0,r.useEffect)(()=>{!function(e={debug:!0}){var t;if(!o())return;!function(e="auto"){if("auto"===e){window.vam=a();return}window.vam=e}(e.mode),window.va||(window.va=function(...e){(window.vaq=window.vaq||[]).push(e)}),e.beforeSend&&(null==(t=window.va)||t.call(window,"beforeSend",e.beforeSend));let r=e.scriptSrc?e.scriptSrc:s()?"https://va.vercel-scripts.com/v1/script.debug.js":e.basePath?`${e.basePath}/insights/script.js`:"/_vercel/insights/script.js";if(document.head.querySelector(`script[src*="${r}"]`))return;let n=document.createElement("script");n.src=r,n.defer=!0,n.dataset.sdkn="@vercel/analytics"+(e.framework?`/${e.framework}`:""),n.dataset.sdkv="1.6.1",e.disableAutoTrack&&(n.dataset.disableAutoTrack="1"),e.endpoint?n.dataset.endpoint=e.endpoint:e.basePath&&(n.dataset.endpoint=`${e.basePath}/insights`),e.dsn&&(n.dataset.dsn=e.dsn),n.onerror=()=>{let e=s()?"Please check if any ad blockers are enabled and try again.":"Be sure to enable Web Analytics for your project and deploy again. See https://vercel.com/docs/analytics/quickstart for more information.";console.log(`[Vercel Web Analytics] Failed to load script from ${r}. ${e}`)},s()&&!1===e.debug&&(n.dataset.debug="false"),document.head.appendChild(n)}({framework:e.framework||"react",basePath:e.basePath??function(){if(void 0!==t.default&&void 0!==t.default.env)return t.default.env.REACT_APP_VERCEL_OBSERVABILITY_BASEPATH}(),...void 0!==e.route&&{disableAutoTrack:!0},...e})},[]),(0,r.useEffect)(()=>{e.route&&e.path&&function({route:e,path:t}){var r;null==(r=window.va)||r.call(window,"pageview",{route:e,path:t})}({route:e.route,path:e.path})},[e.route,e.path]),null}function l(e){let o,a,s,{route:l,path:c}=(o=(0,n.useParams)(),a=(0,n.useSearchParams)(),s=(0,n.usePathname)(),o?{route:function(e,t){if(!e||!t)return e;let r=e;try{let e=Object.entries(t);for(let[t,n]of e)if(!Array.isArray(n)){let e=i(n);e.test(r)&&(r=r.replace(e,`/[${t}]`))}for(let[t,n]of e)if(Array.isArray(n)){let e=i(n.join("/"));e.test(r)&&(r=r.replace(e,`/[...${t}]`))}return r}catch(t){return e}}(s,Object.keys(o).length?o:Object.fromEntries(a.entries())),path:s}:{route:null,path:s});return r.default.createElement(u,{path:c,route:l,...e,basePath:function(){if(void 0!==t.default&&void 0!==t.default.env)return t.default.env.NEXT_PUBLIC_VERCEL_OBSERVABILITY_BASEPATH}(),framework:"next"})}function c(e){return r.default.createElement(r.Suspense,{fallback:null},r.default.createElement(l,{...e}))}e.s(["Analytics",()=>c])},1661,e=>{"use strict";var t=e.i(319181),r=e.i(121169),n=e.i(595052);let o={success:{bg:"bg-emerald-900/90 border-emerald-700 text-emerald-200",icon:(0,t.jsx)("svg",{className:"h-4 w-4 text-emerald-400 shrink-0",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 13l4 4L19 7"})})},error:{bg:"bg-red-900/90 border-red-700 text-red-200",icon:(0,t.jsx)("svg",{className:"h-4 w-4 text-red-400 shrink-0",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})},warning:{bg:"bg-amber-900/90 border-amber-700 text-amber-200",icon:(0,t.jsx)("svg",{className:"h-4 w-4 text-amber-400 shrink-0",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m9-.75a9 9 0 11-18 0 9 9 0 0118 0zm-9 3.75h.008v.008H12v-.008z"})})},info:{bg:"bg-blue-900/90 border-blue-700 text-blue-200",icon:(0,t.jsx)("svg",{className:"h-4 w-4 text-blue-400 shrink-0",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.25 11.25l.041-.02a.75.75 0 011.063.852l-.708 2.836a.75.75 0 001.063.853l.041-.021M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9-3.75h.008v.008H12V8.25z"})})}};function a({message:e,variant:r="success",onDismiss:n}){let a=o[r];return(0,t.jsxs)("div",{className:`flex items-center gap-2.5 rounded-lg border px-4 py-3 text-sm font-medium shadow-xl backdrop-blur-sm animate-slide-in-right ${a.bg}`,children:[a.icon,(0,t.jsx)("span",{children:e}),(0,t.jsx)("button",{onClick:n,"aria-label":"Dismiss notification",className:"ml-2 opacity-60 hover:opacity-100 transition-opacity",children:(0,t.jsx)("svg",{className:"h-3.5 w-3.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]})}let s=(0,n.createContext)({toast:()=>{}});function i({children:e}){let[r,o]=(0,n.useState)([]),i=(0,n.useRef)(0),u=(0,n.useCallback)(e=>{o(t=>t.filter(t=>t.id!==e))},[]),l=(0,n.useCallback)((e,t="success")=>{let r=i.current++;o(n=>[...n,{id:r,message:e,variant:t}]),setTimeout(()=>u(r),4e3)},[u]);return(0,t.jsxs)(s.Provider,{value:{toast:l},children:[e,r.length>0&&(0,t.jsx)("div",{className:"fixed bottom-4 right-4 z-[100] flex flex-col gap-2",children:r.map(e=>(0,t.jsx)(a,{message:e.message,variant:e.variant,onDismiss:()=>u(e.id)},e.id))})]})}function u({children:e}){return(0,t.jsx)(r.SessionProvider,{children:(0,t.jsx)(i,{children:e})})}e.s(["Providers",()=>u],1661)},335538,e=>{"use strict";var t=e.i(319181),r=e.i(595052),n=e.i(190642);function o(){let[e,o]=(0,r.useState)(!1);return((0,r.useEffect)(()=>{if(!localStorage.getItem("gsh_cookie_consent")){let e=setTimeout(()=>o(!0),1e3);return()=>clearTimeout(e)}},[]),e)?(0,t.jsx)("div",{className:"fixed bottom-0 left-0 right-0 z-[100] p-3 sm:p-6",children:(0,t.jsxs)("div",{className:"mx-auto max-w-md rounded-[1.25rem] border border-zinc-700/50 bg-zinc-900/95 p-3.5 shadow-[0_-4px_32px_rgba(0,0,0,0.4)] backdrop-blur-xl sm:max-w-lg sm:p-4",children:[(0,t.jsxs)("p",{className:"mb-3 text-xs leading-5 text-zinc-300 sm:text-sm sm:leading-6",children:["We use cookies for authentication, analytics, and to improve your experience. See our"," ",(0,t.jsx)(n.default,{href:"/privacy",className:"text-amber-400 hover:underline",children:"Privacy Policy"})," ","for details."]}),(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,t.jsx)("button",{onClick:function(){localStorage.setItem("gsh_cookie_consent","accepted"),o(!1)},className:"rounded-lg bg-amber-600 px-3 py-2 text-xs font-semibold text-white transition-colors hover:bg-amber-500",children:"Accept all"}),(0,t.jsx)("button",{onClick:function(){localStorage.setItem("gsh_cookie_consent","declined"),o(!1)},className:"rounded-lg border border-zinc-700 px-3 py-2 text-xs font-medium text-zinc-400 transition-colors hover:text-zinc-200",children:"Essential only"})]})]})}):null}e.s(["CookieConsent",()=>o])}]);
//# debugId=1fc98da6-7e59-0dfa-62c3-8af9bd26884c
//# sourceMappingURL=a4ab4f1f9a1bf49e.js.map