@mp-front/components 0.0.1-next-13 → 0.0.1

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 (874) hide show
  1. package/dist/assets/flags/index.d.ts +0 -1
  2. package/dist/assets/icons/index.d.ts +0 -1
  3. package/dist/carousel.component-BoAJeEI-.cjs +54 -0
  4. package/dist/{carousel.component-CdgrJtst.js → carousel.component-C1gCC7qn.js} +3502 -3320
  5. package/dist/{classNames-BiTpavcN.js → classNames-B-jGgM9Z.js} +33 -34
  6. package/dist/classNames-DOJgtGms.cjs +1 -0
  7. package/dist/components/Portal.d.ts +1 -2
  8. package/dist/components/accordion/accordion.component.d.ts +0 -1
  9. package/dist/components/accordion/accordion.content.d.ts +0 -1
  10. package/dist/components/accordion/accordion.item.d.ts +0 -1
  11. package/dist/components/accordion/accordion.stories.d.ts +0 -1
  12. package/dist/components/accordion/accordion.test.d.ts +0 -1
  13. package/dist/components/accordion/accordion.trigger.d.ts +0 -1
  14. package/dist/components/accordion/accordion.types.d.ts +0 -1
  15. package/dist/components/accordion/index.d.ts +0 -1
  16. package/dist/components/alert/alert.component.d.ts +0 -1
  17. package/dist/components/alert/alert.stories.d.ts +0 -1
  18. package/dist/components/alert/alert.test.d.ts +0 -1
  19. package/dist/components/alert/alert.types.d.ts +0 -1
  20. package/dist/components/alert/index.d.ts +0 -1
  21. package/dist/components/animation/count-up/count-up.component.d.ts +0 -1
  22. package/dist/components/animation/count-up/count-up.stories.d.ts +0 -1
  23. package/dist/components/animation/count-up/count-up.test.d.ts +0 -1
  24. package/dist/components/animation/count-up/count-up.types.d.ts +0 -1
  25. package/dist/components/animation/index.d.ts +0 -1
  26. package/dist/components/avatar/avatar.component.d.ts +0 -1
  27. package/dist/components/avatar/avatar.stories.d.ts +0 -1
  28. package/dist/components/avatar/avatar.types.d.ts +0 -1
  29. package/dist/components/avatar/index.d.ts +0 -1
  30. package/dist/components/button/button.component.d.ts +0 -1
  31. package/dist/components/button/button.stories.d.ts +0 -1
  32. package/dist/components/button/button.test.d.ts +0 -1
  33. package/dist/components/button/button.types.d.ts +0 -1
  34. package/dist/components/button/constants/color-variants.d.ts +0 -1
  35. package/dist/components/button/constants/cursor-variants.d.ts +0 -1
  36. package/dist/components/button/constants/size-variants.d.ts +0 -1
  37. package/dist/components/button/helpers/getAccumulatedSizeStyles.d.ts +0 -1
  38. package/dist/components/button/helpers/getBaseButtonStyles.d.ts +0 -1
  39. package/dist/components/button/index.d.ts +0 -1
  40. package/dist/components/card/card.component.d.ts +0 -1
  41. package/dist/components/card/card.stories.d.ts +0 -1
  42. package/dist/components/card/card.test.d.ts +0 -1
  43. package/dist/components/card/card.types.d.ts +0 -1
  44. package/dist/components/card/index.d.ts +0 -1
  45. package/dist/components/carousel/carousel-container.component.d.ts +0 -1
  46. package/dist/components/carousel/carousel-dots.component.d.ts +0 -1
  47. package/dist/components/carousel/carousel-item.component.d.ts +0 -1
  48. package/dist/components/carousel/carousel-next-button.component.d.ts +0 -1
  49. package/dist/components/carousel/carousel-prev-button.component.d.ts +0 -1
  50. package/dist/components/carousel/carousel.component.d.ts +0 -1
  51. package/dist/components/carousel/carousel.constants.d.ts +0 -1
  52. package/dist/components/carousel/carousel.context.d.ts +1 -2
  53. package/dist/components/carousel/carousel.stories.d.ts +0 -1
  54. package/dist/components/carousel/carousel.types.d.ts +0 -1
  55. package/dist/components/carousel/utils/handle-key-down.d.ts +0 -1
  56. package/dist/components/carousel/utils/index.d.ts +0 -1
  57. package/dist/components/carousel/utils/number-with-range.d.ts +0 -1
  58. package/dist/components/carousel/utils/tween-scale.d.ts +0 -1
  59. package/dist/components/checkbox/checkbox.component.d.ts +0 -1
  60. package/dist/components/checkbox/checkbox.icon.d.ts +0 -1
  61. package/dist/components/checkbox/checkbox.label.d.ts +1 -2
  62. package/dist/components/checkbox/checkbox.stories.d.ts +0 -1
  63. package/dist/components/checkbox/checkbox.test.d.ts +0 -1
  64. package/dist/components/checkbox/checkbox.types.d.ts +1 -2
  65. package/dist/components/checkbox/index.d.ts +0 -1
  66. package/dist/components/divider/divider.component.d.ts +0 -1
  67. package/dist/components/divider/divider.stories.d.ts +0 -1
  68. package/dist/components/divider/divider.test.d.ts +0 -1
  69. package/dist/components/divider/divider.types.d.ts +0 -1
  70. package/dist/components/divider/index.d.ts +0 -1
  71. package/dist/components/drawer/constants/animation-config.d.ts +0 -1
  72. package/dist/components/drawer/constants/base-styles.d.ts +0 -1
  73. package/dist/components/drawer/constants/position-variants.d.ts +0 -1
  74. package/dist/components/drawer/drawer.component.d.ts +0 -1
  75. package/dist/components/drawer/drawer.stories.d.ts +0 -1
  76. package/dist/components/drawer/drawer.test.d.ts +0 -1
  77. package/dist/components/drawer/drawer.types.d.ts +0 -1
  78. package/dist/components/drawer/index.d.ts +0 -1
  79. package/dist/components/dropdown/dropdown.component.d.ts +0 -1
  80. package/dist/components/dropdown/dropdown.content.d.ts +0 -1
  81. package/dist/components/dropdown/dropdown.item.d.ts +0 -1
  82. package/dist/components/dropdown/dropdown.label.d.ts +0 -1
  83. package/dist/components/dropdown/dropdown.renderers.d.ts +1 -2
  84. package/dist/components/dropdown/dropdown.separator.d.ts +0 -1
  85. package/dist/components/dropdown/dropdown.stories.d.ts +0 -1
  86. package/dist/components/dropdown/dropdown.test.d.ts +0 -1
  87. package/dist/components/dropdown/dropdown.trigger.d.ts +0 -1
  88. package/dist/components/dropdown/dropdown.types.d.ts +0 -1
  89. package/dist/components/dropdown/index.d.ts +0 -1
  90. package/dist/components/empty/empty.component.d.ts +0 -1
  91. package/dist/components/empty/empty.constants.d.ts +0 -1
  92. package/dist/components/empty/empty.stories.d.ts +0 -1
  93. package/dist/components/empty/empty.types.d.ts +0 -1
  94. package/dist/components/empty/index.d.ts +0 -1
  95. package/dist/components/flex/flex.component.d.ts +0 -1
  96. package/dist/components/flex/flex.stories.d.ts +0 -1
  97. package/dist/components/flex/index.d.ts +0 -1
  98. package/dist/components/grid/col/col.component.d.ts +0 -1
  99. package/dist/components/grid/col/index.d.ts +0 -1
  100. package/dist/components/grid/grid.stories.d.ts +0 -1
  101. package/dist/components/grid/grid.test.d.ts +0 -1
  102. package/dist/components/grid/grid.types.d.ts +12 -13
  103. package/dist/components/grid/index.d.ts +0 -1
  104. package/dist/components/grid/row/index.d.ts +0 -1
  105. package/dist/components/grid/row/row.component.d.ts +0 -1
  106. package/dist/components/index.d.ts +1 -2
  107. package/dist/components/input/common.d.ts +2 -3
  108. package/dist/components/input/index.d.ts +0 -1
  109. package/dist/components/input/input.clearbtn.d.ts +0 -1
  110. package/dist/components/input/number/index.d.ts +0 -1
  111. package/dist/components/input/number/number.component.d.ts +0 -1
  112. package/dist/components/input/number/number.functions.d.ts +0 -1
  113. package/dist/components/input/number/number.stories.d.ts +0 -1
  114. package/dist/components/input/number/number.test.d.ts +0 -1
  115. package/dist/components/input/number/number.types.d.ts +0 -1
  116. package/dist/components/input/number/useInputNumber.d.ts +359 -358
  117. package/dist/components/input/text/index.d.ts +0 -1
  118. package/dist/components/input/text/text.component.d.ts +0 -1
  119. package/dist/components/input/text/text.stories.d.ts +0 -1
  120. package/dist/components/input/text/text.test.d.ts +0 -1
  121. package/dist/components/input/text/text.types.d.ts +0 -1
  122. package/dist/components/list/index.d.ts +0 -1
  123. package/dist/components/list/list.component.d.ts +0 -1
  124. package/dist/components/list/list.container.d.ts +0 -1
  125. package/dist/components/list/list.empty.d.ts +0 -1
  126. package/dist/components/list/list.functions.d.ts +0 -1
  127. package/dist/components/list/list.item.d.ts +0 -1
  128. package/dist/components/list/list.stories.d.ts +0 -1
  129. package/dist/components/list/list.test.d.ts +0 -1
  130. package/dist/components/list/list.title.d.ts +0 -1
  131. package/dist/components/list/list.types.d.ts +0 -1
  132. package/dist/components/modal/dialog.overlay.d.ts +0 -1
  133. package/dist/components/modal/dialog.types.d.ts +0 -1
  134. package/dist/components/modal/index.d.ts +0 -1
  135. package/dist/components/modal/modal.component.d.ts +0 -1
  136. package/dist/components/modal/modal.content.d.ts +0 -1
  137. package/dist/components/modal/modal.footer.d.ts +1 -2
  138. package/dist/components/modal/modal.header.d.ts +1 -2
  139. package/dist/components/modal/modal.motion.d.ts +0 -1
  140. package/dist/components/modal/modal.stories.d.ts +0 -1
  141. package/dist/components/notification/index.d.ts +0 -1
  142. package/dist/components/notification/notification.close.button.d.ts +0 -1
  143. package/dist/components/notification/notification.component.d.ts +0 -1
  144. package/dist/components/notification/notification.component.test.d.ts +0 -1
  145. package/dist/components/notification/notification.content.d.ts +0 -1
  146. package/dist/components/notification/notification.icon.d.ts +1 -2
  147. package/dist/components/notification/notification.stories.d.ts +0 -1
  148. package/dist/components/notification/notification.types.d.ts +0 -1
  149. package/dist/components/pagination/index.d.ts +0 -1
  150. package/dist/components/pagination/page.number.d.ts +0 -1
  151. package/dist/components/pagination/pagination.button.d.ts +0 -1
  152. package/dist/components/pagination/pagination.component.d.ts +0 -1
  153. package/dist/components/pagination/pagination.ellipsis.d.ts +0 -1
  154. package/dist/components/pagination/pagination.functions.d.ts +0 -1
  155. package/dist/components/pagination/pagination.stories.d.ts +0 -1
  156. package/dist/components/pagination/pagination.test.d.ts +0 -1
  157. package/dist/components/pagination/pagination.types.d.ts +0 -1
  158. package/dist/components/popover/components/index.d.ts +0 -1
  159. package/dist/components/popover/components/popover-anchor.component.d.ts +0 -1
  160. package/dist/components/popover/components/popover-arrow.component.d.ts +0 -1
  161. package/dist/components/popover/components/popover-close.component.d.ts +0 -1
  162. package/dist/components/popover/components/popover-content.component.d.ts +0 -1
  163. package/dist/components/popover/components/popover-portal.component.d.ts +0 -1
  164. package/dist/components/popover/components/popover-trigger.component.d.ts +0 -1
  165. package/dist/components/popover/index.d.ts +0 -1
  166. package/dist/components/popover/popover.component.d.ts +6 -2
  167. package/dist/components/popover/popover.context.d.ts +0 -1
  168. package/dist/components/popover/popover.stories.d.ts +0 -1
  169. package/dist/components/popover/popover.test.d.ts +0 -1
  170. package/dist/components/popover/popover.types.d.ts +0 -1
  171. package/dist/components/progress/index.d.ts +0 -1
  172. package/dist/components/progress/progress.component.d.ts +0 -1
  173. package/dist/components/progress/progress.stories.d.ts +0 -1
  174. package/dist/components/progress/progress.test.d.ts +0 -1
  175. package/dist/components/progress/progress.types.d.ts +0 -1
  176. package/dist/components/qr-barcode/barcode.d.ts +0 -1
  177. package/dist/components/qr-barcode/index.d.ts +0 -1
  178. package/dist/components/qr-barcode/qr-barcode.component.d.ts +1 -2
  179. package/dist/components/qr-barcode/qr-barcode.stories.d.ts +0 -1
  180. package/dist/components/qr-barcode/qr-barcode.test.d.ts +0 -1
  181. package/dist/components/qr-barcode/qr-barcode.types.d.ts +0 -1
  182. package/dist/components/qr-barcode/qr.d.ts +0 -1
  183. package/dist/components/radio-group/index.d.ts +0 -1
  184. package/dist/components/radio-group/radio-group.component.d.ts +0 -1
  185. package/dist/components/radio-group/radio-group.stories.d.ts +0 -1
  186. package/dist/components/radio-group/radio-group.test.d.ts +0 -1
  187. package/dist/components/radio-group/radio-group.types.d.ts +0 -1
  188. package/dist/components/segmented/components/SegmentedIndicator.d.ts +0 -1
  189. package/dist/components/segmented/components/SegmentedOption.d.ts +0 -1
  190. package/dist/components/segmented/constants/animation-config.d.ts +0 -1
  191. package/dist/components/segmented/constants/base-styles.d.ts +0 -1
  192. package/dist/components/segmented/constants/size-variants.d.ts +0 -1
  193. package/dist/components/segmented/helpers/createItemClickHandler.d.ts +0 -1
  194. package/dist/components/segmented/helpers/getAccumulatedSizeStyles.d.ts +0 -1
  195. package/dist/components/segmented/helpers/getContainerStyles.d.ts +0 -1
  196. package/dist/components/segmented/helpers/getCurrentValue.d.ts +2 -2
  197. package/dist/components/segmented/helpers/getItemStyles.d.ts +0 -1
  198. package/dist/components/segmented/helpers/normalizeOptions.d.ts +2 -3
  199. package/dist/components/segmented/hooks/useActiveIndex.d.ts +3 -3
  200. package/dist/components/segmented/hooks/useIndicatorStyle.d.ts +1 -2
  201. package/dist/components/segmented/index.d.ts +0 -1
  202. package/dist/components/segmented/segmented.component.d.ts +2 -3
  203. package/dist/components/segmented/segmented.stories.d.ts +0 -1
  204. package/dist/components/segmented/segmented.test.d.ts +0 -1
  205. package/dist/components/segmented/segmented.types.d.ts +11 -22
  206. package/dist/components/select/hooks/useSelectSearch.d.ts +1 -2
  207. package/dist/components/select/hooks/useSelectValue.d.ts +1 -2
  208. package/dist/components/select/hooks/useSelectWidth.d.ts +1 -2
  209. package/dist/components/select/index.d.ts +0 -1
  210. package/dist/components/select/select.component.d.ts +0 -1
  211. package/dist/components/select/select.content.d.ts +0 -1
  212. package/dist/components/select/select.empty-state.d.ts +0 -1
  213. package/dist/components/select/select.item.d.ts +0 -1
  214. package/dist/components/select/select.search-input.d.ts +0 -1
  215. package/dist/components/select/select.stories.d.ts +0 -1
  216. package/dist/components/select/select.test.d.ts +0 -1
  217. package/dist/components/select/select.trigger.d.ts +0 -1
  218. package/dist/components/select/select.types.d.ts +4 -4
  219. package/dist/components/skeleton/index.d.ts +0 -1
  220. package/dist/components/skeleton/skeleton.component.d.ts +0 -1
  221. package/dist/components/skeleton/skeleton.stories.d.ts +0 -1
  222. package/dist/components/skeleton/skeleton.test.d.ts +0 -1
  223. package/dist/components/skeleton/skeleton.types.d.ts +0 -1
  224. package/dist/components/skeleton/variants/avatar.sk.component.d.ts +0 -1
  225. package/dist/components/skeleton/variants/default.sk.component.d.ts +0 -1
  226. package/dist/components/skeleton/variants/image.sk.component.d.ts +0 -1
  227. package/dist/components/skeleton/variants/imagedescription.sk.component.d.ts +0 -1
  228. package/dist/components/skeleton/variants/list.sk.component.d.ts +0 -1
  229. package/dist/components/slider/index.d.ts +0 -1
  230. package/dist/components/slider/slider.component.d.ts +0 -1
  231. package/dist/components/slider/slider.stories.d.ts +0 -1
  232. package/dist/components/slider/slider.test.d.ts +0 -1
  233. package/dist/components/slider/slider.types.d.ts +0 -1
  234. package/dist/components/spinner/index.d.ts +0 -1
  235. package/dist/components/spinner/spinner.component.d.ts +0 -1
  236. package/dist/components/spinner/spinner.stories.d.ts +0 -1
  237. package/dist/components/spinner/spinner.test.d.ts +0 -1
  238. package/dist/components/spinner/spinner.types.d.ts +0 -1
  239. package/dist/components/steps/index.d.ts +0 -1
  240. package/dist/components/steps/step.button.d.ts +0 -1
  241. package/dist/components/steps/step.item.d.ts +0 -1
  242. package/dist/components/steps/steps.component.d.ts +0 -1
  243. package/dist/components/steps/steps.functions.d.ts +0 -1
  244. package/dist/components/steps/steps.list.d.ts +0 -1
  245. package/dist/components/steps/steps.stories.d.ts +0 -1
  246. package/dist/components/steps/steps.test.d.ts +0 -1
  247. package/dist/components/steps/steps.types.d.ts +0 -1
  248. package/dist/components/switch/constants/base-styles.d.ts +0 -1
  249. package/dist/components/switch/constants/size-variants.d.ts +0 -1
  250. package/dist/components/switch/constants/type-variants.d.ts +0 -1
  251. package/dist/components/switch/helpers/getChildrenStyles.d.ts +0 -1
  252. package/dist/components/switch/helpers/getLabelHelpers.d.ts +0 -1
  253. package/dist/components/switch/helpers/getSwitchRootStyles.d.ts +0 -1
  254. package/dist/components/switch/helpers/getThumbConfig.d.ts +0 -1
  255. package/dist/components/switch/index.d.ts +0 -1
  256. package/dist/components/switch/switch.component.d.ts +0 -1
  257. package/dist/components/switch/switch.stories.d.ts +0 -1
  258. package/dist/components/switch/switch.test.d.ts +0 -1
  259. package/dist/components/switch/switch.types.d.ts +0 -1
  260. package/dist/components/tabs/index.d.ts +0 -1
  261. package/dist/components/tabs/tabs.component.d.ts +0 -1
  262. package/dist/components/tabs/tabs.stories.d.ts +0 -1
  263. package/dist/components/tabs/tabs.styles.d.ts +0 -1
  264. package/dist/components/tabs/tabs.test.d.ts +0 -1
  265. package/dist/components/tabs/tabs.types.d.ts +0 -2
  266. package/dist/components/tabs/tabs.utils.d.ts +0 -1
  267. package/dist/components/tabs/tabsContent.d.ts +0 -1
  268. package/dist/components/tabs/tabsList.d.ts +0 -1
  269. package/dist/components/tag/index.d.ts +0 -1
  270. package/dist/components/tag/tag.component.d.ts +0 -1
  271. package/dist/components/tag/tag.stories.d.ts +0 -1
  272. package/dist/components/tag/tag.test.d.ts +0 -1
  273. package/dist/components/tag/tag.types.d.ts +0 -1
  274. package/dist/components/textArea/index.d.ts +0 -1
  275. package/dist/components/textArea/text-area.stories.d.ts +0 -1
  276. package/dist/components/textArea/text.area.component.d.ts +0 -1
  277. package/dist/components/textArea/text.area.constants.d.ts +0 -1
  278. package/dist/components/textArea/text.area.control.d.ts +0 -1
  279. package/dist/components/textArea/text.area.field.d.ts +0 -1
  280. package/dist/components/textArea/text.area.footer.d.ts +0 -1
  281. package/dist/components/textArea/text.area.helpers.d.ts +0 -1
  282. package/dist/components/textArea/types.d.ts +0 -1
  283. package/dist/components/toggle/constants/variants.d.ts +4 -5
  284. package/dist/components/toggle/index.d.ts +0 -1
  285. package/dist/components/toggle/toggle.component.d.ts +0 -1
  286. package/dist/components/toggle/toggle.stories.d.ts +0 -1
  287. package/dist/components/toggle/toggle.test.d.ts +0 -1
  288. package/dist/components/toggle-group/index.d.ts +0 -1
  289. package/dist/components/toggle-group/toggle-group-context.d.ts +4 -5
  290. package/dist/components/toggle-group/toggle-group-item.component.d.ts +0 -1
  291. package/dist/components/toggle-group/toggle-group.component.d.ts +0 -1
  292. package/dist/components/toggle-group/toggle-group.stories.d.ts +0 -1
  293. package/dist/components/toggle-group/toggle-group.test.d.ts +0 -1
  294. package/dist/components/tooltip/index.d.ts +0 -1
  295. package/dist/components/tooltip/tooltip.component.d.ts +0 -1
  296. package/dist/components/tooltip/tooltip.stories.d.ts +0 -1
  297. package/dist/components/tooltip/tooltip.test.d.ts +0 -1
  298. package/dist/components/tooltip/tooltip.types.d.ts +0 -1
  299. package/dist/components/typography/index.d.ts +0 -1
  300. package/dist/components/typography/typography.component.d.ts +0 -1
  301. package/dist/components/typography/typography.constants.d.ts +0 -1
  302. package/dist/components/typography/typography.text.d.ts +0 -1
  303. package/dist/components/typography/typography.title.d.ts +0 -1
  304. package/dist/components/typography/typography.types.d.ts +0 -1
  305. package/dist/components/typography/utils/index.d.ts +0 -1
  306. package/dist/components/utils/chunks.d.ts +0 -1
  307. package/dist/components/utils/generate-colors.d.ts +0 -1
  308. package/dist/components/utils/index.d.ts +0 -1
  309. package/dist/constants/alert/index.d.ts +0 -1
  310. package/dist/constants/charts/doughnut.d.ts +0 -1
  311. package/dist/constants/charts/index.d.ts +0 -1
  312. package/dist/constants/charts/vertical-horizontal.d.ts +60 -62
  313. package/dist/constants/common/index.d.ts +0 -1
  314. package/dist/constants/langs/index.d.ts +0 -1
  315. package/dist/constants/list/index.d.ts +0 -1
  316. package/dist/constants/list/sizes.d.ts +0 -1
  317. package/dist/constants/notification/index.d.ts +0 -1
  318. package/dist/constants/pagination/index.d.ts +0 -1
  319. package/dist/constants/pagination/sizes.d.ts +0 -1
  320. package/dist/constants/progress/index.d.ts +0 -1
  321. package/dist/constants/slider/index.d.ts +0 -1
  322. package/dist/constants/steps/index.d.ts +0 -1
  323. package/dist/constants/steps/sizes.d.ts +0 -1
  324. package/dist/constants/tag/index.d.ts +0 -1
  325. package/dist/constants/transitions/command-palette.transition.d.ts +0 -1
  326. package/dist/constants/transitions/dropdown.transition.d.ts +0 -1
  327. package/dist/constants/transitions/flyout-from-bottom.transition.d.ts +0 -1
  328. package/dist/constants/transitions/flyout-from-top.transition.d.ts +0 -1
  329. package/dist/constants/transitions/index.d.ts +0 -1
  330. package/dist/constants/transitions/modal-overlay.transition.d.ts +0 -1
  331. package/dist/constants/transitions/modal.transition.d.ts +0 -1
  332. package/dist/constants/transitions/notification.transition.d.ts +0 -1
  333. package/dist/constants/transitions/position-drawer.transition.d.ts +0 -1
  334. package/dist/constants/transitions/select-transition.d.ts +0 -1
  335. package/dist/constants/transitions/simple.transition.d.ts +0 -1
  336. package/dist/constants/transitions/slide-over.transition.d.ts +0 -1
  337. package/dist/constants/transitions/slide-overlay.transition.d.ts +0 -1
  338. package/dist/constants/transitions/spin-in.transition.d.ts +0 -1
  339. package/dist/constants/typography/title/index.d.ts +0 -1
  340. package/dist/constants/version-number.d.ts +0 -1
  341. package/dist/hooks/index.d.ts +0 -1
  342. package/dist/hooks/use-controlled-state.d.ts +0 -1
  343. package/dist/hooks/useBoolean/index.d.ts +0 -1
  344. package/dist/hooks/useBreakpoint/index.d.ts +0 -1
  345. package/dist/hooks/useDarkMode/index.d.ts +0 -1
  346. package/dist/hooks/useItemsId.d.ts +0 -1
  347. package/dist/hooks/useLang/index.d.ts +0 -1
  348. package/dist/hooks/useWindowLoading/index.d.ts +0 -1
  349. package/dist/index-DqeuLqYH.cjs +1 -0
  350. package/dist/index-Uukw7yyL.js +18 -0
  351. package/dist/interfaces/accordion/index.d.ts +0 -1
  352. package/dist/interfaces/bullets-navigation/index.d.ts +0 -1
  353. package/dist/interfaces/button/index.d.ts +0 -1
  354. package/dist/interfaces/card-product/index.d.ts +0 -1
  355. package/dist/interfaces/card-status/index.d.ts +0 -1
  356. package/dist/interfaces/charts/index.d.ts +1 -3
  357. package/dist/interfaces/checkbox/index.d.ts +0 -1
  358. package/dist/interfaces/common/index.d.ts +0 -1
  359. package/dist/interfaces/custom/config-card.d.ts +0 -1
  360. package/dist/interfaces/custom/customer-name-card.d.ts +0 -1
  361. package/dist/interfaces/custom/index.d.ts +0 -1
  362. package/dist/interfaces/custom/instructions-carousel.d.ts +0 -1
  363. package/dist/interfaces/custom/switch-option-list.d.ts +0 -1
  364. package/dist/interfaces/custom/switch-option.d.ts +0 -1
  365. package/dist/interfaces/custom/tooltip.d.ts +0 -1
  366. package/dist/interfaces/date-range-picker/index.d.ts +0 -1
  367. package/dist/interfaces/divider/index.d.ts +0 -1
  368. package/dist/interfaces/drawer/index.d.ts +0 -1
  369. package/dist/interfaces/flex/index.d.ts +5 -6
  370. package/dist/interfaces/footer/index.d.ts +0 -1
  371. package/dist/interfaces/grid/index.d.ts +12 -13
  372. package/dist/interfaces/index.d.ts +0 -1
  373. package/dist/interfaces/input/index.d.ts +0 -1
  374. package/dist/interfaces/input-number/index.d.ts +0 -1
  375. package/dist/interfaces/input-text/index.d.ts +0 -1
  376. package/dist/interfaces/layout/container/index.d.ts +0 -1
  377. package/dist/interfaces/layout/footer/index.d.ts +0 -1
  378. package/dist/interfaces/layout/index.d.ts +1 -14
  379. package/dist/interfaces/layout/navbar/index.d.ts +0 -1
  380. package/dist/interfaces/layout/sidebar/index.d.ts +0 -1
  381. package/dist/interfaces/loadings/idle-coco.d.ts +0 -1
  382. package/dist/interfaces/loadings/index.d.ts +0 -1
  383. package/dist/interfaces/menu/index.d.ts +0 -1
  384. package/dist/interfaces/modal/index.d.ts +0 -1
  385. package/dist/interfaces/navbar/index.d.ts +0 -1
  386. package/dist/interfaces/qr-code/index.d.ts +0 -1
  387. package/dist/interfaces/radio/index.d.ts +0 -1
  388. package/dist/interfaces/select/index.d.ts +0 -1
  389. package/dist/interfaces/sidebar/index.d.ts +0 -1
  390. package/dist/interfaces/steps/index.d.ts +0 -1
  391. package/dist/interfaces/switch/index.d.ts +0 -1
  392. package/dist/interfaces/table/index.d.ts +0 -1
  393. package/dist/interfaces/tabs/index.d.ts +0 -1
  394. package/dist/interfaces/text-area/index.d.ts +0 -1
  395. package/dist/interfaces/toast/index.d.ts +0 -1
  396. package/dist/interfaces/tooltip/index.d.ts +0 -1
  397. package/dist/interfaces/typography/title/index.d.ts +0 -1
  398. package/dist/interfaces/utils/index.d.ts +0 -1
  399. package/dist/lang/es_MX/index.d.ts +0 -1
  400. package/dist/lang/i18n.d.ts +0 -1
  401. package/dist/lang/layout/index.d.ts +0 -1
  402. package/dist/lang/layout/login/es_MX/index.d.ts +0 -1
  403. package/dist/lang/layout/login/index.d.ts +0 -1
  404. package/dist/layout/content.component.d.ts +0 -1
  405. package/dist/layout/footer.component.d.ts +0 -1
  406. package/dist/layout/header/header.component.d.ts +3 -4
  407. package/dist/layout/header/header.types.d.ts +0 -1
  408. package/dist/layout/header/left-side.component.d.ts +0 -1
  409. package/dist/layout/header/right-side.component.d.ts +1 -2
  410. package/dist/layout/header/store.component.d.ts +1 -2
  411. package/dist/layout/header/user.component.d.ts +1 -2
  412. package/dist/layout/index.d.ts +0 -1
  413. package/dist/layout/root-layout.component.d.ts +3 -4
  414. package/dist/layout/root-layout.stories.d.ts +0 -1
  415. package/dist/layout/root-layout.test.d.ts +0 -1
  416. package/dist/layout/root-layout.types.d.ts +0 -1
  417. package/dist/proxy-BNq8UxLM.cjs +6 -0
  418. package/dist/proxy-C0b_a64j.js +5271 -0
  419. package/dist/styles.css +2 -2
  420. package/dist/types/common/index.d.ts +0 -1
  421. package/dist/types/index.d.ts +1 -1
  422. package/dist/ui-components-animation.cjs +1 -1
  423. package/dist/ui-components-animation.js +114 -113
  424. package/dist/ui-components-hooks.cjs +1 -1
  425. package/dist/ui-components-hooks.js +15 -16
  426. package/dist/ui-components-index.cjs +3 -3
  427. package/dist/ui-components-index.js +1364 -1537
  428. package/dist/ui-components-layout.cjs +1 -1
  429. package/dist/ui-components-layout.js +462 -492
  430. package/dist/ui-components-utils.cjs +1 -1
  431. package/dist/ui-components-utils.js +2 -2
  432. package/dist/use-controlled-state-C0HvoCoS.cjs +1 -0
  433. package/dist/use-controlled-state-sYRbMlAp.js +153 -0
  434. package/dist/useTranslation-CLkKuRlk.js +184 -0
  435. package/dist/useTranslation-nEZUFBIW.cjs +1 -0
  436. package/dist/utils/buildId.d.ts +0 -1
  437. package/dist/utils/classNames.d.ts +0 -1
  438. package/dist/utils/context/get-context.d.ts +1 -2
  439. package/dist/utils/context/index.d.ts +0 -1
  440. package/dist/utils/context/types.d.ts +0 -1
  441. package/dist/utils/generateClasses/index.d.ts +0 -1
  442. package/dist/utils/index.d.ts +0 -1
  443. package/package.json +16 -41
  444. package/dist/assets/flags/index.d.ts.map +0 -1
  445. package/dist/assets/icons/index.d.ts.map +0 -1
  446. package/dist/carousel.component-BcjDXzve.cjs +0 -80
  447. package/dist/classNames-CN12fVA7.cjs +0 -1
  448. package/dist/components/Portal.d.ts.map +0 -1
  449. package/dist/components/accordion/accordion.component.d.ts.map +0 -1
  450. package/dist/components/accordion/accordion.content.d.ts.map +0 -1
  451. package/dist/components/accordion/accordion.item.d.ts.map +0 -1
  452. package/dist/components/accordion/accordion.stories.d.ts.map +0 -1
  453. package/dist/components/accordion/accordion.test.d.ts.map +0 -1
  454. package/dist/components/accordion/accordion.trigger.d.ts.map +0 -1
  455. package/dist/components/accordion/accordion.types.d.ts.map +0 -1
  456. package/dist/components/accordion/index.d.ts.map +0 -1
  457. package/dist/components/alert/alert.component.d.ts.map +0 -1
  458. package/dist/components/alert/alert.stories.d.ts.map +0 -1
  459. package/dist/components/alert/alert.test.d.ts.map +0 -1
  460. package/dist/components/alert/alert.types.d.ts.map +0 -1
  461. package/dist/components/alert/index.d.ts.map +0 -1
  462. package/dist/components/animation/count-up/count-up.component.d.ts.map +0 -1
  463. package/dist/components/animation/count-up/count-up.stories.d.ts.map +0 -1
  464. package/dist/components/animation/count-up/count-up.test.d.ts.map +0 -1
  465. package/dist/components/animation/count-up/count-up.types.d.ts.map +0 -1
  466. package/dist/components/animation/index.d.ts.map +0 -1
  467. package/dist/components/avatar/avatar.component.d.ts.map +0 -1
  468. package/dist/components/avatar/avatar.stories.d.ts.map +0 -1
  469. package/dist/components/avatar/avatar.types.d.ts.map +0 -1
  470. package/dist/components/avatar/index.d.ts.map +0 -1
  471. package/dist/components/button/button.component.d.ts.map +0 -1
  472. package/dist/components/button/button.stories.d.ts.map +0 -1
  473. package/dist/components/button/button.test.d.ts.map +0 -1
  474. package/dist/components/button/button.types.d.ts.map +0 -1
  475. package/dist/components/button/constants/color-variants.d.ts.map +0 -1
  476. package/dist/components/button/constants/cursor-variants.d.ts.map +0 -1
  477. package/dist/components/button/constants/size-variants.d.ts.map +0 -1
  478. package/dist/components/button/helpers/getAccumulatedSizeStyles.d.ts.map +0 -1
  479. package/dist/components/button/helpers/getBaseButtonStyles.d.ts.map +0 -1
  480. package/dist/components/button/index.d.ts.map +0 -1
  481. package/dist/components/card/card.component.d.ts.map +0 -1
  482. package/dist/components/card/card.stories.d.ts.map +0 -1
  483. package/dist/components/card/card.test.d.ts.map +0 -1
  484. package/dist/components/card/card.types.d.ts.map +0 -1
  485. package/dist/components/card/index.d.ts.map +0 -1
  486. package/dist/components/carousel/carousel-container.component.d.ts.map +0 -1
  487. package/dist/components/carousel/carousel-dots.component.d.ts.map +0 -1
  488. package/dist/components/carousel/carousel-item.component.d.ts.map +0 -1
  489. package/dist/components/carousel/carousel-next-button.component.d.ts.map +0 -1
  490. package/dist/components/carousel/carousel-prev-button.component.d.ts.map +0 -1
  491. package/dist/components/carousel/carousel.component.d.ts.map +0 -1
  492. package/dist/components/carousel/carousel.constants.d.ts.map +0 -1
  493. package/dist/components/carousel/carousel.context.d.ts.map +0 -1
  494. package/dist/components/carousel/carousel.stories.d.ts.map +0 -1
  495. package/dist/components/carousel/carousel.types.d.ts.map +0 -1
  496. package/dist/components/carousel/utils/handle-key-down.d.ts.map +0 -1
  497. package/dist/components/carousel/utils/index.d.ts.map +0 -1
  498. package/dist/components/carousel/utils/number-with-range.d.ts.map +0 -1
  499. package/dist/components/carousel/utils/tween-scale.d.ts.map +0 -1
  500. package/dist/components/checkbox/checkbox.component.d.ts.map +0 -1
  501. package/dist/components/checkbox/checkbox.icon.d.ts.map +0 -1
  502. package/dist/components/checkbox/checkbox.label.d.ts.map +0 -1
  503. package/dist/components/checkbox/checkbox.stories.d.ts.map +0 -1
  504. package/dist/components/checkbox/checkbox.test.d.ts.map +0 -1
  505. package/dist/components/checkbox/checkbox.types.d.ts.map +0 -1
  506. package/dist/components/checkbox/index.d.ts.map +0 -1
  507. package/dist/components/divider/divider.component.d.ts.map +0 -1
  508. package/dist/components/divider/divider.stories.d.ts.map +0 -1
  509. package/dist/components/divider/divider.test.d.ts.map +0 -1
  510. package/dist/components/divider/divider.types.d.ts.map +0 -1
  511. package/dist/components/divider/index.d.ts.map +0 -1
  512. package/dist/components/drawer/constants/animation-config.d.ts.map +0 -1
  513. package/dist/components/drawer/constants/base-styles.d.ts.map +0 -1
  514. package/dist/components/drawer/constants/position-variants.d.ts.map +0 -1
  515. package/dist/components/drawer/drawer.component.d.ts.map +0 -1
  516. package/dist/components/drawer/drawer.stories.d.ts.map +0 -1
  517. package/dist/components/drawer/drawer.test.d.ts.map +0 -1
  518. package/dist/components/drawer/drawer.types.d.ts.map +0 -1
  519. package/dist/components/drawer/index.d.ts.map +0 -1
  520. package/dist/components/dropdown/dropdown.component.d.ts.map +0 -1
  521. package/dist/components/dropdown/dropdown.content.d.ts.map +0 -1
  522. package/dist/components/dropdown/dropdown.item.d.ts.map +0 -1
  523. package/dist/components/dropdown/dropdown.label.d.ts.map +0 -1
  524. package/dist/components/dropdown/dropdown.renderers.d.ts.map +0 -1
  525. package/dist/components/dropdown/dropdown.separator.d.ts.map +0 -1
  526. package/dist/components/dropdown/dropdown.stories.d.ts.map +0 -1
  527. package/dist/components/dropdown/dropdown.test.d.ts.map +0 -1
  528. package/dist/components/dropdown/dropdown.trigger.d.ts.map +0 -1
  529. package/dist/components/dropdown/dropdown.types.d.ts.map +0 -1
  530. package/dist/components/dropdown/index.d.ts.map +0 -1
  531. package/dist/components/empty/empty.component.d.ts.map +0 -1
  532. package/dist/components/empty/empty.constants.d.ts.map +0 -1
  533. package/dist/components/empty/empty.stories.d.ts.map +0 -1
  534. package/dist/components/empty/empty.types.d.ts.map +0 -1
  535. package/dist/components/empty/index.d.ts.map +0 -1
  536. package/dist/components/flex/flex.component.d.ts.map +0 -1
  537. package/dist/components/flex/flex.stories.d.ts.map +0 -1
  538. package/dist/components/flex/index.d.ts.map +0 -1
  539. package/dist/components/grid/col/col.component.d.ts.map +0 -1
  540. package/dist/components/grid/col/index.d.ts.map +0 -1
  541. package/dist/components/grid/grid.stories.d.ts.map +0 -1
  542. package/dist/components/grid/grid.test.d.ts.map +0 -1
  543. package/dist/components/grid/grid.types.d.ts.map +0 -1
  544. package/dist/components/grid/index.d.ts.map +0 -1
  545. package/dist/components/grid/row/index.d.ts.map +0 -1
  546. package/dist/components/grid/row/row.component.d.ts.map +0 -1
  547. package/dist/components/index.d.ts.map +0 -1
  548. package/dist/components/input/common.d.ts.map +0 -1
  549. package/dist/components/input/index.d.ts.map +0 -1
  550. package/dist/components/input/input.clearbtn.d.ts.map +0 -1
  551. package/dist/components/input/number/index.d.ts.map +0 -1
  552. package/dist/components/input/number/number.component.d.ts.map +0 -1
  553. package/dist/components/input/number/number.functions.d.ts.map +0 -1
  554. package/dist/components/input/number/number.stories.d.ts.map +0 -1
  555. package/dist/components/input/number/number.test.d.ts.map +0 -1
  556. package/dist/components/input/number/number.types.d.ts.map +0 -1
  557. package/dist/components/input/number/useInputNumber.d.ts.map +0 -1
  558. package/dist/components/input/text/index.d.ts.map +0 -1
  559. package/dist/components/input/text/text.component.d.ts.map +0 -1
  560. package/dist/components/input/text/text.stories.d.ts.map +0 -1
  561. package/dist/components/input/text/text.test.d.ts.map +0 -1
  562. package/dist/components/input/text/text.types.d.ts.map +0 -1
  563. package/dist/components/list/index.d.ts.map +0 -1
  564. package/dist/components/list/list.component.d.ts.map +0 -1
  565. package/dist/components/list/list.container.d.ts.map +0 -1
  566. package/dist/components/list/list.empty.d.ts.map +0 -1
  567. package/dist/components/list/list.functions.d.ts.map +0 -1
  568. package/dist/components/list/list.item.d.ts.map +0 -1
  569. package/dist/components/list/list.stories.d.ts.map +0 -1
  570. package/dist/components/list/list.test.d.ts.map +0 -1
  571. package/dist/components/list/list.title.d.ts.map +0 -1
  572. package/dist/components/list/list.types.d.ts.map +0 -1
  573. package/dist/components/modal/dialog.overlay.d.ts.map +0 -1
  574. package/dist/components/modal/dialog.types.d.ts.map +0 -1
  575. package/dist/components/modal/index.d.ts.map +0 -1
  576. package/dist/components/modal/modal.component.d.ts.map +0 -1
  577. package/dist/components/modal/modal.content.d.ts.map +0 -1
  578. package/dist/components/modal/modal.footer.d.ts.map +0 -1
  579. package/dist/components/modal/modal.header.d.ts.map +0 -1
  580. package/dist/components/modal/modal.motion.d.ts.map +0 -1
  581. package/dist/components/modal/modal.stories.d.ts.map +0 -1
  582. package/dist/components/notification/index.d.ts.map +0 -1
  583. package/dist/components/notification/notification.close.button.d.ts.map +0 -1
  584. package/dist/components/notification/notification.component.d.ts.map +0 -1
  585. package/dist/components/notification/notification.component.test.d.ts.map +0 -1
  586. package/dist/components/notification/notification.content.d.ts.map +0 -1
  587. package/dist/components/notification/notification.icon.d.ts.map +0 -1
  588. package/dist/components/notification/notification.stories.d.ts.map +0 -1
  589. package/dist/components/notification/notification.types.d.ts.map +0 -1
  590. package/dist/components/pagination/index.d.ts.map +0 -1
  591. package/dist/components/pagination/page.number.d.ts.map +0 -1
  592. package/dist/components/pagination/pagination.button.d.ts.map +0 -1
  593. package/dist/components/pagination/pagination.component.d.ts.map +0 -1
  594. package/dist/components/pagination/pagination.ellipsis.d.ts.map +0 -1
  595. package/dist/components/pagination/pagination.functions.d.ts.map +0 -1
  596. package/dist/components/pagination/pagination.stories.d.ts.map +0 -1
  597. package/dist/components/pagination/pagination.test.d.ts.map +0 -1
  598. package/dist/components/pagination/pagination.types.d.ts.map +0 -1
  599. package/dist/components/popover/components/index.d.ts.map +0 -1
  600. package/dist/components/popover/components/popover-anchor.component.d.ts.map +0 -1
  601. package/dist/components/popover/components/popover-arrow.component.d.ts.map +0 -1
  602. package/dist/components/popover/components/popover-close.component.d.ts.map +0 -1
  603. package/dist/components/popover/components/popover-content.component.d.ts.map +0 -1
  604. package/dist/components/popover/components/popover-portal.component.d.ts.map +0 -1
  605. package/dist/components/popover/components/popover-trigger.component.d.ts.map +0 -1
  606. package/dist/components/popover/index.d.ts.map +0 -1
  607. package/dist/components/popover/popover.component.d.ts.map +0 -1
  608. package/dist/components/popover/popover.context.d.ts.map +0 -1
  609. package/dist/components/popover/popover.stories.d.ts.map +0 -1
  610. package/dist/components/popover/popover.test.d.ts.map +0 -1
  611. package/dist/components/popover/popover.types.d.ts.map +0 -1
  612. package/dist/components/progress/index.d.ts.map +0 -1
  613. package/dist/components/progress/progress.component.d.ts.map +0 -1
  614. package/dist/components/progress/progress.stories.d.ts.map +0 -1
  615. package/dist/components/progress/progress.test.d.ts.map +0 -1
  616. package/dist/components/progress/progress.types.d.ts.map +0 -1
  617. package/dist/components/qr-barcode/barcode.d.ts.map +0 -1
  618. package/dist/components/qr-barcode/index.d.ts.map +0 -1
  619. package/dist/components/qr-barcode/qr-barcode.component.d.ts.map +0 -1
  620. package/dist/components/qr-barcode/qr-barcode.stories.d.ts.map +0 -1
  621. package/dist/components/qr-barcode/qr-barcode.test.d.ts.map +0 -1
  622. package/dist/components/qr-barcode/qr-barcode.types.d.ts.map +0 -1
  623. package/dist/components/qr-barcode/qr.d.ts.map +0 -1
  624. package/dist/components/radio-group/index.d.ts.map +0 -1
  625. package/dist/components/radio-group/radio-group.component.d.ts.map +0 -1
  626. package/dist/components/radio-group/radio-group.stories.d.ts.map +0 -1
  627. package/dist/components/radio-group/radio-group.test.d.ts.map +0 -1
  628. package/dist/components/radio-group/radio-group.types.d.ts.map +0 -1
  629. package/dist/components/segmented/components/SegmentedIndicator.d.ts.map +0 -1
  630. package/dist/components/segmented/components/SegmentedOption.d.ts.map +0 -1
  631. package/dist/components/segmented/constants/animation-config.d.ts.map +0 -1
  632. package/dist/components/segmented/constants/base-styles.d.ts.map +0 -1
  633. package/dist/components/segmented/constants/size-variants.d.ts.map +0 -1
  634. package/dist/components/segmented/helpers/createItemClickHandler.d.ts.map +0 -1
  635. package/dist/components/segmented/helpers/getAccumulatedSizeStyles.d.ts.map +0 -1
  636. package/dist/components/segmented/helpers/getContainerStyles.d.ts.map +0 -1
  637. package/dist/components/segmented/helpers/getCurrentValue.d.ts.map +0 -1
  638. package/dist/components/segmented/helpers/getItemStyles.d.ts.map +0 -1
  639. package/dist/components/segmented/helpers/normalizeOptions.d.ts.map +0 -1
  640. package/dist/components/segmented/hooks/useActiveIndex.d.ts.map +0 -1
  641. package/dist/components/segmented/hooks/useIndicatorStyle.d.ts.map +0 -1
  642. package/dist/components/segmented/index.d.ts.map +0 -1
  643. package/dist/components/segmented/segmented.component.d.ts.map +0 -1
  644. package/dist/components/segmented/segmented.stories.d.ts.map +0 -1
  645. package/dist/components/segmented/segmented.test.d.ts.map +0 -1
  646. package/dist/components/segmented/segmented.types.d.ts.map +0 -1
  647. package/dist/components/select/hooks/useSelectSearch.d.ts.map +0 -1
  648. package/dist/components/select/hooks/useSelectValue.d.ts.map +0 -1
  649. package/dist/components/select/hooks/useSelectWidth.d.ts.map +0 -1
  650. package/dist/components/select/index.d.ts.map +0 -1
  651. package/dist/components/select/select.component.d.ts.map +0 -1
  652. package/dist/components/select/select.content.d.ts.map +0 -1
  653. package/dist/components/select/select.empty-state.d.ts.map +0 -1
  654. package/dist/components/select/select.item.d.ts.map +0 -1
  655. package/dist/components/select/select.search-input.d.ts.map +0 -1
  656. package/dist/components/select/select.stories.d.ts.map +0 -1
  657. package/dist/components/select/select.test.d.ts.map +0 -1
  658. package/dist/components/select/select.trigger.d.ts.map +0 -1
  659. package/dist/components/select/select.types.d.ts.map +0 -1
  660. package/dist/components/skeleton/index.d.ts.map +0 -1
  661. package/dist/components/skeleton/skeleton.component.d.ts.map +0 -1
  662. package/dist/components/skeleton/skeleton.stories.d.ts.map +0 -1
  663. package/dist/components/skeleton/skeleton.test.d.ts.map +0 -1
  664. package/dist/components/skeleton/skeleton.types.d.ts.map +0 -1
  665. package/dist/components/skeleton/variants/avatar.sk.component.d.ts.map +0 -1
  666. package/dist/components/skeleton/variants/default.sk.component.d.ts.map +0 -1
  667. package/dist/components/skeleton/variants/image.sk.component.d.ts.map +0 -1
  668. package/dist/components/skeleton/variants/imagedescription.sk.component.d.ts.map +0 -1
  669. package/dist/components/skeleton/variants/list.sk.component.d.ts.map +0 -1
  670. package/dist/components/slider/index.d.ts.map +0 -1
  671. package/dist/components/slider/slider.component.d.ts.map +0 -1
  672. package/dist/components/slider/slider.stories.d.ts.map +0 -1
  673. package/dist/components/slider/slider.test.d.ts.map +0 -1
  674. package/dist/components/slider/slider.types.d.ts.map +0 -1
  675. package/dist/components/spinner/index.d.ts.map +0 -1
  676. package/dist/components/spinner/spinner.component.d.ts.map +0 -1
  677. package/dist/components/spinner/spinner.stories.d.ts.map +0 -1
  678. package/dist/components/spinner/spinner.test.d.ts.map +0 -1
  679. package/dist/components/spinner/spinner.types.d.ts.map +0 -1
  680. package/dist/components/steps/index.d.ts.map +0 -1
  681. package/dist/components/steps/step.button.d.ts.map +0 -1
  682. package/dist/components/steps/step.item.d.ts.map +0 -1
  683. package/dist/components/steps/steps.component.d.ts.map +0 -1
  684. package/dist/components/steps/steps.functions.d.ts.map +0 -1
  685. package/dist/components/steps/steps.list.d.ts.map +0 -1
  686. package/dist/components/steps/steps.stories.d.ts.map +0 -1
  687. package/dist/components/steps/steps.test.d.ts.map +0 -1
  688. package/dist/components/steps/steps.types.d.ts.map +0 -1
  689. package/dist/components/switch/constants/base-styles.d.ts.map +0 -1
  690. package/dist/components/switch/constants/size-variants.d.ts.map +0 -1
  691. package/dist/components/switch/constants/type-variants.d.ts.map +0 -1
  692. package/dist/components/switch/helpers/getChildrenStyles.d.ts.map +0 -1
  693. package/dist/components/switch/helpers/getLabelHelpers.d.ts.map +0 -1
  694. package/dist/components/switch/helpers/getSwitchRootStyles.d.ts.map +0 -1
  695. package/dist/components/switch/helpers/getThumbConfig.d.ts.map +0 -1
  696. package/dist/components/switch/index.d.ts.map +0 -1
  697. package/dist/components/switch/switch.component.d.ts.map +0 -1
  698. package/dist/components/switch/switch.stories.d.ts.map +0 -1
  699. package/dist/components/switch/switch.test.d.ts.map +0 -1
  700. package/dist/components/switch/switch.types.d.ts.map +0 -1
  701. package/dist/components/tabs/index.d.ts.map +0 -1
  702. package/dist/components/tabs/tabs.component.d.ts.map +0 -1
  703. package/dist/components/tabs/tabs.stories.d.ts.map +0 -1
  704. package/dist/components/tabs/tabs.styles.d.ts.map +0 -1
  705. package/dist/components/tabs/tabs.test.d.ts.map +0 -1
  706. package/dist/components/tabs/tabs.types.d.ts.map +0 -1
  707. package/dist/components/tabs/tabs.utils.d.ts.map +0 -1
  708. package/dist/components/tabs/tabsContent.d.ts.map +0 -1
  709. package/dist/components/tabs/tabsList.d.ts.map +0 -1
  710. package/dist/components/tag/index.d.ts.map +0 -1
  711. package/dist/components/tag/tag.component.d.ts.map +0 -1
  712. package/dist/components/tag/tag.stories.d.ts.map +0 -1
  713. package/dist/components/tag/tag.test.d.ts.map +0 -1
  714. package/dist/components/tag/tag.types.d.ts.map +0 -1
  715. package/dist/components/textArea/index.d.ts.map +0 -1
  716. package/dist/components/textArea/text-area.stories.d.ts.map +0 -1
  717. package/dist/components/textArea/text.area.component.d.ts.map +0 -1
  718. package/dist/components/textArea/text.area.constants.d.ts.map +0 -1
  719. package/dist/components/textArea/text.area.control.d.ts.map +0 -1
  720. package/dist/components/textArea/text.area.field.d.ts.map +0 -1
  721. package/dist/components/textArea/text.area.footer.d.ts.map +0 -1
  722. package/dist/components/textArea/text.area.helpers.d.ts.map +0 -1
  723. package/dist/components/textArea/types.d.ts.map +0 -1
  724. package/dist/components/toggle/constants/variants.d.ts.map +0 -1
  725. package/dist/components/toggle/index.d.ts.map +0 -1
  726. package/dist/components/toggle/toggle.component.d.ts.map +0 -1
  727. package/dist/components/toggle/toggle.stories.d.ts.map +0 -1
  728. package/dist/components/toggle/toggle.test.d.ts.map +0 -1
  729. package/dist/components/toggle-group/index.d.ts.map +0 -1
  730. package/dist/components/toggle-group/toggle-group-context.d.ts.map +0 -1
  731. package/dist/components/toggle-group/toggle-group-item.component.d.ts.map +0 -1
  732. package/dist/components/toggle-group/toggle-group.component.d.ts.map +0 -1
  733. package/dist/components/toggle-group/toggle-group.stories.d.ts.map +0 -1
  734. package/dist/components/toggle-group/toggle-group.test.d.ts.map +0 -1
  735. package/dist/components/tooltip/index.d.ts.map +0 -1
  736. package/dist/components/tooltip/tooltip.component.d.ts.map +0 -1
  737. package/dist/components/tooltip/tooltip.stories.d.ts.map +0 -1
  738. package/dist/components/tooltip/tooltip.test.d.ts.map +0 -1
  739. package/dist/components/tooltip/tooltip.types.d.ts.map +0 -1
  740. package/dist/components/typography/index.d.ts.map +0 -1
  741. package/dist/components/typography/typography.component.d.ts.map +0 -1
  742. package/dist/components/typography/typography.constants.d.ts.map +0 -1
  743. package/dist/components/typography/typography.text.d.ts.map +0 -1
  744. package/dist/components/typography/typography.title.d.ts.map +0 -1
  745. package/dist/components/typography/typography.types.d.ts.map +0 -1
  746. package/dist/components/typography/utils/index.d.ts.map +0 -1
  747. package/dist/components/utils/chunks.d.ts.map +0 -1
  748. package/dist/components/utils/generate-colors.d.ts.map +0 -1
  749. package/dist/components/utils/index.d.ts.map +0 -1
  750. package/dist/constants/alert/index.d.ts.map +0 -1
  751. package/dist/constants/charts/doughnut.d.ts.map +0 -1
  752. package/dist/constants/charts/index.d.ts.map +0 -1
  753. package/dist/constants/charts/vertical-horizontal.d.ts.map +0 -1
  754. package/dist/constants/common/index.d.ts.map +0 -1
  755. package/dist/constants/langs/index.d.ts.map +0 -1
  756. package/dist/constants/list/index.d.ts.map +0 -1
  757. package/dist/constants/list/sizes.d.ts.map +0 -1
  758. package/dist/constants/notification/index.d.ts.map +0 -1
  759. package/dist/constants/pagination/index.d.ts.map +0 -1
  760. package/dist/constants/pagination/sizes.d.ts.map +0 -1
  761. package/dist/constants/progress/index.d.ts.map +0 -1
  762. package/dist/constants/slider/index.d.ts.map +0 -1
  763. package/dist/constants/steps/index.d.ts.map +0 -1
  764. package/dist/constants/steps/sizes.d.ts.map +0 -1
  765. package/dist/constants/tag/index.d.ts.map +0 -1
  766. package/dist/constants/transitions/command-palette.transition.d.ts.map +0 -1
  767. package/dist/constants/transitions/dropdown.transition.d.ts.map +0 -1
  768. package/dist/constants/transitions/flyout-from-bottom.transition.d.ts.map +0 -1
  769. package/dist/constants/transitions/flyout-from-top.transition.d.ts.map +0 -1
  770. package/dist/constants/transitions/index.d.ts.map +0 -1
  771. package/dist/constants/transitions/modal-overlay.transition.d.ts.map +0 -1
  772. package/dist/constants/transitions/modal.transition.d.ts.map +0 -1
  773. package/dist/constants/transitions/notification.transition.d.ts.map +0 -1
  774. package/dist/constants/transitions/position-drawer.transition.d.ts.map +0 -1
  775. package/dist/constants/transitions/select-transition.d.ts.map +0 -1
  776. package/dist/constants/transitions/simple.transition.d.ts.map +0 -1
  777. package/dist/constants/transitions/slide-over.transition.d.ts.map +0 -1
  778. package/dist/constants/transitions/slide-overlay.transition.d.ts.map +0 -1
  779. package/dist/constants/transitions/spin-in.transition.d.ts.map +0 -1
  780. package/dist/constants/typography/title/index.d.ts.map +0 -1
  781. package/dist/constants/version-number.d.ts.map +0 -1
  782. package/dist/hooks/index.d.ts.map +0 -1
  783. package/dist/hooks/use-controlled-state.d.ts.map +0 -1
  784. package/dist/hooks/useBoolean/index.d.ts.map +0 -1
  785. package/dist/hooks/useBreakpoint/index.d.ts.map +0 -1
  786. package/dist/hooks/useDarkMode/index.d.ts.map +0 -1
  787. package/dist/hooks/useItemsId.d.ts.map +0 -1
  788. package/dist/hooks/useLang/index.d.ts.map +0 -1
  789. package/dist/hooks/useWindowLoading/index.d.ts.map +0 -1
  790. package/dist/index-B2-I-g4_.js +0 -18
  791. package/dist/index-CFlnP8Em.cjs +0 -1
  792. package/dist/index-DGDeDoym.cjs +0 -17
  793. package/dist/index-q_fyr_Rn.js +0 -156
  794. package/dist/interfaces/accordion/index.d.ts.map +0 -1
  795. package/dist/interfaces/bullets-navigation/index.d.ts.map +0 -1
  796. package/dist/interfaces/button/index.d.ts.map +0 -1
  797. package/dist/interfaces/card-product/index.d.ts.map +0 -1
  798. package/dist/interfaces/card-status/index.d.ts.map +0 -1
  799. package/dist/interfaces/charts/index.d.ts.map +0 -1
  800. package/dist/interfaces/checkbox/index.d.ts.map +0 -1
  801. package/dist/interfaces/common/index.d.ts.map +0 -1
  802. package/dist/interfaces/custom/config-card.d.ts.map +0 -1
  803. package/dist/interfaces/custom/customer-name-card.d.ts.map +0 -1
  804. package/dist/interfaces/custom/index.d.ts.map +0 -1
  805. package/dist/interfaces/custom/instructions-carousel.d.ts.map +0 -1
  806. package/dist/interfaces/custom/switch-option-list.d.ts.map +0 -1
  807. package/dist/interfaces/custom/switch-option.d.ts.map +0 -1
  808. package/dist/interfaces/custom/tooltip.d.ts.map +0 -1
  809. package/dist/interfaces/date-range-picker/index.d.ts.map +0 -1
  810. package/dist/interfaces/divider/index.d.ts.map +0 -1
  811. package/dist/interfaces/drawer/index.d.ts.map +0 -1
  812. package/dist/interfaces/flex/index.d.ts.map +0 -1
  813. package/dist/interfaces/footer/index.d.ts.map +0 -1
  814. package/dist/interfaces/grid/index.d.ts.map +0 -1
  815. package/dist/interfaces/index.d.ts.map +0 -1
  816. package/dist/interfaces/input/index.d.ts.map +0 -1
  817. package/dist/interfaces/input-number/index.d.ts.map +0 -1
  818. package/dist/interfaces/input-text/index.d.ts.map +0 -1
  819. package/dist/interfaces/layout/container/index.d.ts.map +0 -1
  820. package/dist/interfaces/layout/footer/index.d.ts.map +0 -1
  821. package/dist/interfaces/layout/index.d.ts.map +0 -1
  822. package/dist/interfaces/layout/navbar/index.d.ts.map +0 -1
  823. package/dist/interfaces/layout/sidebar/index.d.ts.map +0 -1
  824. package/dist/interfaces/loadings/idle-coco.d.ts.map +0 -1
  825. package/dist/interfaces/loadings/index.d.ts.map +0 -1
  826. package/dist/interfaces/menu/index.d.ts.map +0 -1
  827. package/dist/interfaces/modal/index.d.ts.map +0 -1
  828. package/dist/interfaces/navbar/index.d.ts.map +0 -1
  829. package/dist/interfaces/qr-code/index.d.ts.map +0 -1
  830. package/dist/interfaces/radio/index.d.ts.map +0 -1
  831. package/dist/interfaces/select/index.d.ts.map +0 -1
  832. package/dist/interfaces/sidebar/index.d.ts.map +0 -1
  833. package/dist/interfaces/steps/index.d.ts.map +0 -1
  834. package/dist/interfaces/switch/index.d.ts.map +0 -1
  835. package/dist/interfaces/table/index.d.ts.map +0 -1
  836. package/dist/interfaces/tabs/index.d.ts.map +0 -1
  837. package/dist/interfaces/text-area/index.d.ts.map +0 -1
  838. package/dist/interfaces/toast/index.d.ts.map +0 -1
  839. package/dist/interfaces/tooltip/index.d.ts.map +0 -1
  840. package/dist/interfaces/typography/title/index.d.ts.map +0 -1
  841. package/dist/interfaces/utils/index.d.ts.map +0 -1
  842. package/dist/lang/es_MX/index.d.ts.map +0 -1
  843. package/dist/lang/i18n.d.ts.map +0 -1
  844. package/dist/lang/layout/index.d.ts.map +0 -1
  845. package/dist/lang/layout/login/es_MX/index.d.ts.map +0 -1
  846. package/dist/lang/layout/login/index.d.ts.map +0 -1
  847. package/dist/layout/content.component.d.ts.map +0 -1
  848. package/dist/layout/footer.component.d.ts.map +0 -1
  849. package/dist/layout/header/header.component.d.ts.map +0 -1
  850. package/dist/layout/header/header.types.d.ts.map +0 -1
  851. package/dist/layout/header/left-side.component.d.ts.map +0 -1
  852. package/dist/layout/header/right-side.component.d.ts.map +0 -1
  853. package/dist/layout/header/store.component.d.ts.map +0 -1
  854. package/dist/layout/header/user.component.d.ts.map +0 -1
  855. package/dist/layout/index.d.ts.map +0 -1
  856. package/dist/layout/root-layout.component.d.ts.map +0 -1
  857. package/dist/layout/root-layout.stories.d.ts.map +0 -1
  858. package/dist/layout/root-layout.test.d.ts.map +0 -1
  859. package/dist/layout/root-layout.types.d.ts.map +0 -1
  860. package/dist/proxy-2cglvzJh.cjs +0 -31
  861. package/dist/proxy-uRb7Bek8.js +0 -5497
  862. package/dist/types/common/index.d.ts.map +0 -1
  863. package/dist/types/index.d.ts.map +0 -1
  864. package/dist/use-controlled-state-CNjWcDSI.js +0 -19
  865. package/dist/use-controlled-state-Ci1ztv5B.cjs +0 -1
  866. package/dist/useTranslation-2Dz5dMlm.cjs +0 -1
  867. package/dist/useTranslation-B0fSob9I.js +0 -189
  868. package/dist/utils/buildId.d.ts.map +0 -1
  869. package/dist/utils/classNames.d.ts.map +0 -1
  870. package/dist/utils/context/get-context.d.ts.map +0 -1
  871. package/dist/utils/context/index.d.ts.map +0 -1
  872. package/dist/utils/context/types.d.ts.map +0 -1
  873. package/dist/utils/generateClasses/index.d.ts.map +0 -1
  874. package/dist/utils/index.d.ts.map +0 -1
@@ -0,0 +1,6 @@
1
+ "use strict";const P=require("react");var qt={exports:{}},Lt={};var $n;function ro(){if($n)return Lt;$n=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function n(s,i,o){var r=null;if(o!==void 0&&(r=""+o),i.key!==void 0&&(r=""+i.key),"key"in i){o={};for(var a in i)a!=="key"&&(o[a]=i[a])}else o=i;return i=o.ref,{$$typeof:t,type:s,key:r,ref:i!==void 0?i:null,props:o}}return Lt.Fragment=e,Lt.jsx=n,Lt.jsxs=n,Lt}var Ot={};var Kn;function oo(){return Kn||(Kn=1,process.env.NODE_ENV!=="production"&&(function(){function t(m){if(m==null)return null;if(typeof m=="function")return m.$$typeof===D?null:m.displayName||m.name||null;if(typeof m=="string")return m;switch(m){case v:return"Fragment";case x:return"Profiler";case y:return"StrictMode";case L:return"Suspense";case _:return"SuspenseList";case b:return"Activity"}if(typeof m=="object")switch(typeof m.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),m.$$typeof){case g:return"Portal";case S:return m.displayName||"Context";case T:return(m._context.displayName||"Context")+".Consumer";case A:var E=m.render;return m=m.displayName,m||(m=E.displayName||E.name||"",m=m!==""?"ForwardRef("+m+")":"ForwardRef"),m;case V:return E=m.displayName||null,E!==null?E:t(m.type)||"Memo";case O:E=m._payload,m=m._init;try{return t(m(E))}catch{}}return null}function e(m){return""+m}function n(m){try{e(m);var E=!1}catch{E=!0}if(E){E=console;var k=E.error,j=typeof Symbol=="function"&&Symbol.toStringTag&&m[Symbol.toStringTag]||m.constructor.name||"Object";return k.call(E,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",j),e(m)}}function s(m){if(m===v)return"<>";if(typeof m=="object"&&m!==null&&m.$$typeof===O)return"<...>";try{var E=t(m);return E?"<"+E+">":"<...>"}catch{return"<...>"}}function i(){var m=U.A;return m===null?null:m.getOwner()}function o(){return Error("react-stack-top-frame")}function r(m){if(nt.call(m,"key")){var E=Object.getOwnPropertyDescriptor(m,"key").get;if(E&&E.isReactWarning)return!1}return m.key!==void 0}function a(m,E){function k(){X||(X=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",E))}k.isReactWarning=!0,Object.defineProperty(m,"key",{get:k,configurable:!0})}function l(){var m=t(this.type);return xe[m]||(xe[m]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),m=this.props.ref,m!==void 0?m:null}function c(m,E,k,j,Xt,we){var N=k.ref;return m={$$typeof:p,type:m,key:E,props:k,_owner:j},(N!==void 0?N:null)!==null?Object.defineProperty(m,"ref",{enumerable:!1,get:l}):Object.defineProperty(m,"ref",{enumerable:!1,value:null}),m._store={},Object.defineProperty(m._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(m,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(m,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Xt}),Object.defineProperty(m,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:we}),Object.freeze&&(Object.freeze(m.props),Object.freeze(m)),m}function u(m,E,k,j,Xt,we){var N=E.children;if(N!==void 0)if(j)if(q(N)){for(j=0;j<N.length;j++)h(N[j]);Object.freeze&&Object.freeze(N)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else h(N);if(nt.call(E,"key")){N=t(m);var vt=Object.keys(E).filter(function(io){return io!=="key"});j=0<vt.length?"{key: someKey, "+vt.join(": ..., ")+": ...}":"{key: someKey}",st[N+j]||(vt=0<vt.length?"{"+vt.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
2
+ let props = %s;
3
+ <%s {...props} />
4
+ React keys must be passed directly to JSX without using spread:
5
+ let props = %s;
6
+ <%s key={someKey} {...props} />`,j,N,vt,N),st[N+j]=!0)}if(N=null,k!==void 0&&(n(k),N=""+k),r(E)&&(n(E.key),N=""+E.key),"key"in E){k={};for(var Se in E)Se!=="key"&&(k[Se]=E[Se])}else k=E;return N&&a(k,typeof m=="function"?m.displayName||m.name||"Unknown":m),c(m,N,k,i(),Xt,we)}function h(m){f(m)?m._store&&(m._store.validated=1):typeof m=="object"&&m!==null&&m.$$typeof===O&&(m._payload.status==="fulfilled"?f(m._payload.value)&&m._payload.value._store&&(m._payload.value._store.validated=1):m._store&&(m._store.validated=1))}function f(m){return typeof m=="object"&&m!==null&&m.$$typeof===p}var d=P,p=Symbol.for("react.transitional.element"),g=Symbol.for("react.portal"),v=Symbol.for("react.fragment"),y=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),T=Symbol.for("react.consumer"),S=Symbol.for("react.context"),A=Symbol.for("react.forward_ref"),L=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),V=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),D=Symbol.for("react.client.reference"),U=d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,nt=Object.prototype.hasOwnProperty,q=Array.isArray,Y=console.createTask?console.createTask:function(){return null};d={react_stack_bottom_frame:function(m){return m()}};var X,xe={},I=d.react_stack_bottom_frame.bind(d,o)(),K=Y(s(o)),st={};Ot.Fragment=v,Ot.jsx=function(m,E,k){var j=1e4>U.recentlyCreatedOwnerStacks++;return u(m,E,k,!1,j?Error("react-stack-top-frame"):I,j?Y(s(m)):K)},Ot.jsxs=function(m,E,k){var j=1e4>U.recentlyCreatedOwnerStacks++;return u(m,E,k,!0,j?Error("react-stack-top-frame"):I,j?Y(s(m)):K)}})()),Ot}var Gn;function ao(){return Gn||(Gn=1,process.env.NODE_ENV==="production"?qt.exports=ro():qt.exports=oo()),qt.exports}var le=ao();const hn=P.createContext({});function ui(t){const e=P.useRef(null);return e.current===null&&(e.current=t()),e.current}const lo=typeof window<"u",ci=lo?P.useLayoutEffect:P.useEffect,pe=P.createContext(null);function fn(t,e){t.indexOf(e)===-1&&t.push(e)}function _t(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const ot=(t,e,n)=>n>e?e:n<t?t:n;function Ne(t,e){return e?`${t}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${e}`:t}let Mt=()=>{};exports.invariant=()=>{};typeof process<"u"&&process.env?.NODE_ENV!=="production"&&(Mt=(t,e,n)=>{!t&&typeof console<"u"&&console.warn(Ne(e,n))},exports.invariant=(t,e,n)=>{if(!t)throw new Error(Ne(e,n))});const at={},hi=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);function fi(t){return typeof t=="object"&&t!==null}const di=t=>/^0[^.\s]+$/u.test(t);function mi(t){let e;return()=>(e===void 0&&(e=t()),e)}const J=t=>t,uo=(t,e)=>n=>e(t(n)),Gt=(...t)=>t.reduce(uo),Vt=(t,e,n)=>{const s=e-t;return s===0?1:(n-t)/s};class dn{constructor(){this.subscriptions=[]}add(e){return fn(this.subscriptions,e),()=>_t(this.subscriptions,e)}notify(e,n,s){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,s);else for(let o=0;o<i;o++){const r=this.subscriptions[o];r&&r(e,n,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const H=t=>t*1e3,Z=t=>t/1e3;function pi(t,e){return e?t*(1e3/e):0}const zn=new Set;function mn(t,e,n){t||zn.has(e)||(console.warn(Ne(e,n)),zn.add(e))}const gi=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,co=1e-7,ho=12;function fo(t,e,n,s,i){let o,r,a=0;do r=e+(n-e)/2,o=gi(r,s,i)-t,o>0?n=r:e=r;while(Math.abs(o)>co&&++a<ho);return r}function zt(t,e,n,s){if(t===e&&n===s)return J;const i=o=>fo(o,0,1,t,n);return o=>o===0||o===1?o:gi(i(o),e,s)}const yi=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,vi=t=>e=>1-t(1-e),Ti=zt(.33,1.53,.69,.99),pn=vi(Ti),xi=yi(pn),wi=t=>(t*=2)<1?.5*pn(t):.5*(2-Math.pow(2,-10*(t-1))),gn=t=>1-Math.sin(Math.acos(t)),Si=vi(gn),Pi=yi(gn),mo=zt(.42,0,1,1),po=zt(0,0,.58,1),bi=zt(.42,0,.58,1),Ai=t=>Array.isArray(t)&&typeof t[0]!="number",Ei=t=>Array.isArray(t)&&typeof t[0]=="number",Hn={linear:J,easeIn:mo,easeInOut:bi,easeOut:po,circIn:gn,circInOut:Pi,circOut:Si,backIn:pn,backInOut:xi,backOut:Ti,anticipate:wi},go=t=>typeof t=="string",Yn=t=>{if(Ei(t)){exports.invariant(t.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[e,n,s,i]=t;return zt(e,n,s,i)}else if(go(t))return exports.invariant(Hn[t]!==void 0,`Invalid easing type '${t}'`,"invalid-easing-type"),Hn[t];return t},Zt=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function yo(t,e){let n=new Set,s=new Set,i=!1,o=!1;const r=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(u){r.has(u)&&(c.schedule(u),t()),u(a)}const c={schedule:(u,h=!1,f=!1)=>{const p=f&&i?n:s;return h&&r.add(u),p.has(u)||p.add(u),u},cancel:u=>{s.delete(u),r.delete(u)},process:u=>{if(a=u,i){o=!0;return}i=!0,[n,s]=[s,n],n.forEach(l),n.clear(),i=!1,o&&(o=!1,c.process(u))}};return c}const vo=40;function Vi(t,e){let n=!1,s=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,r=Zt.reduce((T,S)=>(T[S]=yo(o),T),{}),{setup:a,read:l,resolveKeyframes:c,preUpdate:u,update:h,preRender:f,render:d,postRender:p}=r,g=()=>{const T=at.useManualTiming?i.timestamp:performance.now();n=!1,at.useManualTiming||(i.delta=s?1e3/60:Math.max(Math.min(T-i.timestamp,vo),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),d.process(i),p.process(i),i.isProcessing=!1,n&&e&&(s=!1,t(g))},v=()=>{n=!0,s=!0,i.isProcessing||t(g)};return{schedule:Zt.reduce((T,S)=>{const A=r[S];return T[S]=(L,_=!1,V=!1)=>(n||v(),A.schedule(L,_,V)),T},{}),cancel:T=>{for(let S=0;S<Zt.length;S++)r[Zt[S]].cancel(T)},state:i,steps:r}}const{schedule:C,cancel:lt,state:W,steps:Pe}=Vi(typeof requestAnimationFrame<"u"?requestAnimationFrame:J,!0);let ee;function To(){ee=void 0}const G={now:()=>(ee===void 0&&G.set(W.isProcessing||at.useManualTiming?W.timestamp:performance.now()),ee),set:t=>{ee=t,queueMicrotask(To)}},Ci=t=>e=>typeof e=="string"&&e.startsWith(t),Mi=Ci("--"),xo=Ci("var(--"),yn=t=>xo(t)?wo.test(t.split("/*")[0].trim()):!1,wo=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Xn(t){return typeof t!="string"?!1:t.split("/*")[0].includes("var(--")}const Rt={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Ut={...Rt,transform:t=>ot(0,1,t)},Jt={...Rt,default:1},Bt=t=>Math.round(t*1e5)/1e5,vn=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function So(t){return t==null}const Po=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Tn=(t,e)=>n=>!!(typeof n=="string"&&Po.test(n)&&n.startsWith(t)||e&&!So(n)&&Object.prototype.hasOwnProperty.call(n,e)),Ri=(t,e,n)=>s=>{if(typeof s!="string")return s;const[i,o,r,a]=s.match(vn);return{[t]:parseFloat(i),[e]:parseFloat(o),[n]:parseFloat(r),alpha:a!==void 0?parseFloat(a):1}},bo=t=>ot(0,255,t),be={...Rt,transform:t=>Math.round(bo(t))},mt={test:Tn("rgb","red"),parse:Ri("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+be.transform(t)+", "+be.transform(e)+", "+be.transform(n)+", "+Bt(Ut.transform(s))+")"};function Ao(t){let e="",n="",s="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),s=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),s=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,s+=s,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:i?parseInt(i,16)/255:1}}const _e={test:Tn("#"),parse:Ao,transform:mt.transform},Ht=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),ut=Ht("deg"),rt=Ht("%"),w=Ht("px"),Eo=Ht("vh"),Vo=Ht("vw"),qn={...rt,parse:t=>rt.parse(t)/100,transform:t=>rt.transform(t*100)},xt={test:Tn("hsl","hue"),parse:Ri("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+rt.transform(Bt(e))+", "+rt.transform(Bt(n))+", "+Bt(Ut.transform(s))+")"},B={test:t=>mt.test(t)||_e.test(t)||xt.test(t),parse:t=>mt.test(t)?mt.parse(t):xt.test(t)?xt.parse(t):_e.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?mt.transform(t):xt.transform(t),getAnimatableNone:t=>{const e=B.parse(t);return e.alpha=0,B.transform(e)}},Co=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Mo(t){return isNaN(t)&&typeof t=="string"&&(t.match(vn)?.length||0)+(t.match(Co)?.length||0)>0}const Di="number",ki="color",Ro="var",Do="var(",Zn="${}",ko=/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;function Ct(t){const e=t.toString(),n=[],s={color:[],number:[],var:[]},i=[];let o=0;const a=e.replace(ko,l=>(B.test(l)?(s.color.push(o),i.push(ki),n.push(B.parse(l))):l.startsWith(Do)?(s.var.push(o),i.push(Ro),n.push(l)):(s.number.push(o),i.push(Di),n.push(parseFloat(l))),++o,Zn)).split(Zn);return{values:n,split:a,indexes:s,types:i}}function Lo(t){return Ct(t).values}function Li({split:t,types:e}){const n=t.length;return s=>{let i="";for(let o=0;o<n;o++)if(i+=t[o],s[o]!==void 0){const r=e[o];r===Di?i+=Bt(s[o]):r===ki?i+=B.transform(s[o]):i+=s[o]}return i}}function Oo(t){return Li(Ct(t))}const Io=t=>typeof t=="number"?0:B.test(t)?B.getAnimatableNone(t):t,Fo=(t,e)=>typeof t=="number"?e?.trim().endsWith("/")?t:0:Io(t);function Bo(t){const e=Ct(t);return Li(e)(e.values.map((s,i)=>Fo(s,e.split[i])))}const et={test:Mo,parse:Lo,createTransformer:Oo,getAnimatableNone:Bo};function Ae(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function jo({hue:t,saturation:e,lightness:n,alpha:s}){t/=360,e/=100,n/=100;let i=0,o=0,r=0;if(!e)i=o=r=n;else{const a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;i=Ae(l,a,t+1/3),o=Ae(l,a,t),r=Ae(l,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(r*255),alpha:s}}function ue(t,e){return n=>n>0?e:t}const M=(t,e,n)=>t+(e-t)*n,Ee=(t,e,n)=>{const s=t*t,i=n*(e*e-s)+s;return i<0?0:Math.sqrt(i)},No=[_e,mt,xt],_o=t=>No.find(e=>e.test(t));function Jn(t){const e=_o(t);if(Mt(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!e)return!1;let n=e.parse(t);return e===xt&&(n=jo(n)),n}const Qn=(t,e)=>{const n=Jn(t),s=Jn(e);if(!n||!s)return ue(t,e);const i={...n};return o=>(i.red=Ee(n.red,s.red,o),i.green=Ee(n.green,s.green,o),i.blue=Ee(n.blue,s.blue,o),i.alpha=M(n.alpha,s.alpha,o),mt.transform(i))},Ue=new Set(["none","hidden"]);function Uo(t,e){return Ue.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function Wo(t,e){return n=>M(t,e,n)}function xn(t){return typeof t=="number"?Wo:typeof t=="string"?yn(t)?ue:B.test(t)?Qn:Go:Array.isArray(t)?Oi:typeof t=="object"?B.test(t)?Qn:$o:ue}function Oi(t,e){const n=[...t],s=n.length,i=t.map((o,r)=>xn(o)(o,e[r]));return o=>{for(let r=0;r<s;r++)n[r]=i[r](o);return n}}function $o(t,e){const n={...t,...e},s={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(s[i]=xn(t[i])(t[i],e[i]));return i=>{for(const o in s)n[o]=s[o](i);return n}}function Ko(t,e){const n=[],s={color:0,var:0,number:0};for(let i=0;i<e.values.length;i++){const o=e.types[i],r=t.indexes[o][s[o]],a=t.values[r]??0;n[i]=a,s[o]++}return n}const Go=(t,e)=>{const n=et.createTransformer(e),s=Ct(t),i=Ct(e);return s.indexes.var.length===i.indexes.var.length&&s.indexes.color.length===i.indexes.color.length&&s.indexes.number.length>=i.indexes.number.length?Ue.has(t)&&!i.values.length||Ue.has(e)&&!s.values.length?Uo(t,e):Gt(Oi(Ko(s,i),i.values),n):(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"),ue(t,e))};function Ii(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?M(t,e,n):xn(t)(t,e)}const zo=t=>{const e=({timestamp:n})=>t(n);return{start:(n=!0)=>C.update(e,n),stop:()=>lt(e),now:()=>W.isProcessing?W.timestamp:G.now()}},Fi=(t,e,n=10)=>{let s="";const i=Math.max(Math.round(e/n),2);for(let o=0;o<i;o++)s+=Math.round(t(o/(i-1))*1e4)/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},ce=2e4;function wn(t){let e=0;const n=50;let s=t.next(e);for(;!s.done&&e<ce;)e+=n,s=t.next(e);return e>=ce?1/0:e}function Bi(t,e=100,n){const s=n({...t,keyframes:[0,e]}),i=Math.min(wn(s),ce);return{type:"keyframes",ease:o=>s.next(i*o).value/e,duration:Z(i)}}const R={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function We(t,e){return t*Math.sqrt(1-e*e)}const Ho=12;function Yo(t,e,n){let s=n;for(let i=1;i<Ho;i++)s=s-t(s)/e(s);return s}const Ve=.001;function Xo({duration:t=R.duration,bounce:e=R.bounce,velocity:n=R.velocity,mass:s=R.mass}){let i,o;Mt(t<=H(R.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let r=1-e;r=ot(R.minDamping,R.maxDamping,r),t=ot(R.minDuration,R.maxDuration,Z(t)),r<1?(i=c=>{const u=c*r,h=u*t,f=u-n,d=We(c,r),p=Math.exp(-h);return Ve-f/d*p},o=c=>{const h=c*r*t,f=h*n+n,d=Math.pow(r,2)*Math.pow(c,2)*t,p=Math.exp(-h),g=We(Math.pow(c,2),r);return(-i(c)+Ve>0?-1:1)*((f-d)*p)/g}):(i=c=>{const u=Math.exp(-c*t),h=(c-n)*t+1;return-Ve+u*h},o=c=>{const u=Math.exp(-c*t),h=(n-c)*(t*t);return u*h});const a=5/t,l=Yo(i,o,a);if(t=H(t),isNaN(l))return{stiffness:R.stiffness,damping:R.damping,duration:t};{const c=Math.pow(l,2)*s;return{stiffness:c,damping:r*2*Math.sqrt(s*c),duration:t}}}const qo=["duration","bounce"],Zo=["stiffness","damping","mass"];function ts(t,e){return e.some(n=>t[n]!==void 0)}function Jo(t){let e={velocity:R.velocity,stiffness:R.stiffness,damping:R.damping,mass:R.mass,isResolvedFromDuration:!1,...t};if(!ts(t,Zo)&&ts(t,qo))if(e.velocity=0,t.visualDuration){const n=t.visualDuration,s=2*Math.PI/(n*1.2),i=s*s,o=2*ot(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:R.mass,stiffness:i,damping:o}}else{const n=Xo({...t,velocity:0});e={...e,...n,mass:R.mass},e.isResolvedFromDuration=!0}return e}function Wt(t=R.visualDuration,e=R.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:s,restDelta:i}=n;const o=n.keyframes[0],r=n.keyframes[n.keyframes.length-1],a={done:!1,value:o},{stiffness:l,damping:c,mass:u,duration:h,velocity:f,isResolvedFromDuration:d}=Jo({...n,velocity:-Z(n.velocity||0)}),p=f||0,g=c/(2*Math.sqrt(l*u)),v=r-o,y=Z(Math.sqrt(l/u)),x=Math.abs(v)<5;s||(s=x?R.restSpeed.granular:R.restSpeed.default),i||(i=x?R.restDelta.granular:R.restDelta.default);let T,S,A,L,_,V;if(g<1)A=We(y,g),L=(p+g*y*v)/A,T=b=>{const D=Math.exp(-g*y*b);return r-D*(L*Math.sin(A*b)+v*Math.cos(A*b))},_=g*y*L+v*A,V=g*y*v-L*A,S=b=>Math.exp(-g*y*b)*(_*Math.sin(A*b)+V*Math.cos(A*b));else if(g===1){T=D=>r-Math.exp(-y*D)*(v+(p+y*v)*D);const b=p+y*v;S=D=>Math.exp(-y*D)*(y*b*D-p)}else{const b=y*Math.sqrt(g*g-1);T=q=>{const Y=Math.exp(-g*y*q),X=Math.min(b*q,300);return r-Y*((p+g*y*v)*Math.sinh(X)+b*v*Math.cosh(X))/b};const D=(p+g*y*v)/b,U=g*y*D-v*b,nt=g*y*v-D*b;S=q=>{const Y=Math.exp(-g*y*q),X=Math.min(b*q,300);return Y*(U*Math.sinh(X)+nt*Math.cosh(X))}}const O={calculatedDuration:d&&h||null,velocity:b=>H(S(b)),next:b=>{if(!d&&g<1){const U=Math.exp(-g*y*b),nt=Math.sin(A*b),q=Math.cos(A*b),Y=r-U*(L*nt+v*q),X=H(U*(_*nt+V*q));return a.done=Math.abs(X)<=s&&Math.abs(r-Y)<=i,a.value=a.done?r:Y,a}const D=T(b);if(d)a.done=b>=h;else{const U=H(S(b));a.done=Math.abs(U)<=s&&Math.abs(r-D)<=i}return a.value=a.done?r:D,a},toString:()=>{const b=Math.min(wn(O),ce),D=Fi(U=>O.next(b*U).value,b,30);return b+"ms "+D},toTransition:()=>{}};return O}Wt.applyToOptions=t=>{const e=Bi(t,100,Wt);return t.ease=e.ease,t.duration=H(e.duration),t.type="keyframes",t};const Qo=5;function ji(t,e,n){const s=Math.max(e-Qo,0);return pi(n-t(s),e-s)}function $e({keyframes:t,velocity:e=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:r,min:a,max:l,restDelta:c=.5,restSpeed:u}){const h=t[0],f={done:!1,value:h},d=V=>a!==void 0&&V<a||l!==void 0&&V>l,p=V=>a===void 0?l:l===void 0||Math.abs(a-V)<Math.abs(l-V)?a:l;let g=n*e;const v=h+g,y=r===void 0?v:r(v);y!==v&&(g=y-h);const x=V=>-g*Math.exp(-V/s),T=V=>y+x(V),S=V=>{const O=x(V),b=T(V);f.done=Math.abs(O)<=c,f.value=f.done?y:b};let A,L;const _=V=>{d(f.value)&&(A=V,L=Wt({keyframes:[f.value,p(f.value)],velocity:ji(T,V,f.value),damping:i,stiffness:o,restDelta:c,restSpeed:u}))};return _(0),{calculatedDuration:null,next:V=>{let O=!1;return!L&&A===void 0&&(O=!0,S(V),_(V)),A!==void 0&&V>=A?L.next(V-A):(!O&&S(V),f)}}}function ta(t,e,n){const s=[],i=n||at.mix||Ii,o=t.length-1;for(let r=0;r<o;r++){let a=i(t[r],t[r+1]);if(e){const l=Array.isArray(e)?e[r]||J:e;a=Gt(l,a)}s.push(a)}return s}function Ni(t,e,{clamp:n=!0,ease:s,mixer:i}={}){const o=t.length;if(exports.invariant(o===e.length,"Both input and output ranges must be the same length","range-length"),o===1)return()=>e[0];if(o===2&&e[0]===e[1])return()=>e[1];const r=t[0]===t[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=ta(e,s,i),l=a.length,c=u=>{if(r&&u<t[0])return e[0];let h=0;if(l>1)for(;h<t.length-2&&!(u<t[h+1]);h++);const f=Vt(t[h],t[h+1],u);return a[h](f)};return n?u=>c(ot(t[0],t[o-1],u)):c}function _i(t,e){const n=t[t.length-1];for(let s=1;s<=e;s++){const i=Vt(0,e,s);t.push(M(n,1,i))}}function Ui(t){const e=[0];return _i(e,t.length-1),e}function ea(t,e){return t.map(n=>n*e)}function na(t,e){return t.map(()=>e||bi).splice(0,t.length-1)}function wt({duration:t=300,keyframes:e,times:n,ease:s="easeInOut"}){const i=Ai(s)?s.map(Yn):Yn(s),o={done:!1,value:e[0]},r=ea(n&&n.length===e.length?n:Ui(e),t),a=Ni(r,e,{ease:Array.isArray(i)?i:na(e,i)});return{calculatedDuration:t,next:l=>(o.value=a(l),o.done=l>=t,o)}}const sa=t=>t!==null;function Sn(t,{repeat:e,repeatType:n="loop"},s,i=1){const o=t.filter(sa),a=i<0||e&&n!=="loop"&&e%2===1?0:o.length-1;return!a||s===void 0?o[a]:s}const ia={decay:$e,inertia:$e,tween:wt,keyframes:wt,spring:Wt};function Wi(t){typeof t.type=="string"&&(t.type=ia[t.type])}class Pn{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,n){return this.finished.then(e,n)}}const ra=t=>t/100;class bn extends Pn{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==G.now()&&this.tick(G.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){const{options:e}=this;Wi(e);const{type:n=wt,repeat:s=0,repeatDelay:i=0,repeatType:o,velocity:r=0}=e;let{keyframes:a}=e;const l=n||wt;process.env.NODE_ENV!=="production"&&l!==wt&&exports.invariant(a.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`,"spring-two-frames"),l!==wt&&typeof a[0]!="number"&&(this.mixKeyframes=Gt(ra,Ii(a[0],a[1])),a=[0,100]);const c=l({...e,keyframes:a});o==="mirror"&&(this.mirroredGenerator=l({...e,keyframes:[...a].reverse(),velocity:-r})),c.calculatedDuration===null&&(c.calculatedDuration=wn(c));const{calculatedDuration:u}=c;this.calculatedDuration=u,this.resolvedDuration=u+i,this.totalDuration=this.resolvedDuration*(s+1)-i,this.generator=c}updateTime(e){const n=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(e,n=!1){const{generator:s,totalDuration:i,mixKeyframes:o,mirroredGenerator:r,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return s.next(0);const{delay:c=0,keyframes:u,repeat:h,repeatType:f,repeatDelay:d,type:p,onUpdate:g,finalKeyframe:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-i/this.speed,this.startTime)),n?this.currentTime=e:this.updateTime(e);const y=this.currentTime-c*(this.playbackSpeed>=0?1:-1),x=this.playbackSpeed>=0?y<0:y>i;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let T=this.currentTime,S=s;if(h){const V=Math.min(this.currentTime,i)/a;let O=Math.floor(V),b=V%1;!b&&V>=1&&(b=1),b===1&&O--,O=Math.min(O,h+1),!!(O%2)&&(f==="reverse"?(b=1-b,d&&(b-=d/a)):f==="mirror"&&(S=r)),T=ot(0,1,b)*a}const A=x?{done:!1,value:u[0]}:S.next(T);o&&!x&&(A.value=o(A.value));let{done:L}=A;!x&&l!==null&&(L=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const _=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&L);return _&&p!==$e&&(A.value=Sn(u,this.options,v,this.speed)),g&&g(A.value),_&&this.finish(),A}then(e,n){return this.finished.then(e,n)}get duration(){return Z(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+Z(e)}get time(){return Z(this.currentTime)}set time(e){e=H(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=e,this.tick(e))}getGeneratorVelocity(){const e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);const n=this.generator.next(e).value;return ji(s=>this.generator.next(s).value,e,n)}get speed(){return this.playbackSpeed}set speed(e){const n=this.playbackSpeed!==e;n&&this.driver&&this.updateTime(G.now()),this.playbackSpeed=e,n&&this.driver&&(this.time=Z(this.currentTime))}play(){if(this.isStopped)return;const{driver:e=zo,startTime:n}=this.options;this.driver||(this.driver=e(i=>this.tick(i))),this.options.onPlay?.();const s=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=s):this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime||(this.startTime=n??s),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(G.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}function oa(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}const pt=t=>t*180/Math.PI,Ke=t=>{const e=pt(Math.atan2(t[1],t[0]));return Ge(e)},aa={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:Ke,rotateZ:Ke,skewX:t=>pt(Math.atan(t[1])),skewY:t=>pt(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},Ge=t=>(t=t%360,t<0&&(t+=360),t),es=Ke,ns=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),ss=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),la={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:ns,scaleY:ss,scale:t=>(ns(t)+ss(t))/2,rotateX:t=>Ge(pt(Math.atan2(t[6],t[5]))),rotateY:t=>Ge(pt(Math.atan2(-t[2],t[0]))),rotateZ:es,rotate:es,skewX:t=>pt(Math.atan(t[4])),skewY:t=>pt(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function ze(t){return t.includes("scale")?1:0}function He(t,e){if(!t||t==="none")return ze(e);const n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,i;if(n)s=la,i=n;else{const a=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=aa,i=a}if(!i)return ze(e);const o=s[e],r=i[1].split(",").map(ca);return typeof o=="function"?o(r):r[o]}const ua=(t,e)=>{const{transform:n="none"}=getComputedStyle(t);return He(n,e)};function ca(t){return parseFloat(t.trim())}const Dt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],kt=new Set(Dt),is=t=>t===Rt||t===w,ha=new Set(["x","y","z"]),fa=Dt.filter(t=>!ha.has(t));function da(t){const e=[];return fa.forEach(n=>{const s=t.getValue(n);s!==void 0&&(e.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),e}const ct={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>He(e,"x"),y:(t,{transform:e})=>He(e,"y")};ct.translateX=ct.x;ct.translateY=ct.y;const gt=new Set;let Ye=!1,Xe=!1,qe=!1;function $i(){if(Xe){const t=Array.from(gt).filter(s=>s.needsMeasurement),e=new Set(t.map(s=>s.element)),n=new Map;e.forEach(s=>{const i=da(s);i.length&&(n.set(s,i),s.render())}),t.forEach(s=>s.measureInitialState()),e.forEach(s=>{s.render();const i=n.get(s);i&&i.forEach(([o,r])=>{s.getValue(o)?.set(r)})}),t.forEach(s=>s.measureEndState()),t.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}Xe=!1,Ye=!1,gt.forEach(t=>t.complete(qe)),gt.clear()}function Ki(){gt.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Xe=!0)})}function ma(){qe=!0,Ki(),$i(),qe=!1}class An{constructor(e,n,s,i,o,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=s,this.motionValue=i,this.element=o,this.isAsync=r}scheduleResolve(){this.state="scheduled",this.isAsync?(gt.add(this),Ye||(Ye=!0,C.read(Ki),C.resolveKeyframes($i))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:s,motionValue:i}=this;if(e[0]===null){const o=i?.get(),r=e[e.length-1];if(o!==void 0)e[0]=o;else if(s&&n){const a=s.readValue(n,r);a!=null&&(e[0]=a)}e[0]===void 0&&(e[0]=r),i&&o===void 0&&i.set(e[0])}oa(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),gt.delete(this)}cancel(){this.state==="scheduled"&&(gt.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const pa=t=>t.startsWith("--");function Gi(t,e,n){pa(e)?t.style.setProperty(e,n):t.style[e]=n}const ga={};function zi(t,e){const n=mi(t);return()=>ga[e]??n()}const ya=zi(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),Hi=zi(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Ft=([t,e,n,s])=>`cubic-bezier(${t}, ${e}, ${n}, ${s})`,rs={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ft([0,.65,.55,1]),circOut:Ft([.55,0,1,.45]),backIn:Ft([.31,.01,.66,-.59]),backOut:Ft([.33,1.53,.69,.99])};function Yi(t,e){if(t)return typeof t=="function"?Hi()?Fi(t,e):"ease-out":Ei(t)?Ft(t):Array.isArray(t)?t.map(n=>Yi(n,e)||rs.easeOut):rs[t]}function va(t,e,n,{delay:s=0,duration:i=300,repeat:o=0,repeatType:r="loop",ease:a="easeOut",times:l}={},c=void 0){const u={[e]:n};l&&(u.offset=l);const h=Yi(a,i);Array.isArray(h)&&(u.easing=h);const f={delay:s,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:o+1,direction:r==="reverse"?"alternate":"normal"};return c&&(f.pseudoElement=c),t.animate(u,f)}function En(t){return typeof t=="function"&&"applyToOptions"in t}function Ta({type:t,...e}){return En(t)&&Hi()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class Xi extends Pn{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:n,name:s,keyframes:i,pseudoElement:o,allowFlatten:r=!1,finalKeyframe:a,onComplete:l}=e;this.isPseudoElement=!!o,this.allowFlatten=r,this.options=e,exports.invariant(typeof e.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const c=Ta(e);this.animation=va(n,s,i,c,o),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const u=Sn(i,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(u),Gi(n,s,u),this.animation.cancel()}l?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){const e=this.animation.effect?.getComputedTiming?.().duration||0;return Z(Number(e))}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+Z(e)}get time(){return Z(Number(this.animation.currentTime)||0)}set time(e){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=H(e),n&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:n,rangeEnd:s,observe:i}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&ya()?(this.animation.timeline=e,n&&(this.animation.rangeStart=n),s&&(this.animation.rangeEnd=s),J):i(this)}}const qi={anticipate:wi,backInOut:xi,circInOut:Pi};function xa(t){return t in qi}function wa(t){typeof t.ease=="string"&&xa(t.ease)&&(t.ease=qi[t.ease])}const Ce=10;class Sa extends Xi{constructor(e){wa(e),Wi(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:n,onUpdate:s,onComplete:i,element:o,...r}=this.options;if(!n)return;if(e!==void 0){n.set(e);return}const a=new bn({...r,autoplay:!1}),l=Math.max(Ce,G.now()-this.startTime),c=ot(0,Ce,l-Ce),u=a.sample(l).value,{name:h}=this.options;o&&h&&Gi(o,h,u),n.setWithVelocity(a.sample(Math.max(0,l-c)).value,u,c),a.stop()}}const os=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(et.test(t)||t==="0")&&!t.startsWith("url("));function Pa(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function ba(t,e,n,s){const i=t[0];if(i===null)return!1;if(e==="display"||e==="visibility")return!0;const o=t[t.length-1],r=os(i,e),a=os(o,e);return Mt(r===a,`You are trying to animate ${e} from "${i}" to "${o}". "${r?o:i}" is not an animatable value.`,"value-not-animatable"),!r||!a?!1:Pa(t)||(n==="spring"||En(n))&&s}function Ze(t){t.duration=0,t.type="keyframes"}const Aa=new Set(["opacity","clipPath","filter","transform"]),Ea=mi(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Va(t){const{motionValue:e,name:n,repeatDelay:s,repeatType:i,damping:o,type:r}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=e.owner.getProps();return Ea()&&n&&Aa.has(n)&&(n!=="transform"||!c)&&!l&&!s&&i!=="mirror"&&o!==0&&r!=="inertia"}const Ca=40;class Ma extends Pn{constructor({autoplay:e=!0,delay:n=0,type:s="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:r="loop",keyframes:a,name:l,motionValue:c,element:u,...h}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=G.now();const f={autoplay:e,delay:n,type:s,repeat:i,repeatDelay:o,repeatType:r,name:l,motionValue:c,element:u,...h},d=u?.KeyframeResolver||An;this.keyframeResolver=new d(a,(p,g,v)=>this.onKeyframesResolved(p,g,f,!v),l,c,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,n,s,i){this.keyframeResolver=void 0;const{name:o,type:r,velocity:a,delay:l,isHandoff:c,onUpdate:u}=s;this.resolvedAt=G.now(),ba(e,o,r,a)||((at.instantAnimations||!l)&&u?.(Sn(e,s,n)),e[0]=e[e.length-1],Ze(s),s.repeat=0);const f={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>Ca?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...s,keyframes:e},d=!c&&Va(f),p=f.motionValue?.owner?.current,g=d?new Sa({...f,element:p}):new bn(f);g.finished.then(()=>{this.notifyFinished()}).catch(J),this.pendingTimeline&&(this.stopTimeline=g.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=g}get finished(){return this._animation?this.animation.finished:this._finished}then(e,n){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),ma()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}function Zi(t,e,n,s=0,i=1){const o=Array.from(t).sort((c,u)=>c.sortNodePosition(u)).indexOf(e),r=t.size,a=(r-1)*s;return typeof n=="function"?n(o,r):i===1?o*s:a-o*s}const Ra=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Da(t){const e=Ra.exec(t);if(!e)return[,];const[,n,s,i]=e;return[`--${n??s}`,i]}const ka=4;function Ji(t,e,n=1){exports.invariant(n<=ka,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[s,i]=Da(t);if(!s)return;const o=window.getComputedStyle(e).getPropertyValue(s);if(o){const r=o.trim();return hi(r)?parseFloat(r):r}return yn(i)?Ji(i,e,n+1):i}const La={type:"spring",stiffness:500,damping:25,restSpeed:10},Oa=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),Ia={type:"keyframes",duration:.8},Fa={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Ba=(t,{keyframes:e})=>e.length>2?Ia:kt.has(t)?t.startsWith("scale")?Oa(e[1]):La:Fa,ja=t=>t!==null;function Na(t,{repeat:e,repeatType:n="loop"},s){const i=t.filter(ja),o=e&&n!=="loop"&&e%2===1?0:i.length-1;return i[o]}function Qi(t,e){if(t?.inherit&&e){const{inherit:n,...s}=t;return{...e,...s}}return t}function Vn(t,e){const n=t?.[e]??t?.default??t;return n!==t?Qi(n,t):n}function _a({when:t,delay:e,delayChildren:n,staggerChildren:s,staggerDirection:i,repeat:o,repeatType:r,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length}const Cn=(t,e,n,s={},i,o)=>r=>{const a=Vn(s,t)||{},l=a.delay||s.delay||0;let{elapsed:c=0}=s;c=c-H(l);const u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-c,onUpdate:f=>{e.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{r(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:o?void 0:i};_a(a)||Object.assign(u,Ba(t,u)),u.duration&&(u.duration=H(u.duration)),u.repeatDelay&&(u.repeatDelay=H(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let h=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(Ze(u),u.delay===0&&(h=!0)),(at.instantAnimations||at.skipAnimations||i?.shouldSkipAnimations)&&(h=!0,Ze(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,h&&!o&&e.get()!==void 0){const f=Na(u.keyframes,a);if(f!==void 0){C.update(()=>{u.onUpdate(f),u.onComplete()});return}}return a.isSync?new bn(u):new Ma(u)};function as(t){const e=[{},{}];return t?.values.forEach((n,s)=>{e[0][s]=n.get(),e[1][s]=n.getVelocity()}),e}function Mn(t,e,n,s){if(typeof e=="function"){const[i,o]=as(s);e=e(n!==void 0?n:t.custom,i,o)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,o]=as(s);e=e(n!==void 0?n:t.custom,i,o)}return e}function Et(t,e,n){const s=t.getProps();return Mn(s,e,n!==void 0?n:s.custom,t)}const tr=new Set(["width","height","top","left","right","bottom",...Dt]),ls=30,Ua=t=>!isNaN(parseFloat(t)),Je={current:void 0};class Wa{constructor(e,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=s=>{const i=G.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=G.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Ua(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return process.env.NODE_ENV!=="production"&&mn(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new dn);const s=this.events[e].add(n);return e==="change"?()=>{s(),C.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,n,s){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-s}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return Je.current&&Je.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const e=G.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>ls)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,ls);return pi(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function yt(t,e){return new Wa(t,e)}const Qe=t=>Array.isArray(t);function $a(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,yt(n))}function Ka(t){return Qe(t)?t[t.length-1]||0:t}function Ga(t,e){const n=Et(t,e);let{transitionEnd:s={},transition:i={},...o}=n||{};o={...o,...s};for(const r in o){const a=Ka(o[r]);$a(t,r,a)}}const $=t=>!!(t&&t.getVelocity);function za(t){return!!($(t)&&t.add)}function tn(t,e){const n=t.getValue("willChange");if(za(n))return n.add(e);if(!n&&at.WillChange){const s=new at.WillChange("auto");t.addValue("willChange",s),s.add(e)}}function Rn(t){return t.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}const Ha="framerAppearId",er="data-"+Rn(Ha);function nr(t){return t.props[er]}function Ya({protectedKeys:t,needsAnimating:e},n){const s=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,s}function Dn(t,e,{delay:n=0,transitionOverride:s,type:i}={}){let{transition:o,transitionEnd:r,...a}=e;const l=t.getDefaultTransition();o=o?Qi(o,l):l;const c=o?.reduceMotion;s&&(o=s);const u=[],h=i&&t.animationState&&t.animationState.getState()[i];for(const f in a){const d=t.getValue(f,t.latestValues[f]??null),p=a[f];if(p===void 0||h&&Ya(h,f))continue;const g={delay:n,...Vn(o||{},f)},v=d.get();if(v!==void 0&&!d.isAnimating&&!Array.isArray(p)&&p===v&&!g.velocity)continue;let y=!1;if(window.MotionHandoffAnimation){const S=nr(t);if(S){const A=window.MotionHandoffAnimation(S,f,C);A!==null&&(g.startTime=A,y=!0)}}tn(t,f);const x=c??t.shouldReduceMotion;d.start(Cn(f,d,p,x&&tr.has(f)?{type:!1}:g,t,y));const T=d.animation;T&&u.push(T)}if(r){const f=()=>C.update(()=>{r&&Ga(t,r)});u.length?Promise.all(u).then(f):f()}return u}function en(t,e,n={}){const s=Et(t,e,n.type==="exit"?t.presenceContext?.custom:void 0);let{transition:i=t.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(i=n.transitionOverride);const o=s?()=>Promise.all(Dn(t,s,n)):()=>Promise.resolve(),r=t.variantChildren&&t.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:u,staggerDirection:h}=i;return Xa(t,e,l,c,u,h,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[l,c]=a==="beforeChildren"?[o,r]:[r,o];return l().then(()=>c())}else return Promise.all([o(),r(n.delay)])}function Xa(t,e,n=0,s=0,i=0,o=1,r){const a=[];for(const l of t.variantChildren)l.notify("AnimationStart",e),a.push(en(l,e,{...r,delay:n+(typeof s=="function"?0:s)+Zi(t.variantChildren,l,s,i,o)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(a)}function qa(t,e,n={}){t.notify("AnimationStart",e);let s;if(Array.isArray(e)){const i=e.map(o=>en(t,o,n));s=Promise.all(i)}else if(typeof e=="string")s=en(t,e,n);else{const i=typeof e=="function"?Et(t,e,n.custom):e;s=Promise.all(Dn(t,i,n))}return s.then(()=>{t.notify("AnimationComplete",e)})}const Za={test:t=>t==="auto",parse:t=>t},sr=t=>e=>e.test(t),ir=[Rt,w,rt,ut,Vo,Eo,Za],us=t=>ir.find(sr(t));function Ja(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||di(t):!0}const Qa=new Set(["brightness","contrast","saturate","opacity"]);function tl(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[s]=n.match(vn)||[];if(!s)return t;const i=n.replace(s,"");let o=Qa.has(e)?1:0;return s!==n&&(o*=100),e+"("+o+i+")"}const el=/\b([a-z-]*)\(.*?\)/gu,nn={...et,getAnimatableNone:t=>{const e=t.match(el);return e?e.map(tl).join(" "):t}},sn={...et,getAnimatableNone:t=>{const e=et.parse(t);return et.createTransformer(t)(e.map(s=>typeof s=="number"?0:typeof s=="object"?{...s,alpha:1}:s))}},cs={...Rt,transform:Math.round},nl={rotate:ut,rotateX:ut,rotateY:ut,rotateZ:ut,scale:Jt,scaleX:Jt,scaleY:Jt,scaleZ:Jt,skew:ut,skewX:ut,skewY:ut,distance:w,translateX:w,translateY:w,translateZ:w,x:w,y:w,z:w,perspective:w,transformPerspective:w,opacity:Ut,originX:qn,originY:qn,originZ:w},kn={borderWidth:w,borderTopWidth:w,borderRightWidth:w,borderBottomWidth:w,borderLeftWidth:w,borderRadius:w,borderTopLeftRadius:w,borderTopRightRadius:w,borderBottomRightRadius:w,borderBottomLeftRadius:w,width:w,maxWidth:w,height:w,maxHeight:w,top:w,right:w,bottom:w,left:w,inset:w,insetBlock:w,insetBlockStart:w,insetBlockEnd:w,insetInline:w,insetInlineStart:w,insetInlineEnd:w,padding:w,paddingTop:w,paddingRight:w,paddingBottom:w,paddingLeft:w,paddingBlock:w,paddingBlockStart:w,paddingBlockEnd:w,paddingInline:w,paddingInlineStart:w,paddingInlineEnd:w,margin:w,marginTop:w,marginRight:w,marginBottom:w,marginLeft:w,marginBlock:w,marginBlockStart:w,marginBlockEnd:w,marginInline:w,marginInlineStart:w,marginInlineEnd:w,fontSize:w,backgroundPositionX:w,backgroundPositionY:w,...nl,zIndex:cs,fillOpacity:Ut,strokeOpacity:Ut,numOctaves:cs},sl={...kn,color:B,backgroundColor:B,outlineColor:B,fill:B,stroke:B,borderColor:B,borderTopColor:B,borderRightColor:B,borderBottomColor:B,borderLeftColor:B,filter:nn,WebkitFilter:nn,mask:sn,WebkitMask:sn},rr=t=>sl[t],il=new Set([nn,sn]);function or(t,e){let n=rr(t);return il.has(n)||(n=et),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const rl=new Set(["auto","none","0"]);function ol(t,e,n){let s=0,i;for(;s<t.length&&!i;){const o=t[s];typeof o=="string"&&!rl.has(o)&&Ct(o).values.length&&(i=t[s]),s++}if(i&&n)for(const o of e)t[o]=or(n,i)}class al extends An{constructor(e,n,s,i,o){super(e,n,s,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:s}=this;if(!n||!n.current)return;super.readKeyframes();for(let u=0;u<e.length;u++){let h=e[u];if(typeof h=="string"&&(h=h.trim(),yn(h))){const f=Ji(h,n.current);f!==void 0&&(e[u]=f),u===e.length-1&&(this.finalKeyframe=h)}}if(this.resolveNoneKeyframes(),!tr.has(s)||e.length!==2)return;const[i,o]=e,r=us(i),a=us(o),l=Xn(i),c=Xn(o);if(l!==c&&ct[s]){this.needsMeasurement=!0;return}if(r!==a)if(is(r)&&is(a))for(let u=0;u<e.length;u++){const h=e[u];typeof h=="string"&&(e[u]=parseFloat(h))}else ct[s]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,s=[];for(let i=0;i<e.length;i++)(e[i]===null||Ja(e[i]))&&s.push(i);s.length&&ol(e,s,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:s}=this;if(!e||!e.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ct[s](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&e.getValue(s,i).jump(i,!1)}measureEndState(){const{element:e,name:n,unresolvedKeyframes:s}=this;if(!e||!e.current)return;const i=e.getValue(n);i&&i.jump(this.measuredOrigin,!1);const o=s.length-1,r=s[o];s[o]=ct[n](e.measureViewportBox(),window.getComputedStyle(e.current)),r!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEach(([a,l])=>{e.getValue(a).set(l)}),this.resolveNoneKeyframes()}}const ll=new Set(["opacity","clipPath","filter","transform"]);function Ln(t,e,n){if(t==null)return[];if(t instanceof EventTarget)return[t];if(typeof t=="string"){let s=document;e&&(s=e.current);const i=n?.[t]??s.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t).filter(s=>s!=null)}const ar=(t,e)=>e&&typeof t=="number"?e.transform(t):t;function lr(t){return fi(t)&&"offsetHeight"in t}const{schedule:On}=Vi(queueMicrotask,!1),tt={x:!1,y:!1};function ur(){return tt.x||tt.y}function ul(t){return t==="x"||t==="y"?tt[t]?null:(tt[t]=!0,()=>{tt[t]=!1}):tt.x||tt.y?null:(tt.x=tt.y=!0,()=>{tt.x=tt.y=!1})}function cr(t,e){const n=Ln(t),s=new AbortController,i={passive:!0,...e,signal:s.signal};return[n,i,()=>s.abort()]}function cl(t){return!(t.pointerType==="touch"||ur())}function hl(t,e,n={}){const[s,i,o]=cr(t,n);return s.forEach(r=>{let a=!1,l=!1,c;const u=()=>{r.removeEventListener("pointerleave",p)},h=v=>{c&&(c(v),c=void 0),u()},f=v=>{a=!1,window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",f),l&&(l=!1,h(v))},d=()=>{a=!0,window.addEventListener("pointerup",f,i),window.addEventListener("pointercancel",f,i)},p=v=>{if(v.pointerType!=="touch"){if(a){l=!0;return}h(v)}},g=v=>{if(!cl(v))return;l=!1;const y=e(r,v);typeof y=="function"&&(c=y,r.addEventListener("pointerleave",p,i))};r.addEventListener("pointerenter",g,i),r.addEventListener("pointerdown",d,i)}),o}const hr=(t,e)=>e?t===e?!0:hr(t,e.parentElement):!1,In=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,fl=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function dl(t){return fl.has(t.tagName)||t.isContentEditable===!0}const ml=new Set(["INPUT","SELECT","TEXTAREA"]);function pl(t){return ml.has(t.tagName)||t.isContentEditable===!0}const ne=new WeakSet;function hs(t){return e=>{e.key==="Enter"&&t(e)}}function Me(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const gl=(t,e)=>{const n=t.currentTarget;if(!n)return;const s=hs(()=>{if(ne.has(n))return;Me(n,"down");const i=hs(()=>{Me(n,"up")}),o=()=>Me(n,"cancel");n.addEventListener("keyup",i,e),n.addEventListener("blur",o,e)});n.addEventListener("keydown",s,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",s),e)};function fs(t){return In(t)&&!ur()}const ds=new WeakSet;function yl(t,e,n={}){const[s,i,o]=cr(t,n),r=a=>{const l=a.currentTarget;if(!fs(a)||ds.has(a))return;ne.add(l),n.stopPropagation&&ds.add(a);const c=e(l,a),u=(d,p)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",f),ne.has(l)&&ne.delete(l),fs(d)&&typeof c=="function"&&c(d,{success:p})},h=d=>{u(d,l===window||l===document||n.useGlobalTarget||hr(l,d.target))},f=d=>{u(d,!1)};window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",f,i)};return s.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",r,i),lr(a)&&(a.addEventListener("focus",c=>gl(c,i)),!dl(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),o}function ge(t){return fi(t)&&"ownerSVGElement"in t}const se=new WeakMap;let ie;const fr=(t,e,n)=>(s,i)=>i&&i[0]?i[0][t+"Size"]:ge(s)&&"getBBox"in s?s.getBBox()[e]:s[n],vl=fr("inline","width","offsetWidth"),Tl=fr("block","height","offsetHeight");function xl({target:t,borderBoxSize:e}){se.get(t)?.forEach(n=>{n(t,{get width(){return vl(t,e)},get height(){return Tl(t,e)}})})}function wl(t){t.forEach(xl)}function Sl(){typeof ResizeObserver>"u"||(ie=new ResizeObserver(wl))}function Pl(t,e){ie||Sl();const n=Ln(t);return n.forEach(s=>{let i=se.get(s);i||(i=new Set,se.set(s,i)),i.add(e),ie?.observe(s)}),()=>{n.forEach(s=>{const i=se.get(s);i?.delete(e),i?.size||ie?.unobserve(s)})}}const re=new Set;let St;function bl(){St=()=>{const t={get width(){return window.innerWidth},get height(){return window.innerHeight}};re.forEach(e=>e(t))},window.addEventListener("resize",St)}function Al(t){return re.add(t),St||bl(),()=>{re.delete(t),!re.size&&typeof St=="function"&&(window.removeEventListener("resize",St),St=void 0)}}function ms(t,e){return typeof t=="function"?Al(t):Pl(t,e)}function dr(t){return ge(t)&&t.tagName==="svg"}const El=[...ir,B,et],Vl=t=>El.find(sr(t)),ps=()=>({translate:0,scale:1,origin:0,originPoint:0}),Pt=()=>({x:ps(),y:ps()}),gs=()=>({min:0,max:0}),F=()=>({x:gs(),y:gs()}),mr=new WeakMap;function ye(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function $t(t){return typeof t=="string"||Array.isArray(t)}const Fn=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Bn=["initial",...Fn];function ve(t){return ye(t.animate)||Bn.some(e=>$t(t[e]))}function pr(t){return!!(ve(t)||t.variants)}function Cl(t,e,n){for(const s in e){const i=e[s],o=n[s];if($(i))t.addValue(s,i);else if($(o))t.addValue(s,yt(i,{owner:t}));else if(o!==i)if(t.hasValue(s)){const r=t.getValue(s);r.liveStyle===!0?r.jump(i):r.hasAnimated||r.set(i)}else{const r=t.getStaticValue(s);t.addValue(s,yt(r!==void 0?r:i,{owner:t}))}}for(const s in n)e[s]===void 0&&t.removeValue(s);return e}const rn={current:null},gr={current:!1},Ml=typeof window<"u";function Rl(){if(gr.current=!0,!!Ml)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>rn.current=t.matches;t.addEventListener("change",e),e()}else rn.current=!1}const ys=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let he={};function yr(t){he=t}function Dl(){return he}class vr{scrapeMotionValuesFromProps(e,n,s){return{}}constructor({parent:e,props:n,presenceContext:s,reducedMotionConfig:i,skipAnimations:o,blockInitialAnimation:r,visualState:a},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=An,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const d=G.now();this.renderScheduledAt<d&&(this.renderScheduledAt=d,C.render(this.render,!1,!0))};const{latestValues:c,renderState:u}=a;this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=u,this.parent=e,this.props=n,this.presenceContext=s,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.skipAnimationsConfig=o,this.options=l,this.blockInitialAnimation=!!r,this.isControllingVariants=ve(n),this.isVariantNode=pr(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:h,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const d in f){const p=f[d];c[d]!==void 0&&$(p)&&p.set(c[d])}}mount(e){if(this.hasBeenMounted)for(const n in this.initialValues)this.values.get(n)?.jump(this.initialValues[n]),this.latestValues[n]=this.initialValues[n];this.current=e,mr.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,s)=>this.bindToMotionValue(s,n)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(gr.current||Rl(),this.shouldReduceMotion=rn.current),process.env.NODE_ENV!=="production"&&mn(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}unmount(){this.projection&&this.projection.unmount(),lt(this.notifyUpdate),lt(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,n){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),n.accelerate&&ll.has(e)&&this.current instanceof HTMLElement){const{factory:r,keyframes:a,times:l,ease:c,duration:u}=n.accelerate,h=new Xi({element:this.current,name:e,keyframes:a,times:l,ease:c,duration:H(u)}),f=r(h);this.valueSubscriptions.set(e,()=>{f(),h.cancel()});return}const s=kt.has(e);s&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",r=>{this.latestValues[e]=r,this.props.onUpdate&&C.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let o;typeof window<"u"&&window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{i(),o&&o(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in he){const n=he[e];if(!n)continue;const{isEnabled:s,Feature:i}=n;if(!this.features[e]&&i&&s(this.props)&&(this.features[e]=new i(this)),this.features[e]){const o=this.features[e];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):F()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let s=0;s<ys.length;s++){const i=ys[s];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,r=e[o];r&&(this.propEventSubscriptions[i]=this.on(i,r))}this.prevMotionValues=Cl(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const s=this.values.get(e);n!==s&&(s&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let s=this.values.get(e);return s===void 0&&n!==void 0&&(s=yt(n===null?void 0:n,{owner:this}),this.addValue(e,s)),s}readValue(e,n){let s=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return s!=null&&(typeof s=="string"&&(hi(s)||di(s))?s=parseFloat(s):!Vl(s)&&et.test(n)&&(s=or(e,n)),this.setBaseTarget(e,$(s)?s.get():s)),$(s)?s.get():s}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){const{initial:n}=this.props;let s;if(typeof n=="string"||typeof n=="object"){const o=Mn(this.props,n,this.presenceContext?.custom);o&&(s=o[e])}if(n&&s!==void 0)return s;const i=this.getBaseTargetFromProps(this.props,e);return i!==void 0&&!$(i)?i:this.initialValues[e]!==void 0&&s===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new dn),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}scheduleRenderMicrotask(){On.render(this.render)}}class Tr extends vr{constructor(){super(...arguments),this.KeyframeResolver=al}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){const s=e.style;return s?s[n]:void 0}removeValueFromRenderState(e,{vars:n,style:s}){delete n[e],delete s[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;$(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class ht{constructor(e){this.isMounted=!1,this.node=e}update(){}}function xr({top:t,left:e,right:n,bottom:s}){return{x:{min:e,max:n},y:{min:t,max:s}}}function kl({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function Ll(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function Re(t){return t===void 0||t===1}function on({scale:t,scaleX:e,scaleY:n}){return!Re(t)||!Re(e)||!Re(n)}function dt(t){return on(t)||wr(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function wr(t){return vs(t.x)||vs(t.y)}function vs(t){return t&&t!=="0%"}function fe(t,e,n){const s=t-n,i=e*s;return n+i}function Ts(t,e,n,s,i){return i!==void 0&&(t=fe(t,i,s)),fe(t,n,s)+e}function an(t,e=0,n=1,s,i){t.min=Ts(t.min,e,n,s,i),t.max=Ts(t.max,e,n,s,i)}function Sr(t,{x:e,y:n}){an(t.x,e.translate,e.scale,e.originPoint),an(t.y,n.translate,n.scale,n.originPoint)}const xs=.999999999999,ws=1.0000000000001;function Ol(t,e,n,s=!1){const i=n.length;if(!i)return;e.x=e.y=1;let o,r;for(let a=0;a<i;a++){o=n[a],r=o.projectionDelta;const{visualElement:l}=o.options;l&&l.props.style&&l.props.style.display==="contents"||(s&&o.options.layoutScroll&&o.scroll&&o!==o.root&&At(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),r&&(e.x*=r.x.scale,e.y*=r.y.scale,Sr(t,r)),s&&dt(o.latestValues)&&At(t,o.latestValues,o.layout?.layoutBox))}e.x<ws&&e.x>xs&&(e.x=1),e.y<ws&&e.y>xs&&(e.y=1)}function bt(t,e){t.min=t.min+e,t.max=t.max+e}function Ss(t,e,n,s,i=.5){const o=M(t.min,t.max,i);an(t,e,n,o,s)}function Ps(t,e){return typeof t=="string"?parseFloat(t)/100*(e.max-e.min):t}function At(t,e,n){const s=n??t;Ss(t.x,Ps(e.x,s.x),e.scaleX,e.scale,e.originX),Ss(t.y,Ps(e.y,s.y),e.scaleY,e.scale,e.originY)}function Pr(t,e){return xr(Ll(t.getBoundingClientRect(),e))}function Il(t,e,n){const s=Pr(t,n),{scroll:i}=e;return i&&(bt(s.x,i.offset.x),bt(s.y,i.offset.y)),s}const Fl={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Bl=Dt.length;function jl(t,e,n){let s="",i=!0;for(let o=0;o<Bl;o++){const r=Dt[o],a=t[r];if(a===void 0)continue;let l=!0;if(typeof a=="number")l=a===(r.startsWith("scale")?1:0);else{const c=parseFloat(a);l=r.startsWith("scale")?c===1:c===0}if(!l||n){const c=ar(a,kn[r]);if(!l){i=!1;const u=Fl[r]||r;s+=`${u}(${c}) `}n&&(e[r]=c)}}return s=s.trim(),n?s=n(e,i?"":s):i&&(s="none"),s}function jn(t,e,n){const{style:s,vars:i,transformOrigin:o}=t;let r=!1,a=!1;for(const l in e){const c=e[l];if(kt.has(l)){r=!0;continue}else if(Mi(l)){i[l]=c;continue}else{const u=ar(c,kn[l]);l.startsWith("origin")?(a=!0,o[l]=u):s[l]=u}}if(e.transform||(r||n?s.transform=jl(e,t.transform,n):s.transform&&(s.transform="none")),a){const{originX:l="50%",originY:c="50%",originZ:u=0}=o;s.transformOrigin=`${l} ${c} ${u}`}}function br(t,{style:e,vars:n},s,i){const o=t.style;let r;for(r in e)o[r]=e[r];i?.applyProjectionStyles(o,s);for(r in n)o.setProperty(r,n[r])}function bs(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const It={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(w.test(t))t=parseFloat(t);else return t;const n=bs(t,e.target.x),s=bs(t,e.target.y);return`${n}% ${s}%`}},Nl={correct:(t,{treeScale:e,projectionDelta:n})=>{const s=t,i=et.parse(t);if(i.length>5)return s;const o=et.createTransformer(t),r=typeof i[0]!="number"?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;i[0+r]/=a,i[1+r]/=l;const c=M(a,l,.5);return typeof i[2+r]=="number"&&(i[2+r]/=c),typeof i[3+r]=="number"&&(i[3+r]/=c),o(i)}},ln={borderRadius:{...It,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:It,borderTopRightRadius:It,borderBottomLeftRadius:It,borderBottomRightRadius:It,boxShadow:Nl};function Ar(t,{layout:e,layoutId:n}){return kt.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!ln[t]||t==="opacity")}function Nn(t,e,n){const s=t.style,i=e?.style,o={};if(!s)return o;for(const r in s)($(s[r])||i&&$(i[r])||Ar(r,t)||n?.getValue(r)?.liveStyle!==void 0)&&(o[r]=s[r]);return o}function _l(t){return window.getComputedStyle(t)}class Er extends Tr{constructor(){super(...arguments),this.type="html",this.renderInstance=br}readValueFromInstance(e,n){if(kt.has(n))return this.projection?.isProjecting?ze(n):ua(e,n);{const s=_l(e),i=(Mi(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return Pr(e,n)}build(e,n,s){jn(e,n,s.transformTemplate)}scrapeMotionValuesFromProps(e,n,s){return Nn(e,n,s)}}const Ul={offset:"stroke-dashoffset",array:"stroke-dasharray"},Wl={offset:"strokeDashoffset",array:"strokeDasharray"};function $l(t,e,n=1,s=0,i=!0){t.pathLength=1;const o=i?Ul:Wl;t[o.offset]=`${-s}`,t[o.array]=`${e} ${n}`}const Kl=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Vr(t,{attrX:e,attrY:n,attrScale:s,pathLength:i,pathSpacing:o=1,pathOffset:r=0,...a},l,c,u){if(jn(t,a,c),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:h,style:f}=t;h.transform&&(f.transform=h.transform,delete h.transform),(f.transform||h.transformOrigin)&&(f.transformOrigin=h.transformOrigin??"50% 50%",delete h.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??"fill-box",delete h.transformBox);for(const d of Kl)h[d]!==void 0&&(f[d]=h[d],delete h[d]);e!==void 0&&(h.x=e),n!==void 0&&(h.y=n),s!==void 0&&(h.scale=s),i!==void 0&&$l(h,i,o,r,!1)}const Cr=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),Mr=t=>typeof t=="string"&&t.toLowerCase()==="svg";function Gl(t,e,n,s){br(t,e,void 0,s);for(const i in e.attrs)t.setAttribute(Cr.has(i)?i:Rn(i),e.attrs[i])}function Rr(t,e,n){const s=Nn(t,e,n);for(const i in t)if($(t[i])||$(e[i])){const o=Dt.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;s[o]=t[i]}return s}class Dr extends Tr{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=F}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(kt.has(n)){const s=rr(n);return s&&s.default||0}return n=Cr.has(n)?n:Rn(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,s){return Rr(e,n,s)}build(e,n,s){Vr(e,n,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(e,n,s,i){Gl(e,n,s,i)}mount(e){this.isSVGTag=Mr(e.tagName),super.mount(e)}}const zl=Bn.length;function kr(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?kr(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<zl;n++){const s=Bn[n],i=t.props[s];($t(i)||i===!1)&&(e[s]=i)}return e}function Lr(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let s=0;s<n;s++)if(e[s]!==t[s])return!1;return!0}const Hl=[...Fn].reverse(),Yl=Fn.length;function Xl(t){return e=>Promise.all(e.map(({animation:n,options:s})=>qa(t,n,s)))}function ql(t){let e=Xl(t),n=As(),s=!0,i=!1;const o=c=>(u,h)=>{const f=Et(t,h,c==="exit"?t.presenceContext?.custom:void 0);if(f){const{transition:d,transitionEnd:p,...g}=f;u={...u,...g,...p}}return u};function r(c){e=c(t)}function a(c){const{props:u}=t,h=kr(t.parent)||{},f=[],d=new Set;let p={},g=1/0;for(let y=0;y<Yl;y++){const x=Hl[y],T=n[x],S=u[x]!==void 0?u[x]:h[x],A=$t(S),L=x===c?T.isActive:null;L===!1&&(g=y);let _=S===h[x]&&S!==u[x]&&A;if(_&&(s||i)&&t.manuallyAnimateOnMount&&(_=!1),T.protectedKeys={...p},!T.isActive&&L===null||!S&&!T.prevProp||ye(S)||typeof S=="boolean")continue;if(x==="exit"&&T.isActive&&L!==!0){T.prevResolvedValues&&(p={...p,...T.prevResolvedValues});continue}const V=Zl(T.prevProp,S);let O=V||x===c&&T.isActive&&!_&&A||y>g&&A,b=!1;const D=Array.isArray(S)?S:[S];let U=D.reduce(o(x),{});L===!1&&(U={});const{prevResolvedValues:nt={}}=T,q={...nt,...U},Y=I=>{O=!0,d.has(I)&&(b=!0,d.delete(I)),T.needsAnimating[I]=!0;const K=t.getValue(I);K&&(K.liveStyle=!1)};for(const I in q){const K=U[I],st=nt[I];if(p.hasOwnProperty(I))continue;let m=!1;Qe(K)&&Qe(st)?m=!Lr(K,st):m=K!==st,m?K!=null?Y(I):d.add(I):K!==void 0&&d.has(I)?Y(I):T.protectedKeys[I]=!0}T.prevProp=S,T.prevResolvedValues=U,T.isActive&&(p={...p,...U}),(s||i)&&t.blockInitialAnimation&&(O=!1);const X=_&&V;O&&(!X||b)&&f.push(...D.map(I=>{const K={type:x};if(typeof I=="string"&&(s||i)&&!X&&t.manuallyAnimateOnMount&&t.parent){const{parent:st}=t,m=Et(st,I);if(st.enteringChildren&&m){const{delayChildren:E}=m.transition||{};K.delay=Zi(st.enteringChildren,t,E)}}return{animation:I,options:K}}))}if(d.size){const y={};if(typeof u.initial!="boolean"){const x=Et(t,Array.isArray(u.initial)?u.initial[0]:u.initial);x&&x.transition&&(y.transition=x.transition)}d.forEach(x=>{const T=t.getBaseTarget(x),S=t.getValue(x);S&&(S.liveStyle=!0),y[x]=T??null}),f.push({animation:y})}let v=!!f.length;return s&&(u.initial===!1||u.initial===u.animate)&&!t.manuallyAnimateOnMount&&(v=!1),s=!1,i=!1,v?e(f):Promise.resolve()}function l(c,u){if(n[c].isActive===u)return Promise.resolve();t.variantChildren?.forEach(f=>f.animationState?.setActive(c,u)),n[c].isActive=u;const h=a(c);for(const f in n)n[f].protectedKeys={};return h}return{animateChanges:a,setActive:l,setAnimateFunction:r,getState:()=>n,reset:()=>{n=As(),i=!0}}}function Zl(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!Lr(e,t):!1}function ft(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function As(){return{animate:ft(!0),whileInView:ft(),whileHover:ft(),whileTap:ft(),whileDrag:ft(),whileFocus:ft(),exit:ft()}}function Es(t,e){t.min=e.min,t.max=e.max}function Q(t,e){Es(t.x,e.x),Es(t.y,e.y)}function Vs(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}const Or=1e-4,Jl=1-Or,Ql=1+Or,Ir=.01,tu=0-Ir,eu=0+Ir;function z(t){return t.max-t.min}function nu(t,e,n){return Math.abs(t-e)<=n}function Cs(t,e,n,s=.5){t.origin=s,t.originPoint=M(e.min,e.max,t.origin),t.scale=z(n)/z(e),t.translate=M(n.min,n.max,t.origin)-t.originPoint,(t.scale>=Jl&&t.scale<=Ql||isNaN(t.scale))&&(t.scale=1),(t.translate>=tu&&t.translate<=eu||isNaN(t.translate))&&(t.translate=0)}function jt(t,e,n,s){Cs(t.x,e.x,n.x,s?s.originX:void 0),Cs(t.y,e.y,n.y,s?s.originY:void 0)}function Ms(t,e,n){t.min=n.min+e.min,t.max=t.min+z(e)}function su(t,e,n){Ms(t.x,e.x,n.x),Ms(t.y,e.y,n.y)}function Rs(t,e,n){t.min=e.min-n.min,t.max=t.min+z(e)}function de(t,e,n){Rs(t.x,e.x,n.x),Rs(t.y,e.y,n.y)}function Ds(t,e,n,s,i){return t-=e,t=fe(t,1/n,s),i!==void 0&&(t=fe(t,1/i,s)),t}function iu(t,e=0,n=1,s=.5,i,o=t,r=t){if(rt.test(e)&&(e=parseFloat(e),e=M(r.min,r.max,e/100)-r.min),typeof e!="number")return;let a=M(o.min,o.max,s);t===o&&(a-=e),t.min=Ds(t.min,e,n,a,i),t.max=Ds(t.max,e,n,a,i)}function ks(t,e,[n,s,i],o,r){iu(t,e[n],e[s],e[i],e.scale,o,r)}const ru=["x","scaleX","originX"],ou=["y","scaleY","originY"];function Ls(t,e,n,s){ks(t.x,e,ru,n?n.x:void 0,s?s.x:void 0),ks(t.y,e,ou,n?n.y:void 0,s?s.y:void 0)}function Os(t){return t.translate===0&&t.scale===1}function Fr(t){return Os(t.x)&&Os(t.y)}function Is(t,e){return t.min===e.min&&t.max===e.max}function au(t,e){return Is(t.x,e.x)&&Is(t.y,e.y)}function Fs(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function Br(t,e){return Fs(t.x,e.x)&&Fs(t.y,e.y)}function Bs(t){return z(t.x)/z(t.y)}function js(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}function it(t){return[t("x"),t("y")]}function lu(t,e,n){let s="";const i=t.x.translate/e.x,o=t.y.translate/e.y,r=n?.z||0;if((i||o||r)&&(s=`translate3d(${i}px, ${o}px, ${r}px) `),(e.x!==1||e.y!==1)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:c,rotate:u,rotateX:h,rotateY:f,skewX:d,skewY:p}=n;c&&(s=`perspective(${c}px) ${s}`),u&&(s+=`rotate(${u}deg) `),h&&(s+=`rotateX(${h}deg) `),f&&(s+=`rotateY(${f}deg) `),d&&(s+=`skewX(${d}deg) `),p&&(s+=`skewY(${p}deg) `)}const a=t.x.scale*e.x,l=t.y.scale*e.y;return(a!==1||l!==1)&&(s+=`scale(${a}, ${l})`),s||"none"}const jr=["TopLeft","TopRight","BottomLeft","BottomRight"],uu=jr.length,Ns=t=>typeof t=="string"?parseFloat(t):t,_s=t=>typeof t=="number"||w.test(t);function cu(t,e,n,s,i,o){i?(t.opacity=M(0,n.opacity??1,hu(s)),t.opacityExit=M(e.opacity??1,0,fu(s))):o&&(t.opacity=M(e.opacity??1,n.opacity??1,s));for(let r=0;r<uu;r++){const a=`border${jr[r]}Radius`;let l=Us(e,a),c=Us(n,a);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||_s(l)===_s(c)?(t[a]=Math.max(M(Ns(l),Ns(c),s),0),(rt.test(c)||rt.test(l))&&(t[a]+="%")):t[a]=c}(e.rotate||n.rotate)&&(t.rotate=M(e.rotate||0,n.rotate||0,s))}function Us(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const hu=Nr(0,.5,Si),fu=Nr(.5,.95,J);function Nr(t,e,n){return s=>s<t?0:s>e?1:n(Vt(t,e,s))}function _r(t,e,n){const s=$(t)?t:yt(t);return s.start(Cn("",s,e,n)),s.animation}function Kt(t,e,n,s={passive:!0}){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n)}const du=(t,e)=>t.depth-e.depth;class mu{constructor(){this.children=[],this.isDirty=!1}add(e){fn(this.children,e),this.isDirty=!0}remove(e){_t(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(du),this.isDirty=!1,this.children.forEach(e)}}function pu(t,e){const n=G.now(),s=({timestamp:i})=>{const o=i-n;o>=e&&(lt(s),t(o-e))};return C.setup(s,!0),()=>lt(s)}function oe(t){return $(t)?t.get():t}class gu{constructor(){this.members=[]}add(e){fn(this.members,e);for(let n=this.members.length-1;n>=0;n--){const s=this.members[n];if(s===e||s===this.lead||s===this.prevLead)continue;const i=s.instance;(!i||i.isConnected===!1)&&!s.snapshot&&(_t(this.members,s),s.unmount())}e.scheduleRender()}remove(e){if(_t(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){for(let n=this.members.indexOf(e)-1;n>=0;n--){const s=this.members[n];if(s.isPresent!==!1&&s.instance?.isConnected!==!1)return this.promote(s),!0}return!1}promote(e,n){const s=this.lead;if(e!==s&&(this.prevLead=s,this.lead=e,e.show(),s)){s.updateSnapshot(),e.scheduleRender();const{layoutDependency:i}=s.options,{layoutDependency:o}=e.options;(i===void 0||i!==o)&&(e.resumeFrom=s,n&&(s.preserveOpacity=!0),s.snapshot&&(e.snapshot=s.snapshot,e.snapshot.latestValues=s.animationValues||s.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}const ae={hasAnimatedSinceResize:!0,hasEverUpdated:!1},De=["","X","Y","Z"],yu=1e3;let vu=0;function ke(t,e,n,s){const{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),s&&(s[t]=0))}function Ur(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=nr(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",C,!(i||o))}const{parent:s}=t;s&&!s.hasCheckedOptimisedAppear&&Ur(s)}function Wr({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:s,resetTransform:i}){return class{constructor(r={},a=e?.()){this.id=vu++,this.animationId=0,this.animationCommitId=0,this.children=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={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(wu),this.nodes.forEach(Au),this.nodes.forEach(Eu),this.nodes.forEach(Su)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=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;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new mu)}addEventListener(r,a){return this.eventHandlers.has(r)||this.eventHandlers.set(r,new dn),this.eventHandlers.get(r).add(a)}notifyListeners(r,...a){const l=this.eventHandlers.get(r);l&&l.notify(...a)}hasListeners(r){return this.eventHandlers.has(r)}mount(r){if(this.instance)return;this.isSVG=ge(r)&&!dr(r),this.instance=r;const{layoutId:a,layout:l,visualElement:c}=this.options;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){let u,h=0;const f=()=>this.root.updateBlockedByResize=!1;C.read(()=>{h=window.innerWidth}),t(r,()=>{const d=window.innerWidth;d!==h&&(h=d,this.root.updateBlockedByResize=!0,u&&u(),u=pu(f,250),ae.hasAnimatedSinceResize&&(ae.hasAnimatedSinceResize=!1,this.nodes.forEach(Ks)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&c&&(a||l)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:h,hasRelativeLayoutChanged:f,layout:d})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||c.getDefaultTransition()||Du,{onLayoutAnimationStart:g,onLayoutAnimationComplete:v}=c.getProps(),y=!this.targetLayout||!Br(this.targetLayout,d),x=!h&&f;if(this.options.layoutRoot||this.resumeFrom||x||h&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const T={...Vn(p,"layout"),onPlay:g,onComplete:v};(c.shouldReduceMotion||this.options.layoutRoot)&&(T.delay=0,T.type=!1),this.startAnimation(T),this.setAnimationOrigin(u,x)}else h||Ks(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=d})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const r=this.getStack();r&&r.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),lt(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Vu),this.animationId++)}getTransformTemplate(){const{visualElement:r}=this.options;return r&&r.getProps().transformTemplate}willUpdate(r=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Ur(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const h=this.path[u];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)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),r&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Ws);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach($s);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(bu),this.nodes.forEach(Tu),this.nodes.forEach(xu)):this.nodes.forEach($s),this.clearAllSnapshots();const a=G.now();W.delta=ot(0,1e3/60,a-W.timestamp),W.timestamp=a,W.isProcessing=!0,Pe.update.process(W),Pe.preRender.process(W),Pe.render.process(W),W.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,On.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Pu),this.sharedNodes.forEach(Cu)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,C.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){C.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!z(this.snapshot.measuredBox.x)&&!z(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const r=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=F(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,r?r.layoutBox:void 0)}updateScroll(r="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===r&&(a=!1),a&&this.instance){const l=s(this.instance);this.scroll={animationId:this.root.animationId,phase:r,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const r=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!Fr(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,u=c!==this.prevTransformTemplateValue;r&&this.instance&&(a||dt(this.latestValues)||u)&&(i(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(r=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return r&&(l=this.removeTransform(l)),ku(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:r}=this.options;if(!r)return F();const a=r.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Lu))){const{scroll:c}=this.root;c&&(bt(a.x,c.offset.x),bt(a.y,c.offset.y))}return a}removeElementScroll(r){const a=F();if(Q(a,r),this.scroll?.wasRoot)return a;for(let l=0;l<this.path.length;l++){const c=this.path[l],{scroll:u,options:h}=c;c!==this.root&&u&&h.layoutScroll&&(u.wasRoot&&Q(a,r),bt(a.x,u.offset.x),bt(a.y,u.offset.y))}return a}applyTransform(r,a=!1){const l=F();Q(l,r);for(let c=0;c<this.path.length;c++){const u=this.path[c];!a&&u.options.layoutScroll&&u.scroll&&u!==u.root&&At(l,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),dt(u.latestValues)&&At(l,u.latestValues,u.layout?.layoutBox)}return dt(this.latestValues)&&At(l,this.latestValues,this.layout?.layoutBox),l}removeTransform(r){const a=F();Q(a,r);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!dt(c.latestValues))continue;let u;c.instance&&(on(c.latestValues)&&c.updateSnapshot(),u=F(),Q(u,c.measurePageBox())),Ls(a,c.latestValues,c.snapshot?.layoutBox,u)}return dt(this.latestValues)&&Ls(a,this.latestValues),a}setTargetDelta(r){this.targetDelta=r,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(r){this.options={...this.options,...r,crossfade:r.crossfade!==void 0?r.crossfade:!0}}clearMeasurements(){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}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==W.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(r=!1){const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==a;if(!(r||l&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:u,layoutId:h}=this.options;if(!this.layout||!(u||h))return;this.resolvedRelativeTargetAt=W.timestamp;const f=this.getClosestProjectingParent();f&&this.linkedParentVersion!==f.layoutVersion&&!f.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(f&&f.layout?this.createRelativeTarget(f,this.layout.layoutBox,f.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=F(),this.targetWithTransforms=F()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),su(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Q(this.target,this.layout.layoutBox),Sr(this.target,this.targetDelta)):Q(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,f&&!!f.resumingFrom==!!this.resumingFrom&&!f.options.layoutScroll&&f.target&&this.animationProgress!==1?this.createRelativeTarget(f,this.target,f.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||on(this.parent.latestValues)||wr(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(r,a,l){this.relativeParent=r,this.linkedParentVersion=r.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=F(),this.relativeTargetOrigin=F(),de(this.relativeTargetOrigin,a,l),Q(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const r=this.getLead(),a=!!this.resumingFrom||this!==r;let l=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(l=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===W.timestamp&&(l=!1),l)return;const{layout:c,layoutId:u}=this.options;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;Q(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,f=this.treeScale.y;Ol(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=F());const{target:d}=r;if(!d){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Vs(this.prevProjectionDelta.x,this.projectionDelta.x),Vs(this.prevProjectionDelta.y,this.projectionDelta.y)),jt(this.projectionDelta,this.layoutCorrected,d,this.latestValues),(this.treeScale.x!==h||this.treeScale.y!==f||!js(this.projectionDelta.x,this.prevProjectionDelta.x)||!js(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",d))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(r=!0){if(this.options.visualElement?.scheduleRender(),r){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Pt(),this.projectionDelta=Pt(),this.projectionDeltaWithTransform=Pt()}setAnimationOrigin(r,a=!1){const l=this.snapshot,c=l?l.latestValues:{},u={...this.latestValues},h=Pt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const f=F(),d=l?l.source:void 0,p=this.layout?this.layout.source:void 0,g=d!==p,v=this.getStack(),y=!v||v.members.length<=1,x=!!(g&&!y&&this.options.crossfade===!0&&!this.path.some(Ru));this.animationProgress=0;let T;this.mixTargetDelta=S=>{const A=S/1e3;Gs(h.x,r.x,A),Gs(h.y,r.y,A),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(de(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Mu(this.relativeTarget,this.relativeTargetOrigin,f,A),T&&au(this.relativeTarget,T)&&(this.isProjectionDirty=!1),T||(T=F()),Q(T,this.relativeTarget)),g&&(this.animationValues=u,cu(u,c,this.latestValues,A,x,y)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=A},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(r){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(lt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=C.update(()=>{ae.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=yt(0)),this.motionValue.jump(0,!1),this.currentAnimation=_r(this.motionValue,[0,1e3],{...r,velocity:0,isSync:!0,onUpdate:a=>{this.mixTargetDelta(a),r.onUpdate&&r.onUpdate(a)},onStop:()=>{},onComplete:()=>{r.onComplete&&r.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const r=this.getStack();r&&r.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(yu),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const r=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:u}=r;if(!(!a||!l||!c)){if(this!==r&&this.layout&&c&&$r(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||F();const h=z(this.layout.layoutBox.x);l.x.min=r.target.x.min,l.x.max=l.x.min+h;const f=z(this.layout.layoutBox.y);l.y.min=r.target.y.min,l.y.max=l.y.min+f}Q(a,l),At(a,u),jt(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(r,a){this.sharedNodes.has(r)||this.sharedNodes.set(r,new gu),this.sharedNodes.get(r).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){const r=this.getStack();return r?r.lead===this:!0}getLead(){const{layoutId:r}=this.options;return r?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:r}=this.options;return r?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:r}=this.options;if(r)return this.root.sharedNodes.get(r)}promote({needsReset:r,transition:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),r&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const r=this.getStack();return r?r.relegate(this):!1}resetSkewAndRotation(){const{visualElement:r}=this.options;if(!r)return;let a=!1;const{latestValues:l}=r;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const c={};l.z&&ke("z",r,c,this.animationValues);for(let u=0;u<De.length;u++)ke(`rotate${De[u]}`,r,c,this.animationValues),ke(`skew${De[u]}`,r,c,this.animationValues);r.render();for(const u in c)r.setStaticValue(u,c[u]),this.animationValues&&(this.animationValues[u]=c[u]);r.scheduleRender()}applyProjectionStyles(r,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){r.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,r.visibility="",r.opacity="",r.pointerEvents=oe(a?.pointerEvents)||"",r.transform=l?l(this.latestValues,""):"none";return}const c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){this.options.layoutId&&(r.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,r.pointerEvents=oe(a?.pointerEvents)||""),this.hasProjected&&!dt(this.latestValues)&&(r.transform=l?l({},""):"none",this.hasProjected=!1);return}r.visibility="";const u=c.animationValues||c.latestValues;this.applyTransformsToTarget();let h=lu(this.projectionDeltaWithTransform,this.treeScale,u);l&&(h=l(u,h)),r.transform=h;const{x:f,y:d}=this.projectionDelta;r.transformOrigin=`${f.origin*100}% ${d.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;for(const p in ln){if(u[p]===void 0)continue;const{correct:g,applyTo:v,isCSSVariable:y}=ln[p],x=h==="none"?u[p]:g(u[p],c);if(v){const T=v.length;for(let S=0;S<T;S++)r[v[S]]=x}else y?this.options.visualElement.renderState.vars[p]=x:r[p]=x}this.options.layoutId&&(r.pointerEvents=c===this?oe(a?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(r=>r.currentAnimation?.stop()),this.root.nodes.forEach(Ws),this.root.sharedNodes.clear()}}}function Tu(t){t.updateLayout()}function xu(t){const e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:s}=t.layout,{animationType:i}=t.options,o=e.source!==t.layout.source;i==="size"?it(u=>{const h=o?e.measuredBox[u]:e.layoutBox[u],f=z(h);h.min=n[u].min,h.max=h.min+f}):$r(i,e.layoutBox,n)&&it(u=>{const h=o?e.measuredBox[u]:e.layoutBox[u],f=z(n[u]);h.max=h.min+f,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[u].max=t.relativeTarget[u].min+f)});const r=Pt();jt(r,n,e.layoutBox);const a=Pt();o?jt(a,t.applyTransform(s,!0),e.measuredBox):jt(a,n,e.layoutBox);const l=!Fr(r);let c=!1;if(!t.resumeFrom){const u=t.getClosestProjectingParent();if(u&&!u.resumeFrom){const{snapshot:h,layout:f}=u;if(h&&f){const d=F();de(d,e.layoutBox,h.layoutBox);const p=F();de(p,n,f.layoutBox),Br(d,p)||(c=!0),u.options.layoutRoot&&(t.relativeTarget=p,t.relativeTargetOrigin=d,t.relativeParent=u)}}}t.notifyListeners("didUpdate",{layout:n,snapshot:e,delta:a,layoutDelta:r,hasLayoutChanged:l,hasRelativeLayoutChanged:c})}else if(t.isLead()){const{onExitComplete:n}=t.options;n&&n()}t.options.transition=void 0}function wu(t){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))}function Su(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function Pu(t){t.clearSnapshot()}function Ws(t){t.clearMeasurements()}function $s(t){t.isLayoutDirty=!1}function bu(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Ks(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Au(t){t.resolveTargetDelta()}function Eu(t){t.calcProjection()}function Vu(t){t.resetSkewAndRotation()}function Cu(t){t.removeLeadSnapshot()}function Gs(t,e,n){t.translate=M(e.translate,0,n),t.scale=M(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function zs(t,e,n,s){t.min=M(e.min,n.min,s),t.max=M(e.max,n.max,s)}function Mu(t,e,n,s){zs(t.x,e.x,n.x,s),zs(t.y,e.y,n.y,s)}function Ru(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const Du={duration:.45,ease:[.4,0,.1,1]},Hs=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),Ys=Hs("applewebkit/")&&!Hs("chrome/")?Math.round:J;function Xs(t){t.min=Ys(t.min),t.max=Ys(t.max)}function ku(t){Xs(t.x),Xs(t.y)}function $r(t,e,n){return t==="position"||t==="preserve-aspect"&&!nu(Bs(e),Bs(n),.2)}function Lu(t){return t!==t.root&&t.scroll?.wasRoot}const Ou=Wr({attachResizeListener:(t,e)=>Kt(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Le={current:void 0},Kr=Wr({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Le.current){const t=new Ou({});t.mount(window),t.setOptions({layoutScroll:!0}),Le.current=t}return Le.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),_n=P.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function Gr(t=!0){const e=P.useContext(pe);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:s,register:i}=e,o=P.useId();P.useEffect(()=>{if(t)return i(o)},[t]);const r=P.useCallback(()=>t&&s&&s(o),[o,s,t]);return!n&&s?[!1,r]:[!0]}const zr=P.createContext({strict:!1}),qs={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let Zs=!1;function Iu(){if(Zs)return;const t={};for(const e in qs)t[e]={isEnabled:n=>qs[e].some(s=>!!n[s])};yr(t),Zs=!0}function Hr(){return Iu(),Dl()}function Fu(t){const e=Hr();for(const n in t)e[n]={...e[n],...t[n]};yr(e)}const Bu=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function me(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||Bu.has(t)}let Yr=t=>!me(t);function ju(t){typeof t=="function"&&(Yr=e=>e.startsWith("on")?!me(e):t(e))}try{ju(require("@emotion/is-prop-valid").default)}catch{}function Nu(t,e,n){const s={};for(const i in t)i==="values"&&typeof t.values=="object"||(Yr(i)||n===!0&&me(i)||!e&&!me(i)||t.draggable&&i.startsWith("onDrag"))&&(s[i]=t[i]);return s}const Te=P.createContext({});function _u(t,e){if(ve(t)){const{initial:n,animate:s}=t;return{initial:n===!1||$t(n)?n:void 0,animate:$t(s)?s:void 0}}return t.inherit!==!1?e:{}}function Uu(t){const{initial:e,animate:n}=_u(t,P.useContext(Te));return P.useMemo(()=>({initial:e,animate:n}),[Js(e),Js(n)])}function Js(t){return Array.isArray(t)?t.join(" "):t}const Un=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Xr(t,e,n){for(const s in e)!$(e[s])&&!Ar(s,n)&&(t[s]=e[s])}function Wu({transformTemplate:t},e){return P.useMemo(()=>{const n=Un();return jn(n,e,t),Object.assign({},n.vars,n.style)},[e])}function $u(t,e){const n=t.style||{},s={};return Xr(s,n,t),Object.assign(s,Wu(t,e)),s}function Ku(t,e){const n={},s=$u(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=s,n}const qr=()=>({...Un(),attrs:{}});function Gu(t,e,n,s){const i=P.useMemo(()=>{const o=qr();return Vr(o,e,Mr(s),t.transformTemplate,t.style),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};Xr(o,t.style,t),i.style={...o,...i.style}}return i}const zu=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Wn(t){return typeof t!="string"||t.includes("-")?!1:!!(zu.indexOf(t)>-1||/[A-Z]/u.test(t))}function Hu(t,e,n,{latestValues:s},i,o=!1,r){const l=(r??Wn(t)?Gu:Ku)(e,s,i,t),c=Nu(e,typeof t=="string",o),u=t!==P.Fragment?{...c,...l,ref:n}:{},{children:h}=e,f=P.useMemo(()=>$(h)?h.get():h,[h]);return P.createElement(t,{...u,children:f})}function Yu({scrapeMotionValuesFromProps:t,createRenderState:e},n,s,i){return{latestValues:Xu(n,s,i,t),renderState:e()}}function Xu(t,e,n,s){const i={},o=s(t,{});for(const f in o)i[f]=oe(o[f]);let{initial:r,animate:a}=t;const l=ve(t),c=pr(t);e&&c&&!l&&t.inherit!==!1&&(r===void 0&&(r=e.initial),a===void 0&&(a=e.animate));let u=n?n.initial===!1:!1;u=u||r===!1;const h=u?a:r;if(h&&typeof h!="boolean"&&!ye(h)){const f=Array.isArray(h)?h:[h];for(let d=0;d<f.length;d++){const p=Mn(t,f[d]);if(p){const{transitionEnd:g,transition:v,...y}=p;for(const x in y){let T=y[x];if(Array.isArray(T)){const S=u?T.length-1:0;T=T[S]}T!==null&&(i[x]=T)}for(const x in g)i[x]=g[x]}}}return i}const Zr=t=>(e,n)=>{const s=P.useContext(Te),i=P.useContext(pe),o=()=>Yu(t,e,s,i);return n?o():ui(o)},qu=Zr({scrapeMotionValuesFromProps:Nn,createRenderState:Un}),Zu=Zr({scrapeMotionValuesFromProps:Rr,createRenderState:qr}),Ju=Symbol.for("motionComponentSymbol");function Qu(t,e,n){const s=P.useRef(n);P.useInsertionEffect(()=>{s.current=n});const i=P.useRef(null);return P.useCallback(o=>{o&&t.onMount?.(o);const r=s.current;if(typeof r=="function")if(o){const a=r(o);typeof a=="function"&&(i.current=a)}else i.current?(i.current(),i.current=null):r(o);else r&&(r.current=o);e&&(o?e.mount(o):e.unmount())},[e])}const Jr=P.createContext({});function Tt(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function tc(t,e,n,s,i,o){const{visualElement:r}=P.useContext(Te),a=P.useContext(zr),l=P.useContext(pe),c=P.useContext(_n),u=c.reducedMotion,h=c.skipAnimations,f=P.useRef(null),d=P.useRef(!1);s=s||a.renderer,!f.current&&s&&(f.current=s(t,{visualState:e,parent:r,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:u,skipAnimations:h,isSVG:o}),d.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));const p=f.current,g=P.useContext(Jr);p&&!p.projection&&i&&(p.type==="html"||p.type==="svg")&&ec(f.current,n,i,g);const v=P.useRef(!1);P.useInsertionEffect(()=>{p&&v.current&&p.update(n,l)});const y=n[er],x=P.useRef(!!y&&typeof window<"u"&&!window.MotionHandoffIsComplete?.(y)&&window.MotionHasOptimisedAnimation?.(y));return ci(()=>{d.current=!0,p&&(v.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),p.scheduleRenderMicrotask(),x.current&&p.animationState&&p.animationState.animateChanges())}),P.useEffect(()=>{p&&(!x.current&&p.animationState&&p.animationState.animateChanges(),x.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(y)}),x.current=!1),p.enteringChildren=void 0)}),p}function ec(t,e,n,s){const{layoutId:i,layout:o,drag:r,dragConstraints:a,layoutScroll:l,layoutRoot:c,layoutCrossfade:u}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:Qr(t.parent)),t.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!r||a&&Tt(a),visualElement:t,animationType:typeof o=="string"?o:"both",initialPromotionConfig:s,crossfade:u,layoutScroll:l,layoutRoot:c})}function Qr(t){if(t)return t.options.allowProjection!==!1?t.projection:Qr(t.parent)}function Oe(t,{forwardMotionProps:e=!1,type:n}={},s,i){s&&Fu(s);const o=n?n==="svg":Wn(t),r=o?Zu:qu;function a(c,u){let h;const f={...P.useContext(_n),...c,layoutId:nc(c)},{isStatic:d}=f,p=Uu(c),g=r(c,d);if(!d&&typeof window<"u"){sc(f,s);const v=ic(f);h=v.MeasureLayout,p.visualElement=tc(t,g,f,i,v.ProjectionNode,o)}return le.jsxs(Te.Provider,{value:p,children:[h&&p.visualElement?le.jsx(h,{visualElement:p.visualElement,...f}):null,Hu(t,c,Qu(g,p.visualElement,u),g,d,e,o)]})}a.displayName=`motion.${typeof t=="string"?t:`create(${t.displayName??t.name??""})`}`;const l=P.forwardRef(a);return l[Ju]=t,l}function nc({layoutId:t}){const e=P.useContext(hn).id;return e&&t!==void 0?e+"-"+t:t}function sc(t,e){const n=P.useContext(zr).strict;if(process.env.NODE_ENV!=="production"&&e&&n){const s="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";t.ignoreStrict?Mt(!1,s,"lazy-strict-mode"):exports.invariant(!1,s,"lazy-strict-mode")}}function ic(t){const e=Hr(),{drag:n,layout:s}=e;if(!n&&!s)return{};const i={...n,...s};return{MeasureLayout:n?.isEnabled(t)||s?.isEnabled(t)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}function rc(t,e){if(typeof Proxy>"u")return Oe;const n=new Map,s=(o,r)=>Oe(o,r,t,e),i=(o,r)=>(process.env.NODE_ENV!=="production"&&mn(!1,"motion() is deprecated. Use motion.create() instead."),s(o,r));return new Proxy(i,{get:(o,r)=>r==="create"?s:(n.has(r)||n.set(r,Oe(r,void 0,t,e)),n.get(r))})}const oc=(t,e)=>e.isSVG??Wn(t)?new Dr(e):new Er(e,{allowProjection:t!==P.Fragment});class ac extends ht{constructor(e){super(e),e.animationState||(e.animationState=ql(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();ye(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let lc=0;class uc extends ht{constructor(){super(...arguments),this.id=lc++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===s)return;const i=this.node.animationState.setActive("exit",!e);n&&!e&&i.then(()=>{n(this.id)})}mount(){const{register:e,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),e&&(this.unmount=e(this.id))}unmount(){}}const cc={animation:{Feature:ac},exit:{Feature:uc}};function Yt(t){return{point:{x:t.pageX,y:t.pageY}}}const hc=t=>e=>In(e)&&t(e,Yt(e));function Nt(t,e,n,s){return Kt(t,e,hc(n),s)}const to=({current:t})=>t?t.ownerDocument.defaultView:null,Qs=(t,e)=>Math.abs(t-e);function fc(t,e){const n=Qs(t.x,e.x),s=Qs(t.y,e.y);return Math.sqrt(n**2+s**2)}const ti=new Set(["auto","scroll"]);class eo{constructor(e,n,{transformPagePoint:s,contextWindow:i=window,dragSnapToOrigin:o=!1,distanceThreshold:r=3,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=d=>{this.handleScroll(d.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Qt(this.lastRawMoveEventInfo,this.transformPagePoint));const d=Ie(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,g=fc(d.offset,{x:0,y:0})>=this.distanceThreshold;if(!p&&!g)return;const{point:v}=d,{timestamp:y}=W;this.history.push({...v,timestamp:y});const{onStart:x,onMove:T}=this.handlers;p||(x&&x(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),T&&T(this.lastMoveEvent,d)},this.handlePointerMove=(d,p)=>{this.lastMoveEvent=d,this.lastRawMoveEventInfo=p,this.lastMoveEventInfo=Qt(p,this.transformPagePoint),C.update(this.updatePoint,!0)},this.handlePointerUp=(d,p)=>{this.end();const{onEnd:g,onSessionEnd:v,resumeAnimation:y}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const x=Ie(d.type==="pointercancel"?this.lastMoveEventInfo:Qt(p,this.transformPagePoint),this.history);this.startEvent&&g&&g(d,x),v&&v(d,x)},!In(e))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=s,this.distanceThreshold=r,this.contextWindow=i||window;const l=Yt(e),c=Qt(l,this.transformPagePoint),{point:u}=c,{timestamp:h}=W;this.history=[{...u,timestamp:h}];const{onSessionStart:f}=n;f&&f(e,Ie(c,this.history)),this.removeListeners=Gt(Nt(this.contextWindow,"pointermove",this.handlePointerMove),Nt(this.contextWindow,"pointerup",this.handlePointerUp),Nt(this.contextWindow,"pointercancel",this.handlePointerUp)),a&&this.startScrollTracking(a)}startScrollTracking(e){let n=e.parentElement;for(;n;){const s=getComputedStyle(n);(ti.has(s.overflowX)||ti.has(s.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(e){const n=this.scrollPositions.get(e);if(!n)return;const s=e===window,i=s?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},o={x:i.x-n.x,y:i.y-n.y};o.x===0&&o.y===0||(s?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=o.x,this.lastMoveEventInfo.point.y+=o.y):this.history.length>0&&(this.history[0].x-=o.x,this.history[0].y-=o.y),this.scrollPositions.set(e,i),C.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),lt(this.updatePoint)}}function Qt(t,e){return e?{point:e(t.point)}:t}function ei(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Ie({point:t},e){return{point:t,delta:ei(t,no(e)),offset:ei(t,dc(e)),velocity:mc(e,.1)}}function dc(t){return t[0]}function no(t){return t[t.length-1]}function mc(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,s=null;const i=no(t);for(;n>=0&&(s=t[n],!(i.timestamp-s.timestamp>H(e)));)n--;if(!s)return{x:0,y:0};s===t[0]&&t.length>2&&i.timestamp-s.timestamp>H(e)*2&&(s=t[1]);const o=Z(i.timestamp-s.timestamp);if(o===0)return{x:0,y:0};const r={x:(i.x-s.x)/o,y:(i.y-s.y)/o};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}function pc(t,{min:e,max:n},s){return e!==void 0&&t<e?t=s?M(e,t,s.min):Math.max(t,e):n!==void 0&&t>n&&(t=s?M(n,t,s.max):Math.min(t,n)),t}function ni(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function gc(t,{top:e,left:n,bottom:s,right:i}){return{x:ni(t.x,n,i),y:ni(t.y,e,s)}}function si(t,e){let n=e.min-t.min,s=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,s]=[s,n]),{min:n,max:s}}function yc(t,e){return{x:si(t.x,e.x),y:si(t.y,e.y)}}function vc(t,e){let n=.5;const s=z(t),i=z(e);return i>s?n=Vt(e.min,e.max-s,t.min):s>i&&(n=Vt(t.min,t.max-i,e.min)),ot(0,1,n)}function Tc(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const un=.35;function xc(t=un){return t===!1?t=0:t===!0&&(t=un),{x:ii(t,"left","right"),y:ii(t,"top","bottom")}}function ii(t,e,n){return{min:ri(t,e),max:ri(t,n)}}function ri(t,e){return typeof t=="number"?t:t[e]||0}const wc=new WeakMap;class Sc{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=F(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:n=!1,distanceThreshold:s}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const o=h=>{n&&this.snapToCursor(Yt(h).point),this.stopAnimation()},r=(h,f)=>{const{drag:d,dragPropagation:p,onDragStart:g}=this.getProps();if(d&&!p&&(this.openDragLock&&this.openDragLock(),this.openDragLock=ul(d),!this.openDragLock))return;this.latestPointerEvent=h,this.latestPanInfo=f,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),it(y=>{let x=this.getAxisMotionValue(y).get()||0;if(rt.test(x)){const{projection:T}=this.visualElement;if(T&&T.layout){const S=T.layout.layoutBox[y];S&&(x=z(S)*(parseFloat(x)/100))}}this.originPoint[y]=x}),g&&C.update(()=>g(h,f),!1,!0),tn(this.visualElement,"transform");const{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},a=(h,f)=>{this.latestPointerEvent=h,this.latestPanInfo=f;const{dragPropagation:d,dragDirectionLock:p,onDirectionLock:g,onDrag:v}=this.getProps();if(!d&&!this.openDragLock)return;const{offset:y}=f;if(p&&this.currentDirection===null){this.currentDirection=bc(y),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",f.point,y),this.updateAxis("y",f.point,y),this.visualElement.render(),v&&C.update(()=>v(h,f),!1,!0)},l=(h,f)=>{this.latestPointerEvent=h,this.latestPanInfo=f,this.stop(h,f),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{const{dragSnapToOrigin:h}=this.getProps();(h||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:u}=this.getProps();this.panSession=new eo(e,{onSessionStart:o,onStart:r,onMove:a,onSessionEnd:l,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:s,contextWindow:to(this.visualElement),element:this.visualElement.current})}stop(e,n){const s=e||this.latestPointerEvent,i=n||this.latestPanInfo,o=this.isDragging;if(this.cancel(),!o||!i||!s)return;const{velocity:r}=i;this.startAnimation(r);const{onDragEnd:a}=this.getProps();a&&C.postRender(()=>a(s,i))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,n,s){const{drag:i}=this.getProps();if(!s||!te(e,i,this.currentDirection))return;const o=this.getAxisMotionValue(e);let r=this.originPoint[e]+s[e];this.constraints&&this.constraints[e]&&(r=pc(r,this.constraints[e],this.elastic[e])),o.set(r)}resolveConstraints(){const{dragConstraints:e,dragElastic:n}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,i=this.constraints;e&&Tt(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&s?this.constraints=gc(s.layoutBox,e):this.constraints=!1,this.elastic=xc(n),i!==this.constraints&&!Tt(e)&&s&&this.constraints&&!this.hasMutatedConstraints&&it(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=Tc(s.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!Tt(e))return!1;const s=e.current;exports.invariant(s!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=Il(s,i.root,this.visualElement.getTransformPagePoint());let r=yc(i.layout.layoutBox,o);if(n){const a=n(kl(r));this.hasMutatedConstraints=!!a,a&&(r=xr(a))}return r}startAnimation(e){const{drag:n,dragMomentum:s,dragElastic:i,dragTransition:o,dragSnapToOrigin:r,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=it(u=>{if(!te(u,n,this.currentDirection))return;let h=l&&l[u]||{};r&&(h={min:0,max:0});const f=i?200:1e6,d=i?40:1e7,p={type:"inertia",velocity:s?e[u]:0,bounceStiffness:f,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10,...o,...h};return this.startAxisValueAnimation(u,p)});return Promise.all(c).then(a)}startAxisValueAnimation(e,n){const s=this.getAxisMotionValue(e);return tn(this.visualElement,e),s.start(Cn(e,s,0,n,this.visualElement,!1))}stopAnimation(){it(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,s=this.visualElement.getProps(),i=s[n];return i||this.visualElement.getValue(e,(s.initial?s.initial[e]:void 0)||0)}snapToCursor(e){it(n=>{const{drag:s}=this.getProps();if(!te(n,s,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:r,max:a}=i.layout.layoutBox[n],l=o.get()||0;o.set(e[n]-M(r,a,.5)+l)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!Tt(n)||!s||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};it(r=>{const a=this.getAxisMotionValue(r);if(a&&this.constraints!==!1){const l=a.get();i[r]=vc({min:l,max:l},this.constraints[r])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.constraints=!1,this.resolveConstraints(),it(r=>{if(!te(r,e,null))return;const a=this.getAxisMotionValue(r),{min:l,max:c}=this.constraints[r];a.set(M(l,c,i[r]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;wc.set(this.visualElement,this);const e=this.visualElement.current,n=Nt(e,"pointerdown",c=>{const{drag:u,dragListener:h=!0}=this.getProps(),f=c.target,d=f!==e&&pl(f);u&&h&&!d&&this.start(c)});let s;const i=()=>{const{dragConstraints:c}=this.getProps();Tt(c)&&c.current&&(this.constraints=this.resolveRefConstraints(),s||(s=Pc(e,c.current,()=>this.scalePositionWithinConstraints())))},{projection:o}=this.visualElement,r=o.addEventListener("measure",i);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),C.read(i);const a=Kt(window,"resize",()=>this.scalePositionWithinConstraints()),l=o.addEventListener("didUpdate",(({delta:c,hasLayoutChanged:u})=>{this.isDragging&&u&&(it(h=>{const f=this.getAxisMotionValue(h);f&&(this.originPoint[h]+=c[h].translate,f.set(f.get()+c[h].translate))}),this.visualElement.render())}));return()=>{a(),n(),r(),l&&l(),s&&s()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:s=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:r=un,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:s,dragPropagation:i,dragConstraints:o,dragElastic:r,dragMomentum:a}}}function oi(t){let e=!0;return()=>{if(e){e=!1;return}t()}}function Pc(t,e,n){const s=ms(t,oi(n)),i=ms(e,oi(n));return()=>{s(),i()}}function te(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function bc(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class Ac extends ht{constructor(e){super(e),this.removeGroupControls=J,this.removeListeners=J,this.controls=new Sc(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||J}update(){const{dragControls:e}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};e!==n&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const Fe=t=>(e,n)=>{t&&C.update(()=>t(e,n),!1,!0)};class Ec extends ht{constructor(){super(...arguments),this.removePointerDownListener=J}onPointerDown(e){this.session=new eo(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:to(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:s,onPanEnd:i}=this.node.getProps();return{onSessionStart:Fe(e),onStart:Fe(n),onMove:Fe(s),onEnd:(o,r)=>{delete this.session,i&&C.postRender(()=>i(o,r))}}}mount(){this.removePointerDownListener=Nt(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let Be=!1;class Vc extends P.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s,layoutId:i}=this.props,{projection:o}=e;o&&(n.group&&n.group.add(o),s&&s.register&&i&&s.register(o),Be&&o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),ae.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:s,drag:i,isPresent:o}=this.props,{projection:r}=s;return r&&(r.isPresent=o,e.layoutDependency!==n&&r.setOptions({...r.options,layoutDependency:n}),Be=!0,i||e.layoutDependency!==n||n===void 0||e.isPresent!==o?r.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?r.promote():r.relegate()||C.postRender(()=>{const a=r.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),On.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s}=this.props,{projection:i}=e;Be=!0,i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),s&&s.deregister&&s.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function so(t){const[e,n]=Gr(),s=P.useContext(hn);return le.jsx(Vc,{...t,layoutGroup:s,switchLayoutGroup:P.useContext(Jr),isPresent:e,safeToRemove:n})}const Cc={pan:{Feature:Ec},drag:{Feature:Ac,ProjectionNode:Kr,MeasureLayout:so}};function ai(t,e,n){const{props:s}=t;t.animationState&&s.whileHover&&t.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=s[i];o&&C.postRender(()=>o(e,Yt(e)))}class Mc extends ht{mount(){const{current:e}=this.node;e&&(this.unmount=hl(e,(n,s)=>(ai(this.node,s,"Start"),i=>ai(this.node,i,"End"))))}unmount(){}}class Rc extends ht{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Gt(Kt(this.node.current,"focus",()=>this.onFocus()),Kt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function li(t,e,n){const{props:s}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&s.whileTap&&t.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=s[i];o&&C.postRender(()=>o(e,Yt(e)))}class Dc extends ht{mount(){const{current:e}=this.node;if(!e)return;const{globalTapTarget:n,propagate:s}=this.node.props;this.unmount=yl(e,(i,o)=>(li(this.node,o,"Start"),(r,{success:a})=>li(this.node,r,a?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:s?.tap===!1})}unmount(){}}const cn=new WeakMap,je=new WeakMap,kc=t=>{const e=cn.get(t.target);e&&e(t)},Lc=t=>{t.forEach(kc)};function Oc({root:t,...e}){const n=t||document;je.has(n)||je.set(n,{});const s=je.get(n),i=JSON.stringify(e);return s[i]||(s[i]=new IntersectionObserver(Lc,{root:t,...e})),s[i]}function Ic(t,e,n){const s=Oc(e);return cn.set(t,n),s.observe(t),()=>{cn.delete(t),s.unobserve(t)}}const Fc={some:0,all:1};class Bc extends ht{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:s,amount:i="some",once:o}=e,r={root:n?n.current:void 0,rootMargin:s,threshold:typeof i=="number"?i:Fc[i]},a=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,o&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:u,onViewportLeave:h}=this.node.getProps(),f=c?u:h;f&&f(l)};return Ic(this.node.current,r,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(jc(e,n))&&this.startObserver()}unmount(){}}function jc({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const Nc={inView:{Feature:Bc},tap:{Feature:Dc},focus:{Feature:Rc},hover:{Feature:Mc}},_c={layout:{ProjectionNode:Kr,MeasureLayout:so}},Uc={...cc,...Nc,...Cc,..._c},Wc=rc(Uc,oc);exports.HTMLVisualElement=Er;exports.LayoutGroupContext=hn;exports.MotionConfigContext=_n;exports.PresenceContext=pe;exports.SVGVisualElement=Dr;exports.VisualElement=vr;exports.animateSingleValue=_r;exports.animateTarget=Dn;exports.cancelFrame=lt;exports.collectMotionValues=Je;exports.createBox=F;exports.createGeneratorEasing=Bi;exports.defaultOffset=Ui;exports.fillOffset=_i;exports.frame=C;exports.interpolate=Ni;exports.isEasingArray=Ai;exports.isGenerator=En;exports.isHTMLElement=lr;exports.isMotionValue=$;exports.isSVGElement=ge;exports.isSVGSVGElement=dr;exports.jsxRuntimeExports=le;exports.mixNumber=M;exports.motion=Wc;exports.motionValue=yt;exports.progress=Vt;exports.removeItem=_t;exports.resolveElements=Ln;exports.secondsToMilliseconds=H;exports.spring=Wt;exports.useConstant=ui;exports.useIsomorphicLayoutEffect=ci;exports.usePresence=Gr;exports.visualElementStore=mr;