/* Socket Lib - Built with esbuild */
var i=Object.defineProperty;var l=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var u=Object.prototype.hasOwnProperty;var b=(t,r)=>{for(var e in r)i(t,e,{get:r[e],enumerable:!0})},s=(t,r,e,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of a(r))!u.call(t,o)&&o!==e&&i(t,o,{get:()=>r[o],enumerable:!(n=l(r,o))||n.enumerable});return t};var f=t=>s(i({},"__esModule",{value:!0}),t);var c={};b(c,{createCompositeAbortSignal:()=>g,createTimeoutSignal:()=>m});module.exports=f(c);function g(...t){const r=t.filter(n=>n!=null);if(r.length===0)return new AbortController().signal;if(r.length===1)return r[0];const e=new AbortController;for(const n of r){if(n.aborted)return e.abort(),e.signal;n.addEventListener("abort",()=>e.abort(),{once:!0})}return e.signal}function m(t){if(typeof t!="number"||Number.isNaN(t))throw new TypeError("timeout must be a number");if(!Number.isFinite(t))throw new TypeError("timeout must be a finite number");if(t<=0)throw new TypeError("timeout must be a positive number");const r=new AbortController;return setTimeout(()=>r.abort(),t),r.signal}0&&(module.exports={createCompositeAbortSignal,createTimeoutSignal});
//# sourceMappingURL=abort.js.map
