import CJS_COMPAT_NODE_URL from 'node:url';
import CJS_COMPAT_NODE_PATH from 'node:path';
import CJS_COMPAT_NODE_MODULE from "node:module";

const __filename = CJS_COMPAT_NODE_URL.fileURLToPath(import.meta.url);
const __dirname = CJS_COMPAT_NODE_PATH.dirname(__filename);
const require = CJS_COMPAT_NODE_MODULE.createRequire(import.meta.url);
// ------------------------------------------------------------
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
// ------------------------------------------------------------
import {
  a as r,
  b as D
} from "./chunk-HRN2KQZP.js";

// ../node_modules/@storybook/docs-mdx/dist/chunk-H6DQNFQR.js
var Oe = Object.create, B = Object.defineProperty, Le = Object.getOwnPropertyDescriptor, ie = Object.getOwnPropertyNames, De = Object.getPrototypeOf, Ae = Object.prototype.hasOwnProperty, _n = ((e) => typeof D < "u" ? D : typeof Proxy < "u" ? new Proxy(e, {
  get: /* @__PURE__ */ r((n, l) => (typeof D < "u" ? D : n)[l], "get")
}) : e)(function(e) {
  if (typeof D < "u")
    return D.apply(this, arguments);
  throw new Error('Dynamic require of "' + e + '" is not supported');
}), ue = /* @__PURE__ */ r((e, n) => /* @__PURE__ */ r(function() {
  return n || (0, e[ie(e)[0]])((n = { exports: {} }).exports, n), n.exports;
}, "__require2"), "__commonJS"), Me = /* @__PURE__ */ r((e, n) => {
  for (var l in n)
    B(e, l, { get: n[l], enumerable: !0 });
}, "__export"), Re = /* @__PURE__ */ r((e, n, l, t) => {
  if (n && typeof n == "object" || typeof n == "function")
    for (let a of ie(n))
      !Ae.call(e, a) && a !== l && B(e, a, { get: /* @__PURE__ */ r(() => n[a], "get"), enumerable: !(t = Le(n, a)) || t.enumerable });
  return e;
}, "__copyProps"), Te = /* @__PURE__ */ r((e, n, l) => (l = e != null ? Oe(De(e)) : {}, Re(
  // If the importer is in node compatibility mode or this is not an ESM
  // file that has been converted to a CommonJS file using a Babel-
  // compatible transform (i.e. "__esModule" has not been set), then set
  // "default" to the CommonJS "module.exports" for node compatibility.
  n || !e || !e.__esModule ? B(l, "default", { value: e, enumerable: !0 }) : l,
  e
)), "__toESM"), _e = ue({
  "node_modules/inline-style-parser/index.js"(e, n) {
    var l = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, t = /\n/g, a = /^\s*/, u = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, i = /^:\s*/, p = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, b = /^[;\s]*/, x = /^\s+|\s+$/g, S = `
`, m = "/", d = "*", g = "", C = "comment", E = "declaration";
    n.exports = function(v, M) {
      if (typeof v != "string")
        throw new TypeError("First argument must be a string");
      if (!v)
        return [];
      M = M || {};
      var _ = 1, L = 1;
      function W(f) {
        var c = f.match(t);
        c && (_ += c.length);
        var P = f.lastIndexOf(S);
        L = ~P ? f.length - P : L + f.length;
      }
      r(W, "updatePosition");
      function K() {
        var f = { line: _, column: L };
        return function(c) {
          return c.position = new Y(f), G(), c;
        };
      }
      r(K, "position2");
      function Y(f) {
        this.start = f, this.end = { line: _, column: L }, this.source = M.source;
      }
      r(Y, "Position"), Y.prototype.content = v;
      var Ce = [];
      function $(f) {
        var c = new Error(
          M.source + ":" + _ + ":" + L + ": " + f
        );
        if (c.reason = f, c.filename = M.source, c.line = _, c.column = L, c.source = v, M.silent)
          Ce.push(c);
        else
          throw c;
      }
      r($, "error");
      function X(f) {
        var c = f.exec(v);
        if (c) {
          var P = c[0];
          return W(P), v = v.slice(P.length), c;
        }
      }
      r(X, "match");
      function G() {
        X(a);
      }
      r(G, "whitespace2");
      function Z(f) {
        var c;
        for (f = f || []; c = Q(); )
          c !== !1 && f.push(c);
        return f;
      }
      r(Z, "comments");
      function Q() {
        var f = K();
        if (!(m != v.charAt(0) || d != v.charAt(1))) {
          for (var c = 2; g != v.charAt(c) && (d != v.charAt(c) || m != v.charAt(c + 1)); )
            ++c;
          if (c += 2, g === v.charAt(c - 1))
            return $("End of comment missing");
          var P = v.slice(2, c - 2);
          return L += 2, W(P), v = v.slice(c), L += 2, f({
            type: C,
            comment: P
          });
        }
      }
      r(Q, "comment2");
      function we() {
        var f = K(), c = X(u);
        if (c) {
          if (Q(), !X(i))
            return $("property missing ':'");
          var P = X(p), Pe = f({
            type: E,
            property: O(c[0].replace(l, g)),
            value: P ? O(P[0].replace(l, g)) : g
          });
          return X(b), Pe;
        }
      }
      r(we, "declaration");
      function Ee() {
        var f = [];
        Z(f);
        for (var c; c = we(); )
          c !== !1 && (f.push(c), Z(f));
        return f;
      }
      return r(Ee, "declarations"), G(), Ee();
    };
    function O(v) {
      return v ? v.replace(x, g) : g;
    }
    r(O, "trim");
  }
}), Xe = ue({
  "node_modules/style-to-object/index.js"(e, n) {
    var l = _e();
    function t(a, u) {
      var i = null;
      if (!a || typeof a != "string")
        return i;
      for (var p, b = l(a), x = typeof u == "function", S, m, d = 0, g = b.length; d < g; d++)
        p = b[d], S = p.property, m = p.value, x ? u(S, m, p) : m && (i || (i = {}), i[S] = m);
      return i;
    }
    r(t, "StyleToObject2"), n.exports = t, n.exports.default = t;
  }
});
var I = class {
  static {
    r(this, "Schema");
  }
  /**
   * @constructor
   * @param {Properties} property
   * @param {Normal} normal
   * @param {string} [space]
   */
  constructor(e, n, l) {
    this.property = e, this.normal = n, l && (this.space = l);
  }
};
I.prototype.property = {};
I.prototype.normal = {};
I.prototype.space = null;
function se(e, n) {
  let l = {}, t = {}, a = -1;
  for (; ++a < e.length; )
    Object.assign(l, e[a].property), Object.assign(t, e[a].normal);
  return new I(l, t, n);
}
r(se, "merge");
function U(e) {
  return e.toLowerCase();
}
r(U, "normalize");
var w = class {
  static {
    r(this, "Info");
  }
  /**
   * @constructor
   * @param {string} property
   * @param {string} attribute
   */
  constructor(e, n) {
    this.property = e, this.attribute = n;
  }
};
w.prototype.space = null;
w.prototype.boolean = !1;
w.prototype.booleanish = !1;
w.prototype.overloadedBoolean = !1;
w.prototype.number = !1;
w.prototype.commaSeparated = !1;
w.prototype.spaceSeparated = !1;
w.prototype.commaOrSpaceSeparated = !1;
w.prototype.mustUseProperty = !1;
w.prototype.defined = !1;
var J = {};
Me(J, {
  boolean: /* @__PURE__ */ r(() => s, "boolean"),
  booleanish: /* @__PURE__ */ r(() => y, "booleanish"),
  commaOrSpaceSeparated: /* @__PURE__ */ r(() => k, "commaOrSpaceSeparated"),
  commaSeparated: /* @__PURE__ */ r(() => R, "commaSeparated"),
  number: /* @__PURE__ */ r(() => o, "number"),
  overloadedBoolean: /* @__PURE__ */ r(() => ce, "overloadedBoolean"),
  spaceSeparated: /* @__PURE__ */ r(() => h, "spaceSeparated")
});
var Ie = 0, s = A(), y = A(), ce = A(), o = A(), h = A(), R = A(), k = A();
function A() {
  return 2 ** ++Ie;
}
r(A, "increment");
var j = Object.keys(J), H = class extends w {
  static {
    r(this, "DefinedInfo");
  }
  /**
   * @constructor
   * @param {string} property
   * @param {string} attribute
   * @param {number|null} [mask]
   * @param {string} [space]
   */
  constructor(e, n, l, t) {
    let a = -1;
    if (super(e, n), ee(this, "space", t), typeof l == "number")
      for (; ++a < j.length; ) {
        let u = j[a];
        ee(this, j[a], (l & J[u]) === J[u]);
      }
  }
};
H.prototype.defined = !0;
function ee(e, n, l) {
  l && (e[n] = l);
}
r(ee, "mark");
var Je = {}.hasOwnProperty;
function T(e) {
  let n = {}, l = {}, t;
  for (t in e.properties)
    if (Je.call(e.properties, t)) {
      let a = e.properties[t], u = new H(
        t,
        e.transform(e.attributes || {}, t),
        a,
        e.space
      );
      e.mustUseProperty && e.mustUseProperty.includes(t) && (u.mustUseProperty = !0), n[t] = u, l[U(t)] = t, l[U(u.attribute)] = t;
    }
  return new I(n, l, e.space);
}
r(T, "create");
var pe = T({
  space: "xlink",
  transform(e, n) {
    return "xlink:" + n.slice(5).toLowerCase();
  },
  properties: {
    xLinkActuate: null,
    xLinkArcRole: null,
    xLinkHref: null,
    xLinkRole: null,
    xLinkShow: null,
    xLinkTitle: null,
    xLinkType: null
  }
}), me = T({
  space: "xml",
  transform(e, n) {
    return "xml:" + n.slice(3).toLowerCase();
  },
  properties: { xmlLang: null, xmlBase: null, xmlSpace: null }
});
function de(e, n) {
  return n in e ? e[n] : n;
}
r(de, "caseSensitiveTransform");
function fe(e, n) {
  return de(e, n.toLowerCase());
}
r(fe, "caseInsensitiveTransform");
var ge = T({
  space: "xmlns",
  attributes: { xmlnsxlink: "xmlns:xlink" },
  transform: fe,
  properties: { xmlns: null, xmlnsXLink: null }
}), he = T({
  transform(e, n) {
    return n === "role" ? n : "aria-" + n.slice(4).toLowerCase();
  },
  properties: {
    ariaActiveDescendant: null,
    ariaAtomic: y,
    ariaAutoComplete: null,
    ariaBusy: y,
    ariaChecked: y,
    ariaColCount: o,
    ariaColIndex: o,
    ariaColSpan: o,
    ariaControls: h,
    ariaCurrent: null,
    ariaDescribedBy: h,
    ariaDetails: null,
    ariaDisabled: y,
    ariaDropEffect: h,
    ariaErrorMessage: null,
    ariaExpanded: y,
    ariaFlowTo: h,
    ariaGrabbed: y,
    ariaHasPopup: null,
    ariaHidden: y,
    ariaInvalid: null,
    ariaKeyShortcuts: null,
    ariaLabel: null,
    ariaLabelledBy: h,
    ariaLevel: o,
    ariaLive: null,
    ariaModal: y,
    ariaMultiLine: y,
    ariaMultiSelectable: y,
    ariaOrientation: null,
    ariaOwns: h,
    ariaPlaceholder: null,
    ariaPosInSet: o,
    ariaPressed: y,
    ariaReadOnly: y,
    ariaRelevant: null,
    ariaRequired: y,
    ariaRoleDescription: h,
    ariaRowCount: o,
    ariaRowIndex: o,
    ariaRowSpan: o,
    ariaSelected: y,
    ariaSetSize: o,
    ariaSort: null,
    ariaValueMax: o,
    ariaValueMin: o,
    ariaValueNow: o,
    ariaValueText: null,
    role: null
  }
}), Ne = T({
  space: "html",
  attributes: {
    acceptcharset: "accept-charset",
    classname: "class",
    htmlfor: "for",
    httpequiv: "http-equiv"
  },
  transform: fe,
  mustUseProperty: ["checked", "multiple", "muted", "selected"],
  properties: {
    // Standard Properties.
    abbr: null,
    accept: R,
    acceptCharset: h,
    accessKey: h,
    action: null,
    allow: null,
    allowFullScreen: s,
    allowPaymentRequest: s,
    allowUserMedia: s,
    alt: null,
    as: null,
    async: s,
    autoCapitalize: null,
    autoComplete: h,
    autoFocus: s,
    autoPlay: s,
    blocking: h,
    capture: s,
    charSet: null,
    checked: s,
    cite: null,
    className: h,
    cols: o,
    colSpan: null,
    content: null,
    contentEditable: y,
    controls: s,
    controlsList: h,
    coords: o | R,
    crossOrigin: null,
    data: null,
    dateTime: null,
    decoding: null,
    default: s,
    defer: s,
    dir: null,
    dirName: null,
    disabled: s,
    download: ce,
    draggable: y,
    encType: null,
    enterKeyHint: null,
    fetchPriority: null,
    form: null,
    formAction: null,
    formEncType: null,
    formMethod: null,
    formNoValidate: s,
    formTarget: null,
    headers: h,
    height: o,
    hidden: s,
    high: o,
    href: null,
    hrefLang: null,
    htmlFor: h,
    httpEquiv: h,
    id: null,
    imageSizes: null,
    imageSrcSet: null,
    inert: s,
    inputMode: null,
    integrity: null,
    is: null,
    isMap: s,
    itemId: null,
    itemProp: h,
    itemRef: h,
    itemScope: s,
    itemType: h,
    kind: null,
    label: null,
    lang: null,
    language: null,
    list: null,
    loading: null,
    loop: s,
    low: o,
    manifest: null,
    max: null,
    maxLength: o,
    media: null,
    method: null,
    min: null,
    minLength: o,
    multiple: s,
    muted: s,
    name: null,
    nonce: null,
    noModule: s,
    noValidate: s,
    onAbort: null,
    onAfterPrint: null,
    onAuxClick: null,
    onBeforeMatch: null,
    onBeforePrint: null,
    onBeforeToggle: null,
    onBeforeUnload: null,
    onBlur: null,
    onCancel: null,
    onCanPlay: null,
    onCanPlayThrough: null,
    onChange: null,
    onClick: null,
    onClose: null,
    onContextLost: null,
    onContextMenu: null,
    onContextRestored: null,
    onCopy: null,
    onCueChange: null,
    onCut: null,
    onDblClick: null,
    onDrag: null,
    onDragEnd: null,
    onDragEnter: null,
    onDragExit: null,
    onDragLeave: null,
    onDragOver: null,
    onDragStart: null,
    onDrop: null,
    onDurationChange: null,
    onEmptied: null,
    onEnded: null,
    onError: null,
    onFocus: null,
    onFormData: null,
    onHashChange: null,
    onInput: null,
    onInvalid: null,
    onKeyDown: null,
    onKeyPress: null,
    onKeyUp: null,
    onLanguageChange: null,
    onLoad: null,
    onLoadedData: null,
    onLoadedMetadata: null,
    onLoadEnd: null,
    onLoadStart: null,
    onMessage: null,
    onMessageError: null,
    onMouseDown: null,
    onMouseEnter: null,
    onMouseLeave: null,
    onMouseMove: null,
    onMouseOut: null,
    onMouseOver: null,
    onMouseUp: null,
    onOffline: null,
    onOnline: null,
    onPageHide: null,
    onPageShow: null,
    onPaste: null,
    onPause: null,
    onPlay: null,
    onPlaying: null,
    onPopState: null,
    onProgress: null,
    onRateChange: null,
    onRejectionHandled: null,
    onReset: null,
    onResize: null,
    onScroll: null,
    onScrollEnd: null,
    onSecurityPolicyViolation: null,
    onSeeked: null,
    onSeeking: null,
    onSelect: null,
    onSlotChange: null,
    onStalled: null,
    onStorage: null,
    onSubmit: null,
    onSuspend: null,
    onTimeUpdate: null,
    onToggle: null,
    onUnhandledRejection: null,
    onUnload: null,
    onVolumeChange: null,
    onWaiting: null,
    onWheel: null,
    open: s,
    optimum: o,
    pattern: null,
    ping: h,
    placeholder: null,
    playsInline: s,
    popover: null,
    popoverTarget: null,
    popoverTargetAction: null,
    poster: null,
    preload: null,
    readOnly: s,
    referrerPolicy: null,
    rel: h,
    required: s,
    reversed: s,
    rows: o,
    rowSpan: o,
    sandbox: h,
    scope: null,
    scoped: s,
    seamless: s,
    selected: s,
    shadowRootDelegatesFocus: s,
    shadowRootMode: null,
    shape: null,
    size: o,
    sizes: null,
    slot: null,
    span: o,
    spellCheck: y,
    src: null,
    srcDoc: null,
    srcLang: null,
    srcSet: null,
    start: o,
    step: null,
    style: null,
    tabIndex: o,
    target: null,
    title: null,
    translate: null,
    type: null,
    typeMustMatch: s,
    useMap: null,
    value: y,
    width: o,
    wrap: null,
    // Legacy.
    // See: https://html.spec.whatwg.org/#other-elements,-attributes-and-apis
    align: null,
    // Several. Use CSS `text-align` instead,
    aLink: null,
    // `<body>`. Use CSS `a:active {color}` instead
    archive: h,
    // `<object>`. List of URIs to archives
    axis: null,
    // `<td>` and `<th>`. Use `scope` on `<th>`
    background: null,
    // `<body>`. Use CSS `background-image` instead
    bgColor: null,
    // `<body>` and table elements. Use CSS `background-color` instead
    border: o,
    // `<table>`. Use CSS `border-width` instead,
    borderColor: null,
    // `<table>`. Use CSS `border-color` instead,
    bottomMargin: o,
    // `<body>`
    cellPadding: null,
    // `<table>`
    cellSpacing: null,
    // `<table>`
    char: null,
    // Several table elements. When `align=char`, sets the character to align on
    charOff: null,
    // Several table elements. When `char`, offsets the alignment
    classId: null,
    // `<object>`
    clear: null,
    // `<br>`. Use CSS `clear` instead
    code: null,
    // `<object>`
    codeBase: null,
    // `<object>`
    codeType: null,
    // `<object>`
    color: null,
    // `<font>` and `<hr>`. Use CSS instead
    compact: s,
    // Lists. Use CSS to reduce space between items instead
    declare: s,
    // `<object>`
    event: null,
    // `<script>`
    face: null,
    // `<font>`. Use CSS instead
    frame: null,
    // `<table>`
    frameBorder: null,
    // `<iframe>`. Use CSS `border` instead
    hSpace: o,
    // `<img>` and `<object>`
    leftMargin: o,
    // `<body>`
    link: null,
    // `<body>`. Use CSS `a:link {color: *}` instead
    longDesc: null,
    // `<frame>`, `<iframe>`, and `<img>`. Use an `<a>`
    lowSrc: null,
    // `<img>`. Use a `<picture>`
    marginHeight: o,
    // `<body>`
    marginWidth: o,
    // `<body>`
    noResize: s,
    // `<frame>`
    noHref: s,
    // `<area>`. Use no href instead of an explicit `nohref`
    noShade: s,
    // `<hr>`. Use background-color and height instead of borders
    noWrap: s,
    // `<td>` and `<th>`
    object: null,
    // `<applet>`
    profile: null,
    // `<head>`
    prompt: null,
    // `<isindex>`
    rev: null,
    // `<link>`
    rightMargin: o,
    // `<body>`
    rules: null,
    // `<table>`
    scheme: null,
    // `<meta>`
    scrolling: y,
    // `<frame>`. Use overflow in the child context
    standby: null,
    // `<object>`
    summary: null,
    // `<table>`
    text: null,
    // `<body>`. Use CSS `color` instead
    topMargin: o,
    // `<body>`
    valueType: null,
    // `<param>`
    version: null,
    // `<html>`. Use a doctype.
    vAlign: null,
    // Several. Use CSS `vertical-align` instead
    vLink: null,
    // `<body>`. Use CSS `a:visited {color}` instead
    vSpace: o,
    // `<img>` and `<object>`
    // Non-standard Properties.
    allowTransparency: null,
    autoCorrect: null,
    autoSave: null,
    disablePictureInPicture: s,
    disableRemotePlayback: s,
    prefix: null,
    property: null,
    results: o,
    security: null,
    unselectable: null
  }
}), je = T({
  space: "svg",
  attributes: {
    accentHeight: "accent-height",
    alignmentBaseline: "alignment-baseline",
    arabicForm: "arabic-form",
    baselineShift: "baseline-shift",
    capHeight: "cap-height",
    className: "class",
    clipPath: "clip-path",
    clipRule: "clip-rule",
    colorInterpolation: "color-interpolation",
    colorInterpolationFilters: "color-interpolation-filters",
    colorProfile: "color-profile",
    colorRendering: "color-rendering",
    crossOrigin: "crossorigin",
    dataType: "datatype",
    dominantBaseline: "dominant-baseline",
    enableBackground: "enable-background",
    fillOpacity: "fill-opacity",
    fillRule: "fill-rule",
    floodColor: "flood-color",
    floodOpacity: "flood-opacity",
    fontFamily: "font-family",
    fontSize: "font-size",
    fontSizeAdjust: "font-size-adjust",
    fontStretch: "font-stretch",
    fontStyle: "font-style",
    fontVariant: "font-variant",
    fontWeight: "font-weight",
    glyphName: "glyph-name",
    glyphOrientationHorizontal: "glyph-orientation-horizontal",
    glyphOrientationVertical: "glyph-orientation-vertical",
    hrefLang: "hreflang",
    horizAdvX: "horiz-adv-x",
    horizOriginX: "horiz-origin-x",
    horizOriginY: "horiz-origin-y",
    imageRendering: "image-rendering",
    letterSpacing: "letter-spacing",
    lightingColor: "lighting-color",
    markerEnd: "marker-end",
    markerMid: "marker-mid",
    markerStart: "marker-start",
    navDown: "nav-down",
    navDownLeft: "nav-down-left",
    navDownRight: "nav-down-right",
    navLeft: "nav-left",
    navNext: "nav-next",
    navPrev: "nav-prev",
    navRight: "nav-right",
    navUp: "nav-up",
    navUpLeft: "nav-up-left",
    navUpRight: "nav-up-right",
    onAbort: "onabort",
    onActivate: "onactivate",
    onAfterPrint: "onafterprint",
    onBeforePrint: "onbeforeprint",
    onBegin: "onbegin",
    onCancel: "oncancel",
    onCanPlay: "oncanplay",
    onCanPlayThrough: "oncanplaythrough",
    onChange: "onchange",
    onClick: "onclick",
    onClose: "onclose",
    onCopy: "oncopy",
    onCueChange: "oncuechange",
    onCut: "oncut",
    onDblClick: "ondblclick",
    onDrag: "ondrag",
    onDragEnd: "ondragend",
    onDragEnter: "ondragenter",
    onDragExit: "ondragexit",
    onDragLeave: "ondragleave",
    onDragOver: "ondragover",
    onDragStart: "ondragstart",
    onDrop: "ondrop",
    onDurationChange: "ondurationchange",
    onEmptied: "onemptied",
    onEnd: "onend",
    onEnded: "onended",
    onError: "onerror",
    onFocus: "onfocus",
    onFocusIn: "onfocusin",
    onFocusOut: "onfocusout",
    onHashChange: "onhashchange",
    onInput: "oninput",
    onInvalid: "oninvalid",
    onKeyDown: "onkeydown",
    onKeyPress: "onkeypress",
    onKeyUp: "onkeyup",
    onLoad: "onload",
    onLoadedData: "onloadeddata",
    onLoadedMetadata: "onloadedmetadata",
    onLoadStart: "onloadstart",
    onMessage: "onmessage",
    onMouseDown: "onmousedown",
    onMouseEnter: "onmouseenter",
    onMouseLeave: "onmouseleave",
    onMouseMove: "onmousemove",
    onMouseOut: "onmouseout",
    onMouseOver: "onmouseover",
    onMouseUp: "onmouseup",
    onMouseWheel: "onmousewheel",
    onOffline: "onoffline",
    onOnline: "ononline",
    onPageHide: "onpagehide",
    onPageShow: "onpageshow",
    onPaste: "onpaste",
    onPause: "onpause",
    onPlay: "onplay",
    onPlaying: "onplaying",
    onPopState: "onpopstate",
    onProgress: "onprogress",
    onRateChange: "onratechange",
    onRepeat: "onrepeat",
    onReset: "onreset",
    onResize: "onresize",
    onScroll: "onscroll",
    onSeeked: "onseeked",
    onSeeking: "onseeking",
    onSelect: "onselect",
    onShow: "onshow",
    onStalled: "onstalled",
    onStorage: "onstorage",
    onSubmit: "onsubmit",
    onSuspend: "onsuspend",
    onTimeUpdate: "ontimeupdate",
    onToggle: "ontoggle",
    onUnload: "onunload",
    onVolumeChange: "onvolumechange",
    onWaiting: "onwaiting",
    onZoom: "onzoom",
    overlinePosition: "overline-position",
    overlineThickness: "overline-thickness",
    paintOrder: "paint-order",
    panose1: "panose-1",
    pointerEvents: "pointer-events",
    referrerPolicy: "referrerpolicy",
    renderingIntent: "rendering-intent",
    shapeRendering: "shape-rendering",
    stopColor: "stop-color",
    stopOpacity: "stop-opacity",
    strikethroughPosition: "strikethrough-position",
    strikethroughThickness: "strikethrough-thickness",
    strokeDashArray: "stroke-dasharray",
    strokeDashOffset: "stroke-dashoffset",
    strokeLineCap: "stroke-linecap",
    strokeLineJoin: "stroke-linejoin",
    strokeMiterLimit: "stroke-miterlimit",
    strokeOpacity: "stroke-opacity",
    strokeWidth: "stroke-width",
    tabIndex: "tabindex",
    textAnchor: "text-anchor",
    textDecoration: "text-decoration",
    textRendering: "text-rendering",
    transformOrigin: "transform-origin",
    typeOf: "typeof",
    underlinePosition: "underline-position",
    underlineThickness: "underline-thickness",
    unicodeBidi: "unicode-bidi",
    unicodeRange: "unicode-range",
    unitsPerEm: "units-per-em",
    vAlphabetic: "v-alphabetic",
    vHanging: "v-hanging",
    vIdeographic: "v-ideographic",
    vMathematical: "v-mathematical",
    vectorEffect: "vector-effect",
    vertAdvY: "vert-adv-y",
    vertOriginX: "vert-origin-x",
    vertOriginY: "vert-origin-y",
    wordSpacing: "word-spacing",
    writingMode: "writing-mode",
    xHeight: "x-height",
    // These were camelcased in Tiny. Now lowercased in SVG 2
    playbackOrder: "playbackorder",
    timelineBegin: "timelinebegin"
  },
  transform: de,
  properties: {
    about: k,
    accentHeight: o,
    accumulate: null,
    additive: null,
    alignmentBaseline: null,
    alphabetic: o,
    amplitude: o,
    arabicForm: null,
    ascent: o,
    attributeName: null,
    attributeType: null,
    azimuth: o,
    bandwidth: null,
    baselineShift: null,
    baseFrequency: null,
    baseProfile: null,
    bbox: null,
    begin: null,
    bias: o,
    by: null,
    calcMode: null,
    capHeight: o,
    className: h,
    clip: null,
    clipPath: null,
    clipPathUnits: null,
    clipRule: null,
    color: null,
    colorInterpolation: null,
    colorInterpolationFilters: null,
    colorProfile: null,
    colorRendering: null,
    content: null,
    contentScriptType: null,
    contentStyleType: null,
    crossOrigin: null,
    cursor: null,
    cx: null,
    cy: null,
    d: null,
    dataType: null,
    defaultAction: null,
    descent: o,
    diffuseConstant: o,
    direction: null,
    display: null,
    dur: null,
    divisor: o,
    dominantBaseline: null,
    download: s,
    dx: null,
    dy: null,
    edgeMode: null,
    editable: null,
    elevation: o,
    enableBackground: null,
    end: null,
    event: null,
    exponent: o,
    externalResourcesRequired: null,
    fill: null,
    fillOpacity: o,
    fillRule: null,
    filter: null,
    filterRes: null,
    filterUnits: null,
    floodColor: null,
    floodOpacity: null,
    focusable: null,
    focusHighlight: null,
    fontFamily: null,
    fontSize: null,
    fontSizeAdjust: null,
    fontStretch: null,
    fontStyle: null,
    fontVariant: null,
    fontWeight: null,
    format: null,
    fr: null,
    from: null,
    fx: null,
    fy: null,
    g1: R,
    g2: R,
    glyphName: R,
    glyphOrientationHorizontal: null,
    glyphOrientationVertical: null,
    glyphRef: null,
    gradientTransform: null,
    gradientUnits: null,
    handler: null,
    hanging: o,
    hatchContentUnits: null,
    hatchUnits: null,
    height: null,
    href: null,
    hrefLang: null,
    horizAdvX: o,
    horizOriginX: o,
    horizOriginY: o,
    id: null,
    ideographic: o,
    imageRendering: null,
    initialVisibility: null,
    in: null,
    in2: null,
    intercept: o,
    k: o,
    k1: o,
    k2: o,
    k3: o,
    k4: o,
    kernelMatrix: k,
    kernelUnitLength: null,
    keyPoints: null,
    // SEMI_COLON_SEPARATED
    keySplines: null,
    // SEMI_COLON_SEPARATED
    keyTimes: null,
    // SEMI_COLON_SEPARATED
    kerning: null,
    lang: null,
    lengthAdjust: null,
    letterSpacing: null,
    lightingColor: null,
    limitingConeAngle: o,
    local: null,
    markerEnd: null,
    markerMid: null,
    markerStart: null,
    markerHeight: null,
    markerUnits: null,
    markerWidth: null,
    mask: null,
    maskContentUnits: null,
    maskUnits: null,
    mathematical: null,
    max: null,
    media: null,
    mediaCharacterEncoding: null,
    mediaContentEncodings: null,
    mediaSize: o,
    mediaTime: null,
    method: null,
    min: null,
    mode: null,
    name: null,
    navDown: null,
    navDownLeft: null,
    navDownRight: null,
    navLeft: null,
    navNext: null,
    navPrev: null,
    navRight: null,
    navUp: null,
    navUpLeft: null,
    navUpRight: null,
    numOctaves: null,
    observer: null,
    offset: null,
    onAbort: null,
    onActivate: null,
    onAfterPrint: null,
    onBeforePrint: null,
    onBegin: null,
    onCancel: null,
    onCanPlay: null,
    onCanPlayThrough: null,
    onChange: null,
    onClick: null,
    onClose: null,
    onCopy: null,
    onCueChange: null,
    onCut: null,
    onDblClick: null,
    onDrag: null,
    onDragEnd: null,
    onDragEnter: null,
    onDragExit: null,
    onDragLeave: null,
    onDragOver: null,
    onDragStart: null,
    onDrop: null,
    onDurationChange: null,
    onEmptied: null,
    onEnd: null,
    onEnded: null,
    onError: null,
    onFocus: null,
    onFocusIn: null,
    onFocusOut: null,
    onHashChange: null,
    onInput: null,
    onInvalid: null,
    onKeyDown: null,
    onKeyPress: null,
    onKeyUp: null,
    onLoad: null,
    onLoadedData: null,
    onLoadedMetadata: null,
    onLoadStart: null,
    onMessage: null,
    onMouseDown: null,
    onMouseEnter: null,
    onMouseLeave: null,
    onMouseMove: null,
    onMouseOut: null,
    onMouseOver: null,
    onMouseUp: null,
    onMouseWheel: null,
    onOffline: null,
    onOnline: null,
    onPageHide: null,
    onPageShow: null,
    onPaste: null,
    onPause: null,
    onPlay: null,
    onPlaying: null,
    onPopState: null,
    onProgress: null,
    onRateChange: null,
    onRepeat: null,
    onReset: null,
    onResize: null,
    onScroll: null,
    onSeeked: null,
    onSeeking: null,
    onSelect: null,
    onShow: null,
    onStalled: null,
    onStorage: null,
    onSubmit: null,
    onSuspend: null,
    onTimeUpdate: null,
    onToggle: null,
    onUnload: null,
    onVolumeChange: null,
    onWaiting: null,
    onZoom: null,
    opacity: null,
    operator: null,
    order: null,
    orient: null,
    orientation: null,
    origin: null,
    overflow: null,
    overlay: null,
    overlinePosition: o,
    overlineThickness: o,
    paintOrder: null,
    panose1: null,
    path: null,
    pathLength: o,
    patternContentUnits: null,
    patternTransform: null,
    patternUnits: null,
    phase: null,
    ping: h,
    pitch: null,
    playbackOrder: null,
    pointerEvents: null,
    points: null,
    pointsAtX: o,
    pointsAtY: o,
    pointsAtZ: o,
    preserveAlpha: null,
    preserveAspectRatio: null,
    primitiveUnits: null,
    propagate: null,
    property: k,
    r: null,
    radius: null,
    referrerPolicy: null,
    refX: null,
    refY: null,
    rel: k,
    rev: k,
    renderingIntent: null,
    repeatCount: null,
    repeatDur: null,
    requiredExtensions: k,
    requiredFeatures: k,
    requiredFonts: k,
    requiredFormats: k,
    resource: null,
    restart: null,
    result: null,
    rotate: null,
    rx: null,
    ry: null,
    scale: null,
    seed: null,
    shapeRendering: null,
    side: null,
    slope: null,
    snapshotTime: null,
    specularConstant: o,
    specularExponent: o,
    spreadMethod: null,
    spacing: null,
    startOffset: null,
    stdDeviation: null,
    stemh: null,
    stemv: null,
    stitchTiles: null,
    stopColor: null,
    stopOpacity: null,
    strikethroughPosition: o,
    strikethroughThickness: o,
    string: null,
    stroke: null,
    strokeDashArray: k,
    strokeDashOffset: null,
    strokeLineCap: null,
    strokeLineJoin: null,
    strokeMiterLimit: o,
    strokeOpacity: o,
    strokeWidth: null,
    style: null,
    surfaceScale: o,
    syncBehavior: null,
    syncBehaviorDefault: null,
    syncMaster: null,
    syncTolerance: null,
    syncToleranceDefault: null,
    systemLanguage: k,
    tabIndex: o,
    tableValues: null,
    target: null,
    targetX: o,
    targetY: o,
    textAnchor: null,
    textDecoration: null,
    textRendering: null,
    textLength: null,
    timelineBegin: null,
    title: null,
    transformBehavior: null,
    type: null,
    typeOf: k,
    to: null,
    transform: null,
    transformOrigin: null,
    u1: null,
    u2: null,
    underlinePosition: o,
    underlineThickness: o,
    unicode: null,
    unicodeBidi: null,
    unicodeRange: null,
    unitsPerEm: o,
    values: null,
    vAlphabetic: o,
    vMathematical: o,
    vectorEffect: null,
    vHanging: o,
    vIdeographic: o,
    version: null,
    vertAdvY: o,
    vertOriginX: o,
    vertOriginY: o,
    viewBox: null,
    viewTarget: null,
    visibility: null,
    width: null,
    widths: null,
    wordSpacing: null,
    writingMode: null,
    x: null,
    x1: null,
    x2: null,
    xChannelSelector: null,
    xHeight: o,
    y: null,
    y1: null,
    y2: null,
    yChannelSelector: null,
    z: null,
    zoomAndPan: null
  }
}), Fe = /^data[-\w.:]+$/i, ne = /-[a-z]/g, Ue = /[A-Z]/g;
function ze(e, n) {
  let l = U(n), t = n, a = w;
  if (l in e.normal)
    return e.property[e.normal[l]];
  if (l.length > 4 && l.slice(0, 4) === "data" && Fe.test(n)) {
    if (n.charAt(4) === "-") {
      let u = n.slice(5).replace(ne, He);
      t = "data" + u.charAt(0).toUpperCase() + u.slice(1);
    } else {
      let u = n.slice(4);
      if (!ne.test(u)) {
        let i = u.replace(Ue, Be);
        i.charAt(0) !== "-" && (i = "-" + i), n = "data" + i;
      }
    }
    a = H;
  }
  return new a(t, n);
}
r(ze, "find");
function Be(e) {
  return "-" + e.toLowerCase();
}
r(Be, "kebab");
function He(e) {
  return e.charAt(1).toUpperCase();
}
r(He, "camelcase");
var qe = {
  classId: "classID",
  dataType: "datatype",
  itemId: "itemID",
  strokeDashArray: "strokeDasharray",
  strokeDashOffset: "strokeDashoffset",
  strokeLineCap: "strokeLinecap",
  strokeLineJoin: "strokeLinejoin",
  strokeMiterLimit: "strokeMiterlimit",
  typeOf: "typeof",
  xLinkActuate: "xlinkActuate",
  xLinkArcRole: "xlinkArcrole",
  xLinkHref: "xlinkHref",
  xLinkRole: "xlinkRole",
  xLinkShow: "xlinkShow",
  xLinkTitle: "xlinkTitle",
  xLinkType: "xlinkType",
  xmlnsXLink: "xmlnsXlink"
}, Ve = se([me, pe, ge, he, Ne], "html"), q = se([me, pe, ge, he, je], "svg"), We = ye("end"), Ke = ye("start");
function ye(e) {
  return n;
  function n(l) {
    let t = l && l.position && l.position[e] || {};
    if (typeof t.line == "number" && t.line > 0 && typeof t.column == "number" && t.column > 0)
      return {
        line: t.line,
        column: t.column,
        offset: typeof t.offset == "number" && t.offset > -1 ? t.offset : void 0
      };
  }
}
r(ye, "point");
function Ye(e) {
  let n = Ke(e), l = We(e);
  if (n && l)
    return { start: n, end: l };
}
r(Ye, "position");
var le = {}.hasOwnProperty;
function $e(e, n) {
  let l = n || {};
  function t(a, ...u) {
    let i = t.invalid, p = t.handlers;
    if (a && le.call(a, e)) {
      let b = String(a[e]);
      i = le.call(p, b) ? p[b] : t.unknown;
    }
    if (i)
      return i.call(this, a, ...u);
  }
  return r(t, "one"), t.handlers = l.handlers || {}, t.invalid = l.invalid, t.unknown = l.unknown, t;
}
r($e, "zwitch");
function Ge(e, n) {
  let l = { type: "Block", value: e.value };
  n.inherit(e, l), n.comments.push(l);
  let t = {
    type: "JSXEmptyExpression",
    // @ts-expect-error: `comments` is custom.
    comments: [Object.assign({}, l, { leading: !1, trailing: !0 })]
  };
  n.patch(e, t);
  let a = { type: "JSXExpressionContainer", expression: t };
  return n.patch(e, a), a;
}
r(Ge, "comment");
function Ze(e, n) {
  let l = n || {};
  return (e[e.length - 1] === "" ? [...e, ""] : e).join(
    (l.padRight ? " " : "") + "," + (l.padLeft === !1 ? "" : " ")
  ).trim();
}
r(Ze, "stringify");
var Qe = /[$_\p{ID_Start}]/u, en = /[$_\u{200C}\u{200D}\p{ID_Continue}]/u, nn = /[-$_\u{200C}\u{200D}\p{ID_Continue}]/u, ln = /^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, tn = /^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, ve = {};
function Xn(e) {
  return e ? Qe.test(String.fromCodePoint(e)) : !1;
}
r(Xn, "start");
function In(e, n) {
  let t = (n || ve).jsx ? nn : en;
  return e ? t.test(String.fromCodePoint(e)) : !1;
}
r(In, "cont");
function F(e, n) {
  return ((n || ve).jsx ? tn : ln).test(e);
}
r(F, "name");
function on(e) {
  return e.join(" ").trim();
}
r(on, "stringify2");
var rn = Te(Xe(), 1), an = rn.default, z = {}.hasOwnProperty, un = /[A-Z]/g, sn = /-([a-z])/g, cn = /* @__PURE__ */ new Set(["td", "th"]);
function pn(e, n) {
  let l = n.schema, t = l, a = e.properties || {};
  l.space === "html" && e.tagName.toLowerCase() === "svg" && (t = q, n.schema = t);
  let u = n.all(e), i = [], p, b, x;
  for (p in a)
    if (z.call(a, p)) {
      let m = a[p], d = ze(t, p), g;
      if (m == null || m === !1 || typeof m == "number" && Number.isNaN(m) || !m && d.boolean)
        continue;
      if (p = n.elementAttributeNameCase === "react" && d.space ? qe[d.property] || d.property : d.attribute, Array.isArray(m) && (m = d.commaSeparated ? Ze(m) : on(m)), p === "style") {
        let C = typeof m == "object" ? m : mn(String(m), e.tagName);
        n.stylePropertyNameCase === "css" && (C = dn(C));
        let E = [], O;
        for (O in C)
          z.call(C, O) && E.push({
            type: "Property",
            method: !1,
            shorthand: !1,
            computed: !1,
            key: F(O) ? { type: "Identifier", name: O } : { type: "Literal", value: O },
            value: { type: "Literal", value: String(C[O]) },
            kind: "init"
          });
        x = E, g = {
          type: "JSXExpressionContainer",
          expression: { type: "ObjectExpression", properties: E }
        };
      } else if (m === !0)
        g = null;
      else if (n.tableCellAlignToStyle && cn.has(e.tagName) && p === "align") {
        b = String(m);
        continue;
      } else
        g = { type: "Literal", value: String(m) };
      F(p, { jsx: !0 }) ? i.push({
        type: "JSXAttribute",
        name: { type: "JSXIdentifier", name: p },
        value: g
      }) : i.push({
        type: "JSXSpreadAttribute",
        argument: {
          type: "ObjectExpression",
          properties: [
            {
              type: "Property",
              method: !1,
              shorthand: !1,
              computed: !1,
              key: { type: "Literal", value: String(p) },
              // @ts-expect-error No need to worry about `style` (which has a
              // `JSXExpressionContainer` value) because that’s a valid identifier.
              value: g || { type: "Literal", value: !0 },
              kind: "init"
            }
          ]
        }
      });
    }
  if (b !== void 0) {
    x || (x = [], i.push({
      type: "JSXAttribute",
      name: { type: "JSXIdentifier", name: "style" },
      value: {
        type: "JSXExpressionContainer",
        expression: { type: "ObjectExpression", properties: x }
      }
    }));
    let m = n.stylePropertyNameCase === "css" ? xe("textAlign") : "textAlign";
    x.push({
      type: "Property",
      method: !1,
      shorthand: !1,
      computed: !1,
      key: F(m) ? { type: "Identifier", name: m } : { type: "Literal", value: m },
      value: { type: "Literal", value: b },
      kind: "init"
    });
  }
  n.schema = l;
  let S = {
    type: "JSXElement",
    openingElement: {
      type: "JSXOpeningElement",
      attributes: i,
      name: n.createJsxElementName(e.tagName),
      selfClosing: u.length === 0
    },
    closingElement: u.length > 0 ? {
      type: "JSXClosingElement",
      name: n.createJsxElementName(e.tagName)
    } : null,
    children: u
  };
  return n.inherit(e, S), S;
}
r(pn, "element");
function mn(e, n) {
  let l = {};
  try {
    an(e, t);
  } catch (a) {
    let u = (
      /** @type {Error} */
      a
    );
    throw new Error(
      "Could not parse `style` attribute on `" + n + "`",
      { cause: u }
    );
  }
  return l;
  function t(a, u) {
    let i = a;
    i.slice(0, 2) !== "--" && (i.slice(0, 4) === "-ms-" && (i = "ms-" + i.slice(4)), i = i.replace(sn, fn)), l[i] = u;
  }
}
r(mn, "parseStyle");
function dn(e) {
  let n = {}, l;
  for (l in e)
    z.call(e, l) && (n[xe(l)] = e[l]);
  return n;
}
r(dn, "transformStylesToCssCasing");
function xe(e) {
  let n = e.replace(un, gn);
  return n.slice(0, 3) === "ms-" && (n = "-" + n), n;
}
r(xe, "transformStyleToCssCasing");
function fn(e, n) {
  return n.toUpperCase();
}
r(fn, "toCamel");
function gn(e) {
  return "-" + e.toLowerCase();
}
r(gn, "toDash");
var hn = {}.hasOwnProperty, yn = [];
function N(e, n) {
  let l = n ? [...n].sort(V) : yn;
  l.length > 0 && Se(e, { comments: l, index: 0 });
}
r(N, "attachComments");
function Se(e, n) {
  if (n.index === n.comments.length)
    return;
  let l = [], t = [], a;
  for (a in e)
    if (hn.call(e, a)) {
      let i = e[a];
      if (i && typeof i == "object" && a !== "comments")
        if (Array.isArray(i)) {
          let p = -1;
          for (; ++p < i.length; )
            i[p] && typeof i[p].type == "string" && l.push(i[p]);
        } else typeof i.type == "string" && l.push(i);
    }
  l.sort(V), t.push(...te(n, e, !1, { leading: !0, trailing: !1 }));
  let u = -1;
  for (; ++u < l.length; )
    Se(l[u], n);
  t.push(
    ...te(n, e, !0, {
      leading: !1,
      trailing: l.length > 0
    })
  ), t.length > 0 && (e.comments = t);
}
r(Se, "walk");
function te(e, n, l, t) {
  let a = [];
  for (; e.comments[e.index] && V(e.comments[e.index], n, l) < 1; )
    a.push(Object.assign({}, e.comments[e.index++], t));
  return a;
}
r(te, "slice");
function V(e, n, l) {
  let t = l ? "end" : "start";
  return e.range && n.range ? e.range[0] - n.range[l ? 1 : 0] : e.loc && e.loc.start && n.loc && n.loc[t] ? e.loc.start.line - n.loc[t].line || e.loc.start.column - n.loc[t].column : "start" in e && t in n ? e.start - n[t] : Number.NaN;
}
r(V, "compare");
function oe(e, n) {
  let l = e.data && e.data.estree, t = l && l.comments || [], a;
  l && (n.comments.push(...t), N(l, l.comments), a = l.body[0] && l.body[0].type === "ExpressionStatement" && l.body[0].expression || void 0), a || (a = { type: "JSXEmptyExpression" }, n.patch(e, a));
  let u = { type: "JSXExpressionContainer", expression: a };
  return n.inherit(e, u), u;
}
r(oe, "mdxExpression");
function re(e, n) {
  let l = n.schema, t = l, a = e.attributes || [], u = -1;
  e.name && l.space === "html" && e.name.toLowerCase() === "svg" && (t = q, n.schema = t);
  let i = n.all(e), p = [];
  for (; ++u < a.length; ) {
    let x = a[u], S = x.value, m;
    if (x.type === "mdxJsxAttribute") {
      if (S == null)
        m = null;
      else if (typeof S == "object") {
        let g = S.data && S.data.estree, C = g && g.comments || [], E;
        g && (n.comments.push(...C), N(g, g.comments), E = g.body[0] && g.body[0].type === "ExpressionStatement" && g.body[0].expression || void 0), m = {
          type: "JSXExpressionContainer",
          expression: E || { type: "JSXEmptyExpression" }
        }, n.inherit(S, m);
      } else
        m = { type: "Literal", value: String(S) };
      let d = {
        type: "JSXAttribute",
        name: n.createJsxAttributeName(x.name),
        value: m
      };
      n.inherit(x, d), p.push(d);
    } else {
      let d = x.data && x.data.estree, g = d && d.comments || [], C;
      d && (n.comments.push(...g), N(d, d.comments), C = d.body[0] && d.body[0].type === "ExpressionStatement" && d.body[0].expression && d.body[0].expression.type === "ObjectExpression" && d.body[0].expression.properties && d.body[0].expression.properties[0] && d.body[0].expression.properties[0].type === "SpreadElement" && d.body[0].expression.properties[0].argument || void 0);
      let E = {
        type: "JSXSpreadAttribute",
        argument: C || { type: "ObjectExpression", properties: [] }
      };
      n.inherit(x, E), p.push(E);
    }
  }
  n.schema = l;
  let b = e.name ? {
    type: "JSXElement",
    openingElement: {
      type: "JSXOpeningElement",
      attributes: p,
      name: n.createJsxElementName(e.name),
      selfClosing: i.length === 0
    },
    closingElement: i.length > 0 ? {
      type: "JSXClosingElement",
      name: n.createJsxElementName(e.name)
    } : null,
    children: i
  } : {
    type: "JSXFragment",
    openingFragment: { type: "JSXOpeningFragment" },
    closingFragment: { type: "JSXClosingFragment" },
    children: i
  };
  return n.inherit(e, b), b;
}
r(re, "mdxJsxElement");
function vn(e, n) {
  let l = e.data && e.data.estree, t = l && l.comments || [];
  l && (n.comments.push(...t), N(l, t), n.esm.push(...l.body));
}
r(vn, "mdxjsEsm");
var xn = /[ \t\n\f\r]/g;
function Sn(e) {
  return typeof e == "object" ? e.type === "text" ? ae(e.value) : !1 : ae(e);
}
r(Sn, "whitespace");
function ae(e) {
  return e.replace(xn, "") === "";
}
r(ae, "empty");
function bn(e, n) {
  let l = n.all(e), t = [], a = -1, u;
  for (; ++a < l.length; ) {
    let p = l[a];
    p.type === "JSXExpressionContainer" && p.expression.type === "Literal" && Sn(String(p.expression.value)) ? u && u.push(p) : (u && t.push(...u), t.push(p), u = []);
  }
  let i = {
    type: "JSXFragment",
    openingFragment: { type: "JSXOpeningFragment" },
    closingFragment: { type: "JSXClosingFragment" },
    children: t
  };
  return n.inherit(e, i), i;
}
r(bn, "root");
function kn(e, n) {
  let l = String(e.value || "");
  if (l) {
    let t = { type: "Literal", value: l };
    n.inherit(e, t);
    let a = { type: "JSXExpressionContainer", expression: t };
    return n.patch(e, a), a;
  }
}
r(kn, "text");
var Cn = {
  comment: Ge,
  doctype: wn,
  element: pn,
  mdxFlowExpression: oe,
  mdxJsxFlowElement: re,
  mdxJsxTextElement: re,
  mdxTextExpression: oe,
  mdxjsEsm: vn,
  root: bn,
  text: kn
};
function wn() {
}
r(wn, "ignore");
var En = {}.hasOwnProperty, Pn = /* @__PURE__ */ new Set(["table", "tbody", "thead", "tfoot", "tr"]);
function On(e) {
  let n = $e("type", {
    invalid: Ln,
    unknown: Dn,
    handlers: { ...Cn, ...e.handlers }
  });
  return {
    // Current space.
    elementAttributeNameCase: e.elementAttributeNameCase || "react",
    schema: e.space === "svg" ? q : Ve,
    stylePropertyNameCase: e.stylePropertyNameCase || "dom",
    tableCellAlignToStyle: e.tableCellAlignToStyle !== !1,
    // Results.
    comments: [],
    esm: [],
    // Useful functions.
    all: An,
    createJsxAttributeName: Rn,
    createJsxElementName: Tn,
    handle: l,
    inherit: Mn,
    patch: be
  };
  function l(t) {
    return n(t, this);
  }
}
r(On, "createState");
function Ln(e) {
  throw new Error("Cannot handle value `" + e + "`, expected node");
}
r(Ln, "invalid");
function Dn(e) {
  throw "type" in e, new Error("Cannot handle unknown node `" + e.type + "`");
}
r(Dn, "unknown");
function An(e) {
  let n = e.children || [], l = -1, t = [], a = this.schema.space === "html" && e.type === "element" && Pn.has(e.tagName.toLowerCase());
  for (; ++l < n.length; ) {
    let u = n[l];
    if (a && u.type === "text" && u.value === `
`)
      continue;
    let i = this.handle(u);
    Array.isArray(i) ? t.push(...i) : i && t.push(i);
  }
  return t;
}
r(An, "all");
function Mn(e, n) {
  let l = (
    /** @type {Record<string, unknown> | undefined} */
    e.data
  ), t, a;
  if (be(e, n), l) {
    for (a in l)
      En.call(l, a) && a !== "estree" && (t || (t = {}), t[a] = l[a]);
    t && (n.data = t);
  }
}
r(Mn, "inherit");
function be(e, n) {
  let l = Ye(e);
  l && l.start.offset !== void 0 && l.end.offset !== void 0 && (n.start = l.start.offset, n.end = l.end.offset, n.loc = {
    start: { line: l.start.line, column: l.start.column - 1 },
    end: { line: l.end.line, column: l.end.column - 1 }
  }, n.range = [l.start.offset, l.end.offset]);
}
r(be, "patch");
function Rn(e) {
  let n = ke(e);
  if (n.type === "JSXMemberExpression")
    throw new Error("Member expressions in attribute names are not supported");
  return n;
}
r(Rn, "createJsxAttributeName");
function Tn(e) {
  return ke(e);
}
r(Tn, "createJsxElementName");
function ke(e) {
  if (e.includes(".")) {
    let n = e.split("."), l = n.shift();
    let t = { type: "JSXIdentifier", name: l };
    for (; l = n.shift(); )
      t = {
        type: "JSXMemberExpression",
        object: t,
        property: { type: "JSXIdentifier", name: l }
      };
    return t;
  }
  if (e.includes(":")) {
    let n = e.split(":");
    return {
      type: "JSXNamespacedName",
      namespace: { type: "JSXIdentifier", name: n[0] },
      name: { type: "JSXIdentifier", name: n[1] }
    };
  }
  return { type: "JSXIdentifier", name: e };
}
r(ke, "createJsxNameFromString");
function Jn(e, n) {
  let l = On(n || {}), t = l.handle(e), a = l.esm;
  if (t) {
    t.type !== "JSXFragment" && t.type !== "JSXElement" && (t = {
      type: "JSXFragment",
      openingFragment: { type: "JSXOpeningFragment" },
      closingFragment: { type: "JSXClosingFragment" },
      children: [t]
    }, l.patch(e, t));
    let i = { type: "ExpressionStatement", expression: t };
    l.patch(e, i), a.push(i);
  }
  let u = {
    type: "Program",
    body: a,
    sourceType: "module",
    comments: l.comments
  };
  return l.patch(e, u), u;
}
r(Jn, "toEstree");

export {
  _n as a,
  ue as b,
  Me as c,
  Te as d,
  We as e,
  Ke as f,
  Ye as g,
  Xn as h,
  In as i,
  F as j,
  Jn as k
};
