@daryasidorovich/modsen-datepicker 1.0.7 → 1.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1,12 +1,5 @@
1
1
  'use strict';
2
2
 
3
- var Delete = require('@assets/actions/Delete.svg?react');
4
- var Edit = require('@assets/actions/Edit.svg?react');
5
- var Calendar = require('@assets/input/Calendar.svg?react');
6
- var Clear$1 = require('@assets/input/Clear.svg?react');
7
- var Next = require('@assets/arrows/Next.svg?react');
8
- var Prev = require('@assets/arrows/Prev.svg?react');
9
-
10
3
  const FIRST_DAY_OF_WEEK = {
11
4
  MONDAY: 1,
12
5
  SUNDAY: 0,
@@ -66,7 +59,19 @@ function requireReactJsxRuntime_production () {
66
59
  return reactJsxRuntime_production;
67
60
  }
68
61
 
69
- var reactJsxRuntime_development = {};
62
+ var hasRequiredJsxRuntime;
63
+
64
+ function requireJsxRuntime () {
65
+ if (hasRequiredJsxRuntime) return jsxRuntime.exports;
66
+ hasRequiredJsxRuntime = 1;
67
+
68
+ {
69
+ jsxRuntime.exports = requireReactJsxRuntime_production();
70
+ }
71
+ return jsxRuntime.exports;
72
+ }
73
+
74
+ var jsxRuntimeExports = requireJsxRuntime();
70
75
 
71
76
  var react = {exports: {}};
72
77
 
@@ -621,1691 +626,18 @@ function requireReact_production () {
621
626
  return react_production;
622
627
  }
623
628
 
624
- var react_development = {exports: {}};
625
-
626
- /**
627
- * @license React
628
- * react.development.js
629
- *
630
- * Copyright (c) Meta Platforms, Inc. and affiliates.
631
- *
632
- * This source code is licensed under the MIT license found in the
633
- * LICENSE file in the root directory of this source tree.
634
- */
635
- react_development.exports;
636
-
637
- var hasRequiredReact_development;
638
-
639
- function requireReact_development () {
640
- if (hasRequiredReact_development) return react_development.exports;
641
- hasRequiredReact_development = 1;
642
- (function (module, exports) {
643
- "production" !== process.env.NODE_ENV &&
644
- (function () {
645
- function defineDeprecationWarning(methodName, info) {
646
- Object.defineProperty(Component.prototype, methodName, {
647
- get: function () {
648
- console.warn(
649
- "%s(...) is deprecated in plain JavaScript React classes. %s",
650
- info[0],
651
- info[1]
652
- );
653
- }
654
- });
655
- }
656
- function getIteratorFn(maybeIterable) {
657
- if (null === maybeIterable || "object" !== typeof maybeIterable)
658
- return null;
659
- maybeIterable =
660
- (MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) ||
661
- maybeIterable["@@iterator"];
662
- return "function" === typeof maybeIterable ? maybeIterable : null;
663
- }
664
- function warnNoop(publicInstance, callerName) {
665
- publicInstance =
666
- ((publicInstance = publicInstance.constructor) &&
667
- (publicInstance.displayName || publicInstance.name)) ||
668
- "ReactClass";
669
- var warningKey = publicInstance + "." + callerName;
670
- didWarnStateUpdateForUnmountedComponent[warningKey] ||
671
- (console.error(
672
- "Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",
673
- callerName,
674
- publicInstance
675
- ),
676
- (didWarnStateUpdateForUnmountedComponent[warningKey] = true));
677
- }
678
- function Component(props, context, updater) {
679
- this.props = props;
680
- this.context = context;
681
- this.refs = emptyObject;
682
- this.updater = updater || ReactNoopUpdateQueue;
683
- }
684
- function ComponentDummy() {}
685
- function PureComponent(props, context, updater) {
686
- this.props = props;
687
- this.context = context;
688
- this.refs = emptyObject;
689
- this.updater = updater || ReactNoopUpdateQueue;
690
- }
691
- function noop() {}
692
- function testStringCoercion(value) {
693
- return "" + value;
694
- }
695
- function checkKeyStringCoercion(value) {
696
- try {
697
- testStringCoercion(value);
698
- var JSCompiler_inline_result = !1;
699
- } catch (e) {
700
- JSCompiler_inline_result = true;
701
- }
702
- if (JSCompiler_inline_result) {
703
- JSCompiler_inline_result = console;
704
- var JSCompiler_temp_const = JSCompiler_inline_result.error;
705
- var JSCompiler_inline_result$jscomp$0 =
706
- ("function" === typeof Symbol &&
707
- Symbol.toStringTag &&
708
- value[Symbol.toStringTag]) ||
709
- value.constructor.name ||
710
- "Object";
711
- JSCompiler_temp_const.call(
712
- JSCompiler_inline_result,
713
- "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
714
- JSCompiler_inline_result$jscomp$0
715
- );
716
- return testStringCoercion(value);
717
- }
718
- }
719
- function getComponentNameFromType(type) {
720
- if (null == type) return null;
721
- if ("function" === typeof type)
722
- return type.$$typeof === REACT_CLIENT_REFERENCE
723
- ? null
724
- : type.displayName || type.name || null;
725
- if ("string" === typeof type) return type;
726
- switch (type) {
727
- case REACT_FRAGMENT_TYPE:
728
- return "Fragment";
729
- case REACT_PROFILER_TYPE:
730
- return "Profiler";
731
- case REACT_STRICT_MODE_TYPE:
732
- return "StrictMode";
733
- case REACT_SUSPENSE_TYPE:
734
- return "Suspense";
735
- case REACT_SUSPENSE_LIST_TYPE:
736
- return "SuspenseList";
737
- case REACT_ACTIVITY_TYPE:
738
- return "Activity";
739
- }
740
- if ("object" === typeof type)
741
- switch (
742
- ("number" === typeof type.tag &&
743
- console.error(
744
- "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
745
- ),
746
- type.$$typeof)
747
- ) {
748
- case REACT_PORTAL_TYPE:
749
- return "Portal";
750
- case REACT_CONTEXT_TYPE:
751
- return type.displayName || "Context";
752
- case REACT_CONSUMER_TYPE:
753
- return (type._context.displayName || "Context") + ".Consumer";
754
- case REACT_FORWARD_REF_TYPE:
755
- var innerType = type.render;
756
- type = type.displayName;
757
- type ||
758
- ((type = innerType.displayName || innerType.name || ""),
759
- (type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef"));
760
- return type;
761
- case REACT_MEMO_TYPE:
762
- return (
763
- (innerType = type.displayName || null),
764
- null !== innerType
765
- ? innerType
766
- : getComponentNameFromType(type.type) || "Memo"
767
- );
768
- case REACT_LAZY_TYPE:
769
- innerType = type._payload;
770
- type = type._init;
771
- try {
772
- return getComponentNameFromType(type(innerType));
773
- } catch (x) {}
774
- }
775
- return null;
776
- }
777
- function getTaskName(type) {
778
- if (type === REACT_FRAGMENT_TYPE) return "<>";
779
- if (
780
- "object" === typeof type &&
781
- null !== type &&
782
- type.$$typeof === REACT_LAZY_TYPE
783
- )
784
- return "<...>";
785
- try {
786
- var name = getComponentNameFromType(type);
787
- return name ? "<" + name + ">" : "<...>";
788
- } catch (x) {
789
- return "<...>";
790
- }
791
- }
792
- function getOwner() {
793
- var dispatcher = ReactSharedInternals.A;
794
- return null === dispatcher ? null : dispatcher.getOwner();
795
- }
796
- function UnknownOwner() {
797
- return Error("react-stack-top-frame");
798
- }
799
- function hasValidKey(config) {
800
- if (hasOwnProperty.call(config, "key")) {
801
- var getter = Object.getOwnPropertyDescriptor(config, "key").get;
802
- if (getter && getter.isReactWarning) return false;
803
- }
804
- return void 0 !== config.key;
805
- }
806
- function defineKeyPropWarningGetter(props, displayName) {
807
- function warnAboutAccessingKey() {
808
- specialPropKeyWarningShown ||
809
- ((specialPropKeyWarningShown = true),
810
- console.error(
811
- "%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)",
812
- displayName
813
- ));
814
- }
815
- warnAboutAccessingKey.isReactWarning = true;
816
- Object.defineProperty(props, "key", {
817
- get: warnAboutAccessingKey,
818
- configurable: true
819
- });
820
- }
821
- function elementRefGetterWithDeprecationWarning() {
822
- var componentName = getComponentNameFromType(this.type);
823
- didWarnAboutElementRef[componentName] ||
824
- ((didWarnAboutElementRef[componentName] = true),
825
- console.error(
826
- "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."
827
- ));
828
- componentName = this.props.ref;
829
- return void 0 !== componentName ? componentName : null;
830
- }
831
- function ReactElement(type, key, props, owner, debugStack, debugTask) {
832
- var refProp = props.ref;
833
- type = {
834
- $$typeof: REACT_ELEMENT_TYPE,
835
- type: type,
836
- key: key,
837
- props: props,
838
- _owner: owner
839
- };
840
- null !== (void 0 !== refProp ? refProp : null)
841
- ? Object.defineProperty(type, "ref", {
842
- enumerable: false,
843
- get: elementRefGetterWithDeprecationWarning
844
- })
845
- : Object.defineProperty(type, "ref", { enumerable: false, value: null });
846
- type._store = {};
847
- Object.defineProperty(type._store, "validated", {
848
- configurable: false,
849
- enumerable: false,
850
- writable: true,
851
- value: 0
852
- });
853
- Object.defineProperty(type, "_debugInfo", {
854
- configurable: false,
855
- enumerable: false,
856
- writable: true,
857
- value: null
858
- });
859
- Object.defineProperty(type, "_debugStack", {
860
- configurable: false,
861
- enumerable: false,
862
- writable: true,
863
- value: debugStack
864
- });
865
- Object.defineProperty(type, "_debugTask", {
866
- configurable: false,
867
- enumerable: false,
868
- writable: true,
869
- value: debugTask
870
- });
871
- Object.freeze && (Object.freeze(type.props), Object.freeze(type));
872
- return type;
873
- }
874
- function cloneAndReplaceKey(oldElement, newKey) {
875
- newKey = ReactElement(
876
- oldElement.type,
877
- newKey,
878
- oldElement.props,
879
- oldElement._owner,
880
- oldElement._debugStack,
881
- oldElement._debugTask
882
- );
883
- oldElement._store &&
884
- (newKey._store.validated = oldElement._store.validated);
885
- return newKey;
886
- }
887
- function validateChildKeys(node) {
888
- isValidElement(node)
889
- ? node._store && (node._store.validated = 1)
890
- : "object" === typeof node &&
891
- null !== node &&
892
- node.$$typeof === REACT_LAZY_TYPE &&
893
- ("fulfilled" === node._payload.status
894
- ? isValidElement(node._payload.value) &&
895
- node._payload.value._store &&
896
- (node._payload.value._store.validated = 1)
897
- : node._store && (node._store.validated = 1));
898
- }
899
- function isValidElement(object) {
900
- return (
901
- "object" === typeof object &&
902
- null !== object &&
903
- object.$$typeof === REACT_ELEMENT_TYPE
904
- );
905
- }
906
- function escape(key) {
907
- var escaperLookup = { "=": "=0", ":": "=2" };
908
- return (
909
- "$" +
910
- key.replace(/[=:]/g, function (match) {
911
- return escaperLookup[match];
912
- })
913
- );
914
- }
915
- function getElementKey(element, index) {
916
- return "object" === typeof element &&
917
- null !== element &&
918
- null != element.key
919
- ? (checkKeyStringCoercion(element.key), escape("" + element.key))
920
- : index.toString(36);
921
- }
922
- function resolveThenable(thenable) {
923
- switch (thenable.status) {
924
- case "fulfilled":
925
- return thenable.value;
926
- case "rejected":
927
- throw thenable.reason;
928
- default:
929
- switch (
930
- ("string" === typeof thenable.status
931
- ? thenable.then(noop, noop)
932
- : ((thenable.status = "pending"),
933
- thenable.then(
934
- function (fulfilledValue) {
935
- "pending" === thenable.status &&
936
- ((thenable.status = "fulfilled"),
937
- (thenable.value = fulfilledValue));
938
- },
939
- function (error) {
940
- "pending" === thenable.status &&
941
- ((thenable.status = "rejected"),
942
- (thenable.reason = error));
943
- }
944
- )),
945
- thenable.status)
946
- ) {
947
- case "fulfilled":
948
- return thenable.value;
949
- case "rejected":
950
- throw thenable.reason;
951
- }
952
- }
953
- throw thenable;
954
- }
955
- function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
956
- var type = typeof children;
957
- if ("undefined" === type || "boolean" === type) children = null;
958
- var invokeCallback = false;
959
- if (null === children) invokeCallback = true;
960
- else
961
- switch (type) {
962
- case "bigint":
963
- case "string":
964
- case "number":
965
- invokeCallback = true;
966
- break;
967
- case "object":
968
- switch (children.$$typeof) {
969
- case REACT_ELEMENT_TYPE:
970
- case REACT_PORTAL_TYPE:
971
- invokeCallback = true;
972
- break;
973
- case REACT_LAZY_TYPE:
974
- return (
975
- (invokeCallback = children._init),
976
- mapIntoArray(
977
- invokeCallback(children._payload),
978
- array,
979
- escapedPrefix,
980
- nameSoFar,
981
- callback
982
- )
983
- );
984
- }
985
- }
986
- if (invokeCallback) {
987
- invokeCallback = children;
988
- callback = callback(invokeCallback);
989
- var childKey =
990
- "" === nameSoFar ? "." + getElementKey(invokeCallback, 0) : nameSoFar;
991
- isArrayImpl(callback)
992
- ? ((escapedPrefix = ""),
993
- null != childKey &&
994
- (escapedPrefix =
995
- childKey.replace(userProvidedKeyEscapeRegex, "$&/") + "/"),
996
- mapIntoArray(callback, array, escapedPrefix, "", function (c) {
997
- return c;
998
- }))
999
- : null != callback &&
1000
- (isValidElement(callback) &&
1001
- (null != callback.key &&
1002
- ((invokeCallback && invokeCallback.key === callback.key) ||
1003
- checkKeyStringCoercion(callback.key)),
1004
- (escapedPrefix = cloneAndReplaceKey(
1005
- callback,
1006
- escapedPrefix +
1007
- (null == callback.key ||
1008
- (invokeCallback && invokeCallback.key === callback.key)
1009
- ? ""
1010
- : ("" + callback.key).replace(
1011
- userProvidedKeyEscapeRegex,
1012
- "$&/"
1013
- ) + "/") +
1014
- childKey
1015
- )),
1016
- "" !== nameSoFar &&
1017
- null != invokeCallback &&
1018
- isValidElement(invokeCallback) &&
1019
- null == invokeCallback.key &&
1020
- invokeCallback._store &&
1021
- !invokeCallback._store.validated &&
1022
- (escapedPrefix._store.validated = 2),
1023
- (callback = escapedPrefix)),
1024
- array.push(callback));
1025
- return 1;
1026
- }
1027
- invokeCallback = 0;
1028
- childKey = "" === nameSoFar ? "." : nameSoFar + ":";
1029
- if (isArrayImpl(children))
1030
- for (var i = 0; i < children.length; i++)
1031
- (nameSoFar = children[i]),
1032
- (type = childKey + getElementKey(nameSoFar, i)),
1033
- (invokeCallback += mapIntoArray(
1034
- nameSoFar,
1035
- array,
1036
- escapedPrefix,
1037
- type,
1038
- callback
1039
- ));
1040
- else if (((i = getIteratorFn(children)), "function" === typeof i))
1041
- for (
1042
- i === children.entries &&
1043
- (didWarnAboutMaps ||
1044
- console.warn(
1045
- "Using Maps as children is not supported. Use an array of keyed ReactElements instead."
1046
- ),
1047
- (didWarnAboutMaps = true)),
1048
- children = i.call(children),
1049
- i = 0;
1050
- !(nameSoFar = children.next()).done;
1051
-
1052
- )
1053
- (nameSoFar = nameSoFar.value),
1054
- (type = childKey + getElementKey(nameSoFar, i++)),
1055
- (invokeCallback += mapIntoArray(
1056
- nameSoFar,
1057
- array,
1058
- escapedPrefix,
1059
- type,
1060
- callback
1061
- ));
1062
- else if ("object" === type) {
1063
- if ("function" === typeof children.then)
1064
- return mapIntoArray(
1065
- resolveThenable(children),
1066
- array,
1067
- escapedPrefix,
1068
- nameSoFar,
1069
- callback
1070
- );
1071
- array = String(children);
1072
- throw Error(
1073
- "Objects are not valid as a React child (found: " +
1074
- ("[object Object]" === array
1075
- ? "object with keys {" + Object.keys(children).join(", ") + "}"
1076
- : array) +
1077
- "). If you meant to render a collection of children, use an array instead."
1078
- );
1079
- }
1080
- return invokeCallback;
1081
- }
1082
- function mapChildren(children, func, context) {
1083
- if (null == children) return children;
1084
- var result = [],
1085
- count = 0;
1086
- mapIntoArray(children, result, "", "", function (child) {
1087
- return func.call(context, child, count++);
1088
- });
1089
- return result;
1090
- }
1091
- function lazyInitializer(payload) {
1092
- if (-1 === payload._status) {
1093
- var ioInfo = payload._ioInfo;
1094
- null != ioInfo && (ioInfo.start = ioInfo.end = performance.now());
1095
- ioInfo = payload._result;
1096
- var thenable = ioInfo();
1097
- thenable.then(
1098
- function (moduleObject) {
1099
- if (0 === payload._status || -1 === payload._status) {
1100
- payload._status = 1;
1101
- payload._result = moduleObject;
1102
- var _ioInfo = payload._ioInfo;
1103
- null != _ioInfo && (_ioInfo.end = performance.now());
1104
- void 0 === thenable.status &&
1105
- ((thenable.status = "fulfilled"),
1106
- (thenable.value = moduleObject));
1107
- }
1108
- },
1109
- function (error) {
1110
- if (0 === payload._status || -1 === payload._status) {
1111
- payload._status = 2;
1112
- payload._result = error;
1113
- var _ioInfo2 = payload._ioInfo;
1114
- null != _ioInfo2 && (_ioInfo2.end = performance.now());
1115
- void 0 === thenable.status &&
1116
- ((thenable.status = "rejected"), (thenable.reason = error));
1117
- }
1118
- }
1119
- );
1120
- ioInfo = payload._ioInfo;
1121
- if (null != ioInfo) {
1122
- ioInfo.value = thenable;
1123
- var displayName = thenable.displayName;
1124
- "string" === typeof displayName && (ioInfo.name = displayName);
1125
- }
1126
- -1 === payload._status &&
1127
- ((payload._status = 0), (payload._result = thenable));
1128
- }
1129
- if (1 === payload._status)
1130
- return (
1131
- (ioInfo = payload._result),
1132
- void 0 === ioInfo &&
1133
- console.error(
1134
- "lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?",
1135
- ioInfo
1136
- ),
1137
- "default" in ioInfo ||
1138
- console.error(
1139
- "lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",
1140
- ioInfo
1141
- ),
1142
- ioInfo.default
1143
- );
1144
- throw payload._result;
1145
- }
1146
- function resolveDispatcher() {
1147
- var dispatcher = ReactSharedInternals.H;
1148
- null === dispatcher &&
1149
- console.error(
1150
- "Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem."
1151
- );
1152
- return dispatcher;
1153
- }
1154
- function releaseAsyncTransition() {
1155
- ReactSharedInternals.asyncTransitions--;
1156
- }
1157
- function enqueueTask(task) {
1158
- if (null === enqueueTaskImpl)
1159
- try {
1160
- var requireString = ("require" + Math.random()).slice(0, 7);
1161
- enqueueTaskImpl = (module && module[requireString]).call(
1162
- module,
1163
- "timers"
1164
- ).setImmediate;
1165
- } catch (_err) {
1166
- enqueueTaskImpl = function (callback) {
1167
- false === didWarnAboutMessageChannel &&
1168
- ((didWarnAboutMessageChannel = true),
1169
- "undefined" === typeof MessageChannel &&
1170
- console.error(
1171
- "This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."
1172
- ));
1173
- var channel = new MessageChannel();
1174
- channel.port1.onmessage = callback;
1175
- channel.port2.postMessage(void 0);
1176
- };
1177
- }
1178
- return enqueueTaskImpl(task);
1179
- }
1180
- function aggregateErrors(errors) {
1181
- return 1 < errors.length && "function" === typeof AggregateError
1182
- ? new AggregateError(errors)
1183
- : errors[0];
1184
- }
1185
- function popActScope(prevActQueue, prevActScopeDepth) {
1186
- prevActScopeDepth !== actScopeDepth - 1 &&
1187
- console.error(
1188
- "You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "
1189
- );
1190
- actScopeDepth = prevActScopeDepth;
1191
- }
1192
- function recursivelyFlushAsyncActWork(returnValue, resolve, reject) {
1193
- var queue = ReactSharedInternals.actQueue;
1194
- if (null !== queue)
1195
- if (0 !== queue.length)
1196
- try {
1197
- flushActQueue(queue);
1198
- enqueueTask(function () {
1199
- return recursivelyFlushAsyncActWork(returnValue, resolve, reject);
1200
- });
1201
- return;
1202
- } catch (error) {
1203
- ReactSharedInternals.thrownErrors.push(error);
1204
- }
1205
- else ReactSharedInternals.actQueue = null;
1206
- 0 < ReactSharedInternals.thrownErrors.length
1207
- ? ((queue = aggregateErrors(ReactSharedInternals.thrownErrors)),
1208
- (ReactSharedInternals.thrownErrors.length = 0),
1209
- reject(queue))
1210
- : resolve(returnValue);
1211
- }
1212
- function flushActQueue(queue) {
1213
- if (!isFlushing) {
1214
- isFlushing = true;
1215
- var i = 0;
1216
- try {
1217
- for (; i < queue.length; i++) {
1218
- var callback = queue[i];
1219
- do {
1220
- ReactSharedInternals.didUsePromise = !1;
1221
- var continuation = callback(!1);
1222
- if (null !== continuation) {
1223
- if (ReactSharedInternals.didUsePromise) {
1224
- queue[i] = callback;
1225
- queue.splice(0, i);
1226
- return;
1227
- }
1228
- callback = continuation;
1229
- } else break;
1230
- } while (1);
1231
- }
1232
- queue.length = 0;
1233
- } catch (error) {
1234
- queue.splice(0, i + 1), ReactSharedInternals.thrownErrors.push(error);
1235
- } finally {
1236
- isFlushing = false;
1237
- }
1238
- }
1239
- }
1240
- "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
1241
- "function" ===
1242
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart &&
1243
- __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
1244
- var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
1245
- REACT_PORTAL_TYPE = Symbol.for("react.portal"),
1246
- REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
1247
- REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
1248
- REACT_PROFILER_TYPE = Symbol.for("react.profiler"),
1249
- REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
1250
- REACT_CONTEXT_TYPE = Symbol.for("react.context"),
1251
- REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
1252
- REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
1253
- REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"),
1254
- REACT_MEMO_TYPE = Symbol.for("react.memo"),
1255
- REACT_LAZY_TYPE = Symbol.for("react.lazy"),
1256
- REACT_ACTIVITY_TYPE = Symbol.for("react.activity"),
1257
- MAYBE_ITERATOR_SYMBOL = Symbol.iterator,
1258
- didWarnStateUpdateForUnmountedComponent = {},
1259
- ReactNoopUpdateQueue = {
1260
- isMounted: function () {
1261
- return false;
1262
- },
1263
- enqueueForceUpdate: function (publicInstance) {
1264
- warnNoop(publicInstance, "forceUpdate");
1265
- },
1266
- enqueueReplaceState: function (publicInstance) {
1267
- warnNoop(publicInstance, "replaceState");
1268
- },
1269
- enqueueSetState: function (publicInstance) {
1270
- warnNoop(publicInstance, "setState");
1271
- }
1272
- },
1273
- assign = Object.assign,
1274
- emptyObject = {};
1275
- Object.freeze(emptyObject);
1276
- Component.prototype.isReactComponent = {};
1277
- Component.prototype.setState = function (partialState, callback) {
1278
- if (
1279
- "object" !== typeof partialState &&
1280
- "function" !== typeof partialState &&
1281
- null != partialState
1282
- )
1283
- throw Error(
1284
- "takes an object of state variables to update or a function which returns an object of state variables."
1285
- );
1286
- this.updater.enqueueSetState(this, partialState, callback, "setState");
1287
- };
1288
- Component.prototype.forceUpdate = function (callback) {
1289
- this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
1290
- };
1291
- var deprecatedAPIs = {
1292
- isMounted: [
1293
- "isMounted",
1294
- "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."
1295
- ],
1296
- replaceState: [
1297
- "replaceState",
1298
- "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."
1299
- ]
1300
- };
1301
- for (fnName in deprecatedAPIs)
1302
- deprecatedAPIs.hasOwnProperty(fnName) &&
1303
- defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
1304
- ComponentDummy.prototype = Component.prototype;
1305
- deprecatedAPIs = PureComponent.prototype = new ComponentDummy();
1306
- deprecatedAPIs.constructor = PureComponent;
1307
- assign(deprecatedAPIs, Component.prototype);
1308
- deprecatedAPIs.isPureReactComponent = true;
1309
- var isArrayImpl = Array.isArray,
1310
- REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
1311
- ReactSharedInternals = {
1312
- H: null,
1313
- A: null,
1314
- T: null,
1315
- S: null,
1316
- actQueue: null,
1317
- asyncTransitions: 0,
1318
- isBatchingLegacy: false,
1319
- didScheduleLegacyUpdate: false,
1320
- didUsePromise: false,
1321
- thrownErrors: [],
1322
- getCurrentStack: null,
1323
- recentlyCreatedOwnerStacks: 0
1324
- },
1325
- hasOwnProperty = Object.prototype.hasOwnProperty,
1326
- createTask = console.createTask
1327
- ? console.createTask
1328
- : function () {
1329
- return null;
1330
- };
1331
- deprecatedAPIs = {
1332
- react_stack_bottom_frame: function (callStackForError) {
1333
- return callStackForError();
1334
- }
1335
- };
1336
- var specialPropKeyWarningShown, didWarnAboutOldJSXRuntime;
1337
- var didWarnAboutElementRef = {};
1338
- var unknownOwnerDebugStack = deprecatedAPIs.react_stack_bottom_frame.bind(
1339
- deprecatedAPIs,
1340
- UnknownOwner
1341
- )();
1342
- var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
1343
- var didWarnAboutMaps = false,
1344
- userProvidedKeyEscapeRegex = /\/+/g,
1345
- reportGlobalError =
1346
- "function" === typeof reportError
1347
- ? reportError
1348
- : function (error) {
1349
- if (
1350
- "object" === typeof window &&
1351
- "function" === typeof window.ErrorEvent
1352
- ) {
1353
- var event = new window.ErrorEvent("error", {
1354
- bubbles: true,
1355
- cancelable: true,
1356
- message:
1357
- "object" === typeof error &&
1358
- null !== error &&
1359
- "string" === typeof error.message
1360
- ? String(error.message)
1361
- : String(error),
1362
- error: error
1363
- });
1364
- if (!window.dispatchEvent(event)) return;
1365
- } else if (
1366
- "object" === typeof process &&
1367
- "function" === typeof process.emit
1368
- ) {
1369
- process.emit("uncaughtException", error);
1370
- return;
1371
- }
1372
- console.error(error);
1373
- },
1374
- didWarnAboutMessageChannel = false,
1375
- enqueueTaskImpl = null,
1376
- actScopeDepth = 0,
1377
- didWarnNoAwaitAct = false,
1378
- isFlushing = false,
1379
- queueSeveralMicrotasks =
1380
- "function" === typeof queueMicrotask
1381
- ? function (callback) {
1382
- queueMicrotask(function () {
1383
- return queueMicrotask(callback);
1384
- });
1385
- }
1386
- : enqueueTask;
1387
- deprecatedAPIs = Object.freeze({
1388
- __proto__: null,
1389
- c: function (size) {
1390
- return resolveDispatcher().useMemoCache(size);
1391
- }
1392
- });
1393
- var fnName = {
1394
- map: mapChildren,
1395
- forEach: function (children, forEachFunc, forEachContext) {
1396
- mapChildren(
1397
- children,
1398
- function () {
1399
- forEachFunc.apply(this, arguments);
1400
- },
1401
- forEachContext
1402
- );
1403
- },
1404
- count: function (children) {
1405
- var n = 0;
1406
- mapChildren(children, function () {
1407
- n++;
1408
- });
1409
- return n;
1410
- },
1411
- toArray: function (children) {
1412
- return (
1413
- mapChildren(children, function (child) {
1414
- return child;
1415
- }) || []
1416
- );
1417
- },
1418
- only: function (children) {
1419
- if (!isValidElement(children))
1420
- throw Error(
1421
- "React.Children.only expected to receive a single React element child."
1422
- );
1423
- return children;
1424
- }
1425
- };
1426
- exports.Activity = REACT_ACTIVITY_TYPE;
1427
- exports.Children = fnName;
1428
- exports.Component = Component;
1429
- exports.Fragment = REACT_FRAGMENT_TYPE;
1430
- exports.Profiler = REACT_PROFILER_TYPE;
1431
- exports.PureComponent = PureComponent;
1432
- exports.StrictMode = REACT_STRICT_MODE_TYPE;
1433
- exports.Suspense = REACT_SUSPENSE_TYPE;
1434
- exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =
1435
- ReactSharedInternals;
1436
- exports.__COMPILER_RUNTIME = deprecatedAPIs;
1437
- exports.act = function (callback) {
1438
- var prevActQueue = ReactSharedInternals.actQueue,
1439
- prevActScopeDepth = actScopeDepth;
1440
- actScopeDepth++;
1441
- var queue = (ReactSharedInternals.actQueue =
1442
- null !== prevActQueue ? prevActQueue : []),
1443
- didAwaitActCall = false;
1444
- try {
1445
- var result = callback();
1446
- } catch (error) {
1447
- ReactSharedInternals.thrownErrors.push(error);
1448
- }
1449
- if (0 < ReactSharedInternals.thrownErrors.length)
1450
- throw (
1451
- (popActScope(prevActQueue, prevActScopeDepth),
1452
- (callback = aggregateErrors(ReactSharedInternals.thrownErrors)),
1453
- (ReactSharedInternals.thrownErrors.length = 0),
1454
- callback)
1455
- );
1456
- if (
1457
- null !== result &&
1458
- "object" === typeof result &&
1459
- "function" === typeof result.then
1460
- ) {
1461
- var thenable = result;
1462
- queueSeveralMicrotasks(function () {
1463
- didAwaitActCall ||
1464
- didWarnNoAwaitAct ||
1465
- ((didWarnNoAwaitAct = true),
1466
- console.error(
1467
- "You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"
1468
- ));
1469
- });
1470
- return {
1471
- then: function (resolve, reject) {
1472
- didAwaitActCall = true;
1473
- thenable.then(
1474
- function (returnValue) {
1475
- popActScope(prevActQueue, prevActScopeDepth);
1476
- if (0 === prevActScopeDepth) {
1477
- try {
1478
- flushActQueue(queue),
1479
- enqueueTask(function () {
1480
- return recursivelyFlushAsyncActWork(
1481
- returnValue,
1482
- resolve,
1483
- reject
1484
- );
1485
- });
1486
- } catch (error$0) {
1487
- ReactSharedInternals.thrownErrors.push(error$0);
1488
- }
1489
- if (0 < ReactSharedInternals.thrownErrors.length) {
1490
- var _thrownError = aggregateErrors(
1491
- ReactSharedInternals.thrownErrors
1492
- );
1493
- ReactSharedInternals.thrownErrors.length = 0;
1494
- reject(_thrownError);
1495
- }
1496
- } else resolve(returnValue);
1497
- },
1498
- function (error) {
1499
- popActScope(prevActQueue, prevActScopeDepth);
1500
- 0 < ReactSharedInternals.thrownErrors.length
1501
- ? ((error = aggregateErrors(
1502
- ReactSharedInternals.thrownErrors
1503
- )),
1504
- (ReactSharedInternals.thrownErrors.length = 0),
1505
- reject(error))
1506
- : reject(error);
1507
- }
1508
- );
1509
- }
1510
- };
1511
- }
1512
- var returnValue$jscomp$0 = result;
1513
- popActScope(prevActQueue, prevActScopeDepth);
1514
- 0 === prevActScopeDepth &&
1515
- (flushActQueue(queue),
1516
- 0 !== queue.length &&
1517
- queueSeveralMicrotasks(function () {
1518
- didAwaitActCall ||
1519
- didWarnNoAwaitAct ||
1520
- ((didWarnNoAwaitAct = true),
1521
- console.error(
1522
- "A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"
1523
- ));
1524
- }),
1525
- (ReactSharedInternals.actQueue = null));
1526
- if (0 < ReactSharedInternals.thrownErrors.length)
1527
- throw (
1528
- ((callback = aggregateErrors(ReactSharedInternals.thrownErrors)),
1529
- (ReactSharedInternals.thrownErrors.length = 0),
1530
- callback)
1531
- );
1532
- return {
1533
- then: function (resolve, reject) {
1534
- didAwaitActCall = true;
1535
- 0 === prevActScopeDepth
1536
- ? ((ReactSharedInternals.actQueue = queue),
1537
- enqueueTask(function () {
1538
- return recursivelyFlushAsyncActWork(
1539
- returnValue$jscomp$0,
1540
- resolve,
1541
- reject
1542
- );
1543
- }))
1544
- : resolve(returnValue$jscomp$0);
1545
- }
1546
- };
1547
- };
1548
- exports.cache = function (fn) {
1549
- return function () {
1550
- return fn.apply(null, arguments);
1551
- };
1552
- };
1553
- exports.cacheSignal = function () {
1554
- return null;
1555
- };
1556
- exports.captureOwnerStack = function () {
1557
- var getCurrentStack = ReactSharedInternals.getCurrentStack;
1558
- return null === getCurrentStack ? null : getCurrentStack();
1559
- };
1560
- exports.cloneElement = function (element, config, children) {
1561
- if (null === element || void 0 === element)
1562
- throw Error(
1563
- "The argument must be a React element, but you passed " +
1564
- element +
1565
- "."
1566
- );
1567
- var props = assign({}, element.props),
1568
- key = element.key,
1569
- owner = element._owner;
1570
- if (null != config) {
1571
- var JSCompiler_inline_result;
1572
- a: {
1573
- if (
1574
- hasOwnProperty.call(config, "ref") &&
1575
- (JSCompiler_inline_result = Object.getOwnPropertyDescriptor(
1576
- config,
1577
- "ref"
1578
- ).get) &&
1579
- JSCompiler_inline_result.isReactWarning
1580
- ) {
1581
- JSCompiler_inline_result = false;
1582
- break a;
1583
- }
1584
- JSCompiler_inline_result = void 0 !== config.ref;
1585
- }
1586
- JSCompiler_inline_result && (owner = getOwner());
1587
- hasValidKey(config) &&
1588
- (checkKeyStringCoercion(config.key), (key = "" + config.key));
1589
- for (propName in config)
1590
- !hasOwnProperty.call(config, propName) ||
1591
- "key" === propName ||
1592
- "__self" === propName ||
1593
- "__source" === propName ||
1594
- ("ref" === propName && void 0 === config.ref) ||
1595
- (props[propName] = config[propName]);
1596
- }
1597
- var propName = arguments.length - 2;
1598
- if (1 === propName) props.children = children;
1599
- else if (1 < propName) {
1600
- JSCompiler_inline_result = Array(propName);
1601
- for (var i = 0; i < propName; i++)
1602
- JSCompiler_inline_result[i] = arguments[i + 2];
1603
- props.children = JSCompiler_inline_result;
1604
- }
1605
- props = ReactElement(
1606
- element.type,
1607
- key,
1608
- props,
1609
- owner,
1610
- element._debugStack,
1611
- element._debugTask
1612
- );
1613
- for (key = 2; key < arguments.length; key++)
1614
- validateChildKeys(arguments[key]);
1615
- return props;
1616
- };
1617
- exports.createContext = function (defaultValue) {
1618
- defaultValue = {
1619
- $$typeof: REACT_CONTEXT_TYPE,
1620
- _currentValue: defaultValue,
1621
- _currentValue2: defaultValue,
1622
- _threadCount: 0,
1623
- Provider: null,
1624
- Consumer: null
1625
- };
1626
- defaultValue.Provider = defaultValue;
1627
- defaultValue.Consumer = {
1628
- $$typeof: REACT_CONSUMER_TYPE,
1629
- _context: defaultValue
1630
- };
1631
- defaultValue._currentRenderer = null;
1632
- defaultValue._currentRenderer2 = null;
1633
- return defaultValue;
1634
- };
1635
- exports.createElement = function (type, config, children) {
1636
- for (var i = 2; i < arguments.length; i++)
1637
- validateChildKeys(arguments[i]);
1638
- i = {};
1639
- var key = null;
1640
- if (null != config)
1641
- for (propName in (didWarnAboutOldJSXRuntime ||
1642
- !("__self" in config) ||
1643
- "key" in config ||
1644
- ((didWarnAboutOldJSXRuntime = true),
1645
- console.warn(
1646
- "Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform"
1647
- )),
1648
- hasValidKey(config) &&
1649
- (checkKeyStringCoercion(config.key), (key = "" + config.key)),
1650
- config))
1651
- hasOwnProperty.call(config, propName) &&
1652
- "key" !== propName &&
1653
- "__self" !== propName &&
1654
- "__source" !== propName &&
1655
- (i[propName] = config[propName]);
1656
- var childrenLength = arguments.length - 2;
1657
- if (1 === childrenLength) i.children = children;
1658
- else if (1 < childrenLength) {
1659
- for (
1660
- var childArray = Array(childrenLength), _i = 0;
1661
- _i < childrenLength;
1662
- _i++
1663
- )
1664
- childArray[_i] = arguments[_i + 2];
1665
- Object.freeze && Object.freeze(childArray);
1666
- i.children = childArray;
1667
- }
1668
- if (type && type.defaultProps)
1669
- for (propName in ((childrenLength = type.defaultProps), childrenLength))
1670
- void 0 === i[propName] && (i[propName] = childrenLength[propName]);
1671
- key &&
1672
- defineKeyPropWarningGetter(
1673
- i,
1674
- "function" === typeof type
1675
- ? type.displayName || type.name || "Unknown"
1676
- : type
1677
- );
1678
- var propName = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
1679
- return ReactElement(
1680
- type,
1681
- key,
1682
- i,
1683
- getOwner(),
1684
- propName ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
1685
- propName ? createTask(getTaskName(type)) : unknownOwnerDebugTask
1686
- );
1687
- };
1688
- exports.createRef = function () {
1689
- var refObject = { current: null };
1690
- Object.seal(refObject);
1691
- return refObject;
1692
- };
1693
- exports.forwardRef = function (render) {
1694
- null != render && render.$$typeof === REACT_MEMO_TYPE
1695
- ? console.error(
1696
- "forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."
1697
- )
1698
- : "function" !== typeof render
1699
- ? console.error(
1700
- "forwardRef requires a render function but was given %s.",
1701
- null === render ? "null" : typeof render
1702
- )
1703
- : 0 !== render.length &&
1704
- 2 !== render.length &&
1705
- console.error(
1706
- "forwardRef render functions accept exactly two parameters: props and ref. %s",
1707
- 1 === render.length
1708
- ? "Did you forget to use the ref parameter?"
1709
- : "Any additional parameter will be undefined."
1710
- );
1711
- null != render &&
1712
- null != render.defaultProps &&
1713
- console.error(
1714
- "forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?"
1715
- );
1716
- var elementType = { $$typeof: REACT_FORWARD_REF_TYPE, render: render },
1717
- ownName;
1718
- Object.defineProperty(elementType, "displayName", {
1719
- enumerable: false,
1720
- configurable: true,
1721
- get: function () {
1722
- return ownName;
1723
- },
1724
- set: function (name) {
1725
- ownName = name;
1726
- render.name ||
1727
- render.displayName ||
1728
- (Object.defineProperty(render, "name", { value: name }),
1729
- (render.displayName = name));
1730
- }
1731
- });
1732
- return elementType;
1733
- };
1734
- exports.isValidElement = isValidElement;
1735
- exports.lazy = function (ctor) {
1736
- ctor = { _status: -1, _result: ctor };
1737
- var lazyType = {
1738
- $$typeof: REACT_LAZY_TYPE,
1739
- _payload: ctor,
1740
- _init: lazyInitializer
1741
- },
1742
- ioInfo = {
1743
- name: "lazy",
1744
- start: -1,
1745
- end: -1,
1746
- value: null,
1747
- owner: null,
1748
- debugStack: Error("react-stack-top-frame"),
1749
- debugTask: console.createTask ? console.createTask("lazy()") : null
1750
- };
1751
- ctor._ioInfo = ioInfo;
1752
- lazyType._debugInfo = [{ awaited: ioInfo }];
1753
- return lazyType;
1754
- };
1755
- exports.memo = function (type, compare) {
1756
- null == type &&
1757
- console.error(
1758
- "memo: The first argument must be a component. Instead received: %s",
1759
- null === type ? "null" : typeof type
1760
- );
1761
- compare = {
1762
- $$typeof: REACT_MEMO_TYPE,
1763
- type: type,
1764
- compare: void 0 === compare ? null : compare
1765
- };
1766
- var ownName;
1767
- Object.defineProperty(compare, "displayName", {
1768
- enumerable: false,
1769
- configurable: true,
1770
- get: function () {
1771
- return ownName;
1772
- },
1773
- set: function (name) {
1774
- ownName = name;
1775
- type.name ||
1776
- type.displayName ||
1777
- (Object.defineProperty(type, "name", { value: name }),
1778
- (type.displayName = name));
1779
- }
1780
- });
1781
- return compare;
1782
- };
1783
- exports.startTransition = function (scope) {
1784
- var prevTransition = ReactSharedInternals.T,
1785
- currentTransition = {};
1786
- currentTransition._updatedFibers = new Set();
1787
- ReactSharedInternals.T = currentTransition;
1788
- try {
1789
- var returnValue = scope(),
1790
- onStartTransitionFinish = ReactSharedInternals.S;
1791
- null !== onStartTransitionFinish &&
1792
- onStartTransitionFinish(currentTransition, returnValue);
1793
- "object" === typeof returnValue &&
1794
- null !== returnValue &&
1795
- "function" === typeof returnValue.then &&
1796
- (ReactSharedInternals.asyncTransitions++,
1797
- returnValue.then(releaseAsyncTransition, releaseAsyncTransition),
1798
- returnValue.then(noop, reportGlobalError));
1799
- } catch (error) {
1800
- reportGlobalError(error);
1801
- } finally {
1802
- null === prevTransition &&
1803
- currentTransition._updatedFibers &&
1804
- ((scope = currentTransition._updatedFibers.size),
1805
- currentTransition._updatedFibers.clear(),
1806
- 10 < scope &&
1807
- console.warn(
1808
- "Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."
1809
- )),
1810
- null !== prevTransition &&
1811
- null !== currentTransition.types &&
1812
- (null !== prevTransition.types &&
1813
- prevTransition.types !== currentTransition.types &&
1814
- console.error(
1815
- "We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."
1816
- ),
1817
- (prevTransition.types = currentTransition.types)),
1818
- (ReactSharedInternals.T = prevTransition);
1819
- }
1820
- };
1821
- exports.unstable_useCacheRefresh = function () {
1822
- return resolveDispatcher().useCacheRefresh();
1823
- };
1824
- exports.use = function (usable) {
1825
- return resolveDispatcher().use(usable);
1826
- };
1827
- exports.useActionState = function (action, initialState, permalink) {
1828
- return resolveDispatcher().useActionState(
1829
- action,
1830
- initialState,
1831
- permalink
1832
- );
1833
- };
1834
- exports.useCallback = function (callback, deps) {
1835
- return resolveDispatcher().useCallback(callback, deps);
1836
- };
1837
- exports.useContext = function (Context) {
1838
- var dispatcher = resolveDispatcher();
1839
- Context.$$typeof === REACT_CONSUMER_TYPE &&
1840
- console.error(
1841
- "Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"
1842
- );
1843
- return dispatcher.useContext(Context);
1844
- };
1845
- exports.useDebugValue = function (value, formatterFn) {
1846
- return resolveDispatcher().useDebugValue(value, formatterFn);
1847
- };
1848
- exports.useDeferredValue = function (value, initialValue) {
1849
- return resolveDispatcher().useDeferredValue(value, initialValue);
1850
- };
1851
- exports.useEffect = function (create, deps) {
1852
- null == create &&
1853
- console.warn(
1854
- "React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"
1855
- );
1856
- return resolveDispatcher().useEffect(create, deps);
1857
- };
1858
- exports.useEffectEvent = function (callback) {
1859
- return resolveDispatcher().useEffectEvent(callback);
1860
- };
1861
- exports.useId = function () {
1862
- return resolveDispatcher().useId();
1863
- };
1864
- exports.useImperativeHandle = function (ref, create, deps) {
1865
- return resolveDispatcher().useImperativeHandle(ref, create, deps);
1866
- };
1867
- exports.useInsertionEffect = function (create, deps) {
1868
- null == create &&
1869
- console.warn(
1870
- "React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"
1871
- );
1872
- return resolveDispatcher().useInsertionEffect(create, deps);
1873
- };
1874
- exports.useLayoutEffect = function (create, deps) {
1875
- null == create &&
1876
- console.warn(
1877
- "React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"
1878
- );
1879
- return resolveDispatcher().useLayoutEffect(create, deps);
1880
- };
1881
- exports.useMemo = function (create, deps) {
1882
- return resolveDispatcher().useMemo(create, deps);
1883
- };
1884
- exports.useOptimistic = function (passthrough, reducer) {
1885
- return resolveDispatcher().useOptimistic(passthrough, reducer);
1886
- };
1887
- exports.useReducer = function (reducer, initialArg, init) {
1888
- return resolveDispatcher().useReducer(reducer, initialArg, init);
1889
- };
1890
- exports.useRef = function (initialValue) {
1891
- return resolveDispatcher().useRef(initialValue);
1892
- };
1893
- exports.useState = function (initialState) {
1894
- return resolveDispatcher().useState(initialState);
1895
- };
1896
- exports.useSyncExternalStore = function (
1897
- subscribe,
1898
- getSnapshot,
1899
- getServerSnapshot
1900
- ) {
1901
- return resolveDispatcher().useSyncExternalStore(
1902
- subscribe,
1903
- getSnapshot,
1904
- getServerSnapshot
1905
- );
1906
- };
1907
- exports.useTransition = function () {
1908
- return resolveDispatcher().useTransition();
1909
- };
1910
- exports.version = "19.2.8";
1911
- "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
1912
- "function" ===
1913
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
1914
- __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
1915
- })();
1916
- } (react_development, react_development.exports));
1917
- return react_development.exports;
1918
- }
1919
-
1920
629
  var hasRequiredReact;
1921
630
 
1922
631
  function requireReact () {
1923
632
  if (hasRequiredReact) return react.exports;
1924
633
  hasRequiredReact = 1;
1925
634
 
1926
- if (process.env.NODE_ENV === 'production') {
635
+ {
1927
636
  react.exports = requireReact_production();
1928
- } else {
1929
- react.exports = requireReact_development();
1930
637
  }
1931
638
  return react.exports;
1932
639
  }
1933
640
 
1934
- /**
1935
- * @license React
1936
- * react-jsx-runtime.development.js
1937
- *
1938
- * Copyright (c) Meta Platforms, Inc. and affiliates.
1939
- *
1940
- * This source code is licensed under the MIT license found in the
1941
- * LICENSE file in the root directory of this source tree.
1942
- */
1943
-
1944
- var hasRequiredReactJsxRuntime_development;
1945
-
1946
- function requireReactJsxRuntime_development () {
1947
- if (hasRequiredReactJsxRuntime_development) return reactJsxRuntime_development;
1948
- hasRequiredReactJsxRuntime_development = 1;
1949
- "production" !== process.env.NODE_ENV &&
1950
- (function () {
1951
- function getComponentNameFromType(type) {
1952
- if (null == type) return null;
1953
- if ("function" === typeof type)
1954
- return type.$$typeof === REACT_CLIENT_REFERENCE
1955
- ? null
1956
- : type.displayName || type.name || null;
1957
- if ("string" === typeof type) return type;
1958
- switch (type) {
1959
- case REACT_FRAGMENT_TYPE:
1960
- return "Fragment";
1961
- case REACT_PROFILER_TYPE:
1962
- return "Profiler";
1963
- case REACT_STRICT_MODE_TYPE:
1964
- return "StrictMode";
1965
- case REACT_SUSPENSE_TYPE:
1966
- return "Suspense";
1967
- case REACT_SUSPENSE_LIST_TYPE:
1968
- return "SuspenseList";
1969
- case REACT_ACTIVITY_TYPE:
1970
- return "Activity";
1971
- }
1972
- if ("object" === typeof type)
1973
- switch (
1974
- ("number" === typeof type.tag &&
1975
- console.error(
1976
- "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
1977
- ),
1978
- type.$$typeof)
1979
- ) {
1980
- case REACT_PORTAL_TYPE:
1981
- return "Portal";
1982
- case REACT_CONTEXT_TYPE:
1983
- return type.displayName || "Context";
1984
- case REACT_CONSUMER_TYPE:
1985
- return (type._context.displayName || "Context") + ".Consumer";
1986
- case REACT_FORWARD_REF_TYPE:
1987
- var innerType = type.render;
1988
- type = type.displayName;
1989
- type ||
1990
- ((type = innerType.displayName || innerType.name || ""),
1991
- (type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef"));
1992
- return type;
1993
- case REACT_MEMO_TYPE:
1994
- return (
1995
- (innerType = type.displayName || null),
1996
- null !== innerType
1997
- ? innerType
1998
- : getComponentNameFromType(type.type) || "Memo"
1999
- );
2000
- case REACT_LAZY_TYPE:
2001
- innerType = type._payload;
2002
- type = type._init;
2003
- try {
2004
- return getComponentNameFromType(type(innerType));
2005
- } catch (x) {}
2006
- }
2007
- return null;
2008
- }
2009
- function testStringCoercion(value) {
2010
- return "" + value;
2011
- }
2012
- function checkKeyStringCoercion(value) {
2013
- try {
2014
- testStringCoercion(value);
2015
- var JSCompiler_inline_result = !1;
2016
- } catch (e) {
2017
- JSCompiler_inline_result = true;
2018
- }
2019
- if (JSCompiler_inline_result) {
2020
- JSCompiler_inline_result = console;
2021
- var JSCompiler_temp_const = JSCompiler_inline_result.error;
2022
- var JSCompiler_inline_result$jscomp$0 =
2023
- ("function" === typeof Symbol &&
2024
- Symbol.toStringTag &&
2025
- value[Symbol.toStringTag]) ||
2026
- value.constructor.name ||
2027
- "Object";
2028
- JSCompiler_temp_const.call(
2029
- JSCompiler_inline_result,
2030
- "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
2031
- JSCompiler_inline_result$jscomp$0
2032
- );
2033
- return testStringCoercion(value);
2034
- }
2035
- }
2036
- function getTaskName(type) {
2037
- if (type === REACT_FRAGMENT_TYPE) return "<>";
2038
- if (
2039
- "object" === typeof type &&
2040
- null !== type &&
2041
- type.$$typeof === REACT_LAZY_TYPE
2042
- )
2043
- return "<...>";
2044
- try {
2045
- var name = getComponentNameFromType(type);
2046
- return name ? "<" + name + ">" : "<...>";
2047
- } catch (x) {
2048
- return "<...>";
2049
- }
2050
- }
2051
- function getOwner() {
2052
- var dispatcher = ReactSharedInternals.A;
2053
- return null === dispatcher ? null : dispatcher.getOwner();
2054
- }
2055
- function UnknownOwner() {
2056
- return Error("react-stack-top-frame");
2057
- }
2058
- function hasValidKey(config) {
2059
- if (hasOwnProperty.call(config, "key")) {
2060
- var getter = Object.getOwnPropertyDescriptor(config, "key").get;
2061
- if (getter && getter.isReactWarning) return false;
2062
- }
2063
- return void 0 !== config.key;
2064
- }
2065
- function defineKeyPropWarningGetter(props, displayName) {
2066
- function warnAboutAccessingKey() {
2067
- specialPropKeyWarningShown ||
2068
- ((specialPropKeyWarningShown = true),
2069
- console.error(
2070
- "%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)",
2071
- displayName
2072
- ));
2073
- }
2074
- warnAboutAccessingKey.isReactWarning = true;
2075
- Object.defineProperty(props, "key", {
2076
- get: warnAboutAccessingKey,
2077
- configurable: true
2078
- });
2079
- }
2080
- function elementRefGetterWithDeprecationWarning() {
2081
- var componentName = getComponentNameFromType(this.type);
2082
- didWarnAboutElementRef[componentName] ||
2083
- ((didWarnAboutElementRef[componentName] = true),
2084
- console.error(
2085
- "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."
2086
- ));
2087
- componentName = this.props.ref;
2088
- return void 0 !== componentName ? componentName : null;
2089
- }
2090
- function ReactElement(type, key, props, owner, debugStack, debugTask) {
2091
- var refProp = props.ref;
2092
- type = {
2093
- $$typeof: REACT_ELEMENT_TYPE,
2094
- type: type,
2095
- key: key,
2096
- props: props,
2097
- _owner: owner
2098
- };
2099
- null !== (void 0 !== refProp ? refProp : null)
2100
- ? Object.defineProperty(type, "ref", {
2101
- enumerable: false,
2102
- get: elementRefGetterWithDeprecationWarning
2103
- })
2104
- : Object.defineProperty(type, "ref", { enumerable: false, value: null });
2105
- type._store = {};
2106
- Object.defineProperty(type._store, "validated", {
2107
- configurable: false,
2108
- enumerable: false,
2109
- writable: true,
2110
- value: 0
2111
- });
2112
- Object.defineProperty(type, "_debugInfo", {
2113
- configurable: false,
2114
- enumerable: false,
2115
- writable: true,
2116
- value: null
2117
- });
2118
- Object.defineProperty(type, "_debugStack", {
2119
- configurable: false,
2120
- enumerable: false,
2121
- writable: true,
2122
- value: debugStack
2123
- });
2124
- Object.defineProperty(type, "_debugTask", {
2125
- configurable: false,
2126
- enumerable: false,
2127
- writable: true,
2128
- value: debugTask
2129
- });
2130
- Object.freeze && (Object.freeze(type.props), Object.freeze(type));
2131
- return type;
2132
- }
2133
- function jsxDEVImpl(
2134
- type,
2135
- config,
2136
- maybeKey,
2137
- isStaticChildren,
2138
- debugStack,
2139
- debugTask
2140
- ) {
2141
- var children = config.children;
2142
- if (void 0 !== children)
2143
- if (isStaticChildren)
2144
- if (isArrayImpl(children)) {
2145
- for (
2146
- isStaticChildren = 0;
2147
- isStaticChildren < children.length;
2148
- isStaticChildren++
2149
- )
2150
- validateChildKeys(children[isStaticChildren]);
2151
- Object.freeze && Object.freeze(children);
2152
- } else
2153
- console.error(
2154
- "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
2155
- );
2156
- else validateChildKeys(children);
2157
- if (hasOwnProperty.call(config, "key")) {
2158
- children = getComponentNameFromType(type);
2159
- var keys = Object.keys(config).filter(function (k) {
2160
- return "key" !== k;
2161
- });
2162
- isStaticChildren =
2163
- 0 < keys.length
2164
- ? "{key: someKey, " + keys.join(": ..., ") + ": ...}"
2165
- : "{key: someKey}";
2166
- didWarnAboutKeySpread[children + isStaticChildren] ||
2167
- ((keys =
2168
- 0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}"),
2169
- console.error(
2170
- '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} />',
2171
- isStaticChildren,
2172
- children,
2173
- keys,
2174
- children
2175
- ),
2176
- (didWarnAboutKeySpread[children + isStaticChildren] = true));
2177
- }
2178
- children = null;
2179
- void 0 !== maybeKey &&
2180
- (checkKeyStringCoercion(maybeKey), (children = "" + maybeKey));
2181
- hasValidKey(config) &&
2182
- (checkKeyStringCoercion(config.key), (children = "" + config.key));
2183
- if ("key" in config) {
2184
- maybeKey = {};
2185
- for (var propName in config)
2186
- "key" !== propName && (maybeKey[propName] = config[propName]);
2187
- } else maybeKey = config;
2188
- children &&
2189
- defineKeyPropWarningGetter(
2190
- maybeKey,
2191
- "function" === typeof type
2192
- ? type.displayName || type.name || "Unknown"
2193
- : type
2194
- );
2195
- return ReactElement(
2196
- type,
2197
- children,
2198
- maybeKey,
2199
- getOwner(),
2200
- debugStack,
2201
- debugTask
2202
- );
2203
- }
2204
- function validateChildKeys(node) {
2205
- isValidElement(node)
2206
- ? node._store && (node._store.validated = 1)
2207
- : "object" === typeof node &&
2208
- null !== node &&
2209
- node.$$typeof === REACT_LAZY_TYPE &&
2210
- ("fulfilled" === node._payload.status
2211
- ? isValidElement(node._payload.value) &&
2212
- node._payload.value._store &&
2213
- (node._payload.value._store.validated = 1)
2214
- : node._store && (node._store.validated = 1));
2215
- }
2216
- function isValidElement(object) {
2217
- return (
2218
- "object" === typeof object &&
2219
- null !== object &&
2220
- object.$$typeof === REACT_ELEMENT_TYPE
2221
- );
2222
- }
2223
- var React = requireReact(),
2224
- REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
2225
- REACT_PORTAL_TYPE = Symbol.for("react.portal"),
2226
- REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
2227
- REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
2228
- REACT_PROFILER_TYPE = Symbol.for("react.profiler"),
2229
- REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
2230
- REACT_CONTEXT_TYPE = Symbol.for("react.context"),
2231
- REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
2232
- REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
2233
- REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"),
2234
- REACT_MEMO_TYPE = Symbol.for("react.memo"),
2235
- REACT_LAZY_TYPE = Symbol.for("react.lazy"),
2236
- REACT_ACTIVITY_TYPE = Symbol.for("react.activity"),
2237
- REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
2238
- ReactSharedInternals =
2239
- React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
2240
- hasOwnProperty = Object.prototype.hasOwnProperty,
2241
- isArrayImpl = Array.isArray,
2242
- createTask = console.createTask
2243
- ? console.createTask
2244
- : function () {
2245
- return null;
2246
- };
2247
- React = {
2248
- react_stack_bottom_frame: function (callStackForError) {
2249
- return callStackForError();
2250
- }
2251
- };
2252
- var specialPropKeyWarningShown;
2253
- var didWarnAboutElementRef = {};
2254
- var unknownOwnerDebugStack = React.react_stack_bottom_frame.bind(
2255
- React,
2256
- UnknownOwner
2257
- )();
2258
- var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
2259
- var didWarnAboutKeySpread = {};
2260
- reactJsxRuntime_development.Fragment = REACT_FRAGMENT_TYPE;
2261
- reactJsxRuntime_development.jsx = function (type, config, maybeKey) {
2262
- var trackActualOwner =
2263
- 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
2264
- return jsxDEVImpl(
2265
- type,
2266
- config,
2267
- maybeKey,
2268
- false,
2269
- trackActualOwner
2270
- ? Error("react-stack-top-frame")
2271
- : unknownOwnerDebugStack,
2272
- trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
2273
- );
2274
- };
2275
- reactJsxRuntime_development.jsxs = function (type, config, maybeKey) {
2276
- var trackActualOwner =
2277
- 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
2278
- return jsxDEVImpl(
2279
- type,
2280
- config,
2281
- maybeKey,
2282
- true,
2283
- trackActualOwner
2284
- ? Error("react-stack-top-frame")
2285
- : unknownOwnerDebugStack,
2286
- trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
2287
- );
2288
- };
2289
- })();
2290
- return reactJsxRuntime_development;
2291
- }
2292
-
2293
- var hasRequiredJsxRuntime;
2294
-
2295
- function requireJsxRuntime () {
2296
- if (hasRequiredJsxRuntime) return jsxRuntime.exports;
2297
- hasRequiredJsxRuntime = 1;
2298
-
2299
- if (process.env.NODE_ENV === 'production') {
2300
- jsxRuntime.exports = requireReactJsxRuntime_production();
2301
- } else {
2302
- jsxRuntime.exports = requireReactJsxRuntime_development();
2303
- }
2304
- return jsxRuntime.exports;
2305
- }
2306
-
2307
- var jsxRuntimeExports = requireJsxRuntime();
2308
-
2309
641
  var reactExports = requireReact();
2310
642
  var React = /*@__PURE__*/getDefaultExportFromCjs(reactExports);
2311
643
 
@@ -2830,8 +1162,8 @@ function withMinMax(calendar, minDate, maxDate) {
2830
1162
  return calendar;
2831
1163
  }
2832
1164
 
2833
- const HOLIDAY_API_URL = process.env.STORYBOOK_HOLIDAY_API_URL;
2834
- const API_KEY = process.env.STORYBOOK_HOLIDAY_API_KEY;
1165
+ const HOLIDAY_API_URL = undefined.STORYBOOK_HOLIDAY_API_URL;
1166
+ const API_KEY = undefined.STORYBOOK_HOLIDAY_API_KEY;
2835
1167
  const getHolidays = async (year = new Date().getFullYear(), signal) => {
2836
1168
  try {
2837
1169
  let holidayDates;
@@ -2953,6 +1285,40 @@ const useModal = (options = {}) => {
2953
1285
  return { isOpen, open, close, toggle, setOpen };
2954
1286
  };
2955
1287
 
1288
+ var _path$5;
1289
+ function _extends$5() { return _extends$5 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$5.apply(null, arguments); }
1290
+ var SvgDelete = function SvgDelete(props) {
1291
+ return /*#__PURE__*/reactExports.createElement("svg", _extends$5({
1292
+ xmlns: "http://www.w3.org/2000/svg",
1293
+ width: 14,
1294
+ height: 14,
1295
+ fill: "none"
1296
+ }, props), _path$5 || (_path$5 = /*#__PURE__*/reactExports.createElement("path", {
1297
+ stroke: "currentColor",
1298
+ strokeLinecap: "round",
1299
+ strokeLinejoin: "round",
1300
+ strokeWidth: 1.167,
1301
+ d: "m12.583.583-12 12M.583.583l12 12"
1302
+ })));
1303
+ };
1304
+
1305
+ var _path$4;
1306
+ function _extends$4() { return _extends$4 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$4.apply(null, arguments); }
1307
+ var SvgEdit = function SvgEdit(props) {
1308
+ return /*#__PURE__*/reactExports.createElement("svg", _extends$4({
1309
+ xmlns: "http://www.w3.org/2000/svg",
1310
+ width: 24,
1311
+ height: 24,
1312
+ fill: "none"
1313
+ }, props), _path$4 || (_path$4 = /*#__PURE__*/reactExports.createElement("path", {
1314
+ stroke: "currentColor",
1315
+ strokeLinecap: "round",
1316
+ strokeLinejoin: "round",
1317
+ strokeWidth: 1.167,
1318
+ d: "M21.174 6.812a2.819 2.819 0 1 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z"
1319
+ })));
1320
+ };
1321
+
2956
1322
  var reactDom = {exports: {}};
2957
1323
 
2958
1324
  var reactDom_production = {};
@@ -3174,439 +1540,6 @@ function requireReactDom_production () {
3174
1540
  return reactDom_production;
3175
1541
  }
3176
1542
 
3177
- var reactDom_development = {};
3178
-
3179
- /**
3180
- * @license React
3181
- * react-dom.development.js
3182
- *
3183
- * Copyright (c) Meta Platforms, Inc. and affiliates.
3184
- *
3185
- * This source code is licensed under the MIT license found in the
3186
- * LICENSE file in the root directory of this source tree.
3187
- */
3188
-
3189
- var hasRequiredReactDom_development;
3190
-
3191
- function requireReactDom_development () {
3192
- if (hasRequiredReactDom_development) return reactDom_development;
3193
- hasRequiredReactDom_development = 1;
3194
- "production" !== process.env.NODE_ENV &&
3195
- (function () {
3196
- function noop() {}
3197
- function testStringCoercion(value) {
3198
- return "" + value;
3199
- }
3200
- function createPortal$1(children, containerInfo, implementation) {
3201
- var key =
3202
- 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null;
3203
- try {
3204
- testStringCoercion(key);
3205
- var JSCompiler_inline_result = !1;
3206
- } catch (e) {
3207
- JSCompiler_inline_result = true;
3208
- }
3209
- JSCompiler_inline_result &&
3210
- (console.error(
3211
- "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
3212
- ("function" === typeof Symbol &&
3213
- Symbol.toStringTag &&
3214
- key[Symbol.toStringTag]) ||
3215
- key.constructor.name ||
3216
- "Object"
3217
- ),
3218
- testStringCoercion(key));
3219
- return {
3220
- $$typeof: REACT_PORTAL_TYPE,
3221
- key: null == key ? null : "" + key,
3222
- children: children,
3223
- containerInfo: containerInfo,
3224
- implementation: implementation
3225
- };
3226
- }
3227
- function getCrossOriginStringAs(as, input) {
3228
- if ("font" === as) return "";
3229
- if ("string" === typeof input)
3230
- return "use-credentials" === input ? input : "";
3231
- }
3232
- function getValueDescriptorExpectingObjectForWarning(thing) {
3233
- return null === thing
3234
- ? "`null`"
3235
- : void 0 === thing
3236
- ? "`undefined`"
3237
- : "" === thing
3238
- ? "an empty string"
3239
- : 'something with type "' + typeof thing + '"';
3240
- }
3241
- function getValueDescriptorExpectingEnumForWarning(thing) {
3242
- return null === thing
3243
- ? "`null`"
3244
- : void 0 === thing
3245
- ? "`undefined`"
3246
- : "" === thing
3247
- ? "an empty string"
3248
- : "string" === typeof thing
3249
- ? JSON.stringify(thing)
3250
- : "number" === typeof thing
3251
- ? "`" + thing + "`"
3252
- : 'something with type "' + typeof thing + '"';
3253
- }
3254
- function resolveDispatcher() {
3255
- var dispatcher = ReactSharedInternals.H;
3256
- null === dispatcher &&
3257
- console.error(
3258
- "Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem."
3259
- );
3260
- return dispatcher;
3261
- }
3262
- "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
3263
- "function" ===
3264
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart &&
3265
- __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
3266
- var React = requireReact(),
3267
- Internals = {
3268
- d: {
3269
- f: noop,
3270
- r: function () {
3271
- throw Error(
3272
- "Invalid form element. requestFormReset must be passed a form that was rendered by React."
3273
- );
3274
- },
3275
- D: noop,
3276
- C: noop,
3277
- L: noop,
3278
- m: noop,
3279
- X: noop,
3280
- S: noop,
3281
- M: noop
3282
- },
3283
- p: 0,
3284
- findDOMNode: null
3285
- },
3286
- REACT_PORTAL_TYPE = Symbol.for("react.portal"),
3287
- ReactSharedInternals =
3288
- React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
3289
- ("function" === typeof Map &&
3290
- null != Map.prototype &&
3291
- "function" === typeof Map.prototype.forEach &&
3292
- "function" === typeof Set &&
3293
- null != Set.prototype &&
3294
- "function" === typeof Set.prototype.clear &&
3295
- "function" === typeof Set.prototype.forEach) ||
3296
- console.error(
3297
- "React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"
3298
- );
3299
- reactDom_development.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =
3300
- Internals;
3301
- reactDom_development.createPortal = function (children, container) {
3302
- var key =
3303
- 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null;
3304
- if (
3305
- !container ||
3306
- (1 !== container.nodeType &&
3307
- 9 !== container.nodeType &&
3308
- 11 !== container.nodeType)
3309
- )
3310
- throw Error("Target container is not a DOM element.");
3311
- return createPortal$1(children, container, null, key);
3312
- };
3313
- reactDom_development.flushSync = function (fn) {
3314
- var previousTransition = ReactSharedInternals.T,
3315
- previousUpdatePriority = Internals.p;
3316
- try {
3317
- if (((ReactSharedInternals.T = null), (Internals.p = 2), fn))
3318
- return fn();
3319
- } finally {
3320
- (ReactSharedInternals.T = previousTransition),
3321
- (Internals.p = previousUpdatePriority),
3322
- Internals.d.f() &&
3323
- console.error(
3324
- "flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task."
3325
- );
3326
- }
3327
- };
3328
- reactDom_development.preconnect = function (href, options) {
3329
- "string" === typeof href && href
3330
- ? null != options && "object" !== typeof options
3331
- ? console.error(
3332
- "ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",
3333
- getValueDescriptorExpectingEnumForWarning(options)
3334
- )
3335
- : null != options &&
3336
- "string" !== typeof options.crossOrigin &&
3337
- console.error(
3338
- "ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",
3339
- getValueDescriptorExpectingObjectForWarning(options.crossOrigin)
3340
- )
3341
- : console.error(
3342
- "ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
3343
- getValueDescriptorExpectingObjectForWarning(href)
3344
- );
3345
- "string" === typeof href &&
3346
- (options
3347
- ? ((options = options.crossOrigin),
3348
- (options =
3349
- "string" === typeof options
3350
- ? "use-credentials" === options
3351
- ? options
3352
- : ""
3353
- : void 0))
3354
- : (options = null),
3355
- Internals.d.C(href, options));
3356
- };
3357
- reactDom_development.prefetchDNS = function (href) {
3358
- if ("string" !== typeof href || !href)
3359
- console.error(
3360
- "ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
3361
- getValueDescriptorExpectingObjectForWarning(href)
3362
- );
3363
- else if (1 < arguments.length) {
3364
- var options = arguments[1];
3365
- "object" === typeof options && options.hasOwnProperty("crossOrigin")
3366
- ? console.error(
3367
- "ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",
3368
- getValueDescriptorExpectingEnumForWarning(options)
3369
- )
3370
- : console.error(
3371
- "ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",
3372
- getValueDescriptorExpectingEnumForWarning(options)
3373
- );
3374
- }
3375
- "string" === typeof href && Internals.d.D(href);
3376
- };
3377
- reactDom_development.preinit = function (href, options) {
3378
- "string" === typeof href && href
3379
- ? null == options || "object" !== typeof options
3380
- ? console.error(
3381
- "ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",
3382
- getValueDescriptorExpectingEnumForWarning(options)
3383
- )
3384
- : "style" !== options.as &&
3385
- "script" !== options.as &&
3386
- console.error(
3387
- 'ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',
3388
- getValueDescriptorExpectingEnumForWarning(options.as)
3389
- )
3390
- : console.error(
3391
- "ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
3392
- getValueDescriptorExpectingObjectForWarning(href)
3393
- );
3394
- if (
3395
- "string" === typeof href &&
3396
- options &&
3397
- "string" === typeof options.as
3398
- ) {
3399
- var as = options.as,
3400
- crossOrigin = getCrossOriginStringAs(as, options.crossOrigin),
3401
- integrity =
3402
- "string" === typeof options.integrity ? options.integrity : void 0,
3403
- fetchPriority =
3404
- "string" === typeof options.fetchPriority
3405
- ? options.fetchPriority
3406
- : void 0;
3407
- "style" === as
3408
- ? Internals.d.S(
3409
- href,
3410
- "string" === typeof options.precedence
3411
- ? options.precedence
3412
- : void 0,
3413
- {
3414
- crossOrigin: crossOrigin,
3415
- integrity: integrity,
3416
- fetchPriority: fetchPriority
3417
- }
3418
- )
3419
- : "script" === as &&
3420
- Internals.d.X(href, {
3421
- crossOrigin: crossOrigin,
3422
- integrity: integrity,
3423
- fetchPriority: fetchPriority,
3424
- nonce: "string" === typeof options.nonce ? options.nonce : void 0
3425
- });
3426
- }
3427
- };
3428
- reactDom_development.preinitModule = function (href, options) {
3429
- var encountered = "";
3430
- ("string" === typeof href && href) ||
3431
- (encountered +=
3432
- " The `href` argument encountered was " +
3433
- getValueDescriptorExpectingObjectForWarning(href) +
3434
- ".");
3435
- void 0 !== options && "object" !== typeof options
3436
- ? (encountered +=
3437
- " The `options` argument encountered was " +
3438
- getValueDescriptorExpectingObjectForWarning(options) +
3439
- ".")
3440
- : options &&
3441
- "as" in options &&
3442
- "script" !== options.as &&
3443
- (encountered +=
3444
- " The `as` option encountered was " +
3445
- getValueDescriptorExpectingEnumForWarning(options.as) +
3446
- ".");
3447
- if (encountered)
3448
- console.error(
3449
- "ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",
3450
- encountered
3451
- );
3452
- else
3453
- switch (
3454
- ((encountered =
3455
- options && "string" === typeof options.as ? options.as : "script"),
3456
- encountered)
3457
- ) {
3458
- case "script":
3459
- break;
3460
- default:
3461
- (encountered =
3462
- getValueDescriptorExpectingEnumForWarning(encountered)),
3463
- console.error(
3464
- 'ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',
3465
- encountered,
3466
- href
3467
- );
3468
- }
3469
- if ("string" === typeof href)
3470
- if ("object" === typeof options && null !== options) {
3471
- if (null == options.as || "script" === options.as)
3472
- (encountered = getCrossOriginStringAs(
3473
- options.as,
3474
- options.crossOrigin
3475
- )),
3476
- Internals.d.M(href, {
3477
- crossOrigin: encountered,
3478
- integrity:
3479
- "string" === typeof options.integrity
3480
- ? options.integrity
3481
- : void 0,
3482
- nonce:
3483
- "string" === typeof options.nonce ? options.nonce : void 0
3484
- });
3485
- } else null == options && Internals.d.M(href);
3486
- };
3487
- reactDom_development.preload = function (href, options) {
3488
- var encountered = "";
3489
- ("string" === typeof href && href) ||
3490
- (encountered +=
3491
- " The `href` argument encountered was " +
3492
- getValueDescriptorExpectingObjectForWarning(href) +
3493
- ".");
3494
- null == options || "object" !== typeof options
3495
- ? (encountered +=
3496
- " The `options` argument encountered was " +
3497
- getValueDescriptorExpectingObjectForWarning(options) +
3498
- ".")
3499
- : ("string" === typeof options.as && options.as) ||
3500
- (encountered +=
3501
- " The `as` option encountered was " +
3502
- getValueDescriptorExpectingObjectForWarning(options.as) +
3503
- ".");
3504
- encountered &&
3505
- console.error(
3506
- 'ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',
3507
- encountered
3508
- );
3509
- if (
3510
- "string" === typeof href &&
3511
- "object" === typeof options &&
3512
- null !== options &&
3513
- "string" === typeof options.as
3514
- ) {
3515
- encountered = options.as;
3516
- var crossOrigin = getCrossOriginStringAs(
3517
- encountered,
3518
- options.crossOrigin
3519
- );
3520
- Internals.d.L(href, encountered, {
3521
- crossOrigin: crossOrigin,
3522
- integrity:
3523
- "string" === typeof options.integrity ? options.integrity : void 0,
3524
- nonce: "string" === typeof options.nonce ? options.nonce : void 0,
3525
- type: "string" === typeof options.type ? options.type : void 0,
3526
- fetchPriority:
3527
- "string" === typeof options.fetchPriority
3528
- ? options.fetchPriority
3529
- : void 0,
3530
- referrerPolicy:
3531
- "string" === typeof options.referrerPolicy
3532
- ? options.referrerPolicy
3533
- : void 0,
3534
- imageSrcSet:
3535
- "string" === typeof options.imageSrcSet
3536
- ? options.imageSrcSet
3537
- : void 0,
3538
- imageSizes:
3539
- "string" === typeof options.imageSizes
3540
- ? options.imageSizes
3541
- : void 0,
3542
- media: "string" === typeof options.media ? options.media : void 0
3543
- });
3544
- }
3545
- };
3546
- reactDom_development.preloadModule = function (href, options) {
3547
- var encountered = "";
3548
- ("string" === typeof href && href) ||
3549
- (encountered +=
3550
- " The `href` argument encountered was " +
3551
- getValueDescriptorExpectingObjectForWarning(href) +
3552
- ".");
3553
- void 0 !== options && "object" !== typeof options
3554
- ? (encountered +=
3555
- " The `options` argument encountered was " +
3556
- getValueDescriptorExpectingObjectForWarning(options) +
3557
- ".")
3558
- : options &&
3559
- "as" in options &&
3560
- "string" !== typeof options.as &&
3561
- (encountered +=
3562
- " The `as` option encountered was " +
3563
- getValueDescriptorExpectingObjectForWarning(options.as) +
3564
- ".");
3565
- encountered &&
3566
- console.error(
3567
- 'ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',
3568
- encountered
3569
- );
3570
- "string" === typeof href &&
3571
- (options
3572
- ? ((encountered = getCrossOriginStringAs(
3573
- options.as,
3574
- options.crossOrigin
3575
- )),
3576
- Internals.d.m(href, {
3577
- as:
3578
- "string" === typeof options.as && "script" !== options.as
3579
- ? options.as
3580
- : void 0,
3581
- crossOrigin: encountered,
3582
- integrity:
3583
- "string" === typeof options.integrity
3584
- ? options.integrity
3585
- : void 0
3586
- }))
3587
- : Internals.d.m(href));
3588
- };
3589
- reactDom_development.requestFormReset = function (form) {
3590
- Internals.d.r(form);
3591
- };
3592
- reactDom_development.unstable_batchedUpdates = function (fn, a) {
3593
- return fn(a);
3594
- };
3595
- reactDom_development.useFormState = function (action, initialState, permalink) {
3596
- return resolveDispatcher().useFormState(action, initialState, permalink);
3597
- };
3598
- reactDom_development.useFormStatus = function () {
3599
- return resolveDispatcher().useHostTransitionStatus();
3600
- };
3601
- reactDom_development.version = "19.2.8";
3602
- "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
3603
- "function" ===
3604
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
3605
- __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
3606
- })();
3607
- return reactDom_development;
3608
- }
3609
-
3610
1543
  var hasRequiredReactDom;
3611
1544
 
3612
1545
  function requireReactDom () {
@@ -3621,16 +1554,6 @@ function requireReactDom () {
3621
1554
  ) {
3622
1555
  return;
3623
1556
  }
3624
- if (process.env.NODE_ENV !== 'production') {
3625
- // This branch is unreachable because this function is only called
3626
- // in production, but the condition is true only in development.
3627
- // Therefore if the branch is still here, dead code elimination wasn't
3628
- // properly applied.
3629
- // Don't change the message. React DevTools relies on it. Also make sure
3630
- // this message doesn't occur elsewhere in this function, or it will cause
3631
- // a false positive.
3632
- throw new Error('^_^');
3633
- }
3634
1557
  try {
3635
1558
  // Verify that the code above has been dead code eliminated (DCE'd).
3636
1559
  __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);
@@ -3641,13 +1564,11 @@ function requireReactDom () {
3641
1564
  }
3642
1565
  }
3643
1566
 
3644
- if (process.env.NODE_ENV === 'production') {
1567
+ {
3645
1568
  // DCE check should happen before ReactDOM bundle executes so that
3646
1569
  // DevTools can report bad minification during injection.
3647
1570
  checkDCE();
3648
1571
  reactDom.exports = requireReactDom_production();
3649
- } else {
3650
- reactDom.exports = requireReactDom_development();
3651
1572
  }
3652
1573
  return reactDom.exports;
3653
1574
  }
@@ -4391,7 +2312,7 @@ function extractFormValues(fieldsState, formValues) {
4391
2312
  const hasOwn = (value, key) => value !== null &&
4392
2313
  isObjectType(value) &&
4393
2314
  Object.prototype.hasOwnProperty.call(value, key);
4394
- var has$1 = (object, path) => {
2315
+ var has = (object, path) => {
4395
2316
  if (!path) {
4396
2317
  return false;
4397
2318
  }
@@ -5314,7 +3235,7 @@ function createFormControl(props = {}) {
5314
3235
  ...updatedFormValues,
5315
3236
  };
5316
3237
  for (const fieldName of _names.mount) {
5317
- if (has$1(updatedFormValues, fieldName)) {
3238
+ if (has(updatedFormValues, fieldName)) {
5318
3239
  _setValue(fieldName, get(updatedFormValues, fieldName), options, true, true);
5319
3240
  }
5320
3241
  }
@@ -6307,6 +4228,34 @@ const t$1=(r,t,s)=>{if(r&&"reportValidity"in r){const o=get(s,t);r.setCustomVali
6307
4228
 
6308
4229
  function o(){return o=Object.assign?Object.assign.bind():function(r){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)({}).hasOwnProperty.call(n,o)&&(r[o]=n[o]);}return r},o.apply(null,arguments)}function t(r,e){try{var n=r();}catch(r){return e(r)}return n&&n.then?n.then(void 0,e):n}function s(r,e){for(var o=Object.create(null);r.length;){var t=r[0],s=t.code,i=t.message,u=t.path.join(".");if(!o[u])if("unionErrors"in t){var a,c,l=t.unionErrors.reduce(function(r,e){return e.errors.length<r.errors.length?e:r}).errors[0];o[u]={message:null!=(a=null==l?void 0:l.message)?a:i,type:null!=(c=null==l?void 0:l.code)?c:s};}else o[u]={message:i,type:s};if("unionErrors"in t&&t.unionErrors.forEach(function(e){return e.errors.forEach(function(e){return r.push(e)})}),e){var f=o[u].types,d=f&&f[t.code];o[u]=appendErrors(u,e,o,s,d?[].concat(d,t.message):t.message);}r.shift();}return o}function i(r,e){for(var t=Object.create(null),s=function(){var s=r[0],i=s.code,u=s.message,a=s.path.join(".");if(!t[a])if("invalid_union"===s.code&&s.errors.length>0){var c,l,f=s.errors.reduce(function(r,e){return e.length<r.length?e:r})[0];t[a]={message:null!=(c=null==f?void 0:f.message)?c:u,type:null!=(l=null==f?void 0:f.code)?l:i};}else t[a]={message:u,type:i};if("invalid_union"===s.code&&s.errors.forEach(function(e){return e.forEach(function(e){return r.push(o({},e,{path:[].concat(s.path,e.path)}))})}),e){var d=t[a].types,h=d&&d[s.code];t[a]=appendErrors(a,e,t,i,h?[].concat(h,s.message):s.message);}r.shift();};r.length;)s();return t}function u(n,o,u){if(void 0===u&&(u={}),function(r){return "_zod"in r&&"object"==typeof r._zod}(n))return function(s,a,c){try{return Promise.resolve(t(function(){function e(e){return c.shouldUseNativeValidation&&s$1({},c),{errors:{},values:u.raw?Object.assign({},s):e}}var t=n;return "sync"===u.mode?e(t.parse(s,o)):Promise.resolve(t.parseAsync(s,o)).then(e)},function(r){if(function(r){var e;return !(null==r||null==(e=r._zod)||null==(e=e.traits)||!e.has("$ZodError"))}(r))return {values:{},errors:o$1(i(r.issues,!c.shouldUseNativeValidation&&"all"===c.criteriaMode),c)};throw r}))}catch(r){return Promise.reject(r)}};if(function(r){return "_def"in r&&"object"==typeof r._def}(n))return function(i,a,c){try{return Promise.resolve(t(function(){return Promise.resolve(n["sync"===u.mode?"parse":"parseAsync"](i,o)).then(function(e){return c.shouldUseNativeValidation&&s$1({},c),{errors:{},values:u.raw?Object.assign({},i):e}})},function(r){if(function(r){return Array.isArray(null==r?void 0:r.issues)}(r))return {values:{},errors:o$1(s(r.errors,!c.shouldUseNativeValidation&&"all"===c.criteriaMode),c)};throw r}))}catch(r){return Promise.reject(r)}};throw new Error("Invalid input: not a Zod schema")}
6309
4230
 
4231
+ var _path$3;
4232
+ function _extends$3() { return _extends$3 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$3.apply(null, arguments); }
4233
+ var SvgCalendar = function SvgCalendar(props) {
4234
+ return /*#__PURE__*/reactExports.createElement("svg", _extends$3({
4235
+ xmlns: "http://www.w3.org/2000/svg",
4236
+ width: 16,
4237
+ height: 16,
4238
+ fill: "none"
4239
+ }, props), _path$3 || (_path$3 = /*#__PURE__*/reactExports.createElement("path", {
4240
+ fill: "currentColor",
4241
+ d: "M8.2 9.6a.77.77 0 0 1-.57-.23.77.77 0 0 1-.23-.57q0-.34.23-.57A.77.77 0 0 1 8.2 8q.34 0 .57.23T9 8.8a.77.77 0 0 1-.23.57.78.78 0 0 1-.57.23M5 9.6a.78.78 0 0 1-.57-.23.77.77 0 0 1-.23-.57q0-.34.23-.57A.78.78 0 0 1 5 8q.34 0 .57.23t.23.57a.77.77 0 0 1-.23.57.78.78 0 0 1-.57.23m6.4 0a.77.77 0 0 1-.57-.23.77.77 0 0 1-.23-.57q0-.34.23-.57A.77.77 0 0 1 11.4 8q.34 0 .57.23t.23.57a.77.77 0 0 1-.23.57.77.77 0 0 1-.57.23m-3.2 3.2a.77.77 0 0 1-.57-.23.77.77 0 0 1-.23-.57q0-.34.23-.57a.77.77 0 0 1 .57-.23q.34 0 .57.23T9 12a.77.77 0 0 1-.23.57.78.78 0 0 1-.57.23m-3.2 0a.78.78 0 0 1-.57-.23.77.77 0 0 1-.23-.57q0-.34.23-.57A.78.78 0 0 1 5 11.2q.34 0 .57.23t.23.57a.77.77 0 0 1-.23.57.78.78 0 0 1-.57.23m6.4 0a.77.77 0 0 1-.57-.23.77.77 0 0 1-.23-.57q0-.34.23-.57a.77.77 0 0 1 .57-.23q.34 0 .57.23t.23.57a.77.77 0 0 1-.23.57.77.77 0 0 1-.57.23M2.6 16q-.66 0-1.13-.47A1.54 1.54 0 0 1 1 14.4V3.2q0-.66.47-1.13T2.6 1.6h.8V0H5v1.6h6.4V0H13v1.6h.8q.66 0 1.13.47t.47 1.13v11.2q0 .66-.47 1.13T13.8 16zm0-1.6h11.2v-8H2.6z"
4242
+ })));
4243
+ };
4244
+
4245
+ var _path$2;
4246
+ function _extends$2() { return _extends$2 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$2.apply(null, arguments); }
4247
+ var SvgClear = function SvgClear(props) {
4248
+ return /*#__PURE__*/reactExports.createElement("svg", _extends$2({
4249
+ xmlns: "http://www.w3.org/2000/svg",
4250
+ width: 16,
4251
+ height: 16,
4252
+ fill: "none"
4253
+ }, props), _path$2 || (_path$2 = /*#__PURE__*/reactExports.createElement("path", {
4254
+ fill: "currentColor",
4255
+ d: "M12.987 3.042c-2.73-2.723-7.21-2.723-9.94 0-2.73 2.724-2.73 7.192 0 9.916a6.983 6.983 0 0 0 9.87 0c2.73-2.724 2.8-7.192.07-9.916m-3.01 7.89-1.96-1.954-1.96 1.955-.98-.978L7.037 8l-1.96-1.955.98-.978 1.96 1.955 1.96-1.955.98.978L8.997 8l1.96 1.955z"
4256
+ })));
4257
+ };
4258
+
6310
4259
  var css$9 = ":global(.theme-light) .wrapper {\n color: #333333;\n background-color: #ffffff;\n}\n:global(.theme-dark) .wrapper {\n color: #ffffff;\n background-color: #333333;\n}\n.wrapper {\n display: flex;\n flex-direction: column;\n align-items: start;\n gap: 2px;\n width: 100%;\n}\n\n.label {\n font-size: 15px;\n font-weight: 600;\n margin-bottom: 8px;\n}\n\n:global(.theme-light) .inputWrapper {\n color: #333333;\n background-color: #ffffff;\n border-color: #e1e1e1;\n}\n:global(.theme-dark) .inputWrapper {\n color: #ffffff;\n background-color: #333333;\n border-color: #aaaaaa;\n}\n.inputWrapper {\n border-style: solid;\n border-width: 1px;\n padding: 8px 15px;\n border-radius: 8px;\n display: flex;\n gap: 8px;\n justify-content: space-between;\n align-items: center;\n width: 100%;\n}\n\n:global(.theme-light) .errorWrapper {\n border-color: #ff383c;\n}\n:global(.theme-dark) .errorWrapper {\n border-color: #ff383c;\n}\n\n.input {\n border: none;\n outline: none;\n background-color: transparent;\n width: 100%;\n}\n:global(.theme-light) .input {\n color: #333333;\n}\n:global(.theme-dark) .input {\n color: #ffffff;\n}\n:global(.theme-light) .input::placeholder {\n color: #e1e1e1;\n}\n:global(.theme-dark) .input::placeholder {\n color: #aaaaaa;\n}\n\n.clear {\n border: none;\n background-color: transparent;\n width: max-content;\n padding: 0;\n}\n\n:global(.theme-light) .icon {\n color: #aaaaaa;\n}\n:global(.theme-dark) .icon {\n color: #aaaaaa;\n}\n\n:global(.theme-light) .error {\n color: #ff383c;\n}\n:global(.theme-dark) .error {\n color: #ff383c;\n}\n.error {\n height: 15px;\n}";
6311
4260
  n$1(css$9,{});
6312
4261
 
@@ -6315,7 +4264,7 @@ const Input = ({ label, error, className = '', id, onReset, placeholder, type =
6315
4264
  const inputId = id || `input-${generatedId}`;
6316
4265
  return (jsxRuntimeExports.jsxs("div", { className: css$9.wrapper, children: [label && (jsxRuntimeExports.jsx("label", { htmlFor: inputId, className: css$9.label, children: label })), jsxRuntimeExports.jsxs("div", { className: classNames(css$9.inputWrapper, {
6317
4266
  [css$9.errorWrapper]: error,
6318
- }), children: [isDateInput && jsxRuntimeExports.jsx(Calendar, { className: css$9.icon }), jsxRuntimeExports.jsx("input", { id: inputId, type: type, ref: ref, placeholder: placeholder, className: classNames(css$9.input, className), ...restProps }), isDateInput && onReset && (jsxRuntimeExports.jsx("button", { className: css$9.clear, onClick: onReset, type: "button", children: jsxRuntimeExports.jsx(Clear$1, { className: css$9.icon }) }))] }), jsxRuntimeExports.jsx("span", { className: css$9.error, children: error ?? '' })] }));
4267
+ }), children: [isDateInput && jsxRuntimeExports.jsx(SvgCalendar, { className: css$9.icon }), jsxRuntimeExports.jsx("input", { id: inputId, type: type, ref: ref, placeholder: placeholder, className: classNames(css$9.input, className), ...restProps }), isDateInput && onReset && (jsxRuntimeExports.jsx("button", { className: css$9.clear, onClick: onReset, type: "button", children: jsxRuntimeExports.jsx(SvgClear, { className: css$9.icon }) }))] }), jsxRuntimeExports.jsx("span", { className: css$9.error, children: error ?? '' })] }));
6319
4268
  };
6320
4269
 
6321
4270
  var css$8 = ".header {\n margin-bottom: 24px;\n margin-top: 8px;\n}\n\n.title {\n font-size: 18px;\n}\n\n.footer {\n display: flex;\n width: 100%;\n gap: 10px;\n justify-content: end;\n}\n\n.children {\n display: flex;\n gap: 8px;\n flex-direction: column;\n min-width: 300px;\n width: fit-content;\n margin-bottom: 24px;\n}\n\n:global(.theme-light) .modalButtons {\n background-color: rgba(47, 129, 237, 0.1647058824);\n border-color: #e1e1e1;\n color: #333333;\n}\n:global(.theme-dark) .modalButtons {\n background-color: rgba(47, 129, 237, 0.1647058824);\n border-color: #aaaaaa;\n color: #ffffff;\n}\n.modalButtons {\n border-style: solid;\n border-width: 1px;\n padding: 5px 10px;\n border-radius: 8px;\n}\n\n:global(.theme-light) .confirm {\n background-color: rgba(47, 129, 237, 0.5764705882);\n border-color: #e1e1e1;\n color: #ffffff;\n}\n:global(.theme-dark) .confirm {\n background-color: rgba(47, 129, 237, 0.5764705882);\n border-color: #aaaaaa;\n color: #e1e1e1;\n}";
@@ -11811,7 +9760,7 @@ const TasksManager = ({ onClose, isOpen, tasks, selectedDate, }) => {
11811
9760
  };
11812
9761
  return (jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsx(Modal, { isOpen: isOpen, onClose: onClose, children: jsxRuntimeExports.jsxs("div", { className: css$7.tasksManager, children: [jsxRuntimeExports.jsx("h1", { className: css$7.header, children: "Tasks for the day:" }), jsxRuntimeExports.jsx("button", { className: css$7.add, onClick: handleAddTask, children: "Add task" }), jsxRuntimeExports.jsxs("ul", { className: css$7.tasks, children: [tasks.length < 1 && (jsxRuntimeExports.jsx("li", { children: jsxRuntimeExports.jsx("p", { children: "No tasks added" }) })), tasks.map(({ id, title, completed }) => (jsxRuntimeExports.jsxs("li", { className: classNames(css$7.task, {
11813
9762
  [css$7.checked]: completed,
11814
- }), children: [jsxRuntimeExports.jsx("input", { type: "checkbox", checked: completed, onChange: handleToggle(id) }), jsxRuntimeExports.jsx("p", { className: css$7.title, children: title }), jsxRuntimeExports.jsx("button", { onClick: handleEditTask(id), className: css$7.action, children: jsxRuntimeExports.jsx(Edit, {}) }), jsxRuntimeExports.jsx("button", { onClick: handleDeleteTask(id), className: classNames(css$7.action, css$7.delete), children: jsxRuntimeExports.jsx(Delete, {}) })] }, id)))] })] }) }), jsxRuntimeExports.jsx(AddModal, { isOpen: addModal.isOpen, onClose: addModal.close, date: selectedDate }), jsxRuntimeExports.jsx(EditModal, { isOpen: editModal.isOpen, onClose: editModal.close, id: currentTaskId, date: selectedDate }), jsxRuntimeExports.jsx(DeleteModal, { isOpen: deleteModal.isOpen, onClose: deleteModal.close, id: currentTaskId })] }));
9763
+ }), children: [jsxRuntimeExports.jsx("input", { type: "checkbox", checked: completed, onChange: handleToggle(id) }), jsxRuntimeExports.jsx("p", { className: css$7.title, children: title }), jsxRuntimeExports.jsx("button", { onClick: handleEditTask(id), className: css$7.action, children: jsxRuntimeExports.jsx(SvgEdit, {}) }), jsxRuntimeExports.jsx("button", { onClick: handleDeleteTask(id), className: classNames(css$7.action, css$7.delete), children: jsxRuntimeExports.jsx(SvgDelete, {}) })] }, id)))] })] }) }), jsxRuntimeExports.jsx(AddModal, { isOpen: addModal.isOpen, onClose: addModal.close, date: selectedDate }), jsxRuntimeExports.jsx(EditModal, { isOpen: editModal.isOpen, onClose: editModal.close, id: currentTaskId, date: selectedDate }), jsxRuntimeExports.jsx(DeleteModal, { isOpen: deleteModal.isOpen, onClose: deleteModal.close, id: currentTaskId })] }));
11815
9764
  };
11816
9765
 
11817
9766
  const useTooltip = () => {
@@ -11896,13 +9845,47 @@ const MONTHS_NAMES = [
11896
9845
  'December',
11897
9846
  ];
11898
9847
 
9848
+ var _path$1, _path2$1;
9849
+ function _extends$1() { return _extends$1 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$1.apply(null, arguments); }
9850
+ var SvgNext = function SvgNext(props) {
9851
+ return /*#__PURE__*/reactExports.createElement("svg", _extends$1({
9852
+ xmlns: "http://www.w3.org/2000/svg",
9853
+ width: 16,
9854
+ height: 16,
9855
+ fill: "none"
9856
+ }, props), _path$1 || (_path$1 = /*#__PURE__*/reactExports.createElement("path", {
9857
+ fill: "currentColor",
9858
+ d: "m4.273 4-.94.94L6.387 8l-3.054 3.06.94.94 4-4z"
9859
+ })), _path2$1 || (_path2$1 = /*#__PURE__*/reactExports.createElement("path", {
9860
+ fill: "currentColor",
9861
+ d: "m8.667 4-.94.94L10.78 8l-3.053 3.06.94.94 4-4z"
9862
+ })));
9863
+ };
9864
+
9865
+ var _path, _path2;
9866
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
9867
+ var SvgPrev = function SvgPrev(props) {
9868
+ return /*#__PURE__*/reactExports.createElement("svg", _extends({
9869
+ xmlns: "http://www.w3.org/2000/svg",
9870
+ width: 16,
9871
+ height: 16,
9872
+ fill: "none"
9873
+ }, props), _path || (_path = /*#__PURE__*/reactExports.createElement("path", {
9874
+ fill: "currentColor",
9875
+ d: "m11.727 12 .94-.94L9.613 8l3.054-3.06-.94-.94-4 4z"
9876
+ })), _path2 || (_path2 = /*#__PURE__*/reactExports.createElement("path", {
9877
+ fill: "currentColor",
9878
+ d: "m7.333 12 .94-.94L5.22 8l3.053-3.06-.94-.94-4 4z"
9879
+ })));
9880
+ };
9881
+
11899
9882
  var css$5 = ":global(.theme-light) .month {\n color: #333333;\n background-color: #ffffff;\n}\n:global(.theme-dark) .month {\n color: #ffffff;\n background-color: #333333;\n}\n.month {\n display: flex;\n justify-content: space-between;\n align-items: center;\n width: 100%;\n padding-block: 5px;\n gap: 2px;\n font-weight: 700;\n}\n\n:global(.theme-light) .arrow {\n color: #333333;\n}\n:global(.theme-dark) .arrow {\n color: #ffffff;\n}\n.arrow {\n width: max-content;\n border: none;\n background-color: transparent;\n}\n:global(.theme-light) .arrow:hover {\n color: rgba(47, 129, 237, 0.5764705882);\n}\n:global(.theme-dark) .arrow:hover {\n color: rgba(47, 129, 237, 0.5764705882);\n}";
11900
9883
  n$1(css$5,{});
11901
9884
 
11902
9885
  const Month = ({ date, onPrev, onNext }) => {
11903
9886
  const year = date.getFullYear();
11904
9887
  const month = MONTHS_NAMES[date.getMonth()];
11905
- return (jsxRuntimeExports.jsxs("div", { className: css$5.month, children: [jsxRuntimeExports.jsx("button", { className: css$5.arrow, onClick: onPrev, type: "button", children: jsxRuntimeExports.jsx(Prev, {}) }), jsxRuntimeExports.jsxs("p", { children: [month, " ", year] }), jsxRuntimeExports.jsx("button", { className: css$5.arrow, onClick: onNext, type: "button", children: jsxRuntimeExports.jsx(Next, {}) })] }));
9888
+ return (jsxRuntimeExports.jsxs("div", { className: css$5.month, children: [jsxRuntimeExports.jsx("button", { className: css$5.arrow, onClick: onPrev, type: "button", children: jsxRuntimeExports.jsx(SvgPrev, {}) }), jsxRuntimeExports.jsxs("p", { children: [month, " ", year] }), jsxRuntimeExports.jsx("button", { className: css$5.arrow, onClick: onNext, type: "button", children: jsxRuntimeExports.jsx(SvgNext, {}) })] }));
11906
9889
  };
11907
9890
 
11908
9891
  const WEEKDAYS_NAMES = ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'];
@@ -15565,334 +13548,6 @@ try {
15565
13548
 
15566
13549
  var propTypes = {exports: {}};
15567
13550
 
15568
- var reactIs = {exports: {}};
15569
-
15570
- var reactIs_production_min = {};
15571
-
15572
- /** @license React v16.13.1
15573
- * react-is.production.min.js
15574
- *
15575
- * Copyright (c) Facebook, Inc. and its affiliates.
15576
- *
15577
- * This source code is licensed under the MIT license found in the
15578
- * LICENSE file in the root directory of this source tree.
15579
- */
15580
-
15581
- var hasRequiredReactIs_production_min;
15582
-
15583
- function requireReactIs_production_min () {
15584
- if (hasRequiredReactIs_production_min) return reactIs_production_min;
15585
- hasRequiredReactIs_production_min = 1;
15586
- var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?
15587
- Symbol.for("react.suspense_list"):60120,r=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.block"):60121,w=b?Symbol.for("react.fundamental"):60117,x=b?Symbol.for("react.responder"):60118,y=b?Symbol.for("react.scope"):60119;
15588
- function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}reactIs_production_min.AsyncMode=l;reactIs_production_min.ConcurrentMode=m;reactIs_production_min.ContextConsumer=k;reactIs_production_min.ContextProvider=h;reactIs_production_min.Element=c;reactIs_production_min.ForwardRef=n;reactIs_production_min.Fragment=e;reactIs_production_min.Lazy=t;reactIs_production_min.Memo=r;reactIs_production_min.Portal=d;
15589
- reactIs_production_min.Profiler=g;reactIs_production_min.StrictMode=f;reactIs_production_min.Suspense=p;reactIs_production_min.isAsyncMode=function(a){return A(a)||z(a)===l};reactIs_production_min.isConcurrentMode=A;reactIs_production_min.isContextConsumer=function(a){return z(a)===k};reactIs_production_min.isContextProvider=function(a){return z(a)===h};reactIs_production_min.isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===c};reactIs_production_min.isForwardRef=function(a){return z(a)===n};reactIs_production_min.isFragment=function(a){return z(a)===e};reactIs_production_min.isLazy=function(a){return z(a)===t};
15590
- reactIs_production_min.isMemo=function(a){return z(a)===r};reactIs_production_min.isPortal=function(a){return z(a)===d};reactIs_production_min.isProfiler=function(a){return z(a)===g};reactIs_production_min.isStrictMode=function(a){return z(a)===f};reactIs_production_min.isSuspense=function(a){return z(a)===p};
15591
- reactIs_production_min.isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||"object"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};reactIs_production_min.typeOf=z;
15592
- return reactIs_production_min;
15593
- }
15594
-
15595
- var reactIs_development = {};
15596
-
15597
- /** @license React v16.13.1
15598
- * react-is.development.js
15599
- *
15600
- * Copyright (c) Facebook, Inc. and its affiliates.
15601
- *
15602
- * This source code is licensed under the MIT license found in the
15603
- * LICENSE file in the root directory of this source tree.
15604
- */
15605
-
15606
- var hasRequiredReactIs_development;
15607
-
15608
- function requireReactIs_development () {
15609
- if (hasRequiredReactIs_development) return reactIs_development;
15610
- hasRequiredReactIs_development = 1;
15611
-
15612
-
15613
-
15614
- if (process.env.NODE_ENV !== "production") {
15615
- (function() {
15616
-
15617
- // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
15618
- // nor polyfill, then a plain number is used for performance.
15619
- var hasSymbol = typeof Symbol === 'function' && Symbol.for;
15620
- var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
15621
- var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
15622
- var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
15623
- var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
15624
- var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
15625
- var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
15626
- var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
15627
- // (unstable) APIs that have been removed. Can we remove the symbols?
15628
-
15629
- var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
15630
- var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
15631
- var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
15632
- var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
15633
- var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
15634
- var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
15635
- var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
15636
- var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
15637
- var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
15638
- var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
15639
- var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
15640
-
15641
- function isValidElementType(type) {
15642
- return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
15643
- type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
15644
- }
15645
-
15646
- function typeOf(object) {
15647
- if (typeof object === 'object' && object !== null) {
15648
- var $$typeof = object.$$typeof;
15649
-
15650
- switch ($$typeof) {
15651
- case REACT_ELEMENT_TYPE:
15652
- var type = object.type;
15653
-
15654
- switch (type) {
15655
- case REACT_ASYNC_MODE_TYPE:
15656
- case REACT_CONCURRENT_MODE_TYPE:
15657
- case REACT_FRAGMENT_TYPE:
15658
- case REACT_PROFILER_TYPE:
15659
- case REACT_STRICT_MODE_TYPE:
15660
- case REACT_SUSPENSE_TYPE:
15661
- return type;
15662
-
15663
- default:
15664
- var $$typeofType = type && type.$$typeof;
15665
-
15666
- switch ($$typeofType) {
15667
- case REACT_CONTEXT_TYPE:
15668
- case REACT_FORWARD_REF_TYPE:
15669
- case REACT_LAZY_TYPE:
15670
- case REACT_MEMO_TYPE:
15671
- case REACT_PROVIDER_TYPE:
15672
- return $$typeofType;
15673
-
15674
- default:
15675
- return $$typeof;
15676
- }
15677
-
15678
- }
15679
-
15680
- case REACT_PORTAL_TYPE:
15681
- return $$typeof;
15682
- }
15683
- }
15684
-
15685
- return undefined;
15686
- } // AsyncMode is deprecated along with isAsyncMode
15687
-
15688
- var AsyncMode = REACT_ASYNC_MODE_TYPE;
15689
- var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
15690
- var ContextConsumer = REACT_CONTEXT_TYPE;
15691
- var ContextProvider = REACT_PROVIDER_TYPE;
15692
- var Element = REACT_ELEMENT_TYPE;
15693
- var ForwardRef = REACT_FORWARD_REF_TYPE;
15694
- var Fragment = REACT_FRAGMENT_TYPE;
15695
- var Lazy = REACT_LAZY_TYPE;
15696
- var Memo = REACT_MEMO_TYPE;
15697
- var Portal = REACT_PORTAL_TYPE;
15698
- var Profiler = REACT_PROFILER_TYPE;
15699
- var StrictMode = REACT_STRICT_MODE_TYPE;
15700
- var Suspense = REACT_SUSPENSE_TYPE;
15701
- var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
15702
-
15703
- function isAsyncMode(object) {
15704
- {
15705
- if (!hasWarnedAboutDeprecatedIsAsyncMode) {
15706
- hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
15707
-
15708
- console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
15709
- }
15710
- }
15711
-
15712
- return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
15713
- }
15714
- function isConcurrentMode(object) {
15715
- return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
15716
- }
15717
- function isContextConsumer(object) {
15718
- return typeOf(object) === REACT_CONTEXT_TYPE;
15719
- }
15720
- function isContextProvider(object) {
15721
- return typeOf(object) === REACT_PROVIDER_TYPE;
15722
- }
15723
- function isElement(object) {
15724
- return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
15725
- }
15726
- function isForwardRef(object) {
15727
- return typeOf(object) === REACT_FORWARD_REF_TYPE;
15728
- }
15729
- function isFragment(object) {
15730
- return typeOf(object) === REACT_FRAGMENT_TYPE;
15731
- }
15732
- function isLazy(object) {
15733
- return typeOf(object) === REACT_LAZY_TYPE;
15734
- }
15735
- function isMemo(object) {
15736
- return typeOf(object) === REACT_MEMO_TYPE;
15737
- }
15738
- function isPortal(object) {
15739
- return typeOf(object) === REACT_PORTAL_TYPE;
15740
- }
15741
- function isProfiler(object) {
15742
- return typeOf(object) === REACT_PROFILER_TYPE;
15743
- }
15744
- function isStrictMode(object) {
15745
- return typeOf(object) === REACT_STRICT_MODE_TYPE;
15746
- }
15747
- function isSuspense(object) {
15748
- return typeOf(object) === REACT_SUSPENSE_TYPE;
15749
- }
15750
-
15751
- reactIs_development.AsyncMode = AsyncMode;
15752
- reactIs_development.ConcurrentMode = ConcurrentMode;
15753
- reactIs_development.ContextConsumer = ContextConsumer;
15754
- reactIs_development.ContextProvider = ContextProvider;
15755
- reactIs_development.Element = Element;
15756
- reactIs_development.ForwardRef = ForwardRef;
15757
- reactIs_development.Fragment = Fragment;
15758
- reactIs_development.Lazy = Lazy;
15759
- reactIs_development.Memo = Memo;
15760
- reactIs_development.Portal = Portal;
15761
- reactIs_development.Profiler = Profiler;
15762
- reactIs_development.StrictMode = StrictMode;
15763
- reactIs_development.Suspense = Suspense;
15764
- reactIs_development.isAsyncMode = isAsyncMode;
15765
- reactIs_development.isConcurrentMode = isConcurrentMode;
15766
- reactIs_development.isContextConsumer = isContextConsumer;
15767
- reactIs_development.isContextProvider = isContextProvider;
15768
- reactIs_development.isElement = isElement;
15769
- reactIs_development.isForwardRef = isForwardRef;
15770
- reactIs_development.isFragment = isFragment;
15771
- reactIs_development.isLazy = isLazy;
15772
- reactIs_development.isMemo = isMemo;
15773
- reactIs_development.isPortal = isPortal;
15774
- reactIs_development.isProfiler = isProfiler;
15775
- reactIs_development.isStrictMode = isStrictMode;
15776
- reactIs_development.isSuspense = isSuspense;
15777
- reactIs_development.isValidElementType = isValidElementType;
15778
- reactIs_development.typeOf = typeOf;
15779
- })();
15780
- }
15781
- return reactIs_development;
15782
- }
15783
-
15784
- var hasRequiredReactIs;
15785
-
15786
- function requireReactIs () {
15787
- if (hasRequiredReactIs) return reactIs.exports;
15788
- hasRequiredReactIs = 1;
15789
-
15790
- if (process.env.NODE_ENV === 'production') {
15791
- reactIs.exports = requireReactIs_production_min();
15792
- } else {
15793
- reactIs.exports = requireReactIs_development();
15794
- }
15795
- return reactIs.exports;
15796
- }
15797
-
15798
- /*
15799
- object-assign
15800
- (c) Sindre Sorhus
15801
- @license MIT
15802
- */
15803
-
15804
- var objectAssign;
15805
- var hasRequiredObjectAssign;
15806
-
15807
- function requireObjectAssign () {
15808
- if (hasRequiredObjectAssign) return objectAssign;
15809
- hasRequiredObjectAssign = 1;
15810
- /* eslint-disable no-unused-vars */
15811
- var getOwnPropertySymbols = Object.getOwnPropertySymbols;
15812
- var hasOwnProperty = Object.prototype.hasOwnProperty;
15813
- var propIsEnumerable = Object.prototype.propertyIsEnumerable;
15814
-
15815
- function toObject(val) {
15816
- if (val === null || val === undefined) {
15817
- throw new TypeError('Object.assign cannot be called with null or undefined');
15818
- }
15819
-
15820
- return Object(val);
15821
- }
15822
-
15823
- function shouldUseNative() {
15824
- try {
15825
- if (!Object.assign) {
15826
- return false;
15827
- }
15828
-
15829
- // Detect buggy property enumeration order in older V8 versions.
15830
-
15831
- // https://bugs.chromium.org/p/v8/issues/detail?id=4118
15832
- var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
15833
- test1[5] = 'de';
15834
- if (Object.getOwnPropertyNames(test1)[0] === '5') {
15835
- return false;
15836
- }
15837
-
15838
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
15839
- var test2 = {};
15840
- for (var i = 0; i < 10; i++) {
15841
- test2['_' + String.fromCharCode(i)] = i;
15842
- }
15843
- var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
15844
- return test2[n];
15845
- });
15846
- if (order2.join('') !== '0123456789') {
15847
- return false;
15848
- }
15849
-
15850
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
15851
- var test3 = {};
15852
- 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
15853
- test3[letter] = letter;
15854
- });
15855
- if (Object.keys(Object.assign({}, test3)).join('') !==
15856
- 'abcdefghijklmnopqrst') {
15857
- return false;
15858
- }
15859
-
15860
- return true;
15861
- } catch (err) {
15862
- // We don't expect any of the above to throw, but better to be safe.
15863
- return false;
15864
- }
15865
- }
15866
-
15867
- objectAssign = shouldUseNative() ? Object.assign : function (target, source) {
15868
- var from;
15869
- var to = toObject(target);
15870
- var symbols;
15871
-
15872
- for (var s = 1; s < arguments.length; s++) {
15873
- from = Object(arguments[s]);
15874
-
15875
- for (var key in from) {
15876
- if (hasOwnProperty.call(from, key)) {
15877
- to[key] = from[key];
15878
- }
15879
- }
15880
-
15881
- if (getOwnPropertySymbols) {
15882
- symbols = getOwnPropertySymbols(from);
15883
- for (var i = 0; i < symbols.length; i++) {
15884
- if (propIsEnumerable.call(from, symbols[i])) {
15885
- to[symbols[i]] = from[symbols[i]];
15886
- }
15887
- }
15888
- }
15889
- }
15890
-
15891
- return to;
15892
- };
15893
- return objectAssign;
15894
- }
15895
-
15896
13551
  /**
15897
13552
  * Copyright (c) 2013-present, Facebook, Inc.
15898
13553
  *
@@ -15913,745 +13568,6 @@ function requireReactPropTypesSecret () {
15913
13568
  return ReactPropTypesSecret_1;
15914
13569
  }
15915
13570
 
15916
- var has;
15917
- var hasRequiredHas;
15918
-
15919
- function requireHas () {
15920
- if (hasRequiredHas) return has;
15921
- hasRequiredHas = 1;
15922
- has = Function.call.bind(Object.prototype.hasOwnProperty);
15923
- return has;
15924
- }
15925
-
15926
- /**
15927
- * Copyright (c) 2013-present, Facebook, Inc.
15928
- *
15929
- * This source code is licensed under the MIT license found in the
15930
- * LICENSE file in the root directory of this source tree.
15931
- */
15932
-
15933
- var checkPropTypes_1;
15934
- var hasRequiredCheckPropTypes;
15935
-
15936
- function requireCheckPropTypes () {
15937
- if (hasRequiredCheckPropTypes) return checkPropTypes_1;
15938
- hasRequiredCheckPropTypes = 1;
15939
-
15940
- var printWarning = function() {};
15941
-
15942
- if (process.env.NODE_ENV !== 'production') {
15943
- var ReactPropTypesSecret = /*@__PURE__*/ requireReactPropTypesSecret();
15944
- var loggedTypeFailures = {};
15945
- var has = /*@__PURE__*/ requireHas();
15946
-
15947
- printWarning = function(text) {
15948
- var message = 'Warning: ' + text;
15949
- if (typeof console !== 'undefined') {
15950
- console.error(message);
15951
- }
15952
- try {
15953
- // --- Welcome to debugging React ---
15954
- // This error was thrown as a convenience so that you can use this stack
15955
- // to find the callsite that caused this warning to fire.
15956
- throw new Error(message);
15957
- } catch (x) { /**/ }
15958
- };
15959
- }
15960
-
15961
- /**
15962
- * Assert that the values match with the type specs.
15963
- * Error messages are memorized and will only be shown once.
15964
- *
15965
- * @param {object} typeSpecs Map of name to a ReactPropType
15966
- * @param {object} values Runtime values that need to be type-checked
15967
- * @param {string} location e.g. "prop", "context", "child context"
15968
- * @param {string} componentName Name of the component for error messages.
15969
- * @param {?Function} getStack Returns the component stack.
15970
- * @private
15971
- */
15972
- function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
15973
- if (process.env.NODE_ENV !== 'production') {
15974
- for (var typeSpecName in typeSpecs) {
15975
- if (has(typeSpecs, typeSpecName)) {
15976
- var error;
15977
- // Prop type validation may throw. In case they do, we don't want to
15978
- // fail the render phase where it didn't fail before. So we log it.
15979
- // After these have been cleaned up, we'll let them throw.
15980
- try {
15981
- // This is intentionally an invariant that gets caught. It's the same
15982
- // behavior as without this statement except with a better message.
15983
- if (typeof typeSpecs[typeSpecName] !== 'function') {
15984
- var err = Error(
15985
- (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
15986
- 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +
15987
- 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
15988
- );
15989
- err.name = 'Invariant Violation';
15990
- throw err;
15991
- }
15992
- error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
15993
- } catch (ex) {
15994
- error = ex;
15995
- }
15996
- if (error && !(error instanceof Error)) {
15997
- printWarning(
15998
- (componentName || 'React class') + ': type specification of ' +
15999
- location + ' `' + typeSpecName + '` is invalid; the type checker ' +
16000
- 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
16001
- 'You may have forgotten to pass an argument to the type checker ' +
16002
- 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
16003
- 'shape all require an argument).'
16004
- );
16005
- }
16006
- if (error instanceof Error && !(error.message in loggedTypeFailures)) {
16007
- // Only monitor this failure once because there tends to be a lot of the
16008
- // same error.
16009
- loggedTypeFailures[error.message] = true;
16010
-
16011
- var stack = getStack ? getStack() : '';
16012
-
16013
- printWarning(
16014
- 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
16015
- );
16016
- }
16017
- }
16018
- }
16019
- }
16020
- }
16021
-
16022
- /**
16023
- * Resets warning cache when testing.
16024
- *
16025
- * @private
16026
- */
16027
- checkPropTypes.resetWarningCache = function() {
16028
- if (process.env.NODE_ENV !== 'production') {
16029
- loggedTypeFailures = {};
16030
- }
16031
- };
16032
-
16033
- checkPropTypes_1 = checkPropTypes;
16034
- return checkPropTypes_1;
16035
- }
16036
-
16037
- /**
16038
- * Copyright (c) 2013-present, Facebook, Inc.
16039
- *
16040
- * This source code is licensed under the MIT license found in the
16041
- * LICENSE file in the root directory of this source tree.
16042
- */
16043
-
16044
- var factoryWithTypeCheckers;
16045
- var hasRequiredFactoryWithTypeCheckers;
16046
-
16047
- function requireFactoryWithTypeCheckers () {
16048
- if (hasRequiredFactoryWithTypeCheckers) return factoryWithTypeCheckers;
16049
- hasRequiredFactoryWithTypeCheckers = 1;
16050
-
16051
- var ReactIs = requireReactIs();
16052
- var assign = requireObjectAssign();
16053
-
16054
- var ReactPropTypesSecret = /*@__PURE__*/ requireReactPropTypesSecret();
16055
- var has = /*@__PURE__*/ requireHas();
16056
- var checkPropTypes = /*@__PURE__*/ requireCheckPropTypes();
16057
-
16058
- var printWarning = function() {};
16059
-
16060
- if (process.env.NODE_ENV !== 'production') {
16061
- printWarning = function(text) {
16062
- var message = 'Warning: ' + text;
16063
- if (typeof console !== 'undefined') {
16064
- console.error(message);
16065
- }
16066
- try {
16067
- // --- Welcome to debugging React ---
16068
- // This error was thrown as a convenience so that you can use this stack
16069
- // to find the callsite that caused this warning to fire.
16070
- throw new Error(message);
16071
- } catch (x) {}
16072
- };
16073
- }
16074
-
16075
- function emptyFunctionThatReturnsNull() {
16076
- return null;
16077
- }
16078
-
16079
- factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
16080
- /* global Symbol */
16081
- var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
16082
- var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
16083
-
16084
- /**
16085
- * Returns the iterator method function contained on the iterable object.
16086
- *
16087
- * Be sure to invoke the function with the iterable as context:
16088
- *
16089
- * var iteratorFn = getIteratorFn(myIterable);
16090
- * if (iteratorFn) {
16091
- * var iterator = iteratorFn.call(myIterable);
16092
- * ...
16093
- * }
16094
- *
16095
- * @param {?object} maybeIterable
16096
- * @return {?function}
16097
- */
16098
- function getIteratorFn(maybeIterable) {
16099
- var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
16100
- if (typeof iteratorFn === 'function') {
16101
- return iteratorFn;
16102
- }
16103
- }
16104
-
16105
- /**
16106
- * Collection of methods that allow declaration and validation of props that are
16107
- * supplied to React components. Example usage:
16108
- *
16109
- * var Props = require('ReactPropTypes');
16110
- * var MyArticle = React.createClass({
16111
- * propTypes: {
16112
- * // An optional string prop named "description".
16113
- * description: Props.string,
16114
- *
16115
- * // A required enum prop named "category".
16116
- * category: Props.oneOf(['News','Photos']).isRequired,
16117
- *
16118
- * // A prop named "dialog" that requires an instance of Dialog.
16119
- * dialog: Props.instanceOf(Dialog).isRequired
16120
- * },
16121
- * render: function() { ... }
16122
- * });
16123
- *
16124
- * A more formal specification of how these methods are used:
16125
- *
16126
- * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
16127
- * decl := ReactPropTypes.{type}(.isRequired)?
16128
- *
16129
- * Each and every declaration produces a function with the same signature. This
16130
- * allows the creation of custom validation functions. For example:
16131
- *
16132
- * var MyLink = React.createClass({
16133
- * propTypes: {
16134
- * // An optional string or URI prop named "href".
16135
- * href: function(props, propName, componentName) {
16136
- * var propValue = props[propName];
16137
- * if (propValue != null && typeof propValue !== 'string' &&
16138
- * !(propValue instanceof URI)) {
16139
- * return new Error(
16140
- * 'Expected a string or an URI for ' + propName + ' in ' +
16141
- * componentName
16142
- * );
16143
- * }
16144
- * }
16145
- * },
16146
- * render: function() {...}
16147
- * });
16148
- *
16149
- * @internal
16150
- */
16151
-
16152
- var ANONYMOUS = '<<anonymous>>';
16153
-
16154
- // Important!
16155
- // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
16156
- var ReactPropTypes = {
16157
- array: createPrimitiveTypeChecker('array'),
16158
- bigint: createPrimitiveTypeChecker('bigint'),
16159
- bool: createPrimitiveTypeChecker('boolean'),
16160
- func: createPrimitiveTypeChecker('function'),
16161
- number: createPrimitiveTypeChecker('number'),
16162
- object: createPrimitiveTypeChecker('object'),
16163
- string: createPrimitiveTypeChecker('string'),
16164
- symbol: createPrimitiveTypeChecker('symbol'),
16165
-
16166
- any: createAnyTypeChecker(),
16167
- arrayOf: createArrayOfTypeChecker,
16168
- element: createElementTypeChecker(),
16169
- elementType: createElementTypeTypeChecker(),
16170
- instanceOf: createInstanceTypeChecker,
16171
- node: createNodeChecker(),
16172
- objectOf: createObjectOfTypeChecker,
16173
- oneOf: createEnumTypeChecker,
16174
- oneOfType: createUnionTypeChecker,
16175
- shape: createShapeTypeChecker,
16176
- exact: createStrictShapeTypeChecker,
16177
- };
16178
-
16179
- /**
16180
- * inlined Object.is polyfill to avoid requiring consumers ship their own
16181
- * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
16182
- */
16183
- /*eslint-disable no-self-compare*/
16184
- function is(x, y) {
16185
- // SameValue algorithm
16186
- if (x === y) {
16187
- // Steps 1-5, 7-10
16188
- // Steps 6.b-6.e: +0 != -0
16189
- return x !== 0 || 1 / x === 1 / y;
16190
- } else {
16191
- // Step 6.a: NaN == NaN
16192
- return x !== x && y !== y;
16193
- }
16194
- }
16195
- /*eslint-enable no-self-compare*/
16196
-
16197
- /**
16198
- * We use an Error-like object for backward compatibility as people may call
16199
- * PropTypes directly and inspect their output. However, we don't use real
16200
- * Errors anymore. We don't inspect their stack anyway, and creating them
16201
- * is prohibitively expensive if they are created too often, such as what
16202
- * happens in oneOfType() for any type before the one that matched.
16203
- */
16204
- function PropTypeError(message, data) {
16205
- this.message = message;
16206
- this.data = data && typeof data === 'object' ? data: {};
16207
- this.stack = '';
16208
- }
16209
- // Make `instanceof Error` still work for returned errors.
16210
- PropTypeError.prototype = Error.prototype;
16211
-
16212
- function createChainableTypeChecker(validate) {
16213
- if (process.env.NODE_ENV !== 'production') {
16214
- var manualPropTypeCallCache = {};
16215
- var manualPropTypeWarningCount = 0;
16216
- }
16217
- function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
16218
- componentName = componentName || ANONYMOUS;
16219
- propFullName = propFullName || propName;
16220
-
16221
- if (secret !== ReactPropTypesSecret) {
16222
- if (throwOnDirectAccess) {
16223
- // New behavior only for users of `prop-types` package
16224
- var err = new Error(
16225
- 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
16226
- 'Use `PropTypes.checkPropTypes()` to call them. ' +
16227
- 'Read more at http://fb.me/use-check-prop-types'
16228
- );
16229
- err.name = 'Invariant Violation';
16230
- throw err;
16231
- } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {
16232
- // Old behavior for people using React.PropTypes
16233
- var cacheKey = componentName + ':' + propName;
16234
- if (
16235
- !manualPropTypeCallCache[cacheKey] &&
16236
- // Avoid spamming the console because they are often not actionable except for lib authors
16237
- manualPropTypeWarningCount < 3
16238
- ) {
16239
- printWarning(
16240
- 'You are manually calling a React.PropTypes validation ' +
16241
- 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
16242
- 'and will throw in the standalone `prop-types` package. ' +
16243
- 'You may be seeing this warning due to a third-party PropTypes ' +
16244
- 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
16245
- );
16246
- manualPropTypeCallCache[cacheKey] = true;
16247
- manualPropTypeWarningCount++;
16248
- }
16249
- }
16250
- }
16251
- if (props[propName] == null) {
16252
- if (isRequired) {
16253
- if (props[propName] === null) {
16254
- return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
16255
- }
16256
- return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
16257
- }
16258
- return null;
16259
- } else {
16260
- return validate(props, propName, componentName, location, propFullName);
16261
- }
16262
- }
16263
-
16264
- var chainedCheckType = checkType.bind(null, false);
16265
- chainedCheckType.isRequired = checkType.bind(null, true);
16266
-
16267
- return chainedCheckType;
16268
- }
16269
-
16270
- function createPrimitiveTypeChecker(expectedType) {
16271
- function validate(props, propName, componentName, location, propFullName, secret) {
16272
- var propValue = props[propName];
16273
- var propType = getPropType(propValue);
16274
- if (propType !== expectedType) {
16275
- // `propValue` being instance of, say, date/regexp, pass the 'object'
16276
- // check, but we can offer a more precise error message here rather than
16277
- // 'of type `object`'.
16278
- var preciseType = getPreciseType(propValue);
16279
-
16280
- return new PropTypeError(
16281
- 'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),
16282
- {expectedType: expectedType}
16283
- );
16284
- }
16285
- return null;
16286
- }
16287
- return createChainableTypeChecker(validate);
16288
- }
16289
-
16290
- function createAnyTypeChecker() {
16291
- return createChainableTypeChecker(emptyFunctionThatReturnsNull);
16292
- }
16293
-
16294
- function createArrayOfTypeChecker(typeChecker) {
16295
- function validate(props, propName, componentName, location, propFullName) {
16296
- if (typeof typeChecker !== 'function') {
16297
- return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
16298
- }
16299
- var propValue = props[propName];
16300
- if (!Array.isArray(propValue)) {
16301
- var propType = getPropType(propValue);
16302
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
16303
- }
16304
- for (var i = 0; i < propValue.length; i++) {
16305
- var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
16306
- if (error instanceof Error) {
16307
- return error;
16308
- }
16309
- }
16310
- return null;
16311
- }
16312
- return createChainableTypeChecker(validate);
16313
- }
16314
-
16315
- function createElementTypeChecker() {
16316
- function validate(props, propName, componentName, location, propFullName) {
16317
- var propValue = props[propName];
16318
- if (!isValidElement(propValue)) {
16319
- var propType = getPropType(propValue);
16320
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
16321
- }
16322
- return null;
16323
- }
16324
- return createChainableTypeChecker(validate);
16325
- }
16326
-
16327
- function createElementTypeTypeChecker() {
16328
- function validate(props, propName, componentName, location, propFullName) {
16329
- var propValue = props[propName];
16330
- if (!ReactIs.isValidElementType(propValue)) {
16331
- var propType = getPropType(propValue);
16332
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
16333
- }
16334
- return null;
16335
- }
16336
- return createChainableTypeChecker(validate);
16337
- }
16338
-
16339
- function createInstanceTypeChecker(expectedClass) {
16340
- function validate(props, propName, componentName, location, propFullName) {
16341
- if (!(props[propName] instanceof expectedClass)) {
16342
- var expectedClassName = expectedClass.name || ANONYMOUS;
16343
- var actualClassName = getClassName(props[propName]);
16344
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
16345
- }
16346
- return null;
16347
- }
16348
- return createChainableTypeChecker(validate);
16349
- }
16350
-
16351
- function createEnumTypeChecker(expectedValues) {
16352
- if (!Array.isArray(expectedValues)) {
16353
- if (process.env.NODE_ENV !== 'production') {
16354
- if (arguments.length > 1) {
16355
- printWarning(
16356
- 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
16357
- 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
16358
- );
16359
- } else {
16360
- printWarning('Invalid argument supplied to oneOf, expected an array.');
16361
- }
16362
- }
16363
- return emptyFunctionThatReturnsNull;
16364
- }
16365
-
16366
- function validate(props, propName, componentName, location, propFullName) {
16367
- var propValue = props[propName];
16368
- for (var i = 0; i < expectedValues.length; i++) {
16369
- if (is(propValue, expectedValues[i])) {
16370
- return null;
16371
- }
16372
- }
16373
-
16374
- var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
16375
- var type = getPreciseType(value);
16376
- if (type === 'symbol') {
16377
- return String(value);
16378
- }
16379
- return value;
16380
- });
16381
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
16382
- }
16383
- return createChainableTypeChecker(validate);
16384
- }
16385
-
16386
- function createObjectOfTypeChecker(typeChecker) {
16387
- function validate(props, propName, componentName, location, propFullName) {
16388
- if (typeof typeChecker !== 'function') {
16389
- return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
16390
- }
16391
- var propValue = props[propName];
16392
- var propType = getPropType(propValue);
16393
- if (propType !== 'object') {
16394
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
16395
- }
16396
- for (var key in propValue) {
16397
- if (has(propValue, key)) {
16398
- var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
16399
- if (error instanceof Error) {
16400
- return error;
16401
- }
16402
- }
16403
- }
16404
- return null;
16405
- }
16406
- return createChainableTypeChecker(validate);
16407
- }
16408
-
16409
- function createUnionTypeChecker(arrayOfTypeCheckers) {
16410
- if (!Array.isArray(arrayOfTypeCheckers)) {
16411
- process.env.NODE_ENV !== 'production' ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
16412
- return emptyFunctionThatReturnsNull;
16413
- }
16414
-
16415
- for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
16416
- var checker = arrayOfTypeCheckers[i];
16417
- if (typeof checker !== 'function') {
16418
- printWarning(
16419
- 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
16420
- 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
16421
- );
16422
- return emptyFunctionThatReturnsNull;
16423
- }
16424
- }
16425
-
16426
- function validate(props, propName, componentName, location, propFullName) {
16427
- var expectedTypes = [];
16428
- for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
16429
- var checker = arrayOfTypeCheckers[i];
16430
- var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
16431
- if (checkerResult == null) {
16432
- return null;
16433
- }
16434
- if (checkerResult.data && has(checkerResult.data, 'expectedType')) {
16435
- expectedTypes.push(checkerResult.data.expectedType);
16436
- }
16437
- }
16438
- var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';
16439
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
16440
- }
16441
- return createChainableTypeChecker(validate);
16442
- }
16443
-
16444
- function createNodeChecker() {
16445
- function validate(props, propName, componentName, location, propFullName) {
16446
- if (!isNode(props[propName])) {
16447
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
16448
- }
16449
- return null;
16450
- }
16451
- return createChainableTypeChecker(validate);
16452
- }
16453
-
16454
- function invalidValidatorError(componentName, location, propFullName, key, type) {
16455
- return new PropTypeError(
16456
- (componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +
16457
- 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'
16458
- );
16459
- }
16460
-
16461
- function createShapeTypeChecker(shapeTypes) {
16462
- function validate(props, propName, componentName, location, propFullName) {
16463
- var propValue = props[propName];
16464
- var propType = getPropType(propValue);
16465
- if (propType !== 'object') {
16466
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
16467
- }
16468
- for (var key in shapeTypes) {
16469
- var checker = shapeTypes[key];
16470
- if (typeof checker !== 'function') {
16471
- return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
16472
- }
16473
- var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
16474
- if (error) {
16475
- return error;
16476
- }
16477
- }
16478
- return null;
16479
- }
16480
- return createChainableTypeChecker(validate);
16481
- }
16482
-
16483
- function createStrictShapeTypeChecker(shapeTypes) {
16484
- function validate(props, propName, componentName, location, propFullName) {
16485
- var propValue = props[propName];
16486
- var propType = getPropType(propValue);
16487
- if (propType !== 'object') {
16488
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
16489
- }
16490
- // We need to check all keys in case some are required but missing from props.
16491
- var allKeys = assign({}, props[propName], shapeTypes);
16492
- for (var key in allKeys) {
16493
- var checker = shapeTypes[key];
16494
- if (has(shapeTypes, key) && typeof checker !== 'function') {
16495
- return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
16496
- }
16497
- if (!checker) {
16498
- return new PropTypeError(
16499
- 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
16500
- '\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
16501
- '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
16502
- );
16503
- }
16504
- var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
16505
- if (error) {
16506
- return error;
16507
- }
16508
- }
16509
- return null;
16510
- }
16511
-
16512
- return createChainableTypeChecker(validate);
16513
- }
16514
-
16515
- function isNode(propValue) {
16516
- switch (typeof propValue) {
16517
- case 'number':
16518
- case 'string':
16519
- case 'undefined':
16520
- return true;
16521
- case 'boolean':
16522
- return !propValue;
16523
- case 'object':
16524
- if (Array.isArray(propValue)) {
16525
- return propValue.every(isNode);
16526
- }
16527
- if (propValue === null || isValidElement(propValue)) {
16528
- return true;
16529
- }
16530
-
16531
- var iteratorFn = getIteratorFn(propValue);
16532
- if (iteratorFn) {
16533
- var iterator = iteratorFn.call(propValue);
16534
- var step;
16535
- if (iteratorFn !== propValue.entries) {
16536
- while (!(step = iterator.next()).done) {
16537
- if (!isNode(step.value)) {
16538
- return false;
16539
- }
16540
- }
16541
- } else {
16542
- // Iterator will provide entry [k,v] tuples rather than values.
16543
- while (!(step = iterator.next()).done) {
16544
- var entry = step.value;
16545
- if (entry) {
16546
- if (!isNode(entry[1])) {
16547
- return false;
16548
- }
16549
- }
16550
- }
16551
- }
16552
- } else {
16553
- return false;
16554
- }
16555
-
16556
- return true;
16557
- default:
16558
- return false;
16559
- }
16560
- }
16561
-
16562
- function isSymbol(propType, propValue) {
16563
- // Native Symbol.
16564
- if (propType === 'symbol') {
16565
- return true;
16566
- }
16567
-
16568
- // falsy value can't be a Symbol
16569
- if (!propValue) {
16570
- return false;
16571
- }
16572
-
16573
- // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
16574
- if (propValue['@@toStringTag'] === 'Symbol') {
16575
- return true;
16576
- }
16577
-
16578
- // Fallback for non-spec compliant Symbols which are polyfilled.
16579
- if (typeof Symbol === 'function' && propValue instanceof Symbol) {
16580
- return true;
16581
- }
16582
-
16583
- return false;
16584
- }
16585
-
16586
- // Equivalent of `typeof` but with special handling for array and regexp.
16587
- function getPropType(propValue) {
16588
- var propType = typeof propValue;
16589
- if (Array.isArray(propValue)) {
16590
- return 'array';
16591
- }
16592
- if (propValue instanceof RegExp) {
16593
- // Old webkits (at least until Android 4.0) return 'function' rather than
16594
- // 'object' for typeof a RegExp. We'll normalize this here so that /bla/
16595
- // passes PropTypes.object.
16596
- return 'object';
16597
- }
16598
- if (isSymbol(propType, propValue)) {
16599
- return 'symbol';
16600
- }
16601
- return propType;
16602
- }
16603
-
16604
- // This handles more types than `getPropType`. Only used for error messages.
16605
- // See `createPrimitiveTypeChecker`.
16606
- function getPreciseType(propValue) {
16607
- if (typeof propValue === 'undefined' || propValue === null) {
16608
- return '' + propValue;
16609
- }
16610
- var propType = getPropType(propValue);
16611
- if (propType === 'object') {
16612
- if (propValue instanceof Date) {
16613
- return 'date';
16614
- } else if (propValue instanceof RegExp) {
16615
- return 'regexp';
16616
- }
16617
- }
16618
- return propType;
16619
- }
16620
-
16621
- // Returns a string that is postfixed to a warning about an invalid type.
16622
- // For example, "undefined" or "of type array"
16623
- function getPostfixForTypeWarning(value) {
16624
- var type = getPreciseType(value);
16625
- switch (type) {
16626
- case 'array':
16627
- case 'object':
16628
- return 'an ' + type;
16629
- case 'boolean':
16630
- case 'date':
16631
- case 'regexp':
16632
- return 'a ' + type;
16633
- default:
16634
- return type;
16635
- }
16636
- }
16637
-
16638
- // Returns class name of the object, if any.
16639
- function getClassName(propValue) {
16640
- if (!propValue.constructor || !propValue.constructor.name) {
16641
- return ANONYMOUS;
16642
- }
16643
- return propValue.constructor.name;
16644
- }
16645
-
16646
- ReactPropTypes.checkPropTypes = checkPropTypes;
16647
- ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
16648
- ReactPropTypes.PropTypes = ReactPropTypes;
16649
-
16650
- return ReactPropTypes;
16651
- };
16652
- return factoryWithTypeCheckers;
16653
- }
16654
-
16655
13571
  /**
16656
13572
  * Copyright (c) 2013-present, Facebook, Inc.
16657
13573
  *
@@ -16735,14 +13651,7 @@ var hasRequiredPropTypes;
16735
13651
  function requirePropTypes () {
16736
13652
  if (hasRequiredPropTypes) return propTypes.exports;
16737
13653
  hasRequiredPropTypes = 1;
16738
- if (process.env.NODE_ENV !== 'production') {
16739
- var ReactIs = requireReactIs();
16740
-
16741
- // By explicitly using `prop-types` you are opting into new development behavior.
16742
- // http://fb.me/prop-types-in-prod
16743
- var throwOnDirectAccess = true;
16744
- propTypes.exports = /*@__PURE__*/ requireFactoryWithTypeCheckers()(ReactIs.isElement, throwOnDirectAccess);
16745
- } else {
13654
+ {
16746
13655
  // By explicitly using `prop-types` you are opting into new production behavior.
16747
13656
  // http://fb.me/prop-types-in-prod
16748
13657
  propTypes.exports = /*@__PURE__*/ requireFactoryWithThrowingShims()();