(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[185],{1098:function(e,t,n){Promise.resolve().then(n.bind(n,1454)),Promise.resolve().then(n.bind(n,5495)),Promise.resolve().then(n.t.bind(n,4742,23)),Promise.resolve().then(n.t.bind(n,7960,23))},1454:function(e,t,n){"use strict";n.d(t,{default:function(){return o}});var r=n(2265);function o(){return(0,r.useEffect)(()=>{"serviceWorker"in navigator&&window.addEventListener("load",()=>{navigator.serviceWorker.register("/sw.js").then(e=>{console.log("Service Worker registered:",e)}).catch(e=>{console.log("Service Worker registration failed:",e)})})},[]),null}},5495:function(e,t,n){"use strict";n.d(t,{ThemeProvider:function(){return s}});var r=n(7437),o=n(5922);function s(e){let{children:t,...n}=e;return(0,r.jsx)(o.f,{...n,children:t})}},7960:function(){},4742:function(e){e.exports={style:{fontFamily:"'__Inter_f367f3', '__Inter_Fallback_f367f3'",fontStyle:"normal"},className:"__className_f367f3"}},5922:function(e,t,n){"use strict";n.d(t,{F:function(){return m},f:function(){return u}});var r=n(2265),o=(e,t,n,r,o,s,a,i)=>{let l=document.documentElement,c=["light","dark"];function m(t){(Array.isArray(e)?e:[e]).forEach(e=>{let n="class"===e,r=n&&s?o.map(e=>s[e]||e):o;n?(l.classList.remove(...r),l.classList.add(s&&s[t]?s[t]:t)):l.setAttribute(e,t)}),i&&c.includes(t)&&(l.style.colorScheme=t)}if(r)m(r);else try{let e=localStorage.getItem(t)||n,r=a&&"system"===e?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":e;m(r)}catch(e){}},s=["light","dark"],a="(prefers-color-scheme: dark)",i="undefined"==typeof window,l=r.createContext(void 0),c={setTheme:e=>{},themes:[]},m=()=>{var e;return null!=(e=r.useContext(l))?e:c},u=e=>r.useContext(l)?r.createElement(r.Fragment,null,e.children):r.createElement(h,{...e}),d=["light","dark"],h=e=>{let{forcedTheme:t,disableTransitionOnChange:n=!1,enableSystem:o=!0,enableColorScheme:i=!0,storageKey:c="theme",themes:m=d,defaultTheme:u=o?"system":"light",attribute:h="data-theme",value:p,children:b,nonce:w,scriptProps:k}=e,[E,S]=r.useState(()=>y(c,u)),[_,C]=r.useState(()=>"system"===E?g():E),T=p?Object.values(p):m,L=r.useCallback(e=>{let t=e;if(!t)return;"system"===e&&o&&(t=g());let r=p?p[t]:t,a=n?v(w):null,l=document.documentElement,c=e=>{"class"===e?(l.classList.remove(...T),r&&l.classList.add(r)):e.startsWith("data-")&&(r?l.setAttribute(e,r):l.removeAttribute(e))};if(Array.isArray(h)?h.forEach(c):c(h),i){let e=s.includes(u)?u:null,n=s.includes(t)?t:e;l.style.colorScheme=n}null==a||a()},[w]),P=r.useCallback(e=>{let t="function"==typeof e?e(E):e;S(t);try{localStorage.setItem(c,t)}catch(e){}},[E]),A=r.useCallback(e=>{C(g(e)),"system"===E&&o&&!t&&L("system")},[E,t]);r.useEffect(()=>{let e=window.matchMedia(a);return e.addListener(A),A(e),()=>e.removeListener(A)},[A]),r.useEffect(()=>{let e=e=>{e.key===c&&(e.newValue?S(e.newValue):P(u))};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[P]),r.useEffect(()=>{L(null!=t?t:E)},[t,E]);let N=r.useMemo(()=>({theme:E,setTheme:P,forcedTheme:t,resolvedTheme:"system"===E?_:E,themes:o?[...m,"system"]:m,systemTheme:o?_:void 0}),[E,P,t,_,o,m]);return r.createElement(l.Provider,{value:N},r.createElement(f,{forcedTheme:t,storageKey:c,attribute:h,enableSystem:o,enableColorScheme:i,defaultTheme:u,value:p,themes:m,nonce:w,scriptProps:k}),b)},f=r.memo(e=>{let{forcedTheme:t,storageKey:n,attribute:s,enableSystem:a,enableColorScheme:i,defaultTheme:l,value:c,themes:m,nonce:u,scriptProps:d}=e,h=JSON.stringify([s,n,l,t,m,c,a,i]).slice(1,-1);return r.createElement("script",{...d,suppressHydrationWarning:!0,nonce:"undefined"==typeof window?u:"",dangerouslySetInnerHTML:{__html:"(".concat(o.toString(),")(").concat(h,")")}})}),y=(e,t)=>{let n;if(!i){try{n=localStorage.getItem(e)||void 0}catch(e){}return n||t}},v=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)}},g=e=>(e||(e=window.matchMedia(a)),e.matches?"dark":"light")}},function(e){e.O(0,[540,971,117,744],function(){return e(e.s=1098)}),_N_E=e.O()}]);