/* Socket Lib - Built with esbuild */
var t=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var g=Object.getOwnPropertyNames;var p=Object.prototype.hasOwnProperty;var l=(e,n)=>{for(var r in n)t(e,r,{get:n[r],enumerable:!0})},o=(e,n,r,c)=>{if(n&&typeof n=="object"||typeof n=="function")for(let a of g(n))!p.call(e,a)&&a!==r&&t(e,a,{get:()=>n[a],enumerable:!(c=s(n,a))||c.enumerable});return e};var m=e=>o(t({},"__esModule",{value:!0}),e);var y={};l(y,{detectPackageManager:()=>d,getPackageManagerInfo:()=>f,getPackageManagerUserAgent:()=>u});module.exports=m(y);var i=require("#env/rewire");function d(){const e=u();if(e){const r=e.match(/^(npm|pnpm|yarn|bun)\//);if(r)return r[1]}const n=process.argv[0];if(n){if(n.includes("/pnpm/")||n.includes("\\pnpm\\"))return"pnpm";if(n.includes("/yarn/")||n.includes("\\yarn\\")||n.includes("/.yarn/")||n.includes("\\.yarn\\"))return"yarn";if(n.includes("/bun/")||n.includes("\\bun\\"))return"bun";if(n.includes("/node_modules/")||n.includes("\\node_modules\\"))return"npm"}return null}function f(){const e=u();if(!e)return null;const n=e.match(/^([^/]+)\/([^\s]+)/);return n?{name:n[1],version:n[2]}:null}function u(){return(0,i.getEnvValue)("npm_config_user_agent")}0&&(module.exports={detectPackageManager,getPackageManagerInfo,getPackageManagerUserAgent});
//# sourceMappingURL=package-manager.js.map
