import { aF as pr } from "./index-C62tPk5p.js";
import Qn from "react";
function fr($, m) {
  for (var F = 0; F < m.length; F++) {
    const B = m[F];
    if (typeof B != "string" && !Array.isArray(B)) {
      for (const v in B)
        if (v !== "default" && !(v in $)) {
          const R = Object.getOwnPropertyDescriptor(B, v);
          R && Object.defineProperty($, v, R.get ? R : {
            enumerable: !0,
            get: () => B[v]
          });
        }
    }
  }
  return Object.freeze(Object.defineProperty($, Symbol.toStringTag, { value: "Module" }));
}
var he = {}, Re = {};
/**
 * @license React
 * react-dom-server-legacy.browser.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */
var Jn;
function dr() {
  if (Jn) return Re;
  Jn = 1;
  var $ = Qn;
  function m(e) {
    for (var r = "https://reactjs.org/docs/error-decoder.html?invariant=" + e, l = 1; l < arguments.length; l++) r += "&args[]=" + encodeURIComponent(arguments[l]);
    return "Minified React error #" + e + "; visit " + r + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
  }
  var F = Object.prototype.hasOwnProperty, B = /^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/, v = {}, R = {};
  function Ae(e) {
    return F.call(R, e) ? !0 : F.call(v, e) ? !1 : B.test(e) ? R[e] = !0 : (v[e] = !0, !1);
  }
  function N(e, r, l, i, p, s, f) {
    this.acceptsBooleans = r === 2 || r === 3 || r === 4, this.attributeName = i, this.attributeNamespace = p, this.mustUseProperty = l, this.propertyName = e, this.type = r, this.sanitizeURL = s, this.removeEmptyString = f;
  }
  var S = {};
  "children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e) {
    S[e] = new N(e, 0, !1, e, null, !1, !1);
  }), [["acceptCharset", "accept-charset"], ["className", "class"], ["htmlFor", "for"], ["httpEquiv", "http-equiv"]].forEach(function(e) {
    var r = e[0];
    S[r] = new N(r, 1, !1, e[1], null, !1, !1);
  }), ["contentEditable", "draggable", "spellCheck", "value"].forEach(function(e) {
    S[e] = new N(e, 2, !1, e.toLowerCase(), null, !1, !1);
  }), ["autoReverse", "externalResourcesRequired", "focusable", "preserveAlpha"].forEach(function(e) {
    S[e] = new N(e, 2, !1, e, null, !1, !1);
  }), "allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e) {
    S[e] = new N(e, 3, !1, e.toLowerCase(), null, !1, !1);
  }), ["checked", "multiple", "muted", "selected"].forEach(function(e) {
    S[e] = new N(e, 3, !0, e, null, !1, !1);
  }), ["capture", "download"].forEach(function(e) {
    S[e] = new N(e, 4, !1, e, null, !1, !1);
  }), ["cols", "rows", "size", "span"].forEach(function(e) {
    S[e] = new N(e, 6, !1, e, null, !1, !1);
  }), ["rowSpan", "start"].forEach(function(e) {
    S[e] = new N(e, 5, !1, e.toLowerCase(), null, !1, !1);
  });
  var g = /[\-:]([a-z])/g;
  function _e(e) {
    return e[1].toUpperCase();
  }
  "accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e) {
    var r = e.replace(
      g,
      _e
    );
    S[r] = new N(r, 1, !1, e, null, !1, !1);
  }), "xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e) {
    var r = e.replace(g, _e);
    S[r] = new N(r, 1, !1, e, "http://www.w3.org/1999/xlink", !1, !1);
  }), ["xml:base", "xml:lang", "xml:space"].forEach(function(e) {
    var r = e.replace(g, _e);
    S[r] = new N(r, 1, !1, e, "http://www.w3.org/XML/1998/namespace", !1, !1);
  }), ["tabIndex", "crossOrigin"].forEach(function(e) {
    S[e] = new N(e, 1, !1, e.toLowerCase(), null, !1, !1);
  }), S.xlinkHref = new N("xlinkHref", 1, !1, "xlink:href", "http://www.w3.org/1999/xlink", !0, !1), ["src", "href", "action", "formAction"].forEach(function(e) {
    S[e] = new N(e, 1, !1, e.toLowerCase(), null, !0, !0);
  });
  var z = {
    animationIterationCount: !0,
    aspectRatio: !0,
    borderImageOutset: !0,
    borderImageSlice: !0,
    borderImageWidth: !0,
    boxFlex: !0,
    boxFlexGroup: !0,
    boxOrdinalGroup: !0,
    columnCount: !0,
    columns: !0,
    flex: !0,
    flexGrow: !0,
    flexPositive: !0,
    flexShrink: !0,
    flexNegative: !0,
    flexOrder: !0,
    gridArea: !0,
    gridRow: !0,
    gridRowEnd: !0,
    gridRowSpan: !0,
    gridRowStart: !0,
    gridColumn: !0,
    gridColumnEnd: !0,
    gridColumnSpan: !0,
    gridColumnStart: !0,
    fontWeight: !0,
    lineClamp: !0,
    lineHeight: !0,
    opacity: !0,
    order: !0,
    orphans: !0,
    tabSize: !0,
    widows: !0,
    zIndex: !0,
    zoom: !0,
    fillOpacity: !0,
    floodOpacity: !0,
    stopOpacity: !0,
    strokeDasharray: !0,
    strokeDashoffset: !0,
    strokeMiterlimit: !0,
    strokeOpacity: !0,
    strokeWidth: !0
  }, sn = ["Webkit", "ms", "Moz", "O"];
  Object.keys(z).forEach(function(e) {
    sn.forEach(function(r) {
      r = r + e.charAt(0).toUpperCase() + e.substring(1), z[r] = z[e];
    });
  });
  var gt = /["'&<>]/;
  function O(e) {
    if (typeof e == "boolean" || typeof e == "number") return "" + e;
    e = "" + e;
    var r = gt.exec(e);
    if (r) {
      var l = "", i, p = 0;
      for (i = r.index; i < e.length; i++) {
        switch (e.charCodeAt(i)) {
          case 34:
            r = "&quot;";
            break;
          case 38:
            r = "&amp;";
            break;
          case 39:
            r = "&#x27;";
            break;
          case 60:
            r = "&lt;";
            break;
          case 62:
            r = "&gt;";
            break;
          default:
            continue;
        }
        p !== i && (l += e.substring(p, i)), p = i + 1, l += r;
      }
      e = p !== i ? l + e.substring(p, i) : l;
    }
    return e;
  }
  var vt = /([A-Z])/g, L = /^ms-/, b = Array.isArray;
  function U(e, r) {
    return { insertionMode: e, selectedValue: r };
  }
  function He(e, r, l) {
    switch (r) {
      case "select":
        return U(1, l.value != null ? l.value : l.defaultValue);
      case "svg":
        return U(2, null);
      case "math":
        return U(3, null);
      case "foreignObject":
        return U(1, null);
      case "table":
        return U(4, null);
      case "thead":
      case "tbody":
      case "tfoot":
        return U(5, null);
      case "colgroup":
        return U(7, null);
      case "tr":
        return U(6, null);
    }
    return 4 <= e.insertionMode || e.insertionMode === 0 ? U(1, null) : e;
  }
  var me = /* @__PURE__ */ new Map();
  function St(e, r, l) {
    if (typeof l != "object") throw Error(m(62));
    r = !0;
    for (var i in l) if (F.call(l, i)) {
      var p = l[i];
      if (p != null && typeof p != "boolean" && p !== "") {
        if (i.indexOf("--") === 0) {
          var s = O(i);
          p = O(("" + p).trim());
        } else {
          s = i;
          var f = me.get(s);
          f !== void 0 || (f = O(s.replace(vt, "-$1").toLowerCase().replace(L, "-ms-")), me.set(s, f)), s = f, p = typeof p == "number" ? p === 0 || F.call(z, i) ? "" + p : p + "px" : O(("" + p).trim());
        }
        r ? (r = !1, e.push(' style="', s, ":", p)) : e.push(";", s, ":", p);
      }
    }
    r || e.push('"');
  }
  function j(e, r, l, i) {
    switch (l) {
      case "style":
        St(e, r, i);
        return;
      case "defaultValue":
      case "defaultChecked":
      case "innerHTML":
      case "suppressContentEditableWarning":
      case "suppressHydrationWarning":
        return;
    }
    if (!(2 < l.length) || l[0] !== "o" && l[0] !== "O" || l[1] !== "n" && l[1] !== "N") {
      if (r = S.hasOwnProperty(l) ? S[l] : null, r !== null) {
        switch (typeof i) {
          case "function":
          case "symbol":
            return;
          case "boolean":
            if (!r.acceptsBooleans) return;
        }
        switch (l = r.attributeName, r.type) {
          case 3:
            i && e.push(" ", l, '=""');
            break;
          case 4:
            i === !0 ? e.push(" ", l, '=""') : i !== !1 && e.push(" ", l, '="', O(i), '"');
            break;
          case 5:
            isNaN(i) || e.push(" ", l, '="', O(i), '"');
            break;
          case 6:
            !isNaN(i) && 1 <= i && e.push(" ", l, '="', O(i), '"');
            break;
          default:
            r.sanitizeURL && (i = "" + i), e.push(" ", l, '="', O(i), '"');
        }
      } else if (Ae(l)) {
        switch (typeof i) {
          case "function":
          case "symbol":
            return;
          case "boolean":
            if (r = l.toLowerCase().slice(0, 5), r !== "data-" && r !== "aria-") return;
        }
        e.push(" ", l, '="', O(i), '"');
      }
    }
  }
  function D(e, r, l) {
    if (r != null) {
      if (l != null) throw Error(m(60));
      if (typeof r != "object" || !("__html" in r)) throw Error(m(61));
      r = r.__html, r != null && e.push("" + r);
    }
  }
  function an(e) {
    var r = "";
    return $.Children.forEach(e, function(l) {
      l != null && (r += l);
    }), r;
  }
  function Ue(e, r, l, i) {
    e.push(X(l));
    var p = l = null, s;
    for (s in r) if (F.call(r, s)) {
      var f = r[s];
      if (f != null) switch (s) {
        case "children":
          l = f;
          break;
        case "dangerouslySetInnerHTML":
          p = f;
          break;
        default:
          j(e, i, s, f);
      }
    }
    return e.push(">"), D(e, p, l), typeof l == "string" ? (e.push(O(l)), null) : l;
  }
  var We = /^[a-zA-Z][a-zA-Z:_\.\-\d]*$/, xt = /* @__PURE__ */ new Map();
  function X(e) {
    var r = xt.get(e);
    if (r === void 0) {
      if (!We.test(e)) throw Error(m(65, e));
      r = "<" + e, xt.set(e, r);
    }
    return r;
  }
  function cn(e, r, l, i, p) {
    switch (r) {
      case "select":
        e.push(X("select"));
        var s = null, f = null;
        for (C in l) if (F.call(l, C)) {
          var y = l[C];
          if (y != null) switch (C) {
            case "children":
              s = y;
              break;
            case "dangerouslySetInnerHTML":
              f = y;
              break;
            case "defaultValue":
            case "value":
              break;
            default:
              j(e, i, C, y);
          }
        }
        return e.push(">"), D(e, f, s), s;
      case "option":
        f = p.selectedValue, e.push(X("option"));
        var x = y = null, w = null, C = null;
        for (s in l) if (F.call(l, s)) {
          var M = l[s];
          if (M != null) switch (s) {
            case "children":
              y = M;
              break;
            case "selected":
              w = M;
              break;
            case "dangerouslySetInnerHTML":
              C = M;
              break;
            case "value":
              x = M;
            default:
              j(e, i, s, M);
          }
        }
        if (f != null) if (l = x !== null ? "" + x : an(y), b(f)) {
          for (i = 0; i < f.length; i++)
            if ("" + f[i] === l) {
              e.push(' selected=""');
              break;
            }
        } else "" + f === l && e.push(' selected=""');
        else w && e.push(' selected=""');
        return e.push(">"), D(e, C, y), y;
      case "textarea":
        e.push(X("textarea")), C = f = s = null;
        for (y in l) if (F.call(l, y) && (x = l[y], x != null)) switch (y) {
          case "children":
            C = x;
            break;
          case "value":
            s = x;
            break;
          case "defaultValue":
            f = x;
            break;
          case "dangerouslySetInnerHTML":
            throw Error(m(91));
          default:
            j(
              e,
              i,
              y,
              x
            );
        }
        if (s === null && f !== null && (s = f), e.push(">"), C != null) {
          if (s != null) throw Error(m(92));
          if (b(C) && 1 < C.length) throw Error(m(93));
          s = "" + C;
        }
        return typeof s == "string" && s[0] === `
` && e.push(`
`), s !== null && e.push(O("" + s)), null;
      case "input":
        e.push(X("input")), x = C = y = s = null;
        for (f in l) if (F.call(l, f) && (w = l[f], w != null)) switch (f) {
          case "children":
          case "dangerouslySetInnerHTML":
            throw Error(m(399, "input"));
          case "defaultChecked":
            x = w;
            break;
          case "defaultValue":
            y = w;
            break;
          case "checked":
            C = w;
            break;
          case "value":
            s = w;
            break;
          default:
            j(e, i, f, w);
        }
        return C !== null ? j(e, i, "checked", C) : x !== null && j(e, i, "checked", x), s !== null ? j(e, i, "value", s) : y !== null && j(e, i, "value", y), e.push("/>"), null;
      case "menuitem":
        e.push(X("menuitem"));
        for (var K in l) if (F.call(l, K) && (s = l[K], s != null)) switch (K) {
          case "children":
          case "dangerouslySetInnerHTML":
            throw Error(m(400));
          default:
            j(e, i, K, s);
        }
        return e.push(">"), null;
      case "title":
        e.push(X("title")), s = null;
        for (M in l) if (F.call(l, M) && (f = l[M], f != null)) switch (M) {
          case "children":
            s = f;
            break;
          case "dangerouslySetInnerHTML":
            throw Error(m(434));
          default:
            j(e, i, M, f);
        }
        return e.push(">"), s;
      case "listing":
      case "pre":
        e.push(X(r)), f = s = null;
        for (x in l) if (F.call(l, x) && (y = l[x], y != null)) switch (x) {
          case "children":
            s = y;
            break;
          case "dangerouslySetInnerHTML":
            f = y;
            break;
          default:
            j(e, i, x, y);
        }
        if (e.push(">"), f != null) {
          if (s != null) throw Error(m(60));
          if (typeof f != "object" || !("__html" in f)) throw Error(m(61));
          l = f.__html, l != null && (typeof l == "string" && 0 < l.length && l[0] === `
` ? e.push(`
`, l) : e.push("" + l));
        }
        return typeof s == "string" && s[0] === `
` && e.push(`
`), s;
      case "area":
      case "base":
      case "br":
      case "col":
      case "embed":
      case "hr":
      case "img":
      case "keygen":
      case "link":
      case "meta":
      case "param":
      case "source":
      case "track":
      case "wbr":
        e.push(X(r));
        for (var Q in l) if (F.call(l, Q) && (s = l[Q], s != null)) switch (Q) {
          case "children":
          case "dangerouslySetInnerHTML":
            throw Error(m(399, r));
          default:
            j(e, i, Q, s);
        }
        return e.push("/>"), null;
      case "annotation-xml":
      case "color-profile":
      case "font-face":
      case "font-face-src":
      case "font-face-uri":
      case "font-face-format":
      case "font-face-name":
      case "missing-glyph":
        return Ue(
          e,
          l,
          r,
          i
        );
      case "html":
        return p.insertionMode === 0 && e.push("<!DOCTYPE html>"), Ue(e, l, r, i);
      default:
        if (r.indexOf("-") === -1 && typeof l.is != "string") return Ue(e, l, r, i);
        e.push(X(r)), f = s = null;
        for (w in l) if (F.call(l, w) && (y = l[w], y != null)) switch (w) {
          case "children":
            s = y;
            break;
          case "dangerouslySetInnerHTML":
            f = y;
            break;
          case "style":
            St(e, i, y);
            break;
          case "suppressContentEditableWarning":
          case "suppressHydrationWarning":
            break;
          default:
            Ae(w) && typeof y != "function" && typeof y != "symbol" && e.push(" ", w, '="', O(y), '"');
        }
        return e.push(">"), D(e, f, s), s;
    }
  }
  function kt(e, r, l) {
    if (e.push('<!--$?--><template id="'), l === null) throw Error(m(395));
    return e.push(l), e.push('"></template>');
  }
  function wt(e, r, l, i) {
    switch (l.insertionMode) {
      case 0:
      case 1:
        return e.push('<div hidden id="'), e.push(r.segmentPrefix), r = i.toString(16), e.push(r), e.push('">');
      case 2:
        return e.push('<svg aria-hidden="true" style="display:none" id="'), e.push(r.segmentPrefix), r = i.toString(16), e.push(r), e.push('">');
      case 3:
        return e.push('<math aria-hidden="true" style="display:none" id="'), e.push(r.segmentPrefix), r = i.toString(16), e.push(r), e.push('">');
      case 4:
        return e.push('<table hidden id="'), e.push(r.segmentPrefix), r = i.toString(16), e.push(r), e.push('">');
      case 5:
        return e.push('<table hidden><tbody id="'), e.push(r.segmentPrefix), r = i.toString(16), e.push(r), e.push('">');
      case 6:
        return e.push('<table hidden><tr id="'), e.push(r.segmentPrefix), r = i.toString(16), e.push(r), e.push('">');
      case 7:
        return e.push('<table hidden><colgroup id="'), e.push(r.segmentPrefix), r = i.toString(16), e.push(r), e.push('">');
      default:
        throw Error(m(397));
    }
  }
  function pn(e, r) {
    switch (r.insertionMode) {
      case 0:
      case 1:
        return e.push("</div>");
      case 2:
        return e.push("</svg>");
      case 3:
        return e.push("</math>");
      case 4:
        return e.push("</table>");
      case 5:
        return e.push("</tbody></table>");
      case 6:
        return e.push("</tr></table>");
      case 7:
        return e.push("</colgroup></table>");
      default:
        throw Error(m(397));
    }
  }
  var fn = /[<\u2028\u2029]/g;
  function qe(e) {
    return JSON.stringify(e).replace(fn, function(r) {
      switch (r) {
        case "<":
          return "\\u003c";
        case "\u2028":
          return "\\u2028";
        case "\u2029":
          return "\\u2029";
        default:
          throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React");
      }
    });
  }
  function G(e, r) {
    return r = r === void 0 ? "" : r, { bootstrapChunks: [], startInlineScript: "<script>", placeholderPrefix: r + "P:", segmentPrefix: r + "S:", boundaryPrefix: r + "B:", idPrefix: r, nextSuspenseID: 0, sentCompleteSegmentFunction: !1, sentCompleteBoundaryFunction: !1, sentClientRenderFunction: !1, generateStaticMarkup: e };
  }
  function Ct(e, r, l, i) {
    return l.generateStaticMarkup ? (e.push(O(r)), !1) : (r === "" ? e = i : (i && e.push("<!-- -->"), e.push(O(r)), e = !0), e);
  }
  var ye = Object.assign, Ze = Symbol.for("react.element"), Xe = Symbol.for("react.portal"), Ge = Symbol.for("react.fragment"), Et = Symbol.for("react.strict_mode"), Je = Symbol.for("react.profiler"), Tt = Symbol.for("react.provider"), Ye = Symbol.for("react.context"), Y = Symbol.for("react.forward_ref"), ue = Symbol.for("react.suspense"), ne = Symbol.for("react.suspense_list"), Ke = Symbol.for("react.memo"), V = Symbol.for("react.lazy"), re = Symbol.for("react.scope"), Ft = Symbol.for("react.debug_trace_mode"), Pe = Symbol.for("react.legacy_hidden"), dn = Symbol.for("react.default_value"), Ie = Symbol.iterator;
  function ge(e) {
    if (e == null) return null;
    if (typeof e == "function") return e.displayName || e.name || null;
    if (typeof e == "string") return e;
    switch (e) {
      case Ge:
        return "Fragment";
      case Xe:
        return "Portal";
      case Je:
        return "Profiler";
      case Et:
        return "StrictMode";
      case ue:
        return "Suspense";
      case ne:
        return "SuspenseList";
    }
    if (typeof e == "object") switch (e.$$typeof) {
      case Ye:
        return (e.displayName || "Context") + ".Consumer";
      case Tt:
        return (e._context.displayName || "Context") + ".Provider";
      case Y:
        var r = e.render;
        return e = e.displayName, e || (e = r.displayName || r.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
      case Ke:
        return r = e.displayName || null, r !== null ? r : ge(e.type) || "Memo";
      case V:
        r = e._payload, e = e._init;
        try {
          return ge(e(r));
        } catch {
        }
    }
    return null;
  }
  var Me = {};
  function Rt(e, r) {
    if (e = e.contextTypes, !e) return Me;
    var l = {}, i;
    for (i in e) l[i] = r[i];
    return l;
  }
  var oe = null;
  function A(e, r) {
    if (e !== r) {
      e.context._currentValue2 = e.parentValue, e = e.parent;
      var l = r.parent;
      if (e === null) {
        if (l !== null) throw Error(m(401));
      } else {
        if (l === null) throw Error(m(401));
        A(e, l);
      }
      r.context._currentValue2 = r.value;
    }
  }
  function _t(e) {
    e.context._currentValue2 = e.parentValue, e = e.parent, e !== null && _t(e);
  }
  function Pt(e) {
    var r = e.parent;
    r !== null && Pt(r), e.context._currentValue2 = e.value;
  }
  function It(e, r) {
    if (e.context._currentValue2 = e.parentValue, e = e.parent, e === null) throw Error(m(402));
    e.depth === r.depth ? A(e, r) : It(e, r);
  }
  function Mt(e, r) {
    var l = r.parent;
    if (l === null) throw Error(m(402));
    e.depth === l.depth ? A(e, l) : Mt(e, l), r.context._currentValue2 = r.value;
  }
  function De(e) {
    var r = oe;
    r !== e && (r === null ? Pt(e) : e === null ? _t(r) : r.depth === e.depth ? A(r, e) : r.depth > e.depth ? It(r, e) : Mt(r, e), oe = e);
  }
  var Dt = { isMounted: function() {
    return !1;
  }, enqueueSetState: function(e, r) {
    e = e._reactInternals, e.queue !== null && e.queue.push(r);
  }, enqueueReplaceState: function(e, r) {
    e = e._reactInternals, e.replace = !0, e.queue = [r];
  }, enqueueForceUpdate: function() {
  } };
  function Bt(e, r, l, i) {
    var p = e.state !== void 0 ? e.state : null;
    e.updater = Dt, e.props = l, e.state = p;
    var s = { queue: [], replace: !1 };
    e._reactInternals = s;
    var f = r.contextType;
    if (e.context = typeof f == "object" && f !== null ? f._currentValue2 : i, f = r.getDerivedStateFromProps, typeof f == "function" && (f = f(l, p), p = f == null ? p : ye({}, p, f), e.state = p), typeof r.getDerivedStateFromProps != "function" && typeof e.getSnapshotBeforeUpdate != "function" && (typeof e.UNSAFE_componentWillMount == "function" || typeof e.componentWillMount == "function")) if (r = e.state, typeof e.componentWillMount == "function" && e.componentWillMount(), typeof e.UNSAFE_componentWillMount == "function" && e.UNSAFE_componentWillMount(), r !== e.state && Dt.enqueueReplaceState(e, e.state, null), s.queue !== null && 0 < s.queue.length) if (r = s.queue, f = s.replace, s.queue = null, s.replace = !1, f && r.length === 1) e.state = r[0];
    else {
      for (s = f ? r[0] : e.state, p = !0, f = f ? 1 : 0; f < r.length; f++) {
        var y = r[f];
        y = typeof y == "function" ? y.call(e, s, l, i) : y, y != null && (p ? (p = !1, s = ye({}, s, y)) : ye(s, y));
      }
      e.state = s;
    }
    else s.queue = null;
  }
  var hn = { id: 1, overflow: "" };
  function Qe(e, r, l) {
    var i = e.id;
    e = e.overflow;
    var p = 32 - Be(i) - 1;
    i &= ~(1 << p), l += 1;
    var s = 32 - Be(r) + p;
    if (30 < s) {
      var f = p - p % 5;
      return s = (i & (1 << f) - 1).toString(32), i >>= f, p -= f, { id: 1 << 32 - Be(r) + p | l << p | i, overflow: s + e };
    }
    return { id: 1 << s | l << p | i, overflow: e };
  }
  var Be = Math.clz32 ? Math.clz32 : gn, mn = Math.log, yn = Math.LN2;
  function gn(e) {
    return e >>>= 0, e === 0 ? 32 : 31 - (mn(e) / yn | 0) | 0;
  }
  function vn(e, r) {
    return e === r && (e !== 0 || 1 / e === 1 / r) || e !== e && r !== r;
  }
  var Sn = typeof Object.is == "function" ? Object.is : vn, J = null, et = null, be = null, _ = null, ve = !1, ze = !1, Se = 0, le = null, Ne = 0;
  function ie() {
    if (J === null) throw Error(m(321));
    return J;
  }
  function bt() {
    if (0 < Ne) throw Error(m(312));
    return { memoizedState: null, queue: null, next: null };
  }
  function tt() {
    return _ === null ? be === null ? (ve = !1, be = _ = bt()) : (ve = !0, _ = be) : _.next === null ? (ve = !1, _ = _.next = bt()) : (ve = !0, _ = _.next), _;
  }
  function nt() {
    et = J = null, ze = !1, be = null, Ne = 0, _ = le = null;
  }
  function zt(e, r) {
    return typeof r == "function" ? r(e) : r;
  }
  function Nt(e, r, l) {
    if (J = ie(), _ = tt(), ve) {
      var i = _.queue;
      if (r = i.dispatch, le !== null && (l = le.get(i), l !== void 0)) {
        le.delete(i), i = _.memoizedState;
        do
          i = e(i, l.action), l = l.next;
        while (l !== null);
        return _.memoizedState = i, [i, r];
      }
      return [_.memoizedState, r];
    }
    return e = e === zt ? typeof r == "function" ? r() : r : l !== void 0 ? l(r) : r, _.memoizedState = e, e = _.queue = { last: null, dispatch: null }, e = e.dispatch = xn.bind(null, J, e), [_.memoizedState, e];
  }
  function Ot(e, r) {
    if (J = ie(), _ = tt(), r = r === void 0 ? null : r, _ !== null) {
      var l = _.memoizedState;
      if (l !== null && r !== null) {
        var i = l[1];
        e: if (i === null) i = !1;
        else {
          for (var p = 0; p < i.length && p < r.length; p++) if (!Sn(r[p], i[p])) {
            i = !1;
            break e;
          }
          i = !0;
        }
        if (i) return l[0];
      }
    }
    return e = e(), _.memoizedState = [e, r], e;
  }
  function xn(e, r, l) {
    if (25 <= Ne) throw Error(m(301));
    if (e === J) if (ze = !0, e = { action: l, next: null }, le === null && (le = /* @__PURE__ */ new Map()), l = le.get(r), l === void 0) le.set(r, e);
    else {
      for (r = l; r.next !== null; ) r = r.next;
      r.next = e;
    }
  }
  function kn() {
    throw Error(m(394));
  }
  function Oe() {
  }
  var Lt = { readContext: function(e) {
    return e._currentValue2;
  }, useContext: function(e) {
    return ie(), e._currentValue2;
  }, useMemo: Ot, useReducer: Nt, useRef: function(e) {
    J = ie(), _ = tt();
    var r = _.memoizedState;
    return r === null ? (e = { current: e }, _.memoizedState = e) : r;
  }, useState: function(e) {
    return Nt(zt, e);
  }, useInsertionEffect: Oe, useLayoutEffect: function() {
  }, useCallback: function(e, r) {
    return Ot(function() {
      return e;
    }, r);
  }, useImperativeHandle: Oe, useEffect: Oe, useDebugValue: Oe, useDeferredValue: function(e) {
    return ie(), e;
  }, useTransition: function() {
    return ie(), [
      !1,
      kn
    ];
  }, useId: function() {
    var e = et.treeContext, r = e.overflow;
    e = e.id, e = (e & ~(1 << 32 - Be(e) - 1)).toString(32) + r;
    var l = Le;
    if (l === null) throw Error(m(404));
    return r = Se++, e = ":" + l.idPrefix + "R" + e, 0 < r && (e += "H" + r.toString(32)), e + ":";
  }, useMutableSource: function(e, r) {
    return ie(), r(e._source);
  }, useSyncExternalStore: function(e, r, l) {
    if (l === void 0) throw Error(m(407));
    return l();
  } }, Le = null, rt = $.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;
  function wn(e) {
    return console.error(e), null;
  }
  function xe() {
  }
  function Cn(e, r, l, i, p, s, f, y, x) {
    var w = [], C = /* @__PURE__ */ new Set();
    return r = { destination: null, responseState: r, progressiveChunkSize: i === void 0 ? 12800 : i, status: 0, fatalError: null, nextSegmentId: 0, allPendingTasks: 0, pendingRootTasks: 0, completedRootSegment: null, abortableTasks: C, pingedTasks: w, clientRenderedBoundaries: [], completedBoundaries: [], partialBoundaries: [], onError: p === void 0 ? wn : p, onAllReady: xe, onShellReady: f === void 0 ? xe : f, onShellError: xe, onFatalError: xe }, l = Ve(r, 0, null, l, !1, !1), l.parentFlushed = !0, e = ot(r, e, null, l, C, Me, null, hn), w.push(e), r;
  }
  function ot(e, r, l, i, p, s, f, y) {
    e.allPendingTasks++, l === null ? e.pendingRootTasks++ : l.pendingTasks++;
    var x = { node: r, ping: function() {
      var w = e.pingedTasks;
      w.push(x), w.length === 1 && Ut(e);
    }, blockedBoundary: l, blockedSegment: i, abortSet: p, legacyContext: s, context: f, treeContext: y };
    return p.add(x), x;
  }
  function Ve(e, r, l, i, p, s) {
    return { status: 0, id: -1, index: r, parentFlushed: !1, chunks: [], children: [], formatContext: i, boundary: l, lastPushedText: p, textEmbedded: s };
  }
  function ke(e, r) {
    if (e = e.onError(r), e != null && typeof e != "string") throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "' + typeof e + '" instead');
    return e;
  }
  function $e(e, r) {
    var l = e.onShellError;
    l(r), l = e.onFatalError, l(r), e.destination !== null ? (e.status = 2, e.destination.destroy(r)) : (e.status = 1, e.fatalError = r);
  }
  function Vt(e, r, l, i, p) {
    for (J = {}, et = r, Se = 0, e = l(i, p); ze; ) ze = !1, Se = 0, Ne += 1, _ = null, e = l(i, p);
    return nt(), e;
  }
  function $t(e, r, l, i) {
    var p = l.render(), s = i.childContextTypes;
    if (s != null) {
      var f = r.legacyContext;
      if (typeof l.getChildContext != "function") i = f;
      else {
        l = l.getChildContext();
        for (var y in l) if (!(y in s)) throw Error(m(108, ge(i) || "Unknown", y));
        i = ye({}, f, l);
      }
      r.legacyContext = i, H(e, r, p), r.legacyContext = f;
    } else H(e, r, p);
  }
  function jt(e, r) {
    if (e && e.defaultProps) {
      r = ye({}, r), e = e.defaultProps;
      for (var l in e) r[l] === void 0 && (r[l] = e[l]);
      return r;
    }
    return r;
  }
  function lt(e, r, l, i, p) {
    if (typeof l == "function") if (l.prototype && l.prototype.isReactComponent) {
      p = Rt(l, r.legacyContext);
      var s = l.contextType;
      s = new l(i, typeof s == "object" && s !== null ? s._currentValue2 : p), Bt(s, l, i, p), $t(e, r, s, l);
    } else {
      s = Rt(l, r.legacyContext), p = Vt(e, r, l, i, s);
      var f = Se !== 0;
      if (typeof p == "object" && p !== null && typeof p.render == "function" && p.$$typeof === void 0) Bt(p, l, i, s), $t(e, r, p, l);
      else if (f) {
        i = r.treeContext, r.treeContext = Qe(i, 1, 0);
        try {
          H(e, r, p);
        } finally {
          r.treeContext = i;
        }
      } else H(e, r, p);
    }
    else if (typeof l == "string") {
      switch (p = r.blockedSegment, s = cn(p.chunks, l, i, e.responseState, p.formatContext), p.lastPushedText = !1, f = p.formatContext, p.formatContext = He(f, l, i), ut(e, r, s), p.formatContext = f, l) {
        case "area":
        case "base":
        case "br":
        case "col":
        case "embed":
        case "hr":
        case "img":
        case "input":
        case "keygen":
        case "link":
        case "meta":
        case "param":
        case "source":
        case "track":
        case "wbr":
          break;
        default:
          p.chunks.push("</", l, ">");
      }
      p.lastPushedText = !1;
    } else {
      switch (l) {
        case Pe:
        case Ft:
        case Et:
        case Je:
        case Ge:
          H(e, r, i.children);
          return;
        case ne:
          H(e, r, i.children);
          return;
        case re:
          throw Error(m(343));
        case ue:
          e: {
            l = r.blockedBoundary, p = r.blockedSegment, s = i.fallback, i = i.children, f = /* @__PURE__ */ new Set();
            var y = { id: null, rootSegmentID: -1, parentFlushed: !1, pendingTasks: 0, forceClientRender: !1, completedSegments: [], byteSize: 0, fallbackAbortableTasks: f, errorDigest: null }, x = Ve(e, p.chunks.length, y, p.formatContext, !1, !1);
            p.children.push(x), p.lastPushedText = !1;
            var w = Ve(e, 0, null, p.formatContext, !1, !1);
            w.parentFlushed = !0, r.blockedBoundary = y, r.blockedSegment = w;
            try {
              if (ut(
                e,
                r,
                i
              ), e.responseState.generateStaticMarkup || w.lastPushedText && w.textEmbedded && w.chunks.push("<!-- -->"), w.status = 1, ce(y, w), y.pendingTasks === 0) break e;
            } catch (C) {
              w.status = 4, y.forceClientRender = !0, y.errorDigest = ke(e, C);
            } finally {
              r.blockedBoundary = l, r.blockedSegment = p;
            }
            r = ot(e, s, l, x, f, r.legacyContext, r.context, r.treeContext), e.pingedTasks.push(r);
          }
          return;
      }
      if (typeof l == "object" && l !== null) switch (l.$$typeof) {
        case Y:
          if (i = Vt(e, r, l.render, i, p), Se !== 0) {
            l = r.treeContext, r.treeContext = Qe(l, 1, 0);
            try {
              H(e, r, i);
            } finally {
              r.treeContext = l;
            }
          } else H(e, r, i);
          return;
        case Ke:
          l = l.type, i = jt(l, i), lt(e, r, l, i, p);
          return;
        case Tt:
          if (p = i.children, l = l._context, i = i.value, s = l._currentValue2, l._currentValue2 = i, f = oe, oe = i = { parent: f, depth: f === null ? 0 : f.depth + 1, context: l, parentValue: s, value: i }, r.context = i, H(e, r, p), e = oe, e === null) throw Error(m(403));
          i = e.parentValue, e.context._currentValue2 = i === dn ? e.context._defaultValue : i, e = oe = e.parent, r.context = e;
          return;
        case Ye:
          i = i.children, i = i(l._currentValue2), H(e, r, i);
          return;
        case V:
          p = l._init, l = p(l._payload), i = jt(l, i), lt(
            e,
            r,
            l,
            i,
            void 0
          );
          return;
      }
      throw Error(m(130, l == null ? l : typeof l, ""));
    }
  }
  function H(e, r, l) {
    if (r.node = l, typeof l == "object" && l !== null) {
      switch (l.$$typeof) {
        case Ze:
          lt(e, r, l.type, l.props, l.ref);
          return;
        case Xe:
          throw Error(m(257));
        case V:
          var i = l._init;
          l = i(l._payload), H(e, r, l);
          return;
      }
      if (b(l)) {
        At(e, r, l);
        return;
      }
      if (l === null || typeof l != "object" ? i = null : (i = Ie && l[Ie] || l["@@iterator"], i = typeof i == "function" ? i : null), i && (i = i.call(l))) {
        if (l = i.next(), !l.done) {
          var p = [];
          do
            p.push(l.value), l = i.next();
          while (!l.done);
          At(e, r, p);
        }
        return;
      }
      throw e = Object.prototype.toString.call(l), Error(m(31, e === "[object Object]" ? "object with keys {" + Object.keys(l).join(", ") + "}" : e));
    }
    typeof l == "string" ? (i = r.blockedSegment, i.lastPushedText = Ct(r.blockedSegment.chunks, l, e.responseState, i.lastPushedText)) : typeof l == "number" && (i = r.blockedSegment, i.lastPushedText = Ct(r.blockedSegment.chunks, "" + l, e.responseState, i.lastPushedText));
  }
  function At(e, r, l) {
    for (var i = l.length, p = 0; p < i; p++) {
      var s = r.treeContext;
      r.treeContext = Qe(s, i, p);
      try {
        ut(e, r, l[p]);
      } finally {
        r.treeContext = s;
      }
    }
  }
  function ut(e, r, l) {
    var i = r.blockedSegment.formatContext, p = r.legacyContext, s = r.context;
    try {
      return H(e, r, l);
    } catch (x) {
      if (nt(), typeof x == "object" && x !== null && typeof x.then == "function") {
        l = x;
        var f = r.blockedSegment, y = Ve(e, f.chunks.length, null, f.formatContext, f.lastPushedText, !0);
        f.children.push(y), f.lastPushedText = !1, e = ot(e, r.node, r.blockedBoundary, y, r.abortSet, r.legacyContext, r.context, r.treeContext).ping, l.then(e, e), r.blockedSegment.formatContext = i, r.legacyContext = p, r.context = s, De(s);
      } else throw r.blockedSegment.formatContext = i, r.legacyContext = p, r.context = s, De(s), x;
    }
  }
  function it(e) {
    var r = e.blockedBoundary;
    e = e.blockedSegment, e.status = 3, pe(this, r, e);
  }
  function Ht(e, r, l) {
    var i = e.blockedBoundary;
    e.blockedSegment.status = 3, i === null ? (r.allPendingTasks--, r.status !== 2 && (r.status = 2, r.destination !== null && r.destination.push(null))) : (i.pendingTasks--, i.forceClientRender || (i.forceClientRender = !0, e = l === void 0 ? Error(m(432)) : l, i.errorDigest = r.onError(e), i.parentFlushed && r.clientRenderedBoundaries.push(i)), i.fallbackAbortableTasks.forEach(function(p) {
      return Ht(p, r, l);
    }), i.fallbackAbortableTasks.clear(), r.allPendingTasks--, r.allPendingTasks === 0 && (i = r.onAllReady, i()));
  }
  function ce(e, r) {
    if (r.chunks.length === 0 && r.children.length === 1 && r.children[0].boundary === null) {
      var l = r.children[0];
      l.id = r.id, l.parentFlushed = !0, l.status === 1 && ce(e, l);
    } else e.completedSegments.push(r);
  }
  function pe(e, r, l) {
    if (r === null) {
      if (l.parentFlushed) {
        if (e.completedRootSegment !== null) throw Error(m(389));
        e.completedRootSegment = l;
      }
      e.pendingRootTasks--, e.pendingRootTasks === 0 && (e.onShellError = xe, r = e.onShellReady, r());
    } else r.pendingTasks--, r.forceClientRender || (r.pendingTasks === 0 ? (l.parentFlushed && l.status === 1 && ce(r, l), r.parentFlushed && e.completedBoundaries.push(r), r.fallbackAbortableTasks.forEach(it, e), r.fallbackAbortableTasks.clear()) : l.parentFlushed && l.status === 1 && (ce(r, l), r.completedSegments.length === 1 && r.parentFlushed && e.partialBoundaries.push(r)));
    e.allPendingTasks--, e.allPendingTasks === 0 && (e = e.onAllReady, e());
  }
  function Ut(e) {
    if (e.status !== 2) {
      var r = oe, l = rt.current;
      rt.current = Lt;
      var i = Le;
      Le = e.responseState;
      try {
        var p = e.pingedTasks, s;
        for (s = 0; s < p.length; s++) {
          var f = p[s], y = e, x = f.blockedSegment;
          if (x.status === 0) {
            De(f.context);
            try {
              H(y, f, f.node), y.responseState.generateStaticMarkup || x.lastPushedText && x.textEmbedded && x.chunks.push("<!-- -->"), f.abortSet.delete(f), x.status = 1, pe(y, f.blockedBoundary, x);
            } catch (W) {
              if (nt(), typeof W == "object" && W !== null && typeof W.then == "function") {
                var w = f.ping;
                W.then(w, w);
              } else {
                f.abortSet.delete(f), x.status = 4;
                var C = f.blockedBoundary, M = W, K = ke(y, M);
                if (C === null ? $e(y, M) : (C.pendingTasks--, C.forceClientRender || (C.forceClientRender = !0, C.errorDigest = K, C.parentFlushed && y.clientRenderedBoundaries.push(C))), y.allPendingTasks--, y.allPendingTasks === 0) {
                  var Q = y.onAllReady;
                  Q();
                }
              }
            } finally {
            }
          }
        }
        p.splice(0, s), e.destination !== null && je(e, e.destination);
      } catch (W) {
        ke(e, W), $e(e, W);
      } finally {
        Le = i, rt.current = l, l === Lt && De(r);
      }
    }
  }
  function we(e, r, l) {
    switch (l.parentFlushed = !0, l.status) {
      case 0:
        var i = l.id = e.nextSegmentId++;
        return l.lastPushedText = !1, l.textEmbedded = !1, e = e.responseState, r.push('<template id="'), r.push(e.placeholderPrefix), e = i.toString(16), r.push(e), r.push('"></template>');
      case 1:
        l.status = 2;
        var p = !0;
        i = l.chunks;
        var s = 0;
        l = l.children;
        for (var f = 0; f < l.length; f++) {
          for (p = l[f]; s < p.index; s++) r.push(i[s]);
          p = Ce(e, r, p);
        }
        for (; s < i.length - 1; s++) r.push(i[s]);
        return s < i.length && (p = r.push(i[s])), p;
      default:
        throw Error(m(390));
    }
  }
  function Ce(e, r, l) {
    var i = l.boundary;
    if (i === null) return we(e, r, l);
    if (i.parentFlushed = !0, i.forceClientRender) return e.responseState.generateStaticMarkup || (i = i.errorDigest, r.push("<!--$!-->"), r.push("<template"), i && (r.push(' data-dgst="'), i = O(i), r.push(i), r.push('"')), r.push("></template>")), we(e, r, l), e = e.responseState.generateStaticMarkup ? !0 : r.push("<!--/$-->"), e;
    if (0 < i.pendingTasks) {
      i.rootSegmentID = e.nextSegmentId++, 0 < i.completedSegments.length && e.partialBoundaries.push(i);
      var p = e.responseState, s = p.nextSuspenseID++;
      return p = p.boundaryPrefix + s.toString(16), i = i.id = p, kt(r, e.responseState, i), we(e, r, l), r.push("<!--/$-->");
    }
    if (i.byteSize > e.progressiveChunkSize) return i.rootSegmentID = e.nextSegmentId++, e.completedBoundaries.push(i), kt(r, e.responseState, i.id), we(e, r, l), r.push("<!--/$-->");
    if (e.responseState.generateStaticMarkup || r.push("<!--$-->"), l = i.completedSegments, l.length !== 1) throw Error(m(391));
    return Ce(e, r, l[0]), e = e.responseState.generateStaticMarkup ? !0 : r.push("<!--/$-->"), e;
  }
  function st(e, r, l) {
    return wt(r, e.responseState, l.formatContext, l.id), Ce(e, r, l), pn(r, l.formatContext);
  }
  function at(e, r, l) {
    for (var i = l.completedSegments, p = 0; p < i.length; p++) ct(e, r, l, i[p]);
    if (i.length = 0, e = e.responseState, i = l.id, l = l.rootSegmentID, r.push(e.startInlineScript), e.sentCompleteBoundaryFunction ? r.push('$RC("') : (e.sentCompleteBoundaryFunction = !0, r.push('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("')), i === null) throw Error(m(395));
    return l = l.toString(16), r.push(i), r.push('","'), r.push(e.segmentPrefix), r.push(l), r.push('")<\/script>');
  }
  function ct(e, r, l, i) {
    if (i.status === 2) return !0;
    var p = i.id;
    if (p === -1) {
      if ((i.id = l.rootSegmentID) === -1) throw Error(m(392));
      return st(e, r, i);
    }
    return st(e, r, i), e = e.responseState, r.push(e.startInlineScript), e.sentCompleteSegmentFunction ? r.push('$RS("') : (e.sentCompleteSegmentFunction = !0, r.push('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("')), r.push(e.segmentPrefix), p = p.toString(16), r.push(p), r.push('","'), r.push(e.placeholderPrefix), r.push(p), r.push('")<\/script>');
  }
  function je(e, r) {
    try {
      var l = e.completedRootSegment;
      if (l !== null && e.pendingRootTasks === 0) {
        Ce(e, r, l), e.completedRootSegment = null;
        var i = e.responseState.bootstrapChunks;
        for (l = 0; l < i.length - 1; l++) r.push(i[l]);
        l < i.length && r.push(i[l]);
      }
      var p = e.clientRenderedBoundaries, s;
      for (s = 0; s < p.length; s++) {
        var f = p[s];
        i = r;
        var y = e.responseState, x = f.id, w = f.errorDigest, C = f.errorMessage, M = f.errorComponentStack;
        if (i.push(y.startInlineScript), y.sentClientRenderFunction ? i.push('$RX("') : (y.sentClientRenderFunction = !0, i.push('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("')), x === null) throw Error(m(395));
        if (i.push(x), i.push('"'), w || C || M) {
          i.push(",");
          var K = qe(w || "");
          i.push(K);
        }
        if (C || M) {
          i.push(",");
          var Q = qe(C || "");
          i.push(Q);
        }
        if (M) {
          i.push(",");
          var W = qe(M);
          i.push(W);
        }
        if (!i.push(")<\/script>")) {
          e.destination = null, s++, p.splice(0, s);
          return;
        }
      }
      p.splice(0, s);
      var Ee = e.completedBoundaries;
      for (s = 0; s < Ee.length; s++) if (!at(e, r, Ee[s])) {
        e.destination = null, s++, Ee.splice(0, s);
        return;
      }
      Ee.splice(0, s);
      var se = e.partialBoundaries;
      for (s = 0; s < se.length; s++) {
        var ft = se[s];
        e: {
          p = e, f = r;
          var Te = ft.completedSegments;
          for (y = 0; y < Te.length; y++) if (!ct(p, f, ft, Te[y])) {
            y++, Te.splice(0, y);
            var Zt = !1;
            break e;
          }
          Te.splice(0, y), Zt = !0;
        }
        if (!Zt) {
          e.destination = null, s++, se.splice(0, s);
          return;
        }
      }
      se.splice(0, s);
      var fe = e.completedBoundaries;
      for (s = 0; s < fe.length; s++) if (!at(e, r, fe[s])) {
        e.destination = null, s++, fe.splice(0, s);
        return;
      }
      fe.splice(0, s);
    } finally {
      e.allPendingTasks === 0 && e.pingedTasks.length === 0 && e.clientRenderedBoundaries.length === 0 && e.completedBoundaries.length === 0 && r.push(null);
    }
  }
  function Wt(e, r) {
    try {
      var l = e.abortableTasks;
      l.forEach(function(i) {
        return Ht(i, e, r);
      }), l.clear(), e.destination !== null && je(e, e.destination);
    } catch (i) {
      ke(e, i), $e(e, i);
    }
  }
  function qt() {
  }
  function pt(e, r, l, i) {
    var p = !1, s = null, f = "", y = { push: function(w) {
      return w !== null && (f += w), !0;
    }, destroy: function(w) {
      p = !0, s = w;
    } }, x = !1;
    if (e = Cn(e, G(l, r ? r.identifierPrefix : void 0), { insertionMode: 1, selectedValue: null }, 1 / 0, qt, void 0, function() {
      x = !0;
    }), Ut(e), Wt(e, i), e.status === 1) e.status = 2, y.destroy(e.fatalError);
    else if (e.status !== 2 && e.destination === null) {
      e.destination = y;
      try {
        je(e, y);
      } catch (w) {
        ke(e, w), $e(e, w);
      }
    }
    if (p) throw s;
    if (!x) throw Error(m(426));
    return f;
  }
  return Re.renderToNodeStream = function() {
    throw Error(m(207));
  }, Re.renderToStaticMarkup = function(e, r) {
    return pt(e, r, !0, 'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server');
  }, Re.renderToStaticNodeStream = function() {
    throw Error(m(208));
  }, Re.renderToString = function(e, r) {
    return pt(e, r, !1, 'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server');
  }, Re.version = "18.2.0", Re;
}
var un = {};
/**
 * @license React
 * react-dom-server.browser.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */
var Yn;
function hr() {
  if (Yn) return un;
  Yn = 1;
  var $ = Qn;
  function m(t) {
    for (var n = "https://reactjs.org/docs/error-decoder.html?invariant=" + t, o = 1; o < arguments.length; o++) n += "&args[]=" + encodeURIComponent(arguments[o]);
    return "Minified React error #" + t + "; visit " + n + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
  }
  var F = null, B = 0;
  function v(t, n) {
    if (n.length !== 0) if (512 < n.length) 0 < B && (t.enqueue(new Uint8Array(F.buffer, 0, B)), F = new Uint8Array(512), B = 0), t.enqueue(n);
    else {
      var o = F.length - B;
      o < n.length && (o === 0 ? t.enqueue(F) : (F.set(n.subarray(0, o), B), t.enqueue(F), n = n.subarray(o)), F = new Uint8Array(512), B = 0), F.set(n, B), B += n.length;
    }
  }
  function R(t, n) {
    return v(t, n), !0;
  }
  function Ae(t) {
    F && 0 < B && (t.enqueue(new Uint8Array(F.buffer, 0, B)), F = null, B = 0);
  }
  var N = new TextEncoder();
  function S(t) {
    return N.encode(t);
  }
  function g(t) {
    return N.encode(t);
  }
  function _e(t, n) {
    typeof t.error == "function" ? t.error(n) : t.close();
  }
  var z = Object.prototype.hasOwnProperty, sn = /^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/, gt = {}, O = {};
  function vt(t) {
    return z.call(O, t) ? !0 : z.call(gt, t) ? !1 : sn.test(t) ? O[t] = !0 : (gt[t] = !0, !1);
  }
  function L(t, n, o, u, c, a, d) {
    this.acceptsBooleans = n === 2 || n === 3 || n === 4, this.attributeName = u, this.attributeNamespace = c, this.mustUseProperty = o, this.propertyName = t, this.type = n, this.sanitizeURL = a, this.removeEmptyString = d;
  }
  var b = {};
  "children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t) {
    b[t] = new L(t, 0, !1, t, null, !1, !1);
  }), [["acceptCharset", "accept-charset"], ["className", "class"], ["htmlFor", "for"], ["httpEquiv", "http-equiv"]].forEach(function(t) {
    var n = t[0];
    b[n] = new L(n, 1, !1, t[1], null, !1, !1);
  }), ["contentEditable", "draggable", "spellCheck", "value"].forEach(function(t) {
    b[t] = new L(t, 2, !1, t.toLowerCase(), null, !1, !1);
  }), ["autoReverse", "externalResourcesRequired", "focusable", "preserveAlpha"].forEach(function(t) {
    b[t] = new L(t, 2, !1, t, null, !1, !1);
  }), "allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t) {
    b[t] = new L(t, 3, !1, t.toLowerCase(), null, !1, !1);
  }), ["checked", "multiple", "muted", "selected"].forEach(function(t) {
    b[t] = new L(t, 3, !0, t, null, !1, !1);
  }), ["capture", "download"].forEach(function(t) {
    b[t] = new L(t, 4, !1, t, null, !1, !1);
  }), ["cols", "rows", "size", "span"].forEach(function(t) {
    b[t] = new L(t, 6, !1, t, null, !1, !1);
  }), ["rowSpan", "start"].forEach(function(t) {
    b[t] = new L(t, 5, !1, t.toLowerCase(), null, !1, !1);
  });
  var U = /[\-:]([a-z])/g;
  function He(t) {
    return t[1].toUpperCase();
  }
  "accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t) {
    var n = t.replace(
      U,
      He
    );
    b[n] = new L(n, 1, !1, t, null, !1, !1);
  }), "xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t) {
    var n = t.replace(U, He);
    b[n] = new L(n, 1, !1, t, "http://www.w3.org/1999/xlink", !1, !1);
  }), ["xml:base", "xml:lang", "xml:space"].forEach(function(t) {
    var n = t.replace(U, He);
    b[n] = new L(n, 1, !1, t, "http://www.w3.org/XML/1998/namespace", !1, !1);
  }), ["tabIndex", "crossOrigin"].forEach(function(t) {
    b[t] = new L(t, 1, !1, t.toLowerCase(), null, !1, !1);
  }), b.xlinkHref = new L("xlinkHref", 1, !1, "xlink:href", "http://www.w3.org/1999/xlink", !0, !1), ["src", "href", "action", "formAction"].forEach(function(t) {
    b[t] = new L(t, 1, !1, t.toLowerCase(), null, !0, !0);
  });
  var me = {
    animationIterationCount: !0,
    aspectRatio: !0,
    borderImageOutset: !0,
    borderImageSlice: !0,
    borderImageWidth: !0,
    boxFlex: !0,
    boxFlexGroup: !0,
    boxOrdinalGroup: !0,
    columnCount: !0,
    columns: !0,
    flex: !0,
    flexGrow: !0,
    flexPositive: !0,
    flexShrink: !0,
    flexNegative: !0,
    flexOrder: !0,
    gridArea: !0,
    gridRow: !0,
    gridRowEnd: !0,
    gridRowSpan: !0,
    gridRowStart: !0,
    gridColumn: !0,
    gridColumnEnd: !0,
    gridColumnSpan: !0,
    gridColumnStart: !0,
    fontWeight: !0,
    lineClamp: !0,
    lineHeight: !0,
    opacity: !0,
    order: !0,
    orphans: !0,
    tabSize: !0,
    widows: !0,
    zIndex: !0,
    zoom: !0,
    fillOpacity: !0,
    floodOpacity: !0,
    stopOpacity: !0,
    strokeDasharray: !0,
    strokeDashoffset: !0,
    strokeMiterlimit: !0,
    strokeOpacity: !0,
    strokeWidth: !0
  }, St = ["Webkit", "ms", "Moz", "O"];
  Object.keys(me).forEach(function(t) {
    St.forEach(function(n) {
      n = n + t.charAt(0).toUpperCase() + t.substring(1), me[n] = me[t];
    });
  });
  var j = /["'&<>]/;
  function D(t) {
    if (typeof t == "boolean" || typeof t == "number") return "" + t;
    t = "" + t;
    var n = j.exec(t);
    if (n) {
      var o = "", u, c = 0;
      for (u = n.index; u < t.length; u++) {
        switch (t.charCodeAt(u)) {
          case 34:
            n = "&quot;";
            break;
          case 38:
            n = "&amp;";
            break;
          case 39:
            n = "&#x27;";
            break;
          case 60:
            n = "&lt;";
            break;
          case 62:
            n = "&gt;";
            break;
          default:
            continue;
        }
        c !== u && (o += t.substring(c, u)), c = u + 1, o += n;
      }
      t = c !== u ? o + t.substring(c, u) : o;
    }
    return t;
  }
  var an = /([A-Z])/g, Ue = /^ms-/, We = Array.isArray, xt = g("<script>"), X = g("<\/script>"), cn = g('<script src="'), kt = g('<script type="module" src="'), wt = g('" async=""><\/script>'), pn = /(<\/|<)(s)(cript)/gi;
  function fn(t, n, o, u) {
    return "" + n + (o === "s" ? "\\u0073" : "\\u0053") + u;
  }
  function qe(t, n, o, u, c) {
    t = t === void 0 ? "" : t, n = n === void 0 ? xt : g('<script nonce="' + D(n) + '">');
    var a = [];
    if (o !== void 0 && a.push(n, S(("" + o).replace(pn, fn)), X), u !== void 0) for (o = 0; o < u.length; o++) a.push(cn, S(D(u[o])), wt);
    if (c !== void 0) for (u = 0; u < c.length; u++) a.push(kt, S(D(c[u])), wt);
    return { bootstrapChunks: a, startInlineScript: n, placeholderPrefix: g(t + "P:"), segmentPrefix: g(t + "S:"), boundaryPrefix: t + "B:", idPrefix: t, nextSuspenseID: 0, sentCompleteSegmentFunction: !1, sentCompleteBoundaryFunction: !1, sentClientRenderFunction: !1 };
  }
  function G(t, n) {
    return { insertionMode: t, selectedValue: n };
  }
  function Ct(t) {
    return G(t === "http://www.w3.org/2000/svg" ? 2 : t === "http://www.w3.org/1998/Math/MathML" ? 3 : 0, null);
  }
  function ye(t, n, o) {
    switch (n) {
      case "select":
        return G(1, o.value != null ? o.value : o.defaultValue);
      case "svg":
        return G(2, null);
      case "math":
        return G(3, null);
      case "foreignObject":
        return G(1, null);
      case "table":
        return G(4, null);
      case "thead":
      case "tbody":
      case "tfoot":
        return G(5, null);
      case "colgroup":
        return G(7, null);
      case "tr":
        return G(6, null);
    }
    return 4 <= t.insertionMode || t.insertionMode === 0 ? G(1, null) : t;
  }
  var Ze = g("<!-- -->");
  function Xe(t, n, o, u) {
    return n === "" ? u : (u && t.push(Ze), t.push(S(D(n))), !0);
  }
  var Ge = /* @__PURE__ */ new Map(), Et = g(' style="'), Je = g(":"), Tt = g(";");
  function Ye(t, n, o) {
    if (typeof o != "object") throw Error(m(62));
    n = !0;
    for (var u in o) if (z.call(o, u)) {
      var c = o[u];
      if (c != null && typeof c != "boolean" && c !== "") {
        if (u.indexOf("--") === 0) {
          var a = S(D(u));
          c = S(D(("" + c).trim()));
        } else {
          a = u;
          var d = Ge.get(a);
          d !== void 0 || (d = g(D(a.replace(an, "-$1").toLowerCase().replace(Ue, "-ms-"))), Ge.set(a, d)), a = d, c = typeof c == "number" ? c === 0 || z.call(me, u) ? S("" + c) : S(c + "px") : S(D(("" + c).trim()));
        }
        n ? (n = !1, t.push(Et, a, Je, c)) : t.push(Tt, a, Je, c);
      }
    }
    n || t.push(ne);
  }
  var Y = g(" "), ue = g('="'), ne = g('"'), Ke = g('=""');
  function V(t, n, o, u) {
    switch (o) {
      case "style":
        Ye(t, n, u);
        return;
      case "defaultValue":
      case "defaultChecked":
      case "innerHTML":
      case "suppressContentEditableWarning":
      case "suppressHydrationWarning":
        return;
    }
    if (!(2 < o.length) || o[0] !== "o" && o[0] !== "O" || o[1] !== "n" && o[1] !== "N") {
      if (n = b.hasOwnProperty(o) ? b[o] : null, n !== null) {
        switch (typeof u) {
          case "function":
          case "symbol":
            return;
          case "boolean":
            if (!n.acceptsBooleans) return;
        }
        switch (o = S(n.attributeName), n.type) {
          case 3:
            u && t.push(Y, o, Ke);
            break;
          case 4:
            u === !0 ? t.push(Y, o, Ke) : u !== !1 && t.push(Y, o, ue, S(D(u)), ne);
            break;
          case 5:
            isNaN(u) || t.push(Y, o, ue, S(D(u)), ne);
            break;
          case 6:
            !isNaN(u) && 1 <= u && t.push(Y, o, ue, S(D(u)), ne);
            break;
          default:
            n.sanitizeURL && (u = "" + u), t.push(Y, o, ue, S(D(u)), ne);
        }
      } else if (vt(o)) {
        switch (typeof u) {
          case "function":
          case "symbol":
            return;
          case "boolean":
            if (n = o.toLowerCase().slice(0, 5), n !== "data-" && n !== "aria-") return;
        }
        t.push(Y, S(o), ue, S(D(u)), ne);
      }
    }
  }
  var re = g(">"), Ft = g("/>");
  function Pe(t, n, o) {
    if (n != null) {
      if (o != null) throw Error(m(60));
      if (typeof n != "object" || !("__html" in n)) throw Error(m(61));
      n = n.__html, n != null && t.push(S("" + n));
    }
  }
  function dn(t) {
    var n = "";
    return $.Children.forEach(t, function(o) {
      o != null && (n += o);
    }), n;
  }
  var Ie = g(' selected=""');
  function ge(t, n, o, u) {
    t.push(A(o));
    var c = o = null, a;
    for (a in n) if (z.call(n, a)) {
      var d = n[a];
      if (d != null) switch (a) {
        case "children":
          o = d;
          break;
        case "dangerouslySetInnerHTML":
          c = d;
          break;
        default:
          V(t, u, a, d);
      }
    }
    return t.push(re), Pe(t, c, o), typeof o == "string" ? (t.push(S(D(o))), null) : o;
  }
  var Me = g(`
`), Rt = /^[a-zA-Z][a-zA-Z:_\.\-\d]*$/, oe = /* @__PURE__ */ new Map();
  function A(t) {
    var n = oe.get(t);
    if (n === void 0) {
      if (!Rt.test(t)) throw Error(m(65, t));
      n = g("<" + t), oe.set(t, n);
    }
    return n;
  }
  var _t = g("<!DOCTYPE html>");
  function Pt(t, n, o, u, c) {
    switch (n) {
      case "select":
        t.push(A("select"));
        var a = null, d = null;
        for (E in o) if (z.call(o, E)) {
          var h = o[E];
          if (h != null) switch (E) {
            case "children":
              a = h;
              break;
            case "dangerouslySetInnerHTML":
              d = h;
              break;
            case "defaultValue":
            case "value":
              break;
            default:
              V(t, u, E, h);
          }
        }
        return t.push(re), Pe(t, d, a), a;
      case "option":
        d = c.selectedValue, t.push(A("option"));
        var k = h = null, T = null, E = null;
        for (a in o) if (z.call(o, a)) {
          var I = o[a];
          if (I != null) switch (a) {
            case "children":
              h = I;
              break;
            case "selected":
              T = I;
              break;
            case "dangerouslySetInnerHTML":
              E = I;
              break;
            case "value":
              k = I;
            default:
              V(t, u, a, I);
          }
        }
        if (d != null) if (o = k !== null ? "" + k : dn(h), We(d)) {
          for (u = 0; u < d.length; u++)
            if ("" + d[u] === o) {
              t.push(Ie);
              break;
            }
        } else "" + d === o && t.push(Ie);
        else T && t.push(Ie);
        return t.push(re), Pe(t, E, h), h;
      case "textarea":
        t.push(A("textarea")), E = d = a = null;
        for (h in o) if (z.call(o, h) && (k = o[h], k != null)) switch (h) {
          case "children":
            E = k;
            break;
          case "value":
            a = k;
            break;
          case "defaultValue":
            d = k;
            break;
          case "dangerouslySetInnerHTML":
            throw Error(m(91));
          default:
            V(t, u, h, k);
        }
        if (a === null && d !== null && (a = d), t.push(re), E != null) {
          if (a != null) throw Error(m(92));
          if (We(E) && 1 < E.length) throw Error(m(93));
          a = "" + E;
        }
        return typeof a == "string" && a[0] === `
` && t.push(Me), a !== null && t.push(S(D("" + a))), null;
      case "input":
        t.push(A("input")), k = E = h = a = null;
        for (d in o) if (z.call(o, d) && (T = o[d], T != null)) switch (d) {
          case "children":
          case "dangerouslySetInnerHTML":
            throw Error(m(399, "input"));
          case "defaultChecked":
            k = T;
            break;
          case "defaultValue":
            h = T;
            break;
          case "checked":
            E = T;
            break;
          case "value":
            a = T;
            break;
          default:
            V(t, u, d, T);
        }
        return E !== null ? V(
          t,
          u,
          "checked",
          E
        ) : k !== null && V(t, u, "checked", k), a !== null ? V(t, u, "value", a) : h !== null && V(t, u, "value", h), t.push(Ft), null;
      case "menuitem":
        t.push(A("menuitem"));
        for (var Z in o) if (z.call(o, Z) && (a = o[Z], a != null)) switch (Z) {
          case "children":
          case "dangerouslySetInnerHTML":
            throw Error(m(400));
          default:
            V(t, u, Z, a);
        }
        return t.push(re), null;
      case "title":
        t.push(A("title")), a = null;
        for (I in o) if (z.call(o, I) && (d = o[I], d != null)) switch (I) {
          case "children":
            a = d;
            break;
          case "dangerouslySetInnerHTML":
            throw Error(m(434));
          default:
            V(t, u, I, d);
        }
        return t.push(re), a;
      case "listing":
      case "pre":
        t.push(A(n)), d = a = null;
        for (k in o) if (z.call(o, k) && (h = o[k], h != null)) switch (k) {
          case "children":
            a = h;
            break;
          case "dangerouslySetInnerHTML":
            d = h;
            break;
          default:
            V(t, u, k, h);
        }
        if (t.push(re), d != null) {
          if (a != null) throw Error(m(60));
          if (typeof d != "object" || !("__html" in d)) throw Error(m(61));
          o = d.__html, o != null && (typeof o == "string" && 0 < o.length && o[0] === `
` ? t.push(Me, S(o)) : t.push(S("" + o)));
        }
        return typeof a == "string" && a[0] === `
` && t.push(Me), a;
      case "area":
      case "base":
      case "br":
      case "col":
      case "embed":
      case "hr":
      case "img":
      case "keygen":
      case "link":
      case "meta":
      case "param":
      case "source":
      case "track":
      case "wbr":
        t.push(A(n));
        for (var ee in o) if (z.call(o, ee) && (a = o[ee], a != null)) switch (ee) {
          case "children":
          case "dangerouslySetInnerHTML":
            throw Error(m(399, n));
          default:
            V(t, u, ee, a);
        }
        return t.push(Ft), null;
      case "annotation-xml":
      case "color-profile":
      case "font-face":
      case "font-face-src":
      case "font-face-uri":
      case "font-face-format":
      case "font-face-name":
      case "missing-glyph":
        return ge(t, o, n, u);
      case "html":
        return c.insertionMode === 0 && t.push(_t), ge(t, o, n, u);
      default:
        if (n.indexOf("-") === -1 && typeof o.is != "string") return ge(t, o, n, u);
        t.push(A(n)), d = a = null;
        for (T in o) if (z.call(o, T) && (h = o[T], h != null)) switch (T) {
          case "children":
            a = h;
            break;
          case "dangerouslySetInnerHTML":
            d = h;
            break;
          case "style":
            Ye(t, u, h);
            break;
          case "suppressContentEditableWarning":
          case "suppressHydrationWarning":
            break;
          default:
            vt(T) && typeof h != "function" && typeof h != "symbol" && t.push(Y, S(T), ue, S(D(h)), ne);
        }
        return t.push(re), Pe(t, d, a), a;
    }
  }
  var It = g("</"), Mt = g(">"), De = g('<template id="'), Dt = g('"></template>'), Bt = g("<!--$-->"), hn = g('<!--$?--><template id="'), Qe = g('"></template>'), Be = g("<!--$!-->"), mn = g("<!--/$-->"), yn = g("<template"), gn = g('"'), vn = g(' data-dgst="');
  g(' data-msg="'), g(' data-stck="');
  var Sn = g("></template>");
  function J(t, n, o) {
    if (v(t, hn), o === null) throw Error(m(395));
    return v(t, o), R(t, Qe);
  }
  var et = g('<div hidden id="'), be = g('">'), _ = g("</div>"), ve = g('<svg aria-hidden="true" style="display:none" id="'), ze = g('">'), Se = g("</svg>"), le = g('<math aria-hidden="true" style="display:none" id="'), Ne = g('">'), ie = g("</math>"), bt = g('<table hidden id="'), tt = g('">'), nt = g("</table>"), zt = g('<table hidden><tbody id="'), Nt = g('">'), Ot = g("</tbody></table>"), xn = g('<table hidden><tr id="'), kn = g('">'), Oe = g("</tr></table>"), Lt = g('<table hidden><colgroup id="'), Le = g('">'), rt = g("</colgroup></table>");
  function wn(t, n, o, u) {
    switch (o.insertionMode) {
      case 0:
      case 1:
        return v(t, et), v(t, n.segmentPrefix), v(t, S(u.toString(16))), R(t, be);
      case 2:
        return v(t, ve), v(t, n.segmentPrefix), v(t, S(u.toString(16))), R(t, ze);
      case 3:
        return v(t, le), v(t, n.segmentPrefix), v(t, S(u.toString(16))), R(t, Ne);
      case 4:
        return v(t, bt), v(t, n.segmentPrefix), v(t, S(u.toString(16))), R(t, tt);
      case 5:
        return v(t, zt), v(t, n.segmentPrefix), v(t, S(u.toString(16))), R(t, Nt);
      case 6:
        return v(t, xn), v(t, n.segmentPrefix), v(t, S(u.toString(16))), R(t, kn);
      case 7:
        return v(
          t,
          Lt
        ), v(t, n.segmentPrefix), v(t, S(u.toString(16))), R(t, Le);
      default:
        throw Error(m(397));
    }
  }
  function xe(t, n) {
    switch (n.insertionMode) {
      case 0:
      case 1:
        return R(t, _);
      case 2:
        return R(t, Se);
      case 3:
        return R(t, ie);
      case 4:
        return R(t, nt);
      case 5:
        return R(t, Ot);
      case 6:
        return R(t, Oe);
      case 7:
        return R(t, rt);
      default:
        throw Error(m(397));
    }
  }
  var Cn = g('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'), ot = g('$RS("'), Ve = g('","'), ke = g('")<\/script>'), $e = g('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("'), Vt = g('$RC("'), $t = g('","'), jt = g('")<\/script>'), lt = g('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("'), H = g('$RX("'), At = g('"'), ut = g(")<\/script>"), it = g(","), Ht = /[<\u2028\u2029]/g;
  function ce(t) {
    return JSON.stringify(t).replace(Ht, function(n) {
      switch (n) {
        case "<":
          return "\\u003c";
        case "\u2028":
          return "\\u2028";
        case "\u2029":
          return "\\u2029";
        default:
          throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React");
      }
    });
  }
  var pe = Object.assign, Ut = Symbol.for("react.element"), we = Symbol.for("react.portal"), Ce = Symbol.for("react.fragment"), st = Symbol.for("react.strict_mode"), at = Symbol.for("react.profiler"), ct = Symbol.for("react.provider"), je = Symbol.for("react.context"), Wt = Symbol.for("react.forward_ref"), qt = Symbol.for("react.suspense"), pt = Symbol.for("react.suspense_list"), e = Symbol.for("react.memo"), r = Symbol.for("react.lazy"), l = Symbol.for("react.scope"), i = Symbol.for("react.debug_trace_mode"), p = Symbol.for("react.legacy_hidden"), s = Symbol.for("react.default_value"), f = Symbol.iterator;
  function y(t) {
    if (t == null) return null;
    if (typeof t == "function") return t.displayName || t.name || null;
    if (typeof t == "string") return t;
    switch (t) {
      case Ce:
        return "Fragment";
      case we:
        return "Portal";
      case at:
        return "Profiler";
      case st:
        return "StrictMode";
      case qt:
        return "Suspense";
      case pt:
        return "SuspenseList";
    }
    if (typeof t == "object") switch (t.$$typeof) {
      case je:
        return (t.displayName || "Context") + ".Consumer";
      case ct:
        return (t._context.displayName || "Context") + ".Provider";
      case Wt:
        var n = t.render;
        return t = t.displayName, t || (t = n.displayName || n.name || "", t = t !== "" ? "ForwardRef(" + t + ")" : "ForwardRef"), t;
      case e:
        return n = t.displayName || null, n !== null ? n : y(t.type) || "Memo";
      case r:
        n = t._payload, t = t._init;
        try {
          return y(t(n));
        } catch {
        }
    }
    return null;
  }
  var x = {};
  function w(t, n) {
    if (t = t.contextTypes, !t) return x;
    var o = {}, u;
    for (u in t) o[u] = n[u];
    return o;
  }
  var C = null;
  function M(t, n) {
    if (t !== n) {
      t.context._currentValue = t.parentValue, t = t.parent;
      var o = n.parent;
      if (t === null) {
        if (o !== null) throw Error(m(401));
      } else {
        if (o === null) throw Error(m(401));
        M(t, o);
      }
      n.context._currentValue = n.value;
    }
  }
  function K(t) {
    t.context._currentValue = t.parentValue, t = t.parent, t !== null && K(t);
  }
  function Q(t) {
    var n = t.parent;
    n !== null && Q(n), t.context._currentValue = t.value;
  }
  function W(t, n) {
    if (t.context._currentValue = t.parentValue, t = t.parent, t === null) throw Error(m(402));
    t.depth === n.depth ? M(t, n) : W(t, n);
  }
  function Ee(t, n) {
    var o = n.parent;
    if (o === null) throw Error(m(402));
    t.depth === o.depth ? M(t, o) : Ee(t, o), n.context._currentValue = n.value;
  }
  function se(t) {
    var n = C;
    n !== t && (n === null ? Q(t) : t === null ? K(n) : n.depth === t.depth ? M(n, t) : n.depth > t.depth ? W(n, t) : Ee(n, t), C = t);
  }
  var ft = { isMounted: function() {
    return !1;
  }, enqueueSetState: function(t, n) {
    t = t._reactInternals, t.queue !== null && t.queue.push(n);
  }, enqueueReplaceState: function(t, n) {
    t = t._reactInternals, t.replace = !0, t.queue = [n];
  }, enqueueForceUpdate: function() {
  } };
  function Te(t, n, o, u) {
    var c = t.state !== void 0 ? t.state : null;
    t.updater = ft, t.props = o, t.state = c;
    var a = { queue: [], replace: !1 };
    t._reactInternals = a;
    var d = n.contextType;
    if (t.context = typeof d == "object" && d !== null ? d._currentValue : u, d = n.getDerivedStateFromProps, typeof d == "function" && (d = d(o, c), c = d == null ? c : pe({}, c, d), t.state = c), typeof n.getDerivedStateFromProps != "function" && typeof t.getSnapshotBeforeUpdate != "function" && (typeof t.UNSAFE_componentWillMount == "function" || typeof t.componentWillMount == "function")) if (n = t.state, typeof t.componentWillMount == "function" && t.componentWillMount(), typeof t.UNSAFE_componentWillMount == "function" && t.UNSAFE_componentWillMount(), n !== t.state && ft.enqueueReplaceState(t, t.state, null), a.queue !== null && 0 < a.queue.length) if (n = a.queue, d = a.replace, a.queue = null, a.replace = !1, d && n.length === 1) t.state = n[0];
    else {
      for (a = d ? n[0] : t.state, c = !0, d = d ? 1 : 0; d < n.length; d++) {
        var h = n[d];
        h = typeof h == "function" ? h.call(t, a, o, u) : h, h != null && (c ? (c = !1, a = pe({}, a, h)) : pe(a, h));
      }
      t.state = a;
    }
    else a.queue = null;
  }
  var Zt = { id: 1, overflow: "" };
  function fe(t, n, o) {
    var u = t.id;
    t = t.overflow;
    var c = 32 - Xt(u) - 1;
    u &= ~(1 << c), o += 1;
    var a = 32 - Xt(n) + c;
    if (30 < a) {
      var d = c - c % 5;
      return a = (u & (1 << d) - 1).toString(32), u >>= d, c -= d, { id: 1 << 32 - Xt(n) + c | o << c | u, overflow: a + t };
    }
    return { id: 1 << a | o << c | u, overflow: t };
  }
  var Xt = Math.clz32 ? Math.clz32 : rr, tr = Math.log, nr = Math.LN2;
  function rr(t) {
    return t >>>= 0, t === 0 ? 32 : 31 - (tr(t) / nr | 0) | 0;
  }
  function or(t, n) {
    return t === n && (t !== 0 || 1 / t === 1 / n) || t !== t && n !== n;
  }
  var lr = typeof Object.is == "function" ? Object.is : or, ae = null, En = null, Gt = null, P = null, dt = !1, Jt = !1, ht = 0, de = null, Yt = 0;
  function Fe() {
    if (ae === null) throw Error(m(321));
    return ae;
  }
  function Bn() {
    if (0 < Yt) throw Error(m(312));
    return { memoizedState: null, queue: null, next: null };
  }
  function Tn() {
    return P === null ? Gt === null ? (dt = !1, Gt = P = Bn()) : (dt = !0, P = Gt) : P.next === null ? (dt = !1, P = P.next = Bn()) : (dt = !0, P = P.next), P;
  }
  function Fn() {
    En = ae = null, Jt = !1, Gt = null, Yt = 0, P = de = null;
  }
  function bn(t, n) {
    return typeof n == "function" ? n(t) : n;
  }
  function zn(t, n, o) {
    if (ae = Fe(), P = Tn(), dt) {
      var u = P.queue;
      if (n = u.dispatch, de !== null && (o = de.get(u), o !== void 0)) {
        de.delete(u), u = P.memoizedState;
        do
          u = t(u, o.action), o = o.next;
        while (o !== null);
        return P.memoizedState = u, [u, n];
      }
      return [P.memoizedState, n];
    }
    return t = t === bn ? typeof n == "function" ? n() : n : o !== void 0 ? o(n) : n, P.memoizedState = t, t = P.queue = { last: null, dispatch: null }, t = t.dispatch = ur.bind(null, ae, t), [P.memoizedState, t];
  }
  function Nn(t, n) {
    if (ae = Fe(), P = Tn(), n = n === void 0 ? null : n, P !== null) {
      var o = P.memoizedState;
      if (o !== null && n !== null) {
        var u = o[1];
        e: if (u === null) u = !1;
        else {
          for (var c = 0; c < u.length && c < n.length; c++) if (!lr(n[c], u[c])) {
            u = !1;
            break e;
          }
          u = !0;
        }
        if (u) return o[0];
      }
    }
    return t = t(), P.memoizedState = [t, n], t;
  }
  function ur(t, n, o) {
    if (25 <= Yt) throw Error(m(301));
    if (t === ae) if (Jt = !0, t = { action: o, next: null }, de === null && (de = /* @__PURE__ */ new Map()), o = de.get(n), o === void 0) de.set(n, t);
    else {
      for (n = o; n.next !== null; ) n = n.next;
      n.next = t;
    }
  }
  function ir() {
    throw Error(m(394));
  }
  function Kt() {
  }
  var On = { readContext: function(t) {
    return t._currentValue;
  }, useContext: function(t) {
    return Fe(), t._currentValue;
  }, useMemo: Nn, useReducer: zn, useRef: function(t) {
    ae = Fe(), P = Tn();
    var n = P.memoizedState;
    return n === null ? (t = { current: t }, P.memoizedState = t) : n;
  }, useState: function(t) {
    return zn(bn, t);
  }, useInsertionEffect: Kt, useLayoutEffect: function() {
  }, useCallback: function(t, n) {
    return Nn(function() {
      return t;
    }, n);
  }, useImperativeHandle: Kt, useEffect: Kt, useDebugValue: Kt, useDeferredValue: function(t) {
    return Fe(), t;
  }, useTransition: function() {
    return Fe(), [!1, ir];
  }, useId: function() {
    var t = En.treeContext, n = t.overflow;
    t = t.id, t = (t & ~(1 << 32 - Xt(t) - 1)).toString(32) + n;
    var o = Qt;
    if (o === null) throw Error(m(404));
    return n = ht++, t = ":" + o.idPrefix + "R" + t, 0 < n && (t += "H" + n.toString(32)), t + ":";
  }, useMutableSource: function(t, n) {
    return Fe(), n(t._source);
  }, useSyncExternalStore: function(t, n, o) {
    if (o === void 0) throw Error(m(407));
    return o();
  } }, Qt = null, Rn = $.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;
  function sr(t) {
    return console.error(t), null;
  }
  function mt() {
  }
  function ar(t, n, o, u, c, a, d, h, k) {
    var T = [], E = /* @__PURE__ */ new Set();
    return n = { destination: null, responseState: n, progressiveChunkSize: u === void 0 ? 12800 : u, status: 0, fatalError: null, nextSegmentId: 0, allPendingTasks: 0, pendingRootTasks: 0, completedRootSegment: null, abortableTasks: E, pingedTasks: T, clientRenderedBoundaries: [], completedBoundaries: [], partialBoundaries: [], onError: c === void 0 ? sr : c, onAllReady: a === void 0 ? mt : a, onShellReady: d === void 0 ? mt : d, onShellError: h === void 0 ? mt : h, onFatalError: k === void 0 ? mt : k }, o = en(n, 0, null, o, !1, !1), o.parentFlushed = !0, t = _n(n, t, null, o, E, x, null, Zt), T.push(t), n;
  }
  function _n(t, n, o, u, c, a, d, h) {
    t.allPendingTasks++, o === null ? t.pendingRootTasks++ : o.pendingTasks++;
    var k = { node: n, ping: function() {
      var T = t.pingedTasks;
      T.push(k), T.length === 1 && Un(t);
    }, blockedBoundary: o, blockedSegment: u, abortSet: c, legacyContext: a, context: d, treeContext: h };
    return c.add(k), k;
  }
  function en(t, n, o, u, c, a) {
    return { status: 0, id: -1, index: n, parentFlushed: !1, chunks: [], children: [], formatContext: u, boundary: o, lastPushedText: c, textEmbedded: a };
  }
  function yt(t, n) {
    if (t = t.onError(n), t != null && typeof t != "string") throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "' + typeof t + '" instead');
    return t;
  }
  function tn(t, n) {
    var o = t.onShellError;
    o(n), o = t.onFatalError, o(n), t.destination !== null ? (t.status = 2, _e(t.destination, n)) : (t.status = 1, t.fatalError = n);
  }
  function Ln(t, n, o, u, c) {
    for (ae = {}, En = n, ht = 0, t = o(u, c); Jt; ) Jt = !1, ht = 0, Yt += 1, P = null, t = o(u, c);
    return Fn(), t;
  }
  function Vn(t, n, o, u) {
    var c = o.render(), a = u.childContextTypes;
    if (a != null) {
      var d = n.legacyContext;
      if (typeof o.getChildContext != "function") u = d;
      else {
        o = o.getChildContext();
        for (var h in o) if (!(h in a)) throw Error(m(108, y(u) || "Unknown", h));
        u = pe({}, d, o);
      }
      n.legacyContext = u, q(t, n, c), n.legacyContext = d;
    } else q(t, n, c);
  }
  function $n(t, n) {
    if (t && t.defaultProps) {
      n = pe({}, n), t = t.defaultProps;
      for (var o in t) n[o] === void 0 && (n[o] = t[o]);
      return n;
    }
    return n;
  }
  function Pn(t, n, o, u, c) {
    if (typeof o == "function") if (o.prototype && o.prototype.isReactComponent) {
      c = w(o, n.legacyContext);
      var a = o.contextType;
      a = new o(u, typeof a == "object" && a !== null ? a._currentValue : c), Te(a, o, u, c), Vn(t, n, a, o);
    } else {
      a = w(o, n.legacyContext), c = Ln(t, n, o, u, a);
      var d = ht !== 0;
      if (typeof c == "object" && c !== null && typeof c.render == "function" && c.$$typeof === void 0) Te(c, o, u, a), Vn(t, n, c, o);
      else if (d) {
        u = n.treeContext, n.treeContext = fe(u, 1, 0);
        try {
          q(t, n, c);
        } finally {
          n.treeContext = u;
        }
      } else q(t, n, c);
    }
    else if (typeof o == "string") {
      switch (c = n.blockedSegment, a = Pt(c.chunks, o, u, t.responseState, c.formatContext), c.lastPushedText = !1, d = c.formatContext, c.formatContext = ye(d, o, u), In(t, n, a), c.formatContext = d, o) {
        case "area":
        case "base":
        case "br":
        case "col":
        case "embed":
        case "hr":
        case "img":
        case "input":
        case "keygen":
        case "link":
        case "meta":
        case "param":
        case "source":
        case "track":
        case "wbr":
          break;
        default:
          c.chunks.push(It, S(o), Mt);
      }
      c.lastPushedText = !1;
    } else {
      switch (o) {
        case p:
        case i:
        case st:
        case at:
        case Ce:
          q(t, n, u.children);
          return;
        case pt:
          q(t, n, u.children);
          return;
        case l:
          throw Error(m(343));
        case qt:
          e: {
            o = n.blockedBoundary, c = n.blockedSegment, a = u.fallback, u = u.children, d = /* @__PURE__ */ new Set();
            var h = { id: null, rootSegmentID: -1, parentFlushed: !1, pendingTasks: 0, forceClientRender: !1, completedSegments: [], byteSize: 0, fallbackAbortableTasks: d, errorDigest: null }, k = en(t, c.chunks.length, h, c.formatContext, !1, !1);
            c.children.push(k), c.lastPushedText = !1;
            var T = en(t, 0, null, c.formatContext, !1, !1);
            T.parentFlushed = !0, n.blockedBoundary = h, n.blockedSegment = T;
            try {
              if (In(
                t,
                n,
                u
              ), T.lastPushedText && T.textEmbedded && T.chunks.push(Ze), T.status = 1, nn(h, T), h.pendingTasks === 0) break e;
            } catch (E) {
              T.status = 4, h.forceClientRender = !0, h.errorDigest = yt(t, E);
            } finally {
              n.blockedBoundary = o, n.blockedSegment = c;
            }
            n = _n(t, a, o, k, d, n.legacyContext, n.context, n.treeContext), t.pingedTasks.push(n);
          }
          return;
      }
      if (typeof o == "object" && o !== null) switch (o.$$typeof) {
        case Wt:
          if (u = Ln(t, n, o.render, u, c), ht !== 0) {
            o = n.treeContext, n.treeContext = fe(o, 1, 0);
            try {
              q(t, n, u);
            } finally {
              n.treeContext = o;
            }
          } else q(t, n, u);
          return;
        case e:
          o = o.type, u = $n(o, u), Pn(t, n, o, u, c);
          return;
        case ct:
          if (c = u.children, o = o._context, u = u.value, a = o._currentValue, o._currentValue = u, d = C, C = u = { parent: d, depth: d === null ? 0 : d.depth + 1, context: o, parentValue: a, value: u }, n.context = u, q(t, n, c), t = C, t === null) throw Error(m(403));
          u = t.parentValue, t.context._currentValue = u === s ? t.context._defaultValue : u, t = C = t.parent, n.context = t;
          return;
        case je:
          u = u.children, u = u(o._currentValue), q(t, n, u);
          return;
        case r:
          c = o._init, o = c(o._payload), u = $n(o, u), Pn(t, n, o, u, void 0);
          return;
      }
      throw Error(m(
        130,
        o == null ? o : typeof o,
        ""
      ));
    }
  }
  function q(t, n, o) {
    if (n.node = o, typeof o == "object" && o !== null) {
      switch (o.$$typeof) {
        case Ut:
          Pn(t, n, o.type, o.props, o.ref);
          return;
        case we:
          throw Error(m(257));
        case r:
          var u = o._init;
          o = u(o._payload), q(t, n, o);
          return;
      }
      if (We(o)) {
        jn(t, n, o);
        return;
      }
      if (o === null || typeof o != "object" ? u = null : (u = f && o[f] || o["@@iterator"], u = typeof u == "function" ? u : null), u && (u = u.call(o))) {
        if (o = u.next(), !o.done) {
          var c = [];
          do
            c.push(o.value), o = u.next();
          while (!o.done);
          jn(t, n, c);
        }
        return;
      }
      throw t = Object.prototype.toString.call(o), Error(m(31, t === "[object Object]" ? "object with keys {" + Object.keys(o).join(", ") + "}" : t));
    }
    typeof o == "string" ? (u = n.blockedSegment, u.lastPushedText = Xe(n.blockedSegment.chunks, o, t.responseState, u.lastPushedText)) : typeof o == "number" && (u = n.blockedSegment, u.lastPushedText = Xe(n.blockedSegment.chunks, "" + o, t.responseState, u.lastPushedText));
  }
  function jn(t, n, o) {
    for (var u = o.length, c = 0; c < u; c++) {
      var a = n.treeContext;
      n.treeContext = fe(a, u, c);
      try {
        In(t, n, o[c]);
      } finally {
        n.treeContext = a;
      }
    }
  }
  function In(t, n, o) {
    var u = n.blockedSegment.formatContext, c = n.legacyContext, a = n.context;
    try {
      return q(t, n, o);
    } catch (k) {
      if (Fn(), typeof k == "object" && k !== null && typeof k.then == "function") {
        o = k;
        var d = n.blockedSegment, h = en(t, d.chunks.length, null, d.formatContext, d.lastPushedText, !0);
        d.children.push(h), d.lastPushedText = !1, t = _n(t, n.node, n.blockedBoundary, h, n.abortSet, n.legacyContext, n.context, n.treeContext).ping, o.then(t, t), n.blockedSegment.formatContext = u, n.legacyContext = c, n.context = a, se(a);
      } else throw n.blockedSegment.formatContext = u, n.legacyContext = c, n.context = a, se(a), k;
    }
  }
  function cr(t) {
    var n = t.blockedBoundary;
    t = t.blockedSegment, t.status = 3, Hn(this, n, t);
  }
  function An(t, n, o) {
    var u = t.blockedBoundary;
    t.blockedSegment.status = 3, u === null ? (n.allPendingTasks--, n.status !== 2 && (n.status = 2, n.destination !== null && n.destination.close())) : (u.pendingTasks--, u.forceClientRender || (u.forceClientRender = !0, t = o === void 0 ? Error(m(432)) : o, u.errorDigest = n.onError(t), u.parentFlushed && n.clientRenderedBoundaries.push(u)), u.fallbackAbortableTasks.forEach(function(c) {
      return An(c, n, o);
    }), u.fallbackAbortableTasks.clear(), n.allPendingTasks--, n.allPendingTasks === 0 && (u = n.onAllReady, u()));
  }
  function nn(t, n) {
    if (n.chunks.length === 0 && n.children.length === 1 && n.children[0].boundary === null) {
      var o = n.children[0];
      o.id = n.id, o.parentFlushed = !0, o.status === 1 && nn(t, o);
    } else t.completedSegments.push(n);
  }
  function Hn(t, n, o) {
    if (n === null) {
      if (o.parentFlushed) {
        if (t.completedRootSegment !== null) throw Error(m(389));
        t.completedRootSegment = o;
      }
      t.pendingRootTasks--, t.pendingRootTasks === 0 && (t.onShellError = mt, n = t.onShellReady, n());
    } else n.pendingTasks--, n.forceClientRender || (n.pendingTasks === 0 ? (o.parentFlushed && o.status === 1 && nn(n, o), n.parentFlushed && t.completedBoundaries.push(n), n.fallbackAbortableTasks.forEach(cr, t), n.fallbackAbortableTasks.clear()) : o.parentFlushed && o.status === 1 && (nn(n, o), n.completedSegments.length === 1 && n.parentFlushed && t.partialBoundaries.push(n)));
    t.allPendingTasks--, t.allPendingTasks === 0 && (t = t.onAllReady, t());
  }
  function Un(t) {
    if (t.status !== 2) {
      var n = C, o = Rn.current;
      Rn.current = On;
      var u = Qt;
      Qt = t.responseState;
      try {
        var c = t.pingedTasks, a;
        for (a = 0; a < c.length; a++) {
          var d = c[a], h = t, k = d.blockedSegment;
          if (k.status === 0) {
            se(d.context);
            try {
              q(h, d, d.node), k.lastPushedText && k.textEmbedded && k.chunks.push(Ze), d.abortSet.delete(d), k.status = 1, Hn(h, d.blockedBoundary, k);
            } catch (te) {
              if (Fn(), typeof te == "object" && te !== null && typeof te.then == "function") {
                var T = d.ping;
                te.then(T, T);
              } else {
                d.abortSet.delete(d), k.status = 4;
                var E = d.blockedBoundary, I = te, Z = yt(h, I);
                if (E === null ? tn(h, I) : (E.pendingTasks--, E.forceClientRender || (E.forceClientRender = !0, E.errorDigest = Z, E.parentFlushed && h.clientRenderedBoundaries.push(E))), h.allPendingTasks--, h.allPendingTasks === 0) {
                  var ee = h.onAllReady;
                  ee();
                }
              }
            } finally {
            }
          }
        }
        c.splice(0, a), t.destination !== null && Mn(t, t.destination);
      } catch (te) {
        yt(t, te), tn(t, te);
      } finally {
        Qt = u, Rn.current = o, o === On && se(n);
      }
    }
  }
  function rn(t, n, o) {
    switch (o.parentFlushed = !0, o.status) {
      case 0:
        var u = o.id = t.nextSegmentId++;
        return o.lastPushedText = !1, o.textEmbedded = !1, t = t.responseState, v(n, De), v(n, t.placeholderPrefix), t = S(u.toString(16)), v(n, t), R(n, Dt);
      case 1:
        o.status = 2;
        var c = !0;
        u = o.chunks;
        var a = 0;
        o = o.children;
        for (var d = 0; d < o.length; d++) {
          for (c = o[d]; a < c.index; a++) v(n, u[a]);
          c = on(t, n, c);
        }
        for (; a < u.length - 1; a++) v(n, u[a]);
        return a < u.length && (c = R(n, u[a])), c;
      default:
        throw Error(m(390));
    }
  }
  function on(t, n, o) {
    var u = o.boundary;
    if (u === null) return rn(t, n, o);
    if (u.parentFlushed = !0, u.forceClientRender) u = u.errorDigest, R(n, Be), v(n, yn), u && (v(n, vn), v(n, S(D(u))), v(n, gn)), R(n, Sn), rn(t, n, o);
    else if (0 < u.pendingTasks) {
      u.rootSegmentID = t.nextSegmentId++, 0 < u.completedSegments.length && t.partialBoundaries.push(u);
      var c = t.responseState, a = c.nextSuspenseID++;
      c = g(c.boundaryPrefix + a.toString(16)), u = u.id = c, J(n, t.responseState, u), rn(t, n, o);
    } else if (u.byteSize > t.progressiveChunkSize) u.rootSegmentID = t.nextSegmentId++, t.completedBoundaries.push(u), J(n, t.responseState, u.id), rn(t, n, o);
    else {
      if (R(n, Bt), o = u.completedSegments, o.length !== 1) throw Error(m(391));
      on(t, n, o[0]);
    }
    return R(n, mn);
  }
  function Wn(t, n, o) {
    return wn(n, t.responseState, o.formatContext, o.id), on(t, n, o), xe(n, o.formatContext);
  }
  function qn(t, n, o) {
    for (var u = o.completedSegments, c = 0; c < u.length; c++) Zn(t, n, o, u[c]);
    if (u.length = 0, t = t.responseState, u = o.id, o = o.rootSegmentID, v(n, t.startInlineScript), t.sentCompleteBoundaryFunction ? v(n, Vt) : (t.sentCompleteBoundaryFunction = !0, v(n, $e)), u === null) throw Error(m(395));
    return o = S(o.toString(16)), v(n, u), v(n, $t), v(n, t.segmentPrefix), v(n, o), R(n, jt);
  }
  function Zn(t, n, o, u) {
    if (u.status === 2) return !0;
    var c = u.id;
    if (c === -1) {
      if ((u.id = o.rootSegmentID) === -1) throw Error(m(392));
      return Wn(t, n, u);
    }
    return Wn(t, n, u), t = t.responseState, v(n, t.startInlineScript), t.sentCompleteSegmentFunction ? v(n, ot) : (t.sentCompleteSegmentFunction = !0, v(n, Cn)), v(n, t.segmentPrefix), c = S(c.toString(16)), v(n, c), v(n, Ve), v(n, t.placeholderPrefix), v(n, c), R(n, ke);
  }
  function Mn(t, n) {
    F = new Uint8Array(512), B = 0;
    try {
      var o = t.completedRootSegment;
      if (o !== null && t.pendingRootTasks === 0) {
        on(t, n, o), t.completedRootSegment = null;
        var u = t.responseState.bootstrapChunks;
        for (o = 0; o < u.length - 1; o++) v(n, u[o]);
        o < u.length && R(n, u[o]);
      }
      var c = t.clientRenderedBoundaries, a;
      for (a = 0; a < c.length; a++) {
        var d = c[a];
        u = n;
        var h = t.responseState, k = d.id, T = d.errorDigest, E = d.errorMessage, I = d.errorComponentStack;
        if (v(u, h.startInlineScript), h.sentClientRenderFunction ? v(u, H) : (h.sentClientRenderFunction = !0, v(
          u,
          lt
        )), k === null) throw Error(m(395));
        v(u, k), v(u, At), (T || E || I) && (v(u, it), v(u, S(ce(T || "")))), (E || I) && (v(u, it), v(u, S(ce(E || "")))), I && (v(u, it), v(u, S(ce(I)))), R(u, ut);
      }
      c.splice(0, a);
      var Z = t.completedBoundaries;
      for (a = 0; a < Z.length; a++) qn(t, n, Z[a]);
      Z.splice(0, a), Ae(n), F = new Uint8Array(512), B = 0;
      var ee = t.partialBoundaries;
      for (a = 0; a < ee.length; a++) {
        var te = ee[a];
        e: {
          c = t, d = n;
          var ln = te.completedSegments;
          for (h = 0; h < ln.length; h++) if (!Zn(
            c,
            d,
            te,
            ln[h]
          )) {
            h++, ln.splice(0, h);
            var Gn = !1;
            break e;
          }
          ln.splice(0, h), Gn = !0;
        }
        if (!Gn) {
          t.destination = null, a++, ee.splice(0, a);
          return;
        }
      }
      ee.splice(0, a);
      var Dn = t.completedBoundaries;
      for (a = 0; a < Dn.length; a++) qn(t, n, Dn[a]);
      Dn.splice(0, a);
    } finally {
      Ae(n), t.allPendingTasks === 0 && t.pingedTasks.length === 0 && t.clientRenderedBoundaries.length === 0 && t.completedBoundaries.length === 0 && n.close();
    }
  }
  function Xn(t, n) {
    try {
      var o = t.abortableTasks;
      o.forEach(function(u) {
        return An(u, t, n);
      }), o.clear(), t.destination !== null && Mn(t, t.destination);
    } catch (u) {
      yt(t, u), tn(t, u);
    }
  }
  return un.renderToReadableStream = function(t, n) {
    return new Promise(function(o, u) {
      var c, a, d = new Promise(function(E, I) {
        a = E, c = I;
      }), h = ar(t, qe(n ? n.identifierPrefix : void 0, n ? n.nonce : void 0, n ? n.bootstrapScriptContent : void 0, n ? n.bootstrapScripts : void 0, n ? n.bootstrapModules : void 0), Ct(n ? n.namespaceURI : void 0), n ? n.progressiveChunkSize : void 0, n ? n.onError : void 0, a, function() {
        var E = new ReadableStream({ type: "bytes", pull: function(I) {
          if (h.status === 1) h.status = 2, _e(I, h.fatalError);
          else if (h.status !== 2 && h.destination === null) {
            h.destination = I;
            try {
              Mn(h, I);
            } catch (Z) {
              yt(h, Z), tn(h, Z);
            }
          }
        }, cancel: function() {
          Xn(h);
        } }, { highWaterMark: 0 });
        E.allReady = d, o(E);
      }, function(E) {
        d.catch(function() {
        }), u(E);
      }, c);
      if (n && n.signal) {
        var k = n.signal, T = function() {
          Xn(h, k.reason), k.removeEventListener("abort", T);
        };
        k.addEventListener("abort", T);
      }
      Un(h);
    });
  }, un.version = "18.2.0", un;
}
var Kn;
function mr() {
  if (Kn) return he;
  Kn = 1;
  var $, m;
  return $ = dr(), m = hr(), he.version = $.version, he.renderToString = $.renderToString, he.renderToStaticMarkup = $.renderToStaticMarkup, he.renderToNodeStream = $.renderToNodeStream, he.renderToStaticNodeStream = $.renderToStaticNodeStream, he.renderToReadableStream = m.renderToReadableStream, he;
}
var er = mr();
const yr = /* @__PURE__ */ pr(er), Sr = /* @__PURE__ */ fr({
  __proto__: null,
  default: yr
}, [er]);
export {
  Sr as s
};
