Comparing version 19.0.0-rc-c3cdbec0a7-20240708 to 19.0.0-rc-cae764ce-20241025
@@ -14,19 +14,2 @@ /** | ||
(function () { | ||
function error(format) { | ||
for ( | ||
var _len2 = arguments.length, | ||
args = Array(1 < _len2 ? _len2 - 1 : 0), | ||
_key2 = 1; | ||
_key2 < _len2; | ||
_key2++ | ||
) | ||
args[_key2 - 1] = arguments[_key2]; | ||
_len2 = format; | ||
_key2 = Error("react-stack-top-frame"); | ||
ReactSharedInternals.getCurrentStack && | ||
((_key2 = ReactSharedInternals.getCurrentStack(_key2)), | ||
"" !== _key2 && ((_len2 += "%s"), (args = args.concat([_key2])))); | ||
args.unshift(_len2); | ||
Function.prototype.apply.call(console.error, console, args); | ||
} | ||
var ReactSharedInternals = | ||
@@ -37,3 +20,3 @@ require("react").__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE; | ||
null === dispatcher && | ||
error( | ||
console.error( | ||
"Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem." | ||
@@ -40,0 +23,0 @@ ); |
@@ -14,19 +14,2 @@ /** | ||
(function () { | ||
function error(format) { | ||
for ( | ||
var _len2 = arguments.length, | ||
args = Array(1 < _len2 ? _len2 - 1 : 0), | ||
_key2 = 1; | ||
_key2 < _len2; | ||
_key2++ | ||
) | ||
args[_key2 - 1] = arguments[_key2]; | ||
_len2 = format; | ||
_key2 = Error("react-stack-top-frame"); | ||
ReactSharedInternals.getCurrentStack && | ||
((_key2 = ReactSharedInternals.getCurrentStack(_key2)), | ||
"" !== _key2 && ((_len2 += "%s"), (args = args.concat([_key2])))); | ||
args.unshift(_len2); | ||
Function.prototype.apply.call(console.error, console, args); | ||
} | ||
function getComponentNameFromType(type) { | ||
@@ -56,3 +39,3 @@ if (null == type) return null; | ||
("number" === typeof type.tag && | ||
error( | ||
console.error( | ||
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue." | ||
@@ -99,16 +82,18 @@ ), | ||
} | ||
if (JSCompiler_inline_result) | ||
return ( | ||
(JSCompiler_inline_result = | ||
("function" === typeof Symbol && | ||
Symbol.toStringTag && | ||
value[Symbol.toStringTag]) || | ||
value.constructor.name || | ||
"Object"), | ||
error( | ||
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", | ||
JSCompiler_inline_result | ||
), | ||
testStringCoercion(value) | ||
if (JSCompiler_inline_result) { | ||
JSCompiler_inline_result = console; | ||
var JSCompiler_temp_const = JSCompiler_inline_result.error; | ||
var JSCompiler_inline_result$jscomp$0 = | ||
("function" === typeof Symbol && | ||
Symbol.toStringTag && | ||
value[Symbol.toStringTag]) || | ||
value.constructor.name || | ||
"Object"; | ||
JSCompiler_temp_const.call( | ||
JSCompiler_inline_result, | ||
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", | ||
JSCompiler_inline_result$jscomp$0 | ||
); | ||
return testStringCoercion(value); | ||
} | ||
} | ||
@@ -158,3 +143,3 @@ function disabledLog() {} | ||
0 > disabledDepth && | ||
error( | ||
console.error( | ||
"disabledDepth fell below zero. This is a bug in React. Please file an issue." | ||
@@ -174,4 +159,4 @@ ); | ||
: -1 < x.stack.indexOf("@") | ||
? "@unknown:0:0" | ||
: ""; | ||
? "@unknown:0:0" | ||
: ""; | ||
} | ||
@@ -191,60 +176,60 @@ return "\n" + prefix + name + suffix; | ||
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 = | ||
@@ -258,5 +243,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" | ||
@@ -266,43 +251,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 ", | ||
@@ -318,3 +307,3 @@ " at " | ||
} | ||
while (1 <= _RunInRootFrame$Deter && 0 <= sampleStack); | ||
while (1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter); | ||
} | ||
@@ -389,3 +378,3 @@ break; | ||
((specialPropKeyWarningShown = !0), | ||
error( | ||
console.error( | ||
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)", | ||
@@ -405,3 +394,3 @@ displayName | ||
((didWarnAboutElementRef[componentName] = !0), | ||
error( | ||
console.error( | ||
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release." | ||
@@ -482,3 +471,3 @@ )); | ||
} else | ||
error( | ||
console.error( | ||
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead." | ||
@@ -500,10 +489,12 @@ ); | ||
: isArrayImpl(type) | ||
? (isStaticChildren = "array") | ||
: void 0 !== type && type.$$typeof === REACT_ELEMENT_TYPE | ||
? ((isStaticChildren = | ||
"<" + (getComponentNameFromType(type.type) || "Unknown") + " />"), | ||
(children = | ||
" Did you accidentally export a JSX literal instead of a component?")) | ||
: (isStaticChildren = typeof type); | ||
error( | ||
? (isStaticChildren = "array") | ||
: void 0 !== type && type.$$typeof === REACT_ELEMENT_TYPE | ||
? ((isStaticChildren = | ||
"<" + | ||
(getComponentNameFromType(type.type) || "Unknown") + | ||
" />"), | ||
(children = | ||
" Did you accidentally export a JSX literal instead of a component?")) | ||
: (isStaticChildren = typeof type); | ||
console.error( | ||
"React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", | ||
@@ -526,3 +517,3 @@ isStaticChildren, | ||
0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}"), | ||
error( | ||
console.error( | ||
'A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />', | ||
@@ -624,3 +615,3 @@ isStaticChildren, | ||
}; | ||
error( | ||
console.error( | ||
'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.', | ||
@@ -661,5 +652,5 @@ parentType, | ||
MAYBE_ITERATOR_SYMBOL = Symbol.iterator, | ||
REACT_CLIENT_REFERENCE$2 = Symbol.for("react.client.reference"), | ||
ReactSharedInternals = | ||
React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, | ||
REACT_CLIENT_REFERENCE$2 = Symbol.for("react.client.reference"), | ||
hasOwnProperty = Object.prototype.hasOwnProperty, | ||
@@ -666,0 +657,0 @@ assign = Object.assign, |
@@ -14,19 +14,2 @@ /** | ||
(function () { | ||
function error(format) { | ||
for ( | ||
var _len2 = arguments.length, | ||
args = Array(1 < _len2 ? _len2 - 1 : 0), | ||
_key2 = 1; | ||
_key2 < _len2; | ||
_key2++ | ||
) | ||
args[_key2 - 1] = arguments[_key2]; | ||
_len2 = format; | ||
_key2 = Error("react-stack-top-frame"); | ||
ReactSharedInternalsServer.getCurrentStack && | ||
((_key2 = ReactSharedInternalsServer.getCurrentStack(_key2)), | ||
"" !== _key2 && ((_len2 += "%s"), (args = args.concat([_key2])))); | ||
args.unshift(_len2); | ||
Function.prototype.apply.call(console.error, console, args); | ||
} | ||
function getComponentNameFromType(type) { | ||
@@ -56,3 +39,3 @@ if (null == type) return null; | ||
("number" === typeof type.tag && | ||
error( | ||
console.error( | ||
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue." | ||
@@ -99,16 +82,18 @@ ), | ||
} | ||
if (JSCompiler_inline_result) | ||
return ( | ||
(JSCompiler_inline_result = | ||
("function" === typeof Symbol && | ||
Symbol.toStringTag && | ||
value[Symbol.toStringTag]) || | ||
value.constructor.name || | ||
"Object"), | ||
error( | ||
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", | ||
JSCompiler_inline_result | ||
), | ||
testStringCoercion(value) | ||
if (JSCompiler_inline_result) { | ||
JSCompiler_inline_result = console; | ||
var JSCompiler_temp_const = JSCompiler_inline_result.error; | ||
var JSCompiler_inline_result$jscomp$0 = | ||
("function" === typeof Symbol && | ||
Symbol.toStringTag && | ||
value[Symbol.toStringTag]) || | ||
value.constructor.name || | ||
"Object"; | ||
JSCompiler_temp_const.call( | ||
JSCompiler_inline_result, | ||
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", | ||
JSCompiler_inline_result$jscomp$0 | ||
); | ||
return testStringCoercion(value); | ||
} | ||
} | ||
@@ -158,3 +143,3 @@ function disabledLog() {} | ||
0 > disabledDepth && | ||
error( | ||
console.error( | ||
"disabledDepth fell below zero. This is a bug in React. Please file an issue." | ||
@@ -174,4 +159,4 @@ ); | ||
: -1 < x.stack.indexOf("@") | ||
? "@unknown:0:0" | ||
: ""; | ||
? "@unknown:0:0" | ||
: ""; | ||
} | ||
@@ -191,60 +176,60 @@ return "\n" + prefix + name + suffix; | ||
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 = | ||
@@ -258,5 +243,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" | ||
@@ -266,43 +251,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 ", | ||
@@ -318,3 +307,3 @@ " at " | ||
} | ||
while (1 <= _RunInRootFrame$Deter && 0 <= sampleStack); | ||
while (1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter); | ||
} | ||
@@ -389,3 +378,3 @@ break; | ||
((specialPropKeyWarningShown = !0), | ||
error( | ||
console.error( | ||
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)", | ||
@@ -405,3 +394,3 @@ displayName | ||
((didWarnAboutElementRef[componentName] = !0), | ||
error( | ||
console.error( | ||
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release." | ||
@@ -482,3 +471,3 @@ )); | ||
} else | ||
error( | ||
console.error( | ||
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead." | ||
@@ -500,10 +489,12 @@ ); | ||
: isArrayImpl(type) | ||
? (isStaticChildren = "array") | ||
: void 0 !== type && type.$$typeof === REACT_ELEMENT_TYPE | ||
? ((isStaticChildren = | ||
"<" + (getComponentNameFromType(type.type) || "Unknown") + " />"), | ||
(children = | ||
" Did you accidentally export a JSX literal instead of a component?")) | ||
: (isStaticChildren = typeof type); | ||
error( | ||
? (isStaticChildren = "array") | ||
: void 0 !== type && type.$$typeof === REACT_ELEMENT_TYPE | ||
? ((isStaticChildren = | ||
"<" + | ||
(getComponentNameFromType(type.type) || "Unknown") + | ||
" />"), | ||
(children = | ||
" Did you accidentally export a JSX literal instead of a component?")) | ||
: (isStaticChildren = typeof type); | ||
console.error( | ||
"React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", | ||
@@ -526,3 +517,3 @@ isStaticChildren, | ||
0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}"), | ||
error( | ||
console.error( | ||
'A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />', | ||
@@ -624,3 +615,3 @@ isStaticChildren, | ||
}; | ||
error( | ||
console.error( | ||
'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.', | ||
@@ -661,2 +652,3 @@ parentType, | ||
MAYBE_ITERATOR_SYMBOL = Symbol.iterator, | ||
REACT_CLIENT_REFERENCE$2 = Symbol.for("react.client.reference"), | ||
ReactSharedInternalsServer = | ||
@@ -668,4 +660,3 @@ React.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE; | ||
); | ||
var REACT_CLIENT_REFERENCE$2 = Symbol.for("react.client.reference"), | ||
hasOwnProperty = Object.prototype.hasOwnProperty, | ||
var hasOwnProperty = Object.prototype.hasOwnProperty, | ||
assign = Object.assign, | ||
@@ -672,0 +663,0 @@ REACT_CLIENT_REFERENCE$1 = Symbol.for("react.client.reference"), |
@@ -14,19 +14,2 @@ /** | ||
(function () { | ||
function error(format) { | ||
for ( | ||
var _len2 = arguments.length, | ||
args = Array(1 < _len2 ? _len2 - 1 : 0), | ||
_key2 = 1; | ||
_key2 < _len2; | ||
_key2++ | ||
) | ||
args[_key2 - 1] = arguments[_key2]; | ||
_len2 = format; | ||
_key2 = Error("react-stack-top-frame"); | ||
ReactSharedInternals.getCurrentStack && | ||
((_key2 = ReactSharedInternals.getCurrentStack(_key2)), | ||
"" !== _key2 && ((_len2 += "%s"), (args = args.concat([_key2])))); | ||
args.unshift(_len2); | ||
Function.prototype.apply.call(console.error, console, args); | ||
} | ||
function getComponentNameFromType(type) { | ||
@@ -56,3 +39,3 @@ if (null == type) return null; | ||
("number" === typeof type.tag && | ||
error( | ||
console.error( | ||
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue." | ||
@@ -99,16 +82,18 @@ ), | ||
} | ||
if (JSCompiler_inline_result) | ||
return ( | ||
(JSCompiler_inline_result = | ||
("function" === typeof Symbol && | ||
Symbol.toStringTag && | ||
value[Symbol.toStringTag]) || | ||
value.constructor.name || | ||
"Object"), | ||
error( | ||
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", | ||
JSCompiler_inline_result | ||
), | ||
testStringCoercion(value) | ||
if (JSCompiler_inline_result) { | ||
JSCompiler_inline_result = console; | ||
var JSCompiler_temp_const = JSCompiler_inline_result.error; | ||
var JSCompiler_inline_result$jscomp$0 = | ||
("function" === typeof Symbol && | ||
Symbol.toStringTag && | ||
value[Symbol.toStringTag]) || | ||
value.constructor.name || | ||
"Object"; | ||
JSCompiler_temp_const.call( | ||
JSCompiler_inline_result, | ||
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", | ||
JSCompiler_inline_result$jscomp$0 | ||
); | ||
return testStringCoercion(value); | ||
} | ||
} | ||
@@ -158,3 +143,3 @@ function disabledLog() {} | ||
0 > disabledDepth && | ||
error( | ||
console.error( | ||
"disabledDepth fell below zero. This is a bug in React. Please file an issue." | ||
@@ -174,4 +159,4 @@ ); | ||
: -1 < x.stack.indexOf("@") | ||
? "@unknown:0:0" | ||
: ""; | ||
? "@unknown:0:0" | ||
: ""; | ||
} | ||
@@ -191,60 +176,60 @@ return "\n" + prefix + name + suffix; | ||
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 = | ||
@@ -258,5 +243,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" | ||
@@ -266,43 +251,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 ", | ||
@@ -318,3 +307,3 @@ " at " | ||
} | ||
while (1 <= _RunInRootFrame$Deter && 0 <= sampleStack); | ||
while (1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter); | ||
} | ||
@@ -389,3 +378,3 @@ break; | ||
((specialPropKeyWarningShown = !0), | ||
error( | ||
console.error( | ||
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)", | ||
@@ -405,3 +394,3 @@ displayName | ||
((didWarnAboutElementRef[componentName] = !0), | ||
error( | ||
console.error( | ||
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release." | ||
@@ -482,3 +471,3 @@ )); | ||
} else | ||
error( | ||
console.error( | ||
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead." | ||
@@ -500,10 +489,12 @@ ); | ||
: isArrayImpl(type) | ||
? (isStaticChildren = "array") | ||
: void 0 !== type && type.$$typeof === REACT_ELEMENT_TYPE | ||
? ((isStaticChildren = | ||
"<" + (getComponentNameFromType(type.type) || "Unknown") + " />"), | ||
(children = | ||
" Did you accidentally export a JSX literal instead of a component?")) | ||
: (isStaticChildren = typeof type); | ||
error( | ||
? (isStaticChildren = "array") | ||
: void 0 !== type && type.$$typeof === REACT_ELEMENT_TYPE | ||
? ((isStaticChildren = | ||
"<" + | ||
(getComponentNameFromType(type.type) || "Unknown") + | ||
" />"), | ||
(children = | ||
" Did you accidentally export a JSX literal instead of a component?")) | ||
: (isStaticChildren = typeof type); | ||
console.error( | ||
"React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", | ||
@@ -526,3 +517,3 @@ isStaticChildren, | ||
0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}"), | ||
error( | ||
console.error( | ||
'A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />', | ||
@@ -624,3 +615,3 @@ isStaticChildren, | ||
}; | ||
error( | ||
console.error( | ||
'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.', | ||
@@ -661,5 +652,5 @@ parentType, | ||
MAYBE_ITERATOR_SYMBOL = Symbol.iterator, | ||
REACT_CLIENT_REFERENCE$2 = Symbol.for("react.client.reference"), | ||
ReactSharedInternals = | ||
React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, | ||
REACT_CLIENT_REFERENCE$2 = Symbol.for("react.client.reference"), | ||
hasOwnProperty = Object.prototype.hasOwnProperty, | ||
@@ -666,0 +657,0 @@ assign = Object.assign, |
@@ -14,19 +14,2 @@ /** | ||
(function () { | ||
function error(format) { | ||
for ( | ||
var _len2 = arguments.length, | ||
args = Array(1 < _len2 ? _len2 - 1 : 0), | ||
_key2 = 1; | ||
_key2 < _len2; | ||
_key2++ | ||
) | ||
args[_key2 - 1] = arguments[_key2]; | ||
_len2 = format; | ||
_key2 = Error("react-stack-top-frame"); | ||
ReactSharedInternalsServer.getCurrentStack && | ||
((_key2 = ReactSharedInternalsServer.getCurrentStack(_key2)), | ||
"" !== _key2 && ((_len2 += "%s"), (args = args.concat([_key2])))); | ||
args.unshift(_len2); | ||
Function.prototype.apply.call(console.error, console, args); | ||
} | ||
function getComponentNameFromType(type) { | ||
@@ -56,3 +39,3 @@ if (null == type) return null; | ||
("number" === typeof type.tag && | ||
error( | ||
console.error( | ||
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue." | ||
@@ -99,16 +82,18 @@ ), | ||
} | ||
if (JSCompiler_inline_result) | ||
return ( | ||
(JSCompiler_inline_result = | ||
("function" === typeof Symbol && | ||
Symbol.toStringTag && | ||
value[Symbol.toStringTag]) || | ||
value.constructor.name || | ||
"Object"), | ||
error( | ||
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", | ||
JSCompiler_inline_result | ||
), | ||
testStringCoercion(value) | ||
if (JSCompiler_inline_result) { | ||
JSCompiler_inline_result = console; | ||
var JSCompiler_temp_const = JSCompiler_inline_result.error; | ||
var JSCompiler_inline_result$jscomp$0 = | ||
("function" === typeof Symbol && | ||
Symbol.toStringTag && | ||
value[Symbol.toStringTag]) || | ||
value.constructor.name || | ||
"Object"; | ||
JSCompiler_temp_const.call( | ||
JSCompiler_inline_result, | ||
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", | ||
JSCompiler_inline_result$jscomp$0 | ||
); | ||
return testStringCoercion(value); | ||
} | ||
} | ||
@@ -158,3 +143,3 @@ function disabledLog() {} | ||
0 > disabledDepth && | ||
error( | ||
console.error( | ||
"disabledDepth fell below zero. This is a bug in React. Please file an issue." | ||
@@ -174,4 +159,4 @@ ); | ||
: -1 < x.stack.indexOf("@") | ||
? "@unknown:0:0" | ||
: ""; | ||
? "@unknown:0:0" | ||
: ""; | ||
} | ||
@@ -191,60 +176,60 @@ return "\n" + prefix + name + suffix; | ||
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 = | ||
@@ -258,5 +243,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" | ||
@@ -266,43 +251,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 ", | ||
@@ -318,3 +307,3 @@ " at " | ||
} | ||
while (1 <= _RunInRootFrame$Deter && 0 <= sampleStack); | ||
while (1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter); | ||
} | ||
@@ -389,3 +378,3 @@ break; | ||
((specialPropKeyWarningShown = !0), | ||
error( | ||
console.error( | ||
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)", | ||
@@ -405,3 +394,3 @@ displayName | ||
((didWarnAboutElementRef[componentName] = !0), | ||
error( | ||
console.error( | ||
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release." | ||
@@ -482,3 +471,3 @@ )); | ||
} else | ||
error( | ||
console.error( | ||
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead." | ||
@@ -500,10 +489,12 @@ ); | ||
: isArrayImpl(type) | ||
? (isStaticChildren = "array") | ||
: void 0 !== type && type.$$typeof === REACT_ELEMENT_TYPE | ||
? ((isStaticChildren = | ||
"<" + (getComponentNameFromType(type.type) || "Unknown") + " />"), | ||
(children = | ||
" Did you accidentally export a JSX literal instead of a component?")) | ||
: (isStaticChildren = typeof type); | ||
error( | ||
? (isStaticChildren = "array") | ||
: void 0 !== type && type.$$typeof === REACT_ELEMENT_TYPE | ||
? ((isStaticChildren = | ||
"<" + | ||
(getComponentNameFromType(type.type) || "Unknown") + | ||
" />"), | ||
(children = | ||
" Did you accidentally export a JSX literal instead of a component?")) | ||
: (isStaticChildren = typeof type); | ||
console.error( | ||
"React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", | ||
@@ -526,3 +517,3 @@ isStaticChildren, | ||
0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}"), | ||
error( | ||
console.error( | ||
'A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />', | ||
@@ -624,3 +615,3 @@ isStaticChildren, | ||
}; | ||
error( | ||
console.error( | ||
'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.', | ||
@@ -661,2 +652,3 @@ parentType, | ||
MAYBE_ITERATOR_SYMBOL = Symbol.iterator, | ||
REACT_CLIENT_REFERENCE$2 = Symbol.for("react.client.reference"), | ||
ReactSharedInternalsServer = | ||
@@ -668,4 +660,3 @@ React.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE; | ||
); | ||
var REACT_CLIENT_REFERENCE$2 = Symbol.for("react.client.reference"), | ||
hasOwnProperty = Object.prototype.hasOwnProperty, | ||
var hasOwnProperty = Object.prototype.hasOwnProperty, | ||
assign = Object.assign, | ||
@@ -672,0 +663,0 @@ REACT_CLIENT_REFERENCE$1 = Symbol.for("react.client.reference"), |
@@ -17,3 +17,3 @@ /** | ||
get: function () { | ||
warn( | ||
console.warn( | ||
"%s(...) is deprecated in plain JavaScript React classes. %s", | ||
@@ -34,32 +34,2 @@ info[0], | ||
} | ||
function warn(format) { | ||
for ( | ||
var _len = arguments.length, | ||
args = Array(1 < _len ? _len - 1 : 0), | ||
_key = 1; | ||
_key < _len; | ||
_key++ | ||
) | ||
args[_key - 1] = arguments[_key]; | ||
printWarning("warn", format, args, Error("react-stack-top-frame")); | ||
} | ||
function error$jscomp$0(format) { | ||
for ( | ||
var _len2 = arguments.length, | ||
args = Array(1 < _len2 ? _len2 - 1 : 0), | ||
_key2 = 1; | ||
_key2 < _len2; | ||
_key2++ | ||
) | ||
args[_key2 - 1] = arguments[_key2]; | ||
printWarning("error", format, args, Error("react-stack-top-frame")); | ||
} | ||
function printWarning(level, format, args, currentStack) { | ||
ReactSharedInternals.getCurrentStack && | ||
((currentStack = ReactSharedInternals.getCurrentStack(currentStack)), | ||
"" !== currentStack && | ||
((format += "%s"), (args = args.concat([currentStack])))); | ||
args.unshift(format); | ||
Function.prototype.apply.call(console[level], console, args); | ||
} | ||
function warnNoop(publicInstance, callerName) { | ||
@@ -72,3 +42,3 @@ publicInstance = | ||
didWarnStateUpdateForUnmountedComponent[warningKey] || | ||
(error$jscomp$0( | ||
(console.error( | ||
"Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.", | ||
@@ -103,16 +73,18 @@ callerName, | ||
} | ||
if (JSCompiler_inline_result) | ||
return ( | ||
(JSCompiler_inline_result = | ||
("function" === typeof Symbol && | ||
Symbol.toStringTag && | ||
value[Symbol.toStringTag]) || | ||
value.constructor.name || | ||
"Object"), | ||
error$jscomp$0( | ||
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", | ||
JSCompiler_inline_result | ||
), | ||
testStringCoercion(value) | ||
if (JSCompiler_inline_result) { | ||
JSCompiler_inline_result = console; | ||
var JSCompiler_temp_const = JSCompiler_inline_result.error; | ||
var JSCompiler_inline_result$jscomp$0 = | ||
("function" === typeof Symbol && | ||
Symbol.toStringTag && | ||
value[Symbol.toStringTag]) || | ||
value.constructor.name || | ||
"Object"; | ||
JSCompiler_temp_const.call( | ||
JSCompiler_inline_result, | ||
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", | ||
JSCompiler_inline_result$jscomp$0 | ||
); | ||
return testStringCoercion(value); | ||
} | ||
} | ||
@@ -143,3 +115,3 @@ function getComponentNameFromType(type) { | ||
("number" === typeof type.tag && | ||
error$jscomp$0( | ||
console.error( | ||
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue." | ||
@@ -240,3 +212,3 @@ ), | ||
0 > disabledDepth && | ||
error$jscomp$0( | ||
console.error( | ||
"disabledDepth fell below zero. This is a bug in React. Please file an issue." | ||
@@ -256,4 +228,4 @@ ); | ||
: -1 < x.stack.indexOf("@") | ||
? "@unknown:0:0" | ||
: ""; | ||
? "@unknown:0:0" | ||
: ""; | ||
} | ||
@@ -273,60 +245,60 @@ return "\n" + prefix + name + suffix; | ||
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 = | ||
@@ -340,5 +312,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" | ||
@@ -348,43 +320,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 ", | ||
@@ -400,3 +376,3 @@ " at " | ||
} | ||
while (1 <= _RunInRootFrame$Deter && 0 <= sampleStack); | ||
while (1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter); | ||
} | ||
@@ -471,3 +447,3 @@ break; | ||
((specialPropKeyWarningShown = !0), | ||
error$jscomp$0( | ||
console.error( | ||
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)", | ||
@@ -487,3 +463,3 @@ displayName | ||
((didWarnAboutElementRef[componentName] = !0), | ||
error$jscomp$0( | ||
console.error( | ||
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release." | ||
@@ -594,3 +570,3 @@ )); | ||
}; | ||
error$jscomp$0( | ||
console.error( | ||
'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.', | ||
@@ -754,3 +730,3 @@ parentType, | ||
(didWarnAboutMaps || | ||
warn( | ||
console.warn( | ||
"Using Maps as children is not supported. Use an array of keyed ReactElements instead." | ||
@@ -823,3 +799,3 @@ ), | ||
void 0 === ctor && | ||
error$jscomp$0( | ||
console.error( | ||
"lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?", | ||
@@ -829,3 +805,3 @@ ctor | ||
"default" in ctor || | ||
error$jscomp$0( | ||
console.error( | ||
"lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))", | ||
@@ -841,3 +817,3 @@ ctor | ||
null === dispatcher && | ||
error$jscomp$0( | ||
console.error( | ||
"Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem." | ||
@@ -861,3 +837,3 @@ ); | ||
"undefined" === typeof MessageChannel && | ||
error$jscomp$0( | ||
console.error( | ||
"This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning." | ||
@@ -879,3 +855,3 @@ )); | ||
prevActScopeDepth !== actScopeDepth - 1 && | ||
error$jscomp$0( | ||
console.error( | ||
"You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. " | ||
@@ -895,4 +871,4 @@ ); | ||
return; | ||
} catch (error$5) { | ||
ReactSharedInternals.thrownErrors.push(error$5); | ||
} catch (error) { | ||
ReactSharedInternals.thrownErrors.push(error); | ||
} | ||
@@ -927,5 +903,4 @@ else ReactSharedInternals.actQueue = null; | ||
queue.length = 0; | ||
} catch (error$6) { | ||
queue.splice(0, i + 1), | ||
ReactSharedInternals.thrownErrors.push(error$6); | ||
} catch (error) { | ||
queue.splice(0, i + 1), ReactSharedInternals.thrownErrors.push(error); | ||
} finally { | ||
@@ -955,14 +930,2 @@ isFlushing = !1; | ||
MAYBE_ITERATOR_SYMBOL = Symbol.iterator, | ||
ReactSharedInternals = { | ||
H: null, | ||
A: null, | ||
T: null, | ||
S: null, | ||
actQueue: null, | ||
isBatchingLegacy: !1, | ||
didScheduleLegacyUpdate: !1, | ||
didUsePromise: !1, | ||
thrownErrors: [], | ||
getCurrentStack: null | ||
}, | ||
didWarnStateUpdateForUnmountedComponent = {}, | ||
@@ -1022,2 +985,14 @@ ReactNoopUpdateQueue = { | ||
REACT_CLIENT_REFERENCE$2 = Symbol.for("react.client.reference"), | ||
ReactSharedInternals = { | ||
H: null, | ||
A: null, | ||
T: null, | ||
S: null, | ||
actQueue: null, | ||
isBatchingLegacy: !1, | ||
didScheduleLegacyUpdate: !1, | ||
didUsePromise: !1, | ||
thrownErrors: [], | ||
getCurrentStack: null | ||
}, | ||
hasOwnProperty = Object.prototype.hasOwnProperty, | ||
@@ -1139,4 +1114,4 @@ REACT_CLIENT_REFERENCE$1 = Symbol.for("react.client.reference"), | ||
var result = callback(); | ||
} catch (error$3) { | ||
ReactSharedInternals.thrownErrors.push(error$3); | ||
} catch (error) { | ||
ReactSharedInternals.thrownErrors.push(error); | ||
} | ||
@@ -1160,3 +1135,3 @@ if (0 < ReactSharedInternals.thrownErrors.length) | ||
((didWarnNoAwaitAct = !0), | ||
error$jscomp$0( | ||
console.error( | ||
"You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);" | ||
@@ -1181,4 +1156,4 @@ )); | ||
}); | ||
} catch (error$4) { | ||
ReactSharedInternals.thrownErrors.push(error$4); | ||
} catch (error$2) { | ||
ReactSharedInternals.thrownErrors.push(error$2); | ||
} | ||
@@ -1217,3 +1192,3 @@ if (0 < ReactSharedInternals.thrownErrors.length) { | ||
((didWarnNoAwaitAct = !0), | ||
error$jscomp$0( | ||
console.error( | ||
"A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)" | ||
@@ -1328,10 +1303,10 @@ )); | ||
: void 0 !== type && type.$$typeof === REACT_ELEMENT_TYPE | ||
? ((typeString = | ||
"<" + | ||
(getComponentNameFromType(type.type) || "Unknown") + | ||
" />"), | ||
(i = | ||
" Did you accidentally export a JSX literal instead of a component?")) | ||
: (typeString = typeof type); | ||
error$jscomp$0( | ||
? ((typeString = | ||
"<" + | ||
(getComponentNameFromType(type.type) || "Unknown") + | ||
" />"), | ||
(i = | ||
" Did you accidentally export a JSX literal instead of a component?")) | ||
: (typeString = typeof type); | ||
console.error( | ||
"React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", | ||
@@ -1349,3 +1324,3 @@ typeString, | ||
((didWarnAboutOldJSXRuntime = !0), | ||
warn( | ||
console.warn( | ||
"Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform" | ||
@@ -1401,21 +1376,21 @@ )), | ||
null != render && render.$$typeof === REACT_MEMO_TYPE | ||
? error$jscomp$0( | ||
? console.error( | ||
"forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))." | ||
) | ||
: "function" !== typeof render | ||
? error$jscomp$0( | ||
"forwardRef requires a render function but was given %s.", | ||
null === render ? "null" : typeof render | ||
) | ||
: 0 !== render.length && | ||
2 !== render.length && | ||
error$jscomp$0( | ||
"forwardRef render functions accept exactly two parameters: props and ref. %s", | ||
1 === render.length | ||
? "Did you forget to use the ref parameter?" | ||
: "Any additional parameter will be undefined." | ||
); | ||
? console.error( | ||
"forwardRef requires a render function but was given %s.", | ||
null === render ? "null" : typeof render | ||
) | ||
: 0 !== render.length && | ||
2 !== render.length && | ||
console.error( | ||
"forwardRef render functions accept exactly two parameters: props and ref. %s", | ||
1 === render.length | ||
? "Did you forget to use the ref parameter?" | ||
: "Any additional parameter will be undefined." | ||
); | ||
null != render && | ||
null != render.defaultProps && | ||
error$jscomp$0( | ||
console.error( | ||
"forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?" | ||
@@ -1451,3 +1426,3 @@ ); | ||
isValidElementType(type) || | ||
error$jscomp$0( | ||
console.error( | ||
"memo: The first argument must be a component. Instead received: %s", | ||
@@ -1480,6 +1455,5 @@ null === type ? "null" : typeof type | ||
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 { | ||
@@ -1489,3 +1463,3 @@ var returnValue = scope(), | ||
null !== onStartTransitionFinish && | ||
onStartTransitionFinish(transition, returnValue); | ||
onStartTransitionFinish(currentTransition, returnValue); | ||
"object" === typeof returnValue && | ||
@@ -1495,4 +1469,4 @@ null !== returnValue && | ||
returnValue.then(noop, reportGlobalError); | ||
} catch (error$2) { | ||
reportGlobalError(error$2); | ||
} catch (error) { | ||
reportGlobalError(error); | ||
} finally { | ||
@@ -1504,3 +1478,3 @@ null === prevTransition && | ||
10 < scope && | ||
warn( | ||
console.warn( | ||
"Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table." | ||
@@ -1530,3 +1504,3 @@ )), | ||
Context.$$typeof === REACT_CONSUMER_TYPE && | ||
error$jscomp$0( | ||
console.error( | ||
"Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?" | ||
@@ -1586,3 +1560,3 @@ ); | ||
}; | ||
exports.version = "19.0.0-rc-c3cdbec0a7-20240708"; | ||
exports.version = "19.0.0-rc-cae764ce-20241025"; | ||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && | ||
@@ -1589,0 +1563,0 @@ "function" === |
@@ -459,4 +459,4 @@ /** | ||
var prevTransition = ReactSharedInternals.T, | ||
transition = {}; | ||
ReactSharedInternals.T = transition; | ||
currentTransition = {}; | ||
ReactSharedInternals.T = currentTransition; | ||
try { | ||
@@ -466,3 +466,3 @@ var returnValue = scope(), | ||
null !== onStartTransitionFinish && | ||
onStartTransitionFinish(transition, returnValue); | ||
onStartTransitionFinish(currentTransition, returnValue); | ||
"object" === typeof returnValue && | ||
@@ -541,2 +541,2 @@ null !== returnValue && | ||
}; | ||
exports.version = "19.0.0-rc-c3cdbec0a7-20240708"; | ||
exports.version = "19.0.0-rc-cae764ce-20241025"; |
@@ -14,32 +14,2 @@ /** | ||
(function () { | ||
function warn(format) { | ||
for ( | ||
var _len = arguments.length, | ||
args = Array(1 < _len ? _len - 1 : 0), | ||
_key = 1; | ||
_key < _len; | ||
_key++ | ||
) | ||
args[_key - 1] = arguments[_key]; | ||
printWarning("warn", format, args, Error("react-stack-top-frame")); | ||
} | ||
function error$jscomp$0(format) { | ||
for ( | ||
var _len2 = arguments.length, | ||
args = Array(1 < _len2 ? _len2 - 1 : 0), | ||
_key2 = 1; | ||
_key2 < _len2; | ||
_key2++ | ||
) | ||
args[_key2 - 1] = arguments[_key2]; | ||
printWarning("error", format, args, Error("react-stack-top-frame")); | ||
} | ||
function printWarning(level, format, args, currentStack) { | ||
ReactSharedInternals.getCurrentStack && | ||
((currentStack = ReactSharedInternals.getCurrentStack(currentStack)), | ||
"" !== currentStack && | ||
((format += "%s"), (args = args.concat([currentStack])))); | ||
args.unshift(format); | ||
Function.prototype.apply.call(console[level], console, args); | ||
} | ||
function getIteratorFn(maybeIterable) { | ||
@@ -63,16 +33,18 @@ if (null === maybeIterable || "object" !== typeof maybeIterable) | ||
} | ||
if (JSCompiler_inline_result) | ||
return ( | ||
(JSCompiler_inline_result = | ||
("function" === typeof Symbol && | ||
Symbol.toStringTag && | ||
value[Symbol.toStringTag]) || | ||
value.constructor.name || | ||
"Object"), | ||
error$jscomp$0( | ||
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", | ||
JSCompiler_inline_result | ||
), | ||
testStringCoercion(value) | ||
if (JSCompiler_inline_result) { | ||
JSCompiler_inline_result = console; | ||
var JSCompiler_temp_const = JSCompiler_inline_result.error; | ||
var JSCompiler_inline_result$jscomp$0 = | ||
("function" === typeof Symbol && | ||
Symbol.toStringTag && | ||
value[Symbol.toStringTag]) || | ||
value.constructor.name || | ||
"Object"; | ||
JSCompiler_temp_const.call( | ||
JSCompiler_inline_result, | ||
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", | ||
JSCompiler_inline_result$jscomp$0 | ||
); | ||
return testStringCoercion(value); | ||
} | ||
} | ||
@@ -103,3 +75,3 @@ function getComponentNameFromType(type) { | ||
("number" === typeof type.tag && | ||
error$jscomp$0( | ||
console.error( | ||
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue." | ||
@@ -200,3 +172,3 @@ ), | ||
0 > disabledDepth && | ||
error$jscomp$0( | ||
console.error( | ||
"disabledDepth fell below zero. This is a bug in React. Please file an issue." | ||
@@ -216,4 +188,4 @@ ); | ||
: -1 < x.stack.indexOf("@") | ||
? "@unknown:0:0" | ||
: ""; | ||
? "@unknown:0:0" | ||
: ""; | ||
} | ||
@@ -233,60 +205,60 @@ return "\n" + prefix + name + suffix; | ||
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 = | ||
@@ -300,5 +272,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" | ||
@@ -308,43 +280,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 ", | ||
@@ -360,3 +336,3 @@ " at " | ||
} | ||
while (1 <= _RunInRootFrame$Deter && 0 <= sampleStack); | ||
while (1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter); | ||
} | ||
@@ -431,3 +407,3 @@ break; | ||
((specialPropKeyWarningShown = !0), | ||
error$jscomp$0( | ||
console.error( | ||
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)", | ||
@@ -447,3 +423,3 @@ displayName | ||
((didWarnAboutElementRef[componentName] = !0), | ||
error$jscomp$0( | ||
console.error( | ||
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release." | ||
@@ -554,3 +530,3 @@ )); | ||
}; | ||
error$jscomp$0( | ||
console.error( | ||
'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.', | ||
@@ -714,3 +690,3 @@ parentType, | ||
(didWarnAboutMaps || | ||
warn( | ||
console.warn( | ||
"Using Maps as children is not supported. Use an array of keyed ReactElements instead." | ||
@@ -765,3 +741,3 @@ ), | ||
null === dispatcher && | ||
error$jscomp$0( | ||
console.error( | ||
"Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem." | ||
@@ -792,3 +768,3 @@ ); | ||
void 0 === ctor && | ||
error$jscomp$0( | ||
console.error( | ||
"lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?", | ||
@@ -798,3 +774,3 @@ ctor | ||
"default" in ctor || | ||
error$jscomp$0( | ||
console.error( | ||
"lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))", | ||
@@ -932,8 +908,5 @@ ctor | ||
return (fnMap.v = result); | ||
} catch (error$2) { | ||
} catch (error) { | ||
throw ( | ||
((result = dispatcher), | ||
(result.s = 2), | ||
(result.v = error$2), | ||
error$2) | ||
((result = dispatcher), (result.s = 2), (result.v = error), error) | ||
); | ||
@@ -1003,10 +976,10 @@ } | ||
: void 0 !== type && type.$$typeof === REACT_ELEMENT_TYPE | ||
? ((typeString = | ||
"<" + | ||
(getComponentNameFromType(type.type) || "Unknown") + | ||
" />"), | ||
(i = | ||
" Did you accidentally export a JSX literal instead of a component?")) | ||
: (typeString = typeof type); | ||
error$jscomp$0( | ||
? ((typeString = | ||
"<" + | ||
(getComponentNameFromType(type.type) || "Unknown") + | ||
" />"), | ||
(i = | ||
" Did you accidentally export a JSX literal instead of a component?")) | ||
: (typeString = typeof type); | ||
console.error( | ||
"React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", | ||
@@ -1024,3 +997,3 @@ typeString, | ||
((didWarnAboutOldJSXRuntime = !0), | ||
warn( | ||
console.warn( | ||
"Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform" | ||
@@ -1076,21 +1049,21 @@ )), | ||
null != render && render.$$typeof === REACT_MEMO_TYPE | ||
? error$jscomp$0( | ||
? console.error( | ||
"forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))." | ||
) | ||
: "function" !== typeof render | ||
? error$jscomp$0( | ||
"forwardRef requires a render function but was given %s.", | ||
null === render ? "null" : typeof render | ||
) | ||
: 0 !== render.length && | ||
2 !== render.length && | ||
error$jscomp$0( | ||
"forwardRef render functions accept exactly two parameters: props and ref. %s", | ||
1 === render.length | ||
? "Did you forget to use the ref parameter?" | ||
: "Any additional parameter will be undefined." | ||
); | ||
? console.error( | ||
"forwardRef requires a render function but was given %s.", | ||
null === render ? "null" : typeof render | ||
) | ||
: 0 !== render.length && | ||
2 !== render.length && | ||
console.error( | ||
"forwardRef render functions accept exactly two parameters: props and ref. %s", | ||
1 === render.length | ||
? "Did you forget to use the ref parameter?" | ||
: "Any additional parameter will be undefined." | ||
); | ||
null != render && | ||
null != render.defaultProps && | ||
error$jscomp$0( | ||
console.error( | ||
"forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?" | ||
@@ -1126,3 +1099,3 @@ ); | ||
isValidElementType(type) || | ||
error$jscomp$0( | ||
console.error( | ||
"memo: The first argument must be a component. Instead received: %s", | ||
@@ -1168,3 +1141,3 @@ null === type ? "null" : typeof type | ||
}; | ||
exports.version = "19.0.0-rc-c3cdbec0a7-20240708"; | ||
exports.version = "19.0.0-rc-cae764ce-20241025"; | ||
})(); |
@@ -427,2 +427,2 @@ /** | ||
}; | ||
exports.version = "19.0.0-rc-c3cdbec0a7-20240708"; | ||
exports.version = "19.0.0-rc-cae764ce-20241025"; |
@@ -7,3 +7,3 @@ { | ||
], | ||
"version": "19.0.0-rc-c3cdbec0a7-20240708", | ||
"version": "19.0.0-rc-cae764ce-20241025", | ||
"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
239066
6575