(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,18566,(e,t,r)=>{t.exports=e.r(76562)},63178,e=>{"use strict";var t=e.i(71645),r=(e,t,r,s,a,n,i,o)=>{let l=document.documentElement,c=["light","dark"];function m(t){var r;(Array.isArray(e)?e:[e]).forEach(e=>{let r="class"===e,s=r&&n?a.map(e=>n[e]||e):a;r?(l.classList.remove(...s),l.classList.add(n&&n[t]?n[t]:t)):l.setAttribute(e,t)}),r=t,o&&c.includes(r)&&(l.style.colorScheme=r)}if(s)m(s);else try{let e=localStorage.getItem(t)||r,s=i&&"system"===e?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":e;m(s)}catch(e){}},s=["light","dark"],a="(prefers-color-scheme: dark)",n="u"<typeof window,i=t.createContext(void 0),o={setTheme:e=>{},themes:[]},l=()=>{var e;return null!=(e=t.useContext(i))?e:o},c=e=>t.useContext(i)?t.createElement(t.Fragment,null,e.children):t.createElement(u,{...e}),m=["light","dark"],u=({forcedTheme:e,disableTransitionOnChange:r=!1,enableSystem:n=!0,enableColorScheme:o=!0,storageKey:l="theme",themes:c=m,defaultTheme:u=n?"system":"light",attribute:v="data-theme",value:p,children:g,nonce:T,scriptProps:b})=>{let[S,w]=t.useState(()=>h(l,u)),[C,E]=t.useState(()=>"system"===S?y():S),k=p?Object.values(p):c,x=t.useCallback(e=>{let t=e;if(!t)return;"system"===e&&n&&(t=y());let a=p?p[t]:t,i=r?f(T):null,l=document.documentElement,c=e=>{"class"===e?(l.classList.remove(...k),a&&l.classList.add(a)):e.startsWith("data-")&&(a?l.setAttribute(e,a):l.removeAttribute(e))};if(Array.isArray(v)?v.forEach(c):c(v),o){let e=s.includes(u)?u:null,r=s.includes(t)?t:e;l.style.colorScheme=r}null==i||i()},[T]),A=t.useCallback(e=>{let t="function"==typeof e?e(S):e;w(t);try{localStorage.setItem(l,t)}catch(e){}},[S]),P=t.useCallback(t=>{E(y(t)),"system"===S&&n&&!e&&x("system")},[S,e]);t.useEffect(()=>{let e=window.matchMedia(a);return e.addListener(P),P(e),()=>e.removeListener(P)},[P]),t.useEffect(()=>{let e=e=>{e.key===l&&(e.newValue?w(e.newValue):A(u))};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[A]),t.useEffect(()=>{x(null!=e?e:S)},[e,S]);let L=t.useMemo(()=>({theme:S,setTheme:A,forcedTheme:e,resolvedTheme:"system"===S?C:S,themes:n?[...c,"system"]:c,systemTheme:n?C:void 0}),[S,A,e,C,n,c]);return t.createElement(i.Provider,{value:L},t.createElement(d,{forcedTheme:e,storageKey:l,attribute:v,enableSystem:n,enableColorScheme:o,defaultTheme:u,value:p,themes:c,nonce:T,scriptProps:b}),g)},d=t.memo(({forcedTheme:e,storageKey:s,attribute:a,enableSystem:n,enableColorScheme:i,defaultTheme:o,value:l,themes:c,nonce:m,scriptProps:u})=>{let d=JSON.stringify([a,s,o,e,c,l,n,i]).slice(1,-1);return t.createElement("script",{...u,suppressHydrationWarning:!0,nonce:"u"<typeof window?m:"",dangerouslySetInnerHTML:{__html:`(${r.toString()})(${d})`}})}),h=(e,t)=>{let r;if(!n){try{r=localStorage.getItem(e)||void 0}catch(e){}return r||t}},f=e=>{let t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(t),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(t)},1)}},y=e=>(e||(e=window.matchMedia(a)),e.matches?"dark":"light");e.s(["ThemeProvider",()=>c,"useTheme",()=>l])},1661,e=>{"use strict";var t=e.i(43476),r=e.i(71645),s=e.i(63178),a=e.i(17255),n=e.i(46696),i=e.i(18566);function o(){let e=(0,i.usePathname)(),s=(0,i.useSearchParams)(),[a,n]=(0,r.useState)(!1),[o,l]=(0,r.useState)(0),c=(0,r.useCallback)(()=>{n(!0),l(20);let e=setTimeout(()=>l(50),100),t=setTimeout(()=>l(70),300),r=setTimeout(()=>l(85),600);return()=>{clearTimeout(e),clearTimeout(t),clearTimeout(r)}},[]);return((0,r.useEffect)(()=>{let e,t=requestAnimationFrame(()=>{l(100),e=setTimeout(()=>{n(!1),l(0)},200)});return()=>{cancelAnimationFrame(t),clearTimeout(e)}},[e,s]),(0,r.useEffect)(()=>{let t=t=>{let r=t.target.closest("a");if(!r)return;let s=r.getAttribute("href");!s||s.startsWith("http")||s.startsWith("#")||s.startsWith("mailto:")||s!==e&&c()};return document.addEventListener("click",t),()=>document.removeEventListener("click",t)},[e,c]),a||0!==o)?(0,t.jsx)("div",{className:"fixed top-0 left-0 right-0 z-[100] h-[3px]",children:(0,t.jsx)("div",{className:"h-full bg-gradient-to-r from-violet-600 via-indigo-500 to-violet-600 shadow-lg shadow-violet-500/30 transition-all ease-out",style:{width:`${o}%`,transitionDuration:100===o?"200ms":"400ms",opacity:+(100!==o)}})}):null}function l({children:e}){return(0,t.jsx)(a.SessionProvider,{children:(0,t.jsxs)(s.ThemeProvider,{attribute:"class",defaultTheme:"dark",enableSystem:!0,disableTransitionOnChange:!0,children:[(0,t.jsx)(r.Suspense,{fallback:null,children:(0,t.jsx)(o,{})}),e,(0,t.jsx)(n.Toaster,{richColors:!0,position:"top-right"})]})})}e.s(["Providers",()=>l],1661)}]);