"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 is_list_exports = {};
__export(is_list_exports, {
  isList: () => isList
});
module.exports = __toCommonJS(is_list_exports);
var import_get_extension_field = require("../helpers/get-extension-field.js");
var import_call_or_return = require("../utilities/call-or-return.js");
var import_split_extensions = require("./split-extensions.js");
function isList(name, extensions) {
  const { nodeExtensions } = (0, import_split_extensions.splitExtensions)(extensions);
  const extension = nodeExtensions.find((item) => item.name === name);
  if (!extension) {
    return false;
  }
  const context = {
    name: extension.name,
    options: extension.options,
    storage: extension.storage
  };
  const group = (0, import_call_or_return.callOrReturn)((0, import_get_extension_field.getExtensionField)(extension, "group", context));
  if (typeof group !== "string") {
    return false;
  }
  return group.split(" ").includes("list");
}
//# sourceMappingURL=is-list.js.map
