import {
  a as s,
  c as d
} from "./chunk-IO47FP3U.js";

// ../node_modules/highlight.js/lib/languages/ini.js
var T = d((S, _) => {
  function r(n) {
    return n ? typeof n == "string" ? n : n.source : null;
  }
  s(r, "source");
  function u(n) {
    return E("(?=", n, ")");
  }
  s(u, "lookahead");
  function E(...n) {
    return n.map((e) => r(e)).join("");
  }
  s(E, "concat");
  function g(...n) {
    return "(" + n.map((e) => r(e)).join("|") + ")";
  }
  s(g, "either");
  function N(n) {
    let t = {
      className: "number",
      relevance: 0,
      variants: [
        {
          begin: /([+-]+)?[\d]+_[\d_]+/
        },
        {
          begin: n.NUMBER_RE
        }
      ]
    }, e = n.COMMENT();
    e.variants = [
      {
        begin: /;/,
        end: /$/
      },
      {
        begin: /#/,
        end: /$/
      }
    ];
    let i = {
      className: "variable",
      variants: [
        {
          begin: /\$[\w\d"][\w\d_]*/
        },
        {
          begin: /\$\{(.*?)\}/
        }
      ]
    }, a = {
      className: "literal",
      begin: /\bon|off|true|false|yes|no\b/
    }, o = {
      className: "string",
      contains: [n.BACKSLASH_ESCAPE],
      variants: [
        {
          begin: "'''",
          end: "'''",
          relevance: 10
        },
        {
          begin: '"""',
          end: '"""',
          relevance: 10
        },
        {
          begin: '"',
          end: '"'
        },
        {
          begin: "'",
          end: "'"
        }
      ]
    }, l = {
      begin: /\[/,
      end: /\]/,
      contains: [
        e,
        a,
        i,
        o,
        t,
        "self"
      ],
      relevance: 0
    }, c = g(
      /[A-Za-z0-9_-]+/,
      /"(\\"|[^"])*"/,
      /'[^']*'/
    ), b = E(
      c,
      "(\\s*\\.\\s*",
      c,
      ")*",
      u(/\s*=\s*[^#\s]/)
    );
    return {
      name: "TOML, also INI",
      aliases: ["toml"],
      case_insensitive: !0,
      illegal: /\S/,
      contains: [
        e,
        {
          className: "section",
          begin: /\[+/,
          end: /\]+/
        },
        {
          begin: b,
          className: "attr",
          starts: {
            end: /$/,
            contains: [
              e,
              l,
              a,
              i,
              o,
              t
            ]
          }
        }
      ]
    };
  }
  s(N, "ini");
  _.exports = N;
});

export {
  T as a
};
