module.exports=[63021,(e,r,t)=>{r.exports=e.x("@prisma/client-2c3a283f134fdcb6",()=>require("@prisma/client-2c3a283f134fdcb6"))},54799,(e,r,t)=>{r.exports=e.x("crypto",()=>require("crypto"))},70406,(e,r,t)=>{r.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},18622,(e,r,t)=>{r.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},20635,(e,r,t)=>{r.exports=e.x("next/dist/server/app-render/action-async-storage.external.js",()=>require("next/dist/server/app-render/action-async-storage.external.js"))},24725,(e,r,t)=>{r.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},56704,(e,r,t)=>{r.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},32319,(e,r,t)=>{r.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},59043,(e,r,t)=>{r.exports=e.x("next/dist/server/runtime-reacts.external.js",()=>require("next/dist/server/runtime-reacts.external.js"))},93695,(e,r,t)=>{r.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},81111,(e,r,t)=>{r.exports=e.x("node:stream",()=>require("node:stream"))},23862,e=>e.a(async(r,t)=>{try{var s=await e.y("pg-587764f78a6c7a9c");e.n(s),t()}catch(e){t(e)}},!0),87125,e=>{"use strict";e.s(["clientIp",0,function(e){let r=e.headers.get("x-forwarded-for");if(!r)return"unknown";let t=r.split(",").map(e=>e.trim()).filter(Boolean);return t.length>0?t[t.length-1]:"unknown"}])},89104,e=>{"use strict";e.s(["FixedWindowRateLimiter",0,class{limit;windowMs;hits;constructor(e,r){this.limit=e,this.windowMs=r,this.hits=new Map}check(e,r=Date.now()){let t=this.hits.get(e);return!t||r-t.windowStart>=this.windowMs?(this.hits.set(e,{count:1,windowStart:r}),{allowed:!0,remaining:this.limit-1}):t.count>=this.limit?{allowed:!1,remaining:0}:(t.count+=1,{allowed:!0,remaining:this.limit-t.count})}reset(){this.hits.clear()}}])},99291,e=>{"use strict";async function r(e,r,t){return e.membership.findUnique({where:{trahId_userId:{trahId:r,userId:t}}})}e.s(["findMembershipByUserAndTrah",0,r])},61302,e=>e.a(async(r,t)=>{try{var s=e.i(98902),n=e.i(98043),i=e.i(99291),a=r([s,n]);async function o(){let e=await (0,s.auth)(),r=e?.user?.id;return"string"==typeof r?r:null}async function l(e){let r=await o();if(!r)return null;let t=await (0,i.findMembershipByUserAndTrah)(n.prisma,e,r);return t&&"ACTIVE"===t.status?{userId:r,membershipId:t.id}:null}[s,n]=a.then?(await a)():a,e.s(["getCallerMembership",0,l,"getCallerUserId",0,o]),t()}catch(e){t(e)}},!1)];

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