@konstructio/ui 0.1.2-alpha.78 → 0.1.2-alpha.79

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 (506) hide show
  1. package/dist/AdditionalOptions-Cx9wU01w.js +37 -0
  2. package/dist/AlertDialogTrigger-C-NMEoDd.js +146 -0
  3. package/dist/Breadcrumb-C95aOsYk.js +77 -0
  4. package/dist/CalendarPanel.css +1 -1
  5. package/dist/Checkbox-Cn0UWlk8.js +239 -0
  6. package/dist/Combination-DUTBK_qM.js +486 -0
  7. package/dist/CommandInput-BKv-EZ7T.js +76 -0
  8. package/dist/Counter-DtQu_T-D.js +191 -0
  9. package/dist/DayPicker-CNWQ1Oyd.js +2884 -0
  10. package/dist/DropdownButton-B2XkEqPt.js +92 -0
  11. package/dist/FlagSelectorList-C17nmEBM.js +597 -0
  12. package/dist/ImageUpload-BzXjGZ2w.js +181 -0
  13. package/dist/Input-GBMxM3Z7.js +188 -0
  14. package/dist/Loading-DKqxR-oV.js +16 -0
  15. package/dist/Modal-DbTe8PVX.js +76 -0
  16. package/dist/Spinner-CyuXAaC8.js +41 -0
  17. package/dist/StepIndicatorContent-D5z1Ziqg.js +30 -0
  18. package/dist/Switch-DjbC0A8y.js +136 -0
  19. package/dist/Toast-C3XjAvtC.js +478 -0
  20. package/dist/Wrapper-BWSOaT1y.js +1056 -0
  21. package/dist/Wrapper-CjUokv72.js +110 -0
  22. package/dist/Wrapper-DEJ-hyar.js +161 -0
  23. package/dist/assets/icons/components/Accounts.js +21 -35
  24. package/dist/assets/icons/components/AddChart.js +17 -25
  25. package/dist/assets/icons/components/AlertOutline.js +18 -26
  26. package/dist/assets/icons/components/AppRepo.js +14 -22
  27. package/dist/assets/icons/components/Apps.js +14 -22
  28. package/dist/assets/icons/components/Archives.js +14 -22
  29. package/dist/assets/icons/components/ArrowDown.js +14 -22
  30. package/dist/assets/icons/components/ArrowLeft.js +17 -25
  31. package/dist/assets/icons/components/ArrowRight.js +18 -26
  32. package/dist/assets/icons/components/ArrowUp.js +18 -26
  33. package/dist/assets/icons/components/BarChart.js +24 -32
  34. package/dist/assets/icons/components/BookOpen.js +18 -26
  35. package/dist/assets/icons/components/CalendarMonth.js +17 -25
  36. package/dist/assets/icons/components/Check.js +17 -25
  37. package/dist/assets/icons/components/CheckCircleFilled.js +25 -26
  38. package/dist/assets/icons/components/CheckCircleOutline.js +14 -22
  39. package/dist/assets/icons/components/CheckboxMarkedCircleOutline.js +14 -20
  40. package/dist/assets/icons/components/ClockAlert.js +17 -25
  41. package/dist/assets/icons/components/ClockOutline.js +17 -25
  42. package/dist/assets/icons/components/Close.js +17 -25
  43. package/dist/assets/icons/components/Cloud.js +14 -19
  44. package/dist/assets/icons/components/CloudLockOutline.js +17 -25
  45. package/dist/assets/icons/components/Clusters.js +27 -41
  46. package/dist/assets/icons/components/CogOutline.js +17 -25
  47. package/dist/assets/icons/components/Copy.js +17 -25
  48. package/dist/assets/icons/components/Cpu.js +22 -36
  49. package/dist/assets/icons/components/Cube.js +14 -22
  50. package/dist/assets/icons/components/Datacenter.js +14 -22
  51. package/dist/assets/icons/components/Delete.js +18 -26
  52. package/dist/assets/icons/components/DollarSign.js +20 -28
  53. package/dist/assets/icons/components/Download.js +17 -25
  54. package/dist/assets/icons/components/Edit.js +17 -25
  55. package/dist/assets/icons/components/Ellipses.js +17 -25
  56. package/dist/assets/icons/components/Environments.js +19 -27
  57. package/dist/assets/icons/components/Error.js +17 -25
  58. package/dist/assets/icons/components/ErrorOutline.js +17 -25
  59. package/dist/assets/icons/components/Exclamation.js +21 -26
  60. package/dist/assets/icons/components/Git.js +17 -25
  61. package/dist/assets/icons/components/GitOpsCatalog.js +21 -35
  62. package/dist/assets/icons/components/GridView.js +11 -16
  63. package/dist/assets/icons/components/Help.js +24 -23
  64. package/dist/assets/icons/components/HideOutline.js +18 -32
  65. package/dist/assets/icons/components/Home.js +17 -25
  66. package/dist/assets/icons/components/Home2.js +20 -25
  67. package/dist/assets/icons/components/Id.js +14 -22
  68. package/dist/assets/icons/components/InfoCircle.js +28 -29
  69. package/dist/assets/icons/components/InformationOutline.js +14 -22
  70. package/dist/assets/icons/components/InvoiceList.js +17 -25
  71. package/dist/assets/icons/components/Key.js +17 -25
  72. package/dist/assets/icons/components/LightBulb.js +24 -38
  73. package/dist/assets/icons/components/Loader.js +15 -23
  74. package/dist/assets/icons/components/Network.js +14 -22
  75. package/dist/assets/icons/components/PagesStack.js +24 -23
  76. package/dist/assets/icons/components/Pageview.js +17 -25
  77. package/dist/assets/icons/components/People.js +17 -25
  78. package/dist/assets/icons/components/PhotoLibrary.js +17 -25
  79. package/dist/assets/icons/components/Pipeline.js +19 -27
  80. package/dist/assets/icons/components/Plus.js +17 -25
  81. package/dist/assets/icons/components/PowerSettings.js +15 -23
  82. package/dist/assets/icons/components/Preview.js +14 -22
  83. package/dist/assets/icons/components/ReceiptLong.js +11 -16
  84. package/dist/assets/icons/components/Refresh.js +14 -22
  85. package/dist/assets/icons/components/ScatterPlot.js +14 -19
  86. package/dist/assets/icons/components/Search.js +26 -26
  87. package/dist/assets/icons/components/Server.js +18 -26
  88. package/dist/assets/icons/components/Start.js +18 -26
  89. package/dist/assets/icons/components/TabNew.js +31 -45
  90. package/dist/assets/icons/components/Teams.js +17 -25
  91. package/dist/assets/icons/components/Upload.js +17 -25
  92. package/dist/assets/icons/components/Warning.js +17 -25
  93. package/dist/assets/icons/components/WarningTriangle.js +17 -25
  94. package/dist/assets/icons/components/X.js +17 -25
  95. package/dist/assets/icons/components/index.js +82 -82
  96. package/dist/assets/icons/index.js +88 -88
  97. package/dist/chevron-down-DgssmYWu.js +8 -0
  98. package/dist/chevron-left-DRJXef9g.js +8 -0
  99. package/dist/chevron-right-BooB_b7g.js +8 -0
  100. package/dist/chevron-up-DuS9MUNr.js +8 -0
  101. package/dist/chunk-D1xtDmiO.js +31 -0
  102. package/dist/{clsx-OuTLNxxd.js → clsx-kDhLfUq2.js} +1 -1
  103. package/dist/components/Alert/Alert.js +53 -57
  104. package/dist/components/Alert/Alert.variants.js +90 -105
  105. package/dist/components/AlertDialog/AlertDialog.js +66 -124
  106. package/dist/components/AlertDialog/components/AlertDialogTrigger.js +2 -6
  107. package/dist/components/AlertDialog/components/index.js +2 -2
  108. package/dist/components/AlertDialog/hooks/useAlertDialog.js +12 -7
  109. package/dist/components/Autocomplete/Autocomplete.js +55 -79
  110. package/dist/components/Autocomplete/Autocomplete.variants.js +7 -3
  111. package/dist/components/Autocomplete/components/List/List.js +30 -42
  112. package/dist/components/Autocomplete/components/List/List.variants.js +7 -7
  113. package/dist/components/Autocomplete/components/index.js +2 -2
  114. package/dist/components/Autocomplete/hooks/useAutocomplete.js +30 -61
  115. package/dist/components/Autocomplete/hooks/useNavigationList.js +42 -54
  116. package/dist/components/Badge/Badge.js +59 -74
  117. package/dist/components/Badge/Badge.variants.js +89 -99
  118. package/dist/components/Breadcrumb/Breadcrumb.js +2 -89
  119. package/dist/components/Breadcrumb/Breadcrumb.variants.js +9 -5
  120. package/dist/components/Breadcrumb/components/Item/Item.js +31 -45
  121. package/dist/components/Breadcrumb/components/Item/Item.variants.js +52 -65
  122. package/dist/components/Breadcrumb/hooks/useBreadcrumb.js +2 -2
  123. package/dist/components/Button/Button.js +21 -39
  124. package/dist/components/Button/Button.variants.js +314 -291
  125. package/dist/components/ButtonGroup/ButtonGroup.js +80 -134
  126. package/dist/components/ButtonGroup/ButtonGroup.variants.js +20 -27
  127. package/dist/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.js +55 -111
  128. package/dist/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.variants.js +88 -101
  129. package/dist/components/ButtonGroup/components/ButtonGroupItem/index.js +2 -2
  130. package/dist/components/ButtonGroup/components/ButtonGroupLabel/ButtonGroupLabel.js +20 -42
  131. package/dist/components/ButtonGroup/components/ButtonGroupLabel/index.js +2 -2
  132. package/dist/components/ButtonGroup/components/ButtonGroupMessage/ButtonGroupMessage.js +13 -32
  133. package/dist/components/ButtonGroup/components/index.js +6 -6
  134. package/dist/components/ButtonGroup/hooks/index.js +2 -2
  135. package/dist/components/ButtonGroup/hooks/useButtonGroup.js +27 -40
  136. package/dist/components/Card/Card.js +20 -32
  137. package/dist/components/Card/Card.variants.js +40 -39
  138. package/dist/components/Checkbox/Checkbox.js +2 -364
  139. package/dist/components/Checkbox/Checkbox.variants.js +54 -64
  140. package/dist/components/Command/Command.js +27 -36
  141. package/dist/components/Command/Command.variants.js +3 -3
  142. package/dist/components/Command/components/Command.js +13 -5
  143. package/dist/components/Command/components/CommandEmpty.js +10 -13
  144. package/dist/components/Command/components/CommandGroup.js +8 -14
  145. package/dist/components/Command/components/CommandInput.js +2 -82
  146. package/dist/components/Command/components/CommandItem.js +16 -25
  147. package/dist/components/Command/components/CommandList.js +9 -12
  148. package/dist/components/Command/components/CommandSeparator.js +9 -12
  149. package/dist/components/Command/components/CommandShortcut.js +8 -17
  150. package/dist/components/Command/components/DialogContent.js +19 -28
  151. package/dist/components/Command/components/DialogOverlay.js +11 -17
  152. package/dist/components/Command/components/index.js +16 -16
  153. package/dist/components/Command/contexts/Command.context.js +1 -1
  154. package/dist/components/Command/contexts/Command.provider.js +15 -21
  155. package/dist/components/Command/contexts/index.js +2 -2
  156. package/dist/components/Counter/Counter.js +3 -209
  157. package/dist/components/Counter/Counter.variants.js +35 -48
  158. package/dist/components/DateRangePicker/DateRangePicker.js +68 -153
  159. package/dist/components/DateRangePicker/DateRangePicker.variants.js +5 -5
  160. package/dist/components/DateRangePicker/components/CalendarPanel/CalendarPanel.js +64 -104
  161. package/dist/components/DateRangePicker/components/CalendarPanel/CalendarPanel.variants.js +17 -17
  162. package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarDivider/CalendarDivider.js +5 -17
  163. package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/CalendarMonth.js +34 -56
  164. package/dist/components/DateRangePicker/components/CalendarPanel/components/IndependentModeCalendar/IndependentModeCalendar.js +181 -304
  165. package/dist/components/DateRangePicker/components/CalendarPanel/components/NavigationButton/NavigationButton.js +17 -36
  166. package/dist/components/DateRangePicker/components/CalendarPanel/components/TogetherModeCalendar/TogetherModeCalendar.js +79 -127
  167. package/dist/components/DateRangePicker/components/CalendarPanel/components/index.js +6 -6
  168. package/dist/components/DateRangePicker/components/CalendarPanel/constants/dayPickerClassNames.js +2 -3
  169. package/dist/components/DateRangePicker/components/CalendarPanel/constants/index.js +10 -147
  170. package/dist/components/DateRangePicker/components/CalendarPanel/hooks/index.js +19 -19
  171. package/dist/components/DateRangePicker/components/CalendarPanel/hooks/useIndependentCarousel.js +98 -96
  172. package/dist/components/DateRangePicker/components/CalendarPanel/hooks/useTogetherCarousel.js +75 -60
  173. package/dist/components/DateRangePicker/components/CalendarPanel/utils/index.js +8 -8
  174. package/dist/components/DateRangePicker/components/DateTimeInputs/DateTimeInputs.js +54 -97
  175. package/dist/components/DateRangePicker/components/DateTimeInputs/DateTimeInputs.variants.js +13 -8
  176. package/dist/components/DateRangePicker/components/DateTimeInputs/components/EndInputFields/EndInputFields.js +40 -87
  177. package/dist/components/DateRangePicker/components/DateTimeInputs/components/StartInputFields/StartInputFields.js +41 -88
  178. package/dist/components/DateRangePicker/components/DateTimeInputs/components/index.js +2 -2
  179. package/dist/components/DateRangePicker/components/DateTimeInputs/hooks/index.js +2 -2
  180. package/dist/components/DateRangePicker/components/DateTimeInputs/hooks/useDateTimeInputs.js +151 -156
  181. package/dist/components/DateRangePicker/components/PresetPanel/PresetPanel.js +37 -61
  182. package/dist/components/DateRangePicker/components/PresetPanel/PresetPanel.variants.js +2 -2
  183. package/dist/components/DateRangePicker/components/index.js +6 -6
  184. package/dist/components/DateRangePicker/constants/index.js +2 -2
  185. package/dist/components/DateRangePicker/constants/presets.js +21 -6
  186. package/dist/components/DateRangePicker/contexts/date-range-picker.context.js +3 -3
  187. package/dist/components/DateRangePicker/contexts/date-range-picker.hook.js +4 -7
  188. package/dist/components/DateRangePicker/contexts/date-range-picker.provider.js +113 -170
  189. package/dist/components/DateRangePicker/contexts/index.js +6 -6
  190. package/dist/components/DateRangePicker/utils/disabled-dates.js +25 -45
  191. package/dist/components/DateRangePicker/utils/index.js +20 -20
  192. package/dist/components/DateRangePicker/utils/presets.js +6 -8
  193. package/dist/components/DateRangePicker/utils/validation.js +48 -60
  194. package/dist/components/Datepicker/DatePicker.js +45 -133
  195. package/dist/components/Datepicker/DatePicker.variants.js +3 -3
  196. package/dist/components/Divider/Divider.js +6 -6
  197. package/dist/components/Divider/Divider.variants.js +9 -11
  198. package/dist/components/Drawer/Drawer.js +67 -125
  199. package/dist/components/Drawer/Drawer.variants.js +59 -73
  200. package/dist/components/Drawer/components/Body/Body.js +8 -17
  201. package/dist/components/Drawer/components/Body/index.js +2 -2
  202. package/dist/components/Drawer/components/Footer/Footer.js +10 -21
  203. package/dist/components/Drawer/components/Footer/index.js +2 -2
  204. package/dist/components/Drawer/components/Header/Header.js +11 -22
  205. package/dist/components/Drawer/components/Header/index.js +2 -2
  206. package/dist/components/Drawer/components/index.js +6 -6
  207. package/dist/components/Drawer/constants/index.js +1 -1
  208. package/dist/components/Drawer/contexts/Drawer.context.js +4 -4
  209. package/dist/components/Drawer/contexts/index.js +3 -3
  210. package/dist/components/Drawer/hooks/index.js +2 -2
  211. package/dist/components/Drawer/hooks/useDrawer.js +32 -36
  212. package/dist/components/DropdownButton/DropdownButton.js +2 -133
  213. package/dist/components/Filter/Filter.js +23 -20
  214. package/dist/components/Filter/Filter.variants.js +9 -5
  215. package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.hook.js +48 -82
  216. package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +71 -143
  217. package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.hook.js +40 -71
  218. package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.js +50 -119
  219. package/dist/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.hook.js +35 -57
  220. package/dist/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.js +53 -116
  221. package/dist/components/Filter/components/ResetButton/ResetButton.js +19 -30
  222. package/dist/components/Filter/components/TextMultiSelect/TextMultiSelect.js +72 -135
  223. package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.hook.js +33 -54
  224. package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.js +72 -143
  225. package/dist/components/Filter/components/index.js +6 -6
  226. package/dist/components/Filter/contexts/filter.context.js +2 -4
  227. package/dist/components/Filter/contexts/filter.hook.js +5 -6
  228. package/dist/components/Filter/contexts/filter.provider.js +6 -3
  229. package/dist/components/Filter/contexts/index.js +4 -4
  230. package/dist/components/Filter/events/index.js +4 -8
  231. package/dist/components/Filter/utils/index.js +2 -2435
  232. package/dist/components/ImageUpload/ImageUpload.js +2 -221
  233. package/dist/components/ImageUpload/ImageUpload.variants.js +78 -95
  234. package/dist/components/Input/Input.js +2 -286
  235. package/dist/components/Input/Input.variants.js +47 -54
  236. package/dist/components/LineChart/LineChart.js +103 -133
  237. package/dist/components/Loading/Loading.js +2 -18
  238. package/dist/components/Loading/Loading.variants.js +2 -2
  239. package/dist/components/Modal/Modal.js +3 -8
  240. package/dist/components/Modal/components/Body/Body.js +8 -5
  241. package/dist/components/Modal/components/Footer/Footer.js +8 -11
  242. package/dist/components/Modal/components/Header/Header.js +8 -11
  243. package/dist/components/Modal/components/Wrapper/Wrapper.js +2 -10
  244. package/dist/components/Modal/components/Wrapper/Wrapper.variants.js +2 -2
  245. package/dist/components/Modal/components/index.js +8 -8
  246. package/dist/components/Modal/contexts/Modal.context.js +2 -4
  247. package/dist/components/Modal/contexts/Modal.provider.js +17 -20
  248. package/dist/components/Modal/contexts/index.js +2 -2
  249. package/dist/components/Modal/hooks/useModal.js +10 -10
  250. package/dist/components/MultiSelectDropdown/MultiSelectDropdown.js +2 -32
  251. package/dist/components/MultiSelectDropdown/MultiSelectDropdown.variants.js +6 -6
  252. package/dist/components/MultiSelectDropdown/components/Item/Item.js +16 -24
  253. package/dist/components/MultiSelectDropdown/components/Item/Item.variants.js +26 -35
  254. package/dist/components/MultiSelectDropdown/components/List/List.js +2 -28
  255. package/dist/components/MultiSelectDropdown/components/List/List.variants.js +3 -3
  256. package/dist/components/MultiSelectDropdown/components/Wrapper/Wrapper.js +2 -124
  257. package/dist/components/MultiSelectDropdown/components/index.js +4 -5
  258. package/dist/components/MultiSelectDropdown/contexts/MultiSelectDropdown.context.js +4 -4
  259. package/dist/components/MultiSelectDropdown/contexts/MultiSelectDropdown.hook.js +3 -6
  260. package/dist/components/MultiSelectDropdown/contexts/MultiSelectDropdown.provider.js +100 -131
  261. package/dist/components/MultiSelectDropdown/contexts/index.js +2 -2
  262. package/dist/components/MultiSelectDropdown/hooks/useMultiSelectDropdown.js +12 -21
  263. package/dist/components/PhoneNumberInput/PhoneNumberInput.js +11 -5
  264. package/dist/components/PhoneNumberInput/PhoneNumberInput.variants.js +31 -38
  265. package/dist/components/PhoneNumberInput/components/FlagContent/FlagContent.js +15 -32
  266. package/dist/components/PhoneNumberInput/components/FlagSelectorList/FlagSelectorList.js +2 -728
  267. package/dist/components/PhoneNumberInput/components/FlagSelectorWrapper/FlagSelectorWrapper.js +22 -54
  268. package/dist/components/PhoneNumberInput/components/TruncateText/TruncateText.js +37 -30
  269. package/dist/components/PhoneNumberInput/components/Wrapper.js +2 -650
  270. package/dist/components/PhoneNumberInput/components/index.js +4 -4
  271. package/dist/components/PhoneNumberInput/contexts/index.js +3 -3
  272. package/dist/components/PhoneNumberInput/contexts/phone-number.context.js +1 -1
  273. package/dist/components/PhoneNumberInput/contexts/phone-number.hook.js +5 -8
  274. package/dist/components/PhoneNumberInput/contexts/phone-number.provider.js +2 -6064
  275. package/dist/components/PhoneNumberInput/utils/index.js +7 -8
  276. package/dist/components/PieChart/PieChart.js +40 -66
  277. package/dist/components/ProgressBar/ProgressBar.js +27 -36
  278. package/dist/components/ProgressBar/ProgressBar.variants.js +19 -26
  279. package/dist/components/Radio/Radio.js +51 -95
  280. package/dist/components/Radio/Radio.variants.js +82 -88
  281. package/dist/components/RadioCard/RadioCard.js +14 -31
  282. package/dist/components/RadioCard/RadioCard.variants.js +7 -2
  283. package/dist/components/RadioCardGroup/RadioCardGroup.js +24 -42
  284. package/dist/components/RadioCardGroup/RadioCardGroup.variants.js +8 -12
  285. package/dist/components/RadioGroup/RadioGroup.js +26 -48
  286. package/dist/components/RadioGroup/RadioGroup.variants.js +8 -12
  287. package/dist/components/Range/Range.js +47 -59
  288. package/dist/components/Range/Range.variants.js +35 -44
  289. package/dist/components/Select/Select.js +35 -68
  290. package/dist/components/Select/Select.variants.js +49 -48
  291. package/dist/components/Select/components/AdditionalOptions/AdditionalOptions.js +2 -9
  292. package/dist/components/Select/components/AdditionalOptions/AdditionalOptions.variants.js +3 -24
  293. package/dist/components/Select/components/EmptyList.js +2 -2
  294. package/dist/components/Select/components/List/List.js +126 -180
  295. package/dist/components/Select/components/List/List.variants.js +3 -3
  296. package/dist/components/Select/components/ListItem/ListItem.js +54 -107
  297. package/dist/components/Select/components/ListItem/ListItem.variants.js +3 -3
  298. package/dist/components/Select/components/Wrapper.js +2 -248
  299. package/dist/components/Select/components/index.js +8 -8
  300. package/dist/components/Select/constants/index.js +4 -4
  301. package/dist/components/Select/constants/list.js +2 -2
  302. package/dist/components/Select/constants/pagination.js +2 -2
  303. package/dist/components/Select/contexts/index.js +4 -4
  304. package/dist/components/Select/contexts/select.context.js +2 -2
  305. package/dist/components/Select/contexts/select.hook.js +6 -7
  306. package/dist/components/Select/contexts/select.provider.js +41 -51
  307. package/dist/components/Select/hooks/useNavigationList.js +28 -37
  308. package/dist/components/Select/hooks/useSelect.js +36 -72
  309. package/dist/components/Sidebar/Sidebar.js +22 -21
  310. package/dist/components/Sidebar/Sidebar.variants.js +4 -4
  311. package/dist/components/Sidebar/components/Footer/Footer.js +9 -6
  312. package/dist/components/Sidebar/components/Footer/Footer.variants.js +2 -2
  313. package/dist/components/Sidebar/components/Logo/Logo.js +7 -4
  314. package/dist/components/Sidebar/components/Logo/Logo.variants.js +2 -2
  315. package/dist/components/Sidebar/components/Navigation/Navigation.js +13 -13
  316. package/dist/components/Sidebar/components/Navigation/Navigation.variants.js +8 -3
  317. package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.js +12 -22
  318. package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.variants.js +6 -2
  319. package/dist/components/Sidebar/components/NavigationOption/NavigationOption.js +12 -23
  320. package/dist/components/Sidebar/components/NavigationOption/NavigationOption.variants.js +33 -40
  321. package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.js +4 -4
  322. package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.variants.js +2 -2
  323. package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.js +9 -6
  324. package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.variants.js +3 -3
  325. package/dist/components/Sidebar/components/Wrapper/Wrapper.js +31 -77
  326. package/dist/components/Sidebar/components/index.js +14 -14
  327. package/dist/components/Slider/Slider.js +38 -56
  328. package/dist/components/Slider/Slider.variants.js +36 -45
  329. package/dist/components/Spinner/Spinner.js +2 -55
  330. package/dist/components/Spinner/Spinner.variants.js +37 -51
  331. package/dist/components/Stepper/Stepper.js +44 -71
  332. package/dist/components/Stepper/Stepper.variants.js +270 -229
  333. package/dist/components/Stepper/components/HorizontalStepItem/HorizontalStepItem.js +119 -196
  334. package/dist/components/Stepper/components/StepConnector/StepConnector.js +14 -26
  335. package/dist/components/Stepper/components/StepIndicatorContent/StepIndicatorContent.js +2 -21
  336. package/dist/components/Stepper/components/StepItem/StepItem.js +4 -4
  337. package/dist/components/Stepper/components/VerticalStepItem/VerticalStepItem.js +69 -111
  338. package/dist/components/Stepper/constants/index.js +1 -1
  339. package/dist/components/Stepper/hooks/index.js +2 -2
  340. package/dist/components/Stepper/hooks/useStepItemLogic.js +15 -18
  341. package/dist/components/Stepper/utils/index.js +4 -5
  342. package/dist/components/Switch/Switch.js +2 -228
  343. package/dist/components/Switch/Switch.variants.js +2 -2
  344. package/dist/components/Table/Table.js +17 -24
  345. package/dist/components/Table/Table.variants.js +18 -25
  346. package/dist/components/Table/components/Body.js +8 -15
  347. package/dist/components/Table/components/Filter.js +13 -7
  348. package/dist/components/Table/components/Head.js +9 -16
  349. package/dist/components/Table/components/Row.js +14 -26
  350. package/dist/components/Table/components/index.js +6 -6
  351. package/dist/components/Tabs/Tabs.js +20 -20
  352. package/dist/components/Tabs/Tabs.variants.js +55 -72
  353. package/dist/components/Tabs/components/Content.js +12 -12
  354. package/dist/components/Tabs/components/List.js +16 -18
  355. package/dist/components/Tabs/components/Trigger.js +13 -15
  356. package/dist/components/Tabs/components/index.js +4 -4
  357. package/dist/components/Tag/Tag.js +25 -16
  358. package/dist/components/Tag/Tag.variants.js +32 -39
  359. package/dist/components/TagSelect/TagSelect.js +13 -7
  360. package/dist/components/TagSelect/TagSelect.variants.js +6 -6
  361. package/dist/components/TagSelect/components/Item/Item.js +13 -16
  362. package/dist/components/TagSelect/components/Item/Item.variants.js +21 -30
  363. package/dist/components/TagSelect/components/List/List.js +15 -7
  364. package/dist/components/TagSelect/components/List/List.variants.js +3 -3
  365. package/dist/components/TagSelect/components/Wrapper/Wrapper.js +2 -85
  366. package/dist/components/TagSelect/components/index.js +6 -6
  367. package/dist/components/TagSelect/contexts/TagSelect.context.js +1 -1
  368. package/dist/components/TagSelect/contexts/TagSelect.hook.js +6 -7
  369. package/dist/components/TagSelect/contexts/TagSelect.provider.js +43 -59
  370. package/dist/components/TagSelect/contexts/index.js +4 -4
  371. package/dist/components/TagSelect/hooks/useTagSelect.js +13 -22
  372. package/dist/components/TextArea/TextArea.js +26 -33
  373. package/dist/components/TextArea/TextArea.variants.js +3 -3
  374. package/dist/components/TimePicker/TimePicker.js +12 -10
  375. package/dist/components/TimePicker/TimePicker.variants.js +2 -2
  376. package/dist/components/TimePicker/components/HoursList/HoursList.js +84 -110
  377. package/dist/components/TimePicker/components/MeridianList/MeridianList.js +53 -88
  378. package/dist/components/TimePicker/components/MinutesList/MinutesList.js +56 -82
  379. package/dist/components/TimePicker/components/Wrapper/Wrapper.js +128 -221
  380. package/dist/components/TimePicker/components/WrapperList/WrapperList.js +34 -71
  381. package/dist/components/TimePicker/components/index.js +2 -2
  382. package/dist/components/TimePicker/contexts/index.js +6 -6
  383. package/dist/components/TimePicker/contexts/time-picker.context.js +1 -1
  384. package/dist/components/TimePicker/contexts/time-picker.hook.js +4 -7
  385. package/dist/components/TimePicker/contexts/time-picker.provider.js +46 -48
  386. package/dist/components/TimePicker/utils/index.js +17 -19
  387. package/dist/components/Toast/Toast.js +3 -511
  388. package/dist/components/Toast/Toast.variants.js +32 -35
  389. package/dist/components/Tooltip/Tooltip.js +15 -34
  390. package/dist/components/Typography/Typography.js +16 -24
  391. package/dist/components/Typography/Typography.variants.js +72 -62
  392. package/dist/components/VirtualizedTable/VirtualizedTable.js +89 -159
  393. package/dist/components/VirtualizedTable/VirtualizedTable.types.d.ts +1 -1
  394. package/dist/components/VirtualizedTable/VirtualizedTable.variants.js +2 -2
  395. package/dist/components/VirtualizedTable/assets/chevron-down.js +13 -22
  396. package/dist/components/VirtualizedTable/assets/chevron-up.js +13 -22
  397. package/dist/components/VirtualizedTable/assets/index.js +4 -4
  398. package/dist/components/VirtualizedTable/components/Actions/Actions.js +34 -115
  399. package/dist/components/VirtualizedTable/components/Body/Body.js +49 -111
  400. package/dist/components/VirtualizedTable/components/DotPaginate/DotPaginate.js +91 -157
  401. package/dist/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.js +22 -30
  402. package/dist/components/VirtualizedTable/components/ExpandableRow/ExpandableRow.js +27 -47
  403. package/dist/components/VirtualizedTable/components/Filter/Filter.js +99 -164
  404. package/dist/components/VirtualizedTable/components/FormPaginate/FormPaginate.js +41 -56
  405. package/dist/components/VirtualizedTable/components/Header/Header.js +36 -98
  406. package/dist/components/VirtualizedTable/components/Pagination/Pagination.js +28 -62
  407. package/dist/components/VirtualizedTable/components/Skeleton/Skeleton.js +38 -101
  408. package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.js +29 -49
  409. package/dist/components/VirtualizedTable/components/WrapperBody/WrapperBody.js +9 -23
  410. package/dist/components/VirtualizedTable/components/index.js +10 -10
  411. package/dist/components/VirtualizedTable/constants/index.js +3 -3
  412. package/dist/components/VirtualizedTable/constants/pagination.js +6 -1
  413. package/dist/components/VirtualizedTable/contexts/index.js +6 -6
  414. package/dist/components/VirtualizedTable/contexts/table.context.js +3 -3
  415. package/dist/components/VirtualizedTable/contexts/table.hook.js +7 -8
  416. package/dist/components/VirtualizedTable/contexts/table.provider.js +2 -268
  417. package/dist/components/VirtualizedTable/contexts/table.types.d.ts +1 -1
  418. package/dist/components/VirtualizedTable/events/index.js +19 -24
  419. package/dist/components/index.js +140 -140
  420. package/dist/components-DNFycJGm.js +120 -0
  421. package/dist/constants-D96yCePL.js +31 -0
  422. package/dist/contexts/index.js +6 -6
  423. package/dist/contexts/theme.context.js +2 -2
  424. package/dist/contexts/theme.hook.js +2 -2
  425. package/dist/contexts/theme.provider.js +2 -84
  426. package/dist/createLucideIcon-BVGkzDZC.js +42 -0
  427. package/dist/debounce-CzFlgg9h.js +86 -0
  428. package/dist/dist-B5SlrgYz.js +263 -0
  429. package/dist/{index-BZPx6jYI.js → dist-BL-H4bEw2.js} +5 -2
  430. package/dist/dist-BL8l9uRy.js +361 -0
  431. package/dist/{index-DLcqcWxM.js → dist-ByyYBtbL.js} +9 -11
  432. package/dist/dist-C8r5DW7s.js +10 -0
  433. package/dist/dist-CBnErrr1.js +58 -0
  434. package/dist/dist-COY3FRYC.js +480 -0
  435. package/dist/dist-CSP6X06u.js +1701 -0
  436. package/dist/dist-DNSmoWJp.js +469 -0
  437. package/dist/dist-DRmqW28Z2.js +7479 -0
  438. package/dist/dist-DXJSck4j.js +74 -0
  439. package/dist/dist-DXXHfL7M.js +132 -0
  440. package/dist/dist-DZNdbzbm.js +120 -0
  441. package/dist/dist-DZcOdXgW.js +13 -0
  442. package/dist/dist-DeVdyMHW2.js +31 -0
  443. package/dist/{index-3fEdeexs.js → dist-DpqiA4Yn.js} +25 -28
  444. package/dist/dist-DstQl8xY.js +10 -0
  445. package/dist/dist-DtEbXv47.js +34 -0
  446. package/dist/dist-uVUx9i0a.js +223 -0
  447. package/dist/ellipsis-vertical-My0S9QY5.js +24 -0
  448. package/dist/hooks/index.js +2 -2
  449. package/dist/hooks/useToggle.js +5 -8
  450. package/dist/icons.js +88 -88
  451. package/dist/index.js +150 -149
  452. package/dist/isObject--aYwGuhx.js +62 -0
  453. package/dist/libphonenumber-7uXgv7U8.js +81977 -0
  454. package/dist/package.json +18 -18
  455. package/dist/phone-number.provider-B5TfHi8y.js +6646 -0
  456. package/dist/prop-types-DTnODft1.js +547 -0
  457. package/dist/proxy-uLtw-ZML.js +4690 -0
  458. package/dist/style.css +1 -1
  459. package/dist/styles.css +1 -1
  460. package/dist/{index-CSWGJT-v.js → table.provider-4OQNqxH3.js} +805 -674
  461. package/dist/theme.provider-BgxXUOMP.js +74 -0
  462. package/dist/useBreadcrumb-BBm5lX0U.js +1263 -0
  463. package/dist/utils/index.js +5 -2922
  464. package/dist/utils-CQSRNcoF.js +2022 -0
  465. package/dist/utils-DHuiYnx1.js +1689 -0
  466. package/dist/x-BwIi6Wii.js +63 -0
  467. package/dist/x-a0ouxoIM.js +11 -0
  468. package/package.json +18 -18
  469. package/dist/AdditionalOptions-C2FDVZhu.js +0 -45
  470. package/dist/Combination-BtmnusWq.js +0 -480
  471. package/dist/DayPicker-CaeUXRCF.js +0 -2798
  472. package/dist/Modal-DAWdufZ_.js +0 -120
  473. package/dist/_commonjsHelpers-DaMA6jEr.js +0 -8
  474. package/dist/chevron-down-BBFYYzZq.js +0 -5
  475. package/dist/chevron-left-BHBf-gQY.js +0 -5
  476. package/dist/chevron-right-DvXGOiS_.js +0 -5
  477. package/dist/chevron-up-DEfvgPCw.js +0 -54
  478. package/dist/chevron-up-IlDPxR7j.js +0 -5
  479. package/dist/createLucideIcon-CP-mMPfa.js +0 -75
  480. package/dist/debounce-DJveWHr_.js +0 -114
  481. package/dist/ellipsis-vertical-Cl3yNtOy.js +0 -9
  482. package/dist/index--l0zux8V.js +0 -200
  483. package/dist/index-0ioNhtNM.js +0 -10
  484. package/dist/index-BKMaItIC.js +0 -13
  485. package/dist/index-BKjcReYh.js +0 -55
  486. package/dist/index-BOE_3f_Z.js +0 -646
  487. package/dist/index-BRXMsxSL.js +0 -27
  488. package/dist/index-BdMNhZnh.js +0 -9
  489. package/dist/index-BmVmDQGH.js +0 -662
  490. package/dist/index-BvEpLnOv.js +0 -144
  491. package/dist/index-BvoZGpli.js +0 -60
  492. package/dist/index-C7zAY3xv.js +0 -139
  493. package/dist/index-CJnS4BVW.js +0 -93
  494. package/dist/index-Cmf-IG4l.js +0 -322
  495. package/dist/index-CrCTywU1.js +0 -314
  496. package/dist/index-D29mdTf5.js +0 -34
  497. package/dist/index-DWyM654o.js +0 -478
  498. package/dist/index-Jr0cra7i.js +0 -431
  499. package/dist/index-mPinF0Ho.js +0 -1885
  500. package/dist/index-qDQP8rW4.js +0 -7281
  501. package/dist/isObject-9XxUefZH.js +0 -97
  502. package/dist/libphonenumber-aZ-2KWIf.js +0 -11581
  503. package/dist/proxy-BGrSEZuV.js +0 -5046
  504. package/dist/useBreadcrumb-C_Wb2cXs.js +0 -1435
  505. package/dist/x-B9bYxG31.js +0 -8
  506. package/dist/x-Eoa9FJjA.js +0 -62
@@ -0,0 +1,1263 @@
1
+ import * as i from "react";
2
+ function E(e, t) {
3
+ if (e === !1 || e === null || typeof e > "u") throw new Error(t);
4
+ }
5
+ function C(e, t) {
6
+ if (!e) {
7
+ typeof console < "u" && console.warn(t);
8
+ try {
9
+ throw new Error(t);
10
+ } catch {
11
+ }
12
+ }
13
+ }
14
+ function Z({ pathname: e = "/", search: t = "", hash: r = "" }) {
15
+ return t && t !== "?" && (e += t.charAt(0) === "?" ? t : "?" + t), r && r !== "#" && (e += r.charAt(0) === "#" ? r : "#" + r), e;
16
+ }
17
+ function F(e) {
18
+ let t = {};
19
+ if (e) {
20
+ let r = e.indexOf("#");
21
+ r >= 0 && (t.hash = e.substring(r), e = e.substring(0, r));
22
+ let n = e.indexOf("?");
23
+ n >= 0 && (t.search = e.substring(n), e = e.substring(0, n)), e && (t.pathname = e);
24
+ }
25
+ return t;
26
+ }
27
+ var Fe;
28
+ Fe = /* @__PURE__ */ new WeakMap();
29
+ function ve(e, t, r = "/") {
30
+ return Ae(e, t, r, !1);
31
+ }
32
+ function Ae(e, t, r, n) {
33
+ let a = L((typeof t == "string" ? F(t) : t).pathname || "/", r);
34
+ if (a == null) return null;
35
+ let o = ge(e);
36
+ We(o);
37
+ let l = null;
38
+ for (let u = 0; l == null && u < o.length; ++u) {
39
+ let s = Ke(a);
40
+ l = qe(o[u], s, n);
41
+ }
42
+ return l;
43
+ }
44
+ function Ue(e, t) {
45
+ let { route: r, pathname: n, params: a } = e;
46
+ return {
47
+ id: r.id,
48
+ pathname: n,
49
+ params: a,
50
+ data: t[r.id],
51
+ loaderData: t[r.id],
52
+ handle: r.handle
53
+ };
54
+ }
55
+ function ge(e, t = [], r = [], n = "", a = !1) {
56
+ let o = (l, u, s = a, c) => {
57
+ let d = {
58
+ relativePath: c === void 0 ? l.path || "" : c,
59
+ caseSensitive: l.caseSensitive === !0,
60
+ childrenIndex: u,
61
+ route: l
62
+ };
63
+ if (d.relativePath.startsWith("/")) {
64
+ if (!d.relativePath.startsWith(n) && s) return;
65
+ E(d.relativePath.startsWith(n), `Absolute route path "${d.relativePath}" nested under path "${n}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`), d.relativePath = d.relativePath.slice(n.length);
66
+ }
67
+ let f = P([n, d.relativePath]), m = r.concat(d);
68
+ l.children && l.children.length > 0 && (E(l.index !== !0, `Index routes must not have child routes. Please remove all child routes from route path "${f}".`), ge(l.children, t, m, f, s)), !(l.path == null && !l.index) && t.push({
69
+ path: f,
70
+ score: Ye(f, l.index),
71
+ routesMeta: m
72
+ });
73
+ };
74
+ return e.forEach((l, u) => {
75
+ if (l.path === "" || !l.path?.includes("?")) o(l, u);
76
+ else for (let s of ye(l.path)) o(l, u, !0, s);
77
+ }), t;
78
+ }
79
+ function ye(e) {
80
+ let t = e.split("/");
81
+ if (t.length === 0) return [];
82
+ let [r, ...n] = t, a = r.endsWith("?"), o = r.replace(/\?$/, "");
83
+ if (n.length === 0) return a ? [o, ""] : [o];
84
+ let l = ye(n.join("/")), u = [];
85
+ return u.push(...l.map((s) => s === "" ? o : [o, s].join("/"))), a && u.push(...l), u.map((s) => e.startsWith("/") && s === "" ? "/" : s);
86
+ }
87
+ function We(e) {
88
+ e.sort((t, r) => t.score !== r.score ? r.score - t.score : Ge(t.routesMeta.map((n) => n.childrenIndex), r.routesMeta.map((n) => n.childrenIndex)));
89
+ }
90
+ var Be = /^:[\w-]+$/, He = 3, je = 2, Je = 1, ze = 10, Ve = -2, fe = (e) => e === "*";
91
+ function Ye(e, t) {
92
+ let r = e.split("/"), n = r.length;
93
+ return r.some(fe) && (n += Ve), t && (n += je), r.filter((a) => !fe(a)).reduce((a, o) => a + (Be.test(o) ? He : o === "" ? Je : ze), n);
94
+ }
95
+ function Ge(e, t) {
96
+ return e.length === t.length && e.slice(0, -1).every((r, n) => r === t[n]) ? e[e.length - 1] - t[t.length - 1] : 0;
97
+ }
98
+ function qe(e, t, r = !1) {
99
+ let { routesMeta: n } = e, a = {}, o = "/", l = [];
100
+ for (let u = 0; u < n.length; ++u) {
101
+ let s = n[u], c = u === n.length - 1, d = o === "/" ? t : t.slice(o.length) || "/", f = V({
102
+ path: s.relativePath,
103
+ caseSensitive: s.caseSensitive,
104
+ end: c
105
+ }, d), m = s.route;
106
+ if (!f && c && r && !n[n.length - 1].route.index && (f = V({
107
+ path: s.relativePath,
108
+ caseSensitive: s.caseSensitive,
109
+ end: !1
110
+ }, d)), !f) return null;
111
+ Object.assign(a, f.params), l.push({
112
+ params: a,
113
+ pathname: P([o, f.pathname]),
114
+ pathnameBase: tt(P([o, f.pathnameBase])),
115
+ route: m
116
+ }), f.pathnameBase !== "/" && (o = P([o, f.pathnameBase]));
117
+ }
118
+ return l;
119
+ }
120
+ function V(e, t) {
121
+ typeof e == "string" && (e = {
122
+ path: e,
123
+ caseSensitive: !1,
124
+ end: !0
125
+ });
126
+ let [r, n] = Xe(e.path, e.caseSensitive, e.end), a = t.match(r);
127
+ if (!a) return null;
128
+ let o = a[0], l = o.replace(/(.)\/+$/, "$1"), u = a.slice(1);
129
+ return {
130
+ params: n.reduce((s, { paramName: c, isOptional: d }, f) => {
131
+ if (c === "*") {
132
+ let g = u[f] || "";
133
+ l = o.slice(0, o.length - g.length).replace(/(.)\/+$/, "$1");
134
+ }
135
+ const m = u[f];
136
+ return d && !m ? s[c] = void 0 : s[c] = (m || "").replace(/%2F/g, "/"), s;
137
+ }, {}),
138
+ pathname: o,
139
+ pathnameBase: l,
140
+ pattern: e
141
+ };
142
+ }
143
+ function Xe(e, t = !1, r = !0) {
144
+ C(e === "*" || !e.endsWith("*") || e.endsWith("/*"), `Route path "${e}" will be treated as if it were "${e.replace(/\*$/, "/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/, "/*")}".`);
145
+ let n = [], a = "^" + e.replace(/\/*\*?$/, "").replace(/^\/*/, "/").replace(/[\\.*+^${}|()[\]]/g, "\\$&").replace(/\/:([\w-]+)(\?)?/g, (o, l, u, s, c) => {
146
+ if (n.push({
147
+ paramName: l,
148
+ isOptional: u != null
149
+ }), u) {
150
+ let d = c.charAt(s + o.length);
151
+ return d && d !== "/" ? "/([^\\/]*)" : "(?:/([^\\/]*))?";
152
+ }
153
+ return "/([^\\/]+)";
154
+ }).replace(/\/([\w-]+)\?(\/|$)/g, "(/$1)?$2");
155
+ return e.endsWith("*") ? (n.push({ paramName: "*" }), a += e === "*" || e === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : r ? a += "\\/*$" : e !== "" && e !== "/" && (a += "(?:(?=\\/|$))"), [new RegExp(a, t ? void 0 : "i"), n];
156
+ }
157
+ function Ke(e) {
158
+ try {
159
+ return e.split("/").map((t) => decodeURIComponent(t).replace(/\//g, "%2F")).join("/");
160
+ } catch (t) {
161
+ return C(!1, `The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`), e;
162
+ }
163
+ }
164
+ function L(e, t) {
165
+ if (t === "/") return e;
166
+ if (!e.toLowerCase().startsWith(t.toLowerCase())) return null;
167
+ let r = t.endsWith("/") ? t.length - 1 : t.length, n = e.charAt(r);
168
+ return n && n !== "/" ? null : e.slice(r) || "/";
169
+ }
170
+ var Qe = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;
171
+ function Ze(e, t = "/") {
172
+ let { pathname: r, search: n = "", hash: a = "" } = typeof e == "string" ? F(e) : e, o;
173
+ return r ? (r = r.replace(/\/\/+/g, "/"), r.startsWith("/") ? o = de(r.substring(1), "/") : o = de(r, t)) : o = t, {
174
+ pathname: o,
175
+ search: rt(n),
176
+ hash: nt(a)
177
+ };
178
+ }
179
+ function de(e, t) {
180
+ let r = t.replace(/\/+$/, "").split("/");
181
+ return e.split("/").forEach((n) => {
182
+ n === ".." ? r.length > 1 && r.pop() : n !== "." && r.push(n);
183
+ }), r.length > 1 ? r.join("/") : "/";
184
+ }
185
+ function X(e, t, r, n) {
186
+ return `Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(n)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`;
187
+ }
188
+ function et(e) {
189
+ return e.filter((t, r) => r === 0 || t.route.path && t.route.path.length > 0);
190
+ }
191
+ function Re(e) {
192
+ let t = et(e);
193
+ return t.map((r, n) => n === t.length - 1 ? r.pathname : r.pathnameBase);
194
+ }
195
+ function re(e, t, r, n = !1) {
196
+ let a;
197
+ typeof e == "string" ? a = F(e) : (a = { ...e }, E(!a.pathname || !a.pathname.includes("?"), X("?", "pathname", "search", a)), E(!a.pathname || !a.pathname.includes("#"), X("#", "pathname", "hash", a)), E(!a.search || !a.search.includes("#"), X("#", "search", "hash", a)));
198
+ let o = e === "" || a.pathname === "", l = o ? "/" : a.pathname, u;
199
+ if (l == null) u = r;
200
+ else {
201
+ let f = t.length - 1;
202
+ if (!n && l.startsWith("..")) {
203
+ let m = l.split("/");
204
+ for (; m[0] === ".."; )
205
+ m.shift(), f -= 1;
206
+ a.pathname = m.join("/");
207
+ }
208
+ u = f >= 0 ? t[f] : "/";
209
+ }
210
+ let s = Ze(a, u), c = l && l !== "/" && l.endsWith("/"), d = (o || l === ".") && r.endsWith("/");
211
+ return !s.pathname.endsWith("/") && (c || d) && (s.pathname += "/"), s;
212
+ }
213
+ var P = (e) => e.join("/").replace(/\/\/+/g, "/"), tt = (e) => e.replace(/\/+$/, "").replace(/^\/*/, "/"), rt = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, nt = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, at = class {
214
+ constructor(e, t, r, n = !1) {
215
+ this.status = e, this.statusText = t || "", this.internal = n, r instanceof Error ? (this.data = r.toString(), this.error = r) : this.data = r;
216
+ }
217
+ };
218
+ function ot(e) {
219
+ return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.internal == "boolean" && "data" in e;
220
+ }
221
+ function lt(e) {
222
+ return e.map((t) => t.route.path).filter(Boolean).join("/").replace(/\/\/*/g, "/") || "/";
223
+ }
224
+ var we = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u";
225
+ function Ee(e, t) {
226
+ let r = e;
227
+ if (typeof r != "string" || !Qe.test(r)) return {
228
+ absoluteURL: void 0,
229
+ isExternal: !1,
230
+ to: r
231
+ };
232
+ let n = r, a = !1;
233
+ if (we) try {
234
+ let o = new URL(window.location.href), l = r.startsWith("//") ? new URL(o.protocol + r) : new URL(r), u = L(l.pathname, t);
235
+ l.origin === o.origin && u != null ? r = u + l.search + l.hash : a = !0;
236
+ } catch {
237
+ C(!1, `<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`);
238
+ }
239
+ return {
240
+ absoluteURL: n,
241
+ isExternal: a,
242
+ to: r
243
+ };
244
+ }
245
+ var gr = Object.getOwnPropertyNames(Object.prototype).sort().join("\0"), Se = [
246
+ "POST",
247
+ "PUT",
248
+ "PATCH",
249
+ "DELETE"
250
+ ], yr = new Set(Se), it = ["GET", ...Se], Rr = new Set(it), D = i.createContext(null);
251
+ D.displayName = "DataRouter";
252
+ var A = i.createContext(null);
253
+ A.displayName = "DataRouterState";
254
+ var ut = i.createContext(!1), xe = i.createContext({ isTransitioning: !1 });
255
+ xe.displayName = "ViewTransition";
256
+ var st = i.createContext(/* @__PURE__ */ new Map());
257
+ st.displayName = "Fetchers";
258
+ var ct = i.createContext(null);
259
+ ct.displayName = "Await";
260
+ var S = i.createContext(null);
261
+ S.displayName = "Navigation";
262
+ var U = i.createContext(null);
263
+ U.displayName = "Location";
264
+ var k = i.createContext({
265
+ outlet: null,
266
+ matches: [],
267
+ isDataRoute: !1
268
+ });
269
+ k.displayName = "Route";
270
+ var ne = i.createContext(null);
271
+ ne.displayName = "RouteError";
272
+ var Ce = "REACT_ROUTER_ERROR", ft = "REDIRECT", dt = "ROUTE_ERROR_RESPONSE";
273
+ function ht(e) {
274
+ if (e.startsWith(`${Ce}:${ft}:{`)) try {
275
+ let t = JSON.parse(e.slice(28));
276
+ if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string" && typeof t.location == "string" && typeof t.reloadDocument == "boolean" && typeof t.replace == "boolean") return t;
277
+ } catch {
278
+ }
279
+ }
280
+ function mt(e) {
281
+ if (e.startsWith(`${Ce}:${dt}:{`)) try {
282
+ let t = JSON.parse(e.slice(40));
283
+ if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string") return new at(t.status, t.statusText, t.data);
284
+ } catch {
285
+ }
286
+ }
287
+ function pt(e, { relative: t } = {}) {
288
+ E(W(), "useHref() may be used only in the context of a <Router> component.");
289
+ let { basename: r, navigator: n } = i.useContext(S), { hash: a, pathname: o, search: l } = B(e, { relative: t }), u = o;
290
+ return r !== "/" && (u = o === "/" ? r : P([r, o])), n.createHref({
291
+ pathname: u,
292
+ search: l,
293
+ hash: a
294
+ });
295
+ }
296
+ function W() {
297
+ return i.useContext(U) != null;
298
+ }
299
+ function b() {
300
+ return E(W(), "useLocation() may be used only in the context of a <Router> component."), i.useContext(U).location;
301
+ }
302
+ var be = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
303
+ function Pe(e) {
304
+ i.useContext(S).static || i.useLayoutEffect(e);
305
+ }
306
+ function vt() {
307
+ let { isDataRoute: e } = i.useContext(k);
308
+ return e ? kt() : gt();
309
+ }
310
+ function gt() {
311
+ E(W(), "useNavigate() may be used only in the context of a <Router> component.");
312
+ let e = i.useContext(D), { basename: t, navigator: r } = i.useContext(S), { matches: n } = i.useContext(k), { pathname: a } = b(), o = JSON.stringify(Re(n)), l = i.useRef(!1);
313
+ return Pe(() => {
314
+ l.current = !0;
315
+ }), i.useCallback((u, s = {}) => {
316
+ if (C(l.current, be), !l.current) return;
317
+ if (typeof u == "number") {
318
+ r.go(u);
319
+ return;
320
+ }
321
+ let c = re(u, JSON.parse(o), a, s.relative === "path");
322
+ e == null && t !== "/" && (c.pathname = c.pathname === "/" ? t : P([t, c.pathname])), (s.replace ? r.replace : r.push)(c, s.state, s);
323
+ }, [
324
+ t,
325
+ r,
326
+ o,
327
+ a,
328
+ e
329
+ ]);
330
+ }
331
+ var wr = i.createContext(null);
332
+ function B(e, { relative: t } = {}) {
333
+ let { matches: r } = i.useContext(k), { pathname: n } = b(), a = JSON.stringify(Re(r));
334
+ return i.useMemo(() => re(e, JSON.parse(a), n, t === "path"), [
335
+ e,
336
+ a,
337
+ n,
338
+ t
339
+ ]);
340
+ }
341
+ function yt(e, t, r) {
342
+ E(W(), "useRoutes() may be used only in the context of a <Router> component.");
343
+ let { navigator: n } = i.useContext(S), { matches: a } = i.useContext(k), o = a[a.length - 1], l = o ? o.params : {}, u = o ? o.pathname : "/", s = o ? o.pathnameBase : "/", c = o && o.route;
344
+ {
345
+ let h = c && c.path || "";
346
+ ke(u, !c || h.endsWith("*") || h.endsWith("*?"), `You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (under <Route path="${h}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
347
+
348
+ Please change the parent <Route path="${h}"> to <Route path="${h === "/" ? "*" : `${h}/*`}">.`);
349
+ }
350
+ let d = b(), f;
351
+ if (t) {
352
+ let h = typeof t == "string" ? F(t) : t;
353
+ E(s === "/" || h.pathname?.startsWith(s), `When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${s}" but pathname "${h.pathname}" was given in the \`location\` prop.`), f = h;
354
+ } else f = d;
355
+ let m = f.pathname || "/", g = m;
356
+ if (s !== "/") {
357
+ let h = s.replace(/^\//, "").split("/");
358
+ g = "/" + m.replace(/^\//, "").split("/").slice(h.length).join("/");
359
+ }
360
+ let v = ve(e, { pathname: g });
361
+ C(c || v != null, `No routes matched location "${f.pathname}${f.search}${f.hash}" `), C(v == null || v[v.length - 1].route.element !== void 0 || v[v.length - 1].route.Component !== void 0 || v[v.length - 1].route.lazy !== void 0, `Matched leaf route at location "${f.pathname}${f.search}${f.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);
362
+ let p = xt(v && v.map((h) => Object.assign({}, h, {
363
+ params: Object.assign({}, l, h.params),
364
+ pathname: P([s, n.encodeLocation ? n.encodeLocation(h.pathname.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : h.pathname]),
365
+ pathnameBase: h.pathnameBase === "/" ? s : P([s, n.encodeLocation ? n.encodeLocation(h.pathnameBase.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : h.pathnameBase])
366
+ })), a, r);
367
+ return t && p ? /* @__PURE__ */ i.createElement(U.Provider, { value: {
368
+ location: {
369
+ pathname: "/",
370
+ search: "",
371
+ hash: "",
372
+ state: null,
373
+ key: "default",
374
+ unstable_mask: void 0,
375
+ ...f
376
+ },
377
+ navigationType: "POP"
378
+ } }, p) : p;
379
+ }
380
+ function Rt() {
381
+ let e = $t(), t = ot(e) ? `${e.status} ${e.statusText}` : e instanceof Error ? e.message : JSON.stringify(e), r = e instanceof Error ? e.stack : null, n = "rgba(200,200,200, 0.5)", a = {
382
+ padding: "0.5rem",
383
+ backgroundColor: n
384
+ }, o = {
385
+ padding: "2px 4px",
386
+ backgroundColor: n
387
+ }, l = null;
388
+ return console.error("Error handled by React Router default ErrorBoundary:", e), l = /* @__PURE__ */ i.createElement(i.Fragment, null, /* @__PURE__ */ i.createElement("p", null, "💿 Hey developer 👋"), /* @__PURE__ */ i.createElement("p", null, "You can provide a way better UX than this when your app throws errors by providing your own ", /* @__PURE__ */ i.createElement("code", { style: o }, "ErrorBoundary"), " or", " ", /* @__PURE__ */ i.createElement("code", { style: o }, "errorElement"), " prop on your route.")), /* @__PURE__ */ i.createElement(i.Fragment, null, /* @__PURE__ */ i.createElement("h2", null, "Unexpected Application Error!"), /* @__PURE__ */ i.createElement("h3", { style: { fontStyle: "italic" } }, t), r ? /* @__PURE__ */ i.createElement("pre", { style: a }, r) : null, l);
389
+ }
390
+ var wt = /* @__PURE__ */ i.createElement(Rt, null), Le = class extends i.Component {
391
+ constructor(e) {
392
+ super(e), this.state = {
393
+ location: e.location,
394
+ revalidation: e.revalidation,
395
+ error: e.error
396
+ };
397
+ }
398
+ static getDerivedStateFromError(e) {
399
+ return { error: e };
400
+ }
401
+ static getDerivedStateFromProps(e, t) {
402
+ return t.location !== e.location || t.revalidation !== "idle" && e.revalidation === "idle" ? {
403
+ error: e.error,
404
+ location: e.location,
405
+ revalidation: e.revalidation
406
+ } : {
407
+ error: e.error !== void 0 ? e.error : t.error,
408
+ location: t.location,
409
+ revalidation: e.revalidation || t.revalidation
410
+ };
411
+ }
412
+ componentDidCatch(e, t) {
413
+ this.props.onError ? this.props.onError(e, t) : console.error("React Router caught the following error during render", e);
414
+ }
415
+ render() {
416
+ let e = this.state.error;
417
+ if (this.context && typeof e == "object" && e && "digest" in e && typeof e.digest == "string") {
418
+ const r = mt(e.digest);
419
+ r && (e = r);
420
+ }
421
+ let t = e !== void 0 ? /* @__PURE__ */ i.createElement(k.Provider, { value: this.props.routeContext }, /* @__PURE__ */ i.createElement(ne.Provider, {
422
+ value: e,
423
+ children: this.props.component
424
+ })) : this.props.children;
425
+ return this.context ? /* @__PURE__ */ i.createElement(Et, { error: e }, t) : t;
426
+ }
427
+ };
428
+ Le.contextType = ut;
429
+ var K = /* @__PURE__ */ new WeakMap();
430
+ function Et({ children: e, error: t }) {
431
+ let { basename: r } = i.useContext(S);
432
+ if (typeof t == "object" && t && "digest" in t && typeof t.digest == "string") {
433
+ let n = ht(t.digest);
434
+ if (n) {
435
+ let a = K.get(t);
436
+ if (a) throw a;
437
+ let o = Ee(n.location, r);
438
+ if (we && !K.get(t)) if (o.isExternal || n.reloadDocument) window.location.href = o.absoluteURL || o.to;
439
+ else {
440
+ const l = Promise.resolve().then(() => window.__reactRouterDataRouter.navigate(o.to, { replace: n.replace }));
441
+ throw K.set(t, l), l;
442
+ }
443
+ return /* @__PURE__ */ i.createElement("meta", {
444
+ httpEquiv: "refresh",
445
+ content: `0;url=${o.absoluteURL || o.to}`
446
+ });
447
+ }
448
+ }
449
+ return e;
450
+ }
451
+ function St({ routeContext: e, match: t, children: r }) {
452
+ let n = i.useContext(D);
453
+ return n && n.static && n.staticContext && (t.route.errorElement || t.route.ErrorBoundary) && (n.staticContext._deepestRenderedBoundaryId = t.route.id), /* @__PURE__ */ i.createElement(k.Provider, { value: e }, r);
454
+ }
455
+ function xt(e, t = [], r) {
456
+ let n = r?.state;
457
+ if (e == null) {
458
+ if (!n) return null;
459
+ if (n.errors) e = n.matches;
460
+ else if (t.length === 0 && !n.initialized && n.matches.length > 0) e = n.matches;
461
+ else return null;
462
+ }
463
+ let a = e, o = n?.errors;
464
+ if (o != null) {
465
+ let d = a.findIndex((f) => f.route.id && o?.[f.route.id] !== void 0);
466
+ E(d >= 0, `Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`), a = a.slice(0, Math.min(a.length, d + 1));
467
+ }
468
+ let l = !1, u = -1;
469
+ if (r && n) {
470
+ l = n.renderFallback;
471
+ for (let d = 0; d < a.length; d++) {
472
+ let f = a[d];
473
+ if ((f.route.HydrateFallback || f.route.hydrateFallbackElement) && (u = d), f.route.id) {
474
+ let { loaderData: m, errors: g } = n, v = f.route.loader && !m.hasOwnProperty(f.route.id) && (!g || g[f.route.id] === void 0);
475
+ if (f.route.lazy || v) {
476
+ r.isStatic && (l = !0), u >= 0 ? a = a.slice(0, u + 1) : a = [a[0]];
477
+ break;
478
+ }
479
+ }
480
+ }
481
+ }
482
+ let s = r?.onError, c = n && s ? (d, f) => {
483
+ s(d, {
484
+ location: n.location,
485
+ params: n.matches?.[0]?.params ?? {},
486
+ unstable_pattern: lt(n.matches),
487
+ errorInfo: f
488
+ });
489
+ } : void 0;
490
+ return a.reduceRight((d, f, m) => {
491
+ let g, v = !1, p = null, h = null;
492
+ n && (g = o && f.route.id ? o[f.route.id] : void 0, p = f.route.errorElement || wt, l && (u < 0 && m === 0 ? (ke("route-fallback", !1, "No `HydrateFallback` element provided to render during initial hydration"), v = !0, h = null) : u === m && (v = !0, h = f.route.hydrateFallbackElement || null)));
493
+ let R = t.concat(a.slice(0, m + 1)), w = () => {
494
+ let y;
495
+ return g ? y = p : v ? y = h : f.route.Component ? y = /* @__PURE__ */ i.createElement(f.route.Component, null) : f.route.element ? y = f.route.element : y = d, /* @__PURE__ */ i.createElement(St, {
496
+ match: f,
497
+ routeContext: {
498
+ outlet: d,
499
+ matches: R,
500
+ isDataRoute: n != null
501
+ },
502
+ children: y
503
+ });
504
+ };
505
+ return n && (f.route.ErrorBoundary || f.route.errorElement || m === 0) ? /* @__PURE__ */ i.createElement(Le, {
506
+ location: n.location,
507
+ revalidation: n.revalidation,
508
+ component: p,
509
+ error: g,
510
+ children: w(),
511
+ routeContext: {
512
+ outlet: null,
513
+ matches: R,
514
+ isDataRoute: !0
515
+ },
516
+ onError: c
517
+ }) : w();
518
+ }, null);
519
+ }
520
+ function ae(e) {
521
+ return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
522
+ }
523
+ function Ct(e) {
524
+ let t = i.useContext(D);
525
+ return E(t, ae(e)), t;
526
+ }
527
+ function oe(e) {
528
+ let t = i.useContext(A);
529
+ return E(t, ae(e)), t;
530
+ }
531
+ function bt(e) {
532
+ let t = i.useContext(k);
533
+ return E(t, ae(e)), t;
534
+ }
535
+ function le(e) {
536
+ let t = bt(e), r = t.matches[t.matches.length - 1];
537
+ return E(r.route.id, `${e} can only be used on routes that contain a unique "id"`), r.route.id;
538
+ }
539
+ function Pt() {
540
+ return le("useRouteId");
541
+ }
542
+ function Lt() {
543
+ return oe("useNavigation").navigation;
544
+ }
545
+ function $e() {
546
+ let { matches: e, loaderData: t } = oe("useMatches");
547
+ return i.useMemo(() => e.map((r) => Ue(r, t)), [e, t]);
548
+ }
549
+ function $t() {
550
+ let e = i.useContext(ne), t = oe("useRouteError"), r = le("useRouteError");
551
+ return e !== void 0 ? e : t.errors?.[r];
552
+ }
553
+ function kt() {
554
+ let { router: e } = Ct("useNavigate"), t = le("useNavigate"), r = i.useRef(!1);
555
+ return Pe(() => {
556
+ r.current = !0;
557
+ }), i.useCallback(async (n, a = {}) => {
558
+ C(r.current, be), r.current && (typeof n == "number" ? await e.navigate(n) : await e.navigate(n, {
559
+ fromRouteId: t,
560
+ ...a
561
+ }));
562
+ }, [e, t]);
563
+ }
564
+ var he = {};
565
+ function ke(e, t, r) {
566
+ !t && !he[e] && (he[e] = !0, C(!1, r));
567
+ }
568
+ var Er = i.useOptimistic, Sr = i.memo(Tt);
569
+ function Tt({ routes: e, future: t, state: r, isStatic: n, onError: a }) {
570
+ return yt(e, void 0, {
571
+ state: r,
572
+ isStatic: n,
573
+ onError: a,
574
+ future: t
575
+ });
576
+ }
577
+ function Ot({ basename: e = "/", children: t = null, location: r, navigationType: n = "POP", navigator: a, static: o = !1, unstable_useTransitions: l }) {
578
+ E(!W(), "You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");
579
+ let u = e.replace(/^\/*/, "/"), s = i.useMemo(() => ({
580
+ basename: u,
581
+ navigator: a,
582
+ static: o,
583
+ unstable_useTransitions: l,
584
+ future: {}
585
+ }), [
586
+ u,
587
+ a,
588
+ o,
589
+ l
590
+ ]);
591
+ typeof r == "string" && (r = F(r));
592
+ let { pathname: c = "/", search: d = "", hash: f = "", state: m = null, key: g = "default", unstable_mask: v } = r, p = i.useMemo(() => {
593
+ let h = L(c, u);
594
+ return h == null ? null : {
595
+ location: {
596
+ pathname: h,
597
+ search: d,
598
+ hash: f,
599
+ state: m,
600
+ key: g,
601
+ unstable_mask: v
602
+ },
603
+ navigationType: n
604
+ };
605
+ }, [
606
+ u,
607
+ c,
608
+ d,
609
+ f,
610
+ m,
611
+ g,
612
+ n,
613
+ v
614
+ ]);
615
+ return C(p != null, `<Router basename="${u}"> is not able to match the URL "${c}${d}${f}" because it does not start with the basename, so the <Router> won't render anything.`), p == null ? null : /* @__PURE__ */ i.createElement(S.Provider, { value: s }, /* @__PURE__ */ i.createElement(U.Provider, {
616
+ children: t,
617
+ value: p
618
+ }));
619
+ }
620
+ var J = "get", z = "application/x-www-form-urlencoded";
621
+ function Y(e) {
622
+ return typeof HTMLElement < "u" && e instanceof HTMLElement;
623
+ }
624
+ function It(e) {
625
+ return Y(e) && e.tagName.toLowerCase() === "button";
626
+ }
627
+ function Nt(e) {
628
+ return Y(e) && e.tagName.toLowerCase() === "form";
629
+ }
630
+ function Dt(e) {
631
+ return Y(e) && e.tagName.toLowerCase() === "input";
632
+ }
633
+ function Mt(e) {
634
+ return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
635
+ }
636
+ function _t(e, t) {
637
+ return e.button === 0 && (!t || t === "_self") && !Mt(e);
638
+ }
639
+ var H = null;
640
+ function Ft() {
641
+ if (H === null) try {
642
+ new FormData(document.createElement("form"), 0), H = !1;
643
+ } catch {
644
+ H = !0;
645
+ }
646
+ return H;
647
+ }
648
+ var At = /* @__PURE__ */ new Set([
649
+ "application/x-www-form-urlencoded",
650
+ "multipart/form-data",
651
+ "text/plain"
652
+ ]);
653
+ function Q(e) {
654
+ return e != null && !At.has(e) ? (C(!1, `"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${z}"`), null) : e;
655
+ }
656
+ function Ut(e, t) {
657
+ let r, n, a, o, l;
658
+ if (Nt(e)) {
659
+ let u = e.getAttribute("action");
660
+ n = u ? L(u, t) : null, r = e.getAttribute("method") || J, a = Q(e.getAttribute("enctype")) || z, o = new FormData(e);
661
+ } else if (It(e) || Dt(e) && (e.type === "submit" || e.type === "image")) {
662
+ let u = e.form;
663
+ if (u == null) throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');
664
+ let s = e.getAttribute("formaction") || u.getAttribute("action");
665
+ if (n = s ? L(s, t) : null, r = e.getAttribute("formmethod") || u.getAttribute("method") || J, a = Q(e.getAttribute("formenctype")) || Q(u.getAttribute("enctype")) || z, o = new FormData(u, e), !Ft()) {
666
+ let { name: c, type: d, value: f } = e;
667
+ if (d === "image") {
668
+ let m = c ? `${c}.` : "";
669
+ o.append(`${m}x`, "0"), o.append(`${m}y`, "0");
670
+ } else c && o.append(c, f);
671
+ }
672
+ } else {
673
+ if (Y(e)) throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');
674
+ r = J, n = null, a = z, l = e;
675
+ }
676
+ return o && a === "text/plain" && (l = o, o = void 0), {
677
+ action: n,
678
+ method: r.toLowerCase(),
679
+ encType: a,
680
+ formData: o,
681
+ body: l
682
+ };
683
+ }
684
+ var xr = Object.getOwnPropertyNames(Object.prototype).sort().join("\0"), Wt = {
685
+ "&": "\\u0026",
686
+ ">": "\\u003e",
687
+ "<": "\\u003c",
688
+ "\u2028": "\\u2028",
689
+ "\u2029": "\\u2029"
690
+ }, Bt = /[&><\u2028\u2029]/g;
691
+ function me(e) {
692
+ return e.replace(Bt, (t) => Wt[t]);
693
+ }
694
+ function ie(e, t) {
695
+ if (e === !1 || e === null || typeof e > "u") throw new Error(t);
696
+ }
697
+ function Ht(e, t, r, n) {
698
+ let a = typeof e == "string" ? new URL(e, typeof window > "u" ? "server://singlefetch/" : window.location.origin) : e;
699
+ return r ? a.pathname.endsWith("/") ? a.pathname = `${a.pathname}_.${n}` : a.pathname = `${a.pathname}.${n}` : a.pathname === "/" ? a.pathname = `_root.${n}` : t && L(a.pathname, t) === "/" ? a.pathname = `${t.replace(/\/$/, "")}/_root.${n}` : a.pathname = `${a.pathname.replace(/\/$/, "")}.${n}`, a;
700
+ }
701
+ async function jt(e, t) {
702
+ if (e.id in t) return t[e.id];
703
+ try {
704
+ let r = await import(
705
+ /* @vite-ignore */
706
+ /* webpackIgnore: true */
707
+ e.module
708
+ );
709
+ return t[e.id] = r, r;
710
+ } catch (r) {
711
+ return console.error(`Error loading route module \`${e.module}\`, reloading page...`), console.error(r), window.__reactRouterContext && window.__reactRouterContext.isSpaMode, window.location.reload(), new Promise(() => {
712
+ });
713
+ }
714
+ }
715
+ function Jt(e) {
716
+ return e != null && typeof e.page == "string";
717
+ }
718
+ function zt(e) {
719
+ return e == null ? !1 : e.href == null ? e.rel === "preload" && typeof e.imageSrcSet == "string" && typeof e.imageSizes == "string" : typeof e.rel == "string" && typeof e.href == "string";
720
+ }
721
+ async function Vt(e, t, r) {
722
+ return Xt((await Promise.all(e.map(async (n) => {
723
+ let a = t.routes[n.route.id];
724
+ if (a) {
725
+ let o = await jt(a, r);
726
+ return o.links ? o.links() : [];
727
+ }
728
+ return [];
729
+ }))).flat(1).filter(zt).filter((n) => n.rel === "stylesheet" || n.rel === "preload").map((n) => n.rel === "stylesheet" ? {
730
+ ...n,
731
+ rel: "prefetch",
732
+ as: "style"
733
+ } : {
734
+ ...n,
735
+ rel: "prefetch"
736
+ }));
737
+ }
738
+ function pe(e, t, r, n, a, o) {
739
+ let l = (s, c) => r[c] ? s.route.id !== r[c].route.id : !0, u = (s, c) => r[c].pathname !== s.pathname || r[c].route.path?.endsWith("*") && r[c].params["*"] !== s.params["*"];
740
+ return o === "assets" ? t.filter((s, c) => l(s, c) || u(s, c)) : o === "data" ? t.filter((s, c) => {
741
+ let d = n.routes[s.route.id];
742
+ if (!d || !d.hasLoader) return !1;
743
+ if (l(s, c) || u(s, c)) return !0;
744
+ if (s.route.shouldRevalidate) {
745
+ let f = s.route.shouldRevalidate({
746
+ currentUrl: new URL(a.pathname + a.search + a.hash, window.origin),
747
+ currentParams: r[0]?.params || {},
748
+ nextUrl: new URL(e, window.origin),
749
+ nextParams: s.params,
750
+ defaultShouldRevalidate: !0
751
+ });
752
+ if (typeof f == "boolean") return f;
753
+ }
754
+ return !0;
755
+ }) : [];
756
+ }
757
+ function Yt(e, t, { includeHydrateFallback: r } = {}) {
758
+ return Gt(e.map((n) => {
759
+ let a = t.routes[n.route.id];
760
+ if (!a) return [];
761
+ let o = [a.module];
762
+ return a.clientActionModule && (o = o.concat(a.clientActionModule)), a.clientLoaderModule && (o = o.concat(a.clientLoaderModule)), r && a.hydrateFallbackModule && (o = o.concat(a.hydrateFallbackModule)), a.imports && (o = o.concat(a.imports)), o;
763
+ }).flat(1));
764
+ }
765
+ function Gt(e) {
766
+ return [...new Set(e)];
767
+ }
768
+ function qt(e) {
769
+ let t = {}, r = Object.keys(e).sort();
770
+ for (let n of r) t[n] = e[n];
771
+ return t;
772
+ }
773
+ function Xt(e, t) {
774
+ let r = /* @__PURE__ */ new Set(), n = new Set(t);
775
+ return e.reduce((a, o) => {
776
+ if (t && !Jt(o) && o.as === "script" && o.href && n.has(o.href)) return a;
777
+ let l = JSON.stringify(qt(o));
778
+ return r.has(l) || (r.add(l), a.push({
779
+ key: l,
780
+ link: o
781
+ })), a;
782
+ }, []);
783
+ }
784
+ function Te() {
785
+ let e = i.useContext(D);
786
+ return ie(e, "You must render this element inside a <DataRouterContext.Provider> element"), e;
787
+ }
788
+ function Kt() {
789
+ let e = i.useContext(A);
790
+ return ie(e, "You must render this element inside a <DataRouterStateContext.Provider> element"), e;
791
+ }
792
+ var G = i.createContext(void 0);
793
+ G.displayName = "FrameworkContext";
794
+ function Oe() {
795
+ let e = i.useContext(G);
796
+ return ie(e, "You must render this element inside a <HydratedRouter> element"), e;
797
+ }
798
+ function Qt(e, t) {
799
+ let r = i.useContext(G), [n, a] = i.useState(!1), [o, l] = i.useState(!1), { onFocus: u, onBlur: s, onMouseEnter: c, onMouseLeave: d, onTouchStart: f } = t, m = i.useRef(null);
800
+ i.useEffect(() => {
801
+ if (e === "render" && l(!0), e === "viewport") {
802
+ let p = (R) => {
803
+ R.forEach((w) => {
804
+ l(w.isIntersecting);
805
+ });
806
+ }, h = new IntersectionObserver(p, { threshold: 0.5 });
807
+ return m.current && h.observe(m.current), () => {
808
+ h.disconnect();
809
+ };
810
+ }
811
+ }, [e]), i.useEffect(() => {
812
+ if (n) {
813
+ let p = setTimeout(() => {
814
+ l(!0);
815
+ }, 100);
816
+ return () => {
817
+ clearTimeout(p);
818
+ };
819
+ }
820
+ }, [n]);
821
+ let g = () => {
822
+ a(!0);
823
+ }, v = () => {
824
+ a(!1), l(!1);
825
+ };
826
+ return r ? e !== "intent" ? [
827
+ o,
828
+ m,
829
+ {}
830
+ ] : [
831
+ o,
832
+ m,
833
+ {
834
+ onFocus: _(u, g),
835
+ onBlur: _(s, v),
836
+ onMouseEnter: _(c, g),
837
+ onMouseLeave: _(d, v),
838
+ onTouchStart: _(f, g)
839
+ }
840
+ ] : [
841
+ !1,
842
+ m,
843
+ {}
844
+ ];
845
+ }
846
+ function _(e, t) {
847
+ return (r) => {
848
+ e && e(r), r.defaultPrevented || t(r);
849
+ };
850
+ }
851
+ function Zt({ page: e, ...t }) {
852
+ let { router: r } = Te(), n = i.useMemo(() => ve(r.routes, e, r.basename), [
853
+ r.routes,
854
+ e,
855
+ r.basename
856
+ ]);
857
+ return n ? /* @__PURE__ */ i.createElement(tr, {
858
+ page: e,
859
+ matches: n,
860
+ ...t
861
+ }) : null;
862
+ }
863
+ function er(e) {
864
+ let { manifest: t, routeModules: r } = Oe(), [n, a] = i.useState([]);
865
+ return i.useEffect(() => {
866
+ let o = !1;
867
+ return Vt(e, t, r).then((l) => {
868
+ o || a(l);
869
+ }), () => {
870
+ o = !0;
871
+ };
872
+ }, [
873
+ e,
874
+ t,
875
+ r
876
+ ]), n;
877
+ }
878
+ function tr({ page: e, matches: t, ...r }) {
879
+ let n = b(), { future: a, manifest: o, routeModules: l } = Oe(), { basename: u } = Te(), { loaderData: s, matches: c } = Kt(), d = i.useMemo(() => pe(e, t, c, o, n, "data"), [
880
+ e,
881
+ t,
882
+ c,
883
+ o,
884
+ n
885
+ ]), f = i.useMemo(() => pe(e, t, c, o, n, "assets"), [
886
+ e,
887
+ t,
888
+ c,
889
+ o,
890
+ n
891
+ ]), m = i.useMemo(() => {
892
+ if (e === n.pathname + n.search + n.hash) return [];
893
+ let p = /* @__PURE__ */ new Set(), h = !1;
894
+ if (t.forEach((w) => {
895
+ let y = o.routes[w.route.id];
896
+ !y || !y.hasLoader || (!d.some(($) => $.route.id === w.route.id) && w.route.id in s && l[w.route.id]?.shouldRevalidate || y.hasClientLoader ? h = !0 : p.add(w.route.id));
897
+ }), p.size === 0) return [];
898
+ let R = Ht(e, u, a.unstable_trailingSlashAwareDataRequests, "data");
899
+ return h && p.size > 0 && R.searchParams.set("_routes", t.filter((w) => p.has(w.route.id)).map((w) => w.route.id).join(",")), [R.pathname + R.search];
900
+ }, [
901
+ u,
902
+ a.unstable_trailingSlashAwareDataRequests,
903
+ s,
904
+ n,
905
+ o,
906
+ d,
907
+ t,
908
+ e,
909
+ l
910
+ ]), g = i.useMemo(() => Yt(f, o), [f, o]), v = er(f);
911
+ return /* @__PURE__ */ i.createElement(i.Fragment, null, m.map((p) => /* @__PURE__ */ i.createElement("link", {
912
+ key: p,
913
+ rel: "prefetch",
914
+ as: "fetch",
915
+ href: p,
916
+ ...r
917
+ })), g.map((p) => /* @__PURE__ */ i.createElement("link", {
918
+ key: p,
919
+ rel: "modulepreload",
920
+ href: p,
921
+ ...r
922
+ })), v.map(({ key: p, link: h }) => /* @__PURE__ */ i.createElement("link", {
923
+ key: p,
924
+ nonce: r.nonce,
925
+ ...h,
926
+ crossOrigin: h.crossOrigin ?? r.crossOrigin
927
+ })));
928
+ }
929
+ function rr(...e) {
930
+ return (t) => {
931
+ e.forEach((r) => {
932
+ typeof r == "function" ? r(t) : r != null && (r.current = t);
933
+ });
934
+ };
935
+ }
936
+ var nr = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u";
937
+ try {
938
+ nr && (window.__reactRouterVersion = "7.13.2");
939
+ } catch {
940
+ }
941
+ function ar({ basename: e, children: t, history: r, unstable_useTransitions: n }) {
942
+ let [a, o] = i.useState({
943
+ action: r.action,
944
+ location: r.location
945
+ }), l = i.useCallback((u) => {
946
+ n === !1 ? o(u) : i.startTransition(() => o(u));
947
+ }, [n]);
948
+ return i.useLayoutEffect(() => r.listen(l), [r, l]), /* @__PURE__ */ i.createElement(Ot, {
949
+ basename: e,
950
+ children: t,
951
+ location: a.location,
952
+ navigationType: a.action,
953
+ navigator: r,
954
+ unstable_useTransitions: n
955
+ });
956
+ }
957
+ ar.displayName = "unstable_HistoryRouter";
958
+ var Ie = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Ne = i.forwardRef(function({ onClick: t, discover: r = "render", prefetch: n = "none", relative: a, reloadDocument: o, replace: l, unstable_mask: u, state: s, target: c, to: d, preventScrollReset: f, viewTransition: m, unstable_defaultShouldRevalidate: g, ...v }, p) {
959
+ let { basename: h, navigator: R, unstable_useTransitions: w } = i.useContext(S), y = typeof d == "string" && Ie.test(d), $ = Ee(d, h);
960
+ d = $.to;
961
+ let x = pt(d, { relative: a }), T = b(), O = null;
962
+ if (u) {
963
+ let I = re(u, [], T.unstable_mask ? T.unstable_mask.pathname : "/", !0);
964
+ h !== "/" && (I.pathname = I.pathname === "/" ? h : P([h, I.pathname])), O = R.createHref(I);
965
+ }
966
+ let [N, M, q] = Qt(n, v), Me = sr(d, {
967
+ replace: l,
968
+ unstable_mask: u,
969
+ state: s,
970
+ target: c,
971
+ preventScrollReset: f,
972
+ relative: a,
973
+ viewTransition: m,
974
+ unstable_defaultShouldRevalidate: g,
975
+ unstable_useTransitions: w
976
+ });
977
+ function _e(I) {
978
+ t && t(I), I.defaultPrevented || Me(I);
979
+ }
980
+ let se = !($.isExternal || o), ce = /* @__PURE__ */ i.createElement("a", {
981
+ ...v,
982
+ ...q,
983
+ href: (se ? O : void 0) || $.absoluteURL || x,
984
+ onClick: se ? _e : t,
985
+ ref: rr(p, M),
986
+ target: c,
987
+ "data-discover": !y && r === "render" ? "true" : void 0
988
+ });
989
+ return N && !y ? /* @__PURE__ */ i.createElement(i.Fragment, null, ce, /* @__PURE__ */ i.createElement(Zt, { page: x })) : ce;
990
+ });
991
+ Ne.displayName = "Link";
992
+ var or = i.forwardRef(function({ "aria-current": t = "page", caseSensitive: r = !1, className: n = "", end: a = !1, style: o, to: l, viewTransition: u, children: s, ...c }, d) {
993
+ let f = B(l, { relative: c.relative }), m = b(), g = i.useContext(A), { navigator: v, basename: p } = i.useContext(S), h = g != null && vr(f) && u === !0, R = v.encodeLocation ? v.encodeLocation(f).pathname : f.pathname, w = m.pathname, y = g && g.navigation && g.navigation.location ? g.navigation.location.pathname : null;
994
+ r || (w = w.toLowerCase(), y = y ? y.toLowerCase() : null, R = R.toLowerCase()), y && p && (y = L(y, p) || y);
995
+ const $ = R !== "/" && R.endsWith("/") ? R.length - 1 : R.length;
996
+ let x = w === R || !a && w.startsWith(R) && w.charAt($) === "/", T = y != null && (y === R || !a && y.startsWith(R) && y.charAt(R.length) === "/"), O = {
997
+ isActive: x,
998
+ isPending: T,
999
+ isTransitioning: h
1000
+ }, N = x ? t : void 0, M;
1001
+ typeof n == "function" ? M = n(O) : M = [
1002
+ n,
1003
+ x ? "active" : null,
1004
+ T ? "pending" : null,
1005
+ h ? "transitioning" : null
1006
+ ].filter(Boolean).join(" ");
1007
+ let q = typeof o == "function" ? o(O) : o;
1008
+ return /* @__PURE__ */ i.createElement(Ne, {
1009
+ ...c,
1010
+ "aria-current": N,
1011
+ className: M,
1012
+ ref: d,
1013
+ style: q,
1014
+ to: l,
1015
+ viewTransition: u
1016
+ }, typeof s == "function" ? s(O) : s);
1017
+ });
1018
+ or.displayName = "NavLink";
1019
+ var lr = i.forwardRef(({ discover: e = "render", fetcherKey: t, navigate: r, reloadDocument: n, replace: a, state: o, method: l = J, action: u, onSubmit: s, relative: c, preventScrollReset: d, viewTransition: f, unstable_defaultShouldRevalidate: m, ...g }, v) => {
1020
+ let { unstable_useTransitions: p } = i.useContext(S), h = dr(), R = hr(u, { relative: c }), w = l.toLowerCase() === "get" ? "get" : "post", y = typeof u == "string" && Ie.test(u), $ = (x) => {
1021
+ if (s && s(x), x.defaultPrevented) return;
1022
+ x.preventDefault();
1023
+ let T = x.nativeEvent.submitter, O = T?.getAttribute("formmethod") || l, N = () => h(T || x.currentTarget, {
1024
+ fetcherKey: t,
1025
+ method: O,
1026
+ navigate: r,
1027
+ replace: a,
1028
+ state: o,
1029
+ relative: c,
1030
+ preventScrollReset: d,
1031
+ viewTransition: f,
1032
+ unstable_defaultShouldRevalidate: m
1033
+ });
1034
+ p && r !== !1 ? i.startTransition(() => N()) : N();
1035
+ };
1036
+ return /* @__PURE__ */ i.createElement("form", {
1037
+ ref: v,
1038
+ method: w,
1039
+ action: R,
1040
+ onSubmit: n ? s : $,
1041
+ ...g,
1042
+ "data-discover": !y && e === "render" ? "true" : void 0
1043
+ });
1044
+ });
1045
+ lr.displayName = "Form";
1046
+ function ir({ getKey: e, storageKey: t, ...r }) {
1047
+ let n = i.useContext(G), { basename: a } = i.useContext(S), o = b(), l = $e();
1048
+ mr({
1049
+ getKey: e,
1050
+ storageKey: t
1051
+ });
1052
+ let u = i.useMemo(() => {
1053
+ if (!n || !e) return null;
1054
+ let c = te(o, l, a, e);
1055
+ return c !== o.key ? c : null;
1056
+ }, []);
1057
+ if (!n || n.isSpaMode) return null;
1058
+ let s = ((c, d) => {
1059
+ if (!window.history.state || !window.history.state.key) {
1060
+ let f = Math.random().toString(32).slice(2);
1061
+ window.history.replaceState({ key: f }, "");
1062
+ }
1063
+ try {
1064
+ let f = JSON.parse(sessionStorage.getItem(c) || "{}")[d || window.history.state.key];
1065
+ typeof f == "number" && window.scrollTo(0, f);
1066
+ } catch (f) {
1067
+ console.error(f), sessionStorage.removeItem(c);
1068
+ }
1069
+ }).toString();
1070
+ return /* @__PURE__ */ i.createElement("script", {
1071
+ ...r,
1072
+ suppressHydrationWarning: !0,
1073
+ dangerouslySetInnerHTML: { __html: `(${s})(${me(JSON.stringify(t || ee))}, ${me(JSON.stringify(u))})` }
1074
+ });
1075
+ }
1076
+ ir.displayName = "ScrollRestoration";
1077
+ function De(e) {
1078
+ return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
1079
+ }
1080
+ function ue(e) {
1081
+ let t = i.useContext(D);
1082
+ return E(t, De(e)), t;
1083
+ }
1084
+ function ur(e) {
1085
+ let t = i.useContext(A);
1086
+ return E(t, De(e)), t;
1087
+ }
1088
+ function sr(e, { target: t, replace: r, unstable_mask: n, state: a, preventScrollReset: o, relative: l, viewTransition: u, unstable_defaultShouldRevalidate: s, unstable_useTransitions: c } = {}) {
1089
+ let d = vt(), f = b(), m = B(e, { relative: l });
1090
+ return i.useCallback((g) => {
1091
+ if (_t(g, t)) {
1092
+ g.preventDefault();
1093
+ let v = r !== void 0 ? r : Z(f) === Z(m), p = () => d(e, {
1094
+ replace: v,
1095
+ unstable_mask: n,
1096
+ state: a,
1097
+ preventScrollReset: o,
1098
+ relative: l,
1099
+ viewTransition: u,
1100
+ unstable_defaultShouldRevalidate: s
1101
+ });
1102
+ c ? i.startTransition(() => p()) : p();
1103
+ }
1104
+ }, [
1105
+ f,
1106
+ d,
1107
+ m,
1108
+ r,
1109
+ n,
1110
+ a,
1111
+ t,
1112
+ e,
1113
+ o,
1114
+ l,
1115
+ u,
1116
+ s,
1117
+ c
1118
+ ]);
1119
+ }
1120
+ var cr = 0, fr = () => `__${String(++cr)}__`;
1121
+ function dr() {
1122
+ let { router: e } = ue("useSubmit"), { basename: t } = i.useContext(S), r = Pt(), n = e.fetch, a = e.navigate;
1123
+ return i.useCallback(async (o, l = {}) => {
1124
+ let { action: u, method: s, encType: c, formData: d, body: f } = Ut(o, t);
1125
+ l.navigate === !1 ? await n(l.fetcherKey || fr(), r, l.action || u, {
1126
+ unstable_defaultShouldRevalidate: l.unstable_defaultShouldRevalidate,
1127
+ preventScrollReset: l.preventScrollReset,
1128
+ formData: d,
1129
+ body: f,
1130
+ formMethod: l.method || s,
1131
+ formEncType: l.encType || c,
1132
+ flushSync: l.flushSync
1133
+ }) : await a(l.action || u, {
1134
+ unstable_defaultShouldRevalidate: l.unstable_defaultShouldRevalidate,
1135
+ preventScrollReset: l.preventScrollReset,
1136
+ formData: d,
1137
+ body: f,
1138
+ formMethod: l.method || s,
1139
+ formEncType: l.encType || c,
1140
+ replace: l.replace,
1141
+ state: l.state,
1142
+ fromRouteId: r,
1143
+ flushSync: l.flushSync,
1144
+ viewTransition: l.viewTransition
1145
+ });
1146
+ }, [
1147
+ n,
1148
+ a,
1149
+ t,
1150
+ r
1151
+ ]);
1152
+ }
1153
+ function hr(e, { relative: t } = {}) {
1154
+ let { basename: r } = i.useContext(S), n = i.useContext(k);
1155
+ E(n, "useFormAction must be used inside a RouteContext");
1156
+ let [a] = n.matches.slice(-1), o = { ...B(e || ".", { relative: t }) }, l = b();
1157
+ if (e == null) {
1158
+ o.search = l.search;
1159
+ let u = new URLSearchParams(o.search), s = u.getAll("index");
1160
+ if (s.some((c) => c === "")) {
1161
+ u.delete("index"), s.filter((d) => d).forEach((d) => u.append("index", d));
1162
+ let c = u.toString();
1163
+ o.search = c ? `?${c}` : "";
1164
+ }
1165
+ }
1166
+ return (!e || e === ".") && a.route.index && (o.search = o.search ? o.search.replace(/^\?/, "?index&") : "?index"), r !== "/" && (o.pathname = o.pathname === "/" ? r : P([r, o.pathname])), Z(o);
1167
+ }
1168
+ var ee = "react-router-scroll-positions", j = {};
1169
+ function te(e, t, r, n) {
1170
+ let a = null;
1171
+ return n && (r !== "/" ? a = n({
1172
+ ...e,
1173
+ pathname: L(e.pathname, r) || e.pathname
1174
+ }, t) : a = n(e, t)), a == null && (a = e.key), a;
1175
+ }
1176
+ function mr({ getKey: e, storageKey: t } = {}) {
1177
+ let { router: r } = ue("useScrollRestoration"), { restoreScrollPosition: n, preventScrollReset: a } = ur("useScrollRestoration"), { basename: o } = i.useContext(S), l = b(), u = $e(), s = Lt();
1178
+ i.useEffect(() => (window.history.scrollRestoration = "manual", () => {
1179
+ window.history.scrollRestoration = "auto";
1180
+ }), []), pr(i.useCallback(() => {
1181
+ if (s.state === "idle") {
1182
+ let c = te(l, u, o, e);
1183
+ j[c] = window.scrollY;
1184
+ }
1185
+ try {
1186
+ sessionStorage.setItem(t || ee, JSON.stringify(j));
1187
+ } catch (c) {
1188
+ C(!1, `Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (${c}).`);
1189
+ }
1190
+ window.history.scrollRestoration = "auto";
1191
+ }, [
1192
+ s.state,
1193
+ e,
1194
+ o,
1195
+ l,
1196
+ u,
1197
+ t
1198
+ ])), typeof document < "u" && (i.useLayoutEffect(() => {
1199
+ try {
1200
+ let c = sessionStorage.getItem(t || ee);
1201
+ c && (j = JSON.parse(c));
1202
+ } catch {
1203
+ }
1204
+ }, [t]), i.useLayoutEffect(() => {
1205
+ let c = r?.enableScrollRestoration(j, () => window.scrollY, e ? (d, f) => te(d, f, o, e) : void 0);
1206
+ return () => c && c();
1207
+ }, [
1208
+ r,
1209
+ o,
1210
+ e
1211
+ ]), i.useLayoutEffect(() => {
1212
+ if (n !== !1) {
1213
+ if (typeof n == "number") {
1214
+ window.scrollTo(0, n);
1215
+ return;
1216
+ }
1217
+ try {
1218
+ if (l.hash) {
1219
+ let c = document.getElementById(decodeURIComponent(l.hash.slice(1)));
1220
+ if (c) {
1221
+ c.scrollIntoView();
1222
+ return;
1223
+ }
1224
+ }
1225
+ } catch {
1226
+ C(!1, `"${l.hash.slice(1)}" is not a decodable element ID. The view will not scroll to it.`);
1227
+ }
1228
+ a !== !0 && window.scrollTo(0, 0);
1229
+ }
1230
+ }, [
1231
+ l,
1232
+ n,
1233
+ a
1234
+ ]));
1235
+ }
1236
+ function pr(e, t) {
1237
+ let { capture: r } = t || {};
1238
+ i.useEffect(() => {
1239
+ let n = r != null ? { capture: r } : void 0;
1240
+ return window.addEventListener("pagehide", e, n), () => {
1241
+ window.removeEventListener("pagehide", e, n);
1242
+ };
1243
+ }, [e, r]);
1244
+ }
1245
+ function vr(e, { relative: t } = {}) {
1246
+ let r = i.useContext(xe);
1247
+ E(r != null, "`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");
1248
+ let { basename: n } = ue("useViewTransitionState"), a = B(e, { relative: t });
1249
+ if (!r.isTransitioning) return !1;
1250
+ let o = L(r.currentLocation.pathname, n) || r.currentLocation.pathname, l = L(r.nextLocation.pathname, n) || r.nextLocation.pathname;
1251
+ return V(a.pathname, l) != null || V(a.pathname, o) != null;
1252
+ }
1253
+ var Cr = () => {
1254
+ try {
1255
+ return b(), { isInsideRouter: !0 };
1256
+ } catch {
1257
+ return { isInsideRouter: !1 };
1258
+ }
1259
+ };
1260
+ export {
1261
+ Ne as n,
1262
+ Cr as t
1263
+ };