(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[177],{2582:e=>{e.exports={style:{fontFamily:"'Inter', 'Inter Fallback'",fontStyle:"normal"},className:"__className_f367f3",variable:"__variable_f367f3"}},3210:()=>{},3422:(e,t,r)=>{"use strict";r.d(t,{ThemeProvider:()=>n.N});var n=r(4560)},4560:(e,t,r)=>{"use strict";r.d(t,{D:()=>m,N:()=>c});var n=r(7620),s=(e,t,r,n,s,a,l,o)=>{let i=document.documentElement,m=["light","dark"];function c(t){var r;(Array.isArray(e)?e:[e]).forEach(e=>{let r="class"===e,n=r&&a?s.map(e=>a[e]||e):s;r?(i.classList.remove(...n),i.classList.add(a&&a[t]?a[t]:t)):i.setAttribute(e,t)}),r=t,o&&m.includes(r)&&(i.style.colorScheme=r)}if(n)c(n);else try{let e=localStorage.getItem(t)||r,n=l&&"system"===e?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":e;c(n)}catch(e){}},a=["light","dark"],l="(prefers-color-scheme: dark)",o=n.createContext(void 0),i={setTheme:e=>{},themes:[]},m=()=>{var e;return null!=(e=n.useContext(o))?e:i},c=e=>n.useContext(o)?n.createElement(n.Fragment,null,e.children):n.createElement(u,{...e}),d=["light","dark"],u=e=>{let{forcedTheme:t,disableTransitionOnChange:r=!1,enableSystem:s=!0,enableColorScheme:i=!0,storageKey:m="theme",themes:c=d,defaultTheme:u=s?"system":"light",attribute:v="data-theme",value:p,children:g,nonce:E,scriptProps:S}=e,[k,w]=n.useState(()=>y(m,u)),[C,T]=n.useState(()=>"system"===k?b():k),_=p?Object.values(p):c,L=n.useCallback(e=>{let t=e;if(!t)return;"system"===e&&s&&(t=b());let n=p?p[t]:t,l=r?f(E):null,o=document.documentElement,m=e=>{"class"===e?(o.classList.remove(..._),n&&o.classList.add(n)):e.startsWith("data-")&&(n?o.setAttribute(e,n):o.removeAttribute(e))};if(Array.isArray(v)?v.forEach(m):m(v),i){let e=a.includes(u)?u:null,r=a.includes(t)?t:e;o.style.colorScheme=r}null==l||l()},[E]),N=n.useCallback(e=>{let t="function"==typeof e?e(k):e;w(t);try{localStorage.setItem(m,t)}catch(e){}},[k]),A=n.useCallback(e=>{T(b(e)),"system"===k&&s&&!t&&L("system")},[k,t]);n.useEffect(()=>{let e=window.matchMedia(l);return e.addListener(A),A(e),()=>e.removeListener(A)},[A]),n.useEffect(()=>{let e=e=>{e.key===m&&(e.newValue?w(e.newValue):N(u))};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[N]),n.useEffect(()=>{L(null!=t?t:k)},[t,k]);let P=n.useMemo(()=>({theme:k,setTheme:N,forcedTheme:t,resolvedTheme:"system"===k?C:k,themes:s?[...c,"system"]:c,systemTheme:s?C:void 0}),[k,N,t,C,s,c]);return n.createElement(o.Provider,{value:P},n.createElement(h,{forcedTheme:t,storageKey:m,attribute:v,enableSystem:s,enableColorScheme:i,defaultTheme:u,value:p,themes:c,nonce:E,scriptProps:S}),g)},h=n.memo(e=>{let{forcedTheme:t,storageKey:r,attribute:a,enableSystem:l,enableColorScheme:o,defaultTheme:i,value:m,themes:c,nonce:d,scriptProps:u}=e,h=JSON.stringify([a,r,i,t,c,m,l,o]).slice(1,-1);return n.createElement("script",{...u,suppressHydrationWarning:!0,nonce:"",dangerouslySetInnerHTML:{__html:"(".concat(s.toString(),")(").concat(h,")")}})}),y=(e,t)=>{let r;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)}},b=e=>(e||(e=window.matchMedia(l)),e.matches?"dark":"light")},6145:(e,t,r)=>{Promise.resolve().then(r.t.bind(r,2582,23)),Promise.resolve().then(r.t.bind(r,3210,23)),Promise.resolve().then(r.bind(r,3422))}},e=>{e.O(0,[939,587,18,358],()=>e(e.s=6145)),_N_E=e.O()}]);