(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[177],{1715:(e,t,r)=>{"use strict";r.d(t,{ThemeProvider:()=>s});var n=r(95155),a=r(5379);function s(e){let{children:t,...r}=e;return(0,n.jsx)(a.N,{attribute:"class",defaultTheme:"system",enableSystem:!0,disableTransitionOnChange:!0,...r,children:t})}},4249:(e,t,r)=>{"use strict";r.d(t,{Toaster:()=>l});var n=r(95155),a=r(5379),s=r(18720);let l=e=>{let{...t}=e,{theme:r="system"}=(0,a.D)();return(0,n.jsx)(s.l$,{theme:r,className:"toaster group",style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)"},...t})}},5379:(e,t,r)=>{"use strict";r.d(t,{D:()=>m,N:()=>c});var n=r(12115),a=(e,t,r,n,a,s,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&&s?a.map(e=>s[e]||e):a;r?(i.classList.remove(...n),i.classList.add(s&&s[t]?s[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){}},s=["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:a=!0,enableColorScheme:i=!0,storageKey:m="theme",themes:c=d,defaultTheme:u=a?"system":"light",attribute:f="data-theme",value:g,children:p,nonce:_,scriptProps:S}=e,[T,E]=n.useState(()=>y(m,u)),[w,C]=n.useState(()=>"system"===T?b():T),k=g?Object.values(g):c,P=n.useCallback(e=>{let t=e;if(!t)return;"system"===e&&a&&(t=b());let n=g?g[t]:t,l=r?v(_):null,o=document.documentElement,m=e=>{"class"===e?(o.classList.remove(...k),n&&o.classList.add(n)):e.startsWith("data-")&&(n?o.setAttribute(e,n):o.removeAttribute(e))};if(Array.isArray(f)?f.forEach(m):m(f),i){let e=s.includes(u)?u:null,r=s.includes(t)?t:e;o.style.colorScheme=r}null==l||l()},[_]),H=n.useCallback(e=>{let t="function"==typeof e?e(T):e;E(t);try{localStorage.setItem(m,t)}catch(e){}},[T]),z=n.useCallback(e=>{C(b(e)),"system"===T&&a&&!t&&P("system")},[T,t]);n.useEffect(()=>{let e=window.matchMedia(l);return e.addListener(z),z(e),()=>e.removeListener(z)},[z]),n.useEffect(()=>{let e=e=>{e.key===m&&(e.newValue?E(e.newValue):H(u))};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[H]),n.useEffect(()=>{P(null!=t?t:T)},[t,T]);let j=n.useMemo(()=>({theme:T,setTheme:H,forcedTheme:t,resolvedTheme:"system"===T?w:T,themes:a?[...c,"system"]:c,systemTheme:a?w:void 0}),[T,H,t,w,a,c]);return n.createElement(o.Provider,{value:j},n.createElement(h,{forcedTheme:t,storageKey:m,attribute:f,enableSystem:a,enableColorScheme:i,defaultTheme:u,value:g,themes:c,nonce:_,scriptProps:S}),p)},h=n.memo(e=>{let{forcedTheme:t,storageKey:r,attribute:s,enableSystem:l,enableColorScheme:o,defaultTheme:i,value:m,themes:c,nonce:d,scriptProps:u}=e,h=JSON.stringify([s,r,i,t,c,m,l,o]).slice(1,-1);return n.createElement("script",{...u,suppressHydrationWarning:!0,nonce:"",dangerouslySetInnerHTML:{__html:"(".concat(a.toString(),")(").concat(h,")")}})}),y=(e,t)=>{let r;try{r=localStorage.getItem(e)||void 0}catch(e){}return r||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)}},b=e=>(e||(e=window.matchMedia(l)),e.matches?"dark":"light")},57746:()=>{},81778:(e,t,r)=>{Promise.resolve().then(r.t.bind(r,57746,23)),Promise.resolve().then(r.t.bind(r,94825,23)),Promise.resolve().then(r.bind(r,1715)),Promise.resolve().then(r.bind(r,4249)),Promise.resolve().then(r.bind(r,86894))},86894:(e,t,r)=>{"use strict";r.d(t,{W:()=>o,Z:()=>l,default:()=>s});var n=r(95155);r(14855);var a=r(30338);function s(e){let{children:t}=e;return(0,n.jsx)(n.Fragment,{children:t})}let l=e=>{let t=a.Ay.language.replace("-","_");return"en_US"===t&&e.en_US?e.en_US:"zh_Hans"===t&&e.zh_Hans?e.zh_Hans:"zh_Hant"===t&&e.zh_Hant?e.zh_Hant:"ja_JP"===t&&e.ja_JP?e.ja_JP:e.en_US||e.zh_Hans||e.zh_Hant||e.ja_JP||""},o=()=>{let e=a.Ay.language;return"zh-Hans"===e?"zh_Hans":"zh-Hant"===e?"zh_Hant":"en-US"===e?"en":"ja-JP"===e?"ja_JP":"en"}},94825:()=>{}},e=>{e.O(0,[208,41,741,855,441,255,358],()=>e(e.s=81778)),_N_E=e.O()}]);