import { MentionableCategory as a } from "../../Plugins/MentionPlugin/types.es.js";
import { defaultNodeTypes as N } from "./types.es.js";
const t = "[\\d=a-z]+", T = Object.values(a).join("|"), s = `@\\[(${T}):${t}\\]`, I = `@\\[(${T}):(${t})\\]`, i = new RegExp(s, "gi"), R = new RegExp(I, "i"), O = "<br>", _ = "link", E = {
  nodeTypes: N,
  ignoreParagraphNewline: !1,
  listDepth: 0,
  linkDestinationKey: _
}, l = (e) => {
  var n;
  return {
    ...E,
    ...e,
    nodeTypes: {
      ...E.nodeTypes,
      ...e == null ? void 0 : e.nodeTypes,
      heading: {
        ...E.nodeTypes.heading,
        ...(n = e == null ? void 0 : e.nodeTypes) == null ? void 0 : n.heading
      }
    }
  };
}, o = (e) => /^(javascript:|data:text\/).+/i.test(e);
export {
  O as BREAK_TAG,
  _ as LINK_DESTINATION_KEY,
  R as MENTION_DESERIALIZE_REGEX,
  i as MENTION_SERIALIZE_REGEX,
  I as MENTION_WITH_GROUPS_REGEX_PATTERN,
  E as defaultOptions,
  l as getSelectedOptions,
  o as isMaliciousLink
};
//# sourceMappingURL=utils.es.js.map
