(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[558],{421:e=>{e.exports={style:{fontFamily:"'Geist', 'Geist Fallback'",fontStyle:"normal"},className:"__className_188709",variable:"__variable_188709"}},1021:(e,t,n)=>{Promise.resolve().then(n.t.bind(n,421,23)),Promise.resolve().then(n.t.bind(n,2076,23)),Promise.resolve().then(n.t.bind(n,1743,23)),Promise.resolve().then(n.bind(n,3647)),Promise.resolve().then(n.bind(n,5965))},1743:()=>{},2076:e=>{e.exports={style:{fontFamily:"'Geist Mono', 'Geist Mono Fallback'",fontStyle:"normal"},className:"__className_9a8899",variable:"__variable_9a8899"}},2374:(e,t,n)=>{"use strict";n.d(t,{J0:()=>i,TE:()=>o,aJ:()=>r,w9:()=>s,yl:()=>a});let r=220,i="moondream:route-fade:start",s="moondream:route-fade:end";function a(){window.dispatchEvent(new Event(i))}function o(){window.dispatchEvent(new Event(s))}},3647:(e,t,n)=>{"use strict";n.d(t,{ServiceWorkerRegister:()=>i});var r=n(2115);function i(){return(0,r.useEffect)(()=>{"serviceWorker"in navigator&&navigator.serviceWorker.register("/sw.js").catch(()=>{})},[]),null}},5965:(e,t,n)=>{"use strict";n.d(t,{RouteFadeOverlay:()=>a});var r=n(5155),i=n(2115),s=n(2374);function a(){let[e,t]=(0,i.useState)(!1),[n,a]=(0,i.useState)(!1),o=(0,i.useRef)(null);return((0,i.useEffect)(()=>{let e=()=>{o.current&&window.clearTimeout(o.current),o.current=null},n=()=>{e(),t(!0),window.requestAnimationFrame(()=>a(!0))},r=()=>{e(),a(!1),o.current=window.setTimeout(()=>{o.current=null,t(!1)},s.aJ)};return window.addEventListener(s.J0,n),window.addEventListener(s.w9,r),()=>{window.removeEventListener(s.J0,n),window.removeEventListener(s.w9,r),e()}},[]),e)?(0,r.jsx)("div",{className:`fixed inset-0 z-[2147483647] bg-black transition-opacity ease-out ${n?"opacity-100":"opacity-0"}`,style:{transitionDuration:`${s.aJ}ms`,pointerEvents:e?"auto":"none"}}):null}}},e=>{e.O(0,[72,441,794,358],()=>e(e.s=1021)),_N_E=e.O()}]);