@next-core/illustrations 0.8.8 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/illustrations/easyops2/add-app-dynamic-dark.40c96fa083cf8198.gif +0 -0
  3. package/dist/illustrations/easyops2/add-app-dynamic.086779d673cf6152.gif +0 -0
  4. package/dist/illustrations/easyops2/browser-version-low-dark.f576a39fc6a8b7a5.png +0 -0
  5. package/dist/illustrations/easyops2/browser-version-low.27302a446d6cd48d.png +0 -0
  6. package/dist/illustrations/easyops2/{new-content-dark.3ef32941831a8bce.png → create-content-dark.3ef32941831a8bce.png} +0 -0
  7. package/dist/illustrations/easyops2/{new-content.bfeaafab7394e0d1.png → create-content.bfeaafab7394e0d1.png} +0 -0
  8. package/dist/illustrations/easyops2/internet-disconnected-dynamic-dark.7db5ddc92490b428.gif +0 -0
  9. package/dist/illustrations/easyops2/internet-disconnected-dynamic.766c09028124ae76.gif +0 -0
  10. package/dist/illustrations/easyops2/{no-data-dark.d573363a0c32c452.png → no-content-dark.d573363a0c32c452.png} +0 -0
  11. package/dist/illustrations/easyops2/no-content-dynamic-dark.2c032fdbe057c455.gif +0 -0
  12. package/dist/illustrations/easyops2/no-content-dynamic.f379fa5c146f74aa.gif +0 -0
  13. package/dist/illustrations/easyops2/{no-data.fbe402e14b2e6898.png → no-content.fbe402e14b2e6898.png} +0 -0
  14. package/dist/illustrations/easyops2/no-history-dynamic-dark.3af955ed15d1e47a.gif +0 -0
  15. package/dist/illustrations/easyops2/no-history-dynamic.1855745282bdab2f.gif +0 -0
  16. package/dist/illustrations/easyops2/{search-result-empty-dark.4a1658ad0ae4f620.png → search-empty-dark.4a1658ad0ae4f620.png} +0 -0
  17. package/dist/illustrations/easyops2/search-empty-dynamic-dark.807307912ba0ce84.gif +0 -0
  18. package/dist/illustrations/easyops2/search-empty-dynamic.ddd19936b1239dde.gif +0 -0
  19. package/dist/illustrations/easyops2/{search-result-empty.60c63c9c63702be7.png → search-empty.60c63c9c63702be7.png} +0 -0
  20. package/dist/illustrations/easyops2/search-no-content-dynamic-dark.51e610a809ab65a1.gif +0 -0
  21. package/dist/illustrations/easyops2/search-no-content-dynamic.a3a7ed00824dafb0.gif +0 -0
  22. package/dist/illustrations/easyops2/searching-dynamic.8cbb345aa52c0e65.gif +0 -0
  23. package/dist/index.bundle.js +2630 -32
  24. package/dist/index.bundle.js.map +1 -1
  25. package/dist/index.esm.js +2630 -33
  26. package/dist/index.esm.js.map +1 -1
  27. package/dist/types/Illustrations.d.ts +1 -0
  28. package/dist/types/categories.d.ts +24 -20
  29. package/package.json +2 -2
  30. package/dist/illustrations/easyops2/add-app-dynamic-dark.31be6b3735dde1b5.gif +0 -0
  31. package/dist/illustrations/easyops2/add-app-dynamic.c6ca70aec69c3d38.gif +0 -0
  32. package/dist/illustrations/easyops2/internet-disconnected-dynamic-dark.9d207d7388b68022.gif +0 -0
  33. package/dist/illustrations/easyops2/internet-disconnected-dynamic.97a0561ce1a8209c.gif +0 -0
  34. package/dist/illustrations/easyops2/no-content-dynamic-dark.632ab7029d93746a.gif +0 -0
  35. package/dist/illustrations/easyops2/no-content-dynamic.d13deefc962b0219.gif +0 -0
  36. package/dist/illustrations/easyops2/no-data-dynamic-dark.bc447cede5582c3b.gif +0 -0
  37. package/dist/illustrations/easyops2/no-data-dynamic.79215acecc802b99.gif +0 -0
  38. package/dist/illustrations/easyops2/no-history-dynamic-dark.69deb86e36e2b079.gif +0 -0
  39. package/dist/illustrations/easyops2/no-history-dynamic.e955b8efe0ca7dac.gif +0 -0
  40. package/dist/illustrations/easyops2/search-result-empty-dynamic-dark.b72492bdbbf9d3c9.gif +0 -0
  41. package/dist/illustrations/easyops2/search-result-empty-dynamic.4f0bf6bdb43017dd.gif +0 -0
  42. package/dist/illustrations/easyops2/searching-dynamic.a6a05d3f3ea69416.gif +0 -0
@@ -6,7 +6,7 @@
6
6
 
7
7
  var illustrationsByCategory = {
8
8
  default: ["browser-version-low-dark", "browser-version-low", "create-content-dark", "create-content", "no-content-dark", "no-content", "no-history-dark", "no-history", "search-empty-dark", "search-empty"],
9
- easyops2: ["add-app-dark", "add-app-dynamic-dark", "add-app-dynamic", "add-app", "internet-disconnected-dark", "internet-disconnected-dynamic-dark", "internet-disconnected-dynamic", "internet-disconnected", "new-content-dark", "new-content", "no-content-dynamic-dark", "no-content-dynamic", "no-data-dark", "no-data-dynamic-dark", "no-data-dynamic", "no-data", "no-history-dynamic-dark", "no-history-dynamic", "no-message-dark", "no-message", "no-permission-dark", "no-permission", "search-result-empty-dark", "search-result-empty-dynamic-dark", "search-result-empty-dynamic", "search-result-empty", "searching-dark", "searching-dynamic-dark", "searching-dynamic", "searching", "upload-success-dark", "upload-success"],
9
+ easyops2: ["add-app-dark", "add-app-dynamic-dark", "add-app-dynamic", "add-app", "browser-version-low-dark", "browser-version-low", "create-content-dark", "create-content", "internet-disconnected-dark", "internet-disconnected-dynamic-dark", "internet-disconnected-dynamic", "internet-disconnected", "no-content-dark", "no-content-dynamic-dark", "no-content-dynamic", "no-content", "no-history-dynamic-dark", "no-history-dynamic", "no-message-dark", "no-message", "no-permission-dark", "no-permission", "search-empty-dark", "search-empty-dynamic-dark", "search-empty-dynamic", "search-empty", "search-no-content-dynamic-dark", "search-no-content-dynamic", "searching-dark", "searching-dynamic-dark", "searching-dynamic", "searching", "upload-success-dark", "upload-success"],
10
10
  exception: ["http-403-dark", "http-403", "http-404-dark", "http-404", "http-500-dark", "http-500"],
11
11
  feedback: ["exception-dark", "exception", "fail-dark", "fail", "info-dark", "info", "success-dark", "success"],
12
12
  humaaans: ["communicate", "communication", "data-analysis", "empty-state", "guide", "project-board", "space", "task"],
@@ -37,39 +37,39 @@
37
37
 
38
38
  var Easyops2AddAppDark = "easyops2/add-app-dark.a8d982ce5e763690.png";
39
39
 
40
- var Easyops2AddAppDynamicDark = "easyops2/add-app-dynamic-dark.31be6b3735dde1b5.gif";
40
+ var Easyops2AddAppDynamicDark = "easyops2/add-app-dynamic-dark.40c96fa083cf8198.gif";
41
41
 
42
- var Easyops2AddAppDynamic = "easyops2/add-app-dynamic.c6ca70aec69c3d38.gif";
42
+ var Easyops2AddAppDynamic = "easyops2/add-app-dynamic.086779d673cf6152.gif";
43
43
 
44
44
  var Easyops2AddApp = "easyops2/add-app.85ec953aa605e480.png";
45
45
 
46
- var Easyops2InternetDisconnectedDark = "easyops2/internet-disconnected-dark.d25c3bd1f1ec4a93.png";
46
+ var Easyops2BrowserVersionLowDark = "easyops2/browser-version-low-dark.f576a39fc6a8b7a5.png";
47
47
 
48
- var Easyops2InternetDisconnectedDynamicDark = "easyops2/internet-disconnected-dynamic-dark.9d207d7388b68022.gif";
48
+ var Easyops2BrowserVersionLow = "easyops2/browser-version-low.27302a446d6cd48d.png";
49
49
 
50
- var Easyops2InternetDisconnectedDynamic = "easyops2/internet-disconnected-dynamic.97a0561ce1a8209c.gif";
50
+ var Easyops2CreateContentDark = "easyops2/create-content-dark.3ef32941831a8bce.png";
51
51
 
52
- var Easyops2InternetDisconnected = "easyops2/internet-disconnected.88eb33670738031b.png";
52
+ var Easyops2CreateContent = "easyops2/create-content.bfeaafab7394e0d1.png";
53
53
 
54
- var Easyops2NewContentDark = "easyops2/new-content-dark.3ef32941831a8bce.png";
54
+ var Easyops2InternetDisconnectedDark = "easyops2/internet-disconnected-dark.d25c3bd1f1ec4a93.png";
55
55
 
56
- var Easyops2NewContent = "easyops2/new-content.bfeaafab7394e0d1.png";
56
+ var Easyops2InternetDisconnectedDynamicDark = "easyops2/internet-disconnected-dynamic-dark.7db5ddc92490b428.gif";
57
57
 
58
- var Easyops2NoContentDynamicDark = "easyops2/no-content-dynamic-dark.632ab7029d93746a.gif";
58
+ var Easyops2InternetDisconnectedDynamic = "easyops2/internet-disconnected-dynamic.766c09028124ae76.gif";
59
59
 
60
- var Easyops2NoContentDynamic = "easyops2/no-content-dynamic.d13deefc962b0219.gif";
60
+ var Easyops2InternetDisconnected = "easyops2/internet-disconnected.88eb33670738031b.png";
61
61
 
62
- var Easyops2NoDataDark = "easyops2/no-data-dark.d573363a0c32c452.png";
62
+ var Easyops2NoContentDark = "easyops2/no-content-dark.d573363a0c32c452.png";
63
63
 
64
- var Easyops2NoDataDynamicDark = "easyops2/no-data-dynamic-dark.bc447cede5582c3b.gif";
64
+ var Easyops2NoContentDynamicDark = "easyops2/no-content-dynamic-dark.2c032fdbe057c455.gif";
65
65
 
66
- var Easyops2NoDataDynamic = "easyops2/no-data-dynamic.79215acecc802b99.gif";
66
+ var Easyops2NoContentDynamic = "easyops2/no-content-dynamic.f379fa5c146f74aa.gif";
67
67
 
68
- var Easyops2NoData = "easyops2/no-data.fbe402e14b2e6898.png";
68
+ var Easyops2NoContent = "easyops2/no-content.fbe402e14b2e6898.png";
69
69
 
70
- var Easyops2NoHistoryDynamicDark = "easyops2/no-history-dynamic-dark.69deb86e36e2b079.gif";
70
+ var Easyops2NoHistoryDynamicDark = "easyops2/no-history-dynamic-dark.3af955ed15d1e47a.gif";
71
71
 
72
- var Easyops2NoHistoryDynamic = "easyops2/no-history-dynamic.e955b8efe0ca7dac.gif";
72
+ var Easyops2NoHistoryDynamic = "easyops2/no-history-dynamic.1855745282bdab2f.gif";
73
73
 
74
74
  var Easyops2NoMessageDark = "easyops2/no-message-dark.b127a0839c946398.png";
75
75
 
@@ -79,19 +79,23 @@
79
79
 
80
80
  var Easyops2NoPermission = "easyops2/no-permission.5ac8c9607a3aeff3.png";
81
81
 
82
- var Easyops2SearchResultEmptyDark = "easyops2/search-result-empty-dark.4a1658ad0ae4f620.png";
82
+ var Easyops2SearchEmptyDark = "easyops2/search-empty-dark.4a1658ad0ae4f620.png";
83
83
 
84
- var Easyops2SearchResultEmptyDynamicDark = "easyops2/search-result-empty-dynamic-dark.b72492bdbbf9d3c9.gif";
84
+ var Easyops2SearchEmptyDynamicDark = "easyops2/search-empty-dynamic-dark.807307912ba0ce84.gif";
85
85
 
86
- var Easyops2SearchResultEmptyDynamic = "easyops2/search-result-empty-dynamic.4f0bf6bdb43017dd.gif";
86
+ var Easyops2SearchEmptyDynamic = "easyops2/search-empty-dynamic.ddd19936b1239dde.gif";
87
87
 
88
- var Easyops2SearchResultEmpty = "easyops2/search-result-empty.60c63c9c63702be7.png";
88
+ var Easyops2SearchEmpty = "easyops2/search-empty.60c63c9c63702be7.png";
89
+
90
+ var Easyops2SearchNoContentDynamicDark = "easyops2/search-no-content-dynamic-dark.51e610a809ab65a1.gif";
91
+
92
+ var Easyops2SearchNoContentDynamic = "easyops2/search-no-content-dynamic.a3a7ed00824dafb0.gif";
89
93
 
90
94
  var Easyops2SearchingDark = "easyops2/searching-dark.d50810962e4affaf.png";
91
95
 
92
96
  var Easyops2SearchingDynamicDark = "easyops2/searching-dynamic-dark.779c712176707b68.gif";
93
97
 
94
- var Easyops2SearchingDynamic = "easyops2/searching-dynamic.a6a05d3f3ea69416.gif";
98
+ var Easyops2SearchingDynamic = "easyops2/searching-dynamic.8cbb345aa52c0e65.gif";
95
99
 
96
100
  var Easyops2Searching = "easyops2/searching.ab1860250a94cd8e.png";
97
101
 
@@ -268,28 +272,30 @@
268
272
  "add-app-dynamic-dark": Easyops2AddAppDynamicDark,
269
273
  "add-app-dynamic": Easyops2AddAppDynamic,
270
274
  "add-app": Easyops2AddApp,
275
+ "browser-version-low-dark": Easyops2BrowserVersionLowDark,
276
+ "browser-version-low": Easyops2BrowserVersionLow,
277
+ "create-content-dark": Easyops2CreateContentDark,
278
+ "create-content": Easyops2CreateContent,
271
279
  "internet-disconnected-dark": Easyops2InternetDisconnectedDark,
272
280
  "internet-disconnected-dynamic-dark": Easyops2InternetDisconnectedDynamicDark,
273
281
  "internet-disconnected-dynamic": Easyops2InternetDisconnectedDynamic,
274
282
  "internet-disconnected": Easyops2InternetDisconnected,
275
- "new-content-dark": Easyops2NewContentDark,
276
- "new-content": Easyops2NewContent,
283
+ "no-content-dark": Easyops2NoContentDark,
277
284
  "no-content-dynamic-dark": Easyops2NoContentDynamicDark,
278
285
  "no-content-dynamic": Easyops2NoContentDynamic,
279
- "no-data-dark": Easyops2NoDataDark,
280
- "no-data-dynamic-dark": Easyops2NoDataDynamicDark,
281
- "no-data-dynamic": Easyops2NoDataDynamic,
282
- "no-data": Easyops2NoData,
286
+ "no-content": Easyops2NoContent,
283
287
  "no-history-dynamic-dark": Easyops2NoHistoryDynamicDark,
284
288
  "no-history-dynamic": Easyops2NoHistoryDynamic,
285
289
  "no-message-dark": Easyops2NoMessageDark,
286
290
  "no-message": Easyops2NoMessage,
287
291
  "no-permission-dark": Easyops2NoPermissionDark,
288
292
  "no-permission": Easyops2NoPermission,
289
- "search-result-empty-dark": Easyops2SearchResultEmptyDark,
290
- "search-result-empty-dynamic-dark": Easyops2SearchResultEmptyDynamicDark,
291
- "search-result-empty-dynamic": Easyops2SearchResultEmptyDynamic,
292
- "search-result-empty": Easyops2SearchResultEmpty,
293
+ "search-empty-dark": Easyops2SearchEmptyDark,
294
+ "search-empty-dynamic-dark": Easyops2SearchEmptyDynamicDark,
295
+ "search-empty-dynamic": Easyops2SearchEmptyDynamic,
296
+ "search-empty": Easyops2SearchEmpty,
297
+ "search-no-content-dynamic-dark": Easyops2SearchNoContentDynamicDark,
298
+ "search-no-content-dynamic": Easyops2SearchNoContentDynamic,
293
299
  "searching-dark": Easyops2SearchingDark,
294
300
  "searching-dynamic-dark": Easyops2SearchingDynamicDark,
295
301
  "searching-dynamic": Easyops2SearchingDynamic,
@@ -396,6 +402,2572 @@
396
402
  whoooa: whoooaCategory
397
403
  };
398
404
 
405
+ var react = {exports: {}};
406
+
407
+ var react_production_min = {};
408
+
409
+ /*
410
+ object-assign
411
+ (c) Sindre Sorhus
412
+ @license MIT
413
+ */
414
+ var objectAssign;
415
+ var hasRequiredObjectAssign;
416
+
417
+ function requireObjectAssign() {
418
+ if (hasRequiredObjectAssign) return objectAssign;
419
+ hasRequiredObjectAssign = 1;
420
+ /* eslint-disable no-unused-vars */
421
+
422
+
423
+ var getOwnPropertySymbols = Object.getOwnPropertySymbols;
424
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
425
+ var propIsEnumerable = Object.prototype.propertyIsEnumerable;
426
+
427
+ function toObject(val) {
428
+ if (val === null || val === undefined) {
429
+ throw new TypeError('Object.assign cannot be called with null or undefined');
430
+ }
431
+
432
+ return Object(val);
433
+ }
434
+
435
+ function shouldUseNative() {
436
+ try {
437
+ if (!Object.assign) {
438
+ return false;
439
+ } // Detect buggy property enumeration order in older V8 versions.
440
+ // https://bugs.chromium.org/p/v8/issues/detail?id=4118
441
+
442
+
443
+ var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
444
+
445
+ test1[5] = 'de';
446
+
447
+ if (Object.getOwnPropertyNames(test1)[0] === '5') {
448
+ return false;
449
+ } // https://bugs.chromium.org/p/v8/issues/detail?id=3056
450
+
451
+
452
+ var test2 = {};
453
+
454
+ for (var i = 0; i < 10; i++) {
455
+ test2['_' + String.fromCharCode(i)] = i;
456
+ }
457
+
458
+ var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
459
+ return test2[n];
460
+ });
461
+
462
+ if (order2.join('') !== '0123456789') {
463
+ return false;
464
+ } // https://bugs.chromium.org/p/v8/issues/detail?id=3056
465
+
466
+
467
+ var test3 = {};
468
+ 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
469
+ test3[letter] = letter;
470
+ });
471
+
472
+ if (Object.keys(Object.assign({}, test3)).join('') !== 'abcdefghijklmnopqrst') {
473
+ return false;
474
+ }
475
+
476
+ return true;
477
+ } catch (err) {
478
+ // We don't expect any of the above to throw, but better to be safe.
479
+ return false;
480
+ }
481
+ }
482
+
483
+ objectAssign = shouldUseNative() ? Object.assign : function (target, source) {
484
+ var from;
485
+ var to = toObject(target);
486
+ var symbols;
487
+
488
+ for (var s = 1; s < arguments.length; s++) {
489
+ from = Object(arguments[s]);
490
+
491
+ for (var key in from) {
492
+ if (hasOwnProperty.call(from, key)) {
493
+ to[key] = from[key];
494
+ }
495
+ }
496
+
497
+ if (getOwnPropertySymbols) {
498
+ symbols = getOwnPropertySymbols(from);
499
+
500
+ for (var i = 0; i < symbols.length; i++) {
501
+ if (propIsEnumerable.call(from, symbols[i])) {
502
+ to[symbols[i]] = from[symbols[i]];
503
+ }
504
+ }
505
+ }
506
+ }
507
+
508
+ return to;
509
+ };
510
+ return objectAssign;
511
+ }
512
+
513
+ /** @license React v16.14.0
514
+ * react.production.min.js
515
+ *
516
+ * Copyright (c) Facebook, Inc. and its affiliates.
517
+ *
518
+ * This source code is licensed under the MIT license found in the
519
+ * LICENSE file in the root directory of this source tree.
520
+ */
521
+ var hasRequiredReact_production_min;
522
+
523
+ function requireReact_production_min() {
524
+ if (hasRequiredReact_production_min) return react_production_min;
525
+ hasRequiredReact_production_min = 1;
526
+
527
+ var l = requireObjectAssign(),
528
+ n = "function" === typeof Symbol && Symbol.for,
529
+ p = n ? Symbol.for("react.element") : 60103,
530
+ q = n ? Symbol.for("react.portal") : 60106,
531
+ r = n ? Symbol.for("react.fragment") : 60107,
532
+ t = n ? Symbol.for("react.strict_mode") : 60108,
533
+ u = n ? Symbol.for("react.profiler") : 60114,
534
+ v = n ? Symbol.for("react.provider") : 60109,
535
+ w = n ? Symbol.for("react.context") : 60110,
536
+ x = n ? Symbol.for("react.forward_ref") : 60112,
537
+ y = n ? Symbol.for("react.suspense") : 60113,
538
+ z = n ? Symbol.for("react.memo") : 60115,
539
+ A = n ? Symbol.for("react.lazy") : 60116,
540
+ B = "function" === typeof Symbol && Symbol.iterator;
541
+
542
+ function C(a) {
543
+ for (var b = "https://reactjs.org/docs/error-decoder.html?invariant=" + a, c = 1; c < arguments.length; c++) {
544
+ b += "&args[]=" + encodeURIComponent(arguments[c]);
545
+ }
546
+
547
+ return "Minified React error #" + a + "; visit " + b + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
548
+ }
549
+
550
+ var D = {
551
+ isMounted: function () {
552
+ return !1;
553
+ },
554
+ enqueueForceUpdate: function () {},
555
+ enqueueReplaceState: function () {},
556
+ enqueueSetState: function () {}
557
+ },
558
+ E = {};
559
+
560
+ function F(a, b, c) {
561
+ this.props = a;
562
+ this.context = b;
563
+ this.refs = E;
564
+ this.updater = c || D;
565
+ }
566
+
567
+ F.prototype.isReactComponent = {};
568
+
569
+ F.prototype.setState = function (a, b) {
570
+ if ("object" !== typeof a && "function" !== typeof a && null != a) throw Error(C(85));
571
+ this.updater.enqueueSetState(this, a, b, "setState");
572
+ };
573
+
574
+ F.prototype.forceUpdate = function (a) {
575
+ this.updater.enqueueForceUpdate(this, a, "forceUpdate");
576
+ };
577
+
578
+ function G() {}
579
+
580
+ G.prototype = F.prototype;
581
+
582
+ function H(a, b, c) {
583
+ this.props = a;
584
+ this.context = b;
585
+ this.refs = E;
586
+ this.updater = c || D;
587
+ }
588
+
589
+ var I = H.prototype = new G();
590
+ I.constructor = H;
591
+ l(I, F.prototype);
592
+ I.isPureReactComponent = !0;
593
+ var J = {
594
+ current: null
595
+ },
596
+ K = Object.prototype.hasOwnProperty,
597
+ L = {
598
+ key: !0,
599
+ ref: !0,
600
+ __self: !0,
601
+ __source: !0
602
+ };
603
+
604
+ function M(a, b, c) {
605
+ var e,
606
+ d = {},
607
+ g = null,
608
+ k = null;
609
+ if (null != b) for (e in void 0 !== b.ref && (k = b.ref), void 0 !== b.key && (g = "" + b.key), b) {
610
+ K.call(b, e) && !L.hasOwnProperty(e) && (d[e] = b[e]);
611
+ }
612
+ var f = arguments.length - 2;
613
+ if (1 === f) d.children = c;else if (1 < f) {
614
+ for (var h = Array(f), m = 0; m < f; m++) {
615
+ h[m] = arguments[m + 2];
616
+ }
617
+
618
+ d.children = h;
619
+ }
620
+ if (a && a.defaultProps) for (e in f = a.defaultProps, f) {
621
+ void 0 === d[e] && (d[e] = f[e]);
622
+ }
623
+ return {
624
+ $$typeof: p,
625
+ type: a,
626
+ key: g,
627
+ ref: k,
628
+ props: d,
629
+ _owner: J.current
630
+ };
631
+ }
632
+
633
+ function N(a, b) {
634
+ return {
635
+ $$typeof: p,
636
+ type: a.type,
637
+ key: b,
638
+ ref: a.ref,
639
+ props: a.props,
640
+ _owner: a._owner
641
+ };
642
+ }
643
+
644
+ function O(a) {
645
+ return "object" === typeof a && null !== a && a.$$typeof === p;
646
+ }
647
+
648
+ function escape(a) {
649
+ var b = {
650
+ "=": "=0",
651
+ ":": "=2"
652
+ };
653
+ return "$" + ("" + a).replace(/[=:]/g, function (a) {
654
+ return b[a];
655
+ });
656
+ }
657
+
658
+ var P = /\/+/g,
659
+ Q = [];
660
+
661
+ function R(a, b, c, e) {
662
+ if (Q.length) {
663
+ var d = Q.pop();
664
+ d.result = a;
665
+ d.keyPrefix = b;
666
+ d.func = c;
667
+ d.context = e;
668
+ d.count = 0;
669
+ return d;
670
+ }
671
+
672
+ return {
673
+ result: a,
674
+ keyPrefix: b,
675
+ func: c,
676
+ context: e,
677
+ count: 0
678
+ };
679
+ }
680
+
681
+ function S(a) {
682
+ a.result = null;
683
+ a.keyPrefix = null;
684
+ a.func = null;
685
+ a.context = null;
686
+ a.count = 0;
687
+ 10 > Q.length && Q.push(a);
688
+ }
689
+
690
+ function T(a, b, c, e) {
691
+ var d = typeof a;
692
+ if ("undefined" === d || "boolean" === d) a = null;
693
+ var g = !1;
694
+ if (null === a) g = !0;else switch (d) {
695
+ case "string":
696
+ case "number":
697
+ g = !0;
698
+ break;
699
+
700
+ case "object":
701
+ switch (a.$$typeof) {
702
+ case p:
703
+ case q:
704
+ g = !0;
705
+ }
706
+
707
+ }
708
+ if (g) return c(e, a, "" === b ? "." + U(a, 0) : b), 1;
709
+ g = 0;
710
+ b = "" === b ? "." : b + ":";
711
+ if (Array.isArray(a)) for (var k = 0; k < a.length; k++) {
712
+ d = a[k];
713
+ var f = b + U(d, k);
714
+ g += T(d, f, c, e);
715
+ } else if (null === a || "object" !== typeof a ? f = null : (f = B && a[B] || a["@@iterator"], f = "function" === typeof f ? f : null), "function" === typeof f) for (a = f.call(a), k = 0; !(d = a.next()).done;) {
716
+ d = d.value, f = b + U(d, k++), g += T(d, f, c, e);
717
+ } else if ("object" === d) throw c = "" + a, Error(C(31, "[object Object]" === c ? "object with keys {" + Object.keys(a).join(", ") + "}" : c, ""));
718
+ return g;
719
+ }
720
+
721
+ function V(a, b, c) {
722
+ return null == a ? 0 : T(a, "", b, c);
723
+ }
724
+
725
+ function U(a, b) {
726
+ return "object" === typeof a && null !== a && null != a.key ? escape(a.key) : b.toString(36);
727
+ }
728
+
729
+ function W(a, b) {
730
+ a.func.call(a.context, b, a.count++);
731
+ }
732
+
733
+ function aa(a, b, c) {
734
+ var e = a.result,
735
+ d = a.keyPrefix;
736
+ a = a.func.call(a.context, b, a.count++);
737
+ Array.isArray(a) ? X(a, e, c, function (a) {
738
+ return a;
739
+ }) : null != a && (O(a) && (a = N(a, d + (!a.key || b && b.key === a.key ? "" : ("" + a.key).replace(P, "$&/") + "/") + c)), e.push(a));
740
+ }
741
+
742
+ function X(a, b, c, e, d) {
743
+ var g = "";
744
+ null != c && (g = ("" + c).replace(P, "$&/") + "/");
745
+ b = R(b, g, e, d);
746
+ V(a, aa, b);
747
+ S(b);
748
+ }
749
+
750
+ var Y = {
751
+ current: null
752
+ };
753
+
754
+ function Z() {
755
+ var a = Y.current;
756
+ if (null === a) throw Error(C(321));
757
+ return a;
758
+ }
759
+
760
+ var ba = {
761
+ ReactCurrentDispatcher: Y,
762
+ ReactCurrentBatchConfig: {
763
+ suspense: null
764
+ },
765
+ ReactCurrentOwner: J,
766
+ IsSomeRendererActing: {
767
+ current: !1
768
+ },
769
+ assign: l
770
+ };
771
+ react_production_min.Children = {
772
+ map: function (a, b, c) {
773
+ if (null == a) return a;
774
+ var e = [];
775
+ X(a, e, null, b, c);
776
+ return e;
777
+ },
778
+ forEach: function (a, b, c) {
779
+ if (null == a) return a;
780
+ b = R(null, null, b, c);
781
+ V(a, W, b);
782
+ S(b);
783
+ },
784
+ count: function (a) {
785
+ return V(a, function () {
786
+ return null;
787
+ }, null);
788
+ },
789
+ toArray: function (a) {
790
+ var b = [];
791
+ X(a, b, null, function (a) {
792
+ return a;
793
+ });
794
+ return b;
795
+ },
796
+ only: function (a) {
797
+ if (!O(a)) throw Error(C(143));
798
+ return a;
799
+ }
800
+ };
801
+ react_production_min.Component = F;
802
+ react_production_min.Fragment = r;
803
+ react_production_min.Profiler = u;
804
+ react_production_min.PureComponent = H;
805
+ react_production_min.StrictMode = t;
806
+ react_production_min.Suspense = y;
807
+ react_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ba;
808
+
809
+ react_production_min.cloneElement = function (a, b, c) {
810
+ if (null === a || void 0 === a) throw Error(C(267, a));
811
+ var e = l({}, a.props),
812
+ d = a.key,
813
+ g = a.ref,
814
+ k = a._owner;
815
+
816
+ if (null != b) {
817
+ void 0 !== b.ref && (g = b.ref, k = J.current);
818
+ void 0 !== b.key && (d = "" + b.key);
819
+ if (a.type && a.type.defaultProps) var f = a.type.defaultProps;
820
+
821
+ for (h in b) {
822
+ K.call(b, h) && !L.hasOwnProperty(h) && (e[h] = void 0 === b[h] && void 0 !== f ? f[h] : b[h]);
823
+ }
824
+ }
825
+
826
+ var h = arguments.length - 2;
827
+ if (1 === h) e.children = c;else if (1 < h) {
828
+ f = Array(h);
829
+
830
+ for (var m = 0; m < h; m++) {
831
+ f[m] = arguments[m + 2];
832
+ }
833
+
834
+ e.children = f;
835
+ }
836
+ return {
837
+ $$typeof: p,
838
+ type: a.type,
839
+ key: d,
840
+ ref: g,
841
+ props: e,
842
+ _owner: k
843
+ };
844
+ };
845
+
846
+ react_production_min.createContext = function (a, b) {
847
+ void 0 === b && (b = null);
848
+ a = {
849
+ $$typeof: w,
850
+ _calculateChangedBits: b,
851
+ _currentValue: a,
852
+ _currentValue2: a,
853
+ _threadCount: 0,
854
+ Provider: null,
855
+ Consumer: null
856
+ };
857
+ a.Provider = {
858
+ $$typeof: v,
859
+ _context: a
860
+ };
861
+ return a.Consumer = a;
862
+ };
863
+
864
+ react_production_min.createElement = M;
865
+
866
+ react_production_min.createFactory = function (a) {
867
+ var b = M.bind(null, a);
868
+ b.type = a;
869
+ return b;
870
+ };
871
+
872
+ react_production_min.createRef = function () {
873
+ return {
874
+ current: null
875
+ };
876
+ };
877
+
878
+ react_production_min.forwardRef = function (a) {
879
+ return {
880
+ $$typeof: x,
881
+ render: a
882
+ };
883
+ };
884
+
885
+ react_production_min.isValidElement = O;
886
+
887
+ react_production_min.lazy = function (a) {
888
+ return {
889
+ $$typeof: A,
890
+ _ctor: a,
891
+ _status: -1,
892
+ _result: null
893
+ };
894
+ };
895
+
896
+ react_production_min.memo = function (a, b) {
897
+ return {
898
+ $$typeof: z,
899
+ type: a,
900
+ compare: void 0 === b ? null : b
901
+ };
902
+ };
903
+
904
+ react_production_min.useCallback = function (a, b) {
905
+ return Z().useCallback(a, b);
906
+ };
907
+
908
+ react_production_min.useContext = function (a, b) {
909
+ return Z().useContext(a, b);
910
+ };
911
+
912
+ react_production_min.useDebugValue = function () {};
913
+
914
+ react_production_min.useEffect = function (a, b) {
915
+ return Z().useEffect(a, b);
916
+ };
917
+
918
+ react_production_min.useImperativeHandle = function (a, b, c) {
919
+ return Z().useImperativeHandle(a, b, c);
920
+ };
921
+
922
+ react_production_min.useLayoutEffect = function (a, b) {
923
+ return Z().useLayoutEffect(a, b);
924
+ };
925
+
926
+ react_production_min.useMemo = function (a, b) {
927
+ return Z().useMemo(a, b);
928
+ };
929
+
930
+ react_production_min.useReducer = function (a, b, c) {
931
+ return Z().useReducer(a, b, c);
932
+ };
933
+
934
+ react_production_min.useRef = function (a) {
935
+ return Z().useRef(a);
936
+ };
937
+
938
+ react_production_min.useState = function (a) {
939
+ return Z().useState(a);
940
+ };
941
+
942
+ react_production_min.version = "16.14.0";
943
+ return react_production_min;
944
+ }
945
+
946
+ var react_development = {};
947
+
948
+ /**
949
+ * Copyright (c) 2013-present, Facebook, Inc.
950
+ *
951
+ * This source code is licensed under the MIT license found in the
952
+ * LICENSE file in the root directory of this source tree.
953
+ */
954
+ var ReactPropTypesSecret_1;
955
+ var hasRequiredReactPropTypesSecret;
956
+
957
+ function requireReactPropTypesSecret() {
958
+ if (hasRequiredReactPropTypesSecret) return ReactPropTypesSecret_1;
959
+ hasRequiredReactPropTypesSecret = 1;
960
+
961
+ var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
962
+ ReactPropTypesSecret_1 = ReactPropTypesSecret;
963
+ return ReactPropTypesSecret_1;
964
+ }
965
+
966
+ var has;
967
+ var hasRequiredHas;
968
+
969
+ function requireHas() {
970
+ if (hasRequiredHas) return has;
971
+ hasRequiredHas = 1;
972
+ has = Function.call.bind(Object.prototype.hasOwnProperty);
973
+ return has;
974
+ }
975
+
976
+ /**
977
+ * Copyright (c) 2013-present, Facebook, Inc.
978
+ *
979
+ * This source code is licensed under the MIT license found in the
980
+ * LICENSE file in the root directory of this source tree.
981
+ */
982
+ var checkPropTypes_1;
983
+ var hasRequiredCheckPropTypes;
984
+
985
+ function requireCheckPropTypes() {
986
+ if (hasRequiredCheckPropTypes) return checkPropTypes_1;
987
+ hasRequiredCheckPropTypes = 1;
988
+
989
+ var printWarning = function () {};
990
+
991
+ if (process.env.NODE_ENV !== 'production') {
992
+ var ReactPropTypesSecret = requireReactPropTypesSecret();
993
+ var loggedTypeFailures = {};
994
+ var has = requireHas();
995
+
996
+ printWarning = function (text) {
997
+ var message = 'Warning: ' + text;
998
+
999
+ if (typeof console !== 'undefined') {
1000
+ console.error(message);
1001
+ }
1002
+
1003
+ try {
1004
+ // --- Welcome to debugging React ---
1005
+ // This error was thrown as a convenience so that you can use this stack
1006
+ // to find the callsite that caused this warning to fire.
1007
+ throw new Error(message);
1008
+ } catch (x) {
1009
+ /**/
1010
+ }
1011
+ };
1012
+ }
1013
+ /**
1014
+ * Assert that the values match with the type specs.
1015
+ * Error messages are memorized and will only be shown once.
1016
+ *
1017
+ * @param {object} typeSpecs Map of name to a ReactPropType
1018
+ * @param {object} values Runtime values that need to be type-checked
1019
+ * @param {string} location e.g. "prop", "context", "child context"
1020
+ * @param {string} componentName Name of the component for error messages.
1021
+ * @param {?Function} getStack Returns the component stack.
1022
+ * @private
1023
+ */
1024
+
1025
+
1026
+ function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
1027
+ if (process.env.NODE_ENV !== 'production') {
1028
+ for (var typeSpecName in typeSpecs) {
1029
+ if (has(typeSpecs, typeSpecName)) {
1030
+ var error; // Prop type validation may throw. In case they do, we don't want to
1031
+ // fail the render phase where it didn't fail before. So we log it.
1032
+ // After these have been cleaned up, we'll let them throw.
1033
+
1034
+ try {
1035
+ // This is intentionally an invariant that gets caught. It's the same
1036
+ // behavior as without this statement except with a better message.
1037
+ if (typeof typeSpecs[typeSpecName] !== 'function') {
1038
+ var err = Error((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`.');
1039
+ err.name = 'Invariant Violation';
1040
+ throw err;
1041
+ }
1042
+
1043
+ error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
1044
+ } catch (ex) {
1045
+ error = ex;
1046
+ }
1047
+
1048
+ if (error && !(error instanceof Error)) {
1049
+ printWarning((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).');
1050
+ }
1051
+
1052
+ if (error instanceof Error && !(error.message in loggedTypeFailures)) {
1053
+ // Only monitor this failure once because there tends to be a lot of the
1054
+ // same error.
1055
+ loggedTypeFailures[error.message] = true;
1056
+ var stack = getStack ? getStack() : '';
1057
+ printWarning('Failed ' + location + ' type: ' + error.message + (stack != null ? stack : ''));
1058
+ }
1059
+ }
1060
+ }
1061
+ }
1062
+ }
1063
+ /**
1064
+ * Resets warning cache when testing.
1065
+ *
1066
+ * @private
1067
+ */
1068
+
1069
+
1070
+ checkPropTypes.resetWarningCache = function () {
1071
+ if (process.env.NODE_ENV !== 'production') {
1072
+ loggedTypeFailures = {};
1073
+ }
1074
+ };
1075
+
1076
+ checkPropTypes_1 = checkPropTypes;
1077
+ return checkPropTypes_1;
1078
+ }
1079
+
1080
+ /** @license React v16.14.0
1081
+ * react.development.js
1082
+ *
1083
+ * Copyright (c) Facebook, Inc. and its affiliates.
1084
+ *
1085
+ * This source code is licensed under the MIT license found in the
1086
+ * LICENSE file in the root directory of this source tree.
1087
+ */
1088
+ var hasRequiredReact_development;
1089
+
1090
+ function requireReact_development() {
1091
+ if (hasRequiredReact_development) return react_development;
1092
+ hasRequiredReact_development = 1;
1093
+
1094
+ if (process.env.NODE_ENV !== "production") {
1095
+ (function () {
1096
+
1097
+ var _assign = requireObjectAssign();
1098
+
1099
+ var checkPropTypes = requireCheckPropTypes();
1100
+ var ReactVersion = '16.14.0'; // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
1101
+ // nor polyfill, then a plain number is used for performance.
1102
+
1103
+ var hasSymbol = typeof Symbol === 'function' && Symbol.for;
1104
+ var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
1105
+ var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
1106
+ var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
1107
+ var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
1108
+ var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
1109
+ var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
1110
+ var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
1111
+
1112
+ var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
1113
+ var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
1114
+ var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
1115
+ var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
1116
+ var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
1117
+ var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
1118
+ var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
1119
+ var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
1120
+ var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
1121
+ var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
1122
+ var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
1123
+ var FAUX_ITERATOR_SYMBOL = '@@iterator';
1124
+
1125
+ function getIteratorFn(maybeIterable) {
1126
+ if (maybeIterable === null || typeof maybeIterable !== 'object') {
1127
+ return null;
1128
+ }
1129
+
1130
+ var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
1131
+
1132
+ if (typeof maybeIterator === 'function') {
1133
+ return maybeIterator;
1134
+ }
1135
+
1136
+ return null;
1137
+ }
1138
+ /**
1139
+ * Keeps track of the current dispatcher.
1140
+ */
1141
+
1142
+
1143
+ var ReactCurrentDispatcher = {
1144
+ /**
1145
+ * @internal
1146
+ * @type {ReactComponent}
1147
+ */
1148
+ current: null
1149
+ };
1150
+ /**
1151
+ * Keeps track of the current batch's configuration such as how long an update
1152
+ * should suspend for if it needs to.
1153
+ */
1154
+
1155
+ var ReactCurrentBatchConfig = {
1156
+ suspense: null
1157
+ };
1158
+ /**
1159
+ * Keeps track of the current owner.
1160
+ *
1161
+ * The current owner is the component who should own any components that are
1162
+ * currently being constructed.
1163
+ */
1164
+
1165
+ var ReactCurrentOwner = {
1166
+ /**
1167
+ * @internal
1168
+ * @type {ReactComponent}
1169
+ */
1170
+ current: null
1171
+ };
1172
+ var BEFORE_SLASH_RE = /^(.*)[\\\/]/;
1173
+
1174
+ function describeComponentFrame(name, source, ownerName) {
1175
+ var sourceInfo = '';
1176
+
1177
+ if (source) {
1178
+ var path = source.fileName;
1179
+ var fileName = path.replace(BEFORE_SLASH_RE, '');
1180
+ {
1181
+ // In DEV, include code for a common special case:
1182
+ // prefer "folder/index.js" instead of just "index.js".
1183
+ if (/^index\./.test(fileName)) {
1184
+ var match = path.match(BEFORE_SLASH_RE);
1185
+
1186
+ if (match) {
1187
+ var pathBeforeSlash = match[1];
1188
+
1189
+ if (pathBeforeSlash) {
1190
+ var folderName = pathBeforeSlash.replace(BEFORE_SLASH_RE, '');
1191
+ fileName = folderName + '/' + fileName;
1192
+ }
1193
+ }
1194
+ }
1195
+ }
1196
+ sourceInfo = ' (at ' + fileName + ':' + source.lineNumber + ')';
1197
+ } else if (ownerName) {
1198
+ sourceInfo = ' (created by ' + ownerName + ')';
1199
+ }
1200
+
1201
+ return '\n in ' + (name || 'Unknown') + sourceInfo;
1202
+ }
1203
+
1204
+ var Resolved = 1;
1205
+
1206
+ function refineResolvedLazyComponent(lazyComponent) {
1207
+ return lazyComponent._status === Resolved ? lazyComponent._result : null;
1208
+ }
1209
+
1210
+ function getWrappedName(outerType, innerType, wrapperName) {
1211
+ var functionName = innerType.displayName || innerType.name || '';
1212
+ return outerType.displayName || (functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName);
1213
+ }
1214
+
1215
+ function getComponentName(type) {
1216
+ if (type == null) {
1217
+ // Host root, text node or just invalid type.
1218
+ return null;
1219
+ }
1220
+
1221
+ {
1222
+ if (typeof type.tag === 'number') {
1223
+ error('Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.');
1224
+ }
1225
+ }
1226
+
1227
+ if (typeof type === 'function') {
1228
+ return type.displayName || type.name || null;
1229
+ }
1230
+
1231
+ if (typeof type === 'string') {
1232
+ return type;
1233
+ }
1234
+
1235
+ switch (type) {
1236
+ case REACT_FRAGMENT_TYPE:
1237
+ return 'Fragment';
1238
+
1239
+ case REACT_PORTAL_TYPE:
1240
+ return 'Portal';
1241
+
1242
+ case REACT_PROFILER_TYPE:
1243
+ return "Profiler";
1244
+
1245
+ case REACT_STRICT_MODE_TYPE:
1246
+ return 'StrictMode';
1247
+
1248
+ case REACT_SUSPENSE_TYPE:
1249
+ return 'Suspense';
1250
+
1251
+ case REACT_SUSPENSE_LIST_TYPE:
1252
+ return 'SuspenseList';
1253
+ }
1254
+
1255
+ if (typeof type === 'object') {
1256
+ switch (type.$$typeof) {
1257
+ case REACT_CONTEXT_TYPE:
1258
+ return 'Context.Consumer';
1259
+
1260
+ case REACT_PROVIDER_TYPE:
1261
+ return 'Context.Provider';
1262
+
1263
+ case REACT_FORWARD_REF_TYPE:
1264
+ return getWrappedName(type, type.render, 'ForwardRef');
1265
+
1266
+ case REACT_MEMO_TYPE:
1267
+ return getComponentName(type.type);
1268
+
1269
+ case REACT_BLOCK_TYPE:
1270
+ return getComponentName(type.render);
1271
+
1272
+ case REACT_LAZY_TYPE:
1273
+ {
1274
+ var thenable = type;
1275
+ var resolvedThenable = refineResolvedLazyComponent(thenable);
1276
+
1277
+ if (resolvedThenable) {
1278
+ return getComponentName(resolvedThenable);
1279
+ }
1280
+
1281
+ break;
1282
+ }
1283
+ }
1284
+ }
1285
+
1286
+ return null;
1287
+ }
1288
+
1289
+ var ReactDebugCurrentFrame = {};
1290
+ var currentlyValidatingElement = null;
1291
+
1292
+ function setCurrentlyValidatingElement(element) {
1293
+ {
1294
+ currentlyValidatingElement = element;
1295
+ }
1296
+ }
1297
+
1298
+ {
1299
+ // Stack implementation injected by the current renderer.
1300
+ ReactDebugCurrentFrame.getCurrentStack = null;
1301
+
1302
+ ReactDebugCurrentFrame.getStackAddendum = function () {
1303
+ var stack = ''; // Add an extra top frame while an element is being validated
1304
+
1305
+ if (currentlyValidatingElement) {
1306
+ var name = getComponentName(currentlyValidatingElement.type);
1307
+ var owner = currentlyValidatingElement._owner;
1308
+ stack += describeComponentFrame(name, currentlyValidatingElement._source, owner && getComponentName(owner.type));
1309
+ } // Delegate to the injected renderer-specific implementation
1310
+
1311
+
1312
+ var impl = ReactDebugCurrentFrame.getCurrentStack;
1313
+
1314
+ if (impl) {
1315
+ stack += impl() || '';
1316
+ }
1317
+
1318
+ return stack;
1319
+ };
1320
+ }
1321
+ /**
1322
+ * Used by act() to track whether you're inside an act() scope.
1323
+ */
1324
+
1325
+ var IsSomeRendererActing = {
1326
+ current: false
1327
+ };
1328
+ var ReactSharedInternals = {
1329
+ ReactCurrentDispatcher: ReactCurrentDispatcher,
1330
+ ReactCurrentBatchConfig: ReactCurrentBatchConfig,
1331
+ ReactCurrentOwner: ReactCurrentOwner,
1332
+ IsSomeRendererActing: IsSomeRendererActing,
1333
+ // Used by renderers to avoid bundling object-assign twice in UMD bundles:
1334
+ assign: _assign
1335
+ };
1336
+ {
1337
+ _assign(ReactSharedInternals, {
1338
+ // These should not be included in production.
1339
+ ReactDebugCurrentFrame: ReactDebugCurrentFrame,
1340
+ // Shim for React DOM 16.0.0 which still destructured (but not used) this.
1341
+ // TODO: remove in React 17.0.
1342
+ ReactComponentTreeHook: {}
1343
+ });
1344
+ } // by calls to these methods by a Babel plugin.
1345
+ //
1346
+ // In PROD (or in packages without access to React internals),
1347
+ // they are left as they are instead.
1348
+
1349
+ function warn(format) {
1350
+ {
1351
+ for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
1352
+ args[_key - 1] = arguments[_key];
1353
+ }
1354
+
1355
+ printWarning('warn', format, args);
1356
+ }
1357
+ }
1358
+
1359
+ function error(format) {
1360
+ {
1361
+ for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
1362
+ args[_key2 - 1] = arguments[_key2];
1363
+ }
1364
+
1365
+ printWarning('error', format, args);
1366
+ }
1367
+ }
1368
+
1369
+ function printWarning(level, format, args) {
1370
+ // When changing this logic, you might want to also
1371
+ // update consoleWithStackDev.www.js as well.
1372
+ {
1373
+ var hasExistingStack = args.length > 0 && typeof args[args.length - 1] === 'string' && args[args.length - 1].indexOf('\n in') === 0;
1374
+
1375
+ if (!hasExistingStack) {
1376
+ var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
1377
+ var stack = ReactDebugCurrentFrame.getStackAddendum();
1378
+
1379
+ if (stack !== '') {
1380
+ format += '%s';
1381
+ args = args.concat([stack]);
1382
+ }
1383
+ }
1384
+
1385
+ var argsWithFormat = args.map(function (item) {
1386
+ return '' + item;
1387
+ }); // Careful: RN currently depends on this prefix
1388
+
1389
+ argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it
1390
+ // breaks IE9: https://github.com/facebook/react/issues/13610
1391
+ // eslint-disable-next-line react-internal/no-production-logging
1392
+
1393
+ Function.prototype.apply.call(console[level], console, argsWithFormat);
1394
+
1395
+ try {
1396
+ // --- Welcome to debugging React ---
1397
+ // This error was thrown as a convenience so that you can use this stack
1398
+ // to find the callsite that caused this warning to fire.
1399
+ var argIndex = 0;
1400
+ var message = 'Warning: ' + format.replace(/%s/g, function () {
1401
+ return args[argIndex++];
1402
+ });
1403
+ throw new Error(message);
1404
+ } catch (x) {}
1405
+ }
1406
+ }
1407
+
1408
+ var didWarnStateUpdateForUnmountedComponent = {};
1409
+
1410
+ function warnNoop(publicInstance, callerName) {
1411
+ {
1412
+ var _constructor = publicInstance.constructor;
1413
+ var componentName = _constructor && (_constructor.displayName || _constructor.name) || 'ReactClass';
1414
+ var warningKey = componentName + "." + callerName;
1415
+
1416
+ if (didWarnStateUpdateForUnmountedComponent[warningKey]) {
1417
+ return;
1418
+ }
1419
+
1420
+ error("Can't call %s on a component that is not yet mounted. " + 'This is a no-op, but it might indicate a bug in your application. ' + 'Instead, assign to `this.state` directly or define a `state = {};` ' + 'class property with the desired state in the %s component.', callerName, componentName);
1421
+ didWarnStateUpdateForUnmountedComponent[warningKey] = true;
1422
+ }
1423
+ }
1424
+ /**
1425
+ * This is the abstract API for an update queue.
1426
+ */
1427
+
1428
+
1429
+ var ReactNoopUpdateQueue = {
1430
+ /**
1431
+ * Checks whether or not this composite component is mounted.
1432
+ * @param {ReactClass} publicInstance The instance we want to test.
1433
+ * @return {boolean} True if mounted, false otherwise.
1434
+ * @protected
1435
+ * @final
1436
+ */
1437
+ isMounted: function (publicInstance) {
1438
+ return false;
1439
+ },
1440
+
1441
+ /**
1442
+ * Forces an update. This should only be invoked when it is known with
1443
+ * certainty that we are **not** in a DOM transaction.
1444
+ *
1445
+ * You may want to call this when you know that some deeper aspect of the
1446
+ * component's state has changed but `setState` was not called.
1447
+ *
1448
+ * This will not invoke `shouldComponentUpdate`, but it will invoke
1449
+ * `componentWillUpdate` and `componentDidUpdate`.
1450
+ *
1451
+ * @param {ReactClass} publicInstance The instance that should rerender.
1452
+ * @param {?function} callback Called after component is updated.
1453
+ * @param {?string} callerName name of the calling function in the public API.
1454
+ * @internal
1455
+ */
1456
+ enqueueForceUpdate: function (publicInstance, callback, callerName) {
1457
+ warnNoop(publicInstance, 'forceUpdate');
1458
+ },
1459
+
1460
+ /**
1461
+ * Replaces all of the state. Always use this or `setState` to mutate state.
1462
+ * You should treat `this.state` as immutable.
1463
+ *
1464
+ * There is no guarantee that `this.state` will be immediately updated, so
1465
+ * accessing `this.state` after calling this method may return the old value.
1466
+ *
1467
+ * @param {ReactClass} publicInstance The instance that should rerender.
1468
+ * @param {object} completeState Next state.
1469
+ * @param {?function} callback Called after component is updated.
1470
+ * @param {?string} callerName name of the calling function in the public API.
1471
+ * @internal
1472
+ */
1473
+ enqueueReplaceState: function (publicInstance, completeState, callback, callerName) {
1474
+ warnNoop(publicInstance, 'replaceState');
1475
+ },
1476
+
1477
+ /**
1478
+ * Sets a subset of the state. This only exists because _pendingState is
1479
+ * internal. This provides a merging strategy that is not available to deep
1480
+ * properties which is confusing. TODO: Expose pendingState or don't use it
1481
+ * during the merge.
1482
+ *
1483
+ * @param {ReactClass} publicInstance The instance that should rerender.
1484
+ * @param {object} partialState Next partial state to be merged with state.
1485
+ * @param {?function} callback Called after component is updated.
1486
+ * @param {?string} Name of the calling function in the public API.
1487
+ * @internal
1488
+ */
1489
+ enqueueSetState: function (publicInstance, partialState, callback, callerName) {
1490
+ warnNoop(publicInstance, 'setState');
1491
+ }
1492
+ };
1493
+ var emptyObject = {};
1494
+ {
1495
+ Object.freeze(emptyObject);
1496
+ }
1497
+ /**
1498
+ * Base class helpers for the updating state of a component.
1499
+ */
1500
+
1501
+ function Component(props, context, updater) {
1502
+ this.props = props;
1503
+ this.context = context; // If a component has string refs, we will assign a different object later.
1504
+
1505
+ this.refs = emptyObject; // We initialize the default updater but the real one gets injected by the
1506
+ // renderer.
1507
+
1508
+ this.updater = updater || ReactNoopUpdateQueue;
1509
+ }
1510
+
1511
+ Component.prototype.isReactComponent = {};
1512
+ /**
1513
+ * Sets a subset of the state. Always use this to mutate
1514
+ * state. You should treat `this.state` as immutable.
1515
+ *
1516
+ * There is no guarantee that `this.state` will be immediately updated, so
1517
+ * accessing `this.state` after calling this method may return the old value.
1518
+ *
1519
+ * There is no guarantee that calls to `setState` will run synchronously,
1520
+ * as they may eventually be batched together. You can provide an optional
1521
+ * callback that will be executed when the call to setState is actually
1522
+ * completed.
1523
+ *
1524
+ * When a function is provided to setState, it will be called at some point in
1525
+ * the future (not synchronously). It will be called with the up to date
1526
+ * component arguments (state, props, context). These values can be different
1527
+ * from this.* because your function may be called after receiveProps but before
1528
+ * shouldComponentUpdate, and this new state, props, and context will not yet be
1529
+ * assigned to this.
1530
+ *
1531
+ * @param {object|function} partialState Next partial state or function to
1532
+ * produce next partial state to be merged with current state.
1533
+ * @param {?function} callback Called after state is updated.
1534
+ * @final
1535
+ * @protected
1536
+ */
1537
+
1538
+ Component.prototype.setState = function (partialState, callback) {
1539
+ if (!(typeof partialState === 'object' || typeof partialState === 'function' || partialState == null)) {
1540
+ {
1541
+ throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
1542
+ }
1543
+ }
1544
+
1545
+ this.updater.enqueueSetState(this, partialState, callback, 'setState');
1546
+ };
1547
+ /**
1548
+ * Forces an update. This should only be invoked when it is known with
1549
+ * certainty that we are **not** in a DOM transaction.
1550
+ *
1551
+ * You may want to call this when you know that some deeper aspect of the
1552
+ * component's state has changed but `setState` was not called.
1553
+ *
1554
+ * This will not invoke `shouldComponentUpdate`, but it will invoke
1555
+ * `componentWillUpdate` and `componentDidUpdate`.
1556
+ *
1557
+ * @param {?function} callback Called after update is complete.
1558
+ * @final
1559
+ * @protected
1560
+ */
1561
+
1562
+
1563
+ Component.prototype.forceUpdate = function (callback) {
1564
+ this.updater.enqueueForceUpdate(this, callback, 'forceUpdate');
1565
+ };
1566
+ /**
1567
+ * Deprecated APIs. These APIs used to exist on classic React classes but since
1568
+ * we would like to deprecate them, we're not going to move them over to this
1569
+ * modern base class. Instead, we define a getter that warns if it's accessed.
1570
+ */
1571
+
1572
+
1573
+ {
1574
+ var deprecatedAPIs = {
1575
+ isMounted: ['isMounted', 'Instead, make sure to clean up subscriptions and pending requests in ' + 'componentWillUnmount to prevent memory leaks.'],
1576
+ replaceState: ['replaceState', 'Refactor your code to use setState instead (see ' + 'https://github.com/facebook/react/issues/3236).']
1577
+ };
1578
+
1579
+ var defineDeprecationWarning = function (methodName, info) {
1580
+ Object.defineProperty(Component.prototype, methodName, {
1581
+ get: function () {
1582
+ warn('%s(...) is deprecated in plain JavaScript React classes. %s', info[0], info[1]);
1583
+ return undefined;
1584
+ }
1585
+ });
1586
+ };
1587
+
1588
+ for (var fnName in deprecatedAPIs) {
1589
+ if (deprecatedAPIs.hasOwnProperty(fnName)) {
1590
+ defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
1591
+ }
1592
+ }
1593
+ }
1594
+
1595
+ function ComponentDummy() {}
1596
+
1597
+ ComponentDummy.prototype = Component.prototype;
1598
+ /**
1599
+ * Convenience component with default shallow equality check for sCU.
1600
+ */
1601
+
1602
+ function PureComponent(props, context, updater) {
1603
+ this.props = props;
1604
+ this.context = context; // If a component has string refs, we will assign a different object later.
1605
+
1606
+ this.refs = emptyObject;
1607
+ this.updater = updater || ReactNoopUpdateQueue;
1608
+ }
1609
+
1610
+ var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
1611
+ pureComponentPrototype.constructor = PureComponent; // Avoid an extra prototype jump for these methods.
1612
+
1613
+ _assign(pureComponentPrototype, Component.prototype);
1614
+
1615
+ pureComponentPrototype.isPureReactComponent = true; // an immutable object with a single mutable value
1616
+
1617
+ function createRef() {
1618
+ var refObject = {
1619
+ current: null
1620
+ };
1621
+ {
1622
+ Object.seal(refObject);
1623
+ }
1624
+ return refObject;
1625
+ }
1626
+
1627
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
1628
+ var RESERVED_PROPS = {
1629
+ key: true,
1630
+ ref: true,
1631
+ __self: true,
1632
+ __source: true
1633
+ };
1634
+ var specialPropKeyWarningShown, specialPropRefWarningShown, didWarnAboutStringRefs;
1635
+ {
1636
+ didWarnAboutStringRefs = {};
1637
+ }
1638
+
1639
+ function hasValidRef(config) {
1640
+ {
1641
+ if (hasOwnProperty.call(config, 'ref')) {
1642
+ var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;
1643
+
1644
+ if (getter && getter.isReactWarning) {
1645
+ return false;
1646
+ }
1647
+ }
1648
+ }
1649
+ return config.ref !== undefined;
1650
+ }
1651
+
1652
+ function hasValidKey(config) {
1653
+ {
1654
+ if (hasOwnProperty.call(config, 'key')) {
1655
+ var getter = Object.getOwnPropertyDescriptor(config, 'key').get;
1656
+
1657
+ if (getter && getter.isReactWarning) {
1658
+ return false;
1659
+ }
1660
+ }
1661
+ }
1662
+ return config.key !== undefined;
1663
+ }
1664
+
1665
+ function defineKeyPropWarningGetter(props, displayName) {
1666
+ var warnAboutAccessingKey = function () {
1667
+ {
1668
+ if (!specialPropKeyWarningShown) {
1669
+ specialPropKeyWarningShown = true;
1670
+ error('%s: `key` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://fb.me/react-special-props)', displayName);
1671
+ }
1672
+ }
1673
+ };
1674
+
1675
+ warnAboutAccessingKey.isReactWarning = true;
1676
+ Object.defineProperty(props, 'key', {
1677
+ get: warnAboutAccessingKey,
1678
+ configurable: true
1679
+ });
1680
+ }
1681
+
1682
+ function defineRefPropWarningGetter(props, displayName) {
1683
+ var warnAboutAccessingRef = function () {
1684
+ {
1685
+ if (!specialPropRefWarningShown) {
1686
+ specialPropRefWarningShown = true;
1687
+ error('%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://fb.me/react-special-props)', displayName);
1688
+ }
1689
+ }
1690
+ };
1691
+
1692
+ warnAboutAccessingRef.isReactWarning = true;
1693
+ Object.defineProperty(props, 'ref', {
1694
+ get: warnAboutAccessingRef,
1695
+ configurable: true
1696
+ });
1697
+ }
1698
+
1699
+ function warnIfStringRefCannotBeAutoConverted(config) {
1700
+ {
1701
+ if (typeof config.ref === 'string' && ReactCurrentOwner.current && config.__self && ReactCurrentOwner.current.stateNode !== config.__self) {
1702
+ var componentName = getComponentName(ReactCurrentOwner.current.type);
1703
+
1704
+ if (!didWarnAboutStringRefs[componentName]) {
1705
+ error('Component "%s" contains the string ref "%s". ' + 'Support for string refs will be removed in a future major release. ' + 'This case cannot be automatically converted to an arrow function. ' + 'We ask you to manually fix this case by using useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://fb.me/react-strict-mode-string-ref', getComponentName(ReactCurrentOwner.current.type), config.ref);
1706
+ didWarnAboutStringRefs[componentName] = true;
1707
+ }
1708
+ }
1709
+ }
1710
+ }
1711
+ /**
1712
+ * Factory method to create a new React element. This no longer adheres to
1713
+ * the class pattern, so do not use new to call it. Also, instanceof check
1714
+ * will not work. Instead test $$typeof field against Symbol.for('react.element') to check
1715
+ * if something is a React Element.
1716
+ *
1717
+ * @param {*} type
1718
+ * @param {*} props
1719
+ * @param {*} key
1720
+ * @param {string|object} ref
1721
+ * @param {*} owner
1722
+ * @param {*} self A *temporary* helper to detect places where `this` is
1723
+ * different from the `owner` when React.createElement is called, so that we
1724
+ * can warn. We want to get rid of owner and replace string `ref`s with arrow
1725
+ * functions, and as long as `this` and owner are the same, there will be no
1726
+ * change in behavior.
1727
+ * @param {*} source An annotation object (added by a transpiler or otherwise)
1728
+ * indicating filename, line number, and/or other information.
1729
+ * @internal
1730
+ */
1731
+
1732
+
1733
+ var ReactElement = function (type, key, ref, self, source, owner, props) {
1734
+ var element = {
1735
+ // This tag allows us to uniquely identify this as a React Element
1736
+ $$typeof: REACT_ELEMENT_TYPE,
1737
+ // Built-in properties that belong on the element
1738
+ type: type,
1739
+ key: key,
1740
+ ref: ref,
1741
+ props: props,
1742
+ // Record the component responsible for creating this element.
1743
+ _owner: owner
1744
+ };
1745
+ {
1746
+ // The validation flag is currently mutative. We put it on
1747
+ // an external backing store so that we can freeze the whole object.
1748
+ // This can be replaced with a WeakMap once they are implemented in
1749
+ // commonly used development environments.
1750
+ element._store = {}; // To make comparing ReactElements easier for testing purposes, we make
1751
+ // the validation flag non-enumerable (where possible, which should
1752
+ // include every environment we run tests in), so the test framework
1753
+ // ignores it.
1754
+
1755
+ Object.defineProperty(element._store, 'validated', {
1756
+ configurable: false,
1757
+ enumerable: false,
1758
+ writable: true,
1759
+ value: false
1760
+ }); // self and source are DEV only properties.
1761
+
1762
+ Object.defineProperty(element, '_self', {
1763
+ configurable: false,
1764
+ enumerable: false,
1765
+ writable: false,
1766
+ value: self
1767
+ }); // Two elements created in two different places should be considered
1768
+ // equal for testing purposes and therefore we hide it from enumeration.
1769
+
1770
+ Object.defineProperty(element, '_source', {
1771
+ configurable: false,
1772
+ enumerable: false,
1773
+ writable: false,
1774
+ value: source
1775
+ });
1776
+
1777
+ if (Object.freeze) {
1778
+ Object.freeze(element.props);
1779
+ Object.freeze(element);
1780
+ }
1781
+ }
1782
+ return element;
1783
+ };
1784
+ /**
1785
+ * Create and return a new ReactElement of the given type.
1786
+ * See https://reactjs.org/docs/react-api.html#createelement
1787
+ */
1788
+
1789
+
1790
+ function createElement(type, config, children) {
1791
+ var propName; // Reserved names are extracted
1792
+
1793
+ var props = {};
1794
+ var key = null;
1795
+ var ref = null;
1796
+ var self = null;
1797
+ var source = null;
1798
+
1799
+ if (config != null) {
1800
+ if (hasValidRef(config)) {
1801
+ ref = config.ref;
1802
+ {
1803
+ warnIfStringRefCannotBeAutoConverted(config);
1804
+ }
1805
+ }
1806
+
1807
+ if (hasValidKey(config)) {
1808
+ key = '' + config.key;
1809
+ }
1810
+
1811
+ self = config.__self === undefined ? null : config.__self;
1812
+ source = config.__source === undefined ? null : config.__source; // Remaining properties are added to a new props object
1813
+
1814
+ for (propName in config) {
1815
+ if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
1816
+ props[propName] = config[propName];
1817
+ }
1818
+ }
1819
+ } // Children can be more than one argument, and those are transferred onto
1820
+ // the newly allocated props object.
1821
+
1822
+
1823
+ var childrenLength = arguments.length - 2;
1824
+
1825
+ if (childrenLength === 1) {
1826
+ props.children = children;
1827
+ } else if (childrenLength > 1) {
1828
+ var childArray = Array(childrenLength);
1829
+
1830
+ for (var i = 0; i < childrenLength; i++) {
1831
+ childArray[i] = arguments[i + 2];
1832
+ }
1833
+
1834
+ {
1835
+ if (Object.freeze) {
1836
+ Object.freeze(childArray);
1837
+ }
1838
+ }
1839
+ props.children = childArray;
1840
+ } // Resolve default props
1841
+
1842
+
1843
+ if (type && type.defaultProps) {
1844
+ var defaultProps = type.defaultProps;
1845
+
1846
+ for (propName in defaultProps) {
1847
+ if (props[propName] === undefined) {
1848
+ props[propName] = defaultProps[propName];
1849
+ }
1850
+ }
1851
+ }
1852
+
1853
+ {
1854
+ if (key || ref) {
1855
+ var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;
1856
+
1857
+ if (key) {
1858
+ defineKeyPropWarningGetter(props, displayName);
1859
+ }
1860
+
1861
+ if (ref) {
1862
+ defineRefPropWarningGetter(props, displayName);
1863
+ }
1864
+ }
1865
+ }
1866
+ return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
1867
+ }
1868
+
1869
+ function cloneAndReplaceKey(oldElement, newKey) {
1870
+ var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props);
1871
+ return newElement;
1872
+ }
1873
+ /**
1874
+ * Clone and return a new ReactElement using element as the starting point.
1875
+ * See https://reactjs.org/docs/react-api.html#cloneelement
1876
+ */
1877
+
1878
+
1879
+ function cloneElement(element, config, children) {
1880
+ if (!!(element === null || element === undefined)) {
1881
+ {
1882
+ throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + element + ".");
1883
+ }
1884
+ }
1885
+
1886
+ var propName; // Original props are copied
1887
+
1888
+ var props = _assign({}, element.props); // Reserved names are extracted
1889
+
1890
+
1891
+ var key = element.key;
1892
+ var ref = element.ref; // Self is preserved since the owner is preserved.
1893
+
1894
+ var self = element._self; // Source is preserved since cloneElement is unlikely to be targeted by a
1895
+ // transpiler, and the original source is probably a better indicator of the
1896
+ // true owner.
1897
+
1898
+ var source = element._source; // Owner will be preserved, unless ref is overridden
1899
+
1900
+ var owner = element._owner;
1901
+
1902
+ if (config != null) {
1903
+ if (hasValidRef(config)) {
1904
+ // Silently steal the ref from the parent.
1905
+ ref = config.ref;
1906
+ owner = ReactCurrentOwner.current;
1907
+ }
1908
+
1909
+ if (hasValidKey(config)) {
1910
+ key = '' + config.key;
1911
+ } // Remaining properties override existing props
1912
+
1913
+
1914
+ var defaultProps;
1915
+
1916
+ if (element.type && element.type.defaultProps) {
1917
+ defaultProps = element.type.defaultProps;
1918
+ }
1919
+
1920
+ for (propName in config) {
1921
+ if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
1922
+ if (config[propName] === undefined && defaultProps !== undefined) {
1923
+ // Resolve default props
1924
+ props[propName] = defaultProps[propName];
1925
+ } else {
1926
+ props[propName] = config[propName];
1927
+ }
1928
+ }
1929
+ }
1930
+ } // Children can be more than one argument, and those are transferred onto
1931
+ // the newly allocated props object.
1932
+
1933
+
1934
+ var childrenLength = arguments.length - 2;
1935
+
1936
+ if (childrenLength === 1) {
1937
+ props.children = children;
1938
+ } else if (childrenLength > 1) {
1939
+ var childArray = Array(childrenLength);
1940
+
1941
+ for (var i = 0; i < childrenLength; i++) {
1942
+ childArray[i] = arguments[i + 2];
1943
+ }
1944
+
1945
+ props.children = childArray;
1946
+ }
1947
+
1948
+ return ReactElement(element.type, key, ref, self, source, owner, props);
1949
+ }
1950
+ /**
1951
+ * Verifies the object is a ReactElement.
1952
+ * See https://reactjs.org/docs/react-api.html#isvalidelement
1953
+ * @param {?object} object
1954
+ * @return {boolean} True if `object` is a ReactElement.
1955
+ * @final
1956
+ */
1957
+
1958
+
1959
+ function isValidElement(object) {
1960
+ return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
1961
+ }
1962
+
1963
+ var SEPARATOR = '.';
1964
+ var SUBSEPARATOR = ':';
1965
+ /**
1966
+ * Escape and wrap key so it is safe to use as a reactid
1967
+ *
1968
+ * @param {string} key to be escaped.
1969
+ * @return {string} the escaped key.
1970
+ */
1971
+
1972
+ function escape(key) {
1973
+ var escapeRegex = /[=:]/g;
1974
+ var escaperLookup = {
1975
+ '=': '=0',
1976
+ ':': '=2'
1977
+ };
1978
+ var escapedString = ('' + key).replace(escapeRegex, function (match) {
1979
+ return escaperLookup[match];
1980
+ });
1981
+ return '$' + escapedString;
1982
+ }
1983
+ /**
1984
+ * TODO: Test that a single child and an array with one item have the same key
1985
+ * pattern.
1986
+ */
1987
+
1988
+
1989
+ var didWarnAboutMaps = false;
1990
+ var userProvidedKeyEscapeRegex = /\/+/g;
1991
+
1992
+ function escapeUserProvidedKey(text) {
1993
+ return ('' + text).replace(userProvidedKeyEscapeRegex, '$&/');
1994
+ }
1995
+
1996
+ var POOL_SIZE = 10;
1997
+ var traverseContextPool = [];
1998
+
1999
+ function getPooledTraverseContext(mapResult, keyPrefix, mapFunction, mapContext) {
2000
+ if (traverseContextPool.length) {
2001
+ var traverseContext = traverseContextPool.pop();
2002
+ traverseContext.result = mapResult;
2003
+ traverseContext.keyPrefix = keyPrefix;
2004
+ traverseContext.func = mapFunction;
2005
+ traverseContext.context = mapContext;
2006
+ traverseContext.count = 0;
2007
+ return traverseContext;
2008
+ } else {
2009
+ return {
2010
+ result: mapResult,
2011
+ keyPrefix: keyPrefix,
2012
+ func: mapFunction,
2013
+ context: mapContext,
2014
+ count: 0
2015
+ };
2016
+ }
2017
+ }
2018
+
2019
+ function releaseTraverseContext(traverseContext) {
2020
+ traverseContext.result = null;
2021
+ traverseContext.keyPrefix = null;
2022
+ traverseContext.func = null;
2023
+ traverseContext.context = null;
2024
+ traverseContext.count = 0;
2025
+
2026
+ if (traverseContextPool.length < POOL_SIZE) {
2027
+ traverseContextPool.push(traverseContext);
2028
+ }
2029
+ }
2030
+ /**
2031
+ * @param {?*} children Children tree container.
2032
+ * @param {!string} nameSoFar Name of the key path so far.
2033
+ * @param {!function} callback Callback to invoke with each child found.
2034
+ * @param {?*} traverseContext Used to pass information throughout the traversal
2035
+ * process.
2036
+ * @return {!number} The number of children in this subtree.
2037
+ */
2038
+
2039
+
2040
+ function traverseAllChildrenImpl(children, nameSoFar, callback, traverseContext) {
2041
+ var type = typeof children;
2042
+
2043
+ if (type === 'undefined' || type === 'boolean') {
2044
+ // All of the above are perceived as null.
2045
+ children = null;
2046
+ }
2047
+
2048
+ var invokeCallback = false;
2049
+
2050
+ if (children === null) {
2051
+ invokeCallback = true;
2052
+ } else {
2053
+ switch (type) {
2054
+ case 'string':
2055
+ case 'number':
2056
+ invokeCallback = true;
2057
+ break;
2058
+
2059
+ case 'object':
2060
+ switch (children.$$typeof) {
2061
+ case REACT_ELEMENT_TYPE:
2062
+ case REACT_PORTAL_TYPE:
2063
+ invokeCallback = true;
2064
+ }
2065
+
2066
+ }
2067
+ }
2068
+
2069
+ if (invokeCallback) {
2070
+ callback(traverseContext, children, // If it's the only child, treat the name as if it was wrapped in an array
2071
+ // so that it's consistent if the number of children grows.
2072
+ nameSoFar === '' ? SEPARATOR + getComponentKey(children, 0) : nameSoFar);
2073
+ return 1;
2074
+ }
2075
+
2076
+ var child;
2077
+ var nextName;
2078
+ var subtreeCount = 0; // Count of children found in the current subtree.
2079
+
2080
+ var nextNamePrefix = nameSoFar === '' ? SEPARATOR : nameSoFar + SUBSEPARATOR;
2081
+
2082
+ if (Array.isArray(children)) {
2083
+ for (var i = 0; i < children.length; i++) {
2084
+ child = children[i];
2085
+ nextName = nextNamePrefix + getComponentKey(child, i);
2086
+ subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
2087
+ }
2088
+ } else {
2089
+ var iteratorFn = getIteratorFn(children);
2090
+
2091
+ if (typeof iteratorFn === 'function') {
2092
+ {
2093
+ // Warn about using Maps as children
2094
+ if (iteratorFn === children.entries) {
2095
+ if (!didWarnAboutMaps) {
2096
+ warn('Using Maps as children is deprecated and will be removed in ' + 'a future major release. Consider converting children to ' + 'an array of keyed ReactElements instead.');
2097
+ }
2098
+
2099
+ didWarnAboutMaps = true;
2100
+ }
2101
+ }
2102
+ var iterator = iteratorFn.call(children);
2103
+ var step;
2104
+ var ii = 0;
2105
+
2106
+ while (!(step = iterator.next()).done) {
2107
+ child = step.value;
2108
+ nextName = nextNamePrefix + getComponentKey(child, ii++);
2109
+ subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
2110
+ }
2111
+ } else if (type === 'object') {
2112
+ var addendum = '';
2113
+ {
2114
+ addendum = ' If you meant to render a collection of children, use an array ' + 'instead.' + ReactDebugCurrentFrame.getStackAddendum();
2115
+ }
2116
+ var childrenString = '' + children;
2117
+ {
2118
+ {
2119
+ throw Error("Objects are not valid as a React child (found: " + (childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString) + ")." + addendum);
2120
+ }
2121
+ }
2122
+ }
2123
+ }
2124
+
2125
+ return subtreeCount;
2126
+ }
2127
+ /**
2128
+ * Traverses children that are typically specified as `props.children`, but
2129
+ * might also be specified through attributes:
2130
+ *
2131
+ * - `traverseAllChildren(this.props.children, ...)`
2132
+ * - `traverseAllChildren(this.props.leftPanelChildren, ...)`
2133
+ *
2134
+ * The `traverseContext` is an optional argument that is passed through the
2135
+ * entire traversal. It can be used to store accumulations or anything else that
2136
+ * the callback might find relevant.
2137
+ *
2138
+ * @param {?*} children Children tree object.
2139
+ * @param {!function} callback To invoke upon traversing each child.
2140
+ * @param {?*} traverseContext Context for traversal.
2141
+ * @return {!number} The number of children in this subtree.
2142
+ */
2143
+
2144
+
2145
+ function traverseAllChildren(children, callback, traverseContext) {
2146
+ if (children == null) {
2147
+ return 0;
2148
+ }
2149
+
2150
+ return traverseAllChildrenImpl(children, '', callback, traverseContext);
2151
+ }
2152
+ /**
2153
+ * Generate a key string that identifies a component within a set.
2154
+ *
2155
+ * @param {*} component A component that could contain a manual key.
2156
+ * @param {number} index Index that is used if a manual key is not provided.
2157
+ * @return {string}
2158
+ */
2159
+
2160
+
2161
+ function getComponentKey(component, index) {
2162
+ // Do some typechecking here since we call this blindly. We want to ensure
2163
+ // that we don't block potential future ES APIs.
2164
+ if (typeof component === 'object' && component !== null && component.key != null) {
2165
+ // Explicit key
2166
+ return escape(component.key);
2167
+ } // Implicit key determined by the index in the set
2168
+
2169
+
2170
+ return index.toString(36);
2171
+ }
2172
+
2173
+ function forEachSingleChild(bookKeeping, child, name) {
2174
+ var func = bookKeeping.func,
2175
+ context = bookKeeping.context;
2176
+ func.call(context, child, bookKeeping.count++);
2177
+ }
2178
+ /**
2179
+ * Iterates through children that are typically specified as `props.children`.
2180
+ *
2181
+ * See https://reactjs.org/docs/react-api.html#reactchildrenforeach
2182
+ *
2183
+ * The provided forEachFunc(child, index) will be called for each
2184
+ * leaf child.
2185
+ *
2186
+ * @param {?*} children Children tree container.
2187
+ * @param {function(*, int)} forEachFunc
2188
+ * @param {*} forEachContext Context for forEachContext.
2189
+ */
2190
+
2191
+
2192
+ function forEachChildren(children, forEachFunc, forEachContext) {
2193
+ if (children == null) {
2194
+ return children;
2195
+ }
2196
+
2197
+ var traverseContext = getPooledTraverseContext(null, null, forEachFunc, forEachContext);
2198
+ traverseAllChildren(children, forEachSingleChild, traverseContext);
2199
+ releaseTraverseContext(traverseContext);
2200
+ }
2201
+
2202
+ function mapSingleChildIntoContext(bookKeeping, child, childKey) {
2203
+ var result = bookKeeping.result,
2204
+ keyPrefix = bookKeeping.keyPrefix,
2205
+ func = bookKeeping.func,
2206
+ context = bookKeeping.context;
2207
+ var mappedChild = func.call(context, child, bookKeeping.count++);
2208
+
2209
+ if (Array.isArray(mappedChild)) {
2210
+ mapIntoWithKeyPrefixInternal(mappedChild, result, childKey, function (c) {
2211
+ return c;
2212
+ });
2213
+ } else if (mappedChild != null) {
2214
+ if (isValidElement(mappedChild)) {
2215
+ mappedChild = cloneAndReplaceKey(mappedChild, // Keep both the (mapped) and old keys if they differ, just as
2216
+ // traverseAllChildren used to do for objects as children
2217
+ keyPrefix + (mappedChild.key && (!child || child.key !== mappedChild.key) ? escapeUserProvidedKey(mappedChild.key) + '/' : '') + childKey);
2218
+ }
2219
+
2220
+ result.push(mappedChild);
2221
+ }
2222
+ }
2223
+
2224
+ function mapIntoWithKeyPrefixInternal(children, array, prefix, func, context) {
2225
+ var escapedPrefix = '';
2226
+
2227
+ if (prefix != null) {
2228
+ escapedPrefix = escapeUserProvidedKey(prefix) + '/';
2229
+ }
2230
+
2231
+ var traverseContext = getPooledTraverseContext(array, escapedPrefix, func, context);
2232
+ traverseAllChildren(children, mapSingleChildIntoContext, traverseContext);
2233
+ releaseTraverseContext(traverseContext);
2234
+ }
2235
+ /**
2236
+ * Maps children that are typically specified as `props.children`.
2237
+ *
2238
+ * See https://reactjs.org/docs/react-api.html#reactchildrenmap
2239
+ *
2240
+ * The provided mapFunction(child, key, index) will be called for each
2241
+ * leaf child.
2242
+ *
2243
+ * @param {?*} children Children tree container.
2244
+ * @param {function(*, int)} func The map function.
2245
+ * @param {*} context Context for mapFunction.
2246
+ * @return {object} Object containing the ordered map of results.
2247
+ */
2248
+
2249
+
2250
+ function mapChildren(children, func, context) {
2251
+ if (children == null) {
2252
+ return children;
2253
+ }
2254
+
2255
+ var result = [];
2256
+ mapIntoWithKeyPrefixInternal(children, result, null, func, context);
2257
+ return result;
2258
+ }
2259
+ /**
2260
+ * Count the number of children that are typically specified as
2261
+ * `props.children`.
2262
+ *
2263
+ * See https://reactjs.org/docs/react-api.html#reactchildrencount
2264
+ *
2265
+ * @param {?*} children Children tree container.
2266
+ * @return {number} The number of children.
2267
+ */
2268
+
2269
+
2270
+ function countChildren(children) {
2271
+ return traverseAllChildren(children, function () {
2272
+ return null;
2273
+ }, null);
2274
+ }
2275
+ /**
2276
+ * Flatten a children object (typically specified as `props.children`) and
2277
+ * return an array with appropriately re-keyed children.
2278
+ *
2279
+ * See https://reactjs.org/docs/react-api.html#reactchildrentoarray
2280
+ */
2281
+
2282
+
2283
+ function toArray(children) {
2284
+ var result = [];
2285
+ mapIntoWithKeyPrefixInternal(children, result, null, function (child) {
2286
+ return child;
2287
+ });
2288
+ return result;
2289
+ }
2290
+ /**
2291
+ * Returns the first child in a collection of children and verifies that there
2292
+ * is only one child in the collection.
2293
+ *
2294
+ * See https://reactjs.org/docs/react-api.html#reactchildrenonly
2295
+ *
2296
+ * The current implementation of this function assumes that a single child gets
2297
+ * passed without a wrapper, but the purpose of this helper function is to
2298
+ * abstract away the particular structure of children.
2299
+ *
2300
+ * @param {?object} children Child collection structure.
2301
+ * @return {ReactElement} The first and only `ReactElement` contained in the
2302
+ * structure.
2303
+ */
2304
+
2305
+
2306
+ function onlyChild(children) {
2307
+ if (!isValidElement(children)) {
2308
+ {
2309
+ throw Error("React.Children.only expected to receive a single React element child.");
2310
+ }
2311
+ }
2312
+
2313
+ return children;
2314
+ }
2315
+
2316
+ function createContext(defaultValue, calculateChangedBits) {
2317
+ if (calculateChangedBits === undefined) {
2318
+ calculateChangedBits = null;
2319
+ } else {
2320
+ {
2321
+ if (calculateChangedBits !== null && typeof calculateChangedBits !== 'function') {
2322
+ error('createContext: Expected the optional second argument to be a ' + 'function. Instead received: %s', calculateChangedBits);
2323
+ }
2324
+ }
2325
+ }
2326
+
2327
+ var context = {
2328
+ $$typeof: REACT_CONTEXT_TYPE,
2329
+ _calculateChangedBits: calculateChangedBits,
2330
+ // As a workaround to support multiple concurrent renderers, we categorize
2331
+ // some renderers as primary and others as secondary. We only expect
2332
+ // there to be two concurrent renderers at most: React Native (primary) and
2333
+ // Fabric (secondary); React DOM (primary) and React ART (secondary).
2334
+ // Secondary renderers store their context values on separate fields.
2335
+ _currentValue: defaultValue,
2336
+ _currentValue2: defaultValue,
2337
+ // Used to track how many concurrent renderers this context currently
2338
+ // supports within in a single renderer. Such as parallel server rendering.
2339
+ _threadCount: 0,
2340
+ // These are circular
2341
+ Provider: null,
2342
+ Consumer: null
2343
+ };
2344
+ context.Provider = {
2345
+ $$typeof: REACT_PROVIDER_TYPE,
2346
+ _context: context
2347
+ };
2348
+ var hasWarnedAboutUsingNestedContextConsumers = false;
2349
+ var hasWarnedAboutUsingConsumerProvider = false;
2350
+ {
2351
+ // A separate object, but proxies back to the original context object for
2352
+ // backwards compatibility. It has a different $$typeof, so we can properly
2353
+ // warn for the incorrect usage of Context as a Consumer.
2354
+ var Consumer = {
2355
+ $$typeof: REACT_CONTEXT_TYPE,
2356
+ _context: context,
2357
+ _calculateChangedBits: context._calculateChangedBits
2358
+ }; // $FlowFixMe: Flow complains about not setting a value, which is intentional here
2359
+
2360
+ Object.defineProperties(Consumer, {
2361
+ Provider: {
2362
+ get: function () {
2363
+ if (!hasWarnedAboutUsingConsumerProvider) {
2364
+ hasWarnedAboutUsingConsumerProvider = true;
2365
+ error('Rendering <Context.Consumer.Provider> is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Provider> instead?');
2366
+ }
2367
+
2368
+ return context.Provider;
2369
+ },
2370
+ set: function (_Provider) {
2371
+ context.Provider = _Provider;
2372
+ }
2373
+ },
2374
+ _currentValue: {
2375
+ get: function () {
2376
+ return context._currentValue;
2377
+ },
2378
+ set: function (_currentValue) {
2379
+ context._currentValue = _currentValue;
2380
+ }
2381
+ },
2382
+ _currentValue2: {
2383
+ get: function () {
2384
+ return context._currentValue2;
2385
+ },
2386
+ set: function (_currentValue2) {
2387
+ context._currentValue2 = _currentValue2;
2388
+ }
2389
+ },
2390
+ _threadCount: {
2391
+ get: function () {
2392
+ return context._threadCount;
2393
+ },
2394
+ set: function (_threadCount) {
2395
+ context._threadCount = _threadCount;
2396
+ }
2397
+ },
2398
+ Consumer: {
2399
+ get: function () {
2400
+ if (!hasWarnedAboutUsingNestedContextConsumers) {
2401
+ hasWarnedAboutUsingNestedContextConsumers = true;
2402
+ error('Rendering <Context.Consumer.Consumer> is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Consumer> instead?');
2403
+ }
2404
+
2405
+ return context.Consumer;
2406
+ }
2407
+ }
2408
+ }); // $FlowFixMe: Flow complains about missing properties because it doesn't understand defineProperty
2409
+
2410
+ context.Consumer = Consumer;
2411
+ }
2412
+ {
2413
+ context._currentRenderer = null;
2414
+ context._currentRenderer2 = null;
2415
+ }
2416
+ return context;
2417
+ }
2418
+
2419
+ function lazy(ctor) {
2420
+ var lazyType = {
2421
+ $$typeof: REACT_LAZY_TYPE,
2422
+ _ctor: ctor,
2423
+ // React uses these fields to store the result.
2424
+ _status: -1,
2425
+ _result: null
2426
+ };
2427
+ {
2428
+ // In production, this would just set it on the object.
2429
+ var defaultProps;
2430
+ var propTypes;
2431
+ Object.defineProperties(lazyType, {
2432
+ defaultProps: {
2433
+ configurable: true,
2434
+ get: function () {
2435
+ return defaultProps;
2436
+ },
2437
+ set: function (newDefaultProps) {
2438
+ error('React.lazy(...): It is not supported to assign `defaultProps` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.');
2439
+ defaultProps = newDefaultProps; // Match production behavior more closely:
2440
+
2441
+ Object.defineProperty(lazyType, 'defaultProps', {
2442
+ enumerable: true
2443
+ });
2444
+ }
2445
+ },
2446
+ propTypes: {
2447
+ configurable: true,
2448
+ get: function () {
2449
+ return propTypes;
2450
+ },
2451
+ set: function (newPropTypes) {
2452
+ error('React.lazy(...): It is not supported to assign `propTypes` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.');
2453
+ propTypes = newPropTypes; // Match production behavior more closely:
2454
+
2455
+ Object.defineProperty(lazyType, 'propTypes', {
2456
+ enumerable: true
2457
+ });
2458
+ }
2459
+ }
2460
+ });
2461
+ }
2462
+ return lazyType;
2463
+ }
2464
+
2465
+ function forwardRef(render) {
2466
+ {
2467
+ if (render != null && render.$$typeof === REACT_MEMO_TYPE) {
2468
+ error('forwardRef requires a render function but received a `memo` ' + 'component. Instead of forwardRef(memo(...)), use ' + 'memo(forwardRef(...)).');
2469
+ } else if (typeof render !== 'function') {
2470
+ error('forwardRef requires a render function but was given %s.', render === null ? 'null' : typeof render);
2471
+ } else {
2472
+ if (render.length !== 0 && render.length !== 2) {
2473
+ error('forwardRef render functions accept exactly two parameters: props and ref. %s', render.length === 1 ? 'Did you forget to use the ref parameter?' : 'Any additional parameter will be undefined.');
2474
+ }
2475
+ }
2476
+
2477
+ if (render != null) {
2478
+ if (render.defaultProps != null || render.propTypes != null) {
2479
+ error('forwardRef render functions do not support propTypes or defaultProps. ' + 'Did you accidentally pass a React component?');
2480
+ }
2481
+ }
2482
+ }
2483
+ return {
2484
+ $$typeof: REACT_FORWARD_REF_TYPE,
2485
+ render: render
2486
+ };
2487
+ }
2488
+
2489
+ function isValidElementType(type) {
2490
+ return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
2491
+ 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);
2492
+ }
2493
+
2494
+ function memo(type, compare) {
2495
+ {
2496
+ if (!isValidElementType(type)) {
2497
+ error('memo: The first argument must be a component. Instead ' + 'received: %s', type === null ? 'null' : typeof type);
2498
+ }
2499
+ }
2500
+ return {
2501
+ $$typeof: REACT_MEMO_TYPE,
2502
+ type: type,
2503
+ compare: compare === undefined ? null : compare
2504
+ };
2505
+ }
2506
+
2507
+ function resolveDispatcher() {
2508
+ var dispatcher = ReactCurrentDispatcher.current;
2509
+
2510
+ if (!(dispatcher !== null)) {
2511
+ {
2512
+ throw Error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.");
2513
+ }
2514
+ }
2515
+
2516
+ return dispatcher;
2517
+ }
2518
+
2519
+ function useContext(Context, unstable_observedBits) {
2520
+ var dispatcher = resolveDispatcher();
2521
+ {
2522
+ if (unstable_observedBits !== undefined) {
2523
+ error('useContext() second argument is reserved for future ' + 'use in React. Passing it is not supported. ' + 'You passed: %s.%s', unstable_observedBits, typeof unstable_observedBits === 'number' && Array.isArray(arguments[2]) ? '\n\nDid you call array.map(useContext)? ' + 'Calling Hooks inside a loop is not supported. ' + 'Learn more at https://fb.me/rules-of-hooks' : '');
2524
+ } // TODO: add a more generic warning for invalid values.
2525
+
2526
+
2527
+ if (Context._context !== undefined) {
2528
+ var realContext = Context._context; // Don't deduplicate because this legitimately causes bugs
2529
+ // and nobody should be using this in existing code.
2530
+
2531
+ if (realContext.Consumer === Context) {
2532
+ error('Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be ' + 'removed in a future major release. Did you mean to call useContext(Context) instead?');
2533
+ } else if (realContext.Provider === Context) {
2534
+ error('Calling useContext(Context.Provider) is not supported. ' + 'Did you mean to call useContext(Context) instead?');
2535
+ }
2536
+ }
2537
+ }
2538
+ return dispatcher.useContext(Context, unstable_observedBits);
2539
+ }
2540
+
2541
+ function useState(initialState) {
2542
+ var dispatcher = resolveDispatcher();
2543
+ return dispatcher.useState(initialState);
2544
+ }
2545
+
2546
+ function useReducer(reducer, initialArg, init) {
2547
+ var dispatcher = resolveDispatcher();
2548
+ return dispatcher.useReducer(reducer, initialArg, init);
2549
+ }
2550
+
2551
+ function useRef(initialValue) {
2552
+ var dispatcher = resolveDispatcher();
2553
+ return dispatcher.useRef(initialValue);
2554
+ }
2555
+
2556
+ function useEffect(create, deps) {
2557
+ var dispatcher = resolveDispatcher();
2558
+ return dispatcher.useEffect(create, deps);
2559
+ }
2560
+
2561
+ function useLayoutEffect(create, deps) {
2562
+ var dispatcher = resolveDispatcher();
2563
+ return dispatcher.useLayoutEffect(create, deps);
2564
+ }
2565
+
2566
+ function useCallback(callback, deps) {
2567
+ var dispatcher = resolveDispatcher();
2568
+ return dispatcher.useCallback(callback, deps);
2569
+ }
2570
+
2571
+ function useMemo(create, deps) {
2572
+ var dispatcher = resolveDispatcher();
2573
+ return dispatcher.useMemo(create, deps);
2574
+ }
2575
+
2576
+ function useImperativeHandle(ref, create, deps) {
2577
+ var dispatcher = resolveDispatcher();
2578
+ return dispatcher.useImperativeHandle(ref, create, deps);
2579
+ }
2580
+
2581
+ function useDebugValue(value, formatterFn) {
2582
+ {
2583
+ var dispatcher = resolveDispatcher();
2584
+ return dispatcher.useDebugValue(value, formatterFn);
2585
+ }
2586
+ }
2587
+
2588
+ var propTypesMisspellWarningShown;
2589
+ {
2590
+ propTypesMisspellWarningShown = false;
2591
+ }
2592
+
2593
+ function getDeclarationErrorAddendum() {
2594
+ if (ReactCurrentOwner.current) {
2595
+ var name = getComponentName(ReactCurrentOwner.current.type);
2596
+
2597
+ if (name) {
2598
+ return '\n\nCheck the render method of `' + name + '`.';
2599
+ }
2600
+ }
2601
+
2602
+ return '';
2603
+ }
2604
+
2605
+ function getSourceInfoErrorAddendum(source) {
2606
+ if (source !== undefined) {
2607
+ var fileName = source.fileName.replace(/^.*[\\\/]/, '');
2608
+ var lineNumber = source.lineNumber;
2609
+ return '\n\nCheck your code at ' + fileName + ':' + lineNumber + '.';
2610
+ }
2611
+
2612
+ return '';
2613
+ }
2614
+
2615
+ function getSourceInfoErrorAddendumForProps(elementProps) {
2616
+ if (elementProps !== null && elementProps !== undefined) {
2617
+ return getSourceInfoErrorAddendum(elementProps.__source);
2618
+ }
2619
+
2620
+ return '';
2621
+ }
2622
+ /**
2623
+ * Warn if there's no key explicitly set on dynamic arrays of children or
2624
+ * object keys are not valid. This allows us to keep track of children between
2625
+ * updates.
2626
+ */
2627
+
2628
+
2629
+ var ownerHasKeyUseWarning = {};
2630
+
2631
+ function getCurrentComponentErrorInfo(parentType) {
2632
+ var info = getDeclarationErrorAddendum();
2633
+
2634
+ if (!info) {
2635
+ var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;
2636
+
2637
+ if (parentName) {
2638
+ info = "\n\nCheck the top-level render call using <" + parentName + ">.";
2639
+ }
2640
+ }
2641
+
2642
+ return info;
2643
+ }
2644
+ /**
2645
+ * Warn if the element doesn't have an explicit key assigned to it.
2646
+ * This element is in an array. The array could grow and shrink or be
2647
+ * reordered. All children that haven't already been validated are required to
2648
+ * have a "key" property assigned to it. Error statuses are cached so a warning
2649
+ * will only be shown once.
2650
+ *
2651
+ * @internal
2652
+ * @param {ReactElement} element Element that requires a key.
2653
+ * @param {*} parentType element's parent's type.
2654
+ */
2655
+
2656
+
2657
+ function validateExplicitKey(element, parentType) {
2658
+ if (!element._store || element._store.validated || element.key != null) {
2659
+ return;
2660
+ }
2661
+
2662
+ element._store.validated = true;
2663
+ var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
2664
+
2665
+ if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
2666
+ return;
2667
+ }
2668
+
2669
+ ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a
2670
+ // property, it may be the creator of the child that's responsible for
2671
+ // assigning it a key.
2672
+
2673
+ var childOwner = '';
2674
+
2675
+ if (element && element._owner && element._owner !== ReactCurrentOwner.current) {
2676
+ // Give the component that originally created this child.
2677
+ childOwner = " It was passed a child from " + getComponentName(element._owner.type) + ".";
2678
+ }
2679
+
2680
+ setCurrentlyValidatingElement(element);
2681
+ {
2682
+ error('Each child in a list should have a unique "key" prop.' + '%s%s See https://fb.me/react-warning-keys for more information.', currentComponentErrorInfo, childOwner);
2683
+ }
2684
+ setCurrentlyValidatingElement(null);
2685
+ }
2686
+ /**
2687
+ * Ensure that every element either is passed in a static location, in an
2688
+ * array with an explicit keys property defined, or in an object literal
2689
+ * with valid key property.
2690
+ *
2691
+ * @internal
2692
+ * @param {ReactNode} node Statically passed child of any type.
2693
+ * @param {*} parentType node's parent's type.
2694
+ */
2695
+
2696
+
2697
+ function validateChildKeys(node, parentType) {
2698
+ if (typeof node !== 'object') {
2699
+ return;
2700
+ }
2701
+
2702
+ if (Array.isArray(node)) {
2703
+ for (var i = 0; i < node.length; i++) {
2704
+ var child = node[i];
2705
+
2706
+ if (isValidElement(child)) {
2707
+ validateExplicitKey(child, parentType);
2708
+ }
2709
+ }
2710
+ } else if (isValidElement(node)) {
2711
+ // This element was passed in a valid location.
2712
+ if (node._store) {
2713
+ node._store.validated = true;
2714
+ }
2715
+ } else if (node) {
2716
+ var iteratorFn = getIteratorFn(node);
2717
+
2718
+ if (typeof iteratorFn === 'function') {
2719
+ // Entry iterators used to provide implicit keys,
2720
+ // but now we print a separate warning for them later.
2721
+ if (iteratorFn !== node.entries) {
2722
+ var iterator = iteratorFn.call(node);
2723
+ var step;
2724
+
2725
+ while (!(step = iterator.next()).done) {
2726
+ if (isValidElement(step.value)) {
2727
+ validateExplicitKey(step.value, parentType);
2728
+ }
2729
+ }
2730
+ }
2731
+ }
2732
+ }
2733
+ }
2734
+ /**
2735
+ * Given an element, validate that its props follow the propTypes definition,
2736
+ * provided by the type.
2737
+ *
2738
+ * @param {ReactElement} element
2739
+ */
2740
+
2741
+
2742
+ function validatePropTypes(element) {
2743
+ {
2744
+ var type = element.type;
2745
+
2746
+ if (type === null || type === undefined || typeof type === 'string') {
2747
+ return;
2748
+ }
2749
+
2750
+ var name = getComponentName(type);
2751
+ var propTypes;
2752
+
2753
+ if (typeof type === 'function') {
2754
+ propTypes = type.propTypes;
2755
+ } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
2756
+ // Inner props are checked in the reconciler.
2757
+ type.$$typeof === REACT_MEMO_TYPE)) {
2758
+ propTypes = type.propTypes;
2759
+ } else {
2760
+ return;
2761
+ }
2762
+
2763
+ if (propTypes) {
2764
+ setCurrentlyValidatingElement(element);
2765
+ checkPropTypes(propTypes, element.props, 'prop', name, ReactDebugCurrentFrame.getStackAddendum);
2766
+ setCurrentlyValidatingElement(null);
2767
+ } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {
2768
+ propTypesMisspellWarningShown = true;
2769
+ error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', name || 'Unknown');
2770
+ }
2771
+
2772
+ if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) {
2773
+ error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');
2774
+ }
2775
+ }
2776
+ }
2777
+ /**
2778
+ * Given a fragment, validate that it can only be provided with fragment props
2779
+ * @param {ReactElement} fragment
2780
+ */
2781
+
2782
+
2783
+ function validateFragmentProps(fragment) {
2784
+ {
2785
+ setCurrentlyValidatingElement(fragment);
2786
+ var keys = Object.keys(fragment.props);
2787
+
2788
+ for (var i = 0; i < keys.length; i++) {
2789
+ var key = keys[i];
2790
+
2791
+ if (key !== 'children' && key !== 'key') {
2792
+ error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);
2793
+ break;
2794
+ }
2795
+ }
2796
+
2797
+ if (fragment.ref !== null) {
2798
+ error('Invalid attribute `ref` supplied to `React.Fragment`.');
2799
+ }
2800
+
2801
+ setCurrentlyValidatingElement(null);
2802
+ }
2803
+ }
2804
+
2805
+ function createElementWithValidation(type, props, children) {
2806
+ var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to
2807
+ // succeed and there will likely be errors in render.
2808
+
2809
+ if (!validType) {
2810
+ var info = '';
2811
+
2812
+ if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
2813
+ info += ' You likely forgot to export your component from the file ' + "it's defined in, or you might have mixed up default and named imports.";
2814
+ }
2815
+
2816
+ var sourceInfo = getSourceInfoErrorAddendumForProps(props);
2817
+
2818
+ if (sourceInfo) {
2819
+ info += sourceInfo;
2820
+ } else {
2821
+ info += getDeclarationErrorAddendum();
2822
+ }
2823
+
2824
+ var typeString;
2825
+
2826
+ if (type === null) {
2827
+ typeString = 'null';
2828
+ } else if (Array.isArray(type)) {
2829
+ typeString = 'array';
2830
+ } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {
2831
+ typeString = "<" + (getComponentName(type.type) || 'Unknown') + " />";
2832
+ info = ' Did you accidentally export a JSX literal instead of a component?';
2833
+ } else {
2834
+ typeString = typeof type;
2835
+ }
2836
+
2837
+ {
2838
+ error('React.createElement: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);
2839
+ }
2840
+ }
2841
+
2842
+ var element = createElement.apply(this, arguments); // The result can be nullish if a mock or a custom function is used.
2843
+ // TODO: Drop this when these are no longer allowed as the type argument.
2844
+
2845
+ if (element == null) {
2846
+ return element;
2847
+ } // Skip key warning if the type isn't valid since our key validation logic
2848
+ // doesn't expect a non-string/function type and can throw confusing errors.
2849
+ // We don't want exception behavior to differ between dev and prod.
2850
+ // (Rendering will throw with a helpful message and as soon as the type is
2851
+ // fixed, the key warnings will appear.)
2852
+
2853
+
2854
+ if (validType) {
2855
+ for (var i = 2; i < arguments.length; i++) {
2856
+ validateChildKeys(arguments[i], type);
2857
+ }
2858
+ }
2859
+
2860
+ if (type === REACT_FRAGMENT_TYPE) {
2861
+ validateFragmentProps(element);
2862
+ } else {
2863
+ validatePropTypes(element);
2864
+ }
2865
+
2866
+ return element;
2867
+ }
2868
+
2869
+ var didWarnAboutDeprecatedCreateFactory = false;
2870
+
2871
+ function createFactoryWithValidation(type) {
2872
+ var validatedFactory = createElementWithValidation.bind(null, type);
2873
+ validatedFactory.type = type;
2874
+ {
2875
+ if (!didWarnAboutDeprecatedCreateFactory) {
2876
+ didWarnAboutDeprecatedCreateFactory = true;
2877
+ warn('React.createFactory() is deprecated and will be removed in ' + 'a future major release. Consider using JSX ' + 'or use React.createElement() directly instead.');
2878
+ } // Legacy hook: remove it
2879
+
2880
+
2881
+ Object.defineProperty(validatedFactory, 'type', {
2882
+ enumerable: false,
2883
+ get: function () {
2884
+ warn('Factory.type is deprecated. Access the class directly ' + 'before passing it to createFactory.');
2885
+ Object.defineProperty(this, 'type', {
2886
+ value: type
2887
+ });
2888
+ return type;
2889
+ }
2890
+ });
2891
+ }
2892
+ return validatedFactory;
2893
+ }
2894
+
2895
+ function cloneElementWithValidation(element, props, children) {
2896
+ var newElement = cloneElement.apply(this, arguments);
2897
+
2898
+ for (var i = 2; i < arguments.length; i++) {
2899
+ validateChildKeys(arguments[i], newElement.type);
2900
+ }
2901
+
2902
+ validatePropTypes(newElement);
2903
+ return newElement;
2904
+ }
2905
+
2906
+ {
2907
+ try {
2908
+ var frozenObject = Object.freeze({});
2909
+ var testMap = new Map([[frozenObject, null]]);
2910
+ var testSet = new Set([frozenObject]); // This is necessary for Rollup to not consider these unused.
2911
+ // https://github.com/rollup/rollup/issues/1771
2912
+ // TODO: we can remove these if Rollup fixes the bug.
2913
+
2914
+ testMap.set(0, 0);
2915
+ testSet.add(0);
2916
+ } catch (e) {}
2917
+ }
2918
+ var createElement$1 = createElementWithValidation;
2919
+ var cloneElement$1 = cloneElementWithValidation;
2920
+ var createFactory = createFactoryWithValidation;
2921
+ var Children = {
2922
+ map: mapChildren,
2923
+ forEach: forEachChildren,
2924
+ count: countChildren,
2925
+ toArray: toArray,
2926
+ only: onlyChild
2927
+ };
2928
+ react_development.Children = Children;
2929
+ react_development.Component = Component;
2930
+ react_development.Fragment = REACT_FRAGMENT_TYPE;
2931
+ react_development.Profiler = REACT_PROFILER_TYPE;
2932
+ react_development.PureComponent = PureComponent;
2933
+ react_development.StrictMode = REACT_STRICT_MODE_TYPE;
2934
+ react_development.Suspense = REACT_SUSPENSE_TYPE;
2935
+ react_development.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactSharedInternals;
2936
+ react_development.cloneElement = cloneElement$1;
2937
+ react_development.createContext = createContext;
2938
+ react_development.createElement = createElement$1;
2939
+ react_development.createFactory = createFactory;
2940
+ react_development.createRef = createRef;
2941
+ react_development.forwardRef = forwardRef;
2942
+ react_development.isValidElement = isValidElement;
2943
+ react_development.lazy = lazy;
2944
+ react_development.memo = memo;
2945
+ react_development.useCallback = useCallback;
2946
+ react_development.useContext = useContext;
2947
+ react_development.useDebugValue = useDebugValue;
2948
+ react_development.useEffect = useEffect;
2949
+ react_development.useImperativeHandle = useImperativeHandle;
2950
+ react_development.useLayoutEffect = useLayoutEffect;
2951
+ react_development.useMemo = useMemo;
2952
+ react_development.useReducer = useReducer;
2953
+ react_development.useRef = useRef;
2954
+ react_development.useState = useState;
2955
+ react_development.version = ReactVersion;
2956
+ })();
2957
+ }
2958
+
2959
+ return react_development;
2960
+ }
2961
+
2962
+ (function (module) {
2963
+
2964
+ if (process.env.NODE_ENV === 'production') {
2965
+ module.exports = requireReact_production_min();
2966
+ } else {
2967
+ module.exports = requireReact_development();
2968
+ }
2969
+ })(react);
2970
+
399
2971
  function determineIllustrationName(category, theme, name) {
400
2972
  var isEasyopsIllustration = category === "default" || category === "exception" || category === "feedback" || category === "easyops2";
401
2973
  return isEasyopsIllustration && theme === "dark-v2" ? "".concat(name, "-dark") : name;
@@ -409,10 +2981,36 @@
409
2981
  var url = categories === null || categories === void 0 ? void 0 : (_category = categories[category]) === null || _category === void 0 ? void 0 : _category[name];
410
2982
  return url && "".concat((_window$CORE_ROOT = window.CORE_ROOT) !== null && _window$CORE_ROOT !== void 0 ? _window$CORE_ROOT : "", "assets/illustrations/").concat(url);
411
2983
  }
2984
+ function useIllustrationConfig(useNewIllustration, illustrationsConfig) {
2985
+ var {
2986
+ category,
2987
+ name,
2988
+ theme
2989
+ } = illustrationsConfig;
2990
+ var showNewIllustration = useNewIllustration && category === "default";
2991
+ var illustrationName = react.exports.useMemo(() => {
2992
+ var illustrationNames = ["create-content", "browser-version-low"];
2993
+
2994
+ if (showNewIllustration && !illustrationNames.includes(name)) {
2995
+ return "".concat(name, "-dynamic");
2996
+ }
2997
+
2998
+ return name;
2999
+ }, [showNewIllustration, name]);
3000
+ var illustrationCategory = react.exports.useMemo(() => {
3001
+ return showNewIllustration ? "easyops2" : category;
3002
+ }, [showNewIllustration, category]);
3003
+ return {
3004
+ name: illustrationName,
3005
+ category: illustrationCategory,
3006
+ theme
3007
+ };
3008
+ }
412
3009
 
413
3010
  exports.determineIllustrationName = determineIllustrationName;
414
3011
  exports.getIllustration = getIllustration;
415
3012
  exports.illustrationsByCategory = illustrationsByCategory;
3013
+ exports.useIllustrationConfig = useIllustrationConfig;
416
3014
 
417
3015
  Object.defineProperty(exports, '__esModule', { value: true });
418
3016