@g4rcez/components 4.1.3 → 5.0.1

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