(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3185],{22241:function(e,t,n){Promise.resolve().then(n.t.bind(n,2778,23)),Promise.resolve().then(n.bind(n,18828))},18828:function(e,t,n){"use strict";n.d(t,{AppProviders:function(){return m}});var r=n(57437),s=n(69234);function o(e){let{locale:t,...n}=e;if(!t)throw Error(void 0);return(0,r.jsx)(s.Pj,{locale:t,...n})}var a=n(25922),l=n(43241),i=n(34021),c=n(14362);function m(e){let{children:t,locale:n,messages:s,timeZone:m,authEnabled:u=!1}=e;return(0,r.jsx)(o,{locale:n,messages:s,timeZone:m,children:(0,r.jsx)(a.f,{attribute:"class",defaultTheme:"dark",enableSystem:!1,children:(0,r.jsx)(c.H,{authEnabled:u,children:(0,r.jsx)(l.Hn,{children:(0,r.jsx)(i._I,{children:t})})})})})}},2778:function(){},25922:function(e,t,n){"use strict";n.d(t,{F:function(){return m},f:function(){return u}});var r=n(2265),s=(e,t,n,r,s,o,a,l)=>{let i=document.documentElement,c=["light","dark"];function m(t){(Array.isArray(e)?e:[e]).forEach(e=>{let n="class"===e,r=n&&o?s.map(e=>o[e]||e):s;n?(i.classList.remove(...r),i.classList.add(o&&o[t]?o[t]:t)):i.setAttribute(e,t)}),l&&c.includes(t)&&(i.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){}},o=["light","dark"],a="(prefers-color-scheme: dark)",l="undefined"==typeof window,i=r.createContext(void 0),c={setTheme:e=>{},themes:[]},m=()=>{var e;return null!=(e=r.useContext(i))?e:c},u=e=>r.useContext(i)?r.createElement(r.Fragment,null,e.children):r.createElement(h,{...e}),d=["light","dark"],h=e=>{let{forcedTheme:t,disableTransitionOnChange:n=!1,enableSystem:s=!0,enableColorScheme:l=!0,storageKey:c="theme",themes:m=d,defaultTheme:u=s?"system":"light",attribute:h="data-theme",value:v,children:g,nonce:w,scriptProps:E}=e,[S,k]=r.useState(()=>y(c,u)),[C,T]=r.useState(()=>"system"===S?b():S),x=v?Object.values(v):m,A=r.useCallback(e=>{let t=e;if(!t)return;"system"===e&&s&&(t=b());let r=v?v[t]:t,a=n?p(w):null,i=document.documentElement,c=e=>{"class"===e?(i.classList.remove(...x),r&&i.classList.add(r)):e.startsWith("data-")&&(r?i.setAttribute(e,r):i.removeAttribute(e))};if(Array.isArray(h)?h.forEach(c):c(h),l){let e=o.includes(u)?u:null,n=o.includes(t)?t:e;i.style.colorScheme=n}null==a||a()},[w]),L=r.useCallback(e=>{let t="function"==typeof e?e(S):e;k(t);try{localStorage.setItem(c,t)}catch(e){}},[S]),_=r.useCallback(e=>{T(b(e)),"system"===S&&s&&!t&&A("system")},[S,t]);r.useEffect(()=>{let e=window.matchMedia(a);return e.addListener(_),_(e),()=>e.removeListener(_)},[_]),r.useEffect(()=>{let e=e=>{e.key===c&&(e.newValue?k(e.newValue):L(u))};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[L]),r.useEffect(()=>{A(null!=t?t:S)},[t,S]);let j=r.useMemo(()=>({theme:S,setTheme:L,forcedTheme:t,resolvedTheme:"system"===S?C:S,themes:s?[...m,"system"]:m,systemTheme:s?C:void 0}),[S,L,t,C,s,m]);return r.createElement(i.Provider,{value:j},r.createElement(f,{forcedTheme:t,storageKey:c,attribute:h,enableSystem:s,enableColorScheme:l,defaultTheme:u,value:v,themes:m,nonce:w,scriptProps:E}),g)},f=r.memo(e=>{let{forcedTheme:t,storageKey:n,attribute:o,enableSystem:a,enableColorScheme:l,defaultTheme:i,value:c,themes:m,nonce:u,scriptProps:d}=e,h=JSON.stringify([o,n,i,t,m,c,a,l]).slice(1,-1);return r.createElement("script",{...d,suppressHydrationWarning:!0,nonce:"undefined"==typeof window?u:"",dangerouslySetInnerHTML:{__html:"(".concat(s.toString(),")(").concat(h,")")}})}),y=(e,t)=>{let n;if(!l){try{n=localStorage.getItem(e)||void 0}catch(e){}return n||t}},p=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(a)),e.matches?"dark":"light")}},function(e){e.O(0,[2461,9234,8528,2971,2117,1744],function(){return e(e.s=22241)}),_N_E=e.O()}]);