import{codes as r}from"./errors.mjs";const{ERR_INVALID_ARG_VALUE:e}=r,t=Object.freeze(["node","import"]),n=new Set(t);function o(r){if(void 0!==r&&r!==t){if(!Array.isArray(r))throw new e("conditions",r,"expected an array");return new Set(r)}return n}export{o as getConditionsSet};