"use client";
var P;
(function(E) {
  E.HTML = "http://www.w3.org/1999/xhtml", E.MATHML = "http://www.w3.org/1998/Math/MathML", E.SVG = "http://www.w3.org/2000/svg", E.XLINK = "http://www.w3.org/1999/xlink", E.XML = "http://www.w3.org/XML/1998/namespace", E.XMLNS = "http://www.w3.org/2000/xmlns/";
})(P || (P = {}));
var C;
(function(E) {
  E.TYPE = "type", E.ACTION = "action", E.ENCODING = "encoding", E.PROMPT = "prompt", E.NAME = "name", E.COLOR = "color", E.FACE = "face", E.SIZE = "size";
})(C || (C = {}));
var H;
(function(E) {
  E.NO_QUIRKS = "no-quirks", E.QUIRKS = "quirks", E.LIMITED_QUIRKS = "limited-quirks";
})(H || (H = {}));
var R;
(function(E) {
  E.A = "a", E.ADDRESS = "address", E.ANNOTATION_XML = "annotation-xml", E.APPLET = "applet", E.AREA = "area", E.ARTICLE = "article", E.ASIDE = "aside", E.B = "b", E.BASE = "base", E.BASEFONT = "basefont", E.BGSOUND = "bgsound", E.BIG = "big", E.BLOCKQUOTE = "blockquote", E.BODY = "body", E.BR = "br", E.BUTTON = "button", E.CAPTION = "caption", E.CENTER = "center", E.CODE = "code", E.COL = "col", E.COLGROUP = "colgroup", E.DD = "dd", E.DESC = "desc", E.DETAILS = "details", E.DIALOG = "dialog", E.DIR = "dir", E.DIV = "div", E.DL = "dl", E.DT = "dt", E.EM = "em", E.EMBED = "embed", E.FIELDSET = "fieldset", E.FIGCAPTION = "figcaption", E.FIGURE = "figure", E.FONT = "font", E.FOOTER = "footer", E.FOREIGN_OBJECT = "foreignObject", E.FORM = "form", E.FRAME = "frame", E.FRAMESET = "frameset", E.H1 = "h1", E.H2 = "h2", E.H3 = "h3", E.H4 = "h4", E.H5 = "h5", E.H6 = "h6", E.HEAD = "head", E.HEADER = "header", E.HGROUP = "hgroup", E.HR = "hr", E.HTML = "html", E.I = "i", E.IMG = "img", E.IMAGE = "image", E.INPUT = "input", E.IFRAME = "iframe", E.KEYGEN = "keygen", E.LABEL = "label", E.LI = "li", E.LINK = "link", E.LISTING = "listing", E.MAIN = "main", E.MALIGNMARK = "malignmark", E.MARQUEE = "marquee", E.MATH = "math", E.MENU = "menu", E.META = "meta", E.MGLYPH = "mglyph", E.MI = "mi", E.MO = "mo", E.MN = "mn", E.MS = "ms", E.MTEXT = "mtext", E.NAV = "nav", E.NOBR = "nobr", E.NOFRAMES = "noframes", E.NOEMBED = "noembed", E.NOSCRIPT = "noscript", E.OBJECT = "object", E.OL = "ol", E.OPTGROUP = "optgroup", E.OPTION = "option", E.P = "p", E.PARAM = "param", E.PLAINTEXT = "plaintext", E.PRE = "pre", E.RB = "rb", E.RP = "rp", E.RT = "rt", E.RTC = "rtc", E.RUBY = "ruby", E.S = "s", E.SCRIPT = "script", E.SEARCH = "search", E.SECTION = "section", E.SELECT = "select", E.SOURCE = "source", E.SMALL = "small", E.SPAN = "span", E.STRIKE = "strike", E.STRONG = "strong", E.STYLE = "style", E.SUB = "sub", E.SUMMARY = "summary", E.SUP = "sup", E.TABLE = "table", E.TBODY = "tbody", E.TEMPLATE = "template", E.TEXTAREA = "textarea", E.TFOOT = "tfoot", E.TD = "td", E.TH = "th", E.THEAD = "thead", E.TITLE = "title", E.TR = "tr", E.TRACK = "track", E.TT = "tt", E.U = "u", E.UL = "ul", E.SVG = "svg", E.VAR = "var", E.WBR = "wbr", E.XMP = "xmp";
})(R || (R = {}));
var O;
(function(E) {
  E[E.UNKNOWN = 0] = "UNKNOWN", E[E.A = 1] = "A", E[E.ADDRESS = 2] = "ADDRESS", E[E.ANNOTATION_XML = 3] = "ANNOTATION_XML", E[E.APPLET = 4] = "APPLET", E[E.AREA = 5] = "AREA", E[E.ARTICLE = 6] = "ARTICLE", E[E.ASIDE = 7] = "ASIDE", E[E.B = 8] = "B", E[E.BASE = 9] = "BASE", E[E.BASEFONT = 10] = "BASEFONT", E[E.BGSOUND = 11] = "BGSOUND", E[E.BIG = 12] = "BIG", E[E.BLOCKQUOTE = 13] = "BLOCKQUOTE", E[E.BODY = 14] = "BODY", E[E.BR = 15] = "BR", E[E.BUTTON = 16] = "BUTTON", E[E.CAPTION = 17] = "CAPTION", E[E.CENTER = 18] = "CENTER", E[E.CODE = 19] = "CODE", E[E.COL = 20] = "COL", E[E.COLGROUP = 21] = "COLGROUP", E[E.DD = 22] = "DD", E[E.DESC = 23] = "DESC", E[E.DETAILS = 24] = "DETAILS", E[E.DIALOG = 25] = "DIALOG", E[E.DIR = 26] = "DIR", E[E.DIV = 27] = "DIV", E[E.DL = 28] = "DL", E[E.DT = 29] = "DT", E[E.EM = 30] = "EM", E[E.EMBED = 31] = "EMBED", E[E.FIELDSET = 32] = "FIELDSET", E[E.FIGCAPTION = 33] = "FIGCAPTION", E[E.FIGURE = 34] = "FIGURE", E[E.FONT = 35] = "FONT", E[E.FOOTER = 36] = "FOOTER", E[E.FOREIGN_OBJECT = 37] = "FOREIGN_OBJECT", E[E.FORM = 38] = "FORM", E[E.FRAME = 39] = "FRAME", E[E.FRAMESET = 40] = "FRAMESET", E[E.H1 = 41] = "H1", E[E.H2 = 42] = "H2", E[E.H3 = 43] = "H3", E[E.H4 = 44] = "H4", E[E.H5 = 45] = "H5", E[E.H6 = 46] = "H6", E[E.HEAD = 47] = "HEAD", E[E.HEADER = 48] = "HEADER", E[E.HGROUP = 49] = "HGROUP", E[E.HR = 50] = "HR", E[E.HTML = 51] = "HTML", E[E.I = 52] = "I", E[E.IMG = 53] = "IMG", E[E.IMAGE = 54] = "IMAGE", E[E.INPUT = 55] = "INPUT", E[E.IFRAME = 56] = "IFRAME", E[E.KEYGEN = 57] = "KEYGEN", E[E.LABEL = 58] = "LABEL", E[E.LI = 59] = "LI", E[E.LINK = 60] = "LINK", E[E.LISTING = 61] = "LISTING", E[E.MAIN = 62] = "MAIN", E[E.MALIGNMARK = 63] = "MALIGNMARK", E[E.MARQUEE = 64] = "MARQUEE", E[E.MATH = 65] = "MATH", E[E.MENU = 66] = "MENU", E[E.META = 67] = "META", E[E.MGLYPH = 68] = "MGLYPH", E[E.MI = 69] = "MI", E[E.MO = 70] = "MO", E[E.MN = 71] = "MN", E[E.MS = 72] = "MS", E[E.MTEXT = 73] = "MTEXT", E[E.NAV = 74] = "NAV", E[E.NOBR = 75] = "NOBR", E[E.NOFRAMES = 76] = "NOFRAMES", E[E.NOEMBED = 77] = "NOEMBED", E[E.NOSCRIPT = 78] = "NOSCRIPT", E[E.OBJECT = 79] = "OBJECT", E[E.OL = 80] = "OL", E[E.OPTGROUP = 81] = "OPTGROUP", E[E.OPTION = 82] = "OPTION", E[E.P = 83] = "P", E[E.PARAM = 84] = "PARAM", E[E.PLAINTEXT = 85] = "PLAINTEXT", E[E.PRE = 86] = "PRE", E[E.RB = 87] = "RB", E[E.RP = 88] = "RP", E[E.RT = 89] = "RT", E[E.RTC = 90] = "RTC", E[E.RUBY = 91] = "RUBY", E[E.S = 92] = "S", E[E.SCRIPT = 93] = "SCRIPT", E[E.SEARCH = 94] = "SEARCH", E[E.SECTION = 95] = "SECTION", E[E.SELECT = 96] = "SELECT", E[E.SOURCE = 97] = "SOURCE", E[E.SMALL = 98] = "SMALL", E[E.SPAN = 99] = "SPAN", E[E.STRIKE = 100] = "STRIKE", E[E.STRONG = 101] = "STRONG", E[E.STYLE = 102] = "STYLE", E[E.SUB = 103] = "SUB", E[E.SUMMARY = 104] = "SUMMARY", E[E.SUP = 105] = "SUP", E[E.TABLE = 106] = "TABLE", E[E.TBODY = 107] = "TBODY", E[E.TEMPLATE = 108] = "TEMPLATE", E[E.TEXTAREA = 109] = "TEXTAREA", E[E.TFOOT = 110] = "TFOOT", E[E.TD = 111] = "TD", E[E.TH = 112] = "TH", E[E.THEAD = 113] = "THEAD", E[E.TITLE = 114] = "TITLE", E[E.TR = 115] = "TR", E[E.TRACK = 116] = "TRACK", E[E.TT = 117] = "TT", E[E.U = 118] = "U", E[E.UL = 119] = "UL", E[E.SVG = 120] = "SVG", E[E.VAR = 121] = "VAR", E[E.WBR = 122] = "WBR", E[E.XMP = 123] = "XMP";
})(O || (O = {}));
const U = /* @__PURE__ */ new Map([
  [R.A, O.A],
  [R.ADDRESS, O.ADDRESS],
  [R.ANNOTATION_XML, O.ANNOTATION_XML],
  [R.APPLET, O.APPLET],
  [R.AREA, O.AREA],
  [R.ARTICLE, O.ARTICLE],
  [R.ASIDE, O.ASIDE],
  [R.B, O.B],
  [R.BASE, O.BASE],
  [R.BASEFONT, O.BASEFONT],
  [R.BGSOUND, O.BGSOUND],
  [R.BIG, O.BIG],
  [R.BLOCKQUOTE, O.BLOCKQUOTE],
  [R.BODY, O.BODY],
  [R.BR, O.BR],
  [R.BUTTON, O.BUTTON],
  [R.CAPTION, O.CAPTION],
  [R.CENTER, O.CENTER],
  [R.CODE, O.CODE],
  [R.COL, O.COL],
  [R.COLGROUP, O.COLGROUP],
  [R.DD, O.DD],
  [R.DESC, O.DESC],
  [R.DETAILS, O.DETAILS],
  [R.DIALOG, O.DIALOG],
  [R.DIR, O.DIR],
  [R.DIV, O.DIV],
  [R.DL, O.DL],
  [R.DT, O.DT],
  [R.EM, O.EM],
  [R.EMBED, O.EMBED],
  [R.FIELDSET, O.FIELDSET],
  [R.FIGCAPTION, O.FIGCAPTION],
  [R.FIGURE, O.FIGURE],
  [R.FONT, O.FONT],
  [R.FOOTER, O.FOOTER],
  [R.FOREIGN_OBJECT, O.FOREIGN_OBJECT],
  [R.FORM, O.FORM],
  [R.FRAME, O.FRAME],
  [R.FRAMESET, O.FRAMESET],
  [R.H1, O.H1],
  [R.H2, O.H2],
  [R.H3, O.H3],
  [R.H4, O.H4],
  [R.H5, O.H5],
  [R.H6, O.H6],
  [R.HEAD, O.HEAD],
  [R.HEADER, O.HEADER],
  [R.HGROUP, O.HGROUP],
  [R.HR, O.HR],
  [R.HTML, O.HTML],
  [R.I, O.I],
  [R.IMG, O.IMG],
  [R.IMAGE, O.IMAGE],
  [R.INPUT, O.INPUT],
  [R.IFRAME, O.IFRAME],
  [R.KEYGEN, O.KEYGEN],
  [R.LABEL, O.LABEL],
  [R.LI, O.LI],
  [R.LINK, O.LINK],
  [R.LISTING, O.LISTING],
  [R.MAIN, O.MAIN],
  [R.MALIGNMARK, O.MALIGNMARK],
  [R.MARQUEE, O.MARQUEE],
  [R.MATH, O.MATH],
  [R.MENU, O.MENU],
  [R.META, O.META],
  [R.MGLYPH, O.MGLYPH],
  [R.MI, O.MI],
  [R.MO, O.MO],
  [R.MN, O.MN],
  [R.MS, O.MS],
  [R.MTEXT, O.MTEXT],
  [R.NAV, O.NAV],
  [R.NOBR, O.NOBR],
  [R.NOFRAMES, O.NOFRAMES],
  [R.NOEMBED, O.NOEMBED],
  [R.NOSCRIPT, O.NOSCRIPT],
  [R.OBJECT, O.OBJECT],
  [R.OL, O.OL],
  [R.OPTGROUP, O.OPTGROUP],
  [R.OPTION, O.OPTION],
  [R.P, O.P],
  [R.PARAM, O.PARAM],
  [R.PLAINTEXT, O.PLAINTEXT],
  [R.PRE, O.PRE],
  [R.RB, O.RB],
  [R.RP, O.RP],
  [R.RT, O.RT],
  [R.RTC, O.RTC],
  [R.RUBY, O.RUBY],
  [R.S, O.S],
  [R.SCRIPT, O.SCRIPT],
  [R.SEARCH, O.SEARCH],
  [R.SECTION, O.SECTION],
  [R.SELECT, O.SELECT],
  [R.SOURCE, O.SOURCE],
  [R.SMALL, O.SMALL],
  [R.SPAN, O.SPAN],
  [R.STRIKE, O.STRIKE],
  [R.STRONG, O.STRONG],
  [R.STYLE, O.STYLE],
  [R.SUB, O.SUB],
  [R.SUMMARY, O.SUMMARY],
  [R.SUP, O.SUP],
  [R.TABLE, O.TABLE],
  [R.TBODY, O.TBODY],
  [R.TEMPLATE, O.TEMPLATE],
  [R.TEXTAREA, O.TEXTAREA],
  [R.TFOOT, O.TFOOT],
  [R.TD, O.TD],
  [R.TH, O.TH],
  [R.THEAD, O.THEAD],
  [R.TITLE, O.TITLE],
  [R.TR, O.TR],
  [R.TRACK, O.TRACK],
  [R.TT, O.TT],
  [R.U, O.U],
  [R.UL, O.UL],
  [R.SVG, O.SVG],
  [R.VAR, O.VAR],
  [R.WBR, O.WBR],
  [R.XMP, O.XMP]
]);
function t(E) {
  var B;
  return (B = U.get(E)) !== null && B !== void 0 ? B : O.UNKNOWN;
}
const L = O, e = {
  [P.HTML]: /* @__PURE__ */ new Set([
    L.ADDRESS,
    L.APPLET,
    L.AREA,
    L.ARTICLE,
    L.ASIDE,
    L.BASE,
    L.BASEFONT,
    L.BGSOUND,
    L.BLOCKQUOTE,
    L.BODY,
    L.BR,
    L.BUTTON,
    L.CAPTION,
    L.CENTER,
    L.COL,
    L.COLGROUP,
    L.DD,
    L.DETAILS,
    L.DIR,
    L.DIV,
    L.DL,
    L.DT,
    L.EMBED,
    L.FIELDSET,
    L.FIGCAPTION,
    L.FIGURE,
    L.FOOTER,
    L.FORM,
    L.FRAME,
    L.FRAMESET,
    L.H1,
    L.H2,
    L.H3,
    L.H4,
    L.H5,
    L.H6,
    L.HEAD,
    L.HEADER,
    L.HGROUP,
    L.HR,
    L.HTML,
    L.IFRAME,
    L.IMG,
    L.INPUT,
    L.LI,
    L.LINK,
    L.LISTING,
    L.MAIN,
    L.MARQUEE,
    L.MENU,
    L.META,
    L.NAV,
    L.NOEMBED,
    L.NOFRAMES,
    L.NOSCRIPT,
    L.OBJECT,
    L.OL,
    L.P,
    L.PARAM,
    L.PLAINTEXT,
    L.PRE,
    L.SCRIPT,
    L.SECTION,
    L.SELECT,
    L.SOURCE,
    L.STYLE,
    L.SUMMARY,
    L.TABLE,
    L.TBODY,
    L.TD,
    L.TEMPLATE,
    L.TEXTAREA,
    L.TFOOT,
    L.TH,
    L.THEAD,
    L.TITLE,
    L.TR,
    L.TRACK,
    L.UL,
    L.WBR,
    L.XMP
  ]),
  [P.MATHML]: /* @__PURE__ */ new Set([L.MI, L.MO, L.MN, L.MS, L.MTEXT, L.ANNOTATION_XML]),
  [P.SVG]: /* @__PURE__ */ new Set([L.TITLE, L.FOREIGN_OBJECT, L.DESC]),
  [P.XLINK]: /* @__PURE__ */ new Set(),
  [P.XML]: /* @__PURE__ */ new Set(),
  [P.XMLNS]: /* @__PURE__ */ new Set()
}, M = /* @__PURE__ */ new Set([L.H1, L.H2, L.H3, L.H4, L.H5, L.H6]);
R.STYLE, R.SCRIPT, R.XMP, R.IFRAME, R.NOEMBED, R.NOFRAMES, R.PLAINTEXT;
export {
  C as ATTRS,
  H as DOCUMENT_MODE,
  P as NS,
  M as NUMBERED_HEADERS,
  e as SPECIAL_ELEMENTS,
  O as TAG_ID,
  R as TAG_NAMES,
  t as getTagID
};
