@wavelengthusaf/components 1.0.2 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -1
- package/dist/index.d.mts +21 -8
- package/dist/index.d.ts +21 -8
- package/dist/index.js +2935 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2945 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +20 -254
package/dist/index.js
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
2
3
|
var __defProp = Object.defineProperty;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
5
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __commonJS = (cb, mod) => function __require() {
|
|
9
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
10
|
+
};
|
|
6
11
|
var __export = (target, all) => {
|
|
7
12
|
for (var name in all)
|
|
8
13
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
@@ -15,20 +20,1283 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
20
|
}
|
|
16
21
|
return to;
|
|
17
22
|
};
|
|
23
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
24
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
25
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
26
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
27
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
28
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
29
|
+
mod
|
|
30
|
+
));
|
|
18
31
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
32
|
|
|
33
|
+
// node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js
|
|
34
|
+
var require_react_is_production_min = __commonJS({
|
|
35
|
+
"node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js"(exports2) {
|
|
36
|
+
"use strict";
|
|
37
|
+
var b = "function" === typeof Symbol && Symbol.for;
|
|
38
|
+
var c = b ? Symbol.for("react.element") : 60103;
|
|
39
|
+
var d = b ? Symbol.for("react.portal") : 60106;
|
|
40
|
+
var e = b ? Symbol.for("react.fragment") : 60107;
|
|
41
|
+
var f = b ? Symbol.for("react.strict_mode") : 60108;
|
|
42
|
+
var g = b ? Symbol.for("react.profiler") : 60114;
|
|
43
|
+
var h = b ? Symbol.for("react.provider") : 60109;
|
|
44
|
+
var k = b ? Symbol.for("react.context") : 60110;
|
|
45
|
+
var l = b ? Symbol.for("react.async_mode") : 60111;
|
|
46
|
+
var m = b ? Symbol.for("react.concurrent_mode") : 60111;
|
|
47
|
+
var n = b ? Symbol.for("react.forward_ref") : 60112;
|
|
48
|
+
var p = b ? Symbol.for("react.suspense") : 60113;
|
|
49
|
+
var q = b ? Symbol.for("react.suspense_list") : 60120;
|
|
50
|
+
var r = b ? Symbol.for("react.memo") : 60115;
|
|
51
|
+
var t = b ? Symbol.for("react.lazy") : 60116;
|
|
52
|
+
var v = b ? Symbol.for("react.block") : 60121;
|
|
53
|
+
var w = b ? Symbol.for("react.fundamental") : 60117;
|
|
54
|
+
var x = b ? Symbol.for("react.responder") : 60118;
|
|
55
|
+
var y = b ? Symbol.for("react.scope") : 60119;
|
|
56
|
+
function z(a) {
|
|
57
|
+
if ("object" === typeof a && null !== a) {
|
|
58
|
+
var u = a.$$typeof;
|
|
59
|
+
switch (u) {
|
|
60
|
+
case c:
|
|
61
|
+
switch (a = a.type, a) {
|
|
62
|
+
case l:
|
|
63
|
+
case m:
|
|
64
|
+
case e:
|
|
65
|
+
case g:
|
|
66
|
+
case f:
|
|
67
|
+
case p:
|
|
68
|
+
return a;
|
|
69
|
+
default:
|
|
70
|
+
switch (a = a && a.$$typeof, a) {
|
|
71
|
+
case k:
|
|
72
|
+
case n:
|
|
73
|
+
case t:
|
|
74
|
+
case r:
|
|
75
|
+
case h:
|
|
76
|
+
return a;
|
|
77
|
+
default:
|
|
78
|
+
return u;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
case d:
|
|
82
|
+
return u;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
function A(a) {
|
|
87
|
+
return z(a) === m;
|
|
88
|
+
}
|
|
89
|
+
exports2.AsyncMode = l;
|
|
90
|
+
exports2.ConcurrentMode = m;
|
|
91
|
+
exports2.ContextConsumer = k;
|
|
92
|
+
exports2.ContextProvider = h;
|
|
93
|
+
exports2.Element = c;
|
|
94
|
+
exports2.ForwardRef = n;
|
|
95
|
+
exports2.Fragment = e;
|
|
96
|
+
exports2.Lazy = t;
|
|
97
|
+
exports2.Memo = r;
|
|
98
|
+
exports2.Portal = d;
|
|
99
|
+
exports2.Profiler = g;
|
|
100
|
+
exports2.StrictMode = f;
|
|
101
|
+
exports2.Suspense = p;
|
|
102
|
+
exports2.isAsyncMode = function(a) {
|
|
103
|
+
return A(a) || z(a) === l;
|
|
104
|
+
};
|
|
105
|
+
exports2.isConcurrentMode = A;
|
|
106
|
+
exports2.isContextConsumer = function(a) {
|
|
107
|
+
return z(a) === k;
|
|
108
|
+
};
|
|
109
|
+
exports2.isContextProvider = function(a) {
|
|
110
|
+
return z(a) === h;
|
|
111
|
+
};
|
|
112
|
+
exports2.isElement = function(a) {
|
|
113
|
+
return "object" === typeof a && null !== a && a.$$typeof === c;
|
|
114
|
+
};
|
|
115
|
+
exports2.isForwardRef = function(a) {
|
|
116
|
+
return z(a) === n;
|
|
117
|
+
};
|
|
118
|
+
exports2.isFragment = function(a) {
|
|
119
|
+
return z(a) === e;
|
|
120
|
+
};
|
|
121
|
+
exports2.isLazy = function(a) {
|
|
122
|
+
return z(a) === t;
|
|
123
|
+
};
|
|
124
|
+
exports2.isMemo = function(a) {
|
|
125
|
+
return z(a) === r;
|
|
126
|
+
};
|
|
127
|
+
exports2.isPortal = function(a) {
|
|
128
|
+
return z(a) === d;
|
|
129
|
+
};
|
|
130
|
+
exports2.isProfiler = function(a) {
|
|
131
|
+
return z(a) === g;
|
|
132
|
+
};
|
|
133
|
+
exports2.isStrictMode = function(a) {
|
|
134
|
+
return z(a) === f;
|
|
135
|
+
};
|
|
136
|
+
exports2.isSuspense = function(a) {
|
|
137
|
+
return z(a) === p;
|
|
138
|
+
};
|
|
139
|
+
exports2.isValidElementType = function(a) {
|
|
140
|
+
return "string" === typeof a || "function" === typeof a || a === e || a === m || a === g || a === f || a === p || a === q || "object" === typeof a && null !== a && (a.$$typeof === t || a.$$typeof === r || a.$$typeof === h || a.$$typeof === k || a.$$typeof === n || a.$$typeof === w || a.$$typeof === x || a.$$typeof === y || a.$$typeof === v);
|
|
141
|
+
};
|
|
142
|
+
exports2.typeOf = z;
|
|
143
|
+
}
|
|
144
|
+
});
|
|
145
|
+
|
|
146
|
+
// node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js
|
|
147
|
+
var require_react_is_development = __commonJS({
|
|
148
|
+
"node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js"(exports2) {
|
|
149
|
+
"use strict";
|
|
150
|
+
if (process.env.NODE_ENV !== "production") {
|
|
151
|
+
(function() {
|
|
152
|
+
"use strict";
|
|
153
|
+
var hasSymbol = typeof Symbol === "function" && Symbol.for;
|
|
154
|
+
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for("react.element") : 60103;
|
|
155
|
+
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for("react.portal") : 60106;
|
|
156
|
+
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for("react.fragment") : 60107;
|
|
157
|
+
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for("react.strict_mode") : 60108;
|
|
158
|
+
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for("react.profiler") : 60114;
|
|
159
|
+
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for("react.provider") : 60109;
|
|
160
|
+
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for("react.context") : 60110;
|
|
161
|
+
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for("react.async_mode") : 60111;
|
|
162
|
+
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for("react.concurrent_mode") : 60111;
|
|
163
|
+
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for("react.forward_ref") : 60112;
|
|
164
|
+
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for("react.suspense") : 60113;
|
|
165
|
+
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for("react.suspense_list") : 60120;
|
|
166
|
+
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for("react.memo") : 60115;
|
|
167
|
+
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for("react.lazy") : 60116;
|
|
168
|
+
var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for("react.block") : 60121;
|
|
169
|
+
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for("react.fundamental") : 60117;
|
|
170
|
+
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for("react.responder") : 60118;
|
|
171
|
+
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for("react.scope") : 60119;
|
|
172
|
+
function isValidElementType(type) {
|
|
173
|
+
return typeof type === "string" || typeof type === "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
174
|
+
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);
|
|
175
|
+
}
|
|
176
|
+
function typeOf(object) {
|
|
177
|
+
if (typeof object === "object" && object !== null) {
|
|
178
|
+
var $$typeof = object.$$typeof;
|
|
179
|
+
switch ($$typeof) {
|
|
180
|
+
case REACT_ELEMENT_TYPE:
|
|
181
|
+
var type = object.type;
|
|
182
|
+
switch (type) {
|
|
183
|
+
case REACT_ASYNC_MODE_TYPE:
|
|
184
|
+
case REACT_CONCURRENT_MODE_TYPE:
|
|
185
|
+
case REACT_FRAGMENT_TYPE:
|
|
186
|
+
case REACT_PROFILER_TYPE:
|
|
187
|
+
case REACT_STRICT_MODE_TYPE:
|
|
188
|
+
case REACT_SUSPENSE_TYPE:
|
|
189
|
+
return type;
|
|
190
|
+
default:
|
|
191
|
+
var $$typeofType = type && type.$$typeof;
|
|
192
|
+
switch ($$typeofType) {
|
|
193
|
+
case REACT_CONTEXT_TYPE:
|
|
194
|
+
case REACT_FORWARD_REF_TYPE:
|
|
195
|
+
case REACT_LAZY_TYPE:
|
|
196
|
+
case REACT_MEMO_TYPE:
|
|
197
|
+
case REACT_PROVIDER_TYPE:
|
|
198
|
+
return $$typeofType;
|
|
199
|
+
default:
|
|
200
|
+
return $$typeof;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
case REACT_PORTAL_TYPE:
|
|
204
|
+
return $$typeof;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
return void 0;
|
|
208
|
+
}
|
|
209
|
+
var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
|
210
|
+
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
|
211
|
+
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
212
|
+
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
213
|
+
var Element = REACT_ELEMENT_TYPE;
|
|
214
|
+
var ForwardRef2 = REACT_FORWARD_REF_TYPE;
|
|
215
|
+
var Fragment = REACT_FRAGMENT_TYPE;
|
|
216
|
+
var Lazy = REACT_LAZY_TYPE;
|
|
217
|
+
var Memo2 = REACT_MEMO_TYPE;
|
|
218
|
+
var Portal = REACT_PORTAL_TYPE;
|
|
219
|
+
var Profiler = REACT_PROFILER_TYPE;
|
|
220
|
+
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
221
|
+
var Suspense = REACT_SUSPENSE_TYPE;
|
|
222
|
+
var hasWarnedAboutDeprecatedIsAsyncMode = false;
|
|
223
|
+
function isAsyncMode(object) {
|
|
224
|
+
{
|
|
225
|
+
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
226
|
+
hasWarnedAboutDeprecatedIsAsyncMode = true;
|
|
227
|
+
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.");
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
|
|
231
|
+
}
|
|
232
|
+
function isConcurrentMode(object) {
|
|
233
|
+
return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
|
|
234
|
+
}
|
|
235
|
+
function isContextConsumer(object) {
|
|
236
|
+
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
237
|
+
}
|
|
238
|
+
function isContextProvider(object) {
|
|
239
|
+
return typeOf(object) === REACT_PROVIDER_TYPE;
|
|
240
|
+
}
|
|
241
|
+
function isElement(object) {
|
|
242
|
+
return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
243
|
+
}
|
|
244
|
+
function isForwardRef(object) {
|
|
245
|
+
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
246
|
+
}
|
|
247
|
+
function isFragment(object) {
|
|
248
|
+
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
249
|
+
}
|
|
250
|
+
function isLazy(object) {
|
|
251
|
+
return typeOf(object) === REACT_LAZY_TYPE;
|
|
252
|
+
}
|
|
253
|
+
function isMemo(object) {
|
|
254
|
+
return typeOf(object) === REACT_MEMO_TYPE;
|
|
255
|
+
}
|
|
256
|
+
function isPortal(object) {
|
|
257
|
+
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
258
|
+
}
|
|
259
|
+
function isProfiler(object) {
|
|
260
|
+
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
261
|
+
}
|
|
262
|
+
function isStrictMode(object) {
|
|
263
|
+
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
264
|
+
}
|
|
265
|
+
function isSuspense(object) {
|
|
266
|
+
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
267
|
+
}
|
|
268
|
+
exports2.AsyncMode = AsyncMode;
|
|
269
|
+
exports2.ConcurrentMode = ConcurrentMode;
|
|
270
|
+
exports2.ContextConsumer = ContextConsumer;
|
|
271
|
+
exports2.ContextProvider = ContextProvider;
|
|
272
|
+
exports2.Element = Element;
|
|
273
|
+
exports2.ForwardRef = ForwardRef2;
|
|
274
|
+
exports2.Fragment = Fragment;
|
|
275
|
+
exports2.Lazy = Lazy;
|
|
276
|
+
exports2.Memo = Memo2;
|
|
277
|
+
exports2.Portal = Portal;
|
|
278
|
+
exports2.Profiler = Profiler;
|
|
279
|
+
exports2.StrictMode = StrictMode;
|
|
280
|
+
exports2.Suspense = Suspense;
|
|
281
|
+
exports2.isAsyncMode = isAsyncMode;
|
|
282
|
+
exports2.isConcurrentMode = isConcurrentMode;
|
|
283
|
+
exports2.isContextConsumer = isContextConsumer;
|
|
284
|
+
exports2.isContextProvider = isContextProvider;
|
|
285
|
+
exports2.isElement = isElement;
|
|
286
|
+
exports2.isForwardRef = isForwardRef;
|
|
287
|
+
exports2.isFragment = isFragment;
|
|
288
|
+
exports2.isLazy = isLazy;
|
|
289
|
+
exports2.isMemo = isMemo;
|
|
290
|
+
exports2.isPortal = isPortal;
|
|
291
|
+
exports2.isProfiler = isProfiler;
|
|
292
|
+
exports2.isStrictMode = isStrictMode;
|
|
293
|
+
exports2.isSuspense = isSuspense;
|
|
294
|
+
exports2.isValidElementType = isValidElementType;
|
|
295
|
+
exports2.typeOf = typeOf;
|
|
296
|
+
})();
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
});
|
|
300
|
+
|
|
301
|
+
// node_modules/prop-types/node_modules/react-is/index.js
|
|
302
|
+
var require_react_is = __commonJS({
|
|
303
|
+
"node_modules/prop-types/node_modules/react-is/index.js"(exports2, module2) {
|
|
304
|
+
"use strict";
|
|
305
|
+
if (process.env.NODE_ENV === "production") {
|
|
306
|
+
module2.exports = require_react_is_production_min();
|
|
307
|
+
} else {
|
|
308
|
+
module2.exports = require_react_is_development();
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
});
|
|
312
|
+
|
|
313
|
+
// node_modules/object-assign/index.js
|
|
314
|
+
var require_object_assign = __commonJS({
|
|
315
|
+
"node_modules/object-assign/index.js"(exports2, module2) {
|
|
316
|
+
"use strict";
|
|
317
|
+
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
318
|
+
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
319
|
+
var propIsEnumerable = Object.prototype.propertyIsEnumerable;
|
|
320
|
+
function toObject(val) {
|
|
321
|
+
if (val === null || val === void 0) {
|
|
322
|
+
throw new TypeError("Object.assign cannot be called with null or undefined");
|
|
323
|
+
}
|
|
324
|
+
return Object(val);
|
|
325
|
+
}
|
|
326
|
+
function shouldUseNative() {
|
|
327
|
+
try {
|
|
328
|
+
if (!Object.assign) {
|
|
329
|
+
return false;
|
|
330
|
+
}
|
|
331
|
+
var test1 = new String("abc");
|
|
332
|
+
test1[5] = "de";
|
|
333
|
+
if (Object.getOwnPropertyNames(test1)[0] === "5") {
|
|
334
|
+
return false;
|
|
335
|
+
}
|
|
336
|
+
var test2 = {};
|
|
337
|
+
for (var i = 0; i < 10; i++) {
|
|
338
|
+
test2["_" + String.fromCharCode(i)] = i;
|
|
339
|
+
}
|
|
340
|
+
var order2 = Object.getOwnPropertyNames(test2).map(function(n) {
|
|
341
|
+
return test2[n];
|
|
342
|
+
});
|
|
343
|
+
if (order2.join("") !== "0123456789") {
|
|
344
|
+
return false;
|
|
345
|
+
}
|
|
346
|
+
var test3 = {};
|
|
347
|
+
"abcdefghijklmnopqrst".split("").forEach(function(letter) {
|
|
348
|
+
test3[letter] = letter;
|
|
349
|
+
});
|
|
350
|
+
if (Object.keys(Object.assign({}, test3)).join("") !== "abcdefghijklmnopqrst") {
|
|
351
|
+
return false;
|
|
352
|
+
}
|
|
353
|
+
return true;
|
|
354
|
+
} catch (err) {
|
|
355
|
+
return false;
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
module2.exports = shouldUseNative() ? Object.assign : function(target, source) {
|
|
359
|
+
var from;
|
|
360
|
+
var to = toObject(target);
|
|
361
|
+
var symbols;
|
|
362
|
+
for (var s = 1; s < arguments.length; s++) {
|
|
363
|
+
from = Object(arguments[s]);
|
|
364
|
+
for (var key in from) {
|
|
365
|
+
if (hasOwnProperty.call(from, key)) {
|
|
366
|
+
to[key] = from[key];
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
if (getOwnPropertySymbols) {
|
|
370
|
+
symbols = getOwnPropertySymbols(from);
|
|
371
|
+
for (var i = 0; i < symbols.length; i++) {
|
|
372
|
+
if (propIsEnumerable.call(from, symbols[i])) {
|
|
373
|
+
to[symbols[i]] = from[symbols[i]];
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
return to;
|
|
379
|
+
};
|
|
380
|
+
}
|
|
381
|
+
});
|
|
382
|
+
|
|
383
|
+
// node_modules/prop-types/lib/ReactPropTypesSecret.js
|
|
384
|
+
var require_ReactPropTypesSecret = __commonJS({
|
|
385
|
+
"node_modules/prop-types/lib/ReactPropTypesSecret.js"(exports2, module2) {
|
|
386
|
+
"use strict";
|
|
387
|
+
var ReactPropTypesSecret = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
388
|
+
module2.exports = ReactPropTypesSecret;
|
|
389
|
+
}
|
|
390
|
+
});
|
|
391
|
+
|
|
392
|
+
// node_modules/prop-types/lib/has.js
|
|
393
|
+
var require_has = __commonJS({
|
|
394
|
+
"node_modules/prop-types/lib/has.js"(exports2, module2) {
|
|
395
|
+
"use strict";
|
|
396
|
+
module2.exports = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
397
|
+
}
|
|
398
|
+
});
|
|
399
|
+
|
|
400
|
+
// node_modules/prop-types/checkPropTypes.js
|
|
401
|
+
var require_checkPropTypes = __commonJS({
|
|
402
|
+
"node_modules/prop-types/checkPropTypes.js"(exports2, module2) {
|
|
403
|
+
"use strict";
|
|
404
|
+
var printWarning = function() {
|
|
405
|
+
};
|
|
406
|
+
if (process.env.NODE_ENV !== "production") {
|
|
407
|
+
ReactPropTypesSecret = require_ReactPropTypesSecret();
|
|
408
|
+
loggedTypeFailures = {};
|
|
409
|
+
has = require_has();
|
|
410
|
+
printWarning = function(text) {
|
|
411
|
+
var message = "Warning: " + text;
|
|
412
|
+
if (typeof console !== "undefined") {
|
|
413
|
+
console.error(message);
|
|
414
|
+
}
|
|
415
|
+
try {
|
|
416
|
+
throw new Error(message);
|
|
417
|
+
} catch (x) {
|
|
418
|
+
}
|
|
419
|
+
};
|
|
420
|
+
}
|
|
421
|
+
var ReactPropTypesSecret;
|
|
422
|
+
var loggedTypeFailures;
|
|
423
|
+
var has;
|
|
424
|
+
function checkPropTypes(typeSpecs, values2, location, componentName, getStack) {
|
|
425
|
+
if (process.env.NODE_ENV !== "production") {
|
|
426
|
+
for (var typeSpecName in typeSpecs) {
|
|
427
|
+
if (has(typeSpecs, typeSpecName)) {
|
|
428
|
+
var error;
|
|
429
|
+
try {
|
|
430
|
+
if (typeof typeSpecs[typeSpecName] !== "function") {
|
|
431
|
+
var err = Error(
|
|
432
|
+
(componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
433
|
+
);
|
|
434
|
+
err.name = "Invariant Violation";
|
|
435
|
+
throw err;
|
|
436
|
+
}
|
|
437
|
+
error = typeSpecs[typeSpecName](values2, typeSpecName, componentName, location, null, ReactPropTypesSecret);
|
|
438
|
+
} catch (ex) {
|
|
439
|
+
error = ex;
|
|
440
|
+
}
|
|
441
|
+
if (error && !(error instanceof Error)) {
|
|
442
|
+
printWarning(
|
|
443
|
+
(componentName || "React class") + ": type specification of " + location + " `" + typeSpecName + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof error + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
444
|
+
);
|
|
445
|
+
}
|
|
446
|
+
if (error instanceof Error && !(error.message in loggedTypeFailures)) {
|
|
447
|
+
loggedTypeFailures[error.message] = true;
|
|
448
|
+
var stack = getStack ? getStack() : "";
|
|
449
|
+
printWarning(
|
|
450
|
+
"Failed " + location + " type: " + error.message + (stack != null ? stack : "")
|
|
451
|
+
);
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
checkPropTypes.resetWarningCache = function() {
|
|
458
|
+
if (process.env.NODE_ENV !== "production") {
|
|
459
|
+
loggedTypeFailures = {};
|
|
460
|
+
}
|
|
461
|
+
};
|
|
462
|
+
module2.exports = checkPropTypes;
|
|
463
|
+
}
|
|
464
|
+
});
|
|
465
|
+
|
|
466
|
+
// node_modules/prop-types/factoryWithTypeCheckers.js
|
|
467
|
+
var require_factoryWithTypeCheckers = __commonJS({
|
|
468
|
+
"node_modules/prop-types/factoryWithTypeCheckers.js"(exports2, module2) {
|
|
469
|
+
"use strict";
|
|
470
|
+
var ReactIs = require_react_is();
|
|
471
|
+
var assign = require_object_assign();
|
|
472
|
+
var ReactPropTypesSecret = require_ReactPropTypesSecret();
|
|
473
|
+
var has = require_has();
|
|
474
|
+
var checkPropTypes = require_checkPropTypes();
|
|
475
|
+
var printWarning = function() {
|
|
476
|
+
};
|
|
477
|
+
if (process.env.NODE_ENV !== "production") {
|
|
478
|
+
printWarning = function(text) {
|
|
479
|
+
var message = "Warning: " + text;
|
|
480
|
+
if (typeof console !== "undefined") {
|
|
481
|
+
console.error(message);
|
|
482
|
+
}
|
|
483
|
+
try {
|
|
484
|
+
throw new Error(message);
|
|
485
|
+
} catch (x) {
|
|
486
|
+
}
|
|
487
|
+
};
|
|
488
|
+
}
|
|
489
|
+
function emptyFunctionThatReturnsNull() {
|
|
490
|
+
return null;
|
|
491
|
+
}
|
|
492
|
+
module2.exports = function(isValidElement, throwOnDirectAccess) {
|
|
493
|
+
var ITERATOR_SYMBOL = typeof Symbol === "function" && Symbol.iterator;
|
|
494
|
+
var FAUX_ITERATOR_SYMBOL = "@@iterator";
|
|
495
|
+
function getIteratorFn(maybeIterable) {
|
|
496
|
+
var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
|
|
497
|
+
if (typeof iteratorFn === "function") {
|
|
498
|
+
return iteratorFn;
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
var ANONYMOUS = "<<anonymous>>";
|
|
502
|
+
var ReactPropTypes = {
|
|
503
|
+
array: createPrimitiveTypeChecker("array"),
|
|
504
|
+
bigint: createPrimitiveTypeChecker("bigint"),
|
|
505
|
+
bool: createPrimitiveTypeChecker("boolean"),
|
|
506
|
+
func: createPrimitiveTypeChecker("function"),
|
|
507
|
+
number: createPrimitiveTypeChecker("number"),
|
|
508
|
+
object: createPrimitiveTypeChecker("object"),
|
|
509
|
+
string: createPrimitiveTypeChecker("string"),
|
|
510
|
+
symbol: createPrimitiveTypeChecker("symbol"),
|
|
511
|
+
any: createAnyTypeChecker(),
|
|
512
|
+
arrayOf: createArrayOfTypeChecker,
|
|
513
|
+
element: createElementTypeChecker(),
|
|
514
|
+
elementType: createElementTypeTypeChecker(),
|
|
515
|
+
instanceOf: createInstanceTypeChecker,
|
|
516
|
+
node: createNodeChecker(),
|
|
517
|
+
objectOf: createObjectOfTypeChecker,
|
|
518
|
+
oneOf: createEnumTypeChecker,
|
|
519
|
+
oneOfType: createUnionTypeChecker,
|
|
520
|
+
shape: createShapeTypeChecker,
|
|
521
|
+
exact: createStrictShapeTypeChecker
|
|
522
|
+
};
|
|
523
|
+
function is(x, y) {
|
|
524
|
+
if (x === y) {
|
|
525
|
+
return x !== 0 || 1 / x === 1 / y;
|
|
526
|
+
} else {
|
|
527
|
+
return x !== x && y !== y;
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
function PropTypeError(message, data) {
|
|
531
|
+
this.message = message;
|
|
532
|
+
this.data = data && typeof data === "object" ? data : {};
|
|
533
|
+
this.stack = "";
|
|
534
|
+
}
|
|
535
|
+
PropTypeError.prototype = Error.prototype;
|
|
536
|
+
function createChainableTypeChecker(validate) {
|
|
537
|
+
if (process.env.NODE_ENV !== "production") {
|
|
538
|
+
var manualPropTypeCallCache = {};
|
|
539
|
+
var manualPropTypeWarningCount = 0;
|
|
540
|
+
}
|
|
541
|
+
function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
|
|
542
|
+
componentName = componentName || ANONYMOUS;
|
|
543
|
+
propFullName = propFullName || propName;
|
|
544
|
+
if (secret !== ReactPropTypesSecret) {
|
|
545
|
+
if (throwOnDirectAccess) {
|
|
546
|
+
var err = new Error(
|
|
547
|
+
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
548
|
+
);
|
|
549
|
+
err.name = "Invariant Violation";
|
|
550
|
+
throw err;
|
|
551
|
+
} else if (process.env.NODE_ENV !== "production" && typeof console !== "undefined") {
|
|
552
|
+
var cacheKey = componentName + ":" + propName;
|
|
553
|
+
if (!manualPropTypeCallCache[cacheKey] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
554
|
+
manualPropTypeWarningCount < 3) {
|
|
555
|
+
printWarning(
|
|
556
|
+
"You are manually calling a React.PropTypes validation function for the `" + propFullName + "` prop on `" + componentName + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
557
|
+
);
|
|
558
|
+
manualPropTypeCallCache[cacheKey] = true;
|
|
559
|
+
manualPropTypeWarningCount++;
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
}
|
|
563
|
+
if (props[propName] == null) {
|
|
564
|
+
if (isRequired) {
|
|
565
|
+
if (props[propName] === null) {
|
|
566
|
+
return new PropTypeError("The " + location + " `" + propFullName + "` is marked as required " + ("in `" + componentName + "`, but its value is `null`."));
|
|
567
|
+
}
|
|
568
|
+
return new PropTypeError("The " + location + " `" + propFullName + "` is marked as required in " + ("`" + componentName + "`, but its value is `undefined`."));
|
|
569
|
+
}
|
|
570
|
+
return null;
|
|
571
|
+
} else {
|
|
572
|
+
return validate(props, propName, componentName, location, propFullName);
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
var chainedCheckType = checkType.bind(null, false);
|
|
576
|
+
chainedCheckType.isRequired = checkType.bind(null, true);
|
|
577
|
+
return chainedCheckType;
|
|
578
|
+
}
|
|
579
|
+
function createPrimitiveTypeChecker(expectedType) {
|
|
580
|
+
function validate(props, propName, componentName, location, propFullName, secret) {
|
|
581
|
+
var propValue = props[propName];
|
|
582
|
+
var propType = getPropType(propValue);
|
|
583
|
+
if (propType !== expectedType) {
|
|
584
|
+
var preciseType = getPreciseType(propValue);
|
|
585
|
+
return new PropTypeError(
|
|
586
|
+
"Invalid " + location + " `" + propFullName + "` of type " + ("`" + preciseType + "` supplied to `" + componentName + "`, expected ") + ("`" + expectedType + "`."),
|
|
587
|
+
{ expectedType }
|
|
588
|
+
);
|
|
589
|
+
}
|
|
590
|
+
return null;
|
|
591
|
+
}
|
|
592
|
+
return createChainableTypeChecker(validate);
|
|
593
|
+
}
|
|
594
|
+
function createAnyTypeChecker() {
|
|
595
|
+
return createChainableTypeChecker(emptyFunctionThatReturnsNull);
|
|
596
|
+
}
|
|
597
|
+
function createArrayOfTypeChecker(typeChecker) {
|
|
598
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
599
|
+
if (typeof typeChecker !== "function") {
|
|
600
|
+
return new PropTypeError("Property `" + propFullName + "` of component `" + componentName + "` has invalid PropType notation inside arrayOf.");
|
|
601
|
+
}
|
|
602
|
+
var propValue = props[propName];
|
|
603
|
+
if (!Array.isArray(propValue)) {
|
|
604
|
+
var propType = getPropType(propValue);
|
|
605
|
+
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected an array."));
|
|
606
|
+
}
|
|
607
|
+
for (var i = 0; i < propValue.length; i++) {
|
|
608
|
+
var error = typeChecker(propValue, i, componentName, location, propFullName + "[" + i + "]", ReactPropTypesSecret);
|
|
609
|
+
if (error instanceof Error) {
|
|
610
|
+
return error;
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
return null;
|
|
614
|
+
}
|
|
615
|
+
return createChainableTypeChecker(validate);
|
|
616
|
+
}
|
|
617
|
+
function createElementTypeChecker() {
|
|
618
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
619
|
+
var propValue = props[propName];
|
|
620
|
+
if (!isValidElement(propValue)) {
|
|
621
|
+
var propType = getPropType(propValue);
|
|
622
|
+
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected a single ReactElement."));
|
|
623
|
+
}
|
|
624
|
+
return null;
|
|
625
|
+
}
|
|
626
|
+
return createChainableTypeChecker(validate);
|
|
627
|
+
}
|
|
628
|
+
function createElementTypeTypeChecker() {
|
|
629
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
630
|
+
var propValue = props[propName];
|
|
631
|
+
if (!ReactIs.isValidElementType(propValue)) {
|
|
632
|
+
var propType = getPropType(propValue);
|
|
633
|
+
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected a single ReactElement type."));
|
|
634
|
+
}
|
|
635
|
+
return null;
|
|
636
|
+
}
|
|
637
|
+
return createChainableTypeChecker(validate);
|
|
638
|
+
}
|
|
639
|
+
function createInstanceTypeChecker(expectedClass) {
|
|
640
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
641
|
+
if (!(props[propName] instanceof expectedClass)) {
|
|
642
|
+
var expectedClassName = expectedClass.name || ANONYMOUS;
|
|
643
|
+
var actualClassName = getClassName(props[propName]);
|
|
644
|
+
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + actualClassName + "` supplied to `" + componentName + "`, expected ") + ("instance of `" + expectedClassName + "`."));
|
|
645
|
+
}
|
|
646
|
+
return null;
|
|
647
|
+
}
|
|
648
|
+
return createChainableTypeChecker(validate);
|
|
649
|
+
}
|
|
650
|
+
function createEnumTypeChecker(expectedValues) {
|
|
651
|
+
if (!Array.isArray(expectedValues)) {
|
|
652
|
+
if (process.env.NODE_ENV !== "production") {
|
|
653
|
+
if (arguments.length > 1) {
|
|
654
|
+
printWarning(
|
|
655
|
+
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
656
|
+
);
|
|
657
|
+
} else {
|
|
658
|
+
printWarning("Invalid argument supplied to oneOf, expected an array.");
|
|
659
|
+
}
|
|
660
|
+
}
|
|
661
|
+
return emptyFunctionThatReturnsNull;
|
|
662
|
+
}
|
|
663
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
664
|
+
var propValue = props[propName];
|
|
665
|
+
for (var i = 0; i < expectedValues.length; i++) {
|
|
666
|
+
if (is(propValue, expectedValues[i])) {
|
|
667
|
+
return null;
|
|
668
|
+
}
|
|
669
|
+
}
|
|
670
|
+
var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
|
|
671
|
+
var type = getPreciseType(value);
|
|
672
|
+
if (type === "symbol") {
|
|
673
|
+
return String(value);
|
|
674
|
+
}
|
|
675
|
+
return value;
|
|
676
|
+
});
|
|
677
|
+
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of value `" + String(propValue) + "` " + ("supplied to `" + componentName + "`, expected one of " + valuesString + "."));
|
|
678
|
+
}
|
|
679
|
+
return createChainableTypeChecker(validate);
|
|
680
|
+
}
|
|
681
|
+
function createObjectOfTypeChecker(typeChecker) {
|
|
682
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
683
|
+
if (typeof typeChecker !== "function") {
|
|
684
|
+
return new PropTypeError("Property `" + propFullName + "` of component `" + componentName + "` has invalid PropType notation inside objectOf.");
|
|
685
|
+
}
|
|
686
|
+
var propValue = props[propName];
|
|
687
|
+
var propType = getPropType(propValue);
|
|
688
|
+
if (propType !== "object") {
|
|
689
|
+
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected an object."));
|
|
690
|
+
}
|
|
691
|
+
for (var key in propValue) {
|
|
692
|
+
if (has(propValue, key)) {
|
|
693
|
+
var error = typeChecker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
|
|
694
|
+
if (error instanceof Error) {
|
|
695
|
+
return error;
|
|
696
|
+
}
|
|
697
|
+
}
|
|
698
|
+
}
|
|
699
|
+
return null;
|
|
700
|
+
}
|
|
701
|
+
return createChainableTypeChecker(validate);
|
|
702
|
+
}
|
|
703
|
+
function createUnionTypeChecker(arrayOfTypeCheckers) {
|
|
704
|
+
if (!Array.isArray(arrayOfTypeCheckers)) {
|
|
705
|
+
process.env.NODE_ENV !== "production" ? printWarning("Invalid argument supplied to oneOfType, expected an instance of array.") : void 0;
|
|
706
|
+
return emptyFunctionThatReturnsNull;
|
|
707
|
+
}
|
|
708
|
+
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
709
|
+
var checker = arrayOfTypeCheckers[i];
|
|
710
|
+
if (typeof checker !== "function") {
|
|
711
|
+
printWarning(
|
|
712
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + getPostfixForTypeWarning(checker) + " at index " + i + "."
|
|
713
|
+
);
|
|
714
|
+
return emptyFunctionThatReturnsNull;
|
|
715
|
+
}
|
|
716
|
+
}
|
|
717
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
718
|
+
var expectedTypes = [];
|
|
719
|
+
for (var i2 = 0; i2 < arrayOfTypeCheckers.length; i2++) {
|
|
720
|
+
var checker2 = arrayOfTypeCheckers[i2];
|
|
721
|
+
var checkerResult = checker2(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
|
|
722
|
+
if (checkerResult == null) {
|
|
723
|
+
return null;
|
|
724
|
+
}
|
|
725
|
+
if (checkerResult.data && has(checkerResult.data, "expectedType")) {
|
|
726
|
+
expectedTypes.push(checkerResult.data.expectedType);
|
|
727
|
+
}
|
|
728
|
+
}
|
|
729
|
+
var expectedTypesMessage = expectedTypes.length > 0 ? ", expected one of type [" + expectedTypes.join(", ") + "]" : "";
|
|
730
|
+
return new PropTypeError("Invalid " + location + " `" + propFullName + "` supplied to " + ("`" + componentName + "`" + expectedTypesMessage + "."));
|
|
731
|
+
}
|
|
732
|
+
return createChainableTypeChecker(validate);
|
|
733
|
+
}
|
|
734
|
+
function createNodeChecker() {
|
|
735
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
736
|
+
if (!isNode(props[propName])) {
|
|
737
|
+
return new PropTypeError("Invalid " + location + " `" + propFullName + "` supplied to " + ("`" + componentName + "`, expected a ReactNode."));
|
|
738
|
+
}
|
|
739
|
+
return null;
|
|
740
|
+
}
|
|
741
|
+
return createChainableTypeChecker(validate);
|
|
742
|
+
}
|
|
743
|
+
function invalidValidatorError(componentName, location, propFullName, key, type) {
|
|
744
|
+
return new PropTypeError(
|
|
745
|
+
(componentName || "React class") + ": " + location + " type `" + propFullName + "." + key + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + type + "`."
|
|
746
|
+
);
|
|
747
|
+
}
|
|
748
|
+
function createShapeTypeChecker(shapeTypes) {
|
|
749
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
750
|
+
var propValue = props[propName];
|
|
751
|
+
var propType = getPropType(propValue);
|
|
752
|
+
if (propType !== "object") {
|
|
753
|
+
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type `" + propType + "` " + ("supplied to `" + componentName + "`, expected `object`."));
|
|
754
|
+
}
|
|
755
|
+
for (var key in shapeTypes) {
|
|
756
|
+
var checker = shapeTypes[key];
|
|
757
|
+
if (typeof checker !== "function") {
|
|
758
|
+
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
759
|
+
}
|
|
760
|
+
var error = checker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
|
|
761
|
+
if (error) {
|
|
762
|
+
return error;
|
|
763
|
+
}
|
|
764
|
+
}
|
|
765
|
+
return null;
|
|
766
|
+
}
|
|
767
|
+
return createChainableTypeChecker(validate);
|
|
768
|
+
}
|
|
769
|
+
function createStrictShapeTypeChecker(shapeTypes) {
|
|
770
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
771
|
+
var propValue = props[propName];
|
|
772
|
+
var propType = getPropType(propValue);
|
|
773
|
+
if (propType !== "object") {
|
|
774
|
+
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type `" + propType + "` " + ("supplied to `" + componentName + "`, expected `object`."));
|
|
775
|
+
}
|
|
776
|
+
var allKeys = assign({}, props[propName], shapeTypes);
|
|
777
|
+
for (var key in allKeys) {
|
|
778
|
+
var checker = shapeTypes[key];
|
|
779
|
+
if (has(shapeTypes, key) && typeof checker !== "function") {
|
|
780
|
+
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
781
|
+
}
|
|
782
|
+
if (!checker) {
|
|
783
|
+
return new PropTypeError(
|
|
784
|
+
"Invalid " + location + " `" + propFullName + "` key `" + key + "` supplied to `" + componentName + "`.\nBad object: " + JSON.stringify(props[propName], null, " ") + "\nValid keys: " + JSON.stringify(Object.keys(shapeTypes), null, " ")
|
|
785
|
+
);
|
|
786
|
+
}
|
|
787
|
+
var error = checker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
|
|
788
|
+
if (error) {
|
|
789
|
+
return error;
|
|
790
|
+
}
|
|
791
|
+
}
|
|
792
|
+
return null;
|
|
793
|
+
}
|
|
794
|
+
return createChainableTypeChecker(validate);
|
|
795
|
+
}
|
|
796
|
+
function isNode(propValue) {
|
|
797
|
+
switch (typeof propValue) {
|
|
798
|
+
case "number":
|
|
799
|
+
case "string":
|
|
800
|
+
case "undefined":
|
|
801
|
+
return true;
|
|
802
|
+
case "boolean":
|
|
803
|
+
return !propValue;
|
|
804
|
+
case "object":
|
|
805
|
+
if (Array.isArray(propValue)) {
|
|
806
|
+
return propValue.every(isNode);
|
|
807
|
+
}
|
|
808
|
+
if (propValue === null || isValidElement(propValue)) {
|
|
809
|
+
return true;
|
|
810
|
+
}
|
|
811
|
+
var iteratorFn = getIteratorFn(propValue);
|
|
812
|
+
if (iteratorFn) {
|
|
813
|
+
var iterator = iteratorFn.call(propValue);
|
|
814
|
+
var step;
|
|
815
|
+
if (iteratorFn !== propValue.entries) {
|
|
816
|
+
while (!(step = iterator.next()).done) {
|
|
817
|
+
if (!isNode(step.value)) {
|
|
818
|
+
return false;
|
|
819
|
+
}
|
|
820
|
+
}
|
|
821
|
+
} else {
|
|
822
|
+
while (!(step = iterator.next()).done) {
|
|
823
|
+
var entry = step.value;
|
|
824
|
+
if (entry) {
|
|
825
|
+
if (!isNode(entry[1])) {
|
|
826
|
+
return false;
|
|
827
|
+
}
|
|
828
|
+
}
|
|
829
|
+
}
|
|
830
|
+
}
|
|
831
|
+
} else {
|
|
832
|
+
return false;
|
|
833
|
+
}
|
|
834
|
+
return true;
|
|
835
|
+
default:
|
|
836
|
+
return false;
|
|
837
|
+
}
|
|
838
|
+
}
|
|
839
|
+
function isSymbol(propType, propValue) {
|
|
840
|
+
if (propType === "symbol") {
|
|
841
|
+
return true;
|
|
842
|
+
}
|
|
843
|
+
if (!propValue) {
|
|
844
|
+
return false;
|
|
845
|
+
}
|
|
846
|
+
if (propValue["@@toStringTag"] === "Symbol") {
|
|
847
|
+
return true;
|
|
848
|
+
}
|
|
849
|
+
if (typeof Symbol === "function" && propValue instanceof Symbol) {
|
|
850
|
+
return true;
|
|
851
|
+
}
|
|
852
|
+
return false;
|
|
853
|
+
}
|
|
854
|
+
function getPropType(propValue) {
|
|
855
|
+
var propType = typeof propValue;
|
|
856
|
+
if (Array.isArray(propValue)) {
|
|
857
|
+
return "array";
|
|
858
|
+
}
|
|
859
|
+
if (propValue instanceof RegExp) {
|
|
860
|
+
return "object";
|
|
861
|
+
}
|
|
862
|
+
if (isSymbol(propType, propValue)) {
|
|
863
|
+
return "symbol";
|
|
864
|
+
}
|
|
865
|
+
return propType;
|
|
866
|
+
}
|
|
867
|
+
function getPreciseType(propValue) {
|
|
868
|
+
if (typeof propValue === "undefined" || propValue === null) {
|
|
869
|
+
return "" + propValue;
|
|
870
|
+
}
|
|
871
|
+
var propType = getPropType(propValue);
|
|
872
|
+
if (propType === "object") {
|
|
873
|
+
if (propValue instanceof Date) {
|
|
874
|
+
return "date";
|
|
875
|
+
} else if (propValue instanceof RegExp) {
|
|
876
|
+
return "regexp";
|
|
877
|
+
}
|
|
878
|
+
}
|
|
879
|
+
return propType;
|
|
880
|
+
}
|
|
881
|
+
function getPostfixForTypeWarning(value) {
|
|
882
|
+
var type = getPreciseType(value);
|
|
883
|
+
switch (type) {
|
|
884
|
+
case "array":
|
|
885
|
+
case "object":
|
|
886
|
+
return "an " + type;
|
|
887
|
+
case "boolean":
|
|
888
|
+
case "date":
|
|
889
|
+
case "regexp":
|
|
890
|
+
return "a " + type;
|
|
891
|
+
default:
|
|
892
|
+
return type;
|
|
893
|
+
}
|
|
894
|
+
}
|
|
895
|
+
function getClassName(propValue) {
|
|
896
|
+
if (!propValue.constructor || !propValue.constructor.name) {
|
|
897
|
+
return ANONYMOUS;
|
|
898
|
+
}
|
|
899
|
+
return propValue.constructor.name;
|
|
900
|
+
}
|
|
901
|
+
ReactPropTypes.checkPropTypes = checkPropTypes;
|
|
902
|
+
ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
|
|
903
|
+
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
904
|
+
return ReactPropTypes;
|
|
905
|
+
};
|
|
906
|
+
}
|
|
907
|
+
});
|
|
908
|
+
|
|
909
|
+
// node_modules/prop-types/factoryWithThrowingShims.js
|
|
910
|
+
var require_factoryWithThrowingShims = __commonJS({
|
|
911
|
+
"node_modules/prop-types/factoryWithThrowingShims.js"(exports2, module2) {
|
|
912
|
+
"use strict";
|
|
913
|
+
var ReactPropTypesSecret = require_ReactPropTypesSecret();
|
|
914
|
+
function emptyFunction() {
|
|
915
|
+
}
|
|
916
|
+
function emptyFunctionWithReset() {
|
|
917
|
+
}
|
|
918
|
+
emptyFunctionWithReset.resetWarningCache = emptyFunction;
|
|
919
|
+
module2.exports = function() {
|
|
920
|
+
function shim(props, propName, componentName, location, propFullName, secret) {
|
|
921
|
+
if (secret === ReactPropTypesSecret) {
|
|
922
|
+
return;
|
|
923
|
+
}
|
|
924
|
+
var err = new Error(
|
|
925
|
+
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
|
|
926
|
+
);
|
|
927
|
+
err.name = "Invariant Violation";
|
|
928
|
+
throw err;
|
|
929
|
+
}
|
|
930
|
+
;
|
|
931
|
+
shim.isRequired = shim;
|
|
932
|
+
function getShim() {
|
|
933
|
+
return shim;
|
|
934
|
+
}
|
|
935
|
+
;
|
|
936
|
+
var ReactPropTypes = {
|
|
937
|
+
array: shim,
|
|
938
|
+
bigint: shim,
|
|
939
|
+
bool: shim,
|
|
940
|
+
func: shim,
|
|
941
|
+
number: shim,
|
|
942
|
+
object: shim,
|
|
943
|
+
string: shim,
|
|
944
|
+
symbol: shim,
|
|
945
|
+
any: shim,
|
|
946
|
+
arrayOf: getShim,
|
|
947
|
+
element: shim,
|
|
948
|
+
elementType: shim,
|
|
949
|
+
instanceOf: getShim,
|
|
950
|
+
node: shim,
|
|
951
|
+
objectOf: getShim,
|
|
952
|
+
oneOf: getShim,
|
|
953
|
+
oneOfType: getShim,
|
|
954
|
+
shape: getShim,
|
|
955
|
+
exact: getShim,
|
|
956
|
+
checkPropTypes: emptyFunctionWithReset,
|
|
957
|
+
resetWarningCache: emptyFunction
|
|
958
|
+
};
|
|
959
|
+
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
960
|
+
return ReactPropTypes;
|
|
961
|
+
};
|
|
962
|
+
}
|
|
963
|
+
});
|
|
964
|
+
|
|
965
|
+
// node_modules/prop-types/index.js
|
|
966
|
+
var require_prop_types = __commonJS({
|
|
967
|
+
"node_modules/prop-types/index.js"(exports2, module2) {
|
|
968
|
+
"use strict";
|
|
969
|
+
if (process.env.NODE_ENV !== "production") {
|
|
970
|
+
ReactIs = require_react_is();
|
|
971
|
+
throwOnDirectAccess = true;
|
|
972
|
+
module2.exports = require_factoryWithTypeCheckers()(ReactIs.isElement, throwOnDirectAccess);
|
|
973
|
+
} else {
|
|
974
|
+
module2.exports = require_factoryWithThrowingShims()();
|
|
975
|
+
}
|
|
976
|
+
var ReactIs;
|
|
977
|
+
var throwOnDirectAccess;
|
|
978
|
+
}
|
|
979
|
+
});
|
|
980
|
+
|
|
981
|
+
// node_modules/react-is/cjs/react-is.production.min.js
|
|
982
|
+
var require_react_is_production_min2 = __commonJS({
|
|
983
|
+
"node_modules/react-is/cjs/react-is.production.min.js"(exports2) {
|
|
984
|
+
"use strict";
|
|
985
|
+
var b = Symbol.for("react.element");
|
|
986
|
+
var c = Symbol.for("react.portal");
|
|
987
|
+
var d = Symbol.for("react.fragment");
|
|
988
|
+
var e = Symbol.for("react.strict_mode");
|
|
989
|
+
var f = Symbol.for("react.profiler");
|
|
990
|
+
var g = Symbol.for("react.provider");
|
|
991
|
+
var h = Symbol.for("react.context");
|
|
992
|
+
var k = Symbol.for("react.server_context");
|
|
993
|
+
var l = Symbol.for("react.forward_ref");
|
|
994
|
+
var m = Symbol.for("react.suspense");
|
|
995
|
+
var n = Symbol.for("react.suspense_list");
|
|
996
|
+
var p = Symbol.for("react.memo");
|
|
997
|
+
var q = Symbol.for("react.lazy");
|
|
998
|
+
var t = Symbol.for("react.offscreen");
|
|
999
|
+
var u;
|
|
1000
|
+
u = Symbol.for("react.module.reference");
|
|
1001
|
+
function v(a) {
|
|
1002
|
+
if ("object" === typeof a && null !== a) {
|
|
1003
|
+
var r = a.$$typeof;
|
|
1004
|
+
switch (r) {
|
|
1005
|
+
case b:
|
|
1006
|
+
switch (a = a.type, a) {
|
|
1007
|
+
case d:
|
|
1008
|
+
case f:
|
|
1009
|
+
case e:
|
|
1010
|
+
case m:
|
|
1011
|
+
case n:
|
|
1012
|
+
return a;
|
|
1013
|
+
default:
|
|
1014
|
+
switch (a = a && a.$$typeof, a) {
|
|
1015
|
+
case k:
|
|
1016
|
+
case h:
|
|
1017
|
+
case l:
|
|
1018
|
+
case q:
|
|
1019
|
+
case p:
|
|
1020
|
+
case g:
|
|
1021
|
+
return a;
|
|
1022
|
+
default:
|
|
1023
|
+
return r;
|
|
1024
|
+
}
|
|
1025
|
+
}
|
|
1026
|
+
case c:
|
|
1027
|
+
return r;
|
|
1028
|
+
}
|
|
1029
|
+
}
|
|
1030
|
+
}
|
|
1031
|
+
exports2.ContextConsumer = h;
|
|
1032
|
+
exports2.ContextProvider = g;
|
|
1033
|
+
exports2.Element = b;
|
|
1034
|
+
exports2.ForwardRef = l;
|
|
1035
|
+
exports2.Fragment = d;
|
|
1036
|
+
exports2.Lazy = q;
|
|
1037
|
+
exports2.Memo = p;
|
|
1038
|
+
exports2.Portal = c;
|
|
1039
|
+
exports2.Profiler = f;
|
|
1040
|
+
exports2.StrictMode = e;
|
|
1041
|
+
exports2.Suspense = m;
|
|
1042
|
+
exports2.SuspenseList = n;
|
|
1043
|
+
exports2.isAsyncMode = function() {
|
|
1044
|
+
return false;
|
|
1045
|
+
};
|
|
1046
|
+
exports2.isConcurrentMode = function() {
|
|
1047
|
+
return false;
|
|
1048
|
+
};
|
|
1049
|
+
exports2.isContextConsumer = function(a) {
|
|
1050
|
+
return v(a) === h;
|
|
1051
|
+
};
|
|
1052
|
+
exports2.isContextProvider = function(a) {
|
|
1053
|
+
return v(a) === g;
|
|
1054
|
+
};
|
|
1055
|
+
exports2.isElement = function(a) {
|
|
1056
|
+
return "object" === typeof a && null !== a && a.$$typeof === b;
|
|
1057
|
+
};
|
|
1058
|
+
exports2.isForwardRef = function(a) {
|
|
1059
|
+
return v(a) === l;
|
|
1060
|
+
};
|
|
1061
|
+
exports2.isFragment = function(a) {
|
|
1062
|
+
return v(a) === d;
|
|
1063
|
+
};
|
|
1064
|
+
exports2.isLazy = function(a) {
|
|
1065
|
+
return v(a) === q;
|
|
1066
|
+
};
|
|
1067
|
+
exports2.isMemo = function(a) {
|
|
1068
|
+
return v(a) === p;
|
|
1069
|
+
};
|
|
1070
|
+
exports2.isPortal = function(a) {
|
|
1071
|
+
return v(a) === c;
|
|
1072
|
+
};
|
|
1073
|
+
exports2.isProfiler = function(a) {
|
|
1074
|
+
return v(a) === f;
|
|
1075
|
+
};
|
|
1076
|
+
exports2.isStrictMode = function(a) {
|
|
1077
|
+
return v(a) === e;
|
|
1078
|
+
};
|
|
1079
|
+
exports2.isSuspense = function(a) {
|
|
1080
|
+
return v(a) === m;
|
|
1081
|
+
};
|
|
1082
|
+
exports2.isSuspenseList = function(a) {
|
|
1083
|
+
return v(a) === n;
|
|
1084
|
+
};
|
|
1085
|
+
exports2.isValidElementType = function(a) {
|
|
1086
|
+
return "string" === typeof a || "function" === typeof a || a === d || a === f || a === e || a === m || a === n || a === t || "object" === typeof a && null !== a && (a.$$typeof === q || a.$$typeof === p || a.$$typeof === g || a.$$typeof === h || a.$$typeof === l || a.$$typeof === u || void 0 !== a.getModuleId) ? true : false;
|
|
1087
|
+
};
|
|
1088
|
+
exports2.typeOf = v;
|
|
1089
|
+
}
|
|
1090
|
+
});
|
|
1091
|
+
|
|
1092
|
+
// node_modules/react-is/cjs/react-is.development.js
|
|
1093
|
+
var require_react_is_development2 = __commonJS({
|
|
1094
|
+
"node_modules/react-is/cjs/react-is.development.js"(exports2) {
|
|
1095
|
+
"use strict";
|
|
1096
|
+
if (process.env.NODE_ENV !== "production") {
|
|
1097
|
+
(function() {
|
|
1098
|
+
"use strict";
|
|
1099
|
+
var REACT_ELEMENT_TYPE = Symbol.for("react.element");
|
|
1100
|
+
var REACT_PORTAL_TYPE = Symbol.for("react.portal");
|
|
1101
|
+
var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
1102
|
+
var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
|
|
1103
|
+
var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
|
1104
|
+
var REACT_PROVIDER_TYPE = Symbol.for("react.provider");
|
|
1105
|
+
var REACT_CONTEXT_TYPE = Symbol.for("react.context");
|
|
1106
|
+
var REACT_SERVER_CONTEXT_TYPE = Symbol.for("react.server_context");
|
|
1107
|
+
var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
|
|
1108
|
+
var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
|
|
1109
|
+
var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list");
|
|
1110
|
+
var REACT_MEMO_TYPE = Symbol.for("react.memo");
|
|
1111
|
+
var REACT_LAZY_TYPE = Symbol.for("react.lazy");
|
|
1112
|
+
var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen");
|
|
1113
|
+
var enableScopeAPI = false;
|
|
1114
|
+
var enableCacheElement = false;
|
|
1115
|
+
var enableTransitionTracing = false;
|
|
1116
|
+
var enableLegacyHidden = false;
|
|
1117
|
+
var enableDebugTracing = false;
|
|
1118
|
+
var REACT_MODULE_REFERENCE;
|
|
1119
|
+
{
|
|
1120
|
+
REACT_MODULE_REFERENCE = Symbol.for("react.module.reference");
|
|
1121
|
+
}
|
|
1122
|
+
function isValidElementType(type) {
|
|
1123
|
+
if (typeof type === "string" || typeof type === "function") {
|
|
1124
|
+
return true;
|
|
1125
|
+
}
|
|
1126
|
+
if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing) {
|
|
1127
|
+
return true;
|
|
1128
|
+
}
|
|
1129
|
+
if (typeof type === "object" && type !== null) {
|
|
1130
|
+
if (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 || // This needs to include all possible module reference object
|
|
1131
|
+
// types supported by any Flight configuration anywhere since
|
|
1132
|
+
// we don't know which Flight build this will end up being used
|
|
1133
|
+
// with.
|
|
1134
|
+
type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== void 0) {
|
|
1135
|
+
return true;
|
|
1136
|
+
}
|
|
1137
|
+
}
|
|
1138
|
+
return false;
|
|
1139
|
+
}
|
|
1140
|
+
function typeOf(object) {
|
|
1141
|
+
if (typeof object === "object" && object !== null) {
|
|
1142
|
+
var $$typeof = object.$$typeof;
|
|
1143
|
+
switch ($$typeof) {
|
|
1144
|
+
case REACT_ELEMENT_TYPE:
|
|
1145
|
+
var type = object.type;
|
|
1146
|
+
switch (type) {
|
|
1147
|
+
case REACT_FRAGMENT_TYPE:
|
|
1148
|
+
case REACT_PROFILER_TYPE:
|
|
1149
|
+
case REACT_STRICT_MODE_TYPE:
|
|
1150
|
+
case REACT_SUSPENSE_TYPE:
|
|
1151
|
+
case REACT_SUSPENSE_LIST_TYPE:
|
|
1152
|
+
return type;
|
|
1153
|
+
default:
|
|
1154
|
+
var $$typeofType = type && type.$$typeof;
|
|
1155
|
+
switch ($$typeofType) {
|
|
1156
|
+
case REACT_SERVER_CONTEXT_TYPE:
|
|
1157
|
+
case REACT_CONTEXT_TYPE:
|
|
1158
|
+
case REACT_FORWARD_REF_TYPE:
|
|
1159
|
+
case REACT_LAZY_TYPE:
|
|
1160
|
+
case REACT_MEMO_TYPE:
|
|
1161
|
+
case REACT_PROVIDER_TYPE:
|
|
1162
|
+
return $$typeofType;
|
|
1163
|
+
default:
|
|
1164
|
+
return $$typeof;
|
|
1165
|
+
}
|
|
1166
|
+
}
|
|
1167
|
+
case REACT_PORTAL_TYPE:
|
|
1168
|
+
return $$typeof;
|
|
1169
|
+
}
|
|
1170
|
+
}
|
|
1171
|
+
return void 0;
|
|
1172
|
+
}
|
|
1173
|
+
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
1174
|
+
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
1175
|
+
var Element = REACT_ELEMENT_TYPE;
|
|
1176
|
+
var ForwardRef2 = REACT_FORWARD_REF_TYPE;
|
|
1177
|
+
var Fragment = REACT_FRAGMENT_TYPE;
|
|
1178
|
+
var Lazy = REACT_LAZY_TYPE;
|
|
1179
|
+
var Memo2 = REACT_MEMO_TYPE;
|
|
1180
|
+
var Portal = REACT_PORTAL_TYPE;
|
|
1181
|
+
var Profiler = REACT_PROFILER_TYPE;
|
|
1182
|
+
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
1183
|
+
var Suspense = REACT_SUSPENSE_TYPE;
|
|
1184
|
+
var SuspenseList = REACT_SUSPENSE_LIST_TYPE;
|
|
1185
|
+
var hasWarnedAboutDeprecatedIsAsyncMode = false;
|
|
1186
|
+
var hasWarnedAboutDeprecatedIsConcurrentMode = false;
|
|
1187
|
+
function isAsyncMode(object) {
|
|
1188
|
+
{
|
|
1189
|
+
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
1190
|
+
hasWarnedAboutDeprecatedIsAsyncMode = true;
|
|
1191
|
+
console["warn"]("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.");
|
|
1192
|
+
}
|
|
1193
|
+
}
|
|
1194
|
+
return false;
|
|
1195
|
+
}
|
|
1196
|
+
function isConcurrentMode(object) {
|
|
1197
|
+
{
|
|
1198
|
+
if (!hasWarnedAboutDeprecatedIsConcurrentMode) {
|
|
1199
|
+
hasWarnedAboutDeprecatedIsConcurrentMode = true;
|
|
1200
|
+
console["warn"]("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.");
|
|
1201
|
+
}
|
|
1202
|
+
}
|
|
1203
|
+
return false;
|
|
1204
|
+
}
|
|
1205
|
+
function isContextConsumer(object) {
|
|
1206
|
+
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
1207
|
+
}
|
|
1208
|
+
function isContextProvider(object) {
|
|
1209
|
+
return typeOf(object) === REACT_PROVIDER_TYPE;
|
|
1210
|
+
}
|
|
1211
|
+
function isElement(object) {
|
|
1212
|
+
return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
1213
|
+
}
|
|
1214
|
+
function isForwardRef(object) {
|
|
1215
|
+
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
1216
|
+
}
|
|
1217
|
+
function isFragment(object) {
|
|
1218
|
+
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
1219
|
+
}
|
|
1220
|
+
function isLazy(object) {
|
|
1221
|
+
return typeOf(object) === REACT_LAZY_TYPE;
|
|
1222
|
+
}
|
|
1223
|
+
function isMemo(object) {
|
|
1224
|
+
return typeOf(object) === REACT_MEMO_TYPE;
|
|
1225
|
+
}
|
|
1226
|
+
function isPortal(object) {
|
|
1227
|
+
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
1228
|
+
}
|
|
1229
|
+
function isProfiler(object) {
|
|
1230
|
+
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
1231
|
+
}
|
|
1232
|
+
function isStrictMode(object) {
|
|
1233
|
+
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
1234
|
+
}
|
|
1235
|
+
function isSuspense(object) {
|
|
1236
|
+
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
1237
|
+
}
|
|
1238
|
+
function isSuspenseList(object) {
|
|
1239
|
+
return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;
|
|
1240
|
+
}
|
|
1241
|
+
exports2.ContextConsumer = ContextConsumer;
|
|
1242
|
+
exports2.ContextProvider = ContextProvider;
|
|
1243
|
+
exports2.Element = Element;
|
|
1244
|
+
exports2.ForwardRef = ForwardRef2;
|
|
1245
|
+
exports2.Fragment = Fragment;
|
|
1246
|
+
exports2.Lazy = Lazy;
|
|
1247
|
+
exports2.Memo = Memo2;
|
|
1248
|
+
exports2.Portal = Portal;
|
|
1249
|
+
exports2.Profiler = Profiler;
|
|
1250
|
+
exports2.StrictMode = StrictMode;
|
|
1251
|
+
exports2.Suspense = Suspense;
|
|
1252
|
+
exports2.SuspenseList = SuspenseList;
|
|
1253
|
+
exports2.isAsyncMode = isAsyncMode;
|
|
1254
|
+
exports2.isConcurrentMode = isConcurrentMode;
|
|
1255
|
+
exports2.isContextConsumer = isContextConsumer;
|
|
1256
|
+
exports2.isContextProvider = isContextProvider;
|
|
1257
|
+
exports2.isElement = isElement;
|
|
1258
|
+
exports2.isForwardRef = isForwardRef;
|
|
1259
|
+
exports2.isFragment = isFragment;
|
|
1260
|
+
exports2.isLazy = isLazy;
|
|
1261
|
+
exports2.isMemo = isMemo;
|
|
1262
|
+
exports2.isPortal = isPortal;
|
|
1263
|
+
exports2.isProfiler = isProfiler;
|
|
1264
|
+
exports2.isStrictMode = isStrictMode;
|
|
1265
|
+
exports2.isSuspense = isSuspense;
|
|
1266
|
+
exports2.isSuspenseList = isSuspenseList;
|
|
1267
|
+
exports2.isValidElementType = isValidElementType;
|
|
1268
|
+
exports2.typeOf = typeOf;
|
|
1269
|
+
})();
|
|
1270
|
+
}
|
|
1271
|
+
}
|
|
1272
|
+
});
|
|
1273
|
+
|
|
1274
|
+
// node_modules/react-is/index.js
|
|
1275
|
+
var require_react_is2 = __commonJS({
|
|
1276
|
+
"node_modules/react-is/index.js"(exports2, module2) {
|
|
1277
|
+
"use strict";
|
|
1278
|
+
if (process.env.NODE_ENV === "production") {
|
|
1279
|
+
module2.exports = require_react_is_production_min2();
|
|
1280
|
+
} else {
|
|
1281
|
+
module2.exports = require_react_is_development2();
|
|
1282
|
+
}
|
|
1283
|
+
}
|
|
1284
|
+
});
|
|
1285
|
+
|
|
20
1286
|
// src/index.ts
|
|
21
1287
|
var src_exports = {};
|
|
22
1288
|
__export(src_exports, {
|
|
1289
|
+
WLButton: () => WLButton,
|
|
1290
|
+
WavelengthAppTheme: () => WavelengthAppTheme,
|
|
23
1291
|
add: () => add,
|
|
24
1292
|
concat: () => concat,
|
|
25
|
-
|
|
1293
|
+
useThemeContext: () => useThemeContext
|
|
26
1294
|
});
|
|
27
1295
|
module.exports = __toCommonJS(src_exports);
|
|
28
1296
|
|
|
29
1297
|
// src/functions/math.ts
|
|
30
1298
|
function add(a, b) {
|
|
31
|
-
return a + b
|
|
1299
|
+
return a + b;
|
|
32
1300
|
}
|
|
33
1301
|
|
|
34
1302
|
// src/functions/string.ts
|
|
@@ -36,14 +1304,1675 @@ function concat(a, b) {
|
|
|
36
1304
|
return a + b;
|
|
37
1305
|
}
|
|
38
1306
|
|
|
39
|
-
// src/
|
|
40
|
-
|
|
41
|
-
|
|
1307
|
+
// src/components/buttons/WavelengthButton/WLButton.tsx
|
|
1308
|
+
var import_material = require("@mui/material");
|
|
1309
|
+
|
|
1310
|
+
// node_modules/@mui/utils/esm/formatMuiErrorMessage/formatMuiErrorMessage.js
|
|
1311
|
+
function formatMuiErrorMessage(code) {
|
|
1312
|
+
let url = "https://mui.com/production-error/?code=" + code;
|
|
1313
|
+
for (let i = 1; i < arguments.length; i += 1) {
|
|
1314
|
+
url += "&args[]=" + encodeURIComponent(arguments[i]);
|
|
1315
|
+
}
|
|
1316
|
+
return "Minified MUI error #" + code + "; visit " + url + " for the full message.";
|
|
1317
|
+
}
|
|
1318
|
+
|
|
1319
|
+
// node_modules/@mui/styled-engine/index.js
|
|
1320
|
+
var import_styled = __toESM(require("@emotion/styled"));
|
|
1321
|
+
var import_react = require("@emotion/react");
|
|
1322
|
+
function styled(tag, options) {
|
|
1323
|
+
const stylesFactory = (0, import_styled.default)(tag, options);
|
|
1324
|
+
if (process.env.NODE_ENV !== "production") {
|
|
1325
|
+
return (...styles) => {
|
|
1326
|
+
const component = typeof tag === "string" ? `"${tag}"` : "component";
|
|
1327
|
+
if (styles.length === 0) {
|
|
1328
|
+
console.error([`MUI: Seems like you called \`styled(${component})()\` without a \`style\` argument.`, 'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join("\n"));
|
|
1329
|
+
} else if (styles.some((style3) => style3 === void 0)) {
|
|
1330
|
+
console.error(`MUI: the styled(${component})(...args) API requires all its args to be defined.`);
|
|
1331
|
+
}
|
|
1332
|
+
return stylesFactory(...styles);
|
|
1333
|
+
};
|
|
1334
|
+
}
|
|
1335
|
+
return stylesFactory;
|
|
1336
|
+
}
|
|
1337
|
+
var internal_processStyles = (tag, processor) => {
|
|
1338
|
+
if (Array.isArray(tag.__emotion_styles)) {
|
|
1339
|
+
tag.__emotion_styles = processor(tag.__emotion_styles);
|
|
1340
|
+
}
|
|
1341
|
+
};
|
|
1342
|
+
|
|
1343
|
+
// node_modules/@babel/runtime/helpers/esm/extends.js
|
|
1344
|
+
function _extends() {
|
|
1345
|
+
_extends = Object.assign ? Object.assign.bind() : function(target) {
|
|
1346
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
1347
|
+
var source = arguments[i];
|
|
1348
|
+
for (var key in source) {
|
|
1349
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
1350
|
+
target[key] = source[key];
|
|
1351
|
+
}
|
|
1352
|
+
}
|
|
1353
|
+
}
|
|
1354
|
+
return target;
|
|
1355
|
+
};
|
|
1356
|
+
return _extends.apply(this, arguments);
|
|
1357
|
+
}
|
|
1358
|
+
|
|
1359
|
+
// node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
1360
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
1361
|
+
if (source == null)
|
|
1362
|
+
return {};
|
|
1363
|
+
var target = {};
|
|
1364
|
+
var sourceKeys = Object.keys(source);
|
|
1365
|
+
var key, i;
|
|
1366
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
1367
|
+
key = sourceKeys[i];
|
|
1368
|
+
if (excluded.indexOf(key) >= 0)
|
|
1369
|
+
continue;
|
|
1370
|
+
target[key] = source[key];
|
|
1371
|
+
}
|
|
1372
|
+
return target;
|
|
1373
|
+
}
|
|
1374
|
+
|
|
1375
|
+
// node_modules/@mui/utils/esm/deepmerge/deepmerge.js
|
|
1376
|
+
function isPlainObject(item) {
|
|
1377
|
+
if (typeof item !== "object" || item === null) {
|
|
1378
|
+
return false;
|
|
1379
|
+
}
|
|
1380
|
+
const prototype = Object.getPrototypeOf(item);
|
|
1381
|
+
return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in item) && !(Symbol.iterator in item);
|
|
1382
|
+
}
|
|
1383
|
+
function deepClone(source) {
|
|
1384
|
+
if (!isPlainObject(source)) {
|
|
1385
|
+
return source;
|
|
1386
|
+
}
|
|
1387
|
+
const output = {};
|
|
1388
|
+
Object.keys(source).forEach((key) => {
|
|
1389
|
+
output[key] = deepClone(source[key]);
|
|
1390
|
+
});
|
|
1391
|
+
return output;
|
|
1392
|
+
}
|
|
1393
|
+
function deepmerge(target, source, options = {
|
|
1394
|
+
clone: true
|
|
1395
|
+
}) {
|
|
1396
|
+
const output = options.clone ? _extends({}, target) : target;
|
|
1397
|
+
if (isPlainObject(target) && isPlainObject(source)) {
|
|
1398
|
+
Object.keys(source).forEach((key) => {
|
|
1399
|
+
if (key === "__proto__") {
|
|
1400
|
+
return;
|
|
1401
|
+
}
|
|
1402
|
+
if (isPlainObject(source[key]) && key in target && isPlainObject(target[key])) {
|
|
1403
|
+
output[key] = deepmerge(target[key], source[key], options);
|
|
1404
|
+
} else if (options.clone) {
|
|
1405
|
+
output[key] = isPlainObject(source[key]) ? deepClone(source[key]) : source[key];
|
|
1406
|
+
} else {
|
|
1407
|
+
output[key] = source[key];
|
|
1408
|
+
}
|
|
1409
|
+
});
|
|
1410
|
+
}
|
|
1411
|
+
return output;
|
|
1412
|
+
}
|
|
1413
|
+
|
|
1414
|
+
// node_modules/@mui/utils/esm/getDisplayName/getDisplayName.js
|
|
1415
|
+
var import_react_is = __toESM(require_react_is2());
|
|
1416
|
+
var fnNameMatchRegex = /^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;
|
|
1417
|
+
function getFunctionName(fn) {
|
|
1418
|
+
const match = `${fn}`.match(fnNameMatchRegex);
|
|
1419
|
+
const name = match && match[1];
|
|
1420
|
+
return name || "";
|
|
1421
|
+
}
|
|
1422
|
+
function getFunctionComponentName(Component, fallback = "") {
|
|
1423
|
+
return Component.displayName || Component.name || getFunctionName(Component) || fallback;
|
|
1424
|
+
}
|
|
1425
|
+
function getWrappedName(outerType, innerType, wrapperName) {
|
|
1426
|
+
const functionName = getFunctionComponentName(innerType);
|
|
1427
|
+
return outerType.displayName || (functionName !== "" ? `${wrapperName}(${functionName})` : wrapperName);
|
|
1428
|
+
}
|
|
1429
|
+
function getDisplayName(Component) {
|
|
1430
|
+
if (Component == null) {
|
|
1431
|
+
return void 0;
|
|
1432
|
+
}
|
|
1433
|
+
if (typeof Component === "string") {
|
|
1434
|
+
return Component;
|
|
1435
|
+
}
|
|
1436
|
+
if (typeof Component === "function") {
|
|
1437
|
+
return getFunctionComponentName(Component, "Component");
|
|
1438
|
+
}
|
|
1439
|
+
if (typeof Component === "object") {
|
|
1440
|
+
switch (Component.$$typeof) {
|
|
1441
|
+
case import_react_is.ForwardRef:
|
|
1442
|
+
return getWrappedName(Component, Component.render, "ForwardRef");
|
|
1443
|
+
case import_react_is.Memo:
|
|
1444
|
+
return getWrappedName(Component, Component.type, "memo");
|
|
1445
|
+
default:
|
|
1446
|
+
return void 0;
|
|
1447
|
+
}
|
|
1448
|
+
}
|
|
1449
|
+
return void 0;
|
|
1450
|
+
}
|
|
1451
|
+
|
|
1452
|
+
// node_modules/@mui/utils/esm/capitalize/capitalize.js
|
|
1453
|
+
function capitalize(string) {
|
|
1454
|
+
if (typeof string !== "string") {
|
|
1455
|
+
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: \`capitalize(string)\` expects a string argument.` : formatMuiErrorMessage(7));
|
|
1456
|
+
}
|
|
1457
|
+
return string.charAt(0).toUpperCase() + string.slice(1);
|
|
1458
|
+
}
|
|
1459
|
+
|
|
1460
|
+
// node_modules/@mui/system/esm/createTheme/createBreakpoints.js
|
|
1461
|
+
var _excluded = ["values", "unit", "step"];
|
|
1462
|
+
var sortBreakpointsValues = (values2) => {
|
|
1463
|
+
const breakpointsAsArray = Object.keys(values2).map((key) => ({
|
|
1464
|
+
key,
|
|
1465
|
+
val: values2[key]
|
|
1466
|
+
})) || [];
|
|
1467
|
+
breakpointsAsArray.sort((breakpoint1, breakpoint2) => breakpoint1.val - breakpoint2.val);
|
|
1468
|
+
return breakpointsAsArray.reduce((acc, obj) => {
|
|
1469
|
+
return _extends({}, acc, {
|
|
1470
|
+
[obj.key]: obj.val
|
|
1471
|
+
});
|
|
1472
|
+
}, {});
|
|
1473
|
+
};
|
|
1474
|
+
function createBreakpoints(breakpoints) {
|
|
1475
|
+
const {
|
|
1476
|
+
// The breakpoint **start** at this value.
|
|
1477
|
+
// For instance with the first breakpoint xs: [xs, sm).
|
|
1478
|
+
values: values2 = {
|
|
1479
|
+
xs: 0,
|
|
1480
|
+
// phone
|
|
1481
|
+
sm: 600,
|
|
1482
|
+
// tablet
|
|
1483
|
+
md: 900,
|
|
1484
|
+
// small laptop
|
|
1485
|
+
lg: 1200,
|
|
1486
|
+
// desktop
|
|
1487
|
+
xl: 1536
|
|
1488
|
+
// large screen
|
|
1489
|
+
},
|
|
1490
|
+
unit = "px",
|
|
1491
|
+
step = 5
|
|
1492
|
+
} = breakpoints, other = _objectWithoutPropertiesLoose(breakpoints, _excluded);
|
|
1493
|
+
const sortedValues = sortBreakpointsValues(values2);
|
|
1494
|
+
const keys = Object.keys(sortedValues);
|
|
1495
|
+
function up(key) {
|
|
1496
|
+
const value = typeof values2[key] === "number" ? values2[key] : key;
|
|
1497
|
+
return `@media (min-width:${value}${unit})`;
|
|
1498
|
+
}
|
|
1499
|
+
function down(key) {
|
|
1500
|
+
const value = typeof values2[key] === "number" ? values2[key] : key;
|
|
1501
|
+
return `@media (max-width:${value - step / 100}${unit})`;
|
|
1502
|
+
}
|
|
1503
|
+
function between(start, end) {
|
|
1504
|
+
const endIndex = keys.indexOf(end);
|
|
1505
|
+
return `@media (min-width:${typeof values2[start] === "number" ? values2[start] : start}${unit}) and (max-width:${(endIndex !== -1 && typeof values2[keys[endIndex]] === "number" ? values2[keys[endIndex]] : end) - step / 100}${unit})`;
|
|
1506
|
+
}
|
|
1507
|
+
function only(key) {
|
|
1508
|
+
if (keys.indexOf(key) + 1 < keys.length) {
|
|
1509
|
+
return between(key, keys[keys.indexOf(key) + 1]);
|
|
1510
|
+
}
|
|
1511
|
+
return up(key);
|
|
1512
|
+
}
|
|
1513
|
+
function not(key) {
|
|
1514
|
+
const keyIndex = keys.indexOf(key);
|
|
1515
|
+
if (keyIndex === 0) {
|
|
1516
|
+
return up(keys[1]);
|
|
1517
|
+
}
|
|
1518
|
+
if (keyIndex === keys.length - 1) {
|
|
1519
|
+
return down(keys[keyIndex]);
|
|
1520
|
+
}
|
|
1521
|
+
return between(key, keys[keys.indexOf(key) + 1]).replace("@media", "@media not all and");
|
|
1522
|
+
}
|
|
1523
|
+
return _extends({
|
|
1524
|
+
keys,
|
|
1525
|
+
values: sortedValues,
|
|
1526
|
+
up,
|
|
1527
|
+
down,
|
|
1528
|
+
between,
|
|
1529
|
+
only,
|
|
1530
|
+
not,
|
|
1531
|
+
unit
|
|
1532
|
+
}, other);
|
|
1533
|
+
}
|
|
1534
|
+
|
|
1535
|
+
// node_modules/@mui/system/esm/createTheme/shape.js
|
|
1536
|
+
var shape = {
|
|
1537
|
+
borderRadius: 4
|
|
1538
|
+
};
|
|
1539
|
+
var shape_default = shape;
|
|
1540
|
+
|
|
1541
|
+
// node_modules/@mui/system/esm/responsivePropType.js
|
|
1542
|
+
var import_prop_types = __toESM(require_prop_types());
|
|
1543
|
+
var responsivePropType = process.env.NODE_ENV !== "production" ? import_prop_types.default.oneOfType([import_prop_types.default.number, import_prop_types.default.string, import_prop_types.default.object, import_prop_types.default.array]) : {};
|
|
1544
|
+
var responsivePropType_default = responsivePropType;
|
|
1545
|
+
|
|
1546
|
+
// node_modules/@mui/system/esm/merge.js
|
|
1547
|
+
function merge(acc, item) {
|
|
1548
|
+
if (!item) {
|
|
1549
|
+
return acc;
|
|
1550
|
+
}
|
|
1551
|
+
return deepmerge(acc, item, {
|
|
1552
|
+
clone: false
|
|
1553
|
+
// No need to clone deep, it's way faster.
|
|
1554
|
+
});
|
|
1555
|
+
}
|
|
1556
|
+
var merge_default = merge;
|
|
1557
|
+
|
|
1558
|
+
// node_modules/@mui/system/esm/breakpoints.js
|
|
1559
|
+
var values = {
|
|
1560
|
+
xs: 0,
|
|
1561
|
+
// phone
|
|
1562
|
+
sm: 600,
|
|
1563
|
+
// tablet
|
|
1564
|
+
md: 900,
|
|
1565
|
+
// small laptop
|
|
1566
|
+
lg: 1200,
|
|
1567
|
+
// desktop
|
|
1568
|
+
xl: 1536
|
|
1569
|
+
// large screen
|
|
1570
|
+
};
|
|
1571
|
+
var defaultBreakpoints = {
|
|
1572
|
+
// Sorted ASC by size. That's important.
|
|
1573
|
+
// It can't be configured as it's used statically for propTypes.
|
|
1574
|
+
keys: ["xs", "sm", "md", "lg", "xl"],
|
|
1575
|
+
up: (key) => `@media (min-width:${values[key]}px)`
|
|
1576
|
+
};
|
|
1577
|
+
function handleBreakpoints(props, propValue, styleFromPropValue) {
|
|
1578
|
+
const theme = props.theme || {};
|
|
1579
|
+
if (Array.isArray(propValue)) {
|
|
1580
|
+
const themeBreakpoints = theme.breakpoints || defaultBreakpoints;
|
|
1581
|
+
return propValue.reduce((acc, item, index) => {
|
|
1582
|
+
acc[themeBreakpoints.up(themeBreakpoints.keys[index])] = styleFromPropValue(propValue[index]);
|
|
1583
|
+
return acc;
|
|
1584
|
+
}, {});
|
|
1585
|
+
}
|
|
1586
|
+
if (typeof propValue === "object") {
|
|
1587
|
+
const themeBreakpoints = theme.breakpoints || defaultBreakpoints;
|
|
1588
|
+
return Object.keys(propValue).reduce((acc, breakpoint) => {
|
|
1589
|
+
if (Object.keys(themeBreakpoints.values || values).indexOf(breakpoint) !== -1) {
|
|
1590
|
+
const mediaKey = themeBreakpoints.up(breakpoint);
|
|
1591
|
+
acc[mediaKey] = styleFromPropValue(propValue[breakpoint], breakpoint);
|
|
1592
|
+
} else {
|
|
1593
|
+
const cssKey = breakpoint;
|
|
1594
|
+
acc[cssKey] = propValue[cssKey];
|
|
1595
|
+
}
|
|
1596
|
+
return acc;
|
|
1597
|
+
}, {});
|
|
1598
|
+
}
|
|
1599
|
+
const output = styleFromPropValue(propValue);
|
|
1600
|
+
return output;
|
|
1601
|
+
}
|
|
1602
|
+
function createEmptyBreakpointObject(breakpointsInput = {}) {
|
|
1603
|
+
var _breakpointsInput$key;
|
|
1604
|
+
const breakpointsInOrder = (_breakpointsInput$key = breakpointsInput.keys) == null ? void 0 : _breakpointsInput$key.reduce((acc, key) => {
|
|
1605
|
+
const breakpointStyleKey = breakpointsInput.up(key);
|
|
1606
|
+
acc[breakpointStyleKey] = {};
|
|
1607
|
+
return acc;
|
|
1608
|
+
}, {});
|
|
1609
|
+
return breakpointsInOrder || {};
|
|
1610
|
+
}
|
|
1611
|
+
function removeUnusedBreakpoints(breakpointKeys, style3) {
|
|
1612
|
+
return breakpointKeys.reduce((acc, key) => {
|
|
1613
|
+
const breakpointOutput = acc[key];
|
|
1614
|
+
const isBreakpointUnused = !breakpointOutput || Object.keys(breakpointOutput).length === 0;
|
|
1615
|
+
if (isBreakpointUnused) {
|
|
1616
|
+
delete acc[key];
|
|
1617
|
+
}
|
|
1618
|
+
return acc;
|
|
1619
|
+
}, style3);
|
|
1620
|
+
}
|
|
1621
|
+
|
|
1622
|
+
// node_modules/@mui/system/esm/style.js
|
|
1623
|
+
function getPath(obj, path, checkVars = true) {
|
|
1624
|
+
if (!path || typeof path !== "string") {
|
|
1625
|
+
return null;
|
|
1626
|
+
}
|
|
1627
|
+
if (obj && obj.vars && checkVars) {
|
|
1628
|
+
const val = `vars.${path}`.split(".").reduce((acc, item) => acc && acc[item] ? acc[item] : null, obj);
|
|
1629
|
+
if (val != null) {
|
|
1630
|
+
return val;
|
|
1631
|
+
}
|
|
1632
|
+
}
|
|
1633
|
+
return path.split(".").reduce((acc, item) => {
|
|
1634
|
+
if (acc && acc[item] != null) {
|
|
1635
|
+
return acc[item];
|
|
1636
|
+
}
|
|
1637
|
+
return null;
|
|
1638
|
+
}, obj);
|
|
1639
|
+
}
|
|
1640
|
+
function getStyleValue(themeMapping, transform, propValueFinal, userValue = propValueFinal) {
|
|
1641
|
+
let value;
|
|
1642
|
+
if (typeof themeMapping === "function") {
|
|
1643
|
+
value = themeMapping(propValueFinal);
|
|
1644
|
+
} else if (Array.isArray(themeMapping)) {
|
|
1645
|
+
value = themeMapping[propValueFinal] || userValue;
|
|
1646
|
+
} else {
|
|
1647
|
+
value = getPath(themeMapping, propValueFinal) || userValue;
|
|
1648
|
+
}
|
|
1649
|
+
if (transform) {
|
|
1650
|
+
value = transform(value, userValue, themeMapping);
|
|
1651
|
+
}
|
|
1652
|
+
return value;
|
|
1653
|
+
}
|
|
1654
|
+
function style(options) {
|
|
1655
|
+
const {
|
|
1656
|
+
prop,
|
|
1657
|
+
cssProperty = options.prop,
|
|
1658
|
+
themeKey,
|
|
1659
|
+
transform
|
|
1660
|
+
} = options;
|
|
1661
|
+
const fn = (props) => {
|
|
1662
|
+
if (props[prop] == null) {
|
|
1663
|
+
return null;
|
|
1664
|
+
}
|
|
1665
|
+
const propValue = props[prop];
|
|
1666
|
+
const theme = props.theme;
|
|
1667
|
+
const themeMapping = getPath(theme, themeKey) || {};
|
|
1668
|
+
const styleFromPropValue = (propValueFinal) => {
|
|
1669
|
+
let value = getStyleValue(themeMapping, transform, propValueFinal);
|
|
1670
|
+
if (propValueFinal === value && typeof propValueFinal === "string") {
|
|
1671
|
+
value = getStyleValue(themeMapping, transform, `${prop}${propValueFinal === "default" ? "" : capitalize(propValueFinal)}`, propValueFinal);
|
|
1672
|
+
}
|
|
1673
|
+
if (cssProperty === false) {
|
|
1674
|
+
return value;
|
|
1675
|
+
}
|
|
1676
|
+
return {
|
|
1677
|
+
[cssProperty]: value
|
|
1678
|
+
};
|
|
1679
|
+
};
|
|
1680
|
+
return handleBreakpoints(props, propValue, styleFromPropValue);
|
|
1681
|
+
};
|
|
1682
|
+
fn.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
1683
|
+
[prop]: responsivePropType_default
|
|
1684
|
+
} : {};
|
|
1685
|
+
fn.filterProps = [prop];
|
|
1686
|
+
return fn;
|
|
1687
|
+
}
|
|
1688
|
+
var style_default = style;
|
|
1689
|
+
|
|
1690
|
+
// node_modules/@mui/system/esm/memoize.js
|
|
1691
|
+
function memoize(fn) {
|
|
1692
|
+
const cache = {};
|
|
1693
|
+
return (arg) => {
|
|
1694
|
+
if (cache[arg] === void 0) {
|
|
1695
|
+
cache[arg] = fn(arg);
|
|
1696
|
+
}
|
|
1697
|
+
return cache[arg];
|
|
1698
|
+
};
|
|
1699
|
+
}
|
|
1700
|
+
|
|
1701
|
+
// node_modules/@mui/system/esm/spacing.js
|
|
1702
|
+
var properties = {
|
|
1703
|
+
m: "margin",
|
|
1704
|
+
p: "padding"
|
|
1705
|
+
};
|
|
1706
|
+
var directions = {
|
|
1707
|
+
t: "Top",
|
|
1708
|
+
r: "Right",
|
|
1709
|
+
b: "Bottom",
|
|
1710
|
+
l: "Left",
|
|
1711
|
+
x: ["Left", "Right"],
|
|
1712
|
+
y: ["Top", "Bottom"]
|
|
1713
|
+
};
|
|
1714
|
+
var aliases = {
|
|
1715
|
+
marginX: "mx",
|
|
1716
|
+
marginY: "my",
|
|
1717
|
+
paddingX: "px",
|
|
1718
|
+
paddingY: "py"
|
|
1719
|
+
};
|
|
1720
|
+
var getCssProperties = memoize((prop) => {
|
|
1721
|
+
if (prop.length > 2) {
|
|
1722
|
+
if (aliases[prop]) {
|
|
1723
|
+
prop = aliases[prop];
|
|
1724
|
+
} else {
|
|
1725
|
+
return [prop];
|
|
1726
|
+
}
|
|
1727
|
+
}
|
|
1728
|
+
const [a, b] = prop.split("");
|
|
1729
|
+
const property = properties[a];
|
|
1730
|
+
const direction = directions[b] || "";
|
|
1731
|
+
return Array.isArray(direction) ? direction.map((dir) => property + dir) : [property + direction];
|
|
1732
|
+
});
|
|
1733
|
+
var marginKeys = ["m", "mt", "mr", "mb", "ml", "mx", "my", "margin", "marginTop", "marginRight", "marginBottom", "marginLeft", "marginX", "marginY", "marginInline", "marginInlineStart", "marginInlineEnd", "marginBlock", "marginBlockStart", "marginBlockEnd"];
|
|
1734
|
+
var paddingKeys = ["p", "pt", "pr", "pb", "pl", "px", "py", "padding", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft", "paddingX", "paddingY", "paddingInline", "paddingInlineStart", "paddingInlineEnd", "paddingBlock", "paddingBlockStart", "paddingBlockEnd"];
|
|
1735
|
+
var spacingKeys = [...marginKeys, ...paddingKeys];
|
|
1736
|
+
function createUnaryUnit(theme, themeKey, defaultValue, propName) {
|
|
1737
|
+
var _getPath;
|
|
1738
|
+
const themeSpacing = (_getPath = getPath(theme, themeKey, false)) != null ? _getPath : defaultValue;
|
|
1739
|
+
if (typeof themeSpacing === "number") {
|
|
1740
|
+
return (abs) => {
|
|
1741
|
+
if (typeof abs === "string") {
|
|
1742
|
+
return abs;
|
|
1743
|
+
}
|
|
1744
|
+
if (process.env.NODE_ENV !== "production") {
|
|
1745
|
+
if (typeof abs !== "number") {
|
|
1746
|
+
console.error(`MUI: Expected ${propName} argument to be a number or a string, got ${abs}.`);
|
|
1747
|
+
}
|
|
1748
|
+
}
|
|
1749
|
+
return themeSpacing * abs;
|
|
1750
|
+
};
|
|
1751
|
+
}
|
|
1752
|
+
if (Array.isArray(themeSpacing)) {
|
|
1753
|
+
return (abs) => {
|
|
1754
|
+
if (typeof abs === "string") {
|
|
1755
|
+
return abs;
|
|
1756
|
+
}
|
|
1757
|
+
if (process.env.NODE_ENV !== "production") {
|
|
1758
|
+
if (!Number.isInteger(abs)) {
|
|
1759
|
+
console.error([`MUI: The \`theme.${themeKey}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${themeKey}\` as a number.`].join("\n"));
|
|
1760
|
+
} else if (abs > themeSpacing.length - 1) {
|
|
1761
|
+
console.error([`MUI: The value provided (${abs}) overflows.`, `The supported values are: ${JSON.stringify(themeSpacing)}.`, `${abs} > ${themeSpacing.length - 1}, you need to add the missing values.`].join("\n"));
|
|
1762
|
+
}
|
|
1763
|
+
}
|
|
1764
|
+
return themeSpacing[abs];
|
|
1765
|
+
};
|
|
1766
|
+
}
|
|
1767
|
+
if (typeof themeSpacing === "function") {
|
|
1768
|
+
return themeSpacing;
|
|
1769
|
+
}
|
|
1770
|
+
if (process.env.NODE_ENV !== "production") {
|
|
1771
|
+
console.error([`MUI: The \`theme.${themeKey}\` value (${themeSpacing}) is invalid.`, "It should be a number, an array or a function."].join("\n"));
|
|
1772
|
+
}
|
|
1773
|
+
return () => void 0;
|
|
1774
|
+
}
|
|
1775
|
+
function createUnarySpacing(theme) {
|
|
1776
|
+
return createUnaryUnit(theme, "spacing", 8, "spacing");
|
|
1777
|
+
}
|
|
1778
|
+
function getValue(transformer, propValue) {
|
|
1779
|
+
if (typeof propValue === "string" || propValue == null) {
|
|
1780
|
+
return propValue;
|
|
1781
|
+
}
|
|
1782
|
+
const abs = Math.abs(propValue);
|
|
1783
|
+
const transformed = transformer(abs);
|
|
1784
|
+
if (propValue >= 0) {
|
|
1785
|
+
return transformed;
|
|
1786
|
+
}
|
|
1787
|
+
if (typeof transformed === "number") {
|
|
1788
|
+
return -transformed;
|
|
1789
|
+
}
|
|
1790
|
+
return `-${transformed}`;
|
|
1791
|
+
}
|
|
1792
|
+
function getStyleFromPropValue(cssProperties, transformer) {
|
|
1793
|
+
return (propValue) => cssProperties.reduce((acc, cssProperty) => {
|
|
1794
|
+
acc[cssProperty] = getValue(transformer, propValue);
|
|
1795
|
+
return acc;
|
|
1796
|
+
}, {});
|
|
1797
|
+
}
|
|
1798
|
+
function resolveCssProperty(props, keys, prop, transformer) {
|
|
1799
|
+
if (keys.indexOf(prop) === -1) {
|
|
1800
|
+
return null;
|
|
1801
|
+
}
|
|
1802
|
+
const cssProperties = getCssProperties(prop);
|
|
1803
|
+
const styleFromPropValue = getStyleFromPropValue(cssProperties, transformer);
|
|
1804
|
+
const propValue = props[prop];
|
|
1805
|
+
return handleBreakpoints(props, propValue, styleFromPropValue);
|
|
1806
|
+
}
|
|
1807
|
+
function style2(props, keys) {
|
|
1808
|
+
const transformer = createUnarySpacing(props.theme);
|
|
1809
|
+
return Object.keys(props).map((prop) => resolveCssProperty(props, keys, prop, transformer)).reduce(merge_default, {});
|
|
1810
|
+
}
|
|
1811
|
+
function margin(props) {
|
|
1812
|
+
return style2(props, marginKeys);
|
|
1813
|
+
}
|
|
1814
|
+
margin.propTypes = process.env.NODE_ENV !== "production" ? marginKeys.reduce((obj, key) => {
|
|
1815
|
+
obj[key] = responsivePropType_default;
|
|
1816
|
+
return obj;
|
|
1817
|
+
}, {}) : {};
|
|
1818
|
+
margin.filterProps = marginKeys;
|
|
1819
|
+
function padding(props) {
|
|
1820
|
+
return style2(props, paddingKeys);
|
|
1821
|
+
}
|
|
1822
|
+
padding.propTypes = process.env.NODE_ENV !== "production" ? paddingKeys.reduce((obj, key) => {
|
|
1823
|
+
obj[key] = responsivePropType_default;
|
|
1824
|
+
return obj;
|
|
1825
|
+
}, {}) : {};
|
|
1826
|
+
padding.filterProps = paddingKeys;
|
|
1827
|
+
function spacing(props) {
|
|
1828
|
+
return style2(props, spacingKeys);
|
|
1829
|
+
}
|
|
1830
|
+
spacing.propTypes = process.env.NODE_ENV !== "production" ? spacingKeys.reduce((obj, key) => {
|
|
1831
|
+
obj[key] = responsivePropType_default;
|
|
1832
|
+
return obj;
|
|
1833
|
+
}, {}) : {};
|
|
1834
|
+
spacing.filterProps = spacingKeys;
|
|
1835
|
+
|
|
1836
|
+
// node_modules/@mui/system/esm/createTheme/createSpacing.js
|
|
1837
|
+
function createSpacing(spacingInput = 8) {
|
|
1838
|
+
if (spacingInput.mui) {
|
|
1839
|
+
return spacingInput;
|
|
1840
|
+
}
|
|
1841
|
+
const transform = createUnarySpacing({
|
|
1842
|
+
spacing: spacingInput
|
|
1843
|
+
});
|
|
1844
|
+
const spacing2 = (...argsInput) => {
|
|
1845
|
+
if (process.env.NODE_ENV !== "production") {
|
|
1846
|
+
if (!(argsInput.length <= 4)) {
|
|
1847
|
+
console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${argsInput.length}`);
|
|
1848
|
+
}
|
|
1849
|
+
}
|
|
1850
|
+
const args = argsInput.length === 0 ? [1] : argsInput;
|
|
1851
|
+
return args.map((argument) => {
|
|
1852
|
+
const output = transform(argument);
|
|
1853
|
+
return typeof output === "number" ? `${output}px` : output;
|
|
1854
|
+
}).join(" ");
|
|
1855
|
+
};
|
|
1856
|
+
spacing2.mui = true;
|
|
1857
|
+
return spacing2;
|
|
1858
|
+
}
|
|
1859
|
+
|
|
1860
|
+
// node_modules/@mui/system/esm/compose.js
|
|
1861
|
+
function compose(...styles) {
|
|
1862
|
+
const handlers = styles.reduce((acc, style3) => {
|
|
1863
|
+
style3.filterProps.forEach((prop) => {
|
|
1864
|
+
acc[prop] = style3;
|
|
1865
|
+
});
|
|
1866
|
+
return acc;
|
|
1867
|
+
}, {});
|
|
1868
|
+
const fn = (props) => {
|
|
1869
|
+
return Object.keys(props).reduce((acc, prop) => {
|
|
1870
|
+
if (handlers[prop]) {
|
|
1871
|
+
return merge_default(acc, handlers[prop](props));
|
|
1872
|
+
}
|
|
1873
|
+
return acc;
|
|
1874
|
+
}, {});
|
|
1875
|
+
};
|
|
1876
|
+
fn.propTypes = process.env.NODE_ENV !== "production" ? styles.reduce((acc, style3) => Object.assign(acc, style3.propTypes), {}) : {};
|
|
1877
|
+
fn.filterProps = styles.reduce((acc, style3) => acc.concat(style3.filterProps), []);
|
|
1878
|
+
return fn;
|
|
1879
|
+
}
|
|
1880
|
+
var compose_default = compose;
|
|
1881
|
+
|
|
1882
|
+
// node_modules/@mui/system/esm/borders.js
|
|
1883
|
+
function borderTransform(value) {
|
|
1884
|
+
if (typeof value !== "number") {
|
|
1885
|
+
return value;
|
|
1886
|
+
}
|
|
1887
|
+
return `${value}px solid`;
|
|
1888
|
+
}
|
|
1889
|
+
function createBorderStyle(prop, transform) {
|
|
1890
|
+
return style_default({
|
|
1891
|
+
prop,
|
|
1892
|
+
themeKey: "borders",
|
|
1893
|
+
transform
|
|
1894
|
+
});
|
|
1895
|
+
}
|
|
1896
|
+
var border = createBorderStyle("border", borderTransform);
|
|
1897
|
+
var borderTop = createBorderStyle("borderTop", borderTransform);
|
|
1898
|
+
var borderRight = createBorderStyle("borderRight", borderTransform);
|
|
1899
|
+
var borderBottom = createBorderStyle("borderBottom", borderTransform);
|
|
1900
|
+
var borderLeft = createBorderStyle("borderLeft", borderTransform);
|
|
1901
|
+
var borderColor = createBorderStyle("borderColor");
|
|
1902
|
+
var borderTopColor = createBorderStyle("borderTopColor");
|
|
1903
|
+
var borderRightColor = createBorderStyle("borderRightColor");
|
|
1904
|
+
var borderBottomColor = createBorderStyle("borderBottomColor");
|
|
1905
|
+
var borderLeftColor = createBorderStyle("borderLeftColor");
|
|
1906
|
+
var outline = createBorderStyle("outline", borderTransform);
|
|
1907
|
+
var outlineColor = createBorderStyle("outlineColor");
|
|
1908
|
+
var borderRadius = (props) => {
|
|
1909
|
+
if (props.borderRadius !== void 0 && props.borderRadius !== null) {
|
|
1910
|
+
const transformer = createUnaryUnit(props.theme, "shape.borderRadius", 4, "borderRadius");
|
|
1911
|
+
const styleFromPropValue = (propValue) => ({
|
|
1912
|
+
borderRadius: getValue(transformer, propValue)
|
|
1913
|
+
});
|
|
1914
|
+
return handleBreakpoints(props, props.borderRadius, styleFromPropValue);
|
|
1915
|
+
}
|
|
1916
|
+
return null;
|
|
1917
|
+
};
|
|
1918
|
+
borderRadius.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
1919
|
+
borderRadius: responsivePropType_default
|
|
1920
|
+
} : {};
|
|
1921
|
+
borderRadius.filterProps = ["borderRadius"];
|
|
1922
|
+
var borders = compose_default(border, borderTop, borderRight, borderBottom, borderLeft, borderColor, borderTopColor, borderRightColor, borderBottomColor, borderLeftColor, borderRadius, outline, outlineColor);
|
|
1923
|
+
|
|
1924
|
+
// node_modules/@mui/system/esm/cssGrid.js
|
|
1925
|
+
var gap = (props) => {
|
|
1926
|
+
if (props.gap !== void 0 && props.gap !== null) {
|
|
1927
|
+
const transformer = createUnaryUnit(props.theme, "spacing", 8, "gap");
|
|
1928
|
+
const styleFromPropValue = (propValue) => ({
|
|
1929
|
+
gap: getValue(transformer, propValue)
|
|
1930
|
+
});
|
|
1931
|
+
return handleBreakpoints(props, props.gap, styleFromPropValue);
|
|
1932
|
+
}
|
|
1933
|
+
return null;
|
|
1934
|
+
};
|
|
1935
|
+
gap.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
1936
|
+
gap: responsivePropType_default
|
|
1937
|
+
} : {};
|
|
1938
|
+
gap.filterProps = ["gap"];
|
|
1939
|
+
var columnGap = (props) => {
|
|
1940
|
+
if (props.columnGap !== void 0 && props.columnGap !== null) {
|
|
1941
|
+
const transformer = createUnaryUnit(props.theme, "spacing", 8, "columnGap");
|
|
1942
|
+
const styleFromPropValue = (propValue) => ({
|
|
1943
|
+
columnGap: getValue(transformer, propValue)
|
|
1944
|
+
});
|
|
1945
|
+
return handleBreakpoints(props, props.columnGap, styleFromPropValue);
|
|
1946
|
+
}
|
|
1947
|
+
return null;
|
|
1948
|
+
};
|
|
1949
|
+
columnGap.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
1950
|
+
columnGap: responsivePropType_default
|
|
1951
|
+
} : {};
|
|
1952
|
+
columnGap.filterProps = ["columnGap"];
|
|
1953
|
+
var rowGap = (props) => {
|
|
1954
|
+
if (props.rowGap !== void 0 && props.rowGap !== null) {
|
|
1955
|
+
const transformer = createUnaryUnit(props.theme, "spacing", 8, "rowGap");
|
|
1956
|
+
const styleFromPropValue = (propValue) => ({
|
|
1957
|
+
rowGap: getValue(transformer, propValue)
|
|
1958
|
+
});
|
|
1959
|
+
return handleBreakpoints(props, props.rowGap, styleFromPropValue);
|
|
1960
|
+
}
|
|
1961
|
+
return null;
|
|
1962
|
+
};
|
|
1963
|
+
rowGap.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
1964
|
+
rowGap: responsivePropType_default
|
|
1965
|
+
} : {};
|
|
1966
|
+
rowGap.filterProps = ["rowGap"];
|
|
1967
|
+
var gridColumn = style_default({
|
|
1968
|
+
prop: "gridColumn"
|
|
1969
|
+
});
|
|
1970
|
+
var gridRow = style_default({
|
|
1971
|
+
prop: "gridRow"
|
|
1972
|
+
});
|
|
1973
|
+
var gridAutoFlow = style_default({
|
|
1974
|
+
prop: "gridAutoFlow"
|
|
1975
|
+
});
|
|
1976
|
+
var gridAutoColumns = style_default({
|
|
1977
|
+
prop: "gridAutoColumns"
|
|
1978
|
+
});
|
|
1979
|
+
var gridAutoRows = style_default({
|
|
1980
|
+
prop: "gridAutoRows"
|
|
1981
|
+
});
|
|
1982
|
+
var gridTemplateColumns = style_default({
|
|
1983
|
+
prop: "gridTemplateColumns"
|
|
1984
|
+
});
|
|
1985
|
+
var gridTemplateRows = style_default({
|
|
1986
|
+
prop: "gridTemplateRows"
|
|
1987
|
+
});
|
|
1988
|
+
var gridTemplateAreas = style_default({
|
|
1989
|
+
prop: "gridTemplateAreas"
|
|
1990
|
+
});
|
|
1991
|
+
var gridArea = style_default({
|
|
1992
|
+
prop: "gridArea"
|
|
1993
|
+
});
|
|
1994
|
+
var grid = compose_default(gap, columnGap, rowGap, gridColumn, gridRow, gridAutoFlow, gridAutoColumns, gridAutoRows, gridTemplateColumns, gridTemplateRows, gridTemplateAreas, gridArea);
|
|
1995
|
+
|
|
1996
|
+
// node_modules/@mui/system/esm/palette.js
|
|
1997
|
+
function paletteTransform(value, userValue) {
|
|
1998
|
+
if (userValue === "grey") {
|
|
1999
|
+
return userValue;
|
|
2000
|
+
}
|
|
2001
|
+
return value;
|
|
2002
|
+
}
|
|
2003
|
+
var color = style_default({
|
|
2004
|
+
prop: "color",
|
|
2005
|
+
themeKey: "palette",
|
|
2006
|
+
transform: paletteTransform
|
|
2007
|
+
});
|
|
2008
|
+
var bgcolor = style_default({
|
|
2009
|
+
prop: "bgcolor",
|
|
2010
|
+
cssProperty: "backgroundColor",
|
|
2011
|
+
themeKey: "palette",
|
|
2012
|
+
transform: paletteTransform
|
|
2013
|
+
});
|
|
2014
|
+
var backgroundColor = style_default({
|
|
2015
|
+
prop: "backgroundColor",
|
|
2016
|
+
themeKey: "palette",
|
|
2017
|
+
transform: paletteTransform
|
|
2018
|
+
});
|
|
2019
|
+
var palette = compose_default(color, bgcolor, backgroundColor);
|
|
2020
|
+
|
|
2021
|
+
// node_modules/@mui/system/esm/sizing.js
|
|
2022
|
+
function sizingTransform(value) {
|
|
2023
|
+
return value <= 1 && value !== 0 ? `${value * 100}%` : value;
|
|
2024
|
+
}
|
|
2025
|
+
var width = style_default({
|
|
2026
|
+
prop: "width",
|
|
2027
|
+
transform: sizingTransform
|
|
2028
|
+
});
|
|
2029
|
+
var maxWidth = (props) => {
|
|
2030
|
+
if (props.maxWidth !== void 0 && props.maxWidth !== null) {
|
|
2031
|
+
const styleFromPropValue = (propValue) => {
|
|
2032
|
+
var _props$theme, _props$theme2;
|
|
2033
|
+
const breakpoint = ((_props$theme = props.theme) == null || (_props$theme = _props$theme.breakpoints) == null || (_props$theme = _props$theme.values) == null ? void 0 : _props$theme[propValue]) || values[propValue];
|
|
2034
|
+
if (!breakpoint) {
|
|
2035
|
+
return {
|
|
2036
|
+
maxWidth: sizingTransform(propValue)
|
|
2037
|
+
};
|
|
2038
|
+
}
|
|
2039
|
+
if (((_props$theme2 = props.theme) == null || (_props$theme2 = _props$theme2.breakpoints) == null ? void 0 : _props$theme2.unit) !== "px") {
|
|
2040
|
+
return {
|
|
2041
|
+
maxWidth: `${breakpoint}${props.theme.breakpoints.unit}`
|
|
2042
|
+
};
|
|
2043
|
+
}
|
|
2044
|
+
return {
|
|
2045
|
+
maxWidth: breakpoint
|
|
2046
|
+
};
|
|
2047
|
+
};
|
|
2048
|
+
return handleBreakpoints(props, props.maxWidth, styleFromPropValue);
|
|
2049
|
+
}
|
|
2050
|
+
return null;
|
|
2051
|
+
};
|
|
2052
|
+
maxWidth.filterProps = ["maxWidth"];
|
|
2053
|
+
var minWidth = style_default({
|
|
2054
|
+
prop: "minWidth",
|
|
2055
|
+
transform: sizingTransform
|
|
2056
|
+
});
|
|
2057
|
+
var height = style_default({
|
|
2058
|
+
prop: "height",
|
|
2059
|
+
transform: sizingTransform
|
|
2060
|
+
});
|
|
2061
|
+
var maxHeight = style_default({
|
|
2062
|
+
prop: "maxHeight",
|
|
2063
|
+
transform: sizingTransform
|
|
2064
|
+
});
|
|
2065
|
+
var minHeight = style_default({
|
|
2066
|
+
prop: "minHeight",
|
|
2067
|
+
transform: sizingTransform
|
|
2068
|
+
});
|
|
2069
|
+
var sizeWidth = style_default({
|
|
2070
|
+
prop: "size",
|
|
2071
|
+
cssProperty: "width",
|
|
2072
|
+
transform: sizingTransform
|
|
2073
|
+
});
|
|
2074
|
+
var sizeHeight = style_default({
|
|
2075
|
+
prop: "size",
|
|
2076
|
+
cssProperty: "height",
|
|
2077
|
+
transform: sizingTransform
|
|
2078
|
+
});
|
|
2079
|
+
var boxSizing = style_default({
|
|
2080
|
+
prop: "boxSizing"
|
|
2081
|
+
});
|
|
2082
|
+
var sizing = compose_default(width, maxWidth, minWidth, height, maxHeight, minHeight, boxSizing);
|
|
2083
|
+
|
|
2084
|
+
// node_modules/@mui/system/esm/styleFunctionSx/defaultSxConfig.js
|
|
2085
|
+
var defaultSxConfig = {
|
|
2086
|
+
// borders
|
|
2087
|
+
border: {
|
|
2088
|
+
themeKey: "borders",
|
|
2089
|
+
transform: borderTransform
|
|
2090
|
+
},
|
|
2091
|
+
borderTop: {
|
|
2092
|
+
themeKey: "borders",
|
|
2093
|
+
transform: borderTransform
|
|
2094
|
+
},
|
|
2095
|
+
borderRight: {
|
|
2096
|
+
themeKey: "borders",
|
|
2097
|
+
transform: borderTransform
|
|
2098
|
+
},
|
|
2099
|
+
borderBottom: {
|
|
2100
|
+
themeKey: "borders",
|
|
2101
|
+
transform: borderTransform
|
|
2102
|
+
},
|
|
2103
|
+
borderLeft: {
|
|
2104
|
+
themeKey: "borders",
|
|
2105
|
+
transform: borderTransform
|
|
2106
|
+
},
|
|
2107
|
+
borderColor: {
|
|
2108
|
+
themeKey: "palette"
|
|
2109
|
+
},
|
|
2110
|
+
borderTopColor: {
|
|
2111
|
+
themeKey: "palette"
|
|
2112
|
+
},
|
|
2113
|
+
borderRightColor: {
|
|
2114
|
+
themeKey: "palette"
|
|
2115
|
+
},
|
|
2116
|
+
borderBottomColor: {
|
|
2117
|
+
themeKey: "palette"
|
|
2118
|
+
},
|
|
2119
|
+
borderLeftColor: {
|
|
2120
|
+
themeKey: "palette"
|
|
2121
|
+
},
|
|
2122
|
+
outline: {
|
|
2123
|
+
themeKey: "borders",
|
|
2124
|
+
transform: borderTransform
|
|
2125
|
+
},
|
|
2126
|
+
outlineColor: {
|
|
2127
|
+
themeKey: "palette"
|
|
2128
|
+
},
|
|
2129
|
+
borderRadius: {
|
|
2130
|
+
themeKey: "shape.borderRadius",
|
|
2131
|
+
style: borderRadius
|
|
2132
|
+
},
|
|
2133
|
+
// palette
|
|
2134
|
+
color: {
|
|
2135
|
+
themeKey: "palette",
|
|
2136
|
+
transform: paletteTransform
|
|
2137
|
+
},
|
|
2138
|
+
bgcolor: {
|
|
2139
|
+
themeKey: "palette",
|
|
2140
|
+
cssProperty: "backgroundColor",
|
|
2141
|
+
transform: paletteTransform
|
|
2142
|
+
},
|
|
2143
|
+
backgroundColor: {
|
|
2144
|
+
themeKey: "palette",
|
|
2145
|
+
transform: paletteTransform
|
|
2146
|
+
},
|
|
2147
|
+
// spacing
|
|
2148
|
+
p: {
|
|
2149
|
+
style: padding
|
|
2150
|
+
},
|
|
2151
|
+
pt: {
|
|
2152
|
+
style: padding
|
|
2153
|
+
},
|
|
2154
|
+
pr: {
|
|
2155
|
+
style: padding
|
|
2156
|
+
},
|
|
2157
|
+
pb: {
|
|
2158
|
+
style: padding
|
|
2159
|
+
},
|
|
2160
|
+
pl: {
|
|
2161
|
+
style: padding
|
|
2162
|
+
},
|
|
2163
|
+
px: {
|
|
2164
|
+
style: padding
|
|
2165
|
+
},
|
|
2166
|
+
py: {
|
|
2167
|
+
style: padding
|
|
2168
|
+
},
|
|
2169
|
+
padding: {
|
|
2170
|
+
style: padding
|
|
2171
|
+
},
|
|
2172
|
+
paddingTop: {
|
|
2173
|
+
style: padding
|
|
2174
|
+
},
|
|
2175
|
+
paddingRight: {
|
|
2176
|
+
style: padding
|
|
2177
|
+
},
|
|
2178
|
+
paddingBottom: {
|
|
2179
|
+
style: padding
|
|
2180
|
+
},
|
|
2181
|
+
paddingLeft: {
|
|
2182
|
+
style: padding
|
|
2183
|
+
},
|
|
2184
|
+
paddingX: {
|
|
2185
|
+
style: padding
|
|
2186
|
+
},
|
|
2187
|
+
paddingY: {
|
|
2188
|
+
style: padding
|
|
2189
|
+
},
|
|
2190
|
+
paddingInline: {
|
|
2191
|
+
style: padding
|
|
2192
|
+
},
|
|
2193
|
+
paddingInlineStart: {
|
|
2194
|
+
style: padding
|
|
2195
|
+
},
|
|
2196
|
+
paddingInlineEnd: {
|
|
2197
|
+
style: padding
|
|
2198
|
+
},
|
|
2199
|
+
paddingBlock: {
|
|
2200
|
+
style: padding
|
|
2201
|
+
},
|
|
2202
|
+
paddingBlockStart: {
|
|
2203
|
+
style: padding
|
|
2204
|
+
},
|
|
2205
|
+
paddingBlockEnd: {
|
|
2206
|
+
style: padding
|
|
2207
|
+
},
|
|
2208
|
+
m: {
|
|
2209
|
+
style: margin
|
|
2210
|
+
},
|
|
2211
|
+
mt: {
|
|
2212
|
+
style: margin
|
|
2213
|
+
},
|
|
2214
|
+
mr: {
|
|
2215
|
+
style: margin
|
|
2216
|
+
},
|
|
2217
|
+
mb: {
|
|
2218
|
+
style: margin
|
|
2219
|
+
},
|
|
2220
|
+
ml: {
|
|
2221
|
+
style: margin
|
|
2222
|
+
},
|
|
2223
|
+
mx: {
|
|
2224
|
+
style: margin
|
|
2225
|
+
},
|
|
2226
|
+
my: {
|
|
2227
|
+
style: margin
|
|
2228
|
+
},
|
|
2229
|
+
margin: {
|
|
2230
|
+
style: margin
|
|
2231
|
+
},
|
|
2232
|
+
marginTop: {
|
|
2233
|
+
style: margin
|
|
2234
|
+
},
|
|
2235
|
+
marginRight: {
|
|
2236
|
+
style: margin
|
|
2237
|
+
},
|
|
2238
|
+
marginBottom: {
|
|
2239
|
+
style: margin
|
|
2240
|
+
},
|
|
2241
|
+
marginLeft: {
|
|
2242
|
+
style: margin
|
|
2243
|
+
},
|
|
2244
|
+
marginX: {
|
|
2245
|
+
style: margin
|
|
2246
|
+
},
|
|
2247
|
+
marginY: {
|
|
2248
|
+
style: margin
|
|
2249
|
+
},
|
|
2250
|
+
marginInline: {
|
|
2251
|
+
style: margin
|
|
2252
|
+
},
|
|
2253
|
+
marginInlineStart: {
|
|
2254
|
+
style: margin
|
|
2255
|
+
},
|
|
2256
|
+
marginInlineEnd: {
|
|
2257
|
+
style: margin
|
|
2258
|
+
},
|
|
2259
|
+
marginBlock: {
|
|
2260
|
+
style: margin
|
|
2261
|
+
},
|
|
2262
|
+
marginBlockStart: {
|
|
2263
|
+
style: margin
|
|
2264
|
+
},
|
|
2265
|
+
marginBlockEnd: {
|
|
2266
|
+
style: margin
|
|
2267
|
+
},
|
|
2268
|
+
// display
|
|
2269
|
+
displayPrint: {
|
|
2270
|
+
cssProperty: false,
|
|
2271
|
+
transform: (value) => ({
|
|
2272
|
+
"@media print": {
|
|
2273
|
+
display: value
|
|
2274
|
+
}
|
|
2275
|
+
})
|
|
2276
|
+
},
|
|
2277
|
+
display: {},
|
|
2278
|
+
overflow: {},
|
|
2279
|
+
textOverflow: {},
|
|
2280
|
+
visibility: {},
|
|
2281
|
+
whiteSpace: {},
|
|
2282
|
+
// flexbox
|
|
2283
|
+
flexBasis: {},
|
|
2284
|
+
flexDirection: {},
|
|
2285
|
+
flexWrap: {},
|
|
2286
|
+
justifyContent: {},
|
|
2287
|
+
alignItems: {},
|
|
2288
|
+
alignContent: {},
|
|
2289
|
+
order: {},
|
|
2290
|
+
flex: {},
|
|
2291
|
+
flexGrow: {},
|
|
2292
|
+
flexShrink: {},
|
|
2293
|
+
alignSelf: {},
|
|
2294
|
+
justifyItems: {},
|
|
2295
|
+
justifySelf: {},
|
|
2296
|
+
// grid
|
|
2297
|
+
gap: {
|
|
2298
|
+
style: gap
|
|
2299
|
+
},
|
|
2300
|
+
rowGap: {
|
|
2301
|
+
style: rowGap
|
|
2302
|
+
},
|
|
2303
|
+
columnGap: {
|
|
2304
|
+
style: columnGap
|
|
2305
|
+
},
|
|
2306
|
+
gridColumn: {},
|
|
2307
|
+
gridRow: {},
|
|
2308
|
+
gridAutoFlow: {},
|
|
2309
|
+
gridAutoColumns: {},
|
|
2310
|
+
gridAutoRows: {},
|
|
2311
|
+
gridTemplateColumns: {},
|
|
2312
|
+
gridTemplateRows: {},
|
|
2313
|
+
gridTemplateAreas: {},
|
|
2314
|
+
gridArea: {},
|
|
2315
|
+
// positions
|
|
2316
|
+
position: {},
|
|
2317
|
+
zIndex: {
|
|
2318
|
+
themeKey: "zIndex"
|
|
2319
|
+
},
|
|
2320
|
+
top: {},
|
|
2321
|
+
right: {},
|
|
2322
|
+
bottom: {},
|
|
2323
|
+
left: {},
|
|
2324
|
+
// shadows
|
|
2325
|
+
boxShadow: {
|
|
2326
|
+
themeKey: "shadows"
|
|
2327
|
+
},
|
|
2328
|
+
// sizing
|
|
2329
|
+
width: {
|
|
2330
|
+
transform: sizingTransform
|
|
2331
|
+
},
|
|
2332
|
+
maxWidth: {
|
|
2333
|
+
style: maxWidth
|
|
2334
|
+
},
|
|
2335
|
+
minWidth: {
|
|
2336
|
+
transform: sizingTransform
|
|
2337
|
+
},
|
|
2338
|
+
height: {
|
|
2339
|
+
transform: sizingTransform
|
|
2340
|
+
},
|
|
2341
|
+
maxHeight: {
|
|
2342
|
+
transform: sizingTransform
|
|
2343
|
+
},
|
|
2344
|
+
minHeight: {
|
|
2345
|
+
transform: sizingTransform
|
|
2346
|
+
},
|
|
2347
|
+
boxSizing: {},
|
|
2348
|
+
// typography
|
|
2349
|
+
fontFamily: {
|
|
2350
|
+
themeKey: "typography"
|
|
2351
|
+
},
|
|
2352
|
+
fontSize: {
|
|
2353
|
+
themeKey: "typography"
|
|
2354
|
+
},
|
|
2355
|
+
fontStyle: {
|
|
2356
|
+
themeKey: "typography"
|
|
2357
|
+
},
|
|
2358
|
+
fontWeight: {
|
|
2359
|
+
themeKey: "typography"
|
|
2360
|
+
},
|
|
2361
|
+
letterSpacing: {},
|
|
2362
|
+
textTransform: {},
|
|
2363
|
+
lineHeight: {},
|
|
2364
|
+
textAlign: {},
|
|
2365
|
+
typography: {
|
|
2366
|
+
cssProperty: false,
|
|
2367
|
+
themeKey: "typography"
|
|
2368
|
+
}
|
|
2369
|
+
};
|
|
2370
|
+
var defaultSxConfig_default = defaultSxConfig;
|
|
2371
|
+
|
|
2372
|
+
// node_modules/@mui/system/esm/styleFunctionSx/styleFunctionSx.js
|
|
2373
|
+
function objectsHaveSameKeys(...objects) {
|
|
2374
|
+
const allKeys = objects.reduce((keys, object) => keys.concat(Object.keys(object)), []);
|
|
2375
|
+
const union = new Set(allKeys);
|
|
2376
|
+
return objects.every((object) => union.size === Object.keys(object).length);
|
|
2377
|
+
}
|
|
2378
|
+
function callIfFn(maybeFn, arg) {
|
|
2379
|
+
return typeof maybeFn === "function" ? maybeFn(arg) : maybeFn;
|
|
2380
|
+
}
|
|
2381
|
+
function unstable_createStyleFunctionSx() {
|
|
2382
|
+
function getThemeValue(prop, val, theme, config) {
|
|
2383
|
+
const props = {
|
|
2384
|
+
[prop]: val,
|
|
2385
|
+
theme
|
|
2386
|
+
};
|
|
2387
|
+
const options = config[prop];
|
|
2388
|
+
if (!options) {
|
|
2389
|
+
return {
|
|
2390
|
+
[prop]: val
|
|
2391
|
+
};
|
|
2392
|
+
}
|
|
2393
|
+
const {
|
|
2394
|
+
cssProperty = prop,
|
|
2395
|
+
themeKey,
|
|
2396
|
+
transform,
|
|
2397
|
+
style: style3
|
|
2398
|
+
} = options;
|
|
2399
|
+
if (val == null) {
|
|
2400
|
+
return null;
|
|
2401
|
+
}
|
|
2402
|
+
if (themeKey === "typography" && val === "inherit") {
|
|
2403
|
+
return {
|
|
2404
|
+
[prop]: val
|
|
2405
|
+
};
|
|
2406
|
+
}
|
|
2407
|
+
const themeMapping = getPath(theme, themeKey) || {};
|
|
2408
|
+
if (style3) {
|
|
2409
|
+
return style3(props);
|
|
2410
|
+
}
|
|
2411
|
+
const styleFromPropValue = (propValueFinal) => {
|
|
2412
|
+
let value = getStyleValue(themeMapping, transform, propValueFinal);
|
|
2413
|
+
if (propValueFinal === value && typeof propValueFinal === "string") {
|
|
2414
|
+
value = getStyleValue(themeMapping, transform, `${prop}${propValueFinal === "default" ? "" : capitalize(propValueFinal)}`, propValueFinal);
|
|
2415
|
+
}
|
|
2416
|
+
if (cssProperty === false) {
|
|
2417
|
+
return value;
|
|
2418
|
+
}
|
|
2419
|
+
return {
|
|
2420
|
+
[cssProperty]: value
|
|
2421
|
+
};
|
|
2422
|
+
};
|
|
2423
|
+
return handleBreakpoints(props, val, styleFromPropValue);
|
|
2424
|
+
}
|
|
2425
|
+
function styleFunctionSx2(props) {
|
|
2426
|
+
var _theme$unstable_sxCon;
|
|
2427
|
+
const {
|
|
2428
|
+
sx,
|
|
2429
|
+
theme = {}
|
|
2430
|
+
} = props || {};
|
|
2431
|
+
if (!sx) {
|
|
2432
|
+
return null;
|
|
2433
|
+
}
|
|
2434
|
+
const config = (_theme$unstable_sxCon = theme.unstable_sxConfig) != null ? _theme$unstable_sxCon : defaultSxConfig_default;
|
|
2435
|
+
function traverse(sxInput) {
|
|
2436
|
+
let sxObject = sxInput;
|
|
2437
|
+
if (typeof sxInput === "function") {
|
|
2438
|
+
sxObject = sxInput(theme);
|
|
2439
|
+
} else if (typeof sxInput !== "object") {
|
|
2440
|
+
return sxInput;
|
|
2441
|
+
}
|
|
2442
|
+
if (!sxObject) {
|
|
2443
|
+
return null;
|
|
2444
|
+
}
|
|
2445
|
+
const emptyBreakpoints = createEmptyBreakpointObject(theme.breakpoints);
|
|
2446
|
+
const breakpointsKeys = Object.keys(emptyBreakpoints);
|
|
2447
|
+
let css2 = emptyBreakpoints;
|
|
2448
|
+
Object.keys(sxObject).forEach((styleKey) => {
|
|
2449
|
+
const value = callIfFn(sxObject[styleKey], theme);
|
|
2450
|
+
if (value !== null && value !== void 0) {
|
|
2451
|
+
if (typeof value === "object") {
|
|
2452
|
+
if (config[styleKey]) {
|
|
2453
|
+
css2 = merge_default(css2, getThemeValue(styleKey, value, theme, config));
|
|
2454
|
+
} else {
|
|
2455
|
+
const breakpointsValues = handleBreakpoints({
|
|
2456
|
+
theme
|
|
2457
|
+
}, value, (x) => ({
|
|
2458
|
+
[styleKey]: x
|
|
2459
|
+
}));
|
|
2460
|
+
if (objectsHaveSameKeys(breakpointsValues, value)) {
|
|
2461
|
+
css2[styleKey] = styleFunctionSx2({
|
|
2462
|
+
sx: value,
|
|
2463
|
+
theme
|
|
2464
|
+
});
|
|
2465
|
+
} else {
|
|
2466
|
+
css2 = merge_default(css2, breakpointsValues);
|
|
2467
|
+
}
|
|
2468
|
+
}
|
|
2469
|
+
} else {
|
|
2470
|
+
css2 = merge_default(css2, getThemeValue(styleKey, value, theme, config));
|
|
2471
|
+
}
|
|
2472
|
+
}
|
|
2473
|
+
});
|
|
2474
|
+
return removeUnusedBreakpoints(breakpointsKeys, css2);
|
|
2475
|
+
}
|
|
2476
|
+
return Array.isArray(sx) ? sx.map(traverse) : traverse(sx);
|
|
2477
|
+
}
|
|
2478
|
+
return styleFunctionSx2;
|
|
2479
|
+
}
|
|
2480
|
+
var styleFunctionSx = unstable_createStyleFunctionSx();
|
|
2481
|
+
styleFunctionSx.filterProps = ["sx"];
|
|
2482
|
+
var styleFunctionSx_default = styleFunctionSx;
|
|
2483
|
+
|
|
2484
|
+
// node_modules/@mui/system/esm/createTheme/applyStyles.js
|
|
2485
|
+
function applyStyles(key, styles) {
|
|
2486
|
+
const theme = this;
|
|
2487
|
+
if (theme.vars && typeof theme.getColorSchemeSelector === "function") {
|
|
2488
|
+
const selector = theme.getColorSchemeSelector(key).replace(/(\[[^\]]+\])/, "*:where($1)");
|
|
2489
|
+
return {
|
|
2490
|
+
[selector]: styles
|
|
2491
|
+
};
|
|
2492
|
+
}
|
|
2493
|
+
if (theme.palette.mode === key) {
|
|
2494
|
+
return styles;
|
|
2495
|
+
}
|
|
2496
|
+
return {};
|
|
2497
|
+
}
|
|
2498
|
+
|
|
2499
|
+
// node_modules/@mui/system/esm/createTheme/createTheme.js
|
|
2500
|
+
var _excluded2 = ["breakpoints", "palette", "spacing", "shape"];
|
|
2501
|
+
function createTheme(options = {}, ...args) {
|
|
2502
|
+
const {
|
|
2503
|
+
breakpoints: breakpointsInput = {},
|
|
2504
|
+
palette: paletteInput = {},
|
|
2505
|
+
spacing: spacingInput,
|
|
2506
|
+
shape: shapeInput = {}
|
|
2507
|
+
} = options, other = _objectWithoutPropertiesLoose(options, _excluded2);
|
|
2508
|
+
const breakpoints = createBreakpoints(breakpointsInput);
|
|
2509
|
+
const spacing2 = createSpacing(spacingInput);
|
|
2510
|
+
let muiTheme = deepmerge({
|
|
2511
|
+
breakpoints,
|
|
2512
|
+
direction: "ltr",
|
|
2513
|
+
components: {},
|
|
2514
|
+
// Inject component definitions.
|
|
2515
|
+
palette: _extends({
|
|
2516
|
+
mode: "light"
|
|
2517
|
+
}, paletteInput),
|
|
2518
|
+
spacing: spacing2,
|
|
2519
|
+
shape: _extends({}, shape_default, shapeInput)
|
|
2520
|
+
}, other);
|
|
2521
|
+
muiTheme.applyStyles = applyStyles;
|
|
2522
|
+
muiTheme = args.reduce((acc, argument) => deepmerge(acc, argument), muiTheme);
|
|
2523
|
+
muiTheme.unstable_sxConfig = _extends({}, defaultSxConfig_default, other == null ? void 0 : other.unstable_sxConfig);
|
|
2524
|
+
muiTheme.unstable_sx = function sx(props) {
|
|
2525
|
+
return styleFunctionSx_default({
|
|
2526
|
+
sx: props,
|
|
2527
|
+
theme: this
|
|
2528
|
+
});
|
|
2529
|
+
};
|
|
2530
|
+
return muiTheme;
|
|
2531
|
+
}
|
|
2532
|
+
var createTheme_default = createTheme;
|
|
2533
|
+
|
|
2534
|
+
// node_modules/@mui/system/esm/propsToClassKey.js
|
|
2535
|
+
var _excluded3 = ["variant"];
|
|
2536
|
+
function isEmpty(string) {
|
|
2537
|
+
return string.length === 0;
|
|
2538
|
+
}
|
|
2539
|
+
function propsToClassKey(props) {
|
|
2540
|
+
const {
|
|
2541
|
+
variant
|
|
2542
|
+
} = props, other = _objectWithoutPropertiesLoose(props, _excluded3);
|
|
2543
|
+
let classKey = variant || "";
|
|
2544
|
+
Object.keys(other).sort().forEach((key) => {
|
|
2545
|
+
if (key === "color") {
|
|
2546
|
+
classKey += isEmpty(classKey) ? props[key] : capitalize(props[key]);
|
|
2547
|
+
} else {
|
|
2548
|
+
classKey += `${isEmpty(classKey) ? key : capitalize(key)}${capitalize(props[key].toString())}`;
|
|
2549
|
+
}
|
|
2550
|
+
});
|
|
2551
|
+
return classKey;
|
|
2552
|
+
}
|
|
2553
|
+
|
|
2554
|
+
// node_modules/@mui/system/esm/createStyled.js
|
|
2555
|
+
var _excluded4 = ["name", "slot", "skipVariantsResolver", "skipSx", "overridesResolver"];
|
|
2556
|
+
function isEmpty2(obj) {
|
|
2557
|
+
return Object.keys(obj).length === 0;
|
|
2558
|
+
}
|
|
2559
|
+
function isStringTag(tag) {
|
|
2560
|
+
return typeof tag === "string" && // 96 is one less than the char code
|
|
2561
|
+
// for "a" so this is checking that
|
|
2562
|
+
// it's a lowercase character
|
|
2563
|
+
tag.charCodeAt(0) > 96;
|
|
2564
|
+
}
|
|
2565
|
+
var getStyleOverrides = (name, theme) => {
|
|
2566
|
+
if (theme.components && theme.components[name] && theme.components[name].styleOverrides) {
|
|
2567
|
+
return theme.components[name].styleOverrides;
|
|
2568
|
+
}
|
|
2569
|
+
return null;
|
|
2570
|
+
};
|
|
2571
|
+
var transformVariants = (variants) => {
|
|
2572
|
+
let numOfCallbacks = 0;
|
|
2573
|
+
const variantsStyles = {};
|
|
2574
|
+
if (variants) {
|
|
2575
|
+
variants.forEach((definition) => {
|
|
2576
|
+
let key = "";
|
|
2577
|
+
if (typeof definition.props === "function") {
|
|
2578
|
+
key = `callback${numOfCallbacks}`;
|
|
2579
|
+
numOfCallbacks += 1;
|
|
2580
|
+
} else {
|
|
2581
|
+
key = propsToClassKey(definition.props);
|
|
2582
|
+
}
|
|
2583
|
+
variantsStyles[key] = definition.style;
|
|
2584
|
+
});
|
|
2585
|
+
}
|
|
2586
|
+
return variantsStyles;
|
|
2587
|
+
};
|
|
2588
|
+
var getVariantStyles = (name, theme) => {
|
|
2589
|
+
let variants = [];
|
|
2590
|
+
if (theme && theme.components && theme.components[name] && theme.components[name].variants) {
|
|
2591
|
+
variants = theme.components[name].variants;
|
|
2592
|
+
}
|
|
2593
|
+
return transformVariants(variants);
|
|
2594
|
+
};
|
|
2595
|
+
var variantsResolver = (props, styles, variants) => {
|
|
2596
|
+
const {
|
|
2597
|
+
ownerState = {}
|
|
2598
|
+
} = props;
|
|
2599
|
+
const variantsStyles = [];
|
|
2600
|
+
let numOfCallbacks = 0;
|
|
2601
|
+
if (variants) {
|
|
2602
|
+
variants.forEach((variant) => {
|
|
2603
|
+
let isMatch = true;
|
|
2604
|
+
if (typeof variant.props === "function") {
|
|
2605
|
+
const propsToCheck = _extends({}, props, ownerState);
|
|
2606
|
+
isMatch = variant.props(propsToCheck);
|
|
2607
|
+
} else {
|
|
2608
|
+
Object.keys(variant.props).forEach((key) => {
|
|
2609
|
+
if (ownerState[key] !== variant.props[key] && props[key] !== variant.props[key]) {
|
|
2610
|
+
isMatch = false;
|
|
2611
|
+
}
|
|
2612
|
+
});
|
|
2613
|
+
}
|
|
2614
|
+
if (isMatch) {
|
|
2615
|
+
if (typeof variant.props === "function") {
|
|
2616
|
+
variantsStyles.push(styles[`callback${numOfCallbacks}`]);
|
|
2617
|
+
} else {
|
|
2618
|
+
variantsStyles.push(styles[propsToClassKey(variant.props)]);
|
|
2619
|
+
}
|
|
2620
|
+
}
|
|
2621
|
+
if (typeof variant.props === "function") {
|
|
2622
|
+
numOfCallbacks += 1;
|
|
2623
|
+
}
|
|
2624
|
+
});
|
|
2625
|
+
}
|
|
2626
|
+
return variantsStyles;
|
|
2627
|
+
};
|
|
2628
|
+
var themeVariantsResolver = (props, styles, theme, name) => {
|
|
2629
|
+
var _theme$components;
|
|
2630
|
+
const themeVariants = theme == null || (_theme$components = theme.components) == null || (_theme$components = _theme$components[name]) == null ? void 0 : _theme$components.variants;
|
|
2631
|
+
return variantsResolver(props, styles, themeVariants);
|
|
2632
|
+
};
|
|
2633
|
+
function shouldForwardProp(prop) {
|
|
2634
|
+
return prop !== "ownerState" && prop !== "theme" && prop !== "sx" && prop !== "as";
|
|
2635
|
+
}
|
|
2636
|
+
var systemDefaultTheme = createTheme_default();
|
|
2637
|
+
var lowercaseFirstLetter = (string) => {
|
|
2638
|
+
if (!string) {
|
|
2639
|
+
return string;
|
|
2640
|
+
}
|
|
2641
|
+
return string.charAt(0).toLowerCase() + string.slice(1);
|
|
2642
|
+
};
|
|
2643
|
+
function resolveTheme({
|
|
2644
|
+
defaultTheme,
|
|
2645
|
+
theme,
|
|
2646
|
+
themeId
|
|
2647
|
+
}) {
|
|
2648
|
+
return isEmpty2(theme) ? defaultTheme : theme[themeId] || theme;
|
|
2649
|
+
}
|
|
2650
|
+
function defaultOverridesResolver(slot) {
|
|
2651
|
+
if (!slot) {
|
|
2652
|
+
return null;
|
|
2653
|
+
}
|
|
2654
|
+
return (props, styles) => styles[slot];
|
|
2655
|
+
}
|
|
2656
|
+
var muiStyledFunctionResolver = ({
|
|
2657
|
+
styledArg,
|
|
2658
|
+
props,
|
|
2659
|
+
defaultTheme,
|
|
2660
|
+
themeId
|
|
2661
|
+
}) => {
|
|
2662
|
+
const resolvedStyles = styledArg(_extends({}, props, {
|
|
2663
|
+
theme: resolveTheme(_extends({}, props, {
|
|
2664
|
+
defaultTheme,
|
|
2665
|
+
themeId
|
|
2666
|
+
}))
|
|
2667
|
+
}));
|
|
2668
|
+
let optionalVariants;
|
|
2669
|
+
if (resolvedStyles && resolvedStyles.variants) {
|
|
2670
|
+
optionalVariants = resolvedStyles.variants;
|
|
2671
|
+
delete resolvedStyles.variants;
|
|
2672
|
+
}
|
|
2673
|
+
if (optionalVariants) {
|
|
2674
|
+
const variantsStyles = variantsResolver(props, transformVariants(optionalVariants), optionalVariants);
|
|
2675
|
+
return [resolvedStyles, ...variantsStyles];
|
|
2676
|
+
}
|
|
2677
|
+
return resolvedStyles;
|
|
2678
|
+
};
|
|
2679
|
+
function createStyled(input = {}) {
|
|
2680
|
+
const {
|
|
2681
|
+
themeId,
|
|
2682
|
+
defaultTheme = systemDefaultTheme,
|
|
2683
|
+
rootShouldForwardProp = shouldForwardProp,
|
|
2684
|
+
slotShouldForwardProp = shouldForwardProp
|
|
2685
|
+
} = input;
|
|
2686
|
+
const systemSx = (props) => {
|
|
2687
|
+
return styleFunctionSx_default(_extends({}, props, {
|
|
2688
|
+
theme: resolveTheme(_extends({}, props, {
|
|
2689
|
+
defaultTheme,
|
|
2690
|
+
themeId
|
|
2691
|
+
}))
|
|
2692
|
+
}));
|
|
2693
|
+
};
|
|
2694
|
+
systemSx.__mui_systemSx = true;
|
|
2695
|
+
return (tag, inputOptions = {}) => {
|
|
2696
|
+
internal_processStyles(tag, (styles) => styles.filter((style3) => !(style3 != null && style3.__mui_systemSx)));
|
|
2697
|
+
const {
|
|
2698
|
+
name: componentName,
|
|
2699
|
+
slot: componentSlot,
|
|
2700
|
+
skipVariantsResolver: inputSkipVariantsResolver,
|
|
2701
|
+
skipSx: inputSkipSx,
|
|
2702
|
+
// TODO v6: remove `lowercaseFirstLetter()` in the next major release
|
|
2703
|
+
// For more details: https://github.com/mui/material-ui/pull/37908
|
|
2704
|
+
overridesResolver = defaultOverridesResolver(lowercaseFirstLetter(componentSlot))
|
|
2705
|
+
} = inputOptions, options = _objectWithoutPropertiesLoose(inputOptions, _excluded4);
|
|
2706
|
+
const skipVariantsResolver = inputSkipVariantsResolver !== void 0 ? inputSkipVariantsResolver : (
|
|
2707
|
+
// TODO v6: remove `Root` in the next major release
|
|
2708
|
+
// For more details: https://github.com/mui/material-ui/pull/37908
|
|
2709
|
+
componentSlot && componentSlot !== "Root" && componentSlot !== "root" || false
|
|
2710
|
+
);
|
|
2711
|
+
const skipSx = inputSkipSx || false;
|
|
2712
|
+
let label;
|
|
2713
|
+
if (process.env.NODE_ENV !== "production") {
|
|
2714
|
+
if (componentName) {
|
|
2715
|
+
label = `${componentName}-${lowercaseFirstLetter(componentSlot || "Root")}`;
|
|
2716
|
+
}
|
|
2717
|
+
}
|
|
2718
|
+
let shouldForwardPropOption = shouldForwardProp;
|
|
2719
|
+
if (componentSlot === "Root" || componentSlot === "root") {
|
|
2720
|
+
shouldForwardPropOption = rootShouldForwardProp;
|
|
2721
|
+
} else if (componentSlot) {
|
|
2722
|
+
shouldForwardPropOption = slotShouldForwardProp;
|
|
2723
|
+
} else if (isStringTag(tag)) {
|
|
2724
|
+
shouldForwardPropOption = void 0;
|
|
2725
|
+
}
|
|
2726
|
+
const defaultStyledResolver = styled(tag, _extends({
|
|
2727
|
+
shouldForwardProp: shouldForwardPropOption,
|
|
2728
|
+
label
|
|
2729
|
+
}, options));
|
|
2730
|
+
const muiStyledResolver = (styleArg, ...expressions) => {
|
|
2731
|
+
const expressionsWithDefaultTheme = expressions ? expressions.map((stylesArg) => {
|
|
2732
|
+
if (typeof stylesArg === "function" && stylesArg.__emotion_real !== stylesArg) {
|
|
2733
|
+
return (props) => muiStyledFunctionResolver({
|
|
2734
|
+
styledArg: stylesArg,
|
|
2735
|
+
props,
|
|
2736
|
+
defaultTheme,
|
|
2737
|
+
themeId
|
|
2738
|
+
});
|
|
2739
|
+
}
|
|
2740
|
+
if (isPlainObject(stylesArg)) {
|
|
2741
|
+
let transformedStylesArg = stylesArg;
|
|
2742
|
+
let styledArgVariants;
|
|
2743
|
+
if (stylesArg && stylesArg.variants) {
|
|
2744
|
+
styledArgVariants = stylesArg.variants;
|
|
2745
|
+
delete transformedStylesArg.variants;
|
|
2746
|
+
transformedStylesArg = (props) => {
|
|
2747
|
+
let result = stylesArg;
|
|
2748
|
+
const variantStyles = variantsResolver(props, transformVariants(styledArgVariants), styledArgVariants);
|
|
2749
|
+
variantStyles.forEach((variantStyle) => {
|
|
2750
|
+
result = deepmerge(result, variantStyle);
|
|
2751
|
+
});
|
|
2752
|
+
return result;
|
|
2753
|
+
};
|
|
2754
|
+
}
|
|
2755
|
+
return transformedStylesArg;
|
|
2756
|
+
}
|
|
2757
|
+
return stylesArg;
|
|
2758
|
+
}) : [];
|
|
2759
|
+
let transformedStyleArg = styleArg;
|
|
2760
|
+
if (isPlainObject(styleArg)) {
|
|
2761
|
+
let styledArgVariants;
|
|
2762
|
+
if (styleArg && styleArg.variants) {
|
|
2763
|
+
styledArgVariants = styleArg.variants;
|
|
2764
|
+
delete transformedStyleArg.variants;
|
|
2765
|
+
transformedStyleArg = (props) => {
|
|
2766
|
+
let result = styleArg;
|
|
2767
|
+
const variantStyles = variantsResolver(props, transformVariants(styledArgVariants), styledArgVariants);
|
|
2768
|
+
variantStyles.forEach((variantStyle) => {
|
|
2769
|
+
result = deepmerge(result, variantStyle);
|
|
2770
|
+
});
|
|
2771
|
+
return result;
|
|
2772
|
+
};
|
|
2773
|
+
}
|
|
2774
|
+
} else if (typeof styleArg === "function" && // On the server Emotion doesn't use React.forwardRef for creating components, so the created
|
|
2775
|
+
// component stays as a function. This condition makes sure that we do not interpolate functions
|
|
2776
|
+
// which are basically components used as a selectors.
|
|
2777
|
+
styleArg.__emotion_real !== styleArg) {
|
|
2778
|
+
transformedStyleArg = (props) => muiStyledFunctionResolver({
|
|
2779
|
+
styledArg: styleArg,
|
|
2780
|
+
props,
|
|
2781
|
+
defaultTheme,
|
|
2782
|
+
themeId
|
|
2783
|
+
});
|
|
2784
|
+
}
|
|
2785
|
+
if (componentName && overridesResolver) {
|
|
2786
|
+
expressionsWithDefaultTheme.push((props) => {
|
|
2787
|
+
const theme = resolveTheme(_extends({}, props, {
|
|
2788
|
+
defaultTheme,
|
|
2789
|
+
themeId
|
|
2790
|
+
}));
|
|
2791
|
+
const styleOverrides = getStyleOverrides(componentName, theme);
|
|
2792
|
+
if (styleOverrides) {
|
|
2793
|
+
const resolvedStyleOverrides = {};
|
|
2794
|
+
Object.entries(styleOverrides).forEach(([slotKey, slotStyle]) => {
|
|
2795
|
+
resolvedStyleOverrides[slotKey] = typeof slotStyle === "function" ? slotStyle(_extends({}, props, {
|
|
2796
|
+
theme
|
|
2797
|
+
})) : slotStyle;
|
|
2798
|
+
});
|
|
2799
|
+
return overridesResolver(props, resolvedStyleOverrides);
|
|
2800
|
+
}
|
|
2801
|
+
return null;
|
|
2802
|
+
});
|
|
2803
|
+
}
|
|
2804
|
+
if (componentName && !skipVariantsResolver) {
|
|
2805
|
+
expressionsWithDefaultTheme.push((props) => {
|
|
2806
|
+
const theme = resolveTheme(_extends({}, props, {
|
|
2807
|
+
defaultTheme,
|
|
2808
|
+
themeId
|
|
2809
|
+
}));
|
|
2810
|
+
return themeVariantsResolver(props, getVariantStyles(componentName, theme), theme, componentName);
|
|
2811
|
+
});
|
|
2812
|
+
}
|
|
2813
|
+
if (!skipSx) {
|
|
2814
|
+
expressionsWithDefaultTheme.push(systemSx);
|
|
2815
|
+
}
|
|
2816
|
+
const numOfCustomFnsApplied = expressionsWithDefaultTheme.length - expressions.length;
|
|
2817
|
+
if (Array.isArray(styleArg) && numOfCustomFnsApplied > 0) {
|
|
2818
|
+
const placeholders = new Array(numOfCustomFnsApplied).fill("");
|
|
2819
|
+
transformedStyleArg = [...styleArg, ...placeholders];
|
|
2820
|
+
transformedStyleArg.raw = [...styleArg.raw, ...placeholders];
|
|
2821
|
+
}
|
|
2822
|
+
const Component = defaultStyledResolver(transformedStyleArg, ...expressionsWithDefaultTheme);
|
|
2823
|
+
if (process.env.NODE_ENV !== "production") {
|
|
2824
|
+
let displayName;
|
|
2825
|
+
if (componentName) {
|
|
2826
|
+
displayName = `${componentName}${capitalize(componentSlot || "")}`;
|
|
2827
|
+
}
|
|
2828
|
+
if (displayName === void 0) {
|
|
2829
|
+
displayName = `Styled(${getDisplayName(tag)})`;
|
|
2830
|
+
}
|
|
2831
|
+
Component.displayName = displayName;
|
|
2832
|
+
}
|
|
2833
|
+
if (tag.muiName) {
|
|
2834
|
+
Component.muiName = tag.muiName;
|
|
2835
|
+
}
|
|
2836
|
+
return Component;
|
|
2837
|
+
};
|
|
2838
|
+
if (defaultStyledResolver.withConfig) {
|
|
2839
|
+
muiStyledResolver.withConfig = defaultStyledResolver.withConfig;
|
|
2840
|
+
}
|
|
2841
|
+
return muiStyledResolver;
|
|
2842
|
+
};
|
|
2843
|
+
}
|
|
2844
|
+
|
|
2845
|
+
// node_modules/@mui/system/esm/styled.js
|
|
2846
|
+
var styled2 = createStyled();
|
|
2847
|
+
var styled_default = styled2;
|
|
2848
|
+
|
|
2849
|
+
// src/components/buttons/WavelengthButton/WLButton.tsx
|
|
2850
|
+
var import_react3 = __toESM(require("react"));
|
|
2851
|
+
|
|
2852
|
+
// src/themes/WavelengthAppTheme.ts
|
|
2853
|
+
var import_react2 = require("react");
|
|
2854
|
+
var WavelengthAppTheme = (0, import_react2.createContext)({});
|
|
2855
|
+
var useThemeContext = () => (0, import_react2.useContext)(WavelengthAppTheme);
|
|
2856
|
+
|
|
2857
|
+
// src/themes/Palette.ts
|
|
2858
|
+
function getPalette(themeName) {
|
|
2859
|
+
const palette2 = {
|
|
2860
|
+
primary: `#336699`,
|
|
2861
|
+
secondary: `#66FFCC`
|
|
2862
|
+
};
|
|
2863
|
+
if (themeName != void 0) {
|
|
2864
|
+
if (themeName.toLowerCase() === "arrow") {
|
|
2865
|
+
palette2.primary = "#46D8ECFF";
|
|
2866
|
+
palette2.secondary = "#46D8EC99";
|
|
2867
|
+
}
|
|
2868
|
+
} else {
|
|
2869
|
+
console.log("Using Default Theme");
|
|
2870
|
+
}
|
|
2871
|
+
return palette2;
|
|
2872
|
+
}
|
|
2873
|
+
|
|
2874
|
+
// src/components/buttons/WavelengthButton/WLButton.tsx
|
|
2875
|
+
function WLButton({ id, variant, margin: margin2, padding: padding2, autoFocus, disabled, onClick, children }) {
|
|
2876
|
+
const { name } = useThemeContext();
|
|
2877
|
+
const palette2 = getPalette(name);
|
|
2878
|
+
const WLContainedButton = styled_default(import_material.Button)(({}) => ({
|
|
2879
|
+
height: "45px",
|
|
2880
|
+
color: "#FFFFFF",
|
|
2881
|
+
background: palette2.primary,
|
|
2882
|
+
border: `1px solid`,
|
|
2883
|
+
borderRadius: "8px",
|
|
2884
|
+
borderColor: palette2.secondary
|
|
2885
|
+
}));
|
|
2886
|
+
const WLOutlinedButton = styled_default(import_material.Button)(({}) => ({
|
|
2887
|
+
height: "45px",
|
|
2888
|
+
border: `1px solid`,
|
|
2889
|
+
borderRadius: "8px",
|
|
2890
|
+
borderColor: palette2.primary,
|
|
2891
|
+
color: palette2.primary
|
|
2892
|
+
}));
|
|
2893
|
+
const WLTextButton = styled_default(import_material.Button)(({}) => ({
|
|
2894
|
+
height: "45px",
|
|
2895
|
+
border: "0px",
|
|
2896
|
+
borderRadius: "8px",
|
|
2897
|
+
"&:hover": {
|
|
2898
|
+
border: "0px",
|
|
2899
|
+
color: palette2.primary
|
|
2900
|
+
}
|
|
2901
|
+
}));
|
|
2902
|
+
if (variant === "contained") {
|
|
2903
|
+
return /* @__PURE__ */ import_react3.default.createElement(WLContainedButton, { variant: "contained", id, autoFocus, disabled, onClick, sx: { margin: { margin: margin2 }, padding: { padding: padding2 } } }, children);
|
|
2904
|
+
}
|
|
2905
|
+
if (variant === "outlined") {
|
|
2906
|
+
return /* @__PURE__ */ import_react3.default.createElement(WLOutlinedButton, { variant: "outlined", id, autoFocus, disabled, onClick, sx: { margin: { margin: margin2 }, padding: { padding: padding2 } } }, children);
|
|
2907
|
+
}
|
|
2908
|
+
return /* @__PURE__ */ import_react3.default.createElement(WLTextButton, { variant: "outlined", id, autoFocus, disabled, onClick, sx: { margin: { margin: margin2 }, padding: { padding: padding2 } } }, children);
|
|
42
2909
|
}
|
|
43
2910
|
// Annotate the CommonJS export names for ESM import in node:
|
|
44
2911
|
0 && (module.exports = {
|
|
2912
|
+
WLButton,
|
|
2913
|
+
WavelengthAppTheme,
|
|
45
2914
|
add,
|
|
46
2915
|
concat,
|
|
47
|
-
|
|
2916
|
+
useThemeContext
|
|
48
2917
|
});
|
|
2918
|
+
/*! Bundled license information:
|
|
2919
|
+
|
|
2920
|
+
react-is/cjs/react-is.production.min.js:
|
|
2921
|
+
(** @license React v16.13.1
|
|
2922
|
+
* react-is.production.min.js
|
|
2923
|
+
*
|
|
2924
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
2925
|
+
*
|
|
2926
|
+
* This source code is licensed under the MIT license found in the
|
|
2927
|
+
* LICENSE file in the root directory of this source tree.
|
|
2928
|
+
*)
|
|
2929
|
+
|
|
2930
|
+
react-is/cjs/react-is.development.js:
|
|
2931
|
+
(** @license React v16.13.1
|
|
2932
|
+
* react-is.development.js
|
|
2933
|
+
*
|
|
2934
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
2935
|
+
*
|
|
2936
|
+
* This source code is licensed under the MIT license found in the
|
|
2937
|
+
* LICENSE file in the root directory of this source tree.
|
|
2938
|
+
*)
|
|
2939
|
+
|
|
2940
|
+
object-assign/index.js:
|
|
2941
|
+
(*
|
|
2942
|
+
object-assign
|
|
2943
|
+
(c) Sindre Sorhus
|
|
2944
|
+
@license MIT
|
|
2945
|
+
*)
|
|
2946
|
+
|
|
2947
|
+
react-is/cjs/react-is.production.min.js:
|
|
2948
|
+
(**
|
|
2949
|
+
* @license React
|
|
2950
|
+
* react-is.production.min.js
|
|
2951
|
+
*
|
|
2952
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
2953
|
+
*
|
|
2954
|
+
* This source code is licensed under the MIT license found in the
|
|
2955
|
+
* LICENSE file in the root directory of this source tree.
|
|
2956
|
+
*)
|
|
2957
|
+
|
|
2958
|
+
react-is/cjs/react-is.development.js:
|
|
2959
|
+
(**
|
|
2960
|
+
* @license React
|
|
2961
|
+
* react-is.development.js
|
|
2962
|
+
*
|
|
2963
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
2964
|
+
*
|
|
2965
|
+
* This source code is licensed under the MIT license found in the
|
|
2966
|
+
* LICENSE file in the root directory of this source tree.
|
|
2967
|
+
*)
|
|
2968
|
+
|
|
2969
|
+
@mui/styled-engine/index.js:
|
|
2970
|
+
(**
|
|
2971
|
+
* @mui/styled-engine v5.15.7
|
|
2972
|
+
*
|
|
2973
|
+
* @license MIT
|
|
2974
|
+
* This source code is licensed under the MIT license found in the
|
|
2975
|
+
* LICENSE file in the root directory of this source tree.
|
|
2976
|
+
*)
|
|
2977
|
+
*/
|
|
49
2978
|
//# sourceMappingURL=index.js.map
|