@class101/cdn-ui-system 0.0.3 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. package/@types/theme.d.js +1 -9
  2. package/contexts/UiSystemProvider.js +1 -1796
  3. package/core/props/action.js +1 -1045
  4. package/core/props/animator.js +1 -1045
  5. package/core/props/background.js +1 -1043
  6. package/core/props/border.js +3 -1047
  7. package/core/props/color.js +1 -1043
  8. package/core/props/flexbox.js +1 -1043
  9. package/core/props/icon.js +1 -1045
  10. package/core/props/image.js +1 -1045
  11. package/core/props/index.js +21 -2063
  12. package/core/props/layout.js +3 -1047
  13. package/core/props/position.js +1 -1043
  14. package/core/props/shadow.js +1 -1043
  15. package/core/props/space.js +1 -1043
  16. package/core/props/transform.js +1 -1045
  17. package/core/props/transition.js +1 -1045
  18. package/core/props/typography.js +3 -1047
  19. package/core/props/utils/getResponsiveValue.js +4 -5454
  20. package/core/props/utils/skipForwardProps.js +2 -12
  21. package/core/props/video.js +1 -1045
  22. package/core/variants/styleVariant/styleVariant.js +6 -214
  23. package/core/variants/system/system.js +6 -2080
  24. package/hooks/useResponsiveValue/useResponsiveValue.js +1 -1746
  25. package/lib/Animation/Animator/Animator.stories.js +1 -1761
  26. package/lib/Animation/FadeAnimation/FadeAnimation.js +1 -1761
  27. package/lib/Animation/RotateAnimation/RotateAnimation.js +1 -1761
  28. package/lib/Animation/SlideAnimation/SlideAnimation.js +5 -1765
  29. package/lib/Animation/Transition/Transition.stories.js +2 -2074
  30. package/lib/Avatar/Avatar.js +8 -3092
  31. package/lib/BreadCrumb/BreadCrumb.js +3 -2076
  32. package/lib/Button/ButtonIcon/ButtonIcon.js +6 -2287
  33. package/lib/Button/TextButton/TextButton.js +7 -3091
  34. package/lib/Elevation/Elevation.js +3 -3087
  35. package/lib/Form/CheckBox/CheckBox.js +4 -2076
  36. package/lib/Form/CheckBoxField/CheckBoxField.js +2 -206
  37. package/lib/Form/Description/Description.js +3 -3087
  38. package/lib/Form/HiddenInput/HiddenInput.js +2 -2074
  39. package/lib/Form/InlineTextLabel/InlineTextLabel.stories.js +2 -206
  40. package/lib/Form/Input/Input.js +4 -3088
  41. package/lib/Form/Label/Label.stories.js +4 -2250
  42. package/lib/Form/Select/Select.js +5 -3089
  43. package/lib/GlobalStyle/GlobalStyle.js +1 -1749
  44. package/lib/GridList/GridList.js +6 -7178
  45. package/lib/HtmlContentStyle/HtmlContentStyle.js +2 -2074
  46. package/lib/Layout/Center/Center.js +2 -2081
  47. package/lib/Media/Image/useActualSizes.js +14 -1727
  48. package/lib/Menu/MenuText/MenuText.js +3 -3087
  49. package/lib/Pagination/Pagination.js +5 -2440
  50. package/lib/Portal/Portal.js +1 -1740
  51. package/lib/ProfileLabel/ProfileLabel.js +11 -3096
  52. package/lib/Progress/ProgressStep/ProgressStep.js +3 -3087
  53. package/lib/Ratio/Ratio.js +4 -3088
  54. package/lib/Section/Section.js +2 -2074
  55. package/lib/SlideList/SlideList.js +2 -5452
  56. package/lib/Slider/Slider.js +7 -2537
  57. package/lib/SliderSection/SliderSection.js +2 -2074
  58. package/lib/Tag/Chip/Chip.js +3 -3087
  59. package/lib/Underline/Underline.js +3 -2179
  60. package/lib/deprecated/Swiper/Swiper.js +2 -2074
  61. package/lib/deprecated/Swiper/Swiper.stories.js +3 -2075
  62. package/lib/deprecated/Swiper/hooks/useSwiper.js +2 -455
  63. package/package.json +1 -1
  64. package/private/Box/Box.js +2 -2074
  65. package/private/ForwardStyle/ForwardStyle.js +7 -3141
  66. package/private/Stack/Stack.js +3 -1748
@@ -1,213 +1,9 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __markAsModule = (target) => __defProp(target, "__esModule", {value: true});
8
- var __esm = (fn, res) => function __init() {
9
- return fn && (res = (0, fn[Object.keys(fn)[0]])(fn = 0)), res;
10
- };
11
- var __commonJS = (cb, mod) => function __require() {
12
- return mod || (0, cb[Object.keys(cb)[0]])((mod = {exports: {}}).exports, mod), mod.exports;
13
- };
14
- var __reExport = (target, module, desc) => {
15
- if (module && typeof module === "object" || typeof module === "function") {
16
- for (let key of __getOwnPropNames(module))
17
- if (!__hasOwnProp.call(target, key) && key !== "default")
18
- __defProp(target, key, {get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable});
19
- }
20
- return target;
21
- };
22
- var __toModule = (module) => {
23
- return __reExport(__markAsModule(__defProp(module != null ? __create(__getProtoOf(module)) : {}, "default", module && module.__esModule && "default" in module ? {get: () => module.default, enumerable: true} : {value: module, enumerable: true})), module);
24
- };
25
-
26
1
  // tools/builders/framer-esm/build/react-shim.js
27
2
  import * as React from "react";
28
- var init_react_shim = __esm({
29
- "tools/builders/framer-esm/build/react-shim.js"() {
30
- }
31
- });
32
-
33
- // node_modules/uuid/lib/rng-browser.js
34
- var require_rng_browser = __commonJS({
35
- "node_modules/uuid/lib/rng-browser.js"(exports, module) {
36
- init_react_shim();
37
- var getRandomValues = typeof crypto != "undefined" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto != "undefined" && typeof window.msCrypto.getRandomValues == "function" && msCrypto.getRandomValues.bind(msCrypto);
38
- if (getRandomValues) {
39
- rnds8 = new Uint8Array(16);
40
- module.exports = function whatwgRNG() {
41
- getRandomValues(rnds8);
42
- return rnds8;
43
- };
44
- } else {
45
- rnds = new Array(16);
46
- module.exports = function mathRNG() {
47
- for (var i = 0, r; i < 16; i++) {
48
- if ((i & 3) === 0)
49
- r = Math.random() * 4294967296;
50
- rnds[i] = r >>> ((i & 3) << 3) & 255;
51
- }
52
- return rnds;
53
- };
54
- }
55
- var rnds8;
56
- var rnds;
57
- }
58
- });
59
-
60
- // node_modules/uuid/lib/bytesToUuid.js
61
- var require_bytesToUuid = __commonJS({
62
- "node_modules/uuid/lib/bytesToUuid.js"(exports, module) {
63
- init_react_shim();
64
- var byteToHex = [];
65
- for (var i = 0; i < 256; ++i) {
66
- byteToHex[i] = (i + 256).toString(16).substr(1);
67
- }
68
- function bytesToUuid(buf, offset) {
69
- var i2 = offset || 0;
70
- var bth = byteToHex;
71
- return [
72
- bth[buf[i2++]],
73
- bth[buf[i2++]],
74
- bth[buf[i2++]],
75
- bth[buf[i2++]],
76
- "-",
77
- bth[buf[i2++]],
78
- bth[buf[i2++]],
79
- "-",
80
- bth[buf[i2++]],
81
- bth[buf[i2++]],
82
- "-",
83
- bth[buf[i2++]],
84
- bth[buf[i2++]],
85
- "-",
86
- bth[buf[i2++]],
87
- bth[buf[i2++]],
88
- bth[buf[i2++]],
89
- bth[buf[i2++]],
90
- bth[buf[i2++]],
91
- bth[buf[i2++]]
92
- ].join("");
93
- }
94
- module.exports = bytesToUuid;
95
- }
96
- });
97
-
98
- // node_modules/uuid/v1.js
99
- var require_v1 = __commonJS({
100
- "node_modules/uuid/v1.js"(exports, module) {
101
- init_react_shim();
102
- var rng = require_rng_browser();
103
- var bytesToUuid = require_bytesToUuid();
104
- var _nodeId;
105
- var _clockseq;
106
- var _lastMSecs = 0;
107
- var _lastNSecs = 0;
108
- function v1(options, buf, offset) {
109
- var i = buf && offset || 0;
110
- var b = buf || [];
111
- options = options || {};
112
- var node = options.node || _nodeId;
113
- var clockseq = options.clockseq !== void 0 ? options.clockseq : _clockseq;
114
- if (node == null || clockseq == null) {
115
- var seedBytes = rng();
116
- if (node == null) {
117
- node = _nodeId = [
118
- seedBytes[0] | 1,
119
- seedBytes[1],
120
- seedBytes[2],
121
- seedBytes[3],
122
- seedBytes[4],
123
- seedBytes[5]
124
- ];
125
- }
126
- if (clockseq == null) {
127
- clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 16383;
128
- }
129
- }
130
- var msecs = options.msecs !== void 0 ? options.msecs : new Date().getTime();
131
- var nsecs = options.nsecs !== void 0 ? options.nsecs : _lastNSecs + 1;
132
- var dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 1e4;
133
- if (dt < 0 && options.clockseq === void 0) {
134
- clockseq = clockseq + 1 & 16383;
135
- }
136
- if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === void 0) {
137
- nsecs = 0;
138
- }
139
- if (nsecs >= 1e4) {
140
- throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");
141
- }
142
- _lastMSecs = msecs;
143
- _lastNSecs = nsecs;
144
- _clockseq = clockseq;
145
- msecs += 122192928e5;
146
- var tl = ((msecs & 268435455) * 1e4 + nsecs) % 4294967296;
147
- b[i++] = tl >>> 24 & 255;
148
- b[i++] = tl >>> 16 & 255;
149
- b[i++] = tl >>> 8 & 255;
150
- b[i++] = tl & 255;
151
- var tmh = msecs / 4294967296 * 1e4 & 268435455;
152
- b[i++] = tmh >>> 8 & 255;
153
- b[i++] = tmh & 255;
154
- b[i++] = tmh >>> 24 & 15 | 16;
155
- b[i++] = tmh >>> 16 & 255;
156
- b[i++] = clockseq >>> 8 | 128;
157
- b[i++] = clockseq & 255;
158
- for (var n = 0; n < 6; ++n) {
159
- b[i + n] = node[n];
160
- }
161
- return buf ? buf : bytesToUuid(b);
162
- }
163
- module.exports = v1;
164
- }
165
- });
166
-
167
- // node_modules/uuid/v4.js
168
- var require_v4 = __commonJS({
169
- "node_modules/uuid/v4.js"(exports, module) {
170
- init_react_shim();
171
- var rng = require_rng_browser();
172
- var bytesToUuid = require_bytesToUuid();
173
- function v4(options, buf, offset) {
174
- var i = buf && offset || 0;
175
- if (typeof options == "string") {
176
- buf = options === "binary" ? new Array(16) : null;
177
- options = null;
178
- }
179
- options = options || {};
180
- var rnds = options.random || (options.rng || rng)();
181
- rnds[6] = rnds[6] & 15 | 64;
182
- rnds[8] = rnds[8] & 63 | 128;
183
- if (buf) {
184
- for (var ii = 0; ii < 16; ++ii) {
185
- buf[i + ii] = rnds[ii];
186
- }
187
- }
188
- return buf || bytesToUuid(rnds);
189
- }
190
- module.exports = v4;
191
- }
192
- });
193
-
194
- // node_modules/uuid/index.js
195
- var require_uuid = __commonJS({
196
- "node_modules/uuid/index.js"(exports, module) {
197
- init_react_shim();
198
- var v1 = require_v1();
199
- var v4 = require_v4();
200
- var uuid = v4;
201
- uuid.v1 = v1;
202
- uuid.v4 = v4;
203
- module.exports = uuid;
204
- }
205
- });
206
3
 
207
4
  // libs/shared/ui-system/src/lib/Form/CheckBoxField/CheckBoxField.tsx
208
- init_react_shim();
209
- var import_uuid = __toModule(require_uuid());
210
5
  import {forwardRef, useCallback, useEffect, useRef, useState} from "react";
6
+ import {v4 as uuidV4} from "https://jspm.dev/uuid@8.3.2";
211
7
  import {HStack} from "../../Layout/HStack/index.js";
212
8
  import {CheckBox} from "../CheckBox/index.js";
213
9
  import {InlineTextLabel} from "../InlineTextLabel/index.js";
@@ -215,7 +11,7 @@ var CheckBoxField = forwardRef(({label, description, ...props}, ref) => {
215
11
  const {size, disabled, checked, onChange} = props;
216
12
  const isMediumSize = size === "md";
217
13
  const [isChecked, setIsChecked] = useState(disabled ? false : checked ?? false);
218
- const uniqueId = useRef((0, import_uuid.v4)());
14
+ const uniqueId = useRef(uuidV4());
219
15
  const handleCheckBoxChange = useCallback((e) => {
220
16
  if (disabled) {
221
17
  return;
@@ -1,3080 +1,9 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __markAsModule = (target) => __defProp(target, "__esModule", {value: true});
8
- var __esm = (fn, res) => function __init() {
9
- return fn && (res = (0, fn[Object.keys(fn)[0]])(fn = 0)), res;
10
- };
11
- var __commonJS = (cb, mod) => function __require() {
12
- return mod || (0, cb[Object.keys(cb)[0]])((mod = {exports: {}}).exports, mod), mod.exports;
13
- };
14
- var __reExport = (target, module, desc) => {
15
- if (module && typeof module === "object" || typeof module === "function") {
16
- for (let key of __getOwnPropNames(module))
17
- if (!__hasOwnProp.call(target, key) && key !== "default")
18
- __defProp(target, key, {get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable});
19
- }
20
- return target;
21
- };
22
- var __toModule = (module) => {
23
- return __reExport(__markAsModule(__defProp(module != null ? __create(__getProtoOf(module)) : {}, "default", module && module.__esModule && "default" in module ? {get: () => module.default, enumerable: true} : {value: module, enumerable: true})), module);
24
- };
25
-
26
1
  // tools/builders/framer-esm/build/react-shim.js
27
2
  import * as React from "react";
28
- var init_react_shim = __esm({
29
- "tools/builders/framer-esm/build/react-shim.js"() {
30
- }
31
- });
32
-
33
- // node_modules/object-assign/index.js
34
- var require_object_assign = __commonJS({
35
- "node_modules/object-assign/index.js"(exports, module) {
36
- init_react_shim();
37
- "use strict";
38
- var getOwnPropertySymbols = Object.getOwnPropertySymbols;
39
- var hasOwnProperty2 = Object.prototype.hasOwnProperty;
40
- var propIsEnumerable = Object.prototype.propertyIsEnumerable;
41
- function toObject(val) {
42
- if (val === null || val === void 0) {
43
- throw new TypeError("Object.assign cannot be called with null or undefined");
44
- }
45
- return Object(val);
46
- }
47
- function shouldUseNative() {
48
- try {
49
- if (!Object.assign) {
50
- return false;
51
- }
52
- var test1 = new String("abc");
53
- test1[5] = "de";
54
- if (Object.getOwnPropertyNames(test1)[0] === "5") {
55
- return false;
56
- }
57
- var test2 = {};
58
- for (var i = 0; i < 10; i++) {
59
- test2["_" + String.fromCharCode(i)] = i;
60
- }
61
- var order2 = Object.getOwnPropertyNames(test2).map(function(n) {
62
- return test2[n];
63
- });
64
- if (order2.join("") !== "0123456789") {
65
- return false;
66
- }
67
- var test3 = {};
68
- "abcdefghijklmnopqrst".split("").forEach(function(letter) {
69
- test3[letter] = letter;
70
- });
71
- if (Object.keys(Object.assign({}, test3)).join("") !== "abcdefghijklmnopqrst") {
72
- return false;
73
- }
74
- return true;
75
- } catch (err) {
76
- return false;
77
- }
78
- }
79
- module.exports = shouldUseNative() ? Object.assign : function(target, source) {
80
- var from2;
81
- var to = toObject(target);
82
- var symbols;
83
- for (var s = 1; s < arguments.length; s++) {
84
- from2 = Object(arguments[s]);
85
- for (var key in from2) {
86
- if (hasOwnProperty2.call(from2, key)) {
87
- to[key] = from2[key];
88
- }
89
- }
90
- if (getOwnPropertySymbols) {
91
- symbols = getOwnPropertySymbols(from2);
92
- for (var i = 0; i < symbols.length; i++) {
93
- if (propIsEnumerable.call(from2, symbols[i])) {
94
- to[symbols[i]] = from2[symbols[i]];
95
- }
96
- }
97
- }
98
- }
99
- return to;
100
- };
101
- }
102
- });
103
-
104
- // node_modules/react-is/cjs/react-is.development.js
105
- var require_react_is_development = __commonJS({
106
- "node_modules/react-is/cjs/react-is.development.js"(exports) {
107
- init_react_shim();
108
- "use strict";
109
- if (true) {
110
- (function() {
111
- "use strict";
112
- var hasSymbol = typeof Symbol === "function" && Symbol.for;
113
- var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for("react.element") : 60103;
114
- var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for("react.portal") : 60106;
115
- var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for("react.fragment") : 60107;
116
- var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for("react.strict_mode") : 60108;
117
- var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for("react.profiler") : 60114;
118
- var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for("react.provider") : 60109;
119
- var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for("react.context") : 60110;
120
- var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for("react.async_mode") : 60111;
121
- var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for("react.concurrent_mode") : 60111;
122
- var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for("react.forward_ref") : 60112;
123
- var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for("react.suspense") : 60113;
124
- var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for("react.suspense_list") : 60120;
125
- var REACT_MEMO_TYPE = hasSymbol ? Symbol.for("react.memo") : 60115;
126
- var REACT_LAZY_TYPE = hasSymbol ? Symbol.for("react.lazy") : 60116;
127
- var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for("react.block") : 60121;
128
- var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for("react.fundamental") : 60117;
129
- var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for("react.responder") : 60118;
130
- var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for("react.scope") : 60119;
131
- function isValidElementType(type) {
132
- return typeof type === "string" || typeof type === "function" || 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);
133
- }
134
- function typeOf(object) {
135
- if (typeof object === "object" && object !== null) {
136
- var $$typeof = object.$$typeof;
137
- switch ($$typeof) {
138
- case REACT_ELEMENT_TYPE:
139
- var type = object.type;
140
- switch (type) {
141
- case REACT_ASYNC_MODE_TYPE:
142
- case REACT_CONCURRENT_MODE_TYPE:
143
- case REACT_FRAGMENT_TYPE:
144
- case REACT_PROFILER_TYPE:
145
- case REACT_STRICT_MODE_TYPE:
146
- case REACT_SUSPENSE_TYPE:
147
- return type;
148
- default:
149
- var $$typeofType = type && type.$$typeof;
150
- switch ($$typeofType) {
151
- case REACT_CONTEXT_TYPE:
152
- case REACT_FORWARD_REF_TYPE:
153
- case REACT_LAZY_TYPE:
154
- case REACT_MEMO_TYPE:
155
- case REACT_PROVIDER_TYPE:
156
- return $$typeofType;
157
- default:
158
- return $$typeof;
159
- }
160
- }
161
- case REACT_PORTAL_TYPE:
162
- return $$typeof;
163
- }
164
- }
165
- return void 0;
166
- }
167
- var AsyncMode = REACT_ASYNC_MODE_TYPE;
168
- var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
169
- var ContextConsumer = REACT_CONTEXT_TYPE;
170
- var ContextProvider = REACT_PROVIDER_TYPE;
171
- var Element = REACT_ELEMENT_TYPE;
172
- var ForwardRef = REACT_FORWARD_REF_TYPE;
173
- var Fragment = REACT_FRAGMENT_TYPE;
174
- var Lazy = REACT_LAZY_TYPE;
175
- var Memo = REACT_MEMO_TYPE;
176
- var Portal = REACT_PORTAL_TYPE;
177
- var Profiler = REACT_PROFILER_TYPE;
178
- var StrictMode = REACT_STRICT_MODE_TYPE;
179
- var Suspense = REACT_SUSPENSE_TYPE;
180
- var hasWarnedAboutDeprecatedIsAsyncMode = false;
181
- function isAsyncMode(object) {
182
- {
183
- if (!hasWarnedAboutDeprecatedIsAsyncMode) {
184
- hasWarnedAboutDeprecatedIsAsyncMode = true;
185
- 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.");
186
- }
187
- }
188
- return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
189
- }
190
- function isConcurrentMode(object) {
191
- return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
192
- }
193
- function isContextConsumer(object) {
194
- return typeOf(object) === REACT_CONTEXT_TYPE;
195
- }
196
- function isContextProvider(object) {
197
- return typeOf(object) === REACT_PROVIDER_TYPE;
198
- }
199
- function isElement(object) {
200
- return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
201
- }
202
- function isForwardRef(object) {
203
- return typeOf(object) === REACT_FORWARD_REF_TYPE;
204
- }
205
- function isFragment(object) {
206
- return typeOf(object) === REACT_FRAGMENT_TYPE;
207
- }
208
- function isLazy(object) {
209
- return typeOf(object) === REACT_LAZY_TYPE;
210
- }
211
- function isMemo(object) {
212
- return typeOf(object) === REACT_MEMO_TYPE;
213
- }
214
- function isPortal(object) {
215
- return typeOf(object) === REACT_PORTAL_TYPE;
216
- }
217
- function isProfiler(object) {
218
- return typeOf(object) === REACT_PROFILER_TYPE;
219
- }
220
- function isStrictMode(object) {
221
- return typeOf(object) === REACT_STRICT_MODE_TYPE;
222
- }
223
- function isSuspense(object) {
224
- return typeOf(object) === REACT_SUSPENSE_TYPE;
225
- }
226
- exports.AsyncMode = AsyncMode;
227
- exports.ConcurrentMode = ConcurrentMode;
228
- exports.ContextConsumer = ContextConsumer;
229
- exports.ContextProvider = ContextProvider;
230
- exports.Element = Element;
231
- exports.ForwardRef = ForwardRef;
232
- exports.Fragment = Fragment;
233
- exports.Lazy = Lazy;
234
- exports.Memo = Memo;
235
- exports.Portal = Portal;
236
- exports.Profiler = Profiler;
237
- exports.StrictMode = StrictMode;
238
- exports.Suspense = Suspense;
239
- exports.isAsyncMode = isAsyncMode;
240
- exports.isConcurrentMode = isConcurrentMode;
241
- exports.isContextConsumer = isContextConsumer;
242
- exports.isContextProvider = isContextProvider;
243
- exports.isElement = isElement;
244
- exports.isForwardRef = isForwardRef;
245
- exports.isFragment = isFragment;
246
- exports.isLazy = isLazy;
247
- exports.isMemo = isMemo;
248
- exports.isPortal = isPortal;
249
- exports.isProfiler = isProfiler;
250
- exports.isStrictMode = isStrictMode;
251
- exports.isSuspense = isSuspense;
252
- exports.isValidElementType = isValidElementType;
253
- exports.typeOf = typeOf;
254
- })();
255
- }
256
- }
257
- });
258
-
259
- // node_modules/react-is/index.js
260
- var require_react_is = __commonJS({
261
- "node_modules/react-is/index.js"(exports, module) {
262
- init_react_shim();
263
- "use strict";
264
- if (false) {
265
- module.exports = null;
266
- } else {
267
- module.exports = require_react_is_development();
268
- }
269
- }
270
- });
271
-
272
- // node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js
273
- var require_hoist_non_react_statics_cjs = __commonJS({
274
- "node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js"(exports, module) {
275
- init_react_shim();
276
- "use strict";
277
- var reactIs = require_react_is();
278
- var REACT_STATICS = {
279
- childContextTypes: true,
280
- contextType: true,
281
- contextTypes: true,
282
- defaultProps: true,
283
- displayName: true,
284
- getDefaultProps: true,
285
- getDerivedStateFromError: true,
286
- getDerivedStateFromProps: true,
287
- mixins: true,
288
- propTypes: true,
289
- type: true
290
- };
291
- var KNOWN_STATICS = {
292
- name: true,
293
- length: true,
294
- prototype: true,
295
- caller: true,
296
- callee: true,
297
- arguments: true,
298
- arity: true
299
- };
300
- var FORWARD_REF_STATICS = {
301
- "$$typeof": true,
302
- render: true,
303
- defaultProps: true,
304
- displayName: true,
305
- propTypes: true
306
- };
307
- var MEMO_STATICS = {
308
- "$$typeof": true,
309
- compare: true,
310
- defaultProps: true,
311
- displayName: true,
312
- propTypes: true,
313
- type: true
314
- };
315
- var TYPE_STATICS = {};
316
- TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
317
- TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
318
- function getStatics(component) {
319
- if (reactIs.isMemo(component)) {
320
- return MEMO_STATICS;
321
- }
322
- return TYPE_STATICS[component["$$typeof"]] || REACT_STATICS;
323
- }
324
- var defineProperty = Object.defineProperty;
325
- var getOwnPropertyNames = Object.getOwnPropertyNames;
326
- var getOwnPropertySymbols = Object.getOwnPropertySymbols;
327
- var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
328
- var getPrototypeOf = Object.getPrototypeOf;
329
- var objectPrototype = Object.prototype;
330
- function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
331
- if (typeof sourceComponent !== "string") {
332
- if (objectPrototype) {
333
- var inheritedComponent = getPrototypeOf(sourceComponent);
334
- if (inheritedComponent && inheritedComponent !== objectPrototype) {
335
- hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);
336
- }
337
- }
338
- var keys = getOwnPropertyNames(sourceComponent);
339
- if (getOwnPropertySymbols) {
340
- keys = keys.concat(getOwnPropertySymbols(sourceComponent));
341
- }
342
- var targetStatics = getStatics(targetComponent);
343
- var sourceStatics = getStatics(sourceComponent);
344
- for (var i = 0; i < keys.length; ++i) {
345
- var key = keys[i];
346
- if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {
347
- var descriptor = getOwnPropertyDescriptor(sourceComponent, key);
348
- try {
349
- defineProperty(targetComponent, key, descriptor);
350
- } catch (e) {
351
- }
352
- }
353
- }
354
- }
355
- return targetComponent;
356
- }
357
- module.exports = hoistNonReactStatics;
358
- }
359
- });
360
-
361
- // libs/shared/ui-system/src/lib/Form/Description/Description.tsx
362
- init_react_shim();
363
-
364
- // node_modules/@class101/styled-system/dist/index.esm.js
365
- init_react_shim();
366
-
367
- // node_modules/@class101/styled-system__core/dist/index.esm.js
368
- init_react_shim();
369
- var import_object_assign = __toModule(require_object_assign());
370
- var merge = function merge2(a, b) {
371
- var result = (0, import_object_assign.default)({}, a, b);
372
- for (var key in a) {
373
- var _assign;
374
- if (!a[key] || typeof b[key] !== "object")
375
- continue;
376
- (0, import_object_assign.default)(result, (_assign = {}, _assign[key] = (0, import_object_assign.default)(a[key], b[key]), _assign));
377
- }
378
- return result;
379
- };
380
- var sort = function sort2(obj) {
381
- var next2 = {};
382
- Object.keys(obj).sort(function(a, b) {
383
- return a.localeCompare(b, void 0, {
384
- numeric: true,
385
- sensitivity: "base"
386
- });
387
- }).forEach(function(key) {
388
- next2[key] = obj[key];
389
- });
390
- return next2;
391
- };
392
- var defaults = {
393
- breakpoints: [40, 52, 64].map(function(n) {
394
- return n + "em";
395
- })
396
- };
397
- var createMediaQuery = function createMediaQuery2(n) {
398
- return "@media screen and (min-width: " + n + ")";
399
- };
400
- var getValue = function getValue2(n, scale) {
401
- return get(scale, n, n);
402
- };
403
- var get = function get2(obj, key, def, p, undef) {
404
- key = key && key.split ? key.split(".") : [key];
405
- for (p = 0; p < key.length; p++) {
406
- obj = obj ? obj[key[p]] : undef;
407
- }
408
- return obj === undef ? def : obj;
409
- };
410
- var createParser = function createParser2(config9) {
411
- var cache = {};
412
- var parse2 = function parse3(props) {
413
- var styles = {};
414
- var shouldSort = false;
415
- var isCacheDisabled = props.theme && props.theme.disableStyledSystemCache;
416
- for (var _key in props) {
417
- if (!config9[_key])
418
- continue;
419
- var sx = config9[_key];
420
- var raw = props[_key];
421
- var scale = get(props.theme, sx.scale, sx.defaults);
422
- if (typeof raw === "object" && Array.isArray(raw)) {
423
- cache.breakpoints = !isCacheDisabled && cache.breakpoints || get(props.theme, "breakpoints", defaults.breakpoints);
424
- cache.media = !isCacheDisabled && cache.media || [null].concat(cache.breakpoints.map(createMediaQuery));
425
- styles = merge(styles, parseResponsiveStyle(cache.media, sx, scale, raw, props));
426
- continue;
427
- }
428
- (0, import_object_assign.default)(styles, sx(raw, scale, props));
429
- }
430
- if (shouldSort) {
431
- styles = sort(styles);
432
- }
433
- var sortedStyles = {};
434
- var mediaQueryStyles = {};
435
- for (var key in styles) {
436
- if (key.startsWith("@media")) {
437
- mediaQueryStyles[key] = styles[key];
438
- continue;
439
- }
440
- sortedStyles[key] = styles[key];
441
- }
442
- return merge(sortedStyles, mediaQueryStyles);
443
- };
444
- parse2.config = config9;
445
- parse2.propNames = Object.keys(config9);
446
- parse2.cache = cache;
447
- var keys = Object.keys(config9).filter(function(k) {
448
- return k !== "config";
449
- });
450
- if (keys.length > 1) {
451
- keys.forEach(function(key) {
452
- var _createParser;
453
- parse2[key] = createParser2((_createParser = {}, _createParser[key] = config9[key], _createParser));
454
- });
455
- }
456
- return parse2;
457
- };
458
- var parseResponsiveStyle = function parseResponsiveStyle2(mediaQueries, sx, scale, raw, _props) {
459
- var styles = {};
460
- raw.slice(0, mediaQueries.length).forEach(function(value, i) {
461
- var media = mediaQueries[i];
462
- var style = sx(value, scale, _props);
463
- if (!media) {
464
- (0, import_object_assign.default)(styles, style);
465
- } else {
466
- var _assign2;
467
- (0, import_object_assign.default)(styles, (_assign2 = {}, _assign2[media] = (0, import_object_assign.default)({}, styles[media], style), _assign2));
468
- }
469
- });
470
- return styles;
471
- };
472
- var createStyleFunction = function createStyleFunction2(_ref) {
473
- var properties = _ref.properties, property = _ref.property, scale = _ref.scale, _ref$transform = _ref.transform, transform = _ref$transform === void 0 ? getValue : _ref$transform, defaultScale = _ref.defaultScale;
474
- properties = properties || [property];
475
- var sx = function sx2(value, scale2, _props) {
476
- var result = {};
477
- var n = transform(value, scale2, _props);
478
- if (n === null)
479
- return;
480
- properties.forEach(function(prop) {
481
- result[prop] = n;
482
- });
483
- return result;
484
- };
485
- sx.scale = scale;
486
- sx.defaults = defaultScale;
487
- return sx;
488
- };
489
- var system = function system2(args) {
490
- if (args === void 0) {
491
- args = {};
492
- }
493
- var config9 = {};
494
- Object.keys(args).forEach(function(key) {
495
- var conf = args[key];
496
- if (conf === true) {
497
- config9[key] = createStyleFunction({
498
- property: key,
499
- scale: key
500
- });
501
- return;
502
- }
503
- if (typeof conf === "function") {
504
- config9[key] = conf;
505
- return;
506
- }
507
- config9[key] = createStyleFunction(conf);
508
- });
509
- var parser = createParser(config9);
510
- return parser;
511
- };
512
- var compose = function compose2() {
513
- var config9 = {};
514
- for (var _len = arguments.length, parsers = new Array(_len), _key2 = 0; _key2 < _len; _key2++) {
515
- parsers[_key2] = arguments[_key2];
516
- }
517
- parsers.forEach(function(parser2) {
518
- if (!parser2 || !parser2.config)
519
- return;
520
- (0, import_object_assign.default)(config9, parser2.config);
521
- });
522
- var parser = createParser(config9);
523
- return parser;
524
- };
525
-
526
- // node_modules/@class101/styled-system__layout/dist/index.esm.js
527
- init_react_shim();
528
- var isNumber = function isNumber2(n) {
529
- return typeof n === "number" && !isNaN(n);
530
- };
531
- var getWidth = function getWidth2(n, scale) {
532
- return get(scale, n, !isNumber(n) || n > 1 ? n : n * 100 + "%");
533
- };
534
- var config = {
535
- width: {
536
- property: "width",
537
- scale: "sizes",
538
- transform: getWidth
539
- },
540
- height: {
541
- property: "height",
542
- scale: "sizes"
543
- },
544
- minWidth: {
545
- property: "minWidth",
546
- scale: "sizes"
547
- },
548
- minHeight: {
549
- property: "minHeight",
550
- scale: "sizes"
551
- },
552
- maxWidth: {
553
- property: "maxWidth",
554
- scale: "sizes"
555
- },
556
- maxHeight: {
557
- property: "maxHeight",
558
- scale: "sizes"
559
- },
560
- size: {
561
- properties: ["width", "height"],
562
- scale: "sizes"
563
- },
564
- overflow: true,
565
- overflowX: true,
566
- overflowY: true,
567
- display: true,
568
- verticalAlign: true
569
- };
570
- var layout = system(config);
571
- var index_esm_default = layout;
572
-
573
- // node_modules/@class101/styled-system__color/dist/index.esm.js
574
- init_react_shim();
575
- var config2 = {
576
- color: {
577
- property: "color",
578
- scale: "colors"
579
- },
580
- backgroundColor: {
581
- property: "backgroundColor",
582
- scale: "colors"
583
- },
584
- opacity: true
585
- };
586
- config2.bg = config2.backgroundColor;
587
- var color = system(config2);
588
- var index_esm_default2 = color;
589
-
590
- // node_modules/@class101/styled-system__typography/dist/index.esm.js
591
- init_react_shim();
592
- var defaults2 = {
593
- fontSizes: [12, 14, 16, 20, 24, 32, 48, 64, 72]
594
- };
595
- var config3 = {
596
- fontFamily: {
597
- property: "fontFamily",
598
- scale: "fonts"
599
- },
600
- fontSize: {
601
- property: "fontSize",
602
- scale: "fontSizes",
603
- defaultScale: defaults2.fontSizes
604
- },
605
- fontWeight: {
606
- property: "fontWeight",
607
- scale: "fontWeights"
608
- },
609
- lineHeight: {
610
- property: "lineHeight",
611
- scale: "lineHeights"
612
- },
613
- letterSpacing: {
614
- property: "letterSpacing",
615
- scale: "letterSpacings"
616
- },
617
- textAlign: true,
618
- fontStyle: true
619
- };
620
- var typography = system(config3);
621
- var index_esm_default3 = typography;
622
-
623
- // node_modules/@class101/styled-system__flexbox/dist/index.esm.js
624
- init_react_shim();
625
- var config4 = {
626
- alignItems: true,
627
- alignContent: true,
628
- justifyItems: true,
629
- justifyContent: true,
630
- flexWrap: true,
631
- flexDirection: true,
632
- flex: true,
633
- flexGrow: true,
634
- flexShrink: true,
635
- flexBasis: true,
636
- justifySelf: true,
637
- alignSelf: true,
638
- order: true
639
- };
640
- var flexbox = system(config4);
641
- var index_esm_default4 = flexbox;
642
-
643
- // node_modules/@class101/styled-system__grid/dist/index.esm.js
644
- init_react_shim();
645
- var defaults3 = {
646
- space: [0, 4, 8, 16, 32, 64, 128, 256, 512]
647
- };
648
- var config5 = {
649
- gridGap: {
650
- property: "gridGap",
651
- scale: "space",
652
- defaultScale: defaults3.space
653
- },
654
- gridColumnGap: {
655
- property: "gridColumnGap",
656
- scale: "space",
657
- defaultScale: defaults3.space
658
- },
659
- gridRowGap: {
660
- property: "gridRowGap",
661
- scale: "space",
662
- defaultScale: defaults3.space
663
- },
664
- gridColumn: true,
665
- gridRow: true,
666
- gridAutoFlow: true,
667
- gridAutoColumns: true,
668
- gridAutoRows: true,
669
- gridTemplateColumns: true,
670
- gridTemplateRows: true,
671
- gridTemplateAreas: true,
672
- gridArea: true
673
- };
674
- var grid = system(config5);
675
- var index_esm_default5 = grid;
676
-
677
- // node_modules/@class101/styled-system__border/dist/index.esm.js
678
- init_react_shim();
679
- var config6 = {
680
- border: {
681
- property: "border",
682
- scale: "borders"
683
- },
684
- borderWidth: {
685
- property: "borderWidth",
686
- scale: "borderWidths"
687
- },
688
- borderStyle: {
689
- property: "borderStyle",
690
- scale: "borderStyles"
691
- },
692
- borderColor: {
693
- property: "borderColor",
694
- scale: "colors"
695
- },
696
- borderRadius: {
697
- property: "borderRadius",
698
- scale: "radii"
699
- },
700
- borderTop: {
701
- property: "borderTop",
702
- scale: "borders"
703
- },
704
- borderTopLeftRadius: {
705
- property: "borderTopLeftRadius",
706
- scale: "radii"
707
- },
708
- borderTopRightRadius: {
709
- property: "borderTopRightRadius",
710
- scale: "radii"
711
- },
712
- borderRight: {
713
- property: "borderRight",
714
- scale: "borders"
715
- },
716
- borderBottom: {
717
- property: "borderBottom",
718
- scale: "borders"
719
- },
720
- borderBottomLeftRadius: {
721
- property: "borderBottomLeftRadius",
722
- scale: "radii"
723
- },
724
- borderBottomRightRadius: {
725
- property: "borderBottomRightRadius",
726
- scale: "radii"
727
- },
728
- borderLeft: {
729
- property: "borderLeft",
730
- scale: "borders"
731
- },
732
- borderX: {
733
- properties: ["borderLeft", "borderRight"],
734
- scale: "borders"
735
- },
736
- borderY: {
737
- properties: ["borderTop", "borderBottom"],
738
- scale: "borders"
739
- }
740
- };
741
- config6.borderTopWidth = {
742
- property: "borderTopWidth",
743
- scale: "borderWidths"
744
- };
745
- config6.borderTopColor = {
746
- property: "borderTopColor",
747
- scale: "colors"
748
- };
749
- config6.borderTopStyle = {
750
- property: "borderTopStyle",
751
- scale: "borderStyles"
752
- };
753
- config6.borderTopLeftRadius = {
754
- property: "borderTopLeftRadius",
755
- scale: "radii"
756
- };
757
- config6.borderTopRightRadius = {
758
- property: "borderTopRightRadius",
759
- scale: "radii"
760
- };
761
- config6.borderBottomWidth = {
762
- property: "borderBottomWidth",
763
- scale: "borderWidths"
764
- };
765
- config6.borderBottomColor = {
766
- property: "borderBottomColor",
767
- scale: "colors"
768
- };
769
- config6.borderBottomStyle = {
770
- property: "borderBottomStyle",
771
- scale: "borderStyles"
772
- };
773
- config6.borderBottomLeftRadius = {
774
- property: "borderBottomLeftRadius",
775
- scale: "radii"
776
- };
777
- config6.borderBottomRightRadius = {
778
- property: "borderBottomRightRadius",
779
- scale: "radii"
780
- };
781
- config6.borderLeftWidth = {
782
- property: "borderLeftWidth",
783
- scale: "borderWidths"
784
- };
785
- config6.borderLeftColor = {
786
- property: "borderLeftColor",
787
- scale: "colors"
788
- };
789
- config6.borderLeftStyle = {
790
- property: "borderLeftStyle",
791
- scale: "borderStyles"
792
- };
793
- config6.borderRightWidth = {
794
- property: "borderRightWidth",
795
- scale: "borderWidths"
796
- };
797
- config6.borderRightColor = {
798
- property: "borderRightColor",
799
- scale: "colors"
800
- };
801
- config6.borderRightStyle = {
802
- property: "borderRightStyle",
803
- scale: "borderStyles"
804
- };
805
- var border = system(config6);
806
- var index_esm_default6 = border;
807
-
808
- // node_modules/@class101/styled-system__background/dist/index.esm.js
809
- init_react_shim();
810
- var config7 = {
811
- background: true,
812
- backgroundImage: true,
813
- backgroundSize: true,
814
- backgroundPosition: true,
815
- backgroundRepeat: true
816
- };
817
- config7.bgImage = config7.backgroundImage;
818
- config7.bgSize = config7.backgroundSize;
819
- config7.bgPosition = config7.backgroundPosition;
820
- config7.bgRepeat = config7.backgroundRepeat;
821
- var background = system(config7);
822
- var index_esm_default7 = background;
823
-
824
- // node_modules/@class101/styled-system__position/dist/index.esm.js
825
- init_react_shim();
826
- var defaults4 = {
827
- space: [0, 4, 8, 16, 32, 64, 128, 256, 512]
828
- };
829
- var config8 = {
830
- position: true,
831
- zIndex: {
832
- property: "zIndex",
833
- scale: "zIndices"
834
- },
835
- top: {
836
- property: "top",
837
- scale: "space",
838
- defaultScale: defaults4.space
839
- },
840
- right: {
841
- property: "right",
842
- scale: "space",
843
- defaultScale: defaults4.space
844
- },
845
- bottom: {
846
- property: "bottom",
847
- scale: "space",
848
- defaultScale: defaults4.space
849
- },
850
- left: {
851
- property: "left",
852
- scale: "space",
853
- defaultScale: defaults4.space
854
- }
855
- };
856
- var position = system(config8);
857
- var index_esm_default8 = position;
858
-
859
- // node_modules/@class101/styled-system__space/dist/index.esm.js
860
- init_react_shim();
861
- var defaults5 = {
862
- space: [0, 4, 8, 16, 32, 64, 128, 256, 512]
863
- };
864
- var isNumber3 = function isNumber4(n) {
865
- return typeof n === "number" && !isNaN(n);
866
- };
867
- var getMargin = function getMargin2(n, scale) {
868
- if (!isNumber3(n)) {
869
- return get(scale, n, n);
870
- }
871
- var isNegative = n < 0;
872
- var absolute = Math.abs(n);
873
- var value = get(scale, absolute, absolute);
874
- if (!isNumber3(value)) {
875
- return isNegative ? "-" + value : value;
876
- }
877
- return value * (isNegative ? -1 : 1);
878
- };
879
- var configs = {};
880
- configs.margin = {
881
- margin: {
882
- property: "margin",
883
- scale: "space",
884
- transform: getMargin,
885
- defaultScale: defaults5.space
886
- },
887
- marginTop: {
888
- property: "marginTop",
889
- scale: "space",
890
- transform: getMargin,
891
- defaultScale: defaults5.space
892
- },
893
- marginRight: {
894
- property: "marginRight",
895
- scale: "space",
896
- transform: getMargin,
897
- defaultScale: defaults5.space
898
- },
899
- marginBottom: {
900
- property: "marginBottom",
901
- scale: "space",
902
- transform: getMargin,
903
- defaultScale: defaults5.space
904
- },
905
- marginLeft: {
906
- property: "marginLeft",
907
- scale: "space",
908
- transform: getMargin,
909
- defaultScale: defaults5.space
910
- },
911
- marginX: {
912
- properties: ["marginLeft", "marginRight"],
913
- scale: "space",
914
- transform: getMargin,
915
- defaultScale: defaults5.space
916
- },
917
- marginY: {
918
- properties: ["marginTop", "marginBottom"],
919
- scale: "space",
920
- transform: getMargin,
921
- defaultScale: defaults5.space
922
- }
923
- };
924
- configs.margin.m = configs.margin.margin;
925
- configs.margin.mt = configs.margin.marginTop;
926
- configs.margin.mr = configs.margin.marginRight;
927
- configs.margin.mb = configs.margin.marginBottom;
928
- configs.margin.ml = configs.margin.marginLeft;
929
- configs.margin.mx = configs.margin.marginX;
930
- configs.margin.my = configs.margin.marginY;
931
- configs.padding = {
932
- padding: {
933
- property: "padding",
934
- scale: "space",
935
- defaultScale: defaults5.space
936
- },
937
- paddingTop: {
938
- property: "paddingTop",
939
- scale: "space",
940
- defaultScale: defaults5.space
941
- },
942
- paddingRight: {
943
- property: "paddingRight",
944
- scale: "space",
945
- defaultScale: defaults5.space
946
- },
947
- paddingBottom: {
948
- property: "paddingBottom",
949
- scale: "space",
950
- defaultScale: defaults5.space
951
- },
952
- paddingLeft: {
953
- property: "paddingLeft",
954
- scale: "space",
955
- defaultScale: defaults5.space
956
- },
957
- paddingX: {
958
- properties: ["paddingLeft", "paddingRight"],
959
- scale: "space",
960
- defaultScale: defaults5.space
961
- },
962
- paddingY: {
963
- properties: ["paddingTop", "paddingBottom"],
964
- scale: "space",
965
- defaultScale: defaults5.space
966
- }
967
- };
968
- configs.padding.p = configs.padding.padding;
969
- configs.padding.pt = configs.padding.paddingTop;
970
- configs.padding.pr = configs.padding.paddingRight;
971
- configs.padding.pb = configs.padding.paddingBottom;
972
- configs.padding.pl = configs.padding.paddingLeft;
973
- configs.padding.px = configs.padding.paddingX;
974
- configs.padding.py = configs.padding.paddingY;
975
- var margin = system(configs.margin);
976
- var padding = system(configs.padding);
977
- var space = compose(margin, padding);
978
-
979
- // node_modules/@class101/styled-system__shadow/dist/index.esm.js
980
- init_react_shim();
981
- var shadow = system({
982
- boxShadow: {
983
- property: "boxShadow",
984
- scale: "shadows"
985
- },
986
- textShadow: {
987
- property: "textShadow",
988
- scale: "shadows"
989
- }
990
- });
991
-
992
- // node_modules/@class101/styled-system__variant/dist/index.esm.js
993
- init_react_shim();
994
-
995
- // node_modules/@class101/styled-system__css/dist/index.esm.js
996
- init_react_shim();
997
- function _extends() {
998
- _extends = Object.assign || function(target) {
999
- for (var i = 1; i < arguments.length; i++) {
1000
- var source = arguments[i];
1001
- for (var key in source) {
1002
- if (Object.prototype.hasOwnProperty.call(source, key)) {
1003
- target[key] = source[key];
1004
- }
1005
- }
1006
- }
1007
- return target;
1008
- };
1009
- return _extends.apply(this, arguments);
1010
- }
1011
- var get3 = function get4(obj, key, def, p, undef) {
1012
- key = key && key.split ? key.split(".") : [key];
1013
- for (p = 0; p < key.length; p++) {
1014
- obj = obj ? obj[key[p]] : undef;
1015
- }
1016
- return obj === undef ? def : obj;
1017
- };
1018
- var defaultBreakpoints = [40, 52, 64].map(function(n) {
1019
- return n + "em";
1020
- });
1021
- var defaultTheme = {
1022
- space: [0, 4, 8, 16, 32, 64, 128, 256, 512],
1023
- fontSizes: [12, 14, 16, 20, 24, 32, 48, 64, 72]
1024
- };
1025
- var aliases = {
1026
- bg: "backgroundColor",
1027
- m: "margin",
1028
- mt: "marginTop",
1029
- mr: "marginRight",
1030
- mb: "marginBottom",
1031
- ml: "marginLeft",
1032
- mx: "marginX",
1033
- my: "marginY",
1034
- p: "padding",
1035
- pt: "paddingTop",
1036
- pr: "paddingRight",
1037
- pb: "paddingBottom",
1038
- pl: "paddingLeft",
1039
- px: "paddingX",
1040
- py: "paddingY"
1041
- };
1042
- var multiples = {
1043
- marginX: ["marginLeft", "marginRight"],
1044
- marginY: ["marginTop", "marginBottom"],
1045
- paddingX: ["paddingLeft", "paddingRight"],
1046
- paddingY: ["paddingTop", "paddingBottom"],
1047
- size: ["width", "height"]
1048
- };
1049
- var scales = {
1050
- color: "colors",
1051
- backgroundColor: "colors",
1052
- borderColor: "colors",
1053
- margin: "space",
1054
- marginTop: "space",
1055
- marginRight: "space",
1056
- marginBottom: "space",
1057
- marginLeft: "space",
1058
- marginX: "space",
1059
- marginY: "space",
1060
- padding: "space",
1061
- paddingTop: "space",
1062
- paddingRight: "space",
1063
- paddingBottom: "space",
1064
- paddingLeft: "space",
1065
- paddingX: "space",
1066
- paddingY: "space",
1067
- top: "space",
1068
- right: "space",
1069
- bottom: "space",
1070
- left: "space",
1071
- gridGap: "space",
1072
- gridColumnGap: "space",
1073
- gridRowGap: "space",
1074
- gap: "space",
1075
- columnGap: "space",
1076
- rowGap: "space",
1077
- fontFamily: "fonts",
1078
- fontSize: "fontSizes",
1079
- fontWeight: "fontWeights",
1080
- lineHeight: "lineHeights",
1081
- letterSpacing: "letterSpacings",
1082
- border: "borders",
1083
- borderTop: "borders",
1084
- borderRight: "borders",
1085
- borderBottom: "borders",
1086
- borderLeft: "borders",
1087
- borderWidth: "borderWidths",
1088
- borderStyle: "borderStyles",
1089
- borderRadius: "radii",
1090
- borderTopRightRadius: "radii",
1091
- borderTopLeftRadius: "radii",
1092
- borderBottomRightRadius: "radii",
1093
- borderBottomLeftRadius: "radii",
1094
- borderTopWidth: "borderWidths",
1095
- borderTopColor: "colors",
1096
- borderTopStyle: "borderStyles",
1097
- borderBottomWidth: "borderWidths",
1098
- borderBottomColor: "colors",
1099
- borderBottomStyle: "borderStyles",
1100
- borderLeftWidth: "borderWidths",
1101
- borderLeftColor: "colors",
1102
- borderLeftStyle: "borderStyles",
1103
- borderRightWidth: "borderWidths",
1104
- borderRightColor: "colors",
1105
- borderRightStyle: "borderStyles",
1106
- outlineColor: "colors",
1107
- boxShadow: "shadows",
1108
- textShadow: "shadows",
1109
- zIndex: "zIndices",
1110
- width: "sizes",
1111
- minWidth: "sizes",
1112
- maxWidth: "sizes",
1113
- height: "sizes",
1114
- minHeight: "sizes",
1115
- maxHeight: "sizes",
1116
- flexBasis: "sizes",
1117
- size: "sizes",
1118
- fill: "colors",
1119
- stroke: "colors"
1120
- };
1121
- var positiveOrNegative = function positiveOrNegative2(scale, value) {
1122
- if (typeof value !== "number" || value >= 0) {
1123
- return get3(scale, value, value);
1124
- }
1125
- var absolute = Math.abs(value);
1126
- var n = get3(scale, absolute, absolute);
1127
- if (typeof n === "string")
1128
- return "-" + n;
1129
- return n * -1;
1130
- };
1131
- var transforms = ["margin", "marginTop", "marginRight", "marginBottom", "marginLeft", "marginX", "marginY", "top", "bottom", "left", "right"].reduce(function(acc, curr) {
1132
- var _extends22;
1133
- return _extends({}, acc, (_extends22 = {}, _extends22[curr] = positiveOrNegative, _extends22));
1134
- }, {});
1135
- var responsive = function responsive2(styles) {
1136
- return function(theme) {
1137
- var next2 = {};
1138
- var breakpoints = get3(theme, "breakpoints", defaultBreakpoints);
1139
- var mediaQueries = [null].concat(breakpoints.map(function(n) {
1140
- return "@media screen and (min-width: " + n + ")";
1141
- }));
1142
- for (var key in styles) {
1143
- var value = typeof styles[key] === "function" ? styles[key](theme) : styles[key];
1144
- if (value == null)
1145
- continue;
1146
- if (!Array.isArray(value)) {
1147
- next2[key] = value;
1148
- continue;
1149
- }
1150
- for (var i = 0; i < value.slice(0, mediaQueries.length).length; i++) {
1151
- var media = mediaQueries[i];
1152
- if (!media) {
1153
- next2[key] = value[i];
1154
- continue;
1155
- }
1156
- next2[media] = next2[media] || {};
1157
- if (value[i] == null)
1158
- continue;
1159
- next2[media][key] = value[i];
1160
- }
1161
- }
1162
- return next2;
1163
- };
1164
- };
1165
- var css = function css2(args) {
1166
- return function(props) {
1167
- if (props === void 0) {
1168
- props = {};
1169
- }
1170
- var theme = _extends({}, defaultTheme, props.theme || props);
1171
- var result = {};
1172
- var obj = typeof args === "function" ? args(theme) : args;
1173
- var styles = responsive(obj)(theme);
1174
- for (var key in styles) {
1175
- var x = styles[key];
1176
- var val = typeof x === "function" ? x(theme) : x;
1177
- if (key === "variant") {
1178
- var variant3 = css2(get3(theme, val))(theme);
1179
- result = _extends({}, result, variant3);
1180
- continue;
1181
- }
1182
- if (val && typeof val === "object") {
1183
- result[key] = css2(val)(theme);
1184
- continue;
1185
- }
1186
- var prop = get3(aliases, key, key);
1187
- var scaleName = get3(scales, prop);
1188
- var scale = get3(theme, scaleName, get3(theme, prop, {}));
1189
- var transform = get3(transforms, prop, get3);
1190
- var value = transform(scale, val, val);
1191
- if (multiples[prop]) {
1192
- var dirs = multiples[prop];
1193
- for (var i = 0; i < dirs.length; i++) {
1194
- result[dirs[i]] = value;
1195
- }
1196
- } else {
1197
- result[prop] = value;
1198
- }
1199
- }
1200
- return result;
1201
- };
1202
- };
1203
- var index_esm_default9 = css;
1204
-
1205
- // node_modules/@class101/styled-system__variant/dist/index.esm.js
1206
- var variant = function variant2(_ref) {
1207
- var _config;
1208
- var scale = _ref.scale, _ref$prop = _ref.prop, prop = _ref$prop === void 0 ? "variant" : _ref$prop, _ref$variants = _ref.variants, variants = _ref$variants === void 0 ? {} : _ref$variants, key = _ref.key;
1209
- var sx;
1210
- if (Object.keys(variants).length) {
1211
- sx = function sx2(value, scale2, props) {
1212
- return index_esm_default9(get(scale2, value, null))(props.theme);
1213
- };
1214
- } else {
1215
- sx = function sx2(value, scale2) {
1216
- return get(scale2, value, null);
1217
- };
1218
- }
1219
- sx.scale = scale || key;
1220
- sx.defaults = variants;
1221
- var config9 = (_config = {}, _config[prop] = sx, _config);
1222
- var parser = createParser(config9);
1223
- return parser;
1224
- };
1225
- var buttonStyle = variant({
1226
- key: "buttons"
1227
- });
1228
- var textStyle = variant({
1229
- key: "textStyles",
1230
- prop: "textStyle"
1231
- });
1232
- var colorStyle = variant({
1233
- key: "colorStyles",
1234
- prop: "colors"
1235
- });
1236
-
1237
- // node_modules/@class101/styled-system/dist/index.esm.js
1238
- var width = index_esm_default.width;
1239
- var height = index_esm_default.height;
1240
- var minWidth = index_esm_default.minWidth;
1241
- var minHeight = index_esm_default.minHeight;
1242
- var maxWidth = index_esm_default.maxWidth;
1243
- var maxHeight = index_esm_default.maxHeight;
1244
- var size = index_esm_default.size;
1245
- var verticalAlign = index_esm_default.verticalAlign;
1246
- var display = index_esm_default.display;
1247
- var overflow = index_esm_default.overflow;
1248
- var overflowX = index_esm_default.overflowX;
1249
- var overflowY = index_esm_default.overflowY;
1250
- var opacity = index_esm_default2.opacity;
1251
- var fontSize = index_esm_default3.fontSize;
1252
- var fontFamily = index_esm_default3.fontFamily;
1253
- var fontWeight = index_esm_default3.fontWeight;
1254
- var lineHeight = index_esm_default3.lineHeight;
1255
- var textAlign = index_esm_default3.textAlign;
1256
- var fontStyle = index_esm_default3.fontStyle;
1257
- var letterSpacing = index_esm_default3.letterSpacing;
1258
- var alignItems = index_esm_default4.alignItems;
1259
- var alignContent = index_esm_default4.alignContent;
1260
- var justifyItems = index_esm_default4.justifyItems;
1261
- var justifyContent = index_esm_default4.justifyContent;
1262
- var flexWrap = index_esm_default4.flexWrap;
1263
- var flexDirection = index_esm_default4.flexDirection;
1264
- var flex = index_esm_default4.flex;
1265
- var flexGrow = index_esm_default4.flexGrow;
1266
- var flexShrink = index_esm_default4.flexShrink;
1267
- var flexBasis = index_esm_default4.flexBasis;
1268
- var justifySelf = index_esm_default4.justifySelf;
1269
- var alignSelf = index_esm_default4.alignSelf;
1270
- var order = index_esm_default4.order;
1271
- var gridGap = index_esm_default5.gridGap;
1272
- var gridColumnGap = index_esm_default5.gridColumnGap;
1273
- var gridRowGap = index_esm_default5.gridRowGap;
1274
- var gridColumn = index_esm_default5.gridColumn;
1275
- var gridRow = index_esm_default5.gridRow;
1276
- var gridAutoFlow = index_esm_default5.gridAutoFlow;
1277
- var gridAutoColumns = index_esm_default5.gridAutoColumns;
1278
- var gridAutoRows = index_esm_default5.gridAutoRows;
1279
- var gridTemplateColumns = index_esm_default5.gridTemplateColumns;
1280
- var gridTemplateRows = index_esm_default5.gridTemplateRows;
1281
- var gridTemplateAreas = index_esm_default5.gridTemplateAreas;
1282
- var gridArea = index_esm_default5.gridArea;
1283
- var borderWidth = index_esm_default6.borderWidth;
1284
- var borderStyle = index_esm_default6.borderStyle;
1285
- var borderColor = index_esm_default6.borderColor;
1286
- var borderTop = index_esm_default6.borderTop;
1287
- var borderRight = index_esm_default6.borderRight;
1288
- var borderBottom = index_esm_default6.borderBottom;
1289
- var borderLeft = index_esm_default6.borderLeft;
1290
- var borderRadius = index_esm_default6.borderRadius;
1291
- var backgroundImage = index_esm_default7.backgroundImage;
1292
- var backgroundSize = index_esm_default7.backgroundSize;
1293
- var backgroundPosition = index_esm_default7.backgroundPosition;
1294
- var backgroundRepeat = index_esm_default7.backgroundRepeat;
1295
- var zIndex = index_esm_default8.zIndex;
1296
- var top = index_esm_default8.top;
1297
- var right = index_esm_default8.right;
1298
- var bottom = index_esm_default8.bottom;
1299
- var left = index_esm_default8.left;
1300
-
1301
- // node_modules/@emotion/styled/dist/emotion-styled.browser.esm.js
1302
- init_react_shim();
1303
-
1304
- // node_modules/@babel/runtime/helpers/esm/extends.js
1305
- init_react_shim();
1306
- function _extends2() {
1307
- _extends2 = Object.assign || function(target) {
1308
- for (var i = 1; i < arguments.length; i++) {
1309
- var source = arguments[i];
1310
- for (var key in source) {
1311
- if (Object.prototype.hasOwnProperty.call(source, key)) {
1312
- target[key] = source[key];
1313
- }
1314
- }
1315
- }
1316
- return target;
1317
- };
1318
- return _extends2.apply(this, arguments);
1319
- }
1320
-
1321
- // node_modules/@emotion/styled/dist/emotion-styled.browser.esm.js
1322
- import "react";
1323
-
1324
- // node_modules/@emotion/styled/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.browser.esm.js
1325
- init_react_shim();
1326
-
1327
- // node_modules/@emotion/memoize/dist/emotion-memoize.browser.esm.js
1328
- init_react_shim();
1329
- function memoize(fn) {
1330
- var cache = Object.create(null);
1331
- return function(arg) {
1332
- if (cache[arg] === void 0)
1333
- cache[arg] = fn(arg);
1334
- return cache[arg];
1335
- };
1336
- }
1337
- var emotion_memoize_browser_esm_default = memoize;
1338
-
1339
- // node_modules/@emotion/styled/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.browser.esm.js
1340
- var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|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|download|draggable|encType|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|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)-.*))$/;
1341
- var isPropValid = /* @__PURE__ */ emotion_memoize_browser_esm_default(function(prop) {
1342
- return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111 && prop.charCodeAt(1) === 110 && prop.charCodeAt(2) < 91;
1343
- });
1344
- var emotion_is_prop_valid_browser_esm_default = isPropValid;
1345
-
1346
- // node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.esm.js
1347
- init_react_shim();
1348
- import {useContext as useContext3, createElement as createElement3} from "react";
1349
-
1350
- // node_modules/@emotion/react/dist/emotion-react.browser.esm.js
1351
- init_react_shim();
1352
- import {createElement as createElement2, useContext as useContext2, useRef, useLayoutEffect} from "react";
1353
-
1354
- // node_modules/@emotion/react/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js
1355
- init_react_shim();
1356
-
1357
- // node_modules/@emotion/react/node_modules/@emotion/sheet/dist/emotion-sheet.browser.esm.js
1358
- init_react_shim();
1359
- function sheetForTag(tag) {
1360
- if (tag.sheet) {
1361
- return tag.sheet;
1362
- }
1363
- for (var i = 0; i < document.styleSheets.length; i++) {
1364
- if (document.styleSheets[i].ownerNode === tag) {
1365
- return document.styleSheets[i];
1366
- }
1367
- }
1368
- }
1369
- function createStyleElement(options) {
1370
- var tag = document.createElement("style");
1371
- tag.setAttribute("data-emotion", options.key);
1372
- if (options.nonce !== void 0) {
1373
- tag.setAttribute("nonce", options.nonce);
1374
- }
1375
- tag.appendChild(document.createTextNode(""));
1376
- tag.setAttribute("data-s", "");
1377
- return tag;
1378
- }
1379
- var StyleSheet = /* @__PURE__ */ function() {
1380
- function StyleSheet2(options) {
1381
- var _this = this;
1382
- this._insertTag = function(tag) {
1383
- var before;
1384
- if (_this.tags.length === 0) {
1385
- before = _this.prepend ? _this.container.firstChild : _this.before;
1386
- } else {
1387
- before = _this.tags[_this.tags.length - 1].nextSibling;
1388
- }
1389
- _this.container.insertBefore(tag, before);
1390
- _this.tags.push(tag);
1391
- };
1392
- this.isSpeedy = options.speedy === void 0 ? false : options.speedy;
1393
- this.tags = [];
1394
- this.ctr = 0;
1395
- this.nonce = options.nonce;
1396
- this.key = options.key;
1397
- this.container = options.container;
1398
- this.prepend = options.prepend;
1399
- this.before = null;
1400
- }
1401
- var _proto = StyleSheet2.prototype;
1402
- _proto.hydrate = function hydrate(nodes) {
1403
- nodes.forEach(this._insertTag);
1404
- };
1405
- _proto.insert = function insert(rule) {
1406
- if (this.ctr % (this.isSpeedy ? 65e3 : 1) === 0) {
1407
- this._insertTag(createStyleElement(this));
1408
- }
1409
- var tag = this.tags[this.tags.length - 1];
1410
- if (true) {
1411
- var isImportRule3 = rule.charCodeAt(0) === 64 && rule.charCodeAt(1) === 105;
1412
- if (isImportRule3 && this._alreadyInsertedOrderInsensitiveRule) {
1413
- console.error("You're attempting to insert the following rule:\n" + rule + "\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules.");
1414
- }
1415
- this._alreadyInsertedOrderInsensitiveRule = this._alreadyInsertedOrderInsensitiveRule || !isImportRule3;
1416
- }
1417
- if (this.isSpeedy) {
1418
- var sheet = sheetForTag(tag);
1419
- try {
1420
- sheet.insertRule(rule, sheet.cssRules.length);
1421
- } catch (e) {
1422
- if (!/:(-moz-placeholder|-ms-input-placeholder|-moz-read-write|-moz-read-only){/.test(rule)) {
1423
- console.error('There was a problem inserting the following rule: "' + rule + '"', e);
1424
- }
1425
- }
1426
- } else {
1427
- tag.appendChild(document.createTextNode(rule));
1428
- }
1429
- this.ctr++;
1430
- };
1431
- _proto.flush = function flush() {
1432
- this.tags.forEach(function(tag) {
1433
- return tag.parentNode.removeChild(tag);
1434
- });
1435
- this.tags = [];
1436
- this.ctr = 0;
1437
- if (true) {
1438
- this._alreadyInsertedOrderInsensitiveRule = false;
1439
- }
1440
- };
1441
- return StyleSheet2;
1442
- }();
1443
-
1444
- // node_modules/stylis/src/Enum.js
1445
- init_react_shim();
1446
- var MS = "-ms-";
1447
- var MOZ = "-moz-";
1448
- var WEBKIT = "-webkit-";
1449
- var COMMENT = "comm";
1450
- var RULESET = "rule";
1451
- var DECLARATION = "decl";
1452
- var IMPORT = "@import";
1453
- var KEYFRAMES = "@keyframes";
1454
-
1455
- // node_modules/stylis/src/Utility.js
1456
- init_react_shim();
1457
- var abs = Math.abs;
1458
- var from = String.fromCharCode;
1459
- function hash(value, length2) {
1460
- return (((length2 << 2 ^ charat(value, 0)) << 2 ^ charat(value, 1)) << 2 ^ charat(value, 2)) << 2 ^ charat(value, 3);
1461
- }
1462
- function trim(value) {
1463
- return value.trim();
1464
- }
1465
- function match(value, pattern) {
1466
- return (value = pattern.exec(value)) ? value[0] : value;
1467
- }
1468
- function replace(value, pattern, replacement) {
1469
- return value.replace(pattern, replacement);
1470
- }
1471
- function indexof(value, search) {
1472
- return value.indexOf(search);
1473
- }
1474
- function charat(value, index) {
1475
- return value.charCodeAt(index) | 0;
1476
- }
1477
- function substr(value, begin, end) {
1478
- return value.slice(begin, end);
1479
- }
1480
- function strlen(value) {
1481
- return value.length;
1482
- }
1483
- function sizeof(value) {
1484
- return value.length;
1485
- }
1486
- function append(value, array) {
1487
- return array.push(value), value;
1488
- }
1489
- function combine(array, callback) {
1490
- return array.map(callback).join("");
1491
- }
1492
-
1493
- // node_modules/stylis/src/Parser.js
1494
- init_react_shim();
1495
-
1496
- // node_modules/stylis/src/Tokenizer.js
1497
- init_react_shim();
1498
- var line = 1;
1499
- var column = 1;
1500
- var length = 0;
1501
- var position2 = 0;
1502
- var character = 0;
1503
- var characters = "";
1504
- function node(value, root, parent, type, props, children, length2) {
1505
- return {value, root, parent, type, props, children, line, column, length: length2, return: ""};
1506
- }
1507
- function copy(value, root, type) {
1508
- return node(value, root.root, root.parent, type, root.props, root.children, 0);
1509
- }
1510
- function char() {
1511
- return character;
1512
- }
1513
- function prev() {
1514
- character = position2 > 0 ? charat(characters, --position2) : 0;
1515
- if (column--, character === 10)
1516
- column = 1, line--;
1517
- return character;
1518
- }
1519
- function next() {
1520
- character = position2 < length ? charat(characters, position2++) : 0;
1521
- if (column++, character === 10)
1522
- column = 1, line++;
1523
- return character;
1524
- }
1525
- function peek() {
1526
- return charat(characters, position2);
1527
- }
1528
- function caret() {
1529
- return position2;
1530
- }
1531
- function slice(begin, end) {
1532
- return substr(characters, begin, end);
1533
- }
1534
- function token(type) {
1535
- switch (type) {
1536
- case 0:
1537
- case 9:
1538
- case 10:
1539
- case 13:
1540
- case 32:
1541
- return 5;
1542
- case 33:
1543
- case 43:
1544
- case 44:
1545
- case 47:
1546
- case 62:
1547
- case 64:
1548
- case 126:
1549
- case 59:
1550
- case 123:
1551
- case 125:
1552
- return 4;
1553
- case 58:
1554
- return 3;
1555
- case 34:
1556
- case 39:
1557
- case 40:
1558
- case 91:
1559
- return 2;
1560
- case 41:
1561
- case 93:
1562
- return 1;
1563
- }
1564
- return 0;
1565
- }
1566
- function alloc(value) {
1567
- return line = column = 1, length = strlen(characters = value), position2 = 0, [];
1568
- }
1569
- function dealloc(value) {
1570
- return characters = "", value;
1571
- }
1572
- function delimit(type) {
1573
- return trim(slice(position2 - 1, delimiter(type === 91 ? type + 2 : type === 40 ? type + 1 : type)));
1574
- }
1575
- function whitespace(type) {
1576
- while (character = peek())
1577
- if (character < 33)
1578
- next();
1579
- else
1580
- break;
1581
- return token(type) > 2 || token(character) > 3 ? "" : " ";
1582
- }
1583
- function escaping(index, count) {
1584
- while (--count && next())
1585
- if (character < 48 || character > 102 || character > 57 && character < 65 || character > 70 && character < 97)
1586
- break;
1587
- return slice(index, caret() + (count < 6 && peek() == 32 && next() == 32));
1588
- }
1589
- function delimiter(type) {
1590
- while (next())
1591
- switch (character) {
1592
- case type:
1593
- return position2;
1594
- case 34:
1595
- case 39:
1596
- return delimiter(type === 34 || type === 39 ? type : character);
1597
- case 40:
1598
- if (type === 41)
1599
- delimiter(type);
1600
- break;
1601
- case 92:
1602
- next();
1603
- break;
1604
- }
1605
- return position2;
1606
- }
1607
- function commenter(type, index) {
1608
- while (next())
1609
- if (type + character === 47 + 10)
1610
- break;
1611
- else if (type + character === 42 + 42 && peek() === 47)
1612
- break;
1613
- return "/*" + slice(index, position2 - 1) + "*" + from(type === 47 ? type : next());
1614
- }
1615
- function identifier(index) {
1616
- while (!token(peek()))
1617
- next();
1618
- return slice(index, position2);
1619
- }
1620
-
1621
- // node_modules/stylis/src/Parser.js
1622
- function compile(value) {
1623
- return dealloc(parse("", null, null, null, [""], value = alloc(value), 0, [0], value));
1624
- }
1625
- function parse(value, root, parent, rule, rules, rulesets, pseudo, points, declarations) {
1626
- var index = 0;
1627
- var offset = 0;
1628
- var length2 = pseudo;
1629
- var atrule = 0;
1630
- var property = 0;
1631
- var previous = 0;
1632
- var variable = 1;
1633
- var scanning = 1;
1634
- var ampersand = 1;
1635
- var character2 = 0;
1636
- var type = "";
1637
- var props = rules;
1638
- var children = rulesets;
1639
- var reference = rule;
1640
- var characters2 = type;
1641
- while (scanning)
1642
- switch (previous = character2, character2 = next()) {
1643
- case 34:
1644
- case 39:
1645
- case 91:
1646
- case 40:
1647
- characters2 += delimit(character2);
1648
- break;
1649
- case 9:
1650
- case 10:
1651
- case 13:
1652
- case 32:
1653
- characters2 += whitespace(previous);
1654
- break;
1655
- case 92:
1656
- characters2 += escaping(caret() - 1, 7);
1657
- continue;
1658
- case 47:
1659
- switch (peek()) {
1660
- case 42:
1661
- case 47:
1662
- append(comment(commenter(next(), caret()), root, parent), declarations);
1663
- break;
1664
- default:
1665
- characters2 += "/";
1666
- }
1667
- break;
1668
- case 123 * variable:
1669
- points[index++] = strlen(characters2) * ampersand;
1670
- case 125 * variable:
1671
- case 59:
1672
- case 0:
1673
- switch (character2) {
1674
- case 0:
1675
- case 125:
1676
- scanning = 0;
1677
- case 59 + offset:
1678
- if (property > 0 && strlen(characters2) - length2)
1679
- append(property > 32 ? declaration(characters2 + ";", rule, parent, length2 - 1) : declaration(replace(characters2, " ", "") + ";", rule, parent, length2 - 2), declarations);
1680
- break;
1681
- case 59:
1682
- characters2 += ";";
1683
- default:
1684
- append(reference = ruleset(characters2, root, parent, index, offset, rules, points, type, props = [], children = [], length2), rulesets);
1685
- if (character2 === 123)
1686
- if (offset === 0)
1687
- parse(characters2, root, reference, reference, props, rulesets, length2, points, children);
1688
- else
1689
- switch (atrule) {
1690
- case 100:
1691
- case 109:
1692
- case 115:
1693
- parse(value, reference, reference, rule && append(ruleset(value, reference, reference, 0, 0, rules, points, type, rules, props = [], length2), children), rules, children, length2, points, rule ? props : children);
1694
- break;
1695
- default:
1696
- parse(characters2, reference, reference, reference, [""], children, length2, points, children);
1697
- }
1698
- }
1699
- index = offset = property = 0, variable = ampersand = 1, type = characters2 = "", length2 = pseudo;
1700
- break;
1701
- case 58:
1702
- length2 = 1 + strlen(characters2), property = previous;
1703
- default:
1704
- if (variable < 1) {
1705
- if (character2 == 123)
1706
- --variable;
1707
- else if (character2 == 125 && variable++ == 0 && prev() == 125)
1708
- continue;
1709
- }
1710
- switch (characters2 += from(character2), character2 * variable) {
1711
- case 38:
1712
- ampersand = offset > 0 ? 1 : (characters2 += "\f", -1);
1713
- break;
1714
- case 44:
1715
- points[index++] = (strlen(characters2) - 1) * ampersand, ampersand = 1;
1716
- break;
1717
- case 64:
1718
- if (peek() === 45)
1719
- characters2 += delimit(next());
1720
- atrule = peek(), offset = strlen(type = characters2 += identifier(caret())), character2++;
1721
- break;
1722
- case 45:
1723
- if (previous === 45 && strlen(characters2) == 2)
1724
- variable = 0;
1725
- }
1726
- }
1727
- return rulesets;
1728
- }
1729
- function ruleset(value, root, parent, index, offset, rules, points, type, props, children, length2) {
1730
- var post = offset - 1;
1731
- var rule = offset === 0 ? rules : [""];
1732
- var size2 = sizeof(rule);
1733
- for (var i = 0, j = 0, k = 0; i < index; ++i)
1734
- for (var x = 0, y = substr(value, post + 1, post = abs(j = points[i])), z = value; x < size2; ++x)
1735
- if (z = trim(j > 0 ? rule[x] + " " + y : replace(y, /&\f/g, rule[x])))
1736
- props[k++] = z;
1737
- return node(value, root, parent, offset === 0 ? RULESET : type, props, children, length2);
1738
- }
1739
- function comment(value, root, parent) {
1740
- return node(value, root, parent, COMMENT, from(char()), substr(value, 2, -2), 0);
1741
- }
1742
- function declaration(value, root, parent, length2) {
1743
- return node(value, root, parent, DECLARATION, substr(value, 0, length2), substr(value, length2 + 1, -1), length2);
1744
- }
1745
-
1746
- // node_modules/stylis/src/Prefixer.js
1747
- init_react_shim();
1748
- function prefix(value, length2) {
1749
- switch (hash(value, length2)) {
1750
- case 5103:
1751
- return WEBKIT + "print-" + value + value;
1752
- case 5737:
1753
- case 4201:
1754
- case 3177:
1755
- case 3433:
1756
- case 1641:
1757
- case 4457:
1758
- case 2921:
1759
- case 5572:
1760
- case 6356:
1761
- case 5844:
1762
- case 3191:
1763
- case 6645:
1764
- case 3005:
1765
- case 6391:
1766
- case 5879:
1767
- case 5623:
1768
- case 6135:
1769
- case 4599:
1770
- case 4855:
1771
- case 4215:
1772
- case 6389:
1773
- case 5109:
1774
- case 5365:
1775
- case 5621:
1776
- case 3829:
1777
- return WEBKIT + value + value;
1778
- case 5349:
1779
- case 4246:
1780
- case 4810:
1781
- case 6968:
1782
- case 2756:
1783
- return WEBKIT + value + MOZ + value + MS + value + value;
1784
- case 6828:
1785
- case 4268:
1786
- return WEBKIT + value + MS + value + value;
1787
- case 6165:
1788
- return WEBKIT + value + MS + "flex-" + value + value;
1789
- case 5187:
1790
- return WEBKIT + value + replace(value, /(\w+).+(:[^]+)/, WEBKIT + "box-$1$2" + MS + "flex-$1$2") + value;
1791
- case 5443:
1792
- return WEBKIT + value + MS + "flex-item-" + replace(value, /flex-|-self/, "") + value;
1793
- case 4675:
1794
- return WEBKIT + value + MS + "flex-line-pack" + replace(value, /align-content|flex-|-self/, "") + value;
1795
- case 5548:
1796
- return WEBKIT + value + MS + replace(value, "shrink", "negative") + value;
1797
- case 5292:
1798
- return WEBKIT + value + MS + replace(value, "basis", "preferred-size") + value;
1799
- case 6060:
1800
- return WEBKIT + "box-" + replace(value, "-grow", "") + WEBKIT + value + MS + replace(value, "grow", "positive") + value;
1801
- case 4554:
1802
- return WEBKIT + replace(value, /([^-])(transform)/g, "$1" + WEBKIT + "$2") + value;
1803
- case 6187:
1804
- return replace(replace(replace(value, /(zoom-|grab)/, WEBKIT + "$1"), /(image-set)/, WEBKIT + "$1"), value, "") + value;
1805
- case 5495:
1806
- case 3959:
1807
- return replace(value, /(image-set\([^]*)/, WEBKIT + "$1$`$1");
1808
- case 4968:
1809
- return replace(replace(value, /(.+:)(flex-)?(.*)/, WEBKIT + "box-pack:$3" + MS + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + WEBKIT + value + value;
1810
- case 4095:
1811
- case 3583:
1812
- case 4068:
1813
- case 2532:
1814
- return replace(value, /(.+)-inline(.+)/, WEBKIT + "$1$2") + value;
1815
- case 8116:
1816
- case 7059:
1817
- case 5753:
1818
- case 5535:
1819
- case 5445:
1820
- case 5701:
1821
- case 4933:
1822
- case 4677:
1823
- case 5533:
1824
- case 5789:
1825
- case 5021:
1826
- case 4765:
1827
- if (strlen(value) - 1 - length2 > 6)
1828
- switch (charat(value, length2 + 1)) {
1829
- case 109:
1830
- if (charat(value, length2 + 4) !== 45)
1831
- break;
1832
- case 102:
1833
- return replace(value, /(.+:)(.+)-([^]+)/, "$1" + WEBKIT + "$2-$3$1" + MOZ + (charat(value, length2 + 3) == 108 ? "$3" : "$2-$3")) + value;
1834
- case 115:
1835
- return ~indexof(value, "stretch") ? prefix(replace(value, "stretch", "fill-available"), length2) + value : value;
1836
- }
1837
- break;
1838
- case 4949:
1839
- if (charat(value, length2 + 1) !== 115)
1840
- break;
1841
- case 6444:
1842
- switch (charat(value, strlen(value) - 3 - (~indexof(value, "!important") && 10))) {
1843
- case 107:
1844
- return replace(value, ":", ":" + WEBKIT) + value;
1845
- case 101:
1846
- return replace(value, /(.+:)([^;!]+)(;|!.+)?/, "$1" + WEBKIT + (charat(value, 14) === 45 ? "inline-" : "") + "box$3$1" + WEBKIT + "$2$3$1" + MS + "$2box$3") + value;
1847
- }
1848
- break;
1849
- case 5936:
1850
- switch (charat(value, length2 + 11)) {
1851
- case 114:
1852
- return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "tb") + value;
1853
- case 108:
1854
- return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "tb-rl") + value;
1855
- case 45:
1856
- return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "lr") + value;
1857
- }
1858
- return WEBKIT + value + MS + value + value;
1859
- }
1860
- return value;
1861
- }
1862
-
1863
- // node_modules/stylis/src/Serializer.js
1864
- init_react_shim();
1865
- function serialize(children, callback) {
1866
- var output = "";
1867
- var length2 = sizeof(children);
1868
- for (var i = 0; i < length2; i++)
1869
- output += callback(children[i], i, children, callback) || "";
1870
- return output;
1871
- }
1872
- function stringify(element, index, children, callback) {
1873
- switch (element.type) {
1874
- case IMPORT:
1875
- case DECLARATION:
1876
- return element.return = element.return || element.value;
1877
- case COMMENT:
1878
- return "";
1879
- case RULESET:
1880
- element.value = element.props.join(",");
1881
- }
1882
- return strlen(children = serialize(element.children, callback)) ? element.return = element.value + "{" + children + "}" : "";
1883
- }
1884
-
1885
- // node_modules/stylis/src/Middleware.js
1886
- init_react_shim();
1887
- function middleware(collection) {
1888
- var length2 = sizeof(collection);
1889
- return function(element, index, children, callback) {
1890
- var output = "";
1891
- for (var i = 0; i < length2; i++)
1892
- output += collection[i](element, index, children, callback) || "";
1893
- return output;
1894
- };
1895
- }
1896
- function prefixer(element, index, children, callback) {
1897
- if (!element.return)
1898
- switch (element.type) {
1899
- case DECLARATION:
1900
- element.return = prefix(element.value, element.length);
1901
- break;
1902
- case KEYFRAMES:
1903
- return serialize([copy(replace(element.value, "@", "@" + WEBKIT), element, "")], callback);
1904
- case RULESET:
1905
- if (element.length)
1906
- return combine(element.props, function(value) {
1907
- switch (match(value, /(::plac\w+|:read-\w+)/)) {
1908
- case ":read-only":
1909
- case ":read-write":
1910
- return serialize([copy(replace(value, /:(read-\w+)/, ":" + MOZ + "$1"), element, "")], callback);
1911
- case "::placeholder":
1912
- return serialize([
1913
- copy(replace(value, /:(plac\w+)/, ":" + WEBKIT + "input-$1"), element, ""),
1914
- copy(replace(value, /:(plac\w+)/, ":" + MOZ + "$1"), element, ""),
1915
- copy(replace(value, /:(plac\w+)/, MS + "input-$1"), element, "")
1916
- ], callback);
1917
- }
1918
- return "";
1919
- });
1920
- }
1921
- }
1922
-
1923
- // node_modules/@emotion/weak-memoize/dist/weak-memoize.browser.esm.js
1924
- init_react_shim();
1925
-
1926
- // node_modules/@emotion/react/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js
1927
- var last = function last2(arr) {
1928
- return arr.length ? arr[arr.length - 1] : null;
1929
- };
1930
- var toRules = function toRules2(parsed, points) {
1931
- var index = -1;
1932
- var character2 = 44;
1933
- do {
1934
- switch (token(character2)) {
1935
- case 0:
1936
- if (character2 === 38 && peek() === 12) {
1937
- points[index] = 1;
1938
- }
1939
- parsed[index] += identifier(position2 - 1);
1940
- break;
1941
- case 2:
1942
- parsed[index] += delimit(character2);
1943
- break;
1944
- case 4:
1945
- if (character2 === 44) {
1946
- parsed[++index] = peek() === 58 ? "&\f" : "";
1947
- points[index] = parsed[index].length;
1948
- break;
1949
- }
1950
- default:
1951
- parsed[index] += from(character2);
1952
- }
1953
- } while (character2 = next());
1954
- return parsed;
1955
- };
1956
- var getRules = function getRules2(value, points) {
1957
- return dealloc(toRules(alloc(value), points));
1958
- };
1959
- var fixedElements = /* @__PURE__ */ new WeakMap();
1960
- var compat = function compat2(element) {
1961
- if (element.type !== "rule" || !element.parent || !element.length) {
1962
- return;
1963
- }
1964
- var value = element.value, parent = element.parent;
1965
- var isImplicitRule = element.column === parent.column && element.line === parent.line;
1966
- while (parent.type !== "rule") {
1967
- parent = parent.parent;
1968
- if (!parent)
1969
- return;
1970
- }
1971
- if (element.props.length === 1 && value.charCodeAt(0) !== 58 && !fixedElements.get(parent)) {
1972
- return;
1973
- }
1974
- if (isImplicitRule) {
1975
- return;
1976
- }
1977
- fixedElements.set(element, true);
1978
- var points = [];
1979
- var rules = getRules(value, points);
1980
- var parentRules = parent.props;
1981
- for (var i = 0, k = 0; i < rules.length; i++) {
1982
- for (var j = 0; j < parentRules.length; j++, k++) {
1983
- element.props[k] = points[i] ? rules[i].replace(/&\f/g, parentRules[j]) : parentRules[j] + " " + rules[i];
1984
- }
1985
- }
1986
- };
1987
- var removeLabel = function removeLabel2(element) {
1988
- if (element.type === "decl") {
1989
- var value = element.value;
1990
- if (value.charCodeAt(0) === 108 && value.charCodeAt(2) === 98) {
1991
- element["return"] = "";
1992
- element.value = "";
1993
- }
1994
- }
1995
- };
1996
- var ignoreFlag = "emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason";
1997
- var isIgnoringComment = function isIgnoringComment2(element) {
1998
- return !!element && element.type === "comm" && element.children.indexOf(ignoreFlag) > -1;
1999
- };
2000
- var createUnsafeSelectorsAlarm = function createUnsafeSelectorsAlarm2(cache) {
2001
- return function(element, index, children) {
2002
- if (element.type !== "rule")
2003
- return;
2004
- var unsafePseudoClasses = element.value.match(/(:first|:nth|:nth-last)-child/g);
2005
- if (unsafePseudoClasses && cache.compat !== true) {
2006
- var prevElement = index > 0 ? children[index - 1] : null;
2007
- if (prevElement && isIgnoringComment(last(prevElement.children))) {
2008
- return;
2009
- }
2010
- unsafePseudoClasses.forEach(function(unsafePseudoClass) {
2011
- console.error('The pseudo class "' + unsafePseudoClass + '" is potentially unsafe when doing server-side rendering. Try changing it to "' + unsafePseudoClass.split("-child")[0] + '-of-type".');
2012
- });
2013
- }
2014
- };
2015
- };
2016
- var isImportRule = function isImportRule2(element) {
2017
- return element.type.charCodeAt(1) === 105 && element.type.charCodeAt(0) === 64;
2018
- };
2019
- var isPrependedWithRegularRules = function isPrependedWithRegularRules2(index, children) {
2020
- for (var i = index - 1; i >= 0; i--) {
2021
- if (!isImportRule(children[i])) {
2022
- return true;
2023
- }
2024
- }
2025
- return false;
2026
- };
2027
- var nullifyElement = function nullifyElement2(element) {
2028
- element.type = "";
2029
- element.value = "";
2030
- element["return"] = "";
2031
- element.children = "";
2032
- element.props = "";
2033
- };
2034
- var incorrectImportAlarm = function incorrectImportAlarm2(element, index, children) {
2035
- if (!isImportRule(element)) {
2036
- return;
2037
- }
2038
- if (element.parent) {
2039
- console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles.");
2040
- nullifyElement(element);
2041
- } else if (isPrependedWithRegularRules(index, children)) {
2042
- console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules.");
2043
- nullifyElement(element);
2044
- }
2045
- };
2046
- var defaultStylisPlugins = [prefixer];
2047
- var createCache = function createCache2(options) {
2048
- var key = options.key;
2049
- if (!key) {
2050
- throw new Error("You have to configure `key` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.\nIf multiple caches share the same key they might \"fight\" for each other's style elements.");
2051
- }
2052
- if (key === "css") {
2053
- var ssrStyles = document.querySelectorAll("style[data-emotion]:not([data-s])");
2054
- Array.prototype.forEach.call(ssrStyles, function(node2) {
2055
- var dataEmotionAttribute = node2.getAttribute("data-emotion");
2056
- if (dataEmotionAttribute.indexOf(" ") === -1) {
2057
- return;
2058
- }
2059
- document.head.appendChild(node2);
2060
- node2.setAttribute("data-s", "");
2061
- });
2062
- }
2063
- var stylisPlugins = options.stylisPlugins || defaultStylisPlugins;
2064
- if (true) {
2065
- if (/[^a-z-]/.test(key)) {
2066
- throw new Error('Emotion key must only contain lower case alphabetical characters and - but "' + key + '" was passed');
2067
- }
2068
- }
2069
- var inserted = {};
2070
- var container;
2071
- var nodesToHydrate = [];
2072
- {
2073
- container = options.container || document.head;
2074
- Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="' + key + ' "]'), function(node2) {
2075
- var attrib = node2.getAttribute("data-emotion").split(" ");
2076
- for (var i = 1; i < attrib.length; i++) {
2077
- inserted[attrib[i]] = true;
2078
- }
2079
- nodesToHydrate.push(node2);
2080
- });
2081
- }
2082
- var _insert;
2083
- var omnipresentPlugins = [compat, removeLabel];
2084
- if (true) {
2085
- omnipresentPlugins.push(createUnsafeSelectorsAlarm({
2086
- get compat() {
2087
- return cache.compat;
2088
- }
2089
- }), incorrectImportAlarm);
2090
- }
2091
- {
2092
- var currentSheet;
2093
- var finalizingPlugins = [stringify, true ? function(element) {
2094
- if (!element.root) {
2095
- if (element["return"]) {
2096
- currentSheet.insert(element["return"]);
2097
- } else if (element.value && element.type !== COMMENT) {
2098
- currentSheet.insert(element.value + "{}");
2099
- }
2100
- }
2101
- } : rulesheet(function(rule) {
2102
- currentSheet.insert(rule);
2103
- })];
2104
- var serializer = middleware(omnipresentPlugins.concat(stylisPlugins, finalizingPlugins));
2105
- var stylis = function stylis2(styles) {
2106
- return serialize(compile(styles), serializer);
2107
- };
2108
- _insert = function insert(selector, serialized, sheet, shouldCache) {
2109
- currentSheet = sheet;
2110
- if (serialized.map !== void 0) {
2111
- currentSheet = {
2112
- insert: function insert2(rule) {
2113
- sheet.insert(rule + serialized.map);
2114
- }
2115
- };
2116
- }
2117
- stylis(selector ? selector + "{" + serialized.styles + "}" : serialized.styles);
2118
- if (shouldCache) {
2119
- cache.inserted[serialized.name] = true;
2120
- }
2121
- };
2122
- }
2123
- var cache = {
2124
- key,
2125
- sheet: new StyleSheet({
2126
- key,
2127
- container,
2128
- nonce: options.nonce,
2129
- speedy: options.speedy,
2130
- prepend: options.prepend
2131
- }),
2132
- nonce: options.nonce,
2133
- inserted,
2134
- registered: {},
2135
- insert: _insert
2136
- };
2137
- cache.sheet.hydrate(nodesToHydrate);
2138
- return cache;
2139
- };
2140
- var emotion_cache_browser_esm_default = createCache;
2141
-
2142
- // node_modules/@emotion/react/dist/emotion-element-4fbd89c5.browser.esm.js
2143
- init_react_shim();
2144
- import {createContext, forwardRef, useContext, createElement} from "react";
2145
-
2146
- // node_modules/@emotion/react/node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js
2147
- init_react_shim();
2148
- var isBrowser = true;
2149
- function getRegisteredStyles(registered, registeredStyles, classNames) {
2150
- var rawClassName = "";
2151
- classNames.split(" ").forEach(function(className) {
2152
- if (registered[className] !== void 0) {
2153
- registeredStyles.push(registered[className] + ";");
2154
- } else {
2155
- rawClassName += className + " ";
2156
- }
2157
- });
2158
- return rawClassName;
2159
- }
2160
- var insertStyles = function insertStyles2(cache, serialized, isStringTag) {
2161
- var className = cache.key + "-" + serialized.name;
2162
- if ((isStringTag === false || isBrowser === false) && cache.registered[className] === void 0) {
2163
- cache.registered[className] = serialized.styles;
2164
- }
2165
- if (cache.inserted[serialized.name] === void 0) {
2166
- var current = serialized;
2167
- do {
2168
- var maybeStyles = cache.insert(serialized === current ? "." + className : "", current, cache.sheet, true);
2169
- current = current.next;
2170
- } while (current !== void 0);
2171
- }
2172
- };
2173
-
2174
- // node_modules/@emotion/serialize/dist/emotion-serialize.browser.esm.js
2175
- init_react_shim();
2176
-
2177
- // node_modules/@emotion/hash/dist/hash.browser.esm.js
2178
- init_react_shim();
2179
- function murmur2(str) {
2180
- var h = 0;
2181
- var k, i = 0, len = str.length;
2182
- for (; len >= 4; ++i, len -= 4) {
2183
- k = str.charCodeAt(i) & 255 | (str.charCodeAt(++i) & 255) << 8 | (str.charCodeAt(++i) & 255) << 16 | (str.charCodeAt(++i) & 255) << 24;
2184
- k = (k & 65535) * 1540483477 + ((k >>> 16) * 59797 << 16);
2185
- k ^= k >>> 24;
2186
- h = (k & 65535) * 1540483477 + ((k >>> 16) * 59797 << 16) ^ (h & 65535) * 1540483477 + ((h >>> 16) * 59797 << 16);
2187
- }
2188
- switch (len) {
2189
- case 3:
2190
- h ^= (str.charCodeAt(i + 2) & 255) << 16;
2191
- case 2:
2192
- h ^= (str.charCodeAt(i + 1) & 255) << 8;
2193
- case 1:
2194
- h ^= str.charCodeAt(i) & 255;
2195
- h = (h & 65535) * 1540483477 + ((h >>> 16) * 59797 << 16);
2196
- }
2197
- h ^= h >>> 13;
2198
- h = (h & 65535) * 1540483477 + ((h >>> 16) * 59797 << 16);
2199
- return ((h ^ h >>> 15) >>> 0).toString(36);
2200
- }
2201
- var hash_browser_esm_default = murmur2;
2202
-
2203
- // node_modules/@emotion/unitless/dist/unitless.browser.esm.js
2204
- init_react_shim();
2205
- var unitlessKeys = {
2206
- animationIterationCount: 1,
2207
- borderImageOutset: 1,
2208
- borderImageSlice: 1,
2209
- borderImageWidth: 1,
2210
- boxFlex: 1,
2211
- boxFlexGroup: 1,
2212
- boxOrdinalGroup: 1,
2213
- columnCount: 1,
2214
- columns: 1,
2215
- flex: 1,
2216
- flexGrow: 1,
2217
- flexPositive: 1,
2218
- flexShrink: 1,
2219
- flexNegative: 1,
2220
- flexOrder: 1,
2221
- gridRow: 1,
2222
- gridRowEnd: 1,
2223
- gridRowSpan: 1,
2224
- gridRowStart: 1,
2225
- gridColumn: 1,
2226
- gridColumnEnd: 1,
2227
- gridColumnSpan: 1,
2228
- gridColumnStart: 1,
2229
- msGridRow: 1,
2230
- msGridRowSpan: 1,
2231
- msGridColumn: 1,
2232
- msGridColumnSpan: 1,
2233
- fontWeight: 1,
2234
- lineHeight: 1,
2235
- opacity: 1,
2236
- order: 1,
2237
- orphans: 1,
2238
- tabSize: 1,
2239
- widows: 1,
2240
- zIndex: 1,
2241
- zoom: 1,
2242
- WebkitLineClamp: 1,
2243
- fillOpacity: 1,
2244
- floodOpacity: 1,
2245
- stopOpacity: 1,
2246
- strokeDasharray: 1,
2247
- strokeDashoffset: 1,
2248
- strokeMiterlimit: 1,
2249
- strokeOpacity: 1,
2250
- strokeWidth: 1
2251
- };
2252
- var unitless_browser_esm_default = unitlessKeys;
2253
-
2254
- // node_modules/@emotion/serialize/dist/emotion-serialize.browser.esm.js
2255
- var ILLEGAL_ESCAPE_SEQUENCE_ERROR = `You have illegal escape sequence in your template literal, most likely inside content's property value.
2256
- Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
2257
- You can read more about this here:
2258
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`;
2259
- var UNDEFINED_AS_OBJECT_KEY_ERROR = "You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).";
2260
- var hyphenateRegex = /[A-Z]|^ms/g;
2261
- var animationRegex = /_EMO_([^_]+?)_([^]*?)_EMO_/g;
2262
- var isCustomProperty = function isCustomProperty2(property) {
2263
- return property.charCodeAt(1) === 45;
2264
- };
2265
- var isProcessableValue = function isProcessableValue2(value) {
2266
- return value != null && typeof value !== "boolean";
2267
- };
2268
- var processStyleName = /* @__PURE__ */ emotion_memoize_browser_esm_default(function(styleName) {
2269
- return isCustomProperty(styleName) ? styleName : styleName.replace(hyphenateRegex, "-$&").toLowerCase();
2270
- });
2271
- var processStyleValue = function processStyleValue2(key, value) {
2272
- switch (key) {
2273
- case "animation":
2274
- case "animationName": {
2275
- if (typeof value === "string") {
2276
- return value.replace(animationRegex, function(match2, p1, p2) {
2277
- cursor = {
2278
- name: p1,
2279
- styles: p2,
2280
- next: cursor
2281
- };
2282
- return p1;
2283
- });
2284
- }
2285
- }
2286
- }
2287
- if (unitless_browser_esm_default[key] !== 1 && !isCustomProperty(key) && typeof value === "number" && value !== 0) {
2288
- return value + "px";
2289
- }
2290
- return value;
2291
- };
2292
- if (true) {
2293
- contentValuePattern = /(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/;
2294
- contentValues = ["normal", "none", "initial", "inherit", "unset"];
2295
- oldProcessStyleValue = processStyleValue;
2296
- msPattern = /^-ms-/;
2297
- hyphenPattern = /-(.)/g;
2298
- hyphenatedCache = {};
2299
- processStyleValue = function processStyleValue3(key, value) {
2300
- if (key === "content") {
2301
- if (typeof value !== "string" || contentValues.indexOf(value) === -1 && !contentValuePattern.test(value) && (value.charAt(0) !== value.charAt(value.length - 1) || value.charAt(0) !== '"' && value.charAt(0) !== "'")) {
2302
- throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"" + value + "\"'`");
2303
- }
2304
- }
2305
- var processed = oldProcessStyleValue(key, value);
2306
- if (processed !== "" && !isCustomProperty(key) && key.indexOf("-") !== -1 && hyphenatedCache[key] === void 0) {
2307
- hyphenatedCache[key] = true;
2308
- console.error("Using kebab-case for css properties in objects is not supported. Did you mean " + key.replace(msPattern, "ms-").replace(hyphenPattern, function(str, _char) {
2309
- return _char.toUpperCase();
2310
- }) + "?");
2311
- }
2312
- return processed;
2313
- };
2314
- }
2315
- var contentValuePattern;
2316
- var contentValues;
2317
- var oldProcessStyleValue;
2318
- var msPattern;
2319
- var hyphenPattern;
2320
- var hyphenatedCache;
2321
- function handleInterpolation(mergedProps, registered, interpolation) {
2322
- if (interpolation == null) {
2323
- return "";
2324
- }
2325
- if (interpolation.__emotion_styles !== void 0) {
2326
- if (interpolation.toString() === "NO_COMPONENT_SELECTOR") {
2327
- throw new Error("Component selectors can only be used in conjunction with @emotion/babel-plugin.");
2328
- }
2329
- return interpolation;
2330
- }
2331
- switch (typeof interpolation) {
2332
- case "boolean": {
2333
- return "";
2334
- }
2335
- case "object": {
2336
- if (interpolation.anim === 1) {
2337
- cursor = {
2338
- name: interpolation.name,
2339
- styles: interpolation.styles,
2340
- next: cursor
2341
- };
2342
- return interpolation.name;
2343
- }
2344
- if (interpolation.styles !== void 0) {
2345
- var next2 = interpolation.next;
2346
- if (next2 !== void 0) {
2347
- while (next2 !== void 0) {
2348
- cursor = {
2349
- name: next2.name,
2350
- styles: next2.styles,
2351
- next: cursor
2352
- };
2353
- next2 = next2.next;
2354
- }
2355
- }
2356
- var styles = interpolation.styles + ";";
2357
- if (interpolation.map !== void 0) {
2358
- styles += interpolation.map;
2359
- }
2360
- return styles;
2361
- }
2362
- return createStringFromObject(mergedProps, registered, interpolation);
2363
- }
2364
- case "function": {
2365
- if (mergedProps !== void 0) {
2366
- var previousCursor = cursor;
2367
- var result = interpolation(mergedProps);
2368
- cursor = previousCursor;
2369
- return handleInterpolation(mergedProps, registered, result);
2370
- } else if (true) {
2371
- console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");
2372
- }
2373
- break;
2374
- }
2375
- case "string":
2376
- if (true) {
2377
- var matched = [];
2378
- var replaced = interpolation.replace(animationRegex, function(match2, p1, p2) {
2379
- var fakeVarName = "animation" + matched.length;
2380
- matched.push("const " + fakeVarName + " = keyframes`" + p2.replace(/^@keyframes animation-\w+/, "") + "`");
2381
- return "${" + fakeVarName + "}";
2382
- });
2383
- if (matched.length) {
2384
- console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n" + [].concat(matched, ["`" + replaced + "`"]).join("\n") + "\n\nYou should wrap it with `css` like this:\n\n" + ("css`" + replaced + "`"));
2385
- }
2386
- }
2387
- break;
2388
- }
2389
- if (registered == null) {
2390
- return interpolation;
2391
- }
2392
- var cached = registered[interpolation];
2393
- return cached !== void 0 ? cached : interpolation;
2394
- }
2395
- function createStringFromObject(mergedProps, registered, obj) {
2396
- var string = "";
2397
- if (Array.isArray(obj)) {
2398
- for (var i = 0; i < obj.length; i++) {
2399
- string += handleInterpolation(mergedProps, registered, obj[i]) + ";";
2400
- }
2401
- } else {
2402
- for (var _key in obj) {
2403
- var value = obj[_key];
2404
- if (typeof value !== "object") {
2405
- if (registered != null && registered[value] !== void 0) {
2406
- string += _key + "{" + registered[value] + "}";
2407
- } else if (isProcessableValue(value)) {
2408
- string += processStyleName(_key) + ":" + processStyleValue(_key, value) + ";";
2409
- }
2410
- } else {
2411
- if (_key === "NO_COMPONENT_SELECTOR" && true) {
2412
- throw new Error("Component selectors can only be used in conjunction with @emotion/babel-plugin.");
2413
- }
2414
- if (Array.isArray(value) && typeof value[0] === "string" && (registered == null || registered[value[0]] === void 0)) {
2415
- for (var _i = 0; _i < value.length; _i++) {
2416
- if (isProcessableValue(value[_i])) {
2417
- string += processStyleName(_key) + ":" + processStyleValue(_key, value[_i]) + ";";
2418
- }
2419
- }
2420
- } else {
2421
- var interpolated = handleInterpolation(mergedProps, registered, value);
2422
- switch (_key) {
2423
- case "animation":
2424
- case "animationName": {
2425
- string += processStyleName(_key) + ":" + interpolated + ";";
2426
- break;
2427
- }
2428
- default: {
2429
- if (_key === "undefined") {
2430
- console.error(UNDEFINED_AS_OBJECT_KEY_ERROR);
2431
- }
2432
- string += _key + "{" + interpolated + "}";
2433
- }
2434
- }
2435
- }
2436
- }
2437
- }
2438
- }
2439
- return string;
2440
- }
2441
- var labelPattern = /label:\s*([^\s;\n{]+)\s*(;|$)/g;
2442
- var sourceMapPattern;
2443
- if (true) {
2444
- sourceMapPattern = /\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g;
2445
- }
2446
- var cursor;
2447
- var serializeStyles = function serializeStyles2(args, registered, mergedProps) {
2448
- if (args.length === 1 && typeof args[0] === "object" && args[0] !== null && args[0].styles !== void 0) {
2449
- return args[0];
2450
- }
2451
- var stringMode = true;
2452
- var styles = "";
2453
- cursor = void 0;
2454
- var strings = args[0];
2455
- if (strings == null || strings.raw === void 0) {
2456
- stringMode = false;
2457
- styles += handleInterpolation(mergedProps, registered, strings);
2458
- } else {
2459
- if (strings[0] === void 0) {
2460
- console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR);
2461
- }
2462
- styles += strings[0];
2463
- }
2464
- for (var i = 1; i < args.length; i++) {
2465
- styles += handleInterpolation(mergedProps, registered, args[i]);
2466
- if (stringMode) {
2467
- if (strings[i] === void 0) {
2468
- console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR);
2469
- }
2470
- styles += strings[i];
2471
- }
2472
- }
2473
- var sourceMap;
2474
- if (true) {
2475
- styles = styles.replace(sourceMapPattern, function(match3) {
2476
- sourceMap = match3;
2477
- return "";
2478
- });
2479
- }
2480
- labelPattern.lastIndex = 0;
2481
- var identifierName = "";
2482
- var match2;
2483
- while ((match2 = labelPattern.exec(styles)) !== null) {
2484
- identifierName += "-" + match2[1];
2485
- }
2486
- var name = hash_browser_esm_default(styles) + identifierName;
2487
- if (true) {
2488
- return {
2489
- name,
2490
- styles,
2491
- map: sourceMap,
2492
- next: cursor,
2493
- toString: function toString() {
2494
- return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
2495
- }
2496
- };
2497
- }
2498
- return {
2499
- name,
2500
- styles,
2501
- next: cursor
2502
- };
2503
- };
2504
-
2505
- // node_modules/@emotion/react/dist/emotion-element-4fbd89c5.browser.esm.js
2506
- var hasOwnProperty = Object.prototype.hasOwnProperty;
2507
- var EmotionCacheContext = /* @__PURE__ */ createContext(typeof HTMLElement !== "undefined" ? /* @__PURE__ */ emotion_cache_browser_esm_default({
2508
- key: "css"
2509
- }) : null);
2510
- var CacheProvider = EmotionCacheContext.Provider;
2511
- var withEmotionCache = function withEmotionCache2(func) {
2512
- return /* @__PURE__ */ forwardRef(function(props, ref) {
2513
- var cache = useContext(EmotionCacheContext);
2514
- return func(props, cache, ref);
2515
- });
2516
- };
2517
- var ThemeContext = /* @__PURE__ */ createContext({});
2518
- var typePropName = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__";
2519
- var labelPropName = "__EMOTION_LABEL_PLEASE_DO_NOT_USE__";
2520
- var Emotion = /* @__PURE__ */ withEmotionCache(function(props, cache, ref) {
2521
- var cssProp = props.css;
2522
- if (typeof cssProp === "string" && cache.registered[cssProp] !== void 0) {
2523
- cssProp = cache.registered[cssProp];
2524
- }
2525
- var type = props[typePropName];
2526
- var registeredStyles = [cssProp];
2527
- var className = "";
2528
- if (typeof props.className === "string") {
2529
- className = getRegisteredStyles(cache.registered, registeredStyles, props.className);
2530
- } else if (props.className != null) {
2531
- className = props.className + " ";
2532
- }
2533
- var serialized = serializeStyles(registeredStyles, void 0, typeof cssProp === "function" || Array.isArray(cssProp) ? useContext(ThemeContext) : void 0);
2534
- if (serialized.name.indexOf("-") === -1) {
2535
- var labelFromStack = props[labelPropName];
2536
- if (labelFromStack) {
2537
- serialized = serializeStyles([serialized, "label:" + labelFromStack + ";"]);
2538
- }
2539
- }
2540
- var rules = insertStyles(cache, serialized, typeof type === "string");
2541
- className += cache.key + "-" + serialized.name;
2542
- var newProps = {};
2543
- for (var key in props) {
2544
- if (hasOwnProperty.call(props, key) && key !== "css" && key !== typePropName && key !== labelPropName) {
2545
- newProps[key] = props[key];
2546
- }
2547
- }
2548
- newProps.ref = ref;
2549
- newProps.className = className;
2550
- var ele = /* @__PURE__ */ createElement(type, newProps);
2551
- return ele;
2552
- });
2553
- if (true) {
2554
- Emotion.displayName = "EmotionCssPropInternal";
2555
- }
2556
-
2557
- // node_modules/@emotion/react/dist/emotion-react.browser.esm.js
2558
- var import_hoist_non_react_statics = __toModule(require_hoist_non_react_statics_cjs());
2559
- var pkg = {
2560
- name: "@emotion/react",
2561
- version: "11.1.5",
2562
- main: "dist/emotion-react.cjs.js",
2563
- module: "dist/emotion-react.esm.js",
2564
- browser: {
2565
- "./dist/emotion-react.cjs.js": "./dist/emotion-react.browser.cjs.js",
2566
- "./dist/emotion-react.esm.js": "./dist/emotion-react.browser.esm.js"
2567
- },
2568
- types: "types/index.d.ts",
2569
- files: [
2570
- "src",
2571
- "dist",
2572
- "jsx-runtime",
2573
- "jsx-dev-runtime",
2574
- "isolated-hoist-non-react-statics-do-not-use-this-in-your-code",
2575
- "types/*.d.ts",
2576
- "macro.js",
2577
- "macro.d.ts",
2578
- "macro.js.flow"
2579
- ],
2580
- sideEffects: false,
2581
- author: "mitchellhamilton <mitchell@mitchellhamilton.me>",
2582
- license: "MIT",
2583
- scripts: {
2584
- "test:typescript": "dtslint types"
2585
- },
2586
- dependencies: {
2587
- "@babel/runtime": "^7.7.2",
2588
- "@emotion/cache": "^11.1.3",
2589
- "@emotion/serialize": "^1.0.0",
2590
- "@emotion/sheet": "^1.0.1",
2591
- "@emotion/utils": "^1.0.0",
2592
- "@emotion/weak-memoize": "^0.2.5",
2593
- "hoist-non-react-statics": "^3.3.1"
2594
- },
2595
- peerDependencies: {
2596
- "@babel/core": "^7.0.0",
2597
- react: ">=16.8.0"
2598
- },
2599
- peerDependenciesMeta: {
2600
- "@babel/core": {
2601
- optional: true
2602
- },
2603
- "@types/react": {
2604
- optional: true
2605
- }
2606
- },
2607
- devDependencies: {
2608
- "@babel/core": "^7.7.2",
2609
- "@emotion/css": "11.1.3",
2610
- "@emotion/css-prettifier": "1.0.0",
2611
- "@emotion/server": "11.0.0",
2612
- "@emotion/styled": "11.1.5",
2613
- "@types/react": "^16.9.11",
2614
- dtslint: "^0.3.0",
2615
- "html-tag-names": "^1.1.2",
2616
- react: "16.14.0",
2617
- "svg-tag-names": "^1.1.1"
2618
- },
2619
- repository: "https://github.com/emotion-js/emotion/tree/master/packages/react",
2620
- publishConfig: {
2621
- access: "public"
2622
- },
2623
- "umd:main": "dist/emotion-react.umd.min.js",
2624
- preconstruct: {
2625
- entrypoints: [
2626
- "./index.js",
2627
- "./jsx-runtime.js",
2628
- "./jsx-dev-runtime.js",
2629
- "./isolated-hoist-non-react-statics-do-not-use-this-in-your-code.js"
2630
- ],
2631
- umdName: "emotionReact"
2632
- }
2633
- };
2634
- var warnedAboutCssPropForGlobal = false;
2635
- var Global = /* @__PURE__ */ withEmotionCache(function(props, cache) {
2636
- if (!warnedAboutCssPropForGlobal && (props.className || props.css)) {
2637
- console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?");
2638
- warnedAboutCssPropForGlobal = true;
2639
- }
2640
- var styles = props.styles;
2641
- var serialized = serializeStyles([styles], void 0, typeof styles === "function" || Array.isArray(styles) ? useContext2(ThemeContext) : void 0);
2642
- var sheetRef = useRef();
2643
- useLayoutEffect(function() {
2644
- var key = cache.key + "-global";
2645
- var sheet = new StyleSheet({
2646
- key,
2647
- nonce: cache.sheet.nonce,
2648
- container: cache.sheet.container,
2649
- speedy: cache.sheet.isSpeedy
2650
- });
2651
- var node2 = document.querySelector('style[data-emotion="' + key + " " + serialized.name + '"]');
2652
- if (cache.sheet.tags.length) {
2653
- sheet.before = cache.sheet.tags[0];
2654
- }
2655
- if (node2 !== null) {
2656
- sheet.hydrate([node2]);
2657
- }
2658
- sheetRef.current = sheet;
2659
- return function() {
2660
- sheet.flush();
2661
- };
2662
- }, [cache]);
2663
- useLayoutEffect(function() {
2664
- if (serialized.next !== void 0) {
2665
- insertStyles(cache, serialized.next, true);
2666
- }
2667
- var sheet = sheetRef.current;
2668
- if (sheet.tags.length) {
2669
- var element = sheet.tags[sheet.tags.length - 1].nextElementSibling;
2670
- sheet.before = element;
2671
- sheet.flush();
2672
- }
2673
- cache.insert("", serialized, sheet, false);
2674
- }, [cache, serialized.name]);
2675
- return null;
2676
- });
2677
- if (true) {
2678
- Global.displayName = "EmotionGlobal";
2679
- }
2680
- var classnames = function classnames2(args) {
2681
- var len = args.length;
2682
- var i = 0;
2683
- var cls = "";
2684
- for (; i < len; i++) {
2685
- var arg = args[i];
2686
- if (arg == null)
2687
- continue;
2688
- var toAdd = void 0;
2689
- switch (typeof arg) {
2690
- case "boolean":
2691
- break;
2692
- case "object": {
2693
- if (Array.isArray(arg)) {
2694
- toAdd = classnames2(arg);
2695
- } else {
2696
- if (arg.styles !== void 0 && arg.name !== void 0) {
2697
- console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component.");
2698
- }
2699
- toAdd = "";
2700
- for (var k in arg) {
2701
- if (arg[k] && k) {
2702
- toAdd && (toAdd += " ");
2703
- toAdd += k;
2704
- }
2705
- }
2706
- }
2707
- break;
2708
- }
2709
- default: {
2710
- toAdd = arg;
2711
- }
2712
- }
2713
- if (toAdd) {
2714
- cls && (cls += " ");
2715
- cls += toAdd;
2716
- }
2717
- }
2718
- return cls;
2719
- };
2720
- function merge3(registered, css3, className) {
2721
- var registeredStyles = [];
2722
- var rawClassName = getRegisteredStyles(registered, registeredStyles, className);
2723
- if (registeredStyles.length < 2) {
2724
- return className;
2725
- }
2726
- return rawClassName + css3(registeredStyles);
2727
- }
2728
- var ClassNames = /* @__PURE__ */ withEmotionCache(function(props, cache) {
2729
- var hasRendered = false;
2730
- var css3 = function css4() {
2731
- if (hasRendered && true) {
2732
- throw new Error("css can only be used during render");
2733
- }
2734
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
2735
- args[_key] = arguments[_key];
2736
- }
2737
- var serialized = serializeStyles(args, cache.registered);
2738
- {
2739
- insertStyles(cache, serialized, false);
2740
- }
2741
- return cache.key + "-" + serialized.name;
2742
- };
2743
- var cx = function cx2() {
2744
- if (hasRendered && true) {
2745
- throw new Error("cx can only be used during render");
2746
- }
2747
- for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
2748
- args[_key2] = arguments[_key2];
2749
- }
2750
- return merge3(cache.registered, css3, classnames(args));
2751
- };
2752
- var content = {
2753
- css: css3,
2754
- cx,
2755
- theme: useContext2(ThemeContext)
2756
- };
2757
- var ele = props.children(content);
2758
- hasRendered = true;
2759
- return ele;
2760
- });
2761
- if (true) {
2762
- ClassNames.displayName = "EmotionClassNames";
2763
- }
2764
- if (true) {
2765
- isBrowser3 = true;
2766
- isJest = typeof jest !== "undefined";
2767
- if (isBrowser3 && !isJest) {
2768
- globalContext = isBrowser3 ? window : global;
2769
- globalKey = "__EMOTION_REACT_" + pkg.version.split(".")[0] + "__";
2770
- if (globalContext[globalKey]) {
2771
- console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used.");
2772
- }
2773
- globalContext[globalKey] = true;
2774
- }
2775
- }
2776
- var isBrowser3;
2777
- var isJest;
2778
- var globalContext;
2779
- var globalKey;
2780
-
2781
- // node_modules/@emotion/styled/node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js
2782
- init_react_shim();
2783
- var isBrowser2 = true;
2784
- function getRegisteredStyles2(registered, registeredStyles, classNames) {
2785
- var rawClassName = "";
2786
- classNames.split(" ").forEach(function(className) {
2787
- if (registered[className] !== void 0) {
2788
- registeredStyles.push(registered[className] + ";");
2789
- } else {
2790
- rawClassName += className + " ";
2791
- }
2792
- });
2793
- return rawClassName;
2794
- }
2795
- var insertStyles3 = function insertStyles4(cache, serialized, isStringTag) {
2796
- var className = cache.key + "-" + serialized.name;
2797
- if ((isStringTag === false || isBrowser2 === false) && cache.registered[className] === void 0) {
2798
- cache.registered[className] = serialized.styles;
2799
- }
2800
- if (cache.inserted[serialized.name] === void 0) {
2801
- var current = serialized;
2802
- do {
2803
- var maybeStyles = cache.insert(serialized === current ? "." + className : "", current, cache.sheet, true);
2804
- current = current.next;
2805
- } while (current !== void 0);
2806
- }
2807
- };
2808
-
2809
- // node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.esm.js
2810
- var testOmitPropsOnStringTag = emotion_is_prop_valid_browser_esm_default;
2811
- var testOmitPropsOnComponent = function testOmitPropsOnComponent2(key) {
2812
- return key !== "theme";
2813
- };
2814
- var getDefaultShouldForwardProp = function getDefaultShouldForwardProp2(tag) {
2815
- return typeof tag === "string" && tag.charCodeAt(0) > 96 ? testOmitPropsOnStringTag : testOmitPropsOnComponent;
2816
- };
2817
- var composeShouldForwardProps = function composeShouldForwardProps2(tag, options, isReal) {
2818
- var shouldForwardProp;
2819
- if (options) {
2820
- var optionsShouldForwardProp = options.shouldForwardProp;
2821
- shouldForwardProp = tag.__emotion_forwardProp && optionsShouldForwardProp ? function(propName) {
2822
- return tag.__emotion_forwardProp(propName) && optionsShouldForwardProp(propName);
2823
- } : optionsShouldForwardProp;
2824
- }
2825
- if (typeof shouldForwardProp !== "function" && isReal) {
2826
- shouldForwardProp = tag.__emotion_forwardProp;
2827
- }
2828
- return shouldForwardProp;
2829
- };
2830
- var ILLEGAL_ESCAPE_SEQUENCE_ERROR2 = `You have illegal escape sequence in your template literal, most likely inside content's property value.
2831
- Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
2832
- You can read more about this here:
2833
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`;
2834
- var createStyled = function createStyled2(tag, options) {
2835
- if (true) {
2836
- if (tag === void 0) {
2837
- throw new Error("You are trying to create a styled element with an undefined component.\nYou may have forgotten to import it.");
2838
- }
2839
- }
2840
- var isReal = tag.__emotion_real === tag;
2841
- var baseTag = isReal && tag.__emotion_base || tag;
2842
- var identifierName;
2843
- var targetClassName;
2844
- if (options !== void 0) {
2845
- identifierName = options.label;
2846
- targetClassName = options.target;
2847
- }
2848
- var shouldForwardProp = composeShouldForwardProps(tag, options, isReal);
2849
- var defaultShouldForwardProp = shouldForwardProp || getDefaultShouldForwardProp(baseTag);
2850
- var shouldUseAs = !defaultShouldForwardProp("as");
2851
- return function() {
2852
- var args = arguments;
2853
- var styles = isReal && tag.__emotion_styles !== void 0 ? tag.__emotion_styles.slice(0) : [];
2854
- if (identifierName !== void 0) {
2855
- styles.push("label:" + identifierName + ";");
2856
- }
2857
- if (args[0] == null || args[0].raw === void 0) {
2858
- styles.push.apply(styles, args);
2859
- } else {
2860
- if (args[0][0] === void 0) {
2861
- console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR2);
2862
- }
2863
- styles.push(args[0][0]);
2864
- var len = args.length;
2865
- var i = 1;
2866
- for (; i < len; i++) {
2867
- if (args[0][i] === void 0) {
2868
- console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR2);
2869
- }
2870
- styles.push(args[i], args[0][i]);
2871
- }
2872
- }
2873
- var Styled = withEmotionCache(function(props, cache, ref) {
2874
- var finalTag = shouldUseAs && props.as || baseTag;
2875
- var className = "";
2876
- var classInterpolations = [];
2877
- var mergedProps = props;
2878
- if (props.theme == null) {
2879
- mergedProps = {};
2880
- for (var key in props) {
2881
- mergedProps[key] = props[key];
2882
- }
2883
- mergedProps.theme = useContext3(ThemeContext);
2884
- }
2885
- if (typeof props.className === "string") {
2886
- className = getRegisteredStyles2(cache.registered, classInterpolations, props.className);
2887
- } else if (props.className != null) {
2888
- className = props.className + " ";
2889
- }
2890
- var serialized = serializeStyles(styles.concat(classInterpolations), cache.registered, mergedProps);
2891
- var rules = insertStyles3(cache, serialized, typeof finalTag === "string");
2892
- className += cache.key + "-" + serialized.name;
2893
- if (targetClassName !== void 0) {
2894
- className += " " + targetClassName;
2895
- }
2896
- var finalShouldForwardProp = shouldUseAs && shouldForwardProp === void 0 ? getDefaultShouldForwardProp(finalTag) : defaultShouldForwardProp;
2897
- var newProps = {};
2898
- for (var _key in props) {
2899
- if (shouldUseAs && _key === "as")
2900
- continue;
2901
- if (finalShouldForwardProp(_key)) {
2902
- newProps[_key] = props[_key];
2903
- }
2904
- }
2905
- newProps.className = className;
2906
- newProps.ref = ref;
2907
- var ele = /* @__PURE__ */ createElement3(finalTag, newProps);
2908
- return ele;
2909
- });
2910
- Styled.displayName = identifierName !== void 0 ? identifierName : "Styled(" + (typeof baseTag === "string" ? baseTag : baseTag.displayName || baseTag.name || "Component") + ")";
2911
- Styled.defaultProps = tag.defaultProps;
2912
- Styled.__emotion_real = Styled;
2913
- Styled.__emotion_base = baseTag;
2914
- Styled.__emotion_styles = styles;
2915
- Styled.__emotion_forwardProp = shouldForwardProp;
2916
- Object.defineProperty(Styled, "toString", {
2917
- value: function value() {
2918
- if (targetClassName === void 0 && true) {
2919
- return "NO_COMPONENT_SELECTOR";
2920
- }
2921
- return "." + targetClassName;
2922
- }
2923
- });
2924
- Styled.withComponent = function(nextTag, nextOptions) {
2925
- return createStyled2(nextTag, _extends2({}, options, nextOptions, {
2926
- shouldForwardProp: composeShouldForwardProps(Styled, nextOptions, true)
2927
- })).apply(void 0, styles);
2928
- };
2929
- return Styled;
2930
- };
2931
- };
2932
- var emotion_styled_base_browser_esm_default = createStyled;
2933
-
2934
- // node_modules/@emotion/styled/dist/emotion-styled.browser.esm.js
2935
- var tags = [
2936
- "a",
2937
- "abbr",
2938
- "address",
2939
- "area",
2940
- "article",
2941
- "aside",
2942
- "audio",
2943
- "b",
2944
- "base",
2945
- "bdi",
2946
- "bdo",
2947
- "big",
2948
- "blockquote",
2949
- "body",
2950
- "br",
2951
- "button",
2952
- "canvas",
2953
- "caption",
2954
- "cite",
2955
- "code",
2956
- "col",
2957
- "colgroup",
2958
- "data",
2959
- "datalist",
2960
- "dd",
2961
- "del",
2962
- "details",
2963
- "dfn",
2964
- "dialog",
2965
- "div",
2966
- "dl",
2967
- "dt",
2968
- "em",
2969
- "embed",
2970
- "fieldset",
2971
- "figcaption",
2972
- "figure",
2973
- "footer",
2974
- "form",
2975
- "h1",
2976
- "h2",
2977
- "h3",
2978
- "h4",
2979
- "h5",
2980
- "h6",
2981
- "head",
2982
- "header",
2983
- "hgroup",
2984
- "hr",
2985
- "html",
2986
- "i",
2987
- "iframe",
2988
- "img",
2989
- "input",
2990
- "ins",
2991
- "kbd",
2992
- "keygen",
2993
- "label",
2994
- "legend",
2995
- "li",
2996
- "link",
2997
- "main",
2998
- "map",
2999
- "mark",
3000
- "marquee",
3001
- "menu",
3002
- "menuitem",
3003
- "meta",
3004
- "meter",
3005
- "nav",
3006
- "noscript",
3007
- "object",
3008
- "ol",
3009
- "optgroup",
3010
- "option",
3011
- "output",
3012
- "p",
3013
- "param",
3014
- "picture",
3015
- "pre",
3016
- "progress",
3017
- "q",
3018
- "rp",
3019
- "rt",
3020
- "ruby",
3021
- "s",
3022
- "samp",
3023
- "script",
3024
- "section",
3025
- "select",
3026
- "small",
3027
- "source",
3028
- "span",
3029
- "strong",
3030
- "style",
3031
- "sub",
3032
- "summary",
3033
- "sup",
3034
- "table",
3035
- "tbody",
3036
- "td",
3037
- "textarea",
3038
- "tfoot",
3039
- "th",
3040
- "thead",
3041
- "time",
3042
- "title",
3043
- "tr",
3044
- "track",
3045
- "u",
3046
- "ul",
3047
- "var",
3048
- "video",
3049
- "wbr",
3050
- "circle",
3051
- "clipPath",
3052
- "defs",
3053
- "ellipse",
3054
- "foreignObject",
3055
- "g",
3056
- "image",
3057
- "line",
3058
- "linearGradient",
3059
- "mask",
3060
- "path",
3061
- "pattern",
3062
- "polygon",
3063
- "polyline",
3064
- "radialGradient",
3065
- "rect",
3066
- "stop",
3067
- "svg",
3068
- "text",
3069
- "tspan"
3070
- ];
3071
- var newStyled = emotion_styled_base_browser_esm_default.bind();
3072
- tags.forEach(function(tagName) {
3073
- newStyled[tagName] = newStyled(tagName);
3074
- });
3075
- var emotion_styled_browser_esm_default = newStyled;
3076
3
 
3077
4
  // libs/shared/ui-system/src/lib/Form/Description/Description.tsx
5
+ import {variant} from "https://jspm.dev/@class101/styled-system@5.3.1";
6
+ import styled from "https://jspm.dev/@emotion/styled@11.3.0";
3078
7
  import {Caption} from "../../Typography/Caption/index.js";
3079
8
  var stateVariants = {
3080
9
  default: {
@@ -3087,23 +16,10 @@ var stateVariants = {
3087
16
  color: "pinkRed.600"
3088
17
  }
3089
18
  };
3090
- var Description = emotion_styled_browser_esm_default(({message, ...restProps}) => /* @__PURE__ */ React.createElement(Caption, {
19
+ var Description = styled(({message, ...restProps}) => /* @__PURE__ */ React.createElement(Caption, {
3091
20
  level: 1,
3092
21
  ...restProps
3093
22
  }, message))(variant({prop: "state", variants: stateVariants}));
3094
23
  export {
3095
24
  Description
3096
25
  };
3097
- /*
3098
- object-assign
3099
- (c) Sindre Sorhus
3100
- @license MIT
3101
- */
3102
- /** @license React v16.13.1
3103
- * react-is.development.js
3104
- *
3105
- * Copyright (c) Facebook, Inc. and its affiliates.
3106
- *
3107
- * This source code is licensed under the MIT license found in the
3108
- * LICENSE file in the root directory of this source tree.
3109
- */