seeder-st2110-components 1.7.1 → 1.7.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -830,6 +830,70 @@ const useSystemOperations = function () {
830
830
  };
831
831
  var useSystemOperations$1 = useSystemOperations;
832
832
 
833
+ const usePageReload = () => {
834
+ const [reloading, setReloading] = useState(false);
835
+ const startReload = useCallback(function () {
836
+ let delay = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 800;
837
+ if (reloading) return; // 防止重复触发
838
+
839
+ // 显示遮罩
840
+ setReloading(true);
841
+
842
+ // 设置背景色
843
+ document.body.style.backgroundColor = '#282828';
844
+ document.body.style.transition = 'background-color 0.1s';
845
+ document.body.offsetHeight;
846
+
847
+ // 延迟刷新
848
+ const timer = setTimeout(() => {
849
+ window.location.reload();
850
+ }, delay);
851
+
852
+ // 清理函数(防止内存泄漏)
853
+ return () => clearTimeout(timer);
854
+ }, [reloading]);
855
+ const ReloadOverlay = () => {
856
+ if (!reloading) return null;
857
+ return /*#__PURE__*/jsxs("div", {
858
+ style: {
859
+ position: 'fixed',
860
+ top: 0,
861
+ left: 0,
862
+ right: 0,
863
+ bottom: 0,
864
+ backgroundColor: '#282828',
865
+ display: 'flex',
866
+ flexDirection: 'column',
867
+ alignItems: 'center',
868
+ justifyContent: 'center',
869
+ zIndex: 999999,
870
+ color: 'white'
871
+ },
872
+ children: [/*#__PURE__*/jsx(Spin, {
873
+ size: "large"
874
+ }), /*#__PURE__*/jsx("div", {
875
+ style: {
876
+ marginTop: 20,
877
+ fontSize: 16
878
+ },
879
+ children: "Loading preset configuration..."
880
+ }), /*#__PURE__*/jsx("div", {
881
+ style: {
882
+ marginTop: 10,
883
+ fontSize: 12,
884
+ color: '#aaa'
885
+ },
886
+ children: "Page will refresh shortly"
887
+ })]
888
+ });
889
+ };
890
+ return {
891
+ startReload,
892
+ ReloadOverlay
893
+ };
894
+ };
895
+ var usePageReload$1 = usePageReload;
896
+
833
897
  const NetworkFieldGroup = _ref => {
834
898
  var _fieldConfig$netmask$, _fieldConfig$netmask;
835
899
  let {
@@ -2196,15 +2260,15 @@ UpgradeManager.defaultProps = {
2196
2260
  };
2197
2261
  var UpgradeManager$1 = UpgradeManager;
2198
2262
 
2199
- function getDefaultExportFromCjs$1 (x) {
2263
+ function getDefaultExportFromCjs$3 (x) {
2200
2264
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
2201
2265
  }
2202
2266
 
2203
- var propTypes$1 = {exports: {}};
2267
+ var propTypes$3 = {exports: {}};
2204
2268
 
2205
- var reactIs$1 = {exports: {}};
2269
+ var reactIs$3 = {exports: {}};
2206
2270
 
2207
- var reactIs_production_min$1 = {};
2271
+ var reactIs_production_min$3 = {};
2208
2272
 
2209
2273
  /** @license React v16.13.1
2210
2274
  * react-is.production.min.js
@@ -2215,21 +2279,21 @@ var reactIs_production_min$1 = {};
2215
2279
  * LICENSE file in the root directory of this source tree.
2216
2280
  */
2217
2281
 
2218
- var hasRequiredReactIs_production_min$1;
2282
+ var hasRequiredReactIs_production_min$3;
2219
2283
 
2220
- function requireReactIs_production_min$1 () {
2221
- if (hasRequiredReactIs_production_min$1) return reactIs_production_min$1;
2222
- hasRequiredReactIs_production_min$1 = 1;
2284
+ function requireReactIs_production_min$3 () {
2285
+ if (hasRequiredReactIs_production_min$3) return reactIs_production_min$3;
2286
+ hasRequiredReactIs_production_min$3 = 1;
2223
2287
  var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?
2224
2288
  Symbol.for("react.suspense_list"):60120,r=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.block"):60121,w=b?Symbol.for("react.fundamental"):60117,x=b?Symbol.for("react.responder"):60118,y=b?Symbol.for("react.scope"):60119;
2225
- function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}reactIs_production_min$1.AsyncMode=l;reactIs_production_min$1.ConcurrentMode=m;reactIs_production_min$1.ContextConsumer=k;reactIs_production_min$1.ContextProvider=h;reactIs_production_min$1.Element=c;reactIs_production_min$1.ForwardRef=n;reactIs_production_min$1.Fragment=e;reactIs_production_min$1.Lazy=t;reactIs_production_min$1.Memo=r;reactIs_production_min$1.Portal=d;
2226
- reactIs_production_min$1.Profiler=g;reactIs_production_min$1.StrictMode=f;reactIs_production_min$1.Suspense=p;reactIs_production_min$1.isAsyncMode=function(a){return A(a)||z(a)===l};reactIs_production_min$1.isConcurrentMode=A;reactIs_production_min$1.isContextConsumer=function(a){return z(a)===k};reactIs_production_min$1.isContextProvider=function(a){return z(a)===h};reactIs_production_min$1.isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===c};reactIs_production_min$1.isForwardRef=function(a){return z(a)===n};reactIs_production_min$1.isFragment=function(a){return z(a)===e};reactIs_production_min$1.isLazy=function(a){return z(a)===t};
2227
- reactIs_production_min$1.isMemo=function(a){return z(a)===r};reactIs_production_min$1.isPortal=function(a){return z(a)===d};reactIs_production_min$1.isProfiler=function(a){return z(a)===g};reactIs_production_min$1.isStrictMode=function(a){return z(a)===f};reactIs_production_min$1.isSuspense=function(a){return z(a)===p};
2228
- reactIs_production_min$1.isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||"object"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};reactIs_production_min$1.typeOf=z;
2229
- return reactIs_production_min$1;
2289
+ function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}reactIs_production_min$3.AsyncMode=l;reactIs_production_min$3.ConcurrentMode=m;reactIs_production_min$3.ContextConsumer=k;reactIs_production_min$3.ContextProvider=h;reactIs_production_min$3.Element=c;reactIs_production_min$3.ForwardRef=n;reactIs_production_min$3.Fragment=e;reactIs_production_min$3.Lazy=t;reactIs_production_min$3.Memo=r;reactIs_production_min$3.Portal=d;
2290
+ reactIs_production_min$3.Profiler=g;reactIs_production_min$3.StrictMode=f;reactIs_production_min$3.Suspense=p;reactIs_production_min$3.isAsyncMode=function(a){return A(a)||z(a)===l};reactIs_production_min$3.isConcurrentMode=A;reactIs_production_min$3.isContextConsumer=function(a){return z(a)===k};reactIs_production_min$3.isContextProvider=function(a){return z(a)===h};reactIs_production_min$3.isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===c};reactIs_production_min$3.isForwardRef=function(a){return z(a)===n};reactIs_production_min$3.isFragment=function(a){return z(a)===e};reactIs_production_min$3.isLazy=function(a){return z(a)===t};
2291
+ reactIs_production_min$3.isMemo=function(a){return z(a)===r};reactIs_production_min$3.isPortal=function(a){return z(a)===d};reactIs_production_min$3.isProfiler=function(a){return z(a)===g};reactIs_production_min$3.isStrictMode=function(a){return z(a)===f};reactIs_production_min$3.isSuspense=function(a){return z(a)===p};
2292
+ reactIs_production_min$3.isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||"object"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};reactIs_production_min$3.typeOf=z;
2293
+ return reactIs_production_min$3;
2230
2294
  }
2231
2295
 
2232
- var reactIs_development$1 = {};
2296
+ var reactIs_development$3 = {};
2233
2297
 
2234
2298
  /** @license React v16.13.1
2235
2299
  * react-is.development.js
@@ -2240,11 +2304,11 @@ var reactIs_development$1 = {};
2240
2304
  * LICENSE file in the root directory of this source tree.
2241
2305
  */
2242
2306
 
2243
- var hasRequiredReactIs_development$1;
2307
+ var hasRequiredReactIs_development$3;
2244
2308
 
2245
- function requireReactIs_development$1 () {
2246
- if (hasRequiredReactIs_development$1) return reactIs_development$1;
2247
- hasRequiredReactIs_development$1 = 1;
2309
+ function requireReactIs_development$3 () {
2310
+ if (hasRequiredReactIs_development$3) return reactIs_development$3;
2311
+ hasRequiredReactIs_development$3 = 1;
2248
2312
 
2249
2313
 
2250
2314
 
@@ -2385,51 +2449,51 @@ function requireReactIs_development$1 () {
2385
2449
  return typeOf(object) === REACT_SUSPENSE_TYPE;
2386
2450
  }
2387
2451
 
2388
- reactIs_development$1.AsyncMode = AsyncMode;
2389
- reactIs_development$1.ConcurrentMode = ConcurrentMode;
2390
- reactIs_development$1.ContextConsumer = ContextConsumer;
2391
- reactIs_development$1.ContextProvider = ContextProvider;
2392
- reactIs_development$1.Element = Element;
2393
- reactIs_development$1.ForwardRef = ForwardRef;
2394
- reactIs_development$1.Fragment = Fragment;
2395
- reactIs_development$1.Lazy = Lazy;
2396
- reactIs_development$1.Memo = Memo;
2397
- reactIs_development$1.Portal = Portal;
2398
- reactIs_development$1.Profiler = Profiler;
2399
- reactIs_development$1.StrictMode = StrictMode;
2400
- reactIs_development$1.Suspense = Suspense;
2401
- reactIs_development$1.isAsyncMode = isAsyncMode;
2402
- reactIs_development$1.isConcurrentMode = isConcurrentMode;
2403
- reactIs_development$1.isContextConsumer = isContextConsumer;
2404
- reactIs_development$1.isContextProvider = isContextProvider;
2405
- reactIs_development$1.isElement = isElement;
2406
- reactIs_development$1.isForwardRef = isForwardRef;
2407
- reactIs_development$1.isFragment = isFragment;
2408
- reactIs_development$1.isLazy = isLazy;
2409
- reactIs_development$1.isMemo = isMemo;
2410
- reactIs_development$1.isPortal = isPortal;
2411
- reactIs_development$1.isProfiler = isProfiler;
2412
- reactIs_development$1.isStrictMode = isStrictMode;
2413
- reactIs_development$1.isSuspense = isSuspense;
2414
- reactIs_development$1.isValidElementType = isValidElementType;
2415
- reactIs_development$1.typeOf = typeOf;
2452
+ reactIs_development$3.AsyncMode = AsyncMode;
2453
+ reactIs_development$3.ConcurrentMode = ConcurrentMode;
2454
+ reactIs_development$3.ContextConsumer = ContextConsumer;
2455
+ reactIs_development$3.ContextProvider = ContextProvider;
2456
+ reactIs_development$3.Element = Element;
2457
+ reactIs_development$3.ForwardRef = ForwardRef;
2458
+ reactIs_development$3.Fragment = Fragment;
2459
+ reactIs_development$3.Lazy = Lazy;
2460
+ reactIs_development$3.Memo = Memo;
2461
+ reactIs_development$3.Portal = Portal;
2462
+ reactIs_development$3.Profiler = Profiler;
2463
+ reactIs_development$3.StrictMode = StrictMode;
2464
+ reactIs_development$3.Suspense = Suspense;
2465
+ reactIs_development$3.isAsyncMode = isAsyncMode;
2466
+ reactIs_development$3.isConcurrentMode = isConcurrentMode;
2467
+ reactIs_development$3.isContextConsumer = isContextConsumer;
2468
+ reactIs_development$3.isContextProvider = isContextProvider;
2469
+ reactIs_development$3.isElement = isElement;
2470
+ reactIs_development$3.isForwardRef = isForwardRef;
2471
+ reactIs_development$3.isFragment = isFragment;
2472
+ reactIs_development$3.isLazy = isLazy;
2473
+ reactIs_development$3.isMemo = isMemo;
2474
+ reactIs_development$3.isPortal = isPortal;
2475
+ reactIs_development$3.isProfiler = isProfiler;
2476
+ reactIs_development$3.isStrictMode = isStrictMode;
2477
+ reactIs_development$3.isSuspense = isSuspense;
2478
+ reactIs_development$3.isValidElementType = isValidElementType;
2479
+ reactIs_development$3.typeOf = typeOf;
2416
2480
  })();
2417
2481
  }
2418
- return reactIs_development$1;
2482
+ return reactIs_development$3;
2419
2483
  }
2420
2484
 
2421
- var hasRequiredReactIs$1;
2485
+ var hasRequiredReactIs$3;
2422
2486
 
2423
- function requireReactIs$1 () {
2424
- if (hasRequiredReactIs$1) return reactIs$1.exports;
2425
- hasRequiredReactIs$1 = 1;
2487
+ function requireReactIs$3 () {
2488
+ if (hasRequiredReactIs$3) return reactIs$3.exports;
2489
+ hasRequiredReactIs$3 = 1;
2426
2490
 
2427
2491
  if (process.env.NODE_ENV === 'production') {
2428
- reactIs$1.exports = requireReactIs_production_min$1();
2492
+ reactIs$3.exports = requireReactIs_production_min$3();
2429
2493
  } else {
2430
- reactIs$1.exports = requireReactIs_development$1();
2494
+ reactIs$3.exports = requireReactIs_development$3();
2431
2495
  }
2432
- return reactIs$1.exports;
2496
+ return reactIs$3.exports;
2433
2497
  }
2434
2498
 
2435
2499
  /*
@@ -2438,12 +2502,12 @@ object-assign
2438
2502
  @license MIT
2439
2503
  */
2440
2504
 
2441
- var objectAssign$1;
2442
- var hasRequiredObjectAssign$1;
2505
+ var objectAssign$3;
2506
+ var hasRequiredObjectAssign$3;
2443
2507
 
2444
- function requireObjectAssign$1 () {
2445
- if (hasRequiredObjectAssign$1) return objectAssign$1;
2446
- hasRequiredObjectAssign$1 = 1;
2508
+ function requireObjectAssign$3 () {
2509
+ if (hasRequiredObjectAssign$3) return objectAssign$3;
2510
+ hasRequiredObjectAssign$3 = 1;
2447
2511
  /* eslint-disable no-unused-vars */
2448
2512
  var getOwnPropertySymbols = Object.getOwnPropertySymbols;
2449
2513
  var hasOwnProperty = Object.prototype.hasOwnProperty;
@@ -2501,7 +2565,7 @@ function requireObjectAssign$1 () {
2501
2565
  }
2502
2566
  }
2503
2567
 
2504
- objectAssign$1 = shouldUseNative() ? Object.assign : function (target, source) {
2568
+ objectAssign$3 = shouldUseNative() ? Object.assign : function (target, source) {
2505
2569
  var from;
2506
2570
  var to = toObject(target);
2507
2571
  var symbols;
@@ -2527,7 +2591,7 @@ function requireObjectAssign$1 () {
2527
2591
 
2528
2592
  return to;
2529
2593
  };
2530
- return objectAssign$1;
2594
+ return objectAssign$3;
2531
2595
  }
2532
2596
 
2533
2597
  /**
@@ -2537,27 +2601,27 @@ function requireObjectAssign$1 () {
2537
2601
  * LICENSE file in the root directory of this source tree.
2538
2602
  */
2539
2603
 
2540
- var ReactPropTypesSecret_1$1;
2541
- var hasRequiredReactPropTypesSecret$1;
2604
+ var ReactPropTypesSecret_1$3;
2605
+ var hasRequiredReactPropTypesSecret$3;
2542
2606
 
2543
- function requireReactPropTypesSecret$1 () {
2544
- if (hasRequiredReactPropTypesSecret$1) return ReactPropTypesSecret_1$1;
2545
- hasRequiredReactPropTypesSecret$1 = 1;
2607
+ function requireReactPropTypesSecret$3 () {
2608
+ if (hasRequiredReactPropTypesSecret$3) return ReactPropTypesSecret_1$3;
2609
+ hasRequiredReactPropTypesSecret$3 = 1;
2546
2610
 
2547
2611
  var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
2548
2612
 
2549
- ReactPropTypesSecret_1$1 = ReactPropTypesSecret;
2550
- return ReactPropTypesSecret_1$1;
2613
+ ReactPropTypesSecret_1$3 = ReactPropTypesSecret;
2614
+ return ReactPropTypesSecret_1$3;
2551
2615
  }
2552
2616
 
2553
- var has$1;
2554
- var hasRequiredHas$1;
2617
+ var has$3;
2618
+ var hasRequiredHas$3;
2555
2619
 
2556
- function requireHas$1 () {
2557
- if (hasRequiredHas$1) return has$1;
2558
- hasRequiredHas$1 = 1;
2559
- has$1 = Function.call.bind(Object.prototype.hasOwnProperty);
2560
- return has$1;
2620
+ function requireHas$3 () {
2621
+ if (hasRequiredHas$3) return has$3;
2622
+ hasRequiredHas$3 = 1;
2623
+ has$3 = Function.call.bind(Object.prototype.hasOwnProperty);
2624
+ return has$3;
2561
2625
  }
2562
2626
 
2563
2627
  /**
@@ -2567,19 +2631,19 @@ function requireHas$1 () {
2567
2631
  * LICENSE file in the root directory of this source tree.
2568
2632
  */
2569
2633
 
2570
- var checkPropTypes_1$1;
2571
- var hasRequiredCheckPropTypes$1;
2634
+ var checkPropTypes_1$3;
2635
+ var hasRequiredCheckPropTypes$3;
2572
2636
 
2573
- function requireCheckPropTypes$1 () {
2574
- if (hasRequiredCheckPropTypes$1) return checkPropTypes_1$1;
2575
- hasRequiredCheckPropTypes$1 = 1;
2637
+ function requireCheckPropTypes$3 () {
2638
+ if (hasRequiredCheckPropTypes$3) return checkPropTypes_1$3;
2639
+ hasRequiredCheckPropTypes$3 = 1;
2576
2640
 
2577
2641
  var printWarning = function() {};
2578
2642
 
2579
2643
  if (process.env.NODE_ENV !== 'production') {
2580
- var ReactPropTypesSecret = /*@__PURE__*/ requireReactPropTypesSecret$1();
2644
+ var ReactPropTypesSecret = /*@__PURE__*/ requireReactPropTypesSecret$3();
2581
2645
  var loggedTypeFailures = {};
2582
- var has = /*@__PURE__*/ requireHas$1();
2646
+ var has = /*@__PURE__*/ requireHas$3();
2583
2647
 
2584
2648
  printWarning = function(text) {
2585
2649
  var message = 'Warning: ' + text;
@@ -2667,8 +2731,8 @@ function requireCheckPropTypes$1 () {
2667
2731
  }
2668
2732
  };
2669
2733
 
2670
- checkPropTypes_1$1 = checkPropTypes;
2671
- return checkPropTypes_1$1;
2734
+ checkPropTypes_1$3 = checkPropTypes;
2735
+ return checkPropTypes_1$3;
2672
2736
  }
2673
2737
 
2674
2738
  /**
@@ -2678,19 +2742,19 @@ function requireCheckPropTypes$1 () {
2678
2742
  * LICENSE file in the root directory of this source tree.
2679
2743
  */
2680
2744
 
2681
- var factoryWithTypeCheckers$1;
2682
- var hasRequiredFactoryWithTypeCheckers$1;
2745
+ var factoryWithTypeCheckers$3;
2746
+ var hasRequiredFactoryWithTypeCheckers$3;
2683
2747
 
2684
- function requireFactoryWithTypeCheckers$1 () {
2685
- if (hasRequiredFactoryWithTypeCheckers$1) return factoryWithTypeCheckers$1;
2686
- hasRequiredFactoryWithTypeCheckers$1 = 1;
2748
+ function requireFactoryWithTypeCheckers$3 () {
2749
+ if (hasRequiredFactoryWithTypeCheckers$3) return factoryWithTypeCheckers$3;
2750
+ hasRequiredFactoryWithTypeCheckers$3 = 1;
2687
2751
 
2688
- var ReactIs = requireReactIs$1();
2689
- var assign = requireObjectAssign$1();
2752
+ var ReactIs = requireReactIs$3();
2753
+ var assign = requireObjectAssign$3();
2690
2754
 
2691
- var ReactPropTypesSecret = /*@__PURE__*/ requireReactPropTypesSecret$1();
2692
- var has = /*@__PURE__*/ requireHas$1();
2693
- var checkPropTypes = /*@__PURE__*/ requireCheckPropTypes$1();
2755
+ var ReactPropTypesSecret = /*@__PURE__*/ requireReactPropTypesSecret$3();
2756
+ var has = /*@__PURE__*/ requireHas$3();
2757
+ var checkPropTypes = /*@__PURE__*/ requireCheckPropTypes$3();
2694
2758
 
2695
2759
  var printWarning = function() {};
2696
2760
 
@@ -2713,7 +2777,7 @@ function requireFactoryWithTypeCheckers$1 () {
2713
2777
  return null;
2714
2778
  }
2715
2779
 
2716
- factoryWithTypeCheckers$1 = function(isValidElement, throwOnDirectAccess) {
2780
+ factoryWithTypeCheckers$3 = function(isValidElement, throwOnDirectAccess) {
2717
2781
  /* global Symbol */
2718
2782
  var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
2719
2783
  var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
@@ -3286,7 +3350,7 @@ function requireFactoryWithTypeCheckers$1 () {
3286
3350
 
3287
3351
  return ReactPropTypes;
3288
3352
  };
3289
- return factoryWithTypeCheckers$1;
3353
+ return factoryWithTypeCheckers$3;
3290
3354
  }
3291
3355
 
3292
3356
  /**
@@ -3296,20 +3360,20 @@ function requireFactoryWithTypeCheckers$1 () {
3296
3360
  * LICENSE file in the root directory of this source tree.
3297
3361
  */
3298
3362
 
3299
- var factoryWithThrowingShims$1;
3300
- var hasRequiredFactoryWithThrowingShims$1;
3363
+ var factoryWithThrowingShims$3;
3364
+ var hasRequiredFactoryWithThrowingShims$3;
3301
3365
 
3302
- function requireFactoryWithThrowingShims$1 () {
3303
- if (hasRequiredFactoryWithThrowingShims$1) return factoryWithThrowingShims$1;
3304
- hasRequiredFactoryWithThrowingShims$1 = 1;
3366
+ function requireFactoryWithThrowingShims$3 () {
3367
+ if (hasRequiredFactoryWithThrowingShims$3) return factoryWithThrowingShims$3;
3368
+ hasRequiredFactoryWithThrowingShims$3 = 1;
3305
3369
 
3306
- var ReactPropTypesSecret = /*@__PURE__*/ requireReactPropTypesSecret$1();
3370
+ var ReactPropTypesSecret = /*@__PURE__*/ requireReactPropTypesSecret$3();
3307
3371
 
3308
3372
  function emptyFunction() {}
3309
3373
  function emptyFunctionWithReset() {}
3310
3374
  emptyFunctionWithReset.resetWarningCache = emptyFunction;
3311
3375
 
3312
- factoryWithThrowingShims$1 = function() {
3376
+ factoryWithThrowingShims$3 = function() {
3313
3377
  function shim(props, propName, componentName, location, propFullName, secret) {
3314
3378
  if (secret === ReactPropTypesSecret) {
3315
3379
  // It is still safe when called from React.
@@ -3357,7 +3421,7 @@ function requireFactoryWithThrowingShims$1 () {
3357
3421
 
3358
3422
  return ReactPropTypes;
3359
3423
  };
3360
- return factoryWithThrowingShims$1;
3424
+ return factoryWithThrowingShims$3;
3361
3425
  }
3362
3426
 
3363
3427
  /**
@@ -3367,28 +3431,28 @@ function requireFactoryWithThrowingShims$1 () {
3367
3431
  * LICENSE file in the root directory of this source tree.
3368
3432
  */
3369
3433
 
3370
- var hasRequiredPropTypes$1;
3434
+ var hasRequiredPropTypes$3;
3371
3435
 
3372
- function requirePropTypes$1 () {
3373
- if (hasRequiredPropTypes$1) return propTypes$1.exports;
3374
- hasRequiredPropTypes$1 = 1;
3436
+ function requirePropTypes$3 () {
3437
+ if (hasRequiredPropTypes$3) return propTypes$3.exports;
3438
+ hasRequiredPropTypes$3 = 1;
3375
3439
  if (process.env.NODE_ENV !== 'production') {
3376
- var ReactIs = requireReactIs$1();
3440
+ var ReactIs = requireReactIs$3();
3377
3441
 
3378
3442
  // By explicitly using `prop-types` you are opting into new development behavior.
3379
3443
  // http://fb.me/prop-types-in-prod
3380
3444
  var throwOnDirectAccess = true;
3381
- propTypes$1.exports = /*@__PURE__*/ requireFactoryWithTypeCheckers$1()(ReactIs.isElement, throwOnDirectAccess);
3445
+ propTypes$3.exports = /*@__PURE__*/ requireFactoryWithTypeCheckers$3()(ReactIs.isElement, throwOnDirectAccess);
3382
3446
  } else {
3383
3447
  // By explicitly using `prop-types` you are opting into new production behavior.
3384
3448
  // http://fb.me/prop-types-in-prod
3385
- propTypes$1.exports = /*@__PURE__*/ requireFactoryWithThrowingShims$1()();
3449
+ propTypes$3.exports = /*@__PURE__*/ requireFactoryWithThrowingShims$3()();
3386
3450
  }
3387
- return propTypes$1.exports;
3451
+ return propTypes$3.exports;
3388
3452
  }
3389
3453
 
3390
- var propTypesExports$1 = /*@__PURE__*/ requirePropTypes$1();
3391
- var PropTypes$1 = /*@__PURE__*/getDefaultExportFromCjs$1(propTypesExports$1);
3454
+ var propTypesExports$3 = /*@__PURE__*/ requirePropTypes$3();
3455
+ var PropTypes$3 = /*@__PURE__*/getDefaultExportFromCjs$3(propTypesExports$3);
3392
3456
 
3393
3457
  const SystemOperations = _ref => {
3394
3458
  let {
@@ -3470,15 +3534,15 @@ const SystemOperations = _ref => {
3470
3534
  });
3471
3535
  };
3472
3536
  SystemOperations.propTypes = {
3473
- onPowerOff: PropTypes$1.func,
3474
- onRestart: PropTypes$1.func,
3475
- powerOffLabel: PropTypes$1.string,
3476
- restartLabel: PropTypes$1.string,
3477
- iconClassName: PropTypes$1.string,
3478
- confirmTitle: PropTypes$1.string,
3479
- cancelText: PropTypes$1.string,
3480
- okText: PropTypes$1.string,
3481
- run: PropTypes$1.func
3537
+ onPowerOff: PropTypes$3.func,
3538
+ onRestart: PropTypes$3.func,
3539
+ powerOffLabel: PropTypes$3.string,
3540
+ restartLabel: PropTypes$3.string,
3541
+ iconClassName: PropTypes$3.string,
3542
+ confirmTitle: PropTypes$3.string,
3543
+ cancelText: PropTypes$3.string,
3544
+ okText: PropTypes$3.string,
3545
+ run: PropTypes$3.func
3482
3546
  };
3483
3547
  var SystemOperations$1 = SystemOperations;
3484
3548
 
@@ -3521,10 +3585,10 @@ const useSpaLogo = function () {
3521
3585
  }, "logo")];
3522
3586
  };
3523
3587
  useSpaLogo.propTypes = {
3524
- logoUrl: PropTypes$1.string,
3525
- logoWidth: PropTypes$1.number,
3526
- logoAlt: PropTypes$1.string,
3527
- onClick: PropTypes$1.func
3588
+ logoUrl: PropTypes$3.string,
3589
+ logoWidth: PropTypes$3.number,
3590
+ logoAlt: PropTypes$3.string,
3591
+ onClick: PropTypes$3.func
3528
3592
  };
3529
3593
  var useSpaLogo$1 = useSpaLogo;
3530
3594
 
@@ -3570,7 +3634,9 @@ const CommonHeader = _ref => {
3570
3634
  className = '',
3571
3635
  style = {},
3572
3636
  // 新增插槽
3573
- leftContent // 左侧额外内容
3637
+ leftContent = null,
3638
+ // 左侧额外内容
3639
+ rightContent = null // 右侧额外内容
3574
3640
  } = _ref;
3575
3641
  const [logo] = useSpaLogo$1(logoProps);
3576
3642
 
@@ -3604,7 +3670,7 @@ const CommonHeader = _ref => {
3604
3670
  }), /*#__PURE__*/jsxs(Flex, {
3605
3671
  align: "center",
3606
3672
  gap: 10,
3607
- children: [showHardwareUsage && usageElement, /*#__PURE__*/jsxs("div", {
3673
+ children: [rightContent, showHardwareUsage && usageElement, /*#__PURE__*/jsxs("div", {
3608
3674
  className: "header-controls",
3609
3675
  children: [menuElement && /*#__PURE__*/jsx("div", {
3610
3676
  className: "control-icon",
@@ -3624,23 +3690,23 @@ const CommonHeader = _ref => {
3624
3690
 
3625
3691
  // PropTypes 类型检查
3626
3692
  CommonHeader.propTypes = {
3627
- menuElement: PropTypes$1.node,
3628
- productInfo: PropTypes$1.shape({
3629
- productName: PropTypes$1.string,
3630
- version: PropTypes$1.string
3693
+ menuElement: PropTypes$3.node,
3694
+ productInfo: PropTypes$3.shape({
3695
+ productName: PropTypes$3.string,
3696
+ version: PropTypes$3.string
3631
3697
  }),
3632
- showLogo: PropTypes$1.bool,
3633
- showProductInfo: PropTypes$1.bool,
3634
- showHardwareUsage: PropTypes$1.bool,
3635
- showSystemOperations: PropTypes$1.bool,
3636
- onPowerOff: PropTypes$1.func,
3637
- onRestart: PropTypes$1.func,
3638
- onRun: PropTypes$1.func,
3639
- hardwareMonitorUrl: PropTypes$1.string,
3640
- getSocketUrl: PropTypes$1.func,
3641
- logoProps: PropTypes$1.object,
3642
- className: PropTypes$1.string,
3643
- style: PropTypes$1.object
3698
+ showLogo: PropTypes$3.bool,
3699
+ showProductInfo: PropTypes$3.bool,
3700
+ showHardwareUsage: PropTypes$3.bool,
3701
+ showSystemOperations: PropTypes$3.bool,
3702
+ onPowerOff: PropTypes$3.func,
3703
+ onRestart: PropTypes$3.func,
3704
+ onRun: PropTypes$3.func,
3705
+ hardwareMonitorUrl: PropTypes$3.string,
3706
+ getSocketUrl: PropTypes$3.func,
3707
+ logoProps: PropTypes$3.object,
3708
+ className: PropTypes$3.string,
3709
+ style: PropTypes$3.object
3644
3710
  };
3645
3711
  var CommonHeader$1 = CommonHeader;
3646
3712
 
@@ -3797,6 +3863,2402 @@ const StyledModal = props => {
3797
3863
  }, restProps));
3798
3864
  };
3799
3865
  var StyledModal$1 = StyledModal;
3866
+ function getDefaultExportFromCjs$2(x) {
3867
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
3868
+ }
3869
+ var propTypes$2 = {
3870
+ exports: {}
3871
+ };
3872
+ var reactIs$2 = {
3873
+ exports: {}
3874
+ };
3875
+ var reactIs_production_min$2 = {};
3876
+
3877
+ /** @license React v16.13.1
3878
+ * react-is.production.min.js
3879
+ *
3880
+ * Copyright (c) Facebook, Inc. and its affiliates.
3881
+ *
3882
+ * This source code is licensed under the MIT license found in the
3883
+ * LICENSE file in the root directory of this source tree.
3884
+ */
3885
+
3886
+ var hasRequiredReactIs_production_min$2;
3887
+ function requireReactIs_production_min$2() {
3888
+ if (hasRequiredReactIs_production_min$2) return reactIs_production_min$2;
3889
+ hasRequiredReactIs_production_min$2 = 1;
3890
+ var b = "function" === typeof Symbol && Symbol.for,
3891
+ c = b ? Symbol.for("react.element") : 60103,
3892
+ d = b ? Symbol.for("react.portal") : 60106,
3893
+ e = b ? Symbol.for("react.fragment") : 60107,
3894
+ f = b ? Symbol.for("react.strict_mode") : 60108,
3895
+ g = b ? Symbol.for("react.profiler") : 60114,
3896
+ h = b ? Symbol.for("react.provider") : 60109,
3897
+ k = b ? Symbol.for("react.context") : 60110,
3898
+ l = b ? Symbol.for("react.async_mode") : 60111,
3899
+ m = b ? Symbol.for("react.concurrent_mode") : 60111,
3900
+ n = b ? Symbol.for("react.forward_ref") : 60112,
3901
+ p = b ? Symbol.for("react.suspense") : 60113,
3902
+ q = b ? Symbol.for("react.suspense_list") : 60120,
3903
+ r = b ? Symbol.for("react.memo") : 60115,
3904
+ t = b ? Symbol.for("react.lazy") : 60116,
3905
+ v = b ? Symbol.for("react.block") : 60121,
3906
+ w = b ? Symbol.for("react.fundamental") : 60117,
3907
+ x = b ? Symbol.for("react.responder") : 60118,
3908
+ y = b ? Symbol.for("react.scope") : 60119;
3909
+ function z(a) {
3910
+ if ("object" === typeof a && null !== a) {
3911
+ var u = a.$$typeof;
3912
+ switch (u) {
3913
+ case c:
3914
+ switch (a = a.type, a) {
3915
+ case l:
3916
+ case m:
3917
+ case e:
3918
+ case g:
3919
+ case f:
3920
+ case p:
3921
+ return a;
3922
+ default:
3923
+ switch (a = a && a.$$typeof, a) {
3924
+ case k:
3925
+ case n:
3926
+ case t:
3927
+ case r:
3928
+ case h:
3929
+ return a;
3930
+ default:
3931
+ return u;
3932
+ }
3933
+ }
3934
+ case d:
3935
+ return u;
3936
+ }
3937
+ }
3938
+ }
3939
+ function A(a) {
3940
+ return z(a) === m;
3941
+ }
3942
+ reactIs_production_min$2.AsyncMode = l;
3943
+ reactIs_production_min$2.ConcurrentMode = m;
3944
+ reactIs_production_min$2.ContextConsumer = k;
3945
+ reactIs_production_min$2.ContextProvider = h;
3946
+ reactIs_production_min$2.Element = c;
3947
+ reactIs_production_min$2.ForwardRef = n;
3948
+ reactIs_production_min$2.Fragment = e;
3949
+ reactIs_production_min$2.Lazy = t;
3950
+ reactIs_production_min$2.Memo = r;
3951
+ reactIs_production_min$2.Portal = d;
3952
+ reactIs_production_min$2.Profiler = g;
3953
+ reactIs_production_min$2.StrictMode = f;
3954
+ reactIs_production_min$2.Suspense = p;
3955
+ reactIs_production_min$2.isAsyncMode = function (a) {
3956
+ return A(a) || z(a) === l;
3957
+ };
3958
+ reactIs_production_min$2.isConcurrentMode = A;
3959
+ reactIs_production_min$2.isContextConsumer = function (a) {
3960
+ return z(a) === k;
3961
+ };
3962
+ reactIs_production_min$2.isContextProvider = function (a) {
3963
+ return z(a) === h;
3964
+ };
3965
+ reactIs_production_min$2.isElement = function (a) {
3966
+ return "object" === typeof a && null !== a && a.$$typeof === c;
3967
+ };
3968
+ reactIs_production_min$2.isForwardRef = function (a) {
3969
+ return z(a) === n;
3970
+ };
3971
+ reactIs_production_min$2.isFragment = function (a) {
3972
+ return z(a) === e;
3973
+ };
3974
+ reactIs_production_min$2.isLazy = function (a) {
3975
+ return z(a) === t;
3976
+ };
3977
+ reactIs_production_min$2.isMemo = function (a) {
3978
+ return z(a) === r;
3979
+ };
3980
+ reactIs_production_min$2.isPortal = function (a) {
3981
+ return z(a) === d;
3982
+ };
3983
+ reactIs_production_min$2.isProfiler = function (a) {
3984
+ return z(a) === g;
3985
+ };
3986
+ reactIs_production_min$2.isStrictMode = function (a) {
3987
+ return z(a) === f;
3988
+ };
3989
+ reactIs_production_min$2.isSuspense = function (a) {
3990
+ return z(a) === p;
3991
+ };
3992
+ reactIs_production_min$2.isValidElementType = function (a) {
3993
+ return "string" === typeof a || "function" === typeof a || a === e || a === m || a === g || a === f || a === p || a === q || "object" === typeof a && null !== a && (a.$$typeof === t || a.$$typeof === r || a.$$typeof === h || a.$$typeof === k || a.$$typeof === n || a.$$typeof === w || a.$$typeof === x || a.$$typeof === y || a.$$typeof === v);
3994
+ };
3995
+ reactIs_production_min$2.typeOf = z;
3996
+ return reactIs_production_min$2;
3997
+ }
3998
+ var reactIs_development$2 = {};
3999
+
4000
+ /** @license React v16.13.1
4001
+ * react-is.development.js
4002
+ *
4003
+ * Copyright (c) Facebook, Inc. and its affiliates.
4004
+ *
4005
+ * This source code is licensed under the MIT license found in the
4006
+ * LICENSE file in the root directory of this source tree.
4007
+ */
4008
+
4009
+ var hasRequiredReactIs_development$2;
4010
+ function requireReactIs_development$2() {
4011
+ if (hasRequiredReactIs_development$2) return reactIs_development$2;
4012
+ hasRequiredReactIs_development$2 = 1;
4013
+ if (process.env.NODE_ENV !== "production") {
4014
+ (function () {
4015
+ // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
4016
+ // nor polyfill, then a plain number is used for performance.
4017
+ var hasSymbol = typeof Symbol === 'function' && Symbol.for;
4018
+ var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
4019
+ var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
4020
+ var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
4021
+ var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
4022
+ var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
4023
+ var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
4024
+ var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
4025
+ // (unstable) APIs that have been removed. Can we remove the symbols?
4026
+
4027
+ var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
4028
+ var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
4029
+ var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
4030
+ var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
4031
+ var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
4032
+ var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
4033
+ var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
4034
+ var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
4035
+ var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
4036
+ var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
4037
+ var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
4038
+ function isValidElementType(type) {
4039
+ return typeof type === 'string' || typeof type === 'function' ||
4040
+ // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
4041
+ 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);
4042
+ }
4043
+ function typeOf(object) {
4044
+ if (typeof object === 'object' && object !== null) {
4045
+ var $$typeof = object.$$typeof;
4046
+ switch ($$typeof) {
4047
+ case REACT_ELEMENT_TYPE:
4048
+ var type = object.type;
4049
+ switch (type) {
4050
+ case REACT_ASYNC_MODE_TYPE:
4051
+ case REACT_CONCURRENT_MODE_TYPE:
4052
+ case REACT_FRAGMENT_TYPE:
4053
+ case REACT_PROFILER_TYPE:
4054
+ case REACT_STRICT_MODE_TYPE:
4055
+ case REACT_SUSPENSE_TYPE:
4056
+ return type;
4057
+ default:
4058
+ var $$typeofType = type && type.$$typeof;
4059
+ switch ($$typeofType) {
4060
+ case REACT_CONTEXT_TYPE:
4061
+ case REACT_FORWARD_REF_TYPE:
4062
+ case REACT_LAZY_TYPE:
4063
+ case REACT_MEMO_TYPE:
4064
+ case REACT_PROVIDER_TYPE:
4065
+ return $$typeofType;
4066
+ default:
4067
+ return $$typeof;
4068
+ }
4069
+ }
4070
+ case REACT_PORTAL_TYPE:
4071
+ return $$typeof;
4072
+ }
4073
+ }
4074
+ return undefined;
4075
+ } // AsyncMode is deprecated along with isAsyncMode
4076
+
4077
+ var AsyncMode = REACT_ASYNC_MODE_TYPE;
4078
+ var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
4079
+ var ContextConsumer = REACT_CONTEXT_TYPE;
4080
+ var ContextProvider = REACT_PROVIDER_TYPE;
4081
+ var Element = REACT_ELEMENT_TYPE;
4082
+ var ForwardRef = REACT_FORWARD_REF_TYPE;
4083
+ var Fragment = REACT_FRAGMENT_TYPE;
4084
+ var Lazy = REACT_LAZY_TYPE;
4085
+ var Memo = REACT_MEMO_TYPE;
4086
+ var Portal = REACT_PORTAL_TYPE;
4087
+ var Profiler = REACT_PROFILER_TYPE;
4088
+ var StrictMode = REACT_STRICT_MODE_TYPE;
4089
+ var Suspense = REACT_SUSPENSE_TYPE;
4090
+ var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
4091
+
4092
+ function isAsyncMode(object) {
4093
+ {
4094
+ if (!hasWarnedAboutDeprecatedIsAsyncMode) {
4095
+ hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
4096
+
4097
+ console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
4098
+ }
4099
+ }
4100
+ return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
4101
+ }
4102
+ function isConcurrentMode(object) {
4103
+ return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
4104
+ }
4105
+ function isContextConsumer(object) {
4106
+ return typeOf(object) === REACT_CONTEXT_TYPE;
4107
+ }
4108
+ function isContextProvider(object) {
4109
+ return typeOf(object) === REACT_PROVIDER_TYPE;
4110
+ }
4111
+ function isElement(object) {
4112
+ return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
4113
+ }
4114
+ function isForwardRef(object) {
4115
+ return typeOf(object) === REACT_FORWARD_REF_TYPE;
4116
+ }
4117
+ function isFragment(object) {
4118
+ return typeOf(object) === REACT_FRAGMENT_TYPE;
4119
+ }
4120
+ function isLazy(object) {
4121
+ return typeOf(object) === REACT_LAZY_TYPE;
4122
+ }
4123
+ function isMemo(object) {
4124
+ return typeOf(object) === REACT_MEMO_TYPE;
4125
+ }
4126
+ function isPortal(object) {
4127
+ return typeOf(object) === REACT_PORTAL_TYPE;
4128
+ }
4129
+ function isProfiler(object) {
4130
+ return typeOf(object) === REACT_PROFILER_TYPE;
4131
+ }
4132
+ function isStrictMode(object) {
4133
+ return typeOf(object) === REACT_STRICT_MODE_TYPE;
4134
+ }
4135
+ function isSuspense(object) {
4136
+ return typeOf(object) === REACT_SUSPENSE_TYPE;
4137
+ }
4138
+ reactIs_development$2.AsyncMode = AsyncMode;
4139
+ reactIs_development$2.ConcurrentMode = ConcurrentMode;
4140
+ reactIs_development$2.ContextConsumer = ContextConsumer;
4141
+ reactIs_development$2.ContextProvider = ContextProvider;
4142
+ reactIs_development$2.Element = Element;
4143
+ reactIs_development$2.ForwardRef = ForwardRef;
4144
+ reactIs_development$2.Fragment = Fragment;
4145
+ reactIs_development$2.Lazy = Lazy;
4146
+ reactIs_development$2.Memo = Memo;
4147
+ reactIs_development$2.Portal = Portal;
4148
+ reactIs_development$2.Profiler = Profiler;
4149
+ reactIs_development$2.StrictMode = StrictMode;
4150
+ reactIs_development$2.Suspense = Suspense;
4151
+ reactIs_development$2.isAsyncMode = isAsyncMode;
4152
+ reactIs_development$2.isConcurrentMode = isConcurrentMode;
4153
+ reactIs_development$2.isContextConsumer = isContextConsumer;
4154
+ reactIs_development$2.isContextProvider = isContextProvider;
4155
+ reactIs_development$2.isElement = isElement;
4156
+ reactIs_development$2.isForwardRef = isForwardRef;
4157
+ reactIs_development$2.isFragment = isFragment;
4158
+ reactIs_development$2.isLazy = isLazy;
4159
+ reactIs_development$2.isMemo = isMemo;
4160
+ reactIs_development$2.isPortal = isPortal;
4161
+ reactIs_development$2.isProfiler = isProfiler;
4162
+ reactIs_development$2.isStrictMode = isStrictMode;
4163
+ reactIs_development$2.isSuspense = isSuspense;
4164
+ reactIs_development$2.isValidElementType = isValidElementType;
4165
+ reactIs_development$2.typeOf = typeOf;
4166
+ })();
4167
+ }
4168
+ return reactIs_development$2;
4169
+ }
4170
+ var hasRequiredReactIs$2;
4171
+ function requireReactIs$2() {
4172
+ if (hasRequiredReactIs$2) return reactIs$2.exports;
4173
+ hasRequiredReactIs$2 = 1;
4174
+ if (process.env.NODE_ENV === 'production') {
4175
+ reactIs$2.exports = requireReactIs_production_min$2();
4176
+ } else {
4177
+ reactIs$2.exports = requireReactIs_development$2();
4178
+ }
4179
+ return reactIs$2.exports;
4180
+ }
4181
+
4182
+ /*
4183
+ object-assign
4184
+ (c) Sindre Sorhus
4185
+ @license MIT
4186
+ */
4187
+
4188
+ var objectAssign$2;
4189
+ var hasRequiredObjectAssign$2;
4190
+ function requireObjectAssign$2() {
4191
+ if (hasRequiredObjectAssign$2) return objectAssign$2;
4192
+ hasRequiredObjectAssign$2 = 1;
4193
+ /* eslint-disable no-unused-vars */
4194
+ var getOwnPropertySymbols = Object.getOwnPropertySymbols;
4195
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
4196
+ var propIsEnumerable = Object.prototype.propertyIsEnumerable;
4197
+ function toObject(val) {
4198
+ if (val === null || val === undefined) {
4199
+ throw new TypeError('Object.assign cannot be called with null or undefined');
4200
+ }
4201
+ return Object(val);
4202
+ }
4203
+ function shouldUseNative() {
4204
+ try {
4205
+ if (!Object.assign) {
4206
+ return false;
4207
+ }
4208
+
4209
+ // Detect buggy property enumeration order in older V8 versions.
4210
+
4211
+ // https://bugs.chromium.org/p/v8/issues/detail?id=4118
4212
+ var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
4213
+ test1[5] = 'de';
4214
+ if (Object.getOwnPropertyNames(test1)[0] === '5') {
4215
+ return false;
4216
+ }
4217
+
4218
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3056
4219
+ var test2 = {};
4220
+ for (var i = 0; i < 10; i++) {
4221
+ test2['_' + String.fromCharCode(i)] = i;
4222
+ }
4223
+ var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
4224
+ return test2[n];
4225
+ });
4226
+ if (order2.join('') !== '0123456789') {
4227
+ return false;
4228
+ }
4229
+
4230
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3056
4231
+ var test3 = {};
4232
+ 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
4233
+ test3[letter] = letter;
4234
+ });
4235
+ if (Object.keys(Object.assign({}, test3)).join('') !== 'abcdefghijklmnopqrst') {
4236
+ return false;
4237
+ }
4238
+ return true;
4239
+ } catch (err) {
4240
+ // We don't expect any of the above to throw, but better to be safe.
4241
+ return false;
4242
+ }
4243
+ }
4244
+ objectAssign$2 = shouldUseNative() ? Object.assign : function (target, source) {
4245
+ var from;
4246
+ var to = toObject(target);
4247
+ var symbols;
4248
+ for (var s = 1; s < arguments.length; s++) {
4249
+ from = Object(arguments[s]);
4250
+ for (var key in from) {
4251
+ if (hasOwnProperty.call(from, key)) {
4252
+ to[key] = from[key];
4253
+ }
4254
+ }
4255
+ if (getOwnPropertySymbols) {
4256
+ symbols = getOwnPropertySymbols(from);
4257
+ for (var i = 0; i < symbols.length; i++) {
4258
+ if (propIsEnumerable.call(from, symbols[i])) {
4259
+ to[symbols[i]] = from[symbols[i]];
4260
+ }
4261
+ }
4262
+ }
4263
+ }
4264
+ return to;
4265
+ };
4266
+ return objectAssign$2;
4267
+ }
4268
+
4269
+ /**
4270
+ * Copyright (c) 2013-present, Facebook, Inc.
4271
+ *
4272
+ * This source code is licensed under the MIT license found in the
4273
+ * LICENSE file in the root directory of this source tree.
4274
+ */
4275
+
4276
+ var ReactPropTypesSecret_1$2;
4277
+ var hasRequiredReactPropTypesSecret$2;
4278
+ function requireReactPropTypesSecret$2() {
4279
+ if (hasRequiredReactPropTypesSecret$2) return ReactPropTypesSecret_1$2;
4280
+ hasRequiredReactPropTypesSecret$2 = 1;
4281
+ var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
4282
+ ReactPropTypesSecret_1$2 = ReactPropTypesSecret;
4283
+ return ReactPropTypesSecret_1$2;
4284
+ }
4285
+ var has$2;
4286
+ var hasRequiredHas$2;
4287
+ function requireHas$2() {
4288
+ if (hasRequiredHas$2) return has$2;
4289
+ hasRequiredHas$2 = 1;
4290
+ has$2 = Function.call.bind(Object.prototype.hasOwnProperty);
4291
+ return has$2;
4292
+ }
4293
+
4294
+ /**
4295
+ * Copyright (c) 2013-present, Facebook, Inc.
4296
+ *
4297
+ * This source code is licensed under the MIT license found in the
4298
+ * LICENSE file in the root directory of this source tree.
4299
+ */
4300
+
4301
+ var checkPropTypes_1$2;
4302
+ var hasRequiredCheckPropTypes$2;
4303
+ function requireCheckPropTypes$2() {
4304
+ if (hasRequiredCheckPropTypes$2) return checkPropTypes_1$2;
4305
+ hasRequiredCheckPropTypes$2 = 1;
4306
+ var printWarning = function () {};
4307
+ if (process.env.NODE_ENV !== 'production') {
4308
+ var ReactPropTypesSecret = /*@__PURE__*/requireReactPropTypesSecret$2();
4309
+ var loggedTypeFailures = {};
4310
+ var has = /*@__PURE__*/requireHas$2();
4311
+ printWarning = function (text) {
4312
+ var message = 'Warning: ' + text;
4313
+ if (typeof console !== 'undefined') {
4314
+ console.error(message);
4315
+ }
4316
+ try {
4317
+ // --- Welcome to debugging React ---
4318
+ // This error was thrown as a convenience so that you can use this stack
4319
+ // to find the callsite that caused this warning to fire.
4320
+ throw new Error(message);
4321
+ } catch (x) {/**/}
4322
+ };
4323
+ }
4324
+
4325
+ /**
4326
+ * Assert that the values match with the type specs.
4327
+ * Error messages are memorized and will only be shown once.
4328
+ *
4329
+ * @param {object} typeSpecs Map of name to a ReactPropType
4330
+ * @param {object} values Runtime values that need to be type-checked
4331
+ * @param {string} location e.g. "prop", "context", "child context"
4332
+ * @param {string} componentName Name of the component for error messages.
4333
+ * @param {?Function} getStack Returns the component stack.
4334
+ * @private
4335
+ */
4336
+ function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
4337
+ if (process.env.NODE_ENV !== 'production') {
4338
+ for (var typeSpecName in typeSpecs) {
4339
+ if (has(typeSpecs, typeSpecName)) {
4340
+ var error;
4341
+ // Prop type validation may throw. In case they do, we don't want to
4342
+ // fail the render phase where it didn't fail before. So we log it.
4343
+ // After these have been cleaned up, we'll let them throw.
4344
+ try {
4345
+ // This is intentionally an invariant that gets caught. It's the same
4346
+ // behavior as without this statement except with a better message.
4347
+ if (typeof typeSpecs[typeSpecName] !== 'function') {
4348
+ 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`.');
4349
+ err.name = 'Invariant Violation';
4350
+ throw err;
4351
+ }
4352
+ error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
4353
+ } catch (ex) {
4354
+ error = ex;
4355
+ }
4356
+ if (error && !(error instanceof Error)) {
4357
+ 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).');
4358
+ }
4359
+ if (error instanceof Error && !(error.message in loggedTypeFailures)) {
4360
+ // Only monitor this failure once because there tends to be a lot of the
4361
+ // same error.
4362
+ loggedTypeFailures[error.message] = true;
4363
+ var stack = getStack ? getStack() : '';
4364
+ printWarning('Failed ' + location + ' type: ' + error.message + (stack != null ? stack : ''));
4365
+ }
4366
+ }
4367
+ }
4368
+ }
4369
+ }
4370
+
4371
+ /**
4372
+ * Resets warning cache when testing.
4373
+ *
4374
+ * @private
4375
+ */
4376
+ checkPropTypes.resetWarningCache = function () {
4377
+ if (process.env.NODE_ENV !== 'production') {
4378
+ loggedTypeFailures = {};
4379
+ }
4380
+ };
4381
+ checkPropTypes_1$2 = checkPropTypes;
4382
+ return checkPropTypes_1$2;
4383
+ }
4384
+
4385
+ /**
4386
+ * Copyright (c) 2013-present, Facebook, Inc.
4387
+ *
4388
+ * This source code is licensed under the MIT license found in the
4389
+ * LICENSE file in the root directory of this source tree.
4390
+ */
4391
+
4392
+ var factoryWithTypeCheckers$2;
4393
+ var hasRequiredFactoryWithTypeCheckers$2;
4394
+ function requireFactoryWithTypeCheckers$2() {
4395
+ if (hasRequiredFactoryWithTypeCheckers$2) return factoryWithTypeCheckers$2;
4396
+ hasRequiredFactoryWithTypeCheckers$2 = 1;
4397
+ var ReactIs = requireReactIs$2();
4398
+ var assign = requireObjectAssign$2();
4399
+ var ReactPropTypesSecret = /*@__PURE__*/requireReactPropTypesSecret$2();
4400
+ var has = /*@__PURE__*/requireHas$2();
4401
+ var checkPropTypes = /*@__PURE__*/requireCheckPropTypes$2();
4402
+ var printWarning = function () {};
4403
+ if (process.env.NODE_ENV !== 'production') {
4404
+ printWarning = function (text) {
4405
+ var message = 'Warning: ' + text;
4406
+ if (typeof console !== 'undefined') {
4407
+ console.error(message);
4408
+ }
4409
+ try {
4410
+ // --- Welcome to debugging React ---
4411
+ // This error was thrown as a convenience so that you can use this stack
4412
+ // to find the callsite that caused this warning to fire.
4413
+ throw new Error(message);
4414
+ } catch (x) {}
4415
+ };
4416
+ }
4417
+ function emptyFunctionThatReturnsNull() {
4418
+ return null;
4419
+ }
4420
+ factoryWithTypeCheckers$2 = function (isValidElement, throwOnDirectAccess) {
4421
+ /* global Symbol */
4422
+ var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
4423
+ var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
4424
+
4425
+ /**
4426
+ * Returns the iterator method function contained on the iterable object.
4427
+ *
4428
+ * Be sure to invoke the function with the iterable as context:
4429
+ *
4430
+ * var iteratorFn = getIteratorFn(myIterable);
4431
+ * if (iteratorFn) {
4432
+ * var iterator = iteratorFn.call(myIterable);
4433
+ * ...
4434
+ * }
4435
+ *
4436
+ * @param {?object} maybeIterable
4437
+ * @return {?function}
4438
+ */
4439
+ function getIteratorFn(maybeIterable) {
4440
+ var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
4441
+ if (typeof iteratorFn === 'function') {
4442
+ return iteratorFn;
4443
+ }
4444
+ }
4445
+
4446
+ /**
4447
+ * Collection of methods that allow declaration and validation of props that are
4448
+ * supplied to React components. Example usage:
4449
+ *
4450
+ * var Props = require('ReactPropTypes');
4451
+ * var MyArticle = React.createClass({
4452
+ * propTypes: {
4453
+ * // An optional string prop named "description".
4454
+ * description: Props.string,
4455
+ *
4456
+ * // A required enum prop named "category".
4457
+ * category: Props.oneOf(['News','Photos']).isRequired,
4458
+ *
4459
+ * // A prop named "dialog" that requires an instance of Dialog.
4460
+ * dialog: Props.instanceOf(Dialog).isRequired
4461
+ * },
4462
+ * render: function() { ... }
4463
+ * });
4464
+ *
4465
+ * A more formal specification of how these methods are used:
4466
+ *
4467
+ * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
4468
+ * decl := ReactPropTypes.{type}(.isRequired)?
4469
+ *
4470
+ * Each and every declaration produces a function with the same signature. This
4471
+ * allows the creation of custom validation functions. For example:
4472
+ *
4473
+ * var MyLink = React.createClass({
4474
+ * propTypes: {
4475
+ * // An optional string or URI prop named "href".
4476
+ * href: function(props, propName, componentName) {
4477
+ * var propValue = props[propName];
4478
+ * if (propValue != null && typeof propValue !== 'string' &&
4479
+ * !(propValue instanceof URI)) {
4480
+ * return new Error(
4481
+ * 'Expected a string or an URI for ' + propName + ' in ' +
4482
+ * componentName
4483
+ * );
4484
+ * }
4485
+ * }
4486
+ * },
4487
+ * render: function() {...}
4488
+ * });
4489
+ *
4490
+ * @internal
4491
+ */
4492
+
4493
+ var ANONYMOUS = '<<anonymous>>';
4494
+
4495
+ // Important!
4496
+ // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
4497
+ var ReactPropTypes = {
4498
+ array: createPrimitiveTypeChecker('array'),
4499
+ bigint: createPrimitiveTypeChecker('bigint'),
4500
+ bool: createPrimitiveTypeChecker('boolean'),
4501
+ func: createPrimitiveTypeChecker('function'),
4502
+ number: createPrimitiveTypeChecker('number'),
4503
+ object: createPrimitiveTypeChecker('object'),
4504
+ string: createPrimitiveTypeChecker('string'),
4505
+ symbol: createPrimitiveTypeChecker('symbol'),
4506
+ any: createAnyTypeChecker(),
4507
+ arrayOf: createArrayOfTypeChecker,
4508
+ element: createElementTypeChecker(),
4509
+ elementType: createElementTypeTypeChecker(),
4510
+ instanceOf: createInstanceTypeChecker,
4511
+ node: createNodeChecker(),
4512
+ objectOf: createObjectOfTypeChecker,
4513
+ oneOf: createEnumTypeChecker,
4514
+ oneOfType: createUnionTypeChecker,
4515
+ shape: createShapeTypeChecker,
4516
+ exact: createStrictShapeTypeChecker
4517
+ };
4518
+
4519
+ /**
4520
+ * inlined Object.is polyfill to avoid requiring consumers ship their own
4521
+ * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
4522
+ */
4523
+ /*eslint-disable no-self-compare*/
4524
+ function is(x, y) {
4525
+ // SameValue algorithm
4526
+ if (x === y) {
4527
+ // Steps 1-5, 7-10
4528
+ // Steps 6.b-6.e: +0 != -0
4529
+ return x !== 0 || 1 / x === 1 / y;
4530
+ } else {
4531
+ // Step 6.a: NaN == NaN
4532
+ return x !== x && y !== y;
4533
+ }
4534
+ }
4535
+ /*eslint-enable no-self-compare*/
4536
+
4537
+ /**
4538
+ * We use an Error-like object for backward compatibility as people may call
4539
+ * PropTypes directly and inspect their output. However, we don't use real
4540
+ * Errors anymore. We don't inspect their stack anyway, and creating them
4541
+ * is prohibitively expensive if they are created too often, such as what
4542
+ * happens in oneOfType() for any type before the one that matched.
4543
+ */
4544
+ function PropTypeError(message, data) {
4545
+ this.message = message;
4546
+ this.data = data && typeof data === 'object' ? data : {};
4547
+ this.stack = '';
4548
+ }
4549
+ // Make `instanceof Error` still work for returned errors.
4550
+ PropTypeError.prototype = Error.prototype;
4551
+ function createChainableTypeChecker(validate) {
4552
+ if (process.env.NODE_ENV !== 'production') {
4553
+ var manualPropTypeCallCache = {};
4554
+ var manualPropTypeWarningCount = 0;
4555
+ }
4556
+ function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
4557
+ componentName = componentName || ANONYMOUS;
4558
+ propFullName = propFullName || propName;
4559
+ if (secret !== ReactPropTypesSecret) {
4560
+ if (throwOnDirectAccess) {
4561
+ // New behavior only for users of `prop-types` package
4562
+ var err = new Error('Calling PropTypes validators directly is not supported by the `prop-types` package. ' + 'Use `PropTypes.checkPropTypes()` to call them. ' + 'Read more at http://fb.me/use-check-prop-types');
4563
+ err.name = 'Invariant Violation';
4564
+ throw err;
4565
+ } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {
4566
+ // Old behavior for people using React.PropTypes
4567
+ var cacheKey = componentName + ':' + propName;
4568
+ if (!manualPropTypeCallCache[cacheKey] &&
4569
+ // Avoid spamming the console because they are often not actionable except for lib authors
4570
+ manualPropTypeWarningCount < 3) {
4571
+ printWarning('You are manually calling a React.PropTypes validation ' + 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' + 'and will throw in the standalone `prop-types` package. ' + 'You may be seeing this warning due to a third-party PropTypes ' + 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.');
4572
+ manualPropTypeCallCache[cacheKey] = true;
4573
+ manualPropTypeWarningCount++;
4574
+ }
4575
+ }
4576
+ }
4577
+ if (props[propName] == null) {
4578
+ if (isRequired) {
4579
+ if (props[propName] === null) {
4580
+ return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
4581
+ }
4582
+ return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
4583
+ }
4584
+ return null;
4585
+ } else {
4586
+ return validate(props, propName, componentName, location, propFullName);
4587
+ }
4588
+ }
4589
+ var chainedCheckType = checkType.bind(null, false);
4590
+ chainedCheckType.isRequired = checkType.bind(null, true);
4591
+ return chainedCheckType;
4592
+ }
4593
+ function createPrimitiveTypeChecker(expectedType) {
4594
+ function validate(props, propName, componentName, location, propFullName, secret) {
4595
+ var propValue = props[propName];
4596
+ var propType = getPropType(propValue);
4597
+ if (propType !== expectedType) {
4598
+ // `propValue` being instance of, say, date/regexp, pass the 'object'
4599
+ // check, but we can offer a more precise error message here rather than
4600
+ // 'of type `object`'.
4601
+ var preciseType = getPreciseType(propValue);
4602
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'), {
4603
+ expectedType: expectedType
4604
+ });
4605
+ }
4606
+ return null;
4607
+ }
4608
+ return createChainableTypeChecker(validate);
4609
+ }
4610
+ function createAnyTypeChecker() {
4611
+ return createChainableTypeChecker(emptyFunctionThatReturnsNull);
4612
+ }
4613
+ function createArrayOfTypeChecker(typeChecker) {
4614
+ function validate(props, propName, componentName, location, propFullName) {
4615
+ if (typeof typeChecker !== 'function') {
4616
+ return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
4617
+ }
4618
+ var propValue = props[propName];
4619
+ if (!Array.isArray(propValue)) {
4620
+ var propType = getPropType(propValue);
4621
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
4622
+ }
4623
+ for (var i = 0; i < propValue.length; i++) {
4624
+ var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
4625
+ if (error instanceof Error) {
4626
+ return error;
4627
+ }
4628
+ }
4629
+ return null;
4630
+ }
4631
+ return createChainableTypeChecker(validate);
4632
+ }
4633
+ function createElementTypeChecker() {
4634
+ function validate(props, propName, componentName, location, propFullName) {
4635
+ var propValue = props[propName];
4636
+ if (!isValidElement(propValue)) {
4637
+ var propType = getPropType(propValue);
4638
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
4639
+ }
4640
+ return null;
4641
+ }
4642
+ return createChainableTypeChecker(validate);
4643
+ }
4644
+ function createElementTypeTypeChecker() {
4645
+ function validate(props, propName, componentName, location, propFullName) {
4646
+ var propValue = props[propName];
4647
+ if (!ReactIs.isValidElementType(propValue)) {
4648
+ var propType = getPropType(propValue);
4649
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
4650
+ }
4651
+ return null;
4652
+ }
4653
+ return createChainableTypeChecker(validate);
4654
+ }
4655
+ function createInstanceTypeChecker(expectedClass) {
4656
+ function validate(props, propName, componentName, location, propFullName) {
4657
+ if (!(props[propName] instanceof expectedClass)) {
4658
+ var expectedClassName = expectedClass.name || ANONYMOUS;
4659
+ var actualClassName = getClassName(props[propName]);
4660
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
4661
+ }
4662
+ return null;
4663
+ }
4664
+ return createChainableTypeChecker(validate);
4665
+ }
4666
+ function createEnumTypeChecker(expectedValues) {
4667
+ if (!Array.isArray(expectedValues)) {
4668
+ if (process.env.NODE_ENV !== 'production') {
4669
+ if (arguments.length > 1) {
4670
+ printWarning('Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' + 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).');
4671
+ } else {
4672
+ printWarning('Invalid argument supplied to oneOf, expected an array.');
4673
+ }
4674
+ }
4675
+ return emptyFunctionThatReturnsNull;
4676
+ }
4677
+ function validate(props, propName, componentName, location, propFullName) {
4678
+ var propValue = props[propName];
4679
+ for (var i = 0; i < expectedValues.length; i++) {
4680
+ if (is(propValue, expectedValues[i])) {
4681
+ return null;
4682
+ }
4683
+ }
4684
+ var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
4685
+ var type = getPreciseType(value);
4686
+ if (type === 'symbol') {
4687
+ return String(value);
4688
+ }
4689
+ return value;
4690
+ });
4691
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
4692
+ }
4693
+ return createChainableTypeChecker(validate);
4694
+ }
4695
+ function createObjectOfTypeChecker(typeChecker) {
4696
+ function validate(props, propName, componentName, location, propFullName) {
4697
+ if (typeof typeChecker !== 'function') {
4698
+ return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
4699
+ }
4700
+ var propValue = props[propName];
4701
+ var propType = getPropType(propValue);
4702
+ if (propType !== 'object') {
4703
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
4704
+ }
4705
+ for (var key in propValue) {
4706
+ if (has(propValue, key)) {
4707
+ var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
4708
+ if (error instanceof Error) {
4709
+ return error;
4710
+ }
4711
+ }
4712
+ }
4713
+ return null;
4714
+ }
4715
+ return createChainableTypeChecker(validate);
4716
+ }
4717
+ function createUnionTypeChecker(arrayOfTypeCheckers) {
4718
+ if (!Array.isArray(arrayOfTypeCheckers)) {
4719
+ process.env.NODE_ENV !== 'production' ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
4720
+ return emptyFunctionThatReturnsNull;
4721
+ }
4722
+ for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
4723
+ var checker = arrayOfTypeCheckers[i];
4724
+ if (typeof checker !== 'function') {
4725
+ printWarning('Invalid argument supplied to oneOfType. Expected an array of check functions, but ' + 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.');
4726
+ return emptyFunctionThatReturnsNull;
4727
+ }
4728
+ }
4729
+ function validate(props, propName, componentName, location, propFullName) {
4730
+ var expectedTypes = [];
4731
+ for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
4732
+ var checker = arrayOfTypeCheckers[i];
4733
+ var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
4734
+ if (checkerResult == null) {
4735
+ return null;
4736
+ }
4737
+ if (checkerResult.data && has(checkerResult.data, 'expectedType')) {
4738
+ expectedTypes.push(checkerResult.data.expectedType);
4739
+ }
4740
+ }
4741
+ var expectedTypesMessage = expectedTypes.length > 0 ? ', expected one of type [' + expectedTypes.join(', ') + ']' : '';
4742
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
4743
+ }
4744
+ return createChainableTypeChecker(validate);
4745
+ }
4746
+ function createNodeChecker() {
4747
+ function validate(props, propName, componentName, location, propFullName) {
4748
+ if (!isNode(props[propName])) {
4749
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
4750
+ }
4751
+ return null;
4752
+ }
4753
+ return createChainableTypeChecker(validate);
4754
+ }
4755
+ function invalidValidatorError(componentName, location, propFullName, key, type) {
4756
+ return new PropTypeError((componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.');
4757
+ }
4758
+ function createShapeTypeChecker(shapeTypes) {
4759
+ function validate(props, propName, componentName, location, propFullName) {
4760
+ var propValue = props[propName];
4761
+ var propType = getPropType(propValue);
4762
+ if (propType !== 'object') {
4763
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
4764
+ }
4765
+ for (var key in shapeTypes) {
4766
+ var checker = shapeTypes[key];
4767
+ if (typeof checker !== 'function') {
4768
+ return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
4769
+ }
4770
+ var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
4771
+ if (error) {
4772
+ return error;
4773
+ }
4774
+ }
4775
+ return null;
4776
+ }
4777
+ return createChainableTypeChecker(validate);
4778
+ }
4779
+ function createStrictShapeTypeChecker(shapeTypes) {
4780
+ function validate(props, propName, componentName, location, propFullName) {
4781
+ var propValue = props[propName];
4782
+ var propType = getPropType(propValue);
4783
+ if (propType !== 'object') {
4784
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
4785
+ }
4786
+ // We need to check all keys in case some are required but missing from props.
4787
+ var allKeys = assign({}, props[propName], shapeTypes);
4788
+ for (var key in allKeys) {
4789
+ var checker = shapeTypes[key];
4790
+ if (has(shapeTypes, key) && typeof checker !== 'function') {
4791
+ return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
4792
+ }
4793
+ if (!checker) {
4794
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' + '\nBad object: ' + JSON.stringify(props[propName], null, ' ') + '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' '));
4795
+ }
4796
+ var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
4797
+ if (error) {
4798
+ return error;
4799
+ }
4800
+ }
4801
+ return null;
4802
+ }
4803
+ return createChainableTypeChecker(validate);
4804
+ }
4805
+ function isNode(propValue) {
4806
+ switch (typeof propValue) {
4807
+ case 'number':
4808
+ case 'string':
4809
+ case 'undefined':
4810
+ return true;
4811
+ case 'boolean':
4812
+ return !propValue;
4813
+ case 'object':
4814
+ if (Array.isArray(propValue)) {
4815
+ return propValue.every(isNode);
4816
+ }
4817
+ if (propValue === null || isValidElement(propValue)) {
4818
+ return true;
4819
+ }
4820
+ var iteratorFn = getIteratorFn(propValue);
4821
+ if (iteratorFn) {
4822
+ var iterator = iteratorFn.call(propValue);
4823
+ var step;
4824
+ if (iteratorFn !== propValue.entries) {
4825
+ while (!(step = iterator.next()).done) {
4826
+ if (!isNode(step.value)) {
4827
+ return false;
4828
+ }
4829
+ }
4830
+ } else {
4831
+ // Iterator will provide entry [k,v] tuples rather than values.
4832
+ while (!(step = iterator.next()).done) {
4833
+ var entry = step.value;
4834
+ if (entry) {
4835
+ if (!isNode(entry[1])) {
4836
+ return false;
4837
+ }
4838
+ }
4839
+ }
4840
+ }
4841
+ } else {
4842
+ return false;
4843
+ }
4844
+ return true;
4845
+ default:
4846
+ return false;
4847
+ }
4848
+ }
4849
+ function isSymbol(propType, propValue) {
4850
+ // Native Symbol.
4851
+ if (propType === 'symbol') {
4852
+ return true;
4853
+ }
4854
+
4855
+ // falsy value can't be a Symbol
4856
+ if (!propValue) {
4857
+ return false;
4858
+ }
4859
+
4860
+ // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
4861
+ if (propValue['@@toStringTag'] === 'Symbol') {
4862
+ return true;
4863
+ }
4864
+
4865
+ // Fallback for non-spec compliant Symbols which are polyfilled.
4866
+ if (typeof Symbol === 'function' && propValue instanceof Symbol) {
4867
+ return true;
4868
+ }
4869
+ return false;
4870
+ }
4871
+
4872
+ // Equivalent of `typeof` but with special handling for array and regexp.
4873
+ function getPropType(propValue) {
4874
+ var propType = typeof propValue;
4875
+ if (Array.isArray(propValue)) {
4876
+ return 'array';
4877
+ }
4878
+ if (propValue instanceof RegExp) {
4879
+ // Old webkits (at least until Android 4.0) return 'function' rather than
4880
+ // 'object' for typeof a RegExp. We'll normalize this here so that /bla/
4881
+ // passes PropTypes.object.
4882
+ return 'object';
4883
+ }
4884
+ if (isSymbol(propType, propValue)) {
4885
+ return 'symbol';
4886
+ }
4887
+ return propType;
4888
+ }
4889
+
4890
+ // This handles more types than `getPropType`. Only used for error messages.
4891
+ // See `createPrimitiveTypeChecker`.
4892
+ function getPreciseType(propValue) {
4893
+ if (typeof propValue === 'undefined' || propValue === null) {
4894
+ return '' + propValue;
4895
+ }
4896
+ var propType = getPropType(propValue);
4897
+ if (propType === 'object') {
4898
+ if (propValue instanceof Date) {
4899
+ return 'date';
4900
+ } else if (propValue instanceof RegExp) {
4901
+ return 'regexp';
4902
+ }
4903
+ }
4904
+ return propType;
4905
+ }
4906
+
4907
+ // Returns a string that is postfixed to a warning about an invalid type.
4908
+ // For example, "undefined" or "of type array"
4909
+ function getPostfixForTypeWarning(value) {
4910
+ var type = getPreciseType(value);
4911
+ switch (type) {
4912
+ case 'array':
4913
+ case 'object':
4914
+ return 'an ' + type;
4915
+ case 'boolean':
4916
+ case 'date':
4917
+ case 'regexp':
4918
+ return 'a ' + type;
4919
+ default:
4920
+ return type;
4921
+ }
4922
+ }
4923
+
4924
+ // Returns class name of the object, if any.
4925
+ function getClassName(propValue) {
4926
+ if (!propValue.constructor || !propValue.constructor.name) {
4927
+ return ANONYMOUS;
4928
+ }
4929
+ return propValue.constructor.name;
4930
+ }
4931
+ ReactPropTypes.checkPropTypes = checkPropTypes;
4932
+ ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
4933
+ ReactPropTypes.PropTypes = ReactPropTypes;
4934
+ return ReactPropTypes;
4935
+ };
4936
+ return factoryWithTypeCheckers$2;
4937
+ }
4938
+
4939
+ /**
4940
+ * Copyright (c) 2013-present, Facebook, Inc.
4941
+ *
4942
+ * This source code is licensed under the MIT license found in the
4943
+ * LICENSE file in the root directory of this source tree.
4944
+ */
4945
+
4946
+ var factoryWithThrowingShims$2;
4947
+ var hasRequiredFactoryWithThrowingShims$2;
4948
+ function requireFactoryWithThrowingShims$2() {
4949
+ if (hasRequiredFactoryWithThrowingShims$2) return factoryWithThrowingShims$2;
4950
+ hasRequiredFactoryWithThrowingShims$2 = 1;
4951
+ var ReactPropTypesSecret = /*@__PURE__*/requireReactPropTypesSecret$2();
4952
+ function emptyFunction() {}
4953
+ function emptyFunctionWithReset() {}
4954
+ emptyFunctionWithReset.resetWarningCache = emptyFunction;
4955
+ factoryWithThrowingShims$2 = function () {
4956
+ function shim(props, propName, componentName, location, propFullName, secret) {
4957
+ if (secret === ReactPropTypesSecret) {
4958
+ // It is still safe when called from React.
4959
+ return;
4960
+ }
4961
+ var err = new Error('Calling PropTypes validators directly is not supported by the `prop-types` package. ' + 'Use PropTypes.checkPropTypes() to call them. ' + 'Read more at http://fb.me/use-check-prop-types');
4962
+ err.name = 'Invariant Violation';
4963
+ throw err;
4964
+ }
4965
+ shim.isRequired = shim;
4966
+ function getShim() {
4967
+ return shim;
4968
+ } // Important!
4969
+ // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
4970
+ var ReactPropTypes = {
4971
+ array: shim,
4972
+ bigint: shim,
4973
+ bool: shim,
4974
+ func: shim,
4975
+ number: shim,
4976
+ object: shim,
4977
+ string: shim,
4978
+ symbol: shim,
4979
+ any: shim,
4980
+ arrayOf: getShim,
4981
+ element: shim,
4982
+ elementType: shim,
4983
+ instanceOf: getShim,
4984
+ node: shim,
4985
+ objectOf: getShim,
4986
+ oneOf: getShim,
4987
+ oneOfType: getShim,
4988
+ shape: getShim,
4989
+ exact: getShim,
4990
+ checkPropTypes: emptyFunctionWithReset,
4991
+ resetWarningCache: emptyFunction
4992
+ };
4993
+ ReactPropTypes.PropTypes = ReactPropTypes;
4994
+ return ReactPropTypes;
4995
+ };
4996
+ return factoryWithThrowingShims$2;
4997
+ }
4998
+
4999
+ /**
5000
+ * Copyright (c) 2013-present, Facebook, Inc.
5001
+ *
5002
+ * This source code is licensed under the MIT license found in the
5003
+ * LICENSE file in the root directory of this source tree.
5004
+ */
5005
+
5006
+ var hasRequiredPropTypes$2;
5007
+ function requirePropTypes$2() {
5008
+ if (hasRequiredPropTypes$2) return propTypes$2.exports;
5009
+ hasRequiredPropTypes$2 = 1;
5010
+ if (process.env.NODE_ENV !== 'production') {
5011
+ var ReactIs = requireReactIs$2();
5012
+
5013
+ // By explicitly using `prop-types` you are opting into new development behavior.
5014
+ // http://fb.me/prop-types-in-prod
5015
+ var throwOnDirectAccess = true;
5016
+ propTypes$2.exports = /*@__PURE__*/requireFactoryWithTypeCheckers$2()(ReactIs.isElement, throwOnDirectAccess);
5017
+ } else {
5018
+ // By explicitly using `prop-types` you are opting into new production behavior.
5019
+ // http://fb.me/prop-types-in-prod
5020
+ propTypes$2.exports = /*@__PURE__*/requireFactoryWithThrowingShims$2()();
5021
+ }
5022
+ return propTypes$2.exports;
5023
+ }
5024
+ var propTypesExports$2 = /*@__PURE__*/requirePropTypes$2();
5025
+ var PropTypes$2 = /*@__PURE__*/getDefaultExportFromCjs$2(propTypesExports$2);
5026
+ ({
5027
+ onPowerOff: PropTypes$2.func,
5028
+ onRestart: PropTypes$2.func,
5029
+ powerOffLabel: PropTypes$2.string,
5030
+ restartLabel: PropTypes$2.string,
5031
+ iconClassName: PropTypes$2.string,
5032
+ confirmTitle: PropTypes$2.string,
5033
+ cancelText: PropTypes$2.string,
5034
+ okText: PropTypes$2.string,
5035
+ run: PropTypes$2.func
5036
+ });
5037
+ ({
5038
+ logoUrl: PropTypes$2.string,
5039
+ logoWidth: PropTypes$2.number,
5040
+ logoAlt: PropTypes$2.string,
5041
+ onClick: PropTypes$2.func
5042
+ });
5043
+
5044
+ // PropTypes 类型检查
5045
+ ({
5046
+ menuElement: PropTypes$2.node,
5047
+ productInfo: PropTypes$2.shape({
5048
+ productName: PropTypes$2.string,
5049
+ version: PropTypes$2.string
5050
+ }),
5051
+ showLogo: PropTypes$2.bool,
5052
+ showProductInfo: PropTypes$2.bool,
5053
+ showHardwareUsage: PropTypes$2.bool,
5054
+ showSystemOperations: PropTypes$2.bool,
5055
+ onPowerOff: PropTypes$2.func,
5056
+ onRestart: PropTypes$2.func,
5057
+ onRun: PropTypes$2.func,
5058
+ hardwareMonitorUrl: PropTypes$2.string,
5059
+ getSocketUrl: PropTypes$2.func,
5060
+ logoProps: PropTypes$2.object,
5061
+ className: PropTypes$2.string,
5062
+ style: PropTypes$2.object
5063
+ });
5064
+ function getDefaultExportFromCjs$1(x) {
5065
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
5066
+ }
5067
+ var propTypes$1 = {
5068
+ exports: {}
5069
+ };
5070
+ var reactIs$1 = {
5071
+ exports: {}
5072
+ };
5073
+ var reactIs_production_min$1 = {};
5074
+
5075
+ /** @license React v16.13.1
5076
+ * react-is.production.min.js
5077
+ *
5078
+ * Copyright (c) Facebook, Inc. and its affiliates.
5079
+ *
5080
+ * This source code is licensed under the MIT license found in the
5081
+ * LICENSE file in the root directory of this source tree.
5082
+ */
5083
+
5084
+ var hasRequiredReactIs_production_min$1;
5085
+ function requireReactIs_production_min$1() {
5086
+ if (hasRequiredReactIs_production_min$1) return reactIs_production_min$1;
5087
+ hasRequiredReactIs_production_min$1 = 1;
5088
+ var b = "function" === typeof Symbol && Symbol.for,
5089
+ c = b ? Symbol.for("react.element") : 60103,
5090
+ d = b ? Symbol.for("react.portal") : 60106,
5091
+ e = b ? Symbol.for("react.fragment") : 60107,
5092
+ f = b ? Symbol.for("react.strict_mode") : 60108,
5093
+ g = b ? Symbol.for("react.profiler") : 60114,
5094
+ h = b ? Symbol.for("react.provider") : 60109,
5095
+ k = b ? Symbol.for("react.context") : 60110,
5096
+ l = b ? Symbol.for("react.async_mode") : 60111,
5097
+ m = b ? Symbol.for("react.concurrent_mode") : 60111,
5098
+ n = b ? Symbol.for("react.forward_ref") : 60112,
5099
+ p = b ? Symbol.for("react.suspense") : 60113,
5100
+ q = b ? Symbol.for("react.suspense_list") : 60120,
5101
+ r = b ? Symbol.for("react.memo") : 60115,
5102
+ t = b ? Symbol.for("react.lazy") : 60116,
5103
+ v = b ? Symbol.for("react.block") : 60121,
5104
+ w = b ? Symbol.for("react.fundamental") : 60117,
5105
+ x = b ? Symbol.for("react.responder") : 60118,
5106
+ y = b ? Symbol.for("react.scope") : 60119;
5107
+ function z(a) {
5108
+ if ("object" === typeof a && null !== a) {
5109
+ var u = a.$$typeof;
5110
+ switch (u) {
5111
+ case c:
5112
+ switch (a = a.type, a) {
5113
+ case l:
5114
+ case m:
5115
+ case e:
5116
+ case g:
5117
+ case f:
5118
+ case p:
5119
+ return a;
5120
+ default:
5121
+ switch (a = a && a.$$typeof, a) {
5122
+ case k:
5123
+ case n:
5124
+ case t:
5125
+ case r:
5126
+ case h:
5127
+ return a;
5128
+ default:
5129
+ return u;
5130
+ }
5131
+ }
5132
+ case d:
5133
+ return u;
5134
+ }
5135
+ }
5136
+ }
5137
+ function A(a) {
5138
+ return z(a) === m;
5139
+ }
5140
+ reactIs_production_min$1.AsyncMode = l;
5141
+ reactIs_production_min$1.ConcurrentMode = m;
5142
+ reactIs_production_min$1.ContextConsumer = k;
5143
+ reactIs_production_min$1.ContextProvider = h;
5144
+ reactIs_production_min$1.Element = c;
5145
+ reactIs_production_min$1.ForwardRef = n;
5146
+ reactIs_production_min$1.Fragment = e;
5147
+ reactIs_production_min$1.Lazy = t;
5148
+ reactIs_production_min$1.Memo = r;
5149
+ reactIs_production_min$1.Portal = d;
5150
+ reactIs_production_min$1.Profiler = g;
5151
+ reactIs_production_min$1.StrictMode = f;
5152
+ reactIs_production_min$1.Suspense = p;
5153
+ reactIs_production_min$1.isAsyncMode = function (a) {
5154
+ return A(a) || z(a) === l;
5155
+ };
5156
+ reactIs_production_min$1.isConcurrentMode = A;
5157
+ reactIs_production_min$1.isContextConsumer = function (a) {
5158
+ return z(a) === k;
5159
+ };
5160
+ reactIs_production_min$1.isContextProvider = function (a) {
5161
+ return z(a) === h;
5162
+ };
5163
+ reactIs_production_min$1.isElement = function (a) {
5164
+ return "object" === typeof a && null !== a && a.$$typeof === c;
5165
+ };
5166
+ reactIs_production_min$1.isForwardRef = function (a) {
5167
+ return z(a) === n;
5168
+ };
5169
+ reactIs_production_min$1.isFragment = function (a) {
5170
+ return z(a) === e;
5171
+ };
5172
+ reactIs_production_min$1.isLazy = function (a) {
5173
+ return z(a) === t;
5174
+ };
5175
+ reactIs_production_min$1.isMemo = function (a) {
5176
+ return z(a) === r;
5177
+ };
5178
+ reactIs_production_min$1.isPortal = function (a) {
5179
+ return z(a) === d;
5180
+ };
5181
+ reactIs_production_min$1.isProfiler = function (a) {
5182
+ return z(a) === g;
5183
+ };
5184
+ reactIs_production_min$1.isStrictMode = function (a) {
5185
+ return z(a) === f;
5186
+ };
5187
+ reactIs_production_min$1.isSuspense = function (a) {
5188
+ return z(a) === p;
5189
+ };
5190
+ reactIs_production_min$1.isValidElementType = function (a) {
5191
+ return "string" === typeof a || "function" === typeof a || a === e || a === m || a === g || a === f || a === p || a === q || "object" === typeof a && null !== a && (a.$$typeof === t || a.$$typeof === r || a.$$typeof === h || a.$$typeof === k || a.$$typeof === n || a.$$typeof === w || a.$$typeof === x || a.$$typeof === y || a.$$typeof === v);
5192
+ };
5193
+ reactIs_production_min$1.typeOf = z;
5194
+ return reactIs_production_min$1;
5195
+ }
5196
+ var reactIs_development$1 = {};
5197
+
5198
+ /** @license React v16.13.1
5199
+ * react-is.development.js
5200
+ *
5201
+ * Copyright (c) Facebook, Inc. and its affiliates.
5202
+ *
5203
+ * This source code is licensed under the MIT license found in the
5204
+ * LICENSE file in the root directory of this source tree.
5205
+ */
5206
+
5207
+ var hasRequiredReactIs_development$1;
5208
+ function requireReactIs_development$1() {
5209
+ if (hasRequiredReactIs_development$1) return reactIs_development$1;
5210
+ hasRequiredReactIs_development$1 = 1;
5211
+ if (process.env.NODE_ENV !== "production") {
5212
+ (function () {
5213
+ // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
5214
+ // nor polyfill, then a plain number is used for performance.
5215
+ var hasSymbol = typeof Symbol === 'function' && Symbol.for;
5216
+ var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
5217
+ var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
5218
+ var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
5219
+ var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
5220
+ var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
5221
+ var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
5222
+ var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
5223
+ // (unstable) APIs that have been removed. Can we remove the symbols?
5224
+
5225
+ var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
5226
+ var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
5227
+ var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
5228
+ var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
5229
+ var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
5230
+ var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
5231
+ var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
5232
+ var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
5233
+ var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
5234
+ var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
5235
+ var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
5236
+ function isValidElementType(type) {
5237
+ return typeof type === 'string' || typeof type === 'function' ||
5238
+ // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
5239
+ 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);
5240
+ }
5241
+ function typeOf(object) {
5242
+ if (typeof object === 'object' && object !== null) {
5243
+ var $$typeof = object.$$typeof;
5244
+ switch ($$typeof) {
5245
+ case REACT_ELEMENT_TYPE:
5246
+ var type = object.type;
5247
+ switch (type) {
5248
+ case REACT_ASYNC_MODE_TYPE:
5249
+ case REACT_CONCURRENT_MODE_TYPE:
5250
+ case REACT_FRAGMENT_TYPE:
5251
+ case REACT_PROFILER_TYPE:
5252
+ case REACT_STRICT_MODE_TYPE:
5253
+ case REACT_SUSPENSE_TYPE:
5254
+ return type;
5255
+ default:
5256
+ var $$typeofType = type && type.$$typeof;
5257
+ switch ($$typeofType) {
5258
+ case REACT_CONTEXT_TYPE:
5259
+ case REACT_FORWARD_REF_TYPE:
5260
+ case REACT_LAZY_TYPE:
5261
+ case REACT_MEMO_TYPE:
5262
+ case REACT_PROVIDER_TYPE:
5263
+ return $$typeofType;
5264
+ default:
5265
+ return $$typeof;
5266
+ }
5267
+ }
5268
+ case REACT_PORTAL_TYPE:
5269
+ return $$typeof;
5270
+ }
5271
+ }
5272
+ return undefined;
5273
+ } // AsyncMode is deprecated along with isAsyncMode
5274
+
5275
+ var AsyncMode = REACT_ASYNC_MODE_TYPE;
5276
+ var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
5277
+ var ContextConsumer = REACT_CONTEXT_TYPE;
5278
+ var ContextProvider = REACT_PROVIDER_TYPE;
5279
+ var Element = REACT_ELEMENT_TYPE;
5280
+ var ForwardRef = REACT_FORWARD_REF_TYPE;
5281
+ var Fragment = REACT_FRAGMENT_TYPE;
5282
+ var Lazy = REACT_LAZY_TYPE;
5283
+ var Memo = REACT_MEMO_TYPE;
5284
+ var Portal = REACT_PORTAL_TYPE;
5285
+ var Profiler = REACT_PROFILER_TYPE;
5286
+ var StrictMode = REACT_STRICT_MODE_TYPE;
5287
+ var Suspense = REACT_SUSPENSE_TYPE;
5288
+ var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
5289
+
5290
+ function isAsyncMode(object) {
5291
+ {
5292
+ if (!hasWarnedAboutDeprecatedIsAsyncMode) {
5293
+ hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
5294
+
5295
+ console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
5296
+ }
5297
+ }
5298
+ return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
5299
+ }
5300
+ function isConcurrentMode(object) {
5301
+ return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
5302
+ }
5303
+ function isContextConsumer(object) {
5304
+ return typeOf(object) === REACT_CONTEXT_TYPE;
5305
+ }
5306
+ function isContextProvider(object) {
5307
+ return typeOf(object) === REACT_PROVIDER_TYPE;
5308
+ }
5309
+ function isElement(object) {
5310
+ return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
5311
+ }
5312
+ function isForwardRef(object) {
5313
+ return typeOf(object) === REACT_FORWARD_REF_TYPE;
5314
+ }
5315
+ function isFragment(object) {
5316
+ return typeOf(object) === REACT_FRAGMENT_TYPE;
5317
+ }
5318
+ function isLazy(object) {
5319
+ return typeOf(object) === REACT_LAZY_TYPE;
5320
+ }
5321
+ function isMemo(object) {
5322
+ return typeOf(object) === REACT_MEMO_TYPE;
5323
+ }
5324
+ function isPortal(object) {
5325
+ return typeOf(object) === REACT_PORTAL_TYPE;
5326
+ }
5327
+ function isProfiler(object) {
5328
+ return typeOf(object) === REACT_PROFILER_TYPE;
5329
+ }
5330
+ function isStrictMode(object) {
5331
+ return typeOf(object) === REACT_STRICT_MODE_TYPE;
5332
+ }
5333
+ function isSuspense(object) {
5334
+ return typeOf(object) === REACT_SUSPENSE_TYPE;
5335
+ }
5336
+ reactIs_development$1.AsyncMode = AsyncMode;
5337
+ reactIs_development$1.ConcurrentMode = ConcurrentMode;
5338
+ reactIs_development$1.ContextConsumer = ContextConsumer;
5339
+ reactIs_development$1.ContextProvider = ContextProvider;
5340
+ reactIs_development$1.Element = Element;
5341
+ reactIs_development$1.ForwardRef = ForwardRef;
5342
+ reactIs_development$1.Fragment = Fragment;
5343
+ reactIs_development$1.Lazy = Lazy;
5344
+ reactIs_development$1.Memo = Memo;
5345
+ reactIs_development$1.Portal = Portal;
5346
+ reactIs_development$1.Profiler = Profiler;
5347
+ reactIs_development$1.StrictMode = StrictMode;
5348
+ reactIs_development$1.Suspense = Suspense;
5349
+ reactIs_development$1.isAsyncMode = isAsyncMode;
5350
+ reactIs_development$1.isConcurrentMode = isConcurrentMode;
5351
+ reactIs_development$1.isContextConsumer = isContextConsumer;
5352
+ reactIs_development$1.isContextProvider = isContextProvider;
5353
+ reactIs_development$1.isElement = isElement;
5354
+ reactIs_development$1.isForwardRef = isForwardRef;
5355
+ reactIs_development$1.isFragment = isFragment;
5356
+ reactIs_development$1.isLazy = isLazy;
5357
+ reactIs_development$1.isMemo = isMemo;
5358
+ reactIs_development$1.isPortal = isPortal;
5359
+ reactIs_development$1.isProfiler = isProfiler;
5360
+ reactIs_development$1.isStrictMode = isStrictMode;
5361
+ reactIs_development$1.isSuspense = isSuspense;
5362
+ reactIs_development$1.isValidElementType = isValidElementType;
5363
+ reactIs_development$1.typeOf = typeOf;
5364
+ })();
5365
+ }
5366
+ return reactIs_development$1;
5367
+ }
5368
+ var hasRequiredReactIs$1;
5369
+ function requireReactIs$1() {
5370
+ if (hasRequiredReactIs$1) return reactIs$1.exports;
5371
+ hasRequiredReactIs$1 = 1;
5372
+ if (process.env.NODE_ENV === 'production') {
5373
+ reactIs$1.exports = requireReactIs_production_min$1();
5374
+ } else {
5375
+ reactIs$1.exports = requireReactIs_development$1();
5376
+ }
5377
+ return reactIs$1.exports;
5378
+ }
5379
+
5380
+ /*
5381
+ object-assign
5382
+ (c) Sindre Sorhus
5383
+ @license MIT
5384
+ */
5385
+
5386
+ var objectAssign$1;
5387
+ var hasRequiredObjectAssign$1;
5388
+ function requireObjectAssign$1() {
5389
+ if (hasRequiredObjectAssign$1) return objectAssign$1;
5390
+ hasRequiredObjectAssign$1 = 1;
5391
+ /* eslint-disable no-unused-vars */
5392
+ var getOwnPropertySymbols = Object.getOwnPropertySymbols;
5393
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
5394
+ var propIsEnumerable = Object.prototype.propertyIsEnumerable;
5395
+ function toObject(val) {
5396
+ if (val === null || val === undefined) {
5397
+ throw new TypeError('Object.assign cannot be called with null or undefined');
5398
+ }
5399
+ return Object(val);
5400
+ }
5401
+ function shouldUseNative() {
5402
+ try {
5403
+ if (!Object.assign) {
5404
+ return false;
5405
+ }
5406
+
5407
+ // Detect buggy property enumeration order in older V8 versions.
5408
+
5409
+ // https://bugs.chromium.org/p/v8/issues/detail?id=4118
5410
+ var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
5411
+ test1[5] = 'de';
5412
+ if (Object.getOwnPropertyNames(test1)[0] === '5') {
5413
+ return false;
5414
+ }
5415
+
5416
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3056
5417
+ var test2 = {};
5418
+ for (var i = 0; i < 10; i++) {
5419
+ test2['_' + String.fromCharCode(i)] = i;
5420
+ }
5421
+ var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
5422
+ return test2[n];
5423
+ });
5424
+ if (order2.join('') !== '0123456789') {
5425
+ return false;
5426
+ }
5427
+
5428
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3056
5429
+ var test3 = {};
5430
+ 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
5431
+ test3[letter] = letter;
5432
+ });
5433
+ if (Object.keys(Object.assign({}, test3)).join('') !== 'abcdefghijklmnopqrst') {
5434
+ return false;
5435
+ }
5436
+ return true;
5437
+ } catch (err) {
5438
+ // We don't expect any of the above to throw, but better to be safe.
5439
+ return false;
5440
+ }
5441
+ }
5442
+ objectAssign$1 = shouldUseNative() ? Object.assign : function (target, source) {
5443
+ var from;
5444
+ var to = toObject(target);
5445
+ var symbols;
5446
+ for (var s = 1; s < arguments.length; s++) {
5447
+ from = Object(arguments[s]);
5448
+ for (var key in from) {
5449
+ if (hasOwnProperty.call(from, key)) {
5450
+ to[key] = from[key];
5451
+ }
5452
+ }
5453
+ if (getOwnPropertySymbols) {
5454
+ symbols = getOwnPropertySymbols(from);
5455
+ for (var i = 0; i < symbols.length; i++) {
5456
+ if (propIsEnumerable.call(from, symbols[i])) {
5457
+ to[symbols[i]] = from[symbols[i]];
5458
+ }
5459
+ }
5460
+ }
5461
+ }
5462
+ return to;
5463
+ };
5464
+ return objectAssign$1;
5465
+ }
5466
+
5467
+ /**
5468
+ * Copyright (c) 2013-present, Facebook, Inc.
5469
+ *
5470
+ * This source code is licensed under the MIT license found in the
5471
+ * LICENSE file in the root directory of this source tree.
5472
+ */
5473
+
5474
+ var ReactPropTypesSecret_1$1;
5475
+ var hasRequiredReactPropTypesSecret$1;
5476
+ function requireReactPropTypesSecret$1() {
5477
+ if (hasRequiredReactPropTypesSecret$1) return ReactPropTypesSecret_1$1;
5478
+ hasRequiredReactPropTypesSecret$1 = 1;
5479
+ var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
5480
+ ReactPropTypesSecret_1$1 = ReactPropTypesSecret;
5481
+ return ReactPropTypesSecret_1$1;
5482
+ }
5483
+ var has$1;
5484
+ var hasRequiredHas$1;
5485
+ function requireHas$1() {
5486
+ if (hasRequiredHas$1) return has$1;
5487
+ hasRequiredHas$1 = 1;
5488
+ has$1 = Function.call.bind(Object.prototype.hasOwnProperty);
5489
+ return has$1;
5490
+ }
5491
+
5492
+ /**
5493
+ * Copyright (c) 2013-present, Facebook, Inc.
5494
+ *
5495
+ * This source code is licensed under the MIT license found in the
5496
+ * LICENSE file in the root directory of this source tree.
5497
+ */
5498
+
5499
+ var checkPropTypes_1$1;
5500
+ var hasRequiredCheckPropTypes$1;
5501
+ function requireCheckPropTypes$1() {
5502
+ if (hasRequiredCheckPropTypes$1) return checkPropTypes_1$1;
5503
+ hasRequiredCheckPropTypes$1 = 1;
5504
+ var printWarning = function () {};
5505
+ if (process.env.NODE_ENV !== 'production') {
5506
+ var ReactPropTypesSecret = /*@__PURE__*/requireReactPropTypesSecret$1();
5507
+ var loggedTypeFailures = {};
5508
+ var has = /*@__PURE__*/requireHas$1();
5509
+ printWarning = function (text) {
5510
+ var message = 'Warning: ' + text;
5511
+ if (typeof console !== 'undefined') {
5512
+ console.error(message);
5513
+ }
5514
+ try {
5515
+ // --- Welcome to debugging React ---
5516
+ // This error was thrown as a convenience so that you can use this stack
5517
+ // to find the callsite that caused this warning to fire.
5518
+ throw new Error(message);
5519
+ } catch (x) {/**/}
5520
+ };
5521
+ }
5522
+
5523
+ /**
5524
+ * Assert that the values match with the type specs.
5525
+ * Error messages are memorized and will only be shown once.
5526
+ *
5527
+ * @param {object} typeSpecs Map of name to a ReactPropType
5528
+ * @param {object} values Runtime values that need to be type-checked
5529
+ * @param {string} location e.g. "prop", "context", "child context"
5530
+ * @param {string} componentName Name of the component for error messages.
5531
+ * @param {?Function} getStack Returns the component stack.
5532
+ * @private
5533
+ */
5534
+ function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
5535
+ if (process.env.NODE_ENV !== 'production') {
5536
+ for (var typeSpecName in typeSpecs) {
5537
+ if (has(typeSpecs, typeSpecName)) {
5538
+ var error;
5539
+ // Prop type validation may throw. In case they do, we don't want to
5540
+ // fail the render phase where it didn't fail before. So we log it.
5541
+ // After these have been cleaned up, we'll let them throw.
5542
+ try {
5543
+ // This is intentionally an invariant that gets caught. It's the same
5544
+ // behavior as without this statement except with a better message.
5545
+ if (typeof typeSpecs[typeSpecName] !== 'function') {
5546
+ 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`.');
5547
+ err.name = 'Invariant Violation';
5548
+ throw err;
5549
+ }
5550
+ error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
5551
+ } catch (ex) {
5552
+ error = ex;
5553
+ }
5554
+ if (error && !(error instanceof Error)) {
5555
+ 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).');
5556
+ }
5557
+ if (error instanceof Error && !(error.message in loggedTypeFailures)) {
5558
+ // Only monitor this failure once because there tends to be a lot of the
5559
+ // same error.
5560
+ loggedTypeFailures[error.message] = true;
5561
+ var stack = getStack ? getStack() : '';
5562
+ printWarning('Failed ' + location + ' type: ' + error.message + (stack != null ? stack : ''));
5563
+ }
5564
+ }
5565
+ }
5566
+ }
5567
+ }
5568
+
5569
+ /**
5570
+ * Resets warning cache when testing.
5571
+ *
5572
+ * @private
5573
+ */
5574
+ checkPropTypes.resetWarningCache = function () {
5575
+ if (process.env.NODE_ENV !== 'production') {
5576
+ loggedTypeFailures = {};
5577
+ }
5578
+ };
5579
+ checkPropTypes_1$1 = checkPropTypes;
5580
+ return checkPropTypes_1$1;
5581
+ }
5582
+
5583
+ /**
5584
+ * Copyright (c) 2013-present, Facebook, Inc.
5585
+ *
5586
+ * This source code is licensed under the MIT license found in the
5587
+ * LICENSE file in the root directory of this source tree.
5588
+ */
5589
+
5590
+ var factoryWithTypeCheckers$1;
5591
+ var hasRequiredFactoryWithTypeCheckers$1;
5592
+ function requireFactoryWithTypeCheckers$1() {
5593
+ if (hasRequiredFactoryWithTypeCheckers$1) return factoryWithTypeCheckers$1;
5594
+ hasRequiredFactoryWithTypeCheckers$1 = 1;
5595
+ var ReactIs = requireReactIs$1();
5596
+ var assign = requireObjectAssign$1();
5597
+ var ReactPropTypesSecret = /*@__PURE__*/requireReactPropTypesSecret$1();
5598
+ var has = /*@__PURE__*/requireHas$1();
5599
+ var checkPropTypes = /*@__PURE__*/requireCheckPropTypes$1();
5600
+ var printWarning = function () {};
5601
+ if (process.env.NODE_ENV !== 'production') {
5602
+ printWarning = function (text) {
5603
+ var message = 'Warning: ' + text;
5604
+ if (typeof console !== 'undefined') {
5605
+ console.error(message);
5606
+ }
5607
+ try {
5608
+ // --- Welcome to debugging React ---
5609
+ // This error was thrown as a convenience so that you can use this stack
5610
+ // to find the callsite that caused this warning to fire.
5611
+ throw new Error(message);
5612
+ } catch (x) {}
5613
+ };
5614
+ }
5615
+ function emptyFunctionThatReturnsNull() {
5616
+ return null;
5617
+ }
5618
+ factoryWithTypeCheckers$1 = function (isValidElement, throwOnDirectAccess) {
5619
+ /* global Symbol */
5620
+ var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
5621
+ var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
5622
+
5623
+ /**
5624
+ * Returns the iterator method function contained on the iterable object.
5625
+ *
5626
+ * Be sure to invoke the function with the iterable as context:
5627
+ *
5628
+ * var iteratorFn = getIteratorFn(myIterable);
5629
+ * if (iteratorFn) {
5630
+ * var iterator = iteratorFn.call(myIterable);
5631
+ * ...
5632
+ * }
5633
+ *
5634
+ * @param {?object} maybeIterable
5635
+ * @return {?function}
5636
+ */
5637
+ function getIteratorFn(maybeIterable) {
5638
+ var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
5639
+ if (typeof iteratorFn === 'function') {
5640
+ return iteratorFn;
5641
+ }
5642
+ }
5643
+
5644
+ /**
5645
+ * Collection of methods that allow declaration and validation of props that are
5646
+ * supplied to React components. Example usage:
5647
+ *
5648
+ * var Props = require('ReactPropTypes');
5649
+ * var MyArticle = React.createClass({
5650
+ * propTypes: {
5651
+ * // An optional string prop named "description".
5652
+ * description: Props.string,
5653
+ *
5654
+ * // A required enum prop named "category".
5655
+ * category: Props.oneOf(['News','Photos']).isRequired,
5656
+ *
5657
+ * // A prop named "dialog" that requires an instance of Dialog.
5658
+ * dialog: Props.instanceOf(Dialog).isRequired
5659
+ * },
5660
+ * render: function() { ... }
5661
+ * });
5662
+ *
5663
+ * A more formal specification of how these methods are used:
5664
+ *
5665
+ * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
5666
+ * decl := ReactPropTypes.{type}(.isRequired)?
5667
+ *
5668
+ * Each and every declaration produces a function with the same signature. This
5669
+ * allows the creation of custom validation functions. For example:
5670
+ *
5671
+ * var MyLink = React.createClass({
5672
+ * propTypes: {
5673
+ * // An optional string or URI prop named "href".
5674
+ * href: function(props, propName, componentName) {
5675
+ * var propValue = props[propName];
5676
+ * if (propValue != null && typeof propValue !== 'string' &&
5677
+ * !(propValue instanceof URI)) {
5678
+ * return new Error(
5679
+ * 'Expected a string or an URI for ' + propName + ' in ' +
5680
+ * componentName
5681
+ * );
5682
+ * }
5683
+ * }
5684
+ * },
5685
+ * render: function() {...}
5686
+ * });
5687
+ *
5688
+ * @internal
5689
+ */
5690
+
5691
+ var ANONYMOUS = '<<anonymous>>';
5692
+
5693
+ // Important!
5694
+ // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
5695
+ var ReactPropTypes = {
5696
+ array: createPrimitiveTypeChecker('array'),
5697
+ bigint: createPrimitiveTypeChecker('bigint'),
5698
+ bool: createPrimitiveTypeChecker('boolean'),
5699
+ func: createPrimitiveTypeChecker('function'),
5700
+ number: createPrimitiveTypeChecker('number'),
5701
+ object: createPrimitiveTypeChecker('object'),
5702
+ string: createPrimitiveTypeChecker('string'),
5703
+ symbol: createPrimitiveTypeChecker('symbol'),
5704
+ any: createAnyTypeChecker(),
5705
+ arrayOf: createArrayOfTypeChecker,
5706
+ element: createElementTypeChecker(),
5707
+ elementType: createElementTypeTypeChecker(),
5708
+ instanceOf: createInstanceTypeChecker,
5709
+ node: createNodeChecker(),
5710
+ objectOf: createObjectOfTypeChecker,
5711
+ oneOf: createEnumTypeChecker,
5712
+ oneOfType: createUnionTypeChecker,
5713
+ shape: createShapeTypeChecker,
5714
+ exact: createStrictShapeTypeChecker
5715
+ };
5716
+
5717
+ /**
5718
+ * inlined Object.is polyfill to avoid requiring consumers ship their own
5719
+ * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
5720
+ */
5721
+ /*eslint-disable no-self-compare*/
5722
+ function is(x, y) {
5723
+ // SameValue algorithm
5724
+ if (x === y) {
5725
+ // Steps 1-5, 7-10
5726
+ // Steps 6.b-6.e: +0 != -0
5727
+ return x !== 0 || 1 / x === 1 / y;
5728
+ } else {
5729
+ // Step 6.a: NaN == NaN
5730
+ return x !== x && y !== y;
5731
+ }
5732
+ }
5733
+ /*eslint-enable no-self-compare*/
5734
+
5735
+ /**
5736
+ * We use an Error-like object for backward compatibility as people may call
5737
+ * PropTypes directly and inspect their output. However, we don't use real
5738
+ * Errors anymore. We don't inspect their stack anyway, and creating them
5739
+ * is prohibitively expensive if they are created too often, such as what
5740
+ * happens in oneOfType() for any type before the one that matched.
5741
+ */
5742
+ function PropTypeError(message, data) {
5743
+ this.message = message;
5744
+ this.data = data && typeof data === 'object' ? data : {};
5745
+ this.stack = '';
5746
+ }
5747
+ // Make `instanceof Error` still work for returned errors.
5748
+ PropTypeError.prototype = Error.prototype;
5749
+ function createChainableTypeChecker(validate) {
5750
+ if (process.env.NODE_ENV !== 'production') {
5751
+ var manualPropTypeCallCache = {};
5752
+ var manualPropTypeWarningCount = 0;
5753
+ }
5754
+ function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
5755
+ componentName = componentName || ANONYMOUS;
5756
+ propFullName = propFullName || propName;
5757
+ if (secret !== ReactPropTypesSecret) {
5758
+ if (throwOnDirectAccess) {
5759
+ // New behavior only for users of `prop-types` package
5760
+ var err = new Error('Calling PropTypes validators directly is not supported by the `prop-types` package. ' + 'Use `PropTypes.checkPropTypes()` to call them. ' + 'Read more at http://fb.me/use-check-prop-types');
5761
+ err.name = 'Invariant Violation';
5762
+ throw err;
5763
+ } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {
5764
+ // Old behavior for people using React.PropTypes
5765
+ var cacheKey = componentName + ':' + propName;
5766
+ if (!manualPropTypeCallCache[cacheKey] &&
5767
+ // Avoid spamming the console because they are often not actionable except for lib authors
5768
+ manualPropTypeWarningCount < 3) {
5769
+ printWarning('You are manually calling a React.PropTypes validation ' + 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' + 'and will throw in the standalone `prop-types` package. ' + 'You may be seeing this warning due to a third-party PropTypes ' + 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.');
5770
+ manualPropTypeCallCache[cacheKey] = true;
5771
+ manualPropTypeWarningCount++;
5772
+ }
5773
+ }
5774
+ }
5775
+ if (props[propName] == null) {
5776
+ if (isRequired) {
5777
+ if (props[propName] === null) {
5778
+ return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
5779
+ }
5780
+ return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
5781
+ }
5782
+ return null;
5783
+ } else {
5784
+ return validate(props, propName, componentName, location, propFullName);
5785
+ }
5786
+ }
5787
+ var chainedCheckType = checkType.bind(null, false);
5788
+ chainedCheckType.isRequired = checkType.bind(null, true);
5789
+ return chainedCheckType;
5790
+ }
5791
+ function createPrimitiveTypeChecker(expectedType) {
5792
+ function validate(props, propName, componentName, location, propFullName, secret) {
5793
+ var propValue = props[propName];
5794
+ var propType = getPropType(propValue);
5795
+ if (propType !== expectedType) {
5796
+ // `propValue` being instance of, say, date/regexp, pass the 'object'
5797
+ // check, but we can offer a more precise error message here rather than
5798
+ // 'of type `object`'.
5799
+ var preciseType = getPreciseType(propValue);
5800
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'), {
5801
+ expectedType: expectedType
5802
+ });
5803
+ }
5804
+ return null;
5805
+ }
5806
+ return createChainableTypeChecker(validate);
5807
+ }
5808
+ function createAnyTypeChecker() {
5809
+ return createChainableTypeChecker(emptyFunctionThatReturnsNull);
5810
+ }
5811
+ function createArrayOfTypeChecker(typeChecker) {
5812
+ function validate(props, propName, componentName, location, propFullName) {
5813
+ if (typeof typeChecker !== 'function') {
5814
+ return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
5815
+ }
5816
+ var propValue = props[propName];
5817
+ if (!Array.isArray(propValue)) {
5818
+ var propType = getPropType(propValue);
5819
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
5820
+ }
5821
+ for (var i = 0; i < propValue.length; i++) {
5822
+ var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
5823
+ if (error instanceof Error) {
5824
+ return error;
5825
+ }
5826
+ }
5827
+ return null;
5828
+ }
5829
+ return createChainableTypeChecker(validate);
5830
+ }
5831
+ function createElementTypeChecker() {
5832
+ function validate(props, propName, componentName, location, propFullName) {
5833
+ var propValue = props[propName];
5834
+ if (!isValidElement(propValue)) {
5835
+ var propType = getPropType(propValue);
5836
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
5837
+ }
5838
+ return null;
5839
+ }
5840
+ return createChainableTypeChecker(validate);
5841
+ }
5842
+ function createElementTypeTypeChecker() {
5843
+ function validate(props, propName, componentName, location, propFullName) {
5844
+ var propValue = props[propName];
5845
+ if (!ReactIs.isValidElementType(propValue)) {
5846
+ var propType = getPropType(propValue);
5847
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
5848
+ }
5849
+ return null;
5850
+ }
5851
+ return createChainableTypeChecker(validate);
5852
+ }
5853
+ function createInstanceTypeChecker(expectedClass) {
5854
+ function validate(props, propName, componentName, location, propFullName) {
5855
+ if (!(props[propName] instanceof expectedClass)) {
5856
+ var expectedClassName = expectedClass.name || ANONYMOUS;
5857
+ var actualClassName = getClassName(props[propName]);
5858
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
5859
+ }
5860
+ return null;
5861
+ }
5862
+ return createChainableTypeChecker(validate);
5863
+ }
5864
+ function createEnumTypeChecker(expectedValues) {
5865
+ if (!Array.isArray(expectedValues)) {
5866
+ if (process.env.NODE_ENV !== 'production') {
5867
+ if (arguments.length > 1) {
5868
+ printWarning('Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' + 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).');
5869
+ } else {
5870
+ printWarning('Invalid argument supplied to oneOf, expected an array.');
5871
+ }
5872
+ }
5873
+ return emptyFunctionThatReturnsNull;
5874
+ }
5875
+ function validate(props, propName, componentName, location, propFullName) {
5876
+ var propValue = props[propName];
5877
+ for (var i = 0; i < expectedValues.length; i++) {
5878
+ if (is(propValue, expectedValues[i])) {
5879
+ return null;
5880
+ }
5881
+ }
5882
+ var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
5883
+ var type = getPreciseType(value);
5884
+ if (type === 'symbol') {
5885
+ return String(value);
5886
+ }
5887
+ return value;
5888
+ });
5889
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
5890
+ }
5891
+ return createChainableTypeChecker(validate);
5892
+ }
5893
+ function createObjectOfTypeChecker(typeChecker) {
5894
+ function validate(props, propName, componentName, location, propFullName) {
5895
+ if (typeof typeChecker !== 'function') {
5896
+ return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
5897
+ }
5898
+ var propValue = props[propName];
5899
+ var propType = getPropType(propValue);
5900
+ if (propType !== 'object') {
5901
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
5902
+ }
5903
+ for (var key in propValue) {
5904
+ if (has(propValue, key)) {
5905
+ var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
5906
+ if (error instanceof Error) {
5907
+ return error;
5908
+ }
5909
+ }
5910
+ }
5911
+ return null;
5912
+ }
5913
+ return createChainableTypeChecker(validate);
5914
+ }
5915
+ function createUnionTypeChecker(arrayOfTypeCheckers) {
5916
+ if (!Array.isArray(arrayOfTypeCheckers)) {
5917
+ process.env.NODE_ENV !== 'production' ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
5918
+ return emptyFunctionThatReturnsNull;
5919
+ }
5920
+ for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
5921
+ var checker = arrayOfTypeCheckers[i];
5922
+ if (typeof checker !== 'function') {
5923
+ printWarning('Invalid argument supplied to oneOfType. Expected an array of check functions, but ' + 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.');
5924
+ return emptyFunctionThatReturnsNull;
5925
+ }
5926
+ }
5927
+ function validate(props, propName, componentName, location, propFullName) {
5928
+ var expectedTypes = [];
5929
+ for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
5930
+ var checker = arrayOfTypeCheckers[i];
5931
+ var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
5932
+ if (checkerResult == null) {
5933
+ return null;
5934
+ }
5935
+ if (checkerResult.data && has(checkerResult.data, 'expectedType')) {
5936
+ expectedTypes.push(checkerResult.data.expectedType);
5937
+ }
5938
+ }
5939
+ var expectedTypesMessage = expectedTypes.length > 0 ? ', expected one of type [' + expectedTypes.join(', ') + ']' : '';
5940
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
5941
+ }
5942
+ return createChainableTypeChecker(validate);
5943
+ }
5944
+ function createNodeChecker() {
5945
+ function validate(props, propName, componentName, location, propFullName) {
5946
+ if (!isNode(props[propName])) {
5947
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
5948
+ }
5949
+ return null;
5950
+ }
5951
+ return createChainableTypeChecker(validate);
5952
+ }
5953
+ function invalidValidatorError(componentName, location, propFullName, key, type) {
5954
+ return new PropTypeError((componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.');
5955
+ }
5956
+ function createShapeTypeChecker(shapeTypes) {
5957
+ function validate(props, propName, componentName, location, propFullName) {
5958
+ var propValue = props[propName];
5959
+ var propType = getPropType(propValue);
5960
+ if (propType !== 'object') {
5961
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
5962
+ }
5963
+ for (var key in shapeTypes) {
5964
+ var checker = shapeTypes[key];
5965
+ if (typeof checker !== 'function') {
5966
+ return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
5967
+ }
5968
+ var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
5969
+ if (error) {
5970
+ return error;
5971
+ }
5972
+ }
5973
+ return null;
5974
+ }
5975
+ return createChainableTypeChecker(validate);
5976
+ }
5977
+ function createStrictShapeTypeChecker(shapeTypes) {
5978
+ function validate(props, propName, componentName, location, propFullName) {
5979
+ var propValue = props[propName];
5980
+ var propType = getPropType(propValue);
5981
+ if (propType !== 'object') {
5982
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
5983
+ }
5984
+ // We need to check all keys in case some are required but missing from props.
5985
+ var allKeys = assign({}, props[propName], shapeTypes);
5986
+ for (var key in allKeys) {
5987
+ var checker = shapeTypes[key];
5988
+ if (has(shapeTypes, key) && typeof checker !== 'function') {
5989
+ return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
5990
+ }
5991
+ if (!checker) {
5992
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' + '\nBad object: ' + JSON.stringify(props[propName], null, ' ') + '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' '));
5993
+ }
5994
+ var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
5995
+ if (error) {
5996
+ return error;
5997
+ }
5998
+ }
5999
+ return null;
6000
+ }
6001
+ return createChainableTypeChecker(validate);
6002
+ }
6003
+ function isNode(propValue) {
6004
+ switch (typeof propValue) {
6005
+ case 'number':
6006
+ case 'string':
6007
+ case 'undefined':
6008
+ return true;
6009
+ case 'boolean':
6010
+ return !propValue;
6011
+ case 'object':
6012
+ if (Array.isArray(propValue)) {
6013
+ return propValue.every(isNode);
6014
+ }
6015
+ if (propValue === null || isValidElement(propValue)) {
6016
+ return true;
6017
+ }
6018
+ var iteratorFn = getIteratorFn(propValue);
6019
+ if (iteratorFn) {
6020
+ var iterator = iteratorFn.call(propValue);
6021
+ var step;
6022
+ if (iteratorFn !== propValue.entries) {
6023
+ while (!(step = iterator.next()).done) {
6024
+ if (!isNode(step.value)) {
6025
+ return false;
6026
+ }
6027
+ }
6028
+ } else {
6029
+ // Iterator will provide entry [k,v] tuples rather than values.
6030
+ while (!(step = iterator.next()).done) {
6031
+ var entry = step.value;
6032
+ if (entry) {
6033
+ if (!isNode(entry[1])) {
6034
+ return false;
6035
+ }
6036
+ }
6037
+ }
6038
+ }
6039
+ } else {
6040
+ return false;
6041
+ }
6042
+ return true;
6043
+ default:
6044
+ return false;
6045
+ }
6046
+ }
6047
+ function isSymbol(propType, propValue) {
6048
+ // Native Symbol.
6049
+ if (propType === 'symbol') {
6050
+ return true;
6051
+ }
6052
+
6053
+ // falsy value can't be a Symbol
6054
+ if (!propValue) {
6055
+ return false;
6056
+ }
6057
+
6058
+ // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
6059
+ if (propValue['@@toStringTag'] === 'Symbol') {
6060
+ return true;
6061
+ }
6062
+
6063
+ // Fallback for non-spec compliant Symbols which are polyfilled.
6064
+ if (typeof Symbol === 'function' && propValue instanceof Symbol) {
6065
+ return true;
6066
+ }
6067
+ return false;
6068
+ }
6069
+
6070
+ // Equivalent of `typeof` but with special handling for array and regexp.
6071
+ function getPropType(propValue) {
6072
+ var propType = typeof propValue;
6073
+ if (Array.isArray(propValue)) {
6074
+ return 'array';
6075
+ }
6076
+ if (propValue instanceof RegExp) {
6077
+ // Old webkits (at least until Android 4.0) return 'function' rather than
6078
+ // 'object' for typeof a RegExp. We'll normalize this here so that /bla/
6079
+ // passes PropTypes.object.
6080
+ return 'object';
6081
+ }
6082
+ if (isSymbol(propType, propValue)) {
6083
+ return 'symbol';
6084
+ }
6085
+ return propType;
6086
+ }
6087
+
6088
+ // This handles more types than `getPropType`. Only used for error messages.
6089
+ // See `createPrimitiveTypeChecker`.
6090
+ function getPreciseType(propValue) {
6091
+ if (typeof propValue === 'undefined' || propValue === null) {
6092
+ return '' + propValue;
6093
+ }
6094
+ var propType = getPropType(propValue);
6095
+ if (propType === 'object') {
6096
+ if (propValue instanceof Date) {
6097
+ return 'date';
6098
+ } else if (propValue instanceof RegExp) {
6099
+ return 'regexp';
6100
+ }
6101
+ }
6102
+ return propType;
6103
+ }
6104
+
6105
+ // Returns a string that is postfixed to a warning about an invalid type.
6106
+ // For example, "undefined" or "of type array"
6107
+ function getPostfixForTypeWarning(value) {
6108
+ var type = getPreciseType(value);
6109
+ switch (type) {
6110
+ case 'array':
6111
+ case 'object':
6112
+ return 'an ' + type;
6113
+ case 'boolean':
6114
+ case 'date':
6115
+ case 'regexp':
6116
+ return 'a ' + type;
6117
+ default:
6118
+ return type;
6119
+ }
6120
+ }
6121
+
6122
+ // Returns class name of the object, if any.
6123
+ function getClassName(propValue) {
6124
+ if (!propValue.constructor || !propValue.constructor.name) {
6125
+ return ANONYMOUS;
6126
+ }
6127
+ return propValue.constructor.name;
6128
+ }
6129
+ ReactPropTypes.checkPropTypes = checkPropTypes;
6130
+ ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
6131
+ ReactPropTypes.PropTypes = ReactPropTypes;
6132
+ return ReactPropTypes;
6133
+ };
6134
+ return factoryWithTypeCheckers$1;
6135
+ }
6136
+
6137
+ /**
6138
+ * Copyright (c) 2013-present, Facebook, Inc.
6139
+ *
6140
+ * This source code is licensed under the MIT license found in the
6141
+ * LICENSE file in the root directory of this source tree.
6142
+ */
6143
+
6144
+ var factoryWithThrowingShims$1;
6145
+ var hasRequiredFactoryWithThrowingShims$1;
6146
+ function requireFactoryWithThrowingShims$1() {
6147
+ if (hasRequiredFactoryWithThrowingShims$1) return factoryWithThrowingShims$1;
6148
+ hasRequiredFactoryWithThrowingShims$1 = 1;
6149
+ var ReactPropTypesSecret = /*@__PURE__*/requireReactPropTypesSecret$1();
6150
+ function emptyFunction() {}
6151
+ function emptyFunctionWithReset() {}
6152
+ emptyFunctionWithReset.resetWarningCache = emptyFunction;
6153
+ factoryWithThrowingShims$1 = function () {
6154
+ function shim(props, propName, componentName, location, propFullName, secret) {
6155
+ if (secret === ReactPropTypesSecret) {
6156
+ // It is still safe when called from React.
6157
+ return;
6158
+ }
6159
+ var err = new Error('Calling PropTypes validators directly is not supported by the `prop-types` package. ' + 'Use PropTypes.checkPropTypes() to call them. ' + 'Read more at http://fb.me/use-check-prop-types');
6160
+ err.name = 'Invariant Violation';
6161
+ throw err;
6162
+ }
6163
+ shim.isRequired = shim;
6164
+ function getShim() {
6165
+ return shim;
6166
+ } // Important!
6167
+ // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
6168
+ var ReactPropTypes = {
6169
+ array: shim,
6170
+ bigint: shim,
6171
+ bool: shim,
6172
+ func: shim,
6173
+ number: shim,
6174
+ object: shim,
6175
+ string: shim,
6176
+ symbol: shim,
6177
+ any: shim,
6178
+ arrayOf: getShim,
6179
+ element: shim,
6180
+ elementType: shim,
6181
+ instanceOf: getShim,
6182
+ node: shim,
6183
+ objectOf: getShim,
6184
+ oneOf: getShim,
6185
+ oneOfType: getShim,
6186
+ shape: getShim,
6187
+ exact: getShim,
6188
+ checkPropTypes: emptyFunctionWithReset,
6189
+ resetWarningCache: emptyFunction
6190
+ };
6191
+ ReactPropTypes.PropTypes = ReactPropTypes;
6192
+ return ReactPropTypes;
6193
+ };
6194
+ return factoryWithThrowingShims$1;
6195
+ }
6196
+
6197
+ /**
6198
+ * Copyright (c) 2013-present, Facebook, Inc.
6199
+ *
6200
+ * This source code is licensed under the MIT license found in the
6201
+ * LICENSE file in the root directory of this source tree.
6202
+ */
6203
+
6204
+ var hasRequiredPropTypes$1;
6205
+ function requirePropTypes$1() {
6206
+ if (hasRequiredPropTypes$1) return propTypes$1.exports;
6207
+ hasRequiredPropTypes$1 = 1;
6208
+ if (process.env.NODE_ENV !== 'production') {
6209
+ var ReactIs = requireReactIs$1();
6210
+
6211
+ // By explicitly using `prop-types` you are opting into new development behavior.
6212
+ // http://fb.me/prop-types-in-prod
6213
+ var throwOnDirectAccess = true;
6214
+ propTypes$1.exports = /*@__PURE__*/requireFactoryWithTypeCheckers$1()(ReactIs.isElement, throwOnDirectAccess);
6215
+ } else {
6216
+ // By explicitly using `prop-types` you are opting into new production behavior.
6217
+ // http://fb.me/prop-types-in-prod
6218
+ propTypes$1.exports = /*@__PURE__*/requireFactoryWithThrowingShims$1()();
6219
+ }
6220
+ return propTypes$1.exports;
6221
+ }
6222
+ var propTypesExports$1 = /*@__PURE__*/requirePropTypes$1();
6223
+ var PropTypes$1 = /*@__PURE__*/getDefaultExportFromCjs$1(propTypesExports$1);
6224
+ ({
6225
+ onPowerOff: PropTypes$1.func,
6226
+ onRestart: PropTypes$1.func,
6227
+ powerOffLabel: PropTypes$1.string,
6228
+ restartLabel: PropTypes$1.string,
6229
+ iconClassName: PropTypes$1.string,
6230
+ confirmTitle: PropTypes$1.string,
6231
+ cancelText: PropTypes$1.string,
6232
+ okText: PropTypes$1.string,
6233
+ run: PropTypes$1.func
6234
+ });
6235
+ ({
6236
+ logoUrl: PropTypes$1.string,
6237
+ logoWidth: PropTypes$1.number,
6238
+ logoAlt: PropTypes$1.string,
6239
+ onClick: PropTypes$1.func
6240
+ });
6241
+
6242
+ // PropTypes 类型检查
6243
+ ({
6244
+ menuElement: PropTypes$1.node,
6245
+ productInfo: PropTypes$1.shape({
6246
+ productName: PropTypes$1.string,
6247
+ version: PropTypes$1.string
6248
+ }),
6249
+ showLogo: PropTypes$1.bool,
6250
+ showProductInfo: PropTypes$1.bool,
6251
+ showHardwareUsage: PropTypes$1.bool,
6252
+ showSystemOperations: PropTypes$1.bool,
6253
+ onPowerOff: PropTypes$1.func,
6254
+ onRestart: PropTypes$1.func,
6255
+ onRun: PropTypes$1.func,
6256
+ hardwareMonitorUrl: PropTypes$1.string,
6257
+ getSocketUrl: PropTypes$1.func,
6258
+ logoProps: PropTypes$1.object,
6259
+ className: PropTypes$1.string,
6260
+ style: PropTypes$1.object
6261
+ });
3800
6262
  function getDefaultExportFromCjs(x) {
3801
6263
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
3802
6264
  }
@@ -5494,5 +7956,5 @@ function DraggableNumberInput(_ref2) {
5494
7956
  }));
5495
7957
  }
5496
7958
 
5497
- export { AuthorizationModal$1 as AuthorizationModal, CommonHeader$1 as CommonHeader, DraggableNumberInput, LSMLabelField$1 as LSMLabelField, NetworkSettingsModal$1 as NetworkSettingsModal, NmosModal$1 as NmosModal, PresetModal, PtpModal$1 as PtpModal, StyledModal$3 as StyledModal, SystemOperations$1 as SystemOperations, UpgradeManager$1 as UpgradeManager, useAuth, useHardwareUsage$1 as useHardwareUsage, useSystemOperations$1 as useSystemOperations, useUpgrade$1 as useUpgrade };
7959
+ export { AuthorizationModal$1 as AuthorizationModal, CommonHeader$1 as CommonHeader, DraggableNumberInput, LSMLabelField$1 as LSMLabelField, NetworkSettingsModal$1 as NetworkSettingsModal, NmosModal$1 as NmosModal, PresetModal, PtpModal$1 as PtpModal, StyledModal$3 as StyledModal, SystemOperations$1 as SystemOperations, UpgradeManager$1 as UpgradeManager, useAuth, useHardwareUsage$1 as useHardwareUsage, usePageReload$1 as usePageReload, useSystemOperations$1 as useSystemOperations, useUpgrade$1 as useUpgrade };
5498
7960
  //# sourceMappingURL=index.esm.js.map