@me1a/ui 1.2.2 → 1.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,7 @@
1
1
  import * as React from 'react';
2
- import React__default, { forwardRef, useContext, Children, isValidElement, cloneElement } from 'react';
2
+ import React__default, { Children, isValidElement, cloneElement } from 'react';
3
+ import emStyled from '@emotion/styled';
4
+ import { Global, ThemeContext, keyframes } from '@emotion/react';
3
5
  import * as ReactDOM from 'react-dom';
4
6
  import ReactDOM__default from 'react-dom';
5
7
 
@@ -4029,9 +4031,9 @@ var jsxRuntimeExports = requireJsxRuntime();
4029
4031
 
4030
4032
  var propTypes = {exports: {}};
4031
4033
 
4032
- var reactIs$2 = {exports: {}};
4034
+ var reactIs$1 = {exports: {}};
4033
4035
 
4034
- var reactIs_production_min$2 = {};
4036
+ var reactIs_production_min$1 = {};
4035
4037
 
4036
4038
  /** @license React v16.13.1
4037
4039
  * react-is.production.min.js
@@ -4042,21 +4044,21 @@ var reactIs_production_min$2 = {};
4042
4044
  * LICENSE file in the root directory of this source tree.
4043
4045
  */
4044
4046
 
4045
- var hasRequiredReactIs_production_min$2;
4047
+ var hasRequiredReactIs_production_min$1;
4046
4048
 
4047
- function requireReactIs_production_min$2 () {
4048
- if (hasRequiredReactIs_production_min$2) return reactIs_production_min$2;
4049
- hasRequiredReactIs_production_min$2 = 1;
4049
+ function requireReactIs_production_min$1 () {
4050
+ if (hasRequiredReactIs_production_min$1) return reactIs_production_min$1;
4051
+ hasRequiredReactIs_production_min$1 = 1;
4050
4052
  var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?
4051
4053
  Symbol.for("react.suspense_list"):60120,r=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.block"):60121,w=b?Symbol.for("react.fundamental"):60117,x=b?Symbol.for("react.responder"):60118,y=b?Symbol.for("react.scope"):60119;
4052
- function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}reactIs_production_min$2.AsyncMode=l;reactIs_production_min$2.ConcurrentMode=m;reactIs_production_min$2.ContextConsumer=k;reactIs_production_min$2.ContextProvider=h;reactIs_production_min$2.Element=c;reactIs_production_min$2.ForwardRef=n;reactIs_production_min$2.Fragment=e;reactIs_production_min$2.Lazy=t;reactIs_production_min$2.Memo=r;reactIs_production_min$2.Portal=d;
4053
- reactIs_production_min$2.Profiler=g;reactIs_production_min$2.StrictMode=f;reactIs_production_min$2.Suspense=p;reactIs_production_min$2.isAsyncMode=function(a){return A(a)||z(a)===l};reactIs_production_min$2.isConcurrentMode=A;reactIs_production_min$2.isContextConsumer=function(a){return z(a)===k};reactIs_production_min$2.isContextProvider=function(a){return z(a)===h};reactIs_production_min$2.isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===c};reactIs_production_min$2.isForwardRef=function(a){return z(a)===n};reactIs_production_min$2.isFragment=function(a){return z(a)===e};reactIs_production_min$2.isLazy=function(a){return z(a)===t};
4054
- reactIs_production_min$2.isMemo=function(a){return z(a)===r};reactIs_production_min$2.isPortal=function(a){return z(a)===d};reactIs_production_min$2.isProfiler=function(a){return z(a)===g};reactIs_production_min$2.isStrictMode=function(a){return z(a)===f};reactIs_production_min$2.isSuspense=function(a){return z(a)===p};
4055
- reactIs_production_min$2.isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||"object"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};reactIs_production_min$2.typeOf=z;
4056
- return reactIs_production_min$2;
4054
+ function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}reactIs_production_min$1.AsyncMode=l;reactIs_production_min$1.ConcurrentMode=m;reactIs_production_min$1.ContextConsumer=k;reactIs_production_min$1.ContextProvider=h;reactIs_production_min$1.Element=c;reactIs_production_min$1.ForwardRef=n;reactIs_production_min$1.Fragment=e;reactIs_production_min$1.Lazy=t;reactIs_production_min$1.Memo=r;reactIs_production_min$1.Portal=d;
4055
+ reactIs_production_min$1.Profiler=g;reactIs_production_min$1.StrictMode=f;reactIs_production_min$1.Suspense=p;reactIs_production_min$1.isAsyncMode=function(a){return A(a)||z(a)===l};reactIs_production_min$1.isConcurrentMode=A;reactIs_production_min$1.isContextConsumer=function(a){return z(a)===k};reactIs_production_min$1.isContextProvider=function(a){return z(a)===h};reactIs_production_min$1.isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===c};reactIs_production_min$1.isForwardRef=function(a){return z(a)===n};reactIs_production_min$1.isFragment=function(a){return z(a)===e};reactIs_production_min$1.isLazy=function(a){return z(a)===t};
4056
+ reactIs_production_min$1.isMemo=function(a){return z(a)===r};reactIs_production_min$1.isPortal=function(a){return z(a)===d};reactIs_production_min$1.isProfiler=function(a){return z(a)===g};reactIs_production_min$1.isStrictMode=function(a){return z(a)===f};reactIs_production_min$1.isSuspense=function(a){return z(a)===p};
4057
+ reactIs_production_min$1.isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||"object"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};reactIs_production_min$1.typeOf=z;
4058
+ return reactIs_production_min$1;
4057
4059
  }
4058
4060
 
4059
- var reactIs_development$2 = {};
4061
+ var reactIs_development$1 = {};
4060
4062
 
4061
4063
  /** @license React v16.13.1
4062
4064
  * react-is.development.js
@@ -4067,11 +4069,11 @@ var reactIs_development$2 = {};
4067
4069
  * LICENSE file in the root directory of this source tree.
4068
4070
  */
4069
4071
 
4070
- var hasRequiredReactIs_development$2;
4072
+ var hasRequiredReactIs_development$1;
4071
4073
 
4072
- function requireReactIs_development$2 () {
4073
- if (hasRequiredReactIs_development$2) return reactIs_development$2;
4074
- hasRequiredReactIs_development$2 = 1;
4074
+ function requireReactIs_development$1 () {
4075
+ if (hasRequiredReactIs_development$1) return reactIs_development$1;
4076
+ hasRequiredReactIs_development$1 = 1;
4075
4077
 
4076
4078
 
4077
4079
 
@@ -4212,51 +4214,51 @@ function requireReactIs_development$2 () {
4212
4214
  return typeOf(object) === REACT_SUSPENSE_TYPE;
4213
4215
  }
4214
4216
 
4215
- reactIs_development$2.AsyncMode = AsyncMode;
4216
- reactIs_development$2.ConcurrentMode = ConcurrentMode;
4217
- reactIs_development$2.ContextConsumer = ContextConsumer;
4218
- reactIs_development$2.ContextProvider = ContextProvider;
4219
- reactIs_development$2.Element = Element;
4220
- reactIs_development$2.ForwardRef = ForwardRef;
4221
- reactIs_development$2.Fragment = Fragment;
4222
- reactIs_development$2.Lazy = Lazy;
4223
- reactIs_development$2.Memo = Memo;
4224
- reactIs_development$2.Portal = Portal;
4225
- reactIs_development$2.Profiler = Profiler;
4226
- reactIs_development$2.StrictMode = StrictMode;
4227
- reactIs_development$2.Suspense = Suspense;
4228
- reactIs_development$2.isAsyncMode = isAsyncMode;
4229
- reactIs_development$2.isConcurrentMode = isConcurrentMode;
4230
- reactIs_development$2.isContextConsumer = isContextConsumer;
4231
- reactIs_development$2.isContextProvider = isContextProvider;
4232
- reactIs_development$2.isElement = isElement;
4233
- reactIs_development$2.isForwardRef = isForwardRef;
4234
- reactIs_development$2.isFragment = isFragment;
4235
- reactIs_development$2.isLazy = isLazy;
4236
- reactIs_development$2.isMemo = isMemo;
4237
- reactIs_development$2.isPortal = isPortal;
4238
- reactIs_development$2.isProfiler = isProfiler;
4239
- reactIs_development$2.isStrictMode = isStrictMode;
4240
- reactIs_development$2.isSuspense = isSuspense;
4241
- reactIs_development$2.isValidElementType = isValidElementType;
4242
- reactIs_development$2.typeOf = typeOf;
4217
+ reactIs_development$1.AsyncMode = AsyncMode;
4218
+ reactIs_development$1.ConcurrentMode = ConcurrentMode;
4219
+ reactIs_development$1.ContextConsumer = ContextConsumer;
4220
+ reactIs_development$1.ContextProvider = ContextProvider;
4221
+ reactIs_development$1.Element = Element;
4222
+ reactIs_development$1.ForwardRef = ForwardRef;
4223
+ reactIs_development$1.Fragment = Fragment;
4224
+ reactIs_development$1.Lazy = Lazy;
4225
+ reactIs_development$1.Memo = Memo;
4226
+ reactIs_development$1.Portal = Portal;
4227
+ reactIs_development$1.Profiler = Profiler;
4228
+ reactIs_development$1.StrictMode = StrictMode;
4229
+ reactIs_development$1.Suspense = Suspense;
4230
+ reactIs_development$1.isAsyncMode = isAsyncMode;
4231
+ reactIs_development$1.isConcurrentMode = isConcurrentMode;
4232
+ reactIs_development$1.isContextConsumer = isContextConsumer;
4233
+ reactIs_development$1.isContextProvider = isContextProvider;
4234
+ reactIs_development$1.isElement = isElement;
4235
+ reactIs_development$1.isForwardRef = isForwardRef;
4236
+ reactIs_development$1.isFragment = isFragment;
4237
+ reactIs_development$1.isLazy = isLazy;
4238
+ reactIs_development$1.isMemo = isMemo;
4239
+ reactIs_development$1.isPortal = isPortal;
4240
+ reactIs_development$1.isProfiler = isProfiler;
4241
+ reactIs_development$1.isStrictMode = isStrictMode;
4242
+ reactIs_development$1.isSuspense = isSuspense;
4243
+ reactIs_development$1.isValidElementType = isValidElementType;
4244
+ reactIs_development$1.typeOf = typeOf;
4243
4245
  })();
4244
4246
  }
4245
- return reactIs_development$2;
4247
+ return reactIs_development$1;
4246
4248
  }
4247
4249
 
4248
- var hasRequiredReactIs$2;
4250
+ var hasRequiredReactIs$1;
4249
4251
 
4250
- function requireReactIs$2 () {
4251
- if (hasRequiredReactIs$2) return reactIs$2.exports;
4252
- hasRequiredReactIs$2 = 1;
4252
+ function requireReactIs$1 () {
4253
+ if (hasRequiredReactIs$1) return reactIs$1.exports;
4254
+ hasRequiredReactIs$1 = 1;
4253
4255
 
4254
4256
  if (process.env.NODE_ENV === 'production') {
4255
- reactIs$2.exports = requireReactIs_production_min$2();
4257
+ reactIs$1.exports = requireReactIs_production_min$1();
4256
4258
  } else {
4257
- reactIs$2.exports = requireReactIs_development$2();
4259
+ reactIs$1.exports = requireReactIs_development$1();
4258
4260
  }
4259
- return reactIs$2.exports;
4261
+ return reactIs$1.exports;
4260
4262
  }
4261
4263
 
4262
4264
  /*
@@ -4509,7 +4511,7 @@ function requireFactoryWithTypeCheckers () {
4509
4511
  if (hasRequiredFactoryWithTypeCheckers) return factoryWithTypeCheckers;
4510
4512
  hasRequiredFactoryWithTypeCheckers = 1;
4511
4513
 
4512
- var ReactIs = requireReactIs$2();
4514
+ var ReactIs = requireReactIs$1();
4513
4515
  var assign = requireObjectAssign();
4514
4516
 
4515
4517
  var ReactPropTypesSecret = /*@__PURE__*/ requireReactPropTypesSecret();
@@ -5194,7 +5196,7 @@ function requirePropTypes () {
5194
5196
  if (hasRequiredPropTypes) return propTypes.exports;
5195
5197
  hasRequiredPropTypes = 1;
5196
5198
  if (process.env.NODE_ENV !== 'production') {
5197
- var ReactIs = requireReactIs$2();
5199
+ var ReactIs = requireReactIs$1();
5198
5200
 
5199
5201
  // By explicitly using `prop-types` you are opting into new development behavior.
5200
5202
  // http://fb.me/prop-types-in-prod
@@ -6337,1812 +6339,83 @@ function unstable_createStyleFunctionSx() {
6337
6339
  if (config[styleKey]) {
6338
6340
  css = merge(css, getThemeValue(styleKey, value, theme, config));
6339
6341
  } else {
6340
- const breakpointsValues = handleBreakpoints({
6341
- theme
6342
- }, value, x => ({
6343
- [styleKey]: x
6344
- }));
6345
- if (objectsHaveSameKeys(breakpointsValues, value)) {
6346
- css[styleKey] = styleFunctionSx({
6347
- sx: value,
6348
- theme
6349
- });
6350
- } else {
6351
- css = merge(css, breakpointsValues);
6352
- }
6353
- }
6354
- } else {
6355
- css = merge(css, getThemeValue(styleKey, value, theme, config));
6356
- }
6357
- }
6358
- });
6359
- return sortContainerQueries(theme, removeUnusedBreakpoints(breakpointsKeys, css));
6360
- }
6361
- return Array.isArray(sx) ? sx.map(traverse) : traverse(sx);
6362
- }
6363
- return styleFunctionSx;
6364
- }
6365
- const styleFunctionSx = unstable_createStyleFunctionSx();
6366
- styleFunctionSx.filterProps = ['sx'];
6367
-
6368
- const splitProps = props => {
6369
- const result = {
6370
- systemProps: {},
6371
- otherProps: {}
6372
- };
6373
- const config = props?.theme?.unstable_sxConfig ?? defaultSxConfig;
6374
- Object.keys(props).forEach(prop => {
6375
- if (config[prop]) {
6376
- result.systemProps[prop] = props[prop];
6377
- } else {
6378
- result.otherProps[prop] = props[prop];
6379
- }
6380
- });
6381
- return result;
6382
- };
6383
- function extendSxProp$1(props) {
6384
- const {
6385
- sx: inSx,
6386
- ...other
6387
- } = props;
6388
- const {
6389
- systemProps,
6390
- otherProps
6391
- } = splitProps(other);
6392
- let finalSx;
6393
- if (Array.isArray(inSx)) {
6394
- finalSx = [systemProps, ...inSx];
6395
- } else if (typeof inSx === 'function') {
6396
- finalSx = (...args) => {
6397
- const result = inSx(...args);
6398
- if (!isPlainObject(result)) {
6399
- return systemProps;
6400
- }
6401
- return {
6402
- ...systemProps,
6403
- ...result
6404
- };
6405
- };
6406
- } else {
6407
- finalSx = {
6408
- ...systemProps,
6409
- ...inSx
6410
- };
6411
- }
6412
- return {
6413
- ...otherProps,
6414
- sx: finalSx
6415
- };
6416
- }
6417
-
6418
- function _extends() {
6419
- return _extends = Object.assign ? Object.assign.bind() : function (n) {
6420
- for (var e = 1; e < arguments.length; e++) {
6421
- var t = arguments[e];
6422
- for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
6423
- }
6424
- return n;
6425
- }, _extends.apply(null, arguments);
6426
- }
6427
-
6428
- function memoize(fn) {
6429
- var cache = Object.create(null);
6430
- return function (arg) {
6431
- if (cache[arg] === undefined) cache[arg] = fn(arg);
6432
- return cache[arg];
6433
- };
6434
- }
6435
-
6436
- // eslint-disable-next-line no-undef
6437
- 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
6438
-
6439
- var isPropValid = /* #__PURE__ */memoize(function (prop) {
6440
- return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111
6441
- /* o */
6442
- && prop.charCodeAt(1) === 110
6443
- /* n */
6444
- && prop.charCodeAt(2) < 91;
6445
- }
6446
- /* Z+1 */
6447
- );
6448
-
6449
- var isDevelopment$2 = false;
6450
-
6451
- /*
6452
-
6453
- Based off glamor's StyleSheet, thanks Sunil ❤️
6454
-
6455
- high performance StyleSheet for css-in-js systems
6456
-
6457
- - uses multiple style tags behind the scenes for millions of rules
6458
- - uses `insertRule` for appending in production for *much* faster performance
6459
-
6460
- // usage
6461
-
6462
- import { StyleSheet } from '@emotion/sheet'
6463
-
6464
- let styleSheet = new StyleSheet({ key: '', container: document.head })
6465
-
6466
- styleSheet.insert('#box { border: 1px solid red; }')
6467
- - appends a css rule into the stylesheet
6468
-
6469
- styleSheet.flush()
6470
- - empties the stylesheet of all its contents
6471
-
6472
- */
6473
-
6474
- function sheetForTag(tag) {
6475
- if (tag.sheet) {
6476
- return tag.sheet;
6477
- } // this weirdness brought to you by firefox
6478
-
6479
- /* istanbul ignore next */
6480
-
6481
-
6482
- for (var i = 0; i < document.styleSheets.length; i++) {
6483
- if (document.styleSheets[i].ownerNode === tag) {
6484
- return document.styleSheets[i];
6485
- }
6486
- } // this function should always return with a value
6487
- // TS can't understand it though so we make it stop complaining here
6488
-
6489
-
6490
- return undefined;
6491
- }
6492
-
6493
- function createStyleElement(options) {
6494
- var tag = document.createElement('style');
6495
- tag.setAttribute('data-emotion', options.key);
6496
-
6497
- if (options.nonce !== undefined) {
6498
- tag.setAttribute('nonce', options.nonce);
6499
- }
6500
-
6501
- tag.appendChild(document.createTextNode(''));
6502
- tag.setAttribute('data-s', '');
6503
- return tag;
6504
- }
6505
-
6506
- var StyleSheet = /*#__PURE__*/function () {
6507
- // Using Node instead of HTMLElement since container may be a ShadowRoot
6508
- function StyleSheet(options) {
6509
- var _this = this;
6510
-
6511
- this._insertTag = function (tag) {
6512
- var before;
6513
-
6514
- if (_this.tags.length === 0) {
6515
- if (_this.insertionPoint) {
6516
- before = _this.insertionPoint.nextSibling;
6517
- } else if (_this.prepend) {
6518
- before = _this.container.firstChild;
6519
- } else {
6520
- before = _this.before;
6521
- }
6522
- } else {
6523
- before = _this.tags[_this.tags.length - 1].nextSibling;
6524
- }
6525
-
6526
- _this.container.insertBefore(tag, before);
6527
-
6528
- _this.tags.push(tag);
6529
- };
6530
-
6531
- this.isSpeedy = options.speedy === undefined ? !isDevelopment$2 : options.speedy;
6532
- this.tags = [];
6533
- this.ctr = 0;
6534
- this.nonce = options.nonce; // key is the value of the data-emotion attribute, it's used to identify different sheets
6535
-
6536
- this.key = options.key;
6537
- this.container = options.container;
6538
- this.prepend = options.prepend;
6539
- this.insertionPoint = options.insertionPoint;
6540
- this.before = null;
6541
- }
6542
-
6543
- var _proto = StyleSheet.prototype;
6544
-
6545
- _proto.hydrate = function hydrate(nodes) {
6546
- nodes.forEach(this._insertTag);
6547
- };
6548
-
6549
- _proto.insert = function insert(rule) {
6550
- // the max length is how many rules we have per style tag, it's 65000 in speedy mode
6551
- // it's 1 in dev because we insert source maps that map a single rule to a location
6552
- // and you can only have one source map per style tag
6553
- if (this.ctr % (this.isSpeedy ? 65000 : 1) === 0) {
6554
- this._insertTag(createStyleElement(this));
6555
- }
6556
-
6557
- var tag = this.tags[this.tags.length - 1];
6558
-
6559
- if (this.isSpeedy) {
6560
- var sheet = sheetForTag(tag);
6561
-
6562
- try {
6563
- // this is the ultrafast version, works across browsers
6564
- // the big drawback is that the css won't be editable in devtools
6565
- sheet.insertRule(rule, sheet.cssRules.length);
6566
- } catch (e) {
6567
- }
6568
- } else {
6569
- tag.appendChild(document.createTextNode(rule));
6570
- }
6571
-
6572
- this.ctr++;
6573
- };
6574
-
6575
- _proto.flush = function flush() {
6576
- this.tags.forEach(function (tag) {
6577
- var _tag$parentNode;
6578
-
6579
- return (_tag$parentNode = tag.parentNode) == null ? void 0 : _tag$parentNode.removeChild(tag);
6580
- });
6581
- this.tags = [];
6582
- this.ctr = 0;
6583
- };
6584
-
6585
- return StyleSheet;
6586
- }();
6587
-
6588
- var MS = '-ms-';
6589
- var MOZ = '-moz-';
6590
- var WEBKIT = '-webkit-';
6591
-
6592
- var COMMENT = 'comm';
6593
- var RULESET = 'rule';
6594
- var DECLARATION = 'decl';
6595
- var IMPORT = '@import';
6596
- var KEYFRAMES = '@keyframes';
6597
- var LAYER = '@layer';
6598
-
6599
- /**
6600
- * @param {number}
6601
- * @return {number}
6602
- */
6603
- var abs = Math.abs;
6604
-
6605
- /**
6606
- * @param {number}
6607
- * @return {string}
6608
- */
6609
- var from = String.fromCharCode;
6610
-
6611
- /**
6612
- * @param {object}
6613
- * @return {object}
6614
- */
6615
- var assign = Object.assign;
6616
-
6617
- /**
6618
- * @param {string} value
6619
- * @param {number} length
6620
- * @return {number}
6621
- */
6622
- function hash (value, length) {
6623
- return charat(value, 0) ^ 45 ? (((((((length << 2) ^ charat(value, 0)) << 2) ^ charat(value, 1)) << 2) ^ charat(value, 2)) << 2) ^ charat(value, 3) : 0
6624
- }
6625
-
6626
- /**
6627
- * @param {string} value
6628
- * @return {string}
6629
- */
6630
- function trim (value) {
6631
- return value.trim()
6632
- }
6633
-
6634
- /**
6635
- * @param {string} value
6636
- * @param {RegExp} pattern
6637
- * @return {string?}
6638
- */
6639
- function match (value, pattern) {
6640
- return (value = pattern.exec(value)) ? value[0] : value
6641
- }
6642
-
6643
- /**
6644
- * @param {string} value
6645
- * @param {(string|RegExp)} pattern
6646
- * @param {string} replacement
6647
- * @return {string}
6648
- */
6649
- function replace (value, pattern, replacement) {
6650
- return value.replace(pattern, replacement)
6651
- }
6652
-
6653
- /**
6654
- * @param {string} value
6655
- * @param {string} search
6656
- * @return {number}
6657
- */
6658
- function indexof (value, search) {
6659
- return value.indexOf(search)
6660
- }
6661
-
6662
- /**
6663
- * @param {string} value
6664
- * @param {number} index
6665
- * @return {number}
6666
- */
6667
- function charat (value, index) {
6668
- return value.charCodeAt(index) | 0
6669
- }
6670
-
6671
- /**
6672
- * @param {string} value
6673
- * @param {number} begin
6674
- * @param {number} end
6675
- * @return {string}
6676
- */
6677
- function substr (value, begin, end) {
6678
- return value.slice(begin, end)
6679
- }
6680
-
6681
- /**
6682
- * @param {string} value
6683
- * @return {number}
6684
- */
6685
- function strlen (value) {
6686
- return value.length
6687
- }
6688
-
6689
- /**
6690
- * @param {any[]} value
6691
- * @return {number}
6692
- */
6693
- function sizeof (value) {
6694
- return value.length
6695
- }
6696
-
6697
- /**
6698
- * @param {any} value
6699
- * @param {any[]} array
6700
- * @return {any}
6701
- */
6702
- function append (value, array) {
6703
- return array.push(value), value
6704
- }
6705
-
6706
- /**
6707
- * @param {string[]} array
6708
- * @param {function} callback
6709
- * @return {string}
6710
- */
6711
- function combine (array, callback) {
6712
- return array.map(callback).join('')
6713
- }
6714
-
6715
- var line = 1;
6716
- var column = 1;
6717
- var length = 0;
6718
- var position = 0;
6719
- var character = 0;
6720
- var characters = '';
6721
-
6722
- /**
6723
- * @param {string} value
6724
- * @param {object | null} root
6725
- * @param {object | null} parent
6726
- * @param {string} type
6727
- * @param {string[] | string} props
6728
- * @param {object[] | string} children
6729
- * @param {number} length
6730
- */
6731
- function node (value, root, parent, type, props, children, length) {
6732
- return {value: value, root: root, parent: parent, type: type, props: props, children: children, line: line, column: column, length: length, return: ''}
6733
- }
6734
-
6735
- /**
6736
- * @param {object} root
6737
- * @param {object} props
6738
- * @return {object}
6739
- */
6740
- function copy (root, props) {
6741
- return assign(node('', null, null, '', null, null, 0), root, {length: -root.length}, props)
6742
- }
6743
-
6744
- /**
6745
- * @return {number}
6746
- */
6747
- function char () {
6748
- return character
6749
- }
6750
-
6751
- /**
6752
- * @return {number}
6753
- */
6754
- function prev () {
6755
- character = position > 0 ? charat(characters, --position) : 0;
6756
-
6757
- if (column--, character === 10)
6758
- column = 1, line--;
6759
-
6760
- return character
6761
- }
6762
-
6763
- /**
6764
- * @return {number}
6765
- */
6766
- function next () {
6767
- character = position < length ? charat(characters, position++) : 0;
6768
-
6769
- if (column++, character === 10)
6770
- column = 1, line++;
6771
-
6772
- return character
6773
- }
6774
-
6775
- /**
6776
- * @return {number}
6777
- */
6778
- function peek () {
6779
- return charat(characters, position)
6780
- }
6781
-
6782
- /**
6783
- * @return {number}
6784
- */
6785
- function caret () {
6786
- return position
6787
- }
6788
-
6789
- /**
6790
- * @param {number} begin
6791
- * @param {number} end
6792
- * @return {string}
6793
- */
6794
- function slice (begin, end) {
6795
- return substr(characters, begin, end)
6796
- }
6797
-
6798
- /**
6799
- * @param {number} type
6800
- * @return {number}
6801
- */
6802
- function token (type) {
6803
- switch (type) {
6804
- // \0 \t \n \r \s whitespace token
6805
- case 0: case 9: case 10: case 13: case 32:
6806
- return 5
6807
- // ! + , / > @ ~ isolate token
6808
- case 33: case 43: case 44: case 47: case 62: case 64: case 126:
6809
- // ; { } breakpoint token
6810
- case 59: case 123: case 125:
6811
- return 4
6812
- // : accompanied token
6813
- case 58:
6814
- return 3
6815
- // " ' ( [ opening delimit token
6816
- case 34: case 39: case 40: case 91:
6817
- return 2
6818
- // ) ] closing delimit token
6819
- case 41: case 93:
6820
- return 1
6821
- }
6822
-
6823
- return 0
6824
- }
6825
-
6826
- /**
6827
- * @param {string} value
6828
- * @return {any[]}
6829
- */
6830
- function alloc (value) {
6831
- return line = column = 1, length = strlen(characters = value), position = 0, []
6832
- }
6833
-
6834
- /**
6835
- * @param {any} value
6836
- * @return {any}
6837
- */
6838
- function dealloc (value) {
6839
- return characters = '', value
6840
- }
6841
-
6842
- /**
6843
- * @param {number} type
6844
- * @return {string}
6845
- */
6846
- function delimit (type) {
6847
- return trim(slice(position - 1, delimiter(type === 91 ? type + 2 : type === 40 ? type + 1 : type)))
6848
- }
6849
-
6850
- /**
6851
- * @param {number} type
6852
- * @return {string}
6853
- */
6854
- function whitespace (type) {
6855
- while (character = peek())
6856
- if (character < 33)
6857
- next();
6858
- else
6859
- break
6860
-
6861
- return token(type) > 2 || token(character) > 3 ? '' : ' '
6862
- }
6863
-
6864
- /**
6865
- * @param {number} index
6866
- * @param {number} count
6867
- * @return {string}
6868
- */
6869
- function escaping (index, count) {
6870
- while (--count && next())
6871
- // not 0-9 A-F a-f
6872
- if (character < 48 || character > 102 || (character > 57 && character < 65) || (character > 70 && character < 97))
6873
- break
6874
-
6875
- return slice(index, caret() + (count < 6 && peek() == 32 && next() == 32))
6876
- }
6877
-
6878
- /**
6879
- * @param {number} type
6880
- * @return {number}
6881
- */
6882
- function delimiter (type) {
6883
- while (next())
6884
- switch (character) {
6885
- // ] ) " '
6886
- case type:
6887
- return position
6888
- // " '
6889
- case 34: case 39:
6890
- if (type !== 34 && type !== 39)
6891
- delimiter(character);
6892
- break
6893
- // (
6894
- case 40:
6895
- if (type === 41)
6896
- delimiter(type);
6897
- break
6898
- // \
6899
- case 92:
6900
- next();
6901
- break
6902
- }
6903
-
6904
- return position
6905
- }
6906
-
6907
- /**
6908
- * @param {number} type
6909
- * @param {number} index
6910
- * @return {number}
6911
- */
6912
- function commenter (type, index) {
6913
- while (next())
6914
- // //
6915
- if (type + character === 47 + 10)
6916
- break
6917
- // /*
6918
- else if (type + character === 42 + 42 && peek() === 47)
6919
- break
6920
-
6921
- return '/*' + slice(index, position - 1) + '*' + from(type === 47 ? type : next())
6922
- }
6923
-
6924
- /**
6925
- * @param {number} index
6926
- * @return {string}
6927
- */
6928
- function identifier (index) {
6929
- while (!token(peek()))
6930
- next();
6931
-
6932
- return slice(index, position)
6933
- }
6934
-
6935
- /**
6936
- * @param {string} value
6937
- * @return {object[]}
6938
- */
6939
- function compile (value) {
6940
- return dealloc(parse('', null, null, null, [''], value = alloc(value), 0, [0], value))
6941
- }
6942
-
6943
- /**
6944
- * @param {string} value
6945
- * @param {object} root
6946
- * @param {object?} parent
6947
- * @param {string[]} rule
6948
- * @param {string[]} rules
6949
- * @param {string[]} rulesets
6950
- * @param {number[]} pseudo
6951
- * @param {number[]} points
6952
- * @param {string[]} declarations
6953
- * @return {object}
6954
- */
6955
- function parse (value, root, parent, rule, rules, rulesets, pseudo, points, declarations) {
6956
- var index = 0;
6957
- var offset = 0;
6958
- var length = pseudo;
6959
- var atrule = 0;
6960
- var property = 0;
6961
- var previous = 0;
6962
- var variable = 1;
6963
- var scanning = 1;
6964
- var ampersand = 1;
6965
- var character = 0;
6966
- var type = '';
6967
- var props = rules;
6968
- var children = rulesets;
6969
- var reference = rule;
6970
- var characters = type;
6971
-
6972
- while (scanning)
6973
- switch (previous = character, character = next()) {
6974
- // (
6975
- case 40:
6976
- if (previous != 108 && charat(characters, length - 1) == 58) {
6977
- if (indexof(characters += replace(delimit(character), '&', '&\f'), '&\f') != -1)
6978
- ampersand = -1;
6979
- break
6980
- }
6981
- // " ' [
6982
- case 34: case 39: case 91:
6983
- characters += delimit(character);
6984
- break
6985
- // \t \n \r \s
6986
- case 9: case 10: case 13: case 32:
6987
- characters += whitespace(previous);
6988
- break
6989
- // \
6990
- case 92:
6991
- characters += escaping(caret() - 1, 7);
6992
- continue
6993
- // /
6994
- case 47:
6995
- switch (peek()) {
6996
- case 42: case 47:
6997
- append(comment(commenter(next(), caret()), root, parent), declarations);
6998
- break
6999
- default:
7000
- characters += '/';
7001
- }
7002
- break
7003
- // {
7004
- case 123 * variable:
7005
- points[index++] = strlen(characters) * ampersand;
7006
- // } ; \0
7007
- case 125 * variable: case 59: case 0:
7008
- switch (character) {
7009
- // \0 }
7010
- case 0: case 125: scanning = 0;
7011
- // ;
7012
- case 59 + offset: if (ampersand == -1) characters = replace(characters, /\f/g, '');
7013
- if (property > 0 && (strlen(characters) - length))
7014
- append(property > 32 ? declaration(characters + ';', rule, parent, length - 1) : declaration(replace(characters, ' ', '') + ';', rule, parent, length - 2), declarations);
7015
- break
7016
- // @ ;
7017
- case 59: characters += ';';
7018
- // { rule/at-rule
7019
- default:
7020
- append(reference = ruleset(characters, root, parent, index, offset, rules, points, type, props = [], children = [], length), rulesets);
7021
-
7022
- if (character === 123)
7023
- if (offset === 0)
7024
- parse(characters, root, reference, reference, props, rulesets, length, points, children);
7025
- else
7026
- switch (atrule === 99 && charat(characters, 3) === 110 ? 100 : atrule) {
7027
- // d l m s
7028
- case 100: case 108: case 109: case 115:
7029
- parse(value, reference, reference, rule && append(ruleset(value, reference, reference, 0, 0, rules, points, type, rules, props = [], length), children), rules, children, length, points, rule ? props : children);
7030
- break
7031
- default:
7032
- parse(characters, reference, reference, reference, [''], children, 0, points, children);
7033
- }
7034
- }
7035
-
7036
- index = offset = property = 0, variable = ampersand = 1, type = characters = '', length = pseudo;
7037
- break
7038
- // :
7039
- case 58:
7040
- length = 1 + strlen(characters), property = previous;
7041
- default:
7042
- if (variable < 1)
7043
- if (character == 123)
7044
- --variable;
7045
- else if (character == 125 && variable++ == 0 && prev() == 125)
7046
- continue
7047
-
7048
- switch (characters += from(character), character * variable) {
7049
- // &
7050
- case 38:
7051
- ampersand = offset > 0 ? 1 : (characters += '\f', -1);
7052
- break
7053
- // ,
7054
- case 44:
7055
- points[index++] = (strlen(characters) - 1) * ampersand, ampersand = 1;
7056
- break
7057
- // @
7058
- case 64:
7059
- // -
7060
- if (peek() === 45)
7061
- characters += delimit(next());
7062
-
7063
- atrule = peek(), offset = length = strlen(type = characters += identifier(caret())), character++;
7064
- break
7065
- // -
7066
- case 45:
7067
- if (previous === 45 && strlen(characters) == 2)
7068
- variable = 0;
7069
- }
7070
- }
7071
-
7072
- return rulesets
7073
- }
7074
-
7075
- /**
7076
- * @param {string} value
7077
- * @param {object} root
7078
- * @param {object?} parent
7079
- * @param {number} index
7080
- * @param {number} offset
7081
- * @param {string[]} rules
7082
- * @param {number[]} points
7083
- * @param {string} type
7084
- * @param {string[]} props
7085
- * @param {string[]} children
7086
- * @param {number} length
7087
- * @return {object}
7088
- */
7089
- function ruleset (value, root, parent, index, offset, rules, points, type, props, children, length) {
7090
- var post = offset - 1;
7091
- var rule = offset === 0 ? rules : [''];
7092
- var size = sizeof(rule);
7093
-
7094
- for (var i = 0, j = 0, k = 0; i < index; ++i)
7095
- for (var x = 0, y = substr(value, post + 1, post = abs(j = points[i])), z = value; x < size; ++x)
7096
- if (z = trim(j > 0 ? rule[x] + ' ' + y : replace(y, /&\f/g, rule[x])))
7097
- props[k++] = z;
7098
-
7099
- return node(value, root, parent, offset === 0 ? RULESET : type, props, children, length)
7100
- }
7101
-
7102
- /**
7103
- * @param {number} value
7104
- * @param {object} root
7105
- * @param {object?} parent
7106
- * @return {object}
7107
- */
7108
- function comment (value, root, parent) {
7109
- return node(value, root, parent, COMMENT, from(char()), substr(value, 2, -2), 0)
7110
- }
7111
-
7112
- /**
7113
- * @param {string} value
7114
- * @param {object} root
7115
- * @param {object?} parent
7116
- * @param {number} length
7117
- * @return {object}
7118
- */
7119
- function declaration (value, root, parent, length) {
7120
- return node(value, root, parent, DECLARATION, substr(value, 0, length), substr(value, length + 1, -1), length)
7121
- }
7122
-
7123
- /**
7124
- * @param {object[]} children
7125
- * @param {function} callback
7126
- * @return {string}
7127
- */
7128
- function serialize (children, callback) {
7129
- var output = '';
7130
- var length = sizeof(children);
7131
-
7132
- for (var i = 0; i < length; i++)
7133
- output += callback(children[i], i, children, callback) || '';
7134
-
7135
- return output
7136
- }
7137
-
7138
- /**
7139
- * @param {object} element
7140
- * @param {number} index
7141
- * @param {object[]} children
7142
- * @param {function} callback
7143
- * @return {string}
7144
- */
7145
- function stringify (element, index, children, callback) {
7146
- switch (element.type) {
7147
- case LAYER: if (element.children.length) break
7148
- case IMPORT: case DECLARATION: return element.return = element.return || element.value
7149
- case COMMENT: return ''
7150
- case KEYFRAMES: return element.return = element.value + '{' + serialize(element.children, callback) + '}'
7151
- case RULESET: element.value = element.props.join(',');
7152
- }
7153
-
7154
- return strlen(children = serialize(element.children, callback)) ? element.return = element.value + '{' + children + '}' : ''
7155
- }
7156
-
7157
- /**
7158
- * @param {function[]} collection
7159
- * @return {function}
7160
- */
7161
- function middleware (collection) {
7162
- var length = sizeof(collection);
7163
-
7164
- return function (element, index, children, callback) {
7165
- var output = '';
7166
-
7167
- for (var i = 0; i < length; i++)
7168
- output += collection[i](element, index, children, callback) || '';
7169
-
7170
- return output
7171
- }
7172
- }
7173
-
7174
- /**
7175
- * @param {function} callback
7176
- * @return {function}
7177
- */
7178
- function rulesheet (callback) {
7179
- return function (element) {
7180
- if (!element.root)
7181
- if (element = element.return)
7182
- callback(element);
7183
- }
7184
- }
7185
-
7186
- var weakMemoize = function weakMemoize(func) {
7187
- var cache = new WeakMap();
7188
- return function (arg) {
7189
- if (cache.has(arg)) {
7190
- // Use non-null assertion because we just checked that the cache `has` it
7191
- // This allows us to remove `undefined` from the return value
7192
- return cache.get(arg);
7193
- }
7194
-
7195
- var ret = func(arg);
7196
- cache.set(arg, ret);
7197
- return ret;
7198
- };
7199
- };
7200
-
7201
- var isBrowser$4 = typeof document !== 'undefined';
7202
-
7203
- var identifierWithPointTracking = function identifierWithPointTracking(begin, points, index) {
7204
- var previous = 0;
7205
- var character = 0;
7206
-
7207
- while (true) {
7208
- previous = character;
7209
- character = peek(); // &\f
7210
-
7211
- if (previous === 38 && character === 12) {
7212
- points[index] = 1;
7213
- }
7214
-
7215
- if (token(character)) {
7216
- break;
7217
- }
7218
-
7219
- next();
7220
- }
7221
-
7222
- return slice(begin, position);
7223
- };
7224
-
7225
- var toRules = function toRules(parsed, points) {
7226
- // pretend we've started with a comma
7227
- var index = -1;
7228
- var character = 44;
7229
-
7230
- do {
7231
- switch (token(character)) {
7232
- case 0:
7233
- // &\f
7234
- if (character === 38 && peek() === 12) {
7235
- // this is not 100% correct, we don't account for literal sequences here - like for example quoted strings
7236
- // stylis inserts \f after & to know when & where it should replace this sequence with the context selector
7237
- // and when it should just concatenate the outer and inner selectors
7238
- // it's very unlikely for this sequence to actually appear in a different context, so we just leverage this fact here
7239
- points[index] = 1;
7240
- }
7241
-
7242
- parsed[index] += identifierWithPointTracking(position - 1, points, index);
7243
- break;
7244
-
7245
- case 2:
7246
- parsed[index] += delimit(character);
7247
- break;
7248
-
7249
- case 4:
7250
- // comma
7251
- if (character === 44) {
7252
- // colon
7253
- parsed[++index] = peek() === 58 ? '&\f' : '';
7254
- points[index] = parsed[index].length;
7255
- break;
7256
- }
7257
-
7258
- // fallthrough
7259
-
7260
- default:
7261
- parsed[index] += from(character);
7262
- }
7263
- } while (character = next());
7264
-
7265
- return parsed;
7266
- };
7267
-
7268
- var getRules = function getRules(value, points) {
7269
- return dealloc(toRules(alloc(value), points));
7270
- }; // WeakSet would be more appropriate, but only WeakMap is supported in IE11
7271
-
7272
-
7273
- var fixedElements = /* #__PURE__ */new WeakMap();
7274
- var compat = function compat(element) {
7275
- if (element.type !== 'rule' || !element.parent || // positive .length indicates that this rule contains pseudo
7276
- // negative .length indicates that this rule has been already prefixed
7277
- element.length < 1) {
7278
- return;
7279
- }
7280
-
7281
- var value = element.value,
7282
- parent = element.parent;
7283
- var isImplicitRule = element.column === parent.column && element.line === parent.line;
7284
-
7285
- while (parent.type !== 'rule') {
7286
- parent = parent.parent;
7287
- if (!parent) return;
7288
- } // short-circuit for the simplest case
7289
-
7290
-
7291
- if (element.props.length === 1 && value.charCodeAt(0) !== 58
7292
- /* colon */
7293
- && !fixedElements.get(parent)) {
7294
- return;
7295
- } // if this is an implicitly inserted rule (the one eagerly inserted at the each new nested level)
7296
- // then the props has already been manipulated beforehand as they that array is shared between it and its "rule parent"
7297
-
7298
-
7299
- if (isImplicitRule) {
7300
- return;
7301
- }
7302
-
7303
- fixedElements.set(element, true);
7304
- var points = [];
7305
- var rules = getRules(value, points);
7306
- var parentRules = parent.props;
7307
-
7308
- for (var i = 0, k = 0; i < rules.length; i++) {
7309
- for (var j = 0; j < parentRules.length; j++, k++) {
7310
- element.props[k] = points[i] ? rules[i].replace(/&\f/g, parentRules[j]) : parentRules[j] + " " + rules[i];
7311
- }
7312
- }
7313
- };
7314
- var removeLabel = function removeLabel(element) {
7315
- if (element.type === 'decl') {
7316
- var value = element.value;
7317
-
7318
- if ( // charcode for l
7319
- value.charCodeAt(0) === 108 && // charcode for b
7320
- value.charCodeAt(2) === 98) {
7321
- // this ignores label
7322
- element["return"] = '';
7323
- element.value = '';
7324
- }
7325
- }
7326
- };
7327
-
7328
- /* eslint-disable no-fallthrough */
7329
-
7330
- function prefix(value, length) {
7331
- switch (hash(value, length)) {
7332
- // color-adjust
7333
- case 5103:
7334
- return WEBKIT + 'print-' + value + value;
7335
- // animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
7336
-
7337
- case 5737:
7338
- case 4201:
7339
- case 3177:
7340
- case 3433:
7341
- case 1641:
7342
- case 4457:
7343
- case 2921: // text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break
7344
-
7345
- case 5572:
7346
- case 6356:
7347
- case 5844:
7348
- case 3191:
7349
- case 6645:
7350
- case 3005: // mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite,
7351
-
7352
- case 6391:
7353
- case 5879:
7354
- case 5623:
7355
- case 6135:
7356
- case 4599:
7357
- case 4855: // background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width)
7358
-
7359
- case 4215:
7360
- case 6389:
7361
- case 5109:
7362
- case 5365:
7363
- case 5621:
7364
- case 3829:
7365
- return WEBKIT + value + value;
7366
- // appearance, user-select, transform, hyphens, text-size-adjust
7367
-
7368
- case 5349:
7369
- case 4246:
7370
- case 4810:
7371
- case 6968:
7372
- case 2756:
7373
- return WEBKIT + value + MOZ + value + MS + value + value;
7374
- // flex, flex-direction
7375
-
7376
- case 6828:
7377
- case 4268:
7378
- return WEBKIT + value + MS + value + value;
7379
- // order
7380
-
7381
- case 6165:
7382
- return WEBKIT + value + MS + 'flex-' + value + value;
7383
- // align-items
7384
-
7385
- case 5187:
7386
- return WEBKIT + value + replace(value, /(\w+).+(:[^]+)/, WEBKIT + 'box-$1$2' + MS + 'flex-$1$2') + value;
7387
- // align-self
7388
-
7389
- case 5443:
7390
- return WEBKIT + value + MS + 'flex-item-' + replace(value, /flex-|-self/, '') + value;
7391
- // align-content
7392
-
7393
- case 4675:
7394
- return WEBKIT + value + MS + 'flex-line-pack' + replace(value, /align-content|flex-|-self/, '') + value;
7395
- // flex-shrink
7396
-
7397
- case 5548:
7398
- return WEBKIT + value + MS + replace(value, 'shrink', 'negative') + value;
7399
- // flex-basis
7400
-
7401
- case 5292:
7402
- return WEBKIT + value + MS + replace(value, 'basis', 'preferred-size') + value;
7403
- // flex-grow
7404
-
7405
- case 6060:
7406
- return WEBKIT + 'box-' + replace(value, '-grow', '') + WEBKIT + value + MS + replace(value, 'grow', 'positive') + value;
7407
- // transition
7408
-
7409
- case 4554:
7410
- return WEBKIT + replace(value, /([^-])(transform)/g, '$1' + WEBKIT + '$2') + value;
7411
- // cursor
7412
-
7413
- case 6187:
7414
- return replace(replace(replace(value, /(zoom-|grab)/, WEBKIT + '$1'), /(image-set)/, WEBKIT + '$1'), value, '') + value;
7415
- // background, background-image
7416
-
7417
- case 5495:
7418
- case 3959:
7419
- return replace(value, /(image-set\([^]*)/, WEBKIT + '$1' + '$`$1');
7420
- // justify-content
7421
-
7422
- case 4968:
7423
- return replace(replace(value, /(.+:)(flex-)?(.*)/, WEBKIT + 'box-pack:$3' + MS + 'flex-pack:$3'), /s.+-b[^;]+/, 'justify') + WEBKIT + value + value;
7424
- // (margin|padding)-inline-(start|end)
7425
-
7426
- case 4095:
7427
- case 3583:
7428
- case 4068:
7429
- case 2532:
7430
- return replace(value, /(.+)-inline(.+)/, WEBKIT + '$1$2') + value;
7431
- // (min|max)?(width|height|inline-size|block-size)
7432
-
7433
- case 8116:
7434
- case 7059:
7435
- case 5753:
7436
- case 5535:
7437
- case 5445:
7438
- case 5701:
7439
- case 4933:
7440
- case 4677:
7441
- case 5533:
7442
- case 5789:
7443
- case 5021:
7444
- case 4765:
7445
- // stretch, max-content, min-content, fill-available
7446
- if (strlen(value) - 1 - length > 6) switch (charat(value, length + 1)) {
7447
- // (m)ax-content, (m)in-content
7448
- case 109:
7449
- // -
7450
- if (charat(value, length + 4) !== 45) break;
7451
- // (f)ill-available, (f)it-content
7452
-
7453
- case 102:
7454
- return replace(value, /(.+:)(.+)-([^]+)/, '$1' + WEBKIT + '$2-$3' + '$1' + MOZ + (charat(value, length + 3) == 108 ? '$3' : '$2-$3')) + value;
7455
- // (s)tretch
7456
-
7457
- case 115:
7458
- return ~indexof(value, 'stretch') ? prefix(replace(value, 'stretch', 'fill-available'), length) + value : value;
7459
- }
7460
- break;
7461
- // position: sticky
7462
-
7463
- case 4949:
7464
- // (s)ticky?
7465
- if (charat(value, length + 1) !== 115) break;
7466
- // display: (flex|inline-flex)
7467
-
7468
- case 6444:
7469
- switch (charat(value, strlen(value) - 3 - (~indexof(value, '!important') && 10))) {
7470
- // stic(k)y
7471
- case 107:
7472
- return replace(value, ':', ':' + WEBKIT) + value;
7473
- // (inline-)?fl(e)x
7474
-
7475
- case 101:
7476
- return replace(value, /(.+:)([^;!]+)(;|!.+)?/, '$1' + WEBKIT + (charat(value, 14) === 45 ? 'inline-' : '') + 'box$3' + '$1' + WEBKIT + '$2$3' + '$1' + MS + '$2box$3') + value;
7477
- }
7478
-
7479
- break;
7480
- // writing-mode
7481
-
7482
- case 5936:
7483
- switch (charat(value, length + 11)) {
7484
- // vertical-l(r)
7485
- case 114:
7486
- return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'tb') + value;
7487
- // vertical-r(l)
7488
-
7489
- case 108:
7490
- return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'tb-rl') + value;
7491
- // horizontal(-)tb
7492
-
7493
- case 45:
7494
- return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'lr') + value;
7495
- }
7496
-
7497
- return WEBKIT + value + MS + value + value;
7498
- }
7499
-
7500
- return value;
7501
- }
7502
-
7503
- var prefixer = function prefixer(element, index, children, callback) {
7504
- if (element.length > -1) if (!element["return"]) switch (element.type) {
7505
- case DECLARATION:
7506
- element["return"] = prefix(element.value, element.length);
7507
- break;
7508
-
7509
- case KEYFRAMES:
7510
- return serialize([copy(element, {
7511
- value: replace(element.value, '@', '@' + WEBKIT)
7512
- })], callback);
7513
-
7514
- case RULESET:
7515
- if (element.length) return combine(element.props, function (value) {
7516
- switch (match(value, /(::plac\w+|:read-\w+)/)) {
7517
- // :read-(only|write)
7518
- case ':read-only':
7519
- case ':read-write':
7520
- return serialize([copy(element, {
7521
- props: [replace(value, /:(read-\w+)/, ':' + MOZ + '$1')]
7522
- })], callback);
7523
- // :placeholder
7524
-
7525
- case '::placeholder':
7526
- return serialize([copy(element, {
7527
- props: [replace(value, /:(plac\w+)/, ':' + WEBKIT + 'input-$1')]
7528
- }), copy(element, {
7529
- props: [replace(value, /:(plac\w+)/, ':' + MOZ + '$1')]
7530
- }), copy(element, {
7531
- props: [replace(value, /:(plac\w+)/, MS + 'input-$1')]
7532
- })], callback);
7533
- }
7534
-
7535
- return '';
7536
- });
7537
- }
7538
- };
7539
-
7540
- /* import type { StylisPlugin } from './types' */
7541
-
7542
- /*
7543
- export type Options = {
7544
- nonce?: string,
7545
- stylisPlugins?: StylisPlugin[],
7546
- key: string,
7547
- container?: HTMLElement,
7548
- speedy?: boolean,
7549
- prepend?: boolean,
7550
- insertionPoint?: HTMLElement
7551
- }
7552
- */
7553
-
7554
- var getServerStylisCache = isBrowser$4 ? undefined : weakMemoize(function () {
7555
- return memoize(function () {
7556
- var cache = {};
7557
- return function (name) {
7558
- return cache[name];
7559
- };
7560
- });
7561
- });
7562
- var defaultStylisPlugins = [prefixer];
7563
-
7564
- var createCache = function
7565
- /*: EmotionCache */
7566
- createCache(options
7567
- /*: Options */
7568
- ) {
7569
- var key = options.key;
7570
-
7571
- if (isBrowser$4 && key === 'css') {
7572
- var ssrStyles = document.querySelectorAll("style[data-emotion]:not([data-s])"); // get SSRed styles out of the way of React's hydration
7573
- // document.head is a safe place to move them to(though note document.head is not necessarily the last place they will be)
7574
- // note this very very intentionally targets all style elements regardless of the key to ensure
7575
- // that creating a cache works inside of render of a React component
7576
-
7577
- Array.prototype.forEach.call(ssrStyles, function (node
7578
- /*: HTMLStyleElement */
7579
- ) {
7580
- // we want to only move elements which have a space in the data-emotion attribute value
7581
- // because that indicates that it is an Emotion 11 server-side rendered style elements
7582
- // while we will already ignore Emotion 11 client-side inserted styles because of the :not([data-s]) part in the selector
7583
- // Emotion 10 client-side inserted styles did not have data-s (but importantly did not have a space in their data-emotion attributes)
7584
- // so checking for the space ensures that loading Emotion 11 after Emotion 10 has inserted some styles
7585
- // will not result in the Emotion 10 styles being destroyed
7586
- var dataEmotionAttribute = node.getAttribute('data-emotion');
7587
-
7588
- if (dataEmotionAttribute.indexOf(' ') === -1) {
7589
- return;
7590
- }
7591
-
7592
- document.head.appendChild(node);
7593
- node.setAttribute('data-s', '');
7594
- });
7595
- }
7596
-
7597
- var stylisPlugins = options.stylisPlugins || defaultStylisPlugins;
7598
-
7599
- var inserted = {};
7600
- var container;
7601
- /* : Node */
7602
-
7603
- var nodesToHydrate = [];
7604
-
7605
- if (isBrowser$4) {
7606
- container = options.container || document.head;
7607
- Array.prototype.forEach.call( // this means we will ignore elements which don't have a space in them which
7608
- // means that the style elements we're looking at are only Emotion 11 server-rendered style elements
7609
- document.querySelectorAll("style[data-emotion^=\"" + key + " \"]"), function (node
7610
- /*: HTMLStyleElement */
7611
- ) {
7612
- var attrib = node.getAttribute("data-emotion").split(' ');
7613
-
7614
- for (var i = 1; i < attrib.length; i++) {
7615
- inserted[attrib[i]] = true;
7616
- }
7617
-
7618
- nodesToHydrate.push(node);
7619
- });
7620
- }
7621
-
7622
- var _insert;
7623
- /*: (
7624
- selector: string,
7625
- serialized: SerializedStyles,
7626
- sheet: StyleSheet,
7627
- shouldCache: boolean
7628
- ) => string | void */
7629
-
7630
-
7631
- var omnipresentPlugins = [compat, removeLabel];
7632
-
7633
- if (isBrowser$4) {
7634
- var currentSheet;
7635
- var finalizingPlugins = [stringify, rulesheet(function (rule) {
7636
- currentSheet.insert(rule);
7637
- })];
7638
- var serializer = middleware(omnipresentPlugins.concat(stylisPlugins, finalizingPlugins));
7639
-
7640
- var stylis = function stylis(styles) {
7641
- return serialize(compile(styles), serializer);
7642
- };
7643
-
7644
- _insert = function
7645
- /*: void */
7646
- insert(selector
7647
- /*: string */
7648
- , serialized
7649
- /*: SerializedStyles */
7650
- , sheet
7651
- /*: StyleSheet */
7652
- , shouldCache
7653
- /*: boolean */
7654
- ) {
7655
- currentSheet = sheet;
7656
-
7657
- stylis(selector ? selector + "{" + serialized.styles + "}" : serialized.styles);
7658
-
7659
- if (shouldCache) {
7660
- cache.inserted[serialized.name] = true;
7661
- }
7662
- };
7663
- } else {
7664
- var _finalizingPlugins = [stringify];
7665
-
7666
- var _serializer = middleware(omnipresentPlugins.concat(stylisPlugins, _finalizingPlugins));
7667
-
7668
- var _stylis = function _stylis(styles) {
7669
- return serialize(compile(styles), _serializer);
7670
- };
7671
-
7672
- var serverStylisCache = getServerStylisCache(stylisPlugins)(key);
7673
-
7674
- var getRules = function
7675
- /*: string */
7676
- getRules(selector
7677
- /*: string */
7678
- , serialized
7679
- /*: SerializedStyles */
7680
- ) {
7681
- var name = serialized.name;
7682
-
7683
- if (serverStylisCache[name] === undefined) {
7684
- serverStylisCache[name] = _stylis(selector ? selector + "{" + serialized.styles + "}" : serialized.styles);
7685
- }
7686
-
7687
- return serverStylisCache[name];
7688
- };
7689
-
7690
- _insert = function
7691
- /*: string | void */
7692
- _insert(selector
7693
- /*: string */
7694
- , serialized
7695
- /*: SerializedStyles */
7696
- , sheet
7697
- /*: StyleSheet */
7698
- , shouldCache
7699
- /*: boolean */
7700
- ) {
7701
- var name = serialized.name;
7702
- var rules = getRules(selector, serialized);
7703
-
7704
- if (cache.compat === undefined) {
7705
- // in regular mode, we don't set the styles on the inserted cache
7706
- // since we don't need to and that would be wasting memory
7707
- // we return them so that they are rendered in a style tag
7708
- if (shouldCache) {
7709
- cache.inserted[name] = true;
7710
- }
7711
-
7712
- return rules;
7713
- } else {
7714
- // in compat mode, we put the styles on the inserted cache so
7715
- // that emotion-server can pull out the styles
7716
- // except when we don't want to cache it which was in Global but now
7717
- // is nowhere but we don't want to do a major right now
7718
- // and just in case we're going to leave the case here
7719
- // it's also not affecting client side bundle size
7720
- // so it's really not a big deal
7721
- if (shouldCache) {
7722
- cache.inserted[name] = rules;
7723
- } else {
7724
- return rules;
7725
- }
7726
- }
7727
- };
7728
- }
7729
-
7730
- var cache
7731
- /*: EmotionCache */
7732
- = {
7733
- key: key,
7734
- sheet: new StyleSheet({
7735
- key: key,
7736
- container: container,
7737
- nonce: options.nonce,
7738
- speedy: options.speedy,
7739
- prepend: options.prepend,
7740
- insertionPoint: options.insertionPoint
7741
- }),
7742
- nonce: options.nonce,
7743
- inserted: inserted,
7744
- registered: {},
7745
- insert: _insert
7746
- };
7747
- cache.sheet.hydrate(nodesToHydrate);
7748
- return cache;
7749
- };
7750
-
7751
- var reactIs$1 = {exports: {}};
7752
-
7753
- var reactIs_production_min$1 = {};
7754
-
7755
- /** @license React v16.13.1
7756
- * react-is.production.min.js
7757
- *
7758
- * Copyright (c) Facebook, Inc. and its affiliates.
7759
- *
7760
- * This source code is licensed under the MIT license found in the
7761
- * LICENSE file in the root directory of this source tree.
7762
- */
7763
-
7764
- var hasRequiredReactIs_production_min$1;
7765
-
7766
- function requireReactIs_production_min$1 () {
7767
- if (hasRequiredReactIs_production_min$1) return reactIs_production_min$1;
7768
- hasRequiredReactIs_production_min$1 = 1;
7769
- var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?
7770
- Symbol.for("react.suspense_list"):60120,r=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.block"):60121,w=b?Symbol.for("react.fundamental"):60117,x=b?Symbol.for("react.responder"):60118,y=b?Symbol.for("react.scope"):60119;
7771
- function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}reactIs_production_min$1.AsyncMode=l;reactIs_production_min$1.ConcurrentMode=m;reactIs_production_min$1.ContextConsumer=k;reactIs_production_min$1.ContextProvider=h;reactIs_production_min$1.Element=c;reactIs_production_min$1.ForwardRef=n;reactIs_production_min$1.Fragment=e;reactIs_production_min$1.Lazy=t;reactIs_production_min$1.Memo=r;reactIs_production_min$1.Portal=d;
7772
- reactIs_production_min$1.Profiler=g;reactIs_production_min$1.StrictMode=f;reactIs_production_min$1.Suspense=p;reactIs_production_min$1.isAsyncMode=function(a){return A(a)||z(a)===l};reactIs_production_min$1.isConcurrentMode=A;reactIs_production_min$1.isContextConsumer=function(a){return z(a)===k};reactIs_production_min$1.isContextProvider=function(a){return z(a)===h};reactIs_production_min$1.isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===c};reactIs_production_min$1.isForwardRef=function(a){return z(a)===n};reactIs_production_min$1.isFragment=function(a){return z(a)===e};reactIs_production_min$1.isLazy=function(a){return z(a)===t};
7773
- reactIs_production_min$1.isMemo=function(a){return z(a)===r};reactIs_production_min$1.isPortal=function(a){return z(a)===d};reactIs_production_min$1.isProfiler=function(a){return z(a)===g};reactIs_production_min$1.isStrictMode=function(a){return z(a)===f};reactIs_production_min$1.isSuspense=function(a){return z(a)===p};
7774
- reactIs_production_min$1.isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||"object"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};reactIs_production_min$1.typeOf=z;
7775
- return reactIs_production_min$1;
7776
- }
7777
-
7778
- var reactIs_development$1 = {};
7779
-
7780
- /** @license React v16.13.1
7781
- * react-is.development.js
7782
- *
7783
- * Copyright (c) Facebook, Inc. and its affiliates.
7784
- *
7785
- * This source code is licensed under the MIT license found in the
7786
- * LICENSE file in the root directory of this source tree.
7787
- */
7788
-
7789
- var hasRequiredReactIs_development$1;
7790
-
7791
- function requireReactIs_development$1 () {
7792
- if (hasRequiredReactIs_development$1) return reactIs_development$1;
7793
- hasRequiredReactIs_development$1 = 1;
7794
-
7795
-
7796
-
7797
- if (process.env.NODE_ENV !== "production") {
7798
- (function() {
7799
-
7800
- // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
7801
- // nor polyfill, then a plain number is used for performance.
7802
- var hasSymbol = typeof Symbol === 'function' && Symbol.for;
7803
- var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
7804
- var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
7805
- var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
7806
- var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
7807
- var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
7808
- var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
7809
- var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
7810
- // (unstable) APIs that have been removed. Can we remove the symbols?
7811
-
7812
- var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
7813
- var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
7814
- var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
7815
- var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
7816
- var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
7817
- var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
7818
- var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
7819
- var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
7820
- var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
7821
- var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
7822
- var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
7823
-
7824
- function isValidElementType(type) {
7825
- return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
7826
- type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
7827
- }
7828
-
7829
- function typeOf(object) {
7830
- if (typeof object === 'object' && object !== null) {
7831
- var $$typeof = object.$$typeof;
7832
-
7833
- switch ($$typeof) {
7834
- case REACT_ELEMENT_TYPE:
7835
- var type = object.type;
7836
-
7837
- switch (type) {
7838
- case REACT_ASYNC_MODE_TYPE:
7839
- case REACT_CONCURRENT_MODE_TYPE:
7840
- case REACT_FRAGMENT_TYPE:
7841
- case REACT_PROFILER_TYPE:
7842
- case REACT_STRICT_MODE_TYPE:
7843
- case REACT_SUSPENSE_TYPE:
7844
- return type;
7845
-
7846
- default:
7847
- var $$typeofType = type && type.$$typeof;
7848
-
7849
- switch ($$typeofType) {
7850
- case REACT_CONTEXT_TYPE:
7851
- case REACT_FORWARD_REF_TYPE:
7852
- case REACT_LAZY_TYPE:
7853
- case REACT_MEMO_TYPE:
7854
- case REACT_PROVIDER_TYPE:
7855
- return $$typeofType;
7856
-
7857
- default:
7858
- return $$typeof;
7859
- }
7860
-
7861
- }
7862
-
7863
- case REACT_PORTAL_TYPE:
7864
- return $$typeof;
7865
- }
7866
- }
7867
-
7868
- return undefined;
7869
- } // AsyncMode is deprecated along with isAsyncMode
7870
-
7871
- var AsyncMode = REACT_ASYNC_MODE_TYPE;
7872
- var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
7873
- var ContextConsumer = REACT_CONTEXT_TYPE;
7874
- var ContextProvider = REACT_PROVIDER_TYPE;
7875
- var Element = REACT_ELEMENT_TYPE;
7876
- var ForwardRef = REACT_FORWARD_REF_TYPE;
7877
- var Fragment = REACT_FRAGMENT_TYPE;
7878
- var Lazy = REACT_LAZY_TYPE;
7879
- var Memo = REACT_MEMO_TYPE;
7880
- var Portal = REACT_PORTAL_TYPE;
7881
- var Profiler = REACT_PROFILER_TYPE;
7882
- var StrictMode = REACT_STRICT_MODE_TYPE;
7883
- var Suspense = REACT_SUSPENSE_TYPE;
7884
- var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
7885
-
7886
- function isAsyncMode(object) {
7887
- {
7888
- if (!hasWarnedAboutDeprecatedIsAsyncMode) {
7889
- hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
7890
-
7891
- console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
7892
- }
7893
- }
7894
-
7895
- return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
7896
- }
7897
- function isConcurrentMode(object) {
7898
- return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
7899
- }
7900
- function isContextConsumer(object) {
7901
- return typeOf(object) === REACT_CONTEXT_TYPE;
7902
- }
7903
- function isContextProvider(object) {
7904
- return typeOf(object) === REACT_PROVIDER_TYPE;
7905
- }
7906
- function isElement(object) {
7907
- return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
7908
- }
7909
- function isForwardRef(object) {
7910
- return typeOf(object) === REACT_FORWARD_REF_TYPE;
7911
- }
7912
- function isFragment(object) {
7913
- return typeOf(object) === REACT_FRAGMENT_TYPE;
7914
- }
7915
- function isLazy(object) {
7916
- return typeOf(object) === REACT_LAZY_TYPE;
7917
- }
7918
- function isMemo(object) {
7919
- return typeOf(object) === REACT_MEMO_TYPE;
7920
- }
7921
- function isPortal(object) {
7922
- return typeOf(object) === REACT_PORTAL_TYPE;
7923
- }
7924
- function isProfiler(object) {
7925
- return typeOf(object) === REACT_PROFILER_TYPE;
7926
- }
7927
- function isStrictMode(object) {
7928
- return typeOf(object) === REACT_STRICT_MODE_TYPE;
7929
- }
7930
- function isSuspense(object) {
7931
- return typeOf(object) === REACT_SUSPENSE_TYPE;
7932
- }
7933
-
7934
- reactIs_development$1.AsyncMode = AsyncMode;
7935
- reactIs_development$1.ConcurrentMode = ConcurrentMode;
7936
- reactIs_development$1.ContextConsumer = ContextConsumer;
7937
- reactIs_development$1.ContextProvider = ContextProvider;
7938
- reactIs_development$1.Element = Element;
7939
- reactIs_development$1.ForwardRef = ForwardRef;
7940
- reactIs_development$1.Fragment = Fragment;
7941
- reactIs_development$1.Lazy = Lazy;
7942
- reactIs_development$1.Memo = Memo;
7943
- reactIs_development$1.Portal = Portal;
7944
- reactIs_development$1.Profiler = Profiler;
7945
- reactIs_development$1.StrictMode = StrictMode;
7946
- reactIs_development$1.Suspense = Suspense;
7947
- reactIs_development$1.isAsyncMode = isAsyncMode;
7948
- reactIs_development$1.isConcurrentMode = isConcurrentMode;
7949
- reactIs_development$1.isContextConsumer = isContextConsumer;
7950
- reactIs_development$1.isContextProvider = isContextProvider;
7951
- reactIs_development$1.isElement = isElement;
7952
- reactIs_development$1.isForwardRef = isForwardRef;
7953
- reactIs_development$1.isFragment = isFragment;
7954
- reactIs_development$1.isLazy = isLazy;
7955
- reactIs_development$1.isMemo = isMemo;
7956
- reactIs_development$1.isPortal = isPortal;
7957
- reactIs_development$1.isProfiler = isProfiler;
7958
- reactIs_development$1.isStrictMode = isStrictMode;
7959
- reactIs_development$1.isSuspense = isSuspense;
7960
- reactIs_development$1.isValidElementType = isValidElementType;
7961
- reactIs_development$1.typeOf = typeOf;
7962
- })();
7963
- }
7964
- return reactIs_development$1;
7965
- }
7966
-
7967
- var hasRequiredReactIs$1;
7968
-
7969
- function requireReactIs$1 () {
7970
- if (hasRequiredReactIs$1) return reactIs$1.exports;
7971
- hasRequiredReactIs$1 = 1;
7972
-
7973
- if (process.env.NODE_ENV === 'production') {
7974
- reactIs$1.exports = requireReactIs_production_min$1();
7975
- } else {
7976
- reactIs$1.exports = requireReactIs_development$1();
7977
- }
7978
- return reactIs$1.exports;
7979
- }
7980
-
7981
- var hoistNonReactStatics_cjs;
7982
- var hasRequiredHoistNonReactStatics_cjs;
7983
-
7984
- function requireHoistNonReactStatics_cjs () {
7985
- if (hasRequiredHoistNonReactStatics_cjs) return hoistNonReactStatics_cjs;
7986
- hasRequiredHoistNonReactStatics_cjs = 1;
7987
-
7988
- var reactIs = requireReactIs$1();
7989
-
7990
- /**
7991
- * Copyright 2015, Yahoo! Inc.
7992
- * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
7993
- */
7994
- var REACT_STATICS = {
7995
- childContextTypes: true,
7996
- contextType: true,
7997
- contextTypes: true,
7998
- defaultProps: true,
7999
- displayName: true,
8000
- getDefaultProps: true,
8001
- getDerivedStateFromError: true,
8002
- getDerivedStateFromProps: true,
8003
- mixins: true,
8004
- propTypes: true,
8005
- type: true
8006
- };
8007
- var KNOWN_STATICS = {
8008
- name: true,
8009
- length: true,
8010
- prototype: true,
8011
- caller: true,
8012
- callee: true,
8013
- arguments: true,
8014
- arity: true
8015
- };
8016
- var FORWARD_REF_STATICS = {
8017
- '$$typeof': true,
8018
- render: true,
8019
- defaultProps: true,
8020
- displayName: true,
8021
- propTypes: true
8022
- };
8023
- var MEMO_STATICS = {
8024
- '$$typeof': true,
8025
- compare: true,
8026
- defaultProps: true,
8027
- displayName: true,
8028
- propTypes: true,
8029
- type: true
8030
- };
8031
- var TYPE_STATICS = {};
8032
- TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
8033
- TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
8034
-
8035
- function getStatics(component) {
8036
- // React v16.11 and below
8037
- if (reactIs.isMemo(component)) {
8038
- return MEMO_STATICS;
8039
- } // React v16.12 and above
8040
-
8041
-
8042
- return TYPE_STATICS[component['$$typeof']] || REACT_STATICS;
8043
- }
8044
-
8045
- var defineProperty = Object.defineProperty;
8046
- var getOwnPropertyNames = Object.getOwnPropertyNames;
8047
- var getOwnPropertySymbols = Object.getOwnPropertySymbols;
8048
- var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
8049
- var getPrototypeOf = Object.getPrototypeOf;
8050
- var objectPrototype = Object.prototype;
8051
- function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
8052
- if (typeof sourceComponent !== 'string') {
8053
- // don't hoist over string (html) components
8054
- if (objectPrototype) {
8055
- var inheritedComponent = getPrototypeOf(sourceComponent);
8056
-
8057
- if (inheritedComponent && inheritedComponent !== objectPrototype) {
8058
- hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);
8059
- }
8060
- }
8061
-
8062
- var keys = getOwnPropertyNames(sourceComponent);
8063
-
8064
- if (getOwnPropertySymbols) {
8065
- keys = keys.concat(getOwnPropertySymbols(sourceComponent));
8066
- }
8067
-
8068
- var targetStatics = getStatics(targetComponent);
8069
- var sourceStatics = getStatics(sourceComponent);
8070
-
8071
- for (var i = 0; i < keys.length; ++i) {
8072
- var key = keys[i];
8073
-
8074
- if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {
8075
- var descriptor = getOwnPropertyDescriptor(sourceComponent, key);
8076
-
8077
- try {
8078
- // Avoid failures from read-only properties
8079
- defineProperty(targetComponent, key, descriptor);
8080
- } catch (e) {}
8081
- }
8082
- }
8083
- }
8084
-
8085
- return targetComponent;
8086
- }
8087
-
8088
- hoistNonReactStatics_cjs = hoistNonReactStatics;
8089
- return hoistNonReactStatics_cjs;
6342
+ const breakpointsValues = handleBreakpoints({
6343
+ theme
6344
+ }, value, x => ({
6345
+ [styleKey]: x
6346
+ }));
6347
+ if (objectsHaveSameKeys(breakpointsValues, value)) {
6348
+ css[styleKey] = styleFunctionSx({
6349
+ sx: value,
6350
+ theme
6351
+ });
6352
+ } else {
6353
+ css = merge(css, breakpointsValues);
6354
+ }
6355
+ }
6356
+ } else {
6357
+ css = merge(css, getThemeValue(styleKey, value, theme, config));
6358
+ }
6359
+ }
6360
+ });
6361
+ return sortContainerQueries(theme, removeUnusedBreakpoints(breakpointsKeys, css));
6362
+ }
6363
+ return Array.isArray(sx) ? sx.map(traverse) : traverse(sx);
6364
+ }
6365
+ return styleFunctionSx;
8090
6366
  }
6367
+ const styleFunctionSx = unstable_createStyleFunctionSx();
6368
+ styleFunctionSx.filterProps = ['sx'];
8091
6369
 
8092
- requireHoistNonReactStatics_cjs();
8093
-
8094
- var isBrowser$3 = typeof document !== 'undefined';
8095
-
8096
- function getRegisteredStyles(registered, registeredStyles, classNames) {
8097
- var rawClassName = '';
8098
- classNames.split(' ').forEach(function (className) {
8099
- if (registered[className] !== undefined) {
8100
- registeredStyles.push(registered[className] + ";");
8101
- } else if (className) {
8102
- rawClassName += className + " ";
6370
+ const splitProps = props => {
6371
+ const result = {
6372
+ systemProps: {},
6373
+ otherProps: {}
6374
+ };
6375
+ const config = props?.theme?.unstable_sxConfig ?? defaultSxConfig;
6376
+ Object.keys(props).forEach(prop => {
6377
+ if (config[prop]) {
6378
+ result.systemProps[prop] = props[prop];
6379
+ } else {
6380
+ result.otherProps[prop] = props[prop];
8103
6381
  }
8104
6382
  });
8105
- return rawClassName;
8106
- }
8107
- var registerStyles = function registerStyles(cache, serialized, isStringTag) {
8108
- var className = cache.key + "-" + serialized.name;
8109
-
8110
- if ( // we only need to add the styles to the registered cache if the
8111
- // class name could be used further down
8112
- // the tree but if it's a string tag, we know it won't
8113
- // so we don't have to add it to registered cache.
8114
- // this improves memory usage since we can avoid storing the whole style string
8115
- (isStringTag === false || // we need to always store it if we're in compat mode and
8116
- // in node since emotion-server relies on whether a style is in
8117
- // the registered cache to know whether a style is global or not
8118
- // also, note that this check will be dead code eliminated in the browser
8119
- isBrowser$3 === false && cache.compat !== undefined) && cache.registered[className] === undefined) {
8120
- cache.registered[className] = serialized.styles;
8121
- }
6383
+ return result;
8122
6384
  };
8123
- var insertStyles = function insertStyles(cache, serialized, isStringTag) {
8124
- registerStyles(cache, serialized, isStringTag);
8125
- var className = cache.key + "-" + serialized.name;
8126
-
8127
- if (cache.inserted[serialized.name] === undefined) {
8128
- var stylesForSSR = '';
8129
- var current = serialized;
8130
-
8131
- do {
8132
- var maybeStyles = cache.insert(serialized === current ? "." + className : '', current, cache.sheet, true);
8133
-
8134
- if (!isBrowser$3 && maybeStyles !== undefined) {
8135
- stylesForSSR += maybeStyles;
6385
+ function extendSxProp$1(props) {
6386
+ const {
6387
+ sx: inSx,
6388
+ ...other
6389
+ } = props;
6390
+ const {
6391
+ systemProps,
6392
+ otherProps
6393
+ } = splitProps(other);
6394
+ let finalSx;
6395
+ if (Array.isArray(inSx)) {
6396
+ finalSx = [systemProps, ...inSx];
6397
+ } else if (typeof inSx === 'function') {
6398
+ finalSx = (...args) => {
6399
+ const result = inSx(...args);
6400
+ if (!isPlainObject(result)) {
6401
+ return systemProps;
8136
6402
  }
8137
-
8138
- current = current.next;
8139
- } while (current !== undefined);
8140
-
8141
- if (!isBrowser$3 && stylesForSSR.length !== 0) {
8142
- return stylesForSSR;
8143
- }
6403
+ return {
6404
+ ...systemProps,
6405
+ ...result
6406
+ };
6407
+ };
6408
+ } else {
6409
+ finalSx = {
6410
+ ...systemProps,
6411
+ ...inSx
6412
+ };
8144
6413
  }
8145
- };
6414
+ return {
6415
+ ...otherProps,
6416
+ sx: finalSx
6417
+ };
6418
+ }
8146
6419
 
8147
6420
  /* eslint-disable */
8148
6421
  // Inspired by https://github.com/garycourt/murmurhash-js
@@ -8249,7 +6522,15 @@ var unitlessKeys = {
8249
6522
  strokeWidth: 1
8250
6523
  };
8251
6524
 
8252
- var isDevelopment$1 = false;
6525
+ function memoize(fn) {
6526
+ var cache = Object.create(null);
6527
+ return function (arg) {
6528
+ if (cache[arg] === undefined) cache[arg] = fn(arg);
6529
+ return cache[arg];
6530
+ };
6531
+ }
6532
+
6533
+ var isDevelopment = false;
8253
6534
 
8254
6535
  var hyphenateRegex = /[A-Z]|^ms/g;
8255
6536
  var animationRegex = /_EMO_([^_]+?)_([^]*?)_EMO_/g;
@@ -8349,29 +6630,14 @@ function handleInterpolation(mergedProps, registered, interpolation) {
8349
6630
 
8350
6631
  return createStringFromObject(mergedProps, registered, interpolation);
8351
6632
  }
8352
-
8353
- case 'function':
8354
- {
8355
- if (mergedProps !== undefined) {
8356
- var previousCursor = cursor;
8357
- var result = interpolation(mergedProps);
8358
- cursor = previousCursor;
8359
- return handleInterpolation(mergedProps, registered, result);
8360
- }
8361
-
8362
- break;
8363
- }
8364
6633
  } // finalize string values (regular strings and functions interpolated into css calls)
8365
6634
 
8366
6635
 
8367
6636
  var asString = interpolation;
8368
6637
 
8369
- if (registered == null) {
6638
+ {
8370
6639
  return asString;
8371
6640
  }
8372
-
8373
- var cached = registered[asString];
8374
- return cached !== undefined ? cached : asString;
8375
6641
  }
8376
6642
 
8377
6643
  function createStringFromObject(mergedProps, registered, obj) {
@@ -8388,17 +6654,15 @@ function createStringFromObject(mergedProps, registered, obj) {
8388
6654
  if (typeof value !== 'object') {
8389
6655
  var asString = value;
8390
6656
 
8391
- if (registered != null && registered[asString] !== undefined) {
8392
- string += key + "{" + registered[asString] + "}";
8393
- } else if (isProcessableValue(asString)) {
6657
+ if (isProcessableValue(asString)) {
8394
6658
  string += processStyleName(key) + ":" + processStyleValue(key, asString) + ";";
8395
6659
  }
8396
6660
  } else {
8397
- if (key === 'NO_COMPONENT_SELECTOR' && isDevelopment$1) {
6661
+ if (key === 'NO_COMPONENT_SELECTOR' && isDevelopment) {
8398
6662
  throw new Error(noComponentSelectorMessage);
8399
6663
  }
8400
6664
 
8401
- if (Array.isArray(value) && typeof value[0] === 'string' && (registered == null || registered[value[0]] === undefined)) {
6665
+ if (Array.isArray(value) && typeof value[0] === 'string' && (registered == null)) {
8402
6666
  for (var _i = 0; _i < value.length; _i++) {
8403
6667
  if (isProcessableValue(value[_i])) {
8404
6668
  string += processStyleName(key) + ":" + processStyleValue(key, value[_i]) + ";";
@@ -8482,486 +6746,6 @@ function serializeStyles(args, registered, mergedProps) {
8482
6746
  };
8483
6747
  }
8484
6748
 
8485
- var isBrowser$2 = typeof document !== 'undefined';
8486
-
8487
- var syncFallback = function syncFallback(create) {
8488
- return create();
8489
- };
8490
-
8491
- var useInsertionEffect = React['useInsertion' + 'Effect'] ? React['useInsertion' + 'Effect'] : false;
8492
- var useInsertionEffectAlwaysWithSyncFallback = !isBrowser$2 ? syncFallback : useInsertionEffect || syncFallback;
8493
- var useInsertionEffectWithLayoutFallback = useInsertionEffect || React.useLayoutEffect;
8494
-
8495
- var isBrowser$1 = typeof document !== 'undefined';
8496
-
8497
- /* import { type EmotionCache } from '@emotion/utils' */
8498
- var EmotionCacheContext
8499
- /*: React.Context<EmotionCache | null> */
8500
- = /* #__PURE__ */React.createContext( // we're doing this to avoid preconstruct's dead code elimination in this one case
8501
- // because this module is primarily intended for the browser and node
8502
- // but it's also required in react native and similar environments sometimes
8503
- // and we could have a special build just for that
8504
- // but this is much easier and the native packages
8505
- // might use a different theme context in the future anyway
8506
- typeof HTMLElement !== 'undefined' ? /* #__PURE__ */createCache({
8507
- key: 'css'
8508
- }) : null);
8509
-
8510
- EmotionCacheContext.Provider;
8511
-
8512
- var withEmotionCache = function withEmotionCache
8513
- /* <Props, Ref: React.Ref<*>> */
8514
- (func
8515
- /*: (props: Props, cache: EmotionCache, ref: Ref) => React.Node */
8516
- )
8517
- /*: React.AbstractComponent<Props> */
8518
- {
8519
- return /*#__PURE__*/forwardRef(function (props
8520
- /*: Props */
8521
- , ref
8522
- /*: Ref */
8523
- ) {
8524
- // the cache will never be null in the browser
8525
- var cache = useContext(EmotionCacheContext);
8526
- return func(props, cache, ref);
8527
- });
8528
- };
8529
-
8530
- if (!isBrowser$1) {
8531
- withEmotionCache = function withEmotionCache
8532
- /* <Props> */
8533
- (func
8534
- /*: (props: Props, cache: EmotionCache) => React.Node */
8535
- )
8536
- /*: React.StatelessFunctionalComponent<Props> */
8537
- {
8538
- return function (props
8539
- /*: Props */
8540
- ) {
8541
- var cache = useContext(EmotionCacheContext);
8542
-
8543
- if (cache === null) {
8544
- // yes, we're potentially creating this on every render
8545
- // it doesn't actually matter though since it's only on the server
8546
- // so there will only every be a single render
8547
- // that could change in the future because of suspense and etc. but for now,
8548
- // this works and i don't want to optimise for a future thing that we aren't sure about
8549
- cache = createCache({
8550
- key: 'css'
8551
- });
8552
- return /*#__PURE__*/React.createElement(EmotionCacheContext.Provider, {
8553
- value: cache
8554
- }, func(props, cache));
8555
- } else {
8556
- return func(props, cache);
8557
- }
8558
- };
8559
- };
8560
- }
8561
-
8562
- var ThemeContext = /* #__PURE__ */React.createContext({});
8563
-
8564
- // initial render from browser, insertBefore context.sheet.tags[0] or if a style hasn't been inserted there yet, appendChild
8565
- // initial client-side render from SSR, use place of hydrating tag
8566
-
8567
- var Global
8568
- /*: React.AbstractComponent<
8569
- GlobalProps
8570
- > */
8571
- = /* #__PURE__ */withEmotionCache(function (props
8572
- /*: GlobalProps */
8573
- , cache) {
8574
-
8575
- var styles = props.styles;
8576
- var serialized = serializeStyles([styles], undefined, React.useContext(ThemeContext));
8577
-
8578
- if (!isBrowser$1) {
8579
- var _ref;
8580
-
8581
- var serializedNames = serialized.name;
8582
- var serializedStyles = serialized.styles;
8583
- var next = serialized.next;
8584
-
8585
- while (next !== undefined) {
8586
- serializedNames += ' ' + next.name;
8587
- serializedStyles += next.styles;
8588
- next = next.next;
8589
- }
8590
-
8591
- var shouldCache = cache.compat === true;
8592
- var rules = cache.insert("", {
8593
- name: serializedNames,
8594
- styles: serializedStyles
8595
- }, cache.sheet, shouldCache);
8596
-
8597
- if (shouldCache) {
8598
- return null;
8599
- }
8600
-
8601
- return /*#__PURE__*/React.createElement("style", (_ref = {}, _ref["data-emotion"] = cache.key + "-global " + serializedNames, _ref.dangerouslySetInnerHTML = {
8602
- __html: rules
8603
- }, _ref.nonce = cache.sheet.nonce, _ref));
8604
- } // yes, i know these hooks are used conditionally
8605
- // but it is based on a constant that will never change at runtime
8606
- // it's effectively like having two implementations and switching them out
8607
- // so it's not actually breaking anything
8608
-
8609
-
8610
- var sheetRef = React.useRef();
8611
- useInsertionEffectWithLayoutFallback(function () {
8612
- var key = cache.key + "-global"; // use case of https://github.com/emotion-js/emotion/issues/2675
8613
-
8614
- var sheet = new cache.sheet.constructor({
8615
- key: key,
8616
- nonce: cache.sheet.nonce,
8617
- container: cache.sheet.container,
8618
- speedy: cache.sheet.isSpeedy
8619
- });
8620
- var rehydrating = false;
8621
- var node
8622
- /*: HTMLStyleElement | null*/
8623
- = document.querySelector("style[data-emotion=\"" + key + " " + serialized.name + "\"]");
8624
-
8625
- if (cache.sheet.tags.length) {
8626
- sheet.before = cache.sheet.tags[0];
8627
- }
8628
-
8629
- if (node !== null) {
8630
- rehydrating = true; // clear the hash so this node won't be recognizable as rehydratable by other <Global/>s
8631
-
8632
- node.setAttribute('data-emotion', key);
8633
- sheet.hydrate([node]);
8634
- }
8635
-
8636
- sheetRef.current = [sheet, rehydrating];
8637
- return function () {
8638
- sheet.flush();
8639
- };
8640
- }, [cache]);
8641
- useInsertionEffectWithLayoutFallback(function () {
8642
- var sheetRefCurrent = sheetRef.current;
8643
- var sheet = sheetRefCurrent[0],
8644
- rehydrating = sheetRefCurrent[1];
8645
-
8646
- if (rehydrating) {
8647
- sheetRefCurrent[1] = false;
8648
- return;
8649
- }
8650
-
8651
- if (serialized.next !== undefined) {
8652
- // insert keyframes
8653
- insertStyles(cache, serialized.next, true);
8654
- }
8655
-
8656
- if (sheet.tags.length) {
8657
- // if this doesn't exist then it will be null so the style element will be appended
8658
- var element = sheet.tags[sheet.tags.length - 1].nextElementSibling;
8659
- sheet.before = element;
8660
- sheet.flush();
8661
- }
8662
-
8663
- cache.insert("", serialized, sheet, false);
8664
- }, [cache, serialized.name]);
8665
- return null;
8666
- });
8667
-
8668
- /* import type { Interpolation, SerializedStyles } from '@emotion/utils' */
8669
-
8670
- function css()
8671
- /*: SerializedStyles */
8672
- {
8673
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
8674
- args[_key] = arguments[_key];
8675
- }
8676
-
8677
- return serializeStyles(args);
8678
- }
8679
-
8680
- /*
8681
- type Keyframes = {|
8682
- name: string,
8683
- styles: string,
8684
- anim: 1,
8685
- toString: () => string
8686
- |} & string
8687
- */
8688
-
8689
- var keyframes = function
8690
- /*: Keyframes */
8691
- keyframes() {
8692
- var insertable = css.apply(void 0, arguments);
8693
- var name = "animation-" + insertable.name;
8694
- return {
8695
- name: name,
8696
- styles: "@keyframes " + name + "{" + insertable.styles + "}",
8697
- anim: 1,
8698
- toString: function toString() {
8699
- return "_EMO_" + this.name + "_" + this.styles + "_EMO_";
8700
- }
8701
- };
8702
- };
8703
-
8704
- /* import type {
8705
- ElementType,
8706
- StatelessFunctionalComponent,
8707
- AbstractComponent
8708
- } from 'react' */
8709
- /*
8710
- export type Interpolations = Array<any>
8711
-
8712
- export type StyledElementType<Props> =
8713
- | string
8714
- | AbstractComponent<{ ...Props, className: string }, mixed>
8715
-
8716
- export type StyledOptions = {
8717
- label?: string,
8718
- shouldForwardProp?: string => boolean,
8719
- target?: string
8720
- }
8721
-
8722
- export type StyledComponent<Props> = StatelessFunctionalComponent<Props> & {
8723
- defaultProps: any,
8724
- toString: () => string,
8725
- withComponent: (
8726
- nextTag: StyledElementType<Props>,
8727
- nextOptions?: StyledOptions
8728
- ) => StyledComponent<Props>
8729
- }
8730
-
8731
- export type PrivateStyledComponent<Props> = StyledComponent<Props> & {
8732
- __emotion_real: StyledComponent<Props>,
8733
- __emotion_base: any,
8734
- __emotion_styles: any,
8735
- __emotion_forwardProp: any
8736
- }
8737
- */
8738
-
8739
- var testOmitPropsOnStringTag = isPropValid;
8740
-
8741
- var testOmitPropsOnComponent = function testOmitPropsOnComponent(key
8742
- /*: string */
8743
- ) {
8744
- return key !== 'theme';
8745
- };
8746
-
8747
- var getDefaultShouldForwardProp = function getDefaultShouldForwardProp(tag
8748
- /*: ElementType */
8749
- ) {
8750
- return typeof tag === 'string' && // 96 is one less than the char code
8751
- // for "a" so this is checking that
8752
- // it's a lowercase character
8753
- tag.charCodeAt(0) > 96 ? testOmitPropsOnStringTag : testOmitPropsOnComponent;
8754
- };
8755
- var composeShouldForwardProps = function composeShouldForwardProps(tag
8756
- /*: PrivateStyledComponent<any> */
8757
- , options
8758
- /*: StyledOptions | void */
8759
- , isReal
8760
- /*: boolean */
8761
- ) {
8762
- var shouldForwardProp;
8763
-
8764
- if (options) {
8765
- var optionsShouldForwardProp = options.shouldForwardProp;
8766
- shouldForwardProp = tag.__emotion_forwardProp && optionsShouldForwardProp ? function (propName
8767
- /*: string */
8768
- ) {
8769
- return tag.__emotion_forwardProp(propName) && optionsShouldForwardProp(propName);
8770
- } : optionsShouldForwardProp;
8771
- }
8772
-
8773
- if (typeof shouldForwardProp !== 'function' && isReal) {
8774
- shouldForwardProp = tag.__emotion_forwardProp;
8775
- }
8776
-
8777
- return shouldForwardProp;
8778
- };
8779
- /*
8780
- export type CreateStyledComponent = <Props>(
8781
- ...args: Interpolations
8782
- ) => StyledComponent<Props>
8783
-
8784
- export type CreateStyled = {
8785
- <Props>(
8786
- tag: StyledElementType<Props>,
8787
- options?: StyledOptions
8788
- ): (...args: Interpolations) => StyledComponent<Props>,
8789
- [key: string]: CreateStyledComponent,
8790
- bind: () => CreateStyled
8791
- }
8792
- */
8793
-
8794
- var isDevelopment = false;
8795
-
8796
- var isBrowser = typeof document !== 'undefined';
8797
-
8798
- var Insertion = function Insertion(_ref) {
8799
- var cache = _ref.cache,
8800
- serialized = _ref.serialized,
8801
- isStringTag = _ref.isStringTag;
8802
- registerStyles(cache, serialized, isStringTag);
8803
- var rules = useInsertionEffectAlwaysWithSyncFallback(function () {
8804
- return insertStyles(cache, serialized, isStringTag);
8805
- });
8806
-
8807
- if (!isBrowser && rules !== undefined) {
8808
- var _ref2;
8809
-
8810
- var serializedNames = serialized.name;
8811
- var next = serialized.next;
8812
-
8813
- while (next !== undefined) {
8814
- serializedNames += ' ' + next.name;
8815
- next = next.next;
8816
- }
8817
-
8818
- return /*#__PURE__*/React.createElement("style", (_ref2 = {}, _ref2["data-emotion"] = cache.key + " " + serializedNames, _ref2.dangerouslySetInnerHTML = {
8819
- __html: rules
8820
- }, _ref2.nonce = cache.sheet.nonce, _ref2));
8821
- }
8822
-
8823
- return null;
8824
- };
8825
-
8826
- var createStyled$1
8827
- /*: CreateStyled */
8828
- = function createStyled
8829
- /*: CreateStyled */
8830
- (tag
8831
- /*: any */
8832
- , options
8833
- /* ?: StyledOptions */
8834
- ) {
8835
-
8836
- var isReal = tag.__emotion_real === tag;
8837
- var baseTag = isReal && tag.__emotion_base || tag;
8838
- var identifierName;
8839
- var targetClassName;
8840
-
8841
- if (options !== undefined) {
8842
- identifierName = options.label;
8843
- targetClassName = options.target;
8844
- }
8845
-
8846
- var shouldForwardProp = composeShouldForwardProps(tag, options, isReal);
8847
- var defaultShouldForwardProp = shouldForwardProp || getDefaultShouldForwardProp(baseTag);
8848
- var shouldUseAs = !defaultShouldForwardProp('as');
8849
- /* return function<Props>(): PrivateStyledComponent<Props> { */
8850
-
8851
- return function () {
8852
- var args = arguments;
8853
- var styles = isReal && tag.__emotion_styles !== undefined ? tag.__emotion_styles.slice(0) : [];
8854
-
8855
- if (identifierName !== undefined) {
8856
- styles.push("label:" + identifierName + ";");
8857
- }
8858
-
8859
- if (args[0] == null || args[0].raw === undefined) {
8860
- styles.push.apply(styles, args);
8861
- } else {
8862
-
8863
- styles.push(args[0][0]);
8864
- var len = args.length;
8865
- var i = 1;
8866
-
8867
- for (; i < len; i++) {
8868
-
8869
- styles.push(args[i], args[0][i]);
8870
- }
8871
- }
8872
-
8873
- var Styled
8874
- /*: PrivateStyledComponent<Props> */
8875
- = withEmotionCache(function (props, cache, ref) {
8876
- var FinalTag = shouldUseAs && props.as || baseTag;
8877
- var className = '';
8878
- var classInterpolations = [];
8879
- var mergedProps = props;
8880
-
8881
- if (props.theme == null) {
8882
- mergedProps = {};
8883
-
8884
- for (var key in props) {
8885
- mergedProps[key] = props[key];
8886
- }
8887
-
8888
- mergedProps.theme = React.useContext(ThemeContext);
8889
- }
8890
-
8891
- if (typeof props.className === 'string') {
8892
- className = getRegisteredStyles(cache.registered, classInterpolations, props.className);
8893
- } else if (props.className != null) {
8894
- className = props.className + " ";
8895
- }
8896
-
8897
- var serialized = serializeStyles(styles.concat(classInterpolations), cache.registered, mergedProps);
8898
- className += cache.key + "-" + serialized.name;
8899
-
8900
- if (targetClassName !== undefined) {
8901
- className += " " + targetClassName;
8902
- }
8903
-
8904
- var finalShouldForwardProp = shouldUseAs && shouldForwardProp === undefined ? getDefaultShouldForwardProp(FinalTag) : defaultShouldForwardProp;
8905
- var newProps = {};
8906
-
8907
- for (var _key in props) {
8908
- if (shouldUseAs && _key === 'as') continue;
8909
-
8910
- if (finalShouldForwardProp(_key)) {
8911
- newProps[_key] = props[_key];
8912
- }
8913
- }
8914
-
8915
- newProps.className = className;
8916
-
8917
- if (ref) {
8918
- newProps.ref = ref;
8919
- }
8920
-
8921
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Insertion, {
8922
- cache: cache,
8923
- serialized: serialized,
8924
- isStringTag: typeof FinalTag === 'string'
8925
- }), /*#__PURE__*/React.createElement(FinalTag, newProps));
8926
- });
8927
- Styled.displayName = identifierName !== undefined ? identifierName : "Styled(" + (typeof baseTag === 'string' ? baseTag : baseTag.displayName || baseTag.name || 'Component') + ")";
8928
- Styled.defaultProps = tag.defaultProps;
8929
- Styled.__emotion_real = Styled;
8930
- Styled.__emotion_base = baseTag;
8931
- Styled.__emotion_styles = styles;
8932
- Styled.__emotion_forwardProp = shouldForwardProp;
8933
- Object.defineProperty(Styled, 'toString', {
8934
- value: function value() {
8935
- if (targetClassName === undefined && isDevelopment) {
8936
- return 'NO_COMPONENT_SELECTOR';
8937
- }
8938
-
8939
- return "." + targetClassName;
8940
- }
8941
- });
8942
-
8943
- Styled.withComponent = function (nextTag
8944
- /*: StyledElementType<Props> */
8945
- , nextOptions
8946
- /* ?: StyledOptions */
8947
- ) {
8948
- return createStyled(nextTag, _extends({}, options, nextOptions, {
8949
- shouldForwardProp: composeShouldForwardProps(Styled, nextOptions, true)
8950
- })).apply(void 0, styles);
8951
- };
8952
-
8953
- return Styled;
8954
- };
8955
- };
8956
-
8957
- var tags = ['a', 'abbr', 'address', 'area', 'article', 'aside', 'audio', 'b', 'base', 'bdi', 'bdo', 'big', 'blockquote', 'body', 'br', 'button', 'canvas', 'caption', 'cite', 'code', 'col', 'colgroup', 'data', 'datalist', 'dd', 'del', 'details', 'dfn', 'dialog', 'div', 'dl', 'dt', 'em', 'embed', 'fieldset', 'figcaption', 'figure', 'footer', 'form', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hgroup', 'hr', 'html', 'i', 'iframe', 'img', 'input', 'ins', 'kbd', 'keygen', 'label', 'legend', 'li', 'link', 'main', 'map', 'mark', 'marquee', 'menu', 'menuitem', 'meta', 'meter', 'nav', 'noscript', 'object', 'ol', 'optgroup', 'option', 'output', 'p', 'param', 'picture', 'pre', 'progress', 'q', 'rp', 'rt', 'ruby', 's', 'samp', 'script', 'section', 'select', 'small', 'source', 'span', 'strong', 'style', 'sub', 'summary', 'sup', 'table', 'tbody', 'td', 'textarea', 'tfoot', 'th', 'thead', 'time', 'title', 'tr', 'track', 'u', 'ul', 'var', 'video', 'wbr', // SVG
8958
- 'circle', 'clipPath', 'defs', 'ellipse', 'foreignObject', 'g', 'image', 'line', 'linearGradient', 'mask', 'path', 'pattern', 'polygon', 'polyline', 'radialGradient', 'rect', 'stop', 'svg', 'text', 'tspan'];
8959
-
8960
- var newStyled = createStyled$1.bind();
8961
- tags.forEach(function (tagName) {
8962
- newStyled[tagName] = newStyled(tagName);
8963
- });
8964
-
8965
6749
  function isEmpty$2(obj) {
8966
6750
  return obj === undefined || obj === null || Object.keys(obj).length === 0;
8967
6751
  }
@@ -8989,7 +6773,7 @@ process.env.NODE_ENV !== "production" ? GlobalStyles$2.propTypes = {
8989
6773
  */
8990
6774
  /* eslint-disable no-underscore-dangle */
8991
6775
  function styled$1(tag, options) {
8992
- const stylesFactory = newStyled(tag, options);
6776
+ const stylesFactory = emStyled(tag, options);
8993
6777
  if (process.env.NODE_ENV !== 'production') {
8994
6778
  return (...styles) => {
8995
6779
  if (styles.length === 0) ; else if (styles.some(style => style === undefined)) ;
@@ -16772,6 +14556,16 @@ process.env.NODE_ENV !== "production" ? MenuList.propTypes /* remove-proptypes *
16772
14556
  variant: PropTypes.oneOf(['menu', 'selectedMenu'])
16773
14557
  } : void 0;
16774
14558
 
14559
+ function _extends() {
14560
+ return _extends = Object.assign ? Object.assign.bind() : function (n) {
14561
+ for (var e = 1; e < arguments.length; e++) {
14562
+ var t = arguments[e];
14563
+ for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
14564
+ }
14565
+ return n;
14566
+ }, _extends.apply(null, arguments);
14567
+ }
14568
+
16775
14569
  function _objectWithoutPropertiesLoose(r, e) {
16776
14570
  if (null == r) return {};
16777
14571
  var t = {};