: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
;// CONCATENATED MODULE: ./node_modules/stylis/src/Parser.js
function compile (value) {
return dealloc(Parser_parse('', null, null, null, [''], value = alloc(value), 0, [0], value))
* @param {object?} parent
* @param {string[]} rules
* @param {string[]} rulesets
* @param {number[]} pseudo
* @param {number[]} points
* @param {string[]} declarations
function Parser_parse (value, root, parent, rule, rules, rulesets, pseudo, points, declarations) {
switch (previous = character, character = next()) {
if (previous != 108 && Utility_charat(characters, length - 1) == 58) {
if (indexof(characters += Utility_replace(delimit(character), '&', '&\f'), '&\f') != -1)
case 34: case 39: case 91:
characters += delimit(character)
case 9: case 10: case 13: case 32:
characters += whitespace(previous)
characters += escaping(caret() - 1, 7)
Utility_append(Parser_comment(commenter(next(), caret()), root, parent), declarations)
points[index++] = Utility_strlen(characters) * ampersand
case 125 * variable: case 59: case 0:
case 0: case 125: scanning = 0
if (property > 0 && (Utility_strlen(characters) - length))
Utility_append(property > 32 ? declaration(characters + ';', rule, parent, length - 1) : declaration(Utility_replace(characters, ' ', '') + ';', rule, parent, length - 2), declarations)
case 59: characters += ';'
Utility_append(reference = ruleset(characters, root, parent, index, offset, rules, points, type, props = [], children = [], length), rulesets)
Parser_parse(characters, root, reference, reference, props, rulesets, length, points, children)
switch (atrule === 99 && Utility_charat(characters, 3) === 110 ? 100 : atrule) {
case 100: case 109: case 115:
Parser_parse(value, reference, reference, rule && Utility_append(ruleset(value, reference, reference, 0, 0, rules, points, type, rules, props = [], length), children), rules, children, length, points, rule ? props : children)
Parser_parse(characters, reference, reference, reference, [''], children, 0, points, children)
index = offset = property = 0, variable = ampersand = 1, type = characters = '', length = pseudo
length = 1 + Utility_strlen(characters), property = previous
else if (character == 125 && variable++ == 0 && prev() == 125)
switch (characters += Utility_from(character), character * variable) {
ampersand = offset > 0 ? 1 : (characters += '\f', -1)
points[index++] = (Utility_strlen(characters) - 1) * ampersand, ampersand = 1
characters += delimit(next())
atrule = peek(), offset = length = Utility_strlen(type = characters += identifier(caret())), character++
if (previous === 45 && Utility_strlen(characters) == 2)
* @param {object?} parent
* @param {string[]} rules
* @param {number[]} points
* @param {string[]} props
* @param {string[]} children
function ruleset (value, root, parent, index, offset, rules, points, type, props, children, length) {
var rule = offset === 0 ? rules : ['']
var size = Utility_sizeof(rule)
for (var i = 0, j = 0, k = 0; i < index; ++i)
for (var x = 0, y = Utility_substr(value, post + 1, post = abs(j = points[i])), z = value; x < size; ++x)
if (z = trim(j > 0 ? rule[x] + ' ' + y : Utility_replace(y, /&\f/g, rule[x])))
return node(value, root, parent, offset === 0 ? Enum_RULESET : type, props, children, length)
* @param {object?} parent
function Parser_comment (value, root, parent) {
return node(value, root, parent, COMMENT, Utility_from(Tokenizer_char()), Utility_substr(value, 2, -2), 0)
* @param {object?} parent
function declaration (value, root, parent, length) {
return node(value, root, parent, Enum_DECLARATION, Utility_substr(value, 0, length), Utility_substr(value, length + 1, -1), length)
;// CONCATENATED MODULE: ./node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js
var identifierWithPointTracking = function identifierWithPointTracking(begin, points, index) {
character = peek(); // &\f
if (previous === 38 && character === 12) {
return slice(begin, Tokenizer_position);
var toRules = function toRules(parsed, points) {
// pretend we've started with a comma
switch (token(character)) {
if (character === 38 && peek() === 12) {
// this is not 100% correct, we don't account for literal sequences here - like for example quoted strings
// stylis inserts \f after & to know when & where it should replace this sequence with the context selector
// and when it should just concatenate the outer and inner selectors
// it's very unlikely for this sequence to actually appear in a different context, so we just leverage this fact here
parsed[index] += identifierWithPointTracking(Tokenizer_position - 1, points, index);
parsed[index] += delimit(character);
parsed[++index] = peek() === 58 ? '&\f' : '';
points[index] = parsed[index].length;
parsed[index] += Utility_from(character);
} while (character = next());
var getRules = function getRules(value, points) {
return dealloc(toRules(alloc(value), points));
}; // WeakSet would be more appropriate, but only WeakMap is supported in IE11
var fixedElements = /* #__PURE__ */new WeakMap();
var compat = function compat(element) {
if (element.type !== 'rule' || !element.parent || // positive .length indicates that this rule contains pseudo
// negative .length indicates that this rule has been already prefixed
var value = element.value,
var isImplicitRule = element.column === parent.column && element.line === parent.line;
while (parent.type !== 'rule') {
} // short-circuit for the simplest case
if (element.props.length === 1 && value.charCodeAt(0) !== 58
&& !fixedElements.get(parent)) {
} // if this is an implicitly inserted rule (the one eagerly inserted at the each new nested level)
// then the props has already been manipulated beforehand as they that array is shared between it and its "rule parent"
fixedElements.set(element, true);
var rules = getRules(value, points);
var parentRules = parent.props;
for (var i = 0, k = 0; i < rules.length; i++) {
for (var j = 0; j < parentRules.length; j++, k++) {
element.props[k] = points[i] ? rules[i].replace(/&\f/g, parentRules[j]) : parentRules[j] + " " + rules[i];
var removeLabel = function removeLabel(element) {
if (element.type === 'decl') {
var value = element.value;
value.charCodeAt(0) === 108 && // charcode for b
value.charCodeAt(2) === 98) {
var ignoreFlag = 'emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason';
var isIgnoringComment = function isIgnoringComment(element) {
return element.type === 'comm' && element.children.indexOf(ignoreFlag) > -1;
var createUnsafeSelectorsAlarm = function createUnsafeSelectorsAlarm(cache) {
return function (element, index, children) {
if (element.type !== 'rule' || cache.compat) return;
var unsafePseudoClasses = element.value.match(/(:first|:nth|:nth-last)-child/g);
if (unsafePseudoClasses) {
var isNested = element.parent === children[0]; // in nested rules comments become children of the "auto-inserted" rule
// considering this input:
// we get output corresponding to this:
var commentContainer = isNested ? children[0].children : // global rule at the root level
for (var i = commentContainer.length - 1; i >= 0; i--) {
var node = commentContainer[i];
if (node.line < element.line) {
} // it is quite weird but comments are *usually* put at `column: element.column - 1`
// so we seek *from the end* for the node that is earlier than the rule's `element` and check that
// this will also match inputs like this:
// it would be the easiest to change the placement of the comment to be the first child of the rule:
// with such inputs we wouldn't have to search for the comment at all
// TODO: consider changing this comment placement in the next major version
if (node.column < element.column) {
if (isIgnoringComment(node)) {
unsafePseudoClasses.forEach(function (unsafePseudoClass) {
console.error("The pseudo class \"" + unsafePseudoClass + "\" is potentially unsafe when doing server-side rendering. Try changing it to \"" + unsafePseudoClass.split('-child')[0] + "-of-type\".");
var isImportRule = function isImportRule(element) {
return element.type.charCodeAt(1) === 105 && element.type.charCodeAt(0) === 64;
var isPrependedWithRegularRules = function isPrependedWithRegularRules(index, children) {
for (var i = index - 1; i >= 0; i--) {
if (!isImportRule(children[i])) {
}; // use this to remove incorrect elements from further processing
// so they don't get handed to the `sheet` (or anything else)
// as that could potentially lead to additional logs which in turn could be overhelming to the user
var nullifyElement = function nullifyElement(element) {
var incorrectImportAlarm = function incorrectImportAlarm(element, index, children) {
if (!isImportRule(element)) {
console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles.");
} else if (isPrependedWithRegularRules(index, children)) {
console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules.");
/* eslint-disable no-fallthrough */
function emotion_cache_browser_esm_prefix(value, length) {
switch (hash(value, length)) {
return Enum_WEBKIT + 'print-' + value + value;
// animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
case 2921: // text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break
case 3005: // mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite,
case 4855: // background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width)
return Enum_WEBKIT + value + value;
// appearance, user-select, transform, hyphens, text-size-adjust
return Enum_WEBKIT + value + Enum_MOZ + value + Enum_MS + value + value;
return Enum_WEBKIT + value + Enum_MS + value + value;
return Enum_WEBKIT + value + Enum_MS + 'flex-' + value + value;
return Enum_WEBKIT + value + Utility_replace(value, /(\w+).+(:[^]+)/, Enum_WEBKIT + 'box-$1$2' + Enum_MS + 'flex-$1$2') + value;
return Enum_WEBKIT + value + Enum_MS + 'flex-item-' + Utility_replace(value, /flex-|-self/, '') + value;