module.exports=[902157,(a,b,c)=>{b.exports=a.x("node:fs",()=>require("node:fs"))},750227,(a,b,c)=>{b.exports=a.x("node:path",()=>require("node:path"))},591262,a=>{"use strict";let b,c;var d=Object.getOwnPropertyNames;let e=(b={"src/runtime/node/safe-node-apis.js"(b,c){let{existsSync:d,writeFileSync:e,readFileSync:f,appendFileSync:g,mkdirSync:h,rmSync:i}=a.r(902157);c.exports={fs:{existsSync:d,writeFileSync:e,readFileSync:f,appendFileSync:g,mkdirSync:h,rmSync:i},path:a.r(750227),cwd:()=>process.cwd()}}},function(){return c||(0,b[d(b)[0]])((c={exports:{}}).exports,c),c.exports})();function f(a,b){if(!a)throw Error(`Clerk: ${b} is missing. This is an internal error. Please contact Clerk's support.`)}let g=()=>(f(e.fs,"fs"),e.fs),h=()=>(f(e.path,"path"),e.path),i=()=>(f(e.cwd,"cwd"),e.cwd);a.s(["nodeCwdOrThrow",()=>i,"nodeFsOrThrow",()=>g,"nodePathOrThrow",()=>h],591262)},126576,a=>{"use strict";var b=a.i(341864),c=a.i(504601),d=a.i(591262);let e="KEYLESS_ENV_DRIFT_DETECTED";async function f(){var f,g;if(b.canUseKeyless)try{let{safeParseClerkFile:h}=await a.A(522840),i=h();if(!i)return;let j="pk_live_Y2xlcmsuZGlmZmF0b3Vycy5jb20k",k=process.env.CLERK_SECRET_KEY,l=!!(j||k),m=!!((null==i?void 0:i.publishableKey)&&(null==i?void 0:i.secretKey));if(!l&&!m||!m||!l)return;let n=!!(j&&i.publishableKey&&j===i.publishableKey),o=!!(k&&i.secretKey&&k===i.secretKey);if(!(j&&i.publishableKey&&!n||k&&i.secretKey&&!o))return;let p={publicKeyMatch:n,secretKeyMatch:o,envVarsMissing:!j&&!k,keylessFileHasKeys:m,keylessPublishableKey:null!=(f=i.publishableKey)?f:"",envPublishableKey:j},q=(0,c.createClerkClientWithOptions)({publishableKey:i.publishableKey,secretKey:i.secretKey,telemetry:{samplingRate:1}});(function(){try{if(!b.canUseKeyless)return!1;{let{mkdirSync:a,writeFileSync:b}=(0,d.nodeFsOrThrow)(),c=(0,d.nodePathOrThrow)(),f=(0,d.nodePathOrThrow)().join(process.cwd(),".clerk/.tmp/telemetry.json"),g=c.dirname(f);a(g,{recursive:!0});let h={firedAt:new Date().toISOString(),event:e};return b(f,JSON.stringify(h,null,2),{flag:"wx"}),!0}}catch(a){if((null==a?void 0:a.code)==="EEXIST")return!1;return console.warn("Failed to create telemetry flag file:",a),!1}})()&&(null==(g=q.telemetry)||g.record({event:e,eventSamplingRate:1,payload:p}))}catch(a){console.warn("Failed to detect keyless environment drift:",a)}}a.s(["detectKeylessEnvDrift",()=>f])},522840,a=>{a.v(b=>Promise.all(["server/chunks/ssr/e99c8_@clerk_nextjs_dist_esm_server_keyless-node_487811d0.js"].map(b=>a.l(b))).then(()=>b(731168)))}];

//# sourceMappingURL=%5Broot-of-the-server%5D__e814da96._.js.map