@saas-ui/storybook-addon 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +497 -0
- package/README.md +97 -0
- package/dist/chunk-E3MMX4DM.js +4973 -0
- package/dist/chunk-GII4NPN2.js +81 -0
- package/dist/chunk-HSBRF2QZ.js +18 -0
- package/dist/chunk-N4JZ67DU.js +26 -0
- package/dist/chunk-NOGSFSIA.js +52 -0
- package/dist/chunk-QNOLFHPG.js +63 -0
- package/dist/chunk-SGM3YTWS.js +82 -0
- package/dist/chunk-SVHNULTN.js +24 -0
- package/dist/chunk-UK7U2PBM.js +70 -0
- package/dist/constants.cjs +46 -0
- package/dist/constants.d.ts +11 -0
- package/dist/constants.js +15 -0
- package/dist/feature/arg-types.cjs +76 -0
- package/dist/feature/arg-types.d.ts +46 -0
- package/dist/feature/arg-types.js +7 -0
- package/dist/feature/color-mode/ColorModeSync.cjs +57 -0
- package/dist/feature/color-mode/ColorModeSync.d.ts +6 -0
- package/dist/feature/color-mode/ColorModeSync.js +8 -0
- package/dist/feature/color-mode/ColorModeTool.cjs +95 -0
- package/dist/feature/color-mode/ColorModeTool.d.ts +6 -0
- package/dist/feature/color-mode/ColorModeTool.js +8 -0
- package/dist/feature/color-mode/ThemeTool.cjs +5038 -0
- package/dist/feature/color-mode/ThemeTool.d.ts +6 -0
- package/dist/feature/color-mode/ThemeTool.js +8 -0
- package/dist/feature/decorator/ChakraProviderDecorator.cjs +168 -0
- package/dist/feature/decorator/ChakraProviderDecorator.d.ts +5 -0
- package/dist/feature/decorator/ChakraProviderDecorator.js +10 -0
- package/dist/feature/direction/DirectionTool.cjs +127 -0
- package/dist/feature/direction/DirectionTool.d.ts +6 -0
- package/dist/feature/direction/DirectionTool.js +8 -0
- package/dist/feature/direction/useDirection.cjs +59 -0
- package/dist/feature/direction/useDirection.d.ts +6 -0
- package/dist/feature/direction/useDirection.js +8 -0
- package/dist/index.cjs +99 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +19 -0
- package/dist/preset/decorators.cjs +173 -0
- package/dist/preset/decorators.d.ts +3 -0
- package/dist/preset/decorators.js +13 -0
- package/dist/preset/index.cjs +60 -0
- package/dist/preset/index.d.ts +5 -0
- package/dist/preset/index.js +27 -0
- package/dist/preset/register.cjs +5175 -0
- package/dist/preset/register.d.ts +2 -0
- package/dist/preset/register.js +40 -0
- package/package.json +120 -0
- package/theming-arg-types.png +0 -0
@@ -0,0 +1,4973 @@
|
|
1
|
+
import {
|
2
|
+
ADDON_ID,
|
3
|
+
EVENTS
|
4
|
+
} from "./chunk-HSBRF2QZ.js";
|
5
|
+
import {
|
6
|
+
__commonJS,
|
7
|
+
__objRest,
|
8
|
+
__spreadProps,
|
9
|
+
__spreadValues,
|
10
|
+
__toESM
|
11
|
+
} from "./chunk-UK7U2PBM.js";
|
12
|
+
|
13
|
+
// ../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js
|
14
|
+
var require_react_is_production_min = __commonJS({
|
15
|
+
"../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js"(exports) {
|
16
|
+
"use strict";
|
17
|
+
var b = "function" === typeof Symbol && Symbol.for;
|
18
|
+
var c = b ? Symbol.for("react.element") : 60103;
|
19
|
+
var d = b ? Symbol.for("react.portal") : 60106;
|
20
|
+
var e = b ? Symbol.for("react.fragment") : 60107;
|
21
|
+
var f = b ? Symbol.for("react.strict_mode") : 60108;
|
22
|
+
var g = b ? Symbol.for("react.profiler") : 60114;
|
23
|
+
var h = b ? Symbol.for("react.provider") : 60109;
|
24
|
+
var k = b ? Symbol.for("react.context") : 60110;
|
25
|
+
var l = b ? Symbol.for("react.async_mode") : 60111;
|
26
|
+
var m = b ? Symbol.for("react.concurrent_mode") : 60111;
|
27
|
+
var n = b ? Symbol.for("react.forward_ref") : 60112;
|
28
|
+
var p = b ? Symbol.for("react.suspense") : 60113;
|
29
|
+
var q = b ? Symbol.for("react.suspense_list") : 60120;
|
30
|
+
var r = b ? Symbol.for("react.memo") : 60115;
|
31
|
+
var t2 = b ? Symbol.for("react.lazy") : 60116;
|
32
|
+
var v = b ? Symbol.for("react.block") : 60121;
|
33
|
+
var w = b ? Symbol.for("react.fundamental") : 60117;
|
34
|
+
var x = b ? Symbol.for("react.responder") : 60118;
|
35
|
+
var y = b ? Symbol.for("react.scope") : 60119;
|
36
|
+
function z(a) {
|
37
|
+
if ("object" === typeof a && null !== a) {
|
38
|
+
var u = a.$$typeof;
|
39
|
+
switch (u) {
|
40
|
+
case c:
|
41
|
+
switch (a = a.type, a) {
|
42
|
+
case l:
|
43
|
+
case m:
|
44
|
+
case e:
|
45
|
+
case g:
|
46
|
+
case f:
|
47
|
+
case p:
|
48
|
+
return a;
|
49
|
+
default:
|
50
|
+
switch (a = a && a.$$typeof, a) {
|
51
|
+
case k:
|
52
|
+
case n:
|
53
|
+
case t2:
|
54
|
+
case r:
|
55
|
+
case h:
|
56
|
+
return a;
|
57
|
+
default:
|
58
|
+
return u;
|
59
|
+
}
|
60
|
+
}
|
61
|
+
case d:
|
62
|
+
return u;
|
63
|
+
}
|
64
|
+
}
|
65
|
+
}
|
66
|
+
function A(a) {
|
67
|
+
return z(a) === m;
|
68
|
+
}
|
69
|
+
exports.AsyncMode = l;
|
70
|
+
exports.ConcurrentMode = m;
|
71
|
+
exports.ContextConsumer = k;
|
72
|
+
exports.ContextProvider = h;
|
73
|
+
exports.Element = c;
|
74
|
+
exports.ForwardRef = n;
|
75
|
+
exports.Fragment = e;
|
76
|
+
exports.Lazy = t2;
|
77
|
+
exports.Memo = r;
|
78
|
+
exports.Portal = d;
|
79
|
+
exports.Profiler = g;
|
80
|
+
exports.StrictMode = f;
|
81
|
+
exports.Suspense = p;
|
82
|
+
exports.isAsyncMode = function(a) {
|
83
|
+
return A(a) || z(a) === l;
|
84
|
+
};
|
85
|
+
exports.isConcurrentMode = A;
|
86
|
+
exports.isContextConsumer = function(a) {
|
87
|
+
return z(a) === k;
|
88
|
+
};
|
89
|
+
exports.isContextProvider = function(a) {
|
90
|
+
return z(a) === h;
|
91
|
+
};
|
92
|
+
exports.isElement = function(a) {
|
93
|
+
return "object" === typeof a && null !== a && a.$$typeof === c;
|
94
|
+
};
|
95
|
+
exports.isForwardRef = function(a) {
|
96
|
+
return z(a) === n;
|
97
|
+
};
|
98
|
+
exports.isFragment = function(a) {
|
99
|
+
return z(a) === e;
|
100
|
+
};
|
101
|
+
exports.isLazy = function(a) {
|
102
|
+
return z(a) === t2;
|
103
|
+
};
|
104
|
+
exports.isMemo = function(a) {
|
105
|
+
return z(a) === r;
|
106
|
+
};
|
107
|
+
exports.isPortal = function(a) {
|
108
|
+
return z(a) === d;
|
109
|
+
};
|
110
|
+
exports.isProfiler = function(a) {
|
111
|
+
return z(a) === g;
|
112
|
+
};
|
113
|
+
exports.isStrictMode = function(a) {
|
114
|
+
return z(a) === f;
|
115
|
+
};
|
116
|
+
exports.isSuspense = function(a) {
|
117
|
+
return z(a) === p;
|
118
|
+
};
|
119
|
+
exports.isValidElementType = function(a) {
|
120
|
+
return "string" === typeof a || "function" === typeof a || a === e || a === m || a === g || a === f || a === p || a === q || "object" === typeof a && null !== a && (a.$$typeof === t2 || a.$$typeof === r || a.$$typeof === h || a.$$typeof === k || a.$$typeof === n || a.$$typeof === w || a.$$typeof === x || a.$$typeof === y || a.$$typeof === v);
|
121
|
+
};
|
122
|
+
exports.typeOf = z;
|
123
|
+
}
|
124
|
+
});
|
125
|
+
|
126
|
+
// ../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js
|
127
|
+
var require_react_is_development = __commonJS({
|
128
|
+
"../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js"(exports) {
|
129
|
+
"use strict";
|
130
|
+
if (process.env.NODE_ENV !== "production") {
|
131
|
+
(function() {
|
132
|
+
"use strict";
|
133
|
+
var hasSymbol = typeof Symbol === "function" && Symbol.for;
|
134
|
+
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for("react.element") : 60103;
|
135
|
+
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for("react.portal") : 60106;
|
136
|
+
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for("react.fragment") : 60107;
|
137
|
+
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for("react.strict_mode") : 60108;
|
138
|
+
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for("react.profiler") : 60114;
|
139
|
+
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for("react.provider") : 60109;
|
140
|
+
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for("react.context") : 60110;
|
141
|
+
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for("react.async_mode") : 60111;
|
142
|
+
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for("react.concurrent_mode") : 60111;
|
143
|
+
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for("react.forward_ref") : 60112;
|
144
|
+
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for("react.suspense") : 60113;
|
145
|
+
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for("react.suspense_list") : 60120;
|
146
|
+
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for("react.memo") : 60115;
|
147
|
+
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for("react.lazy") : 60116;
|
148
|
+
var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for("react.block") : 60121;
|
149
|
+
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for("react.fundamental") : 60117;
|
150
|
+
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for("react.responder") : 60118;
|
151
|
+
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for("react.scope") : 60119;
|
152
|
+
function isValidElementType(type) {
|
153
|
+
return typeof type === "string" || typeof type === "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
154
|
+
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);
|
155
|
+
}
|
156
|
+
function typeOf(object) {
|
157
|
+
if (typeof object === "object" && object !== null) {
|
158
|
+
var $$typeof = object.$$typeof;
|
159
|
+
switch ($$typeof) {
|
160
|
+
case REACT_ELEMENT_TYPE:
|
161
|
+
var type = object.type;
|
162
|
+
switch (type) {
|
163
|
+
case REACT_ASYNC_MODE_TYPE:
|
164
|
+
case REACT_CONCURRENT_MODE_TYPE:
|
165
|
+
case REACT_FRAGMENT_TYPE:
|
166
|
+
case REACT_PROFILER_TYPE:
|
167
|
+
case REACT_STRICT_MODE_TYPE:
|
168
|
+
case REACT_SUSPENSE_TYPE:
|
169
|
+
return type;
|
170
|
+
default:
|
171
|
+
var $$typeofType = type && type.$$typeof;
|
172
|
+
switch ($$typeofType) {
|
173
|
+
case REACT_CONTEXT_TYPE:
|
174
|
+
case REACT_FORWARD_REF_TYPE:
|
175
|
+
case REACT_LAZY_TYPE:
|
176
|
+
case REACT_MEMO_TYPE:
|
177
|
+
case REACT_PROVIDER_TYPE:
|
178
|
+
return $$typeofType;
|
179
|
+
default:
|
180
|
+
return $$typeof;
|
181
|
+
}
|
182
|
+
}
|
183
|
+
case REACT_PORTAL_TYPE:
|
184
|
+
return $$typeof;
|
185
|
+
}
|
186
|
+
}
|
187
|
+
return void 0;
|
188
|
+
}
|
189
|
+
var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
190
|
+
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
191
|
+
var ContextConsumer = REACT_CONTEXT_TYPE;
|
192
|
+
var ContextProvider = REACT_PROVIDER_TYPE;
|
193
|
+
var Element2 = REACT_ELEMENT_TYPE;
|
194
|
+
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
195
|
+
var Fragment4 = REACT_FRAGMENT_TYPE;
|
196
|
+
var Lazy = REACT_LAZY_TYPE;
|
197
|
+
var Memo = REACT_MEMO_TYPE;
|
198
|
+
var Portal = REACT_PORTAL_TYPE;
|
199
|
+
var Profiler = REACT_PROFILER_TYPE;
|
200
|
+
var StrictMode = REACT_STRICT_MODE_TYPE;
|
201
|
+
var Suspense = REACT_SUSPENSE_TYPE;
|
202
|
+
var hasWarnedAboutDeprecatedIsAsyncMode = false;
|
203
|
+
function isAsyncMode(object) {
|
204
|
+
{
|
205
|
+
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
206
|
+
hasWarnedAboutDeprecatedIsAsyncMode = true;
|
207
|
+
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.");
|
208
|
+
}
|
209
|
+
}
|
210
|
+
return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
|
211
|
+
}
|
212
|
+
function isConcurrentMode(object) {
|
213
|
+
return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
|
214
|
+
}
|
215
|
+
function isContextConsumer(object) {
|
216
|
+
return typeOf(object) === REACT_CONTEXT_TYPE;
|
217
|
+
}
|
218
|
+
function isContextProvider(object) {
|
219
|
+
return typeOf(object) === REACT_PROVIDER_TYPE;
|
220
|
+
}
|
221
|
+
function isElement(object) {
|
222
|
+
return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
223
|
+
}
|
224
|
+
function isForwardRef(object) {
|
225
|
+
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
226
|
+
}
|
227
|
+
function isFragment(object) {
|
228
|
+
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
229
|
+
}
|
230
|
+
function isLazy(object) {
|
231
|
+
return typeOf(object) === REACT_LAZY_TYPE;
|
232
|
+
}
|
233
|
+
function isMemo(object) {
|
234
|
+
return typeOf(object) === REACT_MEMO_TYPE;
|
235
|
+
}
|
236
|
+
function isPortal(object) {
|
237
|
+
return typeOf(object) === REACT_PORTAL_TYPE;
|
238
|
+
}
|
239
|
+
function isProfiler(object) {
|
240
|
+
return typeOf(object) === REACT_PROFILER_TYPE;
|
241
|
+
}
|
242
|
+
function isStrictMode(object) {
|
243
|
+
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
244
|
+
}
|
245
|
+
function isSuspense(object) {
|
246
|
+
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
247
|
+
}
|
248
|
+
exports.AsyncMode = AsyncMode;
|
249
|
+
exports.ConcurrentMode = ConcurrentMode;
|
250
|
+
exports.ContextConsumer = ContextConsumer;
|
251
|
+
exports.ContextProvider = ContextProvider;
|
252
|
+
exports.Element = Element2;
|
253
|
+
exports.ForwardRef = ForwardRef;
|
254
|
+
exports.Fragment = Fragment4;
|
255
|
+
exports.Lazy = Lazy;
|
256
|
+
exports.Memo = Memo;
|
257
|
+
exports.Portal = Portal;
|
258
|
+
exports.Profiler = Profiler;
|
259
|
+
exports.StrictMode = StrictMode;
|
260
|
+
exports.Suspense = Suspense;
|
261
|
+
exports.isAsyncMode = isAsyncMode;
|
262
|
+
exports.isConcurrentMode = isConcurrentMode;
|
263
|
+
exports.isContextConsumer = isContextConsumer;
|
264
|
+
exports.isContextProvider = isContextProvider;
|
265
|
+
exports.isElement = isElement;
|
266
|
+
exports.isForwardRef = isForwardRef;
|
267
|
+
exports.isFragment = isFragment;
|
268
|
+
exports.isLazy = isLazy;
|
269
|
+
exports.isMemo = isMemo;
|
270
|
+
exports.isPortal = isPortal;
|
271
|
+
exports.isProfiler = isProfiler;
|
272
|
+
exports.isStrictMode = isStrictMode;
|
273
|
+
exports.isSuspense = isSuspense;
|
274
|
+
exports.isValidElementType = isValidElementType;
|
275
|
+
exports.typeOf = typeOf;
|
276
|
+
})();
|
277
|
+
}
|
278
|
+
}
|
279
|
+
});
|
280
|
+
|
281
|
+
// ../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js
|
282
|
+
var require_react_is = __commonJS({
|
283
|
+
"../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js"(exports, module) {
|
284
|
+
"use strict";
|
285
|
+
if (process.env.NODE_ENV === "production") {
|
286
|
+
module.exports = require_react_is_production_min();
|
287
|
+
} else {
|
288
|
+
module.exports = require_react_is_development();
|
289
|
+
}
|
290
|
+
}
|
291
|
+
});
|
292
|
+
|
293
|
+
// ../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js
|
294
|
+
var require_hoist_non_react_statics_cjs = __commonJS({
|
295
|
+
"../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js"(exports, module) {
|
296
|
+
"use strict";
|
297
|
+
var reactIs = require_react_is();
|
298
|
+
var REACT_STATICS = {
|
299
|
+
childContextTypes: true,
|
300
|
+
contextType: true,
|
301
|
+
contextTypes: true,
|
302
|
+
defaultProps: true,
|
303
|
+
displayName: true,
|
304
|
+
getDefaultProps: true,
|
305
|
+
getDerivedStateFromError: true,
|
306
|
+
getDerivedStateFromProps: true,
|
307
|
+
mixins: true,
|
308
|
+
propTypes: true,
|
309
|
+
type: true
|
310
|
+
};
|
311
|
+
var KNOWN_STATICS = {
|
312
|
+
name: true,
|
313
|
+
length: true,
|
314
|
+
prototype: true,
|
315
|
+
caller: true,
|
316
|
+
callee: true,
|
317
|
+
arguments: true,
|
318
|
+
arity: true
|
319
|
+
};
|
320
|
+
var FORWARD_REF_STATICS = {
|
321
|
+
"$$typeof": true,
|
322
|
+
render: true,
|
323
|
+
defaultProps: true,
|
324
|
+
displayName: true,
|
325
|
+
propTypes: true
|
326
|
+
};
|
327
|
+
var MEMO_STATICS = {
|
328
|
+
"$$typeof": true,
|
329
|
+
compare: true,
|
330
|
+
defaultProps: true,
|
331
|
+
displayName: true,
|
332
|
+
propTypes: true,
|
333
|
+
type: true
|
334
|
+
};
|
335
|
+
var TYPE_STATICS = {};
|
336
|
+
TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
|
337
|
+
TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
|
338
|
+
function getStatics(component) {
|
339
|
+
if (reactIs.isMemo(component)) {
|
340
|
+
return MEMO_STATICS;
|
341
|
+
}
|
342
|
+
return TYPE_STATICS[component["$$typeof"]] || REACT_STATICS;
|
343
|
+
}
|
344
|
+
var defineProperty = Object.defineProperty;
|
345
|
+
var getOwnPropertyNames = Object.getOwnPropertyNames;
|
346
|
+
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
347
|
+
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
348
|
+
var getPrototypeOf = Object.getPrototypeOf;
|
349
|
+
var objectPrototype = Object.prototype;
|
350
|
+
function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
|
351
|
+
if (typeof sourceComponent !== "string") {
|
352
|
+
if (objectPrototype) {
|
353
|
+
var inheritedComponent = getPrototypeOf(sourceComponent);
|
354
|
+
if (inheritedComponent && inheritedComponent !== objectPrototype) {
|
355
|
+
hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);
|
356
|
+
}
|
357
|
+
}
|
358
|
+
var keys = getOwnPropertyNames(sourceComponent);
|
359
|
+
if (getOwnPropertySymbols) {
|
360
|
+
keys = keys.concat(getOwnPropertySymbols(sourceComponent));
|
361
|
+
}
|
362
|
+
var targetStatics = getStatics(targetComponent);
|
363
|
+
var sourceStatics = getStatics(sourceComponent);
|
364
|
+
for (var i = 0; i < keys.length; ++i) {
|
365
|
+
var key = keys[i];
|
366
|
+
if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {
|
367
|
+
var descriptor = getOwnPropertyDescriptor(sourceComponent, key);
|
368
|
+
try {
|
369
|
+
defineProperty(targetComponent, key, descriptor);
|
370
|
+
} catch (e) {
|
371
|
+
}
|
372
|
+
}
|
373
|
+
}
|
374
|
+
}
|
375
|
+
return targetComponent;
|
376
|
+
}
|
377
|
+
module.exports = hoistNonReactStatics;
|
378
|
+
}
|
379
|
+
});
|
380
|
+
|
381
|
+
// ../../node_modules/@babel/runtime/helpers/extends.js
|
382
|
+
var require_extends = __commonJS({
|
383
|
+
"../../node_modules/@babel/runtime/helpers/extends.js"(exports, module) {
|
384
|
+
function _extends2() {
|
385
|
+
module.exports = _extends2 = Object.assign ? Object.assign.bind() : function(target) {
|
386
|
+
for (var i = 1; i < arguments.length; i++) {
|
387
|
+
var source = arguments[i];
|
388
|
+
for (var key in source) {
|
389
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
390
|
+
target[key] = source[key];
|
391
|
+
}
|
392
|
+
}
|
393
|
+
}
|
394
|
+
return target;
|
395
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
396
|
+
return _extends2.apply(this, arguments);
|
397
|
+
}
|
398
|
+
module.exports = _extends2, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
399
|
+
}
|
400
|
+
});
|
401
|
+
|
402
|
+
// ../../node_modules/lodash.mergewith/index.js
|
403
|
+
var require_lodash = __commonJS({
|
404
|
+
"../../node_modules/lodash.mergewith/index.js"(exports, module) {
|
405
|
+
var LARGE_ARRAY_SIZE = 200;
|
406
|
+
var HASH_UNDEFINED = "__lodash_hash_undefined__";
|
407
|
+
var HOT_COUNT = 800;
|
408
|
+
var HOT_SPAN = 16;
|
409
|
+
var MAX_SAFE_INTEGER = 9007199254740991;
|
410
|
+
var argsTag = "[object Arguments]";
|
411
|
+
var arrayTag = "[object Array]";
|
412
|
+
var asyncTag = "[object AsyncFunction]";
|
413
|
+
var boolTag = "[object Boolean]";
|
414
|
+
var dateTag = "[object Date]";
|
415
|
+
var errorTag = "[object Error]";
|
416
|
+
var funcTag = "[object Function]";
|
417
|
+
var genTag = "[object GeneratorFunction]";
|
418
|
+
var mapTag = "[object Map]";
|
419
|
+
var numberTag = "[object Number]";
|
420
|
+
var nullTag = "[object Null]";
|
421
|
+
var objectTag = "[object Object]";
|
422
|
+
var proxyTag = "[object Proxy]";
|
423
|
+
var regexpTag = "[object RegExp]";
|
424
|
+
var setTag = "[object Set]";
|
425
|
+
var stringTag = "[object String]";
|
426
|
+
var undefinedTag = "[object Undefined]";
|
427
|
+
var weakMapTag = "[object WeakMap]";
|
428
|
+
var arrayBufferTag = "[object ArrayBuffer]";
|
429
|
+
var dataViewTag = "[object DataView]";
|
430
|
+
var float32Tag = "[object Float32Array]";
|
431
|
+
var float64Tag = "[object Float64Array]";
|
432
|
+
var int8Tag = "[object Int8Array]";
|
433
|
+
var int16Tag = "[object Int16Array]";
|
434
|
+
var int32Tag = "[object Int32Array]";
|
435
|
+
var uint8Tag = "[object Uint8Array]";
|
436
|
+
var uint8ClampedTag = "[object Uint8ClampedArray]";
|
437
|
+
var uint16Tag = "[object Uint16Array]";
|
438
|
+
var uint32Tag = "[object Uint32Array]";
|
439
|
+
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
|
440
|
+
var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
441
|
+
var reIsUint = /^(?:0|[1-9]\d*)$/;
|
442
|
+
var typedArrayTags = {};
|
443
|
+
typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true;
|
444
|
+
typedArrayTags[argsTag] = typedArrayTags[arrayTag] = typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = typedArrayTags[errorTag] = typedArrayTags[funcTag] = typedArrayTags[mapTag] = typedArrayTags[numberTag] = typedArrayTags[objectTag] = typedArrayTags[regexpTag] = typedArrayTags[setTag] = typedArrayTags[stringTag] = typedArrayTags[weakMapTag] = false;
|
445
|
+
var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
|
446
|
+
var freeSelf = typeof self == "object" && self && self.Object === Object && self;
|
447
|
+
var root = freeGlobal || freeSelf || Function("return this")();
|
448
|
+
var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports;
|
449
|
+
var freeModule = freeExports && typeof module == "object" && module && !module.nodeType && module;
|
450
|
+
var moduleExports = freeModule && freeModule.exports === freeExports;
|
451
|
+
var freeProcess = moduleExports && freeGlobal.process;
|
452
|
+
var nodeUtil = function() {
|
453
|
+
try {
|
454
|
+
var types = freeModule && freeModule.require && freeModule.require("util").types;
|
455
|
+
if (types) {
|
456
|
+
return types;
|
457
|
+
}
|
458
|
+
return freeProcess && freeProcess.binding && freeProcess.binding("util");
|
459
|
+
} catch (e) {
|
460
|
+
}
|
461
|
+
}();
|
462
|
+
var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
|
463
|
+
function apply(func, thisArg, args) {
|
464
|
+
switch (args.length) {
|
465
|
+
case 0:
|
466
|
+
return func.call(thisArg);
|
467
|
+
case 1:
|
468
|
+
return func.call(thisArg, args[0]);
|
469
|
+
case 2:
|
470
|
+
return func.call(thisArg, args[0], args[1]);
|
471
|
+
case 3:
|
472
|
+
return func.call(thisArg, args[0], args[1], args[2]);
|
473
|
+
}
|
474
|
+
return func.apply(thisArg, args);
|
475
|
+
}
|
476
|
+
function baseTimes(n, iteratee) {
|
477
|
+
var index = -1, result = Array(n);
|
478
|
+
while (++index < n) {
|
479
|
+
result[index] = iteratee(index);
|
480
|
+
}
|
481
|
+
return result;
|
482
|
+
}
|
483
|
+
function baseUnary(func) {
|
484
|
+
return function(value) {
|
485
|
+
return func(value);
|
486
|
+
};
|
487
|
+
}
|
488
|
+
function getValue(object, key) {
|
489
|
+
return object == null ? void 0 : object[key];
|
490
|
+
}
|
491
|
+
function overArg(func, transform2) {
|
492
|
+
return function(arg) {
|
493
|
+
return func(transform2(arg));
|
494
|
+
};
|
495
|
+
}
|
496
|
+
var arrayProto = Array.prototype;
|
497
|
+
var funcProto = Function.prototype;
|
498
|
+
var objectProto = Object.prototype;
|
499
|
+
var coreJsData = root["__core-js_shared__"];
|
500
|
+
var funcToString = funcProto.toString;
|
501
|
+
var hasOwnProperty2 = objectProto.hasOwnProperty;
|
502
|
+
var maskSrcKey = function() {
|
503
|
+
var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || "");
|
504
|
+
return uid ? "Symbol(src)_1." + uid : "";
|
505
|
+
}();
|
506
|
+
var nativeObjectToString = objectProto.toString;
|
507
|
+
var objectCtorString = funcToString.call(Object);
|
508
|
+
var reIsNative = RegExp(
|
509
|
+
"^" + funcToString.call(hasOwnProperty2).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
510
|
+
);
|
511
|
+
var Buffer = moduleExports ? root.Buffer : void 0;
|
512
|
+
var Symbol2 = root.Symbol;
|
513
|
+
var Uint8Array = root.Uint8Array;
|
514
|
+
var allocUnsafe = Buffer ? Buffer.allocUnsafe : void 0;
|
515
|
+
var getPrototype = overArg(Object.getPrototypeOf, Object);
|
516
|
+
var objectCreate = Object.create;
|
517
|
+
var propertyIsEnumerable = objectProto.propertyIsEnumerable;
|
518
|
+
var splice = arrayProto.splice;
|
519
|
+
var symToStringTag = Symbol2 ? Symbol2.toStringTag : void 0;
|
520
|
+
var defineProperty = function() {
|
521
|
+
try {
|
522
|
+
var func = getNative(Object, "defineProperty");
|
523
|
+
func({}, "", {});
|
524
|
+
return func;
|
525
|
+
} catch (e) {
|
526
|
+
}
|
527
|
+
}();
|
528
|
+
var nativeIsBuffer = Buffer ? Buffer.isBuffer : void 0;
|
529
|
+
var nativeMax = Math.max;
|
530
|
+
var nativeNow = Date.now;
|
531
|
+
var Map2 = getNative(root, "Map");
|
532
|
+
var nativeCreate = getNative(Object, "create");
|
533
|
+
var baseCreate = function() {
|
534
|
+
function object() {
|
535
|
+
}
|
536
|
+
return function(proto) {
|
537
|
+
if (!isObject2(proto)) {
|
538
|
+
return {};
|
539
|
+
}
|
540
|
+
if (objectCreate) {
|
541
|
+
return objectCreate(proto);
|
542
|
+
}
|
543
|
+
object.prototype = proto;
|
544
|
+
var result = new object();
|
545
|
+
object.prototype = void 0;
|
546
|
+
return result;
|
547
|
+
};
|
548
|
+
}();
|
549
|
+
function Hash(entries) {
|
550
|
+
var index = -1, length2 = entries == null ? 0 : entries.length;
|
551
|
+
this.clear();
|
552
|
+
while (++index < length2) {
|
553
|
+
var entry = entries[index];
|
554
|
+
this.set(entry[0], entry[1]);
|
555
|
+
}
|
556
|
+
}
|
557
|
+
function hashClear() {
|
558
|
+
this.__data__ = nativeCreate ? nativeCreate(null) : {};
|
559
|
+
this.size = 0;
|
560
|
+
}
|
561
|
+
function hashDelete(key) {
|
562
|
+
var result = this.has(key) && delete this.__data__[key];
|
563
|
+
this.size -= result ? 1 : 0;
|
564
|
+
return result;
|
565
|
+
}
|
566
|
+
function hashGet(key) {
|
567
|
+
var data = this.__data__;
|
568
|
+
if (nativeCreate) {
|
569
|
+
var result = data[key];
|
570
|
+
return result === HASH_UNDEFINED ? void 0 : result;
|
571
|
+
}
|
572
|
+
return hasOwnProperty2.call(data, key) ? data[key] : void 0;
|
573
|
+
}
|
574
|
+
function hashHas(key) {
|
575
|
+
var data = this.__data__;
|
576
|
+
return nativeCreate ? data[key] !== void 0 : hasOwnProperty2.call(data, key);
|
577
|
+
}
|
578
|
+
function hashSet(key, value) {
|
579
|
+
var data = this.__data__;
|
580
|
+
this.size += this.has(key) ? 0 : 1;
|
581
|
+
data[key] = nativeCreate && value === void 0 ? HASH_UNDEFINED : value;
|
582
|
+
return this;
|
583
|
+
}
|
584
|
+
Hash.prototype.clear = hashClear;
|
585
|
+
Hash.prototype["delete"] = hashDelete;
|
586
|
+
Hash.prototype.get = hashGet;
|
587
|
+
Hash.prototype.has = hashHas;
|
588
|
+
Hash.prototype.set = hashSet;
|
589
|
+
function ListCache(entries) {
|
590
|
+
var index = -1, length2 = entries == null ? 0 : entries.length;
|
591
|
+
this.clear();
|
592
|
+
while (++index < length2) {
|
593
|
+
var entry = entries[index];
|
594
|
+
this.set(entry[0], entry[1]);
|
595
|
+
}
|
596
|
+
}
|
597
|
+
function listCacheClear() {
|
598
|
+
this.__data__ = [];
|
599
|
+
this.size = 0;
|
600
|
+
}
|
601
|
+
function listCacheDelete(key) {
|
602
|
+
var data = this.__data__, index = assocIndexOf(data, key);
|
603
|
+
if (index < 0) {
|
604
|
+
return false;
|
605
|
+
}
|
606
|
+
var lastIndex = data.length - 1;
|
607
|
+
if (index == lastIndex) {
|
608
|
+
data.pop();
|
609
|
+
} else {
|
610
|
+
splice.call(data, index, 1);
|
611
|
+
}
|
612
|
+
--this.size;
|
613
|
+
return true;
|
614
|
+
}
|
615
|
+
function listCacheGet(key) {
|
616
|
+
var data = this.__data__, index = assocIndexOf(data, key);
|
617
|
+
return index < 0 ? void 0 : data[index][1];
|
618
|
+
}
|
619
|
+
function listCacheHas(key) {
|
620
|
+
return assocIndexOf(this.__data__, key) > -1;
|
621
|
+
}
|
622
|
+
function listCacheSet(key, value) {
|
623
|
+
var data = this.__data__, index = assocIndexOf(data, key);
|
624
|
+
if (index < 0) {
|
625
|
+
++this.size;
|
626
|
+
data.push([key, value]);
|
627
|
+
} else {
|
628
|
+
data[index][1] = value;
|
629
|
+
}
|
630
|
+
return this;
|
631
|
+
}
|
632
|
+
ListCache.prototype.clear = listCacheClear;
|
633
|
+
ListCache.prototype["delete"] = listCacheDelete;
|
634
|
+
ListCache.prototype.get = listCacheGet;
|
635
|
+
ListCache.prototype.has = listCacheHas;
|
636
|
+
ListCache.prototype.set = listCacheSet;
|
637
|
+
function MapCache(entries) {
|
638
|
+
var index = -1, length2 = entries == null ? 0 : entries.length;
|
639
|
+
this.clear();
|
640
|
+
while (++index < length2) {
|
641
|
+
var entry = entries[index];
|
642
|
+
this.set(entry[0], entry[1]);
|
643
|
+
}
|
644
|
+
}
|
645
|
+
function mapCacheClear() {
|
646
|
+
this.size = 0;
|
647
|
+
this.__data__ = {
|
648
|
+
"hash": new Hash(),
|
649
|
+
"map": new (Map2 || ListCache)(),
|
650
|
+
"string": new Hash()
|
651
|
+
};
|
652
|
+
}
|
653
|
+
function mapCacheDelete(key) {
|
654
|
+
var result = getMapData(this, key)["delete"](key);
|
655
|
+
this.size -= result ? 1 : 0;
|
656
|
+
return result;
|
657
|
+
}
|
658
|
+
function mapCacheGet(key) {
|
659
|
+
return getMapData(this, key).get(key);
|
660
|
+
}
|
661
|
+
function mapCacheHas(key) {
|
662
|
+
return getMapData(this, key).has(key);
|
663
|
+
}
|
664
|
+
function mapCacheSet(key, value) {
|
665
|
+
var data = getMapData(this, key), size = data.size;
|
666
|
+
data.set(key, value);
|
667
|
+
this.size += data.size == size ? 0 : 1;
|
668
|
+
return this;
|
669
|
+
}
|
670
|
+
MapCache.prototype.clear = mapCacheClear;
|
671
|
+
MapCache.prototype["delete"] = mapCacheDelete;
|
672
|
+
MapCache.prototype.get = mapCacheGet;
|
673
|
+
MapCache.prototype.has = mapCacheHas;
|
674
|
+
MapCache.prototype.set = mapCacheSet;
|
675
|
+
function Stack(entries) {
|
676
|
+
var data = this.__data__ = new ListCache(entries);
|
677
|
+
this.size = data.size;
|
678
|
+
}
|
679
|
+
function stackClear() {
|
680
|
+
this.__data__ = new ListCache();
|
681
|
+
this.size = 0;
|
682
|
+
}
|
683
|
+
function stackDelete(key) {
|
684
|
+
var data = this.__data__, result = data["delete"](key);
|
685
|
+
this.size = data.size;
|
686
|
+
return result;
|
687
|
+
}
|
688
|
+
function stackGet(key) {
|
689
|
+
return this.__data__.get(key);
|
690
|
+
}
|
691
|
+
function stackHas(key) {
|
692
|
+
return this.__data__.has(key);
|
693
|
+
}
|
694
|
+
function stackSet(key, value) {
|
695
|
+
var data = this.__data__;
|
696
|
+
if (data instanceof ListCache) {
|
697
|
+
var pairs = data.__data__;
|
698
|
+
if (!Map2 || pairs.length < LARGE_ARRAY_SIZE - 1) {
|
699
|
+
pairs.push([key, value]);
|
700
|
+
this.size = ++data.size;
|
701
|
+
return this;
|
702
|
+
}
|
703
|
+
data = this.__data__ = new MapCache(pairs);
|
704
|
+
}
|
705
|
+
data.set(key, value);
|
706
|
+
this.size = data.size;
|
707
|
+
return this;
|
708
|
+
}
|
709
|
+
Stack.prototype.clear = stackClear;
|
710
|
+
Stack.prototype["delete"] = stackDelete;
|
711
|
+
Stack.prototype.get = stackGet;
|
712
|
+
Stack.prototype.has = stackHas;
|
713
|
+
Stack.prototype.set = stackSet;
|
714
|
+
function arrayLikeKeys(value, inherited) {
|
715
|
+
var isArr = isArray(value), isArg = !isArr && isArguments(value), isBuff = !isArr && !isArg && isBuffer(value), isType = !isArr && !isArg && !isBuff && isTypedArray(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length2 = result.length;
|
716
|
+
for (var key in value) {
|
717
|
+
if ((inherited || hasOwnProperty2.call(value, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
|
718
|
+
(key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
719
|
+
isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
720
|
+
isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties.
|
721
|
+
isIndex(key, length2)))) {
|
722
|
+
result.push(key);
|
723
|
+
}
|
724
|
+
}
|
725
|
+
return result;
|
726
|
+
}
|
727
|
+
function assignMergeValue(object, key, value) {
|
728
|
+
if (value !== void 0 && !eq(object[key], value) || value === void 0 && !(key in object)) {
|
729
|
+
baseAssignValue(object, key, value);
|
730
|
+
}
|
731
|
+
}
|
732
|
+
function assignValue(object, key, value) {
|
733
|
+
var objValue = object[key];
|
734
|
+
if (!(hasOwnProperty2.call(object, key) && eq(objValue, value)) || value === void 0 && !(key in object)) {
|
735
|
+
baseAssignValue(object, key, value);
|
736
|
+
}
|
737
|
+
}
|
738
|
+
function assocIndexOf(array, key) {
|
739
|
+
var length2 = array.length;
|
740
|
+
while (length2--) {
|
741
|
+
if (eq(array[length2][0], key)) {
|
742
|
+
return length2;
|
743
|
+
}
|
744
|
+
}
|
745
|
+
return -1;
|
746
|
+
}
|
747
|
+
function baseAssignValue(object, key, value) {
|
748
|
+
if (key == "__proto__" && defineProperty) {
|
749
|
+
defineProperty(object, key, {
|
750
|
+
"configurable": true,
|
751
|
+
"enumerable": true,
|
752
|
+
"value": value,
|
753
|
+
"writable": true
|
754
|
+
});
|
755
|
+
} else {
|
756
|
+
object[key] = value;
|
757
|
+
}
|
758
|
+
}
|
759
|
+
var baseFor = createBaseFor();
|
760
|
+
function baseGetTag(value) {
|
761
|
+
if (value == null) {
|
762
|
+
return value === void 0 ? undefinedTag : nullTag;
|
763
|
+
}
|
764
|
+
return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value);
|
765
|
+
}
|
766
|
+
function baseIsArguments(value) {
|
767
|
+
return isObjectLike(value) && baseGetTag(value) == argsTag;
|
768
|
+
}
|
769
|
+
function baseIsNative(value) {
|
770
|
+
if (!isObject2(value) || isMasked(value)) {
|
771
|
+
return false;
|
772
|
+
}
|
773
|
+
var pattern = isFunction3(value) ? reIsNative : reIsHostCtor;
|
774
|
+
return pattern.test(toSource(value));
|
775
|
+
}
|
776
|
+
function baseIsTypedArray(value) {
|
777
|
+
return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
|
778
|
+
}
|
779
|
+
function baseKeysIn(object) {
|
780
|
+
if (!isObject2(object)) {
|
781
|
+
return nativeKeysIn(object);
|
782
|
+
}
|
783
|
+
var isProto = isPrototype(object), result = [];
|
784
|
+
for (var key in object) {
|
785
|
+
if (!(key == "constructor" && (isProto || !hasOwnProperty2.call(object, key)))) {
|
786
|
+
result.push(key);
|
787
|
+
}
|
788
|
+
}
|
789
|
+
return result;
|
790
|
+
}
|
791
|
+
function baseMerge(object, source, srcIndex, customizer, stack) {
|
792
|
+
if (object === source) {
|
793
|
+
return;
|
794
|
+
}
|
795
|
+
baseFor(source, function(srcValue, key) {
|
796
|
+
stack || (stack = new Stack());
|
797
|
+
if (isObject2(srcValue)) {
|
798
|
+
baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);
|
799
|
+
} else {
|
800
|
+
var newValue = customizer ? customizer(safeGet(object, key), srcValue, key + "", object, source, stack) : void 0;
|
801
|
+
if (newValue === void 0) {
|
802
|
+
newValue = srcValue;
|
803
|
+
}
|
804
|
+
assignMergeValue(object, key, newValue);
|
805
|
+
}
|
806
|
+
}, keysIn);
|
807
|
+
}
|
808
|
+
function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {
|
809
|
+
var objValue = safeGet(object, key), srcValue = safeGet(source, key), stacked = stack.get(srcValue);
|
810
|
+
if (stacked) {
|
811
|
+
assignMergeValue(object, key, stacked);
|
812
|
+
return;
|
813
|
+
}
|
814
|
+
var newValue = customizer ? customizer(objValue, srcValue, key + "", object, source, stack) : void 0;
|
815
|
+
var isCommon = newValue === void 0;
|
816
|
+
if (isCommon) {
|
817
|
+
var isArr = isArray(srcValue), isBuff = !isArr && isBuffer(srcValue), isTyped = !isArr && !isBuff && isTypedArray(srcValue);
|
818
|
+
newValue = srcValue;
|
819
|
+
if (isArr || isBuff || isTyped) {
|
820
|
+
if (isArray(objValue)) {
|
821
|
+
newValue = objValue;
|
822
|
+
} else if (isArrayLikeObject(objValue)) {
|
823
|
+
newValue = copyArray(objValue);
|
824
|
+
} else if (isBuff) {
|
825
|
+
isCommon = false;
|
826
|
+
newValue = cloneBuffer(srcValue, true);
|
827
|
+
} else if (isTyped) {
|
828
|
+
isCommon = false;
|
829
|
+
newValue = cloneTypedArray(srcValue, true);
|
830
|
+
} else {
|
831
|
+
newValue = [];
|
832
|
+
}
|
833
|
+
} else if (isPlainObject(srcValue) || isArguments(srcValue)) {
|
834
|
+
newValue = objValue;
|
835
|
+
if (isArguments(objValue)) {
|
836
|
+
newValue = toPlainObject(objValue);
|
837
|
+
} else if (!isObject2(objValue) || isFunction3(objValue)) {
|
838
|
+
newValue = initCloneObject(srcValue);
|
839
|
+
}
|
840
|
+
} else {
|
841
|
+
isCommon = false;
|
842
|
+
}
|
843
|
+
}
|
844
|
+
if (isCommon) {
|
845
|
+
stack.set(srcValue, newValue);
|
846
|
+
mergeFunc(newValue, srcValue, srcIndex, customizer, stack);
|
847
|
+
stack["delete"](srcValue);
|
848
|
+
}
|
849
|
+
assignMergeValue(object, key, newValue);
|
850
|
+
}
|
851
|
+
function baseRest(func, start) {
|
852
|
+
return setToString(overRest(func, start, identity), func + "");
|
853
|
+
}
|
854
|
+
var baseSetToString = !defineProperty ? identity : function(func, string) {
|
855
|
+
return defineProperty(func, "toString", {
|
856
|
+
"configurable": true,
|
857
|
+
"enumerable": false,
|
858
|
+
"value": constant(string),
|
859
|
+
"writable": true
|
860
|
+
});
|
861
|
+
};
|
862
|
+
function cloneBuffer(buffer, isDeep) {
|
863
|
+
if (isDeep) {
|
864
|
+
return buffer.slice();
|
865
|
+
}
|
866
|
+
var length2 = buffer.length, result = allocUnsafe ? allocUnsafe(length2) : new buffer.constructor(length2);
|
867
|
+
buffer.copy(result);
|
868
|
+
return result;
|
869
|
+
}
|
870
|
+
function cloneArrayBuffer(arrayBuffer) {
|
871
|
+
var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
|
872
|
+
new Uint8Array(result).set(new Uint8Array(arrayBuffer));
|
873
|
+
return result;
|
874
|
+
}
|
875
|
+
function cloneTypedArray(typedArray, isDeep) {
|
876
|
+
var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
|
877
|
+
return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
|
878
|
+
}
|
879
|
+
function copyArray(source, array) {
|
880
|
+
var index = -1, length2 = source.length;
|
881
|
+
array || (array = Array(length2));
|
882
|
+
while (++index < length2) {
|
883
|
+
array[index] = source[index];
|
884
|
+
}
|
885
|
+
return array;
|
886
|
+
}
|
887
|
+
function copyObject(source, props, object, customizer) {
|
888
|
+
var isNew = !object;
|
889
|
+
object || (object = {});
|
890
|
+
var index = -1, length2 = props.length;
|
891
|
+
while (++index < length2) {
|
892
|
+
var key = props[index];
|
893
|
+
var newValue = customizer ? customizer(object[key], source[key], key, object, source) : void 0;
|
894
|
+
if (newValue === void 0) {
|
895
|
+
newValue = source[key];
|
896
|
+
}
|
897
|
+
if (isNew) {
|
898
|
+
baseAssignValue(object, key, newValue);
|
899
|
+
} else {
|
900
|
+
assignValue(object, key, newValue);
|
901
|
+
}
|
902
|
+
}
|
903
|
+
return object;
|
904
|
+
}
|
905
|
+
function createAssigner(assigner) {
|
906
|
+
return baseRest(function(object, sources) {
|
907
|
+
var index = -1, length2 = sources.length, customizer = length2 > 1 ? sources[length2 - 1] : void 0, guard = length2 > 2 ? sources[2] : void 0;
|
908
|
+
customizer = assigner.length > 3 && typeof customizer == "function" ? (length2--, customizer) : void 0;
|
909
|
+
if (guard && isIterateeCall(sources[0], sources[1], guard)) {
|
910
|
+
customizer = length2 < 3 ? void 0 : customizer;
|
911
|
+
length2 = 1;
|
912
|
+
}
|
913
|
+
object = Object(object);
|
914
|
+
while (++index < length2) {
|
915
|
+
var source = sources[index];
|
916
|
+
if (source) {
|
917
|
+
assigner(object, source, index, customizer);
|
918
|
+
}
|
919
|
+
}
|
920
|
+
return object;
|
921
|
+
});
|
922
|
+
}
|
923
|
+
function createBaseFor(fromRight) {
|
924
|
+
return function(object, iteratee, keysFunc) {
|
925
|
+
var index = -1, iterable = Object(object), props = keysFunc(object), length2 = props.length;
|
926
|
+
while (length2--) {
|
927
|
+
var key = props[fromRight ? length2 : ++index];
|
928
|
+
if (iteratee(iterable[key], key, iterable) === false) {
|
929
|
+
break;
|
930
|
+
}
|
931
|
+
}
|
932
|
+
return object;
|
933
|
+
};
|
934
|
+
}
|
935
|
+
function getMapData(map, key) {
|
936
|
+
var data = map.__data__;
|
937
|
+
return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
|
938
|
+
}
|
939
|
+
function getNative(object, key) {
|
940
|
+
var value = getValue(object, key);
|
941
|
+
return baseIsNative(value) ? value : void 0;
|
942
|
+
}
|
943
|
+
function getRawTag(value) {
|
944
|
+
var isOwn = hasOwnProperty2.call(value, symToStringTag), tag = value[symToStringTag];
|
945
|
+
try {
|
946
|
+
value[symToStringTag] = void 0;
|
947
|
+
var unmasked = true;
|
948
|
+
} catch (e) {
|
949
|
+
}
|
950
|
+
var result = nativeObjectToString.call(value);
|
951
|
+
if (unmasked) {
|
952
|
+
if (isOwn) {
|
953
|
+
value[symToStringTag] = tag;
|
954
|
+
} else {
|
955
|
+
delete value[symToStringTag];
|
956
|
+
}
|
957
|
+
}
|
958
|
+
return result;
|
959
|
+
}
|
960
|
+
function initCloneObject(object) {
|
961
|
+
return typeof object.constructor == "function" && !isPrototype(object) ? baseCreate(getPrototype(object)) : {};
|
962
|
+
}
|
963
|
+
function isIndex(value, length2) {
|
964
|
+
var type = typeof value;
|
965
|
+
length2 = length2 == null ? MAX_SAFE_INTEGER : length2;
|
966
|
+
return !!length2 && (type == "number" || type != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length2);
|
967
|
+
}
|
968
|
+
function isIterateeCall(value, index, object) {
|
969
|
+
if (!isObject2(object)) {
|
970
|
+
return false;
|
971
|
+
}
|
972
|
+
var type = typeof index;
|
973
|
+
if (type == "number" ? isArrayLike(object) && isIndex(index, object.length) : type == "string" && index in object) {
|
974
|
+
return eq(object[index], value);
|
975
|
+
}
|
976
|
+
return false;
|
977
|
+
}
|
978
|
+
function isKeyable(value) {
|
979
|
+
var type = typeof value;
|
980
|
+
return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
|
981
|
+
}
|
982
|
+
function isMasked(func) {
|
983
|
+
return !!maskSrcKey && maskSrcKey in func;
|
984
|
+
}
|
985
|
+
function isPrototype(value) {
|
986
|
+
var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto;
|
987
|
+
return value === proto;
|
988
|
+
}
|
989
|
+
function nativeKeysIn(object) {
|
990
|
+
var result = [];
|
991
|
+
if (object != null) {
|
992
|
+
for (var key in Object(object)) {
|
993
|
+
result.push(key);
|
994
|
+
}
|
995
|
+
}
|
996
|
+
return result;
|
997
|
+
}
|
998
|
+
function objectToString(value) {
|
999
|
+
return nativeObjectToString.call(value);
|
1000
|
+
}
|
1001
|
+
function overRest(func, start, transform2) {
|
1002
|
+
start = nativeMax(start === void 0 ? func.length - 1 : start, 0);
|
1003
|
+
return function() {
|
1004
|
+
var args = arguments, index = -1, length2 = nativeMax(args.length - start, 0), array = Array(length2);
|
1005
|
+
while (++index < length2) {
|
1006
|
+
array[index] = args[start + index];
|
1007
|
+
}
|
1008
|
+
index = -1;
|
1009
|
+
var otherArgs = Array(start + 1);
|
1010
|
+
while (++index < start) {
|
1011
|
+
otherArgs[index] = args[index];
|
1012
|
+
}
|
1013
|
+
otherArgs[start] = transform2(array);
|
1014
|
+
return apply(func, this, otherArgs);
|
1015
|
+
};
|
1016
|
+
}
|
1017
|
+
function safeGet(object, key) {
|
1018
|
+
if (key === "constructor" && typeof object[key] === "function") {
|
1019
|
+
return;
|
1020
|
+
}
|
1021
|
+
if (key == "__proto__") {
|
1022
|
+
return;
|
1023
|
+
}
|
1024
|
+
return object[key];
|
1025
|
+
}
|
1026
|
+
var setToString = shortOut(baseSetToString);
|
1027
|
+
function shortOut(func) {
|
1028
|
+
var count = 0, lastCalled = 0;
|
1029
|
+
return function() {
|
1030
|
+
var stamp = nativeNow(), remaining = HOT_SPAN - (stamp - lastCalled);
|
1031
|
+
lastCalled = stamp;
|
1032
|
+
if (remaining > 0) {
|
1033
|
+
if (++count >= HOT_COUNT) {
|
1034
|
+
return arguments[0];
|
1035
|
+
}
|
1036
|
+
} else {
|
1037
|
+
count = 0;
|
1038
|
+
}
|
1039
|
+
return func.apply(void 0, arguments);
|
1040
|
+
};
|
1041
|
+
}
|
1042
|
+
function toSource(func) {
|
1043
|
+
if (func != null) {
|
1044
|
+
try {
|
1045
|
+
return funcToString.call(func);
|
1046
|
+
} catch (e) {
|
1047
|
+
}
|
1048
|
+
try {
|
1049
|
+
return func + "";
|
1050
|
+
} catch (e) {
|
1051
|
+
}
|
1052
|
+
}
|
1053
|
+
return "";
|
1054
|
+
}
|
1055
|
+
function eq(value, other) {
|
1056
|
+
return value === other || value !== value && other !== other;
|
1057
|
+
}
|
1058
|
+
var isArguments = baseIsArguments(function() {
|
1059
|
+
return arguments;
|
1060
|
+
}()) ? baseIsArguments : function(value) {
|
1061
|
+
return isObjectLike(value) && hasOwnProperty2.call(value, "callee") && !propertyIsEnumerable.call(value, "callee");
|
1062
|
+
};
|
1063
|
+
var isArray = Array.isArray;
|
1064
|
+
function isArrayLike(value) {
|
1065
|
+
return value != null && isLength(value.length) && !isFunction3(value);
|
1066
|
+
}
|
1067
|
+
function isArrayLikeObject(value) {
|
1068
|
+
return isObjectLike(value) && isArrayLike(value);
|
1069
|
+
}
|
1070
|
+
var isBuffer = nativeIsBuffer || stubFalse;
|
1071
|
+
function isFunction3(value) {
|
1072
|
+
if (!isObject2(value)) {
|
1073
|
+
return false;
|
1074
|
+
}
|
1075
|
+
var tag = baseGetTag(value);
|
1076
|
+
return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
|
1077
|
+
}
|
1078
|
+
function isLength(value) {
|
1079
|
+
return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
|
1080
|
+
}
|
1081
|
+
function isObject2(value) {
|
1082
|
+
var type = typeof value;
|
1083
|
+
return value != null && (type == "object" || type == "function");
|
1084
|
+
}
|
1085
|
+
function isObjectLike(value) {
|
1086
|
+
return value != null && typeof value == "object";
|
1087
|
+
}
|
1088
|
+
function isPlainObject(value) {
|
1089
|
+
if (!isObjectLike(value) || baseGetTag(value) != objectTag) {
|
1090
|
+
return false;
|
1091
|
+
}
|
1092
|
+
var proto = getPrototype(value);
|
1093
|
+
if (proto === null) {
|
1094
|
+
return true;
|
1095
|
+
}
|
1096
|
+
var Ctor = hasOwnProperty2.call(proto, "constructor") && proto.constructor;
|
1097
|
+
return typeof Ctor == "function" && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString;
|
1098
|
+
}
|
1099
|
+
var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
|
1100
|
+
function toPlainObject(value) {
|
1101
|
+
return copyObject(value, keysIn(value));
|
1102
|
+
}
|
1103
|
+
function keysIn(object) {
|
1104
|
+
return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
|
1105
|
+
}
|
1106
|
+
var mergeWith5 = createAssigner(function(object, source, srcIndex, customizer) {
|
1107
|
+
baseMerge(object, source, srcIndex, customizer);
|
1108
|
+
});
|
1109
|
+
function constant(value) {
|
1110
|
+
return function() {
|
1111
|
+
return value;
|
1112
|
+
};
|
1113
|
+
}
|
1114
|
+
function identity(value) {
|
1115
|
+
return value;
|
1116
|
+
}
|
1117
|
+
function stubFalse() {
|
1118
|
+
return false;
|
1119
|
+
}
|
1120
|
+
module.exports = mergeWith5;
|
1121
|
+
}
|
1122
|
+
});
|
1123
|
+
|
1124
|
+
// ../../node_modules/react-fast-compare/index.js
|
1125
|
+
var require_react_fast_compare = __commonJS({
|
1126
|
+
"../../node_modules/react-fast-compare/index.js"(exports, module) {
|
1127
|
+
var hasElementType = typeof Element !== "undefined";
|
1128
|
+
var hasMap = typeof Map === "function";
|
1129
|
+
var hasSet = typeof Set === "function";
|
1130
|
+
var hasArrayBuffer = typeof ArrayBuffer === "function" && !!ArrayBuffer.isView;
|
1131
|
+
function equal(a, b) {
|
1132
|
+
if (a === b)
|
1133
|
+
return true;
|
1134
|
+
if (a && b && typeof a == "object" && typeof b == "object") {
|
1135
|
+
if (a.constructor !== b.constructor)
|
1136
|
+
return false;
|
1137
|
+
var length2, i, keys;
|
1138
|
+
if (Array.isArray(a)) {
|
1139
|
+
length2 = a.length;
|
1140
|
+
if (length2 != b.length)
|
1141
|
+
return false;
|
1142
|
+
for (i = length2; i-- !== 0; )
|
1143
|
+
if (!equal(a[i], b[i]))
|
1144
|
+
return false;
|
1145
|
+
return true;
|
1146
|
+
}
|
1147
|
+
var it;
|
1148
|
+
if (hasMap && a instanceof Map && b instanceof Map) {
|
1149
|
+
if (a.size !== b.size)
|
1150
|
+
return false;
|
1151
|
+
it = a.entries();
|
1152
|
+
while (!(i = it.next()).done)
|
1153
|
+
if (!b.has(i.value[0]))
|
1154
|
+
return false;
|
1155
|
+
it = a.entries();
|
1156
|
+
while (!(i = it.next()).done)
|
1157
|
+
if (!equal(i.value[1], b.get(i.value[0])))
|
1158
|
+
return false;
|
1159
|
+
return true;
|
1160
|
+
}
|
1161
|
+
if (hasSet && a instanceof Set && b instanceof Set) {
|
1162
|
+
if (a.size !== b.size)
|
1163
|
+
return false;
|
1164
|
+
it = a.entries();
|
1165
|
+
while (!(i = it.next()).done)
|
1166
|
+
if (!b.has(i.value[0]))
|
1167
|
+
return false;
|
1168
|
+
return true;
|
1169
|
+
}
|
1170
|
+
if (hasArrayBuffer && ArrayBuffer.isView(a) && ArrayBuffer.isView(b)) {
|
1171
|
+
length2 = a.length;
|
1172
|
+
if (length2 != b.length)
|
1173
|
+
return false;
|
1174
|
+
for (i = length2; i-- !== 0; )
|
1175
|
+
if (a[i] !== b[i])
|
1176
|
+
return false;
|
1177
|
+
return true;
|
1178
|
+
}
|
1179
|
+
if (a.constructor === RegExp)
|
1180
|
+
return a.source === b.source && a.flags === b.flags;
|
1181
|
+
if (a.valueOf !== Object.prototype.valueOf)
|
1182
|
+
return a.valueOf() === b.valueOf();
|
1183
|
+
if (a.toString !== Object.prototype.toString)
|
1184
|
+
return a.toString() === b.toString();
|
1185
|
+
keys = Object.keys(a);
|
1186
|
+
length2 = keys.length;
|
1187
|
+
if (length2 !== Object.keys(b).length)
|
1188
|
+
return false;
|
1189
|
+
for (i = length2; i-- !== 0; )
|
1190
|
+
if (!Object.prototype.hasOwnProperty.call(b, keys[i]))
|
1191
|
+
return false;
|
1192
|
+
if (hasElementType && a instanceof Element)
|
1193
|
+
return false;
|
1194
|
+
for (i = length2; i-- !== 0; ) {
|
1195
|
+
if ((keys[i] === "_owner" || keys[i] === "__v" || keys[i] === "__o") && a.$$typeof) {
|
1196
|
+
continue;
|
1197
|
+
}
|
1198
|
+
if (!equal(a[keys[i]], b[keys[i]]))
|
1199
|
+
return false;
|
1200
|
+
}
|
1201
|
+
return true;
|
1202
|
+
}
|
1203
|
+
return a !== a && b !== b;
|
1204
|
+
}
|
1205
|
+
module.exports = function isEqual2(a, b) {
|
1206
|
+
try {
|
1207
|
+
return equal(a, b);
|
1208
|
+
} catch (error2) {
|
1209
|
+
if ((error2.message || "").match(/stack|recursion/i)) {
|
1210
|
+
console.warn("react-fast-compare cannot handle circular refs");
|
1211
|
+
return false;
|
1212
|
+
}
|
1213
|
+
throw error2;
|
1214
|
+
}
|
1215
|
+
};
|
1216
|
+
}
|
1217
|
+
});
|
1218
|
+
|
1219
|
+
// src/feature/color-mode/ThemeTool.tsx
|
1220
|
+
import { useAddonState } from "@storybook/api";
|
1221
|
+
import { IconButton, WithTooltip, TooltipLinkList } from "@storybook/components";
|
1222
|
+
import { addons } from "@storybook/addons";
|
1223
|
+
|
1224
|
+
// ../../node_modules/@emotion/react/dist/emotion-react.esm.js
|
1225
|
+
import { createElement as createElement2, useContext as useContext2, useRef, Fragment as Fragment2 } from "react";
|
1226
|
+
|
1227
|
+
// ../../node_modules/@emotion/sheet/dist/emotion-sheet.esm.js
|
1228
|
+
function sheetForTag(tag) {
|
1229
|
+
if (tag.sheet) {
|
1230
|
+
return tag.sheet;
|
1231
|
+
}
|
1232
|
+
for (var i = 0; i < document.styleSheets.length; i++) {
|
1233
|
+
if (document.styleSheets[i].ownerNode === tag) {
|
1234
|
+
return document.styleSheets[i];
|
1235
|
+
}
|
1236
|
+
}
|
1237
|
+
}
|
1238
|
+
function createStyleElement(options) {
|
1239
|
+
var tag = document.createElement("style");
|
1240
|
+
tag.setAttribute("data-emotion", options.key);
|
1241
|
+
if (options.nonce !== void 0) {
|
1242
|
+
tag.setAttribute("nonce", options.nonce);
|
1243
|
+
}
|
1244
|
+
tag.appendChild(document.createTextNode(""));
|
1245
|
+
tag.setAttribute("data-s", "");
|
1246
|
+
return tag;
|
1247
|
+
}
|
1248
|
+
var StyleSheet = /* @__PURE__ */ function() {
|
1249
|
+
function StyleSheet2(options) {
|
1250
|
+
var _this = this;
|
1251
|
+
this._insertTag = function(tag) {
|
1252
|
+
var before;
|
1253
|
+
if (_this.tags.length === 0) {
|
1254
|
+
if (_this.insertionPoint) {
|
1255
|
+
before = _this.insertionPoint.nextSibling;
|
1256
|
+
} else if (_this.prepend) {
|
1257
|
+
before = _this.container.firstChild;
|
1258
|
+
} else {
|
1259
|
+
before = _this.before;
|
1260
|
+
}
|
1261
|
+
} else {
|
1262
|
+
before = _this.tags[_this.tags.length - 1].nextSibling;
|
1263
|
+
}
|
1264
|
+
_this.container.insertBefore(tag, before);
|
1265
|
+
_this.tags.push(tag);
|
1266
|
+
};
|
1267
|
+
this.isSpeedy = options.speedy === void 0 ? process.env.NODE_ENV === "production" : options.speedy;
|
1268
|
+
this.tags = [];
|
1269
|
+
this.ctr = 0;
|
1270
|
+
this.nonce = options.nonce;
|
1271
|
+
this.key = options.key;
|
1272
|
+
this.container = options.container;
|
1273
|
+
this.prepend = options.prepend;
|
1274
|
+
this.insertionPoint = options.insertionPoint;
|
1275
|
+
this.before = null;
|
1276
|
+
}
|
1277
|
+
var _proto = StyleSheet2.prototype;
|
1278
|
+
_proto.hydrate = function hydrate(nodes) {
|
1279
|
+
nodes.forEach(this._insertTag);
|
1280
|
+
};
|
1281
|
+
_proto.insert = function insert(rule) {
|
1282
|
+
if (this.ctr % (this.isSpeedy ? 65e3 : 1) === 0) {
|
1283
|
+
this._insertTag(createStyleElement(this));
|
1284
|
+
}
|
1285
|
+
var tag = this.tags[this.tags.length - 1];
|
1286
|
+
if (process.env.NODE_ENV !== "production") {
|
1287
|
+
var isImportRule3 = rule.charCodeAt(0) === 64 && rule.charCodeAt(1) === 105;
|
1288
|
+
if (isImportRule3 && this._alreadyInsertedOrderInsensitiveRule) {
|
1289
|
+
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.");
|
1290
|
+
}
|
1291
|
+
this._alreadyInsertedOrderInsensitiveRule = this._alreadyInsertedOrderInsensitiveRule || !isImportRule3;
|
1292
|
+
}
|
1293
|
+
if (this.isSpeedy) {
|
1294
|
+
var sheet = sheetForTag(tag);
|
1295
|
+
try {
|
1296
|
+
sheet.insertRule(rule, sheet.cssRules.length);
|
1297
|
+
} catch (e) {
|
1298
|
+
if (process.env.NODE_ENV !== "production" && !/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(rule)) {
|
1299
|
+
console.error('There was a problem inserting the following rule: "' + rule + '"', e);
|
1300
|
+
}
|
1301
|
+
}
|
1302
|
+
} else {
|
1303
|
+
tag.appendChild(document.createTextNode(rule));
|
1304
|
+
}
|
1305
|
+
this.ctr++;
|
1306
|
+
};
|
1307
|
+
_proto.flush = function flush() {
|
1308
|
+
this.tags.forEach(function(tag) {
|
1309
|
+
return tag.parentNode && tag.parentNode.removeChild(tag);
|
1310
|
+
});
|
1311
|
+
this.tags = [];
|
1312
|
+
this.ctr = 0;
|
1313
|
+
if (process.env.NODE_ENV !== "production") {
|
1314
|
+
this._alreadyInsertedOrderInsensitiveRule = false;
|
1315
|
+
}
|
1316
|
+
};
|
1317
|
+
return StyleSheet2;
|
1318
|
+
}();
|
1319
|
+
|
1320
|
+
// ../../node_modules/stylis/src/Enum.js
|
1321
|
+
var MS = "-ms-";
|
1322
|
+
var MOZ = "-moz-";
|
1323
|
+
var WEBKIT = "-webkit-";
|
1324
|
+
var COMMENT = "comm";
|
1325
|
+
var RULESET = "rule";
|
1326
|
+
var DECLARATION = "decl";
|
1327
|
+
var IMPORT = "@import";
|
1328
|
+
var KEYFRAMES = "@keyframes";
|
1329
|
+
|
1330
|
+
// ../../node_modules/stylis/src/Utility.js
|
1331
|
+
var abs = Math.abs;
|
1332
|
+
var from = String.fromCharCode;
|
1333
|
+
var assign = Object.assign;
|
1334
|
+
function hash(value, length2) {
|
1335
|
+
return charat(value, 0) ^ 45 ? (((length2 << 2 ^ charat(value, 0)) << 2 ^ charat(value, 1)) << 2 ^ charat(value, 2)) << 2 ^ charat(value, 3) : 0;
|
1336
|
+
}
|
1337
|
+
function trim(value) {
|
1338
|
+
return value.trim();
|
1339
|
+
}
|
1340
|
+
function match(value, pattern) {
|
1341
|
+
return (value = pattern.exec(value)) ? value[0] : value;
|
1342
|
+
}
|
1343
|
+
function replace(value, pattern, replacement) {
|
1344
|
+
return value.replace(pattern, replacement);
|
1345
|
+
}
|
1346
|
+
function indexof(value, search) {
|
1347
|
+
return value.indexOf(search);
|
1348
|
+
}
|
1349
|
+
function charat(value, index) {
|
1350
|
+
return value.charCodeAt(index) | 0;
|
1351
|
+
}
|
1352
|
+
function substr(value, begin, end) {
|
1353
|
+
return value.slice(begin, end);
|
1354
|
+
}
|
1355
|
+
function strlen(value) {
|
1356
|
+
return value.length;
|
1357
|
+
}
|
1358
|
+
function sizeof(value) {
|
1359
|
+
return value.length;
|
1360
|
+
}
|
1361
|
+
function append(value, array) {
|
1362
|
+
return array.push(value), value;
|
1363
|
+
}
|
1364
|
+
function combine(array, callback) {
|
1365
|
+
return array.map(callback).join("");
|
1366
|
+
}
|
1367
|
+
|
1368
|
+
// ../../node_modules/stylis/src/Tokenizer.js
|
1369
|
+
var line = 1;
|
1370
|
+
var column = 1;
|
1371
|
+
var length = 0;
|
1372
|
+
var position = 0;
|
1373
|
+
var character = 0;
|
1374
|
+
var characters = "";
|
1375
|
+
function node(value, root, parent, type, props, children, length2) {
|
1376
|
+
return { value, root, parent, type, props, children, line, column, length: length2, return: "" };
|
1377
|
+
}
|
1378
|
+
function copy(root, props) {
|
1379
|
+
return assign(node("", null, null, "", null, null, 0), root, { length: -root.length }, props);
|
1380
|
+
}
|
1381
|
+
function char() {
|
1382
|
+
return character;
|
1383
|
+
}
|
1384
|
+
function prev() {
|
1385
|
+
character = position > 0 ? charat(characters, --position) : 0;
|
1386
|
+
if (column--, character === 10)
|
1387
|
+
column = 1, line--;
|
1388
|
+
return character;
|
1389
|
+
}
|
1390
|
+
function next() {
|
1391
|
+
character = position < length ? charat(characters, position++) : 0;
|
1392
|
+
if (column++, character === 10)
|
1393
|
+
column = 1, line++;
|
1394
|
+
return character;
|
1395
|
+
}
|
1396
|
+
function peek() {
|
1397
|
+
return charat(characters, position);
|
1398
|
+
}
|
1399
|
+
function caret() {
|
1400
|
+
return position;
|
1401
|
+
}
|
1402
|
+
function slice(begin, end) {
|
1403
|
+
return substr(characters, begin, end);
|
1404
|
+
}
|
1405
|
+
function token(type) {
|
1406
|
+
switch (type) {
|
1407
|
+
case 0:
|
1408
|
+
case 9:
|
1409
|
+
case 10:
|
1410
|
+
case 13:
|
1411
|
+
case 32:
|
1412
|
+
return 5;
|
1413
|
+
case 33:
|
1414
|
+
case 43:
|
1415
|
+
case 44:
|
1416
|
+
case 47:
|
1417
|
+
case 62:
|
1418
|
+
case 64:
|
1419
|
+
case 126:
|
1420
|
+
case 59:
|
1421
|
+
case 123:
|
1422
|
+
case 125:
|
1423
|
+
return 4;
|
1424
|
+
case 58:
|
1425
|
+
return 3;
|
1426
|
+
case 34:
|
1427
|
+
case 39:
|
1428
|
+
case 40:
|
1429
|
+
case 91:
|
1430
|
+
return 2;
|
1431
|
+
case 41:
|
1432
|
+
case 93:
|
1433
|
+
return 1;
|
1434
|
+
}
|
1435
|
+
return 0;
|
1436
|
+
}
|
1437
|
+
function alloc(value) {
|
1438
|
+
return line = column = 1, length = strlen(characters = value), position = 0, [];
|
1439
|
+
}
|
1440
|
+
function dealloc(value) {
|
1441
|
+
return characters = "", value;
|
1442
|
+
}
|
1443
|
+
function delimit(type) {
|
1444
|
+
return trim(slice(position - 1, delimiter(type === 91 ? type + 2 : type === 40 ? type + 1 : type)));
|
1445
|
+
}
|
1446
|
+
function whitespace(type) {
|
1447
|
+
while (character = peek())
|
1448
|
+
if (character < 33)
|
1449
|
+
next();
|
1450
|
+
else
|
1451
|
+
break;
|
1452
|
+
return token(type) > 2 || token(character) > 3 ? "" : " ";
|
1453
|
+
}
|
1454
|
+
function escaping(index, count) {
|
1455
|
+
while (--count && next())
|
1456
|
+
if (character < 48 || character > 102 || character > 57 && character < 65 || character > 70 && character < 97)
|
1457
|
+
break;
|
1458
|
+
return slice(index, caret() + (count < 6 && peek() == 32 && next() == 32));
|
1459
|
+
}
|
1460
|
+
function delimiter(type) {
|
1461
|
+
while (next())
|
1462
|
+
switch (character) {
|
1463
|
+
case type:
|
1464
|
+
return position;
|
1465
|
+
case 34:
|
1466
|
+
case 39:
|
1467
|
+
if (type !== 34 && type !== 39)
|
1468
|
+
delimiter(character);
|
1469
|
+
break;
|
1470
|
+
case 40:
|
1471
|
+
if (type === 41)
|
1472
|
+
delimiter(type);
|
1473
|
+
break;
|
1474
|
+
case 92:
|
1475
|
+
next();
|
1476
|
+
break;
|
1477
|
+
}
|
1478
|
+
return position;
|
1479
|
+
}
|
1480
|
+
function commenter(type, index) {
|
1481
|
+
while (next())
|
1482
|
+
if (type + character === 47 + 10)
|
1483
|
+
break;
|
1484
|
+
else if (type + character === 42 + 42 && peek() === 47)
|
1485
|
+
break;
|
1486
|
+
return "/*" + slice(index, position - 1) + "*" + from(type === 47 ? type : next());
|
1487
|
+
}
|
1488
|
+
function identifier(index) {
|
1489
|
+
while (!token(peek()))
|
1490
|
+
next();
|
1491
|
+
return slice(index, position);
|
1492
|
+
}
|
1493
|
+
|
1494
|
+
// ../../node_modules/stylis/src/Parser.js
|
1495
|
+
function compile(value) {
|
1496
|
+
return dealloc(parse("", null, null, null, [""], value = alloc(value), 0, [0], value));
|
1497
|
+
}
|
1498
|
+
function parse(value, root, parent, rule, rules, rulesets, pseudo, points, declarations) {
|
1499
|
+
var index = 0;
|
1500
|
+
var offset = 0;
|
1501
|
+
var length2 = pseudo;
|
1502
|
+
var atrule = 0;
|
1503
|
+
var property = 0;
|
1504
|
+
var previous = 0;
|
1505
|
+
var variable = 1;
|
1506
|
+
var scanning = 1;
|
1507
|
+
var ampersand = 1;
|
1508
|
+
var character2 = 0;
|
1509
|
+
var type = "";
|
1510
|
+
var props = rules;
|
1511
|
+
var children = rulesets;
|
1512
|
+
var reference = rule;
|
1513
|
+
var characters2 = type;
|
1514
|
+
while (scanning)
|
1515
|
+
switch (previous = character2, character2 = next()) {
|
1516
|
+
case 40:
|
1517
|
+
if (previous != 108 && charat(characters2, length2 - 1) == 58) {
|
1518
|
+
if (indexof(characters2 += replace(delimit(character2), "&", "&\f"), "&\f") != -1)
|
1519
|
+
ampersand = -1;
|
1520
|
+
break;
|
1521
|
+
}
|
1522
|
+
case 34:
|
1523
|
+
case 39:
|
1524
|
+
case 91:
|
1525
|
+
characters2 += delimit(character2);
|
1526
|
+
break;
|
1527
|
+
case 9:
|
1528
|
+
case 10:
|
1529
|
+
case 13:
|
1530
|
+
case 32:
|
1531
|
+
characters2 += whitespace(previous);
|
1532
|
+
break;
|
1533
|
+
case 92:
|
1534
|
+
characters2 += escaping(caret() - 1, 7);
|
1535
|
+
continue;
|
1536
|
+
case 47:
|
1537
|
+
switch (peek()) {
|
1538
|
+
case 42:
|
1539
|
+
case 47:
|
1540
|
+
append(comment(commenter(next(), caret()), root, parent), declarations);
|
1541
|
+
break;
|
1542
|
+
default:
|
1543
|
+
characters2 += "/";
|
1544
|
+
}
|
1545
|
+
break;
|
1546
|
+
case 123 * variable:
|
1547
|
+
points[index++] = strlen(characters2) * ampersand;
|
1548
|
+
case 125 * variable:
|
1549
|
+
case 59:
|
1550
|
+
case 0:
|
1551
|
+
switch (character2) {
|
1552
|
+
case 0:
|
1553
|
+
case 125:
|
1554
|
+
scanning = 0;
|
1555
|
+
case 59 + offset:
|
1556
|
+
if (property > 0 && strlen(characters2) - length2)
|
1557
|
+
append(property > 32 ? declaration(characters2 + ";", rule, parent, length2 - 1) : declaration(replace(characters2, " ", "") + ";", rule, parent, length2 - 2), declarations);
|
1558
|
+
break;
|
1559
|
+
case 59:
|
1560
|
+
characters2 += ";";
|
1561
|
+
default:
|
1562
|
+
append(reference = ruleset(characters2, root, parent, index, offset, rules, points, type, props = [], children = [], length2), rulesets);
|
1563
|
+
if (character2 === 123)
|
1564
|
+
if (offset === 0)
|
1565
|
+
parse(characters2, root, reference, reference, props, rulesets, length2, points, children);
|
1566
|
+
else
|
1567
|
+
switch (atrule === 99 && charat(characters2, 3) === 110 ? 100 : atrule) {
|
1568
|
+
case 100:
|
1569
|
+
case 109:
|
1570
|
+
case 115:
|
1571
|
+
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);
|
1572
|
+
break;
|
1573
|
+
default:
|
1574
|
+
parse(characters2, reference, reference, reference, [""], children, 0, points, children);
|
1575
|
+
}
|
1576
|
+
}
|
1577
|
+
index = offset = property = 0, variable = ampersand = 1, type = characters2 = "", length2 = pseudo;
|
1578
|
+
break;
|
1579
|
+
case 58:
|
1580
|
+
length2 = 1 + strlen(characters2), property = previous;
|
1581
|
+
default:
|
1582
|
+
if (variable < 1) {
|
1583
|
+
if (character2 == 123)
|
1584
|
+
--variable;
|
1585
|
+
else if (character2 == 125 && variable++ == 0 && prev() == 125)
|
1586
|
+
continue;
|
1587
|
+
}
|
1588
|
+
switch (characters2 += from(character2), character2 * variable) {
|
1589
|
+
case 38:
|
1590
|
+
ampersand = offset > 0 ? 1 : (characters2 += "\f", -1);
|
1591
|
+
break;
|
1592
|
+
case 44:
|
1593
|
+
points[index++] = (strlen(characters2) - 1) * ampersand, ampersand = 1;
|
1594
|
+
break;
|
1595
|
+
case 64:
|
1596
|
+
if (peek() === 45)
|
1597
|
+
characters2 += delimit(next());
|
1598
|
+
atrule = peek(), offset = length2 = strlen(type = characters2 += identifier(caret())), character2++;
|
1599
|
+
break;
|
1600
|
+
case 45:
|
1601
|
+
if (previous === 45 && strlen(characters2) == 2)
|
1602
|
+
variable = 0;
|
1603
|
+
}
|
1604
|
+
}
|
1605
|
+
return rulesets;
|
1606
|
+
}
|
1607
|
+
function ruleset(value, root, parent, index, offset, rules, points, type, props, children, length2) {
|
1608
|
+
var post = offset - 1;
|
1609
|
+
var rule = offset === 0 ? rules : [""];
|
1610
|
+
var size = sizeof(rule);
|
1611
|
+
for (var i = 0, j = 0, k = 0; i < index; ++i)
|
1612
|
+
for (var x = 0, y = substr(value, post + 1, post = abs(j = points[i])), z = value; x < size; ++x)
|
1613
|
+
if (z = trim(j > 0 ? rule[x] + " " + y : replace(y, /&\f/g, rule[x])))
|
1614
|
+
props[k++] = z;
|
1615
|
+
return node(value, root, parent, offset === 0 ? RULESET : type, props, children, length2);
|
1616
|
+
}
|
1617
|
+
function comment(value, root, parent) {
|
1618
|
+
return node(value, root, parent, COMMENT, from(char()), substr(value, 2, -2), 0);
|
1619
|
+
}
|
1620
|
+
function declaration(value, root, parent, length2) {
|
1621
|
+
return node(value, root, parent, DECLARATION, substr(value, 0, length2), substr(value, length2 + 1, -1), length2);
|
1622
|
+
}
|
1623
|
+
|
1624
|
+
// ../../node_modules/stylis/src/Serializer.js
|
1625
|
+
function serialize(children, callback) {
|
1626
|
+
var output = "";
|
1627
|
+
var length2 = sizeof(children);
|
1628
|
+
for (var i = 0; i < length2; i++)
|
1629
|
+
output += callback(children[i], i, children, callback) || "";
|
1630
|
+
return output;
|
1631
|
+
}
|
1632
|
+
function stringify(element, index, children, callback) {
|
1633
|
+
switch (element.type) {
|
1634
|
+
case IMPORT:
|
1635
|
+
case DECLARATION:
|
1636
|
+
return element.return = element.return || element.value;
|
1637
|
+
case COMMENT:
|
1638
|
+
return "";
|
1639
|
+
case KEYFRAMES:
|
1640
|
+
return element.return = element.value + "{" + serialize(element.children, callback) + "}";
|
1641
|
+
case RULESET:
|
1642
|
+
element.value = element.props.join(",");
|
1643
|
+
}
|
1644
|
+
return strlen(children = serialize(element.children, callback)) ? element.return = element.value + "{" + children + "}" : "";
|
1645
|
+
}
|
1646
|
+
|
1647
|
+
// ../../node_modules/stylis/src/Middleware.js
|
1648
|
+
function middleware(collection) {
|
1649
|
+
var length2 = sizeof(collection);
|
1650
|
+
return function(element, index, children, callback) {
|
1651
|
+
var output = "";
|
1652
|
+
for (var i = 0; i < length2; i++)
|
1653
|
+
output += collection[i](element, index, children, callback) || "";
|
1654
|
+
return output;
|
1655
|
+
};
|
1656
|
+
}
|
1657
|
+
function rulesheet(callback) {
|
1658
|
+
return function(element) {
|
1659
|
+
if (!element.root) {
|
1660
|
+
if (element = element.return)
|
1661
|
+
callback(element);
|
1662
|
+
}
|
1663
|
+
};
|
1664
|
+
}
|
1665
|
+
|
1666
|
+
// ../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js
|
1667
|
+
var weakMemoize = function weakMemoize2(func) {
|
1668
|
+
var cache = /* @__PURE__ */ new WeakMap();
|
1669
|
+
return function(arg) {
|
1670
|
+
if (cache.has(arg)) {
|
1671
|
+
return cache.get(arg);
|
1672
|
+
}
|
1673
|
+
var ret = func(arg);
|
1674
|
+
cache.set(arg, ret);
|
1675
|
+
return ret;
|
1676
|
+
};
|
1677
|
+
};
|
1678
|
+
var emotion_weak_memoize_esm_default = weakMemoize;
|
1679
|
+
|
1680
|
+
// ../../node_modules/@emotion/memoize/dist/emotion-memoize.esm.js
|
1681
|
+
function memoize(fn) {
|
1682
|
+
var cache = /* @__PURE__ */ Object.create(null);
|
1683
|
+
return function(arg) {
|
1684
|
+
if (cache[arg] === void 0)
|
1685
|
+
cache[arg] = fn(arg);
|
1686
|
+
return cache[arg];
|
1687
|
+
};
|
1688
|
+
}
|
1689
|
+
var emotion_memoize_esm_default = memoize;
|
1690
|
+
|
1691
|
+
// ../../node_modules/@emotion/cache/dist/emotion-cache.esm.js
|
1692
|
+
var identifierWithPointTracking = function identifierWithPointTracking2(begin, points, index) {
|
1693
|
+
var previous = 0;
|
1694
|
+
var character2 = 0;
|
1695
|
+
while (true) {
|
1696
|
+
previous = character2;
|
1697
|
+
character2 = peek();
|
1698
|
+
if (previous === 38 && character2 === 12) {
|
1699
|
+
points[index] = 1;
|
1700
|
+
}
|
1701
|
+
if (token(character2)) {
|
1702
|
+
break;
|
1703
|
+
}
|
1704
|
+
next();
|
1705
|
+
}
|
1706
|
+
return slice(begin, position);
|
1707
|
+
};
|
1708
|
+
var toRules = function toRules2(parsed, points) {
|
1709
|
+
var index = -1;
|
1710
|
+
var character2 = 44;
|
1711
|
+
do {
|
1712
|
+
switch (token(character2)) {
|
1713
|
+
case 0:
|
1714
|
+
if (character2 === 38 && peek() === 12) {
|
1715
|
+
points[index] = 1;
|
1716
|
+
}
|
1717
|
+
parsed[index] += identifierWithPointTracking(position - 1, points, index);
|
1718
|
+
break;
|
1719
|
+
case 2:
|
1720
|
+
parsed[index] += delimit(character2);
|
1721
|
+
break;
|
1722
|
+
case 4:
|
1723
|
+
if (character2 === 44) {
|
1724
|
+
parsed[++index] = peek() === 58 ? "&\f" : "";
|
1725
|
+
points[index] = parsed[index].length;
|
1726
|
+
break;
|
1727
|
+
}
|
1728
|
+
default:
|
1729
|
+
parsed[index] += from(character2);
|
1730
|
+
}
|
1731
|
+
} while (character2 = next());
|
1732
|
+
return parsed;
|
1733
|
+
};
|
1734
|
+
var getRules = function getRules2(value, points) {
|
1735
|
+
return dealloc(toRules(alloc(value), points));
|
1736
|
+
};
|
1737
|
+
var fixedElements = /* @__PURE__ */ new WeakMap();
|
1738
|
+
var compat = function compat2(element) {
|
1739
|
+
if (element.type !== "rule" || !element.parent || // positive .length indicates that this rule contains pseudo
|
1740
|
+
// negative .length indicates that this rule has been already prefixed
|
1741
|
+
element.length < 1) {
|
1742
|
+
return;
|
1743
|
+
}
|
1744
|
+
var value = element.value, parent = element.parent;
|
1745
|
+
var isImplicitRule = element.column === parent.column && element.line === parent.line;
|
1746
|
+
while (parent.type !== "rule") {
|
1747
|
+
parent = parent.parent;
|
1748
|
+
if (!parent)
|
1749
|
+
return;
|
1750
|
+
}
|
1751
|
+
if (element.props.length === 1 && value.charCodeAt(0) !== 58 && !fixedElements.get(parent)) {
|
1752
|
+
return;
|
1753
|
+
}
|
1754
|
+
if (isImplicitRule) {
|
1755
|
+
return;
|
1756
|
+
}
|
1757
|
+
fixedElements.set(element, true);
|
1758
|
+
var points = [];
|
1759
|
+
var rules = getRules(value, points);
|
1760
|
+
var parentRules = parent.props;
|
1761
|
+
for (var i = 0, k = 0; i < rules.length; i++) {
|
1762
|
+
for (var j = 0; j < parentRules.length; j++, k++) {
|
1763
|
+
element.props[k] = points[i] ? rules[i].replace(/&\f/g, parentRules[j]) : parentRules[j] + " " + rules[i];
|
1764
|
+
}
|
1765
|
+
}
|
1766
|
+
};
|
1767
|
+
var removeLabel = function removeLabel2(element) {
|
1768
|
+
if (element.type === "decl") {
|
1769
|
+
var value = element.value;
|
1770
|
+
if (
|
1771
|
+
// charcode for l
|
1772
|
+
value.charCodeAt(0) === 108 && // charcode for b
|
1773
|
+
value.charCodeAt(2) === 98
|
1774
|
+
) {
|
1775
|
+
element["return"] = "";
|
1776
|
+
element.value = "";
|
1777
|
+
}
|
1778
|
+
}
|
1779
|
+
};
|
1780
|
+
var ignoreFlag = "emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason";
|
1781
|
+
var isIgnoringComment = function isIgnoringComment2(element) {
|
1782
|
+
return element.type === "comm" && element.children.indexOf(ignoreFlag) > -1;
|
1783
|
+
};
|
1784
|
+
var createUnsafeSelectorsAlarm = function createUnsafeSelectorsAlarm2(cache) {
|
1785
|
+
return function(element, index, children) {
|
1786
|
+
if (element.type !== "rule" || cache.compat)
|
1787
|
+
return;
|
1788
|
+
var unsafePseudoClasses = element.value.match(/(:first|:nth|:nth-last)-child/g);
|
1789
|
+
if (unsafePseudoClasses) {
|
1790
|
+
var isNested = element.parent === children[0];
|
1791
|
+
var commentContainer = isNested ? children[0].children : (
|
1792
|
+
// global rule at the root level
|
1793
|
+
children
|
1794
|
+
);
|
1795
|
+
for (var i = commentContainer.length - 1; i >= 0; i--) {
|
1796
|
+
var node2 = commentContainer[i];
|
1797
|
+
if (node2.line < element.line) {
|
1798
|
+
break;
|
1799
|
+
}
|
1800
|
+
if (node2.column < element.column) {
|
1801
|
+
if (isIgnoringComment(node2)) {
|
1802
|
+
return;
|
1803
|
+
}
|
1804
|
+
break;
|
1805
|
+
}
|
1806
|
+
}
|
1807
|
+
unsafePseudoClasses.forEach(function(unsafePseudoClass) {
|
1808
|
+
console.error('The pseudo class "' + unsafePseudoClass + '" is potentially unsafe when doing server-side rendering. Try changing it to "' + unsafePseudoClass.split("-child")[0] + '-of-type".');
|
1809
|
+
});
|
1810
|
+
}
|
1811
|
+
};
|
1812
|
+
};
|
1813
|
+
var isImportRule = function isImportRule2(element) {
|
1814
|
+
return element.type.charCodeAt(1) === 105 && element.type.charCodeAt(0) === 64;
|
1815
|
+
};
|
1816
|
+
var isPrependedWithRegularRules = function isPrependedWithRegularRules2(index, children) {
|
1817
|
+
for (var i = index - 1; i >= 0; i--) {
|
1818
|
+
if (!isImportRule(children[i])) {
|
1819
|
+
return true;
|
1820
|
+
}
|
1821
|
+
}
|
1822
|
+
return false;
|
1823
|
+
};
|
1824
|
+
var nullifyElement = function nullifyElement2(element) {
|
1825
|
+
element.type = "";
|
1826
|
+
element.value = "";
|
1827
|
+
element["return"] = "";
|
1828
|
+
element.children = "";
|
1829
|
+
element.props = "";
|
1830
|
+
};
|
1831
|
+
var incorrectImportAlarm = function incorrectImportAlarm2(element, index, children) {
|
1832
|
+
if (!isImportRule(element)) {
|
1833
|
+
return;
|
1834
|
+
}
|
1835
|
+
if (element.parent) {
|
1836
|
+
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.");
|
1837
|
+
nullifyElement(element);
|
1838
|
+
} else if (isPrependedWithRegularRules(index, children)) {
|
1839
|
+
console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules.");
|
1840
|
+
nullifyElement(element);
|
1841
|
+
}
|
1842
|
+
};
|
1843
|
+
function prefix(value, length2) {
|
1844
|
+
switch (hash(value, length2)) {
|
1845
|
+
case 5103:
|
1846
|
+
return WEBKIT + "print-" + value + value;
|
1847
|
+
case 5737:
|
1848
|
+
case 4201:
|
1849
|
+
case 3177:
|
1850
|
+
case 3433:
|
1851
|
+
case 1641:
|
1852
|
+
case 4457:
|
1853
|
+
case 2921:
|
1854
|
+
case 5572:
|
1855
|
+
case 6356:
|
1856
|
+
case 5844:
|
1857
|
+
case 3191:
|
1858
|
+
case 6645:
|
1859
|
+
case 3005:
|
1860
|
+
case 6391:
|
1861
|
+
case 5879:
|
1862
|
+
case 5623:
|
1863
|
+
case 6135:
|
1864
|
+
case 4599:
|
1865
|
+
case 4855:
|
1866
|
+
case 4215:
|
1867
|
+
case 6389:
|
1868
|
+
case 5109:
|
1869
|
+
case 5365:
|
1870
|
+
case 5621:
|
1871
|
+
case 3829:
|
1872
|
+
return WEBKIT + value + value;
|
1873
|
+
case 5349:
|
1874
|
+
case 4246:
|
1875
|
+
case 4810:
|
1876
|
+
case 6968:
|
1877
|
+
case 2756:
|
1878
|
+
return WEBKIT + value + MOZ + value + MS + value + value;
|
1879
|
+
case 6828:
|
1880
|
+
case 4268:
|
1881
|
+
return WEBKIT + value + MS + value + value;
|
1882
|
+
case 6165:
|
1883
|
+
return WEBKIT + value + MS + "flex-" + value + value;
|
1884
|
+
case 5187:
|
1885
|
+
return WEBKIT + value + replace(value, /(\w+).+(:[^]+)/, WEBKIT + "box-$1$2" + MS + "flex-$1$2") + value;
|
1886
|
+
case 5443:
|
1887
|
+
return WEBKIT + value + MS + "flex-item-" + replace(value, /flex-|-self/, "") + value;
|
1888
|
+
case 4675:
|
1889
|
+
return WEBKIT + value + MS + "flex-line-pack" + replace(value, /align-content|flex-|-self/, "") + value;
|
1890
|
+
case 5548:
|
1891
|
+
return WEBKIT + value + MS + replace(value, "shrink", "negative") + value;
|
1892
|
+
case 5292:
|
1893
|
+
return WEBKIT + value + MS + replace(value, "basis", "preferred-size") + value;
|
1894
|
+
case 6060:
|
1895
|
+
return WEBKIT + "box-" + replace(value, "-grow", "") + WEBKIT + value + MS + replace(value, "grow", "positive") + value;
|
1896
|
+
case 4554:
|
1897
|
+
return WEBKIT + replace(value, /([^-])(transform)/g, "$1" + WEBKIT + "$2") + value;
|
1898
|
+
case 6187:
|
1899
|
+
return replace(replace(replace(value, /(zoom-|grab)/, WEBKIT + "$1"), /(image-set)/, WEBKIT + "$1"), value, "") + value;
|
1900
|
+
case 5495:
|
1901
|
+
case 3959:
|
1902
|
+
return replace(value, /(image-set\([^]*)/, WEBKIT + "$1$`$1");
|
1903
|
+
case 4968:
|
1904
|
+
return replace(replace(value, /(.+:)(flex-)?(.*)/, WEBKIT + "box-pack:$3" + MS + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + WEBKIT + value + value;
|
1905
|
+
case 4095:
|
1906
|
+
case 3583:
|
1907
|
+
case 4068:
|
1908
|
+
case 2532:
|
1909
|
+
return replace(value, /(.+)-inline(.+)/, WEBKIT + "$1$2") + value;
|
1910
|
+
case 8116:
|
1911
|
+
case 7059:
|
1912
|
+
case 5753:
|
1913
|
+
case 5535:
|
1914
|
+
case 5445:
|
1915
|
+
case 5701:
|
1916
|
+
case 4933:
|
1917
|
+
case 4677:
|
1918
|
+
case 5533:
|
1919
|
+
case 5789:
|
1920
|
+
case 5021:
|
1921
|
+
case 4765:
|
1922
|
+
if (strlen(value) - 1 - length2 > 6)
|
1923
|
+
switch (charat(value, length2 + 1)) {
|
1924
|
+
case 109:
|
1925
|
+
if (charat(value, length2 + 4) !== 45)
|
1926
|
+
break;
|
1927
|
+
case 102:
|
1928
|
+
return replace(value, /(.+:)(.+)-([^]+)/, "$1" + WEBKIT + "$2-$3$1" + MOZ + (charat(value, length2 + 3) == 108 ? "$3" : "$2-$3")) + value;
|
1929
|
+
case 115:
|
1930
|
+
return ~indexof(value, "stretch") ? prefix(replace(value, "stretch", "fill-available"), length2) + value : value;
|
1931
|
+
}
|
1932
|
+
break;
|
1933
|
+
case 4949:
|
1934
|
+
if (charat(value, length2 + 1) !== 115)
|
1935
|
+
break;
|
1936
|
+
case 6444:
|
1937
|
+
switch (charat(value, strlen(value) - 3 - (~indexof(value, "!important") && 10))) {
|
1938
|
+
case 107:
|
1939
|
+
return replace(value, ":", ":" + WEBKIT) + value;
|
1940
|
+
case 101:
|
1941
|
+
return replace(value, /(.+:)([^;!]+)(;|!.+)?/, "$1" + WEBKIT + (charat(value, 14) === 45 ? "inline-" : "") + "box$3$1" + WEBKIT + "$2$3$1" + MS + "$2box$3") + value;
|
1942
|
+
}
|
1943
|
+
break;
|
1944
|
+
case 5936:
|
1945
|
+
switch (charat(value, length2 + 11)) {
|
1946
|
+
case 114:
|
1947
|
+
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "tb") + value;
|
1948
|
+
case 108:
|
1949
|
+
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "tb-rl") + value;
|
1950
|
+
case 45:
|
1951
|
+
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "lr") + value;
|
1952
|
+
}
|
1953
|
+
return WEBKIT + value + MS + value + value;
|
1954
|
+
}
|
1955
|
+
return value;
|
1956
|
+
}
|
1957
|
+
var prefixer = function prefixer2(element, index, children, callback) {
|
1958
|
+
if (element.length > -1) {
|
1959
|
+
if (!element["return"])
|
1960
|
+
switch (element.type) {
|
1961
|
+
case DECLARATION:
|
1962
|
+
element["return"] = prefix(element.value, element.length);
|
1963
|
+
break;
|
1964
|
+
case KEYFRAMES:
|
1965
|
+
return serialize([copy(element, {
|
1966
|
+
value: replace(element.value, "@", "@" + WEBKIT)
|
1967
|
+
})], callback);
|
1968
|
+
case RULESET:
|
1969
|
+
if (element.length)
|
1970
|
+
return combine(element.props, function(value) {
|
1971
|
+
switch (match(value, /(::plac\w+|:read-\w+)/)) {
|
1972
|
+
case ":read-only":
|
1973
|
+
case ":read-write":
|
1974
|
+
return serialize([copy(element, {
|
1975
|
+
props: [replace(value, /:(read-\w+)/, ":" + MOZ + "$1")]
|
1976
|
+
})], callback);
|
1977
|
+
case "::placeholder":
|
1978
|
+
return serialize([copy(element, {
|
1979
|
+
props: [replace(value, /:(plac\w+)/, ":" + WEBKIT + "input-$1")]
|
1980
|
+
}), copy(element, {
|
1981
|
+
props: [replace(value, /:(plac\w+)/, ":" + MOZ + "$1")]
|
1982
|
+
}), copy(element, {
|
1983
|
+
props: [replace(value, /:(plac\w+)/, MS + "input-$1")]
|
1984
|
+
})], callback);
|
1985
|
+
}
|
1986
|
+
return "";
|
1987
|
+
});
|
1988
|
+
}
|
1989
|
+
}
|
1990
|
+
};
|
1991
|
+
var isBrowser = typeof document !== "undefined";
|
1992
|
+
var getServerStylisCache = isBrowser ? void 0 : emotion_weak_memoize_esm_default(function() {
|
1993
|
+
return emotion_memoize_esm_default(function() {
|
1994
|
+
var cache = {};
|
1995
|
+
return function(name) {
|
1996
|
+
return cache[name];
|
1997
|
+
};
|
1998
|
+
});
|
1999
|
+
});
|
2000
|
+
var defaultStylisPlugins = [prefixer];
|
2001
|
+
var createCache = function createCache2(options) {
|
2002
|
+
var key = options.key;
|
2003
|
+
if (process.env.NODE_ENV !== "production" && !key) {
|
2004
|
+
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.");
|
2005
|
+
}
|
2006
|
+
if (isBrowser && key === "css") {
|
2007
|
+
var ssrStyles = document.querySelectorAll("style[data-emotion]:not([data-s])");
|
2008
|
+
Array.prototype.forEach.call(ssrStyles, function(node2) {
|
2009
|
+
var dataEmotionAttribute = node2.getAttribute("data-emotion");
|
2010
|
+
if (dataEmotionAttribute.indexOf(" ") === -1) {
|
2011
|
+
return;
|
2012
|
+
}
|
2013
|
+
document.head.appendChild(node2);
|
2014
|
+
node2.setAttribute("data-s", "");
|
2015
|
+
});
|
2016
|
+
}
|
2017
|
+
var stylisPlugins = options.stylisPlugins || defaultStylisPlugins;
|
2018
|
+
if (process.env.NODE_ENV !== "production") {
|
2019
|
+
if (/[^a-z-]/.test(key)) {
|
2020
|
+
throw new Error('Emotion key must only contain lower case alphabetical characters and - but "' + key + '" was passed');
|
2021
|
+
}
|
2022
|
+
}
|
2023
|
+
var inserted = {};
|
2024
|
+
var container;
|
2025
|
+
var nodesToHydrate = [];
|
2026
|
+
if (isBrowser) {
|
2027
|
+
container = options.container || document.head;
|
2028
|
+
Array.prototype.forEach.call(
|
2029
|
+
// this means we will ignore elements which don't have a space in them which
|
2030
|
+
// means that the style elements we're looking at are only Emotion 11 server-rendered style elements
|
2031
|
+
document.querySelectorAll('style[data-emotion^="' + key + ' "]'),
|
2032
|
+
function(node2) {
|
2033
|
+
var attrib = node2.getAttribute("data-emotion").split(" ");
|
2034
|
+
for (var i = 1; i < attrib.length; i++) {
|
2035
|
+
inserted[attrib[i]] = true;
|
2036
|
+
}
|
2037
|
+
nodesToHydrate.push(node2);
|
2038
|
+
}
|
2039
|
+
);
|
2040
|
+
}
|
2041
|
+
var _insert;
|
2042
|
+
var omnipresentPlugins = [compat, removeLabel];
|
2043
|
+
if (process.env.NODE_ENV !== "production") {
|
2044
|
+
omnipresentPlugins.push(createUnsafeSelectorsAlarm({
|
2045
|
+
get compat() {
|
2046
|
+
return cache.compat;
|
2047
|
+
}
|
2048
|
+
}), incorrectImportAlarm);
|
2049
|
+
}
|
2050
|
+
if (isBrowser) {
|
2051
|
+
var currentSheet;
|
2052
|
+
var finalizingPlugins = [stringify, process.env.NODE_ENV !== "production" ? function(element) {
|
2053
|
+
if (!element.root) {
|
2054
|
+
if (element["return"]) {
|
2055
|
+
currentSheet.insert(element["return"]);
|
2056
|
+
} else if (element.value && element.type !== COMMENT) {
|
2057
|
+
currentSheet.insert(element.value + "{}");
|
2058
|
+
}
|
2059
|
+
}
|
2060
|
+
} : rulesheet(function(rule) {
|
2061
|
+
currentSheet.insert(rule);
|
2062
|
+
})];
|
2063
|
+
var serializer = middleware(omnipresentPlugins.concat(stylisPlugins, finalizingPlugins));
|
2064
|
+
var stylis = function stylis2(styles) {
|
2065
|
+
return serialize(compile(styles), serializer);
|
2066
|
+
};
|
2067
|
+
_insert = function insert(selector, serialized, sheet, shouldCache) {
|
2068
|
+
currentSheet = sheet;
|
2069
|
+
if (process.env.NODE_ENV !== "production" && serialized.map !== void 0) {
|
2070
|
+
currentSheet = {
|
2071
|
+
insert: function insert2(rule) {
|
2072
|
+
sheet.insert(rule + serialized.map);
|
2073
|
+
}
|
2074
|
+
};
|
2075
|
+
}
|
2076
|
+
stylis(selector ? selector + "{" + serialized.styles + "}" : serialized.styles);
|
2077
|
+
if (shouldCache) {
|
2078
|
+
cache.inserted[serialized.name] = true;
|
2079
|
+
}
|
2080
|
+
};
|
2081
|
+
} else {
|
2082
|
+
var _finalizingPlugins = [stringify];
|
2083
|
+
var _serializer = middleware(omnipresentPlugins.concat(stylisPlugins, _finalizingPlugins));
|
2084
|
+
var _stylis = function _stylis2(styles) {
|
2085
|
+
return serialize(compile(styles), _serializer);
|
2086
|
+
};
|
2087
|
+
var serverStylisCache = getServerStylisCache(stylisPlugins)(key);
|
2088
|
+
var getRules3 = function getRules4(selector, serialized) {
|
2089
|
+
var name = serialized.name;
|
2090
|
+
if (serverStylisCache[name] === void 0) {
|
2091
|
+
serverStylisCache[name] = _stylis(selector ? selector + "{" + serialized.styles + "}" : serialized.styles);
|
2092
|
+
}
|
2093
|
+
return serverStylisCache[name];
|
2094
|
+
};
|
2095
|
+
_insert = function _insert2(selector, serialized, sheet, shouldCache) {
|
2096
|
+
var name = serialized.name;
|
2097
|
+
var rules = getRules3(selector, serialized);
|
2098
|
+
if (cache.compat === void 0) {
|
2099
|
+
if (shouldCache) {
|
2100
|
+
cache.inserted[name] = true;
|
2101
|
+
}
|
2102
|
+
if (
|
2103
|
+
// using === development instead of !== production
|
2104
|
+
// because if people do ssr in tests, the source maps showing up would be annoying
|
2105
|
+
process.env.NODE_ENV === "development" && serialized.map !== void 0
|
2106
|
+
) {
|
2107
|
+
return rules + serialized.map;
|
2108
|
+
}
|
2109
|
+
return rules;
|
2110
|
+
} else {
|
2111
|
+
if (shouldCache) {
|
2112
|
+
cache.inserted[name] = rules;
|
2113
|
+
} else {
|
2114
|
+
return rules;
|
2115
|
+
}
|
2116
|
+
}
|
2117
|
+
};
|
2118
|
+
}
|
2119
|
+
var cache = {
|
2120
|
+
key,
|
2121
|
+
sheet: new StyleSheet({
|
2122
|
+
key,
|
2123
|
+
container,
|
2124
|
+
nonce: options.nonce,
|
2125
|
+
speedy: options.speedy,
|
2126
|
+
prepend: options.prepend,
|
2127
|
+
insertionPoint: options.insertionPoint
|
2128
|
+
}),
|
2129
|
+
nonce: options.nonce,
|
2130
|
+
inserted,
|
2131
|
+
registered: {},
|
2132
|
+
insert: _insert
|
2133
|
+
};
|
2134
|
+
cache.sheet.hydrate(nodesToHydrate);
|
2135
|
+
return cache;
|
2136
|
+
};
|
2137
|
+
var emotion_cache_esm_default = createCache;
|
2138
|
+
|
2139
|
+
// ../../node_modules/@emotion/react/dist/emotion-element-3838ba9e.esm.js
|
2140
|
+
import { createContext, useContext, forwardRef, createElement, Fragment } from "react";
|
2141
|
+
|
2142
|
+
// ../../node_modules/@babel/runtime/helpers/esm/extends.js
|
2143
|
+
function _extends() {
|
2144
|
+
_extends = Object.assign ? Object.assign.bind() : function(target) {
|
2145
|
+
for (var i = 1; i < arguments.length; i++) {
|
2146
|
+
var source = arguments[i];
|
2147
|
+
for (var key in source) {
|
2148
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
2149
|
+
target[key] = source[key];
|
2150
|
+
}
|
2151
|
+
}
|
2152
|
+
}
|
2153
|
+
return target;
|
2154
|
+
};
|
2155
|
+
return _extends.apply(this, arguments);
|
2156
|
+
}
|
2157
|
+
|
2158
|
+
// ../../node_modules/@emotion/utils/dist/emotion-utils.esm.js
|
2159
|
+
var isBrowser2 = typeof document !== "undefined";
|
2160
|
+
function getRegisteredStyles(registered, registeredStyles, classNames) {
|
2161
|
+
var rawClassName = "";
|
2162
|
+
classNames.split(" ").forEach(function(className) {
|
2163
|
+
if (registered[className] !== void 0) {
|
2164
|
+
registeredStyles.push(registered[className] + ";");
|
2165
|
+
} else {
|
2166
|
+
rawClassName += className + " ";
|
2167
|
+
}
|
2168
|
+
});
|
2169
|
+
return rawClassName;
|
2170
|
+
}
|
2171
|
+
var registerStyles = function registerStyles2(cache, serialized, isStringTag) {
|
2172
|
+
var className = cache.key + "-" + serialized.name;
|
2173
|
+
if (
|
2174
|
+
// we only need to add the styles to the registered cache if the
|
2175
|
+
// class name could be used further down
|
2176
|
+
// the tree but if it's a string tag, we know it won't
|
2177
|
+
// so we don't have to add it to registered cache.
|
2178
|
+
// this improves memory usage since we can avoid storing the whole style string
|
2179
|
+
(isStringTag === false || // we need to always store it if we're in compat mode and
|
2180
|
+
// in node since emotion-server relies on whether a style is in
|
2181
|
+
// the registered cache to know whether a style is global or not
|
2182
|
+
// also, note that this check will be dead code eliminated in the browser
|
2183
|
+
isBrowser2 === false && cache.compat !== void 0) && cache.registered[className] === void 0
|
2184
|
+
) {
|
2185
|
+
cache.registered[className] = serialized.styles;
|
2186
|
+
}
|
2187
|
+
};
|
2188
|
+
var insertStyles = function insertStyles2(cache, serialized, isStringTag) {
|
2189
|
+
registerStyles(cache, serialized, isStringTag);
|
2190
|
+
var className = cache.key + "-" + serialized.name;
|
2191
|
+
if (cache.inserted[serialized.name] === void 0) {
|
2192
|
+
var stylesForSSR = "";
|
2193
|
+
var current = serialized;
|
2194
|
+
do {
|
2195
|
+
var maybeStyles = cache.insert(serialized === current ? "." + className : "", current, cache.sheet, true);
|
2196
|
+
if (!isBrowser2 && maybeStyles !== void 0) {
|
2197
|
+
stylesForSSR += maybeStyles;
|
2198
|
+
}
|
2199
|
+
current = current.next;
|
2200
|
+
} while (current !== void 0);
|
2201
|
+
if (!isBrowser2 && stylesForSSR.length !== 0) {
|
2202
|
+
return stylesForSSR;
|
2203
|
+
}
|
2204
|
+
}
|
2205
|
+
};
|
2206
|
+
|
2207
|
+
// ../../node_modules/@emotion/hash/dist/emotion-hash.esm.js
|
2208
|
+
function murmur2(str) {
|
2209
|
+
var h = 0;
|
2210
|
+
var k, i = 0, len = str.length;
|
2211
|
+
for (; len >= 4; ++i, len -= 4) {
|
2212
|
+
k = str.charCodeAt(i) & 255 | (str.charCodeAt(++i) & 255) << 8 | (str.charCodeAt(++i) & 255) << 16 | (str.charCodeAt(++i) & 255) << 24;
|
2213
|
+
k = /* Math.imul(k, m): */
|
2214
|
+
(k & 65535) * 1540483477 + ((k >>> 16) * 59797 << 16);
|
2215
|
+
k ^= /* k >>> r: */
|
2216
|
+
k >>> 24;
|
2217
|
+
h = /* Math.imul(k, m): */
|
2218
|
+
(k & 65535) * 1540483477 + ((k >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */
|
2219
|
+
(h & 65535) * 1540483477 + ((h >>> 16) * 59797 << 16);
|
2220
|
+
}
|
2221
|
+
switch (len) {
|
2222
|
+
case 3:
|
2223
|
+
h ^= (str.charCodeAt(i + 2) & 255) << 16;
|
2224
|
+
case 2:
|
2225
|
+
h ^= (str.charCodeAt(i + 1) & 255) << 8;
|
2226
|
+
case 1:
|
2227
|
+
h ^= str.charCodeAt(i) & 255;
|
2228
|
+
h = /* Math.imul(h, m): */
|
2229
|
+
(h & 65535) * 1540483477 + ((h >>> 16) * 59797 << 16);
|
2230
|
+
}
|
2231
|
+
h ^= h >>> 13;
|
2232
|
+
h = /* Math.imul(h, m): */
|
2233
|
+
(h & 65535) * 1540483477 + ((h >>> 16) * 59797 << 16);
|
2234
|
+
return ((h ^ h >>> 15) >>> 0).toString(36);
|
2235
|
+
}
|
2236
|
+
var emotion_hash_esm_default = murmur2;
|
2237
|
+
|
2238
|
+
// ../../node_modules/@emotion/unitless/dist/emotion-unitless.esm.js
|
2239
|
+
var unitlessKeys = {
|
2240
|
+
animationIterationCount: 1,
|
2241
|
+
borderImageOutset: 1,
|
2242
|
+
borderImageSlice: 1,
|
2243
|
+
borderImageWidth: 1,
|
2244
|
+
boxFlex: 1,
|
2245
|
+
boxFlexGroup: 1,
|
2246
|
+
boxOrdinalGroup: 1,
|
2247
|
+
columnCount: 1,
|
2248
|
+
columns: 1,
|
2249
|
+
flex: 1,
|
2250
|
+
flexGrow: 1,
|
2251
|
+
flexPositive: 1,
|
2252
|
+
flexShrink: 1,
|
2253
|
+
flexNegative: 1,
|
2254
|
+
flexOrder: 1,
|
2255
|
+
gridRow: 1,
|
2256
|
+
gridRowEnd: 1,
|
2257
|
+
gridRowSpan: 1,
|
2258
|
+
gridRowStart: 1,
|
2259
|
+
gridColumn: 1,
|
2260
|
+
gridColumnEnd: 1,
|
2261
|
+
gridColumnSpan: 1,
|
2262
|
+
gridColumnStart: 1,
|
2263
|
+
msGridRow: 1,
|
2264
|
+
msGridRowSpan: 1,
|
2265
|
+
msGridColumn: 1,
|
2266
|
+
msGridColumnSpan: 1,
|
2267
|
+
fontWeight: 1,
|
2268
|
+
lineHeight: 1,
|
2269
|
+
opacity: 1,
|
2270
|
+
order: 1,
|
2271
|
+
orphans: 1,
|
2272
|
+
tabSize: 1,
|
2273
|
+
widows: 1,
|
2274
|
+
zIndex: 1,
|
2275
|
+
zoom: 1,
|
2276
|
+
WebkitLineClamp: 1,
|
2277
|
+
// SVG-related properties
|
2278
|
+
fillOpacity: 1,
|
2279
|
+
floodOpacity: 1,
|
2280
|
+
stopOpacity: 1,
|
2281
|
+
strokeDasharray: 1,
|
2282
|
+
strokeDashoffset: 1,
|
2283
|
+
strokeMiterlimit: 1,
|
2284
|
+
strokeOpacity: 1,
|
2285
|
+
strokeWidth: 1
|
2286
|
+
};
|
2287
|
+
var emotion_unitless_esm_default = unitlessKeys;
|
2288
|
+
|
2289
|
+
// ../../node_modules/@emotion/serialize/dist/emotion-serialize.esm.js
|
2290
|
+
var ILLEGAL_ESCAPE_SEQUENCE_ERROR = `You have illegal escape sequence in your template literal, most likely inside content's property value.
|
2291
|
+
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';".
|
2292
|
+
You can read more about this here:
|
2293
|
+
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`;
|
2294
|
+
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).";
|
2295
|
+
var hyphenateRegex = /[A-Z]|^ms/g;
|
2296
|
+
var animationRegex = /_EMO_([^_]+?)_([^]*?)_EMO_/g;
|
2297
|
+
var isCustomProperty = function isCustomProperty2(property) {
|
2298
|
+
return property.charCodeAt(1) === 45;
|
2299
|
+
};
|
2300
|
+
var isProcessableValue = function isProcessableValue2(value) {
|
2301
|
+
return value != null && typeof value !== "boolean";
|
2302
|
+
};
|
2303
|
+
var processStyleName = /* @__PURE__ */ emotion_memoize_esm_default(function(styleName) {
|
2304
|
+
return isCustomProperty(styleName) ? styleName : styleName.replace(hyphenateRegex, "-$&").toLowerCase();
|
2305
|
+
});
|
2306
|
+
var processStyleValue = function processStyleValue2(key, value) {
|
2307
|
+
switch (key) {
|
2308
|
+
case "animation":
|
2309
|
+
case "animationName": {
|
2310
|
+
if (typeof value === "string") {
|
2311
|
+
return value.replace(animationRegex, function(match2, p1, p2) {
|
2312
|
+
cursor = {
|
2313
|
+
name: p1,
|
2314
|
+
styles: p2,
|
2315
|
+
next: cursor
|
2316
|
+
};
|
2317
|
+
return p1;
|
2318
|
+
});
|
2319
|
+
}
|
2320
|
+
}
|
2321
|
+
}
|
2322
|
+
if (emotion_unitless_esm_default[key] !== 1 && !isCustomProperty(key) && typeof value === "number" && value !== 0) {
|
2323
|
+
return value + "px";
|
2324
|
+
}
|
2325
|
+
return value;
|
2326
|
+
};
|
2327
|
+
if (process.env.NODE_ENV !== "production") {
|
2328
|
+
contentValuePattern = /(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/;
|
2329
|
+
contentValues = ["normal", "none", "initial", "inherit", "unset"];
|
2330
|
+
oldProcessStyleValue = processStyleValue;
|
2331
|
+
msPattern = /^-ms-/;
|
2332
|
+
hyphenPattern = /-(.)/g;
|
2333
|
+
hyphenatedCache = {};
|
2334
|
+
processStyleValue = function processStyleValue3(key, value) {
|
2335
|
+
if (key === "content") {
|
2336
|
+
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) !== "'")) {
|
2337
|
+
throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"" + value + "\"'`");
|
2338
|
+
}
|
2339
|
+
}
|
2340
|
+
var processed = oldProcessStyleValue(key, value);
|
2341
|
+
if (processed !== "" && !isCustomProperty(key) && key.indexOf("-") !== -1 && hyphenatedCache[key] === void 0) {
|
2342
|
+
hyphenatedCache[key] = true;
|
2343
|
+
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) {
|
2344
|
+
return _char.toUpperCase();
|
2345
|
+
}) + "?");
|
2346
|
+
}
|
2347
|
+
return processed;
|
2348
|
+
};
|
2349
|
+
}
|
2350
|
+
var contentValuePattern;
|
2351
|
+
var contentValues;
|
2352
|
+
var oldProcessStyleValue;
|
2353
|
+
var msPattern;
|
2354
|
+
var hyphenPattern;
|
2355
|
+
var hyphenatedCache;
|
2356
|
+
var noComponentSelectorMessage = "Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";
|
2357
|
+
function handleInterpolation(mergedProps, registered, interpolation) {
|
2358
|
+
if (interpolation == null) {
|
2359
|
+
return "";
|
2360
|
+
}
|
2361
|
+
if (interpolation.__emotion_styles !== void 0) {
|
2362
|
+
if (process.env.NODE_ENV !== "production" && interpolation.toString() === "NO_COMPONENT_SELECTOR") {
|
2363
|
+
throw new Error(noComponentSelectorMessage);
|
2364
|
+
}
|
2365
|
+
return interpolation;
|
2366
|
+
}
|
2367
|
+
switch (typeof interpolation) {
|
2368
|
+
case "boolean": {
|
2369
|
+
return "";
|
2370
|
+
}
|
2371
|
+
case "object": {
|
2372
|
+
if (interpolation.anim === 1) {
|
2373
|
+
cursor = {
|
2374
|
+
name: interpolation.name,
|
2375
|
+
styles: interpolation.styles,
|
2376
|
+
next: cursor
|
2377
|
+
};
|
2378
|
+
return interpolation.name;
|
2379
|
+
}
|
2380
|
+
if (interpolation.styles !== void 0) {
|
2381
|
+
var next2 = interpolation.next;
|
2382
|
+
if (next2 !== void 0) {
|
2383
|
+
while (next2 !== void 0) {
|
2384
|
+
cursor = {
|
2385
|
+
name: next2.name,
|
2386
|
+
styles: next2.styles,
|
2387
|
+
next: cursor
|
2388
|
+
};
|
2389
|
+
next2 = next2.next;
|
2390
|
+
}
|
2391
|
+
}
|
2392
|
+
var styles = interpolation.styles + ";";
|
2393
|
+
if (process.env.NODE_ENV !== "production" && interpolation.map !== void 0) {
|
2394
|
+
styles += interpolation.map;
|
2395
|
+
}
|
2396
|
+
return styles;
|
2397
|
+
}
|
2398
|
+
return createStringFromObject(mergedProps, registered, interpolation);
|
2399
|
+
}
|
2400
|
+
case "function": {
|
2401
|
+
if (mergedProps !== void 0) {
|
2402
|
+
var previousCursor = cursor;
|
2403
|
+
var result = interpolation(mergedProps);
|
2404
|
+
cursor = previousCursor;
|
2405
|
+
return handleInterpolation(mergedProps, registered, result);
|
2406
|
+
} else if (process.env.NODE_ENV !== "production") {
|
2407
|
+
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}`");
|
2408
|
+
}
|
2409
|
+
break;
|
2410
|
+
}
|
2411
|
+
case "string":
|
2412
|
+
if (process.env.NODE_ENV !== "production") {
|
2413
|
+
var matched = [];
|
2414
|
+
var replaced = interpolation.replace(animationRegex, function(match2, p1, p2) {
|
2415
|
+
var fakeVarName = "animation" + matched.length;
|
2416
|
+
matched.push("const " + fakeVarName + " = keyframes`" + p2.replace(/^@keyframes animation-\w+/, "") + "`");
|
2417
|
+
return "${" + fakeVarName + "}";
|
2418
|
+
});
|
2419
|
+
if (matched.length) {
|
2420
|
+
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 + "`"));
|
2421
|
+
}
|
2422
|
+
}
|
2423
|
+
break;
|
2424
|
+
}
|
2425
|
+
if (registered == null) {
|
2426
|
+
return interpolation;
|
2427
|
+
}
|
2428
|
+
var cached = registered[interpolation];
|
2429
|
+
return cached !== void 0 ? cached : interpolation;
|
2430
|
+
}
|
2431
|
+
function createStringFromObject(mergedProps, registered, obj) {
|
2432
|
+
var string = "";
|
2433
|
+
if (Array.isArray(obj)) {
|
2434
|
+
for (var i = 0; i < obj.length; i++) {
|
2435
|
+
string += handleInterpolation(mergedProps, registered, obj[i]) + ";";
|
2436
|
+
}
|
2437
|
+
} else {
|
2438
|
+
for (var _key in obj) {
|
2439
|
+
var value = obj[_key];
|
2440
|
+
if (typeof value !== "object") {
|
2441
|
+
if (registered != null && registered[value] !== void 0) {
|
2442
|
+
string += _key + "{" + registered[value] + "}";
|
2443
|
+
} else if (isProcessableValue(value)) {
|
2444
|
+
string += processStyleName(_key) + ":" + processStyleValue(_key, value) + ";";
|
2445
|
+
}
|
2446
|
+
} else {
|
2447
|
+
if (_key === "NO_COMPONENT_SELECTOR" && process.env.NODE_ENV !== "production") {
|
2448
|
+
throw new Error(noComponentSelectorMessage);
|
2449
|
+
}
|
2450
|
+
if (Array.isArray(value) && typeof value[0] === "string" && (registered == null || registered[value[0]] === void 0)) {
|
2451
|
+
for (var _i = 0; _i < value.length; _i++) {
|
2452
|
+
if (isProcessableValue(value[_i])) {
|
2453
|
+
string += processStyleName(_key) + ":" + processStyleValue(_key, value[_i]) + ";";
|
2454
|
+
}
|
2455
|
+
}
|
2456
|
+
} else {
|
2457
|
+
var interpolated = handleInterpolation(mergedProps, registered, value);
|
2458
|
+
switch (_key) {
|
2459
|
+
case "animation":
|
2460
|
+
case "animationName": {
|
2461
|
+
string += processStyleName(_key) + ":" + interpolated + ";";
|
2462
|
+
break;
|
2463
|
+
}
|
2464
|
+
default: {
|
2465
|
+
if (process.env.NODE_ENV !== "production" && _key === "undefined") {
|
2466
|
+
console.error(UNDEFINED_AS_OBJECT_KEY_ERROR);
|
2467
|
+
}
|
2468
|
+
string += _key + "{" + interpolated + "}";
|
2469
|
+
}
|
2470
|
+
}
|
2471
|
+
}
|
2472
|
+
}
|
2473
|
+
}
|
2474
|
+
}
|
2475
|
+
return string;
|
2476
|
+
}
|
2477
|
+
var labelPattern = /label:\s*([^\s;\n{]+)\s*(;|$)/g;
|
2478
|
+
var sourceMapPattern;
|
2479
|
+
if (process.env.NODE_ENV !== "production") {
|
2480
|
+
sourceMapPattern = /\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g;
|
2481
|
+
}
|
2482
|
+
var cursor;
|
2483
|
+
var serializeStyles = function serializeStyles2(args, registered, mergedProps) {
|
2484
|
+
if (args.length === 1 && typeof args[0] === "object" && args[0] !== null && args[0].styles !== void 0) {
|
2485
|
+
return args[0];
|
2486
|
+
}
|
2487
|
+
var stringMode = true;
|
2488
|
+
var styles = "";
|
2489
|
+
cursor = void 0;
|
2490
|
+
var strings = args[0];
|
2491
|
+
if (strings == null || strings.raw === void 0) {
|
2492
|
+
stringMode = false;
|
2493
|
+
styles += handleInterpolation(mergedProps, registered, strings);
|
2494
|
+
} else {
|
2495
|
+
if (process.env.NODE_ENV !== "production" && strings[0] === void 0) {
|
2496
|
+
console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR);
|
2497
|
+
}
|
2498
|
+
styles += strings[0];
|
2499
|
+
}
|
2500
|
+
for (var i = 1; i < args.length; i++) {
|
2501
|
+
styles += handleInterpolation(mergedProps, registered, args[i]);
|
2502
|
+
if (stringMode) {
|
2503
|
+
if (process.env.NODE_ENV !== "production" && strings[i] === void 0) {
|
2504
|
+
console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR);
|
2505
|
+
}
|
2506
|
+
styles += strings[i];
|
2507
|
+
}
|
2508
|
+
}
|
2509
|
+
var sourceMap;
|
2510
|
+
if (process.env.NODE_ENV !== "production") {
|
2511
|
+
styles = styles.replace(sourceMapPattern, function(match3) {
|
2512
|
+
sourceMap = match3;
|
2513
|
+
return "";
|
2514
|
+
});
|
2515
|
+
}
|
2516
|
+
labelPattern.lastIndex = 0;
|
2517
|
+
var identifierName = "";
|
2518
|
+
var match2;
|
2519
|
+
while ((match2 = labelPattern.exec(styles)) !== null) {
|
2520
|
+
identifierName += "-" + // $FlowFixMe we know it's not null
|
2521
|
+
match2[1];
|
2522
|
+
}
|
2523
|
+
var name = emotion_hash_esm_default(styles) + identifierName;
|
2524
|
+
if (process.env.NODE_ENV !== "production") {
|
2525
|
+
return {
|
2526
|
+
name,
|
2527
|
+
styles,
|
2528
|
+
map: sourceMap,
|
2529
|
+
next: cursor,
|
2530
|
+
toString: function toString() {
|
2531
|
+
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).";
|
2532
|
+
}
|
2533
|
+
};
|
2534
|
+
}
|
2535
|
+
return {
|
2536
|
+
name,
|
2537
|
+
styles,
|
2538
|
+
next: cursor
|
2539
|
+
};
|
2540
|
+
};
|
2541
|
+
|
2542
|
+
// ../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.esm.js
|
2543
|
+
import * as React from "react";
|
2544
|
+
import { useLayoutEffect } from "react";
|
2545
|
+
var isBrowser3 = typeof document !== "undefined";
|
2546
|
+
var syncFallback = function syncFallback2(create) {
|
2547
|
+
return create();
|
2548
|
+
};
|
2549
|
+
var useInsertionEffect2 = React["useInsertionEffect"] ? React["useInsertionEffect"] : false;
|
2550
|
+
var useInsertionEffectAlwaysWithSyncFallback = !isBrowser3 ? syncFallback : useInsertionEffect2 || syncFallback;
|
2551
|
+
var useInsertionEffectWithLayoutFallback = useInsertionEffect2 || useLayoutEffect;
|
2552
|
+
|
2553
|
+
// ../../node_modules/@emotion/react/dist/emotion-element-3838ba9e.esm.js
|
2554
|
+
var isBrowser4 = typeof document !== "undefined";
|
2555
|
+
var hasOwnProperty = {}.hasOwnProperty;
|
2556
|
+
var EmotionCacheContext = /* @__PURE__ */ createContext(
|
2557
|
+
// we're doing this to avoid preconstruct's dead code elimination in this one case
|
2558
|
+
// because this module is primarily intended for the browser and node
|
2559
|
+
// but it's also required in react native and similar environments sometimes
|
2560
|
+
// and we could have a special build just for that
|
2561
|
+
// but this is much easier and the native packages
|
2562
|
+
// might use a different theme context in the future anyway
|
2563
|
+
typeof HTMLElement !== "undefined" ? /* @__PURE__ */ emotion_cache_esm_default({
|
2564
|
+
key: "css"
|
2565
|
+
}) : null
|
2566
|
+
);
|
2567
|
+
if (process.env.NODE_ENV !== "production") {
|
2568
|
+
EmotionCacheContext.displayName = "EmotionCacheContext";
|
2569
|
+
}
|
2570
|
+
var CacheProvider = EmotionCacheContext.Provider;
|
2571
|
+
var withEmotionCache = function withEmotionCache2(func) {
|
2572
|
+
return /* @__PURE__ */ forwardRef(function(props, ref) {
|
2573
|
+
var cache = useContext(EmotionCacheContext);
|
2574
|
+
return func(props, cache, ref);
|
2575
|
+
});
|
2576
|
+
};
|
2577
|
+
if (!isBrowser4) {
|
2578
|
+
withEmotionCache = function withEmotionCache3(func) {
|
2579
|
+
return function(props) {
|
2580
|
+
var cache = useContext(EmotionCacheContext);
|
2581
|
+
if (cache === null) {
|
2582
|
+
cache = emotion_cache_esm_default({
|
2583
|
+
key: "css"
|
2584
|
+
});
|
2585
|
+
return /* @__PURE__ */ createElement(EmotionCacheContext.Provider, {
|
2586
|
+
value: cache
|
2587
|
+
}, func(props, cache));
|
2588
|
+
} else {
|
2589
|
+
return func(props, cache);
|
2590
|
+
}
|
2591
|
+
};
|
2592
|
+
};
|
2593
|
+
}
|
2594
|
+
var ThemeContext = /* @__PURE__ */ createContext({});
|
2595
|
+
if (process.env.NODE_ENV !== "production") {
|
2596
|
+
ThemeContext.displayName = "EmotionThemeContext";
|
2597
|
+
}
|
2598
|
+
var typePropName = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__";
|
2599
|
+
var labelPropName = "__EMOTION_LABEL_PLEASE_DO_NOT_USE__";
|
2600
|
+
var Insertion = function Insertion2(_ref) {
|
2601
|
+
var cache = _ref.cache, serialized = _ref.serialized, isStringTag = _ref.isStringTag;
|
2602
|
+
registerStyles(cache, serialized, isStringTag);
|
2603
|
+
var rules = useInsertionEffectAlwaysWithSyncFallback(function() {
|
2604
|
+
return insertStyles(cache, serialized, isStringTag);
|
2605
|
+
});
|
2606
|
+
if (!isBrowser4 && rules !== void 0) {
|
2607
|
+
var _ref2;
|
2608
|
+
var serializedNames = serialized.name;
|
2609
|
+
var next2 = serialized.next;
|
2610
|
+
while (next2 !== void 0) {
|
2611
|
+
serializedNames += " " + next2.name;
|
2612
|
+
next2 = next2.next;
|
2613
|
+
}
|
2614
|
+
return /* @__PURE__ */ createElement("style", (_ref2 = {}, _ref2["data-emotion"] = cache.key + " " + serializedNames, _ref2.dangerouslySetInnerHTML = {
|
2615
|
+
__html: rules
|
2616
|
+
}, _ref2.nonce = cache.sheet.nonce, _ref2));
|
2617
|
+
}
|
2618
|
+
return null;
|
2619
|
+
};
|
2620
|
+
var Emotion = /* @__PURE__ */ withEmotionCache(function(props, cache, ref) {
|
2621
|
+
var cssProp = props.css;
|
2622
|
+
if (typeof cssProp === "string" && cache.registered[cssProp] !== void 0) {
|
2623
|
+
cssProp = cache.registered[cssProp];
|
2624
|
+
}
|
2625
|
+
var WrappedComponent = props[typePropName];
|
2626
|
+
var registeredStyles = [cssProp];
|
2627
|
+
var className = "";
|
2628
|
+
if (typeof props.className === "string") {
|
2629
|
+
className = getRegisteredStyles(cache.registered, registeredStyles, props.className);
|
2630
|
+
} else if (props.className != null) {
|
2631
|
+
className = props.className + " ";
|
2632
|
+
}
|
2633
|
+
var serialized = serializeStyles(registeredStyles, void 0, useContext(ThemeContext));
|
2634
|
+
if (process.env.NODE_ENV !== "production" && serialized.name.indexOf("-") === -1) {
|
2635
|
+
var labelFromStack = props[labelPropName];
|
2636
|
+
if (labelFromStack) {
|
2637
|
+
serialized = serializeStyles([serialized, "label:" + labelFromStack + ";"]);
|
2638
|
+
}
|
2639
|
+
}
|
2640
|
+
className += cache.key + "-" + serialized.name;
|
2641
|
+
var newProps = {};
|
2642
|
+
for (var key in props) {
|
2643
|
+
if (hasOwnProperty.call(props, key) && key !== "css" && key !== typePropName && (process.env.NODE_ENV === "production" || key !== labelPropName)) {
|
2644
|
+
newProps[key] = props[key];
|
2645
|
+
}
|
2646
|
+
}
|
2647
|
+
newProps.ref = ref;
|
2648
|
+
newProps.className = className;
|
2649
|
+
return /* @__PURE__ */ createElement(Fragment, null, /* @__PURE__ */ createElement(Insertion, {
|
2650
|
+
cache,
|
2651
|
+
serialized,
|
2652
|
+
isStringTag: typeof WrappedComponent === "string"
|
2653
|
+
}), /* @__PURE__ */ createElement(WrappedComponent, newProps));
|
2654
|
+
});
|
2655
|
+
if (process.env.NODE_ENV !== "production") {
|
2656
|
+
Emotion.displayName = "EmotionCssPropInternal";
|
2657
|
+
}
|
2658
|
+
|
2659
|
+
// ../../node_modules/@emotion/react/dist/emotion-react.esm.js
|
2660
|
+
var import_extends2 = __toESM(require_extends());
|
2661
|
+
var import_hoist_non_react_statics = __toESM(require_hoist_non_react_statics_cjs());
|
2662
|
+
var pkg = {
|
2663
|
+
name: "@emotion/react",
|
2664
|
+
version: "11.10.6",
|
2665
|
+
main: "dist/emotion-react.cjs.js",
|
2666
|
+
module: "dist/emotion-react.esm.js",
|
2667
|
+
browser: {
|
2668
|
+
"./dist/emotion-react.esm.js": "./dist/emotion-react.browser.esm.js"
|
2669
|
+
},
|
2670
|
+
exports: {
|
2671
|
+
".": {
|
2672
|
+
module: {
|
2673
|
+
worker: "./dist/emotion-react.worker.esm.js",
|
2674
|
+
browser: "./dist/emotion-react.browser.esm.js",
|
2675
|
+
"default": "./dist/emotion-react.esm.js"
|
2676
|
+
},
|
2677
|
+
"default": "./dist/emotion-react.cjs.js"
|
2678
|
+
},
|
2679
|
+
"./jsx-runtime": {
|
2680
|
+
module: {
|
2681
|
+
worker: "./jsx-runtime/dist/emotion-react-jsx-runtime.worker.esm.js",
|
2682
|
+
browser: "./jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js",
|
2683
|
+
"default": "./jsx-runtime/dist/emotion-react-jsx-runtime.esm.js"
|
2684
|
+
},
|
2685
|
+
"default": "./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.js"
|
2686
|
+
},
|
2687
|
+
"./_isolated-hnrs": {
|
2688
|
+
module: {
|
2689
|
+
worker: "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.worker.esm.js",
|
2690
|
+
browser: "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js",
|
2691
|
+
"default": "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.esm.js"
|
2692
|
+
},
|
2693
|
+
"default": "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js"
|
2694
|
+
},
|
2695
|
+
"./jsx-dev-runtime": {
|
2696
|
+
module: {
|
2697
|
+
worker: "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.worker.esm.js",
|
2698
|
+
browser: "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.esm.js",
|
2699
|
+
"default": "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.esm.js"
|
2700
|
+
},
|
2701
|
+
"default": "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.js"
|
2702
|
+
},
|
2703
|
+
"./package.json": "./package.json",
|
2704
|
+
"./types/css-prop": "./types/css-prop.d.ts",
|
2705
|
+
"./macro": "./macro.js"
|
2706
|
+
},
|
2707
|
+
types: "types/index.d.ts",
|
2708
|
+
files: [
|
2709
|
+
"src",
|
2710
|
+
"dist",
|
2711
|
+
"jsx-runtime",
|
2712
|
+
"jsx-dev-runtime",
|
2713
|
+
"_isolated-hnrs",
|
2714
|
+
"types/*.d.ts",
|
2715
|
+
"macro.js",
|
2716
|
+
"macro.d.ts",
|
2717
|
+
"macro.js.flow"
|
2718
|
+
],
|
2719
|
+
sideEffects: false,
|
2720
|
+
author: "Emotion Contributors",
|
2721
|
+
license: "MIT",
|
2722
|
+
scripts: {
|
2723
|
+
"test:typescript": "dtslint types"
|
2724
|
+
},
|
2725
|
+
dependencies: {
|
2726
|
+
"@babel/runtime": "^7.18.3",
|
2727
|
+
"@emotion/babel-plugin": "^11.10.6",
|
2728
|
+
"@emotion/cache": "^11.10.5",
|
2729
|
+
"@emotion/serialize": "^1.1.1",
|
2730
|
+
"@emotion/use-insertion-effect-with-fallbacks": "^1.0.0",
|
2731
|
+
"@emotion/utils": "^1.2.0",
|
2732
|
+
"@emotion/weak-memoize": "^0.3.0",
|
2733
|
+
"hoist-non-react-statics": "^3.3.1"
|
2734
|
+
},
|
2735
|
+
peerDependencies: {
|
2736
|
+
react: ">=16.8.0"
|
2737
|
+
},
|
2738
|
+
peerDependenciesMeta: {
|
2739
|
+
"@types/react": {
|
2740
|
+
optional: true
|
2741
|
+
}
|
2742
|
+
},
|
2743
|
+
devDependencies: {
|
2744
|
+
"@definitelytyped/dtslint": "0.0.112",
|
2745
|
+
"@emotion/css": "11.10.6",
|
2746
|
+
"@emotion/css-prettifier": "1.1.1",
|
2747
|
+
"@emotion/server": "11.10.0",
|
2748
|
+
"@emotion/styled": "11.10.6",
|
2749
|
+
"html-tag-names": "^1.1.2",
|
2750
|
+
react: "16.14.0",
|
2751
|
+
"svg-tag-names": "^1.1.1",
|
2752
|
+
typescript: "^4.5.5"
|
2753
|
+
},
|
2754
|
+
repository: "https://github.com/emotion-js/emotion/tree/main/packages/react",
|
2755
|
+
publishConfig: {
|
2756
|
+
access: "public"
|
2757
|
+
},
|
2758
|
+
"umd:main": "dist/emotion-react.umd.min.js",
|
2759
|
+
preconstruct: {
|
2760
|
+
entrypoints: [
|
2761
|
+
"./index.js",
|
2762
|
+
"./jsx-runtime.js",
|
2763
|
+
"./jsx-dev-runtime.js",
|
2764
|
+
"./_isolated-hnrs.js"
|
2765
|
+
],
|
2766
|
+
umdName: "emotionReact",
|
2767
|
+
exports: {
|
2768
|
+
envConditions: [
|
2769
|
+
"browser",
|
2770
|
+
"worker"
|
2771
|
+
],
|
2772
|
+
extra: {
|
2773
|
+
"./types/css-prop": "./types/css-prop.d.ts",
|
2774
|
+
"./macro": "./macro.js"
|
2775
|
+
}
|
2776
|
+
}
|
2777
|
+
}
|
2778
|
+
};
|
2779
|
+
var warnedAboutCssPropForGlobal = false;
|
2780
|
+
var Global = /* @__PURE__ */ withEmotionCache(function(props, cache) {
|
2781
|
+
if (process.env.NODE_ENV !== "production" && !warnedAboutCssPropForGlobal && // check for className as well since the user is
|
2782
|
+
// probably using the custom createElement which
|
2783
|
+
// means it will be turned into a className prop
|
2784
|
+
// $FlowFixMe I don't really want to add it to the type since it shouldn't be used
|
2785
|
+
(props.className || props.css)) {
|
2786
|
+
console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?");
|
2787
|
+
warnedAboutCssPropForGlobal = true;
|
2788
|
+
}
|
2789
|
+
var styles = props.styles;
|
2790
|
+
var serialized = serializeStyles([styles], void 0, useContext2(ThemeContext));
|
2791
|
+
if (!isBrowser4) {
|
2792
|
+
var _ref;
|
2793
|
+
var serializedNames = serialized.name;
|
2794
|
+
var serializedStyles = serialized.styles;
|
2795
|
+
var next2 = serialized.next;
|
2796
|
+
while (next2 !== void 0) {
|
2797
|
+
serializedNames += " " + next2.name;
|
2798
|
+
serializedStyles += next2.styles;
|
2799
|
+
next2 = next2.next;
|
2800
|
+
}
|
2801
|
+
var shouldCache = cache.compat === true;
|
2802
|
+
var rules = cache.insert("", {
|
2803
|
+
name: serializedNames,
|
2804
|
+
styles: serializedStyles
|
2805
|
+
}, cache.sheet, shouldCache);
|
2806
|
+
if (shouldCache) {
|
2807
|
+
return null;
|
2808
|
+
}
|
2809
|
+
return /* @__PURE__ */ createElement2("style", (_ref = {}, _ref["data-emotion"] = cache.key + "-global " + serializedNames, _ref.dangerouslySetInnerHTML = {
|
2810
|
+
__html: rules
|
2811
|
+
}, _ref.nonce = cache.sheet.nonce, _ref));
|
2812
|
+
}
|
2813
|
+
var sheetRef = useRef();
|
2814
|
+
useInsertionEffectWithLayoutFallback(function() {
|
2815
|
+
var key = cache.key + "-global";
|
2816
|
+
var sheet = new cache.sheet.constructor({
|
2817
|
+
key,
|
2818
|
+
nonce: cache.sheet.nonce,
|
2819
|
+
container: cache.sheet.container,
|
2820
|
+
speedy: cache.sheet.isSpeedy
|
2821
|
+
});
|
2822
|
+
var rehydrating = false;
|
2823
|
+
var node2 = document.querySelector('style[data-emotion="' + key + " " + serialized.name + '"]');
|
2824
|
+
if (cache.sheet.tags.length) {
|
2825
|
+
sheet.before = cache.sheet.tags[0];
|
2826
|
+
}
|
2827
|
+
if (node2 !== null) {
|
2828
|
+
rehydrating = true;
|
2829
|
+
node2.setAttribute("data-emotion", key);
|
2830
|
+
sheet.hydrate([node2]);
|
2831
|
+
}
|
2832
|
+
sheetRef.current = [sheet, rehydrating];
|
2833
|
+
return function() {
|
2834
|
+
sheet.flush();
|
2835
|
+
};
|
2836
|
+
}, [cache]);
|
2837
|
+
useInsertionEffectWithLayoutFallback(function() {
|
2838
|
+
var sheetRefCurrent = sheetRef.current;
|
2839
|
+
var sheet = sheetRefCurrent[0], rehydrating = sheetRefCurrent[1];
|
2840
|
+
if (rehydrating) {
|
2841
|
+
sheetRefCurrent[1] = false;
|
2842
|
+
return;
|
2843
|
+
}
|
2844
|
+
if (serialized.next !== void 0) {
|
2845
|
+
insertStyles(cache, serialized.next, true);
|
2846
|
+
}
|
2847
|
+
if (sheet.tags.length) {
|
2848
|
+
var element = sheet.tags[sheet.tags.length - 1].nextElementSibling;
|
2849
|
+
sheet.before = element;
|
2850
|
+
sheet.flush();
|
2851
|
+
}
|
2852
|
+
cache.insert("", serialized, sheet, false);
|
2853
|
+
}, [cache, serialized.name]);
|
2854
|
+
return null;
|
2855
|
+
});
|
2856
|
+
if (process.env.NODE_ENV !== "production") {
|
2857
|
+
Global.displayName = "EmotionGlobal";
|
2858
|
+
}
|
2859
|
+
var classnames = function classnames2(args) {
|
2860
|
+
var len = args.length;
|
2861
|
+
var i = 0;
|
2862
|
+
var cls = "";
|
2863
|
+
for (; i < len; i++) {
|
2864
|
+
var arg = args[i];
|
2865
|
+
if (arg == null)
|
2866
|
+
continue;
|
2867
|
+
var toAdd = void 0;
|
2868
|
+
switch (typeof arg) {
|
2869
|
+
case "boolean":
|
2870
|
+
break;
|
2871
|
+
case "object": {
|
2872
|
+
if (Array.isArray(arg)) {
|
2873
|
+
toAdd = classnames2(arg);
|
2874
|
+
} else {
|
2875
|
+
if (process.env.NODE_ENV !== "production" && arg.styles !== void 0 && arg.name !== void 0) {
|
2876
|
+
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.");
|
2877
|
+
}
|
2878
|
+
toAdd = "";
|
2879
|
+
for (var k in arg) {
|
2880
|
+
if (arg[k] && k) {
|
2881
|
+
toAdd && (toAdd += " ");
|
2882
|
+
toAdd += k;
|
2883
|
+
}
|
2884
|
+
}
|
2885
|
+
}
|
2886
|
+
break;
|
2887
|
+
}
|
2888
|
+
default: {
|
2889
|
+
toAdd = arg;
|
2890
|
+
}
|
2891
|
+
}
|
2892
|
+
if (toAdd) {
|
2893
|
+
cls && (cls += " ");
|
2894
|
+
cls += toAdd;
|
2895
|
+
}
|
2896
|
+
}
|
2897
|
+
return cls;
|
2898
|
+
};
|
2899
|
+
function merge(registered, css2, className) {
|
2900
|
+
var registeredStyles = [];
|
2901
|
+
var rawClassName = getRegisteredStyles(registered, registeredStyles, className);
|
2902
|
+
if (registeredStyles.length < 2) {
|
2903
|
+
return className;
|
2904
|
+
}
|
2905
|
+
return rawClassName + css2(registeredStyles);
|
2906
|
+
}
|
2907
|
+
var Insertion3 = function Insertion4(_ref) {
|
2908
|
+
var cache = _ref.cache, serializedArr = _ref.serializedArr;
|
2909
|
+
var rules = useInsertionEffectAlwaysWithSyncFallback(function() {
|
2910
|
+
var rules2 = "";
|
2911
|
+
for (var i = 0; i < serializedArr.length; i++) {
|
2912
|
+
var res = insertStyles(cache, serializedArr[i], false);
|
2913
|
+
if (!isBrowser4 && res !== void 0) {
|
2914
|
+
rules2 += res;
|
2915
|
+
}
|
2916
|
+
}
|
2917
|
+
if (!isBrowser4) {
|
2918
|
+
return rules2;
|
2919
|
+
}
|
2920
|
+
});
|
2921
|
+
if (!isBrowser4 && rules.length !== 0) {
|
2922
|
+
var _ref2;
|
2923
|
+
return /* @__PURE__ */ createElement2("style", (_ref2 = {}, _ref2["data-emotion"] = cache.key + " " + serializedArr.map(function(serialized) {
|
2924
|
+
return serialized.name;
|
2925
|
+
}).join(" "), _ref2.dangerouslySetInnerHTML = {
|
2926
|
+
__html: rules
|
2927
|
+
}, _ref2.nonce = cache.sheet.nonce, _ref2));
|
2928
|
+
}
|
2929
|
+
return null;
|
2930
|
+
};
|
2931
|
+
var ClassNames = /* @__PURE__ */ withEmotionCache(function(props, cache) {
|
2932
|
+
var hasRendered = false;
|
2933
|
+
var serializedArr = [];
|
2934
|
+
var css2 = function css3() {
|
2935
|
+
if (hasRendered && process.env.NODE_ENV !== "production") {
|
2936
|
+
throw new Error("css can only be used during render");
|
2937
|
+
}
|
2938
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
2939
|
+
args[_key] = arguments[_key];
|
2940
|
+
}
|
2941
|
+
var serialized = serializeStyles(args, cache.registered);
|
2942
|
+
serializedArr.push(serialized);
|
2943
|
+
registerStyles(cache, serialized, false);
|
2944
|
+
return cache.key + "-" + serialized.name;
|
2945
|
+
};
|
2946
|
+
var cx2 = function cx3() {
|
2947
|
+
if (hasRendered && process.env.NODE_ENV !== "production") {
|
2948
|
+
throw new Error("cx can only be used during render");
|
2949
|
+
}
|
2950
|
+
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
2951
|
+
args[_key2] = arguments[_key2];
|
2952
|
+
}
|
2953
|
+
return merge(cache.registered, css2, classnames(args));
|
2954
|
+
};
|
2955
|
+
var content = {
|
2956
|
+
css: css2,
|
2957
|
+
cx: cx2,
|
2958
|
+
theme: useContext2(ThemeContext)
|
2959
|
+
};
|
2960
|
+
var ele = props.children(content);
|
2961
|
+
hasRendered = true;
|
2962
|
+
return /* @__PURE__ */ createElement2(Fragment2, null, /* @__PURE__ */ createElement2(Insertion3, {
|
2963
|
+
cache,
|
2964
|
+
serializedArr
|
2965
|
+
}), ele);
|
2966
|
+
});
|
2967
|
+
if (process.env.NODE_ENV !== "production") {
|
2968
|
+
ClassNames.displayName = "EmotionClassNames";
|
2969
|
+
}
|
2970
|
+
if (process.env.NODE_ENV !== "production") {
|
2971
|
+
isBrowser6 = typeof document !== "undefined";
|
2972
|
+
isTestEnv = typeof jest !== "undefined" || typeof vi !== "undefined";
|
2973
|
+
if (isBrowser6 && !isTestEnv) {
|
2974
|
+
globalContext = // $FlowIgnore
|
2975
|
+
typeof globalThis !== "undefined" ? globalThis : isBrowser6 ? window : global;
|
2976
|
+
globalKey = "__EMOTION_REACT_" + pkg.version.split(".")[0] + "__";
|
2977
|
+
if (globalContext[globalKey]) {
|
2978
|
+
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.");
|
2979
|
+
}
|
2980
|
+
globalContext[globalKey] = true;
|
2981
|
+
}
|
2982
|
+
}
|
2983
|
+
var isBrowser6;
|
2984
|
+
var isTestEnv;
|
2985
|
+
var globalContext;
|
2986
|
+
var globalKey;
|
2987
|
+
|
2988
|
+
// ../../node_modules/@chakra-ui/system/dist/chunk-NLMMK76H.mjs
|
2989
|
+
import { useContext as useContext3 } from "react";
|
2990
|
+
function useTheme2() {
|
2991
|
+
const theme = useContext3(
|
2992
|
+
ThemeContext
|
2993
|
+
);
|
2994
|
+
if (!theme) {
|
2995
|
+
throw Error(
|
2996
|
+
"useTheme: `theme` is undefined. Seems you forgot to wrap your app in `<ChakraProvider />` or `<ThemeProvider />`"
|
2997
|
+
);
|
2998
|
+
}
|
2999
|
+
return theme;
|
3000
|
+
}
|
3001
|
+
|
3002
|
+
// ../../node_modules/@chakra-ui/color-mode/dist/chunk-7NLW6UB6.mjs
|
3003
|
+
import { createContext as createContext2, useContext as useContext4 } from "react";
|
3004
|
+
var ColorModeContext = createContext2({});
|
3005
|
+
ColorModeContext.displayName = "ColorModeContext";
|
3006
|
+
function useColorMode() {
|
3007
|
+
const context = useContext4(ColorModeContext);
|
3008
|
+
if (context === void 0) {
|
3009
|
+
throw new Error("useColorMode must be used within a ColorModeProvider");
|
3010
|
+
}
|
3011
|
+
return context;
|
3012
|
+
}
|
3013
|
+
|
3014
|
+
// ../../node_modules/@chakra-ui/system/dist/chunk-7V3ZYTH7.mjs
|
3015
|
+
function useChakra() {
|
3016
|
+
const colorModeResult = useColorMode();
|
3017
|
+
const theme = useTheme2();
|
3018
|
+
return __spreadProps(__spreadValues({}, colorModeResult), { theme });
|
3019
|
+
}
|
3020
|
+
|
3021
|
+
// ../../node_modules/@chakra-ui/shared-utils/dist/index.mjs
|
3022
|
+
var cx = (...classNames) => classNames.filter(Boolean).join(" ");
|
3023
|
+
function isObject(value) {
|
3024
|
+
const type = typeof value;
|
3025
|
+
return value != null && (type === "object" || type === "function") && !Array.isArray(value);
|
3026
|
+
}
|
3027
|
+
function runIfFn(valueOrFn, ...args) {
|
3028
|
+
return isFunction(valueOrFn) ? valueOrFn(...args) : valueOrFn;
|
3029
|
+
}
|
3030
|
+
var isFunction = (value) => typeof value === "function";
|
3031
|
+
|
3032
|
+
// ../../node_modules/@chakra-ui/styled-system/dist/index.mjs
|
3033
|
+
var import_lodash = __toESM(require_lodash(), 1);
|
3034
|
+
var import_lodash2 = __toESM(require_lodash(), 1);
|
3035
|
+
var import_lodash3 = __toESM(require_lodash(), 1);
|
3036
|
+
var import_lodash4 = __toESM(require_lodash(), 1);
|
3037
|
+
var isImportant = (value) => /!(important)?$/.test(value);
|
3038
|
+
var withoutImportant = (value) => typeof value === "string" ? value.replace(/!(important)?$/, "").trim() : value;
|
3039
|
+
var tokenToCSSVar = (scale, value) => (theme) => {
|
3040
|
+
const valueStr = String(value);
|
3041
|
+
const important = isImportant(valueStr);
|
3042
|
+
const valueWithoutImportant = withoutImportant(valueStr);
|
3043
|
+
const key = scale ? `${scale}.${valueWithoutImportant}` : valueWithoutImportant;
|
3044
|
+
let transformed = isObject(theme.__cssMap) && key in theme.__cssMap ? theme.__cssMap[key].varRef : value;
|
3045
|
+
transformed = withoutImportant(transformed);
|
3046
|
+
return important ? `${transformed} !important` : transformed;
|
3047
|
+
};
|
3048
|
+
function createTransform(options) {
|
3049
|
+
const { scale, transform: transform2, compose: compose2 } = options;
|
3050
|
+
const fn = (value, theme) => {
|
3051
|
+
var _a2;
|
3052
|
+
const _value = tokenToCSSVar(scale, value)(theme);
|
3053
|
+
let result = (_a2 = transform2 == null ? void 0 : transform2(_value, theme)) != null ? _a2 : _value;
|
3054
|
+
if (compose2) {
|
3055
|
+
result = compose2(result, theme);
|
3056
|
+
}
|
3057
|
+
return result;
|
3058
|
+
};
|
3059
|
+
return fn;
|
3060
|
+
}
|
3061
|
+
var pipe = (...fns) => (v) => fns.reduce((a, b) => b(a), v);
|
3062
|
+
function toConfig(scale, transform2) {
|
3063
|
+
return (property) => {
|
3064
|
+
const result = { property, scale };
|
3065
|
+
result.transform = createTransform({
|
3066
|
+
scale,
|
3067
|
+
transform: transform2
|
3068
|
+
});
|
3069
|
+
return result;
|
3070
|
+
};
|
3071
|
+
}
|
3072
|
+
var getRtl = ({ rtl, ltr }) => (theme) => theme.direction === "rtl" ? rtl : ltr;
|
3073
|
+
function logical(options) {
|
3074
|
+
const { property, scale, transform: transform2 } = options;
|
3075
|
+
return {
|
3076
|
+
scale,
|
3077
|
+
property: getRtl(property),
|
3078
|
+
transform: scale ? createTransform({
|
3079
|
+
scale,
|
3080
|
+
compose: transform2
|
3081
|
+
}) : transform2
|
3082
|
+
};
|
3083
|
+
}
|
3084
|
+
var transformTemplate = [
|
3085
|
+
"rotate(var(--chakra-rotate, 0))",
|
3086
|
+
"scaleX(var(--chakra-scale-x, 1))",
|
3087
|
+
"scaleY(var(--chakra-scale-y, 1))",
|
3088
|
+
"skewX(var(--chakra-skew-x, 0))",
|
3089
|
+
"skewY(var(--chakra-skew-y, 0))"
|
3090
|
+
];
|
3091
|
+
function getTransformTemplate() {
|
3092
|
+
return [
|
3093
|
+
"translateX(var(--chakra-translate-x, 0))",
|
3094
|
+
"translateY(var(--chakra-translate-y, 0))",
|
3095
|
+
...transformTemplate
|
3096
|
+
].join(" ");
|
3097
|
+
}
|
3098
|
+
function getTransformGpuTemplate() {
|
3099
|
+
return [
|
3100
|
+
"translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",
|
3101
|
+
...transformTemplate
|
3102
|
+
].join(" ");
|
3103
|
+
}
|
3104
|
+
var filterTemplate = {
|
3105
|
+
"--chakra-blur": "var(--chakra-empty,/*!*/ /*!*/)",
|
3106
|
+
"--chakra-brightness": "var(--chakra-empty,/*!*/ /*!*/)",
|
3107
|
+
"--chakra-contrast": "var(--chakra-empty,/*!*/ /*!*/)",
|
3108
|
+
"--chakra-grayscale": "var(--chakra-empty,/*!*/ /*!*/)",
|
3109
|
+
"--chakra-hue-rotate": "var(--chakra-empty,/*!*/ /*!*/)",
|
3110
|
+
"--chakra-invert": "var(--chakra-empty,/*!*/ /*!*/)",
|
3111
|
+
"--chakra-saturate": "var(--chakra-empty,/*!*/ /*!*/)",
|
3112
|
+
"--chakra-sepia": "var(--chakra-empty,/*!*/ /*!*/)",
|
3113
|
+
"--chakra-drop-shadow": "var(--chakra-empty,/*!*/ /*!*/)",
|
3114
|
+
filter: [
|
3115
|
+
"var(--chakra-blur)",
|
3116
|
+
"var(--chakra-brightness)",
|
3117
|
+
"var(--chakra-contrast)",
|
3118
|
+
"var(--chakra-grayscale)",
|
3119
|
+
"var(--chakra-hue-rotate)",
|
3120
|
+
"var(--chakra-invert)",
|
3121
|
+
"var(--chakra-saturate)",
|
3122
|
+
"var(--chakra-sepia)",
|
3123
|
+
"var(--chakra-drop-shadow)"
|
3124
|
+
].join(" ")
|
3125
|
+
};
|
3126
|
+
var backdropFilterTemplate = {
|
3127
|
+
backdropFilter: [
|
3128
|
+
"var(--chakra-backdrop-blur)",
|
3129
|
+
"var(--chakra-backdrop-brightness)",
|
3130
|
+
"var(--chakra-backdrop-contrast)",
|
3131
|
+
"var(--chakra-backdrop-grayscale)",
|
3132
|
+
"var(--chakra-backdrop-hue-rotate)",
|
3133
|
+
"var(--chakra-backdrop-invert)",
|
3134
|
+
"var(--chakra-backdrop-opacity)",
|
3135
|
+
"var(--chakra-backdrop-saturate)",
|
3136
|
+
"var(--chakra-backdrop-sepia)"
|
3137
|
+
].join(" "),
|
3138
|
+
"--chakra-backdrop-blur": "var(--chakra-empty,/*!*/ /*!*/)",
|
3139
|
+
"--chakra-backdrop-brightness": "var(--chakra-empty,/*!*/ /*!*/)",
|
3140
|
+
"--chakra-backdrop-contrast": "var(--chakra-empty,/*!*/ /*!*/)",
|
3141
|
+
"--chakra-backdrop-grayscale": "var(--chakra-empty,/*!*/ /*!*/)",
|
3142
|
+
"--chakra-backdrop-hue-rotate": "var(--chakra-empty,/*!*/ /*!*/)",
|
3143
|
+
"--chakra-backdrop-invert": "var(--chakra-empty,/*!*/ /*!*/)",
|
3144
|
+
"--chakra-backdrop-opacity": "var(--chakra-empty,/*!*/ /*!*/)",
|
3145
|
+
"--chakra-backdrop-saturate": "var(--chakra-empty,/*!*/ /*!*/)",
|
3146
|
+
"--chakra-backdrop-sepia": "var(--chakra-empty,/*!*/ /*!*/)"
|
3147
|
+
};
|
3148
|
+
function getRingTemplate(value) {
|
3149
|
+
return {
|
3150
|
+
"--chakra-ring-offset-shadow": `var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)`,
|
3151
|
+
"--chakra-ring-shadow": `var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)`,
|
3152
|
+
"--chakra-ring-width": value,
|
3153
|
+
boxShadow: [
|
3154
|
+
`var(--chakra-ring-offset-shadow)`,
|
3155
|
+
`var(--chakra-ring-shadow)`,
|
3156
|
+
`var(--chakra-shadow, 0 0 #0000)`
|
3157
|
+
].join(", ")
|
3158
|
+
};
|
3159
|
+
}
|
3160
|
+
var flexDirectionTemplate = {
|
3161
|
+
"row-reverse": {
|
3162
|
+
space: "--chakra-space-x-reverse",
|
3163
|
+
divide: "--chakra-divide-x-reverse"
|
3164
|
+
},
|
3165
|
+
"column-reverse": {
|
3166
|
+
space: "--chakra-space-y-reverse",
|
3167
|
+
divide: "--chakra-divide-y-reverse"
|
3168
|
+
}
|
3169
|
+
};
|
3170
|
+
var directionMap = {
|
3171
|
+
"to-t": "to top",
|
3172
|
+
"to-tr": "to top right",
|
3173
|
+
"to-r": "to right",
|
3174
|
+
"to-br": "to bottom right",
|
3175
|
+
"to-b": "to bottom",
|
3176
|
+
"to-bl": "to bottom left",
|
3177
|
+
"to-l": "to left",
|
3178
|
+
"to-tl": "to top left"
|
3179
|
+
};
|
3180
|
+
var valueSet = new Set(Object.values(directionMap));
|
3181
|
+
var globalSet = /* @__PURE__ */ new Set([
|
3182
|
+
"none",
|
3183
|
+
"-moz-initial",
|
3184
|
+
"inherit",
|
3185
|
+
"initial",
|
3186
|
+
"revert",
|
3187
|
+
"unset"
|
3188
|
+
]);
|
3189
|
+
var trimSpace = (str) => str.trim();
|
3190
|
+
function parseGradient(value, theme) {
|
3191
|
+
if (value == null || globalSet.has(value))
|
3192
|
+
return value;
|
3193
|
+
const regex = /(^[a-z-A-Z]+)\((.*)\)/g;
|
3194
|
+
const results = regex.exec(value);
|
3195
|
+
const type = results == null ? void 0 : results[1];
|
3196
|
+
const values = results == null ? void 0 : results[2];
|
3197
|
+
if (!type || !values)
|
3198
|
+
return value;
|
3199
|
+
const _type = type.includes("-gradient") ? type : `${type}-gradient`;
|
3200
|
+
const [maybeDirection, ...stops] = values.split(",").map(trimSpace).filter(Boolean);
|
3201
|
+
if ((stops == null ? void 0 : stops.length) === 0)
|
3202
|
+
return value;
|
3203
|
+
const direction = maybeDirection in directionMap ? directionMap[maybeDirection] : maybeDirection;
|
3204
|
+
stops.unshift(direction);
|
3205
|
+
const _values = stops.map((stop) => {
|
3206
|
+
if (valueSet.has(stop))
|
3207
|
+
return stop;
|
3208
|
+
const firstStop = stop.indexOf(" ");
|
3209
|
+
const [_color, _stop] = firstStop !== -1 ? [stop.substr(0, firstStop), stop.substr(firstStop + 1)] : [stop];
|
3210
|
+
const _stopOrFunc = isCSSFunction(_stop) ? _stop : _stop && _stop.split(" ");
|
3211
|
+
const key = `colors.${_color}`;
|
3212
|
+
const color2 = key in theme.__cssMap ? theme.__cssMap[key].varRef : _color;
|
3213
|
+
return _stopOrFunc ? [
|
3214
|
+
color2,
|
3215
|
+
...Array.isArray(_stopOrFunc) ? _stopOrFunc : [_stopOrFunc]
|
3216
|
+
].join(" ") : color2;
|
3217
|
+
});
|
3218
|
+
return `${_type}(${_values.join(", ")})`;
|
3219
|
+
}
|
3220
|
+
var isCSSFunction = (value) => {
|
3221
|
+
return typeof value === "string" && value.includes("(") && value.includes(")");
|
3222
|
+
};
|
3223
|
+
var gradientTransform = (value, theme) => parseGradient(value, theme != null ? theme : {});
|
3224
|
+
function isCssVar(value) {
|
3225
|
+
return /^var\(--.+\)$/.test(value);
|
3226
|
+
}
|
3227
|
+
var analyzeCSSValue = (value) => {
|
3228
|
+
const num = parseFloat(value.toString());
|
3229
|
+
const unit = value.toString().replace(String(num), "");
|
3230
|
+
return { unitless: !unit, value: num, unit };
|
3231
|
+
};
|
3232
|
+
var wrap = (str) => (value) => `${str}(${value})`;
|
3233
|
+
var transformFunctions = {
|
3234
|
+
filter(value) {
|
3235
|
+
return value !== "auto" ? value : filterTemplate;
|
3236
|
+
},
|
3237
|
+
backdropFilter(value) {
|
3238
|
+
return value !== "auto" ? value : backdropFilterTemplate;
|
3239
|
+
},
|
3240
|
+
ring(value) {
|
3241
|
+
return getRingTemplate(transformFunctions.px(value));
|
3242
|
+
},
|
3243
|
+
bgClip(value) {
|
3244
|
+
return value === "text" ? { color: "transparent", backgroundClip: "text" } : { backgroundClip: value };
|
3245
|
+
},
|
3246
|
+
transform(value) {
|
3247
|
+
if (value === "auto")
|
3248
|
+
return getTransformTemplate();
|
3249
|
+
if (value === "auto-gpu")
|
3250
|
+
return getTransformGpuTemplate();
|
3251
|
+
return value;
|
3252
|
+
},
|
3253
|
+
vh(value) {
|
3254
|
+
return value === "$100vh" ? "var(--chakra-vh)" : value;
|
3255
|
+
},
|
3256
|
+
px(value) {
|
3257
|
+
if (value == null)
|
3258
|
+
return value;
|
3259
|
+
const { unitless } = analyzeCSSValue(value);
|
3260
|
+
return unitless || typeof value === "number" ? `${value}px` : value;
|
3261
|
+
},
|
3262
|
+
fraction(value) {
|
3263
|
+
return !(typeof value === "number") || value > 1 ? value : `${value * 100}%`;
|
3264
|
+
},
|
3265
|
+
float(value, theme) {
|
3266
|
+
const map = { left: "right", right: "left" };
|
3267
|
+
return theme.direction === "rtl" ? map[value] : value;
|
3268
|
+
},
|
3269
|
+
degree(value) {
|
3270
|
+
if (isCssVar(value) || value == null)
|
3271
|
+
return value;
|
3272
|
+
const unitless = typeof value === "string" && !value.endsWith("deg");
|
3273
|
+
return typeof value === "number" || unitless ? `${value}deg` : value;
|
3274
|
+
},
|
3275
|
+
gradient: gradientTransform,
|
3276
|
+
blur: wrap("blur"),
|
3277
|
+
opacity: wrap("opacity"),
|
3278
|
+
brightness: wrap("brightness"),
|
3279
|
+
contrast: wrap("contrast"),
|
3280
|
+
dropShadow: wrap("drop-shadow"),
|
3281
|
+
grayscale: wrap("grayscale"),
|
3282
|
+
hueRotate: wrap("hue-rotate"),
|
3283
|
+
invert: wrap("invert"),
|
3284
|
+
saturate: wrap("saturate"),
|
3285
|
+
sepia: wrap("sepia"),
|
3286
|
+
bgImage(value) {
|
3287
|
+
if (value == null)
|
3288
|
+
return value;
|
3289
|
+
const prevent = isCSSFunction(value) || globalSet.has(value);
|
3290
|
+
return !prevent ? `url(${value})` : value;
|
3291
|
+
},
|
3292
|
+
outline(value) {
|
3293
|
+
const isNoneOrZero = String(value) === "0" || String(value) === "none";
|
3294
|
+
return value !== null && isNoneOrZero ? { outline: "2px solid transparent", outlineOffset: "2px" } : { outline: value };
|
3295
|
+
},
|
3296
|
+
flexDirection(value) {
|
3297
|
+
var _a2;
|
3298
|
+
const { space: space2, divide: divide2 } = (_a2 = flexDirectionTemplate[value]) != null ? _a2 : {};
|
3299
|
+
const result = { flexDirection: value };
|
3300
|
+
if (space2)
|
3301
|
+
result[space2] = 1;
|
3302
|
+
if (divide2)
|
3303
|
+
result[divide2] = 1;
|
3304
|
+
return result;
|
3305
|
+
}
|
3306
|
+
};
|
3307
|
+
var t = {
|
3308
|
+
borderWidths: toConfig("borderWidths"),
|
3309
|
+
borderStyles: toConfig("borderStyles"),
|
3310
|
+
colors: toConfig("colors"),
|
3311
|
+
borders: toConfig("borders"),
|
3312
|
+
radii: toConfig("radii", transformFunctions.px),
|
3313
|
+
space: toConfig("space", pipe(transformFunctions.vh, transformFunctions.px)),
|
3314
|
+
spaceT: toConfig("space", pipe(transformFunctions.vh, transformFunctions.px)),
|
3315
|
+
degreeT(property) {
|
3316
|
+
return { property, transform: transformFunctions.degree };
|
3317
|
+
},
|
3318
|
+
prop(property, scale, transform2) {
|
3319
|
+
return __spreadValues({
|
3320
|
+
property,
|
3321
|
+
scale
|
3322
|
+
}, scale && {
|
3323
|
+
transform: createTransform({ scale, transform: transform2 })
|
3324
|
+
});
|
3325
|
+
},
|
3326
|
+
propT(property, transform2) {
|
3327
|
+
return { property, transform: transform2 };
|
3328
|
+
},
|
3329
|
+
sizes: toConfig("sizes", pipe(transformFunctions.vh, transformFunctions.px)),
|
3330
|
+
sizesT: toConfig("sizes", pipe(transformFunctions.vh, transformFunctions.fraction)),
|
3331
|
+
shadows: toConfig("shadows"),
|
3332
|
+
logical,
|
3333
|
+
blur: toConfig("blur", transformFunctions.blur)
|
3334
|
+
};
|
3335
|
+
var background = {
|
3336
|
+
background: t.colors("background"),
|
3337
|
+
backgroundColor: t.colors("backgroundColor"),
|
3338
|
+
backgroundImage: t.propT("backgroundImage", transformFunctions.bgImage),
|
3339
|
+
backgroundSize: true,
|
3340
|
+
backgroundPosition: true,
|
3341
|
+
backgroundRepeat: true,
|
3342
|
+
backgroundAttachment: true,
|
3343
|
+
backgroundClip: { transform: transformFunctions.bgClip },
|
3344
|
+
bgSize: t.prop("backgroundSize"),
|
3345
|
+
bgPosition: t.prop("backgroundPosition"),
|
3346
|
+
bg: t.colors("background"),
|
3347
|
+
bgColor: t.colors("backgroundColor"),
|
3348
|
+
bgPos: t.prop("backgroundPosition"),
|
3349
|
+
bgRepeat: t.prop("backgroundRepeat"),
|
3350
|
+
bgAttachment: t.prop("backgroundAttachment"),
|
3351
|
+
bgGradient: t.propT("backgroundImage", transformFunctions.gradient),
|
3352
|
+
bgClip: { transform: transformFunctions.bgClip }
|
3353
|
+
};
|
3354
|
+
Object.assign(background, {
|
3355
|
+
bgImage: background.backgroundImage,
|
3356
|
+
bgImg: background.backgroundImage
|
3357
|
+
});
|
3358
|
+
var border = {
|
3359
|
+
border: t.borders("border"),
|
3360
|
+
borderWidth: t.borderWidths("borderWidth"),
|
3361
|
+
borderStyle: t.borderStyles("borderStyle"),
|
3362
|
+
borderColor: t.colors("borderColor"),
|
3363
|
+
borderRadius: t.radii("borderRadius"),
|
3364
|
+
borderTop: t.borders("borderTop"),
|
3365
|
+
borderBlockStart: t.borders("borderBlockStart"),
|
3366
|
+
borderTopLeftRadius: t.radii("borderTopLeftRadius"),
|
3367
|
+
borderStartStartRadius: t.logical({
|
3368
|
+
scale: "radii",
|
3369
|
+
property: {
|
3370
|
+
ltr: "borderTopLeftRadius",
|
3371
|
+
rtl: "borderTopRightRadius"
|
3372
|
+
}
|
3373
|
+
}),
|
3374
|
+
borderEndStartRadius: t.logical({
|
3375
|
+
scale: "radii",
|
3376
|
+
property: {
|
3377
|
+
ltr: "borderBottomLeftRadius",
|
3378
|
+
rtl: "borderBottomRightRadius"
|
3379
|
+
}
|
3380
|
+
}),
|
3381
|
+
borderTopRightRadius: t.radii("borderTopRightRadius"),
|
3382
|
+
borderStartEndRadius: t.logical({
|
3383
|
+
scale: "radii",
|
3384
|
+
property: {
|
3385
|
+
ltr: "borderTopRightRadius",
|
3386
|
+
rtl: "borderTopLeftRadius"
|
3387
|
+
}
|
3388
|
+
}),
|
3389
|
+
borderEndEndRadius: t.logical({
|
3390
|
+
scale: "radii",
|
3391
|
+
property: {
|
3392
|
+
ltr: "borderBottomRightRadius",
|
3393
|
+
rtl: "borderBottomLeftRadius"
|
3394
|
+
}
|
3395
|
+
}),
|
3396
|
+
borderRight: t.borders("borderRight"),
|
3397
|
+
borderInlineEnd: t.borders("borderInlineEnd"),
|
3398
|
+
borderBottom: t.borders("borderBottom"),
|
3399
|
+
borderBlockEnd: t.borders("borderBlockEnd"),
|
3400
|
+
borderBottomLeftRadius: t.radii("borderBottomLeftRadius"),
|
3401
|
+
borderBottomRightRadius: t.radii("borderBottomRightRadius"),
|
3402
|
+
borderLeft: t.borders("borderLeft"),
|
3403
|
+
borderInlineStart: {
|
3404
|
+
property: "borderInlineStart",
|
3405
|
+
scale: "borders"
|
3406
|
+
},
|
3407
|
+
borderInlineStartRadius: t.logical({
|
3408
|
+
scale: "radii",
|
3409
|
+
property: {
|
3410
|
+
ltr: ["borderTopLeftRadius", "borderBottomLeftRadius"],
|
3411
|
+
rtl: ["borderTopRightRadius", "borderBottomRightRadius"]
|
3412
|
+
}
|
3413
|
+
}),
|
3414
|
+
borderInlineEndRadius: t.logical({
|
3415
|
+
scale: "radii",
|
3416
|
+
property: {
|
3417
|
+
ltr: ["borderTopRightRadius", "borderBottomRightRadius"],
|
3418
|
+
rtl: ["borderTopLeftRadius", "borderBottomLeftRadius"]
|
3419
|
+
}
|
3420
|
+
}),
|
3421
|
+
borderX: t.borders(["borderLeft", "borderRight"]),
|
3422
|
+
borderInline: t.borders("borderInline"),
|
3423
|
+
borderY: t.borders(["borderTop", "borderBottom"]),
|
3424
|
+
borderBlock: t.borders("borderBlock"),
|
3425
|
+
borderTopWidth: t.borderWidths("borderTopWidth"),
|
3426
|
+
borderBlockStartWidth: t.borderWidths("borderBlockStartWidth"),
|
3427
|
+
borderTopColor: t.colors("borderTopColor"),
|
3428
|
+
borderBlockStartColor: t.colors("borderBlockStartColor"),
|
3429
|
+
borderTopStyle: t.borderStyles("borderTopStyle"),
|
3430
|
+
borderBlockStartStyle: t.borderStyles("borderBlockStartStyle"),
|
3431
|
+
borderBottomWidth: t.borderWidths("borderBottomWidth"),
|
3432
|
+
borderBlockEndWidth: t.borderWidths("borderBlockEndWidth"),
|
3433
|
+
borderBottomColor: t.colors("borderBottomColor"),
|
3434
|
+
borderBlockEndColor: t.colors("borderBlockEndColor"),
|
3435
|
+
borderBottomStyle: t.borderStyles("borderBottomStyle"),
|
3436
|
+
borderBlockEndStyle: t.borderStyles("borderBlockEndStyle"),
|
3437
|
+
borderLeftWidth: t.borderWidths("borderLeftWidth"),
|
3438
|
+
borderInlineStartWidth: t.borderWidths("borderInlineStartWidth"),
|
3439
|
+
borderLeftColor: t.colors("borderLeftColor"),
|
3440
|
+
borderInlineStartColor: t.colors("borderInlineStartColor"),
|
3441
|
+
borderLeftStyle: t.borderStyles("borderLeftStyle"),
|
3442
|
+
borderInlineStartStyle: t.borderStyles("borderInlineStartStyle"),
|
3443
|
+
borderRightWidth: t.borderWidths("borderRightWidth"),
|
3444
|
+
borderInlineEndWidth: t.borderWidths("borderInlineEndWidth"),
|
3445
|
+
borderRightColor: t.colors("borderRightColor"),
|
3446
|
+
borderInlineEndColor: t.colors("borderInlineEndColor"),
|
3447
|
+
borderRightStyle: t.borderStyles("borderRightStyle"),
|
3448
|
+
borderInlineEndStyle: t.borderStyles("borderInlineEndStyle"),
|
3449
|
+
borderTopRadius: t.radii(["borderTopLeftRadius", "borderTopRightRadius"]),
|
3450
|
+
borderBottomRadius: t.radii([
|
3451
|
+
"borderBottomLeftRadius",
|
3452
|
+
"borderBottomRightRadius"
|
3453
|
+
]),
|
3454
|
+
borderLeftRadius: t.radii(["borderTopLeftRadius", "borderBottomLeftRadius"]),
|
3455
|
+
borderRightRadius: t.radii([
|
3456
|
+
"borderTopRightRadius",
|
3457
|
+
"borderBottomRightRadius"
|
3458
|
+
])
|
3459
|
+
};
|
3460
|
+
Object.assign(border, {
|
3461
|
+
rounded: border.borderRadius,
|
3462
|
+
roundedTop: border.borderTopRadius,
|
3463
|
+
roundedTopLeft: border.borderTopLeftRadius,
|
3464
|
+
roundedTopRight: border.borderTopRightRadius,
|
3465
|
+
roundedTopStart: border.borderStartStartRadius,
|
3466
|
+
roundedTopEnd: border.borderStartEndRadius,
|
3467
|
+
roundedBottom: border.borderBottomRadius,
|
3468
|
+
roundedBottomLeft: border.borderBottomLeftRadius,
|
3469
|
+
roundedBottomRight: border.borderBottomRightRadius,
|
3470
|
+
roundedBottomStart: border.borderEndStartRadius,
|
3471
|
+
roundedBottomEnd: border.borderEndEndRadius,
|
3472
|
+
roundedLeft: border.borderLeftRadius,
|
3473
|
+
roundedRight: border.borderRightRadius,
|
3474
|
+
roundedStart: border.borderInlineStartRadius,
|
3475
|
+
roundedEnd: border.borderInlineEndRadius,
|
3476
|
+
borderStart: border.borderInlineStart,
|
3477
|
+
borderEnd: border.borderInlineEnd,
|
3478
|
+
borderTopStartRadius: border.borderStartStartRadius,
|
3479
|
+
borderTopEndRadius: border.borderStartEndRadius,
|
3480
|
+
borderBottomStartRadius: border.borderEndStartRadius,
|
3481
|
+
borderBottomEndRadius: border.borderEndEndRadius,
|
3482
|
+
borderStartRadius: border.borderInlineStartRadius,
|
3483
|
+
borderEndRadius: border.borderInlineEndRadius,
|
3484
|
+
borderStartWidth: border.borderInlineStartWidth,
|
3485
|
+
borderEndWidth: border.borderInlineEndWidth,
|
3486
|
+
borderStartColor: border.borderInlineStartColor,
|
3487
|
+
borderEndColor: border.borderInlineEndColor,
|
3488
|
+
borderStartStyle: border.borderInlineStartStyle,
|
3489
|
+
borderEndStyle: border.borderInlineEndStyle
|
3490
|
+
});
|
3491
|
+
var color = {
|
3492
|
+
color: t.colors("color"),
|
3493
|
+
textColor: t.colors("color"),
|
3494
|
+
fill: t.colors("fill"),
|
3495
|
+
stroke: t.colors("stroke")
|
3496
|
+
};
|
3497
|
+
var effect = {
|
3498
|
+
boxShadow: t.shadows("boxShadow"),
|
3499
|
+
mixBlendMode: true,
|
3500
|
+
blendMode: t.prop("mixBlendMode"),
|
3501
|
+
backgroundBlendMode: true,
|
3502
|
+
bgBlendMode: t.prop("backgroundBlendMode"),
|
3503
|
+
opacity: true
|
3504
|
+
};
|
3505
|
+
Object.assign(effect, {
|
3506
|
+
shadow: effect.boxShadow
|
3507
|
+
});
|
3508
|
+
var filter = {
|
3509
|
+
filter: { transform: transformFunctions.filter },
|
3510
|
+
blur: t.blur("--chakra-blur"),
|
3511
|
+
brightness: t.propT("--chakra-brightness", transformFunctions.brightness),
|
3512
|
+
contrast: t.propT("--chakra-contrast", transformFunctions.contrast),
|
3513
|
+
hueRotate: t.degreeT("--chakra-hue-rotate"),
|
3514
|
+
invert: t.propT("--chakra-invert", transformFunctions.invert),
|
3515
|
+
saturate: t.propT("--chakra-saturate", transformFunctions.saturate),
|
3516
|
+
dropShadow: t.propT("--chakra-drop-shadow", transformFunctions.dropShadow),
|
3517
|
+
backdropFilter: { transform: transformFunctions.backdropFilter },
|
3518
|
+
backdropBlur: t.blur("--chakra-backdrop-blur"),
|
3519
|
+
backdropBrightness: t.propT(
|
3520
|
+
"--chakra-backdrop-brightness",
|
3521
|
+
transformFunctions.brightness
|
3522
|
+
),
|
3523
|
+
backdropContrast: t.propT("--chakra-backdrop-contrast", transformFunctions.contrast),
|
3524
|
+
backdropHueRotate: t.degreeT("--chakra-backdrop-hue-rotate"),
|
3525
|
+
backdropInvert: t.propT("--chakra-backdrop-invert", transformFunctions.invert),
|
3526
|
+
backdropSaturate: t.propT("--chakra-backdrop-saturate", transformFunctions.saturate)
|
3527
|
+
};
|
3528
|
+
var flexbox = {
|
3529
|
+
alignItems: true,
|
3530
|
+
alignContent: true,
|
3531
|
+
justifyItems: true,
|
3532
|
+
justifyContent: true,
|
3533
|
+
flexWrap: true,
|
3534
|
+
flexDirection: { transform: transformFunctions.flexDirection },
|
3535
|
+
flex: true,
|
3536
|
+
flexFlow: true,
|
3537
|
+
flexGrow: true,
|
3538
|
+
flexShrink: true,
|
3539
|
+
flexBasis: t.sizes("flexBasis"),
|
3540
|
+
justifySelf: true,
|
3541
|
+
alignSelf: true,
|
3542
|
+
order: true,
|
3543
|
+
placeItems: true,
|
3544
|
+
placeContent: true,
|
3545
|
+
placeSelf: true,
|
3546
|
+
gap: t.space("gap"),
|
3547
|
+
rowGap: t.space("rowGap"),
|
3548
|
+
columnGap: t.space("columnGap")
|
3549
|
+
};
|
3550
|
+
Object.assign(flexbox, {
|
3551
|
+
flexDir: flexbox.flexDirection
|
3552
|
+
});
|
3553
|
+
var grid = {
|
3554
|
+
gridGap: t.space("gridGap"),
|
3555
|
+
gridColumnGap: t.space("gridColumnGap"),
|
3556
|
+
gridRowGap: t.space("gridRowGap"),
|
3557
|
+
gridColumn: true,
|
3558
|
+
gridRow: true,
|
3559
|
+
gridAutoFlow: true,
|
3560
|
+
gridAutoColumns: true,
|
3561
|
+
gridColumnStart: true,
|
3562
|
+
gridColumnEnd: true,
|
3563
|
+
gridRowStart: true,
|
3564
|
+
gridRowEnd: true,
|
3565
|
+
gridAutoRows: true,
|
3566
|
+
gridTemplate: true,
|
3567
|
+
gridTemplateColumns: true,
|
3568
|
+
gridTemplateRows: true,
|
3569
|
+
gridTemplateAreas: true,
|
3570
|
+
gridArea: true
|
3571
|
+
};
|
3572
|
+
var interactivity = {
|
3573
|
+
appearance: true,
|
3574
|
+
cursor: true,
|
3575
|
+
resize: true,
|
3576
|
+
userSelect: true,
|
3577
|
+
pointerEvents: true,
|
3578
|
+
outline: { transform: transformFunctions.outline },
|
3579
|
+
outlineOffset: true,
|
3580
|
+
outlineColor: t.colors("outlineColor")
|
3581
|
+
};
|
3582
|
+
var layout = {
|
3583
|
+
width: t.sizesT("width"),
|
3584
|
+
inlineSize: t.sizesT("inlineSize"),
|
3585
|
+
height: t.sizes("height"),
|
3586
|
+
blockSize: t.sizes("blockSize"),
|
3587
|
+
boxSize: t.sizes(["width", "height"]),
|
3588
|
+
minWidth: t.sizes("minWidth"),
|
3589
|
+
minInlineSize: t.sizes("minInlineSize"),
|
3590
|
+
minHeight: t.sizes("minHeight"),
|
3591
|
+
minBlockSize: t.sizes("minBlockSize"),
|
3592
|
+
maxWidth: t.sizes("maxWidth"),
|
3593
|
+
maxInlineSize: t.sizes("maxInlineSize"),
|
3594
|
+
maxHeight: t.sizes("maxHeight"),
|
3595
|
+
maxBlockSize: t.sizes("maxBlockSize"),
|
3596
|
+
overflow: true,
|
3597
|
+
overflowX: true,
|
3598
|
+
overflowY: true,
|
3599
|
+
overscrollBehavior: true,
|
3600
|
+
overscrollBehaviorX: true,
|
3601
|
+
overscrollBehaviorY: true,
|
3602
|
+
display: true,
|
3603
|
+
hideFrom: {
|
3604
|
+
scale: "breakpoints",
|
3605
|
+
transform: (value, theme) => {
|
3606
|
+
var _a2, _b, _c;
|
3607
|
+
const mq = (_c = (_b = (_a2 = theme.__breakpoints) == null ? void 0 : _a2.get(value)) == null ? void 0 : _b.minWQuery) != null ? _c : `@media screen and (min-width: ${value})`;
|
3608
|
+
return { [mq]: { display: "none" } };
|
3609
|
+
}
|
3610
|
+
},
|
3611
|
+
hideBelow: {
|
3612
|
+
scale: "breakpoints",
|
3613
|
+
transform: (value, theme) => {
|
3614
|
+
var _a2, _b, _c;
|
3615
|
+
const mq = (_c = (_b = (_a2 = theme.__breakpoints) == null ? void 0 : _a2.get(value)) == null ? void 0 : _b.maxWQuery) != null ? _c : `@media screen and (max-width: ${value})`;
|
3616
|
+
return { [mq]: { display: "none" } };
|
3617
|
+
}
|
3618
|
+
},
|
3619
|
+
verticalAlign: true,
|
3620
|
+
boxSizing: true,
|
3621
|
+
boxDecorationBreak: true,
|
3622
|
+
float: t.propT("float", transformFunctions.float),
|
3623
|
+
objectFit: true,
|
3624
|
+
objectPosition: true,
|
3625
|
+
visibility: true,
|
3626
|
+
isolation: true
|
3627
|
+
};
|
3628
|
+
Object.assign(layout, {
|
3629
|
+
w: layout.width,
|
3630
|
+
h: layout.height,
|
3631
|
+
minW: layout.minWidth,
|
3632
|
+
maxW: layout.maxWidth,
|
3633
|
+
minH: layout.minHeight,
|
3634
|
+
maxH: layout.maxHeight,
|
3635
|
+
overscroll: layout.overscrollBehavior,
|
3636
|
+
overscrollX: layout.overscrollBehaviorX,
|
3637
|
+
overscrollY: layout.overscrollBehaviorY
|
3638
|
+
});
|
3639
|
+
var list = {
|
3640
|
+
listStyleType: true,
|
3641
|
+
listStylePosition: true,
|
3642
|
+
listStylePos: t.prop("listStylePosition"),
|
3643
|
+
listStyleImage: true,
|
3644
|
+
listStyleImg: t.prop("listStyleImage")
|
3645
|
+
};
|
3646
|
+
function get(obj, path, fallback, index) {
|
3647
|
+
const key = typeof path === "string" ? path.split(".") : [path];
|
3648
|
+
for (index = 0; index < key.length; index += 1) {
|
3649
|
+
if (!obj)
|
3650
|
+
break;
|
3651
|
+
obj = obj[key[index]];
|
3652
|
+
}
|
3653
|
+
return obj === void 0 ? fallback : obj;
|
3654
|
+
}
|
3655
|
+
var memoize2 = (fn) => {
|
3656
|
+
const cache = /* @__PURE__ */ new WeakMap();
|
3657
|
+
const memoizedFn = (obj, path, fallback, index) => {
|
3658
|
+
if (typeof obj === "undefined") {
|
3659
|
+
return fn(obj, path, fallback);
|
3660
|
+
}
|
3661
|
+
if (!cache.has(obj)) {
|
3662
|
+
cache.set(obj, /* @__PURE__ */ new Map());
|
3663
|
+
}
|
3664
|
+
const map = cache.get(obj);
|
3665
|
+
if (map.has(path)) {
|
3666
|
+
return map.get(path);
|
3667
|
+
}
|
3668
|
+
const value = fn(obj, path, fallback, index);
|
3669
|
+
map.set(path, value);
|
3670
|
+
return value;
|
3671
|
+
};
|
3672
|
+
return memoizedFn;
|
3673
|
+
};
|
3674
|
+
var memoizedGet = memoize2(get);
|
3675
|
+
var srOnly = {
|
3676
|
+
border: "0px",
|
3677
|
+
clip: "rect(0, 0, 0, 0)",
|
3678
|
+
width: "1px",
|
3679
|
+
height: "1px",
|
3680
|
+
margin: "-1px",
|
3681
|
+
padding: "0px",
|
3682
|
+
overflow: "hidden",
|
3683
|
+
whiteSpace: "nowrap",
|
3684
|
+
position: "absolute"
|
3685
|
+
};
|
3686
|
+
var srFocusable = {
|
3687
|
+
position: "static",
|
3688
|
+
width: "auto",
|
3689
|
+
height: "auto",
|
3690
|
+
clip: "auto",
|
3691
|
+
padding: "0",
|
3692
|
+
margin: "0",
|
3693
|
+
overflow: "visible",
|
3694
|
+
whiteSpace: "normal"
|
3695
|
+
};
|
3696
|
+
var getWithPriority = (theme, key, styles) => {
|
3697
|
+
const result = {};
|
3698
|
+
const obj = memoizedGet(theme, key, {});
|
3699
|
+
for (const prop in obj) {
|
3700
|
+
const isInStyles = prop in styles && styles[prop] != null;
|
3701
|
+
if (!isInStyles)
|
3702
|
+
result[prop] = obj[prop];
|
3703
|
+
}
|
3704
|
+
return result;
|
3705
|
+
};
|
3706
|
+
var others = {
|
3707
|
+
srOnly: {
|
3708
|
+
transform(value) {
|
3709
|
+
if (value === true)
|
3710
|
+
return srOnly;
|
3711
|
+
if (value === "focusable")
|
3712
|
+
return srFocusable;
|
3713
|
+
return {};
|
3714
|
+
}
|
3715
|
+
},
|
3716
|
+
layerStyle: {
|
3717
|
+
processResult: true,
|
3718
|
+
transform: (value, theme, styles) => getWithPriority(theme, `layerStyles.${value}`, styles)
|
3719
|
+
},
|
3720
|
+
textStyle: {
|
3721
|
+
processResult: true,
|
3722
|
+
transform: (value, theme, styles) => getWithPriority(theme, `textStyles.${value}`, styles)
|
3723
|
+
},
|
3724
|
+
apply: {
|
3725
|
+
processResult: true,
|
3726
|
+
transform: (value, theme, styles) => getWithPriority(theme, value, styles)
|
3727
|
+
}
|
3728
|
+
};
|
3729
|
+
var position2 = {
|
3730
|
+
position: true,
|
3731
|
+
pos: t.prop("position"),
|
3732
|
+
zIndex: t.prop("zIndex", "zIndices"),
|
3733
|
+
inset: t.spaceT("inset"),
|
3734
|
+
insetX: t.spaceT(["left", "right"]),
|
3735
|
+
insetInline: t.spaceT("insetInline"),
|
3736
|
+
insetY: t.spaceT(["top", "bottom"]),
|
3737
|
+
insetBlock: t.spaceT("insetBlock"),
|
3738
|
+
top: t.spaceT("top"),
|
3739
|
+
insetBlockStart: t.spaceT("insetBlockStart"),
|
3740
|
+
bottom: t.spaceT("bottom"),
|
3741
|
+
insetBlockEnd: t.spaceT("insetBlockEnd"),
|
3742
|
+
left: t.spaceT("left"),
|
3743
|
+
insetInlineStart: t.logical({
|
3744
|
+
scale: "space",
|
3745
|
+
property: { ltr: "left", rtl: "right" }
|
3746
|
+
}),
|
3747
|
+
right: t.spaceT("right"),
|
3748
|
+
insetInlineEnd: t.logical({
|
3749
|
+
scale: "space",
|
3750
|
+
property: { ltr: "right", rtl: "left" }
|
3751
|
+
})
|
3752
|
+
};
|
3753
|
+
Object.assign(position2, {
|
3754
|
+
insetStart: position2.insetInlineStart,
|
3755
|
+
insetEnd: position2.insetInlineEnd
|
3756
|
+
});
|
3757
|
+
var ring = {
|
3758
|
+
ring: { transform: transformFunctions.ring },
|
3759
|
+
ringColor: t.colors("--chakra-ring-color"),
|
3760
|
+
ringOffset: t.prop("--chakra-ring-offset-width"),
|
3761
|
+
ringOffsetColor: t.colors("--chakra-ring-offset-color"),
|
3762
|
+
ringInset: t.prop("--chakra-ring-inset")
|
3763
|
+
};
|
3764
|
+
var space = {
|
3765
|
+
margin: t.spaceT("margin"),
|
3766
|
+
marginTop: t.spaceT("marginTop"),
|
3767
|
+
marginBlockStart: t.spaceT("marginBlockStart"),
|
3768
|
+
marginRight: t.spaceT("marginRight"),
|
3769
|
+
marginInlineEnd: t.spaceT("marginInlineEnd"),
|
3770
|
+
marginBottom: t.spaceT("marginBottom"),
|
3771
|
+
marginBlockEnd: t.spaceT("marginBlockEnd"),
|
3772
|
+
marginLeft: t.spaceT("marginLeft"),
|
3773
|
+
marginInlineStart: t.spaceT("marginInlineStart"),
|
3774
|
+
marginX: t.spaceT(["marginInlineStart", "marginInlineEnd"]),
|
3775
|
+
marginInline: t.spaceT("marginInline"),
|
3776
|
+
marginY: t.spaceT(["marginTop", "marginBottom"]),
|
3777
|
+
marginBlock: t.spaceT("marginBlock"),
|
3778
|
+
padding: t.space("padding"),
|
3779
|
+
paddingTop: t.space("paddingTop"),
|
3780
|
+
paddingBlockStart: t.space("paddingBlockStart"),
|
3781
|
+
paddingRight: t.space("paddingRight"),
|
3782
|
+
paddingBottom: t.space("paddingBottom"),
|
3783
|
+
paddingBlockEnd: t.space("paddingBlockEnd"),
|
3784
|
+
paddingLeft: t.space("paddingLeft"),
|
3785
|
+
paddingInlineStart: t.space("paddingInlineStart"),
|
3786
|
+
paddingInlineEnd: t.space("paddingInlineEnd"),
|
3787
|
+
paddingX: t.space(["paddingInlineStart", "paddingInlineEnd"]),
|
3788
|
+
paddingInline: t.space("paddingInline"),
|
3789
|
+
paddingY: t.space(["paddingTop", "paddingBottom"]),
|
3790
|
+
paddingBlock: t.space("paddingBlock")
|
3791
|
+
};
|
3792
|
+
Object.assign(space, {
|
3793
|
+
m: space.margin,
|
3794
|
+
mt: space.marginTop,
|
3795
|
+
mr: space.marginRight,
|
3796
|
+
me: space.marginInlineEnd,
|
3797
|
+
marginEnd: space.marginInlineEnd,
|
3798
|
+
mb: space.marginBottom,
|
3799
|
+
ml: space.marginLeft,
|
3800
|
+
ms: space.marginInlineStart,
|
3801
|
+
marginStart: space.marginInlineStart,
|
3802
|
+
mx: space.marginX,
|
3803
|
+
my: space.marginY,
|
3804
|
+
p: space.padding,
|
3805
|
+
pt: space.paddingTop,
|
3806
|
+
py: space.paddingY,
|
3807
|
+
px: space.paddingX,
|
3808
|
+
pb: space.paddingBottom,
|
3809
|
+
pl: space.paddingLeft,
|
3810
|
+
ps: space.paddingInlineStart,
|
3811
|
+
paddingStart: space.paddingInlineStart,
|
3812
|
+
pr: space.paddingRight,
|
3813
|
+
pe: space.paddingInlineEnd,
|
3814
|
+
paddingEnd: space.paddingInlineEnd
|
3815
|
+
});
|
3816
|
+
var textDecoration = {
|
3817
|
+
textDecorationColor: t.colors("textDecorationColor"),
|
3818
|
+
textDecoration: true,
|
3819
|
+
textDecor: { property: "textDecoration" },
|
3820
|
+
textDecorationLine: true,
|
3821
|
+
textDecorationStyle: true,
|
3822
|
+
textDecorationThickness: true,
|
3823
|
+
textUnderlineOffset: true,
|
3824
|
+
textShadow: t.shadows("textShadow")
|
3825
|
+
};
|
3826
|
+
var transform = {
|
3827
|
+
clipPath: true,
|
3828
|
+
transform: t.propT("transform", transformFunctions.transform),
|
3829
|
+
transformOrigin: true,
|
3830
|
+
translateX: t.spaceT("--chakra-translate-x"),
|
3831
|
+
translateY: t.spaceT("--chakra-translate-y"),
|
3832
|
+
skewX: t.degreeT("--chakra-skew-x"),
|
3833
|
+
skewY: t.degreeT("--chakra-skew-y"),
|
3834
|
+
scaleX: t.prop("--chakra-scale-x"),
|
3835
|
+
scaleY: t.prop("--chakra-scale-y"),
|
3836
|
+
scale: t.prop(["--chakra-scale-x", "--chakra-scale-y"]),
|
3837
|
+
rotate: t.degreeT("--chakra-rotate")
|
3838
|
+
};
|
3839
|
+
var transition = {
|
3840
|
+
transition: true,
|
3841
|
+
transitionDelay: true,
|
3842
|
+
animation: true,
|
3843
|
+
willChange: true,
|
3844
|
+
transitionDuration: t.prop("transitionDuration", "transition.duration"),
|
3845
|
+
transitionProperty: t.prop("transitionProperty", "transition.property"),
|
3846
|
+
transitionTimingFunction: t.prop(
|
3847
|
+
"transitionTimingFunction",
|
3848
|
+
"transition.easing"
|
3849
|
+
)
|
3850
|
+
};
|
3851
|
+
var typography = {
|
3852
|
+
fontFamily: t.prop("fontFamily", "fonts"),
|
3853
|
+
fontSize: t.prop("fontSize", "fontSizes", transformFunctions.px),
|
3854
|
+
fontWeight: t.prop("fontWeight", "fontWeights"),
|
3855
|
+
lineHeight: t.prop("lineHeight", "lineHeights"),
|
3856
|
+
letterSpacing: t.prop("letterSpacing", "letterSpacings"),
|
3857
|
+
textAlign: true,
|
3858
|
+
fontStyle: true,
|
3859
|
+
textIndent: true,
|
3860
|
+
wordBreak: true,
|
3861
|
+
overflowWrap: true,
|
3862
|
+
textOverflow: true,
|
3863
|
+
textTransform: true,
|
3864
|
+
whiteSpace: true,
|
3865
|
+
isTruncated: {
|
3866
|
+
transform(value) {
|
3867
|
+
if (value === true) {
|
3868
|
+
return {
|
3869
|
+
overflow: "hidden",
|
3870
|
+
textOverflow: "ellipsis",
|
3871
|
+
whiteSpace: "nowrap"
|
3872
|
+
};
|
3873
|
+
}
|
3874
|
+
}
|
3875
|
+
},
|
3876
|
+
noOfLines: {
|
3877
|
+
static: {
|
3878
|
+
overflow: "hidden",
|
3879
|
+
textOverflow: "ellipsis",
|
3880
|
+
display: "-webkit-box",
|
3881
|
+
WebkitBoxOrient: "vertical",
|
3882
|
+
WebkitLineClamp: "var(--chakra-line-clamp)"
|
3883
|
+
},
|
3884
|
+
property: "--chakra-line-clamp"
|
3885
|
+
}
|
3886
|
+
};
|
3887
|
+
var scroll = {
|
3888
|
+
scrollBehavior: true,
|
3889
|
+
scrollSnapAlign: true,
|
3890
|
+
scrollSnapStop: true,
|
3891
|
+
scrollSnapType: true,
|
3892
|
+
scrollMargin: t.spaceT("scrollMargin"),
|
3893
|
+
scrollMarginTop: t.spaceT("scrollMarginTop"),
|
3894
|
+
scrollMarginBottom: t.spaceT("scrollMarginBottom"),
|
3895
|
+
scrollMarginLeft: t.spaceT("scrollMarginLeft"),
|
3896
|
+
scrollMarginRight: t.spaceT("scrollMarginRight"),
|
3897
|
+
scrollMarginX: t.spaceT(["scrollMarginLeft", "scrollMarginRight"]),
|
3898
|
+
scrollMarginY: t.spaceT(["scrollMarginTop", "scrollMarginBottom"]),
|
3899
|
+
scrollPadding: t.spaceT("scrollPadding"),
|
3900
|
+
scrollPaddingTop: t.spaceT("scrollPaddingTop"),
|
3901
|
+
scrollPaddingBottom: t.spaceT("scrollPaddingBottom"),
|
3902
|
+
scrollPaddingLeft: t.spaceT("scrollPaddingLeft"),
|
3903
|
+
scrollPaddingRight: t.spaceT("scrollPaddingRight"),
|
3904
|
+
scrollPaddingX: t.spaceT(["scrollPaddingLeft", "scrollPaddingRight"]),
|
3905
|
+
scrollPaddingY: t.spaceT(["scrollPaddingTop", "scrollPaddingBottom"])
|
3906
|
+
};
|
3907
|
+
function resolveReference(operand) {
|
3908
|
+
if (isObject(operand) && operand.reference) {
|
3909
|
+
return operand.reference;
|
3910
|
+
}
|
3911
|
+
return String(operand);
|
3912
|
+
}
|
3913
|
+
var toExpression = (operator, ...operands) => operands.map(resolveReference).join(` ${operator} `).replace(/calc/g, "");
|
3914
|
+
var add = (...operands) => `calc(${toExpression("+", ...operands)})`;
|
3915
|
+
var subtract = (...operands) => `calc(${toExpression("-", ...operands)})`;
|
3916
|
+
var multiply = (...operands) => `calc(${toExpression("*", ...operands)})`;
|
3917
|
+
var divide = (...operands) => `calc(${toExpression("/", ...operands)})`;
|
3918
|
+
var negate = (x) => {
|
3919
|
+
const value = resolveReference(x);
|
3920
|
+
if (value != null && !Number.isNaN(parseFloat(value))) {
|
3921
|
+
return String(value).startsWith("-") ? String(value).slice(1) : `-${value}`;
|
3922
|
+
}
|
3923
|
+
return multiply(value, -1);
|
3924
|
+
};
|
3925
|
+
var calc = Object.assign(
|
3926
|
+
(x) => ({
|
3927
|
+
add: (...operands) => calc(add(x, ...operands)),
|
3928
|
+
subtract: (...operands) => calc(subtract(x, ...operands)),
|
3929
|
+
multiply: (...operands) => calc(multiply(x, ...operands)),
|
3930
|
+
divide: (...operands) => calc(divide(x, ...operands)),
|
3931
|
+
negate: () => calc(negate(x)),
|
3932
|
+
toString: () => x.toString()
|
3933
|
+
}),
|
3934
|
+
{
|
3935
|
+
add,
|
3936
|
+
subtract,
|
3937
|
+
multiply,
|
3938
|
+
divide,
|
3939
|
+
negate
|
3940
|
+
}
|
3941
|
+
);
|
3942
|
+
function analyzeCSSValue2(value) {
|
3943
|
+
const num = parseFloat(value.toString());
|
3944
|
+
const unit = value.toString().replace(String(num), "");
|
3945
|
+
return { unitless: !unit, value: num, unit };
|
3946
|
+
}
|
3947
|
+
function px(value) {
|
3948
|
+
if (value == null)
|
3949
|
+
return value;
|
3950
|
+
const { unitless } = analyzeCSSValue2(value);
|
3951
|
+
return unitless || typeof value === "number" ? `${value}px` : value;
|
3952
|
+
}
|
3953
|
+
function toMediaQueryString(min, max) {
|
3954
|
+
const query = ["@media screen"];
|
3955
|
+
if (min)
|
3956
|
+
query.push("and", `(min-width: ${px(min)})`);
|
3957
|
+
if (max)
|
3958
|
+
query.push("and", `(max-width: ${px(max)})`);
|
3959
|
+
return query.join(" ");
|
3960
|
+
}
|
3961
|
+
var state = {
|
3962
|
+
hover: (str, post) => `${str}:hover ${post}, ${str}[data-hover] ${post}`,
|
3963
|
+
focus: (str, post) => `${str}:focus ${post}, ${str}[data-focus] ${post}`,
|
3964
|
+
focusVisible: (str, post) => `${str}:focus-visible ${post}`,
|
3965
|
+
focusWithin: (str, post) => `${str}:focus-within ${post}`,
|
3966
|
+
active: (str, post) => `${str}:active ${post}, ${str}[data-active] ${post}`,
|
3967
|
+
disabled: (str, post) => `${str}:disabled ${post}, ${str}[data-disabled] ${post}`,
|
3968
|
+
invalid: (str, post) => `${str}:invalid ${post}, ${str}[data-invalid] ${post}`,
|
3969
|
+
checked: (str, post) => `${str}:checked ${post}, ${str}[data-checked] ${post}`,
|
3970
|
+
indeterminate: (str, post) => `${str}:indeterminate ${post}, ${str}[aria-checked=mixed] ${post}, ${str}[data-indeterminate] ${post}`,
|
3971
|
+
readOnly: (str, post) => `${str}:read-only ${post}, ${str}[readonly] ${post}, ${str}[data-read-only] ${post}`,
|
3972
|
+
expanded: (str, post) => `${str}:read-only ${post}, ${str}[aria-expanded=true] ${post}, ${str}[data-expanded] ${post}`,
|
3973
|
+
placeholderShown: (str, post) => `${str}:placeholder-shown ${post}`
|
3974
|
+
};
|
3975
|
+
var toGroup = (fn) => merge2((v) => fn(v, "&"), "[role=group]", "[data-group]", ".group");
|
3976
|
+
var toPeer = (fn) => merge2((v) => fn(v, "~ &"), "[data-peer]", ".peer");
|
3977
|
+
var merge2 = (fn, ...selectors) => selectors.map(fn).join(", ");
|
3978
|
+
var pseudoSelectors = {
|
3979
|
+
_hover: "&:hover, &[data-hover]",
|
3980
|
+
_active: "&:active, &[data-active]",
|
3981
|
+
_focus: "&:focus, &[data-focus]",
|
3982
|
+
_highlighted: "&[data-highlighted]",
|
3983
|
+
_focusWithin: "&:focus-within",
|
3984
|
+
_focusVisible: "&:focus-visible, &[data-focus-visible]",
|
3985
|
+
_disabled: "&:disabled, &[disabled], &[aria-disabled=true], &[data-disabled]",
|
3986
|
+
_readOnly: "&[aria-readonly=true], &[readonly], &[data-readonly]",
|
3987
|
+
_before: "&::before",
|
3988
|
+
_after: "&::after",
|
3989
|
+
_empty: "&:empty",
|
3990
|
+
_expanded: "&[aria-expanded=true], &[data-expanded]",
|
3991
|
+
_checked: "&[aria-checked=true], &[data-checked]",
|
3992
|
+
_grabbed: "&[aria-grabbed=true], &[data-grabbed]",
|
3993
|
+
_pressed: "&[aria-pressed=true], &[data-pressed]",
|
3994
|
+
_invalid: "&[aria-invalid=true], &[data-invalid]",
|
3995
|
+
_valid: "&[data-valid], &[data-state=valid]",
|
3996
|
+
_loading: "&[data-loading], &[aria-busy=true]",
|
3997
|
+
_selected: "&[aria-selected=true], &[data-selected]",
|
3998
|
+
_hidden: "&[hidden], &[data-hidden]",
|
3999
|
+
_autofill: "&:-webkit-autofill",
|
4000
|
+
_even: "&:nth-of-type(even)",
|
4001
|
+
_odd: "&:nth-of-type(odd)",
|
4002
|
+
_first: "&:first-of-type",
|
4003
|
+
_firstLetter: "&::first-letter",
|
4004
|
+
_last: "&:last-of-type",
|
4005
|
+
_notFirst: "&:not(:first-of-type)",
|
4006
|
+
_notLast: "&:not(:last-of-type)",
|
4007
|
+
_visited: "&:visited",
|
4008
|
+
_activeLink: "&[aria-current=page]",
|
4009
|
+
_activeStep: "&[aria-current=step]",
|
4010
|
+
_indeterminate: "&:indeterminate, &[aria-checked=mixed], &[data-indeterminate]",
|
4011
|
+
_groupHover: toGroup(state.hover),
|
4012
|
+
_peerHover: toPeer(state.hover),
|
4013
|
+
_groupFocus: toGroup(state.focus),
|
4014
|
+
_peerFocus: toPeer(state.focus),
|
4015
|
+
_groupFocusVisible: toGroup(state.focusVisible),
|
4016
|
+
_peerFocusVisible: toPeer(state.focusVisible),
|
4017
|
+
_groupActive: toGroup(state.active),
|
4018
|
+
_peerActive: toPeer(state.active),
|
4019
|
+
_groupDisabled: toGroup(state.disabled),
|
4020
|
+
_peerDisabled: toPeer(state.disabled),
|
4021
|
+
_groupInvalid: toGroup(state.invalid),
|
4022
|
+
_peerInvalid: toPeer(state.invalid),
|
4023
|
+
_groupChecked: toGroup(state.checked),
|
4024
|
+
_peerChecked: toPeer(state.checked),
|
4025
|
+
_groupFocusWithin: toGroup(state.focusWithin),
|
4026
|
+
_peerFocusWithin: toPeer(state.focusWithin),
|
4027
|
+
_peerPlaceholderShown: toPeer(state.placeholderShown),
|
4028
|
+
_placeholder: "&::placeholder",
|
4029
|
+
_placeholderShown: "&:placeholder-shown",
|
4030
|
+
_fullScreen: "&:fullscreen",
|
4031
|
+
_selection: "&::selection",
|
4032
|
+
_rtl: "[dir=rtl] &, &[dir=rtl]",
|
4033
|
+
_ltr: "[dir=ltr] &, &[dir=ltr]",
|
4034
|
+
_mediaDark: "@media (prefers-color-scheme: dark)",
|
4035
|
+
_mediaReduceMotion: "@media (prefers-reduced-motion: reduce)",
|
4036
|
+
_dark: ".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",
|
4037
|
+
_light: ".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]"
|
4038
|
+
};
|
4039
|
+
var pseudoPropNames = Object.keys(
|
4040
|
+
pseudoSelectors
|
4041
|
+
);
|
4042
|
+
var systemProps = (0, import_lodash3.default)(
|
4043
|
+
{},
|
4044
|
+
background,
|
4045
|
+
border,
|
4046
|
+
color,
|
4047
|
+
flexbox,
|
4048
|
+
layout,
|
4049
|
+
filter,
|
4050
|
+
ring,
|
4051
|
+
interactivity,
|
4052
|
+
grid,
|
4053
|
+
others,
|
4054
|
+
position2,
|
4055
|
+
effect,
|
4056
|
+
space,
|
4057
|
+
scroll,
|
4058
|
+
typography,
|
4059
|
+
textDecoration,
|
4060
|
+
transform,
|
4061
|
+
list,
|
4062
|
+
transition
|
4063
|
+
);
|
4064
|
+
var layoutSystem = Object.assign({}, space, layout, flexbox, grid, position2);
|
4065
|
+
var layoutPropNames = Object.keys(
|
4066
|
+
layoutSystem
|
4067
|
+
);
|
4068
|
+
var propNames = [...Object.keys(systemProps), ...pseudoPropNames];
|
4069
|
+
var styleProps = __spreadValues(__spreadValues({}, systemProps), pseudoSelectors);
|
4070
|
+
var isStyleProp = (prop) => prop in styleProps;
|
4071
|
+
var expandResponsive = (styles) => (theme) => {
|
4072
|
+
if (!theme.__breakpoints)
|
4073
|
+
return styles;
|
4074
|
+
const { isResponsive, toArrayValue, media: medias } = theme.__breakpoints;
|
4075
|
+
const computedStyles = {};
|
4076
|
+
for (const key in styles) {
|
4077
|
+
let value = runIfFn(styles[key], theme);
|
4078
|
+
if (value == null)
|
4079
|
+
continue;
|
4080
|
+
value = isObject(value) && isResponsive(value) ? toArrayValue(value) : value;
|
4081
|
+
if (!Array.isArray(value)) {
|
4082
|
+
computedStyles[key] = value;
|
4083
|
+
continue;
|
4084
|
+
}
|
4085
|
+
const queries = value.slice(0, medias.length).length;
|
4086
|
+
for (let index = 0; index < queries; index += 1) {
|
4087
|
+
const media = medias == null ? void 0 : medias[index];
|
4088
|
+
if (!media) {
|
4089
|
+
computedStyles[key] = value[index];
|
4090
|
+
continue;
|
4091
|
+
}
|
4092
|
+
computedStyles[media] = computedStyles[media] || {};
|
4093
|
+
if (value[index] == null) {
|
4094
|
+
continue;
|
4095
|
+
}
|
4096
|
+
computedStyles[media][key] = value[index];
|
4097
|
+
}
|
4098
|
+
}
|
4099
|
+
return computedStyles;
|
4100
|
+
};
|
4101
|
+
function splitByComma(value) {
|
4102
|
+
const chunks = [];
|
4103
|
+
let chunk = "";
|
4104
|
+
let inParens = false;
|
4105
|
+
for (let i = 0; i < value.length; i++) {
|
4106
|
+
const char2 = value[i];
|
4107
|
+
if (char2 === "(") {
|
4108
|
+
inParens = true;
|
4109
|
+
chunk += char2;
|
4110
|
+
} else if (char2 === ")") {
|
4111
|
+
inParens = false;
|
4112
|
+
chunk += char2;
|
4113
|
+
} else if (char2 === "," && !inParens) {
|
4114
|
+
chunks.push(chunk);
|
4115
|
+
chunk = "";
|
4116
|
+
} else {
|
4117
|
+
chunk += char2;
|
4118
|
+
}
|
4119
|
+
}
|
4120
|
+
chunk = chunk.trim();
|
4121
|
+
if (chunk) {
|
4122
|
+
chunks.push(chunk);
|
4123
|
+
}
|
4124
|
+
return chunks;
|
4125
|
+
}
|
4126
|
+
function isCssVar2(value) {
|
4127
|
+
return /^var\(--.+\)$/.test(value);
|
4128
|
+
}
|
4129
|
+
var isCSSVariableTokenValue = (key, value) => key.startsWith("--") && typeof value === "string" && !isCssVar2(value);
|
4130
|
+
var resolveTokenValue = (theme, value) => {
|
4131
|
+
var _a2, _b;
|
4132
|
+
if (value == null)
|
4133
|
+
return value;
|
4134
|
+
const getVar = (val) => {
|
4135
|
+
var _a22, _b2;
|
4136
|
+
return (_b2 = (_a22 = theme.__cssMap) == null ? void 0 : _a22[val]) == null ? void 0 : _b2.varRef;
|
4137
|
+
};
|
4138
|
+
const getValue = (val) => {
|
4139
|
+
var _a22;
|
4140
|
+
return (_a22 = getVar(val)) != null ? _a22 : val;
|
4141
|
+
};
|
4142
|
+
const [tokenValue, fallbackValue] = splitByComma(value);
|
4143
|
+
value = (_b = (_a2 = getVar(tokenValue)) != null ? _a2 : getValue(fallbackValue)) != null ? _b : getValue(value);
|
4144
|
+
return value;
|
4145
|
+
};
|
4146
|
+
function getCss(options) {
|
4147
|
+
const { configs = {}, pseudos = {}, theme } = options;
|
4148
|
+
const css2 = (stylesOrFn, nested = false) => {
|
4149
|
+
var _a2, _b, _c;
|
4150
|
+
const _styles = runIfFn(stylesOrFn, theme);
|
4151
|
+
const styles = expandResponsive(_styles)(theme);
|
4152
|
+
let computedStyles = {};
|
4153
|
+
for (let key in styles) {
|
4154
|
+
const valueOrFn = styles[key];
|
4155
|
+
let value = runIfFn(valueOrFn, theme);
|
4156
|
+
if (key in pseudos) {
|
4157
|
+
key = pseudos[key];
|
4158
|
+
}
|
4159
|
+
if (isCSSVariableTokenValue(key, value)) {
|
4160
|
+
value = resolveTokenValue(theme, value);
|
4161
|
+
}
|
4162
|
+
let config = configs[key];
|
4163
|
+
if (config === true) {
|
4164
|
+
config = { property: key };
|
4165
|
+
}
|
4166
|
+
if (isObject(value)) {
|
4167
|
+
computedStyles[key] = (_a2 = computedStyles[key]) != null ? _a2 : {};
|
4168
|
+
computedStyles[key] = (0, import_lodash2.default)(
|
4169
|
+
{},
|
4170
|
+
computedStyles[key],
|
4171
|
+
css2(value, true)
|
4172
|
+
);
|
4173
|
+
continue;
|
4174
|
+
}
|
4175
|
+
let rawValue = (_c = (_b = config == null ? void 0 : config.transform) == null ? void 0 : _b.call(config, value, theme, _styles)) != null ? _c : value;
|
4176
|
+
rawValue = (config == null ? void 0 : config.processResult) ? css2(rawValue, true) : rawValue;
|
4177
|
+
const configProperty = runIfFn(config == null ? void 0 : config.property, theme);
|
4178
|
+
if (!nested && (config == null ? void 0 : config.static)) {
|
4179
|
+
const staticStyles = runIfFn(config.static, theme);
|
4180
|
+
computedStyles = (0, import_lodash2.default)({}, computedStyles, staticStyles);
|
4181
|
+
}
|
4182
|
+
if (configProperty && Array.isArray(configProperty)) {
|
4183
|
+
for (const property of configProperty) {
|
4184
|
+
computedStyles[property] = rawValue;
|
4185
|
+
}
|
4186
|
+
continue;
|
4187
|
+
}
|
4188
|
+
if (configProperty) {
|
4189
|
+
if (configProperty === "&" && isObject(rawValue)) {
|
4190
|
+
computedStyles = (0, import_lodash2.default)({}, computedStyles, rawValue);
|
4191
|
+
} else {
|
4192
|
+
computedStyles[configProperty] = rawValue;
|
4193
|
+
}
|
4194
|
+
continue;
|
4195
|
+
}
|
4196
|
+
if (isObject(rawValue)) {
|
4197
|
+
computedStyles = (0, import_lodash2.default)({}, computedStyles, rawValue);
|
4198
|
+
continue;
|
4199
|
+
}
|
4200
|
+
computedStyles[key] = rawValue;
|
4201
|
+
}
|
4202
|
+
return computedStyles;
|
4203
|
+
};
|
4204
|
+
return css2;
|
4205
|
+
}
|
4206
|
+
var css = (styles) => (theme) => {
|
4207
|
+
const cssFn = getCss({
|
4208
|
+
theme,
|
4209
|
+
pseudos: pseudoSelectors,
|
4210
|
+
configs: systemProps
|
4211
|
+
});
|
4212
|
+
return cssFn(styles);
|
4213
|
+
};
|
4214
|
+
function normalize2(value, toArray) {
|
4215
|
+
if (Array.isArray(value))
|
4216
|
+
return value;
|
4217
|
+
if (isObject(value))
|
4218
|
+
return toArray(value);
|
4219
|
+
if (value != null)
|
4220
|
+
return [value];
|
4221
|
+
}
|
4222
|
+
function getNextIndex(values, i) {
|
4223
|
+
for (let j = i + 1; j < values.length; j++) {
|
4224
|
+
if (values[j] != null)
|
4225
|
+
return j;
|
4226
|
+
}
|
4227
|
+
return -1;
|
4228
|
+
}
|
4229
|
+
function createResolver(theme) {
|
4230
|
+
const breakpointUtil = theme.__breakpoints;
|
4231
|
+
return function resolver(config, prop, value, props) {
|
4232
|
+
var _a2, _b;
|
4233
|
+
if (!breakpointUtil)
|
4234
|
+
return;
|
4235
|
+
const result = {};
|
4236
|
+
const normalized = normalize2(value, breakpointUtil.toArrayValue);
|
4237
|
+
if (!normalized)
|
4238
|
+
return result;
|
4239
|
+
const len = normalized.length;
|
4240
|
+
const isSingle = len === 1;
|
4241
|
+
const isMultipart = !!config.parts;
|
4242
|
+
for (let i = 0; i < len; i++) {
|
4243
|
+
const key = breakpointUtil.details[i];
|
4244
|
+
const nextKey = breakpointUtil.details[getNextIndex(normalized, i)];
|
4245
|
+
const query = toMediaQueryString(key.minW, nextKey == null ? void 0 : nextKey._minW);
|
4246
|
+
const styles = runIfFn((_a2 = config[prop]) == null ? void 0 : _a2[normalized[i]], props);
|
4247
|
+
if (!styles)
|
4248
|
+
continue;
|
4249
|
+
if (isMultipart) {
|
4250
|
+
(_b = config.parts) == null ? void 0 : _b.forEach((part) => {
|
4251
|
+
(0, import_lodash4.default)(result, {
|
4252
|
+
[part]: isSingle ? styles[part] : { [query]: styles[part] }
|
4253
|
+
});
|
4254
|
+
});
|
4255
|
+
continue;
|
4256
|
+
}
|
4257
|
+
if (!isMultipart) {
|
4258
|
+
if (isSingle)
|
4259
|
+
(0, import_lodash4.default)(result, styles);
|
4260
|
+
else
|
4261
|
+
result[query] = styles;
|
4262
|
+
continue;
|
4263
|
+
}
|
4264
|
+
result[query] = styles;
|
4265
|
+
}
|
4266
|
+
return result;
|
4267
|
+
};
|
4268
|
+
}
|
4269
|
+
function resolveStyleConfig(config) {
|
4270
|
+
return (props) => {
|
4271
|
+
var _a2;
|
4272
|
+
const { variant, size, theme } = props;
|
4273
|
+
const recipe = createResolver(theme);
|
4274
|
+
return (0, import_lodash4.default)(
|
4275
|
+
{},
|
4276
|
+
runIfFn((_a2 = config.baseStyle) != null ? _a2 : {}, props),
|
4277
|
+
recipe(config, "sizes", size, props),
|
4278
|
+
recipe(config, "variants", variant, props)
|
4279
|
+
);
|
4280
|
+
};
|
4281
|
+
}
|
4282
|
+
|
4283
|
+
// ../../node_modules/@chakra-ui/utils/dist/chunk-YTQ3XZ3T.mjs
|
4284
|
+
var import_lodash5 = __toESM(require_lodash(), 1);
|
4285
|
+
function omit(object, keys) {
|
4286
|
+
const result = {};
|
4287
|
+
Object.keys(object).forEach((key) => {
|
4288
|
+
if (keys.includes(key))
|
4289
|
+
return;
|
4290
|
+
result[key] = object[key];
|
4291
|
+
});
|
4292
|
+
return result;
|
4293
|
+
}
|
4294
|
+
function get2(obj, path, fallback, index) {
|
4295
|
+
const key = typeof path === "string" ? path.split(".") : [path];
|
4296
|
+
for (index = 0; index < key.length; index += 1) {
|
4297
|
+
if (!obj)
|
4298
|
+
break;
|
4299
|
+
obj = obj[key[index]];
|
4300
|
+
}
|
4301
|
+
return obj === void 0 ? fallback : obj;
|
4302
|
+
}
|
4303
|
+
var memoize3 = (fn) => {
|
4304
|
+
const cache = /* @__PURE__ */ new WeakMap();
|
4305
|
+
const memoizedFn = (obj, path, fallback, index) => {
|
4306
|
+
if (typeof obj === "undefined") {
|
4307
|
+
return fn(obj, path, fallback);
|
4308
|
+
}
|
4309
|
+
if (!cache.has(obj)) {
|
4310
|
+
cache.set(obj, /* @__PURE__ */ new Map());
|
4311
|
+
}
|
4312
|
+
const map = cache.get(obj);
|
4313
|
+
if (map.has(path)) {
|
4314
|
+
return map.get(path);
|
4315
|
+
}
|
4316
|
+
const value = fn(obj, path, fallback, index);
|
4317
|
+
map.set(path, value);
|
4318
|
+
return value;
|
4319
|
+
};
|
4320
|
+
return memoizedFn;
|
4321
|
+
};
|
4322
|
+
var memoizedGet2 = memoize3(get2);
|
4323
|
+
function objectFilter(object, fn) {
|
4324
|
+
const result = {};
|
4325
|
+
Object.keys(object).forEach((key) => {
|
4326
|
+
const value = object[key];
|
4327
|
+
const shouldPass = fn(value, key, object);
|
4328
|
+
if (shouldPass) {
|
4329
|
+
result[key] = value;
|
4330
|
+
}
|
4331
|
+
});
|
4332
|
+
return result;
|
4333
|
+
}
|
4334
|
+
var filterUndefined = (object) => objectFilter(object, (val) => val !== null && val !== void 0);
|
4335
|
+
|
4336
|
+
// ../../node_modules/@chakra-ui/utils/dist/chunk-Y5FGD7DM.mjs
|
4337
|
+
function isFunction2(value) {
|
4338
|
+
return typeof value === "function";
|
4339
|
+
}
|
4340
|
+
var __DEV__ = process.env.NODE_ENV !== "production";
|
4341
|
+
var __TEST__ = process.env.NODE_ENV === "test";
|
4342
|
+
|
4343
|
+
// ../../node_modules/@chakra-ui/utils/dist/chunk-M3TFMUOL.mjs
|
4344
|
+
function runIfFn2(valueOrFn, ...args) {
|
4345
|
+
return isFunction2(valueOrFn) ? valueOrFn(...args) : valueOrFn;
|
4346
|
+
}
|
4347
|
+
|
4348
|
+
// ../../node_modules/@chakra-ui/system/dist/chunk-T2VHL7RE.mjs
|
4349
|
+
var import_react_fast_compare = __toESM(require_react_fast_compare(), 1);
|
4350
|
+
import { useRef as useRef2 } from "react";
|
4351
|
+
function useStyleConfigImpl(themeKey, props = {}) {
|
4352
|
+
var _a2;
|
4353
|
+
const _a3 = props, { styleConfig: styleConfigProp } = _a3, rest = __objRest(_a3, ["styleConfig"]);
|
4354
|
+
const { theme, colorMode } = useChakra();
|
4355
|
+
const themeStyleConfig = themeKey ? memoizedGet2(theme, `components.${themeKey}`) : void 0;
|
4356
|
+
const styleConfig = styleConfigProp || themeStyleConfig;
|
4357
|
+
const mergedProps = (0, import_lodash5.default)(
|
4358
|
+
{ theme, colorMode },
|
4359
|
+
(_a2 = styleConfig == null ? void 0 : styleConfig.defaultProps) != null ? _a2 : {},
|
4360
|
+
filterUndefined(omit(rest, ["children"]))
|
4361
|
+
);
|
4362
|
+
const stylesRef = useRef2({});
|
4363
|
+
if (styleConfig) {
|
4364
|
+
const getStyles = resolveStyleConfig(styleConfig);
|
4365
|
+
const styles = getStyles(mergedProps);
|
4366
|
+
const isStyleEqual = (0, import_react_fast_compare.default)(stylesRef.current, styles);
|
4367
|
+
if (!isStyleEqual) {
|
4368
|
+
stylesRef.current = styles;
|
4369
|
+
}
|
4370
|
+
}
|
4371
|
+
return stylesRef.current;
|
4372
|
+
}
|
4373
|
+
function useStyleConfig(themeKey, props = {}) {
|
4374
|
+
return useStyleConfigImpl(themeKey, props);
|
4375
|
+
}
|
4376
|
+
|
4377
|
+
// ../../node_modules/@chakra-ui/system/dist/chunk-NAGWYFCH.mjs
|
4378
|
+
var allPropNames = /* @__PURE__ */ new Set([
|
4379
|
+
...propNames,
|
4380
|
+
"textStyle",
|
4381
|
+
"layerStyle",
|
4382
|
+
"apply",
|
4383
|
+
"noOfLines",
|
4384
|
+
"focusBorderColor",
|
4385
|
+
"errorBorderColor",
|
4386
|
+
"as",
|
4387
|
+
"__css",
|
4388
|
+
"css",
|
4389
|
+
"sx"
|
4390
|
+
]);
|
4391
|
+
var validHTMLProps = /* @__PURE__ */ new Set([
|
4392
|
+
"htmlWidth",
|
4393
|
+
"htmlHeight",
|
4394
|
+
"htmlSize",
|
4395
|
+
"htmlTranslate"
|
4396
|
+
]);
|
4397
|
+
function shouldForwardProp(prop) {
|
4398
|
+
return validHTMLProps.has(prop) || !allPropNames.has(prop);
|
4399
|
+
}
|
4400
|
+
|
4401
|
+
// ../../node_modules/@chakra-ui/object-utils/dist/index.mjs
|
4402
|
+
function assignAfter(target, ...sources) {
|
4403
|
+
if (target == null) {
|
4404
|
+
throw new TypeError("Cannot convert undefined or null to object");
|
4405
|
+
}
|
4406
|
+
const result = __spreadValues({}, target);
|
4407
|
+
for (const nextSource of sources) {
|
4408
|
+
if (nextSource == null)
|
4409
|
+
continue;
|
4410
|
+
for (const nextKey in nextSource) {
|
4411
|
+
if (!Object.prototype.hasOwnProperty.call(nextSource, nextKey))
|
4412
|
+
continue;
|
4413
|
+
if (nextKey in result)
|
4414
|
+
delete result[nextKey];
|
4415
|
+
result[nextKey] = nextSource[nextKey];
|
4416
|
+
}
|
4417
|
+
}
|
4418
|
+
return result;
|
4419
|
+
}
|
4420
|
+
|
4421
|
+
// ../../node_modules/@emotion/styled/dist/emotion-styled.esm.js
|
4422
|
+
var import_extends4 = __toESM(require_extends());
|
4423
|
+
import "react";
|
4424
|
+
|
4425
|
+
// ../../node_modules/@emotion/styled/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js
|
4426
|
+
var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/;
|
4427
|
+
var isPropValid = /* @__PURE__ */ emotion_memoize_esm_default(
|
4428
|
+
function(prop) {
|
4429
|
+
return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111 && prop.charCodeAt(1) === 110 && prop.charCodeAt(2) < 91;
|
4430
|
+
}
|
4431
|
+
/* Z+1 */
|
4432
|
+
);
|
4433
|
+
var emotion_is_prop_valid_esm_default = isPropValid;
|
4434
|
+
|
4435
|
+
// ../../node_modules/@emotion/styled/base/dist/emotion-styled-base.esm.js
|
4436
|
+
import { useContext as useContext5, createElement as createElement3, Fragment as Fragment3 } from "react";
|
4437
|
+
var testOmitPropsOnStringTag = emotion_is_prop_valid_esm_default;
|
4438
|
+
var testOmitPropsOnComponent = function testOmitPropsOnComponent2(key) {
|
4439
|
+
return key !== "theme";
|
4440
|
+
};
|
4441
|
+
var getDefaultShouldForwardProp = function getDefaultShouldForwardProp2(tag) {
|
4442
|
+
return typeof tag === "string" && // 96 is one less than the char code
|
4443
|
+
// for "a" so this is checking that
|
4444
|
+
// it's a lowercase character
|
4445
|
+
tag.charCodeAt(0) > 96 ? testOmitPropsOnStringTag : testOmitPropsOnComponent;
|
4446
|
+
};
|
4447
|
+
var composeShouldForwardProps = function composeShouldForwardProps2(tag, options, isReal) {
|
4448
|
+
var shouldForwardProp2;
|
4449
|
+
if (options) {
|
4450
|
+
var optionsShouldForwardProp = options.shouldForwardProp;
|
4451
|
+
shouldForwardProp2 = tag.__emotion_forwardProp && optionsShouldForwardProp ? function(propName) {
|
4452
|
+
return tag.__emotion_forwardProp(propName) && optionsShouldForwardProp(propName);
|
4453
|
+
} : optionsShouldForwardProp;
|
4454
|
+
}
|
4455
|
+
if (typeof shouldForwardProp2 !== "function" && isReal) {
|
4456
|
+
shouldForwardProp2 = tag.__emotion_forwardProp;
|
4457
|
+
}
|
4458
|
+
return shouldForwardProp2;
|
4459
|
+
};
|
4460
|
+
var ILLEGAL_ESCAPE_SEQUENCE_ERROR2 = `You have illegal escape sequence in your template literal, most likely inside content's property value.
|
4461
|
+
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';".
|
4462
|
+
You can read more about this here:
|
4463
|
+
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`;
|
4464
|
+
var isBrowser5 = typeof document !== "undefined";
|
4465
|
+
var Insertion5 = function Insertion6(_ref) {
|
4466
|
+
var cache = _ref.cache, serialized = _ref.serialized, isStringTag = _ref.isStringTag;
|
4467
|
+
registerStyles(cache, serialized, isStringTag);
|
4468
|
+
var rules = useInsertionEffectAlwaysWithSyncFallback(function() {
|
4469
|
+
return insertStyles(cache, serialized, isStringTag);
|
4470
|
+
});
|
4471
|
+
if (!isBrowser5 && rules !== void 0) {
|
4472
|
+
var _ref2;
|
4473
|
+
var serializedNames = serialized.name;
|
4474
|
+
var next2 = serialized.next;
|
4475
|
+
while (next2 !== void 0) {
|
4476
|
+
serializedNames += " " + next2.name;
|
4477
|
+
next2 = next2.next;
|
4478
|
+
}
|
4479
|
+
return /* @__PURE__ */ createElement3("style", (_ref2 = {}, _ref2["data-emotion"] = cache.key + " " + serializedNames, _ref2.dangerouslySetInnerHTML = {
|
4480
|
+
__html: rules
|
4481
|
+
}, _ref2.nonce = cache.sheet.nonce, _ref2));
|
4482
|
+
}
|
4483
|
+
return null;
|
4484
|
+
};
|
4485
|
+
var createStyled = function createStyled2(tag, options) {
|
4486
|
+
if (process.env.NODE_ENV !== "production") {
|
4487
|
+
if (tag === void 0) {
|
4488
|
+
throw new Error("You are trying to create a styled element with an undefined component.\nYou may have forgotten to import it.");
|
4489
|
+
}
|
4490
|
+
}
|
4491
|
+
var isReal = tag.__emotion_real === tag;
|
4492
|
+
var baseTag = isReal && tag.__emotion_base || tag;
|
4493
|
+
var identifierName;
|
4494
|
+
var targetClassName;
|
4495
|
+
if (options !== void 0) {
|
4496
|
+
identifierName = options.label;
|
4497
|
+
targetClassName = options.target;
|
4498
|
+
}
|
4499
|
+
var shouldForwardProp2 = composeShouldForwardProps(tag, options, isReal);
|
4500
|
+
var defaultShouldForwardProp = shouldForwardProp2 || getDefaultShouldForwardProp(baseTag);
|
4501
|
+
var shouldUseAs = !defaultShouldForwardProp("as");
|
4502
|
+
return function() {
|
4503
|
+
var args = arguments;
|
4504
|
+
var styles = isReal && tag.__emotion_styles !== void 0 ? tag.__emotion_styles.slice(0) : [];
|
4505
|
+
if (identifierName !== void 0) {
|
4506
|
+
styles.push("label:" + identifierName + ";");
|
4507
|
+
}
|
4508
|
+
if (args[0] == null || args[0].raw === void 0) {
|
4509
|
+
styles.push.apply(styles, args);
|
4510
|
+
} else {
|
4511
|
+
if (process.env.NODE_ENV !== "production" && args[0][0] === void 0) {
|
4512
|
+
console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR2);
|
4513
|
+
}
|
4514
|
+
styles.push(args[0][0]);
|
4515
|
+
var len = args.length;
|
4516
|
+
var i = 1;
|
4517
|
+
for (; i < len; i++) {
|
4518
|
+
if (process.env.NODE_ENV !== "production" && args[0][i] === void 0) {
|
4519
|
+
console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR2);
|
4520
|
+
}
|
4521
|
+
styles.push(args[i], args[0][i]);
|
4522
|
+
}
|
4523
|
+
}
|
4524
|
+
var Styled = withEmotionCache(function(props, cache, ref) {
|
4525
|
+
var FinalTag = shouldUseAs && props.as || baseTag;
|
4526
|
+
var className = "";
|
4527
|
+
var classInterpolations = [];
|
4528
|
+
var mergedProps = props;
|
4529
|
+
if (props.theme == null) {
|
4530
|
+
mergedProps = {};
|
4531
|
+
for (var key in props) {
|
4532
|
+
mergedProps[key] = props[key];
|
4533
|
+
}
|
4534
|
+
mergedProps.theme = useContext5(ThemeContext);
|
4535
|
+
}
|
4536
|
+
if (typeof props.className === "string") {
|
4537
|
+
className = getRegisteredStyles(cache.registered, classInterpolations, props.className);
|
4538
|
+
} else if (props.className != null) {
|
4539
|
+
className = props.className + " ";
|
4540
|
+
}
|
4541
|
+
var serialized = serializeStyles(styles.concat(classInterpolations), cache.registered, mergedProps);
|
4542
|
+
className += cache.key + "-" + serialized.name;
|
4543
|
+
if (targetClassName !== void 0) {
|
4544
|
+
className += " " + targetClassName;
|
4545
|
+
}
|
4546
|
+
var finalShouldForwardProp = shouldUseAs && shouldForwardProp2 === void 0 ? getDefaultShouldForwardProp(FinalTag) : defaultShouldForwardProp;
|
4547
|
+
var newProps = {};
|
4548
|
+
for (var _key in props) {
|
4549
|
+
if (shouldUseAs && _key === "as")
|
4550
|
+
continue;
|
4551
|
+
if (
|
4552
|
+
// $FlowFixMe
|
4553
|
+
finalShouldForwardProp(_key)
|
4554
|
+
) {
|
4555
|
+
newProps[_key] = props[_key];
|
4556
|
+
}
|
4557
|
+
}
|
4558
|
+
newProps.className = className;
|
4559
|
+
newProps.ref = ref;
|
4560
|
+
return /* @__PURE__ */ createElement3(Fragment3, null, /* @__PURE__ */ createElement3(Insertion5, {
|
4561
|
+
cache,
|
4562
|
+
serialized,
|
4563
|
+
isStringTag: typeof FinalTag === "string"
|
4564
|
+
}), /* @__PURE__ */ createElement3(FinalTag, newProps));
|
4565
|
+
});
|
4566
|
+
Styled.displayName = identifierName !== void 0 ? identifierName : "Styled(" + (typeof baseTag === "string" ? baseTag : baseTag.displayName || baseTag.name || "Component") + ")";
|
4567
|
+
Styled.defaultProps = tag.defaultProps;
|
4568
|
+
Styled.__emotion_real = Styled;
|
4569
|
+
Styled.__emotion_base = baseTag;
|
4570
|
+
Styled.__emotion_styles = styles;
|
4571
|
+
Styled.__emotion_forwardProp = shouldForwardProp2;
|
4572
|
+
Object.defineProperty(Styled, "toString", {
|
4573
|
+
value: function value() {
|
4574
|
+
if (targetClassName === void 0 && process.env.NODE_ENV !== "production") {
|
4575
|
+
return "NO_COMPONENT_SELECTOR";
|
4576
|
+
}
|
4577
|
+
return "." + targetClassName;
|
4578
|
+
}
|
4579
|
+
});
|
4580
|
+
Styled.withComponent = function(nextTag, nextOptions) {
|
4581
|
+
return createStyled2(nextTag, _extends({}, options, nextOptions, {
|
4582
|
+
shouldForwardProp: composeShouldForwardProps(Styled, nextOptions, true)
|
4583
|
+
})).apply(void 0, styles);
|
4584
|
+
};
|
4585
|
+
return Styled;
|
4586
|
+
};
|
4587
|
+
};
|
4588
|
+
var emotion_styled_base_esm_default = createStyled;
|
4589
|
+
|
4590
|
+
// ../../node_modules/@emotion/styled/dist/emotion-styled.esm.js
|
4591
|
+
var tags = [
|
4592
|
+
"a",
|
4593
|
+
"abbr",
|
4594
|
+
"address",
|
4595
|
+
"area",
|
4596
|
+
"article",
|
4597
|
+
"aside",
|
4598
|
+
"audio",
|
4599
|
+
"b",
|
4600
|
+
"base",
|
4601
|
+
"bdi",
|
4602
|
+
"bdo",
|
4603
|
+
"big",
|
4604
|
+
"blockquote",
|
4605
|
+
"body",
|
4606
|
+
"br",
|
4607
|
+
"button",
|
4608
|
+
"canvas",
|
4609
|
+
"caption",
|
4610
|
+
"cite",
|
4611
|
+
"code",
|
4612
|
+
"col",
|
4613
|
+
"colgroup",
|
4614
|
+
"data",
|
4615
|
+
"datalist",
|
4616
|
+
"dd",
|
4617
|
+
"del",
|
4618
|
+
"details",
|
4619
|
+
"dfn",
|
4620
|
+
"dialog",
|
4621
|
+
"div",
|
4622
|
+
"dl",
|
4623
|
+
"dt",
|
4624
|
+
"em",
|
4625
|
+
"embed",
|
4626
|
+
"fieldset",
|
4627
|
+
"figcaption",
|
4628
|
+
"figure",
|
4629
|
+
"footer",
|
4630
|
+
"form",
|
4631
|
+
"h1",
|
4632
|
+
"h2",
|
4633
|
+
"h3",
|
4634
|
+
"h4",
|
4635
|
+
"h5",
|
4636
|
+
"h6",
|
4637
|
+
"head",
|
4638
|
+
"header",
|
4639
|
+
"hgroup",
|
4640
|
+
"hr",
|
4641
|
+
"html",
|
4642
|
+
"i",
|
4643
|
+
"iframe",
|
4644
|
+
"img",
|
4645
|
+
"input",
|
4646
|
+
"ins",
|
4647
|
+
"kbd",
|
4648
|
+
"keygen",
|
4649
|
+
"label",
|
4650
|
+
"legend",
|
4651
|
+
"li",
|
4652
|
+
"link",
|
4653
|
+
"main",
|
4654
|
+
"map",
|
4655
|
+
"mark",
|
4656
|
+
"marquee",
|
4657
|
+
"menu",
|
4658
|
+
"menuitem",
|
4659
|
+
"meta",
|
4660
|
+
"meter",
|
4661
|
+
"nav",
|
4662
|
+
"noscript",
|
4663
|
+
"object",
|
4664
|
+
"ol",
|
4665
|
+
"optgroup",
|
4666
|
+
"option",
|
4667
|
+
"output",
|
4668
|
+
"p",
|
4669
|
+
"param",
|
4670
|
+
"picture",
|
4671
|
+
"pre",
|
4672
|
+
"progress",
|
4673
|
+
"q",
|
4674
|
+
"rp",
|
4675
|
+
"rt",
|
4676
|
+
"ruby",
|
4677
|
+
"s",
|
4678
|
+
"samp",
|
4679
|
+
"script",
|
4680
|
+
"section",
|
4681
|
+
"select",
|
4682
|
+
"small",
|
4683
|
+
"source",
|
4684
|
+
"span",
|
4685
|
+
"strong",
|
4686
|
+
"style",
|
4687
|
+
"sub",
|
4688
|
+
"summary",
|
4689
|
+
"sup",
|
4690
|
+
"table",
|
4691
|
+
"tbody",
|
4692
|
+
"td",
|
4693
|
+
"textarea",
|
4694
|
+
"tfoot",
|
4695
|
+
"th",
|
4696
|
+
"thead",
|
4697
|
+
"time",
|
4698
|
+
"title",
|
4699
|
+
"tr",
|
4700
|
+
"track",
|
4701
|
+
"u",
|
4702
|
+
"ul",
|
4703
|
+
"var",
|
4704
|
+
"video",
|
4705
|
+
"wbr",
|
4706
|
+
// SVG
|
4707
|
+
"circle",
|
4708
|
+
"clipPath",
|
4709
|
+
"defs",
|
4710
|
+
"ellipse",
|
4711
|
+
"foreignObject",
|
4712
|
+
"g",
|
4713
|
+
"image",
|
4714
|
+
"line",
|
4715
|
+
"linearGradient",
|
4716
|
+
"mask",
|
4717
|
+
"path",
|
4718
|
+
"pattern",
|
4719
|
+
"polygon",
|
4720
|
+
"polyline",
|
4721
|
+
"radialGradient",
|
4722
|
+
"rect",
|
4723
|
+
"stop",
|
4724
|
+
"svg",
|
4725
|
+
"text",
|
4726
|
+
"tspan"
|
4727
|
+
];
|
4728
|
+
var newStyled = emotion_styled_base_esm_default.bind();
|
4729
|
+
tags.forEach(function(tagName) {
|
4730
|
+
newStyled[tagName] = newStyled(tagName);
|
4731
|
+
});
|
4732
|
+
var emotion_styled_esm_default = newStyled;
|
4733
|
+
|
4734
|
+
// ../../node_modules/@chakra-ui/system/dist/chunk-E32MZNBA.mjs
|
4735
|
+
import React2 from "react";
|
4736
|
+
var _a;
|
4737
|
+
var emotion_styled = (_a = emotion_styled_esm_default.default) != null ? _a : emotion_styled_esm_default;
|
4738
|
+
var toCSSObject = ({ baseStyle }) => (props) => {
|
4739
|
+
const _a2 = props, { theme, css: cssProp, __css, sx } = _a2, rest = __objRest(_a2, ["theme", "css", "__css", "sx"]);
|
4740
|
+
const styleProps2 = objectFilter(rest, (_, prop) => isStyleProp(prop));
|
4741
|
+
const finalBaseStyle = runIfFn2(baseStyle, props);
|
4742
|
+
const finalStyles = assignAfter(
|
4743
|
+
{},
|
4744
|
+
__css,
|
4745
|
+
finalBaseStyle,
|
4746
|
+
filterUndefined(styleProps2),
|
4747
|
+
sx
|
4748
|
+
);
|
4749
|
+
const computedCSS = css(finalStyles)(props.theme);
|
4750
|
+
return cssProp ? [computedCSS, cssProp] : computedCSS;
|
4751
|
+
};
|
4752
|
+
function styled(component, options) {
|
4753
|
+
const _a2 = options != null ? options : {}, { baseStyle } = _a2, styledOptions = __objRest(_a2, ["baseStyle"]);
|
4754
|
+
if (!styledOptions.shouldForwardProp) {
|
4755
|
+
styledOptions.shouldForwardProp = shouldForwardProp;
|
4756
|
+
}
|
4757
|
+
const styleObject = toCSSObject({ baseStyle });
|
4758
|
+
const Component = emotion_styled(
|
4759
|
+
component,
|
4760
|
+
styledOptions
|
4761
|
+
)(styleObject);
|
4762
|
+
const chakraComponent = React2.forwardRef(function ChakraComponent(props, ref) {
|
4763
|
+
const { colorMode, forced } = useColorMode();
|
4764
|
+
return React2.createElement(Component, __spreadValues({
|
4765
|
+
ref,
|
4766
|
+
"data-theme": forced ? colorMode : void 0
|
4767
|
+
}, props));
|
4768
|
+
});
|
4769
|
+
return chakraComponent;
|
4770
|
+
}
|
4771
|
+
|
4772
|
+
// ../../node_modules/@chakra-ui/system/dist/chunk-3LE6AY5Q.mjs
|
4773
|
+
function factory() {
|
4774
|
+
const cache = /* @__PURE__ */ new Map();
|
4775
|
+
return new Proxy(styled, {
|
4776
|
+
apply(target, thisArg, argArray) {
|
4777
|
+
return styled(...argArray);
|
4778
|
+
},
|
4779
|
+
get(_, element) {
|
4780
|
+
if (!cache.has(element)) {
|
4781
|
+
cache.set(element, styled(element));
|
4782
|
+
}
|
4783
|
+
return cache.get(element);
|
4784
|
+
}
|
4785
|
+
});
|
4786
|
+
}
|
4787
|
+
var chakra = factory();
|
4788
|
+
|
4789
|
+
// ../../node_modules/@chakra-ui/system/dist/chunk-QEVFQ4EU.mjs
|
4790
|
+
import { forwardRef as forwardReactRef } from "react";
|
4791
|
+
function forwardRef2(component) {
|
4792
|
+
return forwardReactRef(component);
|
4793
|
+
}
|
4794
|
+
|
4795
|
+
// ../../node_modules/@chakra-ui/icon/dist/chunk-DKFDJSXF.mjs
|
4796
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
4797
|
+
var fallbackIcon = {
|
4798
|
+
path: /* @__PURE__ */ jsxs("g", { stroke: "currentColor", strokeWidth: "1.5", children: [
|
4799
|
+
/* @__PURE__ */ jsx(
|
4800
|
+
"path",
|
4801
|
+
{
|
4802
|
+
strokeLinecap: "round",
|
4803
|
+
fill: "none",
|
4804
|
+
d: "M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"
|
4805
|
+
}
|
4806
|
+
),
|
4807
|
+
/* @__PURE__ */ jsx(
|
4808
|
+
"path",
|
4809
|
+
{
|
4810
|
+
fill: "currentColor",
|
4811
|
+
strokeLinecap: "round",
|
4812
|
+
d: "M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"
|
4813
|
+
}
|
4814
|
+
),
|
4815
|
+
/* @__PURE__ */ jsx("circle", { fill: "none", strokeMiterlimit: "10", cx: "12", cy: "12", r: "11.25" })
|
4816
|
+
] }),
|
4817
|
+
viewBox: "0 0 24 24"
|
4818
|
+
};
|
4819
|
+
var Icon = forwardRef2((props, ref) => {
|
4820
|
+
const _a2 = props, {
|
4821
|
+
as: element,
|
4822
|
+
viewBox,
|
4823
|
+
color: color2 = "currentColor",
|
4824
|
+
focusable = false,
|
4825
|
+
children,
|
4826
|
+
className,
|
4827
|
+
__css
|
4828
|
+
} = _a2, rest = __objRest(_a2, [
|
4829
|
+
"as",
|
4830
|
+
"viewBox",
|
4831
|
+
"color",
|
4832
|
+
"focusable",
|
4833
|
+
"children",
|
4834
|
+
"className",
|
4835
|
+
"__css"
|
4836
|
+
]);
|
4837
|
+
const _className = cx("chakra-icon", className);
|
4838
|
+
const customStyles = useStyleConfig("Icon", props);
|
4839
|
+
const styles = __spreadValues(__spreadValues({
|
4840
|
+
w: "1em",
|
4841
|
+
h: "1em",
|
4842
|
+
display: "inline-block",
|
4843
|
+
lineHeight: "1em",
|
4844
|
+
flexShrink: 0,
|
4845
|
+
color: color2
|
4846
|
+
}, __css), customStyles);
|
4847
|
+
const shared = {
|
4848
|
+
ref,
|
4849
|
+
focusable,
|
4850
|
+
className: _className,
|
4851
|
+
__css: styles
|
4852
|
+
};
|
4853
|
+
const _viewBox = viewBox != null ? viewBox : fallbackIcon.viewBox;
|
4854
|
+
if (element && typeof element !== "string") {
|
4855
|
+
return /* @__PURE__ */ jsx(chakra.svg, __spreadValues(__spreadValues({ as: element }, shared), rest));
|
4856
|
+
}
|
4857
|
+
const _path = children != null ? children : fallbackIcon.path;
|
4858
|
+
return /* @__PURE__ */ jsx(chakra.svg, __spreadProps(__spreadValues(__spreadValues({ verticalAlign: "middle", viewBox: _viewBox }, shared), rest), { children: _path }));
|
4859
|
+
});
|
4860
|
+
Icon.displayName = "Icon";
|
4861
|
+
|
4862
|
+
// ../../node_modules/@chakra-ui/icon/dist/chunk-QODHG6BI.mjs
|
4863
|
+
import { Children } from "react";
|
4864
|
+
import { jsx as jsx2 } from "react/jsx-runtime";
|
4865
|
+
function createIcon(options) {
|
4866
|
+
const {
|
4867
|
+
viewBox = "0 0 24 24",
|
4868
|
+
d: pathDefinition,
|
4869
|
+
displayName,
|
4870
|
+
defaultProps = {}
|
4871
|
+
} = options;
|
4872
|
+
const path = Children.toArray(options.path);
|
4873
|
+
const Comp = forwardRef2((props, ref) => /* @__PURE__ */ jsx2(Icon, __spreadProps(__spreadValues(__spreadValues({ ref, viewBox }, defaultProps), props), { children: path.length ? path : /* @__PURE__ */ jsx2("path", { fill: "currentColor", d: pathDefinition }) })));
|
4874
|
+
Comp.displayName = displayName;
|
4875
|
+
return Comp;
|
4876
|
+
}
|
4877
|
+
|
4878
|
+
// ../../node_modules/@chakra-ui/icons/dist/chunk-WQWU3AO7.mjs
|
4879
|
+
import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
|
4880
|
+
var ViewIcon = createIcon({
|
4881
|
+
displayName: "ViewIcon",
|
4882
|
+
path: /* @__PURE__ */ jsxs2("g", { fill: "currentColor", children: [
|
4883
|
+
/* @__PURE__ */ jsx3("path", { d: "M23.432,10.524C20.787,7.614,16.4,4.538,12,4.6,7.6,4.537,3.213,7.615.568,10.524a2.211,2.211,0,0,0,0,2.948C3.182,16.351,7.507,19.4,11.839,19.4h.308c4.347,0,8.671-3.049,11.288-5.929A2.21,2.21,0,0,0,23.432,10.524ZM7.4,12A4.6,4.6,0,1,1,12,16.6,4.6,4.6,0,0,1,7.4,12Z" }),
|
4884
|
+
/* @__PURE__ */ jsx3("circle", { cx: "12", cy: "12", r: "2" })
|
4885
|
+
] })
|
4886
|
+
});
|
4887
|
+
|
4888
|
+
// src/feature/color-mode/ThemeTool.tsx
|
4889
|
+
import { jsx as jsx4, jsxs as jsxs3 } from "react/jsx-runtime";
|
4890
|
+
var themes = {
|
4891
|
+
0: "Chakra UI",
|
4892
|
+
1: "Saas UI",
|
4893
|
+
2: "Glass"
|
4894
|
+
};
|
4895
|
+
var ThemeTool = () => {
|
4896
|
+
const themeId = localStorage.getItem("saas-ui-theme");
|
4897
|
+
const [theme, setTheme] = useAddonState(`${ADDON_ID}/theme`, themeId);
|
4898
|
+
const channel = addons.getChannel();
|
4899
|
+
const setActiveTheme = (themeId2) => {
|
4900
|
+
channel.emit(EVENTS.SET_THEME, !themeId2 ? "1" : themeId2);
|
4901
|
+
setTheme(themeId2);
|
4902
|
+
};
|
4903
|
+
return /* @__PURE__ */ jsx4(
|
4904
|
+
WithTooltip,
|
4905
|
+
{
|
4906
|
+
placement: "top",
|
4907
|
+
closeOnClick: true,
|
4908
|
+
trigger: "click",
|
4909
|
+
tooltip: ({ onHide }) => /* @__PURE__ */ jsx4(
|
4910
|
+
TooltipLinkList,
|
4911
|
+
{
|
4912
|
+
links: [
|
4913
|
+
{
|
4914
|
+
id: "0",
|
4915
|
+
title: "Chakra UI",
|
4916
|
+
onClick: () => {
|
4917
|
+
setActiveTheme("0");
|
4918
|
+
onHide();
|
4919
|
+
}
|
4920
|
+
},
|
4921
|
+
{
|
4922
|
+
id: "1",
|
4923
|
+
title: "Saas UI",
|
4924
|
+
onClick: () => {
|
4925
|
+
setActiveTheme("1");
|
4926
|
+
onHide();
|
4927
|
+
}
|
4928
|
+
},
|
4929
|
+
{
|
4930
|
+
id: "2",
|
4931
|
+
title: "Glass",
|
4932
|
+
onClick: () => {
|
4933
|
+
setActiveTheme("2");
|
4934
|
+
onHide();
|
4935
|
+
}
|
4936
|
+
}
|
4937
|
+
]
|
4938
|
+
}
|
4939
|
+
),
|
4940
|
+
children: /* @__PURE__ */ jsxs3(IconButton, { title: "Select theme", children: [
|
4941
|
+
/* @__PURE__ */ jsx4(ViewIcon, { marginEnd: "4" }),
|
4942
|
+
" ",
|
4943
|
+
themes[theme || "1"]
|
4944
|
+
] })
|
4945
|
+
}
|
4946
|
+
);
|
4947
|
+
};
|
4948
|
+
|
4949
|
+
export {
|
4950
|
+
ThemeTool
|
4951
|
+
};
|
4952
|
+
/*! Bundled license information:
|
4953
|
+
|
4954
|
+
react-is/cjs/react-is.production.min.js:
|
4955
|
+
(** @license React v16.13.1
|
4956
|
+
* react-is.production.min.js
|
4957
|
+
*
|
4958
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
4959
|
+
*
|
4960
|
+
* This source code is licensed under the MIT license found in the
|
4961
|
+
* LICENSE file in the root directory of this source tree.
|
4962
|
+
*)
|
4963
|
+
|
4964
|
+
react-is/cjs/react-is.development.js:
|
4965
|
+
(** @license React v16.13.1
|
4966
|
+
* react-is.development.js
|
4967
|
+
*
|
4968
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
4969
|
+
*
|
4970
|
+
* This source code is licensed under the MIT license found in the
|
4971
|
+
* LICENSE file in the root directory of this source tree.
|
4972
|
+
*)
|
4973
|
+
*/
|