next
Version:
The React Framework
1 lines • 593 kB
JavaScript
(()=>{var __webpack_modules__={"./dist/build/webpack/alias/react-dom-server-experimental.js"(__unused_rspack_module,exports,__webpack_require__){"use strict";var b;function error(){throw Object.defineProperty(Error("Internal Error: do not use legacy react-dom/server APIs. If you encountered this error, please open an issue on the Next.js repo."),"__NEXT_ERROR_CODE",{value:"E1021",enumerable:!1,configurable:!0})}exports.version=(b=__webpack_require__("./dist/compiled/react-dom-experimental/cjs/react-dom-server.node.development.js")).version,exports.renderToReadableStream=b.renderToReadableStream,exports.renderToString=error,exports.renderToStaticMarkup=error,b.resume&&(exports.resume=b.resume),b.renderToPipeableStream&&(exports.renderToPipeableStream=b.renderToPipeableStream),b.resumeToPipeableStream&&(exports.resumeToPipeableStream=b.resumeToPipeableStream)},"./dist/compiled/react-dom-experimental/cjs/react-dom-server.node.development.js"(__unused_rspack_module,exports,__webpack_require__){"use strict";!function(){function styleReplacer(match,prefix,s,suffix){return""+prefix+("s"===s?"\\73 ":"\\53 ")+suffix}function scriptReplacer(match,prefix,s,suffix){return""+prefix+("s"===s?"\\u0073":"\\u0053")+suffix}function getIteratorFn(maybeIterable){return null===maybeIterable||"object"!=typeof maybeIterable?null:"function"==typeof(maybeIterable=MAYBE_ITERATOR_SYMBOL&&maybeIterable[MAYBE_ITERATOR_SYMBOL]||maybeIterable["@@iterator"])?maybeIterable:null}function objectName(object){return(object=Object.prototype.toString.call(object)).slice(8,object.length-1)}function describeKeyForErrorMessage(key){var encodedKey=JSON.stringify(key);return'"'+key+'"'===encodedKey?key:encodedKey}function describeValueForErrorMessage(value){switch(typeof value){case"string":return JSON.stringify(10>=value.length?value:value.slice(0,10)+"...");case"object":if(isArrayImpl(value))return"[...]";if(null!==value&&value.$$typeof===CLIENT_REFERENCE_TAG)return"client";return"Object"===(value=objectName(value))?"{...}":value;case"function":return value.$$typeof===CLIENT_REFERENCE_TAG?"client":(value=value.displayName||value.name)?"function "+value:"function";default:return String(value)}}function describeElementType(type){if("string"==typeof type)return type;switch(type){case REACT_SUSPENSE_TYPE:return"Suspense";case REACT_SUSPENSE_LIST_TYPE:return"SuspenseList";case REACT_VIEW_TRANSITION_TYPE:return"ViewTransition"}if("object"==typeof type)switch(type.$$typeof){case REACT_FORWARD_REF_TYPE:return describeElementType(type.render);case REACT_MEMO_TYPE:return describeElementType(type.type);case REACT_LAZY_TYPE:var payload=type._payload;type=type._init;try{return describeElementType(type(payload))}catch(x){}}return""}function flushBuffered(destination){"function"==typeof destination.flush&&destination.flush()}function writeChunk(destination,chunk){if("string"==typeof chunk){if(0!==chunk.length)if(4096<3*chunk.length)0<writtenBytes&&(writeToDestination(destination,currentView.subarray(0,writtenBytes)),currentView=new Uint8Array(4096),writtenBytes=0),writeToDestination(destination,chunk);else{var target=currentView;0<writtenBytes&&(target=currentView.subarray(writtenBytes));var read=(target=textEncoder.encodeInto(chunk,target)).read;writtenBytes+=target.written,read<chunk.length&&(writeToDestination(destination,currentView.subarray(0,writtenBytes)),currentView=new Uint8Array(4096),writtenBytes=textEncoder.encodeInto(chunk.slice(read),currentView).written),4096===writtenBytes&&(writeToDestination(destination,currentView),currentView=new Uint8Array(4096),writtenBytes=0)}}else 0!==chunk.byteLength&&(4096<chunk.byteLength?(0<writtenBytes&&(writeToDestination(destination,currentView.subarray(0,writtenBytes)),currentView=new Uint8Array(4096),writtenBytes=0),writeToDestination(destination,chunk)):((target=currentView.length-writtenBytes)<chunk.byteLength&&(0===target?writeToDestination(destination,currentView):(currentView.set(chunk.subarray(0,target),writtenBytes),writtenBytes+=target,writeToDestination(destination,currentView),chunk=chunk.subarray(target)),currentView=new Uint8Array(4096),writtenBytes=0),currentView.set(chunk,writtenBytes),4096===(writtenBytes+=chunk.byteLength)&&(writeToDestination(destination,currentView),currentView=new Uint8Array(4096),writtenBytes=0)))}function writeToDestination(destination,view){destination=destination.write(view),destinationHasCapacity$1=destinationHasCapacity$1&&destination}function writeChunkAndReturn(destination,chunk){return writeChunk(destination,chunk),destinationHasCapacity$1}function completeWriting(destination){currentView&&0<writtenBytes&&destination.write(currentView.subarray(0,writtenBytes)),currentView=null,writtenBytes=0,destinationHasCapacity$1=!0}function stringToPrecomputedChunk(content){return 4096<(content=textEncoder.encode(content)).byteLength&&console.error("precomputed chunks must be smaller than the view size configured for this host. This is a bug in React."),content}function byteLengthOfChunk(chunk){return"string"==typeof chunk?Buffer.byteLength(chunk,"utf8"):chunk.byteLength}function typeName(value){return"function"==typeof Symbol&&Symbol.toStringTag&&value[Symbol.toStringTag]||value.constructor.name||"Object"}function willCoercionThrow(value){try{return!1}catch(e){return!0}}function checkAttributeStringCoercion(value,attributeName){if(willCoercionThrow(value))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",attributeName,typeName(value)),""+value}function checkCSSPropertyStringCoercion(value,propName){if(willCoercionThrow(value))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",propName,typeName(value)),""+value}function checkHtmlStringCoercion(value){if(willCoercionThrow(value))return console.error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",typeName(value)),""+value}function isAttributeNameSafe(attributeName){return hasOwnProperty.call(validatedAttributeNameCache,attributeName)?!0:hasOwnProperty.call(illegalAttributeNameCache,attributeName)?!1:VALID_ATTRIBUTE_NAME_REGEX.test(attributeName)?validatedAttributeNameCache[attributeName]=!0:(illegalAttributeNameCache[attributeName]=!0,console.error("Invalid attribute name: `%s`",attributeName),!1)}function checkControlledValueProps(tagName,props){hasReadOnlyValue[props.type]||props.onChange||props.onInput||props.readOnly||props.disabled||null==props.value||("select"===tagName?console.error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`."):console.error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.")),props.onChange||props.readOnly||props.disabled||null==props.checked||console.error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function escapeTextForBrowser(text){if("boolean"==typeof text||"number"==typeof text||"bigint"==typeof text)return""+text;checkHtmlStringCoercion(text);var match=matchHtmlRegExp.exec(text=""+text);if(match){var index,html="",lastIndex=0;for(index=match.index;index<text.length;index++){switch(text.charCodeAt(index)){case 34:match=""";break;case 38:match="&";break;case 39:match="'";break;case 60:match="<";break;case 62:match=">";break;default:continue}lastIndex!==index&&(html+=text.slice(lastIndex,index)),lastIndex=index+1,html+=match}text=lastIndex!==index?html+text.slice(lastIndex,index):html}return text}function sanitizeURL(url){return isJavaScriptProtocol.test(""+url)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":url}function escapeEntireInlineScriptContent(scriptText){return checkHtmlStringCoercion(scriptText),(""+scriptText).replace(scriptRegex,scriptReplacer)}function createRenderState(resumableState,nonce,externalRuntimeConfig,importMap,onHeaders,maxHeadersLength){var nonceScript="string"==typeof nonce?nonce:nonce&&nonce.script,inlineScriptWithNonce=void 0===nonceScript?startInlineScript:stringToPrecomputedChunk('<script nonce="'+escapeTextForBrowser(nonceScript)+'"'),nonceStyle="string"==typeof nonce?void 0:nonce&&nonce.style,inlineStyleWithNonce=void 0===nonceStyle?startInlineStyle:stringToPrecomputedChunk('<style nonce="'+escapeTextForBrowser(nonceStyle)+'"'),idPrefix=resumableState.idPrefix,bootstrapChunks=[],externalRuntimeScript=null,bootstrapScriptContent=resumableState.bootstrapScriptContent,bootstrapScripts=resumableState.bootstrapScripts,bootstrapModules=resumableState.bootstrapModules;if(void 0!==bootstrapScriptContent&&(bootstrapChunks.push(inlineScriptWithNonce),pushCompletedShellIdAttribute(bootstrapChunks,resumableState),bootstrapChunks.push(endOfStartTag,escapeEntireInlineScriptContent(bootstrapScriptContent),endInlineScript)),void 0!==externalRuntimeConfig&&("string"==typeof externalRuntimeConfig?pushScriptImpl((externalRuntimeScript={src:externalRuntimeConfig,chunks:[]}).chunks,{src:externalRuntimeConfig,async:!0,integrity:void 0,nonce:nonceScript}):pushScriptImpl((externalRuntimeScript={src:externalRuntimeConfig.src,chunks:[]}).chunks,{src:externalRuntimeConfig.src,async:!0,integrity:externalRuntimeConfig.integrity,nonce:nonceScript})),externalRuntimeConfig=[],void 0!==importMap&&(externalRuntimeConfig.push(importMapScriptStart),externalRuntimeConfig.push(escapeEntireInlineScriptContent(JSON.stringify(importMap))),externalRuntimeConfig.push(importMapScriptEnd)),onHeaders&&"number"==typeof maxHeadersLength&&0>=maxHeadersLength&&console.error("React expected a positive non-zero `maxHeadersLength` option but found %s instead. When using the `onHeaders` option you may supply an optional `maxHeadersLength` option as well however, when setting this value to zero or less no headers will be captured.",0===maxHeadersLength?"zero":maxHeadersLength),importMap=onHeaders?{preconnects:"",fontPreloads:"",highImagePreloads:"",remainingCapacity:2+("number"==typeof maxHeadersLength?maxHeadersLength:2e3)}:null,onHeaders={placeholderPrefix:stringToPrecomputedChunk(idPrefix+"P:"),segmentPrefix:stringToPrecomputedChunk(idPrefix+"S:"),boundaryPrefix:stringToPrecomputedChunk(idPrefix+"B:"),startInlineScript:inlineScriptWithNonce,startInlineStyle:inlineStyleWithNonce,preamble:createPreambleState(),externalRuntimeScript:externalRuntimeScript,bootstrapChunks:bootstrapChunks,importMapChunks:externalRuntimeConfig,onHeaders:onHeaders,headers:importMap,resets:{font:{},dns:{},connect:{default:{},anonymous:{},credentials:{}},image:{},style:{}},charsetChunks:[],viewportChunks:[],hoistableChunks:[],preconnects:new Set,fontPreloads:new Set,highImagePreloads:new Set,styles:new Map,bootstrapScripts:new Set,scripts:new Set,bulkPreloads:new Set,preloads:{images:new Map,stylesheets:new Map,scripts:new Map,moduleScripts:new Map},nonce:{script:nonceScript,style:nonceStyle},hoistableState:null,stylesToHoist:!1},void 0!==bootstrapScripts)for(inlineScriptWithNonce=0;inlineScriptWithNonce<bootstrapScripts.length;inlineScriptWithNonce++)nonceStyle=bootstrapScripts[inlineScriptWithNonce],externalRuntimeScript=idPrefix=void 0,importMap={rel:"preload",as:"script",fetchPriority:"low",nonce:nonce},"string"==typeof nonceStyle?importMap.href=inlineStyleWithNonce=nonceStyle:(importMap.href=inlineStyleWithNonce=nonceStyle.src,importMap.integrity=externalRuntimeScript="string"==typeof nonceStyle.integrity?nonceStyle.integrity:void 0,importMap.crossOrigin=idPrefix="string"==typeof nonceStyle||null==nonceStyle.crossOrigin?void 0:"use-credentials"===nonceStyle.crossOrigin?"use-credentials":""),preloadBootstrapScriptOrModule(resumableState,onHeaders,inlineStyleWithNonce,importMap),bootstrapChunks.push(startScriptSrc,escapeTextForBrowser(inlineStyleWithNonce),attributeEnd),nonceScript&&bootstrapChunks.push(scriptNonce,escapeTextForBrowser(nonceScript),attributeEnd),"string"==typeof externalRuntimeScript&&bootstrapChunks.push(scriptIntegirty,escapeTextForBrowser(externalRuntimeScript),attributeEnd),"string"==typeof idPrefix&&bootstrapChunks.push(scriptCrossOrigin,escapeTextForBrowser(idPrefix),attributeEnd),pushCompletedShellIdAttribute(bootstrapChunks,resumableState),bootstrapChunks.push(endAsyncScript);if(void 0!==bootstrapModules)for(nonce=0;nonce<bootstrapModules.length;nonce++)bootstrapScripts=bootstrapModules[nonce],inlineStyleWithNonce=nonceStyle=void 0,idPrefix={rel:"modulepreload",fetchPriority:"low",nonce:nonceScript},"string"==typeof bootstrapScripts?idPrefix.href=inlineScriptWithNonce=bootstrapScripts:(idPrefix.href=inlineScriptWithNonce=bootstrapScripts.src,idPrefix.integrity=inlineStyleWithNonce="string"==typeof bootstrapScripts.integrity?bootstrapScripts.integrity:void 0,idPrefix.crossOrigin=nonceStyle="string"==typeof bootstrapScripts||null==bootstrapScripts.crossOrigin?void 0:"use-credentials"===bootstrapScripts.crossOrigin?"use-credentials":""),preloadBootstrapScriptOrModule(resumableState,onHeaders,inlineScriptWithNonce,idPrefix),bootstrapChunks.push(startModuleSrc,escapeTextForBrowser(inlineScriptWithNonce),attributeEnd),nonceScript&&bootstrapChunks.push(scriptNonce,escapeTextForBrowser(nonceScript),attributeEnd),"string"==typeof inlineStyleWithNonce&&bootstrapChunks.push(scriptIntegirty,escapeTextForBrowser(inlineStyleWithNonce),attributeEnd),"string"==typeof nonceStyle&&bootstrapChunks.push(scriptCrossOrigin,escapeTextForBrowser(nonceStyle),attributeEnd),pushCompletedShellIdAttribute(bootstrapChunks,resumableState),bootstrapChunks.push(endAsyncScript);return onHeaders}function createResumableState(identifierPrefix,externalRuntimeConfig,bootstrapScriptContent,bootstrapScripts,bootstrapModules){var streamingFormat=ScriptStreamingFormat;return void 0!==externalRuntimeConfig&&(streamingFormat=1),{idPrefix:void 0===identifierPrefix?"":identifierPrefix,nextFormID:0,streamingFormat:streamingFormat,bootstrapScriptContent:bootstrapScriptContent,bootstrapScripts:bootstrapScripts,bootstrapModules:bootstrapModules,instructions:NothingSent,hasBody:!1,hasHtml:!1,unknownResources:{},dnsResources:{},connectResources:{default:{},anonymous:{},credentials:{}},imageResources:{},styleResources:{},scriptResources:{},moduleUnknownResources:{},moduleScriptResources:{}}}function createPreambleState(){return{htmlChunks:null,headChunks:null,bodyChunks:null}}function createFormatContext(insertionMode,selectedValue,tagScope,viewTransition){return{insertionMode:insertionMode,selectedValue:selectedValue,tagScope:tagScope,viewTransition:viewTransition}}function createRootFormatContext(namespaceURI){return createFormatContext("http://www.w3.org/2000/svg"===namespaceURI?SVG_MODE:"http://www.w3.org/1998/Math/MathML"===namespaceURI?MATHML_MODE:ROOT_HTML_MODE,null,0,null)}function getChildFormatContext(parentContext,type,props){var subtreeScope=-25&parentContext.tagScope;switch(type){case"noscript":return createFormatContext(HTML_MODE,null,1|subtreeScope,null);case"select":return createFormatContext(HTML_MODE,null!=props.value?props.value:props.defaultValue,subtreeScope,null);case"svg":return createFormatContext(SVG_MODE,null,subtreeScope,null);case"picture":return createFormatContext(HTML_MODE,null,2|subtreeScope,null);case"math":return createFormatContext(MATHML_MODE,null,subtreeScope,null);case"foreignObject":return createFormatContext(HTML_MODE,null,subtreeScope,null);case"table":return createFormatContext(HTML_TABLE_MODE,null,subtreeScope,null);case"thead":case"tbody":case"tfoot":return createFormatContext(HTML_TABLE_BODY_MODE,null,subtreeScope,null);case"colgroup":return createFormatContext(HTML_COLGROUP_MODE,null,subtreeScope,null);case"tr":return createFormatContext(HTML_TABLE_ROW_MODE,null,subtreeScope,null);case"head":if(parentContext.insertionMode<HTML_MODE)return createFormatContext(HTML_HEAD_MODE,null,subtreeScope,null);break;case"html":if(parentContext.insertionMode===ROOT_HTML_MODE)return createFormatContext(HTML_HTML_MODE,null,subtreeScope,null)}return parentContext.insertionMode>=HTML_TABLE_MODE||parentContext.insertionMode<HTML_MODE?createFormatContext(HTML_MODE,null,subtreeScope,null):null!==parentContext.viewTransition||parentContext.tagScope!==subtreeScope?createFormatContext(parentContext.insertionMode,parentContext.selectedValue,subtreeScope,null):parentContext}function getSuspenseViewTransition(parentViewTransition){return null===parentViewTransition?null:{update:parentViewTransition.update,enter:"none",exit:"none",share:parentViewTransition.update,parentEnter:"none",parentExit:"none",name:parentViewTransition.autoName,autoName:parentViewTransition.autoName,nameIdx:0}}function getSuspenseFallbackFormatContext(resumableState,parentContext){return 32&parentContext.tagScope&&(resumableState.instructions|=NeedUpgradeToViewTransitions),createFormatContext(parentContext.insertionMode,parentContext.selectedValue,12|parentContext.tagScope,getSuspenseViewTransition(parentContext.viewTransition))}function getSuspenseContentFormatContext(resumableState,parentContext){resumableState=getSuspenseViewTransition(parentContext.viewTransition);var subtreeScope=16|parentContext.tagScope;return null!==resumableState&&"none"!==resumableState.share&&(subtreeScope|=64),createFormatContext(parentContext.insertionMode,parentContext.selectedValue,subtreeScope,resumableState)}function makeId(resumableState,treeId,localId){return resumableState="_"+resumableState.idPrefix+"R_"+treeId,0<localId&&(resumableState+="H"+localId.toString(32)),resumableState+"_"}function pushTextInstance(target,text,renderState,textEmbedded){return""===text?textEmbedded:(textEmbedded&&target.push(textSeparator),target.push(escapeTextForBrowser(text)),!0)}function pushViewTransitionAttributes(target,formatContext){null!==(formatContext=formatContext.viewTransition)&&("auto"!==formatContext.name&&(pushStringAttribute(target,"vt-name",0===formatContext.nameIdx?formatContext.name:formatContext.name+"_"+formatContext.nameIdx),formatContext.nameIdx++),pushStringAttribute(target,"vt-update",formatContext.update),"none"!==formatContext.enter&&pushStringAttribute(target,"vt-enter",formatContext.enter),"none"!==formatContext.exit&&pushStringAttribute(target,"vt-exit",formatContext.exit),"none"!==formatContext.share&&pushStringAttribute(target,"vt-share",formatContext.share),"none"!==formatContext.parentEnter&&pushStringAttribute(target,"vt-parent-enter",formatContext.parentEnter),"none"!==formatContext.parentExit&&pushStringAttribute(target,"vt-parent-exit",formatContext.parentExit))}function pushStyleAttribute(target,style){if("object"!=typeof style)throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");var styleName,isFirst=!0;for(styleName in style)if(hasOwnProperty.call(style,styleName)){var styleValue=style[styleName];if(null!=styleValue&&"boolean"!=typeof styleValue&&""!==styleValue){if(0===styleName.indexOf("--")){var nameChunk=escapeTextForBrowser(styleName);checkCSSPropertyStringCoercion(styleValue,styleName),styleValue=escapeTextForBrowser((""+styleValue).trim())}else{var value=styleValue;if(-1<(nameChunk=styleName).indexOf("-")){var name=nameChunk;warnedStyleNames.hasOwnProperty(name)&&warnedStyleNames[name]||(warnedStyleNames[name]=!0,console.error("Unsupported style property %s. Did you mean %s?",name,name.replace(msPattern$1,"ms-").replace(hyphenPattern,function(_,character){return character.toUpperCase()})))}else if(badVendoredStyleNamePattern.test(nameChunk))name=nameChunk,warnedStyleNames.hasOwnProperty(name)&&warnedStyleNames[name]||(warnedStyleNames[name]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",name,name.charAt(0).toUpperCase()+name.slice(1)));else if(badStyleValueWithSemicolonPattern.test(value)){name=nameChunk;var value$jscomp$0=value;warnedStyleValues.hasOwnProperty(value$jscomp$0)&&warnedStyleValues[value$jscomp$0]||(warnedStyleValues[value$jscomp$0]=!0,console.error('Style property values shouldn\'t contain a semicolon. Try "%s: %s" instead.',name,value$jscomp$0.replace(badStyleValueWithSemicolonPattern,"")))}"number"==typeof value&&(isNaN(value)?warnedForNaNValue||(warnedForNaNValue=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",nameChunk)):isFinite(value)||warnedForInfinityValue||(warnedForInfinityValue=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",nameChunk))),nameChunk=styleName,void 0!==(value=styleNameCache.get(nameChunk))?nameChunk=value:(value=stringToPrecomputedChunk(escapeTextForBrowser(nameChunk.replace(uppercasePattern,"-$1").toLowerCase().replace(msPattern,"-ms-"))),styleNameCache.set(nameChunk,value),nameChunk=value),"number"==typeof styleValue?styleValue=0===styleValue||unitlessNumbers.has(styleName)?""+styleValue:styleValue+"px":(checkCSSPropertyStringCoercion(styleValue,styleName),styleValue=escapeTextForBrowser((""+styleValue).trim()))}isFirst?(isFirst=!1,target.push(styleAttributeStart,nameChunk,styleAssign,styleValue)):target.push(styleSeparator,nameChunk,styleAssign,styleValue)}}isFirst||target.push(attributeEnd)}function pushBooleanAttribute(target,name,value){value&&"function"!=typeof value&&"symbol"!=typeof value&&target.push(attributeSeparator,name,attributeEmptyString)}function pushStringAttribute(target,name,value){"function"!=typeof value&&"symbol"!=typeof value&&"boolean"!=typeof value&&target.push(attributeSeparator,name,attributeAssign,escapeTextForBrowser(value),attributeEnd)}function pushAdditionalFormField(value,key){this.push(startHiddenInputChunk),validateAdditionalFormField(value),pushStringAttribute(this,"name",key),pushStringAttribute(this,"value",value),this.push(endOfStartTagSelfClosing)}function validateAdditionalFormField(value){if("string"!=typeof value)throw Error("File/Blob fields are not yet supported in progressive forms. Will fallback to client hydration.")}function getCustomFormFields(resumableState,formAction){if("function"==typeof formAction.$$FORM_ACTION){var id=resumableState.nextFormID++;resumableState=resumableState.idPrefix+id;try{var customFields=formAction.$$FORM_ACTION(resumableState);if(customFields){var formData=customFields.data;null!=formData&&formData.forEach(validateAdditionalFormField)}return customFields}catch(x){if("object"==typeof x&&null!==x&&"function"==typeof x.then)throw x;console.error("Failed to serialize an action for progressive enhancement:\n%s",x)}}return null}function pushFormActionAttribute(target,resumableState,renderState,formAction,formEncType,formMethod,formTarget,name){var formData=null;if("function"==typeof formAction){null===name||didWarnFormActionName||(didWarnFormActionName=!0,console.error('Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.')),null===formEncType&&null===formMethod||didWarnFormActionMethod||(didWarnFormActionMethod=!0,console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")),null===formTarget||didWarnFormActionTarget||(didWarnFormActionTarget=!0,console.error("Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."));var customFields=getCustomFormFields(resumableState,formAction);null!==customFields?(name=customFields.name,formAction=customFields.action||"",formEncType=customFields.encType,formMethod=customFields.method,formTarget=customFields.target,formData=customFields.data):(target.push(attributeSeparator,"formAction",attributeAssign,actionJavaScriptURL,attributeEnd),formTarget=formMethod=formEncType=formAction=name=null,injectFormReplayingRuntime(resumableState,renderState))}return null!=name&&pushAttribute(target,"name",name),null!=formAction&&pushAttribute(target,"formAction",formAction),null!=formEncType&&pushAttribute(target,"formEncType",formEncType),null!=formMethod&&pushAttribute(target,"formMethod",formMethod),null!=formTarget&&pushAttribute(target,"formTarget",formTarget),formData}function pushAttribute(target,name,value){switch(name){case"className":pushStringAttribute(target,"class",value);break;case"tabIndex":pushStringAttribute(target,"tabindex",value);break;case"dir":case"role":case"viewBox":case"width":case"height":pushStringAttribute(target,name,value);break;case"style":pushStyleAttribute(target,value);break;case"src":if("object"==typeof value&&null!==value&&"function"==typeof Blob&&value instanceof Blob){var blob=value;null===blobCache&&(blobCache=new WeakMap);var suspenseCache=blobCache,thenable=suspenseCache.get(blob);if(void 0===thenable&&((thenable=blob.arrayBuffer().then(function(arrayBuffer){return arrayBuffer=Buffer.from(arrayBuffer).toString("base64"),"data:"+(blob.type||"application/octet-stream")+";base64,"+arrayBuffer})).then(function(result){thenable.status="fulfilled",thenable.value=result},function(error){thenable.status="rejected",thenable.reason=error}),suspenseCache.set(blob,thenable)),"rejected"===thenable.status)throw thenable.reason;if("fulfilled"!==thenable.status)throw thenable;target.push(attributeSeparator,"src",attributeAssign,escapeTextForBrowser(thenable.value),attributeEnd);break}case"href":if(""===value){"src"===name?console.error('An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',name,name):console.error('An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',name,name);break}case"action":case"formAction":if(null==value||"function"==typeof value||"symbol"==typeof value||"boolean"==typeof value)break;checkAttributeStringCoercion(value,name),value=sanitizeURL(""+value),target.push(attributeSeparator,name,attributeAssign,escapeTextForBrowser(value),attributeEnd);break;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"ref":break;case"autoFocus":case"multiple":case"muted":pushBooleanAttribute(target,name.toLowerCase(),value);break;case"xlinkHref":if("function"==typeof value||"symbol"==typeof value||"boolean"==typeof value)break;checkAttributeStringCoercion(value,name),value=sanitizeURL(""+value),target.push(attributeSeparator,"xlink:href",attributeAssign,escapeTextForBrowser(value),attributeEnd);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":"function"!=typeof value&&"symbol"!=typeof value&&target.push(attributeSeparator,name,attributeAssign,escapeTextForBrowser(value),attributeEnd);break;case"inert":""!==value||didWarnForNewBooleanPropsWithEmptyValue[name]||(didWarnForNewBooleanPropsWithEmptyValue[name]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",name));case"allowFullScreen":case"async":case"autoPlay":case"controls":case"credentialless":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":value&&"function"!=typeof value&&"symbol"!=typeof value&&target.push(attributeSeparator,name,attributeEmptyString);break;case"capture":case"download":!0===value?target.push(attributeSeparator,name,attributeEmptyString):!1!==value&&"function"!=typeof value&&"symbol"!=typeof value&&target.push(attributeSeparator,name,attributeAssign,escapeTextForBrowser(value),attributeEnd);break;case"cols":case"rows":case"size":case"span":"function"!=typeof value&&"symbol"!=typeof value&&!isNaN(value)&&1<=value&&target.push(attributeSeparator,name,attributeAssign,escapeTextForBrowser(value),attributeEnd);break;case"rowSpan":case"start":"function"==typeof value||"symbol"==typeof value||isNaN(value)||target.push(attributeSeparator,name,attributeAssign,escapeTextForBrowser(value),attributeEnd);break;case"xlinkActuate":pushStringAttribute(target,"xlink:actuate",value);break;case"xlinkArcrole":pushStringAttribute(target,"xlink:arcrole",value);break;case"xlinkRole":pushStringAttribute(target,"xlink:role",value);break;case"xlinkShow":pushStringAttribute(target,"xlink:show",value);break;case"xlinkTitle":pushStringAttribute(target,"xlink:title",value);break;case"xlinkType":pushStringAttribute(target,"xlink:type",value);break;case"xmlBase":pushStringAttribute(target,"xml:base",value);break;case"xmlLang":pushStringAttribute(target,"xml:lang",value);break;case"xmlSpace":pushStringAttribute(target,"xml:space",value);break;default:if((!(2<name.length)||"o"!==name[0]&&"O"!==name[0]||"n"!==name[1]&&"N"!==name[1])&&isAttributeNameSafe(name=aliases.get(name)||name)){switch(typeof value){case"function":case"symbol":return;case"boolean":var prefix=name.toLowerCase().slice(0,5);if("data-"!==prefix&&"aria-"!==prefix)return}target.push(attributeSeparator,name,attributeAssign,escapeTextForBrowser(value),attributeEnd)}}}function pushInnerHTML(target,innerHTML,children){if(null!=innerHTML){if(null!=children)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if("object"!=typeof innerHTML||!("__html"in innerHTML))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");null!=(innerHTML=innerHTML.__html)&&(checkHtmlStringCoercion(innerHTML),target.push(""+innerHTML))}}function checkSelectProp(props,propName){var value=props[propName];null!=value&&(value=isArrayImpl(value),props.multiple&&!value?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.",propName):!props.multiple&&value&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",propName))}function injectFormReplayingRuntime(resumableState,renderState){if((16&resumableState.instructions)===NothingSent&&!renderState.externalRuntimeScript){resumableState.instructions|=16;var preamble=renderState.preamble,bootstrapChunks=renderState.bootstrapChunks;(preamble.htmlChunks||preamble.headChunks)&&0===bootstrapChunks.length?(bootstrapChunks.push(renderState.startInlineScript),pushCompletedShellIdAttribute(bootstrapChunks,resumableState),bootstrapChunks.push(endOfStartTag,formReplayingRuntimeScript,endInlineScript)):bootstrapChunks.unshift(renderState.startInlineScript,endOfStartTag,formReplayingRuntimeScript,endInlineScript)}}function pushLinkImpl(target,props){for(var propKey in target.push(startChunkForTag("link")),props)if(hasOwnProperty.call(props,propKey)){var propValue=props[propKey];if(null!=propValue)switch(propKey){case"children":case"dangerouslySetInnerHTML":throw Error("link is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:pushAttribute(target,propKey,propValue)}}return target.push(endOfStartTagSelfClosing),null}function escapeStyleTextContent(styleText){return checkHtmlStringCoercion(styleText),(""+styleText).replace(styleRegex,styleReplacer)}function pushSelfClosing(target,props,tag,formatContext){for(var propKey in target.push(startChunkForTag(tag)),props)if(hasOwnProperty.call(props,propKey)){var propValue=props[propKey];if(null!=propValue)switch(propKey){case"children":case"dangerouslySetInnerHTML":throw Error(tag+" is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:pushAttribute(target,propKey,propValue)}}return pushViewTransitionAttributes(target,formatContext),target.push(endOfStartTagSelfClosing),null}function pushTitleImpl(target,props){target.push(startChunkForTag("title"));var propKey,children=null,innerHTML=null;for(propKey in props)if(hasOwnProperty.call(props,propKey)){var propValue=props[propKey];if(null!=propValue)switch(propKey){case"children":children=propValue;break;case"dangerouslySetInnerHTML":innerHTML=propValue;break;default:pushAttribute(target,propKey,propValue)}}return target.push(endOfStartTag),"function"!=typeof(props=Array.isArray(children)?2>children.length?children[0]:null:children)&&"symbol"!=typeof props&&null!=props&&target.push(escapeTextForBrowser(""+props)),pushInnerHTML(target,innerHTML,children),target.push(endChunkForTag("title")),null}function pushScriptImpl(target,props){target.push(startChunkForTag("script"));var propKey,children=null,innerHTML=null;for(propKey in props)if(hasOwnProperty.call(props,propKey)){var propValue=props[propKey];if(null!=propValue)switch(propKey){case"children":children=propValue;break;case"dangerouslySetInnerHTML":innerHTML=propValue;break;default:pushAttribute(target,propKey,propValue)}}return target.push(endOfStartTag),null!=children&&"string"!=typeof children&&console.error("A script element was rendered with %s. If script element has children it must be a single string. Consider using dangerouslySetInnerHTML or passing a plain string as children.",props="number"==typeof children?"a number for children":Array.isArray(children)?"an array for children":"something unexpected for children"),pushInnerHTML(target,innerHTML,children),"string"==typeof children&&target.push(escapeEntireInlineScriptContent(children)),target.push(endChunkForTag("script")),null}function pushStartSingletonElement(target,props,tag,formatContext){target.push(startChunkForTag(tag));var propKey,innerHTML=tag=null;for(propKey in props)if(hasOwnProperty.call(props,propKey)){var propValue=props[propKey];if(null!=propValue)switch(propKey){case"children":tag=propValue;break;case"dangerouslySetInnerHTML":innerHTML=propValue;break;default:pushAttribute(target,propKey,propValue)}}return pushViewTransitionAttributes(target,formatContext),target.push(endOfStartTag),pushInnerHTML(target,innerHTML,tag),tag}function pushStartGenericElement(target,props,tag,formatContext){target.push(startChunkForTag(tag));var propKey,innerHTML=tag=null;for(propKey in props)if(hasOwnProperty.call(props,propKey)){var propValue=props[propKey];if(null!=propValue)switch(propKey){case"children":tag=propValue;break;case"dangerouslySetInnerHTML":innerHTML=propValue;break;default:pushAttribute(target,propKey,propValue)}}return pushViewTransitionAttributes(target,formatContext),target.push(endOfStartTag),pushInnerHTML(target,innerHTML,tag),"string"==typeof tag?(target.push(escapeTextForBrowser(tag)),null):tag}function startChunkForTag(tag){var tagStartChunk=validatedTagCache.get(tag);if(void 0===tagStartChunk){if(!VALID_TAG_REGEX.test(tag))throw Error("Invalid tag: "+tag);tagStartChunk=stringToPrecomputedChunk("<"+tag),validatedTagCache.set(tag,tagStartChunk)}return tagStartChunk}function endChunkForTag(tag){var chunk=endTagCache.get(tag);return void 0===chunk&&(chunk=stringToPrecomputedChunk("</"+tag+">"),endTagCache.set(tag,chunk)),chunk}function hoistPreambleState(renderState,preambleState){null===(renderState=renderState.preamble).htmlChunks&&preambleState.htmlChunks&&(renderState.htmlChunks=preambleState.htmlChunks),null===renderState.headChunks&&preambleState.headChunks&&(renderState.headChunks=preambleState.headChunks),null===renderState.bodyChunks&&preambleState.bodyChunks&&(renderState.bodyChunks=preambleState.bodyChunks)}function writeBootstrap(destination,renderState){renderState=renderState.bootstrapChunks;for(var i=0;i<renderState.length-1;i++)writeChunk(destination,renderState[i]);return i<renderState.length?(i=renderState[i],renderState.length=0,writeChunkAndReturn(destination,i)):!0}function writeStartPendingSuspenseBoundary(destination,renderState,id){if(writeChunk(destination,startPendingSuspenseBoundary1),null===id)throw Error("An ID must have been assigned before we can complete the boundary.");return writeChunk(destination,renderState.boundaryPrefix),writeChunk(destination,id.toString(16)),writeChunkAndReturn(destination,startPendingSuspenseBoundary2)}function escapeJSStringsForInstructionScripts(input){return JSON.stringify(input).replace(regexForJSStringsInInstructionScripts,function(match){switch(match){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}function escapeJSObjectForInstructionScripts(input){return JSON.stringify(input).replace(regexForJSStringsInScripts,function(match){switch(match){case"&":return"\\u0026";case">":return"\\u003e";case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSObjectForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}function flushStyleTagsLateForBoundary(styleQueue){var rules=styleQueue.rules,hrefs=styleQueue.hrefs;0<rules.length&&0===hrefs.length&&console.error("React expected to have at least one href for an a hoistable style but found none. This is a bug in React.");var i=0;if(hrefs.length){for(writeChunk(this,currentlyFlushingRenderState.startInlineStyle),writeChunk(this,lateStyleTagResourceOpen1),writeChunk(this,styleQueue.precedence),writeChunk(this,lateStyleTagResourceOpen2);i<hrefs.length-1;i++)writeChunk(this,hrefs[i]),writeChunk(this,spaceSeparator);for(writeChunk(this,hrefs[i]),writeChunk(this,lateStyleTagResourceOpen3),i=0;i<rules.length;i++)writeChunk(this,rules[i]);destinationHasCapacity=writeChunkAndReturn(this,lateStyleTagTemplateClose),currentlyRenderingBoundaryHasStylesToHoist=!0,rules.length=0,hrefs.length=0}}function hasStylesToHoist(stylesheet){return stylesheet.state!==PREAMBLE?currentlyRenderingBoundaryHasStylesToHoist=!0:!1}function writeHoistablesForBoundary(destination,hoistableState,renderState){return currentlyRenderingBoundaryHasStylesToHoist=!1,destinationHasCapacity=!0,currentlyFlushingRenderState=renderState,hoistableState.styles.forEach(flushStyleTagsLateForBoundary,destination),currentlyFlushingRenderState=null,hoistableState.stylesheets.forEach(hasStylesToHoist),currentlyRenderingBoundaryHasStylesToHoist&&(renderState.stylesToHoist=!0),destinationHasCapacity}function flushResource(resource){for(var i=0;i<resource.length;i++)writeChunk(this,resource[i]);resource.length=0}function flushStyleInPreamble(stylesheet){pushLinkImpl(stylesheetFlushingQueue,stylesheet.props);for(var i=0;i<stylesheetFlushingQueue.length;i++)writeChunk(this,stylesheetFlushingQueue[i]);stylesheetFlushingQueue.length=0,stylesheet.state=PREAMBLE}function flushStylesInPreamble(styleQueue){var hasStylesheets=0<styleQueue.sheets.size;styleQueue.sheets.forEach(flushStyleInPreamble,this),styleQueue.sheets.clear();var rules=styleQueue.rules,hrefs=styleQueue.hrefs;if(!hasStylesheets||hrefs.length){if(writeChunk(this,currentlyFlushingRenderState.startInlineStyle),writeChunk(this,styleTagResourceOpen1),writeChunk(this,styleQueue.precedence),styleQueue=0,hrefs.length){for(writeChunk(this,styleTagResourceOpen2);styleQueue<hrefs.length-1;styleQueue++)writeChunk(this,hrefs[styleQueue]),writeChunk(this,spaceSeparator);writeChunk(this,hrefs[styleQueue])}for(writeChunk(this,styleTagResourceOpen3),styleQueue=0;styleQueue<rules.length;styleQueue++)writeChunk(this,rules[styleQueue]);writeChunk(this,styleTagResourceClose),rules.length=0,hrefs.length=0}}function preloadLateStyle(stylesheet){if(stylesheet.state===PENDING$1){stylesheet.state=PRELOADED;var props=stylesheet.props;for(pushLinkImpl(stylesheetFlushingQueue,{rel:"preload",as:"style",href:stylesheet.props.href,crossOrigin:props.crossOrigin,fetchPriority:props.fetchPriority,integrity:props.integrity,media:props.media,hrefLang:props.hrefLang,referrerPolicy:props.referrerPolicy}),stylesheet=0;stylesheet<stylesheetFlushingQueue.length;stylesheet++)writeChunk(this,stylesheetFlushingQueue[stylesheet]);stylesheetFlushingQueue.length=0}}function preloadLateStyles(styleQueue){styleQueue.sheets.forEach(preloadLateStyle,this),styleQueue.sheets.clear()}function writeCompletedShellIdAttribute(destination,resumableState){(resumableState.instructions&SentCompletedShellId)===NothingSent&&(resumableState.instructions|=SentCompletedShellId,resumableState="_"+resumableState.idPrefix+"R_",writeChunk(destination,completedShellIdAttributeStart),writeChunk(destination,escapeTextForBrowser(resumableState)),writeChunk(destination,attributeEnd))}function pushCompletedShellIdAttribute(target,resumableState){(resumableState.instructions&SentCompletedShellId)===NothingSent&&(resumableState.instructions|=SentCompletedShellId,target.push(completedShellIdAttributeStart,escapeTextForBrowser("_"+resumableState.idPrefix+"R_"),attributeEnd))}function createHoistableState(){return{styles:new Set,stylesheets:new Set,suspenseyImages:!1}}function preloadBootstrapScriptOrModule(resumableState,renderState,href,props){(resumableState.scriptResources.hasOwnProperty(href)||resumableState.moduleScriptResources.hasOwnProperty(href))&&console.error('Internal React Error: React expected bootstrap script or module with src "%s" to not have been preloaded already. please file an issue',href),resumableState.scriptResources[href]=EXISTS,resumableState.moduleScriptResources[href]=EXISTS,pushLinkImpl(resumableState=[],props),renderState.bootstrapScripts.add(resumableState)}function adoptPreloadCredentials(target,preloadState){null==target.crossOrigin&&(target.crossOrigin=preloadState[0]),null==target.integrity&&(target.integrity=preloadState[1])}function getPreloadAsHeader(href,as,params){for(var paramName in as="<"+(href=escapeHrefForLinkHeaderURLContext(href))+'>; rel=preload; as="'+(as=escapeStringForLinkHeaderQuotedParamValueContext(as,"as"))+'"',params)hasOwnProperty.call(params,paramName)&&"string"==typeof(href=params[paramName])&&(as+="; "+paramName.toLowerCase()+'="'+escapeStringForLinkHeaderQuotedParamValueContext(href,paramName)+'"');return as}function escapeHrefForLinkHeaderURLContext(hrefInput){return checkAttributeStringCoercion(hrefInput,"href"),(""+hrefInput).replace(regexForHrefInLinkHeaderURLContext,escapeHrefForLinkHeaderURLContextReplacer)}function escapeHrefForLinkHeaderURLContextReplacer(match){switch(match){case"<":return"%3C";case">":return"%3E";case"\n":return"%0A";case"\r":return"%0D";default:throw Error("escapeLinkHrefForHeaderContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}function escapeStringForLinkHeaderQuotedParamValueContext(value,name){return willCoercionThrow(value)&&console.error("The provided `%s` option is an unsupported type %s. This value must be coerced to a string before using it here.",name,typeName(value)),(""+value).replace(regexForLinkHeaderQuotedParamValueContext,escapeStringForLinkHeaderQuotedParamValueContextReplacer)}function escapeStringForLinkHeaderQuotedParamValueContextReplacer(match){switch(match){case'"':return"%22";case"'":return"%27";case";":return"%3B";case",":return"%2C";case"\n":return"%0A";case"\r":return"%0D";default:throw Error("escapeStringForLinkHeaderQuotedParamValueContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}function hoistStyleQueueDependency(styleQueue){this.styles.add(styleQueue)}function hoistStylesheetDependency(stylesheet){this.stylesheets.add(stylesheet)}function hoistHoistables(parentState,childState){childState.styles.forEach(hoistStyleQueueDependency,parentState),childState.stylesheets.forEach(hoistStylesheetDependency,parentState),childState.suspenseyImages&&(parentState.suspenseyImages=!0)}function hasSuspenseyContent(hoistableState,flushingInShell){return flushingInShell?hoistableState.suspenseyImages:0<hoistableState.stylesheets.size||hoistableState.suspenseyImages}function getComponentNameFromType(type){if(null==type)return null;if("function"==typeof type)return type.$$typeof===REACT_CLIENT_REFERENCE?null:type.displayName||type.name||null;if("string"==typeof type)return type;switch(type){case REACT_FRAGMENT_TYPE:return"Fragment";case REACT_PROFILER_TYPE:return"Profiler";case REACT_STRICT_MODE_TYPE:return"StrictMode";case REACT_SUSPENSE_TYPE:return"Suspense";case REACT_SUSPENSE_LIST_TYPE:return"SuspenseList";case REACT_ACTIVITY_TYPE:return"Activity";case REACT_VIEW_TRANSITION_TYPE:return"ViewTransition"}if("object"==typeof type)switch("number"==typeof type.tag&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),type.$$typeof){case REACT_PORTAL_TYPE:return"Portal";case REACT_CONTEXT_TYPE:return type.displayName||"Context";case REACT_CONSUMER_TYPE:return(type._context.displayName||"Context")+".Consumer";case REACT_FORWARD_REF_TYPE:var innerType=type.render;return(type=type.displayName)||(type=""!==(type=innerType.displayName||innerType.name||"")?"ForwardRef("+type+")":"ForwardRef"),type;case REACT_MEMO_TYPE:return null!==(innerType=type.displayName||null)?innerType:getComponentNameFromType(type.type)||"Memo";case REACT_LAZY_TYPE:innerType=type._payload,type=type._init;try{return getComponentNameFromType(type(innerType))}catch(x){}}return null}function popToNearestCommonAncestor(prev,next){if(prev!==next){prev.context._currentValue=prev.parentValue,prev=prev.parent;var parentNext=next.parent;if(null===prev){if(null!==parentNext)throw Error("The stacks must reach the root at the same time. This is a bug in React.")}else{if(null===parentNext)throw Error("The stacks must reach the root at the same time. This is a bug in React.");popToNearestCommonAncestor(prev,parentNext)}next.context._currentValue=next.value}}function switchContext(newSnapshot){var prev=currentActiveSnapshot;prev!==newSnapshot&&(null===prev?function pushAllNext(next){var parentNext=next.parent;null!==parentNext&&pushAllNext(parentNext),next.context._currentValue=next.value}(newSnapshot):null===newSnapshot?function popAllPrevious(prev){prev.context._currentValue=prev.parentValue,null!==(prev=prev.parent)&&popAllPrevious(prev)}(prev):prev.depth===newSnapshot.depth?popToNearestCommonAncestor(prev,newSnapshot):prev.depth>newSnapshot.depth?function popPreviousToCommonLevel(prev,next){if(prev.context._currentValue=prev.parentValue,null===(prev=prev.parent))throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");prev.depth===next.depth?popToNearestCommonAncestor(prev,next):popPreviousToCommonLevel(prev,next)}(prev,newSnapshot):function popNextToCommonLevel(prev,next){var parentNext=next.parent;if(null===parentNext)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");prev.depth===parentNext.depth?popToNearestCommonAncestor(prev,parentNext):popNextToCommonLevel(prev,parentNext),next.context._currentValue=next.value}(prev,newSnapshot),currentActiveSnapshot=newSnapshot)}function warnOnInvalidCallback(callback){if(null!==callback&&"function"!=typeof callback){var key=String(callback);didWarnOnInvalidCallback.has(key)||(didWarnOnInvalidCallback.add(key),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",callback))}}function warnNoop(publicInstance,callerName){var warningKey=(publicInstance=(publicInstance=publicInstance.constructor)&&getComponentNameFromType(publicInstance)||"ReactClass")+"."+callerName;didWarnAboutNoopUpdateForComponent[warningKey]||(console.error("Can only update a mounting component. This usually means you called %s() outside componentWillMount() on the server. This is a no-op.\n\nPlease check the code for the %s component.",callerName,publicInstance),didWarnAboutNoopUpdateForComponent[warningKey]=!0)}function getTreeId(context){var overflow=context.overflow;return((context=context.id)&~(1<<32-clz32(context)-1)).toString(32)+overflow}function pushTreeContext(baseContext,totalChildren,index){var baseIdWithLeadingBit=baseContext.id;baseContext=baseContext.overflow;var baseLength=32-clz32(baseIdWithLeadingBit)-1;baseIdWithLeadingBit&=~(1<<baseLength),index+=1;var length=32-clz32(totalChildren)+baseLength;if(30<length){var numberOfOverflowBits=baseLength-baseLength%5;return length=(baseIdWithLeadingBit&(1<<numberOfOverflowBits)-1).toString(32),baseIdWithLeadingBit>>=numberOfOverflowBits,baseLength-=numberOfOverflowBits,{id:1<<32-clz32(totalChildren)+baseLength|index<<baseLength|baseIdWithLeadingBit,overflow:length+baseContext}}return{id:1<<length|index<<baseLength|baseIdWithLeadingBit,overflow:baseContext}}function noop(){}function getSuspendedThenable(){if(null===suspendedThenable)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var thenable=suspendedThenable;return suspendedThenable=null,thenable}function createFatalRecoverableError(recoverable){return Error("The server render could not complete because client rendering was requested outs