Unverified Commit 7e933a09 authored by Shu Ding's avatar Shu Ding Committed by GitHub

Revert "Revert "Update vendored React"" (#46881)

Reverts vercel/next.js#46861. This requires
https://github.com/vercel/turbo/pull/4102 to be released and bindings to
be updated first.

~Also depends on #46896 to be merged first, and conflicts to be
resolved.~
parent 9c36a320
......@@ -191,11 +191,11 @@
"random-seed": "0.3.0",
"react": "18.2.0",
"react-17": "npm:react@17.0.2",
"react-builtin": "npm:react@18.3.0-next-41110021f-20230301",
"react-builtin": "npm:react@18.3.0-next-49f741046-20230305",
"react-dom": "18.2.0",
"react-dom-17": "npm:react-dom@17.0.2",
"react-dom-builtin": "npm:react-dom@18.3.0-next-41110021f-20230301",
"react-server-dom-webpack": "18.3.0-next-41110021f-20230301",
"react-dom-builtin": "npm:react-dom@18.3.0-next-49f741046-20230305",
"react-server-dom-webpack": "18.3.0-next-49f741046-20230305",
"react-ssr-prepass": "1.0.8",
"react-virtualized": "9.22.3",
"relay-compiler": "13.0.2",
......
......@@ -2384,12 +2384,14 @@ dependencies = [
"easy-error",
"either",
"fxhash",
"hex",
"next-binding",
"once_cell",
"pathdiff",
"regex",
"serde",
"serde_json",
"sha1 0.10.5",
"tracing",
"walkdir",
]
......@@ -3639,6 +3641,17 @@ dependencies = [
"sha1_smol",
]
[[package]]
name = "sha1"
version = "0.10.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f04293dc80c3993519f2d7f6f511707ee7094fe0c6d3406feb330cdb3540eba3"
dependencies = [
"cfg-if 1.0.0",
"cpufeatures",
"digest",
]
[[package]]
name = "sha1_smol"
version = "1.0.0"
......@@ -3848,7 +3861,7 @@ dependencies = [
"serde",
"serde_derive",
"serde_json",
"sha1",
"sha1 0.6.1",
"syn",
]
......
......@@ -12,11 +12,13 @@ chrono = "0.4"
easy-error = "1.0.0"
either = "1"
fxhash = "0.2.1"
hex = "0.4.3"
once_cell = "1.13.0"
pathdiff = "0.2.0"
regex = "1.5"
serde = "1"
serde_json = "1"
sha1 = "0.10.1"
tracing = { version = "0.1.37", features = ["release_max_level_info"] }
next-binding = { git = "https://github.com/vercel/turbo.git", tag = "turbopack-230302.2", features = [
......
use std::convert::{TryFrom, TryInto};
use hex::encode as hex_encode;
use next_binding::swc::core::{
common::{
comments::{Comment, CommentKind, Comments},
......@@ -15,6 +16,7 @@ use next_binding::swc::core::{
},
};
use serde::Deserialize;
use sha1::{Digest, Sha1};
#[derive(Clone, Debug, Deserialize)]
#[serde(deny_unknown_fields, rename_all = "camelCase")]
......@@ -156,16 +158,17 @@ impl<C: Comments> ServerActions<C> {
.into(),
));
// myAction.$$filepath = '/app/page.tsx';
self.annotations.push(annotate(
ident,
"$$filepath",
self.file_name.to_string().into(),
));
// Attach a checksum to the action using sha1:
// myAction.$$id = sha1('file_name' + ':' + 'export_name');
let mut hasher = Sha1::new();
hasher.update(self.file_name.to_string().as_bytes());
hasher.update(b":");
hasher.update(export_name.as_bytes());
let result = hasher.finalize();
// myAction.$$name = '$ACTION_myAction';
// Convert result to hex string
self.annotations
.push(annotate(ident, "$$name", export_name.into()));
.push(annotate(ident, "$$id", hex_encode(result).into()));
if self.top_level {
// myAction.$$bound = [];
......
/* __next_internal_action_entry_do_not_use__ foo */ export function foo() {}
foo.$$typeof = Symbol.for("react.server.reference");
foo.$$filepath = "/app/item.js";
foo.$$name = "foo";
foo.$$id = "ab21efdafbe611287bc25c0462b1e0510d13e48b";
foo.$$bound = [];
\ No newline at end of file
/* __next_internal_action_entry_do_not_use__ bar */ 'use strict';
export function bar() {}
bar.$$typeof = Symbol.for("react.server.reference");
bar.$$filepath = "/app/item.js";
bar.$$name = "bar";
bar.$$id = "ac840dcaf5e8197cb02b7f3a43c119b7a770b272";
bar.$$bound = [];
\ No newline at end of file
......@@ -4,8 +4,7 @@ export function Item({ id1 , id2 }) {
return $ACTION_deleteItem(deleteItem.$$bound);
}
deleteItem.$$typeof = Symbol.for("react.server.reference");
deleteItem.$$filepath = "/app/item.js";
deleteItem.$$name = "$ACTION_deleteItem";
deleteItem.$$id = "de52fdc8536c533b05b2e525bd43b18cf019cbb3";
deleteItem.$$bound = [
id1,
id2
......
/* __next_internal_action_entry_do_not_use__ default */ export default async function foo() {}
foo.$$typeof = Symbol.for("react.server.reference");
foo.$$filepath = "/app/item.js";
foo.$$name = "default";
foo.$$id = "c18c215a6b7cdc64bf709f3a714ffdef1bf9651d";
foo.$$bound = [];
\ No newline at end of file
/* __next_internal_action_entry_do_not_use__ default */ export default async function $ACTION_default_0() {}
$ACTION_default_0.$$typeof = Symbol.for("react.server.reference");
$ACTION_default_0.$$filepath = "/app/item.js";
$ACTION_default_0.$$name = "default";
$ACTION_default_0.$$id = "c18c215a6b7cdc64bf709f3a714ffdef1bf9651d";
$ACTION_default_0.$$bound = [];
\ No newline at end of file
......@@ -2,8 +2,7 @@
console.log('a');
}
myAction.$$typeof = Symbol.for("react.server.reference");
myAction.$$filepath = "/app/item.js";
myAction.$$name = "$ACTION_myAction";
myAction.$$id = "c67fa6a80e65945a14b1fac181d282d79bba49b7";
myAction.$$bound = [];
export const $ACTION_myAction = myAction;
export default function Page() {
......
......@@ -3,6 +3,5 @@
console.log('a');
}
myAction.$$typeof = Symbol.for("react.server.reference");
myAction.$$filepath = "/app/item.js";
myAction.$$name = "myAction";
myAction.$$id = "e10665baac148856374b2789aceb970f66fec33e";
myAction.$$bound = [];
/* __next_internal_action_entry_do_not_use__ a,b,c,$ACTION_e */ export async function a() {}
a.$$typeof = Symbol.for("react.server.reference");
a.$$filepath = "/app/item.js";
a.$$name = "a";
a.$$id = "6e7bc104e4d6e7fda190c4a51be969cfd0be6d6d";
a.$$bound = [];
export async function b() {}
b.$$typeof = Symbol.for("react.server.reference");
b.$$filepath = "/app/item.js";
b.$$name = "b";
b.$$id = "d1f7eb64271d7c601dfef7d4d7053de1c2ca4338";
b.$$bound = [];
export async function c() {}
c.$$typeof = Symbol.for("react.server.reference");
c.$$filepath = "/app/item.js";
c.$$name = "c";
c.$$id = "1ab723c80dcca470e0410b4b2a2fc2bf21f41476";
c.$$bound = [];
function d() {}
function Foo() {
......@@ -19,8 +16,7 @@ function Foo() {
return $ACTION_e(e.$$bound);
}
e.$$typeof = Symbol.for("react.server.reference");
e.$$filepath = "/app/item.js";
e.$$name = "$ACTION_e";
e.$$id = "b6c8c6754aefb804cf95f444931ba7e955c0701d";
e.$$bound = [];
}
export async function $ACTION_e(closure) {}
\ No newline at end of file
......@@ -6,8 +6,7 @@ export function Item({ id1 , id2 }) {
return $ACTION_deleteItem(deleteItem.$$bound);
}
deleteItem.$$typeof = Symbol.for("react.server.reference");
deleteItem.$$filepath = "/app/item.js";
deleteItem.$$name = "$ACTION_deleteItem";
deleteItem.$$id = "de52fdc8536c533b05b2e525bd43b18cf019cbb3";
deleteItem.$$bound = [
id1,
v2
......
......@@ -21,8 +21,7 @@ export function y(p, [p1, { p2 }], ...p3) {
return $ACTION_action(action.$$bound);
}
action.$$typeof = Symbol.for("react.server.reference");
action.$$filepath = "/app/item.js";
action.$$name = "$ACTION_action";
action.$$id = "b3d2707f04906fa37fdc7bee4f53e41053034751";
action.$$bound = [
f2,
f2,
......
......@@ -4,8 +4,7 @@ export function Item(product, foo, bar) {
return $ACTION_deleteItem(deleteItem.$$bound);
}
deleteItem.$$typeof = Symbol.for("react.server.reference");
deleteItem.$$filepath = "/app/item.js";
deleteItem.$$name = "$ACTION_deleteItem";
deleteItem.$$id = "de52fdc8536c533b05b2e525bd43b18cf019cbb3";
deleteItem.$$bound = [
product.id,
product?.foo,
......
......@@ -4,8 +4,7 @@
console.log('a');
}
myAction.$$typeof = Symbol.for("react.server.reference");
myAction.$$filepath = "/app/item.js";
myAction.$$name = "$ACTION_myAction";
myAction.$$id = "c67fa6a80e65945a14b1fac181d282d79bba49b7";
myAction.$$bound = [];
export const $ACTION_myAction = myAction;
export default function Page() {
......
// app/send.ts
/* __next_internal_action_entry_do_not_use__ foo,bar,qux */ async function foo() {}
foo.$$typeof = Symbol.for("react.server.reference");
foo.$$filepath = "/app/item.js";
foo.$$name = "foo";
foo.$$id = "ab21efdafbe611287bc25c0462b1e0510d13e48b";
foo.$$bound = [];
export { foo };
async function bar() {}
bar.$$typeof = Symbol.for("react.server.reference");
bar.$$filepath = "/app/item.js";
bar.$$name = "bar";
bar.$$id = "ac840dcaf5e8197cb02b7f3a43c119b7a770b272";
bar.$$bound = [];
export { bar as baz };
async function qux() {}
qux.$$typeof = Symbol.for("react.server.reference");
qux.$$filepath = "/app/item.js";
qux.$$name = "qux";
qux.$$id = "3c8ed39a99caf636869d076cc7cae786a4053164";
qux.$$bound = [];
export { qux as default };
\ No newline at end of file
......@@ -18,14 +18,14 @@ const deepProxyHandlers = {
// These names are a little too common. We should probably have a way to
// have the Flight runtime extract the inner target instead.
return target.$$typeof
case 'filepath':
return target.filepath
case '$$id':
return target.$$id
case '$$async':
return target.$$async
case 'name':
return target.name
case 'displayName':
return undefined
case 'async':
return target.async
// We need to special case this because createElement reads it if we pass this
// reference.
case 'defaultProps':
......@@ -45,17 +45,7 @@ const deepProxyHandlers = {
default:
break
}
let expression
switch (target.name) {
case '':
expression = String(name)
break
case '*':
expression = String(name)
break
default:
expression = String(target.name) + '.' + String(name)
}
const expression = String(target.name) + '.' + String(name)
throw new Error(
`Cannot access ${expression} on the server. ` +
'You cannot dot into a client module from a server component. ' +
......@@ -72,15 +62,13 @@ const proxyHandlers = {
switch (name) {
// These names are read by the Flight runtime if you end up using the exports object.
case '$$typeof':
// These names are a little too common. We should probably have a way to
// have the Flight runtime extract the inner target instead.
return target.$$typeof
case 'filepath':
return target.filepath
case '$$id':
return target.$$id
case '$$async':
return target.$$async
case 'name':
return target.name
case 'async':
return target.async
// We need to special case this because createElement reads it if we pass this
// reference.
case 'defaultProps':
......@@ -94,7 +82,7 @@ const proxyHandlers = {
case '__esModule':
// Something is conditionally checking which export to use. We'll pretend to be
// an ESM compat module but then we'll check again on the client.
const moduleId = target.filepath
const moduleId = target.$$id
target.default = Object.defineProperties(
function () {
throw new Error(
......@@ -105,12 +93,11 @@ const proxyHandlers = {
)
},
{
$$typeof: { value: CLIENT_REFERENCE },
// This a placeholder value that tells the client to conditionally use the
// whole object or just the default export.
name: { value: '' },
$$typeof: { value: CLIENT_REFERENCE },
filepath: { value: target.filepath },
async: { value: target.async },
$$id: { value: target.$$id + '#' },
$$async: { value: target.$$async },
}
)
return true
......@@ -119,7 +106,7 @@ const proxyHandlers = {
// Use a cached value
return target.then
}
if (!target.async) {
if (!target.$$async) {
// If this module is expected to return a Promise (such as an AsyncModule) then
// we should resolve that with a client reference that unwraps the Promise on
// the client.
......@@ -127,11 +114,9 @@ const proxyHandlers = {
const clientReference = Object.defineProperties(
{},
{
// Represents the whole Module object instead of a particular import.
name: { value: '*' },
$$typeof: { value: CLIENT_REFERENCE },
filepath: { value: target.filepath },
async: { value: true },
$$id: { value: target.$$id },
$$async: { value: true },
}
)
const proxy = new Proxy(clientReference, proxyHandlers)
......@@ -151,10 +136,9 @@ const proxyHandlers = {
// If this is not used as a Promise but is treated as a reference to a `.then`
// export then we should treat it as a reference to that name.
{
name: { value: 'then' },
$$typeof: { value: CLIENT_REFERENCE },
filepath: { value: target.filepath },
async: { value: false },
$$id: { value: target.$$id },
$$async: { value: false },
}
))
return then
......@@ -180,10 +164,9 @@ const proxyHandlers = {
)
},
{
name: { value: name },
$$typeof: { value: CLIENT_REFERENCE },
filepath: { value: target.filepath },
async: { value: target.async },
$$id: { value: target.$$id + '#' + name },
$$async: { value: target.$$async },
}
)
cachedReference = target[name] = new Proxy(reference, deepProxyHandlers)
......@@ -203,11 +186,10 @@ export function createProxy(moduleId: string) {
const clientReference = Object.defineProperties(
{},
{
// Represents the whole object instead of a particular import.
name: { value: '*' },
$$typeof: { value: CLIENT_REFERENCE },
filepath: { value: moduleId },
async: { value: false },
// Represents the whole Module object instead of a particular import.
$$id: { value: moduleId },
$$async: { value: false },
}
)
return new Proxy(clientReference, proxyHandlers)
......
......@@ -19,13 +19,6 @@ import { traverseModules } from '../utils'
import { nonNullable } from '../../../lib/non-nullable'
import { WEBPACK_LAYERS } from '../../../lib/constants'
// This is the module that will be used to anchor all client references to.
// I.e. it will have all the client files as async deps from this point on.
// We use the Flight client implementation because you can't get to these
// without the client runtime so it's the first time in the loading sequence
// you might want them.
// const clientFileName = require.resolve('../');
interface Options {
dev: boolean
appDir: string
......@@ -69,17 +62,15 @@ interface ManifestNode {
export type FlightManifest = {
__ssr_module_mapping__: {
[moduleId: string]: ManifestNode
[modulePath: string]: ManifestNode
}
__edge_ssr_module_mapping__: {
[moduleId: string]: ManifestNode
[modulePath: string]: ManifestNode
}
__entry_css_files__: {
[entryPathWithoutExtension: string]: string[]
}
} & {
[modulePath: string]: ManifestNode
}
} & ManifestNode
export type FlightCSSManifest = {
[modulePath: string]: string[]
......@@ -135,6 +126,7 @@ export class FlightManifestPlugin {
compilation: webpack.Compilation,
context: string
) {
// @ts-ignore
const manifest: FlightManifest = {
__ssr_module_mapping__: {},
__edge_ssr_module_mapping__: {},
......@@ -191,7 +183,6 @@ export class FlightManifestPlugin {
return
}
const moduleExports = manifest[resource] || {}
const moduleIdMapping = manifest.__ssr_module_mapping__
const edgeModuleIdMapping = manifest.__edge_ssr_module_mapping__
......@@ -207,20 +198,18 @@ export class FlightManifestPlugin {
ssrNamedModuleId = `./${ssrNamedModuleId.replace(/\\/g, '/')}`
if (isCSSModule) {
if (!manifest[resource]) {
manifest[resource] = {
default: {
id,
name: 'default',
chunks: chunkCSS,
},
if (!manifest[resource + '#']) {
manifest[resource + '#'] = {
id: id || '',
name: '',
chunks: chunkCSS,
}
} else {
// It is possible that there are multiple modules with the same resource,
// e.g. extracted by mini-css-extract-plugin. In that case we need to
// merge the chunks.
manifest[resource].default.chunks = [
...new Set([...manifest[resource].default.chunks, ...chunkCSS]),
manifest[resource + '#'].chunks = [
...new Set([...manifest[resource + '#'].chunks, ...chunkCSS]),
]
}
......@@ -237,25 +226,29 @@ export class FlightManifestPlugin {
const isAsyncModule = this.ASYNC_CLIENT_MODULES.has(mod.resource)
const cjsExports = [
...new Set([
...mod.dependencies.map((dep) => {
// Match CommonJsSelfReferenceDependency
if (dep.type === 'cjs self exports reference') {
// @ts-expect-error: TODO: Fix Dependency type
if (dep.base === 'module.exports') {
return 'default'
}
...new Set(
[
...mod.dependencies.map((dep) => {
// Match CommonJsSelfReferenceDependency
if (dep.type === 'cjs self exports reference') {
// @ts-expect-error: TODO: Fix Dependency type
if (dep.base === 'module.exports') {
return 'default'
}
// `exports.foo = ...`, `exports.default = ...`
// @ts-expect-error: TODO: Fix Dependency type
if (dep.base === 'exports') {
// `exports.foo = ...`, `exports.default = ...`
// @ts-expect-error: TODO: Fix Dependency type
return dep.names.filter((name: any) => name !== '__esModule')
if (dep.base === 'exports') {
// @ts-expect-error: TODO: Fix Dependency type
return dep.names.filter(
(name: any) => name !== '__esModule'
)
}
}
}
return null
}),
]),
return null
}),
].flat()
),
]
function getAppPathRequiredChunks() {
......@@ -274,42 +267,60 @@ export class FlightManifestPlugin {
})
.filter(nonNullable)
}
const requiredChunks = getAppPathRequiredChunks()
const moduleExportedKeys = ['', '*']
.concat(
[...exportsInfo.exports]
.filter((exportInfo) => exportInfo.provided)
.map((exportInfo) => exportInfo.name),
...cjsExports
)
.filter((name) => name !== null)
moduleExportedKeys.forEach((name) => {
// If the chunk is from `app/` chunkGroup, use it first.
// This make sure not to load the overlapped chunk from `pages/` chunkGroup
if (
!moduleExports[name] ||
(chunkGroup.name && /^app[\\/]/.test(chunkGroup.name))
) {
const requiredChunks = getAppPathRequiredChunks()
// The client compiler will always use the CJS Next.js build, so here we
// also add the mapping for the ESM build (Edge runtime) to consume.
const esmResource = /[\\/]next[\\/]dist[\\/]/.test(resource)
? resource.replace(
/[\\/]next[\\/]dist[\\/]/,
'/next/dist/esm/'.replace(/\//g, path.sep)
)
: null
moduleExports[name] = {
function addClientReference(name: string) {
if (name === '*') {
manifest[resource] = {
id,
name,
chunks: requiredChunks,
// E.g.
// page (server) -> local module (client) -> package (esm)
// The esm package will bubble up to make the entire chain till the client entry as async module.
name: '*',
async: isAsyncModule,
}
if (esmResource) {
manifest[esmResource] = manifest[resource]
}
} else if (name === '') {
manifest[resource + '#'] = {
id,
chunks: requiredChunks,
name: '',
async: isAsyncModule,
}
if (esmResource) {
manifest[esmResource + '#'] = manifest[resource + '#']
}
} else {
manifest[resource + '#' + name] = {
id,
chunks: requiredChunks,
name,
async: isAsyncModule,
}
if (esmResource) {
manifest[esmResource + '#' + name] =
manifest[resource + '#' + name]
}
}
}
function addSSRIdMapping(name: string) {
const key = resource + (name === '*' ? '' : '#' + name)
if (
typeof pluginState.serverModuleIds[ssrNamedModuleId] !== 'undefined'
) {
moduleIdMapping[id] = moduleIdMapping[id] || {}
moduleIdMapping[id][name] = {
...moduleExports[name],
...manifest[key],
id: pluginState.serverModuleIds[ssrNamedModuleId],
}
}
......@@ -320,24 +331,38 @@ export class FlightManifestPlugin {
) {
edgeModuleIdMapping[id] = edgeModuleIdMapping[id] || {}
edgeModuleIdMapping[id][name] = {
...moduleExports[name],
...manifest[key],
id: pluginState.edgeServerModuleIds[ssrNamedModuleId],
}
}
})
}
manifest[resource] = moduleExports
addClientReference('*')
addClientReference('')
addSSRIdMapping('*')
addSSRIdMapping('')
// The client compiler will always use the CJS Next.js build, so here we
// also add the mapping for the ESM build (Edge runtime) to consume.
if (/[\\/]next[\\/]dist[\\/]/.test(resource)) {
manifest[
resource.replace(
/[\\/]next[\\/]dist[\\/]/,
'/next/dist/esm/'.replace(/\//g, path.sep)
)
] = moduleExports
}
const moduleExportedKeys = [
...[...exportsInfo.exports]
.filter((exportInfo) => exportInfo.provided)
.map((exportInfo) => exportInfo.name),
...cjsExports,
].filter((name) => name !== null)
moduleExportedKeys.forEach((name) => {
const key = resource + '#' + name
// If the chunk is from `app/` chunkGroup, use it first.
// This make sure not to load the overlapped chunk from `pages/` chunkGroup
if (
!manifest[key] ||
(chunkGroup.name && /^app[\\/]/.test(chunkGroup.name))
) {
addClientReference(name)
}
addSSRIdMapping(name)
})
manifest.__ssr_module_mapping__ = moduleIdMapping
manifest.__edge_ssr_module_mapping__ = edgeModuleIdMapping
......
......@@ -66,16 +66,6 @@ const getCacheKey = () => {
return pathname + search
}
async function sha1(message: string) {
const arrayBuffer = await crypto.subtle.digest(
'SHA-1',
new TextEncoder().encode(message)
)
const data = Array.from(new Uint8Array(arrayBuffer))
const hex = data.map((b) => b.toString(16).padStart(2, '0')).join('')
return hex
}
const encoder = new TextEncoder()
let initialServerDataBuffer: string[] | undefined = undefined
......@@ -161,14 +151,10 @@ function useInitialServerResponse(cacheKey: string): Promise<JSX.Element> {
})
const newResponse = createFromReadableStream(readable, {
async callServer(
metadata: {
id: string
name: string
},
args: any[]
) {
const actionId = await sha1(metadata.id + ':' + metadata.name)
async callServer(id: string, args: any[]) {
console.log('callServer', id, args)
const actionId = id
// Fetching the current url with the action header.
// TODO: Refactor this to look up from a manifest.
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -14,7 +14,7 @@ if (process.env.NODE_ENV !== "production") {
(function() {
'use strict';
var ReactVersion = '18.3.0-next-41110021f-20230301';
var ReactVersion = '18.3.0-next-49f741046-20230305';
var Internals = {
usingClientEntryPoint: false,
......
......@@ -8,4 +8,4 @@
* LICENSE file in the root directory of this source tree.
*/
'use strict';var b={usingClientEntryPoint:!1,Events:null,Dispatcher:{current:null}};function d(a){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+a,c=1;c<arguments.length;c++)e+="&args[]="+encodeURIComponent(arguments[c]);return"Minified React error #"+a+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=b;
exports.createPortal=function(){throw Error(d(448));};exports.flushSync=function(){throw Error(d(449));};exports.preconnect=function(){var a=b.Dispatcher.current;a&&a.preconnect.apply(this,arguments)};exports.prefetchDNS=function(){var a=b.Dispatcher.current;a&&a.prefetchDNS.apply(this,arguments)};exports.preinit=function(){var a=b.Dispatcher.current;a&&a.preinit.apply(this,arguments)};exports.preload=function(){var a=b.Dispatcher.current;a&&a.preload.apply(this,arguments)};exports.version="18.3.0-next-41110021f-20230301";
exports.createPortal=function(){throw Error(d(448));};exports.flushSync=function(){throw Error(d(449));};exports.preconnect=function(){var a=b.Dispatcher.current;a&&a.preconnect.apply(this,arguments)};exports.prefetchDNS=function(){var a=b.Dispatcher.current;a&&a.prefetchDNS.apply(this,arguments)};exports.preinit=function(){var a=b.Dispatcher.current;a&&a.preinit.apply(this,arguments)};exports.preload=function(){var a=b.Dispatcher.current;a&&a.preload.apply(this,arguments)};exports.version="18.3.0-next-49f741046-20230305";
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -11963,7 +11963,7 @@ function styleTagPropsFromRawProps(rawProps) {
function getStyleKey(href) {
var limitedEscapedHref = escapeSelectorAttributeValueInsideDoubleQuotes(href);
return "href=\"" + limitedEscapedHref + "\"";
return "href~=\"" + limitedEscapedHref + "\"";
}
function getStyleTagSelectorFromKey(key) {
......@@ -30588,7 +30588,17 @@ function renderRootConcurrent(root, lanes) {
}
}
workLoopConcurrent();
if (true && ReactCurrentActQueue.current !== null) {
// `act` special case: If we're inside an `act` scope, don't consult
// `shouldYield`. Always keep working until the render is complete.
// This is not just an optimization: in a unit test environment, we
// can't trust the result of `shouldYield`, because the host I/O is
// likely mocked.
workLoopSync();
} else {
workLoopConcurrent();
}
break;
} catch (thrownValue) {
handleThrow(root, thrownValue);
......@@ -33046,7 +33056,7 @@ identifierPrefix, onRecoverableError, transitionCallbacks) {
return root;
}
var ReactVersion = '18.3.0-next-41110021f-20230301';
var ReactVersion = '18.3.0-next-49f741046-20230305';
function createPortal$1(children, containerInfo, // TODO: figure out the API for cross-renderer implementation.
implementation) {
......@@ -33141,7 +33151,7 @@ function findHostInstanceWithWarning(component, methodName) {
}
}
return hostFiber.stateNode;
return getPublicInstance(hostFiber.stateNode);
}
}
......@@ -33338,7 +33348,7 @@ function findHostInstanceWithNoPortals(fiber) {
return null;
}
return hostFiber.stateNode;
return getPublicInstance(hostFiber.stateNode);
}
var shouldErrorImpl = function (fiber) {
......@@ -135,7 +135,7 @@ e=tg(a),f=d.get(e),f||(f=c.querySelector("script[async]"+e),f||(a={src:a,async:!
rel:"preload",as:d,crossOrigin:"font"===d?"":b.crossOrigin,integrity:b.integrity},lg.set(f,a),null===c.querySelector(e)&&(b=Rf("link",a,c,"http://www.w3.org/1999/xhtml"),Sf(b,"link",a),b[ma]=!0,c.head.appendChild(b)))}}}
function yg(a,b,c){b=og();if(!b)throw Error(q(446));switch(a){case "meta":case "title":return null;case "style":return"string"===typeof c.precedence&&"string"===typeof c.href?(c=sg(c.href),b=ta(b).hoistableStyles,a=b.get(c),a||(a={type:"style",instance:null,count:0},b.set(c,a)),a):{type:"void",instance:null,count:0};case "link":if("stylesheet"===c.rel&&"string"===typeof c.href&&"string"===typeof c.precedence){var d=sg(c.href),e=ta(b).hoistableStyles;a=e.get(d);a||(b=b.ownerDocument||b,a={type:"stylesheet",
instance:null,count:0},e.set(d,a),lg.has(d)||(c={rel:"preload",as:"style",href:c.href,crossOrigin:c.crossOrigin,integrity:c.integrity,media:c.media,hrefLang:c.hrefLang,referrerPolicy:c.referrerPolicy},lg.set(d,c),b.querySelector(ug(d))||null!==b.querySelector('link[rel="preload"][as="style"]['+d+"]")||(d=Rf("link",c,b,"http://www.w3.org/1999/xhtml"),Sf(d,"link",c),d[ma]=!0,b.head.appendChild(d))));return a}return null;case "script":return"string"===typeof c.src&&!0===c.async?(c=tg(c.src),b=ta(b).hoistableScripts,
a=b.get(c),a||(a={type:"script",instance:null,count:0},b.set(c,a)),a):{type:"void",instance:null,count:0};default:throw Error(q(444,a));}}function sg(a){return'href="'+rg(a)+'"'}function ug(a){return'link[rel="stylesheet"]['+a+"]"}function tg(a){return'[src="'+rg(a)+'"]'}
a=b.get(c),a||(a={type:"script",instance:null,count:0},b.set(c,a)),a):{type:"void",instance:null,count:0};default:throw Error(q(444,a));}}function sg(a){return'href~="'+rg(a)+'"'}function ug(a){return'link[rel="stylesheet"]['+a+"]"}function tg(a){return'[src="'+rg(a)+'"]'}
function zg(a,b,c){b.count++;if(null===b.instance)switch(b.type){case "style":var d=sg(c.href);if(d=a.querySelector("style[data-"+d+"]"))return b.instance=d;var e=D({},c,{"data-href":c.href,"data-precedence":c.precedence,href:null,precedence:null});d=Rf("style",e,a,"http://www.w3.org/1999/xhtml");d[ma]=!0;Sf(d,"style",e);wg(d,c.precedence,a);return b.instance=d;case "stylesheet":e=sg(c.href);var f=a.querySelector(ug(e));if(f)return b.instance=f;d=D({},c,{"data-precedence":c.precedence,precedence:null});
(e=lg.get(e))&&vg(d,e);f=Rf("link",d,a,"http://www.w3.org/1999/xhtml");f[ma]=!0;var g=f;g._p=(new Promise(function(h,l){g.onload=h;g.onerror=l})).then(function(){return g._p.s="l"},function(){return g._p.s="e"});Sf(f,"link",d);wg(f,c.precedence,a);return b.instance=f;case "script":e=tg(c.src);if(f=a.querySelector("script[async]"+e))return b.instance=f;d=c;if(e=lg.get(e))d=D({},c),xg(d,e);f=Rf("script",d,a,"http://www.w3.org/1999/xhtml");f[ma]=!0;Sf(f,"link",d);(a.ownerDocument||a).head.appendChild(f);
return b.instance=f;case "void":return null;default:throw Error(q(443,b.type));}return b.instance}function wg(a,b,c){for(var d=c.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),e=d.length?d[d.length-1]:null,f=e,g=0;g<d.length;g++){var h=d[g];if(h.dataset.precedence===b)f=h;else if(f!==e)break}f?f.parentNode.insertBefore(a,f.nextSibling):(b=9===c.nodeType?c.head:c,b.insertBefore(a,b.firstChild))}
......@@ -367,12 +367,12 @@ function Hn(a,b,c,d,e){if(e){if("function"===typeof d){var f=d;d=function(){var
function In(a,b,c,d,e){var f=c._reactRootContainer;if(f){var g=f;if("function"===typeof e){var h=e;e=function(){var l=wn(g);h.call(l)}}vn(b,g,a,e)}else g=Hn(c,b,a,e,d);return wn(g)}Xc=function(a){switch(a.tag){case 3:var b=a.stateNode;if(b.current.memoizedState.isDehydrated){var c=Mc(b.pendingLanes);0!==c&&(Vc(b,c|2),Jm(b,F()),0===(L&6)&&(nl=F()+500,fh()))}break;case 13:Um(function(){var d=Nh(a,2);if(null!==d){var e=Nj();tj(d,a,2,e)}}),yn(a,2)}};
Yc=function(a){if(13===a.tag){var b=Nh(a,134217728);if(null!==b){var c=Nj();tj(b,a,134217728,c)}yn(a,134217728)}};Zc=function(a){if(13===a.tag){var b=Mj(a),c=Nh(a,b);if(null!==c){var d=Nj();tj(c,a,b,d)}yn(a,b)}};$c=function(){return G};ad=function(a,b){var c=G;try{return G=a,b()}finally{G=c}};
Tb=function(a,b,c){switch(b){case "input":vb(a,c);b=c.name;if("radio"===c.type&&null!=b){for(c=a;c.parentNode;)c=c.parentNode;c=c.querySelectorAll("input[name="+JSON.stringify(""+b)+'][type="radio"]');for(b=0;b<c.length;b++){var d=c[b];if(d!==a&&d.form===a.form){var e=sa(d);if(!e)throw Error(q(90));qb(d);vb(d,e)}}}break;case "textarea":Cb(a,c);break;case "select":b=c.value,null!=b&&zb(a,!!c.multiple,b,!1)}};Zb=Tm;$b=Um;ca.Events=[qa,ra,sa,Xb,Yb,Tm];
var Jn={findFiberByHostInstance:oa,bundleType:0,version:"18.3.0-next-41110021f-20230301",rendererPackageName:"react-dom"};
var Jn={findFiberByHostInstance:oa,bundleType:0,version:"18.3.0-next-49f741046-20230305",rendererPackageName:"react-dom"};
var Kn={bundleType:Jn.bundleType,version:Jn.version,rendererPackageName:Jn.rendererPackageName,rendererConfig:Jn.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:La.ReactCurrentDispatcher,findHostInstanceByFiber:function(a){a=rc(a);return null===a?null:a.stateNode},findFiberByHostInstance:Jn.findFiberByHostInstance||
zn,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.0-next-41110021f-20230301"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var Ln=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ln.isDisabled&&Ln.supportsFiber)try{Dc=Ln.inject(Kn),Ec=Ln}catch(a){}}exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ca;
zn,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.0-next-49f741046-20230305"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var Ln=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ln.isDisabled&&Ln.supportsFiber)try{Dc=Ln.inject(Kn),Ec=Ln}catch(a){}}exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ca;
exports.createPortal=function(a,b){var c=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!En(b))throw Error(q(200));return sn(a,b,null,c)};exports.createRoot=function(a,b){if(!En(a))throw Error(q(299));var c=!1,d="",e=Bn;null!==b&&void 0!==b&&(!0===b.unstable_strictMode&&(c=!0),void 0!==b.identifierPrefix&&(d=b.identifierPrefix),void 0!==b.onRecoverableError&&(e=b.onRecoverableError));b=rn(a,1,!1,null,null,c,!1,d,e);a[ha]=b.current;An.current=kg;If(8===a.nodeType?a.parentNode:a);return new Cn(b)};
exports.findDOMNode=function(a){if(null==a)return null;if(1===a.nodeType)return a;var b=a._reactInternals;if(void 0===b){if("function"===typeof a.render)throw Error(q(188));a=Object.keys(a).join(",");throw Error(q(268,a));}a=rc(b);a=null===a?null:a.stateNode;return a};exports.flushSync=function(a){return Um(a)};exports.hydrate=function(a,b,c){if(!Fn(b))throw Error(q(200));return In(null,a,b,!0,c)};
exports.hydrateRoot=function(a,b,c){if(!En(a))throw Error(q(405));var d=null!=c&&c.hydratedSources||null,e=!1,f="",g=Bn;null!==c&&void 0!==c&&(!0===c.unstable_strictMode&&(e=!0),void 0!==c.identifierPrefix&&(f=c.identifierPrefix),void 0!==c.onRecoverableError&&(g=c.onRecoverableError));b=un(b,null,a,1,null!=c?c:null,e,!1,f,g);a[ha]=b.current;An.current=kg;If(a);if(d)for(a=0;a<d.length;a++)c=d[a],e=c._getVersion,e=e(c._source),null==b.mutableSourceEagerHydrationData?b.mutableSourceEagerHydrationData=
[c,e]:b.mutableSourceEagerHydrationData.push(c,e);return new Dn(b)};exports.preconnect=function(){var a=ca.Dispatcher.current;a&&a.preconnect.apply(this,arguments)};exports.prefetchDNS=function(){var a=ca.Dispatcher.current;a&&a.prefetchDNS.apply(this,arguments)};exports.preinit=function(){var a=ca.Dispatcher.current;a&&a.preinit.apply(this,arguments)};exports.preload=function(){var a=ca.Dispatcher.current;a&&a.preload.apply(this,arguments)};
exports.render=function(a,b,c){if(!Fn(b))throw Error(q(200));return In(null,a,b,!1,c)};exports.unmountComponentAtNode=function(a){if(!Fn(a))throw Error(q(40));return a._reactRootContainer?(Um(function(){In(null,null,a,!1,function(){a._reactRootContainer=null;a[ha]=null})}),!0):!1};exports.unstable_batchedUpdates=Tm;exports.unstable_renderSubtreeIntoContainer=function(a,b,c,d){if(!Fn(c))throw Error(q(200));if(null==a||void 0===a._reactInternals)throw Error(q(38));return In(a,b,c,!1,d)};
exports.version="18.3.0-next-41110021f-20230301";
exports.version="18.3.0-next-49f741046-20230305";
......@@ -150,7 +150,7 @@ e=Hg(a),f=d.get(e),f||(f=c.querySelector("script[async]"+e),f||(a={src:a,async:!
rel:"preload",as:d,crossOrigin:"font"===d?"":b.crossOrigin,integrity:b.integrity},zg.set(f,a),null===c.querySelector(e)&&(b=eg("link",a,c,"http://www.w3.org/1999/xhtml"),fg(b,"link",a),b[ma]=!0,c.head.appendChild(b)))}}}
function Mg(a,b,c){b=Cg();if(!b)throw Error(q(446));switch(a){case "meta":case "title":return null;case "style":return"string"===typeof c.precedence&&"string"===typeof c.href?(c=Gg(c.href),b=ta(b).hoistableStyles,a=b.get(c),a||(a={type:"style",instance:null,count:0},b.set(c,a)),a):{type:"void",instance:null,count:0};case "link":if("stylesheet"===c.rel&&"string"===typeof c.href&&"string"===typeof c.precedence){var d=Gg(c.href),e=ta(b).hoistableStyles;a=e.get(d);a||(b=b.ownerDocument||b,a={type:"stylesheet",
instance:null,count:0},e.set(d,a),zg.has(d)||(c={rel:"preload",as:"style",href:c.href,crossOrigin:c.crossOrigin,integrity:c.integrity,media:c.media,hrefLang:c.hrefLang,referrerPolicy:c.referrerPolicy},zg.set(d,c),b.querySelector(Ig(d))||null!==b.querySelector('link[rel="preload"][as="style"]['+d+"]")||(d=eg("link",c,b,"http://www.w3.org/1999/xhtml"),fg(d,"link",c),d[ma]=!0,b.head.appendChild(d))));return a}return null;case "script":return"string"===typeof c.src&&!0===c.async?(c=Hg(c.src),b=ta(b).hoistableScripts,
a=b.get(c),a||(a={type:"script",instance:null,count:0},b.set(c,a)),a):{type:"void",instance:null,count:0};default:throw Error(q(444,a));}}function Gg(a){return'href="'+Fg(a)+'"'}function Ig(a){return'link[rel="stylesheet"]['+a+"]"}function Hg(a){return'[src="'+Fg(a)+'"]'}
a=b.get(c),a||(a={type:"script",instance:null,count:0},b.set(c,a)),a):{type:"void",instance:null,count:0};default:throw Error(q(444,a));}}function Gg(a){return'href~="'+Fg(a)+'"'}function Ig(a){return'link[rel="stylesheet"]['+a+"]"}function Hg(a){return'[src="'+Fg(a)+'"]'}
function Ng(a,b,c){b.count++;if(null===b.instance)switch(b.type){case "style":var d=Gg(c.href);if(d=a.querySelector("style[data-"+d+"]"))return b.instance=d;var e=x({},c,{"data-href":c.href,"data-precedence":c.precedence,href:null,precedence:null});d=eg("style",e,a,"http://www.w3.org/1999/xhtml");d[ma]=!0;fg(d,"style",e);Kg(d,c.precedence,a);return b.instance=d;case "stylesheet":e=Gg(c.href);var f=a.querySelector(Ig(e));if(f)return b.instance=f;d=x({},c,{"data-precedence":c.precedence,precedence:null});
(e=zg.get(e))&&Jg(d,e);f=eg("link",d,a,"http://www.w3.org/1999/xhtml");f[ma]=!0;var g=f;g._p=(new Promise(function(h,l){g.onload=h;g.onerror=l})).then(function(){return g._p.s="l"},function(){return g._p.s="e"});fg(f,"link",d);Kg(f,c.precedence,a);return b.instance=f;case "script":e=Hg(c.src);if(f=a.querySelector("script[async]"+e))return b.instance=f;d=c;if(e=zg.get(e))d=x({},c),Lg(d,e);f=eg("script",d,a,"http://www.w3.org/1999/xhtml");f[ma]=!0;fg(f,"link",d);(a.ownerDocument||a).head.appendChild(f);
return b.instance=f;case "void":return null;default:throw Error(q(443,b.type));}return b.instance}function Kg(a,b,c){for(var d=c.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),e=d.length?d[d.length-1]:null,f=e,g=0;g<d.length;g++){var h=d[g];if(h.dataset.precedence===b)f=h;else if(f!==e)break}f?f.parentNode.insertBefore(a,f.nextSibling):(b=9===c.nodeType?c.head:c,b.insertBefore(a,b.firstChild))}
......@@ -399,16 +399,16 @@ function uo(a,b,c,d,e){if(e){if("function"===typeof d){var f=d;d=function(){var
function vo(a,b,c,d,e){var f=c._reactRootContainer;if(f){var g=f;if("function"===typeof e){var h=e;e=function(){var l=jo(g);h.call(l)}}io(b,g,a,e)}else g=uo(c,b,a,e,d);return jo(g)}kd=function(a){switch(a.tag){case 3:var b=a.stateNode;if(b.current.memoizedState.isDehydrated){var c=Yc(b.pendingLanes);0!==c&&(gd(b,c|2),wn(b,E()),0===(N&6)&&(Pl=E()+500,th()))}break;case 13:Hn(function(){var d=ai(a,2);if(null!==d){var e=ck();Ij(d,a,2,e)}}),lo(a,2)}};
ld=function(a){if(13===a.tag){var b=ai(a,134217728);if(null!==b){var c=ck();Ij(b,a,134217728,c)}lo(a,134217728)}};md=function(a){if(13===a.tag){var b=bk(a),c=ai(a,b);if(null!==c){var d=ck();Ij(c,a,b,d)}lo(a,b)}};nd=function(){return I};od=function(a,b){var c=I;try{return I=a,b()}finally{I=c}};
Tb=function(a,b,c){switch(b){case "input":vb(a,c);b=c.name;if("radio"===c.type&&null!=b){for(c=a;c.parentNode;)c=c.parentNode;c=c.querySelectorAll("input[name="+JSON.stringify(""+b)+'][type="radio"]');for(b=0;b<c.length;b++){var d=c[b];if(d!==a&&d.form===a.form){var e=sa(d);if(!e)throw Error(q(90));qb(d);vb(d,e)}}}break;case "textarea":Cb(a,c);break;case "select":b=c.value,null!=b&&zb(a,!!c.multiple,b,!1)}};Zb=Gn;$b=Hn;ca.Events=[qa,ra,sa,Xb,Yb,Gn];
var wo={findFiberByHostInstance:oa,bundleType:0,version:"18.3.0-next-41110021f-20230301",rendererPackageName:"react-dom"};
var wo={findFiberByHostInstance:oa,bundleType:0,version:"18.3.0-next-49f741046-20230305",rendererPackageName:"react-dom"};
(function(a){if("undefined"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var b=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(b.isDisabled||!b.supportsFiber)return!0;try{a=x({},a,{getLaneLabelMap:Ic,injectProfilingHooks:Hc}),Dc=b.inject(a),Ec=b}catch(c){}return b.checkDCE?!0:!1})({bundleType:wo.bundleType,version:wo.version,rendererPackageName:wo.rendererPackageName,rendererConfig:wo.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,
overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:La.ReactCurrentDispatcher,findHostInstanceByFiber:function(a){a=rc(a);return null===a?null:a.stateNode},findFiberByHostInstance:wo.findFiberByHostInstance||mo,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.0-next-41110021f-20230301"});
overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:La.ReactCurrentDispatcher,findHostInstanceByFiber:function(a){a=rc(a);return null===a?null:a.stateNode},findFiberByHostInstance:wo.findFiberByHostInstance||mo,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.0-next-49f741046-20230305"});
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ca;exports.createPortal=function(a,b){var c=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!ro(b))throw Error(q(200));return fo(a,b,null,c)};
exports.createRoot=function(a,b){if(!ro(a))throw Error(q(299));var c=!1,d="",e=oo;null!==b&&void 0!==b&&(!0===b.unstable_strictMode&&(c=!0),void 0!==b.identifierPrefix&&(d=b.identifierPrefix),void 0!==b.onRecoverableError&&(e=b.onRecoverableError));b=eo(a,1,!1,null,null,c,!1,d,e);a[ha]=b.current;no.current=yg;Wf(8===a.nodeType?a.parentNode:a);return new po(b)};
exports.findDOMNode=function(a){if(null==a)return null;if(1===a.nodeType)return a;var b=a._reactInternals;if(void 0===b){if("function"===typeof a.render)throw Error(q(188));a=Object.keys(a).join(",");throw Error(q(268,a));}a=rc(b);a=null===a?null:a.stateNode;return a};exports.flushSync=function(a){return Hn(a)};exports.hydrate=function(a,b,c){if(!so(b))throw Error(q(200));return vo(null,a,b,!0,c)};
exports.hydrateRoot=function(a,b,c){if(!ro(a))throw Error(q(405));var d=null!=c&&c.hydratedSources||null,e=!1,f="",g=oo;null!==c&&void 0!==c&&(!0===c.unstable_strictMode&&(e=!0),void 0!==c.identifierPrefix&&(f=c.identifierPrefix),void 0!==c.onRecoverableError&&(g=c.onRecoverableError));b=ho(b,null,a,1,null!=c?c:null,e,!1,f,g);a[ha]=b.current;no.current=yg;Wf(a);if(d)for(a=0;a<d.length;a++)c=d[a],e=c._getVersion,e=e(c._source),null==b.mutableSourceEagerHydrationData?b.mutableSourceEagerHydrationData=
[c,e]:b.mutableSourceEagerHydrationData.push(c,e);return new qo(b)};exports.preconnect=function(){var a=ca.Dispatcher.current;a&&a.preconnect.apply(this,arguments)};exports.prefetchDNS=function(){var a=ca.Dispatcher.current;a&&a.prefetchDNS.apply(this,arguments)};exports.preinit=function(){var a=ca.Dispatcher.current;a&&a.preinit.apply(this,arguments)};exports.preload=function(){var a=ca.Dispatcher.current;a&&a.preload.apply(this,arguments)};
exports.render=function(a,b,c){if(!so(b))throw Error(q(200));return vo(null,a,b,!1,c)};exports.unmountComponentAtNode=function(a){if(!so(a))throw Error(q(40));return a._reactRootContainer?(Hn(function(){vo(null,null,a,!1,function(){a._reactRootContainer=null;a[ha]=null})}),!0):!1};exports.unstable_batchedUpdates=Gn;exports.unstable_renderSubtreeIntoContainer=function(a,b,c,d){if(!so(c))throw Error(q(200));if(null==a||void 0===a._reactInternals)throw Error(q(38));return vo(a,b,c,!1,d)};
exports.version="18.3.0-next-41110021f-20230301";
exports.version="18.3.0-next-49f741046-20230305";
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
if (
......
{
"name": "react-dom",
"version": "18.3.0-next-41110021f-20230301",
"version": "18.3.0-next-49f741046-20230305",
"description": "React package for working with the DOM.",
"main": "index.js",
"repository": {
......@@ -18,10 +18,10 @@
"homepage": "https://reactjs.org/",
"dependencies": {
"loose-envify": "^1.1.0",
"scheduler": "0.24.0-next-41110021f-20230301"
"scheduler": "0.24.0-next-49f741046-20230305"
},
"peerDependencies": {
"react": "18.3.0-next-41110021f-20230301"
"react": "18.3.0-next-49f741046-20230305"
},
"files": [
"LICENSE",
......
......@@ -549,13 +549,13 @@ function createServerReferenceProxy(response, metaData) {
if (p.status === INITIALIZED) {
var bound = p.value;
return callServer(metaData, bound.concat(args));
return callServer(metaData.id, bound.concat(args));
} // Since this is a fake Promise whose .then doesn't chain, we have to wrap it.
// TODO: Remove the wrapper once that's fixed.
return Promise.resolve(p).then(function (bound) {
return callServer(metaData, bound.concat(args));
return callServer(metaData.id, bound.concat(args));
});
};
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment