@pie-element/matrix 0.1.3 → 0.1.4-next.1016

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.
Files changed (38) hide show
  1. package/CHANGELOG.md +150 -0
  2. package/configure/CHANGELOG.md +117 -0
  3. package/configure/lib/HeaderCommon.js +1 -1
  4. package/configure/lib/Main.js +12 -6
  5. package/configure/lib/Main.js.map +1 -1
  6. package/configure/lib/MatrixColumnsSizeHeaderInput.js +2 -2
  7. package/configure/lib/MatrixLabelEditableButton.js +9 -3
  8. package/configure/lib/MatrixLabelEditableButton.js.map +1 -1
  9. package/configure/lib/MatrixLabelTypeHeaderInput.js +2 -2
  10. package/configure/lib/MatrixRowsSizeHeaderInput.js +2 -2
  11. package/configure/lib/MatrixValues.js +14 -7
  12. package/configure/lib/MatrixValues.js.map +1 -1
  13. package/configure/lib/NumberInput.js +5 -1
  14. package/configure/lib/NumberInput.js.map +1 -1
  15. package/configure/lib/defaults.js +5 -0
  16. package/configure/lib/defaults.js.map +1 -1
  17. package/configure/lib/index.js +3 -3
  18. package/configure/package.json +3 -3
  19. package/controller/CHANGELOG.md +16 -0
  20. package/controller/lib/index.js +3 -3
  21. package/controller/lib/index.js.map +1 -1
  22. package/controller/package.json +1 -1
  23. package/docs/config-schema.json +16 -0
  24. package/docs/config-schema.json.md +12 -0
  25. package/lib/ChoiceInput.js.map +1 -1
  26. package/lib/Main.js +1 -1
  27. package/lib/Main.js.map +1 -1
  28. package/lib/Matrix.js +9 -14
  29. package/lib/Matrix.js.map +1 -1
  30. package/lib/index.js +5 -2
  31. package/lib/index.js.map +1 -1
  32. package/package.json +4 -4
  33. package/module/configure.js +0 -3286
  34. package/module/controller.js +0 -947
  35. package/module/demo.js +0 -36
  36. package/module/element.js +0 -1599
  37. package/module/index.html +0 -16
  38. package/module/manifest.json +0 -10
package/module/element.js DELETED
@@ -1,1599 +0,0 @@
1
- import {_dll_react, _dll_prop_types, _dll_material_ui__core_styles, _dll_pie_lib__render_ui, _dll_material_ui__core, _dll_react_dom, _dll_pie_framework__pie_player_events, _dll_pie_lib__math_rendering} from "../../../@pie-ui/shared-lib@^4.3.3/module/index.js";
2
- function createCommonjsModule(fn, module) {
3
- return (module = {
4
- exports: {}
5
- }, fn(module, module.exports), module.exports);
6
- }
7
- var reactIs_development = createCommonjsModule(function (module, exports) {
8
- {
9
- (function () {
10
- var hasSymbol = typeof Symbol === 'function' && Symbol.for;
11
- var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
12
- var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
13
- var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
14
- var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
15
- var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
16
- var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
17
- var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace;
18
- var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
19
- var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
20
- var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
21
- var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
22
- var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
23
- var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
24
- var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
25
- var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
26
- var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
27
- var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
28
- var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
29
- function isValidElementType(type) {
30
- return typeof type === 'string' || typeof type === 'function' || type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
31
- }
32
- function typeOf(object) {
33
- if (typeof object === 'object' && object !== null) {
34
- var $$typeof = object.$$typeof;
35
- switch ($$typeof) {
36
- case REACT_ELEMENT_TYPE:
37
- var type = object.type;
38
- switch (type) {
39
- case REACT_ASYNC_MODE_TYPE:
40
- case REACT_CONCURRENT_MODE_TYPE:
41
- case REACT_FRAGMENT_TYPE:
42
- case REACT_PROFILER_TYPE:
43
- case REACT_STRICT_MODE_TYPE:
44
- case REACT_SUSPENSE_TYPE:
45
- return type;
46
- default:
47
- var $$typeofType = type && type.$$typeof;
48
- switch ($$typeofType) {
49
- case REACT_CONTEXT_TYPE:
50
- case REACT_FORWARD_REF_TYPE:
51
- case REACT_LAZY_TYPE:
52
- case REACT_MEMO_TYPE:
53
- case REACT_PROVIDER_TYPE:
54
- return $$typeofType;
55
- default:
56
- return $$typeof;
57
- }
58
- }
59
- case REACT_PORTAL_TYPE:
60
- return $$typeof;
61
- }
62
- }
63
- return undefined;
64
- }
65
- var AsyncMode = REACT_ASYNC_MODE_TYPE;
66
- var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
67
- var ContextConsumer = REACT_CONTEXT_TYPE;
68
- var ContextProvider = REACT_PROVIDER_TYPE;
69
- var Element = REACT_ELEMENT_TYPE;
70
- var ForwardRef = REACT_FORWARD_REF_TYPE;
71
- var Fragment = REACT_FRAGMENT_TYPE;
72
- var Lazy = REACT_LAZY_TYPE;
73
- var Memo = REACT_MEMO_TYPE;
74
- var Portal = REACT_PORTAL_TYPE;
75
- var Profiler = REACT_PROFILER_TYPE;
76
- var StrictMode = REACT_STRICT_MODE_TYPE;
77
- var Suspense = REACT_SUSPENSE_TYPE;
78
- var hasWarnedAboutDeprecatedIsAsyncMode = false;
79
- function isAsyncMode(object) {
80
- {
81
- if (!hasWarnedAboutDeprecatedIsAsyncMode) {
82
- hasWarnedAboutDeprecatedIsAsyncMode = true;
83
- 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.');
84
- }
85
- }
86
- return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
87
- }
88
- function isConcurrentMode(object) {
89
- return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
90
- }
91
- function isContextConsumer(object) {
92
- return typeOf(object) === REACT_CONTEXT_TYPE;
93
- }
94
- function isContextProvider(object) {
95
- return typeOf(object) === REACT_PROVIDER_TYPE;
96
- }
97
- function isElement(object) {
98
- return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
99
- }
100
- function isForwardRef(object) {
101
- return typeOf(object) === REACT_FORWARD_REF_TYPE;
102
- }
103
- function isFragment(object) {
104
- return typeOf(object) === REACT_FRAGMENT_TYPE;
105
- }
106
- function isLazy(object) {
107
- return typeOf(object) === REACT_LAZY_TYPE;
108
- }
109
- function isMemo(object) {
110
- return typeOf(object) === REACT_MEMO_TYPE;
111
- }
112
- function isPortal(object) {
113
- return typeOf(object) === REACT_PORTAL_TYPE;
114
- }
115
- function isProfiler(object) {
116
- return typeOf(object) === REACT_PROFILER_TYPE;
117
- }
118
- function isStrictMode(object) {
119
- return typeOf(object) === REACT_STRICT_MODE_TYPE;
120
- }
121
- function isSuspense(object) {
122
- return typeOf(object) === REACT_SUSPENSE_TYPE;
123
- }
124
- exports.AsyncMode = AsyncMode;
125
- exports.ConcurrentMode = ConcurrentMode;
126
- exports.ContextConsumer = ContextConsumer;
127
- exports.ContextProvider = ContextProvider;
128
- exports.Element = Element;
129
- exports.ForwardRef = ForwardRef;
130
- exports.Fragment = Fragment;
131
- exports.Lazy = Lazy;
132
- exports.Memo = Memo;
133
- exports.Portal = Portal;
134
- exports.Profiler = Profiler;
135
- exports.StrictMode = StrictMode;
136
- exports.Suspense = Suspense;
137
- exports.isAsyncMode = isAsyncMode;
138
- exports.isConcurrentMode = isConcurrentMode;
139
- exports.isContextConsumer = isContextConsumer;
140
- exports.isContextProvider = isContextProvider;
141
- exports.isElement = isElement;
142
- exports.isForwardRef = isForwardRef;
143
- exports.isFragment = isFragment;
144
- exports.isLazy = isLazy;
145
- exports.isMemo = isMemo;
146
- exports.isPortal = isPortal;
147
- exports.isProfiler = isProfiler;
148
- exports.isStrictMode = isStrictMode;
149
- exports.isSuspense = isSuspense;
150
- exports.isValidElementType = isValidElementType;
151
- exports.typeOf = typeOf;
152
- })();
153
- }
154
- });
155
- reactIs_development.AsyncMode;
156
- reactIs_development.ConcurrentMode;
157
- reactIs_development.ContextConsumer;
158
- reactIs_development.ContextProvider;
159
- reactIs_development.Element;
160
- reactIs_development.ForwardRef;
161
- reactIs_development.Fragment;
162
- reactIs_development.Lazy;
163
- reactIs_development.Memo;
164
- reactIs_development.Portal;
165
- reactIs_development.Profiler;
166
- reactIs_development.StrictMode;
167
- reactIs_development.Suspense;
168
- reactIs_development.isAsyncMode;
169
- reactIs_development.isConcurrentMode;
170
- reactIs_development.isContextConsumer;
171
- reactIs_development.isContextProvider;
172
- reactIs_development.isElement;
173
- reactIs_development.isForwardRef;
174
- reactIs_development.isFragment;
175
- reactIs_development.isLazy;
176
- reactIs_development.isMemo;
177
- reactIs_development.isPortal;
178
- reactIs_development.isProfiler;
179
- reactIs_development.isStrictMode;
180
- reactIs_development.isSuspense;
181
- reactIs_development.isValidElementType;
182
- reactIs_development.typeOf;
183
- var reactIs = createCommonjsModule(function (module) {
184
- {
185
- module.exports = reactIs_development;
186
- }
187
- });
188
- reactIs.AsyncMode;
189
- reactIs.ConcurrentMode;
190
- reactIs.ContextConsumer;
191
- reactIs.ContextProvider;
192
- reactIs.Element;
193
- reactIs.ForwardRef;
194
- reactIs.Fragment;
195
- reactIs.Lazy;
196
- reactIs.Memo;
197
- reactIs.Portal;
198
- reactIs.Profiler;
199
- reactIs.StrictMode;
200
- reactIs.Suspense;
201
- reactIs.isAsyncMode;
202
- reactIs.isConcurrentMode;
203
- reactIs.isContextConsumer;
204
- reactIs.isContextProvider;
205
- var reactIs_18 = reactIs.isElement;
206
- reactIs.isForwardRef;
207
- reactIs.isFragment;
208
- reactIs.isLazy;
209
- reactIs.isMemo;
210
- reactIs.isPortal;
211
- reactIs.isProfiler;
212
- reactIs.isStrictMode;
213
- reactIs.isSuspense;
214
- var reactIs_27 = reactIs.isValidElementType;
215
- var reactIs_28 = reactIs.typeOf;
216
- function stylis_min(W) {
217
- function M(d, c, e, h, a) {
218
- for (var m = 0, b = 0, v = 0, n = 0, q, g, x = 0, K = 0, k, u = k = q = 0, l = 0, r = 0, I = 0, t = 0, B = e.length, J = B - 1, y, f = '', p = '', F = '', G = '', C; l < B; ) {
219
- g = e.charCodeAt(l);
220
- l === J && 0 !== b + n + v + m && (0 !== b && (g = 47 === b ? 10 : 47), n = v = m = 0, B++, J++);
221
- if (0 === b + n + v + m) {
222
- if (l === J && (0 < r && (f = f.replace(N, '')), 0 < f.trim().length)) {
223
- switch (g) {
224
- case 32:
225
- case 9:
226
- case 59:
227
- case 13:
228
- case 10:
229
- break;
230
- default:
231
- f += e.charAt(l);
232
- }
233
- g = 59;
234
- }
235
- switch (g) {
236
- case 123:
237
- f = f.trim();
238
- q = f.charCodeAt(0);
239
- k = 1;
240
- for (t = ++l; l < B; ) {
241
- switch (g = e.charCodeAt(l)) {
242
- case 123:
243
- k++;
244
- break;
245
- case 125:
246
- k--;
247
- break;
248
- case 47:
249
- switch (g = e.charCodeAt(l + 1)) {
250
- case 42:
251
- case 47:
252
- a: {
253
- for (u = l + 1; u < J; ++u) {
254
- switch (e.charCodeAt(u)) {
255
- case 47:
256
- if (42 === g && 42 === e.charCodeAt(u - 1) && l + 2 !== u) {
257
- l = u + 1;
258
- break a;
259
- }
260
- break;
261
- case 10:
262
- if (47 === g) {
263
- l = u + 1;
264
- break a;
265
- }
266
- }
267
- }
268
- l = u;
269
- }
270
- }
271
- break;
272
- case 91:
273
- g++;
274
- case 40:
275
- g++;
276
- case 34:
277
- case 39:
278
- for (; l++ < J && e.charCodeAt(l) !== g; ) {}
279
- }
280
- if (0 === k) break;
281
- l++;
282
- }
283
- k = e.substring(t, l);
284
- 0 === q && (q = (f = f.replace(ca, '').trim()).charCodeAt(0));
285
- switch (q) {
286
- case 64:
287
- 0 < r && (f = f.replace(N, ''));
288
- g = f.charCodeAt(1);
289
- switch (g) {
290
- case 100:
291
- case 109:
292
- case 115:
293
- case 45:
294
- r = c;
295
- break;
296
- default:
297
- r = O;
298
- }
299
- k = M(c, r, k, g, a + 1);
300
- t = k.length;
301
- 0 < A && (r = X(O, f, I), C = H(3, k, r, c, D, z, t, g, a, h), f = r.join(''), void 0 !== C && 0 === (t = (k = C.trim()).length) && (g = 0, k = ''));
302
- if (0 < t) switch (g) {
303
- case 115:
304
- f = f.replace(da, ea);
305
- case 100:
306
- case 109:
307
- case 45:
308
- k = f + '{' + k + '}';
309
- break;
310
- case 107:
311
- f = f.replace(fa, '$1 $2');
312
- k = f + '{' + k + '}';
313
- k = 1 === w || 2 === w && L('@' + k, 3) ? '@-webkit-' + k + '@' + k : '@' + k;
314
- break;
315
- default:
316
- (k = f + k, 112 === h && (k = (p += k, '')));
317
- } else k = '';
318
- break;
319
- default:
320
- k = M(c, X(c, f, I), k, h, a + 1);
321
- }
322
- F += k;
323
- k = I = r = u = q = 0;
324
- f = '';
325
- g = e.charCodeAt(++l);
326
- break;
327
- case 125:
328
- case 59:
329
- f = (0 < r ? f.replace(N, '') : f).trim();
330
- if (1 < (t = f.length)) switch ((0 === u && (q = f.charCodeAt(0), 45 === q || 96 < q && 123 > q) && (t = (f = f.replace(' ', ':')).length), 0 < A && void 0 !== (C = H(1, f, c, d, D, z, p.length, h, a, h)) && 0 === (t = (f = C.trim()).length) && (f = '\x00\x00'), q = f.charCodeAt(0), g = f.charCodeAt(1), q)) {
331
- case 0:
332
- break;
333
- case 64:
334
- if (105 === g || 99 === g) {
335
- G += f + e.charAt(l);
336
- break;
337
- }
338
- default:
339
- 58 !== f.charCodeAt(t - 1) && (p += P(f, q, g, f.charCodeAt(2)));
340
- }
341
- I = r = u = q = 0;
342
- f = '';
343
- g = e.charCodeAt(++l);
344
- }
345
- }
346
- switch (g) {
347
- case 13:
348
- case 10:
349
- 47 === b ? b = 0 : 0 === 1 + q && 107 !== h && 0 < f.length && (r = 1, f += '\x00');
350
- 0 < A * Y && H(0, f, c, d, D, z, p.length, h, a, h);
351
- z = 1;
352
- D++;
353
- break;
354
- case 59:
355
- case 125:
356
- if (0 === b + n + v + m) {
357
- z++;
358
- break;
359
- }
360
- default:
361
- z++;
362
- y = e.charAt(l);
363
- switch (g) {
364
- case 9:
365
- case 32:
366
- if (0 === n + m + b) switch (x) {
367
- case 44:
368
- case 58:
369
- case 9:
370
- case 32:
371
- y = '';
372
- break;
373
- default:
374
- 32 !== g && (y = ' ');
375
- }
376
- break;
377
- case 0:
378
- y = '\\0';
379
- break;
380
- case 12:
381
- y = '\\f';
382
- break;
383
- case 11:
384
- y = '\\v';
385
- break;
386
- case 38:
387
- 0 === n + b + m && (r = I = 1, y = '\f' + y);
388
- break;
389
- case 108:
390
- if (0 === n + b + m + E && 0 < u) switch (l - u) {
391
- case 2:
392
- 112 === x && 58 === e.charCodeAt(l - 3) && (E = x);
393
- case 8:
394
- 111 === K && (E = K);
395
- }
396
- break;
397
- case 58:
398
- 0 === n + b + m && (u = l);
399
- break;
400
- case 44:
401
- 0 === b + v + n + m && (r = 1, y += '\r');
402
- break;
403
- case 34:
404
- case 39:
405
- 0 === b && (n = n === g ? 0 : 0 === n ? g : n);
406
- break;
407
- case 91:
408
- 0 === n + b + v && m++;
409
- break;
410
- case 93:
411
- 0 === n + b + v && m--;
412
- break;
413
- case 41:
414
- 0 === n + b + m && v--;
415
- break;
416
- case 40:
417
- if (0 === n + b + m) {
418
- if (0 === q) switch (2 * x + 3 * K) {
419
- case 533:
420
- break;
421
- default:
422
- q = 1;
423
- }
424
- v++;
425
- }
426
- break;
427
- case 64:
428
- 0 === b + v + n + m + u + k && (k = 1);
429
- break;
430
- case 42:
431
- case 47:
432
- if (!(0 < n + m + v)) switch (b) {
433
- case 0:
434
- switch (2 * g + 3 * e.charCodeAt(l + 1)) {
435
- case 235:
436
- b = 47;
437
- break;
438
- case 220:
439
- (t = l, b = 42);
440
- }
441
- break;
442
- case 42:
443
- 47 === g && 42 === x && t + 2 !== l && (33 === e.charCodeAt(t + 2) && (p += e.substring(t, l + 1)), y = '', b = 0);
444
- }
445
- }
446
- 0 === b && (f += y);
447
- }
448
- K = x;
449
- x = g;
450
- l++;
451
- }
452
- t = p.length;
453
- if (0 < t) {
454
- r = c;
455
- if (0 < A && (C = H(2, p, r, d, D, z, t, h, a, h), void 0 !== C && 0 === (p = C).length)) return G + p + F;
456
- p = r.join(',') + '{' + p + '}';
457
- if (0 !== w * E) {
458
- 2 !== w || L(p, 2) || (E = 0);
459
- switch (E) {
460
- case 111:
461
- p = p.replace(ha, ':-moz-$1') + p;
462
- break;
463
- case 112:
464
- p = p.replace(Q, '::-webkit-input-$1') + p.replace(Q, '::-moz-$1') + p.replace(Q, ':-ms-input-$1') + p;
465
- }
466
- E = 0;
467
- }
468
- }
469
- return G + p + F;
470
- }
471
- function X(d, c, e) {
472
- var h = c.trim().split(ia);
473
- c = h;
474
- var a = h.length, m = d.length;
475
- switch (m) {
476
- case 0:
477
- case 1:
478
- var b = 0;
479
- for (d = 0 === m ? '' : d[0] + ' '; b < a; ++b) {
480
- c[b] = Z(d, c[b], e).trim();
481
- }
482
- break;
483
- default:
484
- var v = b = 0;
485
- for (c = []; b < a; ++b) {
486
- for (var n = 0; n < m; ++n) {
487
- c[v++] = Z(d[n] + ' ', h[b], e).trim();
488
- }
489
- }
490
- }
491
- return c;
492
- }
493
- function Z(d, c, e) {
494
- var h = c.charCodeAt(0);
495
- 33 > h && (h = (c = c.trim()).charCodeAt(0));
496
- switch (h) {
497
- case 38:
498
- return c.replace(F, '$1' + d.trim());
499
- case 58:
500
- return d.trim() + c.replace(F, '$1' + d.trim());
501
- default:
502
- if (0 < 1 * e && 0 < c.indexOf('\f')) return c.replace(F, (58 === d.charCodeAt(0) ? '' : '$1') + d.trim());
503
- }
504
- return d + c;
505
- }
506
- function P(d, c, e, h) {
507
- var a = d + ';', m = 2 * c + 3 * e + 4 * h;
508
- if (944 === m) {
509
- d = a.indexOf(':', 9) + 1;
510
- var b = a.substring(d, a.length - 1).trim();
511
- b = a.substring(0, d).trim() + b + ';';
512
- return 1 === w || 2 === w && L(b, 1) ? '-webkit-' + b + b : b;
513
- }
514
- if (0 === w || 2 === w && !L(a, 1)) return a;
515
- switch (m) {
516
- case 1015:
517
- return 97 === a.charCodeAt(10) ? '-webkit-' + a + a : a;
518
- case 951:
519
- return 116 === a.charCodeAt(3) ? '-webkit-' + a + a : a;
520
- case 963:
521
- return 110 === a.charCodeAt(5) ? '-webkit-' + a + a : a;
522
- case 1009:
523
- if (100 !== a.charCodeAt(4)) break;
524
- case 969:
525
- case 942:
526
- return '-webkit-' + a + a;
527
- case 978:
528
- return '-webkit-' + a + '-moz-' + a + a;
529
- case 1019:
530
- case 983:
531
- return '-webkit-' + a + '-moz-' + a + '-ms-' + a + a;
532
- case 883:
533
- if (45 === a.charCodeAt(8)) return '-webkit-' + a + a;
534
- if (0 < a.indexOf('image-set(', 11)) return a.replace(ja, '$1-webkit-$2') + a;
535
- break;
536
- case 932:
537
- if (45 === a.charCodeAt(4)) switch (a.charCodeAt(5)) {
538
- case 103:
539
- return '-webkit-box-' + a.replace('-grow', '') + '-webkit-' + a + '-ms-' + a.replace('grow', 'positive') + a;
540
- case 115:
541
- return '-webkit-' + a + '-ms-' + a.replace('shrink', 'negative') + a;
542
- case 98:
543
- return '-webkit-' + a + '-ms-' + a.replace('basis', 'preferred-size') + a;
544
- }
545
- return '-webkit-' + a + '-ms-' + a + a;
546
- case 964:
547
- return '-webkit-' + a + '-ms-flex-' + a + a;
548
- case 1023:
549
- if (99 !== a.charCodeAt(8)) break;
550
- b = a.substring(a.indexOf(':', 15)).replace('flex-', '').replace('space-between', 'justify');
551
- return '-webkit-box-pack' + b + '-webkit-' + a + '-ms-flex-pack' + b + a;
552
- case 1005:
553
- return ka.test(a) ? a.replace(aa, ':-webkit-') + a.replace(aa, ':-moz-') + a : a;
554
- case 1e3:
555
- b = a.substring(13).trim();
556
- c = b.indexOf('-') + 1;
557
- switch (b.charCodeAt(0) + b.charCodeAt(c)) {
558
- case 226:
559
- b = a.replace(G, 'tb');
560
- break;
561
- case 232:
562
- b = a.replace(G, 'tb-rl');
563
- break;
564
- case 220:
565
- b = a.replace(G, 'lr');
566
- break;
567
- default:
568
- return a;
569
- }
570
- return '-webkit-' + a + '-ms-' + b + a;
571
- case 1017:
572
- if (-1 === a.indexOf('sticky', 9)) break;
573
- case 975:
574
- c = (a = d).length - 10;
575
- b = (33 === a.charCodeAt(c) ? a.substring(0, c) : a).substring(d.indexOf(':', 7) + 1).trim();
576
- switch (m = b.charCodeAt(0) + (b.charCodeAt(7) | 0)) {
577
- case 203:
578
- if (111 > b.charCodeAt(8)) break;
579
- case 115:
580
- a = a.replace(b, '-webkit-' + b) + ';' + a;
581
- break;
582
- case 207:
583
- case 102:
584
- a = a.replace(b, '-webkit-' + (102 < m ? 'inline-' : '') + 'box') + ';' + a.replace(b, '-webkit-' + b) + ';' + a.replace(b, '-ms-' + b + 'box') + ';' + a;
585
- }
586
- return a + ';';
587
- case 938:
588
- if (45 === a.charCodeAt(5)) switch (a.charCodeAt(6)) {
589
- case 105:
590
- return (b = a.replace('-items', ''), '-webkit-' + a + '-webkit-box-' + b + '-ms-flex-' + b + a);
591
- case 115:
592
- return '-webkit-' + a + '-ms-flex-item-' + a.replace(ba, '') + a;
593
- default:
594
- return '-webkit-' + a + '-ms-flex-line-pack' + a.replace('align-content', '').replace(ba, '') + a;
595
- }
596
- break;
597
- case 973:
598
- case 989:
599
- if (45 !== a.charCodeAt(3) || 122 === a.charCodeAt(4)) break;
600
- case 931:
601
- case 953:
602
- if (!0 === la.test(d)) return 115 === (b = d.substring(d.indexOf(':') + 1)).charCodeAt(0) ? P(d.replace('stretch', 'fill-available'), c, e, h).replace(':fill-available', ':stretch') : a.replace(b, '-webkit-' + b) + a.replace(b, '-moz-' + b.replace('fill-', '')) + a;
603
- break;
604
- case 962:
605
- if ((a = '-webkit-' + a + (102 === a.charCodeAt(5) ? '-ms-' + a : '') + a, 211 === e + h && 105 === a.charCodeAt(13) && 0 < a.indexOf('transform', 10))) return a.substring(0, a.indexOf(';', 27) + 1).replace(ma, '$1-webkit-$2') + a;
606
- }
607
- return a;
608
- }
609
- function L(d, c) {
610
- var e = d.indexOf(1 === c ? ':' : '{'), h = d.substring(0, 3 !== c ? e : 10);
611
- e = d.substring(e + 1, d.length - 1);
612
- return R(2 !== c ? h : h.replace(na, '$1'), e, c);
613
- }
614
- function ea(d, c) {
615
- var e = P(c, c.charCodeAt(0), c.charCodeAt(1), c.charCodeAt(2));
616
- return e !== c + ';' ? e.replace(oa, ' or ($1)').substring(4) : '(' + c + ')';
617
- }
618
- function H(d, c, e, h, a, m, b, v, n, q) {
619
- for (var g = 0, x = c, w; g < A; ++g) {
620
- switch (w = S[g].call(B, d, x, e, h, a, m, b, v, n, q)) {
621
- case void 0:
622
- case !1:
623
- case !0:
624
- case null:
625
- break;
626
- default:
627
- x = w;
628
- }
629
- }
630
- if (x !== c) return x;
631
- }
632
- function T(d) {
633
- switch (d) {
634
- case void 0:
635
- case null:
636
- A = S.length = 0;
637
- break;
638
- default:
639
- if ('function' === typeof d) S[A++] = d; else if ('object' === typeof d) for (var c = 0, e = d.length; c < e; ++c) {
640
- T(d[c]);
641
- } else Y = !!d | 0;
642
- }
643
- return T;
644
- }
645
- function U(d) {
646
- d = d.prefix;
647
- void 0 !== d && (R = null, d ? 'function' !== typeof d ? w = 1 : (w = 2, R = d) : w = 0);
648
- return U;
649
- }
650
- function B(d, c) {
651
- var e = d;
652
- 33 > e.charCodeAt(0) && (e = e.trim());
653
- V = e;
654
- e = [V];
655
- if (0 < A) {
656
- var h = H(-1, c, e, e, D, z, 0, 0, 0, 0);
657
- void 0 !== h && 'string' === typeof h && (c = h);
658
- }
659
- var a = M(O, e, c, 0, 0);
660
- 0 < A && (h = H(-2, a, e, e, D, z, a.length, 0, 0, 0), void 0 !== h && (a = h));
661
- V = '';
662
- E = 0;
663
- z = D = 1;
664
- return a;
665
- }
666
- var ca = /^\0+/g, N = /[\0\r\f]/g, aa = /: */g, ka = /zoo|gra/, ma = /([,: ])(transform)/g, ia = /,\r+?/g, F = /([\t\r\n ])*\f?&/g, fa = /@(k\w+)\s*(\S*)\s*/, Q = /::(place)/g, ha = /:(read-only)/g, G = /[svh]\w+-[tblr]{2}/, da = /\(\s*(.*)\s*\)/g, oa = /([\s\S]*?);/g, ba = /-self|flex-/g, na = /[^]*?(:[rp][el]a[\w-]+)[^]*/, la = /stretch|:\s*\w+\-(?:conte|avail)/, ja = /([^-])(image-set\()/, z = 1, D = 1, E = 0, w = 1, O = [], S = [], A = 0, R = null, Y = 0, V = '';
667
- B.use = T;
668
- B.set = U;
669
- void 0 !== W && U(W);
670
- return B;
671
- }
672
- var unitlessKeys = {
673
- animationIterationCount: 1,
674
- borderImageOutset: 1,
675
- borderImageSlice: 1,
676
- borderImageWidth: 1,
677
- boxFlex: 1,
678
- boxFlexGroup: 1,
679
- boxOrdinalGroup: 1,
680
- columnCount: 1,
681
- columns: 1,
682
- flex: 1,
683
- flexGrow: 1,
684
- flexPositive: 1,
685
- flexShrink: 1,
686
- flexNegative: 1,
687
- flexOrder: 1,
688
- gridRow: 1,
689
- gridRowEnd: 1,
690
- gridRowSpan: 1,
691
- gridRowStart: 1,
692
- gridColumn: 1,
693
- gridColumnEnd: 1,
694
- gridColumnSpan: 1,
695
- gridColumnStart: 1,
696
- msGridRow: 1,
697
- msGridRowSpan: 1,
698
- msGridColumn: 1,
699
- msGridColumnSpan: 1,
700
- fontWeight: 1,
701
- lineHeight: 1,
702
- opacity: 1,
703
- order: 1,
704
- orphans: 1,
705
- tabSize: 1,
706
- widows: 1,
707
- zIndex: 1,
708
- zoom: 1,
709
- WebkitLineClamp: 1,
710
- fillOpacity: 1,
711
- floodOpacity: 1,
712
- stopOpacity: 1,
713
- strokeDasharray: 1,
714
- strokeDashoffset: 1,
715
- strokeMiterlimit: 1,
716
- strokeOpacity: 1,
717
- strokeWidth: 1
718
- };
719
- function memoize(fn) {
720
- var cache = {};
721
- return function (arg) {
722
- if (cache[arg] === undefined) cache[arg] = fn(arg);
723
- return cache[arg];
724
- };
725
- }
726
- var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/;
727
- var index = memoize(function (prop) {
728
- return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111 && prop.charCodeAt(1) === 110 && prop.charCodeAt(2) < 91;
729
- });
730
- var REACT_STATICS = {
731
- childContextTypes: true,
732
- contextType: true,
733
- contextTypes: true,
734
- defaultProps: true,
735
- displayName: true,
736
- getDefaultProps: true,
737
- getDerivedStateFromError: true,
738
- getDerivedStateFromProps: true,
739
- mixins: true,
740
- propTypes: true,
741
- type: true
742
- };
743
- var KNOWN_STATICS = {
744
- name: true,
745
- length: true,
746
- prototype: true,
747
- caller: true,
748
- callee: true,
749
- arguments: true,
750
- arity: true
751
- };
752
- var FORWARD_REF_STATICS = {
753
- '$$typeof': true,
754
- render: true,
755
- defaultProps: true,
756
- displayName: true,
757
- propTypes: true
758
- };
759
- var MEMO_STATICS = {
760
- '$$typeof': true,
761
- compare: true,
762
- defaultProps: true,
763
- displayName: true,
764
- propTypes: true,
765
- type: true
766
- };
767
- var TYPE_STATICS = {};
768
- TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
769
- TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
770
- function getStatics(component) {
771
- if (reactIs.isMemo(component)) {
772
- return MEMO_STATICS;
773
- }
774
- return TYPE_STATICS[component['$$typeof']] || REACT_STATICS;
775
- }
776
- var defineProperty = Object.defineProperty;
777
- var getOwnPropertyNames = Object.getOwnPropertyNames;
778
- var getOwnPropertySymbols = Object.getOwnPropertySymbols;
779
- var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
780
- var getPrototypeOf = Object.getPrototypeOf;
781
- var objectPrototype = Object.prototype;
782
- function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
783
- if (typeof sourceComponent !== 'string') {
784
- if (objectPrototype) {
785
- var inheritedComponent = getPrototypeOf(sourceComponent);
786
- if (inheritedComponent && inheritedComponent !== objectPrototype) {
787
- hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);
788
- }
789
- }
790
- var keys = getOwnPropertyNames(sourceComponent);
791
- if (getOwnPropertySymbols) {
792
- keys = keys.concat(getOwnPropertySymbols(sourceComponent));
793
- }
794
- var targetStatics = getStatics(targetComponent);
795
- var sourceStatics = getStatics(sourceComponent);
796
- for (var i = 0; i < keys.length; ++i) {
797
- var key = keys[i];
798
- if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {
799
- var descriptor = getOwnPropertyDescriptor(sourceComponent, key);
800
- try {
801
- defineProperty(targetComponent, key, descriptor);
802
- } catch (e) {}
803
- }
804
- }
805
- }
806
- return targetComponent;
807
- }
808
- var hoistNonReactStatics_cjs = hoistNonReactStatics;
809
- const r = _dll_react;
810
- const {useContext: s} = _dll_react;
811
- const {useRef: c} = _dll_react;
812
- const {createElement: u} = _dll_react;
813
- const {useDebugValue: l} = _dll_react;
814
- function v() {
815
- return (v = Object.assign || (function (e) {
816
- for (var t = 1; t < arguments.length; t++) {
817
- var n = arguments[t];
818
- for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
819
- }
820
- return e;
821
- })).apply(this, arguments);
822
- }
823
- var g = function (e, t) {
824
- for (var n = [e[0]], r = 0, o = t.length; r < o; r += 1) n.push(t[r], e[r + 1]);
825
- return n;
826
- }, S = function (t) {
827
- return null !== t && "object" == typeof t && "[object Object]" === (t.toString ? t.toString() : Object.prototype.toString.call(t)) && !reactIs_28(t);
828
- }, w = Object.freeze([]), E = Object.freeze({});
829
- function b(e) {
830
- return "function" == typeof e;
831
- }
832
- function _(e) {
833
- return "string" == typeof e && e || e.displayName || e.name || "Component";
834
- }
835
- function N(e) {
836
- return e && "string" == typeof e.styledComponentId;
837
- }
838
- var A = "undefined" != typeof process && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled", I = "undefined" != typeof window && ("HTMLElement" in window), P = Boolean("boolean" == typeof SC_DISABLE_SPEEDY ? SC_DISABLE_SPEEDY : "undefined" != typeof process && void 0 !== process.env.REACT_APP_SC_DISABLE_SPEEDY && "" !== process.env.REACT_APP_SC_DISABLE_SPEEDY ? "false" !== process.env.REACT_APP_SC_DISABLE_SPEEDY && process.env.REACT_APP_SC_DISABLE_SPEEDY : "undefined" != typeof process && void 0 !== process.env.SC_DISABLE_SPEEDY && "" !== process.env.SC_DISABLE_SPEEDY ? "false" !== process.env.SC_DISABLE_SPEEDY && process.env.SC_DISABLE_SPEEDY : "production" !== "development"), R = {
839
- 1: "Cannot create styled-component for component: %s.\n\n",
840
- 2: "Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n",
841
- 3: "Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",
842
- 4: "The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n",
843
- 5: "The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n",
844
- 6: "Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n",
845
- 7: 'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',
846
- 8: 'ThemeProvider: Please make your "theme" prop an object.\n\n',
847
- 9: "Missing document `<head>`\n\n",
848
- 10: "Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n",
849
- 11: "_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n",
850
- 12: "It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",
851
- 13: "%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n",
852
- 14: 'ThemeProvider: "theme" prop is required.\n\n',
853
- 15: "A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",
854
- 16: "Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n",
855
- 17: "CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n"
856
- };
857
- function D() {
858
- for (var e = arguments.length <= 0 ? void 0 : arguments[0], t = [], n = 1, r = arguments.length; n < r; n += 1) t.push(n < 0 || arguments.length <= n ? void 0 : arguments[n]);
859
- return (t.forEach(function (t) {
860
- e = e.replace(/%[a-z]/, t);
861
- }), e);
862
- }
863
- function j(e) {
864
- for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++) n[r - 1] = arguments[r];
865
- throw new Error(D.apply(void 0, [R[e]].concat(n)).trim());
866
- }
867
- var T = (function () {
868
- function e(e) {
869
- (this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = e);
870
- }
871
- var t = e.prototype;
872
- return (t.indexOfGroup = function (e) {
873
- for (var t = 0, n = 0; n < e; n++) t += this.groupSizes[n];
874
- return t;
875
- }, t.insertRules = function (e, t) {
876
- if (e >= this.groupSizes.length) {
877
- for (var n = this.groupSizes, r = n.length, o = r; e >= o; ) (o <<= 1) < 0 && j(16, "" + e);
878
- (this.groupSizes = new Uint32Array(o), this.groupSizes.set(n), this.length = o);
879
- for (var s = r; s < o; s++) this.groupSizes[s] = 0;
880
- }
881
- for (var i = this.indexOfGroup(e + 1), a = 0, c = t.length; a < c; a++) this.tag.insertRule(i, t[a]) && (this.groupSizes[e]++, i++);
882
- }, t.clearGroup = function (e) {
883
- if (e < this.length) {
884
- var t = this.groupSizes[e], n = this.indexOfGroup(e), r = n + t;
885
- this.groupSizes[e] = 0;
886
- for (var o = n; o < r; o++) this.tag.deleteRule(n);
887
- }
888
- }, t.getGroup = function (e) {
889
- var t = "";
890
- if (e >= this.length || 0 === this.groupSizes[e]) return t;
891
- for (var n = this.groupSizes[e], r = this.indexOfGroup(e), o = r + n, s = r; s < o; s++) t += this.tag.getRule(s) + "/*!sc*/\n";
892
- return t;
893
- }, e);
894
- })(), k = new Map(), x = new Map(), V = 1, B = function (e) {
895
- if (k.has(e)) return k.get(e);
896
- for (; x.has(V); ) V++;
897
- var t = V++;
898
- return (((0 | t) < 0 || t > 1 << 30) && j(16, "" + t), k.set(e, t), x.set(t, e), t);
899
- }, M = function (e) {
900
- return x.get(e);
901
- }, z = function (e, t) {
902
- (k.set(e, t), x.set(t, e));
903
- }, L = "style[" + A + '][data-styled-version="5.2.1"]', G = new RegExp("^" + A + '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'), F = function (e, t, n) {
904
- for (var r, o = n.split(","), s = 0, i = o.length; s < i; s++) (r = o[s]) && e.registerName(t, r);
905
- }, Y = function (e, t) {
906
- for (var n = t.innerHTML.split("/*!sc*/\n"), r = [], o = 0, s = n.length; o < s; o++) {
907
- var i = n[o].trim();
908
- if (i) {
909
- var a = i.match(G);
910
- if (a) {
911
- var c = 0 | parseInt(a[1], 10), u = a[2];
912
- (0 !== c && (z(u, c), F(e, u, a[3]), e.getTag().insertRules(c, r)), r.length = 0);
913
- } else r.push(i);
914
- }
915
- }
916
- }, q = function () {
917
- return "undefined" != typeof __webpack_nonce__ ? __webpack_nonce__ : null;
918
- }, H = function (e) {
919
- var t = document.head, n = e || t, r = document.createElement("style"), o = (function (e) {
920
- for (var t = e.childNodes, n = t.length; n >= 0; n--) {
921
- var r = t[n];
922
- if (r && 1 === r.nodeType && r.hasAttribute(A)) return r;
923
- }
924
- })(n), s = void 0 !== o ? o.nextSibling : null;
925
- (r.setAttribute(A, "active"), r.setAttribute("data-styled-version", "5.2.1"));
926
- var i = q();
927
- return (i && r.setAttribute("nonce", i), n.insertBefore(r, s), r);
928
- }, $ = (function () {
929
- function e(e) {
930
- var t = this.element = H(e);
931
- (t.appendChild(document.createTextNode("")), this.sheet = (function (e) {
932
- if (e.sheet) return e.sheet;
933
- for (var t = document.styleSheets, n = 0, r = t.length; n < r; n++) {
934
- var o = t[n];
935
- if (o.ownerNode === e) return o;
936
- }
937
- j(17);
938
- })(t), this.length = 0);
939
- }
940
- var t = e.prototype;
941
- return (t.insertRule = function (e, t) {
942
- try {
943
- return (this.sheet.insertRule(t, e), this.length++, !0);
944
- } catch (e) {
945
- return !1;
946
- }
947
- }, t.deleteRule = function (e) {
948
- (this.sheet.deleteRule(e), this.length--);
949
- }, t.getRule = function (e) {
950
- var t = this.sheet.cssRules[e];
951
- return void 0 !== t && "string" == typeof t.cssText ? t.cssText : "";
952
- }, e);
953
- })(), W = (function () {
954
- function e(e) {
955
- var t = this.element = H(e);
956
- (this.nodes = t.childNodes, this.length = 0);
957
- }
958
- var t = e.prototype;
959
- return (t.insertRule = function (e, t) {
960
- if (e <= this.length && e >= 0) {
961
- var n = document.createTextNode(t), r = this.nodes[e];
962
- return (this.element.insertBefore(n, r || null), this.length++, !0);
963
- }
964
- return !1;
965
- }, t.deleteRule = function (e) {
966
- (this.element.removeChild(this.nodes[e]), this.length--);
967
- }, t.getRule = function (e) {
968
- return e < this.length ? this.nodes[e].textContent : "";
969
- }, e);
970
- })(), U = (function () {
971
- function e(e) {
972
- (this.rules = [], this.length = 0);
973
- }
974
- var t = e.prototype;
975
- return (t.insertRule = function (e, t) {
976
- return e <= this.length && (this.rules.splice(e, 0, t), this.length++, !0);
977
- }, t.deleteRule = function (e) {
978
- (this.rules.splice(e, 1), this.length--);
979
- }, t.getRule = function (e) {
980
- return e < this.length ? this.rules[e] : "";
981
- }, e);
982
- })(), J = I, X = {
983
- isServer: !I,
984
- useCSSOMInjection: !P
985
- }, Z = (function () {
986
- function e(e, t, n) {
987
- (void 0 === e && (e = E), void 0 === t && (t = {}), this.options = v({}, X, {}, e), this.gs = t, this.names = new Map(n), !this.options.isServer && I && J && (J = !1, (function (e) {
988
- for (var t = document.querySelectorAll(L), n = 0, r = t.length; n < r; n++) {
989
- var o = t[n];
990
- o && "active" !== o.getAttribute(A) && (Y(e, o), o.parentNode && o.parentNode.removeChild(o));
991
- }
992
- })(this)));
993
- }
994
- e.registerId = function (e) {
995
- return B(e);
996
- };
997
- var t = e.prototype;
998
- return (t.reconstructWithOptions = function (t, n) {
999
- return (void 0 === n && (n = !0), new e(v({}, this.options, {}, t), this.gs, n && this.names || void 0));
1000
- }, t.allocateGSInstance = function (e) {
1001
- return this.gs[e] = (this.gs[e] || 0) + 1;
1002
- }, t.getTag = function () {
1003
- return this.tag || (this.tag = (n = (t = this.options).isServer, r = t.useCSSOMInjection, o = t.target, e = n ? new U(o) : r ? new $(o) : new W(o), new T(e)));
1004
- var e, t, n, r, o;
1005
- }, t.hasNameForId = function (e, t) {
1006
- return this.names.has(e) && this.names.get(e).has(t);
1007
- }, t.registerName = function (e, t) {
1008
- if ((B(e), this.names.has(e))) this.names.get(e).add(t); else {
1009
- var n = new Set();
1010
- (n.add(t), this.names.set(e, n));
1011
- }
1012
- }, t.insertRules = function (e, t, n) {
1013
- (this.registerName(e, t), this.getTag().insertRules(B(e), n));
1014
- }, t.clearNames = function (e) {
1015
- this.names.has(e) && this.names.get(e).clear();
1016
- }, t.clearRules = function (e) {
1017
- (this.getTag().clearGroup(B(e)), this.clearNames(e));
1018
- }, t.clearTag = function () {
1019
- this.tag = void 0;
1020
- }, t.toString = function () {
1021
- return (function (e) {
1022
- for (var t = e.getTag(), n = t.length, r = "", o = 0; o < n; o++) {
1023
- var s = M(o);
1024
- if (void 0 !== s) {
1025
- var i = e.names.get(s), a = t.getGroup(o);
1026
- if (void 0 !== i && 0 !== a.length) {
1027
- var c = A + ".g" + o + '[id="' + s + '"]', u = "";
1028
- (void 0 !== i && i.forEach(function (e) {
1029
- e.length > 0 && (u += e + ",");
1030
- }), r += "" + a + c + '{content:"' + u + '"}/*!sc*/\n');
1031
- }
1032
- }
1033
- }
1034
- return r;
1035
- })(this);
1036
- }, e);
1037
- })(), K = /(a)(d)/gi, Q = function (e) {
1038
- return String.fromCharCode(e + (e > 25 ? 39 : 97));
1039
- };
1040
- function ee(e) {
1041
- var t, n = "";
1042
- for (t = Math.abs(e); t > 52; t = t / 52 | 0) n = Q(t % 52) + n;
1043
- return (Q(t % 52) + n).replace(K, "$1-$2");
1044
- }
1045
- var te = function (e, t) {
1046
- for (var n = t.length; n; ) e = 33 * e ^ t.charCodeAt(--n);
1047
- return e;
1048
- }, ne = function (e) {
1049
- return te(5381, e);
1050
- };
1051
- var oe = ne("5.2.1"), se = (function () {
1052
- function e(e, t, n) {
1053
- (this.rules = e, this.staticRulesId = "", this.isStatic = "production" === "development", this.componentId = t, this.baseHash = te(oe, t), this.baseStyle = n, Z.registerId(t));
1054
- }
1055
- return (e.prototype.generateAndInjectStyles = function (e, t, n) {
1056
- var r = this.componentId, o = [];
1057
- if ((this.baseStyle && o.push(this.baseStyle.generateAndInjectStyles(e, t, n)), this.isStatic && !n.hash)) if (this.staticRulesId && t.hasNameForId(r, this.staticRulesId)) o.push(this.staticRulesId); else {
1058
- var s = Ne(this.rules, e, t, n).join(""), i = ee(te(this.baseHash, s.length) >>> 0);
1059
- if (!t.hasNameForId(r, i)) {
1060
- var a = n(s, "." + i, void 0, r);
1061
- t.insertRules(r, i, a);
1062
- }
1063
- (o.push(i), this.staticRulesId = i);
1064
- } else {
1065
- for (var c = this.rules.length, u = te(this.baseHash, n.hash), l = "", d = 0; d < c; d++) {
1066
- var h = this.rules[d];
1067
- if ("string" == typeof h) (l += h, u = te(u, h + d)); else if (h) {
1068
- var p = Ne(h, e, t, n), f = Array.isArray(p) ? p.join("") : p;
1069
- (u = te(u, f + d), l += f);
1070
- }
1071
- }
1072
- if (l) {
1073
- var m = ee(u >>> 0);
1074
- if (!t.hasNameForId(r, m)) {
1075
- var y = n(l, "." + m, void 0, r);
1076
- t.insertRules(r, m, y);
1077
- }
1078
- o.push(m);
1079
- }
1080
- }
1081
- return o.join(" ");
1082
- }, e);
1083
- })(), ie = /^\s*\/\/.*$/gm, ae = [":", "[", ".", "#"];
1084
- function ce(e) {
1085
- var t, n, r, o, s = void 0 === e ? E : e, i = s.options, a = void 0 === i ? E : i, c = s.plugins, u = void 0 === c ? w : c, l = new stylis_min(a), d = [], h = (function (e) {
1086
- function t(t) {
1087
- if (t) try {
1088
- e(t + "}");
1089
- } catch (e) {}
1090
- }
1091
- return function (n, r, o, s, i, a, c, u, l, d) {
1092
- switch (n) {
1093
- case 1:
1094
- if (0 === l && 64 === r.charCodeAt(0)) return (e(r + ";"), "");
1095
- break;
1096
- case 2:
1097
- if (0 === u) return r + "/*|*/";
1098
- break;
1099
- case 3:
1100
- switch (u) {
1101
- case 102:
1102
- case 112:
1103
- return (e(o[0] + r), "");
1104
- default:
1105
- return r + (0 === d ? "/*|*/" : "");
1106
- }
1107
- case -2:
1108
- r.split("/*|*/}").forEach(t);
1109
- }
1110
- };
1111
- })(function (e) {
1112
- d.push(e);
1113
- }), f = function (e, r, s) {
1114
- return 0 === r && ae.includes(s[n.length]) || s.match(o) ? e : "." + t;
1115
- };
1116
- function m(e, s, i, a) {
1117
- void 0 === a && (a = "&");
1118
- var c = e.replace(ie, ""), u = s && i ? i + " " + s + " { " + c + " }" : c;
1119
- return (t = a, n = s, r = new RegExp("\\" + n + "\\b", "g"), o = new RegExp("(\\" + n + "\\b){2,}"), l(i || !s ? "" : s, u));
1120
- }
1121
- return (l.use([].concat(u, [function (e, t, o) {
1122
- 2 === e && o.length && o[0].lastIndexOf(n) > 0 && (o[0] = o[0].replace(r, f));
1123
- }, h, function (e) {
1124
- if (-2 === e) {
1125
- var t = d;
1126
- return (d = [], t);
1127
- }
1128
- }])), m.hash = u.length ? u.reduce(function (e, t) {
1129
- return (t.name || j(15), te(e, t.name));
1130
- }, 5381).toString() : "", m);
1131
- }
1132
- var ue = r.createContext();
1133
- ue.Consumer;
1134
- var de = r.createContext(), he = (de.Consumer, new Z()), pe = ce();
1135
- function fe() {
1136
- return s(ue) || he;
1137
- }
1138
- function me() {
1139
- return s(de) || pe;
1140
- }
1141
- var ve = (function () {
1142
- function e(e, t) {
1143
- var n = this;
1144
- (this.inject = function (e, t) {
1145
- void 0 === t && (t = pe);
1146
- var r = n.name + t.hash;
1147
- e.hasNameForId(n.id, r) || e.insertRules(n.id, r, t(n.rules, r, "@keyframes"));
1148
- }, this.toString = function () {
1149
- return j(12, String(n.name));
1150
- }, this.name = e, this.id = "sc-keyframes-" + e, this.rules = t);
1151
- }
1152
- return (e.prototype.getName = function (e) {
1153
- return (void 0 === e && (e = pe), this.name + e.hash);
1154
- }, e);
1155
- })(), ge = /([A-Z])/, Se = /([A-Z])/g, we = /^ms-/, Ee = function (e) {
1156
- return "-" + e.toLowerCase();
1157
- };
1158
- function be(e) {
1159
- return ge.test(e) ? e.replace(Se, Ee).replace(we, "-ms-") : e;
1160
- }
1161
- var _e = function (e) {
1162
- return null == e || !1 === e || "" === e;
1163
- };
1164
- function Ne(e, n, r, o) {
1165
- if (Array.isArray(e)) {
1166
- for (var s, i = [], a = 0, c = e.length; a < c; a += 1) "" !== (s = Ne(e[a], n, r, o)) && (Array.isArray(s) ? i.push.apply(i, s) : i.push(s));
1167
- return i;
1168
- }
1169
- if (_e(e)) return "";
1170
- if (N(e)) return "." + e.styledComponentId;
1171
- if (b(e)) {
1172
- if ("function" != typeof (l = e) || l.prototype && l.prototype.isReactComponent || !n) return e;
1173
- var u = e(n);
1174
- return (reactIs_18(u) && console.warn(_(e) + " is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details."), Ne(u, n, r, o));
1175
- }
1176
- var l;
1177
- return e instanceof ve ? r ? (e.inject(r, o), e.getName(o)) : e : S(e) ? (function e(t, n) {
1178
- var r, o, s = [];
1179
- for (var i in t) t.hasOwnProperty(i) && !_e(t[i]) && (S(t[i]) ? s.push.apply(s, e(t[i], i)) : b(t[i]) ? s.push(be(i) + ":", t[i], ";") : s.push(be(i) + ": " + (r = i, null == (o = t[i]) || "boolean" == typeof o || "" === o ? "" : "number" != typeof o || 0 === o || (r in unitlessKeys) ? String(o).trim() : o + "px") + ";"));
1180
- return n ? [n + " {"].concat(s, ["}"]) : s;
1181
- })(e) : e.toString();
1182
- }
1183
- function Ae(e) {
1184
- for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++) n[r - 1] = arguments[r];
1185
- return b(e) || S(e) ? Ne(g(w, [e].concat(n))) : 0 === n.length && 1 === e.length && "string" == typeof e[0] ? e : Ne(g(e, n));
1186
- }
1187
- var Ce = /invalid hook call/i, Ie = new Set(), Pe = function (e, t) {
1188
- {
1189
- var n = "The component " + e + (t ? ' with the id of "' + t + '"' : "") + " has been created dynamically.\nYou may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.";
1190
- try {
1191
- (c(), Ie.has(n) || (console.warn(n), Ie.add(n)));
1192
- } catch (e) {
1193
- Ce.test(e.message) && Ie.delete(n);
1194
- }
1195
- }
1196
- }, Oe = function (e, t, n) {
1197
- return (void 0 === n && (n = E), e.theme !== n.theme && e.theme || t || n.theme);
1198
- }, Re = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, De = /(^-|-$)/g;
1199
- function je(e) {
1200
- return e.replace(Re, "-").replace(De, "");
1201
- }
1202
- var Te = function (e) {
1203
- return ee(ne(e) >>> 0);
1204
- };
1205
- function ke(e) {
1206
- return "string" == typeof e && e.charAt(0) === e.charAt(0).toLowerCase();
1207
- }
1208
- var xe = function (e) {
1209
- return "function" == typeof e || "object" == typeof e && null !== e && !Array.isArray(e);
1210
- }, Ve = function (e) {
1211
- return "__proto__" !== e && "constructor" !== e && "prototype" !== e;
1212
- };
1213
- function Be(e, t, n) {
1214
- var r = e[n];
1215
- xe(t) && xe(r) ? Me(r, t) : e[n] = t;
1216
- }
1217
- function Me(e) {
1218
- for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++) n[r - 1] = arguments[r];
1219
- for (var o = 0, s = n; o < s.length; o++) {
1220
- var i = s[o];
1221
- if (xe(i)) for (var a in i) Ve(a) && Be(e, i[a], a);
1222
- }
1223
- return e;
1224
- }
1225
- var ze = r.createContext();
1226
- ze.Consumer;
1227
- var Fe = {};
1228
- function Ye(e, t, n) {
1229
- var o = N(e), i = !ke(e), a = t.attrs, c = void 0 === a ? w : a, d = t.componentId, h = void 0 === d ? (function (e, t) {
1230
- var n = "string" != typeof e ? "sc" : je(e);
1231
- Fe[n] = (Fe[n] || 0) + 1;
1232
- var r = n + "-" + Te("5.2.1" + n + Fe[n]);
1233
- return t ? t + "-" + r : r;
1234
- })(t.displayName, t.parentComponentId) : d, p = t.displayName, f = void 0 === p ? (function (e) {
1235
- return ke(e) ? "styled." + e : "Styled(" + _(e) + ")";
1236
- })(e) : p, g = t.displayName && t.componentId ? je(t.displayName) + "-" + t.componentId : t.componentId || h, S = o && e.attrs ? Array.prototype.concat(e.attrs, c).filter(Boolean) : c, A = t.shouldForwardProp;
1237
- o && e.shouldForwardProp && (A = t.shouldForwardProp ? function (n, r) {
1238
- return e.shouldForwardProp(n, r) && t.shouldForwardProp(n, r);
1239
- } : e.shouldForwardProp);
1240
- var C, I = new se(n, g, o ? e.componentStyle : void 0), P = I.isStatic && 0 === c.length, O = function (e, t) {
1241
- return (function (e, t, n, r) {
1242
- var o = e.attrs, i = e.componentStyle, a = e.defaultProps, c = e.foldedComponentIds, d = e.shouldForwardProp, h = e.styledComponentId, p = e.target;
1243
- l(h);
1244
- var f = (function (e, t, n) {
1245
- void 0 === e && (e = E);
1246
- var r = v({}, t, {
1247
- theme: e
1248
- }), o = {};
1249
- return (n.forEach(function (e) {
1250
- var t, n, s, i = e;
1251
- for (t in (b(i) && (i = i(r)), i)) r[t] = o[t] = "className" === t ? (n = o[t], s = i[t], n && s ? n + " " + s : n || s) : i[t];
1252
- }), [r, o]);
1253
- })(Oe(t, s(ze), a) || E, t, o), y = f[0], g = f[1], S = (function (e, t, n, r) {
1254
- var o = fe(), s = me(), i = t ? e.generateAndInjectStyles(E, o, s) : e.generateAndInjectStyles(n, o, s);
1255
- return (l(i), !t && r && r(i), i);
1256
- })(i, r, y, e.warnTooManyClasses), w = n, _ = g.$as || t.$as || g.as || t.as || p, N = ke(_), A = g !== t ? v({}, t, {}, g) : t, C = {};
1257
- for (var I in A) "$" !== I[0] && "as" !== I && ("forwardedAs" === I ? C.as = A[I] : (d ? d(I, index) : !N || index(I)) && (C[I] = A[I]));
1258
- return (t.style && g.style !== t.style && (C.style = v({}, t.style, {}, g.style)), C.className = Array.prototype.concat(c, h, S !== h ? S : null, t.className, g.className).filter(Boolean).join(" "), C.ref = w, u(_, C));
1259
- })(C, e, t, P);
1260
- };
1261
- return (O.displayName = f, (C = r.forwardRef(O)).attrs = S, C.componentStyle = I, C.displayName = f, C.shouldForwardProp = A, C.foldedComponentIds = o ? Array.prototype.concat(e.foldedComponentIds, e.styledComponentId) : w, C.styledComponentId = g, C.target = o ? e.target : e, C.withComponent = function (e) {
1262
- var r = t.componentId, o = (function (e, t) {
1263
- if (null == e) return {};
1264
- var n, r, o = {}, s = Object.keys(e);
1265
- for (r = 0; r < s.length; r++) (n = s[r], t.indexOf(n) >= 0 || (o[n] = e[n]));
1266
- return o;
1267
- })(t, ["componentId"]), s = r && r + "-" + (ke(e) ? e : je(_(e)));
1268
- return Ye(e, v({}, o, {
1269
- attrs: S,
1270
- componentId: s
1271
- }), n);
1272
- }, Object.defineProperty(C, "defaultProps", {
1273
- get: function () {
1274
- return this._foldedDefaultProps;
1275
- },
1276
- set: function (t) {
1277
- this._foldedDefaultProps = o ? Me({}, e.defaultProps, t) : t;
1278
- }
1279
- }), (Pe(f, g), C.warnTooManyClasses = (function (e, t) {
1280
- var n = {}, r = !1;
1281
- return function (o) {
1282
- if (!r && (n[o] = !0, Object.keys(n).length >= 200)) {
1283
- var s = t ? ' with the id of "' + t + '"' : "";
1284
- (console.warn("Over 200 classes were generated for component " + e + s + ".\nConsider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"), r = !0, n = {});
1285
- }
1286
- };
1287
- })(f, g)), C.toString = function () {
1288
- return "." + C.styledComponentId;
1289
- }, i && hoistNonReactStatics_cjs(C, e, {
1290
- attrs: !0,
1291
- componentStyle: !0,
1292
- displayName: !0,
1293
- foldedComponentIds: !0,
1294
- shouldForwardProp: !0,
1295
- styledComponentId: !0,
1296
- target: !0,
1297
- withComponent: !0
1298
- }), C);
1299
- }
1300
- var qe = function (e) {
1301
- return (function e(t, r, o) {
1302
- if ((void 0 === o && (o = E), !reactIs_27(r))) return j(1, String(r));
1303
- var s = function () {
1304
- return t(r, o, Ae.apply(void 0, arguments));
1305
- };
1306
- return (s.withConfig = function (n) {
1307
- return e(t, r, v({}, o, {}, n));
1308
- }, s.attrs = function (n) {
1309
- return e(t, r, v({}, o, {
1310
- attrs: Array.prototype.concat(o.attrs, n).filter(Boolean)
1311
- }));
1312
- }, s);
1313
- })(Ye, e);
1314
- };
1315
- ["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "big", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "marquee", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "title", "tr", "track", "u", "ul", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "tspan"].forEach(function (e) {
1316
- qe[e] = qe(e);
1317
- });
1318
- ("undefined" != typeof navigator && "ReactNative" === navigator.product && console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native"), (window["__styled-components-init__"] = window["__styled-components-init__"] || 0, 1 === window["__styled-components-init__"] && console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://s-c.sh/2BAXzed for more info."), window["__styled-components-init__"] += 1));
1319
- const React = _dll_react;
1320
- const PropTypes = _dll_prop_types;
1321
- const {withStyles: withStyles} = _dll_material_ui__core_styles;
1322
- const {color: color} = _dll_pie_lib__render_ui;
1323
- const {Radio: Radio} = _dll_material_ui__core;
1324
- const _jsxFileName = "/home/ede/dev/github/pie-framework/pie-elements/node_modules/@pie-ui/matrix/src/ChoiceInput.jsx";
1325
- const radioStyles = {
1326
- root: {
1327
- color: `var(--choice-input-color, ${color.text()})`
1328
- },
1329
- checked: {
1330
- color: `var(--choice-input-selected-color, ${color.text()})`
1331
- }
1332
- };
1333
- const ChoiceInput = withStyles(radioStyles)(props => {
1334
- const {disabled, checked, matrixKey, matrixValue, classes, onChange} = props;
1335
- const onChangeWrapper = () => {
1336
- if (disabled) {
1337
- return;
1338
- }
1339
- onChange({
1340
- matrixValue,
1341
- matrixKey
1342
- });
1343
- };
1344
- return React.createElement(Radio, {
1345
- checked: checked,
1346
- onChange: onChangeWrapper,
1347
- disabled: disabled,
1348
- classes: {
1349
- root: classes.root,
1350
- checked: classes.checked
1351
- },
1352
- __self: undefined,
1353
- __source: {
1354
- fileName: _jsxFileName,
1355
- lineNumber: 31
1356
- }
1357
- });
1358
- });
1359
- ChoiceInput.propTypes = {
1360
- checked: PropTypes.bool.isRequired,
1361
- disabled: PropTypes.bool.isRequired,
1362
- matrixValue: PropTypes.number.isRequired,
1363
- matrixKey: PropTypes.string.isRequired,
1364
- classes: PropTypes.object,
1365
- onChange: PropTypes.func.isRequired
1366
- };
1367
- ChoiceInput.defaultProps = {
1368
- checked: false,
1369
- disabled: false
1370
- };
1371
- const React$1 = _dll_react;
1372
- const PropTypes$1 = _dll_prop_types;
1373
- const {Collapsible: Collapsible} = _dll_pie_lib__render_ui;
1374
- const _jsxFileName$1 = "/home/ede/dev/github/pie-framework/pie-elements/node_modules/@pie-ui/matrix/src/Matrix.jsx";
1375
- const PromptWrapper = qe.div`
1376
- vertical-align: middle;
1377
- color: var(--pie-primary-text, var(--pie-text, #000000));
1378
- `;
1379
- const MatrixWrapper = qe.div`
1380
- font-family: Roboto, Arial, Helvetica, sans-serif;
1381
- `;
1382
- const MatrixGridWrapper = qe.div`
1383
- display: grid;
1384
- grid-template-columns: ${props => props.gridTemplateColumns};
1385
- grid-column-gap: 30px;
1386
- grid-row-gap: 20px;
1387
- margin-top: 40px;
1388
- `;
1389
- const MatrixGridItem = qe.div`
1390
- align-self: center;
1391
- justify-self: center;
1392
- white-space: nowrap;
1393
- `;
1394
- const Matrix = props => {
1395
- const {disabled, prompt, onSessionChange, columnLabels, matrixValues, rowLabels, session, teacherInstructions} = props;
1396
- const gridMatrixItems = [];
1397
- for (let rowIndex = 0; rowIndex < rowLabels.length + 1; rowIndex++) {
1398
- for (let columnIndex = 0; columnIndex < columnLabels.length + 1; columnIndex++) {
1399
- let gridMatrixItem;
1400
- if (rowIndex === 0 && columnIndex === 0) {
1401
- gridMatrixItem = null;
1402
- } else if (rowIndex === 0) {
1403
- gridMatrixItem = columnLabels[columnIndex - 1];
1404
- } else if (columnIndex === 0) {
1405
- gridMatrixItem = rowLabels[rowIndex - 1];
1406
- } else {
1407
- const matrixKey = `${rowIndex - 1}-${columnIndex - 1}`;
1408
- const matrixValue = matrixValues[matrixKey];
1409
- gridMatrixItem = React$1.createElement(ChoiceInput, {
1410
- matrixKey: matrixKey,
1411
- matrixValue: matrixValue || 0,
1412
- disabled: disabled,
1413
- onChange: onSessionChange,
1414
- checked: session.value && session.value.hasOwnProperty(matrixKey),
1415
- __self: undefined,
1416
- __source: {
1417
- fileName: _jsxFileName$1,
1418
- lineNumber: 58
1419
- }
1420
- });
1421
- }
1422
- gridMatrixItems.push(gridMatrixItem);
1423
- }
1424
- }
1425
- const gridTemplateColumns = [...columnLabels, {}].map(() => 'min-content').join(' ');
1426
- return React$1.createElement(MatrixWrapper, {
1427
- __self: undefined,
1428
- __source: {
1429
- fileName: _jsxFileName$1,
1430
- lineNumber: 72
1431
- }
1432
- }, teacherInstructions && React$1.createElement(Collapsible, {
1433
- labels: {
1434
- hidden: 'Show Teacher Instructions',
1435
- visible: 'Hide Teacher Instructions'
1436
- },
1437
- __self: undefined,
1438
- __source: {
1439
- fileName: _jsxFileName$1,
1440
- lineNumber: 74
1441
- }
1442
- }, React$1.createElement('div', {
1443
- dangerouslySetInnerHTML: {
1444
- __html: teacherInstructions
1445
- },
1446
- __self: undefined,
1447
- __source: {
1448
- fileName: _jsxFileName$1,
1449
- lineNumber: 80
1450
- }
1451
- })), React$1.createElement('br', {
1452
- __self: undefined,
1453
- __source: {
1454
- fileName: _jsxFileName$1,
1455
- lineNumber: 83
1456
- }
1457
- }), React$1.createElement('br', {
1458
- __self: undefined,
1459
- __source: {
1460
- fileName: _jsxFileName$1,
1461
- lineNumber: 84
1462
- }
1463
- }), React$1.createElement(PromptWrapper, {
1464
- dangerouslySetInnerHTML: {
1465
- __html: prompt
1466
- },
1467
- __self: undefined,
1468
- __source: {
1469
- fileName: _jsxFileName$1,
1470
- lineNumber: 85
1471
- }
1472
- }), React$1.createElement(MatrixGridWrapper, {
1473
- gridTemplateColumns: gridTemplateColumns,
1474
- __self: undefined,
1475
- __source: {
1476
- fileName: _jsxFileName$1,
1477
- lineNumber: 86
1478
- }
1479
- }, gridMatrixItems.map((gridMatrixItem, gridMatrixIndex) => {
1480
- return React$1.createElement(MatrixGridItem, {
1481
- key: `${gridMatrixIndex}`,
1482
- __self: undefined,
1483
- __source: {
1484
- fileName: _jsxFileName$1,
1485
- lineNumber: 89
1486
- }
1487
- }, gridMatrixItem);
1488
- })));
1489
- };
1490
- Matrix.propTypes = {
1491
- prompt: PropTypes$1.string,
1492
- teacherInstructions: PropTypes$1.string,
1493
- session: PropTypes$1.object,
1494
- matrixValues: PropTypes$1.object,
1495
- rowLabels: PropTypes$1.arrayOf(PropTypes$1.string),
1496
- columnLabels: PropTypes$1.arrayOf(PropTypes$1.string),
1497
- disabled: PropTypes$1.bool.isRequired,
1498
- onSessionChange: PropTypes$1.func.isRequired
1499
- };
1500
- Matrix.defaultProps = {
1501
- session: {
1502
- value: {}
1503
- }
1504
- };
1505
- const React$2 = _dll_react;
1506
- const PropTypes$2 = _dll_prop_types;
1507
- const {PreviewLayout: PreviewLayout} = _dll_pie_lib__render_ui;
1508
- const _jsxFileName$2 = "/home/ede/dev/github/pie-framework/pie-elements/node_modules/@pie-ui/matrix/src/Main.jsx";
1509
- class Main extends React$2.Component {
1510
- static __initStatic() {
1511
- this.propTypes = {
1512
- model: PropTypes$2.object,
1513
- session: PropTypes$2.object,
1514
- onSessionChange: PropTypes$2.func
1515
- };
1516
- }
1517
- static __initStatic2() {
1518
- this.defaultProps = {
1519
- model: {},
1520
- session: {}
1521
- };
1522
- }
1523
- render() {
1524
- const {model, onSessionChange, session} = this.props;
1525
- return React$2.createElement(PreviewLayout, {
1526
- __self: this,
1527
- __source: {
1528
- fileName: _jsxFileName$2,
1529
- lineNumber: 21
1530
- }
1531
- }, React$2.createElement(Matrix, {
1532
- ...model,
1533
- session: session,
1534
- onSessionChange: onSessionChange,
1535
- __self: this,
1536
- __source: {
1537
- fileName: _jsxFileName$2,
1538
- lineNumber: 22
1539
- }
1540
- }));
1541
- }
1542
- }
1543
- Main.__initStatic();
1544
- Main.__initStatic2();
1545
- const React$3 = _dll_react;
1546
- const ReactDOM = _dll_react_dom;
1547
- const {SessionChangedEvent: SessionChangedEvent} = _dll_pie_framework__pie_player_events;
1548
- const {renderMath: renderMath} = _dll_pie_lib__math_rendering;
1549
- const isComplete = session => {
1550
- if (!session || !session.value) {
1551
- return false;
1552
- }
1553
- return !!Object.keys(session.value).length;
1554
- };
1555
- class Matrix$1 extends HTMLElement {
1556
- constructor() {
1557
- super();
1558
- }
1559
- set model(m) {
1560
- this._model = m;
1561
- this._render();
1562
- }
1563
- set session(s) {
1564
- this._session = s;
1565
- this._render();
1566
- }
1567
- sessionChanged({matrixKey, matrixValue}) {
1568
- const matrixRowKey = matrixKey.split('-')[0];
1569
- const sessionValueClone = Object.keys(this._session.value || ({})).reduce((acc, key) => {
1570
- if (!key.startsWith(matrixRowKey)) {
1571
- acc[key] = this._session.value[key];
1572
- }
1573
- return acc;
1574
- }, {});
1575
- sessionValueClone[matrixKey] = matrixValue;
1576
- this._session.value = sessionValueClone;
1577
- const complete = isComplete(this._session, this._model);
1578
- this.dispatchEvent(new SessionChangedEvent(this.tagName.toLowerCase(), complete));
1579
- this._render();
1580
- }
1581
- connectedCallback() {
1582
- this._render();
1583
- }
1584
- _render() {
1585
- if (!this._model || !this._session) {
1586
- return;
1587
- }
1588
- const el = React$3.createElement(Main, {
1589
- model: this._model,
1590
- session: this._session,
1591
- onSessionChange: this.sessionChanged.bind(this)
1592
- });
1593
- ReactDOM.render(el, this, () => {
1594
- renderMath(this);
1595
- });
1596
- }
1597
- }
1598
- export default Matrix$1;
1599
- export {isComplete};