(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1084],{69147:function(e,t,n){Promise.resolve().then(n.bind(n,32797)),Promise.resolve().then(n.t.bind(n,80962,23)),Promise.resolve().then(n.bind(n,85590)),Promise.resolve().then(n.bind(n,93137)),Promise.resolve().then(n.bind(n,4803)),Promise.resolve().then(n.bind(n,68567))},32797:function(e,t,n){"use strict";n.d(t,{Toaster:function(){return a}});var r=n(14161),o=n(76923),c=n(98791);let a=e=>{let{...t}=e,{theme:n="system"}=(0,o.F)();return(0,r.jsx)(c.x7,{theme:n,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...t})}},85590:function(e,t,n){"use strict";n.d(t,{ConvexClientProvider:function(){return a}});var r=n(14161),o=n(13610);let c=new o.Zj("https://graceful-eel-418.convex.cloud"),a=e=>{let{children:t}=e;return(0,r.jsx)(o.P9,{client:c,children:t})}},93137:function(e,t,n){"use strict";n.d(t,{EdgeStoreProvider:function(){return r},P:function(){return o}});let{EdgeStoreProvider:r,useEdgeStore:o}=(0,n(72608).q)()},4803:function(e,t,n){"use strict";n.d(t,{ThemeProvider:function(){return c}});var r=n(14161);n(40606);var o=n(76923);function c(e){let{children:t,...n}=e;return(0,r.jsx)(o.f,{...n,children:t})}},80962:function(){},16273:function(e){var t,n,r,o=e.exports={};function c(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}function i(e){if(t===setTimeout)return setTimeout(e,0);if((t===c||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:c}catch(e){t=c}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var s=[],u=!1,l=-1;function d(){u&&r&&(u=!1,r.length?s=r.concat(s):l=-1,s.length&&m())}function m(){if(!u){var e=i(d);u=!0;for(var t=s.length;t;){for(r=s,s=[];++l<t;)r&&r[l].run();l=-1,t=s.length}r=null,u=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function f(){}o.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];s.push(new h(e,t)),1!==s.length||u||i(m)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=f,o.addListener=f,o.once=f,o.off=f,o.removeListener=f,o.removeAllListeners=f,o.emit=f,o.prependListener=f,o.prependOnceListener=f,o.listeners=function(e){return[]},o.binding=function(e){throw Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw Error("process.chdir is not supported")},o.umask=function(){return 0}},76923:function(e,t,n){"use strict";n.d(t,{F:function(){return u},f:function(){return l}});var r=n(40606),o=["light","dark"],c="(prefers-color-scheme: dark)",a="undefined"==typeof window,i=r.createContext(void 0),s={setTheme:e=>{},themes:[]},u=()=>{var e;return null!=(e=r.useContext(i))?e:s},l=e=>r.useContext(i)?e.children:r.createElement(m,{...e}),d=["light","dark"],m=e=>{let{forcedTheme:t,disableTransitionOnChange:n=!1,enableSystem:a=!0,enableColorScheme:s=!0,storageKey:u="theme",themes:l=d,defaultTheme:m=a?"system":"light",attribute:p="data-theme",value:y,children:b,nonce:T}=e,[w,E]=r.useState(()=>f(u,m)),[S,x]=r.useState(()=>f(u)),k=y?Object.values(y):l,C=r.useCallback(e=>{let t=e;if(!t)return;"system"===e&&a&&(t=v());let r=y?y[t]:t,c=n?g():null,i=document.documentElement;if("class"===p?(i.classList.remove(...k),r&&i.classList.add(r)):r?i.setAttribute(p,r):i.removeAttribute(p),s){let e=o.includes(m)?m:null,n=o.includes(t)?t:e;i.style.colorScheme=n}null==c||c()},[]),L=r.useCallback(e=>{let t="function"==typeof e?e(e):e;E(t);try{localStorage.setItem(u,t)}catch(e){}},[t]),P=r.useCallback(e=>{x(v(e)),"system"===w&&a&&!t&&C("system")},[w,t]);r.useEffect(()=>{let e=window.matchMedia(c);return e.addListener(P),P(e),()=>e.removeListener(P)},[P]),r.useEffect(()=>{let e=e=>{e.key===u&&L(e.newValue||m)};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[L]),r.useEffect(()=>{C(null!=t?t:w)},[t,w]);let O=r.useMemo(()=>({theme:w,setTheme:L,forcedTheme:t,resolvedTheme:"system"===w?S:w,themes:a?[...l,"system"]:l,systemTheme:a?S:void 0}),[w,L,t,S,a,l]);return r.createElement(i.Provider,{value:O},r.createElement(h,{forcedTheme:t,disableTransitionOnChange:n,enableSystem:a,enableColorScheme:s,storageKey:u,themes:l,defaultTheme:m,attribute:p,value:y,children:b,attrs:k,nonce:T}),b)},h=r.memo(e=>{let{forcedTheme:t,storageKey:n,attribute:a,enableSystem:i,enableColorScheme:s,defaultTheme:u,value:l,attrs:d,nonce:m}=e,h="system"===u,f="class"===a?"var d=document.documentElement,c=d.classList;".concat("c.remove(".concat(d.map(e=>"'".concat(e,"'")).join(","),")"),";"):"var d=document.documentElement,n='".concat(a,"',s='setAttribute';"),g=s?(o.includes(u)?u:null)?"if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'".concat(u,"'"):"if(e==='light'||e==='dark')d.style.colorScheme=e":"",v=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2)||void 0===arguments[2]||arguments[2],r=l?l[e]:e,c=t?e+"|| ''":"'".concat(r,"'"),i="";return s&&n&&!t&&o.includes(e)&&(i+="d.style.colorScheme = '".concat(e,"';")),"class"===a?t||r?i+="c.add(".concat(c,")"):i+="null":r&&(i+="d[s](n,".concat(c,")")),i},p=t?"!function(){".concat(f).concat(v(t),"}()"):i?"!function(){try{".concat(f,"var e=localStorage.getItem('").concat(n,"');if('system'===e||(!e&&").concat(h,")){var t='").concat(c,"',m=window.matchMedia(t);if(m.media!==t||m.matches){").concat(v("dark"),"}else{").concat(v("light"),"}}else if(e){").concat(l?"var x=".concat(JSON.stringify(l),";"):"").concat(v(l?"x[e]":"e",!0),"}").concat(h?"":"else{"+v(u,!1,!1)+"}").concat(g,"}catch(e){}}()"):"!function(){try{".concat(f,"var e=localStorage.getItem('").concat(n,"');if(e){").concat(l?"var x=".concat(JSON.stringify(l),";"):"").concat(v(l?"x[e]":"e",!0),"}else{").concat(v(u,!1,!1),";}").concat(g,"}catch(t){}}();");return r.createElement("script",{nonce:m,dangerouslySetInnerHTML:{__html:p}})}),f=(e,t)=>{let n;if(!a){try{n=localStorage.getItem(e)||void 0}catch(e){}return n||t}},g=()=>{let e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(e)},1)}},v=e=>(e||(e=window.matchMedia(c)),e.matches?"dark":"light")}},function(e){e.O(0,[8267,8162,8791,7742,3610,9658,3757,9348,1744],function(){return e(e.s=69147)}),_N_E=e.O()}]);