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