var r1 = Object.defineProperty;
var Hi = (a) => {
  throw TypeError(a);
};
var a1 = (a, e, t) => e in a ? r1(a, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[e] = t;
var fe = (a, e, t) => a1(a, typeof e != "symbol" ? e + "" : e, t), n1 = (a, e, t) => e.has(a) || Hi("Cannot " + t);
var Ui = (a, e, t) => e.has(a) ? Hi("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(a) : e.set(a, t);
var Fr = (a, e, t) => (n1(a, e, "access private method"), t);
const {
  SvelteComponent: i1,
  assign: l1,
  children: s1,
  claim_element: o1,
  create_slot: u1,
  detach: Gi,
  element: c1,
  get_all_dirty_from_scope: h1,
  get_slot_changes: m1,
  get_spread_update: f1,
  init: d1,
  insert_hydration: p1,
  safe_not_equal: g1,
  set_dynamic_element_data: Vi,
  set_style: ze,
  toggle_class: Ge,
  transition_in: eo,
  transition_out: to,
  update_slot_base: v1
} = window.__gradio__svelte__internal;
function b1(a) {
  let e, t, r;
  const n = (
    /*#slots*/
    a[22].default
  ), i = u1(
    n,
    a,
    /*$$scope*/
    a[21],
    null
  );
  let l = [
    { "data-testid": (
      /*test_id*/
      a[10]
    ) },
    { id: (
      /*elem_id*/
      a[5]
    ) },
    {
      class: t = "block " + /*elem_classes*/
      a[6].join(" ") + " svelte-dbzldu"
    }
  ], s = {};
  for (let o = 0; o < l.length; o += 1)
    s = l1(s, l[o]);
  return {
    c() {
      e = c1(
        /*tag*/
        a[18]
      ), i && i.c(), this.h();
    },
    l(o) {
      e = o1(
        o,
        /*tag*/
        (a[18] || "null").toUpperCase(),
        {
          "data-testid": !0,
          id: !0,
          class: !0
        }
      );
      var h = s1(e);
      i && i.l(h), h.forEach(Gi), this.h();
    },
    h() {
      Vi(
        /*tag*/
        a[18]
      )(e, s), Ge(
        e,
        "hidden",
        /*visible*/
        a[13] === !1
      ), Ge(
        e,
        "padded",
        /*padding*/
        a[9]
      ), Ge(
        e,
        "flex",
        /*flex*/
        a[0]
      ), Ge(
        e,
        "border_focus",
        /*border_mode*/
        a[8] === "focus"
      ), Ge(
        e,
        "border_contrast",
        /*border_mode*/
        a[8] === "contrast"
      ), Ge(e, "hide-container", !/*explicit_call*/
      a[11] && !/*container*/
      a[12]), Ge(
        e,
        "auto-margin",
        /*scale*/
        a[16] === null
      ), ze(
        e,
        "height",
        /*get_dimension*/
        a[19](
          /*height*/
          a[1]
        )
      ), ze(
        e,
        "min-height",
        /*get_dimension*/
        a[19](
          /*min_height*/
          a[2]
        )
      ), ze(
        e,
        "max-height",
        /*get_dimension*/
        a[19](
          /*max_height*/
          a[3]
        )
      ), ze(e, "width", typeof /*width*/
      a[4] == "number" ? `calc(min(${/*width*/
      a[4]}px, 100%))` : (
        /*get_dimension*/
        a[19](
          /*width*/
          a[4]
        )
      )), ze(
        e,
        "border-style",
        /*variant*/
        a[7]
      ), ze(
        e,
        "overflow",
        /*allow_overflow*/
        a[14] ? (
          /*overflow_behavior*/
          a[15]
        ) : "hidden"
      ), ze(
        e,
        "flex-grow",
        /*scale*/
        a[16]
      ), ze(e, "min-width", `calc(min(${/*min_width*/
      a[17]}px, 100%))`), ze(e, "border-width", "var(--block-border-width)");
    },
    m(o, h) {
      p1(o, e, h), i && i.m(e, null), r = !0;
    },
    p(o, h) {
      i && i.p && (!r || h & /*$$scope*/
      2097152) && v1(
        i,
        n,
        o,
        /*$$scope*/
        o[21],
        r ? m1(
          n,
          /*$$scope*/
          o[21],
          h,
          null
        ) : h1(
          /*$$scope*/
          o[21]
        ),
        null
      ), Vi(
        /*tag*/
        o[18]
      )(e, s = f1(l, [
        (!r || h & /*test_id*/
        1024) && { "data-testid": (
          /*test_id*/
          o[10]
        ) },
        (!r || h & /*elem_id*/
        32) && { id: (
          /*elem_id*/
          o[5]
        ) },
        (!r || h & /*elem_classes*/
        64 && t !== (t = "block " + /*elem_classes*/
        o[6].join(" ") + " svelte-dbzldu")) && { class: t }
      ])), Ge(
        e,
        "hidden",
        /*visible*/
        o[13] === !1
      ), Ge(
        e,
        "padded",
        /*padding*/
        o[9]
      ), Ge(
        e,
        "flex",
        /*flex*/
        o[0]
      ), Ge(
        e,
        "border_focus",
        /*border_mode*/
        o[8] === "focus"
      ), Ge(
        e,
        "border_contrast",
        /*border_mode*/
        o[8] === "contrast"
      ), Ge(e, "hide-container", !/*explicit_call*/
      o[11] && !/*container*/
      o[12]), Ge(
        e,
        "auto-margin",
        /*scale*/
        o[16] === null
      ), h & /*height*/
      2 && ze(
        e,
        "height",
        /*get_dimension*/
        o[19](
          /*height*/
          o[1]
        )
      ), h & /*min_height*/
      4 && ze(
        e,
        "min-height",
        /*get_dimension*/
        o[19](
          /*min_height*/
          o[2]
        )
      ), h & /*max_height*/
      8 && ze(
        e,
        "max-height",
        /*get_dimension*/
        o[19](
          /*max_height*/
          o[3]
        )
      ), h & /*width*/
      16 && ze(e, "width", typeof /*width*/
      o[4] == "number" ? `calc(min(${/*width*/
      o[4]}px, 100%))` : (
        /*get_dimension*/
        o[19](
          /*width*/
          o[4]
        )
      )), h & /*variant*/
      128 && ze(
        e,
        "border-style",
        /*variant*/
        o[7]
      ), h & /*allow_overflow, overflow_behavior*/
      49152 && ze(
        e,
        "overflow",
        /*allow_overflow*/
        o[14] ? (
          /*overflow_behavior*/
          o[15]
        ) : "hidden"
      ), h & /*scale*/
      65536 && ze(
        e,
        "flex-grow",
        /*scale*/
        o[16]
      ), h & /*min_width*/
      131072 && ze(e, "min-width", `calc(min(${/*min_width*/
      o[17]}px, 100%))`);
    },
    i(o) {
      r || (eo(i, o), r = !0);
    },
    o(o) {
      to(i, o), r = !1;
    },
    d(o) {
      o && Gi(e), i && i.d(o);
    }
  };
}
function y1(a) {
  let e, t = (
    /*tag*/
    a[18] && b1(a)
  );
  return {
    c() {
      t && t.c();
    },
    l(r) {
      t && t.l(r);
    },
    m(r, n) {
      t && t.m(r, n), e = !0;
    },
    p(r, [n]) {
      /*tag*/
      r[18] && t.p(r, n);
    },
    i(r) {
      e || (eo(t, r), e = !0);
    },
    o(r) {
      to(t, r), e = !1;
    },
    d(r) {
      t && t.d(r);
    }
  };
}
function w1(a, e, t) {
  let { $$slots: r = {}, $$scope: n } = e, { height: i = void 0 } = e, { min_height: l = void 0 } = e, { max_height: s = void 0 } = e, { width: o = void 0 } = e, { elem_id: h = "" } = e, { elem_classes: m = [] } = e, { variant: d = "solid" } = e, { border_mode: g = "base" } = e, { padding: v = !0 } = e, { type: y = "normal" } = e, { test_id: x = void 0 } = e, { explicit_call: A = !1 } = e, { container: T = !0 } = e, { visible: _ = !0 } = e, { allow_overflow: b = !0 } = e, { overflow_behavior: E = "auto" } = e, { scale: F = null } = e, { min_width: M = 0 } = e, { flex: z = !1 } = e;
  _ || (z = !1);
  let q = y === "fieldset" ? "fieldset" : "div";
  const I = (B) => {
    if (B !== void 0) {
      if (typeof B == "number")
        return B + "px";
      if (typeof B == "string")
        return B;
    }
  };
  return a.$$set = (B) => {
    "height" in B && t(1, i = B.height), "min_height" in B && t(2, l = B.min_height), "max_height" in B && t(3, s = B.max_height), "width" in B && t(4, o = B.width), "elem_id" in B && t(5, h = B.elem_id), "elem_classes" in B && t(6, m = B.elem_classes), "variant" in B && t(7, d = B.variant), "border_mode" in B && t(8, g = B.border_mode), "padding" in B && t(9, v = B.padding), "type" in B && t(20, y = B.type), "test_id" in B && t(10, x = B.test_id), "explicit_call" in B && t(11, A = B.explicit_call), "container" in B && t(12, T = B.container), "visible" in B && t(13, _ = B.visible), "allow_overflow" in B && t(14, b = B.allow_overflow), "overflow_behavior" in B && t(15, E = B.overflow_behavior), "scale" in B && t(16, F = B.scale), "min_width" in B && t(17, M = B.min_width), "flex" in B && t(0, z = B.flex), "$$scope" in B && t(21, n = B.$$scope);
  }, [
    z,
    i,
    l,
    s,
    o,
    h,
    m,
    d,
    g,
    v,
    x,
    A,
    T,
    _,
    b,
    E,
    F,
    M,
    q,
    I,
    y,
    n,
    r
  ];
}
class k1 extends i1 {
  constructor(e) {
    super(), d1(this, e, w1, y1, g1, {
      height: 1,
      min_height: 2,
      max_height: 3,
      width: 4,
      elem_id: 5,
      elem_classes: 6,
      variant: 7,
      border_mode: 8,
      padding: 9,
      type: 20,
      test_id: 10,
      explicit_call: 11,
      container: 12,
      visible: 13,
      allow_overflow: 14,
      overflow_behavior: 15,
      scale: 16,
      min_width: 17,
      flex: 0
    });
  }
}
class Je {
  // The + prefix indicates that these fields aren't writeable
  // Lexer holding the input string.
  // Start offset, zero-based inclusive.
  // End offset, zero-based exclusive.
  constructor(e, t, r) {
    this.lexer = void 0, this.start = void 0, this.end = void 0, this.lexer = e, this.start = t, this.end = r;
  }
  /**
   * Merges two `SourceLocation`s from location providers, given they are
   * provided in order of appearance.
   * - Returns the first one's location if only the first is provided.
   * - Returns a merged range of the first and the last if both are provided
   *   and their lexers match.
   * - Otherwise, returns null.
   */
  static range(e, t) {
    return t ? !e || !e.loc || !t.loc || e.loc.lexer !== t.loc.lexer ? null : new Je(e.loc.lexer, e.loc.start, t.loc.end) : e && e.loc;
  }
}
class ot {
  // don't expand the token
  // used in \noexpand
  constructor(e, t) {
    this.text = void 0, this.loc = void 0, this.noexpand = void 0, this.treatAsRelax = void 0, this.text = e, this.loc = t;
  }
  /**
   * Given a pair of tokens (this and endToken), compute a `Token` encompassing
   * the whole input range enclosed by these two.
   */
  range(e, t) {
    return new ot(t, Je.range(this, e));
  }
}
class O {
  // Error start position based on passed-in Token or ParseNode.
  // Length of affected text based on passed-in Token or ParseNode.
  // The underlying error message without any context added.
  constructor(e, t) {
    this.name = void 0, this.position = void 0, this.length = void 0, this.rawMessage = void 0;
    var r = "KaTeX parse error: " + e, n, i, l = t && t.loc;
    if (l && l.start <= l.end) {
      var s = l.lexer.input;
      n = l.start, i = l.end, n === s.length ? r += " at end of input: " : r += " at position " + (n + 1) + ": ";
      var o = s.slice(n, i).replace(/[^]/g, "$&̲"), h;
      n > 15 ? h = "…" + s.slice(n - 15, n) : h = s.slice(0, n);
      var m;
      i + 15 < s.length ? m = s.slice(i, i + 15) + "…" : m = s.slice(i), r += h + o + m;
    }
    var d = new Error(r);
    return d.name = "ParseError", d.__proto__ = O.prototype, d.position = n, n != null && i != null && (d.length = i - n), d.rawMessage = e, d;
  }
}
O.prototype.__proto__ = Error.prototype;
var x1 = function(e, t) {
  return e.indexOf(t) !== -1;
}, _1 = function(e, t) {
  return e === void 0 ? t : e;
}, D1 = /([A-Z])/g, A1 = function(e) {
  return e.replace(D1, "-$1").toLowerCase();
}, S1 = {
  "&": "&amp;",
  ">": "&gt;",
  "<": "&lt;",
  '"': "&quot;",
  "'": "&#x27;"
}, E1 = /[&><"']/g;
function F1(a) {
  return String(a).replace(E1, (e) => S1[e]);
}
var ro = function a(e) {
  return e.type === "ordgroup" || e.type === "color" ? e.body.length === 1 ? a(e.body[0]) : e : e.type === "font" ? a(e.body) : e;
}, T1 = function(e) {
  var t = ro(e);
  return t.type === "mathord" || t.type === "textord" || t.type === "atom";
}, C1 = function(e) {
  if (!e)
    throw new Error("Expected non-null, but got " + String(e));
  return e;
}, M1 = function(e) {
  var t = /^[\x00-\x20]*([^\\/#?]*?)(:|&#0*58|&#x0*3a|&colon)/i.exec(e);
  return t ? t[2] !== ":" || !/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1]) ? null : t[1].toLowerCase() : "_relative";
}, Y = {
  contains: x1,
  deflt: _1,
  escape: F1,
  hyphenate: A1,
  getBaseElem: ro,
  isCharacterBox: T1,
  protocolFromUrl: M1
}, ea = {
  displayMode: {
    type: "boolean",
    description: "Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",
    cli: "-d, --display-mode"
  },
  output: {
    type: {
      enum: ["htmlAndMathml", "html", "mathml"]
    },
    description: "Determines the markup language of the output.",
    cli: "-F, --format <type>"
  },
  leqno: {
    type: "boolean",
    description: "Render display math in leqno style (left-justified tags)."
  },
  fleqn: {
    type: "boolean",
    description: "Render display math flush left."
  },
  throwOnError: {
    type: "boolean",
    default: !0,
    cli: "-t, --no-throw-on-error",
    cliDescription: "Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."
  },
  errorColor: {
    type: "string",
    default: "#cc0000",
    cli: "-c, --error-color <color>",
    cliDescription: "A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",
    cliProcessor: (a) => "#" + a
  },
  macros: {
    type: "object",
    cli: "-m, --macro <def>",
    cliDescription: "Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",
    cliDefault: [],
    cliProcessor: (a, e) => (e.push(a), e)
  },
  minRuleThickness: {
    type: "number",
    description: "Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",
    processor: (a) => Math.max(0, a),
    cli: "--min-rule-thickness <size>",
    cliProcessor: parseFloat
  },
  colorIsTextColor: {
    type: "boolean",
    description: "Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",
    cli: "-b, --color-is-text-color"
  },
  strict: {
    type: [{
      enum: ["warn", "ignore", "error"]
    }, "boolean", "function"],
    description: "Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",
    cli: "-S, --strict",
    cliDefault: !1
  },
  trust: {
    type: ["boolean", "function"],
    description: "Trust the input, enabling all HTML features such as \\url.",
    cli: "-T, --trust"
  },
  maxSize: {
    type: "number",
    default: 1 / 0,
    description: "If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",
    processor: (a) => Math.max(0, a),
    cli: "-s, --max-size <n>",
    cliProcessor: parseInt
  },
  maxExpand: {
    type: "number",
    default: 1e3,
    description: "Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",
    processor: (a) => Math.max(0, a),
    cli: "-e, --max-expand <n>",
    cliProcessor: (a) => a === "Infinity" ? 1 / 0 : parseInt(a)
  },
  globalGroup: {
    type: "boolean",
    cli: !1
  }
};
function z1(a) {
  if (a.default)
    return a.default;
  var e = a.type, t = Array.isArray(e) ? e[0] : e;
  if (typeof t != "string")
    return t.enum[0];
  switch (t) {
    case "boolean":
      return !1;
    case "string":
      return "";
    case "number":
      return 0;
    case "object":
      return {};
  }
}
class Wn {
  constructor(e) {
    this.displayMode = void 0, this.output = void 0, this.leqno = void 0, this.fleqn = void 0, this.throwOnError = void 0, this.errorColor = void 0, this.macros = void 0, this.minRuleThickness = void 0, this.colorIsTextColor = void 0, this.strict = void 0, this.trust = void 0, this.maxSize = void 0, this.maxExpand = void 0, this.globalGroup = void 0, e = e || {};
    for (var t in ea)
      if (ea.hasOwnProperty(t)) {
        var r = ea[t];
        this[t] = e[t] !== void 0 ? r.processor ? r.processor(e[t]) : e[t] : z1(r);
      }
  }
  /**
   * Report nonstrict (non-LaTeX-compatible) input.
   * Can safely not be called if `this.strict` is false in JavaScript.
   */
  reportNonstrict(e, t, r) {
    var n = this.strict;
    if (typeof n == "function" && (n = n(e, t, r)), !(!n || n === "ignore")) {
      if (n === !0 || n === "error")
        throw new O("LaTeX-incompatible input and strict mode is set to 'error': " + (t + " [" + e + "]"), r);
      n === "warn" ? typeof console < "u" && console.warn("LaTeX-incompatible input and strict mode is set to 'warn': " + (t + " [" + e + "]")) : typeof console < "u" && console.warn("LaTeX-incompatible input and strict mode is set to " + ("unrecognized '" + n + "': " + t + " [" + e + "]"));
    }
  }
  /**
   * Check whether to apply strict (LaTeX-adhering) behavior for unusual
   * input (like `\\`).  Unlike `nonstrict`, will not throw an error;
   * instead, "error" translates to a return value of `true`, while "ignore"
   * translates to a return value of `false`.  May still print a warning:
   * "warn" prints a warning and returns `false`.
   * This is for the second category of `errorCode`s listed in the README.
   */
  useStrictBehavior(e, t, r) {
    var n = this.strict;
    if (typeof n == "function")
      try {
        n = n(e, t, r);
      } catch {
        n = "error";
      }
    return !n || n === "ignore" ? !1 : n === !0 || n === "error" ? !0 : n === "warn" ? (typeof console < "u" && console.warn("LaTeX-incompatible input and strict mode is set to 'warn': " + (t + " [" + e + "]")), !1) : (typeof console < "u" && console.warn("LaTeX-incompatible input and strict mode is set to " + ("unrecognized '" + n + "': " + t + " [" + e + "]")), !1);
  }
  /**
   * Check whether to test potentially dangerous input, and return
   * `true` (trusted) or `false` (untrusted).  The sole argument `context`
   * should be an object with `command` field specifying the relevant LaTeX
   * command (as a string starting with `\`), and any other arguments, etc.
   * If `context` has a `url` field, a `protocol` field will automatically
   * get added by this function (changing the specified object).
   */
  isTrusted(e) {
    if (e.url && !e.protocol) {
      var t = Y.protocolFromUrl(e.url);
      if (t == null)
        return !1;
      e.protocol = t;
    }
    var r = typeof this.trust == "function" ? this.trust(e) : this.trust;
    return !!r;
  }
}
class o0 {
  constructor(e, t, r) {
    this.id = void 0, this.size = void 0, this.cramped = void 0, this.id = e, this.size = t, this.cramped = r;
  }
  /**
   * Get the style of a superscript given a base in the current style.
   */
  sup() {
    return Bt[B1[this.id]];
  }
  /**
   * Get the style of a subscript given a base in the current style.
   */
  sub() {
    return Bt[N1[this.id]];
  }
  /**
   * Get the style of a fraction numerator given the fraction in the current
   * style.
   */
  fracNum() {
    return Bt[R1[this.id]];
  }
  /**
   * Get the style of a fraction denominator given the fraction in the current
   * style.
   */
  fracDen() {
    return Bt[I1[this.id]];
  }
  /**
   * Get the cramped version of a style (in particular, cramping a cramped style
   * doesn't change the style).
   */
  cramp() {
    return Bt[L1[this.id]];
  }
  /**
   * Get a text or display version of this style.
   */
  text() {
    return Bt[O1[this.id]];
  }
  /**
   * Return true if this style is tightly spaced (scriptstyle/scriptscriptstyle)
   */
  isTight() {
    return this.size >= 2;
  }
}
var Xn = 0, ua = 1, G0 = 2, r0 = 3, gr = 4, it = 5, W0 = 6, Oe = 7, Bt = [new o0(Xn, 0, !1), new o0(ua, 0, !0), new o0(G0, 1, !1), new o0(r0, 1, !0), new o0(gr, 2, !1), new o0(it, 2, !0), new o0(W0, 3, !1), new o0(Oe, 3, !0)], B1 = [gr, it, gr, it, W0, Oe, W0, Oe], N1 = [it, it, it, it, Oe, Oe, Oe, Oe], R1 = [G0, r0, gr, it, W0, Oe, W0, Oe], I1 = [r0, r0, it, it, Oe, Oe, Oe, Oe], L1 = [ua, ua, r0, r0, it, it, Oe, Oe], O1 = [Xn, ua, G0, r0, G0, r0, G0, r0], K = {
  DISPLAY: Bt[Xn],
  TEXT: Bt[G0],
  SCRIPT: Bt[gr],
  SCRIPTSCRIPT: Bt[W0]
}, kn = [{
  // Latin characters beyond the Latin-1 characters we have metrics for.
  // Needed for Czech, Hungarian and Turkish text, for example.
  name: "latin",
  blocks: [
    [256, 591],
    // Latin Extended-A and Latin Extended-B
    [768, 879]
    // Combining Diacritical marks
  ]
}, {
  // The Cyrillic script used by Russian and related languages.
  // A Cyrillic subset used to be supported as explicitly defined
  // symbols in symbols.js
  name: "cyrillic",
  blocks: [[1024, 1279]]
}, {
  // Armenian
  name: "armenian",
  blocks: [[1328, 1423]]
}, {
  // The Brahmic scripts of South and Southeast Asia
  // Devanagari (0900–097F)
  // Bengali (0980–09FF)
  // Gurmukhi (0A00–0A7F)
  // Gujarati (0A80–0AFF)
  // Oriya (0B00–0B7F)
  // Tamil (0B80–0BFF)
  // Telugu (0C00–0C7F)
  // Kannada (0C80–0CFF)
  // Malayalam (0D00–0D7F)
  // Sinhala (0D80–0DFF)
  // Thai (0E00–0E7F)
  // Lao (0E80–0EFF)
  // Tibetan (0F00–0FFF)
  // Myanmar (1000–109F)
  name: "brahmic",
  blocks: [[2304, 4255]]
}, {
  name: "georgian",
  blocks: [[4256, 4351]]
}, {
  // Chinese and Japanese.
  // The "k" in cjk is for Korean, but we've separated Korean out
  name: "cjk",
  blocks: [
    [12288, 12543],
    // CJK symbols and punctuation, Hiragana, Katakana
    [19968, 40879],
    // CJK ideograms
    [65280, 65376]
    // Fullwidth punctuation
    // TODO: add halfwidth Katakana and Romanji glyphs
  ]
}, {
  // Korean
  name: "hangul",
  blocks: [[44032, 55215]]
}];
function q1(a) {
  for (var e = 0; e < kn.length; e++)
    for (var t = kn[e], r = 0; r < t.blocks.length; r++) {
      var n = t.blocks[r];
      if (a >= n[0] && a <= n[1])
        return t.name;
    }
  return null;
}
var ta = [];
kn.forEach((a) => a.blocks.forEach((e) => ta.push(...e)));
function ao(a) {
  for (var e = 0; e < ta.length; e += 2)
    if (a >= ta[e] && a <= ta[e + 1])
      return !0;
  return !1;
}
var R0 = 80, P1 = function(e, t) {
  return "M95," + (622 + e + t) + `
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
c69,-144,104.5,-217.7,106.5,-221
l` + e / 2.075 + " -" + e + `
c5.3,-9.3,12,-14,20,-14
H400000v` + (40 + e) + `H845.2724
s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
M` + (834 + e) + " " + t + "h400000v" + (40 + e) + "h-400000z";
}, H1 = function(e, t) {
  return "M263," + (601 + e + t) + `c0.7,0,18,39.7,52,119
c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
c340,-704.7,510.7,-1060.3,512,-1067
l` + e / 2.084 + " -" + e + `
c4.7,-7.3,11,-11,19,-11
H40000v` + (40 + e) + `H1012.3
s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
M` + (1001 + e) + " " + t + "h400000v" + (40 + e) + "h-400000z";
}, U1 = function(e, t) {
  return "M983 " + (10 + e + t) + `
l` + e / 3.13 + " -" + e + `
c4,-6.7,10,-10,18,-10 H400000v` + (40 + e) + `
H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7
s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744
c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
c53.7,-170.3,84.5,-266.8,92.5,-289.5z
M` + (1001 + e) + " " + t + "h400000v" + (40 + e) + "h-400000z";
}, G1 = function(e, t) {
  return "M424," + (2398 + e + t) + `
c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
l` + e / 4.223 + " -" + e + `c4,-6.7,10,-10,18,-10 H400000
v` + (40 + e) + `H1014.6
s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
c-2,6,-10,9,-24,9
c-8,0,-12,-0.7,-12,-2z M` + (1001 + e) + " " + t + `
h400000v` + (40 + e) + "h-400000z";
}, V1 = function(e, t) {
  return "M473," + (2713 + e + t) + `
c339.3,-1799.3,509.3,-2700,510,-2702 l` + e / 5.298 + " -" + e + `
c3.3,-7.3,9.3,-11,18,-11 H400000v` + (40 + e) + `H1017.7
s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200
c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26
s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
606zM` + (1001 + e) + " " + t + "h400000v" + (40 + e) + "H1017.7z";
}, W1 = function(e) {
  var t = e / 2;
  return "M400000 " + e + " H0 L" + t + " 0 l65 45 L145 " + (e - 80) + " H400000z";
}, X1 = function(e, t, r) {
  var n = r - 54 - t - e;
  return "M702 " + (e + t) + "H400000" + (40 + e) + `
H742v` + n + `l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
219 661 l218 661zM702 ` + t + "H400000v" + (40 + e) + "H742z";
}, Y1 = function(e, t, r) {
  t = 1e3 * t;
  var n = "";
  switch (e) {
    case "sqrtMain":
      n = P1(t, R0);
      break;
    case "sqrtSize1":
      n = H1(t, R0);
      break;
    case "sqrtSize2":
      n = U1(t, R0);
      break;
    case "sqrtSize3":
      n = G1(t, R0);
      break;
    case "sqrtSize4":
      n = V1(t, R0);
      break;
    case "sqrtTall":
      n = X1(t, R0, r);
  }
  return n;
}, j1 = function(e, t) {
  switch (e) {
    case "⎜":
      return "M291 0 H417 V" + t + " H291z M291 0 H417 V" + t + " H291z";
    case "∣":
      return "M145 0 H188 V" + t + " H145z M145 0 H188 V" + t + " H145z";
    case "∥":
      return "M145 0 H188 V" + t + " H145z M145 0 H188 V" + t + " H145z" + ("M367 0 H410 V" + t + " H367z M367 0 H410 V" + t + " H367z");
    case "⎟":
      return "M457 0 H583 V" + t + " H457z M457 0 H583 V" + t + " H457z";
    case "⎢":
      return "M319 0 H403 V" + t + " H319z M319 0 H403 V" + t + " H319z";
    case "⎥":
      return "M263 0 H347 V" + t + " H263z M263 0 H347 V" + t + " H263z";
    case "⎪":
      return "M384 0 H504 V" + t + " H384z M384 0 H504 V" + t + " H384z";
    case "⏐":
      return "M312 0 H355 V" + t + " H312z M312 0 H355 V" + t + " H312z";
    case "‖":
      return "M257 0 H300 V" + t + " H257z M257 0 H300 V" + t + " H257z" + ("M478 0 H521 V" + t + " H478z M478 0 H521 V" + t + " H478z");
    default:
      return "";
  }
}, Wi = {
  // The doubleleftarrow geometry is from glyph U+21D0 in the font KaTeX Main
  doubleleftarrow: `M262 157
l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3
 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28
 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5
c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5
 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87
-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
m8 0v40h399730v-40zm0 194v40h399730v-40z`,
  // doublerightarrow is from glyph U+21D2 in font KaTeX Main
  doublerightarrow: `M399738 392l
-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5
 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88
-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68
-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18
-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3
-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,
  // leftarrow is from glyph U+2190 in font KaTeX Main
  leftarrow: `M400000 241H110l3-3c68.7-52.7 113.7-120
 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8
-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247
c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208
 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3
 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202
 l-3-3h399890zM100 241v40h399900v-40z`,
  // overbrace is from glyphs U+23A9/23A8/23A7 in font KaTeX_Size4-Regular
  leftbrace: `M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
 5-6 9-10 13-.7 1-7.3 1-20 1H6z`,
  leftbraceunder: `M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13
 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688
 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,
  // overgroup is from the MnSymbol package (public domain)
  leftgroup: `M400000 80
H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0
 435 0h399565z`,
  leftgroupunder: `M400000 262
H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
 435 219h399565z`,
  // Harpoons are from glyph U+21BD in font KaTeX Main
  leftharpoon: `M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5
-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7
-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,
  leftharpoonplus: `M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5
 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3
-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7
-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
m0 0v40h400000v-40z`,
  leftharpoondown: `M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667
-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,
  leftharpoondownplus: `M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12
 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7
-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,
  // hook is from glyph U+21A9 in font KaTeX Main
  lefthook: `M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3
-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21
 71.5 23h399859zM103 281v-40h399897v40z`,
  leftlinesegment: `M40 281 V428 H0 V94 H40 V241 H400000 v40z
M40 281 V428 H0 V94 H40 V241 H400000 v40z`,
  leftmapsto: `M40 281 V448H0V74H40V241H400000v40z
M40 281 V448H0V74H40V241H400000v40z`,
  // tofrom is from glyph U+21C4 in font KaTeX AMS Regular
  leftToFrom: `M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3
 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,
  longequal: `M0 50 h400000 v40H0z m0 194h40000v40H0z
M0 50 h400000 v40H0z m0 194h40000v40H0z`,
  midbrace: `M200428 334
c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14
-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11
 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,
  midbraceunder: `M199572 214
c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14
 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0
-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,
  oiintSize1: `M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6
-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8
60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,
  oiintSize2: `M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8
-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
c0 110 84 276 504 276s502.4-166 502.4-276z`,
  oiiintSize1: `M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6
-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,
  oiiintSize2: `M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8
-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,
  rightarrow: `M0 241v40h399891c-47.3 35.3-84 78-110 128
-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20
 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7
 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85
-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
 151.7 139 205zm0 0v40h399900v-40z`,
  rightbrace: `M400000 542l
-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5
s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,
  rightbraceunder: `M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3
 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,
  rightgroup: `M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0
 3-1 3-3v-38c-76-158-257-219-435-219H0z`,
  rightgroupunder: `M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18
 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,
  rightharpoon: `M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3
-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2
-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58
 69.2 92 94.5zm0 0v40h399900v-40z`,
  rightharpoonplus: `M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11
-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7
 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z
m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,
  rightharpoondown: `M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8
 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5
-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95
-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,
  rightharpoondownplus: `M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8
 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3
 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3
-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
m0-194v40h400000v-40zm0 0v40h400000v-40z`,
  righthook: `M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3
 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0
-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21
 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,
  rightlinesegment: `M399960 241 V94 h40 V428 h-40 V281 H0 v-40z
M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,
  rightToFrom: `M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142
-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,
  // twoheadleftarrow is from glyph U+219E in font KaTeX AMS Regular
  twoheadleftarrow: `M0 167c68 40
 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69
-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,
  twoheadrightarrow: `M400000 167
c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3
 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42
 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,
  // tilde1 is a modified version of a glyph from the MnSymbol package
  tilde1: `M200 55.538c-77 0-168 73.953-177 73.953-3 0-7
-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0
 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0
 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
-68.267.847-113-73.952-191-73.952z`,
  // ditto tilde2, tilde3, & tilde4
  tilde2: `M344 55.266c-142 0-300.638 81.316-311.5 86.418
-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9
 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751
 181.476 676 181.476c-149 0-189-126.21-332-126.21z`,
  tilde3: `M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457
-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
 -338 0-409-156.573-744-156.573z`,
  tilde4: `M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
 -175.236-744-175.236z`,
  // vec is from glyph U+20D7 in font KaTeX Main
  vec: `M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5
3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1
-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
c-16-25.333-24-45-24-59z`,
  // widehat1 is a modified version of a glyph from the MnSymbol package
  widehat1: `M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,
  // ditto widehat2, widehat3, & widehat4
  widehat2: `M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10
-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,
  widehat3: `M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10
-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,
  widehat4: `M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10
-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,
  // widecheck paths are all inverted versions of widehat
  widecheck1: `M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,
-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,
  widecheck2: `M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,
  widecheck3: `M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,
  widecheck4: `M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,
  // The next ten paths support reaction arrows from the mhchem package.
  // Arrows for \ce{<-->} are offset from xAxis by 0.22ex, per mhchem in LaTeX
  // baraboveleftarrow is mostly from glyph U+2190 in font KaTeX Main
  baraboveleftarrow: `M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202
c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130
s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47
121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6
s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11
c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,
  // rightarrowabovebar is mostly from glyph U+2192, KaTeX Main
  rightarrowabovebar: `M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0
13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39
-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5
-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,
  // The short left harpoon has 0.5em (i.e. 500 units) kern on the left end.
  // Ref from mhchem.sty: \rlap{\raisebox{-.22ex}{$\kern0.5em
  baraboveshortleftharpoon: `M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21
c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,
  rightharpoonaboveshortbar: `M0,241 l0,40c399126,0,399993,0,399993,0
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,
  shortbaraboveleftharpoon: `M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,
1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,
-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,
  shortrightharpoonabovebar: `M53,241l0,40c398570,0,399437,0,399437,0
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
}, Z1 = function(e, t) {
  switch (e) {
    case "lbrack":
      return "M403 1759 V84 H666 V0 H319 V1759 v" + t + ` v1759 h347 v-84
H403z M403 1759 V0 H319 V1759 v` + t + " v1759 h84z";
    case "rbrack":
      return "M347 1759 V0 H0 V84 H263 V1759 v" + t + ` v1759 H0 v84 H347z
M347 1759 V0 H263 V1759 v` + t + " v1759 h84z";
    case "vert":
      return "M145 15 v585 v" + t + ` v585 c2.667,10,9.667,15,21,15
c10,0,16.667,-5,20,-15 v-585 v` + -t + ` v-585 c-2.667,-10,-9.667,-15,-21,-15
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v` + t + " v585 h43z";
    case "doublevert":
      return "M145 15 v585 v" + t + ` v585 c2.667,10,9.667,15,21,15
c10,0,16.667,-5,20,-15 v-585 v` + -t + ` v-585 c-2.667,-10,-9.667,-15,-21,-15
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v` + t + ` v585 h43z
M367 15 v585 v` + t + ` v585 c2.667,10,9.667,15,21,15
c10,0,16.667,-5,20,-15 v-585 v` + -t + ` v-585 c-2.667,-10,-9.667,-15,-21,-15
c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v` + t + " v585 h43z";
    case "lfloor":
      return "M319 602 V0 H403 V602 v" + t + ` v1715 h263 v84 H319z
MM319 602 V0 H403 V602 v` + t + " v1715 H319z";
    case "rfloor":
      return "M319 602 V0 H403 V602 v" + t + ` v1799 H0 v-84 H319z
MM319 602 V0 H403 V602 v` + t + " v1715 H319z";
    case "lceil":
      return "M403 1759 V84 H666 V0 H319 V1759 v" + t + ` v602 h84z
M403 1759 V0 H319 V1759 v` + t + " v602 h84z";
    case "rceil":
      return "M347 1759 V0 H0 V84 H263 V1759 v" + t + ` v602 h84z
M347 1759 V0 h-84 V1759 v` + t + " v602 h84z";
    case "lparen":
      return `M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1
c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,
-36,557 l0,` + (t + 84) + `c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,
949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9
c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,
-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189
l0,-` + (t + 92) + `c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,
-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;
    case "rparen":
      return `M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,
63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5
c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,` + (t + 9) + `
c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664
c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11
c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17
c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
l0,-` + (t + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;
    default:
      throw new Error("Unknown stretchy delimiter.");
  }
};
class br {
  // HtmlDomNode
  // Never used; needed for satisfying interface.
  constructor(e) {
    this.children = void 0, this.classes = void 0, this.height = void 0, this.depth = void 0, this.maxFontSize = void 0, this.style = void 0, this.children = e, this.classes = [], this.height = 0, this.depth = 0, this.maxFontSize = 0, this.style = {};
  }
  hasClass(e) {
    return Y.contains(this.classes, e);
  }
  /** Convert the fragment into a node. */
  toNode() {
    for (var e = document.createDocumentFragment(), t = 0; t < this.children.length; t++)
      e.appendChild(this.children[t].toNode());
    return e;
  }
  /** Convert the fragment into HTML markup. */
  toMarkup() {
    for (var e = "", t = 0; t < this.children.length; t++)
      e += this.children[t].toMarkup();
    return e;
  }
  /**
   * Converts the math node into a string, similar to innerText. Applies to
   * MathDomNode's only.
   */
  toText() {
    var e = (t) => t.toText();
    return this.children.map(e).join("");
  }
}
var Rt = {
  "AMS-Regular": {
    32: [0, 0, 0, 0, 0.25],
    65: [0, 0.68889, 0, 0, 0.72222],
    66: [0, 0.68889, 0, 0, 0.66667],
    67: [0, 0.68889, 0, 0, 0.72222],
    68: [0, 0.68889, 0, 0, 0.72222],
    69: [0, 0.68889, 0, 0, 0.66667],
    70: [0, 0.68889, 0, 0, 0.61111],
    71: [0, 0.68889, 0, 0, 0.77778],
    72: [0, 0.68889, 0, 0, 0.77778],
    73: [0, 0.68889, 0, 0, 0.38889],
    74: [0.16667, 0.68889, 0, 0, 0.5],
    75: [0, 0.68889, 0, 0, 0.77778],
    76: [0, 0.68889, 0, 0, 0.66667],
    77: [0, 0.68889, 0, 0, 0.94445],
    78: [0, 0.68889, 0, 0, 0.72222],
    79: [0.16667, 0.68889, 0, 0, 0.77778],
    80: [0, 0.68889, 0, 0, 0.61111],
    81: [0.16667, 0.68889, 0, 0, 0.77778],
    82: [0, 0.68889, 0, 0, 0.72222],
    83: [0, 0.68889, 0, 0, 0.55556],
    84: [0, 0.68889, 0, 0, 0.66667],
    85: [0, 0.68889, 0, 0, 0.72222],
    86: [0, 0.68889, 0, 0, 0.72222],
    87: [0, 0.68889, 0, 0, 1],
    88: [0, 0.68889, 0, 0, 0.72222],
    89: [0, 0.68889, 0, 0, 0.72222],
    90: [0, 0.68889, 0, 0, 0.66667],
    107: [0, 0.68889, 0, 0, 0.55556],
    160: [0, 0, 0, 0, 0.25],
    165: [0, 0.675, 0.025, 0, 0.75],
    174: [0.15559, 0.69224, 0, 0, 0.94666],
    240: [0, 0.68889, 0, 0, 0.55556],
    295: [0, 0.68889, 0, 0, 0.54028],
    710: [0, 0.825, 0, 0, 2.33334],
    732: [0, 0.9, 0, 0, 2.33334],
    770: [0, 0.825, 0, 0, 2.33334],
    771: [0, 0.9, 0, 0, 2.33334],
    989: [0.08167, 0.58167, 0, 0, 0.77778],
    1008: [0, 0.43056, 0.04028, 0, 0.66667],
    8245: [0, 0.54986, 0, 0, 0.275],
    8463: [0, 0.68889, 0, 0, 0.54028],
    8487: [0, 0.68889, 0, 0, 0.72222],
    8498: [0, 0.68889, 0, 0, 0.55556],
    8502: [0, 0.68889, 0, 0, 0.66667],
    8503: [0, 0.68889, 0, 0, 0.44445],
    8504: [0, 0.68889, 0, 0, 0.66667],
    8513: [0, 0.68889, 0, 0, 0.63889],
    8592: [-0.03598, 0.46402, 0, 0, 0.5],
    8594: [-0.03598, 0.46402, 0, 0, 0.5],
    8602: [-0.13313, 0.36687, 0, 0, 1],
    8603: [-0.13313, 0.36687, 0, 0, 1],
    8606: [0.01354, 0.52239, 0, 0, 1],
    8608: [0.01354, 0.52239, 0, 0, 1],
    8610: [0.01354, 0.52239, 0, 0, 1.11111],
    8611: [0.01354, 0.52239, 0, 0, 1.11111],
    8619: [0, 0.54986, 0, 0, 1],
    8620: [0, 0.54986, 0, 0, 1],
    8621: [-0.13313, 0.37788, 0, 0, 1.38889],
    8622: [-0.13313, 0.36687, 0, 0, 1],
    8624: [0, 0.69224, 0, 0, 0.5],
    8625: [0, 0.69224, 0, 0, 0.5],
    8630: [0, 0.43056, 0, 0, 1],
    8631: [0, 0.43056, 0, 0, 1],
    8634: [0.08198, 0.58198, 0, 0, 0.77778],
    8635: [0.08198, 0.58198, 0, 0, 0.77778],
    8638: [0.19444, 0.69224, 0, 0, 0.41667],
    8639: [0.19444, 0.69224, 0, 0, 0.41667],
    8642: [0.19444, 0.69224, 0, 0, 0.41667],
    8643: [0.19444, 0.69224, 0, 0, 0.41667],
    8644: [0.1808, 0.675, 0, 0, 1],
    8646: [0.1808, 0.675, 0, 0, 1],
    8647: [0.1808, 0.675, 0, 0, 1],
    8648: [0.19444, 0.69224, 0, 0, 0.83334],
    8649: [0.1808, 0.675, 0, 0, 1],
    8650: [0.19444, 0.69224, 0, 0, 0.83334],
    8651: [0.01354, 0.52239, 0, 0, 1],
    8652: [0.01354, 0.52239, 0, 0, 1],
    8653: [-0.13313, 0.36687, 0, 0, 1],
    8654: [-0.13313, 0.36687, 0, 0, 1],
    8655: [-0.13313, 0.36687, 0, 0, 1],
    8666: [0.13667, 0.63667, 0, 0, 1],
    8667: [0.13667, 0.63667, 0, 0, 1],
    8669: [-0.13313, 0.37788, 0, 0, 1],
    8672: [-0.064, 0.437, 0, 0, 1.334],
    8674: [-0.064, 0.437, 0, 0, 1.334],
    8705: [0, 0.825, 0, 0, 0.5],
    8708: [0, 0.68889, 0, 0, 0.55556],
    8709: [0.08167, 0.58167, 0, 0, 0.77778],
    8717: [0, 0.43056, 0, 0, 0.42917],
    8722: [-0.03598, 0.46402, 0, 0, 0.5],
    8724: [0.08198, 0.69224, 0, 0, 0.77778],
    8726: [0.08167, 0.58167, 0, 0, 0.77778],
    8733: [0, 0.69224, 0, 0, 0.77778],
    8736: [0, 0.69224, 0, 0, 0.72222],
    8737: [0, 0.69224, 0, 0, 0.72222],
    8738: [0.03517, 0.52239, 0, 0, 0.72222],
    8739: [0.08167, 0.58167, 0, 0, 0.22222],
    8740: [0.25142, 0.74111, 0, 0, 0.27778],
    8741: [0.08167, 0.58167, 0, 0, 0.38889],
    8742: [0.25142, 0.74111, 0, 0, 0.5],
    8756: [0, 0.69224, 0, 0, 0.66667],
    8757: [0, 0.69224, 0, 0, 0.66667],
    8764: [-0.13313, 0.36687, 0, 0, 0.77778],
    8765: [-0.13313, 0.37788, 0, 0, 0.77778],
    8769: [-0.13313, 0.36687, 0, 0, 0.77778],
    8770: [-0.03625, 0.46375, 0, 0, 0.77778],
    8774: [0.30274, 0.79383, 0, 0, 0.77778],
    8776: [-0.01688, 0.48312, 0, 0, 0.77778],
    8778: [0.08167, 0.58167, 0, 0, 0.77778],
    8782: [0.06062, 0.54986, 0, 0, 0.77778],
    8783: [0.06062, 0.54986, 0, 0, 0.77778],
    8785: [0.08198, 0.58198, 0, 0, 0.77778],
    8786: [0.08198, 0.58198, 0, 0, 0.77778],
    8787: [0.08198, 0.58198, 0, 0, 0.77778],
    8790: [0, 0.69224, 0, 0, 0.77778],
    8791: [0.22958, 0.72958, 0, 0, 0.77778],
    8796: [0.08198, 0.91667, 0, 0, 0.77778],
    8806: [0.25583, 0.75583, 0, 0, 0.77778],
    8807: [0.25583, 0.75583, 0, 0, 0.77778],
    8808: [0.25142, 0.75726, 0, 0, 0.77778],
    8809: [0.25142, 0.75726, 0, 0, 0.77778],
    8812: [0.25583, 0.75583, 0, 0, 0.5],
    8814: [0.20576, 0.70576, 0, 0, 0.77778],
    8815: [0.20576, 0.70576, 0, 0, 0.77778],
    8816: [0.30274, 0.79383, 0, 0, 0.77778],
    8817: [0.30274, 0.79383, 0, 0, 0.77778],
    8818: [0.22958, 0.72958, 0, 0, 0.77778],
    8819: [0.22958, 0.72958, 0, 0, 0.77778],
    8822: [0.1808, 0.675, 0, 0, 0.77778],
    8823: [0.1808, 0.675, 0, 0, 0.77778],
    8828: [0.13667, 0.63667, 0, 0, 0.77778],
    8829: [0.13667, 0.63667, 0, 0, 0.77778],
    8830: [0.22958, 0.72958, 0, 0, 0.77778],
    8831: [0.22958, 0.72958, 0, 0, 0.77778],
    8832: [0.20576, 0.70576, 0, 0, 0.77778],
    8833: [0.20576, 0.70576, 0, 0, 0.77778],
    8840: [0.30274, 0.79383, 0, 0, 0.77778],
    8841: [0.30274, 0.79383, 0, 0, 0.77778],
    8842: [0.13597, 0.63597, 0, 0, 0.77778],
    8843: [0.13597, 0.63597, 0, 0, 0.77778],
    8847: [0.03517, 0.54986, 0, 0, 0.77778],
    8848: [0.03517, 0.54986, 0, 0, 0.77778],
    8858: [0.08198, 0.58198, 0, 0, 0.77778],
    8859: [0.08198, 0.58198, 0, 0, 0.77778],
    8861: [0.08198, 0.58198, 0, 0, 0.77778],
    8862: [0, 0.675, 0, 0, 0.77778],
    8863: [0, 0.675, 0, 0, 0.77778],
    8864: [0, 0.675, 0, 0, 0.77778],
    8865: [0, 0.675, 0, 0, 0.77778],
    8872: [0, 0.69224, 0, 0, 0.61111],
    8873: [0, 0.69224, 0, 0, 0.72222],
    8874: [0, 0.69224, 0, 0, 0.88889],
    8876: [0, 0.68889, 0, 0, 0.61111],
    8877: [0, 0.68889, 0, 0, 0.61111],
    8878: [0, 0.68889, 0, 0, 0.72222],
    8879: [0, 0.68889, 0, 0, 0.72222],
    8882: [0.03517, 0.54986, 0, 0, 0.77778],
    8883: [0.03517, 0.54986, 0, 0, 0.77778],
    8884: [0.13667, 0.63667, 0, 0, 0.77778],
    8885: [0.13667, 0.63667, 0, 0, 0.77778],
    8888: [0, 0.54986, 0, 0, 1.11111],
    8890: [0.19444, 0.43056, 0, 0, 0.55556],
    8891: [0.19444, 0.69224, 0, 0, 0.61111],
    8892: [0.19444, 0.69224, 0, 0, 0.61111],
    8901: [0, 0.54986, 0, 0, 0.27778],
    8903: [0.08167, 0.58167, 0, 0, 0.77778],
    8905: [0.08167, 0.58167, 0, 0, 0.77778],
    8906: [0.08167, 0.58167, 0, 0, 0.77778],
    8907: [0, 0.69224, 0, 0, 0.77778],
    8908: [0, 0.69224, 0, 0, 0.77778],
    8909: [-0.03598, 0.46402, 0, 0, 0.77778],
    8910: [0, 0.54986, 0, 0, 0.76042],
    8911: [0, 0.54986, 0, 0, 0.76042],
    8912: [0.03517, 0.54986, 0, 0, 0.77778],
    8913: [0.03517, 0.54986, 0, 0, 0.77778],
    8914: [0, 0.54986, 0, 0, 0.66667],
    8915: [0, 0.54986, 0, 0, 0.66667],
    8916: [0, 0.69224, 0, 0, 0.66667],
    8918: [0.0391, 0.5391, 0, 0, 0.77778],
    8919: [0.0391, 0.5391, 0, 0, 0.77778],
    8920: [0.03517, 0.54986, 0, 0, 1.33334],
    8921: [0.03517, 0.54986, 0, 0, 1.33334],
    8922: [0.38569, 0.88569, 0, 0, 0.77778],
    8923: [0.38569, 0.88569, 0, 0, 0.77778],
    8926: [0.13667, 0.63667, 0, 0, 0.77778],
    8927: [0.13667, 0.63667, 0, 0, 0.77778],
    8928: [0.30274, 0.79383, 0, 0, 0.77778],
    8929: [0.30274, 0.79383, 0, 0, 0.77778],
    8934: [0.23222, 0.74111, 0, 0, 0.77778],
    8935: [0.23222, 0.74111, 0, 0, 0.77778],
    8936: [0.23222, 0.74111, 0, 0, 0.77778],
    8937: [0.23222, 0.74111, 0, 0, 0.77778],
    8938: [0.20576, 0.70576, 0, 0, 0.77778],
    8939: [0.20576, 0.70576, 0, 0, 0.77778],
    8940: [0.30274, 0.79383, 0, 0, 0.77778],
    8941: [0.30274, 0.79383, 0, 0, 0.77778],
    8994: [0.19444, 0.69224, 0, 0, 0.77778],
    8995: [0.19444, 0.69224, 0, 0, 0.77778],
    9416: [0.15559, 0.69224, 0, 0, 0.90222],
    9484: [0, 0.69224, 0, 0, 0.5],
    9488: [0, 0.69224, 0, 0, 0.5],
    9492: [0, 0.37788, 0, 0, 0.5],
    9496: [0, 0.37788, 0, 0, 0.5],
    9585: [0.19444, 0.68889, 0, 0, 0.88889],
    9586: [0.19444, 0.74111, 0, 0, 0.88889],
    9632: [0, 0.675, 0, 0, 0.77778],
    9633: [0, 0.675, 0, 0, 0.77778],
    9650: [0, 0.54986, 0, 0, 0.72222],
    9651: [0, 0.54986, 0, 0, 0.72222],
    9654: [0.03517, 0.54986, 0, 0, 0.77778],
    9660: [0, 0.54986, 0, 0, 0.72222],
    9661: [0, 0.54986, 0, 0, 0.72222],
    9664: [0.03517, 0.54986, 0, 0, 0.77778],
    9674: [0.11111, 0.69224, 0, 0, 0.66667],
    9733: [0.19444, 0.69224, 0, 0, 0.94445],
    10003: [0, 0.69224, 0, 0, 0.83334],
    10016: [0, 0.69224, 0, 0, 0.83334],
    10731: [0.11111, 0.69224, 0, 0, 0.66667],
    10846: [0.19444, 0.75583, 0, 0, 0.61111],
    10877: [0.13667, 0.63667, 0, 0, 0.77778],
    10878: [0.13667, 0.63667, 0, 0, 0.77778],
    10885: [0.25583, 0.75583, 0, 0, 0.77778],
    10886: [0.25583, 0.75583, 0, 0, 0.77778],
    10887: [0.13597, 0.63597, 0, 0, 0.77778],
    10888: [0.13597, 0.63597, 0, 0, 0.77778],
    10889: [0.26167, 0.75726, 0, 0, 0.77778],
    10890: [0.26167, 0.75726, 0, 0, 0.77778],
    10891: [0.48256, 0.98256, 0, 0, 0.77778],
    10892: [0.48256, 0.98256, 0, 0, 0.77778],
    10901: [0.13667, 0.63667, 0, 0, 0.77778],
    10902: [0.13667, 0.63667, 0, 0, 0.77778],
    10933: [0.25142, 0.75726, 0, 0, 0.77778],
    10934: [0.25142, 0.75726, 0, 0, 0.77778],
    10935: [0.26167, 0.75726, 0, 0, 0.77778],
    10936: [0.26167, 0.75726, 0, 0, 0.77778],
    10937: [0.26167, 0.75726, 0, 0, 0.77778],
    10938: [0.26167, 0.75726, 0, 0, 0.77778],
    10949: [0.25583, 0.75583, 0, 0, 0.77778],
    10950: [0.25583, 0.75583, 0, 0, 0.77778],
    10955: [0.28481, 0.79383, 0, 0, 0.77778],
    10956: [0.28481, 0.79383, 0, 0, 0.77778],
    57350: [0.08167, 0.58167, 0, 0, 0.22222],
    57351: [0.08167, 0.58167, 0, 0, 0.38889],
    57352: [0.08167, 0.58167, 0, 0, 0.77778],
    57353: [0, 0.43056, 0.04028, 0, 0.66667],
    57356: [0.25142, 0.75726, 0, 0, 0.77778],
    57357: [0.25142, 0.75726, 0, 0, 0.77778],
    57358: [0.41951, 0.91951, 0, 0, 0.77778],
    57359: [0.30274, 0.79383, 0, 0, 0.77778],
    57360: [0.30274, 0.79383, 0, 0, 0.77778],
    57361: [0.41951, 0.91951, 0, 0, 0.77778],
    57366: [0.25142, 0.75726, 0, 0, 0.77778],
    57367: [0.25142, 0.75726, 0, 0, 0.77778],
    57368: [0.25142, 0.75726, 0, 0, 0.77778],
    57369: [0.25142, 0.75726, 0, 0, 0.77778],
    57370: [0.13597, 0.63597, 0, 0, 0.77778],
    57371: [0.13597, 0.63597, 0, 0, 0.77778]
  },
  "Caligraphic-Regular": {
    32: [0, 0, 0, 0, 0.25],
    65: [0, 0.68333, 0, 0.19445, 0.79847],
    66: [0, 0.68333, 0.03041, 0.13889, 0.65681],
    67: [0, 0.68333, 0.05834, 0.13889, 0.52653],
    68: [0, 0.68333, 0.02778, 0.08334, 0.77139],
    69: [0, 0.68333, 0.08944, 0.11111, 0.52778],
    70: [0, 0.68333, 0.09931, 0.11111, 0.71875],
    71: [0.09722, 0.68333, 0.0593, 0.11111, 0.59487],
    72: [0, 0.68333, 965e-5, 0.11111, 0.84452],
    73: [0, 0.68333, 0.07382, 0, 0.54452],
    74: [0.09722, 0.68333, 0.18472, 0.16667, 0.67778],
    75: [0, 0.68333, 0.01445, 0.05556, 0.76195],
    76: [0, 0.68333, 0, 0.13889, 0.68972],
    77: [0, 0.68333, 0, 0.13889, 1.2009],
    78: [0, 0.68333, 0.14736, 0.08334, 0.82049],
    79: [0, 0.68333, 0.02778, 0.11111, 0.79611],
    80: [0, 0.68333, 0.08222, 0.08334, 0.69556],
    81: [0.09722, 0.68333, 0, 0.11111, 0.81667],
    82: [0, 0.68333, 0, 0.08334, 0.8475],
    83: [0, 0.68333, 0.075, 0.13889, 0.60556],
    84: [0, 0.68333, 0.25417, 0, 0.54464],
    85: [0, 0.68333, 0.09931, 0.08334, 0.62583],
    86: [0, 0.68333, 0.08222, 0, 0.61278],
    87: [0, 0.68333, 0.08222, 0.08334, 0.98778],
    88: [0, 0.68333, 0.14643, 0.13889, 0.7133],
    89: [0.09722, 0.68333, 0.08222, 0.08334, 0.66834],
    90: [0, 0.68333, 0.07944, 0.13889, 0.72473],
    160: [0, 0, 0, 0, 0.25]
  },
  "Fraktur-Regular": {
    32: [0, 0, 0, 0, 0.25],
    33: [0, 0.69141, 0, 0, 0.29574],
    34: [0, 0.69141, 0, 0, 0.21471],
    38: [0, 0.69141, 0, 0, 0.73786],
    39: [0, 0.69141, 0, 0, 0.21201],
    40: [0.24982, 0.74947, 0, 0, 0.38865],
    41: [0.24982, 0.74947, 0, 0, 0.38865],
    42: [0, 0.62119, 0, 0, 0.27764],
    43: [0.08319, 0.58283, 0, 0, 0.75623],
    44: [0, 0.10803, 0, 0, 0.27764],
    45: [0.08319, 0.58283, 0, 0, 0.75623],
    46: [0, 0.10803, 0, 0, 0.27764],
    47: [0.24982, 0.74947, 0, 0, 0.50181],
    48: [0, 0.47534, 0, 0, 0.50181],
    49: [0, 0.47534, 0, 0, 0.50181],
    50: [0, 0.47534, 0, 0, 0.50181],
    51: [0.18906, 0.47534, 0, 0, 0.50181],
    52: [0.18906, 0.47534, 0, 0, 0.50181],
    53: [0.18906, 0.47534, 0, 0, 0.50181],
    54: [0, 0.69141, 0, 0, 0.50181],
    55: [0.18906, 0.47534, 0, 0, 0.50181],
    56: [0, 0.69141, 0, 0, 0.50181],
    57: [0.18906, 0.47534, 0, 0, 0.50181],
    58: [0, 0.47534, 0, 0, 0.21606],
    59: [0.12604, 0.47534, 0, 0, 0.21606],
    61: [-0.13099, 0.36866, 0, 0, 0.75623],
    63: [0, 0.69141, 0, 0, 0.36245],
    65: [0, 0.69141, 0, 0, 0.7176],
    66: [0, 0.69141, 0, 0, 0.88397],
    67: [0, 0.69141, 0, 0, 0.61254],
    68: [0, 0.69141, 0, 0, 0.83158],
    69: [0, 0.69141, 0, 0, 0.66278],
    70: [0.12604, 0.69141, 0, 0, 0.61119],
    71: [0, 0.69141, 0, 0, 0.78539],
    72: [0.06302, 0.69141, 0, 0, 0.7203],
    73: [0, 0.69141, 0, 0, 0.55448],
    74: [0.12604, 0.69141, 0, 0, 0.55231],
    75: [0, 0.69141, 0, 0, 0.66845],
    76: [0, 0.69141, 0, 0, 0.66602],
    77: [0, 0.69141, 0, 0, 1.04953],
    78: [0, 0.69141, 0, 0, 0.83212],
    79: [0, 0.69141, 0, 0, 0.82699],
    80: [0.18906, 0.69141, 0, 0, 0.82753],
    81: [0.03781, 0.69141, 0, 0, 0.82699],
    82: [0, 0.69141, 0, 0, 0.82807],
    83: [0, 0.69141, 0, 0, 0.82861],
    84: [0, 0.69141, 0, 0, 0.66899],
    85: [0, 0.69141, 0, 0, 0.64576],
    86: [0, 0.69141, 0, 0, 0.83131],
    87: [0, 0.69141, 0, 0, 1.04602],
    88: [0, 0.69141, 0, 0, 0.71922],
    89: [0.18906, 0.69141, 0, 0, 0.83293],
    90: [0.12604, 0.69141, 0, 0, 0.60201],
    91: [0.24982, 0.74947, 0, 0, 0.27764],
    93: [0.24982, 0.74947, 0, 0, 0.27764],
    94: [0, 0.69141, 0, 0, 0.49965],
    97: [0, 0.47534, 0, 0, 0.50046],
    98: [0, 0.69141, 0, 0, 0.51315],
    99: [0, 0.47534, 0, 0, 0.38946],
    100: [0, 0.62119, 0, 0, 0.49857],
    101: [0, 0.47534, 0, 0, 0.40053],
    102: [0.18906, 0.69141, 0, 0, 0.32626],
    103: [0.18906, 0.47534, 0, 0, 0.5037],
    104: [0.18906, 0.69141, 0, 0, 0.52126],
    105: [0, 0.69141, 0, 0, 0.27899],
    106: [0, 0.69141, 0, 0, 0.28088],
    107: [0, 0.69141, 0, 0, 0.38946],
    108: [0, 0.69141, 0, 0, 0.27953],
    109: [0, 0.47534, 0, 0, 0.76676],
    110: [0, 0.47534, 0, 0, 0.52666],
    111: [0, 0.47534, 0, 0, 0.48885],
    112: [0.18906, 0.52396, 0, 0, 0.50046],
    113: [0.18906, 0.47534, 0, 0, 0.48912],
    114: [0, 0.47534, 0, 0, 0.38919],
    115: [0, 0.47534, 0, 0, 0.44266],
    116: [0, 0.62119, 0, 0, 0.33301],
    117: [0, 0.47534, 0, 0, 0.5172],
    118: [0, 0.52396, 0, 0, 0.5118],
    119: [0, 0.52396, 0, 0, 0.77351],
    120: [0.18906, 0.47534, 0, 0, 0.38865],
    121: [0.18906, 0.47534, 0, 0, 0.49884],
    122: [0.18906, 0.47534, 0, 0, 0.39054],
    160: [0, 0, 0, 0, 0.25],
    8216: [0, 0.69141, 0, 0, 0.21471],
    8217: [0, 0.69141, 0, 0, 0.21471],
    58112: [0, 0.62119, 0, 0, 0.49749],
    58113: [0, 0.62119, 0, 0, 0.4983],
    58114: [0.18906, 0.69141, 0, 0, 0.33328],
    58115: [0.18906, 0.69141, 0, 0, 0.32923],
    58116: [0.18906, 0.47534, 0, 0, 0.50343],
    58117: [0, 0.69141, 0, 0, 0.33301],
    58118: [0, 0.62119, 0, 0, 0.33409],
    58119: [0, 0.47534, 0, 0, 0.50073]
  },
  "Main-Bold": {
    32: [0, 0, 0, 0, 0.25],
    33: [0, 0.69444, 0, 0, 0.35],
    34: [0, 0.69444, 0, 0, 0.60278],
    35: [0.19444, 0.69444, 0, 0, 0.95833],
    36: [0.05556, 0.75, 0, 0, 0.575],
    37: [0.05556, 0.75, 0, 0, 0.95833],
    38: [0, 0.69444, 0, 0, 0.89444],
    39: [0, 0.69444, 0, 0, 0.31944],
    40: [0.25, 0.75, 0, 0, 0.44722],
    41: [0.25, 0.75, 0, 0, 0.44722],
    42: [0, 0.75, 0, 0, 0.575],
    43: [0.13333, 0.63333, 0, 0, 0.89444],
    44: [0.19444, 0.15556, 0, 0, 0.31944],
    45: [0, 0.44444, 0, 0, 0.38333],
    46: [0, 0.15556, 0, 0, 0.31944],
    47: [0.25, 0.75, 0, 0, 0.575],
    48: [0, 0.64444, 0, 0, 0.575],
    49: [0, 0.64444, 0, 0, 0.575],
    50: [0, 0.64444, 0, 0, 0.575],
    51: [0, 0.64444, 0, 0, 0.575],
    52: [0, 0.64444, 0, 0, 0.575],
    53: [0, 0.64444, 0, 0, 0.575],
    54: [0, 0.64444, 0, 0, 0.575],
    55: [0, 0.64444, 0, 0, 0.575],
    56: [0, 0.64444, 0, 0, 0.575],
    57: [0, 0.64444, 0, 0, 0.575],
    58: [0, 0.44444, 0, 0, 0.31944],
    59: [0.19444, 0.44444, 0, 0, 0.31944],
    60: [0.08556, 0.58556, 0, 0, 0.89444],
    61: [-0.10889, 0.39111, 0, 0, 0.89444],
    62: [0.08556, 0.58556, 0, 0, 0.89444],
    63: [0, 0.69444, 0, 0, 0.54305],
    64: [0, 0.69444, 0, 0, 0.89444],
    65: [0, 0.68611, 0, 0, 0.86944],
    66: [0, 0.68611, 0, 0, 0.81805],
    67: [0, 0.68611, 0, 0, 0.83055],
    68: [0, 0.68611, 0, 0, 0.88194],
    69: [0, 0.68611, 0, 0, 0.75555],
    70: [0, 0.68611, 0, 0, 0.72361],
    71: [0, 0.68611, 0, 0, 0.90416],
    72: [0, 0.68611, 0, 0, 0.9],
    73: [0, 0.68611, 0, 0, 0.43611],
    74: [0, 0.68611, 0, 0, 0.59444],
    75: [0, 0.68611, 0, 0, 0.90138],
    76: [0, 0.68611, 0, 0, 0.69166],
    77: [0, 0.68611, 0, 0, 1.09166],
    78: [0, 0.68611, 0, 0, 0.9],
    79: [0, 0.68611, 0, 0, 0.86388],
    80: [0, 0.68611, 0, 0, 0.78611],
    81: [0.19444, 0.68611, 0, 0, 0.86388],
    82: [0, 0.68611, 0, 0, 0.8625],
    83: [0, 0.68611, 0, 0, 0.63889],
    84: [0, 0.68611, 0, 0, 0.8],
    85: [0, 0.68611, 0, 0, 0.88472],
    86: [0, 0.68611, 0.01597, 0, 0.86944],
    87: [0, 0.68611, 0.01597, 0, 1.18888],
    88: [0, 0.68611, 0, 0, 0.86944],
    89: [0, 0.68611, 0.02875, 0, 0.86944],
    90: [0, 0.68611, 0, 0, 0.70277],
    91: [0.25, 0.75, 0, 0, 0.31944],
    92: [0.25, 0.75, 0, 0, 0.575],
    93: [0.25, 0.75, 0, 0, 0.31944],
    94: [0, 0.69444, 0, 0, 0.575],
    95: [0.31, 0.13444, 0.03194, 0, 0.575],
    97: [0, 0.44444, 0, 0, 0.55902],
    98: [0, 0.69444, 0, 0, 0.63889],
    99: [0, 0.44444, 0, 0, 0.51111],
    100: [0, 0.69444, 0, 0, 0.63889],
    101: [0, 0.44444, 0, 0, 0.52708],
    102: [0, 0.69444, 0.10903, 0, 0.35139],
    103: [0.19444, 0.44444, 0.01597, 0, 0.575],
    104: [0, 0.69444, 0, 0, 0.63889],
    105: [0, 0.69444, 0, 0, 0.31944],
    106: [0.19444, 0.69444, 0, 0, 0.35139],
    107: [0, 0.69444, 0, 0, 0.60694],
    108: [0, 0.69444, 0, 0, 0.31944],
    109: [0, 0.44444, 0, 0, 0.95833],
    110: [0, 0.44444, 0, 0, 0.63889],
    111: [0, 0.44444, 0, 0, 0.575],
    112: [0.19444, 0.44444, 0, 0, 0.63889],
    113: [0.19444, 0.44444, 0, 0, 0.60694],
    114: [0, 0.44444, 0, 0, 0.47361],
    115: [0, 0.44444, 0, 0, 0.45361],
    116: [0, 0.63492, 0, 0, 0.44722],
    117: [0, 0.44444, 0, 0, 0.63889],
    118: [0, 0.44444, 0.01597, 0, 0.60694],
    119: [0, 0.44444, 0.01597, 0, 0.83055],
    120: [0, 0.44444, 0, 0, 0.60694],
    121: [0.19444, 0.44444, 0.01597, 0, 0.60694],
    122: [0, 0.44444, 0, 0, 0.51111],
    123: [0.25, 0.75, 0, 0, 0.575],
    124: [0.25, 0.75, 0, 0, 0.31944],
    125: [0.25, 0.75, 0, 0, 0.575],
    126: [0.35, 0.34444, 0, 0, 0.575],
    160: [0, 0, 0, 0, 0.25],
    163: [0, 0.69444, 0, 0, 0.86853],
    168: [0, 0.69444, 0, 0, 0.575],
    172: [0, 0.44444, 0, 0, 0.76666],
    176: [0, 0.69444, 0, 0, 0.86944],
    177: [0.13333, 0.63333, 0, 0, 0.89444],
    184: [0.17014, 0, 0, 0, 0.51111],
    198: [0, 0.68611, 0, 0, 1.04166],
    215: [0.13333, 0.63333, 0, 0, 0.89444],
    216: [0.04861, 0.73472, 0, 0, 0.89444],
    223: [0, 0.69444, 0, 0, 0.59722],
    230: [0, 0.44444, 0, 0, 0.83055],
    247: [0.13333, 0.63333, 0, 0, 0.89444],
    248: [0.09722, 0.54167, 0, 0, 0.575],
    305: [0, 0.44444, 0, 0, 0.31944],
    338: [0, 0.68611, 0, 0, 1.16944],
    339: [0, 0.44444, 0, 0, 0.89444],
    567: [0.19444, 0.44444, 0, 0, 0.35139],
    710: [0, 0.69444, 0, 0, 0.575],
    711: [0, 0.63194, 0, 0, 0.575],
    713: [0, 0.59611, 0, 0, 0.575],
    714: [0, 0.69444, 0, 0, 0.575],
    715: [0, 0.69444, 0, 0, 0.575],
    728: [0, 0.69444, 0, 0, 0.575],
    729: [0, 0.69444, 0, 0, 0.31944],
    730: [0, 0.69444, 0, 0, 0.86944],
    732: [0, 0.69444, 0, 0, 0.575],
    733: [0, 0.69444, 0, 0, 0.575],
    915: [0, 0.68611, 0, 0, 0.69166],
    916: [0, 0.68611, 0, 0, 0.95833],
    920: [0, 0.68611, 0, 0, 0.89444],
    923: [0, 0.68611, 0, 0, 0.80555],
    926: [0, 0.68611, 0, 0, 0.76666],
    928: [0, 0.68611, 0, 0, 0.9],
    931: [0, 0.68611, 0, 0, 0.83055],
    933: [0, 0.68611, 0, 0, 0.89444],
    934: [0, 0.68611, 0, 0, 0.83055],
    936: [0, 0.68611, 0, 0, 0.89444],
    937: [0, 0.68611, 0, 0, 0.83055],
    8211: [0, 0.44444, 0.03194, 0, 0.575],
    8212: [0, 0.44444, 0.03194, 0, 1.14999],
    8216: [0, 0.69444, 0, 0, 0.31944],
    8217: [0, 0.69444, 0, 0, 0.31944],
    8220: [0, 0.69444, 0, 0, 0.60278],
    8221: [0, 0.69444, 0, 0, 0.60278],
    8224: [0.19444, 0.69444, 0, 0, 0.51111],
    8225: [0.19444, 0.69444, 0, 0, 0.51111],
    8242: [0, 0.55556, 0, 0, 0.34444],
    8407: [0, 0.72444, 0.15486, 0, 0.575],
    8463: [0, 0.69444, 0, 0, 0.66759],
    8465: [0, 0.69444, 0, 0, 0.83055],
    8467: [0, 0.69444, 0, 0, 0.47361],
    8472: [0.19444, 0.44444, 0, 0, 0.74027],
    8476: [0, 0.69444, 0, 0, 0.83055],
    8501: [0, 0.69444, 0, 0, 0.70277],
    8592: [-0.10889, 0.39111, 0, 0, 1.14999],
    8593: [0.19444, 0.69444, 0, 0, 0.575],
    8594: [-0.10889, 0.39111, 0, 0, 1.14999],
    8595: [0.19444, 0.69444, 0, 0, 0.575],
    8596: [-0.10889, 0.39111, 0, 0, 1.14999],
    8597: [0.25, 0.75, 0, 0, 0.575],
    8598: [0.19444, 0.69444, 0, 0, 1.14999],
    8599: [0.19444, 0.69444, 0, 0, 1.14999],
    8600: [0.19444, 0.69444, 0, 0, 1.14999],
    8601: [0.19444, 0.69444, 0, 0, 1.14999],
    8636: [-0.10889, 0.39111, 0, 0, 1.14999],
    8637: [-0.10889, 0.39111, 0, 0, 1.14999],
    8640: [-0.10889, 0.39111, 0, 0, 1.14999],
    8641: [-0.10889, 0.39111, 0, 0, 1.14999],
    8656: [-0.10889, 0.39111, 0, 0, 1.14999],
    8657: [0.19444, 0.69444, 0, 0, 0.70277],
    8658: [-0.10889, 0.39111, 0, 0, 1.14999],
    8659: [0.19444, 0.69444, 0, 0, 0.70277],
    8660: [-0.10889, 0.39111, 0, 0, 1.14999],
    8661: [0.25, 0.75, 0, 0, 0.70277],
    8704: [0, 0.69444, 0, 0, 0.63889],
    8706: [0, 0.69444, 0.06389, 0, 0.62847],
    8707: [0, 0.69444, 0, 0, 0.63889],
    8709: [0.05556, 0.75, 0, 0, 0.575],
    8711: [0, 0.68611, 0, 0, 0.95833],
    8712: [0.08556, 0.58556, 0, 0, 0.76666],
    8715: [0.08556, 0.58556, 0, 0, 0.76666],
    8722: [0.13333, 0.63333, 0, 0, 0.89444],
    8723: [0.13333, 0.63333, 0, 0, 0.89444],
    8725: [0.25, 0.75, 0, 0, 0.575],
    8726: [0.25, 0.75, 0, 0, 0.575],
    8727: [-0.02778, 0.47222, 0, 0, 0.575],
    8728: [-0.02639, 0.47361, 0, 0, 0.575],
    8729: [-0.02639, 0.47361, 0, 0, 0.575],
    8730: [0.18, 0.82, 0, 0, 0.95833],
    8733: [0, 0.44444, 0, 0, 0.89444],
    8734: [0, 0.44444, 0, 0, 1.14999],
    8736: [0, 0.69224, 0, 0, 0.72222],
    8739: [0.25, 0.75, 0, 0, 0.31944],
    8741: [0.25, 0.75, 0, 0, 0.575],
    8743: [0, 0.55556, 0, 0, 0.76666],
    8744: [0, 0.55556, 0, 0, 0.76666],
    8745: [0, 0.55556, 0, 0, 0.76666],
    8746: [0, 0.55556, 0, 0, 0.76666],
    8747: [0.19444, 0.69444, 0.12778, 0, 0.56875],
    8764: [-0.10889, 0.39111, 0, 0, 0.89444],
    8768: [0.19444, 0.69444, 0, 0, 0.31944],
    8771: [222e-5, 0.50222, 0, 0, 0.89444],
    8773: [0.027, 0.638, 0, 0, 0.894],
    8776: [0.02444, 0.52444, 0, 0, 0.89444],
    8781: [222e-5, 0.50222, 0, 0, 0.89444],
    8801: [222e-5, 0.50222, 0, 0, 0.89444],
    8804: [0.19667, 0.69667, 0, 0, 0.89444],
    8805: [0.19667, 0.69667, 0, 0, 0.89444],
    8810: [0.08556, 0.58556, 0, 0, 1.14999],
    8811: [0.08556, 0.58556, 0, 0, 1.14999],
    8826: [0.08556, 0.58556, 0, 0, 0.89444],
    8827: [0.08556, 0.58556, 0, 0, 0.89444],
    8834: [0.08556, 0.58556, 0, 0, 0.89444],
    8835: [0.08556, 0.58556, 0, 0, 0.89444],
    8838: [0.19667, 0.69667, 0, 0, 0.89444],
    8839: [0.19667, 0.69667, 0, 0, 0.89444],
    8846: [0, 0.55556, 0, 0, 0.76666],
    8849: [0.19667, 0.69667, 0, 0, 0.89444],
    8850: [0.19667, 0.69667, 0, 0, 0.89444],
    8851: [0, 0.55556, 0, 0, 0.76666],
    8852: [0, 0.55556, 0, 0, 0.76666],
    8853: [0.13333, 0.63333, 0, 0, 0.89444],
    8854: [0.13333, 0.63333, 0, 0, 0.89444],
    8855: [0.13333, 0.63333, 0, 0, 0.89444],
    8856: [0.13333, 0.63333, 0, 0, 0.89444],
    8857: [0.13333, 0.63333, 0, 0, 0.89444],
    8866: [0, 0.69444, 0, 0, 0.70277],
    8867: [0, 0.69444, 0, 0, 0.70277],
    8868: [0, 0.69444, 0, 0, 0.89444],
    8869: [0, 0.69444, 0, 0, 0.89444],
    8900: [-0.02639, 0.47361, 0, 0, 0.575],
    8901: [-0.02639, 0.47361, 0, 0, 0.31944],
    8902: [-0.02778, 0.47222, 0, 0, 0.575],
    8968: [0.25, 0.75, 0, 0, 0.51111],
    8969: [0.25, 0.75, 0, 0, 0.51111],
    8970: [0.25, 0.75, 0, 0, 0.51111],
    8971: [0.25, 0.75, 0, 0, 0.51111],
    8994: [-0.13889, 0.36111, 0, 0, 1.14999],
    8995: [-0.13889, 0.36111, 0, 0, 1.14999],
    9651: [0.19444, 0.69444, 0, 0, 1.02222],
    9657: [-0.02778, 0.47222, 0, 0, 0.575],
    9661: [0.19444, 0.69444, 0, 0, 1.02222],
    9667: [-0.02778, 0.47222, 0, 0, 0.575],
    9711: [0.19444, 0.69444, 0, 0, 1.14999],
    9824: [0.12963, 0.69444, 0, 0, 0.89444],
    9825: [0.12963, 0.69444, 0, 0, 0.89444],
    9826: [0.12963, 0.69444, 0, 0, 0.89444],
    9827: [0.12963, 0.69444, 0, 0, 0.89444],
    9837: [0, 0.75, 0, 0, 0.44722],
    9838: [0.19444, 0.69444, 0, 0, 0.44722],
    9839: [0.19444, 0.69444, 0, 0, 0.44722],
    10216: [0.25, 0.75, 0, 0, 0.44722],
    10217: [0.25, 0.75, 0, 0, 0.44722],
    10815: [0, 0.68611, 0, 0, 0.9],
    10927: [0.19667, 0.69667, 0, 0, 0.89444],
    10928: [0.19667, 0.69667, 0, 0, 0.89444],
    57376: [0.19444, 0.69444, 0, 0, 0]
  },
  "Main-BoldItalic": {
    32: [0, 0, 0, 0, 0.25],
    33: [0, 0.69444, 0.11417, 0, 0.38611],
    34: [0, 0.69444, 0.07939, 0, 0.62055],
    35: [0.19444, 0.69444, 0.06833, 0, 0.94444],
    37: [0.05556, 0.75, 0.12861, 0, 0.94444],
    38: [0, 0.69444, 0.08528, 0, 0.88555],
    39: [0, 0.69444, 0.12945, 0, 0.35555],
    40: [0.25, 0.75, 0.15806, 0, 0.47333],
    41: [0.25, 0.75, 0.03306, 0, 0.47333],
    42: [0, 0.75, 0.14333, 0, 0.59111],
    43: [0.10333, 0.60333, 0.03306, 0, 0.88555],
    44: [0.19444, 0.14722, 0, 0, 0.35555],
    45: [0, 0.44444, 0.02611, 0, 0.41444],
    46: [0, 0.14722, 0, 0, 0.35555],
    47: [0.25, 0.75, 0.15806, 0, 0.59111],
    48: [0, 0.64444, 0.13167, 0, 0.59111],
    49: [0, 0.64444, 0.13167, 0, 0.59111],
    50: [0, 0.64444, 0.13167, 0, 0.59111],
    51: [0, 0.64444, 0.13167, 0, 0.59111],
    52: [0.19444, 0.64444, 0.13167, 0, 0.59111],
    53: [0, 0.64444, 0.13167, 0, 0.59111],
    54: [0, 0.64444, 0.13167, 0, 0.59111],
    55: [0.19444, 0.64444, 0.13167, 0, 0.59111],
    56: [0, 0.64444, 0.13167, 0, 0.59111],
    57: [0, 0.64444, 0.13167, 0, 0.59111],
    58: [0, 0.44444, 0.06695, 0, 0.35555],
    59: [0.19444, 0.44444, 0.06695, 0, 0.35555],
    61: [-0.10889, 0.39111, 0.06833, 0, 0.88555],
    63: [0, 0.69444, 0.11472, 0, 0.59111],
    64: [0, 0.69444, 0.09208, 0, 0.88555],
    65: [0, 0.68611, 0, 0, 0.86555],
    66: [0, 0.68611, 0.0992, 0, 0.81666],
    67: [0, 0.68611, 0.14208, 0, 0.82666],
    68: [0, 0.68611, 0.09062, 0, 0.87555],
    69: [0, 0.68611, 0.11431, 0, 0.75666],
    70: [0, 0.68611, 0.12903, 0, 0.72722],
    71: [0, 0.68611, 0.07347, 0, 0.89527],
    72: [0, 0.68611, 0.17208, 0, 0.8961],
    73: [0, 0.68611, 0.15681, 0, 0.47166],
    74: [0, 0.68611, 0.145, 0, 0.61055],
    75: [0, 0.68611, 0.14208, 0, 0.89499],
    76: [0, 0.68611, 0, 0, 0.69777],
    77: [0, 0.68611, 0.17208, 0, 1.07277],
    78: [0, 0.68611, 0.17208, 0, 0.8961],
    79: [0, 0.68611, 0.09062, 0, 0.85499],
    80: [0, 0.68611, 0.0992, 0, 0.78721],
    81: [0.19444, 0.68611, 0.09062, 0, 0.85499],
    82: [0, 0.68611, 0.02559, 0, 0.85944],
    83: [0, 0.68611, 0.11264, 0, 0.64999],
    84: [0, 0.68611, 0.12903, 0, 0.7961],
    85: [0, 0.68611, 0.17208, 0, 0.88083],
    86: [0, 0.68611, 0.18625, 0, 0.86555],
    87: [0, 0.68611, 0.18625, 0, 1.15999],
    88: [0, 0.68611, 0.15681, 0, 0.86555],
    89: [0, 0.68611, 0.19803, 0, 0.86555],
    90: [0, 0.68611, 0.14208, 0, 0.70888],
    91: [0.25, 0.75, 0.1875, 0, 0.35611],
    93: [0.25, 0.75, 0.09972, 0, 0.35611],
    94: [0, 0.69444, 0.06709, 0, 0.59111],
    95: [0.31, 0.13444, 0.09811, 0, 0.59111],
    97: [0, 0.44444, 0.09426, 0, 0.59111],
    98: [0, 0.69444, 0.07861, 0, 0.53222],
    99: [0, 0.44444, 0.05222, 0, 0.53222],
    100: [0, 0.69444, 0.10861, 0, 0.59111],
    101: [0, 0.44444, 0.085, 0, 0.53222],
    102: [0.19444, 0.69444, 0.21778, 0, 0.4],
    103: [0.19444, 0.44444, 0.105, 0, 0.53222],
    104: [0, 0.69444, 0.09426, 0, 0.59111],
    105: [0, 0.69326, 0.11387, 0, 0.35555],
    106: [0.19444, 0.69326, 0.1672, 0, 0.35555],
    107: [0, 0.69444, 0.11111, 0, 0.53222],
    108: [0, 0.69444, 0.10861, 0, 0.29666],
    109: [0, 0.44444, 0.09426, 0, 0.94444],
    110: [0, 0.44444, 0.09426, 0, 0.64999],
    111: [0, 0.44444, 0.07861, 0, 0.59111],
    112: [0.19444, 0.44444, 0.07861, 0, 0.59111],
    113: [0.19444, 0.44444, 0.105, 0, 0.53222],
    114: [0, 0.44444, 0.11111, 0, 0.50167],
    115: [0, 0.44444, 0.08167, 0, 0.48694],
    116: [0, 0.63492, 0.09639, 0, 0.385],
    117: [0, 0.44444, 0.09426, 0, 0.62055],
    118: [0, 0.44444, 0.11111, 0, 0.53222],
    119: [0, 0.44444, 0.11111, 0, 0.76777],
    120: [0, 0.44444, 0.12583, 0, 0.56055],
    121: [0.19444, 0.44444, 0.105, 0, 0.56166],
    122: [0, 0.44444, 0.13889, 0, 0.49055],
    126: [0.35, 0.34444, 0.11472, 0, 0.59111],
    160: [0, 0, 0, 0, 0.25],
    168: [0, 0.69444, 0.11473, 0, 0.59111],
    176: [0, 0.69444, 0, 0, 0.94888],
    184: [0.17014, 0, 0, 0, 0.53222],
    198: [0, 0.68611, 0.11431, 0, 1.02277],
    216: [0.04861, 0.73472, 0.09062, 0, 0.88555],
    223: [0.19444, 0.69444, 0.09736, 0, 0.665],
    230: [0, 0.44444, 0.085, 0, 0.82666],
    248: [0.09722, 0.54167, 0.09458, 0, 0.59111],
    305: [0, 0.44444, 0.09426, 0, 0.35555],
    338: [0, 0.68611, 0.11431, 0, 1.14054],
    339: [0, 0.44444, 0.085, 0, 0.82666],
    567: [0.19444, 0.44444, 0.04611, 0, 0.385],
    710: [0, 0.69444, 0.06709, 0, 0.59111],
    711: [0, 0.63194, 0.08271, 0, 0.59111],
    713: [0, 0.59444, 0.10444, 0, 0.59111],
    714: [0, 0.69444, 0.08528, 0, 0.59111],
    715: [0, 0.69444, 0, 0, 0.59111],
    728: [0, 0.69444, 0.10333, 0, 0.59111],
    729: [0, 0.69444, 0.12945, 0, 0.35555],
    730: [0, 0.69444, 0, 0, 0.94888],
    732: [0, 0.69444, 0.11472, 0, 0.59111],
    733: [0, 0.69444, 0.11472, 0, 0.59111],
    915: [0, 0.68611, 0.12903, 0, 0.69777],
    916: [0, 0.68611, 0, 0, 0.94444],
    920: [0, 0.68611, 0.09062, 0, 0.88555],
    923: [0, 0.68611, 0, 0, 0.80666],
    926: [0, 0.68611, 0.15092, 0, 0.76777],
    928: [0, 0.68611, 0.17208, 0, 0.8961],
    931: [0, 0.68611, 0.11431, 0, 0.82666],
    933: [0, 0.68611, 0.10778, 0, 0.88555],
    934: [0, 0.68611, 0.05632, 0, 0.82666],
    936: [0, 0.68611, 0.10778, 0, 0.88555],
    937: [0, 0.68611, 0.0992, 0, 0.82666],
    8211: [0, 0.44444, 0.09811, 0, 0.59111],
    8212: [0, 0.44444, 0.09811, 0, 1.18221],
    8216: [0, 0.69444, 0.12945, 0, 0.35555],
    8217: [0, 0.69444, 0.12945, 0, 0.35555],
    8220: [0, 0.69444, 0.16772, 0, 0.62055],
    8221: [0, 0.69444, 0.07939, 0, 0.62055]
  },
  "Main-Italic": {
    32: [0, 0, 0, 0, 0.25],
    33: [0, 0.69444, 0.12417, 0, 0.30667],
    34: [0, 0.69444, 0.06961, 0, 0.51444],
    35: [0.19444, 0.69444, 0.06616, 0, 0.81777],
    37: [0.05556, 0.75, 0.13639, 0, 0.81777],
    38: [0, 0.69444, 0.09694, 0, 0.76666],
    39: [0, 0.69444, 0.12417, 0, 0.30667],
    40: [0.25, 0.75, 0.16194, 0, 0.40889],
    41: [0.25, 0.75, 0.03694, 0, 0.40889],
    42: [0, 0.75, 0.14917, 0, 0.51111],
    43: [0.05667, 0.56167, 0.03694, 0, 0.76666],
    44: [0.19444, 0.10556, 0, 0, 0.30667],
    45: [0, 0.43056, 0.02826, 0, 0.35778],
    46: [0, 0.10556, 0, 0, 0.30667],
    47: [0.25, 0.75, 0.16194, 0, 0.51111],
    48: [0, 0.64444, 0.13556, 0, 0.51111],
    49: [0, 0.64444, 0.13556, 0, 0.51111],
    50: [0, 0.64444, 0.13556, 0, 0.51111],
    51: [0, 0.64444, 0.13556, 0, 0.51111],
    52: [0.19444, 0.64444, 0.13556, 0, 0.51111],
    53: [0, 0.64444, 0.13556, 0, 0.51111],
    54: [0, 0.64444, 0.13556, 0, 0.51111],
    55: [0.19444, 0.64444, 0.13556, 0, 0.51111],
    56: [0, 0.64444, 0.13556, 0, 0.51111],
    57: [0, 0.64444, 0.13556, 0, 0.51111],
    58: [0, 0.43056, 0.0582, 0, 0.30667],
    59: [0.19444, 0.43056, 0.0582, 0, 0.30667],
    61: [-0.13313, 0.36687, 0.06616, 0, 0.76666],
    63: [0, 0.69444, 0.1225, 0, 0.51111],
    64: [0, 0.69444, 0.09597, 0, 0.76666],
    65: [0, 0.68333, 0, 0, 0.74333],
    66: [0, 0.68333, 0.10257, 0, 0.70389],
    67: [0, 0.68333, 0.14528, 0, 0.71555],
    68: [0, 0.68333, 0.09403, 0, 0.755],
    69: [0, 0.68333, 0.12028, 0, 0.67833],
    70: [0, 0.68333, 0.13305, 0, 0.65277],
    71: [0, 0.68333, 0.08722, 0, 0.77361],
    72: [0, 0.68333, 0.16389, 0, 0.74333],
    73: [0, 0.68333, 0.15806, 0, 0.38555],
    74: [0, 0.68333, 0.14028, 0, 0.525],
    75: [0, 0.68333, 0.14528, 0, 0.76888],
    76: [0, 0.68333, 0, 0, 0.62722],
    77: [0, 0.68333, 0.16389, 0, 0.89666],
    78: [0, 0.68333, 0.16389, 0, 0.74333],
    79: [0, 0.68333, 0.09403, 0, 0.76666],
    80: [0, 0.68333, 0.10257, 0, 0.67833],
    81: [0.19444, 0.68333, 0.09403, 0, 0.76666],
    82: [0, 0.68333, 0.03868, 0, 0.72944],
    83: [0, 0.68333, 0.11972, 0, 0.56222],
    84: [0, 0.68333, 0.13305, 0, 0.71555],
    85: [0, 0.68333, 0.16389, 0, 0.74333],
    86: [0, 0.68333, 0.18361, 0, 0.74333],
    87: [0, 0.68333, 0.18361, 0, 0.99888],
    88: [0, 0.68333, 0.15806, 0, 0.74333],
    89: [0, 0.68333, 0.19383, 0, 0.74333],
    90: [0, 0.68333, 0.14528, 0, 0.61333],
    91: [0.25, 0.75, 0.1875, 0, 0.30667],
    93: [0.25, 0.75, 0.10528, 0, 0.30667],
    94: [0, 0.69444, 0.06646, 0, 0.51111],
    95: [0.31, 0.12056, 0.09208, 0, 0.51111],
    97: [0, 0.43056, 0.07671, 0, 0.51111],
    98: [0, 0.69444, 0.06312, 0, 0.46],
    99: [0, 0.43056, 0.05653, 0, 0.46],
    100: [0, 0.69444, 0.10333, 0, 0.51111],
    101: [0, 0.43056, 0.07514, 0, 0.46],
    102: [0.19444, 0.69444, 0.21194, 0, 0.30667],
    103: [0.19444, 0.43056, 0.08847, 0, 0.46],
    104: [0, 0.69444, 0.07671, 0, 0.51111],
    105: [0, 0.65536, 0.1019, 0, 0.30667],
    106: [0.19444, 0.65536, 0.14467, 0, 0.30667],
    107: [0, 0.69444, 0.10764, 0, 0.46],
    108: [0, 0.69444, 0.10333, 0, 0.25555],
    109: [0, 0.43056, 0.07671, 0, 0.81777],
    110: [0, 0.43056, 0.07671, 0, 0.56222],
    111: [0, 0.43056, 0.06312, 0, 0.51111],
    112: [0.19444, 0.43056, 0.06312, 0, 0.51111],
    113: [0.19444, 0.43056, 0.08847, 0, 0.46],
    114: [0, 0.43056, 0.10764, 0, 0.42166],
    115: [0, 0.43056, 0.08208, 0, 0.40889],
    116: [0, 0.61508, 0.09486, 0, 0.33222],
    117: [0, 0.43056, 0.07671, 0, 0.53666],
    118: [0, 0.43056, 0.10764, 0, 0.46],
    119: [0, 0.43056, 0.10764, 0, 0.66444],
    120: [0, 0.43056, 0.12042, 0, 0.46389],
    121: [0.19444, 0.43056, 0.08847, 0, 0.48555],
    122: [0, 0.43056, 0.12292, 0, 0.40889],
    126: [0.35, 0.31786, 0.11585, 0, 0.51111],
    160: [0, 0, 0, 0, 0.25],
    168: [0, 0.66786, 0.10474, 0, 0.51111],
    176: [0, 0.69444, 0, 0, 0.83129],
    184: [0.17014, 0, 0, 0, 0.46],
    198: [0, 0.68333, 0.12028, 0, 0.88277],
    216: [0.04861, 0.73194, 0.09403, 0, 0.76666],
    223: [0.19444, 0.69444, 0.10514, 0, 0.53666],
    230: [0, 0.43056, 0.07514, 0, 0.71555],
    248: [0.09722, 0.52778, 0.09194, 0, 0.51111],
    338: [0, 0.68333, 0.12028, 0, 0.98499],
    339: [0, 0.43056, 0.07514, 0, 0.71555],
    710: [0, 0.69444, 0.06646, 0, 0.51111],
    711: [0, 0.62847, 0.08295, 0, 0.51111],
    713: [0, 0.56167, 0.10333, 0, 0.51111],
    714: [0, 0.69444, 0.09694, 0, 0.51111],
    715: [0, 0.69444, 0, 0, 0.51111],
    728: [0, 0.69444, 0.10806, 0, 0.51111],
    729: [0, 0.66786, 0.11752, 0, 0.30667],
    730: [0, 0.69444, 0, 0, 0.83129],
    732: [0, 0.66786, 0.11585, 0, 0.51111],
    733: [0, 0.69444, 0.1225, 0, 0.51111],
    915: [0, 0.68333, 0.13305, 0, 0.62722],
    916: [0, 0.68333, 0, 0, 0.81777],
    920: [0, 0.68333, 0.09403, 0, 0.76666],
    923: [0, 0.68333, 0, 0, 0.69222],
    926: [0, 0.68333, 0.15294, 0, 0.66444],
    928: [0, 0.68333, 0.16389, 0, 0.74333],
    931: [0, 0.68333, 0.12028, 0, 0.71555],
    933: [0, 0.68333, 0.11111, 0, 0.76666],
    934: [0, 0.68333, 0.05986, 0, 0.71555],
    936: [0, 0.68333, 0.11111, 0, 0.76666],
    937: [0, 0.68333, 0.10257, 0, 0.71555],
    8211: [0, 0.43056, 0.09208, 0, 0.51111],
    8212: [0, 0.43056, 0.09208, 0, 1.02222],
    8216: [0, 0.69444, 0.12417, 0, 0.30667],
    8217: [0, 0.69444, 0.12417, 0, 0.30667],
    8220: [0, 0.69444, 0.1685, 0, 0.51444],
    8221: [0, 0.69444, 0.06961, 0, 0.51444],
    8463: [0, 0.68889, 0, 0, 0.54028]
  },
  "Main-Regular": {
    32: [0, 0, 0, 0, 0.25],
    33: [0, 0.69444, 0, 0, 0.27778],
    34: [0, 0.69444, 0, 0, 0.5],
    35: [0.19444, 0.69444, 0, 0, 0.83334],
    36: [0.05556, 0.75, 0, 0, 0.5],
    37: [0.05556, 0.75, 0, 0, 0.83334],
    38: [0, 0.69444, 0, 0, 0.77778],
    39: [0, 0.69444, 0, 0, 0.27778],
    40: [0.25, 0.75, 0, 0, 0.38889],
    41: [0.25, 0.75, 0, 0, 0.38889],
    42: [0, 0.75, 0, 0, 0.5],
    43: [0.08333, 0.58333, 0, 0, 0.77778],
    44: [0.19444, 0.10556, 0, 0, 0.27778],
    45: [0, 0.43056, 0, 0, 0.33333],
    46: [0, 0.10556, 0, 0, 0.27778],
    47: [0.25, 0.75, 0, 0, 0.5],
    48: [0, 0.64444, 0, 0, 0.5],
    49: [0, 0.64444, 0, 0, 0.5],
    50: [0, 0.64444, 0, 0, 0.5],
    51: [0, 0.64444, 0, 0, 0.5],
    52: [0, 0.64444, 0, 0, 0.5],
    53: [0, 0.64444, 0, 0, 0.5],
    54: [0, 0.64444, 0, 0, 0.5],
    55: [0, 0.64444, 0, 0, 0.5],
    56: [0, 0.64444, 0, 0, 0.5],
    57: [0, 0.64444, 0, 0, 0.5],
    58: [0, 0.43056, 0, 0, 0.27778],
    59: [0.19444, 0.43056, 0, 0, 0.27778],
    60: [0.0391, 0.5391, 0, 0, 0.77778],
    61: [-0.13313, 0.36687, 0, 0, 0.77778],
    62: [0.0391, 0.5391, 0, 0, 0.77778],
    63: [0, 0.69444, 0, 0, 0.47222],
    64: [0, 0.69444, 0, 0, 0.77778],
    65: [0, 0.68333, 0, 0, 0.75],
    66: [0, 0.68333, 0, 0, 0.70834],
    67: [0, 0.68333, 0, 0, 0.72222],
    68: [0, 0.68333, 0, 0, 0.76389],
    69: [0, 0.68333, 0, 0, 0.68056],
    70: [0, 0.68333, 0, 0, 0.65278],
    71: [0, 0.68333, 0, 0, 0.78472],
    72: [0, 0.68333, 0, 0, 0.75],
    73: [0, 0.68333, 0, 0, 0.36111],
    74: [0, 0.68333, 0, 0, 0.51389],
    75: [0, 0.68333, 0, 0, 0.77778],
    76: [0, 0.68333, 0, 0, 0.625],
    77: [0, 0.68333, 0, 0, 0.91667],
    78: [0, 0.68333, 0, 0, 0.75],
    79: [0, 0.68333, 0, 0, 0.77778],
    80: [0, 0.68333, 0, 0, 0.68056],
    81: [0.19444, 0.68333, 0, 0, 0.77778],
    82: [0, 0.68333, 0, 0, 0.73611],
    83: [0, 0.68333, 0, 0, 0.55556],
    84: [0, 0.68333, 0, 0, 0.72222],
    85: [0, 0.68333, 0, 0, 0.75],
    86: [0, 0.68333, 0.01389, 0, 0.75],
    87: [0, 0.68333, 0.01389, 0, 1.02778],
    88: [0, 0.68333, 0, 0, 0.75],
    89: [0, 0.68333, 0.025, 0, 0.75],
    90: [0, 0.68333, 0, 0, 0.61111],
    91: [0.25, 0.75, 0, 0, 0.27778],
    92: [0.25, 0.75, 0, 0, 0.5],
    93: [0.25, 0.75, 0, 0, 0.27778],
    94: [0, 0.69444, 0, 0, 0.5],
    95: [0.31, 0.12056, 0.02778, 0, 0.5],
    97: [0, 0.43056, 0, 0, 0.5],
    98: [0, 0.69444, 0, 0, 0.55556],
    99: [0, 0.43056, 0, 0, 0.44445],
    100: [0, 0.69444, 0, 0, 0.55556],
    101: [0, 0.43056, 0, 0, 0.44445],
    102: [0, 0.69444, 0.07778, 0, 0.30556],
    103: [0.19444, 0.43056, 0.01389, 0, 0.5],
    104: [0, 0.69444, 0, 0, 0.55556],
    105: [0, 0.66786, 0, 0, 0.27778],
    106: [0.19444, 0.66786, 0, 0, 0.30556],
    107: [0, 0.69444, 0, 0, 0.52778],
    108: [0, 0.69444, 0, 0, 0.27778],
    109: [0, 0.43056, 0, 0, 0.83334],
    110: [0, 0.43056, 0, 0, 0.55556],
    111: [0, 0.43056, 0, 0, 0.5],
    112: [0.19444, 0.43056, 0, 0, 0.55556],
    113: [0.19444, 0.43056, 0, 0, 0.52778],
    114: [0, 0.43056, 0, 0, 0.39167],
    115: [0, 0.43056, 0, 0, 0.39445],
    116: [0, 0.61508, 0, 0, 0.38889],
    117: [0, 0.43056, 0, 0, 0.55556],
    118: [0, 0.43056, 0.01389, 0, 0.52778],
    119: [0, 0.43056, 0.01389, 0, 0.72222],
    120: [0, 0.43056, 0, 0, 0.52778],
    121: [0.19444, 0.43056, 0.01389, 0, 0.52778],
    122: [0, 0.43056, 0, 0, 0.44445],
    123: [0.25, 0.75, 0, 0, 0.5],
    124: [0.25, 0.75, 0, 0, 0.27778],
    125: [0.25, 0.75, 0, 0, 0.5],
    126: [0.35, 0.31786, 0, 0, 0.5],
    160: [0, 0, 0, 0, 0.25],
    163: [0, 0.69444, 0, 0, 0.76909],
    167: [0.19444, 0.69444, 0, 0, 0.44445],
    168: [0, 0.66786, 0, 0, 0.5],
    172: [0, 0.43056, 0, 0, 0.66667],
    176: [0, 0.69444, 0, 0, 0.75],
    177: [0.08333, 0.58333, 0, 0, 0.77778],
    182: [0.19444, 0.69444, 0, 0, 0.61111],
    184: [0.17014, 0, 0, 0, 0.44445],
    198: [0, 0.68333, 0, 0, 0.90278],
    215: [0.08333, 0.58333, 0, 0, 0.77778],
    216: [0.04861, 0.73194, 0, 0, 0.77778],
    223: [0, 0.69444, 0, 0, 0.5],
    230: [0, 0.43056, 0, 0, 0.72222],
    247: [0.08333, 0.58333, 0, 0, 0.77778],
    248: [0.09722, 0.52778, 0, 0, 0.5],
    305: [0, 0.43056, 0, 0, 0.27778],
    338: [0, 0.68333, 0, 0, 1.01389],
    339: [0, 0.43056, 0, 0, 0.77778],
    567: [0.19444, 0.43056, 0, 0, 0.30556],
    710: [0, 0.69444, 0, 0, 0.5],
    711: [0, 0.62847, 0, 0, 0.5],
    713: [0, 0.56778, 0, 0, 0.5],
    714: [0, 0.69444, 0, 0, 0.5],
    715: [0, 0.69444, 0, 0, 0.5],
    728: [0, 0.69444, 0, 0, 0.5],
    729: [0, 0.66786, 0, 0, 0.27778],
    730: [0, 0.69444, 0, 0, 0.75],
    732: [0, 0.66786, 0, 0, 0.5],
    733: [0, 0.69444, 0, 0, 0.5],
    915: [0, 0.68333, 0, 0, 0.625],
    916: [0, 0.68333, 0, 0, 0.83334],
    920: [0, 0.68333, 0, 0, 0.77778],
    923: [0, 0.68333, 0, 0, 0.69445],
    926: [0, 0.68333, 0, 0, 0.66667],
    928: [0, 0.68333, 0, 0, 0.75],
    931: [0, 0.68333, 0, 0, 0.72222],
    933: [0, 0.68333, 0, 0, 0.77778],
    934: [0, 0.68333, 0, 0, 0.72222],
    936: [0, 0.68333, 0, 0, 0.77778],
    937: [0, 0.68333, 0, 0, 0.72222],
    8211: [0, 0.43056, 0.02778, 0, 0.5],
    8212: [0, 0.43056, 0.02778, 0, 1],
    8216: [0, 0.69444, 0, 0, 0.27778],
    8217: [0, 0.69444, 0, 0, 0.27778],
    8220: [0, 0.69444, 0, 0, 0.5],
    8221: [0, 0.69444, 0, 0, 0.5],
    8224: [0.19444, 0.69444, 0, 0, 0.44445],
    8225: [0.19444, 0.69444, 0, 0, 0.44445],
    8230: [0, 0.123, 0, 0, 1.172],
    8242: [0, 0.55556, 0, 0, 0.275],
    8407: [0, 0.71444, 0.15382, 0, 0.5],
    8463: [0, 0.68889, 0, 0, 0.54028],
    8465: [0, 0.69444, 0, 0, 0.72222],
    8467: [0, 0.69444, 0, 0.11111, 0.41667],
    8472: [0.19444, 0.43056, 0, 0.11111, 0.63646],
    8476: [0, 0.69444, 0, 0, 0.72222],
    8501: [0, 0.69444, 0, 0, 0.61111],
    8592: [-0.13313, 0.36687, 0, 0, 1],
    8593: [0.19444, 0.69444, 0, 0, 0.5],
    8594: [-0.13313, 0.36687, 0, 0, 1],
    8595: [0.19444, 0.69444, 0, 0, 0.5],
    8596: [-0.13313, 0.36687, 0, 0, 1],
    8597: [0.25, 0.75, 0, 0, 0.5],
    8598: [0.19444, 0.69444, 0, 0, 1],
    8599: [0.19444, 0.69444, 0, 0, 1],
    8600: [0.19444, 0.69444, 0, 0, 1],
    8601: [0.19444, 0.69444, 0, 0, 1],
    8614: [0.011, 0.511, 0, 0, 1],
    8617: [0.011, 0.511, 0, 0, 1.126],
    8618: [0.011, 0.511, 0, 0, 1.126],
    8636: [-0.13313, 0.36687, 0, 0, 1],
    8637: [-0.13313, 0.36687, 0, 0, 1],
    8640: [-0.13313, 0.36687, 0, 0, 1],
    8641: [-0.13313, 0.36687, 0, 0, 1],
    8652: [0.011, 0.671, 0, 0, 1],
    8656: [-0.13313, 0.36687, 0, 0, 1],
    8657: [0.19444, 0.69444, 0, 0, 0.61111],
    8658: [-0.13313, 0.36687, 0, 0, 1],
    8659: [0.19444, 0.69444, 0, 0, 0.61111],
    8660: [-0.13313, 0.36687, 0, 0, 1],
    8661: [0.25, 0.75, 0, 0, 0.61111],
    8704: [0, 0.69444, 0, 0, 0.55556],
    8706: [0, 0.69444, 0.05556, 0.08334, 0.5309],
    8707: [0, 0.69444, 0, 0, 0.55556],
    8709: [0.05556, 0.75, 0, 0, 0.5],
    8711: [0, 0.68333, 0, 0, 0.83334],
    8712: [0.0391, 0.5391, 0, 0, 0.66667],
    8715: [0.0391, 0.5391, 0, 0, 0.66667],
    8722: [0.08333, 0.58333, 0, 0, 0.77778],
    8723: [0.08333, 0.58333, 0, 0, 0.77778],
    8725: [0.25, 0.75, 0, 0, 0.5],
    8726: [0.25, 0.75, 0, 0, 0.5],
    8727: [-0.03472, 0.46528, 0, 0, 0.5],
    8728: [-0.05555, 0.44445, 0, 0, 0.5],
    8729: [-0.05555, 0.44445, 0, 0, 0.5],
    8730: [0.2, 0.8, 0, 0, 0.83334],
    8733: [0, 0.43056, 0, 0, 0.77778],
    8734: [0, 0.43056, 0, 0, 1],
    8736: [0, 0.69224, 0, 0, 0.72222],
    8739: [0.25, 0.75, 0, 0, 0.27778],
    8741: [0.25, 0.75, 0, 0, 0.5],
    8743: [0, 0.55556, 0, 0, 0.66667],
    8744: [0, 0.55556, 0, 0, 0.66667],
    8745: [0, 0.55556, 0, 0, 0.66667],
    8746: [0, 0.55556, 0, 0, 0.66667],
    8747: [0.19444, 0.69444, 0.11111, 0, 0.41667],
    8764: [-0.13313, 0.36687, 0, 0, 0.77778],
    8768: [0.19444, 0.69444, 0, 0, 0.27778],
    8771: [-0.03625, 0.46375, 0, 0, 0.77778],
    8773: [-0.022, 0.589, 0, 0, 0.778],
    8776: [-0.01688, 0.48312, 0, 0, 0.77778],
    8781: [-0.03625, 0.46375, 0, 0, 0.77778],
    8784: [-0.133, 0.673, 0, 0, 0.778],
    8801: [-0.03625, 0.46375, 0, 0, 0.77778],
    8804: [0.13597, 0.63597, 0, 0, 0.77778],
    8805: [0.13597, 0.63597, 0, 0, 0.77778],
    8810: [0.0391, 0.5391, 0, 0, 1],
    8811: [0.0391, 0.5391, 0, 0, 1],
    8826: [0.0391, 0.5391, 0, 0, 0.77778],
    8827: [0.0391, 0.5391, 0, 0, 0.77778],
    8834: [0.0391, 0.5391, 0, 0, 0.77778],
    8835: [0.0391, 0.5391, 0, 0, 0.77778],
    8838: [0.13597, 0.63597, 0, 0, 0.77778],
    8839: [0.13597, 0.63597, 0, 0, 0.77778],
    8846: [0, 0.55556, 0, 0, 0.66667],
    8849: [0.13597, 0.63597, 0, 0, 0.77778],
    8850: [0.13597, 0.63597, 0, 0, 0.77778],
    8851: [0, 0.55556, 0, 0, 0.66667],
    8852: [0, 0.55556, 0, 0, 0.66667],
    8853: [0.08333, 0.58333, 0, 0, 0.77778],
    8854: [0.08333, 0.58333, 0, 0, 0.77778],
    8855: [0.08333, 0.58333, 0, 0, 0.77778],
    8856: [0.08333, 0.58333, 0, 0, 0.77778],
    8857: [0.08333, 0.58333, 0, 0, 0.77778],
    8866: [0, 0.69444, 0, 0, 0.61111],
    8867: [0, 0.69444, 0, 0, 0.61111],
    8868: [0, 0.69444, 0, 0, 0.77778],
    8869: [0, 0.69444, 0, 0, 0.77778],
    8872: [0.249, 0.75, 0, 0, 0.867],
    8900: [-0.05555, 0.44445, 0, 0, 0.5],
    8901: [-0.05555, 0.44445, 0, 0, 0.27778],
    8902: [-0.03472, 0.46528, 0, 0, 0.5],
    8904: [5e-3, 0.505, 0, 0, 0.9],
    8942: [0.03, 0.903, 0, 0, 0.278],
    8943: [-0.19, 0.313, 0, 0, 1.172],
    8945: [-0.1, 0.823, 0, 0, 1.282],
    8968: [0.25, 0.75, 0, 0, 0.44445],
    8969: [0.25, 0.75, 0, 0, 0.44445],
    8970: [0.25, 0.75, 0, 0, 0.44445],
    8971: [0.25, 0.75, 0, 0, 0.44445],
    8994: [-0.14236, 0.35764, 0, 0, 1],
    8995: [-0.14236, 0.35764, 0, 0, 1],
    9136: [0.244, 0.744, 0, 0, 0.412],
    9137: [0.244, 0.745, 0, 0, 0.412],
    9651: [0.19444, 0.69444, 0, 0, 0.88889],
    9657: [-0.03472, 0.46528, 0, 0, 0.5],
    9661: [0.19444, 0.69444, 0, 0, 0.88889],
    9667: [-0.03472, 0.46528, 0, 0, 0.5],
    9711: [0.19444, 0.69444, 0, 0, 1],
    9824: [0.12963, 0.69444, 0, 0, 0.77778],
    9825: [0.12963, 0.69444, 0, 0, 0.77778],
    9826: [0.12963, 0.69444, 0, 0, 0.77778],
    9827: [0.12963, 0.69444, 0, 0, 0.77778],
    9837: [0, 0.75, 0, 0, 0.38889],
    9838: [0.19444, 0.69444, 0, 0, 0.38889],
    9839: [0.19444, 0.69444, 0, 0, 0.38889],
    10216: [0.25, 0.75, 0, 0, 0.38889],
    10217: [0.25, 0.75, 0, 0, 0.38889],
    10222: [0.244, 0.744, 0, 0, 0.412],
    10223: [0.244, 0.745, 0, 0, 0.412],
    10229: [0.011, 0.511, 0, 0, 1.609],
    10230: [0.011, 0.511, 0, 0, 1.638],
    10231: [0.011, 0.511, 0, 0, 1.859],
    10232: [0.024, 0.525, 0, 0, 1.609],
    10233: [0.024, 0.525, 0, 0, 1.638],
    10234: [0.024, 0.525, 0, 0, 1.858],
    10236: [0.011, 0.511, 0, 0, 1.638],
    10815: [0, 0.68333, 0, 0, 0.75],
    10927: [0.13597, 0.63597, 0, 0, 0.77778],
    10928: [0.13597, 0.63597, 0, 0, 0.77778],
    57376: [0.19444, 0.69444, 0, 0, 0]
  },
  "Math-BoldItalic": {
    32: [0, 0, 0, 0, 0.25],
    48: [0, 0.44444, 0, 0, 0.575],
    49: [0, 0.44444, 0, 0, 0.575],
    50: [0, 0.44444, 0, 0, 0.575],
    51: [0.19444, 0.44444, 0, 0, 0.575],
    52: [0.19444, 0.44444, 0, 0, 0.575],
    53: [0.19444, 0.44444, 0, 0, 0.575],
    54: [0, 0.64444, 0, 0, 0.575],
    55: [0.19444, 0.44444, 0, 0, 0.575],
    56: [0, 0.64444, 0, 0, 0.575],
    57: [0.19444, 0.44444, 0, 0, 0.575],
    65: [0, 0.68611, 0, 0, 0.86944],
    66: [0, 0.68611, 0.04835, 0, 0.8664],
    67: [0, 0.68611, 0.06979, 0, 0.81694],
    68: [0, 0.68611, 0.03194, 0, 0.93812],
    69: [0, 0.68611, 0.05451, 0, 0.81007],
    70: [0, 0.68611, 0.15972, 0, 0.68889],
    71: [0, 0.68611, 0, 0, 0.88673],
    72: [0, 0.68611, 0.08229, 0, 0.98229],
    73: [0, 0.68611, 0.07778, 0, 0.51111],
    74: [0, 0.68611, 0.10069, 0, 0.63125],
    75: [0, 0.68611, 0.06979, 0, 0.97118],
    76: [0, 0.68611, 0, 0, 0.75555],
    77: [0, 0.68611, 0.11424, 0, 1.14201],
    78: [0, 0.68611, 0.11424, 0, 0.95034],
    79: [0, 0.68611, 0.03194, 0, 0.83666],
    80: [0, 0.68611, 0.15972, 0, 0.72309],
    81: [0.19444, 0.68611, 0, 0, 0.86861],
    82: [0, 0.68611, 421e-5, 0, 0.87235],
    83: [0, 0.68611, 0.05382, 0, 0.69271],
    84: [0, 0.68611, 0.15972, 0, 0.63663],
    85: [0, 0.68611, 0.11424, 0, 0.80027],
    86: [0, 0.68611, 0.25555, 0, 0.67778],
    87: [0, 0.68611, 0.15972, 0, 1.09305],
    88: [0, 0.68611, 0.07778, 0, 0.94722],
    89: [0, 0.68611, 0.25555, 0, 0.67458],
    90: [0, 0.68611, 0.06979, 0, 0.77257],
    97: [0, 0.44444, 0, 0, 0.63287],
    98: [0, 0.69444, 0, 0, 0.52083],
    99: [0, 0.44444, 0, 0, 0.51342],
    100: [0, 0.69444, 0, 0, 0.60972],
    101: [0, 0.44444, 0, 0, 0.55361],
    102: [0.19444, 0.69444, 0.11042, 0, 0.56806],
    103: [0.19444, 0.44444, 0.03704, 0, 0.5449],
    104: [0, 0.69444, 0, 0, 0.66759],
    105: [0, 0.69326, 0, 0, 0.4048],
    106: [0.19444, 0.69326, 0.0622, 0, 0.47083],
    107: [0, 0.69444, 0.01852, 0, 0.6037],
    108: [0, 0.69444, 88e-4, 0, 0.34815],
    109: [0, 0.44444, 0, 0, 1.0324],
    110: [0, 0.44444, 0, 0, 0.71296],
    111: [0, 0.44444, 0, 0, 0.58472],
    112: [0.19444, 0.44444, 0, 0, 0.60092],
    113: [0.19444, 0.44444, 0.03704, 0, 0.54213],
    114: [0, 0.44444, 0.03194, 0, 0.5287],
    115: [0, 0.44444, 0, 0, 0.53125],
    116: [0, 0.63492, 0, 0, 0.41528],
    117: [0, 0.44444, 0, 0, 0.68102],
    118: [0, 0.44444, 0.03704, 0, 0.56666],
    119: [0, 0.44444, 0.02778, 0, 0.83148],
    120: [0, 0.44444, 0, 0, 0.65903],
    121: [0.19444, 0.44444, 0.03704, 0, 0.59028],
    122: [0, 0.44444, 0.04213, 0, 0.55509],
    160: [0, 0, 0, 0, 0.25],
    915: [0, 0.68611, 0.15972, 0, 0.65694],
    916: [0, 0.68611, 0, 0, 0.95833],
    920: [0, 0.68611, 0.03194, 0, 0.86722],
    923: [0, 0.68611, 0, 0, 0.80555],
    926: [0, 0.68611, 0.07458, 0, 0.84125],
    928: [0, 0.68611, 0.08229, 0, 0.98229],
    931: [0, 0.68611, 0.05451, 0, 0.88507],
    933: [0, 0.68611, 0.15972, 0, 0.67083],
    934: [0, 0.68611, 0, 0, 0.76666],
    936: [0, 0.68611, 0.11653, 0, 0.71402],
    937: [0, 0.68611, 0.04835, 0, 0.8789],
    945: [0, 0.44444, 0, 0, 0.76064],
    946: [0.19444, 0.69444, 0.03403, 0, 0.65972],
    947: [0.19444, 0.44444, 0.06389, 0, 0.59003],
    948: [0, 0.69444, 0.03819, 0, 0.52222],
    949: [0, 0.44444, 0, 0, 0.52882],
    950: [0.19444, 0.69444, 0.06215, 0, 0.50833],
    951: [0.19444, 0.44444, 0.03704, 0, 0.6],
    952: [0, 0.69444, 0.03194, 0, 0.5618],
    953: [0, 0.44444, 0, 0, 0.41204],
    954: [0, 0.44444, 0, 0, 0.66759],
    955: [0, 0.69444, 0, 0, 0.67083],
    956: [0.19444, 0.44444, 0, 0, 0.70787],
    957: [0, 0.44444, 0.06898, 0, 0.57685],
    958: [0.19444, 0.69444, 0.03021, 0, 0.50833],
    959: [0, 0.44444, 0, 0, 0.58472],
    960: [0, 0.44444, 0.03704, 0, 0.68241],
    961: [0.19444, 0.44444, 0, 0, 0.6118],
    962: [0.09722, 0.44444, 0.07917, 0, 0.42361],
    963: [0, 0.44444, 0.03704, 0, 0.68588],
    964: [0, 0.44444, 0.13472, 0, 0.52083],
    965: [0, 0.44444, 0.03704, 0, 0.63055],
    966: [0.19444, 0.44444, 0, 0, 0.74722],
    967: [0.19444, 0.44444, 0, 0, 0.71805],
    968: [0.19444, 0.69444, 0.03704, 0, 0.75833],
    969: [0, 0.44444, 0.03704, 0, 0.71782],
    977: [0, 0.69444, 0, 0, 0.69155],
    981: [0.19444, 0.69444, 0, 0, 0.7125],
    982: [0, 0.44444, 0.03194, 0, 0.975],
    1009: [0.19444, 0.44444, 0, 0, 0.6118],
    1013: [0, 0.44444, 0, 0, 0.48333],
    57649: [0, 0.44444, 0, 0, 0.39352],
    57911: [0.19444, 0.44444, 0, 0, 0.43889]
  },
  "Math-Italic": {
    32: [0, 0, 0, 0, 0.25],
    48: [0, 0.43056, 0, 0, 0.5],
    49: [0, 0.43056, 0, 0, 0.5],
    50: [0, 0.43056, 0, 0, 0.5],
    51: [0.19444, 0.43056, 0, 0, 0.5],
    52: [0.19444, 0.43056, 0, 0, 0.5],
    53: [0.19444, 0.43056, 0, 0, 0.5],
    54: [0, 0.64444, 0, 0, 0.5],
    55: [0.19444, 0.43056, 0, 0, 0.5],
    56: [0, 0.64444, 0, 0, 0.5],
    57: [0.19444, 0.43056, 0, 0, 0.5],
    65: [0, 0.68333, 0, 0.13889, 0.75],
    66: [0, 0.68333, 0.05017, 0.08334, 0.75851],
    67: [0, 0.68333, 0.07153, 0.08334, 0.71472],
    68: [0, 0.68333, 0.02778, 0.05556, 0.82792],
    69: [0, 0.68333, 0.05764, 0.08334, 0.7382],
    70: [0, 0.68333, 0.13889, 0.08334, 0.64306],
    71: [0, 0.68333, 0, 0.08334, 0.78625],
    72: [0, 0.68333, 0.08125, 0.05556, 0.83125],
    73: [0, 0.68333, 0.07847, 0.11111, 0.43958],
    74: [0, 0.68333, 0.09618, 0.16667, 0.55451],
    75: [0, 0.68333, 0.07153, 0.05556, 0.84931],
    76: [0, 0.68333, 0, 0.02778, 0.68056],
    77: [0, 0.68333, 0.10903, 0.08334, 0.97014],
    78: [0, 0.68333, 0.10903, 0.08334, 0.80347],
    79: [0, 0.68333, 0.02778, 0.08334, 0.76278],
    80: [0, 0.68333, 0.13889, 0.08334, 0.64201],
    81: [0.19444, 0.68333, 0, 0.08334, 0.79056],
    82: [0, 0.68333, 773e-5, 0.08334, 0.75929],
    83: [0, 0.68333, 0.05764, 0.08334, 0.6132],
    84: [0, 0.68333, 0.13889, 0.08334, 0.58438],
    85: [0, 0.68333, 0.10903, 0.02778, 0.68278],
    86: [0, 0.68333, 0.22222, 0, 0.58333],
    87: [0, 0.68333, 0.13889, 0, 0.94445],
    88: [0, 0.68333, 0.07847, 0.08334, 0.82847],
    89: [0, 0.68333, 0.22222, 0, 0.58056],
    90: [0, 0.68333, 0.07153, 0.08334, 0.68264],
    97: [0, 0.43056, 0, 0, 0.52859],
    98: [0, 0.69444, 0, 0, 0.42917],
    99: [0, 0.43056, 0, 0.05556, 0.43276],
    100: [0, 0.69444, 0, 0.16667, 0.52049],
    101: [0, 0.43056, 0, 0.05556, 0.46563],
    102: [0.19444, 0.69444, 0.10764, 0.16667, 0.48959],
    103: [0.19444, 0.43056, 0.03588, 0.02778, 0.47697],
    104: [0, 0.69444, 0, 0, 0.57616],
    105: [0, 0.65952, 0, 0, 0.34451],
    106: [0.19444, 0.65952, 0.05724, 0, 0.41181],
    107: [0, 0.69444, 0.03148, 0, 0.5206],
    108: [0, 0.69444, 0.01968, 0.08334, 0.29838],
    109: [0, 0.43056, 0, 0, 0.87801],
    110: [0, 0.43056, 0, 0, 0.60023],
    111: [0, 0.43056, 0, 0.05556, 0.48472],
    112: [0.19444, 0.43056, 0, 0.08334, 0.50313],
    113: [0.19444, 0.43056, 0.03588, 0.08334, 0.44641],
    114: [0, 0.43056, 0.02778, 0.05556, 0.45116],
    115: [0, 0.43056, 0, 0.05556, 0.46875],
    116: [0, 0.61508, 0, 0.08334, 0.36111],
    117: [0, 0.43056, 0, 0.02778, 0.57246],
    118: [0, 0.43056, 0.03588, 0.02778, 0.48472],
    119: [0, 0.43056, 0.02691, 0.08334, 0.71592],
    120: [0, 0.43056, 0, 0.02778, 0.57153],
    121: [0.19444, 0.43056, 0.03588, 0.05556, 0.49028],
    122: [0, 0.43056, 0.04398, 0.05556, 0.46505],
    160: [0, 0, 0, 0, 0.25],
    915: [0, 0.68333, 0.13889, 0.08334, 0.61528],
    916: [0, 0.68333, 0, 0.16667, 0.83334],
    920: [0, 0.68333, 0.02778, 0.08334, 0.76278],
    923: [0, 0.68333, 0, 0.16667, 0.69445],
    926: [0, 0.68333, 0.07569, 0.08334, 0.74236],
    928: [0, 0.68333, 0.08125, 0.05556, 0.83125],
    931: [0, 0.68333, 0.05764, 0.08334, 0.77986],
    933: [0, 0.68333, 0.13889, 0.05556, 0.58333],
    934: [0, 0.68333, 0, 0.08334, 0.66667],
    936: [0, 0.68333, 0.11, 0.05556, 0.61222],
    937: [0, 0.68333, 0.05017, 0.08334, 0.7724],
    945: [0, 0.43056, 37e-4, 0.02778, 0.6397],
    946: [0.19444, 0.69444, 0.05278, 0.08334, 0.56563],
    947: [0.19444, 0.43056, 0.05556, 0, 0.51773],
    948: [0, 0.69444, 0.03785, 0.05556, 0.44444],
    949: [0, 0.43056, 0, 0.08334, 0.46632],
    950: [0.19444, 0.69444, 0.07378, 0.08334, 0.4375],
    951: [0.19444, 0.43056, 0.03588, 0.05556, 0.49653],
    952: [0, 0.69444, 0.02778, 0.08334, 0.46944],
    953: [0, 0.43056, 0, 0.05556, 0.35394],
    954: [0, 0.43056, 0, 0, 0.57616],
    955: [0, 0.69444, 0, 0, 0.58334],
    956: [0.19444, 0.43056, 0, 0.02778, 0.60255],
    957: [0, 0.43056, 0.06366, 0.02778, 0.49398],
    958: [0.19444, 0.69444, 0.04601, 0.11111, 0.4375],
    959: [0, 0.43056, 0, 0.05556, 0.48472],
    960: [0, 0.43056, 0.03588, 0, 0.57003],
    961: [0.19444, 0.43056, 0, 0.08334, 0.51702],
    962: [0.09722, 0.43056, 0.07986, 0.08334, 0.36285],
    963: [0, 0.43056, 0.03588, 0, 0.57141],
    964: [0, 0.43056, 0.1132, 0.02778, 0.43715],
    965: [0, 0.43056, 0.03588, 0.02778, 0.54028],
    966: [0.19444, 0.43056, 0, 0.08334, 0.65417],
    967: [0.19444, 0.43056, 0, 0.05556, 0.62569],
    968: [0.19444, 0.69444, 0.03588, 0.11111, 0.65139],
    969: [0, 0.43056, 0.03588, 0, 0.62245],
    977: [0, 0.69444, 0, 0.08334, 0.59144],
    981: [0.19444, 0.69444, 0, 0.08334, 0.59583],
    982: [0, 0.43056, 0.02778, 0, 0.82813],
    1009: [0.19444, 0.43056, 0, 0.08334, 0.51702],
    1013: [0, 0.43056, 0, 0.05556, 0.4059],
    57649: [0, 0.43056, 0, 0.02778, 0.32246],
    57911: [0.19444, 0.43056, 0, 0.08334, 0.38403]
  },
  "SansSerif-Bold": {
    32: [0, 0, 0, 0, 0.25],
    33: [0, 0.69444, 0, 0, 0.36667],
    34: [0, 0.69444, 0, 0, 0.55834],
    35: [0.19444, 0.69444, 0, 0, 0.91667],
    36: [0.05556, 0.75, 0, 0, 0.55],
    37: [0.05556, 0.75, 0, 0, 1.02912],
    38: [0, 0.69444, 0, 0, 0.83056],
    39: [0, 0.69444, 0, 0, 0.30556],
    40: [0.25, 0.75, 0, 0, 0.42778],
    41: [0.25, 0.75, 0, 0, 0.42778],
    42: [0, 0.75, 0, 0, 0.55],
    43: [0.11667, 0.61667, 0, 0, 0.85556],
    44: [0.10556, 0.13056, 0, 0, 0.30556],
    45: [0, 0.45833, 0, 0, 0.36667],
    46: [0, 0.13056, 0, 0, 0.30556],
    47: [0.25, 0.75, 0, 0, 0.55],
    48: [0, 0.69444, 0, 0, 0.55],
    49: [0, 0.69444, 0, 0, 0.55],
    50: [0, 0.69444, 0, 0, 0.55],
    51: [0, 0.69444, 0, 0, 0.55],
    52: [0, 0.69444, 0, 0, 0.55],
    53: [0, 0.69444, 0, 0, 0.55],
    54: [0, 0.69444, 0, 0, 0.55],
    55: [0, 0.69444, 0, 0, 0.55],
    56: [0, 0.69444, 0, 0, 0.55],
    57: [0, 0.69444, 0, 0, 0.55],
    58: [0, 0.45833, 0, 0, 0.30556],
    59: [0.10556, 0.45833, 0, 0, 0.30556],
    61: [-0.09375, 0.40625, 0, 0, 0.85556],
    63: [0, 0.69444, 0, 0, 0.51945],
    64: [0, 0.69444, 0, 0, 0.73334],
    65: [0, 0.69444, 0, 0, 0.73334],
    66: [0, 0.69444, 0, 0, 0.73334],
    67: [0, 0.69444, 0, 0, 0.70278],
    68: [0, 0.69444, 0, 0, 0.79445],
    69: [0, 0.69444, 0, 0, 0.64167],
    70: [0, 0.69444, 0, 0, 0.61111],
    71: [0, 0.69444, 0, 0, 0.73334],
    72: [0, 0.69444, 0, 0, 0.79445],
    73: [0, 0.69444, 0, 0, 0.33056],
    74: [0, 0.69444, 0, 0, 0.51945],
    75: [0, 0.69444, 0, 0, 0.76389],
    76: [0, 0.69444, 0, 0, 0.58056],
    77: [0, 0.69444, 0, 0, 0.97778],
    78: [0, 0.69444, 0, 0, 0.79445],
    79: [0, 0.69444, 0, 0, 0.79445],
    80: [0, 0.69444, 0, 0, 0.70278],
    81: [0.10556, 0.69444, 0, 0, 0.79445],
    82: [0, 0.69444, 0, 0, 0.70278],
    83: [0, 0.69444, 0, 0, 0.61111],
    84: [0, 0.69444, 0, 0, 0.73334],
    85: [0, 0.69444, 0, 0, 0.76389],
    86: [0, 0.69444, 0.01528, 0, 0.73334],
    87: [0, 0.69444, 0.01528, 0, 1.03889],
    88: [0, 0.69444, 0, 0, 0.73334],
    89: [0, 0.69444, 0.0275, 0, 0.73334],
    90: [0, 0.69444, 0, 0, 0.67223],
    91: [0.25, 0.75, 0, 0, 0.34306],
    93: [0.25, 0.75, 0, 0, 0.34306],
    94: [0, 0.69444, 0, 0, 0.55],
    95: [0.35, 0.10833, 0.03056, 0, 0.55],
    97: [0, 0.45833, 0, 0, 0.525],
    98: [0, 0.69444, 0, 0, 0.56111],
    99: [0, 0.45833, 0, 0, 0.48889],
    100: [0, 0.69444, 0, 0, 0.56111],
    101: [0, 0.45833, 0, 0, 0.51111],
    102: [0, 0.69444, 0.07639, 0, 0.33611],
    103: [0.19444, 0.45833, 0.01528, 0, 0.55],
    104: [0, 0.69444, 0, 0, 0.56111],
    105: [0, 0.69444, 0, 0, 0.25556],
    106: [0.19444, 0.69444, 0, 0, 0.28611],
    107: [0, 0.69444, 0, 0, 0.53056],
    108: [0, 0.69444, 0, 0, 0.25556],
    109: [0, 0.45833, 0, 0, 0.86667],
    110: [0, 0.45833, 0, 0, 0.56111],
    111: [0, 0.45833, 0, 0, 0.55],
    112: [0.19444, 0.45833, 0, 0, 0.56111],
    113: [0.19444, 0.45833, 0, 0, 0.56111],
    114: [0, 0.45833, 0.01528, 0, 0.37222],
    115: [0, 0.45833, 0, 0, 0.42167],
    116: [0, 0.58929, 0, 0, 0.40417],
    117: [0, 0.45833, 0, 0, 0.56111],
    118: [0, 0.45833, 0.01528, 0, 0.5],
    119: [0, 0.45833, 0.01528, 0, 0.74445],
    120: [0, 0.45833, 0, 0, 0.5],
    121: [0.19444, 0.45833, 0.01528, 0, 0.5],
    122: [0, 0.45833, 0, 0, 0.47639],
    126: [0.35, 0.34444, 0, 0, 0.55],
    160: [0, 0, 0, 0, 0.25],
    168: [0, 0.69444, 0, 0, 0.55],
    176: [0, 0.69444, 0, 0, 0.73334],
    180: [0, 0.69444, 0, 0, 0.55],
    184: [0.17014, 0, 0, 0, 0.48889],
    305: [0, 0.45833, 0, 0, 0.25556],
    567: [0.19444, 0.45833, 0, 0, 0.28611],
    710: [0, 0.69444, 0, 0, 0.55],
    711: [0, 0.63542, 0, 0, 0.55],
    713: [0, 0.63778, 0, 0, 0.55],
    728: [0, 0.69444, 0, 0, 0.55],
    729: [0, 0.69444, 0, 0, 0.30556],
    730: [0, 0.69444, 0, 0, 0.73334],
    732: [0, 0.69444, 0, 0, 0.55],
    733: [0, 0.69444, 0, 0, 0.55],
    915: [0, 0.69444, 0, 0, 0.58056],
    916: [0, 0.69444, 0, 0, 0.91667],
    920: [0, 0.69444, 0, 0, 0.85556],
    923: [0, 0.69444, 0, 0, 0.67223],
    926: [0, 0.69444, 0, 0, 0.73334],
    928: [0, 0.69444, 0, 0, 0.79445],
    931: [0, 0.69444, 0, 0, 0.79445],
    933: [0, 0.69444, 0, 0, 0.85556],
    934: [0, 0.69444, 0, 0, 0.79445],
    936: [0, 0.69444, 0, 0, 0.85556],
    937: [0, 0.69444, 0, 0, 0.79445],
    8211: [0, 0.45833, 0.03056, 0, 0.55],
    8212: [0, 0.45833, 0.03056, 0, 1.10001],
    8216: [0, 0.69444, 0, 0, 0.30556],
    8217: [0, 0.69444, 0, 0, 0.30556],
    8220: [0, 0.69444, 0, 0, 0.55834],
    8221: [0, 0.69444, 0, 0, 0.55834]
  },
  "SansSerif-Italic": {
    32: [0, 0, 0, 0, 0.25],
    33: [0, 0.69444, 0.05733, 0, 0.31945],
    34: [0, 0.69444, 316e-5, 0, 0.5],
    35: [0.19444, 0.69444, 0.05087, 0, 0.83334],
    36: [0.05556, 0.75, 0.11156, 0, 0.5],
    37: [0.05556, 0.75, 0.03126, 0, 0.83334],
    38: [0, 0.69444, 0.03058, 0, 0.75834],
    39: [0, 0.69444, 0.07816, 0, 0.27778],
    40: [0.25, 0.75, 0.13164, 0, 0.38889],
    41: [0.25, 0.75, 0.02536, 0, 0.38889],
    42: [0, 0.75, 0.11775, 0, 0.5],
    43: [0.08333, 0.58333, 0.02536, 0, 0.77778],
    44: [0.125, 0.08333, 0, 0, 0.27778],
    45: [0, 0.44444, 0.01946, 0, 0.33333],
    46: [0, 0.08333, 0, 0, 0.27778],
    47: [0.25, 0.75, 0.13164, 0, 0.5],
    48: [0, 0.65556, 0.11156, 0, 0.5],
    49: [0, 0.65556, 0.11156, 0, 0.5],
    50: [0, 0.65556, 0.11156, 0, 0.5],
    51: [0, 0.65556, 0.11156, 0, 0.5],
    52: [0, 0.65556, 0.11156, 0, 0.5],
    53: [0, 0.65556, 0.11156, 0, 0.5],
    54: [0, 0.65556, 0.11156, 0, 0.5],
    55: [0, 0.65556, 0.11156, 0, 0.5],
    56: [0, 0.65556, 0.11156, 0, 0.5],
    57: [0, 0.65556, 0.11156, 0, 0.5],
    58: [0, 0.44444, 0.02502, 0, 0.27778],
    59: [0.125, 0.44444, 0.02502, 0, 0.27778],
    61: [-0.13, 0.37, 0.05087, 0, 0.77778],
    63: [0, 0.69444, 0.11809, 0, 0.47222],
    64: [0, 0.69444, 0.07555, 0, 0.66667],
    65: [0, 0.69444, 0, 0, 0.66667],
    66: [0, 0.69444, 0.08293, 0, 0.66667],
    67: [0, 0.69444, 0.11983, 0, 0.63889],
    68: [0, 0.69444, 0.07555, 0, 0.72223],
    69: [0, 0.69444, 0.11983, 0, 0.59722],
    70: [0, 0.69444, 0.13372, 0, 0.56945],
    71: [0, 0.69444, 0.11983, 0, 0.66667],
    72: [0, 0.69444, 0.08094, 0, 0.70834],
    73: [0, 0.69444, 0.13372, 0, 0.27778],
    74: [0, 0.69444, 0.08094, 0, 0.47222],
    75: [0, 0.69444, 0.11983, 0, 0.69445],
    76: [0, 0.69444, 0, 0, 0.54167],
    77: [0, 0.69444, 0.08094, 0, 0.875],
    78: [0, 0.69444, 0.08094, 0, 0.70834],
    79: [0, 0.69444, 0.07555, 0, 0.73611],
    80: [0, 0.69444, 0.08293, 0, 0.63889],
    81: [0.125, 0.69444, 0.07555, 0, 0.73611],
    82: [0, 0.69444, 0.08293, 0, 0.64584],
    83: [0, 0.69444, 0.09205, 0, 0.55556],
    84: [0, 0.69444, 0.13372, 0, 0.68056],
    85: [0, 0.69444, 0.08094, 0, 0.6875],
    86: [0, 0.69444, 0.1615, 0, 0.66667],
    87: [0, 0.69444, 0.1615, 0, 0.94445],
    88: [0, 0.69444, 0.13372, 0, 0.66667],
    89: [0, 0.69444, 0.17261, 0, 0.66667],
    90: [0, 0.69444, 0.11983, 0, 0.61111],
    91: [0.25, 0.75, 0.15942, 0, 0.28889],
    93: [0.25, 0.75, 0.08719, 0, 0.28889],
    94: [0, 0.69444, 0.0799, 0, 0.5],
    95: [0.35, 0.09444, 0.08616, 0, 0.5],
    97: [0, 0.44444, 981e-5, 0, 0.48056],
    98: [0, 0.69444, 0.03057, 0, 0.51667],
    99: [0, 0.44444, 0.08336, 0, 0.44445],
    100: [0, 0.69444, 0.09483, 0, 0.51667],
    101: [0, 0.44444, 0.06778, 0, 0.44445],
    102: [0, 0.69444, 0.21705, 0, 0.30556],
    103: [0.19444, 0.44444, 0.10836, 0, 0.5],
    104: [0, 0.69444, 0.01778, 0, 0.51667],
    105: [0, 0.67937, 0.09718, 0, 0.23889],
    106: [0.19444, 0.67937, 0.09162, 0, 0.26667],
    107: [0, 0.69444, 0.08336, 0, 0.48889],
    108: [0, 0.69444, 0.09483, 0, 0.23889],
    109: [0, 0.44444, 0.01778, 0, 0.79445],
    110: [0, 0.44444, 0.01778, 0, 0.51667],
    111: [0, 0.44444, 0.06613, 0, 0.5],
    112: [0.19444, 0.44444, 0.0389, 0, 0.51667],
    113: [0.19444, 0.44444, 0.04169, 0, 0.51667],
    114: [0, 0.44444, 0.10836, 0, 0.34167],
    115: [0, 0.44444, 0.0778, 0, 0.38333],
    116: [0, 0.57143, 0.07225, 0, 0.36111],
    117: [0, 0.44444, 0.04169, 0, 0.51667],
    118: [0, 0.44444, 0.10836, 0, 0.46111],
    119: [0, 0.44444, 0.10836, 0, 0.68334],
    120: [0, 0.44444, 0.09169, 0, 0.46111],
    121: [0.19444, 0.44444, 0.10836, 0, 0.46111],
    122: [0, 0.44444, 0.08752, 0, 0.43472],
    126: [0.35, 0.32659, 0.08826, 0, 0.5],
    160: [0, 0, 0, 0, 0.25],
    168: [0, 0.67937, 0.06385, 0, 0.5],
    176: [0, 0.69444, 0, 0, 0.73752],
    184: [0.17014, 0, 0, 0, 0.44445],
    305: [0, 0.44444, 0.04169, 0, 0.23889],
    567: [0.19444, 0.44444, 0.04169, 0, 0.26667],
    710: [0, 0.69444, 0.0799, 0, 0.5],
    711: [0, 0.63194, 0.08432, 0, 0.5],
    713: [0, 0.60889, 0.08776, 0, 0.5],
    714: [0, 0.69444, 0.09205, 0, 0.5],
    715: [0, 0.69444, 0, 0, 0.5],
    728: [0, 0.69444, 0.09483, 0, 0.5],
    729: [0, 0.67937, 0.07774, 0, 0.27778],
    730: [0, 0.69444, 0, 0, 0.73752],
    732: [0, 0.67659, 0.08826, 0, 0.5],
    733: [0, 0.69444, 0.09205, 0, 0.5],
    915: [0, 0.69444, 0.13372, 0, 0.54167],
    916: [0, 0.69444, 0, 0, 0.83334],
    920: [0, 0.69444, 0.07555, 0, 0.77778],
    923: [0, 0.69444, 0, 0, 0.61111],
    926: [0, 0.69444, 0.12816, 0, 0.66667],
    928: [0, 0.69444, 0.08094, 0, 0.70834],
    931: [0, 0.69444, 0.11983, 0, 0.72222],
    933: [0, 0.69444, 0.09031, 0, 0.77778],
    934: [0, 0.69444, 0.04603, 0, 0.72222],
    936: [0, 0.69444, 0.09031, 0, 0.77778],
    937: [0, 0.69444, 0.08293, 0, 0.72222],
    8211: [0, 0.44444, 0.08616, 0, 0.5],
    8212: [0, 0.44444, 0.08616, 0, 1],
    8216: [0, 0.69444, 0.07816, 0, 0.27778],
    8217: [0, 0.69444, 0.07816, 0, 0.27778],
    8220: [0, 0.69444, 0.14205, 0, 0.5],
    8221: [0, 0.69444, 316e-5, 0, 0.5]
  },
  "SansSerif-Regular": {
    32: [0, 0, 0, 0, 0.25],
    33: [0, 0.69444, 0, 0, 0.31945],
    34: [0, 0.69444, 0, 0, 0.5],
    35: [0.19444, 0.69444, 0, 0, 0.83334],
    36: [0.05556, 0.75, 0, 0, 0.5],
    37: [0.05556, 0.75, 0, 0, 0.83334],
    38: [0, 0.69444, 0, 0, 0.75834],
    39: [0, 0.69444, 0, 0, 0.27778],
    40: [0.25, 0.75, 0, 0, 0.38889],
    41: [0.25, 0.75, 0, 0, 0.38889],
    42: [0, 0.75, 0, 0, 0.5],
    43: [0.08333, 0.58333, 0, 0, 0.77778],
    44: [0.125, 0.08333, 0, 0, 0.27778],
    45: [0, 0.44444, 0, 0, 0.33333],
    46: [0, 0.08333, 0, 0, 0.27778],
    47: [0.25, 0.75, 0, 0, 0.5],
    48: [0, 0.65556, 0, 0, 0.5],
    49: [0, 0.65556, 0, 0, 0.5],
    50: [0, 0.65556, 0, 0, 0.5],
    51: [0, 0.65556, 0, 0, 0.5],
    52: [0, 0.65556, 0, 0, 0.5],
    53: [0, 0.65556, 0, 0, 0.5],
    54: [0, 0.65556, 0, 0, 0.5],
    55: [0, 0.65556, 0, 0, 0.5],
    56: [0, 0.65556, 0, 0, 0.5],
    57: [0, 0.65556, 0, 0, 0.5],
    58: [0, 0.44444, 0, 0, 0.27778],
    59: [0.125, 0.44444, 0, 0, 0.27778],
    61: [-0.13, 0.37, 0, 0, 0.77778],
    63: [0, 0.69444, 0, 0, 0.47222],
    64: [0, 0.69444, 0, 0, 0.66667],
    65: [0, 0.69444, 0, 0, 0.66667],
    66: [0, 0.69444, 0, 0, 0.66667],
    67: [0, 0.69444, 0, 0, 0.63889],
    68: [0, 0.69444, 0, 0, 0.72223],
    69: [0, 0.69444, 0, 0, 0.59722],
    70: [0, 0.69444, 0, 0, 0.56945],
    71: [0, 0.69444, 0, 0, 0.66667],
    72: [0, 0.69444, 0, 0, 0.70834],
    73: [0, 0.69444, 0, 0, 0.27778],
    74: [0, 0.69444, 0, 0, 0.47222],
    75: [0, 0.69444, 0, 0, 0.69445],
    76: [0, 0.69444, 0, 0, 0.54167],
    77: [0, 0.69444, 0, 0, 0.875],
    78: [0, 0.69444, 0, 0, 0.70834],
    79: [0, 0.69444, 0, 0, 0.73611],
    80: [0, 0.69444, 0, 0, 0.63889],
    81: [0.125, 0.69444, 0, 0, 0.73611],
    82: [0, 0.69444, 0, 0, 0.64584],
    83: [0, 0.69444, 0, 0, 0.55556],
    84: [0, 0.69444, 0, 0, 0.68056],
    85: [0, 0.69444, 0, 0, 0.6875],
    86: [0, 0.69444, 0.01389, 0, 0.66667],
    87: [0, 0.69444, 0.01389, 0, 0.94445],
    88: [0, 0.69444, 0, 0, 0.66667],
    89: [0, 0.69444, 0.025, 0, 0.66667],
    90: [0, 0.69444, 0, 0, 0.61111],
    91: [0.25, 0.75, 0, 0, 0.28889],
    93: [0.25, 0.75, 0, 0, 0.28889],
    94: [0, 0.69444, 0, 0, 0.5],
    95: [0.35, 0.09444, 0.02778, 0, 0.5],
    97: [0, 0.44444, 0, 0, 0.48056],
    98: [0, 0.69444, 0, 0, 0.51667],
    99: [0, 0.44444, 0, 0, 0.44445],
    100: [0, 0.69444, 0, 0, 0.51667],
    101: [0, 0.44444, 0, 0, 0.44445],
    102: [0, 0.69444, 0.06944, 0, 0.30556],
    103: [0.19444, 0.44444, 0.01389, 0, 0.5],
    104: [0, 0.69444, 0, 0, 0.51667],
    105: [0, 0.67937, 0, 0, 0.23889],
    106: [0.19444, 0.67937, 0, 0, 0.26667],
    107: [0, 0.69444, 0, 0, 0.48889],
    108: [0, 0.69444, 0, 0, 0.23889],
    109: [0, 0.44444, 0, 0, 0.79445],
    110: [0, 0.44444, 0, 0, 0.51667],
    111: [0, 0.44444, 0, 0, 0.5],
    112: [0.19444, 0.44444, 0, 0, 0.51667],
    113: [0.19444, 0.44444, 0, 0, 0.51667],
    114: [0, 0.44444, 0.01389, 0, 0.34167],
    115: [0, 0.44444, 0, 0, 0.38333],
    116: [0, 0.57143, 0, 0, 0.36111],
    117: [0, 0.44444, 0, 0, 0.51667],
    118: [0, 0.44444, 0.01389, 0, 0.46111],
    119: [0, 0.44444, 0.01389, 0, 0.68334],
    120: [0, 0.44444, 0, 0, 0.46111],
    121: [0.19444, 0.44444, 0.01389, 0, 0.46111],
    122: [0, 0.44444, 0, 0, 0.43472],
    126: [0.35, 0.32659, 0, 0, 0.5],
    160: [0, 0, 0, 0, 0.25],
    168: [0, 0.67937, 0, 0, 0.5],
    176: [0, 0.69444, 0, 0, 0.66667],
    184: [0.17014, 0, 0, 0, 0.44445],
    305: [0, 0.44444, 0, 0, 0.23889],
    567: [0.19444, 0.44444, 0, 0, 0.26667],
    710: [0, 0.69444, 0, 0, 0.5],
    711: [0, 0.63194, 0, 0, 0.5],
    713: [0, 0.60889, 0, 0, 0.5],
    714: [0, 0.69444, 0, 0, 0.5],
    715: [0, 0.69444, 0, 0, 0.5],
    728: [0, 0.69444, 0, 0, 0.5],
    729: [0, 0.67937, 0, 0, 0.27778],
    730: [0, 0.69444, 0, 0, 0.66667],
    732: [0, 0.67659, 0, 0, 0.5],
    733: [0, 0.69444, 0, 0, 0.5],
    915: [0, 0.69444, 0, 0, 0.54167],
    916: [0, 0.69444, 0, 0, 0.83334],
    920: [0, 0.69444, 0, 0, 0.77778],
    923: [0, 0.69444, 0, 0, 0.61111],
    926: [0, 0.69444, 0, 0, 0.66667],
    928: [0, 0.69444, 0, 0, 0.70834],
    931: [0, 0.69444, 0, 0, 0.72222],
    933: [0, 0.69444, 0, 0, 0.77778],
    934: [0, 0.69444, 0, 0, 0.72222],
    936: [0, 0.69444, 0, 0, 0.77778],
    937: [0, 0.69444, 0, 0, 0.72222],
    8211: [0, 0.44444, 0.02778, 0, 0.5],
    8212: [0, 0.44444, 0.02778, 0, 1],
    8216: [0, 0.69444, 0, 0, 0.27778],
    8217: [0, 0.69444, 0, 0, 0.27778],
    8220: [0, 0.69444, 0, 0, 0.5],
    8221: [0, 0.69444, 0, 0, 0.5]
  },
  "Script-Regular": {
    32: [0, 0, 0, 0, 0.25],
    65: [0, 0.7, 0.22925, 0, 0.80253],
    66: [0, 0.7, 0.04087, 0, 0.90757],
    67: [0, 0.7, 0.1689, 0, 0.66619],
    68: [0, 0.7, 0.09371, 0, 0.77443],
    69: [0, 0.7, 0.18583, 0, 0.56162],
    70: [0, 0.7, 0.13634, 0, 0.89544],
    71: [0, 0.7, 0.17322, 0, 0.60961],
    72: [0, 0.7, 0.29694, 0, 0.96919],
    73: [0, 0.7, 0.19189, 0, 0.80907],
    74: [0.27778, 0.7, 0.19189, 0, 1.05159],
    75: [0, 0.7, 0.31259, 0, 0.91364],
    76: [0, 0.7, 0.19189, 0, 0.87373],
    77: [0, 0.7, 0.15981, 0, 1.08031],
    78: [0, 0.7, 0.3525, 0, 0.9015],
    79: [0, 0.7, 0.08078, 0, 0.73787],
    80: [0, 0.7, 0.08078, 0, 1.01262],
    81: [0, 0.7, 0.03305, 0, 0.88282],
    82: [0, 0.7, 0.06259, 0, 0.85],
    83: [0, 0.7, 0.19189, 0, 0.86767],
    84: [0, 0.7, 0.29087, 0, 0.74697],
    85: [0, 0.7, 0.25815, 0, 0.79996],
    86: [0, 0.7, 0.27523, 0, 0.62204],
    87: [0, 0.7, 0.27523, 0, 0.80532],
    88: [0, 0.7, 0.26006, 0, 0.94445],
    89: [0, 0.7, 0.2939, 0, 0.70961],
    90: [0, 0.7, 0.24037, 0, 0.8212],
    160: [0, 0, 0, 0, 0.25]
  },
  "Size1-Regular": {
    32: [0, 0, 0, 0, 0.25],
    40: [0.35001, 0.85, 0, 0, 0.45834],
    41: [0.35001, 0.85, 0, 0, 0.45834],
    47: [0.35001, 0.85, 0, 0, 0.57778],
    91: [0.35001, 0.85, 0, 0, 0.41667],
    92: [0.35001, 0.85, 0, 0, 0.57778],
    93: [0.35001, 0.85, 0, 0, 0.41667],
    123: [0.35001, 0.85, 0, 0, 0.58334],
    125: [0.35001, 0.85, 0, 0, 0.58334],
    160: [0, 0, 0, 0, 0.25],
    710: [0, 0.72222, 0, 0, 0.55556],
    732: [0, 0.72222, 0, 0, 0.55556],
    770: [0, 0.72222, 0, 0, 0.55556],
    771: [0, 0.72222, 0, 0, 0.55556],
    8214: [-99e-5, 0.601, 0, 0, 0.77778],
    8593: [1e-5, 0.6, 0, 0, 0.66667],
    8595: [1e-5, 0.6, 0, 0, 0.66667],
    8657: [1e-5, 0.6, 0, 0, 0.77778],
    8659: [1e-5, 0.6, 0, 0, 0.77778],
    8719: [0.25001, 0.75, 0, 0, 0.94445],
    8720: [0.25001, 0.75, 0, 0, 0.94445],
    8721: [0.25001, 0.75, 0, 0, 1.05556],
    8730: [0.35001, 0.85, 0, 0, 1],
    8739: [-599e-5, 0.606, 0, 0, 0.33333],
    8741: [-599e-5, 0.606, 0, 0, 0.55556],
    8747: [0.30612, 0.805, 0.19445, 0, 0.47222],
    8748: [0.306, 0.805, 0.19445, 0, 0.47222],
    8749: [0.306, 0.805, 0.19445, 0, 0.47222],
    8750: [0.30612, 0.805, 0.19445, 0, 0.47222],
    8896: [0.25001, 0.75, 0, 0, 0.83334],
    8897: [0.25001, 0.75, 0, 0, 0.83334],
    8898: [0.25001, 0.75, 0, 0, 0.83334],
    8899: [0.25001, 0.75, 0, 0, 0.83334],
    8968: [0.35001, 0.85, 0, 0, 0.47222],
    8969: [0.35001, 0.85, 0, 0, 0.47222],
    8970: [0.35001, 0.85, 0, 0, 0.47222],
    8971: [0.35001, 0.85, 0, 0, 0.47222],
    9168: [-99e-5, 0.601, 0, 0, 0.66667],
    10216: [0.35001, 0.85, 0, 0, 0.47222],
    10217: [0.35001, 0.85, 0, 0, 0.47222],
    10752: [0.25001, 0.75, 0, 0, 1.11111],
    10753: [0.25001, 0.75, 0, 0, 1.11111],
    10754: [0.25001, 0.75, 0, 0, 1.11111],
    10756: [0.25001, 0.75, 0, 0, 0.83334],
    10758: [0.25001, 0.75, 0, 0, 0.83334]
  },
  "Size2-Regular": {
    32: [0, 0, 0, 0, 0.25],
    40: [0.65002, 1.15, 0, 0, 0.59722],
    41: [0.65002, 1.15, 0, 0, 0.59722],
    47: [0.65002, 1.15, 0, 0, 0.81111],
    91: [0.65002, 1.15, 0, 0, 0.47222],
    92: [0.65002, 1.15, 0, 0, 0.81111],
    93: [0.65002, 1.15, 0, 0, 0.47222],
    123: [0.65002, 1.15, 0, 0, 0.66667],
    125: [0.65002, 1.15, 0, 0, 0.66667],
    160: [0, 0, 0, 0, 0.25],
    710: [0, 0.75, 0, 0, 1],
    732: [0, 0.75, 0, 0, 1],
    770: [0, 0.75, 0, 0, 1],
    771: [0, 0.75, 0, 0, 1],
    8719: [0.55001, 1.05, 0, 0, 1.27778],
    8720: [0.55001, 1.05, 0, 0, 1.27778],
    8721: [0.55001, 1.05, 0, 0, 1.44445],
    8730: [0.65002, 1.15, 0, 0, 1],
    8747: [0.86225, 1.36, 0.44445, 0, 0.55556],
    8748: [0.862, 1.36, 0.44445, 0, 0.55556],
    8749: [0.862, 1.36, 0.44445, 0, 0.55556],
    8750: [0.86225, 1.36, 0.44445, 0, 0.55556],
    8896: [0.55001, 1.05, 0, 0, 1.11111],
    8897: [0.55001, 1.05, 0, 0, 1.11111],
    8898: [0.55001, 1.05, 0, 0, 1.11111],
    8899: [0.55001, 1.05, 0, 0, 1.11111],
    8968: [0.65002, 1.15, 0, 0, 0.52778],
    8969: [0.65002, 1.15, 0, 0, 0.52778],
    8970: [0.65002, 1.15, 0, 0, 0.52778],
    8971: [0.65002, 1.15, 0, 0, 0.52778],
    10216: [0.65002, 1.15, 0, 0, 0.61111],
    10217: [0.65002, 1.15, 0, 0, 0.61111],
    10752: [0.55001, 1.05, 0, 0, 1.51112],
    10753: [0.55001, 1.05, 0, 0, 1.51112],
    10754: [0.55001, 1.05, 0, 0, 1.51112],
    10756: [0.55001, 1.05, 0, 0, 1.11111],
    10758: [0.55001, 1.05, 0, 0, 1.11111]
  },
  "Size3-Regular": {
    32: [0, 0, 0, 0, 0.25],
    40: [0.95003, 1.45, 0, 0, 0.73611],
    41: [0.95003, 1.45, 0, 0, 0.73611],
    47: [0.95003, 1.45, 0, 0, 1.04445],
    91: [0.95003, 1.45, 0, 0, 0.52778],
    92: [0.95003, 1.45, 0, 0, 1.04445],
    93: [0.95003, 1.45, 0, 0, 0.52778],
    123: [0.95003, 1.45, 0, 0, 0.75],
    125: [0.95003, 1.45, 0, 0, 0.75],
    160: [0, 0, 0, 0, 0.25],
    710: [0, 0.75, 0, 0, 1.44445],
    732: [0, 0.75, 0, 0, 1.44445],
    770: [0, 0.75, 0, 0, 1.44445],
    771: [0, 0.75, 0, 0, 1.44445],
    8730: [0.95003, 1.45, 0, 0, 1],
    8968: [0.95003, 1.45, 0, 0, 0.58334],
    8969: [0.95003, 1.45, 0, 0, 0.58334],
    8970: [0.95003, 1.45, 0, 0, 0.58334],
    8971: [0.95003, 1.45, 0, 0, 0.58334],
    10216: [0.95003, 1.45, 0, 0, 0.75],
    10217: [0.95003, 1.45, 0, 0, 0.75]
  },
  "Size4-Regular": {
    32: [0, 0, 0, 0, 0.25],
    40: [1.25003, 1.75, 0, 0, 0.79167],
    41: [1.25003, 1.75, 0, 0, 0.79167],
    47: [1.25003, 1.75, 0, 0, 1.27778],
    91: [1.25003, 1.75, 0, 0, 0.58334],
    92: [1.25003, 1.75, 0, 0, 1.27778],
    93: [1.25003, 1.75, 0, 0, 0.58334],
    123: [1.25003, 1.75, 0, 0, 0.80556],
    125: [1.25003, 1.75, 0, 0, 0.80556],
    160: [0, 0, 0, 0, 0.25],
    710: [0, 0.825, 0, 0, 1.8889],
    732: [0, 0.825, 0, 0, 1.8889],
    770: [0, 0.825, 0, 0, 1.8889],
    771: [0, 0.825, 0, 0, 1.8889],
    8730: [1.25003, 1.75, 0, 0, 1],
    8968: [1.25003, 1.75, 0, 0, 0.63889],
    8969: [1.25003, 1.75, 0, 0, 0.63889],
    8970: [1.25003, 1.75, 0, 0, 0.63889],
    8971: [1.25003, 1.75, 0, 0, 0.63889],
    9115: [0.64502, 1.155, 0, 0, 0.875],
    9116: [1e-5, 0.6, 0, 0, 0.875],
    9117: [0.64502, 1.155, 0, 0, 0.875],
    9118: [0.64502, 1.155, 0, 0, 0.875],
    9119: [1e-5, 0.6, 0, 0, 0.875],
    9120: [0.64502, 1.155, 0, 0, 0.875],
    9121: [0.64502, 1.155, 0, 0, 0.66667],
    9122: [-99e-5, 0.601, 0, 0, 0.66667],
    9123: [0.64502, 1.155, 0, 0, 0.66667],
    9124: [0.64502, 1.155, 0, 0, 0.66667],
    9125: [-99e-5, 0.601, 0, 0, 0.66667],
    9126: [0.64502, 1.155, 0, 0, 0.66667],
    9127: [1e-5, 0.9, 0, 0, 0.88889],
    9128: [0.65002, 1.15, 0, 0, 0.88889],
    9129: [0.90001, 0, 0, 0, 0.88889],
    9130: [0, 0.3, 0, 0, 0.88889],
    9131: [1e-5, 0.9, 0, 0, 0.88889],
    9132: [0.65002, 1.15, 0, 0, 0.88889],
    9133: [0.90001, 0, 0, 0, 0.88889],
    9143: [0.88502, 0.915, 0, 0, 1.05556],
    10216: [1.25003, 1.75, 0, 0, 0.80556],
    10217: [1.25003, 1.75, 0, 0, 0.80556],
    57344: [-499e-5, 0.605, 0, 0, 1.05556],
    57345: [-499e-5, 0.605, 0, 0, 1.05556],
    57680: [0, 0.12, 0, 0, 0.45],
    57681: [0, 0.12, 0, 0, 0.45],
    57682: [0, 0.12, 0, 0, 0.45],
    57683: [0, 0.12, 0, 0, 0.45]
  },
  "Typewriter-Regular": {
    32: [0, 0, 0, 0, 0.525],
    33: [0, 0.61111, 0, 0, 0.525],
    34: [0, 0.61111, 0, 0, 0.525],
    35: [0, 0.61111, 0, 0, 0.525],
    36: [0.08333, 0.69444, 0, 0, 0.525],
    37: [0.08333, 0.69444, 0, 0, 0.525],
    38: [0, 0.61111, 0, 0, 0.525],
    39: [0, 0.61111, 0, 0, 0.525],
    40: [0.08333, 0.69444, 0, 0, 0.525],
    41: [0.08333, 0.69444, 0, 0, 0.525],
    42: [0, 0.52083, 0, 0, 0.525],
    43: [-0.08056, 0.53055, 0, 0, 0.525],
    44: [0.13889, 0.125, 0, 0, 0.525],
    45: [-0.08056, 0.53055, 0, 0, 0.525],
    46: [0, 0.125, 0, 0, 0.525],
    47: [0.08333, 0.69444, 0, 0, 0.525],
    48: [0, 0.61111, 0, 0, 0.525],
    49: [0, 0.61111, 0, 0, 0.525],
    50: [0, 0.61111, 0, 0, 0.525],
    51: [0, 0.61111, 0, 0, 0.525],
    52: [0, 0.61111, 0, 0, 0.525],
    53: [0, 0.61111, 0, 0, 0.525],
    54: [0, 0.61111, 0, 0, 0.525],
    55: [0, 0.61111, 0, 0, 0.525],
    56: [0, 0.61111, 0, 0, 0.525],
    57: [0, 0.61111, 0, 0, 0.525],
    58: [0, 0.43056, 0, 0, 0.525],
    59: [0.13889, 0.43056, 0, 0, 0.525],
    60: [-0.05556, 0.55556, 0, 0, 0.525],
    61: [-0.19549, 0.41562, 0, 0, 0.525],
    62: [-0.05556, 0.55556, 0, 0, 0.525],
    63: [0, 0.61111, 0, 0, 0.525],
    64: [0, 0.61111, 0, 0, 0.525],
    65: [0, 0.61111, 0, 0, 0.525],
    66: [0, 0.61111, 0, 0, 0.525],
    67: [0, 0.61111, 0, 0, 0.525],
    68: [0, 0.61111, 0, 0, 0.525],
    69: [0, 0.61111, 0, 0, 0.525],
    70: [0, 0.61111, 0, 0, 0.525],
    71: [0, 0.61111, 0, 0, 0.525],
    72: [0, 0.61111, 0, 0, 0.525],
    73: [0, 0.61111, 0, 0, 0.525],
    74: [0, 0.61111, 0, 0, 0.525],
    75: [0, 0.61111, 0, 0, 0.525],
    76: [0, 0.61111, 0, 0, 0.525],
    77: [0, 0.61111, 0, 0, 0.525],
    78: [0, 0.61111, 0, 0, 0.525],
    79: [0, 0.61111, 0, 0, 0.525],
    80: [0, 0.61111, 0, 0, 0.525],
    81: [0.13889, 0.61111, 0, 0, 0.525],
    82: [0, 0.61111, 0, 0, 0.525],
    83: [0, 0.61111, 0, 0, 0.525],
    84: [0, 0.61111, 0, 0, 0.525],
    85: [0, 0.61111, 0, 0, 0.525],
    86: [0, 0.61111, 0, 0, 0.525],
    87: [0, 0.61111, 0, 0, 0.525],
    88: [0, 0.61111, 0, 0, 0.525],
    89: [0, 0.61111, 0, 0, 0.525],
    90: [0, 0.61111, 0, 0, 0.525],
    91: [0.08333, 0.69444, 0, 0, 0.525],
    92: [0.08333, 0.69444, 0, 0, 0.525],
    93: [0.08333, 0.69444, 0, 0, 0.525],
    94: [0, 0.61111, 0, 0, 0.525],
    95: [0.09514, 0, 0, 0, 0.525],
    96: [0, 0.61111, 0, 0, 0.525],
    97: [0, 0.43056, 0, 0, 0.525],
    98: [0, 0.61111, 0, 0, 0.525],
    99: [0, 0.43056, 0, 0, 0.525],
    100: [0, 0.61111, 0, 0, 0.525],
    101: [0, 0.43056, 0, 0, 0.525],
    102: [0, 0.61111, 0, 0, 0.525],
    103: [0.22222, 0.43056, 0, 0, 0.525],
    104: [0, 0.61111, 0, 0, 0.525],
    105: [0, 0.61111, 0, 0, 0.525],
    106: [0.22222, 0.61111, 0, 0, 0.525],
    107: [0, 0.61111, 0, 0, 0.525],
    108: [0, 0.61111, 0, 0, 0.525],
    109: [0, 0.43056, 0, 0, 0.525],
    110: [0, 0.43056, 0, 0, 0.525],
    111: [0, 0.43056, 0, 0, 0.525],
    112: [0.22222, 0.43056, 0, 0, 0.525],
    113: [0.22222, 0.43056, 0, 0, 0.525],
    114: [0, 0.43056, 0, 0, 0.525],
    115: [0, 0.43056, 0, 0, 0.525],
    116: [0, 0.55358, 0, 0, 0.525],
    117: [0, 0.43056, 0, 0, 0.525],
    118: [0, 0.43056, 0, 0, 0.525],
    119: [0, 0.43056, 0, 0, 0.525],
    120: [0, 0.43056, 0, 0, 0.525],
    121: [0.22222, 0.43056, 0, 0, 0.525],
    122: [0, 0.43056, 0, 0, 0.525],
    123: [0.08333, 0.69444, 0, 0, 0.525],
    124: [0.08333, 0.69444, 0, 0, 0.525],
    125: [0.08333, 0.69444, 0, 0, 0.525],
    126: [0, 0.61111, 0, 0, 0.525],
    127: [0, 0.61111, 0, 0, 0.525],
    160: [0, 0, 0, 0, 0.525],
    176: [0, 0.61111, 0, 0, 0.525],
    184: [0.19445, 0, 0, 0, 0.525],
    305: [0, 0.43056, 0, 0, 0.525],
    567: [0.22222, 0.43056, 0, 0, 0.525],
    711: [0, 0.56597, 0, 0, 0.525],
    713: [0, 0.56555, 0, 0, 0.525],
    714: [0, 0.61111, 0, 0, 0.525],
    715: [0, 0.61111, 0, 0, 0.525],
    728: [0, 0.61111, 0, 0, 0.525],
    730: [0, 0.61111, 0, 0, 0.525],
    770: [0, 0.61111, 0, 0, 0.525],
    771: [0, 0.61111, 0, 0, 0.525],
    776: [0, 0.61111, 0, 0, 0.525],
    915: [0, 0.61111, 0, 0, 0.525],
    916: [0, 0.61111, 0, 0, 0.525],
    920: [0, 0.61111, 0, 0, 0.525],
    923: [0, 0.61111, 0, 0, 0.525],
    926: [0, 0.61111, 0, 0, 0.525],
    928: [0, 0.61111, 0, 0, 0.525],
    931: [0, 0.61111, 0, 0, 0.525],
    933: [0, 0.61111, 0, 0, 0.525],
    934: [0, 0.61111, 0, 0, 0.525],
    936: [0, 0.61111, 0, 0, 0.525],
    937: [0, 0.61111, 0, 0, 0.525],
    8216: [0, 0.61111, 0, 0, 0.525],
    8217: [0, 0.61111, 0, 0, 0.525],
    8242: [0, 0.61111, 0, 0, 0.525],
    9251: [0.11111, 0.21944, 0, 0, 0.525]
  }
}, Tr = {
  slant: [0.25, 0.25, 0.25],
  // sigma1
  space: [0, 0, 0],
  // sigma2
  stretch: [0, 0, 0],
  // sigma3
  shrink: [0, 0, 0],
  // sigma4
  xHeight: [0.431, 0.431, 0.431],
  // sigma5
  quad: [1, 1.171, 1.472],
  // sigma6
  extraSpace: [0, 0, 0],
  // sigma7
  num1: [0.677, 0.732, 0.925],
  // sigma8
  num2: [0.394, 0.384, 0.387],
  // sigma9
  num3: [0.444, 0.471, 0.504],
  // sigma10
  denom1: [0.686, 0.752, 1.025],
  // sigma11
  denom2: [0.345, 0.344, 0.532],
  // sigma12
  sup1: [0.413, 0.503, 0.504],
  // sigma13
  sup2: [0.363, 0.431, 0.404],
  // sigma14
  sup3: [0.289, 0.286, 0.294],
  // sigma15
  sub1: [0.15, 0.143, 0.2],
  // sigma16
  sub2: [0.247, 0.286, 0.4],
  // sigma17
  supDrop: [0.386, 0.353, 0.494],
  // sigma18
  subDrop: [0.05, 0.071, 0.1],
  // sigma19
  delim1: [2.39, 1.7, 1.98],
  // sigma20
  delim2: [1.01, 1.157, 1.42],
  // sigma21
  axisHeight: [0.25, 0.25, 0.25],
  // sigma22
  // These font metrics are extracted from TeX by using tftopl on cmex10.tfm;
  // they correspond to the font parameters of the extension fonts (family 3).
  // See the TeXbook, page 441. In AMSTeX, the extension fonts scale; to
  // match cmex7, we'd use cmex7.tfm values for script and scriptscript
  // values.
  defaultRuleThickness: [0.04, 0.049, 0.049],
  // xi8; cmex7: 0.049
  bigOpSpacing1: [0.111, 0.111, 0.111],
  // xi9
  bigOpSpacing2: [0.166, 0.166, 0.166],
  // xi10
  bigOpSpacing3: [0.2, 0.2, 0.2],
  // xi11
  bigOpSpacing4: [0.6, 0.611, 0.611],
  // xi12; cmex7: 0.611
  bigOpSpacing5: [0.1, 0.143, 0.143],
  // xi13; cmex7: 0.143
  // The \sqrt rule width is taken from the height of the surd character.
  // Since we use the same font at all sizes, this thickness doesn't scale.
  sqrtRuleThickness: [0.04, 0.04, 0.04],
  // This value determines how large a pt is, for metrics which are defined
  // in terms of pts.
  // This value is also used in katex.scss; if you change it make sure the
  // values match.
  ptPerEm: [10, 10, 10],
  // The space between adjacent `|` columns in an array definition. From
  // `\showthe\doublerulesep` in LaTeX. Equals 2.0 / ptPerEm.
  doubleRuleSep: [0.2, 0.2, 0.2],
  // The width of separator lines in {array} environments. From
  // `\showthe\arrayrulewidth` in LaTeX. Equals 0.4 / ptPerEm.
  arrayRuleWidth: [0.04, 0.04, 0.04],
  // Two values from LaTeX source2e:
  fboxsep: [0.3, 0.3, 0.3],
  //        3 pt / ptPerEm
  fboxrule: [0.04, 0.04, 0.04]
  // 0.4 pt / ptPerEm
}, Xi = {
  // Latin-1
  Å: "A",
  Ð: "D",
  Þ: "o",
  å: "a",
  ð: "d",
  þ: "o",
  // Cyrillic
  А: "A",
  Б: "B",
  В: "B",
  Г: "F",
  Д: "A",
  Е: "E",
  Ж: "K",
  З: "3",
  И: "N",
  Й: "N",
  К: "K",
  Л: "N",
  М: "M",
  Н: "H",
  О: "O",
  П: "N",
  Р: "P",
  С: "C",
  Т: "T",
  У: "y",
  Ф: "O",
  Х: "X",
  Ц: "U",
  Ч: "h",
  Ш: "W",
  Щ: "W",
  Ъ: "B",
  Ы: "X",
  Ь: "B",
  Э: "3",
  Ю: "X",
  Я: "R",
  а: "a",
  б: "b",
  в: "a",
  г: "r",
  д: "y",
  е: "e",
  ж: "m",
  з: "e",
  и: "n",
  й: "n",
  к: "n",
  л: "n",
  м: "m",
  н: "n",
  о: "o",
  п: "n",
  р: "p",
  с: "c",
  т: "o",
  у: "y",
  ф: "b",
  х: "x",
  ц: "n",
  ч: "n",
  ш: "w",
  щ: "w",
  ъ: "a",
  ы: "m",
  ь: "a",
  э: "e",
  ю: "m",
  я: "r"
};
function K1(a, e) {
  Rt[a] = e;
}
function Yn(a, e, t) {
  if (!Rt[e])
    throw new Error("Font metrics not found for font: " + e + ".");
  var r = a.charCodeAt(0), n = Rt[e][r];
  if (!n && a[0] in Xi && (r = Xi[a[0]].charCodeAt(0), n = Rt[e][r]), !n && t === "text" && ao(r) && (n = Rt[e][77]), n)
    return {
      depth: n[0],
      height: n[1],
      italic: n[2],
      skew: n[3],
      width: n[4]
    };
}
var Ia = {};
function Q1(a) {
  var e;
  if (a >= 5 ? e = 0 : a >= 3 ? e = 1 : e = 2, !Ia[e]) {
    var t = Ia[e] = {
      cssEmPerMu: Tr.quad[e] / 18
    };
    for (var r in Tr)
      Tr.hasOwnProperty(r) && (t[r] = Tr[r][e]);
  }
  return Ia[e];
}
var J1 = [
  // Each element contains [textsize, scriptsize, scriptscriptsize].
  // The size mappings are taken from TeX with \normalsize=10pt.
  [1, 1, 1],
  // size1: [5, 5, 5]              \tiny
  [2, 1, 1],
  // size2: [6, 5, 5]
  [3, 1, 1],
  // size3: [7, 5, 5]              \scriptsize
  [4, 2, 1],
  // size4: [8, 6, 5]              \footnotesize
  [5, 2, 1],
  // size5: [9, 6, 5]              \small
  [6, 3, 1],
  // size6: [10, 7, 5]             \normalsize
  [7, 4, 2],
  // size7: [12, 8, 6]             \large
  [8, 6, 3],
  // size8: [14.4, 10, 7]          \Large
  [9, 7, 6],
  // size9: [17.28, 12, 10]        \LARGE
  [10, 8, 7],
  // size10: [20.74, 14.4, 12]     \huge
  [11, 10, 9]
  // size11: [24.88, 20.74, 17.28] \HUGE
], Yi = [
  // fontMetrics.js:getGlobalMetrics also uses size indexes, so if
  // you change size indexes, change that function.
  0.5,
  0.6,
  0.7,
  0.8,
  0.9,
  1,
  1.2,
  1.44,
  1.728,
  2.074,
  2.488
], ji = function(e, t) {
  return t.size < 2 ? e : J1[e - 1][t.size - 1];
};
class t0 {
  // A font family applies to a group of fonts (i.e. SansSerif), while a font
  // represents a specific font (i.e. SansSerif Bold).
  // See: https://tex.stackexchange.com/questions/22350/difference-between-textrm-and-mathrm
  /**
   * The base size index.
   */
  constructor(e) {
    this.style = void 0, this.color = void 0, this.size = void 0, this.textSize = void 0, this.phantom = void 0, this.font = void 0, this.fontFamily = void 0, this.fontWeight = void 0, this.fontShape = void 0, this.sizeMultiplier = void 0, this.maxSize = void 0, this.minRuleThickness = void 0, this._fontMetrics = void 0, this.style = e.style, this.color = e.color, this.size = e.size || t0.BASESIZE, this.textSize = e.textSize || this.size, this.phantom = !!e.phantom, this.font = e.font || "", this.fontFamily = e.fontFamily || "", this.fontWeight = e.fontWeight || "", this.fontShape = e.fontShape || "", this.sizeMultiplier = Yi[this.size - 1], this.maxSize = e.maxSize, this.minRuleThickness = e.minRuleThickness, this._fontMetrics = void 0;
  }
  /**
   * Returns a new options object with the same properties as "this".  Properties
   * from "extension" will be copied to the new options object.
   */
  extend(e) {
    var t = {
      style: this.style,
      size: this.size,
      textSize: this.textSize,
      color: this.color,
      phantom: this.phantom,
      font: this.font,
      fontFamily: this.fontFamily,
      fontWeight: this.fontWeight,
      fontShape: this.fontShape,
      maxSize: this.maxSize,
      minRuleThickness: this.minRuleThickness
    };
    for (var r in e)
      e.hasOwnProperty(r) && (t[r] = e[r]);
    return new t0(t);
  }
  /**
   * Return an options object with the given style. If `this.style === style`,
   * returns `this`.
   */
  havingStyle(e) {
    return this.style === e ? this : this.extend({
      style: e,
      size: ji(this.textSize, e)
    });
  }
  /**
   * Return an options object with a cramped version of the current style. If
   * the current style is cramped, returns `this`.
   */
  havingCrampedStyle() {
    return this.havingStyle(this.style.cramp());
  }
  /**
   * Return an options object with the given size and in at least `\textstyle`.
   * Returns `this` if appropriate.
   */
  havingSize(e) {
    return this.size === e && this.textSize === e ? this : this.extend({
      style: this.style.text(),
      size: e,
      textSize: e,
      sizeMultiplier: Yi[e - 1]
    });
  }
  /**
   * Like `this.havingSize(BASESIZE).havingStyle(style)`. If `style` is omitted,
   * changes to at least `\textstyle`.
   */
  havingBaseStyle(e) {
    e = e || this.style.text();
    var t = ji(t0.BASESIZE, e);
    return this.size === t && this.textSize === t0.BASESIZE && this.style === e ? this : this.extend({
      style: e,
      size: t
    });
  }
  /**
   * Remove the effect of sizing changes such as \Huge.
   * Keep the effect of the current style, such as \scriptstyle.
   */
  havingBaseSizing() {
    var e;
    switch (this.style.id) {
      case 4:
      case 5:
        e = 3;
        break;
      case 6:
      case 7:
        e = 1;
        break;
      default:
        e = 6;
    }
    return this.extend({
      style: this.style.text(),
      size: e
    });
  }
  /**
   * Create a new options object with the given color.
   */
  withColor(e) {
    return this.extend({
      color: e
    });
  }
  /**
   * Create a new options object with "phantom" set to true.
   */
  withPhantom() {
    return this.extend({
      phantom: !0
    });
  }
  /**
   * Creates a new options object with the given math font or old text font.
   * @type {[type]}
   */
  withFont(e) {
    return this.extend({
      font: e
    });
  }
  /**
   * Create a new options objects with the given fontFamily.
   */
  withTextFontFamily(e) {
    return this.extend({
      fontFamily: e,
      font: ""
    });
  }
  /**
   * Creates a new options object with the given font weight
   */
  withTextFontWeight(e) {
    return this.extend({
      fontWeight: e,
      font: ""
    });
  }
  /**
   * Creates a new options object with the given font weight
   */
  withTextFontShape(e) {
    return this.extend({
      fontShape: e,
      font: ""
    });
  }
  /**
   * Return the CSS sizing classes required to switch from enclosing options
   * `oldOptions` to `this`. Returns an array of classes.
   */
  sizingClasses(e) {
    return e.size !== this.size ? ["sizing", "reset-size" + e.size, "size" + this.size] : [];
  }
  /**
   * Return the CSS sizing classes required to switch to the base size. Like
   * `this.havingSize(BASESIZE).sizingClasses(this)`.
   */
  baseSizingClasses() {
    return this.size !== t0.BASESIZE ? ["sizing", "reset-size" + this.size, "size" + t0.BASESIZE] : [];
  }
  /**
   * Return the font metrics for this size.
   */
  fontMetrics() {
    return this._fontMetrics || (this._fontMetrics = Q1(this.size)), this._fontMetrics;
  }
  /**
   * Gets the CSS color of the current options object
   */
  getColor() {
    return this.phantom ? "transparent" : this.color;
  }
}
t0.BASESIZE = 6;
var xn = {
  // https://en.wikibooks.org/wiki/LaTeX/Lengths and
  // https://tex.stackexchange.com/a/8263
  pt: 1,
  // TeX point
  mm: 7227 / 2540,
  // millimeter
  cm: 7227 / 254,
  // centimeter
  in: 72.27,
  // inch
  bp: 803 / 800,
  // big (PostScript) points
  pc: 12,
  // pica
  dd: 1238 / 1157,
  // didot
  cc: 14856 / 1157,
  // cicero (12 didot)
  nd: 685 / 642,
  // new didot
  nc: 1370 / 107,
  // new cicero (12 new didot)
  sp: 1 / 65536,
  // scaled point (TeX's internal smallest unit)
  // https://tex.stackexchange.com/a/41371
  px: 803 / 800
  // \pdfpxdimen defaults to 1 bp in pdfTeX and LuaTeX
}, $1 = {
  ex: !0,
  em: !0,
  mu: !0
}, no = function(e) {
  return typeof e != "string" && (e = e.unit), e in xn || e in $1 || e === "ex";
}, ve = function(e, t) {
  var r;
  if (e.unit in xn)
    r = xn[e.unit] / t.fontMetrics().ptPerEm / t.sizeMultiplier;
  else if (e.unit === "mu")
    r = t.fontMetrics().cssEmPerMu;
  else {
    var n;
    if (t.style.isTight() ? n = t.havingStyle(t.style.text()) : n = t, e.unit === "ex")
      r = n.fontMetrics().xHeight;
    else if (e.unit === "em")
      r = n.fontMetrics().quad;
    else
      throw new O("Invalid unit: '" + e.unit + "'");
    n !== t && (r *= n.sizeMultiplier / t.sizeMultiplier);
  }
  return Math.min(e.number * r, t.maxSize);
}, H = function(e) {
  return +e.toFixed(4) + "em";
}, d0 = function(e) {
  return e.filter((t) => t).join(" ");
}, io = function(e, t, r) {
  if (this.classes = e || [], this.attributes = {}, this.height = 0, this.depth = 0, this.maxFontSize = 0, this.style = r || {}, t) {
    t.style.isTight() && this.classes.push("mtight");
    var n = t.getColor();
    n && (this.style.color = n);
  }
}, lo = function(e) {
  var t = document.createElement(e);
  t.className = d0(this.classes);
  for (var r in this.style)
    this.style.hasOwnProperty(r) && (t.style[r] = this.style[r]);
  for (var n in this.attributes)
    this.attributes.hasOwnProperty(n) && t.setAttribute(n, this.attributes[n]);
  for (var i = 0; i < this.children.length; i++)
    t.appendChild(this.children[i].toNode());
  return t;
}, so = function(e) {
  var t = "<" + e;
  this.classes.length && (t += ' class="' + Y.escape(d0(this.classes)) + '"');
  var r = "";
  for (var n in this.style)
    this.style.hasOwnProperty(n) && (r += Y.hyphenate(n) + ":" + this.style[n] + ";");
  r && (t += ' style="' + Y.escape(r) + '"');
  for (var i in this.attributes)
    this.attributes.hasOwnProperty(i) && (t += " " + i + '="' + Y.escape(this.attributes[i]) + '"');
  t += ">";
  for (var l = 0; l < this.children.length; l++)
    t += this.children[l].toMarkup();
  return t += "</" + e + ">", t;
};
class yr {
  constructor(e, t, r, n) {
    this.children = void 0, this.attributes = void 0, this.classes = void 0, this.height = void 0, this.depth = void 0, this.width = void 0, this.maxFontSize = void 0, this.style = void 0, io.call(this, e, r, n), this.children = t || [];
  }
  /**
   * Sets an arbitrary attribute on the span. Warning: use this wisely. Not
   * all browsers support attributes the same, and having too many custom
   * attributes is probably bad.
   */
  setAttribute(e, t) {
    this.attributes[e] = t;
  }
  hasClass(e) {
    return Y.contains(this.classes, e);
  }
  toNode() {
    return lo.call(this, "span");
  }
  toMarkup() {
    return so.call(this, "span");
  }
}
class jn {
  constructor(e, t, r, n) {
    this.children = void 0, this.attributes = void 0, this.classes = void 0, this.height = void 0, this.depth = void 0, this.maxFontSize = void 0, this.style = void 0, io.call(this, t, n), this.children = r || [], this.setAttribute("href", e);
  }
  setAttribute(e, t) {
    this.attributes[e] = t;
  }
  hasClass(e) {
    return Y.contains(this.classes, e);
  }
  toNode() {
    return lo.call(this, "a");
  }
  toMarkup() {
    return so.call(this, "a");
  }
}
class ec {
  constructor(e, t, r) {
    this.src = void 0, this.alt = void 0, this.classes = void 0, this.height = void 0, this.depth = void 0, this.maxFontSize = void 0, this.style = void 0, this.alt = t, this.src = e, this.classes = ["mord"], this.style = r;
  }
  hasClass(e) {
    return Y.contains(this.classes, e);
  }
  toNode() {
    var e = document.createElement("img");
    e.src = this.src, e.alt = this.alt, e.className = "mord";
    for (var t in this.style)
      this.style.hasOwnProperty(t) && (e.style[t] = this.style[t]);
    return e;
  }
  toMarkup() {
    var e = '<img src="' + Y.escape(this.src) + '"' + (' alt="' + Y.escape(this.alt) + '"'), t = "";
    for (var r in this.style)
      this.style.hasOwnProperty(r) && (t += Y.hyphenate(r) + ":" + this.style[r] + ";");
    return t && (e += ' style="' + Y.escape(t) + '"'), e += "'/>", e;
  }
}
var tc = {
  î: "ı̂",
  ï: "ı̈",
  í: "ı́",
  // 'ī': '\u0131\u0304', // enable when we add Extended Latin
  ì: "ı̀"
};
class ut {
  constructor(e, t, r, n, i, l, s, o) {
    this.text = void 0, this.height = void 0, this.depth = void 0, this.italic = void 0, this.skew = void 0, this.width = void 0, this.maxFontSize = void 0, this.classes = void 0, this.style = void 0, this.text = e, this.height = t || 0, this.depth = r || 0, this.italic = n || 0, this.skew = i || 0, this.width = l || 0, this.classes = s || [], this.style = o || {}, this.maxFontSize = 0;
    var h = q1(this.text.charCodeAt(0));
    h && this.classes.push(h + "_fallback"), /[îïíì]/.test(this.text) && (this.text = tc[this.text]);
  }
  hasClass(e) {
    return Y.contains(this.classes, e);
  }
  /**
   * Creates a text node or span from a symbol node. Note that a span is only
   * created if it is needed.
   */
  toNode() {
    var e = document.createTextNode(this.text), t = null;
    this.italic > 0 && (t = document.createElement("span"), t.style.marginRight = H(this.italic)), this.classes.length > 0 && (t = t || document.createElement("span"), t.className = d0(this.classes));
    for (var r in this.style)
      this.style.hasOwnProperty(r) && (t = t || document.createElement("span"), t.style[r] = this.style[r]);
    return t ? (t.appendChild(e), t) : e;
  }
  /**
   * Creates markup for a symbol node.
   */
  toMarkup() {
    var e = !1, t = "<span";
    this.classes.length && (e = !0, t += ' class="', t += Y.escape(d0(this.classes)), t += '"');
    var r = "";
    this.italic > 0 && (r += "margin-right:" + this.italic + "em;");
    for (var n in this.style)
      this.style.hasOwnProperty(n) && (r += Y.hyphenate(n) + ":" + this.style[n] + ";");
    r && (e = !0, t += ' style="' + Y.escape(r) + '"');
    var i = Y.escape(this.text);
    return e ? (t += ">", t += i, t += "</span>", t) : i;
  }
}
class n0 {
  constructor(e, t) {
    this.children = void 0, this.attributes = void 0, this.children = e || [], this.attributes = t || {};
  }
  toNode() {
    var e = "http://www.w3.org/2000/svg", t = document.createElementNS(e, "svg");
    for (var r in this.attributes)
      Object.prototype.hasOwnProperty.call(this.attributes, r) && t.setAttribute(r, this.attributes[r]);
    for (var n = 0; n < this.children.length; n++)
      t.appendChild(this.children[n].toNode());
    return t;
  }
  toMarkup() {
    var e = '<svg xmlns="http://www.w3.org/2000/svg"';
    for (var t in this.attributes)
      Object.prototype.hasOwnProperty.call(this.attributes, t) && (e += " " + t + '="' + Y.escape(this.attributes[t]) + '"');
    e += ">";
    for (var r = 0; r < this.children.length; r++)
      e += this.children[r].toMarkup();
    return e += "</svg>", e;
  }
}
class p0 {
  constructor(e, t) {
    this.pathName = void 0, this.alternate = void 0, this.pathName = e, this.alternate = t;
  }
  toNode() {
    var e = "http://www.w3.org/2000/svg", t = document.createElementNS(e, "path");
    return this.alternate ? t.setAttribute("d", this.alternate) : t.setAttribute("d", Wi[this.pathName]), t;
  }
  toMarkup() {
    return this.alternate ? '<path d="' + Y.escape(this.alternate) + '"/>' : '<path d="' + Y.escape(Wi[this.pathName]) + '"/>';
  }
}
class _n {
  constructor(e) {
    this.attributes = void 0, this.attributes = e || {};
  }
  toNode() {
    var e = "http://www.w3.org/2000/svg", t = document.createElementNS(e, "line");
    for (var r in this.attributes)
      Object.prototype.hasOwnProperty.call(this.attributes, r) && t.setAttribute(r, this.attributes[r]);
    return t;
  }
  toMarkup() {
    var e = "<line";
    for (var t in this.attributes)
      Object.prototype.hasOwnProperty.call(this.attributes, t) && (e += " " + t + '="' + Y.escape(this.attributes[t]) + '"');
    return e += "/>", e;
  }
}
function Zi(a) {
  if (a instanceof ut)
    return a;
  throw new Error("Expected symbolNode but got " + String(a) + ".");
}
function rc(a) {
  if (a instanceof yr)
    return a;
  throw new Error("Expected span<HtmlDomNode> but got " + String(a) + ".");
}
var ac = {
  bin: 1,
  close: 1,
  inner: 1,
  open: 1,
  punct: 1,
  rel: 1
}, nc = {
  "accent-token": 1,
  mathord: 1,
  "op-token": 1,
  spacing: 1,
  textord: 1
}, me = {
  math: {},
  text: {}
};
function u(a, e, t, r, n, i) {
  me[a][n] = {
    font: e,
    group: t,
    replace: r
  }, i && r && (me[a][r] = me[a][n]);
}
var c = "math", R = "text", f = "main", w = "ams", pe = "accent-token", V = "bin", Pe = "close", X0 = "inner", Z = "mathord", Se = "op-token", rt = "open", xa = "punct", k = "rel", s0 = "spacing", D = "textord";
u(c, f, k, "≡", "\\equiv", !0);
u(c, f, k, "≺", "\\prec", !0);
u(c, f, k, "≻", "\\succ", !0);
u(c, f, k, "∼", "\\sim", !0);
u(c, f, k, "⊥", "\\perp");
u(c, f, k, "⪯", "\\preceq", !0);
u(c, f, k, "⪰", "\\succeq", !0);
u(c, f, k, "≃", "\\simeq", !0);
u(c, f, k, "∣", "\\mid", !0);
u(c, f, k, "≪", "\\ll", !0);
u(c, f, k, "≫", "\\gg", !0);
u(c, f, k, "≍", "\\asymp", !0);
u(c, f, k, "∥", "\\parallel");
u(c, f, k, "⋈", "\\bowtie", !0);
u(c, f, k, "⌣", "\\smile", !0);
u(c, f, k, "⊑", "\\sqsubseteq", !0);
u(c, f, k, "⊒", "\\sqsupseteq", !0);
u(c, f, k, "≐", "\\doteq", !0);
u(c, f, k, "⌢", "\\frown", !0);
u(c, f, k, "∋", "\\ni", !0);
u(c, f, k, "∝", "\\propto", !0);
u(c, f, k, "⊢", "\\vdash", !0);
u(c, f, k, "⊣", "\\dashv", !0);
u(c, f, k, "∋", "\\owns");
u(c, f, xa, ".", "\\ldotp");
u(c, f, xa, "⋅", "\\cdotp");
u(c, f, D, "#", "\\#");
u(R, f, D, "#", "\\#");
u(c, f, D, "&", "\\&");
u(R, f, D, "&", "\\&");
u(c, f, D, "ℵ", "\\aleph", !0);
u(c, f, D, "∀", "\\forall", !0);
u(c, f, D, "ℏ", "\\hbar", !0);
u(c, f, D, "∃", "\\exists", !0);
u(c, f, D, "∇", "\\nabla", !0);
u(c, f, D, "♭", "\\flat", !0);
u(c, f, D, "ℓ", "\\ell", !0);
u(c, f, D, "♮", "\\natural", !0);
u(c, f, D, "♣", "\\clubsuit", !0);
u(c, f, D, "℘", "\\wp", !0);
u(c, f, D, "♯", "\\sharp", !0);
u(c, f, D, "♢", "\\diamondsuit", !0);
u(c, f, D, "ℜ", "\\Re", !0);
u(c, f, D, "♡", "\\heartsuit", !0);
u(c, f, D, "ℑ", "\\Im", !0);
u(c, f, D, "♠", "\\spadesuit", !0);
u(c, f, D, "§", "\\S", !0);
u(R, f, D, "§", "\\S");
u(c, f, D, "¶", "\\P", !0);
u(R, f, D, "¶", "\\P");
u(c, f, D, "†", "\\dag");
u(R, f, D, "†", "\\dag");
u(R, f, D, "†", "\\textdagger");
u(c, f, D, "‡", "\\ddag");
u(R, f, D, "‡", "\\ddag");
u(R, f, D, "‡", "\\textdaggerdbl");
u(c, f, Pe, "⎱", "\\rmoustache", !0);
u(c, f, rt, "⎰", "\\lmoustache", !0);
u(c, f, Pe, "⟯", "\\rgroup", !0);
u(c, f, rt, "⟮", "\\lgroup", !0);
u(c, f, V, "∓", "\\mp", !0);
u(c, f, V, "⊖", "\\ominus", !0);
u(c, f, V, "⊎", "\\uplus", !0);
u(c, f, V, "⊓", "\\sqcap", !0);
u(c, f, V, "∗", "\\ast");
u(c, f, V, "⊔", "\\sqcup", !0);
u(c, f, V, "◯", "\\bigcirc", !0);
u(c, f, V, "∙", "\\bullet", !0);
u(c, f, V, "‡", "\\ddagger");
u(c, f, V, "≀", "\\wr", !0);
u(c, f, V, "⨿", "\\amalg");
u(c, f, V, "&", "\\And");
u(c, f, k, "⟵", "\\longleftarrow", !0);
u(c, f, k, "⇐", "\\Leftarrow", !0);
u(c, f, k, "⟸", "\\Longleftarrow", !0);
u(c, f, k, "⟶", "\\longrightarrow", !0);
u(c, f, k, "⇒", "\\Rightarrow", !0);
u(c, f, k, "⟹", "\\Longrightarrow", !0);
u(c, f, k, "↔", "\\leftrightarrow", !0);
u(c, f, k, "⟷", "\\longleftrightarrow", !0);
u(c, f, k, "⇔", "\\Leftrightarrow", !0);
u(c, f, k, "⟺", "\\Longleftrightarrow", !0);
u(c, f, k, "↦", "\\mapsto", !0);
u(c, f, k, "⟼", "\\longmapsto", !0);
u(c, f, k, "↗", "\\nearrow", !0);
u(c, f, k, "↩", "\\hookleftarrow", !0);
u(c, f, k, "↪", "\\hookrightarrow", !0);
u(c, f, k, "↘", "\\searrow", !0);
u(c, f, k, "↼", "\\leftharpoonup", !0);
u(c, f, k, "⇀", "\\rightharpoonup", !0);
u(c, f, k, "↙", "\\swarrow", !0);
u(c, f, k, "↽", "\\leftharpoondown", !0);
u(c, f, k, "⇁", "\\rightharpoondown", !0);
u(c, f, k, "↖", "\\nwarrow", !0);
u(c, f, k, "⇌", "\\rightleftharpoons", !0);
u(c, w, k, "≮", "\\nless", !0);
u(c, w, k, "", "\\@nleqslant");
u(c, w, k, "", "\\@nleqq");
u(c, w, k, "⪇", "\\lneq", !0);
u(c, w, k, "≨", "\\lneqq", !0);
u(c, w, k, "", "\\@lvertneqq");
u(c, w, k, "⋦", "\\lnsim", !0);
u(c, w, k, "⪉", "\\lnapprox", !0);
u(c, w, k, "⊀", "\\nprec", !0);
u(c, w, k, "⋠", "\\npreceq", !0);
u(c, w, k, "⋨", "\\precnsim", !0);
u(c, w, k, "⪹", "\\precnapprox", !0);
u(c, w, k, "≁", "\\nsim", !0);
u(c, w, k, "", "\\@nshortmid");
u(c, w, k, "∤", "\\nmid", !0);
u(c, w, k, "⊬", "\\nvdash", !0);
u(c, w, k, "⊭", "\\nvDash", !0);
u(c, w, k, "⋪", "\\ntriangleleft");
u(c, w, k, "⋬", "\\ntrianglelefteq", !0);
u(c, w, k, "⊊", "\\subsetneq", !0);
u(c, w, k, "", "\\@varsubsetneq");
u(c, w, k, "⫋", "\\subsetneqq", !0);
u(c, w, k, "", "\\@varsubsetneqq");
u(c, w, k, "≯", "\\ngtr", !0);
u(c, w, k, "", "\\@ngeqslant");
u(c, w, k, "", "\\@ngeqq");
u(c, w, k, "⪈", "\\gneq", !0);
u(c, w, k, "≩", "\\gneqq", !0);
u(c, w, k, "", "\\@gvertneqq");
u(c, w, k, "⋧", "\\gnsim", !0);
u(c, w, k, "⪊", "\\gnapprox", !0);
u(c, w, k, "⊁", "\\nsucc", !0);
u(c, w, k, "⋡", "\\nsucceq", !0);
u(c, w, k, "⋩", "\\succnsim", !0);
u(c, w, k, "⪺", "\\succnapprox", !0);
u(c, w, k, "≆", "\\ncong", !0);
u(c, w, k, "", "\\@nshortparallel");
u(c, w, k, "∦", "\\nparallel", !0);
u(c, w, k, "⊯", "\\nVDash", !0);
u(c, w, k, "⋫", "\\ntriangleright");
u(c, w, k, "⋭", "\\ntrianglerighteq", !0);
u(c, w, k, "", "\\@nsupseteqq");
u(c, w, k, "⊋", "\\supsetneq", !0);
u(c, w, k, "", "\\@varsupsetneq");
u(c, w, k, "⫌", "\\supsetneqq", !0);
u(c, w, k, "", "\\@varsupsetneqq");
u(c, w, k, "⊮", "\\nVdash", !0);
u(c, w, k, "⪵", "\\precneqq", !0);
u(c, w, k, "⪶", "\\succneqq", !0);
u(c, w, k, "", "\\@nsubseteqq");
u(c, w, V, "⊴", "\\unlhd");
u(c, w, V, "⊵", "\\unrhd");
u(c, w, k, "↚", "\\nleftarrow", !0);
u(c, w, k, "↛", "\\nrightarrow", !0);
u(c, w, k, "⇍", "\\nLeftarrow", !0);
u(c, w, k, "⇏", "\\nRightarrow", !0);
u(c, w, k, "↮", "\\nleftrightarrow", !0);
u(c, w, k, "⇎", "\\nLeftrightarrow", !0);
u(c, w, k, "△", "\\vartriangle");
u(c, w, D, "ℏ", "\\hslash");
u(c, w, D, "▽", "\\triangledown");
u(c, w, D, "◊", "\\lozenge");
u(c, w, D, "Ⓢ", "\\circledS");
u(c, w, D, "®", "\\circledR");
u(R, w, D, "®", "\\circledR");
u(c, w, D, "∡", "\\measuredangle", !0);
u(c, w, D, "∄", "\\nexists");
u(c, w, D, "℧", "\\mho");
u(c, w, D, "Ⅎ", "\\Finv", !0);
u(c, w, D, "⅁", "\\Game", !0);
u(c, w, D, "‵", "\\backprime");
u(c, w, D, "▲", "\\blacktriangle");
u(c, w, D, "▼", "\\blacktriangledown");
u(c, w, D, "■", "\\blacksquare");
u(c, w, D, "⧫", "\\blacklozenge");
u(c, w, D, "★", "\\bigstar");
u(c, w, D, "∢", "\\sphericalangle", !0);
u(c, w, D, "∁", "\\complement", !0);
u(c, w, D, "ð", "\\eth", !0);
u(R, f, D, "ð", "ð");
u(c, w, D, "╱", "\\diagup");
u(c, w, D, "╲", "\\diagdown");
u(c, w, D, "□", "\\square");
u(c, w, D, "□", "\\Box");
u(c, w, D, "◊", "\\Diamond");
u(c, w, D, "¥", "\\yen", !0);
u(R, w, D, "¥", "\\yen", !0);
u(c, w, D, "✓", "\\checkmark", !0);
u(R, w, D, "✓", "\\checkmark");
u(c, w, D, "ℶ", "\\beth", !0);
u(c, w, D, "ℸ", "\\daleth", !0);
u(c, w, D, "ℷ", "\\gimel", !0);
u(c, w, D, "ϝ", "\\digamma", !0);
u(c, w, D, "ϰ", "\\varkappa");
u(c, w, rt, "┌", "\\@ulcorner", !0);
u(c, w, Pe, "┐", "\\@urcorner", !0);
u(c, w, rt, "└", "\\@llcorner", !0);
u(c, w, Pe, "┘", "\\@lrcorner", !0);
u(c, w, k, "≦", "\\leqq", !0);
u(c, w, k, "⩽", "\\leqslant", !0);
u(c, w, k, "⪕", "\\eqslantless", !0);
u(c, w, k, "≲", "\\lesssim", !0);
u(c, w, k, "⪅", "\\lessapprox", !0);
u(c, w, k, "≊", "\\approxeq", !0);
u(c, w, V, "⋖", "\\lessdot");
u(c, w, k, "⋘", "\\lll", !0);
u(c, w, k, "≶", "\\lessgtr", !0);
u(c, w, k, "⋚", "\\lesseqgtr", !0);
u(c, w, k, "⪋", "\\lesseqqgtr", !0);
u(c, w, k, "≑", "\\doteqdot");
u(c, w, k, "≓", "\\risingdotseq", !0);
u(c, w, k, "≒", "\\fallingdotseq", !0);
u(c, w, k, "∽", "\\backsim", !0);
u(c, w, k, "⋍", "\\backsimeq", !0);
u(c, w, k, "⫅", "\\subseteqq", !0);
u(c, w, k, "⋐", "\\Subset", !0);
u(c, w, k, "⊏", "\\sqsubset", !0);
u(c, w, k, "≼", "\\preccurlyeq", !0);
u(c, w, k, "⋞", "\\curlyeqprec", !0);
u(c, w, k, "≾", "\\precsim", !0);
u(c, w, k, "⪷", "\\precapprox", !0);
u(c, w, k, "⊲", "\\vartriangleleft");
u(c, w, k, "⊴", "\\trianglelefteq");
u(c, w, k, "⊨", "\\vDash", !0);
u(c, w, k, "⊪", "\\Vvdash", !0);
u(c, w, k, "⌣", "\\smallsmile");
u(c, w, k, "⌢", "\\smallfrown");
u(c, w, k, "≏", "\\bumpeq", !0);
u(c, w, k, "≎", "\\Bumpeq", !0);
u(c, w, k, "≧", "\\geqq", !0);
u(c, w, k, "⩾", "\\geqslant", !0);
u(c, w, k, "⪖", "\\eqslantgtr", !0);
u(c, w, k, "≳", "\\gtrsim", !0);
u(c, w, k, "⪆", "\\gtrapprox", !0);
u(c, w, V, "⋗", "\\gtrdot");
u(c, w, k, "⋙", "\\ggg", !0);
u(c, w, k, "≷", "\\gtrless", !0);
u(c, w, k, "⋛", "\\gtreqless", !0);
u(c, w, k, "⪌", "\\gtreqqless", !0);
u(c, w, k, "≖", "\\eqcirc", !0);
u(c, w, k, "≗", "\\circeq", !0);
u(c, w, k, "≜", "\\triangleq", !0);
u(c, w, k, "∼", "\\thicksim");
u(c, w, k, "≈", "\\thickapprox");
u(c, w, k, "⫆", "\\supseteqq", !0);
u(c, w, k, "⋑", "\\Supset", !0);
u(c, w, k, "⊐", "\\sqsupset", !0);
u(c, w, k, "≽", "\\succcurlyeq", !0);
u(c, w, k, "⋟", "\\curlyeqsucc", !0);
u(c, w, k, "≿", "\\succsim", !0);
u(c, w, k, "⪸", "\\succapprox", !0);
u(c, w, k, "⊳", "\\vartriangleright");
u(c, w, k, "⊵", "\\trianglerighteq");
u(c, w, k, "⊩", "\\Vdash", !0);
u(c, w, k, "∣", "\\shortmid");
u(c, w, k, "∥", "\\shortparallel");
u(c, w, k, "≬", "\\between", !0);
u(c, w, k, "⋔", "\\pitchfork", !0);
u(c, w, k, "∝", "\\varpropto");
u(c, w, k, "◀", "\\blacktriangleleft");
u(c, w, k, "∴", "\\therefore", !0);
u(c, w, k, "∍", "\\backepsilon");
u(c, w, k, "▶", "\\blacktriangleright");
u(c, w, k, "∵", "\\because", !0);
u(c, w, k, "⋘", "\\llless");
u(c, w, k, "⋙", "\\gggtr");
u(c, w, V, "⊲", "\\lhd");
u(c, w, V, "⊳", "\\rhd");
u(c, w, k, "≂", "\\eqsim", !0);
u(c, f, k, "⋈", "\\Join");
u(c, w, k, "≑", "\\Doteq", !0);
u(c, w, V, "∔", "\\dotplus", !0);
u(c, w, V, "∖", "\\smallsetminus");
u(c, w, V, "⋒", "\\Cap", !0);
u(c, w, V, "⋓", "\\Cup", !0);
u(c, w, V, "⩞", "\\doublebarwedge", !0);
u(c, w, V, "⊟", "\\boxminus", !0);
u(c, w, V, "⊞", "\\boxplus", !0);
u(c, w, V, "⋇", "\\divideontimes", !0);
u(c, w, V, "⋉", "\\ltimes", !0);
u(c, w, V, "⋊", "\\rtimes", !0);
u(c, w, V, "⋋", "\\leftthreetimes", !0);
u(c, w, V, "⋌", "\\rightthreetimes", !0);
u(c, w, V, "⋏", "\\curlywedge", !0);
u(c, w, V, "⋎", "\\curlyvee", !0);
u(c, w, V, "⊝", "\\circleddash", !0);
u(c, w, V, "⊛", "\\circledast", !0);
u(c, w, V, "⋅", "\\centerdot");
u(c, w, V, "⊺", "\\intercal", !0);
u(c, w, V, "⋒", "\\doublecap");
u(c, w, V, "⋓", "\\doublecup");
u(c, w, V, "⊠", "\\boxtimes", !0);
u(c, w, k, "⇢", "\\dashrightarrow", !0);
u(c, w, k, "⇠", "\\dashleftarrow", !0);
u(c, w, k, "⇇", "\\leftleftarrows", !0);
u(c, w, k, "⇆", "\\leftrightarrows", !0);
u(c, w, k, "⇚", "\\Lleftarrow", !0);
u(c, w, k, "↞", "\\twoheadleftarrow", !0);
u(c, w, k, "↢", "\\leftarrowtail", !0);
u(c, w, k, "↫", "\\looparrowleft", !0);
u(c, w, k, "⇋", "\\leftrightharpoons", !0);
u(c, w, k, "↶", "\\curvearrowleft", !0);
u(c, w, k, "↺", "\\circlearrowleft", !0);
u(c, w, k, "↰", "\\Lsh", !0);
u(c, w, k, "⇈", "\\upuparrows", !0);
u(c, w, k, "↿", "\\upharpoonleft", !0);
u(c, w, k, "⇃", "\\downharpoonleft", !0);
u(c, f, k, "⊶", "\\origof", !0);
u(c, f, k, "⊷", "\\imageof", !0);
u(c, w, k, "⊸", "\\multimap", !0);
u(c, w, k, "↭", "\\leftrightsquigarrow", !0);
u(c, w, k, "⇉", "\\rightrightarrows", !0);
u(c, w, k, "⇄", "\\rightleftarrows", !0);
u(c, w, k, "↠", "\\twoheadrightarrow", !0);
u(c, w, k, "↣", "\\rightarrowtail", !0);
u(c, w, k, "↬", "\\looparrowright", !0);
u(c, w, k, "↷", "\\curvearrowright", !0);
u(c, w, k, "↻", "\\circlearrowright", !0);
u(c, w, k, "↱", "\\Rsh", !0);
u(c, w, k, "⇊", "\\downdownarrows", !0);
u(c, w, k, "↾", "\\upharpoonright", !0);
u(c, w, k, "⇂", "\\downharpoonright", !0);
u(c, w, k, "⇝", "\\rightsquigarrow", !0);
u(c, w, k, "⇝", "\\leadsto");
u(c, w, k, "⇛", "\\Rrightarrow", !0);
u(c, w, k, "↾", "\\restriction");
u(c, f, D, "‘", "`");
u(c, f, D, "$", "\\$");
u(R, f, D, "$", "\\$");
u(R, f, D, "$", "\\textdollar");
u(c, f, D, "%", "\\%");
u(R, f, D, "%", "\\%");
u(c, f, D, "_", "\\_");
u(R, f, D, "_", "\\_");
u(R, f, D, "_", "\\textunderscore");
u(c, f, D, "∠", "\\angle", !0);
u(c, f, D, "∞", "\\infty", !0);
u(c, f, D, "′", "\\prime");
u(c, f, D, "△", "\\triangle");
u(c, f, D, "Γ", "\\Gamma", !0);
u(c, f, D, "Δ", "\\Delta", !0);
u(c, f, D, "Θ", "\\Theta", !0);
u(c, f, D, "Λ", "\\Lambda", !0);
u(c, f, D, "Ξ", "\\Xi", !0);
u(c, f, D, "Π", "\\Pi", !0);
u(c, f, D, "Σ", "\\Sigma", !0);
u(c, f, D, "Υ", "\\Upsilon", !0);
u(c, f, D, "Φ", "\\Phi", !0);
u(c, f, D, "Ψ", "\\Psi", !0);
u(c, f, D, "Ω", "\\Omega", !0);
u(c, f, D, "A", "Α");
u(c, f, D, "B", "Β");
u(c, f, D, "E", "Ε");
u(c, f, D, "Z", "Ζ");
u(c, f, D, "H", "Η");
u(c, f, D, "I", "Ι");
u(c, f, D, "K", "Κ");
u(c, f, D, "M", "Μ");
u(c, f, D, "N", "Ν");
u(c, f, D, "O", "Ο");
u(c, f, D, "P", "Ρ");
u(c, f, D, "T", "Τ");
u(c, f, D, "X", "Χ");
u(c, f, D, "¬", "\\neg", !0);
u(c, f, D, "¬", "\\lnot");
u(c, f, D, "⊤", "\\top");
u(c, f, D, "⊥", "\\bot");
u(c, f, D, "∅", "\\emptyset");
u(c, w, D, "∅", "\\varnothing");
u(c, f, Z, "α", "\\alpha", !0);
u(c, f, Z, "β", "\\beta", !0);
u(c, f, Z, "γ", "\\gamma", !0);
u(c, f, Z, "δ", "\\delta", !0);
u(c, f, Z, "ϵ", "\\epsilon", !0);
u(c, f, Z, "ζ", "\\zeta", !0);
u(c, f, Z, "η", "\\eta", !0);
u(c, f, Z, "θ", "\\theta", !0);
u(c, f, Z, "ι", "\\iota", !0);
u(c, f, Z, "κ", "\\kappa", !0);
u(c, f, Z, "λ", "\\lambda", !0);
u(c, f, Z, "μ", "\\mu", !0);
u(c, f, Z, "ν", "\\nu", !0);
u(c, f, Z, "ξ", "\\xi", !0);
u(c, f, Z, "ο", "\\omicron", !0);
u(c, f, Z, "π", "\\pi", !0);
u(c, f, Z, "ρ", "\\rho", !0);
u(c, f, Z, "σ", "\\sigma", !0);
u(c, f, Z, "τ", "\\tau", !0);
u(c, f, Z, "υ", "\\upsilon", !0);
u(c, f, Z, "ϕ", "\\phi", !0);
u(c, f, Z, "χ", "\\chi", !0);
u(c, f, Z, "ψ", "\\psi", !0);
u(c, f, Z, "ω", "\\omega", !0);
u(c, f, Z, "ε", "\\varepsilon", !0);
u(c, f, Z, "ϑ", "\\vartheta", !0);
u(c, f, Z, "ϖ", "\\varpi", !0);
u(c, f, Z, "ϱ", "\\varrho", !0);
u(c, f, Z, "ς", "\\varsigma", !0);
u(c, f, Z, "φ", "\\varphi", !0);
u(c, f, V, "∗", "*", !0);
u(c, f, V, "+", "+");
u(c, f, V, "−", "-", !0);
u(c, f, V, "⋅", "\\cdot", !0);
u(c, f, V, "∘", "\\circ", !0);
u(c, f, V, "÷", "\\div", !0);
u(c, f, V, "±", "\\pm", !0);
u(c, f, V, "×", "\\times", !0);
u(c, f, V, "∩", "\\cap", !0);
u(c, f, V, "∪", "\\cup", !0);
u(c, f, V, "∖", "\\setminus", !0);
u(c, f, V, "∧", "\\land");
u(c, f, V, "∨", "\\lor");
u(c, f, V, "∧", "\\wedge", !0);
u(c, f, V, "∨", "\\vee", !0);
u(c, f, D, "√", "\\surd");
u(c, f, rt, "⟨", "\\langle", !0);
u(c, f, rt, "∣", "\\lvert");
u(c, f, rt, "∥", "\\lVert");
u(c, f, Pe, "?", "?");
u(c, f, Pe, "!", "!");
u(c, f, Pe, "⟩", "\\rangle", !0);
u(c, f, Pe, "∣", "\\rvert");
u(c, f, Pe, "∥", "\\rVert");
u(c, f, k, "=", "=");
u(c, f, k, ":", ":");
u(c, f, k, "≈", "\\approx", !0);
u(c, f, k, "≅", "\\cong", !0);
u(c, f, k, "≥", "\\ge");
u(c, f, k, "≥", "\\geq", !0);
u(c, f, k, "←", "\\gets");
u(c, f, k, ">", "\\gt", !0);
u(c, f, k, "∈", "\\in", !0);
u(c, f, k, "", "\\@not");
u(c, f, k, "⊂", "\\subset", !0);
u(c, f, k, "⊃", "\\supset", !0);
u(c, f, k, "⊆", "\\subseteq", !0);
u(c, f, k, "⊇", "\\supseteq", !0);
u(c, w, k, "⊈", "\\nsubseteq", !0);
u(c, w, k, "⊉", "\\nsupseteq", !0);
u(c, f, k, "⊨", "\\models");
u(c, f, k, "←", "\\leftarrow", !0);
u(c, f, k, "≤", "\\le");
u(c, f, k, "≤", "\\leq", !0);
u(c, f, k, "<", "\\lt", !0);
u(c, f, k, "→", "\\rightarrow", !0);
u(c, f, k, "→", "\\to");
u(c, w, k, "≱", "\\ngeq", !0);
u(c, w, k, "≰", "\\nleq", !0);
u(c, f, s0, " ", "\\ ");
u(c, f, s0, " ", "\\space");
u(c, f, s0, " ", "\\nobreakspace");
u(R, f, s0, " ", "\\ ");
u(R, f, s0, " ", " ");
u(R, f, s0, " ", "\\space");
u(R, f, s0, " ", "\\nobreakspace");
u(c, f, s0, null, "\\nobreak");
u(c, f, s0, null, "\\allowbreak");
u(c, f, xa, ",", ",");
u(c, f, xa, ";", ";");
u(c, w, V, "⊼", "\\barwedge", !0);
u(c, w, V, "⊻", "\\veebar", !0);
u(c, f, V, "⊙", "\\odot", !0);
u(c, f, V, "⊕", "\\oplus", !0);
u(c, f, V, "⊗", "\\otimes", !0);
u(c, f, D, "∂", "\\partial", !0);
u(c, f, V, "⊘", "\\oslash", !0);
u(c, w, V, "⊚", "\\circledcirc", !0);
u(c, w, V, "⊡", "\\boxdot", !0);
u(c, f, V, "△", "\\bigtriangleup");
u(c, f, V, "▽", "\\bigtriangledown");
u(c, f, V, "†", "\\dagger");
u(c, f, V, "⋄", "\\diamond");
u(c, f, V, "⋆", "\\star");
u(c, f, V, "◃", "\\triangleleft");
u(c, f, V, "▹", "\\triangleright");
u(c, f, rt, "{", "\\{");
u(R, f, D, "{", "\\{");
u(R, f, D, "{", "\\textbraceleft");
u(c, f, Pe, "}", "\\}");
u(R, f, D, "}", "\\}");
u(R, f, D, "}", "\\textbraceright");
u(c, f, rt, "{", "\\lbrace");
u(c, f, Pe, "}", "\\rbrace");
u(c, f, rt, "[", "\\lbrack", !0);
u(R, f, D, "[", "\\lbrack", !0);
u(c, f, Pe, "]", "\\rbrack", !0);
u(R, f, D, "]", "\\rbrack", !0);
u(c, f, rt, "(", "\\lparen", !0);
u(c, f, Pe, ")", "\\rparen", !0);
u(R, f, D, "<", "\\textless", !0);
u(R, f, D, ">", "\\textgreater", !0);
u(c, f, rt, "⌊", "\\lfloor", !0);
u(c, f, Pe, "⌋", "\\rfloor", !0);
u(c, f, rt, "⌈", "\\lceil", !0);
u(c, f, Pe, "⌉", "\\rceil", !0);
u(c, f, D, "\\", "\\backslash");
u(c, f, D, "∣", "|");
u(c, f, D, "∣", "\\vert");
u(R, f, D, "|", "\\textbar", !0);
u(c, f, D, "∥", "\\|");
u(c, f, D, "∥", "\\Vert");
u(R, f, D, "∥", "\\textbardbl");
u(R, f, D, "~", "\\textasciitilde");
u(R, f, D, "\\", "\\textbackslash");
u(R, f, D, "^", "\\textasciicircum");
u(c, f, k, "↑", "\\uparrow", !0);
u(c, f, k, "⇑", "\\Uparrow", !0);
u(c, f, k, "↓", "\\downarrow", !0);
u(c, f, k, "⇓", "\\Downarrow", !0);
u(c, f, k, "↕", "\\updownarrow", !0);
u(c, f, k, "⇕", "\\Updownarrow", !0);
u(c, f, Se, "∐", "\\coprod");
u(c, f, Se, "⋁", "\\bigvee");
u(c, f, Se, "⋀", "\\bigwedge");
u(c, f, Se, "⨄", "\\biguplus");
u(c, f, Se, "⋂", "\\bigcap");
u(c, f, Se, "⋃", "\\bigcup");
u(c, f, Se, "∫", "\\int");
u(c, f, Se, "∫", "\\intop");
u(c, f, Se, "∬", "\\iint");
u(c, f, Se, "∭", "\\iiint");
u(c, f, Se, "∏", "\\prod");
u(c, f, Se, "∑", "\\sum");
u(c, f, Se, "⨂", "\\bigotimes");
u(c, f, Se, "⨁", "\\bigoplus");
u(c, f, Se, "⨀", "\\bigodot");
u(c, f, Se, "∮", "\\oint");
u(c, f, Se, "∯", "\\oiint");
u(c, f, Se, "∰", "\\oiiint");
u(c, f, Se, "⨆", "\\bigsqcup");
u(c, f, Se, "∫", "\\smallint");
u(R, f, X0, "…", "\\textellipsis");
u(c, f, X0, "…", "\\mathellipsis");
u(R, f, X0, "…", "\\ldots", !0);
u(c, f, X0, "…", "\\ldots", !0);
u(c, f, X0, "⋯", "\\@cdots", !0);
u(c, f, X0, "⋱", "\\ddots", !0);
u(c, f, D, "⋮", "\\varvdots");
u(R, f, D, "⋮", "\\varvdots");
u(c, f, pe, "ˊ", "\\acute");
u(c, f, pe, "ˋ", "\\grave");
u(c, f, pe, "¨", "\\ddot");
u(c, f, pe, "~", "\\tilde");
u(c, f, pe, "ˉ", "\\bar");
u(c, f, pe, "˘", "\\breve");
u(c, f, pe, "ˇ", "\\check");
u(c, f, pe, "^", "\\hat");
u(c, f, pe, "⃗", "\\vec");
u(c, f, pe, "˙", "\\dot");
u(c, f, pe, "˚", "\\mathring");
u(c, f, Z, "", "\\@imath");
u(c, f, Z, "", "\\@jmath");
u(c, f, D, "ı", "ı");
u(c, f, D, "ȷ", "ȷ");
u(R, f, D, "ı", "\\i", !0);
u(R, f, D, "ȷ", "\\j", !0);
u(R, f, D, "ß", "\\ss", !0);
u(R, f, D, "æ", "\\ae", !0);
u(R, f, D, "œ", "\\oe", !0);
u(R, f, D, "ø", "\\o", !0);
u(R, f, D, "Æ", "\\AE", !0);
u(R, f, D, "Œ", "\\OE", !0);
u(R, f, D, "Ø", "\\O", !0);
u(R, f, pe, "ˊ", "\\'");
u(R, f, pe, "ˋ", "\\`");
u(R, f, pe, "ˆ", "\\^");
u(R, f, pe, "˜", "\\~");
u(R, f, pe, "ˉ", "\\=");
u(R, f, pe, "˘", "\\u");
u(R, f, pe, "˙", "\\.");
u(R, f, pe, "¸", "\\c");
u(R, f, pe, "˚", "\\r");
u(R, f, pe, "ˇ", "\\v");
u(R, f, pe, "¨", '\\"');
u(R, f, pe, "˝", "\\H");
u(R, f, pe, "◯", "\\textcircled");
var oo = {
  "--": !0,
  "---": !0,
  "``": !0,
  "''": !0
};
u(R, f, D, "–", "--", !0);
u(R, f, D, "–", "\\textendash");
u(R, f, D, "—", "---", !0);
u(R, f, D, "—", "\\textemdash");
u(R, f, D, "‘", "`", !0);
u(R, f, D, "‘", "\\textquoteleft");
u(R, f, D, "’", "'", !0);
u(R, f, D, "’", "\\textquoteright");
u(R, f, D, "“", "``", !0);
u(R, f, D, "“", "\\textquotedblleft");
u(R, f, D, "”", "''", !0);
u(R, f, D, "”", "\\textquotedblright");
u(c, f, D, "°", "\\degree", !0);
u(R, f, D, "°", "\\degree");
u(R, f, D, "°", "\\textdegree", !0);
u(c, f, D, "£", "\\pounds");
u(c, f, D, "£", "\\mathsterling", !0);
u(R, f, D, "£", "\\pounds");
u(R, f, D, "£", "\\textsterling", !0);
u(c, w, D, "✠", "\\maltese");
u(R, w, D, "✠", "\\maltese");
var Ki = '0123456789/@."';
for (var La = 0; La < Ki.length; La++) {
  var Qi = Ki.charAt(La);
  u(c, f, D, Qi, Qi);
}
var Ji = '0123456789!@*()-=+";:?/.,';
for (var Oa = 0; Oa < Ji.length; Oa++) {
  var $i = Ji.charAt(Oa);
  u(R, f, D, $i, $i);
}
var ca = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
for (var qa = 0; qa < ca.length; qa++) {
  var Cr = ca.charAt(qa);
  u(c, f, Z, Cr, Cr), u(R, f, D, Cr, Cr);
}
u(c, w, D, "C", "ℂ");
u(R, w, D, "C", "ℂ");
u(c, w, D, "H", "ℍ");
u(R, w, D, "H", "ℍ");
u(c, w, D, "N", "ℕ");
u(R, w, D, "N", "ℕ");
u(c, w, D, "P", "ℙ");
u(R, w, D, "P", "ℙ");
u(c, w, D, "Q", "ℚ");
u(R, w, D, "Q", "ℚ");
u(c, w, D, "R", "ℝ");
u(R, w, D, "R", "ℝ");
u(c, w, D, "Z", "ℤ");
u(R, w, D, "Z", "ℤ");
u(c, f, Z, "h", "ℎ");
u(R, f, Z, "h", "ℎ");
var J = "";
for (var Ie = 0; Ie < ca.length; Ie++) {
  var we = ca.charAt(Ie);
  J = String.fromCharCode(55349, 56320 + Ie), u(c, f, Z, we, J), u(R, f, D, we, J), J = String.fromCharCode(55349, 56372 + Ie), u(c, f, Z, we, J), u(R, f, D, we, J), J = String.fromCharCode(55349, 56424 + Ie), u(c, f, Z, we, J), u(R, f, D, we, J), J = String.fromCharCode(55349, 56580 + Ie), u(c, f, Z, we, J), u(R, f, D, we, J), J = String.fromCharCode(55349, 56684 + Ie), u(c, f, Z, we, J), u(R, f, D, we, J), J = String.fromCharCode(55349, 56736 + Ie), u(c, f, Z, we, J), u(R, f, D, we, J), J = String.fromCharCode(55349, 56788 + Ie), u(c, f, Z, we, J), u(R, f, D, we, J), J = String.fromCharCode(55349, 56840 + Ie), u(c, f, Z, we, J), u(R, f, D, we, J), J = String.fromCharCode(55349, 56944 + Ie), u(c, f, Z, we, J), u(R, f, D, we, J), Ie < 26 && (J = String.fromCharCode(55349, 56632 + Ie), u(c, f, Z, we, J), u(R, f, D, we, J), J = String.fromCharCode(55349, 56476 + Ie), u(c, f, Z, we, J), u(R, f, D, we, J));
}
J = "𝕜";
u(c, f, Z, "k", J);
u(R, f, D, "k", J);
for (var b0 = 0; b0 < 10; b0++) {
  var u0 = b0.toString();
  J = String.fromCharCode(55349, 57294 + b0), u(c, f, Z, u0, J), u(R, f, D, u0, J), J = String.fromCharCode(55349, 57314 + b0), u(c, f, Z, u0, J), u(R, f, D, u0, J), J = String.fromCharCode(55349, 57324 + b0), u(c, f, Z, u0, J), u(R, f, D, u0, J), J = String.fromCharCode(55349, 57334 + b0), u(c, f, Z, u0, J), u(R, f, D, u0, J);
}
var Dn = "ÐÞþ";
for (var Pa = 0; Pa < Dn.length; Pa++) {
  var Mr = Dn.charAt(Pa);
  u(c, f, Z, Mr, Mr), u(R, f, D, Mr, Mr);
}
var zr = [
  ["mathbf", "textbf", "Main-Bold"],
  // A-Z bold upright
  ["mathbf", "textbf", "Main-Bold"],
  // a-z bold upright
  ["mathnormal", "textit", "Math-Italic"],
  // A-Z italic
  ["mathnormal", "textit", "Math-Italic"],
  // a-z italic
  ["boldsymbol", "boldsymbol", "Main-BoldItalic"],
  // A-Z bold italic
  ["boldsymbol", "boldsymbol", "Main-BoldItalic"],
  // a-z bold italic
  // Map fancy A-Z letters to script, not calligraphic.
  // This aligns with unicode-math and math fonts (except Cambria Math).
  ["mathscr", "textscr", "Script-Regular"],
  // A-Z script
  ["", "", ""],
  // a-z script.  No font
  ["", "", ""],
  // A-Z bold script. No font
  ["", "", ""],
  // a-z bold script. No font
  ["mathfrak", "textfrak", "Fraktur-Regular"],
  // A-Z Fraktur
  ["mathfrak", "textfrak", "Fraktur-Regular"],
  // a-z Fraktur
  ["mathbb", "textbb", "AMS-Regular"],
  // A-Z double-struck
  ["mathbb", "textbb", "AMS-Regular"],
  // k double-struck
  // Note that we are using a bold font, but font metrics for regular Fraktur.
  ["mathboldfrak", "textboldfrak", "Fraktur-Regular"],
  // A-Z bold Fraktur
  ["mathboldfrak", "textboldfrak", "Fraktur-Regular"],
  // a-z bold Fraktur
  ["mathsf", "textsf", "SansSerif-Regular"],
  // A-Z sans-serif
  ["mathsf", "textsf", "SansSerif-Regular"],
  // a-z sans-serif
  ["mathboldsf", "textboldsf", "SansSerif-Bold"],
  // A-Z bold sans-serif
  ["mathboldsf", "textboldsf", "SansSerif-Bold"],
  // a-z bold sans-serif
  ["mathitsf", "textitsf", "SansSerif-Italic"],
  // A-Z italic sans-serif
  ["mathitsf", "textitsf", "SansSerif-Italic"],
  // a-z italic sans-serif
  ["", "", ""],
  // A-Z bold italic sans. No font
  ["", "", ""],
  // a-z bold italic sans. No font
  ["mathtt", "texttt", "Typewriter-Regular"],
  // A-Z monospace
  ["mathtt", "texttt", "Typewriter-Regular"]
  // a-z monospace
], el = [
  ["mathbf", "textbf", "Main-Bold"],
  // 0-9 bold
  ["", "", ""],
  // 0-9 double-struck. No KaTeX font.
  ["mathsf", "textsf", "SansSerif-Regular"],
  // 0-9 sans-serif
  ["mathboldsf", "textboldsf", "SansSerif-Bold"],
  // 0-9 bold sans-serif
  ["mathtt", "texttt", "Typewriter-Regular"]
  // 0-9 monospace
], ic = function(e, t) {
  var r = e.charCodeAt(0), n = e.charCodeAt(1), i = (r - 55296) * 1024 + (n - 56320) + 65536, l = t === "math" ? 0 : 1;
  if (119808 <= i && i < 120484) {
    var s = Math.floor((i - 119808) / 26);
    return [zr[s][2], zr[s][l]];
  } else if (120782 <= i && i <= 120831) {
    var o = Math.floor((i - 120782) / 10);
    return [el[o][2], el[o][l]];
  } else {
    if (i === 120485 || i === 120486)
      return [zr[0][2], zr[0][l]];
    if (120486 < i && i < 120782)
      return ["", ""];
    throw new O("Unsupported character: " + e);
  }
}, _a = function(e, t, r) {
  return me[r][e] && me[r][e].replace && (e = me[r][e].replace), {
    value: e,
    metrics: Yn(e, t, r)
  };
}, _t = function(e, t, r, n, i) {
  var l = _a(e, t, r), s = l.metrics;
  e = l.value;
  var o;
  if (s) {
    var h = s.italic;
    (r === "text" || n && n.font === "mathit") && (h = 0), o = new ut(e, s.height, s.depth, h, s.skew, s.width, i);
  } else
    typeof console < "u" && console.warn("No character metrics " + ("for '" + e + "' in style '" + t + "' and mode '" + r + "'")), o = new ut(e, 0, 0, 0, 0, 0, i);
  if (n) {
    o.maxFontSize = n.sizeMultiplier, n.style.isTight() && o.classes.push("mtight");
    var m = n.getColor();
    m && (o.style.color = m);
  }
  return o;
}, lc = function(e, t, r, n) {
  return n === void 0 && (n = []), r.font === "boldsymbol" && _a(e, "Main-Bold", t).metrics ? _t(e, "Main-Bold", t, r, n.concat(["mathbf"])) : e === "\\" || me[t][e].font === "main" ? _t(e, "Main-Regular", t, r, n) : _t(e, "AMS-Regular", t, r, n.concat(["amsrm"]));
}, sc = function(e, t, r, n, i) {
  return i !== "textord" && _a(e, "Math-BoldItalic", t).metrics ? {
    fontName: "Math-BoldItalic",
    fontClass: "boldsymbol"
  } : {
    fontName: "Main-Bold",
    fontClass: "mathbf"
  };
}, oc = function(e, t, r) {
  var n = e.mode, i = e.text, l = ["mord"], s = n === "math" || n === "text" && t.font, o = s ? t.font : t.fontFamily, h = "", m = "";
  if (i.charCodeAt(0) === 55349 && ([h, m] = ic(i, n)), h.length > 0)
    return _t(i, h, n, t, l.concat(m));
  if (o) {
    var d, g;
    if (o === "boldsymbol") {
      var v = sc(i, n, t, l, r);
      d = v.fontName, g = [v.fontClass];
    } else s ? (d = ho[o].fontName, g = [o]) : (d = Br(o, t.fontWeight, t.fontShape), g = [o, t.fontWeight, t.fontShape]);
    if (_a(i, d, n).metrics)
      return _t(i, d, n, t, l.concat(g));
    if (oo.hasOwnProperty(i) && d.slice(0, 10) === "Typewriter") {
      for (var y = [], x = 0; x < i.length; x++)
        y.push(_t(i[x], d, n, t, l.concat(g)));
      return co(y);
    }
  }
  if (r === "mathord")
    return _t(i, "Math-Italic", n, t, l.concat(["mathnormal"]));
  if (r === "textord") {
    var A = me[n][i] && me[n][i].font;
    if (A === "ams") {
      var T = Br("amsrm", t.fontWeight, t.fontShape);
      return _t(i, T, n, t, l.concat("amsrm", t.fontWeight, t.fontShape));
    } else if (A === "main" || !A) {
      var _ = Br("textrm", t.fontWeight, t.fontShape);
      return _t(i, _, n, t, l.concat(t.fontWeight, t.fontShape));
    } else {
      var b = Br(A, t.fontWeight, t.fontShape);
      return _t(i, b, n, t, l.concat(b, t.fontWeight, t.fontShape));
    }
  } else
    throw new Error("unexpected type: " + r + " in makeOrd");
}, uc = (a, e) => {
  if (d0(a.classes) !== d0(e.classes) || a.skew !== e.skew || a.maxFontSize !== e.maxFontSize)
    return !1;
  if (a.classes.length === 1) {
    var t = a.classes[0];
    if (t === "mbin" || t === "mord")
      return !1;
  }
  for (var r in a.style)
    if (a.style.hasOwnProperty(r) && a.style[r] !== e.style[r])
      return !1;
  for (var n in e.style)
    if (e.style.hasOwnProperty(n) && a.style[n] !== e.style[n])
      return !1;
  return !0;
}, cc = (a) => {
  for (var e = 0; e < a.length - 1; e++) {
    var t = a[e], r = a[e + 1];
    t instanceof ut && r instanceof ut && uc(t, r) && (t.text += r.text, t.height = Math.max(t.height, r.height), t.depth = Math.max(t.depth, r.depth), t.italic = r.italic, a.splice(e + 1, 1), e--);
  }
  return a;
}, Zn = function(e) {
  for (var t = 0, r = 0, n = 0, i = 0; i < e.children.length; i++) {
    var l = e.children[i];
    l.height > t && (t = l.height), l.depth > r && (r = l.depth), l.maxFontSize > n && (n = l.maxFontSize);
  }
  e.height = t, e.depth = r, e.maxFontSize = n;
}, Xe = function(e, t, r, n) {
  var i = new yr(e, t, r, n);
  return Zn(i), i;
}, uo = (a, e, t, r) => new yr(a, e, t, r), hc = function(e, t, r) {
  var n = Xe([e], [], t);
  return n.height = Math.max(r || t.fontMetrics().defaultRuleThickness, t.minRuleThickness), n.style.borderBottomWidth = H(n.height), n.maxFontSize = 1, n;
}, mc = function(e, t, r, n) {
  var i = new jn(e, t, r, n);
  return Zn(i), i;
}, co = function(e) {
  var t = new br(e);
  return Zn(t), t;
}, fc = function(e, t) {
  return e instanceof br ? Xe([], [e], t) : e;
}, dc = function(e) {
  if (e.positionType === "individualShift") {
    for (var t = e.children, r = [t[0]], n = -t[0].shift - t[0].elem.depth, i = n, l = 1; l < t.length; l++) {
      var s = -t[l].shift - i - t[l].elem.depth, o = s - (t[l - 1].elem.height + t[l - 1].elem.depth);
      i = i + s, r.push({
        type: "kern",
        size: o
      }), r.push(t[l]);
    }
    return {
      children: r,
      depth: n
    };
  }
  var h;
  if (e.positionType === "top") {
    for (var m = e.positionData, d = 0; d < e.children.length; d++) {
      var g = e.children[d];
      m -= g.type === "kern" ? g.size : g.elem.height + g.elem.depth;
    }
    h = m;
  } else if (e.positionType === "bottom")
    h = -e.positionData;
  else {
    var v = e.children[0];
    if (v.type !== "elem")
      throw new Error('First child must have type "elem".');
    if (e.positionType === "shift")
      h = -v.elem.depth - e.positionData;
    else if (e.positionType === "firstBaseline")
      h = -v.elem.depth;
    else
      throw new Error("Invalid positionType " + e.positionType + ".");
  }
  return {
    children: e.children,
    depth: h
  };
}, pc = function(e, t) {
  for (var {
    children: r,
    depth: n
  } = dc(e), i = 0, l = 0; l < r.length; l++) {
    var s = r[l];
    if (s.type === "elem") {
      var o = s.elem;
      i = Math.max(i, o.maxFontSize, o.height);
    }
  }
  i += 2;
  var h = Xe(["pstrut"], []);
  h.style.height = H(i);
  for (var m = [], d = n, g = n, v = n, y = 0; y < r.length; y++) {
    var x = r[y];
    if (x.type === "kern")
      v += x.size;
    else {
      var A = x.elem, T = x.wrapperClasses || [], _ = x.wrapperStyle || {}, b = Xe(T, [h, A], void 0, _);
      b.style.top = H(-i - v - A.depth), x.marginLeft && (b.style.marginLeft = x.marginLeft), x.marginRight && (b.style.marginRight = x.marginRight), m.push(b), v += A.height + A.depth;
    }
    d = Math.min(d, v), g = Math.max(g, v);
  }
  var E = Xe(["vlist"], m);
  E.style.height = H(g);
  var F;
  if (d < 0) {
    var M = Xe([], []), z = Xe(["vlist"], [M]);
    z.style.height = H(-d);
    var q = Xe(["vlist-s"], [new ut("​")]);
    F = [Xe(["vlist-r"], [E, q]), Xe(["vlist-r"], [z])];
  } else
    F = [Xe(["vlist-r"], [E])];
  var I = Xe(["vlist-t"], F);
  return F.length === 2 && I.classes.push("vlist-t2"), I.height = g, I.depth = -d, I;
}, gc = (a, e) => {
  var t = Xe(["mspace"], [], e), r = ve(a, e);
  return t.style.marginRight = H(r), t;
}, Br = function(e, t, r) {
  var n = "";
  switch (e) {
    case "amsrm":
      n = "AMS";
      break;
    case "textrm":
      n = "Main";
      break;
    case "textsf":
      n = "SansSerif";
      break;
    case "texttt":
      n = "Typewriter";
      break;
    default:
      n = e;
  }
  var i;
  return t === "textbf" && r === "textit" ? i = "BoldItalic" : t === "textbf" ? i = "Bold" : t === "textit" ? i = "Italic" : i = "Regular", n + "-" + i;
}, ho = {
  // styles
  mathbf: {
    variant: "bold",
    fontName: "Main-Bold"
  },
  mathrm: {
    variant: "normal",
    fontName: "Main-Regular"
  },
  textit: {
    variant: "italic",
    fontName: "Main-Italic"
  },
  mathit: {
    variant: "italic",
    fontName: "Main-Italic"
  },
  mathnormal: {
    variant: "italic",
    fontName: "Math-Italic"
  },
  mathsfit: {
    variant: "sans-serif-italic",
    fontName: "SansSerif-Italic"
  },
  // "boldsymbol" is missing because they require the use of multiple fonts:
  // Math-BoldItalic and Main-Bold.  This is handled by a special case in
  // makeOrd which ends up calling boldsymbol.
  // families
  mathbb: {
    variant: "double-struck",
    fontName: "AMS-Regular"
  },
  mathcal: {
    variant: "script",
    fontName: "Caligraphic-Regular"
  },
  mathfrak: {
    variant: "fraktur",
    fontName: "Fraktur-Regular"
  },
  mathscr: {
    variant: "script",
    fontName: "Script-Regular"
  },
  mathsf: {
    variant: "sans-serif",
    fontName: "SansSerif-Regular"
  },
  mathtt: {
    variant: "monospace",
    fontName: "Typewriter-Regular"
  }
}, mo = {
  //   path, width, height
  vec: ["vec", 0.471, 0.714],
  // values from the font glyph
  oiintSize1: ["oiintSize1", 0.957, 0.499],
  // oval to overlay the integrand
  oiintSize2: ["oiintSize2", 1.472, 0.659],
  oiiintSize1: ["oiiintSize1", 1.304, 0.499],
  oiiintSize2: ["oiiintSize2", 1.98, 0.659]
}, vc = function(e, t) {
  var [r, n, i] = mo[e], l = new p0(r), s = new n0([l], {
    width: H(n),
    height: H(i),
    // Override CSS rule `.katex svg { width: 100% }`
    style: "width:" + H(n),
    viewBox: "0 0 " + 1e3 * n + " " + 1e3 * i,
    preserveAspectRatio: "xMinYMin"
  }), o = uo(["overlay"], [s], t);
  return o.height = i, o.style.height = H(i), o.style.width = H(n), o;
}, C = {
  fontMap: ho,
  makeSymbol: _t,
  mathsym: lc,
  makeSpan: Xe,
  makeSvgSpan: uo,
  makeLineSpan: hc,
  makeAnchor: mc,
  makeFragment: co,
  wrapFragment: fc,
  makeVList: pc,
  makeOrd: oc,
  makeGlue: gc,
  staticSvg: vc,
  svgData: mo,
  tryCombineChars: cc
}, ge = {
  number: 3,
  unit: "mu"
}, y0 = {
  number: 4,
  unit: "mu"
}, Jt = {
  number: 5,
  unit: "mu"
}, bc = {
  mord: {
    mop: ge,
    mbin: y0,
    mrel: Jt,
    minner: ge
  },
  mop: {
    mord: ge,
    mop: ge,
    mrel: Jt,
    minner: ge
  },
  mbin: {
    mord: y0,
    mop: y0,
    mopen: y0,
    minner: y0
  },
  mrel: {
    mord: Jt,
    mop: Jt,
    mopen: Jt,
    minner: Jt
  },
  mopen: {},
  mclose: {
    mop: ge,
    mbin: y0,
    mrel: Jt,
    minner: ge
  },
  mpunct: {
    mord: ge,
    mop: ge,
    mrel: Jt,
    mopen: ge,
    mclose: ge,
    mpunct: ge,
    minner: ge
  },
  minner: {
    mord: ge,
    mop: ge,
    mbin: y0,
    mrel: Jt,
    mopen: ge,
    mpunct: ge,
    minner: ge
  }
}, yc = {
  mord: {
    mop: ge
  },
  mop: {
    mord: ge,
    mop: ge
  },
  mbin: {},
  mrel: {},
  mopen: {},
  mclose: {
    mop: ge
  },
  mpunct: {},
  minner: {
    mop: ge
  }
}, fo = {}, ha = {}, ma = {};
function G(a) {
  for (var {
    type: e,
    names: t,
    props: r,
    handler: n,
    htmlBuilder: i,
    mathmlBuilder: l
  } = a, s = {
    type: e,
    numArgs: r.numArgs,
    argTypes: r.argTypes,
    allowedInArgument: !!r.allowedInArgument,
    allowedInText: !!r.allowedInText,
    allowedInMath: r.allowedInMath === void 0 ? !0 : r.allowedInMath,
    numOptionalArgs: r.numOptionalArgs || 0,
    infix: !!r.infix,
    primitive: !!r.primitive,
    handler: n
  }, o = 0; o < t.length; ++o)
    fo[t[o]] = s;
  e && (i && (ha[e] = i), l && (ma[e] = l));
}
function E0(a) {
  var {
    type: e,
    htmlBuilder: t,
    mathmlBuilder: r
  } = a;
  G({
    type: e,
    names: [],
    props: {
      numArgs: 0
    },
    handler() {
      throw new Error("Should never be called.");
    },
    htmlBuilder: t,
    mathmlBuilder: r
  });
}
var fa = function(e) {
  return e.type === "ordgroup" && e.body.length === 1 ? e.body[0] : e;
}, Ae = function(e) {
  return e.type === "ordgroup" ? e.body : [e];
}, i0 = C.makeSpan, wc = ["leftmost", "mbin", "mopen", "mrel", "mop", "mpunct"], kc = ["rightmost", "mrel", "mclose", "mpunct"], xc = {
  display: K.DISPLAY,
  text: K.TEXT,
  script: K.SCRIPT,
  scriptscript: K.SCRIPTSCRIPT
}, _c = {
  mord: "mord",
  mop: "mop",
  mbin: "mbin",
  mrel: "mrel",
  mopen: "mopen",
  mclose: "mclose",
  mpunct: "mpunct",
  minner: "minner"
}, Fe = function(e, t, r, n) {
  n === void 0 && (n = [null, null]);
  for (var i = [], l = 0; l < e.length; l++) {
    var s = ne(e[l], t);
    if (s instanceof br) {
      var o = s.children;
      i.push(...o);
    } else
      i.push(s);
  }
  if (C.tryCombineChars(i), !r)
    return i;
  var h = t;
  if (e.length === 1) {
    var m = e[0];
    m.type === "sizing" ? h = t.havingSize(m.size) : m.type === "styling" && (h = t.havingStyle(xc[m.style]));
  }
  var d = i0([n[0] || "leftmost"], [], t), g = i0([n[1] || "rightmost"], [], t), v = r === "root";
  return tl(i, (y, x) => {
    var A = x.classes[0], T = y.classes[0];
    A === "mbin" && Y.contains(kc, T) ? x.classes[0] = "mord" : T === "mbin" && Y.contains(wc, A) && (y.classes[0] = "mord");
  }, {
    node: d
  }, g, v), tl(i, (y, x) => {
    var A = An(x), T = An(y), _ = A && T ? y.hasClass("mtight") ? yc[A][T] : bc[A][T] : null;
    if (_)
      return C.makeGlue(_, h);
  }, {
    node: d
  }, g, v), i;
}, tl = function a(e, t, r, n, i) {
  n && e.push(n);
  for (var l = 0; l < e.length; l++) {
    var s = e[l], o = po(s);
    if (o) {
      a(o.children, t, r, null, i);
      continue;
    }
    var h = !s.hasClass("mspace");
    if (h) {
      var m = t(s, r.node);
      m && (r.insertAfter ? r.insertAfter(m) : (e.unshift(m), l++));
    }
    h ? r.node = s : i && s.hasClass("newline") && (r.node = i0(["leftmost"])), r.insertAfter = /* @__PURE__ */ ((d) => (g) => {
      e.splice(d + 1, 0, g), l++;
    })(l);
  }
  n && e.pop();
}, po = function(e) {
  return e instanceof br || e instanceof jn || e instanceof yr && e.hasClass("enclosing") ? e : null;
}, Dc = function a(e, t) {
  var r = po(e);
  if (r) {
    var n = r.children;
    if (n.length) {
      if (t === "right")
        return a(n[n.length - 1], "right");
      if (t === "left")
        return a(n[0], "left");
    }
  }
  return e;
}, An = function(e, t) {
  return e ? (t && (e = Dc(e, t)), _c[e.classes[0]] || null) : null;
}, vr = function(e, t) {
  var r = ["nulldelimiter"].concat(e.baseSizingClasses());
  return i0(t.concat(r));
}, ne = function(e, t, r) {
  if (!e)
    return i0();
  if (ha[e.type]) {
    var n = ha[e.type](e, t);
    if (r && t.size !== r.size) {
      n = i0(t.sizingClasses(r), [n], t);
      var i = t.sizeMultiplier / r.sizeMultiplier;
      n.height *= i, n.depth *= i;
    }
    return n;
  } else
    throw new O("Got group of unknown type: '" + e.type + "'");
};
function Nr(a, e) {
  var t = i0(["base"], a, e), r = i0(["strut"]);
  return r.style.height = H(t.height + t.depth), t.depth && (r.style.verticalAlign = H(-t.depth)), t.children.unshift(r), t;
}
function Sn(a, e) {
  var t = null;
  a.length === 1 && a[0].type === "tag" && (t = a[0].tag, a = a[0].body);
  var r = Fe(a, e, "root"), n;
  r.length === 2 && r[1].hasClass("tag") && (n = r.pop());
  for (var i = [], l = [], s = 0; s < r.length; s++)
    if (l.push(r[s]), r[s].hasClass("mbin") || r[s].hasClass("mrel") || r[s].hasClass("allowbreak")) {
      for (var o = !1; s < r.length - 1 && r[s + 1].hasClass("mspace") && !r[s + 1].hasClass("newline"); )
        s++, l.push(r[s]), r[s].hasClass("nobreak") && (o = !0);
      o || (i.push(Nr(l, e)), l = []);
    } else r[s].hasClass("newline") && (l.pop(), l.length > 0 && (i.push(Nr(l, e)), l = []), i.push(r[s]));
  l.length > 0 && i.push(Nr(l, e));
  var h;
  t ? (h = Nr(Fe(t, e, !0)), h.classes = ["tag"], i.push(h)) : n && i.push(n);
  var m = i0(["katex-html"], i);
  if (m.setAttribute("aria-hidden", "true"), h) {
    var d = h.children[0];
    d.style.height = H(m.height + m.depth), m.depth && (d.style.verticalAlign = H(-m.depth));
  }
  return m;
}
function go(a) {
  return new br(a);
}
class et {
  constructor(e, t, r) {
    this.type = void 0, this.attributes = void 0, this.children = void 0, this.classes = void 0, this.type = e, this.attributes = {}, this.children = t || [], this.classes = r || [];
  }
  /**
   * Sets an attribute on a MathML node. MathML depends on attributes to convey a
   * semantic content, so this is used heavily.
   */
  setAttribute(e, t) {
    this.attributes[e] = t;
  }
  /**
   * Gets an attribute on a MathML node.
   */
  getAttribute(e) {
    return this.attributes[e];
  }
  /**
   * Converts the math node into a MathML-namespaced DOM element.
   */
  toNode() {
    var e = document.createElementNS("http://www.w3.org/1998/Math/MathML", this.type);
    for (var t in this.attributes)
      Object.prototype.hasOwnProperty.call(this.attributes, t) && e.setAttribute(t, this.attributes[t]);
    this.classes.length > 0 && (e.className = d0(this.classes));
    for (var r = 0; r < this.children.length; r++)
      if (this.children[r] instanceof It && this.children[r + 1] instanceof It) {
        for (var n = this.children[r].toText() + this.children[++r].toText(); this.children[r + 1] instanceof It; )
          n += this.children[++r].toText();
        e.appendChild(new It(n).toNode());
      } else
        e.appendChild(this.children[r].toNode());
    return e;
  }
  /**
   * Converts the math node into an HTML markup string.
   */
  toMarkup() {
    var e = "<" + this.type;
    for (var t in this.attributes)
      Object.prototype.hasOwnProperty.call(this.attributes, t) && (e += " " + t + '="', e += Y.escape(this.attributes[t]), e += '"');
    this.classes.length > 0 && (e += ' class ="' + Y.escape(d0(this.classes)) + '"'), e += ">";
    for (var r = 0; r < this.children.length; r++)
      e += this.children[r].toMarkup();
    return e += "</" + this.type + ">", e;
  }
  /**
   * Converts the math node into a string, similar to innerText, but escaped.
   */
  toText() {
    return this.children.map((e) => e.toText()).join("");
  }
}
class It {
  constructor(e) {
    this.text = void 0, this.text = e;
  }
  /**
   * Converts the text node into a DOM text node.
   */
  toNode() {
    return document.createTextNode(this.text);
  }
  /**
   * Converts the text node into escaped HTML markup
   * (representing the text itself).
   */
  toMarkup() {
    return Y.escape(this.toText());
  }
  /**
   * Converts the text node into a string
   * (representing the text itself).
   */
  toText() {
    return this.text;
  }
}
class Ac {
  /**
   * Create a Space node with width given in CSS ems.
   */
  constructor(e) {
    this.width = void 0, this.character = void 0, this.width = e, e >= 0.05555 && e <= 0.05556 ? this.character = " " : e >= 0.1666 && e <= 0.1667 ? this.character = " " : e >= 0.2222 && e <= 0.2223 ? this.character = " " : e >= 0.2777 && e <= 0.2778 ? this.character = "  " : e >= -0.05556 && e <= -0.05555 ? this.character = " ⁣" : e >= -0.1667 && e <= -0.1666 ? this.character = " ⁣" : e >= -0.2223 && e <= -0.2222 ? this.character = " ⁣" : e >= -0.2778 && e <= -0.2777 ? this.character = " ⁣" : this.character = null;
  }
  /**
   * Converts the math node into a MathML-namespaced DOM element.
   */
  toNode() {
    if (this.character)
      return document.createTextNode(this.character);
    var e = document.createElementNS("http://www.w3.org/1998/Math/MathML", "mspace");
    return e.setAttribute("width", H(this.width)), e;
  }
  /**
   * Converts the math node into an HTML markup string.
   */
  toMarkup() {
    return this.character ? "<mtext>" + this.character + "</mtext>" : '<mspace width="' + H(this.width) + '"/>';
  }
  /**
   * Converts the math node into a string, similar to innerText.
   */
  toText() {
    return this.character ? this.character : " ";
  }
}
var L = {
  MathNode: et,
  TextNode: It,
  SpaceNode: Ac,
  newDocumentFragment: go
}, ct = function(e, t, r) {
  return me[t][e] && me[t][e].replace && e.charCodeAt(0) !== 55349 && !(oo.hasOwnProperty(e) && r && (r.fontFamily && r.fontFamily.slice(4, 6) === "tt" || r.font && r.font.slice(4, 6) === "tt")) && (e = me[t][e].replace), new L.TextNode(e);
}, Kn = function(e) {
  return e.length === 1 ? e[0] : new L.MathNode("mrow", e);
}, Qn = function(e, t) {
  if (t.fontFamily === "texttt")
    return "monospace";
  if (t.fontFamily === "textsf")
    return t.fontShape === "textit" && t.fontWeight === "textbf" ? "sans-serif-bold-italic" : t.fontShape === "textit" ? "sans-serif-italic" : t.fontWeight === "textbf" ? "bold-sans-serif" : "sans-serif";
  if (t.fontShape === "textit" && t.fontWeight === "textbf")
    return "bold-italic";
  if (t.fontShape === "textit")
    return "italic";
  if (t.fontWeight === "textbf")
    return "bold";
  var r = t.font;
  if (!r || r === "mathnormal")
    return null;
  var n = e.mode;
  if (r === "mathit")
    return "italic";
  if (r === "boldsymbol")
    return e.type === "textord" ? "bold" : "bold-italic";
  if (r === "mathbf")
    return "bold";
  if (r === "mathbb")
    return "double-struck";
  if (r === "mathsfit")
    return "sans-serif-italic";
  if (r === "mathfrak")
    return "fraktur";
  if (r === "mathscr" || r === "mathcal")
    return "script";
  if (r === "mathsf")
    return "sans-serif";
  if (r === "mathtt")
    return "monospace";
  var i = e.text;
  if (Y.contains(["\\imath", "\\jmath"], i))
    return null;
  me[n][i] && me[n][i].replace && (i = me[n][i].replace);
  var l = C.fontMap[r].fontName;
  return Yn(i, l, n) ? C.fontMap[r].variant : null;
};
function Ha(a) {
  if (!a)
    return !1;
  if (a.type === "mi" && a.children.length === 1) {
    var e = a.children[0];
    return e instanceof It && e.text === ".";
  } else if (a.type === "mo" && a.children.length === 1 && a.getAttribute("separator") === "true" && a.getAttribute("lspace") === "0em" && a.getAttribute("rspace") === "0em") {
    var t = a.children[0];
    return t instanceof It && t.text === ",";
  } else
    return !1;
}
var Ye = function(e, t, r) {
  if (e.length === 1) {
    var n = he(e[0], t);
    return r && n instanceof et && n.type === "mo" && (n.setAttribute("lspace", "0em"), n.setAttribute("rspace", "0em")), [n];
  }
  for (var i = [], l, s = 0; s < e.length; s++) {
    var o = he(e[s], t);
    if (o instanceof et && l instanceof et) {
      if (o.type === "mtext" && l.type === "mtext" && o.getAttribute("mathvariant") === l.getAttribute("mathvariant")) {
        l.children.push(...o.children);
        continue;
      } else if (o.type === "mn" && l.type === "mn") {
        l.children.push(...o.children);
        continue;
      } else if (Ha(o) && l.type === "mn") {
        l.children.push(...o.children);
        continue;
      } else if (o.type === "mn" && Ha(l))
        o.children = [...l.children, ...o.children], i.pop();
      else if ((o.type === "msup" || o.type === "msub") && o.children.length >= 1 && (l.type === "mn" || Ha(l))) {
        var h = o.children[0];
        h instanceof et && h.type === "mn" && (h.children = [...l.children, ...h.children], i.pop());
      } else if (l.type === "mi" && l.children.length === 1) {
        var m = l.children[0];
        if (m instanceof It && m.text === "̸" && (o.type === "mo" || o.type === "mi" || o.type === "mn")) {
          var d = o.children[0];
          d instanceof It && d.text.length > 0 && (d.text = d.text.slice(0, 1) + "̸" + d.text.slice(1), i.pop());
        }
      }
    }
    i.push(o), l = o;
  }
  return i;
}, g0 = function(e, t, r) {
  return Kn(Ye(e, t, r));
}, he = function(e, t) {
  if (!e)
    return new L.MathNode("mrow");
  if (ma[e.type]) {
    var r = ma[e.type](e, t);
    return r;
  } else
    throw new O("Got group of unknown type: '" + e.type + "'");
};
function rl(a, e, t, r, n) {
  var i = Ye(a, t), l;
  i.length === 1 && i[0] instanceof et && Y.contains(["mrow", "mtable"], i[0].type) ? l = i[0] : l = new L.MathNode("mrow", i);
  var s = new L.MathNode("annotation", [new L.TextNode(e)]);
  s.setAttribute("encoding", "application/x-tex");
  var o = new L.MathNode("semantics", [l, s]), h = new L.MathNode("math", [o]);
  h.setAttribute("xmlns", "http://www.w3.org/1998/Math/MathML"), r && h.setAttribute("display", "block");
  var m = n ? "katex" : "katex-mathml";
  return C.makeSpan([m], [h]);
}
var vo = function(e) {
  return new t0({
    style: e.displayMode ? K.DISPLAY : K.TEXT,
    maxSize: e.maxSize,
    minRuleThickness: e.minRuleThickness
  });
}, bo = function(e, t) {
  if (t.displayMode) {
    var r = ["katex-display"];
    t.leqno && r.push("leqno"), t.fleqn && r.push("fleqn"), e = C.makeSpan(r, [e]);
  }
  return e;
}, Sc = function(e, t, r) {
  var n = vo(r), i;
  if (r.output === "mathml")
    return rl(e, t, n, r.displayMode, !0);
  if (r.output === "html") {
    var l = Sn(e, n);
    i = C.makeSpan(["katex"], [l]);
  } else {
    var s = rl(e, t, n, r.displayMode, !1), o = Sn(e, n);
    i = C.makeSpan(["katex"], [s, o]);
  }
  return bo(i, r);
}, Ec = function(e, t, r) {
  var n = vo(r), i = Sn(e, n), l = C.makeSpan(["katex"], [i]);
  return bo(l, r);
}, Fc = {
  widehat: "^",
  widecheck: "ˇ",
  widetilde: "~",
  utilde: "~",
  overleftarrow: "←",
  underleftarrow: "←",
  xleftarrow: "←",
  overrightarrow: "→",
  underrightarrow: "→",
  xrightarrow: "→",
  underbrace: "⏟",
  overbrace: "⏞",
  overgroup: "⏠",
  undergroup: "⏡",
  overleftrightarrow: "↔",
  underleftrightarrow: "↔",
  xleftrightarrow: "↔",
  Overrightarrow: "⇒",
  xRightarrow: "⇒",
  overleftharpoon: "↼",
  xleftharpoonup: "↼",
  overrightharpoon: "⇀",
  xrightharpoonup: "⇀",
  xLeftarrow: "⇐",
  xLeftrightarrow: "⇔",
  xhookleftarrow: "↩",
  xhookrightarrow: "↪",
  xmapsto: "↦",
  xrightharpoondown: "⇁",
  xleftharpoondown: "↽",
  xrightleftharpoons: "⇌",
  xleftrightharpoons: "⇋",
  xtwoheadleftarrow: "↞",
  xtwoheadrightarrow: "↠",
  xlongequal: "=",
  xtofrom: "⇄",
  xrightleftarrows: "⇄",
  xrightequilibrium: "⇌",
  // Not a perfect match.
  xleftequilibrium: "⇋",
  // None better available.
  "\\cdrightarrow": "→",
  "\\cdleftarrow": "←",
  "\\cdlongequal": "="
}, Tc = function(e) {
  var t = new L.MathNode("mo", [new L.TextNode(Fc[e.replace(/^\\/, "")])]);
  return t.setAttribute("stretchy", "true"), t;
}, Cc = {
  //   path(s), minWidth, height, align
  overrightarrow: [["rightarrow"], 0.888, 522, "xMaxYMin"],
  overleftarrow: [["leftarrow"], 0.888, 522, "xMinYMin"],
  underrightarrow: [["rightarrow"], 0.888, 522, "xMaxYMin"],
  underleftarrow: [["leftarrow"], 0.888, 522, "xMinYMin"],
  xrightarrow: [["rightarrow"], 1.469, 522, "xMaxYMin"],
  "\\cdrightarrow": [["rightarrow"], 3, 522, "xMaxYMin"],
  // CD minwwidth2.5pc
  xleftarrow: [["leftarrow"], 1.469, 522, "xMinYMin"],
  "\\cdleftarrow": [["leftarrow"], 3, 522, "xMinYMin"],
  Overrightarrow: [["doublerightarrow"], 0.888, 560, "xMaxYMin"],
  xRightarrow: [["doublerightarrow"], 1.526, 560, "xMaxYMin"],
  xLeftarrow: [["doubleleftarrow"], 1.526, 560, "xMinYMin"],
  overleftharpoon: [["leftharpoon"], 0.888, 522, "xMinYMin"],
  xleftharpoonup: [["leftharpoon"], 0.888, 522, "xMinYMin"],
  xleftharpoondown: [["leftharpoondown"], 0.888, 522, "xMinYMin"],
  overrightharpoon: [["rightharpoon"], 0.888, 522, "xMaxYMin"],
  xrightharpoonup: [["rightharpoon"], 0.888, 522, "xMaxYMin"],
  xrightharpoondown: [["rightharpoondown"], 0.888, 522, "xMaxYMin"],
  xlongequal: [["longequal"], 0.888, 334, "xMinYMin"],
  "\\cdlongequal": [["longequal"], 3, 334, "xMinYMin"],
  xtwoheadleftarrow: [["twoheadleftarrow"], 0.888, 334, "xMinYMin"],
  xtwoheadrightarrow: [["twoheadrightarrow"], 0.888, 334, "xMaxYMin"],
  overleftrightarrow: [["leftarrow", "rightarrow"], 0.888, 522],
  overbrace: [["leftbrace", "midbrace", "rightbrace"], 1.6, 548],
  underbrace: [["leftbraceunder", "midbraceunder", "rightbraceunder"], 1.6, 548],
  underleftrightarrow: [["leftarrow", "rightarrow"], 0.888, 522],
  xleftrightarrow: [["leftarrow", "rightarrow"], 1.75, 522],
  xLeftrightarrow: [["doubleleftarrow", "doublerightarrow"], 1.75, 560],
  xrightleftharpoons: [["leftharpoondownplus", "rightharpoonplus"], 1.75, 716],
  xleftrightharpoons: [["leftharpoonplus", "rightharpoondownplus"], 1.75, 716],
  xhookleftarrow: [["leftarrow", "righthook"], 1.08, 522],
  xhookrightarrow: [["lefthook", "rightarrow"], 1.08, 522],
  overlinesegment: [["leftlinesegment", "rightlinesegment"], 0.888, 522],
  underlinesegment: [["leftlinesegment", "rightlinesegment"], 0.888, 522],
  overgroup: [["leftgroup", "rightgroup"], 0.888, 342],
  undergroup: [["leftgroupunder", "rightgroupunder"], 0.888, 342],
  xmapsto: [["leftmapsto", "rightarrow"], 1.5, 522],
  xtofrom: [["leftToFrom", "rightToFrom"], 1.75, 528],
  // The next three arrows are from the mhchem package.
  // In mhchem.sty, min-length is 2.0em. But these arrows might appear in the
  // document as \xrightarrow or \xrightleftharpoons. Those have
  // min-length = 1.75em, so we set min-length on these next three to match.
  xrightleftarrows: [["baraboveleftarrow", "rightarrowabovebar"], 1.75, 901],
  xrightequilibrium: [["baraboveshortleftharpoon", "rightharpoonaboveshortbar"], 1.75, 716],
  xleftequilibrium: [["shortbaraboveleftharpoon", "shortrightharpoonabovebar"], 1.75, 716]
}, Mc = function(e) {
  return e.type === "ordgroup" ? e.body.length : 1;
}, zc = function(e, t) {
  function r() {
    var s = 4e5, o = e.label.slice(1);
    if (Y.contains(["widehat", "widecheck", "widetilde", "utilde"], o)) {
      var h = e, m = Mc(h.base), d, g, v;
      if (m > 5)
        o === "widehat" || o === "widecheck" ? (d = 420, s = 2364, v = 0.42, g = o + "4") : (d = 312, s = 2340, v = 0.34, g = "tilde4");
      else {
        var y = [1, 1, 2, 2, 3, 3][m];
        o === "widehat" || o === "widecheck" ? (s = [0, 1062, 2364, 2364, 2364][y], d = [0, 239, 300, 360, 420][y], v = [0, 0.24, 0.3, 0.3, 0.36, 0.42][y], g = o + y) : (s = [0, 600, 1033, 2339, 2340][y], d = [0, 260, 286, 306, 312][y], v = [0, 0.26, 0.286, 0.3, 0.306, 0.34][y], g = "tilde" + y);
      }
      var x = new p0(g), A = new n0([x], {
        width: "100%",
        height: H(v),
        viewBox: "0 0 " + s + " " + d,
        preserveAspectRatio: "none"
      });
      return {
        span: C.makeSvgSpan([], [A], t),
        minWidth: 0,
        height: v
      };
    } else {
      var T = [], _ = Cc[o], [b, E, F] = _, M = F / 1e3, z = b.length, q, I;
      if (z === 1) {
        var B = _[3];
        q = ["hide-tail"], I = [B];
      } else if (z === 2)
        q = ["halfarrow-left", "halfarrow-right"], I = ["xMinYMin", "xMaxYMin"];
      else if (z === 3)
        q = ["brace-left", "brace-center", "brace-right"], I = ["xMinYMin", "xMidYMin", "xMaxYMin"];
      else
        throw new Error(`Correct katexImagesData or update code here to support
                    ` + z + " children.");
      for (var N = 0; N < z; N++) {
        var Q = new p0(b[N]), ke = new n0([Q], {
          width: "400em",
          height: H(M),
          viewBox: "0 0 " + s + " " + F,
          preserveAspectRatio: I[N] + " slice"
        }), ie = C.makeSvgSpan([q[N]], [ke], t);
        if (z === 1)
          return {
            span: ie,
            minWidth: E,
            height: M
          };
        ie.style.height = H(M), T.push(ie);
      }
      return {
        span: C.makeSpan(["stretchy"], T, t),
        minWidth: E,
        height: M
      };
    }
  }
  var {
    span: n,
    minWidth: i,
    height: l
  } = r();
  return n.height = l, n.style.height = H(l), i > 0 && (n.style.minWidth = H(i)), n;
}, Bc = function(e, t, r, n, i) {
  var l, s = e.height + e.depth + r + n;
  if (/fbox|color|angl/.test(t)) {
    if (l = C.makeSpan(["stretchy", t], [], i), t === "fbox") {
      var o = i.color && i.getColor();
      o && (l.style.borderColor = o);
    }
  } else {
    var h = [];
    /^[bx]cancel$/.test(t) && h.push(new _n({
      x1: "0",
      y1: "0",
      x2: "100%",
      y2: "100%",
      "stroke-width": "0.046em"
    })), /^x?cancel$/.test(t) && h.push(new _n({
      x1: "0",
      y1: "100%",
      x2: "100%",
      y2: "0",
      "stroke-width": "0.046em"
    }));
    var m = new n0(h, {
      width: "100%",
      height: H(s)
    });
    l = C.makeSvgSpan([], [m], i);
  }
  return l.height = s, l.style.height = H(s), l;
}, l0 = {
  encloseSpan: Bc,
  mathMLnode: Tc,
  svgSpan: zc
};
function ee(a, e) {
  if (!a || a.type !== e)
    throw new Error("Expected node of type " + e + ", but got " + (a ? "node of type " + a.type : String(a)));
  return a;
}
function Jn(a) {
  var e = Da(a);
  if (!e)
    throw new Error("Expected node of symbol group type, but got " + (a ? "node of type " + a.type : String(a)));
  return e;
}
function Da(a) {
  return a && (a.type === "atom" || nc.hasOwnProperty(a.type)) ? a : null;
}
var $n = (a, e) => {
  var t, r, n;
  a && a.type === "supsub" ? (r = ee(a.base, "accent"), t = r.base, a.base = t, n = rc(ne(a, e)), a.base = r) : (r = ee(a, "accent"), t = r.base);
  var i = ne(t, e.havingCrampedStyle()), l = r.isShifty && Y.isCharacterBox(t), s = 0;
  if (l) {
    var o = Y.getBaseElem(t), h = ne(o, e.havingCrampedStyle());
    s = Zi(h).skew;
  }
  var m = r.label === "\\c", d = m ? i.height + i.depth : Math.min(i.height, e.fontMetrics().xHeight), g;
  if (r.isStretchy)
    g = l0.svgSpan(r, e), g = C.makeVList({
      positionType: "firstBaseline",
      children: [{
        type: "elem",
        elem: i
      }, {
        type: "elem",
        elem: g,
        wrapperClasses: ["svg-align"],
        wrapperStyle: s > 0 ? {
          width: "calc(100% - " + H(2 * s) + ")",
          marginLeft: H(2 * s)
        } : void 0
      }]
    }, e);
  else {
    var v, y;
    r.label === "\\vec" ? (v = C.staticSvg("vec", e), y = C.svgData.vec[1]) : (v = C.makeOrd({
      mode: r.mode,
      text: r.label
    }, e, "textord"), v = Zi(v), v.italic = 0, y = v.width, m && (d += v.depth)), g = C.makeSpan(["accent-body"], [v]);
    var x = r.label === "\\textcircled";
    x && (g.classes.push("accent-full"), d = i.height);
    var A = s;
    x || (A -= y / 2), g.style.left = H(A), r.label === "\\textcircled" && (g.style.top = ".2em"), g = C.makeVList({
      positionType: "firstBaseline",
      children: [{
        type: "elem",
        elem: i
      }, {
        type: "kern",
        size: -d
      }, {
        type: "elem",
        elem: g
      }]
    }, e);
  }
  var T = C.makeSpan(["mord", "accent"], [g], e);
  return n ? (n.children[0] = T, n.height = Math.max(T.height, n.height), n.classes[0] = "mord", n) : T;
}, yo = (a, e) => {
  var t = a.isStretchy ? l0.mathMLnode(a.label) : new L.MathNode("mo", [ct(a.label, a.mode)]), r = new L.MathNode("mover", [he(a.base, e), t]);
  return r.setAttribute("accent", "true"), r;
}, Nc = new RegExp(["\\acute", "\\grave", "\\ddot", "\\tilde", "\\bar", "\\breve", "\\check", "\\hat", "\\vec", "\\dot", "\\mathring"].map((a) => "\\" + a).join("|"));
G({
  type: "accent",
  names: ["\\acute", "\\grave", "\\ddot", "\\tilde", "\\bar", "\\breve", "\\check", "\\hat", "\\vec", "\\dot", "\\mathring", "\\widecheck", "\\widehat", "\\widetilde", "\\overrightarrow", "\\overleftarrow", "\\Overrightarrow", "\\overleftrightarrow", "\\overgroup", "\\overlinesegment", "\\overleftharpoon", "\\overrightharpoon"],
  props: {
    numArgs: 1
  },
  handler: (a, e) => {
    var t = fa(e[0]), r = !Nc.test(a.funcName), n = !r || a.funcName === "\\widehat" || a.funcName === "\\widetilde" || a.funcName === "\\widecheck";
    return {
      type: "accent",
      mode: a.parser.mode,
      label: a.funcName,
      isStretchy: r,
      isShifty: n,
      base: t
    };
  },
  htmlBuilder: $n,
  mathmlBuilder: yo
});
G({
  type: "accent",
  names: ["\\'", "\\`", "\\^", "\\~", "\\=", "\\u", "\\.", '\\"', "\\c", "\\r", "\\H", "\\v", "\\textcircled"],
  props: {
    numArgs: 1,
    allowedInText: !0,
    allowedInMath: !0,
    // unless in strict mode
    argTypes: ["primitive"]
  },
  handler: (a, e) => {
    var t = e[0], r = a.parser.mode;
    return r === "math" && (a.parser.settings.reportNonstrict("mathVsTextAccents", "LaTeX's accent " + a.funcName + " works only in text mode"), r = "text"), {
      type: "accent",
      mode: r,
      label: a.funcName,
      isStretchy: !1,
      isShifty: !0,
      base: t
    };
  },
  htmlBuilder: $n,
  mathmlBuilder: yo
});
G({
  type: "accentUnder",
  names: ["\\underleftarrow", "\\underrightarrow", "\\underleftrightarrow", "\\undergroup", "\\underlinesegment", "\\utilde"],
  props: {
    numArgs: 1
  },
  handler: (a, e) => {
    var {
      parser: t,
      funcName: r
    } = a, n = e[0];
    return {
      type: "accentUnder",
      mode: t.mode,
      label: r,
      base: n
    };
  },
  htmlBuilder: (a, e) => {
    var t = ne(a.base, e), r = l0.svgSpan(a, e), n = a.label === "\\utilde" ? 0.12 : 0, i = C.makeVList({
      positionType: "top",
      positionData: t.height,
      children: [{
        type: "elem",
        elem: r,
        wrapperClasses: ["svg-align"]
      }, {
        type: "kern",
        size: n
      }, {
        type: "elem",
        elem: t
      }]
    }, e);
    return C.makeSpan(["mord", "accentunder"], [i], e);
  },
  mathmlBuilder: (a, e) => {
    var t = l0.mathMLnode(a.label), r = new L.MathNode("munder", [he(a.base, e), t]);
    return r.setAttribute("accentunder", "true"), r;
  }
});
var Rr = (a) => {
  var e = new L.MathNode("mpadded", a ? [a] : []);
  return e.setAttribute("width", "+0.6em"), e.setAttribute("lspace", "0.3em"), e;
};
G({
  type: "xArrow",
  names: [
    "\\xleftarrow",
    "\\xrightarrow",
    "\\xLeftarrow",
    "\\xRightarrow",
    "\\xleftrightarrow",
    "\\xLeftrightarrow",
    "\\xhookleftarrow",
    "\\xhookrightarrow",
    "\\xmapsto",
    "\\xrightharpoondown",
    "\\xrightharpoonup",
    "\\xleftharpoondown",
    "\\xleftharpoonup",
    "\\xrightleftharpoons",
    "\\xleftrightharpoons",
    "\\xlongequal",
    "\\xtwoheadrightarrow",
    "\\xtwoheadleftarrow",
    "\\xtofrom",
    // The next 3 functions are here to support the mhchem extension.
    // Direct use of these functions is discouraged and may break someday.
    "\\xrightleftarrows",
    "\\xrightequilibrium",
    "\\xleftequilibrium",
    // The next 3 functions are here only to support the {CD} environment.
    "\\\\cdrightarrow",
    "\\\\cdleftarrow",
    "\\\\cdlongequal"
  ],
  props: {
    numArgs: 1,
    numOptionalArgs: 1
  },
  handler(a, e, t) {
    var {
      parser: r,
      funcName: n
    } = a;
    return {
      type: "xArrow",
      mode: r.mode,
      label: n,
      body: e[0],
      below: t[0]
    };
  },
  // Flow is unable to correctly infer the type of `group`, even though it's
  // unambiguously determined from the passed-in `type` above.
  htmlBuilder(a, e) {
    var t = e.style, r = e.havingStyle(t.sup()), n = C.wrapFragment(ne(a.body, r, e), e), i = a.label.slice(0, 2) === "\\x" ? "x" : "cd";
    n.classes.push(i + "-arrow-pad");
    var l;
    a.below && (r = e.havingStyle(t.sub()), l = C.wrapFragment(ne(a.below, r, e), e), l.classes.push(i + "-arrow-pad"));
    var s = l0.svgSpan(a, e), o = -e.fontMetrics().axisHeight + 0.5 * s.height, h = -e.fontMetrics().axisHeight - 0.5 * s.height - 0.111;
    (n.depth > 0.25 || a.label === "\\xleftequilibrium") && (h -= n.depth);
    var m;
    if (l) {
      var d = -e.fontMetrics().axisHeight + l.height + 0.5 * s.height + 0.111;
      m = C.makeVList({
        positionType: "individualShift",
        children: [{
          type: "elem",
          elem: n,
          shift: h
        }, {
          type: "elem",
          elem: s,
          shift: o
        }, {
          type: "elem",
          elem: l,
          shift: d
        }]
      }, e);
    } else
      m = C.makeVList({
        positionType: "individualShift",
        children: [{
          type: "elem",
          elem: n,
          shift: h
        }, {
          type: "elem",
          elem: s,
          shift: o
        }]
      }, e);
    return m.children[0].children[0].children[1].classes.push("svg-align"), C.makeSpan(["mrel", "x-arrow"], [m], e);
  },
  mathmlBuilder(a, e) {
    var t = l0.mathMLnode(a.label);
    t.setAttribute("minsize", a.label.charAt(0) === "x" ? "1.75em" : "3.0em");
    var r;
    if (a.body) {
      var n = Rr(he(a.body, e));
      if (a.below) {
        var i = Rr(he(a.below, e));
        r = new L.MathNode("munderover", [t, i, n]);
      } else
        r = new L.MathNode("mover", [t, n]);
    } else if (a.below) {
      var l = Rr(he(a.below, e));
      r = new L.MathNode("munder", [t, l]);
    } else
      r = Rr(), r = new L.MathNode("mover", [t, r]);
    return r;
  }
});
var Rc = C.makeSpan;
function wo(a, e) {
  var t = Fe(a.body, e, !0);
  return Rc([a.mclass], t, e);
}
function ko(a, e) {
  var t, r = Ye(a.body, e);
  return a.mclass === "minner" ? t = new L.MathNode("mpadded", r) : a.mclass === "mord" ? a.isCharacterBox ? (t = r[0], t.type = "mi") : t = new L.MathNode("mi", r) : (a.isCharacterBox ? (t = r[0], t.type = "mo") : t = new L.MathNode("mo", r), a.mclass === "mbin" ? (t.attributes.lspace = "0.22em", t.attributes.rspace = "0.22em") : a.mclass === "mpunct" ? (t.attributes.lspace = "0em", t.attributes.rspace = "0.17em") : a.mclass === "mopen" || a.mclass === "mclose" ? (t.attributes.lspace = "0em", t.attributes.rspace = "0em") : a.mclass === "minner" && (t.attributes.lspace = "0.0556em", t.attributes.width = "+0.1111em")), t;
}
G({
  type: "mclass",
  names: ["\\mathord", "\\mathbin", "\\mathrel", "\\mathopen", "\\mathclose", "\\mathpunct", "\\mathinner"],
  props: {
    numArgs: 1,
    primitive: !0
  },
  handler(a, e) {
    var {
      parser: t,
      funcName: r
    } = a, n = e[0];
    return {
      type: "mclass",
      mode: t.mode,
      mclass: "m" + r.slice(5),
      // TODO(kevinb): don't prefix with 'm'
      body: Ae(n),
      isCharacterBox: Y.isCharacterBox(n)
    };
  },
  htmlBuilder: wo,
  mathmlBuilder: ko
});
var Aa = (a) => {
  var e = a.type === "ordgroup" && a.body.length ? a.body[0] : a;
  return e.type === "atom" && (e.family === "bin" || e.family === "rel") ? "m" + e.family : "mord";
};
G({
  type: "mclass",
  names: ["\\@binrel"],
  props: {
    numArgs: 2
  },
  handler(a, e) {
    var {
      parser: t
    } = a;
    return {
      type: "mclass",
      mode: t.mode,
      mclass: Aa(e[0]),
      body: Ae(e[1]),
      isCharacterBox: Y.isCharacterBox(e[1])
    };
  }
});
G({
  type: "mclass",
  names: ["\\stackrel", "\\overset", "\\underset"],
  props: {
    numArgs: 2
  },
  handler(a, e) {
    var {
      parser: t,
      funcName: r
    } = a, n = e[1], i = e[0], l;
    r !== "\\stackrel" ? l = Aa(n) : l = "mrel";
    var s = {
      type: "op",
      mode: n.mode,
      limits: !0,
      alwaysHandleSupSub: !0,
      parentIsSupSub: !1,
      symbol: !1,
      suppressBaseShift: r !== "\\stackrel",
      body: Ae(n)
    }, o = {
      type: "supsub",
      mode: i.mode,
      base: s,
      sup: r === "\\underset" ? null : i,
      sub: r === "\\underset" ? i : null
    };
    return {
      type: "mclass",
      mode: t.mode,
      mclass: l,
      body: [o],
      isCharacterBox: Y.isCharacterBox(o)
    };
  },
  htmlBuilder: wo,
  mathmlBuilder: ko
});
G({
  type: "pmb",
  names: ["\\pmb"],
  props: {
    numArgs: 1,
    allowedInText: !0
  },
  handler(a, e) {
    var {
      parser: t
    } = a;
    return {
      type: "pmb",
      mode: t.mode,
      mclass: Aa(e[0]),
      body: Ae(e[0])
    };
  },
  htmlBuilder(a, e) {
    var t = Fe(a.body, e, !0), r = C.makeSpan([a.mclass], t, e);
    return r.style.textShadow = "0.02em 0.01em 0.04px", r;
  },
  mathmlBuilder(a, e) {
    var t = Ye(a.body, e), r = new L.MathNode("mstyle", t);
    return r.setAttribute("style", "text-shadow: 0.02em 0.01em 0.04px"), r;
  }
});
var Ic = {
  ">": "\\\\cdrightarrow",
  "<": "\\\\cdleftarrow",
  "=": "\\\\cdlongequal",
  A: "\\uparrow",
  V: "\\downarrow",
  "|": "\\Vert",
  ".": "no arrow"
}, al = () => ({
  type: "styling",
  body: [],
  mode: "math",
  style: "display"
}), nl = (a) => a.type === "textord" && a.text === "@", Lc = (a, e) => (a.type === "mathord" || a.type === "atom") && a.text === e;
function Oc(a, e, t) {
  var r = Ic[a];
  switch (r) {
    case "\\\\cdrightarrow":
    case "\\\\cdleftarrow":
      return t.callFunction(r, [e[0]], [e[1]]);
    case "\\uparrow":
    case "\\downarrow": {
      var n = t.callFunction("\\\\cdleft", [e[0]], []), i = {
        type: "atom",
        text: r,
        mode: "math",
        family: "rel"
      }, l = t.callFunction("\\Big", [i], []), s = t.callFunction("\\\\cdright", [e[1]], []), o = {
        type: "ordgroup",
        mode: "math",
        body: [n, l, s]
      };
      return t.callFunction("\\\\cdparent", [o], []);
    }
    case "\\\\cdlongequal":
      return t.callFunction("\\\\cdlongequal", [], []);
    case "\\Vert": {
      var h = {
        type: "textord",
        text: "\\Vert",
        mode: "math"
      };
      return t.callFunction("\\Big", [h], []);
    }
    default:
      return {
        type: "textord",
        text: " ",
        mode: "math"
      };
  }
}
function qc(a) {
  var e = [];
  for (a.gullet.beginGroup(), a.gullet.macros.set("\\cr", "\\\\\\relax"), a.gullet.beginGroup(); ; ) {
    e.push(a.parseExpression(!1, "\\\\")), a.gullet.endGroup(), a.gullet.beginGroup();
    var t = a.fetch().text;
    if (t === "&" || t === "\\\\")
      a.consume();
    else if (t === "\\end") {
      e[e.length - 1].length === 0 && e.pop();
      break;
    } else
      throw new O("Expected \\\\ or \\cr or \\end", a.nextToken);
  }
  for (var r = [], n = [r], i = 0; i < e.length; i++) {
    for (var l = e[i], s = al(), o = 0; o < l.length; o++)
      if (!nl(l[o]))
        s.body.push(l[o]);
      else {
        r.push(s), o += 1;
        var h = Jn(l[o]).text, m = new Array(2);
        if (m[0] = {
          type: "ordgroup",
          mode: "math",
          body: []
        }, m[1] = {
          type: "ordgroup",
          mode: "math",
          body: []
        }, !("=|.".indexOf(h) > -1)) if ("<>AV".indexOf(h) > -1)
          for (var d = 0; d < 2; d++) {
            for (var g = !0, v = o + 1; v < l.length; v++) {
              if (Lc(l[v], h)) {
                g = !1, o = v;
                break;
              }
              if (nl(l[v]))
                throw new O("Missing a " + h + " character to complete a CD arrow.", l[v]);
              m[d].body.push(l[v]);
            }
            if (g)
              throw new O("Missing a " + h + " character to complete a CD arrow.", l[o]);
          }
        else
          throw new O('Expected one of "<>AV=|." after @', l[o]);
        var y = Oc(h, m, a), x = {
          type: "styling",
          body: [y],
          mode: "math",
          style: "display"
          // CD is always displaystyle.
        };
        r.push(x), s = al();
      }
    i % 2 === 0 ? r.push(s) : r.shift(), r = [], n.push(r);
  }
  a.gullet.endGroup(), a.gullet.endGroup();
  var A = new Array(n[0].length).fill({
    type: "align",
    align: "c",
    pregap: 0.25,
    // CD package sets \enskip between columns.
    postgap: 0.25
    // So pre and post each get half an \enskip, i.e. 0.25em.
  });
  return {
    type: "array",
    mode: "math",
    body: n,
    arraystretch: 1,
    addJot: !0,
    rowGaps: [null],
    cols: A,
    colSeparationType: "CD",
    hLinesBeforeRow: new Array(n.length + 1).fill([])
  };
}
G({
  type: "cdlabel",
  names: ["\\\\cdleft", "\\\\cdright"],
  props: {
    numArgs: 1
  },
  handler(a, e) {
    var {
      parser: t,
      funcName: r
    } = a;
    return {
      type: "cdlabel",
      mode: t.mode,
      side: r.slice(4),
      label: e[0]
    };
  },
  htmlBuilder(a, e) {
    var t = e.havingStyle(e.style.sup()), r = C.wrapFragment(ne(a.label, t, e), e);
    return r.classes.push("cd-label-" + a.side), r.style.bottom = H(0.8 - r.depth), r.height = 0, r.depth = 0, r;
  },
  mathmlBuilder(a, e) {
    var t = new L.MathNode("mrow", [he(a.label, e)]);
    return t = new L.MathNode("mpadded", [t]), t.setAttribute("width", "0"), a.side === "left" && t.setAttribute("lspace", "-1width"), t.setAttribute("voffset", "0.7em"), t = new L.MathNode("mstyle", [t]), t.setAttribute("displaystyle", "false"), t.setAttribute("scriptlevel", "1"), t;
  }
});
G({
  type: "cdlabelparent",
  names: ["\\\\cdparent"],
  props: {
    numArgs: 1
  },
  handler(a, e) {
    var {
      parser: t
    } = a;
    return {
      type: "cdlabelparent",
      mode: t.mode,
      fragment: e[0]
    };
  },
  htmlBuilder(a, e) {
    var t = C.wrapFragment(ne(a.fragment, e), e);
    return t.classes.push("cd-vert-arrow"), t;
  },
  mathmlBuilder(a, e) {
    return new L.MathNode("mrow", [he(a.fragment, e)]);
  }
});
G({
  type: "textord",
  names: ["\\@char"],
  props: {
    numArgs: 1,
    allowedInText: !0
  },
  handler(a, e) {
    for (var {
      parser: t
    } = a, r = ee(e[0], "ordgroup"), n = r.body, i = "", l = 0; l < n.length; l++) {
      var s = ee(n[l], "textord");
      i += s.text;
    }
    var o = parseInt(i), h;
    if (isNaN(o))
      throw new O("\\@char has non-numeric argument " + i);
    if (o < 0 || o >= 1114111)
      throw new O("\\@char with invalid code point " + i);
    return o <= 65535 ? h = String.fromCharCode(o) : (o -= 65536, h = String.fromCharCode((o >> 10) + 55296, (o & 1023) + 56320)), {
      type: "textord",
      mode: t.mode,
      text: h
    };
  }
});
var xo = (a, e) => {
  var t = Fe(a.body, e.withColor(a.color), !1);
  return C.makeFragment(t);
}, _o = (a, e) => {
  var t = Ye(a.body, e.withColor(a.color)), r = new L.MathNode("mstyle", t);
  return r.setAttribute("mathcolor", a.color), r;
};
G({
  type: "color",
  names: ["\\textcolor"],
  props: {
    numArgs: 2,
    allowedInText: !0,
    argTypes: ["color", "original"]
  },
  handler(a, e) {
    var {
      parser: t
    } = a, r = ee(e[0], "color-token").color, n = e[1];
    return {
      type: "color",
      mode: t.mode,
      color: r,
      body: Ae(n)
    };
  },
  htmlBuilder: xo,
  mathmlBuilder: _o
});
G({
  type: "color",
  names: ["\\color"],
  props: {
    numArgs: 1,
    allowedInText: !0,
    argTypes: ["color"]
  },
  handler(a, e) {
    var {
      parser: t,
      breakOnTokenText: r
    } = a, n = ee(e[0], "color-token").color;
    t.gullet.macros.set("\\current@color", n);
    var i = t.parseExpression(!0, r);
    return {
      type: "color",
      mode: t.mode,
      color: n,
      body: i
    };
  },
  htmlBuilder: xo,
  mathmlBuilder: _o
});
G({
  type: "cr",
  names: ["\\\\"],
  props: {
    numArgs: 0,
    numOptionalArgs: 0,
    allowedInText: !0
  },
  handler(a, e, t) {
    var {
      parser: r
    } = a, n = r.gullet.future().text === "[" ? r.parseSizeGroup(!0) : null, i = !r.settings.displayMode || !r.settings.useStrictBehavior("newLineInDisplayMode", "In LaTeX, \\\\ or \\newline does nothing in display mode");
    return {
      type: "cr",
      mode: r.mode,
      newLine: i,
      size: n && ee(n, "size").value
    };
  },
  // The following builders are called only at the top level,
  // not within tabular/array environments.
  htmlBuilder(a, e) {
    var t = C.makeSpan(["mspace"], [], e);
    return a.newLine && (t.classes.push("newline"), a.size && (t.style.marginTop = H(ve(a.size, e)))), t;
  },
  mathmlBuilder(a, e) {
    var t = new L.MathNode("mspace");
    return a.newLine && (t.setAttribute("linebreak", "newline"), a.size && t.setAttribute("height", H(ve(a.size, e)))), t;
  }
});
var En = {
  "\\global": "\\global",
  "\\long": "\\\\globallong",
  "\\\\globallong": "\\\\globallong",
  "\\def": "\\gdef",
  "\\gdef": "\\gdef",
  "\\edef": "\\xdef",
  "\\xdef": "\\xdef",
  "\\let": "\\\\globallet",
  "\\futurelet": "\\\\globalfuture"
}, Do = (a) => {
  var e = a.text;
  if (/^(?:[\\{}$&#^_]|EOF)$/.test(e))
    throw new O("Expected a control sequence", a);
  return e;
}, Pc = (a) => {
  var e = a.gullet.popToken();
  return e.text === "=" && (e = a.gullet.popToken(), e.text === " " && (e = a.gullet.popToken())), e;
}, Ao = (a, e, t, r) => {
  var n = a.gullet.macros.get(t.text);
  n == null && (t.noexpand = !0, n = {
    tokens: [t],
    numArgs: 0,
    // reproduce the same behavior in expansion
    unexpandable: !a.gullet.isExpandable(t.text)
  }), a.gullet.macros.set(e, n, r);
};
G({
  type: "internal",
  names: [
    "\\global",
    "\\long",
    "\\\\globallong"
    // can’t be entered directly
  ],
  props: {
    numArgs: 0,
    allowedInText: !0
  },
  handler(a) {
    var {
      parser: e,
      funcName: t
    } = a;
    e.consumeSpaces();
    var r = e.fetch();
    if (En[r.text])
      return (t === "\\global" || t === "\\\\globallong") && (r.text = En[r.text]), ee(e.parseFunction(), "internal");
    throw new O("Invalid token after macro prefix", r);
  }
});
G({
  type: "internal",
  names: ["\\def", "\\gdef", "\\edef", "\\xdef"],
  props: {
    numArgs: 0,
    allowedInText: !0,
    primitive: !0
  },
  handler(a) {
    var {
      parser: e,
      funcName: t
    } = a, r = e.gullet.popToken(), n = r.text;
    if (/^(?:[\\{}$&#^_]|EOF)$/.test(n))
      throw new O("Expected a control sequence", r);
    for (var i = 0, l, s = [[]]; e.gullet.future().text !== "{"; )
      if (r = e.gullet.popToken(), r.text === "#") {
        if (e.gullet.future().text === "{") {
          l = e.gullet.future(), s[i].push("{");
          break;
        }
        if (r = e.gullet.popToken(), !/^[1-9]$/.test(r.text))
          throw new O('Invalid argument number "' + r.text + '"');
        if (parseInt(r.text) !== i + 1)
          throw new O('Argument number "' + r.text + '" out of order');
        i++, s.push([]);
      } else {
        if (r.text === "EOF")
          throw new O("Expected a macro definition");
        s[i].push(r.text);
      }
    var {
      tokens: o
    } = e.gullet.consumeArg();
    return l && o.unshift(l), (t === "\\edef" || t === "\\xdef") && (o = e.gullet.expandTokens(o), o.reverse()), e.gullet.macros.set(n, {
      tokens: o,
      numArgs: i,
      delimiters: s
    }, t === En[t]), {
      type: "internal",
      mode: e.mode
    };
  }
});
G({
  type: "internal",
  names: [
    "\\let",
    "\\\\globallet"
    // can’t be entered directly
  ],
  props: {
    numArgs: 0,
    allowedInText: !0,
    primitive: !0
  },
  handler(a) {
    var {
      parser: e,
      funcName: t
    } = a, r = Do(e.gullet.popToken());
    e.gullet.consumeSpaces();
    var n = Pc(e);
    return Ao(e, r, n, t === "\\\\globallet"), {
      type: "internal",
      mode: e.mode
    };
  }
});
G({
  type: "internal",
  names: [
    "\\futurelet",
    "\\\\globalfuture"
    // can’t be entered directly
  ],
  props: {
    numArgs: 0,
    allowedInText: !0,
    primitive: !0
  },
  handler(a) {
    var {
      parser: e,
      funcName: t
    } = a, r = Do(e.gullet.popToken()), n = e.gullet.popToken(), i = e.gullet.popToken();
    return Ao(e, r, i, t === "\\\\globalfuture"), e.gullet.pushToken(i), e.gullet.pushToken(n), {
      type: "internal",
      mode: e.mode
    };
  }
});
var nr = function(e, t, r) {
  var n = me.math[e] && me.math[e].replace, i = Yn(n || e, t, r);
  if (!i)
    throw new Error("Unsupported symbol " + e + " and font size " + t + ".");
  return i;
}, ei = function(e, t, r, n) {
  var i = r.havingBaseStyle(t), l = C.makeSpan(n.concat(i.sizingClasses(r)), [e], r), s = i.sizeMultiplier / r.sizeMultiplier;
  return l.height *= s, l.depth *= s, l.maxFontSize = i.sizeMultiplier, l;
}, So = function(e, t, r) {
  var n = t.havingBaseStyle(r), i = (1 - t.sizeMultiplier / n.sizeMultiplier) * t.fontMetrics().axisHeight;
  e.classes.push("delimcenter"), e.style.top = H(i), e.height -= i, e.depth += i;
}, Hc = function(e, t, r, n, i, l) {
  var s = C.makeSymbol(e, "Main-Regular", i, n), o = ei(s, t, n, l);
  return r && So(o, n, t), o;
}, Uc = function(e, t, r, n) {
  return C.makeSymbol(e, "Size" + t + "-Regular", r, n);
}, Eo = function(e, t, r, n, i, l) {
  var s = Uc(e, t, i, n), o = ei(C.makeSpan(["delimsizing", "size" + t], [s], n), K.TEXT, n, l);
  return r && So(o, n, K.TEXT), o;
}, Ua = function(e, t, r) {
  var n;
  t === "Size1-Regular" ? n = "delim-size1" : n = "delim-size4";
  var i = C.makeSpan(["delimsizinginner", n], [C.makeSpan([], [C.makeSymbol(e, t, r)])]);
  return {
    type: "elem",
    elem: i
  };
}, Ga = function(e, t, r) {
  var n = Rt["Size4-Regular"][e.charCodeAt(0)] ? Rt["Size4-Regular"][e.charCodeAt(0)][4] : Rt["Size1-Regular"][e.charCodeAt(0)][4], i = new p0("inner", j1(e, Math.round(1e3 * t))), l = new n0([i], {
    width: H(n),
    height: H(t),
    // Override CSS rule `.katex svg { width: 100% }`
    style: "width:" + H(n),
    viewBox: "0 0 " + 1e3 * n + " " + Math.round(1e3 * t),
    preserveAspectRatio: "xMinYMin"
  }), s = C.makeSvgSpan([], [l], r);
  return s.height = t, s.style.height = H(t), s.style.width = H(n), {
    type: "elem",
    elem: s
  };
}, Fn = 8e-3, Ir = {
  type: "kern",
  size: -1 * Fn
}, Gc = ["|", "\\lvert", "\\rvert", "\\vert"], Vc = ["\\|", "\\lVert", "\\rVert", "\\Vert"], Fo = function(e, t, r, n, i, l) {
  var s, o, h, m, d = "", g = 0;
  s = h = m = e, o = null;
  var v = "Size1-Regular";
  e === "\\uparrow" ? h = m = "⏐" : e === "\\Uparrow" ? h = m = "‖" : e === "\\downarrow" ? s = h = "⏐" : e === "\\Downarrow" ? s = h = "‖" : e === "\\updownarrow" ? (s = "\\uparrow", h = "⏐", m = "\\downarrow") : e === "\\Updownarrow" ? (s = "\\Uparrow", h = "‖", m = "\\Downarrow") : Y.contains(Gc, e) ? (h = "∣", d = "vert", g = 333) : Y.contains(Vc, e) ? (h = "∥", d = "doublevert", g = 556) : e === "[" || e === "\\lbrack" ? (s = "⎡", h = "⎢", m = "⎣", v = "Size4-Regular", d = "lbrack", g = 667) : e === "]" || e === "\\rbrack" ? (s = "⎤", h = "⎥", m = "⎦", v = "Size4-Regular", d = "rbrack", g = 667) : e === "\\lfloor" || e === "⌊" ? (h = s = "⎢", m = "⎣", v = "Size4-Regular", d = "lfloor", g = 667) : e === "\\lceil" || e === "⌈" ? (s = "⎡", h = m = "⎢", v = "Size4-Regular", d = "lceil", g = 667) : e === "\\rfloor" || e === "⌋" ? (h = s = "⎥", m = "⎦", v = "Size4-Regular", d = "rfloor", g = 667) : e === "\\rceil" || e === "⌉" ? (s = "⎤", h = m = "⎥", v = "Size4-Regular", d = "rceil", g = 667) : e === "(" || e === "\\lparen" ? (s = "⎛", h = "⎜", m = "⎝", v = "Size4-Regular", d = "lparen", g = 875) : e === ")" || e === "\\rparen" ? (s = "⎞", h = "⎟", m = "⎠", v = "Size4-Regular", d = "rparen", g = 875) : e === "\\{" || e === "\\lbrace" ? (s = "⎧", o = "⎨", m = "⎩", h = "⎪", v = "Size4-Regular") : e === "\\}" || e === "\\rbrace" ? (s = "⎫", o = "⎬", m = "⎭", h = "⎪", v = "Size4-Regular") : e === "\\lgroup" || e === "⟮" ? (s = "⎧", m = "⎩", h = "⎪", v = "Size4-Regular") : e === "\\rgroup" || e === "⟯" ? (s = "⎫", m = "⎭", h = "⎪", v = "Size4-Regular") : e === "\\lmoustache" || e === "⎰" ? (s = "⎧", m = "⎭", h = "⎪", v = "Size4-Regular") : (e === "\\rmoustache" || e === "⎱") && (s = "⎫", m = "⎩", h = "⎪", v = "Size4-Regular");
  var y = nr(s, v, i), x = y.height + y.depth, A = nr(h, v, i), T = A.height + A.depth, _ = nr(m, v, i), b = _.height + _.depth, E = 0, F = 1;
  if (o !== null) {
    var M = nr(o, v, i);
    E = M.height + M.depth, F = 2;
  }
  var z = x + b + E, q = Math.max(0, Math.ceil((t - z) / (F * T))), I = z + q * F * T, B = n.fontMetrics().axisHeight;
  r && (B *= n.sizeMultiplier);
  var N = I / 2 - B, Q = [];
  if (d.length > 0) {
    var ke = I - x - b, ie = Math.round(I * 1e3), xe = Z1(d, Math.round(ke * 1e3)), _e = new p0(d, xe), He = (g / 1e3).toFixed(3) + "em", se = (ie / 1e3).toFixed(3) + "em", Ee = new n0([_e], {
      width: He,
      height: se,
      viewBox: "0 0 " + g + " " + ie
    }), De = C.makeSvgSpan([], [Ee], n);
    De.height = ie / 1e3, De.style.width = He, De.style.height = se, Q.push({
      type: "elem",
      elem: De
    });
  } else {
    if (Q.push(Ua(m, v, i)), Q.push(Ir), o === null) {
      var te = I - x - b + 2 * Fn;
      Q.push(Ga(h, te, n));
    } else {
      var le = (I - x - b - E) / 2 + 2 * Fn;
      Q.push(Ga(h, le, n)), Q.push(Ir), Q.push(Ua(o, v, i)), Q.push(Ir), Q.push(Ga(h, le, n));
    }
    Q.push(Ir), Q.push(Ua(s, v, i));
  }
  var ce = n.havingBaseStyle(K.TEXT), Ce = C.makeVList({
    positionType: "bottom",
    positionData: N,
    children: Q
  }, ce);
  return ei(C.makeSpan(["delimsizing", "mult"], [Ce], ce), K.TEXT, n, l);
}, Va = 80, Wa = 0.08, Xa = function(e, t, r, n, i) {
  var l = Y1(e, n, r), s = new p0(e, l), o = new n0([s], {
    // Note: 1000:1 ratio of viewBox to document em width.
    width: "400em",
    height: H(t),
    viewBox: "0 0 400000 " + r,
    preserveAspectRatio: "xMinYMin slice"
  });
  return C.makeSvgSpan(["hide-tail"], [o], i);
}, Wc = function(e, t) {
  var r = t.havingBaseSizing(), n = zo("\\surd", e * r.sizeMultiplier, Mo, r), i = r.sizeMultiplier, l = Math.max(0, t.minRuleThickness - t.fontMetrics().sqrtRuleThickness), s, o = 0, h = 0, m = 0, d;
  return n.type === "small" ? (m = 1e3 + 1e3 * l + Va, e < 1 ? i = 1 : e < 1.4 && (i = 0.7), o = (1 + l + Wa) / i, h = (1 + l) / i, s = Xa("sqrtMain", o, m, l, t), s.style.minWidth = "0.853em", d = 0.833 / i) : n.type === "large" ? (m = (1e3 + Va) * sr[n.size], h = (sr[n.size] + l) / i, o = (sr[n.size] + l + Wa) / i, s = Xa("sqrtSize" + n.size, o, m, l, t), s.style.minWidth = "1.02em", d = 1 / i) : (o = e + l + Wa, h = e + l, m = Math.floor(1e3 * e + l) + Va, s = Xa("sqrtTall", o, m, l, t), s.style.minWidth = "0.742em", d = 1.056), s.height = h, s.style.height = H(o), {
    span: s,
    advanceWidth: d,
    // Calculate the actual line width.
    // This actually should depend on the chosen font -- e.g. \boldmath
    // should use the thicker surd symbols from e.g. KaTeX_Main-Bold, and
    // have thicker rules.
    ruleWidth: (t.fontMetrics().sqrtRuleThickness + l) * i
  };
}, To = ["(", "\\lparen", ")", "\\rparen", "[", "\\lbrack", "]", "\\rbrack", "\\{", "\\lbrace", "\\}", "\\rbrace", "\\lfloor", "\\rfloor", "⌊", "⌋", "\\lceil", "\\rceil", "⌈", "⌉", "\\surd"], Xc = ["\\uparrow", "\\downarrow", "\\updownarrow", "\\Uparrow", "\\Downarrow", "\\Updownarrow", "|", "\\|", "\\vert", "\\Vert", "\\lvert", "\\rvert", "\\lVert", "\\rVert", "\\lgroup", "\\rgroup", "⟮", "⟯", "\\lmoustache", "\\rmoustache", "⎰", "⎱"], Co = ["<", ">", "\\langle", "\\rangle", "/", "\\backslash", "\\lt", "\\gt"], sr = [0, 1.2, 1.8, 2.4, 3], Yc = function(e, t, r, n, i) {
  if (e === "<" || e === "\\lt" || e === "⟨" ? e = "\\langle" : (e === ">" || e === "\\gt" || e === "⟩") && (e = "\\rangle"), Y.contains(To, e) || Y.contains(Co, e))
    return Eo(e, t, !1, r, n, i);
  if (Y.contains(Xc, e))
    return Fo(e, sr[t], !1, r, n, i);
  throw new O("Illegal delimiter: '" + e + "'");
}, jc = [{
  type: "small",
  style: K.SCRIPTSCRIPT
}, {
  type: "small",
  style: K.SCRIPT
}, {
  type: "small",
  style: K.TEXT
}, {
  type: "large",
  size: 1
}, {
  type: "large",
  size: 2
}, {
  type: "large",
  size: 3
}, {
  type: "large",
  size: 4
}], Zc = [{
  type: "small",
  style: K.SCRIPTSCRIPT
}, {
  type: "small",
  style: K.SCRIPT
}, {
  type: "small",
  style: K.TEXT
}, {
  type: "stack"
}], Mo = [{
  type: "small",
  style: K.SCRIPTSCRIPT
}, {
  type: "small",
  style: K.SCRIPT
}, {
  type: "small",
  style: K.TEXT
}, {
  type: "large",
  size: 1
}, {
  type: "large",
  size: 2
}, {
  type: "large",
  size: 3
}, {
  type: "large",
  size: 4
}, {
  type: "stack"
}], Kc = function(e) {
  if (e.type === "small")
    return "Main-Regular";
  if (e.type === "large")
    return "Size" + e.size + "-Regular";
  if (e.type === "stack")
    return "Size4-Regular";
  throw new Error("Add support for delim type '" + e.type + "' here.");
}, zo = function(e, t, r, n) {
  for (var i = Math.min(2, 3 - n.style.size), l = i; l < r.length && r[l].type !== "stack"; l++) {
    var s = nr(e, Kc(r[l]), "math"), o = s.height + s.depth;
    if (r[l].type === "small") {
      var h = n.havingBaseStyle(r[l].style);
      o *= h.sizeMultiplier;
    }
    if (o > t)
      return r[l];
  }
  return r[r.length - 1];
}, Bo = function(e, t, r, n, i, l) {
  e === "<" || e === "\\lt" || e === "⟨" ? e = "\\langle" : (e === ">" || e === "\\gt" || e === "⟩") && (e = "\\rangle");
  var s;
  Y.contains(Co, e) ? s = jc : Y.contains(To, e) ? s = Mo : s = Zc;
  var o = zo(e, t, s, n);
  return o.type === "small" ? Hc(e, o.style, r, n, i, l) : o.type === "large" ? Eo(e, o.size, r, n, i, l) : Fo(e, t, r, n, i, l);
}, Qc = function(e, t, r, n, i, l) {
  var s = n.fontMetrics().axisHeight * n.sizeMultiplier, o = 901, h = 5 / n.fontMetrics().ptPerEm, m = Math.max(t - s, r + s), d = Math.max(
    // In real TeX, calculations are done using integral values which are
    // 65536 per pt, or 655360 per em. So, the division here truncates in
    // TeX but doesn't here, producing different results. If we wanted to
    // exactly match TeX's calculation, we could do
    //   Math.floor(655360 * maxDistFromAxis / 500) *
    //    delimiterFactor / 655360
    // (To see the difference, compare
    //    x^{x^{\left(\rule{0.1em}{0.68em}\right)}}
    // in TeX and KaTeX)
    m / 500 * o,
    2 * m - h
  );
  return Bo(e, d, !0, n, i, l);
}, a0 = {
  sqrtImage: Wc,
  sizedDelim: Yc,
  sizeToMaxHeight: sr,
  customSizedDelim: Bo,
  leftRightDelim: Qc
}, il = {
  "\\bigl": {
    mclass: "mopen",
    size: 1
  },
  "\\Bigl": {
    mclass: "mopen",
    size: 2
  },
  "\\biggl": {
    mclass: "mopen",
    size: 3
  },
  "\\Biggl": {
    mclass: "mopen",
    size: 4
  },
  "\\bigr": {
    mclass: "mclose",
    size: 1
  },
  "\\Bigr": {
    mclass: "mclose",
    size: 2
  },
  "\\biggr": {
    mclass: "mclose",
    size: 3
  },
  "\\Biggr": {
    mclass: "mclose",
    size: 4
  },
  "\\bigm": {
    mclass: "mrel",
    size: 1
  },
  "\\Bigm": {
    mclass: "mrel",
    size: 2
  },
  "\\biggm": {
    mclass: "mrel",
    size: 3
  },
  "\\Biggm": {
    mclass: "mrel",
    size: 4
  },
  "\\big": {
    mclass: "mord",
    size: 1
  },
  "\\Big": {
    mclass: "mord",
    size: 2
  },
  "\\bigg": {
    mclass: "mord",
    size: 3
  },
  "\\Bigg": {
    mclass: "mord",
    size: 4
  }
}, Jc = ["(", "\\lparen", ")", "\\rparen", "[", "\\lbrack", "]", "\\rbrack", "\\{", "\\lbrace", "\\}", "\\rbrace", "\\lfloor", "\\rfloor", "⌊", "⌋", "\\lceil", "\\rceil", "⌈", "⌉", "<", ">", "\\langle", "⟨", "\\rangle", "⟩", "\\lt", "\\gt", "\\lvert", "\\rvert", "\\lVert", "\\rVert", "\\lgroup", "\\rgroup", "⟮", "⟯", "\\lmoustache", "\\rmoustache", "⎰", "⎱", "/", "\\backslash", "|", "\\vert", "\\|", "\\Vert", "\\uparrow", "\\Uparrow", "\\downarrow", "\\Downarrow", "\\updownarrow", "\\Updownarrow", "."];
function Sa(a, e) {
  var t = Da(a);
  if (t && Y.contains(Jc, t.text))
    return t;
  throw t ? new O("Invalid delimiter '" + t.text + "' after '" + e.funcName + "'", a) : new O("Invalid delimiter type '" + a.type + "'", a);
}
G({
  type: "delimsizing",
  names: ["\\bigl", "\\Bigl", "\\biggl", "\\Biggl", "\\bigr", "\\Bigr", "\\biggr", "\\Biggr", "\\bigm", "\\Bigm", "\\biggm", "\\Biggm", "\\big", "\\Big", "\\bigg", "\\Bigg"],
  props: {
    numArgs: 1,
    argTypes: ["primitive"]
  },
  handler: (a, e) => {
    var t = Sa(e[0], a);
    return {
      type: "delimsizing",
      mode: a.parser.mode,
      size: il[a.funcName].size,
      mclass: il[a.funcName].mclass,
      delim: t.text
    };
  },
  htmlBuilder: (a, e) => a.delim === "." ? C.makeSpan([a.mclass]) : a0.sizedDelim(a.delim, a.size, e, a.mode, [a.mclass]),
  mathmlBuilder: (a) => {
    var e = [];
    a.delim !== "." && e.push(ct(a.delim, a.mode));
    var t = new L.MathNode("mo", e);
    a.mclass === "mopen" || a.mclass === "mclose" ? t.setAttribute("fence", "true") : t.setAttribute("fence", "false"), t.setAttribute("stretchy", "true");
    var r = H(a0.sizeToMaxHeight[a.size]);
    return t.setAttribute("minsize", r), t.setAttribute("maxsize", r), t;
  }
});
function ll(a) {
  if (!a.body)
    throw new Error("Bug: The leftright ParseNode wasn't fully parsed.");
}
G({
  type: "leftright-right",
  names: ["\\right"],
  props: {
    numArgs: 1,
    primitive: !0
  },
  handler: (a, e) => {
    var t = a.parser.gullet.macros.get("\\current@color");
    if (t && typeof t != "string")
      throw new O("\\current@color set to non-string in \\right");
    return {
      type: "leftright-right",
      mode: a.parser.mode,
      delim: Sa(e[0], a).text,
      color: t
      // undefined if not set via \color
    };
  }
});
G({
  type: "leftright",
  names: ["\\left"],
  props: {
    numArgs: 1,
    primitive: !0
  },
  handler: (a, e) => {
    var t = Sa(e[0], a), r = a.parser;
    ++r.leftrightDepth;
    var n = r.parseExpression(!1);
    --r.leftrightDepth, r.expect("\\right", !1);
    var i = ee(r.parseFunction(), "leftright-right");
    return {
      type: "leftright",
      mode: r.mode,
      body: n,
      left: t.text,
      right: i.delim,
      rightColor: i.color
    };
  },
  htmlBuilder: (a, e) => {
    ll(a);
    for (var t = Fe(a.body, e, !0, ["mopen", "mclose"]), r = 0, n = 0, i = !1, l = 0; l < t.length; l++)
      t[l].isMiddle ? i = !0 : (r = Math.max(t[l].height, r), n = Math.max(t[l].depth, n));
    r *= e.sizeMultiplier, n *= e.sizeMultiplier;
    var s;
    if (a.left === "." ? s = vr(e, ["mopen"]) : s = a0.leftRightDelim(a.left, r, n, e, a.mode, ["mopen"]), t.unshift(s), i)
      for (var o = 1; o < t.length; o++) {
        var h = t[o], m = h.isMiddle;
        m && (t[o] = a0.leftRightDelim(m.delim, r, n, m.options, a.mode, []));
      }
    var d;
    if (a.right === ".")
      d = vr(e, ["mclose"]);
    else {
      var g = a.rightColor ? e.withColor(a.rightColor) : e;
      d = a0.leftRightDelim(a.right, r, n, g, a.mode, ["mclose"]);
    }
    return t.push(d), C.makeSpan(["minner"], t, e);
  },
  mathmlBuilder: (a, e) => {
    ll(a);
    var t = Ye(a.body, e);
    if (a.left !== ".") {
      var r = new L.MathNode("mo", [ct(a.left, a.mode)]);
      r.setAttribute("fence", "true"), t.unshift(r);
    }
    if (a.right !== ".") {
      var n = new L.MathNode("mo", [ct(a.right, a.mode)]);
      n.setAttribute("fence", "true"), a.rightColor && n.setAttribute("mathcolor", a.rightColor), t.push(n);
    }
    return Kn(t);
  }
});
G({
  type: "middle",
  names: ["\\middle"],
  props: {
    numArgs: 1,
    primitive: !0
  },
  handler: (a, e) => {
    var t = Sa(e[0], a);
    if (!a.parser.leftrightDepth)
      throw new O("\\middle without preceding \\left", t);
    return {
      type: "middle",
      mode: a.parser.mode,
      delim: t.text
    };
  },
  htmlBuilder: (a, e) => {
    var t;
    if (a.delim === ".")
      t = vr(e, []);
    else {
      t = a0.sizedDelim(a.delim, 1, e, a.mode, []);
      var r = {
        delim: a.delim,
        options: e
      };
      t.isMiddle = r;
    }
    return t;
  },
  mathmlBuilder: (a, e) => {
    var t = a.delim === "\\vert" || a.delim === "|" ? ct("|", "text") : ct(a.delim, a.mode), r = new L.MathNode("mo", [t]);
    return r.setAttribute("fence", "true"), r.setAttribute("lspace", "0.05em"), r.setAttribute("rspace", "0.05em"), r;
  }
});
var ti = (a, e) => {
  var t = C.wrapFragment(ne(a.body, e), e), r = a.label.slice(1), n = e.sizeMultiplier, i, l = 0, s = Y.isCharacterBox(a.body);
  if (r === "sout")
    i = C.makeSpan(["stretchy", "sout"]), i.height = e.fontMetrics().defaultRuleThickness / n, l = -0.5 * e.fontMetrics().xHeight;
  else if (r === "phase") {
    var o = ve({
      number: 0.6,
      unit: "pt"
    }, e), h = ve({
      number: 0.35,
      unit: "ex"
    }, e), m = e.havingBaseSizing();
    n = n / m.sizeMultiplier;
    var d = t.height + t.depth + o + h;
    t.style.paddingLeft = H(d / 2 + o);
    var g = Math.floor(1e3 * d * n), v = W1(g), y = new n0([new p0("phase", v)], {
      width: "400em",
      height: H(g / 1e3),
      viewBox: "0 0 400000 " + g,
      preserveAspectRatio: "xMinYMin slice"
    });
    i = C.makeSvgSpan(["hide-tail"], [y], e), i.style.height = H(d), l = t.depth + o + h;
  } else {
    /cancel/.test(r) ? s || t.classes.push("cancel-pad") : r === "angl" ? t.classes.push("anglpad") : t.classes.push("boxpad");
    var x = 0, A = 0, T = 0;
    /box/.test(r) ? (T = Math.max(
      e.fontMetrics().fboxrule,
      // default
      e.minRuleThickness
      // User override.
    ), x = e.fontMetrics().fboxsep + (r === "colorbox" ? 0 : T), A = x) : r === "angl" ? (T = Math.max(e.fontMetrics().defaultRuleThickness, e.minRuleThickness), x = 4 * T, A = Math.max(0, 0.25 - t.depth)) : (x = s ? 0.2 : 0, A = x), i = l0.encloseSpan(t, r, x, A, e), /fbox|boxed|fcolorbox/.test(r) ? (i.style.borderStyle = "solid", i.style.borderWidth = H(T)) : r === "angl" && T !== 0.049 && (i.style.borderTopWidth = H(T), i.style.borderRightWidth = H(T)), l = t.depth + A, a.backgroundColor && (i.style.backgroundColor = a.backgroundColor, a.borderColor && (i.style.borderColor = a.borderColor));
  }
  var _;
  if (a.backgroundColor)
    _ = C.makeVList({
      positionType: "individualShift",
      children: [
        // Put the color background behind inner;
        {
          type: "elem",
          elem: i,
          shift: l
        },
        {
          type: "elem",
          elem: t,
          shift: 0
        }
      ]
    }, e);
  else {
    var b = /cancel|phase/.test(r) ? ["svg-align"] : [];
    _ = C.makeVList({
      positionType: "individualShift",
      children: [
        // Write the \cancel stroke on top of inner.
        {
          type: "elem",
          elem: t,
          shift: 0
        },
        {
          type: "elem",
          elem: i,
          shift: l,
          wrapperClasses: b
        }
      ]
    }, e);
  }
  return /cancel/.test(r) && (_.height = t.height, _.depth = t.depth), /cancel/.test(r) && !s ? C.makeSpan(["mord", "cancel-lap"], [_], e) : C.makeSpan(["mord"], [_], e);
}, ri = (a, e) => {
  var t = 0, r = new L.MathNode(a.label.indexOf("colorbox") > -1 ? "mpadded" : "menclose", [he(a.body, e)]);
  switch (a.label) {
    case "\\cancel":
      r.setAttribute("notation", "updiagonalstrike");
      break;
    case "\\bcancel":
      r.setAttribute("notation", "downdiagonalstrike");
      break;
    case "\\phase":
      r.setAttribute("notation", "phasorangle");
      break;
    case "\\sout":
      r.setAttribute("notation", "horizontalstrike");
      break;
    case "\\fbox":
      r.setAttribute("notation", "box");
      break;
    case "\\angl":
      r.setAttribute("notation", "actuarial");
      break;
    case "\\fcolorbox":
    case "\\colorbox":
      if (t = e.fontMetrics().fboxsep * e.fontMetrics().ptPerEm, r.setAttribute("width", "+" + 2 * t + "pt"), r.setAttribute("height", "+" + 2 * t + "pt"), r.setAttribute("lspace", t + "pt"), r.setAttribute("voffset", t + "pt"), a.label === "\\fcolorbox") {
        var n = Math.max(
          e.fontMetrics().fboxrule,
          // default
          e.minRuleThickness
          // user override
        );
        r.setAttribute("style", "border: " + n + "em solid " + String(a.borderColor));
      }
      break;
    case "\\xcancel":
      r.setAttribute("notation", "updiagonalstrike downdiagonalstrike");
      break;
  }
  return a.backgroundColor && r.setAttribute("mathbackground", a.backgroundColor), r;
};
G({
  type: "enclose",
  names: ["\\colorbox"],
  props: {
    numArgs: 2,
    allowedInText: !0,
    argTypes: ["color", "text"]
  },
  handler(a, e, t) {
    var {
      parser: r,
      funcName: n
    } = a, i = ee(e[0], "color-token").color, l = e[1];
    return {
      type: "enclose",
      mode: r.mode,
      label: n,
      backgroundColor: i,
      body: l
    };
  },
  htmlBuilder: ti,
  mathmlBuilder: ri
});
G({
  type: "enclose",
  names: ["\\fcolorbox"],
  props: {
    numArgs: 3,
    allowedInText: !0,
    argTypes: ["color", "color", "text"]
  },
  handler(a, e, t) {
    var {
      parser: r,
      funcName: n
    } = a, i = ee(e[0], "color-token").color, l = ee(e[1], "color-token").color, s = e[2];
    return {
      type: "enclose",
      mode: r.mode,
      label: n,
      backgroundColor: l,
      borderColor: i,
      body: s
    };
  },
  htmlBuilder: ti,
  mathmlBuilder: ri
});
G({
  type: "enclose",
  names: ["\\fbox"],
  props: {
    numArgs: 1,
    argTypes: ["hbox"],
    allowedInText: !0
  },
  handler(a, e) {
    var {
      parser: t
    } = a;
    return {
      type: "enclose",
      mode: t.mode,
      label: "\\fbox",
      body: e[0]
    };
  }
});
G({
  type: "enclose",
  names: ["\\cancel", "\\bcancel", "\\xcancel", "\\sout", "\\phase"],
  props: {
    numArgs: 1
  },
  handler(a, e) {
    var {
      parser: t,
      funcName: r
    } = a, n = e[0];
    return {
      type: "enclose",
      mode: t.mode,
      label: r,
      body: n
    };
  },
  htmlBuilder: ti,
  mathmlBuilder: ri
});
G({
  type: "enclose",
  names: ["\\angl"],
  props: {
    numArgs: 1,
    argTypes: ["hbox"],
    allowedInText: !1
  },
  handler(a, e) {
    var {
      parser: t
    } = a;
    return {
      type: "enclose",
      mode: t.mode,
      label: "\\angl",
      body: e[0]
    };
  }
});
var No = {};
function Gt(a) {
  for (var {
    type: e,
    names: t,
    props: r,
    handler: n,
    htmlBuilder: i,
    mathmlBuilder: l
  } = a, s = {
    type: e,
    numArgs: r.numArgs || 0,
    allowedInText: !1,
    numOptionalArgs: 0,
    handler: n
  }, o = 0; o < t.length; ++o)
    No[t[o]] = s;
  i && (ha[e] = i), l && (ma[e] = l);
}
var Ro = {};
function p(a, e) {
  Ro[a] = e;
}
function sl(a) {
  var e = [];
  a.consumeSpaces();
  var t = a.fetch().text;
  for (t === "\\relax" && (a.consume(), a.consumeSpaces(), t = a.fetch().text); t === "\\hline" || t === "\\hdashline"; )
    a.consume(), e.push(t === "\\hdashline"), a.consumeSpaces(), t = a.fetch().text;
  return e;
}
var Ea = (a) => {
  var e = a.parser.settings;
  if (!e.displayMode)
    throw new O("{" + a.envName + "} can be used only in display mode.");
};
function ai(a) {
  if (a.indexOf("ed") === -1)
    return a.indexOf("*") === -1;
}
function v0(a, e, t) {
  var {
    hskipBeforeAndAfter: r,
    addJot: n,
    cols: i,
    arraystretch: l,
    colSeparationType: s,
    autoTag: o,
    singleRow: h,
    emptySingleRow: m,
    maxNumCols: d,
    leqno: g
  } = e;
  if (a.gullet.beginGroup(), h || a.gullet.macros.set("\\cr", "\\\\\\relax"), !l) {
    var v = a.gullet.expandMacroAsText("\\arraystretch");
    if (v == null)
      l = 1;
    else if (l = parseFloat(v), !l || l < 0)
      throw new O("Invalid \\arraystretch: " + v);
  }
  a.gullet.beginGroup();
  var y = [], x = [y], A = [], T = [], _ = o != null ? [] : void 0;
  function b() {
    o && a.gullet.macros.set("\\@eqnsw", "1", !0);
  }
  function E() {
    _ && (a.gullet.macros.get("\\df@tag") ? (_.push(a.subparse([new ot("\\df@tag")])), a.gullet.macros.set("\\df@tag", void 0, !0)) : _.push(!!o && a.gullet.macros.get("\\@eqnsw") === "1"));
  }
  for (b(), T.push(sl(a)); ; ) {
    var F = a.parseExpression(!1, h ? "\\end" : "\\\\");
    a.gullet.endGroup(), a.gullet.beginGroup(), F = {
      type: "ordgroup",
      mode: a.mode,
      body: F
    }, t && (F = {
      type: "styling",
      mode: a.mode,
      style: t,
      body: [F]
    }), y.push(F);
    var M = a.fetch().text;
    if (M === "&") {
      if (d && y.length === d) {
        if (h || s)
          throw new O("Too many tab characters: &", a.nextToken);
        a.settings.reportNonstrict("textEnv", "Too few columns specified in the {array} column argument.");
      }
      a.consume();
    } else if (M === "\\end") {
      E(), y.length === 1 && F.type === "styling" && F.body[0].body.length === 0 && (x.length > 1 || !m) && x.pop(), T.length < x.length + 1 && T.push([]);
      break;
    } else if (M === "\\\\") {
      a.consume();
      var z = void 0;
      a.gullet.future().text !== " " && (z = a.parseSizeGroup(!0)), A.push(z ? z.value : null), E(), T.push(sl(a)), y = [], x.push(y), b();
    } else
      throw new O("Expected & or \\\\ or \\cr or \\end", a.nextToken);
  }
  return a.gullet.endGroup(), a.gullet.endGroup(), {
    type: "array",
    mode: a.mode,
    addJot: n,
    arraystretch: l,
    body: x,
    cols: i,
    rowGaps: A,
    hskipBeforeAndAfter: r,
    hLinesBeforeRow: T,
    colSeparationType: s,
    tags: _,
    leqno: g
  };
}
function ni(a) {
  return a.slice(0, 1) === "d" ? "display" : "text";
}
var Vt = function(e, t) {
  var r, n, i = e.body.length, l = e.hLinesBeforeRow, s = 0, o = new Array(i), h = [], m = Math.max(
    // From LaTeX \showthe\arrayrulewidth. Equals 0.04 em.
    t.fontMetrics().arrayRuleWidth,
    t.minRuleThickness
    // User override.
  ), d = 1 / t.fontMetrics().ptPerEm, g = 5 * d;
  if (e.colSeparationType && e.colSeparationType === "small") {
    var v = t.havingStyle(K.SCRIPT).sizeMultiplier;
    g = 0.2778 * (v / t.sizeMultiplier);
  }
  var y = e.colSeparationType === "CD" ? ve({
    number: 3,
    unit: "ex"
  }, t) : 12 * d, x = 3 * d, A = e.arraystretch * y, T = 0.7 * A, _ = 0.3 * A, b = 0;
  function E(jt) {
    for (var Zt = 0; Zt < jt.length; ++Zt)
      Zt > 0 && (b += 0.25), h.push({
        pos: b,
        isDashed: jt[Zt]
      });
  }
  for (E(l[0]), r = 0; r < e.body.length; ++r) {
    var F = e.body[r], M = T, z = _;
    s < F.length && (s = F.length);
    var q = new Array(F.length);
    for (n = 0; n < F.length; ++n) {
      var I = ne(F[n], t);
      z < I.depth && (z = I.depth), M < I.height && (M = I.height), q[n] = I;
    }
    var B = e.rowGaps[r], N = 0;
    B && (N = ve(B, t), N > 0 && (N += _, z < N && (z = N), N = 0)), e.addJot && (z += x), q.height = M, q.depth = z, b += M, q.pos = b, b += z + N, o[r] = q, E(l[r + 1]);
  }
  var Q = b / 2 + t.fontMetrics().axisHeight, ke = e.cols || [], ie = [], xe, _e, He = [];
  if (e.tags && e.tags.some((jt) => jt))
    for (r = 0; r < i; ++r) {
      var se = o[r], Ee = se.pos - Q, De = e.tags[r], te = void 0;
      De === !0 ? te = C.makeSpan(["eqn-num"], [], t) : De === !1 ? te = C.makeSpan([], [], t) : te = C.makeSpan([], Fe(De, t, !0), t), te.depth = se.depth, te.height = se.height, He.push({
        type: "elem",
        elem: te,
        shift: Ee
      });
    }
  for (
    n = 0, _e = 0;
    // Continue while either there are more columns or more column
    // descriptions, so trailing separators don't get lost.
    n < s || _e < ke.length;
    ++n, ++_e
  ) {
    for (var le = ke[_e] || {}, ce = !0; le.type === "separator"; ) {
      if (ce || (xe = C.makeSpan(["arraycolsep"], []), xe.style.width = H(t.fontMetrics().doubleRuleSep), ie.push(xe)), le.separator === "|" || le.separator === ":") {
        var Ce = le.separator === "|" ? "solid" : "dashed", U = C.makeSpan(["vertical-separator"], [], t);
        U.style.height = H(b), U.style.borderRightWidth = H(m), U.style.borderRightStyle = Ce, U.style.margin = "0 " + H(-m / 2);
        var je = b - Q;
        je && (U.style.verticalAlign = H(-je)), ie.push(U);
      } else
        throw new O("Invalid separator type: " + le.separator);
      _e++, le = ke[_e] || {}, ce = !1;
    }
    if (!(n >= s)) {
      var Ne = void 0;
      (n > 0 || e.hskipBeforeAndAfter) && (Ne = Y.deflt(le.pregap, g), Ne !== 0 && (xe = C.makeSpan(["arraycolsep"], []), xe.style.width = H(Ne), ie.push(xe)));
      var Ze = [];
      for (r = 0; r < i; ++r) {
        var dt = o[r], pt = dt[n];
        if (pt) {
          var Xt = dt.pos - Q;
          pt.depth = dt.depth, pt.height = dt.height, Ze.push({
            type: "elem",
            elem: pt,
            shift: Xt
          });
        }
      }
      Ze = C.makeVList({
        positionType: "individualShift",
        children: Ze
      }, t), Ze = C.makeSpan(["col-align-" + (le.align || "c")], [Ze]), ie.push(Ze), (n < s - 1 || e.hskipBeforeAndAfter) && (Ne = Y.deflt(le.postgap, g), Ne !== 0 && (xe = C.makeSpan(["arraycolsep"], []), xe.style.width = H(Ne), ie.push(xe)));
    }
  }
  if (o = C.makeSpan(["mtable"], ie), h.length > 0) {
    for (var Et = C.makeLineSpan("hline", t, m), Yt = C.makeLineSpan("hdashline", t, m), gt = [{
      type: "elem",
      elem: o,
      shift: 0
    }]; h.length > 0; ) {
      var T0 = h.pop(), C0 = T0.pos - Q;
      T0.isDashed ? gt.push({
        type: "elem",
        elem: Yt,
        shift: C0
      }) : gt.push({
        type: "elem",
        elem: Et,
        shift: C0
      });
    }
    o = C.makeVList({
      positionType: "individualShift",
      children: gt
    }, t);
  }
  if (He.length === 0)
    return C.makeSpan(["mord"], [o], t);
  var Ft = C.makeVList({
    positionType: "individualShift",
    children: He
  }, t);
  return Ft = C.makeSpan(["tag"], [Ft], t), C.makeFragment([o, Ft]);
}, $c = {
  c: "center ",
  l: "left ",
  r: "right "
}, Wt = function(e, t) {
  for (var r = [], n = new L.MathNode("mtd", [], ["mtr-glue"]), i = new L.MathNode("mtd", [], ["mml-eqn-num"]), l = 0; l < e.body.length; l++) {
    for (var s = e.body[l], o = [], h = 0; h < s.length; h++)
      o.push(new L.MathNode("mtd", [he(s[h], t)]));
    e.tags && e.tags[l] && (o.unshift(n), o.push(n), e.leqno ? o.unshift(i) : o.push(i)), r.push(new L.MathNode("mtr", o));
  }
  var m = new L.MathNode("mtable", r), d = e.arraystretch === 0.5 ? 0.1 : 0.16 + e.arraystretch - 1 + (e.addJot ? 0.09 : 0);
  m.setAttribute("rowspacing", H(d));
  var g = "", v = "";
  if (e.cols && e.cols.length > 0) {
    var y = e.cols, x = "", A = !1, T = 0, _ = y.length;
    y[0].type === "separator" && (g += "top ", T = 1), y[y.length - 1].type === "separator" && (g += "bottom ", _ -= 1);
    for (var b = T; b < _; b++)
      y[b].type === "align" ? (v += $c[y[b].align], A && (x += "none "), A = !0) : y[b].type === "separator" && A && (x += y[b].separator === "|" ? "solid " : "dashed ", A = !1);
    m.setAttribute("columnalign", v.trim()), /[sd]/.test(x) && m.setAttribute("columnlines", x.trim());
  }
  if (e.colSeparationType === "align") {
    for (var E = e.cols || [], F = "", M = 1; M < E.length; M++)
      F += M % 2 ? "0em " : "1em ";
    m.setAttribute("columnspacing", F.trim());
  } else e.colSeparationType === "alignat" || e.colSeparationType === "gather" ? m.setAttribute("columnspacing", "0em") : e.colSeparationType === "small" ? m.setAttribute("columnspacing", "0.2778em") : e.colSeparationType === "CD" ? m.setAttribute("columnspacing", "0.5em") : m.setAttribute("columnspacing", "1em");
  var z = "", q = e.hLinesBeforeRow;
  g += q[0].length > 0 ? "left " : "", g += q[q.length - 1].length > 0 ? "right " : "";
  for (var I = 1; I < q.length - 1; I++)
    z += q[I].length === 0 ? "none " : q[I][0] ? "dashed " : "solid ";
  return /[sd]/.test(z) && m.setAttribute("rowlines", z.trim()), g !== "" && (m = new L.MathNode("menclose", [m]), m.setAttribute("notation", g.trim())), e.arraystretch && e.arraystretch < 1 && (m = new L.MathNode("mstyle", [m]), m.setAttribute("scriptlevel", "1")), m;
}, Io = function(e, t) {
  e.envName.indexOf("ed") === -1 && Ea(e);
  var r = [], n = e.envName.indexOf("at") > -1 ? "alignat" : "align", i = e.envName === "split", l = v0(e.parser, {
    cols: r,
    addJot: !0,
    autoTag: i ? void 0 : ai(e.envName),
    emptySingleRow: !0,
    colSeparationType: n,
    maxNumCols: i ? 2 : void 0,
    leqno: e.parser.settings.leqno
  }, "display"), s, o = 0, h = {
    type: "ordgroup",
    mode: e.mode,
    body: []
  };
  if (t[0] && t[0].type === "ordgroup") {
    for (var m = "", d = 0; d < t[0].body.length; d++) {
      var g = ee(t[0].body[d], "textord");
      m += g.text;
    }
    s = Number(m), o = s * 2;
  }
  var v = !o;
  l.body.forEach(function(T) {
    for (var _ = 1; _ < T.length; _ += 2) {
      var b = ee(T[_], "styling"), E = ee(b.body[0], "ordgroup");
      E.body.unshift(h);
    }
    if (v)
      o < T.length && (o = T.length);
    else {
      var F = T.length / 2;
      if (s < F)
        throw new O("Too many math in a row: " + ("expected " + s + ", but got " + F), T[0]);
    }
  });
  for (var y = 0; y < o; ++y) {
    var x = "r", A = 0;
    y % 2 === 1 ? x = "l" : y > 0 && v && (A = 1), r[y] = {
      type: "align",
      align: x,
      pregap: A,
      postgap: 0
    };
  }
  return l.colSeparationType = v ? "align" : "alignat", l;
};
Gt({
  type: "array",
  names: ["array", "darray"],
  props: {
    numArgs: 1
  },
  handler(a, e) {
    var t = Da(e[0]), r = t ? [e[0]] : ee(e[0], "ordgroup").body, n = r.map(function(l) {
      var s = Jn(l), o = s.text;
      if ("lcr".indexOf(o) !== -1)
        return {
          type: "align",
          align: o
        };
      if (o === "|")
        return {
          type: "separator",
          separator: "|"
        };
      if (o === ":")
        return {
          type: "separator",
          separator: ":"
        };
      throw new O("Unknown column alignment: " + o, l);
    }), i = {
      cols: n,
      hskipBeforeAndAfter: !0,
      // \@preamble in lttab.dtx
      maxNumCols: n.length
    };
    return v0(a.parser, i, ni(a.envName));
  },
  htmlBuilder: Vt,
  mathmlBuilder: Wt
});
Gt({
  type: "array",
  names: ["matrix", "pmatrix", "bmatrix", "Bmatrix", "vmatrix", "Vmatrix", "matrix*", "pmatrix*", "bmatrix*", "Bmatrix*", "vmatrix*", "Vmatrix*"],
  props: {
    numArgs: 0
  },
  handler(a) {
    var e = {
      matrix: null,
      pmatrix: ["(", ")"],
      bmatrix: ["[", "]"],
      Bmatrix: ["\\{", "\\}"],
      vmatrix: ["|", "|"],
      Vmatrix: ["\\Vert", "\\Vert"]
    }[a.envName.replace("*", "")], t = "c", r = {
      hskipBeforeAndAfter: !1,
      cols: [{
        type: "align",
        align: t
      }]
    };
    if (a.envName.charAt(a.envName.length - 1) === "*") {
      var n = a.parser;
      if (n.consumeSpaces(), n.fetch().text === "[") {
        if (n.consume(), n.consumeSpaces(), t = n.fetch().text, "lcr".indexOf(t) === -1)
          throw new O("Expected l or c or r", n.nextToken);
        n.consume(), n.consumeSpaces(), n.expect("]"), n.consume(), r.cols = [{
          type: "align",
          align: t
        }];
      }
    }
    var i = v0(a.parser, r, ni(a.envName)), l = Math.max(0, ...i.body.map((s) => s.length));
    return i.cols = new Array(l).fill({
      type: "align",
      align: t
    }), e ? {
      type: "leftright",
      mode: a.mode,
      body: [i],
      left: e[0],
      right: e[1],
      rightColor: void 0
      // \right uninfluenced by \color in array
    } : i;
  },
  htmlBuilder: Vt,
  mathmlBuilder: Wt
});
Gt({
  type: "array",
  names: ["smallmatrix"],
  props: {
    numArgs: 0
  },
  handler(a) {
    var e = {
      arraystretch: 0.5
    }, t = v0(a.parser, e, "script");
    return t.colSeparationType = "small", t;
  },
  htmlBuilder: Vt,
  mathmlBuilder: Wt
});
Gt({
  type: "array",
  names: ["subarray"],
  props: {
    numArgs: 1
  },
  handler(a, e) {
    var t = Da(e[0]), r = t ? [e[0]] : ee(e[0], "ordgroup").body, n = r.map(function(l) {
      var s = Jn(l), o = s.text;
      if ("lc".indexOf(o) !== -1)
        return {
          type: "align",
          align: o
        };
      throw new O("Unknown column alignment: " + o, l);
    });
    if (n.length > 1)
      throw new O("{subarray} can contain only one column");
    var i = {
      cols: n,
      hskipBeforeAndAfter: !1,
      arraystretch: 0.5
    };
    if (i = v0(a.parser, i, "script"), i.body.length > 0 && i.body[0].length > 1)
      throw new O("{subarray} can contain only one column");
    return i;
  },
  htmlBuilder: Vt,
  mathmlBuilder: Wt
});
Gt({
  type: "array",
  names: ["cases", "dcases", "rcases", "drcases"],
  props: {
    numArgs: 0
  },
  handler(a) {
    var e = {
      arraystretch: 1.2,
      cols: [{
        type: "align",
        align: "l",
        pregap: 0,
        // TODO(kevinb) get the current style.
        // For now we use the metrics for TEXT style which is what we were
        // doing before.  Before attempting to get the current style we
        // should look at TeX's behavior especially for \over and matrices.
        postgap: 1
        /* 1em quad */
      }, {
        type: "align",
        align: "l",
        pregap: 0,
        postgap: 0
      }]
    }, t = v0(a.parser, e, ni(a.envName));
    return {
      type: "leftright",
      mode: a.mode,
      body: [t],
      left: a.envName.indexOf("r") > -1 ? "." : "\\{",
      right: a.envName.indexOf("r") > -1 ? "\\}" : ".",
      rightColor: void 0
    };
  },
  htmlBuilder: Vt,
  mathmlBuilder: Wt
});
Gt({
  type: "array",
  names: ["align", "align*", "aligned", "split"],
  props: {
    numArgs: 0
  },
  handler: Io,
  htmlBuilder: Vt,
  mathmlBuilder: Wt
});
Gt({
  type: "array",
  names: ["gathered", "gather", "gather*"],
  props: {
    numArgs: 0
  },
  handler(a) {
    Y.contains(["gather", "gather*"], a.envName) && Ea(a);
    var e = {
      cols: [{
        type: "align",
        align: "c"
      }],
      addJot: !0,
      colSeparationType: "gather",
      autoTag: ai(a.envName),
      emptySingleRow: !0,
      leqno: a.parser.settings.leqno
    };
    return v0(a.parser, e, "display");
  },
  htmlBuilder: Vt,
  mathmlBuilder: Wt
});
Gt({
  type: "array",
  names: ["alignat", "alignat*", "alignedat"],
  props: {
    numArgs: 1
  },
  handler: Io,
  htmlBuilder: Vt,
  mathmlBuilder: Wt
});
Gt({
  type: "array",
  names: ["equation", "equation*"],
  props: {
    numArgs: 0
  },
  handler(a) {
    Ea(a);
    var e = {
      autoTag: ai(a.envName),
      emptySingleRow: !0,
      singleRow: !0,
      maxNumCols: 1,
      leqno: a.parser.settings.leqno
    };
    return v0(a.parser, e, "display");
  },
  htmlBuilder: Vt,
  mathmlBuilder: Wt
});
Gt({
  type: "array",
  names: ["CD"],
  props: {
    numArgs: 0
  },
  handler(a) {
    return Ea(a), qc(a.parser);
  },
  htmlBuilder: Vt,
  mathmlBuilder: Wt
});
p("\\nonumber", "\\gdef\\@eqnsw{0}");
p("\\notag", "\\nonumber");
G({
  type: "text",
  // Doesn't matter what this is.
  names: ["\\hline", "\\hdashline"],
  props: {
    numArgs: 0,
    allowedInText: !0,
    allowedInMath: !0
  },
  handler(a, e) {
    throw new O(a.funcName + " valid only within array environment");
  }
});
var ol = No;
G({
  type: "environment",
  names: ["\\begin", "\\end"],
  props: {
    numArgs: 1,
    argTypes: ["text"]
  },
  handler(a, e) {
    var {
      parser: t,
      funcName: r
    } = a, n = e[0];
    if (n.type !== "ordgroup")
      throw new O("Invalid environment name", n);
    for (var i = "", l = 0; l < n.body.length; ++l)
      i += ee(n.body[l], "textord").text;
    if (r === "\\begin") {
      if (!ol.hasOwnProperty(i))
        throw new O("No such environment: " + i, n);
      var s = ol[i], {
        args: o,
        optArgs: h
      } = t.parseArguments("\\begin{" + i + "}", s), m = {
        mode: t.mode,
        envName: i,
        parser: t
      }, d = s.handler(m, o, h);
      t.expect("\\end", !1);
      var g = t.nextToken, v = ee(t.parseFunction(), "environment");
      if (v.name !== i)
        throw new O("Mismatch: \\begin{" + i + "} matched by \\end{" + v.name + "}", g);
      return d;
    }
    return {
      type: "environment",
      mode: t.mode,
      name: i,
      nameGroup: n
    };
  }
});
var Lo = (a, e) => {
  var t = a.font, r = e.withFont(t);
  return ne(a.body, r);
}, Oo = (a, e) => {
  var t = a.font, r = e.withFont(t);
  return he(a.body, r);
}, ul = {
  "\\Bbb": "\\mathbb",
  "\\bold": "\\mathbf",
  "\\frak": "\\mathfrak",
  "\\bm": "\\boldsymbol"
};
G({
  type: "font",
  names: [
    // styles, except \boldsymbol defined below
    "\\mathrm",
    "\\mathit",
    "\\mathbf",
    "\\mathnormal",
    "\\mathsfit",
    // families
    "\\mathbb",
    "\\mathcal",
    "\\mathfrak",
    "\\mathscr",
    "\\mathsf",
    "\\mathtt",
    // aliases, except \bm defined below
    "\\Bbb",
    "\\bold",
    "\\frak"
  ],
  props: {
    numArgs: 1,
    allowedInArgument: !0
  },
  handler: (a, e) => {
    var {
      parser: t,
      funcName: r
    } = a, n = fa(e[0]), i = r;
    return i in ul && (i = ul[i]), {
      type: "font",
      mode: t.mode,
      font: i.slice(1),
      body: n
    };
  },
  htmlBuilder: Lo,
  mathmlBuilder: Oo
});
G({
  type: "mclass",
  names: ["\\boldsymbol", "\\bm"],
  props: {
    numArgs: 1
  },
  handler: (a, e) => {
    var {
      parser: t
    } = a, r = e[0], n = Y.isCharacterBox(r);
    return {
      type: "mclass",
      mode: t.mode,
      mclass: Aa(r),
      body: [{
        type: "font",
        mode: t.mode,
        font: "boldsymbol",
        body: r
      }],
      isCharacterBox: n
    };
  }
});
G({
  type: "font",
  names: ["\\rm", "\\sf", "\\tt", "\\bf", "\\it", "\\cal"],
  props: {
    numArgs: 0,
    allowedInText: !0
  },
  handler: (a, e) => {
    var {
      parser: t,
      funcName: r,
      breakOnTokenText: n
    } = a, {
      mode: i
    } = t, l = t.parseExpression(!0, n), s = "math" + r.slice(1);
    return {
      type: "font",
      mode: i,
      font: s,
      body: {
        type: "ordgroup",
        mode: t.mode,
        body: l
      }
    };
  },
  htmlBuilder: Lo,
  mathmlBuilder: Oo
});
var qo = (a, e) => {
  var t = e;
  return a === "display" ? t = t.id >= K.SCRIPT.id ? t.text() : K.DISPLAY : a === "text" && t.size === K.DISPLAY.size ? t = K.TEXT : a === "script" ? t = K.SCRIPT : a === "scriptscript" && (t = K.SCRIPTSCRIPT), t;
}, ii = (a, e) => {
  var t = qo(a.size, e.style), r = t.fracNum(), n = t.fracDen(), i;
  i = e.havingStyle(r);
  var l = ne(a.numer, i, e);
  if (a.continued) {
    var s = 8.5 / e.fontMetrics().ptPerEm, o = 3.5 / e.fontMetrics().ptPerEm;
    l.height = l.height < s ? s : l.height, l.depth = l.depth < o ? o : l.depth;
  }
  i = e.havingStyle(n);
  var h = ne(a.denom, i, e), m, d, g;
  a.hasBarLine ? (a.barSize ? (d = ve(a.barSize, e), m = C.makeLineSpan("frac-line", e, d)) : m = C.makeLineSpan("frac-line", e), d = m.height, g = m.height) : (m = null, d = 0, g = e.fontMetrics().defaultRuleThickness);
  var v, y, x;
  t.size === K.DISPLAY.size || a.size === "display" ? (v = e.fontMetrics().num1, d > 0 ? y = 3 * g : y = 7 * g, x = e.fontMetrics().denom1) : (d > 0 ? (v = e.fontMetrics().num2, y = g) : (v = e.fontMetrics().num3, y = 3 * g), x = e.fontMetrics().denom2);
  var A;
  if (m) {
    var _ = e.fontMetrics().axisHeight;
    v - l.depth - (_ + 0.5 * d) < y && (v += y - (v - l.depth - (_ + 0.5 * d))), _ - 0.5 * d - (h.height - x) < y && (x += y - (_ - 0.5 * d - (h.height - x)));
    var b = -(_ - 0.5 * d);
    A = C.makeVList({
      positionType: "individualShift",
      children: [{
        type: "elem",
        elem: h,
        shift: x
      }, {
        type: "elem",
        elem: m,
        shift: b
      }, {
        type: "elem",
        elem: l,
        shift: -v
      }]
    }, e);
  } else {
    var T = v - l.depth - (h.height - x);
    T < y && (v += 0.5 * (y - T), x += 0.5 * (y - T)), A = C.makeVList({
      positionType: "individualShift",
      children: [{
        type: "elem",
        elem: h,
        shift: x
      }, {
        type: "elem",
        elem: l,
        shift: -v
      }]
    }, e);
  }
  i = e.havingStyle(t), A.height *= i.sizeMultiplier / e.sizeMultiplier, A.depth *= i.sizeMultiplier / e.sizeMultiplier;
  var E;
  t.size === K.DISPLAY.size ? E = e.fontMetrics().delim1 : t.size === K.SCRIPTSCRIPT.size ? E = e.havingStyle(K.SCRIPT).fontMetrics().delim2 : E = e.fontMetrics().delim2;
  var F, M;
  return a.leftDelim == null ? F = vr(e, ["mopen"]) : F = a0.customSizedDelim(a.leftDelim, E, !0, e.havingStyle(t), a.mode, ["mopen"]), a.continued ? M = C.makeSpan([]) : a.rightDelim == null ? M = vr(e, ["mclose"]) : M = a0.customSizedDelim(a.rightDelim, E, !0, e.havingStyle(t), a.mode, ["mclose"]), C.makeSpan(["mord"].concat(i.sizingClasses(e)), [F, C.makeSpan(["mfrac"], [A]), M], e);
}, li = (a, e) => {
  var t = new L.MathNode("mfrac", [he(a.numer, e), he(a.denom, e)]);
  if (!a.hasBarLine)
    t.setAttribute("linethickness", "0px");
  else if (a.barSize) {
    var r = ve(a.barSize, e);
    t.setAttribute("linethickness", H(r));
  }
  var n = qo(a.size, e.style);
  if (n.size !== e.style.size) {
    t = new L.MathNode("mstyle", [t]);
    var i = n.size === K.DISPLAY.size ? "true" : "false";
    t.setAttribute("displaystyle", i), t.setAttribute("scriptlevel", "0");
  }
  if (a.leftDelim != null || a.rightDelim != null) {
    var l = [];
    if (a.leftDelim != null) {
      var s = new L.MathNode("mo", [new L.TextNode(a.leftDelim.replace("\\", ""))]);
      s.setAttribute("fence", "true"), l.push(s);
    }
    if (l.push(t), a.rightDelim != null) {
      var o = new L.MathNode("mo", [new L.TextNode(a.rightDelim.replace("\\", ""))]);
      o.setAttribute("fence", "true"), l.push(o);
    }
    return Kn(l);
  }
  return t;
};
G({
  type: "genfrac",
  names: [
    "\\dfrac",
    "\\frac",
    "\\tfrac",
    "\\dbinom",
    "\\binom",
    "\\tbinom",
    "\\\\atopfrac",
    // can’t be entered directly
    "\\\\bracefrac",
    "\\\\brackfrac"
    // ditto
  ],
  props: {
    numArgs: 2,
    allowedInArgument: !0
  },
  handler: (a, e) => {
    var {
      parser: t,
      funcName: r
    } = a, n = e[0], i = e[1], l, s = null, o = null, h = "auto";
    switch (r) {
      case "\\dfrac":
      case "\\frac":
      case "\\tfrac":
        l = !0;
        break;
      case "\\\\atopfrac":
        l = !1;
        break;
      case "\\dbinom":
      case "\\binom":
      case "\\tbinom":
        l = !1, s = "(", o = ")";
        break;
      case "\\\\bracefrac":
        l = !1, s = "\\{", o = "\\}";
        break;
      case "\\\\brackfrac":
        l = !1, s = "[", o = "]";
        break;
      default:
        throw new Error("Unrecognized genfrac command");
    }
    switch (r) {
      case "\\dfrac":
      case "\\dbinom":
        h = "display";
        break;
      case "\\tfrac":
      case "\\tbinom":
        h = "text";
        break;
    }
    return {
      type: "genfrac",
      mode: t.mode,
      continued: !1,
      numer: n,
      denom: i,
      hasBarLine: l,
      leftDelim: s,
      rightDelim: o,
      size: h,
      barSize: null
    };
  },
  htmlBuilder: ii,
  mathmlBuilder: li
});
G({
  type: "genfrac",
  names: ["\\cfrac"],
  props: {
    numArgs: 2
  },
  handler: (a, e) => {
    var {
      parser: t,
      funcName: r
    } = a, n = e[0], i = e[1];
    return {
      type: "genfrac",
      mode: t.mode,
      continued: !0,
      numer: n,
      denom: i,
      hasBarLine: !0,
      leftDelim: null,
      rightDelim: null,
      size: "display",
      barSize: null
    };
  }
});
G({
  type: "infix",
  names: ["\\over", "\\choose", "\\atop", "\\brace", "\\brack"],
  props: {
    numArgs: 0,
    infix: !0
  },
  handler(a) {
    var {
      parser: e,
      funcName: t,
      token: r
    } = a, n;
    switch (t) {
      case "\\over":
        n = "\\frac";
        break;
      case "\\choose":
        n = "\\binom";
        break;
      case "\\atop":
        n = "\\\\atopfrac";
        break;
      case "\\brace":
        n = "\\\\bracefrac";
        break;
      case "\\brack":
        n = "\\\\brackfrac";
        break;
      default:
        throw new Error("Unrecognized infix genfrac command");
    }
    return {
      type: "infix",
      mode: e.mode,
      replaceWith: n,
      token: r
    };
  }
});
var cl = ["display", "text", "script", "scriptscript"], hl = function(e) {
  var t = null;
  return e.length > 0 && (t = e, t = t === "." ? null : t), t;
};
G({
  type: "genfrac",
  names: ["\\genfrac"],
  props: {
    numArgs: 6,
    allowedInArgument: !0,
    argTypes: ["math", "math", "size", "text", "math", "math"]
  },
  handler(a, e) {
    var {
      parser: t
    } = a, r = e[4], n = e[5], i = fa(e[0]), l = i.type === "atom" && i.family === "open" ? hl(i.text) : null, s = fa(e[1]), o = s.type === "atom" && s.family === "close" ? hl(s.text) : null, h = ee(e[2], "size"), m, d = null;
    h.isBlank ? m = !0 : (d = h.value, m = d.number > 0);
    var g = "auto", v = e[3];
    if (v.type === "ordgroup") {
      if (v.body.length > 0) {
        var y = ee(v.body[0], "textord");
        g = cl[Number(y.text)];
      }
    } else
      v = ee(v, "textord"), g = cl[Number(v.text)];
    return {
      type: "genfrac",
      mode: t.mode,
      numer: r,
      denom: n,
      continued: !1,
      hasBarLine: m,
      barSize: d,
      leftDelim: l,
      rightDelim: o,
      size: g
    };
  },
  htmlBuilder: ii,
  mathmlBuilder: li
});
G({
  type: "infix",
  names: ["\\above"],
  props: {
    numArgs: 1,
    argTypes: ["size"],
    infix: !0
  },
  handler(a, e) {
    var {
      parser: t,
      funcName: r,
      token: n
    } = a;
    return {
      type: "infix",
      mode: t.mode,
      replaceWith: "\\\\abovefrac",
      size: ee(e[0], "size").value,
      token: n
    };
  }
});
G({
  type: "genfrac",
  names: ["\\\\abovefrac"],
  props: {
    numArgs: 3,
    argTypes: ["math", "size", "math"]
  },
  handler: (a, e) => {
    var {
      parser: t,
      funcName: r
    } = a, n = e[0], i = C1(ee(e[1], "infix").size), l = e[2], s = i.number > 0;
    return {
      type: "genfrac",
      mode: t.mode,
      numer: n,
      denom: l,
      continued: !1,
      hasBarLine: s,
      barSize: i,
      leftDelim: null,
      rightDelim: null,
      size: "auto"
    };
  },
  htmlBuilder: ii,
  mathmlBuilder: li
});
var Po = (a, e) => {
  var t = e.style, r, n;
  a.type === "supsub" ? (r = a.sup ? ne(a.sup, e.havingStyle(t.sup()), e) : ne(a.sub, e.havingStyle(t.sub()), e), n = ee(a.base, "horizBrace")) : n = ee(a, "horizBrace");
  var i = ne(n.base, e.havingBaseStyle(K.DISPLAY)), l = l0.svgSpan(n, e), s;
  if (n.isOver ? (s = C.makeVList({
    positionType: "firstBaseline",
    children: [{
      type: "elem",
      elem: i
    }, {
      type: "kern",
      size: 0.1
    }, {
      type: "elem",
      elem: l
    }]
  }, e), s.children[0].children[0].children[1].classes.push("svg-align")) : (s = C.makeVList({
    positionType: "bottom",
    positionData: i.depth + 0.1 + l.height,
    children: [{
      type: "elem",
      elem: l
    }, {
      type: "kern",
      size: 0.1
    }, {
      type: "elem",
      elem: i
    }]
  }, e), s.children[0].children[0].children[0].classes.push("svg-align")), r) {
    var o = C.makeSpan(["mord", n.isOver ? "mover" : "munder"], [s], e);
    n.isOver ? s = C.makeVList({
      positionType: "firstBaseline",
      children: [{
        type: "elem",
        elem: o
      }, {
        type: "kern",
        size: 0.2
      }, {
        type: "elem",
        elem: r
      }]
    }, e) : s = C.makeVList({
      positionType: "bottom",
      positionData: o.depth + 0.2 + r.height + r.depth,
      children: [{
        type: "elem",
        elem: r
      }, {
        type: "kern",
        size: 0.2
      }, {
        type: "elem",
        elem: o
      }]
    }, e);
  }
  return C.makeSpan(["mord", n.isOver ? "mover" : "munder"], [s], e);
}, e4 = (a, e) => {
  var t = l0.mathMLnode(a.label);
  return new L.MathNode(a.isOver ? "mover" : "munder", [he(a.base, e), t]);
};
G({
  type: "horizBrace",
  names: ["\\overbrace", "\\underbrace"],
  props: {
    numArgs: 1
  },
  handler(a, e) {
    var {
      parser: t,
      funcName: r
    } = a;
    return {
      type: "horizBrace",
      mode: t.mode,
      label: r,
      isOver: /^\\over/.test(r),
      base: e[0]
    };
  },
  htmlBuilder: Po,
  mathmlBuilder: e4
});
G({
  type: "href",
  names: ["\\href"],
  props: {
    numArgs: 2,
    argTypes: ["url", "original"],
    allowedInText: !0
  },
  handler: (a, e) => {
    var {
      parser: t
    } = a, r = e[1], n = ee(e[0], "url").url;
    return t.settings.isTrusted({
      command: "\\href",
      url: n
    }) ? {
      type: "href",
      mode: t.mode,
      href: n,
      body: Ae(r)
    } : t.formatUnsupportedCmd("\\href");
  },
  htmlBuilder: (a, e) => {
    var t = Fe(a.body, e, !1);
    return C.makeAnchor(a.href, [], t, e);
  },
  mathmlBuilder: (a, e) => {
    var t = g0(a.body, e);
    return t instanceof et || (t = new et("mrow", [t])), t.setAttribute("href", a.href), t;
  }
});
G({
  type: "href",
  names: ["\\url"],
  props: {
    numArgs: 1,
    argTypes: ["url"],
    allowedInText: !0
  },
  handler: (a, e) => {
    var {
      parser: t
    } = a, r = ee(e[0], "url").url;
    if (!t.settings.isTrusted({
      command: "\\url",
      url: r
    }))
      return t.formatUnsupportedCmd("\\url");
    for (var n = [], i = 0; i < r.length; i++) {
      var l = r[i];
      l === "~" && (l = "\\textasciitilde"), n.push({
        type: "textord",
        mode: "text",
        text: l
      });
    }
    var s = {
      type: "text",
      mode: t.mode,
      font: "\\texttt",
      body: n
    };
    return {
      type: "href",
      mode: t.mode,
      href: r,
      body: Ae(s)
    };
  }
});
G({
  type: "hbox",
  names: ["\\hbox"],
  props: {
    numArgs: 1,
    argTypes: ["text"],
    allowedInText: !0,
    primitive: !0
  },
  handler(a, e) {
    var {
      parser: t
    } = a;
    return {
      type: "hbox",
      mode: t.mode,
      body: Ae(e[0])
    };
  },
  htmlBuilder(a, e) {
    var t = Fe(a.body, e, !1);
    return C.makeFragment(t);
  },
  mathmlBuilder(a, e) {
    return new L.MathNode("mrow", Ye(a.body, e));
  }
});
G({
  type: "html",
  names: ["\\htmlClass", "\\htmlId", "\\htmlStyle", "\\htmlData"],
  props: {
    numArgs: 2,
    argTypes: ["raw", "original"],
    allowedInText: !0
  },
  handler: (a, e) => {
    var {
      parser: t,
      funcName: r,
      token: n
    } = a, i = ee(e[0], "raw").string, l = e[1];
    t.settings.strict && t.settings.reportNonstrict("htmlExtension", "HTML extension is disabled on strict mode");
    var s, o = {};
    switch (r) {
      case "\\htmlClass":
        o.class = i, s = {
          command: "\\htmlClass",
          class: i
        };
        break;
      case "\\htmlId":
        o.id = i, s = {
          command: "\\htmlId",
          id: i
        };
        break;
      case "\\htmlStyle":
        o.style = i, s = {
          command: "\\htmlStyle",
          style: i
        };
        break;
      case "\\htmlData": {
        for (var h = i.split(","), m = 0; m < h.length; m++) {
          var d = h[m].split("=");
          if (d.length !== 2)
            throw new O("Error parsing key-value for \\htmlData");
          o["data-" + d[0].trim()] = d[1].trim();
        }
        s = {
          command: "\\htmlData",
          attributes: o
        };
        break;
      }
      default:
        throw new Error("Unrecognized html command");
    }
    return t.settings.isTrusted(s) ? {
      type: "html",
      mode: t.mode,
      attributes: o,
      body: Ae(l)
    } : t.formatUnsupportedCmd(r);
  },
  htmlBuilder: (a, e) => {
    var t = Fe(a.body, e, !1), r = ["enclosing"];
    a.attributes.class && r.push(...a.attributes.class.trim().split(/\s+/));
    var n = C.makeSpan(r, t, e);
    for (var i in a.attributes)
      i !== "class" && a.attributes.hasOwnProperty(i) && n.setAttribute(i, a.attributes[i]);
    return n;
  },
  mathmlBuilder: (a, e) => g0(a.body, e)
});
G({
  type: "htmlmathml",
  names: ["\\html@mathml"],
  props: {
    numArgs: 2,
    allowedInText: !0
  },
  handler: (a, e) => {
    var {
      parser: t
    } = a;
    return {
      type: "htmlmathml",
      mode: t.mode,
      html: Ae(e[0]),
      mathml: Ae(e[1])
    };
  },
  htmlBuilder: (a, e) => {
    var t = Fe(a.html, e, !1);
    return C.makeFragment(t);
  },
  mathmlBuilder: (a, e) => g0(a.mathml, e)
});
var Ya = function(e) {
  if (/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))
    return {
      number: +e,
      unit: "bp"
    };
  var t = /([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);
  if (!t)
    throw new O("Invalid size: '" + e + "' in \\includegraphics");
  var r = {
    number: +(t[1] + t[2]),
    // sign + magnitude, cast to number
    unit: t[3]
  };
  if (!no(r))
    throw new O("Invalid unit: '" + r.unit + "' in \\includegraphics.");
  return r;
};
G({
  type: "includegraphics",
  names: ["\\includegraphics"],
  props: {
    numArgs: 1,
    numOptionalArgs: 1,
    argTypes: ["raw", "url"],
    allowedInText: !1
  },
  handler: (a, e, t) => {
    var {
      parser: r
    } = a, n = {
      number: 0,
      unit: "em"
    }, i = {
      number: 0.9,
      unit: "em"
    }, l = {
      number: 0,
      unit: "em"
    }, s = "";
    if (t[0])
      for (var o = ee(t[0], "raw").string, h = o.split(","), m = 0; m < h.length; m++) {
        var d = h[m].split("=");
        if (d.length === 2) {
          var g = d[1].trim();
          switch (d[0].trim()) {
            case "alt":
              s = g;
              break;
            case "width":
              n = Ya(g);
              break;
            case "height":
              i = Ya(g);
              break;
            case "totalheight":
              l = Ya(g);
              break;
            default:
              throw new O("Invalid key: '" + d[0] + "' in \\includegraphics.");
          }
        }
      }
    var v = ee(e[0], "url").url;
    return s === "" && (s = v, s = s.replace(/^.*[\\/]/, ""), s = s.substring(0, s.lastIndexOf("."))), r.settings.isTrusted({
      command: "\\includegraphics",
      url: v
    }) ? {
      type: "includegraphics",
      mode: r.mode,
      alt: s,
      width: n,
      height: i,
      totalheight: l,
      src: v
    } : r.formatUnsupportedCmd("\\includegraphics");
  },
  htmlBuilder: (a, e) => {
    var t = ve(a.height, e), r = 0;
    a.totalheight.number > 0 && (r = ve(a.totalheight, e) - t);
    var n = 0;
    a.width.number > 0 && (n = ve(a.width, e));
    var i = {
      height: H(t + r)
    };
    n > 0 && (i.width = H(n)), r > 0 && (i.verticalAlign = H(-r));
    var l = new ec(a.src, a.alt, i);
    return l.height = t, l.depth = r, l;
  },
  mathmlBuilder: (a, e) => {
    var t = new L.MathNode("mglyph", []);
    t.setAttribute("alt", a.alt);
    var r = ve(a.height, e), n = 0;
    if (a.totalheight.number > 0 && (n = ve(a.totalheight, e) - r, t.setAttribute("valign", H(-n))), t.setAttribute("height", H(r + n)), a.width.number > 0) {
      var i = ve(a.width, e);
      t.setAttribute("width", H(i));
    }
    return t.setAttribute("src", a.src), t;
  }
});
G({
  type: "kern",
  names: ["\\kern", "\\mkern", "\\hskip", "\\mskip"],
  props: {
    numArgs: 1,
    argTypes: ["size"],
    primitive: !0,
    allowedInText: !0
  },
  handler(a, e) {
    var {
      parser: t,
      funcName: r
    } = a, n = ee(e[0], "size");
    if (t.settings.strict) {
      var i = r[1] === "m", l = n.value.unit === "mu";
      i ? (l || t.settings.reportNonstrict("mathVsTextUnits", "LaTeX's " + r + " supports only mu units, " + ("not " + n.value.unit + " units")), t.mode !== "math" && t.settings.reportNonstrict("mathVsTextUnits", "LaTeX's " + r + " works only in math mode")) : l && t.settings.reportNonstrict("mathVsTextUnits", "LaTeX's " + r + " doesn't support mu units");
    }
    return {
      type: "kern",
      mode: t.mode,
      dimension: n.value
    };
  },
  htmlBuilder(a, e) {
    return C.makeGlue(a.dimension, e);
  },
  mathmlBuilder(a, e) {
    var t = ve(a.dimension, e);
    return new L.SpaceNode(t);
  }
});
G({
  type: "lap",
  names: ["\\mathllap", "\\mathrlap", "\\mathclap"],
  props: {
    numArgs: 1,
    allowedInText: !0
  },
  handler: (a, e) => {
    var {
      parser: t,
      funcName: r
    } = a, n = e[0];
    return {
      type: "lap",
      mode: t.mode,
      alignment: r.slice(5),
      body: n
    };
  },
  htmlBuilder: (a, e) => {
    var t;
    a.alignment === "clap" ? (t = C.makeSpan([], [ne(a.body, e)]), t = C.makeSpan(["inner"], [t], e)) : t = C.makeSpan(["inner"], [ne(a.body, e)]);
    var r = C.makeSpan(["fix"], []), n = C.makeSpan([a.alignment], [t, r], e), i = C.makeSpan(["strut"]);
    return i.style.height = H(n.height + n.depth), n.depth && (i.style.verticalAlign = H(-n.depth)), n.children.unshift(i), n = C.makeSpan(["thinbox"], [n], e), C.makeSpan(["mord", "vbox"], [n], e);
  },
  mathmlBuilder: (a, e) => {
    var t = new L.MathNode("mpadded", [he(a.body, e)]);
    if (a.alignment !== "rlap") {
      var r = a.alignment === "llap" ? "-1" : "-0.5";
      t.setAttribute("lspace", r + "width");
    }
    return t.setAttribute("width", "0px"), t;
  }
});
G({
  type: "styling",
  names: ["\\(", "$"],
  props: {
    numArgs: 0,
    allowedInText: !0,
    allowedInMath: !1
  },
  handler(a, e) {
    var {
      funcName: t,
      parser: r
    } = a, n = r.mode;
    r.switchMode("math");
    var i = t === "\\(" ? "\\)" : "$", l = r.parseExpression(!1, i);
    return r.expect(i), r.switchMode(n), {
      type: "styling",
      mode: r.mode,
      style: "text",
      body: l
    };
  }
});
G({
  type: "text",
  // Doesn't matter what this is.
  names: ["\\)", "\\]"],
  props: {
    numArgs: 0,
    allowedInText: !0,
    allowedInMath: !1
  },
  handler(a, e) {
    throw new O("Mismatched " + a.funcName);
  }
});
var ml = (a, e) => {
  switch (e.style.size) {
    case K.DISPLAY.size:
      return a.display;
    case K.TEXT.size:
      return a.text;
    case K.SCRIPT.size:
      return a.script;
    case K.SCRIPTSCRIPT.size:
      return a.scriptscript;
    default:
      return a.text;
  }
};
G({
  type: "mathchoice",
  names: ["\\mathchoice"],
  props: {
    numArgs: 4,
    primitive: !0
  },
  handler: (a, e) => {
    var {
      parser: t
    } = a;
    return {
      type: "mathchoice",
      mode: t.mode,
      display: Ae(e[0]),
      text: Ae(e[1]),
      script: Ae(e[2]),
      scriptscript: Ae(e[3])
    };
  },
  htmlBuilder: (a, e) => {
    var t = ml(a, e), r = Fe(t, e, !1);
    return C.makeFragment(r);
  },
  mathmlBuilder: (a, e) => {
    var t = ml(a, e);
    return g0(t, e);
  }
});
var Ho = (a, e, t, r, n, i, l) => {
  a = C.makeSpan([], [a]);
  var s = t && Y.isCharacterBox(t), o, h;
  if (e) {
    var m = ne(e, r.havingStyle(n.sup()), r);
    h = {
      elem: m,
      kern: Math.max(r.fontMetrics().bigOpSpacing1, r.fontMetrics().bigOpSpacing3 - m.depth)
    };
  }
  if (t) {
    var d = ne(t, r.havingStyle(n.sub()), r);
    o = {
      elem: d,
      kern: Math.max(r.fontMetrics().bigOpSpacing2, r.fontMetrics().bigOpSpacing4 - d.height)
    };
  }
  var g;
  if (h && o) {
    var v = r.fontMetrics().bigOpSpacing5 + o.elem.height + o.elem.depth + o.kern + a.depth + l;
    g = C.makeVList({
      positionType: "bottom",
      positionData: v,
      children: [{
        type: "kern",
        size: r.fontMetrics().bigOpSpacing5
      }, {
        type: "elem",
        elem: o.elem,
        marginLeft: H(-i)
      }, {
        type: "kern",
        size: o.kern
      }, {
        type: "elem",
        elem: a
      }, {
        type: "kern",
        size: h.kern
      }, {
        type: "elem",
        elem: h.elem,
        marginLeft: H(i)
      }, {
        type: "kern",
        size: r.fontMetrics().bigOpSpacing5
      }]
    }, r);
  } else if (o) {
    var y = a.height - l;
    g = C.makeVList({
      positionType: "top",
      positionData: y,
      children: [{
        type: "kern",
        size: r.fontMetrics().bigOpSpacing5
      }, {
        type: "elem",
        elem: o.elem,
        marginLeft: H(-i)
      }, {
        type: "kern",
        size: o.kern
      }, {
        type: "elem",
        elem: a
      }]
    }, r);
  } else if (h) {
    var x = a.depth + l;
    g = C.makeVList({
      positionType: "bottom",
      positionData: x,
      children: [{
        type: "elem",
        elem: a
      }, {
        type: "kern",
        size: h.kern
      }, {
        type: "elem",
        elem: h.elem,
        marginLeft: H(i)
      }, {
        type: "kern",
        size: r.fontMetrics().bigOpSpacing5
      }]
    }, r);
  } else
    return a;
  var A = [g];
  if (o && i !== 0 && !s) {
    var T = C.makeSpan(["mspace"], [], r);
    T.style.marginRight = H(i), A.unshift(T);
  }
  return C.makeSpan(["mop", "op-limits"], A, r);
}, Uo = ["\\smallint"], Y0 = (a, e) => {
  var t, r, n = !1, i;
  a.type === "supsub" ? (t = a.sup, r = a.sub, i = ee(a.base, "op"), n = !0) : i = ee(a, "op");
  var l = e.style, s = !1;
  l.size === K.DISPLAY.size && i.symbol && !Y.contains(Uo, i.name) && (s = !0);
  var o;
  if (i.symbol) {
    var h = s ? "Size2-Regular" : "Size1-Regular", m = "";
    if ((i.name === "\\oiint" || i.name === "\\oiiint") && (m = i.name.slice(1), i.name = m === "oiint" ? "\\iint" : "\\iiint"), o = C.makeSymbol(i.name, h, "math", e, ["mop", "op-symbol", s ? "large-op" : "small-op"]), m.length > 0) {
      var d = o.italic, g = C.staticSvg(m + "Size" + (s ? "2" : "1"), e);
      o = C.makeVList({
        positionType: "individualShift",
        children: [{
          type: "elem",
          elem: o,
          shift: 0
        }, {
          type: "elem",
          elem: g,
          shift: s ? 0.08 : 0
        }]
      }, e), i.name = "\\" + m, o.classes.unshift("mop"), o.italic = d;
    }
  } else if (i.body) {
    var v = Fe(i.body, e, !0);
    v.length === 1 && v[0] instanceof ut ? (o = v[0], o.classes[0] = "mop") : o = C.makeSpan(["mop"], v, e);
  } else {
    for (var y = [], x = 1; x < i.name.length; x++)
      y.push(C.mathsym(i.name[x], i.mode, e));
    o = C.makeSpan(["mop"], y, e);
  }
  var A = 0, T = 0;
  return (o instanceof ut || i.name === "\\oiint" || i.name === "\\oiiint") && !i.suppressBaseShift && (A = (o.height - o.depth) / 2 - e.fontMetrics().axisHeight, T = o.italic), n ? Ho(o, t, r, e, l, T, A) : (A && (o.style.position = "relative", o.style.top = H(A)), o);
}, wr = (a, e) => {
  var t;
  if (a.symbol)
    t = new et("mo", [ct(a.name, a.mode)]), Y.contains(Uo, a.name) && t.setAttribute("largeop", "false");
  else if (a.body)
    t = new et("mo", Ye(a.body, e));
  else {
    t = new et("mi", [new It(a.name.slice(1))]);
    var r = new et("mo", [ct("⁡", "text")]);
    a.parentIsSupSub ? t = new et("mrow", [t, r]) : t = go([t, r]);
  }
  return t;
}, t4 = {
  "∏": "\\prod",
  "∐": "\\coprod",
  "∑": "\\sum",
  "⋀": "\\bigwedge",
  "⋁": "\\bigvee",
  "⋂": "\\bigcap",
  "⋃": "\\bigcup",
  "⨀": "\\bigodot",
  "⨁": "\\bigoplus",
  "⨂": "\\bigotimes",
  "⨄": "\\biguplus",
  "⨆": "\\bigsqcup"
};
G({
  type: "op",
  names: ["\\coprod", "\\bigvee", "\\bigwedge", "\\biguplus", "\\bigcap", "\\bigcup", "\\intop", "\\prod", "\\sum", "\\bigotimes", "\\bigoplus", "\\bigodot", "\\bigsqcup", "\\smallint", "∏", "∐", "∑", "⋀", "⋁", "⋂", "⋃", "⨀", "⨁", "⨂", "⨄", "⨆"],
  props: {
    numArgs: 0
  },
  handler: (a, e) => {
    var {
      parser: t,
      funcName: r
    } = a, n = r;
    return n.length === 1 && (n = t4[n]), {
      type: "op",
      mode: t.mode,
      limits: !0,
      parentIsSupSub: !1,
      symbol: !0,
      name: n
    };
  },
  htmlBuilder: Y0,
  mathmlBuilder: wr
});
G({
  type: "op",
  names: ["\\mathop"],
  props: {
    numArgs: 1,
    primitive: !0
  },
  handler: (a, e) => {
    var {
      parser: t
    } = a, r = e[0];
    return {
      type: "op",
      mode: t.mode,
      limits: !1,
      parentIsSupSub: !1,
      symbol: !1,
      body: Ae(r)
    };
  },
  htmlBuilder: Y0,
  mathmlBuilder: wr
});
var r4 = {
  "∫": "\\int",
  "∬": "\\iint",
  "∭": "\\iiint",
  "∮": "\\oint",
  "∯": "\\oiint",
  "∰": "\\oiiint"
};
G({
  type: "op",
  names: ["\\arcsin", "\\arccos", "\\arctan", "\\arctg", "\\arcctg", "\\arg", "\\ch", "\\cos", "\\cosec", "\\cosh", "\\cot", "\\cotg", "\\coth", "\\csc", "\\ctg", "\\cth", "\\deg", "\\dim", "\\exp", "\\hom", "\\ker", "\\lg", "\\ln", "\\log", "\\sec", "\\sin", "\\sinh", "\\sh", "\\tan", "\\tanh", "\\tg", "\\th"],
  props: {
    numArgs: 0
  },
  handler(a) {
    var {
      parser: e,
      funcName: t
    } = a;
    return {
      type: "op",
      mode: e.mode,
      limits: !1,
      parentIsSupSub: !1,
      symbol: !1,
      name: t
    };
  },
  htmlBuilder: Y0,
  mathmlBuilder: wr
});
G({
  type: "op",
  names: ["\\det", "\\gcd", "\\inf", "\\lim", "\\max", "\\min", "\\Pr", "\\sup"],
  props: {
    numArgs: 0
  },
  handler(a) {
    var {
      parser: e,
      funcName: t
    } = a;
    return {
      type: "op",
      mode: e.mode,
      limits: !0,
      parentIsSupSub: !1,
      symbol: !1,
      name: t
    };
  },
  htmlBuilder: Y0,
  mathmlBuilder: wr
});
G({
  type: "op",
  names: ["\\int", "\\iint", "\\iiint", "\\oint", "\\oiint", "\\oiiint", "∫", "∬", "∭", "∮", "∯", "∰"],
  props: {
    numArgs: 0
  },
  handler(a) {
    var {
      parser: e,
      funcName: t
    } = a, r = t;
    return r.length === 1 && (r = r4[r]), {
      type: "op",
      mode: e.mode,
      limits: !1,
      parentIsSupSub: !1,
      symbol: !0,
      name: r
    };
  },
  htmlBuilder: Y0,
  mathmlBuilder: wr
});
var Go = (a, e) => {
  var t, r, n = !1, i;
  a.type === "supsub" ? (t = a.sup, r = a.sub, i = ee(a.base, "operatorname"), n = !0) : i = ee(a, "operatorname");
  var l;
  if (i.body.length > 0) {
    for (var s = i.body.map((d) => {
      var g = d.text;
      return typeof g == "string" ? {
        type: "textord",
        mode: d.mode,
        text: g
      } : d;
    }), o = Fe(s, e.withFont("mathrm"), !0), h = 0; h < o.length; h++) {
      var m = o[h];
      m instanceof ut && (m.text = m.text.replace(/\u2212/, "-").replace(/\u2217/, "*"));
    }
    l = C.makeSpan(["mop"], o, e);
  } else
    l = C.makeSpan(["mop"], [], e);
  return n ? Ho(l, t, r, e, e.style, 0, 0) : l;
}, a4 = (a, e) => {
  for (var t = Ye(a.body, e.withFont("mathrm")), r = !0, n = 0; n < t.length; n++) {
    var i = t[n];
    if (!(i instanceof L.SpaceNode)) if (i instanceof L.MathNode)
      switch (i.type) {
        case "mi":
        case "mn":
        case "ms":
        case "mspace":
        case "mtext":
          break;
        case "mo": {
          var l = i.children[0];
          i.children.length === 1 && l instanceof L.TextNode ? l.text = l.text.replace(/\u2212/, "-").replace(/\u2217/, "*") : r = !1;
          break;
        }
        default:
          r = !1;
      }
    else
      r = !1;
  }
  if (r) {
    var s = t.map((m) => m.toText()).join("");
    t = [new L.TextNode(s)];
  }
  var o = new L.MathNode("mi", t);
  o.setAttribute("mathvariant", "normal");
  var h = new L.MathNode("mo", [ct("⁡", "text")]);
  return a.parentIsSupSub ? new L.MathNode("mrow", [o, h]) : L.newDocumentFragment([o, h]);
};
G({
  type: "operatorname",
  names: ["\\operatorname@", "\\operatornamewithlimits"],
  props: {
    numArgs: 1
  },
  handler: (a, e) => {
    var {
      parser: t,
      funcName: r
    } = a, n = e[0];
    return {
      type: "operatorname",
      mode: t.mode,
      body: Ae(n),
      alwaysHandleSupSub: r === "\\operatornamewithlimits",
      limits: !1,
      parentIsSupSub: !1
    };
  },
  htmlBuilder: Go,
  mathmlBuilder: a4
});
p("\\operatorname", "\\@ifstar\\operatornamewithlimits\\operatorname@");
E0({
  type: "ordgroup",
  htmlBuilder(a, e) {
    return a.semisimple ? C.makeFragment(Fe(a.body, e, !1)) : C.makeSpan(["mord"], Fe(a.body, e, !0), e);
  },
  mathmlBuilder(a, e) {
    return g0(a.body, e, !0);
  }
});
G({
  type: "overline",
  names: ["\\overline"],
  props: {
    numArgs: 1
  },
  handler(a, e) {
    var {
      parser: t
    } = a, r = e[0];
    return {
      type: "overline",
      mode: t.mode,
      body: r
    };
  },
  htmlBuilder(a, e) {
    var t = ne(a.body, e.havingCrampedStyle()), r = C.makeLineSpan("overline-line", e), n = e.fontMetrics().defaultRuleThickness, i = C.makeVList({
      positionType: "firstBaseline",
      children: [{
        type: "elem",
        elem: t
      }, {
        type: "kern",
        size: 3 * n
      }, {
        type: "elem",
        elem: r
      }, {
        type: "kern",
        size: n
      }]
    }, e);
    return C.makeSpan(["mord", "overline"], [i], e);
  },
  mathmlBuilder(a, e) {
    var t = new L.MathNode("mo", [new L.TextNode("‾")]);
    t.setAttribute("stretchy", "true");
    var r = new L.MathNode("mover", [he(a.body, e), t]);
    return r.setAttribute("accent", "true"), r;
  }
});
G({
  type: "phantom",
  names: ["\\phantom"],
  props: {
    numArgs: 1,
    allowedInText: !0
  },
  handler: (a, e) => {
    var {
      parser: t
    } = a, r = e[0];
    return {
      type: "phantom",
      mode: t.mode,
      body: Ae(r)
    };
  },
  htmlBuilder: (a, e) => {
    var t = Fe(a.body, e.withPhantom(), !1);
    return C.makeFragment(t);
  },
  mathmlBuilder: (a, e) => {
    var t = Ye(a.body, e);
    return new L.MathNode("mphantom", t);
  }
});
G({
  type: "hphantom",
  names: ["\\hphantom"],
  props: {
    numArgs: 1,
    allowedInText: !0
  },
  handler: (a, e) => {
    var {
      parser: t
    } = a, r = e[0];
    return {
      type: "hphantom",
      mode: t.mode,
      body: r
    };
  },
  htmlBuilder: (a, e) => {
    var t = C.makeSpan([], [ne(a.body, e.withPhantom())]);
    if (t.height = 0, t.depth = 0, t.children)
      for (var r = 0; r < t.children.length; r++)
        t.children[r].height = 0, t.children[r].depth = 0;
    return t = C.makeVList({
      positionType: "firstBaseline",
      children: [{
        type: "elem",
        elem: t
      }]
    }, e), C.makeSpan(["mord"], [t], e);
  },
  mathmlBuilder: (a, e) => {
    var t = Ye(Ae(a.body), e), r = new L.MathNode("mphantom", t), n = new L.MathNode("mpadded", [r]);
    return n.setAttribute("height", "0px"), n.setAttribute("depth", "0px"), n;
  }
});
G({
  type: "vphantom",
  names: ["\\vphantom"],
  props: {
    numArgs: 1,
    allowedInText: !0
  },
  handler: (a, e) => {
    var {
      parser: t
    } = a, r = e[0];
    return {
      type: "vphantom",
      mode: t.mode,
      body: r
    };
  },
  htmlBuilder: (a, e) => {
    var t = C.makeSpan(["inner"], [ne(a.body, e.withPhantom())]), r = C.makeSpan(["fix"], []);
    return C.makeSpan(["mord", "rlap"], [t, r], e);
  },
  mathmlBuilder: (a, e) => {
    var t = Ye(Ae(a.body), e), r = new L.MathNode("mphantom", t), n = new L.MathNode("mpadded", [r]);
    return n.setAttribute("width", "0px"), n;
  }
});
G({
  type: "raisebox",
  names: ["\\raisebox"],
  props: {
    numArgs: 2,
    argTypes: ["size", "hbox"],
    allowedInText: !0
  },
  handler(a, e) {
    var {
      parser: t
    } = a, r = ee(e[0], "size").value, n = e[1];
    return {
      type: "raisebox",
      mode: t.mode,
      dy: r,
      body: n
    };
  },
  htmlBuilder(a, e) {
    var t = ne(a.body, e), r = ve(a.dy, e);
    return C.makeVList({
      positionType: "shift",
      positionData: -r,
      children: [{
        type: "elem",
        elem: t
      }]
    }, e);
  },
  mathmlBuilder(a, e) {
    var t = new L.MathNode("mpadded", [he(a.body, e)]), r = a.dy.number + a.dy.unit;
    return t.setAttribute("voffset", r), t;
  }
});
G({
  type: "internal",
  names: ["\\relax"],
  props: {
    numArgs: 0,
    allowedInText: !0
  },
  handler(a) {
    var {
      parser: e
    } = a;
    return {
      type: "internal",
      mode: e.mode
    };
  }
});
G({
  type: "rule",
  names: ["\\rule"],
  props: {
    numArgs: 2,
    numOptionalArgs: 1,
    allowedInText: !0,
    allowedInMath: !0,
    argTypes: ["size", "size", "size"]
  },
  handler(a, e, t) {
    var {
      parser: r
    } = a, n = t[0], i = ee(e[0], "size"), l = ee(e[1], "size");
    return {
      type: "rule",
      mode: r.mode,
      shift: n && ee(n, "size").value,
      width: i.value,
      height: l.value
    };
  },
  htmlBuilder(a, e) {
    var t = C.makeSpan(["mord", "rule"], [], e), r = ve(a.width, e), n = ve(a.height, e), i = a.shift ? ve(a.shift, e) : 0;
    return t.style.borderRightWidth = H(r), t.style.borderTopWidth = H(n), t.style.bottom = H(i), t.width = r, t.height = n + i, t.depth = -i, t.maxFontSize = n * 1.125 * e.sizeMultiplier, t;
  },
  mathmlBuilder(a, e) {
    var t = ve(a.width, e), r = ve(a.height, e), n = a.shift ? ve(a.shift, e) : 0, i = e.color && e.getColor() || "black", l = new L.MathNode("mspace");
    l.setAttribute("mathbackground", i), l.setAttribute("width", H(t)), l.setAttribute("height", H(r));
    var s = new L.MathNode("mpadded", [l]);
    return n >= 0 ? s.setAttribute("height", H(n)) : (s.setAttribute("height", H(n)), s.setAttribute("depth", H(-n))), s.setAttribute("voffset", H(n)), s;
  }
});
function Vo(a, e, t) {
  for (var r = Fe(a, e, !1), n = e.sizeMultiplier / t.sizeMultiplier, i = 0; i < r.length; i++) {
    var l = r[i].classes.indexOf("sizing");
    l < 0 ? Array.prototype.push.apply(r[i].classes, e.sizingClasses(t)) : r[i].classes[l + 1] === "reset-size" + e.size && (r[i].classes[l + 1] = "reset-size" + t.size), r[i].height *= n, r[i].depth *= n;
  }
  return C.makeFragment(r);
}
var fl = ["\\tiny", "\\sixptsize", "\\scriptsize", "\\footnotesize", "\\small", "\\normalsize", "\\large", "\\Large", "\\LARGE", "\\huge", "\\Huge"], n4 = (a, e) => {
  var t = e.havingSize(a.size);
  return Vo(a.body, t, e);
};
G({
  type: "sizing",
  names: fl,
  props: {
    numArgs: 0,
    allowedInText: !0
  },
  handler: (a, e) => {
    var {
      breakOnTokenText: t,
      funcName: r,
      parser: n
    } = a, i = n.parseExpression(!1, t);
    return {
      type: "sizing",
      mode: n.mode,
      // Figure out what size to use based on the list of functions above
      size: fl.indexOf(r) + 1,
      body: i
    };
  },
  htmlBuilder: n4,
  mathmlBuilder: (a, e) => {
    var t = e.havingSize(a.size), r = Ye(a.body, t), n = new L.MathNode("mstyle", r);
    return n.setAttribute("mathsize", H(t.sizeMultiplier)), n;
  }
});
G({
  type: "smash",
  names: ["\\smash"],
  props: {
    numArgs: 1,
    numOptionalArgs: 1,
    allowedInText: !0
  },
  handler: (a, e, t) => {
    var {
      parser: r
    } = a, n = !1, i = !1, l = t[0] && ee(t[0], "ordgroup");
    if (l)
      for (var s = "", o = 0; o < l.body.length; ++o) {
        var h = l.body[o];
        if (s = h.text, s === "t")
          n = !0;
        else if (s === "b")
          i = !0;
        else {
          n = !1, i = !1;
          break;
        }
      }
    else
      n = !0, i = !0;
    var m = e[0];
    return {
      type: "smash",
      mode: r.mode,
      body: m,
      smashHeight: n,
      smashDepth: i
    };
  },
  htmlBuilder: (a, e) => {
    var t = C.makeSpan([], [ne(a.body, e)]);
    if (!a.smashHeight && !a.smashDepth)
      return t;
    if (a.smashHeight && (t.height = 0, t.children))
      for (var r = 0; r < t.children.length; r++)
        t.children[r].height = 0;
    if (a.smashDepth && (t.depth = 0, t.children))
      for (var n = 0; n < t.children.length; n++)
        t.children[n].depth = 0;
    var i = C.makeVList({
      positionType: "firstBaseline",
      children: [{
        type: "elem",
        elem: t
      }]
    }, e);
    return C.makeSpan(["mord"], [i], e);
  },
  mathmlBuilder: (a, e) => {
    var t = new L.MathNode("mpadded", [he(a.body, e)]);
    return a.smashHeight && t.setAttribute("height", "0px"), a.smashDepth && t.setAttribute("depth", "0px"), t;
  }
});
G({
  type: "sqrt",
  names: ["\\sqrt"],
  props: {
    numArgs: 1,
    numOptionalArgs: 1
  },
  handler(a, e, t) {
    var {
      parser: r
    } = a, n = t[0], i = e[0];
    return {
      type: "sqrt",
      mode: r.mode,
      body: i,
      index: n
    };
  },
  htmlBuilder(a, e) {
    var t = ne(a.body, e.havingCrampedStyle());
    t.height === 0 && (t.height = e.fontMetrics().xHeight), t = C.wrapFragment(t, e);
    var r = e.fontMetrics(), n = r.defaultRuleThickness, i = n;
    e.style.id < K.TEXT.id && (i = e.fontMetrics().xHeight);
    var l = n + i / 4, s = t.height + t.depth + l + n, {
      span: o,
      ruleWidth: h,
      advanceWidth: m
    } = a0.sqrtImage(s, e), d = o.height - h;
    d > t.height + t.depth + l && (l = (l + d - t.height - t.depth) / 2);
    var g = o.height - t.height - l - h;
    t.style.paddingLeft = H(m);
    var v = C.makeVList({
      positionType: "firstBaseline",
      children: [{
        type: "elem",
        elem: t,
        wrapperClasses: ["svg-align"]
      }, {
        type: "kern",
        size: -(t.height + g)
      }, {
        type: "elem",
        elem: o
      }, {
        type: "kern",
        size: h
      }]
    }, e);
    if (a.index) {
      var y = e.havingStyle(K.SCRIPTSCRIPT), x = ne(a.index, y, e), A = 0.6 * (v.height - v.depth), T = C.makeVList({
        positionType: "shift",
        positionData: -A,
        children: [{
          type: "elem",
          elem: x
        }]
      }, e), _ = C.makeSpan(["root"], [T]);
      return C.makeSpan(["mord", "sqrt"], [_, v], e);
    } else
      return C.makeSpan(["mord", "sqrt"], [v], e);
  },
  mathmlBuilder(a, e) {
    var {
      body: t,
      index: r
    } = a;
    return r ? new L.MathNode("mroot", [he(t, e), he(r, e)]) : new L.MathNode("msqrt", [he(t, e)]);
  }
});
var dl = {
  display: K.DISPLAY,
  text: K.TEXT,
  script: K.SCRIPT,
  scriptscript: K.SCRIPTSCRIPT
};
G({
  type: "styling",
  names: ["\\displaystyle", "\\textstyle", "\\scriptstyle", "\\scriptscriptstyle"],
  props: {
    numArgs: 0,
    allowedInText: !0,
    primitive: !0
  },
  handler(a, e) {
    var {
      breakOnTokenText: t,
      funcName: r,
      parser: n
    } = a, i = n.parseExpression(!0, t), l = r.slice(1, r.length - 5);
    return {
      type: "styling",
      mode: n.mode,
      // Figure out what style to use by pulling out the style from
      // the function name
      style: l,
      body: i
    };
  },
  htmlBuilder(a, e) {
    var t = dl[a.style], r = e.havingStyle(t).withFont("");
    return Vo(a.body, r, e);
  },
  mathmlBuilder(a, e) {
    var t = dl[a.style], r = e.havingStyle(t), n = Ye(a.body, r), i = new L.MathNode("mstyle", n), l = {
      display: ["0", "true"],
      text: ["0", "false"],
      script: ["1", "false"],
      scriptscript: ["2", "false"]
    }, s = l[a.style];
    return i.setAttribute("scriptlevel", s[0]), i.setAttribute("displaystyle", s[1]), i;
  }
});
var i4 = function(e, t) {
  var r = e.base;
  if (r)
    if (r.type === "op") {
      var n = r.limits && (t.style.size === K.DISPLAY.size || r.alwaysHandleSupSub);
      return n ? Y0 : null;
    } else if (r.type === "operatorname") {
      var i = r.alwaysHandleSupSub && (t.style.size === K.DISPLAY.size || r.limits);
      return i ? Go : null;
    } else {
      if (r.type === "accent")
        return Y.isCharacterBox(r.base) ? $n : null;
      if (r.type === "horizBrace") {
        var l = !e.sub;
        return l === r.isOver ? Po : null;
      } else
        return null;
    }
  else return null;
};
E0({
  type: "supsub",
  htmlBuilder(a, e) {
    var t = i4(a, e);
    if (t)
      return t(a, e);
    var {
      base: r,
      sup: n,
      sub: i
    } = a, l = ne(r, e), s, o, h = e.fontMetrics(), m = 0, d = 0, g = r && Y.isCharacterBox(r);
    if (n) {
      var v = e.havingStyle(e.style.sup());
      s = ne(n, v, e), g || (m = l.height - v.fontMetrics().supDrop * v.sizeMultiplier / e.sizeMultiplier);
    }
    if (i) {
      var y = e.havingStyle(e.style.sub());
      o = ne(i, y, e), g || (d = l.depth + y.fontMetrics().subDrop * y.sizeMultiplier / e.sizeMultiplier);
    }
    var x;
    e.style === K.DISPLAY ? x = h.sup1 : e.style.cramped ? x = h.sup3 : x = h.sup2;
    var A = e.sizeMultiplier, T = H(0.5 / h.ptPerEm / A), _ = null;
    if (o) {
      var b = a.base && a.base.type === "op" && a.base.name && (a.base.name === "\\oiint" || a.base.name === "\\oiiint");
      (l instanceof ut || b) && (_ = H(-l.italic));
    }
    var E;
    if (s && o) {
      m = Math.max(m, x, s.depth + 0.25 * h.xHeight), d = Math.max(d, h.sub2);
      var F = h.defaultRuleThickness, M = 4 * F;
      if (m - s.depth - (o.height - d) < M) {
        d = M - (m - s.depth) + o.height;
        var z = 0.8 * h.xHeight - (m - s.depth);
        z > 0 && (m += z, d -= z);
      }
      var q = [{
        type: "elem",
        elem: o,
        shift: d,
        marginRight: T,
        marginLeft: _
      }, {
        type: "elem",
        elem: s,
        shift: -m,
        marginRight: T
      }];
      E = C.makeVList({
        positionType: "individualShift",
        children: q
      }, e);
    } else if (o) {
      d = Math.max(d, h.sub1, o.height - 0.8 * h.xHeight);
      var I = [{
        type: "elem",
        elem: o,
        marginLeft: _,
        marginRight: T
      }];
      E = C.makeVList({
        positionType: "shift",
        positionData: d,
        children: I
      }, e);
    } else if (s)
      m = Math.max(m, x, s.depth + 0.25 * h.xHeight), E = C.makeVList({
        positionType: "shift",
        positionData: -m,
        children: [{
          type: "elem",
          elem: s,
          marginRight: T
        }]
      }, e);
    else
      throw new Error("supsub must have either sup or sub.");
    var B = An(l, "right") || "mord";
    return C.makeSpan([B], [l, C.makeSpan(["msupsub"], [E])], e);
  },
  mathmlBuilder(a, e) {
    var t = !1, r, n;
    a.base && a.base.type === "horizBrace" && (n = !!a.sup, n === a.base.isOver && (t = !0, r = a.base.isOver)), a.base && (a.base.type === "op" || a.base.type === "operatorname") && (a.base.parentIsSupSub = !0);
    var i = [he(a.base, e)];
    a.sub && i.push(he(a.sub, e)), a.sup && i.push(he(a.sup, e));
    var l;
    if (t)
      l = r ? "mover" : "munder";
    else if (a.sub)
      if (a.sup) {
        var h = a.base;
        h && h.type === "op" && h.limits && e.style === K.DISPLAY || h && h.type === "operatorname" && h.alwaysHandleSupSub && (e.style === K.DISPLAY || h.limits) ? l = "munderover" : l = "msubsup";
      } else {
        var o = a.base;
        o && o.type === "op" && o.limits && (e.style === K.DISPLAY || o.alwaysHandleSupSub) || o && o.type === "operatorname" && o.alwaysHandleSupSub && (o.limits || e.style === K.DISPLAY) ? l = "munder" : l = "msub";
      }
    else {
      var s = a.base;
      s && s.type === "op" && s.limits && (e.style === K.DISPLAY || s.alwaysHandleSupSub) || s && s.type === "operatorname" && s.alwaysHandleSupSub && (s.limits || e.style === K.DISPLAY) ? l = "mover" : l = "msup";
    }
    return new L.MathNode(l, i);
  }
});
E0({
  type: "atom",
  htmlBuilder(a, e) {
    return C.mathsym(a.text, a.mode, e, ["m" + a.family]);
  },
  mathmlBuilder(a, e) {
    var t = new L.MathNode("mo", [ct(a.text, a.mode)]);
    if (a.family === "bin") {
      var r = Qn(a, e);
      r === "bold-italic" && t.setAttribute("mathvariant", r);
    } else a.family === "punct" ? t.setAttribute("separator", "true") : (a.family === "open" || a.family === "close") && t.setAttribute("stretchy", "false");
    return t;
  }
});
var Wo = {
  mi: "italic",
  mn: "normal",
  mtext: "normal"
};
E0({
  type: "mathord",
  htmlBuilder(a, e) {
    return C.makeOrd(a, e, "mathord");
  },
  mathmlBuilder(a, e) {
    var t = new L.MathNode("mi", [ct(a.text, a.mode, e)]), r = Qn(a, e) || "italic";
    return r !== Wo[t.type] && t.setAttribute("mathvariant", r), t;
  }
});
E0({
  type: "textord",
  htmlBuilder(a, e) {
    return C.makeOrd(a, e, "textord");
  },
  mathmlBuilder(a, e) {
    var t = ct(a.text, a.mode, e), r = Qn(a, e) || "normal", n;
    return a.mode === "text" ? n = new L.MathNode("mtext", [t]) : /[0-9]/.test(a.text) ? n = new L.MathNode("mn", [t]) : a.text === "\\prime" ? n = new L.MathNode("mo", [t]) : n = new L.MathNode("mi", [t]), r !== Wo[n.type] && n.setAttribute("mathvariant", r), n;
  }
});
var ja = {
  "\\nobreak": "nobreak",
  "\\allowbreak": "allowbreak"
}, Za = {
  " ": {},
  "\\ ": {},
  "~": {
    className: "nobreak"
  },
  "\\space": {},
  "\\nobreakspace": {
    className: "nobreak"
  }
};
E0({
  type: "spacing",
  htmlBuilder(a, e) {
    if (Za.hasOwnProperty(a.text)) {
      var t = Za[a.text].className || "";
      if (a.mode === "text") {
        var r = C.makeOrd(a, e, "textord");
        return r.classes.push(t), r;
      } else
        return C.makeSpan(["mspace", t], [C.mathsym(a.text, a.mode, e)], e);
    } else {
      if (ja.hasOwnProperty(a.text))
        return C.makeSpan(["mspace", ja[a.text]], [], e);
      throw new O('Unknown type of space "' + a.text + '"');
    }
  },
  mathmlBuilder(a, e) {
    var t;
    if (Za.hasOwnProperty(a.text))
      t = new L.MathNode("mtext", [new L.TextNode(" ")]);
    else {
      if (ja.hasOwnProperty(a.text))
        return new L.MathNode("mspace");
      throw new O('Unknown type of space "' + a.text + '"');
    }
    return t;
  }
});
var pl = () => {
  var a = new L.MathNode("mtd", []);
  return a.setAttribute("width", "50%"), a;
};
E0({
  type: "tag",
  mathmlBuilder(a, e) {
    var t = new L.MathNode("mtable", [new L.MathNode("mtr", [pl(), new L.MathNode("mtd", [g0(a.body, e)]), pl(), new L.MathNode("mtd", [g0(a.tag, e)])])]);
    return t.setAttribute("width", "100%"), t;
  }
});
var gl = {
  "\\text": void 0,
  "\\textrm": "textrm",
  "\\textsf": "textsf",
  "\\texttt": "texttt",
  "\\textnormal": "textrm"
}, vl = {
  "\\textbf": "textbf",
  "\\textmd": "textmd"
}, l4 = {
  "\\textit": "textit",
  "\\textup": "textup"
}, bl = (a, e) => {
  var t = a.font;
  if (t) {
    if (gl[t])
      return e.withTextFontFamily(gl[t]);
    if (vl[t])
      return e.withTextFontWeight(vl[t]);
    if (t === "\\emph")
      return e.fontShape === "textit" ? e.withTextFontShape("textup") : e.withTextFontShape("textit");
  } else return e;
  return e.withTextFontShape(l4[t]);
};
G({
  type: "text",
  names: [
    // Font families
    "\\text",
    "\\textrm",
    "\\textsf",
    "\\texttt",
    "\\textnormal",
    // Font weights
    "\\textbf",
    "\\textmd",
    // Font Shapes
    "\\textit",
    "\\textup",
    "\\emph"
  ],
  props: {
    numArgs: 1,
    argTypes: ["text"],
    allowedInArgument: !0,
    allowedInText: !0
  },
  handler(a, e) {
    var {
      parser: t,
      funcName: r
    } = a, n = e[0];
    return {
      type: "text",
      mode: t.mode,
      body: Ae(n),
      font: r
    };
  },
  htmlBuilder(a, e) {
    var t = bl(a, e), r = Fe(a.body, t, !0);
    return C.makeSpan(["mord", "text"], r, t);
  },
  mathmlBuilder(a, e) {
    var t = bl(a, e);
    return g0(a.body, t);
  }
});
G({
  type: "underline",
  names: ["\\underline"],
  props: {
    numArgs: 1,
    allowedInText: !0
  },
  handler(a, e) {
    var {
      parser: t
    } = a;
    return {
      type: "underline",
      mode: t.mode,
      body: e[0]
    };
  },
  htmlBuilder(a, e) {
    var t = ne(a.body, e), r = C.makeLineSpan("underline-line", e), n = e.fontMetrics().defaultRuleThickness, i = C.makeVList({
      positionType: "top",
      positionData: t.height,
      children: [{
        type: "kern",
        size: n
      }, {
        type: "elem",
        elem: r
      }, {
        type: "kern",
        size: 3 * n
      }, {
        type: "elem",
        elem: t
      }]
    }, e);
    return C.makeSpan(["mord", "underline"], [i], e);
  },
  mathmlBuilder(a, e) {
    var t = new L.MathNode("mo", [new L.TextNode("‾")]);
    t.setAttribute("stretchy", "true");
    var r = new L.MathNode("munder", [he(a.body, e), t]);
    return r.setAttribute("accentunder", "true"), r;
  }
});
G({
  type: "vcenter",
  names: ["\\vcenter"],
  props: {
    numArgs: 1,
    argTypes: ["original"],
    // In LaTeX, \vcenter can act only on a box.
    allowedInText: !1
  },
  handler(a, e) {
    var {
      parser: t
    } = a;
    return {
      type: "vcenter",
      mode: t.mode,
      body: e[0]
    };
  },
  htmlBuilder(a, e) {
    var t = ne(a.body, e), r = e.fontMetrics().axisHeight, n = 0.5 * (t.height - r - (t.depth + r));
    return C.makeVList({
      positionType: "shift",
      positionData: n,
      children: [{
        type: "elem",
        elem: t
      }]
    }, e);
  },
  mathmlBuilder(a, e) {
    return new L.MathNode("mpadded", [he(a.body, e)], ["vcenter"]);
  }
});
G({
  type: "verb",
  names: ["\\verb"],
  props: {
    numArgs: 0,
    allowedInText: !0
  },
  handler(a, e, t) {
    throw new O("\\verb ended by end of line instead of matching delimiter");
  },
  htmlBuilder(a, e) {
    for (var t = yl(a), r = [], n = e.havingStyle(e.style.text()), i = 0; i < t.length; i++) {
      var l = t[i];
      l === "~" && (l = "\\textasciitilde"), r.push(C.makeSymbol(l, "Typewriter-Regular", a.mode, n, ["mord", "texttt"]));
    }
    return C.makeSpan(["mord", "text"].concat(n.sizingClasses(e)), C.tryCombineChars(r), n);
  },
  mathmlBuilder(a, e) {
    var t = new L.TextNode(yl(a)), r = new L.MathNode("mtext", [t]);
    return r.setAttribute("mathvariant", "monospace"), r;
  }
});
var yl = (a) => a.body.replace(/ /g, a.star ? "␣" : " "), m0 = fo, Xo = `[ \r
	]`, s4 = "\\\\[a-zA-Z@]+", o4 = "\\\\[^\uD800-\uDFFF]", u4 = "(" + s4 + ")" + Xo + "*", c4 = `\\\\(
|[ \r	]+
?)[ \r	]*`, Tn = "[̀-ͯ]", h4 = new RegExp(Tn + "+$"), m4 = "(" + Xo + "+)|" + // whitespace
(c4 + "|") + // \whitespace
"([!-\\[\\]-‧‪-퟿豈-]" + // single codepoint
(Tn + "*") + // ...plus accents
"|[\uD800-\uDBFF][\uDC00-\uDFFF]" + // surrogate pair
(Tn + "*") + // ...plus accents
"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5" + // \verb unstarred
("|" + u4) + // \macroName + spaces
("|" + o4 + ")");
class wl {
  // Category codes. The lexer only supports comment characters (14) for now.
  // MacroExpander additionally distinguishes active (13).
  constructor(e, t) {
    this.input = void 0, this.settings = void 0, this.tokenRegex = void 0, this.catcodes = void 0, this.input = e, this.settings = t, this.tokenRegex = new RegExp(m4, "g"), this.catcodes = {
      "%": 14,
      // comment character
      "~": 13
      // active character
    };
  }
  setCatcode(e, t) {
    this.catcodes[e] = t;
  }
  /**
   * This function lexes a single token.
   */
  lex() {
    var e = this.input, t = this.tokenRegex.lastIndex;
    if (t === e.length)
      return new ot("EOF", new Je(this, t, t));
    var r = this.tokenRegex.exec(e);
    if (r === null || r.index !== t)
      throw new O("Unexpected character: '" + e[t] + "'", new ot(e[t], new Je(this, t, t + 1)));
    var n = r[6] || r[3] || (r[2] ? "\\ " : " ");
    if (this.catcodes[n] === 14) {
      var i = e.indexOf(`
`, this.tokenRegex.lastIndex);
      return i === -1 ? (this.tokenRegex.lastIndex = e.length, this.settings.reportNonstrict("commentAtEnd", "% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")) : this.tokenRegex.lastIndex = i + 1, this.lex();
    }
    return new ot(n, new Je(this, t, this.tokenRegex.lastIndex));
  }
}
class f4 {
  /**
   * Both arguments are optional.  The first argument is an object of
   * built-in mappings which never change.  The second argument is an object
   * of initial (global-level) mappings, which will constantly change
   * according to any global/top-level `set`s done.
   */
  constructor(e, t) {
    e === void 0 && (e = {}), t === void 0 && (t = {}), this.current = void 0, this.builtins = void 0, this.undefStack = void 0, this.current = t, this.builtins = e, this.undefStack = [];
  }
  /**
   * Start a new nested group, affecting future local `set`s.
   */
  beginGroup() {
    this.undefStack.push({});
  }
  /**
   * End current nested group, restoring values before the group began.
   */
  endGroup() {
    if (this.undefStack.length === 0)
      throw new O("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");
    var e = this.undefStack.pop();
    for (var t in e)
      e.hasOwnProperty(t) && (e[t] == null ? delete this.current[t] : this.current[t] = e[t]);
  }
  /**
   * Ends all currently nested groups (if any), restoring values before the
   * groups began.  Useful in case of an error in the middle of parsing.
   */
  endGroups() {
    for (; this.undefStack.length > 0; )
      this.endGroup();
  }
  /**
   * Detect whether `name` has a definition.  Equivalent to
   * `get(name) != null`.
   */
  has(e) {
    return this.current.hasOwnProperty(e) || this.builtins.hasOwnProperty(e);
  }
  /**
   * Get the current value of a name, or `undefined` if there is no value.
   *
   * Note: Do not use `if (namespace.get(...))` to detect whether a macro
   * is defined, as the definition may be the empty string which evaluates
   * to `false` in JavaScript.  Use `if (namespace.get(...) != null)` or
   * `if (namespace.has(...))`.
   */
  get(e) {
    return this.current.hasOwnProperty(e) ? this.current[e] : this.builtins[e];
  }
  /**
   * Set the current value of a name, and optionally set it globally too.
   * Local set() sets the current value and (when appropriate) adds an undo
   * operation to the undo stack.  Global set() may change the undo
   * operation at every level, so takes time linear in their number.
   * A value of undefined means to delete existing definitions.
   */
  set(e, t, r) {
    if (r === void 0 && (r = !1), r) {
      for (var n = 0; n < this.undefStack.length; n++)
        delete this.undefStack[n][e];
      this.undefStack.length > 0 && (this.undefStack[this.undefStack.length - 1][e] = t);
    } else {
      var i = this.undefStack[this.undefStack.length - 1];
      i && !i.hasOwnProperty(e) && (i[e] = this.current[e]);
    }
    t == null ? delete this.current[e] : this.current[e] = t;
  }
}
var d4 = Ro;
p("\\noexpand", function(a) {
  var e = a.popToken();
  return a.isExpandable(e.text) && (e.noexpand = !0, e.treatAsRelax = !0), {
    tokens: [e],
    numArgs: 0
  };
});
p("\\expandafter", function(a) {
  var e = a.popToken();
  return a.expandOnce(!0), {
    tokens: [e],
    numArgs: 0
  };
});
p("\\@firstoftwo", function(a) {
  var e = a.consumeArgs(2);
  return {
    tokens: e[0],
    numArgs: 0
  };
});
p("\\@secondoftwo", function(a) {
  var e = a.consumeArgs(2);
  return {
    tokens: e[1],
    numArgs: 0
  };
});
p("\\@ifnextchar", function(a) {
  var e = a.consumeArgs(3);
  a.consumeSpaces();
  var t = a.future();
  return e[0].length === 1 && e[0][0].text === t.text ? {
    tokens: e[1],
    numArgs: 0
  } : {
    tokens: e[2],
    numArgs: 0
  };
});
p("\\@ifstar", "\\@ifnextchar *{\\@firstoftwo{#1}}");
p("\\TextOrMath", function(a) {
  var e = a.consumeArgs(2);
  return a.mode === "text" ? {
    tokens: e[0],
    numArgs: 0
  } : {
    tokens: e[1],
    numArgs: 0
  };
});
var kl = {
  0: 0,
  1: 1,
  2: 2,
  3: 3,
  4: 4,
  5: 5,
  6: 6,
  7: 7,
  8: 8,
  9: 9,
  a: 10,
  A: 10,
  b: 11,
  B: 11,
  c: 12,
  C: 12,
  d: 13,
  D: 13,
  e: 14,
  E: 14,
  f: 15,
  F: 15
};
p("\\char", function(a) {
  var e = a.popToken(), t, r = "";
  if (e.text === "'")
    t = 8, e = a.popToken();
  else if (e.text === '"')
    t = 16, e = a.popToken();
  else if (e.text === "`")
    if (e = a.popToken(), e.text[0] === "\\")
      r = e.text.charCodeAt(1);
    else {
      if (e.text === "EOF")
        throw new O("\\char` missing argument");
      r = e.text.charCodeAt(0);
    }
  else
    t = 10;
  if (t) {
    if (r = kl[e.text], r == null || r >= t)
      throw new O("Invalid base-" + t + " digit " + e.text);
    for (var n; (n = kl[a.future().text]) != null && n < t; )
      r *= t, r += n, a.popToken();
  }
  return "\\@char{" + r + "}";
});
var si = (a, e, t) => {
  var r = a.consumeArg().tokens;
  if (r.length !== 1)
    throw new O("\\newcommand's first argument must be a macro name");
  var n = r[0].text, i = a.isDefined(n);
  if (i && !e)
    throw new O("\\newcommand{" + n + "} attempting to redefine " + (n + "; use \\renewcommand"));
  if (!i && !t)
    throw new O("\\renewcommand{" + n + "} when command " + n + " does not yet exist; use \\newcommand");
  var l = 0;
  if (r = a.consumeArg().tokens, r.length === 1 && r[0].text === "[") {
    for (var s = "", o = a.expandNextToken(); o.text !== "]" && o.text !== "EOF"; )
      s += o.text, o = a.expandNextToken();
    if (!s.match(/^\s*[0-9]+\s*$/))
      throw new O("Invalid number of arguments: " + s);
    l = parseInt(s), r = a.consumeArg().tokens;
  }
  return a.macros.set(n, {
    tokens: r,
    numArgs: l
  }), "";
};
p("\\newcommand", (a) => si(a, !1, !0));
p("\\renewcommand", (a) => si(a, !0, !1));
p("\\providecommand", (a) => si(a, !0, !0));
p("\\message", (a) => {
  var e = a.consumeArgs(1)[0];
  return console.log(e.reverse().map((t) => t.text).join("")), "";
});
p("\\errmessage", (a) => {
  var e = a.consumeArgs(1)[0];
  return console.error(e.reverse().map((t) => t.text).join("")), "";
});
p("\\show", (a) => {
  var e = a.popToken(), t = e.text;
  return console.log(e, a.macros.get(t), m0[t], me.math[t], me.text[t]), "";
});
p("\\bgroup", "{");
p("\\egroup", "}");
p("~", "\\nobreakspace");
p("\\lq", "`");
p("\\rq", "'");
p("\\aa", "\\r a");
p("\\AA", "\\r A");
p("\\textcopyright", "\\html@mathml{\\textcircled{c}}{\\char`©}");
p("\\copyright", "\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");
p("\\textregistered", "\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");
p("ℬ", "\\mathscr{B}");
p("ℰ", "\\mathscr{E}");
p("ℱ", "\\mathscr{F}");
p("ℋ", "\\mathscr{H}");
p("ℐ", "\\mathscr{I}");
p("ℒ", "\\mathscr{L}");
p("ℳ", "\\mathscr{M}");
p("ℛ", "\\mathscr{R}");
p("ℭ", "\\mathfrak{C}");
p("ℌ", "\\mathfrak{H}");
p("ℨ", "\\mathfrak{Z}");
p("\\Bbbk", "\\Bbb{k}");
p("·", "\\cdotp");
p("\\llap", "\\mathllap{\\textrm{#1}}");
p("\\rlap", "\\mathrlap{\\textrm{#1}}");
p("\\clap", "\\mathclap{\\textrm{#1}}");
p("\\mathstrut", "\\vphantom{(}");
p("\\underbar", "\\underline{\\text{#1}}");
p("\\not", '\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}');
p("\\neq", "\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");
p("\\ne", "\\neq");
p("≠", "\\neq");
p("\\notin", "\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");
p("∉", "\\notin");
p("≘", "\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");
p("≙", "\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");
p("≚", "\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");
p("≛", "\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");
p("≝", "\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");
p("≞", "\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");
p("≟", "\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");
p("⟂", "\\perp");
p("‼", "\\mathclose{!\\mkern-0.8mu!}");
p("∌", "\\notni");
p("⌜", "\\ulcorner");
p("⌝", "\\urcorner");
p("⌞", "\\llcorner");
p("⌟", "\\lrcorner");
p("©", "\\copyright");
p("®", "\\textregistered");
p("️", "\\textregistered");
p("\\ulcorner", '\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');
p("\\urcorner", '\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');
p("\\llcorner", '\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');
p("\\lrcorner", '\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');
p("\\vdots", "{\\varvdots\\rule{0pt}{15pt}}");
p("⋮", "\\vdots");
p("\\varGamma", "\\mathit{\\Gamma}");
p("\\varDelta", "\\mathit{\\Delta}");
p("\\varTheta", "\\mathit{\\Theta}");
p("\\varLambda", "\\mathit{\\Lambda}");
p("\\varXi", "\\mathit{\\Xi}");
p("\\varPi", "\\mathit{\\Pi}");
p("\\varSigma", "\\mathit{\\Sigma}");
p("\\varUpsilon", "\\mathit{\\Upsilon}");
p("\\varPhi", "\\mathit{\\Phi}");
p("\\varPsi", "\\mathit{\\Psi}");
p("\\varOmega", "\\mathit{\\Omega}");
p("\\substack", "\\begin{subarray}{c}#1\\end{subarray}");
p("\\colon", "\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");
p("\\boxed", "\\fbox{$\\displaystyle{#1}$}");
p("\\iff", "\\DOTSB\\;\\Longleftrightarrow\\;");
p("\\implies", "\\DOTSB\\;\\Longrightarrow\\;");
p("\\impliedby", "\\DOTSB\\;\\Longleftarrow\\;");
p("\\dddot", "{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");
p("\\ddddot", "{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");
var xl = {
  ",": "\\dotsc",
  "\\not": "\\dotsb",
  // \keybin@ checks for the following:
  "+": "\\dotsb",
  "=": "\\dotsb",
  "<": "\\dotsb",
  ">": "\\dotsb",
  "-": "\\dotsb",
  "*": "\\dotsb",
  ":": "\\dotsb",
  // Symbols whose definition starts with \DOTSB:
  "\\DOTSB": "\\dotsb",
  "\\coprod": "\\dotsb",
  "\\bigvee": "\\dotsb",
  "\\bigwedge": "\\dotsb",
  "\\biguplus": "\\dotsb",
  "\\bigcap": "\\dotsb",
  "\\bigcup": "\\dotsb",
  "\\prod": "\\dotsb",
  "\\sum": "\\dotsb",
  "\\bigotimes": "\\dotsb",
  "\\bigoplus": "\\dotsb",
  "\\bigodot": "\\dotsb",
  "\\bigsqcup": "\\dotsb",
  "\\And": "\\dotsb",
  "\\longrightarrow": "\\dotsb",
  "\\Longrightarrow": "\\dotsb",
  "\\longleftarrow": "\\dotsb",
  "\\Longleftarrow": "\\dotsb",
  "\\longleftrightarrow": "\\dotsb",
  "\\Longleftrightarrow": "\\dotsb",
  "\\mapsto": "\\dotsb",
  "\\longmapsto": "\\dotsb",
  "\\hookrightarrow": "\\dotsb",
  "\\doteq": "\\dotsb",
  // Symbols whose definition starts with \mathbin:
  "\\mathbin": "\\dotsb",
  // Symbols whose definition starts with \mathrel:
  "\\mathrel": "\\dotsb",
  "\\relbar": "\\dotsb",
  "\\Relbar": "\\dotsb",
  "\\xrightarrow": "\\dotsb",
  "\\xleftarrow": "\\dotsb",
  // Symbols whose definition starts with \DOTSI:
  "\\DOTSI": "\\dotsi",
  "\\int": "\\dotsi",
  "\\oint": "\\dotsi",
  "\\iint": "\\dotsi",
  "\\iiint": "\\dotsi",
  "\\iiiint": "\\dotsi",
  "\\idotsint": "\\dotsi",
  // Symbols whose definition starts with \DOTSX:
  "\\DOTSX": "\\dotsx"
};
p("\\dots", function(a) {
  var e = "\\dotso", t = a.expandAfterFuture().text;
  return t in xl ? e = xl[t] : (t.slice(0, 4) === "\\not" || t in me.math && Y.contains(["bin", "rel"], me.math[t].group)) && (e = "\\dotsb"), e;
});
var oi = {
  // \rightdelim@ checks for the following:
  ")": !0,
  "]": !0,
  "\\rbrack": !0,
  "\\}": !0,
  "\\rbrace": !0,
  "\\rangle": !0,
  "\\rceil": !0,
  "\\rfloor": !0,
  "\\rgroup": !0,
  "\\rmoustache": !0,
  "\\right": !0,
  "\\bigr": !0,
  "\\biggr": !0,
  "\\Bigr": !0,
  "\\Biggr": !0,
  // \extra@ also tests for the following:
  $: !0,
  // \extrap@ checks for the following:
  ";": !0,
  ".": !0,
  ",": !0
};
p("\\dotso", function(a) {
  var e = a.future().text;
  return e in oi ? "\\ldots\\," : "\\ldots";
});
p("\\dotsc", function(a) {
  var e = a.future().text;
  return e in oi && e !== "," ? "\\ldots\\," : "\\ldots";
});
p("\\cdots", function(a) {
  var e = a.future().text;
  return e in oi ? "\\@cdots\\," : "\\@cdots";
});
p("\\dotsb", "\\cdots");
p("\\dotsm", "\\cdots");
p("\\dotsi", "\\!\\cdots");
p("\\dotsx", "\\ldots\\,");
p("\\DOTSI", "\\relax");
p("\\DOTSB", "\\relax");
p("\\DOTSX", "\\relax");
p("\\tmspace", "\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");
p("\\,", "\\tmspace+{3mu}{.1667em}");
p("\\thinspace", "\\,");
p("\\>", "\\mskip{4mu}");
p("\\:", "\\tmspace+{4mu}{.2222em}");
p("\\medspace", "\\:");
p("\\;", "\\tmspace+{5mu}{.2777em}");
p("\\thickspace", "\\;");
p("\\!", "\\tmspace-{3mu}{.1667em}");
p("\\negthinspace", "\\!");
p("\\negmedspace", "\\tmspace-{4mu}{.2222em}");
p("\\negthickspace", "\\tmspace-{5mu}{.277em}");
p("\\enspace", "\\kern.5em ");
p("\\enskip", "\\hskip.5em\\relax");
p("\\quad", "\\hskip1em\\relax");
p("\\qquad", "\\hskip2em\\relax");
p("\\tag", "\\@ifstar\\tag@literal\\tag@paren");
p("\\tag@paren", "\\tag@literal{({#1})}");
p("\\tag@literal", (a) => {
  if (a.macros.get("\\df@tag"))
    throw new O("Multiple \\tag");
  return "\\gdef\\df@tag{\\text{#1}}";
});
p("\\bmod", "\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");
p("\\pod", "\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");
p("\\pmod", "\\pod{{\\rm mod}\\mkern6mu#1}");
p("\\mod", "\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");
p("\\newline", "\\\\\\relax");
p("\\TeX", "\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");
var Yo = H(Rt["Main-Regular"][84][1] - 0.7 * Rt["Main-Regular"][65][1]);
p("\\LaTeX", "\\textrm{\\html@mathml{" + ("L\\kern-.36em\\raisebox{" + Yo + "}{\\scriptstyle A}") + "\\kern-.15em\\TeX}{LaTeX}}");
p("\\KaTeX", "\\textrm{\\html@mathml{" + ("K\\kern-.17em\\raisebox{" + Yo + "}{\\scriptstyle A}") + "\\kern-.15em\\TeX}{KaTeX}}");
p("\\hspace", "\\@ifstar\\@hspacer\\@hspace");
p("\\@hspace", "\\hskip #1\\relax");
p("\\@hspacer", "\\rule{0pt}{0pt}\\hskip #1\\relax");
p("\\ordinarycolon", ":");
p("\\vcentcolon", "\\mathrel{\\mathop\\ordinarycolon}");
p("\\dblcolon", '\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');
p("\\coloneqq", '\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');
p("\\Coloneqq", '\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');
p("\\coloneq", '\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');
p("\\Coloneq", '\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');
p("\\eqqcolon", '\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');
p("\\Eqqcolon", '\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');
p("\\eqcolon", '\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');
p("\\Eqcolon", '\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');
p("\\colonapprox", '\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');
p("\\Colonapprox", '\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');
p("\\colonsim", '\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');
p("\\Colonsim", '\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');
p("∷", "\\dblcolon");
p("∹", "\\eqcolon");
p("≔", "\\coloneqq");
p("≕", "\\eqqcolon");
p("⩴", "\\Coloneqq");
p("\\ratio", "\\vcentcolon");
p("\\coloncolon", "\\dblcolon");
p("\\colonequals", "\\coloneqq");
p("\\coloncolonequals", "\\Coloneqq");
p("\\equalscolon", "\\eqqcolon");
p("\\equalscoloncolon", "\\Eqqcolon");
p("\\colonminus", "\\coloneq");
p("\\coloncolonminus", "\\Coloneq");
p("\\minuscolon", "\\eqcolon");
p("\\minuscoloncolon", "\\Eqcolon");
p("\\coloncolonapprox", "\\Colonapprox");
p("\\coloncolonsim", "\\Colonsim");
p("\\simcolon", "\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");
p("\\simcoloncolon", "\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");
p("\\approxcolon", "\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");
p("\\approxcoloncolon", "\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");
p("\\notni", "\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");
p("\\limsup", "\\DOTSB\\operatorname*{lim\\,sup}");
p("\\liminf", "\\DOTSB\\operatorname*{lim\\,inf}");
p("\\injlim", "\\DOTSB\\operatorname*{inj\\,lim}");
p("\\projlim", "\\DOTSB\\operatorname*{proj\\,lim}");
p("\\varlimsup", "\\DOTSB\\operatorname*{\\overline{lim}}");
p("\\varliminf", "\\DOTSB\\operatorname*{\\underline{lim}}");
p("\\varinjlim", "\\DOTSB\\operatorname*{\\underrightarrow{lim}}");
p("\\varprojlim", "\\DOTSB\\operatorname*{\\underleftarrow{lim}}");
p("\\gvertneqq", "\\html@mathml{\\@gvertneqq}{≩}");
p("\\lvertneqq", "\\html@mathml{\\@lvertneqq}{≨}");
p("\\ngeqq", "\\html@mathml{\\@ngeqq}{≱}");
p("\\ngeqslant", "\\html@mathml{\\@ngeqslant}{≱}");
p("\\nleqq", "\\html@mathml{\\@nleqq}{≰}");
p("\\nleqslant", "\\html@mathml{\\@nleqslant}{≰}");
p("\\nshortmid", "\\html@mathml{\\@nshortmid}{∤}");
p("\\nshortparallel", "\\html@mathml{\\@nshortparallel}{∦}");
p("\\nsubseteqq", "\\html@mathml{\\@nsubseteqq}{⊈}");
p("\\nsupseteqq", "\\html@mathml{\\@nsupseteqq}{⊉}");
p("\\varsubsetneq", "\\html@mathml{\\@varsubsetneq}{⊊}");
p("\\varsubsetneqq", "\\html@mathml{\\@varsubsetneqq}{⫋}");
p("\\varsupsetneq", "\\html@mathml{\\@varsupsetneq}{⊋}");
p("\\varsupsetneqq", "\\html@mathml{\\@varsupsetneqq}{⫌}");
p("\\imath", "\\html@mathml{\\@imath}{ı}");
p("\\jmath", "\\html@mathml{\\@jmath}{ȷ}");
p("\\llbracket", "\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");
p("\\rrbracket", "\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");
p("⟦", "\\llbracket");
p("⟧", "\\rrbracket");
p("\\lBrace", "\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");
p("\\rBrace", "\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");
p("⦃", "\\lBrace");
p("⦄", "\\rBrace");
p("\\minuso", "\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");
p("⦵", "\\minuso");
p("\\darr", "\\downarrow");
p("\\dArr", "\\Downarrow");
p("\\Darr", "\\Downarrow");
p("\\lang", "\\langle");
p("\\rang", "\\rangle");
p("\\uarr", "\\uparrow");
p("\\uArr", "\\Uparrow");
p("\\Uarr", "\\Uparrow");
p("\\N", "\\mathbb{N}");
p("\\R", "\\mathbb{R}");
p("\\Z", "\\mathbb{Z}");
p("\\alef", "\\aleph");
p("\\alefsym", "\\aleph");
p("\\Alpha", "\\mathrm{A}");
p("\\Beta", "\\mathrm{B}");
p("\\bull", "\\bullet");
p("\\Chi", "\\mathrm{X}");
p("\\clubs", "\\clubsuit");
p("\\cnums", "\\mathbb{C}");
p("\\Complex", "\\mathbb{C}");
p("\\Dagger", "\\ddagger");
p("\\diamonds", "\\diamondsuit");
p("\\empty", "\\emptyset");
p("\\Epsilon", "\\mathrm{E}");
p("\\Eta", "\\mathrm{H}");
p("\\exist", "\\exists");
p("\\harr", "\\leftrightarrow");
p("\\hArr", "\\Leftrightarrow");
p("\\Harr", "\\Leftrightarrow");
p("\\hearts", "\\heartsuit");
p("\\image", "\\Im");
p("\\infin", "\\infty");
p("\\Iota", "\\mathrm{I}");
p("\\isin", "\\in");
p("\\Kappa", "\\mathrm{K}");
p("\\larr", "\\leftarrow");
p("\\lArr", "\\Leftarrow");
p("\\Larr", "\\Leftarrow");
p("\\lrarr", "\\leftrightarrow");
p("\\lrArr", "\\Leftrightarrow");
p("\\Lrarr", "\\Leftrightarrow");
p("\\Mu", "\\mathrm{M}");
p("\\natnums", "\\mathbb{N}");
p("\\Nu", "\\mathrm{N}");
p("\\Omicron", "\\mathrm{O}");
p("\\plusmn", "\\pm");
p("\\rarr", "\\rightarrow");
p("\\rArr", "\\Rightarrow");
p("\\Rarr", "\\Rightarrow");
p("\\real", "\\Re");
p("\\reals", "\\mathbb{R}");
p("\\Reals", "\\mathbb{R}");
p("\\Rho", "\\mathrm{P}");
p("\\sdot", "\\cdot");
p("\\sect", "\\S");
p("\\spades", "\\spadesuit");
p("\\sub", "\\subset");
p("\\sube", "\\subseteq");
p("\\supe", "\\supseteq");
p("\\Tau", "\\mathrm{T}");
p("\\thetasym", "\\vartheta");
p("\\weierp", "\\wp");
p("\\Zeta", "\\mathrm{Z}");
p("\\argmin", "\\DOTSB\\operatorname*{arg\\,min}");
p("\\argmax", "\\DOTSB\\operatorname*{arg\\,max}");
p("\\plim", "\\DOTSB\\mathop{\\operatorname{plim}}\\limits");
p("\\bra", "\\mathinner{\\langle{#1}|}");
p("\\ket", "\\mathinner{|{#1}\\rangle}");
p("\\braket", "\\mathinner{\\langle{#1}\\rangle}");
p("\\Bra", "\\left\\langle#1\\right|");
p("\\Ket", "\\left|#1\\right\\rangle");
var jo = (a) => (e) => {
  var t = e.consumeArg().tokens, r = e.consumeArg().tokens, n = e.consumeArg().tokens, i = e.consumeArg().tokens, l = e.macros.get("|"), s = e.macros.get("\\|");
  e.macros.beginGroup();
  var o = (d) => (g) => {
    a && (g.macros.set("|", l), n.length && g.macros.set("\\|", s));
    var v = d;
    if (!d && n.length) {
      var y = g.future();
      y.text === "|" && (g.popToken(), v = !0);
    }
    return {
      tokens: v ? n : r,
      numArgs: 0
    };
  };
  e.macros.set("|", o(!1)), n.length && e.macros.set("\\|", o(!0));
  var h = e.consumeArg().tokens, m = e.expandTokens([
    ...i,
    ...h,
    ...t
    // reversed
  ]);
  return e.macros.endGroup(), {
    tokens: m.reverse(),
    numArgs: 0
  };
};
p("\\bra@ket", jo(!1));
p("\\bra@set", jo(!0));
p("\\Braket", "\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");
p("\\Set", "\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");
p("\\set", "\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");
p("\\angln", "{\\angl n}");
p("\\blue", "\\textcolor{##6495ed}{#1}");
p("\\orange", "\\textcolor{##ffa500}{#1}");
p("\\pink", "\\textcolor{##ff00af}{#1}");
p("\\red", "\\textcolor{##df0030}{#1}");
p("\\green", "\\textcolor{##28ae7b}{#1}");
p("\\gray", "\\textcolor{gray}{#1}");
p("\\purple", "\\textcolor{##9d38bd}{#1}");
p("\\blueA", "\\textcolor{##ccfaff}{#1}");
p("\\blueB", "\\textcolor{##80f6ff}{#1}");
p("\\blueC", "\\textcolor{##63d9ea}{#1}");
p("\\blueD", "\\textcolor{##11accd}{#1}");
p("\\blueE", "\\textcolor{##0c7f99}{#1}");
p("\\tealA", "\\textcolor{##94fff5}{#1}");
p("\\tealB", "\\textcolor{##26edd5}{#1}");
p("\\tealC", "\\textcolor{##01d1c1}{#1}");
p("\\tealD", "\\textcolor{##01a995}{#1}");
p("\\tealE", "\\textcolor{##208170}{#1}");
p("\\greenA", "\\textcolor{##b6ffb0}{#1}");
p("\\greenB", "\\textcolor{##8af281}{#1}");
p("\\greenC", "\\textcolor{##74cf70}{#1}");
p("\\greenD", "\\textcolor{##1fab54}{#1}");
p("\\greenE", "\\textcolor{##0d923f}{#1}");
p("\\goldA", "\\textcolor{##ffd0a9}{#1}");
p("\\goldB", "\\textcolor{##ffbb71}{#1}");
p("\\goldC", "\\textcolor{##ff9c39}{#1}");
p("\\goldD", "\\textcolor{##e07d10}{#1}");
p("\\goldE", "\\textcolor{##a75a05}{#1}");
p("\\redA", "\\textcolor{##fca9a9}{#1}");
p("\\redB", "\\textcolor{##ff8482}{#1}");
p("\\redC", "\\textcolor{##f9685d}{#1}");
p("\\redD", "\\textcolor{##e84d39}{#1}");
p("\\redE", "\\textcolor{##bc2612}{#1}");
p("\\maroonA", "\\textcolor{##ffbde0}{#1}");
p("\\maroonB", "\\textcolor{##ff92c6}{#1}");
p("\\maroonC", "\\textcolor{##ed5fa6}{#1}");
p("\\maroonD", "\\textcolor{##ca337c}{#1}");
p("\\maroonE", "\\textcolor{##9e034e}{#1}");
p("\\purpleA", "\\textcolor{##ddd7ff}{#1}");
p("\\purpleB", "\\textcolor{##c6b9fc}{#1}");
p("\\purpleC", "\\textcolor{##aa87ff}{#1}");
p("\\purpleD", "\\textcolor{##7854ab}{#1}");
p("\\purpleE", "\\textcolor{##543b78}{#1}");
p("\\mintA", "\\textcolor{##f5f9e8}{#1}");
p("\\mintB", "\\textcolor{##edf2df}{#1}");
p("\\mintC", "\\textcolor{##e0e5cc}{#1}");
p("\\grayA", "\\textcolor{##f6f7f7}{#1}");
p("\\grayB", "\\textcolor{##f0f1f2}{#1}");
p("\\grayC", "\\textcolor{##e3e5e6}{#1}");
p("\\grayD", "\\textcolor{##d6d8da}{#1}");
p("\\grayE", "\\textcolor{##babec2}{#1}");
p("\\grayF", "\\textcolor{##888d93}{#1}");
p("\\grayG", "\\textcolor{##626569}{#1}");
p("\\grayH", "\\textcolor{##3b3e40}{#1}");
p("\\grayI", "\\textcolor{##21242c}{#1}");
p("\\kaBlue", "\\textcolor{##314453}{#1}");
p("\\kaGreen", "\\textcolor{##71B307}{#1}");
var Zo = {
  "^": !0,
  // Parser.js
  _: !0,
  // Parser.js
  "\\limits": !0,
  // Parser.js
  "\\nolimits": !0
  // Parser.js
};
class p4 {
  constructor(e, t, r) {
    this.settings = void 0, this.expansionCount = void 0, this.lexer = void 0, this.macros = void 0, this.stack = void 0, this.mode = void 0, this.settings = t, this.expansionCount = 0, this.feed(e), this.macros = new f4(d4, t.macros), this.mode = r, this.stack = [];
  }
  /**
   * Feed a new input string to the same MacroExpander
   * (with existing macros etc.).
   */
  feed(e) {
    this.lexer = new wl(e, this.settings);
  }
  /**
   * Switches between "text" and "math" modes.
   */
  switchMode(e) {
    this.mode = e;
  }
  /**
   * Start a new group nesting within all namespaces.
   */
  beginGroup() {
    this.macros.beginGroup();
  }
  /**
   * End current group nesting within all namespaces.
   */
  endGroup() {
    this.macros.endGroup();
  }
  /**
   * Ends all currently nested groups (if any), restoring values before the
   * groups began.  Useful in case of an error in the middle of parsing.
   */
  endGroups() {
    this.macros.endGroups();
  }
  /**
   * Returns the topmost token on the stack, without expanding it.
   * Similar in behavior to TeX's `\futurelet`.
   */
  future() {
    return this.stack.length === 0 && this.pushToken(this.lexer.lex()), this.stack[this.stack.length - 1];
  }
  /**
   * Remove and return the next unexpanded token.
   */
  popToken() {
    return this.future(), this.stack.pop();
  }
  /**
   * Add a given token to the token stack.  In particular, this get be used
   * to put back a token returned from one of the other methods.
   */
  pushToken(e) {
    this.stack.push(e);
  }
  /**
   * Append an array of tokens to the token stack.
   */
  pushTokens(e) {
    this.stack.push(...e);
  }
  /**
   * Find an macro argument without expanding tokens and append the array of
   * tokens to the token stack. Uses Token as a container for the result.
   */
  scanArgument(e) {
    var t, r, n;
    if (e) {
      if (this.consumeSpaces(), this.future().text !== "[")
        return null;
      t = this.popToken(), {
        tokens: n,
        end: r
      } = this.consumeArg(["]"]);
    } else
      ({
        tokens: n,
        start: t,
        end: r
      } = this.consumeArg());
    return this.pushToken(new ot("EOF", r.loc)), this.pushTokens(n), t.range(r, "");
  }
  /**
   * Consume all following space tokens, without expansion.
   */
  consumeSpaces() {
    for (; ; ) {
      var e = this.future();
      if (e.text === " ")
        this.stack.pop();
      else
        break;
    }
  }
  /**
   * Consume an argument from the token stream, and return the resulting array
   * of tokens and start/end token.
   */
  consumeArg(e) {
    var t = [], r = e && e.length > 0;
    r || this.consumeSpaces();
    var n = this.future(), i, l = 0, s = 0;
    do {
      if (i = this.popToken(), t.push(i), i.text === "{")
        ++l;
      else if (i.text === "}") {
        if (--l, l === -1)
          throw new O("Extra }", i);
      } else if (i.text === "EOF")
        throw new O("Unexpected end of input in a macro argument, expected '" + (e && r ? e[s] : "}") + "'", i);
      if (e && r)
        if ((l === 0 || l === 1 && e[s] === "{") && i.text === e[s]) {
          if (++s, s === e.length) {
            t.splice(-s, s);
            break;
          }
        } else
          s = 0;
    } while (l !== 0 || r);
    return n.text === "{" && t[t.length - 1].text === "}" && (t.pop(), t.shift()), t.reverse(), {
      tokens: t,
      start: n,
      end: i
    };
  }
  /**
   * Consume the specified number of (delimited) arguments from the token
   * stream and return the resulting array of arguments.
   */
  consumeArgs(e, t) {
    if (t) {
      if (t.length !== e + 1)
        throw new O("The length of delimiters doesn't match the number of args!");
      for (var r = t[0], n = 0; n < r.length; n++) {
        var i = this.popToken();
        if (r[n] !== i.text)
          throw new O("Use of the macro doesn't match its definition", i);
      }
    }
    for (var l = [], s = 0; s < e; s++)
      l.push(this.consumeArg(t && t[s + 1]).tokens);
    return l;
  }
  /**
   * Increment `expansionCount` by the specified amount.
   * Throw an error if it exceeds `maxExpand`.
   */
  countExpansion(e) {
    if (this.expansionCount += e, this.expansionCount > this.settings.maxExpand)
      throw new O("Too many expansions: infinite loop or need to increase maxExpand setting");
  }
  /**
   * Expand the next token only once if possible.
   *
   * If the token is expanded, the resulting tokens will be pushed onto
   * the stack in reverse order, and the number of such tokens will be
   * returned.  This number might be zero or positive.
   *
   * If not, the return value is `false`, and the next token remains at the
   * top of the stack.
   *
   * In either case, the next token will be on the top of the stack,
   * or the stack will be empty (in case of empty expansion
   * and no other tokens).
   *
   * Used to implement `expandAfterFuture` and `expandNextToken`.
   *
   * If expandableOnly, only expandable tokens are expanded and
   * an undefined control sequence results in an error.
   */
  expandOnce(e) {
    var t = this.popToken(), r = t.text, n = t.noexpand ? null : this._getExpansion(r);
    if (n == null || e && n.unexpandable) {
      if (e && n == null && r[0] === "\\" && !this.isDefined(r))
        throw new O("Undefined control sequence: " + r);
      return this.pushToken(t), !1;
    }
    this.countExpansion(1);
    var i = n.tokens, l = this.consumeArgs(n.numArgs, n.delimiters);
    if (n.numArgs) {
      i = i.slice();
      for (var s = i.length - 1; s >= 0; --s) {
        var o = i[s];
        if (o.text === "#") {
          if (s === 0)
            throw new O("Incomplete placeholder at end of macro body", o);
          if (o = i[--s], o.text === "#")
            i.splice(s + 1, 1);
          else if (/^[1-9]$/.test(o.text))
            i.splice(s, 2, ...l[+o.text - 1]);
          else
            throw new O("Not a valid argument number", o);
        }
      }
    }
    return this.pushTokens(i), i.length;
  }
  /**
   * Expand the next token only once (if possible), and return the resulting
   * top token on the stack (without removing anything from the stack).
   * Similar in behavior to TeX's `\expandafter\futurelet`.
   * Equivalent to expandOnce() followed by future().
   */
  expandAfterFuture() {
    return this.expandOnce(), this.future();
  }
  /**
   * Recursively expand first token, then return first non-expandable token.
   */
  expandNextToken() {
    for (; ; )
      if (this.expandOnce() === !1) {
        var e = this.stack.pop();
        return e.treatAsRelax && (e.text = "\\relax"), e;
      }
    throw new Error();
  }
  /**
   * Fully expand the given macro name and return the resulting list of
   * tokens, or return `undefined` if no such macro is defined.
   */
  expandMacro(e) {
    return this.macros.has(e) ? this.expandTokens([new ot(e)]) : void 0;
  }
  /**
   * Fully expand the given token stream and return the resulting list of
   * tokens.  Note that the input tokens are in reverse order, but the
   * output tokens are in forward order.
   */
  expandTokens(e) {
    var t = [], r = this.stack.length;
    for (this.pushTokens(e); this.stack.length > r; )
      if (this.expandOnce(!0) === !1) {
        var n = this.stack.pop();
        n.treatAsRelax && (n.noexpand = !1, n.treatAsRelax = !1), t.push(n);
      }
    return this.countExpansion(t.length), t;
  }
  /**
   * Fully expand the given macro name and return the result as a string,
   * or return `undefined` if no such macro is defined.
   */
  expandMacroAsText(e) {
    var t = this.expandMacro(e);
    return t && t.map((r) => r.text).join("");
  }
  /**
   * Returns the expanded macro as a reversed array of tokens and a macro
   * argument count.  Or returns `null` if no such macro.
   */
  _getExpansion(e) {
    var t = this.macros.get(e);
    if (t == null)
      return t;
    if (e.length === 1) {
      var r = this.lexer.catcodes[e];
      if (r != null && r !== 13)
        return;
    }
    var n = typeof t == "function" ? t(this) : t;
    if (typeof n == "string") {
      var i = 0;
      if (n.indexOf("#") !== -1)
        for (var l = n.replace(/##/g, ""); l.indexOf("#" + (i + 1)) !== -1; )
          ++i;
      for (var s = new wl(n, this.settings), o = [], h = s.lex(); h.text !== "EOF"; )
        o.push(h), h = s.lex();
      o.reverse();
      var m = {
        tokens: o,
        numArgs: i
      };
      return m;
    }
    return n;
  }
  /**
   * Determine whether a command is currently "defined" (has some
   * functionality), meaning that it's a macro (in the current group),
   * a function, a symbol, or one of the special commands listed in
   * `implicitCommands`.
   */
  isDefined(e) {
    return this.macros.has(e) || m0.hasOwnProperty(e) || me.math.hasOwnProperty(e) || me.text.hasOwnProperty(e) || Zo.hasOwnProperty(e);
  }
  /**
   * Determine whether a command is expandable.
   */
  isExpandable(e) {
    var t = this.macros.get(e);
    return t != null ? typeof t == "string" || typeof t == "function" || !t.unexpandable : m0.hasOwnProperty(e) && !m0[e].primitive;
  }
}
var _l = /^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/, Lr = Object.freeze({
  "₊": "+",
  "₋": "-",
  "₌": "=",
  "₍": "(",
  "₎": ")",
  "₀": "0",
  "₁": "1",
  "₂": "2",
  "₃": "3",
  "₄": "4",
  "₅": "5",
  "₆": "6",
  "₇": "7",
  "₈": "8",
  "₉": "9",
  "ₐ": "a",
  "ₑ": "e",
  "ₕ": "h",
  "ᵢ": "i",
  "ⱼ": "j",
  "ₖ": "k",
  "ₗ": "l",
  "ₘ": "m",
  "ₙ": "n",
  "ₒ": "o",
  "ₚ": "p",
  "ᵣ": "r",
  "ₛ": "s",
  "ₜ": "t",
  "ᵤ": "u",
  "ᵥ": "v",
  "ₓ": "x",
  "ᵦ": "β",
  "ᵧ": "γ",
  "ᵨ": "ρ",
  "ᵩ": "ϕ",
  "ᵪ": "χ",
  "⁺": "+",
  "⁻": "-",
  "⁼": "=",
  "⁽": "(",
  "⁾": ")",
  "⁰": "0",
  "¹": "1",
  "²": "2",
  "³": "3",
  "⁴": "4",
  "⁵": "5",
  "⁶": "6",
  "⁷": "7",
  "⁸": "8",
  "⁹": "9",
  "ᴬ": "A",
  "ᴮ": "B",
  "ᴰ": "D",
  "ᴱ": "E",
  "ᴳ": "G",
  "ᴴ": "H",
  "ᴵ": "I",
  "ᴶ": "J",
  "ᴷ": "K",
  "ᴸ": "L",
  "ᴹ": "M",
  "ᴺ": "N",
  "ᴼ": "O",
  "ᴾ": "P",
  "ᴿ": "R",
  "ᵀ": "T",
  "ᵁ": "U",
  "ⱽ": "V",
  "ᵂ": "W",
  "ᵃ": "a",
  "ᵇ": "b",
  "ᶜ": "c",
  "ᵈ": "d",
  "ᵉ": "e",
  "ᶠ": "f",
  "ᵍ": "g",
  ʰ: "h",
  "ⁱ": "i",
  ʲ: "j",
  "ᵏ": "k",
  ˡ: "l",
  "ᵐ": "m",
  ⁿ: "n",
  "ᵒ": "o",
  "ᵖ": "p",
  ʳ: "r",
  ˢ: "s",
  "ᵗ": "t",
  "ᵘ": "u",
  "ᵛ": "v",
  ʷ: "w",
  ˣ: "x",
  ʸ: "y",
  "ᶻ": "z",
  "ᵝ": "β",
  "ᵞ": "γ",
  "ᵟ": "δ",
  "ᵠ": "ϕ",
  "ᵡ": "χ",
  "ᶿ": "θ"
}), Ka = {
  "́": {
    text: "\\'",
    math: "\\acute"
  },
  "̀": {
    text: "\\`",
    math: "\\grave"
  },
  "̈": {
    text: '\\"',
    math: "\\ddot"
  },
  "̃": {
    text: "\\~",
    math: "\\tilde"
  },
  "̄": {
    text: "\\=",
    math: "\\bar"
  },
  "̆": {
    text: "\\u",
    math: "\\breve"
  },
  "̌": {
    text: "\\v",
    math: "\\check"
  },
  "̂": {
    text: "\\^",
    math: "\\hat"
  },
  "̇": {
    text: "\\.",
    math: "\\dot"
  },
  "̊": {
    text: "\\r",
    math: "\\mathring"
  },
  "̋": {
    text: "\\H"
  },
  "̧": {
    text: "\\c"
  }
}, Dl = {
  á: "á",
  à: "à",
  ä: "ä",
  ǟ: "ǟ",
  ã: "ã",
  ā: "ā",
  ă: "ă",
  ắ: "ắ",
  ằ: "ằ",
  ẵ: "ẵ",
  ǎ: "ǎ",
  â: "â",
  ấ: "ấ",
  ầ: "ầ",
  ẫ: "ẫ",
  ȧ: "ȧ",
  ǡ: "ǡ",
  å: "å",
  ǻ: "ǻ",
  ḃ: "ḃ",
  ć: "ć",
  ḉ: "ḉ",
  č: "č",
  ĉ: "ĉ",
  ċ: "ċ",
  ç: "ç",
  ď: "ď",
  ḋ: "ḋ",
  ḑ: "ḑ",
  é: "é",
  è: "è",
  ë: "ë",
  ẽ: "ẽ",
  ē: "ē",
  ḗ: "ḗ",
  ḕ: "ḕ",
  ĕ: "ĕ",
  ḝ: "ḝ",
  ě: "ě",
  ê: "ê",
  ế: "ế",
  ề: "ề",
  ễ: "ễ",
  ė: "ė",
  ȩ: "ȩ",
  ḟ: "ḟ",
  ǵ: "ǵ",
  ḡ: "ḡ",
  ğ: "ğ",
  ǧ: "ǧ",
  ĝ: "ĝ",
  ġ: "ġ",
  ģ: "ģ",
  ḧ: "ḧ",
  ȟ: "ȟ",
  ĥ: "ĥ",
  ḣ: "ḣ",
  ḩ: "ḩ",
  í: "í",
  ì: "ì",
  ï: "ï",
  ḯ: "ḯ",
  ĩ: "ĩ",
  ī: "ī",
  ĭ: "ĭ",
  ǐ: "ǐ",
  î: "î",
  ǰ: "ǰ",
  ĵ: "ĵ",
  ḱ: "ḱ",
  ǩ: "ǩ",
  ķ: "ķ",
  ĺ: "ĺ",
  ľ: "ľ",
  ļ: "ļ",
  ḿ: "ḿ",
  ṁ: "ṁ",
  ń: "ń",
  ǹ: "ǹ",
  ñ: "ñ",
  ň: "ň",
  ṅ: "ṅ",
  ņ: "ņ",
  ó: "ó",
  ò: "ò",
  ö: "ö",
  ȫ: "ȫ",
  õ: "õ",
  ṍ: "ṍ",
  ṏ: "ṏ",
  ȭ: "ȭ",
  ō: "ō",
  ṓ: "ṓ",
  ṑ: "ṑ",
  ŏ: "ŏ",
  ǒ: "ǒ",
  ô: "ô",
  ố: "ố",
  ồ: "ồ",
  ỗ: "ỗ",
  ȯ: "ȯ",
  ȱ: "ȱ",
  ő: "ő",
  ṕ: "ṕ",
  ṗ: "ṗ",
  ŕ: "ŕ",
  ř: "ř",
  ṙ: "ṙ",
  ŗ: "ŗ",
  ś: "ś",
  ṥ: "ṥ",
  š: "š",
  ṧ: "ṧ",
  ŝ: "ŝ",
  ṡ: "ṡ",
  ş: "ş",
  ẗ: "ẗ",
  ť: "ť",
  ṫ: "ṫ",
  ţ: "ţ",
  ú: "ú",
  ù: "ù",
  ü: "ü",
  ǘ: "ǘ",
  ǜ: "ǜ",
  ǖ: "ǖ",
  ǚ: "ǚ",
  ũ: "ũ",
  ṹ: "ṹ",
  ū: "ū",
  ṻ: "ṻ",
  ŭ: "ŭ",
  ǔ: "ǔ",
  û: "û",
  ů: "ů",
  ű: "ű",
  ṽ: "ṽ",
  ẃ: "ẃ",
  ẁ: "ẁ",
  ẅ: "ẅ",
  ŵ: "ŵ",
  ẇ: "ẇ",
  ẘ: "ẘ",
  ẍ: "ẍ",
  ẋ: "ẋ",
  ý: "ý",
  ỳ: "ỳ",
  ÿ: "ÿ",
  ỹ: "ỹ",
  ȳ: "ȳ",
  ŷ: "ŷ",
  ẏ: "ẏ",
  ẙ: "ẙ",
  ź: "ź",
  ž: "ž",
  ẑ: "ẑ",
  ż: "ż",
  Á: "Á",
  À: "À",
  Ä: "Ä",
  Ǟ: "Ǟ",
  Ã: "Ã",
  Ā: "Ā",
  Ă: "Ă",
  Ắ: "Ắ",
  Ằ: "Ằ",
  Ẵ: "Ẵ",
  Ǎ: "Ǎ",
  Â: "Â",
  Ấ: "Ấ",
  Ầ: "Ầ",
  Ẫ: "Ẫ",
  Ȧ: "Ȧ",
  Ǡ: "Ǡ",
  Å: "Å",
  Ǻ: "Ǻ",
  Ḃ: "Ḃ",
  Ć: "Ć",
  Ḉ: "Ḉ",
  Č: "Č",
  Ĉ: "Ĉ",
  Ċ: "Ċ",
  Ç: "Ç",
  Ď: "Ď",
  Ḋ: "Ḋ",
  Ḑ: "Ḑ",
  É: "É",
  È: "È",
  Ë: "Ë",
  Ẽ: "Ẽ",
  Ē: "Ē",
  Ḗ: "Ḗ",
  Ḕ: "Ḕ",
  Ĕ: "Ĕ",
  Ḝ: "Ḝ",
  Ě: "Ě",
  Ê: "Ê",
  Ế: "Ế",
  Ề: "Ề",
  Ễ: "Ễ",
  Ė: "Ė",
  Ȩ: "Ȩ",
  Ḟ: "Ḟ",
  Ǵ: "Ǵ",
  Ḡ: "Ḡ",
  Ğ: "Ğ",
  Ǧ: "Ǧ",
  Ĝ: "Ĝ",
  Ġ: "Ġ",
  Ģ: "Ģ",
  Ḧ: "Ḧ",
  Ȟ: "Ȟ",
  Ĥ: "Ĥ",
  Ḣ: "Ḣ",
  Ḩ: "Ḩ",
  Í: "Í",
  Ì: "Ì",
  Ï: "Ï",
  Ḯ: "Ḯ",
  Ĩ: "Ĩ",
  Ī: "Ī",
  Ĭ: "Ĭ",
  Ǐ: "Ǐ",
  Î: "Î",
  İ: "İ",
  Ĵ: "Ĵ",
  Ḱ: "Ḱ",
  Ǩ: "Ǩ",
  Ķ: "Ķ",
  Ĺ: "Ĺ",
  Ľ: "Ľ",
  Ļ: "Ļ",
  Ḿ: "Ḿ",
  Ṁ: "Ṁ",
  Ń: "Ń",
  Ǹ: "Ǹ",
  Ñ: "Ñ",
  Ň: "Ň",
  Ṅ: "Ṅ",
  Ņ: "Ņ",
  Ó: "Ó",
  Ò: "Ò",
  Ö: "Ö",
  Ȫ: "Ȫ",
  Õ: "Õ",
  Ṍ: "Ṍ",
  Ṏ: "Ṏ",
  Ȭ: "Ȭ",
  Ō: "Ō",
  Ṓ: "Ṓ",
  Ṑ: "Ṑ",
  Ŏ: "Ŏ",
  Ǒ: "Ǒ",
  Ô: "Ô",
  Ố: "Ố",
  Ồ: "Ồ",
  Ỗ: "Ỗ",
  Ȯ: "Ȯ",
  Ȱ: "Ȱ",
  Ő: "Ő",
  Ṕ: "Ṕ",
  Ṗ: "Ṗ",
  Ŕ: "Ŕ",
  Ř: "Ř",
  Ṙ: "Ṙ",
  Ŗ: "Ŗ",
  Ś: "Ś",
  Ṥ: "Ṥ",
  Š: "Š",
  Ṧ: "Ṧ",
  Ŝ: "Ŝ",
  Ṡ: "Ṡ",
  Ş: "Ş",
  Ť: "Ť",
  Ṫ: "Ṫ",
  Ţ: "Ţ",
  Ú: "Ú",
  Ù: "Ù",
  Ü: "Ü",
  Ǘ: "Ǘ",
  Ǜ: "Ǜ",
  Ǖ: "Ǖ",
  Ǚ: "Ǚ",
  Ũ: "Ũ",
  Ṹ: "Ṹ",
  Ū: "Ū",
  Ṻ: "Ṻ",
  Ŭ: "Ŭ",
  Ǔ: "Ǔ",
  Û: "Û",
  Ů: "Ů",
  Ű: "Ű",
  Ṽ: "Ṽ",
  Ẃ: "Ẃ",
  Ẁ: "Ẁ",
  Ẅ: "Ẅ",
  Ŵ: "Ŵ",
  Ẇ: "Ẇ",
  Ẍ: "Ẍ",
  Ẋ: "Ẋ",
  Ý: "Ý",
  Ỳ: "Ỳ",
  Ÿ: "Ÿ",
  Ỹ: "Ỹ",
  Ȳ: "Ȳ",
  Ŷ: "Ŷ",
  Ẏ: "Ẏ",
  Ź: "Ź",
  Ž: "Ž",
  Ẑ: "Ẑ",
  Ż: "Ż",
  ά: "ά",
  ὰ: "ὰ",
  ᾱ: "ᾱ",
  ᾰ: "ᾰ",
  έ: "έ",
  ὲ: "ὲ",
  ή: "ή",
  ὴ: "ὴ",
  ί: "ί",
  ὶ: "ὶ",
  ϊ: "ϊ",
  ΐ: "ΐ",
  ῒ: "ῒ",
  ῑ: "ῑ",
  ῐ: "ῐ",
  ό: "ό",
  ὸ: "ὸ",
  ύ: "ύ",
  ὺ: "ὺ",
  ϋ: "ϋ",
  ΰ: "ΰ",
  ῢ: "ῢ",
  ῡ: "ῡ",
  ῠ: "ῠ",
  ώ: "ώ",
  ὼ: "ὼ",
  Ύ: "Ύ",
  Ὺ: "Ὺ",
  Ϋ: "Ϋ",
  Ῡ: "Ῡ",
  Ῠ: "Ῠ",
  Ώ: "Ώ",
  Ὼ: "Ὼ"
};
class Fa {
  constructor(e, t) {
    this.mode = void 0, this.gullet = void 0, this.settings = void 0, this.leftrightDepth = void 0, this.nextToken = void 0, this.mode = "math", this.gullet = new p4(e, t, this.mode), this.settings = t, this.leftrightDepth = 0;
  }
  /**
   * Checks a result to make sure it has the right type, and throws an
   * appropriate error otherwise.
   */
  expect(e, t) {
    if (t === void 0 && (t = !0), this.fetch().text !== e)
      throw new O("Expected '" + e + "', got '" + this.fetch().text + "'", this.fetch());
    t && this.consume();
  }
  /**
   * Discards the current lookahead token, considering it consumed.
   */
  consume() {
    this.nextToken = null;
  }
  /**
   * Return the current lookahead token, or if there isn't one (at the
   * beginning, or if the previous lookahead token was consume()d),
   * fetch the next token as the new lookahead token and return it.
   */
  fetch() {
    return this.nextToken == null && (this.nextToken = this.gullet.expandNextToken()), this.nextToken;
  }
  /**
   * Switches between "text" and "math" modes.
   */
  switchMode(e) {
    this.mode = e, this.gullet.switchMode(e);
  }
  /**
   * Main parsing function, which parses an entire input.
   */
  parse() {
    this.settings.globalGroup || this.gullet.beginGroup(), this.settings.colorIsTextColor && this.gullet.macros.set("\\color", "\\textcolor");
    try {
      var e = this.parseExpression(!1);
      return this.expect("EOF"), this.settings.globalGroup || this.gullet.endGroup(), e;
    } finally {
      this.gullet.endGroups();
    }
  }
  /**
   * Fully parse a separate sequence of tokens as a separate job.
   * Tokens should be specified in reverse order, as in a MacroDefinition.
   */
  subparse(e) {
    var t = this.nextToken;
    this.consume(), this.gullet.pushToken(new ot("}")), this.gullet.pushTokens(e);
    var r = this.parseExpression(!1);
    return this.expect("}"), this.nextToken = t, r;
  }
  /**
   * Parses an "expression", which is a list of atoms.
   *
   * `breakOnInfix`: Should the parsing stop when we hit infix nodes? This
   *                 happens when functions have higher precedence han infix
   *                 nodes in implicit parses.
   *
   * `breakOnTokenText`: The text of the token that the expression should end
   *                     with, or `null` if something else should end the
   *                     expression.
   */
  parseExpression(e, t) {
    for (var r = []; ; ) {
      this.mode === "math" && this.consumeSpaces();
      var n = this.fetch();
      if (Fa.endOfExpression.indexOf(n.text) !== -1 || t && n.text === t || e && m0[n.text] && m0[n.text].infix)
        break;
      var i = this.parseAtom(t);
      if (i) {
        if (i.type === "internal")
          continue;
      } else break;
      r.push(i);
    }
    return this.mode === "text" && this.formLigatures(r), this.handleInfixNodes(r);
  }
  /**
   * Rewrites infix operators such as \over with corresponding commands such
   * as \frac.
   *
   * There can only be one infix operator per group.  If there's more than one
   * then the expression is ambiguous.  This can be resolved by adding {}.
   */
  handleInfixNodes(e) {
    for (var t = -1, r, n = 0; n < e.length; n++)
      if (e[n].type === "infix") {
        if (t !== -1)
          throw new O("only one infix operator per group", e[n].token);
        t = n, r = e[n].replaceWith;
      }
    if (t !== -1 && r) {
      var i, l, s = e.slice(0, t), o = e.slice(t + 1);
      s.length === 1 && s[0].type === "ordgroup" ? i = s[0] : i = {
        type: "ordgroup",
        mode: this.mode,
        body: s
      }, o.length === 1 && o[0].type === "ordgroup" ? l = o[0] : l = {
        type: "ordgroup",
        mode: this.mode,
        body: o
      };
      var h;
      return r === "\\\\abovefrac" ? h = this.callFunction(r, [i, e[t], l], []) : h = this.callFunction(r, [i, l], []), [h];
    } else
      return e;
  }
  /**
   * Handle a subscript or superscript with nice errors.
   */
  handleSupSubscript(e) {
    var t = this.fetch(), r = t.text;
    this.consume(), this.consumeSpaces();
    var n = this.parseGroup(e);
    if (!n)
      throw new O("Expected group after '" + r + "'", t);
    return n;
  }
  /**
   * Converts the textual input of an unsupported command into a text node
   * contained within a color node whose color is determined by errorColor
   */
  formatUnsupportedCmd(e) {
    for (var t = [], r = 0; r < e.length; r++)
      t.push({
        type: "textord",
        mode: "text",
        text: e[r]
      });
    var n = {
      type: "text",
      mode: this.mode,
      body: t
    }, i = {
      type: "color",
      mode: this.mode,
      color: this.settings.errorColor,
      body: [n]
    };
    return i;
  }
  /**
   * Parses a group with optional super/subscripts.
   */
  parseAtom(e) {
    var t = this.parseGroup("atom", e);
    if (this.mode === "text")
      return t;
    for (var r, n; ; ) {
      this.consumeSpaces();
      var i = this.fetch();
      if (i.text === "\\limits" || i.text === "\\nolimits") {
        if (t && t.type === "op") {
          var l = i.text === "\\limits";
          t.limits = l, t.alwaysHandleSupSub = !0;
        } else if (t && t.type === "operatorname")
          t.alwaysHandleSupSub && (t.limits = i.text === "\\limits");
        else
          throw new O("Limit controls must follow a math operator", i);
        this.consume();
      } else if (i.text === "^") {
        if (r)
          throw new O("Double superscript", i);
        r = this.handleSupSubscript("superscript");
      } else if (i.text === "_") {
        if (n)
          throw new O("Double subscript", i);
        n = this.handleSupSubscript("subscript");
      } else if (i.text === "'") {
        if (r)
          throw new O("Double superscript", i);
        var s = {
          type: "textord",
          mode: this.mode,
          text: "\\prime"
        }, o = [s];
        for (this.consume(); this.fetch().text === "'"; )
          o.push(s), this.consume();
        this.fetch().text === "^" && o.push(this.handleSupSubscript("superscript")), r = {
          type: "ordgroup",
          mode: this.mode,
          body: o
        };
      } else if (Lr[i.text]) {
        var h = _l.test(i.text), m = [];
        for (m.push(new ot(Lr[i.text])), this.consume(); ; ) {
          var d = this.fetch().text;
          if (!Lr[d] || _l.test(d) !== h)
            break;
          m.unshift(new ot(Lr[d])), this.consume();
        }
        var g = this.subparse(m);
        h ? n = {
          type: "ordgroup",
          mode: "math",
          body: g
        } : r = {
          type: "ordgroup",
          mode: "math",
          body: g
        };
      } else
        break;
    }
    return r || n ? {
      type: "supsub",
      mode: this.mode,
      base: t,
      sup: r,
      sub: n
    } : t;
  }
  /**
   * Parses an entire function, including its base and all of its arguments.
   */
  parseFunction(e, t) {
    var r = this.fetch(), n = r.text, i = m0[n];
    if (!i)
      return null;
    if (this.consume(), t && t !== "atom" && !i.allowedInArgument)
      throw new O("Got function '" + n + "' with no arguments" + (t ? " as " + t : ""), r);
    if (this.mode === "text" && !i.allowedInText)
      throw new O("Can't use function '" + n + "' in text mode", r);
    if (this.mode === "math" && i.allowedInMath === !1)
      throw new O("Can't use function '" + n + "' in math mode", r);
    var {
      args: l,
      optArgs: s
    } = this.parseArguments(n, i);
    return this.callFunction(n, l, s, r, e);
  }
  /**
   * Call a function handler with a suitable context and arguments.
   */
  callFunction(e, t, r, n, i) {
    var l = {
      funcName: e,
      parser: this,
      token: n,
      breakOnTokenText: i
    }, s = m0[e];
    if (s && s.handler)
      return s.handler(l, t, r);
    throw new O("No function handler for " + e);
  }
  /**
   * Parses the arguments of a function or environment
   */
  parseArguments(e, t) {
    var r = t.numArgs + t.numOptionalArgs;
    if (r === 0)
      return {
        args: [],
        optArgs: []
      };
    for (var n = [], i = [], l = 0; l < r; l++) {
      var s = t.argTypes && t.argTypes[l], o = l < t.numOptionalArgs;
      (t.primitive && s == null || // \sqrt expands into primitive if optional argument doesn't exist
      t.type === "sqrt" && l === 1 && i[0] == null) && (s = "primitive");
      var h = this.parseGroupOfType("argument to '" + e + "'", s, o);
      if (o)
        i.push(h);
      else if (h != null)
        n.push(h);
      else
        throw new O("Null argument, please report this as a bug");
    }
    return {
      args: n,
      optArgs: i
    };
  }
  /**
   * Parses a group when the mode is changing.
   */
  parseGroupOfType(e, t, r) {
    switch (t) {
      case "color":
        return this.parseColorGroup(r);
      case "size":
        return this.parseSizeGroup(r);
      case "url":
        return this.parseUrlGroup(r);
      case "math":
      case "text":
        return this.parseArgumentGroup(r, t);
      case "hbox": {
        var n = this.parseArgumentGroup(r, "text");
        return n != null ? {
          type: "styling",
          mode: n.mode,
          body: [n],
          style: "text"
          // simulate \textstyle
        } : null;
      }
      case "raw": {
        var i = this.parseStringGroup("raw", r);
        return i != null ? {
          type: "raw",
          mode: "text",
          string: i.text
        } : null;
      }
      case "primitive": {
        if (r)
          throw new O("A primitive argument cannot be optional");
        var l = this.parseGroup(e);
        if (l == null)
          throw new O("Expected group as " + e, this.fetch());
        return l;
      }
      case "original":
      case null:
      case void 0:
        return this.parseArgumentGroup(r);
      default:
        throw new O("Unknown group type as " + e, this.fetch());
    }
  }
  /**
   * Discard any space tokens, fetching the next non-space token.
   */
  consumeSpaces() {
    for (; this.fetch().text === " "; )
      this.consume();
  }
  /**
   * Parses a group, essentially returning the string formed by the
   * brace-enclosed tokens plus some position information.
   */
  parseStringGroup(e, t) {
    var r = this.gullet.scanArgument(t);
    if (r == null)
      return null;
    for (var n = "", i; (i = this.fetch()).text !== "EOF"; )
      n += i.text, this.consume();
    return this.consume(), r.text = n, r;
  }
  /**
   * Parses a regex-delimited group: the largest sequence of tokens
   * whose concatenated strings match `regex`. Returns the string
   * formed by the tokens plus some position information.
   */
  parseRegexGroup(e, t) {
    for (var r = this.fetch(), n = r, i = "", l; (l = this.fetch()).text !== "EOF" && e.test(i + l.text); )
      n = l, i += n.text, this.consume();
    if (i === "")
      throw new O("Invalid " + t + ": '" + r.text + "'", r);
    return r.range(n, i);
  }
  /**
   * Parses a color description.
   */
  parseColorGroup(e) {
    var t = this.parseStringGroup("color", e);
    if (t == null)
      return null;
    var r = /^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(t.text);
    if (!r)
      throw new O("Invalid color: '" + t.text + "'", t);
    var n = r[0];
    return /^[0-9a-f]{6}$/i.test(n) && (n = "#" + n), {
      type: "color-token",
      mode: this.mode,
      color: n
    };
  }
  /**
   * Parses a size specification, consisting of magnitude and unit.
   */
  parseSizeGroup(e) {
    var t, r = !1;
    if (this.gullet.consumeSpaces(), !e && this.gullet.future().text !== "{" ? t = this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/, "size") : t = this.parseStringGroup("size", e), !t)
      return null;
    !e && t.text.length === 0 && (t.text = "0pt", r = !0);
    var n = /([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t.text);
    if (!n)
      throw new O("Invalid size: '" + t.text + "'", t);
    var i = {
      number: +(n[1] + n[2]),
      // sign + magnitude, cast to number
      unit: n[3]
    };
    if (!no(i))
      throw new O("Invalid unit: '" + i.unit + "'", t);
    return {
      type: "size",
      mode: this.mode,
      value: i,
      isBlank: r
    };
  }
  /**
   * Parses an URL, checking escaped letters and allowed protocols,
   * and setting the catcode of % as an active character (as in \hyperref).
   */
  parseUrlGroup(e) {
    this.gullet.lexer.setCatcode("%", 13), this.gullet.lexer.setCatcode("~", 12);
    var t = this.parseStringGroup("url", e);
    if (this.gullet.lexer.setCatcode("%", 14), this.gullet.lexer.setCatcode("~", 13), t == null)
      return null;
    var r = t.text.replace(/\\([#$%&~_^{}])/g, "$1");
    return {
      type: "url",
      mode: this.mode,
      url: r
    };
  }
  /**
   * Parses an argument with the mode specified.
   */
  parseArgumentGroup(e, t) {
    var r = this.gullet.scanArgument(e);
    if (r == null)
      return null;
    var n = this.mode;
    t && this.switchMode(t), this.gullet.beginGroup();
    var i = this.parseExpression(!1, "EOF");
    this.expect("EOF"), this.gullet.endGroup();
    var l = {
      type: "ordgroup",
      mode: this.mode,
      loc: r.loc,
      body: i
    };
    return t && this.switchMode(n), l;
  }
  /**
   * Parses an ordinary group, which is either a single nucleus (like "x")
   * or an expression in braces (like "{x+y}") or an implicit group, a group
   * that starts at the current position, and ends right before a higher explicit
   * group ends, or at EOF.
   */
  parseGroup(e, t) {
    var r = this.fetch(), n = r.text, i;
    if (n === "{" || n === "\\begingroup") {
      this.consume();
      var l = n === "{" ? "}" : "\\endgroup";
      this.gullet.beginGroup();
      var s = this.parseExpression(!1, l), o = this.fetch();
      this.expect(l), this.gullet.endGroup(), i = {
        type: "ordgroup",
        mode: this.mode,
        loc: Je.range(r, o),
        body: s,
        // A group formed by \begingroup...\endgroup is a semi-simple group
        // which doesn't affect spacing in math mode, i.e., is transparent.
        // https://tex.stackexchange.com/questions/1930/when-should-one-
        // use-begingroup-instead-of-bgroup
        semisimple: n === "\\begingroup" || void 0
      };
    } else if (i = this.parseFunction(t, e) || this.parseSymbol(), i == null && n[0] === "\\" && !Zo.hasOwnProperty(n)) {
      if (this.settings.throwOnError)
        throw new O("Undefined control sequence: " + n, r);
      i = this.formatUnsupportedCmd(n), this.consume();
    }
    return i;
  }
  /**
   * Form ligature-like combinations of characters for text mode.
   * This includes inputs like "--", "---", "``" and "''".
   * The result will simply replace multiple textord nodes with a single
   * character in each value by a single textord node having multiple
   * characters in its value.  The representation is still ASCII source.
   * The group will be modified in place.
   */
  formLigatures(e) {
    for (var t = e.length - 1, r = 0; r < t; ++r) {
      var n = e[r], i = n.text;
      i === "-" && e[r + 1].text === "-" && (r + 1 < t && e[r + 2].text === "-" ? (e.splice(r, 3, {
        type: "textord",
        mode: "text",
        loc: Je.range(n, e[r + 2]),
        text: "---"
      }), t -= 2) : (e.splice(r, 2, {
        type: "textord",
        mode: "text",
        loc: Je.range(n, e[r + 1]),
        text: "--"
      }), t -= 1)), (i === "'" || i === "`") && e[r + 1].text === i && (e.splice(r, 2, {
        type: "textord",
        mode: "text",
        loc: Je.range(n, e[r + 1]),
        text: i + i
      }), t -= 1);
    }
  }
  /**
   * Parse a single symbol out of the string. Here, we handle single character
   * symbols and special functions like \verb.
   */
  parseSymbol() {
    var e = this.fetch(), t = e.text;
    if (/^\\verb[^a-zA-Z]/.test(t)) {
      this.consume();
      var r = t.slice(5), n = r.charAt(0) === "*";
      if (n && (r = r.slice(1)), r.length < 2 || r.charAt(0) !== r.slice(-1))
        throw new O(`\\verb assertion failed --
                    please report what input caused this bug`);
      return r = r.slice(1, -1), {
        type: "verb",
        mode: "text",
        body: r,
        star: n
      };
    }
    Dl.hasOwnProperty(t[0]) && !me[this.mode][t[0]] && (this.settings.strict && this.mode === "math" && this.settings.reportNonstrict("unicodeTextInMathMode", 'Accented Unicode text character "' + t[0] + '" used in math mode', e), t = Dl[t[0]] + t.slice(1));
    var i = h4.exec(t);
    i && (t = t.substring(0, i.index), t === "i" ? t = "ı" : t === "j" && (t = "ȷ"));
    var l;
    if (me[this.mode][t]) {
      this.settings.strict && this.mode === "math" && Dn.indexOf(t) >= 0 && this.settings.reportNonstrict("unicodeTextInMathMode", 'Latin-1/Unicode text character "' + t[0] + '" used in math mode', e);
      var s = me[this.mode][t].group, o = Je.range(e), h;
      if (ac.hasOwnProperty(s)) {
        var m = s;
        h = {
          type: "atom",
          mode: this.mode,
          family: m,
          loc: o,
          text: t
        };
      } else
        h = {
          type: s,
          mode: this.mode,
          loc: o,
          text: t
        };
      l = h;
    } else if (t.charCodeAt(0) >= 128)
      this.settings.strict && (ao(t.charCodeAt(0)) ? this.mode === "math" && this.settings.reportNonstrict("unicodeTextInMathMode", 'Unicode text character "' + t[0] + '" used in math mode', e) : this.settings.reportNonstrict("unknownSymbol", 'Unrecognized Unicode character "' + t[0] + '"' + (" (" + t.charCodeAt(0) + ")"), e)), l = {
        type: "textord",
        mode: "text",
        loc: Je.range(e),
        text: t
      };
    else
      return null;
    if (this.consume(), i)
      for (var d = 0; d < i[0].length; d++) {
        var g = i[0][d];
        if (!Ka[g])
          throw new O("Unknown accent ' " + g + "'", e);
        var v = Ka[g][this.mode] || Ka[g].text;
        if (!v)
          throw new O("Accent " + g + " unsupported in " + this.mode + " mode", e);
        l = {
          type: "accent",
          mode: this.mode,
          loc: Je.range(e),
          label: v,
          isStretchy: !1,
          isShifty: !0,
          // $FlowFixMe
          base: l
        };
      }
    return l;
  }
}
Fa.endOfExpression = ["}", "\\endgroup", "\\end", "\\right", "&"];
var ui = function(e, t) {
  if (!(typeof e == "string" || e instanceof String))
    throw new TypeError("KaTeX can only parse string typed expression");
  var r = new Fa(e, t);
  delete r.gullet.macros.current["\\df@tag"];
  var n = r.parse();
  if (delete r.gullet.macros.current["\\current@color"], delete r.gullet.macros.current["\\color"], r.gullet.macros.get("\\df@tag")) {
    if (!t.displayMode)
      throw new O("\\tag works only in display equations");
    n = [{
      type: "tag",
      mode: "text",
      body: n,
      tag: r.subparse([new ot("\\df@tag")])
    }];
  }
  return n;
}, Ko = function(e, t, r) {
  t.textContent = "";
  var n = ci(e, r).toNode();
  t.appendChild(n);
};
typeof document < "u" && document.compatMode !== "CSS1Compat" && (typeof console < "u" && console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."), Ko = function() {
  throw new O("KaTeX doesn't work in quirks mode.");
});
var g4 = function(e, t) {
  var r = ci(e, t).toMarkup();
  return r;
}, v4 = function(e, t) {
  var r = new Wn(t);
  return ui(e, r);
}, Qo = function(e, t, r) {
  if (r.throwOnError || !(e instanceof O))
    throw e;
  var n = C.makeSpan(["katex-error"], [new ut(t)]);
  return n.setAttribute("title", e.toString()), n.setAttribute("style", "color:" + r.errorColor), n;
}, ci = function(e, t) {
  var r = new Wn(t);
  try {
    var n = ui(e, r);
    return Sc(n, e, r);
  } catch (i) {
    return Qo(i, e, r);
  }
}, b4 = function(e, t) {
  var r = new Wn(t);
  try {
    var n = ui(e, r);
    return Ec(n, e, r);
  } catch (i) {
    return Qo(i, e, r);
  }
}, y4 = "0.16.18", w4 = {
  Span: yr,
  Anchor: jn,
  SymbolNode: ut,
  SvgNode: n0,
  PathNode: p0,
  LineNode: _n
}, Al = {
  /**
   * Current KaTeX version
   */
  version: y4,
  /**
   * Renders the given LaTeX into an HTML+MathML combination, and adds
   * it as a child to the specified DOM node.
   */
  render: Ko,
  /**
   * Renders the given LaTeX into an HTML+MathML combination string,
   * for sending to the client.
   */
  renderToString: g4,
  /**
   * KaTeX error, usually during parsing.
   */
  ParseError: O,
  /**
   * The schema of Settings
   */
  SETTINGS_SCHEMA: ea,
  /**
   * Parses the given LaTeX into KaTeX's internal parse tree structure,
   * without rendering to HTML or MathML.
   *
   * NOTE: This method is not currently recommended for public use.
   * The internal tree representation is unstable and is very likely
   * to change. Use at your own risk.
   */
  __parse: v4,
  /**
   * Renders the given LaTeX into an HTML+MathML internal DOM tree
   * representation, without flattening that representation to a string.
   *
   * NOTE: This method is not currently recommended for public use.
   * The internal tree representation is unstable and is very likely
   * to change. Use at your own risk.
   */
  __renderToDomTree: ci,
  /**
   * Renders the given LaTeX into an HTML internal DOM tree representation,
   * without MathML and without flattening that representation to a string.
   *
   * NOTE: This method is not currently recommended for public use.
   * The internal tree representation is unstable and is very likely
   * to change. Use at your own risk.
   */
  __renderToHTMLTree: b4,
  /**
   * extends internal font metrics object with a new object
   * each key in the new object represents a font name
  */
  __setFontMetrics: K1,
  /**
   * adds a new symbol to builtin symbols table
   */
  __defineSymbol: u,
  /**
   * adds a new function to builtin function list,
   * which directly produce parse tree elements
   * and have their own html/mathml builders
   */
  __defineFunction: G,
  /**
   * adds a new macro to builtin macro list
   */
  __defineMacro: p,
  /**
   * Expose the dom tree node types, which can be useful for type checking nodes.
   *
   * NOTE: These methods are not currently recommended for public use.
   * The internal tree representation is unstable and is very likely
   * to change. Use at your own risk.
   */
  __domTree: w4
}, k4 = function(e, t, r) {
  for (var n = r, i = 0, l = e.length; n < t.length; ) {
    var s = t[n];
    if (i <= 0 && t.slice(n, n + l) === e)
      return n;
    s === "\\" ? n++ : s === "{" ? i++ : s === "}" && i--, n++;
  }
  return -1;
}, x4 = function(e) {
  return e.replace(/[-/\\^$*+?.()|[\]{}]/g, "\\$&");
}, _4 = /^\\begin{/, D4 = function(e, t) {
  for (var r, n = [], i = new RegExp("(" + t.map((h) => x4(h.left)).join("|") + ")"); r = e.search(i), r !== -1; ) {
    r > 0 && (n.push({
      type: "text",
      data: e.slice(0, r)
    }), e = e.slice(r));
    var l = t.findIndex((h) => e.startsWith(h.left));
    if (r = k4(t[l].right, e, t[l].left.length), r === -1)
      break;
    var s = e.slice(0, r + t[l].right.length), o = _4.test(s) ? s : e.slice(t[l].left.length, r);
    n.push({
      type: "math",
      data: o,
      rawData: s,
      display: t[l].display
    }), e = e.slice(r + t[l].right.length);
  }
  return e !== "" && n.push({
    type: "text",
    data: e
  }), n;
}, A4 = function(e, t) {
  var r = D4(e, t.delimiters);
  if (r.length === 1 && r[0].type === "text")
    return null;
  for (var n = document.createDocumentFragment(), i = 0; i < r.length; i++)
    if (r[i].type === "text")
      n.appendChild(document.createTextNode(r[i].data));
    else {
      var l = document.createElement("span"), s = r[i].data;
      t.displayMode = r[i].display;
      try {
        t.preProcess && (s = t.preProcess(s)), Al.render(s, l, t);
      } catch (o) {
        if (!(o instanceof Al.ParseError))
          throw o;
        t.errorCallback("KaTeX auto-render: Failed to parse `" + r[i].data + "` with ", o), n.appendChild(document.createTextNode(r[i].rawData));
        continue;
      }
      n.appendChild(l);
    }
  return n;
}, S4 = function a(e, t) {
  for (var r = 0; r < e.childNodes.length; r++) {
    var n = e.childNodes[r];
    if (n.nodeType === 3) {
      for (var i = n.textContent, l = n.nextSibling, s = 0; l && l.nodeType === Node.TEXT_NODE; )
        i += l.textContent, l = l.nextSibling, s++;
      var o = A4(i, t);
      if (o) {
        for (var h = 0; h < s; h++)
          n.nextSibling.remove();
        r += o.childNodes.length - 1, e.replaceChild(o, n);
      } else
        r += s;
    } else n.nodeType === 1 && function() {
      var m = " " + n.className + " ", d = t.ignoredTags.indexOf(n.nodeName.toLowerCase()) === -1 && t.ignoredClasses.every((g) => m.indexOf(" " + g + " ") === -1);
      d && a(n, t);
    }();
  }
}, E4 = function(e, t) {
  if (!e)
    throw new Error("No element provided to render");
  var r = {};
  for (var n in t)
    t.hasOwnProperty(n) && (r[n] = t[n]);
  r.delimiters = r.delimiters || [
    {
      left: "$$",
      right: "$$",
      display: !0
    },
    {
      left: "\\(",
      right: "\\)",
      display: !1
    },
    // LaTeX uses $…$, but it ruins the display of normal `$` in text:
    // {left: "$", right: "$", display: false},
    // $ must come after $$
    // Render AMS environments even if outside $$…$$ delimiters.
    {
      left: "\\begin{equation}",
      right: "\\end{equation}",
      display: !0
    },
    {
      left: "\\begin{align}",
      right: "\\end{align}",
      display: !0
    },
    {
      left: "\\begin{alignat}",
      right: "\\end{alignat}",
      display: !0
    },
    {
      left: "\\begin{gather}",
      right: "\\end{gather}",
      display: !0
    },
    {
      left: "\\begin{CD}",
      right: "\\end{CD}",
      display: !0
    },
    {
      left: "\\[",
      right: "\\]",
      display: !0
    }
  ], r.ignoredTags = r.ignoredTags || ["script", "noscript", "style", "textarea", "pre", "code", "option"], r.ignoredClasses = r.ignoredClasses || [], r.errorCallback = r.errorCallback || console.error, r.macros = r.macros || {}, S4(e, r);
};
function hi() {
  return {
    async: !1,
    breaks: !1,
    extensions: null,
    gfm: !0,
    hooks: null,
    pedantic: !1,
    renderer: null,
    silent: !1,
    tokenizer: null,
    walkTokens: null
  };
}
let F0 = hi();
function Jo(a) {
  F0 = a;
}
const $o = /[&<>"']/, F4 = new RegExp($o.source, "g"), eu = /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, T4 = new RegExp(eu.source, "g"), C4 = {
  "&": "&amp;",
  "<": "&lt;",
  ">": "&gt;",
  '"': "&quot;",
  "'": "&#39;"
}, Sl = (a) => C4[a];
function $e(a, e) {
  if (e) {
    if ($o.test(a))
      return a.replace(F4, Sl);
  } else if (eu.test(a))
    return a.replace(T4, Sl);
  return a;
}
const M4 = /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;
function z4(a) {
  return a.replace(M4, (e, t) => (t = t.toLowerCase(), t === "colon" ? ":" : t.charAt(0) === "#" ? t.charAt(1) === "x" ? String.fromCharCode(parseInt(t.substring(2), 16)) : String.fromCharCode(+t.substring(1)) : ""));
}
const B4 = /(^|[^\[])\^/g;
function ue(a, e) {
  let t = typeof a == "string" ? a : a.source;
  e = e || "";
  const r = {
    replace: (n, i) => {
      let l = typeof i == "string" ? i : i.source;
      return l = l.replace(B4, "$1"), t = t.replace(n, l), r;
    },
    getRegex: () => new RegExp(t, e)
  };
  return r;
}
function El(a) {
  try {
    a = encodeURI(a).replace(/%25/g, "%");
  } catch {
    return null;
  }
  return a;
}
const or = { exec: () => null };
function Fl(a, e) {
  const t = a.replace(/\|/g, (i, l, s) => {
    let o = !1, h = l;
    for (; --h >= 0 && s[h] === "\\"; )
      o = !o;
    return o ? "|" : " |";
  }), r = t.split(/ \|/);
  let n = 0;
  if (r[0].trim() || r.shift(), r.length > 0 && !r[r.length - 1].trim() && r.pop(), e)
    if (r.length > e)
      r.splice(e);
    else
      for (; r.length < e; )
        r.push("");
  for (; n < r.length; n++)
    r[n] = r[n].trim().replace(/\\\|/g, "|");
  return r;
}
function Or(a, e, t) {
  const r = a.length;
  if (r === 0)
    return "";
  let n = 0;
  for (; n < r; ) {
    const i = a.charAt(r - n - 1);
    if (i === e && !t)
      n++;
    else if (i !== e && t)
      n++;
    else
      break;
  }
  return a.slice(0, r - n);
}
function N4(a, e) {
  if (a.indexOf(e[1]) === -1)
    return -1;
  let t = 0;
  for (let r = 0; r < a.length; r++)
    if (a[r] === "\\")
      r++;
    else if (a[r] === e[0])
      t++;
    else if (a[r] === e[1] && (t--, t < 0))
      return r;
  return -1;
}
function Tl(a, e, t, r) {
  const n = e.href, i = e.title ? $e(e.title) : null, l = a[1].replace(/\\([\[\]])/g, "$1");
  if (a[0].charAt(0) !== "!") {
    r.state.inLink = !0;
    const s = {
      type: "link",
      raw: t,
      href: n,
      title: i,
      text: l,
      tokens: r.inlineTokens(l)
    };
    return r.state.inLink = !1, s;
  }
  return {
    type: "image",
    raw: t,
    href: n,
    title: i,
    text: $e(l)
  };
}
function R4(a, e) {
  const t = a.match(/^(\s+)(?:```)/);
  if (t === null)
    return e;
  const r = t[1];
  return e.split(`
`).map((n) => {
    const i = n.match(/^\s+/);
    if (i === null)
      return n;
    const [l] = i;
    return l.length >= r.length ? n.slice(r.length) : n;
  }).join(`
`);
}
class da {
  // set by the lexer
  constructor(e) {
    fe(this, "options");
    fe(this, "rules");
    // set by the lexer
    fe(this, "lexer");
    this.options = e || F0;
  }
  space(e) {
    const t = this.rules.block.newline.exec(e);
    if (t && t[0].length > 0)
      return {
        type: "space",
        raw: t[0]
      };
  }
  code(e) {
    const t = this.rules.block.code.exec(e);
    if (t) {
      const r = t[0].replace(/^ {1,4}/gm, "");
      return {
        type: "code",
        raw: t[0],
        codeBlockStyle: "indented",
        text: this.options.pedantic ? r : Or(r, `
`)
      };
    }
  }
  fences(e) {
    const t = this.rules.block.fences.exec(e);
    if (t) {
      const r = t[0], n = R4(r, t[3] || "");
      return {
        type: "code",
        raw: r,
        lang: t[2] ? t[2].trim().replace(this.rules.inline.anyPunctuation, "$1") : t[2],
        text: n
      };
    }
  }
  heading(e) {
    const t = this.rules.block.heading.exec(e);
    if (t) {
      let r = t[2].trim();
      if (/#$/.test(r)) {
        const n = Or(r, "#");
        (this.options.pedantic || !n || / $/.test(n)) && (r = n.trim());
      }
      return {
        type: "heading",
        raw: t[0],
        depth: t[1].length,
        text: r,
        tokens: this.lexer.inline(r)
      };
    }
  }
  hr(e) {
    const t = this.rules.block.hr.exec(e);
    if (t)
      return {
        type: "hr",
        raw: t[0]
      };
  }
  blockquote(e) {
    const t = this.rules.block.blockquote.exec(e);
    if (t) {
      let r = t[0].replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g, `
    $1`);
      r = Or(r.replace(/^ *>[ \t]?/gm, ""), `
`);
      const n = this.lexer.state.top;
      this.lexer.state.top = !0;
      const i = this.lexer.blockTokens(r);
      return this.lexer.state.top = n, {
        type: "blockquote",
        raw: t[0],
        tokens: i,
        text: r
      };
    }
  }
  list(e) {
    let t = this.rules.block.list.exec(e);
    if (t) {
      let r = t[1].trim();
      const n = r.length > 1, i = {
        type: "list",
        raw: "",
        ordered: n,
        start: n ? +r.slice(0, -1) : "",
        loose: !1,
        items: []
      };
      r = n ? `\\d{1,9}\\${r.slice(-1)}` : `\\${r}`, this.options.pedantic && (r = n ? r : "[*+-]");
      const l = new RegExp(`^( {0,3}${r})((?:[	 ][^\\n]*)?(?:\\n|$))`);
      let s = "", o = "", h = !1;
      for (; e; ) {
        let m = !1;
        if (!(t = l.exec(e)) || this.rules.block.hr.test(e))
          break;
        s = t[0], e = e.substring(s.length);
        let d = t[2].split(`
`, 1)[0].replace(/^\t+/, (T) => " ".repeat(3 * T.length)), g = e.split(`
`, 1)[0], v = 0;
        this.options.pedantic ? (v = 2, o = d.trimStart()) : (v = t[2].search(/[^ ]/), v = v > 4 ? 1 : v, o = d.slice(v), v += t[1].length);
        let y = !1;
        if (!d && /^ *$/.test(g) && (s += g + `
`, e = e.substring(g.length + 1), m = !0), !m) {
          const T = new RegExp(`^ {0,${Math.min(3, v - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ 	][^\\n]*)?(?:\\n|$))`), _ = new RegExp(`^ {0,${Math.min(3, v - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), b = new RegExp(`^ {0,${Math.min(3, v - 1)}}(?:\`\`\`|~~~)`), E = new RegExp(`^ {0,${Math.min(3, v - 1)}}#`);
          for (; e; ) {
            const F = e.split(`
`, 1)[0];
            if (g = F, this.options.pedantic && (g = g.replace(/^ {1,4}(?=( {4})*[^ ])/g, "  ")), b.test(g) || E.test(g) || T.test(g) || _.test(e))
              break;
            if (g.search(/[^ ]/) >= v || !g.trim())
              o += `
` + g.slice(v);
            else {
              if (y || d.search(/[^ ]/) >= 4 || b.test(d) || E.test(d) || _.test(d))
                break;
              o += `
` + g;
            }
            !y && !g.trim() && (y = !0), s += F + `
`, e = e.substring(F.length + 1), d = g.slice(v);
          }
        }
        i.loose || (h ? i.loose = !0 : /\n *\n *$/.test(s) && (h = !0));
        let x = null, A;
        this.options.gfm && (x = /^\[[ xX]\] /.exec(o), x && (A = x[0] !== "[ ] ", o = o.replace(/^\[[ xX]\] +/, ""))), i.items.push({
          type: "list_item",
          raw: s,
          task: !!x,
          checked: A,
          loose: !1,
          text: o,
          tokens: []
        }), i.raw += s;
      }
      i.items[i.items.length - 1].raw = s.trimEnd(), i.items[i.items.length - 1].text = o.trimEnd(), i.raw = i.raw.trimEnd();
      for (let m = 0; m < i.items.length; m++)
        if (this.lexer.state.top = !1, i.items[m].tokens = this.lexer.blockTokens(i.items[m].text, []), !i.loose) {
          const d = i.items[m].tokens.filter((v) => v.type === "space"), g = d.length > 0 && d.some((v) => /\n.*\n/.test(v.raw));
          i.loose = g;
        }
      if (i.loose)
        for (let m = 0; m < i.items.length; m++)
          i.items[m].loose = !0;
      return i;
    }
  }
  html(e) {
    const t = this.rules.block.html.exec(e);
    if (t)
      return {
        type: "html",
        block: !0,
        raw: t[0],
        pre: t[1] === "pre" || t[1] === "script" || t[1] === "style",
        text: t[0]
      };
  }
  def(e) {
    const t = this.rules.block.def.exec(e);
    if (t) {
      const r = t[1].toLowerCase().replace(/\s+/g, " "), n = t[2] ? t[2].replace(/^<(.*)>$/, "$1").replace(this.rules.inline.anyPunctuation, "$1") : "", i = t[3] ? t[3].substring(1, t[3].length - 1).replace(this.rules.inline.anyPunctuation, "$1") : t[3];
      return {
        type: "def",
        tag: r,
        raw: t[0],
        href: n,
        title: i
      };
    }
  }
  table(e) {
    const t = this.rules.block.table.exec(e);
    if (!t || !/[:|]/.test(t[2]))
      return;
    const r = Fl(t[1]), n = t[2].replace(/^\||\| *$/g, "").split("|"), i = t[3] && t[3].trim() ? t[3].replace(/\n[ \t]*$/, "").split(`
`) : [], l = {
      type: "table",
      raw: t[0],
      header: [],
      align: [],
      rows: []
    };
    if (r.length === n.length) {
      for (const s of n)
        /^ *-+: *$/.test(s) ? l.align.push("right") : /^ *:-+: *$/.test(s) ? l.align.push("center") : /^ *:-+ *$/.test(s) ? l.align.push("left") : l.align.push(null);
      for (const s of r)
        l.header.push({
          text: s,
          tokens: this.lexer.inline(s)
        });
      for (const s of i)
        l.rows.push(Fl(s, l.header.length).map((o) => ({
          text: o,
          tokens: this.lexer.inline(o)
        })));
      return l;
    }
  }
  lheading(e) {
    const t = this.rules.block.lheading.exec(e);
    if (t)
      return {
        type: "heading",
        raw: t[0],
        depth: t[2].charAt(0) === "=" ? 1 : 2,
        text: t[1],
        tokens: this.lexer.inline(t[1])
      };
  }
  paragraph(e) {
    const t = this.rules.block.paragraph.exec(e);
    if (t) {
      const r = t[1].charAt(t[1].length - 1) === `
` ? t[1].slice(0, -1) : t[1];
      return {
        type: "paragraph",
        raw: t[0],
        text: r,
        tokens: this.lexer.inline(r)
      };
    }
  }
  text(e) {
    const t = this.rules.block.text.exec(e);
    if (t)
      return {
        type: "text",
        raw: t[0],
        text: t[0],
        tokens: this.lexer.inline(t[0])
      };
  }
  escape(e) {
    const t = this.rules.inline.escape.exec(e);
    if (t)
      return {
        type: "escape",
        raw: t[0],
        text: $e(t[1])
      };
  }
  tag(e) {
    const t = this.rules.inline.tag.exec(e);
    if (t)
      return !this.lexer.state.inLink && /^<a /i.test(t[0]) ? this.lexer.state.inLink = !0 : this.lexer.state.inLink && /^<\/a>/i.test(t[0]) && (this.lexer.state.inLink = !1), !this.lexer.state.inRawBlock && /^<(pre|code|kbd|script)(\s|>)/i.test(t[0]) ? this.lexer.state.inRawBlock = !0 : this.lexer.state.inRawBlock && /^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0]) && (this.lexer.state.inRawBlock = !1), {
        type: "html",
        raw: t[0],
        inLink: this.lexer.state.inLink,
        inRawBlock: this.lexer.state.inRawBlock,
        block: !1,
        text: t[0]
      };
  }
  link(e) {
    const t = this.rules.inline.link.exec(e);
    if (t) {
      const r = t[2].trim();
      if (!this.options.pedantic && /^</.test(r)) {
        if (!/>$/.test(r))
          return;
        const l = Or(r.slice(0, -1), "\\");
        if ((r.length - l.length) % 2 === 0)
          return;
      } else {
        const l = N4(t[2], "()");
        if (l > -1) {
          const o = (t[0].indexOf("!") === 0 ? 5 : 4) + t[1].length + l;
          t[2] = t[2].substring(0, l), t[0] = t[0].substring(0, o).trim(), t[3] = "";
        }
      }
      let n = t[2], i = "";
      if (this.options.pedantic) {
        const l = /^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(n);
        l && (n = l[1], i = l[3]);
      } else
        i = t[3] ? t[3].slice(1, -1) : "";
      return n = n.trim(), /^</.test(n) && (this.options.pedantic && !/>$/.test(r) ? n = n.slice(1) : n = n.slice(1, -1)), Tl(t, {
        href: n && n.replace(this.rules.inline.anyPunctuation, "$1"),
        title: i && i.replace(this.rules.inline.anyPunctuation, "$1")
      }, t[0], this.lexer);
    }
  }
  reflink(e, t) {
    let r;
    if ((r = this.rules.inline.reflink.exec(e)) || (r = this.rules.inline.nolink.exec(e))) {
      const n = (r[2] || r[1]).replace(/\s+/g, " "), i = t[n.toLowerCase()];
      if (!i) {
        const l = r[0].charAt(0);
        return {
          type: "text",
          raw: l,
          text: l
        };
      }
      return Tl(r, i, r[0], this.lexer);
    }
  }
  emStrong(e, t, r = "") {
    let n = this.rules.inline.emStrongLDelim.exec(e);
    if (!n || n[3] && r.match(/[\p{L}\p{N}]/u))
      return;
    if (!(n[1] || n[2] || "") || !r || this.rules.inline.punctuation.exec(r)) {
      const l = [...n[0]].length - 1;
      let s, o, h = l, m = 0;
      const d = n[0][0] === "*" ? this.rules.inline.emStrongRDelimAst : this.rules.inline.emStrongRDelimUnd;
      for (d.lastIndex = 0, t = t.slice(-1 * e.length + l); (n = d.exec(t)) != null; ) {
        if (s = n[1] || n[2] || n[3] || n[4] || n[5] || n[6], !s)
          continue;
        if (o = [...s].length, n[3] || n[4]) {
          h += o;
          continue;
        } else if ((n[5] || n[6]) && l % 3 && !((l + o) % 3)) {
          m += o;
          continue;
        }
        if (h -= o, h > 0)
          continue;
        o = Math.min(o, o + h + m);
        const g = [...n[0]][0].length, v = e.slice(0, l + n.index + g + o);
        if (Math.min(l, o) % 2) {
          const x = v.slice(1, -1);
          return {
            type: "em",
            raw: v,
            text: x,
            tokens: this.lexer.inlineTokens(x)
          };
        }
        const y = v.slice(2, -2);
        return {
          type: "strong",
          raw: v,
          text: y,
          tokens: this.lexer.inlineTokens(y)
        };
      }
    }
  }
  codespan(e) {
    const t = this.rules.inline.code.exec(e);
    if (t) {
      let r = t[2].replace(/\n/g, " ");
      const n = /[^ ]/.test(r), i = /^ /.test(r) && / $/.test(r);
      return n && i && (r = r.substring(1, r.length - 1)), r = $e(r, !0), {
        type: "codespan",
        raw: t[0],
        text: r
      };
    }
  }
  br(e) {
    const t = this.rules.inline.br.exec(e);
    if (t)
      return {
        type: "br",
        raw: t[0]
      };
  }
  del(e) {
    const t = this.rules.inline.del.exec(e);
    if (t)
      return {
        type: "del",
        raw: t[0],
        text: t[2],
        tokens: this.lexer.inlineTokens(t[2])
      };
  }
  autolink(e) {
    const t = this.rules.inline.autolink.exec(e);
    if (t) {
      let r, n;
      return t[2] === "@" ? (r = $e(t[1]), n = "mailto:" + r) : (r = $e(t[1]), n = r), {
        type: "link",
        raw: t[0],
        text: r,
        href: n,
        tokens: [
          {
            type: "text",
            raw: r,
            text: r
          }
        ]
      };
    }
  }
  url(e) {
    var r;
    let t;
    if (t = this.rules.inline.url.exec(e)) {
      let n, i;
      if (t[2] === "@")
        n = $e(t[0]), i = "mailto:" + n;
      else {
        let l;
        do
          l = t[0], t[0] = ((r = this.rules.inline._backpedal.exec(t[0])) == null ? void 0 : r[0]) ?? "";
        while (l !== t[0]);
        n = $e(t[0]), t[1] === "www." ? i = "http://" + t[0] : i = t[0];
      }
      return {
        type: "link",
        raw: t[0],
        text: n,
        href: i,
        tokens: [
          {
            type: "text",
            raw: n,
            text: n
          }
        ]
      };
    }
  }
  inlineText(e) {
    const t = this.rules.inline.text.exec(e);
    if (t) {
      let r;
      return this.lexer.state.inRawBlock ? r = t[0] : r = $e(t[0]), {
        type: "text",
        raw: t[0],
        text: r
      };
    }
  }
}
const I4 = /^(?: *(?:\n|$))+/, L4 = /^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/, O4 = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, kr = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, q4 = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, tu = /(?:[*+-]|\d{1,9}[.)])/, ru = ue(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g, tu).replace(/blockCode/g, / {4}/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).getRegex(), mi = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, P4 = /^[^\n]+/, fi = /(?!\s*\])(?:\\.|[^\[\]\\])+/, H4 = ue(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label", fi).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), U4 = ue(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, tu).getRegex(), Ta = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", di = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, G4 = ue("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))", "i").replace("comment", di).replace("tag", Ta).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), au = ue(mi).replace("hr", kr).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Ta).getRegex(), V4 = ue(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", au).getRegex(), pi = {
  blockquote: V4,
  code: L4,
  def: H4,
  fences: O4,
  heading: q4,
  hr: kr,
  html: G4,
  lheading: ru,
  list: U4,
  newline: I4,
  paragraph: au,
  table: or,
  text: P4
}, Cl = ue("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", kr).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", " {4}[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Ta).getRegex(), W4 = {
  ...pi,
  table: Cl,
  paragraph: ue(mi).replace("hr", kr).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Cl).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Ta).getRegex()
}, X4 = {
  ...pi,
  html: ue(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", di).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
  def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
  heading: /^(#{1,6})(.*)(?:\n+|$)/,
  fences: or,
  // fences not supported
  lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
  paragraph: ue(mi).replace("hr", kr).replace("heading", ` *#{1,6} *[^
]`).replace("lheading", ru).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
}, nu = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Y4 = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, iu = /^( {2,}|\\)\n(?!\s*$)/, j4 = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, xr = "\\p{P}\\p{S}", Z4 = ue(/^((?![*_])[\spunctuation])/, "u").replace(/punctuation/g, xr).getRegex(), K4 = /\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g, Q4 = ue(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/, "u").replace(/punct/g, xr).getRegex(), J4 = ue("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])", "gu").replace(/punct/g, xr).getRegex(), $4 = ue("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])", "gu").replace(/punct/g, xr).getRegex(), eh = ue(/\\([punct])/, "gu").replace(/punct/g, xr).getRegex(), th = ue(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), rh = ue(di).replace("(?:-->|$)", "-->").getRegex(), ah = ue("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", rh).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), pa = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, nh = ue(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label", pa).replace("href", /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), lu = ue(/^!?\[(label)\]\[(ref)\]/).replace("label", pa).replace("ref", fi).getRegex(), su = ue(/^!?\[(ref)\](?:\[\])?/).replace("ref", fi).getRegex(), ih = ue("reflink|nolink(?!\\()", "g").replace("reflink", lu).replace("nolink", su).getRegex(), gi = {
  _backpedal: or,
  // only used for GFM url
  anyPunctuation: eh,
  autolink: th,
  blockSkip: K4,
  br: iu,
  code: Y4,
  del: or,
  emStrongLDelim: Q4,
  emStrongRDelimAst: J4,
  emStrongRDelimUnd: $4,
  escape: nu,
  link: nh,
  nolink: su,
  punctuation: Z4,
  reflink: lu,
  reflinkSearch: ih,
  tag: ah,
  text: j4,
  url: or
}, lh = {
  ...gi,
  link: ue(/^!?\[(label)\]\((.*?)\)/).replace("label", pa).getRegex(),
  reflink: ue(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", pa).getRegex()
}, Cn = {
  ...gi,
  escape: ue(nu).replace("])", "~|])").getRegex(),
  url: ue(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/, "i").replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
  _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
  del: /^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,
  text: /^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/
}, sh = {
  ...Cn,
  br: ue(iu).replace("{2,}", "*").getRegex(),
  text: ue(Cn.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
}, qr = {
  normal: pi,
  gfm: W4,
  pedantic: X4
}, Q0 = {
  normal: gi,
  gfm: Cn,
  breaks: sh,
  pedantic: lh
};
class Lt {
  constructor(e) {
    fe(this, "tokens");
    fe(this, "options");
    fe(this, "state");
    fe(this, "tokenizer");
    fe(this, "inlineQueue");
    this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e || F0, this.options.tokenizer = this.options.tokenizer || new da(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
      inLink: !1,
      inRawBlock: !1,
      top: !0
    };
    const t = {
      block: qr.normal,
      inline: Q0.normal
    };
    this.options.pedantic ? (t.block = qr.pedantic, t.inline = Q0.pedantic) : this.options.gfm && (t.block = qr.gfm, this.options.breaks ? t.inline = Q0.breaks : t.inline = Q0.gfm), this.tokenizer.rules = t;
  }
  /**
   * Expose Rules
   */
  static get rules() {
    return {
      block: qr,
      inline: Q0
    };
  }
  /**
   * Static Lex Method
   */
  static lex(e, t) {
    return new Lt(t).lex(e);
  }
  /**
   * Static Lex Inline Method
   */
  static lexInline(e, t) {
    return new Lt(t).inlineTokens(e);
  }
  /**
   * Preprocessing
   */
  lex(e) {
    e = e.replace(/\r\n|\r/g, `
`), this.blockTokens(e, this.tokens);
    for (let t = 0; t < this.inlineQueue.length; t++) {
      const r = this.inlineQueue[t];
      this.inlineTokens(r.src, r.tokens);
    }
    return this.inlineQueue = [], this.tokens;
  }
  blockTokens(e, t = []) {
    this.options.pedantic ? e = e.replace(/\t/g, "    ").replace(/^ +$/gm, "") : e = e.replace(/^( *)(\t+)/gm, (s, o, h) => o + "    ".repeat(h.length));
    let r, n, i, l;
    for (; e; )
      if (!(this.options.extensions && this.options.extensions.block && this.options.extensions.block.some((s) => (r = s.call({ lexer: this }, e, t)) ? (e = e.substring(r.raw.length), t.push(r), !0) : !1))) {
        if (r = this.tokenizer.space(e)) {
          e = e.substring(r.raw.length), r.raw.length === 1 && t.length > 0 ? t[t.length - 1].raw += `
` : t.push(r);
          continue;
        }
        if (r = this.tokenizer.code(e)) {
          e = e.substring(r.raw.length), n = t[t.length - 1], n && (n.type === "paragraph" || n.type === "text") ? (n.raw += `
` + r.raw, n.text += `
` + r.text, this.inlineQueue[this.inlineQueue.length - 1].src = n.text) : t.push(r);
          continue;
        }
        if (r = this.tokenizer.fences(e)) {
          e = e.substring(r.raw.length), t.push(r);
          continue;
        }
        if (r = this.tokenizer.heading(e)) {
          e = e.substring(r.raw.length), t.push(r);
          continue;
        }
        if (r = this.tokenizer.hr(e)) {
          e = e.substring(r.raw.length), t.push(r);
          continue;
        }
        if (r = this.tokenizer.blockquote(e)) {
          e = e.substring(r.raw.length), t.push(r);
          continue;
        }
        if (r = this.tokenizer.list(e)) {
          e = e.substring(r.raw.length), t.push(r);
          continue;
        }
        if (r = this.tokenizer.html(e)) {
          e = e.substring(r.raw.length), t.push(r);
          continue;
        }
        if (r = this.tokenizer.def(e)) {
          e = e.substring(r.raw.length), n = t[t.length - 1], n && (n.type === "paragraph" || n.type === "text") ? (n.raw += `
` + r.raw, n.text += `
` + r.raw, this.inlineQueue[this.inlineQueue.length - 1].src = n.text) : this.tokens.links[r.tag] || (this.tokens.links[r.tag] = {
            href: r.href,
            title: r.title
          });
          continue;
        }
        if (r = this.tokenizer.table(e)) {
          e = e.substring(r.raw.length), t.push(r);
          continue;
        }
        if (r = this.tokenizer.lheading(e)) {
          e = e.substring(r.raw.length), t.push(r);
          continue;
        }
        if (i = e, this.options.extensions && this.options.extensions.startBlock) {
          let s = 1 / 0;
          const o = e.slice(1);
          let h;
          this.options.extensions.startBlock.forEach((m) => {
            h = m.call({ lexer: this }, o), typeof h == "number" && h >= 0 && (s = Math.min(s, h));
          }), s < 1 / 0 && s >= 0 && (i = e.substring(0, s + 1));
        }
        if (this.state.top && (r = this.tokenizer.paragraph(i))) {
          n = t[t.length - 1], l && n.type === "paragraph" ? (n.raw += `
` + r.raw, n.text += `
` + r.text, this.inlineQueue.pop(), this.inlineQueue[this.inlineQueue.length - 1].src = n.text) : t.push(r), l = i.length !== e.length, e = e.substring(r.raw.length);
          continue;
        }
        if (r = this.tokenizer.text(e)) {
          e = e.substring(r.raw.length), n = t[t.length - 1], n && n.type === "text" ? (n.raw += `
` + r.raw, n.text += `
` + r.text, this.inlineQueue.pop(), this.inlineQueue[this.inlineQueue.length - 1].src = n.text) : t.push(r);
          continue;
        }
        if (e) {
          const s = "Infinite loop on byte: " + e.charCodeAt(0);
          if (this.options.silent) {
            console.error(s);
            break;
          } else
            throw new Error(s);
        }
      }
    return this.state.top = !0, t;
  }
  inline(e, t = []) {
    return this.inlineQueue.push({ src: e, tokens: t }), t;
  }
  /**
   * Lexing/Compiling
   */
  inlineTokens(e, t = []) {
    let r, n, i, l = e, s, o, h;
    if (this.tokens.links) {
      const m = Object.keys(this.tokens.links);
      if (m.length > 0)
        for (; (s = this.tokenizer.rules.inline.reflinkSearch.exec(l)) != null; )
          m.includes(s[0].slice(s[0].lastIndexOf("[") + 1, -1)) && (l = l.slice(0, s.index) + "[" + "a".repeat(s[0].length - 2) + "]" + l.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex));
    }
    for (; (s = this.tokenizer.rules.inline.blockSkip.exec(l)) != null; )
      l = l.slice(0, s.index) + "[" + "a".repeat(s[0].length - 2) + "]" + l.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);
    for (; (s = this.tokenizer.rules.inline.anyPunctuation.exec(l)) != null; )
      l = l.slice(0, s.index) + "++" + l.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);
    for (; e; )
      if (o || (h = ""), o = !1, !(this.options.extensions && this.options.extensions.inline && this.options.extensions.inline.some((m) => (r = m.call({ lexer: this }, e, t)) ? (e = e.substring(r.raw.length), t.push(r), !0) : !1))) {
        if (r = this.tokenizer.escape(e)) {
          e = e.substring(r.raw.length), t.push(r);
          continue;
        }
        if (r = this.tokenizer.tag(e)) {
          e = e.substring(r.raw.length), n = t[t.length - 1], n && r.type === "text" && n.type === "text" ? (n.raw += r.raw, n.text += r.text) : t.push(r);
          continue;
        }
        if (r = this.tokenizer.link(e)) {
          e = e.substring(r.raw.length), t.push(r);
          continue;
        }
        if (r = this.tokenizer.reflink(e, this.tokens.links)) {
          e = e.substring(r.raw.length), n = t[t.length - 1], n && r.type === "text" && n.type === "text" ? (n.raw += r.raw, n.text += r.text) : t.push(r);
          continue;
        }
        if (r = this.tokenizer.emStrong(e, l, h)) {
          e = e.substring(r.raw.length), t.push(r);
          continue;
        }
        if (r = this.tokenizer.codespan(e)) {
          e = e.substring(r.raw.length), t.push(r);
          continue;
        }
        if (r = this.tokenizer.br(e)) {
          e = e.substring(r.raw.length), t.push(r);
          continue;
        }
        if (r = this.tokenizer.del(e)) {
          e = e.substring(r.raw.length), t.push(r);
          continue;
        }
        if (r = this.tokenizer.autolink(e)) {
          e = e.substring(r.raw.length), t.push(r);
          continue;
        }
        if (!this.state.inLink && (r = this.tokenizer.url(e))) {
          e = e.substring(r.raw.length), t.push(r);
          continue;
        }
        if (i = e, this.options.extensions && this.options.extensions.startInline) {
          let m = 1 / 0;
          const d = e.slice(1);
          let g;
          this.options.extensions.startInline.forEach((v) => {
            g = v.call({ lexer: this }, d), typeof g == "number" && g >= 0 && (m = Math.min(m, g));
          }), m < 1 / 0 && m >= 0 && (i = e.substring(0, m + 1));
        }
        if (r = this.tokenizer.inlineText(i)) {
          e = e.substring(r.raw.length), r.raw.slice(-1) !== "_" && (h = r.raw.slice(-1)), o = !0, n = t[t.length - 1], n && n.type === "text" ? (n.raw += r.raw, n.text += r.text) : t.push(r);
          continue;
        }
        if (e) {
          const m = "Infinite loop on byte: " + e.charCodeAt(0);
          if (this.options.silent) {
            console.error(m);
            break;
          } else
            throw new Error(m);
        }
      }
    return t;
  }
}
class ga {
  constructor(e) {
    fe(this, "options");
    this.options = e || F0;
  }
  code(e, t, r) {
    var i;
    const n = (i = (t || "").match(/^\S*/)) == null ? void 0 : i[0];
    return e = e.replace(/\n$/, "") + `
`, n ? '<pre><code class="language-' + $e(n) + '">' + (r ? e : $e(e, !0)) + `</code></pre>
` : "<pre><code>" + (r ? e : $e(e, !0)) + `</code></pre>
`;
  }
  blockquote(e) {
    return `<blockquote>
${e}</blockquote>
`;
  }
  html(e, t) {
    return e;
  }
  heading(e, t, r) {
    return `<h${t}>${e}</h${t}>
`;
  }
  hr() {
    return `<hr>
`;
  }
  list(e, t, r) {
    const n = t ? "ol" : "ul", i = t && r !== 1 ? ' start="' + r + '"' : "";
    return "<" + n + i + `>
` + e + "</" + n + `>
`;
  }
  listitem(e, t, r) {
    return `<li>${e}</li>
`;
  }
  checkbox(e) {
    return "<input " + (e ? 'checked="" ' : "") + 'disabled="" type="checkbox">';
  }
  paragraph(e) {
    return `<p>${e}</p>
`;
  }
  table(e, t) {
    return t && (t = `<tbody>${t}</tbody>`), `<table>
<thead>
` + e + `</thead>
` + t + `</table>
`;
  }
  tablerow(e) {
    return `<tr>
${e}</tr>
`;
  }
  tablecell(e, t) {
    const r = t.header ? "th" : "td";
    return (t.align ? `<${r} align="${t.align}">` : `<${r}>`) + e + `</${r}>
`;
  }
  /**
   * span level renderer
   */
  strong(e) {
    return `<strong>${e}</strong>`;
  }
  em(e) {
    return `<em>${e}</em>`;
  }
  codespan(e) {
    return `<code>${e}</code>`;
  }
  br() {
    return "<br>";
  }
  del(e) {
    return `<del>${e}</del>`;
  }
  link(e, t, r) {
    const n = El(e);
    if (n === null)
      return r;
    e = n;
    let i = '<a href="' + e + '"';
    return t && (i += ' title="' + t + '"'), i += ">" + r + "</a>", i;
  }
  image(e, t, r) {
    const n = El(e);
    if (n === null)
      return r;
    e = n;
    let i = `<img src="${e}" alt="${r}"`;
    return t && (i += ` title="${t}"`), i += ">", i;
  }
  text(e) {
    return e;
  }
}
class vi {
  // no need for block level renderers
  strong(e) {
    return e;
  }
  em(e) {
    return e;
  }
  codespan(e) {
    return e;
  }
  del(e) {
    return e;
  }
  html(e) {
    return e;
  }
  text(e) {
    return e;
  }
  link(e, t, r) {
    return "" + r;
  }
  image(e, t, r) {
    return "" + r;
  }
  br() {
    return "";
  }
}
class Ot {
  constructor(e) {
    fe(this, "options");
    fe(this, "renderer");
    fe(this, "textRenderer");
    this.options = e || F0, this.options.renderer = this.options.renderer || new ga(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.textRenderer = new vi();
  }
  /**
   * Static Parse Method
   */
  static parse(e, t) {
    return new Ot(t).parse(e);
  }
  /**
   * Static Parse Inline Method
   */
  static parseInline(e, t) {
    return new Ot(t).parseInline(e);
  }
  /**
   * Parse Loop
   */
  parse(e, t = !0) {
    let r = "";
    for (let n = 0; n < e.length; n++) {
      const i = e[n];
      if (this.options.extensions && this.options.extensions.renderers && this.options.extensions.renderers[i.type]) {
        const l = i, s = this.options.extensions.renderers[l.type].call({ parser: this }, l);
        if (s !== !1 || !["space", "hr", "heading", "code", "table", "blockquote", "list", "html", "paragraph", "text"].includes(l.type)) {
          r += s || "";
          continue;
        }
      }
      switch (i.type) {
        case "space":
          continue;
        case "hr": {
          r += this.renderer.hr();
          continue;
        }
        case "heading": {
          const l = i;
          r += this.renderer.heading(this.parseInline(l.tokens), l.depth, z4(this.parseInline(l.tokens, this.textRenderer)));
          continue;
        }
        case "code": {
          const l = i;
          r += this.renderer.code(l.text, l.lang, !!l.escaped);
          continue;
        }
        case "table": {
          const l = i;
          let s = "", o = "";
          for (let m = 0; m < l.header.length; m++)
            o += this.renderer.tablecell(this.parseInline(l.header[m].tokens), { header: !0, align: l.align[m] });
          s += this.renderer.tablerow(o);
          let h = "";
          for (let m = 0; m < l.rows.length; m++) {
            const d = l.rows[m];
            o = "";
            for (let g = 0; g < d.length; g++)
              o += this.renderer.tablecell(this.parseInline(d[g].tokens), { header: !1, align: l.align[g] });
            h += this.renderer.tablerow(o);
          }
          r += this.renderer.table(s, h);
          continue;
        }
        case "blockquote": {
          const l = i, s = this.parse(l.tokens);
          r += this.renderer.blockquote(s);
          continue;
        }
        case "list": {
          const l = i, s = l.ordered, o = l.start, h = l.loose;
          let m = "";
          for (let d = 0; d < l.items.length; d++) {
            const g = l.items[d], v = g.checked, y = g.task;
            let x = "";
            if (g.task) {
              const A = this.renderer.checkbox(!!v);
              h ? g.tokens.length > 0 && g.tokens[0].type === "paragraph" ? (g.tokens[0].text = A + " " + g.tokens[0].text, g.tokens[0].tokens && g.tokens[0].tokens.length > 0 && g.tokens[0].tokens[0].type === "text" && (g.tokens[0].tokens[0].text = A + " " + g.tokens[0].tokens[0].text)) : g.tokens.unshift({
                type: "text",
                text: A + " "
              }) : x += A + " ";
            }
            x += this.parse(g.tokens, h), m += this.renderer.listitem(x, y, !!v);
          }
          r += this.renderer.list(m, s, o);
          continue;
        }
        case "html": {
          const l = i;
          r += this.renderer.html(l.text, l.block);
          continue;
        }
        case "paragraph": {
          const l = i;
          r += this.renderer.paragraph(this.parseInline(l.tokens));
          continue;
        }
        case "text": {
          let l = i, s = l.tokens ? this.parseInline(l.tokens) : l.text;
          for (; n + 1 < e.length && e[n + 1].type === "text"; )
            l = e[++n], s += `
` + (l.tokens ? this.parseInline(l.tokens) : l.text);
          r += t ? this.renderer.paragraph(s) : s;
          continue;
        }
        default: {
          const l = 'Token with "' + i.type + '" type was not found.';
          if (this.options.silent)
            return console.error(l), "";
          throw new Error(l);
        }
      }
    }
    return r;
  }
  /**
   * Parse Inline Tokens
   */
  parseInline(e, t) {
    t = t || this.renderer;
    let r = "";
    for (let n = 0; n < e.length; n++) {
      const i = e[n];
      if (this.options.extensions && this.options.extensions.renderers && this.options.extensions.renderers[i.type]) {
        const l = this.options.extensions.renderers[i.type].call({ parser: this }, i);
        if (l !== !1 || !["escape", "html", "link", "image", "strong", "em", "codespan", "br", "del", "text"].includes(i.type)) {
          r += l || "";
          continue;
        }
      }
      switch (i.type) {
        case "escape": {
          const l = i;
          r += t.text(l.text);
          break;
        }
        case "html": {
          const l = i;
          r += t.html(l.text);
          break;
        }
        case "link": {
          const l = i;
          r += t.link(l.href, l.title, this.parseInline(l.tokens, t));
          break;
        }
        case "image": {
          const l = i;
          r += t.image(l.href, l.title, l.text);
          break;
        }
        case "strong": {
          const l = i;
          r += t.strong(this.parseInline(l.tokens, t));
          break;
        }
        case "em": {
          const l = i;
          r += t.em(this.parseInline(l.tokens, t));
          break;
        }
        case "codespan": {
          const l = i;
          r += t.codespan(l.text);
          break;
        }
        case "br": {
          r += t.br();
          break;
        }
        case "del": {
          const l = i;
          r += t.del(this.parseInline(l.tokens, t));
          break;
        }
        case "text": {
          const l = i;
          r += t.text(l.text);
          break;
        }
        default: {
          const l = 'Token with "' + i.type + '" type was not found.';
          if (this.options.silent)
            return console.error(l), "";
          throw new Error(l);
        }
      }
    }
    return r;
  }
}
class ur {
  constructor(e) {
    fe(this, "options");
    this.options = e || F0;
  }
  /**
   * Process markdown before marked
   */
  preprocess(e) {
    return e;
  }
  /**
   * Process HTML after marked is finished
   */
  postprocess(e) {
    return e;
  }
  /**
   * Process all tokens before walk tokens
   */
  processAllTokens(e) {
    return e;
  }
}
fe(ur, "passThroughHooks", /* @__PURE__ */ new Set([
  "preprocess",
  "postprocess",
  "processAllTokens"
]));
var S0, Mn, uu;
class ou {
  constructor(...e) {
    Ui(this, S0);
    fe(this, "defaults", hi());
    fe(this, "options", this.setOptions);
    fe(this, "parse", Fr(this, S0, Mn).call(this, Lt.lex, Ot.parse));
    fe(this, "parseInline", Fr(this, S0, Mn).call(this, Lt.lexInline, Ot.parseInline));
    fe(this, "Parser", Ot);
    fe(this, "Renderer", ga);
    fe(this, "TextRenderer", vi);
    fe(this, "Lexer", Lt);
    fe(this, "Tokenizer", da);
    fe(this, "Hooks", ur);
    this.use(...e);
  }
  /**
   * Run callback for every token
   */
  walkTokens(e, t) {
    var n, i;
    let r = [];
    for (const l of e)
      switch (r = r.concat(t.call(this, l)), l.type) {
        case "table": {
          const s = l;
          for (const o of s.header)
            r = r.concat(this.walkTokens(o.tokens, t));
          for (const o of s.rows)
            for (const h of o)
              r = r.concat(this.walkTokens(h.tokens, t));
          break;
        }
        case "list": {
          const s = l;
          r = r.concat(this.walkTokens(s.items, t));
          break;
        }
        default: {
          const s = l;
          (i = (n = this.defaults.extensions) == null ? void 0 : n.childTokens) != null && i[s.type] ? this.defaults.extensions.childTokens[s.type].forEach((o) => {
            const h = s[o].flat(1 / 0);
            r = r.concat(this.walkTokens(h, t));
          }) : s.tokens && (r = r.concat(this.walkTokens(s.tokens, t)));
        }
      }
    return r;
  }
  use(...e) {
    const t = this.defaults.extensions || { renderers: {}, childTokens: {} };
    return e.forEach((r) => {
      const n = { ...r };
      if (n.async = this.defaults.async || n.async || !1, r.extensions && (r.extensions.forEach((i) => {
        if (!i.name)
          throw new Error("extension name required");
        if ("renderer" in i) {
          const l = t.renderers[i.name];
          l ? t.renderers[i.name] = function(...s) {
            let o = i.renderer.apply(this, s);
            return o === !1 && (o = l.apply(this, s)), o;
          } : t.renderers[i.name] = i.renderer;
        }
        if ("tokenizer" in i) {
          if (!i.level || i.level !== "block" && i.level !== "inline")
            throw new Error("extension level must be 'block' or 'inline'");
          const l = t[i.level];
          l ? l.unshift(i.tokenizer) : t[i.level] = [i.tokenizer], i.start && (i.level === "block" ? t.startBlock ? t.startBlock.push(i.start) : t.startBlock = [i.start] : i.level === "inline" && (t.startInline ? t.startInline.push(i.start) : t.startInline = [i.start]));
        }
        "childTokens" in i && i.childTokens && (t.childTokens[i.name] = i.childTokens);
      }), n.extensions = t), r.renderer) {
        const i = this.defaults.renderer || new ga(this.defaults);
        for (const l in r.renderer) {
          if (!(l in i))
            throw new Error(`renderer '${l}' does not exist`);
          if (l === "options")
            continue;
          const s = l, o = r.renderer[s], h = i[s];
          i[s] = (...m) => {
            let d = o.apply(i, m);
            return d === !1 && (d = h.apply(i, m)), d || "";
          };
        }
        n.renderer = i;
      }
      if (r.tokenizer) {
        const i = this.defaults.tokenizer || new da(this.defaults);
        for (const l in r.tokenizer) {
          if (!(l in i))
            throw new Error(`tokenizer '${l}' does not exist`);
          if (["options", "rules", "lexer"].includes(l))
            continue;
          const s = l, o = r.tokenizer[s], h = i[s];
          i[s] = (...m) => {
            let d = o.apply(i, m);
            return d === !1 && (d = h.apply(i, m)), d;
          };
        }
        n.tokenizer = i;
      }
      if (r.hooks) {
        const i = this.defaults.hooks || new ur();
        for (const l in r.hooks) {
          if (!(l in i))
            throw new Error(`hook '${l}' does not exist`);
          if (l === "options")
            continue;
          const s = l, o = r.hooks[s], h = i[s];
          ur.passThroughHooks.has(l) ? i[s] = (m) => {
            if (this.defaults.async)
              return Promise.resolve(o.call(i, m)).then((g) => h.call(i, g));
            const d = o.call(i, m);
            return h.call(i, d);
          } : i[s] = (...m) => {
            let d = o.apply(i, m);
            return d === !1 && (d = h.apply(i, m)), d;
          };
        }
        n.hooks = i;
      }
      if (r.walkTokens) {
        const i = this.defaults.walkTokens, l = r.walkTokens;
        n.walkTokens = function(s) {
          let o = [];
          return o.push(l.call(this, s)), i && (o = o.concat(i.call(this, s))), o;
        };
      }
      this.defaults = { ...this.defaults, ...n };
    }), this;
  }
  setOptions(e) {
    return this.defaults = { ...this.defaults, ...e }, this;
  }
  lexer(e, t) {
    return Lt.lex(e, t ?? this.defaults);
  }
  parser(e, t) {
    return Ot.parse(e, t ?? this.defaults);
  }
}
S0 = new WeakSet(), Mn = function(e, t) {
  return (r, n) => {
    const i = { ...n }, l = { ...this.defaults, ...i };
    this.defaults.async === !0 && i.async === !1 && (l.silent || console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."), l.async = !0);
    const s = Fr(this, S0, uu).call(this, !!l.silent, !!l.async);
    if (typeof r > "u" || r === null)
      return s(new Error("marked(): input parameter is undefined or null"));
    if (typeof r != "string")
      return s(new Error("marked(): input parameter is of type " + Object.prototype.toString.call(r) + ", string expected"));
    if (l.hooks && (l.hooks.options = l), l.async)
      return Promise.resolve(l.hooks ? l.hooks.preprocess(r) : r).then((o) => e(o, l)).then((o) => l.hooks ? l.hooks.processAllTokens(o) : o).then((o) => l.walkTokens ? Promise.all(this.walkTokens(o, l.walkTokens)).then(() => o) : o).then((o) => t(o, l)).then((o) => l.hooks ? l.hooks.postprocess(o) : o).catch(s);
    try {
      l.hooks && (r = l.hooks.preprocess(r));
      let o = e(r, l);
      l.hooks && (o = l.hooks.processAllTokens(o)), l.walkTokens && this.walkTokens(o, l.walkTokens);
      let h = t(o, l);
      return l.hooks && (h = l.hooks.postprocess(h)), h;
    } catch (o) {
      return s(o);
    }
  };
}, uu = function(e, t) {
  return (r) => {
    if (r.message += `
Please report this to https://github.com/markedjs/marked.`, e) {
      const n = "<p>An error occurred:</p><pre>" + $e(r.message + "", !0) + "</pre>";
      return t ? Promise.resolve(n) : n;
    }
    if (t)
      return Promise.reject(r);
    throw r;
  };
};
const A0 = new ou();
function oe(a, e) {
  return A0.parse(a, e);
}
oe.options = oe.setOptions = function(a) {
  return A0.setOptions(a), oe.defaults = A0.defaults, Jo(oe.defaults), oe;
};
oe.getDefaults = hi;
oe.defaults = F0;
oe.use = function(...a) {
  return A0.use(...a), oe.defaults = A0.defaults, Jo(oe.defaults), oe;
};
oe.walkTokens = function(a, e) {
  return A0.walkTokens(a, e);
};
oe.parseInline = A0.parseInline;
oe.Parser = Ot;
oe.parser = Ot.parse;
oe.Renderer = ga;
oe.TextRenderer = vi;
oe.Lexer = Lt;
oe.lexer = Lt.lex;
oe.Tokenizer = da;
oe.Hooks = ur;
oe.parse = oe;
oe.options;
oe.setOptions;
oe.use;
oe.walkTokens;
oe.parseInline;
Ot.parse;
Lt.lex;
function oh(a) {
  if (typeof a == "function" && (a = {
    highlight: a
  }), !a || typeof a.highlight != "function")
    throw new Error("Must provide highlight function");
  return typeof a.langPrefix != "string" && (a.langPrefix = "language-"), typeof a.emptyLangClass != "string" && (a.emptyLangClass = ""), {
    async: !!a.async,
    walkTokens(e) {
      if (e.type !== "code")
        return;
      const t = Ml(e.lang);
      if (a.async)
        return Promise.resolve(a.highlight(e.text, t, e.lang || "")).then(zl(e));
      const r = a.highlight(e.text, t, e.lang || "");
      if (r instanceof Promise)
        throw new Error("markedHighlight is not set to async but the highlight function is async. Set the async option to true on markedHighlight to await the async highlight function.");
      zl(e)(r);
    },
    useNewRenderer: !0,
    renderer: {
      code(e, t, r) {
        typeof e == "object" && (r = e.escaped, t = e.lang, e = e.text);
        const n = Ml(t), i = n ? a.langPrefix + Nl(n) : a.emptyLangClass, l = i ? ` class="${i}"` : "";
        return e = e.replace(/\n$/, ""), `<pre><code${l}>${r ? e : Nl(e, !0)}
</code></pre>`;
      }
    }
  };
}
function Ml(a) {
  return (a || "").match(/\S*/)[0];
}
function zl(a) {
  return (e) => {
    typeof e == "string" && e !== a.text && (a.escaped = !0, a.text = e);
  };
}
const cu = /[&<>"']/, uh = new RegExp(cu.source, "g"), hu = /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, ch = new RegExp(hu.source, "g"), hh = {
  "&": "&amp;",
  "<": "&lt;",
  ">": "&gt;",
  '"': "&quot;",
  "'": "&#39;"
}, Bl = (a) => hh[a];
function Nl(a, e) {
  if (e) {
    if (cu.test(a))
      return a.replace(uh, Bl);
  } else if (hu.test(a))
    return a.replace(ch, Bl);
  return a;
}
const mh = /[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g, fh = Object.hasOwnProperty;
class bi {
  /**
   * Create a new slug class.
   */
  constructor() {
    this.occurrences, this.reset();
  }
  /**
   * Generate a unique slug.
  *
  * Tracks previously generated slugs: repeated calls with the same value
  * will result in different slugs.
  * Use the `slug` function to get same slugs.
   *
   * @param  {string} value
   *   String of text to slugify
   * @param  {boolean} [maintainCase=false]
   *   Keep the current case, otherwise make all lowercase
   * @return {string}
   *   A unique slug string
   */
  slug(e, t) {
    const r = this;
    let n = dh(e, t === !0);
    const i = n;
    for (; fh.call(r.occurrences, n); )
      r.occurrences[i]++, n = i + "-" + r.occurrences[i];
    return r.occurrences[n] = 0, n;
  }
  /**
   * Reset - Forget all previous slugs
   *
   * @return void
   */
  reset() {
    this.occurrences = /* @__PURE__ */ Object.create(null);
  }
}
function dh(a, e) {
  return typeof a != "string" ? "" : (e || (a = a.toLowerCase()), a.replace(mh, "").replace(/ /g, "-"));
}
let mu = new bi(), fu = [];
function ph({ prefix: a = "", globalSlugs: e = !1 } = {}) {
  return {
    headerIds: !1,
    // prevent deprecation warning; remove this once headerIds option is removed
    hooks: {
      preprocess(t) {
        return e || gh(), t;
      }
    },
    renderer: {
      heading(t, r, n) {
        n = n.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi, "");
        const i = `${a}${mu.slug(n)}`, l = { level: r, text: t, id: i };
        return fu.push(l), `<h${r} id="${i}">${t}</h${r}>
`;
      }
    }
  };
}
function gh() {
  fu = [], mu = new bi();
}
var Rl = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, du = { exports: {} };
(function(a) {
  var e = typeof window < "u" ? window : typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope ? self : {};
  /**
   * Prism: Lightweight, robust, elegant syntax highlighting
   *
   * @license MIT <https://opensource.org/licenses/MIT>
   * @author Lea Verou <https://lea.verou.me>
   * @namespace
   * @public
   */
  var t = function(r) {
    var n = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i, i = 0, l = {}, s = {
      /**
       * By default, Prism will attempt to highlight all code elements (by calling {@link Prism.highlightAll}) on the
       * current page after the page finished loading. This might be a problem if e.g. you wanted to asynchronously load
       * additional languages or plugins yourself.
       *
       * By setting this value to `true`, Prism will not automatically highlight all code elements on the page.
       *
       * You obviously have to change this value before the automatic highlighting started. To do this, you can add an
       * empty Prism object into the global scope before loading the Prism script like this:
       *
       * ```js
       * window.Prism = window.Prism || {};
       * Prism.manual = true;
       * // add a new <script> to load Prism's script
       * ```
       *
       * @default false
       * @type {boolean}
       * @memberof Prism
       * @public
       */
      manual: r.Prism && r.Prism.manual,
      /**
       * By default, if Prism is in a web worker, it assumes that it is in a worker it created itself, so it uses
       * `addEventListener` to communicate with its parent instance. However, if you're using Prism manually in your
       * own worker, you don't want it to do this.
       *
       * By setting this value to `true`, Prism will not add its own listeners to the worker.
       *
       * You obviously have to change this value before Prism executes. To do this, you can add an
       * empty Prism object into the global scope before loading the Prism script like this:
       *
       * ```js
       * window.Prism = window.Prism || {};
       * Prism.disableWorkerMessageHandler = true;
       * // Load Prism's script
       * ```
       *
       * @default false
       * @type {boolean}
       * @memberof Prism
       * @public
       */
      disableWorkerMessageHandler: r.Prism && r.Prism.disableWorkerMessageHandler,
      /**
       * A namespace for utility methods.
       *
       * All function in this namespace that are not explicitly marked as _public_ are for __internal use only__ and may
       * change or disappear at any time.
       *
       * @namespace
       * @memberof Prism
       */
      util: {
        encode: function _(b) {
          return b instanceof o ? new o(b.type, _(b.content), b.alias) : Array.isArray(b) ? b.map(_) : b.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/\u00a0/g, " ");
        },
        /**
         * Returns the name of the type of the given value.
         *
         * @param {any} o
         * @returns {string}
         * @example
         * type(null)      === 'Null'
         * type(undefined) === 'Undefined'
         * type(123)       === 'Number'
         * type('foo')     === 'String'
         * type(true)      === 'Boolean'
         * type([1, 2])    === 'Array'
         * type({})        === 'Object'
         * type(String)    === 'Function'
         * type(/abc+/)    === 'RegExp'
         */
        type: function(_) {
          return Object.prototype.toString.call(_).slice(8, -1);
        },
        /**
         * Returns a unique number for the given object. Later calls will still return the same number.
         *
         * @param {Object} obj
         * @returns {number}
         */
        objId: function(_) {
          return _.__id || Object.defineProperty(_, "__id", { value: ++i }), _.__id;
        },
        /**
         * Creates a deep clone of the given object.
         *
         * The main intended use of this function is to clone language definitions.
         *
         * @param {T} o
         * @param {Record<number, any>} [visited]
         * @returns {T}
         * @template T
         */
        clone: function _(b, E) {
          E = E || {};
          var F, M;
          switch (s.util.type(b)) {
            case "Object":
              if (M = s.util.objId(b), E[M])
                return E[M];
              F = /** @type {Record<string, any>} */
              {}, E[M] = F;
              for (var z in b)
                b.hasOwnProperty(z) && (F[z] = _(b[z], E));
              return (
                /** @type {any} */
                F
              );
            case "Array":
              return M = s.util.objId(b), E[M] ? E[M] : (F = [], E[M] = F, /** @type {Array} */
              /** @type {any} */
              b.forEach(function(q, I) {
                F[I] = _(q, E);
              }), /** @type {any} */
              F);
            default:
              return b;
          }
        },
        /**
         * Returns the Prism language of the given element set by a `language-xxxx` or `lang-xxxx` class.
         *
         * If no language is set for the element or the element is `null` or `undefined`, `none` will be returned.
         *
         * @param {Element} element
         * @returns {string}
         */
        getLanguage: function(_) {
          for (; _; ) {
            var b = n.exec(_.className);
            if (b)
              return b[1].toLowerCase();
            _ = _.parentElement;
          }
          return "none";
        },
        /**
         * Sets the Prism `language-xxxx` class of the given element.
         *
         * @param {Element} element
         * @param {string} language
         * @returns {void}
         */
        setLanguage: function(_, b) {
          _.className = _.className.replace(RegExp(n, "gi"), ""), _.classList.add("language-" + b);
        },
        /**
         * Returns the script element that is currently executing.
         *
         * This does __not__ work for line script element.
         *
         * @returns {HTMLScriptElement | null}
         */
        currentScript: function() {
          if (typeof document > "u")
            return null;
          if ("currentScript" in document)
            return (
              /** @type {any} */
              document.currentScript
            );
          try {
            throw new Error();
          } catch (F) {
            var _ = (/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(F.stack) || [])[1];
            if (_) {
              var b = document.getElementsByTagName("script");
              for (var E in b)
                if (b[E].src == _)
                  return b[E];
            }
            return null;
          }
        },
        /**
         * Returns whether a given class is active for `element`.
         *
         * The class can be activated if `element` or one of its ancestors has the given class and it can be deactivated
         * if `element` or one of its ancestors has the negated version of the given class. The _negated version_ of the
         * given class is just the given class with a `no-` prefix.
         *
         * Whether the class is active is determined by the closest ancestor of `element` (where `element` itself is
         * closest ancestor) that has the given class or the negated version of it. If neither `element` nor any of its
         * ancestors have the given class or the negated version of it, then the default activation will be returned.
         *
         * In the paradoxical situation where the closest ancestor contains __both__ the given class and the negated
         * version of it, the class is considered active.
         *
         * @param {Element} element
         * @param {string} className
         * @param {boolean} [defaultActivation=false]
         * @returns {boolean}
         */
        isActive: function(_, b, E) {
          for (var F = "no-" + b; _; ) {
            var M = _.classList;
            if (M.contains(b))
              return !0;
            if (M.contains(F))
              return !1;
            _ = _.parentElement;
          }
          return !!E;
        }
      },
      /**
       * This namespace contains all currently loaded languages and the some helper functions to create and modify languages.
       *
       * @namespace
       * @memberof Prism
       * @public
       */
      languages: {
        /**
         * The grammar for plain, unformatted text.
         */
        plain: l,
        plaintext: l,
        text: l,
        txt: l,
        /**
         * Creates a deep copy of the language with the given id and appends the given tokens.
         *
         * If a token in `redef` also appears in the copied language, then the existing token in the copied language
         * will be overwritten at its original position.
         *
         * ## Best practices
         *
         * Since the position of overwriting tokens (token in `redef` that overwrite tokens in the copied language)
         * doesn't matter, they can technically be in any order. However, this can be confusing to others that trying to
         * understand the language definition because, normally, the order of tokens matters in Prism grammars.
         *
         * Therefore, it is encouraged to order overwriting tokens according to the positions of the overwritten tokens.
         * Furthermore, all non-overwriting tokens should be placed after the overwriting ones.
         *
         * @param {string} id The id of the language to extend. This has to be a key in `Prism.languages`.
         * @param {Grammar} redef The new tokens to append.
         * @returns {Grammar} The new language created.
         * @public
         * @example
         * Prism.languages['css-with-colors'] = Prism.languages.extend('css', {
         *     // Prism.languages.css already has a 'comment' token, so this token will overwrite CSS' 'comment' token
         *     // at its original position
         *     'comment': { ... },
         *     // CSS doesn't have a 'color' token, so this token will be appended
         *     'color': /\b(?:red|green|blue)\b/
         * });
         */
        extend: function(_, b) {
          var E = s.util.clone(s.languages[_]);
          for (var F in b)
            E[F] = b[F];
          return E;
        },
        /**
         * Inserts tokens _before_ another token in a language definition or any other grammar.
         *
         * ## Usage
         *
         * This helper method makes it easy to modify existing languages. For example, the CSS language definition
         * not only defines CSS highlighting for CSS documents, but also needs to define highlighting for CSS embedded
         * in HTML through `<style>` elements. To do this, it needs to modify `Prism.languages.markup` and add the
         * appropriate tokens. However, `Prism.languages.markup` is a regular JavaScript object literal, so if you do
         * this:
         *
         * ```js
         * Prism.languages.markup.style = {
         *     // token
         * };
         * ```
         *
         * then the `style` token will be added (and processed) at the end. `insertBefore` allows you to insert tokens
         * before existing tokens. For the CSS example above, you would use it like this:
         *
         * ```js
         * Prism.languages.insertBefore('markup', 'cdata', {
         *     'style': {
         *         // token
         *     }
         * });
         * ```
         *
         * ## Special cases
         *
         * If the grammars of `inside` and `insert` have tokens with the same name, the tokens in `inside`'s grammar
         * will be ignored.
         *
         * This behavior can be used to insert tokens after `before`:
         *
         * ```js
         * Prism.languages.insertBefore('markup', 'comment', {
         *     'comment': Prism.languages.markup.comment,
         *     // tokens after 'comment'
         * });
         * ```
         *
         * ## Limitations
         *
         * The main problem `insertBefore` has to solve is iteration order. Since ES2015, the iteration order for object
         * properties is guaranteed to be the insertion order (except for integer keys) but some browsers behave
         * differently when keys are deleted and re-inserted. So `insertBefore` can't be implemented by temporarily
         * deleting properties which is necessary to insert at arbitrary positions.
         *
         * To solve this problem, `insertBefore` doesn't actually insert the given tokens into the target object.
         * Instead, it will create a new object and replace all references to the target object with the new one. This
         * can be done without temporarily deleting properties, so the iteration order is well-defined.
         *
         * However, only references that can be reached from `Prism.languages` or `insert` will be replaced. I.e. if
         * you hold the target object in a variable, then the value of the variable will not change.
         *
         * ```js
         * var oldMarkup = Prism.languages.markup;
         * var newMarkup = Prism.languages.insertBefore('markup', 'comment', { ... });
         *
         * assert(oldMarkup !== Prism.languages.markup);
         * assert(newMarkup === Prism.languages.markup);
         * ```
         *
         * @param {string} inside The property of `root` (e.g. a language id in `Prism.languages`) that contains the
         * object to be modified.
         * @param {string} before The key to insert before.
         * @param {Grammar} insert An object containing the key-value pairs to be inserted.
         * @param {Object<string, any>} [root] The object containing `inside`, i.e. the object that contains the
         * object to be modified.
         *
         * Defaults to `Prism.languages`.
         * @returns {Grammar} The new grammar object.
         * @public
         */
        insertBefore: function(_, b, E, F) {
          F = F || /** @type {any} */
          s.languages;
          var M = F[_], z = {};
          for (var q in M)
            if (M.hasOwnProperty(q)) {
              if (q == b)
                for (var I in E)
                  E.hasOwnProperty(I) && (z[I] = E[I]);
              E.hasOwnProperty(q) || (z[q] = M[q]);
            }
          var B = F[_];
          return F[_] = z, s.languages.DFS(s.languages, function(N, Q) {
            Q === B && N != _ && (this[N] = z);
          }), z;
        },
        // Traverse a language definition with Depth First Search
        DFS: function _(b, E, F, M) {
          M = M || {};
          var z = s.util.objId;
          for (var q in b)
            if (b.hasOwnProperty(q)) {
              E.call(b, q, b[q], F || q);
              var I = b[q], B = s.util.type(I);
              B === "Object" && !M[z(I)] ? (M[z(I)] = !0, _(I, E, null, M)) : B === "Array" && !M[z(I)] && (M[z(I)] = !0, _(I, E, q, M));
            }
        }
      },
      plugins: {},
      /**
       * This is the most high-level function in Prism’s API.
       * It fetches all the elements that have a `.language-xxxx` class and then calls {@link Prism.highlightElement} on
       * each one of them.
       *
       * This is equivalent to `Prism.highlightAllUnder(document, async, callback)`.
       *
       * @param {boolean} [async=false] Same as in {@link Prism.highlightAllUnder}.
       * @param {HighlightCallback} [callback] Same as in {@link Prism.highlightAllUnder}.
       * @memberof Prism
       * @public
       */
      highlightAll: function(_, b) {
        s.highlightAllUnder(document, _, b);
      },
      /**
       * Fetches all the descendants of `container` that have a `.language-xxxx` class and then calls
       * {@link Prism.highlightElement} on each one of them.
       *
       * The following hooks will be run:
       * 1. `before-highlightall`
       * 2. `before-all-elements-highlight`
       * 3. All hooks of {@link Prism.highlightElement} for each element.
       *
       * @param {ParentNode} container The root element, whose descendants that have a `.language-xxxx` class will be highlighted.
       * @param {boolean} [async=false] Whether each element is to be highlighted asynchronously using Web Workers.
       * @param {HighlightCallback} [callback] An optional callback to be invoked on each element after its highlighting is done.
       * @memberof Prism
       * @public
       */
      highlightAllUnder: function(_, b, E) {
        var F = {
          callback: E,
          container: _,
          selector: 'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'
        };
        s.hooks.run("before-highlightall", F), F.elements = Array.prototype.slice.apply(F.container.querySelectorAll(F.selector)), s.hooks.run("before-all-elements-highlight", F);
        for (var M = 0, z; z = F.elements[M++]; )
          s.highlightElement(z, b === !0, F.callback);
      },
      /**
       * Highlights the code inside a single element.
       *
       * The following hooks will be run:
       * 1. `before-sanity-check`
       * 2. `before-highlight`
       * 3. All hooks of {@link Prism.highlight}. These hooks will be run by an asynchronous worker if `async` is `true`.
       * 4. `before-insert`
       * 5. `after-highlight`
       * 6. `complete`
       *
       * Some the above hooks will be skipped if the element doesn't contain any text or there is no grammar loaded for
       * the element's language.
       *
       * @param {Element} element The element containing the code.
       * It must have a class of `language-xxxx` to be processed, where `xxxx` is a valid language identifier.
       * @param {boolean} [async=false] Whether the element is to be highlighted asynchronously using Web Workers
       * to improve performance and avoid blocking the UI when highlighting very large chunks of code. This option is
       * [disabled by default](https://prismjs.com/faq.html#why-is-asynchronous-highlighting-disabled-by-default).
       *
       * Note: All language definitions required to highlight the code must be included in the main `prism.js` file for
       * asynchronous highlighting to work. You can build your own bundle on the
       * [Download page](https://prismjs.com/download.html).
       * @param {HighlightCallback} [callback] An optional callback to be invoked after the highlighting is done.
       * Mostly useful when `async` is `true`, since in that case, the highlighting is done asynchronously.
       * @memberof Prism
       * @public
       */
      highlightElement: function(_, b, E) {
        var F = s.util.getLanguage(_), M = s.languages[F];
        s.util.setLanguage(_, F);
        var z = _.parentElement;
        z && z.nodeName.toLowerCase() === "pre" && s.util.setLanguage(z, F);
        var q = _.textContent, I = {
          element: _,
          language: F,
          grammar: M,
          code: q
        };
        function B(Q) {
          I.highlightedCode = Q, s.hooks.run("before-insert", I), I.element.innerHTML = I.highlightedCode, s.hooks.run("after-highlight", I), s.hooks.run("complete", I), E && E.call(I.element);
        }
        if (s.hooks.run("before-sanity-check", I), z = I.element.parentElement, z && z.nodeName.toLowerCase() === "pre" && !z.hasAttribute("tabindex") && z.setAttribute("tabindex", "0"), !I.code) {
          s.hooks.run("complete", I), E && E.call(I.element);
          return;
        }
        if (s.hooks.run("before-highlight", I), !I.grammar) {
          B(s.util.encode(I.code));
          return;
        }
        if (b && r.Worker) {
          var N = new Worker(s.filename);
          N.onmessage = function(Q) {
            B(Q.data);
          }, N.postMessage(JSON.stringify({
            language: I.language,
            code: I.code,
            immediateClose: !0
          }));
        } else
          B(s.highlight(I.code, I.grammar, I.language));
      },
      /**
       * Low-level function, only use if you know what you’re doing. It accepts a string of text as input
       * and the language definitions to use, and returns a string with the HTML produced.
       *
       * The following hooks will be run:
       * 1. `before-tokenize`
       * 2. `after-tokenize`
       * 3. `wrap`: On each {@link Token}.
       *
       * @param {string} text A string with the code to be highlighted.
       * @param {Grammar} grammar An object containing the tokens to use.
       *
       * Usually a language definition like `Prism.languages.markup`.
       * @param {string} language The name of the language definition passed to `grammar`.
       * @returns {string} The highlighted HTML.
       * @memberof Prism
       * @public
       * @example
       * Prism.highlight('var foo = true;', Prism.languages.javascript, 'javascript');
       */
      highlight: function(_, b, E) {
        var F = {
          code: _,
          grammar: b,
          language: E
        };
        if (s.hooks.run("before-tokenize", F), !F.grammar)
          throw new Error('The language "' + F.language + '" has no grammar.');
        return F.tokens = s.tokenize(F.code, F.grammar), s.hooks.run("after-tokenize", F), o.stringify(s.util.encode(F.tokens), F.language);
      },
      /**
       * This is the heart of Prism, and the most low-level function you can use. It accepts a string of text as input
       * and the language definitions to use, and returns an array with the tokenized code.
       *
       * When the language definition includes nested tokens, the function is called recursively on each of these tokens.
       *
       * This method could be useful in other contexts as well, as a very crude parser.
       *
       * @param {string} text A string with the code to be highlighted.
       * @param {Grammar} grammar An object containing the tokens to use.
       *
       * Usually a language definition like `Prism.languages.markup`.
       * @returns {TokenStream} An array of strings and tokens, a token stream.
       * @memberof Prism
       * @public
       * @example
       * let code = `var foo = 0;`;
       * let tokens = Prism.tokenize(code, Prism.languages.javascript);
       * tokens.forEach(token => {
       *     if (token instanceof Prism.Token && token.type === 'number') {
       *         console.log(`Found numeric literal: ${token.content}`);
       *     }
       * });
       */
      tokenize: function(_, b) {
        var E = b.rest;
        if (E) {
          for (var F in E)
            b[F] = E[F];
          delete b.rest;
        }
        var M = new d();
        return g(M, M.head, _), m(_, M, b, M.head, 0), y(M);
      },
      /**
       * @namespace
       * @memberof Prism
       * @public
       */
      hooks: {
        all: {},
        /**
         * Adds the given callback to the list of callbacks for the given hook.
         *
         * The callback will be invoked when the hook it is registered for is run.
         * Hooks are usually directly run by a highlight function but you can also run hooks yourself.
         *
         * One callback function can be registered to multiple hooks and the same hook multiple times.
         *
         * @param {string} name The name of the hook.
         * @param {HookCallback} callback The callback function which is given environment variables.
         * @public
         */
        add: function(_, b) {
          var E = s.hooks.all;
          E[_] = E[_] || [], E[_].push(b);
        },
        /**
         * Runs a hook invoking all registered callbacks with the given environment variables.
         *
         * Callbacks will be invoked synchronously and in the order in which they were registered.
         *
         * @param {string} name The name of the hook.
         * @param {Object<string, any>} env The environment variables of the hook passed to all callbacks registered.
         * @public
         */
        run: function(_, b) {
          var E = s.hooks.all[_];
          if (!(!E || !E.length))
            for (var F = 0, M; M = E[F++]; )
              M(b);
        }
      },
      Token: o
    };
    r.Prism = s;
    function o(_, b, E, F) {
      this.type = _, this.content = b, this.alias = E, this.length = (F || "").length | 0;
    }
    o.stringify = function _(b, E) {
      if (typeof b == "string")
        return b;
      if (Array.isArray(b)) {
        var F = "";
        return b.forEach(function(B) {
          F += _(B, E);
        }), F;
      }
      var M = {
        type: b.type,
        content: _(b.content, E),
        tag: "span",
        classes: ["token", b.type],
        attributes: {},
        language: E
      }, z = b.alias;
      z && (Array.isArray(z) ? Array.prototype.push.apply(M.classes, z) : M.classes.push(z)), s.hooks.run("wrap", M);
      var q = "";
      for (var I in M.attributes)
        q += " " + I + '="' + (M.attributes[I] || "").replace(/"/g, "&quot;") + '"';
      return "<" + M.tag + ' class="' + M.classes.join(" ") + '"' + q + ">" + M.content + "</" + M.tag + ">";
    };
    function h(_, b, E, F) {
      _.lastIndex = b;
      var M = _.exec(E);
      if (M && F && M[1]) {
        var z = M[1].length;
        M.index += z, M[0] = M[0].slice(z);
      }
      return M;
    }
    function m(_, b, E, F, M, z) {
      for (var q in E)
        if (!(!E.hasOwnProperty(q) || !E[q])) {
          var I = E[q];
          I = Array.isArray(I) ? I : [I];
          for (var B = 0; B < I.length; ++B) {
            if (z && z.cause == q + "," + B)
              return;
            var N = I[B], Q = N.inside, ke = !!N.lookbehind, ie = !!N.greedy, xe = N.alias;
            if (ie && !N.pattern.global) {
              var _e = N.pattern.toString().match(/[imsuy]*$/)[0];
              N.pattern = RegExp(N.pattern.source, _e + "g");
            }
            for (var He = N.pattern || N, se = F.next, Ee = M; se !== b.tail && !(z && Ee >= z.reach); Ee += se.value.length, se = se.next) {
              var De = se.value;
              if (b.length > _.length)
                return;
              if (!(De instanceof o)) {
                var te = 1, le;
                if (ie) {
                  if (le = h(He, Ee, _, ke), !le || le.index >= _.length)
                    break;
                  var je = le.index, ce = le.index + le[0].length, Ce = Ee;
                  for (Ce += se.value.length; je >= Ce; )
                    se = se.next, Ce += se.value.length;
                  if (Ce -= se.value.length, Ee = Ce, se.value instanceof o)
                    continue;
                  for (var U = se; U !== b.tail && (Ce < ce || typeof U.value == "string"); U = U.next)
                    te++, Ce += U.value.length;
                  te--, De = _.slice(Ee, Ce), le.index -= Ee;
                } else if (le = h(He, 0, De, ke), !le)
                  continue;
                var je = le.index, Ne = le[0], Ze = De.slice(0, je), dt = De.slice(je + Ne.length), pt = Ee + De.length;
                z && pt > z.reach && (z.reach = pt);
                var Xt = se.prev;
                Ze && (Xt = g(b, Xt, Ze), Ee += Ze.length), v(b, Xt, te);
                var Et = new o(q, Q ? s.tokenize(Ne, Q) : Ne, xe, Ne);
                if (se = g(b, Xt, Et), dt && g(b, se, dt), te > 1) {
                  var Yt = {
                    cause: q + "," + B,
                    reach: pt
                  };
                  m(_, b, E, se.prev, Ee, Yt), z && Yt.reach > z.reach && (z.reach = Yt.reach);
                }
              }
            }
          }
        }
    }
    function d() {
      var _ = { value: null, prev: null, next: null }, b = { value: null, prev: _, next: null };
      _.next = b, this.head = _, this.tail = b, this.length = 0;
    }
    function g(_, b, E) {
      var F = b.next, M = { value: E, prev: b, next: F };
      return b.next = M, F.prev = M, _.length++, M;
    }
    function v(_, b, E) {
      for (var F = b.next, M = 0; M < E && F !== _.tail; M++)
        F = F.next;
      b.next = F, F.prev = b, _.length -= M;
    }
    function y(_) {
      for (var b = [], E = _.head.next; E !== _.tail; )
        b.push(E.value), E = E.next;
      return b;
    }
    if (!r.document)
      return r.addEventListener && (s.disableWorkerMessageHandler || r.addEventListener("message", function(_) {
        var b = JSON.parse(_.data), E = b.language, F = b.code, M = b.immediateClose;
        r.postMessage(s.highlight(F, s.languages[E], E)), M && r.close();
      }, !1)), s;
    var x = s.util.currentScript();
    x && (s.filename = x.src, x.hasAttribute("data-manual") && (s.manual = !0));
    function A() {
      s.manual || s.highlightAll();
    }
    if (!s.manual) {
      var T = document.readyState;
      T === "loading" || T === "interactive" && x && x.defer ? document.addEventListener("DOMContentLoaded", A) : window.requestAnimationFrame ? window.requestAnimationFrame(A) : window.setTimeout(A, 16);
    }
    return s;
  }(e);
  a.exports && (a.exports = t), typeof Rl < "u" && (Rl.Prism = t), t.languages.markup = {
    comment: {
      pattern: /<!--(?:(?!<!--)[\s\S])*?-->/,
      greedy: !0
    },
    prolog: {
      pattern: /<\?[\s\S]+?\?>/,
      greedy: !0
    },
    doctype: {
      // https://www.w3.org/TR/xml/#NT-doctypedecl
      pattern: /<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,
      greedy: !0,
      inside: {
        "internal-subset": {
          pattern: /(^[^\[]*\[)[\s\S]+(?=\]>$)/,
          lookbehind: !0,
          greedy: !0,
          inside: null
          // see below
        },
        string: {
          pattern: /"[^"]*"|'[^']*'/,
          greedy: !0
        },
        punctuation: /^<!|>$|[[\]]/,
        "doctype-tag": /^DOCTYPE/i,
        name: /[^\s<>'"]+/
      }
    },
    cdata: {
      pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i,
      greedy: !0
    },
    tag: {
      pattern: /<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,
      greedy: !0,
      inside: {
        tag: {
          pattern: /^<\/?[^\s>\/]+/,
          inside: {
            punctuation: /^<\/?/,
            namespace: /^[^\s>\/:]+:/
          }
        },
        "special-attr": [],
        "attr-value": {
          pattern: /=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,
          inside: {
            punctuation: [
              {
                pattern: /^=/,
                alias: "attr-equals"
              },
              {
                pattern: /^(\s*)["']|["']$/,
                lookbehind: !0
              }
            ]
          }
        },
        punctuation: /\/?>/,
        "attr-name": {
          pattern: /[^\s>\/]+/,
          inside: {
            namespace: /^[^\s>\/:]+:/
          }
        }
      }
    },
    entity: [
      {
        pattern: /&[\da-z]{1,8};/i,
        alias: "named-entity"
      },
      /&#x?[\da-f]{1,8};/i
    ]
  }, t.languages.markup.tag.inside["attr-value"].inside.entity = t.languages.markup.entity, t.languages.markup.doctype.inside["internal-subset"].inside = t.languages.markup, t.hooks.add("wrap", function(r) {
    r.type === "entity" && (r.attributes.title = r.content.replace(/&amp;/, "&"));
  }), Object.defineProperty(t.languages.markup.tag, "addInlined", {
    /**
     * Adds an inlined language to markup.
     *
     * An example of an inlined language is CSS with `<style>` tags.
     *
     * @param {string} tagName The name of the tag that contains the inlined language. This name will be treated as
     * case insensitive.
     * @param {string} lang The language key.
     * @example
     * addInlined('style', 'css');
     */
    value: function(n, i) {
      var l = {};
      l["language-" + i] = {
        pattern: /(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,
        lookbehind: !0,
        inside: t.languages[i]
      }, l.cdata = /^<!\[CDATA\[|\]\]>$/i;
      var s = {
        "included-cdata": {
          pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i,
          inside: l
        }
      };
      s["language-" + i] = {
        pattern: /[\s\S]+/,
        inside: t.languages[i]
      };
      var o = {};
      o[n] = {
        pattern: RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g, function() {
          return n;
        }), "i"),
        lookbehind: !0,
        greedy: !0,
        inside: s
      }, t.languages.insertBefore("markup", "cdata", o);
    }
  }), Object.defineProperty(t.languages.markup.tag, "addAttribute", {
    /**
     * Adds an pattern to highlight languages embedded in HTML attributes.
     *
     * An example of an inlined language is CSS with `style` attributes.
     *
     * @param {string} attrName The name of the tag that contains the inlined language. This name will be treated as
     * case insensitive.
     * @param {string} lang The language key.
     * @example
     * addAttribute('style', 'css');
     */
    value: function(r, n) {
      t.languages.markup.tag.inside["special-attr"].push({
        pattern: RegExp(
          /(^|["'\s])/.source + "(?:" + r + ")" + /\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,
          "i"
        ),
        lookbehind: !0,
        inside: {
          "attr-name": /^[^\s=]+/,
          "attr-value": {
            pattern: /=[\s\S]+/,
            inside: {
              value: {
                pattern: /(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,
                lookbehind: !0,
                alias: [n, "language-" + n],
                inside: t.languages[n]
              },
              punctuation: [
                {
                  pattern: /^=/,
                  alias: "attr-equals"
                },
                /"|'/
              ]
            }
          }
        }
      });
    }
  }), t.languages.html = t.languages.markup, t.languages.mathml = t.languages.markup, t.languages.svg = t.languages.markup, t.languages.xml = t.languages.extend("markup", {}), t.languages.ssml = t.languages.xml, t.languages.atom = t.languages.xml, t.languages.rss = t.languages.xml, function(r) {
    var n = /(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;
    r.languages.css = {
      comment: /\/\*[\s\S]*?\*\//,
      atrule: {
        pattern: RegExp("@[\\w-](?:" + /[^;{\s"']|\s+(?!\s)/.source + "|" + n.source + ")*?" + /(?:;|(?=\s*\{))/.source),
        inside: {
          rule: /^@[\w-]+/,
          "selector-function-argument": {
            pattern: /(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,
            lookbehind: !0,
            alias: "selector"
          },
          keyword: {
            pattern: /(^|[^\w-])(?:and|not|only|or)(?![\w-])/,
            lookbehind: !0
          }
          // See rest below
        }
      },
      url: {
        // https://drafts.csswg.org/css-values-3/#urls
        pattern: RegExp("\\burl\\((?:" + n.source + "|" + /(?:[^\\\r\n()"']|\\[\s\S])*/.source + ")\\)", "i"),
        greedy: !0,
        inside: {
          function: /^url/i,
          punctuation: /^\(|\)$/,
          string: {
            pattern: RegExp("^" + n.source + "$"),
            alias: "url"
          }
        }
      },
      selector: {
        pattern: RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|` + n.source + ")*(?=\\s*\\{)"),
        lookbehind: !0
      },
      string: {
        pattern: n,
        greedy: !0
      },
      property: {
        pattern: /(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,
        lookbehind: !0
      },
      important: /!important\b/i,
      function: {
        pattern: /(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,
        lookbehind: !0
      },
      punctuation: /[(){};:,]/
    }, r.languages.css.atrule.inside.rest = r.languages.css;
    var i = r.languages.markup;
    i && (i.tag.addInlined("style", "css"), i.tag.addAttribute("style", "css"));
  }(t), t.languages.clike = {
    comment: [
      {
        pattern: /(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,
        lookbehind: !0,
        greedy: !0
      },
      {
        pattern: /(^|[^\\:])\/\/.*/,
        lookbehind: !0,
        greedy: !0
      }
    ],
    string: {
      pattern: /(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,
      greedy: !0
    },
    "class-name": {
      pattern: /(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,
      lookbehind: !0,
      inside: {
        punctuation: /[.\\]/
      }
    },
    keyword: /\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,
    boolean: /\b(?:false|true)\b/,
    function: /\b\w+(?=\()/,
    number: /\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,
    operator: /[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,
    punctuation: /[{}[\];(),.:]/
  }, t.languages.javascript = t.languages.extend("clike", {
    "class-name": [
      t.languages.clike["class-name"],
      {
        pattern: /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,
        lookbehind: !0
      }
    ],
    keyword: [
      {
        pattern: /((?:^|\})\s*)catch\b/,
        lookbehind: !0
      },
      {
        pattern: /(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,
        lookbehind: !0
      }
    ],
    // Allow for all non-ASCII characters (See http://stackoverflow.com/a/2008444)
    function: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,
    number: {
      pattern: RegExp(
        /(^|[^\w$])/.source + "(?:" + // constant
        (/NaN|Infinity/.source + "|" + // binary integer
        /0[bB][01]+(?:_[01]+)*n?/.source + "|" + // octal integer
        /0[oO][0-7]+(?:_[0-7]+)*n?/.source + "|" + // hexadecimal integer
        /0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source + "|" + // decimal bigint
        /\d+(?:_\d+)*n/.source + "|" + // decimal number (integer or float) but no bigint
        /(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source) + ")" + /(?![\w$])/.source
      ),
      lookbehind: !0
    },
    operator: /--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/
  }), t.languages.javascript["class-name"][0].pattern = /(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/, t.languages.insertBefore("javascript", "keyword", {
    regex: {
      pattern: RegExp(
        // lookbehind
        // eslint-disable-next-line regexp/no-dupe-characters-character-class
        /((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source + // Regex pattern:
        // There are 2 regex patterns here. The RegExp set notation proposal added support for nested character
        // classes if the `v` flag is present. Unfortunately, nested CCs are both context-free and incompatible
        // with the only syntax, so we have to define 2 different regex patterns.
        /\//.source + "(?:" + /(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source + "|" + // `v` flag syntax. This supports 3 levels of nested character classes.
        /(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source + ")" + // lookahead
        /(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source
      ),
      lookbehind: !0,
      greedy: !0,
      inside: {
        "regex-source": {
          pattern: /^(\/)[\s\S]+(?=\/[a-z]*$)/,
          lookbehind: !0,
          alias: "language-regex",
          inside: t.languages.regex
        },
        "regex-delimiter": /^\/|\/$/,
        "regex-flags": /^[a-z]+$/
      }
    },
    // This must be declared before keyword because we use "function" inside the look-forward
    "function-variable": {
      pattern: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,
      alias: "function"
    },
    parameter: [
      {
        pattern: /(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,
        lookbehind: !0,
        inside: t.languages.javascript
      },
      {
        pattern: /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,
        lookbehind: !0,
        inside: t.languages.javascript
      },
      {
        pattern: /(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,
        lookbehind: !0,
        inside: t.languages.javascript
      },
      {
        pattern: /((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,
        lookbehind: !0,
        inside: t.languages.javascript
      }
    ],
    constant: /\b[A-Z](?:[A-Z_]|\dx?)*\b/
  }), t.languages.insertBefore("javascript", "string", {
    hashbang: {
      pattern: /^#!.*/,
      greedy: !0,
      alias: "comment"
    },
    "template-string": {
      pattern: /`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,
      greedy: !0,
      inside: {
        "template-punctuation": {
          pattern: /^`|`$/,
          alias: "string"
        },
        interpolation: {
          pattern: /((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,
          lookbehind: !0,
          inside: {
            "interpolation-punctuation": {
              pattern: /^\$\{|\}$/,
              alias: "punctuation"
            },
            rest: t.languages.javascript
          }
        },
        string: /[\s\S]+/
      }
    },
    "string-property": {
      pattern: /((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,
      lookbehind: !0,
      greedy: !0,
      alias: "property"
    }
  }), t.languages.insertBefore("javascript", "operator", {
    "literal-property": {
      pattern: /((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,
      lookbehind: !0,
      alias: "property"
    }
  }), t.languages.markup && (t.languages.markup.tag.addInlined("script", "javascript"), t.languages.markup.tag.addAttribute(
    /on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,
    "javascript"
  )), t.languages.js = t.languages.javascript, function() {
    if (typeof t > "u" || typeof document > "u")
      return;
    Element.prototype.matches || (Element.prototype.matches = Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector);
    var r = "Loading…", n = function(x, A) {
      return "✖ Error " + x + " while fetching file: " + A;
    }, i = "✖ Error: File does not exist or is empty", l = {
      js: "javascript",
      py: "python",
      rb: "ruby",
      ps1: "powershell",
      psm1: "powershell",
      sh: "bash",
      bat: "batch",
      h: "c",
      tex: "latex"
    }, s = "data-src-status", o = "loading", h = "loaded", m = "failed", d = "pre[data-src]:not([" + s + '="' + h + '"]):not([' + s + '="' + o + '"])';
    function g(x, A, T) {
      var _ = new XMLHttpRequest();
      _.open("GET", x, !0), _.onreadystatechange = function() {
        _.readyState == 4 && (_.status < 400 && _.responseText ? A(_.responseText) : _.status >= 400 ? T(n(_.status, _.statusText)) : T(i));
      }, _.send(null);
    }
    function v(x) {
      var A = /^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(x || "");
      if (A) {
        var T = Number(A[1]), _ = A[2], b = A[3];
        return _ ? b ? [T, Number(b)] : [T, void 0] : [T, T];
      }
    }
    t.hooks.add("before-highlightall", function(x) {
      x.selector += ", " + d;
    }), t.hooks.add("before-sanity-check", function(x) {
      var A = (
        /** @type {HTMLPreElement} */
        x.element
      );
      if (A.matches(d)) {
        x.code = "", A.setAttribute(s, o);
        var T = A.appendChild(document.createElement("CODE"));
        T.textContent = r;
        var _ = A.getAttribute("data-src"), b = x.language;
        if (b === "none") {
          var E = (/\.(\w+)$/.exec(_) || [, "none"])[1];
          b = l[E] || E;
        }
        t.util.setLanguage(T, b), t.util.setLanguage(A, b);
        var F = t.plugins.autoloader;
        F && F.loadLanguages(b), g(
          _,
          function(M) {
            A.setAttribute(s, h);
            var z = v(A.getAttribute("data-range"));
            if (z) {
              var q = M.split(/\r\n?|\n/g), I = z[0], B = z[1] == null ? q.length : z[1];
              I < 0 && (I += q.length), I = Math.max(0, Math.min(I - 1, q.length)), B < 0 && (B += q.length), B = Math.max(0, Math.min(B, q.length)), M = q.slice(I, B).join(`
`), A.hasAttribute("data-start") || A.setAttribute("data-start", String(I + 1));
            }
            T.textContent = M, t.highlightElement(T);
          },
          function(M) {
            A.setAttribute(s, m), T.textContent = M;
          }
        );
      }
    }), t.plugins.fileHighlight = {
      /**
       * Executes the File Highlight plugin for all matching `pre` elements under the given container.
       *
       * Note: Elements which are already loaded or currently loading will not be touched by this method.
       *
       * @param {ParentNode} [container=document]
       */
      highlight: function(A) {
        for (var T = (A || document).querySelectorAll(d), _ = 0, b; b = T[_++]; )
          t.highlightElement(b);
      }
    };
    var y = !1;
    t.fileHighlight = function() {
      y || (console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."), y = !0), t.plugins.fileHighlight.highlight.apply(this, arguments);
    };
  }();
})(du);
var Qa = du.exports;
Prism.languages.python = {
  comment: {
    pattern: /(^|[^\\])#.*/,
    lookbehind: !0,
    greedy: !0
  },
  "string-interpolation": {
    pattern: /(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,
    greedy: !0,
    inside: {
      interpolation: {
        // "{" <expression> <optional "!s", "!r", or "!a"> <optional ":" format specifier> "}"
        pattern: /((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,
        lookbehind: !0,
        inside: {
          "format-spec": {
            pattern: /(:)[^:(){}]+(?=\}$)/,
            lookbehind: !0
          },
          "conversion-option": {
            pattern: /![sra](?=[:}]$)/,
            alias: "punctuation"
          },
          rest: null
        }
      },
      string: /[\s\S]+/
    }
  },
  "triple-quoted-string": {
    pattern: /(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,
    greedy: !0,
    alias: "string"
  },
  string: {
    pattern: /(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,
    greedy: !0
  },
  function: {
    pattern: /((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,
    lookbehind: !0
  },
  "class-name": {
    pattern: /(\bclass\s+)\w+/i,
    lookbehind: !0
  },
  decorator: {
    pattern: /(^[\t ]*)@\w+(?:\.\w+)*/m,
    lookbehind: !0,
    alias: ["annotation", "punctuation"],
    inside: {
      punctuation: /\./
    }
  },
  keyword: /\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,
  builtin: /\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,
  boolean: /\b(?:False|None|True)\b/,
  number: /\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,
  operator: /[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,
  punctuation: /[{}[\];(),.:]/
};
Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest = Prism.languages.python;
Prism.languages.py = Prism.languages.python;
(function(a) {
  var e = /\\(?:[^a-z()[\]]|[a-z*]+)/i, t = {
    "equation-command": {
      pattern: e,
      alias: "regex"
    }
  };
  a.languages.latex = {
    comment: /%.*/,
    // the verbatim environment prints whitespace to the document
    cdata: {
      pattern: /(\\begin\{((?:lstlisting|verbatim)\*?)\})[\s\S]*?(?=\\end\{\2\})/,
      lookbehind: !0
    },
    /*
     * equations can be between $$ $$ or $ $ or \( \) or \[ \]
     * (all are multiline)
     */
    equation: [
      {
        pattern: /\$\$(?:\\[\s\S]|[^\\$])+\$\$|\$(?:\\[\s\S]|[^\\$])+\$|\\\([\s\S]*?\\\)|\\\[[\s\S]*?\\\]/,
        inside: t,
        alias: "string"
      },
      {
        pattern: /(\\begin\{((?:align|eqnarray|equation|gather|math|multline)\*?)\})[\s\S]*?(?=\\end\{\2\})/,
        lookbehind: !0,
        inside: t,
        alias: "string"
      }
    ],
    /*
     * arguments which are keywords or references are highlighted
     * as keywords
     */
    keyword: {
      pattern: /(\\(?:begin|cite|documentclass|end|label|ref|usepackage)(?:\[[^\]]+\])?\{)[^}]+(?=\})/,
      lookbehind: !0
    },
    url: {
      pattern: /(\\url\{)[^}]+(?=\})/,
      lookbehind: !0
    },
    /*
     * section or chapter headlines are highlighted as bold so that
     * they stand out more
     */
    headline: {
      pattern: /(\\(?:chapter|frametitle|paragraph|part|section|subparagraph|subsection|subsubparagraph|subsubsection|subsubsubparagraph)\*?(?:\[[^\]]+\])?\{)[^}]+(?=\})/,
      lookbehind: !0,
      alias: "class-name"
    },
    function: {
      pattern: e,
      alias: "selector"
    },
    punctuation: /[[\]{}&]/
  }, a.languages.tex = a.languages.latex, a.languages.context = a.languages.latex;
})(Prism);
(function(a) {
  var e = "\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b", t = {
    pattern: /(^(["']?)\w+\2)[ \t]+\S.*/,
    lookbehind: !0,
    alias: "punctuation",
    // this looks reasonably well in all themes
    inside: null
    // see below
  }, r = {
    bash: t,
    environment: {
      pattern: RegExp("\\$" + e),
      alias: "constant"
    },
    variable: [
      // [0]: Arithmetic Environment
      {
        pattern: /\$?\(\([\s\S]+?\)\)/,
        greedy: !0,
        inside: {
          // If there is a $ sign at the beginning highlight $(( and )) as variable
          variable: [
            {
              pattern: /(^\$\(\([\s\S]+)\)\)/,
              lookbehind: !0
            },
            /^\$\(\(/
          ],
          number: /\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,
          // Operators according to https://www.gnu.org/software/bash/manual/bashref.html#Shell-Arithmetic
          operator: /--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,
          // If there is no $ sign at the beginning highlight (( and )) as punctuation
          punctuation: /\(\(?|\)\)?|,|;/
        }
      },
      // [1]: Command Substitution
      {
        pattern: /\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,
        greedy: !0,
        inside: {
          variable: /^\$\(|^`|\)$|`$/
        }
      },
      // [2]: Brace expansion
      {
        pattern: /\$\{[^}]+\}/,
        greedy: !0,
        inside: {
          operator: /:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,
          punctuation: /[\[\]]/,
          environment: {
            pattern: RegExp("(\\{)" + e),
            lookbehind: !0,
            alias: "constant"
          }
        }
      },
      /\$(?:\w+|[#?*!@$])/
    ],
    // Escape sequences from echo and printf's manuals, and escaped quotes.
    entity: /\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/
  };
  a.languages.bash = {
    shebang: {
      pattern: /^#!\s*\/.*/,
      alias: "important"
    },
    comment: {
      pattern: /(^|[^"{\\$])#.*/,
      lookbehind: !0
    },
    "function-name": [
      // a) function foo {
      // b) foo() {
      // c) function foo() {
      // but not “foo {”
      {
        // a) and c)
        pattern: /(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,
        lookbehind: !0,
        alias: "function"
      },
      {
        // b)
        pattern: /\b[\w-]+(?=\s*\(\s*\)\s*\{)/,
        alias: "function"
      }
    ],
    // Highlight variable names as variables in for and select beginnings.
    "for-or-select": {
      pattern: /(\b(?:for|select)\s+)\w+(?=\s+in\s)/,
      alias: "variable",
      lookbehind: !0
    },
    // Highlight variable names as variables in the left-hand part
    // of assignments (“=” and “+=”).
    "assign-left": {
      pattern: /(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,
      inside: {
        environment: {
          pattern: RegExp("(^|[\\s;|&]|[<>]\\()" + e),
          lookbehind: !0,
          alias: "constant"
        }
      },
      alias: "variable",
      lookbehind: !0
    },
    // Highlight parameter names as variables
    parameter: {
      pattern: /(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,
      alias: "variable",
      lookbehind: !0
    },
    string: [
      // Support for Here-documents https://en.wikipedia.org/wiki/Here_document
      {
        pattern: /((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,
        lookbehind: !0,
        greedy: !0,
        inside: r
      },
      // Here-document with quotes around the tag
      // → No expansion (so no “inside”).
      {
        pattern: /((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,
        lookbehind: !0,
        greedy: !0,
        inside: {
          bash: t
        }
      },
      // “Normal” string
      {
        // https://www.gnu.org/software/bash/manual/html_node/Double-Quotes.html
        pattern: /(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,
        lookbehind: !0,
        greedy: !0,
        inside: r
      },
      {
        // https://www.gnu.org/software/bash/manual/html_node/Single-Quotes.html
        pattern: /(^|[^$\\])'[^']*'/,
        lookbehind: !0,
        greedy: !0
      },
      {
        // https://www.gnu.org/software/bash/manual/html_node/ANSI_002dC-Quoting.html
        pattern: /\$'(?:[^'\\]|\\[\s\S])*'/,
        greedy: !0,
        inside: {
          entity: r.entity
        }
      }
    ],
    environment: {
      pattern: RegExp("\\$?" + e),
      alias: "constant"
    },
    variable: r.variable,
    function: {
      pattern: /(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,
      lookbehind: !0
    },
    keyword: {
      pattern: /(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,
      lookbehind: !0
    },
    // https://www.gnu.org/software/bash/manual/html_node/Shell-Builtin-Commands.html
    builtin: {
      pattern: /(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,
      lookbehind: !0,
      // Alias added to make those easier to distinguish from strings.
      alias: "class-name"
    },
    boolean: {
      pattern: /(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,
      lookbehind: !0
    },
    "file-descriptor": {
      pattern: /\B&\d\b/,
      alias: "important"
    },
    operator: {
      // Lots of redirections here, but not just that.
      pattern: /\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,
      inside: {
        "file-descriptor": {
          pattern: /^\d/,
          alias: "important"
        }
      }
    },
    punctuation: /\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,
    number: {
      pattern: /(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,
      lookbehind: !0
    }
  }, t.inside = a.languages.bash;
  for (var n = [
    "comment",
    "function-name",
    "for-or-select",
    "assign-left",
    "parameter",
    "string",
    "environment",
    "function",
    "keyword",
    "builtin",
    "boolean",
    "file-descriptor",
    "operator",
    "punctuation",
    "number"
  ], i = r.variable[1].inside, l = 0; l < n.length; l++)
    i[n[l]] = a.languages.bash[n[l]];
  a.languages.sh = a.languages.bash, a.languages.shell = a.languages.bash;
})(Prism);
const vh = '<svg class="md-link-icon" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true" fill="currentColor"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg>', bh = `
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15 15" color="currentColor" aria-hidden="true" aria-label="Copy" stroke-width="1.3" width="15" height="15">
  <path fill="currentColor" d="M12.728 4.545v8.182H4.545V4.545zm0 -0.909H4.545a0.909 0.909 0 0 0 -0.909 0.909v8.182a0.909 0.909 0 0 0 0.909 0.909h8.182a0.909 0.909 0 0 0 0.909 -0.909V4.545a0.909 0.909 0 0 0 -0.909 -0.909"/>
  <path fill="currentColor" d="M1.818 8.182H0.909V1.818a0.909 0.909 0 0 1 0.909 -0.909h6.364v0.909H1.818Z"/>
</svg>

`, yh = `<svg xmlns="http://www.w3.org/2000/svg" width="17" height="17" viewBox="0 0 17 17" aria-hidden="true" aria-label="Copied" fill="none" stroke="currentColor" stroke-width="1.3">
  <path d="m13.813 4.781 -7.438 7.438 -3.188 -3.188"/>
</svg>
`, Il = `<button title="copy" class="copy_code_button">
  <span class="copy-text">${bh}</span>
  <span class="check">${yh}</span>
</button>`, pu = /[&<>"']/, wh = new RegExp(pu.source, "g"), gu = /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, kh = new RegExp(gu.source, "g"), xh = {
  "&": "&amp;",
  "<": "&lt;",
  ">": "&gt;",
  '"': "&quot;",
  "'": "&#39;"
}, Ll = (a) => xh[a] || "";
function Ja(a, e) {
  if (e) {
    if (pu.test(a))
      return a.replace(wh, Ll);
  } else if (gu.test(a))
    return a.replace(kh, Ll);
  return a;
}
function _h(a) {
  const e = a.map((t) => ({
    start: new RegExp(t.left.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&")),
    end: new RegExp(t.right.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&"))
  }));
  return {
    name: "latex",
    level: "block",
    start(t) {
      for (const r of e) {
        const n = t.match(r.start);
        if (n)
          return n.index;
      }
      return -1;
    },
    tokenizer(t, r) {
      for (const n of e) {
        const i = new RegExp(
          `${n.start.source}([\\s\\S]+?)${n.end.source}`
        ).exec(t);
        if (i)
          return {
            type: "latex",
            raw: i[0],
            text: i[1].trim()
          };
      }
    },
    renderer(t) {
      return `<div class="latex-block">${t.text}</div>`;
    }
  };
}
const Dh = {
  code(a, e, t) {
    var n;
    const r = ((n = (e ?? "").match(/\S*/)) == null ? void 0 : n[0]) ?? "";
    return a = a.replace(/\n$/, "") + `
`, r ? '<div class="code_wrap">' + Il + '<pre><code class="language-' + Ja(r) + '">' + (t ? a : Ja(a, !0)) + `</code></pre></div>
` : '<div class="code_wrap">' + Il + "<pre><code>" + (t ? a : Ja(a, !0)) + `</code></pre></div>
`;
  }
}, Ah = new bi();
function Sh({
  header_links: a,
  line_breaks: e,
  latex_delimiters: t
}) {
  const r = new ou();
  r.use(
    {
      gfm: !0,
      pedantic: !1,
      breaks: e
    },
    oh({
      highlight: (i, l) => Qa.languages[l] ? Qa.highlight(i, Qa.languages[l], l) : i
    }),
    { renderer: Dh }
  ), a && (r.use(ph()), r.use({
    extensions: [
      {
        name: "heading",
        level: "block",
        renderer(i) {
          const l = i.raw.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi, ""), s = "h" + Ah.slug(l), o = i.depth, h = this.parser.parseInline(i.tokens);
          return `<h${o} id="${s}"><a class="md-header-anchor" href="#${s}">${vh}</a>${h}</h${o}>
`;
        }
      }
    ]
  }));
  const n = _h(t);
  return r.use({
    extensions: [n]
  }), r;
}
const zn = (a) => JSON.parse(JSON.stringify(a)), Eh = (a) => a.nodeType === 1, Fh = (a) => Zh.has(a.tagName), Th = (a) => "action" in a, Ch = (a) => a.tagName === "IFRAME", Mh = (a) => "formAction" in a, zh = (a) => "protocol" in a, Pr = /* @__PURE__ */ (() => {
  const a = /^(?:\w+script|data):/i;
  return (e) => a.test(e);
})(), Bh = /* @__PURE__ */ (() => {
  const a = /(?:script|data):/i;
  return (e) => a.test(e);
})(), Nh = (a) => {
  const e = {};
  for (let t = 0, r = a.length; t < r; t++) {
    const n = a[t];
    for (const i in n)
      e[i] ? e[i] = e[i].concat(n[i]) : e[i] = n[i];
  }
  return e;
}, vu = (a, e) => {
  let t = a.firstChild;
  for (; t; ) {
    const r = t.nextSibling;
    Eh(t) && (e(t, a), t.parentNode && vu(t, e)), t = r;
  }
}, Rh = (a, e) => {
  const t = document.createNodeIterator(a, NodeFilter.SHOW_ELEMENT);
  let r;
  for (; r = t.nextNode(); ) {
    const n = r.parentNode;
    n && e(r, n);
  }
}, Ih = (a, e) => !!globalThis.document && !!globalThis.document.createNodeIterator ? Rh(a, e) : vu(a, e), bu = [
  "a",
  "abbr",
  "acronym",
  "address",
  "area",
  "article",
  "aside",
  "audio",
  "b",
  "bdi",
  "bdo",
  "bgsound",
  "big",
  "blockquote",
  "body",
  "br",
  "button",
  "canvas",
  "caption",
  "center",
  "cite",
  "code",
  "col",
  "colgroup",
  "datalist",
  "dd",
  "del",
  "details",
  "dfn",
  "dialog",
  "dir",
  "div",
  "dl",
  "dt",
  "em",
  "fieldset",
  "figcaption",
  "figure",
  "font",
  "footer",
  "form",
  "h1",
  "h2",
  "h3",
  "h4",
  "h5",
  "h6",
  "head",
  "header",
  "hgroup",
  "hr",
  "html",
  "i",
  "img",
  "input",
  "ins",
  "kbd",
  "keygen",
  "label",
  "layer",
  "legend",
  "li",
  "link",
  "listing",
  "main",
  "map",
  "mark",
  "marquee",
  "menu",
  "meta",
  "meter",
  "nav",
  "nobr",
  "ol",
  "optgroup",
  "option",
  "output",
  "p",
  "picture",
  "popup",
  "pre",
  "progress",
  "q",
  "rb",
  "rp",
  "rt",
  "rtc",
  "ruby",
  "s",
  "samp",
  "section",
  "select",
  "selectmenu",
  "small",
  "source",
  "span",
  "strike",
  "strong",
  "style",
  "sub",
  "summary",
  "sup",
  "table",
  "tbody",
  "td",
  "tfoot",
  "th",
  "thead",
  "time",
  "tr",
  "track",
  "tt",
  "u",
  "ul",
  "var",
  "video",
  "wbr"
], Lh = [
  "basefont",
  "command",
  "data",
  "iframe",
  "image",
  "plaintext",
  "portal",
  "slot",
  // 'template', //TODO: Not exactly correct to never allow this, too strict
  "textarea",
  "title",
  "xmp"
], Oh = /* @__PURE__ */ new Set([
  ...bu,
  ...Lh
]), yu = [
  "svg",
  "a",
  "altglyph",
  "altglyphdef",
  "altglyphitem",
  "animatecolor",
  "animatemotion",
  "animatetransform",
  "circle",
  "clippath",
  "defs",
  "desc",
  "ellipse",
  "filter",
  "font",
  "g",
  "glyph",
  "glyphref",
  "hkern",
  "image",
  "line",
  "lineargradient",
  "marker",
  "mask",
  "metadata",
  "mpath",
  "path",
  "pattern",
  "polygon",
  "polyline",
  "radialgradient",
  "rect",
  "stop",
  "style",
  "switch",
  "symbol",
  "text",
  "textpath",
  "title",
  "tref",
  "tspan",
  "view",
  "vkern",
  /* FILTERS */
  "feBlend",
  "feColorMatrix",
  "feComponentTransfer",
  "feComposite",
  "feConvolveMatrix",
  "feDiffuseLighting",
  "feDisplacementMap",
  "feDistantLight",
  "feFlood",
  "feFuncA",
  "feFuncB",
  "feFuncG",
  "feFuncR",
  "feGaussianBlur",
  "feImage",
  "feMerge",
  "feMergeNode",
  "feMorphology",
  "feOffset",
  "fePointLight",
  "feSpecularLighting",
  "feSpotLight",
  "feTile",
  "feTurbulence"
], qh = [
  "animate",
  "color-profile",
  "cursor",
  "discard",
  "fedropshadow",
  "font-face",
  "font-face-format",
  "font-face-name",
  "font-face-src",
  "font-face-uri",
  "foreignobject",
  "hatch",
  "hatchpath",
  "mesh",
  "meshgradient",
  "meshpatch",
  "meshrow",
  "missing-glyph",
  "script",
  "set",
  "solidcolor",
  "unknown",
  "use"
], Ph = /* @__PURE__ */ new Set([
  ...yu,
  ...qh
]), wu = [
  "math",
  "menclose",
  "merror",
  "mfenced",
  "mfrac",
  "mglyph",
  "mi",
  "mlabeledtr",
  "mmultiscripts",
  "mn",
  "mo",
  "mover",
  "mpadded",
  "mphantom",
  "mroot",
  "mrow",
  "ms",
  "mspace",
  "msqrt",
  "mstyle",
  "msub",
  "msup",
  "msubsup",
  "mtable",
  "mtd",
  "mtext",
  "mtr",
  "munder",
  "munderover"
], Hh = [
  "maction",
  "maligngroup",
  "malignmark",
  "mlongdiv",
  "mscarries",
  "mscarry",
  "msgroup",
  "mstack",
  "msline",
  "msrow",
  "semantics",
  "annotation",
  "annotation-xml",
  "mprescripts",
  "none"
], Uh = /* @__PURE__ */ new Set([
  ...wu,
  ...Hh
]), Gh = [
  "abbr",
  "accept",
  "accept-charset",
  "accesskey",
  "action",
  "align",
  "alink",
  "allow",
  "allowfullscreen",
  "alt",
  "anchor",
  "archive",
  "as",
  "async",
  "autocapitalize",
  "autocomplete",
  "autocorrect",
  "autofocus",
  "autopictureinpicture",
  "autoplay",
  "axis",
  "background",
  "behavior",
  "bgcolor",
  "border",
  "bordercolor",
  "capture",
  "cellpadding",
  "cellspacing",
  "challenge",
  "char",
  "charoff",
  "charset",
  "checked",
  "cite",
  "class",
  "classid",
  "clear",
  "code",
  "codebase",
  "codetype",
  "color",
  "cols",
  "colspan",
  "compact",
  "content",
  "contenteditable",
  "controls",
  "controlslist",
  "conversiondestination",
  "coords",
  "crossorigin",
  "csp",
  "data",
  "datetime",
  "declare",
  "decoding",
  "default",
  "defer",
  "dir",
  "direction",
  "dirname",
  "disabled",
  "disablepictureinpicture",
  "disableremoteplayback",
  "disallowdocumentaccess",
  "download",
  "draggable",
  "elementtiming",
  "enctype",
  "end",
  "enterkeyhint",
  "event",
  "exportparts",
  "face",
  "for",
  "form",
  "formaction",
  "formenctype",
  "formmethod",
  "formnovalidate",
  "formtarget",
  "frame",
  "frameborder",
  "headers",
  "height",
  "hidden",
  "high",
  "href",
  "hreflang",
  "hreftranslate",
  "hspace",
  "http-equiv",
  "id",
  "imagesizes",
  "imagesrcset",
  "importance",
  "impressiondata",
  "impressionexpiry",
  "incremental",
  "inert",
  "inputmode",
  "integrity",
  "invisible",
  "ismap",
  "keytype",
  "kind",
  "label",
  "lang",
  "language",
  "latencyhint",
  "leftmargin",
  "link",
  "list",
  "loading",
  "longdesc",
  "loop",
  "low",
  "lowsrc",
  "manifest",
  "marginheight",
  "marginwidth",
  "max",
  "maxlength",
  "mayscript",
  "media",
  "method",
  "min",
  "minlength",
  "multiple",
  "muted",
  "name",
  "nohref",
  "nomodule",
  "nonce",
  "noresize",
  "noshade",
  "novalidate",
  "nowrap",
  "object",
  "open",
  "optimum",
  "part",
  "pattern",
  "ping",
  "placeholder",
  "playsinline",
  "policy",
  "poster",
  "preload",
  "pseudo",
  "readonly",
  "referrerpolicy",
  "rel",
  "reportingorigin",
  "required",
  "resources",
  "rev",
  "reversed",
  "role",
  "rows",
  "rowspan",
  "rules",
  "sandbox",
  "scheme",
  "scope",
  "scopes",
  "scrollamount",
  "scrolldelay",
  "scrolling",
  "select",
  "selected",
  "shadowroot",
  "shadowrootdelegatesfocus",
  "shape",
  "size",
  "sizes",
  "slot",
  "span",
  "spellcheck",
  "src",
  "srclang",
  "srcset",
  "standby",
  "start",
  "step",
  "style",
  "summary",
  "tabindex",
  "target",
  "text",
  "title",
  "topmargin",
  "translate",
  "truespeed",
  "trusttoken",
  "type",
  "usemap",
  "valign",
  "value",
  "valuetype",
  "version",
  "virtualkeyboardpolicy",
  "vlink",
  "vspace",
  "webkitdirectory",
  "width",
  "wrap"
], Vh = [
  "accent-height",
  "accumulate",
  "additive",
  "alignment-baseline",
  "ascent",
  "attributename",
  "attributetype",
  "azimuth",
  "basefrequency",
  "baseline-shift",
  "begin",
  "bias",
  "by",
  "class",
  "clip",
  "clippathunits",
  "clip-path",
  "clip-rule",
  "color",
  "color-interpolation",
  "color-interpolation-filters",
  "color-profile",
  "color-rendering",
  "cx",
  "cy",
  "d",
  "dx",
  "dy",
  "diffuseconstant",
  "direction",
  "display",
  "divisor",
  "dominant-baseline",
  "dur",
  "edgemode",
  "elevation",
  "end",
  "fill",
  "fill-opacity",
  "fill-rule",
  "filter",
  "filterunits",
  "flood-color",
  "flood-opacity",
  "font-family",
  "font-size",
  "font-size-adjust",
  "font-stretch",
  "font-style",
  "font-variant",
  "font-weight",
  "fx",
  "fy",
  "g1",
  "g2",
  "glyph-name",
  "glyphref",
  "gradientunits",
  "gradienttransform",
  "height",
  "href",
  "id",
  "image-rendering",
  "in",
  "in2",
  "k",
  "k1",
  "k2",
  "k3",
  "k4",
  "kerning",
  "keypoints",
  "keysplines",
  "keytimes",
  "lang",
  "lengthadjust",
  "letter-spacing",
  "kernelmatrix",
  "kernelunitlength",
  "lighting-color",
  "local",
  "marker-end",
  "marker-mid",
  "marker-start",
  "markerheight",
  "markerunits",
  "markerwidth",
  "maskcontentunits",
  "maskunits",
  "max",
  "mask",
  "media",
  "method",
  "mode",
  "min",
  "name",
  "numoctaves",
  "offset",
  "operator",
  "opacity",
  "order",
  "orient",
  "orientation",
  "origin",
  "overflow",
  "paint-order",
  "path",
  "pathlength",
  "patterncontentunits",
  "patterntransform",
  "patternunits",
  "points",
  "preservealpha",
  "preserveaspectratio",
  "primitiveunits",
  "r",
  "rx",
  "ry",
  "radius",
  "refx",
  "refy",
  "repeatcount",
  "repeatdur",
  "restart",
  "result",
  "rotate",
  "scale",
  "seed",
  "shape-rendering",
  "specularconstant",
  "specularexponent",
  "spreadmethod",
  "startoffset",
  "stddeviation",
  "stitchtiles",
  "stop-color",
  "stop-opacity",
  "stroke-dasharray",
  "stroke-dashoffset",
  "stroke-linecap",
  "stroke-linejoin",
  "stroke-miterlimit",
  "stroke-opacity",
  "stroke",
  "stroke-width",
  "style",
  "surfacescale",
  "systemlanguage",
  "tabindex",
  "targetx",
  "targety",
  "transform",
  "transform-origin",
  "text-anchor",
  "text-decoration",
  "text-rendering",
  "textlength",
  "type",
  "u1",
  "u2",
  "unicode",
  "values",
  "viewbox",
  "visibility",
  "version",
  "vert-adv-y",
  "vert-origin-x",
  "vert-origin-y",
  "width",
  "word-spacing",
  "wrap",
  "writing-mode",
  "xchannelselector",
  "ychannelselector",
  "x",
  "x1",
  "x2",
  "xmlns",
  "y",
  "y1",
  "y2",
  "z",
  "zoomandpan"
], Wh = [
  "accent",
  "accentunder",
  "align",
  "bevelled",
  "close",
  "columnsalign",
  "columnlines",
  "columnspan",
  "denomalign",
  "depth",
  "dir",
  "display",
  "displaystyle",
  "encoding",
  "fence",
  "frame",
  "height",
  "href",
  "id",
  "largeop",
  "length",
  "linethickness",
  "lspace",
  "lquote",
  "mathbackground",
  "mathcolor",
  "mathsize",
  "mathvariant",
  "maxsize",
  "minsize",
  "movablelimits",
  "notation",
  "numalign",
  "open",
  "rowalign",
  "rowlines",
  "rowspacing",
  "rowspan",
  "rspace",
  "rquote",
  "scriptlevel",
  "scriptminsize",
  "scriptsizemultiplier",
  "selection",
  "separator",
  "separators",
  "stretchy",
  "subscriptshift",
  "supscriptshift",
  "symmetric",
  "voffset",
  "width",
  "xmlns"
], St = {
  HTML: "http://www.w3.org/1999/xhtml",
  SVG: "http://www.w3.org/2000/svg",
  MATH: "http://www.w3.org/1998/Math/MathML"
}, Xh = {
  [St.HTML]: Oh,
  [St.SVG]: Ph,
  [St.MATH]: Uh
}, Yh = {
  [St.HTML]: "html",
  [St.SVG]: "svg",
  [St.MATH]: "math"
}, jh = {
  [St.HTML]: "",
  [St.SVG]: "svg:",
  [St.MATH]: "math:"
}, Zh = /* @__PURE__ */ new Set([
  "A",
  "AREA",
  "BUTTON",
  "FORM",
  "IFRAME",
  "INPUT"
]), ku = {
  allowComments: !0,
  allowCustomElements: !1,
  allowUnknownMarkup: !1,
  allowElements: [
    ...bu,
    ...yu.map((a) => `svg:${a}`),
    ...wu.map((a) => `math:${a}`)
  ],
  allowAttributes: Nh([
    Object.fromEntries(Gh.map((a) => [a, ["*"]])),
    Object.fromEntries(Vh.map((a) => [a, ["svg:*"]])),
    Object.fromEntries(Wh.map((a) => [a, ["math:*"]]))
  ])
};
var $a = function(a, e, t, r, n) {
  if (r === "m") throw new TypeError("Private method is not writable");
  if (r === "a" && !n) throw new TypeError("Private accessor was defined without a setter");
  if (typeof e == "function" ? a !== e || !n : !e.has(a)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
  return r === "a" ? n.call(a, t) : n ? n.value = t : e.set(a, t), t;
}, w0 = function(a, e, t, r) {
  if (t === "a" && !r) throw new TypeError("Private accessor was defined without a getter");
  if (typeof e == "function" ? a !== e || !r : !e.has(a)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
  return t === "m" ? r : t === "a" ? r.call(a) : r ? r.value : e.get(a);
}, h0, ra, aa;
class xu {
  /* CONSTRUCTOR */
  constructor(e = {}) {
    h0.set(this, void 0), ra.set(this, void 0), aa.set(this, void 0), this.getConfiguration = () => zn(w0(this, h0, "f")), this.sanitize = (m) => {
      const d = w0(this, ra, "f"), g = w0(this, aa, "f");
      return Ih(m, (v, y) => {
        const x = v.namespaceURI || St.HTML, A = y.namespaceURI || St.HTML, T = Xh[x], _ = Yh[x], b = jh[x], E = v.tagName.toLowerCase(), F = `${b}${E}`, z = `${b}*`;
        if (!T.has(E) || !d.has(F) || x !== A && E !== _)
          y.removeChild(v);
        else {
          const q = v.getAttributeNames(), I = q.length;
          if (I) {
            for (let B = 0; B < I; B++) {
              const N = q[B], Q = g[N];
              (!Q || !Q.has(z) && !Q.has(F)) && v.removeAttribute(N);
            }
            if (Fh(v))
              if (zh(v)) {
                const B = v.getAttribute("href");
                B && Bh(B) && Pr(v.protocol) && v.removeAttribute("href");
              } else Th(v) ? Pr(v.action) && v.removeAttribute("action") : Mh(v) ? Pr(v.formAction) && v.removeAttribute("formaction") : Ch(v) && (Pr(v.src) && v.removeAttribute("formaction"), v.setAttribute("sandbox", "allow-scripts"));
          }
        }
      }), m;
    }, this.sanitizeFor = (m, d) => {
      throw new Error('"sanitizeFor" is not implemented yet');
    };
    const { allowComments: t, allowCustomElements: r, allowUnknownMarkup: n, blockElements: i, dropElements: l, dropAttributes: s } = e;
    if (t === !1)
      throw new Error('A false "allowComments" is not supported yet');
    if (r)
      throw new Error('A true "allowCustomElements" is not supported yet');
    if (n)
      throw new Error('A true "allowUnknownMarkup" is not supported yet');
    if (i)
      throw new Error('"blockElements" is not supported yet, use "allowElements" instead');
    if (l)
      throw new Error('"dropElements" is not supported yet, use "allowElements" instead');
    if (s)
      throw new Error('"dropAttributes" is not supported yet, use "allowAttributes" instead');
    $a(this, h0, zn(ku), "f");
    const { allowElements: o, allowAttributes: h } = e;
    o && (w0(this, h0, "f").allowElements = e.allowElements), h && (w0(this, h0, "f").allowAttributes = e.allowAttributes), $a(this, ra, new Set(w0(this, h0, "f").allowElements), "f"), $a(this, aa, Object.fromEntries(Object.entries(w0(this, h0, "f").allowAttributes || {}).map(([m, d]) => [m, new Set(d)])), "f");
  }
}
h0 = /* @__PURE__ */ new WeakMap(), ra = /* @__PURE__ */ new WeakMap(), aa = /* @__PURE__ */ new WeakMap();
xu.getDefaultConfiguration = () => zn(ku);
const Kh = (a, e) => {
  try {
    return !!a && new URL(a).origin !== new URL(e).origin;
  } catch {
    return !1;
  }
};
function Ol(a, e) {
  const t = new xu(), r = new DOMParser().parseFromString(a, "text/html");
  return _u(r.body, "A", (n) => {
    n instanceof HTMLElement && "target" in n && Kh(n.getAttribute("href"), e) && (n.setAttribute("target", "_blank"), n.setAttribute("rel", "noopener noreferrer"));
  }), t.sanitize(r).body.innerHTML;
}
function _u(a, e, t) {
  a && (a.nodeName === e || typeof e == "function") && t(a);
  const r = (a == null ? void 0 : a.childNodes) || [];
  for (let n = 0; n < r.length; n++)
    _u(r[n], e, t);
}
const {
  HtmlTagHydration: Qh,
  SvelteComponent: Jh,
  attr: $h,
  binding_callbacks: e2,
  children: t2,
  claim_element: r2,
  claim_html_tag: a2,
  detach: ql,
  element: n2,
  init: i2,
  insert_hydration: l2,
  noop: Pl,
  safe_not_equal: s2,
  toggle_class: Hr
} = window.__gradio__svelte__internal, { afterUpdate: o2 } = window.__gradio__svelte__internal;
function u2(a) {
  let e, t;
  return {
    c() {
      e = n2("span"), t = new Qh(!1), this.h();
    },
    l(r) {
      e = r2(r, "SPAN", { class: !0 });
      var n = t2(e);
      t = a2(n, !1), n.forEach(ql), this.h();
    },
    h() {
      t.a = null, $h(e, "class", "md svelte-1m32c2s"), Hr(
        e,
        "chatbot",
        /*chatbot*/
        a[0]
      ), Hr(
        e,
        "prose",
        /*render_markdown*/
        a[1]
      );
    },
    m(r, n) {
      l2(r, e, n), t.m(
        /*html*/
        a[3],
        e
      ), a[10](e);
    },
    p(r, [n]) {
      n & /*html*/
      8 && t.p(
        /*html*/
        r[3]
      ), n & /*chatbot*/
      1 && Hr(
        e,
        "chatbot",
        /*chatbot*/
        r[0]
      ), n & /*render_markdown*/
      2 && Hr(
        e,
        "prose",
        /*render_markdown*/
        r[1]
      );
    },
    i: Pl,
    o: Pl,
    d(r) {
      r && ql(e), a[10](null);
    }
  };
}
function Hl(a) {
  return a.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
}
function c2(a, e, t) {
  let { chatbot: r = !0 } = e, { message: n } = e, { sanitize_html: i = !0 } = e, { latex_delimiters: l = [] } = e, { render_markdown: s = !0 } = e, { line_breaks: o = !0 } = e, { header_links: h = !1 } = e, { root: m } = e, d, g;
  const v = Sh({
    header_links: h,
    line_breaks: o,
    latex_delimiters: l
  });
  function y(T) {
    let _ = T;
    if (s) {
      const b = [];
      l.forEach((E, F) => {
        const M = Hl(E.left), z = Hl(E.right), q = new RegExp(`${M}([\\s\\S]+?)${z}`, "g");
        _ = _.replace(q, (I, B) => (b.push(I), `%%%LATEX_BLOCK_${b.length - 1}%%%`));
      }), _ = v.parse(_), _ = _.replace(/%%%LATEX_BLOCK_(\d+)%%%/g, (E, F) => b[parseInt(F, 10)]);
    }
    return i && Ol && (_ = Ol(_, m)), _;
  }
  async function x(T) {
    l.length > 0 && T && l.some((b) => T.includes(b.left) && T.includes(b.right)) && E4(d, {
      delimiters: l,
      throwOnError: !1
    });
  }
  o2(async () => {
    d && document.body.contains(d) ? await x(n) : console.error("Element is not in the DOM");
  });
  function A(T) {
    e2[T ? "unshift" : "push"](() => {
      d = T, t(2, d);
    });
  }
  return a.$$set = (T) => {
    "chatbot" in T && t(0, r = T.chatbot), "message" in T && t(4, n = T.message), "sanitize_html" in T && t(5, i = T.sanitize_html), "latex_delimiters" in T && t(6, l = T.latex_delimiters), "render_markdown" in T && t(1, s = T.render_markdown), "line_breaks" in T && t(7, o = T.line_breaks), "header_links" in T && t(8, h = T.header_links), "root" in T && t(9, m = T.root);
  }, a.$$.update = () => {
    a.$$.dirty & /*message*/
    16 && (n && n.trim() ? t(3, g = y(n)) : t(3, g = ""));
  }, [
    r,
    s,
    d,
    g,
    n,
    i,
    l,
    o,
    h,
    m,
    A
  ];
}
class Du extends Jh {
  constructor(e) {
    super(), i2(this, e, c2, u2, s2, {
      chatbot: 0,
      message: 4,
      sanitize_html: 5,
      latex_delimiters: 6,
      render_markdown: 1,
      line_breaks: 7,
      header_links: 8,
      root: 9
    });
  }
}
const {
  SvelteComponent: h2,
  attr: m2,
  children: f2,
  claim_component: d2,
  claim_element: p2,
  create_component: g2,
  destroy_component: v2,
  detach: Ul,
  element: b2,
  init: y2,
  insert_hydration: w2,
  mount_component: k2,
  safe_not_equal: x2,
  transition_in: _2,
  transition_out: D2
} = window.__gradio__svelte__internal;
function A2(a) {
  let e, t, r;
  return t = new Du({
    props: {
      root: (
        /*root*/
        a[1]
      ),
      message: (
        /*info*/
        a[0]
      ),
      sanitize_html: !0
    }
  }), {
    c() {
      e = b2("div"), g2(t.$$.fragment), this.h();
    },
    l(n) {
      e = p2(n, "DIV", { class: !0 });
      var i = f2(e);
      d2(t.$$.fragment, i), i.forEach(Ul), this.h();
    },
    h() {
      m2(e, "class", "svelte-17qq50w");
    },
    m(n, i) {
      w2(n, e, i), k2(t, e, null), r = !0;
    },
    p(n, [i]) {
      const l = {};
      i & /*root*/
      2 && (l.root = /*root*/
      n[1]), i & /*info*/
      1 && (l.message = /*info*/
      n[0]), t.$set(l);
    },
    i(n) {
      r || (_2(t.$$.fragment, n), r = !0);
    },
    o(n) {
      D2(t.$$.fragment, n), r = !1;
    },
    d(n) {
      n && Ul(e), v2(t);
    }
  };
}
function S2(a, e, t) {
  let { info: r } = e, { root: n } = e;
  return a.$$set = (i) => {
    "info" in i && t(0, r = i.info), "root" in i && t(1, n = i.root);
  }, [r, n];
}
class E2 extends h2 {
  constructor(e) {
    super(), y2(this, e, S2, A2, x2, { info: 0, root: 1 });
  }
}
const {
  SvelteComponent: F2,
  attr: Gl,
  check_outros: T2,
  children: C2,
  claim_component: M2,
  claim_element: z2,
  claim_space: B2,
  create_component: N2,
  create_slot: R2,
  destroy_component: I2,
  detach: Ur,
  element: L2,
  empty: Vl,
  get_all_dirty_from_scope: O2,
  get_slot_changes: q2,
  group_outros: P2,
  init: H2,
  insert_hydration: en,
  mount_component: U2,
  safe_not_equal: G2,
  space: V2,
  toggle_class: I0,
  transition_in: ir,
  transition_out: na,
  update_slot_base: W2
} = window.__gradio__svelte__internal;
function Wl(a) {
  let e, t;
  return e = new E2({
    props: {
      root: (
        /*root*/
        a[2]
      ),
      info: (
        /*info*/
        a[1]
      )
    }
  }), {
    c() {
      N2(e.$$.fragment);
    },
    l(r) {
      M2(e.$$.fragment, r);
    },
    m(r, n) {
      U2(e, r, n), t = !0;
    },
    p(r, n) {
      const i = {};
      n & /*root*/
      4 && (i.root = /*root*/
      r[2]), n & /*info*/
      2 && (i.info = /*info*/
      r[1]), e.$set(i);
    },
    i(r) {
      t || (ir(e.$$.fragment, r), t = !0);
    },
    o(r) {
      na(e.$$.fragment, r), t = !1;
    },
    d(r) {
      I2(e, r);
    }
  };
}
function X2(a) {
  let e, t, r, n;
  const i = (
    /*#slots*/
    a[4].default
  ), l = R2(
    i,
    a,
    /*$$scope*/
    a[3],
    null
  );
  let s = (
    /*info*/
    a[1] && Wl(a)
  );
  return {
    c() {
      e = L2("span"), l && l.c(), t = V2(), s && s.c(), r = Vl(), this.h();
    },
    l(o) {
      e = z2(o, "SPAN", { "data-testid": !0, class: !0 });
      var h = C2(e);
      l && l.l(h), h.forEach(Ur), t = B2(o), s && s.l(o), r = Vl(), this.h();
    },
    h() {
      Gl(e, "data-testid", "block-info"), Gl(e, "class", "svelte-22c38v"), I0(e, "sr-only", !/*show_label*/
      a[0]), I0(e, "hide", !/*show_label*/
      a[0]), I0(
        e,
        "has-info",
        /*info*/
        a[1] != null
      );
    },
    m(o, h) {
      en(o, e, h), l && l.m(e, null), en(o, t, h), s && s.m(o, h), en(o, r, h), n = !0;
    },
    p(o, [h]) {
      l && l.p && (!n || h & /*$$scope*/
      8) && W2(
        l,
        i,
        o,
        /*$$scope*/
        o[3],
        n ? q2(
          i,
          /*$$scope*/
          o[3],
          h,
          null
        ) : O2(
          /*$$scope*/
          o[3]
        ),
        null
      ), (!n || h & /*show_label*/
      1) && I0(e, "sr-only", !/*show_label*/
      o[0]), (!n || h & /*show_label*/
      1) && I0(e, "hide", !/*show_label*/
      o[0]), (!n || h & /*info*/
      2) && I0(
        e,
        "has-info",
        /*info*/
        o[1] != null
      ), /*info*/
      o[1] ? s ? (s.p(o, h), h & /*info*/
      2 && ir(s, 1)) : (s = Wl(o), s.c(), ir(s, 1), s.m(r.parentNode, r)) : s && (P2(), na(s, 1, 1, () => {
        s = null;
      }), T2());
    },
    i(o) {
      n || (ir(l, o), ir(s), n = !0);
    },
    o(o) {
      na(l, o), na(s), n = !1;
    },
    d(o) {
      o && (Ur(e), Ur(t), Ur(r)), l && l.d(o), s && s.d(o);
    }
  };
}
function Y2(a, e, t) {
  let { $$slots: r = {}, $$scope: n } = e, { show_label: i = !0 } = e, { info: l = void 0 } = e, { root: s } = e;
  return a.$$set = (o) => {
    "show_label" in o && t(0, i = o.show_label), "info" in o && t(1, l = o.info), "root" in o && t(2, s = o.root), "$$scope" in o && t(3, n = o.$$scope);
  }, [i, l, s, n, r];
}
class j2 extends F2 {
  constructor(e) {
    super(), H2(this, e, Y2, X2, G2, { show_label: 0, info: 1, root: 2 });
  }
}
const {
  SvelteComponent: Z2,
  append_hydration: ia,
  attr: $t,
  bubble: K2,
  check_outros: Q2,
  children: Bn,
  claim_component: J2,
  claim_element: Nn,
  claim_space: Xl,
  claim_text: $2,
  construct_svelte_component: Yl,
  create_component: jl,
  create_slot: em,
  destroy_component: Zl,
  detach: cr,
  element: Rn,
  get_all_dirty_from_scope: tm,
  get_slot_changes: rm,
  group_outros: am,
  init: nm,
  insert_hydration: Au,
  listen: im,
  mount_component: Kl,
  safe_not_equal: lm,
  set_data: sm,
  set_style: Gr,
  space: Ql,
  text: om,
  toggle_class: Ve,
  transition_in: tn,
  transition_out: rn,
  update_slot_base: um
} = window.__gradio__svelte__internal;
function Jl(a) {
  let e, t;
  return {
    c() {
      e = Rn("span"), t = om(
        /*label*/
        a[1]
      ), this.h();
    },
    l(r) {
      e = Nn(r, "SPAN", { class: !0 });
      var n = Bn(e);
      t = $2(
        n,
        /*label*/
        a[1]
      ), n.forEach(cr), this.h();
    },
    h() {
      $t(e, "class", "svelte-vk34kx");
    },
    m(r, n) {
      Au(r, e, n), ia(e, t);
    },
    p(r, n) {
      n & /*label*/
      2 && sm(
        t,
        /*label*/
        r[1]
      );
    },
    d(r) {
      r && cr(e);
    }
  };
}
function cm(a) {
  let e, t, r, n, i, l, s, o, h = (
    /*show_label*/
    a[2] && Jl(a)
  );
  var m = (
    /*Icon*/
    a[0]
  );
  function d(y, x) {
    return {};
  }
  m && (n = Yl(m, d()));
  const g = (
    /*#slots*/
    a[14].default
  ), v = em(
    g,
    a,
    /*$$scope*/
    a[13],
    null
  );
  return {
    c() {
      e = Rn("button"), h && h.c(), t = Ql(), r = Rn("div"), n && jl(n.$$.fragment), i = Ql(), v && v.c(), this.h();
    },
    l(y) {
      e = Nn(y, "BUTTON", {
        "aria-label": !0,
        "aria-haspopup": !0,
        title: !0,
        class: !0
      });
      var x = Bn(e);
      h && h.l(x), t = Xl(x), r = Nn(x, "DIV", { class: !0 });
      var A = Bn(r);
      n && J2(n.$$.fragment, A), i = Xl(A), v && v.l(A), A.forEach(cr), x.forEach(cr), this.h();
    },
    h() {
      $t(r, "class", "svelte-vk34kx"), Ve(
        r,
        "small",
        /*size*/
        a[4] === "small"
      ), Ve(
        r,
        "large",
        /*size*/
        a[4] === "large"
      ), Ve(
        r,
        "medium",
        /*size*/
        a[4] === "medium"
      ), e.disabled = /*disabled*/
      a[7], $t(
        e,
        "aria-label",
        /*label*/
        a[1]
      ), $t(
        e,
        "aria-haspopup",
        /*hasPopup*/
        a[8]
      ), $t(
        e,
        "title",
        /*label*/
        a[1]
      ), $t(e, "class", "svelte-vk34kx"), Ve(
        e,
        "pending",
        /*pending*/
        a[3]
      ), Ve(
        e,
        "padded",
        /*padded*/
        a[5]
      ), Ve(
        e,
        "highlight",
        /*highlight*/
        a[6]
      ), Ve(
        e,
        "transparent",
        /*transparent*/
        a[9]
      ), Gr(e, "color", !/*disabled*/
      a[7] && /*_color*/
      a[11] ? (
        /*_color*/
        a[11]
      ) : "var(--block-label-text-color)"), Gr(e, "--bg-color", /*disabled*/
      a[7] ? "auto" : (
        /*background*/
        a[10]
      ));
    },
    m(y, x) {
      Au(y, e, x), h && h.m(e, null), ia(e, t), ia(e, r), n && Kl(n, r, null), ia(r, i), v && v.m(r, null), l = !0, s || (o = im(
        e,
        "click",
        /*click_handler*/
        a[15]
      ), s = !0);
    },
    p(y, [x]) {
      if (/*show_label*/
      y[2] ? h ? h.p(y, x) : (h = Jl(y), h.c(), h.m(e, t)) : h && (h.d(1), h = null), x & /*Icon*/
      1 && m !== (m = /*Icon*/
      y[0])) {
        if (n) {
          am();
          const A = n;
          rn(A.$$.fragment, 1, 0, () => {
            Zl(A, 1);
          }), Q2();
        }
        m ? (n = Yl(m, d()), jl(n.$$.fragment), tn(n.$$.fragment, 1), Kl(n, r, i)) : n = null;
      }
      v && v.p && (!l || x & /*$$scope*/
      8192) && um(
        v,
        g,
        y,
        /*$$scope*/
        y[13],
        l ? rm(
          g,
          /*$$scope*/
          y[13],
          x,
          null
        ) : tm(
          /*$$scope*/
          y[13]
        ),
        null
      ), (!l || x & /*size*/
      16) && Ve(
        r,
        "small",
        /*size*/
        y[4] === "small"
      ), (!l || x & /*size*/
      16) && Ve(
        r,
        "large",
        /*size*/
        y[4] === "large"
      ), (!l || x & /*size*/
      16) && Ve(
        r,
        "medium",
        /*size*/
        y[4] === "medium"
      ), (!l || x & /*disabled*/
      128) && (e.disabled = /*disabled*/
      y[7]), (!l || x & /*label*/
      2) && $t(
        e,
        "aria-label",
        /*label*/
        y[1]
      ), (!l || x & /*hasPopup*/
      256) && $t(
        e,
        "aria-haspopup",
        /*hasPopup*/
        y[8]
      ), (!l || x & /*label*/
      2) && $t(
        e,
        "title",
        /*label*/
        y[1]
      ), (!l || x & /*pending*/
      8) && Ve(
        e,
        "pending",
        /*pending*/
        y[3]
      ), (!l || x & /*padded*/
      32) && Ve(
        e,
        "padded",
        /*padded*/
        y[5]
      ), (!l || x & /*highlight*/
      64) && Ve(
        e,
        "highlight",
        /*highlight*/
        y[6]
      ), (!l || x & /*transparent*/
      512) && Ve(
        e,
        "transparent",
        /*transparent*/
        y[9]
      ), x & /*disabled, _color*/
      2176 && Gr(e, "color", !/*disabled*/
      y[7] && /*_color*/
      y[11] ? (
        /*_color*/
        y[11]
      ) : "var(--block-label-text-color)"), x & /*disabled, background*/
      1152 && Gr(e, "--bg-color", /*disabled*/
      y[7] ? "auto" : (
        /*background*/
        y[10]
      ));
    },
    i(y) {
      l || (n && tn(n.$$.fragment, y), tn(v, y), l = !0);
    },
    o(y) {
      n && rn(n.$$.fragment, y), rn(v, y), l = !1;
    },
    d(y) {
      y && cr(e), h && h.d(), n && Zl(n), v && v.d(y), s = !1, o();
    }
  };
}
function hm(a, e, t) {
  let r, { $$slots: n = {}, $$scope: i } = e, { Icon: l } = e, { label: s = "" } = e, { show_label: o = !1 } = e, { pending: h = !1 } = e, { size: m = "small" } = e, { padded: d = !0 } = e, { highlight: g = !1 } = e, { disabled: v = !1 } = e, { hasPopup: y = !1 } = e, { color: x = "var(--block-label-text-color)" } = e, { transparent: A = !1 } = e, { background: T = "var(--block-background-fill)" } = e;
  function _(b) {
    K2.call(this, a, b);
  }
  return a.$$set = (b) => {
    "Icon" in b && t(0, l = b.Icon), "label" in b && t(1, s = b.label), "show_label" in b && t(2, o = b.show_label), "pending" in b && t(3, h = b.pending), "size" in b && t(4, m = b.size), "padded" in b && t(5, d = b.padded), "highlight" in b && t(6, g = b.highlight), "disabled" in b && t(7, v = b.disabled), "hasPopup" in b && t(8, y = b.hasPopup), "color" in b && t(12, x = b.color), "transparent" in b && t(9, A = b.transparent), "background" in b && t(10, T = b.background), "$$scope" in b && t(13, i = b.$$scope);
  }, a.$$.update = () => {
    a.$$.dirty & /*highlight, color*/
    4160 && t(11, r = g ? "var(--color-accent)" : x);
  }, [
    l,
    s,
    o,
    h,
    m,
    d,
    g,
    v,
    y,
    A,
    T,
    r,
    x,
    i,
    n,
    _
  ];
}
let mm = class extends Z2 {
  constructor(e) {
    super(), nm(this, e, hm, cm, lm, {
      Icon: 0,
      label: 1,
      show_label: 2,
      pending: 3,
      size: 4,
      padded: 5,
      highlight: 6,
      disabled: 7,
      hasPopup: 8,
      color: 12,
      transparent: 9,
      background: 10
    });
  }
};
const {
  SvelteComponent: fm,
  append_hydration: dm,
  attr: vt,
  children: $l,
  claim_svg_element: es,
  detach: an,
  init: pm,
  insert_hydration: gm,
  noop: nn,
  safe_not_equal: vm,
  svg_element: ts
} = window.__gradio__svelte__internal;
function bm(a) {
  let e, t;
  return {
    c() {
      e = ts("svg"), t = ts("polyline"), this.h();
    },
    l(r) {
      e = es(r, "svg", {
        xmlns: !0,
        viewBox: !0,
        width: !0,
        height: !0,
        fill: !0,
        stroke: !0,
        "aria-hidden": !0,
        "stroke-width": !0,
        "stroke-linecap": !0,
        "stroke-linejoin": !0
      });
      var n = $l(e);
      t = es(n, "polyline", { points: !0 }), $l(t).forEach(an), n.forEach(an), this.h();
    },
    h() {
      vt(t, "points", "20 6 9 17 4 12"), vt(e, "xmlns", "http://www.w3.org/2000/svg"), vt(e, "viewBox", "2 0 20 20"), vt(e, "width", "100%"), vt(e, "height", "100%"), vt(e, "fill", "none"), vt(e, "stroke", "currentColor"), vt(e, "aria-hidden", "true"), vt(e, "stroke-width", "1.5"), vt(e, "stroke-linecap", "round"), vt(e, "stroke-linejoin", "round");
    },
    m(r, n) {
      gm(r, e, n), dm(e, t);
    },
    p: nn,
    i: nn,
    o: nn,
    d(r) {
      r && an(e);
    }
  };
}
class rs extends fm {
  constructor(e) {
    super(), pm(this, e, null, bm, vm, {});
  }
}
const {
  SvelteComponent: ym,
  append_hydration: ln,
  attr: bt,
  children: Vr,
  claim_svg_element: Wr,
  detach: J0,
  init: wm,
  insert_hydration: km,
  noop: sn,
  safe_not_equal: xm,
  set_style: Mt,
  svg_element: Xr
} = window.__gradio__svelte__internal;
function _m(a) {
  let e, t, r, n;
  return {
    c() {
      e = Xr("svg"), t = Xr("g"), r = Xr("path"), n = Xr("path"), this.h();
    },
    l(i) {
      e = Wr(i, "svg", {
        width: !0,
        height: !0,
        viewBox: !0,
        version: !0,
        xmlns: !0,
        "xmlns:xlink": !0,
        "xml:space": !0,
        stroke: !0,
        style: !0
      });
      var l = Vr(e);
      t = Wr(l, "g", { transform: !0 });
      var s = Vr(t);
      r = Wr(s, "path", { d: !0, style: !0 }), Vr(r).forEach(J0), s.forEach(J0), n = Wr(l, "path", { d: !0, style: !0 }), Vr(n).forEach(J0), l.forEach(J0), this.h();
    },
    h() {
      bt(r, "d", "M18,6L6.087,17.913"), Mt(r, "fill", "none"), Mt(r, "fill-rule", "nonzero"), Mt(r, "stroke-width", "2px"), bt(t, "transform", "matrix(1.14096,-0.140958,-0.140958,1.14096,-0.0559523,0.0559523)"), bt(n, "d", "M4.364,4.364L19.636,19.636"), Mt(n, "fill", "none"), Mt(n, "fill-rule", "nonzero"), Mt(n, "stroke-width", "2px"), bt(e, "width", "100%"), bt(e, "height", "100%"), bt(e, "viewBox", "0 0 24 24"), bt(e, "version", "1.1"), bt(e, "xmlns", "http://www.w3.org/2000/svg"), bt(e, "xmlns:xlink", "http://www.w3.org/1999/xlink"), bt(e, "xml:space", "preserve"), bt(e, "stroke", "currentColor"), Mt(e, "fill-rule", "evenodd"), Mt(e, "clip-rule", "evenodd"), Mt(e, "stroke-linecap", "round"), Mt(e, "stroke-linejoin", "round");
    },
    m(i, l) {
      km(i, e, l), ln(e, t), ln(t, r), ln(e, n);
    },
    p: sn,
    i: sn,
    o: sn,
    d(i) {
      i && J0(e);
    }
  };
}
class Dm extends ym {
  constructor(e) {
    super(), wm(this, e, null, _m, xm, {});
  }
}
const {
  SvelteComponent: Am,
  append_hydration: as,
  attr: zt,
  children: on,
  claim_svg_element: un,
  detach: Yr,
  init: Sm,
  insert_hydration: Em,
  noop: cn,
  safe_not_equal: Fm,
  svg_element: hn
} = window.__gradio__svelte__internal;
function Tm(a) {
  let e, t, r;
  return {
    c() {
      e = hn("svg"), t = hn("path"), r = hn("path"), this.h();
    },
    l(n) {
      e = un(n, "svg", {
        xmlns: !0,
        viewBox: !0,
        color: !0,
        "aria-hidden": !0,
        width: !0,
        height: !0
      });
      var i = on(e);
      t = un(i, "path", { fill: !0, d: !0 }), on(t).forEach(Yr), r = un(i, "path", { fill: !0, d: !0 }), on(r).forEach(Yr), i.forEach(Yr), this.h();
    },
    h() {
      zt(t, "fill", "currentColor"), zt(t, "d", "M28 10v18H10V10h18m0-2H10a2 2 0 0 0-2 2v18a2 2 0 0 0 2 2h18a2 2 0 0 0 2-2V10a2 2 0 0 0-2-2Z"), zt(r, "fill", "currentColor"), zt(r, "d", "M4 18H2V4a2 2 0 0 1 2-2h14v2H4Z"), zt(e, "xmlns", "http://www.w3.org/2000/svg"), zt(e, "viewBox", "0 0 33 33"), zt(e, "color", "currentColor"), zt(e, "aria-hidden", "true"), zt(e, "width", "100%"), zt(e, "height", "100%");
    },
    m(n, i) {
      Em(n, e, i), as(e, t), as(e, r);
    },
    p: cn,
    i: cn,
    o: cn,
    d(n) {
      n && Yr(e);
    }
  };
}
class ns extends Am {
  constructor(e) {
    super(), Sm(this, e, null, Tm, Fm, {});
  }
}
const Cm = [
  { color: "red", primary: 600, secondary: 100 },
  { color: "green", primary: 600, secondary: 100 },
  { color: "blue", primary: 600, secondary: 100 },
  { color: "yellow", primary: 500, secondary: 100 },
  { color: "purple", primary: 600, secondary: 100 },
  { color: "teal", primary: 600, secondary: 100 },
  { color: "orange", primary: 600, secondary: 100 },
  { color: "cyan", primary: 600, secondary: 100 },
  { color: "lime", primary: 500, secondary: 100 },
  { color: "pink", primary: 600, secondary: 100 }
], is = {
  inherit: "inherit",
  current: "currentColor",
  transparent: "transparent",
  black: "#000",
  white: "#fff",
  slate: {
    50: "#f8fafc",
    100: "#f1f5f9",
    200: "#e2e8f0",
    300: "#cbd5e1",
    400: "#94a3b8",
    500: "#64748b",
    600: "#475569",
    700: "#334155",
    800: "#1e293b",
    900: "#0f172a",
    950: "#020617"
  },
  gray: {
    50: "#f9fafb",
    100: "#f3f4f6",
    200: "#e5e7eb",
    300: "#d1d5db",
    400: "#9ca3af",
    500: "#6b7280",
    600: "#4b5563",
    700: "#374151",
    800: "#1f2937",
    900: "#111827",
    950: "#030712"
  },
  zinc: {
    50: "#fafafa",
    100: "#f4f4f5",
    200: "#e4e4e7",
    300: "#d4d4d8",
    400: "#a1a1aa",
    500: "#71717a",
    600: "#52525b",
    700: "#3f3f46",
    800: "#27272a",
    900: "#18181b",
    950: "#09090b"
  },
  neutral: {
    50: "#fafafa",
    100: "#f5f5f5",
    200: "#e5e5e5",
    300: "#d4d4d4",
    400: "#a3a3a3",
    500: "#737373",
    600: "#525252",
    700: "#404040",
    800: "#262626",
    900: "#171717",
    950: "#0a0a0a"
  },
  stone: {
    50: "#fafaf9",
    100: "#f5f5f4",
    200: "#e7e5e4",
    300: "#d6d3d1",
    400: "#a8a29e",
    500: "#78716c",
    600: "#57534e",
    700: "#44403c",
    800: "#292524",
    900: "#1c1917",
    950: "#0c0a09"
  },
  red: {
    50: "#fef2f2",
    100: "#fee2e2",
    200: "#fecaca",
    300: "#fca5a5",
    400: "#f87171",
    500: "#ef4444",
    600: "#dc2626",
    700: "#b91c1c",
    800: "#991b1b",
    900: "#7f1d1d",
    950: "#450a0a"
  },
  orange: {
    50: "#fff7ed",
    100: "#ffedd5",
    200: "#fed7aa",
    300: "#fdba74",
    400: "#fb923c",
    500: "#f97316",
    600: "#ea580c",
    700: "#c2410c",
    800: "#9a3412",
    900: "#7c2d12",
    950: "#431407"
  },
  amber: {
    50: "#fffbeb",
    100: "#fef3c7",
    200: "#fde68a",
    300: "#fcd34d",
    400: "#fbbf24",
    500: "#f59e0b",
    600: "#d97706",
    700: "#b45309",
    800: "#92400e",
    900: "#78350f",
    950: "#451a03"
  },
  yellow: {
    50: "#fefce8",
    100: "#fef9c3",
    200: "#fef08a",
    300: "#fde047",
    400: "#facc15",
    500: "#eab308",
    600: "#ca8a04",
    700: "#a16207",
    800: "#854d0e",
    900: "#713f12",
    950: "#422006"
  },
  lime: {
    50: "#f7fee7",
    100: "#ecfccb",
    200: "#d9f99d",
    300: "#bef264",
    400: "#a3e635",
    500: "#84cc16",
    600: "#65a30d",
    700: "#4d7c0f",
    800: "#3f6212",
    900: "#365314",
    950: "#1a2e05"
  },
  green: {
    50: "#f0fdf4",
    100: "#dcfce7",
    200: "#bbf7d0",
    300: "#86efac",
    400: "#4ade80",
    500: "#22c55e",
    600: "#16a34a",
    700: "#15803d",
    800: "#166534",
    900: "#14532d",
    950: "#052e16"
  },
  emerald: {
    50: "#ecfdf5",
    100: "#d1fae5",
    200: "#a7f3d0",
    300: "#6ee7b7",
    400: "#34d399",
    500: "#10b981",
    600: "#059669",
    700: "#047857",
    800: "#065f46",
    900: "#064e3b",
    950: "#022c22"
  },
  teal: {
    50: "#f0fdfa",
    100: "#ccfbf1",
    200: "#99f6e4",
    300: "#5eead4",
    400: "#2dd4bf",
    500: "#14b8a6",
    600: "#0d9488",
    700: "#0f766e",
    800: "#115e59",
    900: "#134e4a",
    950: "#042f2e"
  },
  cyan: {
    50: "#ecfeff",
    100: "#cffafe",
    200: "#a5f3fc",
    300: "#67e8f9",
    400: "#22d3ee",
    500: "#06b6d4",
    600: "#0891b2",
    700: "#0e7490",
    800: "#155e75",
    900: "#164e63",
    950: "#083344"
  },
  sky: {
    50: "#f0f9ff",
    100: "#e0f2fe",
    200: "#bae6fd",
    300: "#7dd3fc",
    400: "#38bdf8",
    500: "#0ea5e9",
    600: "#0284c7",
    700: "#0369a1",
    800: "#075985",
    900: "#0c4a6e",
    950: "#082f49"
  },
  blue: {
    50: "#eff6ff",
    100: "#dbeafe",
    200: "#bfdbfe",
    300: "#93c5fd",
    400: "#60a5fa",
    500: "#3b82f6",
    600: "#2563eb",
    700: "#1d4ed8",
    800: "#1e40af",
    900: "#1e3a8a",
    950: "#172554"
  },
  indigo: {
    50: "#eef2ff",
    100: "#e0e7ff",
    200: "#c7d2fe",
    300: "#a5b4fc",
    400: "#818cf8",
    500: "#6366f1",
    600: "#4f46e5",
    700: "#4338ca",
    800: "#3730a3",
    900: "#312e81",
    950: "#1e1b4b"
  },
  violet: {
    50: "#f5f3ff",
    100: "#ede9fe",
    200: "#ddd6fe",
    300: "#c4b5fd",
    400: "#a78bfa",
    500: "#8b5cf6",
    600: "#7c3aed",
    700: "#6d28d9",
    800: "#5b21b6",
    900: "#4c1d95",
    950: "#2e1065"
  },
  purple: {
    50: "#faf5ff",
    100: "#f3e8ff",
    200: "#e9d5ff",
    300: "#d8b4fe",
    400: "#c084fc",
    500: "#a855f7",
    600: "#9333ea",
    700: "#7e22ce",
    800: "#6b21a8",
    900: "#581c87",
    950: "#3b0764"
  },
  fuchsia: {
    50: "#fdf4ff",
    100: "#fae8ff",
    200: "#f5d0fe",
    300: "#f0abfc",
    400: "#e879f9",
    500: "#d946ef",
    600: "#c026d3",
    700: "#a21caf",
    800: "#86198f",
    900: "#701a75",
    950: "#4a044e"
  },
  pink: {
    50: "#fdf2f8",
    100: "#fce7f3",
    200: "#fbcfe8",
    300: "#f9a8d4",
    400: "#f472b6",
    500: "#ec4899",
    600: "#db2777",
    700: "#be185d",
    800: "#9d174d",
    900: "#831843",
    950: "#500724"
  },
  rose: {
    50: "#fff1f2",
    100: "#ffe4e6",
    200: "#fecdd3",
    300: "#fda4af",
    400: "#fb7185",
    500: "#f43f5e",
    600: "#e11d48",
    700: "#be123c",
    800: "#9f1239",
    900: "#881337",
    950: "#4c0519"
  }
};
Cm.reduce(
  (a, { color: e, primary: t, secondary: r }) => ({
    ...a,
    [e]: {
      primary: is[e][t],
      secondary: is[e][r]
    }
  }),
  {}
);
function Mm(a) {
  a.addEventListener("click", e);
  async function e(t) {
    const r = t.composedPath(), [n] = r.filter(
      (i) => (i == null ? void 0 : i.tagName) === "BUTTON" && i.classList.contains("copy_code_button")
    );
    if (n) {
      let i = function(h) {
        h.style.opacity = "1", setTimeout(() => {
          h.style.opacity = "0";
        }, 2e3);
      };
      t.stopImmediatePropagation();
      const l = n.parentElement.innerText.trim(), s = Array.from(
        n.children
      )[1];
      await zm(l) && i(s);
    }
  }
  return {
    destroy() {
      a.removeEventListener("click", e);
    }
  };
}
async function zm(a) {
  let e = !1;
  if ("clipboard" in navigator)
    await navigator.clipboard.writeText(a), e = !0;
  else {
    const t = document.createElement("textarea");
    t.value = a, t.style.position = "absolute", t.style.left = "-999999px", document.body.prepend(t), t.select();
    try {
      document.execCommand("copy"), e = !0;
    } catch (r) {
      console.error(r), e = !1;
    } finally {
      t.remove();
    }
  }
  return e;
}
const jr = (a) => typeof a == "number" ? a + "px" : a;
function P0(a) {
  let e = ["", "k", "M", "G", "T", "P", "E", "Z"], t = 0;
  for (; a > 1e3 && t < e.length - 1; )
    a /= 1e3, t++;
  let r = e[t];
  return (Number.isInteger(a) ? a : a.toFixed(1)) + r;
}
function la() {
}
function Bm(a, e) {
  return a != a ? e == e : a !== e || a && typeof a == "object" || typeof a == "function";
}
const Su = typeof window < "u";
let ls = Su ? () => window.performance.now() : () => Date.now(), Eu = Su ? (a) => requestAnimationFrame(a) : la;
const V0 = /* @__PURE__ */ new Set();
function Fu(a) {
  V0.forEach((e) => {
    e.c(a) || (V0.delete(e), e.f());
  }), V0.size !== 0 && Eu(Fu);
}
function Nm(a) {
  let e;
  return V0.size === 0 && Eu(Fu), {
    promise: new Promise((t) => {
      V0.add(e = { c: a, f: t });
    }),
    abort() {
      V0.delete(e);
    }
  };
}
const L0 = [];
function Rm(a, e = la) {
  let t;
  const r = /* @__PURE__ */ new Set();
  function n(s) {
    if (Bm(a, s) && (a = s, t)) {
      const o = !L0.length;
      for (const h of r)
        h[1](), L0.push(h, a);
      if (o) {
        for (let h = 0; h < L0.length; h += 2)
          L0[h][0](L0[h + 1]);
        L0.length = 0;
      }
    }
  }
  function i(s) {
    n(s(a));
  }
  function l(s, o = la) {
    const h = [s, o];
    return r.add(h), r.size === 1 && (t = e(n, i) || la), s(a), () => {
      r.delete(h), r.size === 0 && t && (t(), t = null);
    };
  }
  return { set: n, update: i, subscribe: l };
}
function ss(a) {
  return Object.prototype.toString.call(a) === "[object Date]";
}
function In(a, e, t, r) {
  if (typeof t == "number" || ss(t)) {
    const n = r - t, i = (t - e) / (a.dt || 1 / 60), l = a.opts.stiffness * n, s = a.opts.damping * i, o = (l - s) * a.inv_mass, h = (i + o) * a.dt;
    return Math.abs(h) < a.opts.precision && Math.abs(n) < a.opts.precision ? r : (a.settled = !1, ss(t) ? new Date(t.getTime() + h) : t + h);
  } else {
    if (Array.isArray(t))
      return t.map(
        (n, i) => In(a, e[i], t[i], r[i])
      );
    if (typeof t == "object") {
      const n = {};
      for (const i in t)
        n[i] = In(a, e[i], t[i], r[i]);
      return n;
    } else
      throw new Error(`Cannot spring ${typeof t} values`);
  }
}
function os(a, e = {}) {
  const t = Rm(a), { stiffness: r = 0.15, damping: n = 0.8, precision: i = 0.01 } = e;
  let l, s, o, h = a, m = a, d = 1, g = 0, v = !1;
  function y(A, T = {}) {
    m = A;
    const _ = o = {};
    return a == null || T.hard || x.stiffness >= 1 && x.damping >= 1 ? (v = !0, l = ls(), h = A, t.set(a = m), Promise.resolve()) : (T.soft && (g = 1 / ((T.soft === !0 ? 0.5 : +T.soft) * 60), d = 0), s || (l = ls(), v = !1, s = Nm((b) => {
      if (v)
        return v = !1, s = null, !1;
      d = Math.min(d + g, 1);
      const E = {
        inv_mass: d,
        opts: x,
        settled: !0,
        dt: (b - l) * 60 / 1e3
      }, F = In(E, h, a, m);
      return l = b, h = a, t.set(a = F), E.settled && (s = null), !E.settled;
    })), new Promise((b) => {
      s.promise.then(() => {
        _ === o && b();
      });
    }));
  }
  const x = {
    set: y,
    update: (A, T) => y(A(m, a), T),
    subscribe: t.subscribe,
    stiffness: r,
    damping: n,
    precision: i
  };
  return x;
}
const {
  SvelteComponent: Im,
  append_hydration: yt,
  attr: ae,
  children: at,
  claim_element: Lm,
  claim_svg_element: wt,
  component_subscribe: us,
  detach: Ke,
  element: Om,
  init: qm,
  insert_hydration: Pm,
  noop: cs,
  safe_not_equal: Hm,
  set_style: Zr,
  svg_element: kt,
  toggle_class: hs
} = window.__gradio__svelte__internal, { onMount: Um } = window.__gradio__svelte__internal;
function Gm(a) {
  let e, t, r, n, i, l, s, o, h, m, d, g;
  return {
    c() {
      e = Om("div"), t = kt("svg"), r = kt("g"), n = kt("path"), i = kt("path"), l = kt("path"), s = kt("path"), o = kt("g"), h = kt("path"), m = kt("path"), d = kt("path"), g = kt("path"), this.h();
    },
    l(v) {
      e = Lm(v, "DIV", { class: !0 });
      var y = at(e);
      t = wt(y, "svg", {
        viewBox: !0,
        fill: !0,
        xmlns: !0,
        class: !0
      });
      var x = at(t);
      r = wt(x, "g", { style: !0 });
      var A = at(r);
      n = wt(A, "path", {
        d: !0,
        fill: !0,
        "fill-opacity": !0,
        class: !0
      }), at(n).forEach(Ke), i = wt(A, "path", { d: !0, fill: !0, class: !0 }), at(i).forEach(Ke), l = wt(A, "path", {
        d: !0,
        fill: !0,
        "fill-opacity": !0,
        class: !0
      }), at(l).forEach(Ke), s = wt(A, "path", { d: !0, fill: !0, class: !0 }), at(s).forEach(Ke), A.forEach(Ke), o = wt(x, "g", { style: !0 });
      var T = at(o);
      h = wt(T, "path", {
        d: !0,
        fill: !0,
        "fill-opacity": !0,
        class: !0
      }), at(h).forEach(Ke), m = wt(T, "path", { d: !0, fill: !0, class: !0 }), at(m).forEach(Ke), d = wt(T, "path", {
        d: !0,
        fill: !0,
        "fill-opacity": !0,
        class: !0
      }), at(d).forEach(Ke), g = wt(T, "path", { d: !0, fill: !0, class: !0 }), at(g).forEach(Ke), T.forEach(Ke), x.forEach(Ke), y.forEach(Ke), this.h();
    },
    h() {
      ae(n, "d", "M255.926 0.754768L509.702 139.936V221.027L255.926 81.8465V0.754768Z"), ae(n, "fill", "#FF7C00"), ae(n, "fill-opacity", "0.4"), ae(n, "class", "svelte-43sxxs"), ae(i, "d", "M509.69 139.936L254.981 279.641V361.255L509.69 221.55V139.936Z"), ae(i, "fill", "#FF7C00"), ae(i, "class", "svelte-43sxxs"), ae(l, "d", "M0.250138 139.937L254.981 279.641V361.255L0.250138 221.55V139.937Z"), ae(l, "fill", "#FF7C00"), ae(l, "fill-opacity", "0.4"), ae(l, "class", "svelte-43sxxs"), ae(s, "d", "M255.923 0.232622L0.236328 139.936V221.55L255.923 81.8469V0.232622Z"), ae(s, "fill", "#FF7C00"), ae(s, "class", "svelte-43sxxs"), Zr(r, "transform", "translate(" + /*$top*/
      a[1][0] + "px, " + /*$top*/
      a[1][1] + "px)"), ae(h, "d", "M255.926 141.5L509.702 280.681V361.773L255.926 222.592V141.5Z"), ae(h, "fill", "#FF7C00"), ae(h, "fill-opacity", "0.4"), ae(h, "class", "svelte-43sxxs"), ae(m, "d", "M509.69 280.679L254.981 420.384V501.998L509.69 362.293V280.679Z"), ae(m, "fill", "#FF7C00"), ae(m, "class", "svelte-43sxxs"), ae(d, "d", "M0.250138 280.681L254.981 420.386V502L0.250138 362.295V280.681Z"), ae(d, "fill", "#FF7C00"), ae(d, "fill-opacity", "0.4"), ae(d, "class", "svelte-43sxxs"), ae(g, "d", "M255.923 140.977L0.236328 280.68V362.294L255.923 222.591V140.977Z"), ae(g, "fill", "#FF7C00"), ae(g, "class", "svelte-43sxxs"), Zr(o, "transform", "translate(" + /*$bottom*/
      a[2][0] + "px, " + /*$bottom*/
      a[2][1] + "px)"), ae(t, "viewBox", "-1200 -1200 3000 3000"), ae(t, "fill", "none"), ae(t, "xmlns", "http://www.w3.org/2000/svg"), ae(t, "class", "svelte-43sxxs"), ae(e, "class", "svelte-43sxxs"), hs(
        e,
        "margin",
        /*margin*/
        a[0]
      );
    },
    m(v, y) {
      Pm(v, e, y), yt(e, t), yt(t, r), yt(r, n), yt(r, i), yt(r, l), yt(r, s), yt(t, o), yt(o, h), yt(o, m), yt(o, d), yt(o, g);
    },
    p(v, [y]) {
      y & /*$top*/
      2 && Zr(r, "transform", "translate(" + /*$top*/
      v[1][0] + "px, " + /*$top*/
      v[1][1] + "px)"), y & /*$bottom*/
      4 && Zr(o, "transform", "translate(" + /*$bottom*/
      v[2][0] + "px, " + /*$bottom*/
      v[2][1] + "px)"), y & /*margin*/
      1 && hs(
        e,
        "margin",
        /*margin*/
        v[0]
      );
    },
    i: cs,
    o: cs,
    d(v) {
      v && Ke(e);
    }
  };
}
function Vm(a, e, t) {
  let r, n, { margin: i = !0 } = e;
  const l = os([0, 0]);
  us(a, l, (g) => t(1, r = g));
  const s = os([0, 0]);
  us(a, s, (g) => t(2, n = g));
  let o;
  async function h() {
    await Promise.all([l.set([125, 140]), s.set([-125, -140])]), await Promise.all([l.set([-125, 140]), s.set([125, -140])]), await Promise.all([l.set([-125, 0]), s.set([125, -0])]), await Promise.all([l.set([125, 0]), s.set([-125, 0])]);
  }
  async function m() {
    await h(), o || m();
  }
  async function d() {
    await Promise.all([l.set([125, 0]), s.set([-125, 0])]), m();
  }
  return Um(() => (d(), () => o = !0)), a.$$set = (g) => {
    "margin" in g && t(0, i = g.margin);
  }, [i, r, n, l, s];
}
class Wm extends Im {
  constructor(e) {
    super(), qm(this, e, Vm, Gm, Hm, { margin: 0 });
  }
}
const {
  SvelteComponent: Xm,
  append_hydration: D0,
  attr: At,
  binding_callbacks: ms,
  check_outros: Ln,
  children: qt,
  claim_component: Tu,
  claim_element: Pt,
  claim_space: lt,
  claim_text: be,
  create_component: Cu,
  create_slot: Mu,
  destroy_component: zu,
  destroy_each: Bu,
  detach: X,
  element: Ht,
  empty: ht,
  ensure_array_like: va,
  get_all_dirty_from_scope: Nu,
  get_slot_changes: Ru,
  group_outros: On,
  init: Ym,
  insert_hydration: $,
  mount_component: Iu,
  noop: qn,
  safe_not_equal: jm,
  set_data: mt,
  set_style: f0,
  space: st,
  text: ye,
  toggle_class: nt,
  transition_in: Dt,
  transition_out: Ut,
  update_slot_base: Lu
} = window.__gradio__svelte__internal, { tick: Zm } = window.__gradio__svelte__internal, { onDestroy: Km } = window.__gradio__svelte__internal, { createEventDispatcher: Qm } = window.__gradio__svelte__internal, Jm = (a) => ({}), fs = (a) => ({}), $m = (a) => ({}), ds = (a) => ({});
function ps(a, e, t) {
  const r = a.slice();
  return r[40] = e[t], r[42] = t, r;
}
function gs(a, e, t) {
  const r = a.slice();
  return r[40] = e[t], r;
}
function ef(a) {
  let e, t, r, n, i = (
    /*i18n*/
    a[1]("common.error") + ""
  ), l, s, o;
  t = new mm({
    props: {
      Icon: Dm,
      label: (
        /*i18n*/
        a[1]("common.clear")
      ),
      disabled: !1
    }
  }), t.$on(
    "click",
    /*click_handler*/
    a[32]
  );
  const h = (
    /*#slots*/
    a[30].error
  ), m = Mu(
    h,
    a,
    /*$$scope*/
    a[29],
    fs
  );
  return {
    c() {
      e = Ht("div"), Cu(t.$$.fragment), r = st(), n = Ht("span"), l = ye(i), s = st(), m && m.c(), this.h();
    },
    l(d) {
      e = Pt(d, "DIV", { class: !0 });
      var g = qt(e);
      Tu(t.$$.fragment, g), g.forEach(X), r = lt(d), n = Pt(d, "SPAN", { class: !0 });
      var v = qt(n);
      l = be(v, i), v.forEach(X), s = lt(d), m && m.l(d), this.h();
    },
    h() {
      At(e, "class", "clear-status svelte-17v219f"), At(n, "class", "error svelte-17v219f");
    },
    m(d, g) {
      $(d, e, g), Iu(t, e, null), $(d, r, g), $(d, n, g), D0(n, l), $(d, s, g), m && m.m(d, g), o = !0;
    },
    p(d, g) {
      const v = {};
      g[0] & /*i18n*/
      2 && (v.label = /*i18n*/
      d[1]("common.clear")), t.$set(v), (!o || g[0] & /*i18n*/
      2) && i !== (i = /*i18n*/
      d[1]("common.error") + "") && mt(l, i), m && m.p && (!o || g[0] & /*$$scope*/
      536870912) && Lu(
        m,
        h,
        d,
        /*$$scope*/
        d[29],
        o ? Ru(
          h,
          /*$$scope*/
          d[29],
          g,
          Jm
        ) : Nu(
          /*$$scope*/
          d[29]
        ),
        fs
      );
    },
    i(d) {
      o || (Dt(t.$$.fragment, d), Dt(m, d), o = !0);
    },
    o(d) {
      Ut(t.$$.fragment, d), Ut(m, d), o = !1;
    },
    d(d) {
      d && (X(e), X(r), X(n), X(s)), zu(t), m && m.d(d);
    }
  };
}
function tf(a) {
  let e, t, r, n, i, l, s, o, h, m = (
    /*variant*/
    a[8] === "default" && /*show_eta_bar*/
    a[18] && /*show_progress*/
    a[6] === "full" && vs(a)
  );
  function d(b, E) {
    if (
      /*progress*/
      b[7]
    ) return nf;
    if (
      /*queue_position*/
      b[2] !== null && /*queue_size*/
      b[3] !== void 0 && /*queue_position*/
      b[2] >= 0
    ) return af;
    if (
      /*queue_position*/
      b[2] === 0
    ) return rf;
  }
  let g = d(a), v = g && g(a), y = (
    /*timer*/
    a[5] && ws(a)
  );
  const x = [uf, of], A = [];
  function T(b, E) {
    return (
      /*last_progress_level*/
      b[15] != null ? 0 : (
        /*show_progress*/
        b[6] === "full" ? 1 : -1
      )
    );
  }
  ~(i = T(a)) && (l = A[i] = x[i](a));
  let _ = !/*timer*/
  a[5] && Es(a);
  return {
    c() {
      m && m.c(), e = st(), t = Ht("div"), v && v.c(), r = st(), y && y.c(), n = st(), l && l.c(), s = st(), _ && _.c(), o = ht(), this.h();
    },
    l(b) {
      m && m.l(b), e = lt(b), t = Pt(b, "DIV", { class: !0 });
      var E = qt(t);
      v && v.l(E), r = lt(E), y && y.l(E), E.forEach(X), n = lt(b), l && l.l(b), s = lt(b), _ && _.l(b), o = ht(), this.h();
    },
    h() {
      At(t, "class", "progress-text svelte-17v219f"), nt(
        t,
        "meta-text-center",
        /*variant*/
        a[8] === "center"
      ), nt(
        t,
        "meta-text",
        /*variant*/
        a[8] === "default"
      );
    },
    m(b, E) {
      m && m.m(b, E), $(b, e, E), $(b, t, E), v && v.m(t, null), D0(t, r), y && y.m(t, null), $(b, n, E), ~i && A[i].m(b, E), $(b, s, E), _ && _.m(b, E), $(b, o, E), h = !0;
    },
    p(b, E) {
      /*variant*/
      b[8] === "default" && /*show_eta_bar*/
      b[18] && /*show_progress*/
      b[6] === "full" ? m ? m.p(b, E) : (m = vs(b), m.c(), m.m(e.parentNode, e)) : m && (m.d(1), m = null), g === (g = d(b)) && v ? v.p(b, E) : (v && v.d(1), v = g && g(b), v && (v.c(), v.m(t, r))), /*timer*/
      b[5] ? y ? y.p(b, E) : (y = ws(b), y.c(), y.m(t, null)) : y && (y.d(1), y = null), (!h || E[0] & /*variant*/
      256) && nt(
        t,
        "meta-text-center",
        /*variant*/
        b[8] === "center"
      ), (!h || E[0] & /*variant*/
      256) && nt(
        t,
        "meta-text",
        /*variant*/
        b[8] === "default"
      );
      let F = i;
      i = T(b), i === F ? ~i && A[i].p(b, E) : (l && (On(), Ut(A[F], 1, 1, () => {
        A[F] = null;
      }), Ln()), ~i ? (l = A[i], l ? l.p(b, E) : (l = A[i] = x[i](b), l.c()), Dt(l, 1), l.m(s.parentNode, s)) : l = null), /*timer*/
      b[5] ? _ && (On(), Ut(_, 1, 1, () => {
        _ = null;
      }), Ln()) : _ ? (_.p(b, E), E[0] & /*timer*/
      32 && Dt(_, 1)) : (_ = Es(b), _.c(), Dt(_, 1), _.m(o.parentNode, o));
    },
    i(b) {
      h || (Dt(l), Dt(_), h = !0);
    },
    o(b) {
      Ut(l), Ut(_), h = !1;
    },
    d(b) {
      b && (X(e), X(t), X(n), X(s), X(o)), m && m.d(b), v && v.d(), y && y.d(), ~i && A[i].d(b), _ && _.d(b);
    }
  };
}
function vs(a) {
  let e, t = `translateX(${/*eta_level*/
  (a[17] || 0) * 100 - 100}%)`;
  return {
    c() {
      e = Ht("div"), this.h();
    },
    l(r) {
      e = Pt(r, "DIV", { class: !0 }), qt(e).forEach(X), this.h();
    },
    h() {
      At(e, "class", "eta-bar svelte-17v219f"), f0(e, "transform", t);
    },
    m(r, n) {
      $(r, e, n);
    },
    p(r, n) {
      n[0] & /*eta_level*/
      131072 && t !== (t = `translateX(${/*eta_level*/
      (r[17] || 0) * 100 - 100}%)`) && f0(e, "transform", t);
    },
    d(r) {
      r && X(e);
    }
  };
}
function rf(a) {
  let e;
  return {
    c() {
      e = ye("processing |");
    },
    l(t) {
      e = be(t, "processing |");
    },
    m(t, r) {
      $(t, e, r);
    },
    p: qn,
    d(t) {
      t && X(e);
    }
  };
}
function af(a) {
  let e, t = (
    /*queue_position*/
    a[2] + 1 + ""
  ), r, n, i, l;
  return {
    c() {
      e = ye("queue: "), r = ye(t), n = ye("/"), i = ye(
        /*queue_size*/
        a[3]
      ), l = ye(" |");
    },
    l(s) {
      e = be(s, "queue: "), r = be(s, t), n = be(s, "/"), i = be(
        s,
        /*queue_size*/
        a[3]
      ), l = be(s, " |");
    },
    m(s, o) {
      $(s, e, o), $(s, r, o), $(s, n, o), $(s, i, o), $(s, l, o);
    },
    p(s, o) {
      o[0] & /*queue_position*/
      4 && t !== (t = /*queue_position*/
      s[2] + 1 + "") && mt(r, t), o[0] & /*queue_size*/
      8 && mt(
        i,
        /*queue_size*/
        s[3]
      );
    },
    d(s) {
      s && (X(e), X(r), X(n), X(i), X(l));
    }
  };
}
function nf(a) {
  let e, t = va(
    /*progress*/
    a[7]
  ), r = [];
  for (let n = 0; n < t.length; n += 1)
    r[n] = ys(gs(a, t, n));
  return {
    c() {
      for (let n = 0; n < r.length; n += 1)
        r[n].c();
      e = ht();
    },
    l(n) {
      for (let i = 0; i < r.length; i += 1)
        r[i].l(n);
      e = ht();
    },
    m(n, i) {
      for (let l = 0; l < r.length; l += 1)
        r[l] && r[l].m(n, i);
      $(n, e, i);
    },
    p(n, i) {
      if (i[0] & /*progress*/
      128) {
        t = va(
          /*progress*/
          n[7]
        );
        let l;
        for (l = 0; l < t.length; l += 1) {
          const s = gs(n, t, l);
          r[l] ? r[l].p(s, i) : (r[l] = ys(s), r[l].c(), r[l].m(e.parentNode, e));
        }
        for (; l < r.length; l += 1)
          r[l].d(1);
        r.length = t.length;
      }
    },
    d(n) {
      n && X(e), Bu(r, n);
    }
  };
}
function bs(a) {
  let e, t = (
    /*p*/
    a[40].unit + ""
  ), r, n, i = " ", l;
  function s(m, d) {
    return (
      /*p*/
      m[40].length != null ? sf : lf
    );
  }
  let o = s(a), h = o(a);
  return {
    c() {
      h.c(), e = st(), r = ye(t), n = ye(" | "), l = ye(i);
    },
    l(m) {
      h.l(m), e = lt(m), r = be(m, t), n = be(m, " | "), l = be(m, i);
    },
    m(m, d) {
      h.m(m, d), $(m, e, d), $(m, r, d), $(m, n, d), $(m, l, d);
    },
    p(m, d) {
      o === (o = s(m)) && h ? h.p(m, d) : (h.d(1), h = o(m), h && (h.c(), h.m(e.parentNode, e))), d[0] & /*progress*/
      128 && t !== (t = /*p*/
      m[40].unit + "") && mt(r, t);
    },
    d(m) {
      m && (X(e), X(r), X(n), X(l)), h.d(m);
    }
  };
}
function lf(a) {
  let e = P0(
    /*p*/
    a[40].index || 0
  ) + "", t;
  return {
    c() {
      t = ye(e);
    },
    l(r) {
      t = be(r, e);
    },
    m(r, n) {
      $(r, t, n);
    },
    p(r, n) {
      n[0] & /*progress*/
      128 && e !== (e = P0(
        /*p*/
        r[40].index || 0
      ) + "") && mt(t, e);
    },
    d(r) {
      r && X(t);
    }
  };
}
function sf(a) {
  let e = P0(
    /*p*/
    a[40].index || 0
  ) + "", t, r, n = P0(
    /*p*/
    a[40].length
  ) + "", i;
  return {
    c() {
      t = ye(e), r = ye("/"), i = ye(n);
    },
    l(l) {
      t = be(l, e), r = be(l, "/"), i = be(l, n);
    },
    m(l, s) {
      $(l, t, s), $(l, r, s), $(l, i, s);
    },
    p(l, s) {
      s[0] & /*progress*/
      128 && e !== (e = P0(
        /*p*/
        l[40].index || 0
      ) + "") && mt(t, e), s[0] & /*progress*/
      128 && n !== (n = P0(
        /*p*/
        l[40].length
      ) + "") && mt(i, n);
    },
    d(l) {
      l && (X(t), X(r), X(i));
    }
  };
}
function ys(a) {
  let e, t = (
    /*p*/
    a[40].index != null && bs(a)
  );
  return {
    c() {
      t && t.c(), e = ht();
    },
    l(r) {
      t && t.l(r), e = ht();
    },
    m(r, n) {
      t && t.m(r, n), $(r, e, n);
    },
    p(r, n) {
      /*p*/
      r[40].index != null ? t ? t.p(r, n) : (t = bs(r), t.c(), t.m(e.parentNode, e)) : t && (t.d(1), t = null);
    },
    d(r) {
      r && X(e), t && t.d(r);
    }
  };
}
function ws(a) {
  let e, t = (
    /*eta*/
    a[0] ? `/${/*formatted_eta*/
    a[19]}` : ""
  ), r, n;
  return {
    c() {
      e = ye(
        /*formatted_timer*/
        a[20]
      ), r = ye(t), n = ye("s");
    },
    l(i) {
      e = be(
        i,
        /*formatted_timer*/
        a[20]
      ), r = be(i, t), n = be(i, "s");
    },
    m(i, l) {
      $(i, e, l), $(i, r, l), $(i, n, l);
    },
    p(i, l) {
      l[0] & /*formatted_timer*/
      1048576 && mt(
        e,
        /*formatted_timer*/
        i[20]
      ), l[0] & /*eta, formatted_eta*/
      524289 && t !== (t = /*eta*/
      i[0] ? `/${/*formatted_eta*/
      i[19]}` : "") && mt(r, t);
    },
    d(i) {
      i && (X(e), X(r), X(n));
    }
  };
}
function of(a) {
  let e, t;
  return e = new Wm({
    props: { margin: (
      /*variant*/
      a[8] === "default"
    ) }
  }), {
    c() {
      Cu(e.$$.fragment);
    },
    l(r) {
      Tu(e.$$.fragment, r);
    },
    m(r, n) {
      Iu(e, r, n), t = !0;
    },
    p(r, n) {
      const i = {};
      n[0] & /*variant*/
      256 && (i.margin = /*variant*/
      r[8] === "default"), e.$set(i);
    },
    i(r) {
      t || (Dt(e.$$.fragment, r), t = !0);
    },
    o(r) {
      Ut(e.$$.fragment, r), t = !1;
    },
    d(r) {
      zu(e, r);
    }
  };
}
function uf(a) {
  let e, t, r, n, i, l = `${/*last_progress_level*/
  a[15] * 100}%`, s = (
    /*progress*/
    a[7] != null && ks(a)
  );
  return {
    c() {
      e = Ht("div"), t = Ht("div"), s && s.c(), r = st(), n = Ht("div"), i = Ht("div"), this.h();
    },
    l(o) {
      e = Pt(o, "DIV", { class: !0 });
      var h = qt(e);
      t = Pt(h, "DIV", { class: !0 });
      var m = qt(t);
      s && s.l(m), m.forEach(X), r = lt(h), n = Pt(h, "DIV", { class: !0 });
      var d = qt(n);
      i = Pt(d, "DIV", { class: !0 }), qt(i).forEach(X), d.forEach(X), h.forEach(X), this.h();
    },
    h() {
      At(t, "class", "progress-level-inner svelte-17v219f"), At(i, "class", "progress-bar svelte-17v219f"), f0(i, "width", l), At(n, "class", "progress-bar-wrap svelte-17v219f"), At(e, "class", "progress-level svelte-17v219f");
    },
    m(o, h) {
      $(o, e, h), D0(e, t), s && s.m(t, null), D0(e, r), D0(e, n), D0(n, i), a[31](i);
    },
    p(o, h) {
      /*progress*/
      o[7] != null ? s ? s.p(o, h) : (s = ks(o), s.c(), s.m(t, null)) : s && (s.d(1), s = null), h[0] & /*last_progress_level*/
      32768 && l !== (l = `${/*last_progress_level*/
      o[15] * 100}%`) && f0(i, "width", l);
    },
    i: qn,
    o: qn,
    d(o) {
      o && X(e), s && s.d(), a[31](null);
    }
  };
}
function ks(a) {
  let e, t = va(
    /*progress*/
    a[7]
  ), r = [];
  for (let n = 0; n < t.length; n += 1)
    r[n] = Ss(ps(a, t, n));
  return {
    c() {
      for (let n = 0; n < r.length; n += 1)
        r[n].c();
      e = ht();
    },
    l(n) {
      for (let i = 0; i < r.length; i += 1)
        r[i].l(n);
      e = ht();
    },
    m(n, i) {
      for (let l = 0; l < r.length; l += 1)
        r[l] && r[l].m(n, i);
      $(n, e, i);
    },
    p(n, i) {
      if (i[0] & /*progress_level, progress*/
      16512) {
        t = va(
          /*progress*/
          n[7]
        );
        let l;
        for (l = 0; l < t.length; l += 1) {
          const s = ps(n, t, l);
          r[l] ? r[l].p(s, i) : (r[l] = Ss(s), r[l].c(), r[l].m(e.parentNode, e));
        }
        for (; l < r.length; l += 1)
          r[l].d(1);
        r.length = t.length;
      }
    },
    d(n) {
      n && X(e), Bu(r, n);
    }
  };
}
function xs(a) {
  let e, t, r, n, i = (
    /*i*/
    a[42] !== 0 && cf()
  ), l = (
    /*p*/
    a[40].desc != null && _s(a)
  ), s = (
    /*p*/
    a[40].desc != null && /*progress_level*/
    a[14] && /*progress_level*/
    a[14][
      /*i*/
      a[42]
    ] != null && Ds()
  ), o = (
    /*progress_level*/
    a[14] != null && As(a)
  );
  return {
    c() {
      i && i.c(), e = st(), l && l.c(), t = st(), s && s.c(), r = st(), o && o.c(), n = ht();
    },
    l(h) {
      i && i.l(h), e = lt(h), l && l.l(h), t = lt(h), s && s.l(h), r = lt(h), o && o.l(h), n = ht();
    },
    m(h, m) {
      i && i.m(h, m), $(h, e, m), l && l.m(h, m), $(h, t, m), s && s.m(h, m), $(h, r, m), o && o.m(h, m), $(h, n, m);
    },
    p(h, m) {
      /*p*/
      h[40].desc != null ? l ? l.p(h, m) : (l = _s(h), l.c(), l.m(t.parentNode, t)) : l && (l.d(1), l = null), /*p*/
      h[40].desc != null && /*progress_level*/
      h[14] && /*progress_level*/
      h[14][
        /*i*/
        h[42]
      ] != null ? s || (s = Ds(), s.c(), s.m(r.parentNode, r)) : s && (s.d(1), s = null), /*progress_level*/
      h[14] != null ? o ? o.p(h, m) : (o = As(h), o.c(), o.m(n.parentNode, n)) : o && (o.d(1), o = null);
    },
    d(h) {
      h && (X(e), X(t), X(r), X(n)), i && i.d(h), l && l.d(h), s && s.d(h), o && o.d(h);
    }
  };
}
function cf(a) {
  let e;
  return {
    c() {
      e = ye(" /");
    },
    l(t) {
      e = be(t, " /");
    },
    m(t, r) {
      $(t, e, r);
    },
    d(t) {
      t && X(e);
    }
  };
}
function _s(a) {
  let e = (
    /*p*/
    a[40].desc + ""
  ), t;
  return {
    c() {
      t = ye(e);
    },
    l(r) {
      t = be(r, e);
    },
    m(r, n) {
      $(r, t, n);
    },
    p(r, n) {
      n[0] & /*progress*/
      128 && e !== (e = /*p*/
      r[40].desc + "") && mt(t, e);
    },
    d(r) {
      r && X(t);
    }
  };
}
function Ds(a) {
  let e;
  return {
    c() {
      e = ye("-");
    },
    l(t) {
      e = be(t, "-");
    },
    m(t, r) {
      $(t, e, r);
    },
    d(t) {
      t && X(e);
    }
  };
}
function As(a) {
  let e = (100 * /*progress_level*/
  (a[14][
    /*i*/
    a[42]
  ] || 0)).toFixed(1) + "", t, r;
  return {
    c() {
      t = ye(e), r = ye("%");
    },
    l(n) {
      t = be(n, e), r = be(n, "%");
    },
    m(n, i) {
      $(n, t, i), $(n, r, i);
    },
    p(n, i) {
      i[0] & /*progress_level*/
      16384 && e !== (e = (100 * /*progress_level*/
      (n[14][
        /*i*/
        n[42]
      ] || 0)).toFixed(1) + "") && mt(t, e);
    },
    d(n) {
      n && (X(t), X(r));
    }
  };
}
function Ss(a) {
  let e, t = (
    /*p*/
    (a[40].desc != null || /*progress_level*/
    a[14] && /*progress_level*/
    a[14][
      /*i*/
      a[42]
    ] != null) && xs(a)
  );
  return {
    c() {
      t && t.c(), e = ht();
    },
    l(r) {
      t && t.l(r), e = ht();
    },
    m(r, n) {
      t && t.m(r, n), $(r, e, n);
    },
    p(r, n) {
      /*p*/
      r[40].desc != null || /*progress_level*/
      r[14] && /*progress_level*/
      r[14][
        /*i*/
        r[42]
      ] != null ? t ? t.p(r, n) : (t = xs(r), t.c(), t.m(e.parentNode, e)) : t && (t.d(1), t = null);
    },
    d(r) {
      r && X(e), t && t.d(r);
    }
  };
}
function Es(a) {
  let e, t, r, n;
  const i = (
    /*#slots*/
    a[30]["additional-loading-text"]
  ), l = Mu(
    i,
    a,
    /*$$scope*/
    a[29],
    ds
  );
  return {
    c() {
      e = Ht("p"), t = ye(
        /*loading_text*/
        a[9]
      ), r = st(), l && l.c(), this.h();
    },
    l(s) {
      e = Pt(s, "P", { class: !0 });
      var o = qt(e);
      t = be(
        o,
        /*loading_text*/
        a[9]
      ), o.forEach(X), r = lt(s), l && l.l(s), this.h();
    },
    h() {
      At(e, "class", "loading svelte-17v219f");
    },
    m(s, o) {
      $(s, e, o), D0(e, t), $(s, r, o), l && l.m(s, o), n = !0;
    },
    p(s, o) {
      (!n || o[0] & /*loading_text*/
      512) && mt(
        t,
        /*loading_text*/
        s[9]
      ), l && l.p && (!n || o[0] & /*$$scope*/
      536870912) && Lu(
        l,
        i,
        s,
        /*$$scope*/
        s[29],
        n ? Ru(
          i,
          /*$$scope*/
          s[29],
          o,
          $m
        ) : Nu(
          /*$$scope*/
          s[29]
        ),
        ds
      );
    },
    i(s) {
      n || (Dt(l, s), n = !0);
    },
    o(s) {
      Ut(l, s), n = !1;
    },
    d(s) {
      s && (X(e), X(r)), l && l.d(s);
    }
  };
}
function hf(a) {
  let e, t, r, n, i;
  const l = [tf, ef], s = [];
  function o(h, m) {
    return (
      /*status*/
      h[4] === "pending" ? 0 : (
        /*status*/
        h[4] === "error" ? 1 : -1
      )
    );
  }
  return ~(t = o(a)) && (r = s[t] = l[t](a)), {
    c() {
      e = Ht("div"), r && r.c(), this.h();
    },
    l(h) {
      e = Pt(h, "DIV", { class: !0 });
      var m = qt(e);
      r && r.l(m), m.forEach(X), this.h();
    },
    h() {
      At(e, "class", n = "wrap " + /*variant*/
      a[8] + " " + /*show_progress*/
      a[6] + " svelte-17v219f"), nt(e, "hide", !/*status*/
      a[4] || /*status*/
      a[4] === "complete" || /*show_progress*/
      a[6] === "hidden" || /*status*/
      a[4] == "streaming"), nt(
        e,
        "translucent",
        /*variant*/
        a[8] === "center" && /*status*/
        (a[4] === "pending" || /*status*/
        a[4] === "error") || /*translucent*/
        a[11] || /*show_progress*/
        a[6] === "minimal"
      ), nt(
        e,
        "generating",
        /*status*/
        a[4] === "generating" && /*show_progress*/
        a[6] === "full"
      ), nt(
        e,
        "border",
        /*border*/
        a[12]
      ), f0(
        e,
        "position",
        /*absolute*/
        a[10] ? "absolute" : "static"
      ), f0(
        e,
        "padding",
        /*absolute*/
        a[10] ? "0" : "var(--size-8) 0"
      );
    },
    m(h, m) {
      $(h, e, m), ~t && s[t].m(e, null), a[33](e), i = !0;
    },
    p(h, m) {
      let d = t;
      t = o(h), t === d ? ~t && s[t].p(h, m) : (r && (On(), Ut(s[d], 1, 1, () => {
        s[d] = null;
      }), Ln()), ~t ? (r = s[t], r ? r.p(h, m) : (r = s[t] = l[t](h), r.c()), Dt(r, 1), r.m(e, null)) : r = null), (!i || m[0] & /*variant, show_progress*/
      320 && n !== (n = "wrap " + /*variant*/
      h[8] + " " + /*show_progress*/
      h[6] + " svelte-17v219f")) && At(e, "class", n), (!i || m[0] & /*variant, show_progress, status, show_progress*/
      336) && nt(e, "hide", !/*status*/
      h[4] || /*status*/
      h[4] === "complete" || /*show_progress*/
      h[6] === "hidden" || /*status*/
      h[4] == "streaming"), (!i || m[0] & /*variant, show_progress, variant, status, translucent, show_progress*/
      2384) && nt(
        e,
        "translucent",
        /*variant*/
        h[8] === "center" && /*status*/
        (h[4] === "pending" || /*status*/
        h[4] === "error") || /*translucent*/
        h[11] || /*show_progress*/
        h[6] === "minimal"
      ), (!i || m[0] & /*variant, show_progress, status, show_progress*/
      336) && nt(
        e,
        "generating",
        /*status*/
        h[4] === "generating" && /*show_progress*/
        h[6] === "full"
      ), (!i || m[0] & /*variant, show_progress, border*/
      4416) && nt(
        e,
        "border",
        /*border*/
        h[12]
      ), m[0] & /*absolute*/
      1024 && f0(
        e,
        "position",
        /*absolute*/
        h[10] ? "absolute" : "static"
      ), m[0] & /*absolute*/
      1024 && f0(
        e,
        "padding",
        /*absolute*/
        h[10] ? "0" : "var(--size-8) 0"
      );
    },
    i(h) {
      i || (Dt(r), i = !0);
    },
    o(h) {
      Ut(r), i = !1;
    },
    d(h) {
      h && X(e), ~t && s[t].d(), a[33](null);
    }
  };
}
let Kr = [], mn = !1;
const mf = typeof window < "u", Ou = mf ? window.requestAnimationFrame : (a) => {
};
async function ff(a, e = !0) {
  if (!(window.__gradio_mode__ === "website" || window.__gradio_mode__ !== "app" && e !== !0)) {
    if (Kr.push(a), !mn) mn = !0;
    else return;
    await Zm(), Ou(() => {
      let t = [0, 0];
      for (let r = 0; r < Kr.length; r++) {
        const i = Kr[r].getBoundingClientRect();
        (r === 0 || i.top + window.scrollY <= t[0]) && (t[0] = i.top + window.scrollY, t[1] = r);
      }
      window.scrollTo({ top: t[0] - 20, behavior: "smooth" }), mn = !1, Kr = [];
    });
  }
}
function df(a, e, t) {
  let r, { $$slots: n = {}, $$scope: i } = e;
  const l = Qm();
  let { i18n: s } = e, { eta: o = null } = e, { queue_position: h } = e, { queue_size: m } = e, { status: d } = e, { scroll_to_output: g = !1 } = e, { timer: v = !0 } = e, { show_progress: y = "full" } = e, { message: x = null } = e, { progress: A = null } = e, { variant: T = "default" } = e, { loading_text: _ = "Loading..." } = e, { absolute: b = !0 } = e, { translucent: E = !1 } = e, { border: F = !1 } = e, { autoscroll: M } = e, z, q = !1, I = 0, B = 0, N = null, Q = null, ke = 0, ie = null, xe, _e = null, He = !0;
  const se = () => {
    t(0, o = t(27, N = t(19, te = null))), t(25, I = performance.now()), t(26, B = 0), q = !0, Ee();
  };
  function Ee() {
    Ou(() => {
      t(26, B = (performance.now() - I) / 1e3), q && Ee();
    });
  }
  function De() {
    t(26, B = 0), t(0, o = t(27, N = t(19, te = null))), q && (q = !1);
  }
  Km(() => {
    q && De();
  });
  let te = null;
  function le(U) {
    ms[U ? "unshift" : "push"](() => {
      _e = U, t(16, _e), t(7, A), t(14, ie), t(15, xe);
    });
  }
  const ce = () => {
    l("clear_status");
  };
  function Ce(U) {
    ms[U ? "unshift" : "push"](() => {
      z = U, t(13, z);
    });
  }
  return a.$$set = (U) => {
    "i18n" in U && t(1, s = U.i18n), "eta" in U && t(0, o = U.eta), "queue_position" in U && t(2, h = U.queue_position), "queue_size" in U && t(3, m = U.queue_size), "status" in U && t(4, d = U.status), "scroll_to_output" in U && t(22, g = U.scroll_to_output), "timer" in U && t(5, v = U.timer), "show_progress" in U && t(6, y = U.show_progress), "message" in U && t(23, x = U.message), "progress" in U && t(7, A = U.progress), "variant" in U && t(8, T = U.variant), "loading_text" in U && t(9, _ = U.loading_text), "absolute" in U && t(10, b = U.absolute), "translucent" in U && t(11, E = U.translucent), "border" in U && t(12, F = U.border), "autoscroll" in U && t(24, M = U.autoscroll), "$$scope" in U && t(29, i = U.$$scope);
  }, a.$$.update = () => {
    a.$$.dirty[0] & /*eta, old_eta, timer_start, eta_from_start*/
    436207617 && (o === null && t(0, o = N), o != null && N !== o && (t(28, Q = (performance.now() - I) / 1e3 + o), t(19, te = Q.toFixed(1)), t(27, N = o))), a.$$.dirty[0] & /*eta_from_start, timer_diff*/
    335544320 && t(17, ke = Q === null || Q <= 0 || !B ? null : Math.min(B / Q, 1)), a.$$.dirty[0] & /*progress*/
    128 && A != null && t(18, He = !1), a.$$.dirty[0] & /*progress, progress_level, progress_bar, last_progress_level*/
    114816 && (A != null ? t(14, ie = A.map((U) => {
      if (U.index != null && U.length != null)
        return U.index / U.length;
      if (U.progress != null)
        return U.progress;
    })) : t(14, ie = null), ie ? (t(15, xe = ie[ie.length - 1]), _e && (xe === 0 ? t(16, _e.style.transition = "0", _e) : t(16, _e.style.transition = "150ms", _e))) : t(15, xe = void 0)), a.$$.dirty[0] & /*status*/
    16 && (d === "pending" ? se() : De()), a.$$.dirty[0] & /*el, scroll_to_output, status, autoscroll*/
    20979728 && z && g && (d === "pending" || d === "complete") && ff(z, M), a.$$.dirty[0] & /*status, message*/
    8388624, a.$$.dirty[0] & /*timer_diff*/
    67108864 && t(20, r = B.toFixed(1));
  }, [
    o,
    s,
    h,
    m,
    d,
    v,
    y,
    A,
    T,
    _,
    b,
    E,
    F,
    z,
    ie,
    xe,
    _e,
    ke,
    He,
    te,
    r,
    l,
    g,
    x,
    M,
    I,
    B,
    N,
    Q,
    i,
    n,
    le,
    ce,
    Ce
  ];
}
class pf extends Xm {
  constructor(e) {
    super(), Ym(
      this,
      e,
      df,
      hf,
      jm,
      {
        i18n: 1,
        eta: 0,
        queue_position: 2,
        queue_size: 3,
        status: 4,
        scroll_to_output: 22,
        timer: 5,
        show_progress: 6,
        message: 23,
        progress: 7,
        variant: 8,
        loading_text: 9,
        absolute: 10,
        translucent: 11,
        border: 12,
        autoscroll: 24
      },
      null,
      [-1, -1]
    );
  }
}
/*! @license DOMPurify 3.2.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.3/LICENSE */
const {
  entries: qu,
  setPrototypeOf: Fs,
  isFrozen: gf,
  getPrototypeOf: vf,
  getOwnPropertyDescriptor: bf
} = Object;
let {
  freeze: qe,
  seal: ft,
  create: Pu
} = Object, {
  apply: Pn,
  construct: Hn
} = typeof Reflect < "u" && Reflect;
qe || (qe = function(e) {
  return e;
});
ft || (ft = function(e) {
  return e;
});
Pn || (Pn = function(e, t, r) {
  return e.apply(t, r);
});
Hn || (Hn = function(e, t) {
  return new e(...t);
});
const Qr = tt(Array.prototype.forEach), Ts = tt(Array.prototype.pop), $0 = tt(Array.prototype.push), sa = tt(String.prototype.toLowerCase), fn = tt(String.prototype.toString), Cs = tt(String.prototype.match), er = tt(String.prototype.replace), yf = tt(String.prototype.indexOf), wf = tt(String.prototype.trim), xt = tt(Object.prototype.hasOwnProperty), Le = tt(RegExp.prototype.test), tr = kf(TypeError);
function tt(a) {
  return function(e) {
    for (var t = arguments.length, r = new Array(t > 1 ? t - 1 : 0), n = 1; n < t; n++)
      r[n - 1] = arguments[n];
    return Pn(a, e, r);
  };
}
function kf(a) {
  return function() {
    for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
      t[r] = arguments[r];
    return Hn(a, t);
  };
}
function re(a, e) {
  let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : sa;
  Fs && Fs(a, null);
  let r = e.length;
  for (; r--; ) {
    let n = e[r];
    if (typeof n == "string") {
      const i = t(n);
      i !== n && (gf(e) || (e[r] = i), n = i);
    }
    a[n] = !0;
  }
  return a;
}
function xf(a) {
  for (let e = 0; e < a.length; e++)
    xt(a, e) || (a[e] = null);
  return a;
}
function x0(a) {
  const e = Pu(null);
  for (const [t, r] of qu(a))
    xt(a, t) && (Array.isArray(r) ? e[t] = xf(r) : r && typeof r == "object" && r.constructor === Object ? e[t] = x0(r) : e[t] = r);
  return e;
}
function rr(a, e) {
  for (; a !== null; ) {
    const r = bf(a, e);
    if (r) {
      if (r.get)
        return tt(r.get);
      if (typeof r.value == "function")
        return tt(r.value);
    }
    a = vf(a);
  }
  function t() {
    return null;
  }
  return t;
}
const Ms = qe(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), dn = qe(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), pn = qe(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), _f = qe(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), gn = qe(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), Df = qe(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), zs = qe(["#text"]), Bs = qe(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), vn = qe(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), Ns = qe(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), Jr = qe(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Af = ft(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Sf = ft(/<%[\w\W]*|[\w\W]*%>/gm), Ef = ft(/\$\{[\w\W]*}/gm), Ff = ft(/^data-[\-\w.\u00B7-\uFFFF]+$/), Tf = ft(/^aria-[\-\w]+$/), Hu = ft(
  /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
  // eslint-disable-line no-useless-escape
), Cf = ft(/^(?:\w+script|data):/i), Mf = ft(
  /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
  // eslint-disable-line no-control-regex
), Uu = ft(/^html$/i), zf = ft(/^[a-z][.\w]*(-[.\w]+)+$/i);
var Rs = /* @__PURE__ */ Object.freeze({
  __proto__: null,
  ARIA_ATTR: Tf,
  ATTR_WHITESPACE: Mf,
  CUSTOM_ELEMENT: zf,
  DATA_ATTR: Ff,
  DOCTYPE_NAME: Uu,
  ERB_EXPR: Sf,
  IS_ALLOWED_URI: Hu,
  IS_SCRIPT_OR_DATA: Cf,
  MUSTACHE_EXPR: Af,
  TMPLIT_EXPR: Ef
});
const ar = {
  element: 1,
  attribute: 2,
  text: 3,
  cdataSection: 4,
  entityReference: 5,
  // Deprecated
  entityNode: 6,
  // Deprecated
  progressingInstruction: 7,
  comment: 8,
  document: 9,
  documentType: 10,
  documentFragment: 11,
  notation: 12
  // Deprecated
}, Bf = function() {
  return typeof window > "u" ? null : window;
}, Nf = function(e, t) {
  if (typeof e != "object" || typeof e.createPolicy != "function")
    return null;
  let r = null;
  const n = "data-tt-policy-suffix";
  t && t.hasAttribute(n) && (r = t.getAttribute(n));
  const i = "dompurify" + (r ? "#" + r : "");
  try {
    return e.createPolicy(i, {
      createHTML(l) {
        return l;
      },
      createScriptURL(l) {
        return l;
      }
    });
  } catch {
    return console.warn("TrustedTypes policy " + i + " could not be created."), null;
  }
}, Is = function() {
  return {
    afterSanitizeAttributes: [],
    afterSanitizeElements: [],
    afterSanitizeShadowDOM: [],
    beforeSanitizeAttributes: [],
    beforeSanitizeElements: [],
    beforeSanitizeShadowDOM: [],
    uponSanitizeAttribute: [],
    uponSanitizeElement: [],
    uponSanitizeShadowNode: []
  };
};
function Gu() {
  let a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Bf();
  const e = (j) => Gu(j);
  if (e.version = "3.2.3", e.removed = [], !a || !a.document || a.document.nodeType !== ar.document)
    return e.isSupported = !1, e;
  let {
    document: t
  } = a;
  const r = t, n = r.currentScript, {
    DocumentFragment: i,
    HTMLTemplateElement: l,
    Node: s,
    Element: o,
    NodeFilter: h,
    NamedNodeMap: m = a.NamedNodeMap || a.MozNamedAttrMap,
    HTMLFormElement: d,
    DOMParser: g,
    trustedTypes: v
  } = a, y = o.prototype, x = rr(y, "cloneNode"), A = rr(y, "remove"), T = rr(y, "nextSibling"), _ = rr(y, "childNodes"), b = rr(y, "parentNode");
  if (typeof l == "function") {
    const j = t.createElement("template");
    j.content && j.content.ownerDocument && (t = j.content.ownerDocument);
  }
  let E, F = "";
  const {
    implementation: M,
    createNodeIterator: z,
    createDocumentFragment: q,
    getElementsByTagName: I
  } = t, {
    importNode: B
  } = r;
  let N = Is();
  e.isSupported = typeof qu == "function" && typeof b == "function" && M && M.createHTMLDocument !== void 0;
  const {
    MUSTACHE_EXPR: Q,
    ERB_EXPR: ke,
    TMPLIT_EXPR: ie,
    DATA_ATTR: xe,
    ARIA_ATTR: _e,
    IS_SCRIPT_OR_DATA: He,
    ATTR_WHITESPACE: se,
    CUSTOM_ELEMENT: Ee
  } = Rs;
  let {
    IS_ALLOWED_URI: De
  } = Rs, te = null;
  const le = re({}, [...Ms, ...dn, ...pn, ...gn, ...zs]);
  let ce = null;
  const Ce = re({}, [...Bs, ...vn, ...Ns, ...Jr]);
  let U = Object.seal(Pu(null, {
    tagNameCheck: {
      writable: !0,
      configurable: !1,
      enumerable: !0,
      value: null
    },
    attributeNameCheck: {
      writable: !0,
      configurable: !1,
      enumerable: !0,
      value: null
    },
    allowCustomizedBuiltInElements: {
      writable: !0,
      configurable: !1,
      enumerable: !0,
      value: !1
    }
  })), je = null, Ne = null, Ze = !0, dt = !0, pt = !1, Xt = !0, Et = !1, Yt = !0, gt = !1, T0 = !1, C0 = !1, Ft = !1, jt = !1, Zt = !1, _i = !0, Di = !1;
  const ju = "user-content-";
  let Ca = !0, j0 = !1, M0 = {}, z0 = null;
  const Ai = re({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
  let Si = null;
  const Ei = re({}, ["audio", "video", "img", "source", "image", "track"]);
  let Ma = null;
  const Fi = re({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), _r = "http://www.w3.org/1998/Math/MathML", Dr = "http://www.w3.org/2000/svg", Kt = "http://www.w3.org/1999/xhtml";
  let B0 = Kt, za = !1, Ba = null;
  const Zu = re({}, [_r, Dr, Kt], fn);
  let Ar = re({}, ["mi", "mo", "mn", "ms", "mtext"]), Sr = re({}, ["annotation-xml"]);
  const Ku = re({}, ["title", "style", "font", "a", "script"]);
  let Z0 = null;
  const Qu = ["application/xhtml+xml", "text/html"], Ju = "text/html";
  let Te = null, N0 = null;
  const $u = t.createElement("form"), Ti = function(S) {
    return S instanceof RegExp || S instanceof Function;
  }, Na = function() {
    let S = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
    if (!(N0 && N0 === S)) {
      if ((!S || typeof S != "object") && (S = {}), S = x0(S), Z0 = // eslint-disable-next-line unicorn/prefer-includes
      Qu.indexOf(S.PARSER_MEDIA_TYPE) === -1 ? Ju : S.PARSER_MEDIA_TYPE, Te = Z0 === "application/xhtml+xml" ? fn : sa, te = xt(S, "ALLOWED_TAGS") ? re({}, S.ALLOWED_TAGS, Te) : le, ce = xt(S, "ALLOWED_ATTR") ? re({}, S.ALLOWED_ATTR, Te) : Ce, Ba = xt(S, "ALLOWED_NAMESPACES") ? re({}, S.ALLOWED_NAMESPACES, fn) : Zu, Ma = xt(S, "ADD_URI_SAFE_ATTR") ? re(x0(Fi), S.ADD_URI_SAFE_ATTR, Te) : Fi, Si = xt(S, "ADD_DATA_URI_TAGS") ? re(x0(Ei), S.ADD_DATA_URI_TAGS, Te) : Ei, z0 = xt(S, "FORBID_CONTENTS") ? re({}, S.FORBID_CONTENTS, Te) : Ai, je = xt(S, "FORBID_TAGS") ? re({}, S.FORBID_TAGS, Te) : {}, Ne = xt(S, "FORBID_ATTR") ? re({}, S.FORBID_ATTR, Te) : {}, M0 = xt(S, "USE_PROFILES") ? S.USE_PROFILES : !1, Ze = S.ALLOW_ARIA_ATTR !== !1, dt = S.ALLOW_DATA_ATTR !== !1, pt = S.ALLOW_UNKNOWN_PROTOCOLS || !1, Xt = S.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Et = S.SAFE_FOR_TEMPLATES || !1, Yt = S.SAFE_FOR_XML !== !1, gt = S.WHOLE_DOCUMENT || !1, Ft = S.RETURN_DOM || !1, jt = S.RETURN_DOM_FRAGMENT || !1, Zt = S.RETURN_TRUSTED_TYPE || !1, C0 = S.FORCE_BODY || !1, _i = S.SANITIZE_DOM !== !1, Di = S.SANITIZE_NAMED_PROPS || !1, Ca = S.KEEP_CONTENT !== !1, j0 = S.IN_PLACE || !1, De = S.ALLOWED_URI_REGEXP || Hu, B0 = S.NAMESPACE || Kt, Ar = S.MATHML_TEXT_INTEGRATION_POINTS || Ar, Sr = S.HTML_INTEGRATION_POINTS || Sr, U = S.CUSTOM_ELEMENT_HANDLING || {}, S.CUSTOM_ELEMENT_HANDLING && Ti(S.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (U.tagNameCheck = S.CUSTOM_ELEMENT_HANDLING.tagNameCheck), S.CUSTOM_ELEMENT_HANDLING && Ti(S.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (U.attributeNameCheck = S.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), S.CUSTOM_ELEMENT_HANDLING && typeof S.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (U.allowCustomizedBuiltInElements = S.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Et && (dt = !1), jt && (Ft = !0), M0 && (te = re({}, zs), ce = [], M0.html === !0 && (re(te, Ms), re(ce, Bs)), M0.svg === !0 && (re(te, dn), re(ce, vn), re(ce, Jr)), M0.svgFilters === !0 && (re(te, pn), re(ce, vn), re(ce, Jr)), M0.mathMl === !0 && (re(te, gn), re(ce, Ns), re(ce, Jr))), S.ADD_TAGS && (te === le && (te = x0(te)), re(te, S.ADD_TAGS, Te)), S.ADD_ATTR && (ce === Ce && (ce = x0(ce)), re(ce, S.ADD_ATTR, Te)), S.ADD_URI_SAFE_ATTR && re(Ma, S.ADD_URI_SAFE_ATTR, Te), S.FORBID_CONTENTS && (z0 === Ai && (z0 = x0(z0)), re(z0, S.FORBID_CONTENTS, Te)), Ca && (te["#text"] = !0), gt && re(te, ["html", "head", "body"]), te.table && (re(te, ["tbody"]), delete je.tbody), S.TRUSTED_TYPES_POLICY) {
        if (typeof S.TRUSTED_TYPES_POLICY.createHTML != "function")
          throw tr('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
        if (typeof S.TRUSTED_TYPES_POLICY.createScriptURL != "function")
          throw tr('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
        E = S.TRUSTED_TYPES_POLICY, F = E.createHTML("");
      } else
        E === void 0 && (E = Nf(v, n)), E !== null && typeof F == "string" && (F = E.createHTML(""));
      qe && qe(S), N0 = S;
    }
  }, Ci = re({}, [...dn, ...pn, ..._f]), Mi = re({}, [...gn, ...Df]), e1 = function(S) {
    let P = b(S);
    (!P || !P.tagName) && (P = {
      namespaceURI: B0,
      tagName: "template"
    });
    const W = sa(S.tagName), de = sa(P.tagName);
    return Ba[S.namespaceURI] ? S.namespaceURI === Dr ? P.namespaceURI === Kt ? W === "svg" : P.namespaceURI === _r ? W === "svg" && (de === "annotation-xml" || Ar[de]) : !!Ci[W] : S.namespaceURI === _r ? P.namespaceURI === Kt ? W === "math" : P.namespaceURI === Dr ? W === "math" && Sr[de] : !!Mi[W] : S.namespaceURI === Kt ? P.namespaceURI === Dr && !Sr[de] || P.namespaceURI === _r && !Ar[de] ? !1 : !Mi[W] && (Ku[W] || !Ci[W]) : !!(Z0 === "application/xhtml+xml" && Ba[S.namespaceURI]) : !1;
  }, Tt = function(S) {
    $0(e.removed, {
      element: S
    });
    try {
      b(S).removeChild(S);
    } catch {
      A(S);
    }
  }, Er = function(S, P) {
    try {
      $0(e.removed, {
        attribute: P.getAttributeNode(S),
        from: P
      });
    } catch {
      $0(e.removed, {
        attribute: null,
        from: P
      });
    }
    if (P.removeAttribute(S), S === "is")
      if (Ft || jt)
        try {
          Tt(P);
        } catch {
        }
      else
        try {
          P.setAttribute(S, "");
        } catch {
        }
  }, zi = function(S) {
    let P = null, W = null;
    if (C0)
      S = "<remove></remove>" + S;
    else {
      const Me = Cs(S, /^[\r\n\t ]+/);
      W = Me && Me[0];
    }
    Z0 === "application/xhtml+xml" && B0 === Kt && (S = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + S + "</body></html>");
    const de = E ? E.createHTML(S) : S;
    if (B0 === Kt)
      try {
        P = new g().parseFromString(de, Z0);
      } catch {
      }
    if (!P || !P.documentElement) {
      P = M.createDocument(B0, "template", null);
      try {
        P.documentElement.innerHTML = za ? F : de;
      } catch {
      }
    }
    const Be = P.body || P.documentElement;
    return S && W && Be.insertBefore(t.createTextNode(W), Be.childNodes[0] || null), B0 === Kt ? I.call(P, gt ? "html" : "body")[0] : gt ? P.documentElement : Be;
  }, Bi = function(S) {
    return z.call(
      S.ownerDocument || S,
      S,
      // eslint-disable-next-line no-bitwise
      h.SHOW_ELEMENT | h.SHOW_COMMENT | h.SHOW_TEXT | h.SHOW_PROCESSING_INSTRUCTION | h.SHOW_CDATA_SECTION,
      null
    );
  }, Ra = function(S) {
    return S instanceof d && (typeof S.nodeName != "string" || typeof S.textContent != "string" || typeof S.removeChild != "function" || !(S.attributes instanceof m) || typeof S.removeAttribute != "function" || typeof S.setAttribute != "function" || typeof S.namespaceURI != "string" || typeof S.insertBefore != "function" || typeof S.hasChildNodes != "function");
  }, Ni = function(S) {
    return typeof s == "function" && S instanceof s;
  };
  function Qt(j, S, P) {
    Qr(j, (W) => {
      W.call(e, S, P, N0);
    });
  }
  const Ri = function(S) {
    let P = null;
    if (Qt(N.beforeSanitizeElements, S, null), Ra(S))
      return Tt(S), !0;
    const W = Te(S.nodeName);
    if (Qt(N.uponSanitizeElement, S, {
      tagName: W,
      allowedTags: te
    }), S.hasChildNodes() && !Ni(S.firstElementChild) && Le(/<[/\w]/g, S.innerHTML) && Le(/<[/\w]/g, S.textContent) || S.nodeType === ar.progressingInstruction || Yt && S.nodeType === ar.comment && Le(/<[/\w]/g, S.data))
      return Tt(S), !0;
    if (!te[W] || je[W]) {
      if (!je[W] && Li(W) && (U.tagNameCheck instanceof RegExp && Le(U.tagNameCheck, W) || U.tagNameCheck instanceof Function && U.tagNameCheck(W)))
        return !1;
      if (Ca && !z0[W]) {
        const de = b(S) || S.parentNode, Be = _(S) || S.childNodes;
        if (Be && de) {
          const Me = Be.length;
          for (let Ue = Me - 1; Ue >= 0; --Ue) {
            const Ct = x(Be[Ue], !0);
            Ct.__removalCount = (S.__removalCount || 0) + 1, de.insertBefore(Ct, T(S));
          }
        }
      }
      return Tt(S), !0;
    }
    return S instanceof o && !e1(S) || (W === "noscript" || W === "noembed" || W === "noframes") && Le(/<\/no(script|embed|frames)/i, S.innerHTML) ? (Tt(S), !0) : (Et && S.nodeType === ar.text && (P = S.textContent, Qr([Q, ke, ie], (de) => {
      P = er(P, de, " ");
    }), S.textContent !== P && ($0(e.removed, {
      element: S.cloneNode()
    }), S.textContent = P)), Qt(N.afterSanitizeElements, S, null), !1);
  }, Ii = function(S, P, W) {
    if (_i && (P === "id" || P === "name") && (W in t || W in $u))
      return !1;
    if (!(dt && !Ne[P] && Le(xe, P))) {
      if (!(Ze && Le(_e, P))) {
        if (!ce[P] || Ne[P]) {
          if (
            // First condition does a very basic check if a) it's basically a valid custom element tagname AND
            // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
            // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
            !(Li(S) && (U.tagNameCheck instanceof RegExp && Le(U.tagNameCheck, S) || U.tagNameCheck instanceof Function && U.tagNameCheck(S)) && (U.attributeNameCheck instanceof RegExp && Le(U.attributeNameCheck, P) || U.attributeNameCheck instanceof Function && U.attributeNameCheck(P)) || // Alternative, second condition checks if it's an `is`-attribute, AND
            // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
            P === "is" && U.allowCustomizedBuiltInElements && (U.tagNameCheck instanceof RegExp && Le(U.tagNameCheck, W) || U.tagNameCheck instanceof Function && U.tagNameCheck(W)))
          ) return !1;
        } else if (!Ma[P]) {
          if (!Le(De, er(W, se, ""))) {
            if (!((P === "src" || P === "xlink:href" || P === "href") && S !== "script" && yf(W, "data:") === 0 && Si[S])) {
              if (!(pt && !Le(He, er(W, se, "")))) {
                if (W)
                  return !1;
              }
            }
          }
        }
      }
    }
    return !0;
  }, Li = function(S) {
    return S !== "annotation-xml" && Cs(S, Ee);
  }, Oi = function(S) {
    Qt(N.beforeSanitizeAttributes, S, null);
    const {
      attributes: P
    } = S;
    if (!P || Ra(S))
      return;
    const W = {
      attrName: "",
      attrValue: "",
      keepAttr: !0,
      allowedAttributes: ce,
      forceKeepAttr: void 0
    };
    let de = P.length;
    for (; de--; ) {
      const Be = P[de], {
        name: Me,
        namespaceURI: Ue,
        value: Ct
      } = Be, K0 = Te(Me);
      let Re = Me === "value" ? Ct : wf(Ct);
      if (W.attrName = K0, W.attrValue = Re, W.keepAttr = !0, W.forceKeepAttr = void 0, Qt(N.uponSanitizeAttribute, S, W), Re = W.attrValue, Di && (K0 === "id" || K0 === "name") && (Er(Me, S), Re = ju + Re), Yt && Le(/((--!?|])>)|<\/(style|title)/i, Re)) {
        Er(Me, S);
        continue;
      }
      if (W.forceKeepAttr || (Er(Me, S), !W.keepAttr))
        continue;
      if (!Xt && Le(/\/>/i, Re)) {
        Er(Me, S);
        continue;
      }
      Et && Qr([Q, ke, ie], (Pi) => {
        Re = er(Re, Pi, " ");
      });
      const qi = Te(S.nodeName);
      if (Ii(qi, K0, Re)) {
        if (E && typeof v == "object" && typeof v.getAttributeType == "function" && !Ue)
          switch (v.getAttributeType(qi, K0)) {
            case "TrustedHTML": {
              Re = E.createHTML(Re);
              break;
            }
            case "TrustedScriptURL": {
              Re = E.createScriptURL(Re);
              break;
            }
          }
        try {
          Ue ? S.setAttributeNS(Ue, Me, Re) : S.setAttribute(Me, Re), Ra(S) ? Tt(S) : Ts(e.removed);
        } catch {
        }
      }
    }
    Qt(N.afterSanitizeAttributes, S, null);
  }, t1 = function j(S) {
    let P = null;
    const W = Bi(S);
    for (Qt(N.beforeSanitizeShadowDOM, S, null); P = W.nextNode(); )
      Qt(N.uponSanitizeShadowNode, P, null), Ri(P), Oi(P), P.content instanceof i && j(P.content);
    Qt(N.afterSanitizeShadowDOM, S, null);
  };
  return e.sanitize = function(j) {
    let S = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, P = null, W = null, de = null, Be = null;
    if (za = !j, za && (j = "<!-->"), typeof j != "string" && !Ni(j))
      if (typeof j.toString == "function") {
        if (j = j.toString(), typeof j != "string")
          throw tr("dirty is not a string, aborting");
      } else
        throw tr("toString is not a function");
    if (!e.isSupported)
      return j;
    if (T0 || Na(S), e.removed = [], typeof j == "string" && (j0 = !1), j0) {
      if (j.nodeName) {
        const Ct = Te(j.nodeName);
        if (!te[Ct] || je[Ct])
          throw tr("root node is forbidden and cannot be sanitized in-place");
      }
    } else if (j instanceof s)
      P = zi("<!---->"), W = P.ownerDocument.importNode(j, !0), W.nodeType === ar.element && W.nodeName === "BODY" || W.nodeName === "HTML" ? P = W : P.appendChild(W);
    else {
      if (!Ft && !Et && !gt && // eslint-disable-next-line unicorn/prefer-includes
      j.indexOf("<") === -1)
        return E && Zt ? E.createHTML(j) : j;
      if (P = zi(j), !P)
        return Ft ? null : Zt ? F : "";
    }
    P && C0 && Tt(P.firstChild);
    const Me = Bi(j0 ? j : P);
    for (; de = Me.nextNode(); )
      Ri(de), Oi(de), de.content instanceof i && t1(de.content);
    if (j0)
      return j;
    if (Ft) {
      if (jt)
        for (Be = q.call(P.ownerDocument); P.firstChild; )
          Be.appendChild(P.firstChild);
      else
        Be = P;
      return (ce.shadowroot || ce.shadowrootmode) && (Be = B.call(r, Be, !0)), Be;
    }
    let Ue = gt ? P.outerHTML : P.innerHTML;
    return gt && te["!doctype"] && P.ownerDocument && P.ownerDocument.doctype && P.ownerDocument.doctype.name && Le(Uu, P.ownerDocument.doctype.name) && (Ue = "<!DOCTYPE " + P.ownerDocument.doctype.name + `>
` + Ue), Et && Qr([Q, ke, ie], (Ct) => {
      Ue = er(Ue, Ct, " ");
    }), E && Zt ? E.createHTML(Ue) : Ue;
  }, e.setConfig = function() {
    let j = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
    Na(j), T0 = !0;
  }, e.clearConfig = function() {
    N0 = null, T0 = !1;
  }, e.isValidAttribute = function(j, S, P) {
    N0 || Na({});
    const W = Te(j), de = Te(S);
    return Ii(W, de, P);
  }, e.addHook = function(j, S) {
    typeof S == "function" && $0(N[j], S);
  }, e.removeHook = function(j) {
    return Ts(N[j]);
  }, e.removeHooks = function(j) {
    N[j] = [];
  }, e.removeAllHooks = function() {
    N = Is();
  }, e;
}
Gu();
const {
  SvelteComponent: Rf,
  append_hydration: oa,
  attr: e0,
  bubble: If,
  check_outros: Lf,
  children: Un,
  claim_component: Of,
  claim_element: Gn,
  claim_space: Ls,
  claim_text: qf,
  construct_svelte_component: Os,
  create_component: qs,
  create_slot: Pf,
  destroy_component: Ps,
  detach: hr,
  element: Vn,
  get_all_dirty_from_scope: Hf,
  get_slot_changes: Uf,
  group_outros: Gf,
  init: Vf,
  insert_hydration: Vu,
  listen: Wf,
  mount_component: Hs,
  safe_not_equal: Xf,
  set_data: Yf,
  set_style: $r,
  space: Us,
  text: jf,
  toggle_class: We,
  transition_in: bn,
  transition_out: yn,
  update_slot_base: Zf
} = window.__gradio__svelte__internal;
function Gs(a) {
  let e, t;
  return {
    c() {
      e = Vn("span"), t = jf(
        /*label*/
        a[1]
      ), this.h();
    },
    l(r) {
      e = Gn(r, "SPAN", { class: !0 });
      var n = Un(e);
      t = qf(
        n,
        /*label*/
        a[1]
      ), n.forEach(hr), this.h();
    },
    h() {
      e0(e, "class", "svelte-vk34kx");
    },
    m(r, n) {
      Vu(r, e, n), oa(e, t);
    },
    p(r, n) {
      n & /*label*/
      2 && Yf(
        t,
        /*label*/
        r[1]
      );
    },
    d(r) {
      r && hr(e);
    }
  };
}
function Kf(a) {
  let e, t, r, n, i, l, s, o, h = (
    /*show_label*/
    a[2] && Gs(a)
  );
  var m = (
    /*Icon*/
    a[0]
  );
  function d(y, x) {
    return {};
  }
  m && (n = Os(m, d()));
  const g = (
    /*#slots*/
    a[14].default
  ), v = Pf(
    g,
    a,
    /*$$scope*/
    a[13],
    null
  );
  return {
    c() {
      e = Vn("button"), h && h.c(), t = Us(), r = Vn("div"), n && qs(n.$$.fragment), i = Us(), v && v.c(), this.h();
    },
    l(y) {
      e = Gn(y, "BUTTON", {
        "aria-label": !0,
        "aria-haspopup": !0,
        title: !0,
        class: !0
      });
      var x = Un(e);
      h && h.l(x), t = Ls(x), r = Gn(x, "DIV", { class: !0 });
      var A = Un(r);
      n && Of(n.$$.fragment, A), i = Ls(A), v && v.l(A), A.forEach(hr), x.forEach(hr), this.h();
    },
    h() {
      e0(r, "class", "svelte-vk34kx"), We(
        r,
        "small",
        /*size*/
        a[4] === "small"
      ), We(
        r,
        "large",
        /*size*/
        a[4] === "large"
      ), We(
        r,
        "medium",
        /*size*/
        a[4] === "medium"
      ), e.disabled = /*disabled*/
      a[7], e0(
        e,
        "aria-label",
        /*label*/
        a[1]
      ), e0(
        e,
        "aria-haspopup",
        /*hasPopup*/
        a[8]
      ), e0(
        e,
        "title",
        /*label*/
        a[1]
      ), e0(e, "class", "svelte-vk34kx"), We(
        e,
        "pending",
        /*pending*/
        a[3]
      ), We(
        e,
        "padded",
        /*padded*/
        a[5]
      ), We(
        e,
        "highlight",
        /*highlight*/
        a[6]
      ), We(
        e,
        "transparent",
        /*transparent*/
        a[9]
      ), $r(e, "color", !/*disabled*/
      a[7] && /*_color*/
      a[11] ? (
        /*_color*/
        a[11]
      ) : "var(--block-label-text-color)"), $r(e, "--bg-color", /*disabled*/
      a[7] ? "auto" : (
        /*background*/
        a[10]
      ));
    },
    m(y, x) {
      Vu(y, e, x), h && h.m(e, null), oa(e, t), oa(e, r), n && Hs(n, r, null), oa(r, i), v && v.m(r, null), l = !0, s || (o = Wf(
        e,
        "click",
        /*click_handler*/
        a[15]
      ), s = !0);
    },
    p(y, [x]) {
      if (/*show_label*/
      y[2] ? h ? h.p(y, x) : (h = Gs(y), h.c(), h.m(e, t)) : h && (h.d(1), h = null), x & /*Icon*/
      1 && m !== (m = /*Icon*/
      y[0])) {
        if (n) {
          Gf();
          const A = n;
          yn(A.$$.fragment, 1, 0, () => {
            Ps(A, 1);
          }), Lf();
        }
        m ? (n = Os(m, d()), qs(n.$$.fragment), bn(n.$$.fragment, 1), Hs(n, r, i)) : n = null;
      }
      v && v.p && (!l || x & /*$$scope*/
      8192) && Zf(
        v,
        g,
        y,
        /*$$scope*/
        y[13],
        l ? Uf(
          g,
          /*$$scope*/
          y[13],
          x,
          null
        ) : Hf(
          /*$$scope*/
          y[13]
        ),
        null
      ), (!l || x & /*size*/
      16) && We(
        r,
        "small",
        /*size*/
        y[4] === "small"
      ), (!l || x & /*size*/
      16) && We(
        r,
        "large",
        /*size*/
        y[4] === "large"
      ), (!l || x & /*size*/
      16) && We(
        r,
        "medium",
        /*size*/
        y[4] === "medium"
      ), (!l || x & /*disabled*/
      128) && (e.disabled = /*disabled*/
      y[7]), (!l || x & /*label*/
      2) && e0(
        e,
        "aria-label",
        /*label*/
        y[1]
      ), (!l || x & /*hasPopup*/
      256) && e0(
        e,
        "aria-haspopup",
        /*hasPopup*/
        y[8]
      ), (!l || x & /*label*/
      2) && e0(
        e,
        "title",
        /*label*/
        y[1]
      ), (!l || x & /*pending*/
      8) && We(
        e,
        "pending",
        /*pending*/
        y[3]
      ), (!l || x & /*padded*/
      32) && We(
        e,
        "padded",
        /*padded*/
        y[5]
      ), (!l || x & /*highlight*/
      64) && We(
        e,
        "highlight",
        /*highlight*/
        y[6]
      ), (!l || x & /*transparent*/
      512) && We(
        e,
        "transparent",
        /*transparent*/
        y[9]
      ), x & /*disabled, _color*/
      2176 && $r(e, "color", !/*disabled*/
      y[7] && /*_color*/
      y[11] ? (
        /*_color*/
        y[11]
      ) : "var(--block-label-text-color)"), x & /*disabled, background*/
      1152 && $r(e, "--bg-color", /*disabled*/
      y[7] ? "auto" : (
        /*background*/
        y[10]
      ));
    },
    i(y) {
      l || (n && bn(n.$$.fragment, y), bn(v, y), l = !0);
    },
    o(y) {
      n && yn(n.$$.fragment, y), yn(v, y), l = !1;
    },
    d(y) {
      y && hr(e), h && h.d(), n && Ps(n), v && v.d(y), s = !1, o();
    }
  };
}
function Qf(a, e, t) {
  let r, { $$slots: n = {}, $$scope: i } = e, { Icon: l } = e, { label: s = "" } = e, { show_label: o = !1 } = e, { pending: h = !1 } = e, { size: m = "small" } = e, { padded: d = !0 } = e, { highlight: g = !1 } = e, { disabled: v = !1 } = e, { hasPopup: y = !1 } = e, { color: x = "var(--block-label-text-color)" } = e, { transparent: A = !1 } = e, { background: T = "var(--block-background-fill)" } = e;
  function _(b) {
    If.call(this, a, b);
  }
  return a.$$set = (b) => {
    "Icon" in b && t(0, l = b.Icon), "label" in b && t(1, s = b.label), "show_label" in b && t(2, o = b.show_label), "pending" in b && t(3, h = b.pending), "size" in b && t(4, m = b.size), "padded" in b && t(5, d = b.padded), "highlight" in b && t(6, g = b.highlight), "disabled" in b && t(7, v = b.disabled), "hasPopup" in b && t(8, y = b.hasPopup), "color" in b && t(12, x = b.color), "transparent" in b && t(9, A = b.transparent), "background" in b && t(10, T = b.background), "$$scope" in b && t(13, i = b.$$scope);
  }, a.$$.update = () => {
    a.$$.dirty & /*highlight, color*/
    4160 && t(11, r = g ? "var(--color-accent)" : x);
  }, [
    l,
    s,
    o,
    h,
    m,
    d,
    g,
    v,
    y,
    A,
    T,
    r,
    x,
    i,
    n,
    _
  ];
}
class Jf extends Rf {
  constructor(e) {
    super(), Vf(this, e, Qf, Kf, Xf, {
      Icon: 0,
      label: 1,
      show_label: 2,
      pending: 3,
      size: 4,
      padded: 5,
      highlight: 6,
      disabled: 7,
      hasPopup: 8,
      color: 12,
      transparent: 9,
      background: 10
    });
  }
}
const {
  SvelteComponent: $f,
  attr: Vs,
  children: e5,
  claim_element: t5,
  create_slot: r5,
  detach: Ws,
  element: a5,
  get_all_dirty_from_scope: n5,
  get_slot_changes: i5,
  init: l5,
  insert_hydration: s5,
  null_to_empty: Xs,
  safe_not_equal: o5,
  transition_in: u5,
  transition_out: c5,
  update_slot_base: h5
} = window.__gradio__svelte__internal;
function m5(a) {
  let e, t, r;
  const n = (
    /*#slots*/
    a[3].default
  ), i = r5(
    n,
    a,
    /*$$scope*/
    a[2],
    null
  );
  return {
    c() {
      e = a5("div"), i && i.c(), this.h();
    },
    l(l) {
      e = t5(l, "DIV", { class: !0 });
      var s = e5(e);
      i && i.l(s), s.forEach(Ws), this.h();
    },
    h() {
      Vs(e, "class", t = Xs(`icon-button-wrapper ${/*top_panel*/
      a[0] ? "top-panel" : ""} ${/*display_top_corner*/
      a[1] ? "display-top-corner" : "hide-top-corner"}`) + " svelte-1unz4en");
    },
    m(l, s) {
      s5(l, e, s), i && i.m(e, null), r = !0;
    },
    p(l, [s]) {
      i && i.p && (!r || s & /*$$scope*/
      4) && h5(
        i,
        n,
        l,
        /*$$scope*/
        l[2],
        r ? i5(
          n,
          /*$$scope*/
          l[2],
          s,
          null
        ) : n5(
          /*$$scope*/
          l[2]
        ),
        null
      ), (!r || s & /*top_panel, display_top_corner*/
      3 && t !== (t = Xs(`icon-button-wrapper ${/*top_panel*/
      l[0] ? "top-panel" : ""} ${/*display_top_corner*/
      l[1] ? "display-top-corner" : "hide-top-corner"}`) + " svelte-1unz4en")) && Vs(e, "class", t);
    },
    i(l) {
      r || (u5(i, l), r = !0);
    },
    o(l) {
      c5(i, l), r = !1;
    },
    d(l) {
      l && Ws(e), i && i.d(l);
    }
  };
}
function f5(a, e, t) {
  let { $$slots: r = {}, $$scope: n } = e, { top_panel: i = !0 } = e, { display_top_corner: l = !1 } = e;
  return a.$$set = (s) => {
    "top_panel" in s && t(0, i = s.top_panel), "display_top_corner" in s && t(1, l = s.display_top_corner), "$$scope" in s && t(2, n = s.$$scope);
  }, [i, l, n, r];
}
class d5 extends $f {
  constructor(e) {
    super(), l5(this, e, f5, m5, o5, { top_panel: 0, display_top_corner: 1 });
  }
}
const {
  SvelteComponent: p5,
  action_destroyer: g5,
  append_hydration: v5,
  attr: k0,
  check_outros: b5,
  children: y5,
  claim_component: yi,
  claim_element: w5,
  claim_space: k5,
  create_component: wi,
  destroy_component: ki,
  detach: Ys,
  element: x5,
  group_outros: _5,
  init: D5,
  insert_hydration: A5,
  mount_component: xi,
  safe_not_equal: S5,
  set_style: js,
  space: E5,
  toggle_class: Zs,
  transition_in: H0,
  transition_out: mr
} = window.__gradio__svelte__internal, { createEventDispatcher: F5 } = window.__gradio__svelte__internal;
function Ks(a) {
  let e, t;
  return e = new d5({
    props: {
      $$slots: { default: [T5] },
      $$scope: { ctx: a }
    }
  }), {
    c() {
      wi(e.$$.fragment);
    },
    l(r) {
      yi(e.$$.fragment, r);
    },
    m(r, n) {
      xi(e, r, n), t = !0;
    },
    p(r, n) {
      const i = {};
      n & /*$$scope, copied*/
      270336 && (i.$$scope = { dirty: n, ctx: r }), e.$set(i);
    },
    i(r) {
      t || (H0(e.$$.fragment, r), t = !0);
    },
    o(r) {
      mr(e.$$.fragment, r), t = !1;
    },
    d(r) {
      ki(e, r);
    }
  };
}
function T5(a) {
  let e, t;
  return e = new Jf({
    props: {
      Icon: (
        /*copied*/
        a[13] ? rs : ns
      ),
      label: (
        /*copied*/
        a[13] ? "Copied conversation" : "Copy conversation"
      )
    }
  }), e.$on(
    "click",
    /*handle_copy*/
    a[14]
  ), {
    c() {
      wi(e.$$.fragment);
    },
    l(r) {
      yi(e.$$.fragment, r);
    },
    m(r, n) {
      xi(e, r, n), t = !0;
    },
    p(r, n) {
      const i = {};
      n & /*copied*/
      8192 && (i.Icon = /*copied*/
      r[13] ? rs : ns), n & /*copied*/
      8192 && (i.label = /*copied*/
      r[13] ? "Copied conversation" : "Copy conversation"), e.$set(i);
    },
    i(r) {
      t || (H0(e.$$.fragment, r), t = !0);
    },
    o(r) {
      mr(e.$$.fragment, r), t = !1;
    },
    d(r) {
      ki(e, r);
    }
  };
}
function C5(a) {
  let e, t, r, n, i, l, s, o, h, m = (
    /*show_copy_button*/
    a[10] && Ks(a)
  );
  return r = new Du({
    props: {
      message: (
        /*value*/
        a[2]
      ),
      latex_delimiters: (
        /*latex_delimiters*/
        a[7]
      ),
      sanitize_html: (
        /*sanitize_html*/
        a[5]
      ),
      line_breaks: (
        /*line_breaks*/
        a[6]
      ),
      chatbot: !1,
      header_links: (
        /*header_links*/
        a[8]
      ),
      root: (
        /*root*/
        a[11]
      )
    }
  }), {
    c() {
      e = x5("div"), m && m.c(), t = E5(), wi(r.$$.fragment), this.h();
    },
    l(d) {
      e = w5(d, "DIV", {
        class: !0,
        "data-testid": !0,
        dir: !0,
        style: !0
      });
      var g = y5(e);
      m && m.l(g), t = k5(g), yi(r.$$.fragment, g), g.forEach(Ys), this.h();
    },
    h() {
      var d;
      k0(e, "class", n = "prose " + /*elem_classes*/
      a[0].join(" ") + " svelte-10njsez"), k0(e, "data-testid", "markdown"), k0(e, "dir", i = /*rtl*/
      a[4] ? "rtl" : "ltr"), k0(e, "style", l = /*height*/
      a[9] ? `max-height: ${jr(
        /*height*/
        a[9]
      )}; overflow-y: auto;` : ""), Zs(e, "hide", !/*visible*/
      a[1]), js(
        e,
        "min-height",
        /*min_height*/
        a[3] && /*loading_status*/
        ((d = a[12]) == null ? void 0 : d.status) !== "pending" ? jr(
          /*min_height*/
          a[3]
        ) : void 0
      );
    },
    m(d, g) {
      A5(d, e, g), m && m.m(e, null), v5(e, t), xi(r, e, null), s = !0, o || (h = g5(Mm.call(null, e)), o = !0);
    },
    p(d, [g]) {
      var x;
      /*show_copy_button*/
      d[10] ? m ? (m.p(d, g), g & /*show_copy_button*/
      1024 && H0(m, 1)) : (m = Ks(d), m.c(), H0(m, 1), m.m(e, t)) : m && (_5(), mr(m, 1, 1, () => {
        m = null;
      }), b5());
      const v = {};
      g & /*value*/
      4 && (v.message = /*value*/
      d[2]), g & /*latex_delimiters*/
      128 && (v.latex_delimiters = /*latex_delimiters*/
      d[7]), g & /*sanitize_html*/
      32 && (v.sanitize_html = /*sanitize_html*/
      d[5]), g & /*line_breaks*/
      64 && (v.line_breaks = /*line_breaks*/
      d[6]), g & /*header_links*/
      256 && (v.header_links = /*header_links*/
      d[8]), g & /*root*/
      2048 && (v.root = /*root*/
      d[11]), r.$set(v), (!s || g & /*elem_classes*/
      1 && n !== (n = "prose " + /*elem_classes*/
      d[0].join(" ") + " svelte-10njsez")) && k0(e, "class", n), (!s || g & /*rtl*/
      16 && i !== (i = /*rtl*/
      d[4] ? "rtl" : "ltr")) && k0(e, "dir", i), (!s || g & /*height*/
      512 && l !== (l = /*height*/
      d[9] ? `max-height: ${jr(
        /*height*/
        d[9]
      )}; overflow-y: auto;` : "")) && k0(e, "style", l), (!s || g & /*elem_classes, visible*/
      3) && Zs(e, "hide", !/*visible*/
      d[1]);
      const y = g & /*height*/
      512;
      (g & /*min_height, loading_status, height*/
      4616 || y) && js(
        e,
        "min-height",
        /*min_height*/
        d[3] && /*loading_status*/
        ((x = d[12]) == null ? void 0 : x.status) !== "pending" ? jr(
          /*min_height*/
          d[3]
        ) : void 0
      );
    },
    i(d) {
      s || (H0(m), H0(r.$$.fragment, d), s = !0);
    },
    o(d) {
      mr(m), mr(r.$$.fragment, d), s = !1;
    },
    d(d) {
      d && Ys(e), m && m.d(), ki(r), o = !1, h();
    }
  };
}
function M5(a, e, t) {
  let { elem_classes: r = [] } = e, { visible: n = !0 } = e, { value: i } = e, { min_height: l = void 0 } = e, { rtl: s = !1 } = e, { sanitize_html: o = !0 } = e, { line_breaks: h = !1 } = e, { latex_delimiters: m } = e, { header_links: d = !1 } = e, { height: g = void 0 } = e, { show_copy_button: v = !1 } = e, { root: y } = e, { loading_status: x = void 0 } = e, A = !1, T;
  const _ = F5();
  async function b() {
    "clipboard" in navigator && (await navigator.clipboard.writeText(i), _("copy", { value: i }), E());
  }
  function E() {
    t(13, A = !0), T && clearTimeout(T), T = setTimeout(
      () => {
        t(13, A = !1);
      },
      1e3
    );
  }
  return a.$$set = (F) => {
    "elem_classes" in F && t(0, r = F.elem_classes), "visible" in F && t(1, n = F.visible), "value" in F && t(2, i = F.value), "min_height" in F && t(3, l = F.min_height), "rtl" in F && t(4, s = F.rtl), "sanitize_html" in F && t(5, o = F.sanitize_html), "line_breaks" in F && t(6, h = F.line_breaks), "latex_delimiters" in F && t(7, m = F.latex_delimiters), "header_links" in F && t(8, d = F.header_links), "height" in F && t(9, g = F.height), "show_copy_button" in F && t(10, v = F.show_copy_button), "root" in F && t(11, y = F.root), "loading_status" in F && t(12, x = F.loading_status);
  }, a.$$.update = () => {
    a.$$.dirty & /*value*/
    4 && _("change");
  }, [
    r,
    n,
    i,
    l,
    s,
    o,
    h,
    m,
    d,
    g,
    v,
    y,
    x,
    A,
    b
  ];
}
class z5 extends p5 {
  constructor(e) {
    super(), D5(this, e, M5, C5, S5, {
      elem_classes: 0,
      visible: 1,
      value: 2,
      min_height: 3,
      rtl: 4,
      sanitize_html: 5,
      line_breaks: 6,
      latex_delimiters: 7,
      header_links: 8,
      height: 9,
      show_copy_button: 10,
      root: 11,
      loading_status: 12
    });
  }
}
const {
  SvelteComponent: B5,
  append_hydration: c0,
  assign: N5,
  attr: Qe,
  check_outros: R5,
  children: lr,
  claim_component: ba,
  claim_element: O0,
  claim_space: fr,
  claim_text: Wu,
  create_component: ya,
  destroy_component: wa,
  destroy_each: I5,
  detach: Nt,
  element: q0,
  ensure_array_like: Qs,
  get_spread_object: L5,
  get_spread_update: O5,
  group_outros: q5,
  init: P5,
  insert_hydration: dr,
  listen: wn,
  mount_component: ka,
  not_equal: H5,
  run_all: U5,
  set_data: Xu,
  space: pr,
  text: Yu,
  transition_in: _0,
  transition_out: U0
} = window.__gradio__svelte__internal;
function Js(a, e, t) {
  const r = a.slice();
  return r[24] = e[t], r[26] = t, r;
}
function G5(a) {
  let e;
  return {
    c() {
      e = Yu(
        /*label*/
        a[9]
      );
    },
    l(t) {
      e = Wu(
        t,
        /*label*/
        a[9]
      );
    },
    m(t, r) {
      dr(t, e, r);
    },
    p(t, r) {
      r & /*label*/
      512 && Xu(
        e,
        /*label*/
        t[9]
      );
    },
    d(t) {
      t && Nt(e);
    }
  };
}
function $s(a) {
  let e, t, r, n, i, l, s, o, h = (
    /*choice*/
    a[24].title + ""
  ), m, d, g, v, y, x, A, T, _;
  function b() {
    return (
      /*change_handler*/
      a[21](
        /*choice*/
        a[24]
      )
    );
  }
  function E(...M) {
    return (
      /*input_handler*/
      a[22](
        /*i*/
        a[26],
        /*choice*/
        a[24],
        ...M
      )
    );
  }
  function F(...M) {
    return (
      /*keydown_handler*/
      a[23](
        /*choice*/
        a[24],
        /*i*/
        a[26],
        ...M
      )
    );
  }
  return v = new z5({
    props: {
      value: (
        /*choice*/
        a[24].content
      ),
      elem_classes: (
        /*elem_classes*/
        a[3]
      ),
      visible: (
        /*visible*/
        a[4]
      ),
      rtl: (
        /*rtl*/
        a[14]
      ),
      latex_delimiters: (
        /*latex_delimiters*/
        a[15]
      ),
      root: (
        /*gradio*/
        a[1].root
      ),
      loading_status: (
        /*loading_status*/
        a[13]
      )
    }
  }), {
    c() {
      e = q0("label"), t = q0("div"), r = q0("input"), s = pr(), o = q0("span"), m = Yu(h), d = pr(), g = q0("div"), ya(v.$$.fragment), y = pr(), this.h();
    },
    l(M) {
      e = O0(M, "LABEL", { class: !0 });
      var z = lr(e);
      t = O0(z, "DIV", { class: !0 });
      var q = lr(t);
      r = O0(q, "INPUT", {
        type: !0,
        name: !0,
        title: !0,
        class: !0
      }), s = fr(q), o = O0(q, "SPAN", { class: !0 });
      var I = lr(o);
      m = Wu(I, h), I.forEach(Nt), q.forEach(Nt), d = fr(z), g = O0(z, "DIV", { class: !0 });
      var B = lr(g);
      ba(v.$$.fragment, B), B.forEach(Nt), y = fr(z), z.forEach(Nt), this.h();
    },
    h() {
      var M, z;
      r.disabled = /*disabled*/
      a[16], r.checked = n = /*value*/
      a[0].includes(
        /*choice*/
        a[24].id
      ), Qe(r, "type", "checkbox"), Qe(r, "name", i = /*choice*/
      (M = a[24].id) == null ? void 0 : M.toString()), Qe(r, "title", l = /*choice*/
      (z = a[24].title) == null ? void 0 : z.toString()), Qe(r, "class", "svelte-1wrfmio"), Qe(o, "class", "choice-title svelte-1wrfmio"), Qe(t, "class", "choice-header svelte-1wrfmio"), Qe(g, "class", "choice-content svelte-1wrfmio"), Qe(e, "class", x = "choice-container " + /*disabled*/
      (a[16] ? "disabled" : "") + " " + /*value*/
      (a[0].includes(
        /*choice*/
        a[24].id
      ) ? "selected" : "") + " svelte-1wrfmio");
    },
    m(M, z) {
      dr(M, e, z), c0(e, t), c0(t, r), c0(t, s), c0(t, o), c0(o, m), c0(e, d), c0(e, g), ka(v, g, null), c0(e, y), A = !0, T || (_ = [
        wn(r, "change", b),
        wn(r, "input", E),
        wn(r, "keydown", F)
      ], T = !0);
    },
    p(M, z) {
      var I, B;
      a = M, (!A || z & /*disabled*/
      65536) && (r.disabled = /*disabled*/
      a[16]), (!A || z & /*value, choices*/
      33 && n !== (n = /*value*/
      a[0].includes(
        /*choice*/
        a[24].id
      ))) && (r.checked = n), (!A || z & /*choices*/
      32 && i !== (i = /*choice*/
      (I = a[24].id) == null ? void 0 : I.toString())) && Qe(r, "name", i), (!A || z & /*choices*/
      32 && l !== (l = /*choice*/
      (B = a[24].title) == null ? void 0 : B.toString())) && Qe(r, "title", l), (!A || z & /*choices*/
      32) && h !== (h = /*choice*/
      a[24].title + "") && Xu(m, h);
      const q = {};
      z & /*choices*/
      32 && (q.value = /*choice*/
      a[24].content), z & /*elem_classes*/
      8 && (q.elem_classes = /*elem_classes*/
      a[3]), z & /*visible*/
      16 && (q.visible = /*visible*/
      a[4]), z & /*rtl*/
      16384 && (q.rtl = /*rtl*/
      a[14]), z & /*latex_delimiters*/
      32768 && (q.latex_delimiters = /*latex_delimiters*/
      a[15]), z & /*gradio*/
      2 && (q.root = /*gradio*/
      a[1].root), z & /*loading_status*/
      8192 && (q.loading_status = /*loading_status*/
      a[13]), v.$set(q), (!A || z & /*disabled, value, choices*/
      65569 && x !== (x = "choice-container " + /*disabled*/
      (a[16] ? "disabled" : "") + " " + /*value*/
      (a[0].includes(
        /*choice*/
        a[24].id
      ) ? "selected" : "") + " svelte-1wrfmio")) && Qe(e, "class", x);
    },
    i(M) {
      A || (_0(v.$$.fragment, M), A = !0);
    },
    o(M) {
      U0(v.$$.fragment, M), A = !1;
    },
    d(M) {
      M && Nt(e), wa(v), T = !1, U5(_);
    }
  };
}
function V5(a) {
  let e, t, r, n, i, l;
  const s = [
    { autoscroll: (
      /*gradio*/
      a[1].autoscroll
    ) },
    { i18n: (
      /*gradio*/
      a[1].i18n
    ) },
    /*loading_status*/
    a[13]
  ];
  let o = {};
  for (let g = 0; g < s.length; g += 1)
    o = N5(o, s[g]);
  e = new pf({ props: o }), e.$on(
    "clear_status",
    /*clear_status_handler*/
    a[20]
  ), r = new j2({
    props: {
      root: (
        /*root*/
        a[12]
      ),
      show_label: (
        /*show_label*/
        a[11]
      ),
      info: (
        /*info*/
        a[10]
      ),
      $$slots: { default: [G5] },
      $$scope: { ctx: a }
    }
  });
  let h = Qs(
    /*choices*/
    a[5]
  ), m = [];
  for (let g = 0; g < h.length; g += 1)
    m[g] = $s(Js(a, h, g));
  const d = (g) => U0(m[g], 1, 1, () => {
    m[g] = null;
  });
  return {
    c() {
      ya(e.$$.fragment), t = pr(), ya(r.$$.fragment), n = pr(), i = q0("div");
      for (let g = 0; g < m.length; g += 1)
        m[g].c();
      this.h();
    },
    l(g) {
      ba(e.$$.fragment, g), t = fr(g), ba(r.$$.fragment, g), n = fr(g), i = O0(g, "DIV", { class: !0, "data-testid": !0 });
      var v = lr(i);
      for (let y = 0; y < m.length; y += 1)
        m[y].l(v);
      v.forEach(Nt), this.h();
    },
    h() {
      Qe(i, "class", "wrap svelte-1wrfmio"), Qe(i, "data-testid", "checkbox-group");
    },
    m(g, v) {
      ka(e, g, v), dr(g, t, v), ka(r, g, v), dr(g, n, v), dr(g, i, v);
      for (let y = 0; y < m.length; y += 1)
        m[y] && m[y].m(i, null);
      l = !0;
    },
    p(g, v) {
      const y = v & /*gradio, loading_status*/
      8194 ? O5(s, [
        v & /*gradio*/
        2 && { autoscroll: (
          /*gradio*/
          g[1].autoscroll
        ) },
        v & /*gradio*/
        2 && { i18n: (
          /*gradio*/
          g[1].i18n
        ) },
        v & /*loading_status*/
        8192 && L5(
          /*loading_status*/
          g[13]
        )
      ]) : {};
      e.$set(y);
      const x = {};
      if (v & /*root*/
      4096 && (x.root = /*root*/
      g[12]), v & /*show_label*/
      2048 && (x.show_label = /*show_label*/
      g[11]), v & /*info*/
      1024 && (x.info = /*info*/
      g[10]), v & /*$$scope, label*/
      134218240 && (x.$$scope = { dirty: v, ctx: g }), r.$set(x), v & /*disabled, value, choices, elem_classes, visible, rtl, latex_delimiters, gradio, loading_status, toggle_choice*/
      254011) {
        h = Qs(
          /*choices*/
          g[5]
        );
        let A;
        for (A = 0; A < h.length; A += 1) {
          const T = Js(g, h, A);
          m[A] ? (m[A].p(T, v), _0(m[A], 1)) : (m[A] = $s(T), m[A].c(), _0(m[A], 1), m[A].m(i, null));
        }
        for (q5(), A = h.length; A < m.length; A += 1)
          d(A);
        R5();
      }
    },
    i(g) {
      if (!l) {
        _0(e.$$.fragment, g), _0(r.$$.fragment, g);
        for (let v = 0; v < h.length; v += 1)
          _0(m[v]);
        l = !0;
      }
    },
    o(g) {
      U0(e.$$.fragment, g), U0(r.$$.fragment, g), m = m.filter(Boolean);
      for (let v = 0; v < m.length; v += 1)
        U0(m[v]);
      l = !1;
    },
    d(g) {
      g && (Nt(t), Nt(n), Nt(i)), wa(e, g), wa(r, g), I5(m, g);
    }
  };
}
function W5(a) {
  let e, t;
  return e = new k1({
    props: {
      visible: (
        /*visible*/
        a[4]
      ),
      elem_id: (
        /*elem_id*/
        a[2]
      ),
      elem_classes: (
        /*elem_classes*/
        a[3]
      ),
      type: "fieldset",
      container: (
        /*container*/
        a[6]
      ),
      scale: (
        /*scale*/
        a[7]
      ),
      min_width: (
        /*min_width*/
        a[8]
      ),
      $$slots: { default: [V5] },
      $$scope: { ctx: a }
    }
  }), {
    c() {
      ya(e.$$.fragment);
    },
    l(r) {
      ba(e.$$.fragment, r);
    },
    m(r, n) {
      ka(e, r, n), t = !0;
    },
    p(r, [n]) {
      const i = {};
      n & /*visible*/
      16 && (i.visible = /*visible*/
      r[4]), n & /*elem_id*/
      4 && (i.elem_id = /*elem_id*/
      r[2]), n & /*elem_classes*/
      8 && (i.elem_classes = /*elem_classes*/
      r[3]), n & /*container*/
      64 && (i.container = /*container*/
      r[6]), n & /*scale*/
      128 && (i.scale = /*scale*/
      r[7]), n & /*min_width*/
      256 && (i.min_width = /*min_width*/
      r[8]), n & /*$$scope, choices, disabled, value, elem_classes, visible, rtl, latex_delimiters, gradio, loading_status, root, show_label, info, label*/
      134348347 && (i.$$scope = { dirty: n, ctx: r }), e.$set(i);
    },
    i(r) {
      t || (_0(e.$$.fragment, r), t = !0);
    },
    o(r) {
      U0(e.$$.fragment, r), t = !1;
    },
    d(r) {
      wa(e, r);
    }
  };
}
function X5(a, e, t) {
  let r, { gradio: n } = e, { elem_id: i = "" } = e, { elem_classes: l = [] } = e, { visible: s = !0 } = e, { value: o = [] } = e, { choices: h = [] } = e, { container: m = !0 } = e, { scale: d = null } = e, { min_width: g = void 0 } = e, { label: v = n.i18n("checkbox.checkbox_group") } = e, { info: y = void 0 } = e, { show_label: x = !0 } = e, { root: A } = e, { loading_status: T } = e, { interactive: _ = !0 } = e, { old_value: b = o.slice() } = e, { rtl: E = !1 } = e, { latex_delimiters: F } = e;
  function M(N) {
    o.includes(N) ? t(0, o = o.filter((Q) => Q !== N)) : t(0, o = [...o, N]), n.dispatch("input");
  }
  const z = () => n.dispatch("clear_status", T), q = (N) => M(N.id), I = (N, Q, ke) => n.dispatch("select", {
    index: N,
    value: Q.id,
    selected: ke.currentTarget.checked
  }), B = (N, Q, ke) => {
    ke.key === "Enter" && (M(N.id), n.dispatch("select", {
      index: Q,
      value: N.id,
      selected: !o.includes(N.id)
    }));
  };
  return a.$$set = (N) => {
    "gradio" in N && t(1, n = N.gradio), "elem_id" in N && t(2, i = N.elem_id), "elem_classes" in N && t(3, l = N.elem_classes), "visible" in N && t(4, s = N.visible), "value" in N && t(0, o = N.value), "choices" in N && t(5, h = N.choices), "container" in N && t(6, m = N.container), "scale" in N && t(7, d = N.scale), "min_width" in N && t(8, g = N.min_width), "label" in N && t(9, v = N.label), "info" in N && t(10, y = N.info), "show_label" in N && t(11, x = N.show_label), "root" in N && t(12, A = N.root), "loading_status" in N && t(13, T = N.loading_status), "interactive" in N && t(19, _ = N.interactive), "old_value" in N && t(18, b = N.old_value), "rtl" in N && t(14, E = N.rtl), "latex_delimiters" in N && t(15, F = N.latex_delimiters);
  }, a.$$.update = () => {
    a.$$.dirty & /*interactive*/
    524288 && t(16, r = !_), a.$$.dirty & /*old_value, value, gradio*/
    262147 && JSON.stringify(b) !== JSON.stringify(o) && (t(18, b = o), n.dispatch("change"));
  }, [
    o,
    n,
    i,
    l,
    s,
    h,
    m,
    d,
    g,
    v,
    y,
    x,
    A,
    T,
    E,
    F,
    r,
    M,
    b,
    _,
    z,
    q,
    I,
    B
  ];
}
class Z5 extends B5 {
  constructor(e) {
    super(), P5(this, e, X5, W5, H5, {
      gradio: 1,
      elem_id: 2,
      elem_classes: 3,
      visible: 4,
      value: 0,
      choices: 5,
      container: 6,
      scale: 7,
      min_width: 8,
      label: 9,
      info: 10,
      show_label: 11,
      root: 12,
      loading_status: 13,
      interactive: 19,
      old_value: 18,
      rtl: 14,
      latex_delimiters: 15
    });
  }
}
export {
  Z5 as default
};
