@g4rcez/components 4.1.3 → 5.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (708) hide show
  1. package/ai/docs/AnimatedList.md +1 -1
  2. package/ai/docs/Autocomplete.md +2 -2
  3. package/ai/docs/Button.md +1 -1
  4. package/ai/docs/Card.md +7 -7
  5. package/ai/docs/DatePicker.md +2 -2
  6. package/ai/docs/Dropdown.md +7 -7
  7. package/ai/docs/Expand.md +5 -5
  8. package/ai/docs/Input.md +3 -3
  9. package/ai/docs/InputField.md +24 -14
  10. package/ai/docs/List.md +1 -1
  11. package/ai/docs/Modal.md +4 -4
  12. package/ai/docs/MultiSelect.md +2 -2
  13. package/ai/docs/PageCalendar.md +2 -2
  14. package/ai/docs/Polymorph.md +1 -1
  15. package/ai/docs/Resizable.md +3 -3
  16. package/ai/docs/Select.md +2 -2
  17. package/ai/docs/Skeleton.md +1 -1
  18. package/ai/docs/Slot.md +3 -3
  19. package/ai/docs/Spinner.md +1 -1
  20. package/ai/docs/Stats.md +1 -1
  21. package/ai/docs/Step.md +1 -1
  22. package/ai/docs/Tabs.md +1 -1
  23. package/ai/docs/Tag.md +1 -1
  24. package/ai/docs/TaskList.md +3 -3
  25. package/ai/docs/Textarea.md +2 -2
  26. package/ai/docs/Tooltip.md +13 -9
  27. package/ai/docs/Typography.md +1 -1
  28. package/ai/docs/index.md +17 -17
  29. package/dist/CaretDown.es-BXl0Ixp3.js +23 -0
  30. package/dist/CaretDown.es-BXl0Ixp3.js.map +1 -0
  31. package/dist/CaretRight.es-B2mpMfqU.js +23 -0
  32. package/dist/CaretRight.es-B2mpMfqU.js.map +1 -0
  33. package/dist/CheckCircle.es-BB91gLT-.js +23 -0
  34. package/dist/CheckCircle.es-BB91gLT-.js.map +1 -0
  35. package/dist/File.es-CjNVQ00B.js +23 -0
  36. package/dist/File.es-CjNVQ00B.js.map +1 -0
  37. package/dist/IconBase.es-BlJQ9IXo.js +27 -0
  38. package/dist/IconBase.es-BlJQ9IXo.js.map +1 -0
  39. package/dist/Info.es-Dvln8pws.js +23 -0
  40. package/dist/Info.es-Dvln8pws.js.map +1 -0
  41. package/dist/MotionConfig-BLwtdAWy.js +27 -0
  42. package/dist/MotionConfig-BLwtdAWy.js.map +1 -0
  43. package/dist/MotionConfigContext-BORpSKe8.js +2571 -0
  44. package/dist/MotionConfigContext-BORpSKe8.js.map +1 -0
  45. package/dist/Warning.es-B_xCn-P5.js +23 -0
  46. package/dist/Warning.es-B_xCn-P5.js.map +1 -0
  47. package/dist/X.es-Cjq2a_OA.js +23 -0
  48. package/dist/X.es-Cjq2a_OA.js.map +1 -0
  49. package/dist/animate-BNYgkk_j.js +387 -0
  50. package/dist/animate-BNYgkk_j.js.map +1 -0
  51. package/dist/autocomplete-DVKTP0Il.js +415 -0
  52. package/dist/autocomplete-DVKTP0Il.js.map +1 -0
  53. package/dist/calendar-_DZjphH8.js +1678 -0
  54. package/dist/calendar-_DZjphH8.js.map +1 -0
  55. package/dist/components/core/button.js +75 -75
  56. package/dist/components/core/button.js.map +1 -1
  57. package/dist/components/core/tag.js +66 -66
  58. package/dist/components/core/tag.js.map +1 -1
  59. package/dist/components/display/alert.js +133 -95
  60. package/dist/components/display/alert.js.map +1 -1
  61. package/dist/components/display/calendar.js +3 -15
  62. package/dist/components/display/card.js +73 -82
  63. package/dist/components/display/card.js.map +1 -1
  64. package/dist/components/display/list.js +153 -93
  65. package/dist/components/display/list.js.map +1 -1
  66. package/dist/components/display/notifications.js +3 -15
  67. package/dist/components/display/stats.js +30 -16
  68. package/dist/components/display/stats.js.map +1 -1
  69. package/dist/components/display/tabs.js +3 -12
  70. package/dist/components/display/timeline.js +47 -28
  71. package/dist/components/display/timeline.js.map +1 -1
  72. package/dist/components/floating/dropdown.js +76 -65
  73. package/dist/components/floating/dropdown.js.map +1 -1
  74. package/dist/components/floating/expand.js +62 -40
  75. package/dist/components/floating/expand.js.map +1 -1
  76. package/dist/components/floating/menu.js +195 -177
  77. package/dist/components/floating/menu.js.map +1 -1
  78. package/dist/components/floating/modal.js +3 -301
  79. package/dist/components/floating/tooltip.js +63 -73
  80. package/dist/components/floating/tooltip.js.map +1 -1
  81. package/dist/components/form/autocomplete.js +3 -16
  82. package/dist/components/form/checkbox.js +34 -44
  83. package/dist/components/form/checkbox.js.map +1 -1
  84. package/dist/components/form/date-picker.js +3 -12
  85. package/dist/components/form/file-upload.js +3 -11
  86. package/dist/components/form/form.js +16 -7
  87. package/dist/components/form/form.js.map +1 -1
  88. package/dist/components/form/input.js +3 -5
  89. package/dist/components/form/radiobox.js +19 -30
  90. package/dist/components/form/radiobox.js.map +1 -1
  91. package/dist/components/form/select.js +77 -106
  92. package/dist/components/form/select.js.map +1 -1
  93. package/dist/components/form/switch.js +73 -64
  94. package/dist/components/form/switch.js.map +1 -1
  95. package/dist/components/form/task-list.js +3 -68
  96. package/dist/components/table/table.js +3 -10
  97. package/dist/date-picker-9q_Ki5Vu.js +1498 -0
  98. package/dist/date-picker-9q_Ki5Vu.js.map +1 -0
  99. package/dist/dist-BHFtgf5x.js +2593 -0
  100. package/dist/dist-BHFtgf5x.js.map +1 -0
  101. package/dist/dist-Buc00Zls.js +177 -0
  102. package/dist/dist-Buc00Zls.js.map +1 -0
  103. package/dist/dist-NmFtbuK4.js +35 -0
  104. package/dist/dist-NmFtbuK4.js.map +1 -0
  105. package/dist/dom-Bn4wY_Zx.js +2168 -0
  106. package/dist/dom-Bn4wY_Zx.js.map +1 -0
  107. package/dist/file-upload-COk6_Bs5.js +2966 -0
  108. package/dist/file-upload-COk6_Bs5.js.map +1 -0
  109. package/dist/floating-ui.react-CwXtBJ_y.js +3381 -0
  110. package/dist/floating-ui.react-CwXtBJ_y.js.map +1 -0
  111. package/dist/floating-ui.utils-CUrVRSbA.js +204 -0
  112. package/dist/floating-ui.utils-CUrVRSbA.js.map +1 -0
  113. package/dist/fns-KbsWlOTG.js +29 -0
  114. package/dist/fns-KbsWlOTG.js.map +1 -0
  115. package/dist/index.css +1 -1
  116. package/dist/index.js +7933 -20
  117. package/dist/index.js.map +1 -1
  118. package/dist/input-B7jqwPG4.js +473 -0
  119. package/dist/input-B7jqwPG4.js.map +1 -0
  120. package/dist/input-field-B_whI66Q.js +137 -0
  121. package/dist/input-field-B_whI66Q.js.map +1 -0
  122. package/dist/modal-Cn-OaKRp.js +373 -0
  123. package/dist/modal-Cn-OaKRp.js.map +1 -0
  124. package/dist/notifications-l_B9J4Gx.js +2202 -0
  125. package/dist/notifications-l_B9J4Gx.js.map +1 -0
  126. package/dist/polymorph-BLXhrn9n.js +14 -0
  127. package/dist/polymorph-BLXhrn9n.js.map +1 -0
  128. package/dist/preset/preset.tailwind.d.ts.map +1 -1
  129. package/dist/preset/preset.tailwind.js +40 -4
  130. package/dist/preset/src/styles/common.d.ts +0 -2
  131. package/dist/preset/src/styles/common.d.ts.map +1 -1
  132. package/dist/preset/src/styles/common.js +0 -9
  133. package/dist/preset/src/styles/components.d.ts +3 -0
  134. package/dist/preset/src/styles/components.d.ts.map +1 -0
  135. package/dist/preset/src/styles/components.js +400 -0
  136. package/dist/preset/src/styles/dark.d.ts.map +1 -1
  137. package/dist/preset/src/styles/dark.js +5 -3
  138. package/dist/preset/src/styles/default-tokens.d.ts +74 -0
  139. package/dist/preset/src/styles/default-tokens.d.ts.map +1 -0
  140. package/dist/preset/src/styles/default-tokens.js +44 -0
  141. package/dist/preset/src/styles/design-tokens.d.ts +1 -1
  142. package/dist/preset/src/styles/design-tokens.d.ts.map +1 -1
  143. package/dist/preset/src/styles/design-tokens.js +6 -2
  144. package/dist/preset/src/styles/light.d.ts.map +1 -1
  145. package/dist/preset/src/styles/light.js +22 -20
  146. package/dist/preset/src/styles/theme.types.d.ts +433 -8
  147. package/dist/preset/src/styles/theme.types.d.ts.map +1 -1
  148. package/dist/proxy-Drpz0Avo.js +2533 -0
  149. package/dist/proxy-Drpz0Avo.js.map +1 -0
  150. package/dist/skeleton-CBYEq3lM.js +26 -0
  151. package/dist/skeleton-CBYEq3lM.js.map +1 -0
  152. package/dist/slot-pC8kH9De.js +96 -0
  153. package/dist/slot-pC8kH9De.js.map +1 -0
  154. package/dist/{components → src/components}/core/button.d.ts +1 -1
  155. package/dist/src/components/core/button.d.ts.map +1 -0
  156. package/dist/{components → src/components}/core/button.jsx +10 -10
  157. package/dist/src/components/core/heading.d.ts.map +1 -0
  158. package/dist/src/components/core/polymorph.d.ts.map +1 -0
  159. package/dist/src/components/core/render-on-view.d.ts.map +1 -0
  160. package/dist/{components → src/components}/core/render-on-view.jsx +1 -1
  161. package/dist/src/components/core/resizable.d.ts.map +1 -0
  162. package/dist/{components → src/components}/core/resizable.jsx +2 -2
  163. package/dist/src/components/core/slot.d.ts.map +1 -0
  164. package/dist/src/components/core/tag.d.ts.map +1 -0
  165. package/dist/{components → src/components}/core/tag.jsx +10 -8
  166. package/dist/src/components/core/typography.d.ts.map +1 -0
  167. package/dist/{components → src/components}/core/typography.jsx +8 -6
  168. package/dist/src/components/display/alert.d.ts.map +1 -0
  169. package/dist/{components → src/components}/display/alert.jsx +6 -6
  170. package/dist/src/components/display/calendar.d.ts.map +1 -0
  171. package/dist/{components → src/components}/display/calendar.jsx +40 -21
  172. package/dist/src/components/display/card.d.ts.map +1 -0
  173. package/dist/{components → src/components}/display/card.jsx +10 -10
  174. package/dist/src/components/display/empty.d.ts.map +1 -0
  175. package/dist/{components → src/components}/display/empty.jsx +1 -1
  176. package/dist/src/components/display/list.d.ts.map +1 -0
  177. package/dist/{components → src/components}/display/list.jsx +15 -11
  178. package/dist/{components → src/components}/display/notifications.d.ts +1 -1
  179. package/dist/src/components/display/notifications.d.ts.map +1 -0
  180. package/dist/{components → src/components}/display/notifications.jsx +13 -9
  181. package/dist/{components → src/components}/display/progress.d.ts +4 -1
  182. package/dist/src/components/display/progress.d.ts.map +1 -0
  183. package/dist/src/components/display/progress.jsx +21 -0
  184. package/dist/src/components/display/shortcut.d.ts.map +1 -0
  185. package/dist/{components → src/components}/display/shortcut.jsx +1 -1
  186. package/dist/src/components/display/skeleton.d.ts.map +1 -0
  187. package/dist/{components → src/components}/display/skeleton.jsx +3 -3
  188. package/dist/src/components/display/spinner.d.ts.map +1 -0
  189. package/dist/{components → src/components}/display/spinner.jsx +2 -2
  190. package/dist/src/components/display/stats.d.ts.map +1 -0
  191. package/dist/src/components/display/stats.jsx +16 -0
  192. package/dist/src/components/display/step.d.ts.map +1 -0
  193. package/dist/{components → src/components}/display/step.jsx +23 -9
  194. package/dist/src/components/display/tabs.d.ts.map +1 -0
  195. package/dist/{components → src/components}/display/tabs.jsx +3 -3
  196. package/dist/src/components/display/timeline.d.ts.map +1 -0
  197. package/dist/{components → src/components}/display/timeline.jsx +4 -4
  198. package/dist/src/components/floating/command-palette.d.ts.map +1 -0
  199. package/dist/{components → src/components}/floating/command-palette.jsx +49 -23
  200. package/dist/src/components/floating/dropdown.d.ts.map +1 -0
  201. package/dist/{components → src/components}/floating/dropdown.jsx +4 -4
  202. package/dist/src/components/floating/expand.d.ts.map +1 -0
  203. package/dist/src/components/floating/menu.d.ts.map +1 -0
  204. package/dist/{components → src/components}/floating/menu.jsx +24 -6
  205. package/dist/src/components/floating/modal.d.ts.map +1 -0
  206. package/dist/{components → src/components}/floating/modal.jsx +61 -26
  207. package/dist/src/components/floating/toolbar.d.ts.map +1 -0
  208. package/dist/{components → src/components}/floating/toolbar.jsx +1 -1
  209. package/dist/src/components/floating/tooltip.d.ts.map +1 -0
  210. package/dist/{components → src/components}/floating/tooltip.jsx +14 -5
  211. package/dist/src/components/floating/wizard.d.ts.map +1 -0
  212. package/dist/{components → src/components}/floating/wizard.jsx +10 -6
  213. package/dist/src/components/form/autocomplete.d.ts.map +1 -0
  214. package/dist/{components → src/components}/form/autocomplete.jsx +28 -16
  215. package/dist/src/components/form/checkbox.d.ts.map +1 -0
  216. package/dist/{components → src/components}/form/checkbox.jsx +3 -3
  217. package/dist/src/components/form/date-picker.d.ts.map +1 -0
  218. package/dist/{components → src/components}/form/date-picker.jsx +2 -2
  219. package/dist/src/components/form/file-upload.d.ts.map +1 -0
  220. package/dist/{components → src/components}/form/file-upload.jsx +18 -14
  221. package/dist/src/components/form/form.d.ts.map +1 -0
  222. package/dist/src/components/form/formReset.d.ts.map +1 -0
  223. package/dist/src/components/form/free-text.d.ts.map +1 -0
  224. package/dist/{components → src/components}/form/free-text.jsx +1 -1
  225. package/dist/src/components/form/input-field.d.ts.map +1 -0
  226. package/dist/{components → src/components}/form/input-field.jsx +7 -7
  227. package/dist/src/components/form/input.d.ts.map +1 -0
  228. package/dist/src/components/form/multi-select.d.ts.map +1 -0
  229. package/dist/{components → src/components}/form/multi-select.jsx +24 -16
  230. package/dist/{components → src/components}/form/radiobox.d.ts +1 -1
  231. package/dist/src/components/form/radiobox.d.ts.map +1 -0
  232. package/dist/src/components/form/radiobox.jsx +6 -0
  233. package/dist/src/components/form/select.d.ts.map +1 -0
  234. package/dist/{components → src/components}/form/select.jsx +5 -3
  235. package/dist/src/components/form/slider.d.ts.map +1 -0
  236. package/dist/{components → src/components}/form/slider.jsx +3 -3
  237. package/dist/src/components/form/switch.d.ts.map +1 -0
  238. package/dist/{components → src/components}/form/switch.jsx +5 -5
  239. package/dist/src/components/form/task-list.d.ts.map +1 -0
  240. package/dist/{components → src/components}/form/task-list.jsx +1 -1
  241. package/dist/src/components/form/textarea.d.ts +5 -0
  242. package/dist/src/components/form/textarea.d.ts.map +1 -0
  243. package/dist/src/components/form/textarea.jsx +26 -0
  244. package/dist/src/components/index.d.ts.map +1 -0
  245. package/dist/src/components/page-calendar/calendar-header.d.ts.map +1 -0
  246. package/dist/{components → src/components}/page-calendar/calendar-header.jsx +14 -14
  247. package/dist/src/components/page-calendar/day-view.d.ts.map +1 -0
  248. package/dist/{components → src/components}/page-calendar/day-view.jsx +14 -19
  249. package/dist/src/components/page-calendar/event-pill.d.ts.map +1 -0
  250. package/dist/{components → src/components}/page-calendar/event-pill.jsx +2 -2
  251. package/dist/src/components/page-calendar/index.d.ts.map +1 -0
  252. package/dist/src/components/page-calendar/month-view.d.ts.map +1 -0
  253. package/dist/{components → src/components}/page-calendar/month-view.jsx +6 -6
  254. package/dist/src/components/page-calendar/page-calendar.d.ts.map +1 -0
  255. package/dist/{components → src/components}/page-calendar/page-calendar.jsx +2 -2
  256. package/dist/src/components/page-calendar/page-calendar.types.d.ts.map +1 -0
  257. package/dist/src/components/page-calendar/page-calendar.utils.d.ts.map +1 -0
  258. package/dist/src/components/page-calendar/week-view.d.ts.map +1 -0
  259. package/dist/{components → src/components}/page-calendar/week-view.jsx +8 -13
  260. package/dist/src/components/table/filter.d.ts.map +1 -0
  261. package/dist/{components → src/components}/table/filter.jsx +39 -11
  262. package/dist/src/components/table/group.d.ts.map +1 -0
  263. package/dist/{components → src/components}/table/group.jsx +12 -5
  264. package/dist/src/components/table/index.d.ts.map +1 -0
  265. package/dist/{components → src/components}/table/index.jsx +5 -2
  266. package/dist/src/components/table/inner-table.d.ts.map +1 -0
  267. package/dist/{components → src/components}/table/inner-table.jsx +5 -5
  268. package/dist/src/components/table/metadata.d.ts.map +1 -0
  269. package/dist/{components → src/components}/table/metadata.jsx +7 -7
  270. package/dist/src/components/table/pagination.d.ts.map +1 -0
  271. package/dist/{components → src/components}/table/pagination.jsx +4 -4
  272. package/dist/src/components/table/row.d.ts.map +1 -0
  273. package/dist/{components → src/components}/table/row.jsx +2 -2
  274. package/dist/src/components/table/sort.d.ts.map +1 -0
  275. package/dist/{components → src/components}/table/sort.jsx +4 -4
  276. package/dist/src/components/table/table-lib.d.ts.map +1 -0
  277. package/dist/src/components/table/table.context.d.ts.map +1 -0
  278. package/dist/{components → src/components}/table/table.context.jsx +1 -0
  279. package/dist/src/components/table/thead.d.ts.map +1 -0
  280. package/dist/{components → src/components}/table/thead.jsx +7 -7
  281. package/dist/src/config/context.d.ts.map +1 -0
  282. package/dist/src/config/default-translations.d.ts.map +1 -0
  283. package/dist/src/config/default-tweaks.d.ts.map +1 -0
  284. package/dist/src/constants.d.ts.map +1 -0
  285. package/dist/src/hooks/use-click-outside.d.ts.map +1 -0
  286. package/dist/src/hooks/use-color-parser.d.ts.map +1 -0
  287. package/dist/src/hooks/use-components-provider.d.ts.map +1 -0
  288. package/dist/src/hooks/use-debounce.d.ts.map +1 -0
  289. package/dist/src/hooks/use-floating-ref.d.ts.map +1 -0
  290. package/dist/src/hooks/use-form.d.ts.map +1 -0
  291. package/dist/{hooks → src/hooks}/use-form.js +2 -2
  292. package/dist/src/hooks/use-hover.d.ts.map +1 -0
  293. package/dist/{hooks → src/hooks}/use-hover.js +1 -1
  294. package/dist/src/hooks/use-input-id.d.ts.map +1 -0
  295. package/dist/src/hooks/use-is-coarse-device.d.ts.map +1 -0
  296. package/dist/src/hooks/use-locale.d.ts.map +1 -0
  297. package/dist/src/hooks/use-media-query.d.ts.map +1 -0
  298. package/dist/{hooks → src/hooks}/use-media-query.js +1 -1
  299. package/dist/src/hooks/use-on-event.d.ts.map +1 -0
  300. package/dist/src/hooks/use-on-event.js +10 -0
  301. package/dist/src/hooks/use-parent.d.ts.map +1 -0
  302. package/dist/{hooks → src/hooks}/use-parent.js +1 -1
  303. package/dist/src/hooks/use-preferences.d.ts.map +1 -0
  304. package/dist/src/hooks/use-previous.d.ts.map +1 -0
  305. package/dist/src/hooks/use-reactive.d.ts.map +1 -0
  306. package/dist/src/hooks/use-remove-scroll.d.ts.map +1 -0
  307. package/dist/src/hooks/use-resize-observer.d.ts.map +1 -0
  308. package/dist/src/hooks/use-stable-ref.d.ts.map +1 -0
  309. package/dist/src/hooks/use-swipe.d.ts.map +1 -0
  310. package/dist/src/hooks/use-translations.d.ts.map +1 -0
  311. package/dist/src/hooks/use-tweaks.d.ts.map +1 -0
  312. package/dist/src/hooks/use-window-size.d.ts.map +1 -0
  313. package/dist/src/index.d.ts.map +1 -0
  314. package/dist/src/index.js +20 -0
  315. package/dist/src/lib/combi-keys.d.ts.map +1 -0
  316. package/dist/src/lib/dict.d.ts.map +1 -0
  317. package/dist/src/lib/dom.d.ts.map +1 -0
  318. package/dist/src/lib/dom.js +185 -0
  319. package/dist/src/lib/fns.d.ts.map +1 -0
  320. package/dist/src/lib/fzf.d.ts.map +1 -0
  321. package/dist/src/lib/keyboard-area.d.ts.map +1 -0
  322. package/dist/src/styles/common.d.ts +8 -0
  323. package/dist/src/styles/common.d.ts.map +1 -0
  324. package/dist/src/styles/common.js +20 -0
  325. package/dist/src/styles/components.d.ts +3 -0
  326. package/dist/src/styles/components.d.ts.map +1 -0
  327. package/dist/src/styles/components.js +397 -0
  328. package/dist/src/styles/dark.d.ts +3 -0
  329. package/dist/src/styles/dark.d.ts.map +1 -0
  330. package/dist/src/styles/dark.js +217 -0
  331. package/dist/src/styles/default-tokens.d.ts +74 -0
  332. package/dist/src/styles/default-tokens.d.ts.map +1 -0
  333. package/dist/src/styles/default-tokens.js +41 -0
  334. package/dist/src/styles/design-tokens.d.ts +29 -0
  335. package/dist/src/styles/design-tokens.d.ts.map +1 -0
  336. package/dist/src/styles/design-tokens.js +73 -0
  337. package/dist/src/styles/light.d.ts +3 -0
  338. package/dist/src/styles/light.d.ts.map +1 -0
  339. package/dist/src/styles/light.js +217 -0
  340. package/dist/src/styles/theme.d.ts +3 -0
  341. package/dist/src/styles/theme.d.ts.map +1 -0
  342. package/dist/src/styles/theme.js +4 -0
  343. package/dist/src/styles/theme.types.d.ts +540 -0
  344. package/dist/src/styles/theme.types.d.ts.map +1 -0
  345. package/dist/src/types.d.ts.map +1 -0
  346. package/dist/src/types.js +1 -0
  347. package/dist/styles/common.d.ts +0 -2
  348. package/dist/styles/common.d.ts.map +1 -1
  349. package/dist/styles/common.js +0 -9
  350. package/dist/styles/components.d.ts +3 -0
  351. package/dist/styles/components.d.ts.map +1 -0
  352. package/dist/styles/components.js +400 -0
  353. package/dist/styles/dark.d.ts.map +1 -1
  354. package/dist/styles/dark.js +5 -3
  355. package/dist/styles/default-tokens.d.ts +74 -0
  356. package/dist/styles/default-tokens.d.ts.map +1 -0
  357. package/dist/styles/default-tokens.js +44 -0
  358. package/dist/styles/design-tokens.d.ts +1 -1
  359. package/dist/styles/design-tokens.d.ts.map +1 -1
  360. package/dist/styles/design-tokens.js +6 -2
  361. package/dist/styles/light.d.ts.map +1 -1
  362. package/dist/styles/light.js +22 -20
  363. package/dist/styles/theme.types.d.ts +433 -8
  364. package/dist/styles/theme.types.d.ts.map +1 -1
  365. package/dist/table-Dql6Yzag.js +1914 -0
  366. package/dist/table-Dql6Yzag.js.map +1 -0
  367. package/dist/tabs-Ciy0l9OF.js +122 -0
  368. package/dist/tabs-Ciy0l9OF.js.map +1 -0
  369. package/dist/task-list-tKumO4WH.js +96 -0
  370. package/dist/task-list-tKumO4WH.js.map +1 -0
  371. package/dist/tsconfig.lib.tsbuildinfo +1 -1
  372. package/dist/use-motion-value-BqPF1j90.js +15 -0
  373. package/dist/use-motion-value-BqPF1j90.js.map +1 -0
  374. package/dist/use-stable-ref-D5LFCx0u.js +12 -0
  375. package/dist/use-stable-ref-D5LFCx0u.js.map +1 -0
  376. package/dist/use-translations-DTLfPE3_.js +177 -0
  377. package/dist/use-translations-DTLfPE3_.js.map +1 -0
  378. package/dist/with-selector-BAUQ-vKK.js +187 -0
  379. package/dist/with-selector-BAUQ-vKK.js.map +1 -0
  380. package/package.json +17 -17
  381. package/dist/CaretDown.es-Cj7klWI3.js +0 -33
  382. package/dist/CaretDown.es-Cj7klWI3.js.map +0 -1
  383. package/dist/CaretRight.es-0-M8D9y8.js +0 -33
  384. package/dist/CaretRight.es-0-M8D9y8.js.map +0 -1
  385. package/dist/CheckCircle.es-C6QWLfk_.js +0 -33
  386. package/dist/CheckCircle.es-C6QWLfk_.js.map +0 -1
  387. package/dist/File.es-CA-vuPED.js +0 -33
  388. package/dist/File.es-CA-vuPED.js.map +0 -1
  389. package/dist/IconBase.es-DJ1oCtpo.js +0 -50
  390. package/dist/IconBase.es-DJ1oCtpo.js.map +0 -1
  391. package/dist/Info.es-CrZKs4q4.js +0 -33
  392. package/dist/Info.es-CrZKs4q4.js.map +0 -1
  393. package/dist/MotionConfigContext-C7MqlSdv.js +0 -2713
  394. package/dist/MotionConfigContext-C7MqlSdv.js.map +0 -1
  395. package/dist/Warning.es-D_eI6tLe.js +0 -39
  396. package/dist/Warning.es-D_eI6tLe.js.map +0 -1
  397. package/dist/X.es-BJ1O93El.js +0 -39
  398. package/dist/X.es-BJ1O93El.js.map +0 -1
  399. package/dist/autocomplete-DcTNOwyg.js +0 -393
  400. package/dist/autocomplete-DcTNOwyg.js.map +0 -1
  401. package/dist/calendar-BJMHRoy2.js +0 -1746
  402. package/dist/calendar-BJMHRoy2.js.map +0 -1
  403. package/dist/components/core/button.d.ts.map +0 -1
  404. package/dist/components/core/heading.d.ts.map +0 -1
  405. package/dist/components/core/polymorph.d.ts.map +0 -1
  406. package/dist/components/core/render-on-view.d.ts.map +0 -1
  407. package/dist/components/core/resizable.d.ts.map +0 -1
  408. package/dist/components/core/slot.d.ts.map +0 -1
  409. package/dist/components/core/tag.d.ts.map +0 -1
  410. package/dist/components/core/typography.d.ts.map +0 -1
  411. package/dist/components/display/alert.d.ts.map +0 -1
  412. package/dist/components/display/calendar.d.ts.map +0 -1
  413. package/dist/components/display/calendar.js.map +0 -1
  414. package/dist/components/display/card.d.ts.map +0 -1
  415. package/dist/components/display/empty.d.ts.map +0 -1
  416. package/dist/components/display/list.d.ts.map +0 -1
  417. package/dist/components/display/notifications.d.ts.map +0 -1
  418. package/dist/components/display/notifications.js.map +0 -1
  419. package/dist/components/display/progress.d.ts.map +0 -1
  420. package/dist/components/display/progress.jsx +0 -11
  421. package/dist/components/display/shortcut.d.ts.map +0 -1
  422. package/dist/components/display/skeleton.d.ts.map +0 -1
  423. package/dist/components/display/spinner.d.ts.map +0 -1
  424. package/dist/components/display/stats.d.ts.map +0 -1
  425. package/dist/components/display/stats.jsx +0 -20
  426. package/dist/components/display/step.d.ts.map +0 -1
  427. package/dist/components/display/tabs.d.ts.map +0 -1
  428. package/dist/components/display/tabs.js.map +0 -1
  429. package/dist/components/display/timeline.d.ts.map +0 -1
  430. package/dist/components/floating/command-palette.d.ts.map +0 -1
  431. package/dist/components/floating/dropdown.d.ts.map +0 -1
  432. package/dist/components/floating/expand.d.ts.map +0 -1
  433. package/dist/components/floating/menu.d.ts.map +0 -1
  434. package/dist/components/floating/modal.d.ts.map +0 -1
  435. package/dist/components/floating/modal.js.map +0 -1
  436. package/dist/components/floating/toolbar.d.ts.map +0 -1
  437. package/dist/components/floating/tooltip.d.ts.map +0 -1
  438. package/dist/components/floating/wizard.d.ts.map +0 -1
  439. package/dist/components/form/autocomplete.d.ts.map +0 -1
  440. package/dist/components/form/autocomplete.js.map +0 -1
  441. package/dist/components/form/checkbox.d.ts.map +0 -1
  442. package/dist/components/form/date-picker.d.ts.map +0 -1
  443. package/dist/components/form/date-picker.js.map +0 -1
  444. package/dist/components/form/file-upload.d.ts.map +0 -1
  445. package/dist/components/form/file-upload.js.map +0 -1
  446. package/dist/components/form/form.d.ts.map +0 -1
  447. package/dist/components/form/formReset.d.ts.map +0 -1
  448. package/dist/components/form/free-text.d.ts.map +0 -1
  449. package/dist/components/form/input-field.d.ts.map +0 -1
  450. package/dist/components/form/input.d.ts.map +0 -1
  451. package/dist/components/form/input.js.map +0 -1
  452. package/dist/components/form/multi-select.d.ts.map +0 -1
  453. package/dist/components/form/radiobox.d.ts.map +0 -1
  454. package/dist/components/form/radiobox.jsx +0 -6
  455. package/dist/components/form/select.d.ts.map +0 -1
  456. package/dist/components/form/slider.d.ts.map +0 -1
  457. package/dist/components/form/switch.d.ts.map +0 -1
  458. package/dist/components/form/task-list.d.ts.map +0 -1
  459. package/dist/components/form/task-list.js.map +0 -1
  460. package/dist/components/form/textarea.d.ts +0 -6
  461. package/dist/components/form/textarea.d.ts.map +0 -1
  462. package/dist/components/form/textarea.jsx +0 -12
  463. package/dist/components/index.d.ts.map +0 -1
  464. package/dist/components/page-calendar/calendar-header.d.ts.map +0 -1
  465. package/dist/components/page-calendar/day-view.d.ts.map +0 -1
  466. package/dist/components/page-calendar/event-pill.d.ts.map +0 -1
  467. package/dist/components/page-calendar/index.d.ts.map +0 -1
  468. package/dist/components/page-calendar/month-view.d.ts.map +0 -1
  469. package/dist/components/page-calendar/page-calendar.d.ts.map +0 -1
  470. package/dist/components/page-calendar/page-calendar.types.d.ts.map +0 -1
  471. package/dist/components/page-calendar/page-calendar.utils.d.ts.map +0 -1
  472. package/dist/components/page-calendar/week-view.d.ts.map +0 -1
  473. package/dist/components/table/filter.d.ts.map +0 -1
  474. package/dist/components/table/group.d.ts.map +0 -1
  475. package/dist/components/table/index.d.ts.map +0 -1
  476. package/dist/components/table/inner-table.d.ts.map +0 -1
  477. package/dist/components/table/metadata.d.ts.map +0 -1
  478. package/dist/components/table/pagination.d.ts.map +0 -1
  479. package/dist/components/table/row.d.ts.map +0 -1
  480. package/dist/components/table/sort.d.ts.map +0 -1
  481. package/dist/components/table/table-lib.d.ts.map +0 -1
  482. package/dist/components/table/table.context.d.ts.map +0 -1
  483. package/dist/components/table/table.js.map +0 -1
  484. package/dist/components/table/thead.d.ts.map +0 -1
  485. package/dist/config/context.d.ts.map +0 -1
  486. package/dist/config/default-translations.d.ts.map +0 -1
  487. package/dist/config/default-tweaks.d.ts.map +0 -1
  488. package/dist/constants-r-AHn273.js +0 -6
  489. package/dist/constants-r-AHn273.js.map +0 -1
  490. package/dist/constants.d.ts.map +0 -1
  491. package/dist/date-picker-Bnl07nd8.js +0 -1628
  492. package/dist/date-picker-Bnl07nd8.js.map +0 -1
  493. package/dist/dom-CyQHY7ID.js +0 -2838
  494. package/dist/dom-CyQHY7ID.js.map +0 -1
  495. package/dist/file-upload-93d5DR4q.js +0 -3255
  496. package/dist/file-upload-93d5DR4q.js.map +0 -1
  497. package/dist/floating-ui.react-M2PGXLDp.js +0 -3706
  498. package/dist/floating-ui.react-M2PGXLDp.js.map +0 -1
  499. package/dist/fns-C7Dt27Qd.js +0 -33
  500. package/dist/fns-C7Dt27Qd.js.map +0 -1
  501. package/dist/hooks/use-click-outside.d.ts.map +0 -1
  502. package/dist/hooks/use-color-parser.d.ts.map +0 -1
  503. package/dist/hooks/use-components-provider.d.ts.map +0 -1
  504. package/dist/hooks/use-debounce.d.ts.map +0 -1
  505. package/dist/hooks/use-floating-ref.d.ts.map +0 -1
  506. package/dist/hooks/use-form.d.ts.map +0 -1
  507. package/dist/hooks/use-hover.d.ts.map +0 -1
  508. package/dist/hooks/use-input-id.d.ts.map +0 -1
  509. package/dist/hooks/use-is-coarse-device.d.ts.map +0 -1
  510. package/dist/hooks/use-locale.d.ts.map +0 -1
  511. package/dist/hooks/use-media-query.d.ts.map +0 -1
  512. package/dist/hooks/use-on-event.d.ts.map +0 -1
  513. package/dist/hooks/use-on-event.js +0 -7
  514. package/dist/hooks/use-parent.d.ts.map +0 -1
  515. package/dist/hooks/use-preferences.d.ts.map +0 -1
  516. package/dist/hooks/use-previous.d.ts.map +0 -1
  517. package/dist/hooks/use-reactive.d.ts.map +0 -1
  518. package/dist/hooks/use-remove-scroll.d.ts.map +0 -1
  519. package/dist/hooks/use-resize-observer.d.ts.map +0 -1
  520. package/dist/hooks/use-stable-ref.d.ts.map +0 -1
  521. package/dist/hooks/use-swipe.d.ts.map +0 -1
  522. package/dist/hooks/use-translations.d.ts.map +0 -1
  523. package/dist/hooks/use-tweaks.d.ts.map +0 -1
  524. package/dist/hooks/use-window-size.d.ts.map +0 -1
  525. package/dist/index-0YMC-_Lt.js +0 -20
  526. package/dist/index-0YMC-_Lt.js.map +0 -1
  527. package/dist/index-BJ1ayTam.js +0 -126
  528. package/dist/index-BJ1ayTam.js.map +0 -1
  529. package/dist/index-C-PuFUZi.js +0 -3416
  530. package/dist/index-C-PuFUZi.js.map +0 -1
  531. package/dist/index-DDeQW0JW.js +0 -1816
  532. package/dist/index-DDeQW0JW.js.map +0 -1
  533. package/dist/index-DE4shK8D.js +0 -215
  534. package/dist/index-DE4shK8D.js.map +0 -1
  535. package/dist/index-DlJ_2RBL.js +0 -35
  536. package/dist/index-DlJ_2RBL.js.map +0 -1
  537. package/dist/index-t1qLJTt5.js +0 -351
  538. package/dist/index-t1qLJTt5.js.map +0 -1
  539. package/dist/index.d.ts.map +0 -1
  540. package/dist/index.esm-BaIwleSE.js +0 -343
  541. package/dist/index.esm-BaIwleSE.js.map +0 -1
  542. package/dist/input-_MVxmIpu.js +0 -443
  543. package/dist/input-_MVxmIpu.js.map +0 -1
  544. package/dist/input-field-CDCOODOl.js +0 -182
  545. package/dist/input-field-CDCOODOl.js.map +0 -1
  546. package/dist/lib/combi-keys.d.ts.map +0 -1
  547. package/dist/lib/dict.d.ts.map +0 -1
  548. package/dist/lib/dom.d.ts.map +0 -1
  549. package/dist/lib/dom.js +0 -66
  550. package/dist/lib/fns.d.ts.map +0 -1
  551. package/dist/lib/fzf.d.ts.map +0 -1
  552. package/dist/lib/keyboard-area.d.ts.map +0 -1
  553. package/dist/notifications-Dp0ydKJS.js +0 -2576
  554. package/dist/notifications-Dp0ydKJS.js.map +0 -1
  555. package/dist/polymorph-B5n9fs_K.js +0 -10
  556. package/dist/polymorph-B5n9fs_K.js.map +0 -1
  557. package/dist/proxy-BZcQiBrp.js +0 -2495
  558. package/dist/proxy-BZcQiBrp.js.map +0 -1
  559. package/dist/skeleton-BjJobYYf.js +0 -24
  560. package/dist/skeleton-BjJobYYf.js.map +0 -1
  561. package/dist/slot-CRyweuj0.js +0 -79
  562. package/dist/slot-CRyweuj0.js.map +0 -1
  563. package/dist/tabs-B0g7YtQv.js +0 -123
  564. package/dist/tabs-B0g7YtQv.js.map +0 -1
  565. package/dist/types.d.ts.map +0 -1
  566. package/dist/use-motion-value-eGwNuWuw.js +0 -14
  567. package/dist/use-motion-value-eGwNuWuw.js.map +0 -1
  568. package/dist/use-stable-ref-CYh-YkID.js +0 -11
  569. package/dist/use-stable-ref-CYh-YkID.js.map +0 -1
  570. package/dist/use-translations-DSltA7H_.js +0 -169
  571. package/dist/use-translations-DSltA7H_.js.map +0 -1
  572. /package/dist/{components → src/components}/core/heading.d.ts +0 -0
  573. /package/dist/{components → src/components}/core/heading.jsx +0 -0
  574. /package/dist/{components → src/components}/core/polymorph.d.ts +0 -0
  575. /package/dist/{components → src/components}/core/polymorph.jsx +0 -0
  576. /package/dist/{components → src/components}/core/render-on-view.d.ts +0 -0
  577. /package/dist/{components → src/components}/core/resizable.d.ts +0 -0
  578. /package/dist/{components → src/components}/core/slot.d.ts +0 -0
  579. /package/dist/{components → src/components}/core/slot.jsx +0 -0
  580. /package/dist/{components → src/components}/core/tag.d.ts +0 -0
  581. /package/dist/{components → src/components}/core/typography.d.ts +0 -0
  582. /package/dist/{components → src/components}/display/alert.d.ts +0 -0
  583. /package/dist/{components → src/components}/display/calendar.d.ts +0 -0
  584. /package/dist/{components → src/components}/display/card.d.ts +0 -0
  585. /package/dist/{components → src/components}/display/empty.d.ts +0 -0
  586. /package/dist/{components → src/components}/display/list.d.ts +0 -0
  587. /package/dist/{components → src/components}/display/shortcut.d.ts +0 -0
  588. /package/dist/{components → src/components}/display/skeleton.d.ts +0 -0
  589. /package/dist/{components → src/components}/display/spinner.d.ts +0 -0
  590. /package/dist/{components → src/components}/display/stats.d.ts +0 -0
  591. /package/dist/{components → src/components}/display/step.d.ts +0 -0
  592. /package/dist/{components → src/components}/display/tabs.d.ts +0 -0
  593. /package/dist/{components → src/components}/display/timeline.d.ts +0 -0
  594. /package/dist/{components → src/components}/floating/command-palette.d.ts +0 -0
  595. /package/dist/{components → src/components}/floating/dropdown.d.ts +0 -0
  596. /package/dist/{components → src/components}/floating/expand.d.ts +0 -0
  597. /package/dist/{components → src/components}/floating/expand.jsx +0 -0
  598. /package/dist/{components → src/components}/floating/menu.d.ts +0 -0
  599. /package/dist/{components → src/components}/floating/modal.d.ts +0 -0
  600. /package/dist/{components → src/components}/floating/toolbar.d.ts +0 -0
  601. /package/dist/{components → src/components}/floating/tooltip.d.ts +0 -0
  602. /package/dist/{components → src/components}/floating/wizard.d.ts +0 -0
  603. /package/dist/{components → src/components}/form/autocomplete.d.ts +0 -0
  604. /package/dist/{components → src/components}/form/checkbox.d.ts +0 -0
  605. /package/dist/{components → src/components}/form/date-picker.d.ts +0 -0
  606. /package/dist/{components → src/components}/form/file-upload.d.ts +0 -0
  607. /package/dist/{components → src/components}/form/form.d.ts +0 -0
  608. /package/dist/{components → src/components}/form/form.jsx +0 -0
  609. /package/dist/{components → src/components}/form/formReset.d.ts +0 -0
  610. /package/dist/{components → src/components}/form/formReset.jsx +0 -0
  611. /package/dist/{components → src/components}/form/free-text.d.ts +0 -0
  612. /package/dist/{components → src/components}/form/input-field.d.ts +0 -0
  613. /package/dist/{components → src/components}/form/input.d.ts +0 -0
  614. /package/dist/{components → src/components}/form/input.jsx +0 -0
  615. /package/dist/{components → src/components}/form/multi-select.d.ts +0 -0
  616. /package/dist/{components → src/components}/form/select.d.ts +0 -0
  617. /package/dist/{components → src/components}/form/slider.d.ts +0 -0
  618. /package/dist/{components → src/components}/form/switch.d.ts +0 -0
  619. /package/dist/{components → src/components}/form/task-list.d.ts +0 -0
  620. /package/dist/{components → src/components}/index.d.ts +0 -0
  621. /package/dist/{components → src/components}/index.js +0 -0
  622. /package/dist/{components → src/components}/page-calendar/calendar-header.d.ts +0 -0
  623. /package/dist/{components → src/components}/page-calendar/day-view.d.ts +0 -0
  624. /package/dist/{components → src/components}/page-calendar/event-pill.d.ts +0 -0
  625. /package/dist/{components → src/components}/page-calendar/index.d.ts +0 -0
  626. /package/dist/{components → src/components}/page-calendar/index.js +0 -0
  627. /package/dist/{components → src/components}/page-calendar/month-view.d.ts +0 -0
  628. /package/dist/{components → src/components}/page-calendar/page-calendar.d.ts +0 -0
  629. /package/dist/{components → src/components}/page-calendar/page-calendar.types.d.ts +0 -0
  630. /package/dist/{components → src/components}/page-calendar/page-calendar.types.js +0 -0
  631. /package/dist/{components → src/components}/page-calendar/page-calendar.utils.d.ts +0 -0
  632. /package/dist/{components → src/components}/page-calendar/page-calendar.utils.js +0 -0
  633. /package/dist/{components → src/components}/page-calendar/week-view.d.ts +0 -0
  634. /package/dist/{components → src/components}/table/filter.d.ts +0 -0
  635. /package/dist/{components → src/components}/table/group.d.ts +0 -0
  636. /package/dist/{components → src/components}/table/index.d.ts +0 -0
  637. /package/dist/{components → src/components}/table/inner-table.d.ts +0 -0
  638. /package/dist/{components → src/components}/table/metadata.d.ts +0 -0
  639. /package/dist/{components → src/components}/table/pagination.d.ts +0 -0
  640. /package/dist/{components → src/components}/table/row.d.ts +0 -0
  641. /package/dist/{components → src/components}/table/sort.d.ts +0 -0
  642. /package/dist/{components → src/components}/table/table-lib.d.ts +0 -0
  643. /package/dist/{components → src/components}/table/table-lib.js +0 -0
  644. /package/dist/{components → src/components}/table/table.context.d.ts +0 -0
  645. /package/dist/{components → src/components}/table/thead.d.ts +0 -0
  646. /package/dist/{config → src/config}/context.d.ts +0 -0
  647. /package/dist/{config → src/config}/context.js +0 -0
  648. /package/dist/{config → src/config}/default-translations.d.ts +0 -0
  649. /package/dist/{config → src/config}/default-translations.jsx +0 -0
  650. /package/dist/{config → src/config}/default-tweaks.d.ts +0 -0
  651. /package/dist/{config → src/config}/default-tweaks.js +0 -0
  652. /package/dist/{constants.d.ts → src/constants.d.ts} +0 -0
  653. /package/dist/{constants.js → src/constants.js} +0 -0
  654. /package/dist/{hooks → src/hooks}/use-click-outside.d.ts +0 -0
  655. /package/dist/{hooks → src/hooks}/use-click-outside.js +0 -0
  656. /package/dist/{hooks → src/hooks}/use-color-parser.d.ts +0 -0
  657. /package/dist/{hooks → src/hooks}/use-color-parser.js +0 -0
  658. /package/dist/{hooks → src/hooks}/use-components-provider.d.ts +0 -0
  659. /package/dist/{hooks → src/hooks}/use-components-provider.jsx +0 -0
  660. /package/dist/{hooks → src/hooks}/use-debounce.d.ts +0 -0
  661. /package/dist/{hooks → src/hooks}/use-debounce.js +0 -0
  662. /package/dist/{hooks → src/hooks}/use-floating-ref.d.ts +0 -0
  663. /package/dist/{hooks → src/hooks}/use-floating-ref.js +0 -0
  664. /package/dist/{hooks → src/hooks}/use-form.d.ts +0 -0
  665. /package/dist/{hooks → src/hooks}/use-hover.d.ts +0 -0
  666. /package/dist/{hooks → src/hooks}/use-input-id.d.ts +0 -0
  667. /package/dist/{hooks → src/hooks}/use-input-id.js +0 -0
  668. /package/dist/{hooks → src/hooks}/use-is-coarse-device.d.ts +0 -0
  669. /package/dist/{hooks → src/hooks}/use-is-coarse-device.js +0 -0
  670. /package/dist/{hooks → src/hooks}/use-locale.d.ts +0 -0
  671. /package/dist/{hooks → src/hooks}/use-locale.js +0 -0
  672. /package/dist/{hooks → src/hooks}/use-media-query.d.ts +0 -0
  673. /package/dist/{hooks → src/hooks}/use-on-event.d.ts +0 -0
  674. /package/dist/{hooks → src/hooks}/use-parent.d.ts +0 -0
  675. /package/dist/{hooks → src/hooks}/use-preferences.d.ts +0 -0
  676. /package/dist/{hooks → src/hooks}/use-preferences.js +0 -0
  677. /package/dist/{hooks → src/hooks}/use-previous.d.ts +0 -0
  678. /package/dist/{hooks → src/hooks}/use-previous.js +0 -0
  679. /package/dist/{hooks → src/hooks}/use-reactive.d.ts +0 -0
  680. /package/dist/{hooks → src/hooks}/use-reactive.js +0 -0
  681. /package/dist/{hooks → src/hooks}/use-remove-scroll.d.ts +0 -0
  682. /package/dist/{hooks → src/hooks}/use-remove-scroll.js +0 -0
  683. /package/dist/{hooks → src/hooks}/use-resize-observer.d.ts +0 -0
  684. /package/dist/{hooks → src/hooks}/use-resize-observer.js +0 -0
  685. /package/dist/{hooks → src/hooks}/use-stable-ref.d.ts +0 -0
  686. /package/dist/{hooks → src/hooks}/use-stable-ref.js +0 -0
  687. /package/dist/{hooks → src/hooks}/use-swipe.d.ts +0 -0
  688. /package/dist/{hooks → src/hooks}/use-swipe.js +0 -0
  689. /package/dist/{hooks → src/hooks}/use-translations.d.ts +0 -0
  690. /package/dist/{hooks → src/hooks}/use-translations.js +0 -0
  691. /package/dist/{hooks → src/hooks}/use-tweaks.d.ts +0 -0
  692. /package/dist/{hooks → src/hooks}/use-tweaks.js +0 -0
  693. /package/dist/{hooks → src/hooks}/use-window-size.d.ts +0 -0
  694. /package/dist/{hooks → src/hooks}/use-window-size.js +0 -0
  695. /package/dist/{index.d.ts → src/index.d.ts} +0 -0
  696. /package/dist/{lib → src/lib}/combi-keys.d.ts +0 -0
  697. /package/dist/{lib → src/lib}/combi-keys.js +0 -0
  698. /package/dist/{lib → src/lib}/dict.d.ts +0 -0
  699. /package/dist/{lib → src/lib}/dict.js +0 -0
  700. /package/dist/{lib → src/lib}/dom.d.ts +0 -0
  701. /package/dist/{lib → src/lib}/fns.d.ts +0 -0
  702. /package/dist/{lib → src/lib}/fns.js +0 -0
  703. /package/dist/{lib → src/lib}/fzf.d.ts +0 -0
  704. /package/dist/{lib → src/lib}/fzf.js +0 -0
  705. /package/dist/{lib → src/lib}/keyboard-area.d.ts +0 -0
  706. /package/dist/{lib → src/lib}/keyboard-area.js +0 -0
  707. /package/dist/{types.js → src/styles/theme.types.js} +0 -0
  708. /package/dist/{types.d.ts → src/types.d.ts} +0 -0
@@ -0,0 +1,2533 @@
1
+ import { A as e, At as t, B as n, Ct as r, Dt as i, Et as a, Ft as o, G as s, H as c, I as l, J as u, K as d, L as f, M as p, Mt as m, N as h, Ot as g, P as _, Pt as v, R as y, S as b, St as x, T as S, Tt as C, U as ee, V as te, W as w, X as ne, Y as re, Z as ie, _ as T, a as ae, b as E, c as oe, ct as se, d as ce, dt as le, et as ue, f as de, ft as D, g as fe, gt as O, h as pe, ht as me, i as he, j as ge, jt as _e, k as ve, kt as ye, l as be, lt as xe, m as Se, mt as k, n as Ce, o as we, p as Te, pt as A, q as Ee, r as De, s as Oe, st as j, t as ke, u as Ae, ut as je, v as Me, w as Ne, wt as Pe, x as Fe, xt as Ie, y as Le, yt as Re, z as ze } from "./MotionConfigContext-BORpSKe8.js";
2
+ import * as Be from "react";
3
+ import { Children as Ve, Component as He, Fragment as Ue, createContext as M, createElement as We, forwardRef as Ge, isValidElement as Ke, useCallback as qe, useContext as N, useEffect as Je, useId as Ye, useInsertionEffect as Xe, useLayoutEffect as Ze, useMemo as P, useRef as F, useState as Qe } from "react";
4
+ import { Fragment as $e, jsx as I, jsxs as et } from "react/jsx-runtime";
5
+ //#region \0rolldown/runtime.js
6
+ var tt = Object.create, L = Object.defineProperty, nt = Object.getOwnPropertyDescriptor, rt = Object.getOwnPropertyNames, it = Object.getPrototypeOf, at = Object.prototype.hasOwnProperty, ot = (e, t) => () => (e && (t = e(e = 0)), t), st = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), ct = (e, t) => {
7
+ let n = {};
8
+ for (var r in e) L(n, r, {
9
+ get: e[r],
10
+ enumerable: !0
11
+ });
12
+ return t || L(n, Symbol.toStringTag, { value: "Module" }), n;
13
+ }, lt = (e, t, n, r) => {
14
+ if (t && typeof t == "object" || typeof t == "function") for (var i = rt(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !at.call(e, s) && s !== n && L(e, s, {
15
+ get: ((e) => t[e]).bind(null, s),
16
+ enumerable: !(r = nt(t, s)) || r.enumerable
17
+ });
18
+ return e;
19
+ }, ut = (e, t, n) => (n = e == null ? {} : tt(it(e)), lt(t || !e || !e.__esModule ? L(n, "default", {
20
+ value: e,
21
+ enumerable: !0
22
+ }) : n, e)), dt = (e) => at.call(e, "module.exports") ? e["module.exports"] : lt(L({}, "__esModule", { value: !0 }), e), ft = /* @__PURE__ */ ((e) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(e, { get: (e, t) => (typeof require < "u" ? require : e)[t] }) : e)(function(e) {
23
+ if (typeof require < "u") return require.apply(this, arguments);
24
+ throw Error("Calling `require` for \"" + e + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
25
+ }), R = M({}), pt = typeof window < "u" ? Ze : Je, z = /* @__PURE__ */ M(null);
26
+ //#endregion
27
+ //#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger.mjs
28
+ function mt(e, t, n, r = 0, i = 1) {
29
+ let a = Array.from(e).sort((e, t) => e.sortNodePosition(t)).indexOf(t), o = e.size, s = (o - 1) * r;
30
+ return typeof n == "function" ? n(a, o) : i === 1 ? a * r : s - a * r;
31
+ }
32
+ //#endregion
33
+ //#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.mjs
34
+ function ht(e, t, n = {}) {
35
+ let r = u(e, t, n.type === "exit" ? e.presenceContext?.custom : void 0), { transition: i = e.getDefaultTransition() || {} } = r || {};
36
+ n.transitionOverride && (i = n.transitionOverride);
37
+ let a = r ? () => Promise.all(c(e, r, n)) : () => Promise.resolve(), o = e.variantChildren && e.variantChildren.size ? (r = 0) => {
38
+ let { delayChildren: a = 0, staggerChildren: o, staggerDirection: s } = i;
39
+ return gt(e, t, r, a, o, s, n);
40
+ } : () => Promise.resolve(), { when: s } = i;
41
+ if (s) {
42
+ let [e, t] = s === "beforeChildren" ? [a, o] : [o, a];
43
+ return e().then(() => t());
44
+ } else return Promise.all([a(), o(n.delay)]);
45
+ }
46
+ function gt(e, t, n = 0, r = 0, i = 0, a = 1, o) {
47
+ let s = [];
48
+ for (let c of e.variantChildren) c.notify("AnimationStart", t), s.push(ht(c, t, {
49
+ ...o,
50
+ delay: n + (typeof r == "function" ? 0 : r) + mt(e.variantChildren, c, r, i, a)
51
+ }).then(() => c.notify("AnimationComplete", t)));
52
+ return Promise.all(s);
53
+ }
54
+ //#endregion
55
+ //#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/animation/interfaces/visual-element.mjs
56
+ function _t(e, t, n = {}) {
57
+ e.notify("AnimationStart", t);
58
+ let r;
59
+ if (Array.isArray(t)) {
60
+ let i = t.map((t) => ht(e, t, n));
61
+ r = Promise.all(i);
62
+ } else if (typeof t == "string") r = ht(e, t, n);
63
+ else {
64
+ let i = typeof t == "function" ? u(e, t, n.custom) : t;
65
+ r = Promise.all(c(e, i, n));
66
+ }
67
+ return r.then(() => {
68
+ e.notify("AnimationComplete", t);
69
+ });
70
+ }
71
+ //#endregion
72
+ //#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/utils/is-html-element.mjs
73
+ function vt(e) {
74
+ return g(e) && "offsetHeight" in e && !("ownerSVGElement" in e);
75
+ }
76
+ //#endregion
77
+ //#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/gestures/drag/state/is-active.mjs
78
+ var B = {
79
+ x: !1,
80
+ y: !1
81
+ };
82
+ function yt() {
83
+ return B.x || B.y;
84
+ }
85
+ //#endregion
86
+ //#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/gestures/drag/state/set-active.mjs
87
+ function bt(e) {
88
+ return e === "x" || e === "y" ? B[e] ? null : (B[e] = !0, () => {
89
+ B[e] = !1;
90
+ }) : B.x || B.y ? null : (B.x = B.y = !0, () => {
91
+ B.x = B.y = !1;
92
+ });
93
+ }
94
+ //#endregion
95
+ //#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/gestures/utils/setup.mjs
96
+ function xt(e, t) {
97
+ let n = te(e), r = new AbortController();
98
+ return [
99
+ n,
100
+ {
101
+ passive: !0,
102
+ ...t,
103
+ signal: r.signal
104
+ },
105
+ () => r.abort()
106
+ ];
107
+ }
108
+ //#endregion
109
+ //#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/gestures/hover.mjs
110
+ function St(e) {
111
+ return !(e.pointerType === "touch" || yt());
112
+ }
113
+ function Ct(e, t, n = {}) {
114
+ let [r, i, a] = xt(e, n);
115
+ return r.forEach((e) => {
116
+ let n = !1, r = !1, a, o = () => {
117
+ e.removeEventListener("pointerleave", u);
118
+ }, s = (e) => {
119
+ a &&= (a(e), void 0), o();
120
+ }, c = (e) => {
121
+ n = !1, window.removeEventListener("pointerup", c), window.removeEventListener("pointercancel", c), r && (r = !1, s(e));
122
+ }, l = () => {
123
+ n = !0, window.addEventListener("pointerup", c, i), window.addEventListener("pointercancel", c, i);
124
+ }, u = (e) => {
125
+ if (e.pointerType !== "touch") {
126
+ if (n) {
127
+ r = !0;
128
+ return;
129
+ }
130
+ s(e);
131
+ }
132
+ };
133
+ e.addEventListener("pointerenter", (n) => {
134
+ if (!St(n)) return;
135
+ r = !1;
136
+ let o = t(e, n);
137
+ typeof o == "function" && (a = o, e.addEventListener("pointerleave", u, i));
138
+ }, i), e.addEventListener("pointerdown", l, i);
139
+ }), a;
140
+ }
141
+ //#endregion
142
+ //#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.mjs
143
+ var wt = (e, t) => t ? e === t ? !0 : wt(e, t.parentElement) : !1, Tt = (e) => e.pointerType === "mouse" ? typeof e.button != "number" || e.button <= 0 : e.isPrimary !== !1, Et = new Set([
144
+ "BUTTON",
145
+ "INPUT",
146
+ "SELECT",
147
+ "TEXTAREA",
148
+ "A"
149
+ ]);
150
+ function Dt(e) {
151
+ return Et.has(e.tagName) || e.isContentEditable === !0;
152
+ }
153
+ var Ot = new Set([
154
+ "INPUT",
155
+ "SELECT",
156
+ "TEXTAREA"
157
+ ]);
158
+ function kt(e) {
159
+ return Ot.has(e.tagName) || e.isContentEditable === !0;
160
+ }
161
+ //#endregion
162
+ //#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/gestures/press/utils/state.mjs
163
+ var At = /* @__PURE__ */ new WeakSet();
164
+ //#endregion
165
+ //#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.mjs
166
+ function jt(e) {
167
+ return (t) => {
168
+ t.key === "Enter" && e(t);
169
+ };
170
+ }
171
+ function Mt(e, t) {
172
+ e.dispatchEvent(new PointerEvent("pointer" + t, {
173
+ isPrimary: !0,
174
+ bubbles: !0
175
+ }));
176
+ }
177
+ var Nt = (e, t) => {
178
+ let n = e.currentTarget;
179
+ if (!n) return;
180
+ let r = jt(() => {
181
+ if (At.has(n)) return;
182
+ Mt(n, "down");
183
+ let e = jt(() => {
184
+ Mt(n, "up");
185
+ });
186
+ n.addEventListener("keyup", e, t), n.addEventListener("blur", () => Mt(n, "cancel"), t);
187
+ });
188
+ n.addEventListener("keydown", r, t), n.addEventListener("blur", () => n.removeEventListener("keydown", r), t);
189
+ };
190
+ //#endregion
191
+ //#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/gestures/press/index.mjs
192
+ function Pt(e) {
193
+ return Tt(e) && !yt();
194
+ }
195
+ var Ft = /* @__PURE__ */ new WeakSet();
196
+ function It(e, t, n = {}) {
197
+ let [r, i, a] = xt(e, n), o = (e) => {
198
+ let r = e.currentTarget;
199
+ if (!Pt(e) || Ft.has(e)) return;
200
+ At.add(r), n.stopPropagation && Ft.add(e);
201
+ let a = t(r, e), o = (e, t) => {
202
+ window.removeEventListener("pointerup", s), window.removeEventListener("pointercancel", c), At.has(r) && At.delete(r), Pt(e) && typeof a == "function" && a(e, { success: t });
203
+ }, s = (e) => {
204
+ o(e, r === window || r === document || n.useGlobalTarget || wt(r, e.target));
205
+ }, c = (e) => {
206
+ o(e, !1);
207
+ };
208
+ window.addEventListener("pointerup", s, i), window.addEventListener("pointercancel", c, i);
209
+ };
210
+ return r.forEach((e) => {
211
+ (n.useGlobalTarget ? window : e).addEventListener("pointerdown", o, i), vt(e) && (e.addEventListener("focus", (e) => Nt(e, i)), !Dt(e) && !e.hasAttribute("tabindex") && (e.tabIndex = 0));
212
+ }), a;
213
+ }
214
+ //#endregion
215
+ //#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/resize/handle-element.mjs
216
+ var Lt = /* @__PURE__ */ new WeakMap(), Rt, zt = (e, t, n) => (r, i) => i && i[0] ? i[0][e + "Size"] : ze(r) && "getBBox" in r ? r.getBBox()[t] : r[n], Bt = /* @__PURE__ */ zt("inline", "width", "offsetWidth"), Vt = /* @__PURE__ */ zt("block", "height", "offsetHeight");
217
+ function Ht({ target: e, borderBoxSize: t }) {
218
+ Lt.get(e)?.forEach((n) => {
219
+ n(e, {
220
+ get width() {
221
+ return Bt(e, t);
222
+ },
223
+ get height() {
224
+ return Vt(e, t);
225
+ }
226
+ });
227
+ });
228
+ }
229
+ function Ut(e) {
230
+ e.forEach(Ht);
231
+ }
232
+ function Wt() {
233
+ typeof ResizeObserver > "u" || (Rt = new ResizeObserver(Ut));
234
+ }
235
+ function Gt(e, t) {
236
+ Rt || Wt();
237
+ let n = te(e);
238
+ return n.forEach((e) => {
239
+ let n = Lt.get(e);
240
+ n || (n = /* @__PURE__ */ new Set(), Lt.set(e, n)), n.add(t), Rt?.observe(e);
241
+ }), () => {
242
+ n.forEach((e) => {
243
+ let n = Lt.get(e);
244
+ n?.delete(t), n?.size || Rt?.unobserve(e);
245
+ });
246
+ };
247
+ }
248
+ //#endregion
249
+ //#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/resize/handle-window.mjs
250
+ var Kt = /* @__PURE__ */ new Set(), V;
251
+ function qt() {
252
+ V = () => {
253
+ let e = {
254
+ get width() {
255
+ return window.innerWidth;
256
+ },
257
+ get height() {
258
+ return window.innerHeight;
259
+ }
260
+ };
261
+ Kt.forEach((t) => t(e));
262
+ }, window.addEventListener("resize", V);
263
+ }
264
+ function Jt(e) {
265
+ return Kt.add(e), V || qt(), () => {
266
+ Kt.delete(e), !Kt.size && typeof V == "function" && (window.removeEventListener("resize", V), V = void 0);
267
+ };
268
+ }
269
+ //#endregion
270
+ //#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/resize/index.mjs
271
+ function Yt(e, t) {
272
+ return typeof e == "function" ? Jt(e) : Gt(e, t);
273
+ }
274
+ //#endregion
275
+ //#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/render/Feature.mjs
276
+ var H = class {
277
+ constructor(e) {
278
+ this.isMounted = !1, this.node = e;
279
+ }
280
+ update() {}
281
+ }, Xt = p.length;
282
+ function Zt(e) {
283
+ if (!e) return;
284
+ if (!e.isControllingVariants) {
285
+ let t = e.parent && Zt(e.parent) || {};
286
+ return e.props.initial !== void 0 && (t.initial = e.props.initial), t;
287
+ }
288
+ let t = {};
289
+ for (let n = 0; n < Xt; n++) {
290
+ let r = p[n], i = e.props[r];
291
+ (h(i) || i === !1) && (t[r] = i);
292
+ }
293
+ return t;
294
+ }
295
+ //#endregion
296
+ //#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/render/utils/shallow-compare.mjs
297
+ function Qt(e, t) {
298
+ if (!Array.isArray(t)) return !1;
299
+ let n = t.length;
300
+ if (n !== e.length) return !1;
301
+ for (let r = 0; r < n; r++) if (t[r] !== e[r]) return !1;
302
+ return !0;
303
+ }
304
+ //#endregion
305
+ //#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/render/utils/animation-state.mjs
306
+ var $t = [...ge].reverse(), en = ge.length;
307
+ function tn(e) {
308
+ return (t) => Promise.all(t.map(({ animation: t, options: n }) => _t(e, t, n)));
309
+ }
310
+ function nn(e) {
311
+ let t = tn(e), n = an(), r = !0, i = !1, a = (t) => (n, r) => {
312
+ let i = u(e, r, t === "exit" ? e.presenceContext?.custom : void 0);
313
+ if (i) {
314
+ let { transition: e, transitionEnd: t, ...r } = i;
315
+ n = {
316
+ ...n,
317
+ ...r,
318
+ ...t
319
+ };
320
+ }
321
+ return n;
322
+ };
323
+ function o(n) {
324
+ t = n(e);
325
+ }
326
+ function s(o) {
327
+ let { props: s } = e, c = Zt(e.parent) || {}, l = [], d = /* @__PURE__ */ new Set(), f = {}, p = Infinity;
328
+ for (let t = 0; t < en; t++) {
329
+ let m = $t[t], g = n[m], v = s[m] === void 0 ? c[m] : s[m], y = h(v), b = m === o ? g.isActive : null;
330
+ b === !1 && (p = t);
331
+ let x = v === c[m] && v !== s[m] && y;
332
+ if (x && (r || i) && e.manuallyAnimateOnMount && (x = !1), g.protectedKeys = { ...f }, !g.isActive && b === null || !v && !g.prevProp || _(v) || typeof v == "boolean") continue;
333
+ if (m === "exit" && g.isActive && b !== !0) {
334
+ g.prevResolvedValues && (f = {
335
+ ...f,
336
+ ...g.prevResolvedValues
337
+ });
338
+ continue;
339
+ }
340
+ let S = rn(g.prevProp, v), C = S || m === o && g.isActive && !x && y || t > p && y, ee = !1, te = Array.isArray(v) ? v : [v], w = te.reduce(a(m), {});
341
+ b === !1 && (w = {});
342
+ let { prevResolvedValues: ne = {} } = g, re = {
343
+ ...ne,
344
+ ...w
345
+ }, ie = (t) => {
346
+ C = !0, d.has(t) && (ee = !0, d.delete(t)), g.needsAnimating[t] = !0;
347
+ let n = e.getValue(t);
348
+ n && (n.liveStyle = !1);
349
+ };
350
+ for (let e in re) {
351
+ let t = w[e], n = ne[e];
352
+ if (f.hasOwnProperty(e)) continue;
353
+ let r = !1;
354
+ r = Ee(t) && Ee(n) ? !Qt(t, n) || S : t !== n, r ? t == null ? d.add(e) : ie(e) : t !== void 0 && d.has(e) ? ie(e) : g.protectedKeys[e] = !0;
355
+ }
356
+ g.prevProp = v, g.prevResolvedValues = w, g.isActive && (f = {
357
+ ...f,
358
+ ...w
359
+ }), (r || i) && e.blockInitialAnimation && (C = !1);
360
+ let T = x && S;
361
+ C && (!T || ee) && l.push(...te.map((t) => {
362
+ let n = { type: m };
363
+ if (typeof t == "string" && (r || i) && !T && e.manuallyAnimateOnMount && e.parent) {
364
+ let { parent: r } = e, i = u(r, t);
365
+ if (r.enteringChildren && i) {
366
+ let { delayChildren: t } = i.transition || {};
367
+ n.delay = mt(r.enteringChildren, e, t);
368
+ }
369
+ }
370
+ return {
371
+ animation: t,
372
+ options: n
373
+ };
374
+ }));
375
+ }
376
+ if (d.size) {
377
+ let t = {};
378
+ if (typeof s.initial != "boolean") {
379
+ let n = u(e, Array.isArray(s.initial) ? s.initial[0] : s.initial);
380
+ n && n.transition && (t.transition = n.transition);
381
+ }
382
+ d.forEach((n) => {
383
+ let r = e.getBaseTarget(n), i = e.getValue(n);
384
+ i && (i.liveStyle = !0), t[n] = r ?? null;
385
+ }), l.push({ animation: t });
386
+ }
387
+ let m = !!l.length;
388
+ return r && (s.initial === !1 || s.initial === s.animate) && !e.manuallyAnimateOnMount && (m = !1), r = !1, i = !1, m ? t(l) : Promise.resolve();
389
+ }
390
+ function c(t, r) {
391
+ if (n[t].isActive === r) return Promise.resolve();
392
+ e.variantChildren?.forEach((e) => e.animationState?.setActive(t, r)), n[t].isActive = r;
393
+ let i = s(t);
394
+ for (let e in n) n[e].protectedKeys = {};
395
+ return i;
396
+ }
397
+ return {
398
+ animateChanges: s,
399
+ setActive: c,
400
+ setAnimateFunction: o,
401
+ getState: () => n,
402
+ reset: () => {
403
+ n = an(), i = !0;
404
+ }
405
+ };
406
+ }
407
+ function rn(e, t) {
408
+ return typeof t == "string" ? t !== e : Array.isArray(t) ? !Qt(t, e) : !1;
409
+ }
410
+ function U(e = !1) {
411
+ return {
412
+ isActive: e,
413
+ protectedKeys: {},
414
+ needsAnimating: {},
415
+ prevResolvedValues: {}
416
+ };
417
+ }
418
+ function an() {
419
+ return {
420
+ animate: U(!0),
421
+ whileInView: U(),
422
+ whileHover: U(),
423
+ whileTap: U(),
424
+ whileDrag: U(),
425
+ whileFocus: U(),
426
+ exit: U()
427
+ };
428
+ }
429
+ //#endregion
430
+ //#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/projection/geometry/copy.mjs
431
+ function on(e, t) {
432
+ e.min = t.min, e.max = t.max;
433
+ }
434
+ function W(e, t) {
435
+ on(e.x, t.x), on(e.y, t.y);
436
+ }
437
+ function sn(e, t) {
438
+ e.translate = t.translate, e.scale = t.scale, e.originPoint = t.originPoint, e.origin = t.origin;
439
+ }
440
+ //#endregion
441
+ //#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/projection/geometry/delta-calc.mjs
442
+ var cn = .9999, ln = 1.0001, un = -.01, dn = .01;
443
+ function G(e) {
444
+ return e.max - e.min;
445
+ }
446
+ function fn(e, t, n) {
447
+ return Math.abs(e - t) <= n;
448
+ }
449
+ function pn(e, t, n, r = .5) {
450
+ e.origin = r, e.originPoint = j(t.min, t.max, e.origin), e.scale = G(n) / G(t), e.translate = j(n.min, n.max, e.origin) - e.originPoint, (e.scale >= cn && e.scale <= ln || isNaN(e.scale)) && (e.scale = 1), (e.translate >= un && e.translate <= dn || isNaN(e.translate)) && (e.translate = 0);
451
+ }
452
+ function K(e, t, n, r) {
453
+ pn(e.x, t.x, n.x, r ? r.originX : void 0), pn(e.y, t.y, n.y, r ? r.originY : void 0);
454
+ }
455
+ function mn(e, t, n, r = 0) {
456
+ e.min = (r ? j(n.min, n.max, r) : n.min) + t.min, e.max = e.min + G(t);
457
+ }
458
+ function hn(e, t, n, r) {
459
+ mn(e.x, t.x, n.x, r?.x), mn(e.y, t.y, n.y, r?.y);
460
+ }
461
+ function gn(e, t, n, r = 0) {
462
+ let i = r ? j(n.min, n.max, r) : n.min;
463
+ e.min = t.min - i, e.max = e.min + G(t);
464
+ }
465
+ function _n(e, t, n, r) {
466
+ gn(e.x, t.x, n.x, r?.x), gn(e.y, t.y, n.y, r?.y);
467
+ }
468
+ //#endregion
469
+ //#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/projection/geometry/delta-remove.mjs
470
+ function vn(e, t, n, r, i) {
471
+ return e -= t, e = pe(e, 1 / n, r), i !== void 0 && (e = pe(e, 1 / i, r)), e;
472
+ }
473
+ function yn(e, t = 0, n = 1, r = .5, i, a = e, o = e) {
474
+ if (se.test(t) && (t = parseFloat(t), t = j(o.min, o.max, t / 100) - o.min), typeof t != "number") return;
475
+ let s = j(a.min, a.max, r);
476
+ e === a && (s -= t), e.min = vn(e.min, t, n, s, i), e.max = vn(e.max, t, n, s, i);
477
+ }
478
+ function bn(e, t, [n, r, i], a, o) {
479
+ yn(e, t[n], t[r], t[i], t.scale, a, o);
480
+ }
481
+ var xn = [
482
+ "x",
483
+ "scaleX",
484
+ "originX"
485
+ ], Sn = [
486
+ "y",
487
+ "scaleY",
488
+ "originY"
489
+ ];
490
+ function Cn(e, t, n, r) {
491
+ bn(e.x, t, xn, n ? n.x : void 0, r ? r.x : void 0), bn(e.y, t, Sn, n ? n.y : void 0, r ? r.y : void 0);
492
+ }
493
+ //#endregion
494
+ //#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/projection/geometry/utils.mjs
495
+ function wn(e) {
496
+ return e.translate === 0 && e.scale === 1;
497
+ }
498
+ function Tn(e) {
499
+ return wn(e.x) && wn(e.y);
500
+ }
501
+ function En(e, t) {
502
+ return e.min === t.min && e.max === t.max;
503
+ }
504
+ function Dn(e, t) {
505
+ return En(e.x, t.x) && En(e.y, t.y);
506
+ }
507
+ function On(e, t) {
508
+ return Math.round(e.min) === Math.round(t.min) && Math.round(e.max) === Math.round(t.max);
509
+ }
510
+ function kn(e, t) {
511
+ return On(e.x, t.x) && On(e.y, t.y);
512
+ }
513
+ function An(e) {
514
+ return G(e.x) / G(e.y);
515
+ }
516
+ function jn(e, t) {
517
+ return e.translate === t.translate && e.scale === t.scale && e.originPoint === t.originPoint;
518
+ }
519
+ //#endregion
520
+ //#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/projection/utils/each-axis.mjs
521
+ function q(e) {
522
+ return [e("x"), e("y")];
523
+ }
524
+ //#endregion
525
+ //#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/projection/styles/transform.mjs
526
+ function Mn(e, t, n) {
527
+ let r = "", i = e.x.translate / t.x, a = e.y.translate / t.y, o = n?.z || 0;
528
+ if ((i || a || o) && (r = `translate3d(${i}px, ${a}px, ${o}px) `), (t.x !== 1 || t.y !== 1) && (r += `scale(${1 / t.x}, ${1 / t.y}) `), n) {
529
+ let { transformPerspective: e, rotate: t, pathRotation: i, rotateX: a, rotateY: o, skewX: s, skewY: c } = n;
530
+ e && (r = `perspective(${e}px) ${r}`), t && (r += `rotate(${t}deg) `), i && (r += `rotate(${i}deg) `), a && (r += `rotateX(${a}deg) `), o && (r += `rotateY(${o}deg) `), s && (r += `skewX(${s}deg) `), c && (r += `skewY(${c}deg) `);
531
+ }
532
+ let s = e.x.scale * t.x, c = e.y.scale * t.y;
533
+ return (s !== 1 || c !== 1) && (r += `scale(${s}, ${c})`), r || "none";
534
+ }
535
+ //#endregion
536
+ //#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/projection/animation/mix-values.mjs
537
+ var Nn = [
538
+ "borderTopLeftRadius",
539
+ "borderTopRightRadius",
540
+ "borderBottomLeftRadius",
541
+ "borderBottomRightRadius"
542
+ ], Pn = Nn.length, Fn = (e) => typeof e == "string" ? parseFloat(e) : e, In = (e) => typeof e == "number" || xe.test(e);
543
+ function Ln(e, t, n, r, i, a) {
544
+ i ? (e.opacity = j(0, n.opacity ?? 1, zn(r)), e.opacityExit = j(t.opacity ?? 1, 0, Bn(r))) : a && (e.opacity = j(t.opacity ?? 1, n.opacity ?? 1, r));
545
+ for (let i = 0; i < Pn; i++) {
546
+ let a = Nn[i], o = Rn(t, a), s = Rn(n, a);
547
+ o === void 0 && s === void 0 || (o ||= 0, s ||= 0, o === 0 || s === 0 || In(o) === In(s) ? (e[a] = Math.max(j(Fn(o), Fn(s), r), 0), (se.test(s) || se.test(o)) && (e[a] += "%")) : e[a] = s);
548
+ }
549
+ (t.rotate || n.rotate) && (e.rotate = j(t.rotate || 0, n.rotate || 0, r));
550
+ }
551
+ function Rn(e, t) {
552
+ return e[t] === void 0 ? e.borderRadius : e[t];
553
+ }
554
+ var zn = /* @__PURE__ */ Vn(0, .5, Re), Bn = /* @__PURE__ */ Vn(.5, .95, i);
555
+ function Vn(e, t, n) {
556
+ return (r) => r < e ? 0 : r > t ? 1 : n(C(e, t, r));
557
+ }
558
+ //#endregion
559
+ //#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/events/add-dom-event.mjs
560
+ function J(e, t, n, r = { passive: !0 }) {
561
+ return e.addEventListener(t, n, r), () => e.removeEventListener(t, n);
562
+ }
563
+ //#endregion
564
+ //#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/projection/utils/compare-by-depth.mjs
565
+ var Hn = (e, t) => e.depth - t.depth, Un = class {
566
+ constructor() {
567
+ this.children = [], this.isDirty = !1;
568
+ }
569
+ add(e) {
570
+ m(this.children, e), this.isDirty = !0;
571
+ }
572
+ remove(e) {
573
+ v(this.children, e), this.isDirty = !0;
574
+ }
575
+ forEach(e) {
576
+ this.isDirty && this.children.sort(Hn), this.isDirty = !1, this.children.forEach(e);
577
+ }
578
+ };
579
+ //#endregion
580
+ //#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/utils/delay.mjs
581
+ function Wn(e, t) {
582
+ let n = le.now(), r = ({ timestamp: i }) => {
583
+ let a = i - n;
584
+ a >= t && (D(r), e(a - t));
585
+ };
586
+ return A.setup(r, !0), () => D(r);
587
+ }
588
+ //#endregion
589
+ //#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.mjs
590
+ function Gn(e) {
591
+ return d(e) ? e.get() : e;
592
+ }
593
+ //#endregion
594
+ //#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/projection/shared/stack.mjs
595
+ var Kn = class {
596
+ constructor() {
597
+ this.members = [];
598
+ }
599
+ add(e) {
600
+ m(this.members, e);
601
+ for (let t = this.members.length - 1; t >= 0; t--) {
602
+ let n = this.members[t];
603
+ if (n === e || n === this.lead || n === this.prevLead) continue;
604
+ let r = n.instance;
605
+ (!r || r.isConnected === !1) && !n.snapshot && (v(this.members, n), n.unmount());
606
+ }
607
+ e.scheduleRender();
608
+ }
609
+ remove(e) {
610
+ if (v(this.members, e), e === this.prevLead && (this.prevLead = void 0), e === this.lead) {
611
+ let e = this.members[this.members.length - 1];
612
+ e && this.promote(e);
613
+ }
614
+ }
615
+ relegate(e) {
616
+ for (let t = this.members.indexOf(e) - 1; t >= 0; t--) {
617
+ let e = this.members[t];
618
+ if (e.isPresent !== !1 && e.instance?.isConnected !== !1) return this.promote(e), !0;
619
+ }
620
+ return !1;
621
+ }
622
+ promote(e, t) {
623
+ let n = this.lead;
624
+ if (e !== n && (this.prevLead = n, this.lead = e, e.show(), n)) {
625
+ n.updateSnapshot(), e.scheduleRender();
626
+ let { layoutDependency: r } = n.options, { layoutDependency: i } = e.options;
627
+ (r === void 0 || r !== i) && (e.resumeFrom = n, t && (n.preserveOpacity = !0), n.snapshot && (e.snapshot = n.snapshot, e.snapshot.latestValues = n.animationValues || n.latestValues), e.root?.isUpdating && (e.isLayoutDirty = !0)), e.options.crossfade === !1 && n.hide();
628
+ }
629
+ }
630
+ exitAnimationComplete() {
631
+ this.members.forEach((e) => {
632
+ e.options.onExitComplete?.(), e.resumingFrom?.options.onExitComplete?.();
633
+ });
634
+ }
635
+ scheduleRender() {
636
+ this.members.forEach((e) => e.instance && e.scheduleRender(!1));
637
+ }
638
+ removeLeadSnapshot() {
639
+ this.lead?.snapshot && (this.lead.snapshot = void 0);
640
+ }
641
+ }, qn = {
642
+ hasAnimatedSinceResize: !0,
643
+ hasEverUpdated: !1
644
+ }, Y = {
645
+ nodes: 0,
646
+ calculatedTargetDeltas: 0,
647
+ calculatedProjections: 0
648
+ }, Jn = [
649
+ "",
650
+ "X",
651
+ "Y",
652
+ "Z"
653
+ ], Yn = 1e3, Xn = 0;
654
+ function Zn(e, t, n, r) {
655
+ let { latestValues: i } = t;
656
+ i[e] && (n[e] = i[e], t.setStaticValue(e, 0), r && (r[e] = 0));
657
+ }
658
+ function Qn(e) {
659
+ if (e.hasCheckedOptimisedAppear = !0, e.root === e) return;
660
+ let { visualElement: t } = e.options;
661
+ if (!t) return;
662
+ let n = ee(t);
663
+ if (window.MotionHasOptimisedAnimation(n, "transform")) {
664
+ let { layout: t, layoutId: r } = e.options;
665
+ window.MotionCancelOptimisedAnimation(n, "transform", A, !(t || r));
666
+ }
667
+ let { parent: r } = e;
668
+ r && !r.hasCheckedOptimisedAppear && Qn(r);
669
+ }
670
+ function $n({ attachResizeListener: e, defaultParent: t, measureScroll: r, checkIsScrollRoot: i, resetTransform: a }) {
671
+ return class {
672
+ constructor(e = {}, n = t?.()) {
673
+ this.id = Xn++, this.animationId = 0, this.animationCommitId = 0, this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.isProjectionDirty = !1, this.isSharedProjectionDirty = !1, this.isTransformDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.hasCheckedOptimisedAppear = !1, this.treeScale = {
674
+ x: 1,
675
+ y: 1
676
+ }, this.eventHandlers = /* @__PURE__ */ new Map(), this.hasTreeAnimated = !1, this.layoutVersion = 0, this.updateScheduled = !1, this.scheduleUpdate = () => this.update(), this.projectionUpdateScheduled = !1, this.checkUpdateFailed = () => {
677
+ this.isUpdating && (this.isUpdating = !1, this.clearAllSnapshots());
678
+ }, this.updateProjection = () => {
679
+ this.projectionUpdateScheduled = !1, O.value && (Y.nodes = Y.calculatedTargetDeltas = Y.calculatedProjections = 0), this.nodes.forEach(nr), this.nodes.forEach(dr), this.nodes.forEach(fr), this.nodes.forEach(rr), O.addProjectionMetrics && O.addProjectionMetrics(Y);
680
+ }, this.resolvedRelativeTargetAt = 0, this.linkedParentVersion = 0, this.hasProjected = !1, this.isVisible = !0, this.animationProgress = 0, this.sharedNodes = /* @__PURE__ */ new Map(), this.latestValues = e, this.root = n ? n.root || n : this, this.path = n ? [...n.path, n] : [], this.parent = n, this.depth = n ? n.depth + 1 : 0;
681
+ for (let e = 0; e < this.path.length; e++) this.path[e].shouldResetTransform = !0;
682
+ this.root === this && (this.nodes = new Un());
683
+ }
684
+ addEventListener(e, t) {
685
+ return this.eventHandlers.has(e) || this.eventHandlers.set(e, new Pe()), this.eventHandlers.get(e).add(t);
686
+ }
687
+ notifyListeners(e, ...t) {
688
+ let n = this.eventHandlers.get(e);
689
+ n && n.notify(...t);
690
+ }
691
+ hasListeners(e) {
692
+ return this.eventHandlers.has(e);
693
+ }
694
+ mount(t) {
695
+ if (this.instance) return;
696
+ this.isSVG = ze(t) && !y(t), this.instance = t;
697
+ let { layoutId: n, layout: r, visualElement: i } = this.options;
698
+ if (i && !i.current && i.mount(t), this.root.nodes.add(this), this.parent && this.parent.children.add(this), this.root.hasTreeAnimated && (r || n) && (this.isLayoutDirty = !0), e) {
699
+ let n, r = 0, i = () => this.root.updateBlockedByResize = !1;
700
+ A.read(() => {
701
+ r = window.innerWidth;
702
+ }), e(t, () => {
703
+ let e = window.innerWidth;
704
+ e !== r && (r = e, this.root.updateBlockedByResize = !0, n && n(), n = Wn(i, 250), qn.hasAnimatedSinceResize && (qn.hasAnimatedSinceResize = !1, this.nodes.forEach(ur)));
705
+ });
706
+ }
707
+ n && this.root.registerSharedNode(n, this), this.options.animate !== !1 && i && (n || r) && this.addEventListener("didUpdate", ({ delta: e, hasLayoutChanged: t, hasRelativeLayoutChanged: n, layout: r }) => {
708
+ if (this.isTreeAnimationBlocked()) {
709
+ this.target = void 0, this.relativeTarget = void 0;
710
+ return;
711
+ }
712
+ let a = this.options.transition || i.getDefaultTransition() || yr, { onLayoutAnimationStart: o, onLayoutAnimationComplete: s } = i.getProps(), c = !this.targetLayout || !kn(this.targetLayout, r), l = !t && n;
713
+ if (this.options.layoutRoot || this.resumeFrom || l || t && (c || !this.currentAnimation)) {
714
+ this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0);
715
+ let t = {
716
+ ...ie(a, "layout"),
717
+ onPlay: o,
718
+ onComplete: s
719
+ };
720
+ (i.shouldReduceMotion || this.options.layoutRoot) && (t.delay = 0, t.type = !1), this.startAnimation(t), this.setAnimationOrigin(e, l, t.path);
721
+ } else t || ur(this), this.isLead() && this.options.onExitComplete && this.options.onExitComplete();
722
+ this.targetLayout = r;
723
+ });
724
+ }
725
+ unmount() {
726
+ this.options.layoutId && this.willUpdate(), this.root.nodes.remove(this);
727
+ let e = this.getStack();
728
+ e && e.remove(this), this.parent && this.parent.children.delete(this), this.instance = void 0, this.eventHandlers.clear(), D(this.updateProjection);
729
+ }
730
+ blockUpdate() {
731
+ this.updateManuallyBlocked = !0;
732
+ }
733
+ unblockUpdate() {
734
+ this.updateManuallyBlocked = !1;
735
+ }
736
+ isUpdateBlocked() {
737
+ return this.updateManuallyBlocked || this.updateBlockedByResize;
738
+ }
739
+ isTreeAnimationBlocked() {
740
+ return this.isAnimationBlocked || this.parent && this.parent.isTreeAnimationBlocked() || !1;
741
+ }
742
+ startUpdate() {
743
+ this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(pr), this.animationId++);
744
+ }
745
+ getTransformTemplate() {
746
+ let { visualElement: e } = this.options;
747
+ return e && e.getProps().transformTemplate;
748
+ }
749
+ willUpdate(e = !0) {
750
+ if (this.root.hasTreeAnimated = !0, this.root.isUpdateBlocked()) {
751
+ this.options.onExitComplete && this.options.onExitComplete();
752
+ return;
753
+ }
754
+ if (window.MotionCancelOptimisedAnimation && !this.hasCheckedOptimisedAppear && Qn(this), !this.root.isUpdating && this.root.startUpdate(), this.isLayoutDirty) return;
755
+ this.isLayoutDirty = !0;
756
+ for (let e = 0; e < this.path.length; e++) {
757
+ let t = this.path[e];
758
+ t.shouldResetTransform = !0, (typeof t.latestValues.x == "string" || typeof t.latestValues.y == "string") && (t.isLayoutDirty = !0), t.updateScroll("snapshot"), t.options.layoutRoot && t.willUpdate(!1);
759
+ }
760
+ let { layoutId: t, layout: n } = this.options;
761
+ if (t === void 0 && !n) return;
762
+ let r = this.getTransformTemplate();
763
+ this.prevTransformTemplateValue = r ? r(this.latestValues, "") : void 0, this.updateSnapshot(), e && this.notifyListeners("willUpdate");
764
+ }
765
+ update() {
766
+ if (this.updateScheduled = !1, this.isUpdateBlocked()) {
767
+ let e = this.updateBlockedByResize;
768
+ this.unblockUpdate(), this.updateBlockedByResize = !1, this.clearAllSnapshots(), e && this.nodes.forEach(or), this.nodes.forEach(ar);
769
+ return;
770
+ }
771
+ if (this.animationId <= this.animationCommitId) {
772
+ this.nodes.forEach(sr);
773
+ return;
774
+ }
775
+ this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach(cr), this.nodes.forEach(lr), this.nodes.forEach(er), this.nodes.forEach(tr)) : this.nodes.forEach(sr), this.clearAllSnapshots();
776
+ let e = le.now();
777
+ k.delta = _e(0, 1e3 / 60, e - k.timestamp), k.timestamp = e, k.isProcessing = !0, me.update.process(k), me.preRender.process(k), me.render.process(k), k.isProcessing = !1;
778
+ }
779
+ didUpdate() {
780
+ this.updateScheduled || (this.updateScheduled = !0, n.read(this.scheduleUpdate));
781
+ }
782
+ clearAllSnapshots() {
783
+ this.nodes.forEach(ir), this.sharedNodes.forEach(mr);
784
+ }
785
+ scheduleUpdateProjection() {
786
+ this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, A.preRender(this.updateProjection, !1, !0));
787
+ }
788
+ scheduleCheckAfterUnmount() {
789
+ A.postRender(() => {
790
+ this.isLayoutDirty ? this.root.didUpdate() : this.root.checkUpdateFailed();
791
+ });
792
+ }
793
+ updateSnapshot() {
794
+ this.snapshot || !this.instance || (this.snapshot = this.measure(), this.snapshot && !G(this.snapshot.measuredBox.x) && !G(this.snapshot.measuredBox.y) && (this.snapshot = void 0));
795
+ }
796
+ updateLayout() {
797
+ if (!this.instance || (this.updateScroll(), !(this.options.alwaysMeasureLayout && this.isLead()) && !this.isLayoutDirty)) return;
798
+ if (this.resumeFrom && !this.resumeFrom.instance) for (let e = 0; e < this.path.length; e++) this.path[e].updateScroll();
799
+ let e = this.layout;
800
+ this.layout = this.measure(!1), this.layoutVersion++, this.layoutCorrected ||= l(), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox);
801
+ let { visualElement: t } = this.options;
802
+ t && t.notify("LayoutMeasure", this.layout.layoutBox, e ? e.layoutBox : void 0);
803
+ }
804
+ updateScroll(e = "measure") {
805
+ let t = !!(this.options.layoutScroll && this.instance);
806
+ if (this.scroll && this.scroll.animationId === this.root.animationId && this.scroll.phase === e && (t = !1), t && this.instance) {
807
+ let t = i(this.instance);
808
+ this.scroll = {
809
+ animationId: this.root.animationId,
810
+ phase: e,
811
+ isRoot: t,
812
+ offset: r(this.instance),
813
+ wasRoot: this.scroll ? this.scroll.isRoot : t
814
+ };
815
+ }
816
+ }
817
+ resetTransform() {
818
+ if (!a) return;
819
+ let e = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout, t = this.projectionDelta && !Tn(this.projectionDelta), n = this.getTransformTemplate(), r = n ? n(this.latestValues, "") : void 0, i = r !== this.prevTransformTemplateValue;
820
+ e && this.instance && (t || E(this.latestValues) || i) && (a(this.instance, r), this.shouldResetTransform = !1, this.scheduleRender());
821
+ }
822
+ measure(e = !0) {
823
+ let t = this.measurePageBox(), n = this.removeElementScroll(t);
824
+ return e && (n = this.removeTransform(n)), Cr(n), {
825
+ animationId: this.root.animationId,
826
+ measuredBox: t,
827
+ layoutBox: n,
828
+ latestValues: {},
829
+ source: this.id
830
+ };
831
+ }
832
+ measurePageBox() {
833
+ let { visualElement: e } = this.options;
834
+ if (!e) return l();
835
+ let t = e.measureViewportBox();
836
+ if (!(this.scroll?.wasRoot || this.path.some(Tr))) {
837
+ let { scroll: e } = this.root;
838
+ e && (T(t.x, e.offset.x), T(t.y, e.offset.y));
839
+ }
840
+ return t;
841
+ }
842
+ removeElementScroll(e) {
843
+ let t = l();
844
+ if (W(t, e), this.scroll?.wasRoot) return t;
845
+ for (let n = 0; n < this.path.length; n++) {
846
+ let r = this.path[n], { scroll: i, options: a } = r;
847
+ r !== this.root && i && a.layoutScroll && (i.wasRoot && W(t, e), T(t.x, i.offset.x), T(t.y, i.offset.y));
848
+ }
849
+ return t;
850
+ }
851
+ applyTransform(e, t = !1, n) {
852
+ let r = n || l();
853
+ W(r, e);
854
+ for (let e = 0; e < this.path.length; e++) {
855
+ let n = this.path[e];
856
+ !t && n.options.layoutScroll && n.scroll && n !== n.root && (T(r.x, -n.scroll.offset.x), T(r.y, -n.scroll.offset.y)), E(n.latestValues) && fe(r, n.latestValues, n.layout?.layoutBox);
857
+ }
858
+ return E(this.latestValues) && fe(r, this.latestValues, this.layout?.layoutBox), r;
859
+ }
860
+ removeTransform(e) {
861
+ let t = l();
862
+ W(t, e);
863
+ for (let e = 0; e < this.path.length; e++) {
864
+ let n = this.path[e];
865
+ if (!E(n.latestValues)) continue;
866
+ let r;
867
+ n.instance && (Le(n.latestValues) && n.updateSnapshot(), r = l(), W(r, n.measurePageBox())), Cn(t, n.latestValues, n.snapshot?.layoutBox, r);
868
+ }
869
+ return E(this.latestValues) && Cn(t, this.latestValues), t;
870
+ }
871
+ setTargetDelta(e) {
872
+ this.targetDelta = e, this.root.scheduleUpdateProjection(), this.isProjectionDirty = !0;
873
+ }
874
+ setOptions(e) {
875
+ this.options = {
876
+ ...this.options,
877
+ ...e,
878
+ crossfade: e.crossfade === void 0 ? !0 : e.crossfade
879
+ };
880
+ }
881
+ clearMeasurements() {
882
+ 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;
883
+ }
884
+ forceRelativeParentToResolveTarget() {
885
+ this.relativeParent && this.relativeParent.resolvedRelativeTargetAt !== k.timestamp && this.relativeParent.resolveTargetDelta(!0);
886
+ }
887
+ resolveTargetDelta(e = !1) {
888
+ let t = this.getLead();
889
+ this.isProjectionDirty ||= t.isProjectionDirty, this.isTransformDirty ||= t.isTransformDirty, this.isSharedProjectionDirty ||= t.isSharedProjectionDirty;
890
+ let n = !!this.resumingFrom || this !== t;
891
+ if (!(e || n && this.isSharedProjectionDirty || this.isProjectionDirty || this.parent?.isProjectionDirty || this.attemptToResolveRelativeTarget || this.root.updateBlockedByResize)) return;
892
+ let { layout: r, layoutId: i } = this.options;
893
+ if (!this.layout || !(r || i)) return;
894
+ this.resolvedRelativeTargetAt = k.timestamp;
895
+ let a = this.getClosestProjectingParent();
896
+ a && this.linkedParentVersion !== a.layoutVersion && !a.options.layoutRoot && this.removeRelativeTarget(), !this.targetDelta && !this.relativeTarget && (this.options.layoutAnchor !== !1 && a && a.layout ? this.createRelativeTarget(a, this.layout.layoutBox, a.layout.layoutBox) : this.removeRelativeTarget()), !(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target = l(), this.targetWithTransforms = l()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), hn(this.target, this.relativeTarget, this.relativeParent.target, this.options.layoutAnchor || void 0)) : this.targetDelta ? (this.resumingFrom ? this.applyTransform(this.layout.layoutBox, !1, this.target) : W(this.target, this.layout.layoutBox), Te(this.target, this.targetDelta)) : W(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget && (this.attemptToResolveRelativeTarget = !1, this.options.layoutAnchor !== !1 && a && !!a.resumingFrom == !!this.resumingFrom && !a.options.layoutScroll && a.target && this.animationProgress !== 1 ? this.createRelativeTarget(a, this.target, a.target) : this.relativeParent = this.relativeTarget = void 0), O.value && Y.calculatedTargetDeltas++);
897
+ }
898
+ getClosestProjectingParent() {
899
+ if (!(!this.parent || Le(this.parent.latestValues) || Me(this.parent.latestValues))) return this.parent.isProjecting() ? this.parent : this.parent.getClosestProjectingParent();
900
+ }
901
+ isProjecting() {
902
+ return !!((this.relativeTarget || this.targetDelta || this.options.layoutRoot) && this.layout);
903
+ }
904
+ createRelativeTarget(e, t, n) {
905
+ this.relativeParent = e, this.linkedParentVersion = e.layoutVersion, this.forceRelativeParentToResolveTarget(), this.relativeTarget = l(), this.relativeTargetOrigin = l(), _n(this.relativeTargetOrigin, t, n, this.options.layoutAnchor || void 0), W(this.relativeTarget, this.relativeTargetOrigin);
906
+ }
907
+ removeRelativeTarget() {
908
+ this.relativeParent = this.relativeTarget = void 0;
909
+ }
910
+ calcProjection() {
911
+ let e = this.getLead(), t = !!this.resumingFrom || this !== e, n = !0;
912
+ if ((this.isProjectionDirty || this.parent?.isProjectionDirty) && (n = !1), t && (this.isSharedProjectionDirty || this.isTransformDirty) && (n = !1), this.resolvedRelativeTargetAt === k.timestamp && (n = !1), n) return;
913
+ let { layout: r, layoutId: i } = this.options;
914
+ if (this.isTreeAnimating = !!(this.parent && this.parent.isTreeAnimating || this.currentAnimation || this.pendingAnimation), this.isTreeAnimating || (this.targetDelta = this.relativeTarget = void 0), !this.layout || !(r || i)) return;
915
+ W(this.layoutCorrected, this.layout.layoutBox);
916
+ let a = this.treeScale.x, o = this.treeScale.y;
917
+ Se(this.layoutCorrected, this.treeScale, this.path, t), e.layout && !e.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (e.target = e.layout.layoutBox, e.targetWithTransforms = l());
918
+ let { target: s } = e;
919
+ if (!s) {
920
+ this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
921
+ return;
922
+ }
923
+ !this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (sn(this.prevProjectionDelta.x, this.projectionDelta.x), sn(this.prevProjectionDelta.y, this.projectionDelta.y)), K(this.projectionDelta, this.layoutCorrected, s, this.latestValues), (this.treeScale.x !== a || this.treeScale.y !== o || !jn(this.projectionDelta.x, this.prevProjectionDelta.x) || !jn(this.projectionDelta.y, this.prevProjectionDelta.y)) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", s)), O.value && Y.calculatedProjections++;
924
+ }
925
+ hide() {
926
+ this.isVisible = !1;
927
+ }
928
+ show() {
929
+ this.isVisible = !0;
930
+ }
931
+ scheduleRender(e = !0) {
932
+ if (this.options.visualElement?.scheduleRender(), e) {
933
+ let e = this.getStack();
934
+ e && e.scheduleRender();
935
+ }
936
+ this.resumingFrom && !this.resumingFrom.instance && (this.resumingFrom = void 0);
937
+ }
938
+ createProjectionDeltas() {
939
+ this.prevProjectionDelta = f(), this.projectionDelta = f(), this.projectionDeltaWithTransform = f();
940
+ }
941
+ setAnimationOrigin(e, t = !1, n) {
942
+ let r = this.snapshot, i = r ? r.latestValues : {}, a = { ...this.latestValues }, o = f();
943
+ (!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !t;
944
+ let s = l(), c = (r ? r.source : void 0) !== (this.layout ? this.layout.source : void 0), u = this.getStack(), d = !u || u.members.length <= 1, p = !!(c && !d && this.options.crossfade === !0 && !this.path.some(vr));
945
+ this.animationProgress = 0;
946
+ let m, h = n?.interpolateProjection(e);
947
+ this.mixTargetDelta = (t) => {
948
+ let n = t / 1e3, r = h?.(n);
949
+ r ? (o.x.translate = r.x, o.x.scale = j(e.x.scale, 1, n), o.x.origin = e.x.origin, o.x.originPoint = e.x.originPoint, o.y.translate = r.y, o.y.scale = j(e.y.scale, 1, n), o.y.origin = e.y.origin, o.y.originPoint = e.y.originPoint) : (hr(o.x, e.x, n), hr(o.y, e.y, n)), this.setTargetDelta(o), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (_n(s, this.layout.layoutBox, this.relativeParent.layout.layoutBox, this.options.layoutAnchor || void 0), _r(this.relativeTarget, this.relativeTargetOrigin, s, n), m && Dn(this.relativeTarget, m) && (this.isProjectionDirty = !1), m ||= l(), W(m, this.relativeTarget)), c && (this.animationValues = a, Ln(a, i, this.latestValues, n, p, d)), r && r.rotate !== void 0 && (this.animationValues ||= a, this.animationValues.pathRotation = r.rotate), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = n;
950
+ }, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
951
+ }
952
+ startAnimation(e) {
953
+ this.notifyListeners("animationStart"), this.currentAnimation?.stop(), this.resumingFrom?.currentAnimation?.stop(), this.pendingAnimation &&= (D(this.pendingAnimation), void 0), this.pendingAnimation = A.update(() => {
954
+ qn.hasAnimatedSinceResize = !0, je.layout++, this.motionValue ||= ue(0), this.motionValue.jump(0, !1), this.currentAnimation = Ce(this.motionValue, [0, 1e3], {
955
+ ...e,
956
+ velocity: 0,
957
+ isSync: !0,
958
+ onUpdate: (t) => {
959
+ this.mixTargetDelta(t), e.onUpdate && e.onUpdate(t);
960
+ },
961
+ onStop: () => {
962
+ je.layout--;
963
+ },
964
+ onComplete: () => {
965
+ je.layout--, e.onComplete && e.onComplete(), this.completeAnimation();
966
+ }
967
+ }), this.resumingFrom && (this.resumingFrom.currentAnimation = this.currentAnimation), this.pendingAnimation = void 0;
968
+ });
969
+ }
970
+ completeAnimation() {
971
+ this.resumingFrom && (this.resumingFrom.currentAnimation = void 0, this.resumingFrom.preserveOpacity = void 0);
972
+ let e = this.getStack();
973
+ e && e.exitAnimationComplete(), this.resumingFrom = this.currentAnimation = this.animationValues = void 0, this.notifyListeners("animationComplete");
974
+ }
975
+ finishAnimation() {
976
+ this.currentAnimation && (this.mixTargetDelta && this.mixTargetDelta(Yn), this.currentAnimation.stop()), this.completeAnimation();
977
+ }
978
+ applyTransformsToTarget() {
979
+ let e = this.getLead(), { targetWithTransforms: t, target: n, layout: r, latestValues: i } = e;
980
+ if (!(!t || !n || !r)) {
981
+ if (this !== e && this.layout && r && wr(this.options.animationType, this.layout.layoutBox, r.layoutBox)) {
982
+ n = this.target || l();
983
+ let t = G(this.layout.layoutBox.x);
984
+ n.x.min = e.target.x.min, n.x.max = n.x.min + t;
985
+ let r = G(this.layout.layoutBox.y);
986
+ n.y.min = e.target.y.min, n.y.max = n.y.min + r;
987
+ }
988
+ W(t, n), fe(t, i), K(this.projectionDeltaWithTransform, this.layoutCorrected, t, i);
989
+ }
990
+ }
991
+ registerSharedNode(e, t) {
992
+ this.sharedNodes.has(e) || this.sharedNodes.set(e, new Kn()), this.sharedNodes.get(e).add(t);
993
+ let n = t.options.initialPromotionConfig;
994
+ t.promote({
995
+ transition: n ? n.transition : void 0,
996
+ preserveFollowOpacity: n && n.shouldPreserveFollowOpacity ? n.shouldPreserveFollowOpacity(t) : void 0
997
+ });
998
+ }
999
+ isLead() {
1000
+ let e = this.getStack();
1001
+ return e ? e.lead === this : !0;
1002
+ }
1003
+ getLead() {
1004
+ let { layoutId: e } = this.options;
1005
+ return e && this.getStack()?.lead || this;
1006
+ }
1007
+ getPrevLead() {
1008
+ let { layoutId: e } = this.options;
1009
+ return e ? this.getStack()?.prevLead : void 0;
1010
+ }
1011
+ getStack() {
1012
+ let { layoutId: e } = this.options;
1013
+ if (e) return this.root.sharedNodes.get(e);
1014
+ }
1015
+ promote({ needsReset: e, transition: t, preserveFollowOpacity: n } = {}) {
1016
+ let r = this.getStack();
1017
+ r && r.promote(this, n), e && (this.projectionDelta = void 0, this.needsReset = !0), t && this.setOptions({ transition: t });
1018
+ }
1019
+ relegate() {
1020
+ let e = this.getStack();
1021
+ return e ? e.relegate(this) : !1;
1022
+ }
1023
+ resetSkewAndRotation() {
1024
+ let { visualElement: e } = this.options;
1025
+ if (!e) return;
1026
+ let t = !1, { latestValues: n } = e;
1027
+ if ((n.z || n.rotate || n.rotateX || n.rotateY || n.rotateZ || n.skewX || n.skewY) && (t = !0), !t) return;
1028
+ let r = {};
1029
+ n.z && Zn("z", e, r, this.animationValues);
1030
+ for (let t = 0; t < Jn.length; t++) Zn(`rotate${Jn[t]}`, e, r, this.animationValues), Zn(`skew${Jn[t]}`, e, r, this.animationValues);
1031
+ e.render();
1032
+ for (let t in r) e.setStaticValue(t, r[t]), this.animationValues && (this.animationValues[t] = r[t]);
1033
+ e.scheduleRender();
1034
+ }
1035
+ applyProjectionStyles(e, t) {
1036
+ if (!this.instance || this.isSVG) return;
1037
+ if (!this.isVisible) {
1038
+ e.visibility = "hidden";
1039
+ return;
1040
+ }
1041
+ let n = this.getTransformTemplate();
1042
+ if (this.needsReset) {
1043
+ this.needsReset = !1, e.visibility = "", e.opacity = "", e.pointerEvents = Gn(t?.pointerEvents) || "", e.transform = n ? n(this.latestValues, "") : "none";
1044
+ return;
1045
+ }
1046
+ let r = this.getLead();
1047
+ if (!this.projectionDelta || !this.layout || !r.target) {
1048
+ this.options.layoutId && (e.opacity = this.latestValues.opacity === void 0 ? 1 : this.latestValues.opacity, e.pointerEvents = Gn(t?.pointerEvents) || ""), this.hasProjected && !E(this.latestValues) && (e.transform = n ? n({}, "") : "none", this.hasProjected = !1);
1049
+ return;
1050
+ }
1051
+ e.visibility = "";
1052
+ let i = r.animationValues || r.latestValues;
1053
+ this.applyTransformsToTarget();
1054
+ let a = Mn(this.projectionDeltaWithTransform, this.treeScale, i);
1055
+ n && (a = n(i, a)), e.transform = a;
1056
+ let { x: o, y: s } = this.projectionDelta;
1057
+ e.transformOrigin = `${o.origin * 100}% ${s.origin * 100}% 0`, r.animationValues ? e.opacity = r === this ? i.opacity ?? this.latestValues.opacity ?? 1 : this.preserveOpacity ? this.latestValues.opacity : i.opacityExit : e.opacity = r === this ? i.opacity === void 0 ? "" : i.opacity : i.opacityExit === void 0 ? 0 : i.opacityExit;
1058
+ for (let t in Ae) {
1059
+ if (i[t] === void 0) continue;
1060
+ let { correct: n, applyTo: o, isCSSVariable: s } = Ae[t], c = a === "none" ? i[t] : n(i[t], r);
1061
+ if (o) {
1062
+ let t = o.length;
1063
+ for (let n = 0; n < t; n++) e[o[n]] = c;
1064
+ } else s ? this.options.visualElement.renderState.vars[t] = c : e[t] = c;
1065
+ }
1066
+ this.options.layoutId && (e.pointerEvents = r === this ? Gn(t?.pointerEvents) || "" : "none");
1067
+ }
1068
+ clearSnapshot() {
1069
+ this.resumeFrom = this.snapshot = void 0;
1070
+ }
1071
+ resetTree() {
1072
+ this.root.nodes.forEach((e) => e.currentAnimation?.stop()), this.root.nodes.forEach(ar), this.root.sharedNodes.clear();
1073
+ }
1074
+ };
1075
+ }
1076
+ function er(e) {
1077
+ e.updateLayout();
1078
+ }
1079
+ function tr(e) {
1080
+ let t = e.resumeFrom?.snapshot || e.snapshot;
1081
+ if (e.isLead() && e.layout && t && e.hasListeners("didUpdate")) {
1082
+ let { layoutBox: n, measuredBox: r } = e.layout, { animationType: i } = e.options, a = t.source !== e.layout.source;
1083
+ if (i === "size") q((e) => {
1084
+ let r = a ? t.measuredBox[e] : t.layoutBox[e], i = G(r);
1085
+ r.min = n[e].min, r.max = r.min + i;
1086
+ });
1087
+ else if (i === "x" || i === "y") {
1088
+ let e = i === "x" ? "y" : "x";
1089
+ on(a ? t.measuredBox[e] : t.layoutBox[e], n[e]);
1090
+ } else wr(i, t.layoutBox, n) && q((r) => {
1091
+ let i = a ? t.measuredBox[r] : t.layoutBox[r], o = G(n[r]);
1092
+ i.max = i.min + o, e.relativeTarget && !e.currentAnimation && (e.isProjectionDirty = !0, e.relativeTarget[r].max = e.relativeTarget[r].min + o);
1093
+ });
1094
+ let o = f();
1095
+ K(o, n, t.layoutBox);
1096
+ let s = f();
1097
+ a ? K(s, e.applyTransform(r, !0), t.measuredBox) : K(s, n, t.layoutBox);
1098
+ let c = !Tn(o), u = !1;
1099
+ if (!e.resumeFrom) {
1100
+ let r = e.getClosestProjectingParent();
1101
+ if (r && !r.resumeFrom) {
1102
+ let { snapshot: i, layout: a } = r;
1103
+ if (i && a) {
1104
+ let o = e.options.layoutAnchor || void 0, s = l();
1105
+ _n(s, t.layoutBox, i.layoutBox, o);
1106
+ let c = l();
1107
+ _n(c, n, a.layoutBox, o), kn(s, c) || (u = !0), r.options.layoutRoot && (e.relativeTarget = c, e.relativeTargetOrigin = s, e.relativeParent = r);
1108
+ }
1109
+ }
1110
+ }
1111
+ e.notifyListeners("didUpdate", {
1112
+ layout: n,
1113
+ snapshot: t,
1114
+ delta: s,
1115
+ layoutDelta: o,
1116
+ hasLayoutChanged: c,
1117
+ hasRelativeLayoutChanged: u
1118
+ });
1119
+ } else if (e.isLead()) {
1120
+ let { onExitComplete: t } = e.options;
1121
+ t && t();
1122
+ }
1123
+ e.options.transition = void 0;
1124
+ }
1125
+ function nr(e) {
1126
+ O.value && Y.nodes++, e.parent && (e.isProjecting() || (e.isProjectionDirty = e.parent.isProjectionDirty), e.isSharedProjectionDirty ||= !!(e.isProjectionDirty || e.parent.isProjectionDirty || e.parent.isSharedProjectionDirty), e.isTransformDirty ||= e.parent.isTransformDirty);
1127
+ }
1128
+ function rr(e) {
1129
+ e.isProjectionDirty = e.isSharedProjectionDirty = e.isTransformDirty = !1;
1130
+ }
1131
+ function ir(e) {
1132
+ e.clearSnapshot();
1133
+ }
1134
+ function ar(e) {
1135
+ e.clearMeasurements();
1136
+ }
1137
+ function or(e) {
1138
+ e.isLayoutDirty = !0, e.updateLayout();
1139
+ }
1140
+ function sr(e) {
1141
+ e.isLayoutDirty = !1;
1142
+ }
1143
+ function cr(e) {
1144
+ e.isAnimationBlocked && e.layout && !e.isLayoutDirty && (e.snapshot = e.layout, e.isLayoutDirty = !0);
1145
+ }
1146
+ function lr(e) {
1147
+ let { visualElement: t } = e.options;
1148
+ t && t.getProps().onBeforeLayoutMeasure && t.notify("BeforeLayoutMeasure"), e.resetTransform();
1149
+ }
1150
+ function ur(e) {
1151
+ e.finishAnimation(), e.targetDelta = e.relativeTarget = e.target = void 0, e.isProjectionDirty = !0;
1152
+ }
1153
+ function dr(e) {
1154
+ e.resolveTargetDelta();
1155
+ }
1156
+ function fr(e) {
1157
+ e.calcProjection();
1158
+ }
1159
+ function pr(e) {
1160
+ e.resetSkewAndRotation();
1161
+ }
1162
+ function mr(e) {
1163
+ e.removeLeadSnapshot();
1164
+ }
1165
+ function hr(e, t, n) {
1166
+ e.translate = j(t.translate, 0, n), e.scale = j(t.scale, 1, n), e.origin = t.origin, e.originPoint = t.originPoint;
1167
+ }
1168
+ function gr(e, t, n, r) {
1169
+ e.min = j(t.min, n.min, r), e.max = j(t.max, n.max, r);
1170
+ }
1171
+ function _r(e, t, n, r) {
1172
+ gr(e.x, t.x, n.x, r), gr(e.y, t.y, n.y, r);
1173
+ }
1174
+ function vr(e) {
1175
+ return e.animationValues && e.animationValues.opacityExit !== void 0;
1176
+ }
1177
+ var yr = {
1178
+ duration: .45,
1179
+ ease: [
1180
+ .4,
1181
+ 0,
1182
+ .1,
1183
+ 1
1184
+ ]
1185
+ }, br = (e) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(e), xr = br("applewebkit/") && !br("chrome/") ? Math.round : i;
1186
+ function Sr(e) {
1187
+ e.min = xr(e.min), e.max = xr(e.max);
1188
+ }
1189
+ function Cr(e) {
1190
+ Sr(e.x), Sr(e.y);
1191
+ }
1192
+ function wr(e, t, n) {
1193
+ return e === "position" || e === "preserve-aspect" && !fn(An(t), An(n), .2);
1194
+ }
1195
+ function Tr(e) {
1196
+ return e !== e.root && e.scroll?.wasRoot;
1197
+ }
1198
+ //#endregion
1199
+ //#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/projection/node/DocumentProjectionNode.mjs
1200
+ var Er = $n({
1201
+ attachResizeListener: (e, t) => J(e, "resize", t),
1202
+ measureScroll: () => ({
1203
+ x: document.documentElement.scrollLeft || document.body?.scrollLeft || 0,
1204
+ y: document.documentElement.scrollTop || document.body?.scrollTop || 0
1205
+ }),
1206
+ checkIsScrollRoot: () => !0
1207
+ }), Dr = { current: void 0 }, Or = $n({
1208
+ measureScroll: (e) => ({
1209
+ x: e.scrollLeft,
1210
+ y: e.scrollTop
1211
+ }),
1212
+ defaultParent: () => {
1213
+ if (!Dr.current) {
1214
+ let e = new Er({});
1215
+ e.mount(window), e.setOptions({ layoutScroll: !0 }), Dr.current = e;
1216
+ }
1217
+ return Dr.current;
1218
+ },
1219
+ resetTransform: (e, t) => {
1220
+ e.style.transform = t === void 0 ? "none" : t;
1221
+ },
1222
+ checkIsScrollRoot: (e) => window.getComputedStyle(e).position === "fixed"
1223
+ });
1224
+ //#endregion
1225
+ //#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/utils/use-composed-ref.mjs
1226
+ function kr(e, t) {
1227
+ if (typeof e == "function") return e(t);
1228
+ e != null && (e.current = t);
1229
+ }
1230
+ function Ar(...e) {
1231
+ return (t) => {
1232
+ let n = !1, r = e.map((e) => {
1233
+ let r = kr(e, t);
1234
+ return !n && typeof r == "function" && (n = !0), r;
1235
+ });
1236
+ if (n) return () => {
1237
+ for (let t = 0; t < r.length; t++) {
1238
+ let n = r[t];
1239
+ typeof n == "function" ? n() : kr(e[t], null);
1240
+ }
1241
+ };
1242
+ };
1243
+ }
1244
+ function jr(...e) {
1245
+ return Be.useCallback(Ar(...e), e);
1246
+ }
1247
+ //#endregion
1248
+ //#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.mjs
1249
+ var Mr = class extends Be.Component {
1250
+ getSnapshotBeforeUpdate(e) {
1251
+ let t = this.props.childRef.current;
1252
+ if (vt(t) && e.isPresent && !this.props.isPresent && this.props.pop !== !1) {
1253
+ let e = t.offsetParent, n = vt(e) && e.offsetWidth || 0, r = vt(e) && e.offsetHeight || 0, i = getComputedStyle(t), a = this.props.sizeRef.current;
1254
+ a.height = parseFloat(i.height), a.width = parseFloat(i.width), a.top = t.offsetTop, a.left = t.offsetLeft, a.right = n - a.width - a.left, a.bottom = r - a.height - a.top, a.direction = i.direction;
1255
+ }
1256
+ return null;
1257
+ }
1258
+ componentDidUpdate() {}
1259
+ render() {
1260
+ return this.props.children;
1261
+ }
1262
+ };
1263
+ function Nr({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop: a }) {
1264
+ let o = Ye(), s = F(null), c = F({
1265
+ width: 0,
1266
+ height: 0,
1267
+ top: 0,
1268
+ left: 0,
1269
+ right: 0,
1270
+ bottom: 0,
1271
+ direction: "ltr"
1272
+ }), { nonce: l } = N(ke), u = jr(s, e.props?.ref ?? e?.ref);
1273
+ return Xe(() => {
1274
+ let { width: e, height: u, top: d, left: f, right: p, bottom: m, direction: h } = c.current;
1275
+ if (t || a === !1 || !s.current || !e || !u) return;
1276
+ let g = h === "rtl", _ = n === "left" ? g ? `right: ${p}` : `left: ${f}` : g ? `left: ${f}` : `right: ${p}`, v = r === "bottom" ? `bottom: ${m}` : `top: ${d}`;
1277
+ s.current.dataset.motionPopId = o;
1278
+ let y = document.createElement("style");
1279
+ l && (y.nonce = l);
1280
+ let b = i ?? document.head;
1281
+ return b.appendChild(y), y.sheet && y.sheet.insertRule(`
1282
+ [data-motion-pop-id="${o}"] {
1283
+ position: absolute !important;
1284
+ width: ${e}px !important;
1285
+ height: ${u}px !important;
1286
+ ${_}px !important;
1287
+ ${v}px !important;
1288
+ }
1289
+ `), () => {
1290
+ s.current?.removeAttribute("data-motion-pop-id"), b.contains(y) && b.removeChild(y);
1291
+ };
1292
+ }, [t]), I(Mr, {
1293
+ isPresent: t,
1294
+ childRef: s,
1295
+ sizeRef: c,
1296
+ pop: a,
1297
+ children: a === !1 ? e : Be.cloneElement(e, { ref: u })
1298
+ });
1299
+ }
1300
+ //#endregion
1301
+ //#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.mjs
1302
+ var Pr = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: i, presenceAffectsLayout: a, mode: s, anchorX: c, anchorY: l, root: u }) => {
1303
+ let d = o(Fr), f = Ye(), p = !0, m = P(() => (p = !1, {
1304
+ id: f,
1305
+ initial: t,
1306
+ isPresent: n,
1307
+ custom: i,
1308
+ onExitComplete: (e) => {
1309
+ d.set(e, !0);
1310
+ for (let e of d.values()) if (!e) return;
1311
+ r && r();
1312
+ },
1313
+ register: (e) => (d.set(e, !1), () => d.delete(e))
1314
+ }), [
1315
+ n,
1316
+ d,
1317
+ r
1318
+ ]);
1319
+ return a && p && (m = { ...m }), P(() => {
1320
+ d.forEach((e, t) => d.set(t, !1));
1321
+ }, [n]), Be.useEffect(() => {
1322
+ !n && !d.size && r && r();
1323
+ }, [n]), e = I(Nr, {
1324
+ pop: s === "popLayout",
1325
+ isPresent: n,
1326
+ anchorX: c,
1327
+ anchorY: l,
1328
+ root: u,
1329
+ children: e
1330
+ }), I(z.Provider, {
1331
+ value: m,
1332
+ children: e
1333
+ });
1334
+ };
1335
+ function Fr() {
1336
+ return /* @__PURE__ */ new Map();
1337
+ }
1338
+ //#endregion
1339
+ //#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.mjs
1340
+ function Ir(e = !0) {
1341
+ let t = N(z);
1342
+ if (t === null) return [!0, null];
1343
+ let { isPresent: n, onExitComplete: r, register: i } = t, a = Ye();
1344
+ Je(() => {
1345
+ if (e) return i(a);
1346
+ }, [e]);
1347
+ let o = qe(() => e && r && r(a), [
1348
+ a,
1349
+ r,
1350
+ e
1351
+ ]);
1352
+ return !n && r ? [!1, o] : [!0];
1353
+ }
1354
+ //#endregion
1355
+ //#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/components/AnimatePresence/utils.mjs
1356
+ var X = (e) => e.key || "";
1357
+ function Lr(e) {
1358
+ let t = [];
1359
+ return Ve.forEach(e, (e) => {
1360
+ Ke(e) && t.push(e);
1361
+ }), t;
1362
+ }
1363
+ //#endregion
1364
+ //#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs
1365
+ var Rr = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presenceAffectsLayout: i = !0, mode: a = "sync", propagate: s = !1, anchorX: c = "left", anchorY: l = "top", root: u }) => {
1366
+ let [d, f] = Ir(s), p = P(() => Lr(e), [e]), m = s && !d ? [] : p.map(X), h = F(!0), g = F(p), _ = o(() => /* @__PURE__ */ new Map()), v = F(/* @__PURE__ */ new Set()), [y, b] = Qe(p), [x, S] = Qe(p);
1367
+ pt(() => {
1368
+ h.current = !1, g.current = p;
1369
+ for (let e = 0; e < x.length; e++) {
1370
+ let t = X(x[e]);
1371
+ m.includes(t) ? (_.delete(t), v.current.delete(t)) : _.get(t) !== !0 && _.set(t, !1);
1372
+ }
1373
+ }, [
1374
+ x,
1375
+ m.length,
1376
+ m.join("-")
1377
+ ]);
1378
+ let C = [];
1379
+ if (p !== y) {
1380
+ let e = [...p];
1381
+ for (let t = 0; t < x.length; t++) {
1382
+ let n = x[t], r = X(n);
1383
+ m.includes(r) || (e.splice(t, 0, n), C.push(n));
1384
+ }
1385
+ return a === "wait" && C.length && (e = C), S(Lr(e)), b(p), null;
1386
+ }
1387
+ process.env.NODE_ENV !== "production" && a === "wait" && x.length > 1 && console.warn("You're attempting to animate multiple children within AnimatePresence, but its mode is set to \"wait\". This will lead to odd visual behaviour.");
1388
+ let { forceRender: ee } = N(R);
1389
+ return I($e, { children: x.map((e) => {
1390
+ let o = X(e), y = s && !d ? !1 : p === x || m.includes(o);
1391
+ return I(Pr, {
1392
+ isPresent: y,
1393
+ initial: !h.current || n ? void 0 : !1,
1394
+ custom: t,
1395
+ presenceAffectsLayout: i,
1396
+ mode: a,
1397
+ root: u,
1398
+ onExitComplete: y ? void 0 : () => {
1399
+ if (v.current.has(o)) return;
1400
+ if (_.has(o)) v.current.add(o), _.set(o, !0);
1401
+ else return;
1402
+ let e = !0;
1403
+ _.forEach((t) => {
1404
+ t || (e = !1);
1405
+ }), e && (ee?.(), S(g.current), s && f?.(), r && r());
1406
+ },
1407
+ anchorX: c,
1408
+ anchorY: l,
1409
+ children: e
1410
+ }, o);
1411
+ }) });
1412
+ }, zr = M({ strict: !1 }), Br = {
1413
+ animation: [
1414
+ "animate",
1415
+ "variants",
1416
+ "whileHover",
1417
+ "whileTap",
1418
+ "exit",
1419
+ "whileInView",
1420
+ "whileFocus",
1421
+ "whileDrag"
1422
+ ],
1423
+ exit: ["exit"],
1424
+ drag: ["drag", "dragControls"],
1425
+ focus: ["whileFocus"],
1426
+ hover: [
1427
+ "whileHover",
1428
+ "onHoverStart",
1429
+ "onHoverEnd"
1430
+ ],
1431
+ tap: [
1432
+ "whileTap",
1433
+ "onTap",
1434
+ "onTapStart",
1435
+ "onTapCancel"
1436
+ ],
1437
+ pan: [
1438
+ "onPan",
1439
+ "onPanStart",
1440
+ "onPanSessionStart",
1441
+ "onPanEnd"
1442
+ ],
1443
+ inView: [
1444
+ "whileInView",
1445
+ "onViewportEnter",
1446
+ "onViewportLeave"
1447
+ ],
1448
+ layout: ["layout", "layoutId"]
1449
+ }, Vr = !1;
1450
+ function Hr() {
1451
+ if (Vr) return;
1452
+ let e = {};
1453
+ for (let t in Br) e[t] = { isEnabled: (e) => Br[t].some((t) => !!e[t]) };
1454
+ S(e), Vr = !0;
1455
+ }
1456
+ function Ur() {
1457
+ return Hr(), Ne();
1458
+ }
1459
+ //#endregion
1460
+ //#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/motion/features/load-features.mjs
1461
+ function Wr(e) {
1462
+ let t = Ur();
1463
+ for (let n in e) t[n] = {
1464
+ ...t[n],
1465
+ ...e[n]
1466
+ };
1467
+ S(t);
1468
+ }
1469
+ //#endregion
1470
+ //#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/motion/utils/valid-prop.mjs
1471
+ var Gr = new Set(/* @__PURE__ */ "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".split("."));
1472
+ function Kr(e) {
1473
+ return e.startsWith("while") || e.startsWith("drag") && e !== "draggable" || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || e.startsWith("onLayout") || Gr.has(e);
1474
+ }
1475
+ //#endregion
1476
+ //#region __vite-optional-peer-dep:@emotion/is-prop-valid:framer-motion
1477
+ var qr = /* @__PURE__ */ ct({ default: () => Jr }), Jr, Yr = ot((() => {
1478
+ throw Jr = {}, Error("Could not resolve \"@emotion/is-prop-valid\" imported by \"framer-motion\". Is it installed?");
1479
+ })), Xr = (e) => !Kr(e);
1480
+ function Zr(e) {
1481
+ typeof e == "function" && (Xr = (t) => t.startsWith("on") ? !Kr(t) : e(t));
1482
+ }
1483
+ try {
1484
+ Zr((Yr(), dt(qr)).default);
1485
+ } catch {}
1486
+ function Qr(e, t, n) {
1487
+ let r = {};
1488
+ for (let i in e) i === "values" && typeof e.values == "object" || d(e[i]) || (Xr(i) || n === !0 && Kr(i) || !t && !Kr(i) || e.draggable && i.startsWith("onDrag")) && (r[i] = e[i]);
1489
+ return r;
1490
+ }
1491
+ //#endregion
1492
+ //#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/context/MotionContext/index.mjs
1493
+ var $r = /* @__PURE__ */ M({});
1494
+ //#endregion
1495
+ //#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/context/MotionContext/utils.mjs
1496
+ function ei(e, t) {
1497
+ if (ve(e)) {
1498
+ let { initial: t, animate: n } = e;
1499
+ return {
1500
+ initial: t === !1 || h(t) ? t : void 0,
1501
+ animate: h(n) ? n : void 0
1502
+ };
1503
+ }
1504
+ return e.inherit === !1 ? {} : t;
1505
+ }
1506
+ //#endregion
1507
+ //#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/context/MotionContext/create.mjs
1508
+ function ti(e) {
1509
+ let { initial: t, animate: n } = ei(e, N($r));
1510
+ return P(() => ({
1511
+ initial: t,
1512
+ animate: n
1513
+ }), [ni(t), ni(n)]);
1514
+ }
1515
+ function ni(e) {
1516
+ return Array.isArray(e) ? e.join(" ") : e;
1517
+ }
1518
+ //#endregion
1519
+ //#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.mjs
1520
+ var ri = () => ({
1521
+ style: {},
1522
+ transform: {},
1523
+ transformOrigin: {},
1524
+ vars: {}
1525
+ });
1526
+ //#endregion
1527
+ //#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/render/html/use-props.mjs
1528
+ function ii(e, t, n) {
1529
+ for (let r in t) !d(t[r]) && !be(r, n) && (e[r] = t[r]);
1530
+ }
1531
+ function ai({ transformTemplate: e }, t) {
1532
+ return P(() => {
1533
+ let n = ri();
1534
+ return ce(n, t, e), Object.assign({}, n.vars, n.style);
1535
+ }, [t]);
1536
+ }
1537
+ function oi(e, t) {
1538
+ let n = e.style || {}, r = {};
1539
+ return ii(r, n, e), Object.assign(r, ai(e, t)), r;
1540
+ }
1541
+ function si(e, t) {
1542
+ let n = {}, r = oi(e, t);
1543
+ return e.drag && e.dragListener !== !1 && (n.draggable = !1, r.userSelect = r.WebkitUserSelect = r.WebkitTouchCallout = "none", r.touchAction = e.drag === !0 ? "none" : `pan-${e.drag === "x" ? "y" : "x"}`), e.tabIndex === void 0 && (e.onTap || e.onTapStart || e.whileTap) && (n.tabIndex = 0), n.style = r, n;
1544
+ }
1545
+ //#endregion
1546
+ //#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.mjs
1547
+ var ci = () => ({
1548
+ ...ri(),
1549
+ attrs: {}
1550
+ });
1551
+ //#endregion
1552
+ //#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/render/svg/use-props.mjs
1553
+ function li(e, t, n, r) {
1554
+ let i = P(() => {
1555
+ let n = ci();
1556
+ return we(n, t, ae(r), e.transformTemplate, e.style), {
1557
+ ...n.attrs,
1558
+ style: { ...n.style }
1559
+ };
1560
+ }, [t]);
1561
+ if (e.style) {
1562
+ let t = {};
1563
+ ii(t, e.style, e), i.style = {
1564
+ ...t,
1565
+ ...i.style
1566
+ };
1567
+ }
1568
+ return i;
1569
+ }
1570
+ //#endregion
1571
+ //#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.mjs
1572
+ var ui = [
1573
+ "animate",
1574
+ "circle",
1575
+ "defs",
1576
+ "desc",
1577
+ "ellipse",
1578
+ "g",
1579
+ "image",
1580
+ "line",
1581
+ "filter",
1582
+ "marker",
1583
+ "mask",
1584
+ "metadata",
1585
+ "path",
1586
+ "pattern",
1587
+ "polygon",
1588
+ "polyline",
1589
+ "rect",
1590
+ "stop",
1591
+ "switch",
1592
+ "symbol",
1593
+ "svg",
1594
+ "text",
1595
+ "tspan",
1596
+ "use",
1597
+ "view"
1598
+ ];
1599
+ //#endregion
1600
+ //#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.mjs
1601
+ function di(e) {
1602
+ return typeof e != "string" || e.includes("-") ? !1 : !!(ui.indexOf(e) > -1 || /[A-Z]/u.test(e));
1603
+ }
1604
+ //#endregion
1605
+ //#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/render/dom/use-render.mjs
1606
+ function fi(e, t, n, { latestValues: r }, i, a = !1, o) {
1607
+ let s = (o ?? di(e) ? li : si)(t, r, i, e), c = Qr(t, typeof e == "string", a), l = e === Ue ? {} : {
1608
+ ...c,
1609
+ ...s,
1610
+ ref: n
1611
+ }, { children: u } = t, f = P(() => d(u) ? u.get() : u, [u]);
1612
+ return We(e, {
1613
+ ...l,
1614
+ children: f
1615
+ });
1616
+ }
1617
+ //#endregion
1618
+ //#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.mjs
1619
+ function pi({ scrapeMotionValuesFromProps: e, createRenderState: t }, n, r, i) {
1620
+ return {
1621
+ latestValues: mi(n, r, i, e),
1622
+ renderState: t()
1623
+ };
1624
+ }
1625
+ function mi(t, n, r, i) {
1626
+ let a = {}, o = i(t, {});
1627
+ for (let e in o) a[e] = Gn(o[e]);
1628
+ let { initial: s, animate: c } = t, l = ve(t), u = e(t);
1629
+ n && u && !l && t.inherit !== !1 && (s === void 0 && (s = n.initial), c === void 0 && (c = n.animate));
1630
+ let d = r ? r.initial === !1 : !1;
1631
+ d ||= s === !1;
1632
+ let f = d ? c : s;
1633
+ if (f && typeof f != "boolean" && !_(f)) {
1634
+ let e = Array.isArray(f) ? f : [f];
1635
+ for (let n = 0; n < e.length; n++) {
1636
+ let r = re(t, e[n]);
1637
+ if (r) {
1638
+ let { transitionEnd: e, transition: t, ...n } = r;
1639
+ for (let e in n) {
1640
+ let t = n[e];
1641
+ if (Array.isArray(t)) {
1642
+ let e = d ? t.length - 1 : 0;
1643
+ t = t[e];
1644
+ }
1645
+ t !== null && (a[e] = t);
1646
+ }
1647
+ for (let t in e) a[t] = e[t];
1648
+ }
1649
+ }
1650
+ }
1651
+ return a;
1652
+ }
1653
+ var hi = (e) => (t, n) => {
1654
+ let r = N($r), i = N(z), a = () => pi(e, t, r, i);
1655
+ return n ? a() : o(a);
1656
+ }, gi = /* @__PURE__ */ hi({
1657
+ scrapeMotionValuesFromProps: oe,
1658
+ createRenderState: ri
1659
+ }), _i = /* @__PURE__ */ hi({
1660
+ scrapeMotionValuesFromProps: he,
1661
+ createRenderState: ci
1662
+ }), vi = Symbol.for("motionComponentSymbol");
1663
+ //#endregion
1664
+ //#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.mjs
1665
+ function yi(e, t, n) {
1666
+ let r = F(n);
1667
+ Xe(() => {
1668
+ r.current = n;
1669
+ });
1670
+ let i = F(null);
1671
+ return qe((n) => {
1672
+ n && e.onMount?.(n), t && (n ? t.mount(n) : t.unmount());
1673
+ let a = r.current;
1674
+ if (typeof a == "function") if (n) {
1675
+ let e = a(n);
1676
+ typeof e == "function" && (i.current = e);
1677
+ } else i.current ? (i.current(), i.current = null) : a(n);
1678
+ else a && (a.current = n);
1679
+ }, [t]);
1680
+ }
1681
+ //#endregion
1682
+ //#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.mjs
1683
+ var bi = M({});
1684
+ //#endregion
1685
+ //#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/utils/is-ref-object.mjs
1686
+ function Z(e) {
1687
+ return e && typeof e == "object" && Object.prototype.hasOwnProperty.call(e, "current");
1688
+ }
1689
+ //#endregion
1690
+ //#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.mjs
1691
+ function xi(e, t, n, r, i, a) {
1692
+ let { visualElement: o } = N($r), s = N(zr), c = N(z), l = N(ke), u = l.reducedMotion, d = l.skipAnimations, f = F(null), p = F(!1);
1693
+ r ||= s.renderer, !f.current && r && (f.current = r(e, {
1694
+ visualState: t,
1695
+ parent: o,
1696
+ props: n,
1697
+ presenceContext: c,
1698
+ blockInitialAnimation: c ? c.initial === !1 : !1,
1699
+ reducedMotionConfig: u,
1700
+ skipAnimations: d,
1701
+ isSVG: a
1702
+ }), p.current && f.current && (f.current.manuallyAnimateOnMount = !0));
1703
+ let m = f.current, h = N(bi);
1704
+ m && !m.projection && i && (m.type === "html" || m.type === "svg") && Si(f.current, n, i, h);
1705
+ let g = F(!1);
1706
+ Xe(() => {
1707
+ m && g.current && m.update(n, c);
1708
+ });
1709
+ let _ = n[w], v = F(!!_ && typeof window < "u" && !window.MotionHandoffIsComplete?.(_) && window.MotionHasOptimisedAnimation?.(_));
1710
+ return pt(() => {
1711
+ p.current = !0, m && (g.current = !0, window.MotionIsMounted = !0, m.updateFeatures(), m.scheduleRenderMicrotask(), v.current && m.animationState && m.animationState.animateChanges());
1712
+ }), Je(() => {
1713
+ m && (!v.current && m.animationState && m.animationState.animateChanges(), v.current &&= (queueMicrotask(() => {
1714
+ window.MotionHandoffMarkAsComplete?.(_);
1715
+ }), !1), m.enteringChildren = void 0);
1716
+ }), m;
1717
+ }
1718
+ function Si(e, t, n, r) {
1719
+ let { layoutId: i, layout: a, drag: o, dragConstraints: s, layoutScroll: c, layoutRoot: l, layoutAnchor: u, layoutCrossfade: d } = t;
1720
+ e.projection = new n(e.latestValues, t["data-framer-portal-id"] ? void 0 : Ci(e.parent)), e.projection.setOptions({
1721
+ layoutId: i,
1722
+ layout: a,
1723
+ alwaysMeasureLayout: !!o || s && Z(s),
1724
+ visualElement: e,
1725
+ animationType: typeof a == "string" ? a : "both",
1726
+ initialPromotionConfig: r,
1727
+ crossfade: d,
1728
+ layoutScroll: c,
1729
+ layoutRoot: l,
1730
+ layoutAnchor: u
1731
+ });
1732
+ }
1733
+ function Ci(e) {
1734
+ if (e) return e.options.allowProjection === !1 ? Ci(e.parent) : e.projection;
1735
+ }
1736
+ //#endregion
1737
+ //#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/motion/index.mjs
1738
+ function wi(e, { forwardMotionProps: t = !1, type: n } = {}, r, i) {
1739
+ r && Wr(r);
1740
+ let a = n ? n === "svg" : di(e), o = a ? _i : gi;
1741
+ function s(n, s) {
1742
+ let c, l = {
1743
+ ...N(ke),
1744
+ ...n,
1745
+ layoutId: Ti(n)
1746
+ }, { isStatic: u } = l, d = ti(n), f = o(n, u);
1747
+ if (!u && typeof window < "u") {
1748
+ Ei(l, r);
1749
+ let t = Di(l);
1750
+ c = t.MeasureLayout, d.visualElement = xi(e, f, l, i, t.ProjectionNode, a);
1751
+ }
1752
+ return et($r.Provider, {
1753
+ value: d,
1754
+ children: [c && d.visualElement ? I(c, {
1755
+ visualElement: d.visualElement,
1756
+ ...l
1757
+ }) : null, fi(e, n, yi(f, d.visualElement, s), f, u, t, a)]
1758
+ });
1759
+ }
1760
+ s.displayName = `motion.${typeof e == "string" ? e : `create(${e.displayName ?? e.name ?? ""})`}`;
1761
+ let c = Ge(s);
1762
+ return c[vi] = e, c;
1763
+ }
1764
+ function Ti({ layoutId: e }) {
1765
+ let t = N(R).id;
1766
+ return t && e !== void 0 ? t + "-" + e : e;
1767
+ }
1768
+ function Ei(e, n) {
1769
+ let r = N(zr).strict;
1770
+ if (process.env.NODE_ENV !== "production" && n && r) {
1771
+ let n = "You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";
1772
+ e.ignoreStrict ? t(!1, n, "lazy-strict-mode") : ye(!1, n, "lazy-strict-mode");
1773
+ }
1774
+ }
1775
+ function Di(e) {
1776
+ let { drag: t, layout: n } = Ur();
1777
+ if (!t && !n) return {};
1778
+ let r = {
1779
+ ...t,
1780
+ ...n
1781
+ };
1782
+ return {
1783
+ MeasureLayout: t?.isEnabled(e) || n?.isEnabled(e) ? r.MeasureLayout : void 0,
1784
+ ProjectionNode: r.ProjectionNode
1785
+ };
1786
+ }
1787
+ //#endregion
1788
+ //#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/render/components/create-proxy.mjs
1789
+ function Oi(e, t) {
1790
+ if (typeof Proxy > "u") return wi;
1791
+ let n = /* @__PURE__ */ new Map(), r = (n, r) => wi(n, r, e, t);
1792
+ return new Proxy((e, t) => (process.env.NODE_ENV !== "production" && Ie(!1, "motion() is deprecated. Use motion.create() instead."), r(e, t)), { get: (i, a) => a === "create" ? r : (n.has(a) || n.set(a, wi(a, void 0, e, t)), n.get(a)) });
1793
+ }
1794
+ //#endregion
1795
+ //#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/render/dom/create-visual-element.mjs
1796
+ var ki = (e, t) => t.isSVG ?? di(e) ? new De(t) : new Oe(t, { allowProjection: e !== Ue }), Ai = class extends H {
1797
+ constructor(e) {
1798
+ super(e), e.animationState ||= nn(e);
1799
+ }
1800
+ updateAnimationControlsSubscription() {
1801
+ let { animate: e } = this.node.getProps();
1802
+ _(e) && (this.unmountControls = e.subscribe(this.node));
1803
+ }
1804
+ mount() {
1805
+ this.updateAnimationControlsSubscription();
1806
+ }
1807
+ update() {
1808
+ let { animate: e } = this.node.getProps(), { animate: t } = this.node.prevProps || {};
1809
+ e !== t && this.updateAnimationControlsSubscription();
1810
+ }
1811
+ unmount() {
1812
+ this.node.animationState.reset(), this.unmountControls?.();
1813
+ }
1814
+ }, ji = 0, Mi = {
1815
+ animation: { Feature: Ai },
1816
+ exit: { Feature: class extends H {
1817
+ constructor() {
1818
+ super(...arguments), this.id = ji++, this.isExitComplete = !1;
1819
+ }
1820
+ update() {
1821
+ if (!this.node.presenceContext) return;
1822
+ let { isPresent: e, onExitComplete: t } = this.node.presenceContext, { isPresent: n } = this.node.prevPresenceContext || {};
1823
+ if (!this.node.animationState || e === n) return;
1824
+ if (e && n === !1) {
1825
+ if (this.isExitComplete) {
1826
+ let { initial: e, custom: t } = this.node.getProps();
1827
+ if (typeof e == "string" || typeof e == "object" && e && !Array.isArray(e)) {
1828
+ let n = u(this.node, e, t);
1829
+ if (n) {
1830
+ let { transition: e, transitionEnd: t, ...r } = n;
1831
+ for (let e in r) this.node.getValue(e)?.jump(r[e]);
1832
+ }
1833
+ }
1834
+ this.node.animationState.reset(), this.node.animationState.animateChanges();
1835
+ } else this.node.animationState.setActive("exit", !1);
1836
+ this.isExitComplete = !1;
1837
+ return;
1838
+ }
1839
+ let r = this.node.animationState.setActive("exit", !e);
1840
+ t && !e && r.then(() => {
1841
+ this.isExitComplete = !0, t(this.id);
1842
+ });
1843
+ }
1844
+ mount() {
1845
+ let { register: e, onExitComplete: t } = this.node.presenceContext || {};
1846
+ t && t(this.id), e && (this.unmount = e(this.id));
1847
+ }
1848
+ unmount() {}
1849
+ } }
1850
+ };
1851
+ //#endregion
1852
+ //#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/events/event-info.mjs
1853
+ function Q(e) {
1854
+ return { point: {
1855
+ x: e.pageX,
1856
+ y: e.pageY
1857
+ } };
1858
+ }
1859
+ var Ni = (e) => (t) => Tt(t) && e(t, Q(t));
1860
+ //#endregion
1861
+ //#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/events/add-pointer-event.mjs
1862
+ function $(e, t, n, r) {
1863
+ return J(e, t, Ni(n), r);
1864
+ }
1865
+ //#endregion
1866
+ //#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/utils/get-context-window.mjs
1867
+ var Pi = ({ current: e }) => e ? e.ownerDocument.defaultView : null, Fi = (e, t) => Math.abs(e - t);
1868
+ function Ii(e, t) {
1869
+ let n = Fi(e.x, t.x), r = Fi(e.y, t.y);
1870
+ return Math.sqrt(n ** 2 + r ** 2);
1871
+ }
1872
+ //#endregion
1873
+ //#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/gestures/pan/PanSession.mjs
1874
+ var Li = /* @__PURE__ */ new Set(["auto", "scroll"]), Ri = class {
1875
+ constructor(e, t, { transformPagePoint: n, contextWindow: r = window, dragSnapToOrigin: i = !1, distanceThreshold: o = 3, element: s } = {}) {
1876
+ if (this.startEvent = null, this.lastMoveEvent = null, this.lastMoveEventInfo = null, this.lastRawMoveEventInfo = null, this.handlers = {}, this.contextWindow = window, this.scrollPositions = /* @__PURE__ */ new Map(), this.removeScrollListeners = null, this.onElementScroll = (e) => {
1877
+ this.handleScroll(e.target);
1878
+ }, this.onWindowScroll = () => {
1879
+ this.handleScroll(window);
1880
+ }, this.updatePoint = () => {
1881
+ if (!(this.lastMoveEvent && this.lastMoveEventInfo)) return;
1882
+ this.lastRawMoveEventInfo && (this.lastMoveEventInfo = zi(this.lastRawMoveEventInfo, this.transformPagePoint));
1883
+ let e = Vi(this.lastMoveEventInfo, this.history), t = this.startEvent !== null, n = Ii(e.offset, {
1884
+ x: 0,
1885
+ y: 0
1886
+ }) >= this.distanceThreshold;
1887
+ if (!t && !n) return;
1888
+ let { point: r } = e, { timestamp: i } = k;
1889
+ this.history.push({
1890
+ ...r,
1891
+ timestamp: i
1892
+ });
1893
+ let { onStart: a, onMove: o } = this.handlers;
1894
+ t || (a && a(this.lastMoveEvent, e), this.startEvent = this.lastMoveEvent), o && o(this.lastMoveEvent, e);
1895
+ }, this.handlePointerMove = (e, t) => {
1896
+ this.lastMoveEvent = e, this.lastRawMoveEventInfo = t, this.lastMoveEventInfo = zi(t, this.transformPagePoint), A.update(this.updatePoint, !0);
1897
+ }, this.handlePointerUp = (e, t) => {
1898
+ this.end();
1899
+ let { onEnd: n, onSessionEnd: r, resumeAnimation: i } = this.handlers;
1900
+ if ((this.dragSnapToOrigin || !this.startEvent) && i && i(), !(this.lastMoveEvent && this.lastMoveEventInfo)) return;
1901
+ let a = Vi(e.type === "pointercancel" ? this.lastMoveEventInfo : zi(t, this.transformPagePoint), this.history);
1902
+ this.startEvent && n && n(e, a), r && r(e, a);
1903
+ }, !Tt(e)) return;
1904
+ this.dragSnapToOrigin = i, this.handlers = t, this.transformPagePoint = n, this.distanceThreshold = o, this.contextWindow = r || window;
1905
+ let c = zi(Q(e), this.transformPagePoint), { point: l } = c, { timestamp: u } = k;
1906
+ this.history = [{
1907
+ ...l,
1908
+ timestamp: u
1909
+ }];
1910
+ let { onSessionStart: d } = t;
1911
+ d && d(e, Vi(c, this.history)), this.removeListeners = a($(this.contextWindow, "pointermove", this.handlePointerMove), $(this.contextWindow, "pointerup", this.handlePointerUp), $(this.contextWindow, "pointercancel", this.handlePointerUp)), s && this.startScrollTracking(s);
1912
+ }
1913
+ startScrollTracking(e) {
1914
+ let t = e.parentElement;
1915
+ for (; t;) {
1916
+ let e = getComputedStyle(t);
1917
+ (Li.has(e.overflowX) || Li.has(e.overflowY)) && this.scrollPositions.set(t, {
1918
+ x: t.scrollLeft,
1919
+ y: t.scrollTop
1920
+ }), t = t.parentElement;
1921
+ }
1922
+ this.scrollPositions.set(window, {
1923
+ x: window.scrollX,
1924
+ y: window.scrollY
1925
+ }), window.addEventListener("scroll", this.onElementScroll, { capture: !0 }), window.addEventListener("scroll", this.onWindowScroll), this.removeScrollListeners = () => {
1926
+ window.removeEventListener("scroll", this.onElementScroll, { capture: !0 }), window.removeEventListener("scroll", this.onWindowScroll);
1927
+ };
1928
+ }
1929
+ handleScroll(e) {
1930
+ let t = this.scrollPositions.get(e);
1931
+ if (!t) return;
1932
+ let n = e === window, r = n ? {
1933
+ x: window.scrollX,
1934
+ y: window.scrollY
1935
+ } : {
1936
+ x: e.scrollLeft,
1937
+ y: e.scrollTop
1938
+ }, i = {
1939
+ x: r.x - t.x,
1940
+ y: r.y - t.y
1941
+ };
1942
+ i.x === 0 && i.y === 0 || (n ? this.lastMoveEventInfo && (this.lastMoveEventInfo.point.x += i.x, this.lastMoveEventInfo.point.y += i.y) : this.history.length > 0 && (this.history[0].x -= i.x, this.history[0].y -= i.y), this.scrollPositions.set(e, r), A.update(this.updatePoint, !0));
1943
+ }
1944
+ updateHandlers(e) {
1945
+ this.handlers = e;
1946
+ }
1947
+ end() {
1948
+ this.removeListeners && this.removeListeners(), this.removeScrollListeners && this.removeScrollListeners(), this.scrollPositions.clear(), D(this.updatePoint);
1949
+ }
1950
+ };
1951
+ function zi(e, t) {
1952
+ return t ? { point: t(e.point) } : e;
1953
+ }
1954
+ function Bi(e, t) {
1955
+ return {
1956
+ x: e.x - t.x,
1957
+ y: e.y - t.y
1958
+ };
1959
+ }
1960
+ function Vi({ point: e }, t) {
1961
+ return {
1962
+ point: e,
1963
+ delta: Bi(e, Ui(t)),
1964
+ offset: Bi(e, Hi(t)),
1965
+ velocity: Wi(t, .1)
1966
+ };
1967
+ }
1968
+ function Hi(e) {
1969
+ return e[0];
1970
+ }
1971
+ function Ui(e) {
1972
+ return e[e.length - 1];
1973
+ }
1974
+ function Wi(e, t) {
1975
+ if (e.length < 2) return {
1976
+ x: 0,
1977
+ y: 0
1978
+ };
1979
+ let n = e.length - 1, i = null, a = Ui(e);
1980
+ for (; n >= 0 && (i = e[n], !(a.timestamp - i.timestamp > r(t)));) n--;
1981
+ if (!i) return {
1982
+ x: 0,
1983
+ y: 0
1984
+ };
1985
+ i === e[0] && e.length > 2 && a.timestamp - i.timestamp > r(t) * 2 && (i = e[1]);
1986
+ let o = x(a.timestamp - i.timestamp);
1987
+ if (o === 0) return {
1988
+ x: 0,
1989
+ y: 0
1990
+ };
1991
+ let s = {
1992
+ x: (a.x - i.x) / o,
1993
+ y: (a.y - i.y) / o
1994
+ };
1995
+ return s.x === Infinity && (s.x = 0), s.y === Infinity && (s.y = 0), s;
1996
+ }
1997
+ //#endregion
1998
+ //#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.mjs
1999
+ function Gi(e, { min: t, max: n }, r) {
2000
+ return t !== void 0 && e < t ? e = r ? j(t, e, r.min) : Math.max(e, t) : n !== void 0 && e > n && (e = r ? j(n, e, r.max) : Math.min(e, n)), e;
2001
+ }
2002
+ function Ki(e, t, n) {
2003
+ return {
2004
+ min: t === void 0 ? void 0 : e.min + t,
2005
+ max: n === void 0 ? void 0 : e.max + n - (e.max - e.min)
2006
+ };
2007
+ }
2008
+ function qi(e, { top: t, left: n, bottom: r, right: i }) {
2009
+ return {
2010
+ x: Ki(e.x, n, i),
2011
+ y: Ki(e.y, t, r)
2012
+ };
2013
+ }
2014
+ function Ji(e, t) {
2015
+ let n = t.min - e.min, r = t.max - e.max;
2016
+ return t.max - t.min < e.max - e.min && ([n, r] = [r, n]), {
2017
+ min: n,
2018
+ max: r
2019
+ };
2020
+ }
2021
+ function Yi(e, t) {
2022
+ return {
2023
+ x: Ji(e.x, t.x),
2024
+ y: Ji(e.y, t.y)
2025
+ };
2026
+ }
2027
+ function Xi(e, t) {
2028
+ let n = .5, r = G(e), i = G(t);
2029
+ return i > r ? n = C(t.min, t.max - r, e.min) : r > i && (n = C(e.min, e.max - i, t.min)), _e(0, 1, n);
2030
+ }
2031
+ function Zi(e, t) {
2032
+ let n = {};
2033
+ return t.min !== void 0 && (n.min = t.min - e.min), t.max !== void 0 && (n.max = t.max - e.min), n;
2034
+ }
2035
+ var Qi = .35;
2036
+ function $i(e = Qi) {
2037
+ return e === !1 ? e = 0 : e === !0 && (e = Qi), {
2038
+ x: ea(e, "left", "right"),
2039
+ y: ea(e, "top", "bottom")
2040
+ };
2041
+ }
2042
+ function ea(e, t, n) {
2043
+ return {
2044
+ min: ta(e, t),
2045
+ max: ta(e, n)
2046
+ };
2047
+ }
2048
+ function ta(e, t) {
2049
+ return typeof e == "number" ? e : e[t] || 0;
2050
+ }
2051
+ //#endregion
2052
+ //#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.mjs
2053
+ var na = /* @__PURE__ */ new WeakMap(), ra = class {
2054
+ constructor(e) {
2055
+ this.openDragLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = {
2056
+ x: 0,
2057
+ y: 0
2058
+ }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = l(), this.latestPointerEvent = null, this.latestPanInfo = null, this.visualElement = e;
2059
+ }
2060
+ start(e, { snapToCursor: t = !1, distanceThreshold: n } = {}) {
2061
+ let { presenceContext: r } = this.visualElement;
2062
+ if (r && r.isPresent === !1) return;
2063
+ let i = (e) => {
2064
+ t && this.snapToCursor(Q(e).point), this.stopAnimation();
2065
+ }, a = (e, t) => {
2066
+ let { drag: n, dragPropagation: r, onDragStart: i } = this.getProps();
2067
+ if (n && !r && (this.openDragLock && this.openDragLock(), this.openDragLock = bt(n), !this.openDragLock)) return;
2068
+ this.latestPointerEvent = e, this.latestPanInfo = t, this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), q((e) => {
2069
+ let t = this.getAxisMotionValue(e).get() || 0;
2070
+ if (se.test(t)) {
2071
+ let { projection: n } = this.visualElement;
2072
+ if (n && n.layout) {
2073
+ let r = n.layout.layoutBox[e];
2074
+ r && (t = G(r) * (parseFloat(t) / 100));
2075
+ }
2076
+ }
2077
+ this.originPoint[e] = t;
2078
+ }), i && A.update(() => i(e, t), !1, !0), s(this.visualElement, "transform");
2079
+ let { animationState: a } = this.visualElement;
2080
+ a && a.setActive("whileDrag", !0);
2081
+ }, o = (e, t) => {
2082
+ this.latestPointerEvent = e, this.latestPanInfo = t;
2083
+ let { dragPropagation: n, dragDirectionLock: r, onDirectionLock: i, onDrag: a } = this.getProps();
2084
+ if (!n && !this.openDragLock) return;
2085
+ let { offset: o } = t;
2086
+ if (r && this.currentDirection === null) {
2087
+ this.currentDirection = sa(o), this.currentDirection !== null && i && i(this.currentDirection);
2088
+ return;
2089
+ }
2090
+ this.updateAxis("x", t.point, o), this.updateAxis("y", t.point, o), this.visualElement.render(), a && A.update(() => a(e, t), !1, !0);
2091
+ }, c = (e, t) => {
2092
+ this.latestPointerEvent = e, this.latestPanInfo = t, this.stop(e, t), this.latestPointerEvent = null, this.latestPanInfo = null;
2093
+ }, l = () => {
2094
+ let { dragSnapToOrigin: e } = this.getProps();
2095
+ (e || this.constraints) && this.startAnimation({
2096
+ x: 0,
2097
+ y: 0
2098
+ });
2099
+ }, { dragSnapToOrigin: u } = this.getProps();
2100
+ this.panSession = new Ri(e, {
2101
+ onSessionStart: i,
2102
+ onStart: a,
2103
+ onMove: o,
2104
+ onSessionEnd: c,
2105
+ resumeAnimation: l
2106
+ }, {
2107
+ transformPagePoint: this.visualElement.getTransformPagePoint(),
2108
+ dragSnapToOrigin: u,
2109
+ distanceThreshold: n,
2110
+ contextWindow: Pi(this.visualElement),
2111
+ element: this.visualElement.current
2112
+ });
2113
+ }
2114
+ stop(e, t) {
2115
+ let n = e || this.latestPointerEvent, r = t || this.latestPanInfo, i = this.isDragging;
2116
+ if (this.cancel(), !i || !r || !n) return;
2117
+ let { velocity: a } = r;
2118
+ this.startAnimation(a);
2119
+ let { onDragEnd: o } = this.getProps();
2120
+ o && A.postRender(() => o(n, r));
2121
+ }
2122
+ cancel() {
2123
+ this.isDragging = !1;
2124
+ let { projection: e, animationState: t } = this.visualElement;
2125
+ e && (e.isAnimationBlocked = !1), this.endPanSession();
2126
+ let { dragPropagation: n } = this.getProps();
2127
+ !n && this.openDragLock && (this.openDragLock(), this.openDragLock = null), t && t.setActive("whileDrag", !1);
2128
+ }
2129
+ endPanSession() {
2130
+ this.panSession && this.panSession.end(), this.panSession = void 0;
2131
+ }
2132
+ updateAxis(e, t, n) {
2133
+ let { drag: r } = this.getProps();
2134
+ if (!n || !oa(e, r, this.currentDirection)) return;
2135
+ let i = this.getAxisMotionValue(e), a = this.originPoint[e] + n[e];
2136
+ this.constraints && this.constraints[e] && (a = Gi(a, this.constraints[e], this.elastic[e])), i.set(a);
2137
+ }
2138
+ resolveConstraints() {
2139
+ let { dragConstraints: e, dragElastic: t } = this.getProps(), n = this.visualElement.projection && !this.visualElement.projection.layout ? this.visualElement.projection.measure(!1) : this.visualElement.projection?.layout, r = this.constraints;
2140
+ e && Z(e) ? this.constraints ||= this.resolveRefConstraints() : e && n ? this.constraints = qi(n.layoutBox, e) : this.constraints = !1, this.elastic = $i(t), r !== this.constraints && !Z(e) && n && this.constraints && !this.hasMutatedConstraints && q((e) => {
2141
+ this.constraints !== !1 && this.getAxisMotionValue(e) && (this.constraints[e] = Zi(n.layoutBox[e], this.constraints[e]));
2142
+ });
2143
+ }
2144
+ resolveRefConstraints() {
2145
+ let { dragConstraints: e, onMeasureDragConstraints: t } = this.getProps();
2146
+ if (!e || !Z(e)) return !1;
2147
+ let n = e.current;
2148
+ ye(n !== null, "If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.", "drag-constraints-ref");
2149
+ let { projection: r } = this.visualElement;
2150
+ if (!r || !r.layout) return !1;
2151
+ r.root && (r.root.scroll = void 0, r.root.updateScroll());
2152
+ let i = de(n, r.root, this.visualElement.getTransformPagePoint()), a = Yi(r.layout.layoutBox, i);
2153
+ if (t) {
2154
+ let e = t(b(a));
2155
+ this.hasMutatedConstraints = !!e, e && (a = Fe(e));
2156
+ }
2157
+ return a;
2158
+ }
2159
+ startAnimation(e) {
2160
+ let { drag: t, dragMomentum: n, dragElastic: r, dragTransition: i, dragSnapToOrigin: a, onDragTransitionEnd: o } = this.getProps(), s = this.constraints || {}, c = q((o) => {
2161
+ if (!oa(o, t, this.currentDirection)) return;
2162
+ let c = s && s[o] || {};
2163
+ (a === !0 || a === o) && (c = {
2164
+ min: 0,
2165
+ max: 0
2166
+ });
2167
+ let l = r ? 200 : 1e6, u = r ? 40 : 1e7, d = {
2168
+ type: "inertia",
2169
+ velocity: n ? e[o] : 0,
2170
+ bounceStiffness: l,
2171
+ bounceDamping: u,
2172
+ timeConstant: 750,
2173
+ restDelta: 1,
2174
+ restSpeed: 10,
2175
+ ...i,
2176
+ ...c
2177
+ };
2178
+ return this.startAxisValueAnimation(o, d);
2179
+ });
2180
+ return Promise.all(c).then(o);
2181
+ }
2182
+ startAxisValueAnimation(e, t) {
2183
+ let n = this.getAxisMotionValue(e);
2184
+ return s(this.visualElement, e), n.start(ne(e, n, 0, t, this.visualElement, !1));
2185
+ }
2186
+ stopAnimation() {
2187
+ q((e) => this.getAxisMotionValue(e).stop());
2188
+ }
2189
+ getAxisMotionValue(e) {
2190
+ let t = `_drag${e.toUpperCase()}`;
2191
+ return this.visualElement.getProps()[t] || this.visualElement.getValue(e, this.visualElement.latestValues[e] ?? 0);
2192
+ }
2193
+ snapToCursor(e) {
2194
+ q((t) => {
2195
+ let { drag: n } = this.getProps();
2196
+ if (!oa(t, n, this.currentDirection)) return;
2197
+ let { projection: r } = this.visualElement, i = this.getAxisMotionValue(t);
2198
+ if (r && r.layout) {
2199
+ let { min: n, max: a } = r.layout.layoutBox[t], o = i.get() || 0;
2200
+ i.set(e[t] - j(n, a, .5) + o);
2201
+ }
2202
+ });
2203
+ }
2204
+ scalePositionWithinConstraints() {
2205
+ if (!this.visualElement.current) return;
2206
+ let { drag: e, dragConstraints: t } = this.getProps(), { projection: n } = this.visualElement;
2207
+ if (!Z(t) || !n || !this.constraints) return;
2208
+ this.stopAnimation();
2209
+ let r = {
2210
+ x: 0,
2211
+ y: 0
2212
+ };
2213
+ q((e) => {
2214
+ let t = this.getAxisMotionValue(e);
2215
+ if (t && this.constraints !== !1) {
2216
+ let n = t.get();
2217
+ r[e] = Xi({
2218
+ min: n,
2219
+ max: n
2220
+ }, this.constraints[e]);
2221
+ }
2222
+ });
2223
+ let { transformTemplate: i } = this.visualElement.getProps();
2224
+ this.visualElement.current.style.transform = i ? i({}, "") : "none", n.root && n.root.updateScroll(), n.updateLayout(), this.constraints = !1, this.resolveConstraints(), q((t) => {
2225
+ if (!oa(t, e, null)) return;
2226
+ let n = this.getAxisMotionValue(t), { min: i, max: a } = this.constraints[t];
2227
+ n.set(j(i, a, r[t]));
2228
+ }), this.visualElement.render();
2229
+ }
2230
+ addListeners() {
2231
+ if (!this.visualElement.current) return;
2232
+ na.set(this.visualElement, this);
2233
+ let e = this.visualElement.current, t = $(e, "pointerdown", (t) => {
2234
+ let { drag: n, dragListener: r = !0 } = this.getProps(), i = t.target, a = i !== e && kt(i);
2235
+ n && r && !a && this.start(t);
2236
+ }), n, r = () => {
2237
+ let { dragConstraints: t } = this.getProps();
2238
+ Z(t) && t.current && (this.constraints = this.resolveRefConstraints(), n ||= aa(e, t.current, () => this.scalePositionWithinConstraints()));
2239
+ }, { projection: i } = this.visualElement, a = i.addEventListener("measure", r);
2240
+ i && !i.layout && (i.root && i.root.updateScroll(), i.updateLayout()), A.read(r);
2241
+ let o = J(window, "resize", () => this.scalePositionWithinConstraints()), s = i.addEventListener("didUpdate", (({ delta: e, hasLayoutChanged: t }) => {
2242
+ this.isDragging && t && (q((t) => {
2243
+ let n = this.getAxisMotionValue(t);
2244
+ n && (this.originPoint[t] += e[t].translate, n.set(n.get() + e[t].translate));
2245
+ }), this.visualElement.render());
2246
+ }));
2247
+ return () => {
2248
+ o(), t(), a(), s && s(), n && n();
2249
+ };
2250
+ }
2251
+ getProps() {
2252
+ let e = this.visualElement.getProps(), { drag: t = !1, dragDirectionLock: n = !1, dragPropagation: r = !1, dragConstraints: i = !1, dragElastic: a = Qi, dragMomentum: o = !0 } = e;
2253
+ return {
2254
+ ...e,
2255
+ drag: t,
2256
+ dragDirectionLock: n,
2257
+ dragPropagation: r,
2258
+ dragConstraints: i,
2259
+ dragElastic: a,
2260
+ dragMomentum: o
2261
+ };
2262
+ }
2263
+ };
2264
+ function ia(e) {
2265
+ let t = !0;
2266
+ return () => {
2267
+ if (t) {
2268
+ t = !1;
2269
+ return;
2270
+ }
2271
+ e();
2272
+ };
2273
+ }
2274
+ function aa(e, t, n) {
2275
+ let r = Yt(e, ia(n)), i = Yt(t, ia(n));
2276
+ return () => {
2277
+ r(), i();
2278
+ };
2279
+ }
2280
+ function oa(e, t, n) {
2281
+ return (t === !0 || t === e) && (n === null || n === e);
2282
+ }
2283
+ function sa(e, t = 10) {
2284
+ let n = null;
2285
+ return Math.abs(e.y) > t ? n = "y" : Math.abs(e.x) > t && (n = "x"), n;
2286
+ }
2287
+ //#endregion
2288
+ //#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/gestures/drag/index.mjs
2289
+ var ca = class extends H {
2290
+ constructor(e) {
2291
+ super(e), this.removeGroupControls = i, this.removeListeners = i, this.controls = new ra(e);
2292
+ }
2293
+ mount() {
2294
+ let { dragControls: e } = this.node.getProps();
2295
+ e && (this.removeGroupControls = e.subscribe(this.controls)), this.removeListeners = this.controls.addListeners() || i;
2296
+ }
2297
+ update() {
2298
+ let { dragControls: e } = this.node.getProps(), { dragControls: t } = this.node.prevProps || {};
2299
+ e !== t && (this.removeGroupControls(), e && (this.removeGroupControls = e.subscribe(this.controls)));
2300
+ }
2301
+ unmount() {
2302
+ this.removeGroupControls(), this.removeListeners(), this.controls.isDragging || this.controls.endPanSession();
2303
+ }
2304
+ }, la = (e) => (t, n) => {
2305
+ e && A.update(() => e(t, n), !1, !0);
2306
+ }, ua = class extends H {
2307
+ constructor() {
2308
+ super(...arguments), this.removePointerDownListener = i;
2309
+ }
2310
+ onPointerDown(e) {
2311
+ this.session = new Ri(e, this.createPanHandlers(), {
2312
+ transformPagePoint: this.node.getTransformPagePoint(),
2313
+ contextWindow: Pi(this.node)
2314
+ });
2315
+ }
2316
+ createPanHandlers() {
2317
+ let { onPanSessionStart: e, onPanStart: t, onPan: n, onPanEnd: r } = this.node.getProps();
2318
+ return {
2319
+ onSessionStart: la(e),
2320
+ onStart: la(t),
2321
+ onMove: la(n),
2322
+ onEnd: (e, t) => {
2323
+ delete this.session, r && A.postRender(() => r(e, t));
2324
+ }
2325
+ };
2326
+ }
2327
+ mount() {
2328
+ this.removePointerDownListener = $(this.node.current, "pointerdown", (e) => this.onPointerDown(e));
2329
+ }
2330
+ update() {
2331
+ this.session && this.session.updateHandlers(this.createPanHandlers());
2332
+ }
2333
+ unmount() {
2334
+ this.removePointerDownListener(), this.session && this.session.end();
2335
+ }
2336
+ }, da = !1, fa = class extends He {
2337
+ componentDidMount() {
2338
+ let { visualElement: e, layoutGroup: t, switchLayoutGroup: n, layoutId: r } = this.props, { projection: i } = e;
2339
+ i && (t.group && t.group.add(i), n && n.register && r && n.register(i), da && i.root.didUpdate(), i.addEventListener("animationComplete", () => {
2340
+ this.safeToRemove();
2341
+ }), i.setOptions({
2342
+ ...i.options,
2343
+ layoutDependency: this.props.layoutDependency,
2344
+ onExitComplete: () => this.safeToRemove()
2345
+ })), qn.hasEverUpdated = !0;
2346
+ }
2347
+ getSnapshotBeforeUpdate(e) {
2348
+ let { layoutDependency: t, visualElement: n, drag: r, isPresent: i } = this.props, { projection: a } = n;
2349
+ return a ? (a.isPresent = i, e.layoutDependency !== t && a.setOptions({
2350
+ ...a.options,
2351
+ layoutDependency: t
2352
+ }), da = !0, r || e.layoutDependency !== t || t === void 0 || e.isPresent !== i ? a.willUpdate() : this.safeToRemove(), e.isPresent !== i && (i ? a.promote() : a.relegate() || A.postRender(() => {
2353
+ let e = a.getStack();
2354
+ (!e || !e.members.length) && this.safeToRemove();
2355
+ })), null) : null;
2356
+ }
2357
+ componentDidUpdate() {
2358
+ let { visualElement: e, layoutAnchor: t } = this.props, { projection: r } = e;
2359
+ r && (r.options.layoutAnchor = t, r.root.didUpdate(), n.postRender(() => {
2360
+ !r.currentAnimation && r.isLead() && this.safeToRemove();
2361
+ }));
2362
+ }
2363
+ componentWillUnmount() {
2364
+ let { visualElement: e, layoutGroup: t, switchLayoutGroup: n } = this.props, { projection: r } = e;
2365
+ da = !0, r && (r.scheduleCheckAfterUnmount(), t && t.group && t.group.remove(r), n && n.deregister && n.deregister(r));
2366
+ }
2367
+ safeToRemove() {
2368
+ let { safeToRemove: e } = this.props;
2369
+ e && e();
2370
+ }
2371
+ render() {
2372
+ return null;
2373
+ }
2374
+ };
2375
+ function pa(e) {
2376
+ let [t, n] = Ir(), r = N(R);
2377
+ return I(fa, {
2378
+ ...e,
2379
+ layoutGroup: r,
2380
+ switchLayoutGroup: N(bi),
2381
+ isPresent: t,
2382
+ safeToRemove: n
2383
+ });
2384
+ }
2385
+ //#endregion
2386
+ //#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/motion/features/drag.mjs
2387
+ var ma = {
2388
+ pan: { Feature: ua },
2389
+ drag: {
2390
+ Feature: ca,
2391
+ ProjectionNode: Or,
2392
+ MeasureLayout: pa
2393
+ }
2394
+ };
2395
+ //#endregion
2396
+ //#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/gestures/hover.mjs
2397
+ function ha(e, t, n) {
2398
+ let { props: r } = e;
2399
+ e.animationState && r.whileHover && e.animationState.setActive("whileHover", n === "Start");
2400
+ let i = r["onHover" + n];
2401
+ i && A.postRender(() => i(t, Q(t)));
2402
+ }
2403
+ var ga = class extends H {
2404
+ mount() {
2405
+ let { current: e } = this.node;
2406
+ e && (this.unmount = Ct(e, (e, t) => (ha(this.node, t, "Start"), (e) => ha(this.node, e, "End"))));
2407
+ }
2408
+ unmount() {}
2409
+ }, _a = class extends H {
2410
+ constructor() {
2411
+ super(...arguments), this.isActive = !1;
2412
+ }
2413
+ onFocus() {
2414
+ let e = !1;
2415
+ try {
2416
+ e = this.node.current.matches(":focus-visible");
2417
+ } catch {
2418
+ e = !0;
2419
+ }
2420
+ !e || !this.node.animationState || (this.node.animationState.setActive("whileFocus", !0), this.isActive = !0);
2421
+ }
2422
+ onBlur() {
2423
+ !this.isActive || !this.node.animationState || (this.node.animationState.setActive("whileFocus", !1), this.isActive = !1);
2424
+ }
2425
+ mount() {
2426
+ this.unmount = a(J(this.node.current, "focus", () => this.onFocus()), J(this.node.current, "blur", () => this.onBlur()));
2427
+ }
2428
+ unmount() {}
2429
+ };
2430
+ //#endregion
2431
+ //#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/gestures/press.mjs
2432
+ function va(e, t, n) {
2433
+ let { props: r } = e;
2434
+ if (e.current instanceof HTMLButtonElement && e.current.disabled) return;
2435
+ e.animationState && r.whileTap && e.animationState.setActive("whileTap", n === "Start");
2436
+ let i = r["onTap" + (n === "End" ? "" : n)];
2437
+ i && A.postRender(() => i(t, Q(t)));
2438
+ }
2439
+ var ya = class extends H {
2440
+ mount() {
2441
+ let { current: e } = this.node;
2442
+ if (!e) return;
2443
+ let { globalTapTarget: t, propagate: n } = this.node.props;
2444
+ this.unmount = It(e, (e, t) => (va(this.node, t, "Start"), (e, { success: t }) => va(this.node, e, t ? "End" : "Cancel")), {
2445
+ useGlobalTarget: t,
2446
+ stopPropagation: n?.tap === !1
2447
+ });
2448
+ }
2449
+ unmount() {}
2450
+ }, ba = /* @__PURE__ */ new WeakMap(), xa = /* @__PURE__ */ new WeakMap(), Sa = (e) => {
2451
+ let t = ba.get(e.target);
2452
+ t && t(e);
2453
+ }, Ca = (e) => {
2454
+ e.forEach(Sa);
2455
+ };
2456
+ function wa({ root: e, ...t }) {
2457
+ let n = e || document;
2458
+ xa.has(n) || xa.set(n, {});
2459
+ let r = xa.get(n), i = JSON.stringify(t);
2460
+ return r[i] || (r[i] = new IntersectionObserver(Ca, {
2461
+ root: e,
2462
+ ...t
2463
+ })), r[i];
2464
+ }
2465
+ function Ta(e, t, n) {
2466
+ let r = wa(t);
2467
+ return ba.set(e, n), r.observe(e), () => {
2468
+ ba.delete(e), r.unobserve(e);
2469
+ };
2470
+ }
2471
+ //#endregion
2472
+ //#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/motion/features/viewport/index.mjs
2473
+ var Ea = {
2474
+ some: 0,
2475
+ all: 1
2476
+ }, Da = class extends H {
2477
+ constructor() {
2478
+ super(...arguments), this.hasEnteredView = !1, this.isInView = !1;
2479
+ }
2480
+ startObserver() {
2481
+ this.stopObserver?.();
2482
+ let { viewport: e = {} } = this.node.getProps(), { root: t, margin: n, amount: r = "some", once: i } = e, a = {
2483
+ root: t ? t.current : void 0,
2484
+ rootMargin: n,
2485
+ threshold: typeof r == "number" ? r : Ea[r]
2486
+ }, o = (e) => {
2487
+ let { isIntersecting: t } = e;
2488
+ if (this.isInView === t || (this.isInView = t, i && !t && this.hasEnteredView)) return;
2489
+ t && (this.hasEnteredView = !0), this.node.animationState && this.node.animationState.setActive("whileInView", t);
2490
+ let { onViewportEnter: n, onViewportLeave: r } = this.node.getProps(), a = t ? n : r;
2491
+ a && a(e);
2492
+ };
2493
+ this.stopObserver = Ta(this.node.current, a, o);
2494
+ }
2495
+ mount() {
2496
+ this.startObserver();
2497
+ }
2498
+ update() {
2499
+ if (typeof IntersectionObserver > "u") return;
2500
+ let { props: e, prevProps: t } = this.node;
2501
+ [
2502
+ "amount",
2503
+ "margin",
2504
+ "root"
2505
+ ].some(Oa(e, t)) && this.startObserver();
2506
+ }
2507
+ unmount() {
2508
+ this.stopObserver?.(), this.hasEnteredView = !1, this.isInView = !1;
2509
+ }
2510
+ };
2511
+ function Oa({ viewport: e = {} }, { viewport: t = {} } = {}) {
2512
+ return (n) => e[n] !== t[n];
2513
+ }
2514
+ //#endregion
2515
+ //#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/motion/features/gestures.mjs
2516
+ var ka = {
2517
+ inView: { Feature: Da },
2518
+ tap: { Feature: ya },
2519
+ focus: { Feature: _a },
2520
+ hover: { Feature: ga }
2521
+ }, Aa = { layout: {
2522
+ ProjectionNode: Or,
2523
+ MeasureLayout: pa
2524
+ } }, ja = /* @__PURE__ */ Oi({
2525
+ ...Mi,
2526
+ ...ka,
2527
+ ...ma,
2528
+ ...Aa
2529
+ }, ki);
2530
+ //#endregion
2531
+ export { R as a, ut as c, pt as i, Zr as n, st as o, Rr as r, ft as s, ja as t };
2532
+
2533
+ //# sourceMappingURL=proxy-Drpz0Avo.js.map