const e=require(`./utils-DyYoKTxM.cjs`),t=[`true`,`1`,`yes`,`on`],n=[`false`,`0`,`no`,`off`],r=new Set(t),i=new Set(n);function a(e,a={}){if(typeof e==`boolean`)return e;if(typeof e!=`string`)return;let o=e.trim().toLowerCase();if(!o)return;let s=a.truthy??t,c=a.falsy??n,l=s===t?r:new Set(s),u=c===n?i:new Set(c);if(l.has(o))return!0;if(u.has(o))return!1}e.O(`env`);function o(e){return a(e)===!0}const s=[`HTTP_PROXY`,`HTTPS_PROXY`,`ALL_PROXY`,`http_proxy`,`https_proxy`,`all_proxy`];function c(e=process.env){for(let t of s){let n=e[t];if(typeof n==`string`&&n.trim().length>0)return!0}return!1}function l(e){if(typeof e!=`string`)return;let t=e.trim();return t.length>0?t:null}function u(e,t=process.env){let n=l(t.http_proxy),r=l(t.https_proxy),i=n===void 0?l(t.HTTP_PROXY):n,a=r===void 0?l(t.HTTPS_PROXY):r;return e===`https`?a??i??void 0:i??void 0}function d(e=`https`,t=process.env){return u(e,t)!==void 0}Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return d}});
