import{join as q}from"node:path";import{pathToFileURL as B}from"node:url";import{existsSync as C}from"node:fs";function V(v){let z=C(q(v,"session-db.bundle.mjs"))?v:q(v,".."),E=q(z,".."),G=q(E,"build","session");async function w(H,I){let A=q(z,H);if(C(A))return await import(B(A).href);let J=q(G,I);return await import(B(J).href)}return{async loadSessionDB(){return await w("session-db.bundle.mjs","db.js")},async loadExtract(){return await w("session-extract.bundle.mjs","extract.js")},async loadSnapshot(){return await w("session-snapshot.bundle.mjs","snapshot.js")}}}export{V as createSessionLoaders};
