@konstructio/ui 0.1.2-alpha.11 → 0.1.2-alpha.111

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 (1372) hide show
  1. package/README.md +119 -38
  2. package/dist/AdditionalOptions-D3SZ2WFJ.js +37 -0
  3. package/dist/AlertDialogTrigger-Cdw3C2Tv.js +109 -0
  4. package/dist/AnimatePresence-BsUYG9bm.js +186 -0
  5. package/dist/Breadcrumb-CHi5-wVa.js +81 -0
  6. package/dist/CalendarPanel.css +1 -0
  7. package/dist/Checkbox-CrNxsm3G.js +247 -0
  8. package/dist/Combination-CnMM05mt.js +492 -0
  9. package/dist/CommandInput-DiRv6fEA.js +75 -0
  10. package/dist/Counter-DN50BVq6.js +194 -0
  11. package/dist/DayPicker-BtpJg2q3.js +2932 -0
  12. package/dist/DropdownButton-Blhkj-Oi.js +490 -0
  13. package/dist/FlagSelectorList-ClKGwDpS.js +918 -0
  14. package/dist/HamburgerTrigger-DjHmNEJD.js +84 -0
  15. package/dist/ImageUpload-BNZjCUTX.js +186 -0
  16. package/dist/Input-2M2I_H60.js +193 -0
  17. package/dist/Loading-u8hXrFJR.js +25 -0
  18. package/dist/Modal-Bk1I_NCC.js +81 -0
  19. package/dist/Sidebar.css +1 -0
  20. package/dist/Spinner-smR3esbL.js +47 -0
  21. package/dist/StepIndicatorContent-yB2HfOdY.js +36 -0
  22. package/dist/Switch-CPE8v6Zh.js +199 -0
  23. package/dist/Toast-frCWQhFC.js +76 -0
  24. package/dist/Wrapper-BxfB3BDa.js +1068 -0
  25. package/dist/Wrapper-JmStmade.js +113 -0
  26. package/dist/Wrapper-MmlrJppS.js +224 -0
  27. package/dist/assets/icons/components/Accounts.js +23 -0
  28. package/dist/assets/icons/components/Activity.js +23 -0
  29. package/dist/assets/icons/components/AddChart.js +20 -0
  30. package/dist/assets/icons/components/AlertOutline.js +20 -0
  31. package/dist/assets/icons/components/AllSetCheck.js +27 -0
  32. package/dist/assets/icons/components/ApiKey.js +31 -0
  33. package/dist/assets/icons/components/AppRepo.js +20 -0
  34. package/dist/assets/icons/components/Apps.js +20 -0
  35. package/dist/assets/icons/components/Archives.js +20 -0
  36. package/dist/assets/icons/components/ArrowBack.js +20 -0
  37. package/dist/assets/icons/components/ArrowDown.js +20 -0
  38. package/dist/assets/icons/components/ArrowLeft.js +20 -0
  39. package/dist/assets/icons/components/ArrowRight.js +20 -0
  40. package/dist/assets/icons/components/ArrowUp.js +20 -0
  41. package/dist/assets/icons/components/BarChart.js +30 -0
  42. package/dist/assets/icons/components/Billing.js +36 -0
  43. package/dist/assets/icons/components/BookOpen.js +24 -0
  44. package/dist/assets/icons/components/CalendarMonth.js +20 -0
  45. package/dist/assets/icons/components/Check.js +20 -0
  46. package/dist/assets/icons/components/CheckAlt.js +24 -0
  47. package/dist/assets/icons/components/CheckCircleFilled.js +30 -0
  48. package/dist/assets/icons/components/CheckCircleOutline.js +20 -0
  49. package/dist/assets/icons/components/CheckboxMarkedCircleOutline.js +20 -0
  50. package/dist/assets/icons/components/CircumGlobe.js +20 -0
  51. package/dist/assets/icons/components/ClockAlert.js +20 -0
  52. package/dist/assets/icons/components/ClockOutline.js +20 -0
  53. package/dist/assets/icons/components/Close.js +20 -0
  54. package/dist/assets/icons/components/Cloud.js +17 -0
  55. package/dist/assets/icons/components/CloudLockOutline.js +20 -0
  56. package/dist/assets/icons/components/Clusters.js +30 -0
  57. package/dist/assets/icons/components/CogOutline.js +20 -0
  58. package/dist/assets/icons/components/Compute.js +20 -0
  59. package/dist/assets/icons/components/Configure.js +41 -0
  60. package/dist/assets/icons/components/Copy.js +20 -0
  61. package/dist/assets/icons/components/Cpu.js +27 -0
  62. package/dist/assets/icons/components/CpuAlt.js +33 -0
  63. package/dist/assets/icons/components/Cube.js +20 -0
  64. package/dist/assets/icons/components/Dashboard.js +23 -0
  65. package/dist/assets/icons/components/Database.js +33 -0
  66. package/dist/assets/icons/components/Datacenter.js +20 -0
  67. package/dist/assets/icons/components/Delete.js +20 -0
  68. package/dist/assets/icons/components/Deploy.js +41 -0
  69. package/dist/assets/icons/components/Detach.js +20 -0
  70. package/dist/assets/icons/components/Dns.js +23 -0
  71. package/dist/assets/icons/components/Docs.js +40 -0
  72. package/dist/assets/icons/components/DollarSign.js +22 -0
  73. package/dist/assets/icons/components/Download.js +20 -0
  74. package/dist/assets/icons/components/Edit.js +20 -0
  75. package/dist/assets/icons/components/Ellipses.js +20 -0
  76. package/dist/assets/icons/components/Environments.js +22 -0
  77. package/dist/assets/icons/components/Error.js +20 -0
  78. package/dist/assets/icons/components/ErrorOutline.js +20 -0
  79. package/dist/assets/icons/components/Exclamation.js +23 -0
  80. package/dist/assets/icons/components/Firewall.js +23 -0
  81. package/dist/assets/icons/components/FirewallAlt.js +23 -0
  82. package/dist/assets/icons/components/Git.js +20 -0
  83. package/dist/assets/icons/components/GitOpsCatalog.js +27 -0
  84. package/dist/assets/icons/components/Github.js +34 -0
  85. package/dist/assets/icons/components/GridView.js +17 -0
  86. package/dist/assets/icons/components/Help.js +26 -0
  87. package/dist/assets/icons/components/HideOutline.js +23 -0
  88. package/dist/assets/icons/components/Home.js +20 -0
  89. package/dist/assets/icons/components/Home2.js +23 -0
  90. package/dist/assets/icons/components/Id.js +20 -0
  91. package/dist/assets/icons/components/InfoCircle.js +30 -0
  92. package/dist/assets/icons/components/InformationFilled.js +20 -0
  93. package/dist/assets/icons/components/InformationOutline.js +20 -0
  94. package/dist/assets/icons/components/Inventory.js +23 -0
  95. package/dist/assets/icons/components/InvoiceList.js +20 -0
  96. package/dist/assets/icons/components/Key.js +20 -0
  97. package/dist/assets/icons/components/Konstruct.js +23 -0
  98. package/dist/assets/icons/components/Kubernetes.js +29 -0
  99. package/dist/assets/icons/components/LightBulb.js +29 -0
  100. package/dist/assets/icons/components/LoadBalancer.js +20 -0
  101. package/dist/assets/icons/components/LoadBalancerAlt.js +20 -0
  102. package/dist/assets/icons/components/Loader.js +20 -0
  103. package/dist/assets/icons/components/Lock.js +20 -0
  104. package/dist/assets/icons/components/LockAlt.js +21 -0
  105. package/dist/assets/icons/components/LogOut.js +23 -0
  106. package/dist/assets/icons/components/Network.js +20 -0
  107. package/dist/assets/icons/components/NetworkAlt.js +30 -0
  108. package/dist/assets/icons/components/ObjectStorage.js +23 -0
  109. package/dist/assets/icons/components/OrgSettings.js +20 -0
  110. package/dist/assets/icons/components/Organization.js +20 -0
  111. package/dist/assets/icons/components/PagesStack.js +26 -0
  112. package/dist/assets/icons/components/Pageview.js +20 -0
  113. package/dist/assets/icons/components/Pause.js +20 -0
  114. package/dist/assets/icons/components/People.js +20 -0
  115. package/dist/assets/icons/components/PhotoLibrary.js +20 -0
  116. package/dist/assets/icons/components/Pipeline.js +22 -0
  117. package/dist/assets/icons/components/Plus.js +20 -0
  118. package/dist/assets/icons/components/PowerSettings.js +20 -0
  119. package/dist/assets/icons/components/Preview.js +20 -0
  120. package/dist/assets/icons/components/PrivateRegion.js +20 -0
  121. package/dist/assets/icons/components/Profile.js +20 -0
  122. package/dist/assets/icons/components/Quota.js +23 -0
  123. package/dist/assets/icons/components/ReceiptLong.js +17 -0
  124. package/dist/assets/icons/components/Refresh.js +20 -0
  125. package/dist/assets/icons/components/ReservedIp.js +20 -0
  126. package/dist/assets/icons/components/ScatterPlot.js +17 -0
  127. package/dist/assets/icons/components/Search.js +30 -24
  128. package/dist/assets/icons/components/Server.js +20 -0
  129. package/dist/assets/icons/components/SpendStatement.js +70 -0
  130. package/dist/assets/icons/components/SshKey.js +23 -0
  131. package/dist/assets/icons/components/Start.js +20 -0
  132. package/dist/assets/icons/components/TabNew.js +36 -0
  133. package/dist/assets/icons/components/TeamMembers.js +23 -0
  134. package/dist/assets/icons/components/Teams.js +20 -0
  135. package/dist/assets/icons/components/Updated.js +20 -0
  136. package/dist/assets/icons/components/Upload.js +20 -0
  137. package/dist/assets/icons/components/Volume.js +60 -0
  138. package/dist/assets/icons/components/Warning.js +16 -18
  139. package/dist/assets/icons/components/WarningTriangle.js +20 -0
  140. package/dist/assets/icons/components/Webhook.js +44 -0
  141. package/dist/assets/icons/components/X.js +20 -0
  142. package/dist/assets/icons/components/index.js +230 -4
  143. package/dist/assets/icons/components/types.js +0 -0
  144. package/dist/assets/icons/index.js +232 -0
  145. package/dist/chevron-down-BODx0Q7h.js +14 -0
  146. package/dist/chevron-left-B1zWfqll.js +14 -0
  147. package/dist/chevron-right-D4OkgIIT.js +14 -0
  148. package/dist/chevron-up-B8hiVgxZ.js +14 -0
  149. package/dist/{clsx-OuTLNxxd.js → clsx-Cf23UI1w.js} +1 -1
  150. package/dist/components/Alert/Alert.js +56 -46
  151. package/dist/components/Alert/Alert.variants.js +96 -66
  152. package/dist/components/AlertDialog/AlertDialog.js +70 -81
  153. package/dist/components/AlertDialog/components/AlertDialogTrigger.js +2 -5
  154. package/dist/components/AlertDialog/components/index.js +2 -2
  155. package/dist/components/AlertDialog/hooks/useAlertDialog.js +16 -7
  156. package/dist/components/Autocomplete/Autocomplete.js +58 -81
  157. package/dist/components/Autocomplete/Autocomplete.variants.js +2 -3
  158. package/dist/components/Autocomplete/components/List/List.js +27 -43
  159. package/dist/components/Autocomplete/components/List/List.variants.js +8 -20
  160. package/dist/components/Autocomplete/components/index.js +2 -2
  161. package/dist/components/Autocomplete/hooks/useAutocomplete.js +43 -67
  162. package/dist/components/Autocomplete/hooks/useNavigationList.js +41 -53
  163. package/dist/components/Badge/Badge.js +63 -74
  164. package/dist/components/Badge/Badge.variants.js +90 -61
  165. package/dist/components/Breadcrumb/Breadcrumb.js +2 -89
  166. package/dist/components/Breadcrumb/Breadcrumb.variants.js +10 -6
  167. package/dist/components/Breadcrumb/components/BackButton/BackButton.js +41 -0
  168. package/dist/components/Breadcrumb/components/BackButton/BackButton.variants.js +19 -0
  169. package/dist/components/Breadcrumb/components/Item/Item.js +49 -47
  170. package/dist/components/Breadcrumb/components/Item/Item.variants.js +52 -54
  171. package/dist/components/Breadcrumb/components/index.js +4 -2
  172. package/dist/components/Breadcrumb/hooks/useBreadcrumb.js +2 -2
  173. package/dist/components/Button/Button.js +21 -39
  174. package/dist/components/Button/Button.variants.js +315 -270
  175. package/dist/components/ButtonGroup/ButtonGroup.js +93 -0
  176. package/dist/components/ButtonGroup/ButtonGroup.variants.js +32 -0
  177. package/dist/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.js +60 -0
  178. package/dist/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.variants.js +98 -0
  179. package/dist/components/ButtonGroup/components/ButtonGroupItem/index.js +4 -0
  180. package/dist/components/ButtonGroup/components/ButtonGroupLabel/ButtonGroupLabel.js +24 -0
  181. package/dist/components/ButtonGroup/components/ButtonGroupLabel/index.js +4 -0
  182. package/dist/components/ButtonGroup/components/ButtonGroupMessage/ButtonGroupMessage.js +20 -0
  183. package/dist/components/ButtonGroup/components/ButtonGroupMessage/index.js +4 -0
  184. package/dist/components/ButtonGroup/components/index.js +8 -0
  185. package/dist/components/ButtonGroup/hooks/index.js +4 -0
  186. package/dist/components/ButtonGroup/hooks/useButtonGroup.js +54 -0
  187. package/dist/components/Card/Card.js +26 -35
  188. package/dist/components/Card/Card.variants.js +42 -46
  189. package/dist/components/Checkbox/Checkbox.js +2 -353
  190. package/dist/components/Checkbox/Checkbox.variants.js +60 -43
  191. package/dist/components/Command/Command.js +28 -37
  192. package/dist/components/Command/Command.variants.js +3 -3
  193. package/dist/components/Command/components/Command.js +13 -5
  194. package/dist/components/Command/components/CommandEmpty.js +10 -13
  195. package/dist/components/Command/components/CommandGroup.js +8 -14
  196. package/dist/components/Command/components/CommandInput.js +2 -82
  197. package/dist/components/Command/components/CommandItem.js +16 -25
  198. package/dist/components/Command/components/CommandList.js +9 -12
  199. package/dist/components/Command/components/CommandSeparator.js +9 -12
  200. package/dist/components/Command/components/CommandShortcut.js +8 -17
  201. package/dist/components/Command/components/DialogContent.js +19 -28
  202. package/dist/components/Command/components/DialogOverlay.js +10 -16
  203. package/dist/components/Command/components/index.js +16 -16
  204. package/dist/components/Command/contexts/Command.context.js +1 -1
  205. package/dist/components/Command/contexts/Command.provider.js +19 -21
  206. package/dist/components/Command/contexts/index.js +2 -2
  207. package/dist/components/CopyButton/CopyButton.js +63 -0
  208. package/dist/components/CopyButton/CopyButton.variants.js +29 -0
  209. package/dist/components/CopyButton/hooks/index.js +4 -0
  210. package/dist/components/CopyButton/hooks/useCopyToClipboard/useCopyToClipboard.js +22 -0
  211. package/dist/components/Counter/Counter.js +5 -0
  212. package/dist/components/Counter/Counter.variants.js +57 -0
  213. package/dist/components/DateRangePicker/DateRangePicker.js +91 -0
  214. package/dist/components/DateRangePicker/DateRangePicker.variants.js +24 -0
  215. package/dist/components/DateRangePicker/components/CalendarPanel/CalendarPanel.js +82 -0
  216. package/dist/components/DateRangePicker/components/CalendarPanel/CalendarPanel.variants.js +56 -0
  217. package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarDivider/CalendarDivider.js +10 -0
  218. package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/CalendarMonth.js +38 -0
  219. package/dist/components/DateRangePicker/components/CalendarPanel/components/IndependentModeCalendar/IndependentModeCalendar.js +184 -0
  220. package/dist/components/DateRangePicker/components/CalendarPanel/components/NavigationButton/NavigationButton.js +22 -0
  221. package/dist/components/DateRangePicker/components/CalendarPanel/components/TogetherModeCalendar/TogetherModeCalendar.js +87 -0
  222. package/dist/components/DateRangePicker/components/CalendarPanel/components/index.js +12 -0
  223. package/dist/components/DateRangePicker/components/CalendarPanel/constants/dayPickerClassNames.js +4 -0
  224. package/dist/components/DateRangePicker/components/CalendarPanel/constants/index.js +12 -0
  225. package/dist/components/DateRangePicker/components/CalendarPanel/hooks/index.js +21 -0
  226. package/dist/components/DateRangePicker/components/CalendarPanel/hooks/useIndependentCarousel.js +138 -0
  227. package/dist/components/DateRangePicker/components/CalendarPanel/hooks/useTogetherCarousel.js +93 -0
  228. package/dist/components/DateRangePicker/components/CalendarPanel/utils/index.js +11 -0
  229. package/dist/components/DateRangePicker/components/DateTimeInputs/DateTimeInputs.js +70 -0
  230. package/dist/components/DateRangePicker/components/DateTimeInputs/DateTimeInputs.variants.js +50 -0
  231. package/dist/components/DateRangePicker/components/DateTimeInputs/components/EndInputFields/EndInputFields.js +57 -0
  232. package/dist/components/DateRangePicker/components/DateTimeInputs/components/StartInputFields/StartInputFields.js +57 -0
  233. package/dist/components/DateRangePicker/components/DateTimeInputs/components/index.js +6 -0
  234. package/dist/components/DateRangePicker/components/DateTimeInputs/hooks/index.js +4 -0
  235. package/dist/components/DateRangePicker/components/DateTimeInputs/hooks/useDateTimeInputs.js +150 -0
  236. package/dist/components/DateRangePicker/components/PresetPanel/PresetPanel.js +81 -0
  237. package/dist/components/DateRangePicker/components/PresetPanel/PresetPanel.variants.js +90 -0
  238. package/dist/components/DateRangePicker/components/RightPanel/RightPanel.js +38 -0
  239. package/dist/components/DateRangePicker/components/index.js +10 -0
  240. package/dist/components/DateRangePicker/constants/index.js +4 -0
  241. package/dist/components/DateRangePicker/constants/presets/presets.js +42 -0
  242. package/dist/components/DateRangePicker/contexts/date-range-picker/date-range-picker.context.js +5 -0
  243. package/dist/components/DateRangePicker/contexts/date-range-picker/date-range-picker.hook.js +10 -0
  244. package/dist/components/DateRangePicker/contexts/date-range-picker/date-range-picker.provider.js +124 -0
  245. package/dist/components/DateRangePicker/contexts/index.js +8 -0
  246. package/dist/components/DateRangePicker/utils/disabled-dates/disabled-dates.js +31 -0
  247. package/dist/components/DateRangePicker/utils/displayed-months/displayed-months.js +12 -0
  248. package/dist/components/DateRangePicker/utils/index.js +26 -0
  249. package/dist/components/DateRangePicker/utils/presets/presets.js +5 -0
  250. package/dist/components/DateRangePicker/utils/right-panel/right-panel.js +9 -0
  251. package/dist/components/DateRangePicker/utils/validation/validation.js +67 -0
  252. package/dist/components/Datepicker/DatePicker.js +46 -2687
  253. package/dist/components/Datepicker/DatePicker.variants.js +3 -3
  254. package/dist/components/Divider/Divider.js +9 -9
  255. package/dist/components/Divider/Divider.variants.js +9 -11
  256. package/dist/components/Drawer/Drawer.js +83 -0
  257. package/dist/components/Drawer/Drawer.variants.js +78 -0
  258. package/dist/components/Drawer/components/Body/Body.js +15 -0
  259. package/dist/components/Drawer/components/Body/index.js +4 -0
  260. package/dist/components/Drawer/components/Footer/Footer.js +15 -0
  261. package/dist/components/Drawer/components/Footer/index.js +4 -0
  262. package/dist/components/Drawer/components/Header/Header.js +16 -0
  263. package/dist/components/Drawer/components/Header/index.js +4 -0
  264. package/dist/components/Drawer/components/index.js +8 -0
  265. package/dist/components/Drawer/constants/index.js +9 -0
  266. package/dist/components/Drawer/contexts/Drawer.context.js +6 -0
  267. package/dist/components/Drawer/contexts/index.js +5 -0
  268. package/dist/components/Drawer/hooks/index.js +4 -0
  269. package/dist/components/Drawer/hooks/useDrawer.js +57 -0
  270. package/dist/components/DropdownButton/DropdownButton.js +2 -133
  271. package/dist/components/Filter/Filter.js +37 -18
  272. package/dist/components/Filter/Filter.variants.js +14 -9
  273. package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +69 -91
  274. package/dist/components/Filter/components/BadgeDropdown/hooks/index.js +4 -0
  275. package/dist/components/Filter/components/BadgeDropdown/hooks/useBadgeMultiSelect/useBadgeMultiSelect.js +67 -0
  276. package/dist/components/Filter/components/CustomDateRangeFilterDropdown/CustomDateRangeFilterDropdown.js +10 -0
  277. package/dist/components/Filter/components/CustomDateRangeFilterDropdown/components/Actions/Actions.js +78 -0
  278. package/dist/components/Filter/components/CustomDateRangeFilterDropdown/components/PanelActions/PanelActions.js +23 -0
  279. package/dist/components/Filter/components/CustomDateRangeFilterDropdown/components/Picker/Picker.js +34 -0
  280. package/dist/components/Filter/components/CustomDateRangeFilterDropdown/components/Trigger/Trigger.js +22 -0
  281. package/dist/components/Filter/components/CustomDateRangeFilterDropdown/components/Wrapper/Wrapper.js +22 -0
  282. package/dist/components/Filter/components/CustomDateRangeFilterDropdown/components/index.js +4 -0
  283. package/dist/components/Filter/components/CustomDateRangeFilterDropdown/constants/index.js +5 -0
  284. package/dist/components/Filter/components/CustomDateRangeFilterDropdown/constants/presets/presets.js +33 -0
  285. package/dist/components/Filter/components/CustomDateRangeFilterDropdown/contexts/custom-date-range-filter-dropdown/custom-date-range-filter-dropdown.context.js +5 -0
  286. package/dist/components/Filter/components/CustomDateRangeFilterDropdown/contexts/custom-date-range-filter-dropdown/custom-date-range-filter-dropdown.hook.js +10 -0
  287. package/dist/components/Filter/components/CustomDateRangeFilterDropdown/contexts/custom-date-range-filter-dropdown/custom-date-range-filter-dropdown.provider.js +149 -0
  288. package/dist/components/Filter/components/CustomDateRangeFilterDropdown/contexts/index.js +6 -0
  289. package/dist/components/Filter/components/CustomDateRangeFilterDropdown/hooks/index.js +20 -0
  290. package/dist/components/Filter/components/CustomDateRangeFilterDropdown/hooks/useAppliedDateRange/useAppliedDateRange.js +20 -0
  291. package/dist/components/Filter/components/CustomDateRangeFilterDropdown/hooks/useCalendarVisibility/useCalendarVisibility.js +24 -0
  292. package/dist/components/Filter/components/CustomDateRangeFilterDropdown/hooks/useDateRangeSelection/useDateRangeSelection.js +22 -0
  293. package/dist/components/Filter/components/CustomDateRangeFilterDropdown/hooks/useFilterDropdownOpenState/useFilterDropdownOpenState.js +18 -0
  294. package/dist/components/Filter/components/CustomDateRangeFilterDropdown/hooks/useFormattedDateRange/useFormattedDateRange.js +25 -0
  295. package/dist/components/Filter/components/CustomDateRangeFilterDropdown/hooks/usePendingDateRange/usePendingDateRange.js +15 -0
  296. package/dist/components/Filter/components/CustomDateRangeFilterDropdown/hooks/usePresetOptions/usePresetOptions.js +22 -0
  297. package/dist/components/Filter/components/CustomDateRangeFilterDropdown/hooks/useResetKey/useResetKey.js +10 -0
  298. package/dist/components/Filter/components/CustomDateRangeFilterDropdown/hooks/useSelectedPreset/useSelectedPreset.js +24 -0
  299. package/dist/components/Filter/components/CustomDateRangeFilterDropdown/utils/duration/duration.js +59 -0
  300. package/dist/components/Filter/components/CustomDateRangeFilterDropdown/utils/index.js +8 -0
  301. package/dist/components/Filter/components/CustomDateRangeFilterDropdown/utils/whole-days/whole-days.js +7 -0
  302. package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.js +46 -86
  303. package/dist/components/Filter/components/DateFilterDropdown/hooks/index.js +4 -0
  304. package/dist/components/Filter/components/DateFilterDropdown/hooks/useDateFilterDropdown/useDateFilterDropdown.js +37 -0
  305. package/dist/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.js +52 -0
  306. package/dist/components/Filter/components/DateRangeFilterDropdown/hooks/index.js +4 -0
  307. package/dist/components/Filter/components/DateRangeFilterDropdown/hooks/useDateRangeFilterDropdown/useDateRangeFilterDropdown.js +49 -0
  308. package/dist/components/Filter/components/FilterDropdown/FilterDropdown.js +28 -0
  309. package/dist/components/Filter/components/ResetButton/ResetButton.js +21 -26
  310. package/dist/components/Filter/components/TextMultiSelect/TextMultiSelect.js +73 -0
  311. package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.js +79 -0
  312. package/dist/components/Filter/components/TimeFilterDropdown/hooks/index.js +4 -0
  313. package/dist/components/Filter/components/TimeFilterDropdown/hooks/useTimeFilterDropdown/useTimeFilterDropdown.js +39 -0
  314. package/dist/components/Filter/components/index.js +14 -6
  315. package/dist/components/Filter/contexts/filter.context.js +5 -0
  316. package/dist/components/Filter/contexts/filter.hook.js +10 -0
  317. package/dist/components/Filter/contexts/filter.provider.js +17 -0
  318. package/dist/components/Filter/contexts/index.js +8 -0
  319. package/dist/components/Filter/events/index.js +27 -10
  320. package/dist/components/Filter/hooks/index.js +4 -0
  321. package/dist/components/Filter/hooks/useFilterDropdownSync.js +26 -0
  322. package/dist/components/Filter/utils/index.js +4 -0
  323. package/dist/components/ImageUpload/ImageUpload.js +4 -0
  324. package/dist/components/ImageUpload/ImageUpload.variants.js +92 -0
  325. package/dist/components/Input/Input.js +2 -205
  326. package/dist/components/Input/Input.variants.js +48 -50
  327. package/dist/components/LineChart/LineChart.js +127 -0
  328. package/dist/components/Loading/Loading.js +2 -24
  329. package/dist/components/Loading/Loading.variants.js +2 -2
  330. package/dist/components/Modal/Modal.js +3 -8
  331. package/dist/components/Modal/components/Body/Body.js +8 -5
  332. package/dist/components/Modal/components/Footer/Footer.js +8 -5
  333. package/dist/components/Modal/components/Header/Header.js +7 -4
  334. package/dist/components/Modal/components/Wrapper/Wrapper.js +2 -9
  335. package/dist/components/Modal/components/Wrapper/Wrapper.variants.js +16 -13
  336. package/dist/components/Modal/components/index.js +8 -8
  337. package/dist/components/Modal/contexts/Modal.context.js +2 -4
  338. package/dist/components/Modal/contexts/Modal.provider.js +27 -23
  339. package/dist/components/Modal/contexts/index.js +2 -2
  340. package/dist/components/Modal/hooks/useModal.js +10 -10
  341. package/dist/components/MultiSelectDropdown/MultiSelectDropdown.js +4 -0
  342. package/dist/components/MultiSelectDropdown/MultiSelectDropdown.variants.js +31 -0
  343. package/dist/components/MultiSelectDropdown/components/Item/Item.js +22 -0
  344. package/dist/components/MultiSelectDropdown/components/Item/Item.variants.js +29 -0
  345. package/dist/components/MultiSelectDropdown/components/List/List.js +4 -0
  346. package/dist/components/MultiSelectDropdown/components/List/List.variants.js +25 -0
  347. package/dist/components/MultiSelectDropdown/components/Wrapper/Wrapper.js +4 -0
  348. package/dist/components/MultiSelectDropdown/components/index.js +7 -0
  349. package/dist/components/MultiSelectDropdown/contexts/MultiSelectDropdown.context.js +22 -0
  350. package/dist/components/MultiSelectDropdown/contexts/MultiSelectDropdown.hook.js +10 -0
  351. package/dist/components/MultiSelectDropdown/contexts/MultiSelectDropdown.provider.js +110 -0
  352. package/dist/components/MultiSelectDropdown/contexts/index.js +6 -0
  353. package/dist/components/MultiSelectDropdown/hooks/useMultiSelectDropdown.js +24 -0
  354. package/dist/components/PhoneNumberInput/PhoneNumberInput.js +14 -0
  355. package/dist/components/PhoneNumberInput/PhoneNumberInput.variants.js +39 -0
  356. package/dist/components/PhoneNumberInput/components/FlagContent/FlagContent.js +21 -0
  357. package/dist/components/PhoneNumberInput/components/FlagSelectorList/FlagSelectorList.js +4 -0
  358. package/dist/components/PhoneNumberInput/components/FlagSelectorWrapper/FlagSelectorWrapper.js +28 -0
  359. package/dist/components/PhoneNumberInput/components/TruncateText/TruncateText.js +52 -0
  360. package/dist/components/PhoneNumberInput/components/Wrapper.js +4 -0
  361. package/dist/components/PhoneNumberInput/components/index.js +6 -0
  362. package/dist/components/PhoneNumberInput/contexts/index.js +8 -0
  363. package/dist/components/PhoneNumberInput/contexts/phone-number.context.js +28 -0
  364. package/dist/components/PhoneNumberInput/contexts/phone-number.hook.js +10 -0
  365. package/dist/components/PhoneNumberInput/contexts/phone-number.provider.js +4 -0
  366. package/dist/components/PhoneNumberInput/utils/index.js +10 -0
  367. package/dist/components/PieChart/PieChart.js +44 -5129
  368. package/dist/components/ProgressBar/ProgressBar.js +36 -60
  369. package/dist/components/ProgressBar/ProgressBar.variants.js +25 -33
  370. package/dist/components/Radio/Radio.js +50 -92
  371. package/dist/components/Radio/Radio.variants.js +82 -84
  372. package/dist/components/RadioCard/RadioCard.js +14 -31
  373. package/dist/components/RadioCard/RadioCard.variants.js +3 -3
  374. package/dist/components/RadioCardGroup/RadioCardGroup.js +24 -42
  375. package/dist/components/RadioCardGroup/RadioCardGroup.variants.js +8 -12
  376. package/dist/components/RadioGroup/RadioGroup.js +26 -47
  377. package/dist/components/RadioGroup/RadioGroup.variants.js +8 -12
  378. package/dist/components/Range/Range.js +49 -57
  379. package/dist/components/Range/Range.variants.js +35 -44
  380. package/dist/components/Select/Select.js +46 -0
  381. package/dist/components/Select/Select.variants.js +76 -0
  382. package/dist/components/Select/components/AdditionalOptions/AdditionalOptions.js +4 -0
  383. package/dist/components/Select/components/AdditionalOptions/AdditionalOptions.variants.js +5 -0
  384. package/dist/components/Select/components/EmptyList.js +5 -0
  385. package/dist/components/Select/components/List/List.js +141 -0
  386. package/dist/components/Select/components/List/List.variants.js +46 -0
  387. package/dist/components/Select/components/ListItem/ListItem.js +64 -0
  388. package/dist/components/{Dropdown → Select}/components/ListItem/ListItem.variants.js +8 -7
  389. package/dist/components/Select/components/Wrapper.js +4 -0
  390. package/dist/components/Select/components/index.js +10 -0
  391. package/dist/components/Select/constants/index.js +6 -0
  392. package/dist/components/Select/constants/list.js +4 -0
  393. package/dist/components/Select/constants/pagination.js +4 -0
  394. package/dist/components/Select/contexts/index.js +6 -0
  395. package/dist/components/Select/contexts/select.context.js +36 -0
  396. package/dist/components/Select/contexts/select.hook.js +10 -0
  397. package/dist/components/Select/contexts/select.provider.js +49 -0
  398. package/dist/components/Select/hooks/useNavigationList.js +40 -0
  399. package/dist/components/Select/hooks/useSelect.js +57 -0
  400. package/dist/components/Sidebar/Sidebar.js +22 -15
  401. package/dist/components/Sidebar/Sidebar.variants.js +11 -11
  402. package/dist/components/Sidebar/components/CollapseTrigger/CollapseTrigger.js +30 -0
  403. package/dist/components/Sidebar/components/CollapseTrigger/CollapseTrigger.variants.js +20 -0
  404. package/dist/components/Sidebar/components/Footer/Footer.js +9 -6
  405. package/dist/components/Sidebar/components/Footer/Footer.variants.js +2 -2
  406. package/dist/components/Sidebar/components/HamburgerTrigger/HamburgerTrigger.js +4 -0
  407. package/dist/components/Sidebar/components/HamburgerTrigger/HamburgerTrigger.variants.js +22 -0
  408. package/dist/components/Sidebar/components/Label/Label.js +34 -0
  409. package/dist/components/Sidebar/components/Logo/Logo.js +19 -6
  410. package/dist/components/Sidebar/components/Logo/Logo.variants.js +21 -7
  411. package/dist/components/Sidebar/components/Navigation/Navigation.js +29 -16
  412. package/dist/components/Sidebar/components/Navigation/Navigation.variants.js +10 -3
  413. package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.js +18 -24
  414. package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.variants.js +7 -2
  415. package/dist/components/Sidebar/components/NavigationOption/NavigationOption.context.js +6 -0
  416. package/dist/components/Sidebar/components/NavigationOption/NavigationOption.js +54 -23
  417. package/dist/components/Sidebar/components/NavigationOption/NavigationOption.variants.js +36 -41
  418. package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.js +9 -4
  419. package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.variants.js +8 -6
  420. package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.js +9 -10
  421. package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.variants.js +3 -3
  422. package/dist/components/Sidebar/components/Wrapper/Wrapper.js +118 -82
  423. package/dist/components/Sidebar/components/index.js +20 -14
  424. package/dist/components/Sidebar/contexts/SidebarContext.js +16 -0
  425. package/dist/components/Sidebar/contexts/index.js +5 -0
  426. package/dist/components/Sidebar/hooks/index.js +6 -0
  427. package/dist/components/Sidebar/hooks/useSidebarMode.js +10 -0
  428. package/dist/components/Slider/Slider.js +41 -47
  429. package/dist/components/Slider/Slider.variants.js +36 -45
  430. package/dist/components/Spinner/Spinner.js +5 -0
  431. package/dist/components/Spinner/Spinner.variants.js +40 -0
  432. package/dist/components/Stepper/Stepper.js +48 -0
  433. package/dist/components/Stepper/Stepper.variants.js +319 -0
  434. package/dist/components/Stepper/components/HorizontalStepItem/HorizontalStepItem.js +123 -0
  435. package/dist/components/Stepper/components/StepConnector/StepConnector.js +17 -0
  436. package/dist/components/Stepper/components/StepIndicatorContent/StepIndicatorContent.js +4 -0
  437. package/dist/components/Stepper/components/StepItem/StepItem.js +8 -0
  438. package/dist/components/Stepper/components/VerticalStepItem/VerticalStepItem.js +72 -0
  439. package/dist/components/Stepper/constants/index.js +13 -0
  440. package/dist/components/Stepper/hooks/index.js +4 -0
  441. package/dist/components/Stepper/hooks/useStepItemLogic.js +19 -0
  442. package/dist/components/Stepper/utils/index.js +12 -0
  443. package/dist/components/Switch/Switch.js +2 -199
  444. package/dist/components/Switch/Switch.variants.js +31 -14
  445. package/dist/components/Table/Table.js +17 -24
  446. package/dist/components/Table/Table.variants.js +17 -24
  447. package/dist/components/Table/components/Body.js +8 -15
  448. package/dist/components/Table/components/Filter.js +13 -7
  449. package/dist/components/Table/components/Head.js +9 -16
  450. package/dist/components/Table/components/Row.js +14 -26
  451. package/dist/components/Table/components/index.js +6 -6
  452. package/dist/components/Tabs/Tabs.js +20 -20
  453. package/dist/components/Tabs/Tabs.variants.js +55 -71
  454. package/dist/components/Tabs/components/Content.js +12 -12
  455. package/dist/components/Tabs/components/List.js +16 -18
  456. package/dist/components/Tabs/components/Trigger.js +13 -15
  457. package/dist/components/Tabs/components/index.js +4 -4
  458. package/dist/components/Tag/Tag.js +25 -16
  459. package/dist/components/Tag/Tag.variants.js +33 -39
  460. package/dist/components/TagSelect/TagSelect.js +13 -5
  461. package/dist/components/TagSelect/TagSelect.variants.js +7 -6
  462. package/dist/components/TagSelect/components/Item/Item.js +13 -16
  463. package/dist/components/TagSelect/components/Item/Item.variants.js +21 -30
  464. package/dist/components/TagSelect/components/List/List.js +15 -7
  465. package/dist/components/TagSelect/components/List/List.variants.js +3 -3
  466. package/dist/components/TagSelect/components/Wrapper/Wrapper.js +2 -133
  467. package/dist/components/TagSelect/components/index.js +6 -6
  468. package/dist/components/TagSelect/contexts/TagSelect.context.js +1 -1
  469. package/dist/components/TagSelect/contexts/TagSelect.hook.js +6 -7
  470. package/dist/components/TagSelect/contexts/TagSelect.provider.js +43 -59
  471. package/dist/components/TagSelect/contexts/index.js +4 -4
  472. package/dist/components/TagSelect/hooks/useTagSelect.js +15 -23
  473. package/dist/components/TextArea/TextArea.js +72 -33
  474. package/dist/components/TextArea/TextArea.variants.js +49 -13
  475. package/dist/components/TimePicker/TimePicker.js +14 -5
  476. package/dist/components/TimePicker/TimePicker.variants.js +32 -22
  477. package/dist/components/TimePicker/components/HoursList/HoursList.js +90 -81
  478. package/dist/components/TimePicker/components/MeridianList/MeridianList.js +49 -64
  479. package/dist/components/TimePicker/components/MinutesList/MinutesList.js +67 -50
  480. package/dist/components/TimePicker/components/Wrapper/Wrapper.js +147 -89
  481. package/dist/components/TimePicker/components/WrapperList/WrapperList.js +38 -48
  482. package/dist/components/TimePicker/components/index.js +2 -2
  483. package/dist/components/TimePicker/contexts/index.js +6 -6
  484. package/dist/components/TimePicker/contexts/time-picker.context.js +9 -2
  485. package/dist/components/TimePicker/contexts/time-picker.hook.js +4 -7
  486. package/dist/components/TimePicker/contexts/time-picker.provider.js +55 -42
  487. package/dist/components/TimePicker/utils/index.js +27 -4
  488. package/dist/components/Toast/Toast.js +3 -478
  489. package/dist/components/Toast/Toast.variants.js +89 -39
  490. package/dist/components/Toast/ToastProvider.js +19 -0
  491. package/dist/components/Toast/components/ToastCard/ToastCard.js +103 -0
  492. package/dist/components/Toast/components/index.js +4 -0
  493. package/dist/components/Toast/constants/index.js +35 -0
  494. package/dist/components/Toast/contexts/index.js +4 -0
  495. package/dist/components/Toast/contexts/toast-store.context.js +5 -0
  496. package/dist/components/Toast/hooks/index.js +15 -0
  497. package/dist/components/Toast/hooks/useStackExpansion/useStackExpansion.js +29 -0
  498. package/dist/components/Toast/hooks/useToast/useToast.js +17 -0
  499. package/dist/components/Toast/hooks/useToastHeights/useToastHeights.js +23 -0
  500. package/dist/components/Toast/hooks/useToastSource/useToastSource.js +15 -0
  501. package/dist/components/Toast/hooks/useToastStore/useToastStore.js +11 -0
  502. package/dist/components/Toast/hooks/useToastTimer/useToastTimer.js +26 -0
  503. package/dist/components/Toast/store/create-toast-store.js +46 -0
  504. package/dist/components/Toast/store/default-toast-store.js +5 -0
  505. package/dist/components/Toast/store/index.js +6 -0
  506. package/dist/components/Toast/utils/compute-stack-layout/compute-stack-layout.js +24 -0
  507. package/dist/components/Toast/utils/index.js +4 -0
  508. package/dist/components/Tooltip/Tooltip.js +16 -32
  509. package/dist/components/Typography/Typography.js +18 -25
  510. package/dist/components/Typography/Typography.variants.js +72 -54
  511. package/dist/components/VirtualizedTable/VirtualizedTable.js +105 -115
  512. package/dist/components/VirtualizedTable/VirtualizedTable.variants.js +2 -2
  513. package/dist/components/VirtualizedTable/assets/chevron-down.js +13 -22
  514. package/dist/components/VirtualizedTable/assets/chevron-up.js +13 -22
  515. package/dist/components/VirtualizedTable/assets/index.js +4 -4
  516. package/dist/components/VirtualizedTable/components/Actions/Actions.js +5 -48
  517. package/dist/components/VirtualizedTable/components/Actions/Actions.variants.js +53 -0
  518. package/dist/components/VirtualizedTable/components/Actions/components/ActionsList/ActionsList.js +23 -0
  519. package/dist/components/VirtualizedTable/components/Actions/components/ActionsTrigger/ActionsTrigger.js +26 -0
  520. package/dist/components/VirtualizedTable/components/Actions/components/InlineActions/InlineActions.js +48 -0
  521. package/dist/components/VirtualizedTable/components/Actions/components/InlineActions/constants/index.js +5 -0
  522. package/dist/components/VirtualizedTable/components/Actions/components/PortalActions/PortalActions.js +46 -0
  523. package/dist/components/VirtualizedTable/components/Actions/components/PortalActions/constants/index.js +5 -0
  524. package/dist/components/VirtualizedTable/components/Actions/components/PortalActions/hooks/index.js +4 -0
  525. package/dist/components/VirtualizedTable/components/Actions/components/PortalActions/hooks/use-actions-menu/use-actions-menu.js +41 -0
  526. package/dist/components/VirtualizedTable/components/Actions/components/PortalActions/hooks/use-menu-interactions/use-menu-interactions.js +72 -0
  527. package/dist/components/VirtualizedTable/components/Actions/components/PortalActions/hooks/use-menu-keyboard-navigation/use-menu-keyboard-navigation.js +56 -0
  528. package/dist/components/VirtualizedTable/components/Actions/components/PortalActions/hooks/use-row-highlight/use-row-highlight.js +13 -0
  529. package/dist/components/VirtualizedTable/components/Body/Body.js +71 -22
  530. package/dist/components/VirtualizedTable/components/DotPaginate/DotPaginate.js +97 -159
  531. package/dist/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.js +68 -30
  532. package/dist/components/VirtualizedTable/components/ExpandableRow/ExpandableRow.js +31 -0
  533. package/dist/components/VirtualizedTable/components/Filter/Filter.js +124 -81
  534. package/dist/components/VirtualizedTable/components/FormPaginate/FormPaginate.js +41 -44
  535. package/dist/components/VirtualizedTable/components/Header/Header.js +50 -79
  536. package/dist/components/VirtualizedTable/components/Pagination/Pagination.js +33 -42
  537. package/dist/components/VirtualizedTable/components/Skeleton/Skeleton.js +43 -0
  538. package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.js +38 -1866
  539. package/dist/components/VirtualizedTable/components/WrapperBody/WrapperBody.js +14 -0
  540. package/dist/components/VirtualizedTable/components/index.js +12 -10
  541. package/dist/components/VirtualizedTable/constants/index.js +3 -3
  542. package/dist/components/VirtualizedTable/constants/pagination.js +6 -1
  543. package/dist/components/VirtualizedTable/contexts/index.js +6 -6
  544. package/dist/components/VirtualizedTable/contexts/table.context.js +14 -3
  545. package/dist/components/VirtualizedTable/contexts/table.hook.js +7 -8
  546. package/dist/components/VirtualizedTable/contexts/table.provider.js +2 -80
  547. package/dist/components/VirtualizedTable/events/filters/filters.js +7 -0
  548. package/dist/components/VirtualizedTable/events/index.js +12 -0
  549. package/dist/components/VirtualizedTable/events/refresh/refresh.js +7 -0
  550. package/dist/components/VirtualizedTable/events/row/row.js +22 -0
  551. package/dist/components/VirtualizedTable/utils/get-table-id.js +4 -0
  552. package/dist/components/VirtualizedTable/utils/index.js +6 -0
  553. package/dist/components/VirtualizedTable/utils/pagination.js +5 -0
  554. package/dist/components/index.js +166 -98
  555. package/dist/components-z-LYRWfq.js +124 -0
  556. package/dist/constants-q2QnJrOb.js +31 -0
  557. package/dist/contexts/index.js +6 -6
  558. package/dist/contexts/theme.context.js +2 -2
  559. package/dist/contexts/theme.hook.js +2 -2
  560. package/dist/contexts/theme.provider.js +2 -85
  561. package/dist/createLucideIcon-C7E_xycG.js +119 -0
  562. package/dist/debounce-BdyZeJQk.js +86 -0
  563. package/dist/dist-B9GE4SXf.js +34 -0
  564. package/dist/dist-BUocnzkM.js +99 -0
  565. package/dist/dist-Bi8Y5nEx.js +190 -0
  566. package/dist/dist-C4j75TwZ.js +20 -0
  567. package/dist/dist-CCdbu9GU.js +46 -0
  568. package/dist/dist-CNui_Egg.js +451 -0
  569. package/dist/dist-CR3FMRzF.js +118 -0
  570. package/dist/dist-CgzF5_J6.js +469 -0
  571. package/dist/dist-D-yS0HN8.js +228 -0
  572. package/dist/dist-D5Q2IYuC.js +358 -0
  573. package/dist/dist-D70ZJkHf.js +29 -0
  574. package/dist/dist-DX0sBG3Q.js +31 -0
  575. package/dist/dist-DZ_SU77k.js +437 -0
  576. package/dist/dist-DcFwF4XM.js +1319 -0
  577. package/dist/dist-Dg3vyTx9.js +7484 -0
  578. package/dist/dist-LRkZdylX.js +174 -0
  579. package/dist/dist-f8EwfITY.js +194 -0
  580. package/dist/dist-pWlMx4Fi.js +36 -0
  581. package/dist/dist-uerXivvM.js +178 -0
  582. package/dist/dist-xCbHbMLA.js +116 -0
  583. package/dist/ellipsis-vertical-C_yX7aQe.js +31 -0
  584. package/dist/es2015-B_07N-UL.js +796 -0
  585. package/dist/es2015-Hhb87ipX.js +231 -0
  586. package/dist/events.types-BG1Uh8i6.js +6 -0
  587. package/dist/hooks/index.js +8 -2
  588. package/dist/hooks/useClickOutside.js +14 -0
  589. package/dist/hooks/useIsHydrated/useIsHydrated.js +6 -0
  590. package/dist/hooks/useIsHydrated/utils/index.js +4 -0
  591. package/dist/hooks/useIsHydrated/utils/noop-subscribe/noop-subscribe.js +5 -0
  592. package/dist/hooks/useMediaQuery.js +17 -0
  593. package/dist/hooks/useToggle.js +5 -8
  594. package/dist/icons.d.ts +1 -0
  595. package/dist/icons.js +232 -0
  596. package/dist/index.d.ts +1 -955
  597. package/dist/index.js +184 -106
  598. package/dist/isObject-pLoSfdr0.js +62 -0
  599. package/dist/lib/assets/icons/components/Accounts.d.ts +3 -0
  600. package/dist/lib/assets/icons/components/Activity.d.ts +3 -0
  601. package/dist/lib/assets/icons/components/AddChart.d.ts +3 -0
  602. package/dist/lib/assets/icons/components/AlertOutline.d.ts +3 -0
  603. package/dist/lib/assets/icons/components/AllSetCheck.d.ts +3 -0
  604. package/dist/lib/assets/icons/components/ApiKey.d.ts +3 -0
  605. package/dist/lib/assets/icons/components/AppRepo.d.ts +3 -0
  606. package/dist/lib/assets/icons/components/Apps.d.ts +3 -0
  607. package/dist/lib/assets/icons/components/Archives.d.ts +3 -0
  608. package/dist/lib/assets/icons/components/ArrowBack.d.ts +3 -0
  609. package/dist/lib/assets/icons/components/ArrowDown.d.ts +3 -0
  610. package/dist/lib/assets/icons/components/ArrowLeft.d.ts +3 -0
  611. package/dist/lib/assets/icons/components/ArrowRight.d.ts +3 -0
  612. package/dist/lib/assets/icons/components/ArrowUp.d.ts +3 -0
  613. package/dist/lib/assets/icons/components/BarChart.d.ts +3 -0
  614. package/dist/lib/assets/icons/components/Billing.d.ts +3 -0
  615. package/dist/lib/assets/icons/components/BookOpen.d.ts +3 -0
  616. package/dist/lib/assets/icons/components/CalendarMonth.d.ts +3 -0
  617. package/dist/lib/assets/icons/components/Check.d.ts +3 -0
  618. package/dist/lib/assets/icons/components/CheckAlt.d.ts +3 -0
  619. package/dist/lib/assets/icons/components/CheckCircleFilled.d.ts +3 -0
  620. package/dist/lib/assets/icons/components/CheckCircleOutline.d.ts +3 -0
  621. package/dist/lib/assets/icons/components/CheckboxMarkedCircleOutline.d.ts +3 -0
  622. package/dist/lib/assets/icons/components/CircumGlobe.d.ts +3 -0
  623. package/dist/lib/assets/icons/components/ClockAlert.d.ts +3 -0
  624. package/dist/lib/assets/icons/components/ClockOutline.d.ts +3 -0
  625. package/dist/lib/assets/icons/components/Close.d.ts +3 -0
  626. package/dist/lib/assets/icons/components/Cloud.d.ts +3 -0
  627. package/dist/lib/assets/icons/components/CloudLockOutline.d.ts +3 -0
  628. package/dist/lib/assets/icons/components/Clusters.d.ts +3 -0
  629. package/dist/lib/assets/icons/components/CogOutline.d.ts +3 -0
  630. package/dist/lib/assets/icons/components/Compute.d.ts +3 -0
  631. package/dist/lib/assets/icons/components/Configure.d.ts +3 -0
  632. package/dist/lib/assets/icons/components/Copy.d.ts +3 -0
  633. package/dist/lib/assets/icons/components/Cpu.d.ts +3 -0
  634. package/dist/lib/assets/icons/components/CpuAlt.d.ts +3 -0
  635. package/dist/lib/assets/icons/components/Cube.d.ts +3 -0
  636. package/dist/lib/assets/icons/components/Dashboard.d.ts +3 -0
  637. package/dist/lib/assets/icons/components/Database.d.ts +3 -0
  638. package/dist/lib/assets/icons/components/Datacenter.d.ts +3 -0
  639. package/dist/lib/assets/icons/components/Delete.d.ts +3 -0
  640. package/dist/lib/assets/icons/components/Deploy.d.ts +3 -0
  641. package/dist/lib/assets/icons/components/Detach.d.ts +3 -0
  642. package/dist/lib/assets/icons/components/Dns.d.ts +3 -0
  643. package/dist/lib/assets/icons/components/Docs.d.ts +3 -0
  644. package/dist/lib/assets/icons/components/DollarSign.d.ts +3 -0
  645. package/dist/lib/assets/icons/components/Download.d.ts +3 -0
  646. package/dist/lib/assets/icons/components/Edit.d.ts +3 -0
  647. package/dist/lib/assets/icons/components/Ellipses.d.ts +3 -0
  648. package/dist/lib/assets/icons/components/Environments.d.ts +3 -0
  649. package/dist/lib/assets/icons/components/Error.d.ts +3 -0
  650. package/dist/lib/assets/icons/components/ErrorOutline.d.ts +3 -0
  651. package/dist/lib/assets/icons/components/Exclamation.d.ts +3 -0
  652. package/dist/lib/assets/icons/components/Firewall.d.ts +3 -0
  653. package/dist/lib/assets/icons/components/FirewallAlt.d.ts +3 -0
  654. package/dist/lib/assets/icons/components/Git.d.ts +3 -0
  655. package/dist/lib/assets/icons/components/GitOpsCatalog.d.ts +3 -0
  656. package/dist/lib/assets/icons/components/Github.d.ts +3 -0
  657. package/dist/lib/assets/icons/components/GridView.d.ts +3 -0
  658. package/dist/lib/assets/icons/components/Help.d.ts +3 -0
  659. package/dist/lib/assets/icons/components/HideOutline.d.ts +3 -0
  660. package/dist/lib/assets/icons/components/Home.d.ts +3 -0
  661. package/dist/lib/assets/icons/components/Home2.d.ts +3 -0
  662. package/dist/lib/assets/icons/components/Id.d.ts +3 -0
  663. package/dist/lib/assets/icons/components/InfoCircle.d.ts +3 -0
  664. package/dist/lib/assets/icons/components/InformationFilled.d.ts +3 -0
  665. package/dist/lib/assets/icons/components/InformationOutline.d.ts +3 -0
  666. package/dist/lib/assets/icons/components/Inventory.d.ts +3 -0
  667. package/dist/lib/assets/icons/components/InvoiceList.d.ts +3 -0
  668. package/dist/lib/assets/icons/components/Key.d.ts +3 -0
  669. package/dist/lib/assets/icons/components/Konstruct.d.ts +3 -0
  670. package/dist/lib/assets/icons/components/Kubernetes.d.ts +3 -0
  671. package/dist/lib/assets/icons/components/LightBulb.d.ts +3 -0
  672. package/dist/lib/assets/icons/components/LoadBalancer.d.ts +3 -0
  673. package/dist/lib/assets/icons/components/LoadBalancerAlt.d.ts +3 -0
  674. package/dist/lib/assets/icons/components/Loader.d.ts +3 -0
  675. package/dist/lib/assets/icons/components/Lock.d.ts +3 -0
  676. package/dist/lib/assets/icons/components/LockAlt.d.ts +3 -0
  677. package/dist/lib/assets/icons/components/LogOut.d.ts +3 -0
  678. package/dist/lib/assets/icons/components/Network.d.ts +3 -0
  679. package/dist/lib/assets/icons/components/NetworkAlt.d.ts +3 -0
  680. package/dist/lib/assets/icons/components/ObjectStorage.d.ts +3 -0
  681. package/dist/lib/assets/icons/components/OrgSettings.d.ts +3 -0
  682. package/dist/lib/assets/icons/components/Organization.d.ts +3 -0
  683. package/dist/lib/assets/icons/components/PagesStack.d.ts +3 -0
  684. package/dist/lib/assets/icons/components/Pageview.d.ts +3 -0
  685. package/dist/lib/assets/icons/components/Pause.d.ts +3 -0
  686. package/dist/lib/assets/icons/components/People.d.ts +3 -0
  687. package/dist/lib/assets/icons/components/PhotoLibrary.d.ts +3 -0
  688. package/dist/lib/assets/icons/components/Pipeline.d.ts +3 -0
  689. package/dist/lib/assets/icons/components/Plus.d.ts +3 -0
  690. package/dist/lib/assets/icons/components/PowerSettings.d.ts +3 -0
  691. package/dist/lib/assets/icons/components/Preview.d.ts +3 -0
  692. package/dist/lib/assets/icons/components/PrivateRegion.d.ts +3 -0
  693. package/dist/lib/assets/icons/components/Profile.d.ts +3 -0
  694. package/dist/lib/assets/icons/components/Quota.d.ts +3 -0
  695. package/dist/lib/assets/icons/components/ReceiptLong.d.ts +3 -0
  696. package/dist/lib/assets/icons/components/Refresh.d.ts +3 -0
  697. package/dist/lib/assets/icons/components/ReservedIp.d.ts +3 -0
  698. package/dist/lib/assets/icons/components/ScatterPlot.d.ts +3 -0
  699. package/dist/lib/assets/icons/components/Search.d.ts +3 -0
  700. package/dist/lib/assets/icons/components/Server.d.ts +3 -0
  701. package/dist/lib/assets/icons/components/SpendStatement.d.ts +3 -0
  702. package/dist/lib/assets/icons/components/SshKey.d.ts +3 -0
  703. package/dist/lib/assets/icons/components/Start.d.ts +3 -0
  704. package/dist/lib/assets/icons/components/TabNew.d.ts +3 -0
  705. package/dist/lib/assets/icons/components/TeamMembers.d.ts +3 -0
  706. package/dist/lib/assets/icons/components/Teams.d.ts +3 -0
  707. package/dist/lib/assets/icons/components/Updated.d.ts +3 -0
  708. package/dist/lib/assets/icons/components/Upload.d.ts +3 -0
  709. package/dist/lib/assets/icons/components/Volume.d.ts +3 -0
  710. package/dist/lib/assets/icons/components/Warning.d.ts +3 -0
  711. package/dist/lib/assets/icons/components/WarningTriangle.d.ts +3 -0
  712. package/dist/lib/assets/icons/components/Webhook.d.ts +3 -0
  713. package/dist/lib/assets/icons/components/X.d.ts +3 -0
  714. package/dist/lib/assets/icons/components/index.d.ts +116 -0
  715. package/dist/lib/assets/icons/components/types.d.ts +5 -0
  716. package/dist/lib/assets/icons/index.d.ts +1 -0
  717. package/dist/lib/components/Alert/Alert.d.ts +21 -0
  718. package/dist/lib/components/Alert/Alert.types.d.ts +43 -0
  719. package/dist/lib/components/Alert/Alert.variants.d.ts +16 -0
  720. package/dist/lib/components/AlertDialog/AlertDialog.d.ts +32 -0
  721. package/dist/lib/components/AlertDialog/AlertDialog.types.d.ts +60 -0
  722. package/dist/lib/components/AlertDialog/components/AlertDialogTrigger.d.ts +2 -0
  723. package/dist/lib/components/AlertDialog/components/AlertDialogTrigger.types.d.ts +12 -0
  724. package/dist/lib/components/AlertDialog/components/index.d.ts +1 -0
  725. package/dist/lib/components/AlertDialog/hooks/index.d.ts +1 -0
  726. package/dist/lib/components/AlertDialog/hooks/useAlertDialog.d.ts +7 -0
  727. package/dist/lib/components/Autocomplete/Autocomplete.d.ts +31 -0
  728. package/dist/lib/components/Autocomplete/Autocomplete.types.d.ts +52 -0
  729. package/dist/lib/components/Autocomplete/Autocomplete.variants.d.ts +2 -0
  730. package/dist/lib/components/Autocomplete/components/List/List.d.ts +3 -0
  731. package/dist/lib/components/Autocomplete/components/List/List.types.d.ts +13 -0
  732. package/dist/lib/components/Autocomplete/components/List/List.variants.d.ts +3 -0
  733. package/dist/lib/components/Autocomplete/components/index.d.ts +1 -0
  734. package/dist/lib/components/Autocomplete/hooks/index.d.ts +2 -0
  735. package/dist/lib/components/Autocomplete/hooks/useAutocomplete.d.ts +17 -0
  736. package/dist/lib/components/Autocomplete/hooks/useNavigationList.d.ts +10 -0
  737. package/dist/lib/components/Badge/Badge.d.ts +34 -0
  738. package/dist/lib/components/Badge/Badge.types.d.ts +36 -0
  739. package/dist/lib/components/Badge/Badge.variants.d.ts +8 -0
  740. package/dist/lib/components/Breadcrumb/Breadcrumb.d.ts +38 -0
  741. package/dist/lib/components/Breadcrumb/Breadcrumb.types.d.ts +69 -0
  742. package/dist/lib/components/Breadcrumb/Breadcrumb.variants.d.ts +2 -0
  743. package/dist/lib/components/Breadcrumb/components/BackButton/BackButton.d.ts +3 -0
  744. package/dist/lib/components/Breadcrumb/components/BackButton/BackButton.types.d.ts +7 -0
  745. package/dist/lib/components/Breadcrumb/components/BackButton/BackButton.variants.d.ts +1 -0
  746. package/dist/lib/components/Breadcrumb/components/Item/Item.d.ts +3 -0
  747. package/dist/lib/components/Breadcrumb/components/Item/Item.types.d.ts +8 -0
  748. package/dist/lib/components/Breadcrumb/components/Item/Item.variants.d.ts +6 -0
  749. package/dist/lib/components/Breadcrumb/components/index.d.ts +2 -0
  750. package/dist/lib/components/Breadcrumb/hooks/useBreadcrumb.d.ts +3 -0
  751. package/dist/lib/components/Button/Button.d.ts +33 -0
  752. package/dist/lib/components/Button/Button.types.d.ts +26 -0
  753. package/dist/lib/components/Button/Button.variants.d.ts +8 -0
  754. package/dist/lib/components/ButtonGroup/ButtonGroup.d.ts +34 -0
  755. package/dist/lib/components/ButtonGroup/ButtonGroup.types.d.ts +100 -0
  756. package/dist/lib/components/ButtonGroup/ButtonGroup.variants.d.ts +14 -0
  757. package/dist/lib/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.d.ts +3 -0
  758. package/dist/lib/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.types.d.ts +23 -0
  759. package/dist/lib/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.variants.d.ts +27 -0
  760. package/dist/lib/components/ButtonGroup/components/ButtonGroupItem/index.d.ts +2 -0
  761. package/dist/lib/components/ButtonGroup/components/ButtonGroupLabel/ButtonGroupLabel.d.ts +3 -0
  762. package/dist/lib/components/ButtonGroup/components/ButtonGroupLabel/ButtonGroupLabel.types.d.ts +8 -0
  763. package/dist/lib/components/ButtonGroup/components/ButtonGroupLabel/index.d.ts +2 -0
  764. package/dist/lib/components/ButtonGroup/components/ButtonGroupMessage/ButtonGroupMessage.d.ts +3 -0
  765. package/dist/lib/components/ButtonGroup/components/ButtonGroupMessage/ButtonGroupMessage.types.d.ts +8 -0
  766. package/dist/lib/components/ButtonGroup/components/ButtonGroupMessage/index.d.ts +2 -0
  767. package/dist/lib/components/ButtonGroup/components/index.d.ts +3 -0
  768. package/dist/lib/components/ButtonGroup/hooks/index.d.ts +2 -0
  769. package/dist/lib/components/ButtonGroup/hooks/useButtonGroup.d.ts +3 -0
  770. package/dist/lib/components/ButtonGroup/hooks/useButtonGroup.types.d.ts +18 -0
  771. package/dist/lib/components/Card/Card.d.ts +28 -0
  772. package/dist/lib/components/Card/Card.types.d.ts +27 -0
  773. package/dist/lib/components/Card/Card.variants.d.ts +8 -0
  774. package/dist/lib/components/Checkbox/Checkbox.d.ts +26 -0
  775. package/dist/lib/components/Checkbox/Checkbox.types.d.ts +41 -0
  776. package/dist/lib/components/Checkbox/Checkbox.variants.d.ts +5 -0
  777. package/dist/lib/components/Command/Command.d.ts +27 -0
  778. package/dist/lib/components/Command/Command.types.d.ts +33 -0
  779. package/dist/lib/components/Command/Command.variants.d.ts +3 -0
  780. package/dist/lib/components/Command/components/Command.d.ts +18 -0
  781. package/dist/lib/components/Command/components/CommandEmpty.d.ts +8 -0
  782. package/dist/lib/components/Command/components/CommandGroup.d.ts +12 -0
  783. package/dist/lib/components/Command/components/CommandInput.d.ts +9 -0
  784. package/dist/lib/components/Command/components/CommandItem.d.ts +14 -0
  785. package/dist/lib/components/Command/components/CommandList.d.ts +10 -0
  786. package/dist/lib/components/Command/components/CommandSeparator.d.ts +8 -0
  787. package/dist/lib/components/Command/components/CommandShortcut.d.ts +6 -0
  788. package/dist/lib/components/Command/components/DialogContent.d.ts +2 -0
  789. package/dist/lib/components/Command/components/DialogOverlay.d.ts +2 -0
  790. package/dist/lib/components/Command/components/index.d.ts +9 -0
  791. package/dist/lib/components/Command/contexts/Command.context.d.ts +2 -0
  792. package/dist/lib/components/Command/contexts/Command.provider.d.ts +2 -0
  793. package/dist/lib/components/Command/contexts/Command.types.d.ts +5 -0
  794. package/dist/lib/components/Command/contexts/index.d.ts +3 -0
  795. package/dist/lib/components/CopyButton/CopyButton.d.ts +4 -0
  796. package/dist/lib/components/CopyButton/CopyButton.types.d.ts +15 -0
  797. package/dist/lib/components/CopyButton/CopyButton.variants.d.ts +3 -0
  798. package/dist/lib/components/CopyButton/hooks/index.d.ts +1 -0
  799. package/dist/lib/components/CopyButton/hooks/useCopyToClipboard/useCopyToClipboard.d.ts +5 -0
  800. package/dist/lib/components/CopyButton/hooks/useCopyToClipboard/useCopyToClipboard.types.d.ts +5 -0
  801. package/dist/lib/components/Counter/Counter.d.ts +36 -0
  802. package/dist/lib/components/Counter/Counter.types.d.ts +57 -0
  803. package/dist/lib/components/Counter/Counter.variants.d.ts +7 -0
  804. package/dist/lib/components/DateRangePicker/DateRangePicker.d.ts +31 -0
  805. package/dist/lib/components/DateRangePicker/DateRangePicker.types.d.ts +184 -0
  806. package/dist/lib/components/DateRangePicker/DateRangePicker.variants.d.ts +8 -0
  807. package/dist/lib/components/DateRangePicker/components/CalendarPanel/CalendarPanel.d.ts +3 -0
  808. package/dist/lib/components/DateRangePicker/components/CalendarPanel/CalendarPanel.types.d.ts +79 -0
  809. package/dist/lib/components/DateRangePicker/components/CalendarPanel/CalendarPanel.variants.d.ts +8 -0
  810. package/dist/lib/components/DateRangePicker/components/CalendarPanel/components/CalendarDivider/CalendarDivider.d.ts +3 -0
  811. package/dist/lib/components/DateRangePicker/components/CalendarPanel/components/CalendarDivider/CalendarDivider.types.d.ts +3 -0
  812. package/dist/lib/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/CalendarMonth.d.ts +3 -0
  813. package/dist/lib/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/CalendarMonth.types.d.ts +17 -0
  814. package/dist/lib/components/DateRangePicker/components/CalendarPanel/components/IndependentModeCalendar/IndependentModeCalendar.d.ts +3 -0
  815. package/dist/lib/components/DateRangePicker/components/CalendarPanel/components/IndependentModeCalendar/IndependentModeCalendar.types.d.ts +34 -0
  816. package/dist/lib/components/DateRangePicker/components/CalendarPanel/components/NavigationButton/NavigationButton.d.ts +3 -0
  817. package/dist/lib/components/DateRangePicker/components/CalendarPanel/components/NavigationButton/NavigationButton.types.d.ts +12 -0
  818. package/dist/lib/components/DateRangePicker/components/CalendarPanel/components/TogetherModeCalendar/TogetherModeCalendar.d.ts +3 -0
  819. package/dist/lib/components/DateRangePicker/components/CalendarPanel/components/TogetherModeCalendar/TogetherModeCalendar.types.d.ts +26 -0
  820. package/dist/lib/components/DateRangePicker/components/CalendarPanel/components/index.d.ts +5 -0
  821. package/dist/lib/components/DateRangePicker/components/CalendarPanel/constants/dayPickerClassNames.d.ts +22 -0
  822. package/dist/lib/components/DateRangePicker/components/CalendarPanel/constants/index.d.ts +8 -0
  823. package/dist/lib/components/DateRangePicker/components/CalendarPanel/hooks/index.d.ts +4 -0
  824. package/dist/lib/components/DateRangePicker/components/CalendarPanel/hooks/useIndependentCarousel.d.ts +24 -0
  825. package/dist/lib/components/DateRangePicker/components/CalendarPanel/hooks/useTogetherCarousel.d.ts +23 -0
  826. package/dist/lib/components/DateRangePicker/components/CalendarPanel/utils/index.d.ts +16 -0
  827. package/dist/lib/components/DateRangePicker/components/DateTimeInputs/DateTimeInputs.d.ts +3 -0
  828. package/dist/lib/components/DateRangePicker/components/DateTimeInputs/DateTimeInputs.types.d.ts +38 -0
  829. package/dist/lib/components/DateRangePicker/components/DateTimeInputs/DateTimeInputs.variants.d.ts +12 -0
  830. package/dist/lib/components/DateRangePicker/components/DateTimeInputs/components/EndInputFields/EndInputFields.d.ts +3 -0
  831. package/dist/lib/components/DateRangePicker/components/DateTimeInputs/components/EndInputFields/EndInputFields.types.d.ts +28 -0
  832. package/dist/lib/components/DateRangePicker/components/DateTimeInputs/components/StartInputFields/StartInputFields.d.ts +3 -0
  833. package/dist/lib/components/DateRangePicker/components/DateTimeInputs/components/StartInputFields/StartInputFields.types.d.ts +28 -0
  834. package/dist/lib/components/DateRangePicker/components/DateTimeInputs/components/index.d.ts +2 -0
  835. package/dist/lib/components/DateRangePicker/components/DateTimeInputs/hooks/index.d.ts +1 -0
  836. package/dist/lib/components/DateRangePicker/components/DateTimeInputs/hooks/useDateTimeInputs.d.ts +27 -0
  837. package/dist/lib/components/DateRangePicker/components/PresetPanel/PresetPanel.d.ts +3 -0
  838. package/dist/lib/components/DateRangePicker/components/PresetPanel/PresetPanel.types.d.ts +35 -0
  839. package/dist/lib/components/DateRangePicker/components/PresetPanel/PresetPanel.variants.d.ts +39 -0
  840. package/dist/lib/components/DateRangePicker/components/RightPanel/RightPanel.d.ts +8 -0
  841. package/dist/lib/components/DateRangePicker/components/RightPanel/RightPanel.types.d.ts +4 -0
  842. package/dist/lib/components/DateRangePicker/components/index.d.ts +4 -0
  843. package/dist/lib/components/DateRangePicker/constants/index.d.ts +2 -0
  844. package/dist/lib/components/DateRangePicker/constants/presets/presets.d.ts +10 -0
  845. package/dist/lib/components/DateRangePicker/constants/presets/presets.types.d.ts +6 -0
  846. package/dist/lib/components/DateRangePicker/contexts/date-range-picker/date-range-picker.context.d.ts +110 -0
  847. package/dist/lib/components/DateRangePicker/contexts/date-range-picker/date-range-picker.hook.d.ts +1 -0
  848. package/dist/lib/components/DateRangePicker/contexts/date-range-picker/date-range-picker.provider.d.ts +3 -0
  849. package/dist/lib/components/DateRangePicker/contexts/date-range-picker/date-range-picker.types.d.ts +26 -0
  850. package/dist/lib/components/DateRangePicker/contexts/index.d.ts +4 -0
  851. package/dist/lib/components/DateRangePicker/utils/disabled-dates/disabled-dates.d.ts +20 -0
  852. package/dist/lib/components/DateRangePicker/utils/disabled-dates/disabled-dates.types.d.ts +7 -0
  853. package/dist/lib/components/DateRangePicker/utils/displayed-months/displayed-months.d.ts +12 -0
  854. package/dist/lib/components/DateRangePicker/utils/index.d.ts +9 -0
  855. package/dist/lib/components/DateRangePicker/utils/presets/presets.d.ts +9 -0
  856. package/dist/lib/components/DateRangePicker/utils/right-panel/right-panel.d.ts +7 -0
  857. package/dist/lib/components/DateRangePicker/utils/validation/validation.d.ts +43 -0
  858. package/dist/lib/components/Datepicker/DatePicker.d.ts +26 -0
  859. package/dist/lib/components/Datepicker/DatePicker.types.d.ts +31 -0
  860. package/dist/lib/components/Datepicker/DatePicker.variants.d.ts +1 -0
  861. package/dist/lib/components/Divider/Divider.d.ts +18 -0
  862. package/dist/lib/components/Divider/Divider.types.d.ts +4 -0
  863. package/dist/lib/components/Divider/Divider.variants.d.ts +3 -0
  864. package/dist/lib/components/Drawer/Drawer.d.ts +36 -0
  865. package/dist/lib/components/Drawer/Drawer.types.d.ts +67 -0
  866. package/dist/lib/components/Drawer/Drawer.variants.d.ts +8 -0
  867. package/dist/lib/components/Drawer/components/Body/Body.d.ts +3 -0
  868. package/dist/lib/components/Drawer/components/Body/Body.types.d.ts +7 -0
  869. package/dist/lib/components/Drawer/components/Body/index.d.ts +2 -0
  870. package/dist/lib/components/Drawer/components/Footer/Footer.d.ts +3 -0
  871. package/dist/lib/components/Drawer/components/Footer/Footer.types.d.ts +7 -0
  872. package/dist/lib/components/Drawer/components/Footer/index.d.ts +2 -0
  873. package/dist/lib/components/Drawer/components/Header/Header.d.ts +3 -0
  874. package/dist/lib/components/Drawer/components/Header/Header.types.d.ts +9 -0
  875. package/dist/lib/components/Drawer/components/Header/index.d.ts +2 -0
  876. package/dist/lib/components/Drawer/components/index.d.ts +3 -0
  877. package/dist/lib/components/Drawer/constants/index.d.ts +6 -0
  878. package/dist/lib/components/Drawer/contexts/Drawer.context.d.ts +7 -0
  879. package/dist/lib/components/Drawer/contexts/index.d.ts +2 -0
  880. package/dist/lib/components/Drawer/hooks/index.d.ts +2 -0
  881. package/dist/lib/components/Drawer/hooks/useDrawer.d.ts +2 -0
  882. package/dist/lib/components/Drawer/hooks/useDrawer.types.d.ts +30 -0
  883. package/dist/lib/components/DropdownButton/DropdownButton.d.ts +19 -0
  884. package/dist/lib/components/DropdownButton/DropdownButton.types.d.ts +38 -0
  885. package/dist/lib/components/Filter/Filter.d.ts +26 -0
  886. package/dist/lib/components/Filter/Filter.types.d.ts +68 -0
  887. package/dist/lib/components/Filter/Filter.variants.d.ts +3 -0
  888. package/dist/lib/components/Filter/components/BadgeDropdown/BadgeMultiSelect.d.ts +3 -0
  889. package/dist/lib/components/Filter/components/BadgeDropdown/BadgeMultiSelect.types.d.ts +13 -0
  890. package/dist/lib/components/Filter/components/BadgeDropdown/hooks/index.d.ts +1 -0
  891. package/dist/lib/components/Filter/components/BadgeDropdown/hooks/useBadgeMultiSelect/useBadgeMultiSelect.d.ts +13 -0
  892. package/dist/lib/components/Filter/components/CustomDateRangeFilterDropdown/CustomDateRangeFilterDropdown.d.ts +3 -0
  893. package/dist/lib/components/Filter/components/CustomDateRangeFilterDropdown/CustomDateRangeFilterDropdown.types.d.ts +55 -0
  894. package/dist/lib/components/Filter/components/CustomDateRangeFilterDropdown/components/Actions/Actions.d.ts +2 -0
  895. package/dist/lib/components/Filter/components/CustomDateRangeFilterDropdown/components/PanelActions/PanelActions.d.ts +2 -0
  896. package/dist/lib/components/Filter/components/CustomDateRangeFilterDropdown/components/Picker/Picker.d.ts +2 -0
  897. package/dist/lib/components/Filter/components/CustomDateRangeFilterDropdown/components/Trigger/Trigger.d.ts +2 -0
  898. package/dist/lib/components/Filter/components/CustomDateRangeFilterDropdown/components/Wrapper/Wrapper.d.ts +2 -0
  899. package/dist/lib/components/Filter/components/CustomDateRangeFilterDropdown/components/index.d.ts +1 -0
  900. package/dist/lib/components/Filter/components/CustomDateRangeFilterDropdown/constants/index.d.ts +2 -0
  901. package/dist/lib/components/Filter/components/CustomDateRangeFilterDropdown/constants/presets/presets.d.ts +4 -0
  902. package/dist/lib/components/Filter/components/CustomDateRangeFilterDropdown/constants/presets/presets.types.d.ts +9 -0
  903. package/dist/lib/components/Filter/components/CustomDateRangeFilterDropdown/contexts/custom-date-range-filter-dropdown/custom-date-range-filter-dropdown.context.d.ts +2 -0
  904. package/dist/lib/components/Filter/components/CustomDateRangeFilterDropdown/contexts/custom-date-range-filter-dropdown/custom-date-range-filter-dropdown.hook.d.ts +1 -0
  905. package/dist/lib/components/Filter/components/CustomDateRangeFilterDropdown/contexts/custom-date-range-filter-dropdown/custom-date-range-filter-dropdown.provider.d.ts +3 -0
  906. package/dist/lib/components/Filter/components/CustomDateRangeFilterDropdown/contexts/custom-date-range-filter-dropdown/custom-date-range-filter-dropdown.types.d.ts +28 -0
  907. package/dist/lib/components/Filter/components/CustomDateRangeFilterDropdown/contexts/index.d.ts +2 -0
  908. package/dist/lib/components/Filter/components/CustomDateRangeFilterDropdown/hooks/index.d.ts +9 -0
  909. package/dist/lib/components/Filter/components/CustomDateRangeFilterDropdown/hooks/useAppliedDateRange/useAppliedDateRange.d.ts +7 -0
  910. package/dist/lib/components/Filter/components/CustomDateRangeFilterDropdown/hooks/useAppliedDateRange/useAppliedDateRange.types.d.ts +5 -0
  911. package/dist/lib/components/Filter/components/CustomDateRangeFilterDropdown/hooks/useCalendarVisibility/useCalendarVisibility.d.ts +10 -0
  912. package/dist/lib/components/Filter/components/CustomDateRangeFilterDropdown/hooks/useCalendarVisibility/useCalendarVisibility.types.d.ts +4 -0
  913. package/dist/lib/components/Filter/components/CustomDateRangeFilterDropdown/hooks/useDateRangeSelection/useDateRangeSelection.d.ts +8 -0
  914. package/dist/lib/components/Filter/components/CustomDateRangeFilterDropdown/hooks/useDateRangeSelection/useDateRangeSelection.types.d.ts +4 -0
  915. package/dist/lib/components/Filter/components/CustomDateRangeFilterDropdown/hooks/useFilterDropdownOpenState/useFilterDropdownOpenState.d.ts +6 -0
  916. package/dist/lib/components/Filter/components/CustomDateRangeFilterDropdown/hooks/useFormattedDateRange/useFormattedDateRange.d.ts +11 -0
  917. package/dist/lib/components/Filter/components/CustomDateRangeFilterDropdown/hooks/useFormattedDateRange/useFormattedDateRange.types.d.ts +5 -0
  918. package/dist/lib/components/Filter/components/CustomDateRangeFilterDropdown/hooks/usePendingDateRange/usePendingDateRange.d.ts +5 -0
  919. package/dist/lib/components/Filter/components/CustomDateRangeFilterDropdown/hooks/usePendingDateRange/usePendingDateRange.types.d.ts +5 -0
  920. package/dist/lib/components/Filter/components/CustomDateRangeFilterDropdown/hooks/usePresetOptions/usePresetOptions.d.ts +2 -0
  921. package/dist/lib/components/Filter/components/CustomDateRangeFilterDropdown/hooks/usePresetOptions/usePresetOptions.types.d.ts +6 -0
  922. package/dist/lib/components/Filter/components/CustomDateRangeFilterDropdown/hooks/useResetKey/useResetKey.d.ts +1 -0
  923. package/dist/lib/components/Filter/components/CustomDateRangeFilterDropdown/hooks/useSelectedPreset/useSelectedPreset.d.ts +10 -0
  924. package/dist/lib/components/Filter/components/CustomDateRangeFilterDropdown/hooks/useSelectedPreset/useSelectedPreset.types.d.ts +4 -0
  925. package/dist/lib/components/Filter/components/CustomDateRangeFilterDropdown/utils/duration/duration.d.ts +4 -0
  926. package/dist/lib/components/Filter/components/CustomDateRangeFilterDropdown/utils/duration/duration.types.d.ts +5 -0
  927. package/dist/lib/components/Filter/components/CustomDateRangeFilterDropdown/utils/index.d.ts +3 -0
  928. package/dist/lib/components/Filter/components/CustomDateRangeFilterDropdown/utils/whole-days/whole-days.d.ts +2 -0
  929. package/dist/lib/components/Filter/components/DateFilterDropdown/DateFilterDropdown.d.ts +3 -0
  930. package/dist/lib/components/Filter/components/DateFilterDropdown/DateFilterDropdown.types.d.ts +7 -0
  931. package/dist/lib/components/Filter/components/DateFilterDropdown/hooks/index.d.ts +1 -0
  932. package/dist/lib/components/Filter/components/DateFilterDropdown/hooks/useDateFilterDropdown/useDateFilterDropdown.d.ts +11 -0
  933. package/dist/lib/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.d.ts +3 -0
  934. package/dist/lib/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.types.d.ts +25 -0
  935. package/dist/lib/components/Filter/components/DateRangeFilterDropdown/hooks/index.d.ts +1 -0
  936. package/dist/lib/components/Filter/components/DateRangeFilterDropdown/hooks/useDateRangeFilterDropdown/useDateRangeFilterDropdown.d.ts +12 -0
  937. package/dist/lib/components/Filter/components/FilterDropdown/FilterDropdown.d.ts +3 -0
  938. package/dist/lib/components/Filter/components/FilterDropdown/FilterDropdown.types.d.ts +9 -0
  939. package/dist/lib/components/Filter/components/ResetButton/ResetButton.d.ts +3 -0
  940. package/dist/lib/components/Filter/components/ResetButton/ResetButton.types.d.ts +5 -0
  941. package/dist/lib/components/Filter/components/TextMultiSelect/TextMultiSelect.d.ts +3 -0
  942. package/dist/lib/components/Filter/components/TextMultiSelect/TextMultiSelect.types.d.ts +9 -0
  943. package/dist/lib/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.d.ts +3 -0
  944. package/dist/lib/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.types.d.ts +13 -0
  945. package/dist/lib/components/Filter/components/TimeFilterDropdown/hooks/index.d.ts +1 -0
  946. package/dist/lib/components/Filter/components/TimeFilterDropdown/hooks/useTimeFilterDropdown/useTimeFilterDropdown.d.ts +13 -0
  947. package/dist/lib/components/Filter/components/index.d.ts +14 -0
  948. package/dist/lib/components/Filter/contexts/filter.context.d.ts +6 -0
  949. package/dist/lib/components/Filter/contexts/filter.hook.d.ts +2 -0
  950. package/dist/lib/components/Filter/contexts/filter.provider.d.ts +5 -0
  951. package/dist/lib/components/Filter/contexts/index.d.ts +3 -0
  952. package/dist/lib/components/Filter/events/index.d.ts +14 -0
  953. package/dist/lib/components/Filter/hooks/index.d.ts +1 -0
  954. package/dist/lib/components/Filter/hooks/useFilterDropdownSync.d.ts +2 -0
  955. package/dist/lib/components/Filter/hooks/useFilterDropdownSync.types.d.ts +5 -0
  956. package/dist/lib/components/Filter/utils/index.d.ts +1 -0
  957. package/dist/lib/components/ImageUpload/ImageUpload.d.ts +25 -0
  958. package/dist/lib/components/ImageUpload/ImageUpload.types.d.ts +71 -0
  959. package/dist/lib/components/ImageUpload/ImageUpload.variants.d.ts +13 -0
  960. package/dist/lib/components/Input/Input.d.ts +35 -0
  961. package/dist/lib/components/Input/Input.types.d.ts +42 -0
  962. package/dist/lib/components/Input/Input.variants.d.ts +3 -0
  963. package/dist/lib/components/LineChart/LineChart.d.ts +17 -0
  964. package/dist/lib/components/LineChart/LineChart.types.d.ts +58 -0
  965. package/dist/lib/components/Loading/Loading.d.ts +24 -0
  966. package/dist/lib/components/Loading/Loading.types.d.ts +19 -0
  967. package/dist/lib/components/Loading/Loading.variants.d.ts +1 -0
  968. package/dist/lib/components/Modal/Modal.d.ts +34 -0
  969. package/dist/lib/components/Modal/Modal.types.d.ts +50 -0
  970. package/dist/lib/components/Modal/components/Body/Body.d.ts +3 -0
  971. package/dist/lib/components/Modal/components/Body/Body.types.d.ts +5 -0
  972. package/dist/lib/components/Modal/components/Footer/Footer.d.ts +3 -0
  973. package/dist/lib/components/Modal/components/Footer/Footer.types.d.ts +5 -0
  974. package/dist/lib/components/Modal/components/Header/Header.d.ts +3 -0
  975. package/dist/lib/components/Modal/components/Header/Header.types.d.ts +5 -0
  976. package/dist/lib/components/Modal/components/Wrapper/Wrapper.d.ts +3 -0
  977. package/dist/lib/components/Modal/components/Wrapper/Wrapper.types.d.ts +14 -0
  978. package/dist/lib/components/Modal/components/Wrapper/Wrapper.variants.d.ts +2 -0
  979. package/dist/lib/components/Modal/components/index.d.ts +4 -0
  980. package/dist/lib/components/Modal/contexts/Modal.context.d.ts +2 -0
  981. package/dist/lib/components/Modal/contexts/Modal.provider.d.ts +4 -0
  982. package/dist/lib/components/Modal/contexts/Modal.types.d.ts +9 -0
  983. package/dist/lib/components/Modal/contexts/index.d.ts +1 -0
  984. package/dist/lib/components/Modal/hooks/index.d.ts +1 -0
  985. package/dist/lib/components/Modal/hooks/useModal.d.ts +9 -0
  986. package/dist/lib/components/MultiSelectDropdown/MultiSelectDropdown.d.ts +23 -0
  987. package/dist/lib/components/MultiSelectDropdown/MultiSelectDropdown.types.d.ts +80 -0
  988. package/dist/lib/components/MultiSelectDropdown/MultiSelectDropdown.variants.d.ts +3 -0
  989. package/dist/lib/components/MultiSelectDropdown/components/Item/Item.d.ts +3 -0
  990. package/dist/lib/components/MultiSelectDropdown/components/Item/Item.types.d.ts +8 -0
  991. package/dist/lib/components/MultiSelectDropdown/components/Item/Item.variants.d.ts +3 -0
  992. package/dist/lib/components/MultiSelectDropdown/components/List/List.d.ts +3 -0
  993. package/dist/lib/components/MultiSelectDropdown/components/List/List.types.d.ts +4 -0
  994. package/dist/lib/components/MultiSelectDropdown/components/List/List.variants.d.ts +1 -0
  995. package/dist/lib/components/MultiSelectDropdown/components/Wrapper/Wrapper.d.ts +3 -0
  996. package/dist/lib/components/MultiSelectDropdown/components/Wrapper/Wrapper.types.d.ts +7 -0
  997. package/dist/lib/components/MultiSelectDropdown/components/index.d.ts +3 -0
  998. package/dist/lib/components/MultiSelectDropdown/contexts/MultiSelectDropdown.context.d.ts +2 -0
  999. package/dist/lib/components/MultiSelectDropdown/contexts/MultiSelectDropdown.hook.d.ts +1 -0
  1000. package/dist/lib/components/MultiSelectDropdown/contexts/MultiSelectDropdown.provider.d.ts +3 -0
  1001. package/dist/lib/components/MultiSelectDropdown/contexts/MultiSelectDropdown.types.d.ts +33 -0
  1002. package/dist/lib/components/MultiSelectDropdown/contexts/index.d.ts +2 -0
  1003. package/dist/lib/components/MultiSelectDropdown/hooks/useMultiSelectDropdown.d.ts +4 -0
  1004. package/dist/lib/components/PhoneNumberInput/PhoneNumberInput.d.ts +21 -0
  1005. package/dist/lib/components/PhoneNumberInput/PhoneNumberInput.types.d.ts +51 -0
  1006. package/dist/lib/components/PhoneNumberInput/PhoneNumberInput.variants.d.ts +4 -0
  1007. package/dist/lib/components/PhoneNumberInput/components/FlagContent/FlagContent.d.ts +2 -0
  1008. package/dist/lib/components/PhoneNumberInput/components/FlagSelectorList/FlagSelectorList.d.ts +3 -0
  1009. package/dist/lib/components/PhoneNumberInput/components/FlagSelectorList/FlagSelectorList.types.d.ts +5 -0
  1010. package/dist/lib/components/PhoneNumberInput/components/FlagSelectorWrapper/FlagSelectorWrapper.d.ts +3 -0
  1011. package/dist/lib/components/PhoneNumberInput/components/FlagSelectorWrapper/FlagSelectorWrapper.types.d.ts +8 -0
  1012. package/dist/lib/components/PhoneNumberInput/components/TruncateText/TruncateText.d.ts +3 -0
  1013. package/dist/lib/components/PhoneNumberInput/components/TruncateText/TruncateText.types.d.ts +4 -0
  1014. package/dist/lib/components/PhoneNumberInput/components/Wrapper.d.ts +3 -0
  1015. package/dist/lib/components/PhoneNumberInput/components/index.d.ts +2 -0
  1016. package/dist/lib/components/PhoneNumberInput/contexts/index.d.ts +3 -0
  1017. package/dist/lib/components/PhoneNumberInput/contexts/phone-number.context.d.ts +20 -0
  1018. package/dist/lib/components/PhoneNumberInput/contexts/phone-number.hook.d.ts +2 -0
  1019. package/dist/lib/components/PhoneNumberInput/contexts/phone-number.provider.d.ts +6 -0
  1020. package/dist/lib/components/PhoneNumberInput/utils/index.d.ts +2 -0
  1021. package/dist/lib/components/PieChart/PieChart.d.ts +20 -0
  1022. package/dist/lib/components/PieChart/PieChart.types.d.ts +90 -0
  1023. package/dist/lib/components/ProgressBar/ProgressBar.d.ts +3 -0
  1024. package/dist/lib/components/ProgressBar/ProgressBar.types.d.ts +24 -0
  1025. package/dist/lib/components/ProgressBar/ProgressBar.variants.d.ts +4 -0
  1026. package/dist/lib/components/Radio/Radio.d.ts +22 -0
  1027. package/dist/lib/components/Radio/Radio.types.d.ts +46 -0
  1028. package/dist/lib/components/Radio/Radio.variants.d.ts +8 -0
  1029. package/dist/lib/components/RadioCard/RadioCard.d.ts +22 -0
  1030. package/dist/lib/components/RadioCard/RadioCard.types.d.ts +25 -0
  1031. package/dist/lib/components/RadioCard/RadioCard.variants.d.ts +1 -0
  1032. package/dist/lib/components/RadioCardGroup/RadioCardGroup.d.ts +23 -0
  1033. package/dist/lib/components/RadioCardGroup/RadioCardGroup.types.d.ts +32 -0
  1034. package/dist/lib/components/RadioCardGroup/RadioCardGroup.variants.d.ts +3 -0
  1035. package/dist/lib/components/RadioGroup/RadioGroup.d.ts +34 -0
  1036. package/dist/lib/components/RadioGroup/RadioGroup.types.d.ts +46 -0
  1037. package/dist/lib/components/RadioGroup/RadioGroup.variants.d.ts +3 -0
  1038. package/dist/lib/components/Range/Range.d.ts +21 -0
  1039. package/dist/lib/components/Range/Range.types.d.ts +44 -0
  1040. package/dist/lib/components/Range/Range.variants.d.ts +8 -0
  1041. package/dist/lib/components/Select/Select.d.ts +37 -0
  1042. package/dist/lib/components/Select/Select.types.d.ts +145 -0
  1043. package/dist/lib/components/Select/Select.variants.d.ts +6 -0
  1044. package/dist/lib/components/Select/components/AdditionalOptions/AdditionalOptions.d.ts +3 -0
  1045. package/dist/lib/components/Select/components/AdditionalOptions/AdditionalOptions.types.d.ts +4 -0
  1046. package/dist/lib/components/Select/components/AdditionalOptions/AdditionalOptions.variants.d.ts +1 -0
  1047. package/dist/lib/components/Select/components/EmptyList.d.ts +2 -0
  1048. package/dist/lib/components/Select/components/List/List.d.ts +3 -0
  1049. package/dist/lib/components/Select/components/List/List.types.d.ts +19 -0
  1050. package/dist/lib/components/Select/components/List/List.variants.d.ts +2 -0
  1051. package/dist/lib/components/Select/components/ListItem/ListItem.d.ts +3 -0
  1052. package/dist/lib/components/Select/components/ListItem/ListItem.types.d.ts +9 -0
  1053. package/dist/lib/components/Select/components/ListItem/ListItem.variants.d.ts +1 -0
  1054. package/dist/lib/components/Select/components/Wrapper.d.ts +7 -0
  1055. package/dist/lib/components/Select/components/index.d.ts +4 -0
  1056. package/dist/lib/components/Select/constants/index.d.ts +2 -0
  1057. package/dist/lib/components/Select/constants/list.d.ts +1 -0
  1058. package/dist/lib/components/Select/constants/pagination.d.ts +1 -0
  1059. package/dist/lib/components/Select/contexts/index.d.ts +2 -0
  1060. package/dist/lib/components/Select/contexts/select.context.d.ts +21 -0
  1061. package/dist/lib/components/Select/contexts/select.hook.d.ts +2 -0
  1062. package/dist/lib/components/Select/contexts/select.provider.d.ts +11 -0
  1063. package/dist/lib/components/Select/hooks/useNavigationList.d.ts +11 -0
  1064. package/dist/lib/components/Select/hooks/useSelect.d.ts +16 -0
  1065. package/dist/lib/components/Sidebar/Sidebar.d.ts +28 -0
  1066. package/dist/lib/components/Sidebar/Sidebar.types.d.ts +132 -0
  1067. package/dist/lib/components/Sidebar/Sidebar.variants.d.ts +4 -0
  1068. package/dist/lib/components/Sidebar/components/CollapseTrigger/CollapseTrigger.d.ts +4 -0
  1069. package/dist/lib/components/Sidebar/components/CollapseTrigger/CollapseTrigger.types.d.ts +4 -0
  1070. package/dist/lib/components/Sidebar/components/CollapseTrigger/CollapseTrigger.variants.d.ts +1 -0
  1071. package/dist/lib/components/Sidebar/components/Footer/Footer.d.ts +4 -0
  1072. package/dist/lib/components/Sidebar/components/Footer/Footer.types.d.ts +8 -0
  1073. package/dist/lib/components/Sidebar/components/Footer/Footer.variants.d.ts +1 -0
  1074. package/dist/lib/components/Sidebar/components/HamburgerTrigger/HamburgerTrigger.d.ts +4 -0
  1075. package/dist/lib/components/Sidebar/components/HamburgerTrigger/HamburgerTrigger.types.d.ts +9 -0
  1076. package/dist/lib/components/Sidebar/components/HamburgerTrigger/HamburgerTrigger.variants.d.ts +1 -0
  1077. package/dist/lib/components/Sidebar/components/Label/Label.d.ts +4 -0
  1078. package/dist/lib/components/Sidebar/components/Label/Label.types.d.ts +9 -0
  1079. package/dist/lib/components/Sidebar/components/Logo/Logo.d.ts +4 -0
  1080. package/dist/lib/components/Sidebar/components/Logo/Logo.types.d.ts +16 -0
  1081. package/dist/lib/components/Sidebar/components/Logo/Logo.variants.d.ts +3 -0
  1082. package/dist/lib/components/Sidebar/components/Navigation/Navigation.d.ts +4 -0
  1083. package/dist/lib/components/Sidebar/components/Navigation/Navigation.types.d.ts +18 -0
  1084. package/dist/lib/components/Sidebar/components/Navigation/Navigation.variants.d.ts +1 -0
  1085. package/dist/lib/components/Sidebar/components/NavigationGroup/NavigationGroup.d.ts +4 -0
  1086. package/dist/lib/components/Sidebar/components/NavigationGroup/NavigationGroup.types.d.ts +10 -0
  1087. package/dist/lib/components/Sidebar/components/NavigationGroup/NavigationGroup.variants.d.ts +1 -0
  1088. package/dist/lib/components/Sidebar/components/NavigationOption/NavigationOption.context.d.ts +18 -0
  1089. package/dist/lib/components/Sidebar/components/NavigationOption/NavigationOption.d.ts +4 -0
  1090. package/dist/lib/components/Sidebar/components/NavigationOption/NavigationOption.types.d.ts +50 -0
  1091. package/dist/lib/components/Sidebar/components/NavigationOption/NavigationOption.variants.d.ts +3 -0
  1092. package/dist/lib/components/Sidebar/components/NavigationSeparator/NavigationSeparator.d.ts +4 -0
  1093. package/dist/lib/components/Sidebar/components/NavigationSeparator/NavigationSeparator.types.d.ts +7 -0
  1094. package/dist/lib/components/Sidebar/components/NavigationSeparator/NavigationSeparator.variants.d.ts +1 -0
  1095. package/dist/lib/components/Sidebar/components/NavigationTitle/NavigationTitle.d.ts +4 -0
  1096. package/dist/lib/components/Sidebar/components/NavigationTitle/NavigationTitle.types.d.ts +10 -0
  1097. package/dist/lib/components/Sidebar/components/NavigationTitle/NavigationTitle.variants.d.ts +1 -0
  1098. package/dist/lib/components/Sidebar/components/Wrapper/Wrapper.d.ts +4 -0
  1099. package/dist/lib/components/Sidebar/components/index.d.ts +21 -0
  1100. package/dist/lib/components/Sidebar/contexts/SidebarContext.d.ts +28 -0
  1101. package/dist/lib/components/Sidebar/contexts/index.d.ts +1 -0
  1102. package/dist/lib/components/Sidebar/hooks/index.d.ts +1 -0
  1103. package/dist/lib/components/Sidebar/hooks/useSidebarMode.d.ts +5 -0
  1104. package/dist/lib/components/Slider/Slider.d.ts +21 -0
  1105. package/dist/lib/components/Slider/Slider.types.d.ts +44 -0
  1106. package/dist/lib/components/Slider/Slider.variants.d.ts +7 -0
  1107. package/dist/lib/components/Spinner/Spinner.d.ts +4 -0
  1108. package/dist/lib/components/Spinner/Spinner.types.d.ts +15 -0
  1109. package/dist/lib/components/Spinner/Spinner.variants.d.ts +6 -0
  1110. package/dist/lib/components/Stepper/Stepper.d.ts +51 -0
  1111. package/dist/lib/components/Stepper/Stepper.types.d.ts +75 -0
  1112. package/dist/lib/components/Stepper/Stepper.variants.d.ts +40 -0
  1113. package/dist/lib/components/Stepper/components/HorizontalStepItem/HorizontalStepItem.d.ts +2 -0
  1114. package/dist/lib/components/Stepper/components/HorizontalStepItem/HorizontalStepItem.types.d.ts +1 -0
  1115. package/dist/lib/components/Stepper/components/StepConnector/StepConnector.d.ts +2 -0
  1116. package/dist/lib/components/Stepper/components/StepConnector/StepConnector.types.d.ts +13 -0
  1117. package/dist/lib/components/Stepper/components/StepIndicatorContent/StepIndicatorContent.d.ts +2 -0
  1118. package/dist/lib/components/Stepper/components/StepIndicatorContent/StepIndicatorContent.types.d.ts +13 -0
  1119. package/dist/lib/components/Stepper/components/StepItem/StepItem.d.ts +2 -0
  1120. package/dist/lib/components/Stepper/components/StepItem/StepItem.types.d.ts +32 -0
  1121. package/dist/lib/components/Stepper/components/VerticalStepItem/VerticalStepItem.d.ts +2 -0
  1122. package/dist/lib/components/Stepper/components/VerticalStepItem/VerticalStepItem.types.d.ts +1 -0
  1123. package/dist/lib/components/Stepper/constants/index.d.ts +3 -0
  1124. package/dist/lib/components/Stepper/hooks/index.d.ts +1 -0
  1125. package/dist/lib/components/Stepper/hooks/useStepItemLogic.d.ts +2 -0
  1126. package/dist/lib/components/Stepper/hooks/useStepItemLogic.types.d.ts +16 -0
  1127. package/dist/lib/components/Stepper/utils/index.d.ts +3 -0
  1128. package/dist/lib/components/Switch/Switch.d.ts +29 -0
  1129. package/dist/lib/components/Switch/Switch.types.d.ts +45 -0
  1130. package/dist/lib/components/Switch/Switch.variants.d.ts +4 -0
  1131. package/dist/lib/components/Table/Table.d.ts +38 -0
  1132. package/dist/lib/components/Table/Table.types.d.ts +59 -0
  1133. package/dist/lib/components/Table/Table.variants.d.ts +6 -0
  1134. package/dist/lib/components/Table/components/Body.d.ts +3 -0
  1135. package/dist/lib/components/Table/components/Filter.d.ts +3 -0
  1136. package/dist/lib/components/Table/components/Head.d.ts +3 -0
  1137. package/dist/lib/components/Table/components/Row.d.ts +3 -0
  1138. package/dist/lib/components/Table/components/index.d.ts +4 -0
  1139. package/dist/lib/components/Tabs/Tabs.d.ts +37 -0
  1140. package/dist/lib/components/Tabs/Tabs.types.d.ts +44 -0
  1141. package/dist/lib/components/Tabs/Tabs.variants.d.ts +12 -0
  1142. package/dist/lib/components/Tabs/components/Content.d.ts +4 -0
  1143. package/dist/lib/components/Tabs/components/List.d.ts +4 -0
  1144. package/dist/lib/components/Tabs/components/Trigger.d.ts +4 -0
  1145. package/dist/lib/components/Tabs/components/index.d.ts +3 -0
  1146. package/dist/lib/components/Tag/Tag.d.ts +16 -0
  1147. package/dist/lib/components/Tag/Tag.types.d.ts +36 -0
  1148. package/dist/lib/components/Tag/Tag.variants.d.ts +3 -0
  1149. package/dist/lib/components/TagSelect/TagSelect.d.ts +23 -0
  1150. package/dist/lib/components/TagSelect/TagSelect.types.d.ts +41 -0
  1151. package/dist/lib/components/TagSelect/TagSelect.variants.d.ts +3 -0
  1152. package/dist/lib/components/TagSelect/components/Item/Item.d.ts +3 -0
  1153. package/dist/lib/components/TagSelect/components/Item/Item.types.d.ts +6 -0
  1154. package/dist/lib/components/TagSelect/components/Item/Item.variants.d.ts +3 -0
  1155. package/dist/lib/components/TagSelect/components/List/List.d.ts +3 -0
  1156. package/dist/lib/components/TagSelect/components/List/List.types.d.ts +4 -0
  1157. package/dist/lib/components/TagSelect/components/List/List.variants.d.ts +1 -0
  1158. package/dist/lib/components/TagSelect/components/Wrapper/Wrapper.d.ts +3 -0
  1159. package/dist/lib/components/TagSelect/components/Wrapper/Wrapper.types.d.ts +7 -0
  1160. package/dist/lib/components/TagSelect/components/index.d.ts +3 -0
  1161. package/dist/lib/components/TagSelect/contexts/TagSelect.context.d.ts +2 -0
  1162. package/dist/lib/components/TagSelect/contexts/TagSelect.hook.d.ts +1 -0
  1163. package/dist/lib/components/TagSelect/contexts/TagSelect.provider.d.ts +3 -0
  1164. package/dist/lib/components/TagSelect/contexts/TagSelect.types.d.ts +15 -0
  1165. package/dist/lib/components/TagSelect/contexts/index.d.ts +2 -0
  1166. package/dist/lib/components/TagSelect/hooks/useTagSelect.d.ts +4 -0
  1167. package/dist/lib/components/TextArea/TextArea.d.ts +30 -0
  1168. package/dist/lib/components/TextArea/TextArea.types.d.ts +41 -0
  1169. package/dist/lib/components/TextArea/TextArea.variants.d.ts +4 -0
  1170. package/dist/lib/components/TimePicker/TimePicker.d.ts +21 -0
  1171. package/dist/lib/components/TimePicker/TimePicker.types.d.ts +59 -0
  1172. package/dist/lib/components/TimePicker/TimePicker.variants.d.ts +4 -0
  1173. package/dist/lib/components/TimePicker/components/HoursList/HoursList.d.ts +4 -0
  1174. package/dist/lib/components/TimePicker/components/HoursList/HoursList.types.d.ts +8 -0
  1175. package/dist/lib/components/TimePicker/components/MeridianList/MeridianList.d.ts +4 -0
  1176. package/dist/lib/components/TimePicker/components/MeridianList/MeridianList.types.d.ts +7 -0
  1177. package/dist/lib/components/TimePicker/components/MinutesList/MinutesList.d.ts +4 -0
  1178. package/dist/lib/components/TimePicker/components/MinutesList/MinutesList.types.d.ts +9 -0
  1179. package/dist/lib/components/TimePicker/components/Wrapper/Wrapper.d.ts +3 -0
  1180. package/dist/lib/components/TimePicker/components/Wrapper/Wrapper.types.d.ts +6 -0
  1181. package/dist/lib/components/TimePicker/components/WrapperList/WrapperList.d.ts +3 -0
  1182. package/dist/lib/components/TimePicker/components/WrapperList/WrapperList.types.d.ts +10 -0
  1183. package/dist/lib/components/TimePicker/components/index.d.ts +1 -0
  1184. package/dist/lib/components/TimePicker/contexts/index.d.ts +3 -0
  1185. package/dist/lib/components/TimePicker/contexts/time-picker.context.d.ts +15 -0
  1186. package/dist/lib/components/TimePicker/contexts/time-picker.hook.d.ts +2 -0
  1187. package/dist/lib/components/TimePicker/contexts/time-picker.provider.d.ts +7 -0
  1188. package/dist/lib/components/TimePicker/utils/index.d.ts +8 -0
  1189. package/dist/lib/components/Toast/Toast.d.ts +30 -0
  1190. package/dist/lib/components/Toast/Toast.types.d.ts +75 -0
  1191. package/dist/lib/components/Toast/Toast.variants.d.ts +16 -0
  1192. package/dist/lib/components/Toast/ToastProvider.d.ts +11 -0
  1193. package/dist/lib/components/Toast/ToastProvider.types.d.ts +17 -0
  1194. package/dist/lib/components/Toast/components/ToastCard/ToastCard.d.ts +3 -0
  1195. package/dist/lib/components/Toast/components/ToastCard/ToastCard.types.d.ts +17 -0
  1196. package/dist/lib/components/Toast/components/index.d.ts +1 -0
  1197. package/dist/lib/components/Toast/constants/index.d.ts +25 -0
  1198. package/dist/lib/components/Toast/contexts/index.d.ts +1 -0
  1199. package/dist/lib/components/Toast/contexts/toast-store.context.d.ts +2 -0
  1200. package/dist/lib/components/Toast/hooks/index.d.ts +6 -0
  1201. package/dist/lib/components/Toast/hooks/useStackExpansion/useStackExpansion.d.ts +2 -0
  1202. package/dist/lib/components/Toast/hooks/useStackExpansion/useStackExpansion.types.d.ts +6 -0
  1203. package/dist/lib/components/Toast/hooks/useToast/useToast.d.ts +2 -0
  1204. package/dist/lib/components/Toast/hooks/useToastHeights/useToastHeights.d.ts +2 -0
  1205. package/dist/lib/components/Toast/hooks/useToastHeights/useToastHeights.types.d.ts +6 -0
  1206. package/dist/lib/components/Toast/hooks/useToastSource/useToastSource.d.ts +2 -0
  1207. package/dist/lib/components/Toast/hooks/useToastSource/useToastSource.types.d.ts +11 -0
  1208. package/dist/lib/components/Toast/hooks/useToastStore/useToastStore.d.ts +3 -0
  1209. package/dist/lib/components/Toast/hooks/useToastTimer/useToastTimer.d.ts +2 -0
  1210. package/dist/lib/components/Toast/hooks/useToastTimer/useToastTimer.types.d.ts +7 -0
  1211. package/dist/lib/components/Toast/store/create-toast-store.d.ts +2 -0
  1212. package/dist/lib/components/Toast/store/create-toast-store.types.d.ts +24 -0
  1213. package/dist/lib/components/Toast/store/default-toast-store.d.ts +1 -0
  1214. package/dist/lib/components/Toast/store/index.d.ts +2 -0
  1215. package/dist/lib/components/Toast/utils/compute-stack-layout/compute-stack-layout.d.ts +2 -0
  1216. package/dist/lib/components/Toast/utils/compute-stack-layout/compute-stack-layout.types.d.ts +12 -0
  1217. package/dist/lib/components/Toast/utils/index.d.ts +1 -0
  1218. package/dist/lib/components/Tooltip/Tooltip.d.ts +22 -0
  1219. package/dist/lib/components/Tooltip/Tooltip.types.d.ts +41 -0
  1220. package/dist/lib/components/Typography/Typography.d.ts +18 -0
  1221. package/dist/lib/components/Typography/Typography.types.d.ts +31 -0
  1222. package/dist/lib/components/Typography/Typography.variants.d.ts +3 -0
  1223. package/dist/lib/components/VirtualizedTable/VirtualizedTable.d.ts +18 -0
  1224. package/dist/lib/components/VirtualizedTable/VirtualizedTable.types.d.ts +261 -0
  1225. package/dist/lib/components/VirtualizedTable/VirtualizedTable.variants.d.ts +1 -0
  1226. package/dist/lib/components/VirtualizedTable/assets/chevron-down.d.ts +6 -0
  1227. package/dist/lib/components/VirtualizedTable/assets/chevron-up.d.ts +6 -0
  1228. package/dist/lib/components/VirtualizedTable/assets/index.d.ts +3 -0
  1229. package/dist/lib/components/VirtualizedTable/components/Actions/Actions.d.ts +3 -0
  1230. package/dist/lib/components/VirtualizedTable/components/Actions/Actions.types.d.ts +25 -0
  1231. package/dist/lib/components/VirtualizedTable/components/Actions/Actions.variants.d.ts +5 -0
  1232. package/dist/lib/components/VirtualizedTable/components/Actions/components/ActionsList/ActionsList.d.ts +3 -0
  1233. package/dist/lib/components/VirtualizedTable/components/Actions/components/ActionsList/ActionsList.types.d.ts +9 -0
  1234. package/dist/lib/components/VirtualizedTable/components/Actions/components/ActionsTrigger/ActionsTrigger.d.ts +4 -0
  1235. package/dist/lib/components/VirtualizedTable/components/Actions/components/ActionsTrigger/ActionsTrigger.types.d.ts +6 -0
  1236. package/dist/lib/components/VirtualizedTable/components/Actions/components/InlineActions/InlineActions.d.ts +3 -0
  1237. package/dist/lib/components/VirtualizedTable/components/Actions/components/InlineActions/constants/index.d.ts +2 -0
  1238. package/dist/lib/components/VirtualizedTable/components/Actions/components/PortalActions/PortalActions.d.ts +3 -0
  1239. package/dist/lib/components/VirtualizedTable/components/Actions/components/PortalActions/constants/index.d.ts +2 -0
  1240. package/dist/lib/components/VirtualizedTable/components/Actions/components/PortalActions/hooks/index.d.ts +1 -0
  1241. package/dist/lib/components/VirtualizedTable/components/Actions/components/PortalActions/hooks/use-actions-menu/use-actions-menu.d.ts +15 -0
  1242. package/dist/lib/components/VirtualizedTable/components/Actions/components/PortalActions/hooks/use-menu-interactions/use-menu-interactions.d.ts +10 -0
  1243. package/dist/lib/components/VirtualizedTable/components/Actions/components/PortalActions/hooks/use-menu-interactions/use-menu-interactions.types.d.ts +7 -0
  1244. package/dist/lib/components/VirtualizedTable/components/Actions/components/PortalActions/hooks/use-menu-keyboard-navigation/use-menu-keyboard-navigation.d.ts +6 -0
  1245. package/dist/lib/components/VirtualizedTable/components/Actions/components/PortalActions/hooks/use-menu-keyboard-navigation/use-menu-keyboard-navigation.types.d.ts +8 -0
  1246. package/dist/lib/components/VirtualizedTable/components/Actions/components/PortalActions/hooks/use-row-highlight/use-row-highlight.d.ts +2 -0
  1247. package/dist/lib/components/VirtualizedTable/components/Actions/components/PortalActions/hooks/use-row-highlight/use-row-highlight.types.d.ts +5 -0
  1248. package/dist/lib/components/VirtualizedTable/components/Body/Body.d.ts +3 -0
  1249. package/dist/lib/components/VirtualizedTable/components/Body/Body.types.d.ts +8 -0
  1250. package/dist/lib/components/VirtualizedTable/components/DotPaginate/DotPaginate.d.ts +1 -0
  1251. package/dist/lib/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.d.ts +3 -0
  1252. package/dist/lib/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.types.d.ts +5 -0
  1253. package/dist/lib/components/VirtualizedTable/components/ExpandableRow/ExpandableRow.d.ts +3 -0
  1254. package/dist/lib/components/VirtualizedTable/components/ExpandableRow/ExpandableRow.types.d.ts +10 -0
  1255. package/dist/lib/components/VirtualizedTable/components/Filter/Filter.d.ts +3 -0
  1256. package/dist/lib/components/VirtualizedTable/components/Filter/Filter.types.d.ts +17 -0
  1257. package/dist/lib/components/VirtualizedTable/components/FormPaginate/FormPaginate.d.ts +1 -0
  1258. package/dist/lib/components/VirtualizedTable/components/Header/Header.d.ts +3 -0
  1259. package/dist/lib/components/VirtualizedTable/components/Header/Header.types.d.ts +6 -0
  1260. package/dist/lib/components/VirtualizedTable/components/Pagination/Pagination.d.ts +3 -0
  1261. package/dist/lib/components/VirtualizedTable/components/Pagination/Pagination.types.d.ts +11 -0
  1262. package/dist/lib/components/VirtualizedTable/components/Skeleton/Skeleton.d.ts +2 -0
  1263. package/dist/lib/components/VirtualizedTable/components/Skeleton/Skeleton.types.d.ts +5 -0
  1264. package/dist/lib/components/VirtualizedTable/components/TruncateText/TruncateText.d.ts +2 -0
  1265. package/dist/lib/components/VirtualizedTable/components/TruncateText/TruncateText.types.d.ts +8 -0
  1266. package/dist/lib/components/VirtualizedTable/components/WrapperBody/WrapperBody.d.ts +3 -0
  1267. package/dist/lib/components/VirtualizedTable/components/WrapperBody/WrapperBody.types.d.ts +6 -0
  1268. package/dist/lib/components/VirtualizedTable/components/index.d.ts +7 -0
  1269. package/dist/lib/components/VirtualizedTable/constants/index.d.ts +1 -0
  1270. package/dist/lib/components/VirtualizedTable/constants/pagination.d.ts +2 -0
  1271. package/dist/lib/components/VirtualizedTable/contexts/index.d.ts +3 -0
  1272. package/dist/lib/components/VirtualizedTable/contexts/table.context.d.ts +46 -0
  1273. package/dist/lib/components/VirtualizedTable/contexts/table.hook.d.ts +3 -0
  1274. package/dist/lib/components/VirtualizedTable/contexts/table.provider.d.ts +3 -0
  1275. package/dist/lib/components/VirtualizedTable/contexts/table.types.d.ts +30 -0
  1276. package/dist/lib/components/VirtualizedTable/events/events.types.d.ts +11 -0
  1277. package/dist/lib/components/VirtualizedTable/events/filters/filters.d.ts +1 -0
  1278. package/dist/lib/components/VirtualizedTable/events/index.d.ts +4 -0
  1279. package/dist/lib/components/VirtualizedTable/events/refresh/refresh.d.ts +2 -0
  1280. package/dist/lib/components/VirtualizedTable/events/refresh/refresh.types.d.ts +3 -0
  1281. package/dist/lib/components/VirtualizedTable/events/row/row.d.ts +3 -0
  1282. package/dist/lib/components/VirtualizedTable/utils/get-table-id.d.ts +1 -0
  1283. package/dist/lib/components/VirtualizedTable/utils/index.d.ts +2 -0
  1284. package/dist/lib/components/VirtualizedTable/utils/pagination.d.ts +1 -0
  1285. package/dist/lib/components/index.d.ts +66 -0
  1286. package/dist/lib/contexts/index.d.ts +3 -0
  1287. package/dist/lib/contexts/theme.context.d.ts +6 -0
  1288. package/dist/lib/contexts/theme.hook.d.ts +7 -0
  1289. package/dist/lib/contexts/theme.provider.d.ts +38 -0
  1290. package/dist/lib/domain/theme.d.ts +1 -0
  1291. package/dist/lib/hooks/index.d.ts +4 -0
  1292. package/dist/lib/hooks/useClickOutside.d.ts +4 -0
  1293. package/dist/lib/hooks/useIsHydrated/useIsHydrated.d.ts +1 -0
  1294. package/dist/lib/hooks/useIsHydrated/utils/index.d.ts +1 -0
  1295. package/dist/lib/hooks/useIsHydrated/utils/noop-subscribe/noop-subscribe.d.ts +1 -0
  1296. package/dist/lib/hooks/useMediaQuery.d.ts +1 -0
  1297. package/dist/lib/hooks/useToggle.d.ts +1 -0
  1298. package/dist/lib/icons.d.ts +2 -0
  1299. package/dist/lib/index.d.ts +4 -0
  1300. package/dist/lib/styles.d.ts +0 -0
  1301. package/dist/lib/utils/index.d.ts +6 -0
  1302. package/dist/libphonenumber-DtibHRPP.js +81995 -0
  1303. package/dist/package.json +93 -59
  1304. package/dist/phone-number.provider-BASl9fGG.js +6688 -0
  1305. package/dist/prop-types-BCUW56rg.js +547 -0
  1306. package/dist/react-C685EsYG.js +4730 -0
  1307. package/dist/rolldown-runtime-Dw9YIBcH.js +38 -0
  1308. package/dist/style.css +1 -0
  1309. package/dist/styles.css +1 -1
  1310. package/dist/{index-Dx2grAuN.js → table.provider-MQ4T5Xb5.js} +850 -697
  1311. package/dist/theme.provider-CvL6sqHq.js +75 -0
  1312. package/dist/ui/civo-theme.css +198 -168
  1313. package/dist/ui/kubefirst-theme.css +4 -0
  1314. package/dist/ui/theme.css +27 -0
  1315. package/dist/useBreadcrumb-BvP9cgD8.js +1598 -0
  1316. package/dist/utils/index.js +6 -2729
  1317. package/dist/utils-DVYdP0CJ.js +2021 -0
  1318. package/dist/utils-DnIJruo0.js +1817 -0
  1319. package/dist/x-C8O1IsaM.js +17 -0
  1320. package/dist/x-Vur_9PXW.js +62 -0
  1321. package/package.json +93 -59
  1322. package/dist/Combination-VYaRRJBZ.js +0 -477
  1323. package/dist/DatePicker.css +0 -1
  1324. package/dist/Modal-B8jrP02v.js +0 -98
  1325. package/dist/_commonjsHelpers-DaMA6jEr.js +0 -8
  1326. package/dist/chevron-down-MZvQoT2F.js +0 -11
  1327. package/dist/chevron-right-VYBOBhRt.js +0 -19
  1328. package/dist/components/Dropdown/Dropdown.js +0 -42
  1329. package/dist/components/Dropdown/Dropdown.variants.js +0 -69
  1330. package/dist/components/Dropdown/components/EmptyList.js +0 -5
  1331. package/dist/components/Dropdown/components/List/List.js +0 -79
  1332. package/dist/components/Dropdown/components/List/List.variants.js +0 -28
  1333. package/dist/components/Dropdown/components/ListItem/ListItem.js +0 -67
  1334. package/dist/components/Dropdown/components/Wrapper.js +0 -205
  1335. package/dist/components/Dropdown/components/index.js +0 -8
  1336. package/dist/components/Dropdown/contexts/dropdown.context.js +0 -19
  1337. package/dist/components/Dropdown/contexts/dropdown.hook.js +0 -13
  1338. package/dist/components/Dropdown/contexts/dropdown.provider.js +0 -30
  1339. package/dist/components/Dropdown/contexts/index.js +0 -6
  1340. package/dist/components/Dropdown/hooks/useDropdown.js +0 -58
  1341. package/dist/components/Dropdown/hooks/useNavigationList.js +0 -62
  1342. package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.hook.js +0 -85
  1343. package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.hook.js +0 -86
  1344. package/dist/components/NumberInput/NumberInput.js +0 -179
  1345. package/dist/components/NumberInput/NumberInput.variants.js +0 -50
  1346. package/dist/components/TimePicker/components/WrapperList/WrapperList.variants.js +0 -16
  1347. package/dist/components/Tooltip/Tooltip.variants.js +0 -85
  1348. package/dist/components/Tooltip/hooks/useTooltip.js +0 -24
  1349. package/dist/createLucideIcon-D2CN7Ma9.js +0 -94
  1350. package/dist/debounce-BFejQm9P.js +0 -200
  1351. package/dist/index-0XtjXVpJ.js +0 -314
  1352. package/dist/index-0ioNhtNM.js +0 -10
  1353. package/dist/index-BAEWsOG1.js +0 -27
  1354. package/dist/index-BVRIAMfe.js +0 -36
  1355. package/dist/index-BZPx6jYI.js +0 -8
  1356. package/dist/index-BdMNhZnh.js +0 -9
  1357. package/dist/index-BfXxHr_2.js +0 -125
  1358. package/dist/index-Bn4c-gww.js +0 -131
  1359. package/dist/index-C1g_chDT.js +0 -70
  1360. package/dist/index-CffpTFMi.js +0 -137
  1361. package/dist/index-Cvx4lqTq.js +0 -47
  1362. package/dist/index-D29mdTf5.js +0 -34
  1363. package/dist/index-DQH6odE9.js +0 -82
  1364. package/dist/index-DQJhMz8c.js +0 -323
  1365. package/dist/index-DdXGVVBv.js +0 -15
  1366. package/dist/index-N2OStZoU.js +0 -667
  1367. package/dist/index-amYX3uxF.js +0 -436
  1368. package/dist/index-bwWKd82e.js +0 -13
  1369. package/dist/index-l3NwplN0.js +0 -432
  1370. package/dist/index-sp5ZfG6g.js +0 -31
  1371. package/dist/useBreadcrumb-B8DnuqkR.js +0 -1273
  1372. package/dist/x-4F_5p77m.js +0 -62
@@ -0,0 +1,4730 @@
1
+ import { Component as zr, Fragment as rs, createContext as At, createElement as _r, forwardRef as Gr, useCallback as os, useContext as N, useEffect as si, useId as Hr, useInsertionEffect as as, useLayoutEffect as Xr, useMemo as he, useRef as lt } from "react";
2
+ import { jsx as ls, jsxs as Yr } from "react/jsx-runtime";
3
+ var us = At({});
4
+ function qr(t) {
5
+ const e = lt(null);
6
+ return e.current === null && (e.current = t()), e.current;
7
+ }
8
+ var Zr = typeof window < "u", Oi = Zr ? Xr : si, ri = /* @__PURE__ */ At(null);
9
+ function oi(t, e) {
10
+ t.indexOf(e) === -1 && t.push(e);
11
+ }
12
+ function ee(t, e) {
13
+ const i = t.indexOf(e);
14
+ i > -1 && t.splice(i, 1);
15
+ }
16
+ var tt = (t, e, i) => i > e ? e : i < t ? t : i;
17
+ function ke(t, e) {
18
+ return e ? `${t}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${e}` : t;
19
+ }
20
+ var mt = () => {
21
+ }, q = () => {
22
+ };
23
+ typeof process < "u" && process.env.NODE_ENV !== "production" && (mt = (t, e, i) => {
24
+ !t && typeof console < "u" && console.warn(ke(e, i));
25
+ }, q = (t, e, i) => {
26
+ if (!t) throw new Error(ke(e, i));
27
+ });
28
+ var Q = {}, ai = (t) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t), cs = (t) => typeof t == "object" && t !== null, li = (t) => /^0[^.\s]+$/u.test(t);
29
+ // @__NO_SIDE_EFFECTS__
30
+ function hs(t) {
31
+ let e;
32
+ return () => (e === void 0 && (e = t()), e);
33
+ }
34
+ var _ = /* @__NO_SIDE_EFFECTS__ */ (t) => t, Nt = (...t) => t.reduce((e, i) => (n) => i(e(n))), Lt = /* @__NO_SIDE_EFFECTS__ */ (t, e, i) => {
35
+ const n = e - t;
36
+ return n ? (i - t) / n : 1;
37
+ }, ie = class {
38
+ constructor() {
39
+ this.subscriptions = [];
40
+ }
41
+ add(t) {
42
+ return oi(this.subscriptions, t), () => this.remove(t);
43
+ }
44
+ remove(t) {
45
+ ee(this.subscriptions, t);
46
+ }
47
+ notify(t, e, i) {
48
+ const n = this.subscriptions.length;
49
+ if (n)
50
+ if (n === 1) this.subscriptions[0](t, e, i);
51
+ else for (let s = 0; s < n; s++) {
52
+ const o = this.subscriptions[s];
53
+ o && o(t, e, i);
54
+ }
55
+ }
56
+ getSize() {
57
+ return this.subscriptions.length;
58
+ }
59
+ clear() {
60
+ this.subscriptions.length = 0;
61
+ }
62
+ }, U = /* @__NO_SIDE_EFFECTS__ */ (t) => t * 1e3, $ = /* @__NO_SIDE_EFFECTS__ */ (t) => t / 1e3, fs = /* @__NO_SIDE_EFFECTS__ */ (t, e) => e ? t * (1e3 / e) : 0, ji = /* @__PURE__ */ new Set();
63
+ function ui(t, e, i) {
64
+ t || ji.has(e) || (console.warn(ke(e, i)), ji.add(e));
65
+ }
66
+ var ds = (t, e, i) => (((1 - 3 * i + 3 * e) * t + (3 * i - 6 * e)) * t + 3 * e) * t, Jr = 1e-7, Qr = 12;
67
+ function to(t, e, i, n, s) {
68
+ let o, r, a = 0;
69
+ do
70
+ r = e + (i - e) / 2, o = ds(r, n, s) - t, o > 0 ? i = r : e = r;
71
+ while (Math.abs(o) > Jr && ++a < Qr);
72
+ return r;
73
+ }
74
+ // @__NO_SIDE_EFFECTS__
75
+ function Ut(t, e, i, n) {
76
+ if (t === e && i === n) return _;
77
+ const s = (o) => to(o, 0, 1, t, i);
78
+ return (o) => o === 0 || o === 1 ? o : ds(s(o), e, n);
79
+ }
80
+ var ms = /* @__NO_SIDE_EFFECTS__ */ (t) => (e) => e <= 0.5 ? t(2 * e) / 2 : (2 - t(2 * (1 - e))) / 2, ps = /* @__NO_SIDE_EFFECTS__ */ (t) => (e) => 1 - t(1 - e), vs = /* @__PURE__ */ Ut(0.33, 1.53, 0.69, 0.99), ci = /* @__PURE__ */ ps(vs), gs = /* @__PURE__ */ ms(ci), ys = (t) => t >= 1 ? 1 : (t *= 2) < 1 ? 0.5 * ci(t) : 0.5 * (2 - Math.pow(2, -10 * (t - 1))), hi = (t) => 1 - Math.sin(Math.acos(t)), Ts = ps(hi), xs = ms(hi), eo = /* @__PURE__ */ Ut(0.42, 0, 1, 1), io = /* @__PURE__ */ Ut(0, 0, 0.58, 1), fi = /* @__PURE__ */ Ut(0.42, 0, 0.58, 1), no = /* @__NO_SIDE_EFFECTS__ */ (t) => Array.isArray(t) && typeof t[0] != "number", ws = /* @__NO_SIDE_EFFECTS__ */ (t) => Array.isArray(t) && typeof t[0] == "number", Ni = {
81
+ linear: _,
82
+ easeIn: eo,
83
+ easeInOut: fi,
84
+ easeOut: io,
85
+ circIn: hi,
86
+ circInOut: xs,
87
+ circOut: Ts,
88
+ backIn: ci,
89
+ backInOut: gs,
90
+ backOut: vs,
91
+ anticipate: ys
92
+ }, so = (t) => typeof t == "string", Ui = (t) => {
93
+ if (ws(t)) {
94
+ q(t.length === 4, "Cubic bezier arrays must contain four numerical values.", "cubic-bezier-length");
95
+ const [e, i, n, s] = t;
96
+ return /* @__PURE__ */ Ut(e, i, n, s);
97
+ } else if (so(t))
98
+ return q(Ni[t] !== void 0, `Invalid easing type '${t}'`, "invalid-easing-type"), Ni[t];
99
+ return t;
100
+ }, C = {
101
+ delta: 0,
102
+ timestamp: 0,
103
+ isProcessing: !1
104
+ }, Ht;
105
+ function ro() {
106
+ Ht = void 0;
107
+ }
108
+ var k = {
109
+ now: () => (Ht === void 0 && k.set(C.isProcessing || Q.useManualTiming ? C.timestamp : performance.now()), Ht),
110
+ set: (t) => {
111
+ Ht = t, queueMicrotask(ro);
112
+ }
113
+ }, Pt = (t) => Math.round(t * 1e5) / 1e5, Ss = (t) => (e) => typeof e == "string" && e.startsWith(t), Ps = /* @__PURE__ */ Ss("--"), oo = /* @__PURE__ */ Ss("var(--"), di = (t) => oo(t) ? ao.test(t.split("/*")[0].trim()) : !1, ao = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;
114
+ function Wi(t) {
115
+ return typeof t != "string" ? !1 : t.split("/*")[0].includes("var(--");
116
+ }
117
+ var Vt = {
118
+ test: (t) => typeof t == "number",
119
+ parse: parseFloat,
120
+ transform: (t) => t
121
+ }, kt = {
122
+ ...Vt,
123
+ transform: (t) => tt(0, 1, t)
124
+ }, Kt = {
125
+ ...Vt,
126
+ default: 1
127
+ }, mi = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
128
+ function lo(t) {
129
+ return t == null;
130
+ }
131
+ var uo = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, pi = (t, e) => (i) => !!(typeof i == "string" && uo.test(i) && i.startsWith(t) || e && !lo(i) && Object.prototype.hasOwnProperty.call(i, e)), bs = (t, e, i) => (n) => {
132
+ if (typeof n != "string") return n;
133
+ const [s, o, r, a] = n.match(mi);
134
+ return {
135
+ [t]: parseFloat(s),
136
+ [e]: parseFloat(o),
137
+ [i]: parseFloat(r),
138
+ alpha: a !== void 0 ? parseFloat(a) : 1
139
+ };
140
+ }, co = (t) => tt(0, 255, t), ge = {
141
+ ...Vt,
142
+ transform: (t) => Math.round(co(t))
143
+ }, ut = {
144
+ test: /* @__PURE__ */ pi("rgb", "red"),
145
+ parse: /* @__PURE__ */ bs("red", "green", "blue"),
146
+ transform: ({ red: t, green: e, blue: i, alpha: n = 1 }) => "rgba(" + ge.transform(t) + ", " + ge.transform(e) + ", " + ge.transform(i) + ", " + Pt(kt.transform(n)) + ")"
147
+ };
148
+ function ho(t) {
149
+ let e = "", i = "", n = "", s = "";
150
+ return t.length > 5 ? (e = t.substring(1, 3), i = t.substring(3, 5), n = t.substring(5, 7), s = t.substring(7, 9)) : (e = t.substring(1, 2), i = t.substring(2, 3), n = t.substring(3, 4), s = t.substring(4, 5), e += e, i += i, n += n, s += s), {
151
+ red: parseInt(e, 16),
152
+ green: parseInt(i, 16),
153
+ blue: parseInt(n, 16),
154
+ alpha: s ? parseInt(s, 16) / 255 : 1
155
+ };
156
+ }
157
+ var Be = {
158
+ test: /* @__PURE__ */ pi("#"),
159
+ parse: ho,
160
+ transform: ut.transform
161
+ }, Wt = /* @__NO_SIDE_EFFECTS__ */ (t) => ({
162
+ test: (e) => typeof e == "string" && e.endsWith(t) && e.split(" ").length === 1,
163
+ parse: parseFloat,
164
+ transform: (e) => `${e}${t}`
165
+ }), J = /* @__PURE__ */ Wt("deg"), Y = /* @__PURE__ */ Wt("%"), y = /* @__PURE__ */ Wt("px"), fo = /* @__PURE__ */ Wt("vh"), mo = /* @__PURE__ */ Wt("vw"), $i = {
166
+ ...Y,
167
+ parse: (t) => Y.parse(t) / 100,
168
+ transform: (t) => Y.transform(t * 100)
169
+ }, Tt = {
170
+ test: /* @__PURE__ */ pi("hsl", "hue"),
171
+ parse: /* @__PURE__ */ bs("hue", "saturation", "lightness"),
172
+ transform: ({ hue: t, saturation: e, lightness: i, alpha: n = 1 }) => "hsla(" + Math.round(t) + ", " + Y.transform(Pt(e)) + ", " + Y.transform(Pt(i)) + ", " + Pt(kt.transform(n)) + ")"
173
+ }, R = {
174
+ test: (t) => ut.test(t) || Be.test(t) || Tt.test(t),
175
+ parse: (t) => ut.test(t) ? ut.parse(t) : Tt.test(t) ? Tt.parse(t) : Be.parse(t),
176
+ transform: (t) => typeof t == "string" ? t : t.hasOwnProperty("red") ? ut.transform(t) : Tt.transform(t),
177
+ getAnimatableNone: (t) => {
178
+ const e = R.parse(t);
179
+ return e.alpha = 0, R.transform(e);
180
+ }
181
+ }, po = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu, As = /* @__PURE__ */ new RegExp(mi.source), Vs = /* @__PURE__ */ new RegExp(po.source, "i");
182
+ function vo(t) {
183
+ return isNaN(t) && typeof t == "string" && (As.test(t) || Vs.test(t));
184
+ }
185
+ var Ds = "number", Ms = "color", go = "var", yo = "var(", Ki = "${}", To = /var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;
186
+ function xo(t) {
187
+ const e = t.toString();
188
+ return As.test(e) || Vs.test(e);
189
+ }
190
+ function Bt(t) {
191
+ const e = t.toString(), i = [], n = {
192
+ color: [],
193
+ number: [],
194
+ var: []
195
+ }, s = [];
196
+ let o = 0;
197
+ return {
198
+ values: i,
199
+ split: e.replace(To, (r) => (R.test(r) ? (n.color.push(o), s.push(Ms), i.push(R.parse(r))) : r.startsWith(yo) ? (n.var.push(o), s.push(go), i.push(r)) : (n.number.push(o), s.push(Ds), i.push(parseFloat(r))), ++o, Ki)).split(Ki),
200
+ indexes: n,
201
+ types: s
202
+ };
203
+ }
204
+ function wo(t) {
205
+ return Bt(t).values;
206
+ }
207
+ function Es({ split: t, types: e }) {
208
+ const i = t.length;
209
+ return (n) => {
210
+ let s = "";
211
+ for (let o = 0; o < i; o++)
212
+ if (s += t[o], n[o] !== void 0) {
213
+ const r = e[o];
214
+ r === Ds ? s += Pt(n[o]) : r === Ms ? s += R.transform(n[o]) : s += n[o];
215
+ }
216
+ return s;
217
+ };
218
+ }
219
+ function So(t) {
220
+ return Es(Bt(t));
221
+ }
222
+ var Po = (t) => typeof t == "number" ? 0 : R.test(t) ? R.getAnimatableNone(t) : t, bo = (t, e) => typeof t == "number" ? e?.trim().endsWith("/") ? t : 0 : Po(t);
223
+ function Ao(t) {
224
+ const e = Bt(t);
225
+ return Es(e)(e.values.map((i, n) => bo(i, e.split[n])));
226
+ }
227
+ var W = {
228
+ test: vo,
229
+ parse: wo,
230
+ createTransformer: So,
231
+ getAnimatableNone: Ao
232
+ };
233
+ function ye(t, e, i) {
234
+ return i < 0 && (i += 1), i > 1 && (i -= 1), i < 1 / 6 ? t + (e - t) * 6 * i : i < 1 / 2 ? e : i < 2 / 3 ? t + (e - t) * (2 / 3 - i) * 6 : t;
235
+ }
236
+ function Vo({ hue: t, saturation: e, lightness: i, alpha: n }) {
237
+ t /= 360, e /= 100, i /= 100;
238
+ let s = 0, o = 0, r = 0;
239
+ if (!e) s = o = r = i;
240
+ else {
241
+ const a = i < 0.5 ? i * (1 + e) : i + e - i * e, l = 2 * i - a;
242
+ s = ye(l, a, t + 1 / 3), o = ye(l, a, t), r = ye(l, a, t - 1 / 3);
243
+ }
244
+ return {
245
+ red: Math.round(s * 255),
246
+ green: Math.round(o * 255),
247
+ blue: Math.round(r * 255),
248
+ alpha: n
249
+ };
250
+ }
251
+ function ne(t, e) {
252
+ return (i) => i > 0 ? e : t;
253
+ }
254
+ var V = (t, e, i) => t + (e - t) * i, Te = (t, e, i) => {
255
+ const n = t * t, s = i * (e * e - n) + n;
256
+ return s < 0 ? 0 : Math.sqrt(s);
257
+ }, Do = [
258
+ Be,
259
+ ut,
260
+ Tt
261
+ ], Mo = (t) => Do.find((e) => e.test(t));
262
+ function zi(t) {
263
+ const e = Mo(t);
264
+ if (!e)
265
+ return mt(!1, `'${t}' is not an animatable color. Use the equivalent color code instead.`, "color-not-animatable"), !1;
266
+ let i = e.parse(t);
267
+ return e === Tt && (i = Vo(i)), i;
268
+ }
269
+ var _i = (t, e) => {
270
+ const i = zi(t), n = zi(e);
271
+ if (!i || !n) return ne(t, e);
272
+ const s = { ...i };
273
+ return (o) => (s.red = Te(i.red, n.red, o), s.green = Te(i.green, n.green, o), s.blue = Te(i.blue, n.blue, o), s.alpha = V(i.alpha, n.alpha, o), ut.transform(s));
274
+ }, Ie = /* @__PURE__ */ new Set(["none", "hidden"]);
275
+ function Eo(t, e) {
276
+ return Ie.has(t) ? (i) => i <= 0 ? t : e : (i) => i >= 1 ? e : t;
277
+ }
278
+ function Co(t, e) {
279
+ return (i) => V(t, e, i);
280
+ }
281
+ function vi(t) {
282
+ return typeof t == "number" ? Co : typeof t == "string" ? di(t) ? ne : R.test(t) ? _i : ko : Array.isArray(t) ? Cs : typeof t == "object" ? R.test(t) ? _i : Ro : ne;
283
+ }
284
+ function Cs(t, e) {
285
+ const i = [...t], n = i.length, s = t.map((o, r) => vi(o)(o, e[r]));
286
+ return (o) => {
287
+ for (let r = 0; r < n; r++) i[r] = s[r](o);
288
+ return i;
289
+ };
290
+ }
291
+ function Ro(t, e) {
292
+ const i = {
293
+ ...t,
294
+ ...e
295
+ }, n = {};
296
+ for (const s in i) t[s] !== void 0 && e[s] !== void 0 && (n[s] = vi(t[s])(t[s], e[s]));
297
+ return (s) => {
298
+ for (const o in n) i[o] = n[o](s);
299
+ return i;
300
+ };
301
+ }
302
+ function Lo(t, e) {
303
+ const i = [], n = {
304
+ color: 0,
305
+ var: 0,
306
+ number: 0
307
+ };
308
+ for (let s = 0; s < e.values.length; s++) {
309
+ const o = e.types[s], r = t.indexes[o][n[o]], a = t.values[r] ?? 0;
310
+ i[s] = a, n[o]++;
311
+ }
312
+ return i;
313
+ }
314
+ var ko = (t, e) => {
315
+ const i = W.createTransformer(e), n = Bt(t), s = Bt(e);
316
+ return n.indexes.var.length === s.indexes.var.length && n.indexes.color.length === s.indexes.color.length && n.indexes.number.length >= s.indexes.number.length ? Ie.has(t) && !s.values.length || Ie.has(e) && !n.values.length ? Eo(t, e) : Nt(Cs(Lo(n, s), s.values), i) : (mt(!0, `Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`, "complex-values-different"), ne(t, e));
317
+ }, Gi = /^(-?(?:\d+(?:\.\d*)?|\.\d+))([a-z%]*)$/iu;
318
+ function Bo(t, e) {
319
+ const i = Gi.exec(t);
320
+ if (!i) return;
321
+ const n = Gi.exec(e);
322
+ if (!n || i[2] !== n[2]) return;
323
+ const s = i[2], o = parseFloat(i[1]), r = parseFloat(n[1]);
324
+ return (a) => Pt(V(o, r, a)) + s;
325
+ }
326
+ function gi(t, e, i) {
327
+ if (typeof t == "number" && typeof e == "number" && typeof i == "number") return V(t, e, i);
328
+ if (typeof t == "string" && typeof e == "string") {
329
+ const n = Bo(t, e);
330
+ if (n) return n;
331
+ }
332
+ return vi(t)(t, e);
333
+ }
334
+ var zt = [
335
+ "setup",
336
+ "read",
337
+ "resolveKeyframes",
338
+ "preUpdate",
339
+ "update",
340
+ "preRender",
341
+ "render",
342
+ "postRender"
343
+ ];
344
+ function Io(t) {
345
+ let e = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set(), n = !1, s = !1;
346
+ const o = /* @__PURE__ */ new Set();
347
+ let r = {
348
+ delta: 0,
349
+ timestamp: 0,
350
+ isProcessing: !1
351
+ };
352
+ function a(c) {
353
+ o.has(c) && (i.add(c), t()), c(r);
354
+ }
355
+ const l = {
356
+ schedule: (c, u = !1, h = !1) => {
357
+ const f = h && n ? e : i;
358
+ return u && o.add(c), f.add(c), c;
359
+ },
360
+ cancel: (c) => {
361
+ i.delete(c), o.delete(c);
362
+ },
363
+ process: (c) => {
364
+ if (r = c, n) {
365
+ s = !0;
366
+ return;
367
+ }
368
+ n = !0;
369
+ const u = e;
370
+ e = i, i = u, e.forEach(a), e.clear(), n = !1, s && (s = !1, l.process(c));
371
+ }
372
+ };
373
+ return l;
374
+ }
375
+ var Fo = 40;
376
+ function Rs(t, e, i = {
377
+ delta: 0,
378
+ timestamp: 0,
379
+ isProcessing: !1
380
+ }) {
381
+ let n = !1, s = !0;
382
+ const o = () => n = !0, r = zt.reduce((S, T) => (S[T] = Io(o), S), {}), { setup: a, read: l, resolveKeyframes: c, preUpdate: u, update: h, preRender: f, render: p, postRender: d } = r, g = () => {
383
+ const S = Q.useManualTiming, T = S ? i.timestamp : performance.now();
384
+ n = !1, S || (i.delta = s ? 1e3 / 60 : Math.max(Math.min(T - i.timestamp, Fo), 1)), i.timestamp = T, i.isProcessing = !0, a.process(i), l.process(i), c.process(i), u.process(i), h.process(i), f.process(i), p.process(i), d.process(i), i.isProcessing = !1, n && e && (s = !1, t(g));
385
+ }, m = () => {
386
+ n = !0, s = !0, i.isProcessing || t(g);
387
+ };
388
+ return {
389
+ schedule: zt.reduce((S, T) => {
390
+ const b = r[T];
391
+ return S[T] = (A, v = !1, w = !1) => (n || m(), b.schedule(A, v, w)), S;
392
+ }, {}),
393
+ cancel: (S) => {
394
+ for (let T = 0; T < zt.length; T++) r[zt[T]].cancel(S);
395
+ },
396
+ state: i,
397
+ steps: r
398
+ };
399
+ }
400
+ var { schedule: D, cancel: nt, steps: xe } = /* @__PURE__ */ Rs(typeof requestAnimationFrame < "u" ? requestAnimationFrame : _, !0, C), Oo = (t) => {
401
+ const e = ({ timestamp: i }) => t(i);
402
+ return {
403
+ start: (i = !0) => D.update(e, i),
404
+ stop: () => nt(e),
405
+ now: () => C.isProcessing ? C.timestamp : k.now()
406
+ };
407
+ }, Ls = (t, e, i = 10) => {
408
+ let n = "";
409
+ const s = Math.max(Math.round(e / i), 2);
410
+ for (let o = 0; o < s; o++) n += Math.round(t(o / (s - 1)) * 1e4) / 1e4 + ", ";
411
+ return `linear(${n.substring(0, n.length - 2)})`;
412
+ }, yi = 2e4;
413
+ function Ti(t, e = 50, i = yi, n) {
414
+ let s = 0, o = t.next(s);
415
+ for (n?.push(o.value); !o.done && s < i; )
416
+ s += e, o = t.next(s), n?.push(o.value);
417
+ return s >= i ? 1 / 0 : s;
418
+ }
419
+ function jo(t, e = 100, i) {
420
+ const n = i({
421
+ ...t,
422
+ keyframes: [0, e]
423
+ }), s = Math.min(Ti(n), yi);
424
+ return {
425
+ type: "keyframes",
426
+ ease: (o) => n.next(s * o).value / e,
427
+ duration: $(s)
428
+ };
429
+ }
430
+ var L = {
431
+ stiffness: 100,
432
+ damping: 10,
433
+ mass: 1,
434
+ duration: 800,
435
+ bounce: 0.3,
436
+ visualDuration: 0.3,
437
+ restSpeed: {
438
+ granular: 0.01,
439
+ default: 2
440
+ },
441
+ restDelta: {
442
+ granular: 5e-3,
443
+ default: 0.5
444
+ },
445
+ minDuration: 0.01,
446
+ maxDuration: 10,
447
+ minDamping: 0.05
448
+ }, ks = (t) => t < 0 ? 1 / Math.max(1 + t, L.minDamping) : Math.max(1 - t, L.minDamping);
449
+ function Bs(t, e) {
450
+ if (!(t > 1)) return 1;
451
+ const i = Math.sqrt(t * t - 1), n = t - i, s = t + i, o = 2 * i * Math.exp(-e) * (1 + e);
452
+ return Is((r) => s * Math.exp(-n * r) - n * Math.exp(-s * r) - o, (r) => Math.exp(-s * r) - Math.exp(-n * r), e) / e;
453
+ }
454
+ function Fe(t, e) {
455
+ return t * Math.sqrt(1 - e * e);
456
+ }
457
+ var No = 12;
458
+ function Is(t, e, i) {
459
+ let n = i;
460
+ for (let s = 1; s < No; s++) n = n - t(n) / e(n);
461
+ return n;
462
+ }
463
+ var Hi = 1e-3;
464
+ function Uo({ duration: t = L.duration, bounce: e = L.bounce }) {
465
+ let i, n;
466
+ mt(t <= U(L.maxDuration), "Spring duration must be 10 seconds or less", "spring-duration-limit");
467
+ const s = ks(e);
468
+ t = tt(L.minDuration, L.maxDuration, $(t)), s < 1 ? (i = (c) => {
469
+ const u = c * s, h = u * t, f = Fe(c, s), p = Math.exp(-h);
470
+ return Hi - u / f * p;
471
+ }, n = (c) => {
472
+ const u = c * s * t, h = s * s * c * c * t, f = Math.exp(-u), p = Fe(c * c, s);
473
+ return (-i(c) + Hi > 0 ? -1 : 1) * -h * f / p;
474
+ }) : (i = (c) => -1e-3 + Math.exp(-c * t) * (c * t + 1), n = (c) => Math.exp(-c * t) * (-c * (t * t)));
475
+ const o = 5 / t, r = Is(i, n, o), a = r * Bs(s, r * t), l = a * a;
476
+ return {
477
+ stiffness: l,
478
+ damping: s * 2 * Math.sqrt(l),
479
+ duration: U(t)
480
+ };
481
+ }
482
+ var Oe = (t, e) => (e ? t >= 0 : t > 0) && t < 1 / 0;
483
+ function we(t, e) {
484
+ if (Oe(t, e)) return t;
485
+ process.env.NODE_ENV !== "production" && mt(t === void 0, "Spring stiffness and mass must be positive, damping 0 or greater", "spring-invalid-physics");
486
+ }
487
+ function Wo(t) {
488
+ const e = we(t.stiffness), i = we(t.damping, !0), n = we(t.mass), s = {
489
+ ...t,
490
+ stiffness: e ?? L.stiffness,
491
+ damping: i ?? L.damping,
492
+ mass: n ?? L.mass,
493
+ isResolvedFromDuration: !1,
494
+ isTimeDefined: (e ?? i ?? n) === void 0 && (t.duration !== void 0 || t.bounce !== void 0)
495
+ };
496
+ if (s.isTimeDefined) {
497
+ if (t.visualDuration) {
498
+ const o = ks(t.bounce || 0), r = 2 * Math.PI / (t.visualDuration * 1.2) * Bs(o, 2 * Math.PI / 1.2);
499
+ s.stiffness = r * r, s.damping = 2 * o * Math.sqrt(s.stiffness);
500
+ } else
501
+ Object.assign(s, Uo(s)), s.isResolvedFromDuration = !0;
502
+ (!Oe(s.stiffness) || !Oe(s.damping, !0)) && (s.stiffness = L.stiffness, s.damping = L.damping);
503
+ }
504
+ return s;
505
+ }
506
+ function se(t = L.visualDuration, e = L.bounce) {
507
+ const i = typeof t != "object" ? {
508
+ visualDuration: t,
509
+ keyframes: [0, 1],
510
+ bounce: e
511
+ } : t, n = i.keyframes[0], s = i.keyframes[i.keyframes.length - 1], o = {
512
+ done: !1,
513
+ value: n
514
+ }, { stiffness: r, damping: a, mass: l, duration: c, isResolvedFromDuration: u, isTimeDefined: h } = Wo({ ...i }), f = (v) => h ? 0 : -$(v), p = a / (2 * Math.sqrt(r * l)), d = $(Math.sqrt(r / l)), g = p * d, m = {
515
+ target: s,
516
+ delta: s - n,
517
+ velocity: f(i.velocity || 0) || 0,
518
+ restSpeed: 0,
519
+ restDelta: 0
520
+ }, P = () => {
521
+ const v = Math.abs(m.delta) < 5;
522
+ m.restSpeed = i.restSpeed || (v ? L.restSpeed.granular : L.restSpeed.default), m.restDelta = i.restDelta || (v ? L.restDelta.granular : L.restDelta.default);
523
+ };
524
+ P();
525
+ let x, S, T;
526
+ if (p < 1) {
527
+ const v = Fe(d, p), w = {
528
+ A: 0,
529
+ sinC: 0,
530
+ cosC: 0,
531
+ t: -1,
532
+ env: 0,
533
+ sin: 0,
534
+ cos: 0
535
+ };
536
+ T = () => {
537
+ w.A = (m.velocity + g * m.delta) / v, w.sinC = g * w.A + m.delta * v, w.cosC = g * m.delta - w.A * v;
538
+ };
539
+ const M = (I) => {
540
+ I !== w.t && (w.t = I, w.env = Math.exp(-g * I), w.sin = Math.sin(v * I), w.cos = Math.cos(v * I));
541
+ };
542
+ x = (I) => (M(I), m.target - w.env * (w.A * w.sin + m.delta * w.cos)), S = (I) => (M(I), w.env * (w.sinC * w.sin + w.cosC * w.cos));
543
+ } else if (p === 1) {
544
+ x = (w) => m.target - Math.exp(-d * w) * (m.delta + (m.velocity + d * m.delta) * w);
545
+ const v = { C: 0 };
546
+ T = () => {
547
+ v.C = m.velocity + d * m.delta;
548
+ }, S = (w) => Math.exp(-d * w) * (d * v.C * w - m.velocity);
549
+ } else {
550
+ const v = d * Math.sqrt(p * p - 1), w = g - v, M = g + v, I = h ? 1 / 0 : 300 / v, et = (j, pt) => Math.exp(pt > I ? -j * I - g * (pt - I) : -j * pt), Z = {
551
+ S: 0,
552
+ F: 0
553
+ };
554
+ T = () => {
555
+ const j = (m.velocity + g * m.delta) / v;
556
+ Z.S = (m.delta + j) / 2, Z.F = (m.delta - j) / 2;
557
+ }, x = (j) => m.target - Z.S * et(w, j) - Z.F * et(M, j), S = (j) => w * Z.S * et(w, j) + M * Z.F * et(M, j);
558
+ }
559
+ T();
560
+ const b = u && c || null, A = {
561
+ calculatedDuration: b,
562
+ retarget: (v, w) => {
563
+ m.target = v[v.length - 1], m.delta = m.target - v[0], m.velocity = f(w), i.restSpeed && i.restDelta || P(), A.calculatedDuration = b, o.done = !1, T();
564
+ },
565
+ velocity: (v) => U(S(v)),
566
+ next: (v) => {
567
+ const w = x(v);
568
+ if (u)
569
+ o.done = v >= c;
570
+ else {
571
+ const M = U(S(v));
572
+ o.done = Math.abs(M) <= m.restSpeed && Math.abs(m.target - w) <= m.restDelta;
573
+ }
574
+ return o.value = o.done ? m.target : w, o;
575
+ },
576
+ toString: () => {
577
+ const v = Math.min(Ti(A), yi), w = Ls((M) => A.next(v * M).value, v, 30);
578
+ return v + "ms " + w;
579
+ },
580
+ toTransition: () => {
581
+ }
582
+ };
583
+ return A;
584
+ }
585
+ se.applyToOptions = (t) => {
586
+ const e = jo(t, 100, se);
587
+ return t.ease = e.ease, t.duration = U(e.duration), t.type = "keyframes", t;
588
+ };
589
+ function je({ keyframes: t, velocity: e = 0, power: i = 0.8, timeConstant: n = 325, bounceDamping: s = 10, bounceStiffness: o = 500, modifyTarget: r, min: a, max: l, restDelta: c = 0.5, restSpeed: u }) {
590
+ const h = t[0], f = {
591
+ done: !1,
592
+ value: h
593
+ }, p = (v) => v < a || v > l, d = (v) => a === void 0 ? l : l === void 0 || Math.abs(a - v) < Math.abs(l - v) ? a : l;
594
+ let g = i * e;
595
+ const m = h + g, P = r === void 0 ? m : r(m);
596
+ P !== m && (g = P - h);
597
+ const x = (v) => -g * Math.exp(-v / n), S = (v) => {
598
+ const w = x(v);
599
+ f.done = Math.abs(w) <= c, f.value = f.done ? P : P + w;
600
+ };
601
+ let T, b;
602
+ const A = (v) => {
603
+ p(f.value) && (T = v, b = se({
604
+ keyframes: [f.value, d(f.value)],
605
+ velocity: -x(v) / n * 1e3,
606
+ damping: s,
607
+ stiffness: o,
608
+ restDelta: c,
609
+ restSpeed: u
610
+ }));
611
+ };
612
+ return A(0), {
613
+ calculatedDuration: null,
614
+ next: (v) => {
615
+ let w = !1;
616
+ return !b && T === void 0 && (w = !0, S(v), A(v)), T !== void 0 && v >= T ? b.next(v - T) : (!w && S(v), f);
617
+ }
618
+ };
619
+ }
620
+ function $o(t, e, i) {
621
+ const n = [], s = i || Q.mix || gi, o = t.length - 1;
622
+ for (let r = 0; r < o; r++) {
623
+ let a = s(t[r], t[r + 1]);
624
+ if (e) {
625
+ const l = Array.isArray(e) ? e[r] || _ : e;
626
+ a = Nt(l, a);
627
+ }
628
+ n.push(a);
629
+ }
630
+ return n;
631
+ }
632
+ function Ko(t, e, { clamp: i = !0, ease: n, mixer: s } = {}) {
633
+ const o = t.length;
634
+ if (q(o === e.length, "Both input and output ranges must be the same length", "range-length"), o === 1) return () => e[0];
635
+ if (o === 2 && e[0] === e[1]) return () => e[1];
636
+ const r = t[0] === t[1];
637
+ t[0] > t[o - 1] && (t = [...t].reverse(), e = [...e].reverse());
638
+ const a = $o(e, n, s), l = a.length, c = (u) => {
639
+ if (r && u < t[0]) return e[0];
640
+ let h = 0;
641
+ if (l > 1)
642
+ for (; h < t.length - 2 && !(u < t[h + 1]); h++) ;
643
+ const f = Lt(t[h], t[h + 1], u);
644
+ return a[h](f);
645
+ };
646
+ return i ? (u) => c(tt(t[0], t[o - 1], u)) : c;
647
+ }
648
+ function zo(t, e) {
649
+ const i = t[t.length - 1];
650
+ for (let n = 1; n <= e; n++) {
651
+ const s = Lt(0, e, n);
652
+ t.push(V(i, 1, s));
653
+ }
654
+ }
655
+ function _o(t) {
656
+ const e = [0];
657
+ return zo(e, t.length - 1), e;
658
+ }
659
+ function Go(t, e) {
660
+ return t.map((i) => i * e);
661
+ }
662
+ function Ho(t, e) {
663
+ return t.map(() => e || fi).splice(0, t.length - 1);
664
+ }
665
+ function xt({ duration: t = 300, keyframes: e, times: i, ease: n = "easeInOut" }) {
666
+ const s = no(n) ? n.map(Ui) : Ui(n) || fi, o = {
667
+ done: !1,
668
+ value: e[0]
669
+ };
670
+ if (e.length === 2 && !Array.isArray(s) && (!i || i.length !== 2 || i[0] === 0 && i[1] === 1)) {
671
+ const [l, c] = e, u = l === c ? void 0 : (Q.mix || gi)(l, c);
672
+ return {
673
+ calculatedDuration: t,
674
+ next: (h) => (o.value = u ? u(s(t > 0 ? tt(0, 1, h / t) : 1)) : c, o.done = h >= t, o)
675
+ };
676
+ }
677
+ const r = Go(i && i.length === e.length ? i : _o(e), t), a = Ko(r, e, { ease: Array.isArray(s) ? s : Ho(e, s) });
678
+ return {
679
+ calculatedDuration: t,
680
+ next: (l) => (o.value = a(l), o.done = l >= t, o)
681
+ };
682
+ }
683
+ var Xo = 5;
684
+ function Yo(t, e, i) {
685
+ const n = Math.max(e - Xo, 0);
686
+ return fs(i - t(n), e - n);
687
+ }
688
+ function qo(t, e, i = 0) {
689
+ return e <= 0 ? i : t.velocity ? t.velocity(e) : Yo((n) => t.next(n).value, e, t.next(e).value);
690
+ }
691
+ var Zo = (t) => t !== null;
692
+ function fe(t, { repeat: e, repeatType: i = "loop" }, n, s = 1) {
693
+ const o = t.filter(Zo), r = s < 0 || e && i !== "loop" && e % 2 === 1 ? 0 : o.length - 1;
694
+ return !r || n === void 0 ? o[r] : n;
695
+ }
696
+ var Jo = {
697
+ decay: je,
698
+ inertia: je,
699
+ tween: xt,
700
+ keyframes: xt,
701
+ spring: se
702
+ };
703
+ function Fs(t) {
704
+ typeof t.type == "string" && (t.type = Jo[t.type]);
705
+ }
706
+ function Os(t, e) {
707
+ return {
708
+ kind: t,
709
+ animation: e,
710
+ timestamp: k.now(),
711
+ frameTimestamp: C.timestamp,
712
+ frameIsProcessing: C.isProcessing
713
+ };
714
+ }
715
+ function js(t, e, i) {
716
+ const n = globalThis.__MOTION_INSPECT__;
717
+ if (n)
718
+ try {
719
+ n({
720
+ ...Os("animation-start", t),
721
+ options: i ? {
722
+ ...e,
723
+ ...i
724
+ } : e
725
+ });
726
+ } catch {
727
+ }
728
+ }
729
+ function Qo(t, e) {
730
+ const i = globalThis.__MOTION_INSPECT__;
731
+ if (i)
732
+ try {
733
+ i({
734
+ ...Os("layout-animation-start", t),
735
+ node: e
736
+ });
737
+ } catch {
738
+ }
739
+ }
740
+ var xi = class {
741
+ constructor() {
742
+ this.isResolved = !1;
743
+ }
744
+ get finished() {
745
+ return this._finished || (this._finished = this.isResolved ? Promise.resolve() : new Promise((t) => {
746
+ this._resolve = t;
747
+ })), this._finished;
748
+ }
749
+ updateFinished() {
750
+ this._finished = this._resolve = void 0, this.isResolved = !1;
751
+ }
752
+ notifyFinished() {
753
+ this.isResolved = !0, this._resolve?.();
754
+ }
755
+ then(t, e) {
756
+ return this.finished.then(t, e);
757
+ }
758
+ }, ta = (t) => t / 100, re = class extends xi {
759
+ constructor(t) {
760
+ super(), this.state = "idle", this.startTime = null, this.isStopped = !1, this.currentTime = 0, this.holdTime = null, this.playbackSpeed = 1, this.delayState = {
761
+ done: !1,
762
+ value: void 0
763
+ }, this.stop = () => {
764
+ const { motionValue: e } = this.options;
765
+ e && e.updatedAt !== k.now() && this.tick(k.now()), this.isStopped = !0, this.state !== "idle" && (this.teardown(), this.options.onStop?.());
766
+ }, this.options = t, this.initAnimation(), this.play(), t.autoplay === !1 && this.pause(), js(this, this.options);
767
+ }
768
+ initAnimation() {
769
+ const { options: t } = this;
770
+ Fs(t);
771
+ const { type: e = xt, repeat: i = 0, repeatDelay: n = 0, repeatType: s, velocity: o = 0 } = t;
772
+ let { keyframes: r } = t;
773
+ const a = e || xt;
774
+ process.env.NODE_ENV !== "production" && a !== xt && q(r.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${r}`, "spring-two-frames"), a !== xt && typeof r[0] != "number" && (this.mixKeyframes = Nt(ta, gi(r[0], r[1])), r = [0, 100]);
775
+ const l = a(r === t.keyframes ? t : {
776
+ ...t,
777
+ keyframes: r
778
+ });
779
+ s === "mirror" && (this.mirroredGenerator = a({
780
+ ...t,
781
+ keyframes: [...r].reverse(),
782
+ velocity: -o
783
+ })), l.calculatedDuration === null && (l.calculatedDuration = Ti(l));
784
+ const { calculatedDuration: c } = l;
785
+ this.calculatedDuration = c, this.resolvedDuration = c + n, this.totalDuration = this.resolvedDuration * (i + 1) - n, this.generator = l;
786
+ }
787
+ updateTime(t) {
788
+ const e = Math.round(t - this.startTime) * this.playbackSpeed;
789
+ this.holdTime !== null ? this.currentTime = this.holdTime : this.currentTime = e;
790
+ }
791
+ tick(t, e = !1) {
792
+ const { generator: i, totalDuration: n, mixKeyframes: s, mirroredGenerator: o, resolvedDuration: r, calculatedDuration: a } = this;
793
+ if (this.startTime === null) return i.next(0);
794
+ const { delay: l = 0, keyframes: c, repeat: u, repeatType: h, repeatDelay: f, type: p, onUpdate: d, finalKeyframe: g } = this.options;
795
+ this.speed > 0 ? this.startTime = Math.min(this.startTime, t) : this.speed < 0 && (this.startTime = Math.min(t - n / this.speed, this.startTime)), e ? this.currentTime = t : this.updateTime(t);
796
+ const m = this.currentTime - l * (this.playbackSpeed >= 0 ? 1 : -1), P = this.playbackSpeed >= 0 ? m < 0 : m > n;
797
+ this.currentTime = Math.max(m, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = n);
798
+ let x = this.currentTime, S = i;
799
+ if (u) {
800
+ const v = Math.min(this.currentTime, n) / r;
801
+ let w = Math.floor(v), M = v % 1;
802
+ !M && v >= 1 && (M = 1), M === 1 && w--, w = Math.min(w, u + 1), w % 2 && (h === "reverse" ? (M = 1 - M, f && (M -= f / r)) : h === "mirror" && (S = o)), x = tt(0, 1, M) * r;
803
+ }
804
+ let T;
805
+ P ? (this.delayState.value = c[0], T = this.delayState) : T = S.next(x), s && !P && (T.value = s(T.value));
806
+ let { done: b } = T;
807
+ !P && a !== null && (b = this.playbackSpeed >= 0 ? this.currentTime >= n : this.currentTime <= 0);
808
+ const A = this.holdTime === null && (this.state === "finished" || this.state === "running" && b);
809
+ return A && p !== je && (T.value = fe(c, this.options, g, this.speed)), d && d(T.value), A && this.finish(), T;
810
+ }
811
+ then(t, e) {
812
+ return this.finished.then(t, e);
813
+ }
814
+ get duration() {
815
+ return $(this.calculatedDuration);
816
+ }
817
+ get iterationDuration() {
818
+ const { delay: t = 0 } = this.options || {};
819
+ return this.duration + $(t);
820
+ }
821
+ get time() {
822
+ return $(this.currentTime);
823
+ }
824
+ set time(t) {
825
+ t = U(t), this.currentTime = t, this.startTime === null || this.holdTime !== null || this.playbackSpeed === 0 ? this.holdTime = t : this.driver && (this.startTime = this.driver.now() - t / this.playbackSpeed), this.driver ? this.driver.start(!1) : (this.startTime = 0, this.state = "paused", this.holdTime = t, this.tick(t));
826
+ }
827
+ getGeneratorVelocity() {
828
+ return qo(this.generator, this.currentTime, this.options.velocity);
829
+ }
830
+ get speed() {
831
+ return this.playbackSpeed;
832
+ }
833
+ set speed(t) {
834
+ const e = this.playbackSpeed !== t;
835
+ e && this.driver && this.updateTime(k.now()), this.playbackSpeed = t, e && this.driver && (this.time = $(this.currentTime));
836
+ }
837
+ play() {
838
+ if (this.isStopped) return;
839
+ const { driver: t = Oo, startTime: e } = this.options;
840
+ this.driver || (this.driver = t((n) => this.tick(n))), this.options.onPlay?.();
841
+ const i = this.driver.now();
842
+ this.state === "finished" ? (this.updateFinished(), this.startTime = i) : this.holdTime !== null ? this.startTime = i - this.holdTime : this.startTime || (this.startTime = e ?? i), this.state === "finished" && this.speed < 0 && (this.startTime += this.calculatedDuration), this.holdTime = null, this.state = "running", this.driver.start();
843
+ }
844
+ pause() {
845
+ this.state = "paused", this.updateTime(k.now()), this.holdTime = this.currentTime;
846
+ }
847
+ complete() {
848
+ this.state !== "running" && this.play(), this.state = "finished", this.holdTime = null;
849
+ }
850
+ finish() {
851
+ this.notifyFinished(), this.teardown(), this.state = "finished", this.options.onComplete?.();
852
+ }
853
+ cancel() {
854
+ this.holdTime = null, this.startTime = 0, this.tick(0), this.teardown(), this.options.onCancel?.();
855
+ }
856
+ teardown() {
857
+ this.state = "idle", this.stopDriver(), this.startTime = this.holdTime = null;
858
+ }
859
+ stopDriver() {
860
+ this.driver && (this.driver.stop(), this.driver = void 0);
861
+ }
862
+ sample(t) {
863
+ return this.startTime = 0, this.tick(t, !0);
864
+ }
865
+ attachTimeline(t) {
866
+ return this.options.allowFlatten && (this.options.type = "keyframes", this.options.ease = "linear", this.initAnimation()), this.driver?.stop(), t.observe(this);
867
+ }
868
+ }, ea = /* @__PURE__ */ new Set([
869
+ "brightness",
870
+ "contrast",
871
+ "saturate",
872
+ "opacity"
873
+ ]);
874
+ function ia(t) {
875
+ const [e, i] = t.slice(0, -1).split("(");
876
+ if (e === "drop-shadow") return t;
877
+ const [n] = i.match(mi) || [];
878
+ if (!n) return t;
879
+ const s = i.replace(n, "");
880
+ let o = ea.has(e) ? 1 : 0;
881
+ return n !== i && (o *= 100), e + "(" + o + s + ")";
882
+ }
883
+ var na = /\b([a-z-]*)\(.*?\)/gu, Ne = {
884
+ ...W,
885
+ getAnimatableNone: (t) => {
886
+ const e = t.match(na);
887
+ return e ? e.map(ia).join(" ") : t;
888
+ }
889
+ }, Ue = {
890
+ ...W,
891
+ getAnimatableNone: (t) => {
892
+ const e = W.parse(t);
893
+ return W.createTransformer(t)(e.map((i) => typeof i == "number" ? 0 : typeof i == "object" ? {
894
+ ...i,
895
+ alpha: 1
896
+ } : i));
897
+ }
898
+ }, Xi = {
899
+ ...Vt,
900
+ transform: Math.round
901
+ }, sa = {
902
+ rotate: J,
903
+ pathRotation: J,
904
+ rotateX: J,
905
+ rotateY: J,
906
+ rotateZ: J,
907
+ scale: Kt,
908
+ scaleX: Kt,
909
+ scaleY: Kt,
910
+ scaleZ: Kt,
911
+ skew: J,
912
+ skewX: J,
913
+ skewY: J,
914
+ distance: y,
915
+ translateX: y,
916
+ translateY: y,
917
+ translateZ: y,
918
+ x: y,
919
+ y,
920
+ z: y,
921
+ perspective: y,
922
+ transformPerspective: y,
923
+ opacity: kt,
924
+ originX: $i,
925
+ originY: $i,
926
+ originZ: y
927
+ }, oe = {
928
+ borderWidth: y,
929
+ borderTopWidth: y,
930
+ borderRightWidth: y,
931
+ borderBottomWidth: y,
932
+ borderLeftWidth: y,
933
+ borderRadius: y,
934
+ borderTopLeftRadius: y,
935
+ borderTopRightRadius: y,
936
+ borderBottomRightRadius: y,
937
+ borderBottomLeftRadius: y,
938
+ width: y,
939
+ maxWidth: y,
940
+ height: y,
941
+ maxHeight: y,
942
+ top: y,
943
+ right: y,
944
+ bottom: y,
945
+ left: y,
946
+ inset: y,
947
+ insetBlock: y,
948
+ insetBlockStart: y,
949
+ insetBlockEnd: y,
950
+ insetInline: y,
951
+ insetInlineStart: y,
952
+ insetInlineEnd: y,
953
+ padding: y,
954
+ paddingTop: y,
955
+ paddingRight: y,
956
+ paddingBottom: y,
957
+ paddingLeft: y,
958
+ paddingBlock: y,
959
+ paddingBlockStart: y,
960
+ paddingBlockEnd: y,
961
+ paddingInline: y,
962
+ paddingInlineStart: y,
963
+ paddingInlineEnd: y,
964
+ margin: y,
965
+ marginTop: y,
966
+ marginRight: y,
967
+ marginBottom: y,
968
+ marginLeft: y,
969
+ marginBlock: y,
970
+ marginBlockStart: y,
971
+ marginBlockEnd: y,
972
+ marginInline: y,
973
+ marginInlineStart: y,
974
+ marginInlineEnd: y,
975
+ fontSize: y,
976
+ backgroundPositionX: y,
977
+ backgroundPositionY: y,
978
+ ...sa,
979
+ zIndex: Xi,
980
+ fillOpacity: kt,
981
+ strokeOpacity: kt,
982
+ numOctaves: Xi
983
+ }, ra = {
984
+ ...oe,
985
+ color: R,
986
+ backgroundColor: R,
987
+ outlineColor: R,
988
+ fill: R,
989
+ stroke: R,
990
+ borderColor: R,
991
+ borderTopColor: R,
992
+ borderRightColor: R,
993
+ borderBottomColor: R,
994
+ borderLeftColor: R,
995
+ filter: Ne,
996
+ WebkitFilter: Ne,
997
+ mask: Ue,
998
+ WebkitMask: Ue
999
+ }, Ns = (t) => ra[t], oa = /* @__PURE__ */ new Set([Ne, Ue]);
1000
+ function wi(t, e) {
1001
+ let i = Ns(t);
1002
+ return oa.has(i) || (i = W), i.getAnimatableNone ? i.getAnimatableNone(e) : void 0;
1003
+ }
1004
+ function aa(t) {
1005
+ for (let e = 1; e < t.length; e++) t[e] ?? (t[e] = t[e - 1]);
1006
+ }
1007
+ var ct = (t) => t * 180 / Math.PI, We = (t) => {
1008
+ const e = ct(Math.atan2(t[1], t[0]));
1009
+ return $e(e);
1010
+ }, la = {
1011
+ x: 4,
1012
+ y: 5,
1013
+ translateX: 4,
1014
+ translateY: 5,
1015
+ scaleX: 0,
1016
+ scaleY: 3,
1017
+ scale: (t) => (Math.abs(t[0]) + Math.abs(t[3])) / 2,
1018
+ rotate: We,
1019
+ rotateZ: We,
1020
+ skewX: (t) => ct(Math.atan(t[1])),
1021
+ skewY: (t) => ct(Math.atan(t[2])),
1022
+ skew: (t) => (Math.abs(t[1]) + Math.abs(t[2])) / 2
1023
+ }, $e = (t) => (t = t % 360, t < 0 && (t += 360), t), Yi = We, qi = (t) => Math.sqrt(t[0] * t[0] + t[1] * t[1]), Zi = (t) => Math.sqrt(t[4] * t[4] + t[5] * t[5]), ua = {
1024
+ x: 12,
1025
+ y: 13,
1026
+ z: 14,
1027
+ translateX: 12,
1028
+ translateY: 13,
1029
+ translateZ: 14,
1030
+ scaleX: qi,
1031
+ scaleY: Zi,
1032
+ scale: (t) => (qi(t) + Zi(t)) / 2,
1033
+ rotateX: (t) => $e(ct(Math.atan2(t[6], t[5]))),
1034
+ rotateY: (t) => $e(ct(Math.atan2(-t[2], t[0]))),
1035
+ rotateZ: Yi,
1036
+ rotate: Yi,
1037
+ skewX: (t) => ct(Math.atan(t[4])),
1038
+ skewY: (t) => ct(Math.atan(t[1])),
1039
+ skew: (t) => (Math.abs(t[1]) + Math.abs(t[4])) / 2
1040
+ };
1041
+ function It(t) {
1042
+ return t.includes("scale") ? 1 : 0;
1043
+ }
1044
+ function Ke(t, e) {
1045
+ if (!t || t === "none") return It(e);
1046
+ const i = t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);
1047
+ let n, s;
1048
+ if (i)
1049
+ n = ua, s = i;
1050
+ else {
1051
+ const a = t.match(/^matrix\(([-\d.e\s,]+)\)$/u);
1052
+ n = la, s = a;
1053
+ }
1054
+ if (!s) return It(e);
1055
+ const o = n[e], r = s[1].split(",").map(ha);
1056
+ return typeof o == "function" ? o(r) : r[o];
1057
+ }
1058
+ var ca = (t, e) => {
1059
+ const { transform: i = "none" } = getComputedStyle(t);
1060
+ return Ke(i, e);
1061
+ };
1062
+ function ha(t) {
1063
+ return parseFloat(t.trim());
1064
+ }
1065
+ var Dt = [
1066
+ "transformPerspective",
1067
+ "x",
1068
+ "y",
1069
+ "z",
1070
+ "translateX",
1071
+ "translateY",
1072
+ "translateZ",
1073
+ "scale",
1074
+ "scaleX",
1075
+ "scaleY",
1076
+ "rotate",
1077
+ "rotateX",
1078
+ "rotateY",
1079
+ "rotateZ",
1080
+ "skew",
1081
+ "skewX",
1082
+ "skewY"
1083
+ ], it = /* @__PURE__ */ new Set([...Dt, "pathRotation"]), Ji = (t) => t === Vt || t === y, fa = /* @__PURE__ */ new Set([
1084
+ "x",
1085
+ "y",
1086
+ "z"
1087
+ ]), da = Dt.filter((t) => !fa.has(t));
1088
+ function ma(t) {
1089
+ const e = [];
1090
+ return da.forEach((i) => {
1091
+ const n = t.getValue(i);
1092
+ if (n !== void 0) {
1093
+ const s = n.get(), o = i.startsWith("scale") ? 1 : 0;
1094
+ if (s === o) return;
1095
+ e.push([i, s]), n.set(o);
1096
+ }
1097
+ }), e;
1098
+ }
1099
+ var pa = /* @__PURE__ */ new Set(["bottom", "right"]);
1100
+ function Qi(t, e, i, n, s, o) {
1101
+ const r = parseFloat(t);
1102
+ if (!isNaN(r)) return r;
1103
+ const { min: a, max: l } = e()[i], c = l - a;
1104
+ return o === "border-box" ? c : c - parseFloat(n) - parseFloat(s);
1105
+ }
1106
+ var ht = {
1107
+ width: ({ width: t, paddingLeft: e = "0", paddingRight: i = "0", boxSizing: n }, s) => Qi(t, s, "x", e, i, n),
1108
+ height: ({ height: t, paddingTop: e = "0", paddingBottom: i = "0", boxSizing: n }, s) => Qi(t, s, "y", e, i, n),
1109
+ top: ({ top: t }) => parseFloat(t),
1110
+ left: ({ left: t }) => parseFloat(t),
1111
+ bottom: ({ top: t }, e) => {
1112
+ const { y: i } = e();
1113
+ return parseFloat(t) + (i.max - i.min);
1114
+ },
1115
+ right: ({ left: t }, e) => {
1116
+ const { x: i } = e();
1117
+ return parseFloat(t) + (i.max - i.min);
1118
+ },
1119
+ x: ({ transform: t }) => Ke(t, "x"),
1120
+ y: ({ transform: t }) => Ke(t, "y")
1121
+ };
1122
+ ht.translateX = ht.x;
1123
+ ht.translateY = ht.y;
1124
+ var ft = /* @__PURE__ */ new Set(), ze = !1, _e = !1, Ge = !1;
1125
+ function Us() {
1126
+ if (_e) {
1127
+ const t = [], e = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set();
1128
+ ft.forEach((s) => {
1129
+ s.needsMeasurement && (t.push(s), e.add(s.element), pa.has(s.name) && i.add(s.element));
1130
+ });
1131
+ const n = /* @__PURE__ */ new Map();
1132
+ i.forEach((s) => {
1133
+ const o = ma(s);
1134
+ o.length && (n.set(s, o), s.render());
1135
+ }), t.forEach((s) => s.measureInitialState()), e.forEach((s) => {
1136
+ s.render();
1137
+ const o = n.get(s);
1138
+ o && o.forEach(([r, a]) => {
1139
+ s.getValue(r)?.set(a);
1140
+ });
1141
+ }), t.forEach((s) => s.measureEndState()), t.forEach((s) => {
1142
+ s.suspendedScrollY !== void 0 && window.scrollTo(0, s.suspendedScrollY);
1143
+ });
1144
+ }
1145
+ _e = !1, ze = !1, ft.forEach((t) => t.complete(Ge)), ft.clear();
1146
+ }
1147
+ function Ws() {
1148
+ ft.forEach((t) => {
1149
+ t.readKeyframes(), t.needsMeasurement && (_e = !0);
1150
+ });
1151
+ }
1152
+ function va() {
1153
+ Ge = !0, Ws(), Us(), Ge = !1;
1154
+ }
1155
+ function ga(t, e, i) {
1156
+ if (typeof t == "string") {
1157
+ if (ai(t) || li(t)) return parseFloat(t);
1158
+ if (!W.test(t) && W.test(i)) return wi(e, i);
1159
+ }
1160
+ return t ?? void 0;
1161
+ }
1162
+ var Si = class {
1163
+ constructor(t, e, i, n, s, o = !1) {
1164
+ this.state = "pending", this.isAsync = !1, this.needsMeasurement = !1, this.unresolvedKeyframes = [...t], this.onComplete = e, this.name = i, this.motionValue = n, this.element = s, this.isAsync = o;
1165
+ }
1166
+ scheduleResolve() {
1167
+ this.state = "scheduled", this.isAsync ? (ft.add(this), ze || (ze = !0, D.read(Ws), D.resolveKeyframes(Us))) : (this.readKeyframes(), this.complete());
1168
+ }
1169
+ readKeyframes() {
1170
+ const { unresolvedKeyframes: t, name: e, element: i, motionValue: n } = this;
1171
+ if (t[0] === null) {
1172
+ const s = n?.get(), o = t[t.length - 1];
1173
+ if (s !== void 0) t[0] = s;
1174
+ else if (i && e) {
1175
+ const r = ga(i.readValue(e, o), e, o);
1176
+ r !== void 0 && (t[0] = r);
1177
+ }
1178
+ t[0] === void 0 && (t[0] = o), n && s === void 0 && n.set(t[0]);
1179
+ }
1180
+ aa(t);
1181
+ }
1182
+ setFinalKeyframe() {
1183
+ }
1184
+ measureInitialState() {
1185
+ }
1186
+ renderEndStyles() {
1187
+ }
1188
+ measureEndState() {
1189
+ }
1190
+ complete(t = !1) {
1191
+ this.state = "complete", this.onComplete(this.unresolvedKeyframes, this.finalKeyframe, t), ft.delete(this);
1192
+ }
1193
+ cancel() {
1194
+ this.state === "scheduled" && (ft.delete(this), this.state = "pending");
1195
+ }
1196
+ resume() {
1197
+ this.state === "pending" && this.scheduleResolve();
1198
+ }
1199
+ }, ya = (t) => t.startsWith("--");
1200
+ function $s(t, e, i) {
1201
+ ya(e) ? t.style.setProperty(e, i) : t.style[e] = i;
1202
+ }
1203
+ var Ta = {};
1204
+ function Ks(t, e) {
1205
+ const i = /* @__PURE__ */ hs(t);
1206
+ return () => Ta[e] ?? i();
1207
+ }
1208
+ var xa = /* @__PURE__ */ Ks(() => window.ScrollTimeline !== void 0, "scrollTimeline"), zs = /* @__PURE__ */ Ks(() => {
1209
+ try {
1210
+ document.createElement("div").animate({ opacity: 0 }, { easing: "linear(0, 1)" });
1211
+ } catch {
1212
+ return !1;
1213
+ }
1214
+ return !0;
1215
+ }, "linearEasing"), Et = ([t, e, i, n]) => `cubic-bezier(${t}, ${e}, ${i}, ${n})`, tn = {
1216
+ linear: "linear",
1217
+ ease: "ease",
1218
+ easeIn: "ease-in",
1219
+ easeOut: "ease-out",
1220
+ easeInOut: "ease-in-out",
1221
+ circIn: /* @__PURE__ */ Et([
1222
+ 0,
1223
+ 0.65,
1224
+ 0.55,
1225
+ 1
1226
+ ]),
1227
+ circOut: /* @__PURE__ */ Et([
1228
+ 0.55,
1229
+ 0,
1230
+ 1,
1231
+ 0.45
1232
+ ]),
1233
+ backIn: /* @__PURE__ */ Et([
1234
+ 0.31,
1235
+ 0.01,
1236
+ 0.66,
1237
+ -0.59
1238
+ ]),
1239
+ backOut: /* @__PURE__ */ Et([
1240
+ 0.33,
1241
+ 1.53,
1242
+ 0.69,
1243
+ 0.99
1244
+ ])
1245
+ };
1246
+ function _s(t, e) {
1247
+ if (t) return typeof t == "function" ? zs() ? Ls(t, e) : "ease-out" : ws(t) ? Et(t) : Array.isArray(t) ? t.map((i) => _s(i, e) || tn.easeOut) : tn[t];
1248
+ }
1249
+ function wa(t, e, i, { delay: n = 0, duration: s = 300, repeat: o = 0, repeatType: r = "loop", ease: a = "easeOut", times: l } = {}, c = void 0) {
1250
+ const u = { [e]: i };
1251
+ l && (u.offset = l);
1252
+ const h = _s(a, s);
1253
+ Array.isArray(h) && (u.easing = h);
1254
+ const f = {
1255
+ delay: n,
1256
+ duration: s,
1257
+ easing: Array.isArray(h) ? "linear" : h,
1258
+ fill: "both",
1259
+ iterations: o + 1,
1260
+ direction: r === "reverse" ? "alternate" : "normal"
1261
+ };
1262
+ return c && (f.pseudoElement = c), t.animate(u, f);
1263
+ }
1264
+ function Gs(t) {
1265
+ return typeof t == "function" && "applyToOptions" in t;
1266
+ }
1267
+ function Sa({ type: t, ...e }) {
1268
+ return Gs(t) && zs() ? t.applyToOptions(e) : (e.duration ?? (e.duration = 300), e.ease ?? (e.ease = "easeOut"), e);
1269
+ }
1270
+ var Hs = class extends xi {
1271
+ constructor(t) {
1272
+ if (super(), this.finishedTime = null, this.isStopped = !1, this.manualStartTime = null, !t) return;
1273
+ const { element: e, name: i, keyframes: n, pseudoElement: s, allowFlatten: o = !1, finalKeyframe: r, onComplete: a } = t;
1274
+ this.isPseudoElement = !!s, this.allowFlatten = o, this.options = t, q(typeof t.type != "string", `Mini animate() doesn't support "type" as a string.`, "mini-spring");
1275
+ const l = Sa(t);
1276
+ this.animation = wa(e, i, n, l, s), l.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
1277
+ if (this.finishedTime = this.time, !s) {
1278
+ const c = fe(n, this.options, r, this.speed);
1279
+ this.updateMotionValue && this.updateMotionValue(c), $s(e, i, c), this.animation.cancel();
1280
+ }
1281
+ a?.(), this.notifyFinished();
1282
+ }, js(this, t, l);
1283
+ }
1284
+ play() {
1285
+ this.isStopped || (this.manualStartTime = null, this.animation.play(), this.state === "finished" && this.updateFinished());
1286
+ }
1287
+ pause() {
1288
+ this.animation.pause();
1289
+ }
1290
+ complete() {
1291
+ this.animation.finish?.();
1292
+ }
1293
+ cancel() {
1294
+ try {
1295
+ this.animation.cancel();
1296
+ } catch {
1297
+ }
1298
+ }
1299
+ stop() {
1300
+ if (this.isStopped) return;
1301
+ this.isStopped = !0;
1302
+ const { state: t } = this;
1303
+ t === "idle" || t === "finished" || (this.updateMotionValue ? this.updateMotionValue() : this.commitStyles(), this.isPseudoElement || this.cancel());
1304
+ }
1305
+ commitStyles() {
1306
+ const t = this.options?.element;
1307
+ !this.isPseudoElement && t?.isConnected && this.animation.commitStyles?.();
1308
+ }
1309
+ get duration() {
1310
+ const t = this.animation.effect?.getComputedTiming?.().duration || 0;
1311
+ return $(Number(t));
1312
+ }
1313
+ get iterationDuration() {
1314
+ const { delay: t = 0 } = this.options || {};
1315
+ return this.duration + $(t);
1316
+ }
1317
+ get time() {
1318
+ return $(Number(this.animation.currentTime) || 0);
1319
+ }
1320
+ set time(t) {
1321
+ const e = this.finishedTime !== null;
1322
+ this.manualStartTime = null, this.finishedTime = null, this.animation.currentTime = U(t), e && this.animation.pause();
1323
+ }
1324
+ get speed() {
1325
+ return this.animation.playbackRate;
1326
+ }
1327
+ set speed(t) {
1328
+ t < 0 && (this.finishedTime = null), this.animation.playbackRate = t;
1329
+ }
1330
+ get state() {
1331
+ return this.finishedTime !== null ? "finished" : this.animation.playState;
1332
+ }
1333
+ get startTime() {
1334
+ return this.manualStartTime ?? Number(this.animation.startTime);
1335
+ }
1336
+ set startTime(t) {
1337
+ this.manualStartTime = this.animation.startTime = t;
1338
+ }
1339
+ attachTimeline({ timeline: t, onAttach: e, observe: i }) {
1340
+ return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, t && xa() ? (this.animation.timeline = t, e?.(this.animation), _) : i(this);
1341
+ }
1342
+ }, Xs = {
1343
+ anticipate: ys,
1344
+ backInOut: gs,
1345
+ circInOut: xs
1346
+ };
1347
+ function Pa(t) {
1348
+ return t in Xs;
1349
+ }
1350
+ function ba(t) {
1351
+ typeof t.ease == "string" && Pa(t.ease) && (t.ease = Xs[t.ease]);
1352
+ }
1353
+ var Se = 10, Aa = class extends Hs {
1354
+ constructor(t) {
1355
+ ba(t), Fs(t), super(t), t.startTime !== void 0 && t.autoplay !== !1 && (this.startTime = t.startTime), this.options = t;
1356
+ }
1357
+ updateMotionValue(t) {
1358
+ const { motionValue: e, onUpdate: i, onComplete: n, element: s, ...o } = this.options;
1359
+ if (!e) return;
1360
+ if (t !== void 0) {
1361
+ e.set(t);
1362
+ return;
1363
+ }
1364
+ const r = new re({
1365
+ ...o,
1366
+ autoplay: !1
1367
+ }), a = Math.max(Se, k.now() - this.startTime), l = tt(0, Se, a - Se), c = r.sample(a).value, { name: u } = this.options;
1368
+ s && u && $s(s, u, c), e.setWithVelocity(r.sample(Math.max(0, a - l)).value, c, l), r.stop();
1369
+ }
1370
+ }, en = (t, e) => e === "zIndex" ? !1 : !!(typeof t == "number" || Array.isArray(t) || typeof t == "string" && (W.test(t) || t === "0") && !t.startsWith("url("));
1371
+ function Va(t) {
1372
+ const e = t[0];
1373
+ if (t.length === 1) return !0;
1374
+ for (let i = 0; i < t.length; i++) if (t[i] !== e) return !0;
1375
+ }
1376
+ function Da(t, e, i, n) {
1377
+ const s = t[0];
1378
+ if (s === null) return !1;
1379
+ if (e === "display" || e === "visibility") return !0;
1380
+ const o = t[t.length - 1], r = en(s, e), a = en(o, e);
1381
+ return !r || !a ? (r !== a && mt(!1, `You are trying to animate ${e} from "${s}" to "${o}". "${r ? o : s}" is not an animatable value.`, "value-not-animatable"), !1) : Va(t) || (i === "spring" || Gs(i)) && n;
1382
+ }
1383
+ function He(t) {
1384
+ t.duration = 0, t.type = "keyframes";
1385
+ }
1386
+ var Xe = /* @__PURE__ */ new Set([
1387
+ "opacity",
1388
+ "clipPath",
1389
+ "filter",
1390
+ "transform",
1391
+ "backgroundColor"
1392
+ ]), Ma = /^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;
1393
+ function Ea(t) {
1394
+ for (let e = 0; e < t.length; e++) if (typeof t[e] == "string" && Ma.test(t[e])) return !0;
1395
+ return !1;
1396
+ }
1397
+ var nn = /* @__PURE__ */ new Set([
1398
+ "color",
1399
+ "backgroundColor",
1400
+ "outlineColor",
1401
+ "fill",
1402
+ "stroke",
1403
+ "borderColor",
1404
+ "borderTopColor",
1405
+ "borderRightColor",
1406
+ "borderBottomColor",
1407
+ "borderLeftColor"
1408
+ ]), Ca = /* @__PURE__ */ hs(() => Object.hasOwnProperty.call(Element.prototype, "animate"));
1409
+ function Ra(t) {
1410
+ const { motionValue: e, name: i, repeatDelay: n, repeatType: s, damping: o, type: r, keyframes: a } = t;
1411
+ if (!i || !(Xe.has(i) || nn.has(i))) return !1;
1412
+ const l = e?.owner?.current;
1413
+ if (!(l instanceof HTMLElement) && !(l instanceof SVGElement)) return !1;
1414
+ const { onUpdate: c, transformTemplate: u } = e.owner.getProps();
1415
+ return Ca() && (Xe.has(i) || nn.has(i) && Ea(a)) && (i !== "transform" || !u) && !c && !n && s !== "mirror" && o !== 0 && r !== "inertia";
1416
+ }
1417
+ var La = 40, ka = class extends xi {
1418
+ constructor(t) {
1419
+ super(), this.stop = () => {
1420
+ this._animation && (this._animation.stop(), this.stopTimeline?.()), this.keyframeResolver?.cancel();
1421
+ }, this.createdAt = k.now();
1422
+ const { keyframes: e, name: i, motionValue: n, element: s } = t, o = t;
1423
+ o.autoplay ?? (o.autoplay = !0), o.delay ?? (o.delay = 0), o.type ?? (o.type = "keyframes"), o.repeat ?? (o.repeat = 0), o.repeatDelay ?? (o.repeatDelay = 0), o.repeatType ?? (o.repeatType = "loop");
1424
+ const r = s?.KeyframeResolver || Si;
1425
+ this.keyframeResolver = new r(e, (a, l, c) => this.onKeyframesResolved(a, l, o, !c), i, n, s), this.keyframeResolver?.scheduleResolve();
1426
+ }
1427
+ onKeyframesResolved(t, e, i, n) {
1428
+ this.keyframeResolver = void 0;
1429
+ const { name: s, type: o, velocity: r, delay: a, isHandoff: l, onUpdate: c } = i;
1430
+ this.resolvedAt = k.now();
1431
+ let u = !0;
1432
+ Da(t, s, o, r) || (u = !1, (Q.instantAnimations || !a) && c?.(fe(t, i, e)), t[0] = t[t.length - 1], He(i), i.repeat = 0);
1433
+ const h = n ? this.resolvedAt ? this.resolvedAt - this.createdAt > La ? this.resolvedAt : this.createdAt : this.createdAt : void 0, { onComplete: f } = i;
1434
+ i.startTime ?? (i.startTime = h), i.finalKeyframe = e, i.keyframes = t, i.onComplete = () => {
1435
+ f?.(), this.notifyFinished();
1436
+ };
1437
+ const p = u && !l && Ra(i);
1438
+ let d;
1439
+ if (p) {
1440
+ i.element = i.motionValue?.owner?.current;
1441
+ try {
1442
+ d = new Aa(i);
1443
+ } catch {
1444
+ d = new re(i);
1445
+ }
1446
+ } else d = new re(i);
1447
+ this.pendingTimeline && (this.stopTimeline = d.attachTimeline(this.pendingTimeline), this.pendingTimeline = void 0), this._animation = d;
1448
+ }
1449
+ get finished() {
1450
+ return this._animation ? this._animation.finished : super.finished;
1451
+ }
1452
+ then(t, e) {
1453
+ return this.finished.finally(t).then(() => {
1454
+ });
1455
+ }
1456
+ get animation() {
1457
+ return this._animation || (this.keyframeResolver?.resume(), va()), this._animation;
1458
+ }
1459
+ get duration() {
1460
+ return this.animation.duration;
1461
+ }
1462
+ get iterationDuration() {
1463
+ return this.animation.iterationDuration;
1464
+ }
1465
+ get time() {
1466
+ return this.animation.time;
1467
+ }
1468
+ set time(t) {
1469
+ this.animation.time = t;
1470
+ }
1471
+ get speed() {
1472
+ return this.animation.speed;
1473
+ }
1474
+ get state() {
1475
+ return this.animation.state;
1476
+ }
1477
+ set speed(t) {
1478
+ this.animation.speed = t;
1479
+ }
1480
+ get startTime() {
1481
+ return this.animation.startTime;
1482
+ }
1483
+ attachTimeline(t) {
1484
+ return this._animation ? this.stopTimeline = this.animation.attachTimeline(t) : this.pendingTimeline = t, () => this.stop();
1485
+ }
1486
+ play() {
1487
+ this.animation.play();
1488
+ }
1489
+ pause() {
1490
+ this.animation.pause();
1491
+ }
1492
+ complete() {
1493
+ this.animation.complete();
1494
+ }
1495
+ cancel() {
1496
+ this._animation && this.animation.cancel(), this.keyframeResolver?.cancel();
1497
+ }
1498
+ };
1499
+ function Ys(t, e, i, n = 0, s = 1) {
1500
+ const o = Array.from(t).sort((l, c) => l.sortNodePosition(c)).indexOf(e), r = t.size, a = (r - 1) * n;
1501
+ return typeof i == "function" ? i(o, r) : s === 1 ? o * n : a - o * n;
1502
+ }
1503
+ var sn = 30, Ba = (t) => !isNaN(parseFloat(t)), rn = { current: void 0 }, Ia = class {
1504
+ constructor(t, e = {}) {
1505
+ this.canTrackVelocity = null, this.events = {}, this.updateAndNotify = (i) => {
1506
+ const n = k.now();
1507
+ if (this.updatedAt !== n && this.setPrevFrameValue(), this.prev = this.current, this.setCurrent(i), this.current !== this.prev && (this.notifyChange(), this.dependents))
1508
+ for (const s of this.dependents) s.dirty();
1509
+ }, this.hasAnimated = !1, this.setCurrent(t), this.owner = e.owner;
1510
+ }
1511
+ setCurrent(t) {
1512
+ this.current = t, this.updatedAt = k.now(), this.canTrackVelocity === null && t !== void 0 && (this.canTrackVelocity = Ba(this.current));
1513
+ }
1514
+ setPrevFrameValue(t = this.current) {
1515
+ this.prevFrameValue = t, this.prevUpdatedAt = this.updatedAt;
1516
+ }
1517
+ onChange(t) {
1518
+ return process.env.NODE_ENV !== "production" && ui(!1, 'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'), this.on("change", t);
1519
+ }
1520
+ on(t, e) {
1521
+ var i;
1522
+ return t === "change" ? this.onChangeSubscribe(e) : ((i = this.events)[t] || (i[t] = new ie())).add(e);
1523
+ }
1524
+ onChangeSubscribe(t) {
1525
+ const { events: e } = this;
1526
+ return !e.change && !this.changeSubscriber ? this.changeSubscriber = t : (e.change || (e.change = new ie(), e.change.add(this.changeSubscriber), this.changeSubscriber = void 0), e.change.add(t)), () => {
1527
+ this.changeSubscriber === t ? this.changeSubscriber = void 0 : e.change?.remove(t), this.stopIfUnobserved();
1528
+ };
1529
+ }
1530
+ stopIfUnobserved() {
1531
+ D.read(() => {
1532
+ !this.changeSubscriber && !this.events.change?.getSize() && this.stop();
1533
+ });
1534
+ }
1535
+ clearListeners() {
1536
+ this.changeSubscriber = void 0;
1537
+ for (const t in this.events) this.events[t].clear();
1538
+ }
1539
+ attach(t, e) {
1540
+ this.passiveEffect = t, this.stopPassiveEffect = e;
1541
+ }
1542
+ set(t) {
1543
+ this.passiveEffect ? this.passiveEffect(t, this.updateAndNotify) : this.updateAndNotify(t);
1544
+ }
1545
+ setWithVelocity(t, e, i) {
1546
+ this.set(e), this.prev = void 0, this.prevFrameValue = t, this.prevUpdatedAt = this.updatedAt - i;
1547
+ }
1548
+ jump(t, e = !0) {
1549
+ this.updateAndNotify(t), this.prev = t, this.prevUpdatedAt = this.prevFrameValue = void 0, e && this.stop(), this.stopPassiveEffect && this.stopPassiveEffect();
1550
+ }
1551
+ dirty() {
1552
+ this.notifyChange();
1553
+ }
1554
+ notifyChange() {
1555
+ const { current: t, changeSubscriber: e } = this;
1556
+ e ? e(t) : this.events.change?.notify(t);
1557
+ }
1558
+ addDependent(t) {
1559
+ this.dependents || (this.dependents = /* @__PURE__ */ new Set()), this.dependents.add(t);
1560
+ }
1561
+ removeDependent(t) {
1562
+ this.dependents && this.dependents.delete(t);
1563
+ }
1564
+ get() {
1565
+ return rn.current && rn.current.push(this), this.current;
1566
+ }
1567
+ getPrevious() {
1568
+ return this.prev;
1569
+ }
1570
+ getVelocity() {
1571
+ const t = k.now();
1572
+ if (!this.canTrackVelocity || this.prevFrameValue === void 0 || t - this.updatedAt > sn) return 0;
1573
+ const e = Math.min(this.updatedAt - this.prevUpdatedAt, sn);
1574
+ return fs(parseFloat(this.current) - parseFloat(this.prevFrameValue), e);
1575
+ }
1576
+ start(t) {
1577
+ return this.stop(), new Promise((e) => {
1578
+ this.hasAnimated = !0;
1579
+ let i = !1, n;
1580
+ n = t(() => {
1581
+ i = !0, this.events.animationComplete?.notify(), this.animation === n && this.clearAnimation(), e();
1582
+ }), i || (this.animation = n), this.events.animationStart?.notify();
1583
+ });
1584
+ }
1585
+ stop() {
1586
+ this.animation && (this.animation.stop(), this.events.animationCancel && this.events.animationCancel.notify()), this.clearAnimation();
1587
+ }
1588
+ isAnimating() {
1589
+ return !!this.animation;
1590
+ }
1591
+ clearAnimation() {
1592
+ this.animation = void 0;
1593
+ }
1594
+ destroy() {
1595
+ this.dependents?.clear(), this.events.destroy?.notify(), this.clearListeners(), this.stop(), this.stopPassiveEffect && this.stopPassiveEffect();
1596
+ }
1597
+ };
1598
+ function bt(t, e) {
1599
+ return new Ia(t, e);
1600
+ }
1601
+ function qs(t, e) {
1602
+ if (t?.inherit && e) {
1603
+ const { inherit: i, ...n } = t;
1604
+ return {
1605
+ ...e,
1606
+ ...n
1607
+ };
1608
+ }
1609
+ return t;
1610
+ }
1611
+ function Pi(t, e) {
1612
+ const i = t?.[e] ?? t?.default ?? t;
1613
+ return i !== t ? qs(i, t) : i;
1614
+ }
1615
+ var Fa = {
1616
+ type: "spring",
1617
+ stiffness: 500,
1618
+ damping: 25,
1619
+ restSpeed: 10
1620
+ }, Oa = (t) => ({
1621
+ type: "spring",
1622
+ stiffness: 550,
1623
+ damping: t === 0 ? 2 * Math.sqrt(550) : 30,
1624
+ restSpeed: 10
1625
+ }), ja = {
1626
+ type: "keyframes",
1627
+ duration: 0.8
1628
+ }, Na = {
1629
+ type: "keyframes",
1630
+ ease: [
1631
+ 0.25,
1632
+ 0.1,
1633
+ 0.35,
1634
+ 1
1635
+ ],
1636
+ duration: 0.3
1637
+ }, Ua = (t, { keyframes: e }) => e.length > 2 ? ja : it.has(t) ? t.startsWith("scale") ? Oa(e[1]) : Fa : Na, Wa = /* @__PURE__ */ new Set([
1638
+ "when",
1639
+ "delay",
1640
+ "delayChildren",
1641
+ "staggerChildren",
1642
+ "staggerDirection",
1643
+ "repeat",
1644
+ "repeatType",
1645
+ "repeatDelay",
1646
+ "from",
1647
+ "elapsed"
1648
+ ]);
1649
+ function $a(t) {
1650
+ for (const e in t) if (!Wa.has(e)) return !0;
1651
+ return !1;
1652
+ }
1653
+ var bi = (t, e, i, n = {}, s, o) => (r) => {
1654
+ const a = Pi(n, t) || {}, l = a.delay || n.delay || 0;
1655
+ let { elapsed: c = 0 } = n;
1656
+ c = c - U(l);
1657
+ const u = {
1658
+ keyframes: Array.isArray(i) ? i : [null, i],
1659
+ ease: "easeOut",
1660
+ velocity: e.getVelocity(),
1661
+ ...a,
1662
+ delay: -c,
1663
+ onUpdate: (f) => {
1664
+ e.set(f), a.onUpdate && a.onUpdate(f);
1665
+ },
1666
+ onComplete: () => {
1667
+ r(), a.onComplete && a.onComplete();
1668
+ },
1669
+ name: t,
1670
+ motionValue: e,
1671
+ element: o ? void 0 : s
1672
+ };
1673
+ $a(a) || Object.assign(u, Ua(t, u)), u.duration && (u.duration = U(u.duration)), u.repeatDelay && (u.repeatDelay = U(u.repeatDelay)), u.from !== void 0 && (u.keyframes[0] = u.from);
1674
+ let h = !1;
1675
+ if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (He(u), u.delay === 0 && (h = !0)), (Q.instantAnimations || Q.skipAnimations || s?.shouldSkipAnimations || a.skipAnimations) && (h = !0, He(u), u.delay = 0), u.allowFlatten = !a.type && !a.ease, h && !o && e.get() !== void 0) {
1676
+ const f = fe(u.keyframes, a);
1677
+ if (f !== void 0) {
1678
+ D.update(() => {
1679
+ u.onUpdate(f), u.onComplete();
1680
+ });
1681
+ return;
1682
+ }
1683
+ }
1684
+ return a.isSync ? new re(u) : new ka(u);
1685
+ }, Ka = /^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;
1686
+ function za(t) {
1687
+ const e = Ka.exec(t);
1688
+ if (!e) return [,];
1689
+ const [, i, n, s] = e;
1690
+ return [`--${i ?? n}`, s];
1691
+ }
1692
+ var _a = 4;
1693
+ function Zs(t, e, i = 1) {
1694
+ q(i <= _a, `Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`, "max-css-var-depth");
1695
+ const [n, s] = za(t);
1696
+ if (!n) return;
1697
+ const o = window.getComputedStyle(e).getPropertyValue(n);
1698
+ if (o) {
1699
+ const r = o.trim();
1700
+ return ai(r) ? parseFloat(r) : r;
1701
+ }
1702
+ return di(s) ? Zs(s, e, i + 1) : s;
1703
+ }
1704
+ function Ga(t) {
1705
+ const e = [{}, {}];
1706
+ return t?.values.forEach((i, n) => {
1707
+ e[0][n] = i.get(), e[1][n] = i.getVelocity();
1708
+ }), e;
1709
+ }
1710
+ function Js(t, e, i, n) {
1711
+ const s = (o) => typeof o == "function" ? o(i !== void 0 ? i : t.custom, ...Ga(n)) : o;
1712
+ return e = s(e), typeof e == "string" && (e = t.variants && t.variants[e]), s(e);
1713
+ }
1714
+ function dt(t, e, i) {
1715
+ return Js(t.getProps(), e, i, t);
1716
+ }
1717
+ var Qs = (t, e) => e === "exit" ? t.presenceContext?.custom : void 0, tr = /* @__PURE__ */ new Set([
1718
+ "width",
1719
+ "height",
1720
+ "top",
1721
+ "left",
1722
+ "right",
1723
+ "bottom",
1724
+ ...Dt
1725
+ ]), Ha = (t) => Array.isArray(t);
1726
+ function Xa(t, e, i) {
1727
+ t.hasValue(e) ? t.getValue(e).set(i) : t.addValue(e, bt(i));
1728
+ }
1729
+ function Ya(t) {
1730
+ return Ha(t) ? t[t.length - 1] || 0 : t;
1731
+ }
1732
+ function qa(t, e) {
1733
+ let { transitionEnd: i = {}, transition: n = {}, ...s } = dt(t, e) || {};
1734
+ s = {
1735
+ ...s,
1736
+ ...i
1737
+ };
1738
+ for (const o in s) Xa(t, o, Ya(s[o]));
1739
+ }
1740
+ var B = (t) => !!(t && t.getVelocity);
1741
+ function Za(t) {
1742
+ return !!(B(t) && t.add);
1743
+ }
1744
+ function Ye(t, e) {
1745
+ const i = t.getValue("willChange");
1746
+ if (Za(i)) return i.add(e);
1747
+ if (!i && Q.WillChange) {
1748
+ const n = new Q.WillChange("auto");
1749
+ t.addValue("willChange", n), n.add(e);
1750
+ }
1751
+ }
1752
+ function Ai(t) {
1753
+ return t.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`);
1754
+ }
1755
+ var Ja = "framerAppearId", er = "data-" + Ai(Ja);
1756
+ function ir(t) {
1757
+ return t.props[er];
1758
+ }
1759
+ var Qa = typeof window < "u";
1760
+ function tl({ protectedKeys: t, needsAnimating: e }, i) {
1761
+ const n = i in t && !e[i];
1762
+ return e[i] = !1, n;
1763
+ }
1764
+ function nr(t, e, { delay: i = 0, transitionOverride: n, type: s } = {}) {
1765
+ let { transition: o, transitionEnd: r, ...a } = e;
1766
+ const l = t.getDefaultTransition();
1767
+ o = o ? qs(o, l) : l;
1768
+ const c = o?.reduceMotion, u = o?.skipAnimations;
1769
+ n && (o = n);
1770
+ const h = [], f = s && t.animationState?.getState()[s], p = o?.path;
1771
+ p && p.animateVisualElement(t, a, o, i, h);
1772
+ for (const d in a) {
1773
+ const g = t.getValue(d, t.latestValues[d] ?? null), m = a[d];
1774
+ if (m === void 0 || f && tl(f, d)) continue;
1775
+ const P = {
1776
+ delay: i,
1777
+ ...Pi(o || {}, d)
1778
+ };
1779
+ u && (P.skipAnimations = !0);
1780
+ const x = g.get();
1781
+ if (x !== void 0 && !g.isAnimating() && !Array.isArray(m) && m === x && !P.velocity) {
1782
+ D.update(() => g.set(m));
1783
+ continue;
1784
+ }
1785
+ let S = !1;
1786
+ if (Qa && window.MotionHandoffAnimation) {
1787
+ const A = ir(t);
1788
+ if (A) {
1789
+ const v = window.MotionHandoffAnimation(A, d, D);
1790
+ v !== null && (P.startTime = v, S = !0);
1791
+ }
1792
+ }
1793
+ Ye(t, d);
1794
+ const T = c ?? t.shouldReduceMotion;
1795
+ g.start(bi(d, g, m, T && tr.has(d) ? { type: !1 } : P, t, S));
1796
+ const b = g.animation;
1797
+ b && h.push(b);
1798
+ }
1799
+ if (r) {
1800
+ const d = () => D.update(() => {
1801
+ r && qa(t, r);
1802
+ });
1803
+ h.length ? Promise.all(h).then(d) : d();
1804
+ }
1805
+ return h;
1806
+ }
1807
+ function qe(t, e, i = {}) {
1808
+ const n = dt(t, e, Qs(t, i.type)), s = i.transitionOverride || (n?.transition ?? (t.getDefaultTransition() || {})), o = () => Promise.all(n ? nr(t, n, i) : []), r = (l = 0) => {
1809
+ const { variantChildren: c } = t, { delayChildren: u = 0, staggerChildren: h, staggerDirection: f } = s, p = [];
1810
+ return c?.forEach((d) => {
1811
+ d.notify("AnimationStart", e), p.push(qe(d, e, {
1812
+ ...i,
1813
+ delay: l + (typeof u == "function" ? 0 : u) + Ys(c, d, u, h, f)
1814
+ }).then(() => d.notify("AnimationComplete", e)));
1815
+ }), Promise.all(p);
1816
+ }, { when: a } = s;
1817
+ return a ? a === "beforeChildren" ? o().then(() => r()) : r().then(o) : Promise.all([o(), r(i.delay)]);
1818
+ }
1819
+ function el(t, e, i = {}) {
1820
+ return t.notify("AnimationStart", e), (Array.isArray(e) ? Promise.all(e.map((n) => qe(t, n, i))) : typeof e == "string" ? qe(t, e, i) : Promise.all(nr(t, dt(t, e, i.custom), i))).then(() => {
1821
+ t.notify("AnimationComplete", e);
1822
+ });
1823
+ }
1824
+ var il = {
1825
+ test: (t) => t === "auto",
1826
+ parse: (t) => t
1827
+ }, nl = (t) => (e) => e.test(t), sl = [
1828
+ Vt,
1829
+ y,
1830
+ Y,
1831
+ J,
1832
+ mo,
1833
+ fo,
1834
+ il
1835
+ ], on = (t) => sl.find(nl(t));
1836
+ function rl(t) {
1837
+ return typeof t == "number" ? t === 0 : t !== null ? t === "none" || t === "0" || li(t) : !0;
1838
+ }
1839
+ var ol = /* @__PURE__ */ new Set([
1840
+ "auto",
1841
+ "none",
1842
+ "0"
1843
+ ]);
1844
+ function al(t, e, i) {
1845
+ let n = 0, s;
1846
+ for (; n < t.length && !s; ) {
1847
+ const o = t[n];
1848
+ typeof o == "string" && !ol.has(o) && xo(o) && (s = t[n]), n++;
1849
+ }
1850
+ if (s && i) for (const o of e)
1851
+ t[o] !== s && (t[o] = wi(i, s));
1852
+ }
1853
+ var ll = class extends Si {
1854
+ constructor(t, e, i, n, s) {
1855
+ super(t, e, i, n, s, !0);
1856
+ }
1857
+ readKeyframes() {
1858
+ const { unresolvedKeyframes: t, element: e, name: i } = this;
1859
+ if (!e || !e.current) return;
1860
+ super.readKeyframes();
1861
+ for (let a = 0; a < t.length; a++) {
1862
+ let l = t[a];
1863
+ if (typeof l == "string" && (l = l.trim(), di(l))) {
1864
+ const c = Zs(l, e.current);
1865
+ c !== void 0 && (t[a] = c), a === t.length - 1 && (this.finalKeyframe = l);
1866
+ }
1867
+ }
1868
+ if (this.resolveNoneKeyframes(), !tr.has(i) || t.length !== 2) return;
1869
+ const [n, s] = t;
1870
+ if (typeof n == "number" && typeof s == "number") return;
1871
+ const o = on(n), r = on(s);
1872
+ if (Wi(n) !== Wi(s) && ht[i]) {
1873
+ this.needsMeasurement = !0;
1874
+ return;
1875
+ }
1876
+ if (o !== r)
1877
+ if (Ji(o) && Ji(r)) for (let a = 0; a < t.length; a++) {
1878
+ const l = t[a];
1879
+ typeof l == "string" && (t[a] = parseFloat(l));
1880
+ }
1881
+ else ht[i] && (this.needsMeasurement = !0);
1882
+ }
1883
+ resolveNoneKeyframes() {
1884
+ const { unresolvedKeyframes: t, name: e } = this, i = [];
1885
+ for (let n = 0; n < t.length; n++) (t[n] === null || rl(t[n])) && i.push(n);
1886
+ i.length && al(t, i, e);
1887
+ }
1888
+ measure() {
1889
+ const { element: t, name: e } = this;
1890
+ return ht[e](window.getComputedStyle(t.current), () => t.measureViewportBox());
1891
+ }
1892
+ measureInitialState() {
1893
+ const { element: t, unresolvedKeyframes: e, name: i } = this;
1894
+ if (!t || !t.current) return;
1895
+ i === "height" && (this.suspendedScrollY = window.pageYOffset), this.measuredOrigin = this.measure(), e[0] = this.measuredOrigin;
1896
+ const n = e[e.length - 1];
1897
+ n !== void 0 && this.motionValue?.jump(n, !1);
1898
+ }
1899
+ measureEndState() {
1900
+ const { element: t, unresolvedKeyframes: e } = this;
1901
+ if (!t || !t.current) return;
1902
+ this.motionValue?.jump(this.measuredOrigin, !1);
1903
+ const i = e.length - 1, n = e[i];
1904
+ e[i] = this.measure(), n !== null && this.finalKeyframe === void 0 && (this.finalKeyframe = n), this.removedTransforms?.length && this.removedTransforms.forEach(([s, o]) => {
1905
+ t.getValue(s).set(o);
1906
+ }), this.resolveNoneKeyframes();
1907
+ }
1908
+ }, Vi = [
1909
+ "borderTopLeftRadius",
1910
+ "borderTopRightRadius",
1911
+ "borderBottomRightRadius",
1912
+ "borderBottomLeftRadius"
1913
+ ];
1914
+ function ul(t) {
1915
+ return cs(t) && "offsetHeight" in t && !("ownerSVGElement" in t);
1916
+ }
1917
+ function Di(t) {
1918
+ return cs(t) && "ownerSVGElement" in t;
1919
+ }
1920
+ var Ze = (t, e) => e && typeof t == "number" ? e.transform(t) : t;
1921
+ function sr(t, e, i) {
1922
+ if (t == null) return [];
1923
+ if (t instanceof EventTarget) return [t];
1924
+ if (typeof t == "string") {
1925
+ let n = document;
1926
+ e && (n = e.current);
1927
+ const s = i?.[t] ?? n.querySelectorAll(t);
1928
+ return s ? Array.from(s) : [];
1929
+ }
1930
+ return Array.from(t).filter((n) => n != null);
1931
+ }
1932
+ var cl = {
1933
+ x: "translateX",
1934
+ y: "translateY",
1935
+ z: "translateZ",
1936
+ transformPerspective: "perspective"
1937
+ }, hl = Dt.length;
1938
+ function fl(t, e, i) {
1939
+ let n = "", s = !0;
1940
+ for (let r = 0; r < hl; r++) {
1941
+ const a = Dt[r], l = t[a];
1942
+ if (l === void 0) continue;
1943
+ let c = !0;
1944
+ if (typeof l == "number") c = l === (a.startsWith("scale") ? 1 : 0);
1945
+ else {
1946
+ const u = parseFloat(l);
1947
+ c = a.startsWith("scale") ? u === 1 : u === 0;
1948
+ }
1949
+ if (!c || i) {
1950
+ const u = Ze(l, oe[a]);
1951
+ if (!c) {
1952
+ s = !1;
1953
+ const h = cl[a] || a;
1954
+ n += `${h}(${u}) `;
1955
+ }
1956
+ i && (e[a] = u);
1957
+ }
1958
+ }
1959
+ const o = t.pathRotation;
1960
+ return o && (s = !1, n += `rotate(${Ze(o, oe.pathRotation)}) `), n = n.trim(), i ? n = i(e, s ? "" : n) : s && (n = "none"), n;
1961
+ }
1962
+ function Mi(t, e, i) {
1963
+ const { style: n, vars: s, transformOrigin: o } = t;
1964
+ let r = !1, a = !1;
1965
+ for (const l in e) {
1966
+ const c = e[l];
1967
+ if (it.has(l)) {
1968
+ r = !0;
1969
+ continue;
1970
+ } else if (Ps(l)) {
1971
+ s[l] = c;
1972
+ continue;
1973
+ } else {
1974
+ const u = Ze(c, oe[l]);
1975
+ l.startsWith("origin") ? (a = !0, o[l] = u) : n[l] = u;
1976
+ }
1977
+ }
1978
+ if (e.transform || (r || i ? n.transform = fl(e, t.transform, i) : n.transform && (n.transform = "none")), a) {
1979
+ const { originX: l = "50%", originY: c = "50%", originZ: u = 0 } = o;
1980
+ n.transformOrigin = `${l} ${c} ${u}`;
1981
+ }
1982
+ }
1983
+ var dl = {
1984
+ offset: "stroke-dashoffset",
1985
+ array: "stroke-dasharray"
1986
+ }, ml = {
1987
+ offset: "strokeDashoffset",
1988
+ array: "strokeDasharray"
1989
+ };
1990
+ function pl(t, e, i = 1, n = 0, s = !0) {
1991
+ t.pathLength = 1;
1992
+ const o = s ? dl : ml;
1993
+ t[o.offset] = `${-n}`, t[o.array] = `${e} ${i}`;
1994
+ }
1995
+ var rr = [
1996
+ "transform",
1997
+ "opacity",
1998
+ "offsetDistance",
1999
+ "offsetPath",
2000
+ "offsetRotate",
2001
+ "offsetAnchor"
2002
+ ];
2003
+ function or(t, { attrX: e, attrY: i, attrScale: n, pathLength: s, pathSpacing: o = 1, pathOffset: r = 0, ...a }, l, c, u) {
2004
+ if (Mi(t, a, c), l) {
2005
+ t.style.viewBox && (t.attrs.viewBox = t.style.viewBox);
2006
+ return;
2007
+ }
2008
+ t.attrs = t.style, t.style = {};
2009
+ const { attrs: h, style: f } = t;
2010
+ for (const p of rr) h[p] !== void 0 && (f[p] = h[p], delete h[p]);
2011
+ (f.transform || h.transformOrigin) && (f.transformOrigin = h.transformOrigin ?? "50% 50%", delete h.transformOrigin), f.transform && (f.transformBox = u?.transformBox ?? "fill-box", delete h.transformBox), e !== void 0 && (h.x = e), i !== void 0 && (h.y = i), n !== void 0 && (h.scale = n), s !== void 0 && pl(h, s, o, r, !1);
2012
+ }
2013
+ function ar({ top: t, left: e, right: i, bottom: n }) {
2014
+ return {
2015
+ x: {
2016
+ min: e,
2017
+ max: i
2018
+ },
2019
+ y: {
2020
+ min: t,
2021
+ max: n
2022
+ }
2023
+ };
2024
+ }
2025
+ function vl({ x: t, y: e }) {
2026
+ return {
2027
+ top: e.min,
2028
+ right: t.max,
2029
+ bottom: e.max,
2030
+ left: t.min
2031
+ };
2032
+ }
2033
+ function gl(t, e) {
2034
+ if (!e) return t;
2035
+ const i = e({
2036
+ x: t.left,
2037
+ y: t.top
2038
+ }), n = e({
2039
+ x: t.right,
2040
+ y: t.bottom
2041
+ });
2042
+ return {
2043
+ top: i.y,
2044
+ left: i.x,
2045
+ bottom: n.y,
2046
+ right: n.x
2047
+ };
2048
+ }
2049
+ function Pe(t) {
2050
+ return t === void 0 || t === 1;
2051
+ }
2052
+ function Je({ scale: t, scaleX: e, scaleY: i }) {
2053
+ return !Pe(t) || !Pe(e) || !Pe(i);
2054
+ }
2055
+ function ot(t) {
2056
+ return Je(t) || lr(t) || t.z || t.rotate || t.rotateX || t.rotateY || t.skewX || t.skewY;
2057
+ }
2058
+ function lr(t) {
2059
+ return an(t.x) || an(t.y);
2060
+ }
2061
+ function an(t) {
2062
+ return t && t !== "0%";
2063
+ }
2064
+ function ae(t, e, i) {
2065
+ return i + e * (t - i);
2066
+ }
2067
+ function ln(t, e, i, n, s) {
2068
+ return s !== void 0 && (t = ae(t, s, n)), ae(t, i, n) + e;
2069
+ }
2070
+ function Qe(t, e = 0, i = 1, n, s) {
2071
+ t.min = ln(t.min, e, i, n, s), t.max = ln(t.max, e, i, n, s);
2072
+ }
2073
+ function ur(t, { x: e, y: i }) {
2074
+ Qe(t.x, e.translate, e.scale, e.originPoint), Qe(t.y, i.translate, i.scale, i.originPoint);
2075
+ }
2076
+ var un = 0.999999999999, cn = 1.0000000000001;
2077
+ function yl(t, e, i, n = !1) {
2078
+ const s = i.length;
2079
+ if (!s) return;
2080
+ e.x = e.y = 1;
2081
+ let o, r;
2082
+ for (let a = 0; a < s; a++) {
2083
+ o = i[a], r = o.projectionDelta;
2084
+ const { visualElement: l } = o.options;
2085
+ l && l.props.style && l.props.style.display === "contents" || (n && o.options.layoutScroll && o.scroll && o !== o.root && (X(t.x, -o.scroll.offset.x), X(t.y, -o.scroll.offset.y)), r && (e.x *= r.x.scale, e.y *= r.y.scale, ur(t, r)), n && ot(o.latestValues) && Xt(t, o.latestValues, o.layout?.layoutBox));
2086
+ }
2087
+ e.x < cn && e.x > un && (e.x = 1), e.y < cn && e.y > un && (e.y = 1);
2088
+ }
2089
+ function X(t, e) {
2090
+ t.min += e, t.max += e;
2091
+ }
2092
+ function hn(t, e, i, n, s = 0.5) {
2093
+ Qe(t, e, i, V(t.min, t.max, s), n);
2094
+ }
2095
+ function fn(t, e) {
2096
+ return typeof t == "string" ? parseFloat(t) / 100 * (e.max - e.min) : t;
2097
+ }
2098
+ function Xt(t, e, i) {
2099
+ const n = i ?? t;
2100
+ hn(t.x, fn(e.x, n.x), e.scaleX, e.scale, e.originX), hn(t.y, fn(e.y, n.y), e.scaleY, e.scale, e.originY);
2101
+ }
2102
+ function cr(t, e) {
2103
+ return ar(gl(t.getBoundingClientRect(), e));
2104
+ }
2105
+ function Tl(t, e, i) {
2106
+ const n = cr(t, i), { scroll: s } = e;
2107
+ return s && (X(n.x, s.offset.x), X(n.y, s.offset.y)), n;
2108
+ }
2109
+ var { schedule: Ei, cancel: Zc } = /* @__PURE__ */ Rs(queueMicrotask, !1), z = {
2110
+ x: !1,
2111
+ y: !1
2112
+ };
2113
+ function hr() {
2114
+ return z.x || z.y;
2115
+ }
2116
+ function xl(t) {
2117
+ return t === "x" || t === "y" ? z[t] ? null : (z[t] = !0, () => {
2118
+ z[t] = !1;
2119
+ }) : z.x || z.y ? null : (z.x = z.y = !0, () => {
2120
+ z.x = z.y = !1;
2121
+ });
2122
+ }
2123
+ function fr(t, e) {
2124
+ const i = sr(t), n = new AbortController(), s = {
2125
+ passive: !0,
2126
+ ...e,
2127
+ signal: n.signal
2128
+ };
2129
+ return [
2130
+ i,
2131
+ s,
2132
+ () => n.abort()
2133
+ ];
2134
+ }
2135
+ function wl(t) {
2136
+ return !(t.pointerType === "touch" || hr());
2137
+ }
2138
+ function Sl(t, e, i = {}) {
2139
+ const [n, s, o] = fr(t, i);
2140
+ return n.forEach((r) => {
2141
+ let a = !1, l = !1, c;
2142
+ const u = () => {
2143
+ r.removeEventListener("pointerleave", d);
2144
+ }, h = (m) => {
2145
+ c && (c(m), c = void 0), u();
2146
+ }, f = (m) => {
2147
+ a = !1, window.removeEventListener("pointerup", f), window.removeEventListener("pointercancel", f), l && (l = !1, h(m));
2148
+ }, p = () => {
2149
+ a = !0, window.addEventListener("pointerup", f, s), window.addEventListener("pointercancel", f, s);
2150
+ }, d = (m) => {
2151
+ if (m.pointerType !== "touch") {
2152
+ if (a) {
2153
+ l = !0;
2154
+ return;
2155
+ }
2156
+ h(m);
2157
+ }
2158
+ }, g = (m) => {
2159
+ if (!wl(m)) return;
2160
+ l = !1;
2161
+ const P = e(r, m);
2162
+ typeof P == "function" && (c = P, r.addEventListener("pointerleave", d, s));
2163
+ };
2164
+ r.addEventListener("pointerenter", g, s), r.addEventListener("pointerdown", p, s);
2165
+ }), o;
2166
+ }
2167
+ var dr = (t, e) => e ? t === e ? !0 : dr(t, e.parentElement) : !1, Ci = (t) => t.pointerType === "mouse" ? typeof t.button != "number" || t.button <= 0 : t.isPrimary !== !1, Pl = /* @__PURE__ */ new Set([
2168
+ "BUTTON",
2169
+ "INPUT",
2170
+ "SELECT",
2171
+ "TEXTAREA",
2172
+ "A"
2173
+ ]);
2174
+ function bl(t) {
2175
+ return Pl.has(t.tagName) || t.isContentEditable === !0;
2176
+ }
2177
+ var Al = /* @__PURE__ */ new Set([
2178
+ "INPUT",
2179
+ "SELECT",
2180
+ "TEXTAREA"
2181
+ ]);
2182
+ function Vl(t) {
2183
+ return Al.has(t.tagName) || t.isContentEditable === !0;
2184
+ }
2185
+ var Yt = /* @__PURE__ */ new WeakSet();
2186
+ function dn(t) {
2187
+ return (e) => {
2188
+ e.key === "Enter" && t(e);
2189
+ };
2190
+ }
2191
+ function be(t, e) {
2192
+ t.dispatchEvent(new PointerEvent("pointer" + e, {
2193
+ isPrimary: !0,
2194
+ bubbles: !0
2195
+ }));
2196
+ }
2197
+ var Dl = (t, e) => {
2198
+ const i = t.currentTarget;
2199
+ if (!i) return;
2200
+ const n = dn(() => {
2201
+ if (Yt.has(i)) return;
2202
+ be(i, "down");
2203
+ const s = dn(() => {
2204
+ be(i, "up");
2205
+ }), o = () => be(i, "cancel");
2206
+ i.addEventListener("keyup", s, e), i.addEventListener("blur", o, e);
2207
+ });
2208
+ i.addEventListener("keydown", n, e), i.addEventListener("blur", () => i.removeEventListener("keydown", n), e);
2209
+ };
2210
+ function mn(t) {
2211
+ return Ci(t) && !hr();
2212
+ }
2213
+ var pn = /* @__PURE__ */ new WeakSet();
2214
+ function Ml(t, e, i = {}) {
2215
+ const [n, s, o] = fr(t, i), r = (a) => {
2216
+ const l = a.currentTarget;
2217
+ if (!mn(a) || pn.has(a)) return;
2218
+ Yt.add(l), i.stopPropagation && pn.add(a);
2219
+ const c = e(l, a), u = {
2220
+ ...s,
2221
+ capture: !0
2222
+ }, h = (d, g) => {
2223
+ window.removeEventListener("pointerup", f, u), window.removeEventListener("pointercancel", p, u), Yt.has(l) && Yt.delete(l), mn(d) && typeof c == "function" && c(d, { success: g });
2224
+ }, f = (d) => {
2225
+ h(d, l === window || l === document || i.useGlobalTarget || dr(l, d.target));
2226
+ }, p = (d) => {
2227
+ h(d, !1);
2228
+ };
2229
+ window.addEventListener("pointerup", f, u), window.addEventListener("pointercancel", p, u);
2230
+ };
2231
+ return n.forEach((a) => {
2232
+ (i.useGlobalTarget ? window : a).addEventListener("pointerdown", r, s), ul(a) && (a.addEventListener("focus", (l) => Dl(l, s)), !bl(a) && !a.hasAttribute("tabindex") && (a.tabIndex = 0));
2233
+ }), o;
2234
+ }
2235
+ var qt = /* @__PURE__ */ new WeakMap(), Zt, mr = (t, e, i) => (n, s) => s && s[0] ? s[0][t + "Size"] : Di(n) && "getBBox" in n ? n.getBBox()[e] : n[i], El = /* @__PURE__ */ mr("inline", "width", "offsetWidth"), Cl = /* @__PURE__ */ mr("block", "height", "offsetHeight");
2236
+ function Rl({ target: t, borderBoxSize: e }) {
2237
+ qt.get(t)?.forEach((i) => {
2238
+ i(t, {
2239
+ get width() {
2240
+ return El(t, e);
2241
+ },
2242
+ get height() {
2243
+ return Cl(t, e);
2244
+ }
2245
+ });
2246
+ });
2247
+ }
2248
+ function Ll(t) {
2249
+ t.forEach(Rl);
2250
+ }
2251
+ function kl() {
2252
+ typeof ResizeObserver > "u" || (Zt = new ResizeObserver(Ll));
2253
+ }
2254
+ function Bl(t, e) {
2255
+ Zt || kl();
2256
+ const i = sr(t);
2257
+ return i.forEach((n) => {
2258
+ let s = qt.get(n);
2259
+ s || (s = /* @__PURE__ */ new Set(), qt.set(n, s)), s.add(e), Zt?.observe(n);
2260
+ }), () => {
2261
+ i.forEach((n) => {
2262
+ const s = qt.get(n);
2263
+ s?.delete(e), s?.size || Zt?.unobserve(n);
2264
+ });
2265
+ };
2266
+ }
2267
+ var Jt = /* @__PURE__ */ new Set(), wt;
2268
+ function Il() {
2269
+ wt = () => {
2270
+ const t = {
2271
+ get width() {
2272
+ return window.innerWidth;
2273
+ },
2274
+ get height() {
2275
+ return window.innerHeight;
2276
+ }
2277
+ };
2278
+ Jt.forEach((e) => e(t));
2279
+ }, window.addEventListener("resize", wt);
2280
+ }
2281
+ function Fl(t) {
2282
+ return Jt.add(t), wt || Il(), () => {
2283
+ Jt.delete(t), !Jt.size && typeof wt == "function" && (window.removeEventListener("resize", wt), wt = void 0);
2284
+ };
2285
+ }
2286
+ function vn(t, e) {
2287
+ return typeof t == "function" ? Fl(t) : Bl(t, e);
2288
+ }
2289
+ var gt = {
2290
+ value: null,
2291
+ addProjectionMetrics: null
2292
+ };
2293
+ function Ol(t) {
2294
+ return Di(t) && t.tagName === "svg";
2295
+ }
2296
+ var gn = (t) => typeof t == "number" ? t : parseFloat(t), yn = () => ({
2297
+ translate: 0,
2298
+ scale: 1,
2299
+ origin: 0,
2300
+ originPoint: 0
2301
+ }), St = () => ({
2302
+ x: yn(),
2303
+ y: yn()
2304
+ }), Tn = () => ({
2305
+ min: 0,
2306
+ max: 0
2307
+ }), E = () => ({
2308
+ x: Tn(),
2309
+ y: Tn()
2310
+ }), jl = /* @__PURE__ */ new WeakMap();
2311
+ function de(t) {
2312
+ return t !== null && typeof t == "object" && typeof t.start == "function";
2313
+ }
2314
+ function Ft(t) {
2315
+ return typeof t == "string" || Array.isArray(t);
2316
+ }
2317
+ var Ri = [
2318
+ "animate",
2319
+ "whileInView",
2320
+ "whileFocus",
2321
+ "whileHover",
2322
+ "whileTap",
2323
+ "whileDrag",
2324
+ "exit"
2325
+ ], xn = ["initial", ...Ri];
2326
+ function me(t) {
2327
+ if (de(t.animate)) return !0;
2328
+ for (let e = 0; e < xn.length; e++) if (Ft(t[xn[e]])) return !0;
2329
+ return !1;
2330
+ }
2331
+ function pr(t) {
2332
+ return !!(me(t) || t.variants);
2333
+ }
2334
+ function Nl(t, e, i) {
2335
+ for (const n in e) {
2336
+ const s = e[n], o = i[n];
2337
+ if (B(s)) t.addValue(n, s);
2338
+ else if (B(o)) t.addValue(n, bt(s, { owner: t }));
2339
+ else if (o !== s)
2340
+ if (t.hasValue(n)) {
2341
+ const r = t.getValue(n);
2342
+ r.liveStyle === !0 ? r.jump(s) : r.hasAnimated || r.set(s);
2343
+ } else {
2344
+ const r = t.getStaticValue(n);
2345
+ t.addValue(n, bt(r !== void 0 ? r : s, { owner: t }));
2346
+ }
2347
+ }
2348
+ for (const n in i) e[n] === void 0 && t.removeValue(n);
2349
+ return e;
2350
+ }
2351
+ var ti = { current: null }, vr = { current: !1 }, Ul = typeof window < "u";
2352
+ function Wl() {
2353
+ if (vr.current = !0, !!Ul)
2354
+ if (window.matchMedia) {
2355
+ const t = window.matchMedia("(prefers-reduced-motion)"), e = () => ti.current = t.matches;
2356
+ t.addEventListener("change", e), e();
2357
+ } else ti.current = !1;
2358
+ }
2359
+ var wn = [
2360
+ "AnimationStart",
2361
+ "AnimationComplete",
2362
+ "Update",
2363
+ "BeforeLayoutMeasure",
2364
+ "LayoutMeasure",
2365
+ "LayoutAnimationStart",
2366
+ "LayoutAnimationComplete"
2367
+ ], le = {};
2368
+ function gr(t) {
2369
+ le = t;
2370
+ }
2371
+ function $l() {
2372
+ return le;
2373
+ }
2374
+ var Kl = class {
2375
+ scrapeMotionValuesFromProps(t, e, i) {
2376
+ return {};
2377
+ }
2378
+ constructor({ parent: t, props: e, presenceContext: i, reducedMotionConfig: n, skipAnimations: s, blockInitialAnimation: o, visualState: r }, a = {}) {
2379
+ this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.shouldSkipAnimations = !1, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver = Si, this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.hasBeenMounted = !1, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {
2380
+ this.current && (this.triggerBuild(), this.renderInstance(this.current, this.renderState, this.props.style, this.projection));
2381
+ }, this.renderScheduledAt = 0, this.scheduleRender = () => {
2382
+ const f = k.now();
2383
+ this.renderScheduledAt < f && (this.renderScheduledAt = f, D.render(this.render, !1, !0));
2384
+ };
2385
+ const { latestValues: l, renderState: c } = r;
2386
+ this.latestValues = l, this.baseTarget = { ...l }, this.initialValues = e.initial ? { ...l } : {}, this.renderState = c, this.parent = t, this.props = e, this.presenceContext = i, this.depth = t ? t.depth + 1 : 0, this.reducedMotionConfig = n, this.skipAnimationsConfig = s, this.options = a, this.blockInitialAnimation = !!o, this.isControllingVariants = me(e), this.isVariantNode = pr(e), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(t && t.current);
2387
+ const { willChange: u, ...h } = this.scrapeMotionValuesFromProps(e, {}, this);
2388
+ for (const f in h) {
2389
+ const p = h[f];
2390
+ l[f] !== void 0 && B(p) && p.set(l[f]);
2391
+ }
2392
+ }
2393
+ mount(t) {
2394
+ if (this.hasBeenMounted) for (const e in this.initialValues)
2395
+ this.values.get(e)?.jump(this.initialValues[e]), this.latestValues[e] = this.initialValues[e];
2396
+ if (this.current = t, jl.set(t, this), this.projection && !this.projection.instance && this.projection.mount(t), this.isVariantNode && !this.isControllingVariants) {
2397
+ let e = this;
2398
+ do
2399
+ e = e.props.inherit !== !1 && e.parent;
2400
+ while (e && !e.isVariantNode);
2401
+ if (e) {
2402
+ const { variantChildren: i } = e;
2403
+ i.add(this), this.removeFromVariantTree = () => i.delete(this);
2404
+ }
2405
+ }
2406
+ this.values.forEach((e, i) => this.bindToMotionValue(i, e)), this.reducedMotionConfig === "never" ? this.shouldReduceMotion = !1 : this.reducedMotionConfig === "always" ? this.shouldReduceMotion = !0 : (vr.current || Wl(), this.shouldReduceMotion = ti.current), process.env.NODE_ENV !== "production" && ui(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected.", "reduced-motion-disabled"), this.shouldSkipAnimations = this.skipAnimationsConfig ?? !1, this.parent?.addChild(this), this.update(this.props, this.presenceContext), this.hasBeenMounted = !0;
2407
+ }
2408
+ unmount() {
2409
+ this.projection && this.projection.unmount(), nt(this.notifyUpdate), nt(this.render), this.valueSubscriptions.forEach((t) => t()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent?.removeChild(this);
2410
+ for (const t in this.events) this.events[t].clear();
2411
+ for (const t in this.features) {
2412
+ const e = this.features[t];
2413
+ e && (e.unmount(), e.isMounted = !1);
2414
+ }
2415
+ this.current = null;
2416
+ }
2417
+ addChild(t) {
2418
+ this.children.add(t), this.enteringChildren ?? (this.enteringChildren = /* @__PURE__ */ new Set()), this.enteringChildren.add(t);
2419
+ }
2420
+ removeChild(t) {
2421
+ this.children.delete(t), this.enteringChildren && this.enteringChildren.delete(t);
2422
+ }
2423
+ bindToMotionValue(t, e) {
2424
+ if (this.valueSubscriptions.has(t) && this.valueSubscriptions.get(t)(), e.accelerate && Xe.has(t) && this.current instanceof HTMLElement) {
2425
+ const { factory: o, keyframes: r, times: a, ease: l, duration: c } = e.accelerate, u = new Hs({
2426
+ element: this.current,
2427
+ name: t,
2428
+ keyframes: r,
2429
+ times: a,
2430
+ ease: l,
2431
+ duration: U(c)
2432
+ }), h = o(u);
2433
+ this.valueSubscriptions.set(t, () => {
2434
+ h(), u.cancel();
2435
+ });
2436
+ return;
2437
+ }
2438
+ const i = it.has(t);
2439
+ i && this.onBindTransform && this.onBindTransform();
2440
+ const n = e.on("change", (o) => {
2441
+ this.latestValues[t] = o, this.props.onUpdate && D.preRender(this.notifyUpdate), i && this.projection && (this.projection.isTransformDirty = !0), this.scheduleRender();
2442
+ });
2443
+ let s;
2444
+ typeof window < "u" && window.MotionCheckAppearSync && (s = window.MotionCheckAppearSync(this, t, e)), this.valueSubscriptions.set(t, () => {
2445
+ n(), s && s();
2446
+ });
2447
+ }
2448
+ sortNodePosition(t) {
2449
+ return !this.current || !t.current || !this.sortInstanceNodePosition || this.type !== t.type ? 0 : this.sortInstanceNodePosition(this.current, t.current);
2450
+ }
2451
+ updateFeatures() {
2452
+ let t = "animation";
2453
+ for (t in le) {
2454
+ const e = le[t];
2455
+ if (!e) continue;
2456
+ const { isEnabled: i, Feature: n } = e;
2457
+ if (!this.features[t] && n && i(this.props) && (this.features[t] = new n(this)), this.features[t]) {
2458
+ const s = this.features[t];
2459
+ s.isMounted ? s.update() : (s.mount(), s.isMounted = !0);
2460
+ }
2461
+ }
2462
+ }
2463
+ triggerBuild() {
2464
+ this.build(this.renderState, this.latestValues, this.props);
2465
+ }
2466
+ measureViewportBox() {
2467
+ return this.current ? this.measureInstanceViewportBox(this.current, this.props) : E();
2468
+ }
2469
+ getStaticValue(t) {
2470
+ return this.latestValues[t];
2471
+ }
2472
+ setStaticValue(t, e) {
2473
+ this.latestValues[t] = e;
2474
+ }
2475
+ update(t, e) {
2476
+ (t.transformTemplate || this.props.transformTemplate) && this.scheduleRender(), this.prevProps = this.props, this.props = t, this.prevPresenceContext = this.presenceContext, this.presenceContext = e;
2477
+ for (let i = 0; i < wn.length; i++) {
2478
+ const n = wn[i];
2479
+ this.propEventSubscriptions[n] && (this.propEventSubscriptions[n](), delete this.propEventSubscriptions[n]);
2480
+ const s = t["on" + n];
2481
+ s && (this.propEventSubscriptions[n] = this.on(n, s));
2482
+ }
2483
+ this.prevMotionValues = Nl(this, this.scrapeMotionValuesFromProps(t, this.prevProps || {}, this), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue();
2484
+ }
2485
+ getProps() {
2486
+ return this.props;
2487
+ }
2488
+ getVariant(t) {
2489
+ return this.props.variants ? this.props.variants[t] : void 0;
2490
+ }
2491
+ getDefaultTransition() {
2492
+ return this.props.transition;
2493
+ }
2494
+ getTransformPagePoint() {
2495
+ return this.props.transformPagePoint;
2496
+ }
2497
+ addValue(t, e) {
2498
+ const i = this.values.get(t);
2499
+ if (e !== i) {
2500
+ i && this.removeValue(t), this.bindToMotionValue(t, e), this.values.set(t, e);
2501
+ const n = e.get();
2502
+ n !== void 0 && (this.latestValues[t] = n);
2503
+ }
2504
+ }
2505
+ removeValue(t) {
2506
+ this.values.delete(t);
2507
+ const e = this.valueSubscriptions.get(t);
2508
+ e && (e(), this.valueSubscriptions.delete(t)), delete this.latestValues[t], this.removeValueFromRenderState(t, this.renderState);
2509
+ }
2510
+ hasValue(t) {
2511
+ return this.values.has(t);
2512
+ }
2513
+ getValue(t, e) {
2514
+ if (this.props.values && this.props.values[t]) return this.props.values[t];
2515
+ let i = this.values.get(t);
2516
+ return i === void 0 && e !== void 0 && (i = bt(e ?? this.getDefaultValue?.(t), { owner: this }), this.addValue(t, i)), i;
2517
+ }
2518
+ readValue(t, e) {
2519
+ let i = this.latestValues[t] !== void 0 || !this.current ? this.latestValues[t] : this.getBaseTargetFromProps(this.props, t) ?? this.readValueFromInstance(this.current, t, this.options);
2520
+ return i != null && (typeof i == "string" && (ai(i) || li(i)) ? i = parseFloat(i) : typeof i != "number" && !W.test(i) && W.test(e) && (i = wi(t, e)), this.setBaseTarget(t, B(i) ? i.get() : i)), B(i) ? i.get() : i;
2521
+ }
2522
+ setBaseTarget(t, e) {
2523
+ this.baseTarget[t] = e;
2524
+ }
2525
+ on(t, e) {
2526
+ return this.events[t] || (this.events[t] = new ie()), this.events[t].add(e);
2527
+ }
2528
+ notify(t, ...e) {
2529
+ this.events[t] && this.events[t].notify(...e);
2530
+ }
2531
+ scheduleRenderMicrotask() {
2532
+ Ei.render(this.render);
2533
+ }
2534
+ }, yr = class extends Kl {
2535
+ constructor() {
2536
+ super(...arguments), this.KeyframeResolver = ll;
2537
+ }
2538
+ sortInstanceNodePosition(t, e) {
2539
+ return t.compareDocumentPosition(e) & 2 ? 1 : -1;
2540
+ }
2541
+ getBaseTargetFromProps(t, e) {
2542
+ const i = t.style;
2543
+ return i ? i[e] : void 0;
2544
+ }
2545
+ removeValueFromRenderState(t, { vars: e, style: i }) {
2546
+ delete e[t], delete i[t];
2547
+ }
2548
+ handleChildMotionValue() {
2549
+ this.childSubscription && (this.childSubscription(), delete this.childSubscription);
2550
+ const { children: t } = this.props;
2551
+ B(t) && (this.childSubscription = t.on("change", (e) => {
2552
+ this.current && (this.current.textContent = `${e}`);
2553
+ }));
2554
+ }
2555
+ }, st = class {
2556
+ constructor(t) {
2557
+ this.isMounted = !1, this.node = t;
2558
+ }
2559
+ update() {
2560
+ }
2561
+ };
2562
+ function Tr(t, { style: e, vars: i }, n, s) {
2563
+ const o = t.style;
2564
+ let r;
2565
+ for (r in e) o[r] = e[r];
2566
+ s?.applyProjectionStyles(o, n);
2567
+ for (r in i) o.setProperty(r, i[r]);
2568
+ }
2569
+ var Ot = {};
2570
+ function xr(t, { layout: e, layoutId: i }) {
2571
+ return it.has(t) || t.startsWith("origin") || (e || i !== void 0) && (!!Ot[t] || t === "opacity");
2572
+ }
2573
+ function Li(t, e, i) {
2574
+ const n = t.style, s = e?.style, o = {};
2575
+ if (!n) return o;
2576
+ for (const r in n) (B(n[r]) || s && B(s[r]) || xr(r, t) || i?.getValue(r)?.liveStyle !== void 0) && (o[r] = n[r]);
2577
+ return o;
2578
+ }
2579
+ function zl(t) {
2580
+ return window.getComputedStyle(t);
2581
+ }
2582
+ var _l = class extends yr {
2583
+ constructor() {
2584
+ super(...arguments), this.type = "html", this.renderInstance = Tr;
2585
+ }
2586
+ mount(t) {
2587
+ q(!!t.style, "motion.create() components must forward their ref to a HTML or SVG element", "custom-component-ref"), super.mount(t);
2588
+ }
2589
+ readValueFromInstance(t, e) {
2590
+ if (it.has(e)) return this.projection?.isProjecting ? It(e) : ca(t, e);
2591
+ {
2592
+ const i = zl(t), n = (Ps(e) ? i.getPropertyValue(e) : i[e]) || 0;
2593
+ return typeof n == "string" ? n.trim() : n;
2594
+ }
2595
+ }
2596
+ measureInstanceViewportBox(t, { transformPagePoint: e }) {
2597
+ return cr(t, e);
2598
+ }
2599
+ build(t, e, i) {
2600
+ Mi(t, e, i.transformTemplate);
2601
+ }
2602
+ scrapeMotionValuesFromProps(t, e, i) {
2603
+ return Li(t, e, i);
2604
+ }
2605
+ }, wr = /* @__PURE__ */ new Set([
2606
+ "baseFrequency",
2607
+ "diffuseConstant",
2608
+ "kernelMatrix",
2609
+ "kernelUnitLength",
2610
+ "keySplines",
2611
+ "keyTimes",
2612
+ "limitingConeAngle",
2613
+ "markerHeight",
2614
+ "markerWidth",
2615
+ "numOctaves",
2616
+ "targetX",
2617
+ "targetY",
2618
+ "surfaceScale",
2619
+ "specularConstant",
2620
+ "specularExponent",
2621
+ "stdDeviation",
2622
+ "tableValues",
2623
+ "viewBox",
2624
+ "gradientTransform",
2625
+ "pathLength",
2626
+ "startOffset",
2627
+ "textLength",
2628
+ "lengthAdjust"
2629
+ ]), Sr = (t) => typeof t == "string" && t.toLowerCase() === "svg";
2630
+ function Gl(t, e, i, n) {
2631
+ Tr(t, e, void 0, n);
2632
+ for (const s in e.attrs) t.setAttribute(wr.has(s) ? s : Ai(s), e.attrs[s]);
2633
+ }
2634
+ function Pr(t, e, i) {
2635
+ const n = Li(t, e, i);
2636
+ for (const s in t) if (B(t[s]) || B(e[s])) {
2637
+ const o = Dt.indexOf(s) !== -1 ? "attr" + s.charAt(0).toUpperCase() + s.substring(1) : s;
2638
+ n[o] = t[s];
2639
+ }
2640
+ return n;
2641
+ }
2642
+ var Hl = class extends yr {
2643
+ constructor() {
2644
+ super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = E;
2645
+ }
2646
+ getBaseTargetFromProps(t, e) {
2647
+ return it.has(e) ? super.getBaseTargetFromProps(t, e) ?? It(e) : t[e];
2648
+ }
2649
+ getDefaultValue(t) {
2650
+ return it.has(t) ? this.latestValues[t] ?? It(t) : void 0;
2651
+ }
2652
+ readValueFromInstance(t, e) {
2653
+ if (it.has(e)) {
2654
+ const i = Ns(e);
2655
+ return i && i.default || 0;
2656
+ }
2657
+ if (rr.includes(e)) {
2658
+ const i = getComputedStyle(t)[e];
2659
+ if (typeof i == "string" && i) return i.trim();
2660
+ }
2661
+ return e = wr.has(e) ? e : Ai(e), t.getAttribute(e);
2662
+ }
2663
+ scrapeMotionValuesFromProps(t, e, i) {
2664
+ return Pr(t, e, i);
2665
+ }
2666
+ build(t, e, i) {
2667
+ or(t, e, this.isSVGTag, i.transformTemplate, i.style);
2668
+ }
2669
+ renderInstance(t, e, i, n) {
2670
+ Gl(t, e, i, n);
2671
+ }
2672
+ mount(t) {
2673
+ this.isSVGTag = Sr(t.tagName), super.mount(t);
2674
+ }
2675
+ };
2676
+ function br(t, e) {
2677
+ if (!Array.isArray(e)) return !1;
2678
+ const i = e.length;
2679
+ if (i !== t.length) return !1;
2680
+ for (let n = 0; n < i; n++) if (e[n] !== t[n]) return !1;
2681
+ return !0;
2682
+ }
2683
+ var Xl = [...Ri].reverse();
2684
+ function Yl(t) {
2685
+ let e = (a) => Promise.all(a.map(({ animation: l, options: c }) => el(t, l, c))), i = Sn(), n = !0, s = !1;
2686
+ function o(a) {
2687
+ const { props: l, parent: c, manuallyAnimateOnMount: u } = t, h = n || s, f = [], p = /* @__PURE__ */ new Set();
2688
+ let d = {}, g = 1 / 0, m = t;
2689
+ do
2690
+ m = m.props.inherit !== !1 && m.parent;
2691
+ while (m && !m.isControllingVariants);
2692
+ if (Xl.forEach((x, S) => {
2693
+ const T = i[x], b = l[x], A = m && m.props[x], v = b !== void 0 ? b : Ft(A) || A === !1 ? A : void 0, w = Ft(v), M = x === a ? T.isActive : null;
2694
+ M === !1 && (g = S);
2695
+ const I = w && b === void 0 && !(h && u);
2696
+ if (T.protectedKeys = { ...d }, !T.isActive && M === null || !v && !T.prevProp || de(v) || typeof v == "boolean") return;
2697
+ if (x === "exit" && T.isActive && M !== !0) {
2698
+ d = {
2699
+ ...d,
2700
+ ...T.prevResolvedValues
2701
+ };
2702
+ return;
2703
+ }
2704
+ const et = ql(T.prevProp, v);
2705
+ let Z = et || w && (M && !I || S > g), j = !1;
2706
+ const pt = Array.isArray(v) ? v : [v];
2707
+ let vt = {};
2708
+ if (M !== !1) for (const F of pt) {
2709
+ const { transition: G, transitionEnd: rt, ...$t } = dt(t, F, Qs(t, x)) || {};
2710
+ vt = {
2711
+ ...vt,
2712
+ ...$t,
2713
+ ...rt
2714
+ };
2715
+ }
2716
+ const { prevResolvedValues: Ii } = T;
2717
+ for (const F in {
2718
+ ...Ii,
2719
+ ...vt
2720
+ }) {
2721
+ if (F in d) continue;
2722
+ const G = vt[F], rt = Ii[F], $t = Array.isArray(G) && Array.isArray(rt) ? !br(G, rt) || et : G !== rt;
2723
+ if ($t && G == null) p.add(F);
2724
+ else if ($t || G !== void 0 && p.has(F)) {
2725
+ Z = !0, p.delete(F) && (j = !0), T.needsAnimating[F] = !0;
2726
+ const Fi = t.getValue(F);
2727
+ Fi && (Fi.liveStyle = !1);
2728
+ } else T.protectedKeys[F] = !0;
2729
+ }
2730
+ if (T.prevProp = v, T.prevResolvedValues = vt, T.isActive && (d = {
2731
+ ...d,
2732
+ ...vt
2733
+ }), Z && (!(I && et) || j)) for (const F of pt) {
2734
+ const G = { type: x };
2735
+ if (typeof F == "string" && h && u && c?.enteringChildren) {
2736
+ const rt = dt(c, F)?.transition?.delayChildren;
2737
+ G.delay = Ys(c.enteringChildren, t, rt);
2738
+ }
2739
+ f.push({
2740
+ animation: F,
2741
+ options: G
2742
+ });
2743
+ }
2744
+ }), p.size) {
2745
+ const { initial: x } = l, S = {}, T = typeof x != "boolean" && dt(t, Array.isArray(x) ? x[0] : x, t.presenceContext?.custom);
2746
+ T && T.transition && (S.transition = T.transition), p.forEach((b) => {
2747
+ const A = t.getValue(b);
2748
+ A && (A.liveStyle = !0);
2749
+ const v = T && !Array.isArray(x) ? T[b] : void 0, w = t.getBaseTargetFromProps(l, b);
2750
+ S[b] = (v !== void 0 ? v : w !== void 0 && !B(w) ? w : t.initialValues[b] === void 0 ? t.baseTarget[b] : void 0) ?? null;
2751
+ }), f.push({ animation: S });
2752
+ }
2753
+ const P = h && t.blockInitialAnimation || n && !u && (l.initial === !1 || l.initial === l.animate);
2754
+ return n = s = !1, !P && f.length ? e(f) : Promise.resolve();
2755
+ }
2756
+ function r(a, l) {
2757
+ if (i[a].isActive === l) return Promise.resolve();
2758
+ t.variantChildren?.forEach((u) => u.animationState?.setActive(a, l)), i[a].isActive = l;
2759
+ const c = o(a);
2760
+ for (const u in i) i[u].protectedKeys = {};
2761
+ return c;
2762
+ }
2763
+ return {
2764
+ animateChanges: o,
2765
+ setActive: r,
2766
+ setAnimateFunction: (a) => {
2767
+ e = a(t);
2768
+ },
2769
+ getState: () => i,
2770
+ reset: () => {
2771
+ i = Sn(), s = !0;
2772
+ }
2773
+ };
2774
+ }
2775
+ function ql(t, e) {
2776
+ return typeof e == "string" ? e !== t : Array.isArray(e) ? !br(e, t) : !1;
2777
+ }
2778
+ function Sn() {
2779
+ const t = {};
2780
+ for (const e of Ri) t[e] = {
2781
+ isActive: e === "animate",
2782
+ protectedKeys: {},
2783
+ needsAnimating: {},
2784
+ prevResolvedValues: {}
2785
+ };
2786
+ return t;
2787
+ }
2788
+ function ei(t, e) {
2789
+ t.min = e.min, t.max = e.max;
2790
+ }
2791
+ function K(t, e) {
2792
+ ei(t.x, e.x), ei(t.y, e.y);
2793
+ }
2794
+ function Pn(t, e) {
2795
+ t.translate = e.translate, t.scale = e.scale, t.originPoint = e.originPoint, t.origin = e.origin;
2796
+ }
2797
+ var Zl = 0.9999, Jl = 1.0001, Ql = -0.01, tu = 0.01;
2798
+ function O(t) {
2799
+ return t.max - t.min;
2800
+ }
2801
+ function eu(t, e, i) {
2802
+ return Math.abs(t - e) <= i;
2803
+ }
2804
+ function bn(t, e, i, n = 0.5) {
2805
+ t.origin = n, t.originPoint = V(e.min, e.max, t.origin), t.scale = O(i) / O(e), t.translate = V(i.min, i.max, t.origin) - t.originPoint, (t.scale >= Zl && t.scale <= Jl || isNaN(t.scale)) && (t.scale = 1), (t.translate >= Ql && t.translate <= tu || isNaN(t.translate)) && (t.translate = 0);
2806
+ }
2807
+ function Ct(t, e, i, n) {
2808
+ bn(t.x, e.x, i.x, n ? n.originX : void 0), bn(t.y, e.y, i.y, n ? n.originY : void 0);
2809
+ }
2810
+ function An(t, e, i, n = 0) {
2811
+ t.min = (n ? V(i.min, i.max, n) : i.min) + e.min, t.max = t.min + O(e);
2812
+ }
2813
+ function iu(t, e, i, n) {
2814
+ An(t.x, e.x, i.x, n?.x), An(t.y, e.y, i.y, n?.y);
2815
+ }
2816
+ function Vn(t, e, i, n = 0) {
2817
+ const s = n ? V(i.min, i.max, n) : i.min;
2818
+ t.min = e.min - s, t.max = t.min + O(e);
2819
+ }
2820
+ function ue(t, e, i, n) {
2821
+ Vn(t.x, e.x, i.x, n?.x), Vn(t.y, e.y, i.y, n?.y);
2822
+ }
2823
+ function Dn(t, e, i, n, s) {
2824
+ return t -= e, t = ae(t, 1 / i, n), s !== void 0 && (t = ae(t, 1 / s, n)), t;
2825
+ }
2826
+ function nu(t, e = 0, i = 1, n = 0.5, s, o = t, r = t) {
2827
+ if (Y.test(e) && (e = parseFloat(e), e = V(r.min, r.max, e / 100) - r.min), typeof e != "number") return;
2828
+ let a = V(o.min, o.max, n);
2829
+ t === o && (a -= e), t.min = Dn(t.min, e, i, a, s), t.max = Dn(t.max, e, i, a, s);
2830
+ }
2831
+ function Mn(t, e, [i, n, s], o, r) {
2832
+ nu(t, e[i], e[n], e[s], e.scale, o, r);
2833
+ }
2834
+ var su = [
2835
+ "x",
2836
+ "scaleX",
2837
+ "originX"
2838
+ ], ru = [
2839
+ "y",
2840
+ "scaleY",
2841
+ "originY"
2842
+ ];
2843
+ function En(t, e, i, n) {
2844
+ Mn(t.x, e, su, i ? i.x : void 0, n ? n.x : void 0), Mn(t.y, e, ru, i ? i.y : void 0, n ? n.y : void 0);
2845
+ }
2846
+ function Cn(t) {
2847
+ return t.translate === 0 && t.scale === 1;
2848
+ }
2849
+ function Ar(t) {
2850
+ return Cn(t.x) && Cn(t.y);
2851
+ }
2852
+ function Rn(t, e) {
2853
+ return t.min === e.min && t.max === e.max;
2854
+ }
2855
+ function ou(t, e) {
2856
+ return Rn(t.x, e.x) && Rn(t.y, e.y);
2857
+ }
2858
+ function Ln(t, e) {
2859
+ return Math.round(t.min) === Math.round(e.min) && Math.round(t.max) === Math.round(e.max);
2860
+ }
2861
+ function Vr(t, e) {
2862
+ return Ln(t.x, e.x) && Ln(t.y, e.y);
2863
+ }
2864
+ function kn(t) {
2865
+ return O(t.x) / O(t.y);
2866
+ }
2867
+ function Bn(t, e) {
2868
+ return t.translate === e.translate && t.scale === e.scale && t.originPoint === e.originPoint;
2869
+ }
2870
+ function H(t) {
2871
+ return [t("x"), t("y")];
2872
+ }
2873
+ function In(t, e) {
2874
+ return e.max === e.min ? 0 : t / (e.max - e.min) * 100;
2875
+ }
2876
+ var Mt = { correct: (t, e) => {
2877
+ if (!e.target) return t;
2878
+ if (typeof t == "string")
2879
+ if (y.test(t)) t = parseFloat(t);
2880
+ else return t;
2881
+ return `${In(t, e.target.x)}% ${In(t, e.target.y)}%`;
2882
+ } }, au = { correct: (t, { treeScale: e, projectionDelta: i }) => {
2883
+ const n = t, s = W.parse(t);
2884
+ if (s.length > 5) return n;
2885
+ const o = W.createTransformer(t), r = typeof s[0] != "number" ? 1 : 0, a = i.x.scale * e.x, l = i.y.scale * e.y;
2886
+ s[0 + r] /= a, s[1 + r] /= l;
2887
+ const c = V(a, l, 0.5);
2888
+ return typeof s[2 + r] == "number" && (s[2 + r] /= c), typeof s[3 + r] == "number" && (s[3 + r] /= c), o(s);
2889
+ } };
2890
+ function lu(t, e, i) {
2891
+ let n = "";
2892
+ const s = t.x.translate / e.x, o = t.y.translate / e.y, r = i?.z || 0;
2893
+ if ((s || o || r) && (n = `translate3d(${s}px, ${o}px, ${r}px) `), (e.x !== 1 || e.y !== 1) && (n += `scale(${1 / e.x}, ${1 / e.y}) `), i) {
2894
+ const { transformPerspective: c, rotate: u, pathRotation: h, rotateX: f, rotateY: p, skewX: d, skewY: g } = i;
2895
+ c && (n = `perspective(${c}px) ${n}`), u && (n += `rotate(${u}deg) `), h && (n += `rotate(${h}deg) `), f && (n += `rotateX(${f}deg) `), p && (n += `rotateY(${p}deg) `), d && (n += `skewX(${d}deg) `), g && (n += `skewY(${g}deg) `);
2896
+ }
2897
+ const a = t.x.scale * e.x, l = t.y.scale * e.y;
2898
+ return (a !== 1 || l !== 1) && (n += `scale(${a}, ${l})`), n || "none";
2899
+ }
2900
+ var uu = Vi.length, Fn = (t) => typeof t == "number" || y.test(t);
2901
+ function cu(t, e, i, n, s, o) {
2902
+ s ? (t.opacity = V(0, i.opacity ?? 1, hu(n)), t.opacityExit = V(e.opacity ?? 1, 0, fu(n))) : o && (t.opacity = V(e.opacity ?? 1, i.opacity ?? 1, n));
2903
+ for (let r = 0; r < uu; r++) {
2904
+ const a = Vi[r];
2905
+ let l = On(e, a), c = On(i, a);
2906
+ l === void 0 && c === void 0 || (l || (l = 0), c || (c = 0), l === 0 || c === 0 || Fn(l) === Fn(c) ? (t[a] = Math.max(V(gn(l), gn(c), n), 0), (Y.test(c) || Y.test(l)) && (t[a] += "%")) : t[a] = c);
2907
+ }
2908
+ (e.rotate || i.rotate) && (t.rotate = V(e.rotate || 0, i.rotate || 0, n));
2909
+ }
2910
+ function On(t, e) {
2911
+ return t[e] !== void 0 ? t[e] : t.borderRadius;
2912
+ }
2913
+ var hu = /* @__PURE__ */ Dr(0, 0.5, Ts), fu = /* @__PURE__ */ Dr(0.5, 0.95, _);
2914
+ function Dr(t, e, i) {
2915
+ return (n) => n < t ? 0 : n > e ? 1 : i(Lt(t, e, n));
2916
+ }
2917
+ function du(t, e, i) {
2918
+ const n = B(t) ? t : bt(t);
2919
+ return n.start(bi("", n, e, i)), n.animation;
2920
+ }
2921
+ function jt(t, e, i, n = { passive: !0 }) {
2922
+ return t.addEventListener(e, i, n), () => t.removeEventListener(e, i, n);
2923
+ }
2924
+ var mu = (t, e) => t.depth - e.depth, pu = class {
2925
+ constructor() {
2926
+ this.children = [], this.isDirty = !1;
2927
+ }
2928
+ add(t) {
2929
+ oi(this.children, t), this.isDirty = !0;
2930
+ }
2931
+ remove(t) {
2932
+ ee(this.children, t), this.isDirty = !0;
2933
+ }
2934
+ forEach(t) {
2935
+ this.isDirty && this.children.sort(mu), this.isDirty = !1, this.children.forEach(t);
2936
+ }
2937
+ };
2938
+ function vu(t, e) {
2939
+ const i = k.now(), n = ({ timestamp: s }) => {
2940
+ const o = s - i;
2941
+ o >= e && (nt(n), t(o - e));
2942
+ };
2943
+ return D.setup(n, !0), () => nt(n);
2944
+ }
2945
+ function Qt(t) {
2946
+ return B(t) ? t.get() : t;
2947
+ }
2948
+ var gu = class {
2949
+ constructor() {
2950
+ this.members = [];
2951
+ }
2952
+ add(t) {
2953
+ oi(this.members, t);
2954
+ for (let e = this.members.length - 1; e >= 0; e--) {
2955
+ const i = this.members[e];
2956
+ if (i === t || i === this.lead || i === this.prevLead) continue;
2957
+ const n = i.instance;
2958
+ (!n || n.isConnected === !1) && !i.snapshot && (ee(this.members, i), i.unmount());
2959
+ }
2960
+ t.scheduleRender();
2961
+ }
2962
+ remove(t) {
2963
+ if (ee(this.members, t), t === this.prevLead && (this.prevLead = void 0), t === this.lead) {
2964
+ const e = this.members[this.members.length - 1];
2965
+ e && this.promote(e);
2966
+ }
2967
+ }
2968
+ relegate(t) {
2969
+ for (let e = this.members.indexOf(t) - 1; e >= 0; e--) {
2970
+ const i = this.members[e];
2971
+ if (i.isPresent !== !1 && i.instance?.isConnected !== !1)
2972
+ return this.promote(i), !0;
2973
+ }
2974
+ return !1;
2975
+ }
2976
+ promote(t, e) {
2977
+ const i = this.lead;
2978
+ if (t !== i && (this.prevLead = i, this.lead = t, t.show(), i)) {
2979
+ i.updateSnapshot(), t.scheduleRender();
2980
+ const { layoutDependency: n } = i.options, { layoutDependency: s } = t.options;
2981
+ (n === void 0 || n !== s) && (t.resumeFrom = i, e && (i.preserveOpacity = !0), i.snapshot && (t.snapshot = i.snapshot, t.snapshot.latestValues = i.animationValues || i.latestValues), t.root?.isUpdating && (t.isLayoutDirty = !0)), t.options.crossfade === !1 && i.hide();
2982
+ }
2983
+ }
2984
+ exitAnimationComplete() {
2985
+ this.members.forEach((t) => {
2986
+ t.options.onExitComplete?.(), t.resumingFrom?.options.onExitComplete?.();
2987
+ });
2988
+ }
2989
+ scheduleRender() {
2990
+ this.members.forEach((t) => t.instance && t.scheduleRender(!1));
2991
+ }
2992
+ removeLeadSnapshot() {
2993
+ this.lead?.snapshot && (this.lead.snapshot = void 0);
2994
+ }
2995
+ }, yu = {
2996
+ borderRadius: {
2997
+ ...Mt,
2998
+ applyTo: [...Vi]
2999
+ },
3000
+ borderTopLeftRadius: Mt,
3001
+ borderTopRightRadius: Mt,
3002
+ borderBottomLeftRadius: Mt,
3003
+ borderBottomRightRadius: Mt,
3004
+ boxShadow: au
3005
+ }, te = {
3006
+ hasAnimatedSinceResize: !0,
3007
+ hasEverUpdated: !1
3008
+ };
3009
+ Object.assign(Ot, {
3010
+ ...yu,
3011
+ ...Ot
3012
+ });
3013
+ var at = {
3014
+ nodes: 0,
3015
+ calculatedTargetDeltas: 0,
3016
+ calculatedProjections: 0
3017
+ }, Ae = [
3018
+ "",
3019
+ "X",
3020
+ "Y",
3021
+ "Z"
3022
+ ], Tu = 1e3, xu = 0;
3023
+ function Ve(t, e, i, n) {
3024
+ const { latestValues: s } = e;
3025
+ s[t] && (i[t] = s[t], e.setStaticValue(t, 0), n && (n[t] = 0));
3026
+ }
3027
+ function Mr(t) {
3028
+ if (t.hasCheckedOptimisedAppear = !0, t.root === t) return;
3029
+ const { visualElement: e } = t.options;
3030
+ if (!e) return;
3031
+ const i = ir(e);
3032
+ if (window.MotionHasOptimisedAnimation(i, "transform")) {
3033
+ const { layout: s, layoutId: o } = t.options;
3034
+ window.MotionCancelOptimisedAnimation(i, "transform", D, !(s || o));
3035
+ }
3036
+ const { parent: n } = t;
3037
+ n && !n.hasCheckedOptimisedAppear && Mr(n);
3038
+ }
3039
+ function Er({ attachResizeListener: t, defaultParent: e, measureScroll: i, checkIsScrollRoot: n, resetTransform: s }) {
3040
+ return class {
3041
+ constructor(r = {}, a = e?.()) {
3042
+ this.id = xu++, this.animationId = 0, this.animationCommitId = 0, this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.isProjectionDirty = !1, this.isSharedProjectionDirty = !1, this.isTransformDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.hasCheckedOptimisedAppear = !1, this.treeScale = {
3043
+ x: 1,
3044
+ y: 1
3045
+ }, this.eventHandlers = /* @__PURE__ */ new Map(), this.hasTreeAnimated = !1, this.updateScheduled = !1, this.scheduleUpdate = () => this.update(), this.projectionUpdateScheduled = !1, this.checkUpdateFailed = () => {
3046
+ this.isUpdating && (this.isUpdating = !1, this.clearAllSnapshots());
3047
+ }, this.updateProjection = () => {
3048
+ this.projectionUpdateScheduled = !1, gt.value && (at.nodes = at.calculatedTargetDeltas = at.calculatedProjections = 0), this.nodes.forEach(Pu), this.nodes.forEach(Cu), this.nodes.forEach(Ru), this.nodes.forEach(bu), gt.addProjectionMetrics && gt.addProjectionMetrics(at);
3049
+ }, this.resolvedRelativeTargetAt = 0, this.hasProjected = !1, this.isVisible = !0, this.animationProgress = 0, this.sharedNodes = /* @__PURE__ */ new Map(), this.latestValues = r, this.root = a ? a.root || a : this, this.path = a ? [...a.path, a] : [], this.parent = a, this.depth = a ? a.depth + 1 : 0;
3050
+ for (let l = 0; l < this.path.length; l++) this.path[l].shouldResetTransform = !0;
3051
+ this.root === this && (this.nodes = new pu());
3052
+ }
3053
+ addEventListener(r, a) {
3054
+ return this.eventHandlers.has(r) || this.eventHandlers.set(r, new ie()), this.eventHandlers.get(r).add(a);
3055
+ }
3056
+ notifyListeners(r, ...a) {
3057
+ const l = this.eventHandlers.get(r);
3058
+ l && l.notify(...a);
3059
+ }
3060
+ hasListeners(r) {
3061
+ return this.eventHandlers.has(r);
3062
+ }
3063
+ mount(r) {
3064
+ if (this.instance) return;
3065
+ this.isSVG = Di(r) && !Ol(r), this.instance = r;
3066
+ const { layoutId: a, layout: l, visualElement: c } = this.options;
3067
+ if (c && !c.current && c.mount(r), this.root.nodes.add(this), this.parent && this.parent.children.add(this), this.root.hasTreeAnimated && (l || a) && (this.isLayoutDirty = !0), t) {
3068
+ let u, h = 0;
3069
+ const f = () => this.root.updateBlockedByResize = !1;
3070
+ D.read(() => {
3071
+ h = window.innerWidth;
3072
+ }), t(r, () => {
3073
+ const p = window.innerWidth;
3074
+ p !== h && (h = p, this.root.updateBlockedByResize = !0, u && u(), u = vu(f, 250), te.hasAnimatedSinceResize && (te.hasAnimatedSinceResize = !1, this.nodes.forEach(Un)));
3075
+ });
3076
+ }
3077
+ a && this.root.registerSharedNode(a, this), this.options.animate !== !1 && c && (a || l) && this.addEventListener("didUpdate", ({ delta: u, hasLayoutChanged: h, hasRelativeLayoutChanged: f, layout: p }) => {
3078
+ if (this.isTreeAnimationBlocked()) {
3079
+ this.target = void 0, this.relativeTarget = void 0;
3080
+ return;
3081
+ }
3082
+ const d = this.options.transition || c.getDefaultTransition() || Fu, { onLayoutAnimationStart: g, onLayoutAnimationComplete: m } = c.getProps(), P = !this.targetLayout || !Vr(this.targetLayout, p), x = !h && f;
3083
+ if (this.options.layoutRoot || this.resumeFrom || x || h && (P || !this.currentAnimation)) {
3084
+ this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0);
3085
+ const S = {
3086
+ ...Pi(d, "layout"),
3087
+ onPlay: g,
3088
+ onComplete: m
3089
+ };
3090
+ (c.shouldReduceMotion || this.options.layoutRoot) && (S.delay = 0, S.type = !1), this.startAnimation(S), this.setAnimationOrigin(u, x, S.path);
3091
+ } else
3092
+ h || Un(this), this.isLead() && this.options.onExitComplete && this.options.onExitComplete();
3093
+ this.targetLayout = p;
3094
+ });
3095
+ }
3096
+ unmount() {
3097
+ this.options.layoutId && this.willUpdate(), this.root.nodes.remove(this);
3098
+ const r = this.getStack();
3099
+ r && r.remove(this), this.parent && this.parent.children.delete(this), this.instance = void 0, this.eventHandlers.clear(), nt(this.updateProjection);
3100
+ }
3101
+ blockUpdate() {
3102
+ this.updateManuallyBlocked = !0;
3103
+ }
3104
+ unblockUpdate() {
3105
+ this.updateManuallyBlocked = !1;
3106
+ }
3107
+ isUpdateBlocked() {
3108
+ return this.updateManuallyBlocked || this.updateBlockedByResize;
3109
+ }
3110
+ isTreeAnimationBlocked() {
3111
+ return this.isAnimationBlocked || this.parent && this.parent.isTreeAnimationBlocked() || !1;
3112
+ }
3113
+ startUpdate() {
3114
+ this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(Lu), this.animationId++);
3115
+ }
3116
+ getTransformTemplate() {
3117
+ const { visualElement: r } = this.options;
3118
+ return r && r.getProps().transformTemplate;
3119
+ }
3120
+ willUpdate(r = !0) {
3121
+ if (this.root.hasTreeAnimated = !0, this.root.isUpdateBlocked()) {
3122
+ this.options.onExitComplete && this.options.onExitComplete();
3123
+ return;
3124
+ }
3125
+ if (window.MotionCancelOptimisedAnimation && !this.hasCheckedOptimisedAppear && Mr(this), !this.root.isUpdating && this.root.startUpdate(), this.isLayoutDirty) return;
3126
+ this.isLayoutDirty = !0;
3127
+ for (let u = 0; u < this.path.length; u++) {
3128
+ const h = this.path[u];
3129
+ h.shouldResetTransform = !0, (typeof h.latestValues.x == "string" || typeof h.latestValues.y == "string") && (h.isLayoutDirty = !0), h.updateScroll("snapshot"), h.options.layoutRoot && h.willUpdate(!1);
3130
+ }
3131
+ const { layoutId: a, layout: l } = this.options;
3132
+ if (a === void 0 && !l) return;
3133
+ const c = this.getTransformTemplate();
3134
+ this.prevTransformTemplateValue = c ? c(this.latestValues, "") : void 0, this.updateSnapshot(), r && this.notifyListeners("willUpdate");
3135
+ }
3136
+ update() {
3137
+ if (this.updateScheduled = !1, this.isUpdateBlocked()) {
3138
+ const a = this.updateBlockedByResize;
3139
+ this.unblockUpdate(), this.updateBlockedByResize = !1, this.clearAllSnapshots(), a && this.nodes.forEach(Vu), this.nodes.forEach(jn);
3140
+ return;
3141
+ }
3142
+ if (this.animationId <= this.animationCommitId) {
3143
+ this.nodes.forEach(Nn);
3144
+ return;
3145
+ }
3146
+ this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach(Du), this.nodes.forEach(Mu), this.nodes.forEach(Eu), this.nodes.forEach(wu), this.nodes.forEach(Su)) : this.nodes.forEach(Nn), this.clearAllSnapshots();
3147
+ const r = k.now();
3148
+ C.delta = tt(0, 1e3 / 60, r - C.timestamp), C.timestamp = r, C.isProcessing = !0, xe.update.process(C), xe.preRender.process(C), xe.render.process(C), C.isProcessing = !1;
3149
+ }
3150
+ didUpdate() {
3151
+ this.updateScheduled || (this.updateScheduled = !0, Ei.read(this.scheduleUpdate));
3152
+ }
3153
+ clearAllSnapshots() {
3154
+ this.nodes.forEach(Au), this.sharedNodes.forEach(ku);
3155
+ }
3156
+ scheduleUpdateProjection() {
3157
+ this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, D.preRender(this.updateProjection, !1, !0));
3158
+ }
3159
+ scheduleCheckAfterUnmount() {
3160
+ D.postRender(() => {
3161
+ this.isLayoutDirty ? this.root.didUpdate() : this.root.checkUpdateFailed();
3162
+ });
3163
+ }
3164
+ updateSnapshot() {
3165
+ this.snapshot || !this.instance || (this.snapshot = this.measure(), this.snapshot && !O(this.snapshot.measuredBox.x) && !O(this.snapshot.measuredBox.y) && (this.snapshot = void 0));
3166
+ }
3167
+ updateLayout() {
3168
+ if (!this.instance || (this.updateScroll(), !(this.options.alwaysMeasureLayout && this.isLead()) && !this.isLayoutDirty)) return;
3169
+ if (this.resumeFrom && !this.resumeFrom.instance) for (let l = 0; l < this.path.length; l++) this.path[l].updateScroll();
3170
+ const r = this.layout;
3171
+ this.layout = this.measure(!1), this.layoutCorrected || (this.layoutCorrected = E()), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox);
3172
+ const { visualElement: a } = this.options;
3173
+ a && a.notify("LayoutMeasure", this.layout.layoutBox, r ? r.layoutBox : void 0);
3174
+ }
3175
+ updateScroll(r = "measure") {
3176
+ let a = !!(this.options.layoutScroll && this.instance);
3177
+ if (this.scroll && this.scroll.animationId === this.root.animationId && this.scroll.phase === r && (a = !1), a && this.instance) {
3178
+ const l = n(this.instance);
3179
+ this.scroll = {
3180
+ animationId: this.root.animationId,
3181
+ phase: r,
3182
+ isRoot: l,
3183
+ offset: i(this.instance),
3184
+ wasRoot: this.scroll ? this.scroll.isRoot : l
3185
+ };
3186
+ }
3187
+ }
3188
+ resetTransform() {
3189
+ if (!s) return;
3190
+ const r = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout, a = this.projectionDelta && !Ar(this.projectionDelta), l = this.getTransformTemplate(), c = l ? l(this.latestValues, "") : void 0, u = c !== this.prevTransformTemplateValue;
3191
+ r && this.instance && (a || ot(this.latestValues) || u) && (s(this.instance, c), this.shouldResetTransform = !1, this.scheduleRender());
3192
+ }
3193
+ measure(r = !0) {
3194
+ const a = this.measurePageBox();
3195
+ let l = this.removeElementScroll(a);
3196
+ return r && (l = this.removeTransform(l)), Ou(l), {
3197
+ animationId: this.root.animationId,
3198
+ measuredBox: a,
3199
+ layoutBox: l,
3200
+ latestValues: {},
3201
+ source: this.id
3202
+ };
3203
+ }
3204
+ measurePageBox() {
3205
+ const { visualElement: r } = this.options;
3206
+ if (!r) return E();
3207
+ const a = r.measureViewportBox();
3208
+ if (!(this.scroll?.wasRoot || this.path.some(ju))) {
3209
+ const { scroll: l } = this.root;
3210
+ l && (X(a.x, l.offset.x), X(a.y, l.offset.y));
3211
+ }
3212
+ return a;
3213
+ }
3214
+ removeElementScroll(r) {
3215
+ const a = E();
3216
+ if (K(a, r), this.scroll?.wasRoot) return a;
3217
+ for (let l = 0; l < this.path.length; l++) {
3218
+ const c = this.path[l], { scroll: u, options: h } = c;
3219
+ c !== this.root && u && h.layoutScroll && (u.wasRoot && K(a, r), X(a.x, u.offset.x), X(a.y, u.offset.y));
3220
+ }
3221
+ return a;
3222
+ }
3223
+ applyTransform(r, a = !1, l) {
3224
+ const c = l || E();
3225
+ K(c, r);
3226
+ for (let u = 0; u < this.path.length; u++) {
3227
+ const h = this.path[u];
3228
+ !a && h.options.layoutScroll && h.scroll && h !== h.root && (X(c.x, -h.scroll.offset.x), X(c.y, -h.scroll.offset.y)), ot(h.latestValues) && Xt(c, h.latestValues, h.layout?.layoutBox);
3229
+ }
3230
+ return ot(this.latestValues) && Xt(c, this.latestValues, this.layout?.layoutBox), c;
3231
+ }
3232
+ removeTransform(r) {
3233
+ const a = E();
3234
+ K(a, r);
3235
+ for (let l = 0; l < this.path.length; l++) {
3236
+ const c = this.path[l];
3237
+ if (!ot(c.latestValues)) continue;
3238
+ let u;
3239
+ c.instance && (Je(c.latestValues) && c.updateSnapshot(), u = E(), K(u, c.measurePageBox())), En(a, c.latestValues, c.snapshot?.layoutBox, u);
3240
+ }
3241
+ return ot(this.latestValues) && En(a, this.latestValues), a;
3242
+ }
3243
+ setTargetDelta(r) {
3244
+ this.targetDelta = r, this.root.scheduleUpdateProjection(), this.isProjectionDirty = !0;
3245
+ }
3246
+ setOptions(r) {
3247
+ this.options = {
3248
+ ...this.options,
3249
+ ...r,
3250
+ crossfade: r.crossfade !== void 0 ? r.crossfade : !0
3251
+ };
3252
+ }
3253
+ clearMeasurements() {
3254
+ this.scroll = void 0, this.layout = void 0, this.snapshot = void 0, this.prevTransformTemplateValue = void 0, this.targetDelta = void 0, this.target = void 0, this.isLayoutDirty = !1;
3255
+ }
3256
+ forceRelativeParentToResolveTarget() {
3257
+ this.relativeParent && this.relativeParent.resolvedRelativeTargetAt !== C.timestamp && this.relativeParent.resolveTargetDelta(!0);
3258
+ }
3259
+ resolveTargetDelta(r = !1) {
3260
+ const a = this.getLead();
3261
+ this.isProjectionDirty || (this.isProjectionDirty = a.isProjectionDirty), this.isTransformDirty || (this.isTransformDirty = a.isTransformDirty), this.isSharedProjectionDirty || (this.isSharedProjectionDirty = a.isSharedProjectionDirty);
3262
+ const l = !!this.resumingFrom || this !== a;
3263
+ if (!(r || l && this.isSharedProjectionDirty || this.isProjectionDirty || this.parent?.isProjectionDirty || this.attemptToResolveRelativeTarget || this.root.updateBlockedByResize)) return;
3264
+ const { layout: c, layoutId: u } = this.options;
3265
+ if (!this.layout || !(c || u)) return;
3266
+ this.resolvedRelativeTargetAt = C.timestamp;
3267
+ const h = this.getClosestProjectingParent();
3268
+ !this.targetDelta && !this.relativeTarget && (this.options.layoutAnchor !== !1 && h && h.layout ? this.createRelativeTarget(h, this.layout.layoutBox, h.layout.layoutBox) : this.removeRelativeTarget()), !(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target = E(), this.targetWithTransforms = E()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), iu(this.target, this.relativeTarget, this.relativeParent.target, this.options.layoutAnchor || void 0)) : this.targetDelta ? (this.resumingFrom ? this.applyTransform(this.layout.layoutBox, !1, this.target) : K(this.target, this.layout.layoutBox), ur(this.target, this.targetDelta)) : K(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget && (this.attemptToResolveRelativeTarget = !1, this.options.layoutAnchor !== !1 && h && !!h.resumingFrom == !!this.resumingFrom && !h.options.layoutScroll && h.target && this.animationProgress !== 1 ? this.createRelativeTarget(h, this.target, h.target) : this.relativeParent = this.relativeTarget = void 0), gt.value && at.calculatedTargetDeltas++);
3269
+ }
3270
+ getClosestProjectingParent() {
3271
+ if (!(!this.parent || Je(this.parent.latestValues) || lr(this.parent.latestValues)))
3272
+ return this.parent.isProjecting() ? this.parent : this.parent.getClosestProjectingParent();
3273
+ }
3274
+ isProjecting() {
3275
+ return !!((this.relativeTarget || this.targetDelta || this.options.layoutRoot) && this.layout);
3276
+ }
3277
+ createRelativeTarget(r, a, l) {
3278
+ this.relativeParent = r, this.forceRelativeParentToResolveTarget(), this.relativeTarget = E(), this.relativeTargetOrigin = E(), ue(this.relativeTargetOrigin, a, l, this.options.layoutAnchor || void 0), K(this.relativeTarget, this.relativeTargetOrigin);
3279
+ }
3280
+ removeRelativeTarget() {
3281
+ this.relativeParent = this.relativeTarget = void 0;
3282
+ }
3283
+ calcProjection() {
3284
+ const r = this.getLead(), a = !!this.resumingFrom || this !== r;
3285
+ let l = !0;
3286
+ if ((this.isProjectionDirty || this.parent?.isProjectionDirty) && (l = !1), a && (this.isSharedProjectionDirty || this.isTransformDirty) && (l = !1), this.resolvedRelativeTargetAt === C.timestamp && (l = !1), l) return;
3287
+ const { layout: c, layoutId: u } = this.options;
3288
+ if (this.isTreeAnimating = !!(this.parent && this.parent.isTreeAnimating || this.currentAnimation || this.pendingAnimation), this.isTreeAnimating || (this.targetDelta = this.relativeTarget = void 0), !this.layout || !(c || u)) return;
3289
+ K(this.layoutCorrected, this.layout.layoutBox);
3290
+ const h = this.treeScale.x, f = this.treeScale.y;
3291
+ yl(this.layoutCorrected, this.treeScale, this.path, a), r.layout && !r.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (r.target = r.layout.layoutBox, r.targetWithTransforms = E());
3292
+ const { target: p } = r;
3293
+ if (!p) {
3294
+ this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
3295
+ return;
3296
+ }
3297
+ !this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (Pn(this.prevProjectionDelta.x, this.projectionDelta.x), Pn(this.prevProjectionDelta.y, this.projectionDelta.y)), Ct(this.projectionDelta, this.layoutCorrected, p, this.latestValues), (this.treeScale.x !== h || this.treeScale.y !== f || !Bn(this.projectionDelta.x, this.prevProjectionDelta.x) || !Bn(this.projectionDelta.y, this.prevProjectionDelta.y)) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", p)), gt.value && at.calculatedProjections++;
3298
+ }
3299
+ hide() {
3300
+ this.isVisible = !1;
3301
+ }
3302
+ show() {
3303
+ this.isVisible = !0;
3304
+ }
3305
+ scheduleRender(r = !0) {
3306
+ if (this.options.visualElement?.scheduleRender(), r) {
3307
+ const a = this.getStack();
3308
+ a && a.scheduleRender();
3309
+ }
3310
+ this.resumingFrom && !this.resumingFrom.instance && (this.resumingFrom = void 0);
3311
+ }
3312
+ createProjectionDeltas() {
3313
+ this.prevProjectionDelta = St(), this.projectionDelta = St(), this.projectionDeltaWithTransform = St();
3314
+ }
3315
+ setAnimationOrigin(r, a = !1, l) {
3316
+ const c = this.snapshot, u = c ? c.latestValues : {}, h = { ...this.latestValues }, f = St();
3317
+ (!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !a;
3318
+ const p = E(), d = (c ? c.source : void 0) !== (this.layout ? this.layout.source : void 0), g = this.getStack(), m = !g || g.members.length <= 1, P = !!(d && !m && this.options.crossfade === !0 && !this.path.some(Iu));
3319
+ this.animationProgress = 0;
3320
+ let x;
3321
+ const S = l?.interpolateProjection(r);
3322
+ this.mixTargetDelta = (T) => {
3323
+ const b = T / 1e3, A = S?.(b);
3324
+ A ? (f.x.translate = A.x, f.x.scale = V(r.x.scale, 1, b), f.x.origin = r.x.origin, f.x.originPoint = r.x.originPoint, f.y.translate = A.y, f.y.scale = V(r.y.scale, 1, b), f.y.origin = r.y.origin, f.y.originPoint = r.y.originPoint) : (Wn(f.x, r.x, b), Wn(f.y, r.y, b)), this.setTargetDelta(f), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (ue(p, this.layout.layoutBox, this.relativeParent.layout.layoutBox, this.options.layoutAnchor || void 0), Bu(this.relativeTarget, this.relativeTargetOrigin, p, b), x && ou(this.relativeTarget, x) && (this.isProjectionDirty = !1), x || (x = E()), K(x, this.relativeTarget)), d && (this.animationValues = h, cu(h, u, this.latestValues, b, P, m)), A && A.rotate !== void 0 && (this.animationValues || (this.animationValues = h), this.animationValues.pathRotation = A.rotate), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = b;
3325
+ }, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
3326
+ }
3327
+ startAnimation(r) {
3328
+ this.notifyListeners("animationStart"), this.currentAnimation?.stop(), this.resumingFrom?.currentAnimation?.stop(), this.pendingAnimation && (nt(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = D.update(() => {
3329
+ te.hasAnimatedSinceResize = !0, this.motionValue || (this.motionValue = bt(0)), this.motionValue.jump(0, !1), this.currentAnimation = du(this.motionValue, [0, 1e3], {
3330
+ ...r,
3331
+ velocity: 0,
3332
+ isSync: !0,
3333
+ onUpdate: (a) => {
3334
+ this.mixTargetDelta(a), r.onUpdate && r.onUpdate(a);
3335
+ },
3336
+ onComplete: () => {
3337
+ r.onComplete && r.onComplete(), this.completeAnimation();
3338
+ }
3339
+ }), Qo(this.currentAnimation, this), this.resumingFrom && (this.resumingFrom.currentAnimation = this.currentAnimation), this.pendingAnimation = void 0;
3340
+ });
3341
+ }
3342
+ completeAnimation() {
3343
+ this.resumingFrom && (this.resumingFrom.currentAnimation = void 0, this.resumingFrom.preserveOpacity = void 0);
3344
+ const r = this.getStack();
3345
+ r && r.exitAnimationComplete(), this.resumingFrom = this.currentAnimation = this.animationValues = void 0, this.notifyListeners("animationComplete");
3346
+ }
3347
+ finishAnimation() {
3348
+ this.currentAnimation && (this.mixTargetDelta && this.mixTargetDelta(Tu), this.currentAnimation.stop()), this.completeAnimation();
3349
+ }
3350
+ applyTransformsToTarget() {
3351
+ const r = this.getLead(), { targetWithTransforms: a, layout: l, latestValues: c } = r;
3352
+ let { target: u } = r;
3353
+ if (!(!a || !u || !l)) {
3354
+ if (this !== r && this.layout && l && Cr(this.options.animationType, this.layout.layoutBox, l.layoutBox)) {
3355
+ u = this.target || E();
3356
+ const h = O(this.layout.layoutBox.x);
3357
+ u.x.min = r.target.x.min, u.x.max = u.x.min + h;
3358
+ const f = O(this.layout.layoutBox.y);
3359
+ u.y.min = r.target.y.min, u.y.max = u.y.min + f;
3360
+ }
3361
+ K(a, u), Xt(a, c), Ct(this.projectionDeltaWithTransform, this.layoutCorrected, a, c);
3362
+ }
3363
+ }
3364
+ registerSharedNode(r, a) {
3365
+ this.sharedNodes.has(r) || this.sharedNodes.set(r, new gu()), this.sharedNodes.get(r).add(a);
3366
+ const l = a.options.initialPromotionConfig;
3367
+ a.promote({
3368
+ transition: l ? l.transition : void 0,
3369
+ preserveFollowOpacity: l && l.shouldPreserveFollowOpacity ? l.shouldPreserveFollowOpacity(a) : void 0
3370
+ });
3371
+ }
3372
+ isLead() {
3373
+ const r = this.getStack();
3374
+ return r ? r.lead === this : !0;
3375
+ }
3376
+ getLead() {
3377
+ const { layoutId: r } = this.options;
3378
+ return r ? this.getStack()?.lead || this : this;
3379
+ }
3380
+ getPrevLead() {
3381
+ const { layoutId: r } = this.options;
3382
+ return r ? this.getStack()?.prevLead : void 0;
3383
+ }
3384
+ getStack() {
3385
+ const { layoutId: r } = this.options;
3386
+ if (r) return this.root.sharedNodes.get(r);
3387
+ }
3388
+ promote({ needsReset: r, transition: a, preserveFollowOpacity: l } = {}) {
3389
+ const c = this.getStack();
3390
+ c && c.promote(this, l), r && (this.projectionDelta = void 0, this.needsReset = !0), a && this.setOptions({ transition: a });
3391
+ }
3392
+ relegate() {
3393
+ const r = this.getStack();
3394
+ return r ? r.relegate(this) : !1;
3395
+ }
3396
+ resetSkewAndRotation() {
3397
+ const { visualElement: r } = this.options;
3398
+ if (!r) return;
3399
+ let a = !1;
3400
+ const { latestValues: l } = r;
3401
+ if ((l.z || l.rotate || l.rotateX || l.rotateY || l.rotateZ || l.skewX || l.skewY) && (a = !0), !a) return;
3402
+ const c = {};
3403
+ l.z && Ve("z", r, c, this.animationValues);
3404
+ for (let u = 0; u < Ae.length; u++)
3405
+ Ve(`rotate${Ae[u]}`, r, c, this.animationValues), Ve(`skew${Ae[u]}`, r, c, this.animationValues);
3406
+ r.render();
3407
+ for (const u in c)
3408
+ r.setStaticValue(u, c[u]), this.animationValues && (this.animationValues[u] = c[u]);
3409
+ r.scheduleRender();
3410
+ }
3411
+ applyProjectionStyles(r, a) {
3412
+ if (!this.instance || this.isSVG) return;
3413
+ if (!this.isVisible) {
3414
+ r.visibility = "hidden";
3415
+ return;
3416
+ }
3417
+ const l = this.getTransformTemplate();
3418
+ if (this.needsReset) {
3419
+ this.needsReset = !1, r.visibility = "", r.opacity = "", r.pointerEvents = Qt(a?.pointerEvents) || "", r.transform = l ? l(this.latestValues, "") : "none";
3420
+ return;
3421
+ }
3422
+ const c = this.getLead();
3423
+ if (!this.projectionDelta || !this.layout || !c.target) {
3424
+ this.options.layoutId && (r.opacity = this.latestValues.opacity !== void 0 ? this.latestValues.opacity : 1, r.pointerEvents = Qt(a?.pointerEvents) || ""), this.hasProjected && !ot(this.latestValues) && (r.transform = l ? l({}, "") : "none", this.hasProjected = !1);
3425
+ return;
3426
+ }
3427
+ r.visibility = "";
3428
+ const u = c.animationValues || c.latestValues;
3429
+ this.applyTransformsToTarget();
3430
+ let h = lu(this.projectionDeltaWithTransform, this.treeScale, u);
3431
+ l && (h = l(u, h)), r.transform = h;
3432
+ const { x: f, y: p } = this.projectionDelta;
3433
+ r.transformOrigin = `${f.origin * 100}% ${p.origin * 100}% 0`, c.animationValues ? r.opacity = c === this ? u.opacity ?? this.latestValues.opacity ?? 1 : this.preserveOpacity ? this.latestValues.opacity : u.opacityExit : r.opacity = c === this ? u.opacity !== void 0 ? u.opacity : "" : u.opacityExit !== void 0 ? u.opacityExit : 0;
3434
+ for (const d in Ot) {
3435
+ if (u[d] === void 0) continue;
3436
+ const { correct: g, applyTo: m, isCSSVariable: P } = Ot[d], x = h === "none" ? u[d] : g(u[d], c);
3437
+ if (m) {
3438
+ const S = m.length;
3439
+ for (let T = 0; T < S; T++) r[m[T]] = x;
3440
+ } else P ? this.options.visualElement.renderState.vars[d] = x : r[d] = x;
3441
+ }
3442
+ this.options.layoutId && (r.pointerEvents = c === this ? Qt(a?.pointerEvents) || "" : "none");
3443
+ }
3444
+ clearSnapshot() {
3445
+ this.resumeFrom = this.snapshot = void 0;
3446
+ }
3447
+ resetTree() {
3448
+ this.root.nodes.forEach((r) => r.currentAnimation?.stop()), this.root.nodes.forEach(jn), this.root.sharedNodes.clear();
3449
+ }
3450
+ };
3451
+ }
3452
+ function wu(t) {
3453
+ t.updateLayout();
3454
+ }
3455
+ function Su(t) {
3456
+ const e = t.resumeFrom?.snapshot || t.snapshot;
3457
+ if (t.isLead() && t.layout && e && t.hasListeners("didUpdate")) {
3458
+ const { layoutBox: i, measuredBox: n } = t.layout, { animationType: s } = t.options, o = e.source !== t.layout.source;
3459
+ if (s === "size") H((u) => {
3460
+ const h = o ? e.measuredBox[u] : e.layoutBox[u], f = O(h);
3461
+ h.min = i[u].min, h.max = h.min + f;
3462
+ });
3463
+ else if (s === "x" || s === "y") {
3464
+ const u = s === "x" ? "y" : "x";
3465
+ ei(o ? e.measuredBox[u] : e.layoutBox[u], i[u]);
3466
+ } else Cr(s, e.layoutBox, i) && H((u) => {
3467
+ const h = o ? e.measuredBox[u] : e.layoutBox[u], f = O(i[u]);
3468
+ h.max = h.min + f, t.relativeTarget && !t.currentAnimation && (t.isProjectionDirty = !0, t.relativeTarget[u].max = t.relativeTarget[u].min + f);
3469
+ });
3470
+ const r = St();
3471
+ Ct(r, i, e.layoutBox);
3472
+ const a = St();
3473
+ o ? Ct(a, t.applyTransform(n, !0), e.measuredBox) : Ct(a, i, e.layoutBox);
3474
+ const l = !Ar(r);
3475
+ let c = !1;
3476
+ if (!t.resumeFrom) {
3477
+ const u = t.getClosestProjectingParent();
3478
+ if (u && !u.resumeFrom) {
3479
+ const { snapshot: h, layout: f } = u;
3480
+ if (h && f) {
3481
+ const p = t.options.layoutAnchor || void 0, d = E();
3482
+ ue(d, e.layoutBox, h.layoutBox, p);
3483
+ const g = E();
3484
+ ue(g, i, f.layoutBox, p), Vr(d, g) || (c = !0), u.options.layoutRoot && (t.relativeTarget = g, t.relativeTargetOrigin = d, t.relativeParent = u);
3485
+ }
3486
+ }
3487
+ }
3488
+ t.notifyListeners("didUpdate", {
3489
+ layout: i,
3490
+ snapshot: e,
3491
+ delta: a,
3492
+ layoutDelta: r,
3493
+ hasLayoutChanged: l,
3494
+ hasRelativeLayoutChanged: c
3495
+ });
3496
+ } else if (t.isLead()) {
3497
+ const { onExitComplete: i } = t.options;
3498
+ i && i();
3499
+ }
3500
+ t.options.transition = void 0;
3501
+ }
3502
+ function Pu(t) {
3503
+ gt.value && at.nodes++, t.parent && (t.isProjecting() || (t.isProjectionDirty = t.parent.isProjectionDirty), t.isSharedProjectionDirty || (t.isSharedProjectionDirty = !!(t.isProjectionDirty || t.parent.isProjectionDirty || t.parent.isSharedProjectionDirty)), t.isTransformDirty || (t.isTransformDirty = t.parent.isTransformDirty));
3504
+ }
3505
+ function bu(t) {
3506
+ t.isProjectionDirty = t.isSharedProjectionDirty = t.isTransformDirty = !1;
3507
+ }
3508
+ function Au(t) {
3509
+ t.clearSnapshot();
3510
+ }
3511
+ function jn(t) {
3512
+ t.clearMeasurements();
3513
+ }
3514
+ function Vu(t) {
3515
+ t.isLayoutDirty = !0, t.updateLayout();
3516
+ }
3517
+ function Nn(t) {
3518
+ t.isLayoutDirty = !1;
3519
+ }
3520
+ function Du(t) {
3521
+ t.isAnimationBlocked && t.layout && !t.isLayoutDirty && (t.snapshot = t.layout, t.isLayoutDirty = !0);
3522
+ }
3523
+ function Mu(t) {
3524
+ t.relativeTarget && t.relativeParent?.isLayoutDirty && (t.currentAnimation ? t.isLayoutDirty = !0 : (t.targetDelta = void 0, t.removeRelativeTarget()));
3525
+ }
3526
+ function Eu(t) {
3527
+ const { visualElement: e } = t.options;
3528
+ e && e.getProps().onBeforeLayoutMeasure && e.notify("BeforeLayoutMeasure"), t.resetTransform();
3529
+ }
3530
+ function Un(t) {
3531
+ t.finishAnimation(), t.targetDelta = t.relativeTarget = t.target = void 0, t.isProjectionDirty = !0;
3532
+ }
3533
+ function Cu(t) {
3534
+ t.resolveTargetDelta();
3535
+ }
3536
+ function Ru(t) {
3537
+ t.calcProjection();
3538
+ }
3539
+ function Lu(t) {
3540
+ t.resetSkewAndRotation();
3541
+ }
3542
+ function ku(t) {
3543
+ t.removeLeadSnapshot();
3544
+ }
3545
+ function Wn(t, e, i) {
3546
+ t.translate = V(e.translate, 0, i), t.scale = V(e.scale, 1, i), t.origin = e.origin, t.originPoint = e.originPoint;
3547
+ }
3548
+ function $n(t, e, i, n) {
3549
+ t.min = V(e.min, i.min, n), t.max = V(e.max, i.max, n);
3550
+ }
3551
+ function Bu(t, e, i, n) {
3552
+ $n(t.x, e.x, i.x, n), $n(t.y, e.y, i.y, n);
3553
+ }
3554
+ function Iu(t) {
3555
+ return t.animationValues && t.animationValues.opacityExit !== void 0;
3556
+ }
3557
+ var Fu = {
3558
+ duration: 0.45,
3559
+ ease: [
3560
+ 0.4,
3561
+ 0,
3562
+ 0.1,
3563
+ 1
3564
+ ]
3565
+ }, Kn = (t) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(t), zn = Kn("applewebkit/") && !Kn("chrome/") ? Math.round : _;
3566
+ function _n(t) {
3567
+ t.min = zn(t.min), t.max = zn(t.max);
3568
+ }
3569
+ function Ou(t) {
3570
+ _n(t.x), _n(t.y);
3571
+ }
3572
+ function Cr(t, e, i) {
3573
+ return t === "position" || t === "preserve-aspect" && !eu(kn(e), kn(i), 0.2);
3574
+ }
3575
+ function ju(t) {
3576
+ return t !== t.root && t.scroll?.wasRoot;
3577
+ }
3578
+ var Nu = Er({
3579
+ attachResizeListener: (t, e) => jt(t, "resize", e),
3580
+ measureScroll: () => ({
3581
+ x: document.documentElement.scrollLeft || document.body?.scrollLeft || 0,
3582
+ y: document.documentElement.scrollTop || document.body?.scrollTop || 0
3583
+ }),
3584
+ checkIsScrollRoot: () => !0
3585
+ }), De = { current: void 0 }, Rr = Er({
3586
+ measureScroll: (t) => ({
3587
+ x: t.scrollLeft,
3588
+ y: t.scrollTop
3589
+ }),
3590
+ defaultParent: () => {
3591
+ if (!De.current) {
3592
+ const t = new Nu({});
3593
+ t.mount(window), t.setOptions({ layoutScroll: !0 }), De.current = t;
3594
+ }
3595
+ return De.current;
3596
+ },
3597
+ resetTransform: (t, e) => {
3598
+ t.style.transform = e !== void 0 ? e : "none";
3599
+ },
3600
+ checkIsScrollRoot: (t) => window.getComputedStyle(t).position === "fixed"
3601
+ }), Lr = At({
3602
+ transformPagePoint: (t) => t,
3603
+ isStatic: !1,
3604
+ reducedMotion: "never"
3605
+ });
3606
+ function Uu(t = !0) {
3607
+ const e = N(ri);
3608
+ if (e === null) return [!0, null];
3609
+ const { isPresent: i, onExitComplete: n, register: s } = e, o = Hr();
3610
+ si(() => {
3611
+ if (t) return s(o);
3612
+ }, [t]);
3613
+ const r = os(() => t && n && n(o), [
3614
+ o,
3615
+ n,
3616
+ t
3617
+ ]);
3618
+ return !i && n ? [!1, r] : [!0];
3619
+ }
3620
+ var kr = At({ strict: !1 }), Gn = {
3621
+ animation: [
3622
+ "animate",
3623
+ "variants",
3624
+ "whileHover",
3625
+ "whileTap",
3626
+ "exit",
3627
+ "whileInView",
3628
+ "whileFocus",
3629
+ "whileDrag"
3630
+ ],
3631
+ exit: ["exit"],
3632
+ drag: ["drag", "dragControls"],
3633
+ focus: ["whileFocus"],
3634
+ hover: [
3635
+ "whileHover",
3636
+ "onHoverStart",
3637
+ "onHoverEnd"
3638
+ ],
3639
+ tap: [
3640
+ "whileTap",
3641
+ "onTap",
3642
+ "onTapStart",
3643
+ "onTapCancel"
3644
+ ],
3645
+ pan: [
3646
+ "onPan",
3647
+ "onPanStart",
3648
+ "onPanSessionStart",
3649
+ "onPanEnd"
3650
+ ],
3651
+ inView: [
3652
+ "whileInView",
3653
+ "onViewportEnter",
3654
+ "onViewportLeave"
3655
+ ],
3656
+ layout: ["layout", "layoutId"]
3657
+ }, Hn = !1;
3658
+ function Wu() {
3659
+ if (Hn) return;
3660
+ const t = {};
3661
+ for (const e in Gn) t[e] = { isEnabled: (i) => Gn[e].some((n) => !!i[n]) };
3662
+ gr(t), Hn = !0;
3663
+ }
3664
+ function Br() {
3665
+ return Wu(), $l();
3666
+ }
3667
+ function $u(t) {
3668
+ const e = Br();
3669
+ for (const i in t) e[i] = {
3670
+ ...e[i],
3671
+ ...t[i]
3672
+ };
3673
+ gr(e);
3674
+ }
3675
+ var pe = /* @__PURE__ */ At({});
3676
+ function Ku(t, e) {
3677
+ if (me(t)) {
3678
+ const { initial: i, animate: n } = t;
3679
+ return {
3680
+ initial: i === !1 || Ft(i) ? i : void 0,
3681
+ animate: Ft(n) ? n : void 0
3682
+ };
3683
+ }
3684
+ return t.inherit !== !1 ? e : {};
3685
+ }
3686
+ function zu(t) {
3687
+ const { initial: e, animate: i } = Ku(t, N(pe));
3688
+ return he(() => ({
3689
+ initial: e,
3690
+ animate: i
3691
+ }), [Xn(e), Xn(i)]);
3692
+ }
3693
+ function Xn(t) {
3694
+ return Array.isArray(t) ? t.join(" ") : t;
3695
+ }
3696
+ var ki = () => ({
3697
+ style: {},
3698
+ transform: {},
3699
+ transformOrigin: {},
3700
+ vars: {}
3701
+ });
3702
+ function Ir(t, e, i) {
3703
+ for (const n in e) !B(e[n]) && !xr(n, i) && (t[n] = e[n]);
3704
+ }
3705
+ function _u({ transformTemplate: t }, e) {
3706
+ return he(() => {
3707
+ const i = ki();
3708
+ return Mi(i, e, t), Object.assign({}, i.vars, i.style);
3709
+ }, [e]);
3710
+ }
3711
+ function Gu(t, e) {
3712
+ const i = t.style || {}, n = {};
3713
+ return Ir(n, i, t), Object.assign(n, _u(t, e)), n;
3714
+ }
3715
+ function Hu(t, e) {
3716
+ const i = {}, n = Gu(t, e);
3717
+ return t.drag && t.dragListener !== !1 && (i.draggable = !1, n.userSelect = n.WebkitUserSelect = n.WebkitTouchCallout = "none", n.touchAction = t.drag === !0 ? "none" : `pan-${t.drag === "x" ? "y" : "x"}`), t.tabIndex === void 0 && (t.onTap || t.onTapStart || t.whileTap) && (i.tabIndex = 0), i.style = n, i;
3718
+ }
3719
+ var Fr = () => ({
3720
+ ...ki(),
3721
+ attrs: {}
3722
+ });
3723
+ function Xu(t, e, i, n) {
3724
+ const s = he(() => {
3725
+ const o = Fr();
3726
+ return or(o, e, Sr(n), t.transformTemplate, t.style), {
3727
+ ...o.attrs,
3728
+ style: { ...o.style }
3729
+ };
3730
+ }, [e]);
3731
+ if (t.style) {
3732
+ const o = {};
3733
+ Ir(o, t.style, t), s.style = {
3734
+ ...o,
3735
+ ...s.style
3736
+ };
3737
+ }
3738
+ return s;
3739
+ }
3740
+ var Yu = /* @__PURE__ */ new Set([
3741
+ "animate",
3742
+ "exit",
3743
+ "variants",
3744
+ "initial",
3745
+ "style",
3746
+ "values",
3747
+ "transition",
3748
+ "transformTemplate",
3749
+ "custom",
3750
+ "inherit",
3751
+ "onBeforeLayoutMeasure",
3752
+ "onAnimationStart",
3753
+ "onAnimationComplete",
3754
+ "onUpdate",
3755
+ "onDragStart",
3756
+ "onDrag",
3757
+ "onDragEnd",
3758
+ "onMeasureDragConstraints",
3759
+ "onDirectionLock",
3760
+ "onDragTransitionEnd",
3761
+ "_dragX",
3762
+ "_dragY",
3763
+ "onHoverStart",
3764
+ "onHoverEnd",
3765
+ "onViewportEnter",
3766
+ "onViewportLeave",
3767
+ "globalTapTarget",
3768
+ "propagate",
3769
+ "ignoreStrict",
3770
+ "viewport"
3771
+ ]);
3772
+ function ce(t) {
3773
+ return t.startsWith("while") || t.startsWith("drag") && t !== "draggable" || t.startsWith("layout") || t.startsWith("onTap") || t.startsWith("onPan") || t.startsWith("onLayout") || Yu.has(t);
3774
+ }
3775
+ function qu(t, e) {
3776
+ return t.startsWith("on") ? !ce(t) : e?.(t) ?? !ce(t);
3777
+ }
3778
+ function Zu(t, e, i, n) {
3779
+ const s = {};
3780
+ for (const o in t)
3781
+ o === "values" && typeof t.values == "object" || B(t[o]) || (qu(o, n) || i === !0 && ce(o) || !e && !ce(o) || t.draggable && o.startsWith("onDrag")) && (s[o] = t[o]);
3782
+ return s;
3783
+ }
3784
+ var Ju = [
3785
+ "animate",
3786
+ "circle",
3787
+ "defs",
3788
+ "desc",
3789
+ "ellipse",
3790
+ "g",
3791
+ "image",
3792
+ "line",
3793
+ "filter",
3794
+ "marker",
3795
+ "mask",
3796
+ "metadata",
3797
+ "path",
3798
+ "pattern",
3799
+ "polygon",
3800
+ "polyline",
3801
+ "rect",
3802
+ "stop",
3803
+ "switch",
3804
+ "symbol",
3805
+ "svg",
3806
+ "text",
3807
+ "tspan",
3808
+ "use",
3809
+ "view"
3810
+ ];
3811
+ function Bi(t) {
3812
+ return typeof t != "string" || t.includes("-") ? !1 : !!(Ju.indexOf(t) > -1 || /[A-Z]/u.test(t));
3813
+ }
3814
+ function Qu(t, e, i, { latestValues: n }, s, o = !1, r, a) {
3815
+ const l = (r ?? Bi(t) ? Xu : Hu)(e, n, s, t), c = Zu(e, typeof t == "string", o, a), u = t !== rs ? {
3816
+ ...c,
3817
+ ...l,
3818
+ ref: i
3819
+ } : {}, { children: h } = e, f = he(() => B(h) ? h.get() : h, [h]);
3820
+ return _r(t, {
3821
+ ...u,
3822
+ children: f
3823
+ });
3824
+ }
3825
+ function tc({ scrapeMotionValuesFromProps: t, createRenderState: e }, i, n, s) {
3826
+ return {
3827
+ latestValues: ec(i, n, s, t),
3828
+ renderState: e()
3829
+ };
3830
+ }
3831
+ function ec(t, e, i, n) {
3832
+ const s = {}, o = n(t, {});
3833
+ for (const f in o) s[f] = Qt(o[f]);
3834
+ let { initial: r, animate: a } = t;
3835
+ const l = me(t), c = pr(t);
3836
+ e && c && !l && t.inherit !== !1 && (r === void 0 && (r = e.initial), a === void 0 && (a = e.animate));
3837
+ let u = i ? i.initial === !1 : !1;
3838
+ u = u || r === !1;
3839
+ const h = u ? a : r;
3840
+ if (h && typeof h != "boolean" && !de(h)) {
3841
+ const f = Array.isArray(h) ? h : [h];
3842
+ for (let p = 0; p < f.length; p++) {
3843
+ const d = Js(t, f[p]);
3844
+ if (d) {
3845
+ const { transitionEnd: g, transition: m, ...P } = d;
3846
+ for (const x in P) {
3847
+ let S = P[x];
3848
+ if (Array.isArray(S)) {
3849
+ const T = u ? S.length - 1 : 0;
3850
+ S = S[T];
3851
+ }
3852
+ S !== null && (s[x] = S);
3853
+ }
3854
+ for (const x in g) s[x] = g[x];
3855
+ }
3856
+ }
3857
+ }
3858
+ return s;
3859
+ }
3860
+ var Or = (t) => (e, i) => {
3861
+ const n = N(pe), s = N(ri), o = () => tc(t, e, n, s);
3862
+ return i ? o() : qr(o);
3863
+ }, ic = /* @__PURE__ */ Or({
3864
+ scrapeMotionValuesFromProps: Li,
3865
+ createRenderState: ki
3866
+ }), nc = /* @__PURE__ */ Or({
3867
+ scrapeMotionValuesFromProps: Pr,
3868
+ createRenderState: Fr
3869
+ }), sc = /* @__PURE__ */ Symbol.for("motionComponentSymbol");
3870
+ function rc(t, e, i) {
3871
+ const n = lt(i);
3872
+ as(() => {
3873
+ n.current = i;
3874
+ });
3875
+ const s = lt(null);
3876
+ return os((o) => {
3877
+ o && t.onMount?.(o), e && (o ? e.mount(o) : e.unmount());
3878
+ const r = n.current;
3879
+ if (typeof r == "function")
3880
+ if (o) {
3881
+ const a = r(o);
3882
+ typeof a == "function" && (s.current = a);
3883
+ } else s.current ? (s.current(), s.current = null) : r(o);
3884
+ else r && (r.current = o);
3885
+ }, [e]);
3886
+ }
3887
+ var jr = At({});
3888
+ function yt(t) {
3889
+ return t && typeof t == "object" && Object.prototype.hasOwnProperty.call(t, "current");
3890
+ }
3891
+ function oc(t, e, i, n, s, o) {
3892
+ const { visualElement: r } = N(pe), a = N(kr), l = N(ri), c = N(Lr), u = c.reducedMotion, h = c.skipAnimations, f = lt(null), p = lt(!1);
3893
+ n = n || a.renderer, !f.current && n && (f.current = n(t, {
3894
+ visualState: e,
3895
+ parent: r,
3896
+ props: i,
3897
+ presenceContext: l,
3898
+ blockInitialAnimation: l ? l.initial === !1 : !1,
3899
+ reducedMotionConfig: u,
3900
+ skipAnimations: h,
3901
+ isSVG: o
3902
+ }), p.current && f.current && (f.current.manuallyAnimateOnMount = !0));
3903
+ const d = f.current, g = N(jr);
3904
+ d && !d.projection && s && (d.type === "html" || d.type === "svg") && ac(f.current, i, s, g);
3905
+ const m = lt(!1);
3906
+ as(() => {
3907
+ d && m.current && d.update(i, l);
3908
+ });
3909
+ const P = i[er], x = lt(!!P && typeof window < "u" && !window.MotionHandoffIsComplete?.(P) && window.MotionHasOptimisedAnimation?.(P));
3910
+ return Oi(() => {
3911
+ !p.current || !d || (d.animationState?.animateChanges(), d.enteringChildren = void 0);
3912
+ }, []), Oi(() => {
3913
+ p.current = !0, d && (m.current = !0, window.MotionIsMounted = !0, d.updateFeatures(), d.scheduleRenderMicrotask(), x.current && d.animationState && d.animationState.animateChanges());
3914
+ }), si(() => {
3915
+ d && (!x.current && d.animationState && d.animationState.animateChanges(), x.current && (queueMicrotask(() => {
3916
+ window.MotionHandoffMarkAsComplete?.(P);
3917
+ }), x.current = !1), d.enteringChildren = void 0);
3918
+ }), d;
3919
+ }
3920
+ function ac(t, e, i, n) {
3921
+ const { layoutId: s, layout: o, drag: r, dragConstraints: a, layoutScroll: l, layoutRoot: c, layoutAnchor: u, layoutCrossfade: h } = e;
3922
+ t.projection = new i(t.latestValues, e["data-framer-portal-id"] ? void 0 : Nr(t.parent)), t.projection.setOptions({
3923
+ layoutId: s,
3924
+ layout: o,
3925
+ alwaysMeasureLayout: !!r || a && yt(a),
3926
+ visualElement: t,
3927
+ animationType: typeof o == "string" ? o : "both",
3928
+ initialPromotionConfig: n,
3929
+ crossfade: h,
3930
+ layoutScroll: l,
3931
+ layoutRoot: c,
3932
+ layoutAnchor: u
3933
+ });
3934
+ }
3935
+ function Nr(t) {
3936
+ if (t)
3937
+ return t.options.allowProjection !== !1 ? t.projection : Nr(t.parent);
3938
+ }
3939
+ function Me(t, { forwardMotionProps: e = !1, type: i } = {}, n, s) {
3940
+ n && $u(n);
3941
+ const o = i ? i === "svg" : Bi(t), r = o ? nc : ic;
3942
+ function a(c, u) {
3943
+ let h;
3944
+ const f = {
3945
+ ...N(Lr),
3946
+ ...c,
3947
+ layoutId: lc(c)
3948
+ }, { isStatic: p, isValidProp: d } = f, g = zu(c), m = r(c, p);
3949
+ if (!p && typeof window < "u") {
3950
+ uc(f, n);
3951
+ const P = cc(f);
3952
+ h = P.MeasureLayout, g.visualElement = oc(t, m, f, s, P.ProjectionNode, o);
3953
+ }
3954
+ return Yr(pe.Provider, {
3955
+ value: g,
3956
+ children: [h && g.visualElement ? ls(h, {
3957
+ visualElement: g.visualElement,
3958
+ ...f
3959
+ }) : null, Qu(t, c, rc(m, g.visualElement, u), m, p, e, o, d)]
3960
+ });
3961
+ }
3962
+ a.displayName = `motion.${typeof t == "string" ? t : `create(${t.displayName ?? t.name ?? ""})`}`;
3963
+ const l = Gr(a);
3964
+ return l[sc] = t, l;
3965
+ }
3966
+ function lc({ layoutId: t }) {
3967
+ const e = N(us).id;
3968
+ return e && t !== void 0 ? e + "-" + t : t;
3969
+ }
3970
+ function uc(t, e) {
3971
+ const i = N(kr).strict;
3972
+ if (process.env.NODE_ENV !== "production" && e && i) {
3973
+ const n = "You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";
3974
+ t.ignoreStrict ? mt(!1, n, "lazy-strict-mode") : q(!1, n, "lazy-strict-mode");
3975
+ }
3976
+ }
3977
+ function cc(t) {
3978
+ const { drag: e, layout: i } = Br();
3979
+ if (!e && !i) return {};
3980
+ const n = {
3981
+ ...e,
3982
+ ...i
3983
+ };
3984
+ return {
3985
+ MeasureLayout: e?.isEnabled(t) || i?.isEnabled(t) ? n.MeasureLayout : void 0,
3986
+ ProjectionNode: n.ProjectionNode
3987
+ };
3988
+ }
3989
+ function hc(t, e) {
3990
+ if (typeof Proxy > "u") return Me;
3991
+ const i = /* @__PURE__ */ new Map(), n = (o, r) => Me(o, r, t, e), s = (o, r) => (process.env.NODE_ENV !== "production" && ui(!1, "motion() is deprecated. Use motion.create() instead."), n(o, r));
3992
+ return new Proxy(s, { get: (o, r) => r === "create" ? n : (i.has(r) || i.set(r, Me(r, void 0, t, e)), i.get(r)) });
3993
+ }
3994
+ var fc = (t, e) => e.isSVG ?? Bi(t) ? new Hl(e) : new _l(e, { allowProjection: t !== rs }), dc = class extends st {
3995
+ constructor(t) {
3996
+ super(t), t.animationState || (t.animationState = Yl(t));
3997
+ }
3998
+ updateAnimationControlsSubscription() {
3999
+ const { animate: t } = this.node.getProps();
4000
+ de(t) && (this.unmountControls = t.subscribe(this.node));
4001
+ }
4002
+ mount() {
4003
+ this.updateAnimationControlsSubscription();
4004
+ }
4005
+ update() {
4006
+ const { animate: t } = this.node.getProps(), { animate: e } = this.node.prevProps || {};
4007
+ t !== e && this.updateAnimationControlsSubscription();
4008
+ }
4009
+ unmount() {
4010
+ this.node.animationState.reset(), this.unmountControls?.();
4011
+ }
4012
+ }, mc = 0, pc = class extends st {
4013
+ constructor() {
4014
+ super(...arguments), this.id = mc++;
4015
+ }
4016
+ update() {
4017
+ const { presenceContext: t, prevPresenceContext: e, animationState: i } = this.node;
4018
+ if (!t || !i) return;
4019
+ const { isPresent: n, onExitComplete: s } = t, o = e?.isPresent;
4020
+ if (n === o) return;
4021
+ if (n && o === !1) {
4022
+ if (this.exit === !0) {
4023
+ const { initial: a } = this.node.getProps();
4024
+ if (a && !Array.isArray(a)) {
4025
+ const { transition: l, transitionEnd: c, ...u } = dt(this.node, a) || {};
4026
+ for (const h in u) this.node.getValue(h)?.jump(u[h]);
4027
+ }
4028
+ this.node.blockInitialAnimation = !1, i.reset(), i.animateChanges();
4029
+ } else i.setActive("exit", !1);
4030
+ this.exit = void 0;
4031
+ return;
4032
+ }
4033
+ const r = this.exit = i.setActive("exit", !n);
4034
+ s && !n && r.then(() => {
4035
+ this.exit === r && (this.exit = !0, s(this.id));
4036
+ });
4037
+ }
4038
+ mount() {
4039
+ const { register: t, onExitComplete: e } = this.node.presenceContext || {};
4040
+ e && e(this.id), t && (this.unmount = t(this.id));
4041
+ }
4042
+ unmount() {
4043
+ }
4044
+ }, vc = {
4045
+ animation: { Feature: dc },
4046
+ exit: { Feature: pc }
4047
+ };
4048
+ function ve(t) {
4049
+ return { point: {
4050
+ x: t.pageX,
4051
+ y: t.pageY
4052
+ } };
4053
+ }
4054
+ var gc = (t) => (e) => Ci(e) && t(e, ve(e));
4055
+ function Rt(t, e, i, n) {
4056
+ return jt(t, e, gc(i), n);
4057
+ }
4058
+ var Ur = ({ current: t }) => t ? t.ownerDocument.defaultView : null, Yn = (t, e) => Math.abs(t - e);
4059
+ function yc(t, e) {
4060
+ const i = Yn(t.x, e.x), n = Yn(t.y, e.y);
4061
+ return Math.sqrt(i ** 2 + n ** 2);
4062
+ }
4063
+ var qn = /* @__PURE__ */ new Set(["auto", "scroll"]), Wr = class {
4064
+ constructor(t, e, { transformPagePoint: i, contextWindow: n = window, dragSnapToOrigin: s = !1, distanceThreshold: o = 3, element: r } = {}) {
4065
+ if (this.startEvent = null, this.lastMoveEvent = null, this.lastMoveEventInfo = null, this.lastRawMoveEventInfo = null, this.handlers = {}, this.contextWindow = window, this.scrollPositions = /* @__PURE__ */ new Map(), this.removeScrollListeners = null, this.onElementScroll = (f) => {
4066
+ this.handleScroll(f.target);
4067
+ }, this.onWindowScroll = () => {
4068
+ this.handleScroll(window);
4069
+ }, this.updatePoint = () => {
4070
+ if (!(this.lastMoveEvent && this.lastMoveEventInfo)) return;
4071
+ this.hasPendingMove = !1, this.lastRawMoveEventInfo && (this.lastMoveEventInfo = _t(this.lastRawMoveEventInfo, this.transformPagePoint));
4072
+ const f = Ee(this.lastMoveEventInfo, this.history), p = this.startEvent !== null, d = yc(f.offset, {
4073
+ x: 0,
4074
+ y: 0
4075
+ }) >= this.distanceThreshold;
4076
+ if (!p && !d) return;
4077
+ const { point: g } = f;
4078
+ this.history.push({
4079
+ ...g,
4080
+ timestamp: k.now()
4081
+ });
4082
+ const { onStart: m, onMove: P } = this.handlers;
4083
+ p || (m && m(this.lastMoveEvent, f), this.startEvent = this.lastMoveEvent), P && P(this.lastMoveEvent, f);
4084
+ }, this.handlePointerMove = (f, p) => {
4085
+ this.lastMoveEvent = f, this.lastRawMoveEventInfo = p, this.lastMoveEventInfo = _t(p, this.transformPagePoint), this.hasPendingMove = !0, D.update(this.updatePoint, !0);
4086
+ }, this.handlePointerUp = (f, p) => {
4087
+ this.hasPendingMove && this.updatePoint(), this.end();
4088
+ const { onEnd: d, onSessionEnd: g, resumeAnimation: m } = this.handlers;
4089
+ if ((this.dragSnapToOrigin || !this.startEvent) && m && m(), !(this.lastMoveEvent && this.lastMoveEventInfo)) return;
4090
+ const P = Ee(f.type === "pointercancel" ? this.lastMoveEventInfo : _t(p, this.transformPagePoint), this.history);
4091
+ this.startEvent && d && d(f, P), g && g(f, P);
4092
+ }, !Ci(t)) return;
4093
+ this.dragSnapToOrigin = s, this.handlers = e, this.transformPagePoint = i, this.distanceThreshold = o, this.contextWindow = n || window;
4094
+ const a = _t(ve(t), this.transformPagePoint), { point: l } = a, { timestamp: c } = C;
4095
+ this.history = [{
4096
+ ...l,
4097
+ timestamp: c
4098
+ }];
4099
+ const { onSessionStart: u } = e;
4100
+ u && u(t, Ee(a, this.history));
4101
+ const h = {
4102
+ passive: !0,
4103
+ capture: !0
4104
+ };
4105
+ this.removeListeners = Nt(Rt(this.contextWindow, "pointermove", this.handlePointerMove, h), Rt(this.contextWindow, "pointerup", this.handlePointerUp, h), Rt(this.contextWindow, "pointercancel", this.handlePointerUp, h)), r && this.startScrollTracking(r);
4106
+ }
4107
+ startScrollTracking(t) {
4108
+ let e = t.parentElement;
4109
+ for (; e; ) {
4110
+ const i = getComputedStyle(e);
4111
+ (qn.has(i.overflowX) || qn.has(i.overflowY)) && this.scrollPositions.set(e, {
4112
+ x: e.scrollLeft,
4113
+ y: e.scrollTop
4114
+ }), e = e.parentElement;
4115
+ }
4116
+ this.scrollPositions.set(window, {
4117
+ x: window.scrollX,
4118
+ y: window.scrollY
4119
+ }), window.addEventListener("scroll", this.onElementScroll, { capture: !0 }), window.addEventListener("scroll", this.onWindowScroll), this.removeScrollListeners = () => {
4120
+ window.removeEventListener("scroll", this.onElementScroll, { capture: !0 }), window.removeEventListener("scroll", this.onWindowScroll);
4121
+ };
4122
+ }
4123
+ handleScroll(t) {
4124
+ const e = this.scrollPositions.get(t);
4125
+ if (!e) return;
4126
+ const i = t === window, n = i ? {
4127
+ x: window.scrollX,
4128
+ y: window.scrollY
4129
+ } : {
4130
+ x: t.scrollLeft,
4131
+ y: t.scrollTop
4132
+ }, s = {
4133
+ x: n.x - e.x,
4134
+ y: n.y - e.y
4135
+ };
4136
+ s.x === 0 && s.y === 0 || (i ? this.lastMoveEventInfo && (this.lastMoveEventInfo.point.x += s.x, this.lastMoveEventInfo.point.y += s.y) : this.history.length > 0 && (this.history[0].x -= s.x, this.history[0].y -= s.y), this.scrollPositions.set(t, n), D.update(this.updatePoint, !0));
4137
+ }
4138
+ updateHandlers(t) {
4139
+ this.handlers = t;
4140
+ }
4141
+ end() {
4142
+ this.removeListeners && this.removeListeners(), this.removeScrollListeners && this.removeScrollListeners(), this.scrollPositions.clear(), nt(this.updatePoint);
4143
+ }
4144
+ };
4145
+ function _t(t, e) {
4146
+ return e ? { point: e(t.point) } : t;
4147
+ }
4148
+ function Zn(t, e) {
4149
+ return {
4150
+ x: t.x - e.x,
4151
+ y: t.y - e.y
4152
+ };
4153
+ }
4154
+ function Ee({ point: t }, e) {
4155
+ return {
4156
+ point: t,
4157
+ delta: Zn(t, $r(e)),
4158
+ offset: Zn(t, Tc(e)),
4159
+ velocity: xc(e, 0.1)
4160
+ };
4161
+ }
4162
+ function Tc(t) {
4163
+ return t[0];
4164
+ }
4165
+ function $r(t) {
4166
+ return t[t.length - 1];
4167
+ }
4168
+ function xc(t, e) {
4169
+ if (t.length < 2) return {
4170
+ x: 0,
4171
+ y: 0
4172
+ };
4173
+ let i = t.length - 1, n = null;
4174
+ const s = $r(t);
4175
+ for (; i >= 0 && (n = t[i], !(s.timestamp - n.timestamp > U(e))); )
4176
+ i--;
4177
+ if (!n) return {
4178
+ x: 0,
4179
+ y: 0
4180
+ };
4181
+ n === t[0] && t.length > 2 && s.timestamp - n.timestamp > U(e) * 2 && (n = t[1]);
4182
+ const o = $(s.timestamp - n.timestamp);
4183
+ if (o === 0) return {
4184
+ x: 0,
4185
+ y: 0
4186
+ };
4187
+ const r = {
4188
+ x: (s.x - n.x) / o,
4189
+ y: (s.y - n.y) / o
4190
+ };
4191
+ return r.x === 1 / 0 && (r.x = 0), r.y === 1 / 0 && (r.y = 0), r;
4192
+ }
4193
+ function wc(t, { min: e, max: i }, n) {
4194
+ return e !== void 0 && t < e ? t = n ? V(e, t, n.min) : Math.max(t, e) : i !== void 0 && t > i && (t = n ? V(i, t, n.max) : Math.min(t, i)), t;
4195
+ }
4196
+ function Jn(t, e, i) {
4197
+ return {
4198
+ min: e !== void 0 ? t.min + e : void 0,
4199
+ max: i !== void 0 ? t.max + i - (t.max - t.min) : void 0
4200
+ };
4201
+ }
4202
+ function Sc(t, { top: e, left: i, bottom: n, right: s }) {
4203
+ return {
4204
+ x: Jn(t.x, i, s),
4205
+ y: Jn(t.y, e, n)
4206
+ };
4207
+ }
4208
+ function Qn(t, e) {
4209
+ let i = e.min - t.min, n = e.max - t.max;
4210
+ return e.max - e.min < t.max - t.min && ([i, n] = [n, i]), {
4211
+ min: i,
4212
+ max: n
4213
+ };
4214
+ }
4215
+ function Pc(t, e) {
4216
+ return {
4217
+ x: Qn(t.x, e.x),
4218
+ y: Qn(t.y, e.y)
4219
+ };
4220
+ }
4221
+ function bc(t, e) {
4222
+ let i = 0.5;
4223
+ const n = O(t), s = O(e);
4224
+ return s > n ? i = Lt(e.min, e.max - n, t.min) : n > s && (i = Lt(t.min, t.max - s, e.min)), tt(0, 1, i);
4225
+ }
4226
+ function Ac(t, e) {
4227
+ const i = {};
4228
+ return e.min !== void 0 && (i.min = e.min - t.min), e.max !== void 0 && (i.max = e.max - t.min), i;
4229
+ }
4230
+ var ii = 0.35;
4231
+ function Vc(t = ii) {
4232
+ return t === !1 ? t = 0 : t === !0 && (t = ii), {
4233
+ x: ts(t, "left", "right"),
4234
+ y: ts(t, "top", "bottom")
4235
+ };
4236
+ }
4237
+ function ts(t, e, i) {
4238
+ return {
4239
+ min: es(t, e),
4240
+ max: es(t, i)
4241
+ };
4242
+ }
4243
+ function es(t, e) {
4244
+ return typeof t == "number" ? t : t[e] || 0;
4245
+ }
4246
+ var Dc = /* @__PURE__ */ new WeakMap(), Mc = class {
4247
+ constructor(t) {
4248
+ this.openDragLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = {
4249
+ x: 0,
4250
+ y: 0
4251
+ }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = E(), this.latestPointerEvent = null, this.latestPanInfo = null, this.visualElement = t;
4252
+ }
4253
+ start(t, { snapToCursor: e = !1, distanceThreshold: i } = {}) {
4254
+ const { presenceContext: n } = this.visualElement;
4255
+ if (n && n.isPresent === !1) return;
4256
+ const s = (u) => {
4257
+ e && this.snapToCursor(u), this.stopAnimation();
4258
+ }, o = (u, h) => {
4259
+ const { drag: f, dragPropagation: p, onDragStart: d } = this.getProps();
4260
+ if (f && !p && (this.openDragLock && this.openDragLock(), this.openDragLock = xl(f), !this.openDragLock))
4261
+ return;
4262
+ this.latestPointerEvent = u, this.latestPanInfo = h, this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), H((m) => {
4263
+ let P = this.getAxisMotionValue(m).get() || 0;
4264
+ if (Y.test(P)) {
4265
+ const { projection: x } = this.visualElement;
4266
+ if (x && x.layout) {
4267
+ const S = x.layout.layoutBox[m];
4268
+ S && (P = O(S) * (parseFloat(P) / 100));
4269
+ }
4270
+ }
4271
+ this.originPoint[m] = P;
4272
+ }), d && D.update(() => d(u, h), !1, !0), Ye(this.visualElement, "transform");
4273
+ const { animationState: g } = this.visualElement;
4274
+ g && g.setActive("whileDrag", !0);
4275
+ }, r = (u, h) => {
4276
+ this.latestPointerEvent = u, this.latestPanInfo = h;
4277
+ const { dragPropagation: f, dragDirectionLock: p, onDirectionLock: d, onDrag: g } = this.getProps();
4278
+ if (!f && !this.openDragLock) return;
4279
+ const { offset: m } = h;
4280
+ if (p && this.currentDirection === null) {
4281
+ this.currentDirection = Cc(m), this.currentDirection !== null && d && d(this.currentDirection);
4282
+ return;
4283
+ }
4284
+ this.updateAxis("x", h.point, m), this.updateAxis("y", h.point, m), this.visualElement.render(), g && D.update(() => g(u, h), !1, !0);
4285
+ }, a = (u, h) => {
4286
+ this.latestPointerEvent = u, this.latestPanInfo = h, this.stop(u, h), this.latestPointerEvent = null, this.latestPanInfo = null;
4287
+ }, l = () => {
4288
+ const { dragSnapToOrigin: u } = this.getProps();
4289
+ (u || this.constraints) && this.startAnimation({
4290
+ x: 0,
4291
+ y: 0
4292
+ });
4293
+ }, { dragSnapToOrigin: c } = this.getProps();
4294
+ this.panSession = new Wr(t, {
4295
+ onSessionStart: s,
4296
+ onStart: o,
4297
+ onMove: r,
4298
+ onSessionEnd: a,
4299
+ resumeAnimation: l
4300
+ }, {
4301
+ transformPagePoint: this.visualElement.getTransformPagePoint(),
4302
+ dragSnapToOrigin: c,
4303
+ distanceThreshold: i,
4304
+ contextWindow: Ur(this.visualElement),
4305
+ element: this.visualElement.current
4306
+ });
4307
+ }
4308
+ stop(t, e) {
4309
+ const i = t || this.latestPointerEvent, n = e || this.latestPanInfo, s = this.isDragging;
4310
+ if (this.cancel(), !s || !n || !i) return;
4311
+ const { velocity: o } = n;
4312
+ this.startAnimation(o);
4313
+ const { onDragEnd: r } = this.getProps();
4314
+ r && D.postRender(() => r(i, n));
4315
+ }
4316
+ cancel() {
4317
+ this.isDragging = !1;
4318
+ const { projection: t, animationState: e } = this.visualElement;
4319
+ t && (t.isAnimationBlocked = !1), this.endPanSession();
4320
+ const { dragPropagation: i } = this.getProps();
4321
+ !i && this.openDragLock && (this.openDragLock(), this.openDragLock = null), e && e.setActive("whileDrag", !1);
4322
+ }
4323
+ endPanSession() {
4324
+ this.panSession && this.panSession.end(), this.panSession = void 0;
4325
+ }
4326
+ updateAxis(t, e, i) {
4327
+ const { drag: n } = this.getProps();
4328
+ if (!i || !Gt(t, n, this.currentDirection)) return;
4329
+ const s = this.getAxisMotionValue(t);
4330
+ let o = this.originPoint[t] + i[t];
4331
+ this.constraints && this.constraints[t] && (o = wc(o, this.constraints[t], this.elastic[t])), s.set(o);
4332
+ }
4333
+ resolveConstraints() {
4334
+ const { dragConstraints: t, dragElastic: e } = this.getProps(), i = this.visualElement.projection && !this.visualElement.projection.layout ? this.visualElement.projection.measure(!1) : this.visualElement.projection?.layout, n = this.constraints;
4335
+ t && yt(t) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : t && i ? this.constraints = Sc(i.layoutBox, t) : this.constraints = !1, this.elastic = Vc(e), n !== this.constraints && !yt(t) && i && this.constraints && !this.hasMutatedConstraints && H((s) => {
4336
+ this.constraints !== !1 && this.getAxisMotionValue(s) && (this.constraints[s] = Ac(i.layoutBox[s], this.constraints[s]));
4337
+ });
4338
+ }
4339
+ resolveRefConstraints() {
4340
+ const { dragConstraints: t, onMeasureDragConstraints: e } = this.getProps();
4341
+ if (!t || !yt(t)) return !1;
4342
+ const i = t.current;
4343
+ q(i !== null, "If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.", "drag-constraints-ref");
4344
+ const { projection: n } = this.visualElement;
4345
+ if (!n || !n.layout) return !1;
4346
+ n.root && (n.root.scroll = void 0, n.root.updateScroll());
4347
+ const s = Tl(i, n.root, this.visualElement.getTransformPagePoint());
4348
+ let o = Pc(n.layout.layoutBox, s);
4349
+ if (e) {
4350
+ const r = e(vl(o));
4351
+ this.hasMutatedConstraints = !!r, r && (o = ar(r));
4352
+ }
4353
+ return o;
4354
+ }
4355
+ startAnimation(t) {
4356
+ const { drag: e, dragMomentum: i, dragElastic: n, dragTransition: s, dragSnapToOrigin: o, onDragTransitionEnd: r } = this.getProps(), a = this.constraints || {}, l = H((c) => {
4357
+ if (!Gt(c, e, this.currentDirection)) return;
4358
+ let u = a && a[c] || {};
4359
+ (o === !0 || o === c) && (u = {
4360
+ min: 0,
4361
+ max: 0
4362
+ });
4363
+ const h = n ? 200 : 1e6, f = n ? 40 : 1e7, p = {
4364
+ type: "inertia",
4365
+ velocity: i ? t[c] : 0,
4366
+ bounceStiffness: h,
4367
+ bounceDamping: f,
4368
+ timeConstant: 750,
4369
+ restDelta: 1,
4370
+ restSpeed: 10,
4371
+ ...s,
4372
+ ...u
4373
+ };
4374
+ return this.startAxisValueAnimation(c, p);
4375
+ });
4376
+ return Promise.all(l).then(r);
4377
+ }
4378
+ startAxisValueAnimation(t, e) {
4379
+ const i = this.getAxisMotionValue(t);
4380
+ return Ye(this.visualElement, t), i.start(bi(t, i, 0, e, this.visualElement, !1));
4381
+ }
4382
+ stopAnimation() {
4383
+ H((t) => this.getAxisMotionValue(t).stop());
4384
+ }
4385
+ getAxisMotionValue(t) {
4386
+ const e = `_drag${t.toUpperCase()}`, i = this.visualElement.getProps()[e];
4387
+ return i || this.visualElement.getValue(t, this.visualElement.latestValues[t] ?? 0);
4388
+ }
4389
+ snapToCursor({ clientX: t, clientY: e }) {
4390
+ const { drag: i } = this.getProps(), n = {
4391
+ x: t,
4392
+ y: e
4393
+ }, s = this.visualElement.getTransformPagePoint()?.(n) || n, o = this.visualElement.measureViewportBox();
4394
+ H((r) => {
4395
+ if (!Gt(r, i, this.currentDirection)) return;
4396
+ const a = this.getAxisMotionValue(r), { min: l, max: c } = o[r];
4397
+ a.set((a.get() || 0) + s[r] - V(l, c, 0.5));
4398
+ });
4399
+ }
4400
+ scalePositionWithinConstraints() {
4401
+ if (!this.visualElement.current) return;
4402
+ const { drag: t, dragConstraints: e } = this.getProps(), { projection: i } = this.visualElement;
4403
+ if (!yt(e) || !i || !this.constraints) return;
4404
+ this.stopAnimation();
4405
+ const n = this.constraints, s = {
4406
+ x: 0,
4407
+ y: 0
4408
+ };
4409
+ H((r) => {
4410
+ const a = this.getAxisMotionValue(r).get();
4411
+ s[r] = bc({
4412
+ min: a,
4413
+ max: a
4414
+ }, n[r]);
4415
+ });
4416
+ const { transformTemplate: o } = this.visualElement.getProps();
4417
+ this.visualElement.current.style.transform = o ? o({}, "") : "none", i.root && i.root.updateScroll(), i.updateLayout(), this.constraints = !1, this.resolveConstraints(), H((r) => {
4418
+ const a = this.getAxisMotionValue(r);
4419
+ if (!Gt(r, t, null) || !a.get()) return;
4420
+ const { min: l, max: c } = this.constraints[r];
4421
+ a.set(V(l, c, s[r]));
4422
+ }), this.visualElement.render();
4423
+ }
4424
+ addListeners() {
4425
+ if (!this.visualElement.current) return;
4426
+ Dc.set(this.visualElement, this);
4427
+ const t = this.visualElement.current, e = Rt(t, "pointerdown", (l) => {
4428
+ const { drag: c, dragListener: u = !0 } = this.getProps(), h = l.target, f = h !== t && Vl(h);
4429
+ c && u && !f && this.start(l);
4430
+ });
4431
+ let i;
4432
+ const n = () => {
4433
+ const { dragConstraints: l } = this.getProps();
4434
+ yt(l) && l.current && (this.constraints = this.resolveRefConstraints(), i || (i = Ec(t, l.current, () => this.scalePositionWithinConstraints())));
4435
+ }, { projection: s } = this.visualElement, o = s.addEventListener("measure", n);
4436
+ s && !s.layout && (s.root && s.root.updateScroll(), s.updateLayout()), D.read(n);
4437
+ const r = jt(window, "resize", () => this.scalePositionWithinConstraints()), a = s.addEventListener("didUpdate", (({ delta: l, hasLayoutChanged: c }) => {
4438
+ this.isDragging && c && (H((u) => {
4439
+ const h = this.getAxisMotionValue(u);
4440
+ h && (this.originPoint[u] += l[u].translate, h.set(h.get() + l[u].translate));
4441
+ }), this.visualElement.render());
4442
+ }));
4443
+ return () => {
4444
+ r(), e(), o(), a && a(), i && i();
4445
+ };
4446
+ }
4447
+ getProps() {
4448
+ const t = this.visualElement.getProps(), { drag: e = !1, dragDirectionLock: i = !1, dragPropagation: n = !1, dragConstraints: s = !1, dragElastic: o = ii, dragMomentum: r = !0 } = t;
4449
+ return {
4450
+ ...t,
4451
+ drag: e,
4452
+ dragDirectionLock: i,
4453
+ dragPropagation: n,
4454
+ dragConstraints: s,
4455
+ dragElastic: o,
4456
+ dragMomentum: r
4457
+ };
4458
+ }
4459
+ };
4460
+ function is(t) {
4461
+ let e = !0;
4462
+ return () => {
4463
+ if (e) {
4464
+ e = !1;
4465
+ return;
4466
+ }
4467
+ t();
4468
+ };
4469
+ }
4470
+ function Ec(t, e, i) {
4471
+ const n = vn(t, is(i)), s = vn(e, is(i));
4472
+ return () => {
4473
+ n(), s();
4474
+ };
4475
+ }
4476
+ function Gt(t, e, i) {
4477
+ return (e === !0 || e === t) && (i === null || i === t);
4478
+ }
4479
+ function Cc(t, e = 10) {
4480
+ let i = null;
4481
+ return Math.abs(t.y) > e ? i = "y" : Math.abs(t.x) > e && (i = "x"), i;
4482
+ }
4483
+ var Rc = class extends st {
4484
+ constructor(t) {
4485
+ super(t), this.removeGroupControls = _, this.removeListeners = _, this.controls = new Mc(t);
4486
+ }
4487
+ mount() {
4488
+ const { dragControls: t } = this.node.getProps();
4489
+ t && (this.removeGroupControls = t.subscribe(this.controls)), this.removeListeners = this.controls.addListeners() || _;
4490
+ }
4491
+ update() {
4492
+ const { dragControls: t } = this.node.getProps(), { dragControls: e } = this.node.prevProps || {};
4493
+ t !== e && (this.removeGroupControls(), t && (this.removeGroupControls = t.subscribe(this.controls)));
4494
+ }
4495
+ unmount() {
4496
+ this.removeGroupControls(), this.removeListeners(), this.controls.isDragging || this.controls.endPanSession();
4497
+ }
4498
+ }, Ce = (t) => (e, i) => {
4499
+ t && D.update(() => t(e, i), !1, !0);
4500
+ }, Lc = class extends st {
4501
+ constructor() {
4502
+ super(...arguments), this.removePointerDownListener = _;
4503
+ }
4504
+ onPointerDown(t) {
4505
+ this.session = new Wr(t, this.createPanHandlers(), {
4506
+ transformPagePoint: this.node.getTransformPagePoint(),
4507
+ contextWindow: Ur(this.node)
4508
+ });
4509
+ }
4510
+ createPanHandlers() {
4511
+ const { onPanSessionStart: t, onPanStart: e, onPan: i, onPanEnd: n } = this.node.getProps();
4512
+ return {
4513
+ onSessionStart: Ce(t),
4514
+ onStart: Ce(e),
4515
+ onMove: Ce(i),
4516
+ onEnd: (s, o) => {
4517
+ delete this.session, n && D.postRender(() => n(s, o));
4518
+ }
4519
+ };
4520
+ }
4521
+ mount() {
4522
+ this.removePointerDownListener = Rt(this.node.current, "pointerdown", (t) => this.onPointerDown(t));
4523
+ }
4524
+ update() {
4525
+ this.session && this.session.updateHandlers(this.createPanHandlers());
4526
+ }
4527
+ unmount() {
4528
+ this.removePointerDownListener(), this.session && this.session.end();
4529
+ }
4530
+ }, Re = !1, kc = class extends zr {
4531
+ componentDidMount() {
4532
+ const { visualElement: t, layoutGroup: e, switchLayoutGroup: i, layoutId: n } = this.props, { projection: s } = t;
4533
+ s && (e.group && e.group.add(s), i && i.register && n && i.register(s), Re && s.root.didUpdate(), s.addEventListener("animationComplete", () => {
4534
+ this.safeToRemove();
4535
+ }), s.setOptions({
4536
+ ...s.options,
4537
+ layoutDependency: this.props.layoutDependency,
4538
+ onExitComplete: () => this.safeToRemove()
4539
+ })), te.hasEverUpdated = !0;
4540
+ }
4541
+ getSnapshotBeforeUpdate(t) {
4542
+ const { layoutDependency: e, visualElement: i, drag: n, isPresent: s } = this.props, { projection: o } = i;
4543
+ return o && (o.isPresent = s, t.layoutDependency !== e && o.setOptions({
4544
+ ...o.options,
4545
+ layoutDependency: e
4546
+ }), Re = !0, n || t.layoutDependency !== e || e === void 0 || t.isPresent !== s ? o.willUpdate() : this.safeToRemove(), t.isPresent !== s && (s ? o.promote() : o.relegate() || D.postRender(() => {
4547
+ const r = o.getStack();
4548
+ (!r || !r.members.length) && this.safeToRemove();
4549
+ }))), null;
4550
+ }
4551
+ componentDidUpdate() {
4552
+ const { visualElement: t, layoutAnchor: e } = this.props, { projection: i } = t;
4553
+ i && (i.options.layoutAnchor = e, i.root.didUpdate(), Ei.postRender(() => {
4554
+ !i.currentAnimation && i.isLead() && this.safeToRemove();
4555
+ }));
4556
+ }
4557
+ componentWillUnmount() {
4558
+ const { visualElement: t, layoutGroup: e, switchLayoutGroup: i } = this.props, { projection: n } = t;
4559
+ Re = !0, n && (n.scheduleCheckAfterUnmount(), e && e.group && e.group.remove(n), i && i.deregister && i.deregister(n));
4560
+ }
4561
+ safeToRemove() {
4562
+ const { safeToRemove: t } = this.props;
4563
+ t && t();
4564
+ }
4565
+ render() {
4566
+ return null;
4567
+ }
4568
+ };
4569
+ function Kr(t) {
4570
+ const [e, i] = Uu(), n = N(us);
4571
+ return ls(kc, {
4572
+ ...t,
4573
+ layoutGroup: n,
4574
+ switchLayoutGroup: N(jr),
4575
+ isPresent: e,
4576
+ safeToRemove: i
4577
+ });
4578
+ }
4579
+ var Bc = {
4580
+ pan: { Feature: Lc },
4581
+ drag: {
4582
+ Feature: Rc,
4583
+ ProjectionNode: Rr,
4584
+ MeasureLayout: Kr
4585
+ }
4586
+ };
4587
+ function ns(t, e, i) {
4588
+ const { props: n } = t;
4589
+ t.animationState && n.whileHover && t.animationState.setActive("whileHover", i === "Start");
4590
+ const s = n["onHover" + i];
4591
+ s && D.postRender(() => s(e, ve(e)));
4592
+ }
4593
+ var Ic = class extends st {
4594
+ mount() {
4595
+ const { current: t } = this.node;
4596
+ t && (this.unmount = Sl(t, (e, i) => (ns(this.node, i, "Start"), (n) => ns(this.node, n, "End"))));
4597
+ }
4598
+ unmount() {
4599
+ }
4600
+ }, Fc = class extends st {
4601
+ constructor() {
4602
+ super(...arguments), this.isActive = !1;
4603
+ }
4604
+ onFocus() {
4605
+ let t = !1;
4606
+ try {
4607
+ t = this.node.current.matches(":focus-visible");
4608
+ } catch {
4609
+ t = !0;
4610
+ }
4611
+ !t || !this.node.animationState || (this.node.animationState.setActive("whileFocus", !0), this.isActive = !0);
4612
+ }
4613
+ onBlur() {
4614
+ !this.isActive || !this.node.animationState || (this.node.animationState.setActive("whileFocus", !1), this.isActive = !1);
4615
+ }
4616
+ mount() {
4617
+ this.unmount = Nt(jt(this.node.current, "focus", () => this.onFocus()), jt(this.node.current, "blur", () => this.onBlur()));
4618
+ }
4619
+ unmount() {
4620
+ }
4621
+ };
4622
+ function ss(t, e, i) {
4623
+ const { props: n } = t;
4624
+ if (t.current instanceof HTMLButtonElement && t.current.disabled) return;
4625
+ t.animationState && n.whileTap && t.animationState.setActive("whileTap", i === "Start");
4626
+ const s = n["onTap" + (i === "End" ? "" : i)];
4627
+ s && D.postRender(() => s(e, ve(e)));
4628
+ }
4629
+ var Oc = class extends st {
4630
+ mount() {
4631
+ const { current: t } = this.node;
4632
+ if (!t) return;
4633
+ const { globalTapTarget: e, propagate: i } = this.node.props;
4634
+ this.unmount = Ml(t, (n, s) => (ss(this.node, s, "Start"), (o, { success: r }) => ss(this.node, o, r ? "End" : "Cancel")), {
4635
+ useGlobalTarget: e,
4636
+ stopPropagation: i?.tap === !1
4637
+ });
4638
+ }
4639
+ unmount() {
4640
+ }
4641
+ }, ni = /* @__PURE__ */ new WeakMap(), Le = /* @__PURE__ */ new WeakMap(), jc = (t) => {
4642
+ const e = ni.get(t.target);
4643
+ e && e(t);
4644
+ }, Nc = (t) => {
4645
+ t.forEach(jc);
4646
+ };
4647
+ function Uc({ root: t, ...e }) {
4648
+ const i = t || document;
4649
+ Le.has(i) || Le.set(i, {});
4650
+ const n = Le.get(i), s = JSON.stringify(e);
4651
+ return n[s] || (n[s] = new IntersectionObserver(Nc, {
4652
+ root: t,
4653
+ ...e
4654
+ })), n[s];
4655
+ }
4656
+ function Wc(t, e, i) {
4657
+ const n = Uc(e);
4658
+ return ni.set(t, i), n.observe(t), () => {
4659
+ ni.delete(t), n.unobserve(t);
4660
+ };
4661
+ }
4662
+ var $c = {
4663
+ some: 0,
4664
+ all: 1
4665
+ }, Kc = class extends st {
4666
+ constructor() {
4667
+ super(...arguments), this.hasEnteredView = !1, this.isInView = !1;
4668
+ }
4669
+ startObserver() {
4670
+ this.stopObserver?.();
4671
+ const { viewport: t = {} } = this.node.getProps(), { root: e, margin: i, amount: n = "some", once: s } = t, o = {
4672
+ root: e ? e.current : void 0,
4673
+ rootMargin: i,
4674
+ threshold: typeof n == "number" ? n : $c[n]
4675
+ }, r = (a) => {
4676
+ const { isIntersecting: l } = a;
4677
+ if (this.isInView === l || (this.isInView = l, s && !l && this.hasEnteredView)) return;
4678
+ l && (this.hasEnteredView = !0), this.node.animationState && this.node.animationState.setActive("whileInView", l);
4679
+ const { onViewportEnter: c, onViewportLeave: u } = this.node.getProps(), h = l ? c : u;
4680
+ h && h(a);
4681
+ };
4682
+ this.stopObserver = Wc(this.node.current, o, r);
4683
+ }
4684
+ mount() {
4685
+ this.startObserver();
4686
+ }
4687
+ update() {
4688
+ if (typeof IntersectionObserver > "u") return;
4689
+ const { props: t, prevProps: e } = this.node;
4690
+ [
4691
+ "amount",
4692
+ "margin",
4693
+ "root"
4694
+ ].some(zc(t, e)) && this.startObserver();
4695
+ }
4696
+ unmount() {
4697
+ this.stopObserver?.(), this.hasEnteredView = !1, this.isInView = !1;
4698
+ }
4699
+ };
4700
+ function zc({ viewport: t = {} }, { viewport: e = {} } = {}) {
4701
+ return (i) => t[i] !== e[i];
4702
+ }
4703
+ var _c = {
4704
+ inView: { Feature: Kc },
4705
+ tap: { Feature: Oc },
4706
+ focus: { Feature: Fc },
4707
+ hover: { Feature: Ic }
4708
+ }, Gc = { layout: {
4709
+ ProjectionNode: Rr,
4710
+ MeasureLayout: Kr
4711
+ } }, Hc = {
4712
+ ...vc,
4713
+ ..._c,
4714
+ ...Bc,
4715
+ ...Gc
4716
+ }, Xc = /* @__PURE__ */ hc(Hc, fc), Qc = Xc;
4717
+ export {
4718
+ vr as a,
4719
+ ui as c,
4720
+ qr as d,
4721
+ us as f,
4722
+ Wl as i,
4723
+ ri as l,
4724
+ Uu as n,
4725
+ ti as o,
4726
+ Lr as r,
4727
+ ul as s,
4728
+ Qc as t,
4729
+ Oi as u
4730
+ };