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