@preply/ds-web-lib 11.0.0 → 11.1.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 (303) hide show
  1. package/dist/Accordion-B0hR-tcI.js +96 -0
  2. package/dist/AlertBannerProvider-Cf7w9AOq.js +76 -0
  3. package/dist/AlertDialog-BG-diKBi.js +475 -0
  4. package/dist/Avatar-B-JdqVyg.js +66 -0
  5. package/dist/AvatarWithStatus-CD9jEqEB.js +36 -0
  6. package/dist/Badge-Dd-CLBoW.js +50 -0
  7. package/dist/Box-BJBE9KNm.js +91 -0
  8. package/dist/BubbleCounter.module-BU2S0euA.js +16 -0
  9. package/dist/Button-C35BZJZT.js +91 -0
  10. package/dist/ButtonBase-8eUyTWxX.js +215 -0
  11. package/dist/Checkbox-CtolNbxI.js +108 -0
  12. package/dist/Chips-BRGw7Uup.js +99 -0
  13. package/dist/ChipsPrimitive-Bezq7ptE.js +1179 -0
  14. package/dist/CountryFlag-DVDKHmQH.js +43 -0
  15. package/dist/Dialog.module-Db2BJAn4.js +21 -0
  16. package/dist/DialogCloseButton-DjDd9Mid.js +98 -0
  17. package/dist/DialogDescription-8zw9t6pm.js +44 -0
  18. package/dist/DialogRoot-B67oJduC.js +335 -0
  19. package/dist/DialogRootContext-Bz8RW-Mq.js +12 -0
  20. package/dist/DialogTitle-C2Nn2ys-.js +43 -0
  21. package/dist/Divider-DvwDWB9_.js +17 -0
  22. package/dist/DropdownMenu.primitives-BrsTBvMk.js +4007 -0
  23. package/dist/FieldButton-B2slox8P.js +32 -0
  24. package/dist/FormControl-qnbQL1iF.js +128 -0
  25. package/dist/Heading-DA9gHfsx.js +71 -0
  26. package/dist/Icon-CixAeOSd.js +48 -0
  27. package/dist/IconButton-BPKpgfep.js +31 -0
  28. package/dist/InputContainer-CzzuOe_p.js +38 -0
  29. package/dist/LayoutFlex-e9auDvWD.js +86 -0
  30. package/dist/LayoutFlexItem-D9ziMmHe.js +48 -0
  31. package/dist/LayoutGridItem-Q8Lnvrri.js +34 -0
  32. package/dist/Link-CdoJVeER.js +66 -0
  33. package/dist/Loader-BMOxdJce.js +26 -0
  34. package/dist/OnboardingTooltip-B47_Yrsj.js +165 -0
  35. package/dist/OnboardingTour-DUUoI5WE.js +131 -0
  36. package/dist/PasswordField-Bx5YG62t.js +93 -0
  37. package/dist/PreplyLogo-abgOre30.js +112 -0
  38. package/dist/ProgressBar-CEU4GyHn.js +31 -0
  39. package/dist/ProgressSteps-BSqopxqv.js +45 -0
  40. package/dist/Select-Bo7PX_8V.js +124 -0
  41. package/dist/Slider-Crg4DEn_.js +64 -0
  42. package/dist/Spinner-Ck8KQA22.js +86 -0
  43. package/dist/Stars-D5QspUBE.js +72 -0
  44. package/dist/Steps-DbN5vFrP.js +173 -0
  45. package/dist/Switch-Ck_xB0ID.js +49 -0
  46. package/dist/Text-CaOF75Z-.js +121 -0
  47. package/dist/TextHighlighted-Dwq9Clgn.js +34 -0
  48. package/dist/TextInline-BcA4H2Tk.js +34 -0
  49. package/dist/Toast-wJAjSLfo.js +1019 -0
  50. package/dist/TokyoUIChevronDown-DGcVqR1z.js +14 -0
  51. package/dist/Tooltip-grvKQxTN.js +84 -0
  52. package/dist/VisuallyHidden-CtcHcZCK.js +29 -0
  53. package/dist/align-self-VrZUceie.js +42 -0
  54. package/dist/assets/Accordion.css +2 -2
  55. package/dist/assets/AlertBannerProvider.css +2 -2
  56. package/dist/assets/AlertDialog.css +2 -2
  57. package/dist/assets/Avatar.css +3 -3
  58. package/dist/assets/AvatarWithStatus.css +2 -2
  59. package/dist/assets/Badge.css +1 -1
  60. package/dist/assets/Box.css +3 -3
  61. package/dist/assets/BubbleCounter.css +1 -1
  62. package/dist/assets/Button.css +4 -4
  63. package/dist/assets/ButtonBase.css +40 -46
  64. package/dist/assets/Checkbox.css +1 -1
  65. package/dist/assets/Chips.css +2 -2
  66. package/dist/assets/ChipsPrimitive.css +2 -2
  67. package/dist/assets/CountryFlag.css +1 -1
  68. package/dist/assets/Dialog.css +13 -4
  69. package/dist/assets/Divider.css +1 -1
  70. package/dist/assets/DropdownMenu.css +2 -2
  71. package/dist/assets/FieldButton.css +3 -3
  72. package/dist/assets/FormControl.css +1 -1
  73. package/dist/assets/Heading.css +3 -3
  74. package/dist/assets/Icon.css +3 -3
  75. package/dist/assets/InputContainer.css +2 -2
  76. package/dist/assets/LayoutFlex.css +1 -1
  77. package/dist/assets/LayoutFlexItem.css +1 -1
  78. package/dist/assets/Link.css +3 -3
  79. package/dist/assets/Loader.css +1 -1
  80. package/dist/assets/OnboardingTooltip.css +1 -1
  81. package/dist/assets/OnboardingTour.css +1 -1
  82. package/dist/assets/PreplyLogo.css +1 -1
  83. package/dist/assets/ProgressBar.css +1 -1
  84. package/dist/assets/ProgressSteps.css +1 -1
  85. package/dist/assets/Select.css +2 -2
  86. package/dist/assets/Slider.css +1 -1
  87. package/dist/assets/Spinner.css +3 -3
  88. package/dist/assets/Stars.css +3 -3
  89. package/dist/assets/Steps.css +2 -2
  90. package/dist/assets/Switch.css +1 -1
  91. package/dist/assets/Text.css +3 -3
  92. package/dist/assets/TextHighlighted.css +3 -3
  93. package/dist/assets/TextInline.css +3 -3
  94. package/dist/assets/Toast.css +2 -2
  95. package/dist/assets/Tooltip.css +1 -1
  96. package/dist/assets/align-self.css +1 -1
  97. package/dist/assets/{IconTile.css → components.css} +1 -1
  98. package/dist/assets/exp-color.css +2 -2
  99. package/dist/assets/index.css +1 -1
  100. package/dist/assets/layout-gap.css +3 -3
  101. package/dist/assets/layout-grid.css +3 -3
  102. package/dist/assets/layout-hide.css +1 -1
  103. package/dist/assets/layout-padding.css +3 -3
  104. package/dist/assets/layout-relative.css +1 -1
  105. package/dist/assets/text-accent.css +2 -2
  106. package/dist/assets/text-centered.css +1 -1
  107. package/dist/assets/text-weight.css +2 -2
  108. package/dist/chunk-BVTlhY3a.js +24 -0
  109. package/dist/components/Accordion/Accordion.js +4 -60
  110. package/dist/components/Accordion/hooks/useOnOpenChange.js +19 -28
  111. package/dist/components/AlertBanner/AlertBanner.js +11 -26
  112. package/dist/components/AlertBanner/AlertBannerProvider.js +3 -8
  113. package/dist/components/AlertBanner/primitives/AlertBannerAction.js +11 -69
  114. package/dist/components/AlertBanner/primitives/AlertBannerIcon.js +77 -39
  115. package/dist/components/AlertBanner/primitives/AlertBannerRoot.js +26 -22
  116. package/dist/components/AlertBanner/primitives/AlertBannerText.js +11 -70
  117. package/dist/components/AlertDialog/AlertDialog.js +5 -430
  118. package/dist/components/Avatar/Avatar.js +3 -71
  119. package/dist/components/AvatarWithStatus/AvatarWithStatus.js +3 -43
  120. package/dist/components/Badge/Badge.js +4 -62
  121. package/dist/components/Box/Box.js +3 -95
  122. package/dist/components/BubbleCounter/BubbleCounter.js +23 -28
  123. package/dist/components/Button/Button.js +4 -80
  124. package/dist/components/CalloutBanner/CalloutBanner.js +61 -12
  125. package/dist/components/CalloutBanner/primitives/CalloutBannerDismissButton.js +50 -22
  126. package/dist/components/CalloutBanner/primitives/CalloutBannerIcon.js +86 -45
  127. package/dist/components/CalloutBanner/primitives/CalloutBannerRoot.js +50 -24
  128. package/dist/components/CalloutBanner/primitives/CalloutBannerText.js +41 -11
  129. package/dist/components/Checkbox/Checkbox.js +4 -78
  130. package/dist/components/Checkbox/hooks/useIndeterminate.js +24 -30
  131. package/dist/components/Chips/Chips.types.js +0 -1
  132. package/dist/components/Chips/DismissibleChips.js +117 -86
  133. package/dist/components/Chips/MultiSelectChips.js +98 -64
  134. package/dist/components/Chips/SingleSelectChips.js +94 -57
  135. package/dist/components/Chips/private/ChipsPrimitive.js +4 -17
  136. package/dist/components/CountryFlag/CountryFlag.js +3 -44
  137. package/dist/components/Dialog/Dialog.js +56 -31
  138. package/dist/components/Dialog/DialogSteps.js +40 -29
  139. package/dist/components/Dialog/primitives/DialogActions.js +26 -19
  140. package/dist/components/Dialog/primitives/DialogButtonStack.d.ts.map +1 -1
  141. package/dist/components/Dialog/primitives/DialogButtonStack.js +22 -15
  142. package/dist/components/Dialog/primitives/DialogCloseButton.d.ts +1 -1
  143. package/dist/components/Dialog/primitives/DialogCloseButton.d.ts.map +1 -1
  144. package/dist/components/Dialog/primitives/DialogCloseButton.js +4 -67
  145. package/dist/components/Dialog/primitives/DialogDescription.js +3 -43
  146. package/dist/components/Dialog/primitives/DialogFooter.js +37 -34
  147. package/dist/components/Dialog/primitives/DialogRoot.js +4 -315
  148. package/dist/components/Dialog/primitives/DialogTitle.js +3 -42
  149. package/dist/components/Divider/Divider.js +3 -14
  150. package/dist/components/DropdownMenu/DropdownMenu.js +253 -188
  151. package/dist/components/DropdownMenu/primitives/DropdownMenu.primitives.js +5 -34
  152. package/dist/components/DropdownMenu/primitives/DropdownMenuSelectItem.primitives.js +121 -71
  153. package/dist/components/FieldButton/FieldButton.js +3 -37
  154. package/dist/components/FormControl/FormControl.js +3 -105
  155. package/dist/components/Heading/Heading.js +3 -78
  156. package/dist/components/Icon/Icon.js +4 -49
  157. package/dist/components/IconButton/IconButton.d.ts +5 -1
  158. package/dist/components/IconButton/IconButton.d.ts.map +1 -1
  159. package/dist/components/IconButton/IconButton.js +4 -28
  160. package/dist/components/IconTile/IconTile.js +11 -69
  161. package/dist/components/IntlFormatted/IntlFormattedAggregatedDateTime.js +16 -32
  162. package/dist/components/IntlFormatted/IntlFormattedCurrency.js +20 -42
  163. package/dist/components/IntlFormatted/IntlFormattedDate.js +73 -195
  164. package/dist/components/IntlFormatted/IntlFormattedTime.js +14 -24
  165. package/dist/components/IntlFormatted/Wrapper.js +14 -8
  166. package/dist/components/LayoutFlex/LayoutFlex.js +3 -100
  167. package/dist/components/LayoutFlex/style/getStyleAttrs.js +71 -143
  168. package/dist/components/LayoutFlex/tests/AlignItems.js +67 -97
  169. package/dist/components/LayoutFlex/tests/ColumnReverse.js +63 -100
  170. package/dist/components/LayoutFlex/tests/DataOverride.js +1498 -1093
  171. package/dist/components/LayoutFlex/tests/Default.js +19 -20
  172. package/dist/components/LayoutFlex/tests/Direction.js +65 -88
  173. package/dist/components/LayoutFlex/tests/Gap.js +115 -197
  174. package/dist/components/LayoutFlex/tests/HideInline.js +95 -136
  175. package/dist/components/LayoutFlex/tests/JustifyContent.js +75 -108
  176. package/dist/components/LayoutFlex/tests/Nowrap.js +35 -42
  177. package/dist/components/LayoutFlex/tests/Padding.js +207 -263
  178. package/dist/components/LayoutFlex/tests/Relative.js +49 -64
  179. package/dist/components/LayoutFlexItem/LayoutFlexItem.js +3 -54
  180. package/dist/components/LayoutGrid/LayoutGrid.js +26 -34
  181. package/dist/components/LayoutGridItem/LayoutGridItem.js +3 -41
  182. package/dist/components/Link/Link.js +3 -72
  183. package/dist/components/Loader/Loader.js +3 -32
  184. package/dist/components/NumberField/NumberField.js +33 -35
  185. package/dist/components/ObserveIntersection/ObserveIntersection.js +41 -42
  186. package/dist/components/OnboardingTooltip/OnboardingTooltip.js +4 -115
  187. package/dist/components/OnboardingTour/OnboardingTour.js +4 -114
  188. package/dist/components/PasswordField/PasswordField.js +3 -78
  189. package/dist/components/PreplyLogo/PreplyLogo.js +3 -81
  190. package/dist/components/ProgressBar/ProgressBar.js +3 -27
  191. package/dist/components/ProgressSteps/ProgressSteps.js +3 -48
  192. package/dist/components/Rating/Rating.js +29 -20
  193. package/dist/components/Rating/RatingInput.js +57 -59
  194. package/dist/components/Rating/Stars.js +4 -8
  195. package/dist/components/Rating/hooks/useHasError.js +11 -15
  196. package/dist/components/Rating/hooks/useHoverPercentage.js +37 -45
  197. package/dist/components/Rating/hooks/useInputState.js +18 -24
  198. package/dist/components/Rating/hooks/useLocalizations.js +12 -24
  199. package/dist/components/Rating/utils/roundToHalfDecimal.js +4 -4
  200. package/dist/components/SelectField/Select.js +5 -112
  201. package/dist/components/SelectField/SelectField.js +29 -24
  202. package/dist/components/SelectField/hooks/useBreakpointMatch.js +18 -19
  203. package/dist/components/ShowOnIntersection/ShowOnIntersection.js +32 -21
  204. package/dist/components/Slider/RangeSlider.js +62 -52
  205. package/dist/components/Slider/Slider.js +3 -10
  206. package/dist/components/Steps/Steps.js +4 -210
  207. package/dist/components/Switch/Switch.js +3 -51
  208. package/dist/components/Text/Text.js +3 -128
  209. package/dist/components/TextField/TextField.js +27 -29
  210. package/dist/components/TextHighlighted/TextHighlighted.js +3 -41
  211. package/dist/components/TextInline/TextInline.js +3 -40
  212. package/dist/components/TextareaField/TextareaField.js +26 -28
  213. package/dist/components/Toast/Toast.js +4 -1168
  214. package/dist/components/Tooltip/Tooltip.js +3 -66
  215. package/dist/components/deprecated/Chips/Chips.js +4 -76
  216. package/dist/components/deprecated/NativeSelectField/NativeSelect.js +40 -32
  217. package/dist/components/deprecated/NativeSelectField/NativeSelectField.js +34 -33
  218. package/dist/components/deprecated/index.js +5 -6
  219. package/dist/components/index.js +50 -150
  220. package/dist/components/private/ButtonBase/ButtonBase.d.ts +7 -11
  221. package/dist/components/private/ButtonBase/ButtonBase.d.ts.map +1 -1
  222. package/dist/components/private/ButtonBase/ButtonBase.js +3 -247
  223. package/dist/components/private/Input/Input.js +27 -19
  224. package/dist/components/private/Input/InputContainer.js +3 -5
  225. package/dist/components/private/Input/Textarea.js +24 -20
  226. package/dist/components/private/Input/index.js +2 -4
  227. package/dist/components/private/Spinner/Spinner.js +3 -52
  228. package/dist/components/private/VisuallyHidden/VisuallyHidden.js +3 -15
  229. package/dist/components-BIYP8wHJ.js +200 -0
  230. package/dist/exp-color-C5mKAN91.js +74 -0
  231. package/dist/floating-ui.utils.dom-CoeTbDZx.js +215 -0
  232. package/dist/index.js +50 -150
  233. package/dist/index.module-1c7ENvxc.js +7 -0
  234. package/dist/jsx-runtime-i4KUlhDu.js +743 -0
  235. package/dist/layout-gap.module-DLD8bcR4.js +95 -0
  236. package/dist/layout-grid.module-CZfhrKrB.js +101 -0
  237. package/dist/layout-hide.module-B1P0N4i3.js +53 -0
  238. package/dist/layout-padding-ugY-yd2q.js +389 -0
  239. package/dist/layout-relative.module-B5xrFD9j.js +6 -0
  240. package/dist/render-icon-Ch3b2dE0.js +290 -0
  241. package/dist/shared-styles/align-self/align-self.js +2 -36
  242. package/dist/shared-styles/exp-color/exp-color.js +2 -68
  243. package/dist/shared-styles/layout-gap/layout-gap.js +13 -7
  244. package/dist/shared-styles/layout-grid/layout-grid.js +28 -28
  245. package/dist/shared-styles/layout-grid-responsive-columns/layout-grid-responsive-columns.js +29 -43
  246. package/dist/shared-styles/layout-hide/layout-hide.js +8 -8
  247. package/dist/shared-styles/layout-padding/layout-padding.js +2 -5
  248. package/dist/shared-styles/layout-relative/layout-relative.js +14 -8
  249. package/dist/shared-styles/text-accent/text-accent.js +2 -25
  250. package/dist/shared-styles/text-centered/text-centered.js +2 -24
  251. package/dist/shared-styles/text-weight/text-weight.js +2 -15
  252. package/dist/store-sN_eYeZT.js +1064 -0
  253. package/dist/storybook-utils/consts.js +6 -8
  254. package/dist/storybook-utils/index.js +1 -5
  255. package/dist/text-accent-CfUFx-1K.js +30 -0
  256. package/dist/text-centered-Dwp2_-Yp.js +30 -0
  257. package/dist/text-weight-CwoqmM4o.js +21 -0
  258. package/dist/useBaseUiId-CWAD_PSs.js +13 -0
  259. package/dist/useBreakpointMatch-D9a3CTNK.js +338 -0
  260. package/dist/useButton-DHTh3Hm7.js +148 -0
  261. package/dist/useDialogClose-BzFIyWco.js +22 -0
  262. package/dist/useId-CJsH-2wV.js +34 -0
  263. package/dist/useOpenInteractionType-D8vA_ZKI.js +4104 -0
  264. package/dist/useRenderElement-ZBds6eRN.js +341 -0
  265. package/dist/utils/Orientation/OrientationProvider.js +54 -23
  266. package/dist/utils/Orientation/index.js +2 -4
  267. package/dist/utils/RovingTabIndex/RovingTabIndexProvider.js +70 -44
  268. package/dist/utils/RovingTabIndex/index.js +2 -4
  269. package/dist/utils/createRequiredContext.js +23 -13
  270. package/dist/utils/filterAttributesPassedByRadixUIAtRuntime.js +28 -25
  271. package/dist/utils/render-icon.js +3 -320
  272. package/dist/utils/shared-strings.js +24 -32
  273. package/dist/utils/useBreakpointMatch.d.ts.map +1 -1
  274. package/dist/utils/useBreakpointMatch.js +2 -183
  275. package/dist/utils/useControllableState/useControllableState.js +31 -25
  276. package/dist/utils/useMergeRefs.js +29 -14
  277. package/dist/utils/useStableCallback/useStableCallback.js +28 -13
  278. package/package.json +17 -22
  279. package/dist/AlertBannerProvider-DTx2Xp3V.js +0 -50
  280. package/dist/BubbleCounter.module-QMwXWFIS.js +0 -16
  281. package/dist/ChipsPrimitive-DzsaOWgY.js +0 -1244
  282. package/dist/Dialog.module-Ba1X7b3N.js +0 -29
  283. package/dist/DialogRootContext-BCXmmJAw.js +0 -15
  284. package/dist/DropdownMenu.primitives-B3WK71bR.js +0 -5871
  285. package/dist/IconTile-D1G7MljH.js +0 -172
  286. package/dist/InputContainer-oHJlLWIi.js +0 -30
  287. package/dist/Slider-DB4Maswa.js +0 -55
  288. package/dist/Stars-C_mHop2H.js +0 -67
  289. package/dist/TokyoUIChevronDown-D_tD1yU8.js +0 -11
  290. package/dist/floating-ui.utils.dom-3OgjGonN.js +0 -234
  291. package/dist/index.module-Q9TzIR6B.js +0 -11
  292. package/dist/layout-gap.module-MKn_un_k.js +0 -97
  293. package/dist/layout-grid.module-P4B4WVUy.js +0 -103
  294. package/dist/layout-hide.module-Bpl3Pl-a.js +0 -55
  295. package/dist/layout-padding-D5I6rRlL.js +0 -373
  296. package/dist/layout-relative.module-1z75aSwo.js +0 -8
  297. package/dist/store-BUKWfVf3.js +0 -1155
  298. package/dist/useBaseUiId-DavsGYu9.js +0 -8
  299. package/dist/useButton-CFPpP0o5.js +0 -193
  300. package/dist/useDialogClose-C9x1leGd.js +0 -34
  301. package/dist/useId-BhIOp2JG.js +0 -28
  302. package/dist/useOpenInteractionType-Cj41-8Yk.js +0 -2880
  303. package/dist/useRenderElement-DtYPTE_y.js +0 -350
@@ -0,0 +1,743 @@
1
+ "use strict";
2
+ import { t as __commonJSMin } from "./chunk-BVTlhY3a.js";
3
+ import * as m from "react";
4
+ //#region builtin:esm-external-require-react
5
+ var require_builtin_esm_external_require_react = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6
+ module.exports = { ...m };
7
+ }));
8
+ //#endregion
9
+ //#region ../../node_modules/react/cjs/react-jsx-runtime.production.min.js
10
+ var require_react_jsx_runtime_production_min = /* @__PURE__ */ __commonJSMin(((exports) => {
11
+ /**
12
+ * @license React
13
+ * react-jsx-runtime.production.min.js
14
+ *
15
+ * Copyright (c) Facebook, Inc. and its affiliates.
16
+ *
17
+ * This source code is licensed under the MIT license found in the
18
+ * LICENSE file in the root directory of this source tree.
19
+ */
20
+ var f = require_builtin_esm_external_require_react(), k = Symbol.for("react.element"), l = Symbol.for("react.fragment"), m = Object.prototype.hasOwnProperty, n = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, p = {
21
+ key: !0,
22
+ ref: !0,
23
+ __self: !0,
24
+ __source: !0
25
+ };
26
+ function q(c, a, g) {
27
+ var b, d = {}, e = null, h = null;
28
+ void 0 !== g && (e = "" + g);
29
+ void 0 !== a.key && (e = "" + a.key);
30
+ void 0 !== a.ref && (h = a.ref);
31
+ for (b in a) m.call(a, b) && !p.hasOwnProperty(b) && (d[b] = a[b]);
32
+ if (c && c.defaultProps) for (b in a = c.defaultProps, a) void 0 === d[b] && (d[b] = a[b]);
33
+ return {
34
+ $$typeof: k,
35
+ type: c,
36
+ key: e,
37
+ ref: h,
38
+ props: d,
39
+ _owner: n.current
40
+ };
41
+ }
42
+ exports.Fragment = l;
43
+ exports.jsx = q;
44
+ exports.jsxs = q;
45
+ }));
46
+ //#endregion
47
+ //#region ../../node_modules/react/cjs/react-jsx-runtime.development.js
48
+ var require_react_jsx_runtime_development = /* @__PURE__ */ __commonJSMin(((exports) => {
49
+ /**
50
+ * @license React
51
+ * react-jsx-runtime.development.js
52
+ *
53
+ * Copyright (c) Facebook, Inc. and its affiliates.
54
+ *
55
+ * This source code is licensed under the MIT license found in the
56
+ * LICENSE file in the root directory of this source tree.
57
+ */
58
+ if (process.env.NODE_ENV !== "production") (function() {
59
+ "use strict";
60
+ var React = require_builtin_esm_external_require_react();
61
+ var REACT_ELEMENT_TYPE = Symbol.for("react.element");
62
+ var REACT_PORTAL_TYPE = Symbol.for("react.portal");
63
+ var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
64
+ var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
65
+ var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
66
+ var REACT_PROVIDER_TYPE = Symbol.for("react.provider");
67
+ var REACT_CONTEXT_TYPE = Symbol.for("react.context");
68
+ var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
69
+ var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
70
+ var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list");
71
+ var REACT_MEMO_TYPE = Symbol.for("react.memo");
72
+ var REACT_LAZY_TYPE = Symbol.for("react.lazy");
73
+ var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen");
74
+ var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
75
+ var FAUX_ITERATOR_SYMBOL = "@@iterator";
76
+ function getIteratorFn(maybeIterable) {
77
+ if (maybeIterable === null || typeof maybeIterable !== "object") return null;
78
+ var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
79
+ if (typeof maybeIterator === "function") return maybeIterator;
80
+ return null;
81
+ }
82
+ var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
83
+ function error(format) {
84
+ for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) args[_key2 - 1] = arguments[_key2];
85
+ printWarning("error", format, args);
86
+ }
87
+ function printWarning(level, format, args) {
88
+ var stack = ReactSharedInternals.ReactDebugCurrentFrame.getStackAddendum();
89
+ if (stack !== "") {
90
+ format += "%s";
91
+ args = args.concat([stack]);
92
+ }
93
+ var argsWithFormat = args.map(function(item) {
94
+ return String(item);
95
+ });
96
+ argsWithFormat.unshift("Warning: " + format);
97
+ Function.prototype.apply.call(console[level], console, argsWithFormat);
98
+ }
99
+ var enableScopeAPI = false;
100
+ var enableCacheElement = false;
101
+ var enableTransitionTracing = false;
102
+ var enableLegacyHidden = false;
103
+ var enableDebugTracing = false;
104
+ var REACT_MODULE_REFERENCE = Symbol.for("react.module.reference");
105
+ function isValidElementType(type) {
106
+ if (typeof type === "string" || typeof type === "function") return true;
107
+ if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing) return true;
108
+ if (typeof type === "object" && type !== null) {
109
+ if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== void 0) return true;
110
+ }
111
+ return false;
112
+ }
113
+ function getWrappedName(outerType, innerType, wrapperName) {
114
+ var displayName = outerType.displayName;
115
+ if (displayName) return displayName;
116
+ var functionName = innerType.displayName || innerType.name || "";
117
+ return functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName;
118
+ }
119
+ function getContextName(type) {
120
+ return type.displayName || "Context";
121
+ }
122
+ function getComponentNameFromType(type) {
123
+ if (type == null) return null;
124
+ if (typeof type.tag === "number") error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.");
125
+ if (typeof type === "function") return type.displayName || type.name || null;
126
+ if (typeof type === "string") return type;
127
+ switch (type) {
128
+ case REACT_FRAGMENT_TYPE: return "Fragment";
129
+ case REACT_PORTAL_TYPE: return "Portal";
130
+ case REACT_PROFILER_TYPE: return "Profiler";
131
+ case REACT_STRICT_MODE_TYPE: return "StrictMode";
132
+ case REACT_SUSPENSE_TYPE: return "Suspense";
133
+ case REACT_SUSPENSE_LIST_TYPE: return "SuspenseList";
134
+ }
135
+ if (typeof type === "object") switch (type.$$typeof) {
136
+ case REACT_CONTEXT_TYPE: return getContextName(type) + ".Consumer";
137
+ case REACT_PROVIDER_TYPE: return getContextName(type._context) + ".Provider";
138
+ case REACT_FORWARD_REF_TYPE: return getWrappedName(type, type.render, "ForwardRef");
139
+ case REACT_MEMO_TYPE:
140
+ var outerName = type.displayName || null;
141
+ if (outerName !== null) return outerName;
142
+ return getComponentNameFromType(type.type) || "Memo";
143
+ case REACT_LAZY_TYPE:
144
+ var lazyComponent = type;
145
+ var payload = lazyComponent._payload;
146
+ var init = lazyComponent._init;
147
+ try {
148
+ return getComponentNameFromType(init(payload));
149
+ } catch (x) {
150
+ return null;
151
+ }
152
+ }
153
+ return null;
154
+ }
155
+ var assign = Object.assign;
156
+ var disabledDepth = 0;
157
+ var prevLog;
158
+ var prevInfo;
159
+ var prevWarn;
160
+ var prevError;
161
+ var prevGroup;
162
+ var prevGroupCollapsed;
163
+ var prevGroupEnd;
164
+ function disabledLog() {}
165
+ disabledLog.__reactDisabledLog = true;
166
+ function disableLogs() {
167
+ if (disabledDepth === 0) {
168
+ prevLog = console.log;
169
+ prevInfo = console.info;
170
+ prevWarn = console.warn;
171
+ prevError = console.error;
172
+ prevGroup = console.group;
173
+ prevGroupCollapsed = console.groupCollapsed;
174
+ prevGroupEnd = console.groupEnd;
175
+ var props = {
176
+ configurable: true,
177
+ enumerable: true,
178
+ value: disabledLog,
179
+ writable: true
180
+ };
181
+ Object.defineProperties(console, {
182
+ info: props,
183
+ log: props,
184
+ warn: props,
185
+ error: props,
186
+ group: props,
187
+ groupCollapsed: props,
188
+ groupEnd: props
189
+ });
190
+ }
191
+ disabledDepth++;
192
+ }
193
+ function reenableLogs() {
194
+ disabledDepth--;
195
+ if (disabledDepth === 0) {
196
+ var props = {
197
+ configurable: true,
198
+ enumerable: true,
199
+ writable: true
200
+ };
201
+ Object.defineProperties(console, {
202
+ log: assign({}, props, { value: prevLog }),
203
+ info: assign({}, props, { value: prevInfo }),
204
+ warn: assign({}, props, { value: prevWarn }),
205
+ error: assign({}, props, { value: prevError }),
206
+ group: assign({}, props, { value: prevGroup }),
207
+ groupCollapsed: assign({}, props, { value: prevGroupCollapsed }),
208
+ groupEnd: assign({}, props, { value: prevGroupEnd })
209
+ });
210
+ }
211
+ if (disabledDepth < 0) error("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
212
+ }
213
+ var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
214
+ var prefix;
215
+ function describeBuiltInComponentFrame(name, source, ownerFn) {
216
+ if (prefix === void 0) try {
217
+ throw Error();
218
+ } catch (x) {
219
+ var match = x.stack.trim().match(/\n( *(at )?)/);
220
+ prefix = match && match[1] || "";
221
+ }
222
+ return "\n" + prefix + name;
223
+ }
224
+ var reentry = false;
225
+ var componentFrameCache = new (typeof WeakMap === "function" ? WeakMap : Map)();
226
+ function describeNativeComponentFrame(fn, construct) {
227
+ if (!fn || reentry) return "";
228
+ var frame = componentFrameCache.get(fn);
229
+ if (frame !== void 0) return frame;
230
+ var control;
231
+ reentry = true;
232
+ var previousPrepareStackTrace = Error.prepareStackTrace;
233
+ Error.prepareStackTrace = void 0;
234
+ var previousDispatcher = ReactCurrentDispatcher.current;
235
+ ReactCurrentDispatcher.current = null;
236
+ disableLogs();
237
+ try {
238
+ if (construct) {
239
+ var Fake = function() {
240
+ throw Error();
241
+ };
242
+ Object.defineProperty(Fake.prototype, "props", { set: function() {
243
+ throw Error();
244
+ } });
245
+ if (typeof Reflect === "object" && Reflect.construct) {
246
+ try {
247
+ Reflect.construct(Fake, []);
248
+ } catch (x) {
249
+ control = x;
250
+ }
251
+ Reflect.construct(fn, [], Fake);
252
+ } else {
253
+ try {
254
+ Fake.call();
255
+ } catch (x) {
256
+ control = x;
257
+ }
258
+ fn.call(Fake.prototype);
259
+ }
260
+ } else {
261
+ try {
262
+ throw Error();
263
+ } catch (x) {
264
+ control = x;
265
+ }
266
+ fn();
267
+ }
268
+ } catch (sample) {
269
+ if (sample && control && typeof sample.stack === "string") {
270
+ var sampleLines = sample.stack.split("\n");
271
+ var controlLines = control.stack.split("\n");
272
+ var s = sampleLines.length - 1;
273
+ var c = controlLines.length - 1;
274
+ while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) c--;
275
+ for (; s >= 1 && c >= 0; s--, c--) if (sampleLines[s] !== controlLines[c]) {
276
+ if (s !== 1 || c !== 1) do {
277
+ s--;
278
+ c--;
279
+ if (c < 0 || sampleLines[s] !== controlLines[c]) {
280
+ var _frame = "\n" + sampleLines[s].replace(" at new ", " at ");
281
+ if (fn.displayName && _frame.includes("<anonymous>")) _frame = _frame.replace("<anonymous>", fn.displayName);
282
+ if (typeof fn === "function") componentFrameCache.set(fn, _frame);
283
+ return _frame;
284
+ }
285
+ } while (s >= 1 && c >= 0);
286
+ break;
287
+ }
288
+ }
289
+ } finally {
290
+ reentry = false;
291
+ ReactCurrentDispatcher.current = previousDispatcher;
292
+ reenableLogs();
293
+ Error.prepareStackTrace = previousPrepareStackTrace;
294
+ }
295
+ var name = fn ? fn.displayName || fn.name : "";
296
+ var syntheticFrame = name ? describeBuiltInComponentFrame(name) : "";
297
+ if (typeof fn === "function") componentFrameCache.set(fn, syntheticFrame);
298
+ return syntheticFrame;
299
+ }
300
+ function describeFunctionComponentFrame(fn, source, ownerFn) {
301
+ return describeNativeComponentFrame(fn, false);
302
+ }
303
+ function shouldConstruct(Component) {
304
+ var prototype = Component.prototype;
305
+ return !!(prototype && prototype.isReactComponent);
306
+ }
307
+ function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
308
+ if (type == null) return "";
309
+ if (typeof type === "function") return describeNativeComponentFrame(type, shouldConstruct(type));
310
+ if (typeof type === "string") return describeBuiltInComponentFrame(type);
311
+ switch (type) {
312
+ case REACT_SUSPENSE_TYPE: return describeBuiltInComponentFrame("Suspense");
313
+ case REACT_SUSPENSE_LIST_TYPE: return describeBuiltInComponentFrame("SuspenseList");
314
+ }
315
+ if (typeof type === "object") switch (type.$$typeof) {
316
+ case REACT_FORWARD_REF_TYPE: return describeFunctionComponentFrame(type.render);
317
+ case REACT_MEMO_TYPE: return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
318
+ case REACT_LAZY_TYPE:
319
+ var lazyComponent = type;
320
+ var payload = lazyComponent._payload;
321
+ var init = lazyComponent._init;
322
+ try {
323
+ return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
324
+ } catch (x) {}
325
+ }
326
+ return "";
327
+ }
328
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
329
+ var loggedTypeFailures = {};
330
+ var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
331
+ function setCurrentlyValidatingElement(element) {
332
+ if (element) {
333
+ var owner = element._owner;
334
+ var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
335
+ ReactDebugCurrentFrame.setExtraStackFrame(stack);
336
+ } else ReactDebugCurrentFrame.setExtraStackFrame(null);
337
+ }
338
+ function checkPropTypes(typeSpecs, values, location, componentName, element) {
339
+ var has = Function.call.bind(hasOwnProperty);
340
+ for (var typeSpecName in typeSpecs) if (has(typeSpecs, typeSpecName)) {
341
+ var error$1 = void 0;
342
+ try {
343
+ if (typeof typeSpecs[typeSpecName] !== "function") {
344
+ var err = Error((componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
345
+ err.name = "Invariant Violation";
346
+ throw err;
347
+ }
348
+ error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
349
+ } catch (ex) {
350
+ error$1 = ex;
351
+ }
352
+ if (error$1 && !(error$1 instanceof Error)) {
353
+ setCurrentlyValidatingElement(element);
354
+ error("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", componentName || "React class", location, typeSpecName, typeof error$1);
355
+ setCurrentlyValidatingElement(null);
356
+ }
357
+ if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
358
+ loggedTypeFailures[error$1.message] = true;
359
+ setCurrentlyValidatingElement(element);
360
+ error("Failed %s type: %s", location, error$1.message);
361
+ setCurrentlyValidatingElement(null);
362
+ }
363
+ }
364
+ }
365
+ var isArrayImpl = Array.isArray;
366
+ function isArray(a) {
367
+ return isArrayImpl(a);
368
+ }
369
+ function typeName(value) {
370
+ return typeof Symbol === "function" && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
371
+ }
372
+ function willCoercionThrow(value) {
373
+ try {
374
+ testStringCoercion(value);
375
+ return false;
376
+ } catch (e) {
377
+ return true;
378
+ }
379
+ }
380
+ function testStringCoercion(value) {
381
+ return "" + value;
382
+ }
383
+ function checkKeyStringCoercion(value) {
384
+ if (willCoercionThrow(value)) {
385
+ error("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", typeName(value));
386
+ return testStringCoercion(value);
387
+ }
388
+ }
389
+ var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
390
+ var RESERVED_PROPS = {
391
+ key: true,
392
+ ref: true,
393
+ __self: true,
394
+ __source: true
395
+ };
396
+ var specialPropKeyWarningShown;
397
+ var specialPropRefWarningShown;
398
+ var didWarnAboutStringRefs = {};
399
+ function hasValidRef(config) {
400
+ if (hasOwnProperty.call(config, "ref")) {
401
+ var getter = Object.getOwnPropertyDescriptor(config, "ref").get;
402
+ if (getter && getter.isReactWarning) return false;
403
+ }
404
+ return config.ref !== void 0;
405
+ }
406
+ function hasValidKey(config) {
407
+ if (hasOwnProperty.call(config, "key")) {
408
+ var getter = Object.getOwnPropertyDescriptor(config, "key").get;
409
+ if (getter && getter.isReactWarning) return false;
410
+ }
411
+ return config.key !== void 0;
412
+ }
413
+ function warnIfStringRefCannotBeAutoConverted(config, self) {
414
+ if (typeof config.ref === "string" && ReactCurrentOwner.current && self && ReactCurrentOwner.current.stateNode !== self) {
415
+ var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);
416
+ if (!didWarnAboutStringRefs[componentName]) {
417
+ error("Component \"%s\" contains the string ref \"%s\". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref", getComponentNameFromType(ReactCurrentOwner.current.type), config.ref);
418
+ didWarnAboutStringRefs[componentName] = true;
419
+ }
420
+ }
421
+ }
422
+ function defineKeyPropWarningGetter(props, displayName) {
423
+ var warnAboutAccessingKey = function() {
424
+ if (!specialPropKeyWarningShown) {
425
+ specialPropKeyWarningShown = true;
426
+ error("%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://reactjs.org/link/special-props)", displayName);
427
+ }
428
+ };
429
+ warnAboutAccessingKey.isReactWarning = true;
430
+ Object.defineProperty(props, "key", {
431
+ get: warnAboutAccessingKey,
432
+ configurable: true
433
+ });
434
+ }
435
+ function defineRefPropWarningGetter(props, displayName) {
436
+ var warnAboutAccessingRef = function() {
437
+ if (!specialPropRefWarningShown) {
438
+ specialPropRefWarningShown = true;
439
+ error("%s: `ref` 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://reactjs.org/link/special-props)", displayName);
440
+ }
441
+ };
442
+ warnAboutAccessingRef.isReactWarning = true;
443
+ Object.defineProperty(props, "ref", {
444
+ get: warnAboutAccessingRef,
445
+ configurable: true
446
+ });
447
+ }
448
+ /**
449
+ * Factory method to create a new React element. This no longer adheres to
450
+ * the class pattern, so do not use new to call it. Also, instanceof check
451
+ * will not work. Instead test $$typeof field against Symbol.for('react.element') to check
452
+ * if something is a React Element.
453
+ *
454
+ * @param {*} type
455
+ * @param {*} props
456
+ * @param {*} key
457
+ * @param {string|object} ref
458
+ * @param {*} owner
459
+ * @param {*} self A *temporary* helper to detect places where `this` is
460
+ * different from the `owner` when React.createElement is called, so that we
461
+ * can warn. We want to get rid of owner and replace string `ref`s with arrow
462
+ * functions, and as long as `this` and owner are the same, there will be no
463
+ * change in behavior.
464
+ * @param {*} source An annotation object (added by a transpiler or otherwise)
465
+ * indicating filename, line number, and/or other information.
466
+ * @internal
467
+ */
468
+ var ReactElement = function(type, key, ref, self, source, owner, props) {
469
+ var element = {
470
+ $$typeof: REACT_ELEMENT_TYPE,
471
+ type,
472
+ key,
473
+ ref,
474
+ props,
475
+ _owner: owner
476
+ };
477
+ element._store = {};
478
+ Object.defineProperty(element._store, "validated", {
479
+ configurable: false,
480
+ enumerable: false,
481
+ writable: true,
482
+ value: false
483
+ });
484
+ Object.defineProperty(element, "_self", {
485
+ configurable: false,
486
+ enumerable: false,
487
+ writable: false,
488
+ value: self
489
+ });
490
+ Object.defineProperty(element, "_source", {
491
+ configurable: false,
492
+ enumerable: false,
493
+ writable: false,
494
+ value: source
495
+ });
496
+ if (Object.freeze) {
497
+ Object.freeze(element.props);
498
+ Object.freeze(element);
499
+ }
500
+ return element;
501
+ };
502
+ /**
503
+ * https://github.com/reactjs/rfcs/pull/107
504
+ * @param {*} type
505
+ * @param {object} props
506
+ * @param {string} key
507
+ */
508
+ function jsxDEV(type, config, maybeKey, source, self) {
509
+ var propName;
510
+ var props = {};
511
+ var key = null;
512
+ var ref = null;
513
+ if (maybeKey !== void 0) {
514
+ checkKeyStringCoercion(maybeKey);
515
+ key = "" + maybeKey;
516
+ }
517
+ if (hasValidKey(config)) {
518
+ checkKeyStringCoercion(config.key);
519
+ key = "" + config.key;
520
+ }
521
+ if (hasValidRef(config)) {
522
+ ref = config.ref;
523
+ warnIfStringRefCannotBeAutoConverted(config, self);
524
+ }
525
+ for (propName in config) if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) props[propName] = config[propName];
526
+ if (type && type.defaultProps) {
527
+ var defaultProps = type.defaultProps;
528
+ for (propName in defaultProps) if (props[propName] === void 0) props[propName] = defaultProps[propName];
529
+ }
530
+ if (key || ref) {
531
+ var displayName = typeof type === "function" ? type.displayName || type.name || "Unknown" : type;
532
+ if (key) defineKeyPropWarningGetter(props, displayName);
533
+ if (ref) defineRefPropWarningGetter(props, displayName);
534
+ }
535
+ return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
536
+ }
537
+ var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
538
+ var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
539
+ function setCurrentlyValidatingElement$1(element) {
540
+ if (element) {
541
+ var owner = element._owner;
542
+ var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
543
+ ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
544
+ } else ReactDebugCurrentFrame$1.setExtraStackFrame(null);
545
+ }
546
+ var propTypesMisspellWarningShown = false;
547
+ /**
548
+ * Verifies the object is a ReactElement.
549
+ * See https://reactjs.org/docs/react-api.html#isvalidelement
550
+ * @param {?object} object
551
+ * @return {boolean} True if `object` is a ReactElement.
552
+ * @final
553
+ */
554
+ function isValidElement(object) {
555
+ return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
556
+ }
557
+ function getDeclarationErrorAddendum() {
558
+ if (ReactCurrentOwner$1.current) {
559
+ var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);
560
+ if (name) return "\n\nCheck the render method of `" + name + "`.";
561
+ }
562
+ return "";
563
+ }
564
+ function getSourceInfoErrorAddendum(source) {
565
+ if (source !== void 0) {
566
+ var fileName = source.fileName.replace(/^.*[\\\/]/, "");
567
+ var lineNumber = source.lineNumber;
568
+ return "\n\nCheck your code at " + fileName + ":" + lineNumber + ".";
569
+ }
570
+ return "";
571
+ }
572
+ /**
573
+ * Warn if there's no key explicitly set on dynamic arrays of children or
574
+ * object keys are not valid. This allows us to keep track of children between
575
+ * updates.
576
+ */
577
+ var ownerHasKeyUseWarning = {};
578
+ function getCurrentComponentErrorInfo(parentType) {
579
+ var info = getDeclarationErrorAddendum();
580
+ if (!info) {
581
+ var parentName = typeof parentType === "string" ? parentType : parentType.displayName || parentType.name;
582
+ if (parentName) info = "\n\nCheck the top-level render call using <" + parentName + ">.";
583
+ }
584
+ return info;
585
+ }
586
+ /**
587
+ * Warn if the element doesn't have an explicit key assigned to it.
588
+ * This element is in an array. The array could grow and shrink or be
589
+ * reordered. All children that haven't already been validated are required to
590
+ * have a "key" property assigned to it. Error statuses are cached so a warning
591
+ * will only be shown once.
592
+ *
593
+ * @internal
594
+ * @param {ReactElement} element Element that requires a key.
595
+ * @param {*} parentType element's parent's type.
596
+ */
597
+ function validateExplicitKey(element, parentType) {
598
+ if (!element._store || element._store.validated || element.key != null) return;
599
+ element._store.validated = true;
600
+ var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
601
+ if (ownerHasKeyUseWarning[currentComponentErrorInfo]) return;
602
+ ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
603
+ var childOwner = "";
604
+ if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
605
+ setCurrentlyValidatingElement$1(element);
606
+ error("Each child in a list should have a unique \"key\" prop.%s%s See https://reactjs.org/link/warning-keys for more information.", currentComponentErrorInfo, childOwner);
607
+ setCurrentlyValidatingElement$1(null);
608
+ }
609
+ /**
610
+ * Ensure that every element either is passed in a static location, in an
611
+ * array with an explicit keys property defined, or in an object literal
612
+ * with valid key property.
613
+ *
614
+ * @internal
615
+ * @param {ReactNode} node Statically passed child of any type.
616
+ * @param {*} parentType node's parent's type.
617
+ */
618
+ function validateChildKeys(node, parentType) {
619
+ if (typeof node !== "object") return;
620
+ if (isArray(node)) for (var i = 0; i < node.length; i++) {
621
+ var child = node[i];
622
+ if (isValidElement(child)) validateExplicitKey(child, parentType);
623
+ }
624
+ else if (isValidElement(node)) {
625
+ if (node._store) node._store.validated = true;
626
+ } else if (node) {
627
+ var iteratorFn = getIteratorFn(node);
628
+ if (typeof iteratorFn === "function") {
629
+ if (iteratorFn !== node.entries) {
630
+ var iterator = iteratorFn.call(node);
631
+ var step;
632
+ while (!(step = iterator.next()).done) if (isValidElement(step.value)) validateExplicitKey(step.value, parentType);
633
+ }
634
+ }
635
+ }
636
+ }
637
+ /**
638
+ * Given an element, validate that its props follow the propTypes definition,
639
+ * provided by the type.
640
+ *
641
+ * @param {ReactElement} element
642
+ */
643
+ function validatePropTypes(element) {
644
+ var type = element.type;
645
+ if (type === null || type === void 0 || typeof type === "string") return;
646
+ var propTypes;
647
+ if (typeof type === "function") propTypes = type.propTypes;
648
+ else if (typeof type === "object" && (type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_MEMO_TYPE)) propTypes = type.propTypes;
649
+ else return;
650
+ if (propTypes) {
651
+ var name = getComponentNameFromType(type);
652
+ checkPropTypes(propTypes, element.props, "prop", name, element);
653
+ } else if (type.PropTypes !== void 0 && !propTypesMisspellWarningShown) {
654
+ propTypesMisspellWarningShown = true;
655
+ error("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", getComponentNameFromType(type) || "Unknown");
656
+ }
657
+ if (typeof type.getDefaultProps === "function" && !type.getDefaultProps.isReactClassApproved) error("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
658
+ }
659
+ /**
660
+ * Given a fragment, validate that it can only be provided with fragment props
661
+ * @param {ReactElement} fragment
662
+ */
663
+ function validateFragmentProps(fragment) {
664
+ var keys = Object.keys(fragment.props);
665
+ for (var i = 0; i < keys.length; i++) {
666
+ var key = keys[i];
667
+ if (key !== "children" && key !== "key") {
668
+ setCurrentlyValidatingElement$1(fragment);
669
+ error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", key);
670
+ setCurrentlyValidatingElement$1(null);
671
+ break;
672
+ }
673
+ }
674
+ if (fragment.ref !== null) {
675
+ setCurrentlyValidatingElement$1(fragment);
676
+ error("Invalid attribute `ref` supplied to `React.Fragment`.");
677
+ setCurrentlyValidatingElement$1(null);
678
+ }
679
+ }
680
+ var didWarnAboutKeySpread = {};
681
+ function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
682
+ var validType = isValidElementType(type);
683
+ if (!validType) {
684
+ var info = "";
685
+ if (type === void 0 || typeof type === "object" && type !== null && Object.keys(type).length === 0) info += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";
686
+ var sourceInfo = getSourceInfoErrorAddendum(source);
687
+ if (sourceInfo) info += sourceInfo;
688
+ else info += getDeclarationErrorAddendum();
689
+ var typeString;
690
+ if (type === null) typeString = "null";
691
+ else if (isArray(type)) typeString = "array";
692
+ else if (type !== void 0 && type.$$typeof === REACT_ELEMENT_TYPE) {
693
+ typeString = "<" + (getComponentNameFromType(type.type) || "Unknown") + " />";
694
+ info = " Did you accidentally export a JSX literal instead of a component?";
695
+ } else typeString = typeof type;
696
+ error("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", typeString, info);
697
+ }
698
+ var element = jsxDEV(type, props, key, source, self);
699
+ if (element == null) return element;
700
+ if (validType) {
701
+ var children = props.children;
702
+ if (children !== void 0) if (isStaticChildren) if (isArray(children)) {
703
+ for (var i = 0; i < children.length; i++) validateChildKeys(children[i], type);
704
+ if (Object.freeze) Object.freeze(children);
705
+ } else error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
706
+ else validateChildKeys(children, type);
707
+ }
708
+ if (hasOwnProperty.call(props, "key")) {
709
+ var componentName = getComponentNameFromType(type);
710
+ var keys = Object.keys(props).filter(function(k) {
711
+ return k !== "key";
712
+ });
713
+ var beforeExample = keys.length > 0 ? "{key: someKey, " + keys.join(": ..., ") + ": ...}" : "{key: someKey}";
714
+ if (!didWarnAboutKeySpread[componentName + beforeExample]) {
715
+ error("A props object containing a \"key\" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />", beforeExample, componentName, keys.length > 0 ? "{" + keys.join(": ..., ") + ": ...}" : "{}", componentName);
716
+ didWarnAboutKeySpread[componentName + beforeExample] = true;
717
+ }
718
+ }
719
+ if (type === REACT_FRAGMENT_TYPE) validateFragmentProps(element);
720
+ else validatePropTypes(element);
721
+ return element;
722
+ }
723
+ function jsxWithValidationStatic(type, props, key) {
724
+ return jsxWithValidation(type, props, key, true);
725
+ }
726
+ function jsxWithValidationDynamic(type, props, key) {
727
+ return jsxWithValidation(type, props, key, false);
728
+ }
729
+ var jsx = jsxWithValidationDynamic;
730
+ var jsxs = jsxWithValidationStatic;
731
+ exports.Fragment = REACT_FRAGMENT_TYPE;
732
+ exports.jsx = jsx;
733
+ exports.jsxs = jsxs;
734
+ })();
735
+ }));
736
+ //#endregion
737
+ //#region ../../node_modules/react/jsx-runtime.js
738
+ var require_jsx_runtime = /* @__PURE__ */ __commonJSMin(((exports, module) => {
739
+ if (process.env.NODE_ENV === "production") module.exports = require_react_jsx_runtime_production_min();
740
+ else module.exports = require_react_jsx_runtime_development();
741
+ }));
742
+ //#endregion
743
+ export { require_builtin_esm_external_require_react as n, require_jsx_runtime as t };