1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,38297,43227,e=>{"use strict";let t=[".lcl.dev",".lclstage.dev",".lclclerk.com"],n=[".lcl.dev",".stg.dev",".lclstage.dev",".stgstage.dev",".dev.lclclerk.com",".stg.lclclerk.com",".accounts.lclclerk.com","accountsstage.dev","accounts.dev"];e.s(["CURRENT_DEV_INSTANCE_SUFFIXES",0,[".accounts.dev",".accountsstage.dev",".accounts.lclclerk.com"],"DEV_OR_STAGING_SUFFIXES",0,n,"LEGACY_DEV_INSTANCE_SUFFIXES",0,t,"LOCAL_API_URL",0,"https://api.lclclerk.com","LOCAL_ENV_SUFFIXES",0,[".lcl.dev","lclstage.dev",".lclclerk.com",".accounts.lclclerk.com"],"PROD_API_URL",0,"https://api.clerk.com","STAGING_API_URL",0,"https://api.clerkstage.dev","STAGING_ENV_SUFFIXES",0,[".accountsstage.dev"]],43227);let r=e=>"u">typeof atob&&"function"==typeof atob?atob(e):void 0!==globalThis.Buffer?globalThis.Buffer.from(e,"base64").toString():e,o="pk_live_",l="pk_test_",a=/^(([a-z]+)-){2}([0-9]{1,2})\.clerk\.accounts([a-z.]*)(dev|com)$/i;function i(e){if(!e.endsWith("$"))return!1;let t=e.slice(0,-1);return!t.includes("$")&&t.includes(".")}function s(e=""){try{if(!(e.startsWith(o)||e.startsWith(l)))return!1;let t=e.split("_");if(3!==t.length)return!1;let n=t[2];if(!n)return!1;return i(r(n))}catch{return!1}}e.s(["createDevOrStagingUrlCache",0,function(){let e=new Map;return{isDevOrStagingUrl:t=>{if(!t)return!1;let r="string"==typeof t?t:t.hostname,o=e.get(r);return void 0===o&&(o=n.some(e=>r.endsWith(e)),e.set(r,o)),o}}},"isProductionFromPublishableKey",0,function(e){return e.startsWith("live_")||e.startsWith("pk_live_")},"parsePublishableKey",0,function(e,t={}){let n;if(!(e=e||"")||!s(e)){if(t.fatal&&!e)throw Error("Publishable key is missing. Ensure that your publishable key is correctly configured. Double-check your environment configuration for your keys, or access them here: https://dashboard.clerk.com/last-active?path=api-keys");if(t.fatal&&!s(e))throw Error("Publishable key not valid.");return null}let l=e.startsWith(o)?"production":"development";try{n=r(e.split("_")[2])}catch{if(t.fatal)throw Error("Publishable key not valid: Failed to decode key.");return null}if(!i(n)){if(t.fatal)throw Error("Publishable key not valid: Decoded key has invalid format.");return null}let a=n.slice(0,-1);return t.proxyUrl?a=t.proxyUrl:"development"!==l&&t.domain&&t.isSatellite&&(a=`clerk.${t.domain}`),{instanceType:l,frontendApi:a}},"publishableKeyFromHost",0,function(e,n){var r,i,s;if(n&&((s=n).startsWith("test_")||s.startsWith("pk_test_")))return n;let u=e.toLowerCase().replace(/:\d+$/,"");if(!u)throw Error("Host must not be empty.");return r=`clerk.${u}`,`${a.test(r)||r.startsWith("clerk.")&&t.some(e=>r.endsWith(e))?l:o}${(i=`${r}$`,"u">typeof btoa&&"function"==typeof btoa?btoa(i):void 0!==globalThis.Buffer?globalThis.Buffer.from(i).toString("base64"):i).replace(/=+$/,"")}`}],38297)},81720,40903,e=>{"use strict";var t=e.i(47167);let n={get url(){return`file://${e.P("node_modules/@clerk/shared/dist/getEnvVariable.mjs")}`}},r=(e,r)=>{if(void 0!==t.default&&t.default.env&&"string"==typeof t.default.env[e])return t.default.env[e];if(n.env&&"string"==typeof n.env[e])return n.env[e];if(r?.cloudflare?.env)return r.cloudflare.env[e]||"";if(r?.env)return r.env[e]||"";if(r&&"string"==typeof r[e])return r[e];try{return globalThis[e]}catch{}return""};e.s(["getEnvVariable",0,r],40903);let o=["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,()=>o.some(e=>{var t;return"string"==typeof(t=r(e))&&!!t&&!["0","false","off","no"].includes(t.toLowerCase())}),"r",0,()=>!1,"t",0,o],81720)},62366,e=>{"use strict";let t=e=>{let t=n=>{if(!n)return n;if(Array.isArray(n))return n.map(e=>"object"==typeof e||Array.isArray(e)?t(e):e);let r={...n};for(let n of Object.keys(r)){let o=e(n.toString());o!==n&&(r[o]=r[n],delete r[n]),"object"==typeof r[o]&&(r[o]=t(r[o]))}return r};return t};t(function(e){return e?e.replace(/[A-Z]/g,e=>`_${e.toLowerCase()}`):""}),t(function(e){return e?e.replace(/([-_][a-z])/g,e=>e.toUpperCase().replace(/-|_/,"")):""}),e.s(["isTruthy",0,function(e){if("boolean"==typeof e)return e;if(null==e)return!1;if("string"==typeof e){if("true"===e.toLowerCase())return!0;
1if("false"===e.toLowerCase())return!1}let t=parseInt(e,10);return!isNaN(t)&&t>0}])},73370,51260,e=>{"use strict";let t=(...e)=>{};e.s(["t",0,t],51260),e.s(["t",0,()=>{let e=t,n=t;return{promise:new Promise((t,r)=>{e=t,n=r}),resolve:e,reject:n}}],73370)},18566,(e,t,n)=>{t.exports=e.r(76562)},66090,89406,28684,90965,e=>{"use strict";var t=e.i(81720);e.s(["t",0,function(e,t,n){return"function"==typeof e?e(t):void 0!==e?e:void 0!==n?n:void 0}],89406),e.s(["t",0,function(e){return e.endsWith(".lclstage.dev")||e.endsWith(".stgstage.dev")||e.endsWith(".clerkstage.dev")||e.endsWith(".accountsstage.dev")}],28684),e.i(51260),e.i(73370);let n=new Set(["__proto__","constructor","prototype"]),r=(e,t)=>{if(e&&t)for(let o in e)!n.has(o)&&(Object.prototype.hasOwnProperty.call(e,o)&&null!==e[o]&&"object"==typeof e[o]?(void 0===t[o]&&(t[o]=new(Object.getPrototypeOf(e[o])).constructor),r(e[o],t[o])):Object.prototype.hasOwnProperty.call(e,o)&&void 0!==e[o]&&(t[o]=e[o]))},o=(e,t)=>{if(e&&t)for(let r in e)!n.has(r)&&(Object.prototype.hasOwnProperty.call(e,r)&&null!==e[r]&&"object"==typeof e[r]?(void 0===t[r]&&(t[r]=new(Object.getPrototypeOf(e[r])).constructor),o(e[r],t[r])):Object.prototype.hasOwnProperty.call(e,r)&&void 0===t[r]&&(t[r]=e[r]))};e.s(["a",0,function(e){return Promise.all(Array.from(e).map(e=>e.then(e=>({status:"fulfilled",value:e}),e=>({status:"rejected",reason:e}))))},"i",0,e=>{(0,t.r)()&&console.error(`Clerk: ${e}`)},"n",0,r,"r",0,function(e){return"function"==typeof e?e():e},"t",0,o],90965),e.s([],66090)},52367,89514,91297,39789,30032,59312,48861,e=>{"use strict";let t;var n,r=e.i(24955),o=e.i(96672);e.s([],89514);var l=e.i(80204);let a=(0,o.y)({packageName:"@clerk/react"}),i=l.useClerkInstanceContext,s=e=>{(0,l.useAssertWrappedByClerkProvider)(()=>{a.throwMissingClerkProviderError({source:e})})};e.s(["i",0,function(e){a.setMessages(e).setPackageName(e)},"n",0,i,"r",0,a,"t",0,s],91297);var u=e.i(71645),d=e.i(74080),p=r;e.s(["ClerkRuntimeError",()=>p.t],39789);var p=r;e.i(66090);var c=e.i(90965),c=c,m=e.i(40903);let f=(e,...t)=>{let n={...e};for(let e of t)delete n[e];return n};var h=e.i(56027),g=e.i(84975);e.s([],30032);var _=e.i(11059);function y(){return"u">typeof window}RegExp("bot|spider|crawl|APIs-Google|AdsBot|Googlebot|mediapartners|Google Favicon|FeedFetcher|Google-Read-Aloud|DuplexWeb-Google|googleweblight|bing|yandex|baidu|duckduck|yahoo|ecosia|ia_archiver|facebook|instagram|pinterest|reddit|slack|twitter|whatsapp|youtube|semrush","i"),e.s(["inBrowser",0,y],59312);let P=new Map,b=e=>{let[t,n]=(0,u.useState)(new Map),r=(0,u.useRef)(t),o=(0,u.useRef)(new Map),l=(0,u.useRef)(new Map);r.current=t,o.current=new Map(e.map(e=>[e.id,e.component]));let a=new Set(e.map(e=>e.id));return l.current.forEach((e,t)=>{a.has(t)||l.current.delete(t)}),e.map(e=>{let t=e.id,a=l.current.get(t);if(a)return a;let i={id:e.id,mount:e=>n(n=>new Map(n).set(t,e)),unmount:()=>n(e=>{let n=new Map(e);return n.set(t,null),n}),portal:()=>{let e=r.current.get(t),n=o.current.get(t);return e?(0,d.createPortal)(n,e):null}};return l.current.set(t,i),i})},v=(e,t)=>!!e&&u.default.isValidElement(e)&&e?.type===t,E=(e,t)=>C({children:e,reorderItemsLabels:["account","security","billing","apiKeys"],LinkComponent:j,PageComponent:D,MenuItemsComponent:K,componentName:"UserProfile"},t),k=(e,t)=>C({children:e,reorderItemsLabels:["general","members","billing","apiKeys"],LinkComponent:J,PageComponent:X,componentName:"OrganizationProfile"},t),I=e=>{let t=[],n=[J,X,K,D,j];return u.default.Children.forEach(e,e=>{n.some(t=>v(e,t))||t.push(e)}),t},C=(e,t)=>{let{children:n,LinkComponent:r,PageComponent:o,MenuItemsComponent:l,reorderItemsLabels:a,componentName:i}=e,{allowForAnyChildren:s=!1}=t||{},d=[],p=new Map;u.default.Children.forEach(n,e=>{if(!v(e,o)&&!v(e,r)&&!v(e,l)){e&&!s&&(0,c.i)(`<${i} /> can only accept <${i}.Page /> and <${i}.Link /> as its children. Any other provided component will be ignored. Additionally, please ensure that the component is rendered in a client component.`);return}let{props:t}=e,{children:n,label:u,url:m,labelIcon:f}=t,h=e.key;if(v(e,o))if(U(t,a))d.push({label:u});else if(S(t))d.push({label:u,labelIcon:f,children:n,url:m,portalId:w("page",t,h,p)});else return void(0,c.i)(`Missing props. <${i}.Page /> component requires the following props: url, label, labelIcon, alongside with children to be rendered inside the page.`);if(v(e,r))if(A(t))d.push({label:u,labelIcon:f,url:m,portalId:w("link",t,h,p)});else return void(0,c.i)(`Missing props. <${i}.Link /> component requires the following props: url, label and labelIcon.`)});let m=[],f=[],h=[];d.forEach((e,t)=>{if(S(e)){m.push({component:e.children,id:e.portalId||t}),f.push({component:e.labelIcon,id:e.portalId||t});return}A(e)&&h.push({component:e.labelIcon,id:e.portalId||t})});let g=b(m),_=b(f),y=b(h),P=[],E=[];return d.forEach((e,t)=>{if(U(e,a))return void P.push({label:e.label});if(S(e)){let{portal:n,mount:r,unmount:o}=g.find(n=>n.id===(e.portalId||t)),{portal:l,mount:a,unmount:i}=_.find(n=>n.id===(e.portalId||t));
1P.push({label:e.label,url:e.url,mount:r,unmount:o,mountIcon:a,unmountIcon:i}),E.push({key:`content:${e.portalId||t}`,portal:n}),E.push({key:`label:${e.portalId||t}`,portal:l});return}if(A(e)){let{portal:n,mount:r,unmount:o}=y.find(n=>n.id===(e.portalId||t));P.push({label:e.label,url:e.url,mountIcon:r,unmountIcon:o}),E.push({key:`label:${e.portalId||t}`,portal:n});return}}),{customPages:P,customPagesPortals:E}},w=(e,t,n,r)=>{if(null!=n)return`${e}:key:${n}`;let o=`${e}:${t.label}:${t.url}`,l=r.get(o)??0;return r.set(o,l+1),`${o}:${l}`},U=(e,t)=>{let{children:n,label:r,url:o,labelIcon:l}=e;return!n&&!o&&!l&&t.some(e=>e===r)},S=e=>{let{children:t,label:n,url:r,labelIcon:o}=e;return!!t&&!!r&&!!o&&!!n},A=e=>{let{children:t,label:n,url:r,labelIcon:o}=e;return!t&&!!r&&!!o&&!!n},L=(e,t,n,r)=>{if(null!=n)return`${e}:key:${n}`;let o=t.href||t.open||"",l=`${e}:${t.label}:${o}`,a=r.get(l)??0;return r.set(l,a+1),`${l}:${a}`},O=(e,t)=>{let{children:n,label:r,onClick:o,labelIcon:l}=e;return!n&&!o&&!l&&t.some(e=>e===r)},F=e=>{let{label:t,labelIcon:n,onClick:r,open:o}=e;return!!n&&!!t&&("function"==typeof r||"string"==typeof o)},T=e=>{let{label:t,href:n,labelIcon:r}=e;return!!n&&!!r&&!!t},$=(n={childList:!0,subtree:!0,isReady:(e,t)=>!!e?.childElementCount&&e?.matches?.(t)&&e.childElementCount>0},t=n?.isReady,e=>new Promise((r,o)=>{let{root:l=document?.body,selector:a,timeout:i=0}=e;if(!l)return void o(Error("No root element provided"));let s=l;if(a&&(s=l?.querySelector(a)),t(s,a))return void r();let u=new MutationObserver(e=>{for(let o of e)if(!s&&a&&(s=l?.querySelector(a)),(n.childList&&"childList"===o.type||n.attributes&&"attributes"===o.type)&&t(s,a)){u.disconnect(),r();return}});u.observe(l,n),i>0&&setTimeout(()=>{u.disconnect(),o(Error(`Timeout waiting for ${a}`))},i)}));function R(e,t){let n=(0,u.useRef)(),[r,o]=(0,u.useState)("rendering");return(0,u.useEffect)(()=>{if(!e)throw Error("Clerk: no component name provided, unable to detect mount.");if("u">typeof window&&!n.current){let r=`[data-clerk-component="${e}"]`,l=t?.selector;n.current=$({selector:l?r+l:r}).then(()=>{o("rendered")}).catch(()=>{o("error")})}},[e,t?.selector]),r}let B=e=>e?.map(({mountIcon:e,unmountIcon:t,...n})=>n);var M=class extends u.default.PureComponent{constructor(...e){super(...e),this.rootRef=u.default.createRef()}componentDidUpdate(e){if(!("mount"in e)||!("mount"in this.props))return;let t=f(e.props||{},"customPages","customMenuItems","children"),n=f(this.props.props||{},"customPages","customMenuItems","children"),r=e.props?.customPages?.length!==this.props.props?.customPages?.length,o=e.props?.customMenuItems?.length!==this.props.props?.customMenuItems?.length,a=B(e.props?.customMenuItems),i=B(this.props.props?.customMenuItems);(!(0,l.isDeeplyEqual)(t,n)||!(0,l.isDeeplyEqual)(a,i)||r||o)&&this.rootRef.current&&this.props.updateProps({node:this.rootRef.current,props:this.props.props})}componentDidMount(){this.rootRef.current&&("mount"in this.props&&this.props.mount(this.rootRef.current,this.props.props),"open"in this.props&&this.props.open(this.props.props))}componentWillUnmount(){this.rootRef.current&&("mount"in this.props&&this.props.unmount(this.rootRef.current),"open"in this.props&&this.props.close())}render(){let{hideRootHtmlElement:e=!1}=this.props,t={ref:this.rootRef,...this.props.rootProps,...this.props.component&&{"data-clerk-component":this.props.component}};return u.default.createElement(u.default.Fragment,null,!e&&u.default.createElement("div",t),this.props.children)}};let W=(e,t)=>{let n=("string"==typeof t?t:t?.component)||e.displayName||e.name||"Component";e.displayName=n;let r="string"==typeof t?void 0:t,o=t=>{s(n||"withClerk");let o=i(),a=(0,l.usePortalRoot)();return o.loaded||r?.renderWhileLoading?u.default.createElement(e,{getContainer:a,...t,component:n,clerk:o}):null};return o.displayName=`withClerk(${n})`,o},N=e=>u.default.createElement(u.default.Fragment,null,e?.customPagesPortals?.map(({key:e,portal:t})=>(0,u.createElement)(t,{key:e})),e?.customMenuItemsPortals?.map(({key:e,portal:t})=>(0,u.createElement)(t,{key:e}))),x=W(({clerk:e,component:t,fallback:n,...r})=>{let o="rendering"===R(t)||!e.loaded,l={...o&&n&&{style:{display:"none"}}};return u.default.createElement(u.default.Fragment,null,o&&n,e.loaded&&u.default.createElement(M,{component:t,mount:e.mountSign
1In,unmount:e.unmountSignIn,updateProps:e.__internal_updateProps,props:r,rootProps:l}))},{component:"SignIn",renderWhileLoading:!0}),z=W(({clerk:e,component:t,fallback:n,...r})=>{let o="rendering"===R(t)||!e.loaded,l={...o&&n&&{style:{display:"none"}}};return u.default.createElement(u.default.Fragment,null,o&&n,e.loaded&&u.default.createElement(M,{component:t,mount:e.mountSignUp,unmount:e.unmountSignUp,updateProps:e.__internal_updateProps,props:r,rootProps:l}))},{component:"SignUp",renderWhileLoading:!0});function D({children:e}){return(0,c.i)("<UserProfile.Page /> component needs to be a direct child of `<UserProfile />` or `<UserButton />`."),u.default.createElement(u.default.Fragment,null,e)}function j({children:e}){return(0,c.i)("<UserProfile.Link /> component needs to be a direct child of `<UserProfile />` or `<UserButton />`."),u.default.createElement(u.default.Fragment,null,e)}let V=Object.assign(W(({clerk:e,component:t,fallback:n,...r})=>{let o="rendering"===R(t)||!e.loaded,l={...o&&n&&{style:{display:"none"}}},{customPages:a,customPagesPortals:i}=E(r.children);return u.default.createElement(u.default.Fragment,null,o&&n,u.default.createElement(M,{component:t,mount:e.mountUserProfile,unmount:e.unmountUserProfile,updateProps:e.__internal_updateProps,props:{...r,customPages:a},rootProps:l},u.default.createElement(N,{customPagesPortals:i})))},{component:"UserProfile",renderWhileLoading:!0}),{Page:D,Link:j}),G=(0,u.createContext)({mount:()=>{},unmount:()=>{},updateProps:()=>{}});function K({children:e}){return(0,c.i)("<UserButton.MenuItems /> component needs to be a direct child of `<UserButton />`."),u.default.createElement(u.default.Fragment,null,e)}function q({children:e}){return(0,c.i)("<UserButton.Action /> component needs to be a direct child of `<UserButton.MenuItems />`."),u.default.createElement(u.default.Fragment,null,e)}function Y({children:e}){return(0,c.i)("<UserButton.Link /> component needs to be a direct child of `<UserButton.MenuItems />`."),u.default.createElement(u.default.Fragment,null,e)}let H=Object.assign(W(({clerk:e,component:t,fallback:n,...r})=>{let o,l,a="rendering"===R(t)||!e.loaded,i={...a&&n&&{style:{display:"none"}}},{customPages:s,customPagesPortals:d}=E(r.children,{allowForAnyChildren:!!r.__experimental_asProvider}),p={...r.userProfileProps,customPages:s},{customMenuItems:m,customMenuItemsPortals:f}=(o=r.children,l={allowForAnyChildren:!!r.__experimental_asProvider},(({children:e,MenuItemsComponent:t,MenuActionComponent:n,MenuLinkComponent:r,UserProfileLinkComponent:o,UserProfilePageComponent:l,reorderItemsLabels:a,allowForAnyChildren:i=!1})=>{let s=[],d=[],p=[],m=new Map;u.default.Children.forEach(e,e=>{if(!v(e,t)&&!v(e,o)&&!v(e,l)){e&&!i&&(0,c.i)("<UserButton /> can only accept <UserButton.UserProfilePage />, <UserButton.UserProfileLink /> and <UserButton.MenuItems /> as its children. Any other provided component will be ignored. Additionally, please ensure that the component is rendered in a client component.");return}if(v(e,o)||v(e,l))return;let{props:d}=e;u.default.Children.forEach(d.children,e=>{if(!v(e,n)&&!v(e,r)){e&&(0,c.i)("<UserButton.MenuItems /> component can only accept <UserButton.Action /> and <UserButton.Link /> as its children. Any other provided component will be ignored. Additionally, please ensure that the component is rendered in a client component.");return}let{props:t}=e,o=e.key,{label:l,labelIcon:i,href:u,onClick:d,open:p}=t;if(v(e,n))if(O(t,a))s.push({label:l});else{if(!F(t))return void(0,c.i)("Missing props. <UserButton.Action /> component requires the following props: label.");let e={label:l,labelIcon:i};if(void 0!==d)s.push({...e,onClick:d,portalId:L("action",t,o,m)});else{if(void 0===p)return void(0,c.i)("Custom menu item must have either onClick or open property");s.push({...e,open:p.startsWith("/")?p:`/${p}`,portalId:L("action",t,o,m)})}}if(v(e,r))if(!T(t))return void(0,c.i)("Missing props. <UserButton.Link /> component requires the following props: href, label and labelIcon.");else s.push({label:l,labelIcon:i,href:u,portalId:L("link",t,o,m)})})});let f=[],h=[];
1s.forEach((e,t)=>{F(e)&&f.push({component:e.labelIcon,id:e.portalId||t}),T(e)&&h.push({component:e.labelIcon,id:e.portalId||t})});let g=b(f),_=b(h);return s.forEach((e,t)=>{if(O(e,a)&&d.push({label:e.label}),F(e)){let{portal:n,mount:r,unmount:o}=g.find(n=>n.id===(e.portalId||t)),l={label:e.label,mountIcon:r,unmountIcon:o};"onClick"in e?l.onClick=e.onClick:"open"in e&&(l.open=e.open),d.push(l),p.push({key:`icon:${e.portalId||t}`,portal:n})}if(T(e)){let{portal:n,mount:r,unmount:o}=_.find(n=>n.id===(e.portalId||t));d.push({label:e.label,href:e.href,mountIcon:r,unmountIcon:o}),p.push({key:`icon:${e.portalId||t}`,portal:n})}}),{customMenuItems:d,customMenuItemsPortals:p}})({children:o,reorderItemsLabels:["manageAccount","signOut"],MenuItemsComponent:K,MenuActionComponent:q,MenuLinkComponent:Y,UserProfileLinkComponent:j,UserProfilePageComponent:D,allowForAnyChildren:l?.allowForAnyChildren??!1})),h=I(r.children),g={mount:e.mountUserButton,unmount:e.unmountUserButton,updateProps:e.__internal_updateProps,props:{...r,userProfileProps:p,customMenuItems:m}};return u.default.createElement(G.Provider,{value:g},a&&n,e.loaded&&u.default.createElement(M,{component:t,...g,hideRootHtmlElement:!!r.__experimental_asProvider,rootProps:i},r.__experimental_asProvider?h:null,u.default.createElement(N,{customPagesPortals:d,customMenuItemsPortals:f})))},{component:"UserButton",renderWhileLoading:!0}),{UserProfilePage:D,UserProfileLink:j,MenuItems:K,Action:q,Link:Y,__experimental_Outlet:function(e){let t=(0,u.useContext)(G),n={...t,props:{...t.props,...e}};return u.default.createElement(M,n)}});function X({children:e}){return(0,c.i)("<OrganizationProfile.Page /> component needs to be a direct child of `<OrganizationProfile />` or `<OrganizationSwitcher />`."),u.default.createElement(u.default.Fragment,null,e)}function J({children:e}){return(0,c.i)("<OrganizationProfile.Link /> component needs to be a direct child of `<OrganizationProfile />` or `<OrganizationSwitcher />`."),u.default.createElement(u.default.Fragment,null,e)}let Z=Object.assign(W(({clerk:e,component:t,fallback:n,...r})=>{let o="rendering"===R(t)||!e.loaded,l={...o&&n&&{style:{display:"none"}}},{customPages:a,customPagesPortals:i}=k(r.children);return u.default.createElement(u.default.Fragment,null,o&&n,e.loaded&&u.default.createElement(M,{component:t,mount:e.mountOrganizationProfile,unmount:e.unmountOrganizationProfile,updateProps:e.__internal_updateProps,props:{...r,customPages:a},rootProps:l},u.default.createElement(N,{customPagesPortals:i})))},{component:"OrganizationProfile",renderWhileLoading:!0}),{Page:X,Link:J}),Q=W(({clerk:e,component:t,fallback:n,...r})=>{let o="rendering"===R(t)||!e.loaded,l={...o&&n&&{style:{display:"none"}}};return u.default.createElement(u.default.Fragment,null,o&&n,e.loaded&&u.default.createElement(M,{component:t,mount:e.mountCreateOrganization,unmount:e.unmountCreateOrganization,updateProps:e.__internal_updateProps,props:r,rootProps:l}))},{component:"CreateOrganization",renderWhileLoading:!0}),ee=(0,u.createContext)({mount:()=>{},unmount:()=>{},updateProps:()=>{}}),et=Object.assign(W(({clerk:e,component:t,fallback:n,...r})=>{let o="rendering"===R(t)||!e.loaded,l={...o&&n&&{style:{display:"none"}}},{customPages:a,customPagesPortals:i}=k(r.children,{allowForAnyChildren:!!r.__experimental_asProvider}),s={...r.organizationProfileProps,customPages:a},d=I(r.children),p={mount:e.mountOrganizationSwitcher,unmount:e.unmountOrganizationSwitcher,updateProps:e.__internal_updateProps,props:{...r,organizationProfileProps:s},rootProps:l,component:t};return e.__experimental_prefetchOrganizationSwitcher(),u.default.createElement(ee.Provider,{value:p},u.default.createElement(u.default.Fragment,null,o&&n,e.loaded&&u.default.createElement(M,{...p,hideRootHtmlElement:!!r.__experimental_asProvider},r.__experimental_asProvider?d:null,u.default.createElement(N,{customPagesPortals:i}))))},{component:"OrganizationSwitcher",renderWhileLoading:!0}),{OrganizationProfilePage:X,OrganizationProfileLink:J,__experimental_Outlet:function(e){let t=(0,u.useContext)(ee),n={...t,props:{...t.props,...e}};return u.default.createElement(M,n)}}),en=W(({clerk:e,component:t,fallback:n,...r})=>{let o="rendering"===R(t)||!e.loaded,l={...o&&n&&{style:{display:"none"}}};return u.default.createElement(u.default.Fragment,null,o&&n,e.loaded&&u.default.createElement(M,{component:t,mount:e.mountOrganizationList,unmount:e.unmountOrganizationList,updateProps:e.__internal_updateProps,props:r,rootProps:l}))},{component:"OrganizationList",renderWhileLoading:!0}),er=W(({clerk:e,component:t,fallback:n,...r})=>{let o="rendering"===R(t)||!e.loaded,l={...o&&n&&{style:{display:"none"}}};return u.default.createElement(u.default.Fragment,null,o&&n,e.loaded&&u.default.createElement(M,{component:t,open:e.openGoogleOneTap,close:e.closeGoogleOneTap,updateProps:e.__internal_updateProps,props:r,rootProps:l}))},{component:"GoogleOneTap",renderWhileLoading:!0}),eo=W(({clerk:e,component:t,fallback:n,...r})=>{let o="rendering"===R(t)||!e.loaded,l={...o&&n&&{style:{display:"none"}}};return u.default.createElement(u.default.Fragment,null,o&&n,e.loaded&&u.default.createElement(M,{component:t,mount:e.mountWaitlist,unmount:e.unmountWaitlist,updateProps:e.__internal_updateProps,props:r,rootProps:l}))},{component:"Waitlist",renderWhileLoading:!0}),el=W(({clerk:e,component:t,fallback:n,...r})=>{let o="rendering"===R(t,{selector:'[data-component-status="ready"]'})||!e.loaded,l={...o&&n&&{style:{display:"none"}}};return u.default.createElement(u.default.Fragment,null,o&&n,e.loaded&&u.default.createElement(M,{component:t,mount:e.mountPricingTable,unmount:e.unmountPricingTable,updateProps:e.__internal_updateProps,props:r,rootProps:l}))},{component:"PricingTable",renderWhileLoading:!0}),ea=W(({clerk:e,component:t,fallback:n,...r})=>{let o="rendering"===R(t)||!e.loaded,l={...o&&n&&{style:{display:"none"}}};return u.default.createElement(u.default.Fragment,null,o&&n,e.loaded&&u.default.createElement(M,{component:t,mount:e.mountAPIKeys,unmount:e.unmountAPIKeys,updateProps:e.__internal_updateProps,props:r,rootProps:l}))},{component:"ApiKeys",renderWhileLoading:!0}),ei=W(({clerk:e,component:t,fallback:n,...r})=>{let o="rendering"===R(t)||!e.loaded,l={...o&&n&&{style:{display:"none"}}};return u.default.createElement(u.default.Fragment,null,o&&n,e.loaded&&u.default.createElement(M,{component:t,mount:e.__internal_mountOAuthConsent,unmount:e.__internal_unmountOAuthConsent,updateProps:e.__internal_updateProps,props:r,rootProps:l}))},{component:"OAuthConsent",renderWhileLoading:!0}),es=W(({clerk:e,component:t,fallback:n,...r})=>{let o="rendering"===R(t)||!e.loaded,l={...o&&n&&{style:{display:"none"}}};return u.default.createElement(u.default.Fragment,null,o&&n,e.loaded&&u.default.createElement(M,{component:t,mount:e.mountUserAvatar,unmount:e.unmountUserAvatar,updateProps:e.__internal_updateProps,props:r,rootProps:l}))},{component:"UserAvatar",renderWhileLoading:!0}),eu=W(({clerk:e,component:t,fallback:n,...r})=>{let o="rendering"===R(t)||!e.loaded,l={...o&&n&&{style:{display:"none"}}};return u.default.createElement(u.default.Fragment,null,o&&n,e.loaded&&u.default.createElement(M,{component:t,mount:e.mountTaskChooseOrganization,unmount:e.unmountTaskChooseOrganization,updateProps:e.__internal_updateProps,props:r,rootProps:l}))},{component:"TaskChooseOrganization",renderWhileLoading:!0}),ed=W(({clerk:e,component:t,fallback:n,...r})=>{let o="rendering"===R(t)||!e.loaded,l={...o&&n&&{style:{display:"none"}}};return u.default.createElement(u.default.Fragment,null,o&&n,e.loaded&&u.default.createElement(M,{component:t,mount:e.mountTaskResetPassword,unmount:e.unmountTaskResetPassword,updateProps:e.__internal_updateProps,props:r,rootProps:l}))},{component:"TaskResetPassword",renderWhileLoading:!0}),ep=W(({clerk:e,component:t,fallback:n,...r})=>{let o="rendering"===R(t)||!e.loaded,l={...o&&n&&{style:{display:"none"}}};return u.default.createElement(u.default.Fragment,null,o&&n,e.loaded&&u.default.createElement(M,{component:t,mount:e.mountTaskSetupMFA,unmount:e.unmountTaskSetupMFA,updateProps:e.__internal_updateProps,props:r,rootProps:l}))},{component:"TaskSetupMFA",renderWhileLoading:!0}),ec={actor:void 0,factorVerificationAge:null,orgId:void 0,orgPermissions:void 0,orgRole:void 0,orgSlug:void 0,sessionClaims:void 0,sessionId:void 0,sessionStatus:void 0,userId:void 0},em=e=>new Promise(t=>{let n=r=>{["ready","degraded"].includes(r)&&(t(),e.off("status",n))};e.on("status",n,{notify:!0})});function ef(e,{treatPendingAsSignedOut:t=!0}={}){let{userId:n,orgId:r,orgRole:o,has:l,signOut:i,getToken:s,orgPermissions:d,factorVerificationAge:p,sessionClaims:c}=e??{},m=(0,u.useCallback)(e=>l?l(e):(0,h.createCheckAuthorization)({userId:n,orgId:r,orgRole:o,orgPermissions:d,factorVerificationAge:p,features:c?.fea||"",plans:c?.pla||""})(e),[l,n,r,o,d,p,c]),f=(0,h.resolveAuthState)({authObject:{...e,getToken:s,signOut:i,has:m},options:{treatPendingAsSignedOut:t}});return f||a.throw("Invalid state. Feel free to submit a bug or reach out to supp
1ort here: https://clerk.com/contact/support")}function eh(e){s("useClerkSignal");let t=i();switch(e){case"signIn":t.telemetry?.record((0,g.a)("useSignIn",{apiVersion:"2025-11"}));break;case"signUp":t.telemetry?.record((0,g.a)("useSignUp",{apiVersion:"2025-11"}));break;case"waitlist":t.telemetry?.record((0,g.a)("useWaitlist",{apiVersion:"2025-11"}))}let n=(0,u.useCallback)(n=>t.loaded?t.__internal_state.__internal_effect(()=>{switch(e){case"signIn":t.__internal_state.signInSignal();break;case"signUp":t.__internal_state.signUpSignal();break;case"waitlist":t.__internal_state.waitlistSignal();break;default:throw Error(`Unknown signal: ${e}`)}n()}):()=>{},[t,t.loaded,t.__internal_state]),r=(0,u.useCallback)(()=>{switch(e){case"signIn":return t.__internal_state.signInSignal();case"signUp":return t.__internal_state.signUpSignal();case"waitlist":return t.__internal_state.waitlistSignal();default:throw Error(`Unknown signal: ${e}`)}},[t.__internal_state]);return(0,u.useSyncExternalStore)(n,r,r)}e.s(["A",0,x,"B",0,function(e,t,n){let r=e.displayName||e.name||t||"Component",o=r=>(!function(e,t,n=1){u.default.useEffect(()=>{let r=P.get(e)||0;return r==n?a.throw(t):(P.set(e,r+1),()=>{P.set(e,(P.get(e)||1)-1)})},[])}(t,n),u.default.createElement(e,r));return o.displayName=`withMaxAllowedInstancesGuard(${r})`,o},"C",0,Q,"D",0,Z,"E",0,en,"F",0,es,"G",0,e=>(...t)=>{if(e&&"function"==typeof e)return e(...t)},"H",0,e=>{let t=((e,t)=>void 0!==e?e:(0,m.getEnvVariable)(`VITE_${t}`)||(0,m.getEnvVariable)(t)||void 0)(e.publishableKey,"CLERK_PUBLISHABLE_KEY");return{...e,...void 0!==t&&{publishableKey:t}}},"I",0,H,"J",0,e=>`The <${e}/> component uses path-based routing by default unless a different routing strategy is provided using the \`routing\` prop. When path-based routing is used, you need to provide the path where the component is mounted on by using the \`path\` prop. Example: <${e} path={'/my-path'} />`,"K",0,e=>`The \`path\` prop will only be respected when the Clerk component uses path-based routing. To resolve this error, pass \`routing='path'\` to the <${e}/> component, or drop the \`path\` prop to switch to hash-based routing. For more details please refer to our docs: https://clerk.com/docs`,"L",0,V,"M",0,eu,"N",0,ed,"O",0,et,"P",0,ep,"R",0,eo,"S",0,ea,"T",0,ei,"U",0,e=>t=>{try{return u.default.Children.only(e)}catch{let n=u.default.Children.toArray(e);if(1===n.length&&u.default.isValidElement(n[0]))return n[0];return a.throw(`You've passed multiple children components to <${t}/>. You can only pass a single child component or text.`)}},"V",0,function(e){return"function"==typeof e},"W",0,(e,t)=>(e||(e=t),"string"==typeof e&&(e=u.default.createElement("button",null,e)),e),"Y",0,"Unsupported usage of isSatellite, domain or proxyUrl. The usage of isSatellite, domain or proxyUrl as function is not supported in non-browser environments.","_",0,()=>eh("signUp"),"b",0,(e={})=>{let t,n,r,o;s("useAuth");let{treatPendingAsSignedOut:a}=e??{},d=(t=(0,l.useClerkInstanceContext)(),n=(0,l.useInitialStateContext)(),r=(0,u.useCallback)(()=>n,[n]),o=(0,u.useSyncExternalStore)((0,u.useCallback)(e=>t.addListener(e,{skipInitialEmit:!0}),[t]),(0,u.useCallback)(()=>t.loaded&&t.__internal_lastEmittedResources?t.__internal_lastEmittedResources:r(),[t,r]),r),(0,u.useMemo)(()=>{var e;return o?{sessionId:(e=!("client"in o)?(0,_.deriveState)(!1,{},o):(0,_.deriveState)(!0,o,void 0)).sessionId,sessionStatus:e.sessionStatus,sessionClaims:e.sessionClaims,userId:e.userId,actor:e.actor,orgId:e.orgId,orgRole:e.orgRole,orgSlug:e.orgSlug,orgPermissions:e.orgPermissions,factorVerificationAge:e.factorVerificationAge}:ec},[o])),c=i(),m=(0,u.useCallback)(async e=>{if(!y())throw new p.t("useAuth().getToken() can only be used in browser environments. To access auth data server-side, see the Auth object reference doc: https://clerk.com/docs/reference/backend/types/auth-object",{code:"clerk_runtime_not_browser"});return(await em(c),c.session)?c.session.getToken(e):null},[c]),f=(0,u.useCallback)(async(...e)=>(await em(c),c.signOut(...e)),[c]);return c.telemetry?.record((0,g.a)("useAuth",{treatPendingAsSignedOut:a})),ef({...d,getToken:m,signOut:f},{treatPendingAsSignedOut:a})},"g",0,()=>eh("signIn"),"j",0,z,"k",0,el,"q",0,"You've added multiple <ClerkProvider> components in your React component tree. Wrap your components in a single <ClerkProvider>.","v",0,function(){return eh("waitlist")},"w",0,er,"x",0,ef,"y",0,function(e){let{startEmailLinkFlow:t,cancelEmailLinkFlow:n}=u.default.useMemo(()=>e.createEmailLinkFlow(),[e]);return u.default.useEffect(()=>n,[]),{startEmailLinkFlow:t,cancelEmailLinkFlow:n}},"z",0,W],52367),e.s(["s",()=>l.useClerk],48861)}]);
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.