PageSourceSearch

https://www.kinshipcomms.ai/_next/static/immutable/chunks/41v2rtgfjctfe.js

js kinshipcomms.ai collected 2026-10-05 14:05:02 UTC 56,914 bytes, 13 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="dfe028ca-d13b-175d-4636-4872caa3cb5d")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,558072,e=>{"use strict";var t=e.i(719658),i=e.i(966604),i=i,r=i,s=i,n=i,l=e.i(271645),o=e.i(878673);e.i(261618);var a=e.i(532517),a=a,h=e.i(986455),u=e.i(622528);function d(t,i,r=!0){let s=(()=>{let t=l.default.useRef(),{pagesRouter:i}=(0,u.usePagesRouter)();if(i)if(t.current)return t.current;else return t.current=i.pathname.replace(/\/\[\[\.\.\..*/,""),t.current;let r=e.r(618566).usePathname,s=e.r(618566).useParams,n=(r()||"").split("/").filter(Boolean),o=Object.values(s()||{}).filter(e=>Array.isArray(e)).flat(1/0);return t.current||(t.current=`/${n.slice(0,n.length-o.length).join("/")}`),t.current})(),n=(0,o.useRoutingProps)(t,i,{path:s});return((e,t,i,r=!0)=>{let s=l.default.useRef(0),{pagesRouter:n}=(0,u.usePagesRouter)(),{session:o,isLoaded:d}=(0,h.useSession)();(0,a.i)()||l.default.useEffect(()=>{if(!d||i&&"path"!==i||r&&!o)return;let l=new AbortController,a=()=>{let i=n?`${t}/[[...index]].tsx`:`${t}/[[...rest]]/page.tsx`;throw Error(`
3Clerk: The <${e}/> component is not configured correctly. The most likely reasons for this error are:
4
51. The "${t}" route is not a catch-all route.
6It is recommended to convert this route to a catch-all route, eg: "${i}". Alternatively, you can update the <${e}/> component to use hash-based routing by setting the "routing" prop to "hash".
7
82. The <${e}/> component is mounted in a catch-all route, but all routes under "${t}" are protected by the middleware.
9To 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/reference/nextjs/clerk-middleware#create-route-matcher
10`)};return n?n.pathname.match(/\[\[\.\.\..+]]/)||a():(async()=>{let t;if(s.current++,!(s.current>1)){try{let i=`${window.location.origin}${window.location.pathname}/${e}_clerk_catchall_check_${Date.now()}`;t=await fetch(i,{signal:l.signal})}catch{}(null==t?void 0:t.status)===404&&a()}})(),()=>{s.current>1&&l.abort()}},[d])})(t,s,n.routing,r),n}var c=i,p=e.i(493028),g=i,k=i,m=i,f=e.i(817530),_=i,C=i,S=i,j=i,b=i,w=e.i(936479),y=i;let U=Object.assign(e=>l.default.createElement(n.L,{...d("UserProfile",e)}),{...n.L}),v=Object.assign(e=>l.default.createElement(i.D,{...d("OrganizationProfile",e)}),{...i.D}),O=e=>l.default.createElement(r.A,{...d("SignIn",e,!1)}),P=e=>l.default.createElement(s.j,{...d("SignUp",e,!1)});e.s(["OrganizationProfile",0,v,"SignIn",0,O,"SignUp",0,P,"UserProfile",0,U],189807),e.i(189807);var c=i,g=i,k=i,m=i,_=i,C=i,S=i,j=i,b=i,y=i;e.s(["APIKeys",()=>c.S,"CreateOrganization",()=>p.CreateOrganization,"GoogleOneTap",()=>g.w,"HandleSSOCallback",()=>t.HandleSSOCallback,"InviteMembersButton",()=>t.InviteMembersButton,"OAuthConsent",()=>k.T,"OrganizationList",()=>m.E,"OrganizationProfile",0,v,"OrganizationSwitcher",()=>f.OrganizationSwitcher,"PricingTable",()=>_.k,"SignIn",0,O,"SignInButton",()=>t.SignInButton,"SignInWithMetamaskButton",()=>t.SignInWithMetamaskButton,"SignOutButton",()=>t.SignOutButton,"SignUp",0,P,"SignUpButton",()=>t.SignUpButton,"TaskChooseOrganization",()=>C.M,"TaskResetPassword",()=>S.N,"TaskSetupMFA",()=>j.P,"UserAvatar",()=>b.F,"UserButton",()=>w.UserButton,"UserProfile",0,U,"Waitlist",()=>y.R],558072)},719658,370327,619772,948420,269358,967992,839350,291142,844999,e=>{"use strict";var t=e.i(391297),i=e.i(966604),r=e.i(307282),r=r,s=r;e.s(["c",()=>s.useOAuthConsent],370327);var s=r;e.i(502440);var n=r;e.s(["f",()=>n.useReverification],619772);var n=r;e.i(740285),e.i(606578);var l=r;e.s(["m",()=>l.useSessionList],948420);var l=r,o=r;e.s(["o",()=>o.useAPIKeys],269358);var o=r,a=r;e.s(["p",()=>a.useSession],967992);var a=r,h=e.i(822119),u=r;e.s(["u",()=>u.useOrganizationCreationDefaults],839350);var u=r,d=e.i(271645),c=e.i(551448),p=e.i(695263),g=e.i(733454);let k={initialDelay:125,maxDelayBetweenRetries:0,factor:2,shouldRetry:(e,t)=>t<5,retryImmediately:!1,jitter:!0},m=async e=>new Promise(t=>setTimeout(t,e)),f=(e,t)=>t?e*(1+Math.random()):e,_=async(e,t={})=>{var i;let r,s=0,{shouldRetry:n,initialDelay:l,maxDelayBetweenRetries:o,factor:a,retryImmediately:h,jitter:u,onBeforeRetry:d}={...k,...t}
10,c=(i={initialDelay:l,maxDelayBetweenRetries:o,factor:a,jitter:u},r=0,async()=>{let e;await m((e=f(e=i.initialDelay*Math.pow(i.factor,r),i.jitter),Math.min(i.maxDelayBetweenRetries||e,e))),r++});for(;;)try{return await e()}catch(e){if(!n(e,++s))throw e;d&&await d(s),h&&1===s?await m(f(100,u)):await c()}};async function C(e="",t){let{async:i,defer:r,beforeLoad:s,crossOrigin:n,nonce:l}=t||{};return _(()=>new Promise((t,o)=>{e||o(Error("loadScript cannot be called without a src")),document&&document.body||o(Error("loadScript cannot be called when document does not exist"));let a=document.createElement("script");n&&a.setAttribute("crossorigin",n),a.async=i||!1,a.defer=r||!1,a.addEventListener("load",()=>{a.remove(),t(a)}),a.addEventListener("error",t=>{a.remove(),o(t.error??Error(`failed to load script: ${e}`))}),a.src=e,l&&(a.nonce=l),s?.(a),document.body.appendChild(a)}),{shouldRetry:(e,t)=>t<=5})}function S(e){return e.startsWith("/")}e.i(420272),e.i(924257),e.i(636820);let j=(e,t="6.30.2")=>{if(e)return e;let i=b(t);return i?"snapshot"===i?t:i:w(t)},b=e=>e.trim().replace(/^v/,"").match(/-(.+?)(\.|$)/)?.[1],w=e=>e.trim().replace(/^v/,"").split(".")[0],{isDevOrStagingUrl:y}=(0,c.createDevOrStagingUrlCache)(),U=(0,g.y)({packageName:"@clerk/shared"});function v(e){return!("u"<typeof window)&&!!window[e]&&!!window[e]}let O=()=>v("Clerk"),P=()=>v("__internal_ClerkUICtor");function T(e){if("u"<typeof window||!window.performance)return!1;let t=performance.getEntriesByName(e,"resource");if(0===t.length)return!1;let i=t[t.length-1];if(0===i.transferSize&&0===i.decodedBodySize&&(0===i.responseEnd||i.responseEnd>0&&i.responseStart>0||"responseStatus"in i&&(i.responseStatus>=400||0===i.responseStatus)))return!0;return!1}let I=async e=>{let t=e?.scriptLoadTimeout??15e3,i=e=>new p.t("Failed to load Clerk JS"+(e?.message?`, ${e.message}`:""),{code:"failed_to_load_clerk_js",cause:e});if(O())return null;if(!e?.publishableKey)return U.throwMissingPublishableKeyError(),null;let r=A(e),s=document.querySelector("script[data-clerk-js-script]");if(s)if(T(r))s.remove();else try{return await W(t,O,i(),s),null}catch{s.remove()}let n=W(t,O,i());return C(r,{async:!0,crossOrigin:"anonymous",nonce:e.nonce,beforeLoad:R(z(e))}).catch(e=>{throw i(e)}),n},M=async e=>{let t=e?.scriptLoadTimeout??15e3,i=e=>new p.t("Failed to load Clerk UI"+(e?.message?`, ${e.message}`:""),{code:"failed_to_load_clerk_ui",cause:e});if(P())return null;if(!e?.publishableKey)return U.throwMissingPublishableKeyError(),null;let r=E(e),s=document.querySelector("script[data-clerk-ui-script]");if(s)if(T(r))s.remove();else try{return await W(t,P,i(),s),null}catch{s.remove()}let n=W(t,P,i());return C(r,{async:!0,crossOrigin:"anonymous",nonce:e.nonce,beforeLoad:R(N(e))}).catch(e=>{throw i(e)}),n},A=e=>{let{__internal_clerkJSUrl:t,__internal_clerkJSVersion:i,proxyUrl:r,domain:s,publishableKey:n}=e;if(t)return t;let l=j(i);return r&&S(r)?B(r,"clerk-js",l,"clerk.browser.js"):`https://${L({publishableKey:n,proxyUrl:r,domain:s})}/npm/@clerk/clerk-js@${l}/dist/clerk.browser.js`},E=e=>{let{__internal_clerkUIUrl:t,__internal_clerkUIVersion:i,proxyUrl:r,domain:s,publishableKey:n}=e;if(t)return t;let l=j(i,"1.31.0");return r&&S(r)?B(r,"ui",l,"ui.browser.js"):`https://${L({publishableKey:n,proxyUrl:r,domain:s})}/npm/@clerk/ui@${l}/dist/ui.browser.js`},z=e=>{let t={};return e.publishableKey&&(t["data-clerk-publishable-key"]=e.publishableKey),e.proxyUrl&&(t["data-clerk-proxy-url"]=e.proxyUrl),e.domain&&(t["data-clerk-domain"]=e.domain),e.nonce&&(t.nonce=e.nonce),t},N=e=>z(e),R=e=>t=>{for(let i in e)t.setAttribute(i,e[i])},B=(e,t,i,r)=>`${(e=>{for(;e.endsWith("/");)e=e.slice(0,-1);return e})(e)}/npm/@clerk/${t}@${i}/dist/${r}`,L=e=>{var t;let i,{proxyUrl:r,domain:s,publishableKey:n}=e;if(r&&(!r||(t=r,/^http(s)?:\/\//.test(t||""))||S(r))){let e=r?!S(r)||"u"<typeof window||!window.location?.origin?r:new URL(r,window.location.origin).toString():"";return S(e)?(0,c.parsePublishableKey)(n)?.frontendApi||"":e.replace(/http(s)?:\/\//,"")}if(!s||y((0,c.parsePublishableKey)(n)?.frontendApi||""))return(0,c.parsePublishableKey)(n)?.frontendApi||"";if(!s)return"";if(s.match(/^(clerk\.)+\w*$/))i=/(clerk\.)*(?=clerk\.)/;
10else{if(s.match(/\.clerk.accounts/))return s;i=/^(clerk\.)*/gi}return`clerk.${s.replace(i,"")}`};function W(e,t,i,r){return new Promise((s,n)=>{let l=!1,o=(e,t)=>{clearTimeout(e),clearInterval(t)};r?.addEventListener("error",()=>{o(h,u),n(i)});let a=()=>{!l&&t()&&(l=!0,o(h,u),s(null))},h=setTimeout(()=>{l||(l=!0,o(h,u),t()?s(null):n(i))},e);a();let u=setInterval(()=>{l?clearInterval(u):a()},100)})}function x(e){U.setPackageName({packageName:e})}e.s(["buildClerkJSScriptAttributes",0,z,"buildClerkJsScriptAttributes",0,z,"buildClerkUIScriptAttributes",0,N,"clerkJSScriptUrl",0,A,"clerkJsScriptUrl",0,A,"clerkUIScriptUrl",0,E,"loadClerkJSScript",0,I,"loadClerkUIScript",0,M,"setClerkJSLoadingErrorPackageName",0,x,"setClerkJsLoadingErrorPackageName",0,x],291142),e.i(991455);var D=e.i(273634),D=D,F=r,K=e.i(412126);let $=new Set,V=(e,t,i)=>{let r=(0,K.a)()||(0,K.i)(),s=i??e;$.has(s)||r||($.add(s),console.warn(`Clerk - DEPRECATION WARNING: "${e}" is deprecated and will be removed in the next major release.
11${t}`))};var J=e.i(879108);let G=(e,t,i,r,s)=>{let{notify:n}=s||{},l=e.get(i);l||(l=[],e.set(i,l)),l.push(r),n&&t.has(i)&&r(t.get(i))},H=(e,t,i)=>(e.get(t)||[]).map(e=>e(i)),q=(e,t,i)=>{let r=e.get(t);r&&(i?r.splice(r.indexOf(i)>>>0,1):e.set(t,[]))},X="status",Y=["http:","https:","wails:","chrome-extension:"],Q=/^[/\\][/\\]/,Z=(0,i.z)(({clerk:e,...t})=>{let{client:i,session:r}=e,s=(i.signedInSessions?.length??0)>0;return d.default.useEffect(()=>{null===r&&s?e.redirectToAfterSignOut():e.redirectToSignIn(t)},[]),null},"RedirectToSignIn"),ee=(0,i.z)(({clerk:e,...t})=>(d.default.useEffect(()=>{e.redirectToSignUp(t)},[]),null),"RedirectToSignUp"),et=(0,i.z)(({clerk:e,...t})=>(d.default.useEffect(()=>{e.redirectToTasks(t)},[]),null),"RedirectToTasks"),ei=(0,i.z)(({clerk:e})=>(d.default.useEffect(()=>{V("RedirectToUserProfile","Use the `redirectToUserProfile()` method instead."),e.redirectToUserProfile()},[]),null),"RedirectToUserProfile"),er=(0,i.z)(({clerk:e})=>(d.default.useEffect(()=>{V("RedirectToOrganizationProfile","Use the `redirectToOrganizationProfile()` method instead."),e.redirectToOrganizationProfile()},[]),null),"RedirectToOrganizationProfile"),es=(0,i.z)(({clerk:e})=>(d.default.useEffect(()=>{V("RedirectToCreateOrganization","Use the `redirectToCreateOrganization()` method instead."),e.redirectToCreateOrganization()},[]),null),"RedirectToCreateOrganization"),en=(0,i.z)(({clerk:e,...t})=>(d.default.useEffect(()=>{e.handleRedirectCallback(t)},[]),null),"AuthenticateWithRedirectCallback"),el=()=>({pathRoot:"",attempts:null,error:null,expireAt:null,externalVerificationRedirectURL:null,nonce:null,message:null,status:null,strategy:null,verifiedAtClient:null,verifiedFromTheSameClient:()=>!1,reload(){throw Error("reload() called before Clerk is loaded")},__internal_toSnapshot:()=>({object:"verification",id:"",attempts:null,error:{code:"",message:""},expire_at:null,externalVerificationRedirectURL:null,nonce:null,message:null,status:null,strategy:null,verified_at_client:null})}),eo=()=>({...el(),supportedStrategies:[],nextAction:"",reload(){throw Error("reload() called before Clerk is loaded")},__internal_toSnapshot(){return{...el().__internal_toSnapshot(),next_action:this.nextAction,supported_strategies:this.supportedStrategies}}});var ea=class{constructor(e){this.isomorphicClerk=e,this.signInSignalProxy=this.buildSignInProxy(),this.signUpSignalProxy=this.buildSignUpProxy(),this.waitlistSignalProxy=this.buildWaitlistProxy()}signInSignal(){return this.signInSignalProxy}signUpSignal(){return this.signUpSignalProxy}waitlistSignal(){return this.waitlistSignalProxy}get __internal_waitlist(){return this.state.__internal_waitlist}checkoutSignal(e){return this.buildCheckoutProxy(e)}buildSignInProxy(){let e=this.gateProperty.bind(this),t=()=>this.client.signIn.__internal_future;return{errors:{fields:{identifier:null,password:null,code:null},raw:null,global:null},fetchStatus:"idle",signIn:{status:"needs_identifier",availableStrategies:[],get isTransferable(){return e(t,"isTransferable",!1)},get id(){return e(t,"id",void 0)}
11,get supportedFirstFactors(){return e(t,"supportedFirstFactors",[])},get supportedSecondFactors(){return e(t,"supportedSecondFactors",[])},get secondFactorVerification(){return e(t,"secondFactorVerification",{status:null,error:null,expireAt:null,externalVerificationRedirectURL:null,nonce:null,attempts:null,message:null,strategy:null,verifiedAtClient:null,verifiedFromTheSameClient:()=>!1,__internal_toSnapshot:()=>{throw Error("__internal_toSnapshot called before Clerk is loaded")},pathRoot:"",reload:()=>{throw Error("__internal_toSnapshot called before Clerk is loaded")}})},get identifier(){return e(t,"identifier",null)},get createdSessionId(){return e(t,"createdSessionId",null)},get userData(){return e(t,"userData",{})},get firstFactorVerification(){return e(t,"firstFactorVerification",{status:null,error:null,expireAt:null,externalVerificationRedirectURL:null,nonce:null,attempts:null,message:null,strategy:null,verifiedAtClient:null,verifiedFromTheSameClient:()=>!1,__internal_toSnapshot:()=>{throw Error("__internal_toSnapshot called before Clerk is loaded")},pathRoot:"",reload:()=>{throw Error("__internal_toSnapshot called before Clerk is loaded")}})},get canBeDiscarded(){return e(t,"canBeDiscarded",!1)},get protectCheck(){return e(t,"protectCheck",null)},create:this.gateMethod(t,"create"),password:this.gateMethod(t,"password"),sso:this.gateMethod(t,"sso"),finalize:this.gateMethod(t,"finalize"),reset:this.gateMethod(t,"reset"),submitProtectCheck:this.gateMethod(t,"submitProtectCheck"),emailCode:this.wrapMethods(()=>t().emailCode,["sendCode","verifyCode"]),emailLink:this.wrapStruct(()=>t().emailLink,["sendLink","waitForVerification"],["verification"],{verification:null}),resetPasswordEmailCode:this.wrapMethods(()=>t().resetPasswordEmailCode,["sendCode","verifyCode","submitPassword"]),resetPasswordPhoneCode:this.wrapMethods(()=>t().resetPasswordPhoneCode,["sendCode","verifyCode","submitPassword"]),phoneCode:this.wrapMethods(()=>t().phoneCode,["sendCode","verifyCode"]),mfa:this.wrapMethods(()=>t().mfa,["sendPhoneCode","verifyPhoneCode","sendEmailCode","verifyEmailCode","verifyTOTP","verifyBackupCode"]),ticket:this.gateMethod(t,"ticket"),passkey:this.gateMethod(t,"passkey"),web3:this.gateMethod(t,"web3")}}}buildSignUpProxy(){let e=this.gateProperty.bind(this),t=this.gateMethod.bind(this),i=()=>this.client.signUp.__internal_future;return{errors:{fields:{firstName:null,lastName:null,emailAddress:null,phoneNumber:null,password:null,username:null,code:null,captcha:null,legalAccepted:null},raw:null,global:null},fetchStatus:"idle",signUp:{get id(){return e(i,"id",void 0)},get requiredFields(){return e(i,"requiredFields",[])},get optionalFields(){return e(i,"optionalFields",[])},get missingFields(){return e(i,"missingFields",[])},get username(){return e(i,"username",null)},get firstName(){return e(i,"firstName",null)},get lastName(){return e(i,"lastName",null)},get emailAddress(){return e(i,"emailAddress",null)},get phoneNumber(){return e(i,"phoneNumber",null)},get web3Wallet(){return e(i,"web3Wallet",null)},get hasPassword(){return e(i,"hasPassword",!1)},get unsafeMetadata(){return e(i,"unsafeMetadata",{})},get createdSessionId(){return e(i,"createdSessionId",null)},get createdUserId(){return e(i,"createdUserId",null)},get abandonAt(){return e(i,"abandonAt",null)},get legalAcceptedAt(){return e(i,"legalAcceptedAt",null)},get locale(){return e(i,"locale",null)},get status(){return e(i,"status","missing_requirements")},get unverifiedFields(){return e(i,"unverifiedFields",[])},get isTransferable(){return e(i,"isTransferable",!1)},get canBeDiscarded(){return e(i,"canBeDiscarded",!1)},get protectCheck(){return e(i,"protectCheck",null)},create:t(i,"create"),update:t(i,"update"),sso:t(i,"sso"),password:t(i,"password"),ticket:t(i,"ticket"),web3:t(i,"web3"),finalize:t(i,"finalize"),reset:t(i,"reset"),submitProtectCheck:t(i,"submitProtectCheck"),verifications:this.wrapStruct(()=>i().verifications,["sendEmailCode","verifyEmailCode","sendEmailLink","waitForEmailLinkVerification","sendPhoneCode","verifyPhoneCode"],["emailAddress","phoneNumber","web3Wallet","externalAccount","emailLinkVerification"],{emailAddress:eo(),phoneNumber:eo(),web3Wallet:eo(),externalAccount:eo(),emailLinkVerification:null})}}}buildWaitlistProxy(){let e=this.gateProperty.bind(this),t=this.gateMethod.bind(this),i=()=>this.state.__internal_waitlist;return{errors:{fields:{emailAddress:null},raw:null,global:null},fetchStatus:"idle",waitlist:{pathRoot:"/waitlist",get id(){return e(i,"id","")},get createdAt(){return e(i,"createdAt",null)},get updatedAt(){return e(i,"updatedAt",null)},join:t(i,"join"),reload:t(i,"reload")}}}buildCheckoutProxy(e){let t=this.gateProperty.bind(this),i=()=>this.checkout(e),r=()=>i().checkout;return{errors:{raw:null,global:null},fetchStatus:"idle",checkout:{get status(){return t(r,"status","needs_initialization")},get externalClientSecret(){return t(r,"externalClientSecret",null)},get externalGatewayId(){return t(r,"externalGatewayId",null)},get paymentMethod(){return t(r,"paymentMethod",null)},get plan(){return t(r,"plan",null)},get planPeriod(){return t(r,"planPeriod",null)},get totals(){return t(r,"totals",null)},get isImmediatePlanChange(){return t(r,"isImmediatePlanChange",!1)},get freeTrialEndsAt(){return t(r,"freeTrialEndsAt",null)},get payer(){return t(r,"payer",null)},get planPeriodStart(){return t(r,"planPeriodStart",null)},get needsPaymentMethod(){return t(r,"needsPaymentMethod",null)},start:this.gateMethod(r,"start"),update:this.gateMethod(r,"update"),confirm:this.gateMethod(r,"confirm"),finalize:this.gateMethod(r,"finalize")}}}__internal_effect(e){throw Error("__internal_effect called before Clerk is loaded")}__internal_computed(e){throw Error("__internal_computed called before Clerk is loaded")}get state(){let e=this.isomorphicClerk.__internal_state;if(!e)throw Error("Clerk state not ready");return e}get client(){let e=this.isomorphicClerk.client;if(!e)throw Error("Clerk client not ready");return e}get checkout(){let e=this.isomorphicClerk.__experimental_checkout;if(!e)throw Error("Clerk checkout not ready");return e}gateProperty(e,t,i){return(0,J.inBrowser)()&&this.isomorphicClerk.loaded?e()[t]:i}gateMethod(e,i){return async(...r)=>{if(!(0,J.inBrowser)())return t.r.throw(`Attempted to call a method (${i}) that is not supported on the server.`);this.isomorphicClerk.loaded||await new Promise(e=>this.isomorphicClerk.addOnLoaded(e));let s=e();return s[i].apply(s,r)}}wrapMethods(e,t){return Object.fromEntries(t.map(t=>[t,this.gateMethod(e,t)]))}wrapStruct(e,t,i,r){let s={};for(let i of t)s[i]=this.gateMethod(e,i);for(let t of i)Object.defineProperty(s,t,{get:()=>this.gateProperty(e,t,r[t]),enumerable:!0});return s}};void 0===globalThis.__BUILD_DISABLE_RHC__&&(globalThis.__BUILD_DISABLE_RHC__=!1);let eh={name:"@clerk/react",version:"6.14.8",environment:"production"};var eu=class e{#e;#t;#i;#r;#s;#n;get publishableKey(){return this.#r}get loaded(){return this.clerkjs?.loaded||!1}get status(){return this.clerkjs?this.clerkjs?.status||(this.clerkjs.loaded?"ready":"loading"):this.#e}static #l;static getOrCreateInstance(t){return(0,J.inBrowser)()&&this.#l&&(!t.Clerk||this.#l.Clerk===t.Clerk)&&this.#l.publishableKey===t.publishableKey||(this.#l=ne
11w e(t)),this.#l}static clearInstance(){this.#l=null}get domain(){return"u">typeof window&&window.location?(0,D.t)(this.#t,new URL(window.location.href),""):"function"==typeof this.#t?t.r.throw(i.J):this.#t||""}get proxyUrl(){return"u">typeof window&&window.location?(0,D.t)(this.#i,new URL(window.location.href),""):"function"==typeof this.#i?t.r.throw(i.J):this.#i||""}__internal_getOption(e){return this.clerkjs?.__internal_getOption?this.clerkjs?.__internal_getOption(e):this.options[e]}get __internal_moduleManager(){return this.clerkjs?.__internal_moduleManager}get __internal_protectChallengeLoadTimeoutMs(){return this.clerkjs?.__internal_protectChallengeLoadTimeoutMs}constructor(e){this.clerkjs=null,this.preopenOneTap=null,this.preopenUserVerification=null,this.preopenEnableOrganizationsPrompt=null,this.preopenSignIn=null,this.preopenCheckout=null,this.preopenPlanDetails=null,this.preopenSubscriptionDetails=null,this.preopenSignUp=null,this.preopenUserProfile=null,this.preopenOrganizationProfile=null,this.preopenInviteMembers=null,this.preopenCreateOrganization=null,this.preOpenWaitlist=null,this.premountSignInNodes=new Map,this.premountSignUpNodes=new Map,this.premountUserAvatarNodes=new Map,this.premountUserProfileNodes=new Map,this.premountUserButtonNodes=new Map,this.premountOrganizationProfileNodes=new Map,this.premountCreateOrganizationNodes=new Map,this.premountOrganizationSwitcherNodes=new Map,this.premountOrganizationListNodes=new Map,this.premountMethodCalls=new Map,this.premountWaitlistNodes=new Map,this.premountPricingTableNodes=new Map,this.premountAPIKeysNodes=new Map,this.premountConfigureSSONodes=new Map,this.premountOAuthConsentNodes=new Map,this.premountTaskChooseOrganizationNodes=new Map,this.premountTaskResetPasswordNodes=new Map,this.premountTaskSetupMFANodes=new Map,this.premountAddListenerCalls=new Map,this.loadedListeners=[],this.#e="loading",this.#s=(()=>{let e,t,i;return e=new Map,t=new Map,i=new Map,{on:(...i)=>G(e,t,...i),prioritizedOn:(...e)=>G(i,t,...e),emit:(r,s)=>{t.set(r,s),H(i,r,s),H(e,r,s)},off:(...t)=>q(e,...t),prioritizedOff:(...e)=>q(i,...e),internal:{retrieveListeners:t=>e.get(t)||[]}}})(),this.__internal_windowNavigate=(e,t)=>{let i=this.clerkjs;"function"==typeof i?.__internal_windowNavigate?i.__internal_windowNavigate(e,t):(0,J.inBrowser)()&&function(e,t){if("string"==typeof e&&Q.test(function(e){let t=0;for(;t<e.length&&32>=e.charCodeAt(t);)t++;let i="";for(let r=t;r<e.length;r++){let t=e.charCodeAt(r);9!==t&&10!==t&&13!==t&&(i+=e[r])}return i}(e)))return console.warn(`Clerk: scheme-relative navigation to "${e}" is not allowed. Provide a same-origin path or an absolute URL.`);let i=new URL(e,window.location.href);(t?.allowedProtocols??Y).includes(i.protocol)?(window.dispatchEvent(new CustomEvent("clerk:beforeunload")),window.location.href=i.href):console.warn(`Clerk: "${i.protocol}" is not a valid navigation protocol. Aborting navigation. If you think this is a mistake, please open an issue.`)}(e,{allowedProtocols:t?.useStaticAllowlistOnly?Y:[...Y,...this.options.allowedRedirectProtocols??[]]})},this.setProtectAssertion=e=>{let t=()=>this.clerkjs?.setProtectAssertion(e);this.clerkjs&&this.loaded?t():this.premountMethodCalls.set("setProtectAssertion",t)},this.buildSignInUrl=e=>{let t=()=>this.clerkjs?.buildSignInUrl(e)||"";if(this.clerkjs&&this.loaded)return t();this.premountMethodCalls.set("buildSignInUrl",t)},this.buildSignUpUrl=e=>{let t=()=>this.clerkjs?.buildSignUpUrl(e)||"";if(this.clerkjs&&this.loaded)return t();this.premountMethodCalls.set("buildSignUpUrl",t)},this.buildAfterSignInUrl=(...e)=>{let t=()=>this.clerkjs?.buildAfterSignInUrl(...e)||"";if(this.clerkjs&&this.loaded)return t();this.premountMethodCalls.set("buildAfterSignInUrl",t)},this.buildAfterSignUpUrl=(...e)=>{let t=()=>this.clerkjs?.buildAfterSignUpUrl(...e)||"";if(this.clerkjs&&this.loaded)return t();this.premountMethodCalls.set("buildAfterSignUpUrl",t)},this.buildAfterSignOutUrl=()=>{let e=()=>this.clerkjs?.buildAfterSignOutUrl()||"";if(this.clerkjs&&this.loaded)return e();this.premountMethodCalls.set("buildAfterSignOutUrl",e)},this.buildNewSubscriptionRedirectUrl=()=>{let e=()=>this.clerkjs?.buildNewSubscriptionRedirectUrl()||"";if(this.clerkjs&&this.loaded)return e();this.premountMethodCalls.set("buildNewSubscriptionRedirectUrl",e)},this.buildAfterMultiSessionSingleSignOutUrl=()=>{let e=()=>this.clerkjs?.buildAfterMultiSessionSingleSignOutUrl()||"";if(this.clerkjs&&this.loaded)return e();this.premountMethodCalls.set("buildAfterMultiSessionSingleSignOutUrl",e)},this.buildUserProfileUrl=()=>{let e=()=>this.clerkjs?.buildUserProfileUrl()||"";if(this.clerkjs&&this.loaded)return e();this.premountMethodCalls.set("buildUserProfileUrl",e)},this.buildCreateOrganizationUrl=()=>{let e=()=>this.clerkjs?.buildCreateOrganizationUrl()||"";if(this.clerkjs&&this.loaded)return e();this.premountMethodCalls.set("buildCreateOrganizationUrl",e)},this.buildOrganizationProfileUrl=()=>{let e=()=>this.clerkjs?.buildOrganizationProfileUrl()||"";if(this.clerkjs&&this.loaded)return e();this.premountMethodCalls.set("buildOrganizationProfileUrl",e)},this.buildWaitlistUrl=()=>{let e=()=>this.clerkjs?.buildWaitlistUrl()||"";if(this.clerkjs&&this.loaded)return e();this.premountMethodCalls.set("buildWaitlistUrl",e)},this.buildTasksUrl=()=>{let e=()=>this.clerkjs?.buildTasksUrl()||"";if(this.clerkjs&&this.loaded)return e();this.premountMethodCalls.set("buildTasksUrl",e)},this.buildUrlWithAuth=e=>{let t=()=>this.clerkjs?.buildUrlWithAuth(e)||"";if(this.clerkjs&&this.loaded)return t();this.premountMethodCalls.set("buildUrlWithAuth",t)},this.handleUnauthenticated=async()=>{let e=()=>this.clerkjs?.handleUnauthenticated();this.clerkjs&&this.loaded?e():this.premountMethodCalls.set("handleUnauthenticated",e)},this.on=(...e)=>{if(this.clerkjs?.on)return this.clerkjs.on(...e);this.#s.on(...e)}
11,this.off=(...e)=>{if(this.clerkjs?.off)return this.clerkjs.off(...e);this.#s.off(...e)},this.addOnLoaded=e=>{this.loadedListeners.push(e),this.loaded&&this.emitLoaded()},this.emitLoaded=()=>{this.loadedListeners.forEach(e=>e()),this.loadedListeners=[]},this.beforeLoad=e=>{if(!e)throw Error("Failed to hydrate latest Clerk JS")},this.replayInterceptedInvocations=e=>{if(!e)throw Error("Failed to hydrate latest Clerk JS");return this.clerkjs=e,this.premountMethodCalls.forEach(e=>e()),this.premountAddListenerCalls.forEach((t,i)=>{t.handlers.nativeUnsubscribe=e.addListener(i,t.options)}),this.#s.internal.retrieveListeners("status")?.forEach(e=>{this.on("status",e,{notify:!0})}),null!==this.preopenSignIn&&e.openSignIn(this.preopenSignIn),null!==this.preopenCheckout&&e.__internal_openCheckout(this.preopenCheckout),null!==this.preopenPlanDetails&&e.__internal_openPlanDetails(this.preopenPlanDetails),null!==this.preopenSubscriptionDetails&&e.__internal_openSubscriptionDetails(this.preopenSubscriptionDetails),null!==this.preopenSignUp&&e.openSignUp(this.preopenSignUp),null!==this.preopenUserProfile&&e.openUserProfile(this.preopenUserProfile),null!==this.preopenUserVerification&&e.__internal_openReverification(this.preopenUserVerification),null!==this.preopenOneTap&&e.openGoogleOneTap(this.preopenOneTap),null!==this.preopenOrganizationProfile&&e.openOrganizationProfile(this.preopenOrganizationProfile),null!==this.preopenInviteMembers&&e.openInviteMembers(this.preopenInviteMembers),null!==this.preopenCreateOrganization&&e.openCreateOrganization(this.preopenCreateOrganization),null!==this.preOpenWaitlist&&e.openWaitlist(this.preOpenWaitlist),this.preopenEnableOrganizationsPrompt&&e.__internal_openEnableOrganizationsPrompt(this.preopenEnableOrganizationsPrompt),this.premountSignInNodes.forEach((t,i)=>{e.mountSignIn(i,t)}),this.premountSignUpNodes.forEach((t,i)=>{e.mountSignUp(i,t)}),this.premountUserProfileNodes.forEach((t,i)=>{e.mountUserProfile(i,t)}),this.premountUserAvatarNodes.forEach((t,i)=>{e.mountUserAvatar(i,t)}),this.premountUserButtonNodes.forEach((t,i)=>{e.mountUserButton(i,t)}),this.premountOrganizationListNodes.forEach((t,i)=>{e.mountOrganizationList(i,t)}),this.premountWaitlistNodes.forEach((t,i)=>{e.mountWaitlist(i,t)}),this.premountPricingTableNodes.forEach((t,i)=>{e.mountPricingTable(i,t)}),this.premountAPIKeysNodes.forEach((t,i)=>{e.mountAPIKeys(i,t)}),this.premountConfigureSSONodes.forEach((t,i)=>{e.__internal_mountConfigureSSO(i,t)}),this.premountOAuthConsentNodes.forEach((t,i)=>{e.__internal_mountOAuthConsent(i,t)}),this.premountTaskChooseOrganizationNodes.forEach((t,i)=>{e.mountTaskChooseOrganization(i,t)}),this.premountTaskResetPasswordNodes.forEach((t,i)=>{e.mountTaskResetPassword(i,t)}),this.premountTaskSetupMFANodes.forEach((t,i)=>{e.mountTaskSetupMFA(i,t)}),void 0===this.clerkjs.status&&this.#s.emit(X,"ready"),this.emitLoaded(),this.clerkjs},this.__experimental_checkout=(...e)=>this.loaded&&this.clerkjs?this.clerkjs.__experimental_checkout(...e):this.#n.checkoutSignal(...e),this.__internal_updateProps=async e=>{let t=await this.#o();if(t&&"__internal_updateProps"in t)return t.__internal_updateProps(e)},this.setActive=e=>this.clerkjs?this.clerkjs.setActive(e):Promise.reject(),this.openSignIn=e=>{this.clerkjs&&this.loaded?this.clerkjs.openSignIn(e):this.preopenSignIn=e},this.closeSignIn=()=>{this.clerkjs&&this.loaded?this.clerkjs.closeSignIn():this.preopenSignIn=null},this.__internal_openCheckout=e=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_openCheckout(e):this.preopenCheckout=e},this.__internal_closeCheckout=()=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_closeCheckout():this.preopenCheckout=null},this.__internal_openPlanDetails=e=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_openPlanDetails(e):this.preopenPlanDetails=e},this.__internal_closePlanDetails=()=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_closePlanDetails():this.preopenPlanDetails=null},this.__internal_openSubscriptionDetails=e=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_openSubscriptionDetails(e):this.preopenSubscriptionDetail
11s=e??null},this.__internal_closeSubscriptionDetails=()=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_closeSubscriptionDetails():this.preopenSubscriptionDetails=null},this.__internal_openReverification=e=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_openReverification(e):this.preopenUserVerification=e},this.__internal_closeReverification=()=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_closeReverification():this.preopenUserVerification=null},this.__internal_openEnableOrganizationsPrompt=e=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_openEnableOrganizationsPrompt(e):this.preopenEnableOrganizationsPrompt=e},this.__internal_closeEnableOrganizationsPrompt=()=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_closeEnableOrganizationsPrompt():this.preopenEnableOrganizationsPrompt=null},this.openGoogleOneTap=e=>{this.clerkjs&&this.loaded?this.clerkjs.openGoogleOneTap(e):this.preopenOneTap=e},this.closeGoogleOneTap=()=>{this.clerkjs&&this.loaded?this.clerkjs.closeGoogleOneTap():this.preopenOneTap=null},this.openUserProfile=e=>{this.clerkjs&&this.loaded?this.clerkjs.openUserProfile(e):this.preopenUserProfile=e},this.closeUserProfile=()=>{this.clerkjs&&this.loaded?this.clerkjs.closeUserProfile():this.preopenUserProfile=null},this.openOrganizationProfile=e=>{this.clerkjs&&this.loaded?this.clerkjs.openOrganizationProfile(e):this.preopenOrganizationProfile=e},this.closeOrganizationProfile=()=>{this.clerkjs&&this.loaded?this.clerkjs.closeOrganizationProfile():this.preopenOrganizationProfile=null},this.openInviteMembers=e=>{this.clerkjs&&this.loaded?this.clerkjs.openInviteMembers(e):this.preopenInviteMembers=e},this.closeInviteMembers=()=>{this.clerkjs&&this.loaded?this.clerkjs.closeInviteMembers():this.preopenInviteMembers=null},this.openCreateOrganization=e=>{this.clerkjs&&this.loaded?this.clerkjs.openCreateOrganization(e):this.preopenCreateOrganization=e},this.closeCreateOrganization=()=>{this.clerkjs&&this.loaded?this.clerkjs.closeCreateOrganization():this.preopenCreateOrganization=null},this.openWaitlist=e=>{this.clerkjs&&this.loaded?this.clerkjs.openWaitlist(e):this.preOpenWaitlist=e},this.closeWaitlist=()=>{this.clerkjs&&this.loaded?this.clerkjs.closeWaitlist():this.preOpenWaitlist=null},this.openSignUp=e=>{this.clerkjs&&this.loaded?this.clerkjs.openSignUp(e):this.preopenSignUp=e},this.closeSignUp=()=>{this.clerkjs&&this.loaded?this.clerkjs.closeSignUp():this.preopenSignUp=null},this.mountSignIn=(e,t)=>{this.clerkjs&&this.loaded?this.clerkjs.mountSignIn(e,t):this.premountSignInNodes.set(e,t)},this.unmountSignIn=e=>{this.clerkjs&&this.loaded?this.clerkjs.unmountSignIn(e):this.premountSignInNodes.delete(e)},this.mountSignUp=(e,t)=>{this.clerkjs&&this.loaded?this.clerkjs.mountSignUp(e,t):this.premountSignUpNodes.set(e,t)},this.unmountSignUp=e=>{this.clerkjs&&this.loaded?this.clerkjs.unmountSignUp(e):this.premountSignUpNodes.delete(e)},this.mountUserAvatar=(e,t)=>{this.clerkjs&&this.loaded?this.clerkjs.mountUserAvatar(e,t):this.premountUserAvatarNodes.set(e,t)},this.unmountUserAvatar=e=>{this.clerkjs&&this.loaded?this.clerkjs.unmountUserAvatar(e):this.premountUserAvatarNodes.delete(e)},this.mountUserProfile=(e,t)=>{this.clerkjs&&this.loaded?this.clerkjs.mountUserProfile(e,t):this.premountUserProfileNodes.set(e,t)},this.unmountUserProfile=e=>{this.clerkjs&&this.loaded?this.clerkjs.unmountUserProfile(e):this.premountUserProfileNodes.delete(e)},this.mountOrganizationProfile=(e,t)=>{this.clerkjs&&this.loaded?this.clerkjs.mountOrganizationProfile(e,t):this.premountOrganizationProfileNodes.set(e,t)},this.unmountOrganizationProfile=e=>{this.clerkjs&&this.loaded?this.clerkjs.unmountOrganizationProfile(e):this.premountOrganizationProfileNodes.delete(e)},this.mountCreateOrganization=(e,t)=>{this.clerkjs&&this.loaded?this.clerkjs.mountCreateOrganization(e,t):this.premountCreateOrganizationNodes.set(e,t)},this.unmountCreateOrganization=e=>{this.clerkjs&&this.loaded?this.clerkjs.unmountCreateOrganization(e):this.premountCreateOrganizationNodes.delete(e)},this.mountOrganizationSwitcher=(e,t)=>{this.clerkjs&&this.loaded?this.clerkjs.mountOrganizationSwitcher(e,t):this.premountOrganizationSwitcherNodes.set(e,t)},this.unmountOrganizationSwitcher=e=>{this.clerkjs&&this.loaded?this.clerkjs.unmountOrganizationSwitcher(e):this.premountOrganizationSwitcherNodes.delete(e)},this.__experimental_prefetchOrganizationSwitcher=()=>{let e=()=>this.clerkjs?.__experimental_prefetchOrganizationSwitcher();this.clerkjs&&this.loaded?e():this.premountMethodCalls.set("__experimental_prefetchOrganizationSwitcher",e)},this.mountOrganizationList=(e,t)=>
11{this.clerkjs&&this.loaded?this.clerkjs.mountOrganizationList(e,t):this.premountOrganizationListNodes.set(e,t)},this.unmountOrganizationList=e=>{this.clerkjs&&this.loaded?this.clerkjs.unmountOrganizationList(e):this.premountOrganizationListNodes.delete(e)},this.mountUserButton=(e,t)=>{this.clerkjs&&this.loaded?this.clerkjs.mountUserButton(e,t):this.premountUserButtonNodes.set(e,t)},this.unmountUserButton=e=>{this.clerkjs&&this.loaded?this.clerkjs.unmountUserButton(e):this.premountUserButtonNodes.delete(e)},this.mountWaitlist=(e,t)=>{this.clerkjs&&this.loaded?this.clerkjs.mountWaitlist(e,t):this.premountWaitlistNodes.set(e,t)},this.unmountWaitlist=e=>{this.clerkjs&&this.loaded?this.clerkjs.unmountWaitlist(e):this.premountWaitlistNodes.delete(e)},this.mountPricingTable=(e,t)=>{this.clerkjs&&this.loaded?this.clerkjs.mountPricingTable(e,t):this.premountPricingTableNodes.set(e,t)},this.unmountPricingTable=e=>{this.clerkjs&&this.loaded?this.clerkjs.unmountPricingTable(e):this.premountPricingTableNodes.delete(e)},this.mountAPIKeys=(e,t)=>{this.clerkjs&&this.loaded?this.clerkjs.mountAPIKeys(e,t):this.premountAPIKeysNodes.set(e,t)},this.unmountAPIKeys=e=>{this.clerkjs&&this.loaded?this.clerkjs.unmountAPIKeys(e):this.premountAPIKeysNodes.delete(e)},this.__internal_mountConfigureSSO=(e,t)=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_mountConfigureSSO(e,t):this.premountConfigureSSONodes.set(e,t)},this.__internal_unmountConfigureSSO=e=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_unmountConfigureSSO(e):this.premountConfigureSSONodes.delete(e)},this.__internal_mountOAuthConsent=(e,t)=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_mountOAuthConsent(e,t):this.premountOAuthConsentNodes.set(e,t)},this.__internal_unmountOAuthConsent=e=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_unmountOAuthConsent(e):this.premountOAuthConsentNodes.delete(e)},this.mountOAuthConsent=(e,t)=>{this.__internal_mountOAuthConsent(e,t)},this.unmountOAuthConsent=e=>{this.__internal_unmountOAuthConsent(e)},this.mountTaskChooseOrganization=(e,t)=>{this.clerkjs&&this.loaded?this.clerkjs.mountTaskChooseOrganization(e,t):this.premountTaskChooseOrganizationNodes.set(e,t)},this.unmountTaskChooseOrganization=e=>{this.clerkjs&&this.loaded?this.clerkjs.unmountTaskChooseOrganization(e):this.premountTaskChooseOrganizationNodes.delete(e)},this.mountTaskResetPassword=(e,t)=>{this.clerkjs&&this.loaded?this.clerkjs.mountTaskResetPassword(e,t):this.premountTaskResetPasswordNodes.set(e,t)},this.unmountTaskResetPassword=e=>{this.clerkjs&&this.loaded?this.clerkjs.unmountTaskResetPassword(e):this.premountTaskResetPasswordNodes.delete(e)},this.mountTaskSetupMFA=(e,t)=>{this.clerkjs&&this.loaded?this.clerkjs.mountTaskSetupMFA(e,t):this.premountTaskSetupMFANodes.set(e,t)},this.unmountTaskSetupMFA=e=>{this.clerkjs&&this.loaded?this.clerkjs.unmountTaskSetupMFA(e):this.premountTaskSetupMFANodes.delete(e)},this.addListener=(e,t)=>{if(this.clerkjs)return this.clerkjs.addListener(e,t);{let i=()=>{let t=this.premountAddListenerCalls.get(e);t?.handlers&&(t?.handlers.nativeUnsubscribe?.(),this.premountAddListenerCalls.delete(e))};return this.premountAddListenerCalls.set(e,{options:t,handlers:{unsubscribe:i,nativeUnsubscribe:void 0}}),i}},this.navigate=e=>{let t=()=>this.clerkjs?.navigate(e);this.clerkjs&&this.loaded?t():this.premountMethodCalls.set("navigate",t)},this.redirectWithAuth=async(...e)=>{let t=()=>this.clerkjs?.redirectWithAuth(...e);return this.clerkjs&&this.loaded?t():void this.premountMethodCalls.set("redirectWithAuth",t)},this.redirectToSignIn=async e=>{let t=()=>this.clerkjs?.redirectToSignIn(e);return this.clerkjs&&this.loaded?t():void this.premountMethodCalls.set("redirectToSignIn",t)},this.redirectToSignUp=async e=>{let t=()=>this.clerkjs?.redirectToSignUp(e);return this.clerkjs&&this.loaded?t():void this.premountMethodCalls.set("redirectToSignUp",t)},this.redirectToUserProfile=async()=>{let e=()=>this.clerkjs?.redirectToUserProfile();return this.clerkjs&&this.loaded?e():void this.premountMethodCalls.set("redirectToUserProfile",e)},this.redirectToAfterSignUp=()=>{let e=()=>this.clerkjs?.redirectToAfterSignUp();if(this.clerkjs&&this.loaded)return e();this.premountMethodCalls.set("redirectToAfterSignUp",e)},this.redirectToAfterSignIn=()=>{let e=()=>this.clerkjs?.redirectToAfterSignIn();this.clerkjs&&this.loaded?e():this.premountMethodCalls.set("redirectToAfterSignIn",e)},this.redirectToAfterSignOut=()=>{let e=()=>this.clerkjs?.redirectToAfterSignOut();this.clerkjs&&this.loaded?e():this.premountMethodCalls.set("redirectToAfterSignOut",e)},this.redirectToOrganizationProfile=async()=>{let e=()=>this.clerkjs?.redirectToOrganizationProfile();return this.clerkjs&&this.loaded?e():void this.premountMethodCalls.set("redirectToOrganizationProfile",e)},this.redirectToCreateOrganization=async()=>{let e=()=>this.clerkjs?.redirectToCreateOrganization();return this.clerkjs&&this.loaded?e():void this.premountMethodCalls.set("redirectToCreateOrganization",e)},this.redirectToWaitlist=async()=>{let e=()=>this.clerkjs?.redirectToWaitlist();return this.clerkjs&&this.loaded?e():void this.premountMethodCalls.set("redirectToWaitlist",e)},this.redirectToTasks=async e=>{let t=()=>this.clerkjs?.redirectToTasks(e);return this.clerkjs&&this.loaded?t():void this.premountMethodCalls.set("redirectToTasks",t)},this.handleRedirectCallback=async e=>{let t=()=>this.clerkjs?.handleRedirectCallback(e);this.clerkjs&&this.loaded?t()?.catch(()=>{}):this.premountMethodCalls.set("handleRedirectCallback",t)},this.__internal_resumeAfterProtectCheck=async(e,t)=>{let i=()=>{let i=this.clerkjs;"function"==typeof i?.__internal_resumeAfterProtectCheck&&i.__internal_resumeAfterProtectCheck(e,t)?.catch(()=>{})};this.clerkjs&&this.loaded?i():this.premountMethodCalls.set("__internal_resumeAfterProtectCheck",i)},this.handleGoogleOneTapCallback=async(e,t)=>{let i=()=>this.clerkjs?.handleGoogleOneTapCallback(e,t);this.clerkjs&&this.loaded?i()?.catch(()=>{}):this.premountMethodCalls.set("handleGoogleOneTapCallback",i)},this.__internal_handleResourceCallback=async(e,t,i)=>{let r=()=>this.clerkjs?.__internal_handleResourceCallback(e,t,i);if(this.clerkjs&&this.loaded)return r();this.premountMethodCalls.set("__internal_handleResourceCallback",r)},this.handleEmailLinkVerification=async e=>{let t=()=>this.clerkjs?.handleEmailLinkVerification(e);if(this.clerkjs&&this.loaded)return t();this.premountMethodCalls.set("handleEmailLinkVerification",t)},this.authenticateWithMetamask=async e=>{let t=()=>this.clerkjs?.authenticateWithMetamask(e);if(this.clerkjs&&this.loaded)return t();this.premountMethodCalls.set("authenticateWithMetamask",t)},this.authenticateWithCoinbaseWallet=async e=>{let t=()=>this.clerkjs?.authenticateWithCoinbaseWallet(e);if(this.clerkjs&&this.loaded)return t();this.premountMethodCalls.set("authenticateWithCoinbaseWallet",t)},this.authenticateWithBase=async e=>{let t=()=>this.clerkjs?.authenticateWithBase(e);if(this.clerkjs&&this.loaded)return t();this.premountMethodCalls.set("authenticateWithBase",t)},this.authenticateWithOKXWallet=async e=>{let t=()=>this.clerkjs?.authenticateWithOKXWallet(e);if(this.clerkjs&&this.loaded)return t();this.premountMethodCalls.set("authenticateWithOKXWallet",t)},this.authenticateWithSolana=async e=>{let t=()=>this.clerkjs?.authenticateWithSolana(e);if(this.clerkjs&&this.loaded)return t();this.premountMethodCalls.set("authenticateWithSolana",t)},this.authenticateWithWeb3=async e=>{let t=()=>this.clerkjs?.authenticateWithWeb3(e);
11if(this.clerkjs&&this.loaded)return t();this.premountMethodCalls.set("authenticateWithWeb3",t)},this.authenticateWithGoogleOneTap=async e=>(await this.#o()).authenticateWithGoogleOneTap(e),this.__internal_loadStripeJs=async()=>(await this.#o()).__internal_loadStripeJs(),this.createOrganization=async e=>{let t=()=>this.clerkjs?.createOrganization(e);if(this.clerkjs&&this.loaded)return t();this.premountMethodCalls.set("createOrganization",t)},this.getOrganization=async e=>{let t=()=>this.clerkjs?.getOrganization(e);if(this.clerkjs&&this.loaded)return t();this.premountMethodCalls.set("getOrganization",t)},this.joinWaitlist=async e=>{let t=()=>this.clerkjs?.joinWaitlist(e);if(this.clerkjs&&this.loaded)return t();this.premountMethodCalls.set("joinWaitlist",t)},this.signOut=async(...e)=>{let t=()=>this.clerkjs?.signOut(...e);if(this.clerkjs&&this.loaded)return t();this.premountMethodCalls.set("signOut",t)},this.__internal_attemptToEnableEnvironmentSetting=e=>{let t=()=>this.clerkjs?.__internal_attemptToEnableEnvironmentSetting(e);if(this.clerkjs&&this.loaded)return t();this.premountMethodCalls.set("__internal_attemptToEnableEnvironmentSetting",t)},this.#r=e?.publishableKey,this.#i=e?.proxyUrl,this.#t=e?.domain,this.options=e,this.Clerk=e?.Clerk||null,this.mode=(0,J.inBrowser)()?"browser":"server",this.#n=new ea(this),this.options.sdkMetadata||(this.options.sdkMetadata=eh),this.#s.emit(X,"loading"),this.#s.prioritizedOn(X,e=>this.#e=e),this.#r&&this.options.experimental?.runtimeEnvironment==="headless"&&this.options.Clerk?this.loadHeadlessClerk():this.#r&&this.getEntryChunks()}loadHeadlessClerk(){let e=(0,i.B)(this.options.Clerk)?new this.options.Clerk(this.#r,{proxyUrl:this.proxyUrl,domain:this.domain}):this.options.Clerk;if(!e)return void this.#s.emit(X,"error");let t=()=>{this.replayInterceptedInvocations(e)};e.loaded?t():e.load(this.options).then(()=>t()).catch(e=>{this.#s.emit(X,"error"),this.emitLoaded()})}get sdkMetadata(){return this.clerkjs?.sdkMetadata||this.options.sdkMetadata||void 0}get instanceType(){return this.clerkjs?.instanceType}get frontendApi(){return this.clerkjs?.frontendApi||""}get isStandardBrowser(){return this.clerkjs?.isStandardBrowser||this.options.standardBrowser||!1}get isSatellite(){return"u">typeof window&&window.location?(0,D.t)(this.options.isSatellite,new URL(window.location.href),!1):"function"==typeof this.options.isSatellite&&t.r.throw(i.J)}#o(){return new Promise(e=>{this.addOnLoaded(()=>e(this.clerkjs))})}async getEntryChunks(){if("browser"===this.mode&&!this.loaded){"u">typeof window&&(window.__clerk_publishable_key=this.#r,window.__clerk_proxy_url=this.proxyUrl,window.__clerk_domain=this.domain);try{let e=await this.getClerkJsEntryChunk();if(!e.loaded){this.beforeLoad(e);let t=!1!==this.options.standardBrowser&&!this.options.Clerk||this.options.ui?.ClerkUI?await this.getClerkUIEntryChunk():void 0;await e.load({...this.options,ui:{...this.options.ui,ClerkUI:t}})}e.loaded&&this.replayInterceptedInvocations(e)}catch(e){this.#s.emit(X,"error"),console.error(e.stack||e.message||e);return}}}async getClerkJsEntryChunk(){if(this.options.Clerk&&!this.options.__internal_clerkJSUrl||__BUILD_DISABLE_RHC__||await I({...this.options,publishableKey:this.#r,proxyUrl:this.proxyUrl,domain:this.domain,nonce:this.options.nonce}),this.options.Clerk&&!this.options.__internal_clerkJSUrl&&(globalThis.Clerk=(0,i.B)(this.options.Clerk)?new this.options.Clerk(this.#r,{proxyUrl:this.proxyUrl,domain:this.domain}):this.options.Clerk),!globalThis.Clerk)throw Error("Failed to download latest ClerkJS. Contact [email protected].");return globalThis.Clerk}async getClerkUIEntryChunk(){let e=this.options.ui,t=!!this.options.__internal_clerkUIUrl;if(e?.ClerkUI&&!t)return e.ClerkUI;if((!e&&!1!==this.options.prefetchUI||t)&&!__BUILD_DISABLE_RHC__){if(await M({...this.options,publishableKey:this.#r,proxyUrl:this.proxyUrl,domain:this.domain,nonce:this.options.nonce}),!globalThis.__internal_ClerkUICtor)throw Error("Failed to download latest Clerk UI. Contact [email protected].");return globalThis.__internal_ClerkUICtor}}get version(){return this.clerkjs?.version}get uiVersion(){return this.clerkjs?.uiVersion}get client(){return this.clerkjs?this.clerkjs.client:void 0}get session(){return this.clerkjs?this.clerkjs.session:void 0}get user(){return this.clerkjs?this.clerkjs.user:void 0}get organization(){return this.clerkjs?this.clerkjs.organization:void 0}get telemetry(){return this.clerkjs?this.clerkjs.telemetry:void 0}get __internal_environment(){return this.clerkjs?this.clerkjs.__internal_environment:void 0}get isSignedIn(){return!!this.clerkjs&&this.clerkjs.isSignedIn}get billing(){return this.clerkjs?.billing}get __internal_state(){return this.loaded&&this.clerkjs?this.clerkjs.__internal_state:this.#n}get apiKeys(){return this.clerkjs?.apiKeys}get oauthApplication(){return this.clerkjs?.oauthApplication}__internal_setEnvironment(...e){this.clerkjs&&"__internal_setEnvironment"in this.clerkjs&&this.clerkjs.__internal_setEnvironment(e)}get __internal_lastEmittedResources(){return this.clerkjs?.__internal_lastEmittedResources}get __internal_hasOAuthTransport(){return this.clerkjs?.__internal_hasOAuthTransport||!1}get __internal_oauthTransport(){return this.clerkjs?.__internal_oauthTransport||null}};let ed=function(){try{var e,t;let i;return e=d.default.version,t=[[18,0,-1,0],[19,0,0,3],[19,1,1,4],[19,2,2,3],[19,3,3,0]],!!(i=function(e){let t=e.match(/^(\d+)\.(\d+)\.(\d+)/);if(!t)return null;let[,i,r,s]=t;return{major:parseInt(i,10),minor:parseInt(r,10),patch:parseInt(s,10)}}(e))&&function(e,t){let{major:i,minor:r,patch:s}=e;return t.some(([e,t,n,l])=>i===e&&(-1===n?r>t||r===t&&s>=l:r===n&&s>=l))}(i,t)}catch{return!1}}();function ec(e){let{initialState:t,children:r,...s}=e,{isomorphicClerk:n,clerkStatus:l}=ek((0,i.V)(s));return d.default.createElement(F.ClerkContextProvider,{initialState:t,clerk:n,clerkStatus:l},r)}let ep=function(e){return d.default.useContext(F.ClerkInstanceContext)&&t.r.throw(i.K),d.default.createElement(ec,e)};ep.displayName="ClerkProvider";let eg=ed?"shared":"",ek=e=>{let t=d.default.useMemo(()=>({clerkUIVariant:eg,...e}),[e]),i=d.default.useRef(eu.getOrCreateInstance(t)),[r,s]=d.default.useState(i.current.status);return d.default.useEffect(()=>{i.current.__internal_updateProps({appearance:e.appearance})},[e.appearance]),d.default.useEffect(()=>{i.current.__internal_updateProps({options:e})},[e.localization]),d.default.useEffect(()=>(i.current.on("status",s),()=>{i.current&&i.current.off("status",s),eu.clearInstance()}),[]),{isomorphicClerk:i.current,clerkStatus:r}};e.s(["a",0,({children:e})=>((0,t.t)("ClerkFailed"),"error"!==(0,t.n)().status)?null:e,"c",0,({children:e})=>{(0,t.t)("MultisessionAppSupport");let i=(0,F.__internal_useSessionBase)();return d.default.createElement(d.default.Fragment,{key:i?i.id:"no-users"},e)},"d",0,Z,"f",0,ee,"h",0,({children:e,fallback:r,treatPendingAsSignedOut:s,when:n})=>{var l,o;(0,t.t)("Show");let{has:a,isLoaded:h,userId:u}=(0,i.b)({treatPendingAsSignedOut:s});if(!h)return null;let d=r??null;return"signed-out"===n?u?d:e:u&&("signed-in"===n||(l=n,o=a,"function"==typeof l?l(o):o(l)))?e:d},"i",0,({children:e})=>((0,t.t)("ClerkDegraded"),"degraded"!==(0,t.n)().status)?null:e,"l",0,es,"m",0,ei,"n",0,ed,"o",0,({children:e})=>((0,t.t)("ClerkLoaded"),(0,t.n)().loaded)?e:null,"p",0,et,"r",0,en,"s",0,({children:e})=>((0,t.t)("ClerkLoading"),"loading"!==(0,t.n)().status)?null:e,"t",0,ep,"u",0,er],844999);var em=e.i(174080),ef=e.i(88014),e_=e.i(843476);if("u">typeof window&&!window.global&&(window.global=e.g),globalThis.__clerkSharedModules){let e=globalThis.__clerkSharedModules.react?.ver
11sion;e&&e!==d.version&&console.warn(`[@clerk/ui/register] React version mismatch detected. Already registered: ${e}, current import: ${d.version}. This may cause issues with the shared @clerk/ui variant.`)}else globalThis.__clerkSharedModules={react:d,"react-dom":em,"react-dom/client":ef,"react/jsx-runtime":e_};let eC=(0,i.z)(({clerk:e,children:t,...r})=>{let{appearance:s,getContainer:n,component:l,...o}=r;t=(0,i.U)(t,"Invite members");let a=(0,i.H)(t)("InviteMembersButton"),h=async t=>(a&&"object"==typeof a&&"props"in a&&await (0,i.W)(a.props.onClick)(t),e.openInviteMembers({appearance:s,getContainer:n})),u={...o,onClick:h};return d.default.cloneElement(a,u)},{component:"InviteMembersButton",renderWhileLoading:!0}),eS=(0,i.z)(({clerk:e,children:t,...r})=>{let{appearance:s,getContainer:n,component:l,signUpFallbackRedirectUrl:o,forceRedirectUrl:a,fallbackRedirectUrl:h,signUpForceRedirectUrl:u,mode:c,initialValues:p,withSignUp:g,oauthFlow:k,...m}=r;t=(0,i.U)(t,"Sign in");let f=(0,i.H)(t)("SignInButton"),_=async t=>{let r;return f&&"object"==typeof f&&"props"in f&&await (0,i.W)(f.props.onClick)(t),r={forceRedirectUrl:a,fallbackRedirectUrl:h,signUpFallbackRedirectUrl:o,signUpForceRedirectUrl:u,initialValues:p,withSignUp:g,oauthFlow:k},"modal"===c?e.openSignIn({...r,appearance:s,getContainer:n}):e.redirectToSignIn({...r,signInFallbackRedirectUrl:h,signInForceRedirectUrl:a})},C={...m,onClick:_};return d.default.cloneElement(f,C)},{component:"SignInButton",renderWhileLoading:!0}),ej=(0,i.z)(({clerk:e,children:t,...r})=>{let{redirectUrl:s,getContainer:n,component:l,...o}=r;t=(0,i.U)(t,"Sign in with Metamask");let a=(0,i.H)(t)("SignInWithMetamaskButton"),h=async()=>{!async function(){await e.authenticateWithMetamask({redirectUrl:s||void 0})}()},u=async e=>(await (0,i.W)(a.props.onClick)(e),h()),c={...o,onClick:u};return d.default.cloneElement(a,c)},{component:"SignInWithMetamask",renderWhileLoading:!0}),eb=(0,i.z)(({clerk:e,children:t,...r})=>{let{redirectUrl:s="/",sessionId:n,signOutOptions:l,getContainer:o,component:a,...h}=r;l&&V("SignOutButton `signOutOptions`","Use the `redirectUrl` and `sessionId` props directly instead."),t=(0,i.U)(t,"Sign out");let u=(0,i.H)(t)("SignOutButton"),c=async t=>(await (0,i.W)(u.props.onClick)(t),e.signOut({redirectUrl:s,...void 0!==n&&{sessionId:n},...l})),p={...h,onClick:c};return d.default.cloneElement(u,p)},{component:"SignOutButton",renderWhileLoading:!0}),ew=(0,i.z)(({clerk:e,children:t,...r})=>{let{appearance:s,unsafeMetadata:n,getContainer:l,component:o,fallbackRedirectUrl:a,forceRedirectUrl:h,signInFallbackRedirectUrl:u,signInForceRedirectUrl:c,mode:p,initialValues:g,oauthFlow:k,...m}=r;t=(0,i.U)(t,"Sign up");let f=(0,i.H)(t)("SignUpButton"),_=async t=>{let r;return f&&"object"==typeof f&&"props"in f&&await (0,i.W)(f.props.onClick)(t),r={fallbackRedirectUrl:a,forceRedirectUrl:h,signInFallbackRedirectUrl:u,signInForceRedirectUrl:c,initialValues:g,oauthFlow:k},"modal"===p?e.openSignUp({...r,appearance:s,unsafeMetadata:n,getContainer:l}):e.redirectToSignUp({...r,signUpFallbackRedirectUrl:a,signUpForceRedirectUrl:h})},C={...m,onClick:_};return d.default.cloneElement(f,C)},{component:"SignUpButton",renderWhileLoading:!0});(0,t.i)({packageName:"@clerk/react"}),x("@clerk/react"),e.s(["HandleSSOCallback",0,function(e){let{navigateToApp:t,navigateToSignIn:r,navigateToSignUp:s}=e,n=(0,h.s)(),{signIn:l}=(0,i.g)(),{signUp:o}=(0,i._)(),a=(0,d.useRef)(!1);return(0,d.useEffect)(()=>{(async()=>{if(n.loaded&&!a.current){if(a.current=!0,"complete"===l.status)return await l.finalize({navigate:async(...e)=>{t(...e)}});if(o.isTransferable)return(await l.create({transfer:!0}),"complete"===l.status)?await l.finalize({navigate:async(...e)=>{t(...e)}}):r();if("needs_first_factor"===l.status&&!l.supportedFirstFactors?.every(e=>"enterprise_sso"===e.strategy))return r();if(l.isTransferable)return(await o.create({transfer:!0}),"complete"===o.status)?await o.finalize({navigate:async(...e)=>{t(...e)}}):s();if("complete"===o.status)return await o.finalize({navigate:async(...e)=>{t(...e)}});if("needs_second_factor"===l.status||"needs_new_password"===l.status)return r();if(l.existingSession||o.existingSession){let e=l.existingSession?.sessionId||o.existingSession?.sessionId;if(e)return await n.setActive({session:e,navigate:async(...e)=>t(...e)})}}})()},[n,n.loaded,l,o]),d.default.createElement("div",null,d.default.createElement("div",{id:"clerk-captcha"}))},"InviteMembersButton",0,eC,"SignInButton",0,eS,"SignInWithMetamaskButton",0,ej,"
11SignOutButton",0,eb,"SignUpButton",0,ew],719658)},878673,e=>{"use strict";var t=e.i(391297),i=e.i(966604),r=e.i(844999);e.i(291142);var s=e.i(307282);e.i(551448),s.useOAuthConsent,i.T;let n=r.t;e.s(["InternalClerkProvider",0,n,"useRoutingProps",0,function(e,r,s){let n=r.path||s?.path;return"path"===(r.routing||s?.routing||"path")?n?{...s,...r,routing:"path"}:t.r.throw((0,i.q)(e)):r.path?t.r.throw((0,i.G)(e)):{...s,...r,path:void 0}}])},986455,e=>{"use strict";var t=e.i(967992);e.s(["useSession",()=>t.p])},845061,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"useRouter",{enumerable:!0,get:function(){return n}});let r=e.r(271645),s=e.r(65856);function n(){return(0,r.useContext)(s.RouterContext)}("function"==typeof i.default||"object"==typeof i.default&&null!==i.default)&&void 0===i.default.__esModule&&(Object.defineProperty(i.default,"__esModule",{value:!0}),Object.assign(i.default,i),t.exports=i.default)},474041,(e,t,i)=>{t.exports=e.r(845061)},261618,532517,618063,810377,622528,e=>{"use strict";var t=e.i(247167),i={get url(){return e.F("node_modules/@clerk/nextjs/node_modules/@clerk/shared/dist/getEnvVariable.mjs")},env:{DEV:!1,PROD:!0,MODE:"production",BASE_URL:"/",SSR:!1}};let r=["CI","CONTINUOUS_INTEGRATION","GITHUB_ACTIONS","GITLAB_CI","CIRCLECI","TRAVIS","BUILDKITE","BITBUCKET_BUILD_NUMBER","APPVEYOR","CODEBUILD_BUILD_ID","TF_BUILD","TEAMCITY_VERSION","JENKINS_URL","HUDSON_URL","BAMBOO_BUILDKEY","CF_PAGES"];e.s(["a",0,()=>!1,"i",0,()=>{try{return!0}catch{}return!1},"n",0,()=>r.some(e=>{var r;return"string"==typeof(r=(e=>{let r,s;if(void 0!==t.default&&t.default.env&&"string"==typeof t.default.env[e])return t.default.env[e];if(i.env&&"string"==typeof i.env[e])return i.env[e];if(r=void 0,r?.cloudflare?.env)return(void 0).cloudflare.env[e]||"";if(s=void 0,s?.env)return(void 0).env[e]||"";try{return globalThis[e]}catch{}return""})(e))&&!!r&&!["0","false","off","no"].includes(r.toLowerCase())}),"r",0,()=>!1,"t",0,r],532517),e.s(["t",0,function(e){return e.endsWith(".lclstage.dev")||e.endsWith(".stgstage.dev")||e.endsWith(".clerkstage.dev")||e.endsWith(".accountsstage.dev")}],618063);let s=(...e)=>{};e.s(["t",0,()=>{let e=s,t=s;return{promise:new Promise((i,r)=>{e=i,t=r}),resolve:e,reject:t}}],810377),e.s([],261618);var n=e.i(474041);e.s(["usePagesRouter",0,()=>({pagesRouter:(0,n.useRouter)()})],622528)}]);
12
13//# debugId=dfe028ca-d13b-175d-4636-4872caa3cb5d

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.