UNPKG

@redwoodjs/sdk

Version:

Build fast, server-driven webapps on Cloudflare with SSR, RSC, and realtime

1,524 lines (1,523 loc) 266 kB
import qi from "react"; var xr = {}, ui = {}, mi = { exports: {} }, Un = {}; /** * @license React * react-dom.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var Du; function Uu() { if (Du) return Un; Du = 1; var Tn = qi; function le(N) { var P = "https://react.dev/errors/" + N; if (1 < arguments.length) { P += "?args[]=" + encodeURIComponent(arguments[1]); for (var G = 2; G < arguments.length; G++) P += "&args[]=" + encodeURIComponent(arguments[G]); } return "Minified React error #" + N + "; visit " + P + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings."; } function I() { } var cn = { d: { f: I, r: function() { throw Error(le(522)); }, D: I, C: I, L: I, m: I, X: I, S: I, M: I }, p: 0, findDOMNode: null }, It = Symbol.for("react.portal"); function kt(N, P, G) { var In = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null; return { $$typeof: It, key: In == null ? null : "" + In, children: N, containerInfo: P, implementation: G }; } var fe = Tn.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE; function ze(N, P) { if (N === "font") return ""; if (typeof P == "string") return P === "use-credentials" ? P : ""; } return Un.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = cn, Un.createPortal = function(N, P) { var G = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null; if (!P || P.nodeType !== 1 && P.nodeType !== 9 && P.nodeType !== 11) throw Error(le(299)); return kt(N, P, null, G); }, Un.flushSync = function(N) { var P = fe.T, G = cn.p; try { if (fe.T = null, cn.p = 2, N) return N(); } finally { fe.T = P, cn.p = G, cn.d.f(); } }, Un.preconnect = function(N, P) { typeof N == "string" && (P ? (P = P.crossOrigin, P = typeof P == "string" ? P === "use-credentials" ? P : "" : void 0) : P = null, cn.d.C(N, P)); }, Un.prefetchDNS = function(N) { typeof N == "string" && cn.d.D(N); }, Un.preinit = function(N, P) { if (typeof N == "string" && P && typeof P.as == "string") { var G = P.as, In = ze(G, P.crossOrigin), oe = typeof P.integrity == "string" ? P.integrity : void 0, Fe = typeof P.fetchPriority == "string" ? P.fetchPriority : void 0; G === "style" ? cn.d.S( N, typeof P.precedence == "string" ? P.precedence : void 0, { crossOrigin: In, integrity: oe, fetchPriority: Fe } ) : G === "script" && cn.d.X(N, { crossOrigin: In, integrity: oe, fetchPriority: Fe, nonce: typeof P.nonce == "string" ? P.nonce : void 0 }); } }, Un.preinitModule = function(N, P) { if (typeof N == "string") if (typeof P == "object" && P !== null) { if (P.as == null || P.as === "script") { var G = ze( P.as, P.crossOrigin ); cn.d.M(N, { crossOrigin: G, integrity: typeof P.integrity == "string" ? P.integrity : void 0, nonce: typeof P.nonce == "string" ? P.nonce : void 0 }); } } else P == null && cn.d.M(N); }, Un.preload = function(N, P) { if (typeof N == "string" && typeof P == "object" && P !== null && typeof P.as == "string") { var G = P.as, In = ze(G, P.crossOrigin); cn.d.L(N, G, { crossOrigin: In, integrity: typeof P.integrity == "string" ? P.integrity : void 0, nonce: typeof P.nonce == "string" ? P.nonce : void 0, type: typeof P.type == "string" ? P.type : void 0, fetchPriority: typeof P.fetchPriority == "string" ? P.fetchPriority : void 0, referrerPolicy: typeof P.referrerPolicy == "string" ? P.referrerPolicy : void 0, imageSrcSet: typeof P.imageSrcSet == "string" ? P.imageSrcSet : void 0, imageSizes: typeof P.imageSizes == "string" ? P.imageSizes : void 0, media: typeof P.media == "string" ? P.media : void 0 }); } }, Un.preloadModule = function(N, P) { if (typeof N == "string") if (P) { var G = ze(P.as, P.crossOrigin); cn.d.m(N, { as: typeof P.as == "string" && P.as !== "script" ? P.as : void 0, crossOrigin: G, integrity: typeof P.integrity == "string" ? P.integrity : void 0 }); } else cn.d.m(N); }, Un.requestFormReset = function(N) { cn.d.r(N); }, Un.unstable_batchedUpdates = function(N, P) { return N(P); }, Un.useFormState = function(N, P, G) { return fe.H.useFormState(N, P, G); }, Un.useFormStatus = function() { return fe.H.useHostTransitionStatus(); }, Un.version = "19.0.0-rc-f2df5694-20240916", Un; } var Lu; function Hu() { if (Lu) return mi.exports; Lu = 1; function Tn() { if (!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE != "function")) try { __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Tn); } catch (le) { console.error(le); } } return Tn(), mi.exports = Uu(), mi.exports; } /** * @license React * react-dom-server.edge.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var Bu; function Yu() { if (Bu) return ui; Bu = 1; var Tn = qi, le = Hu(), I = Symbol.for("react.transitional.element"), cn = Symbol.for("react.portal"), It = Symbol.for("react.fragment"), kt = Symbol.for("react.strict_mode"), fe = Symbol.for("react.profiler"), ze = Symbol.for("react.provider"), N = Symbol.for("react.consumer"), P = Symbol.for("react.context"), G = Symbol.for("react.forward_ref"), In = Symbol.for("react.suspense"), oe = Symbol.for("react.suspense_list"), Fe = Symbol.for("react.memo"), ct = Symbol.for("react.lazy"), Cr = Symbol.for("react.scope"), ci = Symbol.for("react.debug_trace_mode"), fi = Symbol.for("react.offscreen"), oi = Symbol.for("react.legacy_hidden"), hi = Symbol.for("react.memo_cache_sentinel"), aa = Symbol.iterator, Sr = Array.isArray; function Pr(n, t) { var l = n.length & 3, u = n.length - l, f = t; for (t = 0; t < u; ) { var o = n.charCodeAt(t) & 255 | (n.charCodeAt(++t) & 255) << 8 | (n.charCodeAt(++t) & 255) << 16 | (n.charCodeAt(++t) & 255) << 24; ++t, o = 3432918353 * (o & 65535) + ((3432918353 * (o >>> 16) & 65535) << 16) & 4294967295, o = o << 15 | o >>> 17, o = 461845907 * (o & 65535) + ((461845907 * (o >>> 16) & 65535) << 16) & 4294967295, f ^= o, f = f << 13 | f >>> 19, f = 5 * (f & 65535) + ((5 * (f >>> 16) & 65535) << 16) & 4294967295, f = (f & 65535) + 27492 + (((f >>> 16) + 58964 & 65535) << 16); } switch (o = 0, l) { case 3: o ^= (n.charCodeAt(t + 2) & 255) << 16; case 2: o ^= (n.charCodeAt(t + 1) & 255) << 8; case 1: o ^= n.charCodeAt(t) & 255, o = 3432918353 * (o & 65535) + ((3432918353 * (o >>> 16) & 65535) << 16) & 4294967295, o = o << 15 | o >>> 17, f ^= 461845907 * (o & 65535) + ((461845907 * (o >>> 16) & 65535) << 16) & 4294967295; } return f ^= n.length, f ^= f >>> 16, f = 2246822507 * (f & 65535) + ((2246822507 * (f >>> 16) & 65535) << 16) & 4294967295, f ^= f >>> 13, f = 3266489909 * (f & 65535) + ((3266489909 * (f >>> 16) & 65535) << 16) & 4294967295, (f ^ f >>> 16) >>> 0; } function ia(n) { setTimeout(function() { throw n; }); } var kn = Promise, j = typeof queueMicrotask == "function" ? queueMicrotask : function(n) { kn.resolve(null).then(n).catch(ia); }, Yn = null, Mn = 0; function w(n, t) { if (t.byteLength !== 0) if (2048 < t.byteLength) 0 < Mn && (n.enqueue( new Uint8Array(Yn.buffer, 0, Mn) ), Yn = new Uint8Array(2048), Mn = 0), n.enqueue(t); else { var l = Yn.length - Mn; l < t.byteLength && (l === 0 ? n.enqueue(Yn) : (Yn.set(t.subarray(0, l), Mn), n.enqueue(Yn), t = t.subarray(l)), Yn = new Uint8Array(2048), Mn = 0), Yn.set(t, Mn), Mn += t.byteLength; } } function J(n, t) { return w(n, t), !0; } function cl(n) { Yn && 0 < Mn && (n.enqueue(new Uint8Array(Yn.buffer, 0, Mn)), Yn = null, Mn = 0); } var ua = new TextEncoder(); function A(n) { return ua.encode(n); } function R(n) { return ua.encode(n); } function ca(n, t) { typeof n.error == "function" ? n.error(t) : n.close(); } var Dn = Object.assign, rn = Object.prototype.hasOwnProperty, Mt = RegExp( "^[: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]*$" ), He = {}, fl = {}; function ol(n) { return rn.call(fl, n) ? !0 : rn.call(He, n) ? !1 : Mt.test(n) ? fl[n] = !0 : (He[n] = !0, !1); } var he = new Set( "animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split( " " ) ), Kn = /* @__PURE__ */ new Map([ ["acceptCharset", "accept-charset"], ["htmlFor", "for"], ["httpEquiv", "http-equiv"], ["crossOrigin", "crossorigin"], ["accentHeight", "accent-height"], ["alignmentBaseline", "alignment-baseline"], ["arabicForm", "arabic-form"], ["baselineShift", "baseline-shift"], ["capHeight", "cap-height"], ["clipPath", "clip-path"], ["clipRule", "clip-rule"], ["colorInterpolation", "color-interpolation"], ["colorInterpolationFilters", "color-interpolation-filters"], ["colorProfile", "color-profile"], ["colorRendering", "color-rendering"], ["dominantBaseline", "dominant-baseline"], ["enableBackground", "enable-background"], ["fillOpacity", "fill-opacity"], ["fillRule", "fill-rule"], ["floodColor", "flood-color"], ["floodOpacity", "flood-opacity"], ["fontFamily", "font-family"], ["fontSize", "font-size"], ["fontSizeAdjust", "font-size-adjust"], ["fontStretch", "font-stretch"], ["fontStyle", "font-style"], ["fontVariant", "font-variant"], ["fontWeight", "font-weight"], ["glyphName", "glyph-name"], ["glyphOrientationHorizontal", "glyph-orientation-horizontal"], ["glyphOrientationVertical", "glyph-orientation-vertical"], ["horizAdvX", "horiz-adv-x"], ["horizOriginX", "horiz-origin-x"], ["imageRendering", "image-rendering"], ["letterSpacing", "letter-spacing"], ["lightingColor", "lighting-color"], ["markerEnd", "marker-end"], ["markerMid", "marker-mid"], ["markerStart", "marker-start"], ["overlinePosition", "overline-position"], ["overlineThickness", "overline-thickness"], ["paintOrder", "paint-order"], ["panose-1", "panose-1"], ["pointerEvents", "pointer-events"], ["renderingIntent", "rendering-intent"], ["shapeRendering", "shape-rendering"], ["stopColor", "stop-color"], ["stopOpacity", "stop-opacity"], ["strikethroughPosition", "strikethrough-position"], ["strikethroughThickness", "strikethrough-thickness"], ["strokeDasharray", "stroke-dasharray"], ["strokeDashoffset", "stroke-dashoffset"], ["strokeLinecap", "stroke-linecap"], ["strokeLinejoin", "stroke-linejoin"], ["strokeMiterlimit", "stroke-miterlimit"], ["strokeOpacity", "stroke-opacity"], ["strokeWidth", "stroke-width"], ["textAnchor", "text-anchor"], ["textDecoration", "text-decoration"], ["textRendering", "text-rendering"], ["transformOrigin", "transform-origin"], ["underlinePosition", "underline-position"], ["underlineThickness", "underline-thickness"], ["unicodeBidi", "unicode-bidi"], ["unicodeRange", "unicode-range"], ["unitsPerEm", "units-per-em"], ["vAlphabetic", "v-alphabetic"], ["vHanging", "v-hanging"], ["vIdeographic", "v-ideographic"], ["vMathematical", "v-mathematical"], ["vectorEffect", "vector-effect"], ["vertAdvY", "vert-adv-y"], ["vertOriginX", "vert-origin-x"], ["vertOriginY", "vert-origin-y"], ["wordSpacing", "word-spacing"], ["writingMode", "writing-mode"], ["xmlnsXlink", "xmlns:xlink"], ["xHeight", "x-height"] ]), fa = /["'&<>]/; function H(n) { if (typeof n == "boolean" || typeof n == "number" || typeof n == "bigint") return "" + n; n = "" + n; var t = fa.exec(n); if (t) { var l = "", u, f = 0; for (u = t.index; u < n.length; u++) { switch (n.charCodeAt(u)) { case 34: t = "&quot;"; break; case 38: t = "&amp;"; break; case 39: t = "&#x27;"; break; case 60: t = "&lt;"; break; case 62: t = "&gt;"; break; default: continue; } f !== u && (l += n.slice(f, u)), f = u + 1, l += t; } n = f !== u ? l + n.slice(f, u) : l; } return n; } var si = /([A-Z])/g, wn = /^ms-/, oa = /^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i; function ft(n) { return oa.test("" + n) ? "javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')" : n; } var We = Tn.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Fr = le.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, bn = { pending: !1, data: null, method: null, action: null }, ae = Fr.d; Fr.d = { f: ae.f, r: ae.r, D: Ga, C: Xa, L: $n, m: Mi, X: Za, S: Kt, M: Al }; var Ln = []; R('"></template>'); var ha = R("<script>"), hl = R("<\/script>"), sa = R('<script src="'), Q = R('<script type="module" src="'), Gn = R('" nonce="'), da = R('" integrity="'), sl = R('" crossorigin="'), gn = R('" async=""><\/script>'), Ar = /(<\/|<)(s)(cript)/gi; function Or(n, t, l, u) { return "" + t + (l === "s" ? "\\u0073" : "\\u0053") + u; } var ot = R( '<script type="importmap">' ), ga = R("<\/script>"); function _r(n, t, l, u, f, o) { var s = t === void 0 ? ha : R( '<script nonce="' + H(t) + '">' ), v = n.idPrefix; l = []; var g = n.bootstrapScriptContent, T = n.bootstrapScripts, S = n.bootstrapModules; if (g !== void 0 && l.push( s, A( ("" + g).replace(Ar, Or) ), hl ), g = [], u !== void 0 && (g.push(ot), g.push( A( ("" + JSON.stringify(u)).replace(Ar, Or) ) ), g.push(ga)), u = f ? { preconnects: "", fontPreloads: "", highImagePreloads: "", remainingCapacity: 2 + (typeof o == "number" ? o : 2e3) } : null, f = { placeholderPrefix: R(v + "P:"), segmentPrefix: R(v + "S:"), boundaryPrefix: R(v + "B:"), startInlineScript: s, htmlChunks: null, headChunks: null, externalRuntimeScript: null, bootstrapChunks: l, importMapChunks: g, onHeaders: f, headers: u, resets: { font: {}, dns: {}, connect: { default: {}, anonymous: {}, credentials: {} }, image: {}, style: {} }, charsetChunks: [], viewportChunks: [], hoistableChunks: [], preconnects: /* @__PURE__ */ new Set(), fontPreloads: /* @__PURE__ */ new Set(), highImagePreloads: /* @__PURE__ */ new Set(), styles: /* @__PURE__ */ new Map(), bootstrapScripts: /* @__PURE__ */ new Set(), scripts: /* @__PURE__ */ new Set(), bulkPreloads: /* @__PURE__ */ new Set(), preloads: { images: /* @__PURE__ */ new Map(), stylesheets: /* @__PURE__ */ new Map(), scripts: /* @__PURE__ */ new Map(), moduleScripts: /* @__PURE__ */ new Map() }, nonce: t, hoistableState: null, stylesToHoist: !1 }, T !== void 0) for (u = 0; u < T.length; u++) { var E = T[u]; v = s = void 0, g = { rel: "preload", as: "script", fetchPriority: "low", nonce: t }, typeof E == "string" ? g.href = o = E : (g.href = o = E.src, g.integrity = v = typeof E.integrity == "string" ? E.integrity : void 0, g.crossOrigin = s = typeof E == "string" || E.crossOrigin == null ? void 0 : E.crossOrigin === "use-credentials" ? "use-credentials" : ""), E = n; var C = o; E.scriptResources[C] = null, E.moduleScriptResources[C] = null, E = [], Rn(E, g), f.bootstrapScripts.add(E), l.push( sa, A(H(o)) ), t && l.push( Gn, A(H(t)) ), typeof v == "string" && l.push( da, A(H(v)) ), typeof s == "string" && l.push( sl, A(H(s)) ), l.push(gn); } if (S !== void 0) for (T = 0; T < S.length; T++) g = S[T], s = o = void 0, v = { rel: "modulepreload", fetchPriority: "low", nonce: t }, typeof g == "string" ? v.href = u = g : (v.href = u = g.src, v.integrity = s = typeof g.integrity == "string" ? g.integrity : void 0, v.crossOrigin = o = typeof g == "string" || g.crossOrigin == null ? void 0 : g.crossOrigin === "use-credentials" ? "use-credentials" : ""), g = n, E = u, g.scriptResources[E] = null, g.moduleScriptResources[E] = null, g = [], Rn(g, v), f.bootstrapScripts.add(g), l.push( Q, A(H(u)) ), t && l.push( Gn, A(H(t)) ), typeof s == "string" && l.push( da, A(H(s)) ), typeof o == "string" && l.push( sl, A(H(o)) ), l.push(gn); return f; } function Dt(n, t, l, u, f) { return { idPrefix: n === void 0 ? "" : n, nextFormID: 0, streamingFormat: 0, bootstrapScriptContent: l, bootstrapScripts: u, bootstrapModules: f, instructions: 0, hasBody: !1, hasHtml: !1, unknownResources: {}, dnsResources: {}, connectResources: { default: {}, anonymous: {}, credentials: {} }, imageResources: {}, styleResources: {}, scriptResources: {}, moduleUnknownResources: {}, moduleScriptResources: {} }; } function xn(n, t, l) { return { insertionMode: n, selectedValue: t, tagScope: l }; } function va(n) { return xn( n === "http://www.w3.org/2000/svg" ? 3 : n === "http://www.w3.org/1998/Math/MathML" ? 4 : 0, null, 0 ); } function fn(n, t, l) { switch (t) { case "noscript": return xn(2, null, n.tagScope | 1); case "select": return xn( 2, l.value != null ? l.value : l.defaultValue, n.tagScope ); case "svg": return xn(3, null, n.tagScope); case "picture": return xn(2, null, n.tagScope | 2); case "math": return xn(4, null, n.tagScope); case "foreignObject": return xn(2, null, n.tagScope); case "table": return xn(5, null, n.tagScope); case "thead": case "tbody": case "tfoot": return xn(6, null, n.tagScope); case "colgroup": return xn(8, null, n.tagScope); case "tr": return xn(7, null, n.tagScope); } return 5 <= n.insertionMode ? xn(2, null, n.tagScope) : n.insertionMode === 0 ? xn(t === "html" ? 1 : 2, null, n.tagScope) : n.insertionMode === 1 ? xn(2, null, n.tagScope) : n; } var se = R("<!-- -->"); function dl(n, t, l, u) { return t === "" ? u : (u && n.push(se), n.push(A(H(t))), !0); } var Ae = /* @__PURE__ */ new Map(), ya = R(' style="'), gl = R(":"), di = R(";"); function ba(n, t) { if (typeof t != "object") 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." ); var l = !0, u; for (u in t) if (rn.call(t, u)) { var f = t[u]; if (f != null && typeof f != "boolean" && f !== "") { if (u.indexOf("--") === 0) { var o = A(H(u)); f = A( H(("" + f).trim()) ); } else o = Ae.get(u), o === void 0 && (o = R( H( u.replace(si, "-$1").toLowerCase().replace(wn, "-ms-") ) ), Ae.set(u, o)), f = typeof f == "number" ? f === 0 || he.has(u) ? A("" + f) : A(f + "px") : A( H(("" + f).trim()) ); l ? (l = !1, n.push( ya, o, gl, f )) : n.push(di, o, gl, f); } } l || n.push(Xn); } var Cn = R(" "), mn = R('="'), Xn = R('"'), Ue = R('=""'); function ht(n, t, l) { l && typeof l != "function" && typeof l != "symbol" && n.push(Cn, A(t), Ue); } function dn(n, t, l) { typeof l != "function" && typeof l != "symbol" && typeof l != "boolean" && n.push( Cn, A(t), mn, A(H(l)), Xn ); } var Ra = R( H( "javascript:throw new Error('React form unexpectedly submitted.')" ) ), Ea = R('<input type="hidden"'); function Ir(n, t) { this.push(Ea), qn(n), dn(this, "name", t), dn(this, "value", n), this.push(Lt); } function qn(n) { if (typeof n != "string") throw Error( "File/Blob fields are not yet supported in progressive forms. Will fallback to client hydration." ); } function de(n, t) { if (typeof t.$$FORM_ACTION == "function") { var l = n.nextFormID++; n = n.idPrefix + l; try { var u = t.$$FORM_ACTION(n); if (u) { var f = u.data; f != null && f.forEach(qn); } return u; } catch (o) { if (typeof o == "object" && o !== null && typeof o.then == "function") throw o; } } return null; } function Ta(n, t, l, u, f, o, s, v) { var g = null; if (typeof u == "function") { var T = de(t, u); T !== null ? (v = T.name, u = T.action || "", f = T.encType, o = T.method, s = T.target, g = T.data) : (n.push( Cn, A("formAction"), mn, Ra, Xn ), s = o = f = u = v = null, wa(t, l)); } return v != null && V(n, "name", v), u != null && V(n, "formAction", u), f != null && V(n, "formEncType", f), o != null && V(n, "formMethod", o), s != null && V(n, "formTarget", s), g; } function V(n, t, l) { switch (t) { case "className": dn(n, "class", l); break; case "tabIndex": dn(n, "tabindex", l); break; case "dir": case "role": case "viewBox": case "width": case "height": dn(n, t, l); break; case "style": ba(n, l); break; case "src": case "href": if (l === "") break; case "action": case "formAction": if (l == null || typeof l == "function" || typeof l == "symbol" || typeof l == "boolean") break; l = ft("" + l), n.push( Cn, A(t), mn, A(H(l)), Xn ); break; case "defaultValue": case "defaultChecked": case "innerHTML": case "suppressContentEditableWarning": case "suppressHydrationWarning": case "ref": break; case "autoFocus": case "multiple": case "muted": ht(n, t.toLowerCase(), l); break; case "xlinkHref": if (typeof l == "function" || typeof l == "symbol" || typeof l == "boolean") break; l = ft("" + l), n.push( Cn, A("xlink:href"), mn, A(H(l)), Xn ); break; case "contentEditable": case "spellCheck": case "draggable": case "value": case "autoReverse": case "externalResourcesRequired": case "focusable": case "preserveAlpha": typeof l != "function" && typeof l != "symbol" && n.push( Cn, A(t), mn, A(H(l)), Xn ); break; case "inert": case "allowFullScreen": case "async": case "autoPlay": case "controls": case "default": case "defer": case "disabled": case "disablePictureInPicture": case "disableRemotePlayback": case "formNoValidate": case "hidden": case "loop": case "noModule": case "noValidate": case "open": case "playsInline": case "readOnly": case "required": case "reversed": case "scoped": case "seamless": case "itemScope": l && typeof l != "function" && typeof l != "symbol" && n.push( Cn, A(t), Ue ); break; case "capture": case "download": l === !0 ? n.push( Cn, A(t), Ue ) : l !== !1 && typeof l != "function" && typeof l != "symbol" && n.push( Cn, A(t), mn, A(H(l)), Xn ); break; case "cols": case "rows": case "size": case "span": typeof l != "function" && typeof l != "symbol" && !isNaN(l) && 1 <= l && n.push( Cn, A(t), mn, A(H(l)), Xn ); break; case "rowSpan": case "start": typeof l == "function" || typeof l == "symbol" || isNaN(l) || n.push( Cn, A(t), mn, A(H(l)), Xn ); break; case "xlinkActuate": dn(n, "xlink:actuate", l); break; case "xlinkArcrole": dn(n, "xlink:arcrole", l); break; case "xlinkRole": dn(n, "xlink:role", l); break; case "xlinkShow": dn(n, "xlink:show", l); break; case "xlinkTitle": dn(n, "xlink:title", l); break; case "xlinkType": dn(n, "xlink:type", l); break; case "xmlBase": dn(n, "xml:base", l); break; case "xmlLang": dn(n, "xml:lang", l); break; case "xmlSpace": dn(n, "xml:space", l); break; default: if ((!(2 < t.length) || t[0] !== "o" && t[0] !== "O" || t[1] !== "n" && t[1] !== "N") && (t = Kn.get(t) || t, ol(t))) { switch (typeof l) { case "function": case "symbol": return; case "boolean": var u = t.toLowerCase().slice(0, 5); if (u !== "data-" && u !== "aria-") return; } n.push( Cn, A(t), mn, A(H(l)), Xn ); } } } var Sn = R(">"), Lt = R("/>"); function pn(n, t, l) { if (t != null) { if (l != null) throw Error( "Can only set one of `children` or `props.dangerouslySetInnerHTML`." ); if (typeof t != "object" || !("__html" in t)) throw Error( "`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information." ); t = t.__html, t != null && n.push(A("" + t)); } } function gi(n) { var t = ""; return Tn.Children.forEach(n, function(l) { l != null && (t += l); }), t; } var kr = R(' selected=""'), vi = R( `addEventListener("submit",function(a){if(!a.defaultPrevented){var c=a.target,d=a.submitter,e=c.action,b=d;if(d){var f=d.getAttribute("formAction");null!=f&&(e=f,b=null)}"javascript:throw new Error('React form unexpectedly submitted.')"===e&&(a.preventDefault(),b?(a=document.createElement("input"),a.name=b.name,a.value=b.value,b.parentNode.insertBefore(a,b),b=new FormData(c),a.parentNode.removeChild(a)):b=new FormData(c),a=c.ownerDocument||c,(a.$$reactFormReplay=a.$$reactFormReplay||[]).push(c,d,b))}});` ); function wa(n, t) { (n.instructions & 16) === 0 && (n.instructions |= 16, t.bootstrapChunks.unshift( t.startInlineScript, vi, hl )); } var yi = R("<!--F!-->"), bi = R("<!--F-->"); function Rn(n, t) { n.push(on("link")); for (var l in t) if (rn.call(t, l)) { var u = t[l]; if (u != null) switch (l) { case "children": case "dangerouslySetInnerHTML": throw Error( "link is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`." ); default: V(n, l, u); } } return n.push(Lt), null; } var xa = /(<\/|<)(s)(tyle)/gi; function Ca(n, t, l, u) { return "" + t + (l === "s" ? "\\73 " : "\\53 ") + u; } function ie(n, t, l) { n.push(on(l)); for (var u in t) if (rn.call(t, u)) { var f = t[u]; if (f != null) switch (u) { case "children": case "dangerouslySetInnerHTML": throw Error( l + " is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`." ); default: V(n, u, f); } } return n.push(Lt), null; } function Bt(n, t) { n.push(on("title")); var l = null, u = null, f; for (f in t) if (rn.call(t, f)) { var o = t[f]; if (o != null) switch (f) { case "children": l = o; break; case "dangerouslySetInnerHTML": u = o; break; default: V(n, f, o); } } return n.push(Sn), t = Array.isArray(l) ? 2 > l.length ? l[0] : null : l, typeof t != "function" && typeof t != "symbol" && t !== null && t !== void 0 && n.push(A(H("" + t))), pn(n, u, l), n.push(Ge("title")), null; } function st(n, t) { n.push(on("script")); var l = null, u = null, f; for (f in t) if (rn.call(t, f)) { var o = t[f]; if (o != null) switch (f) { case "children": l = o; break; case "dangerouslySetInnerHTML": u = o; break; default: V(n, f, o); } } return n.push(Sn), pn(n, u, l), typeof l == "string" && n.push( A(("" + l).replace(Ar, Or)) ), n.push(Ge("script")), null; } function Ye(n, t, l) { n.push(on(l)); var u = l = null, f; for (f in t) if (rn.call(t, f)) { var o = t[f]; if (o != null) switch (f) { case "children": l = o; break; case "dangerouslySetInnerHTML": u = o; break; default: V(n, f, o); } } return n.push(Sn), pn(n, u, l), typeof l == "string" ? (n.push(A(H(l))), null) : l; } var Nt = R(` `), vl = /^[a-zA-Z][a-zA-Z:_\.\-\d]*$/, yl = /* @__PURE__ */ new Map(); function on(n) { var t = yl.get(n); if (t === void 0) { if (!vl.test(n)) throw Error("Invalid tag: " + n); t = R("<" + n), yl.set(n, t); } return t; } var Ri = R("<!DOCTYPE html>"); function Sa(n, t, l, u, f, o, s, v, g) { switch (t) { case "div": case "span": case "svg": case "path": break; case "a": n.push(on("a")); var T = null, S = null, E; for (E in l) if (rn.call(l, E)) { var C = l[E]; if (C != null) switch (E) { case "children": T = C; break; case "dangerouslySetInnerHTML": S = C; break; case "href": C === "" ? dn(n, "href", "") : V(n, E, C); break; default: V(n, E, C); } } if (n.push(Sn), pn(n, S, T), typeof T == "string") { n.push(A(H(T))); var L = null; } else L = T; return L; case "g": case "p": case "li": break; case "select": n.push(on("select")); var M = null, D = null, nn; for (nn in l) if (rn.call(l, nn)) { var Nn = l[nn]; if (Nn != null) switch (nn) { case "children": M = Nn; break; case "dangerouslySetInnerHTML": D = Nn; break; case "defaultValue": case "value": break; default: V( n, nn, Nn ); } } return n.push(Sn), pn(n, D, M), M; case "option": var zn = s.selectedValue; n.push(on("option")); var q = null, sn = null, Hn = null, An = null, On; for (On in l) if (rn.call(l, On)) { var Vn = l[On]; if (Vn != null) switch (On) { case "children": q = Vn; break; case "selected": Hn = Vn; break; case "dangerouslySetInnerHTML": An = Vn; break; case "value": sn = Vn; default: V( n, On, Vn ); } } if (zn != null) { var an = sn !== null ? "" + sn : gi(q); if (Sr(zn)) { for (var en = 0; en < zn.length; en++) if ("" + zn[en] === an) { n.push(kr); break; } } else "" + zn === an && n.push(kr); } else Hn && n.push(kr); return n.push(Sn), pn(n, An, q), q; case "textarea": n.push(on("textarea")); var En = null, Di = null, tl = null, Hl; for (Hl in l) if (rn.call(l, Hl)) { var Wl = l[Hl]; if (Wl != null) switch (Hl) { case "children": tl = Wl; break; case "value": En = Wl; break; case "defaultValue": Di = Wl; break; case "dangerouslySetInnerHTML": throw Error( "`dangerouslySetInnerHTML` does not make sense on <textarea>." ); default: V( n, Hl, Wl ); } } if (En === null && Di !== null && (En = Di), n.push(Sn), tl != null) { if (En != null) throw Error( "If you supply `defaultValue` on a <textarea>, do not pass children." ); if (Sr(tl)) { if (1 < tl.length) throw Error("<textarea> can only have at most one child."); En = "" + tl[0]; } En = "" + tl; } return typeof En == "string" && En[0] === ` ` && n.push(Nt), En !== null && n.push( A(H("" + En)) ), null; case "input": n.push(on("input")); var pi = null, ji = null, $i = null, nu = null, eu = null, Li = null, Bi = null, Ni = null, zi = null, Ul; for (Ul in l) if (rn.call(l, Ul)) { var Se = l[Ul]; if (Se != null) switch (Ul) { case "children": case "dangerouslySetInnerHTML": throw Error( "input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`." ); case "name": pi = Se; break; case "formAction": ji = Se; break; case "formEncType": $i = Se; break; case "formMethod": nu = Se; break; case "formTarget": eu = Se; break; case "defaultChecked": zi = Se; break; case "defaultValue": Bi = Se; break; case "checked": Ni = Se; break; case "value": Li = Se; break; default: V( n, Ul, Se ); } } var tu = Ta( n, u, f, ji, $i, nu, eu, pi ); return Ni !== null ? ht(n, "checked", Ni) : zi !== null && ht(n, "checked", zi), Li !== null ? V(n, "value", Li) : Bi !== null && V(n, "value", Bi), n.push(Lt), tu != null && tu.forEach(Ir, n), null; case "button": n.push(on("button")); var Yl = null, ru = null, lu = null, au = null, iu = null, uu = null, cu = null, Gl; for (Gl in l) if (rn.call(l, Gl)) { var ut = l[Gl]; if (ut != null) switch (Gl) { case "children": Yl = ut; break; case "dangerouslySetInnerHTML": ru = ut; break; case "name": lu = ut; break; case "formAction": au = ut; break; case "formEncType": iu = ut; break; case "formMethod": uu = ut; break; case "formTarget": cu = ut; break; default: V( n, Gl, ut ); } } var fu = Ta( n, u, f, au, iu, uu, cu, lu ); if (n.push(Sn), fu != null && fu.forEach(Ir, n), pn(n, ru, Yl), typeof Yl == "string") { n.push( A(H(Yl)) ); var ou = null; } else ou = Yl; return ou; case "form": n.push(on("form")); var Xl = null, hu = null, vr = null, Zl = null, Jl = null, Ql = null, Vl; for (Vl in l) if (rn.call(l, Vl)) { var Ot = l[Vl]; if (Ot != null) switch (Vl) { case "children": Xl = Ot; break; case "dangerouslySetInnerHTML": hu = Ot; break; case "action": vr = Ot; break; case "encType": Zl = Ot; break; case "method": Jl = Ot; break; case "target": Ql = Ot; break; default: V( n, Vl, Ot ); } } var Hi = null, Wi = null; if (typeof vr == "function") { var yr = de( u, vr ); yr !== null ? (vr = yr.action || "", Zl = yr.encType, Jl = yr.method, Ql = yr.target, Hi = yr.data, Wi = yr.name) : (n.push( Cn, A("action"), mn, Ra, Xn ), Ql = Jl = Zl = vr = null, wa(u, f)); } if (vr != null && V(n, "action", vr), Zl != null && V(n, "encType", Zl), Jl != null && V(n, "method", Jl), Ql != null && V(n, "target", Ql), n.push(Sn), Wi !== null && (n.push(Ea), dn(n, "name", Wi), n.push(Lt), Hi != null && Hi.forEach(Ir, n)), pn(n, hu, Xl), typeof Xl == "string") { n.push( A(H(Xl)) ); var su = null; } else su = Xl; return su; case "menuitem": n.push(on("menuitem")); for (var qa in l) if (rn.call(l, qa)) { var du = l[qa]; if (du != null) switch (qa) { case "children": case "dangerouslySetInnerHTML": throw Error( "menuitems cannot have `children` nor `dangerouslySetInnerHTML`." ); default: V( n, qa, du ); } } return n.push(Sn), null; case "object": n.push(on("object")); var Kl = null, gu = null, ml; for (ml in l) if (rn.call(l, ml)) { var ql = l[ml]; if (ql != null) switch (ml) { case "children": Kl = ql; break; case "dangerouslySetInnerHTML": gu = ql; break; case "data": var vu = ft("" + ql); if (vu === "") break; n.push( Cn, A("data"), mn, A(H(vu)), Xn ); break; default: V( n, ml, ql ); } } if (n.push(Sn), pn(n, gu, Kl), typeof Kl == "string") { n.push( A(H(Kl)) ); var yu = null; } else yu = Kl; return yu; case "title": if (s.insertionMode === 3 || s.tagScope & 1 || l.itemProp != null) var Ui = Bt( n, l ); else g ? Ui = null : (Bt(f.hoistableChunks, l), Ui = void 0); return Ui; case "link": var Wu = l.rel, _t = l.href, pa = l.precedence; if (s.insertionMode === 3 || s.tagScope & 1 || l.itemProp != null || typeof Wu != "string" || typeof _t != "string" || _t === "") { Rn(n, l); var pl = null; } else if (l.rel === "stylesheet") if (typeof pa != "string" || l.disabled != null || l.onLoad || l.onError) pl = Rn( n, l ); else { var rl = f.styles.get(pa), ja = u.styleResources.hasOwnProperty(_t) ? u.styleResources[_t] : void 0; if (ja !== null) { u.styleResources[_t] = null, rl || (rl = { precedence: A(H(pa)), rules: [], hrefs: [], sheets: /* @__PURE__ */ new Map() }, f.styles.set(pa, rl)); var $a = { state: 0, props: Dn({}, l, { "data-precedence": l.precedence, precedence: null }) }; if (ja) { ja.length === 2 && Ve($a.props, ja); var Yi = f.preloads.stylesheets.get(_t); Yi && 0 < Yi.length ? Yi.length = 0 : $a.state = 1; } rl.sheets.set(_t, $a), o && o.stylesheets.add($a); } else if (rl) { var bu = rl.sheets.get(_t); bu && o && o.stylesheets.add(bu); } v && n.push(se), pl = null; } else l.onLoad || l.onError ? pl = Rn( n, l ) : (v && n.push(se), pl = g ? null : Rn(f.hoistableChunks, l)); return pl; case "script": var Gi = l.async; if (typeof l.src != "string" || !l.src || !Gi || typeof Gi == "function" || typeof Gi == "symbol" || l.onLoad || l.onError || s.insertionMode === 3 || s.tagScope & 1 || l.itemProp != null) var Ru = st( n, l ); else { var ni = l.src; if (l.type === "module") var ei = u.moduleScriptResources, Eu = f.preloads.moduleScripts; else ei = u.scriptResources, Eu = f.preloads.scripts; var ti = ei.hasOwnProperty(ni) ? ei[ni] : void 0; if (ti !== null) { ei[ni] = null; var Xi = l; if (ti) { ti.length === 2 && (Xi = Dn({}, l), Ve(Xi, ti)); var Tu = Eu.get(ni); Tu && (Tu.length = 0); } var wu = []; f.scripts.add(wu), st(wu, Xi); } v && n.push(se), Ru = null; } return Ru; case "style": var ri = l.precedence, br = l.href; if (s.insertionMode === 3 || s.tagScope & 1 || l.itemProp != null || typeof ri != "string" || typeof br != "string" || br === "") { n.push(on("style")); var ll = null, xu = null, jl; for (jl in l) if (rn.call(l, jl)) { var li = l[jl]; if (li != null) switch (jl) { case "children": ll = li; break; case "dangerouslySetInnerHTML": xu = li; break; default: V( n, jl, li ); } } n.push(Sn); var $l = Array.isArray(ll) ? 2 > ll.length ? ll[0] : null : ll; typeof $l != "function" && typeof $l != "symbol" && $l !== null && $l !== void 0 && n.push( A(("" + $l).replace(xa, Ca)) ), pn(n, xu, ll), n.push(Ge("style")); var Cu = null; } else { var Rr = f.styles.get(ri); if ((u.styleResources.hasOwnProperty(br) ? u.styleResources[br] : void 0) !== null) { u.styleResources[br] = null, Rr ? Rr.hrefs.push( A(H(br)) ) : (Rr = { precedence: A( H(ri) ), rules: [], hrefs: [A(H(br))], sheets: /* @__PURE__ */ new Map() }, f.styles.set(ri, Rr)); var Su = Rr.rules, al = null, Pu = null, ai; for (ai in l) if (rn.call(l, ai)) { var Zi = l[ai]; if (Zi != null) switch (ai) { case "children": al = Zi; break; case "dangerouslySetInnerHTML": Pu = Zi; } } var na = Array.isArray(al) ? 2 > al.length ? al[0] : null : al; typeof na != "function" && typeof na != "symbol" && na !== null && na !== void 0 && Su.push( A( ("" + na).replace(xa, Ca) ) ), pn(Su, Pu, al); } Rr && o && o.styles.add(Rr), v && n.push(se), Cu = void 0; } return Cu; case "meta": if (s.insertionMode === 3 || s.tagScope & 1 || l.itemProp != null) var Fu = ie( n, l, "meta" ); else v && n.push(se), Fu = g ? null : typeof l.charSet == "string" ? ie(f.charsetChunks, l, "meta") : l.name === "viewport" ? ie(f.viewportChunks, l, "meta") : ie(f.hoistableChunks, l, "meta"); return Fu; case "listing": case "pre": n.push(on(t)); var ea = null, ta = null, ra; for (ra in l) if (rn.call(l, ra)) { var ii = l[ra]; if (ii != null) switch (ra) { case "children": ea = ii; break; case "dangerouslySetInnerHTML": ta = ii; break; default: V(