tinacms-authjs 17.0.1 → 17.0.2
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/tinacms.js +536 -1198
- package/package.json +13 -13
package/dist/tinacms.js
CHANGED
|
@@ -612,22 +612,6 @@ function requireSlicedToArray() {
|
|
|
612
612
|
}
|
|
613
613
|
var logger = {};
|
|
614
614
|
var errors = {};
|
|
615
|
-
var assertThisInitialized = { exports: {} };
|
|
616
|
-
var hasRequiredAssertThisInitialized;
|
|
617
|
-
function requireAssertThisInitialized() {
|
|
618
|
-
if (hasRequiredAssertThisInitialized)
|
|
619
|
-
return assertThisInitialized.exports;
|
|
620
|
-
hasRequiredAssertThisInitialized = 1;
|
|
621
|
-
(function(module) {
|
|
622
|
-
function _assertThisInitialized(e) {
|
|
623
|
-
if (void 0 === e)
|
|
624
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
625
|
-
return e;
|
|
626
|
-
}
|
|
627
|
-
module.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
628
|
-
})(assertThisInitialized);
|
|
629
|
-
return assertThisInitialized.exports;
|
|
630
|
-
}
|
|
631
615
|
var classCallCheck = { exports: {} };
|
|
632
616
|
var hasRequiredClassCallCheck;
|
|
633
617
|
function requireClassCallCheck() {
|
|
@@ -666,6 +650,58 @@ function requireCreateClass() {
|
|
|
666
650
|
})(createClass);
|
|
667
651
|
return createClass.exports;
|
|
668
652
|
}
|
|
653
|
+
var possibleConstructorReturn = { exports: {} };
|
|
654
|
+
var assertThisInitialized = { exports: {} };
|
|
655
|
+
var hasRequiredAssertThisInitialized;
|
|
656
|
+
function requireAssertThisInitialized() {
|
|
657
|
+
if (hasRequiredAssertThisInitialized)
|
|
658
|
+
return assertThisInitialized.exports;
|
|
659
|
+
hasRequiredAssertThisInitialized = 1;
|
|
660
|
+
(function(module) {
|
|
661
|
+
function _assertThisInitialized(e) {
|
|
662
|
+
if (void 0 === e)
|
|
663
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
664
|
+
return e;
|
|
665
|
+
}
|
|
666
|
+
module.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
667
|
+
})(assertThisInitialized);
|
|
668
|
+
return assertThisInitialized.exports;
|
|
669
|
+
}
|
|
670
|
+
var hasRequiredPossibleConstructorReturn;
|
|
671
|
+
function requirePossibleConstructorReturn() {
|
|
672
|
+
if (hasRequiredPossibleConstructorReturn)
|
|
673
|
+
return possibleConstructorReturn.exports;
|
|
674
|
+
hasRequiredPossibleConstructorReturn = 1;
|
|
675
|
+
(function(module) {
|
|
676
|
+
var _typeof2 = _typeofExports["default"];
|
|
677
|
+
var assertThisInitialized2 = requireAssertThisInitialized();
|
|
678
|
+
function _possibleConstructorReturn(t, e) {
|
|
679
|
+
if (e && ("object" == _typeof2(e) || "function" == typeof e))
|
|
680
|
+
return e;
|
|
681
|
+
if (void 0 !== e)
|
|
682
|
+
throw new TypeError("Derived constructors may only return object or undefined");
|
|
683
|
+
return assertThisInitialized2(t);
|
|
684
|
+
}
|
|
685
|
+
module.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
686
|
+
})(possibleConstructorReturn);
|
|
687
|
+
return possibleConstructorReturn.exports;
|
|
688
|
+
}
|
|
689
|
+
var getPrototypeOf = { exports: {} };
|
|
690
|
+
var hasRequiredGetPrototypeOf;
|
|
691
|
+
function requireGetPrototypeOf() {
|
|
692
|
+
if (hasRequiredGetPrototypeOf)
|
|
693
|
+
return getPrototypeOf.exports;
|
|
694
|
+
hasRequiredGetPrototypeOf = 1;
|
|
695
|
+
(function(module) {
|
|
696
|
+
function _getPrototypeOf(t) {
|
|
697
|
+
return module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t2) {
|
|
698
|
+
return t2.__proto__ || Object.getPrototypeOf(t2);
|
|
699
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports, _getPrototypeOf(t);
|
|
700
|
+
}
|
|
701
|
+
module.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
702
|
+
})(getPrototypeOf);
|
|
703
|
+
return getPrototypeOf.exports;
|
|
704
|
+
}
|
|
669
705
|
var inherits = { exports: {} };
|
|
670
706
|
var setPrototypeOf = { exports: {} };
|
|
671
707
|
var hasRequiredSetPrototypeOf;
|
|
@@ -707,42 +743,6 @@ function requireInherits() {
|
|
|
707
743
|
})(inherits);
|
|
708
744
|
return inherits.exports;
|
|
709
745
|
}
|
|
710
|
-
var possibleConstructorReturn = { exports: {} };
|
|
711
|
-
var hasRequiredPossibleConstructorReturn;
|
|
712
|
-
function requirePossibleConstructorReturn() {
|
|
713
|
-
if (hasRequiredPossibleConstructorReturn)
|
|
714
|
-
return possibleConstructorReturn.exports;
|
|
715
|
-
hasRequiredPossibleConstructorReturn = 1;
|
|
716
|
-
(function(module) {
|
|
717
|
-
var _typeof2 = _typeofExports["default"];
|
|
718
|
-
var assertThisInitialized2 = requireAssertThisInitialized();
|
|
719
|
-
function _possibleConstructorReturn(t, e) {
|
|
720
|
-
if (e && ("object" == _typeof2(e) || "function" == typeof e))
|
|
721
|
-
return e;
|
|
722
|
-
if (void 0 !== e)
|
|
723
|
-
throw new TypeError("Derived constructors may only return object or undefined");
|
|
724
|
-
return assertThisInitialized2(t);
|
|
725
|
-
}
|
|
726
|
-
module.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
727
|
-
})(possibleConstructorReturn);
|
|
728
|
-
return possibleConstructorReturn.exports;
|
|
729
|
-
}
|
|
730
|
-
var getPrototypeOf = { exports: {} };
|
|
731
|
-
var hasRequiredGetPrototypeOf;
|
|
732
|
-
function requireGetPrototypeOf() {
|
|
733
|
-
if (hasRequiredGetPrototypeOf)
|
|
734
|
-
return getPrototypeOf.exports;
|
|
735
|
-
hasRequiredGetPrototypeOf = 1;
|
|
736
|
-
(function(module) {
|
|
737
|
-
function _getPrototypeOf(t) {
|
|
738
|
-
return module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t2) {
|
|
739
|
-
return t2.__proto__ || Object.getPrototypeOf(t2);
|
|
740
|
-
}, module.exports.__esModule = true, module.exports["default"] = module.exports, _getPrototypeOf(t);
|
|
741
|
-
}
|
|
742
|
-
module.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
743
|
-
})(getPrototypeOf);
|
|
744
|
-
return getPrototypeOf.exports;
|
|
745
|
-
}
|
|
746
746
|
var wrapNativeSuper = { exports: {} };
|
|
747
747
|
var isNativeFunction = { exports: {} };
|
|
748
748
|
var hasRequiredIsNativeFunction;
|
|
@@ -859,50 +859,32 @@ function requireErrors() {
|
|
|
859
859
|
errors.upperSnake = upperSnake;
|
|
860
860
|
var _regenerator = _interopRequireDefault(requireRegenerator());
|
|
861
861
|
var _asyncToGenerator2 = _interopRequireDefault(requireAsyncToGenerator());
|
|
862
|
-
var _assertThisInitialized2 = _interopRequireDefault(requireAssertThisInitialized());
|
|
863
862
|
var _defineProperty2 = _interopRequireDefault(requireDefineProperty());
|
|
864
863
|
var _classCallCheck2 = _interopRequireDefault(requireClassCallCheck());
|
|
865
864
|
var _createClass2 = _interopRequireDefault(requireCreateClass());
|
|
866
|
-
var _inherits2 = _interopRequireDefault(requireInherits());
|
|
867
865
|
var _possibleConstructorReturn2 = _interopRequireDefault(requirePossibleConstructorReturn());
|
|
868
866
|
var _getPrototypeOf2 = _interopRequireDefault(requireGetPrototypeOf());
|
|
867
|
+
var _inherits2 = _interopRequireDefault(requireInherits());
|
|
869
868
|
var _wrapNativeSuper2 = _interopRequireDefault(requireWrapNativeSuper());
|
|
870
|
-
function
|
|
871
|
-
|
|
872
|
-
return function _createSuperInternal() {
|
|
873
|
-
var Super = (0, _getPrototypeOf2.default)(Derived), result;
|
|
874
|
-
if (hasNativeReflectConstruct) {
|
|
875
|
-
var NewTarget = (0, _getPrototypeOf2.default)(this).constructor;
|
|
876
|
-
result = Reflect.construct(Super, arguments, NewTarget);
|
|
877
|
-
} else {
|
|
878
|
-
result = Super.apply(this, arguments);
|
|
879
|
-
}
|
|
880
|
-
return (0, _possibleConstructorReturn2.default)(this, result);
|
|
881
|
-
};
|
|
869
|
+
function _callSuper(t, o, e) {
|
|
870
|
+
return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e));
|
|
882
871
|
}
|
|
883
872
|
function _isNativeReflectConstruct() {
|
|
884
|
-
if (typeof Reflect === "undefined" || !Reflect.construct)
|
|
885
|
-
return false;
|
|
886
|
-
if (Reflect.construct.sham)
|
|
887
|
-
return false;
|
|
888
|
-
if (typeof Proxy === "function")
|
|
889
|
-
return true;
|
|
890
873
|
try {
|
|
891
|
-
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
874
|
+
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
892
875
|
}));
|
|
893
|
-
|
|
894
|
-
} catch (e) {
|
|
895
|
-
return false;
|
|
876
|
+
} catch (t2) {
|
|
896
877
|
}
|
|
878
|
+
return (_isNativeReflectConstruct = function _isNativeReflectConstruct2() {
|
|
879
|
+
return !!t;
|
|
880
|
+
})();
|
|
897
881
|
}
|
|
898
|
-
var UnknownError = function(_Error) {
|
|
899
|
-
(0, _inherits2.default)(UnknownError2, _Error);
|
|
900
|
-
var _super = _createSuper(UnknownError2);
|
|
882
|
+
var UnknownError = errors.UnknownError = function(_Error) {
|
|
901
883
|
function UnknownError2(error) {
|
|
902
884
|
var _message;
|
|
903
885
|
var _this;
|
|
904
886
|
(0, _classCallCheck2.default)(this, UnknownError2);
|
|
905
|
-
_this =
|
|
887
|
+
_this = _callSuper(this, UnknownError2, [(_message = error === null || error === void 0 ? void 0 : error.message) !== null && _message !== void 0 ? _message : error]);
|
|
906
888
|
_this.name = "UnknownError";
|
|
907
889
|
_this.code = error.code;
|
|
908
890
|
if (error instanceof Error) {
|
|
@@ -910,7 +892,8 @@ function requireErrors() {
|
|
|
910
892
|
}
|
|
911
893
|
return _this;
|
|
912
894
|
}
|
|
913
|
-
(0,
|
|
895
|
+
(0, _inherits2.default)(UnknownError2, _Error);
|
|
896
|
+
return (0, _createClass2.default)(UnknownError2, [{
|
|
914
897
|
key: "toJSON",
|
|
915
898
|
value: function toJSON() {
|
|
916
899
|
return {
|
|
@@ -920,160 +903,140 @@ function requireErrors() {
|
|
|
920
903
|
};
|
|
921
904
|
}
|
|
922
905
|
}]);
|
|
923
|
-
return UnknownError2;
|
|
924
906
|
}((0, _wrapNativeSuper2.default)(Error));
|
|
925
|
-
errors.
|
|
926
|
-
|
|
927
|
-
(0, _inherits2.default)(OAuthCallbackError2, _UnknownError);
|
|
928
|
-
var _super2 = _createSuper(OAuthCallbackError2);
|
|
929
|
-
function OAuthCallbackError2() {
|
|
907
|
+
errors.OAuthCallbackError = function(_UnknownError) {
|
|
908
|
+
function OAuthCallbackError() {
|
|
930
909
|
var _this2;
|
|
931
|
-
(0, _classCallCheck2.default)(this,
|
|
910
|
+
(0, _classCallCheck2.default)(this, OAuthCallbackError);
|
|
932
911
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
933
912
|
args[_key] = arguments[_key];
|
|
934
913
|
}
|
|
935
|
-
_this2 =
|
|
936
|
-
(0, _defineProperty2.default)(
|
|
914
|
+
_this2 = _callSuper(this, OAuthCallbackError, [].concat(args));
|
|
915
|
+
(0, _defineProperty2.default)(_this2, "name", "OAuthCallbackError");
|
|
937
916
|
return _this2;
|
|
938
917
|
}
|
|
939
|
-
|
|
918
|
+
(0, _inherits2.default)(OAuthCallbackError, _UnknownError);
|
|
919
|
+
return (0, _createClass2.default)(OAuthCallbackError);
|
|
940
920
|
}(UnknownError);
|
|
941
|
-
errors.
|
|
942
|
-
|
|
943
|
-
(0, _inherits2.default)(AccountNotLinkedError2, _UnknownError2);
|
|
944
|
-
var _super3 = _createSuper(AccountNotLinkedError2);
|
|
945
|
-
function AccountNotLinkedError2() {
|
|
921
|
+
errors.AccountNotLinkedError = function(_UnknownError2) {
|
|
922
|
+
function AccountNotLinkedError() {
|
|
946
923
|
var _this3;
|
|
947
|
-
(0, _classCallCheck2.default)(this,
|
|
924
|
+
(0, _classCallCheck2.default)(this, AccountNotLinkedError);
|
|
948
925
|
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
949
926
|
args[_key2] = arguments[_key2];
|
|
950
927
|
}
|
|
951
|
-
_this3 =
|
|
952
|
-
(0, _defineProperty2.default)(
|
|
928
|
+
_this3 = _callSuper(this, AccountNotLinkedError, [].concat(args));
|
|
929
|
+
(0, _defineProperty2.default)(_this3, "name", "AccountNotLinkedError");
|
|
953
930
|
return _this3;
|
|
954
931
|
}
|
|
955
|
-
|
|
932
|
+
(0, _inherits2.default)(AccountNotLinkedError, _UnknownError2);
|
|
933
|
+
return (0, _createClass2.default)(AccountNotLinkedError);
|
|
956
934
|
}(UnknownError);
|
|
957
|
-
errors.
|
|
958
|
-
|
|
959
|
-
(0, _inherits2.default)(MissingAPIRoute2, _UnknownError3);
|
|
960
|
-
var _super4 = _createSuper(MissingAPIRoute2);
|
|
961
|
-
function MissingAPIRoute2() {
|
|
935
|
+
errors.MissingAPIRoute = function(_UnknownError3) {
|
|
936
|
+
function MissingAPIRoute() {
|
|
962
937
|
var _this4;
|
|
963
|
-
(0, _classCallCheck2.default)(this,
|
|
938
|
+
(0, _classCallCheck2.default)(this, MissingAPIRoute);
|
|
964
939
|
for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
|
|
965
940
|
args[_key3] = arguments[_key3];
|
|
966
941
|
}
|
|
967
|
-
_this4 =
|
|
968
|
-
(0, _defineProperty2.default)(
|
|
969
|
-
(0, _defineProperty2.default)(
|
|
942
|
+
_this4 = _callSuper(this, MissingAPIRoute, [].concat(args));
|
|
943
|
+
(0, _defineProperty2.default)(_this4, "name", "MissingAPIRouteError");
|
|
944
|
+
(0, _defineProperty2.default)(_this4, "code", "MISSING_NEXTAUTH_API_ROUTE_ERROR");
|
|
970
945
|
return _this4;
|
|
971
946
|
}
|
|
972
|
-
|
|
947
|
+
(0, _inherits2.default)(MissingAPIRoute, _UnknownError3);
|
|
948
|
+
return (0, _createClass2.default)(MissingAPIRoute);
|
|
973
949
|
}(UnknownError);
|
|
974
|
-
errors.
|
|
975
|
-
|
|
976
|
-
(0, _inherits2.default)(MissingSecret2, _UnknownError4);
|
|
977
|
-
var _super5 = _createSuper(MissingSecret2);
|
|
978
|
-
function MissingSecret2() {
|
|
950
|
+
errors.MissingSecret = function(_UnknownError4) {
|
|
951
|
+
function MissingSecret() {
|
|
979
952
|
var _this5;
|
|
980
|
-
(0, _classCallCheck2.default)(this,
|
|
953
|
+
(0, _classCallCheck2.default)(this, MissingSecret);
|
|
981
954
|
for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
|
|
982
955
|
args[_key4] = arguments[_key4];
|
|
983
956
|
}
|
|
984
|
-
_this5 =
|
|
985
|
-
(0, _defineProperty2.default)(
|
|
986
|
-
(0, _defineProperty2.default)(
|
|
957
|
+
_this5 = _callSuper(this, MissingSecret, [].concat(args));
|
|
958
|
+
(0, _defineProperty2.default)(_this5, "name", "MissingSecretError");
|
|
959
|
+
(0, _defineProperty2.default)(_this5, "code", "NO_SECRET");
|
|
987
960
|
return _this5;
|
|
988
961
|
}
|
|
989
|
-
|
|
962
|
+
(0, _inherits2.default)(MissingSecret, _UnknownError4);
|
|
963
|
+
return (0, _createClass2.default)(MissingSecret);
|
|
990
964
|
}(UnknownError);
|
|
991
|
-
errors.
|
|
992
|
-
|
|
993
|
-
(0, _inherits2.default)(MissingAuthorize2, _UnknownError5);
|
|
994
|
-
var _super6 = _createSuper(MissingAuthorize2);
|
|
995
|
-
function MissingAuthorize2() {
|
|
965
|
+
errors.MissingAuthorize = function(_UnknownError5) {
|
|
966
|
+
function MissingAuthorize() {
|
|
996
967
|
var _this6;
|
|
997
|
-
(0, _classCallCheck2.default)(this,
|
|
968
|
+
(0, _classCallCheck2.default)(this, MissingAuthorize);
|
|
998
969
|
for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
|
|
999
970
|
args[_key5] = arguments[_key5];
|
|
1000
971
|
}
|
|
1001
|
-
_this6 =
|
|
1002
|
-
(0, _defineProperty2.default)(
|
|
1003
|
-
(0, _defineProperty2.default)(
|
|
972
|
+
_this6 = _callSuper(this, MissingAuthorize, [].concat(args));
|
|
973
|
+
(0, _defineProperty2.default)(_this6, "name", "MissingAuthorizeError");
|
|
974
|
+
(0, _defineProperty2.default)(_this6, "code", "CALLBACK_CREDENTIALS_HANDLER_ERROR");
|
|
1004
975
|
return _this6;
|
|
1005
976
|
}
|
|
1006
|
-
|
|
977
|
+
(0, _inherits2.default)(MissingAuthorize, _UnknownError5);
|
|
978
|
+
return (0, _createClass2.default)(MissingAuthorize);
|
|
1007
979
|
}(UnknownError);
|
|
1008
|
-
errors.
|
|
1009
|
-
|
|
1010
|
-
(0, _inherits2.default)(MissingAdapter2, _UnknownError6);
|
|
1011
|
-
var _super7 = _createSuper(MissingAdapter2);
|
|
1012
|
-
function MissingAdapter2() {
|
|
980
|
+
errors.MissingAdapter = function(_UnknownError6) {
|
|
981
|
+
function MissingAdapter() {
|
|
1013
982
|
var _this7;
|
|
1014
|
-
(0, _classCallCheck2.default)(this,
|
|
983
|
+
(0, _classCallCheck2.default)(this, MissingAdapter);
|
|
1015
984
|
for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
|
|
1016
985
|
args[_key6] = arguments[_key6];
|
|
1017
986
|
}
|
|
1018
|
-
_this7 =
|
|
1019
|
-
(0, _defineProperty2.default)(
|
|
1020
|
-
(0, _defineProperty2.default)(
|
|
987
|
+
_this7 = _callSuper(this, MissingAdapter, [].concat(args));
|
|
988
|
+
(0, _defineProperty2.default)(_this7, "name", "MissingAdapterError");
|
|
989
|
+
(0, _defineProperty2.default)(_this7, "code", "EMAIL_REQUIRES_ADAPTER_ERROR");
|
|
1021
990
|
return _this7;
|
|
1022
991
|
}
|
|
1023
|
-
|
|
992
|
+
(0, _inherits2.default)(MissingAdapter, _UnknownError6);
|
|
993
|
+
return (0, _createClass2.default)(MissingAdapter);
|
|
1024
994
|
}(UnknownError);
|
|
1025
|
-
errors.
|
|
1026
|
-
|
|
1027
|
-
(0, _inherits2.default)(MissingAdapterMethods2, _UnknownError7);
|
|
1028
|
-
var _super8 = _createSuper(MissingAdapterMethods2);
|
|
1029
|
-
function MissingAdapterMethods2() {
|
|
995
|
+
errors.MissingAdapterMethods = function(_UnknownError7) {
|
|
996
|
+
function MissingAdapterMethods() {
|
|
1030
997
|
var _this8;
|
|
1031
|
-
(0, _classCallCheck2.default)(this,
|
|
998
|
+
(0, _classCallCheck2.default)(this, MissingAdapterMethods);
|
|
1032
999
|
for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {
|
|
1033
1000
|
args[_key7] = arguments[_key7];
|
|
1034
1001
|
}
|
|
1035
|
-
_this8 =
|
|
1036
|
-
(0, _defineProperty2.default)(
|
|
1037
|
-
(0, _defineProperty2.default)(
|
|
1002
|
+
_this8 = _callSuper(this, MissingAdapterMethods, [].concat(args));
|
|
1003
|
+
(0, _defineProperty2.default)(_this8, "name", "MissingAdapterMethodsError");
|
|
1004
|
+
(0, _defineProperty2.default)(_this8, "code", "MISSING_ADAPTER_METHODS_ERROR");
|
|
1038
1005
|
return _this8;
|
|
1039
1006
|
}
|
|
1040
|
-
|
|
1007
|
+
(0, _inherits2.default)(MissingAdapterMethods, _UnknownError7);
|
|
1008
|
+
return (0, _createClass2.default)(MissingAdapterMethods);
|
|
1041
1009
|
}(UnknownError);
|
|
1042
|
-
errors.
|
|
1043
|
-
|
|
1044
|
-
(0, _inherits2.default)(UnsupportedStrategy2, _UnknownError8);
|
|
1045
|
-
var _super9 = _createSuper(UnsupportedStrategy2);
|
|
1046
|
-
function UnsupportedStrategy2() {
|
|
1010
|
+
errors.UnsupportedStrategy = function(_UnknownError8) {
|
|
1011
|
+
function UnsupportedStrategy() {
|
|
1047
1012
|
var _this9;
|
|
1048
|
-
(0, _classCallCheck2.default)(this,
|
|
1013
|
+
(0, _classCallCheck2.default)(this, UnsupportedStrategy);
|
|
1049
1014
|
for (var _len8 = arguments.length, args = new Array(_len8), _key8 = 0; _key8 < _len8; _key8++) {
|
|
1050
1015
|
args[_key8] = arguments[_key8];
|
|
1051
1016
|
}
|
|
1052
|
-
_this9 =
|
|
1053
|
-
(0, _defineProperty2.default)(
|
|
1054
|
-
(0, _defineProperty2.default)(
|
|
1017
|
+
_this9 = _callSuper(this, UnsupportedStrategy, [].concat(args));
|
|
1018
|
+
(0, _defineProperty2.default)(_this9, "name", "UnsupportedStrategyError");
|
|
1019
|
+
(0, _defineProperty2.default)(_this9, "code", "CALLBACK_CREDENTIALS_JWT_ERROR");
|
|
1055
1020
|
return _this9;
|
|
1056
1021
|
}
|
|
1057
|
-
|
|
1022
|
+
(0, _inherits2.default)(UnsupportedStrategy, _UnknownError8);
|
|
1023
|
+
return (0, _createClass2.default)(UnsupportedStrategy);
|
|
1058
1024
|
}(UnknownError);
|
|
1059
|
-
errors.
|
|
1060
|
-
|
|
1061
|
-
(0, _inherits2.default)(InvalidCallbackUrl2, _UnknownError9);
|
|
1062
|
-
var _super10 = _createSuper(InvalidCallbackUrl2);
|
|
1063
|
-
function InvalidCallbackUrl2() {
|
|
1025
|
+
errors.InvalidCallbackUrl = function(_UnknownError9) {
|
|
1026
|
+
function InvalidCallbackUrl() {
|
|
1064
1027
|
var _this10;
|
|
1065
|
-
(0, _classCallCheck2.default)(this,
|
|
1028
|
+
(0, _classCallCheck2.default)(this, InvalidCallbackUrl);
|
|
1066
1029
|
for (var _len9 = arguments.length, args = new Array(_len9), _key9 = 0; _key9 < _len9; _key9++) {
|
|
1067
1030
|
args[_key9] = arguments[_key9];
|
|
1068
1031
|
}
|
|
1069
|
-
_this10 =
|
|
1070
|
-
(0, _defineProperty2.default)(
|
|
1071
|
-
(0, _defineProperty2.default)(
|
|
1032
|
+
_this10 = _callSuper(this, InvalidCallbackUrl, [].concat(args));
|
|
1033
|
+
(0, _defineProperty2.default)(_this10, "name", "InvalidCallbackUrl");
|
|
1034
|
+
(0, _defineProperty2.default)(_this10, "code", "INVALID_CALLBACK_URL_ERROR");
|
|
1072
1035
|
return _this10;
|
|
1073
1036
|
}
|
|
1074
|
-
|
|
1037
|
+
(0, _inherits2.default)(InvalidCallbackUrl, _UnknownError9);
|
|
1038
|
+
return (0, _createClass2.default)(InvalidCallbackUrl);
|
|
1075
1039
|
}(UnknownError);
|
|
1076
|
-
errors.InvalidCallbackUrl = InvalidCallbackUrl;
|
|
1077
1040
|
function upperSnake(s) {
|
|
1078
1041
|
return s.replace(/([A-Z])/g, "_$1").toUpperCase();
|
|
1079
1042
|
}
|
|
@@ -1085,7 +1048,7 @@ function requireErrors() {
|
|
|
1085
1048
|
acc[name] = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee() {
|
|
1086
1049
|
var method, _args = arguments;
|
|
1087
1050
|
return _regenerator.default.wrap(function _callee$(_context) {
|
|
1088
|
-
while (1)
|
|
1051
|
+
while (1)
|
|
1089
1052
|
switch (_context.prev = _context.next) {
|
|
1090
1053
|
case 0:
|
|
1091
1054
|
_context.prev = 0;
|
|
@@ -1102,7 +1065,6 @@ function requireErrors() {
|
|
|
1102
1065
|
case "end":
|
|
1103
1066
|
return _context.stop();
|
|
1104
1067
|
}
|
|
1105
|
-
}
|
|
1106
1068
|
}, _callee, null, [[0, 7]]);
|
|
1107
1069
|
}));
|
|
1108
1070
|
return acc;
|
|
@@ -1115,7 +1077,7 @@ function requireErrors() {
|
|
|
1115
1077
|
acc[name] = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee2() {
|
|
1116
1078
|
var _len10, args, _key10, method, e, _args2 = arguments;
|
|
1117
1079
|
return _regenerator.default.wrap(function _callee2$(_context2) {
|
|
1118
|
-
while (1)
|
|
1080
|
+
while (1)
|
|
1119
1081
|
switch (_context2.prev = _context2.next) {
|
|
1120
1082
|
case 0:
|
|
1121
1083
|
_context2.prev = 0;
|
|
@@ -1141,7 +1103,6 @@ function requireErrors() {
|
|
|
1141
1103
|
case "end":
|
|
1142
1104
|
return _context2.stop();
|
|
1143
1105
|
}
|
|
1144
|
-
}
|
|
1145
1106
|
}, _callee2, null, [[0, 9]]);
|
|
1146
1107
|
}));
|
|
1147
1108
|
return acc;
|
|
@@ -1161,28 +1122,30 @@ function requireLogger() {
|
|
|
1161
1122
|
logger.default = void 0;
|
|
1162
1123
|
logger.proxyLogger = proxyLogger;
|
|
1163
1124
|
logger.setLogger = setLogger;
|
|
1125
|
+
var _regenerator = _interopRequireDefault(requireRegenerator());
|
|
1164
1126
|
var _defineProperty2 = _interopRequireDefault(requireDefineProperty());
|
|
1127
|
+
var _asyncToGenerator2 = _interopRequireDefault(requireAsyncToGenerator());
|
|
1165
1128
|
var _errors = requireErrors();
|
|
1166
|
-
function ownKeys(
|
|
1167
|
-
var
|
|
1129
|
+
function ownKeys(e, r) {
|
|
1130
|
+
var t = Object.keys(e);
|
|
1168
1131
|
if (Object.getOwnPropertySymbols) {
|
|
1169
|
-
var
|
|
1170
|
-
|
|
1171
|
-
return Object.getOwnPropertyDescriptor(
|
|
1172
|
-
})),
|
|
1132
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
1133
|
+
r && (o = o.filter(function(r2) {
|
|
1134
|
+
return Object.getOwnPropertyDescriptor(e, r2).enumerable;
|
|
1135
|
+
})), t.push.apply(t, o);
|
|
1173
1136
|
}
|
|
1174
|
-
return
|
|
1137
|
+
return t;
|
|
1175
1138
|
}
|
|
1176
|
-
function _objectSpread(
|
|
1177
|
-
for (var
|
|
1178
|
-
var
|
|
1179
|
-
|
|
1180
|
-
(0, _defineProperty2.default)(
|
|
1181
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(
|
|
1182
|
-
Object.defineProperty(
|
|
1139
|
+
function _objectSpread(e) {
|
|
1140
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
1141
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
1142
|
+
r % 2 ? ownKeys(Object(t), true).forEach(function(r2) {
|
|
1143
|
+
(0, _defineProperty2.default)(e, r2, t[r2]);
|
|
1144
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r2) {
|
|
1145
|
+
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
1183
1146
|
});
|
|
1184
1147
|
}
|
|
1185
|
-
return
|
|
1148
|
+
return e;
|
|
1186
1149
|
}
|
|
1187
1150
|
function formatError(o) {
|
|
1188
1151
|
if (o instanceof Error && !(o instanceof _errors.UnknownError)) {
|
|
@@ -1227,8 +1190,7 @@ function requireLogger() {
|
|
|
1227
1190
|
if (newLogger.debug)
|
|
1228
1191
|
_logger.debug = newLogger.debug;
|
|
1229
1192
|
}
|
|
1230
|
-
|
|
1231
|
-
logger.default = _default;
|
|
1193
|
+
logger.default = _logger;
|
|
1232
1194
|
function proxyLogger() {
|
|
1233
1195
|
var logger2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : _logger;
|
|
1234
1196
|
var basePath = arguments.length > 1 ? arguments[1] : void 0;
|
|
@@ -1238,27 +1200,48 @@ function requireLogger() {
|
|
|
1238
1200
|
}
|
|
1239
1201
|
var clientLogger = {};
|
|
1240
1202
|
var _loop = function _loop2(level2) {
|
|
1241
|
-
clientLogger[level2] = function(
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1203
|
+
clientLogger[level2] = function() {
|
|
1204
|
+
var _ref = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee(code, metadata) {
|
|
1205
|
+
var url, body;
|
|
1206
|
+
return _regenerator.default.wrap(function _callee$(_context) {
|
|
1207
|
+
while (1)
|
|
1208
|
+
switch (_context.prev = _context.next) {
|
|
1209
|
+
case 0:
|
|
1210
|
+
_logger[level2](code, metadata);
|
|
1211
|
+
if (level2 === "error") {
|
|
1212
|
+
metadata = formatError(metadata);
|
|
1213
|
+
}
|
|
1214
|
+
;
|
|
1215
|
+
metadata.client = true;
|
|
1216
|
+
url = "".concat(basePath, "/_log");
|
|
1217
|
+
body = new URLSearchParams(_objectSpread({
|
|
1218
|
+
level: level2,
|
|
1219
|
+
code
|
|
1220
|
+
}, metadata));
|
|
1221
|
+
if (!navigator.sendBeacon) {
|
|
1222
|
+
_context.next = 8;
|
|
1223
|
+
break;
|
|
1224
|
+
}
|
|
1225
|
+
return _context.abrupt("return", navigator.sendBeacon(url, body));
|
|
1226
|
+
case 8:
|
|
1227
|
+
_context.next = 10;
|
|
1228
|
+
return fetch(url, {
|
|
1229
|
+
method: "POST",
|
|
1230
|
+
body,
|
|
1231
|
+
keepalive: true
|
|
1232
|
+
});
|
|
1233
|
+
case 10:
|
|
1234
|
+
return _context.abrupt("return", _context.sent);
|
|
1235
|
+
case 11:
|
|
1236
|
+
case "end":
|
|
1237
|
+
return _context.stop();
|
|
1238
|
+
}
|
|
1239
|
+
}, _callee);
|
|
1240
|
+
}));
|
|
1241
|
+
return function(_x, _x2) {
|
|
1242
|
+
return _ref.apply(this, arguments);
|
|
1243
|
+
};
|
|
1244
|
+
}();
|
|
1262
1245
|
};
|
|
1263
1246
|
for (var level in logger2) {
|
|
1264
1247
|
_loop(level);
|
|
@@ -1316,26 +1299,26 @@ function require_utils() {
|
|
|
1316
1299
|
var _regenerator = _interopRequireDefault(requireRegenerator());
|
|
1317
1300
|
var _defineProperty2 = _interopRequireDefault(requireDefineProperty());
|
|
1318
1301
|
var _asyncToGenerator2 = _interopRequireDefault(requireAsyncToGenerator());
|
|
1319
|
-
function ownKeys(
|
|
1320
|
-
var
|
|
1302
|
+
function ownKeys(e, r) {
|
|
1303
|
+
var t = Object.keys(e);
|
|
1321
1304
|
if (Object.getOwnPropertySymbols) {
|
|
1322
|
-
var
|
|
1323
|
-
|
|
1324
|
-
return Object.getOwnPropertyDescriptor(
|
|
1325
|
-
})),
|
|
1305
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
1306
|
+
r && (o = o.filter(function(r2) {
|
|
1307
|
+
return Object.getOwnPropertyDescriptor(e, r2).enumerable;
|
|
1308
|
+
})), t.push.apply(t, o);
|
|
1326
1309
|
}
|
|
1327
|
-
return
|
|
1310
|
+
return t;
|
|
1328
1311
|
}
|
|
1329
|
-
function _objectSpread(
|
|
1330
|
-
for (var
|
|
1331
|
-
var
|
|
1332
|
-
|
|
1333
|
-
(0, _defineProperty2.default)(
|
|
1334
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(
|
|
1335
|
-
Object.defineProperty(
|
|
1312
|
+
function _objectSpread(e) {
|
|
1313
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
1314
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
1315
|
+
r % 2 ? ownKeys(Object(t), true).forEach(function(r2) {
|
|
1316
|
+
(0, _defineProperty2.default)(e, r2, t[r2]);
|
|
1317
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r2) {
|
|
1318
|
+
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
1336
1319
|
});
|
|
1337
1320
|
}
|
|
1338
|
-
return
|
|
1321
|
+
return e;
|
|
1339
1322
|
}
|
|
1340
1323
|
function fetchData(_x, _x2, _x3) {
|
|
1341
1324
|
return _fetchData.apply(this, arguments);
|
|
@@ -1344,7 +1327,7 @@ function require_utils() {
|
|
|
1344
1327
|
_fetchData = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee(path, __NEXTAUTH, logger2) {
|
|
1345
1328
|
var _ref, ctx, _ref$req, req, url, _req$headers, options, res, data, _args = arguments;
|
|
1346
1329
|
return _regenerator.default.wrap(function _callee$(_context) {
|
|
1347
|
-
while (1)
|
|
1330
|
+
while (1)
|
|
1348
1331
|
switch (_context.prev = _context.next) {
|
|
1349
1332
|
case 0:
|
|
1350
1333
|
_ref = _args.length > 3 && _args[3] !== void 0 ? _args[3] : {}, ctx = _ref.ctx, _ref$req = _ref.req, req = _ref$req === void 0 ? ctx === null || ctx === void 0 ? void 0 : ctx.req : _ref$req;
|
|
@@ -1388,7 +1371,6 @@ function require_utils() {
|
|
|
1388
1371
|
case "end":
|
|
1389
1372
|
return _context.stop();
|
|
1390
1373
|
}
|
|
1391
|
-
}
|
|
1392
1374
|
}, _callee, null, [[2, 16]]);
|
|
1393
1375
|
}));
|
|
1394
1376
|
return _fetchData.apply(this, arguments);
|
|
@@ -1435,45 +1417,52 @@ function require_utils() {
|
|
|
1435
1417
|
return _utils;
|
|
1436
1418
|
}
|
|
1437
1419
|
var jsxRuntime = { exports: {} };
|
|
1438
|
-
var
|
|
1420
|
+
var reactJsxRuntime_production = {};
|
|
1439
1421
|
/**
|
|
1440
1422
|
* @license React
|
|
1441
|
-
* react-jsx-runtime.production.
|
|
1423
|
+
* react-jsx-runtime.production.js
|
|
1442
1424
|
*
|
|
1443
|
-
* Copyright (c)
|
|
1425
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
1444
1426
|
*
|
|
1445
1427
|
* This source code is licensed under the MIT license found in the
|
|
1446
1428
|
* LICENSE file in the root directory of this source tree.
|
|
1447
1429
|
*/
|
|
1448
|
-
var
|
|
1449
|
-
function
|
|
1450
|
-
if (
|
|
1451
|
-
return
|
|
1452
|
-
|
|
1453
|
-
var
|
|
1454
|
-
function
|
|
1455
|
-
var
|
|
1456
|
-
void 0 !==
|
|
1457
|
-
void 0 !==
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1430
|
+
var hasRequiredReactJsxRuntime_production;
|
|
1431
|
+
function requireReactJsxRuntime_production() {
|
|
1432
|
+
if (hasRequiredReactJsxRuntime_production)
|
|
1433
|
+
return reactJsxRuntime_production;
|
|
1434
|
+
hasRequiredReactJsxRuntime_production = 1;
|
|
1435
|
+
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
1436
|
+
function jsxProd(type, config, maybeKey) {
|
|
1437
|
+
var key = null;
|
|
1438
|
+
void 0 !== maybeKey && (key = "" + maybeKey);
|
|
1439
|
+
void 0 !== config.key && (key = "" + config.key);
|
|
1440
|
+
if ("key" in config) {
|
|
1441
|
+
maybeKey = {};
|
|
1442
|
+
for (var propName in config)
|
|
1443
|
+
"key" !== propName && (maybeKey[propName] = config[propName]);
|
|
1444
|
+
} else
|
|
1445
|
+
maybeKey = config;
|
|
1446
|
+
config = maybeKey.ref;
|
|
1447
|
+
return {
|
|
1448
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
1449
|
+
type,
|
|
1450
|
+
key,
|
|
1451
|
+
ref: void 0 !== config ? config : null,
|
|
1452
|
+
props: maybeKey
|
|
1453
|
+
};
|
|
1465
1454
|
}
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
return
|
|
1455
|
+
reactJsxRuntime_production.Fragment = REACT_FRAGMENT_TYPE;
|
|
1456
|
+
reactJsxRuntime_production.jsx = jsxProd;
|
|
1457
|
+
reactJsxRuntime_production.jsxs = jsxProd;
|
|
1458
|
+
return reactJsxRuntime_production;
|
|
1470
1459
|
}
|
|
1471
1460
|
var reactJsxRuntime_development = {};
|
|
1472
1461
|
/**
|
|
1473
1462
|
* @license React
|
|
1474
1463
|
* react-jsx-runtime.development.js
|
|
1475
1464
|
*
|
|
1476
|
-
* Copyright (c)
|
|
1465
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
1477
1466
|
*
|
|
1478
1467
|
* This source code is licensed under the MIT license found in the
|
|
1479
1468
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -1483,891 +1472,262 @@ function requireReactJsxRuntime_development() {
|
|
|
1483
1472
|
if (hasRequiredReactJsxRuntime_development)
|
|
1484
1473
|
return reactJsxRuntime_development;
|
|
1485
1474
|
hasRequiredReactJsxRuntime_development = 1;
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
var REACT_ELEMENT_TYPE = Symbol.for("react.element");
|
|
1490
|
-
var REACT_PORTAL_TYPE = Symbol.for("react.portal");
|
|
1491
|
-
var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
1492
|
-
var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
|
|
1493
|
-
var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
|
1494
|
-
var REACT_PROVIDER_TYPE = Symbol.for("react.provider");
|
|
1495
|
-
var REACT_CONTEXT_TYPE = Symbol.for("react.context");
|
|
1496
|
-
var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
|
|
1497
|
-
var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
|
|
1498
|
-
var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list");
|
|
1499
|
-
var REACT_MEMO_TYPE = Symbol.for("react.memo");
|
|
1500
|
-
var REACT_LAZY_TYPE = Symbol.for("react.lazy");
|
|
1501
|
-
var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen");
|
|
1502
|
-
var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
|
|
1503
|
-
var FAUX_ITERATOR_SYMBOL = "@@iterator";
|
|
1504
|
-
function getIteratorFn(maybeIterable) {
|
|
1505
|
-
if (maybeIterable === null || typeof maybeIterable !== "object") {
|
|
1506
|
-
return null;
|
|
1507
|
-
}
|
|
1508
|
-
var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
|
|
1509
|
-
if (typeof maybeIterator === "function") {
|
|
1510
|
-
return maybeIterator;
|
|
1511
|
-
}
|
|
1475
|
+
"production" !== process.env.NODE_ENV && function() {
|
|
1476
|
+
function getComponentNameFromType(type) {
|
|
1477
|
+
if (null == type)
|
|
1512
1478
|
return null;
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
});
|
|
1536
|
-
argsWithFormat.unshift("Warning: " + format);
|
|
1537
|
-
Function.prototype.apply.call(console[level], console, argsWithFormat);
|
|
1538
|
-
}
|
|
1539
|
-
}
|
|
1540
|
-
var enableScopeAPI = false;
|
|
1541
|
-
var enableCacheElement = false;
|
|
1542
|
-
var enableTransitionTracing = false;
|
|
1543
|
-
var enableLegacyHidden = false;
|
|
1544
|
-
var enableDebugTracing = false;
|
|
1545
|
-
var REACT_MODULE_REFERENCE;
|
|
1546
|
-
{
|
|
1547
|
-
REACT_MODULE_REFERENCE = Symbol.for("react.module.reference");
|
|
1548
|
-
}
|
|
1549
|
-
function isValidElementType(type) {
|
|
1550
|
-
if (typeof type === "string" || typeof type === "function") {
|
|
1551
|
-
return true;
|
|
1552
|
-
}
|
|
1553
|
-
if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing) {
|
|
1554
|
-
return true;
|
|
1555
|
-
}
|
|
1556
|
-
if (typeof type === "object" && type !== null) {
|
|
1557
|
-
if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object
|
|
1558
|
-
// types supported by any Flight configuration anywhere since
|
|
1559
|
-
// we don't know which Flight build this will end up being used
|
|
1560
|
-
// with.
|
|
1561
|
-
type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== void 0) {
|
|
1562
|
-
return true;
|
|
1563
|
-
}
|
|
1564
|
-
}
|
|
1565
|
-
return false;
|
|
1566
|
-
}
|
|
1567
|
-
function getWrappedName(outerType, innerType, wrapperName) {
|
|
1568
|
-
var displayName = outerType.displayName;
|
|
1569
|
-
if (displayName) {
|
|
1570
|
-
return displayName;
|
|
1571
|
-
}
|
|
1572
|
-
var functionName = innerType.displayName || innerType.name || "";
|
|
1573
|
-
return functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName;
|
|
1574
|
-
}
|
|
1575
|
-
function getContextName(type) {
|
|
1576
|
-
return type.displayName || "Context";
|
|
1577
|
-
}
|
|
1578
|
-
function getComponentNameFromType(type) {
|
|
1579
|
-
if (type == null) {
|
|
1580
|
-
return null;
|
|
1581
|
-
}
|
|
1582
|
-
{
|
|
1583
|
-
if (typeof type.tag === "number") {
|
|
1584
|
-
error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.");
|
|
1585
|
-
}
|
|
1586
|
-
}
|
|
1587
|
-
if (typeof type === "function") {
|
|
1588
|
-
return type.displayName || type.name || null;
|
|
1589
|
-
}
|
|
1590
|
-
if (typeof type === "string") {
|
|
1591
|
-
return type;
|
|
1592
|
-
}
|
|
1593
|
-
switch (type) {
|
|
1594
|
-
case REACT_FRAGMENT_TYPE:
|
|
1595
|
-
return "Fragment";
|
|
1479
|
+
if ("function" === typeof type)
|
|
1480
|
+
return type.$$typeof === REACT_CLIENT_REFERENCE ? null : type.displayName || type.name || null;
|
|
1481
|
+
if ("string" === typeof type)
|
|
1482
|
+
return type;
|
|
1483
|
+
switch (type) {
|
|
1484
|
+
case REACT_FRAGMENT_TYPE:
|
|
1485
|
+
return "Fragment";
|
|
1486
|
+
case REACT_PROFILER_TYPE:
|
|
1487
|
+
return "Profiler";
|
|
1488
|
+
case REACT_STRICT_MODE_TYPE:
|
|
1489
|
+
return "StrictMode";
|
|
1490
|
+
case REACT_SUSPENSE_TYPE:
|
|
1491
|
+
return "Suspense";
|
|
1492
|
+
case REACT_SUSPENSE_LIST_TYPE:
|
|
1493
|
+
return "SuspenseList";
|
|
1494
|
+
case REACT_ACTIVITY_TYPE:
|
|
1495
|
+
return "Activity";
|
|
1496
|
+
}
|
|
1497
|
+
if ("object" === typeof type)
|
|
1498
|
+
switch ("number" === typeof type.tag && console.error(
|
|
1499
|
+
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
1500
|
+
), type.$$typeof) {
|
|
1596
1501
|
case REACT_PORTAL_TYPE:
|
|
1597
1502
|
return "Portal";
|
|
1598
|
-
case
|
|
1599
|
-
return "
|
|
1600
|
-
case
|
|
1601
|
-
return "
|
|
1602
|
-
case
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
case REACT_PROVIDER_TYPE:
|
|
1613
|
-
var provider = type;
|
|
1614
|
-
return getContextName(provider._context) + ".Provider";
|
|
1615
|
-
case REACT_FORWARD_REF_TYPE:
|
|
1616
|
-
return getWrappedName(type, type.render, "ForwardRef");
|
|
1617
|
-
case REACT_MEMO_TYPE:
|
|
1618
|
-
var outerName = type.displayName || null;
|
|
1619
|
-
if (outerName !== null) {
|
|
1620
|
-
return outerName;
|
|
1621
|
-
}
|
|
1622
|
-
return getComponentNameFromType(type.type) || "Memo";
|
|
1623
|
-
case REACT_LAZY_TYPE: {
|
|
1624
|
-
var lazyComponent = type;
|
|
1625
|
-
var payload = lazyComponent._payload;
|
|
1626
|
-
var init = lazyComponent._init;
|
|
1627
|
-
try {
|
|
1628
|
-
return getComponentNameFromType(init(payload));
|
|
1629
|
-
} catch (x) {
|
|
1630
|
-
return null;
|
|
1631
|
-
}
|
|
1632
|
-
}
|
|
1633
|
-
}
|
|
1634
|
-
}
|
|
1635
|
-
return null;
|
|
1636
|
-
}
|
|
1637
|
-
var assign = Object.assign;
|
|
1638
|
-
var disabledDepth = 0;
|
|
1639
|
-
var prevLog;
|
|
1640
|
-
var prevInfo;
|
|
1641
|
-
var prevWarn;
|
|
1642
|
-
var prevError;
|
|
1643
|
-
var prevGroup;
|
|
1644
|
-
var prevGroupCollapsed;
|
|
1645
|
-
var prevGroupEnd;
|
|
1646
|
-
function disabledLog() {
|
|
1647
|
-
}
|
|
1648
|
-
disabledLog.__reactDisabledLog = true;
|
|
1649
|
-
function disableLogs() {
|
|
1650
|
-
{
|
|
1651
|
-
if (disabledDepth === 0) {
|
|
1652
|
-
prevLog = console.log;
|
|
1653
|
-
prevInfo = console.info;
|
|
1654
|
-
prevWarn = console.warn;
|
|
1655
|
-
prevError = console.error;
|
|
1656
|
-
prevGroup = console.group;
|
|
1657
|
-
prevGroupCollapsed = console.groupCollapsed;
|
|
1658
|
-
prevGroupEnd = console.groupEnd;
|
|
1659
|
-
var props = {
|
|
1660
|
-
configurable: true,
|
|
1661
|
-
enumerable: true,
|
|
1662
|
-
value: disabledLog,
|
|
1663
|
-
writable: true
|
|
1664
|
-
};
|
|
1665
|
-
Object.defineProperties(console, {
|
|
1666
|
-
info: props,
|
|
1667
|
-
log: props,
|
|
1668
|
-
warn: props,
|
|
1669
|
-
error: props,
|
|
1670
|
-
group: props,
|
|
1671
|
-
groupCollapsed: props,
|
|
1672
|
-
groupEnd: props
|
|
1673
|
-
});
|
|
1674
|
-
}
|
|
1675
|
-
disabledDepth++;
|
|
1676
|
-
}
|
|
1677
|
-
}
|
|
1678
|
-
function reenableLogs() {
|
|
1679
|
-
{
|
|
1680
|
-
disabledDepth--;
|
|
1681
|
-
if (disabledDepth === 0) {
|
|
1682
|
-
var props = {
|
|
1683
|
-
configurable: true,
|
|
1684
|
-
enumerable: true,
|
|
1685
|
-
writable: true
|
|
1686
|
-
};
|
|
1687
|
-
Object.defineProperties(console, {
|
|
1688
|
-
log: assign({}, props, {
|
|
1689
|
-
value: prevLog
|
|
1690
|
-
}),
|
|
1691
|
-
info: assign({}, props, {
|
|
1692
|
-
value: prevInfo
|
|
1693
|
-
}),
|
|
1694
|
-
warn: assign({}, props, {
|
|
1695
|
-
value: prevWarn
|
|
1696
|
-
}),
|
|
1697
|
-
error: assign({}, props, {
|
|
1698
|
-
value: prevError
|
|
1699
|
-
}),
|
|
1700
|
-
group: assign({}, props, {
|
|
1701
|
-
value: prevGroup
|
|
1702
|
-
}),
|
|
1703
|
-
groupCollapsed: assign({}, props, {
|
|
1704
|
-
value: prevGroupCollapsed
|
|
1705
|
-
}),
|
|
1706
|
-
groupEnd: assign({}, props, {
|
|
1707
|
-
value: prevGroupEnd
|
|
1708
|
-
})
|
|
1709
|
-
});
|
|
1710
|
-
}
|
|
1711
|
-
if (disabledDepth < 0) {
|
|
1712
|
-
error("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
1713
|
-
}
|
|
1714
|
-
}
|
|
1715
|
-
}
|
|
1716
|
-
var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
|
|
1717
|
-
var prefix;
|
|
1718
|
-
function describeBuiltInComponentFrame(name, source, ownerFn) {
|
|
1719
|
-
{
|
|
1720
|
-
if (prefix === void 0) {
|
|
1721
|
-
try {
|
|
1722
|
-
throw Error();
|
|
1723
|
-
} catch (x) {
|
|
1724
|
-
var match = x.stack.trim().match(/\n( *(at )?)/);
|
|
1725
|
-
prefix = match && match[1] || "";
|
|
1726
|
-
}
|
|
1727
|
-
}
|
|
1728
|
-
return "\n" + prefix + name;
|
|
1729
|
-
}
|
|
1730
|
-
}
|
|
1731
|
-
var reentry = false;
|
|
1732
|
-
var componentFrameCache;
|
|
1733
|
-
{
|
|
1734
|
-
var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map;
|
|
1735
|
-
componentFrameCache = new PossiblyWeakMap();
|
|
1736
|
-
}
|
|
1737
|
-
function describeNativeComponentFrame(fn, construct2) {
|
|
1738
|
-
if (!fn || reentry) {
|
|
1739
|
-
return "";
|
|
1740
|
-
}
|
|
1741
|
-
{
|
|
1742
|
-
var frame = componentFrameCache.get(fn);
|
|
1743
|
-
if (frame !== void 0) {
|
|
1744
|
-
return frame;
|
|
1745
|
-
}
|
|
1746
|
-
}
|
|
1747
|
-
var control;
|
|
1748
|
-
reentry = true;
|
|
1749
|
-
var previousPrepareStackTrace = Error.prepareStackTrace;
|
|
1750
|
-
Error.prepareStackTrace = void 0;
|
|
1751
|
-
var previousDispatcher;
|
|
1752
|
-
{
|
|
1753
|
-
previousDispatcher = ReactCurrentDispatcher.current;
|
|
1754
|
-
ReactCurrentDispatcher.current = null;
|
|
1755
|
-
disableLogs();
|
|
1756
|
-
}
|
|
1757
|
-
try {
|
|
1758
|
-
if (construct2) {
|
|
1759
|
-
var Fake = function() {
|
|
1760
|
-
throw Error();
|
|
1761
|
-
};
|
|
1762
|
-
Object.defineProperty(Fake.prototype, "props", {
|
|
1763
|
-
set: function() {
|
|
1764
|
-
throw Error();
|
|
1765
|
-
}
|
|
1766
|
-
});
|
|
1767
|
-
if (typeof Reflect === "object" && Reflect.construct) {
|
|
1768
|
-
try {
|
|
1769
|
-
Reflect.construct(Fake, []);
|
|
1770
|
-
} catch (x) {
|
|
1771
|
-
control = x;
|
|
1772
|
-
}
|
|
1773
|
-
Reflect.construct(fn, [], Fake);
|
|
1774
|
-
} else {
|
|
1775
|
-
try {
|
|
1776
|
-
Fake.call();
|
|
1777
|
-
} catch (x) {
|
|
1778
|
-
control = x;
|
|
1779
|
-
}
|
|
1780
|
-
fn.call(Fake.prototype);
|
|
1781
|
-
}
|
|
1782
|
-
} else {
|
|
1503
|
+
case REACT_CONTEXT_TYPE:
|
|
1504
|
+
return type.displayName || "Context";
|
|
1505
|
+
case REACT_CONSUMER_TYPE:
|
|
1506
|
+
return (type._context.displayName || "Context") + ".Consumer";
|
|
1507
|
+
case REACT_FORWARD_REF_TYPE:
|
|
1508
|
+
var innerType = type.render;
|
|
1509
|
+
type = type.displayName;
|
|
1510
|
+
type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef");
|
|
1511
|
+
return type;
|
|
1512
|
+
case REACT_MEMO_TYPE:
|
|
1513
|
+
return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo";
|
|
1514
|
+
case REACT_LAZY_TYPE:
|
|
1515
|
+
innerType = type._payload;
|
|
1516
|
+
type = type._init;
|
|
1783
1517
|
try {
|
|
1784
|
-
|
|
1518
|
+
return getComponentNameFromType(type(innerType));
|
|
1785
1519
|
} catch (x) {
|
|
1786
|
-
control = x;
|
|
1787
|
-
}
|
|
1788
|
-
fn();
|
|
1789
|
-
}
|
|
1790
|
-
} catch (sample) {
|
|
1791
|
-
if (sample && control && typeof sample.stack === "string") {
|
|
1792
|
-
var sampleLines = sample.stack.split("\n");
|
|
1793
|
-
var controlLines = control.stack.split("\n");
|
|
1794
|
-
var s = sampleLines.length - 1;
|
|
1795
|
-
var c = controlLines.length - 1;
|
|
1796
|
-
while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
|
|
1797
|
-
c--;
|
|
1798
|
-
}
|
|
1799
|
-
for (; s >= 1 && c >= 0; s--, c--) {
|
|
1800
|
-
if (sampleLines[s] !== controlLines[c]) {
|
|
1801
|
-
if (s !== 1 || c !== 1) {
|
|
1802
|
-
do {
|
|
1803
|
-
s--;
|
|
1804
|
-
c--;
|
|
1805
|
-
if (c < 0 || sampleLines[s] !== controlLines[c]) {
|
|
1806
|
-
var _frame = "\n" + sampleLines[s].replace(" at new ", " at ");
|
|
1807
|
-
if (fn.displayName && _frame.includes("<anonymous>")) {
|
|
1808
|
-
_frame = _frame.replace("<anonymous>", fn.displayName);
|
|
1809
|
-
}
|
|
1810
|
-
{
|
|
1811
|
-
if (typeof fn === "function") {
|
|
1812
|
-
componentFrameCache.set(fn, _frame);
|
|
1813
|
-
}
|
|
1814
|
-
}
|
|
1815
|
-
return _frame;
|
|
1816
|
-
}
|
|
1817
|
-
} while (s >= 1 && c >= 0);
|
|
1818
|
-
}
|
|
1819
|
-
break;
|
|
1820
|
-
}
|
|
1821
|
-
}
|
|
1822
|
-
}
|
|
1823
|
-
} finally {
|
|
1824
|
-
reentry = false;
|
|
1825
|
-
{
|
|
1826
|
-
ReactCurrentDispatcher.current = previousDispatcher;
|
|
1827
|
-
reenableLogs();
|
|
1828
|
-
}
|
|
1829
|
-
Error.prepareStackTrace = previousPrepareStackTrace;
|
|
1830
|
-
}
|
|
1831
|
-
var name = fn ? fn.displayName || fn.name : "";
|
|
1832
|
-
var syntheticFrame = name ? describeBuiltInComponentFrame(name) : "";
|
|
1833
|
-
{
|
|
1834
|
-
if (typeof fn === "function") {
|
|
1835
|
-
componentFrameCache.set(fn, syntheticFrame);
|
|
1836
|
-
}
|
|
1837
|
-
}
|
|
1838
|
-
return syntheticFrame;
|
|
1839
|
-
}
|
|
1840
|
-
function describeFunctionComponentFrame(fn, source, ownerFn) {
|
|
1841
|
-
{
|
|
1842
|
-
return describeNativeComponentFrame(fn, false);
|
|
1843
|
-
}
|
|
1844
|
-
}
|
|
1845
|
-
function shouldConstruct(Component) {
|
|
1846
|
-
var prototype = Component.prototype;
|
|
1847
|
-
return !!(prototype && prototype.isReactComponent);
|
|
1848
|
-
}
|
|
1849
|
-
function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
|
|
1850
|
-
if (type == null) {
|
|
1851
|
-
return "";
|
|
1852
|
-
}
|
|
1853
|
-
if (typeof type === "function") {
|
|
1854
|
-
{
|
|
1855
|
-
return describeNativeComponentFrame(type, shouldConstruct(type));
|
|
1856
|
-
}
|
|
1857
|
-
}
|
|
1858
|
-
if (typeof type === "string") {
|
|
1859
|
-
return describeBuiltInComponentFrame(type);
|
|
1860
|
-
}
|
|
1861
|
-
switch (type) {
|
|
1862
|
-
case REACT_SUSPENSE_TYPE:
|
|
1863
|
-
return describeBuiltInComponentFrame("Suspense");
|
|
1864
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
|
1865
|
-
return describeBuiltInComponentFrame("SuspenseList");
|
|
1866
|
-
}
|
|
1867
|
-
if (typeof type === "object") {
|
|
1868
|
-
switch (type.$$typeof) {
|
|
1869
|
-
case REACT_FORWARD_REF_TYPE:
|
|
1870
|
-
return describeFunctionComponentFrame(type.render);
|
|
1871
|
-
case REACT_MEMO_TYPE:
|
|
1872
|
-
return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
|
|
1873
|
-
case REACT_LAZY_TYPE: {
|
|
1874
|
-
var lazyComponent = type;
|
|
1875
|
-
var payload = lazyComponent._payload;
|
|
1876
|
-
var init = lazyComponent._init;
|
|
1877
|
-
try {
|
|
1878
|
-
return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
|
|
1879
|
-
} catch (x) {
|
|
1880
|
-
}
|
|
1881
|
-
}
|
|
1882
|
-
}
|
|
1883
|
-
}
|
|
1884
|
-
return "";
|
|
1885
|
-
}
|
|
1886
|
-
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
1887
|
-
var loggedTypeFailures = {};
|
|
1888
|
-
var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
1889
|
-
function setCurrentlyValidatingElement(element) {
|
|
1890
|
-
{
|
|
1891
|
-
if (element) {
|
|
1892
|
-
var owner = element._owner;
|
|
1893
|
-
var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
|
|
1894
|
-
ReactDebugCurrentFrame.setExtraStackFrame(stack);
|
|
1895
|
-
} else {
|
|
1896
|
-
ReactDebugCurrentFrame.setExtraStackFrame(null);
|
|
1897
|
-
}
|
|
1898
|
-
}
|
|
1899
|
-
}
|
|
1900
|
-
function checkPropTypes(typeSpecs, values, location, componentName, element) {
|
|
1901
|
-
{
|
|
1902
|
-
var has = Function.call.bind(hasOwnProperty);
|
|
1903
|
-
for (var typeSpecName in typeSpecs) {
|
|
1904
|
-
if (has(typeSpecs, typeSpecName)) {
|
|
1905
|
-
var error$1 = void 0;
|
|
1906
|
-
try {
|
|
1907
|
-
if (typeof typeSpecs[typeSpecName] !== "function") {
|
|
1908
|
-
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`.");
|
|
1909
|
-
err.name = "Invariant Violation";
|
|
1910
|
-
throw err;
|
|
1911
|
-
}
|
|
1912
|
-
error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
1913
|
-
} catch (ex) {
|
|
1914
|
-
error$1 = ex;
|
|
1915
|
-
}
|
|
1916
|
-
if (error$1 && !(error$1 instanceof Error)) {
|
|
1917
|
-
setCurrentlyValidatingElement(element);
|
|
1918
|
-
error("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", componentName || "React class", location, typeSpecName, typeof error$1);
|
|
1919
|
-
setCurrentlyValidatingElement(null);
|
|
1920
|
-
}
|
|
1921
|
-
if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
|
|
1922
|
-
loggedTypeFailures[error$1.message] = true;
|
|
1923
|
-
setCurrentlyValidatingElement(element);
|
|
1924
|
-
error("Failed %s type: %s", location, error$1.message);
|
|
1925
|
-
setCurrentlyValidatingElement(null);
|
|
1926
|
-
}
|
|
1927
1520
|
}
|
|
1928
|
-
}
|
|
1929
|
-
}
|
|
1930
|
-
}
|
|
1931
|
-
var isArrayImpl = Array.isArray;
|
|
1932
|
-
function isArray(a) {
|
|
1933
|
-
return isArrayImpl(a);
|
|
1934
|
-
}
|
|
1935
|
-
function typeName(value) {
|
|
1936
|
-
{
|
|
1937
|
-
var hasToStringTag = typeof Symbol === "function" && Symbol.toStringTag;
|
|
1938
|
-
var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
|
|
1939
|
-
return type;
|
|
1940
|
-
}
|
|
1941
|
-
}
|
|
1942
|
-
function willCoercionThrow(value) {
|
|
1943
|
-
{
|
|
1944
|
-
try {
|
|
1945
|
-
testStringCoercion(value);
|
|
1946
|
-
return false;
|
|
1947
|
-
} catch (e) {
|
|
1948
|
-
return true;
|
|
1949
|
-
}
|
|
1950
|
-
}
|
|
1951
|
-
}
|
|
1952
|
-
function testStringCoercion(value) {
|
|
1953
|
-
return "" + value;
|
|
1954
|
-
}
|
|
1955
|
-
function checkKeyStringCoercion(value) {
|
|
1956
|
-
{
|
|
1957
|
-
if (willCoercionThrow(value)) {
|
|
1958
|
-
error("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", typeName(value));
|
|
1959
|
-
return testStringCoercion(value);
|
|
1960
|
-
}
|
|
1961
|
-
}
|
|
1962
|
-
}
|
|
1963
|
-
var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
|
|
1964
|
-
var RESERVED_PROPS = {
|
|
1965
|
-
key: true,
|
|
1966
|
-
ref: true,
|
|
1967
|
-
__self: true,
|
|
1968
|
-
__source: true
|
|
1969
|
-
};
|
|
1970
|
-
var specialPropKeyWarningShown;
|
|
1971
|
-
var specialPropRefWarningShown;
|
|
1972
|
-
var didWarnAboutStringRefs;
|
|
1973
|
-
{
|
|
1974
|
-
didWarnAboutStringRefs = {};
|
|
1975
|
-
}
|
|
1976
|
-
function hasValidRef(config) {
|
|
1977
|
-
{
|
|
1978
|
-
if (hasOwnProperty.call(config, "ref")) {
|
|
1979
|
-
var getter = Object.getOwnPropertyDescriptor(config, "ref").get;
|
|
1980
|
-
if (getter && getter.isReactWarning) {
|
|
1981
|
-
return false;
|
|
1982
|
-
}
|
|
1983
|
-
}
|
|
1984
|
-
}
|
|
1985
|
-
return config.ref !== void 0;
|
|
1986
|
-
}
|
|
1987
|
-
function hasValidKey(config) {
|
|
1988
|
-
{
|
|
1989
|
-
if (hasOwnProperty.call(config, "key")) {
|
|
1990
|
-
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
|
1991
|
-
if (getter && getter.isReactWarning) {
|
|
1992
|
-
return false;
|
|
1993
|
-
}
|
|
1994
|
-
}
|
|
1995
1521
|
}
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
return element;
|
|
1522
|
+
return null;
|
|
1523
|
+
}
|
|
1524
|
+
function testStringCoercion(value) {
|
|
1525
|
+
return "" + value;
|
|
1526
|
+
}
|
|
1527
|
+
function checkKeyStringCoercion(value) {
|
|
1528
|
+
try {
|
|
1529
|
+
testStringCoercion(value);
|
|
1530
|
+
var JSCompiler_inline_result = false;
|
|
1531
|
+
} catch (e) {
|
|
1532
|
+
JSCompiler_inline_result = true;
|
|
1533
|
+
}
|
|
1534
|
+
if (JSCompiler_inline_result) {
|
|
1535
|
+
JSCompiler_inline_result = console;
|
|
1536
|
+
var JSCompiler_temp_const = JSCompiler_inline_result.error;
|
|
1537
|
+
var JSCompiler_inline_result$jscomp$0 = "function" === typeof Symbol && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
|
|
1538
|
+
JSCompiler_temp_const.call(
|
|
1539
|
+
JSCompiler_inline_result,
|
|
1540
|
+
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
1541
|
+
JSCompiler_inline_result$jscomp$0
|
|
1542
|
+
);
|
|
1543
|
+
return testStringCoercion(value);
|
|
1544
|
+
}
|
|
1545
|
+
}
|
|
1546
|
+
function getTaskName(type) {
|
|
1547
|
+
if (type === REACT_FRAGMENT_TYPE)
|
|
1548
|
+
return "<>";
|
|
1549
|
+
if ("object" === typeof type && null !== type && type.$$typeof === REACT_LAZY_TYPE)
|
|
1550
|
+
return "<...>";
|
|
1551
|
+
try {
|
|
1552
|
+
var name = getComponentNameFromType(type);
|
|
1553
|
+
return name ? "<" + name + ">" : "<...>";
|
|
1554
|
+
} catch (x) {
|
|
1555
|
+
return "<...>";
|
|
1556
|
+
}
|
|
1557
|
+
}
|
|
1558
|
+
function getOwner() {
|
|
1559
|
+
var dispatcher = ReactSharedInternals.A;
|
|
1560
|
+
return null === dispatcher ? null : dispatcher.getOwner();
|
|
1561
|
+
}
|
|
1562
|
+
function UnknownOwner() {
|
|
1563
|
+
return Error("react-stack-top-frame");
|
|
1564
|
+
}
|
|
1565
|
+
function hasValidKey(config) {
|
|
1566
|
+
if (hasOwnProperty.call(config, "key")) {
|
|
1567
|
+
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
|
1568
|
+
if (getter && getter.isReactWarning)
|
|
1569
|
+
return false;
|
|
1570
|
+
}
|
|
1571
|
+
return void 0 !== config.key;
|
|
1572
|
+
}
|
|
1573
|
+
function defineKeyPropWarningGetter(props, displayName) {
|
|
1574
|
+
function warnAboutAccessingKey() {
|
|
1575
|
+
specialPropKeyWarningShown || (specialPropKeyWarningShown = true, console.error(
|
|
1576
|
+
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
1577
|
+
displayName
|
|
1578
|
+
));
|
|
1579
|
+
}
|
|
1580
|
+
warnAboutAccessingKey.isReactWarning = true;
|
|
1581
|
+
Object.defineProperty(props, "key", {
|
|
1582
|
+
get: warnAboutAccessingKey,
|
|
1583
|
+
configurable: true
|
|
1584
|
+
});
|
|
1585
|
+
}
|
|
1586
|
+
function elementRefGetterWithDeprecationWarning() {
|
|
1587
|
+
var componentName = getComponentNameFromType(this.type);
|
|
1588
|
+
didWarnAboutElementRef[componentName] || (didWarnAboutElementRef[componentName] = true, console.error(
|
|
1589
|
+
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
1590
|
+
));
|
|
1591
|
+
componentName = this.props.ref;
|
|
1592
|
+
return void 0 !== componentName ? componentName : null;
|
|
1593
|
+
}
|
|
1594
|
+
function ReactElement(type, key, props, owner, debugStack, debugTask) {
|
|
1595
|
+
var refProp = props.ref;
|
|
1596
|
+
type = {
|
|
1597
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
1598
|
+
type,
|
|
1599
|
+
key,
|
|
1600
|
+
props,
|
|
1601
|
+
_owner: owner
|
|
2077
1602
|
};
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
}
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
if (!info) {
|
|
2173
|
-
var parentName = typeof parentType === "string" ? parentType : parentType.displayName || parentType.name;
|
|
2174
|
-
if (parentName) {
|
|
2175
|
-
info = "\n\nCheck the top-level render call using <" + parentName + ">.";
|
|
2176
|
-
}
|
|
2177
|
-
}
|
|
2178
|
-
return info;
|
|
2179
|
-
}
|
|
2180
|
-
}
|
|
2181
|
-
function validateExplicitKey(element, parentType) {
|
|
2182
|
-
{
|
|
2183
|
-
if (!element._store || element._store.validated || element.key != null) {
|
|
2184
|
-
return;
|
|
2185
|
-
}
|
|
2186
|
-
element._store.validated = true;
|
|
2187
|
-
var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
|
|
2188
|
-
if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
|
|
2189
|
-
return;
|
|
2190
|
-
}
|
|
2191
|
-
ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
|
|
2192
|
-
var childOwner = "";
|
|
2193
|
-
if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {
|
|
2194
|
-
childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
|
|
2195
|
-
}
|
|
2196
|
-
setCurrentlyValidatingElement$1(element);
|
|
2197
|
-
error('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);
|
|
2198
|
-
setCurrentlyValidatingElement$1(null);
|
|
2199
|
-
}
|
|
2200
|
-
}
|
|
2201
|
-
function validateChildKeys(node, parentType) {
|
|
2202
|
-
{
|
|
2203
|
-
if (typeof node !== "object") {
|
|
2204
|
-
return;
|
|
2205
|
-
}
|
|
2206
|
-
if (isArray(node)) {
|
|
2207
|
-
for (var i = 0; i < node.length; i++) {
|
|
2208
|
-
var child = node[i];
|
|
2209
|
-
if (isValidElement(child)) {
|
|
2210
|
-
validateExplicitKey(child, parentType);
|
|
2211
|
-
}
|
|
2212
|
-
}
|
|
2213
|
-
} else if (isValidElement(node)) {
|
|
2214
|
-
if (node._store) {
|
|
2215
|
-
node._store.validated = true;
|
|
2216
|
-
}
|
|
2217
|
-
} else if (node) {
|
|
2218
|
-
var iteratorFn = getIteratorFn(node);
|
|
2219
|
-
if (typeof iteratorFn === "function") {
|
|
2220
|
-
if (iteratorFn !== node.entries) {
|
|
2221
|
-
var iterator = iteratorFn.call(node);
|
|
2222
|
-
var step;
|
|
2223
|
-
while (!(step = iterator.next()).done) {
|
|
2224
|
-
if (isValidElement(step.value)) {
|
|
2225
|
-
validateExplicitKey(step.value, parentType);
|
|
2226
|
-
}
|
|
2227
|
-
}
|
|
2228
|
-
}
|
|
2229
|
-
}
|
|
2230
|
-
}
|
|
2231
|
-
}
|
|
2232
|
-
}
|
|
2233
|
-
function validatePropTypes(element) {
|
|
2234
|
-
{
|
|
2235
|
-
var type = element.type;
|
|
2236
|
-
if (type === null || type === void 0 || typeof type === "string") {
|
|
2237
|
-
return;
|
|
2238
|
-
}
|
|
2239
|
-
var propTypes;
|
|
2240
|
-
if (typeof type === "function") {
|
|
2241
|
-
propTypes = type.propTypes;
|
|
2242
|
-
} else if (typeof type === "object" && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
|
|
2243
|
-
// Inner props are checked in the reconciler.
|
|
2244
|
-
type.$$typeof === REACT_MEMO_TYPE)) {
|
|
2245
|
-
propTypes = type.propTypes;
|
|
2246
|
-
} else {
|
|
2247
|
-
return;
|
|
2248
|
-
}
|
|
2249
|
-
if (propTypes) {
|
|
2250
|
-
var name = getComponentNameFromType(type);
|
|
2251
|
-
checkPropTypes(propTypes, element.props, "prop", name, element);
|
|
2252
|
-
} else if (type.PropTypes !== void 0 && !propTypesMisspellWarningShown) {
|
|
2253
|
-
propTypesMisspellWarningShown = true;
|
|
2254
|
-
var _name = getComponentNameFromType(type);
|
|
2255
|
-
error("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _name || "Unknown");
|
|
2256
|
-
}
|
|
2257
|
-
if (typeof type.getDefaultProps === "function" && !type.getDefaultProps.isReactClassApproved) {
|
|
2258
|
-
error("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
2259
|
-
}
|
|
2260
|
-
}
|
|
2261
|
-
}
|
|
2262
|
-
function validateFragmentProps(fragment) {
|
|
2263
|
-
{
|
|
2264
|
-
var keys = Object.keys(fragment.props);
|
|
2265
|
-
for (var i = 0; i < keys.length; i++) {
|
|
2266
|
-
var key = keys[i];
|
|
2267
|
-
if (key !== "children" && key !== "key") {
|
|
2268
|
-
setCurrentlyValidatingElement$1(fragment);
|
|
2269
|
-
error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", key);
|
|
2270
|
-
setCurrentlyValidatingElement$1(null);
|
|
2271
|
-
break;
|
|
2272
|
-
}
|
|
2273
|
-
}
|
|
2274
|
-
if (fragment.ref !== null) {
|
|
2275
|
-
setCurrentlyValidatingElement$1(fragment);
|
|
2276
|
-
error("Invalid attribute `ref` supplied to `React.Fragment`.");
|
|
2277
|
-
setCurrentlyValidatingElement$1(null);
|
|
2278
|
-
}
|
|
2279
|
-
}
|
|
2280
|
-
}
|
|
2281
|
-
var didWarnAboutKeySpread = {};
|
|
2282
|
-
function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
|
|
2283
|
-
{
|
|
2284
|
-
var validType = isValidElementType(type);
|
|
2285
|
-
if (!validType) {
|
|
2286
|
-
var info = "";
|
|
2287
|
-
if (type === void 0 || typeof type === "object" && type !== null && Object.keys(type).length === 0) {
|
|
2288
|
-
info += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";
|
|
2289
|
-
}
|
|
2290
|
-
var sourceInfo = getSourceInfoErrorAddendum(source);
|
|
2291
|
-
if (sourceInfo) {
|
|
2292
|
-
info += sourceInfo;
|
|
2293
|
-
} else {
|
|
2294
|
-
info += getDeclarationErrorAddendum();
|
|
2295
|
-
}
|
|
2296
|
-
var typeString;
|
|
2297
|
-
if (type === null) {
|
|
2298
|
-
typeString = "null";
|
|
2299
|
-
} else if (isArray(type)) {
|
|
2300
|
-
typeString = "array";
|
|
2301
|
-
} else if (type !== void 0 && type.$$typeof === REACT_ELEMENT_TYPE) {
|
|
2302
|
-
typeString = "<" + (getComponentNameFromType(type.type) || "Unknown") + " />";
|
|
2303
|
-
info = " Did you accidentally export a JSX literal instead of a component?";
|
|
2304
|
-
} else {
|
|
2305
|
-
typeString = typeof type;
|
|
2306
|
-
}
|
|
2307
|
-
error("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", typeString, info);
|
|
2308
|
-
}
|
|
2309
|
-
var element = jsxDEV(type, props, key, source, self);
|
|
2310
|
-
if (element == null) {
|
|
2311
|
-
return element;
|
|
2312
|
-
}
|
|
2313
|
-
if (validType) {
|
|
2314
|
-
var children = props.children;
|
|
2315
|
-
if (children !== void 0) {
|
|
2316
|
-
if (isStaticChildren) {
|
|
2317
|
-
if (isArray(children)) {
|
|
2318
|
-
for (var i = 0; i < children.length; i++) {
|
|
2319
|
-
validateChildKeys(children[i], type);
|
|
2320
|
-
}
|
|
2321
|
-
if (Object.freeze) {
|
|
2322
|
-
Object.freeze(children);
|
|
2323
|
-
}
|
|
2324
|
-
} else {
|
|
2325
|
-
error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
2326
|
-
}
|
|
2327
|
-
} else {
|
|
2328
|
-
validateChildKeys(children, type);
|
|
2329
|
-
}
|
|
2330
|
-
}
|
|
2331
|
-
}
|
|
2332
|
-
{
|
|
2333
|
-
if (hasOwnProperty.call(props, "key")) {
|
|
2334
|
-
var componentName = getComponentNameFromType(type);
|
|
2335
|
-
var keys = Object.keys(props).filter(function(k) {
|
|
2336
|
-
return k !== "key";
|
|
2337
|
-
});
|
|
2338
|
-
var beforeExample = keys.length > 0 ? "{key: someKey, " + keys.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
2339
|
-
if (!didWarnAboutKeySpread[componentName + beforeExample]) {
|
|
2340
|
-
var afterExample = keys.length > 0 ? "{" + keys.join(": ..., ") + ": ...}" : "{}";
|
|
2341
|
-
error('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />', beforeExample, componentName, afterExample, componentName);
|
|
2342
|
-
didWarnAboutKeySpread[componentName + beforeExample] = true;
|
|
2343
|
-
}
|
|
2344
|
-
}
|
|
2345
|
-
}
|
|
2346
|
-
if (type === REACT_FRAGMENT_TYPE) {
|
|
2347
|
-
validateFragmentProps(element);
|
|
2348
|
-
} else {
|
|
2349
|
-
validatePropTypes(element);
|
|
2350
|
-
}
|
|
2351
|
-
return element;
|
|
2352
|
-
}
|
|
2353
|
-
}
|
|
2354
|
-
function jsxWithValidationStatic(type, props, key) {
|
|
2355
|
-
{
|
|
2356
|
-
return jsxWithValidation(type, props, key, true);
|
|
2357
|
-
}
|
|
2358
|
-
}
|
|
2359
|
-
function jsxWithValidationDynamic(type, props, key) {
|
|
2360
|
-
{
|
|
2361
|
-
return jsxWithValidation(type, props, key, false);
|
|
2362
|
-
}
|
|
1603
|
+
null !== (void 0 !== refProp ? refProp : null) ? Object.defineProperty(type, "ref", {
|
|
1604
|
+
enumerable: false,
|
|
1605
|
+
get: elementRefGetterWithDeprecationWarning
|
|
1606
|
+
}) : Object.defineProperty(type, "ref", { enumerable: false, value: null });
|
|
1607
|
+
type._store = {};
|
|
1608
|
+
Object.defineProperty(type._store, "validated", {
|
|
1609
|
+
configurable: false,
|
|
1610
|
+
enumerable: false,
|
|
1611
|
+
writable: true,
|
|
1612
|
+
value: 0
|
|
1613
|
+
});
|
|
1614
|
+
Object.defineProperty(type, "_debugInfo", {
|
|
1615
|
+
configurable: false,
|
|
1616
|
+
enumerable: false,
|
|
1617
|
+
writable: true,
|
|
1618
|
+
value: null
|
|
1619
|
+
});
|
|
1620
|
+
Object.defineProperty(type, "_debugStack", {
|
|
1621
|
+
configurable: false,
|
|
1622
|
+
enumerable: false,
|
|
1623
|
+
writable: true,
|
|
1624
|
+
value: debugStack
|
|
1625
|
+
});
|
|
1626
|
+
Object.defineProperty(type, "_debugTask", {
|
|
1627
|
+
configurable: false,
|
|
1628
|
+
enumerable: false,
|
|
1629
|
+
writable: true,
|
|
1630
|
+
value: debugTask
|
|
1631
|
+
});
|
|
1632
|
+
Object.freeze && (Object.freeze(type.props), Object.freeze(type));
|
|
1633
|
+
return type;
|
|
1634
|
+
}
|
|
1635
|
+
function jsxDEVImpl(type, config, maybeKey, isStaticChildren, debugStack, debugTask) {
|
|
1636
|
+
var children = config.children;
|
|
1637
|
+
if (void 0 !== children)
|
|
1638
|
+
if (isStaticChildren)
|
|
1639
|
+
if (isArrayImpl(children)) {
|
|
1640
|
+
for (isStaticChildren = 0; isStaticChildren < children.length; isStaticChildren++)
|
|
1641
|
+
validateChildKeys(children[isStaticChildren]);
|
|
1642
|
+
Object.freeze && Object.freeze(children);
|
|
1643
|
+
} else
|
|
1644
|
+
console.error(
|
|
1645
|
+
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
1646
|
+
);
|
|
1647
|
+
else
|
|
1648
|
+
validateChildKeys(children);
|
|
1649
|
+
if (hasOwnProperty.call(config, "key")) {
|
|
1650
|
+
children = getComponentNameFromType(type);
|
|
1651
|
+
var keys = Object.keys(config).filter(function(k) {
|
|
1652
|
+
return "key" !== k;
|
|
1653
|
+
});
|
|
1654
|
+
isStaticChildren = 0 < keys.length ? "{key: someKey, " + keys.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
1655
|
+
didWarnAboutKeySpread[children + isStaticChildren] || (keys = 0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
1656
|
+
'A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',
|
|
1657
|
+
isStaticChildren,
|
|
1658
|
+
children,
|
|
1659
|
+
keys,
|
|
1660
|
+
children
|
|
1661
|
+
), didWarnAboutKeySpread[children + isStaticChildren] = true);
|
|
1662
|
+
}
|
|
1663
|
+
children = null;
|
|
1664
|
+
void 0 !== maybeKey && (checkKeyStringCoercion(maybeKey), children = "" + maybeKey);
|
|
1665
|
+
hasValidKey(config) && (checkKeyStringCoercion(config.key), children = "" + config.key);
|
|
1666
|
+
if ("key" in config) {
|
|
1667
|
+
maybeKey = {};
|
|
1668
|
+
for (var propName in config)
|
|
1669
|
+
"key" !== propName && (maybeKey[propName] = config[propName]);
|
|
1670
|
+
} else
|
|
1671
|
+
maybeKey = config;
|
|
1672
|
+
children && defineKeyPropWarningGetter(
|
|
1673
|
+
maybeKey,
|
|
1674
|
+
"function" === typeof type ? type.displayName || type.name || "Unknown" : type
|
|
1675
|
+
);
|
|
1676
|
+
return ReactElement(
|
|
1677
|
+
type,
|
|
1678
|
+
children,
|
|
1679
|
+
maybeKey,
|
|
1680
|
+
getOwner(),
|
|
1681
|
+
debugStack,
|
|
1682
|
+
debugTask
|
|
1683
|
+
);
|
|
1684
|
+
}
|
|
1685
|
+
function validateChildKeys(node) {
|
|
1686
|
+
isValidElement(node) ? node._store && (node._store.validated = 1) : "object" === typeof node && null !== node && node.$$typeof === REACT_LAZY_TYPE && ("fulfilled" === node._payload.status ? isValidElement(node._payload.value) && node._payload.value._store && (node._payload.value._store.validated = 1) : node._store && (node._store.validated = 1));
|
|
1687
|
+
}
|
|
1688
|
+
function isValidElement(object) {
|
|
1689
|
+
return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
1690
|
+
}
|
|
1691
|
+
var React = require$$0, REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = Symbol.for("react.activity"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, hasOwnProperty = Object.prototype.hasOwnProperty, isArrayImpl = Array.isArray, createTask = console.createTask ? console.createTask : function() {
|
|
1692
|
+
return null;
|
|
1693
|
+
};
|
|
1694
|
+
React = {
|
|
1695
|
+
react_stack_bottom_frame: function(callStackForError) {
|
|
1696
|
+
return callStackForError();
|
|
2363
1697
|
}
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
1698
|
+
};
|
|
1699
|
+
var specialPropKeyWarningShown;
|
|
1700
|
+
var didWarnAboutElementRef = {};
|
|
1701
|
+
var unknownOwnerDebugStack = React.react_stack_bottom_frame.bind(
|
|
1702
|
+
React,
|
|
1703
|
+
UnknownOwner
|
|
1704
|
+
)();
|
|
1705
|
+
var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
|
|
1706
|
+
var didWarnAboutKeySpread = {};
|
|
1707
|
+
reactJsxRuntime_development.Fragment = REACT_FRAGMENT_TYPE;
|
|
1708
|
+
reactJsxRuntime_development.jsx = function(type, config, maybeKey) {
|
|
1709
|
+
var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
|
1710
|
+
return jsxDEVImpl(
|
|
1711
|
+
type,
|
|
1712
|
+
config,
|
|
1713
|
+
maybeKey,
|
|
1714
|
+
false,
|
|
1715
|
+
trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
|
|
1716
|
+
trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
|
|
1717
|
+
);
|
|
1718
|
+
};
|
|
1719
|
+
reactJsxRuntime_development.jsxs = function(type, config, maybeKey) {
|
|
1720
|
+
var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
|
1721
|
+
return jsxDEVImpl(
|
|
1722
|
+
type,
|
|
1723
|
+
config,
|
|
1724
|
+
maybeKey,
|
|
1725
|
+
true,
|
|
1726
|
+
trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
|
|
1727
|
+
trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
|
|
1728
|
+
);
|
|
1729
|
+
};
|
|
1730
|
+
}();
|
|
2371
1731
|
return reactJsxRuntime_development;
|
|
2372
1732
|
}
|
|
2373
1733
|
var hasRequiredJsxRuntime;
|
|
@@ -2376,7 +1736,7 @@ function requireJsxRuntime() {
|
|
|
2376
1736
|
return jsxRuntime.exports;
|
|
2377
1737
|
hasRequiredJsxRuntime = 1;
|
|
2378
1738
|
if (process.env.NODE_ENV === "production") {
|
|
2379
|
-
jsxRuntime.exports =
|
|
1739
|
+
jsxRuntime.exports = requireReactJsxRuntime_production();
|
|
2380
1740
|
} else {
|
|
2381
1741
|
jsxRuntime.exports = requireReactJsxRuntime_development();
|
|
2382
1742
|
}
|
|
@@ -2442,64 +1802,50 @@ function requireTypes() {
|
|
|
2442
1802
|
});
|
|
2443
1803
|
});
|
|
2444
1804
|
var _process$env$NEXTAUTH, _ref, _process$env$NEXTAUTH2, _process$env$NEXTAUTH3, _React$createContext;
|
|
2445
|
-
function _getRequireWildcardCache(
|
|
2446
|
-
if (typeof WeakMap
|
|
1805
|
+
function _getRequireWildcardCache(e) {
|
|
1806
|
+
if ("function" != typeof WeakMap)
|
|
2447
1807
|
return null;
|
|
2448
|
-
var
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
})(nodeInterop);
|
|
1808
|
+
var r = /* @__PURE__ */ new WeakMap(), t = /* @__PURE__ */ new WeakMap();
|
|
1809
|
+
return (_getRequireWildcardCache = function _getRequireWildcardCache2(e2) {
|
|
1810
|
+
return e2 ? t : r;
|
|
1811
|
+
})(e);
|
|
2453
1812
|
}
|
|
2454
|
-
function _interopRequireWildcard(
|
|
2455
|
-
if (!
|
|
2456
|
-
return
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
2470
|
-
if (desc && (desc.get || desc.set)) {
|
|
2471
|
-
Object.defineProperty(newObj, key, desc);
|
|
2472
|
-
} else {
|
|
2473
|
-
newObj[key] = obj[key];
|
|
2474
|
-
}
|
|
2475
|
-
}
|
|
2476
|
-
}
|
|
2477
|
-
newObj.default = obj;
|
|
2478
|
-
if (cache) {
|
|
2479
|
-
cache.set(obj, newObj);
|
|
2480
|
-
}
|
|
2481
|
-
return newObj;
|
|
1813
|
+
function _interopRequireWildcard(e, r) {
|
|
1814
|
+
if (!r && e && e.__esModule)
|
|
1815
|
+
return e;
|
|
1816
|
+
if (null === e || "object" != _typeof2(e) && "function" != typeof e)
|
|
1817
|
+
return { default: e };
|
|
1818
|
+
var t = _getRequireWildcardCache(r);
|
|
1819
|
+
if (t && t.has(e))
|
|
1820
|
+
return t.get(e);
|
|
1821
|
+
var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
1822
|
+
for (var u in e)
|
|
1823
|
+
if ("default" !== u && {}.hasOwnProperty.call(e, u)) {
|
|
1824
|
+
var i = a ? Object.getOwnPropertyDescriptor(e, u) : null;
|
|
1825
|
+
i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u];
|
|
1826
|
+
}
|
|
1827
|
+
return n.default = e, t && t.set(e, n), n;
|
|
2482
1828
|
}
|
|
2483
|
-
function ownKeys(
|
|
2484
|
-
var
|
|
1829
|
+
function ownKeys(e, r) {
|
|
1830
|
+
var t = Object.keys(e);
|
|
2485
1831
|
if (Object.getOwnPropertySymbols) {
|
|
2486
|
-
var
|
|
2487
|
-
|
|
2488
|
-
return Object.getOwnPropertyDescriptor(
|
|
2489
|
-
})),
|
|
1832
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
1833
|
+
r && (o = o.filter(function(r2) {
|
|
1834
|
+
return Object.getOwnPropertyDescriptor(e, r2).enumerable;
|
|
1835
|
+
})), t.push.apply(t, o);
|
|
2490
1836
|
}
|
|
2491
|
-
return
|
|
1837
|
+
return t;
|
|
2492
1838
|
}
|
|
2493
|
-
function _objectSpread(
|
|
2494
|
-
for (var
|
|
2495
|
-
var
|
|
2496
|
-
|
|
2497
|
-
(0, _defineProperty2.default)(
|
|
2498
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(
|
|
2499
|
-
Object.defineProperty(
|
|
1839
|
+
function _objectSpread(e) {
|
|
1840
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
1841
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
1842
|
+
r % 2 ? ownKeys(Object(t), true).forEach(function(r2) {
|
|
1843
|
+
(0, _defineProperty2.default)(e, r2, t[r2]);
|
|
1844
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r2) {
|
|
1845
|
+
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
2500
1846
|
});
|
|
2501
1847
|
}
|
|
2502
|
-
return
|
|
1848
|
+
return e;
|
|
2503
1849
|
}
|
|
2504
1850
|
var __NEXTAUTH = {
|
|
2505
1851
|
baseUrl: (0, _parseUrl.default)((_process$env$NEXTAUTH = process.env.NEXTAUTH_URL) !== null && _process$env$NEXTAUTH !== void 0 ? _process$env$NEXTAUTH : process.env.VERCEL_URL).origin,
|
|
@@ -2531,8 +1877,7 @@ function requireTypes() {
|
|
|
2531
1877
|
}, []);
|
|
2532
1878
|
return isOnline;
|
|
2533
1879
|
}
|
|
2534
|
-
var SessionContext = (_React$createContext = React.createContext) === null || _React$createContext === void 0 ? void 0 : _React$createContext.call(React, void 0);
|
|
2535
|
-
exports.SessionContext = SessionContext;
|
|
1880
|
+
var SessionContext = exports.SessionContext = (_React$createContext = React.createContext) === null || _React$createContext === void 0 ? void 0 : _React$createContext.call(React, void 0);
|
|
2536
1881
|
function useSession(options) {
|
|
2537
1882
|
if (!SessionContext) {
|
|
2538
1883
|
throw new Error("React Context is unavailable in Server Components");
|
|
@@ -2572,7 +1917,7 @@ function requireTypes() {
|
|
|
2572
1917
|
var _params$broadcast;
|
|
2573
1918
|
var session;
|
|
2574
1919
|
return _regenerator.default.wrap(function _callee3$(_context3) {
|
|
2575
|
-
while (1)
|
|
1920
|
+
while (1)
|
|
2576
1921
|
switch (_context3.prev = _context3.next) {
|
|
2577
1922
|
case 0:
|
|
2578
1923
|
_context3.next = 2;
|
|
@@ -2592,7 +1937,6 @@ function requireTypes() {
|
|
|
2592
1937
|
case "end":
|
|
2593
1938
|
return _context3.stop();
|
|
2594
1939
|
}
|
|
2595
|
-
}
|
|
2596
1940
|
}, _callee3);
|
|
2597
1941
|
}));
|
|
2598
1942
|
return _getSession2.apply(this, arguments);
|
|
@@ -2604,7 +1948,7 @@ function requireTypes() {
|
|
|
2604
1948
|
_getCsrfToken = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee4(params) {
|
|
2605
1949
|
var response;
|
|
2606
1950
|
return _regenerator.default.wrap(function _callee4$(_context4) {
|
|
2607
|
-
while (1)
|
|
1951
|
+
while (1)
|
|
2608
1952
|
switch (_context4.prev = _context4.next) {
|
|
2609
1953
|
case 0:
|
|
2610
1954
|
_context4.next = 2;
|
|
@@ -2616,7 +1960,6 @@ function requireTypes() {
|
|
|
2616
1960
|
case "end":
|
|
2617
1961
|
return _context4.stop();
|
|
2618
1962
|
}
|
|
2619
|
-
}
|
|
2620
1963
|
}, _callee4);
|
|
2621
1964
|
}));
|
|
2622
1965
|
return _getCsrfToken.apply(this, arguments);
|
|
@@ -2627,7 +1970,7 @@ function requireTypes() {
|
|
|
2627
1970
|
function _getProviders() {
|
|
2628
1971
|
_getProviders = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee5() {
|
|
2629
1972
|
return _regenerator.default.wrap(function _callee5$(_context5) {
|
|
2630
|
-
while (1)
|
|
1973
|
+
while (1)
|
|
2631
1974
|
switch (_context5.prev = _context5.next) {
|
|
2632
1975
|
case 0:
|
|
2633
1976
|
_context5.next = 2;
|
|
@@ -2638,7 +1981,6 @@ function requireTypes() {
|
|
|
2638
1981
|
case "end":
|
|
2639
1982
|
return _context5.stop();
|
|
2640
1983
|
}
|
|
2641
|
-
}
|
|
2642
1984
|
}, _callee5);
|
|
2643
1985
|
}));
|
|
2644
1986
|
return _getProviders.apply(this, arguments);
|
|
@@ -2650,7 +1992,7 @@ function requireTypes() {
|
|
|
2650
1992
|
_signIn = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee6(provider, options, authorizationParams) {
|
|
2651
1993
|
var _ref5, _ref5$callbackUrl, callbackUrl, _ref5$redirect, redirect, baseUrl, providers, isCredentials, isEmail, isSupportingReturn, signInUrl, _signInUrl, res, data, _data$url, url, error;
|
|
2652
1994
|
return _regenerator.default.wrap(function _callee6$(_context6) {
|
|
2653
|
-
while (1)
|
|
1995
|
+
while (1)
|
|
2654
1996
|
switch (_context6.prev = _context6.next) {
|
|
2655
1997
|
case 0:
|
|
2656
1998
|
_ref5 = options !== null && options !== void 0 ? options : {}, _ref5$callbackUrl = _ref5.callbackUrl, callbackUrl = _ref5$callbackUrl === void 0 ? window.location.href : _ref5$callbackUrl, _ref5$redirect = _ref5.redirect, redirect = _ref5$redirect === void 0 ? true : _ref5$redirect;
|
|
@@ -2744,7 +2086,6 @@ function requireTypes() {
|
|
|
2744
2086
|
case "end":
|
|
2745
2087
|
return _context6.stop();
|
|
2746
2088
|
}
|
|
2747
|
-
}
|
|
2748
2089
|
}, _callee6);
|
|
2749
2090
|
}));
|
|
2750
2091
|
return _signIn.apply(this, arguments);
|
|
@@ -2757,7 +2098,7 @@ function requireTypes() {
|
|
|
2757
2098
|
var _options$redirect;
|
|
2758
2099
|
var _ref6, _ref6$callbackUrl, callbackUrl, baseUrl, fetchOptions, res, data, _data$url2, url;
|
|
2759
2100
|
return _regenerator.default.wrap(function _callee7$(_context7) {
|
|
2760
|
-
while (1)
|
|
2101
|
+
while (1)
|
|
2761
2102
|
switch (_context7.prev = _context7.next) {
|
|
2762
2103
|
case 0:
|
|
2763
2104
|
_ref6 = options !== null && options !== void 0 ? options : {}, _ref6$callbackUrl = _ref6.callbackUrl, callbackUrl = _ref6$callbackUrl === void 0 ? window.location.href : _ref6$callbackUrl;
|
|
@@ -2816,7 +2157,6 @@ function requireTypes() {
|
|
|
2816
2157
|
case "end":
|
|
2817
2158
|
return _context7.stop();
|
|
2818
2159
|
}
|
|
2819
|
-
}
|
|
2820
2160
|
}, _callee7);
|
|
2821
2161
|
}));
|
|
2822
2162
|
return _signOut.apply(this, arguments);
|
|
@@ -2840,7 +2180,7 @@ function requireTypes() {
|
|
|
2840
2180
|
__NEXTAUTH._getSession = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee() {
|
|
2841
2181
|
var _ref4, event, storageEvent, _args = arguments;
|
|
2842
2182
|
return _regenerator.default.wrap(function _callee$(_context) {
|
|
2843
|
-
while (1)
|
|
2183
|
+
while (1)
|
|
2844
2184
|
switch (_context.prev = _context.next) {
|
|
2845
2185
|
case 0:
|
|
2846
2186
|
_ref4 = _args.length > 0 && _args[0] !== void 0 ? _args[0] : {}, event = _ref4.event;
|
|
@@ -2886,7 +2226,6 @@ function requireTypes() {
|
|
|
2886
2226
|
case "end":
|
|
2887
2227
|
return _context.stop();
|
|
2888
2228
|
}
|
|
2889
|
-
}
|
|
2890
2229
|
}, _callee, null, [[1, 19, 22, 25]]);
|
|
2891
2230
|
}));
|
|
2892
2231
|
__NEXTAUTH._getSession();
|
|
@@ -2944,7 +2283,7 @@ function requireTypes() {
|
|
|
2944
2283
|
return (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee2() {
|
|
2945
2284
|
var newSession;
|
|
2946
2285
|
return _regenerator.default.wrap(function _callee2$(_context2) {
|
|
2947
|
-
while (1)
|
|
2286
|
+
while (1)
|
|
2948
2287
|
switch (_context2.prev = _context2.next) {
|
|
2949
2288
|
case 0:
|
|
2950
2289
|
if (!(loading || !session)) {
|
|
@@ -2991,7 +2330,6 @@ function requireTypes() {
|
|
|
2991
2330
|
case "end":
|
|
2992
2331
|
return _context2.stop();
|
|
2993
2332
|
}
|
|
2994
|
-
}
|
|
2995
2333
|
}, _callee2);
|
|
2996
2334
|
}))();
|
|
2997
2335
|
}
|