/**
* @license React
* react-dom-server-legacy.browser.development.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/*
JS Implementation of MurmurHash3 (r136) (as of May 20, 2011)
Copyright (c) 2011 Gary Court
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/
"use strict";
"production" !== process.env.NODE_ENV &&
(function () {
function styleReplacer(match, prefix, s, suffix) {
return "" + prefix + ("s" === s ? "\\73 " : "\\53 ") + suffix;
}
function scriptReplacer(match, prefix, s, suffix) {
return "" + prefix + ("s" === s ? "\\u0073" : "\\u0053") + suffix;
}
function objectName(object) {
return Object.prototype.toString
.call(object)
.replace(/^\[object (.*)\]$/, function (m, p0) {
return p0;
});
}
function describeKeyForErrorMessage(key) {
var encodedKey = JSON.stringify(key);
return '"' + key + '"' === encodedKey ? key : encodedKey;
}
function describeValueForErrorMessage(value) {
switch (typeof value) {
case "string":
return JSON.stringify(
10 >= value.length ? value : value.slice(0, 10) + "..."
);
case "object":
if (isArrayImpl(value)) return "[...]";
if (null !== value && value.$$typeof === CLIENT_REFERENCE_TAG)
return "client";
value = objectName(value);
return "Object" === value ? "{...}" : value;
case "function":
return value.$$typeof === CLIENT_REFERENCE_TAG
? "client"
: (value = value.displayName || value.name)
? "function " + value
: "function";
default:
return String(value);
}
}
function describeElementType(type) {
if ("string" === typeof type) return type;
switch (type) {
case REACT_SUSPENSE_TYPE:
return "Suspense";
case REACT_SUSPENSE_LIST_TYPE:
return "SuspenseList";
}
if ("object" === typeof type)
switch (type.$$typeof) {
case REACT_FORWARD_REF_TYPE:
return describeElementType(type.render);
case REACT_MEMO_TYPE:
return describeElementType(type.type);
case REACT_LAZY_TYPE:
var payload = type._payload;
type = type._init;
try {
return describeElementType(type(payload));
} catch (x) {}
}
return "";
}
function describeObjectForErrorMessage(objectOrArray, expandedName) {
var objKind = objectName(objectOrArray);
if ("Object" !== objKind && "Array" !== objKind) return objKind;
var start = -1,
length = 0;
if (isArrayImpl(objectOrArray))
if (jsxChildrenParents.has(objectOrArray)) {
var type = jsxChildrenParents.get(objectOrArray);
objKind = "<" + describeElementType(type) + ">";
for (var i = 0; i < objectOrArray.length; i++) {
var value = objectOrArray[i];
value =
"string" === typeof value
? value
: "object" === typeof value && null !== value
? "{" + describeObjectForErrorMessage(value) + "}"
: "{" + describeValueForErrorMessage(value) + "}";
"" + i === expandedName
? ((start = objKind.length),
(length = value.length),
(objKind += value))
: (objKind =
15 > value.length && 40 > objKind.length + value.length
? objKind + value
: objKind + "{...}");
}
objKind += "" + describeElementType(type) + ">";
} else {
objKind = "[";
for (type = 0; type < objectOrArray.length; type++)
0 < type && (objKind += ", "),
(i = objectOrArray[type]),
(i =
"object" === typeof i && null !== i
? describeObjectForErrorMessage(i)
: describeValueForErrorMessage(i)),
"" + type === expandedName
? ((start = objKind.length),
(length = i.length),
(objKind += i))
: (objKind =
10 > i.length && 40 > objKind.length + i.length
? objKind + i
: objKind + "...");
objKind += "]";
}
else if (objectOrArray.$$typeof === REACT_ELEMENT_TYPE)
objKind = "<" + describeElementType(objectOrArray.type) + "/>";
else {
if (objectOrArray.$$typeof === CLIENT_REFERENCE_TAG) return "client";
if (jsxPropsParents.has(objectOrArray)) {
objKind = jsxPropsParents.get(objectOrArray);
objKind = "<" + (describeElementType(objKind) || "...");
type = Object.keys(objectOrArray);
for (i = 0; i < type.length; i++) {
objKind += " ";
value = type[i];
objKind += describeKeyForErrorMessage(value) + "=";
var _value2 = objectOrArray[value];
var _substr2 =
value === expandedName &&
"object" === typeof _value2 &&
null !== _value2
? describeObjectForErrorMessage(_value2)
: describeValueForErrorMessage(_value2);
"string" !== typeof _value2 && (_substr2 = "{" + _substr2 + "}");
value === expandedName
? ((start = objKind.length),
(length = _substr2.length),
(objKind += _substr2))
: (objKind =
10 > _substr2.length && 40 > objKind.length + _substr2.length
? objKind + _substr2
: objKind + "...");
}
objKind += ">";
} else {
objKind = "{";
type = Object.keys(objectOrArray);
for (i = 0; i < type.length; i++)
0 < i && (objKind += ", "),
(value = type[i]),
(objKind += describeKeyForErrorMessage(value) + ": "),
(_value2 = objectOrArray[value]),
(_value2 =
"object" === typeof _value2 && null !== _value2
? describeObjectForErrorMessage(_value2)
: describeValueForErrorMessage(_value2)),
value === expandedName
? ((start = objKind.length),
(length = _value2.length),
(objKind += _value2))
: (objKind =
10 > _value2.length && 40 > objKind.length + _value2.length
? objKind + _value2
: objKind + "...");
objKind += "}";
}
}
return void 0 === expandedName
? objKind
: -1 < start && 0 < length
? ((objectOrArray = " ".repeat(start) + "^".repeat(length)),
"\n " + objKind + "\n " + objectOrArray)
: "\n " + objKind;
}
function murmurhash3_32_gc(key, seed) {
var remainder = key.length & 3;
var bytes = key.length - remainder;
var h1 = seed;
for (seed = 0; seed < bytes; ) {
var k1 =
(key.charCodeAt(seed) & 255) |
((key.charCodeAt(++seed) & 255) << 8) |
((key.charCodeAt(++seed) & 255) << 16) |
((key.charCodeAt(++seed) & 255) << 24);
++seed;
k1 =
(3432918353 * (k1 & 65535) +
(((3432918353 * (k1 >>> 16)) & 65535) << 16)) &
4294967295;
k1 = (k1 << 15) | (k1 >>> 17);
k1 =
(461845907 * (k1 & 65535) +
(((461845907 * (k1 >>> 16)) & 65535) << 16)) &
4294967295;
h1 ^= k1;
h1 = (h1 << 13) | (h1 >>> 19);
h1 =
(5 * (h1 & 65535) + (((5 * (h1 >>> 16)) & 65535) << 16)) & 4294967295;
h1 = (h1 & 65535) + 27492 + ((((h1 >>> 16) + 58964) & 65535) << 16);
}
k1 = 0;
switch (remainder) {
case 3:
k1 ^= (key.charCodeAt(seed + 2) & 255) << 16;
case 2:
k1 ^= (key.charCodeAt(seed + 1) & 255) << 8;
case 1:
(k1 ^= key.charCodeAt(seed) & 255),
(k1 =
(3432918353 * (k1 & 65535) +
(((3432918353 * (k1 >>> 16)) & 65535) << 16)) &
4294967295),
(k1 = (k1 << 15) | (k1 >>> 17)),
(h1 ^=
(461845907 * (k1 & 65535) +
(((461845907 * (k1 >>> 16)) & 65535) << 16)) &
4294967295);
}
h1 ^= key.length;
h1 ^= h1 >>> 16;
h1 =
(2246822507 * (h1 & 65535) +
(((2246822507 * (h1 >>> 16)) & 65535) << 16)) &
4294967295;
h1 ^= h1 >>> 13;
h1 =
(3266489909 * (h1 & 65535) +
(((3266489909 * (h1 >>> 16)) & 65535) << 16)) &
4294967295;
return (h1 ^ (h1 >>> 16)) >>> 0;
}
function typeName(value) {
return (
("function" === typeof Symbol &&
Symbol.toStringTag &&
value[Symbol.toStringTag]) ||
value.constructor.name ||
"Object"
);
}
function willCoercionThrow(value) {
try {
return testStringCoercion(value), !1;
} catch (e) {
return !0;
}
}
function testStringCoercion(value) {
return "" + value;
}
function checkAttributeStringCoercion(value, attributeName) {
if (willCoercionThrow(value))
return (
console.error(
"The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",
attributeName,
typeName(value)
),
testStringCoercion(value)
);
}
function checkCSSPropertyStringCoercion(value, propName) {
if (willCoercionThrow(value))
return (
console.error(
"The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",
propName,
typeName(value)
),
testStringCoercion(value)
);
}
function checkHtmlStringCoercion(value) {
if (willCoercionThrow(value))
return (
console.error(
"The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",
typeName(value)
),
testStringCoercion(value)
);
}
function isAttributeNameSafe(attributeName) {
if (hasOwnProperty.call(validatedAttributeNameCache, attributeName))
return !0;
if (hasOwnProperty.call(illegalAttributeNameCache, attributeName))
return !1;
if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName))
return (validatedAttributeNameCache[attributeName] = !0);
illegalAttributeNameCache[attributeName] = !0;
console.error("Invalid attribute name: `%s`", attributeName);
return !1;
}
function checkControlledValueProps(tagName, props) {
hasReadOnlyValue[props.type] ||
props.onChange ||
props.onInput ||
props.readOnly ||
props.disabled ||
null == props.value ||
("select" === tagName
? console.error(
"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`."
)
: console.error(
"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."
));
props.onChange ||
props.readOnly ||
props.disabled ||
null == props.checked ||
console.error(
"You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`."
);
}
function validateProperty$1(tagName, name) {
if (
hasOwnProperty.call(warnedProperties$1, name) &&
warnedProperties$1[name]
)
return !0;
if (rARIACamel$1.test(name)) {
tagName = "aria-" + name.slice(4).toLowerCase();
tagName = ariaProperties.hasOwnProperty(tagName) ? tagName : null;
if (null == tagName)
return (
console.error(
"Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",
name
),
(warnedProperties$1[name] = !0)
);
if (name !== tagName)
return (
console.error(
"Invalid ARIA attribute `%s`. Did you mean `%s`?",
name,
tagName
),
(warnedProperties$1[name] = !0)
);
}
if (rARIA$1.test(name)) {
tagName = name.toLowerCase();
tagName = ariaProperties.hasOwnProperty(tagName) ? tagName : null;
if (null == tagName) return (warnedProperties$1[name] = !0), !1;
name !== tagName &&
(console.error(
"Unknown ARIA attribute `%s`. Did you mean `%s`?",
name,
tagName
),
(warnedProperties$1[name] = !0));
}
return !0;
}
function validateProperties$2(type, props) {
var invalidProps = [],
key;
for (key in props)
validateProperty$1(type, key) || invalidProps.push(key);
props = invalidProps
.map(function (prop) {
return "`" + prop + "`";
})
.join(", ");
1 === invalidProps.length
? console.error(
"Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",
props,
type
)
: 1 < invalidProps.length &&
console.error(
"Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",
props,
type
);
}
function validateProperty(tagName, name, value, eventRegistry) {
if (hasOwnProperty.call(warnedProperties, name) && warnedProperties[name])
return !0;
var lowerCasedName = name.toLowerCase();
if ("onfocusin" === lowerCasedName || "onfocusout" === lowerCasedName)
return (
console.error(
"React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."
),
(warnedProperties[name] = !0)
);
if (
"function" === typeof value &&
(("form" === tagName && "action" === name) ||
("input" === tagName && "formAction" === name) ||
("button" === tagName && "formAction" === name))
)
return !0;
if (null != eventRegistry) {
tagName = eventRegistry.possibleRegistrationNames;
if (eventRegistry.registrationNameDependencies.hasOwnProperty(name))
return !0;
eventRegistry = tagName.hasOwnProperty(lowerCasedName)
? tagName[lowerCasedName]
: null;
if (null != eventRegistry)
return (
console.error(
"Invalid event handler property `%s`. Did you mean `%s`?",
name,
eventRegistry
),
(warnedProperties[name] = !0)
);
if (EVENT_NAME_REGEX.test(name))
return (
console.error(
"Unknown event handler property `%s`. It will be ignored.",
name
),
(warnedProperties[name] = !0)
);
} else if (EVENT_NAME_REGEX.test(name))
return (
INVALID_EVENT_NAME_REGEX.test(name) &&
console.error(
"Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",
name
),
(warnedProperties[name] = !0)
);
if (rARIA.test(name) || rARIACamel.test(name)) return !0;
if ("innerhtml" === lowerCasedName)
return (
console.error(
"Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."
),
(warnedProperties[name] = !0)
);
if ("aria" === lowerCasedName)
return (
console.error(
"The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."
),
(warnedProperties[name] = !0)
);
if (
"is" === lowerCasedName &&
null !== value &&
void 0 !== value &&
"string" !== typeof value
)
return (
console.error(
"Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",
typeof value
),
(warnedProperties[name] = !0)
);
if ("number" === typeof value && isNaN(value))
return (
console.error(
"Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",
name
),
(warnedProperties[name] = !0)
);
if (possibleStandardNames.hasOwnProperty(lowerCasedName)) {
if (
((lowerCasedName = possibleStandardNames[lowerCasedName]),
lowerCasedName !== name)
)
return (
console.error(
"Invalid DOM property `%s`. Did you mean `%s`?",
name,
lowerCasedName
),
(warnedProperties[name] = !0)
);
} else if (name !== lowerCasedName)
return (
console.error(
"React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",
name,
lowerCasedName
),
(warnedProperties[name] = !0)
);
switch (name) {
case "dangerouslySetInnerHTML":
case "children":
case "style":
case "suppressContentEditableWarning":
case "suppressHydrationWarning":
case "defaultValue":
case "defaultChecked":
case "innerHTML":
case "ref":
return !0;
case "innerText":
case "textContent":
return !0;
}
switch (typeof value) {
case "boolean":
switch (name) {
case "autoFocus":
case "checked":
case "multiple":
case "muted":
case "selected":
case "contentEditable":
case "spellCheck":
case "draggable":
case "value":
case "autoReverse":
case "externalResourcesRequired":
case "focusable":
case "preserveAlpha":
case "allowFullScreen":
case "async":
case "autoPlay":
case "controls":
case "default":
case "defer":
case "disabled":
case "disablePictureInPicture":
case "disableRemotePlayback":
case "formNoValidate":
case "hidden":
case "loop":
case "noModule":
case "noValidate":
case "open":
case "playsInline":
case "readOnly":
case "required":
case "reversed":
case "scoped":
case "seamless":
case "itemScope":
case "capture":
case "download":
case "inert":
return !0;
default:
lowerCasedName = name.toLowerCase().slice(0, 5);
if ("data-" === lowerCasedName || "aria-" === lowerCasedName)
return !0;
value
? console.error(
'Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',
value,
name,
name,
value,
name
)
: console.error(
'Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',
value,
name,
name,
value,
name,
name,
name
);
return (warnedProperties[name] = !0);
}
case "function":
case "symbol":
return (warnedProperties[name] = !0), !1;
case "string":
if ("false" === value || "true" === value) {
switch (name) {
case "checked":
case "selected":
case "multiple":
case "muted":
case "allowFullScreen":
case "async":
case "autoPlay":
case "controls":
case "default":
case "defer":
case "disabled":
case "disablePictureInPicture":
case "disableRemotePlayback":
case "formNoValidate":
case "hidden":
case "loop":
case "noModule":
case "noValidate":
case "open":
case "playsInline":
case "readOnly":
case "required":
case "reversed":
case "scoped":
case "seamless":
case "itemScope":
case "inert":
break;
default:
return !0;
}
console.error(
"Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",
value,
name,
"false" === value
? "The browser will interpret it as a truthy value."
: 'Although this works, it will not work as expected if you pass the string "false".',
name,
value
);
warnedProperties[name] = !0;
}
}
return !0;
}
function warnUnknownProperties(type, props, eventRegistry) {
var unknownProps = [],
key;
for (key in props)
validateProperty(type, key, props[key], eventRegistry) ||
unknownProps.push(key);
props = unknownProps
.map(function (prop) {
return "`" + prop + "`";
})
.join(", ");
1 === unknownProps.length
? console.error(
"Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",
props,
type
)
: 1 < unknownProps.length &&
console.error(
"Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",
props,
type
);
}
function camelize(string) {
return string.replace(hyphenPattern, function (_, character) {
return character.toUpperCase();
});
}
function escapeTextForBrowser(text) {
if (
"boolean" === typeof text ||
"number" === typeof text ||
"bigint" === typeof text
)
return "" + text;
checkHtmlStringCoercion(text);
text = "" + text;
var match = matchHtmlRegExp.exec(text);
if (match) {
var html = "",
index,
lastIndex = 0;
for (index = match.index; index < text.length; index++) {
switch (text.charCodeAt(index)) {
case 34:
match = """;
break;
case 38:
match = "&";
break;
case 39:
match = "'";
break;
case 60:
match = "<";
break;
case 62:
match = ">";
break;
default:
continue;
}
lastIndex !== index && (html += text.slice(lastIndex, index));
lastIndex = index + 1;
html += match;
}
text = lastIndex !== index ? html + text.slice(lastIndex, index) : html;
}
return text;
}
function sanitizeURL(url) {
return isJavaScriptProtocol.test("" + url)
? "javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')"
: url;
}
function escapeEntireInlineScriptContent(scriptText) {
checkHtmlStringCoercion(scriptText);
return ("" + scriptText).replace(scriptRegex, scriptReplacer);
}
function createResumableState(
identifierPrefix,
externalRuntimeConfig,
bootstrapScriptContent,
bootstrapScripts,
bootstrapModules
) {
return {
idPrefix: void 0 === identifierPrefix ? "" : identifierPrefix,
nextFormID: 0,
streamingFormat: 0,
bootstrapScriptContent: bootstrapScriptContent,
bootstrapScripts: bootstrapScripts,
bootstrapModules: bootstrapModules,
instructions: NothingSent,
hasBody: !1,
hasHtml: !1,
unknownResources: {},
dnsResources: {},
connectResources: { default: {}, anonymous: {}, credentials: {} },
imageResources: {},
styleResources: {},
scriptResources: {},
moduleUnknownResources: {},
moduleScriptResources: {}
};
}
function createFormatContext(insertionMode, selectedValue, tagScope) {
return {
insertionMode: insertionMode,
selectedValue: selectedValue,
tagScope: tagScope
};
}
function getChildFormatContext(parentContext, type, props) {
switch (type) {
case "noscript":
return createFormatContext(
HTML_MODE,
null,
parentContext.tagScope | 1
);
case "select":
return createFormatContext(
HTML_MODE,
null != props.value ? props.value : props.defaultValue,
parentContext.tagScope
);
case "svg":
return createFormatContext(SVG_MODE, null, parentContext.tagScope);
case "picture":
return createFormatContext(
HTML_MODE,
null,
parentContext.tagScope | 2
);
case "math":
return createFormatContext(MATHML_MODE, null, parentContext.tagScope);
case "foreignObject":
return createFormatContext(HTML_MODE, null, parentContext.tagScope);
case "table":
return createFormatContext(
HTML_TABLE_MODE,
null,
parentContext.tagScope
);
case "thead":
case "tbody":
case "tfoot":
return createFormatContext(
HTML_TABLE_BODY_MODE,
null,
parentContext.tagScope
);
case "colgroup":
return createFormatContext(
HTML_COLGROUP_MODE,
null,
parentContext.tagScope
);
case "tr":
return createFormatContext(
HTML_TABLE_ROW_MODE,
null,
parentContext.tagScope
);
}
return parentContext.insertionMode >= HTML_TABLE_MODE
? createFormatContext(HTML_MODE, null, parentContext.tagScope)
: parentContext.insertionMode === ROOT_HTML_MODE
? "html" === type
? createFormatContext(HTML_HTML_MODE, null, parentContext.tagScope)
: createFormatContext(HTML_MODE, null, parentContext.tagScope)
: parentContext.insertionMode === HTML_HTML_MODE
? createFormatContext(HTML_MODE, null, parentContext.tagScope)
: parentContext;
}
function pushStyleAttribute(target, style) {
if ("object" !== typeof style)
throw Error(
"The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX."
);
var isFirst = !0,
styleName;
for (styleName in style)
if (hasOwnProperty.call(style, styleName)) {
var styleValue = style[styleName];
if (
null != styleValue &&
"boolean" !== typeof styleValue &&
"" !== styleValue
) {
if (0 === styleName.indexOf("--")) {
var nameChunk = escapeTextForBrowser(styleName);
checkCSSPropertyStringCoercion(styleValue, styleName);
styleValue = escapeTextForBrowser(("" + styleValue).trim());
} else {
nameChunk = styleName;
var value = styleValue;
if (-1 < nameChunk.indexOf("-")) {
var name = nameChunk;
(warnedStyleNames.hasOwnProperty(name) &&
warnedStyleNames[name]) ||
((warnedStyleNames[name] = !0),
console.error(
"Unsupported style property %s. Did you mean %s?",
name,
camelize(name.replace(msPattern$1, "ms-"))
));
} else if (badVendoredStyleNamePattern.test(nameChunk))
(name = nameChunk),
(warnedStyleNames.hasOwnProperty(name) &&
warnedStyleNames[name]) ||
((warnedStyleNames[name] = !0),
console.error(
"Unsupported vendor-prefixed style property %s. Did you mean %s?",
name,
name.charAt(0).toUpperCase() + name.slice(1)
));
else if (badStyleValueWithSemicolonPattern.test(value)) {
name = nameChunk;
var value$jscomp$0 = value;
(warnedStyleValues.hasOwnProperty(value$jscomp$0) &&
warnedStyleValues[value$jscomp$0]) ||
((warnedStyleValues[value$jscomp$0] = !0),
console.error(
'Style property values shouldn\'t contain a semicolon. Try "%s: %s" instead.',
name,
value$jscomp$0.replace(
badStyleValueWithSemicolonPattern,
""
)
));
}
"number" === typeof value &&
(isNaN(value)
? warnedForNaNValue ||
((warnedForNaNValue = !0),
console.error(
"`NaN` is an invalid value for the `%s` css style property.",
nameChunk
))
: isFinite(value) ||
warnedForInfinityValue ||
((warnedForInfinityValue = !0),
console.error(
"`Infinity` is an invalid value for the `%s` css style property.",
nameChunk
)));
nameChunk = styleName;
value = styleNameCache.get(nameChunk);
void 0 !== value
? (nameChunk = value)
: ((value = escapeTextForBrowser(
nameChunk
.replace(uppercasePattern, "-$1")
.toLowerCase()
.replace(msPattern, "-ms-")
)),
styleNameCache.set(nameChunk, value),
(nameChunk = value));
"number" === typeof styleValue
? (styleValue =
0 === styleValue || unitlessNumbers.has(styleName)
? "" + styleValue
: styleValue + "px")
: (checkCSSPropertyStringCoercion(styleValue, styleName),
(styleValue = escapeTextForBrowser(
("" + styleValue).trim()
)));
}
isFirst
? ((isFirst = !1),
target.push(
styleAttributeStart,
nameChunk,
styleAssign,
styleValue
))
: target.push(styleSeparator, nameChunk, styleAssign, styleValue);
}
}
isFirst || target.push(attributeEnd);
}
function pushBooleanAttribute(target, name, value) {
value &&
"function" !== typeof value &&
"symbol" !== typeof value &&
target.push(attributeSeparator, name, attributeEmptyString);
}
function pushStringAttribute(target, name, value) {
"function" !== typeof value &&
"symbol" !== typeof value &&
"boolean" !== typeof value &&
target.push(
attributeSeparator,
name,
attributeAssign,
escapeTextForBrowser(value),
attributeEnd
);
}
function pushAdditionalFormField(value, key) {
this.push(' must be an array if `multiple` is true.",
propName
)
: !props.multiple &&
value &&
console.error(
"The `%s` prop supplied to