RAHHH
This commit is contained in:
1
backend/frontend/node_modules/@emotion/babel-plugin/dist/emotion-babel-plugin.cjs.default.js
generated
vendored
Normal file
1
backend/frontend/node_modules/@emotion/babel-plugin/dist/emotion-babel-plugin.cjs.default.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
exports._default = require("./emotion-babel-plugin.cjs.js").default;
|
||||
1536
backend/frontend/node_modules/@emotion/babel-plugin/dist/emotion-babel-plugin.cjs.js
generated
vendored
Normal file
1536
backend/frontend/node_modules/@emotion/babel-plugin/dist/emotion-babel-plugin.cjs.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
4
backend/frontend/node_modules/@emotion/babel-plugin/dist/emotion-babel-plugin.cjs.mjs
generated
vendored
Normal file
4
backend/frontend/node_modules/@emotion/babel-plugin/dist/emotion-babel-plugin.cjs.mjs
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
export {
|
||||
macros
|
||||
} from "./emotion-babel-plugin.cjs.js";
|
||||
export { _default as default } from "./emotion-babel-plugin.cjs.default.js";
|
||||
1522
backend/frontend/node_modules/@emotion/babel-plugin/dist/emotion-babel-plugin.esm.js
generated
vendored
Normal file
1522
backend/frontend/node_modules/@emotion/babel-plugin/dist/emotion-babel-plugin.esm.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
2
backend/frontend/node_modules/@emotion/cache/dist/declarations/src/index.d.ts
generated
vendored
Normal file
2
backend/frontend/node_modules/@emotion/cache/dist/declarations/src/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
export * from "../types/index.js"
|
||||
export { default } from "../types/index.js"
|
||||
45
backend/frontend/node_modules/@emotion/cache/dist/declarations/types/index.d.ts
generated
vendored
Normal file
45
backend/frontend/node_modules/@emotion/cache/dist/declarations/types/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,45 @@
|
||||
// Definitions by: Junyoung Clare Jang <https://github.com/Ailrun>
|
||||
// TypeScript Version: 2.2
|
||||
|
||||
import { EmotionCache } from '@emotion/utils'
|
||||
|
||||
export { EmotionCache }
|
||||
|
||||
export interface StylisElement {
|
||||
type: string
|
||||
value: string
|
||||
props: Array<string> | string
|
||||
root: StylisElement | null
|
||||
parent: StylisElement | null
|
||||
children: Array<StylisElement> | string
|
||||
line: number
|
||||
column: number
|
||||
length: number
|
||||
return: string
|
||||
}
|
||||
export type StylisPluginCallback = (
|
||||
element: StylisElement,
|
||||
index: number,
|
||||
children: Array<StylisElement>,
|
||||
callback: StylisPluginCallback
|
||||
) => string | void
|
||||
|
||||
export type StylisPlugin = (
|
||||
element: StylisElement,
|
||||
index: number,
|
||||
children: Array<StylisElement>,
|
||||
callback: StylisPluginCallback
|
||||
) => string | void
|
||||
|
||||
export interface Options {
|
||||
nonce?: string
|
||||
stylisPlugins?: Array<StylisPlugin>
|
||||
key: string
|
||||
container?: Node
|
||||
speedy?: boolean
|
||||
/** @deprecate use `insertionPoint` instead */
|
||||
prepend?: boolean
|
||||
insertionPoint?: HTMLElement
|
||||
}
|
||||
|
||||
export default function createCache(options: Options): EmotionCache
|
||||
1
backend/frontend/node_modules/@emotion/cache/dist/emotion-cache.browser.cjs.default.js
generated
vendored
Normal file
1
backend/frontend/node_modules/@emotion/cache/dist/emotion-cache.browser.cjs.default.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
exports._default = require("./emotion-cache.browser.cjs.js").default;
|
||||
471
backend/frontend/node_modules/@emotion/cache/dist/emotion-cache.browser.cjs.js
generated
vendored
Normal file
471
backend/frontend/node_modules/@emotion/cache/dist/emotion-cache.browser.cjs.js
generated
vendored
Normal file
@@ -0,0 +1,471 @@
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
|
||||
var sheet = require('@emotion/sheet');
|
||||
var stylis = require('stylis');
|
||||
require('@emotion/weak-memoize');
|
||||
require('@emotion/memoize');
|
||||
|
||||
var identifierWithPointTracking = function identifierWithPointTracking(begin, points, index) {
|
||||
var previous = 0;
|
||||
var character = 0;
|
||||
|
||||
while (true) {
|
||||
previous = character;
|
||||
character = stylis.peek(); // &\f
|
||||
|
||||
if (previous === 38 && character === 12) {
|
||||
points[index] = 1;
|
||||
}
|
||||
|
||||
if (stylis.token(character)) {
|
||||
break;
|
||||
}
|
||||
|
||||
stylis.next();
|
||||
}
|
||||
|
||||
return stylis.slice(begin, stylis.position);
|
||||
};
|
||||
|
||||
var toRules = function toRules(parsed, points) {
|
||||
// pretend we've started with a comma
|
||||
var index = -1;
|
||||
var character = 44;
|
||||
|
||||
do {
|
||||
switch (stylis.token(character)) {
|
||||
case 0:
|
||||
// &\f
|
||||
if (character === 38 && stylis.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
|
||||
points[index] = 1;
|
||||
}
|
||||
|
||||
parsed[index] += identifierWithPointTracking(stylis.position - 1, points, index);
|
||||
break;
|
||||
|
||||
case 2:
|
||||
parsed[index] += stylis.delimit(character);
|
||||
break;
|
||||
|
||||
case 4:
|
||||
// comma
|
||||
if (character === 44) {
|
||||
// colon
|
||||
parsed[++index] = stylis.peek() === 58 ? '&\f' : '';
|
||||
points[index] = parsed[index].length;
|
||||
break;
|
||||
}
|
||||
|
||||
// fallthrough
|
||||
|
||||
default:
|
||||
parsed[index] += stylis.from(character);
|
||||
}
|
||||
} while (character = stylis.next());
|
||||
|
||||
return parsed;
|
||||
};
|
||||
|
||||
var getRules = function getRules(value, points) {
|
||||
return stylis.dealloc(toRules(stylis.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
|
||||
element.length < 1) {
|
||||
return;
|
||||
}
|
||||
|
||||
var value = element.value,
|
||||
parent = element.parent;
|
||||
var isImplicitRule = element.column === parent.column && element.line === parent.line;
|
||||
|
||||
while (parent.type !== 'rule') {
|
||||
parent = parent.parent;
|
||||
if (!parent) return;
|
||||
} // short-circuit for the simplest case
|
||||
|
||||
|
||||
if (element.props.length === 1 && value.charCodeAt(0) !== 58
|
||||
/* colon */
|
||||
&& !fixedElements.get(parent)) {
|
||||
return;
|
||||
} // 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"
|
||||
|
||||
|
||||
if (isImplicitRule) {
|
||||
return;
|
||||
}
|
||||
|
||||
fixedElements.set(element, true);
|
||||
var points = [];
|
||||
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;
|
||||
|
||||
if ( // charcode for l
|
||||
value.charCodeAt(0) === 108 && // charcode for b
|
||||
value.charCodeAt(2) === 98) {
|
||||
// this ignores label
|
||||
element["return"] = '';
|
||||
element.value = '';
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
/* eslint-disable no-fallthrough */
|
||||
|
||||
function prefix(value, length) {
|
||||
switch (stylis.hash(value, length)) {
|
||||
// color-adjust
|
||||
case 5103:
|
||||
return stylis.WEBKIT + 'print-' + value + value;
|
||||
// animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
|
||||
|
||||
case 5737:
|
||||
case 4201:
|
||||
case 3177:
|
||||
case 3433:
|
||||
case 1641:
|
||||
case 4457:
|
||||
case 2921: // text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break
|
||||
|
||||
case 5572:
|
||||
case 6356:
|
||||
case 5844:
|
||||
case 3191:
|
||||
case 6645:
|
||||
case 3005: // mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite,
|
||||
|
||||
case 6391:
|
||||
case 5879:
|
||||
case 5623:
|
||||
case 6135:
|
||||
case 4599:
|
||||
case 4855: // background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width)
|
||||
|
||||
case 4215:
|
||||
case 6389:
|
||||
case 5109:
|
||||
case 5365:
|
||||
case 5621:
|
||||
case 3829:
|
||||
return stylis.WEBKIT + value + value;
|
||||
// appearance, user-select, transform, hyphens, text-size-adjust
|
||||
|
||||
case 5349:
|
||||
case 4246:
|
||||
case 4810:
|
||||
case 6968:
|
||||
case 2756:
|
||||
return stylis.WEBKIT + value + stylis.MOZ + value + stylis.MS + value + value;
|
||||
// flex, flex-direction
|
||||
|
||||
case 6828:
|
||||
case 4268:
|
||||
return stylis.WEBKIT + value + stylis.MS + value + value;
|
||||
// order
|
||||
|
||||
case 6165:
|
||||
return stylis.WEBKIT + value + stylis.MS + 'flex-' + value + value;
|
||||
// align-items
|
||||
|
||||
case 5187:
|
||||
return stylis.WEBKIT + value + stylis.replace(value, /(\w+).+(:[^]+)/, stylis.WEBKIT + 'box-$1$2' + stylis.MS + 'flex-$1$2') + value;
|
||||
// align-self
|
||||
|
||||
case 5443:
|
||||
return stylis.WEBKIT + value + stylis.MS + 'flex-item-' + stylis.replace(value, /flex-|-self/, '') + value;
|
||||
// align-content
|
||||
|
||||
case 4675:
|
||||
return stylis.WEBKIT + value + stylis.MS + 'flex-line-pack' + stylis.replace(value, /align-content|flex-|-self/, '') + value;
|
||||
// flex-shrink
|
||||
|
||||
case 5548:
|
||||
return stylis.WEBKIT + value + stylis.MS + stylis.replace(value, 'shrink', 'negative') + value;
|
||||
// flex-basis
|
||||
|
||||
case 5292:
|
||||
return stylis.WEBKIT + value + stylis.MS + stylis.replace(value, 'basis', 'preferred-size') + value;
|
||||
// flex-grow
|
||||
|
||||
case 6060:
|
||||
return stylis.WEBKIT + 'box-' + stylis.replace(value, '-grow', '') + stylis.WEBKIT + value + stylis.MS + stylis.replace(value, 'grow', 'positive') + value;
|
||||
// transition
|
||||
|
||||
case 4554:
|
||||
return stylis.WEBKIT + stylis.replace(value, /([^-])(transform)/g, '$1' + stylis.WEBKIT + '$2') + value;
|
||||
// cursor
|
||||
|
||||
case 6187:
|
||||
return stylis.replace(stylis.replace(stylis.replace(value, /(zoom-|grab)/, stylis.WEBKIT + '$1'), /(image-set)/, stylis.WEBKIT + '$1'), value, '') + value;
|
||||
// background, background-image
|
||||
|
||||
case 5495:
|
||||
case 3959:
|
||||
return stylis.replace(value, /(image-set\([^]*)/, stylis.WEBKIT + '$1' + '$`$1');
|
||||
// justify-content
|
||||
|
||||
case 4968:
|
||||
return stylis.replace(stylis.replace(value, /(.+:)(flex-)?(.*)/, stylis.WEBKIT + 'box-pack:$3' + stylis.MS + 'flex-pack:$3'), /s.+-b[^;]+/, 'justify') + stylis.WEBKIT + value + value;
|
||||
// (margin|padding)-inline-(start|end)
|
||||
|
||||
case 4095:
|
||||
case 3583:
|
||||
case 4068:
|
||||
case 2532:
|
||||
return stylis.replace(value, /(.+)-inline(.+)/, stylis.WEBKIT + '$1$2') + value;
|
||||
// (min|max)?(width|height|inline-size|block-size)
|
||||
|
||||
case 8116:
|
||||
case 7059:
|
||||
case 5753:
|
||||
case 5535:
|
||||
case 5445:
|
||||
case 5701:
|
||||
case 4933:
|
||||
case 4677:
|
||||
case 5533:
|
||||
case 5789:
|
||||
case 5021:
|
||||
case 4765:
|
||||
// stretch, max-content, min-content, fill-available
|
||||
if (stylis.strlen(value) - 1 - length > 6) switch (stylis.charat(value, length + 1)) {
|
||||
// (m)ax-content, (m)in-content
|
||||
case 109:
|
||||
// -
|
||||
if (stylis.charat(value, length + 4) !== 45) break;
|
||||
// (f)ill-available, (f)it-content
|
||||
|
||||
case 102:
|
||||
return stylis.replace(value, /(.+:)(.+)-([^]+)/, '$1' + stylis.WEBKIT + '$2-$3' + '$1' + stylis.MOZ + (stylis.charat(value, length + 3) == 108 ? '$3' : '$2-$3')) + value;
|
||||
// (s)tretch
|
||||
|
||||
case 115:
|
||||
return ~stylis.indexof(value, 'stretch') ? prefix(stylis.replace(value, 'stretch', 'fill-available'), length) + value : value;
|
||||
}
|
||||
break;
|
||||
// position: sticky
|
||||
|
||||
case 4949:
|
||||
// (s)ticky?
|
||||
if (stylis.charat(value, length + 1) !== 115) break;
|
||||
// display: (flex|inline-flex)
|
||||
|
||||
case 6444:
|
||||
switch (stylis.charat(value, stylis.strlen(value) - 3 - (~stylis.indexof(value, '!important') && 10))) {
|
||||
// stic(k)y
|
||||
case 107:
|
||||
return stylis.replace(value, ':', ':' + stylis.WEBKIT) + value;
|
||||
// (inline-)?fl(e)x
|
||||
|
||||
case 101:
|
||||
return stylis.replace(value, /(.+:)([^;!]+)(;|!.+)?/, '$1' + stylis.WEBKIT + (stylis.charat(value, 14) === 45 ? 'inline-' : '') + 'box$3' + '$1' + stylis.WEBKIT + '$2$3' + '$1' + stylis.MS + '$2box$3') + value;
|
||||
}
|
||||
|
||||
break;
|
||||
// writing-mode
|
||||
|
||||
case 5936:
|
||||
switch (stylis.charat(value, length + 11)) {
|
||||
// vertical-l(r)
|
||||
case 114:
|
||||
return stylis.WEBKIT + value + stylis.MS + stylis.replace(value, /[svh]\w+-[tblr]{2}/, 'tb') + value;
|
||||
// vertical-r(l)
|
||||
|
||||
case 108:
|
||||
return stylis.WEBKIT + value + stylis.MS + stylis.replace(value, /[svh]\w+-[tblr]{2}/, 'tb-rl') + value;
|
||||
// horizontal(-)tb
|
||||
|
||||
case 45:
|
||||
return stylis.WEBKIT + value + stylis.MS + stylis.replace(value, /[svh]\w+-[tblr]{2}/, 'lr') + value;
|
||||
}
|
||||
|
||||
return stylis.WEBKIT + value + stylis.MS + value + value;
|
||||
}
|
||||
|
||||
return value;
|
||||
}
|
||||
|
||||
var prefixer = function prefixer(element, index, children, callback) {
|
||||
if (element.length > -1) if (!element["return"]) switch (element.type) {
|
||||
case stylis.DECLARATION:
|
||||
element["return"] = prefix(element.value, element.length);
|
||||
break;
|
||||
|
||||
case stylis.KEYFRAMES:
|
||||
return stylis.serialize([stylis.copy(element, {
|
||||
value: stylis.replace(element.value, '@', '@' + stylis.WEBKIT)
|
||||
})], callback);
|
||||
|
||||
case stylis.RULESET:
|
||||
if (element.length) return stylis.combine(element.props, function (value) {
|
||||
switch (stylis.match(value, /(::plac\w+|:read-\w+)/)) {
|
||||
// :read-(only|write)
|
||||
case ':read-only':
|
||||
case ':read-write':
|
||||
return stylis.serialize([stylis.copy(element, {
|
||||
props: [stylis.replace(value, /:(read-\w+)/, ':' + stylis.MOZ + '$1')]
|
||||
})], callback);
|
||||
// :placeholder
|
||||
|
||||
case '::placeholder':
|
||||
return stylis.serialize([stylis.copy(element, {
|
||||
props: [stylis.replace(value, /:(plac\w+)/, ':' + stylis.WEBKIT + 'input-$1')]
|
||||
}), stylis.copy(element, {
|
||||
props: [stylis.replace(value, /:(plac\w+)/, ':' + stylis.MOZ + '$1')]
|
||||
}), stylis.copy(element, {
|
||||
props: [stylis.replace(value, /:(plac\w+)/, stylis.MS + 'input-$1')]
|
||||
})], callback);
|
||||
}
|
||||
|
||||
return '';
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
var defaultStylisPlugins = [prefixer];
|
||||
|
||||
var createCache = function
|
||||
/*: EmotionCache */
|
||||
createCache(options
|
||||
/*: Options */
|
||||
) {
|
||||
var key = options.key;
|
||||
|
||||
if (key === 'css') {
|
||||
var ssrStyles = document.querySelectorAll("style[data-emotion]:not([data-s])"); // get SSRed styles out of the way of React's hydration
|
||||
// document.head is a safe place to move them to(though note document.head is not necessarily the last place they will be)
|
||||
// note this very very intentionally targets all style elements regardless of the key to ensure
|
||||
// that creating a cache works inside of render of a React component
|
||||
|
||||
Array.prototype.forEach.call(ssrStyles, function (node
|
||||
/*: HTMLStyleElement */
|
||||
) {
|
||||
// we want to only move elements which have a space in the data-emotion attribute value
|
||||
// because that indicates that it is an Emotion 11 server-side rendered style elements
|
||||
// while we will already ignore Emotion 11 client-side inserted styles because of the :not([data-s]) part in the selector
|
||||
// Emotion 10 client-side inserted styles did not have data-s (but importantly did not have a space in their data-emotion attributes)
|
||||
// so checking for the space ensures that loading Emotion 11 after Emotion 10 has inserted some styles
|
||||
// will not result in the Emotion 10 styles being destroyed
|
||||
var dataEmotionAttribute = node.getAttribute('data-emotion');
|
||||
|
||||
if (dataEmotionAttribute.indexOf(' ') === -1) {
|
||||
return;
|
||||
}
|
||||
|
||||
document.head.appendChild(node);
|
||||
node.setAttribute('data-s', '');
|
||||
});
|
||||
}
|
||||
|
||||
var stylisPlugins = options.stylisPlugins || defaultStylisPlugins;
|
||||
|
||||
var inserted = {};
|
||||
var container;
|
||||
/* : Node */
|
||||
|
||||
var nodesToHydrate = [];
|
||||
|
||||
{
|
||||
container = options.container || document.head;
|
||||
Array.prototype.forEach.call( // this means we will ignore elements which don't have a space in them which
|
||||
// means that the style elements we're looking at are only Emotion 11 server-rendered style elements
|
||||
document.querySelectorAll("style[data-emotion^=\"" + key + " \"]"), function (node
|
||||
/*: HTMLStyleElement */
|
||||
) {
|
||||
var attrib = node.getAttribute("data-emotion").split(' ');
|
||||
|
||||
for (var i = 1; i < attrib.length; i++) {
|
||||
inserted[attrib[i]] = true;
|
||||
}
|
||||
|
||||
nodesToHydrate.push(node);
|
||||
});
|
||||
}
|
||||
|
||||
var _insert;
|
||||
/*: (
|
||||
selector: string,
|
||||
serialized: SerializedStyles,
|
||||
sheet: StyleSheet,
|
||||
shouldCache: boolean
|
||||
) => string | void */
|
||||
|
||||
|
||||
var omnipresentPlugins = [compat, removeLabel];
|
||||
|
||||
{
|
||||
var currentSheet;
|
||||
var finalizingPlugins = [stylis.stringify, stylis.rulesheet(function (rule) {
|
||||
currentSheet.insert(rule);
|
||||
})];
|
||||
var serializer = stylis.middleware(omnipresentPlugins.concat(stylisPlugins, finalizingPlugins));
|
||||
|
||||
var stylis$1 = function stylis$1(styles) {
|
||||
return stylis.serialize(stylis.compile(styles), serializer);
|
||||
};
|
||||
|
||||
_insert = function
|
||||
/*: void */
|
||||
insert(selector
|
||||
/*: string */
|
||||
, serialized
|
||||
/*: SerializedStyles */
|
||||
, sheet
|
||||
/*: StyleSheet */
|
||||
, shouldCache
|
||||
/*: boolean */
|
||||
) {
|
||||
currentSheet = sheet;
|
||||
|
||||
stylis$1(selector ? selector + "{" + serialized.styles + "}" : serialized.styles);
|
||||
|
||||
if (shouldCache) {
|
||||
cache.inserted[serialized.name] = true;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
var cache
|
||||
/*: EmotionCache */
|
||||
= {
|
||||
key: key,
|
||||
sheet: new sheet.StyleSheet({
|
||||
key: key,
|
||||
container: container,
|
||||
nonce: options.nonce,
|
||||
speedy: options.speedy,
|
||||
prepend: options.prepend,
|
||||
insertionPoint: options.insertionPoint
|
||||
}),
|
||||
nonce: options.nonce,
|
||||
inserted: inserted,
|
||||
registered: {},
|
||||
insert: _insert
|
||||
};
|
||||
cache.sheet.hydrate(nodesToHydrate);
|
||||
return cache;
|
||||
};
|
||||
|
||||
exports["default"] = createCache;
|
||||
2
backend/frontend/node_modules/@emotion/cache/dist/emotion-cache.browser.cjs.mjs
generated
vendored
Normal file
2
backend/frontend/node_modules/@emotion/cache/dist/emotion-cache.browser.cjs.mjs
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import "./emotion-cache.browser.cjs.js";
|
||||
export { _default as default } from "./emotion-cache.browser.cjs.default.js";
|
||||
1
backend/frontend/node_modules/@emotion/cache/dist/emotion-cache.browser.development.cjs.default.js
generated
vendored
Normal file
1
backend/frontend/node_modules/@emotion/cache/dist/emotion-cache.browser.development.cjs.default.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
exports._default = require("./emotion-cache.browser.development.cjs.js").default;
|
||||
633
backend/frontend/node_modules/@emotion/cache/dist/emotion-cache.browser.development.cjs.js
generated
vendored
Normal file
633
backend/frontend/node_modules/@emotion/cache/dist/emotion-cache.browser.development.cjs.js
generated
vendored
Normal file
@@ -0,0 +1,633 @@
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
|
||||
var sheet = require('@emotion/sheet');
|
||||
var stylis = require('stylis');
|
||||
require('@emotion/weak-memoize');
|
||||
require('@emotion/memoize');
|
||||
|
||||
var identifierWithPointTracking = function identifierWithPointTracking(begin, points, index) {
|
||||
var previous = 0;
|
||||
var character = 0;
|
||||
|
||||
while (true) {
|
||||
previous = character;
|
||||
character = stylis.peek(); // &\f
|
||||
|
||||
if (previous === 38 && character === 12) {
|
||||
points[index] = 1;
|
||||
}
|
||||
|
||||
if (stylis.token(character)) {
|
||||
break;
|
||||
}
|
||||
|
||||
stylis.next();
|
||||
}
|
||||
|
||||
return stylis.slice(begin, stylis.position);
|
||||
};
|
||||
|
||||
var toRules = function toRules(parsed, points) {
|
||||
// pretend we've started with a comma
|
||||
var index = -1;
|
||||
var character = 44;
|
||||
|
||||
do {
|
||||
switch (stylis.token(character)) {
|
||||
case 0:
|
||||
// &\f
|
||||
if (character === 38 && stylis.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
|
||||
points[index] = 1;
|
||||
}
|
||||
|
||||
parsed[index] += identifierWithPointTracking(stylis.position - 1, points, index);
|
||||
break;
|
||||
|
||||
case 2:
|
||||
parsed[index] += stylis.delimit(character);
|
||||
break;
|
||||
|
||||
case 4:
|
||||
// comma
|
||||
if (character === 44) {
|
||||
// colon
|
||||
parsed[++index] = stylis.peek() === 58 ? '&\f' : '';
|
||||
points[index] = parsed[index].length;
|
||||
break;
|
||||
}
|
||||
|
||||
// fallthrough
|
||||
|
||||
default:
|
||||
parsed[index] += stylis.from(character);
|
||||
}
|
||||
} while (character = stylis.next());
|
||||
|
||||
return parsed;
|
||||
};
|
||||
|
||||
var getRules = function getRules(value, points) {
|
||||
return stylis.dealloc(toRules(stylis.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
|
||||
element.length < 1) {
|
||||
return;
|
||||
}
|
||||
|
||||
var value = element.value,
|
||||
parent = element.parent;
|
||||
var isImplicitRule = element.column === parent.column && element.line === parent.line;
|
||||
|
||||
while (parent.type !== 'rule') {
|
||||
parent = parent.parent;
|
||||
if (!parent) return;
|
||||
} // short-circuit for the simplest case
|
||||
|
||||
|
||||
if (element.props.length === 1 && value.charCodeAt(0) !== 58
|
||||
/* colon */
|
||||
&& !fixedElements.get(parent)) {
|
||||
return;
|
||||
} // 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"
|
||||
|
||||
|
||||
if (isImplicitRule) {
|
||||
return;
|
||||
}
|
||||
|
||||
fixedElements.set(element, true);
|
||||
var points = [];
|
||||
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;
|
||||
|
||||
if ( // charcode for l
|
||||
value.charCodeAt(0) === 108 && // charcode for b
|
||||
value.charCodeAt(2) === 98) {
|
||||
// this ignores label
|
||||
element["return"] = '';
|
||||
element.value = '';
|
||||
}
|
||||
}
|
||||
};
|
||||
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; // in nested rules comments become children of the "auto-inserted" rule and that's always the `element.parent`
|
||||
//
|
||||
// considering this input:
|
||||
// .a {
|
||||
// .b /* comm */ {}
|
||||
// color: hotpink;
|
||||
// }
|
||||
// we get output corresponding to this:
|
||||
// .a {
|
||||
// & {
|
||||
// /* comm */
|
||||
// color: hotpink;
|
||||
// }
|
||||
// .b {}
|
||||
// }
|
||||
|
||||
var commentContainer = isNested ? element.parent.children : // global rule at the root level
|
||||
children;
|
||||
|
||||
for (var i = commentContainer.length - 1; i >= 0; i--) {
|
||||
var node = commentContainer[i];
|
||||
|
||||
if (node.line < element.line) {
|
||||
break;
|
||||
} // 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:
|
||||
// .a {
|
||||
// /* comm */
|
||||
// .b {}
|
||||
// }
|
||||
//
|
||||
// but that is fine
|
||||
//
|
||||
// it would be the easiest to change the placement of the comment to be the first child of the rule:
|
||||
// .a {
|
||||
// .b { /* comm */ }
|
||||
// }
|
||||
// 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)) {
|
||||
return;
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
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])) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}; // 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) {
|
||||
element.type = '';
|
||||
element.value = '';
|
||||
element["return"] = '';
|
||||
element.children = '';
|
||||
element.props = '';
|
||||
};
|
||||
|
||||
var incorrectImportAlarm = function incorrectImportAlarm(element, index, children) {
|
||||
if (!isImportRule(element)) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (element.parent) {
|
||||
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.");
|
||||
nullifyElement(element);
|
||||
} else if (isPrependedWithRegularRules(index, children)) {
|
||||
console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules.");
|
||||
nullifyElement(element);
|
||||
}
|
||||
};
|
||||
|
||||
/* eslint-disable no-fallthrough */
|
||||
|
||||
function prefix(value, length) {
|
||||
switch (stylis.hash(value, length)) {
|
||||
// color-adjust
|
||||
case 5103:
|
||||
return stylis.WEBKIT + 'print-' + value + value;
|
||||
// animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
|
||||
|
||||
case 5737:
|
||||
case 4201:
|
||||
case 3177:
|
||||
case 3433:
|
||||
case 1641:
|
||||
case 4457:
|
||||
case 2921: // text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break
|
||||
|
||||
case 5572:
|
||||
case 6356:
|
||||
case 5844:
|
||||
case 3191:
|
||||
case 6645:
|
||||
case 3005: // mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite,
|
||||
|
||||
case 6391:
|
||||
case 5879:
|
||||
case 5623:
|
||||
case 6135:
|
||||
case 4599:
|
||||
case 4855: // background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width)
|
||||
|
||||
case 4215:
|
||||
case 6389:
|
||||
case 5109:
|
||||
case 5365:
|
||||
case 5621:
|
||||
case 3829:
|
||||
return stylis.WEBKIT + value + value;
|
||||
// appearance, user-select, transform, hyphens, text-size-adjust
|
||||
|
||||
case 5349:
|
||||
case 4246:
|
||||
case 4810:
|
||||
case 6968:
|
||||
case 2756:
|
||||
return stylis.WEBKIT + value + stylis.MOZ + value + stylis.MS + value + value;
|
||||
// flex, flex-direction
|
||||
|
||||
case 6828:
|
||||
case 4268:
|
||||
return stylis.WEBKIT + value + stylis.MS + value + value;
|
||||
// order
|
||||
|
||||
case 6165:
|
||||
return stylis.WEBKIT + value + stylis.MS + 'flex-' + value + value;
|
||||
// align-items
|
||||
|
||||
case 5187:
|
||||
return stylis.WEBKIT + value + stylis.replace(value, /(\w+).+(:[^]+)/, stylis.WEBKIT + 'box-$1$2' + stylis.MS + 'flex-$1$2') + value;
|
||||
// align-self
|
||||
|
||||
case 5443:
|
||||
return stylis.WEBKIT + value + stylis.MS + 'flex-item-' + stylis.replace(value, /flex-|-self/, '') + value;
|
||||
// align-content
|
||||
|
||||
case 4675:
|
||||
return stylis.WEBKIT + value + stylis.MS + 'flex-line-pack' + stylis.replace(value, /align-content|flex-|-self/, '') + value;
|
||||
// flex-shrink
|
||||
|
||||
case 5548:
|
||||
return stylis.WEBKIT + value + stylis.MS + stylis.replace(value, 'shrink', 'negative') + value;
|
||||
// flex-basis
|
||||
|
||||
case 5292:
|
||||
return stylis.WEBKIT + value + stylis.MS + stylis.replace(value, 'basis', 'preferred-size') + value;
|
||||
// flex-grow
|
||||
|
||||
case 6060:
|
||||
return stylis.WEBKIT + 'box-' + stylis.replace(value, '-grow', '') + stylis.WEBKIT + value + stylis.MS + stylis.replace(value, 'grow', 'positive') + value;
|
||||
// transition
|
||||
|
||||
case 4554:
|
||||
return stylis.WEBKIT + stylis.replace(value, /([^-])(transform)/g, '$1' + stylis.WEBKIT + '$2') + value;
|
||||
// cursor
|
||||
|
||||
case 6187:
|
||||
return stylis.replace(stylis.replace(stylis.replace(value, /(zoom-|grab)/, stylis.WEBKIT + '$1'), /(image-set)/, stylis.WEBKIT + '$1'), value, '') + value;
|
||||
// background, background-image
|
||||
|
||||
case 5495:
|
||||
case 3959:
|
||||
return stylis.replace(value, /(image-set\([^]*)/, stylis.WEBKIT + '$1' + '$`$1');
|
||||
// justify-content
|
||||
|
||||
case 4968:
|
||||
return stylis.replace(stylis.replace(value, /(.+:)(flex-)?(.*)/, stylis.WEBKIT + 'box-pack:$3' + stylis.MS + 'flex-pack:$3'), /s.+-b[^;]+/, 'justify') + stylis.WEBKIT + value + value;
|
||||
// (margin|padding)-inline-(start|end)
|
||||
|
||||
case 4095:
|
||||
case 3583:
|
||||
case 4068:
|
||||
case 2532:
|
||||
return stylis.replace(value, /(.+)-inline(.+)/, stylis.WEBKIT + '$1$2') + value;
|
||||
// (min|max)?(width|height|inline-size|block-size)
|
||||
|
||||
case 8116:
|
||||
case 7059:
|
||||
case 5753:
|
||||
case 5535:
|
||||
case 5445:
|
||||
case 5701:
|
||||
case 4933:
|
||||
case 4677:
|
||||
case 5533:
|
||||
case 5789:
|
||||
case 5021:
|
||||
case 4765:
|
||||
// stretch, max-content, min-content, fill-available
|
||||
if (stylis.strlen(value) - 1 - length > 6) switch (stylis.charat(value, length + 1)) {
|
||||
// (m)ax-content, (m)in-content
|
||||
case 109:
|
||||
// -
|
||||
if (stylis.charat(value, length + 4) !== 45) break;
|
||||
// (f)ill-available, (f)it-content
|
||||
|
||||
case 102:
|
||||
return stylis.replace(value, /(.+:)(.+)-([^]+)/, '$1' + stylis.WEBKIT + '$2-$3' + '$1' + stylis.MOZ + (stylis.charat(value, length + 3) == 108 ? '$3' : '$2-$3')) + value;
|
||||
// (s)tretch
|
||||
|
||||
case 115:
|
||||
return ~stylis.indexof(value, 'stretch') ? prefix(stylis.replace(value, 'stretch', 'fill-available'), length) + value : value;
|
||||
}
|
||||
break;
|
||||
// position: sticky
|
||||
|
||||
case 4949:
|
||||
// (s)ticky?
|
||||
if (stylis.charat(value, length + 1) !== 115) break;
|
||||
// display: (flex|inline-flex)
|
||||
|
||||
case 6444:
|
||||
switch (stylis.charat(value, stylis.strlen(value) - 3 - (~stylis.indexof(value, '!important') && 10))) {
|
||||
// stic(k)y
|
||||
case 107:
|
||||
return stylis.replace(value, ':', ':' + stylis.WEBKIT) + value;
|
||||
// (inline-)?fl(e)x
|
||||
|
||||
case 101:
|
||||
return stylis.replace(value, /(.+:)([^;!]+)(;|!.+)?/, '$1' + stylis.WEBKIT + (stylis.charat(value, 14) === 45 ? 'inline-' : '') + 'box$3' + '$1' + stylis.WEBKIT + '$2$3' + '$1' + stylis.MS + '$2box$3') + value;
|
||||
}
|
||||
|
||||
break;
|
||||
// writing-mode
|
||||
|
||||
case 5936:
|
||||
switch (stylis.charat(value, length + 11)) {
|
||||
// vertical-l(r)
|
||||
case 114:
|
||||
return stylis.WEBKIT + value + stylis.MS + stylis.replace(value, /[svh]\w+-[tblr]{2}/, 'tb') + value;
|
||||
// vertical-r(l)
|
||||
|
||||
case 108:
|
||||
return stylis.WEBKIT + value + stylis.MS + stylis.replace(value, /[svh]\w+-[tblr]{2}/, 'tb-rl') + value;
|
||||
// horizontal(-)tb
|
||||
|
||||
case 45:
|
||||
return stylis.WEBKIT + value + stylis.MS + stylis.replace(value, /[svh]\w+-[tblr]{2}/, 'lr') + value;
|
||||
}
|
||||
|
||||
return stylis.WEBKIT + value + stylis.MS + value + value;
|
||||
}
|
||||
|
||||
return value;
|
||||
}
|
||||
|
||||
var prefixer = function prefixer(element, index, children, callback) {
|
||||
if (element.length > -1) if (!element["return"]) switch (element.type) {
|
||||
case stylis.DECLARATION:
|
||||
element["return"] = prefix(element.value, element.length);
|
||||
break;
|
||||
|
||||
case stylis.KEYFRAMES:
|
||||
return stylis.serialize([stylis.copy(element, {
|
||||
value: stylis.replace(element.value, '@', '@' + stylis.WEBKIT)
|
||||
})], callback);
|
||||
|
||||
case stylis.RULESET:
|
||||
if (element.length) return stylis.combine(element.props, function (value) {
|
||||
switch (stylis.match(value, /(::plac\w+|:read-\w+)/)) {
|
||||
// :read-(only|write)
|
||||
case ':read-only':
|
||||
case ':read-write':
|
||||
return stylis.serialize([stylis.copy(element, {
|
||||
props: [stylis.replace(value, /:(read-\w+)/, ':' + stylis.MOZ + '$1')]
|
||||
})], callback);
|
||||
// :placeholder
|
||||
|
||||
case '::placeholder':
|
||||
return stylis.serialize([stylis.copy(element, {
|
||||
props: [stylis.replace(value, /:(plac\w+)/, ':' + stylis.WEBKIT + 'input-$1')]
|
||||
}), stylis.copy(element, {
|
||||
props: [stylis.replace(value, /:(plac\w+)/, ':' + stylis.MOZ + '$1')]
|
||||
}), stylis.copy(element, {
|
||||
props: [stylis.replace(value, /:(plac\w+)/, stylis.MS + 'input-$1')]
|
||||
})], callback);
|
||||
}
|
||||
|
||||
return '';
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
var defaultStylisPlugins = [prefixer];
|
||||
var getSourceMap;
|
||||
|
||||
{
|
||||
var sourceMapPattern = /\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g;
|
||||
|
||||
getSourceMap = function getSourceMap(styles
|
||||
/*: string */
|
||||
) {
|
||||
var matches = styles.match(sourceMapPattern);
|
||||
if (!matches) return;
|
||||
return matches[matches.length - 1];
|
||||
};
|
||||
}
|
||||
|
||||
var createCache = function
|
||||
/*: EmotionCache */
|
||||
createCache(options
|
||||
/*: Options */
|
||||
) {
|
||||
var key = options.key;
|
||||
|
||||
if (!key) {
|
||||
throw new Error("You have to configure `key` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.\n" + "If multiple caches share the same key they might \"fight\" for each other's style elements.");
|
||||
}
|
||||
|
||||
if (key === 'css') {
|
||||
var ssrStyles = document.querySelectorAll("style[data-emotion]:not([data-s])"); // get SSRed styles out of the way of React's hydration
|
||||
// document.head is a safe place to move them to(though note document.head is not necessarily the last place they will be)
|
||||
// note this very very intentionally targets all style elements regardless of the key to ensure
|
||||
// that creating a cache works inside of render of a React component
|
||||
|
||||
Array.prototype.forEach.call(ssrStyles, function (node
|
||||
/*: HTMLStyleElement */
|
||||
) {
|
||||
// we want to only move elements which have a space in the data-emotion attribute value
|
||||
// because that indicates that it is an Emotion 11 server-side rendered style elements
|
||||
// while we will already ignore Emotion 11 client-side inserted styles because of the :not([data-s]) part in the selector
|
||||
// Emotion 10 client-side inserted styles did not have data-s (but importantly did not have a space in their data-emotion attributes)
|
||||
// so checking for the space ensures that loading Emotion 11 after Emotion 10 has inserted some styles
|
||||
// will not result in the Emotion 10 styles being destroyed
|
||||
var dataEmotionAttribute = node.getAttribute('data-emotion');
|
||||
|
||||
if (dataEmotionAttribute.indexOf(' ') === -1) {
|
||||
return;
|
||||
}
|
||||
|
||||
document.head.appendChild(node);
|
||||
node.setAttribute('data-s', '');
|
||||
});
|
||||
}
|
||||
|
||||
var stylisPlugins = options.stylisPlugins || defaultStylisPlugins;
|
||||
|
||||
{
|
||||
if (/[^a-z-]/.test(key)) {
|
||||
throw new Error("Emotion key must only contain lower case alphabetical characters and - but \"" + key + "\" was passed");
|
||||
}
|
||||
}
|
||||
|
||||
var inserted = {};
|
||||
var container;
|
||||
/* : Node */
|
||||
|
||||
var nodesToHydrate = [];
|
||||
|
||||
{
|
||||
container = options.container || document.head;
|
||||
Array.prototype.forEach.call( // this means we will ignore elements which don't have a space in them which
|
||||
// means that the style elements we're looking at are only Emotion 11 server-rendered style elements
|
||||
document.querySelectorAll("style[data-emotion^=\"" + key + " \"]"), function (node
|
||||
/*: HTMLStyleElement */
|
||||
) {
|
||||
var attrib = node.getAttribute("data-emotion").split(' ');
|
||||
|
||||
for (var i = 1; i < attrib.length; i++) {
|
||||
inserted[attrib[i]] = true;
|
||||
}
|
||||
|
||||
nodesToHydrate.push(node);
|
||||
});
|
||||
}
|
||||
|
||||
var _insert;
|
||||
/*: (
|
||||
selector: string,
|
||||
serialized: SerializedStyles,
|
||||
sheet: StyleSheet,
|
||||
shouldCache: boolean
|
||||
) => string | void */
|
||||
|
||||
|
||||
var omnipresentPlugins = [compat, removeLabel];
|
||||
|
||||
{
|
||||
omnipresentPlugins.push(createUnsafeSelectorsAlarm({
|
||||
get compat() {
|
||||
return cache.compat;
|
||||
}
|
||||
|
||||
}), incorrectImportAlarm);
|
||||
}
|
||||
|
||||
{
|
||||
var currentSheet;
|
||||
var finalizingPlugins = [stylis.stringify, function (element) {
|
||||
if (!element.root) {
|
||||
if (element["return"]) {
|
||||
currentSheet.insert(element["return"]);
|
||||
} else if (element.value && element.type !== stylis.COMMENT) {
|
||||
// insert empty rule in non-production environments
|
||||
// so @emotion/jest can grab `key` from the (JS)DOM for caches without any rules inserted yet
|
||||
currentSheet.insert(element.value + "{}");
|
||||
}
|
||||
}
|
||||
} ];
|
||||
var serializer = stylis.middleware(omnipresentPlugins.concat(stylisPlugins, finalizingPlugins));
|
||||
|
||||
var stylis$1 = function stylis$1(styles) {
|
||||
return stylis.serialize(stylis.compile(styles), serializer);
|
||||
};
|
||||
|
||||
_insert = function
|
||||
/*: void */
|
||||
insert(selector
|
||||
/*: string */
|
||||
, serialized
|
||||
/*: SerializedStyles */
|
||||
, sheet
|
||||
/*: StyleSheet */
|
||||
, shouldCache
|
||||
/*: boolean */
|
||||
) {
|
||||
currentSheet = sheet;
|
||||
|
||||
{
|
||||
var sourceMap = getSourceMap(serialized.styles);
|
||||
|
||||
if (sourceMap) {
|
||||
currentSheet = {
|
||||
insert: function insert(rule
|
||||
/*: string */
|
||||
) {
|
||||
sheet.insert(rule + sourceMap);
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
stylis$1(selector ? selector + "{" + serialized.styles + "}" : serialized.styles);
|
||||
|
||||
if (shouldCache) {
|
||||
cache.inserted[serialized.name] = true;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
var cache
|
||||
/*: EmotionCache */
|
||||
= {
|
||||
key: key,
|
||||
sheet: new sheet.StyleSheet({
|
||||
key: key,
|
||||
container: container,
|
||||
nonce: options.nonce,
|
||||
speedy: options.speedy,
|
||||
prepend: options.prepend,
|
||||
insertionPoint: options.insertionPoint
|
||||
}),
|
||||
nonce: options.nonce,
|
||||
inserted: inserted,
|
||||
registered: {},
|
||||
insert: _insert
|
||||
};
|
||||
cache.sheet.hydrate(nodesToHydrate);
|
||||
return cache;
|
||||
};
|
||||
|
||||
exports["default"] = createCache;
|
||||
2
backend/frontend/node_modules/@emotion/cache/dist/emotion-cache.browser.development.cjs.mjs
generated
vendored
Normal file
2
backend/frontend/node_modules/@emotion/cache/dist/emotion-cache.browser.development.cjs.mjs
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import "./emotion-cache.browser.development.cjs.js";
|
||||
export { _default as default } from "./emotion-cache.browser.development.cjs.default.js";
|
||||
629
backend/frontend/node_modules/@emotion/cache/dist/emotion-cache.browser.development.esm.js
generated
vendored
Normal file
629
backend/frontend/node_modules/@emotion/cache/dist/emotion-cache.browser.development.esm.js
generated
vendored
Normal file
@@ -0,0 +1,629 @@
|
||||
import { StyleSheet } from '@emotion/sheet';
|
||||
import { dealloc, alloc, next, token, from, peek, delimit, slice, position, RULESET, combine, match, serialize, copy, replace, WEBKIT, MOZ, MS, KEYFRAMES, DECLARATION, hash, charat, strlen, indexof, middleware, stringify, COMMENT, compile } from 'stylis';
|
||||
import '@emotion/weak-memoize';
|
||||
import '@emotion/memoize';
|
||||
|
||||
var identifierWithPointTracking = function identifierWithPointTracking(begin, points, index) {
|
||||
var previous = 0;
|
||||
var character = 0;
|
||||
|
||||
while (true) {
|
||||
previous = character;
|
||||
character = peek(); // &\f
|
||||
|
||||
if (previous === 38 && character === 12) {
|
||||
points[index] = 1;
|
||||
}
|
||||
|
||||
if (token(character)) {
|
||||
break;
|
||||
}
|
||||
|
||||
next();
|
||||
}
|
||||
|
||||
return slice(begin, position);
|
||||
};
|
||||
|
||||
var toRules = function toRules(parsed, points) {
|
||||
// pretend we've started with a comma
|
||||
var index = -1;
|
||||
var character = 44;
|
||||
|
||||
do {
|
||||
switch (token(character)) {
|
||||
case 0:
|
||||
// &\f
|
||||
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
|
||||
points[index] = 1;
|
||||
}
|
||||
|
||||
parsed[index] += identifierWithPointTracking(position - 1, points, index);
|
||||
break;
|
||||
|
||||
case 2:
|
||||
parsed[index] += delimit(character);
|
||||
break;
|
||||
|
||||
case 4:
|
||||
// comma
|
||||
if (character === 44) {
|
||||
// colon
|
||||
parsed[++index] = peek() === 58 ? '&\f' : '';
|
||||
points[index] = parsed[index].length;
|
||||
break;
|
||||
}
|
||||
|
||||
// fallthrough
|
||||
|
||||
default:
|
||||
parsed[index] += from(character);
|
||||
}
|
||||
} while (character = next());
|
||||
|
||||
return parsed;
|
||||
};
|
||||
|
||||
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
|
||||
element.length < 1) {
|
||||
return;
|
||||
}
|
||||
|
||||
var value = element.value,
|
||||
parent = element.parent;
|
||||
var isImplicitRule = element.column === parent.column && element.line === parent.line;
|
||||
|
||||
while (parent.type !== 'rule') {
|
||||
parent = parent.parent;
|
||||
if (!parent) return;
|
||||
} // short-circuit for the simplest case
|
||||
|
||||
|
||||
if (element.props.length === 1 && value.charCodeAt(0) !== 58
|
||||
/* colon */
|
||||
&& !fixedElements.get(parent)) {
|
||||
return;
|
||||
} // 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"
|
||||
|
||||
|
||||
if (isImplicitRule) {
|
||||
return;
|
||||
}
|
||||
|
||||
fixedElements.set(element, true);
|
||||
var points = [];
|
||||
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;
|
||||
|
||||
if ( // charcode for l
|
||||
value.charCodeAt(0) === 108 && // charcode for b
|
||||
value.charCodeAt(2) === 98) {
|
||||
// this ignores label
|
||||
element["return"] = '';
|
||||
element.value = '';
|
||||
}
|
||||
}
|
||||
};
|
||||
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; // in nested rules comments become children of the "auto-inserted" rule and that's always the `element.parent`
|
||||
//
|
||||
// considering this input:
|
||||
// .a {
|
||||
// .b /* comm */ {}
|
||||
// color: hotpink;
|
||||
// }
|
||||
// we get output corresponding to this:
|
||||
// .a {
|
||||
// & {
|
||||
// /* comm */
|
||||
// color: hotpink;
|
||||
// }
|
||||
// .b {}
|
||||
// }
|
||||
|
||||
var commentContainer = isNested ? element.parent.children : // global rule at the root level
|
||||
children;
|
||||
|
||||
for (var i = commentContainer.length - 1; i >= 0; i--) {
|
||||
var node = commentContainer[i];
|
||||
|
||||
if (node.line < element.line) {
|
||||
break;
|
||||
} // 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:
|
||||
// .a {
|
||||
// /* comm */
|
||||
// .b {}
|
||||
// }
|
||||
//
|
||||
// but that is fine
|
||||
//
|
||||
// it would be the easiest to change the placement of the comment to be the first child of the rule:
|
||||
// .a {
|
||||
// .b { /* comm */ }
|
||||
// }
|
||||
// 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)) {
|
||||
return;
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
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])) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}; // 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) {
|
||||
element.type = '';
|
||||
element.value = '';
|
||||
element["return"] = '';
|
||||
element.children = '';
|
||||
element.props = '';
|
||||
};
|
||||
|
||||
var incorrectImportAlarm = function incorrectImportAlarm(element, index, children) {
|
||||
if (!isImportRule(element)) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (element.parent) {
|
||||
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.");
|
||||
nullifyElement(element);
|
||||
} else if (isPrependedWithRegularRules(index, children)) {
|
||||
console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules.");
|
||||
nullifyElement(element);
|
||||
}
|
||||
};
|
||||
|
||||
/* eslint-disable no-fallthrough */
|
||||
|
||||
function prefix(value, length) {
|
||||
switch (hash(value, length)) {
|
||||
// color-adjust
|
||||
case 5103:
|
||||
return WEBKIT + 'print-' + value + value;
|
||||
// animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
|
||||
|
||||
case 5737:
|
||||
case 4201:
|
||||
case 3177:
|
||||
case 3433:
|
||||
case 1641:
|
||||
case 4457:
|
||||
case 2921: // text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break
|
||||
|
||||
case 5572:
|
||||
case 6356:
|
||||
case 5844:
|
||||
case 3191:
|
||||
case 6645:
|
||||
case 3005: // mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite,
|
||||
|
||||
case 6391:
|
||||
case 5879:
|
||||
case 5623:
|
||||
case 6135:
|
||||
case 4599:
|
||||
case 4855: // background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width)
|
||||
|
||||
case 4215:
|
||||
case 6389:
|
||||
case 5109:
|
||||
case 5365:
|
||||
case 5621:
|
||||
case 3829:
|
||||
return WEBKIT + value + value;
|
||||
// appearance, user-select, transform, hyphens, text-size-adjust
|
||||
|
||||
case 5349:
|
||||
case 4246:
|
||||
case 4810:
|
||||
case 6968:
|
||||
case 2756:
|
||||
return WEBKIT + value + MOZ + value + MS + value + value;
|
||||
// flex, flex-direction
|
||||
|
||||
case 6828:
|
||||
case 4268:
|
||||
return WEBKIT + value + MS + value + value;
|
||||
// order
|
||||
|
||||
case 6165:
|
||||
return WEBKIT + value + MS + 'flex-' + value + value;
|
||||
// align-items
|
||||
|
||||
case 5187:
|
||||
return WEBKIT + value + replace(value, /(\w+).+(:[^]+)/, WEBKIT + 'box-$1$2' + MS + 'flex-$1$2') + value;
|
||||
// align-self
|
||||
|
||||
case 5443:
|
||||
return WEBKIT + value + MS + 'flex-item-' + replace(value, /flex-|-self/, '') + value;
|
||||
// align-content
|
||||
|
||||
case 4675:
|
||||
return WEBKIT + value + MS + 'flex-line-pack' + replace(value, /align-content|flex-|-self/, '') + value;
|
||||
// flex-shrink
|
||||
|
||||
case 5548:
|
||||
return WEBKIT + value + MS + replace(value, 'shrink', 'negative') + value;
|
||||
// flex-basis
|
||||
|
||||
case 5292:
|
||||
return WEBKIT + value + MS + replace(value, 'basis', 'preferred-size') + value;
|
||||
// flex-grow
|
||||
|
||||
case 6060:
|
||||
return WEBKIT + 'box-' + replace(value, '-grow', '') + WEBKIT + value + MS + replace(value, 'grow', 'positive') + value;
|
||||
// transition
|
||||
|
||||
case 4554:
|
||||
return WEBKIT + replace(value, /([^-])(transform)/g, '$1' + WEBKIT + '$2') + value;
|
||||
// cursor
|
||||
|
||||
case 6187:
|
||||
return replace(replace(replace(value, /(zoom-|grab)/, WEBKIT + '$1'), /(image-set)/, WEBKIT + '$1'), value, '') + value;
|
||||
// background, background-image
|
||||
|
||||
case 5495:
|
||||
case 3959:
|
||||
return replace(value, /(image-set\([^]*)/, WEBKIT + '$1' + '$`$1');
|
||||
// justify-content
|
||||
|
||||
case 4968:
|
||||
return replace(replace(value, /(.+:)(flex-)?(.*)/, WEBKIT + 'box-pack:$3' + MS + 'flex-pack:$3'), /s.+-b[^;]+/, 'justify') + WEBKIT + value + value;
|
||||
// (margin|padding)-inline-(start|end)
|
||||
|
||||
case 4095:
|
||||
case 3583:
|
||||
case 4068:
|
||||
case 2532:
|
||||
return replace(value, /(.+)-inline(.+)/, WEBKIT + '$1$2') + value;
|
||||
// (min|max)?(width|height|inline-size|block-size)
|
||||
|
||||
case 8116:
|
||||
case 7059:
|
||||
case 5753:
|
||||
case 5535:
|
||||
case 5445:
|
||||
case 5701:
|
||||
case 4933:
|
||||
case 4677:
|
||||
case 5533:
|
||||
case 5789:
|
||||
case 5021:
|
||||
case 4765:
|
||||
// stretch, max-content, min-content, fill-available
|
||||
if (strlen(value) - 1 - length > 6) switch (charat(value, length + 1)) {
|
||||
// (m)ax-content, (m)in-content
|
||||
case 109:
|
||||
// -
|
||||
if (charat(value, length + 4) !== 45) break;
|
||||
// (f)ill-available, (f)it-content
|
||||
|
||||
case 102:
|
||||
return replace(value, /(.+:)(.+)-([^]+)/, '$1' + WEBKIT + '$2-$3' + '$1' + MOZ + (charat(value, length + 3) == 108 ? '$3' : '$2-$3')) + value;
|
||||
// (s)tretch
|
||||
|
||||
case 115:
|
||||
return ~indexof(value, 'stretch') ? prefix(replace(value, 'stretch', 'fill-available'), length) + value : value;
|
||||
}
|
||||
break;
|
||||
// position: sticky
|
||||
|
||||
case 4949:
|
||||
// (s)ticky?
|
||||
if (charat(value, length + 1) !== 115) break;
|
||||
// display: (flex|inline-flex)
|
||||
|
||||
case 6444:
|
||||
switch (charat(value, strlen(value) - 3 - (~indexof(value, '!important') && 10))) {
|
||||
// stic(k)y
|
||||
case 107:
|
||||
return replace(value, ':', ':' + WEBKIT) + value;
|
||||
// (inline-)?fl(e)x
|
||||
|
||||
case 101:
|
||||
return replace(value, /(.+:)([^;!]+)(;|!.+)?/, '$1' + WEBKIT + (charat(value, 14) === 45 ? 'inline-' : '') + 'box$3' + '$1' + WEBKIT + '$2$3' + '$1' + MS + '$2box$3') + value;
|
||||
}
|
||||
|
||||
break;
|
||||
// writing-mode
|
||||
|
||||
case 5936:
|
||||
switch (charat(value, length + 11)) {
|
||||
// vertical-l(r)
|
||||
case 114:
|
||||
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'tb') + value;
|
||||
// vertical-r(l)
|
||||
|
||||
case 108:
|
||||
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'tb-rl') + value;
|
||||
// horizontal(-)tb
|
||||
|
||||
case 45:
|
||||
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'lr') + value;
|
||||
}
|
||||
|
||||
return WEBKIT + value + MS + value + value;
|
||||
}
|
||||
|
||||
return value;
|
||||
}
|
||||
|
||||
var prefixer = function prefixer(element, index, children, callback) {
|
||||
if (element.length > -1) if (!element["return"]) switch (element.type) {
|
||||
case DECLARATION:
|
||||
element["return"] = prefix(element.value, element.length);
|
||||
break;
|
||||
|
||||
case KEYFRAMES:
|
||||
return serialize([copy(element, {
|
||||
value: replace(element.value, '@', '@' + WEBKIT)
|
||||
})], callback);
|
||||
|
||||
case RULESET:
|
||||
if (element.length) return combine(element.props, function (value) {
|
||||
switch (match(value, /(::plac\w+|:read-\w+)/)) {
|
||||
// :read-(only|write)
|
||||
case ':read-only':
|
||||
case ':read-write':
|
||||
return serialize([copy(element, {
|
||||
props: [replace(value, /:(read-\w+)/, ':' + MOZ + '$1')]
|
||||
})], callback);
|
||||
// :placeholder
|
||||
|
||||
case '::placeholder':
|
||||
return serialize([copy(element, {
|
||||
props: [replace(value, /:(plac\w+)/, ':' + WEBKIT + 'input-$1')]
|
||||
}), copy(element, {
|
||||
props: [replace(value, /:(plac\w+)/, ':' + MOZ + '$1')]
|
||||
}), copy(element, {
|
||||
props: [replace(value, /:(plac\w+)/, MS + 'input-$1')]
|
||||
})], callback);
|
||||
}
|
||||
|
||||
return '';
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
var defaultStylisPlugins = [prefixer];
|
||||
var getSourceMap;
|
||||
|
||||
{
|
||||
var sourceMapPattern = /\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g;
|
||||
|
||||
getSourceMap = function getSourceMap(styles
|
||||
/*: string */
|
||||
) {
|
||||
var matches = styles.match(sourceMapPattern);
|
||||
if (!matches) return;
|
||||
return matches[matches.length - 1];
|
||||
};
|
||||
}
|
||||
|
||||
var createCache = function
|
||||
/*: EmotionCache */
|
||||
createCache(options
|
||||
/*: Options */
|
||||
) {
|
||||
var key = options.key;
|
||||
|
||||
if (!key) {
|
||||
throw new Error("You have to configure `key` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.\n" + "If multiple caches share the same key they might \"fight\" for each other's style elements.");
|
||||
}
|
||||
|
||||
if (key === 'css') {
|
||||
var ssrStyles = document.querySelectorAll("style[data-emotion]:not([data-s])"); // get SSRed styles out of the way of React's hydration
|
||||
// document.head is a safe place to move them to(though note document.head is not necessarily the last place they will be)
|
||||
// note this very very intentionally targets all style elements regardless of the key to ensure
|
||||
// that creating a cache works inside of render of a React component
|
||||
|
||||
Array.prototype.forEach.call(ssrStyles, function (node
|
||||
/*: HTMLStyleElement */
|
||||
) {
|
||||
// we want to only move elements which have a space in the data-emotion attribute value
|
||||
// because that indicates that it is an Emotion 11 server-side rendered style elements
|
||||
// while we will already ignore Emotion 11 client-side inserted styles because of the :not([data-s]) part in the selector
|
||||
// Emotion 10 client-side inserted styles did not have data-s (but importantly did not have a space in their data-emotion attributes)
|
||||
// so checking for the space ensures that loading Emotion 11 after Emotion 10 has inserted some styles
|
||||
// will not result in the Emotion 10 styles being destroyed
|
||||
var dataEmotionAttribute = node.getAttribute('data-emotion');
|
||||
|
||||
if (dataEmotionAttribute.indexOf(' ') === -1) {
|
||||
return;
|
||||
}
|
||||
|
||||
document.head.appendChild(node);
|
||||
node.setAttribute('data-s', '');
|
||||
});
|
||||
}
|
||||
|
||||
var stylisPlugins = options.stylisPlugins || defaultStylisPlugins;
|
||||
|
||||
{
|
||||
if (/[^a-z-]/.test(key)) {
|
||||
throw new Error("Emotion key must only contain lower case alphabetical characters and - but \"" + key + "\" was passed");
|
||||
}
|
||||
}
|
||||
|
||||
var inserted = {};
|
||||
var container;
|
||||
/* : Node */
|
||||
|
||||
var nodesToHydrate = [];
|
||||
|
||||
{
|
||||
container = options.container || document.head;
|
||||
Array.prototype.forEach.call( // this means we will ignore elements which don't have a space in them which
|
||||
// means that the style elements we're looking at are only Emotion 11 server-rendered style elements
|
||||
document.querySelectorAll("style[data-emotion^=\"" + key + " \"]"), function (node
|
||||
/*: HTMLStyleElement */
|
||||
) {
|
||||
var attrib = node.getAttribute("data-emotion").split(' ');
|
||||
|
||||
for (var i = 1; i < attrib.length; i++) {
|
||||
inserted[attrib[i]] = true;
|
||||
}
|
||||
|
||||
nodesToHydrate.push(node);
|
||||
});
|
||||
}
|
||||
|
||||
var _insert;
|
||||
/*: (
|
||||
selector: string,
|
||||
serialized: SerializedStyles,
|
||||
sheet: StyleSheet,
|
||||
shouldCache: boolean
|
||||
) => string | void */
|
||||
|
||||
|
||||
var omnipresentPlugins = [compat, removeLabel];
|
||||
|
||||
{
|
||||
omnipresentPlugins.push(createUnsafeSelectorsAlarm({
|
||||
get compat() {
|
||||
return cache.compat;
|
||||
}
|
||||
|
||||
}), incorrectImportAlarm);
|
||||
}
|
||||
|
||||
{
|
||||
var currentSheet;
|
||||
var finalizingPlugins = [stringify, function (element) {
|
||||
if (!element.root) {
|
||||
if (element["return"]) {
|
||||
currentSheet.insert(element["return"]);
|
||||
} else if (element.value && element.type !== COMMENT) {
|
||||
// insert empty rule in non-production environments
|
||||
// so @emotion/jest can grab `key` from the (JS)DOM for caches without any rules inserted yet
|
||||
currentSheet.insert(element.value + "{}");
|
||||
}
|
||||
}
|
||||
} ];
|
||||
var serializer = middleware(omnipresentPlugins.concat(stylisPlugins, finalizingPlugins));
|
||||
|
||||
var stylis = function stylis(styles) {
|
||||
return serialize(compile(styles), serializer);
|
||||
};
|
||||
|
||||
_insert = function
|
||||
/*: void */
|
||||
insert(selector
|
||||
/*: string */
|
||||
, serialized
|
||||
/*: SerializedStyles */
|
||||
, sheet
|
||||
/*: StyleSheet */
|
||||
, shouldCache
|
||||
/*: boolean */
|
||||
) {
|
||||
currentSheet = sheet;
|
||||
|
||||
{
|
||||
var sourceMap = getSourceMap(serialized.styles);
|
||||
|
||||
if (sourceMap) {
|
||||
currentSheet = {
|
||||
insert: function insert(rule
|
||||
/*: string */
|
||||
) {
|
||||
sheet.insert(rule + sourceMap);
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
stylis(selector ? selector + "{" + serialized.styles + "}" : serialized.styles);
|
||||
|
||||
if (shouldCache) {
|
||||
cache.inserted[serialized.name] = true;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
var cache
|
||||
/*: EmotionCache */
|
||||
= {
|
||||
key: key,
|
||||
sheet: new StyleSheet({
|
||||
key: key,
|
||||
container: container,
|
||||
nonce: options.nonce,
|
||||
speedy: options.speedy,
|
||||
prepend: options.prepend,
|
||||
insertionPoint: options.insertionPoint
|
||||
}),
|
||||
nonce: options.nonce,
|
||||
inserted: inserted,
|
||||
registered: {},
|
||||
insert: _insert
|
||||
};
|
||||
cache.sheet.hydrate(nodesToHydrate);
|
||||
return cache;
|
||||
};
|
||||
|
||||
export { createCache as default };
|
||||
467
backend/frontend/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js
generated
vendored
Normal file
467
backend/frontend/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js
generated
vendored
Normal file
@@ -0,0 +1,467 @@
|
||||
import { StyleSheet } from '@emotion/sheet';
|
||||
import { dealloc, alloc, next, token, from, peek, delimit, slice, position, RULESET, combine, match, serialize, copy, replace, WEBKIT, MOZ, MS, KEYFRAMES, DECLARATION, hash, charat, strlen, indexof, stringify, rulesheet, middleware, compile } from 'stylis';
|
||||
import '@emotion/weak-memoize';
|
||||
import '@emotion/memoize';
|
||||
|
||||
var identifierWithPointTracking = function identifierWithPointTracking(begin, points, index) {
|
||||
var previous = 0;
|
||||
var character = 0;
|
||||
|
||||
while (true) {
|
||||
previous = character;
|
||||
character = peek(); // &\f
|
||||
|
||||
if (previous === 38 && character === 12) {
|
||||
points[index] = 1;
|
||||
}
|
||||
|
||||
if (token(character)) {
|
||||
break;
|
||||
}
|
||||
|
||||
next();
|
||||
}
|
||||
|
||||
return slice(begin, position);
|
||||
};
|
||||
|
||||
var toRules = function toRules(parsed, points) {
|
||||
// pretend we've started with a comma
|
||||
var index = -1;
|
||||
var character = 44;
|
||||
|
||||
do {
|
||||
switch (token(character)) {
|
||||
case 0:
|
||||
// &\f
|
||||
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
|
||||
points[index] = 1;
|
||||
}
|
||||
|
||||
parsed[index] += identifierWithPointTracking(position - 1, points, index);
|
||||
break;
|
||||
|
||||
case 2:
|
||||
parsed[index] += delimit(character);
|
||||
break;
|
||||
|
||||
case 4:
|
||||
// comma
|
||||
if (character === 44) {
|
||||
// colon
|
||||
parsed[++index] = peek() === 58 ? '&\f' : '';
|
||||
points[index] = parsed[index].length;
|
||||
break;
|
||||
}
|
||||
|
||||
// fallthrough
|
||||
|
||||
default:
|
||||
parsed[index] += from(character);
|
||||
}
|
||||
} while (character = next());
|
||||
|
||||
return parsed;
|
||||
};
|
||||
|
||||
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
|
||||
element.length < 1) {
|
||||
return;
|
||||
}
|
||||
|
||||
var value = element.value,
|
||||
parent = element.parent;
|
||||
var isImplicitRule = element.column === parent.column && element.line === parent.line;
|
||||
|
||||
while (parent.type !== 'rule') {
|
||||
parent = parent.parent;
|
||||
if (!parent) return;
|
||||
} // short-circuit for the simplest case
|
||||
|
||||
|
||||
if (element.props.length === 1 && value.charCodeAt(0) !== 58
|
||||
/* colon */
|
||||
&& !fixedElements.get(parent)) {
|
||||
return;
|
||||
} // 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"
|
||||
|
||||
|
||||
if (isImplicitRule) {
|
||||
return;
|
||||
}
|
||||
|
||||
fixedElements.set(element, true);
|
||||
var points = [];
|
||||
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;
|
||||
|
||||
if ( // charcode for l
|
||||
value.charCodeAt(0) === 108 && // charcode for b
|
||||
value.charCodeAt(2) === 98) {
|
||||
// this ignores label
|
||||
element["return"] = '';
|
||||
element.value = '';
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
/* eslint-disable no-fallthrough */
|
||||
|
||||
function prefix(value, length) {
|
||||
switch (hash(value, length)) {
|
||||
// color-adjust
|
||||
case 5103:
|
||||
return WEBKIT + 'print-' + value + value;
|
||||
// animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
|
||||
|
||||
case 5737:
|
||||
case 4201:
|
||||
case 3177:
|
||||
case 3433:
|
||||
case 1641:
|
||||
case 4457:
|
||||
case 2921: // text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break
|
||||
|
||||
case 5572:
|
||||
case 6356:
|
||||
case 5844:
|
||||
case 3191:
|
||||
case 6645:
|
||||
case 3005: // mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite,
|
||||
|
||||
case 6391:
|
||||
case 5879:
|
||||
case 5623:
|
||||
case 6135:
|
||||
case 4599:
|
||||
case 4855: // background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width)
|
||||
|
||||
case 4215:
|
||||
case 6389:
|
||||
case 5109:
|
||||
case 5365:
|
||||
case 5621:
|
||||
case 3829:
|
||||
return WEBKIT + value + value;
|
||||
// appearance, user-select, transform, hyphens, text-size-adjust
|
||||
|
||||
case 5349:
|
||||
case 4246:
|
||||
case 4810:
|
||||
case 6968:
|
||||
case 2756:
|
||||
return WEBKIT + value + MOZ + value + MS + value + value;
|
||||
// flex, flex-direction
|
||||
|
||||
case 6828:
|
||||
case 4268:
|
||||
return WEBKIT + value + MS + value + value;
|
||||
// order
|
||||
|
||||
case 6165:
|
||||
return WEBKIT + value + MS + 'flex-' + value + value;
|
||||
// align-items
|
||||
|
||||
case 5187:
|
||||
return WEBKIT + value + replace(value, /(\w+).+(:[^]+)/, WEBKIT + 'box-$1$2' + MS + 'flex-$1$2') + value;
|
||||
// align-self
|
||||
|
||||
case 5443:
|
||||
return WEBKIT + value + MS + 'flex-item-' + replace(value, /flex-|-self/, '') + value;
|
||||
// align-content
|
||||
|
||||
case 4675:
|
||||
return WEBKIT + value + MS + 'flex-line-pack' + replace(value, /align-content|flex-|-self/, '') + value;
|
||||
// flex-shrink
|
||||
|
||||
case 5548:
|
||||
return WEBKIT + value + MS + replace(value, 'shrink', 'negative') + value;
|
||||
// flex-basis
|
||||
|
||||
case 5292:
|
||||
return WEBKIT + value + MS + replace(value, 'basis', 'preferred-size') + value;
|
||||
// flex-grow
|
||||
|
||||
case 6060:
|
||||
return WEBKIT + 'box-' + replace(value, '-grow', '') + WEBKIT + value + MS + replace(value, 'grow', 'positive') + value;
|
||||
// transition
|
||||
|
||||
case 4554:
|
||||
return WEBKIT + replace(value, /([^-])(transform)/g, '$1' + WEBKIT + '$2') + value;
|
||||
// cursor
|
||||
|
||||
case 6187:
|
||||
return replace(replace(replace(value, /(zoom-|grab)/, WEBKIT + '$1'), /(image-set)/, WEBKIT + '$1'), value, '') + value;
|
||||
// background, background-image
|
||||
|
||||
case 5495:
|
||||
case 3959:
|
||||
return replace(value, /(image-set\([^]*)/, WEBKIT + '$1' + '$`$1');
|
||||
// justify-content
|
||||
|
||||
case 4968:
|
||||
return replace(replace(value, /(.+:)(flex-)?(.*)/, WEBKIT + 'box-pack:$3' + MS + 'flex-pack:$3'), /s.+-b[^;]+/, 'justify') + WEBKIT + value + value;
|
||||
// (margin|padding)-inline-(start|end)
|
||||
|
||||
case 4095:
|
||||
case 3583:
|
||||
case 4068:
|
||||
case 2532:
|
||||
return replace(value, /(.+)-inline(.+)/, WEBKIT + '$1$2') + value;
|
||||
// (min|max)?(width|height|inline-size|block-size)
|
||||
|
||||
case 8116:
|
||||
case 7059:
|
||||
case 5753:
|
||||
case 5535:
|
||||
case 5445:
|
||||
case 5701:
|
||||
case 4933:
|
||||
case 4677:
|
||||
case 5533:
|
||||
case 5789:
|
||||
case 5021:
|
||||
case 4765:
|
||||
// stretch, max-content, min-content, fill-available
|
||||
if (strlen(value) - 1 - length > 6) switch (charat(value, length + 1)) {
|
||||
// (m)ax-content, (m)in-content
|
||||
case 109:
|
||||
// -
|
||||
if (charat(value, length + 4) !== 45) break;
|
||||
// (f)ill-available, (f)it-content
|
||||
|
||||
case 102:
|
||||
return replace(value, /(.+:)(.+)-([^]+)/, '$1' + WEBKIT + '$2-$3' + '$1' + MOZ + (charat(value, length + 3) == 108 ? '$3' : '$2-$3')) + value;
|
||||
// (s)tretch
|
||||
|
||||
case 115:
|
||||
return ~indexof(value, 'stretch') ? prefix(replace(value, 'stretch', 'fill-available'), length) + value : value;
|
||||
}
|
||||
break;
|
||||
// position: sticky
|
||||
|
||||
case 4949:
|
||||
// (s)ticky?
|
||||
if (charat(value, length + 1) !== 115) break;
|
||||
// display: (flex|inline-flex)
|
||||
|
||||
case 6444:
|
||||
switch (charat(value, strlen(value) - 3 - (~indexof(value, '!important') && 10))) {
|
||||
// stic(k)y
|
||||
case 107:
|
||||
return replace(value, ':', ':' + WEBKIT) + value;
|
||||
// (inline-)?fl(e)x
|
||||
|
||||
case 101:
|
||||
return replace(value, /(.+:)([^;!]+)(;|!.+)?/, '$1' + WEBKIT + (charat(value, 14) === 45 ? 'inline-' : '') + 'box$3' + '$1' + WEBKIT + '$2$3' + '$1' + MS + '$2box$3') + value;
|
||||
}
|
||||
|
||||
break;
|
||||
// writing-mode
|
||||
|
||||
case 5936:
|
||||
switch (charat(value, length + 11)) {
|
||||
// vertical-l(r)
|
||||
case 114:
|
||||
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'tb') + value;
|
||||
// vertical-r(l)
|
||||
|
||||
case 108:
|
||||
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'tb-rl') + value;
|
||||
// horizontal(-)tb
|
||||
|
||||
case 45:
|
||||
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'lr') + value;
|
||||
}
|
||||
|
||||
return WEBKIT + value + MS + value + value;
|
||||
}
|
||||
|
||||
return value;
|
||||
}
|
||||
|
||||
var prefixer = function prefixer(element, index, children, callback) {
|
||||
if (element.length > -1) if (!element["return"]) switch (element.type) {
|
||||
case DECLARATION:
|
||||
element["return"] = prefix(element.value, element.length);
|
||||
break;
|
||||
|
||||
case KEYFRAMES:
|
||||
return serialize([copy(element, {
|
||||
value: replace(element.value, '@', '@' + WEBKIT)
|
||||
})], callback);
|
||||
|
||||
case RULESET:
|
||||
if (element.length) return combine(element.props, function (value) {
|
||||
switch (match(value, /(::plac\w+|:read-\w+)/)) {
|
||||
// :read-(only|write)
|
||||
case ':read-only':
|
||||
case ':read-write':
|
||||
return serialize([copy(element, {
|
||||
props: [replace(value, /:(read-\w+)/, ':' + MOZ + '$1')]
|
||||
})], callback);
|
||||
// :placeholder
|
||||
|
||||
case '::placeholder':
|
||||
return serialize([copy(element, {
|
||||
props: [replace(value, /:(plac\w+)/, ':' + WEBKIT + 'input-$1')]
|
||||
}), copy(element, {
|
||||
props: [replace(value, /:(plac\w+)/, ':' + MOZ + '$1')]
|
||||
}), copy(element, {
|
||||
props: [replace(value, /:(plac\w+)/, MS + 'input-$1')]
|
||||
})], callback);
|
||||
}
|
||||
|
||||
return '';
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
var defaultStylisPlugins = [prefixer];
|
||||
|
||||
var createCache = function
|
||||
/*: EmotionCache */
|
||||
createCache(options
|
||||
/*: Options */
|
||||
) {
|
||||
var key = options.key;
|
||||
|
||||
if (key === 'css') {
|
||||
var ssrStyles = document.querySelectorAll("style[data-emotion]:not([data-s])"); // get SSRed styles out of the way of React's hydration
|
||||
// document.head is a safe place to move them to(though note document.head is not necessarily the last place they will be)
|
||||
// note this very very intentionally targets all style elements regardless of the key to ensure
|
||||
// that creating a cache works inside of render of a React component
|
||||
|
||||
Array.prototype.forEach.call(ssrStyles, function (node
|
||||
/*: HTMLStyleElement */
|
||||
) {
|
||||
// we want to only move elements which have a space in the data-emotion attribute value
|
||||
// because that indicates that it is an Emotion 11 server-side rendered style elements
|
||||
// while we will already ignore Emotion 11 client-side inserted styles because of the :not([data-s]) part in the selector
|
||||
// Emotion 10 client-side inserted styles did not have data-s (but importantly did not have a space in their data-emotion attributes)
|
||||
// so checking for the space ensures that loading Emotion 11 after Emotion 10 has inserted some styles
|
||||
// will not result in the Emotion 10 styles being destroyed
|
||||
var dataEmotionAttribute = node.getAttribute('data-emotion');
|
||||
|
||||
if (dataEmotionAttribute.indexOf(' ') === -1) {
|
||||
return;
|
||||
}
|
||||
|
||||
document.head.appendChild(node);
|
||||
node.setAttribute('data-s', '');
|
||||
});
|
||||
}
|
||||
|
||||
var stylisPlugins = options.stylisPlugins || defaultStylisPlugins;
|
||||
|
||||
var inserted = {};
|
||||
var container;
|
||||
/* : Node */
|
||||
|
||||
var nodesToHydrate = [];
|
||||
|
||||
{
|
||||
container = options.container || document.head;
|
||||
Array.prototype.forEach.call( // this means we will ignore elements which don't have a space in them which
|
||||
// means that the style elements we're looking at are only Emotion 11 server-rendered style elements
|
||||
document.querySelectorAll("style[data-emotion^=\"" + key + " \"]"), function (node
|
||||
/*: HTMLStyleElement */
|
||||
) {
|
||||
var attrib = node.getAttribute("data-emotion").split(' ');
|
||||
|
||||
for (var i = 1; i < attrib.length; i++) {
|
||||
inserted[attrib[i]] = true;
|
||||
}
|
||||
|
||||
nodesToHydrate.push(node);
|
||||
});
|
||||
}
|
||||
|
||||
var _insert;
|
||||
/*: (
|
||||
selector: string,
|
||||
serialized: SerializedStyles,
|
||||
sheet: StyleSheet,
|
||||
shouldCache: boolean
|
||||
) => string | void */
|
||||
|
||||
|
||||
var omnipresentPlugins = [compat, removeLabel];
|
||||
|
||||
{
|
||||
var currentSheet;
|
||||
var finalizingPlugins = [stringify, rulesheet(function (rule) {
|
||||
currentSheet.insert(rule);
|
||||
})];
|
||||
var serializer = middleware(omnipresentPlugins.concat(stylisPlugins, finalizingPlugins));
|
||||
|
||||
var stylis = function stylis(styles) {
|
||||
return serialize(compile(styles), serializer);
|
||||
};
|
||||
|
||||
_insert = function
|
||||
/*: void */
|
||||
insert(selector
|
||||
/*: string */
|
||||
, serialized
|
||||
/*: SerializedStyles */
|
||||
, sheet
|
||||
/*: StyleSheet */
|
||||
, shouldCache
|
||||
/*: boolean */
|
||||
) {
|
||||
currentSheet = sheet;
|
||||
|
||||
stylis(selector ? selector + "{" + serialized.styles + "}" : serialized.styles);
|
||||
|
||||
if (shouldCache) {
|
||||
cache.inserted[serialized.name] = true;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
var cache
|
||||
/*: EmotionCache */
|
||||
= {
|
||||
key: key,
|
||||
sheet: new StyleSheet({
|
||||
key: key,
|
||||
container: container,
|
||||
nonce: options.nonce,
|
||||
speedy: options.speedy,
|
||||
prepend: options.prepend,
|
||||
insertionPoint: options.insertionPoint
|
||||
}),
|
||||
nonce: options.nonce,
|
||||
inserted: inserted,
|
||||
registered: {},
|
||||
insert: _insert
|
||||
};
|
||||
cache.sheet.hydrate(nodesToHydrate);
|
||||
return cache;
|
||||
};
|
||||
|
||||
export { createCache as default };
|
||||
3
backend/frontend/node_modules/@emotion/cache/dist/emotion-cache.cjs.d.mts
generated
vendored
Normal file
3
backend/frontend/node_modules/@emotion/cache/dist/emotion-cache.cjs.d.mts
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
export * from "./declarations/src/index.js";
|
||||
export { _default as default } from "./emotion-cache.cjs.default.js";
|
||||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW1vdGlvbi1jYWNoZS5janMuZC5tdHMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuL2RlY2xhcmF0aW9ucy9zcmMvaW5kZXguZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSJ9
|
||||
3
backend/frontend/node_modules/@emotion/cache/dist/emotion-cache.cjs.d.ts
generated
vendored
Normal file
3
backend/frontend/node_modules/@emotion/cache/dist/emotion-cache.cjs.d.ts
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
export * from "./declarations/src/index";
|
||||
export { default } from "./declarations/src/index";
|
||||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW1vdGlvbi1jYWNoZS5janMuZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4vZGVjbGFyYXRpb25zL3NyYy9pbmRleC5kLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBIn0=
|
||||
1
backend/frontend/node_modules/@emotion/cache/dist/emotion-cache.cjs.default.d.ts
generated
vendored
Normal file
1
backend/frontend/node_modules/@emotion/cache/dist/emotion-cache.cjs.default.d.ts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export { default as _default } from "./declarations/src/index.js"
|
||||
1
backend/frontend/node_modules/@emotion/cache/dist/emotion-cache.cjs.default.js
generated
vendored
Normal file
1
backend/frontend/node_modules/@emotion/cache/dist/emotion-cache.cjs.default.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
exports._default = require("./emotion-cache.cjs.js").default;
|
||||
565
backend/frontend/node_modules/@emotion/cache/dist/emotion-cache.cjs.js
generated
vendored
Normal file
565
backend/frontend/node_modules/@emotion/cache/dist/emotion-cache.cjs.js
generated
vendored
Normal file
@@ -0,0 +1,565 @@
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
|
||||
var sheet = require('@emotion/sheet');
|
||||
var stylis = require('stylis');
|
||||
var weakMemoize = require('@emotion/weak-memoize');
|
||||
var memoize = require('@emotion/memoize');
|
||||
|
||||
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
||||
|
||||
var weakMemoize__default = /*#__PURE__*/_interopDefault(weakMemoize);
|
||||
var memoize__default = /*#__PURE__*/_interopDefault(memoize);
|
||||
|
||||
var isBrowser = typeof document !== 'undefined';
|
||||
|
||||
var identifierWithPointTracking = function identifierWithPointTracking(begin, points, index) {
|
||||
var previous = 0;
|
||||
var character = 0;
|
||||
|
||||
while (true) {
|
||||
previous = character;
|
||||
character = stylis.peek(); // &\f
|
||||
|
||||
if (previous === 38 && character === 12) {
|
||||
points[index] = 1;
|
||||
}
|
||||
|
||||
if (stylis.token(character)) {
|
||||
break;
|
||||
}
|
||||
|
||||
stylis.next();
|
||||
}
|
||||
|
||||
return stylis.slice(begin, stylis.position);
|
||||
};
|
||||
|
||||
var toRules = function toRules(parsed, points) {
|
||||
// pretend we've started with a comma
|
||||
var index = -1;
|
||||
var character = 44;
|
||||
|
||||
do {
|
||||
switch (stylis.token(character)) {
|
||||
case 0:
|
||||
// &\f
|
||||
if (character === 38 && stylis.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
|
||||
points[index] = 1;
|
||||
}
|
||||
|
||||
parsed[index] += identifierWithPointTracking(stylis.position - 1, points, index);
|
||||
break;
|
||||
|
||||
case 2:
|
||||
parsed[index] += stylis.delimit(character);
|
||||
break;
|
||||
|
||||
case 4:
|
||||
// comma
|
||||
if (character === 44) {
|
||||
// colon
|
||||
parsed[++index] = stylis.peek() === 58 ? '&\f' : '';
|
||||
points[index] = parsed[index].length;
|
||||
break;
|
||||
}
|
||||
|
||||
// fallthrough
|
||||
|
||||
default:
|
||||
parsed[index] += stylis.from(character);
|
||||
}
|
||||
} while (character = stylis.next());
|
||||
|
||||
return parsed;
|
||||
};
|
||||
|
||||
var getRules = function getRules(value, points) {
|
||||
return stylis.dealloc(toRules(stylis.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
|
||||
element.length < 1) {
|
||||
return;
|
||||
}
|
||||
|
||||
var value = element.value,
|
||||
parent = element.parent;
|
||||
var isImplicitRule = element.column === parent.column && element.line === parent.line;
|
||||
|
||||
while (parent.type !== 'rule') {
|
||||
parent = parent.parent;
|
||||
if (!parent) return;
|
||||
} // short-circuit for the simplest case
|
||||
|
||||
|
||||
if (element.props.length === 1 && value.charCodeAt(0) !== 58
|
||||
/* colon */
|
||||
&& !fixedElements.get(parent)) {
|
||||
return;
|
||||
} // 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"
|
||||
|
||||
|
||||
if (isImplicitRule) {
|
||||
return;
|
||||
}
|
||||
|
||||
fixedElements.set(element, true);
|
||||
var points = [];
|
||||
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;
|
||||
|
||||
if ( // charcode for l
|
||||
value.charCodeAt(0) === 108 && // charcode for b
|
||||
value.charCodeAt(2) === 98) {
|
||||
// this ignores label
|
||||
element["return"] = '';
|
||||
element.value = '';
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
/* eslint-disable no-fallthrough */
|
||||
|
||||
function prefix(value, length) {
|
||||
switch (stylis.hash(value, length)) {
|
||||
// color-adjust
|
||||
case 5103:
|
||||
return stylis.WEBKIT + 'print-' + value + value;
|
||||
// animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
|
||||
|
||||
case 5737:
|
||||
case 4201:
|
||||
case 3177:
|
||||
case 3433:
|
||||
case 1641:
|
||||
case 4457:
|
||||
case 2921: // text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break
|
||||
|
||||
case 5572:
|
||||
case 6356:
|
||||
case 5844:
|
||||
case 3191:
|
||||
case 6645:
|
||||
case 3005: // mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite,
|
||||
|
||||
case 6391:
|
||||
case 5879:
|
||||
case 5623:
|
||||
case 6135:
|
||||
case 4599:
|
||||
case 4855: // background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width)
|
||||
|
||||
case 4215:
|
||||
case 6389:
|
||||
case 5109:
|
||||
case 5365:
|
||||
case 5621:
|
||||
case 3829:
|
||||
return stylis.WEBKIT + value + value;
|
||||
// appearance, user-select, transform, hyphens, text-size-adjust
|
||||
|
||||
case 5349:
|
||||
case 4246:
|
||||
case 4810:
|
||||
case 6968:
|
||||
case 2756:
|
||||
return stylis.WEBKIT + value + stylis.MOZ + value + stylis.MS + value + value;
|
||||
// flex, flex-direction
|
||||
|
||||
case 6828:
|
||||
case 4268:
|
||||
return stylis.WEBKIT + value + stylis.MS + value + value;
|
||||
// order
|
||||
|
||||
case 6165:
|
||||
return stylis.WEBKIT + value + stylis.MS + 'flex-' + value + value;
|
||||
// align-items
|
||||
|
||||
case 5187:
|
||||
return stylis.WEBKIT + value + stylis.replace(value, /(\w+).+(:[^]+)/, stylis.WEBKIT + 'box-$1$2' + stylis.MS + 'flex-$1$2') + value;
|
||||
// align-self
|
||||
|
||||
case 5443:
|
||||
return stylis.WEBKIT + value + stylis.MS + 'flex-item-' + stylis.replace(value, /flex-|-self/, '') + value;
|
||||
// align-content
|
||||
|
||||
case 4675:
|
||||
return stylis.WEBKIT + value + stylis.MS + 'flex-line-pack' + stylis.replace(value, /align-content|flex-|-self/, '') + value;
|
||||
// flex-shrink
|
||||
|
||||
case 5548:
|
||||
return stylis.WEBKIT + value + stylis.MS + stylis.replace(value, 'shrink', 'negative') + value;
|
||||
// flex-basis
|
||||
|
||||
case 5292:
|
||||
return stylis.WEBKIT + value + stylis.MS + stylis.replace(value, 'basis', 'preferred-size') + value;
|
||||
// flex-grow
|
||||
|
||||
case 6060:
|
||||
return stylis.WEBKIT + 'box-' + stylis.replace(value, '-grow', '') + stylis.WEBKIT + value + stylis.MS + stylis.replace(value, 'grow', 'positive') + value;
|
||||
// transition
|
||||
|
||||
case 4554:
|
||||
return stylis.WEBKIT + stylis.replace(value, /([^-])(transform)/g, '$1' + stylis.WEBKIT + '$2') + value;
|
||||
// cursor
|
||||
|
||||
case 6187:
|
||||
return stylis.replace(stylis.replace(stylis.replace(value, /(zoom-|grab)/, stylis.WEBKIT + '$1'), /(image-set)/, stylis.WEBKIT + '$1'), value, '') + value;
|
||||
// background, background-image
|
||||
|
||||
case 5495:
|
||||
case 3959:
|
||||
return stylis.replace(value, /(image-set\([^]*)/, stylis.WEBKIT + '$1' + '$`$1');
|
||||
// justify-content
|
||||
|
||||
case 4968:
|
||||
return stylis.replace(stylis.replace(value, /(.+:)(flex-)?(.*)/, stylis.WEBKIT + 'box-pack:$3' + stylis.MS + 'flex-pack:$3'), /s.+-b[^;]+/, 'justify') + stylis.WEBKIT + value + value;
|
||||
// (margin|padding)-inline-(start|end)
|
||||
|
||||
case 4095:
|
||||
case 3583:
|
||||
case 4068:
|
||||
case 2532:
|
||||
return stylis.replace(value, /(.+)-inline(.+)/, stylis.WEBKIT + '$1$2') + value;
|
||||
// (min|max)?(width|height|inline-size|block-size)
|
||||
|
||||
case 8116:
|
||||
case 7059:
|
||||
case 5753:
|
||||
case 5535:
|
||||
case 5445:
|
||||
case 5701:
|
||||
case 4933:
|
||||
case 4677:
|
||||
case 5533:
|
||||
case 5789:
|
||||
case 5021:
|
||||
case 4765:
|
||||
// stretch, max-content, min-content, fill-available
|
||||
if (stylis.strlen(value) - 1 - length > 6) switch (stylis.charat(value, length + 1)) {
|
||||
// (m)ax-content, (m)in-content
|
||||
case 109:
|
||||
// -
|
||||
if (stylis.charat(value, length + 4) !== 45) break;
|
||||
// (f)ill-available, (f)it-content
|
||||
|
||||
case 102:
|
||||
return stylis.replace(value, /(.+:)(.+)-([^]+)/, '$1' + stylis.WEBKIT + '$2-$3' + '$1' + stylis.MOZ + (stylis.charat(value, length + 3) == 108 ? '$3' : '$2-$3')) + value;
|
||||
// (s)tretch
|
||||
|
||||
case 115:
|
||||
return ~stylis.indexof(value, 'stretch') ? prefix(stylis.replace(value, 'stretch', 'fill-available'), length) + value : value;
|
||||
}
|
||||
break;
|
||||
// position: sticky
|
||||
|
||||
case 4949:
|
||||
// (s)ticky?
|
||||
if (stylis.charat(value, length + 1) !== 115) break;
|
||||
// display: (flex|inline-flex)
|
||||
|
||||
case 6444:
|
||||
switch (stylis.charat(value, stylis.strlen(value) - 3 - (~stylis.indexof(value, '!important') && 10))) {
|
||||
// stic(k)y
|
||||
case 107:
|
||||
return stylis.replace(value, ':', ':' + stylis.WEBKIT) + value;
|
||||
// (inline-)?fl(e)x
|
||||
|
||||
case 101:
|
||||
return stylis.replace(value, /(.+:)([^;!]+)(;|!.+)?/, '$1' + stylis.WEBKIT + (stylis.charat(value, 14) === 45 ? 'inline-' : '') + 'box$3' + '$1' + stylis.WEBKIT + '$2$3' + '$1' + stylis.MS + '$2box$3') + value;
|
||||
}
|
||||
|
||||
break;
|
||||
// writing-mode
|
||||
|
||||
case 5936:
|
||||
switch (stylis.charat(value, length + 11)) {
|
||||
// vertical-l(r)
|
||||
case 114:
|
||||
return stylis.WEBKIT + value + stylis.MS + stylis.replace(value, /[svh]\w+-[tblr]{2}/, 'tb') + value;
|
||||
// vertical-r(l)
|
||||
|
||||
case 108:
|
||||
return stylis.WEBKIT + value + stylis.MS + stylis.replace(value, /[svh]\w+-[tblr]{2}/, 'tb-rl') + value;
|
||||
// horizontal(-)tb
|
||||
|
||||
case 45:
|
||||
return stylis.WEBKIT + value + stylis.MS + stylis.replace(value, /[svh]\w+-[tblr]{2}/, 'lr') + value;
|
||||
}
|
||||
|
||||
return stylis.WEBKIT + value + stylis.MS + value + value;
|
||||
}
|
||||
|
||||
return value;
|
||||
}
|
||||
|
||||
var prefixer = function prefixer(element, index, children, callback) {
|
||||
if (element.length > -1) if (!element["return"]) switch (element.type) {
|
||||
case stylis.DECLARATION:
|
||||
element["return"] = prefix(element.value, element.length);
|
||||
break;
|
||||
|
||||
case stylis.KEYFRAMES:
|
||||
return stylis.serialize([stylis.copy(element, {
|
||||
value: stylis.replace(element.value, '@', '@' + stylis.WEBKIT)
|
||||
})], callback);
|
||||
|
||||
case stylis.RULESET:
|
||||
if (element.length) return stylis.combine(element.props, function (value) {
|
||||
switch (stylis.match(value, /(::plac\w+|:read-\w+)/)) {
|
||||
// :read-(only|write)
|
||||
case ':read-only':
|
||||
case ':read-write':
|
||||
return stylis.serialize([stylis.copy(element, {
|
||||
props: [stylis.replace(value, /:(read-\w+)/, ':' + stylis.MOZ + '$1')]
|
||||
})], callback);
|
||||
// :placeholder
|
||||
|
||||
case '::placeholder':
|
||||
return stylis.serialize([stylis.copy(element, {
|
||||
props: [stylis.replace(value, /:(plac\w+)/, ':' + stylis.WEBKIT + 'input-$1')]
|
||||
}), stylis.copy(element, {
|
||||
props: [stylis.replace(value, /:(plac\w+)/, ':' + stylis.MOZ + '$1')]
|
||||
}), stylis.copy(element, {
|
||||
props: [stylis.replace(value, /:(plac\w+)/, stylis.MS + 'input-$1')]
|
||||
})], callback);
|
||||
}
|
||||
|
||||
return '';
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
/* import type { StylisPlugin } from './types' */
|
||||
|
||||
/*
|
||||
export type Options = {
|
||||
nonce?: string,
|
||||
stylisPlugins?: StylisPlugin[],
|
||||
key: string,
|
||||
container?: HTMLElement,
|
||||
speedy?: boolean,
|
||||
prepend?: boolean,
|
||||
insertionPoint?: HTMLElement
|
||||
}
|
||||
*/
|
||||
|
||||
var getServerStylisCache = isBrowser ? undefined : weakMemoize__default["default"](function () {
|
||||
return memoize__default["default"](function () {
|
||||
var cache = {};
|
||||
return function (name) {
|
||||
return cache[name];
|
||||
};
|
||||
});
|
||||
});
|
||||
var defaultStylisPlugins = [prefixer];
|
||||
|
||||
var createCache = function
|
||||
/*: EmotionCache */
|
||||
createCache(options
|
||||
/*: Options */
|
||||
) {
|
||||
var key = options.key;
|
||||
|
||||
if (isBrowser && key === 'css') {
|
||||
var ssrStyles = document.querySelectorAll("style[data-emotion]:not([data-s])"); // get SSRed styles out of the way of React's hydration
|
||||
// document.head is a safe place to move them to(though note document.head is not necessarily the last place they will be)
|
||||
// note this very very intentionally targets all style elements regardless of the key to ensure
|
||||
// that creating a cache works inside of render of a React component
|
||||
|
||||
Array.prototype.forEach.call(ssrStyles, function (node
|
||||
/*: HTMLStyleElement */
|
||||
) {
|
||||
// we want to only move elements which have a space in the data-emotion attribute value
|
||||
// because that indicates that it is an Emotion 11 server-side rendered style elements
|
||||
// while we will already ignore Emotion 11 client-side inserted styles because of the :not([data-s]) part in the selector
|
||||
// Emotion 10 client-side inserted styles did not have data-s (but importantly did not have a space in their data-emotion attributes)
|
||||
// so checking for the space ensures that loading Emotion 11 after Emotion 10 has inserted some styles
|
||||
// will not result in the Emotion 10 styles being destroyed
|
||||
var dataEmotionAttribute = node.getAttribute('data-emotion');
|
||||
|
||||
if (dataEmotionAttribute.indexOf(' ') === -1) {
|
||||
return;
|
||||
}
|
||||
|
||||
document.head.appendChild(node);
|
||||
node.setAttribute('data-s', '');
|
||||
});
|
||||
}
|
||||
|
||||
var stylisPlugins = options.stylisPlugins || defaultStylisPlugins;
|
||||
|
||||
var inserted = {};
|
||||
var container;
|
||||
/* : Node */
|
||||
|
||||
var nodesToHydrate = [];
|
||||
|
||||
if (isBrowser) {
|
||||
container = options.container || document.head;
|
||||
Array.prototype.forEach.call( // this means we will ignore elements which don't have a space in them which
|
||||
// means that the style elements we're looking at are only Emotion 11 server-rendered style elements
|
||||
document.querySelectorAll("style[data-emotion^=\"" + key + " \"]"), function (node
|
||||
/*: HTMLStyleElement */
|
||||
) {
|
||||
var attrib = node.getAttribute("data-emotion").split(' ');
|
||||
|
||||
for (var i = 1; i < attrib.length; i++) {
|
||||
inserted[attrib[i]] = true;
|
||||
}
|
||||
|
||||
nodesToHydrate.push(node);
|
||||
});
|
||||
}
|
||||
|
||||
var _insert;
|
||||
/*: (
|
||||
selector: string,
|
||||
serialized: SerializedStyles,
|
||||
sheet: StyleSheet,
|
||||
shouldCache: boolean
|
||||
) => string | void */
|
||||
|
||||
|
||||
var omnipresentPlugins = [compat, removeLabel];
|
||||
|
||||
if (isBrowser) {
|
||||
var currentSheet;
|
||||
var finalizingPlugins = [stylis.stringify, stylis.rulesheet(function (rule) {
|
||||
currentSheet.insert(rule);
|
||||
})];
|
||||
var serializer = stylis.middleware(omnipresentPlugins.concat(stylisPlugins, finalizingPlugins));
|
||||
|
||||
var stylis$1 = function stylis$1(styles) {
|
||||
return stylis.serialize(stylis.compile(styles), serializer);
|
||||
};
|
||||
|
||||
_insert = function
|
||||
/*: void */
|
||||
insert(selector
|
||||
/*: string */
|
||||
, serialized
|
||||
/*: SerializedStyles */
|
||||
, sheet
|
||||
/*: StyleSheet */
|
||||
, shouldCache
|
||||
/*: boolean */
|
||||
) {
|
||||
currentSheet = sheet;
|
||||
|
||||
stylis$1(selector ? selector + "{" + serialized.styles + "}" : serialized.styles);
|
||||
|
||||
if (shouldCache) {
|
||||
cache.inserted[serialized.name] = true;
|
||||
}
|
||||
};
|
||||
} else {
|
||||
var _finalizingPlugins = [stylis.stringify];
|
||||
|
||||
var _serializer = stylis.middleware(omnipresentPlugins.concat(stylisPlugins, _finalizingPlugins));
|
||||
|
||||
var _stylis = function _stylis(styles) {
|
||||
return stylis.serialize(stylis.compile(styles), _serializer);
|
||||
};
|
||||
|
||||
var serverStylisCache = getServerStylisCache(stylisPlugins)(key);
|
||||
|
||||
var getRules = function
|
||||
/*: string */
|
||||
getRules(selector
|
||||
/*: string */
|
||||
, serialized
|
||||
/*: SerializedStyles */
|
||||
) {
|
||||
var name = serialized.name;
|
||||
|
||||
if (serverStylisCache[name] === undefined) {
|
||||
serverStylisCache[name] = _stylis(selector ? selector + "{" + serialized.styles + "}" : serialized.styles);
|
||||
}
|
||||
|
||||
return serverStylisCache[name];
|
||||
};
|
||||
|
||||
_insert = function
|
||||
/*: string | void */
|
||||
_insert(selector
|
||||
/*: string */
|
||||
, serialized
|
||||
/*: SerializedStyles */
|
||||
, sheet
|
||||
/*: StyleSheet */
|
||||
, shouldCache
|
||||
/*: boolean */
|
||||
) {
|
||||
var name = serialized.name;
|
||||
var rules = getRules(selector, serialized);
|
||||
|
||||
if (cache.compat === undefined) {
|
||||
// in regular mode, we don't set the styles on the inserted cache
|
||||
// since we don't need to and that would be wasting memory
|
||||
// we return them so that they are rendered in a style tag
|
||||
if (shouldCache) {
|
||||
cache.inserted[name] = true;
|
||||
}
|
||||
|
||||
return rules;
|
||||
} else {
|
||||
// in compat mode, we put the styles on the inserted cache so
|
||||
// that emotion-server can pull out the styles
|
||||
// except when we don't want to cache it which was in Global but now
|
||||
// is nowhere but we don't want to do a major right now
|
||||
// and just in case we're going to leave the case here
|
||||
// it's also not affecting client side bundle size
|
||||
// so it's really not a big deal
|
||||
if (shouldCache) {
|
||||
cache.inserted[name] = rules;
|
||||
} else {
|
||||
return rules;
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
var cache
|
||||
/*: EmotionCache */
|
||||
= {
|
||||
key: key,
|
||||
sheet: new sheet.StyleSheet({
|
||||
key: key,
|
||||
container: container,
|
||||
nonce: options.nonce,
|
||||
speedy: options.speedy,
|
||||
prepend: options.prepend,
|
||||
insertionPoint: options.insertionPoint
|
||||
}),
|
||||
nonce: options.nonce,
|
||||
inserted: inserted,
|
||||
registered: {},
|
||||
insert: _insert
|
||||
};
|
||||
cache.sheet.hydrate(nodesToHydrate);
|
||||
return cache;
|
||||
};
|
||||
|
||||
exports["default"] = createCache;
|
||||
2
backend/frontend/node_modules/@emotion/cache/dist/emotion-cache.cjs.mjs
generated
vendored
Normal file
2
backend/frontend/node_modules/@emotion/cache/dist/emotion-cache.cjs.mjs
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import "./emotion-cache.cjs.js";
|
||||
export { _default as default } from "./emotion-cache.cjs.default.js";
|
||||
1
backend/frontend/node_modules/@emotion/cache/dist/emotion-cache.development.cjs.default.js
generated
vendored
Normal file
1
backend/frontend/node_modules/@emotion/cache/dist/emotion-cache.development.cjs.default.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
exports._default = require("./emotion-cache.development.cjs.js").default;
|
||||
735
backend/frontend/node_modules/@emotion/cache/dist/emotion-cache.development.cjs.js
generated
vendored
Normal file
735
backend/frontend/node_modules/@emotion/cache/dist/emotion-cache.development.cjs.js
generated
vendored
Normal file
@@ -0,0 +1,735 @@
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
|
||||
var sheet = require('@emotion/sheet');
|
||||
var stylis = require('stylis');
|
||||
var weakMemoize = require('@emotion/weak-memoize');
|
||||
var memoize = require('@emotion/memoize');
|
||||
|
||||
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
||||
|
||||
var weakMemoize__default = /*#__PURE__*/_interopDefault(weakMemoize);
|
||||
var memoize__default = /*#__PURE__*/_interopDefault(memoize);
|
||||
|
||||
var isBrowser = typeof document !== 'undefined';
|
||||
|
||||
var identifierWithPointTracking = function identifierWithPointTracking(begin, points, index) {
|
||||
var previous = 0;
|
||||
var character = 0;
|
||||
|
||||
while (true) {
|
||||
previous = character;
|
||||
character = stylis.peek(); // &\f
|
||||
|
||||
if (previous === 38 && character === 12) {
|
||||
points[index] = 1;
|
||||
}
|
||||
|
||||
if (stylis.token(character)) {
|
||||
break;
|
||||
}
|
||||
|
||||
stylis.next();
|
||||
}
|
||||
|
||||
return stylis.slice(begin, stylis.position);
|
||||
};
|
||||
|
||||
var toRules = function toRules(parsed, points) {
|
||||
// pretend we've started with a comma
|
||||
var index = -1;
|
||||
var character = 44;
|
||||
|
||||
do {
|
||||
switch (stylis.token(character)) {
|
||||
case 0:
|
||||
// &\f
|
||||
if (character === 38 && stylis.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
|
||||
points[index] = 1;
|
||||
}
|
||||
|
||||
parsed[index] += identifierWithPointTracking(stylis.position - 1, points, index);
|
||||
break;
|
||||
|
||||
case 2:
|
||||
parsed[index] += stylis.delimit(character);
|
||||
break;
|
||||
|
||||
case 4:
|
||||
// comma
|
||||
if (character === 44) {
|
||||
// colon
|
||||
parsed[++index] = stylis.peek() === 58 ? '&\f' : '';
|
||||
points[index] = parsed[index].length;
|
||||
break;
|
||||
}
|
||||
|
||||
// fallthrough
|
||||
|
||||
default:
|
||||
parsed[index] += stylis.from(character);
|
||||
}
|
||||
} while (character = stylis.next());
|
||||
|
||||
return parsed;
|
||||
};
|
||||
|
||||
var getRules = function getRules(value, points) {
|
||||
return stylis.dealloc(toRules(stylis.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
|
||||
element.length < 1) {
|
||||
return;
|
||||
}
|
||||
|
||||
var value = element.value,
|
||||
parent = element.parent;
|
||||
var isImplicitRule = element.column === parent.column && element.line === parent.line;
|
||||
|
||||
while (parent.type !== 'rule') {
|
||||
parent = parent.parent;
|
||||
if (!parent) return;
|
||||
} // short-circuit for the simplest case
|
||||
|
||||
|
||||
if (element.props.length === 1 && value.charCodeAt(0) !== 58
|
||||
/* colon */
|
||||
&& !fixedElements.get(parent)) {
|
||||
return;
|
||||
} // 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"
|
||||
|
||||
|
||||
if (isImplicitRule) {
|
||||
return;
|
||||
}
|
||||
|
||||
fixedElements.set(element, true);
|
||||
var points = [];
|
||||
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;
|
||||
|
||||
if ( // charcode for l
|
||||
value.charCodeAt(0) === 108 && // charcode for b
|
||||
value.charCodeAt(2) === 98) {
|
||||
// this ignores label
|
||||
element["return"] = '';
|
||||
element.value = '';
|
||||
}
|
||||
}
|
||||
};
|
||||
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; // in nested rules comments become children of the "auto-inserted" rule and that's always the `element.parent`
|
||||
//
|
||||
// considering this input:
|
||||
// .a {
|
||||
// .b /* comm */ {}
|
||||
// color: hotpink;
|
||||
// }
|
||||
// we get output corresponding to this:
|
||||
// .a {
|
||||
// & {
|
||||
// /* comm */
|
||||
// color: hotpink;
|
||||
// }
|
||||
// .b {}
|
||||
// }
|
||||
|
||||
var commentContainer = isNested ? element.parent.children : // global rule at the root level
|
||||
children;
|
||||
|
||||
for (var i = commentContainer.length - 1; i >= 0; i--) {
|
||||
var node = commentContainer[i];
|
||||
|
||||
if (node.line < element.line) {
|
||||
break;
|
||||
} // 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:
|
||||
// .a {
|
||||
// /* comm */
|
||||
// .b {}
|
||||
// }
|
||||
//
|
||||
// but that is fine
|
||||
//
|
||||
// it would be the easiest to change the placement of the comment to be the first child of the rule:
|
||||
// .a {
|
||||
// .b { /* comm */ }
|
||||
// }
|
||||
// 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)) {
|
||||
return;
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
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])) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}; // 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) {
|
||||
element.type = '';
|
||||
element.value = '';
|
||||
element["return"] = '';
|
||||
element.children = '';
|
||||
element.props = '';
|
||||
};
|
||||
|
||||
var incorrectImportAlarm = function incorrectImportAlarm(element, index, children) {
|
||||
if (!isImportRule(element)) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (element.parent) {
|
||||
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.");
|
||||
nullifyElement(element);
|
||||
} else if (isPrependedWithRegularRules(index, children)) {
|
||||
console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules.");
|
||||
nullifyElement(element);
|
||||
}
|
||||
};
|
||||
|
||||
/* eslint-disable no-fallthrough */
|
||||
|
||||
function prefix(value, length) {
|
||||
switch (stylis.hash(value, length)) {
|
||||
// color-adjust
|
||||
case 5103:
|
||||
return stylis.WEBKIT + 'print-' + value + value;
|
||||
// animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
|
||||
|
||||
case 5737:
|
||||
case 4201:
|
||||
case 3177:
|
||||
case 3433:
|
||||
case 1641:
|
||||
case 4457:
|
||||
case 2921: // text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break
|
||||
|
||||
case 5572:
|
||||
case 6356:
|
||||
case 5844:
|
||||
case 3191:
|
||||
case 6645:
|
||||
case 3005: // mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite,
|
||||
|
||||
case 6391:
|
||||
case 5879:
|
||||
case 5623:
|
||||
case 6135:
|
||||
case 4599:
|
||||
case 4855: // background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width)
|
||||
|
||||
case 4215:
|
||||
case 6389:
|
||||
case 5109:
|
||||
case 5365:
|
||||
case 5621:
|
||||
case 3829:
|
||||
return stylis.WEBKIT + value + value;
|
||||
// appearance, user-select, transform, hyphens, text-size-adjust
|
||||
|
||||
case 5349:
|
||||
case 4246:
|
||||
case 4810:
|
||||
case 6968:
|
||||
case 2756:
|
||||
return stylis.WEBKIT + value + stylis.MOZ + value + stylis.MS + value + value;
|
||||
// flex, flex-direction
|
||||
|
||||
case 6828:
|
||||
case 4268:
|
||||
return stylis.WEBKIT + value + stylis.MS + value + value;
|
||||
// order
|
||||
|
||||
case 6165:
|
||||
return stylis.WEBKIT + value + stylis.MS + 'flex-' + value + value;
|
||||
// align-items
|
||||
|
||||
case 5187:
|
||||
return stylis.WEBKIT + value + stylis.replace(value, /(\w+).+(:[^]+)/, stylis.WEBKIT + 'box-$1$2' + stylis.MS + 'flex-$1$2') + value;
|
||||
// align-self
|
||||
|
||||
case 5443:
|
||||
return stylis.WEBKIT + value + stylis.MS + 'flex-item-' + stylis.replace(value, /flex-|-self/, '') + value;
|
||||
// align-content
|
||||
|
||||
case 4675:
|
||||
return stylis.WEBKIT + value + stylis.MS + 'flex-line-pack' + stylis.replace(value, /align-content|flex-|-self/, '') + value;
|
||||
// flex-shrink
|
||||
|
||||
case 5548:
|
||||
return stylis.WEBKIT + value + stylis.MS + stylis.replace(value, 'shrink', 'negative') + value;
|
||||
// flex-basis
|
||||
|
||||
case 5292:
|
||||
return stylis.WEBKIT + value + stylis.MS + stylis.replace(value, 'basis', 'preferred-size') + value;
|
||||
// flex-grow
|
||||
|
||||
case 6060:
|
||||
return stylis.WEBKIT + 'box-' + stylis.replace(value, '-grow', '') + stylis.WEBKIT + value + stylis.MS + stylis.replace(value, 'grow', 'positive') + value;
|
||||
// transition
|
||||
|
||||
case 4554:
|
||||
return stylis.WEBKIT + stylis.replace(value, /([^-])(transform)/g, '$1' + stylis.WEBKIT + '$2') + value;
|
||||
// cursor
|
||||
|
||||
case 6187:
|
||||
return stylis.replace(stylis.replace(stylis.replace(value, /(zoom-|grab)/, stylis.WEBKIT + '$1'), /(image-set)/, stylis.WEBKIT + '$1'), value, '') + value;
|
||||
// background, background-image
|
||||
|
||||
case 5495:
|
||||
case 3959:
|
||||
return stylis.replace(value, /(image-set\([^]*)/, stylis.WEBKIT + '$1' + '$`$1');
|
||||
// justify-content
|
||||
|
||||
case 4968:
|
||||
return stylis.replace(stylis.replace(value, /(.+:)(flex-)?(.*)/, stylis.WEBKIT + 'box-pack:$3' + stylis.MS + 'flex-pack:$3'), /s.+-b[^;]+/, 'justify') + stylis.WEBKIT + value + value;
|
||||
// (margin|padding)-inline-(start|end)
|
||||
|
||||
case 4095:
|
||||
case 3583:
|
||||
case 4068:
|
||||
case 2532:
|
||||
return stylis.replace(value, /(.+)-inline(.+)/, stylis.WEBKIT + '$1$2') + value;
|
||||
// (min|max)?(width|height|inline-size|block-size)
|
||||
|
||||
case 8116:
|
||||
case 7059:
|
||||
case 5753:
|
||||
case 5535:
|
||||
case 5445:
|
||||
case 5701:
|
||||
case 4933:
|
||||
case 4677:
|
||||
case 5533:
|
||||
case 5789:
|
||||
case 5021:
|
||||
case 4765:
|
||||
// stretch, max-content, min-content, fill-available
|
||||
if (stylis.strlen(value) - 1 - length > 6) switch (stylis.charat(value, length + 1)) {
|
||||
// (m)ax-content, (m)in-content
|
||||
case 109:
|
||||
// -
|
||||
if (stylis.charat(value, length + 4) !== 45) break;
|
||||
// (f)ill-available, (f)it-content
|
||||
|
||||
case 102:
|
||||
return stylis.replace(value, /(.+:)(.+)-([^]+)/, '$1' + stylis.WEBKIT + '$2-$3' + '$1' + stylis.MOZ + (stylis.charat(value, length + 3) == 108 ? '$3' : '$2-$3')) + value;
|
||||
// (s)tretch
|
||||
|
||||
case 115:
|
||||
return ~stylis.indexof(value, 'stretch') ? prefix(stylis.replace(value, 'stretch', 'fill-available'), length) + value : value;
|
||||
}
|
||||
break;
|
||||
// position: sticky
|
||||
|
||||
case 4949:
|
||||
// (s)ticky?
|
||||
if (stylis.charat(value, length + 1) !== 115) break;
|
||||
// display: (flex|inline-flex)
|
||||
|
||||
case 6444:
|
||||
switch (stylis.charat(value, stylis.strlen(value) - 3 - (~stylis.indexof(value, '!important') && 10))) {
|
||||
// stic(k)y
|
||||
case 107:
|
||||
return stylis.replace(value, ':', ':' + stylis.WEBKIT) + value;
|
||||
// (inline-)?fl(e)x
|
||||
|
||||
case 101:
|
||||
return stylis.replace(value, /(.+:)([^;!]+)(;|!.+)?/, '$1' + stylis.WEBKIT + (stylis.charat(value, 14) === 45 ? 'inline-' : '') + 'box$3' + '$1' + stylis.WEBKIT + '$2$3' + '$1' + stylis.MS + '$2box$3') + value;
|
||||
}
|
||||
|
||||
break;
|
||||
// writing-mode
|
||||
|
||||
case 5936:
|
||||
switch (stylis.charat(value, length + 11)) {
|
||||
// vertical-l(r)
|
||||
case 114:
|
||||
return stylis.WEBKIT + value + stylis.MS + stylis.replace(value, /[svh]\w+-[tblr]{2}/, 'tb') + value;
|
||||
// vertical-r(l)
|
||||
|
||||
case 108:
|
||||
return stylis.WEBKIT + value + stylis.MS + stylis.replace(value, /[svh]\w+-[tblr]{2}/, 'tb-rl') + value;
|
||||
// horizontal(-)tb
|
||||
|
||||
case 45:
|
||||
return stylis.WEBKIT + value + stylis.MS + stylis.replace(value, /[svh]\w+-[tblr]{2}/, 'lr') + value;
|
||||
}
|
||||
|
||||
return stylis.WEBKIT + value + stylis.MS + value + value;
|
||||
}
|
||||
|
||||
return value;
|
||||
}
|
||||
|
||||
var prefixer = function prefixer(element, index, children, callback) {
|
||||
if (element.length > -1) if (!element["return"]) switch (element.type) {
|
||||
case stylis.DECLARATION:
|
||||
element["return"] = prefix(element.value, element.length);
|
||||
break;
|
||||
|
||||
case stylis.KEYFRAMES:
|
||||
return stylis.serialize([stylis.copy(element, {
|
||||
value: stylis.replace(element.value, '@', '@' + stylis.WEBKIT)
|
||||
})], callback);
|
||||
|
||||
case stylis.RULESET:
|
||||
if (element.length) return stylis.combine(element.props, function (value) {
|
||||
switch (stylis.match(value, /(::plac\w+|:read-\w+)/)) {
|
||||
// :read-(only|write)
|
||||
case ':read-only':
|
||||
case ':read-write':
|
||||
return stylis.serialize([stylis.copy(element, {
|
||||
props: [stylis.replace(value, /:(read-\w+)/, ':' + stylis.MOZ + '$1')]
|
||||
})], callback);
|
||||
// :placeholder
|
||||
|
||||
case '::placeholder':
|
||||
return stylis.serialize([stylis.copy(element, {
|
||||
props: [stylis.replace(value, /:(plac\w+)/, ':' + stylis.WEBKIT + 'input-$1')]
|
||||
}), stylis.copy(element, {
|
||||
props: [stylis.replace(value, /:(plac\w+)/, ':' + stylis.MOZ + '$1')]
|
||||
}), stylis.copy(element, {
|
||||
props: [stylis.replace(value, /:(plac\w+)/, stylis.MS + 'input-$1')]
|
||||
})], callback);
|
||||
}
|
||||
|
||||
return '';
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
/* import type { StylisPlugin } from './types' */
|
||||
|
||||
/*
|
||||
export type Options = {
|
||||
nonce?: string,
|
||||
stylisPlugins?: StylisPlugin[],
|
||||
key: string,
|
||||
container?: HTMLElement,
|
||||
speedy?: boolean,
|
||||
prepend?: boolean,
|
||||
insertionPoint?: HTMLElement
|
||||
}
|
||||
*/
|
||||
|
||||
var getServerStylisCache = isBrowser ? undefined : weakMemoize__default["default"](function () {
|
||||
return memoize__default["default"](function () {
|
||||
var cache = {};
|
||||
return function (name) {
|
||||
return cache[name];
|
||||
};
|
||||
});
|
||||
});
|
||||
var defaultStylisPlugins = [prefixer];
|
||||
var getSourceMap;
|
||||
|
||||
{
|
||||
var sourceMapPattern = /\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g;
|
||||
|
||||
getSourceMap = function getSourceMap(styles
|
||||
/*: string */
|
||||
) {
|
||||
var matches = styles.match(sourceMapPattern);
|
||||
if (!matches) return;
|
||||
return matches[matches.length - 1];
|
||||
};
|
||||
}
|
||||
|
||||
var createCache = function
|
||||
/*: EmotionCache */
|
||||
createCache(options
|
||||
/*: Options */
|
||||
) {
|
||||
var key = options.key;
|
||||
|
||||
if (!key) {
|
||||
throw new Error("You have to configure `key` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.\n" + "If multiple caches share the same key they might \"fight\" for each other's style elements.");
|
||||
}
|
||||
|
||||
if (isBrowser && key === 'css') {
|
||||
var ssrStyles = document.querySelectorAll("style[data-emotion]:not([data-s])"); // get SSRed styles out of the way of React's hydration
|
||||
// document.head is a safe place to move them to(though note document.head is not necessarily the last place they will be)
|
||||
// note this very very intentionally targets all style elements regardless of the key to ensure
|
||||
// that creating a cache works inside of render of a React component
|
||||
|
||||
Array.prototype.forEach.call(ssrStyles, function (node
|
||||
/*: HTMLStyleElement */
|
||||
) {
|
||||
// we want to only move elements which have a space in the data-emotion attribute value
|
||||
// because that indicates that it is an Emotion 11 server-side rendered style elements
|
||||
// while we will already ignore Emotion 11 client-side inserted styles because of the :not([data-s]) part in the selector
|
||||
// Emotion 10 client-side inserted styles did not have data-s (but importantly did not have a space in their data-emotion attributes)
|
||||
// so checking for the space ensures that loading Emotion 11 after Emotion 10 has inserted some styles
|
||||
// will not result in the Emotion 10 styles being destroyed
|
||||
var dataEmotionAttribute = node.getAttribute('data-emotion');
|
||||
|
||||
if (dataEmotionAttribute.indexOf(' ') === -1) {
|
||||
return;
|
||||
}
|
||||
|
||||
document.head.appendChild(node);
|
||||
node.setAttribute('data-s', '');
|
||||
});
|
||||
}
|
||||
|
||||
var stylisPlugins = options.stylisPlugins || defaultStylisPlugins;
|
||||
|
||||
{
|
||||
if (/[^a-z-]/.test(key)) {
|
||||
throw new Error("Emotion key must only contain lower case alphabetical characters and - but \"" + key + "\" was passed");
|
||||
}
|
||||
}
|
||||
|
||||
var inserted = {};
|
||||
var container;
|
||||
/* : Node */
|
||||
|
||||
var nodesToHydrate = [];
|
||||
|
||||
if (isBrowser) {
|
||||
container = options.container || document.head;
|
||||
Array.prototype.forEach.call( // this means we will ignore elements which don't have a space in them which
|
||||
// means that the style elements we're looking at are only Emotion 11 server-rendered style elements
|
||||
document.querySelectorAll("style[data-emotion^=\"" + key + " \"]"), function (node
|
||||
/*: HTMLStyleElement */
|
||||
) {
|
||||
var attrib = node.getAttribute("data-emotion").split(' ');
|
||||
|
||||
for (var i = 1; i < attrib.length; i++) {
|
||||
inserted[attrib[i]] = true;
|
||||
}
|
||||
|
||||
nodesToHydrate.push(node);
|
||||
});
|
||||
}
|
||||
|
||||
var _insert;
|
||||
/*: (
|
||||
selector: string,
|
||||
serialized: SerializedStyles,
|
||||
sheet: StyleSheet,
|
||||
shouldCache: boolean
|
||||
) => string | void */
|
||||
|
||||
|
||||
var omnipresentPlugins = [compat, removeLabel];
|
||||
|
||||
{
|
||||
omnipresentPlugins.push(createUnsafeSelectorsAlarm({
|
||||
get compat() {
|
||||
return cache.compat;
|
||||
}
|
||||
|
||||
}), incorrectImportAlarm);
|
||||
}
|
||||
|
||||
if (isBrowser) {
|
||||
var currentSheet;
|
||||
var finalizingPlugins = [stylis.stringify, function (element) {
|
||||
if (!element.root) {
|
||||
if (element["return"]) {
|
||||
currentSheet.insert(element["return"]);
|
||||
} else if (element.value && element.type !== stylis.COMMENT) {
|
||||
// insert empty rule in non-production environments
|
||||
// so @emotion/jest can grab `key` from the (JS)DOM for caches without any rules inserted yet
|
||||
currentSheet.insert(element.value + "{}");
|
||||
}
|
||||
}
|
||||
} ];
|
||||
var serializer = stylis.middleware(omnipresentPlugins.concat(stylisPlugins, finalizingPlugins));
|
||||
|
||||
var stylis$1 = function stylis$1(styles) {
|
||||
return stylis.serialize(stylis.compile(styles), serializer);
|
||||
};
|
||||
|
||||
_insert = function
|
||||
/*: void */
|
||||
insert(selector
|
||||
/*: string */
|
||||
, serialized
|
||||
/*: SerializedStyles */
|
||||
, sheet
|
||||
/*: StyleSheet */
|
||||
, shouldCache
|
||||
/*: boolean */
|
||||
) {
|
||||
currentSheet = sheet;
|
||||
|
||||
{
|
||||
var sourceMap = getSourceMap(serialized.styles);
|
||||
|
||||
if (sourceMap) {
|
||||
currentSheet = {
|
||||
insert: function insert(rule
|
||||
/*: string */
|
||||
) {
|
||||
sheet.insert(rule + sourceMap);
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
stylis$1(selector ? selector + "{" + serialized.styles + "}" : serialized.styles);
|
||||
|
||||
if (shouldCache) {
|
||||
cache.inserted[serialized.name] = true;
|
||||
}
|
||||
};
|
||||
} else {
|
||||
var _finalizingPlugins = [stylis.stringify];
|
||||
|
||||
var _serializer = stylis.middleware(omnipresentPlugins.concat(stylisPlugins, _finalizingPlugins));
|
||||
|
||||
var _stylis = function _stylis(styles) {
|
||||
return stylis.serialize(stylis.compile(styles), _serializer);
|
||||
};
|
||||
|
||||
var serverStylisCache = getServerStylisCache(stylisPlugins)(key);
|
||||
|
||||
var getRules = function
|
||||
/*: string */
|
||||
getRules(selector
|
||||
/*: string */
|
||||
, serialized
|
||||
/*: SerializedStyles */
|
||||
) {
|
||||
var name = serialized.name;
|
||||
|
||||
if (serverStylisCache[name] === undefined) {
|
||||
serverStylisCache[name] = _stylis(selector ? selector + "{" + serialized.styles + "}" : serialized.styles);
|
||||
}
|
||||
|
||||
return serverStylisCache[name];
|
||||
};
|
||||
|
||||
_insert = function
|
||||
/*: string | void */
|
||||
_insert(selector
|
||||
/*: string */
|
||||
, serialized
|
||||
/*: SerializedStyles */
|
||||
, sheet
|
||||
/*: StyleSheet */
|
||||
, shouldCache
|
||||
/*: boolean */
|
||||
) {
|
||||
var name = serialized.name;
|
||||
var rules = getRules(selector, serialized);
|
||||
|
||||
if (cache.compat === undefined) {
|
||||
// in regular mode, we don't set the styles on the inserted cache
|
||||
// since we don't need to and that would be wasting memory
|
||||
// we return them so that they are rendered in a style tag
|
||||
if (shouldCache) {
|
||||
cache.inserted[name] = true;
|
||||
}
|
||||
|
||||
{
|
||||
var sourceMap = getSourceMap(serialized.styles);
|
||||
|
||||
if (sourceMap) {
|
||||
return rules + sourceMap;
|
||||
}
|
||||
}
|
||||
|
||||
return rules;
|
||||
} else {
|
||||
// in compat mode, we put the styles on the inserted cache so
|
||||
// that emotion-server can pull out the styles
|
||||
// except when we don't want to cache it which was in Global but now
|
||||
// is nowhere but we don't want to do a major right now
|
||||
// and just in case we're going to leave the case here
|
||||
// it's also not affecting client side bundle size
|
||||
// so it's really not a big deal
|
||||
if (shouldCache) {
|
||||
cache.inserted[name] = rules;
|
||||
} else {
|
||||
return rules;
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
var cache
|
||||
/*: EmotionCache */
|
||||
= {
|
||||
key: key,
|
||||
sheet: new sheet.StyleSheet({
|
||||
key: key,
|
||||
container: container,
|
||||
nonce: options.nonce,
|
||||
speedy: options.speedy,
|
||||
prepend: options.prepend,
|
||||
insertionPoint: options.insertionPoint
|
||||
}),
|
||||
nonce: options.nonce,
|
||||
inserted: inserted,
|
||||
registered: {},
|
||||
insert: _insert
|
||||
};
|
||||
cache.sheet.hydrate(nodesToHydrate);
|
||||
return cache;
|
||||
};
|
||||
|
||||
exports["default"] = createCache;
|
||||
2
backend/frontend/node_modules/@emotion/cache/dist/emotion-cache.development.cjs.mjs
generated
vendored
Normal file
2
backend/frontend/node_modules/@emotion/cache/dist/emotion-cache.development.cjs.mjs
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import "./emotion-cache.development.cjs.js";
|
||||
export { _default as default } from "./emotion-cache.development.cjs.default.js";
|
||||
1
backend/frontend/node_modules/@emotion/cache/dist/emotion-cache.development.edge-light.cjs.default.js
generated
vendored
Normal file
1
backend/frontend/node_modules/@emotion/cache/dist/emotion-cache.development.edge-light.cjs.default.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
exports._default = require("./emotion-cache.development.edge-light.cjs.js").default;
|
||||
638
backend/frontend/node_modules/@emotion/cache/dist/emotion-cache.development.edge-light.cjs.js
generated
vendored
Normal file
638
backend/frontend/node_modules/@emotion/cache/dist/emotion-cache.development.edge-light.cjs.js
generated
vendored
Normal file
@@ -0,0 +1,638 @@
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
|
||||
var sheet = require('@emotion/sheet');
|
||||
var stylis = require('stylis');
|
||||
var weakMemoize = require('@emotion/weak-memoize');
|
||||
var memoize = require('@emotion/memoize');
|
||||
|
||||
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
||||
|
||||
var weakMemoize__default = /*#__PURE__*/_interopDefault(weakMemoize);
|
||||
var memoize__default = /*#__PURE__*/_interopDefault(memoize);
|
||||
|
||||
var identifierWithPointTracking = function identifierWithPointTracking(begin, points, index) {
|
||||
var previous = 0;
|
||||
var character = 0;
|
||||
|
||||
while (true) {
|
||||
previous = character;
|
||||
character = stylis.peek(); // &\f
|
||||
|
||||
if (previous === 38 && character === 12) {
|
||||
points[index] = 1;
|
||||
}
|
||||
|
||||
if (stylis.token(character)) {
|
||||
break;
|
||||
}
|
||||
|
||||
stylis.next();
|
||||
}
|
||||
|
||||
return stylis.slice(begin, stylis.position);
|
||||
};
|
||||
|
||||
var toRules = function toRules(parsed, points) {
|
||||
// pretend we've started with a comma
|
||||
var index = -1;
|
||||
var character = 44;
|
||||
|
||||
do {
|
||||
switch (stylis.token(character)) {
|
||||
case 0:
|
||||
// &\f
|
||||
if (character === 38 && stylis.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
|
||||
points[index] = 1;
|
||||
}
|
||||
|
||||
parsed[index] += identifierWithPointTracking(stylis.position - 1, points, index);
|
||||
break;
|
||||
|
||||
case 2:
|
||||
parsed[index] += stylis.delimit(character);
|
||||
break;
|
||||
|
||||
case 4:
|
||||
// comma
|
||||
if (character === 44) {
|
||||
// colon
|
||||
parsed[++index] = stylis.peek() === 58 ? '&\f' : '';
|
||||
points[index] = parsed[index].length;
|
||||
break;
|
||||
}
|
||||
|
||||
// fallthrough
|
||||
|
||||
default:
|
||||
parsed[index] += stylis.from(character);
|
||||
}
|
||||
} while (character = stylis.next());
|
||||
|
||||
return parsed;
|
||||
};
|
||||
|
||||
var getRules = function getRules(value, points) {
|
||||
return stylis.dealloc(toRules(stylis.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
|
||||
element.length < 1) {
|
||||
return;
|
||||
}
|
||||
|
||||
var value = element.value,
|
||||
parent = element.parent;
|
||||
var isImplicitRule = element.column === parent.column && element.line === parent.line;
|
||||
|
||||
while (parent.type !== 'rule') {
|
||||
parent = parent.parent;
|
||||
if (!parent) return;
|
||||
} // short-circuit for the simplest case
|
||||
|
||||
|
||||
if (element.props.length === 1 && value.charCodeAt(0) !== 58
|
||||
/* colon */
|
||||
&& !fixedElements.get(parent)) {
|
||||
return;
|
||||
} // 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"
|
||||
|
||||
|
||||
if (isImplicitRule) {
|
||||
return;
|
||||
}
|
||||
|
||||
fixedElements.set(element, true);
|
||||
var points = [];
|
||||
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;
|
||||
|
||||
if ( // charcode for l
|
||||
value.charCodeAt(0) === 108 && // charcode for b
|
||||
value.charCodeAt(2) === 98) {
|
||||
// this ignores label
|
||||
element["return"] = '';
|
||||
element.value = '';
|
||||
}
|
||||
}
|
||||
};
|
||||
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; // in nested rules comments become children of the "auto-inserted" rule and that's always the `element.parent`
|
||||
//
|
||||
// considering this input:
|
||||
// .a {
|
||||
// .b /* comm */ {}
|
||||
// color: hotpink;
|
||||
// }
|
||||
// we get output corresponding to this:
|
||||
// .a {
|
||||
// & {
|
||||
// /* comm */
|
||||
// color: hotpink;
|
||||
// }
|
||||
// .b {}
|
||||
// }
|
||||
|
||||
var commentContainer = isNested ? element.parent.children : // global rule at the root level
|
||||
children;
|
||||
|
||||
for (var i = commentContainer.length - 1; i >= 0; i--) {
|
||||
var node = commentContainer[i];
|
||||
|
||||
if (node.line < element.line) {
|
||||
break;
|
||||
} // 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:
|
||||
// .a {
|
||||
// /* comm */
|
||||
// .b {}
|
||||
// }
|
||||
//
|
||||
// but that is fine
|
||||
//
|
||||
// it would be the easiest to change the placement of the comment to be the first child of the rule:
|
||||
// .a {
|
||||
// .b { /* comm */ }
|
||||
// }
|
||||
// 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)) {
|
||||
return;
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
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])) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}; // 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) {
|
||||
element.type = '';
|
||||
element.value = '';
|
||||
element["return"] = '';
|
||||
element.children = '';
|
||||
element.props = '';
|
||||
};
|
||||
|
||||
var incorrectImportAlarm = function incorrectImportAlarm(element, index, children) {
|
||||
if (!isImportRule(element)) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (element.parent) {
|
||||
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.");
|
||||
nullifyElement(element);
|
||||
} else if (isPrependedWithRegularRules(index, children)) {
|
||||
console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules.");
|
||||
nullifyElement(element);
|
||||
}
|
||||
};
|
||||
|
||||
/* eslint-disable no-fallthrough */
|
||||
|
||||
function prefix(value, length) {
|
||||
switch (stylis.hash(value, length)) {
|
||||
// color-adjust
|
||||
case 5103:
|
||||
return stylis.WEBKIT + 'print-' + value + value;
|
||||
// animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
|
||||
|
||||
case 5737:
|
||||
case 4201:
|
||||
case 3177:
|
||||
case 3433:
|
||||
case 1641:
|
||||
case 4457:
|
||||
case 2921: // text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break
|
||||
|
||||
case 5572:
|
||||
case 6356:
|
||||
case 5844:
|
||||
case 3191:
|
||||
case 6645:
|
||||
case 3005: // mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite,
|
||||
|
||||
case 6391:
|
||||
case 5879:
|
||||
case 5623:
|
||||
case 6135:
|
||||
case 4599:
|
||||
case 4855: // background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width)
|
||||
|
||||
case 4215:
|
||||
case 6389:
|
||||
case 5109:
|
||||
case 5365:
|
||||
case 5621:
|
||||
case 3829:
|
||||
return stylis.WEBKIT + value + value;
|
||||
// appearance, user-select, transform, hyphens, text-size-adjust
|
||||
|
||||
case 5349:
|
||||
case 4246:
|
||||
case 4810:
|
||||
case 6968:
|
||||
case 2756:
|
||||
return stylis.WEBKIT + value + stylis.MOZ + value + stylis.MS + value + value;
|
||||
// flex, flex-direction
|
||||
|
||||
case 6828:
|
||||
case 4268:
|
||||
return stylis.WEBKIT + value + stylis.MS + value + value;
|
||||
// order
|
||||
|
||||
case 6165:
|
||||
return stylis.WEBKIT + value + stylis.MS + 'flex-' + value + value;
|
||||
// align-items
|
||||
|
||||
case 5187:
|
||||
return stylis.WEBKIT + value + stylis.replace(value, /(\w+).+(:[^]+)/, stylis.WEBKIT + 'box-$1$2' + stylis.MS + 'flex-$1$2') + value;
|
||||
// align-self
|
||||
|
||||
case 5443:
|
||||
return stylis.WEBKIT + value + stylis.MS + 'flex-item-' + stylis.replace(value, /flex-|-self/, '') + value;
|
||||
// align-content
|
||||
|
||||
case 4675:
|
||||
return stylis.WEBKIT + value + stylis.MS + 'flex-line-pack' + stylis.replace(value, /align-content|flex-|-self/, '') + value;
|
||||
// flex-shrink
|
||||
|
||||
case 5548:
|
||||
return stylis.WEBKIT + value + stylis.MS + stylis.replace(value, 'shrink', 'negative') + value;
|
||||
// flex-basis
|
||||
|
||||
case 5292:
|
||||
return stylis.WEBKIT + value + stylis.MS + stylis.replace(value, 'basis', 'preferred-size') + value;
|
||||
// flex-grow
|
||||
|
||||
case 6060:
|
||||
return stylis.WEBKIT + 'box-' + stylis.replace(value, '-grow', '') + stylis.WEBKIT + value + stylis.MS + stylis.replace(value, 'grow', 'positive') + value;
|
||||
// transition
|
||||
|
||||
case 4554:
|
||||
return stylis.WEBKIT + stylis.replace(value, /([^-])(transform)/g, '$1' + stylis.WEBKIT + '$2') + value;
|
||||
// cursor
|
||||
|
||||
case 6187:
|
||||
return stylis.replace(stylis.replace(stylis.replace(value, /(zoom-|grab)/, stylis.WEBKIT + '$1'), /(image-set)/, stylis.WEBKIT + '$1'), value, '') + value;
|
||||
// background, background-image
|
||||
|
||||
case 5495:
|
||||
case 3959:
|
||||
return stylis.replace(value, /(image-set\([^]*)/, stylis.WEBKIT + '$1' + '$`$1');
|
||||
// justify-content
|
||||
|
||||
case 4968:
|
||||
return stylis.replace(stylis.replace(value, /(.+:)(flex-)?(.*)/, stylis.WEBKIT + 'box-pack:$3' + stylis.MS + 'flex-pack:$3'), /s.+-b[^;]+/, 'justify') + stylis.WEBKIT + value + value;
|
||||
// (margin|padding)-inline-(start|end)
|
||||
|
||||
case 4095:
|
||||
case 3583:
|
||||
case 4068:
|
||||
case 2532:
|
||||
return stylis.replace(value, /(.+)-inline(.+)/, stylis.WEBKIT + '$1$2') + value;
|
||||
// (min|max)?(width|height|inline-size|block-size)
|
||||
|
||||
case 8116:
|
||||
case 7059:
|
||||
case 5753:
|
||||
case 5535:
|
||||
case 5445:
|
||||
case 5701:
|
||||
case 4933:
|
||||
case 4677:
|
||||
case 5533:
|
||||
case 5789:
|
||||
case 5021:
|
||||
case 4765:
|
||||
// stretch, max-content, min-content, fill-available
|
||||
if (stylis.strlen(value) - 1 - length > 6) switch (stylis.charat(value, length + 1)) {
|
||||
// (m)ax-content, (m)in-content
|
||||
case 109:
|
||||
// -
|
||||
if (stylis.charat(value, length + 4) !== 45) break;
|
||||
// (f)ill-available, (f)it-content
|
||||
|
||||
case 102:
|
||||
return stylis.replace(value, /(.+:)(.+)-([^]+)/, '$1' + stylis.WEBKIT + '$2-$3' + '$1' + stylis.MOZ + (stylis.charat(value, length + 3) == 108 ? '$3' : '$2-$3')) + value;
|
||||
// (s)tretch
|
||||
|
||||
case 115:
|
||||
return ~stylis.indexof(value, 'stretch') ? prefix(stylis.replace(value, 'stretch', 'fill-available'), length) + value : value;
|
||||
}
|
||||
break;
|
||||
// position: sticky
|
||||
|
||||
case 4949:
|
||||
// (s)ticky?
|
||||
if (stylis.charat(value, length + 1) !== 115) break;
|
||||
// display: (flex|inline-flex)
|
||||
|
||||
case 6444:
|
||||
switch (stylis.charat(value, stylis.strlen(value) - 3 - (~stylis.indexof(value, '!important') && 10))) {
|
||||
// stic(k)y
|
||||
case 107:
|
||||
return stylis.replace(value, ':', ':' + stylis.WEBKIT) + value;
|
||||
// (inline-)?fl(e)x
|
||||
|
||||
case 101:
|
||||
return stylis.replace(value, /(.+:)([^;!]+)(;|!.+)?/, '$1' + stylis.WEBKIT + (stylis.charat(value, 14) === 45 ? 'inline-' : '') + 'box$3' + '$1' + stylis.WEBKIT + '$2$3' + '$1' + stylis.MS + '$2box$3') + value;
|
||||
}
|
||||
|
||||
break;
|
||||
// writing-mode
|
||||
|
||||
case 5936:
|
||||
switch (stylis.charat(value, length + 11)) {
|
||||
// vertical-l(r)
|
||||
case 114:
|
||||
return stylis.WEBKIT + value + stylis.MS + stylis.replace(value, /[svh]\w+-[tblr]{2}/, 'tb') + value;
|
||||
// vertical-r(l)
|
||||
|
||||
case 108:
|
||||
return stylis.WEBKIT + value + stylis.MS + stylis.replace(value, /[svh]\w+-[tblr]{2}/, 'tb-rl') + value;
|
||||
// horizontal(-)tb
|
||||
|
||||
case 45:
|
||||
return stylis.WEBKIT + value + stylis.MS + stylis.replace(value, /[svh]\w+-[tblr]{2}/, 'lr') + value;
|
||||
}
|
||||
|
||||
return stylis.WEBKIT + value + stylis.MS + value + value;
|
||||
}
|
||||
|
||||
return value;
|
||||
}
|
||||
|
||||
var prefixer = function prefixer(element, index, children, callback) {
|
||||
if (element.length > -1) if (!element["return"]) switch (element.type) {
|
||||
case stylis.DECLARATION:
|
||||
element["return"] = prefix(element.value, element.length);
|
||||
break;
|
||||
|
||||
case stylis.KEYFRAMES:
|
||||
return stylis.serialize([stylis.copy(element, {
|
||||
value: stylis.replace(element.value, '@', '@' + stylis.WEBKIT)
|
||||
})], callback);
|
||||
|
||||
case stylis.RULESET:
|
||||
if (element.length) return stylis.combine(element.props, function (value) {
|
||||
switch (stylis.match(value, /(::plac\w+|:read-\w+)/)) {
|
||||
// :read-(only|write)
|
||||
case ':read-only':
|
||||
case ':read-write':
|
||||
return stylis.serialize([stylis.copy(element, {
|
||||
props: [stylis.replace(value, /:(read-\w+)/, ':' + stylis.MOZ + '$1')]
|
||||
})], callback);
|
||||
// :placeholder
|
||||
|
||||
case '::placeholder':
|
||||
return stylis.serialize([stylis.copy(element, {
|
||||
props: [stylis.replace(value, /:(plac\w+)/, ':' + stylis.WEBKIT + 'input-$1')]
|
||||
}), stylis.copy(element, {
|
||||
props: [stylis.replace(value, /:(plac\w+)/, ':' + stylis.MOZ + '$1')]
|
||||
}), stylis.copy(element, {
|
||||
props: [stylis.replace(value, /:(plac\w+)/, stylis.MS + 'input-$1')]
|
||||
})], callback);
|
||||
}
|
||||
|
||||
return '';
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
/* import type { StylisPlugin } from './types' */
|
||||
|
||||
/*
|
||||
export type Options = {
|
||||
nonce?: string,
|
||||
stylisPlugins?: StylisPlugin[],
|
||||
key: string,
|
||||
container?: HTMLElement,
|
||||
speedy?: boolean,
|
||||
prepend?: boolean,
|
||||
insertionPoint?: HTMLElement
|
||||
}
|
||||
*/
|
||||
|
||||
var getServerStylisCache = weakMemoize__default["default"](function () {
|
||||
return memoize__default["default"](function () {
|
||||
var cache = {};
|
||||
return function (name) {
|
||||
return cache[name];
|
||||
};
|
||||
});
|
||||
});
|
||||
var defaultStylisPlugins = [prefixer];
|
||||
var getSourceMap;
|
||||
|
||||
{
|
||||
var sourceMapPattern = /\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g;
|
||||
|
||||
getSourceMap = function getSourceMap(styles
|
||||
/*: string */
|
||||
) {
|
||||
var matches = styles.match(sourceMapPattern);
|
||||
if (!matches) return;
|
||||
return matches[matches.length - 1];
|
||||
};
|
||||
}
|
||||
|
||||
var createCache = function
|
||||
/*: EmotionCache */
|
||||
createCache(options
|
||||
/*: Options */
|
||||
) {
|
||||
var key = options.key;
|
||||
|
||||
if (!key) {
|
||||
throw new Error("You have to configure `key` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.\n" + "If multiple caches share the same key they might \"fight\" for each other's style elements.");
|
||||
}
|
||||
|
||||
var stylisPlugins = options.stylisPlugins || defaultStylisPlugins;
|
||||
|
||||
{
|
||||
if (/[^a-z-]/.test(key)) {
|
||||
throw new Error("Emotion key must only contain lower case alphabetical characters and - but \"" + key + "\" was passed");
|
||||
}
|
||||
}
|
||||
|
||||
var inserted = {};
|
||||
var container;
|
||||
/* : Node */
|
||||
|
||||
var nodesToHydrate = [];
|
||||
|
||||
var _insert;
|
||||
/*: (
|
||||
selector: string,
|
||||
serialized: SerializedStyles,
|
||||
sheet: StyleSheet,
|
||||
shouldCache: boolean
|
||||
) => string | void */
|
||||
|
||||
|
||||
var omnipresentPlugins = [compat, removeLabel];
|
||||
|
||||
{
|
||||
omnipresentPlugins.push(createUnsafeSelectorsAlarm({
|
||||
get compat() {
|
||||
return cache.compat;
|
||||
}
|
||||
|
||||
}), incorrectImportAlarm);
|
||||
}
|
||||
|
||||
{
|
||||
var _finalizingPlugins = [stylis.stringify];
|
||||
|
||||
var _serializer = stylis.middleware(omnipresentPlugins.concat(stylisPlugins, _finalizingPlugins));
|
||||
|
||||
var _stylis = function _stylis(styles) {
|
||||
return stylis.serialize(stylis.compile(styles), _serializer);
|
||||
};
|
||||
|
||||
var serverStylisCache = getServerStylisCache(stylisPlugins)(key);
|
||||
|
||||
var getRules = function
|
||||
/*: string */
|
||||
getRules(selector
|
||||
/*: string */
|
||||
, serialized
|
||||
/*: SerializedStyles */
|
||||
) {
|
||||
var name = serialized.name;
|
||||
|
||||
if (serverStylisCache[name] === undefined) {
|
||||
serverStylisCache[name] = _stylis(selector ? selector + "{" + serialized.styles + "}" : serialized.styles);
|
||||
}
|
||||
|
||||
return serverStylisCache[name];
|
||||
};
|
||||
|
||||
_insert = function
|
||||
/*: string | void */
|
||||
_insert(selector
|
||||
/*: string */
|
||||
, serialized
|
||||
/*: SerializedStyles */
|
||||
, sheet
|
||||
/*: StyleSheet */
|
||||
, shouldCache
|
||||
/*: boolean */
|
||||
) {
|
||||
var name = serialized.name;
|
||||
var rules = getRules(selector, serialized);
|
||||
|
||||
if (cache.compat === undefined) {
|
||||
// in regular mode, we don't set the styles on the inserted cache
|
||||
// since we don't need to and that would be wasting memory
|
||||
// we return them so that they are rendered in a style tag
|
||||
if (shouldCache) {
|
||||
cache.inserted[name] = true;
|
||||
}
|
||||
|
||||
{
|
||||
var sourceMap = getSourceMap(serialized.styles);
|
||||
|
||||
if (sourceMap) {
|
||||
return rules + sourceMap;
|
||||
}
|
||||
}
|
||||
|
||||
return rules;
|
||||
} else {
|
||||
// in compat mode, we put the styles on the inserted cache so
|
||||
// that emotion-server can pull out the styles
|
||||
// except when we don't want to cache it which was in Global but now
|
||||
// is nowhere but we don't want to do a major right now
|
||||
// and just in case we're going to leave the case here
|
||||
// it's also not affecting client side bundle size
|
||||
// so it's really not a big deal
|
||||
if (shouldCache) {
|
||||
cache.inserted[name] = rules;
|
||||
} else {
|
||||
return rules;
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
var cache
|
||||
/*: EmotionCache */
|
||||
= {
|
||||
key: key,
|
||||
sheet: new sheet.StyleSheet({
|
||||
key: key,
|
||||
container: container,
|
||||
nonce: options.nonce,
|
||||
speedy: options.speedy,
|
||||
prepend: options.prepend,
|
||||
insertionPoint: options.insertionPoint
|
||||
}),
|
||||
nonce: options.nonce,
|
||||
inserted: inserted,
|
||||
registered: {},
|
||||
insert: _insert
|
||||
};
|
||||
cache.sheet.hydrate(nodesToHydrate);
|
||||
return cache;
|
||||
};
|
||||
|
||||
exports["default"] = createCache;
|
||||
2
backend/frontend/node_modules/@emotion/cache/dist/emotion-cache.development.edge-light.cjs.mjs
generated
vendored
Normal file
2
backend/frontend/node_modules/@emotion/cache/dist/emotion-cache.development.edge-light.cjs.mjs
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import "./emotion-cache.development.edge-light.cjs.js";
|
||||
export { _default as default } from "./emotion-cache.development.edge-light.cjs.default.js";
|
||||
629
backend/frontend/node_modules/@emotion/cache/dist/emotion-cache.development.edge-light.esm.js
generated
vendored
Normal file
629
backend/frontend/node_modules/@emotion/cache/dist/emotion-cache.development.edge-light.esm.js
generated
vendored
Normal file
@@ -0,0 +1,629 @@
|
||||
import { StyleSheet } from '@emotion/sheet';
|
||||
import { dealloc, alloc, next, token, from, peek, delimit, slice, position, RULESET, combine, match, serialize, copy, replace, WEBKIT, MOZ, MS, KEYFRAMES, DECLARATION, hash, charat, strlen, indexof, middleware, stringify, compile } from 'stylis';
|
||||
import weakMemoize from '@emotion/weak-memoize';
|
||||
import memoize from '@emotion/memoize';
|
||||
|
||||
var identifierWithPointTracking = function identifierWithPointTracking(begin, points, index) {
|
||||
var previous = 0;
|
||||
var character = 0;
|
||||
|
||||
while (true) {
|
||||
previous = character;
|
||||
character = peek(); // &\f
|
||||
|
||||
if (previous === 38 && character === 12) {
|
||||
points[index] = 1;
|
||||
}
|
||||
|
||||
if (token(character)) {
|
||||
break;
|
||||
}
|
||||
|
||||
next();
|
||||
}
|
||||
|
||||
return slice(begin, position);
|
||||
};
|
||||
|
||||
var toRules = function toRules(parsed, points) {
|
||||
// pretend we've started with a comma
|
||||
var index = -1;
|
||||
var character = 44;
|
||||
|
||||
do {
|
||||
switch (token(character)) {
|
||||
case 0:
|
||||
// &\f
|
||||
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
|
||||
points[index] = 1;
|
||||
}
|
||||
|
||||
parsed[index] += identifierWithPointTracking(position - 1, points, index);
|
||||
break;
|
||||
|
||||
case 2:
|
||||
parsed[index] += delimit(character);
|
||||
break;
|
||||
|
||||
case 4:
|
||||
// comma
|
||||
if (character === 44) {
|
||||
// colon
|
||||
parsed[++index] = peek() === 58 ? '&\f' : '';
|
||||
points[index] = parsed[index].length;
|
||||
break;
|
||||
}
|
||||
|
||||
// fallthrough
|
||||
|
||||
default:
|
||||
parsed[index] += from(character);
|
||||
}
|
||||
} while (character = next());
|
||||
|
||||
return parsed;
|
||||
};
|
||||
|
||||
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
|
||||
element.length < 1) {
|
||||
return;
|
||||
}
|
||||
|
||||
var value = element.value,
|
||||
parent = element.parent;
|
||||
var isImplicitRule = element.column === parent.column && element.line === parent.line;
|
||||
|
||||
while (parent.type !== 'rule') {
|
||||
parent = parent.parent;
|
||||
if (!parent) return;
|
||||
} // short-circuit for the simplest case
|
||||
|
||||
|
||||
if (element.props.length === 1 && value.charCodeAt(0) !== 58
|
||||
/* colon */
|
||||
&& !fixedElements.get(parent)) {
|
||||
return;
|
||||
} // 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"
|
||||
|
||||
|
||||
if (isImplicitRule) {
|
||||
return;
|
||||
}
|
||||
|
||||
fixedElements.set(element, true);
|
||||
var points = [];
|
||||
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;
|
||||
|
||||
if ( // charcode for l
|
||||
value.charCodeAt(0) === 108 && // charcode for b
|
||||
value.charCodeAt(2) === 98) {
|
||||
// this ignores label
|
||||
element["return"] = '';
|
||||
element.value = '';
|
||||
}
|
||||
}
|
||||
};
|
||||
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; // in nested rules comments become children of the "auto-inserted" rule and that's always the `element.parent`
|
||||
//
|
||||
// considering this input:
|
||||
// .a {
|
||||
// .b /* comm */ {}
|
||||
// color: hotpink;
|
||||
// }
|
||||
// we get output corresponding to this:
|
||||
// .a {
|
||||
// & {
|
||||
// /* comm */
|
||||
// color: hotpink;
|
||||
// }
|
||||
// .b {}
|
||||
// }
|
||||
|
||||
var commentContainer = isNested ? element.parent.children : // global rule at the root level
|
||||
children;
|
||||
|
||||
for (var i = commentContainer.length - 1; i >= 0; i--) {
|
||||
var node = commentContainer[i];
|
||||
|
||||
if (node.line < element.line) {
|
||||
break;
|
||||
} // 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:
|
||||
// .a {
|
||||
// /* comm */
|
||||
// .b {}
|
||||
// }
|
||||
//
|
||||
// but that is fine
|
||||
//
|
||||
// it would be the easiest to change the placement of the comment to be the first child of the rule:
|
||||
// .a {
|
||||
// .b { /* comm */ }
|
||||
// }
|
||||
// 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)) {
|
||||
return;
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
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])) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}; // 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) {
|
||||
element.type = '';
|
||||
element.value = '';
|
||||
element["return"] = '';
|
||||
element.children = '';
|
||||
element.props = '';
|
||||
};
|
||||
|
||||
var incorrectImportAlarm = function incorrectImportAlarm(element, index, children) {
|
||||
if (!isImportRule(element)) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (element.parent) {
|
||||
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.");
|
||||
nullifyElement(element);
|
||||
} else if (isPrependedWithRegularRules(index, children)) {
|
||||
console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules.");
|
||||
nullifyElement(element);
|
||||
}
|
||||
};
|
||||
|
||||
/* eslint-disable no-fallthrough */
|
||||
|
||||
function prefix(value, length) {
|
||||
switch (hash(value, length)) {
|
||||
// color-adjust
|
||||
case 5103:
|
||||
return WEBKIT + 'print-' + value + value;
|
||||
// animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
|
||||
|
||||
case 5737:
|
||||
case 4201:
|
||||
case 3177:
|
||||
case 3433:
|
||||
case 1641:
|
||||
case 4457:
|
||||
case 2921: // text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break
|
||||
|
||||
case 5572:
|
||||
case 6356:
|
||||
case 5844:
|
||||
case 3191:
|
||||
case 6645:
|
||||
case 3005: // mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite,
|
||||
|
||||
case 6391:
|
||||
case 5879:
|
||||
case 5623:
|
||||
case 6135:
|
||||
case 4599:
|
||||
case 4855: // background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width)
|
||||
|
||||
case 4215:
|
||||
case 6389:
|
||||
case 5109:
|
||||
case 5365:
|
||||
case 5621:
|
||||
case 3829:
|
||||
return WEBKIT + value + value;
|
||||
// appearance, user-select, transform, hyphens, text-size-adjust
|
||||
|
||||
case 5349:
|
||||
case 4246:
|
||||
case 4810:
|
||||
case 6968:
|
||||
case 2756:
|
||||
return WEBKIT + value + MOZ + value + MS + value + value;
|
||||
// flex, flex-direction
|
||||
|
||||
case 6828:
|
||||
case 4268:
|
||||
return WEBKIT + value + MS + value + value;
|
||||
// order
|
||||
|
||||
case 6165:
|
||||
return WEBKIT + value + MS + 'flex-' + value + value;
|
||||
// align-items
|
||||
|
||||
case 5187:
|
||||
return WEBKIT + value + replace(value, /(\w+).+(:[^]+)/, WEBKIT + 'box-$1$2' + MS + 'flex-$1$2') + value;
|
||||
// align-self
|
||||
|
||||
case 5443:
|
||||
return WEBKIT + value + MS + 'flex-item-' + replace(value, /flex-|-self/, '') + value;
|
||||
// align-content
|
||||
|
||||
case 4675:
|
||||
return WEBKIT + value + MS + 'flex-line-pack' + replace(value, /align-content|flex-|-self/, '') + value;
|
||||
// flex-shrink
|
||||
|
||||
case 5548:
|
||||
return WEBKIT + value + MS + replace(value, 'shrink', 'negative') + value;
|
||||
// flex-basis
|
||||
|
||||
case 5292:
|
||||
return WEBKIT + value + MS + replace(value, 'basis', 'preferred-size') + value;
|
||||
// flex-grow
|
||||
|
||||
case 6060:
|
||||
return WEBKIT + 'box-' + replace(value, '-grow', '') + WEBKIT + value + MS + replace(value, 'grow', 'positive') + value;
|
||||
// transition
|
||||
|
||||
case 4554:
|
||||
return WEBKIT + replace(value, /([^-])(transform)/g, '$1' + WEBKIT + '$2') + value;
|
||||
// cursor
|
||||
|
||||
case 6187:
|
||||
return replace(replace(replace(value, /(zoom-|grab)/, WEBKIT + '$1'), /(image-set)/, WEBKIT + '$1'), value, '') + value;
|
||||
// background, background-image
|
||||
|
||||
case 5495:
|
||||
case 3959:
|
||||
return replace(value, /(image-set\([^]*)/, WEBKIT + '$1' + '$`$1');
|
||||
// justify-content
|
||||
|
||||
case 4968:
|
||||
return replace(replace(value, /(.+:)(flex-)?(.*)/, WEBKIT + 'box-pack:$3' + MS + 'flex-pack:$3'), /s.+-b[^;]+/, 'justify') + WEBKIT + value + value;
|
||||
// (margin|padding)-inline-(start|end)
|
||||
|
||||
case 4095:
|
||||
case 3583:
|
||||
case 4068:
|
||||
case 2532:
|
||||
return replace(value, /(.+)-inline(.+)/, WEBKIT + '$1$2') + value;
|
||||
// (min|max)?(width|height|inline-size|block-size)
|
||||
|
||||
case 8116:
|
||||
case 7059:
|
||||
case 5753:
|
||||
case 5535:
|
||||
case 5445:
|
||||
case 5701:
|
||||
case 4933:
|
||||
case 4677:
|
||||
case 5533:
|
||||
case 5789:
|
||||
case 5021:
|
||||
case 4765:
|
||||
// stretch, max-content, min-content, fill-available
|
||||
if (strlen(value) - 1 - length > 6) switch (charat(value, length + 1)) {
|
||||
// (m)ax-content, (m)in-content
|
||||
case 109:
|
||||
// -
|
||||
if (charat(value, length + 4) !== 45) break;
|
||||
// (f)ill-available, (f)it-content
|
||||
|
||||
case 102:
|
||||
return replace(value, /(.+:)(.+)-([^]+)/, '$1' + WEBKIT + '$2-$3' + '$1' + MOZ + (charat(value, length + 3) == 108 ? '$3' : '$2-$3')) + value;
|
||||
// (s)tretch
|
||||
|
||||
case 115:
|
||||
return ~indexof(value, 'stretch') ? prefix(replace(value, 'stretch', 'fill-available'), length) + value : value;
|
||||
}
|
||||
break;
|
||||
// position: sticky
|
||||
|
||||
case 4949:
|
||||
// (s)ticky?
|
||||
if (charat(value, length + 1) !== 115) break;
|
||||
// display: (flex|inline-flex)
|
||||
|
||||
case 6444:
|
||||
switch (charat(value, strlen(value) - 3 - (~indexof(value, '!important') && 10))) {
|
||||
// stic(k)y
|
||||
case 107:
|
||||
return replace(value, ':', ':' + WEBKIT) + value;
|
||||
// (inline-)?fl(e)x
|
||||
|
||||
case 101:
|
||||
return replace(value, /(.+:)([^;!]+)(;|!.+)?/, '$1' + WEBKIT + (charat(value, 14) === 45 ? 'inline-' : '') + 'box$3' + '$1' + WEBKIT + '$2$3' + '$1' + MS + '$2box$3') + value;
|
||||
}
|
||||
|
||||
break;
|
||||
// writing-mode
|
||||
|
||||
case 5936:
|
||||
switch (charat(value, length + 11)) {
|
||||
// vertical-l(r)
|
||||
case 114:
|
||||
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'tb') + value;
|
||||
// vertical-r(l)
|
||||
|
||||
case 108:
|
||||
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'tb-rl') + value;
|
||||
// horizontal(-)tb
|
||||
|
||||
case 45:
|
||||
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'lr') + value;
|
||||
}
|
||||
|
||||
return WEBKIT + value + MS + value + value;
|
||||
}
|
||||
|
||||
return value;
|
||||
}
|
||||
|
||||
var prefixer = function prefixer(element, index, children, callback) {
|
||||
if (element.length > -1) if (!element["return"]) switch (element.type) {
|
||||
case DECLARATION:
|
||||
element["return"] = prefix(element.value, element.length);
|
||||
break;
|
||||
|
||||
case KEYFRAMES:
|
||||
return serialize([copy(element, {
|
||||
value: replace(element.value, '@', '@' + WEBKIT)
|
||||
})], callback);
|
||||
|
||||
case RULESET:
|
||||
if (element.length) return combine(element.props, function (value) {
|
||||
switch (match(value, /(::plac\w+|:read-\w+)/)) {
|
||||
// :read-(only|write)
|
||||
case ':read-only':
|
||||
case ':read-write':
|
||||
return serialize([copy(element, {
|
||||
props: [replace(value, /:(read-\w+)/, ':' + MOZ + '$1')]
|
||||
})], callback);
|
||||
// :placeholder
|
||||
|
||||
case '::placeholder':
|
||||
return serialize([copy(element, {
|
||||
props: [replace(value, /:(plac\w+)/, ':' + WEBKIT + 'input-$1')]
|
||||
}), copy(element, {
|
||||
props: [replace(value, /:(plac\w+)/, ':' + MOZ + '$1')]
|
||||
}), copy(element, {
|
||||
props: [replace(value, /:(plac\w+)/, MS + 'input-$1')]
|
||||
})], callback);
|
||||
}
|
||||
|
||||
return '';
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
/* import type { StylisPlugin } from './types' */
|
||||
|
||||
/*
|
||||
export type Options = {
|
||||
nonce?: string,
|
||||
stylisPlugins?: StylisPlugin[],
|
||||
key: string,
|
||||
container?: HTMLElement,
|
||||
speedy?: boolean,
|
||||
prepend?: boolean,
|
||||
insertionPoint?: HTMLElement
|
||||
}
|
||||
*/
|
||||
|
||||
var getServerStylisCache = weakMemoize(function () {
|
||||
return memoize(function () {
|
||||
var cache = {};
|
||||
return function (name) {
|
||||
return cache[name];
|
||||
};
|
||||
});
|
||||
});
|
||||
var defaultStylisPlugins = [prefixer];
|
||||
var getSourceMap;
|
||||
|
||||
{
|
||||
var sourceMapPattern = /\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g;
|
||||
|
||||
getSourceMap = function getSourceMap(styles
|
||||
/*: string */
|
||||
) {
|
||||
var matches = styles.match(sourceMapPattern);
|
||||
if (!matches) return;
|
||||
return matches[matches.length - 1];
|
||||
};
|
||||
}
|
||||
|
||||
var createCache = function
|
||||
/*: EmotionCache */
|
||||
createCache(options
|
||||
/*: Options */
|
||||
) {
|
||||
var key = options.key;
|
||||
|
||||
if (!key) {
|
||||
throw new Error("You have to configure `key` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.\n" + "If multiple caches share the same key they might \"fight\" for each other's style elements.");
|
||||
}
|
||||
|
||||
var stylisPlugins = options.stylisPlugins || defaultStylisPlugins;
|
||||
|
||||
{
|
||||
if (/[^a-z-]/.test(key)) {
|
||||
throw new Error("Emotion key must only contain lower case alphabetical characters and - but \"" + key + "\" was passed");
|
||||
}
|
||||
}
|
||||
|
||||
var inserted = {};
|
||||
var container;
|
||||
/* : Node */
|
||||
|
||||
var nodesToHydrate = [];
|
||||
|
||||
var _insert;
|
||||
/*: (
|
||||
selector: string,
|
||||
serialized: SerializedStyles,
|
||||
sheet: StyleSheet,
|
||||
shouldCache: boolean
|
||||
) => string | void */
|
||||
|
||||
|
||||
var omnipresentPlugins = [compat, removeLabel];
|
||||
|
||||
{
|
||||
omnipresentPlugins.push(createUnsafeSelectorsAlarm({
|
||||
get compat() {
|
||||
return cache.compat;
|
||||
}
|
||||
|
||||
}), incorrectImportAlarm);
|
||||
}
|
||||
|
||||
{
|
||||
var _finalizingPlugins = [stringify];
|
||||
|
||||
var _serializer = middleware(omnipresentPlugins.concat(stylisPlugins, _finalizingPlugins));
|
||||
|
||||
var _stylis = function _stylis(styles) {
|
||||
return serialize(compile(styles), _serializer);
|
||||
};
|
||||
|
||||
var serverStylisCache = getServerStylisCache(stylisPlugins)(key);
|
||||
|
||||
var getRules = function
|
||||
/*: string */
|
||||
getRules(selector
|
||||
/*: string */
|
||||
, serialized
|
||||
/*: SerializedStyles */
|
||||
) {
|
||||
var name = serialized.name;
|
||||
|
||||
if (serverStylisCache[name] === undefined) {
|
||||
serverStylisCache[name] = _stylis(selector ? selector + "{" + serialized.styles + "}" : serialized.styles);
|
||||
}
|
||||
|
||||
return serverStylisCache[name];
|
||||
};
|
||||
|
||||
_insert = function
|
||||
/*: string | void */
|
||||
_insert(selector
|
||||
/*: string */
|
||||
, serialized
|
||||
/*: SerializedStyles */
|
||||
, sheet
|
||||
/*: StyleSheet */
|
||||
, shouldCache
|
||||
/*: boolean */
|
||||
) {
|
||||
var name = serialized.name;
|
||||
var rules = getRules(selector, serialized);
|
||||
|
||||
if (cache.compat === undefined) {
|
||||
// in regular mode, we don't set the styles on the inserted cache
|
||||
// since we don't need to and that would be wasting memory
|
||||
// we return them so that they are rendered in a style tag
|
||||
if (shouldCache) {
|
||||
cache.inserted[name] = true;
|
||||
}
|
||||
|
||||
{
|
||||
var sourceMap = getSourceMap(serialized.styles);
|
||||
|
||||
if (sourceMap) {
|
||||
return rules + sourceMap;
|
||||
}
|
||||
}
|
||||
|
||||
return rules;
|
||||
} else {
|
||||
// in compat mode, we put the styles on the inserted cache so
|
||||
// that emotion-server can pull out the styles
|
||||
// except when we don't want to cache it which was in Global but now
|
||||
// is nowhere but we don't want to do a major right now
|
||||
// and just in case we're going to leave the case here
|
||||
// it's also not affecting client side bundle size
|
||||
// so it's really not a big deal
|
||||
if (shouldCache) {
|
||||
cache.inserted[name] = rules;
|
||||
} else {
|
||||
return rules;
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
var cache
|
||||
/*: EmotionCache */
|
||||
= {
|
||||
key: key,
|
||||
sheet: new StyleSheet({
|
||||
key: key,
|
||||
container: container,
|
||||
nonce: options.nonce,
|
||||
speedy: options.speedy,
|
||||
prepend: options.prepend,
|
||||
insertionPoint: options.insertionPoint
|
||||
}),
|
||||
nonce: options.nonce,
|
||||
inserted: inserted,
|
||||
registered: {},
|
||||
insert: _insert
|
||||
};
|
||||
cache.sheet.hydrate(nodesToHydrate);
|
||||
return cache;
|
||||
};
|
||||
|
||||
export { createCache as default };
|
||||
726
backend/frontend/node_modules/@emotion/cache/dist/emotion-cache.development.esm.js
generated
vendored
Normal file
726
backend/frontend/node_modules/@emotion/cache/dist/emotion-cache.development.esm.js
generated
vendored
Normal file
@@ -0,0 +1,726 @@
|
||||
import { StyleSheet } from '@emotion/sheet';
|
||||
import { dealloc, alloc, next, token, from, peek, delimit, slice, position, RULESET, combine, match, serialize, copy, replace, WEBKIT, MOZ, MS, KEYFRAMES, DECLARATION, hash, charat, strlen, indexof, middleware, stringify, COMMENT, compile } from 'stylis';
|
||||
import weakMemoize from '@emotion/weak-memoize';
|
||||
import memoize from '@emotion/memoize';
|
||||
|
||||
var isBrowser = typeof document !== 'undefined';
|
||||
|
||||
var identifierWithPointTracking = function identifierWithPointTracking(begin, points, index) {
|
||||
var previous = 0;
|
||||
var character = 0;
|
||||
|
||||
while (true) {
|
||||
previous = character;
|
||||
character = peek(); // &\f
|
||||
|
||||
if (previous === 38 && character === 12) {
|
||||
points[index] = 1;
|
||||
}
|
||||
|
||||
if (token(character)) {
|
||||
break;
|
||||
}
|
||||
|
||||
next();
|
||||
}
|
||||
|
||||
return slice(begin, position);
|
||||
};
|
||||
|
||||
var toRules = function toRules(parsed, points) {
|
||||
// pretend we've started with a comma
|
||||
var index = -1;
|
||||
var character = 44;
|
||||
|
||||
do {
|
||||
switch (token(character)) {
|
||||
case 0:
|
||||
// &\f
|
||||
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
|
||||
points[index] = 1;
|
||||
}
|
||||
|
||||
parsed[index] += identifierWithPointTracking(position - 1, points, index);
|
||||
break;
|
||||
|
||||
case 2:
|
||||
parsed[index] += delimit(character);
|
||||
break;
|
||||
|
||||
case 4:
|
||||
// comma
|
||||
if (character === 44) {
|
||||
// colon
|
||||
parsed[++index] = peek() === 58 ? '&\f' : '';
|
||||
points[index] = parsed[index].length;
|
||||
break;
|
||||
}
|
||||
|
||||
// fallthrough
|
||||
|
||||
default:
|
||||
parsed[index] += from(character);
|
||||
}
|
||||
} while (character = next());
|
||||
|
||||
return parsed;
|
||||
};
|
||||
|
||||
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
|
||||
element.length < 1) {
|
||||
return;
|
||||
}
|
||||
|
||||
var value = element.value,
|
||||
parent = element.parent;
|
||||
var isImplicitRule = element.column === parent.column && element.line === parent.line;
|
||||
|
||||
while (parent.type !== 'rule') {
|
||||
parent = parent.parent;
|
||||
if (!parent) return;
|
||||
} // short-circuit for the simplest case
|
||||
|
||||
|
||||
if (element.props.length === 1 && value.charCodeAt(0) !== 58
|
||||
/* colon */
|
||||
&& !fixedElements.get(parent)) {
|
||||
return;
|
||||
} // 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"
|
||||
|
||||
|
||||
if (isImplicitRule) {
|
||||
return;
|
||||
}
|
||||
|
||||
fixedElements.set(element, true);
|
||||
var points = [];
|
||||
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;
|
||||
|
||||
if ( // charcode for l
|
||||
value.charCodeAt(0) === 108 && // charcode for b
|
||||
value.charCodeAt(2) === 98) {
|
||||
// this ignores label
|
||||
element["return"] = '';
|
||||
element.value = '';
|
||||
}
|
||||
}
|
||||
};
|
||||
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; // in nested rules comments become children of the "auto-inserted" rule and that's always the `element.parent`
|
||||
//
|
||||
// considering this input:
|
||||
// .a {
|
||||
// .b /* comm */ {}
|
||||
// color: hotpink;
|
||||
// }
|
||||
// we get output corresponding to this:
|
||||
// .a {
|
||||
// & {
|
||||
// /* comm */
|
||||
// color: hotpink;
|
||||
// }
|
||||
// .b {}
|
||||
// }
|
||||
|
||||
var commentContainer = isNested ? element.parent.children : // global rule at the root level
|
||||
children;
|
||||
|
||||
for (var i = commentContainer.length - 1; i >= 0; i--) {
|
||||
var node = commentContainer[i];
|
||||
|
||||
if (node.line < element.line) {
|
||||
break;
|
||||
} // 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:
|
||||
// .a {
|
||||
// /* comm */
|
||||
// .b {}
|
||||
// }
|
||||
//
|
||||
// but that is fine
|
||||
//
|
||||
// it would be the easiest to change the placement of the comment to be the first child of the rule:
|
||||
// .a {
|
||||
// .b { /* comm */ }
|
||||
// }
|
||||
// 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)) {
|
||||
return;
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
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])) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}; // 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) {
|
||||
element.type = '';
|
||||
element.value = '';
|
||||
element["return"] = '';
|
||||
element.children = '';
|
||||
element.props = '';
|
||||
};
|
||||
|
||||
var incorrectImportAlarm = function incorrectImportAlarm(element, index, children) {
|
||||
if (!isImportRule(element)) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (element.parent) {
|
||||
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.");
|
||||
nullifyElement(element);
|
||||
} else if (isPrependedWithRegularRules(index, children)) {
|
||||
console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules.");
|
||||
nullifyElement(element);
|
||||
}
|
||||
};
|
||||
|
||||
/* eslint-disable no-fallthrough */
|
||||
|
||||
function prefix(value, length) {
|
||||
switch (hash(value, length)) {
|
||||
// color-adjust
|
||||
case 5103:
|
||||
return WEBKIT + 'print-' + value + value;
|
||||
// animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
|
||||
|
||||
case 5737:
|
||||
case 4201:
|
||||
case 3177:
|
||||
case 3433:
|
||||
case 1641:
|
||||
case 4457:
|
||||
case 2921: // text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break
|
||||
|
||||
case 5572:
|
||||
case 6356:
|
||||
case 5844:
|
||||
case 3191:
|
||||
case 6645:
|
||||
case 3005: // mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite,
|
||||
|
||||
case 6391:
|
||||
case 5879:
|
||||
case 5623:
|
||||
case 6135:
|
||||
case 4599:
|
||||
case 4855: // background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width)
|
||||
|
||||
case 4215:
|
||||
case 6389:
|
||||
case 5109:
|
||||
case 5365:
|
||||
case 5621:
|
||||
case 3829:
|
||||
return WEBKIT + value + value;
|
||||
// appearance, user-select, transform, hyphens, text-size-adjust
|
||||
|
||||
case 5349:
|
||||
case 4246:
|
||||
case 4810:
|
||||
case 6968:
|
||||
case 2756:
|
||||
return WEBKIT + value + MOZ + value + MS + value + value;
|
||||
// flex, flex-direction
|
||||
|
||||
case 6828:
|
||||
case 4268:
|
||||
return WEBKIT + value + MS + value + value;
|
||||
// order
|
||||
|
||||
case 6165:
|
||||
return WEBKIT + value + MS + 'flex-' + value + value;
|
||||
// align-items
|
||||
|
||||
case 5187:
|
||||
return WEBKIT + value + replace(value, /(\w+).+(:[^]+)/, WEBKIT + 'box-$1$2' + MS + 'flex-$1$2') + value;
|
||||
// align-self
|
||||
|
||||
case 5443:
|
||||
return WEBKIT + value + MS + 'flex-item-' + replace(value, /flex-|-self/, '') + value;
|
||||
// align-content
|
||||
|
||||
case 4675:
|
||||
return WEBKIT + value + MS + 'flex-line-pack' + replace(value, /align-content|flex-|-self/, '') + value;
|
||||
// flex-shrink
|
||||
|
||||
case 5548:
|
||||
return WEBKIT + value + MS + replace(value, 'shrink', 'negative') + value;
|
||||
// flex-basis
|
||||
|
||||
case 5292:
|
||||
return WEBKIT + value + MS + replace(value, 'basis', 'preferred-size') + value;
|
||||
// flex-grow
|
||||
|
||||
case 6060:
|
||||
return WEBKIT + 'box-' + replace(value, '-grow', '') + WEBKIT + value + MS + replace(value, 'grow', 'positive') + value;
|
||||
// transition
|
||||
|
||||
case 4554:
|
||||
return WEBKIT + replace(value, /([^-])(transform)/g, '$1' + WEBKIT + '$2') + value;
|
||||
// cursor
|
||||
|
||||
case 6187:
|
||||
return replace(replace(replace(value, /(zoom-|grab)/, WEBKIT + '$1'), /(image-set)/, WEBKIT + '$1'), value, '') + value;
|
||||
// background, background-image
|
||||
|
||||
case 5495:
|
||||
case 3959:
|
||||
return replace(value, /(image-set\([^]*)/, WEBKIT + '$1' + '$`$1');
|
||||
// justify-content
|
||||
|
||||
case 4968:
|
||||
return replace(replace(value, /(.+:)(flex-)?(.*)/, WEBKIT + 'box-pack:$3' + MS + 'flex-pack:$3'), /s.+-b[^;]+/, 'justify') + WEBKIT + value + value;
|
||||
// (margin|padding)-inline-(start|end)
|
||||
|
||||
case 4095:
|
||||
case 3583:
|
||||
case 4068:
|
||||
case 2532:
|
||||
return replace(value, /(.+)-inline(.+)/, WEBKIT + '$1$2') + value;
|
||||
// (min|max)?(width|height|inline-size|block-size)
|
||||
|
||||
case 8116:
|
||||
case 7059:
|
||||
case 5753:
|
||||
case 5535:
|
||||
case 5445:
|
||||
case 5701:
|
||||
case 4933:
|
||||
case 4677:
|
||||
case 5533:
|
||||
case 5789:
|
||||
case 5021:
|
||||
case 4765:
|
||||
// stretch, max-content, min-content, fill-available
|
||||
if (strlen(value) - 1 - length > 6) switch (charat(value, length + 1)) {
|
||||
// (m)ax-content, (m)in-content
|
||||
case 109:
|
||||
// -
|
||||
if (charat(value, length + 4) !== 45) break;
|
||||
// (f)ill-available, (f)it-content
|
||||
|
||||
case 102:
|
||||
return replace(value, /(.+:)(.+)-([^]+)/, '$1' + WEBKIT + '$2-$3' + '$1' + MOZ + (charat(value, length + 3) == 108 ? '$3' : '$2-$3')) + value;
|
||||
// (s)tretch
|
||||
|
||||
case 115:
|
||||
return ~indexof(value, 'stretch') ? prefix(replace(value, 'stretch', 'fill-available'), length) + value : value;
|
||||
}
|
||||
break;
|
||||
// position: sticky
|
||||
|
||||
case 4949:
|
||||
// (s)ticky?
|
||||
if (charat(value, length + 1) !== 115) break;
|
||||
// display: (flex|inline-flex)
|
||||
|
||||
case 6444:
|
||||
switch (charat(value, strlen(value) - 3 - (~indexof(value, '!important') && 10))) {
|
||||
// stic(k)y
|
||||
case 107:
|
||||
return replace(value, ':', ':' + WEBKIT) + value;
|
||||
// (inline-)?fl(e)x
|
||||
|
||||
case 101:
|
||||
return replace(value, /(.+:)([^;!]+)(;|!.+)?/, '$1' + WEBKIT + (charat(value, 14) === 45 ? 'inline-' : '') + 'box$3' + '$1' + WEBKIT + '$2$3' + '$1' + MS + '$2box$3') + value;
|
||||
}
|
||||
|
||||
break;
|
||||
// writing-mode
|
||||
|
||||
case 5936:
|
||||
switch (charat(value, length + 11)) {
|
||||
// vertical-l(r)
|
||||
case 114:
|
||||
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'tb') + value;
|
||||
// vertical-r(l)
|
||||
|
||||
case 108:
|
||||
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'tb-rl') + value;
|
||||
// horizontal(-)tb
|
||||
|
||||
case 45:
|
||||
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'lr') + value;
|
||||
}
|
||||
|
||||
return WEBKIT + value + MS + value + value;
|
||||
}
|
||||
|
||||
return value;
|
||||
}
|
||||
|
||||
var prefixer = function prefixer(element, index, children, callback) {
|
||||
if (element.length > -1) if (!element["return"]) switch (element.type) {
|
||||
case DECLARATION:
|
||||
element["return"] = prefix(element.value, element.length);
|
||||
break;
|
||||
|
||||
case KEYFRAMES:
|
||||
return serialize([copy(element, {
|
||||
value: replace(element.value, '@', '@' + WEBKIT)
|
||||
})], callback);
|
||||
|
||||
case RULESET:
|
||||
if (element.length) return combine(element.props, function (value) {
|
||||
switch (match(value, /(::plac\w+|:read-\w+)/)) {
|
||||
// :read-(only|write)
|
||||
case ':read-only':
|
||||
case ':read-write':
|
||||
return serialize([copy(element, {
|
||||
props: [replace(value, /:(read-\w+)/, ':' + MOZ + '$1')]
|
||||
})], callback);
|
||||
// :placeholder
|
||||
|
||||
case '::placeholder':
|
||||
return serialize([copy(element, {
|
||||
props: [replace(value, /:(plac\w+)/, ':' + WEBKIT + 'input-$1')]
|
||||
}), copy(element, {
|
||||
props: [replace(value, /:(plac\w+)/, ':' + MOZ + '$1')]
|
||||
}), copy(element, {
|
||||
props: [replace(value, /:(plac\w+)/, MS + 'input-$1')]
|
||||
})], callback);
|
||||
}
|
||||
|
||||
return '';
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
/* import type { StylisPlugin } from './types' */
|
||||
|
||||
/*
|
||||
export type Options = {
|
||||
nonce?: string,
|
||||
stylisPlugins?: StylisPlugin[],
|
||||
key: string,
|
||||
container?: HTMLElement,
|
||||
speedy?: boolean,
|
||||
prepend?: boolean,
|
||||
insertionPoint?: HTMLElement
|
||||
}
|
||||
*/
|
||||
|
||||
var getServerStylisCache = isBrowser ? undefined : weakMemoize(function () {
|
||||
return memoize(function () {
|
||||
var cache = {};
|
||||
return function (name) {
|
||||
return cache[name];
|
||||
};
|
||||
});
|
||||
});
|
||||
var defaultStylisPlugins = [prefixer];
|
||||
var getSourceMap;
|
||||
|
||||
{
|
||||
var sourceMapPattern = /\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g;
|
||||
|
||||
getSourceMap = function getSourceMap(styles
|
||||
/*: string */
|
||||
) {
|
||||
var matches = styles.match(sourceMapPattern);
|
||||
if (!matches) return;
|
||||
return matches[matches.length - 1];
|
||||
};
|
||||
}
|
||||
|
||||
var createCache = function
|
||||
/*: EmotionCache */
|
||||
createCache(options
|
||||
/*: Options */
|
||||
) {
|
||||
var key = options.key;
|
||||
|
||||
if (!key) {
|
||||
throw new Error("You have to configure `key` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.\n" + "If multiple caches share the same key they might \"fight\" for each other's style elements.");
|
||||
}
|
||||
|
||||
if (isBrowser && key === 'css') {
|
||||
var ssrStyles = document.querySelectorAll("style[data-emotion]:not([data-s])"); // get SSRed styles out of the way of React's hydration
|
||||
// document.head is a safe place to move them to(though note document.head is not necessarily the last place they will be)
|
||||
// note this very very intentionally targets all style elements regardless of the key to ensure
|
||||
// that creating a cache works inside of render of a React component
|
||||
|
||||
Array.prototype.forEach.call(ssrStyles, function (node
|
||||
/*: HTMLStyleElement */
|
||||
) {
|
||||
// we want to only move elements which have a space in the data-emotion attribute value
|
||||
// because that indicates that it is an Emotion 11 server-side rendered style elements
|
||||
// while we will already ignore Emotion 11 client-side inserted styles because of the :not([data-s]) part in the selector
|
||||
// Emotion 10 client-side inserted styles did not have data-s (but importantly did not have a space in their data-emotion attributes)
|
||||
// so checking for the space ensures that loading Emotion 11 after Emotion 10 has inserted some styles
|
||||
// will not result in the Emotion 10 styles being destroyed
|
||||
var dataEmotionAttribute = node.getAttribute('data-emotion');
|
||||
|
||||
if (dataEmotionAttribute.indexOf(' ') === -1) {
|
||||
return;
|
||||
}
|
||||
|
||||
document.head.appendChild(node);
|
||||
node.setAttribute('data-s', '');
|
||||
});
|
||||
}
|
||||
|
||||
var stylisPlugins = options.stylisPlugins || defaultStylisPlugins;
|
||||
|
||||
{
|
||||
if (/[^a-z-]/.test(key)) {
|
||||
throw new Error("Emotion key must only contain lower case alphabetical characters and - but \"" + key + "\" was passed");
|
||||
}
|
||||
}
|
||||
|
||||
var inserted = {};
|
||||
var container;
|
||||
/* : Node */
|
||||
|
||||
var nodesToHydrate = [];
|
||||
|
||||
if (isBrowser) {
|
||||
container = options.container || document.head;
|
||||
Array.prototype.forEach.call( // this means we will ignore elements which don't have a space in them which
|
||||
// means that the style elements we're looking at are only Emotion 11 server-rendered style elements
|
||||
document.querySelectorAll("style[data-emotion^=\"" + key + " \"]"), function (node
|
||||
/*: HTMLStyleElement */
|
||||
) {
|
||||
var attrib = node.getAttribute("data-emotion").split(' ');
|
||||
|
||||
for (var i = 1; i < attrib.length; i++) {
|
||||
inserted[attrib[i]] = true;
|
||||
}
|
||||
|
||||
nodesToHydrate.push(node);
|
||||
});
|
||||
}
|
||||
|
||||
var _insert;
|
||||
/*: (
|
||||
selector: string,
|
||||
serialized: SerializedStyles,
|
||||
sheet: StyleSheet,
|
||||
shouldCache: boolean
|
||||
) => string | void */
|
||||
|
||||
|
||||
var omnipresentPlugins = [compat, removeLabel];
|
||||
|
||||
{
|
||||
omnipresentPlugins.push(createUnsafeSelectorsAlarm({
|
||||
get compat() {
|
||||
return cache.compat;
|
||||
}
|
||||
|
||||
}), incorrectImportAlarm);
|
||||
}
|
||||
|
||||
if (isBrowser) {
|
||||
var currentSheet;
|
||||
var finalizingPlugins = [stringify, function (element) {
|
||||
if (!element.root) {
|
||||
if (element["return"]) {
|
||||
currentSheet.insert(element["return"]);
|
||||
} else if (element.value && element.type !== COMMENT) {
|
||||
// insert empty rule in non-production environments
|
||||
// so @emotion/jest can grab `key` from the (JS)DOM for caches without any rules inserted yet
|
||||
currentSheet.insert(element.value + "{}");
|
||||
}
|
||||
}
|
||||
} ];
|
||||
var serializer = middleware(omnipresentPlugins.concat(stylisPlugins, finalizingPlugins));
|
||||
|
||||
var stylis = function stylis(styles) {
|
||||
return serialize(compile(styles), serializer);
|
||||
};
|
||||
|
||||
_insert = function
|
||||
/*: void */
|
||||
insert(selector
|
||||
/*: string */
|
||||
, serialized
|
||||
/*: SerializedStyles */
|
||||
, sheet
|
||||
/*: StyleSheet */
|
||||
, shouldCache
|
||||
/*: boolean */
|
||||
) {
|
||||
currentSheet = sheet;
|
||||
|
||||
{
|
||||
var sourceMap = getSourceMap(serialized.styles);
|
||||
|
||||
if (sourceMap) {
|
||||
currentSheet = {
|
||||
insert: function insert(rule
|
||||
/*: string */
|
||||
) {
|
||||
sheet.insert(rule + sourceMap);
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
stylis(selector ? selector + "{" + serialized.styles + "}" : serialized.styles);
|
||||
|
||||
if (shouldCache) {
|
||||
cache.inserted[serialized.name] = true;
|
||||
}
|
||||
};
|
||||
} else {
|
||||
var _finalizingPlugins = [stringify];
|
||||
|
||||
var _serializer = middleware(omnipresentPlugins.concat(stylisPlugins, _finalizingPlugins));
|
||||
|
||||
var _stylis = function _stylis(styles) {
|
||||
return serialize(compile(styles), _serializer);
|
||||
};
|
||||
|
||||
var serverStylisCache = getServerStylisCache(stylisPlugins)(key);
|
||||
|
||||
var getRules = function
|
||||
/*: string */
|
||||
getRules(selector
|
||||
/*: string */
|
||||
, serialized
|
||||
/*: SerializedStyles */
|
||||
) {
|
||||
var name = serialized.name;
|
||||
|
||||
if (serverStylisCache[name] === undefined) {
|
||||
serverStylisCache[name] = _stylis(selector ? selector + "{" + serialized.styles + "}" : serialized.styles);
|
||||
}
|
||||
|
||||
return serverStylisCache[name];
|
||||
};
|
||||
|
||||
_insert = function
|
||||
/*: string | void */
|
||||
_insert(selector
|
||||
/*: string */
|
||||
, serialized
|
||||
/*: SerializedStyles */
|
||||
, sheet
|
||||
/*: StyleSheet */
|
||||
, shouldCache
|
||||
/*: boolean */
|
||||
) {
|
||||
var name = serialized.name;
|
||||
var rules = getRules(selector, serialized);
|
||||
|
||||
if (cache.compat === undefined) {
|
||||
// in regular mode, we don't set the styles on the inserted cache
|
||||
// since we don't need to and that would be wasting memory
|
||||
// we return them so that they are rendered in a style tag
|
||||
if (shouldCache) {
|
||||
cache.inserted[name] = true;
|
||||
}
|
||||
|
||||
{
|
||||
var sourceMap = getSourceMap(serialized.styles);
|
||||
|
||||
if (sourceMap) {
|
||||
return rules + sourceMap;
|
||||
}
|
||||
}
|
||||
|
||||
return rules;
|
||||
} else {
|
||||
// in compat mode, we put the styles on the inserted cache so
|
||||
// that emotion-server can pull out the styles
|
||||
// except when we don't want to cache it which was in Global but now
|
||||
// is nowhere but we don't want to do a major right now
|
||||
// and just in case we're going to leave the case here
|
||||
// it's also not affecting client side bundle size
|
||||
// so it's really not a big deal
|
||||
if (shouldCache) {
|
||||
cache.inserted[name] = rules;
|
||||
} else {
|
||||
return rules;
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
var cache
|
||||
/*: EmotionCache */
|
||||
= {
|
||||
key: key,
|
||||
sheet: new StyleSheet({
|
||||
key: key,
|
||||
container: container,
|
||||
nonce: options.nonce,
|
||||
speedy: options.speedy,
|
||||
prepend: options.prepend,
|
||||
insertionPoint: options.insertionPoint
|
||||
}),
|
||||
nonce: options.nonce,
|
||||
inserted: inserted,
|
||||
registered: {},
|
||||
insert: _insert
|
||||
};
|
||||
cache.sheet.hydrate(nodesToHydrate);
|
||||
return cache;
|
||||
};
|
||||
|
||||
export { createCache as default };
|
||||
1
backend/frontend/node_modules/@emotion/cache/dist/emotion-cache.edge-light.cjs.default.js
generated
vendored
Normal file
1
backend/frontend/node_modules/@emotion/cache/dist/emotion-cache.edge-light.cjs.default.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
exports._default = require("./emotion-cache.edge-light.cjs.js").default;
|
||||
490
backend/frontend/node_modules/@emotion/cache/dist/emotion-cache.edge-light.cjs.js
generated
vendored
Normal file
490
backend/frontend/node_modules/@emotion/cache/dist/emotion-cache.edge-light.cjs.js
generated
vendored
Normal file
@@ -0,0 +1,490 @@
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
|
||||
var sheet = require('@emotion/sheet');
|
||||
var stylis = require('stylis');
|
||||
var weakMemoize = require('@emotion/weak-memoize');
|
||||
var memoize = require('@emotion/memoize');
|
||||
|
||||
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
||||
|
||||
var weakMemoize__default = /*#__PURE__*/_interopDefault(weakMemoize);
|
||||
var memoize__default = /*#__PURE__*/_interopDefault(memoize);
|
||||
|
||||
var identifierWithPointTracking = function identifierWithPointTracking(begin, points, index) {
|
||||
var previous = 0;
|
||||
var character = 0;
|
||||
|
||||
while (true) {
|
||||
previous = character;
|
||||
character = stylis.peek(); // &\f
|
||||
|
||||
if (previous === 38 && character === 12) {
|
||||
points[index] = 1;
|
||||
}
|
||||
|
||||
if (stylis.token(character)) {
|
||||
break;
|
||||
}
|
||||
|
||||
stylis.next();
|
||||
}
|
||||
|
||||
return stylis.slice(begin, stylis.position);
|
||||
};
|
||||
|
||||
var toRules = function toRules(parsed, points) {
|
||||
// pretend we've started with a comma
|
||||
var index = -1;
|
||||
var character = 44;
|
||||
|
||||
do {
|
||||
switch (stylis.token(character)) {
|
||||
case 0:
|
||||
// &\f
|
||||
if (character === 38 && stylis.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
|
||||
points[index] = 1;
|
||||
}
|
||||
|
||||
parsed[index] += identifierWithPointTracking(stylis.position - 1, points, index);
|
||||
break;
|
||||
|
||||
case 2:
|
||||
parsed[index] += stylis.delimit(character);
|
||||
break;
|
||||
|
||||
case 4:
|
||||
// comma
|
||||
if (character === 44) {
|
||||
// colon
|
||||
parsed[++index] = stylis.peek() === 58 ? '&\f' : '';
|
||||
points[index] = parsed[index].length;
|
||||
break;
|
||||
}
|
||||
|
||||
// fallthrough
|
||||
|
||||
default:
|
||||
parsed[index] += stylis.from(character);
|
||||
}
|
||||
} while (character = stylis.next());
|
||||
|
||||
return parsed;
|
||||
};
|
||||
|
||||
var getRules = function getRules(value, points) {
|
||||
return stylis.dealloc(toRules(stylis.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
|
||||
element.length < 1) {
|
||||
return;
|
||||
}
|
||||
|
||||
var value = element.value,
|
||||
parent = element.parent;
|
||||
var isImplicitRule = element.column === parent.column && element.line === parent.line;
|
||||
|
||||
while (parent.type !== 'rule') {
|
||||
parent = parent.parent;
|
||||
if (!parent) return;
|
||||
} // short-circuit for the simplest case
|
||||
|
||||
|
||||
if (element.props.length === 1 && value.charCodeAt(0) !== 58
|
||||
/* colon */
|
||||
&& !fixedElements.get(parent)) {
|
||||
return;
|
||||
} // 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"
|
||||
|
||||
|
||||
if (isImplicitRule) {
|
||||
return;
|
||||
}
|
||||
|
||||
fixedElements.set(element, true);
|
||||
var points = [];
|
||||
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;
|
||||
|
||||
if ( // charcode for l
|
||||
value.charCodeAt(0) === 108 && // charcode for b
|
||||
value.charCodeAt(2) === 98) {
|
||||
// this ignores label
|
||||
element["return"] = '';
|
||||
element.value = '';
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
/* eslint-disable no-fallthrough */
|
||||
|
||||
function prefix(value, length) {
|
||||
switch (stylis.hash(value, length)) {
|
||||
// color-adjust
|
||||
case 5103:
|
||||
return stylis.WEBKIT + 'print-' + value + value;
|
||||
// animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
|
||||
|
||||
case 5737:
|
||||
case 4201:
|
||||
case 3177:
|
||||
case 3433:
|
||||
case 1641:
|
||||
case 4457:
|
||||
case 2921: // text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break
|
||||
|
||||
case 5572:
|
||||
case 6356:
|
||||
case 5844:
|
||||
case 3191:
|
||||
case 6645:
|
||||
case 3005: // mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite,
|
||||
|
||||
case 6391:
|
||||
case 5879:
|
||||
case 5623:
|
||||
case 6135:
|
||||
case 4599:
|
||||
case 4855: // background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width)
|
||||
|
||||
case 4215:
|
||||
case 6389:
|
||||
case 5109:
|
||||
case 5365:
|
||||
case 5621:
|
||||
case 3829:
|
||||
return stylis.WEBKIT + value + value;
|
||||
// appearance, user-select, transform, hyphens, text-size-adjust
|
||||
|
||||
case 5349:
|
||||
case 4246:
|
||||
case 4810:
|
||||
case 6968:
|
||||
case 2756:
|
||||
return stylis.WEBKIT + value + stylis.MOZ + value + stylis.MS + value + value;
|
||||
// flex, flex-direction
|
||||
|
||||
case 6828:
|
||||
case 4268:
|
||||
return stylis.WEBKIT + value + stylis.MS + value + value;
|
||||
// order
|
||||
|
||||
case 6165:
|
||||
return stylis.WEBKIT + value + stylis.MS + 'flex-' + value + value;
|
||||
// align-items
|
||||
|
||||
case 5187:
|
||||
return stylis.WEBKIT + value + stylis.replace(value, /(\w+).+(:[^]+)/, stylis.WEBKIT + 'box-$1$2' + stylis.MS + 'flex-$1$2') + value;
|
||||
// align-self
|
||||
|
||||
case 5443:
|
||||
return stylis.WEBKIT + value + stylis.MS + 'flex-item-' + stylis.replace(value, /flex-|-self/, '') + value;
|
||||
// align-content
|
||||
|
||||
case 4675:
|
||||
return stylis.WEBKIT + value + stylis.MS + 'flex-line-pack' + stylis.replace(value, /align-content|flex-|-self/, '') + value;
|
||||
// flex-shrink
|
||||
|
||||
case 5548:
|
||||
return stylis.WEBKIT + value + stylis.MS + stylis.replace(value, 'shrink', 'negative') + value;
|
||||
// flex-basis
|
||||
|
||||
case 5292:
|
||||
return stylis.WEBKIT + value + stylis.MS + stylis.replace(value, 'basis', 'preferred-size') + value;
|
||||
// flex-grow
|
||||
|
||||
case 6060:
|
||||
return stylis.WEBKIT + 'box-' + stylis.replace(value, '-grow', '') + stylis.WEBKIT + value + stylis.MS + stylis.replace(value, 'grow', 'positive') + value;
|
||||
// transition
|
||||
|
||||
case 4554:
|
||||
return stylis.WEBKIT + stylis.replace(value, /([^-])(transform)/g, '$1' + stylis.WEBKIT + '$2') + value;
|
||||
// cursor
|
||||
|
||||
case 6187:
|
||||
return stylis.replace(stylis.replace(stylis.replace(value, /(zoom-|grab)/, stylis.WEBKIT + '$1'), /(image-set)/, stylis.WEBKIT + '$1'), value, '') + value;
|
||||
// background, background-image
|
||||
|
||||
case 5495:
|
||||
case 3959:
|
||||
return stylis.replace(value, /(image-set\([^]*)/, stylis.WEBKIT + '$1' + '$`$1');
|
||||
// justify-content
|
||||
|
||||
case 4968:
|
||||
return stylis.replace(stylis.replace(value, /(.+:)(flex-)?(.*)/, stylis.WEBKIT + 'box-pack:$3' + stylis.MS + 'flex-pack:$3'), /s.+-b[^;]+/, 'justify') + stylis.WEBKIT + value + value;
|
||||
// (margin|padding)-inline-(start|end)
|
||||
|
||||
case 4095:
|
||||
case 3583:
|
||||
case 4068:
|
||||
case 2532:
|
||||
return stylis.replace(value, /(.+)-inline(.+)/, stylis.WEBKIT + '$1$2') + value;
|
||||
// (min|max)?(width|height|inline-size|block-size)
|
||||
|
||||
case 8116:
|
||||
case 7059:
|
||||
case 5753:
|
||||
case 5535:
|
||||
case 5445:
|
||||
case 5701:
|
||||
case 4933:
|
||||
case 4677:
|
||||
case 5533:
|
||||
case 5789:
|
||||
case 5021:
|
||||
case 4765:
|
||||
// stretch, max-content, min-content, fill-available
|
||||
if (stylis.strlen(value) - 1 - length > 6) switch (stylis.charat(value, length + 1)) {
|
||||
// (m)ax-content, (m)in-content
|
||||
case 109:
|
||||
// -
|
||||
if (stylis.charat(value, length + 4) !== 45) break;
|
||||
// (f)ill-available, (f)it-content
|
||||
|
||||
case 102:
|
||||
return stylis.replace(value, /(.+:)(.+)-([^]+)/, '$1' + stylis.WEBKIT + '$2-$3' + '$1' + stylis.MOZ + (stylis.charat(value, length + 3) == 108 ? '$3' : '$2-$3')) + value;
|
||||
// (s)tretch
|
||||
|
||||
case 115:
|
||||
return ~stylis.indexof(value, 'stretch') ? prefix(stylis.replace(value, 'stretch', 'fill-available'), length) + value : value;
|
||||
}
|
||||
break;
|
||||
// position: sticky
|
||||
|
||||
case 4949:
|
||||
// (s)ticky?
|
||||
if (stylis.charat(value, length + 1) !== 115) break;
|
||||
// display: (flex|inline-flex)
|
||||
|
||||
case 6444:
|
||||
switch (stylis.charat(value, stylis.strlen(value) - 3 - (~stylis.indexof(value, '!important') && 10))) {
|
||||
// stic(k)y
|
||||
case 107:
|
||||
return stylis.replace(value, ':', ':' + stylis.WEBKIT) + value;
|
||||
// (inline-)?fl(e)x
|
||||
|
||||
case 101:
|
||||
return stylis.replace(value, /(.+:)([^;!]+)(;|!.+)?/, '$1' + stylis.WEBKIT + (stylis.charat(value, 14) === 45 ? 'inline-' : '') + 'box$3' + '$1' + stylis.WEBKIT + '$2$3' + '$1' + stylis.MS + '$2box$3') + value;
|
||||
}
|
||||
|
||||
break;
|
||||
// writing-mode
|
||||
|
||||
case 5936:
|
||||
switch (stylis.charat(value, length + 11)) {
|
||||
// vertical-l(r)
|
||||
case 114:
|
||||
return stylis.WEBKIT + value + stylis.MS + stylis.replace(value, /[svh]\w+-[tblr]{2}/, 'tb') + value;
|
||||
// vertical-r(l)
|
||||
|
||||
case 108:
|
||||
return stylis.WEBKIT + value + stylis.MS + stylis.replace(value, /[svh]\w+-[tblr]{2}/, 'tb-rl') + value;
|
||||
// horizontal(-)tb
|
||||
|
||||
case 45:
|
||||
return stylis.WEBKIT + value + stylis.MS + stylis.replace(value, /[svh]\w+-[tblr]{2}/, 'lr') + value;
|
||||
}
|
||||
|
||||
return stylis.WEBKIT + value + stylis.MS + value + value;
|
||||
}
|
||||
|
||||
return value;
|
||||
}
|
||||
|
||||
var prefixer = function prefixer(element, index, children, callback) {
|
||||
if (element.length > -1) if (!element["return"]) switch (element.type) {
|
||||
case stylis.DECLARATION:
|
||||
element["return"] = prefix(element.value, element.length);
|
||||
break;
|
||||
|
||||
case stylis.KEYFRAMES:
|
||||
return stylis.serialize([stylis.copy(element, {
|
||||
value: stylis.replace(element.value, '@', '@' + stylis.WEBKIT)
|
||||
})], callback);
|
||||
|
||||
case stylis.RULESET:
|
||||
if (element.length) return stylis.combine(element.props, function (value) {
|
||||
switch (stylis.match(value, /(::plac\w+|:read-\w+)/)) {
|
||||
// :read-(only|write)
|
||||
case ':read-only':
|
||||
case ':read-write':
|
||||
return stylis.serialize([stylis.copy(element, {
|
||||
props: [stylis.replace(value, /:(read-\w+)/, ':' + stylis.MOZ + '$1')]
|
||||
})], callback);
|
||||
// :placeholder
|
||||
|
||||
case '::placeholder':
|
||||
return stylis.serialize([stylis.copy(element, {
|
||||
props: [stylis.replace(value, /:(plac\w+)/, ':' + stylis.WEBKIT + 'input-$1')]
|
||||
}), stylis.copy(element, {
|
||||
props: [stylis.replace(value, /:(plac\w+)/, ':' + stylis.MOZ + '$1')]
|
||||
}), stylis.copy(element, {
|
||||
props: [stylis.replace(value, /:(plac\w+)/, stylis.MS + 'input-$1')]
|
||||
})], callback);
|
||||
}
|
||||
|
||||
return '';
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
/* import type { StylisPlugin } from './types' */
|
||||
|
||||
/*
|
||||
export type Options = {
|
||||
nonce?: string,
|
||||
stylisPlugins?: StylisPlugin[],
|
||||
key: string,
|
||||
container?: HTMLElement,
|
||||
speedy?: boolean,
|
||||
prepend?: boolean,
|
||||
insertionPoint?: HTMLElement
|
||||
}
|
||||
*/
|
||||
|
||||
var getServerStylisCache = weakMemoize__default["default"](function () {
|
||||
return memoize__default["default"](function () {
|
||||
var cache = {};
|
||||
return function (name) {
|
||||
return cache[name];
|
||||
};
|
||||
});
|
||||
});
|
||||
var defaultStylisPlugins = [prefixer];
|
||||
|
||||
var createCache = function
|
||||
/*: EmotionCache */
|
||||
createCache(options
|
||||
/*: Options */
|
||||
) {
|
||||
var key = options.key;
|
||||
|
||||
var stylisPlugins = options.stylisPlugins || defaultStylisPlugins;
|
||||
|
||||
var inserted = {};
|
||||
var container;
|
||||
/* : Node */
|
||||
|
||||
var nodesToHydrate = [];
|
||||
|
||||
var _insert;
|
||||
/*: (
|
||||
selector: string,
|
||||
serialized: SerializedStyles,
|
||||
sheet: StyleSheet,
|
||||
shouldCache: boolean
|
||||
) => string | void */
|
||||
|
||||
|
||||
var omnipresentPlugins = [compat, removeLabel];
|
||||
|
||||
{
|
||||
var _finalizingPlugins = [stylis.stringify];
|
||||
|
||||
var _serializer = stylis.middleware(omnipresentPlugins.concat(stylisPlugins, _finalizingPlugins));
|
||||
|
||||
var _stylis = function _stylis(styles) {
|
||||
return stylis.serialize(stylis.compile(styles), _serializer);
|
||||
};
|
||||
|
||||
var serverStylisCache = getServerStylisCache(stylisPlugins)(key);
|
||||
|
||||
var getRules = function
|
||||
/*: string */
|
||||
getRules(selector
|
||||
/*: string */
|
||||
, serialized
|
||||
/*: SerializedStyles */
|
||||
) {
|
||||
var name = serialized.name;
|
||||
|
||||
if (serverStylisCache[name] === undefined) {
|
||||
serverStylisCache[name] = _stylis(selector ? selector + "{" + serialized.styles + "}" : serialized.styles);
|
||||
}
|
||||
|
||||
return serverStylisCache[name];
|
||||
};
|
||||
|
||||
_insert = function
|
||||
/*: string | void */
|
||||
_insert(selector
|
||||
/*: string */
|
||||
, serialized
|
||||
/*: SerializedStyles */
|
||||
, sheet
|
||||
/*: StyleSheet */
|
||||
, shouldCache
|
||||
/*: boolean */
|
||||
) {
|
||||
var name = serialized.name;
|
||||
var rules = getRules(selector, serialized);
|
||||
|
||||
if (cache.compat === undefined) {
|
||||
// in regular mode, we don't set the styles on the inserted cache
|
||||
// since we don't need to and that would be wasting memory
|
||||
// we return them so that they are rendered in a style tag
|
||||
if (shouldCache) {
|
||||
cache.inserted[name] = true;
|
||||
}
|
||||
|
||||
return rules;
|
||||
} else {
|
||||
// in compat mode, we put the styles on the inserted cache so
|
||||
// that emotion-server can pull out the styles
|
||||
// except when we don't want to cache it which was in Global but now
|
||||
// is nowhere but we don't want to do a major right now
|
||||
// and just in case we're going to leave the case here
|
||||
// it's also not affecting client side bundle size
|
||||
// so it's really not a big deal
|
||||
if (shouldCache) {
|
||||
cache.inserted[name] = rules;
|
||||
} else {
|
||||
return rules;
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
var cache
|
||||
/*: EmotionCache */
|
||||
= {
|
||||
key: key,
|
||||
sheet: new sheet.StyleSheet({
|
||||
key: key,
|
||||
container: container,
|
||||
nonce: options.nonce,
|
||||
speedy: options.speedy,
|
||||
prepend: options.prepend,
|
||||
insertionPoint: options.insertionPoint
|
||||
}),
|
||||
nonce: options.nonce,
|
||||
inserted: inserted,
|
||||
registered: {},
|
||||
insert: _insert
|
||||
};
|
||||
cache.sheet.hydrate(nodesToHydrate);
|
||||
return cache;
|
||||
};
|
||||
|
||||
exports["default"] = createCache;
|
||||
2
backend/frontend/node_modules/@emotion/cache/dist/emotion-cache.edge-light.cjs.mjs
generated
vendored
Normal file
2
backend/frontend/node_modules/@emotion/cache/dist/emotion-cache.edge-light.cjs.mjs
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import "./emotion-cache.edge-light.cjs.js";
|
||||
export { _default as default } from "./emotion-cache.edge-light.cjs.default.js";
|
||||
481
backend/frontend/node_modules/@emotion/cache/dist/emotion-cache.edge-light.esm.js
generated
vendored
Normal file
481
backend/frontend/node_modules/@emotion/cache/dist/emotion-cache.edge-light.esm.js
generated
vendored
Normal file
@@ -0,0 +1,481 @@
|
||||
import { StyleSheet } from '@emotion/sheet';
|
||||
import { dealloc, alloc, next, token, from, peek, delimit, slice, position, RULESET, combine, match, serialize, copy, replace, WEBKIT, MOZ, MS, KEYFRAMES, DECLARATION, hash, charat, strlen, indexof, middleware, stringify, compile } from 'stylis';
|
||||
import weakMemoize from '@emotion/weak-memoize';
|
||||
import memoize from '@emotion/memoize';
|
||||
|
||||
var identifierWithPointTracking = function identifierWithPointTracking(begin, points, index) {
|
||||
var previous = 0;
|
||||
var character = 0;
|
||||
|
||||
while (true) {
|
||||
previous = character;
|
||||
character = peek(); // &\f
|
||||
|
||||
if (previous === 38 && character === 12) {
|
||||
points[index] = 1;
|
||||
}
|
||||
|
||||
if (token(character)) {
|
||||
break;
|
||||
}
|
||||
|
||||
next();
|
||||
}
|
||||
|
||||
return slice(begin, position);
|
||||
};
|
||||
|
||||
var toRules = function toRules(parsed, points) {
|
||||
// pretend we've started with a comma
|
||||
var index = -1;
|
||||
var character = 44;
|
||||
|
||||
do {
|
||||
switch (token(character)) {
|
||||
case 0:
|
||||
// &\f
|
||||
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
|
||||
points[index] = 1;
|
||||
}
|
||||
|
||||
parsed[index] += identifierWithPointTracking(position - 1, points, index);
|
||||
break;
|
||||
|
||||
case 2:
|
||||
parsed[index] += delimit(character);
|
||||
break;
|
||||
|
||||
case 4:
|
||||
// comma
|
||||
if (character === 44) {
|
||||
// colon
|
||||
parsed[++index] = peek() === 58 ? '&\f' : '';
|
||||
points[index] = parsed[index].length;
|
||||
break;
|
||||
}
|
||||
|
||||
// fallthrough
|
||||
|
||||
default:
|
||||
parsed[index] += from(character);
|
||||
}
|
||||
} while (character = next());
|
||||
|
||||
return parsed;
|
||||
};
|
||||
|
||||
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
|
||||
element.length < 1) {
|
||||
return;
|
||||
}
|
||||
|
||||
var value = element.value,
|
||||
parent = element.parent;
|
||||
var isImplicitRule = element.column === parent.column && element.line === parent.line;
|
||||
|
||||
while (parent.type !== 'rule') {
|
||||
parent = parent.parent;
|
||||
if (!parent) return;
|
||||
} // short-circuit for the simplest case
|
||||
|
||||
|
||||
if (element.props.length === 1 && value.charCodeAt(0) !== 58
|
||||
/* colon */
|
||||
&& !fixedElements.get(parent)) {
|
||||
return;
|
||||
} // 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"
|
||||
|
||||
|
||||
if (isImplicitRule) {
|
||||
return;
|
||||
}
|
||||
|
||||
fixedElements.set(element, true);
|
||||
var points = [];
|
||||
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;
|
||||
|
||||
if ( // charcode for l
|
||||
value.charCodeAt(0) === 108 && // charcode for b
|
||||
value.charCodeAt(2) === 98) {
|
||||
// this ignores label
|
||||
element["return"] = '';
|
||||
element.value = '';
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
/* eslint-disable no-fallthrough */
|
||||
|
||||
function prefix(value, length) {
|
||||
switch (hash(value, length)) {
|
||||
// color-adjust
|
||||
case 5103:
|
||||
return WEBKIT + 'print-' + value + value;
|
||||
// animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
|
||||
|
||||
case 5737:
|
||||
case 4201:
|
||||
case 3177:
|
||||
case 3433:
|
||||
case 1641:
|
||||
case 4457:
|
||||
case 2921: // text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break
|
||||
|
||||
case 5572:
|
||||
case 6356:
|
||||
case 5844:
|
||||
case 3191:
|
||||
case 6645:
|
||||
case 3005: // mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite,
|
||||
|
||||
case 6391:
|
||||
case 5879:
|
||||
case 5623:
|
||||
case 6135:
|
||||
case 4599:
|
||||
case 4855: // background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width)
|
||||
|
||||
case 4215:
|
||||
case 6389:
|
||||
case 5109:
|
||||
case 5365:
|
||||
case 5621:
|
||||
case 3829:
|
||||
return WEBKIT + value + value;
|
||||
// appearance, user-select, transform, hyphens, text-size-adjust
|
||||
|
||||
case 5349:
|
||||
case 4246:
|
||||
case 4810:
|
||||
case 6968:
|
||||
case 2756:
|
||||
return WEBKIT + value + MOZ + value + MS + value + value;
|
||||
// flex, flex-direction
|
||||
|
||||
case 6828:
|
||||
case 4268:
|
||||
return WEBKIT + value + MS + value + value;
|
||||
// order
|
||||
|
||||
case 6165:
|
||||
return WEBKIT + value + MS + 'flex-' + value + value;
|
||||
// align-items
|
||||
|
||||
case 5187:
|
||||
return WEBKIT + value + replace(value, /(\w+).+(:[^]+)/, WEBKIT + 'box-$1$2' + MS + 'flex-$1$2') + value;
|
||||
// align-self
|
||||
|
||||
case 5443:
|
||||
return WEBKIT + value + MS + 'flex-item-' + replace(value, /flex-|-self/, '') + value;
|
||||
// align-content
|
||||
|
||||
case 4675:
|
||||
return WEBKIT + value + MS + 'flex-line-pack' + replace(value, /align-content|flex-|-self/, '') + value;
|
||||
// flex-shrink
|
||||
|
||||
case 5548:
|
||||
return WEBKIT + value + MS + replace(value, 'shrink', 'negative') + value;
|
||||
// flex-basis
|
||||
|
||||
case 5292:
|
||||
return WEBKIT + value + MS + replace(value, 'basis', 'preferred-size') + value;
|
||||
// flex-grow
|
||||
|
||||
case 6060:
|
||||
return WEBKIT + 'box-' + replace(value, '-grow', '') + WEBKIT + value + MS + replace(value, 'grow', 'positive') + value;
|
||||
// transition
|
||||
|
||||
case 4554:
|
||||
return WEBKIT + replace(value, /([^-])(transform)/g, '$1' + WEBKIT + '$2') + value;
|
||||
// cursor
|
||||
|
||||
case 6187:
|
||||
return replace(replace(replace(value, /(zoom-|grab)/, WEBKIT + '$1'), /(image-set)/, WEBKIT + '$1'), value, '') + value;
|
||||
// background, background-image
|
||||
|
||||
case 5495:
|
||||
case 3959:
|
||||
return replace(value, /(image-set\([^]*)/, WEBKIT + '$1' + '$`$1');
|
||||
// justify-content
|
||||
|
||||
case 4968:
|
||||
return replace(replace(value, /(.+:)(flex-)?(.*)/, WEBKIT + 'box-pack:$3' + MS + 'flex-pack:$3'), /s.+-b[^;]+/, 'justify') + WEBKIT + value + value;
|
||||
// (margin|padding)-inline-(start|end)
|
||||
|
||||
case 4095:
|
||||
case 3583:
|
||||
case 4068:
|
||||
case 2532:
|
||||
return replace(value, /(.+)-inline(.+)/, WEBKIT + '$1$2') + value;
|
||||
// (min|max)?(width|height|inline-size|block-size)
|
||||
|
||||
case 8116:
|
||||
case 7059:
|
||||
case 5753:
|
||||
case 5535:
|
||||
case 5445:
|
||||
case 5701:
|
||||
case 4933:
|
||||
case 4677:
|
||||
case 5533:
|
||||
case 5789:
|
||||
case 5021:
|
||||
case 4765:
|
||||
// stretch, max-content, min-content, fill-available
|
||||
if (strlen(value) - 1 - length > 6) switch (charat(value, length + 1)) {
|
||||
// (m)ax-content, (m)in-content
|
||||
case 109:
|
||||
// -
|
||||
if (charat(value, length + 4) !== 45) break;
|
||||
// (f)ill-available, (f)it-content
|
||||
|
||||
case 102:
|
||||
return replace(value, /(.+:)(.+)-([^]+)/, '$1' + WEBKIT + '$2-$3' + '$1' + MOZ + (charat(value, length + 3) == 108 ? '$3' : '$2-$3')) + value;
|
||||
// (s)tretch
|
||||
|
||||
case 115:
|
||||
return ~indexof(value, 'stretch') ? prefix(replace(value, 'stretch', 'fill-available'), length) + value : value;
|
||||
}
|
||||
break;
|
||||
// position: sticky
|
||||
|
||||
case 4949:
|
||||
// (s)ticky?
|
||||
if (charat(value, length + 1) !== 115) break;
|
||||
// display: (flex|inline-flex)
|
||||
|
||||
case 6444:
|
||||
switch (charat(value, strlen(value) - 3 - (~indexof(value, '!important') && 10))) {
|
||||
// stic(k)y
|
||||
case 107:
|
||||
return replace(value, ':', ':' + WEBKIT) + value;
|
||||
// (inline-)?fl(e)x
|
||||
|
||||
case 101:
|
||||
return replace(value, /(.+:)([^;!]+)(;|!.+)?/, '$1' + WEBKIT + (charat(value, 14) === 45 ? 'inline-' : '') + 'box$3' + '$1' + WEBKIT + '$2$3' + '$1' + MS + '$2box$3') + value;
|
||||
}
|
||||
|
||||
break;
|
||||
// writing-mode
|
||||
|
||||
case 5936:
|
||||
switch (charat(value, length + 11)) {
|
||||
// vertical-l(r)
|
||||
case 114:
|
||||
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'tb') + value;
|
||||
// vertical-r(l)
|
||||
|
||||
case 108:
|
||||
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'tb-rl') + value;
|
||||
// horizontal(-)tb
|
||||
|
||||
case 45:
|
||||
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'lr') + value;
|
||||
}
|
||||
|
||||
return WEBKIT + value + MS + value + value;
|
||||
}
|
||||
|
||||
return value;
|
||||
}
|
||||
|
||||
var prefixer = function prefixer(element, index, children, callback) {
|
||||
if (element.length > -1) if (!element["return"]) switch (element.type) {
|
||||
case DECLARATION:
|
||||
element["return"] = prefix(element.value, element.length);
|
||||
break;
|
||||
|
||||
case KEYFRAMES:
|
||||
return serialize([copy(element, {
|
||||
value: replace(element.value, '@', '@' + WEBKIT)
|
||||
})], callback);
|
||||
|
||||
case RULESET:
|
||||
if (element.length) return combine(element.props, function (value) {
|
||||
switch (match(value, /(::plac\w+|:read-\w+)/)) {
|
||||
// :read-(only|write)
|
||||
case ':read-only':
|
||||
case ':read-write':
|
||||
return serialize([copy(element, {
|
||||
props: [replace(value, /:(read-\w+)/, ':' + MOZ + '$1')]
|
||||
})], callback);
|
||||
// :placeholder
|
||||
|
||||
case '::placeholder':
|
||||
return serialize([copy(element, {
|
||||
props: [replace(value, /:(plac\w+)/, ':' + WEBKIT + 'input-$1')]
|
||||
}), copy(element, {
|
||||
props: [replace(value, /:(plac\w+)/, ':' + MOZ + '$1')]
|
||||
}), copy(element, {
|
||||
props: [replace(value, /:(plac\w+)/, MS + 'input-$1')]
|
||||
})], callback);
|
||||
}
|
||||
|
||||
return '';
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
/* import type { StylisPlugin } from './types' */
|
||||
|
||||
/*
|
||||
export type Options = {
|
||||
nonce?: string,
|
||||
stylisPlugins?: StylisPlugin[],
|
||||
key: string,
|
||||
container?: HTMLElement,
|
||||
speedy?: boolean,
|
||||
prepend?: boolean,
|
||||
insertionPoint?: HTMLElement
|
||||
}
|
||||
*/
|
||||
|
||||
var getServerStylisCache = weakMemoize(function () {
|
||||
return memoize(function () {
|
||||
var cache = {};
|
||||
return function (name) {
|
||||
return cache[name];
|
||||
};
|
||||
});
|
||||
});
|
||||
var defaultStylisPlugins = [prefixer];
|
||||
|
||||
var createCache = function
|
||||
/*: EmotionCache */
|
||||
createCache(options
|
||||
/*: Options */
|
||||
) {
|
||||
var key = options.key;
|
||||
|
||||
var stylisPlugins = options.stylisPlugins || defaultStylisPlugins;
|
||||
|
||||
var inserted = {};
|
||||
var container;
|
||||
/* : Node */
|
||||
|
||||
var nodesToHydrate = [];
|
||||
|
||||
var _insert;
|
||||
/*: (
|
||||
selector: string,
|
||||
serialized: SerializedStyles,
|
||||
sheet: StyleSheet,
|
||||
shouldCache: boolean
|
||||
) => string | void */
|
||||
|
||||
|
||||
var omnipresentPlugins = [compat, removeLabel];
|
||||
|
||||
{
|
||||
var _finalizingPlugins = [stringify];
|
||||
|
||||
var _serializer = middleware(omnipresentPlugins.concat(stylisPlugins, _finalizingPlugins));
|
||||
|
||||
var _stylis = function _stylis(styles) {
|
||||
return serialize(compile(styles), _serializer);
|
||||
};
|
||||
|
||||
var serverStylisCache = getServerStylisCache(stylisPlugins)(key);
|
||||
|
||||
var getRules = function
|
||||
/*: string */
|
||||
getRules(selector
|
||||
/*: string */
|
||||
, serialized
|
||||
/*: SerializedStyles */
|
||||
) {
|
||||
var name = serialized.name;
|
||||
|
||||
if (serverStylisCache[name] === undefined) {
|
||||
serverStylisCache[name] = _stylis(selector ? selector + "{" + serialized.styles + "}" : serialized.styles);
|
||||
}
|
||||
|
||||
return serverStylisCache[name];
|
||||
};
|
||||
|
||||
_insert = function
|
||||
/*: string | void */
|
||||
_insert(selector
|
||||
/*: string */
|
||||
, serialized
|
||||
/*: SerializedStyles */
|
||||
, sheet
|
||||
/*: StyleSheet */
|
||||
, shouldCache
|
||||
/*: boolean */
|
||||
) {
|
||||
var name = serialized.name;
|
||||
var rules = getRules(selector, serialized);
|
||||
|
||||
if (cache.compat === undefined) {
|
||||
// in regular mode, we don't set the styles on the inserted cache
|
||||
// since we don't need to and that would be wasting memory
|
||||
// we return them so that they are rendered in a style tag
|
||||
if (shouldCache) {
|
||||
cache.inserted[name] = true;
|
||||
}
|
||||
|
||||
return rules;
|
||||
} else {
|
||||
// in compat mode, we put the styles on the inserted cache so
|
||||
// that emotion-server can pull out the styles
|
||||
// except when we don't want to cache it which was in Global but now
|
||||
// is nowhere but we don't want to do a major right now
|
||||
// and just in case we're going to leave the case here
|
||||
// it's also not affecting client side bundle size
|
||||
// so it's really not a big deal
|
||||
if (shouldCache) {
|
||||
cache.inserted[name] = rules;
|
||||
} else {
|
||||
return rules;
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
var cache
|
||||
/*: EmotionCache */
|
||||
= {
|
||||
key: key,
|
||||
sheet: new StyleSheet({
|
||||
key: key,
|
||||
container: container,
|
||||
nonce: options.nonce,
|
||||
speedy: options.speedy,
|
||||
prepend: options.prepend,
|
||||
insertionPoint: options.insertionPoint
|
||||
}),
|
||||
nonce: options.nonce,
|
||||
inserted: inserted,
|
||||
registered: {},
|
||||
insert: _insert
|
||||
};
|
||||
cache.sheet.hydrate(nodesToHydrate);
|
||||
return cache;
|
||||
};
|
||||
|
||||
export { createCache as default };
|
||||
556
backend/frontend/node_modules/@emotion/cache/dist/emotion-cache.esm.js
generated
vendored
Normal file
556
backend/frontend/node_modules/@emotion/cache/dist/emotion-cache.esm.js
generated
vendored
Normal file
@@ -0,0 +1,556 @@
|
||||
import { StyleSheet } from '@emotion/sheet';
|
||||
import { dealloc, alloc, next, token, from, peek, delimit, slice, position, RULESET, combine, match, serialize, copy, replace, WEBKIT, MOZ, MS, KEYFRAMES, DECLARATION, hash, charat, strlen, indexof, stringify, rulesheet, middleware, compile } from 'stylis';
|
||||
import weakMemoize from '@emotion/weak-memoize';
|
||||
import memoize from '@emotion/memoize';
|
||||
|
||||
var isBrowser = typeof document !== 'undefined';
|
||||
|
||||
var identifierWithPointTracking = function identifierWithPointTracking(begin, points, index) {
|
||||
var previous = 0;
|
||||
var character = 0;
|
||||
|
||||
while (true) {
|
||||
previous = character;
|
||||
character = peek(); // &\f
|
||||
|
||||
if (previous === 38 && character === 12) {
|
||||
points[index] = 1;
|
||||
}
|
||||
|
||||
if (token(character)) {
|
||||
break;
|
||||
}
|
||||
|
||||
next();
|
||||
}
|
||||
|
||||
return slice(begin, position);
|
||||
};
|
||||
|
||||
var toRules = function toRules(parsed, points) {
|
||||
// pretend we've started with a comma
|
||||
var index = -1;
|
||||
var character = 44;
|
||||
|
||||
do {
|
||||
switch (token(character)) {
|
||||
case 0:
|
||||
// &\f
|
||||
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
|
||||
points[index] = 1;
|
||||
}
|
||||
|
||||
parsed[index] += identifierWithPointTracking(position - 1, points, index);
|
||||
break;
|
||||
|
||||
case 2:
|
||||
parsed[index] += delimit(character);
|
||||
break;
|
||||
|
||||
case 4:
|
||||
// comma
|
||||
if (character === 44) {
|
||||
// colon
|
||||
parsed[++index] = peek() === 58 ? '&\f' : '';
|
||||
points[index] = parsed[index].length;
|
||||
break;
|
||||
}
|
||||
|
||||
// fallthrough
|
||||
|
||||
default:
|
||||
parsed[index] += from(character);
|
||||
}
|
||||
} while (character = next());
|
||||
|
||||
return parsed;
|
||||
};
|
||||
|
||||
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
|
||||
element.length < 1) {
|
||||
return;
|
||||
}
|
||||
|
||||
var value = element.value,
|
||||
parent = element.parent;
|
||||
var isImplicitRule = element.column === parent.column && element.line === parent.line;
|
||||
|
||||
while (parent.type !== 'rule') {
|
||||
parent = parent.parent;
|
||||
if (!parent) return;
|
||||
} // short-circuit for the simplest case
|
||||
|
||||
|
||||
if (element.props.length === 1 && value.charCodeAt(0) !== 58
|
||||
/* colon */
|
||||
&& !fixedElements.get(parent)) {
|
||||
return;
|
||||
} // 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"
|
||||
|
||||
|
||||
if (isImplicitRule) {
|
||||
return;
|
||||
}
|
||||
|
||||
fixedElements.set(element, true);
|
||||
var points = [];
|
||||
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;
|
||||
|
||||
if ( // charcode for l
|
||||
value.charCodeAt(0) === 108 && // charcode for b
|
||||
value.charCodeAt(2) === 98) {
|
||||
// this ignores label
|
||||
element["return"] = '';
|
||||
element.value = '';
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
/* eslint-disable no-fallthrough */
|
||||
|
||||
function prefix(value, length) {
|
||||
switch (hash(value, length)) {
|
||||
// color-adjust
|
||||
case 5103:
|
||||
return WEBKIT + 'print-' + value + value;
|
||||
// animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
|
||||
|
||||
case 5737:
|
||||
case 4201:
|
||||
case 3177:
|
||||
case 3433:
|
||||
case 1641:
|
||||
case 4457:
|
||||
case 2921: // text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break
|
||||
|
||||
case 5572:
|
||||
case 6356:
|
||||
case 5844:
|
||||
case 3191:
|
||||
case 6645:
|
||||
case 3005: // mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite,
|
||||
|
||||
case 6391:
|
||||
case 5879:
|
||||
case 5623:
|
||||
case 6135:
|
||||
case 4599:
|
||||
case 4855: // background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width)
|
||||
|
||||
case 4215:
|
||||
case 6389:
|
||||
case 5109:
|
||||
case 5365:
|
||||
case 5621:
|
||||
case 3829:
|
||||
return WEBKIT + value + value;
|
||||
// appearance, user-select, transform, hyphens, text-size-adjust
|
||||
|
||||
case 5349:
|
||||
case 4246:
|
||||
case 4810:
|
||||
case 6968:
|
||||
case 2756:
|
||||
return WEBKIT + value + MOZ + value + MS + value + value;
|
||||
// flex, flex-direction
|
||||
|
||||
case 6828:
|
||||
case 4268:
|
||||
return WEBKIT + value + MS + value + value;
|
||||
// order
|
||||
|
||||
case 6165:
|
||||
return WEBKIT + value + MS + 'flex-' + value + value;
|
||||
// align-items
|
||||
|
||||
case 5187:
|
||||
return WEBKIT + value + replace(value, /(\w+).+(:[^]+)/, WEBKIT + 'box-$1$2' + MS + 'flex-$1$2') + value;
|
||||
// align-self
|
||||
|
||||
case 5443:
|
||||
return WEBKIT + value + MS + 'flex-item-' + replace(value, /flex-|-self/, '') + value;
|
||||
// align-content
|
||||
|
||||
case 4675:
|
||||
return WEBKIT + value + MS + 'flex-line-pack' + replace(value, /align-content|flex-|-self/, '') + value;
|
||||
// flex-shrink
|
||||
|
||||
case 5548:
|
||||
return WEBKIT + value + MS + replace(value, 'shrink', 'negative') + value;
|
||||
// flex-basis
|
||||
|
||||
case 5292:
|
||||
return WEBKIT + value + MS + replace(value, 'basis', 'preferred-size') + value;
|
||||
// flex-grow
|
||||
|
||||
case 6060:
|
||||
return WEBKIT + 'box-' + replace(value, '-grow', '') + WEBKIT + value + MS + replace(value, 'grow', 'positive') + value;
|
||||
// transition
|
||||
|
||||
case 4554:
|
||||
return WEBKIT + replace(value, /([^-])(transform)/g, '$1' + WEBKIT + '$2') + value;
|
||||
// cursor
|
||||
|
||||
case 6187:
|
||||
return replace(replace(replace(value, /(zoom-|grab)/, WEBKIT + '$1'), /(image-set)/, WEBKIT + '$1'), value, '') + value;
|
||||
// background, background-image
|
||||
|
||||
case 5495:
|
||||
case 3959:
|
||||
return replace(value, /(image-set\([^]*)/, WEBKIT + '$1' + '$`$1');
|
||||
// justify-content
|
||||
|
||||
case 4968:
|
||||
return replace(replace(value, /(.+:)(flex-)?(.*)/, WEBKIT + 'box-pack:$3' + MS + 'flex-pack:$3'), /s.+-b[^;]+/, 'justify') + WEBKIT + value + value;
|
||||
// (margin|padding)-inline-(start|end)
|
||||
|
||||
case 4095:
|
||||
case 3583:
|
||||
case 4068:
|
||||
case 2532:
|
||||
return replace(value, /(.+)-inline(.+)/, WEBKIT + '$1$2') + value;
|
||||
// (min|max)?(width|height|inline-size|block-size)
|
||||
|
||||
case 8116:
|
||||
case 7059:
|
||||
case 5753:
|
||||
case 5535:
|
||||
case 5445:
|
||||
case 5701:
|
||||
case 4933:
|
||||
case 4677:
|
||||
case 5533:
|
||||
case 5789:
|
||||
case 5021:
|
||||
case 4765:
|
||||
// stretch, max-content, min-content, fill-available
|
||||
if (strlen(value) - 1 - length > 6) switch (charat(value, length + 1)) {
|
||||
// (m)ax-content, (m)in-content
|
||||
case 109:
|
||||
// -
|
||||
if (charat(value, length + 4) !== 45) break;
|
||||
// (f)ill-available, (f)it-content
|
||||
|
||||
case 102:
|
||||
return replace(value, /(.+:)(.+)-([^]+)/, '$1' + WEBKIT + '$2-$3' + '$1' + MOZ + (charat(value, length + 3) == 108 ? '$3' : '$2-$3')) + value;
|
||||
// (s)tretch
|
||||
|
||||
case 115:
|
||||
return ~indexof(value, 'stretch') ? prefix(replace(value, 'stretch', 'fill-available'), length) + value : value;
|
||||
}
|
||||
break;
|
||||
// position: sticky
|
||||
|
||||
case 4949:
|
||||
// (s)ticky?
|
||||
if (charat(value, length + 1) !== 115) break;
|
||||
// display: (flex|inline-flex)
|
||||
|
||||
case 6444:
|
||||
switch (charat(value, strlen(value) - 3 - (~indexof(value, '!important') && 10))) {
|
||||
// stic(k)y
|
||||
case 107:
|
||||
return replace(value, ':', ':' + WEBKIT) + value;
|
||||
// (inline-)?fl(e)x
|
||||
|
||||
case 101:
|
||||
return replace(value, /(.+:)([^;!]+)(;|!.+)?/, '$1' + WEBKIT + (charat(value, 14) === 45 ? 'inline-' : '') + 'box$3' + '$1' + WEBKIT + '$2$3' + '$1' + MS + '$2box$3') + value;
|
||||
}
|
||||
|
||||
break;
|
||||
// writing-mode
|
||||
|
||||
case 5936:
|
||||
switch (charat(value, length + 11)) {
|
||||
// vertical-l(r)
|
||||
case 114:
|
||||
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'tb') + value;
|
||||
// vertical-r(l)
|
||||
|
||||
case 108:
|
||||
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'tb-rl') + value;
|
||||
// horizontal(-)tb
|
||||
|
||||
case 45:
|
||||
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'lr') + value;
|
||||
}
|
||||
|
||||
return WEBKIT + value + MS + value + value;
|
||||
}
|
||||
|
||||
return value;
|
||||
}
|
||||
|
||||
var prefixer = function prefixer(element, index, children, callback) {
|
||||
if (element.length > -1) if (!element["return"]) switch (element.type) {
|
||||
case DECLARATION:
|
||||
element["return"] = prefix(element.value, element.length);
|
||||
break;
|
||||
|
||||
case KEYFRAMES:
|
||||
return serialize([copy(element, {
|
||||
value: replace(element.value, '@', '@' + WEBKIT)
|
||||
})], callback);
|
||||
|
||||
case RULESET:
|
||||
if (element.length) return combine(element.props, function (value) {
|
||||
switch (match(value, /(::plac\w+|:read-\w+)/)) {
|
||||
// :read-(only|write)
|
||||
case ':read-only':
|
||||
case ':read-write':
|
||||
return serialize([copy(element, {
|
||||
props: [replace(value, /:(read-\w+)/, ':' + MOZ + '$1')]
|
||||
})], callback);
|
||||
// :placeholder
|
||||
|
||||
case '::placeholder':
|
||||
return serialize([copy(element, {
|
||||
props: [replace(value, /:(plac\w+)/, ':' + WEBKIT + 'input-$1')]
|
||||
}), copy(element, {
|
||||
props: [replace(value, /:(plac\w+)/, ':' + MOZ + '$1')]
|
||||
}), copy(element, {
|
||||
props: [replace(value, /:(plac\w+)/, MS + 'input-$1')]
|
||||
})], callback);
|
||||
}
|
||||
|
||||
return '';
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
/* import type { StylisPlugin } from './types' */
|
||||
|
||||
/*
|
||||
export type Options = {
|
||||
nonce?: string,
|
||||
stylisPlugins?: StylisPlugin[],
|
||||
key: string,
|
||||
container?: HTMLElement,
|
||||
speedy?: boolean,
|
||||
prepend?: boolean,
|
||||
insertionPoint?: HTMLElement
|
||||
}
|
||||
*/
|
||||
|
||||
var getServerStylisCache = isBrowser ? undefined : weakMemoize(function () {
|
||||
return memoize(function () {
|
||||
var cache = {};
|
||||
return function (name) {
|
||||
return cache[name];
|
||||
};
|
||||
});
|
||||
});
|
||||
var defaultStylisPlugins = [prefixer];
|
||||
|
||||
var createCache = function
|
||||
/*: EmotionCache */
|
||||
createCache(options
|
||||
/*: Options */
|
||||
) {
|
||||
var key = options.key;
|
||||
|
||||
if (isBrowser && key === 'css') {
|
||||
var ssrStyles = document.querySelectorAll("style[data-emotion]:not([data-s])"); // get SSRed styles out of the way of React's hydration
|
||||
// document.head is a safe place to move them to(though note document.head is not necessarily the last place they will be)
|
||||
// note this very very intentionally targets all style elements regardless of the key to ensure
|
||||
// that creating a cache works inside of render of a React component
|
||||
|
||||
Array.prototype.forEach.call(ssrStyles, function (node
|
||||
/*: HTMLStyleElement */
|
||||
) {
|
||||
// we want to only move elements which have a space in the data-emotion attribute value
|
||||
// because that indicates that it is an Emotion 11 server-side rendered style elements
|
||||
// while we will already ignore Emotion 11 client-side inserted styles because of the :not([data-s]) part in the selector
|
||||
// Emotion 10 client-side inserted styles did not have data-s (but importantly did not have a space in their data-emotion attributes)
|
||||
// so checking for the space ensures that loading Emotion 11 after Emotion 10 has inserted some styles
|
||||
// will not result in the Emotion 10 styles being destroyed
|
||||
var dataEmotionAttribute = node.getAttribute('data-emotion');
|
||||
|
||||
if (dataEmotionAttribute.indexOf(' ') === -1) {
|
||||
return;
|
||||
}
|
||||
|
||||
document.head.appendChild(node);
|
||||
node.setAttribute('data-s', '');
|
||||
});
|
||||
}
|
||||
|
||||
var stylisPlugins = options.stylisPlugins || defaultStylisPlugins;
|
||||
|
||||
var inserted = {};
|
||||
var container;
|
||||
/* : Node */
|
||||
|
||||
var nodesToHydrate = [];
|
||||
|
||||
if (isBrowser) {
|
||||
container = options.container || document.head;
|
||||
Array.prototype.forEach.call( // this means we will ignore elements which don't have a space in them which
|
||||
// means that the style elements we're looking at are only Emotion 11 server-rendered style elements
|
||||
document.querySelectorAll("style[data-emotion^=\"" + key + " \"]"), function (node
|
||||
/*: HTMLStyleElement */
|
||||
) {
|
||||
var attrib = node.getAttribute("data-emotion").split(' ');
|
||||
|
||||
for (var i = 1; i < attrib.length; i++) {
|
||||
inserted[attrib[i]] = true;
|
||||
}
|
||||
|
||||
nodesToHydrate.push(node);
|
||||
});
|
||||
}
|
||||
|
||||
var _insert;
|
||||
/*: (
|
||||
selector: string,
|
||||
serialized: SerializedStyles,
|
||||
sheet: StyleSheet,
|
||||
shouldCache: boolean
|
||||
) => string | void */
|
||||
|
||||
|
||||
var omnipresentPlugins = [compat, removeLabel];
|
||||
|
||||
if (isBrowser) {
|
||||
var currentSheet;
|
||||
var finalizingPlugins = [stringify, rulesheet(function (rule) {
|
||||
currentSheet.insert(rule);
|
||||
})];
|
||||
var serializer = middleware(omnipresentPlugins.concat(stylisPlugins, finalizingPlugins));
|
||||
|
||||
var stylis = function stylis(styles) {
|
||||
return serialize(compile(styles), serializer);
|
||||
};
|
||||
|
||||
_insert = function
|
||||
/*: void */
|
||||
insert(selector
|
||||
/*: string */
|
||||
, serialized
|
||||
/*: SerializedStyles */
|
||||
, sheet
|
||||
/*: StyleSheet */
|
||||
, shouldCache
|
||||
/*: boolean */
|
||||
) {
|
||||
currentSheet = sheet;
|
||||
|
||||
stylis(selector ? selector + "{" + serialized.styles + "}" : serialized.styles);
|
||||
|
||||
if (shouldCache) {
|
||||
cache.inserted[serialized.name] = true;
|
||||
}
|
||||
};
|
||||
} else {
|
||||
var _finalizingPlugins = [stringify];
|
||||
|
||||
var _serializer = middleware(omnipresentPlugins.concat(stylisPlugins, _finalizingPlugins));
|
||||
|
||||
var _stylis = function _stylis(styles) {
|
||||
return serialize(compile(styles), _serializer);
|
||||
};
|
||||
|
||||
var serverStylisCache = getServerStylisCache(stylisPlugins)(key);
|
||||
|
||||
var getRules = function
|
||||
/*: string */
|
||||
getRules(selector
|
||||
/*: string */
|
||||
, serialized
|
||||
/*: SerializedStyles */
|
||||
) {
|
||||
var name = serialized.name;
|
||||
|
||||
if (serverStylisCache[name] === undefined) {
|
||||
serverStylisCache[name] = _stylis(selector ? selector + "{" + serialized.styles + "}" : serialized.styles);
|
||||
}
|
||||
|
||||
return serverStylisCache[name];
|
||||
};
|
||||
|
||||
_insert = function
|
||||
/*: string | void */
|
||||
_insert(selector
|
||||
/*: string */
|
||||
, serialized
|
||||
/*: SerializedStyles */
|
||||
, sheet
|
||||
/*: StyleSheet */
|
||||
, shouldCache
|
||||
/*: boolean */
|
||||
) {
|
||||
var name = serialized.name;
|
||||
var rules = getRules(selector, serialized);
|
||||
|
||||
if (cache.compat === undefined) {
|
||||
// in regular mode, we don't set the styles on the inserted cache
|
||||
// since we don't need to and that would be wasting memory
|
||||
// we return them so that they are rendered in a style tag
|
||||
if (shouldCache) {
|
||||
cache.inserted[name] = true;
|
||||
}
|
||||
|
||||
return rules;
|
||||
} else {
|
||||
// in compat mode, we put the styles on the inserted cache so
|
||||
// that emotion-server can pull out the styles
|
||||
// except when we don't want to cache it which was in Global but now
|
||||
// is nowhere but we don't want to do a major right now
|
||||
// and just in case we're going to leave the case here
|
||||
// it's also not affecting client side bundle size
|
||||
// so it's really not a big deal
|
||||
if (shouldCache) {
|
||||
cache.inserted[name] = rules;
|
||||
} else {
|
||||
return rules;
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
var cache
|
||||
/*: EmotionCache */
|
||||
= {
|
||||
key: key,
|
||||
sheet: new StyleSheet({
|
||||
key: key,
|
||||
container: container,
|
||||
nonce: options.nonce,
|
||||
speedy: options.speedy,
|
||||
prepend: options.prepend,
|
||||
insertionPoint: options.insertionPoint
|
||||
}),
|
||||
nonce: options.nonce,
|
||||
inserted: inserted,
|
||||
registered: {},
|
||||
insert: _insert
|
||||
};
|
||||
cache.sheet.hydrate(nodesToHydrate);
|
||||
return cache;
|
||||
};
|
||||
|
||||
export { createCache as default };
|
||||
1
backend/frontend/node_modules/@emotion/hash/dist/declarations/src/index.d.ts
generated
vendored
Normal file
1
backend/frontend/node_modules/@emotion/hash/dist/declarations/src/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export default function murmur2(str: string): string;
|
||||
3
backend/frontend/node_modules/@emotion/hash/dist/emotion-hash.cjs.d.mts
generated
vendored
Normal file
3
backend/frontend/node_modules/@emotion/hash/dist/emotion-hash.cjs.d.mts
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
export * from "./declarations/src/index.js";
|
||||
export { _default as default } from "./emotion-hash.cjs.default.js";
|
||||
//# sourceMappingURL=emotion-hash.cjs.d.mts.map
|
||||
1
backend/frontend/node_modules/@emotion/hash/dist/emotion-hash.cjs.d.mts.map
generated
vendored
Normal file
1
backend/frontend/node_modules/@emotion/hash/dist/emotion-hash.cjs.d.mts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"emotion-hash.cjs.d.mts","sourceRoot":"","sources":["./declarations/src/index.d.ts"],"names":[],"mappings":"AAAA"}
|
||||
3
backend/frontend/node_modules/@emotion/hash/dist/emotion-hash.cjs.d.ts
generated
vendored
Normal file
3
backend/frontend/node_modules/@emotion/hash/dist/emotion-hash.cjs.d.ts
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
export * from "./declarations/src/index";
|
||||
export { default } from "./declarations/src/index";
|
||||
//# sourceMappingURL=emotion-hash.cjs.d.ts.map
|
||||
1
backend/frontend/node_modules/@emotion/hash/dist/emotion-hash.cjs.d.ts.map
generated
vendored
Normal file
1
backend/frontend/node_modules/@emotion/hash/dist/emotion-hash.cjs.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"emotion-hash.cjs.d.ts","sourceRoot":"","sources":["./declarations/src/index.d.ts"],"names":[],"mappings":"AAAA"}
|
||||
1
backend/frontend/node_modules/@emotion/hash/dist/emotion-hash.cjs.default.d.ts
generated
vendored
Normal file
1
backend/frontend/node_modules/@emotion/hash/dist/emotion-hash.cjs.default.d.ts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export { default as _default } from "./declarations/src/index.js"
|
||||
1
backend/frontend/node_modules/@emotion/hash/dist/emotion-hash.cjs.default.js
generated
vendored
Normal file
1
backend/frontend/node_modules/@emotion/hash/dist/emotion-hash.cjs.default.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
exports._default = require("./emotion-hash.cjs.js").default;
|
||||
59
backend/frontend/node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js
generated
vendored
Normal file
59
backend/frontend/node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js
generated
vendored
Normal file
@@ -0,0 +1,59 @@
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
|
||||
/* eslint-disable */
|
||||
// Inspired by https://github.com/garycourt/murmurhash-js
|
||||
// Ported from https://github.com/aappleby/smhasher/blob/61a0530f28277f2e850bfc39600ce61d02b518de/src/MurmurHash2.cpp#L37-L86
|
||||
function murmur2(str) {
|
||||
// 'm' and 'r' are mixing constants generated offline.
|
||||
// They're not really 'magic', they just happen to work well.
|
||||
// const m = 0x5bd1e995;
|
||||
// const r = 24;
|
||||
// Initialize the hash
|
||||
var h = 0; // Mix 4 bytes at a time into the hash
|
||||
|
||||
var k,
|
||||
i = 0,
|
||||
len = str.length;
|
||||
|
||||
for (; len >= 4; ++i, len -= 4) {
|
||||
k = str.charCodeAt(i) & 0xff | (str.charCodeAt(++i) & 0xff) << 8 | (str.charCodeAt(++i) & 0xff) << 16 | (str.charCodeAt(++i) & 0xff) << 24;
|
||||
k =
|
||||
/* Math.imul(k, m): */
|
||||
(k & 0xffff) * 0x5bd1e995 + ((k >>> 16) * 0xe995 << 16);
|
||||
k ^=
|
||||
/* k >>> r: */
|
||||
k >>> 24;
|
||||
h =
|
||||
/* Math.imul(k, m): */
|
||||
(k & 0xffff) * 0x5bd1e995 + ((k >>> 16) * 0xe995 << 16) ^
|
||||
/* Math.imul(h, m): */
|
||||
(h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);
|
||||
} // Handle the last few bytes of the input array
|
||||
|
||||
|
||||
switch (len) {
|
||||
case 3:
|
||||
h ^= (str.charCodeAt(i + 2) & 0xff) << 16;
|
||||
|
||||
case 2:
|
||||
h ^= (str.charCodeAt(i + 1) & 0xff) << 8;
|
||||
|
||||
case 1:
|
||||
h ^= str.charCodeAt(i) & 0xff;
|
||||
h =
|
||||
/* Math.imul(h, m): */
|
||||
(h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);
|
||||
} // Do a few final mixes of the hash to ensure the last few
|
||||
// bytes are well-incorporated.
|
||||
|
||||
|
||||
h ^= h >>> 13;
|
||||
h =
|
||||
/* Math.imul(h, m): */
|
||||
(h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);
|
||||
return ((h ^ h >>> 15) >>> 0).toString(36);
|
||||
}
|
||||
|
||||
exports["default"] = murmur2;
|
||||
7
backend/frontend/node_modules/@emotion/hash/dist/emotion-hash.cjs.js
generated
vendored
Normal file
7
backend/frontend/node_modules/@emotion/hash/dist/emotion-hash.cjs.js
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
'use strict';
|
||||
|
||||
if (process.env.NODE_ENV === "production") {
|
||||
module.exports = require("./emotion-hash.cjs.prod.js");
|
||||
} else {
|
||||
module.exports = require("./emotion-hash.cjs.dev.js");
|
||||
}
|
||||
4
backend/frontend/node_modules/@emotion/hash/dist/emotion-hash.cjs.mjs
generated
vendored
Normal file
4
backend/frontend/node_modules/@emotion/hash/dist/emotion-hash.cjs.mjs
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
export {
|
||||
|
||||
} from "./emotion-hash.cjs.js";
|
||||
export { _default as default } from "./emotion-hash.cjs.default.js";
|
||||
59
backend/frontend/node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js
generated
vendored
Normal file
59
backend/frontend/node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js
generated
vendored
Normal file
@@ -0,0 +1,59 @@
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
|
||||
/* eslint-disable */
|
||||
// Inspired by https://github.com/garycourt/murmurhash-js
|
||||
// Ported from https://github.com/aappleby/smhasher/blob/61a0530f28277f2e850bfc39600ce61d02b518de/src/MurmurHash2.cpp#L37-L86
|
||||
function murmur2(str) {
|
||||
// 'm' and 'r' are mixing constants generated offline.
|
||||
// They're not really 'magic', they just happen to work well.
|
||||
// const m = 0x5bd1e995;
|
||||
// const r = 24;
|
||||
// Initialize the hash
|
||||
var h = 0; // Mix 4 bytes at a time into the hash
|
||||
|
||||
var k,
|
||||
i = 0,
|
||||
len = str.length;
|
||||
|
||||
for (; len >= 4; ++i, len -= 4) {
|
||||
k = str.charCodeAt(i) & 0xff | (str.charCodeAt(++i) & 0xff) << 8 | (str.charCodeAt(++i) & 0xff) << 16 | (str.charCodeAt(++i) & 0xff) << 24;
|
||||
k =
|
||||
/* Math.imul(k, m): */
|
||||
(k & 0xffff) * 0x5bd1e995 + ((k >>> 16) * 0xe995 << 16);
|
||||
k ^=
|
||||
/* k >>> r: */
|
||||
k >>> 24;
|
||||
h =
|
||||
/* Math.imul(k, m): */
|
||||
(k & 0xffff) * 0x5bd1e995 + ((k >>> 16) * 0xe995 << 16) ^
|
||||
/* Math.imul(h, m): */
|
||||
(h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);
|
||||
} // Handle the last few bytes of the input array
|
||||
|
||||
|
||||
switch (len) {
|
||||
case 3:
|
||||
h ^= (str.charCodeAt(i + 2) & 0xff) << 16;
|
||||
|
||||
case 2:
|
||||
h ^= (str.charCodeAt(i + 1) & 0xff) << 8;
|
||||
|
||||
case 1:
|
||||
h ^= str.charCodeAt(i) & 0xff;
|
||||
h =
|
||||
/* Math.imul(h, m): */
|
||||
(h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);
|
||||
} // Do a few final mixes of the hash to ensure the last few
|
||||
// bytes are well-incorporated.
|
||||
|
||||
|
||||
h ^= h >>> 13;
|
||||
h =
|
||||
/* Math.imul(h, m): */
|
||||
(h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);
|
||||
return ((h ^ h >>> 15) >>> 0).toString(36);
|
||||
}
|
||||
|
||||
exports["default"] = murmur2;
|
||||
55
backend/frontend/node_modules/@emotion/hash/dist/emotion-hash.esm.js
generated
vendored
Normal file
55
backend/frontend/node_modules/@emotion/hash/dist/emotion-hash.esm.js
generated
vendored
Normal file
@@ -0,0 +1,55 @@
|
||||
/* eslint-disable */
|
||||
// Inspired by https://github.com/garycourt/murmurhash-js
|
||||
// Ported from https://github.com/aappleby/smhasher/blob/61a0530f28277f2e850bfc39600ce61d02b518de/src/MurmurHash2.cpp#L37-L86
|
||||
function murmur2(str) {
|
||||
// 'm' and 'r' are mixing constants generated offline.
|
||||
// They're not really 'magic', they just happen to work well.
|
||||
// const m = 0x5bd1e995;
|
||||
// const r = 24;
|
||||
// Initialize the hash
|
||||
var h = 0; // Mix 4 bytes at a time into the hash
|
||||
|
||||
var k,
|
||||
i = 0,
|
||||
len = str.length;
|
||||
|
||||
for (; len >= 4; ++i, len -= 4) {
|
||||
k = str.charCodeAt(i) & 0xff | (str.charCodeAt(++i) & 0xff) << 8 | (str.charCodeAt(++i) & 0xff) << 16 | (str.charCodeAt(++i) & 0xff) << 24;
|
||||
k =
|
||||
/* Math.imul(k, m): */
|
||||
(k & 0xffff) * 0x5bd1e995 + ((k >>> 16) * 0xe995 << 16);
|
||||
k ^=
|
||||
/* k >>> r: */
|
||||
k >>> 24;
|
||||
h =
|
||||
/* Math.imul(k, m): */
|
||||
(k & 0xffff) * 0x5bd1e995 + ((k >>> 16) * 0xe995 << 16) ^
|
||||
/* Math.imul(h, m): */
|
||||
(h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);
|
||||
} // Handle the last few bytes of the input array
|
||||
|
||||
|
||||
switch (len) {
|
||||
case 3:
|
||||
h ^= (str.charCodeAt(i + 2) & 0xff) << 16;
|
||||
|
||||
case 2:
|
||||
h ^= (str.charCodeAt(i + 1) & 0xff) << 8;
|
||||
|
||||
case 1:
|
||||
h ^= str.charCodeAt(i) & 0xff;
|
||||
h =
|
||||
/* Math.imul(h, m): */
|
||||
(h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);
|
||||
} // Do a few final mixes of the hash to ensure the last few
|
||||
// bytes are well-incorporated.
|
||||
|
||||
|
||||
h ^= h >>> 13;
|
||||
h =
|
||||
/* Math.imul(h, m): */
|
||||
(h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);
|
||||
return ((h ^ h >>> 15) >>> 0).toString(36);
|
||||
}
|
||||
|
||||
export { murmur2 as default };
|
||||
2
backend/frontend/node_modules/@emotion/is-prop-valid/dist/declarations/src/index.d.ts
generated
vendored
Normal file
2
backend/frontend/node_modules/@emotion/is-prop-valid/dist/declarations/src/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
declare const isPropValid: (arg: string) => boolean;
|
||||
export default isPropValid;
|
||||
3
backend/frontend/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.d.mts
generated
vendored
Normal file
3
backend/frontend/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.d.mts
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
export * from "./declarations/src/index.js";
|
||||
export { _default as default } from "./emotion-is-prop-valid.cjs.default.js";
|
||||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW1vdGlvbi1pcy1wcm9wLXZhbGlkLmNqcy5kLm10cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4vZGVjbGFyYXRpb25zL3NyYy9pbmRleC5kLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBIn0=
|
||||
3
backend/frontend/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.d.ts
generated
vendored
Normal file
3
backend/frontend/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.d.ts
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
export * from "./declarations/src/index";
|
||||
export { default } from "./declarations/src/index";
|
||||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW1vdGlvbi1pcy1wcm9wLXZhbGlkLmNqcy5kLnRzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi9kZWNsYXJhdGlvbnMvc3JjL2luZGV4LmQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEifQ==
|
||||
1
backend/frontend/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.default.d.ts
generated
vendored
Normal file
1
backend/frontend/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.default.d.ts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export { default as _default } from "./declarations/src/index.js"
|
||||
1
backend/frontend/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.default.js
generated
vendored
Normal file
1
backend/frontend/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.default.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
exports._default = require("./emotion-is-prop-valid.cjs.js").default;
|
||||
24
backend/frontend/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js
generated
vendored
Normal file
24
backend/frontend/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
|
||||
var memoize = require('@emotion/memoize');
|
||||
|
||||
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
||||
|
||||
var memoize__default = /*#__PURE__*/_interopDefault(memoize);
|
||||
|
||||
// eslint-disable-next-line no-undef
|
||||
var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/; // https://esbench.com/bench/5bfee68a4cd7e6009ef61d23
|
||||
|
||||
var isPropValid = /* #__PURE__ */memoize__default["default"](function (prop) {
|
||||
return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111
|
||||
/* o */
|
||||
&& prop.charCodeAt(1) === 110
|
||||
/* n */
|
||||
&& prop.charCodeAt(2) < 91;
|
||||
}
|
||||
/* Z+1 */
|
||||
);
|
||||
|
||||
exports["default"] = isPropValid;
|
||||
2
backend/frontend/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.mjs
generated
vendored
Normal file
2
backend/frontend/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.mjs
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import "./emotion-is-prop-valid.cjs.js";
|
||||
export { _default as default } from "./emotion-is-prop-valid.cjs.default.js";
|
||||
16
backend/frontend/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js
generated
vendored
Normal file
16
backend/frontend/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
import memoize from '@emotion/memoize';
|
||||
|
||||
// eslint-disable-next-line no-undef
|
||||
var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/; // https://esbench.com/bench/5bfee68a4cd7e6009ef61d23
|
||||
|
||||
var isPropValid = /* #__PURE__ */memoize(function (prop) {
|
||||
return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111
|
||||
/* o */
|
||||
&& prop.charCodeAt(1) === 110
|
||||
/* n */
|
||||
&& prop.charCodeAt(2) < 91;
|
||||
}
|
||||
/* Z+1 */
|
||||
);
|
||||
|
||||
export { isPropValid as default };
|
||||
1
backend/frontend/node_modules/@emotion/memoize/dist/declarations/src/index.d.ts
generated
vendored
Normal file
1
backend/frontend/node_modules/@emotion/memoize/dist/declarations/src/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export default function memoize<V>(fn: (arg: string) => V): (arg: string) => V;
|
||||
3
backend/frontend/node_modules/@emotion/memoize/dist/emotion-memoize.cjs.d.mts
generated
vendored
Normal file
3
backend/frontend/node_modules/@emotion/memoize/dist/emotion-memoize.cjs.d.mts
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
export * from "./declarations/src/index.js";
|
||||
export { _default as default } from "./emotion-memoize.cjs.default.js";
|
||||
//# sourceMappingURL=emotion-memoize.cjs.d.mts.map
|
||||
1
backend/frontend/node_modules/@emotion/memoize/dist/emotion-memoize.cjs.d.mts.map
generated
vendored
Normal file
1
backend/frontend/node_modules/@emotion/memoize/dist/emotion-memoize.cjs.d.mts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"emotion-memoize.cjs.d.mts","sourceRoot":"","sources":["./declarations/src/index.d.ts"],"names":[],"mappings":"AAAA"}
|
||||
3
backend/frontend/node_modules/@emotion/memoize/dist/emotion-memoize.cjs.d.ts
generated
vendored
Normal file
3
backend/frontend/node_modules/@emotion/memoize/dist/emotion-memoize.cjs.d.ts
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
export * from "./declarations/src/index";
|
||||
export { default } from "./declarations/src/index";
|
||||
//# sourceMappingURL=emotion-memoize.cjs.d.ts.map
|
||||
1
backend/frontend/node_modules/@emotion/memoize/dist/emotion-memoize.cjs.d.ts.map
generated
vendored
Normal file
1
backend/frontend/node_modules/@emotion/memoize/dist/emotion-memoize.cjs.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"emotion-memoize.cjs.d.ts","sourceRoot":"","sources":["./declarations/src/index.d.ts"],"names":[],"mappings":"AAAA"}
|
||||
1
backend/frontend/node_modules/@emotion/memoize/dist/emotion-memoize.cjs.default.d.ts
generated
vendored
Normal file
1
backend/frontend/node_modules/@emotion/memoize/dist/emotion-memoize.cjs.default.d.ts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export { default as _default } from "./declarations/src/index.js"
|
||||
1
backend/frontend/node_modules/@emotion/memoize/dist/emotion-memoize.cjs.default.js
generated
vendored
Normal file
1
backend/frontend/node_modules/@emotion/memoize/dist/emotion-memoize.cjs.default.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
exports._default = require("./emotion-memoize.cjs.js").default;
|
||||
13
backend/frontend/node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js
generated
vendored
Normal file
13
backend/frontend/node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
|
||||
function memoize(fn) {
|
||||
var cache = Object.create(null);
|
||||
return function (arg) {
|
||||
if (cache[arg] === undefined) cache[arg] = fn(arg);
|
||||
return cache[arg];
|
||||
};
|
||||
}
|
||||
|
||||
exports["default"] = memoize;
|
||||
7
backend/frontend/node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js
generated
vendored
Normal file
7
backend/frontend/node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
'use strict';
|
||||
|
||||
if (process.env.NODE_ENV === "production") {
|
||||
module.exports = require("./emotion-memoize.cjs.prod.js");
|
||||
} else {
|
||||
module.exports = require("./emotion-memoize.cjs.dev.js");
|
||||
}
|
||||
4
backend/frontend/node_modules/@emotion/memoize/dist/emotion-memoize.cjs.mjs
generated
vendored
Normal file
4
backend/frontend/node_modules/@emotion/memoize/dist/emotion-memoize.cjs.mjs
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
export {
|
||||
|
||||
} from "./emotion-memoize.cjs.js";
|
||||
export { _default as default } from "./emotion-memoize.cjs.default.js";
|
||||
13
backend/frontend/node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js
generated
vendored
Normal file
13
backend/frontend/node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
|
||||
function memoize(fn) {
|
||||
var cache = Object.create(null);
|
||||
return function (arg) {
|
||||
if (cache[arg] === undefined) cache[arg] = fn(arg);
|
||||
return cache[arg];
|
||||
};
|
||||
}
|
||||
|
||||
exports["default"] = memoize;
|
||||
9
backend/frontend/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js
generated
vendored
Normal file
9
backend/frontend/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
function memoize(fn) {
|
||||
var cache = Object.create(null);
|
||||
return function (arg) {
|
||||
if (cache[arg] === undefined) cache[arg] = fn(arg);
|
||||
return cache[arg];
|
||||
};
|
||||
}
|
||||
|
||||
export { memoize as default };
|
||||
1
backend/frontend/node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.cjs.default.js
generated
vendored
Normal file
1
backend/frontend/node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.cjs.default.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
exports._default = require("./emotion-react-_isolated-hnrs.browser.cjs.js").default;
|
||||
19
backend/frontend/node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.cjs.js
generated
vendored
Normal file
19
backend/frontend/node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.cjs.js
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
|
||||
var hoistNonReactStatics$1 = require('hoist-non-react-statics');
|
||||
|
||||
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
||||
|
||||
var hoistNonReactStatics__default = /*#__PURE__*/_interopDefault(hoistNonReactStatics$1);
|
||||
|
||||
// this file isolates this package that is not tree-shakeable
|
||||
// and if this module doesn't actually contain any logic of its own
|
||||
// then Rollup just use 'hoist-non-react-statics' directly in other chunks
|
||||
|
||||
var hoistNonReactStatics = (function (targetComponent, sourceComponent) {
|
||||
return hoistNonReactStatics__default["default"](targetComponent, sourceComponent);
|
||||
});
|
||||
|
||||
exports["default"] = hoistNonReactStatics;
|
||||
2
backend/frontend/node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.cjs.mjs
generated
vendored
Normal file
2
backend/frontend/node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.cjs.mjs
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import "./emotion-react-_isolated-hnrs.browser.cjs.js";
|
||||
export { _default as default } from "./emotion-react-_isolated-hnrs.browser.cjs.default.js";
|
||||
1
backend/frontend/node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.development.cjs.default.js
generated
vendored
Normal file
1
backend/frontend/node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.development.cjs.default.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
exports._default = require("./emotion-react-_isolated-hnrs.browser.development.cjs.js").default;
|
||||
19
backend/frontend/node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.development.cjs.js
generated
vendored
Normal file
19
backend/frontend/node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.development.cjs.js
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
|
||||
var hoistNonReactStatics$1 = require('hoist-non-react-statics');
|
||||
|
||||
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
||||
|
||||
var hoistNonReactStatics__default = /*#__PURE__*/_interopDefault(hoistNonReactStatics$1);
|
||||
|
||||
// this file isolates this package that is not tree-shakeable
|
||||
// and if this module doesn't actually contain any logic of its own
|
||||
// then Rollup just use 'hoist-non-react-statics' directly in other chunks
|
||||
|
||||
var hoistNonReactStatics = (function (targetComponent, sourceComponent) {
|
||||
return hoistNonReactStatics__default["default"](targetComponent, sourceComponent);
|
||||
});
|
||||
|
||||
exports["default"] = hoistNonReactStatics;
|
||||
2
backend/frontend/node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.development.cjs.mjs
generated
vendored
Normal file
2
backend/frontend/node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.development.cjs.mjs
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import "./emotion-react-_isolated-hnrs.browser.development.cjs.js";
|
||||
export { _default as default } from "./emotion-react-_isolated-hnrs.browser.development.cjs.default.js";
|
||||
11
backend/frontend/node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.development.esm.js
generated
vendored
Normal file
11
backend/frontend/node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.development.esm.js
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
import hoistNonReactStatics$1 from 'hoist-non-react-statics';
|
||||
|
||||
// this file isolates this package that is not tree-shakeable
|
||||
// and if this module doesn't actually contain any logic of its own
|
||||
// then Rollup just use 'hoist-non-react-statics' directly in other chunks
|
||||
|
||||
var hoistNonReactStatics = (function (targetComponent, sourceComponent) {
|
||||
return hoistNonReactStatics$1(targetComponent, sourceComponent);
|
||||
});
|
||||
|
||||
export { hoistNonReactStatics as default };
|
||||
11
backend/frontend/node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js
generated
vendored
Normal file
11
backend/frontend/node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
import hoistNonReactStatics$1 from 'hoist-non-react-statics';
|
||||
|
||||
// this file isolates this package that is not tree-shakeable
|
||||
// and if this module doesn't actually contain any logic of its own
|
||||
// then Rollup just use 'hoist-non-react-statics' directly in other chunks
|
||||
|
||||
var hoistNonReactStatics = (function (targetComponent, sourceComponent) {
|
||||
return hoistNonReactStatics$1(targetComponent, sourceComponent);
|
||||
});
|
||||
|
||||
export { hoistNonReactStatics as default };
|
||||
3
backend/frontend/node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.d.mts
generated
vendored
Normal file
3
backend/frontend/node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.d.mts
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
export * from "../../dist/declarations/src/_isolated-hnrs.js";
|
||||
export { _default as default } from "./emotion-react-_isolated-hnrs.cjs.default.js";
|
||||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW1vdGlvbi1yZWFjdC1faXNvbGF0ZWQtaG5ycy5janMuZC5tdHMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9kaXN0L2RlY2xhcmF0aW9ucy9zcmMvX2lzb2xhdGVkLWhucnMuZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSJ9
|
||||
3
backend/frontend/node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.d.ts
generated
vendored
Normal file
3
backend/frontend/node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.d.ts
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
export * from "../../dist/declarations/src/_isolated-hnrs";
|
||||
export { default } from "../../dist/declarations/src/_isolated-hnrs";
|
||||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW1vdGlvbi1yZWFjdC1faXNvbGF0ZWQtaG5ycy5janMuZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL2Rpc3QvZGVjbGFyYXRpb25zL3NyYy9faXNvbGF0ZWQtaG5ycy5kLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBIn0=
|
||||
1
backend/frontend/node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.default.d.ts
generated
vendored
Normal file
1
backend/frontend/node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.default.d.ts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export { default as _default } from "../../dist/declarations/src/_isolated-hnrs.js"
|
||||
1
backend/frontend/node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.default.js
generated
vendored
Normal file
1
backend/frontend/node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.default.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
exports._default = require("./emotion-react-_isolated-hnrs.cjs.js").default;
|
||||
19
backend/frontend/node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js
generated
vendored
Normal file
19
backend/frontend/node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
|
||||
var hoistNonReactStatics$1 = require('hoist-non-react-statics');
|
||||
|
||||
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
||||
|
||||
var hoistNonReactStatics__default = /*#__PURE__*/_interopDefault(hoistNonReactStatics$1);
|
||||
|
||||
// this file isolates this package that is not tree-shakeable
|
||||
// and if this module doesn't actually contain any logic of its own
|
||||
// then Rollup just use 'hoist-non-react-statics' directly in other chunks
|
||||
|
||||
var hoistNonReactStatics = (function (targetComponent, sourceComponent) {
|
||||
return hoistNonReactStatics__default["default"](targetComponent, sourceComponent);
|
||||
});
|
||||
|
||||
exports["default"] = hoistNonReactStatics;
|
||||
2
backend/frontend/node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.mjs
generated
vendored
Normal file
2
backend/frontend/node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.mjs
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import "./emotion-react-_isolated-hnrs.cjs.js";
|
||||
export { _default as default } from "./emotion-react-_isolated-hnrs.cjs.default.js";
|
||||
1
backend/frontend/node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.cjs.default.js
generated
vendored
Normal file
1
backend/frontend/node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.cjs.default.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
exports._default = require("./emotion-react-_isolated-hnrs.development.cjs.js").default;
|
||||
19
backend/frontend/node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.cjs.js
generated
vendored
Normal file
19
backend/frontend/node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.cjs.js
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
|
||||
var hoistNonReactStatics$1 = require('hoist-non-react-statics');
|
||||
|
||||
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
||||
|
||||
var hoistNonReactStatics__default = /*#__PURE__*/_interopDefault(hoistNonReactStatics$1);
|
||||
|
||||
// this file isolates this package that is not tree-shakeable
|
||||
// and if this module doesn't actually contain any logic of its own
|
||||
// then Rollup just use 'hoist-non-react-statics' directly in other chunks
|
||||
|
||||
var hoistNonReactStatics = (function (targetComponent, sourceComponent) {
|
||||
return hoistNonReactStatics__default["default"](targetComponent, sourceComponent);
|
||||
});
|
||||
|
||||
exports["default"] = hoistNonReactStatics;
|
||||
2
backend/frontend/node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.cjs.mjs
generated
vendored
Normal file
2
backend/frontend/node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.cjs.mjs
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import "./emotion-react-_isolated-hnrs.development.cjs.js";
|
||||
export { _default as default } from "./emotion-react-_isolated-hnrs.development.cjs.default.js";
|
||||
1
backend/frontend/node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.edge-light.cjs.default.js
generated
vendored
Normal file
1
backend/frontend/node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.edge-light.cjs.default.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
exports._default = require("./emotion-react-_isolated-hnrs.development.edge-light.cjs.js").default;
|
||||
19
backend/frontend/node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.edge-light.cjs.js
generated
vendored
Normal file
19
backend/frontend/node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.edge-light.cjs.js
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
|
||||
var hoistNonReactStatics$1 = require('hoist-non-react-statics');
|
||||
|
||||
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
||||
|
||||
var hoistNonReactStatics__default = /*#__PURE__*/_interopDefault(hoistNonReactStatics$1);
|
||||
|
||||
// this file isolates this package that is not tree-shakeable
|
||||
// and if this module doesn't actually contain any logic of its own
|
||||
// then Rollup just use 'hoist-non-react-statics' directly in other chunks
|
||||
|
||||
var hoistNonReactStatics = (function (targetComponent, sourceComponent) {
|
||||
return hoistNonReactStatics__default["default"](targetComponent, sourceComponent);
|
||||
});
|
||||
|
||||
exports["default"] = hoistNonReactStatics;
|
||||
2
backend/frontend/node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.edge-light.cjs.mjs
generated
vendored
Normal file
2
backend/frontend/node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.edge-light.cjs.mjs
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import "./emotion-react-_isolated-hnrs.development.edge-light.cjs.js";
|
||||
export { _default as default } from "./emotion-react-_isolated-hnrs.development.edge-light.cjs.default.js";
|
||||
11
backend/frontend/node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.edge-light.esm.js
generated
vendored
Normal file
11
backend/frontend/node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.edge-light.esm.js
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
import hoistNonReactStatics$1 from 'hoist-non-react-statics';
|
||||
|
||||
// this file isolates this package that is not tree-shakeable
|
||||
// and if this module doesn't actually contain any logic of its own
|
||||
// then Rollup just use 'hoist-non-react-statics' directly in other chunks
|
||||
|
||||
var hoistNonReactStatics = (function (targetComponent, sourceComponent) {
|
||||
return hoistNonReactStatics$1(targetComponent, sourceComponent);
|
||||
});
|
||||
|
||||
export { hoistNonReactStatics as default };
|
||||
11
backend/frontend/node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.esm.js
generated
vendored
Normal file
11
backend/frontend/node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.esm.js
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
import hoistNonReactStatics$1 from 'hoist-non-react-statics';
|
||||
|
||||
// this file isolates this package that is not tree-shakeable
|
||||
// and if this module doesn't actually contain any logic of its own
|
||||
// then Rollup just use 'hoist-non-react-statics' directly in other chunks
|
||||
|
||||
var hoistNonReactStatics = (function (targetComponent, sourceComponent) {
|
||||
return hoistNonReactStatics$1(targetComponent, sourceComponent);
|
||||
});
|
||||
|
||||
export { hoistNonReactStatics as default };
|
||||
1
backend/frontend/node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.edge-light.cjs.default.js
generated
vendored
Normal file
1
backend/frontend/node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.edge-light.cjs.default.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
exports._default = require("./emotion-react-_isolated-hnrs.edge-light.cjs.js").default;
|
||||
19
backend/frontend/node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.edge-light.cjs.js
generated
vendored
Normal file
19
backend/frontend/node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.edge-light.cjs.js
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
|
||||
var hoistNonReactStatics$1 = require('hoist-non-react-statics');
|
||||
|
||||
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
||||
|
||||
var hoistNonReactStatics__default = /*#__PURE__*/_interopDefault(hoistNonReactStatics$1);
|
||||
|
||||
// this file isolates this package that is not tree-shakeable
|
||||
// and if this module doesn't actually contain any logic of its own
|
||||
// then Rollup just use 'hoist-non-react-statics' directly in other chunks
|
||||
|
||||
var hoistNonReactStatics = (function (targetComponent, sourceComponent) {
|
||||
return hoistNonReactStatics__default["default"](targetComponent, sourceComponent);
|
||||
});
|
||||
|
||||
exports["default"] = hoistNonReactStatics;
|
||||
2
backend/frontend/node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.edge-light.cjs.mjs
generated
vendored
Normal file
2
backend/frontend/node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.edge-light.cjs.mjs
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import "./emotion-react-_isolated-hnrs.edge-light.cjs.js";
|
||||
export { _default as default } from "./emotion-react-_isolated-hnrs.edge-light.cjs.default.js";
|
||||
11
backend/frontend/node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.edge-light.esm.js
generated
vendored
Normal file
11
backend/frontend/node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.edge-light.esm.js
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
import hoistNonReactStatics$1 from 'hoist-non-react-statics';
|
||||
|
||||
// this file isolates this package that is not tree-shakeable
|
||||
// and if this module doesn't actually contain any logic of its own
|
||||
// then Rollup just use 'hoist-non-react-statics' directly in other chunks
|
||||
|
||||
var hoistNonReactStatics = (function (targetComponent, sourceComponent) {
|
||||
return hoistNonReactStatics$1(targetComponent, sourceComponent);
|
||||
});
|
||||
|
||||
export { hoistNonReactStatics as default };
|
||||
11
backend/frontend/node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.esm.js
generated
vendored
Normal file
11
backend/frontend/node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.esm.js
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
import hoistNonReactStatics$1 from 'hoist-non-react-statics';
|
||||
|
||||
// this file isolates this package that is not tree-shakeable
|
||||
// and if this module doesn't actually contain any logic of its own
|
||||
// then Rollup just use 'hoist-non-react-statics' directly in other chunks
|
||||
|
||||
var hoistNonReactStatics = (function (targetComponent, sourceComponent) {
|
||||
return hoistNonReactStatics$1(targetComponent, sourceComponent);
|
||||
});
|
||||
|
||||
export { hoistNonReactStatics as default };
|
||||
2
backend/frontend/node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.umd.min.js
generated
vendored
Normal file
2
backend/frontend/node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.umd.min.js
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).emotionHoistNonReactStatics=t()}(this,(function(){"use strict";function e(e,t,r){return e(r={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&r.path)}},r.exports),r.exports}var t=e((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&Symbol.for,o=r?Symbol.for("react.element"):60103,n=r?Symbol.for("react.portal"):60106,f=r?Symbol.for("react.fragment"):60107,c=r?Symbol.for("react.strict_mode"):60108,i=r?Symbol.for("react.profiler"):60114,a=r?Symbol.for("react.provider"):60109,s=r?Symbol.for("react.context"):60110,u=r?Symbol.for("react.async_mode"):60111,p=r?Symbol.for("react.concurrent_mode"):60111,y=r?Symbol.for("react.forward_ref"):60112,l=r?Symbol.for("react.suspense"):60113,m=r?Symbol.for("react.suspense_list"):60120,d=r?Symbol.for("react.memo"):60115,b=r?Symbol.for("react.lazy"):60116,$=r?Symbol.for("react.fundamental"):60117,S=r?Symbol.for("react.responder"):60118,g=r?Symbol.for("react.scope"):60119;function v(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case u:case p:case f:case i:case c:case l:return e;default:switch(e=e&&e.$$typeof){case s:case y:case b:case d:case a:return e;default:return t}}case n:return t}}}function P(e){return v(e)===p}t.typeOf=v,t.AsyncMode=u,t.ConcurrentMode=p,t.ContextConsumer=s,t.ContextProvider=a,t.Element=o,t.ForwardRef=y,t.Fragment=f,t.Lazy=b,t.Memo=d,t.Portal=n,t.Profiler=i,t.StrictMode=c,t.Suspense=l,t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===f||e===p||e===i||e===c||e===l||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===b||e.$$typeof===d||e.$$typeof===a||e.$$typeof===s||e.$$typeof===y||e.$$typeof===$||e.$$typeof===S||e.$$typeof===g)},t.isAsyncMode=function(e){return P(e)||v(e)===u},t.isConcurrentMode=P,t.isContextConsumer=function(e){return v(e)===s},t.isContextProvider=function(e){return v(e)===a},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return v(e)===y},t.isFragment=function(e){return v(e)===f},t.isLazy=function(e){return v(e)===b},t.isMemo=function(e){return v(e)===d},t.isPortal=function(e){return v(e)===n},t.isProfiler=function(e){return v(e)===i},t.isStrictMode=function(e){return v(e)===c},t.isSuspense=function(e){return v(e)===l}}));e((function(e,t){}));var r=e((function(e){e.exports=t})),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},f={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},c={};function i(e){return r.isMemo(e)?f:c[e.$$typeof]||o}c[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0};var a=Object.defineProperty,s=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,y=Object.getPrototypeOf,l=Object.prototype;var m=function e(t,r,o){if("string"!=typeof r){if(l){var f=y(r);f&&f!==l&&e(t,f,o)}var c=s(r);u&&(c=c.concat(u(r)));for(var m=i(t),d=i(r),b=0;b<c.length;++b){var $=c[b];if(!(n[$]||o&&o[$]||d&&d[$]||m&&m[$])){var S=p(r,$);try{a(t,$,S)}catch(e){}}}}return t};return function(e,t){return m(e,t)}}));
|
||||
//# sourceMappingURL=emotion-react-_isolated-hnrs.umd.min.js.map
|
||||
1
backend/frontend/node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.umd.min.js.map
generated
vendored
Normal file
1
backend/frontend/node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.umd.min.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
2
backend/frontend/node_modules/@emotion/react/dist/declarations/dist/emotion-react.cjs.d.ts
generated
vendored
Normal file
2
backend/frontend/node_modules/@emotion/react/dist/declarations/dist/emotion-react.cjs.d.ts
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
export * from "../src/index.js";
|
||||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW1vdGlvbi1yZWFjdC5janMuZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9pbmRleC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSJ9
|
||||
3
backend/frontend/node_modules/@emotion/react/dist/declarations/src/_isolated-hnrs.d.ts
generated
vendored
Normal file
3
backend/frontend/node_modules/@emotion/react/dist/declarations/src/_isolated-hnrs.d.ts
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
// this entry point is not publicly available so we don't need to expose any types here
|
||||
// we need to define a definition file for each entrypoint though, otherwise Preconstruct might get confused
|
||||
export {}
|
||||
1
backend/frontend/node_modules/@emotion/react/dist/declarations/src/index.d.ts
generated
vendored
Normal file
1
backend/frontend/node_modules/@emotion/react/dist/declarations/src/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export * from "../types/index.js"
|
||||
1
backend/frontend/node_modules/@emotion/react/dist/declarations/src/jsx-dev-runtime.d.ts
generated
vendored
Normal file
1
backend/frontend/node_modules/@emotion/react/dist/declarations/src/jsx-dev-runtime.d.ts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export * from "../types/jsx-dev-runtime.js"
|
||||
1
backend/frontend/node_modules/@emotion/react/dist/declarations/src/jsx-runtime.d.ts
generated
vendored
Normal file
1
backend/frontend/node_modules/@emotion/react/dist/declarations/src/jsx-runtime.d.ts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export * from "../types/jsx-runtime.js"
|
||||
14
backend/frontend/node_modules/@emotion/react/dist/declarations/types/helper.d.ts
generated
vendored
Normal file
14
backend/frontend/node_modules/@emotion/react/dist/declarations/types/helper.d.ts
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
import { ReactJSX } from "./jsx-namespace.js"
|
||||
|
||||
/**
|
||||
* @desc Utility type for getting props type of React component.
|
||||
* It takes `defaultProps` into an account - making props with defaults optional.
|
||||
*/
|
||||
export type PropsOf<
|
||||
C extends keyof ReactJSX.IntrinsicElements | React.JSXElementConstructor<any>
|
||||
> = ReactJSX.LibraryManagedAttributes<C, React.ComponentProps<C>>
|
||||
|
||||
// We need to use this version of Omit as it's distributive (Will preserve unions)
|
||||
export type DistributiveOmit<T, U> = T extends any
|
||||
? Pick<T, Exclude<keyof T, U>>
|
||||
: never
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user