import{r as c}from"./pkgroll_create-require-b92e8e0d.mjs";import{constants as l}from"os";import"./suppress-warnings.mjs";import"module";if(c("./cjs/index.cjs"),process.send){const r=s=>{process.send({type:"kill",signal:s}),process.listenerCount(s)===0&&process.exit(128+l.signals[s])},t=["SIGINT","SIGTERM"];for(const s of t)process.on(s,r);const{listenerCount:n,listeners:o}=process;process.listenerCount=function(s){let e=Reflect.apply(n,this,arguments);return t.includes(s)&&(e-=1),e},process.listeners=function(s){const e=Reflect.apply(o,this,arguments);return t.includes(s)?e.filter(i=>i!==r):e}}