@handsontable/react 0.0.0-next-9daae4b-20240507 → 0.0.0-next-0d1b629-20240507

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.
@@ -50,11 +50,11 @@ function _toPrimitive(t, r) {
50
50
  if ("object" != typeof t || !t) return t;
51
51
  var e = t[Symbol.toPrimitive];
52
52
  if (void 0 !== e) {
53
- var i = e.call(t, r || "default");
53
+ var i = e.call(t, r );
54
54
  if ("object" != typeof i) return i;
55
55
  throw new TypeError("@@toPrimitive must return a primitive value.");
56
56
  }
57
- return ("string" === r ? String : Number)(t);
57
+ return (String )(t);
58
58
  }
59
59
  function _toPropertyKey(t) {
60
60
  var i = _toPrimitive(t, "string");
@@ -137,12 +137,11 @@ function _setPrototypeOf(o, p) {
137
137
  function _objectWithoutPropertiesLoose(source, excluded) {
138
138
  if (source == null) return {};
139
139
  var target = {};
140
- var sourceKeys = Object.keys(source);
141
- var key, i;
142
- for (i = 0; i < sourceKeys.length; i++) {
143
- key = sourceKeys[i];
144
- if (excluded.indexOf(key) >= 0) continue;
145
- target[key] = source[key];
140
+ for (var key in source) {
141
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
142
+ if (excluded.indexOf(key) >= 0) continue;
143
+ target[key] = source[key];
144
+ }
146
145
  }
147
146
  return target;
148
147
  }
@@ -531,160 +530,137 @@ var RenderersPortalManager = /*#__PURE__*/function (_React$Component) {
531
530
  }]);
532
531
  }(React__default["default"].Component);
533
532
 
534
- var version="0.0.0-next-9daae4b-20240507";
533
+ var version="0.0.0-next-0d1b629-20240507";
535
534
 
536
- function createCommonjsModule(fn, module) {
537
- return module = { exports: {} }, fn(module, module.exports), module.exports;
535
+ function getDefaultExportFromCjs (x) {
536
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
538
537
  }
539
538
 
540
- /** @license React v16.13.1
541
- * react-is.production.min.js
542
- *
543
- * Copyright (c) Facebook, Inc. and its affiliates.
544
- *
545
- * This source code is licensed under the MIT license found in the
546
- * LICENSE file in the root directory of this source tree.
547
- */
539
+ var propTypes = {exports: {}};
548
540
 
549
- var b = "function" === typeof Symbol && Symbol["for"],
550
- c = b ? Symbol["for"]("react.element") : 60103,
551
- d = b ? Symbol["for"]("react.portal") : 60106,
552
- e = b ? Symbol["for"]("react.fragment") : 60107,
553
- f = b ? Symbol["for"]("react.strict_mode") : 60108,
554
- g = b ? Symbol["for"]("react.profiler") : 60114,
555
- h = b ? Symbol["for"]("react.provider") : 60109,
556
- k = b ? Symbol["for"]("react.context") : 60110,
557
- l = b ? Symbol["for"]("react.async_mode") : 60111,
558
- m = b ? Symbol["for"]("react.concurrent_mode") : 60111,
559
- n = b ? Symbol["for"]("react.forward_ref") : 60112,
560
- p = b ? Symbol["for"]("react.suspense") : 60113,
561
- q = b ? Symbol["for"]("react.suspense_list") : 60120,
562
- r = b ? Symbol["for"]("react.memo") : 60115,
563
- t = b ? Symbol["for"]("react.lazy") : 60116,
564
- v = b ? Symbol["for"]("react.block") : 60121,
565
- w = b ? Symbol["for"]("react.fundamental") : 60117,
566
- x = b ? Symbol["for"]("react.responder") : 60118,
567
- y = b ? Symbol["for"]("react.scope") : 60119;
568
- function z(a) {
569
- if ("object" === _typeof(a) && null !== a) {
570
- var u = a.$$typeof;
571
- switch (u) {
572
- case c:
573
- switch (a = a.type, a) {
574
- case l:
575
- case m:
576
- case e:
577
- case g:
578
- case f:
579
- case p:
580
- return a;
581
- default:
582
- switch (a = a && a.$$typeof, a) {
583
- case k:
584
- case n:
585
- case t:
586
- case r:
587
- case h:
588
- return a;
589
- default:
590
- return u;
591
- }
592
- }
593
- case d:
594
- return u;
541
+ var reactIs = {exports: {}};
542
+
543
+ var reactIs_production_min = {};
544
+
545
+ var hasRequiredReactIs_production_min;
546
+ function requireReactIs_production_min() {
547
+ if (hasRequiredReactIs_production_min) return reactIs_production_min;
548
+ hasRequiredReactIs_production_min = 1;
549
+ var b = "function" === typeof Symbol && Symbol["for"],
550
+ c = b ? Symbol["for"]("react.element") : 60103,
551
+ d = b ? Symbol["for"]("react.portal") : 60106,
552
+ e = b ? Symbol["for"]("react.fragment") : 60107,
553
+ f = b ? Symbol["for"]("react.strict_mode") : 60108,
554
+ g = b ? Symbol["for"]("react.profiler") : 60114,
555
+ h = b ? Symbol["for"]("react.provider") : 60109,
556
+ k = b ? Symbol["for"]("react.context") : 60110,
557
+ l = b ? Symbol["for"]("react.async_mode") : 60111,
558
+ m = b ? Symbol["for"]("react.concurrent_mode") : 60111,
559
+ n = b ? Symbol["for"]("react.forward_ref") : 60112,
560
+ p = b ? Symbol["for"]("react.suspense") : 60113,
561
+ q = b ? Symbol["for"]("react.suspense_list") : 60120,
562
+ r = b ? Symbol["for"]("react.memo") : 60115,
563
+ t = b ? Symbol["for"]("react.lazy") : 60116,
564
+ v = b ? Symbol["for"]("react.block") : 60121,
565
+ w = b ? Symbol["for"]("react.fundamental") : 60117,
566
+ x = b ? Symbol["for"]("react.responder") : 60118,
567
+ y = b ? Symbol["for"]("react.scope") : 60119;
568
+ function z(a) {
569
+ if ("object" === _typeof(a) && null !== a) {
570
+ var u = a.$$typeof;
571
+ switch (u) {
572
+ case c:
573
+ switch (a = a.type, a) {
574
+ case l:
575
+ case m:
576
+ case e:
577
+ case g:
578
+ case f:
579
+ case p:
580
+ return a;
581
+ default:
582
+ switch (a = a && a.$$typeof, a) {
583
+ case k:
584
+ case n:
585
+ case t:
586
+ case r:
587
+ case h:
588
+ return a;
589
+ default:
590
+ return u;
591
+ }
592
+ }
593
+ case d:
594
+ return u;
595
+ }
595
596
  }
596
597
  }
598
+ function A(a) {
599
+ return z(a) === m;
600
+ }
601
+ reactIs_production_min.AsyncMode = l;
602
+ reactIs_production_min.ConcurrentMode = m;
603
+ reactIs_production_min.ContextConsumer = k;
604
+ reactIs_production_min.ContextProvider = h;
605
+ reactIs_production_min.Element = c;
606
+ reactIs_production_min.ForwardRef = n;
607
+ reactIs_production_min.Fragment = e;
608
+ reactIs_production_min.Lazy = t;
609
+ reactIs_production_min.Memo = r;
610
+ reactIs_production_min.Portal = d;
611
+ reactIs_production_min.Profiler = g;
612
+ reactIs_production_min.StrictMode = f;
613
+ reactIs_production_min.Suspense = p;
614
+ reactIs_production_min.isAsyncMode = function (a) {
615
+ return A(a) || z(a) === l;
616
+ };
617
+ reactIs_production_min.isConcurrentMode = A;
618
+ reactIs_production_min.isContextConsumer = function (a) {
619
+ return z(a) === k;
620
+ };
621
+ reactIs_production_min.isContextProvider = function (a) {
622
+ return z(a) === h;
623
+ };
624
+ reactIs_production_min.isElement = function (a) {
625
+ return "object" === _typeof(a) && null !== a && a.$$typeof === c;
626
+ };
627
+ reactIs_production_min.isForwardRef = function (a) {
628
+ return z(a) === n;
629
+ };
630
+ reactIs_production_min.isFragment = function (a) {
631
+ return z(a) === e;
632
+ };
633
+ reactIs_production_min.isLazy = function (a) {
634
+ return z(a) === t;
635
+ };
636
+ reactIs_production_min.isMemo = function (a) {
637
+ return z(a) === r;
638
+ };
639
+ reactIs_production_min.isPortal = function (a) {
640
+ return z(a) === d;
641
+ };
642
+ reactIs_production_min.isProfiler = function (a) {
643
+ return z(a) === g;
644
+ };
645
+ reactIs_production_min.isStrictMode = function (a) {
646
+ return z(a) === f;
647
+ };
648
+ reactIs_production_min.isSuspense = function (a) {
649
+ return z(a) === p;
650
+ };
651
+ reactIs_production_min.isValidElementType = function (a) {
652
+ 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);
653
+ };
654
+ reactIs_production_min.typeOf = z;
655
+ return reactIs_production_min;
597
656
  }
598
- function A(a) {
599
- return z(a) === m;
600
- }
601
- var AsyncMode = l;
602
- var ConcurrentMode = m;
603
- var ContextConsumer = k;
604
- var ContextProvider = h;
605
- var Element = c;
606
- var ForwardRef = n;
607
- var Fragment = e;
608
- var Lazy = t;
609
- var Memo = r;
610
- var Portal = d;
611
- var Profiler = g;
612
- var StrictMode = f;
613
- var Suspense = p;
614
- var isAsyncMode = function isAsyncMode(a) {
615
- return A(a) || z(a) === l;
616
- };
617
- var isConcurrentMode = A;
618
- var isContextConsumer = function isContextConsumer(a) {
619
- return z(a) === k;
620
- };
621
- var isContextProvider = function isContextProvider(a) {
622
- return z(a) === h;
623
- };
624
- var isElement = function isElement(a) {
625
- return "object" === _typeof(a) && null !== a && a.$$typeof === c;
626
- };
627
- var isForwardRef = function isForwardRef(a) {
628
- return z(a) === n;
629
- };
630
- var isFragment = function isFragment(a) {
631
- return z(a) === e;
632
- };
633
- var isLazy = function isLazy(a) {
634
- return z(a) === t;
635
- };
636
- var isMemo = function isMemo(a) {
637
- return z(a) === r;
638
- };
639
- var isPortal = function isPortal(a) {
640
- return z(a) === d;
641
- };
642
- var isProfiler = function isProfiler(a) {
643
- return z(a) === g;
644
- };
645
- var isStrictMode = function isStrictMode(a) {
646
- return z(a) === f;
647
- };
648
- var isSuspense = function isSuspense(a) {
649
- return z(a) === p;
650
- };
651
- var isValidElementType = function isValidElementType(a) {
652
- 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);
653
- };
654
- var typeOf = z;
655
- var reactIs_production_min = {
656
- AsyncMode: AsyncMode,
657
- ConcurrentMode: ConcurrentMode,
658
- ContextConsumer: ContextConsumer,
659
- ContextProvider: ContextProvider,
660
- Element: Element,
661
- ForwardRef: ForwardRef,
662
- Fragment: Fragment,
663
- Lazy: Lazy,
664
- Memo: Memo,
665
- Portal: Portal,
666
- Profiler: Profiler,
667
- StrictMode: StrictMode,
668
- Suspense: Suspense,
669
- isAsyncMode: isAsyncMode,
670
- isConcurrentMode: isConcurrentMode,
671
- isContextConsumer: isContextConsumer,
672
- isContextProvider: isContextProvider,
673
- isElement: isElement,
674
- isForwardRef: isForwardRef,
675
- isFragment: isFragment,
676
- isLazy: isLazy,
677
- isMemo: isMemo,
678
- isPortal: isPortal,
679
- isProfiler: isProfiler,
680
- isStrictMode: isStrictMode,
681
- isSuspense: isSuspense,
682
- isValidElementType: isValidElementType,
683
- typeOf: typeOf
684
- };
685
657
 
686
- var reactIs_development = createCommonjsModule(function (module, exports) {
658
+ var reactIs_development = {};
687
659
 
660
+ var hasRequiredReactIs_development;
661
+ function requireReactIs_development() {
662
+ if (hasRequiredReactIs_development) return reactIs_development;
663
+ hasRequiredReactIs_development = 1;
688
664
  if (process.env.NODE_ENV !== "production") {
689
665
  (function () {
690
666
 
@@ -811,155 +787,136 @@ var reactIs_development = createCommonjsModule(function (module, exports) {
811
787
  function isSuspense(object) {
812
788
  return typeOf(object) === REACT_SUSPENSE_TYPE;
813
789
  }
814
- exports.AsyncMode = AsyncMode;
815
- exports.ConcurrentMode = ConcurrentMode;
816
- exports.ContextConsumer = ContextConsumer;
817
- exports.ContextProvider = ContextProvider;
818
- exports.Element = Element;
819
- exports.ForwardRef = ForwardRef;
820
- exports.Fragment = Fragment;
821
- exports.Lazy = Lazy;
822
- exports.Memo = Memo;
823
- exports.Portal = Portal;
824
- exports.Profiler = Profiler;
825
- exports.StrictMode = StrictMode;
826
- exports.Suspense = Suspense;
827
- exports.isAsyncMode = isAsyncMode;
828
- exports.isConcurrentMode = isConcurrentMode;
829
- exports.isContextConsumer = isContextConsumer;
830
- exports.isContextProvider = isContextProvider;
831
- exports.isElement = isElement;
832
- exports.isForwardRef = isForwardRef;
833
- exports.isFragment = isFragment;
834
- exports.isLazy = isLazy;
835
- exports.isMemo = isMemo;
836
- exports.isPortal = isPortal;
837
- exports.isProfiler = isProfiler;
838
- exports.isStrictMode = isStrictMode;
839
- exports.isSuspense = isSuspense;
840
- exports.isValidElementType = isValidElementType;
841
- exports.typeOf = typeOf;
790
+ reactIs_development.AsyncMode = AsyncMode;
791
+ reactIs_development.ConcurrentMode = ConcurrentMode;
792
+ reactIs_development.ContextConsumer = ContextConsumer;
793
+ reactIs_development.ContextProvider = ContextProvider;
794
+ reactIs_development.Element = Element;
795
+ reactIs_development.ForwardRef = ForwardRef;
796
+ reactIs_development.Fragment = Fragment;
797
+ reactIs_development.Lazy = Lazy;
798
+ reactIs_development.Memo = Memo;
799
+ reactIs_development.Portal = Portal;
800
+ reactIs_development.Profiler = Profiler;
801
+ reactIs_development.StrictMode = StrictMode;
802
+ reactIs_development.Suspense = Suspense;
803
+ reactIs_development.isAsyncMode = isAsyncMode;
804
+ reactIs_development.isConcurrentMode = isConcurrentMode;
805
+ reactIs_development.isContextConsumer = isContextConsumer;
806
+ reactIs_development.isContextProvider = isContextProvider;
807
+ reactIs_development.isElement = isElement;
808
+ reactIs_development.isForwardRef = isForwardRef;
809
+ reactIs_development.isFragment = isFragment;
810
+ reactIs_development.isLazy = isLazy;
811
+ reactIs_development.isMemo = isMemo;
812
+ reactIs_development.isPortal = isPortal;
813
+ reactIs_development.isProfiler = isProfiler;
814
+ reactIs_development.isStrictMode = isStrictMode;
815
+ reactIs_development.isSuspense = isSuspense;
816
+ reactIs_development.isValidElementType = isValidElementType;
817
+ reactIs_development.typeOf = typeOf;
842
818
  })();
843
819
  }
844
- });
845
- reactIs_development.AsyncMode;
846
- reactIs_development.ConcurrentMode;
847
- reactIs_development.ContextConsumer;
848
- reactIs_development.ContextProvider;
849
- reactIs_development.Element;
850
- reactIs_development.ForwardRef;
851
- reactIs_development.Fragment;
852
- reactIs_development.Lazy;
853
- reactIs_development.Memo;
854
- reactIs_development.Portal;
855
- reactIs_development.Profiler;
856
- reactIs_development.StrictMode;
857
- reactIs_development.Suspense;
858
- reactIs_development.isAsyncMode;
859
- reactIs_development.isConcurrentMode;
860
- reactIs_development.isContextConsumer;
861
- reactIs_development.isContextProvider;
862
- reactIs_development.isElement;
863
- reactIs_development.isForwardRef;
864
- reactIs_development.isFragment;
865
- reactIs_development.isLazy;
866
- reactIs_development.isMemo;
867
- reactIs_development.isPortal;
868
- reactIs_development.isProfiler;
869
- reactIs_development.isStrictMode;
870
- reactIs_development.isSuspense;
871
- reactIs_development.isValidElementType;
872
- reactIs_development.typeOf;
873
-
874
- var reactIs = createCommonjsModule(function (module) {
820
+ return reactIs_development;
821
+ }
875
822
 
823
+ var hasRequiredReactIs;
824
+ function requireReactIs() {
825
+ if (hasRequiredReactIs) return reactIs.exports;
826
+ hasRequiredReactIs = 1;
876
827
  if (process.env.NODE_ENV === 'production') {
877
- module.exports = reactIs_production_min;
828
+ reactIs.exports = requireReactIs_production_min();
878
829
  } else {
879
- module.exports = reactIs_development;
830
+ reactIs.exports = requireReactIs_development();
880
831
  }
881
- });
832
+ return reactIs.exports;
833
+ }
882
834
 
883
835
  /*
884
836
  object-assign
885
837
  (c) Sindre Sorhus
886
838
  @license MIT
887
839
  */
888
-
889
-
890
- /* eslint-disable no-unused-vars */
891
- var getOwnPropertySymbols = Object.getOwnPropertySymbols;
892
- var hasOwnProperty = Object.prototype.hasOwnProperty;
893
- var propIsEnumerable = Object.prototype.propertyIsEnumerable;
894
- function toObject(val) {
895
- if (val === null || val === undefined) {
896
- throw new TypeError('Object.assign cannot be called with null or undefined');
840
+ var objectAssign;
841
+ var hasRequiredObjectAssign;
842
+ function requireObjectAssign() {
843
+ if (hasRequiredObjectAssign) return objectAssign;
844
+ hasRequiredObjectAssign = 1;
845
+ /* eslint-disable no-unused-vars */
846
+ var getOwnPropertySymbols = Object.getOwnPropertySymbols;
847
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
848
+ var propIsEnumerable = Object.prototype.propertyIsEnumerable;
849
+ function toObject(val) {
850
+ if (val === null || val === undefined) {
851
+ throw new TypeError('Object.assign cannot be called with null or undefined');
852
+ }
853
+ return Object(val);
897
854
  }
898
- return Object(val);
899
- }
900
- function shouldUseNative() {
901
- try {
902
- if (!Object.assign) {
903
- return false;
904
- }
855
+ function shouldUseNative() {
856
+ try {
857
+ if (!Object.assign) {
858
+ return false;
859
+ }
905
860
 
906
- // Detect buggy property enumeration order in older V8 versions.
861
+ // Detect buggy property enumeration order in older V8 versions.
907
862
 
908
- // https://bugs.chromium.org/p/v8/issues/detail?id=4118
909
- var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
910
- test1[5] = 'de';
911
- if (Object.getOwnPropertyNames(test1)[0] === '5') {
912
- return false;
913
- }
863
+ // https://bugs.chromium.org/p/v8/issues/detail?id=4118
864
+ var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
865
+ test1[5] = 'de';
866
+ if (Object.getOwnPropertyNames(test1)[0] === '5') {
867
+ return false;
868
+ }
914
869
 
915
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
916
- var test2 = {};
917
- for (var i = 0; i < 10; i++) {
918
- test2['_' + String.fromCharCode(i)] = i;
919
- }
920
- var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
921
- return test2[n];
922
- });
923
- if (order2.join('') !== '0123456789') {
924
- return false;
925
- }
870
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3056
871
+ var test2 = {};
872
+ for (var i = 0; i < 10; i++) {
873
+ test2['_' + String.fromCharCode(i)] = i;
874
+ }
875
+ var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
876
+ return test2[n];
877
+ });
878
+ if (order2.join('') !== '0123456789') {
879
+ return false;
880
+ }
926
881
 
927
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
928
- var test3 = {};
929
- 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
930
- test3[letter] = letter;
931
- });
932
- if (Object.keys(Object.assign({}, test3)).join('') !== 'abcdefghijklmnopqrst') {
882
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3056
883
+ var test3 = {};
884
+ 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
885
+ test3[letter] = letter;
886
+ });
887
+ if (Object.keys(Object.assign({}, test3)).join('') !== 'abcdefghijklmnopqrst') {
888
+ return false;
889
+ }
890
+ return true;
891
+ } catch (err) {
892
+ // We don't expect any of the above to throw, but better to be safe.
933
893
  return false;
934
894
  }
935
- return true;
936
- } catch (err) {
937
- // We don't expect any of the above to throw, but better to be safe.
938
- return false;
939
895
  }
940
- }
941
- var objectAssign = shouldUseNative() ? Object.assign : function (target, source) {
942
- var from;
943
- var to = toObject(target);
944
- var symbols;
945
- for (var s = 1; s < arguments.length; s++) {
946
- from = Object(arguments[s]);
947
- for (var key in from) {
948
- if (hasOwnProperty.call(from, key)) {
949
- to[key] = from[key];
950
- }
951
- }
952
- if (getOwnPropertySymbols) {
953
- symbols = getOwnPropertySymbols(from);
954
- for (var i = 0; i < symbols.length; i++) {
955
- if (propIsEnumerable.call(from, symbols[i])) {
956
- to[symbols[i]] = from[symbols[i]];
896
+ objectAssign = shouldUseNative() ? Object.assign : function (target, source) {
897
+ var from;
898
+ var to = toObject(target);
899
+ var symbols;
900
+ for (var s = 1; s < arguments.length; s++) {
901
+ from = Object(arguments[s]);
902
+ for (var key in from) {
903
+ if (hasOwnProperty.call(from, key)) {
904
+ to[key] = from[key];
905
+ }
906
+ }
907
+ if (getOwnPropertySymbols) {
908
+ symbols = getOwnPropertySymbols(from);
909
+ for (var i = 0; i < symbols.length; i++) {
910
+ if (propIsEnumerable.call(from, symbols[i])) {
911
+ to[symbols[i]] = from[symbols[i]];
912
+ }
957
913
  }
958
914
  }
959
915
  }
960
- }
961
- return to;
962
- };
916
+ return to;
917
+ };
918
+ return objectAssign;
919
+ }
963
920
 
964
921
  /**
965
922
  * Copyright (c) 2013-present, Facebook, Inc.
@@ -967,692 +924,736 @@ var objectAssign = shouldUseNative() ? Object.assign : function (target, source)
967
924
  * This source code is licensed under the MIT license found in the
968
925
  * LICENSE file in the root directory of this source tree.
969
926
  */
970
-
971
-
972
- var ReactPropTypesSecret$1 = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
973
- var ReactPropTypesSecret_1 = ReactPropTypesSecret$1;
974
-
975
- var has$1 = Function.call.bind(Object.prototype.hasOwnProperty);
976
-
977
- var printWarning$1 = function printWarning() {};
978
- if (process.env.NODE_ENV !== 'production') {
979
- var ReactPropTypesSecret = ReactPropTypesSecret_1;
980
- var loggedTypeFailures = {};
981
- var has = has$1;
982
- printWarning$1 = function printWarning(text) {
983
- var message = 'Warning: ' + text;
984
- if (typeof console !== 'undefined') {
985
- console.error(message);
986
- }
987
- try {
988
- // --- Welcome to debugging React ---
989
- // This error was thrown as a convenience so that you can use this stack
990
- // to find the callsite that caused this warning to fire.
991
- throw new Error(message);
992
- } catch (x) {/**/}
993
- };
927
+ var ReactPropTypesSecret_1;
928
+ var hasRequiredReactPropTypesSecret;
929
+ function requireReactPropTypesSecret() {
930
+ if (hasRequiredReactPropTypesSecret) return ReactPropTypesSecret_1;
931
+ hasRequiredReactPropTypesSecret = 1;
932
+ var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
933
+ ReactPropTypesSecret_1 = ReactPropTypesSecret;
934
+ return ReactPropTypesSecret_1;
994
935
  }
995
936
 
996
- /**
997
- * Assert that the values match with the type specs.
998
- * Error messages are memorized and will only be shown once.
999
- *
1000
- * @param {object} typeSpecs Map of name to a ReactPropType
1001
- * @param {object} values Runtime values that need to be type-checked
1002
- * @param {string} location e.g. "prop", "context", "child context"
1003
- * @param {string} componentName Name of the component for error messages.
1004
- * @param {?Function} getStack Returns the component stack.
1005
- * @private
1006
- */
1007
- function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
1008
- if (process.env.NODE_ENV !== 'production') {
1009
- for (var typeSpecName in typeSpecs) {
1010
- if (has(typeSpecs, typeSpecName)) {
1011
- var error;
1012
- // Prop type validation may throw. In case they do, we don't want to
1013
- // fail the render phase where it didn't fail before. So we log it.
1014
- // After these have been cleaned up, we'll let them throw.
1015
- try {
1016
- // This is intentionally an invariant that gets caught. It's the same
1017
- // behavior as without this statement except with a better message.
1018
- if (typeof typeSpecs[typeSpecName] !== 'function') {
1019
- 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`.');
1020
- err.name = 'Invariant Violation';
1021
- throw err;
1022
- }
1023
- error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
1024
- } catch (ex) {
1025
- error = ex;
1026
- }
1027
- if (error && !(error instanceof Error)) {
1028
- printWarning$1((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).');
1029
- }
1030
- if (error instanceof Error && !(error.message in loggedTypeFailures)) {
1031
- // Only monitor this failure once because there tends to be a lot of the
1032
- // same error.
1033
- loggedTypeFailures[error.message] = true;
1034
- var stack = getStack ? getStack() : '';
1035
- printWarning$1('Failed ' + location + ' type: ' + error.message + (stack != null ? stack : ''));
1036
- }
1037
- }
1038
- }
1039
- }
937
+ var has;
938
+ var hasRequiredHas;
939
+ function requireHas() {
940
+ if (hasRequiredHas) return has;
941
+ hasRequiredHas = 1;
942
+ has = Function.call.bind(Object.prototype.hasOwnProperty);
943
+ return has;
1040
944
  }
1041
945
 
1042
- /**
1043
- * Resets warning cache when testing.
1044
- *
1045
- * @private
1046
- */
1047
- checkPropTypes.resetWarningCache = function () {
946
+ var checkPropTypes_1;
947
+ var hasRequiredCheckPropTypes;
948
+ function requireCheckPropTypes() {
949
+ if (hasRequiredCheckPropTypes) return checkPropTypes_1;
950
+ hasRequiredCheckPropTypes = 1;
951
+ var printWarning = function printWarning() {};
1048
952
  if (process.env.NODE_ENV !== 'production') {
1049
- loggedTypeFailures = {};
953
+ var ReactPropTypesSecret = requireReactPropTypesSecret();
954
+ var loggedTypeFailures = {};
955
+ var has = requireHas();
956
+ printWarning = function printWarning(text) {
957
+ var message = 'Warning: ' + text;
958
+ if (typeof console !== 'undefined') {
959
+ console.error(message);
960
+ }
961
+ try {
962
+ // --- Welcome to debugging React ---
963
+ // This error was thrown as a convenience so that you can use this stack
964
+ // to find the callsite that caused this warning to fire.
965
+ throw new Error(message);
966
+ } catch (x) {/**/}
967
+ };
1050
968
  }
1051
- };
1052
- var checkPropTypes_1 = checkPropTypes;
1053
-
1054
- var printWarning = function printWarning() {};
1055
- if (process.env.NODE_ENV !== 'production') {
1056
- printWarning = function printWarning(text) {
1057
- var message = 'Warning: ' + text;
1058
- if (typeof console !== 'undefined') {
1059
- console.error(message);
1060
- }
1061
- try {
1062
- // --- Welcome to debugging React ---
1063
- // This error was thrown as a convenience so that you can use this stack
1064
- // to find the callsite that caused this warning to fire.
1065
- throw new Error(message);
1066
- } catch (x) {}
1067
- };
1068
- }
1069
- function emptyFunctionThatReturnsNull() {
1070
- return null;
1071
- }
1072
- var factoryWithTypeCheckers = function factoryWithTypeCheckers(isValidElement, throwOnDirectAccess) {
1073
- /* global Symbol */
1074
- var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
1075
- var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
1076
969
 
1077
970
  /**
1078
- * Returns the iterator method function contained on the iterable object.
1079
- *
1080
- * Be sure to invoke the function with the iterable as context:
971
+ * Assert that the values match with the type specs.
972
+ * Error messages are memorized and will only be shown once.
1081
973
  *
1082
- * var iteratorFn = getIteratorFn(myIterable);
1083
- * if (iteratorFn) {
1084
- * var iterator = iteratorFn.call(myIterable);
1085
- * ...
1086
- * }
1087
- *
1088
- * @param {?object} maybeIterable
1089
- * @return {?function}
974
+ * @param {object} typeSpecs Map of name to a ReactPropType
975
+ * @param {object} values Runtime values that need to be type-checked
976
+ * @param {string} location e.g. "prop", "context", "child context"
977
+ * @param {string} componentName Name of the component for error messages.
978
+ * @param {?Function} getStack Returns the component stack.
979
+ * @private
1090
980
  */
1091
- function getIteratorFn(maybeIterable) {
1092
- var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
1093
- if (typeof iteratorFn === 'function') {
1094
- return iteratorFn;
981
+ function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
982
+ if (process.env.NODE_ENV !== 'production') {
983
+ for (var typeSpecName in typeSpecs) {
984
+ if (has(typeSpecs, typeSpecName)) {
985
+ var error;
986
+ // Prop type validation may throw. In case they do, we don't want to
987
+ // fail the render phase where it didn't fail before. So we log it.
988
+ // After these have been cleaned up, we'll let them throw.
989
+ try {
990
+ // This is intentionally an invariant that gets caught. It's the same
991
+ // behavior as without this statement except with a better message.
992
+ if (typeof typeSpecs[typeSpecName] !== 'function') {
993
+ 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`.');
994
+ err.name = 'Invariant Violation';
995
+ throw err;
996
+ }
997
+ error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
998
+ } catch (ex) {
999
+ error = ex;
1000
+ }
1001
+ if (error && !(error instanceof Error)) {
1002
+ 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).');
1003
+ }
1004
+ if (error instanceof Error && !(error.message in loggedTypeFailures)) {
1005
+ // Only monitor this failure once because there tends to be a lot of the
1006
+ // same error.
1007
+ loggedTypeFailures[error.message] = true;
1008
+ var stack = getStack ? getStack() : '';
1009
+ printWarning('Failed ' + location + ' type: ' + error.message + (stack != null ? stack : ''));
1010
+ }
1011
+ }
1012
+ }
1095
1013
  }
1096
1014
  }
1097
1015
 
1098
1016
  /**
1099
- * Collection of methods that allow declaration and validation of props that are
1100
- * supplied to React components. Example usage:
1101
- *
1102
- * var Props = require('ReactPropTypes');
1103
- * var MyArticle = React.createClass({
1104
- * propTypes: {
1105
- * // An optional string prop named "description".
1106
- * description: Props.string,
1107
- *
1108
- * // A required enum prop named "category".
1109
- * category: Props.oneOf(['News','Photos']).isRequired,
1017
+ * Resets warning cache when testing.
1110
1018
  *
1111
- * // A prop named "dialog" that requires an instance of Dialog.
1112
- * dialog: Props.instanceOf(Dialog).isRequired
1113
- * },
1114
- * render: function() { ... }
1115
- * });
1116
- *
1117
- * A more formal specification of how these methods are used:
1118
- *
1119
- * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
1120
- * decl := ReactPropTypes.{type}(.isRequired)?
1121
- *
1122
- * Each and every declaration produces a function with the same signature. This
1123
- * allows the creation of custom validation functions. For example:
1124
- *
1125
- * var MyLink = React.createClass({
1126
- * propTypes: {
1127
- * // An optional string or URI prop named "href".
1128
- * href: function(props, propName, componentName) {
1129
- * var propValue = props[propName];
1130
- * if (propValue != null && typeof propValue !== 'string' &&
1131
- * !(propValue instanceof URI)) {
1132
- * return new Error(
1133
- * 'Expected a string or an URI for ' + propName + ' in ' +
1134
- * componentName
1135
- * );
1136
- * }
1137
- * }
1138
- * },
1139
- * render: function() {...}
1140
- * });
1141
- *
1142
- * @internal
1019
+ * @private
1143
1020
  */
1021
+ checkPropTypes.resetWarningCache = function () {
1022
+ if (process.env.NODE_ENV !== 'production') {
1023
+ loggedTypeFailures = {};
1024
+ }
1025
+ };
1026
+ checkPropTypes_1 = checkPropTypes;
1027
+ return checkPropTypes_1;
1028
+ }
1144
1029
 
1145
- var ANONYMOUS = '<<anonymous>>';
1030
+ var factoryWithTypeCheckers;
1031
+ var hasRequiredFactoryWithTypeCheckers;
1032
+ function requireFactoryWithTypeCheckers() {
1033
+ if (hasRequiredFactoryWithTypeCheckers) return factoryWithTypeCheckers;
1034
+ hasRequiredFactoryWithTypeCheckers = 1;
1035
+ var ReactIs = requireReactIs();
1036
+ var assign = requireObjectAssign();
1037
+ var ReactPropTypesSecret = requireReactPropTypesSecret();
1038
+ var has = requireHas();
1039
+ var checkPropTypes = requireCheckPropTypes();
1040
+ var printWarning = function printWarning() {};
1041
+ if (process.env.NODE_ENV !== 'production') {
1042
+ printWarning = function printWarning(text) {
1043
+ var message = 'Warning: ' + text;
1044
+ if (typeof console !== 'undefined') {
1045
+ console.error(message);
1046
+ }
1047
+ try {
1048
+ // --- Welcome to debugging React ---
1049
+ // This error was thrown as a convenience so that you can use this stack
1050
+ // to find the callsite that caused this warning to fire.
1051
+ throw new Error(message);
1052
+ } catch (x) {}
1053
+ };
1054
+ }
1055
+ function emptyFunctionThatReturnsNull() {
1056
+ return null;
1057
+ }
1058
+ factoryWithTypeCheckers = function factoryWithTypeCheckers(isValidElement, throwOnDirectAccess) {
1059
+ /* global Symbol */
1060
+ var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
1061
+ var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
1146
1062
 
1147
- // Important!
1148
- // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
1149
- var ReactPropTypes = {
1150
- array: createPrimitiveTypeChecker('array'),
1151
- bigint: createPrimitiveTypeChecker('bigint'),
1152
- bool: createPrimitiveTypeChecker('boolean'),
1153
- func: createPrimitiveTypeChecker('function'),
1154
- number: createPrimitiveTypeChecker('number'),
1155
- object: createPrimitiveTypeChecker('object'),
1156
- string: createPrimitiveTypeChecker('string'),
1157
- symbol: createPrimitiveTypeChecker('symbol'),
1158
- any: createAnyTypeChecker(),
1159
- arrayOf: createArrayOfTypeChecker,
1160
- element: createElementTypeChecker(),
1161
- elementType: createElementTypeTypeChecker(),
1162
- instanceOf: createInstanceTypeChecker,
1163
- node: createNodeChecker(),
1164
- objectOf: createObjectOfTypeChecker,
1165
- oneOf: createEnumTypeChecker,
1166
- oneOfType: createUnionTypeChecker,
1167
- shape: createShapeTypeChecker,
1168
- exact: createStrictShapeTypeChecker
1169
- };
1063
+ /**
1064
+ * Returns the iterator method function contained on the iterable object.
1065
+ *
1066
+ * Be sure to invoke the function with the iterable as context:
1067
+ *
1068
+ * var iteratorFn = getIteratorFn(myIterable);
1069
+ * if (iteratorFn) {
1070
+ * var iterator = iteratorFn.call(myIterable);
1071
+ * ...
1072
+ * }
1073
+ *
1074
+ * @param {?object} maybeIterable
1075
+ * @return {?function}
1076
+ */
1077
+ function getIteratorFn(maybeIterable) {
1078
+ var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
1079
+ if (typeof iteratorFn === 'function') {
1080
+ return iteratorFn;
1081
+ }
1082
+ }
1170
1083
 
1171
- /**
1172
- * inlined Object.is polyfill to avoid requiring consumers ship their own
1173
- * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
1174
- */
1175
- /*eslint-disable no-self-compare*/
1176
- function is(x, y) {
1177
- // SameValue algorithm
1178
- if (x === y) {
1179
- // Steps 1-5, 7-10
1180
- // Steps 6.b-6.e: +0 != -0
1181
- return x !== 0 || 1 / x === 1 / y;
1182
- } else {
1183
- // Step 6.a: NaN == NaN
1184
- return x !== x && y !== y;
1084
+ /**
1085
+ * Collection of methods that allow declaration and validation of props that are
1086
+ * supplied to React components. Example usage:
1087
+ *
1088
+ * var Props = require('ReactPropTypes');
1089
+ * var MyArticle = React.createClass({
1090
+ * propTypes: {
1091
+ * // An optional string prop named "description".
1092
+ * description: Props.string,
1093
+ *
1094
+ * // A required enum prop named "category".
1095
+ * category: Props.oneOf(['News','Photos']).isRequired,
1096
+ *
1097
+ * // A prop named "dialog" that requires an instance of Dialog.
1098
+ * dialog: Props.instanceOf(Dialog).isRequired
1099
+ * },
1100
+ * render: function() { ... }
1101
+ * });
1102
+ *
1103
+ * A more formal specification of how these methods are used:
1104
+ *
1105
+ * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
1106
+ * decl := ReactPropTypes.{type}(.isRequired)?
1107
+ *
1108
+ * Each and every declaration produces a function with the same signature. This
1109
+ * allows the creation of custom validation functions. For example:
1110
+ *
1111
+ * var MyLink = React.createClass({
1112
+ * propTypes: {
1113
+ * // An optional string or URI prop named "href".
1114
+ * href: function(props, propName, componentName) {
1115
+ * var propValue = props[propName];
1116
+ * if (propValue != null && typeof propValue !== 'string' &&
1117
+ * !(propValue instanceof URI)) {
1118
+ * return new Error(
1119
+ * 'Expected a string or an URI for ' + propName + ' in ' +
1120
+ * componentName
1121
+ * );
1122
+ * }
1123
+ * }
1124
+ * },
1125
+ * render: function() {...}
1126
+ * });
1127
+ *
1128
+ * @internal
1129
+ */
1130
+
1131
+ var ANONYMOUS = '<<anonymous>>';
1132
+
1133
+ // Important!
1134
+ // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
1135
+ var ReactPropTypes = {
1136
+ array: createPrimitiveTypeChecker('array'),
1137
+ bigint: createPrimitiveTypeChecker('bigint'),
1138
+ bool: createPrimitiveTypeChecker('boolean'),
1139
+ func: createPrimitiveTypeChecker('function'),
1140
+ number: createPrimitiveTypeChecker('number'),
1141
+ object: createPrimitiveTypeChecker('object'),
1142
+ string: createPrimitiveTypeChecker('string'),
1143
+ symbol: createPrimitiveTypeChecker('symbol'),
1144
+ any: createAnyTypeChecker(),
1145
+ arrayOf: createArrayOfTypeChecker,
1146
+ element: createElementTypeChecker(),
1147
+ elementType: createElementTypeTypeChecker(),
1148
+ instanceOf: createInstanceTypeChecker,
1149
+ node: createNodeChecker(),
1150
+ objectOf: createObjectOfTypeChecker,
1151
+ oneOf: createEnumTypeChecker,
1152
+ oneOfType: createUnionTypeChecker,
1153
+ shape: createShapeTypeChecker,
1154
+ exact: createStrictShapeTypeChecker
1155
+ };
1156
+
1157
+ /**
1158
+ * inlined Object.is polyfill to avoid requiring consumers ship their own
1159
+ * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
1160
+ */
1161
+ /*eslint-disable no-self-compare*/
1162
+ function is(x, y) {
1163
+ // SameValue algorithm
1164
+ if (x === y) {
1165
+ // Steps 1-5, 7-10
1166
+ // Steps 6.b-6.e: +0 != -0
1167
+ return x !== 0 || 1 / x === 1 / y;
1168
+ } else {
1169
+ // Step 6.a: NaN == NaN
1170
+ return x !== x && y !== y;
1171
+ }
1185
1172
  }
1186
- }
1187
- /*eslint-enable no-self-compare*/
1173
+ /*eslint-enable no-self-compare*/
1188
1174
 
1189
- /**
1190
- * We use an Error-like object for backward compatibility as people may call
1191
- * PropTypes directly and inspect their output. However, we don't use real
1192
- * Errors anymore. We don't inspect their stack anyway, and creating them
1193
- * is prohibitively expensive if they are created too often, such as what
1194
- * happens in oneOfType() for any type before the one that matched.
1195
- */
1196
- function PropTypeError(message, data) {
1197
- this.message = message;
1198
- this.data = data && _typeof(data) === 'object' ? data : {};
1199
- this.stack = '';
1200
- }
1201
- // Make `instanceof Error` still work for returned errors.
1202
- PropTypeError.prototype = Error.prototype;
1203
- function createChainableTypeChecker(validate) {
1204
- if (process.env.NODE_ENV !== 'production') {
1205
- var manualPropTypeCallCache = {};
1206
- var manualPropTypeWarningCount = 0;
1207
- }
1208
- function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
1209
- componentName = componentName || ANONYMOUS;
1210
- propFullName = propFullName || propName;
1211
- if (secret !== ReactPropTypesSecret_1) {
1212
- if (throwOnDirectAccess) {
1213
- // New behavior only for users of `prop-types` package
1214
- 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');
1215
- err.name = 'Invariant Violation';
1216
- throw err;
1217
- } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {
1218
- // Old behavior for people using React.PropTypes
1219
- var cacheKey = componentName + ':' + propName;
1220
- if (!manualPropTypeCallCache[cacheKey] &&
1221
- // Avoid spamming the console because they are often not actionable except for lib authors
1222
- manualPropTypeWarningCount < 3) {
1223
- 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.');
1224
- manualPropTypeCallCache[cacheKey] = true;
1225
- manualPropTypeWarningCount++;
1175
+ /**
1176
+ * We use an Error-like object for backward compatibility as people may call
1177
+ * PropTypes directly and inspect their output. However, we don't use real
1178
+ * Errors anymore. We don't inspect their stack anyway, and creating them
1179
+ * is prohibitively expensive if they are created too often, such as what
1180
+ * happens in oneOfType() for any type before the one that matched.
1181
+ */
1182
+ function PropTypeError(message, data) {
1183
+ this.message = message;
1184
+ this.data = data && _typeof(data) === 'object' ? data : {};
1185
+ this.stack = '';
1186
+ }
1187
+ // Make `instanceof Error` still work for returned errors.
1188
+ PropTypeError.prototype = Error.prototype;
1189
+ function createChainableTypeChecker(validate) {
1190
+ if (process.env.NODE_ENV !== 'production') {
1191
+ var manualPropTypeCallCache = {};
1192
+ var manualPropTypeWarningCount = 0;
1193
+ }
1194
+ function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
1195
+ componentName = componentName || ANONYMOUS;
1196
+ propFullName = propFullName || propName;
1197
+ if (secret !== ReactPropTypesSecret) {
1198
+ if (throwOnDirectAccess) {
1199
+ // New behavior only for users of `prop-types` package
1200
+ 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');
1201
+ err.name = 'Invariant Violation';
1202
+ throw err;
1203
+ } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {
1204
+ // Old behavior for people using React.PropTypes
1205
+ var cacheKey = componentName + ':' + propName;
1206
+ if (!manualPropTypeCallCache[cacheKey] &&
1207
+ // Avoid spamming the console because they are often not actionable except for lib authors
1208
+ manualPropTypeWarningCount < 3) {
1209
+ 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.');
1210
+ manualPropTypeCallCache[cacheKey] = true;
1211
+ manualPropTypeWarningCount++;
1212
+ }
1226
1213
  }
1227
1214
  }
1228
- }
1229
- if (props[propName] == null) {
1230
- if (isRequired) {
1231
- if (props[propName] === null) {
1232
- return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
1215
+ if (props[propName] == null) {
1216
+ if (isRequired) {
1217
+ if (props[propName] === null) {
1218
+ return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
1219
+ }
1220
+ return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
1233
1221
  }
1234
- return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
1222
+ return null;
1223
+ } else {
1224
+ return validate(props, propName, componentName, location, propFullName);
1235
1225
  }
1236
- return null;
1237
- } else {
1238
- return validate(props, propName, componentName, location, propFullName);
1239
1226
  }
1227
+ var chainedCheckType = checkType.bind(null, false);
1228
+ chainedCheckType.isRequired = checkType.bind(null, true);
1229
+ return chainedCheckType;
1240
1230
  }
1241
- var chainedCheckType = checkType.bind(null, false);
1242
- chainedCheckType.isRequired = checkType.bind(null, true);
1243
- return chainedCheckType;
1244
- }
1245
- function createPrimitiveTypeChecker(expectedType) {
1246
- function validate(props, propName, componentName, location, propFullName, secret) {
1247
- var propValue = props[propName];
1248
- var propType = getPropType(propValue);
1249
- if (propType !== expectedType) {
1250
- // `propValue` being instance of, say, date/regexp, pass the 'object'
1251
- // check, but we can offer a more precise error message here rather than
1252
- // 'of type `object`'.
1253
- var preciseType = getPreciseType(propValue);
1254
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'), {
1255
- expectedType: expectedType
1256
- });
1257
- }
1258
- return null;
1259
- }
1260
- return createChainableTypeChecker(validate);
1261
- }
1262
- function createAnyTypeChecker() {
1263
- return createChainableTypeChecker(emptyFunctionThatReturnsNull);
1264
- }
1265
- function createArrayOfTypeChecker(typeChecker) {
1266
- function validate(props, propName, componentName, location, propFullName) {
1267
- if (typeof typeChecker !== 'function') {
1268
- return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
1269
- }
1270
- var propValue = props[propName];
1271
- if (!Array.isArray(propValue)) {
1231
+ function createPrimitiveTypeChecker(expectedType) {
1232
+ function validate(props, propName, componentName, location, propFullName, secret) {
1233
+ var propValue = props[propName];
1272
1234
  var propType = getPropType(propValue);
1273
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
1274
- }
1275
- for (var i = 0; i < propValue.length; i++) {
1276
- var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret_1);
1277
- if (error instanceof Error) {
1278
- return error;
1235
+ if (propType !== expectedType) {
1236
+ // `propValue` being instance of, say, date/regexp, pass the 'object'
1237
+ // check, but we can offer a more precise error message here rather than
1238
+ // 'of type `object`'.
1239
+ var preciseType = getPreciseType(propValue);
1240
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'), {
1241
+ expectedType: expectedType
1242
+ });
1279
1243
  }
1244
+ return null;
1280
1245
  }
1281
- return null;
1246
+ return createChainableTypeChecker(validate);
1282
1247
  }
1283
- return createChainableTypeChecker(validate);
1284
- }
1285
- function createElementTypeChecker() {
1286
- function validate(props, propName, componentName, location, propFullName) {
1287
- var propValue = props[propName];
1288
- if (!isValidElement(propValue)) {
1289
- var propType = getPropType(propValue);
1290
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
1291
- }
1292
- return null;
1248
+ function createAnyTypeChecker() {
1249
+ return createChainableTypeChecker(emptyFunctionThatReturnsNull);
1293
1250
  }
1294
- return createChainableTypeChecker(validate);
1295
- }
1296
- function createElementTypeTypeChecker() {
1297
- function validate(props, propName, componentName, location, propFullName) {
1298
- var propValue = props[propName];
1299
- if (!reactIs.isValidElementType(propValue)) {
1300
- var propType = getPropType(propValue);
1301
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
1251
+ function createArrayOfTypeChecker(typeChecker) {
1252
+ function validate(props, propName, componentName, location, propFullName) {
1253
+ if (typeof typeChecker !== 'function') {
1254
+ return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
1255
+ }
1256
+ var propValue = props[propName];
1257
+ if (!Array.isArray(propValue)) {
1258
+ var propType = getPropType(propValue);
1259
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
1260
+ }
1261
+ for (var i = 0; i < propValue.length; i++) {
1262
+ var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
1263
+ if (error instanceof Error) {
1264
+ return error;
1265
+ }
1266
+ }
1267
+ return null;
1302
1268
  }
1303
- return null;
1269
+ return createChainableTypeChecker(validate);
1304
1270
  }
1305
- return createChainableTypeChecker(validate);
1306
- }
1307
- function createInstanceTypeChecker(expectedClass) {
1308
- function validate(props, propName, componentName, location, propFullName) {
1309
- if (!(props[propName] instanceof expectedClass)) {
1310
- var expectedClassName = expectedClass.name || ANONYMOUS;
1311
- var actualClassName = getClassName(props[propName]);
1312
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
1271
+ function createElementTypeChecker() {
1272
+ function validate(props, propName, componentName, location, propFullName) {
1273
+ var propValue = props[propName];
1274
+ if (!isValidElement(propValue)) {
1275
+ var propType = getPropType(propValue);
1276
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
1277
+ }
1278
+ return null;
1313
1279
  }
1314
- return null;
1280
+ return createChainableTypeChecker(validate);
1315
1281
  }
1316
- return createChainableTypeChecker(validate);
1317
- }
1318
- function createEnumTypeChecker(expectedValues) {
1319
- if (!Array.isArray(expectedValues)) {
1320
- if (process.env.NODE_ENV !== 'production') {
1321
- if (arguments.length > 1) {
1322
- 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]).');
1323
- } else {
1324
- printWarning('Invalid argument supplied to oneOf, expected an array.');
1282
+ function createElementTypeTypeChecker() {
1283
+ function validate(props, propName, componentName, location, propFullName) {
1284
+ var propValue = props[propName];
1285
+ if (!ReactIs.isValidElementType(propValue)) {
1286
+ var propType = getPropType(propValue);
1287
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
1325
1288
  }
1289
+ return null;
1326
1290
  }
1327
- return emptyFunctionThatReturnsNull;
1291
+ return createChainableTypeChecker(validate);
1328
1292
  }
1329
- function validate(props, propName, componentName, location, propFullName) {
1330
- var propValue = props[propName];
1331
- for (var i = 0; i < expectedValues.length; i++) {
1332
- if (is(propValue, expectedValues[i])) {
1333
- return null;
1293
+ function createInstanceTypeChecker(expectedClass) {
1294
+ function validate(props, propName, componentName, location, propFullName) {
1295
+ if (!(props[propName] instanceof expectedClass)) {
1296
+ var expectedClassName = expectedClass.name || ANONYMOUS;
1297
+ var actualClassName = getClassName(props[propName]);
1298
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
1334
1299
  }
1300
+ return null;
1335
1301
  }
1336
- var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
1337
- var type = getPreciseType(value);
1338
- if (type === 'symbol') {
1339
- return String(value);
1340
- }
1341
- return value;
1342
- });
1343
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
1302
+ return createChainableTypeChecker(validate);
1344
1303
  }
1345
- return createChainableTypeChecker(validate);
1346
- }
1347
- function createObjectOfTypeChecker(typeChecker) {
1348
- function validate(props, propName, componentName, location, propFullName) {
1349
- if (typeof typeChecker !== 'function') {
1350
- return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
1304
+ function createEnumTypeChecker(expectedValues) {
1305
+ if (!Array.isArray(expectedValues)) {
1306
+ if (process.env.NODE_ENV !== 'production') {
1307
+ if (arguments.length > 1) {
1308
+ 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]).');
1309
+ } else {
1310
+ printWarning('Invalid argument supplied to oneOf, expected an array.');
1311
+ }
1312
+ }
1313
+ return emptyFunctionThatReturnsNull;
1351
1314
  }
1352
- var propValue = props[propName];
1353
- var propType = getPropType(propValue);
1354
- if (propType !== 'object') {
1355
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
1315
+ function validate(props, propName, componentName, location, propFullName) {
1316
+ var propValue = props[propName];
1317
+ for (var i = 0; i < expectedValues.length; i++) {
1318
+ if (is(propValue, expectedValues[i])) {
1319
+ return null;
1320
+ }
1321
+ }
1322
+ var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
1323
+ var type = getPreciseType(value);
1324
+ if (type === 'symbol') {
1325
+ return String(value);
1326
+ }
1327
+ return value;
1328
+ });
1329
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
1356
1330
  }
1357
- for (var key in propValue) {
1358
- if (has$1(propValue, key)) {
1359
- var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1);
1360
- if (error instanceof Error) {
1361
- return error;
1331
+ return createChainableTypeChecker(validate);
1332
+ }
1333
+ function createObjectOfTypeChecker(typeChecker) {
1334
+ function validate(props, propName, componentName, location, propFullName) {
1335
+ if (typeof typeChecker !== 'function') {
1336
+ return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
1337
+ }
1338
+ var propValue = props[propName];
1339
+ var propType = getPropType(propValue);
1340
+ if (propType !== 'object') {
1341
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
1342
+ }
1343
+ for (var key in propValue) {
1344
+ if (has(propValue, key)) {
1345
+ var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
1346
+ if (error instanceof Error) {
1347
+ return error;
1348
+ }
1362
1349
  }
1363
1350
  }
1351
+ return null;
1364
1352
  }
1365
- return null;
1353
+ return createChainableTypeChecker(validate);
1366
1354
  }
1367
- return createChainableTypeChecker(validate);
1368
- }
1369
- function createUnionTypeChecker(arrayOfTypeCheckers) {
1370
- if (!Array.isArray(arrayOfTypeCheckers)) {
1371
- process.env.NODE_ENV !== 'production' ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
1372
- return emptyFunctionThatReturnsNull;
1373
- }
1374
- for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
1375
- var checker = arrayOfTypeCheckers[i];
1376
- if (typeof checker !== 'function') {
1377
- printWarning('Invalid argument supplied to oneOfType. Expected an array of check functions, but ' + 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.');
1355
+ function createUnionTypeChecker(arrayOfTypeCheckers) {
1356
+ if (!Array.isArray(arrayOfTypeCheckers)) {
1357
+ process.env.NODE_ENV !== 'production' ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
1378
1358
  return emptyFunctionThatReturnsNull;
1379
1359
  }
1380
- }
1381
- function validate(props, propName, componentName, location, propFullName) {
1382
- var expectedTypes = [];
1383
1360
  for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
1384
1361
  var checker = arrayOfTypeCheckers[i];
1385
- var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret_1);
1386
- if (checkerResult == null) {
1387
- return null;
1362
+ if (typeof checker !== 'function') {
1363
+ printWarning('Invalid argument supplied to oneOfType. Expected an array of check functions, but ' + 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.');
1364
+ return emptyFunctionThatReturnsNull;
1388
1365
  }
1389
- if (checkerResult.data && has$1(checkerResult.data, 'expectedType')) {
1390
- expectedTypes.push(checkerResult.data.expectedType);
1366
+ }
1367
+ function validate(props, propName, componentName, location, propFullName) {
1368
+ var expectedTypes = [];
1369
+ for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
1370
+ var checker = arrayOfTypeCheckers[i];
1371
+ var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
1372
+ if (checkerResult == null) {
1373
+ return null;
1374
+ }
1375
+ if (checkerResult.data && has(checkerResult.data, 'expectedType')) {
1376
+ expectedTypes.push(checkerResult.data.expectedType);
1377
+ }
1391
1378
  }
1379
+ var expectedTypesMessage = expectedTypes.length > 0 ? ', expected one of type [' + expectedTypes.join(', ') + ']' : '';
1380
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
1392
1381
  }
1393
- var expectedTypesMessage = expectedTypes.length > 0 ? ', expected one of type [' + expectedTypes.join(', ') + ']' : '';
1394
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
1382
+ return createChainableTypeChecker(validate);
1395
1383
  }
1396
- return createChainableTypeChecker(validate);
1397
- }
1398
- function createNodeChecker() {
1399
- function validate(props, propName, componentName, location, propFullName) {
1400
- if (!isNode(props[propName])) {
1401
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
1384
+ function createNodeChecker() {
1385
+ function validate(props, propName, componentName, location, propFullName) {
1386
+ if (!isNode(props[propName])) {
1387
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
1388
+ }
1389
+ return null;
1402
1390
  }
1403
- return null;
1391
+ return createChainableTypeChecker(validate);
1404
1392
  }
1405
- return createChainableTypeChecker(validate);
1406
- }
1407
- function invalidValidatorError(componentName, location, propFullName, key, type) {
1408
- 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 + '`.');
1409
- }
1410
- function createShapeTypeChecker(shapeTypes) {
1411
- function validate(props, propName, componentName, location, propFullName) {
1412
- var propValue = props[propName];
1413
- var propType = getPropType(propValue);
1414
- if (propType !== 'object') {
1415
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
1416
- }
1417
- for (var key in shapeTypes) {
1418
- var checker = shapeTypes[key];
1419
- if (typeof checker !== 'function') {
1420
- return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
1393
+ function invalidValidatorError(componentName, location, propFullName, key, type) {
1394
+ 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 + '`.');
1395
+ }
1396
+ function createShapeTypeChecker(shapeTypes) {
1397
+ function validate(props, propName, componentName, location, propFullName) {
1398
+ var propValue = props[propName];
1399
+ var propType = getPropType(propValue);
1400
+ if (propType !== 'object') {
1401
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
1421
1402
  }
1422
- var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1);
1423
- if (error) {
1424
- return error;
1403
+ for (var key in shapeTypes) {
1404
+ var checker = shapeTypes[key];
1405
+ if (typeof checker !== 'function') {
1406
+ return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
1407
+ }
1408
+ var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
1409
+ if (error) {
1410
+ return error;
1411
+ }
1425
1412
  }
1413
+ return null;
1426
1414
  }
1427
- return null;
1415
+ return createChainableTypeChecker(validate);
1428
1416
  }
1429
- return createChainableTypeChecker(validate);
1430
- }
1431
- function createStrictShapeTypeChecker(shapeTypes) {
1432
- function validate(props, propName, componentName, location, propFullName) {
1433
- var propValue = props[propName];
1434
- var propType = getPropType(propValue);
1435
- if (propType !== 'object') {
1436
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
1437
- }
1438
- // We need to check all keys in case some are required but missing from props.
1439
- var allKeys = objectAssign({}, props[propName], shapeTypes);
1440
- for (var key in allKeys) {
1441
- var checker = shapeTypes[key];
1442
- if (has$1(shapeTypes, key) && typeof checker !== 'function') {
1443
- return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
1444
- }
1445
- if (!checker) {
1446
- 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, ' '));
1417
+ function createStrictShapeTypeChecker(shapeTypes) {
1418
+ function validate(props, propName, componentName, location, propFullName) {
1419
+ var propValue = props[propName];
1420
+ var propType = getPropType(propValue);
1421
+ if (propType !== 'object') {
1422
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
1447
1423
  }
1448
- var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1);
1449
- if (error) {
1450
- return error;
1424
+ // We need to check all keys in case some are required but missing from props.
1425
+ var allKeys = assign({}, props[propName], shapeTypes);
1426
+ for (var key in allKeys) {
1427
+ var checker = shapeTypes[key];
1428
+ if (has(shapeTypes, key) && typeof checker !== 'function') {
1429
+ return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
1430
+ }
1431
+ if (!checker) {
1432
+ 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, ' '));
1433
+ }
1434
+ var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
1435
+ if (error) {
1436
+ return error;
1437
+ }
1451
1438
  }
1439
+ return null;
1452
1440
  }
1453
- return null;
1441
+ return createChainableTypeChecker(validate);
1454
1442
  }
1455
- return createChainableTypeChecker(validate);
1456
- }
1457
- function isNode(propValue) {
1458
- switch (_typeof(propValue)) {
1459
- case 'number':
1460
- case 'string':
1461
- case 'undefined':
1462
- return true;
1463
- case 'boolean':
1464
- return !propValue;
1465
- case 'object':
1466
- if (Array.isArray(propValue)) {
1467
- return propValue.every(isNode);
1468
- }
1469
- if (propValue === null || isValidElement(propValue)) {
1443
+ function isNode(propValue) {
1444
+ switch (_typeof(propValue)) {
1445
+ case 'number':
1446
+ case 'string':
1447
+ case 'undefined':
1470
1448
  return true;
1471
- }
1472
- var iteratorFn = getIteratorFn(propValue);
1473
- if (iteratorFn) {
1474
- var iterator = iteratorFn.call(propValue);
1475
- var step;
1476
- if (iteratorFn !== propValue.entries) {
1477
- while (!(step = iterator.next()).done) {
1478
- if (!isNode(step.value)) {
1479
- return false;
1480
- }
1481
- }
1482
- } else {
1483
- // Iterator will provide entry [k,v] tuples rather than values.
1484
- while (!(step = iterator.next()).done) {
1485
- var entry = step.value;
1486
- if (entry) {
1487
- if (!isNode(entry[1])) {
1449
+ case 'boolean':
1450
+ return !propValue;
1451
+ case 'object':
1452
+ if (Array.isArray(propValue)) {
1453
+ return propValue.every(isNode);
1454
+ }
1455
+ if (propValue === null || isValidElement(propValue)) {
1456
+ return true;
1457
+ }
1458
+ var iteratorFn = getIteratorFn(propValue);
1459
+ if (iteratorFn) {
1460
+ var iterator = iteratorFn.call(propValue);
1461
+ var step;
1462
+ if (iteratorFn !== propValue.entries) {
1463
+ while (!(step = iterator.next()).done) {
1464
+ if (!isNode(step.value)) {
1488
1465
  return false;
1489
1466
  }
1490
1467
  }
1468
+ } else {
1469
+ // Iterator will provide entry [k,v] tuples rather than values.
1470
+ while (!(step = iterator.next()).done) {
1471
+ var entry = step.value;
1472
+ if (entry) {
1473
+ if (!isNode(entry[1])) {
1474
+ return false;
1475
+ }
1476
+ }
1477
+ }
1491
1478
  }
1479
+ } else {
1480
+ return false;
1492
1481
  }
1493
- } else {
1482
+ return true;
1483
+ default:
1494
1484
  return false;
1495
- }
1485
+ }
1486
+ }
1487
+ function isSymbol(propType, propValue) {
1488
+ // Native Symbol.
1489
+ if (propType === 'symbol') {
1496
1490
  return true;
1497
- default:
1491
+ }
1492
+
1493
+ // falsy value can't be a Symbol
1494
+ if (!propValue) {
1498
1495
  return false;
1499
- }
1500
- }
1501
- function isSymbol(propType, propValue) {
1502
- // Native Symbol.
1503
- if (propType === 'symbol') {
1504
- return true;
1505
- }
1496
+ }
1506
1497
 
1507
- // falsy value can't be a Symbol
1508
- if (!propValue) {
1498
+ // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
1499
+ if (propValue['@@toStringTag'] === 'Symbol') {
1500
+ return true;
1501
+ }
1502
+
1503
+ // Fallback for non-spec compliant Symbols which are polyfilled.
1504
+ if (typeof Symbol === 'function' && propValue instanceof Symbol) {
1505
+ return true;
1506
+ }
1509
1507
  return false;
1510
1508
  }
1511
1509
 
1512
- // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
1513
- if (propValue['@@toStringTag'] === 'Symbol') {
1514
- return true;
1510
+ // Equivalent of `typeof` but with special handling for array and regexp.
1511
+ function getPropType(propValue) {
1512
+ var propType = _typeof(propValue);
1513
+ if (Array.isArray(propValue)) {
1514
+ return 'array';
1515
+ }
1516
+ if (propValue instanceof RegExp) {
1517
+ // Old webkits (at least until Android 4.0) return 'function' rather than
1518
+ // 'object' for typeof a RegExp. We'll normalize this here so that /bla/
1519
+ // passes PropTypes.object.
1520
+ return 'object';
1521
+ }
1522
+ if (isSymbol(propType, propValue)) {
1523
+ return 'symbol';
1524
+ }
1525
+ return propType;
1515
1526
  }
1516
1527
 
1517
- // Fallback for non-spec compliant Symbols which are polyfilled.
1518
- if (typeof Symbol === 'function' && propValue instanceof Symbol) {
1519
- return true;
1520
- }
1521
- return false;
1522
- }
1523
-
1524
- // Equivalent of `typeof` but with special handling for array and regexp.
1525
- function getPropType(propValue) {
1526
- var propType = _typeof(propValue);
1527
- if (Array.isArray(propValue)) {
1528
- return 'array';
1529
- }
1530
- if (propValue instanceof RegExp) {
1531
- // Old webkits (at least until Android 4.0) return 'function' rather than
1532
- // 'object' for typeof a RegExp. We'll normalize this here so that /bla/
1533
- // passes PropTypes.object.
1534
- return 'object';
1535
- }
1536
- if (isSymbol(propType, propValue)) {
1537
- return 'symbol';
1538
- }
1539
- return propType;
1540
- }
1541
-
1542
- // This handles more types than `getPropType`. Only used for error messages.
1543
- // See `createPrimitiveTypeChecker`.
1544
- function getPreciseType(propValue) {
1545
- if (typeof propValue === 'undefined' || propValue === null) {
1546
- return '' + propValue;
1547
- }
1548
- var propType = getPropType(propValue);
1549
- if (propType === 'object') {
1550
- if (propValue instanceof Date) {
1551
- return 'date';
1552
- } else if (propValue instanceof RegExp) {
1553
- return 'regexp';
1528
+ // This handles more types than `getPropType`. Only used for error messages.
1529
+ // See `createPrimitiveTypeChecker`.
1530
+ function getPreciseType(propValue) {
1531
+ if (typeof propValue === 'undefined' || propValue === null) {
1532
+ return '' + propValue;
1554
1533
  }
1534
+ var propType = getPropType(propValue);
1535
+ if (propType === 'object') {
1536
+ if (propValue instanceof Date) {
1537
+ return 'date';
1538
+ } else if (propValue instanceof RegExp) {
1539
+ return 'regexp';
1540
+ }
1541
+ }
1542
+ return propType;
1555
1543
  }
1556
- return propType;
1557
- }
1558
1544
 
1559
- // Returns a string that is postfixed to a warning about an invalid type.
1560
- // For example, "undefined" or "of type array"
1561
- function getPostfixForTypeWarning(value) {
1562
- var type = getPreciseType(value);
1563
- switch (type) {
1564
- case 'array':
1565
- case 'object':
1566
- return 'an ' + type;
1567
- case 'boolean':
1568
- case 'date':
1569
- case 'regexp':
1570
- return 'a ' + type;
1571
- default:
1572
- return type;
1545
+ // Returns a string that is postfixed to a warning about an invalid type.
1546
+ // For example, "undefined" or "of type array"
1547
+ function getPostfixForTypeWarning(value) {
1548
+ var type = getPreciseType(value);
1549
+ switch (type) {
1550
+ case 'array':
1551
+ case 'object':
1552
+ return 'an ' + type;
1553
+ case 'boolean':
1554
+ case 'date':
1555
+ case 'regexp':
1556
+ return 'a ' + type;
1557
+ default:
1558
+ return type;
1559
+ }
1573
1560
  }
1574
- }
1575
1561
 
1576
- // Returns class name of the object, if any.
1577
- function getClassName(propValue) {
1578
- if (!propValue.constructor || !propValue.constructor.name) {
1579
- return ANONYMOUS;
1562
+ // Returns class name of the object, if any.
1563
+ function getClassName(propValue) {
1564
+ if (!propValue.constructor || !propValue.constructor.name) {
1565
+ return ANONYMOUS;
1566
+ }
1567
+ return propValue.constructor.name;
1580
1568
  }
1581
- return propValue.constructor.name;
1582
- }
1583
- ReactPropTypes.checkPropTypes = checkPropTypes_1;
1584
- ReactPropTypes.resetWarningCache = checkPropTypes_1.resetWarningCache;
1585
- ReactPropTypes.PropTypes = ReactPropTypes;
1586
- return ReactPropTypes;
1587
- };
1588
-
1589
- function emptyFunction() {}
1590
- function emptyFunctionWithReset() {}
1591
- emptyFunctionWithReset.resetWarningCache = emptyFunction;
1592
- var factoryWithThrowingShims = function factoryWithThrowingShims() {
1593
- function shim(props, propName, componentName, location, propFullName, secret) {
1594
- if (secret === ReactPropTypesSecret_1) {
1595
- // It is still safe when called from React.
1596
- return;
1597
- }
1598
- 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');
1599
- err.name = 'Invariant Violation';
1600
- throw err;
1601
- }
1602
- shim.isRequired = shim;
1603
- function getShim() {
1604
- return shim;
1605
- }
1606
- // Important!
1607
- // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
1608
- var ReactPropTypes = {
1609
- array: shim,
1610
- bigint: shim,
1611
- bool: shim,
1612
- func: shim,
1613
- number: shim,
1614
- object: shim,
1615
- string: shim,
1616
- symbol: shim,
1617
- any: shim,
1618
- arrayOf: getShim,
1619
- element: shim,
1620
- elementType: shim,
1621
- instanceOf: getShim,
1622
- node: shim,
1623
- objectOf: getShim,
1624
- oneOf: getShim,
1625
- oneOfType: getShim,
1626
- shape: getShim,
1627
- exact: getShim,
1628
- checkPropTypes: emptyFunctionWithReset,
1629
- resetWarningCache: emptyFunction
1569
+ ReactPropTypes.checkPropTypes = checkPropTypes;
1570
+ ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
1571
+ ReactPropTypes.PropTypes = ReactPropTypes;
1572
+ return ReactPropTypes;
1630
1573
  };
1631
- ReactPropTypes.PropTypes = ReactPropTypes;
1632
- return ReactPropTypes;
1633
- };
1574
+ return factoryWithTypeCheckers;
1575
+ }
1634
1576
 
1635
- var propTypes = createCommonjsModule(function (module) {
1636
- /**
1637
- * Copyright (c) 2013-present, Facebook, Inc.
1638
- *
1639
- * This source code is licensed under the MIT license found in the
1640
- * LICENSE file in the root directory of this source tree.
1641
- */
1577
+ /**
1578
+ * Copyright (c) 2013-present, Facebook, Inc.
1579
+ *
1580
+ * This source code is licensed under the MIT license found in the
1581
+ * LICENSE file in the root directory of this source tree.
1582
+ */
1583
+ var factoryWithThrowingShims;
1584
+ var hasRequiredFactoryWithThrowingShims;
1585
+ function requireFactoryWithThrowingShims() {
1586
+ if (hasRequiredFactoryWithThrowingShims) return factoryWithThrowingShims;
1587
+ hasRequiredFactoryWithThrowingShims = 1;
1588
+ var ReactPropTypesSecret = requireReactPropTypesSecret();
1589
+ function emptyFunction() {}
1590
+ function emptyFunctionWithReset() {}
1591
+ emptyFunctionWithReset.resetWarningCache = emptyFunction;
1592
+ factoryWithThrowingShims = function factoryWithThrowingShims() {
1593
+ function shim(props, propName, componentName, location, propFullName, secret) {
1594
+ if (secret === ReactPropTypesSecret) {
1595
+ // It is still safe when called from React.
1596
+ return;
1597
+ }
1598
+ 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');
1599
+ err.name = 'Invariant Violation';
1600
+ throw err;
1601
+ }
1602
+ shim.isRequired = shim;
1603
+ function getShim() {
1604
+ return shim;
1605
+ }
1606
+ // Important!
1607
+ // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
1608
+ var ReactPropTypes = {
1609
+ array: shim,
1610
+ bigint: shim,
1611
+ bool: shim,
1612
+ func: shim,
1613
+ number: shim,
1614
+ object: shim,
1615
+ string: shim,
1616
+ symbol: shim,
1617
+ any: shim,
1618
+ arrayOf: getShim,
1619
+ element: shim,
1620
+ elementType: shim,
1621
+ instanceOf: getShim,
1622
+ node: shim,
1623
+ objectOf: getShim,
1624
+ oneOf: getShim,
1625
+ oneOfType: getShim,
1626
+ shape: getShim,
1627
+ exact: getShim,
1628
+ checkPropTypes: emptyFunctionWithReset,
1629
+ resetWarningCache: emptyFunction
1630
+ };
1631
+ ReactPropTypes.PropTypes = ReactPropTypes;
1632
+ return ReactPropTypes;
1633
+ };
1634
+ return factoryWithThrowingShims;
1635
+ }
1642
1636
 
1643
- if (process.env.NODE_ENV !== 'production') {
1644
- var ReactIs = reactIs;
1637
+ /**
1638
+ * Copyright (c) 2013-present, Facebook, Inc.
1639
+ *
1640
+ * This source code is licensed under the MIT license found in the
1641
+ * LICENSE file in the root directory of this source tree.
1642
+ */
1643
+ if (process.env.NODE_ENV !== 'production') {
1644
+ var ReactIs = requireReactIs();
1645
1645
 
1646
- // By explicitly using `prop-types` you are opting into new development behavior.
1647
- // http://fb.me/prop-types-in-prod
1648
- var throwOnDirectAccess = true;
1649
- module.exports = factoryWithTypeCheckers(ReactIs.isElement, throwOnDirectAccess);
1650
- } else {
1651
- // By explicitly using `prop-types` you are opting into new production behavior.
1652
- // http://fb.me/prop-types-in-prod
1653
- module.exports = factoryWithThrowingShims();
1654
- }
1655
- });
1646
+ // By explicitly using `prop-types` you are opting into new development behavior.
1647
+ // http://fb.me/prop-types-in-prod
1648
+ var throwOnDirectAccess = true;
1649
+ propTypes.exports = requireFactoryWithTypeCheckers()(ReactIs.isElement, throwOnDirectAccess);
1650
+ } else {
1651
+ // By explicitly using `prop-types` you are opting into new production behavior.
1652
+ // http://fb.me/prop-types-in-prod
1653
+ propTypes.exports = requireFactoryWithThrowingShims()();
1654
+ }
1655
+ var propTypesExports = propTypes.exports;
1656
+ var PropTypes = /*@__PURE__*/getDefaultExportFromCjs(propTypesExports);
1656
1657
 
1657
1658
  /**
1658
1659
  * A Handsontable-ReactJS wrapper.
@@ -2196,9 +2197,9 @@ var HotTableClass = /*#__PURE__*/function (_React$Component) {
2196
2197
  * Prop types to be checked at runtime.
2197
2198
  */
2198
2199
  HotTableClass.propTypes = {
2199
- style: propTypes.object,
2200
- id: propTypes.string,
2201
- className: propTypes.string
2200
+ style: PropTypes.object,
2201
+ id: PropTypes.string,
2202
+ className: PropTypes.string
2202
2203
  };
2203
2204
 
2204
2205
  var _excluded = ["children"];