"use strict";
/* Socket Lib - Built with esbuild */
"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
  for (var name in all)
    __defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
  if (from && typeof from === "object" || typeof from === "function") {
    for (let key of __getOwnPropNames(from))
      if (!__hasOwnProp.call(to, key) && key !== except)
        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  }
  return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var flags_exports = {};
__export(flags_exports, {
  isNpmAuditFlag: () => isNpmAuditFlag,
  isNpmFundFlag: () => isNpmFundFlag,
  isNpmLoglevelFlag: () => isNpmLoglevelFlag,
  isNpmNodeOptionsFlag: () => isNpmNodeOptionsFlag,
  isNpmProgressFlag: () => isNpmProgressFlag
});
module.exports = __toCommonJS(flags_exports);
// @__NO_SIDE_EFFECTS__
function isNpmAuditFlag(cmdArg) {
  return /^--(no-)?audit(=.*)?$/.test(cmdArg);
}
// @__NO_SIDE_EFFECTS__
function isNpmFundFlag(cmdArg) {
  return /^--(no-)?fund(=.*)?$/.test(cmdArg);
}
// @__NO_SIDE_EFFECTS__
function isNpmLoglevelFlag(cmdArg) {
  if (/^--loglevel(=.*)?$/.test(cmdArg)) {
    return true;
  }
  if (/^--(silent|verbose|info|warn|error|quiet)$/.test(cmdArg)) {
    return true;
  }
  return /^-(s|q|d|dd|ddd|v)$/.test(cmdArg);
}
// @__NO_SIDE_EFFECTS__
function isNpmNodeOptionsFlag(cmdArg) {
  return /^--node-options(=.*)?$/.test(cmdArg);
}
// @__NO_SIDE_EFFECTS__
function isNpmProgressFlag(cmdArg) {
  return /^--(no-)?progress(=.*)?$/.test(cmdArg);
}
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  isNpmAuditFlag,
  isNpmFundFlag,
  isNpmLoglevelFlag,
  isNpmNodeOptionsFlag,
  isNpmProgressFlag
});
