Comparing version 19.0.0-rc-2d2cc042-20240809 to 19.0.0-rc-2ec26bc4-20241111
@@ -171,60 +171,60 @@ /** | ||
disableLogs(); | ||
var RunInRootFrame = { | ||
DetermineComponentFrameRoot: function () { | ||
try { | ||
if (construct) { | ||
var Fake = function () { | ||
throw Error(); | ||
}; | ||
Object.defineProperty(Fake.prototype, "props", { | ||
set: function () { | ||
try { | ||
var RunInRootFrame = { | ||
DetermineComponentFrameRoot: function () { | ||
try { | ||
if (construct) { | ||
var Fake = function () { | ||
throw Error(); | ||
}; | ||
Object.defineProperty(Fake.prototype, "props", { | ||
set: function () { | ||
throw Error(); | ||
} | ||
}); | ||
if ("object" === typeof Reflect && Reflect.construct) { | ||
try { | ||
Reflect.construct(Fake, []); | ||
} catch (x) { | ||
var control = x; | ||
} | ||
Reflect.construct(fn, [], Fake); | ||
} else { | ||
try { | ||
Fake.call(); | ||
} catch (x$0) { | ||
control = x$0; | ||
} | ||
fn.call(Fake.prototype); | ||
} | ||
}); | ||
if ("object" === typeof Reflect && Reflect.construct) { | ||
try { | ||
Reflect.construct(Fake, []); | ||
} catch (x) { | ||
var control = x; | ||
} | ||
Reflect.construct(fn, [], Fake); | ||
} else { | ||
try { | ||
Fake.call(); | ||
} catch (x$0) { | ||
control = x$0; | ||
throw Error(); | ||
} catch (x$1) { | ||
control = x$1; | ||
} | ||
fn.call(Fake.prototype); | ||
(Fake = fn()) && | ||
"function" === typeof Fake.catch && | ||
Fake.catch(function () {}); | ||
} | ||
} else { | ||
try { | ||
throw Error(); | ||
} catch (x$1) { | ||
control = x$1; | ||
} | ||
(Fake = fn()) && | ||
"function" === typeof Fake.catch && | ||
Fake.catch(function () {}); | ||
} catch (sample) { | ||
if (sample && control && "string" === typeof sample.stack) | ||
return [sample.stack, control.stack]; | ||
} | ||
} catch (sample) { | ||
if (sample && control && "string" === typeof sample.stack) | ||
return [sample.stack, control.stack]; | ||
return [null, null]; | ||
} | ||
return [null, null]; | ||
} | ||
}; | ||
RunInRootFrame.DetermineComponentFrameRoot.displayName = | ||
"DetermineComponentFrameRoot"; | ||
var namePropDescriptor = Object.getOwnPropertyDescriptor( | ||
RunInRootFrame.DetermineComponentFrameRoot, | ||
"name" | ||
); | ||
namePropDescriptor && | ||
namePropDescriptor.configurable && | ||
Object.defineProperty( | ||
}; | ||
RunInRootFrame.DetermineComponentFrameRoot.displayName = | ||
"DetermineComponentFrameRoot"; | ||
var namePropDescriptor = Object.getOwnPropertyDescriptor( | ||
RunInRootFrame.DetermineComponentFrameRoot, | ||
"name", | ||
{ value: "DetermineComponentFrameRoot" } | ||
"name" | ||
); | ||
try { | ||
namePropDescriptor && | ||
namePropDescriptor.configurable && | ||
Object.defineProperty( | ||
RunInRootFrame.DetermineComponentFrameRoot, | ||
"name", | ||
{ value: "DetermineComponentFrameRoot" } | ||
); | ||
var _RunInRootFrame$Deter = | ||
@@ -238,5 +238,5 @@ RunInRootFrame.DetermineComponentFrameRoot(), | ||
for ( | ||
sampleStack = _RunInRootFrame$Deter = 0; | ||
_RunInRootFrame$Deter < sampleLines.length && | ||
!sampleLines[_RunInRootFrame$Deter].includes( | ||
_RunInRootFrame$Deter = namePropDescriptor = 0; | ||
namePropDescriptor < sampleLines.length && | ||
!sampleLines[namePropDescriptor].includes( | ||
"DetermineComponentFrameRoot" | ||
@@ -246,43 +246,47 @@ ); | ||
) | ||
_RunInRootFrame$Deter++; | ||
namePropDescriptor++; | ||
for ( | ||
; | ||
sampleStack < controlLines.length && | ||
!controlLines[sampleStack].includes("DetermineComponentFrameRoot"); | ||
_RunInRootFrame$Deter < controlLines.length && | ||
!controlLines[_RunInRootFrame$Deter].includes( | ||
"DetermineComponentFrameRoot" | ||
); | ||
) | ||
sampleStack++; | ||
_RunInRootFrame$Deter++; | ||
if ( | ||
_RunInRootFrame$Deter === sampleLines.length || | ||
sampleStack === controlLines.length | ||
namePropDescriptor === sampleLines.length || | ||
_RunInRootFrame$Deter === controlLines.length | ||
) | ||
for ( | ||
_RunInRootFrame$Deter = sampleLines.length - 1, | ||
sampleStack = controlLines.length - 1; | ||
1 <= _RunInRootFrame$Deter && | ||
0 <= sampleStack && | ||
sampleLines[_RunInRootFrame$Deter] !== controlLines[sampleStack]; | ||
namePropDescriptor = sampleLines.length - 1, | ||
_RunInRootFrame$Deter = controlLines.length - 1; | ||
1 <= namePropDescriptor && | ||
0 <= _RunInRootFrame$Deter && | ||
sampleLines[namePropDescriptor] !== | ||
controlLines[_RunInRootFrame$Deter]; | ||
) | ||
sampleStack--; | ||
_RunInRootFrame$Deter--; | ||
for ( | ||
; | ||
1 <= _RunInRootFrame$Deter && 0 <= sampleStack; | ||
_RunInRootFrame$Deter--, sampleStack-- | ||
1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter; | ||
namePropDescriptor--, _RunInRootFrame$Deter-- | ||
) | ||
if ( | ||
sampleLines[_RunInRootFrame$Deter] !== controlLines[sampleStack] | ||
sampleLines[namePropDescriptor] !== | ||
controlLines[_RunInRootFrame$Deter] | ||
) { | ||
if (1 !== _RunInRootFrame$Deter || 1 !== sampleStack) { | ||
if (1 !== namePropDescriptor || 1 !== _RunInRootFrame$Deter) { | ||
do | ||
if ( | ||
(_RunInRootFrame$Deter--, | ||
sampleStack--, | ||
0 > sampleStack || | ||
sampleLines[_RunInRootFrame$Deter] !== | ||
controlLines[sampleStack]) | ||
(namePropDescriptor--, | ||
_RunInRootFrame$Deter--, | ||
0 > _RunInRootFrame$Deter || | ||
sampleLines[namePropDescriptor] !== | ||
controlLines[_RunInRootFrame$Deter]) | ||
) { | ||
var _frame = | ||
"\n" + | ||
sampleLines[_RunInRootFrame$Deter].replace( | ||
sampleLines[namePropDescriptor].replace( | ||
" at new ", | ||
@@ -298,3 +302,3 @@ " at " | ||
} | ||
while (1 <= _RunInRootFrame$Deter && 0 <= sampleStack); | ||
while (1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter); | ||
} | ||
@@ -351,9 +355,2 @@ break; | ||
} | ||
function hasValidRef(config) { | ||
if (hasOwnProperty.call(config, "ref")) { | ||
var getter = Object.getOwnPropertyDescriptor(config, "ref").get; | ||
if (getter && getter.isReactWarning) return !1; | ||
} | ||
return void 0 !== config.ref; | ||
} | ||
function hasValidKey(config) { | ||
@@ -391,4 +388,4 @@ if (hasOwnProperty.call(config, "key")) { | ||
} | ||
function ReactElement(type, key, _ref, self, source, owner, props) { | ||
_ref = props.ref; | ||
function ReactElement(type, key, self, source, owner, props) { | ||
self = props.ref; | ||
type = { | ||
@@ -401,3 +398,3 @@ $$typeof: REACT_ELEMENT_TYPE, | ||
}; | ||
null !== (void 0 !== _ref ? _ref : null) | ||
null !== (void 0 !== self ? self : null) | ||
? Object.defineProperty(type, "ref", { | ||
@@ -521,3 +518,2 @@ enumerable: !1, | ||
(checkKeyStringCoercion(config.key), (children = "" + config.key)); | ||
hasValidRef(config); | ||
if ("key" in config) { | ||
@@ -529,16 +525,9 @@ maybeKey = {}; | ||
children && | ||
((config = | ||
defineKeyPropWarningGetter( | ||
maybeKey, | ||
"function" === typeof type | ||
? type.displayName || type.name || "Unknown" | ||
: type), | ||
children && defineKeyPropWarningGetter(maybeKey, config)); | ||
return ReactElement( | ||
type, | ||
children, | ||
null, | ||
self, | ||
source, | ||
getOwner(), | ||
maybeKey | ||
); | ||
: type | ||
); | ||
return ReactElement(type, children, self, source, getOwner(), maybeKey); | ||
} | ||
@@ -545,0 +534,0 @@ function validateChildKeys(node, parentType) { |
@@ -171,60 +171,60 @@ /** | ||
disableLogs(); | ||
var RunInRootFrame = { | ||
DetermineComponentFrameRoot: function () { | ||
try { | ||
if (construct) { | ||
var Fake = function () { | ||
throw Error(); | ||
}; | ||
Object.defineProperty(Fake.prototype, "props", { | ||
set: function () { | ||
try { | ||
var RunInRootFrame = { | ||
DetermineComponentFrameRoot: function () { | ||
try { | ||
if (construct) { | ||
var Fake = function () { | ||
throw Error(); | ||
}; | ||
Object.defineProperty(Fake.prototype, "props", { | ||
set: function () { | ||
throw Error(); | ||
} | ||
}); | ||
if ("object" === typeof Reflect && Reflect.construct) { | ||
try { | ||
Reflect.construct(Fake, []); | ||
} catch (x) { | ||
var control = x; | ||
} | ||
Reflect.construct(fn, [], Fake); | ||
} else { | ||
try { | ||
Fake.call(); | ||
} catch (x$0) { | ||
control = x$0; | ||
} | ||
fn.call(Fake.prototype); | ||
} | ||
}); | ||
if ("object" === typeof Reflect && Reflect.construct) { | ||
try { | ||
Reflect.construct(Fake, []); | ||
} catch (x) { | ||
var control = x; | ||
} | ||
Reflect.construct(fn, [], Fake); | ||
} else { | ||
try { | ||
Fake.call(); | ||
} catch (x$0) { | ||
control = x$0; | ||
throw Error(); | ||
} catch (x$1) { | ||
control = x$1; | ||
} | ||
fn.call(Fake.prototype); | ||
(Fake = fn()) && | ||
"function" === typeof Fake.catch && | ||
Fake.catch(function () {}); | ||
} | ||
} else { | ||
try { | ||
throw Error(); | ||
} catch (x$1) { | ||
control = x$1; | ||
} | ||
(Fake = fn()) && | ||
"function" === typeof Fake.catch && | ||
Fake.catch(function () {}); | ||
} catch (sample) { | ||
if (sample && control && "string" === typeof sample.stack) | ||
return [sample.stack, control.stack]; | ||
} | ||
} catch (sample) { | ||
if (sample && control && "string" === typeof sample.stack) | ||
return [sample.stack, control.stack]; | ||
return [null, null]; | ||
} | ||
return [null, null]; | ||
} | ||
}; | ||
RunInRootFrame.DetermineComponentFrameRoot.displayName = | ||
"DetermineComponentFrameRoot"; | ||
var namePropDescriptor = Object.getOwnPropertyDescriptor( | ||
RunInRootFrame.DetermineComponentFrameRoot, | ||
"name" | ||
); | ||
namePropDescriptor && | ||
namePropDescriptor.configurable && | ||
Object.defineProperty( | ||
}; | ||
RunInRootFrame.DetermineComponentFrameRoot.displayName = | ||
"DetermineComponentFrameRoot"; | ||
var namePropDescriptor = Object.getOwnPropertyDescriptor( | ||
RunInRootFrame.DetermineComponentFrameRoot, | ||
"name", | ||
{ value: "DetermineComponentFrameRoot" } | ||
"name" | ||
); | ||
try { | ||
namePropDescriptor && | ||
namePropDescriptor.configurable && | ||
Object.defineProperty( | ||
RunInRootFrame.DetermineComponentFrameRoot, | ||
"name", | ||
{ value: "DetermineComponentFrameRoot" } | ||
); | ||
var _RunInRootFrame$Deter = | ||
@@ -238,5 +238,5 @@ RunInRootFrame.DetermineComponentFrameRoot(), | ||
for ( | ||
sampleStack = _RunInRootFrame$Deter = 0; | ||
_RunInRootFrame$Deter < sampleLines.length && | ||
!sampleLines[_RunInRootFrame$Deter].includes( | ||
_RunInRootFrame$Deter = namePropDescriptor = 0; | ||
namePropDescriptor < sampleLines.length && | ||
!sampleLines[namePropDescriptor].includes( | ||
"DetermineComponentFrameRoot" | ||
@@ -246,43 +246,47 @@ ); | ||
) | ||
_RunInRootFrame$Deter++; | ||
namePropDescriptor++; | ||
for ( | ||
; | ||
sampleStack < controlLines.length && | ||
!controlLines[sampleStack].includes("DetermineComponentFrameRoot"); | ||
_RunInRootFrame$Deter < controlLines.length && | ||
!controlLines[_RunInRootFrame$Deter].includes( | ||
"DetermineComponentFrameRoot" | ||
); | ||
) | ||
sampleStack++; | ||
_RunInRootFrame$Deter++; | ||
if ( | ||
_RunInRootFrame$Deter === sampleLines.length || | ||
sampleStack === controlLines.length | ||
namePropDescriptor === sampleLines.length || | ||
_RunInRootFrame$Deter === controlLines.length | ||
) | ||
for ( | ||
_RunInRootFrame$Deter = sampleLines.length - 1, | ||
sampleStack = controlLines.length - 1; | ||
1 <= _RunInRootFrame$Deter && | ||
0 <= sampleStack && | ||
sampleLines[_RunInRootFrame$Deter] !== controlLines[sampleStack]; | ||
namePropDescriptor = sampleLines.length - 1, | ||
_RunInRootFrame$Deter = controlLines.length - 1; | ||
1 <= namePropDescriptor && | ||
0 <= _RunInRootFrame$Deter && | ||
sampleLines[namePropDescriptor] !== | ||
controlLines[_RunInRootFrame$Deter]; | ||
) | ||
sampleStack--; | ||
_RunInRootFrame$Deter--; | ||
for ( | ||
; | ||
1 <= _RunInRootFrame$Deter && 0 <= sampleStack; | ||
_RunInRootFrame$Deter--, sampleStack-- | ||
1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter; | ||
namePropDescriptor--, _RunInRootFrame$Deter-- | ||
) | ||
if ( | ||
sampleLines[_RunInRootFrame$Deter] !== controlLines[sampleStack] | ||
sampleLines[namePropDescriptor] !== | ||
controlLines[_RunInRootFrame$Deter] | ||
) { | ||
if (1 !== _RunInRootFrame$Deter || 1 !== sampleStack) { | ||
if (1 !== namePropDescriptor || 1 !== _RunInRootFrame$Deter) { | ||
do | ||
if ( | ||
(_RunInRootFrame$Deter--, | ||
sampleStack--, | ||
0 > sampleStack || | ||
sampleLines[_RunInRootFrame$Deter] !== | ||
controlLines[sampleStack]) | ||
(namePropDescriptor--, | ||
_RunInRootFrame$Deter--, | ||
0 > _RunInRootFrame$Deter || | ||
sampleLines[namePropDescriptor] !== | ||
controlLines[_RunInRootFrame$Deter]) | ||
) { | ||
var _frame = | ||
"\n" + | ||
sampleLines[_RunInRootFrame$Deter].replace( | ||
sampleLines[namePropDescriptor].replace( | ||
" at new ", | ||
@@ -298,3 +302,3 @@ " at " | ||
} | ||
while (1 <= _RunInRootFrame$Deter && 0 <= sampleStack); | ||
while (1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter); | ||
} | ||
@@ -351,9 +355,2 @@ break; | ||
} | ||
function hasValidRef(config) { | ||
if (hasOwnProperty.call(config, "ref")) { | ||
var getter = Object.getOwnPropertyDescriptor(config, "ref").get; | ||
if (getter && getter.isReactWarning) return !1; | ||
} | ||
return void 0 !== config.ref; | ||
} | ||
function hasValidKey(config) { | ||
@@ -391,4 +388,4 @@ if (hasOwnProperty.call(config, "key")) { | ||
} | ||
function ReactElement(type, key, _ref, self, source, owner, props) { | ||
_ref = props.ref; | ||
function ReactElement(type, key, self, source, owner, props) { | ||
self = props.ref; | ||
type = { | ||
@@ -401,3 +398,3 @@ $$typeof: REACT_ELEMENT_TYPE, | ||
}; | ||
null !== (void 0 !== _ref ? _ref : null) | ||
null !== (void 0 !== self ? self : null) | ||
? Object.defineProperty(type, "ref", { | ||
@@ -521,3 +518,2 @@ enumerable: !1, | ||
(checkKeyStringCoercion(config.key), (children = "" + config.key)); | ||
hasValidRef(config); | ||
if ("key" in config) { | ||
@@ -529,16 +525,9 @@ maybeKey = {}; | ||
children && | ||
((config = | ||
defineKeyPropWarningGetter( | ||
maybeKey, | ||
"function" === typeof type | ||
? type.displayName || type.name || "Unknown" | ||
: type), | ||
children && defineKeyPropWarningGetter(maybeKey, config)); | ||
return ReactElement( | ||
type, | ||
children, | ||
null, | ||
self, | ||
source, | ||
getOwner(), | ||
maybeKey | ||
); | ||
: type | ||
); | ||
return ReactElement(type, children, self, source, getOwner(), maybeKey); | ||
} | ||
@@ -545,0 +534,0 @@ function validateChildKeys(node, parentType) { |
@@ -171,60 +171,60 @@ /** | ||
disableLogs(); | ||
var RunInRootFrame = { | ||
DetermineComponentFrameRoot: function () { | ||
try { | ||
if (construct) { | ||
var Fake = function () { | ||
throw Error(); | ||
}; | ||
Object.defineProperty(Fake.prototype, "props", { | ||
set: function () { | ||
try { | ||
var RunInRootFrame = { | ||
DetermineComponentFrameRoot: function () { | ||
try { | ||
if (construct) { | ||
var Fake = function () { | ||
throw Error(); | ||
}; | ||
Object.defineProperty(Fake.prototype, "props", { | ||
set: function () { | ||
throw Error(); | ||
} | ||
}); | ||
if ("object" === typeof Reflect && Reflect.construct) { | ||
try { | ||
Reflect.construct(Fake, []); | ||
} catch (x) { | ||
var control = x; | ||
} | ||
Reflect.construct(fn, [], Fake); | ||
} else { | ||
try { | ||
Fake.call(); | ||
} catch (x$0) { | ||
control = x$0; | ||
} | ||
fn.call(Fake.prototype); | ||
} | ||
}); | ||
if ("object" === typeof Reflect && Reflect.construct) { | ||
try { | ||
Reflect.construct(Fake, []); | ||
} catch (x) { | ||
var control = x; | ||
} | ||
Reflect.construct(fn, [], Fake); | ||
} else { | ||
try { | ||
Fake.call(); | ||
} catch (x$0) { | ||
control = x$0; | ||
throw Error(); | ||
} catch (x$1) { | ||
control = x$1; | ||
} | ||
fn.call(Fake.prototype); | ||
(Fake = fn()) && | ||
"function" === typeof Fake.catch && | ||
Fake.catch(function () {}); | ||
} | ||
} else { | ||
try { | ||
throw Error(); | ||
} catch (x$1) { | ||
control = x$1; | ||
} | ||
(Fake = fn()) && | ||
"function" === typeof Fake.catch && | ||
Fake.catch(function () {}); | ||
} catch (sample) { | ||
if (sample && control && "string" === typeof sample.stack) | ||
return [sample.stack, control.stack]; | ||
} | ||
} catch (sample) { | ||
if (sample && control && "string" === typeof sample.stack) | ||
return [sample.stack, control.stack]; | ||
return [null, null]; | ||
} | ||
return [null, null]; | ||
} | ||
}; | ||
RunInRootFrame.DetermineComponentFrameRoot.displayName = | ||
"DetermineComponentFrameRoot"; | ||
var namePropDescriptor = Object.getOwnPropertyDescriptor( | ||
RunInRootFrame.DetermineComponentFrameRoot, | ||
"name" | ||
); | ||
namePropDescriptor && | ||
namePropDescriptor.configurable && | ||
Object.defineProperty( | ||
}; | ||
RunInRootFrame.DetermineComponentFrameRoot.displayName = | ||
"DetermineComponentFrameRoot"; | ||
var namePropDescriptor = Object.getOwnPropertyDescriptor( | ||
RunInRootFrame.DetermineComponentFrameRoot, | ||
"name", | ||
{ value: "DetermineComponentFrameRoot" } | ||
"name" | ||
); | ||
try { | ||
namePropDescriptor && | ||
namePropDescriptor.configurable && | ||
Object.defineProperty( | ||
RunInRootFrame.DetermineComponentFrameRoot, | ||
"name", | ||
{ value: "DetermineComponentFrameRoot" } | ||
); | ||
var _RunInRootFrame$Deter = | ||
@@ -238,5 +238,5 @@ RunInRootFrame.DetermineComponentFrameRoot(), | ||
for ( | ||
sampleStack = _RunInRootFrame$Deter = 0; | ||
_RunInRootFrame$Deter < sampleLines.length && | ||
!sampleLines[_RunInRootFrame$Deter].includes( | ||
_RunInRootFrame$Deter = namePropDescriptor = 0; | ||
namePropDescriptor < sampleLines.length && | ||
!sampleLines[namePropDescriptor].includes( | ||
"DetermineComponentFrameRoot" | ||
@@ -246,43 +246,47 @@ ); | ||
) | ||
_RunInRootFrame$Deter++; | ||
namePropDescriptor++; | ||
for ( | ||
; | ||
sampleStack < controlLines.length && | ||
!controlLines[sampleStack].includes("DetermineComponentFrameRoot"); | ||
_RunInRootFrame$Deter < controlLines.length && | ||
!controlLines[_RunInRootFrame$Deter].includes( | ||
"DetermineComponentFrameRoot" | ||
); | ||
) | ||
sampleStack++; | ||
_RunInRootFrame$Deter++; | ||
if ( | ||
_RunInRootFrame$Deter === sampleLines.length || | ||
sampleStack === controlLines.length | ||
namePropDescriptor === sampleLines.length || | ||
_RunInRootFrame$Deter === controlLines.length | ||
) | ||
for ( | ||
_RunInRootFrame$Deter = sampleLines.length - 1, | ||
sampleStack = controlLines.length - 1; | ||
1 <= _RunInRootFrame$Deter && | ||
0 <= sampleStack && | ||
sampleLines[_RunInRootFrame$Deter] !== controlLines[sampleStack]; | ||
namePropDescriptor = sampleLines.length - 1, | ||
_RunInRootFrame$Deter = controlLines.length - 1; | ||
1 <= namePropDescriptor && | ||
0 <= _RunInRootFrame$Deter && | ||
sampleLines[namePropDescriptor] !== | ||
controlLines[_RunInRootFrame$Deter]; | ||
) | ||
sampleStack--; | ||
_RunInRootFrame$Deter--; | ||
for ( | ||
; | ||
1 <= _RunInRootFrame$Deter && 0 <= sampleStack; | ||
_RunInRootFrame$Deter--, sampleStack-- | ||
1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter; | ||
namePropDescriptor--, _RunInRootFrame$Deter-- | ||
) | ||
if ( | ||
sampleLines[_RunInRootFrame$Deter] !== controlLines[sampleStack] | ||
sampleLines[namePropDescriptor] !== | ||
controlLines[_RunInRootFrame$Deter] | ||
) { | ||
if (1 !== _RunInRootFrame$Deter || 1 !== sampleStack) { | ||
if (1 !== namePropDescriptor || 1 !== _RunInRootFrame$Deter) { | ||
do | ||
if ( | ||
(_RunInRootFrame$Deter--, | ||
sampleStack--, | ||
0 > sampleStack || | ||
sampleLines[_RunInRootFrame$Deter] !== | ||
controlLines[sampleStack]) | ||
(namePropDescriptor--, | ||
_RunInRootFrame$Deter--, | ||
0 > _RunInRootFrame$Deter || | ||
sampleLines[namePropDescriptor] !== | ||
controlLines[_RunInRootFrame$Deter]) | ||
) { | ||
var _frame = | ||
"\n" + | ||
sampleLines[_RunInRootFrame$Deter].replace( | ||
sampleLines[namePropDescriptor].replace( | ||
" at new ", | ||
@@ -298,3 +302,3 @@ " at " | ||
} | ||
while (1 <= _RunInRootFrame$Deter && 0 <= sampleStack); | ||
while (1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter); | ||
} | ||
@@ -351,9 +355,2 @@ break; | ||
} | ||
function hasValidRef(config) { | ||
if (hasOwnProperty.call(config, "ref")) { | ||
var getter = Object.getOwnPropertyDescriptor(config, "ref").get; | ||
if (getter && getter.isReactWarning) return !1; | ||
} | ||
return void 0 !== config.ref; | ||
} | ||
function hasValidKey(config) { | ||
@@ -391,4 +388,4 @@ if (hasOwnProperty.call(config, "key")) { | ||
} | ||
function ReactElement(type, key, _ref, self, source, owner, props) { | ||
_ref = props.ref; | ||
function ReactElement(type, key, self, source, owner, props) { | ||
self = props.ref; | ||
type = { | ||
@@ -401,3 +398,3 @@ $$typeof: REACT_ELEMENT_TYPE, | ||
}; | ||
null !== (void 0 !== _ref ? _ref : null) | ||
null !== (void 0 !== self ? self : null) | ||
? Object.defineProperty(type, "ref", { | ||
@@ -521,3 +518,2 @@ enumerable: !1, | ||
(checkKeyStringCoercion(config.key), (children = "" + config.key)); | ||
hasValidRef(config); | ||
if ("key" in config) { | ||
@@ -529,16 +525,9 @@ maybeKey = {}; | ||
children && | ||
((config = | ||
defineKeyPropWarningGetter( | ||
maybeKey, | ||
"function" === typeof type | ||
? type.displayName || type.name || "Unknown" | ||
: type), | ||
children && defineKeyPropWarningGetter(maybeKey, config)); | ||
return ReactElement( | ||
type, | ||
children, | ||
null, | ||
self, | ||
source, | ||
getOwner(), | ||
maybeKey | ||
); | ||
: type | ||
); | ||
return ReactElement(type, children, self, source, getOwner(), maybeKey); | ||
} | ||
@@ -545,0 +534,0 @@ function validateChildKeys(node, parentType) { |
@@ -171,60 +171,60 @@ /** | ||
disableLogs(); | ||
var RunInRootFrame = { | ||
DetermineComponentFrameRoot: function () { | ||
try { | ||
if (construct) { | ||
var Fake = function () { | ||
throw Error(); | ||
}; | ||
Object.defineProperty(Fake.prototype, "props", { | ||
set: function () { | ||
try { | ||
var RunInRootFrame = { | ||
DetermineComponentFrameRoot: function () { | ||
try { | ||
if (construct) { | ||
var Fake = function () { | ||
throw Error(); | ||
}; | ||
Object.defineProperty(Fake.prototype, "props", { | ||
set: function () { | ||
throw Error(); | ||
} | ||
}); | ||
if ("object" === typeof Reflect && Reflect.construct) { | ||
try { | ||
Reflect.construct(Fake, []); | ||
} catch (x) { | ||
var control = x; | ||
} | ||
Reflect.construct(fn, [], Fake); | ||
} else { | ||
try { | ||
Fake.call(); | ||
} catch (x$0) { | ||
control = x$0; | ||
} | ||
fn.call(Fake.prototype); | ||
} | ||
}); | ||
if ("object" === typeof Reflect && Reflect.construct) { | ||
try { | ||
Reflect.construct(Fake, []); | ||
} catch (x) { | ||
var control = x; | ||
} | ||
Reflect.construct(fn, [], Fake); | ||
} else { | ||
try { | ||
Fake.call(); | ||
} catch (x$0) { | ||
control = x$0; | ||
throw Error(); | ||
} catch (x$1) { | ||
control = x$1; | ||
} | ||
fn.call(Fake.prototype); | ||
(Fake = fn()) && | ||
"function" === typeof Fake.catch && | ||
Fake.catch(function () {}); | ||
} | ||
} else { | ||
try { | ||
throw Error(); | ||
} catch (x$1) { | ||
control = x$1; | ||
} | ||
(Fake = fn()) && | ||
"function" === typeof Fake.catch && | ||
Fake.catch(function () {}); | ||
} catch (sample) { | ||
if (sample && control && "string" === typeof sample.stack) | ||
return [sample.stack, control.stack]; | ||
} | ||
} catch (sample) { | ||
if (sample && control && "string" === typeof sample.stack) | ||
return [sample.stack, control.stack]; | ||
return [null, null]; | ||
} | ||
return [null, null]; | ||
} | ||
}; | ||
RunInRootFrame.DetermineComponentFrameRoot.displayName = | ||
"DetermineComponentFrameRoot"; | ||
var namePropDescriptor = Object.getOwnPropertyDescriptor( | ||
RunInRootFrame.DetermineComponentFrameRoot, | ||
"name" | ||
); | ||
namePropDescriptor && | ||
namePropDescriptor.configurable && | ||
Object.defineProperty( | ||
}; | ||
RunInRootFrame.DetermineComponentFrameRoot.displayName = | ||
"DetermineComponentFrameRoot"; | ||
var namePropDescriptor = Object.getOwnPropertyDescriptor( | ||
RunInRootFrame.DetermineComponentFrameRoot, | ||
"name", | ||
{ value: "DetermineComponentFrameRoot" } | ||
"name" | ||
); | ||
try { | ||
namePropDescriptor && | ||
namePropDescriptor.configurable && | ||
Object.defineProperty( | ||
RunInRootFrame.DetermineComponentFrameRoot, | ||
"name", | ||
{ value: "DetermineComponentFrameRoot" } | ||
); | ||
var _RunInRootFrame$Deter = | ||
@@ -238,5 +238,5 @@ RunInRootFrame.DetermineComponentFrameRoot(), | ||
for ( | ||
sampleStack = _RunInRootFrame$Deter = 0; | ||
_RunInRootFrame$Deter < sampleLines.length && | ||
!sampleLines[_RunInRootFrame$Deter].includes( | ||
_RunInRootFrame$Deter = namePropDescriptor = 0; | ||
namePropDescriptor < sampleLines.length && | ||
!sampleLines[namePropDescriptor].includes( | ||
"DetermineComponentFrameRoot" | ||
@@ -246,43 +246,47 @@ ); | ||
) | ||
_RunInRootFrame$Deter++; | ||
namePropDescriptor++; | ||
for ( | ||
; | ||
sampleStack < controlLines.length && | ||
!controlLines[sampleStack].includes("DetermineComponentFrameRoot"); | ||
_RunInRootFrame$Deter < controlLines.length && | ||
!controlLines[_RunInRootFrame$Deter].includes( | ||
"DetermineComponentFrameRoot" | ||
); | ||
) | ||
sampleStack++; | ||
_RunInRootFrame$Deter++; | ||
if ( | ||
_RunInRootFrame$Deter === sampleLines.length || | ||
sampleStack === controlLines.length | ||
namePropDescriptor === sampleLines.length || | ||
_RunInRootFrame$Deter === controlLines.length | ||
) | ||
for ( | ||
_RunInRootFrame$Deter = sampleLines.length - 1, | ||
sampleStack = controlLines.length - 1; | ||
1 <= _RunInRootFrame$Deter && | ||
0 <= sampleStack && | ||
sampleLines[_RunInRootFrame$Deter] !== controlLines[sampleStack]; | ||
namePropDescriptor = sampleLines.length - 1, | ||
_RunInRootFrame$Deter = controlLines.length - 1; | ||
1 <= namePropDescriptor && | ||
0 <= _RunInRootFrame$Deter && | ||
sampleLines[namePropDescriptor] !== | ||
controlLines[_RunInRootFrame$Deter]; | ||
) | ||
sampleStack--; | ||
_RunInRootFrame$Deter--; | ||
for ( | ||
; | ||
1 <= _RunInRootFrame$Deter && 0 <= sampleStack; | ||
_RunInRootFrame$Deter--, sampleStack-- | ||
1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter; | ||
namePropDescriptor--, _RunInRootFrame$Deter-- | ||
) | ||
if ( | ||
sampleLines[_RunInRootFrame$Deter] !== controlLines[sampleStack] | ||
sampleLines[namePropDescriptor] !== | ||
controlLines[_RunInRootFrame$Deter] | ||
) { | ||
if (1 !== _RunInRootFrame$Deter || 1 !== sampleStack) { | ||
if (1 !== namePropDescriptor || 1 !== _RunInRootFrame$Deter) { | ||
do | ||
if ( | ||
(_RunInRootFrame$Deter--, | ||
sampleStack--, | ||
0 > sampleStack || | ||
sampleLines[_RunInRootFrame$Deter] !== | ||
controlLines[sampleStack]) | ||
(namePropDescriptor--, | ||
_RunInRootFrame$Deter--, | ||
0 > _RunInRootFrame$Deter || | ||
sampleLines[namePropDescriptor] !== | ||
controlLines[_RunInRootFrame$Deter]) | ||
) { | ||
var _frame = | ||
"\n" + | ||
sampleLines[_RunInRootFrame$Deter].replace( | ||
sampleLines[namePropDescriptor].replace( | ||
" at new ", | ||
@@ -298,3 +302,3 @@ " at " | ||
} | ||
while (1 <= _RunInRootFrame$Deter && 0 <= sampleStack); | ||
while (1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter); | ||
} | ||
@@ -351,9 +355,2 @@ break; | ||
} | ||
function hasValidRef(config) { | ||
if (hasOwnProperty.call(config, "ref")) { | ||
var getter = Object.getOwnPropertyDescriptor(config, "ref").get; | ||
if (getter && getter.isReactWarning) return !1; | ||
} | ||
return void 0 !== config.ref; | ||
} | ||
function hasValidKey(config) { | ||
@@ -391,4 +388,4 @@ if (hasOwnProperty.call(config, "key")) { | ||
} | ||
function ReactElement(type, key, _ref, self, source, owner, props) { | ||
_ref = props.ref; | ||
function ReactElement(type, key, self, source, owner, props) { | ||
self = props.ref; | ||
type = { | ||
@@ -401,3 +398,3 @@ $$typeof: REACT_ELEMENT_TYPE, | ||
}; | ||
null !== (void 0 !== _ref ? _ref : null) | ||
null !== (void 0 !== self ? self : null) | ||
? Object.defineProperty(type, "ref", { | ||
@@ -521,3 +518,2 @@ enumerable: !1, | ||
(checkKeyStringCoercion(config.key), (children = "" + config.key)); | ||
hasValidRef(config); | ||
if ("key" in config) { | ||
@@ -529,16 +525,9 @@ maybeKey = {}; | ||
children && | ||
((config = | ||
defineKeyPropWarningGetter( | ||
maybeKey, | ||
"function" === typeof type | ||
? type.displayName || type.name || "Unknown" | ||
: type), | ||
children && defineKeyPropWarningGetter(maybeKey, config)); | ||
return ReactElement( | ||
type, | ||
children, | ||
null, | ||
self, | ||
source, | ||
getOwner(), | ||
maybeKey | ||
); | ||
: type | ||
); | ||
return ReactElement(type, children, self, source, getOwner(), maybeKey); | ||
} | ||
@@ -545,0 +534,0 @@ function validateChildKeys(node, parentType) { |
@@ -238,60 +238,60 @@ /** | ||
disableLogs(); | ||
var RunInRootFrame = { | ||
DetermineComponentFrameRoot: function () { | ||
try { | ||
if (construct) { | ||
var Fake = function () { | ||
throw Error(); | ||
}; | ||
Object.defineProperty(Fake.prototype, "props", { | ||
set: function () { | ||
try { | ||
var RunInRootFrame = { | ||
DetermineComponentFrameRoot: function () { | ||
try { | ||
if (construct) { | ||
var Fake = function () { | ||
throw Error(); | ||
}; | ||
Object.defineProperty(Fake.prototype, "props", { | ||
set: function () { | ||
throw Error(); | ||
} | ||
}); | ||
if ("object" === typeof Reflect && Reflect.construct) { | ||
try { | ||
Reflect.construct(Fake, []); | ||
} catch (x) { | ||
var control = x; | ||
} | ||
Reflect.construct(fn, [], Fake); | ||
} else { | ||
try { | ||
Fake.call(); | ||
} catch (x$0) { | ||
control = x$0; | ||
} | ||
fn.call(Fake.prototype); | ||
} | ||
}); | ||
if ("object" === typeof Reflect && Reflect.construct) { | ||
try { | ||
Reflect.construct(Fake, []); | ||
} catch (x) { | ||
var control = x; | ||
} | ||
Reflect.construct(fn, [], Fake); | ||
} else { | ||
try { | ||
Fake.call(); | ||
} catch (x$0) { | ||
control = x$0; | ||
throw Error(); | ||
} catch (x$1) { | ||
control = x$1; | ||
} | ||
fn.call(Fake.prototype); | ||
(Fake = fn()) && | ||
"function" === typeof Fake.catch && | ||
Fake.catch(function () {}); | ||
} | ||
} else { | ||
try { | ||
throw Error(); | ||
} catch (x$1) { | ||
control = x$1; | ||
} | ||
(Fake = fn()) && | ||
"function" === typeof Fake.catch && | ||
Fake.catch(function () {}); | ||
} catch (sample) { | ||
if (sample && control && "string" === typeof sample.stack) | ||
return [sample.stack, control.stack]; | ||
} | ||
} catch (sample) { | ||
if (sample && control && "string" === typeof sample.stack) | ||
return [sample.stack, control.stack]; | ||
return [null, null]; | ||
} | ||
return [null, null]; | ||
} | ||
}; | ||
RunInRootFrame.DetermineComponentFrameRoot.displayName = | ||
"DetermineComponentFrameRoot"; | ||
var namePropDescriptor = Object.getOwnPropertyDescriptor( | ||
RunInRootFrame.DetermineComponentFrameRoot, | ||
"name" | ||
); | ||
namePropDescriptor && | ||
namePropDescriptor.configurable && | ||
Object.defineProperty( | ||
}; | ||
RunInRootFrame.DetermineComponentFrameRoot.displayName = | ||
"DetermineComponentFrameRoot"; | ||
var namePropDescriptor = Object.getOwnPropertyDescriptor( | ||
RunInRootFrame.DetermineComponentFrameRoot, | ||
"name", | ||
{ value: "DetermineComponentFrameRoot" } | ||
"name" | ||
); | ||
try { | ||
namePropDescriptor && | ||
namePropDescriptor.configurable && | ||
Object.defineProperty( | ||
RunInRootFrame.DetermineComponentFrameRoot, | ||
"name", | ||
{ value: "DetermineComponentFrameRoot" } | ||
); | ||
var _RunInRootFrame$Deter = | ||
@@ -305,5 +305,5 @@ RunInRootFrame.DetermineComponentFrameRoot(), | ||
for ( | ||
sampleStack = _RunInRootFrame$Deter = 0; | ||
_RunInRootFrame$Deter < sampleLines.length && | ||
!sampleLines[_RunInRootFrame$Deter].includes( | ||
_RunInRootFrame$Deter = namePropDescriptor = 0; | ||
namePropDescriptor < sampleLines.length && | ||
!sampleLines[namePropDescriptor].includes( | ||
"DetermineComponentFrameRoot" | ||
@@ -313,43 +313,47 @@ ); | ||
) | ||
_RunInRootFrame$Deter++; | ||
namePropDescriptor++; | ||
for ( | ||
; | ||
sampleStack < controlLines.length && | ||
!controlLines[sampleStack].includes("DetermineComponentFrameRoot"); | ||
_RunInRootFrame$Deter < controlLines.length && | ||
!controlLines[_RunInRootFrame$Deter].includes( | ||
"DetermineComponentFrameRoot" | ||
); | ||
) | ||
sampleStack++; | ||
_RunInRootFrame$Deter++; | ||
if ( | ||
_RunInRootFrame$Deter === sampleLines.length || | ||
sampleStack === controlLines.length | ||
namePropDescriptor === sampleLines.length || | ||
_RunInRootFrame$Deter === controlLines.length | ||
) | ||
for ( | ||
_RunInRootFrame$Deter = sampleLines.length - 1, | ||
sampleStack = controlLines.length - 1; | ||
1 <= _RunInRootFrame$Deter && | ||
0 <= sampleStack && | ||
sampleLines[_RunInRootFrame$Deter] !== controlLines[sampleStack]; | ||
namePropDescriptor = sampleLines.length - 1, | ||
_RunInRootFrame$Deter = controlLines.length - 1; | ||
1 <= namePropDescriptor && | ||
0 <= _RunInRootFrame$Deter && | ||
sampleLines[namePropDescriptor] !== | ||
controlLines[_RunInRootFrame$Deter]; | ||
) | ||
sampleStack--; | ||
_RunInRootFrame$Deter--; | ||
for ( | ||
; | ||
1 <= _RunInRootFrame$Deter && 0 <= sampleStack; | ||
_RunInRootFrame$Deter--, sampleStack-- | ||
1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter; | ||
namePropDescriptor--, _RunInRootFrame$Deter-- | ||
) | ||
if ( | ||
sampleLines[_RunInRootFrame$Deter] !== controlLines[sampleStack] | ||
sampleLines[namePropDescriptor] !== | ||
controlLines[_RunInRootFrame$Deter] | ||
) { | ||
if (1 !== _RunInRootFrame$Deter || 1 !== sampleStack) { | ||
if (1 !== namePropDescriptor || 1 !== _RunInRootFrame$Deter) { | ||
do | ||
if ( | ||
(_RunInRootFrame$Deter--, | ||
sampleStack--, | ||
0 > sampleStack || | ||
sampleLines[_RunInRootFrame$Deter] !== | ||
controlLines[sampleStack]) | ||
(namePropDescriptor--, | ||
_RunInRootFrame$Deter--, | ||
0 > _RunInRootFrame$Deter || | ||
sampleLines[namePropDescriptor] !== | ||
controlLines[_RunInRootFrame$Deter]) | ||
) { | ||
var _frame = | ||
"\n" + | ||
sampleLines[_RunInRootFrame$Deter].replace( | ||
sampleLines[namePropDescriptor].replace( | ||
" at new ", | ||
@@ -365,3 +369,3 @@ " at " | ||
} | ||
while (1 <= _RunInRootFrame$Deter && 0 <= sampleStack); | ||
while (1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter); | ||
} | ||
@@ -418,9 +422,2 @@ break; | ||
} | ||
function hasValidRef(config) { | ||
if (hasOwnProperty.call(config, "ref")) { | ||
var getter = Object.getOwnPropertyDescriptor(config, "ref").get; | ||
if (getter && getter.isReactWarning) return !1; | ||
} | ||
return void 0 !== config.ref; | ||
} | ||
function hasValidKey(config) { | ||
@@ -458,4 +455,4 @@ if (hasOwnProperty.call(config, "key")) { | ||
} | ||
function ReactElement(type, key, _ref, self, source, owner, props) { | ||
_ref = props.ref; | ||
function ReactElement(type, key, self, source, owner, props) { | ||
self = props.ref; | ||
type = { | ||
@@ -468,3 +465,3 @@ $$typeof: REACT_ELEMENT_TYPE, | ||
}; | ||
null !== (void 0 !== _ref ? _ref : null) | ||
null !== (void 0 !== self ? self : null) | ||
? Object.defineProperty(type, "ref", { | ||
@@ -495,3 +492,2 @@ enumerable: !1, | ||
newKey, | ||
null, | ||
void 0, | ||
@@ -1211,7 +1207,22 @@ void 0, | ||
owner = element._owner; | ||
if (null != config) | ||
for (propName in (hasValidRef(config) && (owner = getOwner()), | ||
if (null != config) { | ||
var JSCompiler_inline_result; | ||
a: { | ||
if ( | ||
hasOwnProperty.call(config, "ref") && | ||
(JSCompiler_inline_result = Object.getOwnPropertyDescriptor( | ||
config, | ||
"ref" | ||
).get) && | ||
JSCompiler_inline_result.isReactWarning | ||
) { | ||
JSCompiler_inline_result = !1; | ||
break a; | ||
} | ||
JSCompiler_inline_result = void 0 !== config.ref; | ||
} | ||
JSCompiler_inline_result && (owner = getOwner()); | ||
hasValidKey(config) && | ||
(checkKeyStringCoercion(config.key), (key = "" + config.key)), | ||
config)) | ||
(checkKeyStringCoercion(config.key), (key = "" + config.key)); | ||
for (propName in config) | ||
!hasOwnProperty.call(config, propName) || | ||
@@ -1223,18 +1234,12 @@ "key" === propName || | ||
(props[propName] = config[propName]); | ||
} | ||
var propName = arguments.length - 2; | ||
if (1 === propName) props.children = children; | ||
else if (1 < propName) { | ||
for (var childArray = Array(propName), i = 0; i < propName; i++) | ||
childArray[i] = arguments[i + 2]; | ||
props.children = childArray; | ||
JSCompiler_inline_result = Array(propName); | ||
for (var i = 0; i < propName; i++) | ||
JSCompiler_inline_result[i] = arguments[i + 2]; | ||
props.children = JSCompiler_inline_result; | ||
} | ||
props = ReactElement( | ||
element.type, | ||
key, | ||
null, | ||
void 0, | ||
void 0, | ||
owner, | ||
props | ||
); | ||
props = ReactElement(element.type, key, void 0, void 0, owner, props); | ||
for (key = 2; key < arguments.length; key++) | ||
@@ -1294,2 +1299,3 @@ validateChildKeys(arguments[key], props.type); | ||
} | ||
var propName; | ||
i = {}; | ||
@@ -1305,3 +1311,2 @@ typeString = null; | ||
)), | ||
hasValidRef(config), | ||
hasValidKey(config) && | ||
@@ -1330,18 +1335,10 @@ (checkKeyStringCoercion(config.key), (typeString = "" + config.key)), | ||
void 0 === i[propName] && (i[propName] = childrenLength[propName]); | ||
if (typeString) { | ||
var propName = | ||
typeString && | ||
defineKeyPropWarningGetter( | ||
i, | ||
"function" === typeof type | ||
? type.displayName || type.name || "Unknown" | ||
: type; | ||
typeString && defineKeyPropWarningGetter(i, propName); | ||
} | ||
return ReactElement( | ||
type, | ||
typeString, | ||
null, | ||
void 0, | ||
void 0, | ||
getOwner(), | ||
i | ||
); | ||
: type | ||
); | ||
return ReactElement(type, typeString, void 0, void 0, getOwner(), i); | ||
}; | ||
@@ -1432,6 +1429,5 @@ exports.createRef = function () { | ||
var prevTransition = ReactSharedInternals.T, | ||
transition = {}; | ||
ReactSharedInternals.T = transition; | ||
var currentTransition = ReactSharedInternals.T; | ||
ReactSharedInternals.T._updatedFibers = new Set(); | ||
currentTransition = {}; | ||
ReactSharedInternals.T = currentTransition; | ||
currentTransition._updatedFibers = new Set(); | ||
try { | ||
@@ -1441,3 +1437,3 @@ var returnValue = scope(), | ||
null !== onStartTransitionFinish && | ||
onStartTransitionFinish(transition, returnValue); | ||
onStartTransitionFinish(currentTransition, returnValue); | ||
"object" === typeof returnValue && | ||
@@ -1535,3 +1531,3 @@ null !== returnValue && | ||
}; | ||
exports.version = "19.0.0-rc-2d2cc042-20240809"; | ||
exports.version = "19.0.0-rc-2ec26bc4-20241111"; | ||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && | ||
@@ -1538,0 +1534,0 @@ "function" === |
@@ -77,4 +77,4 @@ /** | ||
hasOwnProperty = Object.prototype.hasOwnProperty; | ||
function ReactElement(type, key, _ref, self, source, owner, props) { | ||
_ref = props.ref; | ||
function ReactElement(type, key, self, source, owner, props) { | ||
self = props.ref; | ||
return { | ||
@@ -84,3 +84,3 @@ $$typeof: REACT_ELEMENT_TYPE, | ||
key: key, | ||
ref: void 0 !== _ref ? _ref : null, | ||
ref: void 0 !== self ? self : null, | ||
props: props | ||
@@ -93,3 +93,2 @@ }; | ||
newKey, | ||
null, | ||
void 0, | ||
@@ -397,3 +396,3 @@ void 0, | ||
} | ||
return ReactElement(element.type, key, null, void 0, void 0, owner, props); | ||
return ReactElement(element.type, key, void 0, void 0, owner, props); | ||
}; | ||
@@ -438,3 +437,3 @@ exports.createContext = function (defaultValue) { | ||
(props[propName] = childrenLength[propName]); | ||
return ReactElement(type, key, null, void 0, void 0, null, props); | ||
return ReactElement(type, key, void 0, void 0, null, props); | ||
}; | ||
@@ -464,4 +463,4 @@ exports.createRef = function () { | ||
var prevTransition = ReactSharedInternals.T, | ||
transition = {}; | ||
ReactSharedInternals.T = transition; | ||
currentTransition = {}; | ||
ReactSharedInternals.T = currentTransition; | ||
try { | ||
@@ -471,3 +470,3 @@ var returnValue = scope(), | ||
null !== onStartTransitionFinish && | ||
onStartTransitionFinish(transition, returnValue); | ||
onStartTransitionFinish(currentTransition, returnValue); | ||
"object" === typeof returnValue && | ||
@@ -546,2 +545,2 @@ null !== returnValue && | ||
}; | ||
exports.version = "19.0.0-rc-2d2cc042-20240809"; | ||
exports.version = "19.0.0-rc-2ec26bc4-20241111"; |
@@ -200,60 +200,60 @@ /** | ||
disableLogs(); | ||
var RunInRootFrame = { | ||
DetermineComponentFrameRoot: function () { | ||
try { | ||
if (construct) { | ||
var Fake = function () { | ||
throw Error(); | ||
}; | ||
Object.defineProperty(Fake.prototype, "props", { | ||
set: function () { | ||
try { | ||
var RunInRootFrame = { | ||
DetermineComponentFrameRoot: function () { | ||
try { | ||
if (construct) { | ||
var Fake = function () { | ||
throw Error(); | ||
}; | ||
Object.defineProperty(Fake.prototype, "props", { | ||
set: function () { | ||
throw Error(); | ||
} | ||
}); | ||
if ("object" === typeof Reflect && Reflect.construct) { | ||
try { | ||
Reflect.construct(Fake, []); | ||
} catch (x) { | ||
var control = x; | ||
} | ||
Reflect.construct(fn, [], Fake); | ||
} else { | ||
try { | ||
Fake.call(); | ||
} catch (x$0) { | ||
control = x$0; | ||
} | ||
fn.call(Fake.prototype); | ||
} | ||
}); | ||
if ("object" === typeof Reflect && Reflect.construct) { | ||
try { | ||
Reflect.construct(Fake, []); | ||
} catch (x) { | ||
var control = x; | ||
} | ||
Reflect.construct(fn, [], Fake); | ||
} else { | ||
try { | ||
Fake.call(); | ||
} catch (x$0) { | ||
control = x$0; | ||
throw Error(); | ||
} catch (x$1) { | ||
control = x$1; | ||
} | ||
fn.call(Fake.prototype); | ||
(Fake = fn()) && | ||
"function" === typeof Fake.catch && | ||
Fake.catch(function () {}); | ||
} | ||
} else { | ||
try { | ||
throw Error(); | ||
} catch (x$1) { | ||
control = x$1; | ||
} | ||
(Fake = fn()) && | ||
"function" === typeof Fake.catch && | ||
Fake.catch(function () {}); | ||
} catch (sample) { | ||
if (sample && control && "string" === typeof sample.stack) | ||
return [sample.stack, control.stack]; | ||
} | ||
} catch (sample) { | ||
if (sample && control && "string" === typeof sample.stack) | ||
return [sample.stack, control.stack]; | ||
return [null, null]; | ||
} | ||
return [null, null]; | ||
} | ||
}; | ||
RunInRootFrame.DetermineComponentFrameRoot.displayName = | ||
"DetermineComponentFrameRoot"; | ||
var namePropDescriptor = Object.getOwnPropertyDescriptor( | ||
RunInRootFrame.DetermineComponentFrameRoot, | ||
"name" | ||
); | ||
namePropDescriptor && | ||
namePropDescriptor.configurable && | ||
Object.defineProperty( | ||
}; | ||
RunInRootFrame.DetermineComponentFrameRoot.displayName = | ||
"DetermineComponentFrameRoot"; | ||
var namePropDescriptor = Object.getOwnPropertyDescriptor( | ||
RunInRootFrame.DetermineComponentFrameRoot, | ||
"name", | ||
{ value: "DetermineComponentFrameRoot" } | ||
"name" | ||
); | ||
try { | ||
namePropDescriptor && | ||
namePropDescriptor.configurable && | ||
Object.defineProperty( | ||
RunInRootFrame.DetermineComponentFrameRoot, | ||
"name", | ||
{ value: "DetermineComponentFrameRoot" } | ||
); | ||
var _RunInRootFrame$Deter = | ||
@@ -267,5 +267,5 @@ RunInRootFrame.DetermineComponentFrameRoot(), | ||
for ( | ||
sampleStack = _RunInRootFrame$Deter = 0; | ||
_RunInRootFrame$Deter < sampleLines.length && | ||
!sampleLines[_RunInRootFrame$Deter].includes( | ||
_RunInRootFrame$Deter = namePropDescriptor = 0; | ||
namePropDescriptor < sampleLines.length && | ||
!sampleLines[namePropDescriptor].includes( | ||
"DetermineComponentFrameRoot" | ||
@@ -275,43 +275,47 @@ ); | ||
) | ||
_RunInRootFrame$Deter++; | ||
namePropDescriptor++; | ||
for ( | ||
; | ||
sampleStack < controlLines.length && | ||
!controlLines[sampleStack].includes("DetermineComponentFrameRoot"); | ||
_RunInRootFrame$Deter < controlLines.length && | ||
!controlLines[_RunInRootFrame$Deter].includes( | ||
"DetermineComponentFrameRoot" | ||
); | ||
) | ||
sampleStack++; | ||
_RunInRootFrame$Deter++; | ||
if ( | ||
_RunInRootFrame$Deter === sampleLines.length || | ||
sampleStack === controlLines.length | ||
namePropDescriptor === sampleLines.length || | ||
_RunInRootFrame$Deter === controlLines.length | ||
) | ||
for ( | ||
_RunInRootFrame$Deter = sampleLines.length - 1, | ||
sampleStack = controlLines.length - 1; | ||
1 <= _RunInRootFrame$Deter && | ||
0 <= sampleStack && | ||
sampleLines[_RunInRootFrame$Deter] !== controlLines[sampleStack]; | ||
namePropDescriptor = sampleLines.length - 1, | ||
_RunInRootFrame$Deter = controlLines.length - 1; | ||
1 <= namePropDescriptor && | ||
0 <= _RunInRootFrame$Deter && | ||
sampleLines[namePropDescriptor] !== | ||
controlLines[_RunInRootFrame$Deter]; | ||
) | ||
sampleStack--; | ||
_RunInRootFrame$Deter--; | ||
for ( | ||
; | ||
1 <= _RunInRootFrame$Deter && 0 <= sampleStack; | ||
_RunInRootFrame$Deter--, sampleStack-- | ||
1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter; | ||
namePropDescriptor--, _RunInRootFrame$Deter-- | ||
) | ||
if ( | ||
sampleLines[_RunInRootFrame$Deter] !== controlLines[sampleStack] | ||
sampleLines[namePropDescriptor] !== | ||
controlLines[_RunInRootFrame$Deter] | ||
) { | ||
if (1 !== _RunInRootFrame$Deter || 1 !== sampleStack) { | ||
if (1 !== namePropDescriptor || 1 !== _RunInRootFrame$Deter) { | ||
do | ||
if ( | ||
(_RunInRootFrame$Deter--, | ||
sampleStack--, | ||
0 > sampleStack || | ||
sampleLines[_RunInRootFrame$Deter] !== | ||
controlLines[sampleStack]) | ||
(namePropDescriptor--, | ||
_RunInRootFrame$Deter--, | ||
0 > _RunInRootFrame$Deter || | ||
sampleLines[namePropDescriptor] !== | ||
controlLines[_RunInRootFrame$Deter]) | ||
) { | ||
var _frame = | ||
"\n" + | ||
sampleLines[_RunInRootFrame$Deter].replace( | ||
sampleLines[namePropDescriptor].replace( | ||
" at new ", | ||
@@ -327,3 +331,3 @@ " at " | ||
} | ||
while (1 <= _RunInRootFrame$Deter && 0 <= sampleStack); | ||
while (1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter); | ||
} | ||
@@ -380,9 +384,2 @@ break; | ||
} | ||
function hasValidRef(config) { | ||
if (hasOwnProperty.call(config, "ref")) { | ||
var getter = Object.getOwnPropertyDescriptor(config, "ref").get; | ||
if (getter && getter.isReactWarning) return !1; | ||
} | ||
return void 0 !== config.ref; | ||
} | ||
function hasValidKey(config) { | ||
@@ -420,4 +417,4 @@ if (hasOwnProperty.call(config, "key")) { | ||
} | ||
function ReactElement(type, key, _ref, self, source, owner, props) { | ||
_ref = props.ref; | ||
function ReactElement(type, key, self, source, owner, props) { | ||
self = props.ref; | ||
type = { | ||
@@ -430,3 +427,3 @@ $$typeof: REACT_ELEMENT_TYPE, | ||
}; | ||
null !== (void 0 !== _ref ? _ref : null) | ||
null !== (void 0 !== self ? self : null) | ||
? Object.defineProperty(type, "ref", { | ||
@@ -457,3 +454,2 @@ enumerable: !1, | ||
newKey, | ||
null, | ||
void 0, | ||
@@ -913,7 +909,22 @@ void 0, | ||
owner = element._owner; | ||
if (null != config) | ||
for (propName in (hasValidRef(config) && (owner = getOwner()), | ||
if (null != config) { | ||
var JSCompiler_inline_result; | ||
a: { | ||
if ( | ||
hasOwnProperty.call(config, "ref") && | ||
(JSCompiler_inline_result = Object.getOwnPropertyDescriptor( | ||
config, | ||
"ref" | ||
).get) && | ||
JSCompiler_inline_result.isReactWarning | ||
) { | ||
JSCompiler_inline_result = !1; | ||
break a; | ||
} | ||
JSCompiler_inline_result = void 0 !== config.ref; | ||
} | ||
JSCompiler_inline_result && (owner = getOwner()); | ||
hasValidKey(config) && | ||
(checkKeyStringCoercion(config.key), (key = "" + config.key)), | ||
config)) | ||
(checkKeyStringCoercion(config.key), (key = "" + config.key)); | ||
for (propName in config) | ||
!hasOwnProperty.call(config, propName) || | ||
@@ -925,18 +936,12 @@ "key" === propName || | ||
(props[propName] = config[propName]); | ||
} | ||
var propName = arguments.length - 2; | ||
if (1 === propName) props.children = children; | ||
else if (1 < propName) { | ||
for (var childArray = Array(propName), i = 0; i < propName; i++) | ||
childArray[i] = arguments[i + 2]; | ||
props.children = childArray; | ||
JSCompiler_inline_result = Array(propName); | ||
for (var i = 0; i < propName; i++) | ||
JSCompiler_inline_result[i] = arguments[i + 2]; | ||
props.children = JSCompiler_inline_result; | ||
} | ||
props = ReactElement( | ||
element.type, | ||
key, | ||
null, | ||
void 0, | ||
void 0, | ||
owner, | ||
props | ||
); | ||
props = ReactElement(element.type, key, void 0, void 0, owner, props); | ||
for (key = 2; key < arguments.length; key++) | ||
@@ -978,2 +983,3 @@ validateChildKeys(arguments[key], props.type); | ||
} | ||
var propName; | ||
i = {}; | ||
@@ -989,3 +995,2 @@ typeString = null; | ||
)), | ||
hasValidRef(config), | ||
hasValidKey(config) && | ||
@@ -1014,18 +1019,10 @@ (checkKeyStringCoercion(config.key), (typeString = "" + config.key)), | ||
void 0 === i[propName] && (i[propName] = childrenLength[propName]); | ||
if (typeString) { | ||
var propName = | ||
typeString && | ||
defineKeyPropWarningGetter( | ||
i, | ||
"function" === typeof type | ||
? type.displayName || type.name || "Unknown" | ||
: type; | ||
typeString && defineKeyPropWarningGetter(i, propName); | ||
} | ||
return ReactElement( | ||
type, | ||
typeString, | ||
null, | ||
void 0, | ||
void 0, | ||
getOwner(), | ||
i | ||
); | ||
: type | ||
); | ||
return ReactElement(type, typeString, void 0, void 0, getOwner(), i); | ||
}; | ||
@@ -1129,3 +1126,3 @@ exports.createRef = function () { | ||
}; | ||
exports.version = "19.0.0-rc-2d2cc042-20240809"; | ||
exports.version = "19.0.0-rc-2ec26bc4-20241111"; | ||
})(); |
@@ -48,4 +48,4 @@ /** | ||
assign = Object.assign; | ||
function ReactElement(type, key, _ref, self, source, owner, props) { | ||
_ref = props.ref; | ||
function ReactElement(type, key, self, source, owner, props) { | ||
self = props.ref; | ||
return { | ||
@@ -55,3 +55,3 @@ $$typeof: REACT_ELEMENT_TYPE, | ||
key: key, | ||
ref: void 0 !== _ref ? _ref : null, | ||
ref: void 0 !== self ? self : null, | ||
props: props | ||
@@ -64,3 +64,2 @@ }; | ||
newKey, | ||
null, | ||
void 0, | ||
@@ -370,3 +369,3 @@ void 0, | ||
} | ||
return ReactElement(element.type, key, null, void 0, void 0, owner, props); | ||
return ReactElement(element.type, key, void 0, void 0, owner, props); | ||
}; | ||
@@ -395,3 +394,3 @@ exports.createElement = function (type, config, children) { | ||
(props[propName] = childrenLength[propName]); | ||
return ReactElement(type, key, null, void 0, void 0, null, props); | ||
return ReactElement(type, key, void 0, void 0, null, props); | ||
}; | ||
@@ -432,2 +431,2 @@ exports.createRef = function () { | ||
}; | ||
exports.version = "19.0.0-rc-2d2cc042-20240809"; | ||
exports.version = "19.0.0-rc-2ec26bc4-20241111"; |
@@ -7,3 +7,3 @@ { | ||
], | ||
"version": "19.0.0-rc-2d2cc042-20240809", | ||
"version": "19.0.0-rc-2ec26bc4-20241111", | ||
"homepage": "https://react.dev/", | ||
@@ -10,0 +10,0 @@ "bugs": "https://github.com/facebook/react/issues", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
237582
9
6499