From 485465e823b8c4e249b6067276631d98ff4e62fe Mon Sep 17 00:00:00 2001 From: Adrian Hesketh Date: Fri, 7 Jun 2024 11:30:03 -0600 Subject: [PATCH] docs: update React docs to use data attributes instead of script templates --- .version | 2 +- .../17-using-react-with-templ.md | 83 ++++++++++--------- examples/integration-react/README.md | 10 +++ examples/integration-react/components.templ | 21 ++--- .../integration-react/components_templ.go | 31 ++----- .../integration-react/react/components.tsx | 2 + examples/integration-react/react/index.ts | 11 +-- examples/integration-react/static/index.js | 10 +-- 8 files changed, 81 insertions(+), 89 deletions(-) diff --git a/.version b/.version index ae05c28ba..4cce89fde 100644 --- a/.version +++ b/.version @@ -1 +1 @@ -0.2.717 \ No newline at end of file +0.2.719 \ No newline at end of file diff --git a/docs/docs/03-syntax-and-usage/17-using-react-with-templ.md b/docs/docs/03-syntax-and-usage/17-using-react-with-templ.md index 4ef3e7a0a..6b1d1a508 100644 --- a/docs/docs/03-syntax-and-usage/17-using-react-with-templ.md +++ b/docs/docs/03-syntax-and-usage/17-using-react-with-templ.md @@ -162,13 +162,9 @@ import { Header, Body, Hello } from './components'; // Previous script contents... -export function renderHello(id: string, name: string) { - const rootElement = document.getElementById(id); - if (!rootElement) { - throw new Error(`Could not find element with id ${id}`); - } - const reactRoot = createRoot(rootElement); - reactRoot.render(Hello(name)); +export function renderHello(e: HTMLElement) { + const name = e.getAttribute('data-name') ?? ""; + createRoot(e).render(Hello(name)); } ``` @@ -178,11 +174,11 @@ Now that we have a `renderHello` function that will render the React component t In templ, we can add a `Hello` component that does two things: -1. Renders an element for the React component to be loaded into. -2. Renders the `renderHelloReact` script template, passing the server-side `id` and `name` fields to the script. +1. Renders an element for the React component to be loaded into that sets the `data-name` attribute to the value of the server-side `name` field. +2. Writes out JS that calls the `renderHello` function to mount the React component into the element. :::note -The template renders three copies of the `Hello` React component, passing in a distinct `id` and `name` parameter ("Alice", "Bob" and "Charlie"). +The template renders three copies of the `Hello` React component, passing in a distinct `name` parameter ("Alice", "Bob" and "Charlie"). ::: ```templ title="components.templ" @@ -190,14 +186,12 @@ package main import "fmt" -script renderHelloReact(id, name string) { - // Use the renderHello function from the React bundle. - bundle.renderHello(id, name) -} - -templ Hello(id, name string) { -
- @renderHelloReact(id, name) +templ Hello(name string) { +
+ +
} templ page() { @@ -216,8 +210,8 @@ templ page() { - for i, name := range []string{"Alice", "Bob", "Charlie"} { - @Hello(fmt.Sprintf("react-hello-%d", i), name) + for _, name := range []string{"Alice", "Bob", "Charlie"} { + @Hello(name) } @@ -226,8 +220,6 @@ templ page() { ### Update the `esbuild` command -The script template (`renderHellloReact`) content references the `bundle.renderHello` JavaScript function from the React bundle. - The `bundle` namespace in JavaScript is created by adding a `--global-name` argument to `esbuild`. The argument causes any exported functions in `index.ts` to be added to that namespace. ```bash @@ -240,24 +232,35 @@ The HTML that's rendered is: ```html - - React integration - - -
-
-
This is server-side content from templ.
- -
- -
- -
- - + + React integration + + +
+
+
This is server-side content from templ.
+ + + +
+ +
+
+ +
+
+ +
+ ``` diff --git a/examples/integration-react/README.md b/examples/integration-react/README.md index b984b249f..92e05eb62 100644 --- a/examples/integration-react/README.md +++ b/examples/integration-react/README.md @@ -19,3 +19,13 @@ esbuild --bundle index.ts --outdir=../static --minify --global-name=bundle ``` go run . ``` + +### all + +Requires: build-templ +Requires: build-js +Requires: run + +``` +echo "Running" +``` diff --git a/examples/integration-react/components.templ b/examples/integration-react/components.templ index c825bbaa1..0b1b6e0e7 100644 --- a/examples/integration-react/components.templ +++ b/examples/integration-react/components.templ @@ -1,15 +1,12 @@ package main -import "fmt" - -script renderHelloReact(id, name string) { - // Use the renderHello function from the React bundle. - bundle.renderHello(id, name) -} - -templ Hello(id, name string) { -
- @renderHelloReact(id, name) +templ Hello(name string) { +
+ +
} templ page() { @@ -28,8 +25,8 @@ templ page() { - for i, name := range []string{"Alice", "Bob", "Charlie"} { - @Hello(fmt.Sprintf("react-hello-%d", i), name) + for _, name := range []string{"Alice", "Bob", "Charlie"} { + @Hello(name) } diff --git a/examples/integration-react/components_templ.go b/examples/integration-react/components_templ.go index 446d069db..a42153d01 100644 --- a/examples/integration-react/components_templ.go +++ b/examples/integration-react/components_templ.go @@ -9,20 +9,7 @@ import "context" import "io" import "bytes" -import "fmt" - -func renderHelloReact(id, name string) templ.ComponentScript { - return templ.ComponentScript{ - Name: `__templ_renderHelloReact_7494`, - Function: `function __templ_renderHelloReact_7494(id, name){// Use the renderHello function from the React bundle. - bundle.renderHello(id, name) -}`, - Call: templ.SafeScript(`__templ_renderHelloReact_7494`, id, name), - CallInline: templ.SafeScriptInline(`__templ_renderHelloReact_7494`, id, name), - } -} - -func Hello(id, name string) templ.Component { +func Hello(name string) templ.Component { return templ.ComponentFunc(func(ctx context.Context, templ_7745c5c3_W io.Writer) (templ_7745c5c3_Err error) { templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templ_7745c5c3_W.(*bytes.Buffer) if !templ_7745c5c3_IsBuffer { @@ -35,24 +22,20 @@ func Hello(id, name string) templ.Component { templ_7745c5c3_Var1 = templ.NopComponent } ctx = templ.ClearChildren(ctx) - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("
") - if templ_7745c5c3_Err != nil { - return templ_7745c5c3_Err - } - templ_7745c5c3_Err = renderHelloReact(id, name).Render(ctx, templ_7745c5c3_Buffer) + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("\">") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } @@ -80,8 +63,8 @@ func page() templ.Component { if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } - for i, name := range []string{"Alice", "Bob", "Charlie"} { - templ_7745c5c3_Err = Hello(fmt.Sprintf("react-hello-%d", i), name).Render(ctx, templ_7745c5c3_Buffer) + for _, name := range []string{"Alice", "Bob", "Charlie"} { + templ_7745c5c3_Err = Hello(name).Render(ctx, templ_7745c5c3_Buffer) if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } diff --git a/examples/integration-react/react/components.tsx b/examples/integration-react/react/components.tsx index 5df961b9c..327562bf2 100644 --- a/examples/integration-react/react/components.tsx +++ b/examples/integration-react/react/components.tsx @@ -1,3 +1,5 @@ +import React from "react"; + export const Header = () => (

React component Header

); export const Body = () => (
This is client-side content from React
); diff --git a/examples/integration-react/react/index.ts b/examples/integration-react/react/index.ts index d1d6c5044..20f86a50c 100644 --- a/examples/integration-react/react/index.ts +++ b/examples/integration-react/react/index.ts @@ -17,11 +17,8 @@ if (!contentRoot) { const contentReactRoot = createRoot(contentRoot); contentReactRoot.render(Body()); -export function renderHello(id: string, name: string) { - const rootElement = document.getElementById(id); - if (!rootElement) { - throw new Error(`Could not find element with id ${id}`); - } - const reactRoot = createRoot(rootElement); - reactRoot.render(Hello(name)); +// Provide a helper for rendering hello. +export function renderHello(e: HTMLElement) { + const name = e.getAttribute('data-name') ?? ""; + createRoot(e).render(Hello(name)); } diff --git a/examples/integration-react/static/index.js b/examples/integration-react/static/index.js index 1d140dd79..014658a13 100644 --- a/examples/integration-react/static/index.js +++ b/examples/integration-react/static/index.js @@ -1,11 +1,11 @@ -var bundle=(()=>{var Ac=Object.create;var nr=Object.defineProperty;var Bc=Object.getOwnPropertyDescriptor;var Hc=Object.getOwnPropertyNames;var $c=Object.getPrototypeOf,Wc=Object.prototype.hasOwnProperty;var je=(e,n)=>()=>(n||e((n={exports:{}}).exports,n),n.exports),Qc=(e,n)=>{for(var t in n)nr(e,t,{get:n[t],enumerable:!0})},Gu=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let l of Hc(n))!Wc.call(e,l)&&l!==t&&nr(e,l,{get:()=>n[l],enumerable:!(r=Bc(n,l))||r.enumerable});return e};var Nl=(e,n,t)=>(t=e!=null?Ac($c(e)):{},Gu(n||!e||!e.__esModule?nr(t,"default",{value:e,enumerable:!0}):t,e)),Kc=e=>Gu(nr({},"__esModule",{value:!0}),e);var ui=je(N=>{"use strict";var st=Symbol.for("react.element"),Yc=Symbol.for("react.portal"),Xc=Symbol.for("react.fragment"),Gc=Symbol.for("react.strict_mode"),Zc=Symbol.for("react.profiler"),Jc=Symbol.for("react.provider"),qc=Symbol.for("react.context"),bc=Symbol.for("react.forward_ref"),ef=Symbol.for("react.suspense"),nf=Symbol.for("react.memo"),tf=Symbol.for("react.lazy"),Zu=Symbol.iterator;function rf(e){return e===null||typeof e!="object"?null:(e=Zu&&e[Zu]||e["@@iterator"],typeof e=="function"?e:null)}var bu={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ei=Object.assign,ni={};function On(e,n,t){this.props=e,this.context=n,this.refs=ni,this.updater=t||bu}On.prototype.isReactComponent={};On.prototype.setState=function(e,n){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,n,"setState")};On.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function ti(){}ti.prototype=On.prototype;function zl(e,n,t){this.props=e,this.context=n,this.refs=ni,this.updater=t||bu}var Tl=zl.prototype=new ti;Tl.constructor=zl;ei(Tl,On.prototype);Tl.isPureReactComponent=!0;var Ju=Array.isArray,ri=Object.prototype.hasOwnProperty,Ll={current:null},li={key:!0,ref:!0,__self:!0,__source:!0};function oi(e,n,t){var r,l={},o=null,u=null;if(n!=null)for(r in n.ref!==void 0&&(u=n.ref),n.key!==void 0&&(o=""+n.key),n)ri.call(n,r)&&!li.hasOwnProperty(r)&&(l[r]=n[r]);var i=arguments.length-2;if(i===1)l.children=t;else if(1{"use strict";ii.exports=ui()});var yi=je(L=>{"use strict";function Fl(e,n){var t=e.length;e.push(n);e:for(;0>>1,l=e[r];if(0>>1;ror(i,t))sor(f,i)?(e[r]=f,e[s]=t,r=s):(e[r]=i,e[u]=t,r=u);else if(sor(f,t))e[r]=f,e[s]=t,r=s;else break e}}return n}function or(e,n){var t=e.sortIndex-n.sortIndex;return t!==0?t:e.id-n.id}typeof performance=="object"&&typeof performance.now=="function"?(si=performance,L.unstable_now=function(){return si.now()}):(Dl=Date,ai=Dl.now(),L.unstable_now=function(){return Dl.now()-ai});var si,Dl,ai,Re=[],Ge=[],af=1,he=null,Z=3,sr=!1,yn=!1,ct=!1,di=typeof setTimeout=="function"?setTimeout:null,pi=typeof clearTimeout=="function"?clearTimeout:null,ci=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function jl(e){for(var n=_e(Ge);n!==null;){if(n.callback===null)ir(Ge);else if(n.startTime<=e)ir(Ge),n.sortIndex=n.expirationTime,Fl(Re,n);else break;n=_e(Ge)}}function Ul(e){if(ct=!1,jl(e),!yn)if(_e(Re)!==null)yn=!0,Al(Vl);else{var n=_e(Ge);n!==null&&Bl(Ul,n.startTime-e)}}function Vl(e,n){yn=!1,ct&&(ct=!1,pi(ft),ft=-1),sr=!0;var t=Z;try{for(jl(n),he=_e(Re);he!==null&&(!(he.expirationTime>n)||e&&!hi());){var r=he.callback;if(typeof r=="function"){he.callback=null,Z=he.priorityLevel;var l=r(he.expirationTime<=n);n=L.unstable_now(),typeof l=="function"?he.callback=l:he===_e(Re)&&ir(Re),jl(n)}else ir(Re);he=_e(Re)}if(he!==null)var o=!0;else{var u=_e(Ge);u!==null&&Bl(Ul,u.startTime-n),o=!1}return o}finally{he=null,Z=t,sr=!1}}var ar=!1,ur=null,ft=-1,mi=5,vi=-1;function hi(){return!(L.unstable_now()-vie||125r?(e.sortIndex=t,Fl(Ge,e),_e(Re)===null&&e===_e(Ge)&&(ct?(pi(ft),ft=-1):ct=!0,Bl(Ul,t-r))):(e.sortIndex=l,Fl(Re,e),yn||sr||(yn=!0,Al(Vl))),e};L.unstable_shouldYield=hi;L.unstable_wrapCallback=function(e){var n=Z;return function(){var t=Z;Z=n;try{return e.apply(this,arguments)}finally{Z=t}}}});var wi=je((Cp,gi)=>{"use strict";gi.exports=yi()});var xc=je(ve=>{"use strict";var Ns=Ol(),pe=wi();function h(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,t=1;t"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),co=Object.prototype.hasOwnProperty,cf=/^[: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]*$/,Si={},ki={};function ff(e){return co.call(ki,e)?!0:co.call(Si,e)?!1:cf.test(e)?ki[e]=!0:(Si[e]=!0,!1)}function df(e,n,t,r){if(t!==null&&t.type===0)return!1;switch(typeof n){case"function":case"symbol":return!0;case"boolean":return r?!1:t!==null?!t.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function pf(e,n,t,r){if(n===null||typeof n>"u"||df(e,n,t,r))return!0;if(r)return!1;if(t!==null)switch(t.type){case 3:return!n;case 4:return n===!1;case 5:return isNaN(n);case 6:return isNaN(n)||1>n}return!1}function le(e,n,t,r,l,o,u){this.acceptsBooleans=n===2||n===3||n===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=t,this.propertyName=e,this.type=n,this.sanitizeURL=o,this.removeEmptyString=u}var G={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){G[e]=new le(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var n=e[0];G[n]=new le(n,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){G[e]=new le(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){G[e]=new le(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){G[e]=new le(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){G[e]=new le(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){G[e]=new le(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){G[e]=new le(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){G[e]=new le(e,5,!1,e.toLowerCase(),null,!1,!1)});var ru=/[\-:]([a-z])/g;function lu(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var n=e.replace(ru,lu);G[n]=new le(n,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var n=e.replace(ru,lu);G[n]=new le(n,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var n=e.replace(ru,lu);G[n]=new le(n,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){G[e]=new le(e,1,!1,e.toLowerCase(),null,!1,!1)});G.xlinkHref=new le("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){G[e]=new le(e,1,!1,e.toLowerCase(),null,!0,!0)});function ou(e,n,t,r){var l=G.hasOwnProperty(n)?G[n]:null;(l!==null?l.type!==0:r||!(2{var Ac=Object.create;var nr=Object.defineProperty;var Hc=Object.getOwnPropertyDescriptor;var Bc=Object.getOwnPropertyNames;var Wc=Object.getPrototypeOf,$c=Object.prototype.hasOwnProperty;var je=(e,n)=>()=>(n||e((n={exports:{}}).exports,n),n.exports),Qc=(e,n)=>{for(var t in n)nr(e,t,{get:n[t],enumerable:!0})},Gu=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let l of Bc(n))!$c.call(e,l)&&l!==t&&nr(e,l,{get:()=>n[l],enumerable:!(r=Hc(n,l))||r.enumerable});return e};var Nl=(e,n,t)=>(t=e!=null?Ac(Wc(e)):{},Gu(n||!e||!e.__esModule?nr(t,"default",{value:e,enumerable:!0}):t,e)),Kc=e=>Gu(nr({},"__esModule",{value:!0}),e);var ui=je(N=>{"use strict";var st=Symbol.for("react.element"),Yc=Symbol.for("react.portal"),Xc=Symbol.for("react.fragment"),Gc=Symbol.for("react.strict_mode"),Zc=Symbol.for("react.profiler"),Jc=Symbol.for("react.provider"),qc=Symbol.for("react.context"),bc=Symbol.for("react.forward_ref"),ef=Symbol.for("react.suspense"),nf=Symbol.for("react.memo"),tf=Symbol.for("react.lazy"),Zu=Symbol.iterator;function rf(e){return e===null||typeof e!="object"?null:(e=Zu&&e[Zu]||e["@@iterator"],typeof e=="function"?e:null)}var bu={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ei=Object.assign,ni={};function On(e,n,t){this.props=e,this.context=n,this.refs=ni,this.updater=t||bu}On.prototype.isReactComponent={};On.prototype.setState=function(e,n){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,n,"setState")};On.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function ti(){}ti.prototype=On.prototype;function zl(e,n,t){this.props=e,this.context=n,this.refs=ni,this.updater=t||bu}var Tl=zl.prototype=new ti;Tl.constructor=zl;ei(Tl,On.prototype);Tl.isPureReactComponent=!0;var Ju=Array.isArray,ri=Object.prototype.hasOwnProperty,Ll={current:null},li={key:!0,ref:!0,__self:!0,__source:!0};function oi(e,n,t){var r,l={},o=null,u=null;if(n!=null)for(r in n.ref!==void 0&&(u=n.ref),n.key!==void 0&&(o=""+n.key),n)ri.call(n,r)&&!li.hasOwnProperty(r)&&(l[r]=n[r]);var i=arguments.length-2;if(i===1)l.children=t;else if(1{"use strict";ii.exports=ui()});var yi=je(L=>{"use strict";function Fl(e,n){var t=e.length;e.push(n);e:for(;0>>1,l=e[r];if(0>>1;ror(i,t))sor(f,i)?(e[r]=f,e[s]=t,r=s):(e[r]=i,e[u]=t,r=u);else if(sor(f,t))e[r]=f,e[s]=t,r=s;else break e}}return n}function or(e,n){var t=e.sortIndex-n.sortIndex;return t!==0?t:e.id-n.id}typeof performance=="object"&&typeof performance.now=="function"?(si=performance,L.unstable_now=function(){return si.now()}):(Dl=Date,ai=Dl.now(),L.unstable_now=function(){return Dl.now()-ai});var si,Dl,ai,Re=[],Ge=[],af=1,he=null,Z=3,sr=!1,yn=!1,ct=!1,di=typeof setTimeout=="function"?setTimeout:null,pi=typeof clearTimeout=="function"?clearTimeout:null,ci=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function jl(e){for(var n=_e(Ge);n!==null;){if(n.callback===null)ir(Ge);else if(n.startTime<=e)ir(Ge),n.sortIndex=n.expirationTime,Fl(Re,n);else break;n=_e(Ge)}}function Ul(e){if(ct=!1,jl(e),!yn)if(_e(Re)!==null)yn=!0,Al(Vl);else{var n=_e(Ge);n!==null&&Hl(Ul,n.startTime-e)}}function Vl(e,n){yn=!1,ct&&(ct=!1,pi(ft),ft=-1),sr=!0;var t=Z;try{for(jl(n),he=_e(Re);he!==null&&(!(he.expirationTime>n)||e&&!hi());){var r=he.callback;if(typeof r=="function"){he.callback=null,Z=he.priorityLevel;var l=r(he.expirationTime<=n);n=L.unstable_now(),typeof l=="function"?he.callback=l:he===_e(Re)&&ir(Re),jl(n)}else ir(Re);he=_e(Re)}if(he!==null)var o=!0;else{var u=_e(Ge);u!==null&&Hl(Ul,u.startTime-n),o=!1}return o}finally{he=null,Z=t,sr=!1}}var ar=!1,ur=null,ft=-1,mi=5,vi=-1;function hi(){return!(L.unstable_now()-vie||125r?(e.sortIndex=t,Fl(Ge,e),_e(Re)===null&&e===_e(Ge)&&(ct?(pi(ft),ft=-1):ct=!0,Hl(Ul,t-r))):(e.sortIndex=l,Fl(Re,e),yn||sr||(yn=!0,Al(Vl))),e};L.unstable_shouldYield=hi;L.unstable_wrapCallback=function(e){var n=Z;return function(){var t=Z;Z=n;try{return e.apply(this,arguments)}finally{Z=t}}}});var wi=je((Cp,gi)=>{"use strict";gi.exports=yi()});var xc=je(ve=>{"use strict";var Ns=Ol(),pe=wi();function h(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,t=1;t"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),co=Object.prototype.hasOwnProperty,cf=/^[: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]*$/,Si={},ki={};function ff(e){return co.call(ki,e)?!0:co.call(Si,e)?!1:cf.test(e)?ki[e]=!0:(Si[e]=!0,!1)}function df(e,n,t,r){if(t!==null&&t.type===0)return!1;switch(typeof n){case"function":case"symbol":return!0;case"boolean":return r?!1:t!==null?!t.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function pf(e,n,t,r){if(n===null||typeof n>"u"||df(e,n,t,r))return!0;if(r)return!1;if(t!==null)switch(t.type){case 3:return!n;case 4:return n===!1;case 5:return isNaN(n);case 6:return isNaN(n)||1>n}return!1}function le(e,n,t,r,l,o,u){this.acceptsBooleans=n===2||n===3||n===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=t,this.propertyName=e,this.type=n,this.sanitizeURL=o,this.removeEmptyString=u}var G={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){G[e]=new le(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var n=e[0];G[n]=new le(n,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){G[e]=new le(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){G[e]=new le(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){G[e]=new le(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){G[e]=new le(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){G[e]=new le(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){G[e]=new le(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){G[e]=new le(e,5,!1,e.toLowerCase(),null,!1,!1)});var ru=/[\-:]([a-z])/g;function lu(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var n=e.replace(ru,lu);G[n]=new le(n,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var n=e.replace(ru,lu);G[n]=new le(n,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var n=e.replace(ru,lu);G[n]=new le(n,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){G[e]=new le(e,1,!1,e.toLowerCase(),null,!1,!1)});G.xlinkHref=new le("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){G[e]=new le(e,1,!1,e.toLowerCase(),null,!0,!0)});function ou(e,n,t,r){var l=G.hasOwnProperty(n)?G[n]:null;(l!==null?l.type!==0:r||!(2i||l[u]!==o[i]){var s=` -`+l[u].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=u&&0<=i);break}}}finally{$l=!1,Error.prepareStackTrace=t}return(e=e?e.displayName||e.name:"")?St(e):""}function mf(e){switch(e.tag){case 5:return St(e.type);case 16:return St("Lazy");case 13:return St("Suspense");case 19:return St("SuspenseList");case 0:case 2:case 15:return e=Wl(e.type,!1),e;case 11:return e=Wl(e.type.render,!1),e;case 1:return e=Wl(e.type,!0),e;default:return""}}function vo(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Fn:return"Fragment";case In:return"Portal";case fo:return"Profiler";case uu:return"StrictMode";case po:return"Suspense";case mo:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ts:return(e.displayName||"Context")+".Consumer";case zs:return(e._context.displayName||"Context")+".Provider";case iu:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case su:return n=e.displayName||null,n!==null?n:vo(e.type)||"Memo";case Je:n=e._payload,e=e._init;try{return vo(e(n))}catch{}}return null}function vf(e){var n=e.type;switch(e.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=n.render,e=e.displayName||e.name||"",n.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return vo(n);case 8:return n===uu?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n}return null}function dn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Rs(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function hf(e){var n=Rs(e)?"checked":"value",t=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),r=""+e[n];if(!e.hasOwnProperty(n)&&typeof t<"u"&&typeof t.get=="function"&&typeof t.set=="function"){var l=t.get,o=t.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return l.call(this)},set:function(u){r=""+u,o.call(this,u)}}),Object.defineProperty(e,n,{enumerable:t.enumerable}),{getValue:function(){return r},setValue:function(u){r=""+u},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function fr(e){e._valueTracker||(e._valueTracker=hf(e))}function Os(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var t=n.getValue(),r="";return e&&(r=Rs(e)?e.checked?"true":"false":e.value),e=r,e!==t?(n.setValue(e),!0):!1}function Vr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function ho(e,n){var t=n.checked;return j({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:t??e._wrapperState.initialChecked})}function _i(e,n){var t=n.defaultValue==null?"":n.defaultValue,r=n.checked!=null?n.checked:n.defaultChecked;t=dn(n.value!=null?n.value:t),e._wrapperState={initialChecked:r,initialValue:t,controlled:n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null}}function Ds(e,n){n=n.checked,n!=null&&ou(e,"checked",n,!1)}function yo(e,n){Ds(e,n);var t=dn(n.value),r=n.type;if(t!=null)r==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+t):e.value!==""+t&&(e.value=""+t);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}n.hasOwnProperty("value")?go(e,n.type,t):n.hasOwnProperty("defaultValue")&&go(e,n.type,dn(n.defaultValue)),n.checked==null&&n.defaultChecked!=null&&(e.defaultChecked=!!n.defaultChecked)}function Ci(e,n,t){if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var r=n.type;if(!(r!=="submit"&&r!=="reset"||n.value!==void 0&&n.value!==null))return;n=""+e._wrapperState.initialValue,t||n===e.value||(e.value=n),e.defaultValue=n}t=e.name,t!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,t!==""&&(e.name=t)}function go(e,n,t){(n!=="number"||Vr(e.ownerDocument)!==e)&&(t==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+t&&(e.defaultValue=""+t))}var kt=Array.isArray;function Yn(e,n,t,r){if(e=e.options,n){n={};for(var l=0;l"+n.valueOf().toString()+"",n=dr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}});function Mt(e,n){if(n){var t=e.firstChild;if(t&&t===e.lastChild&&t.nodeType===3){t.nodeValue=n;return}}e.textContent=n}var Ct={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},yf=["Webkit","ms","Moz","O"];Object.keys(Ct).forEach(function(e){yf.forEach(function(n){n=n+e.charAt(0).toUpperCase()+e.substring(1),Ct[n]=Ct[e]})});function js(e,n,t){return n==null||typeof n=="boolean"||n===""?"":t||typeof n!="number"||n===0||Ct.hasOwnProperty(e)&&Ct[e]?(""+n).trim():n+"px"}function Us(e,n){e=e.style;for(var t in n)if(n.hasOwnProperty(t)){var r=t.indexOf("--")===0,l=js(t,n[t],r);t==="float"&&(t="cssFloat"),r?e.setProperty(t,l):e[t]=l}}var gf=j({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ko(e,n){if(n){if(gf[e]&&(n.children!=null||n.dangerouslySetInnerHTML!=null))throw Error(h(137,e));if(n.dangerouslySetInnerHTML!=null){if(n.children!=null)throw Error(h(60));if(typeof n.dangerouslySetInnerHTML!="object"||!("__html"in n.dangerouslySetInnerHTML))throw Error(h(61))}if(n.style!=null&&typeof n.style!="object")throw Error(h(62))}}function Eo(e,n){if(e.indexOf("-")===-1)return typeof n.is=="string";switch(e){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!1;default:return!0}}var _o=null;function au(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Co=null,Xn=null,Gn=null;function Pi(e){if(e=qt(e)){if(typeof Co!="function")throw Error(h(280));var n=e.stateNode;n&&(n=pl(n),Co(e.stateNode,e.type,n))}}function Vs(e){Xn?Gn?Gn.push(e):Gn=[e]:Xn=e}function As(){if(Xn){var e=Xn,n=Gn;if(Gn=Xn=null,Pi(e),n)for(e=0;e>>=0,e===0?32:31-(Tf(e)/Lf|0)|0}var pr=64,mr=4194304;function Et(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function $r(e,n){var t=e.pendingLanes;if(t===0)return 0;var r=0,l=e.suspendedLanes,o=e.pingedLanes,u=t&268435455;if(u!==0){var i=u&~l;i!==0?r=Et(i):(o&=u,o!==0&&(r=Et(o)))}else u=t&~l,u!==0?r=Et(u):o!==0&&(r=Et(o));if(r===0)return 0;if(n!==0&&n!==r&&!(n&l)&&(l=r&-r,o=n&-n,l>=o||l===16&&(o&4194240)!==0))return n;if(r&4&&(r|=t&16),n=e.entangledLanes,n!==0)for(e=e.entanglements,n&=r;0t;t++)n.push(e);return n}function Zt(e,n,t){e.pendingLanes|=n,n!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,n=31-ze(n),e[n]=t}function Mf(e,n){var t=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=n,e.mutableReadLanes&=n,e.entangledLanes&=n,n=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Nt),Fi=" ",ji=!1;function ua(e,n){switch(e){case"keyup":return sd.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ia(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var jn=!1;function cd(e,n){switch(e){case"compositionend":return ia(n);case"keypress":return n.which!==32?null:(ji=!0,Fi);case"textInput":return e=n.data,e===Fi&&ji?null:e;default:return null}}function fd(e,n){if(jn)return e==="compositionend"||!yu&&ua(e,n)?(e=la(),Lr=mu=nn=null,jn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1=n)return{node:t,offset:n-e};e=r}e:{for(;t;){if(t.nextSibling){t=t.nextSibling;break e}t=t.parentNode}t=void 0}t=Ai(t)}}function fa(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?fa(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function da(){for(var e=window,n=Vr();n instanceof e.HTMLIFrameElement;){try{var t=typeof n.contentWindow.location.href=="string"}catch{t=!1}if(t)e=n.contentWindow;else break;n=Vr(e.document)}return n}function gu(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}function Sd(e){var n=da(),t=e.focusedElem,r=e.selectionRange;if(n!==t&&t&&t.ownerDocument&&fa(t.ownerDocument.documentElement,t)){if(r!==null&&gu(t)){if(n=r.start,e=r.end,e===void 0&&(e=n),"selectionStart"in t)t.selectionStart=n,t.selectionEnd=Math.min(e,t.value.length);else if(e=(n=t.ownerDocument||document)&&n.defaultView||window,e.getSelection){e=e.getSelection();var l=t.textContent.length,o=Math.min(r.start,l);r=r.end===void 0?o:Math.min(r.end,l),!e.extend&&o>r&&(l=r,r=o,o=l),l=Bi(t,o);var u=Bi(t,r);l&&u&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==u.node||e.focusOffset!==u.offset)&&(n=n.createRange(),n.setStart(l.node,l.offset),e.removeAllRanges(),o>r?(e.addRange(n),e.extend(u.node,u.offset)):(n.setEnd(u.node,u.offset),e.addRange(n)))}}for(n=[],e=t;e=e.parentNode;)e.nodeType===1&&n.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof t.focus=="function"&&t.focus(),t=0;t=document.documentMode,Un=null,Lo=null,zt=null,Ro=!1;function Hi(e,n,t){var r=t.window===t?t.document:t.nodeType===9?t:t.ownerDocument;Ro||Un==null||Un!==Vr(r)||(r=Un,"selectionStart"in r&&gu(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),zt&&At(zt,r)||(zt=r,r=Kr(Lo,"onSelect"),0Bn||(e.current=jo[Bn],jo[Bn]=null,Bn--)}function R(e,n){Bn++,jo[Bn]=e.current,e.current=n}var pn={},ee=vn(pn),ie=vn(!1),xn=pn;function et(e,n){var t=e.type.contextTypes;if(!t)return pn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===n)return r.__reactInternalMemoizedMaskedChildContext;var l={},o;for(o in t)l[o]=n[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=l),l}function se(e){return e=e.childContextTypes,e!=null}function Xr(){D(ie),D(ee)}function Ji(e,n,t){if(ee.current!==pn)throw Error(h(168));R(ee,n),R(ie,t)}function ka(e,n,t){var r=e.stateNode;if(n=n.childContextTypes,typeof r.getChildContext!="function")return t;r=r.getChildContext();for(var l in r)if(!(l in n))throw Error(h(108,vf(e)||"Unknown",l));return j({},t,r)}function Gr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||pn,xn=ee.current,R(ee,e),R(ie,ie.current),!0}function qi(e,n,t){var r=e.stateNode;if(!r)throw Error(h(169));t?(e=ka(e,n,xn),r.__reactInternalMemoizedMergedChildContext=e,D(ie),D(ee),R(ee,e)):D(ie),R(ie,t)}var Ve=null,ml=!1,no=!1;function Ea(e){Ve===null?Ve=[e]:Ve.push(e)}function Ld(e){ml=!0,Ea(e)}function hn(){if(!no&&Ve!==null){no=!0;var e=0,n=T;try{var t=Ve;for(T=1;e>=u,l-=u,Ae=1<<32-ze(n)+l|t<x?(W=C,C=null):W=C.sibling;var z=p(c,C,d[x],y);if(z===null){C===null&&(C=W);break}e&&C&&z.alternate===null&&n(c,C),a=o(z,a,x),_===null?E=z:_.sibling=z,_=z,C=W}if(x===d.length)return t(c,C),M&&gn(c,x),E;if(C===null){for(;xx?(W=C,C=null):W=C.sibling;var Xe=p(c,C,z.value,y);if(Xe===null){C===null&&(C=W);break}e&&C&&Xe.alternate===null&&n(c,C),a=o(Xe,a,x),_===null?E=Xe:_.sibling=Xe,_=Xe,C=W}if(z.done)return t(c,C),M&&gn(c,x),E;if(C===null){for(;!z.done;x++,z=d.next())z=v(c,z.value,y),z!==null&&(a=o(z,a,x),_===null?E=z:_.sibling=z,_=z);return M&&gn(c,x),E}for(C=r(c,C);!z.done;x++,z=d.next())z=g(C,c,x,z.value,y),z!==null&&(e&&z.alternate!==null&&C.delete(z.key===null?x:z.key),a=o(z,a,x),_===null?E=z:_.sibling=z,_=z);return e&&C.forEach(function(Vc){return n(c,Vc)}),M&&gn(c,x),E}function V(c,a,d,y){if(typeof d=="object"&&d!==null&&d.type===Fn&&d.key===null&&(d=d.props.children),typeof d=="object"&&d!==null){switch(d.$$typeof){case cr:e:{for(var E=d.key,_=a;_!==null;){if(_.key===E){if(E=d.type,E===Fn){if(_.tag===7){t(c,_.sibling),a=l(_,d.props.children),a.return=c,c=a;break e}}else if(_.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Je&&os(E)===_.type){t(c,_.sibling),a=l(_,d.props),a.ref=ht(c,_,d),a.return=c,c=a;break e}t(c,_);break}else n(c,_);_=_.sibling}d.type===Fn?(a=Cn(d.props.children,c.mode,y,d.key),a.return=c,c=a):(y=Ur(d.type,d.key,d.props,null,c.mode,y),y.ref=ht(c,a,d),y.return=c,c=y)}return u(c);case In:e:{for(_=d.key;a!==null;){if(a.key===_)if(a.tag===4&&a.stateNode.containerInfo===d.containerInfo&&a.stateNode.implementation===d.implementation){t(c,a.sibling),a=l(a,d.children||[]),a.return=c,c=a;break e}else{t(c,a);break}else n(c,a);a=a.sibling}a=ao(d,c.mode,y),a.return=c,c=a}return u(c);case Je:return _=d._init,V(c,a,_(d._payload),y)}if(kt(d))return S(c,a,d,y);if(dt(d))return k(c,a,d,y);xr(c,d)}return typeof d=="string"&&d!==""||typeof d=="number"?(d=""+d,a!==null&&a.tag===6?(t(c,a.sibling),a=l(a,d),a.return=c,c=a):(t(c,a),a=so(d,c.mode,y),a.return=c,c=a),u(c)):t(c,a)}return V}var tt=La(!0),Ra=La(!1),bt={},Fe=vn(bt),Wt=vn(bt),Qt=vn(bt);function En(e){if(e===bt)throw Error(h(174));return e}function Pu(e,n){switch(R(Qt,n),R(Wt,e),R(Fe,bt),e=n.nodeType,e){case 9:case 11:n=(n=n.documentElement)?n.namespaceURI:So(null,"");break;default:e=e===8?n.parentNode:n,n=e.namespaceURI||null,e=e.tagName,n=So(n,e)}D(Fe),R(Fe,n)}function rt(){D(Fe),D(Wt),D(Qt)}function Oa(e){En(Qt.current);var n=En(Fe.current),t=So(n,e.type);n!==t&&(R(Wt,e),R(Fe,t))}function zu(e){Wt.current===e&&(D(Fe),D(Wt))}var I=vn(0);function nl(e){for(var n=e;n!==null;){if(n.tag===13){var t=n.memoizedState;if(t!==null&&(t=t.dehydrated,t===null||t.data==="$?"||t.data==="$!"))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if(n.flags&128)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var to=[];function Tu(){for(var e=0;et?t:4,e(!0);var r=ro.transition;ro.transition={};try{e(!1),n()}finally{T=t,ro.transition=r}}function Xa(){return Ee().memoizedState}function Md(e,n,t){var r=cn(e);if(t={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null},Ga(e))Za(n,t);else if(t=Na(e,n,t,r),t!==null){var l=re();Te(t,e,r,l),Ja(t,n,r)}}function Id(e,n,t){var r=cn(e),l={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null};if(Ga(e))Za(n,l);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=n.lastRenderedReducer,o!==null))try{var u=n.lastRenderedState,i=o(u,t);if(l.hasEagerState=!0,l.eagerState=i,Le(i,u)){var s=n.interleaved;s===null?(l.next=l,xu(n)):(l.next=s.next,s.next=l),n.interleaved=l;return}}catch{}finally{}t=Na(e,n,l,r),t!==null&&(l=re(),Te(t,e,r,l),Ja(t,n,r))}}function Ga(e){var n=e.alternate;return e===F||n!==null&&n===F}function Za(e,n){Tt=tl=!0;var t=e.pending;t===null?n.next=n:(n.next=t.next,t.next=n),e.pending=n}function Ja(e,n,t){if(t&4194240){var r=n.lanes;r&=e.pendingLanes,t|=r,n.lanes=t,fu(e,t)}}var rl={readContext:ke,useCallback:J,useContext:J,useEffect:J,useImperativeHandle:J,useInsertionEffect:J,useLayoutEffect:J,useMemo:J,useReducer:J,useRef:J,useState:J,useDebugValue:J,useDeferredValue:J,useTransition:J,useMutableSource:J,useSyncExternalStore:J,useId:J,unstable_isNewReconciler:!1},Fd={readContext:ke,useCallback:function(e,n){return De().memoizedState=[e,n===void 0?null:n],e},useContext:ke,useEffect:is,useImperativeHandle:function(e,n,t){return t=t!=null?t.concat([e]):null,Mr(4194308,4,$a.bind(null,n,e),t)},useLayoutEffect:function(e,n){return Mr(4194308,4,e,n)},useInsertionEffect:function(e,n){return Mr(4,2,e,n)},useMemo:function(e,n){var t=De();return n=n===void 0?null:n,e=e(),t.memoizedState=[e,n],e},useReducer:function(e,n,t){var r=De();return n=t!==void 0?t(n):n,r.memoizedState=r.baseState=n,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},r.queue=e,e=e.dispatch=Md.bind(null,F,e),[r.memoizedState,e]},useRef:function(e){var n=De();return e={current:e},n.memoizedState=e},useState:us,useDebugValue:Mu,useDeferredValue:function(e){return De().memoizedState=e},useTransition:function(){var e=us(!1),n=e[0];return e=Dd.bind(null,e[1]),De().memoizedState=e,[n,e]},useMutableSource:function(){},useSyncExternalStore:function(e,n,t){var r=F,l=De();if(M){if(t===void 0)throw Error(h(407));t=t()}else{if(t=n(),K===null)throw Error(h(349));Pn&30||Ia(r,n,t)}l.memoizedState=t;var o={value:t,getSnapshot:n};return l.queue=o,is(ja.bind(null,r,o,e),[e]),r.flags|=2048,Xt(9,Fa.bind(null,r,o,t,n),void 0,null),t},useId:function(){var e=De(),n=K.identifierPrefix;if(M){var t=Be,r=Ae;t=(r&~(1<<32-ze(r)-1)).toString(32)+t,n=":"+n+"R"+t,t=Kt++,0")&&(s=s.replace("",e.displayName)),s}while(1<=u&&0<=i);break}}}finally{Wl=!1,Error.prepareStackTrace=t}return(e=e?e.displayName||e.name:"")?St(e):""}function mf(e){switch(e.tag){case 5:return St(e.type);case 16:return St("Lazy");case 13:return St("Suspense");case 19:return St("SuspenseList");case 0:case 2:case 15:return e=$l(e.type,!1),e;case 11:return e=$l(e.type.render,!1),e;case 1:return e=$l(e.type,!0),e;default:return""}}function vo(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Fn:return"Fragment";case In:return"Portal";case fo:return"Profiler";case uu:return"StrictMode";case po:return"Suspense";case mo:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ts:return(e.displayName||"Context")+".Consumer";case zs:return(e._context.displayName||"Context")+".Provider";case iu:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case su:return n=e.displayName||null,n!==null?n:vo(e.type)||"Memo";case Je:n=e._payload,e=e._init;try{return vo(e(n))}catch{}}return null}function vf(e){var n=e.type;switch(e.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=n.render,e=e.displayName||e.name||"",n.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return vo(n);case 8:return n===uu?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n}return null}function dn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Rs(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function hf(e){var n=Rs(e)?"checked":"value",t=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),r=""+e[n];if(!e.hasOwnProperty(n)&&typeof t<"u"&&typeof t.get=="function"&&typeof t.set=="function"){var l=t.get,o=t.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return l.call(this)},set:function(u){r=""+u,o.call(this,u)}}),Object.defineProperty(e,n,{enumerable:t.enumerable}),{getValue:function(){return r},setValue:function(u){r=""+u},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function fr(e){e._valueTracker||(e._valueTracker=hf(e))}function Os(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var t=n.getValue(),r="";return e&&(r=Rs(e)?e.checked?"true":"false":e.value),e=r,e!==t?(n.setValue(e),!0):!1}function Vr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function ho(e,n){var t=n.checked;return j({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:t??e._wrapperState.initialChecked})}function _i(e,n){var t=n.defaultValue==null?"":n.defaultValue,r=n.checked!=null?n.checked:n.defaultChecked;t=dn(n.value!=null?n.value:t),e._wrapperState={initialChecked:r,initialValue:t,controlled:n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null}}function Ds(e,n){n=n.checked,n!=null&&ou(e,"checked",n,!1)}function yo(e,n){Ds(e,n);var t=dn(n.value),r=n.type;if(t!=null)r==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+t):e.value!==""+t&&(e.value=""+t);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}n.hasOwnProperty("value")?go(e,n.type,t):n.hasOwnProperty("defaultValue")&&go(e,n.type,dn(n.defaultValue)),n.checked==null&&n.defaultChecked!=null&&(e.defaultChecked=!!n.defaultChecked)}function Ci(e,n,t){if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var r=n.type;if(!(r!=="submit"&&r!=="reset"||n.value!==void 0&&n.value!==null))return;n=""+e._wrapperState.initialValue,t||n===e.value||(e.value=n),e.defaultValue=n}t=e.name,t!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,t!==""&&(e.name=t)}function go(e,n,t){(n!=="number"||Vr(e.ownerDocument)!==e)&&(t==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+t&&(e.defaultValue=""+t))}var kt=Array.isArray;function Yn(e,n,t,r){if(e=e.options,n){n={};for(var l=0;l"+n.valueOf().toString()+"",n=dr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}});function Mt(e,n){if(n){var t=e.firstChild;if(t&&t===e.lastChild&&t.nodeType===3){t.nodeValue=n;return}}e.textContent=n}var Ct={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},yf=["Webkit","ms","Moz","O"];Object.keys(Ct).forEach(function(e){yf.forEach(function(n){n=n+e.charAt(0).toUpperCase()+e.substring(1),Ct[n]=Ct[e]})});function js(e,n,t){return n==null||typeof n=="boolean"||n===""?"":t||typeof n!="number"||n===0||Ct.hasOwnProperty(e)&&Ct[e]?(""+n).trim():n+"px"}function Us(e,n){e=e.style;for(var t in n)if(n.hasOwnProperty(t)){var r=t.indexOf("--")===0,l=js(t,n[t],r);t==="float"&&(t="cssFloat"),r?e.setProperty(t,l):e[t]=l}}var gf=j({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ko(e,n){if(n){if(gf[e]&&(n.children!=null||n.dangerouslySetInnerHTML!=null))throw Error(h(137,e));if(n.dangerouslySetInnerHTML!=null){if(n.children!=null)throw Error(h(60));if(typeof n.dangerouslySetInnerHTML!="object"||!("__html"in n.dangerouslySetInnerHTML))throw Error(h(61))}if(n.style!=null&&typeof n.style!="object")throw Error(h(62))}}function Eo(e,n){if(e.indexOf("-")===-1)return typeof n.is=="string";switch(e){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!1;default:return!0}}var _o=null;function au(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Co=null,Xn=null,Gn=null;function Pi(e){if(e=qt(e)){if(typeof Co!="function")throw Error(h(280));var n=e.stateNode;n&&(n=pl(n),Co(e.stateNode,e.type,n))}}function Vs(e){Xn?Gn?Gn.push(e):Gn=[e]:Xn=e}function As(){if(Xn){var e=Xn,n=Gn;if(Gn=Xn=null,Pi(e),n)for(e=0;e>>=0,e===0?32:31-(Tf(e)/Lf|0)|0}var pr=64,mr=4194304;function Et(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Wr(e,n){var t=e.pendingLanes;if(t===0)return 0;var r=0,l=e.suspendedLanes,o=e.pingedLanes,u=t&268435455;if(u!==0){var i=u&~l;i!==0?r=Et(i):(o&=u,o!==0&&(r=Et(o)))}else u=t&~l,u!==0?r=Et(u):o!==0&&(r=Et(o));if(r===0)return 0;if(n!==0&&n!==r&&!(n&l)&&(l=r&-r,o=n&-n,l>=o||l===16&&(o&4194240)!==0))return n;if(r&4&&(r|=t&16),n=e.entangledLanes,n!==0)for(e=e.entanglements,n&=r;0t;t++)n.push(e);return n}function Zt(e,n,t){e.pendingLanes|=n,n!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,n=31-ze(n),e[n]=t}function Mf(e,n){var t=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=n,e.mutableReadLanes&=n,e.entangledLanes&=n,n=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Nt),Fi=" ",ji=!1;function ua(e,n){switch(e){case"keyup":return sd.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ia(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var jn=!1;function cd(e,n){switch(e){case"compositionend":return ia(n);case"keypress":return n.which!==32?null:(ji=!0,Fi);case"textInput":return e=n.data,e===Fi&&ji?null:e;default:return null}}function fd(e,n){if(jn)return e==="compositionend"||!yu&&ua(e,n)?(e=la(),Lr=mu=nn=null,jn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1=n)return{node:t,offset:n-e};e=r}e:{for(;t;){if(t.nextSibling){t=t.nextSibling;break e}t=t.parentNode}t=void 0}t=Ai(t)}}function fa(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?fa(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function da(){for(var e=window,n=Vr();n instanceof e.HTMLIFrameElement;){try{var t=typeof n.contentWindow.location.href=="string"}catch{t=!1}if(t)e=n.contentWindow;else break;n=Vr(e.document)}return n}function gu(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}function Sd(e){var n=da(),t=e.focusedElem,r=e.selectionRange;if(n!==t&&t&&t.ownerDocument&&fa(t.ownerDocument.documentElement,t)){if(r!==null&&gu(t)){if(n=r.start,e=r.end,e===void 0&&(e=n),"selectionStart"in t)t.selectionStart=n,t.selectionEnd=Math.min(e,t.value.length);else if(e=(n=t.ownerDocument||document)&&n.defaultView||window,e.getSelection){e=e.getSelection();var l=t.textContent.length,o=Math.min(r.start,l);r=r.end===void 0?o:Math.min(r.end,l),!e.extend&&o>r&&(l=r,r=o,o=l),l=Hi(t,o);var u=Hi(t,r);l&&u&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==u.node||e.focusOffset!==u.offset)&&(n=n.createRange(),n.setStart(l.node,l.offset),e.removeAllRanges(),o>r?(e.addRange(n),e.extend(u.node,u.offset)):(n.setEnd(u.node,u.offset),e.addRange(n)))}}for(n=[],e=t;e=e.parentNode;)e.nodeType===1&&n.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof t.focus=="function"&&t.focus(),t=0;t=document.documentMode,Un=null,Lo=null,zt=null,Ro=!1;function Bi(e,n,t){var r=t.window===t?t.document:t.nodeType===9?t:t.ownerDocument;Ro||Un==null||Un!==Vr(r)||(r=Un,"selectionStart"in r&&gu(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),zt&&At(zt,r)||(zt=r,r=Kr(Lo,"onSelect"),0Hn||(e.current=jo[Hn],jo[Hn]=null,Hn--)}function R(e,n){Hn++,jo[Hn]=e.current,e.current=n}var pn={},ee=vn(pn),ie=vn(!1),xn=pn;function et(e,n){var t=e.type.contextTypes;if(!t)return pn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===n)return r.__reactInternalMemoizedMaskedChildContext;var l={},o;for(o in t)l[o]=n[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=l),l}function se(e){return e=e.childContextTypes,e!=null}function Xr(){D(ie),D(ee)}function Ji(e,n,t){if(ee.current!==pn)throw Error(h(168));R(ee,n),R(ie,t)}function ka(e,n,t){var r=e.stateNode;if(n=n.childContextTypes,typeof r.getChildContext!="function")return t;r=r.getChildContext();for(var l in r)if(!(l in n))throw Error(h(108,vf(e)||"Unknown",l));return j({},t,r)}function Gr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||pn,xn=ee.current,R(ee,e),R(ie,ie.current),!0}function qi(e,n,t){var r=e.stateNode;if(!r)throw Error(h(169));t?(e=ka(e,n,xn),r.__reactInternalMemoizedMergedChildContext=e,D(ie),D(ee),R(ee,e)):D(ie),R(ie,t)}var Ve=null,ml=!1,no=!1;function Ea(e){Ve===null?Ve=[e]:Ve.push(e)}function Ld(e){ml=!0,Ea(e)}function hn(){if(!no&&Ve!==null){no=!0;var e=0,n=T;try{var t=Ve;for(T=1;e>=u,l-=u,Ae=1<<32-ze(n)+l|t<x?($=C,C=null):$=C.sibling;var z=p(c,C,d[x],y);if(z===null){C===null&&(C=$);break}e&&C&&z.alternate===null&&n(c,C),a=o(z,a,x),_===null?E=z:_.sibling=z,_=z,C=$}if(x===d.length)return t(c,C),M&&gn(c,x),E;if(C===null){for(;xx?($=C,C=null):$=C.sibling;var Xe=p(c,C,z.value,y);if(Xe===null){C===null&&(C=$);break}e&&C&&Xe.alternate===null&&n(c,C),a=o(Xe,a,x),_===null?E=Xe:_.sibling=Xe,_=Xe,C=$}if(z.done)return t(c,C),M&&gn(c,x),E;if(C===null){for(;!z.done;x++,z=d.next())z=v(c,z.value,y),z!==null&&(a=o(z,a,x),_===null?E=z:_.sibling=z,_=z);return M&&gn(c,x),E}for(C=r(c,C);!z.done;x++,z=d.next())z=g(C,c,x,z.value,y),z!==null&&(e&&z.alternate!==null&&C.delete(z.key===null?x:z.key),a=o(z,a,x),_===null?E=z:_.sibling=z,_=z);return e&&C.forEach(function(Vc){return n(c,Vc)}),M&&gn(c,x),E}function V(c,a,d,y){if(typeof d=="object"&&d!==null&&d.type===Fn&&d.key===null&&(d=d.props.children),typeof d=="object"&&d!==null){switch(d.$$typeof){case cr:e:{for(var E=d.key,_=a;_!==null;){if(_.key===E){if(E=d.type,E===Fn){if(_.tag===7){t(c,_.sibling),a=l(_,d.props.children),a.return=c,c=a;break e}}else if(_.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Je&&os(E)===_.type){t(c,_.sibling),a=l(_,d.props),a.ref=ht(c,_,d),a.return=c,c=a;break e}t(c,_);break}else n(c,_);_=_.sibling}d.type===Fn?(a=Cn(d.props.children,c.mode,y,d.key),a.return=c,c=a):(y=Ur(d.type,d.key,d.props,null,c.mode,y),y.ref=ht(c,a,d),y.return=c,c=y)}return u(c);case In:e:{for(_=d.key;a!==null;){if(a.key===_)if(a.tag===4&&a.stateNode.containerInfo===d.containerInfo&&a.stateNode.implementation===d.implementation){t(c,a.sibling),a=l(a,d.children||[]),a.return=c,c=a;break e}else{t(c,a);break}else n(c,a);a=a.sibling}a=ao(d,c.mode,y),a.return=c,c=a}return u(c);case Je:return _=d._init,V(c,a,_(d._payload),y)}if(kt(d))return S(c,a,d,y);if(dt(d))return k(c,a,d,y);xr(c,d)}return typeof d=="string"&&d!==""||typeof d=="number"?(d=""+d,a!==null&&a.tag===6?(t(c,a.sibling),a=l(a,d),a.return=c,c=a):(t(c,a),a=so(d,c.mode,y),a.return=c,c=a),u(c)):t(c,a)}return V}var tt=La(!0),Ra=La(!1),bt={},Fe=vn(bt),$t=vn(bt),Qt=vn(bt);function En(e){if(e===bt)throw Error(h(174));return e}function Pu(e,n){switch(R(Qt,n),R($t,e),R(Fe,bt),e=n.nodeType,e){case 9:case 11:n=(n=n.documentElement)?n.namespaceURI:So(null,"");break;default:e=e===8?n.parentNode:n,n=e.namespaceURI||null,e=e.tagName,n=So(n,e)}D(Fe),R(Fe,n)}function rt(){D(Fe),D($t),D(Qt)}function Oa(e){En(Qt.current);var n=En(Fe.current),t=So(n,e.type);n!==t&&(R($t,e),R(Fe,t))}function zu(e){$t.current===e&&(D(Fe),D($t))}var I=vn(0);function nl(e){for(var n=e;n!==null;){if(n.tag===13){var t=n.memoizedState;if(t!==null&&(t=t.dehydrated,t===null||t.data==="$?"||t.data==="$!"))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if(n.flags&128)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var to=[];function Tu(){for(var e=0;et?t:4,e(!0);var r=ro.transition;ro.transition={};try{e(!1),n()}finally{T=t,ro.transition=r}}function Xa(){return Ee().memoizedState}function Md(e,n,t){var r=cn(e);if(t={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null},Ga(e))Za(n,t);else if(t=Na(e,n,t,r),t!==null){var l=re();Te(t,e,r,l),Ja(t,n,r)}}function Id(e,n,t){var r=cn(e),l={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null};if(Ga(e))Za(n,l);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=n.lastRenderedReducer,o!==null))try{var u=n.lastRenderedState,i=o(u,t);if(l.hasEagerState=!0,l.eagerState=i,Le(i,u)){var s=n.interleaved;s===null?(l.next=l,xu(n)):(l.next=s.next,s.next=l),n.interleaved=l;return}}catch{}finally{}t=Na(e,n,l,r),t!==null&&(l=re(),Te(t,e,r,l),Ja(t,n,r))}}function Ga(e){var n=e.alternate;return e===F||n!==null&&n===F}function Za(e,n){Tt=tl=!0;var t=e.pending;t===null?n.next=n:(n.next=t.next,t.next=n),e.pending=n}function Ja(e,n,t){if(t&4194240){var r=n.lanes;r&=e.pendingLanes,t|=r,n.lanes=t,fu(e,t)}}var rl={readContext:ke,useCallback:J,useContext:J,useEffect:J,useImperativeHandle:J,useInsertionEffect:J,useLayoutEffect:J,useMemo:J,useReducer:J,useRef:J,useState:J,useDebugValue:J,useDeferredValue:J,useTransition:J,useMutableSource:J,useSyncExternalStore:J,useId:J,unstable_isNewReconciler:!1},Fd={readContext:ke,useCallback:function(e,n){return De().memoizedState=[e,n===void 0?null:n],e},useContext:ke,useEffect:is,useImperativeHandle:function(e,n,t){return t=t!=null?t.concat([e]):null,Mr(4194308,4,Wa.bind(null,n,e),t)},useLayoutEffect:function(e,n){return Mr(4194308,4,e,n)},useInsertionEffect:function(e,n){return Mr(4,2,e,n)},useMemo:function(e,n){var t=De();return n=n===void 0?null:n,e=e(),t.memoizedState=[e,n],e},useReducer:function(e,n,t){var r=De();return n=t!==void 0?t(n):n,r.memoizedState=r.baseState=n,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},r.queue=e,e=e.dispatch=Md.bind(null,F,e),[r.memoizedState,e]},useRef:function(e){var n=De();return e={current:e},n.memoizedState=e},useState:us,useDebugValue:Mu,useDeferredValue:function(e){return De().memoizedState=e},useTransition:function(){var e=us(!1),n=e[0];return e=Dd.bind(null,e[1]),De().memoizedState=e,[n,e]},useMutableSource:function(){},useSyncExternalStore:function(e,n,t){var r=F,l=De();if(M){if(t===void 0)throw Error(h(407));t=t()}else{if(t=n(),K===null)throw Error(h(349));Pn&30||Ia(r,n,t)}l.memoizedState=t;var o={value:t,getSnapshot:n};return l.queue=o,is(ja.bind(null,r,o,e),[e]),r.flags|=2048,Xt(9,Fa.bind(null,r,o,t,n),void 0,null),t},useId:function(){var e=De(),n=K.identifierPrefix;if(M){var t=He,r=Ae;t=(r&~(1<<32-ze(r)-1)).toString(32)+t,n=":"+n+"R"+t,t=Kt++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=u.createElement(t,{is:r.is}):(e=u.createElement(t),t==="select"&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,t),e[Me]=n,e[$t]=r,uc(e,n,!1,!1),n.stateNode=e;e:{switch(u=Eo(t,r),t){case"dialog":O("cancel",e),O("close",e),l=r;break;case"iframe":case"object":case"embed":O("load",e),l=r;break;case"video":case"audio":for(l=0;l<_t.length;l++)O(_t[l],e);l=r;break;case"source":O("error",e),l=r;break;case"img":case"image":case"link":O("error",e),O("load",e),l=r;break;case"details":O("toggle",e),l=r;break;case"input":_i(e,r),l=ho(e,r),O("invalid",e);break;case"option":l=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},l=j({},r,{value:void 0}),O("invalid",e);break;case"textarea":xi(e,r),l=wo(e,r),O("invalid",e);break;default:l=r}ko(t,l),i=l;for(o in i)if(i.hasOwnProperty(o)){var s=i[o];o==="style"?Us(e,s):o==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,s!=null&&Fs(e,s)):o==="children"?typeof s=="string"?(t!=="textarea"||s!=="")&&Mt(e,s):typeof s=="number"&&Mt(e,""+s):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Dt.hasOwnProperty(o)?s!=null&&o==="onScroll"&&O("scroll",e):s!=null&&ou(e,o,s,u))}switch(t){case"input":fr(e),Ci(e,r,!1);break;case"textarea":fr(e),Ni(e);break;case"option":r.value!=null&&e.setAttribute("value",""+dn(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?Yn(e,!!r.multiple,o,!1):r.defaultValue!=null&&Yn(e,!!r.multiple,r.defaultValue,!0);break;default:typeof l.onClick=="function"&&(e.onclick=Yr)}switch(t){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(n.flags|=4)}n.ref!==null&&(n.flags|=512,n.flags|=2097152)}return q(n),null;case 6:if(e&&n.stateNode!=null)sc(e,n,e.memoizedProps,r);else{if(typeof r!="string"&&n.stateNode===null)throw Error(h(166));if(t=En(Qt.current),En(Fe.current),Cr(n)){if(r=n.stateNode,t=n.memoizedProps,r[Me]=n,(o=r.nodeValue!==t)&&(e=de,e!==null))switch(e.tag){case 3:_r(r.nodeValue,t,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&_r(r.nodeValue,t,(e.mode&1)!==0)}o&&(n.flags|=4)}else r=(t.nodeType===9?t:t.ownerDocument).createTextNode(r),r[Me]=n,n.stateNode=r}return q(n),null;case 13:if(D(I),r=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(M&&fe!==null&&n.mode&1&&!(n.flags&128))xa(),nt(),n.flags|=98560,o=!1;else if(o=Cr(n),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(h(318));if(o=n.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(h(317));o[Me]=n}else nt(),!(n.flags&128)&&(n.memoizedState=null),n.flags|=4;q(n),o=!1}else Pe!==null&&(tu(Pe),Pe=null),o=!0;if(!o)return n.flags&65536?n:null}return n.flags&128?(n.lanes=t,n):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(n.child.flags|=8192,n.mode&1&&(e===null||I.current&1?$===0&&($=3):Bu())),n.updateQueue!==null&&(n.flags|=4),q(n),null);case 4:return rt(),Xo(e,n),e===null&&Bt(n.stateNode.containerInfo),q(n),null;case 10:return Cu(n.type._context),q(n),null;case 17:return se(n.type)&&Xr(),q(n),null;case 19:if(D(I),o=n.memoizedState,o===null)return q(n),null;if(r=(n.flags&128)!==0,u=o.rendering,u===null)if(r)yt(o,!1);else{if($!==0||e!==null&&e.flags&128)for(e=n.child;e!==null;){if(u=nl(e),u!==null){for(n.flags|=128,yt(o,!1),r=u.updateQueue,r!==null&&(n.updateQueue=r,n.flags|=4),n.subtreeFlags=0,r=t,t=n.child;t!==null;)o=t,e=r,o.flags&=14680066,u=o.alternate,u===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=u.childLanes,o.lanes=u.lanes,o.child=u.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=u.memoizedProps,o.memoizedState=u.memoizedState,o.updateQueue=u.updateQueue,o.type=u.type,e=u.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t=t.sibling;return R(I,I.current&1|2),n.child}e=e.sibling}o.tail!==null&&A()>ot&&(n.flags|=128,r=!0,yt(o,!1),n.lanes=4194304)}else{if(!r)if(e=nl(u),e!==null){if(n.flags|=128,r=!0,t=e.updateQueue,t!==null&&(n.updateQueue=t,n.flags|=4),yt(o,!0),o.tail===null&&o.tailMode==="hidden"&&!u.alternate&&!M)return q(n),null}else 2*A()-o.renderingStartTime>ot&&t!==1073741824&&(n.flags|=128,r=!0,yt(o,!1),n.lanes=4194304);o.isBackwards?(u.sibling=n.child,n.child=u):(t=o.last,t!==null?t.sibling=u:n.child=u,o.last=u)}return o.tail!==null?(n=o.tail,o.rendering=n,o.tail=n.sibling,o.renderingStartTime=A(),n.sibling=null,t=I.current,R(I,r?t&1|2:t&1),n):(q(n),null);case 22:case 23:return Au(),r=n.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(n.flags|=8192),r&&n.mode&1?ce&1073741824&&(q(n),n.subtreeFlags&6&&(n.flags|=8192)):q(n),null;case 24:return null;case 25:return null}throw Error(h(156,n.tag))}function Wd(e,n){switch(Su(n),n.tag){case 1:return se(n.type)&&Xr(),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return rt(),D(ie),D(ee),Tu(),e=n.flags,e&65536&&!(e&128)?(n.flags=e&-65537|128,n):null;case 5:return zu(n),null;case 13:if(D(I),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(h(340));nt()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return D(I),null;case 4:return rt(),null;case 10:return Cu(n.type._context),null;case 22:case 23:return Au(),null;case 24:return null;default:return null}}var Pr=!1,b=!1,Qd=typeof WeakSet=="function"?WeakSet:Set,w=null;function Qn(e,n){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(r){U(e,n,r)}else t.current=null}function Go(e,n,t){try{t()}catch(r){U(e,n,r)}}var hs=!1;function Kd(e,n){if(Oo=Wr,e=da(),gu(e)){if("selectionStart"in e)var t={start:e.selectionStart,end:e.selectionEnd};else e:{t=(t=e.ownerDocument)&&t.defaultView||window;var r=t.getSelection&&t.getSelection();if(r&&r.rangeCount!==0){t=r.anchorNode;var l=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{t.nodeType,o.nodeType}catch{t=null;break e}var u=0,i=-1,s=-1,f=0,m=0,v=e,p=null;n:for(;;){for(var g;v!==t||l!==0&&v.nodeType!==3||(i=u+l),v!==o||r!==0&&v.nodeType!==3||(s=u+r),v.nodeType===3&&(u+=v.nodeValue.length),(g=v.firstChild)!==null;)p=v,v=g;for(;;){if(v===e)break n;if(p===t&&++f===l&&(i=u),p===o&&++m===r&&(s=u),(g=v.nextSibling)!==null)break;v=p,p=v.parentNode}v=g}t=i===-1||s===-1?null:{start:i,end:s}}else t=null}t=t||{start:0,end:0}}else t=null;for(Do={focusedElem:e,selectionRange:t},Wr=!1,w=n;w!==null;)if(n=w,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,w=e;else for(;w!==null;){n=w;try{var S=n.alternate;if(n.flags&1024)switch(n.tag){case 0:case 11:case 15:break;case 1:if(S!==null){var k=S.memoizedProps,V=S.memoizedState,c=n.stateNode,a=c.getSnapshotBeforeUpdate(n.elementType===n.type?k:xe(n.type,k),V);c.__reactInternalSnapshotBeforeUpdate=a}break;case 3:var d=n.stateNode.containerInfo;d.nodeType===1?d.textContent="":d.nodeType===9&&d.documentElement&&d.removeChild(d.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(h(163))}}catch(y){U(n,n.return,y)}if(e=n.sibling,e!==null){e.return=n.return,w=e;break}w=n.return}return S=hs,hs=!1,S}function Lt(e,n,t){var r=n.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var o=l.destroy;l.destroy=void 0,o!==void 0&&Go(n,t,o)}l=l.next}while(l!==r)}}function yl(e,n){if(n=n.updateQueue,n=n!==null?n.lastEffect:null,n!==null){var t=n=n.next;do{if((t.tag&e)===e){var r=t.create;t.destroy=r()}t=t.next}while(t!==n)}}function Zo(e){var n=e.ref;if(n!==null){var t=e.stateNode;switch(e.tag){case 5:e=t;break;default:e=t}typeof n=="function"?n(e):n.current=e}}function ac(e){var n=e.alternate;n!==null&&(e.alternate=null,ac(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&(delete n[Me],delete n[$t],delete n[Fo],delete n[zd],delete n[Td])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function cc(e){return e.tag===5||e.tag===3||e.tag===4}function ys(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||cc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Jo(e,n,t){var r=e.tag;if(r===5||r===6)e=e.stateNode,n?t.nodeType===8?t.parentNode.insertBefore(e,n):t.insertBefore(e,n):(t.nodeType===8?(n=t.parentNode,n.insertBefore(e,t)):(n=t,n.appendChild(e)),t=t._reactRootContainer,t!=null||n.onclick!==null||(n.onclick=Yr));else if(r!==4&&(e=e.child,e!==null))for(Jo(e,n,t),e=e.sibling;e!==null;)Jo(e,n,t),e=e.sibling}function qo(e,n,t){var r=e.tag;if(r===5||r===6)e=e.stateNode,n?t.insertBefore(e,n):t.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(qo(e,n,t),e=e.sibling;e!==null;)qo(e,n,t),e=e.sibling}var Y=null,Ne=!1;function Ze(e,n,t){for(t=t.child;t!==null;)fc(e,n,t),t=t.sibling}function fc(e,n,t){if(Ie&&typeof Ie.onCommitFiberUnmount=="function")try{Ie.onCommitFiberUnmount(al,t)}catch{}switch(t.tag){case 5:b||Qn(t,n);case 6:var r=Y,l=Ne;Y=null,Ze(e,n,t),Y=r,Ne=l,Y!==null&&(Ne?(e=Y,t=t.stateNode,e.nodeType===8?e.parentNode.removeChild(t):e.removeChild(t)):Y.removeChild(t.stateNode));break;case 18:Y!==null&&(Ne?(e=Y,t=t.stateNode,e.nodeType===8?eo(e.parentNode,t):e.nodeType===1&&eo(e,t),Ut(e)):eo(Y,t.stateNode));break;case 4:r=Y,l=Ne,Y=t.stateNode.containerInfo,Ne=!0,Ze(e,n,t),Y=r,Ne=l;break;case 0:case 11:case 14:case 15:if(!b&&(r=t.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var o=l,u=o.destroy;o=o.tag,u!==void 0&&(o&2||o&4)&&Go(t,n,u),l=l.next}while(l!==r)}Ze(e,n,t);break;case 1:if(!b&&(Qn(t,n),r=t.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=t.memoizedProps,r.state=t.memoizedState,r.componentWillUnmount()}catch(i){U(t,n,i)}Ze(e,n,t);break;case 21:Ze(e,n,t);break;case 22:t.mode&1?(b=(r=b)||t.memoizedState!==null,Ze(e,n,t),b=r):Ze(e,n,t);break;default:Ze(e,n,t)}}function gs(e){var n=e.updateQueue;if(n!==null){e.updateQueue=null;var t=e.stateNode;t===null&&(t=e.stateNode=new Qd),n.forEach(function(r){var l=np.bind(null,e,r);t.has(r)||(t.add(r),r.then(l,l))})}}function Ce(e,n){var t=n.deletions;if(t!==null)for(var r=0;rl&&(l=u),r&=~o}if(r=l,r=A()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Xd(r/1960))-r,10e?16:e,tn===null)var r=!1;else{if(e=tn,tn=null,ul=0,P&6)throw Error(h(331));var l=P;for(P|=4,w=e.current;w!==null;){var o=w,u=o.child;if(w.flags&16){var i=o.deletions;if(i!==null){for(var s=0;sA()-Uu?_n(e,0):ju|=t),ae(e,n)}function wc(e,n){n===0&&(e.mode&1?(n=mr,mr<<=1,!(mr&130023424)&&(mr=4194304)):n=1);var t=re();e=Qe(e,n),e!==null&&(Zt(e,n,t),ae(e,t))}function ep(e){var n=e.memoizedState,t=0;n!==null&&(t=n.retryLane),wc(e,t)}function np(e,n){var t=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(t=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(h(314))}r!==null&&r.delete(n),wc(e,t)}var Sc;Sc=function(e,n,t){if(e!==null)if(e.memoizedProps!==n.pendingProps||ie.current)ue=!0;else{if(!(e.lanes&t)&&!(n.flags&128))return ue=!1,Hd(e,n,t);ue=!!(e.flags&131072)}else ue=!1,M&&n.flags&1048576&&_a(n,Jr,n.index);switch(n.lanes=0,n.tag){case 2:var r=n.type;Ir(e,n),e=n.pendingProps;var l=et(n,ee.current);Jn(n,t),l=Ru(null,n,r,e,l,t);var o=Ou();return n.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(n.tag=1,n.memoizedState=null,n.updateQueue=null,se(r)?(o=!0,Gr(n)):o=!1,n.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Nu(n),l.updater=vl,n.stateNode=l,l._reactInternals=n,Ho(n,r,e,t),n=Qo(null,n,r,!0,o,t)):(n.tag=0,M&&o&&wu(n),te(null,n,l,t),n=n.child),n;case 16:r=n.elementType;e:{switch(Ir(e,n),e=n.pendingProps,l=r._init,r=l(r._payload),n.type=r,l=n.tag=rp(r),e=xe(r,e),l){case 0:n=Wo(null,n,r,e,t);break e;case 1:n=ps(null,n,r,e,t);break e;case 11:n=fs(null,n,r,e,t);break e;case 14:n=ds(null,n,r,xe(r.type,e),t);break e}throw Error(h(306,r,""))}return n;case 0:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:xe(r,l),Wo(e,n,r,l,t);case 1:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:xe(r,l),ps(e,n,r,l,t);case 3:e:{if(rc(n),e===null)throw Error(h(387));r=n.pendingProps,o=n.memoizedState,l=o.element,Pa(e,n),el(n,r,null,t);var u=n.memoizedState;if(r=u.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:u.cache,pendingSuspenseBoundaries:u.pendingSuspenseBoundaries,transitions:u.transitions},n.updateQueue.baseState=o,n.memoizedState=o,n.flags&256){l=lt(Error(h(423)),n),n=ms(e,n,r,t,l);break e}else if(r!==l){l=lt(Error(h(424)),n),n=ms(e,n,r,t,l);break e}else for(fe=un(n.stateNode.containerInfo.firstChild),de=n,M=!0,Pe=null,t=Ra(n,null,r,t),n.child=t;t;)t.flags=t.flags&-3|4096,t=t.sibling;else{if(nt(),r===l){n=Ke(e,n,t);break e}te(e,n,r,t)}n=n.child}return n;case 5:return Oa(n),e===null&&Vo(n),r=n.type,l=n.pendingProps,o=e!==null?e.memoizedProps:null,u=l.children,Mo(r,l)?u=null:o!==null&&Mo(r,o)&&(n.flags|=32),tc(e,n),te(e,n,u,t),n.child;case 6:return e===null&&Vo(n),null;case 13:return lc(e,n,t);case 4:return Pu(n,n.stateNode.containerInfo),r=n.pendingProps,e===null?n.child=tt(n,null,r,t):te(e,n,r,t),n.child;case 11:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:xe(r,l),fs(e,n,r,l,t);case 7:return te(e,n,n.pendingProps,t),n.child;case 8:return te(e,n,n.pendingProps.children,t),n.child;case 12:return te(e,n,n.pendingProps.children,t),n.child;case 10:e:{if(r=n.type._context,l=n.pendingProps,o=n.memoizedProps,u=l.value,R(qr,r._currentValue),r._currentValue=u,o!==null)if(Le(o.value,u)){if(o.children===l.children&&!ie.current){n=Ke(e,n,t);break e}}else for(o=n.child,o!==null&&(o.return=n);o!==null;){var i=o.dependencies;if(i!==null){u=o.child;for(var s=i.firstContext;s!==null;){if(s.context===r){if(o.tag===1){s=He(-1,t&-t),s.tag=2;var f=o.updateQueue;if(f!==null){f=f.shared;var m=f.pending;m===null?s.next=s:(s.next=m.next,m.next=s),f.pending=s}}o.lanes|=t,s=o.alternate,s!==null&&(s.lanes|=t),Ao(o.return,t,n),i.lanes|=t;break}s=s.next}}else if(o.tag===10)u=o.type===n.type?null:o.child;else if(o.tag===18){if(u=o.return,u===null)throw Error(h(341));u.lanes|=t,i=u.alternate,i!==null&&(i.lanes|=t),Ao(u,t,n),u=o.sibling}else u=o.child;if(u!==null)u.return=o;else for(u=o;u!==null;){if(u===n){u=null;break}if(o=u.sibling,o!==null){o.return=u.return,u=o;break}u=u.return}o=u}te(e,n,l.children,t),n=n.child}return n;case 9:return l=n.type,r=n.pendingProps.children,Jn(n,t),l=ke(l),r=r(l),n.flags|=1,te(e,n,r,t),n.child;case 14:return r=n.type,l=xe(r,n.pendingProps),l=xe(r.type,l),ds(e,n,r,l,t);case 15:return ec(e,n,n.type,n.pendingProps,t);case 17:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:xe(r,l),Ir(e,n),n.tag=1,se(r)?(e=!0,Gr(n)):e=!1,Jn(n,t),Ta(n,r,l),Ho(n,r,l,t),Qo(null,n,r,!0,e,t);case 19:return oc(e,n,t);case 22:return nc(e,n,t)}throw Error(h(156,n.tag))};function kc(e,n){return Ys(e,n)}function tp(e,n,t,r){this.tag=e,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function we(e,n,t,r){return new tp(e,n,t,r)}function Hu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function rp(e){if(typeof e=="function")return Hu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===iu)return 11;if(e===su)return 14}return 2}function fn(e,n){var t=e.alternate;return t===null?(t=we(e.tag,n,e.key,e.mode),t.elementType=e.elementType,t.type=e.type,t.stateNode=e.stateNode,t.alternate=e,e.alternate=t):(t.pendingProps=n,t.type=e.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=e.flags&14680064,t.childLanes=e.childLanes,t.lanes=e.lanes,t.child=e.child,t.memoizedProps=e.memoizedProps,t.memoizedState=e.memoizedState,t.updateQueue=e.updateQueue,n=e.dependencies,t.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},t.sibling=e.sibling,t.index=e.index,t.ref=e.ref,t}function Ur(e,n,t,r,l,o){var u=2;if(r=e,typeof e=="function")Hu(e)&&(u=1);else if(typeof e=="string")u=5;else e:switch(e){case Fn:return Cn(t.children,l,o,n);case uu:u=8,l|=8;break;case fo:return e=we(12,t,n,l|2),e.elementType=fo,e.lanes=o,e;case po:return e=we(13,t,n,l),e.elementType=po,e.lanes=o,e;case mo:return e=we(19,t,n,l),e.elementType=mo,e.lanes=o,e;case Ls:return wl(t,l,o,n);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case zs:u=10;break e;case Ts:u=9;break e;case iu:u=11;break e;case su:u=14;break e;case Je:u=16,r=null;break e}throw Error(h(130,e==null?e:typeof e,""))}return n=we(u,t,n,l),n.elementType=e,n.type=r,n.lanes=o,n}function Cn(e,n,t,r){return e=we(7,e,r,n),e.lanes=t,e}function wl(e,n,t,r){return e=we(22,e,r,n),e.elementType=Ls,e.lanes=t,e.stateNode={isHidden:!1},e}function so(e,n,t){return e=we(6,e,null,n),e.lanes=t,e}function ao(e,n,t){return n=we(4,e.children!==null?e.children:[],e.key,n),n.lanes=t,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function lp(e,n,t,r,l){this.tag=n,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Kl(0),this.expirationTimes=Kl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Kl(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function $u(e,n,t,r,l,o,u,i,s){return e=new lp(e,n,t,i,s),n===1?(n=1,o===!0&&(n|=8)):n=0,o=we(3,null,null,n),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:t,cache:null,transitions:null,pendingSuspenseBoundaries:null},Nu(o),e}function op(e,n,t){var r=3{"use strict";function Nc(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Nc)}catch(e){console.error(e)}}Nc(),Pc.exports=xc()});var Lc=je(Yu=>{"use strict";var Tc=zc();Yu.createRoot=Tc.createRoot,Yu.hydrateRoot=Tc.hydrateRoot;var Pp});var Oc=je(Cl=>{"use strict";var cp=Ol(),fp=Symbol.for("react.element"),dp=Symbol.for("react.fragment"),pp=Object.prototype.hasOwnProperty,mp=cp.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,vp={key:!0,ref:!0,__self:!0,__source:!0};function Rc(e,n,t){var r,l={},o=null,u=null;t!==void 0&&(o=""+t),n.key!==void 0&&(o=""+n.key),n.ref!==void 0&&(u=n.ref);for(r in n)pp.call(n,r)&&!vp.hasOwnProperty(r)&&(l[r]=n[r]);if(e&&e.defaultProps)for(r in n=e.defaultProps,n)l[r]===void 0&&(l[r]=n[r]);return{$$typeof:fp,type:e,key:o,ref:u,props:l,_owner:mp.current}}Cl.Fragment=dp;Cl.jsx=Rc;Cl.jsxs=Rc});var Xu=je((Lp,Dc)=>{"use strict";Dc.exports=Oc()});var wp={};Qc(wp,{renderHello:()=>gp});var xl=Nl(Lc());var er=Nl(Xu()),Mc=()=>(0,er.jsx)("h1",{children:"React component Header"}),Ic=()=>(0,er.jsx)("div",{children:"This is client-side content from React"}),Fc=e=>(0,er.jsxs)("div",{children:["Hello ",e," (Client-side React, rendering server-side data)"]});var jc=document.getElementById("react-header");if(!jc)throw new Error("Could not find element with id react-header");var hp=(0,xl.createRoot)(jc);hp.render(Mc());var Uc=document.getElementById("react-content");if(!Uc)throw new Error("Could not find element with id react-content");var yp=(0,xl.createRoot)(Uc);yp.render(Ic());function gp(e,n){let t=document.getElementById(e);if(!t)throw new Error(`Could not find element with id ${e}`);(0,xl.createRoot)(t).render(Fc(n))}return Kc(wp);})(); +`+o.stack}return{value:e,source:n,stack:l,digest:null}}function uo(e,n,t){return{value:e,source:null,stack:t??null,digest:n??null}}function Wo(e,n){try{console.error(n.value)}catch(t){setTimeout(function(){throw t})}}var Vd=typeof WeakMap=="function"?WeakMap:Map;function qa(e,n,t){t=Be(-1,t),t.tag=3,t.payload={element:null};var r=n.value;return t.callback=function(){ol||(ol=!0,bo=r),Wo(e,n)},t}function ba(e,n,t){t=Be(-1,t),t.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=n.value;t.payload=function(){return r(l)},t.callback=function(){Wo(e,n)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(t.callback=function(){Wo(e,n),typeof r!="function"&&(an===null?an=new Set([this]):an.add(this));var u=n.stack;this.componentDidCatch(n.value,{componentStack:u!==null?u:""})}),t}function ss(e,n,t){var r=e.pingCache;if(r===null){r=e.pingCache=new Vd;var l=new Set;r.set(n,l)}else l=r.get(n),l===void 0&&(l=new Set,r.set(n,l));l.has(t)||(l.add(t),e=bd.bind(null,e,n,t),n.then(e,e))}function as(e){do{var n;if((n=e.tag===13)&&(n=e.memoizedState,n=n!==null?n.dehydrated!==null:!0),n)return e;e=e.return}while(e!==null);return null}function cs(e,n,t,r,l){return e.mode&1?(e.flags|=65536,e.lanes=l,e):(e===n?e.flags|=65536:(e.flags|=128,t.flags|=131072,t.flags&=-52805,t.tag===1&&(t.alternate===null?t.tag=17:(n=Be(-1,1),n.tag=2,sn(t,n,1))),t.lanes|=1),e)}var Ad=Ye.ReactCurrentOwner,ue=!1;function te(e,n,t,r){n.child=e===null?Ra(n,null,t,r):tt(n,e.child,t,r)}function fs(e,n,t,r,l){t=t.render;var o=n.ref;return Jn(n,l),r=Ru(e,n,t,r,o,l),t=Ou(),e!==null&&!ue?(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~l,Ke(e,n,l)):(M&&t&&wu(n),n.flags|=1,te(e,n,r,l),n.child)}function ds(e,n,t,r,l){if(e===null){var o=t.type;return typeof o=="function"&&!Bu(o)&&o.defaultProps===void 0&&t.compare===null&&t.defaultProps===void 0?(n.tag=15,n.type=o,ec(e,n,o,r,l)):(e=Ur(t.type,null,r,n,n.mode,l),e.ref=n.ref,e.return=n,n.child=e)}if(o=e.child,!(e.lanes&l)){var u=o.memoizedProps;if(t=t.compare,t=t!==null?t:At,t(u,r)&&e.ref===n.ref)return Ke(e,n,l)}return n.flags|=1,e=fn(o,r),e.ref=n.ref,e.return=n,n.child=e}function ec(e,n,t,r,l){if(e!==null){var o=e.memoizedProps;if(At(o,r)&&e.ref===n.ref)if(ue=!1,n.pendingProps=r=o,(e.lanes&l)!==0)e.flags&131072&&(ue=!0);else return n.lanes=e.lanes,Ke(e,n,l)}return $o(e,n,t,r,l)}function nc(e,n,t){var r=n.pendingProps,l=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(n.mode&1))n.memoizedState={baseLanes:0,cachePool:null,transitions:null},R(Kn,ce),ce|=t;else{if(!(t&1073741824))return e=o!==null?o.baseLanes|t:t,n.lanes=n.childLanes=1073741824,n.memoizedState={baseLanes:e,cachePool:null,transitions:null},n.updateQueue=null,R(Kn,ce),ce|=e,null;n.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:t,R(Kn,ce),ce|=r}else o!==null?(r=o.baseLanes|t,n.memoizedState=null):r=t,R(Kn,ce),ce|=r;return te(e,n,l,t),n.child}function tc(e,n){var t=n.ref;(e===null&&t!==null||e!==null&&e.ref!==t)&&(n.flags|=512,n.flags|=2097152)}function $o(e,n,t,r,l){var o=se(t)?xn:ee.current;return o=et(n,o),Jn(n,l),t=Ru(e,n,t,r,o,l),r=Ou(),e!==null&&!ue?(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~l,Ke(e,n,l)):(M&&r&&wu(n),n.flags|=1,te(e,n,t,l),n.child)}function ps(e,n,t,r,l){if(se(t)){var o=!0;Gr(n)}else o=!1;if(Jn(n,l),n.stateNode===null)Ir(e,n),Ta(n,t,r),Bo(n,t,r,l),r=!0;else if(e===null){var u=n.stateNode,i=n.memoizedProps;u.props=i;var s=u.context,f=t.contextType;typeof f=="object"&&f!==null?f=ke(f):(f=se(t)?xn:ee.current,f=et(n,f));var m=t.getDerivedStateFromProps,v=typeof m=="function"||typeof u.getSnapshotBeforeUpdate=="function";v||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(i!==r||s!==f)&&ls(n,u,r,f),qe=!1;var p=n.memoizedState;u.state=p,el(n,r,u,l),s=n.memoizedState,i!==r||p!==s||ie.current||qe?(typeof m=="function"&&(Ho(n,t,m,r),s=n.memoizedState),(i=qe||rs(n,t,i,r,p,s,f))?(v||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(n.flags|=4194308)):(typeof u.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=r,n.memoizedState=s),u.props=r,u.state=s,u.context=f,r=i):(typeof u.componentDidMount=="function"&&(n.flags|=4194308),r=!1)}else{u=n.stateNode,Pa(e,n),i=n.memoizedProps,f=n.type===n.elementType?i:xe(n.type,i),u.props=f,v=n.pendingProps,p=u.context,s=t.contextType,typeof s=="object"&&s!==null?s=ke(s):(s=se(t)?xn:ee.current,s=et(n,s));var g=t.getDerivedStateFromProps;(m=typeof g=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(i!==v||p!==s)&&ls(n,u,r,s),qe=!1,p=n.memoizedState,u.state=p,el(n,r,u,l);var S=n.memoizedState;i!==v||p!==S||ie.current||qe?(typeof g=="function"&&(Ho(n,t,g,r),S=n.memoizedState),(f=qe||rs(n,t,f,r,p,S,s)||!1)?(m||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(r,S,s),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(r,S,s)),typeof u.componentDidUpdate=="function"&&(n.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof u.componentDidUpdate!="function"||i===e.memoizedProps&&p===e.memoizedState||(n.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&p===e.memoizedState||(n.flags|=1024),n.memoizedProps=r,n.memoizedState=S),u.props=r,u.state=S,u.context=s,r=f):(typeof u.componentDidUpdate!="function"||i===e.memoizedProps&&p===e.memoizedState||(n.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&p===e.memoizedState||(n.flags|=1024),r=!1)}return Qo(e,n,t,r,o,l)}function Qo(e,n,t,r,l,o){tc(e,n);var u=(n.flags&128)!==0;if(!r&&!u)return l&&qi(n,t,!1),Ke(e,n,o);r=n.stateNode,Ad.current=n;var i=u&&typeof t.getDerivedStateFromError!="function"?null:r.render();return n.flags|=1,e!==null&&u?(n.child=tt(n,e.child,null,o),n.child=tt(n,null,i,o)):te(e,n,i,o),n.memoizedState=r.state,l&&qi(n,t,!0),n.child}function rc(e){var n=e.stateNode;n.pendingContext?Ji(e,n.pendingContext,n.pendingContext!==n.context):n.context&&Ji(e,n.context,!1),Pu(e,n.containerInfo)}function ms(e,n,t,r,l){return nt(),ku(l),n.flags|=256,te(e,n,t,r),n.child}var Ko={dehydrated:null,treeContext:null,retryLane:0};function Yo(e){return{baseLanes:e,cachePool:null,transitions:null}}function lc(e,n,t){var r=n.pendingProps,l=I.current,o=!1,u=(n.flags&128)!==0,i;if((i=u)||(i=e!==null&&e.memoizedState===null?!1:(l&2)!==0),i?(o=!0,n.flags&=-129):(e===null||e.memoizedState!==null)&&(l|=1),R(I,l&1),e===null)return Vo(n),e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(n.mode&1?e.data==="$!"?n.lanes=8:n.lanes=1073741824:n.lanes=1,null):(u=r.children,e=r.fallback,o?(r=n.mode,o=n.child,u={mode:"hidden",children:u},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=u):o=wl(u,r,0,null),e=Cn(e,r,t,null),o.return=n,e.return=n,o.sibling=e,n.child=o,n.child.memoizedState=Yo(t),n.memoizedState=Ko,e):Iu(n,u));if(l=e.memoizedState,l!==null&&(i=l.dehydrated,i!==null))return Hd(e,n,u,r,i,l,t);if(o){o=r.fallback,u=n.mode,l=e.child,i=l.sibling;var s={mode:"hidden",children:r.children};return!(u&1)&&n.child!==l?(r=n.child,r.childLanes=0,r.pendingProps=s,n.deletions=null):(r=fn(l,s),r.subtreeFlags=l.subtreeFlags&14680064),i!==null?o=fn(i,o):(o=Cn(o,u,t,null),o.flags|=2),o.return=n,r.return=n,r.sibling=o,n.child=r,r=o,o=n.child,u=e.child.memoizedState,u=u===null?Yo(t):{baseLanes:u.baseLanes|t,cachePool:null,transitions:u.transitions},o.memoizedState=u,o.childLanes=e.childLanes&~t,n.memoizedState=Ko,r}return o=e.child,e=o.sibling,r=fn(o,{mode:"visible",children:r.children}),!(n.mode&1)&&(r.lanes=t),r.return=n,r.sibling=null,e!==null&&(t=n.deletions,t===null?(n.deletions=[e],n.flags|=16):t.push(e)),n.child=r,n.memoizedState=null,r}function Iu(e,n){return n=wl({mode:"visible",children:n},e.mode,0,null),n.return=e,e.child=n}function Nr(e,n,t,r){return r!==null&&ku(r),tt(n,e.child,null,t),e=Iu(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function Hd(e,n,t,r,l,o,u){if(t)return n.flags&256?(n.flags&=-257,r=uo(Error(h(422))),Nr(e,n,u,r)):n.memoizedState!==null?(n.child=e.child,n.flags|=128,null):(o=r.fallback,l=n.mode,r=wl({mode:"visible",children:r.children},l,0,null),o=Cn(o,l,u,null),o.flags|=2,r.return=n,o.return=n,r.sibling=o,n.child=r,n.mode&1&&tt(n,e.child,null,u),n.child.memoizedState=Yo(u),n.memoizedState=Ko,o);if(!(n.mode&1))return Nr(e,n,u,null);if(l.data==="$!"){if(r=l.nextSibling&&l.nextSibling.dataset,r)var i=r.dgst;return r=i,o=Error(h(419)),r=uo(o,r,void 0),Nr(e,n,u,r)}if(i=(u&e.childLanes)!==0,ue||i){if(r=K,r!==null){switch(u&-u){case 4:l=2;break;case 16:l=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:l=32;break;case 536870912:l=268435456;break;default:l=0}l=l&(r.suspendedLanes|u)?0:l,l!==0&&l!==o.retryLane&&(o.retryLane=l,Qe(e,l),Te(r,e,l,-1))}return Hu(),r=uo(Error(h(421))),Nr(e,n,u,r)}return l.data==="$?"?(n.flags|=128,n.child=e.child,n=ep.bind(null,e),l._reactRetry=n,null):(e=o.treeContext,fe=un(l.nextSibling),de=n,M=!0,Pe=null,e!==null&&(ye[ge++]=Ae,ye[ge++]=He,ye[ge++]=Nn,Ae=e.id,He=e.overflow,Nn=n),n=Iu(n,r.children),n.flags|=4096,n)}function vs(e,n,t){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n),Ao(e.return,n,t)}function io(e,n,t,r,l){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:r,tail:t,tailMode:l}:(o.isBackwards=n,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=t,o.tailMode=l)}function oc(e,n,t){var r=n.pendingProps,l=r.revealOrder,o=r.tail;if(te(e,n,r.children,t),r=I.current,r&2)r=r&1|2,n.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&vs(e,t,n);else if(e.tag===19)vs(e,t,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(R(I,r),!(n.mode&1))n.memoizedState=null;else switch(l){case"forwards":for(t=n.child,l=null;t!==null;)e=t.alternate,e!==null&&nl(e)===null&&(l=t),t=t.sibling;t=l,t===null?(l=n.child,n.child=null):(l=t.sibling,t.sibling=null),io(n,!1,l,t,o);break;case"backwards":for(t=null,l=n.child,n.child=null;l!==null;){if(e=l.alternate,e!==null&&nl(e)===null){n.child=l;break}e=l.sibling,l.sibling=t,t=l,l=e}io(n,!0,t,null,o);break;case"together":io(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function Ir(e,n){!(n.mode&1)&&e!==null&&(e.alternate=null,n.alternate=null,n.flags|=2)}function Ke(e,n,t){if(e!==null&&(n.dependencies=e.dependencies),zn|=n.lanes,!(t&n.childLanes))return null;if(e!==null&&n.child!==e.child)throw Error(h(153));if(n.child!==null){for(e=n.child,t=fn(e,e.pendingProps),n.child=t,t.return=n;e.sibling!==null;)e=e.sibling,t=t.sibling=fn(e,e.pendingProps),t.return=n;t.sibling=null}return n.child}function Bd(e,n,t){switch(n.tag){case 3:rc(n),nt();break;case 5:Oa(n);break;case 1:se(n.type)&&Gr(n);break;case 4:Pu(n,n.stateNode.containerInfo);break;case 10:var r=n.type._context,l=n.memoizedProps.value;R(qr,r._currentValue),r._currentValue=l;break;case 13:if(r=n.memoizedState,r!==null)return r.dehydrated!==null?(R(I,I.current&1),n.flags|=128,null):t&n.child.childLanes?lc(e,n,t):(R(I,I.current&1),e=Ke(e,n,t),e!==null?e.sibling:null);R(I,I.current&1);break;case 19:if(r=(t&n.childLanes)!==0,e.flags&128){if(r)return oc(e,n,t);n.flags|=128}if(l=n.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),R(I,I.current),r)break;return null;case 22:case 23:return n.lanes=0,nc(e,n,t)}return Ke(e,n,t)}var uc,Xo,ic,sc;uc=function(e,n){for(var t=n.child;t!==null;){if(t.tag===5||t.tag===6)e.appendChild(t.stateNode);else if(t.tag!==4&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===n)break;for(;t.sibling===null;){if(t.return===null||t.return===n)return;t=t.return}t.sibling.return=t.return,t=t.sibling}};Xo=function(){};ic=function(e,n,t,r){var l=e.memoizedProps;if(l!==r){e=n.stateNode,En(Fe.current);var o=null;switch(t){case"input":l=ho(e,l),r=ho(e,r),o=[];break;case"select":l=j({},l,{value:void 0}),r=j({},r,{value:void 0}),o=[];break;case"textarea":l=wo(e,l),r=wo(e,r),o=[];break;default:typeof l.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Yr)}ko(t,r);var u;t=null;for(f in l)if(!r.hasOwnProperty(f)&&l.hasOwnProperty(f)&&l[f]!=null)if(f==="style"){var i=l[f];for(u in i)i.hasOwnProperty(u)&&(t||(t={}),t[u]="")}else f!=="dangerouslySetInnerHTML"&&f!=="children"&&f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&f!=="autoFocus"&&(Dt.hasOwnProperty(f)?o||(o=[]):(o=o||[]).push(f,null));for(f in r){var s=r[f];if(i=l?.[f],r.hasOwnProperty(f)&&s!==i&&(s!=null||i!=null))if(f==="style")if(i){for(u in i)!i.hasOwnProperty(u)||s&&s.hasOwnProperty(u)||(t||(t={}),t[u]="");for(u in s)s.hasOwnProperty(u)&&i[u]!==s[u]&&(t||(t={}),t[u]=s[u])}else t||(o||(o=[]),o.push(f,t)),t=s;else f==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,i=i?i.__html:void 0,s!=null&&i!==s&&(o=o||[]).push(f,s)):f==="children"?typeof s!="string"&&typeof s!="number"||(o=o||[]).push(f,""+s):f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&(Dt.hasOwnProperty(f)?(s!=null&&f==="onScroll"&&O("scroll",e),o||i===s||(o=[])):(o=o||[]).push(f,s))}t&&(o=o||[]).push("style",t);var f=o;(n.updateQueue=f)&&(n.flags|=4)}};sc=function(e,n,t,r){t!==r&&(n.flags|=4)};function yt(e,n){if(!M)switch(e.tailMode){case"hidden":n=e.tail;for(var t=null;n!==null;)n.alternate!==null&&(t=n),n=n.sibling;t===null?e.tail=null:t.sibling=null;break;case"collapsed":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function q(e){var n=e.alternate!==null&&e.alternate.child===e.child,t=0,r=0;if(n)for(var l=e.child;l!==null;)t|=l.lanes|l.childLanes,r|=l.subtreeFlags&14680064,r|=l.flags&14680064,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)t|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=t,n}function Wd(e,n,t){var r=n.pendingProps;switch(Su(n),n.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return q(n),null;case 1:return se(n.type)&&Xr(),q(n),null;case 3:return r=n.stateNode,rt(),D(ie),D(ee),Tu(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Cr(n)?n.flags|=4:e===null||e.memoizedState.isDehydrated&&!(n.flags&256)||(n.flags|=1024,Pe!==null&&(tu(Pe),Pe=null))),Xo(e,n),q(n),null;case 5:zu(n);var l=En(Qt.current);if(t=n.type,e!==null&&n.stateNode!=null)ic(e,n,t,r,l),e.ref!==n.ref&&(n.flags|=512,n.flags|=2097152);else{if(!r){if(n.stateNode===null)throw Error(h(166));return q(n),null}if(e=En(Fe.current),Cr(n)){r=n.stateNode,t=n.type;var o=n.memoizedProps;switch(r[Me]=n,r[Wt]=o,e=(n.mode&1)!==0,t){case"dialog":O("cancel",r),O("close",r);break;case"iframe":case"object":case"embed":O("load",r);break;case"video":case"audio":for(l=0;l<_t.length;l++)O(_t[l],r);break;case"source":O("error",r);break;case"img":case"image":case"link":O("error",r),O("load",r);break;case"details":O("toggle",r);break;case"input":_i(r,o),O("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},O("invalid",r);break;case"textarea":xi(r,o),O("invalid",r)}ko(t,o),l=null;for(var u in o)if(o.hasOwnProperty(u)){var i=o[u];u==="children"?typeof i=="string"?r.textContent!==i&&(o.suppressHydrationWarning!==!0&&_r(r.textContent,i,e),l=["children",i]):typeof i=="number"&&r.textContent!==""+i&&(o.suppressHydrationWarning!==!0&&_r(r.textContent,i,e),l=["children",""+i]):Dt.hasOwnProperty(u)&&i!=null&&u==="onScroll"&&O("scroll",r)}switch(t){case"input":fr(r),Ci(r,o,!0);break;case"textarea":fr(r),Ni(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=Yr)}r=l,n.updateQueue=r,r!==null&&(n.flags|=4)}else{u=l.nodeType===9?l:l.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Is(t)),e==="http://www.w3.org/1999/xhtml"?t==="script"?(e=u.createElement("div"),e.innerHTML="