import c from"node:module";import{normalize as v,sep as u,join as f}from"node:path";import{fileURLToPath as p}from"node:url";import{IS_WINDOWS as _,IS_MAC_OS as h,IS_LINUX as g}from"./constants-DED7MIJj.mjs";import"path";import"os";import"url";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"4.2.860"}}catch{}})();try{(function(){var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="f56ed9af-0c3a-4941-8985-3e6fe7458511",e._sentryDebugIdIdentifier="sentry-dbid-f56ed9af-0c3a-4941-8985-3e6fe7458511")})()}catch{}function C(){}function D(){const e={"beeper_client_sdk_napi_binding.node":"@beeper/beeper-client-sdk/node","diskusage.node":"diskusage","better_sqlite3.node":"better-sqlite3","permissions.node":"node-mac-permissions","contacts.node":"node-mac-contacts","node.napi.node":"utf-8-validate","cbor-extract.node":"cbor-extract"};function o(){if(_)return`classic-level/prebuilds/win32-${process.arch==="x64"?"x64":"ia32"}/classic-level.node`;if(h)return"classic-level/prebuilds/darwin-x64+arm64/classic-level.node";const s=g&&process.report?.getReport()?.header?.glibcVersionRuntime===void 0;return process.arch==="arm64"?"classic-level/prebuilds/linux-arm64/classic-level.armv8.node":`classic-level/prebuilds/linux-x64/classic-level${s?".musl":""}.node`}const t=c._resolveFilename;c._resolveFilename=function(...n){const[i]=n;if(!i.endsWith(".node"))return t(...n);const l=v(i).split(u),r=l.at(-1);if(!r)return t(...n);const d="../../";if(i.includes("classic-level"))return p(new URL(f(d,"node_modules",o()),import.meta.url));const a=e[r];if(!a)return t(...n);const m=l.slice(-3).join(u),b=f(d,"node_modules",a,m);return p(new URL(b,import.meta.url))}}export{C as addAppNodeModulesPath,D as registerNativeModuleResolutionHooks};
//# sourceMappingURL=dev-fp014L8f.mjs.map
