function a(){let r=null;switch(process.platform){case"android":switch(process.arch){case"arm":return"android-arm-eabi";case"arm64":return"android-arm64"}r="Android";break;case"win32":switch(process.arch){case"x64":return"win32-x64-msvc";case"arm64":return"win32-arm64-msvc";case"ia32":return"win32-ia32-msvc"}r="Windows";break;case"darwin":switch(process.arch){case"x64":return"darwin-x64";case"arm64":return"darwin-arm64"}r="macOS";break;case"linux":switch(process.arch){case"x64":case"arm64":return s()?`linux-${process.arch}-gnu`:`linux-${process.arch}-musl`;case"arm":return"linux-arm-gnueabihf"}r="Linux";break;case"freebsd":if(process.arch==="x64")return"freebsd-x64";r="FreeBSD";break}throw r?new Error(`Unsupported ${r} architecture: ${process.arch}`):new Error(`Unsupported system: ${process.platform}`)}function s(){const r=process.report?.getReport();if(typeof r!="object"||!r||!("header"in r))return!1;const e=r.header;return typeof e=="object"&&!!e&&"glibcVersionRuntime"in e}export{a as currentPlatform};
