saafe-redirection-flow 2.0.0

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.
Files changed (225) hide show
  1. package/.github/workflows/build-and-deploy.yml +41 -0
  2. package/.gitlab-ci.yml +108 -0
  3. package/.releaserc.json +18 -0
  4. package/.storybook/main.ts +28 -0
  5. package/.storybook/preview.ts +16 -0
  6. package/.storybook/vitest.setup.ts +9 -0
  7. package/.vite/deps/@radix-ui_react-avatar.js +230 -0
  8. package/.vite/deps/@radix-ui_react-avatar.js.map +7 -0
  9. package/.vite/deps/@radix-ui_react-slot.js +12 -0
  10. package/.vite/deps/@radix-ui_react-slot.js.map +7 -0
  11. package/.vite/deps/_metadata.json +79 -0
  12. package/.vite/deps/chunk-5VGQBUCU.js +597 -0
  13. package/.vite/deps/chunk-5VGQBUCU.js.map +7 -0
  14. package/.vite/deps/chunk-DC5AMYBS.js +38 -0
  15. package/.vite/deps/chunk-DC5AMYBS.js.map +7 -0
  16. package/.vite/deps/chunk-HUIEPYH7.js +11265 -0
  17. package/.vite/deps/chunk-HUIEPYH7.js.map +7 -0
  18. package/.vite/deps/chunk-TKHB4QMX.js +281 -0
  19. package/.vite/deps/chunk-TKHB4QMX.js.map +7 -0
  20. package/.vite/deps/chunk-YLDSBLSF.js +1139 -0
  21. package/.vite/deps/chunk-YLDSBLSF.js.map +7 -0
  22. package/.vite/deps/class-variance-authority.js +63 -0
  23. package/.vite/deps/class-variance-authority.js.map +7 -0
  24. package/.vite/deps/lucide-react.js +36984 -0
  25. package/.vite/deps/lucide-react.js.map +7 -0
  26. package/.vite/deps/package.json +3 -0
  27. package/.vite/deps/react-dom_client.js +17917 -0
  28. package/.vite/deps/react-dom_client.js.map +7 -0
  29. package/.vite/deps/react-router-dom.js +452 -0
  30. package/.vite/deps/react-router-dom.js.map +7 -0
  31. package/.vite/deps/react-router.js +234 -0
  32. package/.vite/deps/react-router.js.map +7 -0
  33. package/.vite/deps/react.js +5 -0
  34. package/.vite/deps/react.js.map +7 -0
  35. package/.vite/deps/react_jsx-dev-runtime.js +470 -0
  36. package/.vite/deps/react_jsx-dev-runtime.js.map +7 -0
  37. package/CHANGELOG.md +420 -0
  38. package/LICENSE +21 -0
  39. package/README.md +129 -0
  40. package/RELEASE_CHEATSHEET.md +93 -0
  41. package/RELEASE_NOTES.md +120 -0
  42. package/components.json +21 -0
  43. package/docs/DEPLOYMENT_WORKFLOW.md +262 -0
  44. package/docs/RELEASE_GUIDE.md +591 -0
  45. package/docs/architecture.md +432 -0
  46. package/docs/components.md +199 -0
  47. package/docs/index.md +69 -0
  48. package/docs/local-release-workflow.md +234 -0
  49. package/docs/routes.md +118 -0
  50. package/docs/sdk-integration.md +325 -0
  51. package/docs/semantic-release.md +124 -0
  52. package/docs/user-flow.md +206 -0
  53. package/eslint.config.js +28 -0
  54. package/index.html +19 -0
  55. package/install.sh +198 -0
  56. package/package.json +115 -0
  57. package/public/images/bank-logo.png +0 -0
  58. package/public/saafe-icon.svg +9 -0
  59. package/src/App.tsx +171 -0
  60. package/src/__tests__/url-parameters.test.ts +82 -0
  61. package/src/assets/brand/applestore.svg +13 -0
  62. package/src/assets/brand/playstore.svg +23 -0
  63. package/src/assets/brand/saafe-color-white-logo.svg +14 -0
  64. package/src/assets/brand/saafe-icon.svg +9 -0
  65. package/src/assets/brand/saafe-logo.svg +18 -0
  66. package/src/assets/icons/check-icon-dark.svg +27 -0
  67. package/src/assets/icons/check-icon.svg +23 -0
  68. package/src/components/ErrorBoundary.tsx +132 -0
  69. package/src/components/alert/alert.tsx +27 -0
  70. package/src/components/auth/AuthGuard.tsx +76 -0
  71. package/src/components/cards/BankCard.stories.tsx +69 -0
  72. package/src/components/cards/BankCard.tsx +227 -0
  73. package/src/components/cards/OuterCard.tsx +109 -0
  74. package/src/components/cards/WrapperCard.tsx +64 -0
  75. package/src/components/documents/PrivacyContent.tsx +1 -0
  76. package/src/components/dummyFooter.tsx +29 -0
  77. package/src/components/icons/github.tsx +12 -0
  78. package/src/components/language/LanguageSwitcher.tsx +44 -0
  79. package/src/components/layouts/FrostedLayout.stories.tsx +42 -0
  80. package/src/components/layouts/FrostedLayout.tsx +333 -0
  81. package/src/components/layouts/MobileLayout.tsx +403 -0
  82. package/src/components/mobile-background.tsx +136 -0
  83. package/src/components/mobileAppDownload.tsx +30 -0
  84. package/src/components/modal/ModalComp.tsx +27 -0
  85. package/src/components/mode-toggle.tsx +36 -0
  86. package/src/components/page-header.tsx +50 -0
  87. package/src/components/session/SessionTimeoutScreen.tsx +134 -0
  88. package/src/components/session/SessionTimer.tsx +173 -0
  89. package/src/components/step-navigation.tsx +87 -0
  90. package/src/components/title/AppBar.stories.tsx +50 -0
  91. package/src/components/title/AppBar.tsx +150 -0
  92. package/src/components/title/SectionTitle.tsx +31 -0
  93. package/src/components/ui/AnimatedButton.module.css +13 -0
  94. package/src/components/ui/alert.tsx +66 -0
  95. package/src/components/ui/animatedButton.tsx +111 -0
  96. package/src/components/ui/avatar.tsx +51 -0
  97. package/src/components/ui/badge.tsx +36 -0
  98. package/src/components/ui/bottom-sheet.tsx +122 -0
  99. package/src/components/ui/button.tsx +59 -0
  100. package/src/components/ui/calendar.tsx +86 -0
  101. package/src/components/ui/card.tsx +92 -0
  102. package/src/components/ui/checkbox.stories.tsx +49 -0
  103. package/src/components/ui/checkbox.tsx +67 -0
  104. package/src/components/ui/collapsible.tsx +45 -0
  105. package/src/components/ui/dialog.tsx +134 -0
  106. package/src/components/ui/document-link.tsx +26 -0
  107. package/src/components/ui/dot-stepper.tsx +57 -0
  108. package/src/components/ui/dropdown-menu.tsx +255 -0
  109. package/src/components/ui/form.tsx +165 -0
  110. package/src/components/ui/frosted-panel.stories.tsx +86 -0
  111. package/src/components/ui/frosted-panel.tsx +276 -0
  112. package/src/components/ui/input.tsx +39 -0
  113. package/src/components/ui/label.stories.tsx +67 -0
  114. package/src/components/ui/label.tsx +23 -0
  115. package/src/components/ui/mobile-footer.tsx +54 -0
  116. package/src/components/ui/modal.tsx +90 -0
  117. package/src/components/ui/otp-input.stories.tsx +62 -0
  118. package/src/components/ui/otp-input.tsx +221 -0
  119. package/src/components/ui/platform-specific-behavior.tsx +28 -0
  120. package/src/components/ui/popover.tsx +46 -0
  121. package/src/components/ui/progress.tsx +103 -0
  122. package/src/components/ui/radio-group.tsx +45 -0
  123. package/src/components/ui/scroll-area.tsx +56 -0
  124. package/src/components/ui/sdk-params-docs.tsx +53 -0
  125. package/src/components/ui/select.tsx +159 -0
  126. package/src/components/ui/separator.tsx +28 -0
  127. package/src/components/ui/sheet.tsx +137 -0
  128. package/src/components/ui/sidebar.tsx +724 -0
  129. package/src/components/ui/skeleton.stories.tsx +50 -0
  130. package/src/components/ui/skeleton.tsx +15 -0
  131. package/src/components/ui/sonner.tsx +23 -0
  132. package/src/components/ui/step.stories.tsx +132 -0
  133. package/src/components/ui/step.tsx +234 -0
  134. package/src/components/ui/stepper-progress.tsx +136 -0
  135. package/src/components/ui/stepper.tsx +259 -0
  136. package/src/components/ui/tabs.tsx +55 -0
  137. package/src/components/ui/tooltip.tsx +61 -0
  138. package/src/components/ui/url-decode-loader.tsx +36 -0
  139. package/src/components/ui/version-display.tsx +104 -0
  140. package/src/components/ui/web-footer.tsx +36 -0
  141. package/src/config/environments.ts +99 -0
  142. package/src/config/urls.ts +53 -0
  143. package/src/const/fiTypeCategoryMap.ts +19 -0
  144. package/src/contexts/LanguageContext.tsx +41 -0
  145. package/src/contexts/RTLContext.tsx +42 -0
  146. package/src/contexts/ThemeContext.tsx +93 -0
  147. package/src/hooks/use-account-discovery.ts +205 -0
  148. package/src/hooks/use-auth-query.ts +141 -0
  149. package/src/hooks/use-fip-query.ts +72 -0
  150. package/src/hooks/use-media-query.ts +32 -0
  151. package/src/hooks/use-mobile.ts +24 -0
  152. package/src/hooks/use-page-title.tsx +48 -0
  153. package/src/hooks/use-platform.ts +52 -0
  154. package/src/hooks/use-trusted-count.ts +21 -0
  155. package/src/hooks/use-url-decode.ts +90 -0
  156. package/src/hooks/useStep.ts +170 -0
  157. package/src/index.css +154 -0
  158. package/src/interfaces/app.interfaces.ts +39 -0
  159. package/src/interfaces/services.interfaces.ts +65 -0
  160. package/src/lib/i18n.ts +68 -0
  161. package/src/lib/utils.ts +6 -0
  162. package/src/locales/en/common.json +167 -0
  163. package/src/locales/hi/common.json +137 -0
  164. package/src/locales/kn/common.json +137 -0
  165. package/src/locales/ml/common.json +137 -0
  166. package/src/locales/ta/common.json +137 -0
  167. package/src/locales/te/common.json +137 -0
  168. package/src/locales/ur/common.json +138 -0
  169. package/src/main.tsx +46 -0
  170. package/src/pages/Login.tsx +363 -0
  171. package/src/pages/accounts/AccountsToProceed.tsx +396 -0
  172. package/src/pages/accounts/Discover.tsx +76 -0
  173. package/src/pages/accounts/DiscoverAccount.tsx +751 -0
  174. package/src/pages/accounts/LinkSelectedAccounts.tsx +638 -0
  175. package/src/pages/accounts/OldUser.tsx +329 -0
  176. package/src/pages/accounts/link-accounts.tsx +913 -0
  177. package/src/pages/consent/ReviewConsent.tsx +836 -0
  178. package/src/pages/consent/rejected.tsx +253 -0
  179. package/src/pages/consent/success.tsx +220 -0
  180. package/src/providers/query-provider.tsx +24 -0
  181. package/src/providers/toast-provider.tsx +26 -0
  182. package/src/services/api/account.service.ts +296 -0
  183. package/src/services/api/auth.service.ts +206 -0
  184. package/src/services/api/axios.ts +138 -0
  185. package/src/services/api/consent.service.ts +142 -0
  186. package/src/services/api/decode.service.ts +53 -0
  187. package/src/services/api/feedback.service.ts +34 -0
  188. package/src/services/api/fip.service.ts +187 -0
  189. package/src/services/api/index.ts +9 -0
  190. package/src/services/api/public.service.ts +18 -0
  191. package/src/services/api.ts +2 -0
  192. package/src/services/postMessage.service.ts +179 -0
  193. package/src/store/NavigationBlockContext.tsx +34 -0
  194. package/src/store/auth.store.ts +79 -0
  195. package/src/store/fip.store.ts +396 -0
  196. package/src/store/mandatoryConsent.store.ts +24 -0
  197. package/src/store/redirect.store.ts +73 -0
  198. package/src/store/step.store.ts +124 -0
  199. package/src/stories/Button.stories.ts +53 -0
  200. package/src/stories/Button.tsx +37 -0
  201. package/src/stories/Configure.mdx +364 -0
  202. package/src/stories/Header.stories.ts +33 -0
  203. package/src/stories/Header.tsx +56 -0
  204. package/src/stories/Page.stories.ts +32 -0
  205. package/src/stories/Page.tsx +73 -0
  206. package/src/stories/button.css +30 -0
  207. package/src/stories/header.css +32 -0
  208. package/src/stories/page.css +68 -0
  209. package/src/styles/rtl-utils.css +90 -0
  210. package/src/styles/rtl.css +105 -0
  211. package/src/utils/api-error.ts +26 -0
  212. package/src/utils/cn.ts +10 -0
  213. package/src/utils/error-callback.ts +116 -0
  214. package/src/utils/formatAccountNumber.ts +9 -0
  215. package/src/utils/handleIdentifiers.ts +90 -0
  216. package/src/utils/posthog.ts +67 -0
  217. package/src/utils/toast-helpers.ts +61 -0
  218. package/src/vite-env.d.ts +1 -0
  219. package/stage-aa-2506251021.zip +0 -0
  220. package/tsconfig.app.json +33 -0
  221. package/tsconfig.json +13 -0
  222. package/tsconfig.node.json +24 -0
  223. package/vite.config.ts +45 -0
  224. package/vitest.shims.d.ts +1 -0
  225. package/vitest.workspace.ts +46 -0
@@ -0,0 +1,1139 @@
1
+ import {
2
+ __commonJS
3
+ } from "./chunk-DC5AMYBS.js";
4
+
5
+ // node_modules/react/cjs/react.development.js
6
+ var require_react_development = __commonJS({
7
+ "node_modules/react/cjs/react.development.js"(exports, module) {
8
+ "use strict";
9
+ (function() {
10
+ function defineDeprecationWarning(methodName, info) {
11
+ Object.defineProperty(Component.prototype, methodName, {
12
+ get: function() {
13
+ console.warn(
14
+ "%s(...) is deprecated in plain JavaScript React classes. %s",
15
+ info[0],
16
+ info[1]
17
+ );
18
+ }
19
+ });
20
+ }
21
+ function getIteratorFn(maybeIterable) {
22
+ if (null === maybeIterable || "object" !== typeof maybeIterable)
23
+ return null;
24
+ maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"];
25
+ return "function" === typeof maybeIterable ? maybeIterable : null;
26
+ }
27
+ function warnNoop(publicInstance, callerName) {
28
+ publicInstance = (publicInstance = publicInstance.constructor) && (publicInstance.displayName || publicInstance.name) || "ReactClass";
29
+ var warningKey = publicInstance + "." + callerName;
30
+ didWarnStateUpdateForUnmountedComponent[warningKey] || (console.error(
31
+ "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.",
32
+ callerName,
33
+ publicInstance
34
+ ), didWarnStateUpdateForUnmountedComponent[warningKey] = true);
35
+ }
36
+ function Component(props, context, updater) {
37
+ this.props = props;
38
+ this.context = context;
39
+ this.refs = emptyObject;
40
+ this.updater = updater || ReactNoopUpdateQueue;
41
+ }
42
+ function ComponentDummy() {
43
+ }
44
+ function PureComponent(props, context, updater) {
45
+ this.props = props;
46
+ this.context = context;
47
+ this.refs = emptyObject;
48
+ this.updater = updater || ReactNoopUpdateQueue;
49
+ }
50
+ function testStringCoercion(value) {
51
+ return "" + value;
52
+ }
53
+ function checkKeyStringCoercion(value) {
54
+ try {
55
+ testStringCoercion(value);
56
+ var JSCompiler_inline_result = false;
57
+ } catch (e) {
58
+ JSCompiler_inline_result = true;
59
+ }
60
+ if (JSCompiler_inline_result) {
61
+ JSCompiler_inline_result = console;
62
+ var JSCompiler_temp_const = JSCompiler_inline_result.error;
63
+ var JSCompiler_inline_result$jscomp$0 = "function" === typeof Symbol && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
64
+ JSCompiler_temp_const.call(
65
+ JSCompiler_inline_result,
66
+ "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
67
+ JSCompiler_inline_result$jscomp$0
68
+ );
69
+ return testStringCoercion(value);
70
+ }
71
+ }
72
+ function getComponentNameFromType(type) {
73
+ if (null == type) return null;
74
+ if ("function" === typeof type)
75
+ return type.$$typeof === REACT_CLIENT_REFERENCE$2 ? null : type.displayName || type.name || null;
76
+ if ("string" === typeof type) return type;
77
+ switch (type) {
78
+ case REACT_FRAGMENT_TYPE:
79
+ return "Fragment";
80
+ case REACT_PORTAL_TYPE:
81
+ return "Portal";
82
+ case REACT_PROFILER_TYPE:
83
+ return "Profiler";
84
+ case REACT_STRICT_MODE_TYPE:
85
+ return "StrictMode";
86
+ case REACT_SUSPENSE_TYPE:
87
+ return "Suspense";
88
+ case REACT_SUSPENSE_LIST_TYPE:
89
+ return "SuspenseList";
90
+ }
91
+ if ("object" === typeof type)
92
+ switch ("number" === typeof type.tag && console.error(
93
+ "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
94
+ ), type.$$typeof) {
95
+ case REACT_CONTEXT_TYPE:
96
+ return (type.displayName || "Context") + ".Provider";
97
+ case REACT_CONSUMER_TYPE:
98
+ return (type._context.displayName || "Context") + ".Consumer";
99
+ case REACT_FORWARD_REF_TYPE:
100
+ var innerType = type.render;
101
+ type = type.displayName;
102
+ type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef");
103
+ return type;
104
+ case REACT_MEMO_TYPE:
105
+ return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo";
106
+ case REACT_LAZY_TYPE:
107
+ innerType = type._payload;
108
+ type = type._init;
109
+ try {
110
+ return getComponentNameFromType(type(innerType));
111
+ } catch (x) {
112
+ }
113
+ }
114
+ return null;
115
+ }
116
+ function isValidElementType(type) {
117
+ return "string" === typeof type || "function" === typeof type || type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || type === REACT_OFFSCREEN_TYPE || "object" === typeof type && null !== type && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_CONSUMER_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_CLIENT_REFERENCE$1 || void 0 !== type.getModuleId) ? true : false;
118
+ }
119
+ function disabledLog() {
120
+ }
121
+ function disableLogs() {
122
+ if (0 === disabledDepth) {
123
+ prevLog = console.log;
124
+ prevInfo = console.info;
125
+ prevWarn = console.warn;
126
+ prevError = console.error;
127
+ prevGroup = console.group;
128
+ prevGroupCollapsed = console.groupCollapsed;
129
+ prevGroupEnd = console.groupEnd;
130
+ var props = {
131
+ configurable: true,
132
+ enumerable: true,
133
+ value: disabledLog,
134
+ writable: true
135
+ };
136
+ Object.defineProperties(console, {
137
+ info: props,
138
+ log: props,
139
+ warn: props,
140
+ error: props,
141
+ group: props,
142
+ groupCollapsed: props,
143
+ groupEnd: props
144
+ });
145
+ }
146
+ disabledDepth++;
147
+ }
148
+ function reenableLogs() {
149
+ disabledDepth--;
150
+ if (0 === disabledDepth) {
151
+ var props = { configurable: true, enumerable: true, writable: true };
152
+ Object.defineProperties(console, {
153
+ log: assign({}, props, { value: prevLog }),
154
+ info: assign({}, props, { value: prevInfo }),
155
+ warn: assign({}, props, { value: prevWarn }),
156
+ error: assign({}, props, { value: prevError }),
157
+ group: assign({}, props, { value: prevGroup }),
158
+ groupCollapsed: assign({}, props, { value: prevGroupCollapsed }),
159
+ groupEnd: assign({}, props, { value: prevGroupEnd })
160
+ });
161
+ }
162
+ 0 > disabledDepth && console.error(
163
+ "disabledDepth fell below zero. This is a bug in React. Please file an issue."
164
+ );
165
+ }
166
+ function describeBuiltInComponentFrame(name) {
167
+ if (void 0 === prefix)
168
+ try {
169
+ throw Error();
170
+ } catch (x) {
171
+ var match = x.stack.trim().match(/\n( *(at )?)/);
172
+ prefix = match && match[1] || "";
173
+ suffix = -1 < x.stack.indexOf("\n at") ? " (<anonymous>)" : -1 < x.stack.indexOf("@") ? "@unknown:0:0" : "";
174
+ }
175
+ return "\n" + prefix + name + suffix;
176
+ }
177
+ function describeNativeComponentFrame(fn, construct) {
178
+ if (!fn || reentry) return "";
179
+ var frame = componentFrameCache.get(fn);
180
+ if (void 0 !== frame) return frame;
181
+ reentry = true;
182
+ frame = Error.prepareStackTrace;
183
+ Error.prepareStackTrace = void 0;
184
+ var previousDispatcher = null;
185
+ previousDispatcher = ReactSharedInternals.H;
186
+ ReactSharedInternals.H = null;
187
+ disableLogs();
188
+ try {
189
+ var RunInRootFrame = {
190
+ DetermineComponentFrameRoot: function() {
191
+ try {
192
+ if (construct) {
193
+ var Fake = function() {
194
+ throw Error();
195
+ };
196
+ Object.defineProperty(Fake.prototype, "props", {
197
+ set: function() {
198
+ throw Error();
199
+ }
200
+ });
201
+ if ("object" === typeof Reflect && Reflect.construct) {
202
+ try {
203
+ Reflect.construct(Fake, []);
204
+ } catch (x) {
205
+ var control = x;
206
+ }
207
+ Reflect.construct(fn, [], Fake);
208
+ } else {
209
+ try {
210
+ Fake.call();
211
+ } catch (x$0) {
212
+ control = x$0;
213
+ }
214
+ fn.call(Fake.prototype);
215
+ }
216
+ } else {
217
+ try {
218
+ throw Error();
219
+ } catch (x$1) {
220
+ control = x$1;
221
+ }
222
+ (Fake = fn()) && "function" === typeof Fake.catch && Fake.catch(function() {
223
+ });
224
+ }
225
+ } catch (sample) {
226
+ if (sample && control && "string" === typeof sample.stack)
227
+ return [sample.stack, control.stack];
228
+ }
229
+ return [null, null];
230
+ }
231
+ };
232
+ RunInRootFrame.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot";
233
+ var namePropDescriptor = Object.getOwnPropertyDescriptor(
234
+ RunInRootFrame.DetermineComponentFrameRoot,
235
+ "name"
236
+ );
237
+ namePropDescriptor && namePropDescriptor.configurable && Object.defineProperty(
238
+ RunInRootFrame.DetermineComponentFrameRoot,
239
+ "name",
240
+ { value: "DetermineComponentFrameRoot" }
241
+ );
242
+ var _RunInRootFrame$Deter = RunInRootFrame.DetermineComponentFrameRoot(), sampleStack = _RunInRootFrame$Deter[0], controlStack = _RunInRootFrame$Deter[1];
243
+ if (sampleStack && controlStack) {
244
+ var sampleLines = sampleStack.split("\n"), controlLines = controlStack.split("\n");
245
+ for (_RunInRootFrame$Deter = namePropDescriptor = 0; namePropDescriptor < sampleLines.length && !sampleLines[namePropDescriptor].includes(
246
+ "DetermineComponentFrameRoot"
247
+ ); )
248
+ namePropDescriptor++;
249
+ for (; _RunInRootFrame$Deter < controlLines.length && !controlLines[_RunInRootFrame$Deter].includes(
250
+ "DetermineComponentFrameRoot"
251
+ ); )
252
+ _RunInRootFrame$Deter++;
253
+ if (namePropDescriptor === sampleLines.length || _RunInRootFrame$Deter === controlLines.length)
254
+ for (namePropDescriptor = sampleLines.length - 1, _RunInRootFrame$Deter = controlLines.length - 1; 1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter && sampleLines[namePropDescriptor] !== controlLines[_RunInRootFrame$Deter]; )
255
+ _RunInRootFrame$Deter--;
256
+ for (; 1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter; namePropDescriptor--, _RunInRootFrame$Deter--)
257
+ if (sampleLines[namePropDescriptor] !== controlLines[_RunInRootFrame$Deter]) {
258
+ if (1 !== namePropDescriptor || 1 !== _RunInRootFrame$Deter) {
259
+ do
260
+ if (namePropDescriptor--, _RunInRootFrame$Deter--, 0 > _RunInRootFrame$Deter || sampleLines[namePropDescriptor] !== controlLines[_RunInRootFrame$Deter]) {
261
+ var _frame = "\n" + sampleLines[namePropDescriptor].replace(
262
+ " at new ",
263
+ " at "
264
+ );
265
+ fn.displayName && _frame.includes("<anonymous>") && (_frame = _frame.replace("<anonymous>", fn.displayName));
266
+ "function" === typeof fn && componentFrameCache.set(fn, _frame);
267
+ return _frame;
268
+ }
269
+ while (1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter);
270
+ }
271
+ break;
272
+ }
273
+ }
274
+ } finally {
275
+ reentry = false, ReactSharedInternals.H = previousDispatcher, reenableLogs(), Error.prepareStackTrace = frame;
276
+ }
277
+ sampleLines = (sampleLines = fn ? fn.displayName || fn.name : "") ? describeBuiltInComponentFrame(sampleLines) : "";
278
+ "function" === typeof fn && componentFrameCache.set(fn, sampleLines);
279
+ return sampleLines;
280
+ }
281
+ function describeUnknownElementTypeFrameInDEV(type) {
282
+ if (null == type) return "";
283
+ if ("function" === typeof type) {
284
+ var prototype = type.prototype;
285
+ return describeNativeComponentFrame(
286
+ type,
287
+ !(!prototype || !prototype.isReactComponent)
288
+ );
289
+ }
290
+ if ("string" === typeof type) return describeBuiltInComponentFrame(type);
291
+ switch (type) {
292
+ case REACT_SUSPENSE_TYPE:
293
+ return describeBuiltInComponentFrame("Suspense");
294
+ case REACT_SUSPENSE_LIST_TYPE:
295
+ return describeBuiltInComponentFrame("SuspenseList");
296
+ }
297
+ if ("object" === typeof type)
298
+ switch (type.$$typeof) {
299
+ case REACT_FORWARD_REF_TYPE:
300
+ return type = describeNativeComponentFrame(type.render, false), type;
301
+ case REACT_MEMO_TYPE:
302
+ return describeUnknownElementTypeFrameInDEV(type.type);
303
+ case REACT_LAZY_TYPE:
304
+ prototype = type._payload;
305
+ type = type._init;
306
+ try {
307
+ return describeUnknownElementTypeFrameInDEV(type(prototype));
308
+ } catch (x) {
309
+ }
310
+ }
311
+ return "";
312
+ }
313
+ function getOwner() {
314
+ var dispatcher = ReactSharedInternals.A;
315
+ return null === dispatcher ? null : dispatcher.getOwner();
316
+ }
317
+ function hasValidKey(config) {
318
+ if (hasOwnProperty.call(config, "key")) {
319
+ var getter = Object.getOwnPropertyDescriptor(config, "key").get;
320
+ if (getter && getter.isReactWarning) return false;
321
+ }
322
+ return void 0 !== config.key;
323
+ }
324
+ function defineKeyPropWarningGetter(props, displayName) {
325
+ function warnAboutAccessingKey() {
326
+ specialPropKeyWarningShown || (specialPropKeyWarningShown = true, console.error(
327
+ "%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)",
328
+ displayName
329
+ ));
330
+ }
331
+ warnAboutAccessingKey.isReactWarning = true;
332
+ Object.defineProperty(props, "key", {
333
+ get: warnAboutAccessingKey,
334
+ configurable: true
335
+ });
336
+ }
337
+ function elementRefGetterWithDeprecationWarning() {
338
+ var componentName = getComponentNameFromType(this.type);
339
+ didWarnAboutElementRef[componentName] || (didWarnAboutElementRef[componentName] = true, console.error(
340
+ "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."
341
+ ));
342
+ componentName = this.props.ref;
343
+ return void 0 !== componentName ? componentName : null;
344
+ }
345
+ function ReactElement(type, key, self, source, owner, props) {
346
+ self = props.ref;
347
+ type = {
348
+ $$typeof: REACT_ELEMENT_TYPE,
349
+ type,
350
+ key,
351
+ props,
352
+ _owner: owner
353
+ };
354
+ null !== (void 0 !== self ? self : null) ? Object.defineProperty(type, "ref", {
355
+ enumerable: false,
356
+ get: elementRefGetterWithDeprecationWarning
357
+ }) : Object.defineProperty(type, "ref", { enumerable: false, value: null });
358
+ type._store = {};
359
+ Object.defineProperty(type._store, "validated", {
360
+ configurable: false,
361
+ enumerable: false,
362
+ writable: true,
363
+ value: 0
364
+ });
365
+ Object.defineProperty(type, "_debugInfo", {
366
+ configurable: false,
367
+ enumerable: false,
368
+ writable: true,
369
+ value: null
370
+ });
371
+ Object.freeze && (Object.freeze(type.props), Object.freeze(type));
372
+ return type;
373
+ }
374
+ function cloneAndReplaceKey(oldElement, newKey) {
375
+ newKey = ReactElement(
376
+ oldElement.type,
377
+ newKey,
378
+ void 0,
379
+ void 0,
380
+ oldElement._owner,
381
+ oldElement.props
382
+ );
383
+ newKey._store.validated = oldElement._store.validated;
384
+ return newKey;
385
+ }
386
+ function validateChildKeys(node, parentType) {
387
+ if ("object" === typeof node && node && node.$$typeof !== REACT_CLIENT_REFERENCE) {
388
+ if (isArrayImpl(node))
389
+ for (var i = 0; i < node.length; i++) {
390
+ var child = node[i];
391
+ isValidElement(child) && validateExplicitKey(child, parentType);
392
+ }
393
+ else if (isValidElement(node))
394
+ node._store && (node._store.validated = 1);
395
+ else if (i = getIteratorFn(node), "function" === typeof i && i !== node.entries && (i = i.call(node), i !== node))
396
+ for (; !(node = i.next()).done; )
397
+ isValidElement(node.value) && validateExplicitKey(node.value, parentType);
398
+ }
399
+ }
400
+ function isValidElement(object) {
401
+ return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
402
+ }
403
+ function validateExplicitKey(element, parentType) {
404
+ if (element._store && !element._store.validated && null == element.key && (element._store.validated = 1, parentType = getCurrentComponentErrorInfo(parentType), !ownerHasKeyUseWarning[parentType])) {
405
+ ownerHasKeyUseWarning[parentType] = true;
406
+ var childOwner = "";
407
+ element && null != element._owner && element._owner !== getOwner() && (childOwner = null, "number" === typeof element._owner.tag ? childOwner = getComponentNameFromType(element._owner.type) : "string" === typeof element._owner.name && (childOwner = element._owner.name), childOwner = " It was passed a child from " + childOwner + ".");
408
+ var prevGetCurrentStack = ReactSharedInternals.getCurrentStack;
409
+ ReactSharedInternals.getCurrentStack = function() {
410
+ var stack = describeUnknownElementTypeFrameInDEV(element.type);
411
+ prevGetCurrentStack && (stack += prevGetCurrentStack() || "");
412
+ return stack;
413
+ };
414
+ console.error(
415
+ 'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
416
+ parentType,
417
+ childOwner
418
+ );
419
+ ReactSharedInternals.getCurrentStack = prevGetCurrentStack;
420
+ }
421
+ }
422
+ function getCurrentComponentErrorInfo(parentType) {
423
+ var info = "", owner = getOwner();
424
+ owner && (owner = getComponentNameFromType(owner.type)) && (info = "\n\nCheck the render method of `" + owner + "`.");
425
+ info || (parentType = getComponentNameFromType(parentType)) && (info = "\n\nCheck the top-level render call using <" + parentType + ">.");
426
+ return info;
427
+ }
428
+ function escape(key) {
429
+ var escaperLookup = { "=": "=0", ":": "=2" };
430
+ return "$" + key.replace(/[=:]/g, function(match) {
431
+ return escaperLookup[match];
432
+ });
433
+ }
434
+ function getElementKey(element, index) {
435
+ return "object" === typeof element && null !== element && null != element.key ? (checkKeyStringCoercion(element.key), escape("" + element.key)) : index.toString(36);
436
+ }
437
+ function noop$1() {
438
+ }
439
+ function resolveThenable(thenable) {
440
+ switch (thenable.status) {
441
+ case "fulfilled":
442
+ return thenable.value;
443
+ case "rejected":
444
+ throw thenable.reason;
445
+ default:
446
+ switch ("string" === typeof thenable.status ? thenable.then(noop$1, noop$1) : (thenable.status = "pending", thenable.then(
447
+ function(fulfilledValue) {
448
+ "pending" === thenable.status && (thenable.status = "fulfilled", thenable.value = fulfilledValue);
449
+ },
450
+ function(error) {
451
+ "pending" === thenable.status && (thenable.status = "rejected", thenable.reason = error);
452
+ }
453
+ )), thenable.status) {
454
+ case "fulfilled":
455
+ return thenable.value;
456
+ case "rejected":
457
+ throw thenable.reason;
458
+ }
459
+ }
460
+ throw thenable;
461
+ }
462
+ function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
463
+ var type = typeof children;
464
+ if ("undefined" === type || "boolean" === type) children = null;
465
+ var invokeCallback = false;
466
+ if (null === children) invokeCallback = true;
467
+ else
468
+ switch (type) {
469
+ case "bigint":
470
+ case "string":
471
+ case "number":
472
+ invokeCallback = true;
473
+ break;
474
+ case "object":
475
+ switch (children.$$typeof) {
476
+ case REACT_ELEMENT_TYPE:
477
+ case REACT_PORTAL_TYPE:
478
+ invokeCallback = true;
479
+ break;
480
+ case REACT_LAZY_TYPE:
481
+ return invokeCallback = children._init, mapIntoArray(
482
+ invokeCallback(children._payload),
483
+ array,
484
+ escapedPrefix,
485
+ nameSoFar,
486
+ callback
487
+ );
488
+ }
489
+ }
490
+ if (invokeCallback) {
491
+ invokeCallback = children;
492
+ callback = callback(invokeCallback);
493
+ var childKey = "" === nameSoFar ? "." + getElementKey(invokeCallback, 0) : nameSoFar;
494
+ isArrayImpl(callback) ? (escapedPrefix = "", null != childKey && (escapedPrefix = childKey.replace(userProvidedKeyEscapeRegex, "$&/") + "/"), mapIntoArray(callback, array, escapedPrefix, "", function(c) {
495
+ return c;
496
+ })) : null != callback && (isValidElement(callback) && (null != callback.key && (invokeCallback && invokeCallback.key === callback.key || checkKeyStringCoercion(callback.key)), escapedPrefix = cloneAndReplaceKey(
497
+ callback,
498
+ escapedPrefix + (null == callback.key || invokeCallback && invokeCallback.key === callback.key ? "" : ("" + callback.key).replace(
499
+ userProvidedKeyEscapeRegex,
500
+ "$&/"
501
+ ) + "/") + childKey
502
+ ), "" !== nameSoFar && null != invokeCallback && isValidElement(invokeCallback) && null == invokeCallback.key && invokeCallback._store && !invokeCallback._store.validated && (escapedPrefix._store.validated = 2), callback = escapedPrefix), array.push(callback));
503
+ return 1;
504
+ }
505
+ invokeCallback = 0;
506
+ childKey = "" === nameSoFar ? "." : nameSoFar + ":";
507
+ if (isArrayImpl(children))
508
+ for (var i = 0; i < children.length; i++)
509
+ nameSoFar = children[i], type = childKey + getElementKey(nameSoFar, i), invokeCallback += mapIntoArray(
510
+ nameSoFar,
511
+ array,
512
+ escapedPrefix,
513
+ type,
514
+ callback
515
+ );
516
+ else if (i = getIteratorFn(children), "function" === typeof i)
517
+ for (i === children.entries && (didWarnAboutMaps || console.warn(
518
+ "Using Maps as children is not supported. Use an array of keyed ReactElements instead."
519
+ ), didWarnAboutMaps = true), children = i.call(children), i = 0; !(nameSoFar = children.next()).done; )
520
+ nameSoFar = nameSoFar.value, type = childKey + getElementKey(nameSoFar, i++), invokeCallback += mapIntoArray(
521
+ nameSoFar,
522
+ array,
523
+ escapedPrefix,
524
+ type,
525
+ callback
526
+ );
527
+ else if ("object" === type) {
528
+ if ("function" === typeof children.then)
529
+ return mapIntoArray(
530
+ resolveThenable(children),
531
+ array,
532
+ escapedPrefix,
533
+ nameSoFar,
534
+ callback
535
+ );
536
+ array = String(children);
537
+ throw Error(
538
+ "Objects are not valid as a React child (found: " + ("[object Object]" === array ? "object with keys {" + Object.keys(children).join(", ") + "}" : array) + "). If you meant to render a collection of children, use an array instead."
539
+ );
540
+ }
541
+ return invokeCallback;
542
+ }
543
+ function mapChildren(children, func, context) {
544
+ if (null == children) return children;
545
+ var result = [], count = 0;
546
+ mapIntoArray(children, result, "", "", function(child) {
547
+ return func.call(context, child, count++);
548
+ });
549
+ return result;
550
+ }
551
+ function lazyInitializer(payload) {
552
+ if (-1 === payload._status) {
553
+ var ctor = payload._result;
554
+ ctor = ctor();
555
+ ctor.then(
556
+ function(moduleObject) {
557
+ if (0 === payload._status || -1 === payload._status)
558
+ payload._status = 1, payload._result = moduleObject;
559
+ },
560
+ function(error) {
561
+ if (0 === payload._status || -1 === payload._status)
562
+ payload._status = 2, payload._result = error;
563
+ }
564
+ );
565
+ -1 === payload._status && (payload._status = 0, payload._result = ctor);
566
+ }
567
+ if (1 === payload._status)
568
+ return ctor = payload._result, void 0 === ctor && console.error(
569
+ "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?",
570
+ ctor
571
+ ), "default" in ctor || console.error(
572
+ "lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",
573
+ ctor
574
+ ), ctor.default;
575
+ throw payload._result;
576
+ }
577
+ function resolveDispatcher() {
578
+ var dispatcher = ReactSharedInternals.H;
579
+ null === dispatcher && console.error(
580
+ "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."
581
+ );
582
+ return dispatcher;
583
+ }
584
+ function noop() {
585
+ }
586
+ function enqueueTask(task) {
587
+ if (null === enqueueTaskImpl)
588
+ try {
589
+ var requireString = ("require" + Math.random()).slice(0, 7);
590
+ enqueueTaskImpl = (module && module[requireString]).call(
591
+ module,
592
+ "timers"
593
+ ).setImmediate;
594
+ } catch (_err) {
595
+ enqueueTaskImpl = function(callback) {
596
+ false === didWarnAboutMessageChannel && (didWarnAboutMessageChannel = true, "undefined" === typeof MessageChannel && console.error(
597
+ "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."
598
+ ));
599
+ var channel = new MessageChannel();
600
+ channel.port1.onmessage = callback;
601
+ channel.port2.postMessage(void 0);
602
+ };
603
+ }
604
+ return enqueueTaskImpl(task);
605
+ }
606
+ function aggregateErrors(errors) {
607
+ return 1 < errors.length && "function" === typeof AggregateError ? new AggregateError(errors) : errors[0];
608
+ }
609
+ function popActScope(prevActQueue, prevActScopeDepth) {
610
+ prevActScopeDepth !== actScopeDepth - 1 && console.error(
611
+ "You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "
612
+ );
613
+ actScopeDepth = prevActScopeDepth;
614
+ }
615
+ function recursivelyFlushAsyncActWork(returnValue, resolve, reject) {
616
+ var queue = ReactSharedInternals.actQueue;
617
+ if (null !== queue)
618
+ if (0 !== queue.length)
619
+ try {
620
+ flushActQueue(queue);
621
+ enqueueTask(function() {
622
+ return recursivelyFlushAsyncActWork(returnValue, resolve, reject);
623
+ });
624
+ return;
625
+ } catch (error) {
626
+ ReactSharedInternals.thrownErrors.push(error);
627
+ }
628
+ else ReactSharedInternals.actQueue = null;
629
+ 0 < ReactSharedInternals.thrownErrors.length ? (queue = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, reject(queue)) : resolve(returnValue);
630
+ }
631
+ function flushActQueue(queue) {
632
+ if (!isFlushing) {
633
+ isFlushing = true;
634
+ var i = 0;
635
+ try {
636
+ for (; i < queue.length; i++) {
637
+ var callback = queue[i];
638
+ do {
639
+ ReactSharedInternals.didUsePromise = false;
640
+ var continuation = callback(false);
641
+ if (null !== continuation) {
642
+ if (ReactSharedInternals.didUsePromise) {
643
+ queue[i] = callback;
644
+ queue.splice(0, i);
645
+ return;
646
+ }
647
+ callback = continuation;
648
+ } else break;
649
+ } while (1);
650
+ }
651
+ queue.length = 0;
652
+ } catch (error) {
653
+ queue.splice(0, i + 1), ReactSharedInternals.thrownErrors.push(error);
654
+ } finally {
655
+ isFlushing = false;
656
+ }
657
+ }
658
+ }
659
+ "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
660
+ var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler");
661
+ Symbol.for("react.provider");
662
+ var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"), MAYBE_ITERATOR_SYMBOL = Symbol.iterator, didWarnStateUpdateForUnmountedComponent = {}, ReactNoopUpdateQueue = {
663
+ isMounted: function() {
664
+ return false;
665
+ },
666
+ enqueueForceUpdate: function(publicInstance) {
667
+ warnNoop(publicInstance, "forceUpdate");
668
+ },
669
+ enqueueReplaceState: function(publicInstance) {
670
+ warnNoop(publicInstance, "replaceState");
671
+ },
672
+ enqueueSetState: function(publicInstance) {
673
+ warnNoop(publicInstance, "setState");
674
+ }
675
+ }, assign = Object.assign, emptyObject = {};
676
+ Object.freeze(emptyObject);
677
+ Component.prototype.isReactComponent = {};
678
+ Component.prototype.setState = function(partialState, callback) {
679
+ if ("object" !== typeof partialState && "function" !== typeof partialState && null != partialState)
680
+ throw Error(
681
+ "takes an object of state variables to update or a function which returns an object of state variables."
682
+ );
683
+ this.updater.enqueueSetState(this, partialState, callback, "setState");
684
+ };
685
+ Component.prototype.forceUpdate = function(callback) {
686
+ this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
687
+ };
688
+ var deprecatedAPIs = {
689
+ isMounted: [
690
+ "isMounted",
691
+ "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."
692
+ ],
693
+ replaceState: [
694
+ "replaceState",
695
+ "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."
696
+ ]
697
+ }, fnName;
698
+ for (fnName in deprecatedAPIs)
699
+ deprecatedAPIs.hasOwnProperty(fnName) && defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
700
+ ComponentDummy.prototype = Component.prototype;
701
+ deprecatedAPIs = PureComponent.prototype = new ComponentDummy();
702
+ deprecatedAPIs.constructor = PureComponent;
703
+ assign(deprecatedAPIs, Component.prototype);
704
+ deprecatedAPIs.isPureReactComponent = true;
705
+ var isArrayImpl = Array.isArray, REACT_CLIENT_REFERENCE$2 = Symbol.for("react.client.reference"), ReactSharedInternals = {
706
+ H: null,
707
+ A: null,
708
+ T: null,
709
+ S: null,
710
+ actQueue: null,
711
+ isBatchingLegacy: false,
712
+ didScheduleLegacyUpdate: false,
713
+ didUsePromise: false,
714
+ thrownErrors: [],
715
+ getCurrentStack: null
716
+ }, hasOwnProperty = Object.prototype.hasOwnProperty, REACT_CLIENT_REFERENCE$1 = Symbol.for("react.client.reference"), disabledDepth = 0, prevLog, prevInfo, prevWarn, prevError, prevGroup, prevGroupCollapsed, prevGroupEnd;
717
+ disabledLog.__reactDisabledLog = true;
718
+ var prefix, suffix, reentry = false;
719
+ var componentFrameCache = new ("function" === typeof WeakMap ? WeakMap : Map)();
720
+ var REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), specialPropKeyWarningShown, didWarnAboutOldJSXRuntime;
721
+ var didWarnAboutElementRef = {};
722
+ var ownerHasKeyUseWarning = {}, didWarnAboutMaps = false, userProvidedKeyEscapeRegex = /\/+/g, reportGlobalError = "function" === typeof reportError ? reportError : function(error) {
723
+ if ("object" === typeof window && "function" === typeof window.ErrorEvent) {
724
+ var event = new window.ErrorEvent("error", {
725
+ bubbles: true,
726
+ cancelable: true,
727
+ message: "object" === typeof error && null !== error && "string" === typeof error.message ? String(error.message) : String(error),
728
+ error
729
+ });
730
+ if (!window.dispatchEvent(event)) return;
731
+ } else if ("object" === typeof process && "function" === typeof process.emit) {
732
+ process.emit("uncaughtException", error);
733
+ return;
734
+ }
735
+ console.error(error);
736
+ }, didWarnAboutMessageChannel = false, enqueueTaskImpl = null, actScopeDepth = 0, didWarnNoAwaitAct = false, isFlushing = false, queueSeveralMicrotasks = "function" === typeof queueMicrotask ? function(callback) {
737
+ queueMicrotask(function() {
738
+ return queueMicrotask(callback);
739
+ });
740
+ } : enqueueTask;
741
+ exports.Children = {
742
+ map: mapChildren,
743
+ forEach: function(children, forEachFunc, forEachContext) {
744
+ mapChildren(
745
+ children,
746
+ function() {
747
+ forEachFunc.apply(this, arguments);
748
+ },
749
+ forEachContext
750
+ );
751
+ },
752
+ count: function(children) {
753
+ var n = 0;
754
+ mapChildren(children, function() {
755
+ n++;
756
+ });
757
+ return n;
758
+ },
759
+ toArray: function(children) {
760
+ return mapChildren(children, function(child) {
761
+ return child;
762
+ }) || [];
763
+ },
764
+ only: function(children) {
765
+ if (!isValidElement(children))
766
+ throw Error(
767
+ "React.Children.only expected to receive a single React element child."
768
+ );
769
+ return children;
770
+ }
771
+ };
772
+ exports.Component = Component;
773
+ exports.Fragment = REACT_FRAGMENT_TYPE;
774
+ exports.Profiler = REACT_PROFILER_TYPE;
775
+ exports.PureComponent = PureComponent;
776
+ exports.StrictMode = REACT_STRICT_MODE_TYPE;
777
+ exports.Suspense = REACT_SUSPENSE_TYPE;
778
+ exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
779
+ exports.act = function(callback) {
780
+ var prevActQueue = ReactSharedInternals.actQueue, prevActScopeDepth = actScopeDepth;
781
+ actScopeDepth++;
782
+ var queue = ReactSharedInternals.actQueue = null !== prevActQueue ? prevActQueue : [], didAwaitActCall = false;
783
+ try {
784
+ var result = callback();
785
+ } catch (error) {
786
+ ReactSharedInternals.thrownErrors.push(error);
787
+ }
788
+ if (0 < ReactSharedInternals.thrownErrors.length)
789
+ throw popActScope(prevActQueue, prevActScopeDepth), callback = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, callback;
790
+ if (null !== result && "object" === typeof result && "function" === typeof result.then) {
791
+ var thenable = result;
792
+ queueSeveralMicrotasks(function() {
793
+ didAwaitActCall || didWarnNoAwaitAct || (didWarnNoAwaitAct = true, console.error(
794
+ "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 () => ...);"
795
+ ));
796
+ });
797
+ return {
798
+ then: function(resolve, reject) {
799
+ didAwaitActCall = true;
800
+ thenable.then(
801
+ function(returnValue) {
802
+ popActScope(prevActQueue, prevActScopeDepth);
803
+ if (0 === prevActScopeDepth) {
804
+ try {
805
+ flushActQueue(queue), enqueueTask(function() {
806
+ return recursivelyFlushAsyncActWork(
807
+ returnValue,
808
+ resolve,
809
+ reject
810
+ );
811
+ });
812
+ } catch (error$2) {
813
+ ReactSharedInternals.thrownErrors.push(error$2);
814
+ }
815
+ if (0 < ReactSharedInternals.thrownErrors.length) {
816
+ var _thrownError = aggregateErrors(
817
+ ReactSharedInternals.thrownErrors
818
+ );
819
+ ReactSharedInternals.thrownErrors.length = 0;
820
+ reject(_thrownError);
821
+ }
822
+ } else resolve(returnValue);
823
+ },
824
+ function(error) {
825
+ popActScope(prevActQueue, prevActScopeDepth);
826
+ 0 < ReactSharedInternals.thrownErrors.length ? (error = aggregateErrors(
827
+ ReactSharedInternals.thrownErrors
828
+ ), ReactSharedInternals.thrownErrors.length = 0, reject(error)) : reject(error);
829
+ }
830
+ );
831
+ }
832
+ };
833
+ }
834
+ var returnValue$jscomp$0 = result;
835
+ popActScope(prevActQueue, prevActScopeDepth);
836
+ 0 === prevActScopeDepth && (flushActQueue(queue), 0 !== queue.length && queueSeveralMicrotasks(function() {
837
+ didAwaitActCall || didWarnNoAwaitAct || (didWarnNoAwaitAct = true, console.error(
838
+ "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(() => ...)"
839
+ ));
840
+ }), ReactSharedInternals.actQueue = null);
841
+ if (0 < ReactSharedInternals.thrownErrors.length)
842
+ throw callback = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, callback;
843
+ return {
844
+ then: function(resolve, reject) {
845
+ didAwaitActCall = true;
846
+ 0 === prevActScopeDepth ? (ReactSharedInternals.actQueue = queue, enqueueTask(function() {
847
+ return recursivelyFlushAsyncActWork(
848
+ returnValue$jscomp$0,
849
+ resolve,
850
+ reject
851
+ );
852
+ })) : resolve(returnValue$jscomp$0);
853
+ }
854
+ };
855
+ };
856
+ exports.cache = function(fn) {
857
+ return function() {
858
+ return fn.apply(null, arguments);
859
+ };
860
+ };
861
+ exports.cloneElement = function(element, config, children) {
862
+ if (null === element || void 0 === element)
863
+ throw Error(
864
+ "The argument must be a React element, but you passed " + element + "."
865
+ );
866
+ var props = assign({}, element.props), key = element.key, owner = element._owner;
867
+ if (null != config) {
868
+ var JSCompiler_inline_result;
869
+ a: {
870
+ if (hasOwnProperty.call(config, "ref") && (JSCompiler_inline_result = Object.getOwnPropertyDescriptor(
871
+ config,
872
+ "ref"
873
+ ).get) && JSCompiler_inline_result.isReactWarning) {
874
+ JSCompiler_inline_result = false;
875
+ break a;
876
+ }
877
+ JSCompiler_inline_result = void 0 !== config.ref;
878
+ }
879
+ JSCompiler_inline_result && (owner = getOwner());
880
+ hasValidKey(config) && (checkKeyStringCoercion(config.key), key = "" + config.key);
881
+ for (propName in config)
882
+ !hasOwnProperty.call(config, propName) || "key" === propName || "__self" === propName || "__source" === propName || "ref" === propName && void 0 === config.ref || (props[propName] = config[propName]);
883
+ }
884
+ var propName = arguments.length - 2;
885
+ if (1 === propName) props.children = children;
886
+ else if (1 < propName) {
887
+ JSCompiler_inline_result = Array(propName);
888
+ for (var i = 0; i < propName; i++)
889
+ JSCompiler_inline_result[i] = arguments[i + 2];
890
+ props.children = JSCompiler_inline_result;
891
+ }
892
+ props = ReactElement(element.type, key, void 0, void 0, owner, props);
893
+ for (key = 2; key < arguments.length; key++)
894
+ validateChildKeys(arguments[key], props.type);
895
+ return props;
896
+ };
897
+ exports.createContext = function(defaultValue) {
898
+ defaultValue = {
899
+ $$typeof: REACT_CONTEXT_TYPE,
900
+ _currentValue: defaultValue,
901
+ _currentValue2: defaultValue,
902
+ _threadCount: 0,
903
+ Provider: null,
904
+ Consumer: null
905
+ };
906
+ defaultValue.Provider = defaultValue;
907
+ defaultValue.Consumer = {
908
+ $$typeof: REACT_CONSUMER_TYPE,
909
+ _context: defaultValue
910
+ };
911
+ defaultValue._currentRenderer = null;
912
+ defaultValue._currentRenderer2 = null;
913
+ return defaultValue;
914
+ };
915
+ exports.createElement = function(type, config, children) {
916
+ if (isValidElementType(type))
917
+ for (var i = 2; i < arguments.length; i++)
918
+ validateChildKeys(arguments[i], type);
919
+ else {
920
+ i = "";
921
+ if (void 0 === type || "object" === typeof type && null !== type && 0 === Object.keys(type).length)
922
+ i += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";
923
+ if (null === type) var typeString = "null";
924
+ else
925
+ isArrayImpl(type) ? typeString = "array" : void 0 !== type && type.$$typeof === REACT_ELEMENT_TYPE ? (typeString = "<" + (getComponentNameFromType(type.type) || "Unknown") + " />", i = " Did you accidentally export a JSX literal instead of a component?") : typeString = typeof type;
926
+ console.error(
927
+ "React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",
928
+ typeString,
929
+ i
930
+ );
931
+ }
932
+ var propName;
933
+ i = {};
934
+ typeString = null;
935
+ if (null != config)
936
+ for (propName in didWarnAboutOldJSXRuntime || !("__self" in config) || "key" in config || (didWarnAboutOldJSXRuntime = true, console.warn(
937
+ "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"
938
+ )), hasValidKey(config) && (checkKeyStringCoercion(config.key), typeString = "" + config.key), config)
939
+ hasOwnProperty.call(config, propName) && "key" !== propName && "__self" !== propName && "__source" !== propName && (i[propName] = config[propName]);
940
+ var childrenLength = arguments.length - 2;
941
+ if (1 === childrenLength) i.children = children;
942
+ else if (1 < childrenLength) {
943
+ for (var childArray = Array(childrenLength), _i = 0; _i < childrenLength; _i++)
944
+ childArray[_i] = arguments[_i + 2];
945
+ Object.freeze && Object.freeze(childArray);
946
+ i.children = childArray;
947
+ }
948
+ if (type && type.defaultProps)
949
+ for (propName in childrenLength = type.defaultProps, childrenLength)
950
+ void 0 === i[propName] && (i[propName] = childrenLength[propName]);
951
+ typeString && defineKeyPropWarningGetter(
952
+ i,
953
+ "function" === typeof type ? type.displayName || type.name || "Unknown" : type
954
+ );
955
+ return ReactElement(type, typeString, void 0, void 0, getOwner(), i);
956
+ };
957
+ exports.createRef = function() {
958
+ var refObject = { current: null };
959
+ Object.seal(refObject);
960
+ return refObject;
961
+ };
962
+ exports.forwardRef = function(render) {
963
+ null != render && render.$$typeof === REACT_MEMO_TYPE ? console.error(
964
+ "forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."
965
+ ) : "function" !== typeof render ? console.error(
966
+ "forwardRef requires a render function but was given %s.",
967
+ null === render ? "null" : typeof render
968
+ ) : 0 !== render.length && 2 !== render.length && console.error(
969
+ "forwardRef render functions accept exactly two parameters: props and ref. %s",
970
+ 1 === render.length ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined."
971
+ );
972
+ null != render && null != render.defaultProps && console.error(
973
+ "forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?"
974
+ );
975
+ var elementType = { $$typeof: REACT_FORWARD_REF_TYPE, render }, ownName;
976
+ Object.defineProperty(elementType, "displayName", {
977
+ enumerable: false,
978
+ configurable: true,
979
+ get: function() {
980
+ return ownName;
981
+ },
982
+ set: function(name) {
983
+ ownName = name;
984
+ render.name || render.displayName || (Object.defineProperty(render, "name", { value: name }), render.displayName = name);
985
+ }
986
+ });
987
+ return elementType;
988
+ };
989
+ exports.isValidElement = isValidElement;
990
+ exports.lazy = function(ctor) {
991
+ return {
992
+ $$typeof: REACT_LAZY_TYPE,
993
+ _payload: { _status: -1, _result: ctor },
994
+ _init: lazyInitializer
995
+ };
996
+ };
997
+ exports.memo = function(type, compare) {
998
+ isValidElementType(type) || console.error(
999
+ "memo: The first argument must be a component. Instead received: %s",
1000
+ null === type ? "null" : typeof type
1001
+ );
1002
+ compare = {
1003
+ $$typeof: REACT_MEMO_TYPE,
1004
+ type,
1005
+ compare: void 0 === compare ? null : compare
1006
+ };
1007
+ var ownName;
1008
+ Object.defineProperty(compare, "displayName", {
1009
+ enumerable: false,
1010
+ configurable: true,
1011
+ get: function() {
1012
+ return ownName;
1013
+ },
1014
+ set: function(name) {
1015
+ ownName = name;
1016
+ type.name || type.displayName || (Object.defineProperty(type, "name", { value: name }), type.displayName = name);
1017
+ }
1018
+ });
1019
+ return compare;
1020
+ };
1021
+ exports.startTransition = function(scope) {
1022
+ var prevTransition = ReactSharedInternals.T, currentTransition = {};
1023
+ ReactSharedInternals.T = currentTransition;
1024
+ currentTransition._updatedFibers = /* @__PURE__ */ new Set();
1025
+ try {
1026
+ var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
1027
+ null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue);
1028
+ "object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && returnValue.then(noop, reportGlobalError);
1029
+ } catch (error) {
1030
+ reportGlobalError(error);
1031
+ } finally {
1032
+ null === prevTransition && currentTransition._updatedFibers && (scope = currentTransition._updatedFibers.size, currentTransition._updatedFibers.clear(), 10 < scope && console.warn(
1033
+ "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."
1034
+ )), ReactSharedInternals.T = prevTransition;
1035
+ }
1036
+ };
1037
+ exports.unstable_useCacheRefresh = function() {
1038
+ return resolveDispatcher().useCacheRefresh();
1039
+ };
1040
+ exports.use = function(usable) {
1041
+ return resolveDispatcher().use(usable);
1042
+ };
1043
+ exports.useActionState = function(action, initialState, permalink) {
1044
+ return resolveDispatcher().useActionState(
1045
+ action,
1046
+ initialState,
1047
+ permalink
1048
+ );
1049
+ };
1050
+ exports.useCallback = function(callback, deps) {
1051
+ return resolveDispatcher().useCallback(callback, deps);
1052
+ };
1053
+ exports.useContext = function(Context) {
1054
+ var dispatcher = resolveDispatcher();
1055
+ Context.$$typeof === REACT_CONSUMER_TYPE && console.error(
1056
+ "Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"
1057
+ );
1058
+ return dispatcher.useContext(Context);
1059
+ };
1060
+ exports.useDebugValue = function(value, formatterFn) {
1061
+ return resolveDispatcher().useDebugValue(value, formatterFn);
1062
+ };
1063
+ exports.useDeferredValue = function(value, initialValue) {
1064
+ return resolveDispatcher().useDeferredValue(value, initialValue);
1065
+ };
1066
+ exports.useEffect = function(create, deps) {
1067
+ return resolveDispatcher().useEffect(create, deps);
1068
+ };
1069
+ exports.useId = function() {
1070
+ return resolveDispatcher().useId();
1071
+ };
1072
+ exports.useImperativeHandle = function(ref, create, deps) {
1073
+ return resolveDispatcher().useImperativeHandle(ref, create, deps);
1074
+ };
1075
+ exports.useInsertionEffect = function(create, deps) {
1076
+ return resolveDispatcher().useInsertionEffect(create, deps);
1077
+ };
1078
+ exports.useLayoutEffect = function(create, deps) {
1079
+ return resolveDispatcher().useLayoutEffect(create, deps);
1080
+ };
1081
+ exports.useMemo = function(create, deps) {
1082
+ return resolveDispatcher().useMemo(create, deps);
1083
+ };
1084
+ exports.useOptimistic = function(passthrough, reducer) {
1085
+ return resolveDispatcher().useOptimistic(passthrough, reducer);
1086
+ };
1087
+ exports.useReducer = function(reducer, initialArg, init) {
1088
+ return resolveDispatcher().useReducer(reducer, initialArg, init);
1089
+ };
1090
+ exports.useRef = function(initialValue) {
1091
+ return resolveDispatcher().useRef(initialValue);
1092
+ };
1093
+ exports.useState = function(initialState) {
1094
+ return resolveDispatcher().useState(initialState);
1095
+ };
1096
+ exports.useSyncExternalStore = function(subscribe, getSnapshot, getServerSnapshot) {
1097
+ return resolveDispatcher().useSyncExternalStore(
1098
+ subscribe,
1099
+ getSnapshot,
1100
+ getServerSnapshot
1101
+ );
1102
+ };
1103
+ exports.useTransition = function() {
1104
+ return resolveDispatcher().useTransition();
1105
+ };
1106
+ exports.version = "19.0.0";
1107
+ "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
1108
+ })();
1109
+ }
1110
+ });
1111
+
1112
+ // node_modules/react/index.js
1113
+ var require_react = __commonJS({
1114
+ "node_modules/react/index.js"(exports, module) {
1115
+ if (false) {
1116
+ module.exports = null;
1117
+ } else {
1118
+ module.exports = require_react_development();
1119
+ }
1120
+ }
1121
+ });
1122
+
1123
+ export {
1124
+ require_react
1125
+ };
1126
+ /*! Bundled license information:
1127
+
1128
+ react/cjs/react.development.js:
1129
+ (**
1130
+ * @license React
1131
+ * react.development.js
1132
+ *
1133
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
1134
+ *
1135
+ * This source code is licensed under the MIT license found in the
1136
+ * LICENSE file in the root directory of this source tree.
1137
+ *)
1138
+ */
1139
+ //# sourceMappingURL=chunk-YLDSBLSF.js.map