(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[185],{7015:function(e,t,n){Promise.resolve().then(n.t.bind(n,8877,23)),Promise.resolve().then(n.bind(n,3157)),Promise.resolve().then(n.bind(n,5565)),Promise.resolve().then(n.bind(n,4190)),Promise.resolve().then(n.bind(n,7471)),Promise.resolve().then(n.t.bind(n,3247,23))},5565:function(e,t,n){"use strict";n.d(t,{AuthenticateWithRedirectCallback:function(){return r.vn},ClerkLoaded:function(){return r.a7},ClerkLoading:function(){return r.qI},RedirectToCreateOrganization:function(){return r.gM},RedirectToOrganizationProfile:function(){return r.yB},RedirectToSignIn:function(){return r.N1},RedirectToSignUp:function(){return r.C2},RedirectToUserProfile:function(){return r.sO}});var r=n(9150);n(2063)},4190:function(e,t,n){"use strict";n.d(t,{useAuth:function(){return r.aC},useClerk:function(){return r.ll},useEmailLink:function(){return r.E2},useOrganization:function(){return r.o8},useOrganizationList:function(){return r.eW},useSession:function(){return r.kP},useSessionList:function(){return r.xo},useSignIn:function(){return r.zq},useSignUp:function(){return r.QS},useUser:function(){return r.aF}});var r=n(9150);n(8351)},7471:function(e,t,n){"use strict";n.d(t,{CreateOrganization:function(){return d},GoogleOneTap:function(){return r.Kb},OrganizationList:function(){return r.Bg},OrganizationProfile:function(){return g},OrganizationSwitcher:function(){return r.Li},SignIn:function(){return m},SignInButton:function(){return r.$d},SignInWithMetamaskButton:function(){return r.qu},SignOutButton:function(){return r.AM},SignUp:function(){return p},SignUpButton:function(){return r.gX},UserButton:function(){return r.l8},UserProfile:function(){return h}});var r=n(9150),o=n(2265),i=n(2063),u=n(9569),a=n(877);let c=()=>({pagesRouter:(0,a.useRouter)()}),s=(e,t,n,i=!0)=>{let a=o.useRef(0),{pagesRouter:s}=c(),{session:l,isLoaded:f}=(0,r.kP)();(0,u.rx)()||o.useEffect(()=>{if(!f||n&&"path"!==n||i&&!l)return;let r=new AbortController,o=()=>{let n=s?`${t}/[[...index]].tsx`:`${t}/[[...rest]]/page.tsx`;throw Error(`
Clerk: The <${e}/> component is not configured correctly. The most likely reasons for this error are:

1. The "${t}" route is not a catch-all route.
It is recommended to convert this route to a catch-all route, eg: "${n}". Alternatively, you can update the <${e}/> component to use hash-based routing by setting the "routing" prop to "hash".

2. The <${e}/> component is mounted in a catch-all route, but all routes under "${t}" are protected by the middleware.
To resolve this, ensure that the middleware does not protect the catch-all route or any of its children. If you are using the "createRouteMatcher" helper, consider adding "(.*)" to the end of the route pattern, eg: "${t}(.*)". For more information, see: https://clerk.com/docs/references/nextjs/clerk-middleware#create-route-matcher
`)};return s?s.pathname.match(/\[\[\.\.\..+]]/)||o():(async()=>{let t;if(a.current++,!(a.current>1)){try{let n=`${window.location.origin}${window.location.pathname}/${e}_clerk_catchall_check_${Date.now()}`;t=await fetch(n,{signal:r.signal})}catch(e){}(null==t?void 0:t.status)===404&&o()}})(),()=>{a.current>1&&r.abort()}},[f])},l=()=>{let e=o.useRef(),{pagesRouter:t}=c();if(t)return e.current||(e.current=t.pathname.replace(/\/\[\[\.\.\..*/,"")),e.current;let r=n(6463).usePathname,i=n(6463).useParams,u=(r()||"").split("/").filter(Boolean),a=Object.values(i()||{}).filter(e=>Array.isArray(e)).flat(1/0);return e.current||(e.current=`/${u.slice(0,u.length-a.length).join("/")}`),e.current};function f(e,t,n=!0){let r=l(),o=(0,i.EJ)(e,t,{path:r});return s(e,r,o.routing,n),o}let h=Object.assign(e=>o.createElement(r.Iw,{...f("UserProfile",e)}),{...r.Iw}),d=e=>o.createElement(r.Gp,{...f("CreateOrganization",e)}),g=Object.assign(e=>o.createElement(r.A,{...f("OrganizationProfile",e)}),{...r.A}),m=e=>o.createElement(r.cL,{...f("SignIn",e,!1)}),p=e=>o.createElement(r.Mo,{...f("SignUp",e,!1)})},8877:function(){},3247:function(e){e.exports={style:{fontFamily:"'__Inter_36bd41', '__Inter_Fallback_36bd41'",fontStyle:"normal"},className:"__className_36bd41"}}},function(e){e.O(0,[569,935,157,971,23,744],function(){return e(e.s=7015)}),_N_E=e.O()}]);