UNPKG

one

Version:

One is a new React Framework that makes Vite serve both native and web.

2,085 lines 56.1 kB
/**
 * @license React
 * react-dom-server.node.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.
 */
'use strict'
var aa = require('util'),
  ba = require('react'),
  k = null,
  l = 0,
  q = !0
function r(a, b) {
  if ('string' === typeof b) {
    if (0 !== b.length)
      if (2048 < 3 * b.length)
        (0 < l && (t(a, k.subarray(0, l)), (k = new Uint8Array(2048)), (l = 0)),
          t(a, u.encode(b)))
      else {
        var c = k
        0 < l && (c = k.subarray(l))
        c = u.encodeInto(b, c)
        var d = c.read
        l += c.written
        d < b.length &&
          (t(a, k), (k = new Uint8Array(2048)), (l = u.encodeInto(b.slice(d), k).written))
        2048 === l && (t(a, k), (k = new Uint8Array(2048)), (l = 0))
      }
  } else
    0 !== b.byteLength &&
      (2048 < b.byteLength
        ? (0 < l && (t(a, k.subarray(0, l)), (k = new Uint8Array(2048)), (l = 0)),
          t(a, b))
        : ((c = k.length - l),
          c < b.byteLength &&
            (0 === c
              ? t(a, k)
              : (k.set(b.subarray(0, c), l), (l += c), t(a, k), (b = b.subarray(c))),
            (k = new Uint8Array(2048)),
            (l = 0)),
          k.set(b, l),
          (l += b.byteLength),
          2048 === l && (t(a, k), (k = new Uint8Array(2048)), (l = 0))))
}
function t(a, b) {
  a = a.write(b)
  q = q && a
}
function w(a, b) {
  r(a, b)
  return q
}
function ca(a) {
  k && 0 < l && a.write(k.subarray(0, l))
  k = null
  l = 0
  q = !0
}
var u = new aa.TextEncoder()
function x(a) {
  return u.encode(a)
}
var y = Object.prototype.hasOwnProperty,
  da =
    /^[: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]*$/,
  ea = {},
  fa = {}
function ha(a) {
  if (y.call(fa, a)) return !0
  if (y.call(ea, a)) return !1
  if (da.test(a)) return (fa[a] = !0)
  ea[a] = !0
  return !1
}
function z(a, b, c, d, f, e, g) {
  this.acceptsBooleans = 2 === b || 3 === b || 4 === b
  this.attributeName = d
  this.attributeNamespace = f
  this.mustUseProperty = c
  this.propertyName = a
  this.type = b
  this.sanitizeURL = e
  this.removeEmptyString = g
}
var A = {}
'children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style'
  .split(' ')
  .forEach(function (a) {
    A[a] = new z(a, 0, !1, a, null, !1, !1)
  })
;[
  ['acceptCharset', 'accept-charset'],
  ['className', 'class'],
  ['htmlFor', 'for'],
  ['httpEquiv', 'http-equiv'],
].forEach(function (a) {
  var b = a[0]
  A[b] = new z(b, 1, !1, a[1], null, !1, !1)
})
;['contentEditable', 'draggable', 'spellCheck', 'value'].forEach(function (a) {
  A[a] = new z(a, 2, !1, a.toLowerCase(), null, !1, !1)
})
;['autoReverse', 'externalResourcesRequired', 'focusable', 'preserveAlpha'].forEach(
  function (a) {
    A[a] = new z(a, 2, !1, a, 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 (a) {
    A[a] = new z(a, 3, !1, a.toLowerCase(), null, !1, !1)
  })
;['checked', 'multiple', 'muted', 'selected'].forEach(function (a) {
  A[a] = new z(a, 3, !0, a, null, !1, !1)
})
;['capture', 'download'].forEach(function (a) {
  A[a] = new z(a, 4, !1, a, null, !1, !1)
})
;['cols', 'rows', 'size', 'span'].forEach(function (a) {
  A[a] = new z(a, 6, !1, a, null, !1, !1)
})
;['rowSpan', 'start'].forEach(function (a) {
  A[a] = new z(a, 5, !1, a.toLowerCase(), null, !1, !1)
})
var ia = /[\-:]([a-z])/g
function ja(a) {
  return a[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 (a) {
    var b = a.replace(ia, ja)
    A[b] = new z(b, 1, !1, a, null, !1, !1)
  })
'xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type'
  .split(' ')
  .forEach(function (a) {
    var b = a.replace(ia, ja)
    A[b] = new z(b, 1, !1, a, 'http://www.w3.org/1999/xlink', !1, !1)
  })
;['xml:base', 'xml:lang', 'xml:space'].forEach(function (a) {
  var b = a.replace(ia, ja)
  A[b] = new z(b, 1, !1, a, 'http://www.w3.org/XML/1998/namespace', !1, !1)
})
;['tabIndex', 'crossOrigin'].forEach(function (a) {
  A[a] = new z(a, 1, !1, a.toLowerCase(), null, !1, !1)
})
A.xlinkHref = new z(
  'xlinkHref',
  1,
  !1,
  'xlink:href',
  'http://www.w3.org/1999/xlink',
  !0,
  !1
)
;['src', 'href', 'action', 'formAction'].forEach(function (a) {
  A[a] = new z(a, 1, !1, a.toLowerCase(), null, !0, !0)
})
var B = {
    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,
  },
  ka = ['Webkit', 'ms', 'Moz', 'O']
Object.keys(B).forEach(function (a) {
  ka.forEach(function (b) {
    b = b + a.charAt(0).toUpperCase() + a.substring(1)
    B[b] = B[a]
  })
})
var la = /["'&<>]/
function F(a) {
  if ('boolean' === typeof a || 'number' === typeof a) return '' + a
  a = '' + a
  var b = la.exec(a)
  if (b) {
    var c = '',
      d,
      f = 0
    for (d = b.index; d < a.length; d++) {
      switch (a.charCodeAt(d)) {
        case 34:
          b = '&quot;'
          break
        case 38:
          b = '&amp;'
          break
        case 39:
          b = '&#x27;'
          break
        case 60:
          b = '&lt;'
          break
        case 62:
          b = '&gt;'
          break
        default:
          continue
      }
      f !== d && (c += a.substring(f, d))
      f = d + 1
      c += b
    }
    a = f !== d ? c + a.substring(f, d) : c
  }
  return a
}
var ma = /([A-Z])/g,
  pa = /^ms-/,
  qa = Array.isArray,
  ra = x('<script>'),
  sa = x('\x3c/script>'),
  ta = x('<script src="'),
  ua = x('<script type="module" src="'),
  va = x('" async="">\x3c/script>'),
  wa = /(<\/|<)(s)(cript)/gi
function xa(a, b, c, d) {
  return '' + b + ('s' === c ? '\\u0073' : '\\u0053') + d
}
function G(a, b) {
  return { insertionMode: a, selectedValue: b }
}
function ya(a, b, c) {
  switch (b) {
    case 'select':
      return G(1, null != c.value ? c.value : c.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 <= a.insertionMode || 0 === a.insertionMode ? G(1, null) : a
}
var za = x('\x3c!-- --\x3e')
function Aa(a, b, c, d) {
  if ('' === b) return d
  d && a.push(za)
  a.push(F(b))
  return !0
}
var Ba = new Map(),
  Ca = x(' style="'),
  Da = x(':'),
  Ea = x(';')
function Fa(a, b, c) {
  if ('object' !== typeof c)
    throw Error(
      "The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX."
    )
  b = !0
  for (var d in c)
    if (y.call(c, d)) {
      var f = c[d]
      if (null != f && 'boolean' !== typeof f && '' !== f) {
        if (0 === d.indexOf('--')) {
          var e = F(d)
          f = F(('' + f).trim())
        } else {
          e = d
          var g = Ba.get(e)
          void 0 !== g
            ? (e = g)
            : ((g = x(F(e.replace(ma, '-$1').toLowerCase().replace(pa, '-ms-')))),
              Ba.set(e, g),
              (e = g))
          f =
            'number' === typeof f
              ? 0 === f || y.call(B, d)
                ? '' + f
                : f + 'px'
              : F(('' + f).trim())
        }
        b ? ((b = !1), a.push(Ca, e, Da, f)) : a.push(Ea, e, Da, f)
      }
    }
  b || a.push(H)
}
var I = x(' '),
  J = x('="'),
  H = x('"'),
  Ga = x('=""')
function K(a, b, c, d) {
  switch (c) {
    case 'style':
      Fa(a, b, d)
      return
    case 'defaultValue':
    case 'defaultChecked':
    case 'innerHTML':
    case 'suppressContentEditableWarning':
    case 'suppressHydrationWarning':
      return
  }
  if (!(2 < c.length) || ('o' !== c[0] && 'O' !== c[0]) || ('n' !== c[1] && 'N' !== c[1]))
    if (((b = A.hasOwnProperty(c) ? A[c] : null), null !== b)) {
      switch (typeof d) {
        case 'function':
        case 'symbol':
          return
        case 'boolean':
          if (!b.acceptsBooleans) return
      }
      c = b.attributeName
      switch (b.type) {
        case 3:
          d && a.push(I, c, Ga)
          break
        case 4:
          !0 === d ? a.push(I, c, Ga) : !1 !== d && a.push(I, c, J, F(d), H)
          break
        case 5:
          isNaN(d) || a.push(I, c, J, F(d), H)
          break
        case 6:
          !isNaN(d) && 1 <= d && a.push(I, c, J, F(d), H)
          break
        default:
          ;(b.sanitizeURL && (d = '' + d), a.push(I, c, J, F(d), H))
      }
    } else if (ha(c)) {
      switch (typeof d) {
        case 'function':
        case 'symbol':
          return
        case 'boolean':
          if (((b = c.toLowerCase().slice(0, 5)), 'data-' !== b && 'aria-' !== b)) return
      }
      a.push(I, c, J, F(d), H)
    }
}
var L = x('>'),
  Ha = x('/>')
function M(a, b, c) {
  if (null != b) {
    if (null != c)
      throw Error('Can only set one of `children` or `props.dangerouslySetInnerHTML`.')
    if ('object' !== typeof b || !('__html' in b))
      throw Error(
        '`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.'
      )
    b = b.__html
    null !== b && void 0 !== b && a.push('' + b)
  }
}
function Ia(a) {
  var b = ''
  ba.Children.forEach(a, function (a) {
    null != a && (b += a)
  })
  return b
}
var Ja = x(' selected=""')
function Ka(a, b, c, d) {
  a.push(N(c))
  var f = (c = null),
    e
  for (e in b)
    if (y.call(b, e)) {
      var g = b[e]
      if (null != g)
        switch (e) {
          case 'children':
            c = g
            break
          case 'dangerouslySetInnerHTML':
            f = g
            break
          default:
            K(a, d, e, g)
        }
    }
  a.push(L)
  M(a, f, c)
  return 'string' === typeof c ? (a.push(F(c)), null) : c
}
var La = x('\n'),
  Ma = /^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,
  Na = new Map()
function N(a) {
  var b = Na.get(a)
  if (void 0 === b) {
    if (!Ma.test(a)) throw Error('Invalid tag: ' + a)
    b = x('<' + a)
    Na.set(a, b)
  }
  return b
}
var Oa = x('<!DOCTYPE html>')
function Pa(a, b, c, d, f) {
  switch (b) {
    case 'select':
      a.push(N('select'))
      var e = null,
        g = null
      for (p in c)
        if (y.call(c, p)) {
          var h = c[p]
          if (null != h)
            switch (p) {
              case 'children':
                e = h
                break
              case 'dangerouslySetInnerHTML':
                g = h
                break
              case 'defaultValue':
              case 'value':
                break
              default:
                K(a, d, p, h)
            }
        }
      a.push(L)
      M(a, g, e)
      return e
    case 'option':
      g = f.selectedValue
      a.push(N('option'))
      var m = (h = null),
        n = null
      var p = null
      for (e in c)
        if (y.call(c, e)) {
          var v = c[e]
          if (null != v)
            switch (e) {
              case 'children':
                h = v
                break
              case 'selected':
                n = v
                break
              case 'dangerouslySetInnerHTML':
                p = v
                break
              case 'value':
                m = v
              default:
                K(a, d, e, v)
            }
        }
      if (null != g)
        if (((c = null !== m ? '' + m : Ia(h)), qa(g)))
          for (d = 0; d < g.length; d++) {
            if ('' + g[d] === c) {
              a.push(Ja)
              break
            }
          }
        else '' + g === c && a.push(Ja)
      else n && a.push(Ja)
      a.push(L)
      M(a, p, h)
      return h
    case 'textarea':
      a.push(N('textarea'))
      p = g = e = null
      for (h in c)
        if (y.call(c, h) && ((m = c[h]), null != m))
          switch (h) {
            case 'children':
              p = m
              break
            case 'value':
              e = m
              break
            case 'defaultValue':
              g = m
              break
            case 'dangerouslySetInnerHTML':
              throw Error('`dangerouslySetInnerHTML` does not make sense on <textarea>.')
            default:
              K(a, d, h, m)
          }
      null === e && null !== g && (e = g)
      a.push(L)
      if (null != p) {
        if (null != e)
          throw Error(
            'If you supply `defaultValue` on a <textarea>, do not pass children.'
          )
        if (qa(p) && 1 < p.length)
          throw Error('<textarea> can only have at most one child.')
        e = '' + p
      }
      'string' === typeof e && '\n' === e[0] && a.push(La)
      null !== e && a.push(F('' + e))
      return null
    case 'input':
      a.push(N('input'))
      m = p = h = e = null
      for (g in c)
        if (y.call(c, g) && ((n = c[g]), null != n))
          switch (g) {
            case 'children':
            case 'dangerouslySetInnerHTML':
              throw Error(
                'input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.'
              )
            case 'defaultChecked':
              m = n
              break
            case 'defaultValue':
              h = n
              break
            case 'checked':
              p = n
              break
            case 'value':
              e = n
              break
            default:
              K(a, d, g, n)
          }
      null !== p ? K(a, d, 'checked', p) : null !== m && K(a, d, 'checked', m)
      null !== e ? K(a, d, 'value', e) : null !== h && K(a, d, 'value', h)
      a.push(Ha)
      return null
    case 'menuitem':
      a.push(N('menuitem'))
      for (var C in c)
        if (y.call(c, C) && ((e = c[C]), null != e))
          switch (C) {
            case 'children':
            case 'dangerouslySetInnerHTML':
              throw Error(
                'menuitems cannot have `children` nor `dangerouslySetInnerHTML`.'
              )
            default:
              K(a, d, C, e)
          }
      a.push(L)
      return null
    case 'title':
      a.push(N('title'))
      e = null
      for (v in c)
        if (y.call(c, v) && ((g = c[v]), null != g))
          switch (v) {
            case 'children':
              e = g
              break
            case 'dangerouslySetInnerHTML':
              throw Error('`dangerouslySetInnerHTML` does not make sense on <title>.')
            default:
              K(a, d, v, g)
          }
      a.push(L)
      return e
    case 'listing':
    case 'pre':
      a.push(N(b))
      g = e = null
      for (m in c)
        if (y.call(c, m) && ((h = c[m]), null != h))
          switch (m) {
            case 'children':
              e = h
              break
            case 'dangerouslySetInnerHTML':
              g = h
              break
            default:
              K(a, d, m, h)
          }
      a.push(L)
      if (null != g) {
        if (null != e)
          throw Error(
            'Can only set one of `children` or `props.dangerouslySetInnerHTML`.'
          )
        if ('object' !== typeof g || !('__html' in g))
          throw Error(
            '`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.'
          )
        c = g.__html
        null !== c &&
          void 0 !== c &&
          ('string' === typeof c && 0 < c.length && '\n' === c[0]
            ? a.push(La, c)
            : a.push('' + c))
      }
      'string' === typeof e && '\n' === e[0] && a.push(La)
      return e
    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':
      a.push(N(b))
      for (var D in c)
        if (y.call(c, D) && ((e = c[D]), null != e))
          switch (D) {
            case 'children':
            case 'dangerouslySetInnerHTML':
              throw Error(
                b +
                  ' is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.'
              )
            default:
              K(a, d, D, e)
          }
      a.push(Ha)
      return 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 Ka(a, c, b, d)
    case 'html':
      return (0 === f.insertionMode && a.push(Oa), Ka(a, c, b, d))
    default:
      if (-1 === b.indexOf('-') && 'string' !== typeof c.is) return Ka(a, c, b, d)
      a.push(N(b))
      g = e = null
      for (n in c)
        if (y.call(c, n) && ((h = c[n]), null != h))
          switch (n) {
            case 'children':
              e = h
              break
            case 'dangerouslySetInnerHTML':
              g = h
              break
            case 'style':
              Fa(a, d, h)
              break
            case 'suppressContentEditableWarning':
            case 'suppressHydrationWarning':
              break
            default:
              ha(n) &&
                'function' !== typeof h &&
                'symbol' !== typeof h &&
                a.push(I, n, J, F(h), H)
          }
      a.push(L)
      M(a, g, e)
      return e
  }
}
var Qa = x('</'),
  Ra = x('>'),
  Sa = x('<template id="'),
  Ta = x('"></template>'),
  Ua = x('\x3c!--$--\x3e'),
  Va = x('\x3c!--$?--\x3e<template id="'),
  Wa = x('"></template>'),
  Xa = x('\x3c!--$!--\x3e'),
  Ya = x('\x3c!--/$--\x3e'),
  Za = x('<template'),
  $a = x('"'),
  ab = x(' data-dgst="')
x(' data-msg="')
x(' data-stck="')
var bb = x('></template>')
function cb(a, b, c) {
  r(a, Va)
  if (null === c)
    throw Error('An ID must have been assigned before we can complete the boundary.')
  r(a, c)
  return w(a, Wa)
}
var db = x('<div hidden id="'),
  eb = x('">'),
  fb = x('</div>'),
  gb = x('<svg aria-hidden="true" style="display:none" id="'),
  hb = x('">'),
  ib = x('</svg>'),
  jb = x('<math aria-hidden="true" style="display:none" id="'),
  kb = x('">'),
  lb = x('</math>'),
  mb = x('<table hidden id="'),
  nb = x('">'),
  ob = x('</table>'),
  pb = x('<table hidden><tbody id="'),
  qb = x('">'),
  rb = x('</tbody></table>'),
  sb = x('<table hidden><tr id="'),
  tb = x('">'),
  ub = x('</tr></table>'),
  vb = x('<table hidden><colgroup id="'),
  wb = x('">'),
  xb = x('</colgroup></table>')
function yb(a, b, c, d) {
  switch (c.insertionMode) {
    case 0:
    case 1:
      return (r(a, db), r(a, b.segmentPrefix), r(a, d.toString(16)), w(a, eb))
    case 2:
      return (r(a, gb), r(a, b.segmentPrefix), r(a, d.toString(16)), w(a, hb))
    case 3:
      return (r(a, jb), r(a, b.segmentPrefix), r(a, d.toString(16)), w(a, kb))
    case 4:
      return (r(a, mb), r(a, b.segmentPrefix), r(a, d.toString(16)), w(a, nb))
    case 5:
      return (r(a, pb), r(a, b.segmentPrefix), r(a, d.toString(16)), w(a, qb))
    case 6:
      return (r(a, sb), r(a, b.segmentPrefix), r(a, d.toString(16)), w(a, tb))
    case 7:
      return (r(a, vb), r(a, b.segmentPrefix), r(a, d.toString(16)), w(a, wb))
    default:
      throw Error('Unknown insertion mode. This is a bug in React.')
  }
}
function zb(a, b) {
  switch (b.insertionMode) {
    case 0:
    case 1:
      return w(a, fb)
    case 2:
      return w(a, ib)
    case 3:
      return w(a, lb)
    case 4:
      return w(a, ob)
    case 5:
      return w(a, rb)
    case 6:
      return w(a, ub)
    case 7:
      return w(a, xb)
    default:
      throw Error('Unknown insertion mode. This is a bug in React.')
  }
}
var Ab = x(
    '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("'
  ),
  Bb = x('$RS("'),
  Cb = x('","'),
  Db = x('")\x3c/script>'),
  Fb = x(
    '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("'
  ),
  Gb = x('$RC("'),
  Hb = x('","'),
  Ib = x('")\x3c/script>'),
  Jb = x(
    '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("'
  ),
  Kb = x('$RX("'),
  Lb = x('"'),
  Mb = x(')\x3c/script>'),
  Nb = x(','),
  Ob = /[<\u2028\u2029]/g
function Pb(a) {
  return JSON.stringify(a).replace(Ob, function (a) {
    switch (a) {
      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 O = Object.assign,
  Qb = Symbol.for('react.element'),
  Rb = Symbol.for('react.portal'),
  Sb = Symbol.for('react.fragment'),
  Tb = Symbol.for('react.strict_mode'),
  Ub = Symbol.for('react.profiler'),
  Vb = Symbol.for('react.provider'),
  Wb = Symbol.for('react.context'),
  Xb = Symbol.for('react.forward_ref'),
  Yb = Symbol.for('react.suspense'),
  Zb = Symbol.for('react.suspense_list'),
  $b = Symbol.for('react.memo'),
  ac = Symbol.for('react.lazy'),
  bc = Symbol.for('react.scope'),
  cc = Symbol.for('react.debug_trace_mode'),
  dc = Symbol.for('react.legacy_hidden'),
  ec = Symbol.for('react.default_value'),
  fc = Symbol.iterator
function gc(a) {
  if (null == a) return null
  if ('function' === typeof a) return a.displayName || a.name || null
  if ('string' === typeof a) return a
  switch (a) {
    case Sb:
      return 'Fragment'
    case Rb:
      return 'Portal'
    case Ub:
      return 'Profiler'
    case Tb:
      return 'StrictMode'
    case Yb:
      return 'Suspense'
    case Zb:
      return 'SuspenseList'
  }
  if ('object' === typeof a)
    switch (a.$$typeof) {
      case Wb:
        return (a.displayName || 'Context') + '.Consumer'
      case Vb:
        return (a._context.displayName || 'Context') + '.Provider'
      case Xb:
        var b = a.render
        a = a.displayName
        a ||
          ((a = b.displayName || b.name || ''),
          (a = '' !== a ? 'ForwardRef(' + a + ')' : 'ForwardRef'))
        return a
      case $b:
        return ((b = a.displayName || null), null !== b ? b : gc(a.type) || 'Memo')
      case ac:
        b = a._payload
        a = a._init
        try {
          return gc(a(b))
        } catch (c) {}
    }
  return null
}
var hc = {}
function ic(a, b) {
  a = a.contextTypes
  if (!a) return hc
  var c = {},
    d
  for (d in a) c[d] = b[d]
  return c
}
var P = null
function Q(a, b) {
  if (a !== b) {
    a.context._currentValue = a.parentValue
    a = a.parent
    var c = b.parent
    if (null === a) {
      if (null !== c)
        throw Error(
          'The stacks must reach the root at the same time. This is a bug in React.'
        )
    } else {
      if (null === c)
        throw Error(
          'The stacks must reach the root at the same time. This is a bug in React.'
        )
      Q(a, c)
    }
    b.context._currentValue = b.value
  }
}
function jc(a) {
  a.context._currentValue = a.parentValue
  a = a.parent
  null !== a && jc(a)
}
function kc(a) {
  var b = a.parent
  null !== b && kc(b)
  a.context._currentValue = a.value
}
function lc(a, b) {
  a.context._currentValue = a.parentValue
  a = a.parent
  if (null === a)
    throw Error(
      'The depth must equal at least at zero before reaching the root. This is a bug in React.'
    )
  a.depth === b.depth ? Q(a, b) : lc(a, b)
}
function mc(a, b) {
  var c = b.parent
  if (null === c)
    throw Error(
      'The depth must equal at least at zero before reaching the root. This is a bug in React.'
    )
  a.depth === c.depth ? Q(a, c) : mc(a, c)
  b.context._currentValue = b.value
}
function nc(a) {
  var b = P
  b !== a &&
    (null === b
      ? kc(a)
      : null === a
        ? jc(b)
        : b.depth === a.depth
          ? Q(b, a)
          : b.depth > a.depth
            ? lc(b, a)
            : mc(b, a),
    (P = a))
}
var oc = {
  isMounted: function () {
    return !1
  },
  enqueueSetState: function (a, b) {
    a = a._reactInternals
    null !== a.queue && a.queue.push(b)
  },
  enqueueReplaceState: function (a, b) {
    a = a._reactInternals
    a.replace = !0
    a.queue = [b]
  },
  enqueueForceUpdate: function () {},
}
function pc(a, b, c, d) {
  var f = void 0 !== a.state ? a.state : null
  a.updater = oc
  a.props = c
  a.state = f
  var e = { queue: [], replace: !1 }
  a._reactInternals = e
  var g = b.contextType
  a.context = 'object' === typeof g && null !== g ? g._currentValue : d
  g = b.getDerivedStateFromProps
  'function' === typeof g &&
    ((g = g(c, f)), (f = null === g || void 0 === g ? f : O({}, f, g)), (a.state = f))
  if (
    'function' !== typeof b.getDerivedStateFromProps &&
    'function' !== typeof a.getSnapshotBeforeUpdate &&
    ('function' === typeof a.UNSAFE_componentWillMount ||
      'function' === typeof a.componentWillMount)
  )
    if (
      ((b = a.state),
      'function' === typeof a.componentWillMount && a.componentWillMount(),
      'function' === typeof a.UNSAFE_componentWillMount && a.UNSAFE_componentWillMount(),
      b !== a.state && oc.enqueueReplaceState(a, a.state, null),
      null !== e.queue && 0 < e.queue.length)
    )
      if (
        ((b = e.queue),
        (g = e.replace),
        (e.queue = null),
        (e.replace = !1),
        g && 1 === b.length)
      )
        a.state = b[0]
      else {
        e = g ? b[0] : a.state
        f = !0
        for (g = g ? 1 : 0; g < b.length; g++) {
          var h = b[g]
          h = 'function' === typeof h ? h.call(a, e, c, d) : h
          null != h && (f ? ((f = !1), (e = O({}, e, h))) : O(e, h))
        }
        a.state = e
      }
    else e.queue = null
}
var qc = { id: 1, overflow: '' }
function rc(a, b, c) {
  var d = a.id
  a = a.overflow
  var f = 32 - sc(d) - 1
  d &= ~(1 << f)
  c += 1
  var e = 32 - sc(b) + f
  if (30 < e) {
    var g = f - (f % 5)
    e = (d & ((1 << g) - 1)).toString(32)
    d >>= g
    f -= g
    return { id: (1 << (32 - sc(b) + f)) | (c << f) | d, overflow: e + a }
  }
  return { id: (1 << e) | (c << f) | d, overflow: a }
}
var sc = Math.clz32 ? Math.clz32 : tc,
  uc = Math.log,
  vc = Math.LN2
function tc(a) {
  a >>>= 0
  return 0 === a ? 32 : (31 - ((uc(a) / vc) | 0)) | 0
}
function wc(a, b) {
  return (a === b && (0 !== a || 1 / a === 1 / b)) || (a !== a && b !== b)
}
var xc = 'function' === typeof Object.is ? Object.is : wc,
  R = null,
  yc = null,
  zc = null,
  S = null,
  T = !1,
  Ac = !1,
  U = 0,
  V = null,
  Bc = 0
function W() {
  if (null === R)
    throw Error(
      'Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.'
    )
  return R
}
function Cc() {
  if (0 < Bc) throw Error('Rendered more hooks than during the previous render')
  return { memoizedState: null, queue: null, next: null }
}
function Dc() {
  null === S
    ? null === zc
      ? ((T = !1), (zc = S = Cc()))
      : ((T = !0), (S = zc))
    : null === S.next
      ? ((T = !1), (S = S.next = Cc()))
      : ((T = !0), (S = S.next))
  return S
}
function Ec() {
  yc = R = null
  Ac = !1
  zc = null
  Bc = 0
  S = V = null
}
function Fc(a, b) {
  return 'function' === typeof b ? b(a) : b
}
function Gc(a, b, c) {
  R = W()
  S = Dc()
  if (T) {
    var d = S.queue
    b = d.dispatch
    if (null !== V && ((c = V.get(d)), void 0 !== c)) {
      V.delete(d)
      d = S.memoizedState
      do ((d = a(d, c.action)), (c = c.next))
      while (null !== c)
      S.memoizedState = d
      return [d, b]
    }
    return [S.memoizedState, b]
  }
  a = a === Fc ? ('function' === typeof b ? b() : b) : void 0 !== c ? c(b) : b
  S.memoizedState = a
  a = S.queue = { last: null, dispatch: null }
  a = a.dispatch = Hc.bind(null, R, a)
  return [S.memoizedState, a]
}
function Ic(a, b) {
  R = W()
  S = Dc()
  b = void 0 === b ? null : b
  if (null !== S) {
    var c = S.memoizedState
    if (null !== c && null !== b) {
      var d = c[1]
      a: if (null === d) d = !1
      else {
        for (var f = 0; f < d.length && f < b.length; f++)
          if (!xc(b[f], d[f])) {
            d = !1
            break a
          }
        d = !0
      }
      if (d) return c[0]
    }
  }
  a = a()
  S.memoizedState = [a, b]
  return a
}
function Hc(a, b, c) {
  if (25 <= Bc)
    throw Error(
      'Too many re-renders. React limits the number of renders to prevent an infinite loop.'
    )
  if (a === R)
    if (
      ((Ac = !0),
      (a = { action: c, next: null }),
      null === V && (V = new Map()),
      (c = V.get(b)),
      void 0 === c)
    )
      V.set(b, a)
    else {
      for (b = c; null !== b.next; ) b = b.next
      b.next = a
    }
}
function Jc() {
  throw Error('startTransition cannot be called during server rendering.')
}
function Kc() {}
var Mc = {
    readContext: function (a) {
      return a._currentValue
    },
    useContext: function (a) {
      W()
      return a._currentValue
    },
    useMemo: Ic,
    useReducer: Gc,
    useRef: function (a) {
      R = W()
      S = Dc()
      var b = S.memoizedState
      return null === b ? ((a = { current: a }), (S.memoizedState = a)) : b
    },
    useState: function (a) {
      return Gc(Fc, a)
    },
    useInsertionEffect: Kc,
    useLayoutEffect: function () {},
    useCallback: function (a, b) {
      return Ic(function () {
        return a
      }, b)
    },
    useImperativeHandle: Kc,
    useEffect: Kc,
    useDebugValue: Kc,
    useDeferredValue: function (a) {
      W()
      return a
    },
    useTransition: function () {
      W()
      return [!1, Jc]
    },
    useId: function () {
      var a = yc.treeContext
      var b = a.overflow
      a = a.id
      a = (a & ~(1 << (32 - sc(a) - 1))).toString(32) + b
      var c = Lc
      if (null === c)
        throw Error(
          'Invalid hook call. Hooks can only be called inside of the body of a function component.'
        )
      b = U++
      a = ':' + c.idPrefix + 'R' + a
      0 < b && (a += 'H' + b.toString(32))
      return a + ':'
    },
    useMutableSource: function (a, b) {
      W()
      return b(a._source)
    },
    useSyncExternalStore: function (a, b, c) {
      if (void 0 === c)
        throw Error(
          'Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.'
        )
      return c()
    },
  },
  Lc = null,
  Nc = ba.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher
function Oc(a) {
  console.error(a)
  return null
}
function X() {}
function Pc(a, b) {
  var c = a.pingedTasks
  c.push(b)
  1 === c.length &&
    setImmediate(function () {
      return Qc(a)
    })
}
function Rc(a, b, c, d, f, e, g, h) {
  a.allPendingTasks++
  null === c ? a.pendingRootTasks++ : c.pendingTasks++
  var m = {
    node: b,
    ping: function () {
      return Pc(a, m)
    },
    blockedBoundary: c,
    blockedSegment: d,
    abortSet: f,
    legacyContext: e,
    context: g,
    treeContext: h,
  }
  f.add(m)
  return m
}
function Sc(a, b, c, d, f, e) {
  return {
    status: 0,
    id: -1,
    index: b,
    parentFlushed: !1,
    chunks: [],
    children: [],
    formatContext: d,
    boundary: c,
    lastPushedText: f,
    textEmbedded: e,
  }
}
function Y(a, b) {
  a = a.onError(b)
  if (null != a && 'string' !== typeof a)
    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 a +
        '" instead'
    )
  return a
}
function Tc(a, b) {
  var c = a.onShellError
  c(b)
  c = a.onFatalError
  c(b)
  null !== a.destination
    ? ((a.status = 2), a.destination.destroy(b))
    : ((a.status = 1), (a.fatalError = b))
}
function Uc(a, b, c, d, f) {
  R = {}
  yc = b
  U = 0
  for (a = c(d, f); Ac; ) ((Ac = !1), (U = 0), (Bc += 1), (S = null), (a = c(d, f)))
  Ec()
  return a
}
function Vc(a, b, c, d) {
  var f = c.render(),
    e = d.childContextTypes
  if (null !== e && void 0 !== e) {
    var g = b.legacyContext
    if ('function' !== typeof c.getChildContext) d = g
    else {
      c = c.getChildContext()
      for (var h in c)
        if (!(h in e))
          throw Error(
            (gc(d) || 'Unknown') +
              '.getChildContext(): key "' +
              h +
              '" is not defined in childContextTypes.'
          )
      d = O({}, g, c)
    }
    b.legacyContext = d
    Z(a, b, f)
    b.legacyContext = g
  } else Z(a, b, f)
}
function Wc(a, b) {
  if (a && a.defaultProps) {
    b = O({}, b)
    a = a.defaultProps
    for (var c in a) void 0 === b[c] && (b[c] = a[c])
    return b
  }
  return b
}
function Xc(a, b, c, d, f) {
  if ('function' === typeof c)
    if (c.prototype && c.prototype.isReactComponent) {
      f = ic(c, b.legacyContext)
      var e = c.contextType
      e = new c(d, 'object' === typeof e && null !== e ? e._currentValue : f)
      pc(e, c, d, f)
      Vc(a, b, e, c)
    } else {
      e = ic(c, b.legacyContext)
      f = Uc(a, b, c, d, e)
      var g = 0 !== U
      if (
        'object' === typeof f &&
        null !== f &&
        'function' === typeof f.render &&
        void 0 === f.$$typeof
      )
        (pc(f, c, d, e), Vc(a, b, f, c))
      else if (g) {
        d = b.treeContext
        b.treeContext = rc(d, 1, 0)
        try {
          Z(a, b, f)
        } finally {
          b.treeContext = d
        }
      } else Z(a, b, f)
    }
  else if ('string' === typeof c) {
    f = b.blockedSegment
    e = Pa(f.chunks, c, d, a.responseState, f.formatContext)
    f.lastPushedText = !1
    g = f.formatContext
    f.formatContext = ya(g, c, d)
    Yc(a, b, e)
    f.formatContext = g
    switch (c) {
      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:
        f.chunks.push(Qa, c, Ra)
    }
    f.lastPushedText = !1
  } else {
    switch (c) {
      case dc:
      case cc:
      case Tb:
      case Ub:
      case Sb:
        Z(a, b, d.children)
        return
      case Zb:
        Z(a, b, d.children)
        return
      case bc:
        throw Error('ReactDOMServer does not yet support scope components.')
      case Yb:
        a: {
          c = b.blockedBoundary
          f = b.blockedSegment
          e = d.fallback
          d = d.children
          g = new Set()
          var h = {
              id: null,
              rootSegmentID: -1,
              parentFlushed: !1,
              pendingTasks: 0,
              forceClientRender: !1,
              completedSegments: [],
              byteSize: 0,
              fallbackAbortableTasks: g,
              errorDigest: null,
            },
            m = Sc(a, f.chunks.length, h, f.formatContext, !1, !1)
          f.children.push(m)
          f.lastPushedText = !1
          var n = Sc(a, 0, null, f.formatContext, !1, !1)
          n.parentFlushed = !0
          b.blockedBoundary = h
          b.blockedSegment = n
          try {
            if (
              (Yc(a, b, d),
              n.lastPushedText && n.textEmbedded && n.chunks.push(za),
              (n.status = 1),
              Zc(h, n),
              0 === h.pendingTasks)
            )
              break a
          } catch (p) {
            ;((n.status = 4), (h.forceClientRender = !0), (h.errorDigest = Y(a, p)))
          } finally {
            ;((b.blockedBoundary = c), (b.blockedSegment = f))
          }
          b = Rc(a, e, c, m, g, b.legacyContext, b.context, b.treeContext)
          a.pingedTasks.push(b)
        }
        return
    }
    if ('object' === typeof c && null !== c)
      switch (c.$$typeof) {
        case Xb:
          d = Uc(a, b, c.render, d, f)
          if (0 !== U) {
            c = b.treeContext
            b.treeContext = rc(c, 1, 0)
            try {
              Z(a, b, d)
            } finally {
              b.treeContext = c
            }
          } else Z(a, b, d)
          return
        case $b:
          c = c.type
          d = Wc(c, d)
          Xc(a, b, c, d, f)
          return
        case Vb:
          f = d.children
          c = c._context
          d = d.value
          e = c._currentValue
          c._currentValue = d
          g = P
          P = d = {
            parent: g,
            depth: null === g ? 0 : g.depth + 1,
            context: c,
            parentValue: e,
            value: d,
          }
          b.context = d
          Z(a, b, f)
          a = P
          if (null === a)
            throw Error(
              'Tried to pop a Context at the root of the app. This is a bug in React.'
            )
          d = a.parentValue
          a.context._currentValue = d === ec ? a.context._defaultValue : d
          a = P = a.parent
          b.context = a
          return
        case Wb:
          d = d.children
          d = d(c._currentValue)
          Z(a, b, d)
          return
        case ac:
          f = c._init
          c = f(c._payload)
          d = Wc(c, d)
          Xc(a, b, c, d, void 0)
          return
      }
    throw Error(
      'Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: ' +
        ((null == c ? c : typeof c) + '.')
    )
  }
}
function Z(a, b, c) {
  b.node = c
  if ('object' === typeof c && null !== c) {
    switch (c.$$typeof) {
      case Qb:
        Xc(a, b, c.type, c.props, c.ref)
        return
      case Rb:
        throw Error(
          'Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render.'
        )
      case ac:
        var d = c._init
        c = d(c._payload)
        Z(a, b, c)
        return
    }
    if (qa(c)) {
      $c(a, b, c)
      return
    }
    null === c || 'object' !== typeof c
      ? (d = null)
      : ((d = (fc && c[fc]) || c['@@iterator']), (d = 'function' === typeof d ? d : null))
    if (d && (d = d.call(c))) {
      c = d.next()
      if (!c.done) {
        var f = []
        do (f.push(c.value), (c = d.next()))
        while (!c.done)
        $c(a, b, f)
      }
      return
    }
    a = Object.prototype.toString.call(c)
    throw Error(
      'Objects are not valid as a React child (found: ' +
        ('[object Object]' === a
          ? 'object with keys {' + Object.keys(c).join(', ') + '}'
          : a) +
        '). If you meant to render a collection of children, use an array instead.'
    )
  }
  'string' === typeof c
    ? ((d = b.blockedSegment),
      (d.lastPushedText = Aa(
        b.blockedSegment.chunks,
        c,
        a.responseState,
        d.lastPushedText
      )))
    : 'number' === typeof c &&
      ((d = b.blockedSegment),
      (d.lastPushedText = Aa(
        b.blockedSegment.chunks,
        '' + c,
        a.responseState,
        d.lastPushedText
      )))
}
function $c(a, b, c) {
  for (var d = c.length, f = 0; f < d; f++) {
    var e = b.treeContext
    b.treeContext = rc(e, d, f)
    try {
      Yc(a, b, c[f])
    } finally {
      b.treeContext = e
    }
  }
}
function Yc(a, b, c) {
  var d = b.blockedSegment.formatContext,
    f = b.legacyContext,
    e = b.context
  try {
    return Z(a, b, c)
  } catch (m) {
    if ((Ec(), 'object' === typeof m && null !== m && 'function' === typeof m.then)) {
      c = m
      var g = b.blockedSegment,
        h = Sc(a, g.chunks.length, null, g.formatContext, g.lastPushedText, !0)
      g.children.push(h)
      g.lastPushedText = !1
      a = Rc(
        a,
        b.node,
        b.blockedBoundary,
        h,
        b.abortSet,
        b.legacyContext,
        b.context,
        b.treeContext
      ).ping
      c.then(a, a)
      b.blockedSegment.formatContext = d
      b.legacyContext = f
      b.context = e
      nc(e)
    } else
      throw (
        (b.blockedSegment.formatContext = d),
        (b.legacyContext = f),
        (b.context = e),
        nc(e),
        m
      )
  }
}
function ad(a) {
  var b = a.blockedBoundary
  a = a.blockedSegment
  a.status = 3
  bd(this, b, a)
}
function cd(a, b, c) {
  var d = a.blockedBoundary
  a.blockedSegment.status = 3
  null === d
    ? (b.allPendingTasks--,
      2 !== b.status && ((b.status = 2), null !== b.destination && b.destination.end()))
    : (d.pendingTasks--,
      d.forceClientRender ||
        ((d.forceClientRender = !0),
        (d.errorDigest = b.onError(
          void 0 === c
            ? Error('The render was aborted by the server without a reason.')
            : c
        )),
        d.parentFlushed && b.clientRenderedBoundaries.push(d)),
      d.fallbackAbortableTasks.forEach(function (a) {
        return cd(a, b, c)
      }),
      d.fallbackAbortableTasks.clear(),
      b.allPendingTasks--,
      0 === b.allPendingTasks && ((a = b.onAllReady), a()))
}
function Zc(a, b) {
  if (
    0 === b.chunks.length &&
    1 === b.children.length &&
    null === b.children[0].boundary
  ) {
    var c = b.children[0]
    c.id = b.id
    c.parentFlushed = !0
    1 === c.status && Zc(a, c)
  } else a.completedSegments.push(b)
}
function bd(a, b, c) {
  if (null === b) {
    if (c.parentFlushed) {
      if (null !== a.completedRootSegment)
        throw Error('There can only be one root segment. This is a bug in React.')
      a.completedRootSegment = c
    }
    a.pendingRootTasks--
    0 === a.pendingRootTasks && ((a.onShellError = X), (b = a.onShellReady), b())
  } else
    (b.pendingTasks--,
      b.forceClientRender ||
        (0 === b.pendingTasks
          ? (c.parentFlushed && 1 === c.status && Zc(b, c),
            b.parentFlushed && a.completedBoundaries.push(b),
            b.fallbackAbortableTasks.forEach(ad, a),
            b.fallbackAbortableTasks.clear())
          : c.parentFlushed &&
            1 === c.status &&
            (Zc(b, c),
            1 === b.completedSegments.length &&
              b.parentFlushed &&
              a.partialBoundaries.push(b))))
  a.allPendingTasks--
  0 === a.allPendingTasks && ((a = a.onAllReady), a())
}
function Qc(a) {
  if (2 !== a.status) {
    var b = P,
      c = Nc.current
    Nc.current = Mc
    var d = Lc
    Lc = a.responseState
    try {
      var f = a.pingedTasks,
        e
      for (e = 0; e < f.length; e++) {
        var g = f[e]
        var h = a,
          m = g.blockedSegment
        if (0 === m.status) {
          nc(g.context)
          try {
            ;(Z(h, g, g.node),
              m.lastPushedText && m.textEmbedded && m.chunks.push(za),
              g.abortSet.delete(g),
              (m.status = 1),
              bd(h, g.blockedBoundary, m))
          } catch (E) {
            if (
              (Ec(), 'object' === typeof E && null !== E && 'function' === typeof E.then)
            ) {
              var n = g.ping
              E.then(n, n)
            } else {
              g.abortSet.delete(g)
              m.status = 4
              var p = g.blockedBoundary,
                v = E,
                C = Y(h, v)
              null === p
                ? Tc(h, v)
                : (p.pendingTasks--,
                  p.forceClientRender ||
                    ((p.forceClientRender = !0),
                    (p.errorDigest = C),
                    p.parentFlushed && h.clientRenderedBoundaries.push(p)))
              h.allPendingTasks--
              if (0 === h.allPendingTasks) {
                var D = h.onAllReady
                D()
              }
            }
          } finally {
          }
        }
      }
      f.splice(0, e)
      null !== a.destination && dd(a, a.destination)
    } catch (E) {
      ;(Y(a, E), Tc(a, E))
    } finally {
      ;((Lc = d), (Nc.current = c), c === Mc && nc(b))
    }
  }
}
function ed(a, b, c) {
  c.parentFlushed = !0
  switch (c.status) {
    case 0:
      var d = (c.id = a.nextSegmentId++)
      c.lastPushedText = !1
      c.textEmbedded = !1
      a = a.responseState
      r(b, Sa)
      r(b, a.placeholderPrefix)
      a = d.toString(16)
      r(b, a)
      return w(b, Ta)
    case 1:
      c.status = 2
      var f = !0
      d = c.chunks
      var e = 0
      c = c.children
      for (var g = 0; g < c.length; g++) {
        for (f = c[g]; e < f.index; e++) r(b, d[e])
        f = fd(a, b, f)
      }
      for (; e < d.length - 1; e++) r(b, d[e])
      e < d.length && (f = w(b, d[e]))
      return f
    default:
      throw Error(
        'Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.'
      )
  }
}
function fd(a, b, c) {
  var d = c.boundary
  if (null === d) return ed(a, b, c)
  d.parentFlushed = !0
  if (d.forceClientRender)
    ((d = d.errorDigest),
      w(b, Xa),
      r(b, Za),
      d && (r(b, ab), r(b, F(d)), r(b, $a)),
      w(b, bb),
      ed(a, b, c))
  else if (0 < d.pendingTasks) {
    d.rootSegmentID = a.nextSegmentId++
    0 < d.completedSegments.length && a.partialBoundaries.push(d)
    var f = a.responseState
    var e = f.nextSuspenseID++
    f = x(f.boundaryPrefix + e.toString(16))
    d = d.id = f
    cb(b, a.responseState, d)
    ed(a, b, c)
  } else if (d.byteSize > a.progressiveChunkSize)
    ((d.rootSegmentID = a.nextSegmentId++),
      a.completedBoundaries.push(d),
      cb(b, a.responseState, d.id),
      ed(a, b, c))
  else {
    w(b, Ua)
    c = d.completedSegments
    if (1 !== c.length)
      throw Error(
        'A previously unvisited boundary must have exactly one root segment. This is a bug in React.'
      )
    fd(a, b, c[0])
  }
  return w(b, Ya)
}
function gd(a, b, c) {
  yb(b, a.responseState, c.formatContext, c.id)
  fd(a, b, c)
  return zb(b, c.formatContext)
}
function hd(a, b, c) {
  for (var d = c.completedSegments, f = 0; f < d.length; f++) id(a, b, c, d[f])
  d.length = 0
  a = a.responseState
  d = c.id
  c = c.rootSegmentID
  r(b, a.startInlineScript)
  a.sentCompleteBoundaryFunction
    ? r(b, Gb)
    : ((a.sentCompleteBoundaryFunction = !0), r(b, Fb))
  if (null === d)
    throw Error('An ID must have been assigned before we can complete the boundary.')
  c = c.toString(16)
  r(b, d)
  r(b, Hb)
  r(b, a.segmentPrefix)
  r(b, c)
  return w(b, Ib)
}
function id(a, b, c, d) {
  if (2 === d.status) return !0
  var f = d.id
  if (-1 === f) {
    if (-1 === (d.id = c.rootSegmentID))
      throw Error(
        'A root segment ID must have been assigned by now. This is a bug in React.'
      )
    return gd(a, b, d)
  }
  gd(a, b, d)
  a = a.responseState
  r(b, a.startInlineScript)
  a.sentCompleteSegmentFunction
    ? r(b, Bb)
    : ((a.sentCompleteSegmentFunction = !0), r(b, Ab))
  r(b, a.segmentPrefix)
  f = f.toString(16)
  r(b, f)
  r(b, Cb)
  r(b, a.placeholderPrefix)
  r(b, f)
  return w(b, Db)
}
function dd(a, b) {
  k = new Uint8Array(2048)
  l = 0
  q = !0
  try {
    var c = a.completedRootSegment
    if (null !== c && 0 === a.pendingRootTasks) {
      fd(a, b, c)
      a.completedRootSegment = null
      var d = a.responseState.bootstrapChunks
      for (c = 0; c < d.length - 1; c++) r(b, d[c])
      c < d.length && w(b, d[c])
    }
    var f = a.clientRenderedBoundaries,
      e
    for (e = 0; e < f.length; e++) {
      var g = f[e]
      d = b
      var h = a.responseState,
        m = g.id,
        n = g.errorDigest,
        p = g.errorMessage,
        v = g.errorComponentStack
      r(d, h.startInlineScript)
      h.sentClientRenderFunction
        ? r(d, Kb)
        : ((h.sentClientRenderFunction = !0), r(d, Jb))
      if (null === m)
        throw Error('An ID must have been assigned before we can complete the boundary.')
      r(d, m)
      r(d, Lb)
      if (n || p || v) (r(d, Nb), r(d, Pb(n || '')))
      if (p || v) (r(d, Nb), r(d, Pb(p || '')))
      v && (r(d, Nb), r(d, Pb(v)))
      if (!w(d, Mb)) {
        a.destination = null
        e++
        f.splice(0, e)
        return
      }
    }
    f.splice(0, e)
    var C = a.completedBoundaries
    for (e = 0; e < C.length; e++)
      if (!hd(a, b, C[e])) {
        a.destination = null
        e++
        C.splice(0, e)
        return
      }
    C.splice(0, e)
    ca(b)
    k = new Uint8Array(2048)
    l = 0
    q = !0
    var D = a.partialBoundaries
    for (e = 0; e < D.length; e++) {
      var E = D[e]
      a: {
        f = a
        g = b
        var na = E.completedSegments
        for (h = 0; h < na.length; h++)
          if (!id(f, g, E, na[h])) {
            h++
            na.splice(0, h)
            var Eb = !1
            break a
          }
        na.splice(0, h)
        Eb = !0
      }
      if (!Eb) {
        a.destination = null
        e++
        D.splice(0, e)
        return
      }
    }
    D.splice(0, e)
    var oa = a.completedBoundaries
    for (e = 0; e < oa.length; e++)
      if (!hd(a, b, oa[e])) {
        a.destination = null
        e++
        oa.splice(0, e)
        return
      }
    oa.splice(0, e)
  } finally {
    ;(ca(b),
      'function' === typeof b.flush && b.flush(),
      0 === a.allPendingTasks &&
        0 === a.pingedTasks.length &&
        0 === a.clientRenderedBoundaries.length &&
        0 === a.completedBoundaries.length &&
        b.end())
  }
}
function jd(a) {
  setImmediate(function () {
    return Qc(a)
  })
}
function kd(a, b) {
  if (1 === a.status) ((a.status = 2), b.destroy(a.fatalError))
  else if (2 !== a.status && null === a.destination) {
    a.destination = b
    try {
      dd(a, b)
    } catch (c) {
      ;(Y(a, c), Tc(a, c))
    }
  }
}
function ld(a, b) {
  try {
    var c = a.abortableTasks
    c.forEach(function (c) {
      return cd(c, a, b)
    })
    c.clear()
    null !== a.destination && dd(a, a.destination)
  } catch (d) {
    ;(Y(a, d), Tc(a, d))
  }
}
function md(a, b) {
  return function () {
    return kd(b, a)
  }
}
function nd(a, b) {
  return function () {
    return ld(a, b)
  }
}
function od(a, b) {
  var c = b ? b.identifierPrefix : void 0,
    d = b ? b.nonce : void 0,
    f = b ? b.bootstrapScriptContent : void 0,
    e = b ? b.bootstrapScripts : void 0
  var g = b ? b.bootstrapModules : void 0
  c = void 0 === c ? '' : c
  d = void 0 === d ? ra : x('<script nonce="' + F(d) + '">')
  var h = []
  void 0 !== f && h.push(d, ('' + f).replace(wa, xa), sa)
  if (void 0 !== e) for (f = 0; f < e.length; f++) h.push(ta, F(e[f]), va)
  if (void 0 !== g) for (e = 0; e < g.length; e++) h.push(ua, F(g[e]), va)
  g = {
    bootstrapChunks: h,
    startInlineScript: d,
    placeholderPrefix: x(c + 'P:'),
    segmentPrefix: x(c + 'S:'),
    boundaryPrefix: c + 'B:',
    idPrefix: c,
    nextSuspenseID: 0,
    sentCompleteSegmentFunction: !1,
    sentCompleteBoundaryFunction: !1,
    sentClientRenderFunction: !1,
  }
  e = b ? b.namespaceURI : void 0
  e = G(
    'http://www.w3.org/2000/svg' === e
      ? 2
      : 'http://www.w3.org/1998/Math/MathML' === e
        ? 3
        : 0,
    null
  )
  f = b ? b.progressiveChunkSize : void 0
  d = b ? b.onError : void 0
  h = b ? b.onAllReady : void 0
  var m = b ? b.onShellReady : void 0,
    n = b ? b.onShellError : void 0
  b = []
  c = new Set()
  g = {
    destination: null,
    responseState: g,
    progressiveChunkSize: void 0 === f ? 12800 : f,
    status: 0,
    fatalError: null,
    nextSegmentId: 0,
    allPendingTasks: 0,
    pendingRootTasks: 0,
    completedRootSegment: null,
    abortableTasks: c,
    pingedTasks: b,
    clientRenderedBoundaries: [],
    completedBoundaries: [],
    partialBoundaries: [],
    onError: void 0 === d ? Oc : d,
    onAllReady: void 0 === h ? X : h,
    onShellReady: void 0 === m ? X : m,
    onShellError: void 0 === n ? X : n,
    onFatalError: X,
  }
  e = Sc(g, 0, null, e, !1, !1)
  e.parentFlushed = !0
  a = Rc(g, a, null, e, c, hc, null, qc)
  b.push(a)
  return g
}
exports.renderToPipeableStream = function (a, b) {
  var c = od(a, b),
    d = !1
  jd(c)
  return {
    pipe: function (a) {
      if (d) throw Error('React currently only supports piping to one writable stream.')
      d = !0
      kd(c, a)
      a.on('drain', md(a, c))
      a.on('error', nd(c, Error('The destination stream errored while writing data.')))
      a.on('close', nd(c, Error('The destination stream closed early.')))
      return a
    },
    abort: function (a) {
      ld(c, a)
    },
  }
}
exports.version = '18.3.1'