@sigtes/ui 0.0.12 → 0.0.13

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 (538) hide show
  1. package/dist/{dist/dist/Button-BztPLDJi.es.es.js → Button-BztPLDJi.js} +43 -5
  2. package/dist/Button-C3Twt_rk.cjs +1 -0
  3. package/dist/UserProvider-BfG9Ccu3.js +395 -0
  4. package/dist/UserProvider-CQZEZTc7.cjs +22 -0
  5. package/dist/components/table/DragableRow.d.ts +7 -0
  6. package/dist/components.cjs.js +1970 -1
  7. package/dist/components.es.js +57915 -135
  8. package/dist/hooks.cjs.js +1 -1
  9. package/dist/hooks.es.js +62 -8
  10. package/dist/{dist/dist/locale-provider-BMa5HMi7-CUCoSBuJ.es.es.js → locale-provider-BMa5HMi7-CUCoSBuJ.js} +49 -46
  11. package/dist/locale-provider-BMa5HMi7-jcDwp-6T.cjs +22 -0
  12. package/dist/locale-provider-BMa5HMi7.js +831 -0
  13. package/dist/locale-provider-DfKreh8K.cjs +1 -0
  14. package/dist/navigation-CbiZy04t.js +1857 -0
  15. package/dist/navigation-Czjt6ygu.cjs +6 -0
  16. package/dist/pages.cjs.js +1 -1
  17. package/dist/pages.es.js +61 -5
  18. package/dist/providers.cjs.js +1 -1
  19. package/dist/providers.es.js +19 -10
  20. package/package.json +1 -1
  21. package/dist/_virtual/_interop_require_default.cjs.js +0 -1
  22. package/dist/_virtual/_interop_require_default.es.js +0 -4
  23. package/dist/_virtual/_interop_require_wildcard.cjs.js +0 -1
  24. package/dist/_virtual/_interop_require_wildcard.es.js +0 -4
  25. package/dist/_virtual/action-async-storage-instance.cjs.js +0 -1
  26. package/dist/_virtual/action-async-storage-instance.es.js +0 -4
  27. package/dist/_virtual/action-async-storage.external.cjs.js +0 -1
  28. package/dist/_virtual/action-async-storage.external.es.js +0 -4
  29. package/dist/_virtual/app-router-context.shared-runtime.cjs.js +0 -1
  30. package/dist/_virtual/app-router-context.shared-runtime.es.js +0 -4
  31. package/dist/_virtual/app-router-headers.cjs.js +0 -1
  32. package/dist/_virtual/app-router-headers.es.js +0 -4
  33. package/dist/_virtual/async-local-storage.cjs.js +0 -1
  34. package/dist/_virtual/async-local-storage.es.js +0 -4
  35. package/dist/_virtual/bailout-to-client-rendering.cjs.js +0 -1
  36. package/dist/_virtual/bailout-to-client-rendering.es.js +0 -4
  37. package/dist/_virtual/bailout-to-csr.cjs.js +0 -1
  38. package/dist/_virtual/bailout-to-csr.es.js +0 -4
  39. package/dist/_virtual/boundary-constants.cjs.js +0 -1
  40. package/dist/_virtual/boundary-constants.es.js +0 -4
  41. package/dist/_virtual/dynamic-rendering-utils.cjs.js +0 -1
  42. package/dist/_virtual/dynamic-rendering-utils.es.js +0 -4
  43. package/dist/_virtual/dynamic-rendering.cjs.js +0 -1
  44. package/dist/_virtual/dynamic-rendering.es.js +0 -4
  45. package/dist/_virtual/forbidden.cjs.js +0 -1
  46. package/dist/_virtual/forbidden.es.js +0 -4
  47. package/dist/_virtual/get-segment-value.cjs.js +0 -1
  48. package/dist/_virtual/get-segment-value.es.js +0 -4
  49. package/dist/_virtual/hooks-client-context.shared-runtime.cjs.js +0 -1
  50. package/dist/_virtual/hooks-client-context.shared-runtime.es.js +0 -4
  51. package/dist/_virtual/hooks-server-context.cjs.js +0 -1
  52. package/dist/_virtual/hooks-server-context.es.js +0 -4
  53. package/dist/_virtual/http-access-fallback.cjs.js +0 -1
  54. package/dist/_virtual/http-access-fallback.es.js +0 -4
  55. package/dist/_virtual/invariant-error.cjs.js +0 -1
  56. package/dist/_virtual/invariant-error.es.js +0 -4
  57. package/dist/_virtual/is-next-router-error.cjs.js +0 -1
  58. package/dist/_virtual/is-next-router-error.es.js +0 -4
  59. package/dist/_virtual/is-postpone.cjs.js +0 -1
  60. package/dist/_virtual/is-postpone.es.js +0 -4
  61. package/dist/_virtual/jsx-runtime.cjs.js +0 -1
  62. package/dist/_virtual/jsx-runtime.cjs2.js +0 -1
  63. package/dist/_virtual/jsx-runtime.es.js +0 -5
  64. package/dist/_virtual/jsx-runtime.es2.js +0 -4
  65. package/dist/_virtual/navigation.cjs.js +0 -1
  66. package/dist/_virtual/navigation.cjs2.js +0 -1
  67. package/dist/_virtual/navigation.es.js +0 -5
  68. package/dist/_virtual/navigation.es2.js +0 -4
  69. package/dist/_virtual/navigation.react-server.cjs.js +0 -1
  70. package/dist/_virtual/navigation.react-server.es.js +0 -4
  71. package/dist/_virtual/not-found.cjs.js +0 -1
  72. package/dist/_virtual/not-found.es.js +0 -4
  73. package/dist/_virtual/react-jsx-runtime.development.cjs.js +0 -1
  74. package/dist/_virtual/react-jsx-runtime.development.es.js +0 -4
  75. package/dist/_virtual/react-jsx-runtime.production.cjs.js +0 -1
  76. package/dist/_virtual/react-jsx-runtime.production.es.js +0 -4
  77. package/dist/_virtual/redirect-error.cjs.js +0 -1
  78. package/dist/_virtual/redirect-error.es.js +0 -4
  79. package/dist/_virtual/redirect-status-code.cjs.js +0 -1
  80. package/dist/_virtual/redirect-status-code.es.js +0 -4
  81. package/dist/_virtual/redirect.cjs.js +0 -1
  82. package/dist/_virtual/redirect.es.js +0 -4
  83. package/dist/_virtual/scheduler.cjs.js +0 -1
  84. package/dist/_virtual/scheduler.es.js +0 -4
  85. package/dist/_virtual/segment.cjs.js +0 -1
  86. package/dist/_virtual/segment.es.js +0 -4
  87. package/dist/_virtual/server-inserted-html.shared-runtime.cjs.js +0 -1
  88. package/dist/_virtual/server-inserted-html.shared-runtime.es.js +0 -4
  89. package/dist/_virtual/static-generation-bailout.cjs.js +0 -1
  90. package/dist/_virtual/static-generation-bailout.es.js +0 -4
  91. package/dist/_virtual/unauthorized.cjs.js +0 -1
  92. package/dist/_virtual/unauthorized.es.js +0 -4
  93. package/dist/_virtual/unrecognized-action-error.cjs.js +0 -1
  94. package/dist/_virtual/unrecognized-action-error.es.js +0 -4
  95. package/dist/_virtual/unstable-rethrow.browser.cjs.js +0 -1
  96. package/dist/_virtual/unstable-rethrow.browser.es.js +0 -4
  97. package/dist/_virtual/unstable-rethrow.cjs.js +0 -1
  98. package/dist/_virtual/unstable-rethrow.es.js +0 -4
  99. package/dist/_virtual/unstable-rethrow.server.cjs.js +0 -1
  100. package/dist/_virtual/unstable-rethrow.server.es.js +0 -4
  101. package/dist/_virtual/work-async-storage-instance.cjs.js +0 -1
  102. package/dist/_virtual/work-async-storage-instance.es.js +0 -4
  103. package/dist/_virtual/work-async-storage.external.cjs.js +0 -1
  104. package/dist/_virtual/work-async-storage.external.es.js +0 -4
  105. package/dist/_virtual/work-unit-async-storage-instance.cjs.js +0 -1
  106. package/dist/_virtual/work-unit-async-storage-instance.es.js +0 -4
  107. package/dist/_virtual/work-unit-async-storage.external.cjs.js +0 -1
  108. package/dist/_virtual/work-unit-async-storage.external.es.js +0 -4
  109. package/dist/components/avatar/Avatar.cjs.js +0 -1
  110. package/dist/components/avatar/Avatar.es.js +0 -10
  111. package/dist/components/badge/Badge.cjs.js +0 -1
  112. package/dist/components/badge/Badge.es.js +0 -25
  113. package/dist/components/badge/badgeVariants.cjs.js +0 -1
  114. package/dist/components/badge/badgeVariants.es.js +0 -20
  115. package/dist/components/button/Button.cjs.js +0 -1
  116. package/dist/components/button/Button.es.js +0 -27
  117. package/dist/components/button/buttonVariants.cjs.js +0 -1
  118. package/dist/components/button/buttonVariants.es.js +0 -29
  119. package/dist/components/calendar/Calendar.cjs.js +0 -1
  120. package/dist/components/calendar/Calendar.es.js +0 -174
  121. package/dist/components/calendar/DatePicker.cjs.js +0 -1
  122. package/dist/components/calendar/DatePicker.es.js +0 -56
  123. package/dist/components/calendar/DateRangePicker.cjs.js +0 -1
  124. package/dist/components/calendar/DateRangePicker.es.js +0 -57
  125. package/dist/components/card/Card.cjs.js +0 -1
  126. package/dist/components/card/Card.es.js +0 -109
  127. package/dist/components/checkbox/Checkbox.cjs.js +0 -1
  128. package/dist/components/checkbox/Checkbox.es.js +0 -33
  129. package/dist/components/collapsible/Collapsible.cjs.js +0 -1
  130. package/dist/components/collapsible/Collapsible.es.js +0 -35
  131. package/dist/components/combobox/Combobox.cjs.js +0 -1
  132. package/dist/components/combobox/Combobox.es.js +0 -105
  133. package/dist/components/command/Command.cjs.js +0 -1
  134. package/dist/components/command/Command.es.js +0 -172
  135. package/dist/components/data-table-faceted-filter/data-table-faceted-filter.cjs.js +0 -1
  136. package/dist/components/data-table-faceted-filter/data-table-faceted-filter.es.js +0 -139
  137. package/dist/components/dialog/Dialog.cjs.js +0 -1
  138. package/dist/components/dialog/Dialog.es.js +0 -144
  139. package/dist/components/dropdown-menu/Dropdown-Menu.cjs.js +0 -1
  140. package/dist/components/dropdown-menu/Dropdown-Menu.es.js +0 -251
  141. package/dist/components/form/Form.cjs.js +0 -1
  142. package/dist/components/form/Form.es.js +0 -109
  143. package/dist/components/input/Input.cjs.js +0 -1
  144. package/dist/components/input/Input.es.js +0 -22
  145. package/dist/components/label/Label.cjs.js +0 -1
  146. package/dist/components/label/Label.es.js +0 -24
  147. package/dist/components/popover/Popover.cjs.js +0 -1
  148. package/dist/components/popover/Popover.es.js +0 -46
  149. package/dist/components/select/Select.cjs.js +0 -1
  150. package/dist/components/select/Select.es.js +0 -171
  151. package/dist/components/separator/Separator.cjs.js +0 -1
  152. package/dist/components/separator/Separator.es.js +0 -28
  153. package/dist/components/skeleton/Skeleton.cjs.js +0 -1
  154. package/dist/components/skeleton/Skeleton.es.js +0 -15
  155. package/dist/components/sonner/Sonner.cjs.js +0 -1
  156. package/dist/components/sonner/Sonner.es.js +0 -23
  157. package/dist/components/table/DargableRow.cjs.js +0 -1
  158. package/dist/components/table/DargableRow.es.js +0 -46
  159. package/dist/components/table/DataTable.cjs.js +0 -1
  160. package/dist/components/table/DataTable.es.js +0 -314
  161. package/dist/components/table/DragHandle.cjs.js +0 -1
  162. package/dist/components/table/DragHandle.es.js +0 -27
  163. package/dist/components/table/Table.cjs.js +0 -1
  164. package/dist/components/table/Table.es.js +0 -125
  165. package/dist/components/tabs/Tabs.cjs.js +0 -1
  166. package/dist/components/tabs/Tabs.es.js +0 -69
  167. package/dist/components/textarea/Textarea.cjs.js +0 -1
  168. package/dist/components/textarea/Textarea.es.js +0 -22
  169. package/dist/dist/_virtual/jsx-runtime.es.cjs.js +0 -1
  170. package/dist/dist/_virtual/jsx-runtime.es.es.js +0 -5
  171. package/dist/dist/_virtual/jsx-runtime.es2.cjs.js +0 -1
  172. package/dist/dist/_virtual/jsx-runtime.es2.es.js +0 -4
  173. package/dist/dist/_virtual/react-jsx-runtime.development.es.cjs.js +0 -1
  174. package/dist/dist/_virtual/react-jsx-runtime.development.es.es.js +0 -4
  175. package/dist/dist/_virtual/react-jsx-runtime.production.es.cjs.js +0 -1
  176. package/dist/dist/_virtual/react-jsx-runtime.production.es.es.js +0 -4
  177. package/dist/dist/components/badge/badgeVariants.es.cjs.js +0 -1
  178. package/dist/dist/components/badge/badgeVariants.es.es.js +0 -17
  179. package/dist/dist/components/button/Button.es.cjs.js +0 -1
  180. package/dist/dist/components/button/Button.es.es.js +0 -27
  181. package/dist/dist/components/button/buttonVariants.es.cjs.js +0 -1
  182. package/dist/dist/components/button/buttonVariants.es.es.js +0 -29
  183. package/dist/dist/components/form/Form.es.cjs.js +0 -1
  184. package/dist/dist/components/form/Form.es.es.js +0 -13
  185. package/dist/dist/dist/Button-BztPLDJi.es.cjs.js +0 -1
  186. package/dist/dist/dist/UserProvider-BfG9Ccu3.es.cjs.js +0 -22
  187. package/dist/dist/dist/UserProvider-BfG9Ccu3.es.es.js +0 -302
  188. package/dist/dist/dist/components.es.es.cjs.js +0 -1125
  189. package/dist/dist/dist/components.es.es.es.js +0 -35195
  190. package/dist/dist/dist/locale-provider-BMa5HMi7-CUCoSBuJ.es.cjs.js +0 -22
  191. package/dist/dist/dist/locale-provider-BMa5HMi7.es.cjs.js +0 -1
  192. package/dist/dist/dist/locale-provider-BMa5HMi7.es.es.js +0 -6
  193. package/dist/dist/node_modules/@radix-ui/primitive/dist/index.es.cjs.js +0 -1
  194. package/dist/dist/node_modules/@radix-ui/primitive/dist/index.es.es.js +0 -9
  195. package/dist/dist/node_modules/@radix-ui/react-compose-refs/dist/index.es.cjs.js +0 -1
  196. package/dist/dist/node_modules/@radix-ui/react-compose-refs/dist/index.es.es.js +0 -29
  197. package/dist/dist/node_modules/@radix-ui/react-context/dist/index.es.cjs.js +0 -1
  198. package/dist/dist/node_modules/@radix-ui/react-context/dist/index.es.es.js +0 -68
  199. package/dist/dist/node_modules/@radix-ui/react-dialog/dist/index.es.cjs.js +0 -5
  200. package/dist/dist/node_modules/@radix-ui/react-dialog/dist/index.es.es.js +0 -209
  201. package/dist/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.es.cjs.js +0 -1
  202. package/dist/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.es.es.js +0 -128
  203. package/dist/dist/node_modules/@radix-ui/react-focus-guards/dist/index.es.cjs.js +0 -1
  204. package/dist/dist/node_modules/@radix-ui/react-focus-guards/dist/index.es.es.js +0 -18
  205. package/dist/dist/node_modules/@radix-ui/react-focus-scope/dist/index.es.cjs.js +0 -1
  206. package/dist/dist/node_modules/@radix-ui/react-focus-scope/dist/index.es.es.js +0 -137
  207. package/dist/dist/node_modules/@radix-ui/react-portal/dist/index.es.cjs.js +0 -1
  208. package/dist/dist/node_modules/@radix-ui/react-portal/dist/index.es.es.js +0 -16
  209. package/dist/dist/node_modules/@radix-ui/react-presence/dist/index.es.cjs.js +0 -1
  210. package/dist/dist/node_modules/@radix-ui/react-presence/dist/index.es.es.js +0 -71
  211. package/dist/dist/node_modules/@radix-ui/react-primitive/dist/index.es.cjs.js +0 -1
  212. package/dist/dist/node_modules/@radix-ui/react-primitive/dist/index.es.es.js +0 -36
  213. package/dist/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.es.cjs.js +0 -1
  214. package/dist/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.es.es.js +0 -10
  215. package/dist/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.es.cjs.js +0 -1
  216. package/dist/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.es.es.js +0 -14
  217. package/dist/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.es.cjs.js +0 -1
  218. package/dist/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.es.es.js +0 -6
  219. package/dist/dist/node_modules/aria-hidden/dist/es2015/index.es.cjs.js +0 -1
  220. package/dist/dist/node_modules/aria-hidden/dist/es2015/index.es.es.js +0 -52
  221. package/dist/dist/node_modules/clsx/dist/clsx.es.cjs.js +0 -1
  222. package/dist/dist/node_modules/clsx/dist/clsx.es.es.js +0 -17
  223. package/dist/dist/node_modules/get-nonce/dist/es2015/index.es.cjs.js +0 -1
  224. package/dist/dist/node_modules/get-nonce/dist/es2015/index.es.es.js +0 -7
  225. package/dist/dist/node_modules/react/cjs/react-jsx-runtime.development.es.cjs.js +0 -14
  226. package/dist/dist/node_modules/react/cjs/react-jsx-runtime.development.es.es.js +0 -247
  227. package/dist/dist/node_modules/react/cjs/react-jsx-runtime.production.es.cjs.js +0 -9
  228. package/dist/dist/node_modules/react/cjs/react-jsx-runtime.production.es.es.js +0 -35
  229. package/dist/dist/node_modules/react/jsx-runtime.es.cjs.js +0 -1
  230. package/dist/dist/node_modules/react/jsx-runtime.es.es.js +0 -10
  231. package/dist/dist/node_modules/react-remove-scroll/dist/es2015/Combination.es.cjs.js +0 -1
  232. package/dist/dist/node_modules/react-remove-scroll/dist/es2015/Combination.es.es.js +0 -11
  233. package/dist/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.es.cjs.js +0 -4
  234. package/dist/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.es.es.js +0 -112
  235. package/dist/dist/node_modules/react-remove-scroll/dist/es2015/UI.es.cjs.js +0 -1
  236. package/dist/dist/node_modules/react-remove-scroll/dist/es2015/UI.es.es.js +0 -31
  237. package/dist/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.es.cjs.js +0 -1
  238. package/dist/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.es.es.js +0 -16
  239. package/dist/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.es.cjs.js +0 -1
  240. package/dist/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.es.es.js +0 -68
  241. package/dist/dist/node_modules/react-remove-scroll/dist/es2015/medium.es.cjs.js +0 -1
  242. package/dist/dist/node_modules/react-remove-scroll/dist/es2015/medium.es.es.js +0 -5
  243. package/dist/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.es.cjs.js +0 -1
  244. package/dist/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.es.es.js +0 -7
  245. package/dist/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.es.cjs.js +0 -38
  246. package/dist/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.es.es.js +0 -71
  247. package/dist/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.es.cjs.js +0 -1
  248. package/dist/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.es.es.js +0 -7
  249. package/dist/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.es.cjs.js +0 -1
  250. package/dist/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.es.es.js +0 -25
  251. package/dist/dist/node_modules/react-style-singleton/dist/es2015/component.es.cjs.js +0 -1
  252. package/dist/dist/node_modules/react-style-singleton/dist/es2015/component.es.es.js +0 -11
  253. package/dist/dist/node_modules/react-style-singleton/dist/es2015/hook.es.cjs.js +0 -1
  254. package/dist/dist/node_modules/react-style-singleton/dist/es2015/hook.es.es.js +0 -15
  255. package/dist/dist/node_modules/react-style-singleton/dist/es2015/singleton.es.cjs.js +0 -1
  256. package/dist/dist/node_modules/react-style-singleton/dist/es2015/singleton.es.es.js +0 -30
  257. package/dist/dist/node_modules/tslib/tslib.es6.es.cjs.js +0 -1
  258. package/dist/dist/node_modules/tslib/tslib.es6.es.es.js +0 -27
  259. package/dist/dist/node_modules/use-callback-ref/dist/es2015/assignRef.es.cjs.js +0 -1
  260. package/dist/dist/node_modules/use-callback-ref/dist/es2015/assignRef.es.es.js +0 -6
  261. package/dist/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.es.cjs.js +0 -1
  262. package/dist/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.es.es.js +0 -26
  263. package/dist/dist/node_modules/use-callback-ref/dist/es2015/useRef.es.cjs.js +0 -1
  264. package/dist/dist/node_modules/use-callback-ref/dist/es2015/useRef.es.es.js +0 -25
  265. package/dist/dist/node_modules/use-sidecar/dist/es2015/exports.es.cjs.js +0 -1
  266. package/dist/dist/node_modules/use-sidecar/dist/es2015/exports.es.es.js +0 -18
  267. package/dist/dist/node_modules/use-sidecar/dist/es2015/medium.es.cjs.js +0 -1
  268. package/dist/dist/node_modules/use-sidecar/dist/es2015/medium.es.es.js +0 -67
  269. package/dist/dist/providers/locale-provider/locale-provider.es.cjs.js +0 -1
  270. package/dist/dist/providers/locale-provider/locale-provider.es.es.js +0 -6
  271. package/dist/dist/providers/user-provider/UserProvider.es.cjs.js +0 -1
  272. package/dist/dist/providers/user-provider/UserProvider.es.es.js +0 -25
  273. package/dist/dist/utils/utils.es.cjs.js +0 -1
  274. package/dist/dist/utils/utils.es.es.js +0 -8
  275. package/dist/hooks/useAuthorization/useAuthorization.cjs.js +0 -1
  276. package/dist/hooks/useAuthorization/useAuthorization.es.js +0 -17
  277. package/dist/hooks/useErrors/useErrors.cjs.js +0 -1
  278. package/dist/hooks/useErrors/useErrors.es.js +0 -17
  279. package/dist/hooks/useFormState/useFormState.cjs.js +0 -1
  280. package/dist/hooks/useFormState/useFormState.es.js +0 -36
  281. package/dist/node_modules/@radix-ui/primitive/dist/index.cjs.js +0 -1
  282. package/dist/node_modules/@radix-ui/primitive/dist/index.es.js +0 -9
  283. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.cjs.js +0 -1
  284. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.es.js +0 -29
  285. package/dist/node_modules/@radix-ui/react-context/dist/index.cjs.js +0 -1
  286. package/dist/node_modules/@radix-ui/react-context/dist/index.es.js +0 -68
  287. package/dist/node_modules/@radix-ui/react-dialog/dist/index.cjs.js +0 -5
  288. package/dist/node_modules/@radix-ui/react-dialog/dist/index.es.js +0 -258
  289. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs.js +0 -1
  290. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.es.js +0 -128
  291. package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.cjs.js +0 -1
  292. package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.es.js +0 -18
  293. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.cjs.js +0 -1
  294. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.es.js +0 -137
  295. package/dist/node_modules/@radix-ui/react-id/dist/index.cjs.js +0 -1
  296. package/dist/node_modules/@radix-ui/react-id/dist/index.es.js +0 -13
  297. package/dist/node_modules/@radix-ui/react-portal/dist/index.cjs.js +0 -1
  298. package/dist/node_modules/@radix-ui/react-portal/dist/index.es.js +0 -16
  299. package/dist/node_modules/@radix-ui/react-presence/dist/index.cjs.js +0 -1
  300. package/dist/node_modules/@radix-ui/react-presence/dist/index.es.js +0 -71
  301. package/dist/node_modules/@radix-ui/react-primitive/dist/index.cjs.js +0 -1
  302. package/dist/node_modules/@radix-ui/react-primitive/dist/index.es.js +0 -36
  303. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs.js +0 -1
  304. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.es.js +0 -10
  305. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.cjs.js +0 -1
  306. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.es.js +0 -52
  307. package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.cjs.js +0 -1
  308. package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.es.js +0 -14
  309. package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.cjs.js +0 -1
  310. package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.es.js +0 -6
  311. package/dist/node_modules/@swc/helpers/cjs/_interop_require_default.cjs.js +0 -1
  312. package/dist/node_modules/@swc/helpers/cjs/_interop_require_default.es.js +0 -13
  313. package/dist/node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs.js +0 -1
  314. package/dist/node_modules/@swc/helpers/cjs/_interop_require_wildcard.es.js +0 -30
  315. package/dist/node_modules/aria-hidden/dist/es2015/index.cjs.js +0 -1
  316. package/dist/node_modules/aria-hidden/dist/es2015/index.es.js +0 -52
  317. package/dist/node_modules/clsx/dist/clsx.cjs.js +0 -1
  318. package/dist/node_modules/clsx/dist/clsx.es.js +0 -17
  319. package/dist/node_modules/date-fns/_lib/addLeadingZeros.cjs.js +0 -1
  320. package/dist/node_modules/date-fns/_lib/addLeadingZeros.es.js +0 -7
  321. package/dist/node_modules/date-fns/_lib/defaultOptions.cjs.js +0 -1
  322. package/dist/node_modules/date-fns/_lib/defaultOptions.es.js +0 -7
  323. package/dist/node_modules/date-fns/_lib/format/formatters.cjs.js +0 -1
  324. package/dist/node_modules/date-fns/_lib/format/formatters.es.js +0 -583
  325. package/dist/node_modules/date-fns/_lib/format/lightFormatters.cjs.js +0 -1
  326. package/dist/node_modules/date-fns/_lib/format/lightFormatters.es.js +0 -59
  327. package/dist/node_modules/date-fns/_lib/format/longFormatters.cjs.js +0 -1
  328. package/dist/node_modules/date-fns/_lib/format/longFormatters.es.js +0 -52
  329. package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.cjs.js +0 -1
  330. package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.es.js +0 -18
  331. package/dist/node_modules/date-fns/_lib/normalizeDates.cjs.js +0 -1
  332. package/dist/node_modules/date-fns/_lib/normalizeDates.es.js +0 -11
  333. package/dist/node_modules/date-fns/_lib/protectedTokens.cjs.js +0 -1
  334. package/dist/node_modules/date-fns/_lib/protectedTokens.es.js +0 -20
  335. package/dist/node_modules/date-fns/constants.cjs.js +0 -1
  336. package/dist/node_modules/date-fns/constants.es.js +0 -6
  337. package/dist/node_modules/date-fns/constructFrom.cjs.js +0 -1
  338. package/dist/node_modules/date-fns/constructFrom.es.js +0 -8
  339. package/dist/node_modules/date-fns/differenceInCalendarDays.cjs.js +0 -1
  340. package/dist/node_modules/date-fns/differenceInCalendarDays.es.js +0 -16
  341. package/dist/node_modules/date-fns/format.cjs.js +0 -1
  342. package/dist/node_modules/date-fns/format.es.js +0 -58
  343. package/dist/node_modules/date-fns/getDayOfYear.cjs.js +0 -1
  344. package/dist/node_modules/date-fns/getDayOfYear.es.js +0 -11
  345. package/dist/node_modules/date-fns/getISOWeek.cjs.js +0 -1
  346. package/dist/node_modules/date-fns/getISOWeek.es.js +0 -12
  347. package/dist/node_modules/date-fns/getISOWeekYear.cjs.js +0 -1
  348. package/dist/node_modules/date-fns/getISOWeekYear.es.js +0 -15
  349. package/dist/node_modules/date-fns/getWeek.cjs.js +0 -1
  350. package/dist/node_modules/date-fns/getWeek.es.js +0 -12
  351. package/dist/node_modules/date-fns/getWeekYear.cjs.js +0 -1
  352. package/dist/node_modules/date-fns/getWeekYear.es.js +0 -16
  353. package/dist/node_modules/date-fns/isDate.cjs.js +0 -1
  354. package/dist/node_modules/date-fns/isDate.es.js +0 -7
  355. package/dist/node_modules/date-fns/isValid.cjs.js +0 -1
  356. package/dist/node_modules/date-fns/isValid.es.js +0 -9
  357. package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.cjs.js +0 -1
  358. package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.es.js +0 -9
  359. package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.cjs.js +0 -1
  360. package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.es.js +0 -18
  361. package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.cjs.js +0 -1
  362. package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.es.js +0 -31
  363. package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.cjs.js +0 -1
  364. package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.es.js +0 -15
  365. package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.cjs.js +0 -1
  366. package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.es.js +0 -70
  367. package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.cjs.js +0 -1
  368. package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.es.js +0 -33
  369. package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.cjs.js +0 -1
  370. package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.es.js +0 -11
  371. package/dist/node_modules/date-fns/locale/en-US/_lib/localize.cjs.js +0 -1
  372. package/dist/node_modules/date-fns/locale/en-US/_lib/localize.es.js +0 -155
  373. package/dist/node_modules/date-fns/locale/en-US/_lib/match.cjs.js +0 -1
  374. package/dist/node_modules/date-fns/locale/en-US/_lib/match.es.js +0 -110
  375. package/dist/node_modules/date-fns/locale/en-US.cjs.js +0 -1
  376. package/dist/node_modules/date-fns/locale/en-US.es.js +0 -21
  377. package/dist/node_modules/date-fns/locale/pt-BR/_lib/formatDistance.cjs.js +0 -1
  378. package/dist/node_modules/date-fns/locale/pt-BR/_lib/formatDistance.es.js +0 -70
  379. package/dist/node_modules/date-fns/locale/pt-BR/_lib/formatLong.cjs.js +0 -1
  380. package/dist/node_modules/date-fns/locale/pt-BR/_lib/formatLong.es.js +0 -33
  381. package/dist/node_modules/date-fns/locale/pt-BR/_lib/formatRelative.cjs.js +0 -1
  382. package/dist/node_modules/date-fns/locale/pt-BR/_lib/formatRelative.es.js +0 -17
  383. package/dist/node_modules/date-fns/locale/pt-BR/_lib/localize.cjs.js +0 -1
  384. package/dist/node_modules/date-fns/locale/pt-BR/_lib/localize.es.js +0 -154
  385. package/dist/node_modules/date-fns/locale/pt-BR/_lib/match.cjs.js +0 -1
  386. package/dist/node_modules/date-fns/locale/pt-BR/_lib/match.es.js +0 -112
  387. package/dist/node_modules/date-fns/locale/pt-BR.cjs.js +0 -1
  388. package/dist/node_modules/date-fns/locale/pt-BR.es.js +0 -21
  389. package/dist/node_modules/date-fns/startOfDay.cjs.js +0 -1
  390. package/dist/node_modules/date-fns/startOfDay.es.js +0 -9
  391. package/dist/node_modules/date-fns/startOfISOWeek.cjs.js +0 -1
  392. package/dist/node_modules/date-fns/startOfISOWeek.es.js +0 -8
  393. package/dist/node_modules/date-fns/startOfISOWeekYear.cjs.js +0 -1
  394. package/dist/node_modules/date-fns/startOfISOWeekYear.es.js +0 -11
  395. package/dist/node_modules/date-fns/startOfWeek.cjs.js +0 -1
  396. package/dist/node_modules/date-fns/startOfWeek.es.js +0 -10
  397. package/dist/node_modules/date-fns/startOfWeekYear.cjs.js +0 -1
  398. package/dist/node_modules/date-fns/startOfWeekYear.es.js +0 -12
  399. package/dist/node_modules/date-fns/startOfYear.cjs.js +0 -1
  400. package/dist/node_modules/date-fns/startOfYear.es.js +0 -9
  401. package/dist/node_modules/date-fns/toDate.cjs.js +0 -1
  402. package/dist/node_modules/date-fns/toDate.es.js +0 -8
  403. package/dist/node_modules/get-nonce/dist/es2015/index.cjs.js +0 -1
  404. package/dist/node_modules/get-nonce/dist/es2015/index.es.js +0 -7
  405. package/dist/node_modules/next/dist/client/components/app-router-headers.cjs.js +0 -1
  406. package/dist/node_modules/next/dist/client/components/app-router-headers.es.js +0 -79
  407. package/dist/node_modules/next/dist/client/components/bailout-to-client-rendering.cjs.js +0 -1
  408. package/dist/node_modules/next/dist/client/components/bailout-to-client-rendering.es.js +0 -40
  409. package/dist/node_modules/next/dist/client/components/forbidden.cjs.js +0 -1
  410. package/dist/node_modules/next/dist/client/components/forbidden.es.js +0 -34
  411. package/dist/node_modules/next/dist/client/components/hooks-server-context.cjs.js +0 -1
  412. package/dist/node_modules/next/dist/client/components/hooks-server-context.es.js +0 -36
  413. package/dist/node_modules/next/dist/client/components/http-access-fallback/http-access-fallback.cjs.js +0 -1
  414. package/dist/node_modules/next/dist/client/components/http-access-fallback/http-access-fallback.es.js +0 -63
  415. package/dist/node_modules/next/dist/client/components/is-next-router-error.cjs.js +0 -1
  416. package/dist/node_modules/next/dist/client/components/is-next-router-error.es.js +0 -24
  417. package/dist/node_modules/next/dist/client/components/navigation.cjs.js +0 -1
  418. package/dist/node_modules/next/dist/client/components/navigation.es.js +0 -137
  419. package/dist/node_modules/next/dist/client/components/navigation.react-server.cjs.js +0 -1
  420. package/dist/node_modules/next/dist/client/components/navigation.react-server.es.js +0 -85
  421. package/dist/node_modules/next/dist/client/components/not-found.cjs.js +0 -1
  422. package/dist/node_modules/next/dist/client/components/not-found.es.js +0 -28
  423. package/dist/node_modules/next/dist/client/components/redirect-error.cjs.js +0 -1
  424. package/dist/node_modules/next/dist/client/components/redirect-error.es.js +0 -41
  425. package/dist/node_modules/next/dist/client/components/redirect-status-code.cjs.js +0 -1
  426. package/dist/node_modules/next/dist/client/components/redirect-status-code.es.js +0 -21
  427. package/dist/node_modules/next/dist/client/components/redirect.cjs.js +0 -1
  428. package/dist/node_modules/next/dist/client/components/redirect.es.js +0 -80
  429. package/dist/node_modules/next/dist/client/components/router-reducer/reducers/get-segment-value.cjs.js +0 -1
  430. package/dist/node_modules/next/dist/client/components/router-reducer/reducers/get-segment-value.es.js +0 -21
  431. package/dist/node_modules/next/dist/client/components/static-generation-bailout.cjs.js +0 -1
  432. package/dist/node_modules/next/dist/client/components/static-generation-bailout.es.js +0 -36
  433. package/dist/node_modules/next/dist/client/components/unauthorized.cjs.js +0 -1
  434. package/dist/node_modules/next/dist/client/components/unauthorized.es.js +0 -34
  435. package/dist/node_modules/next/dist/client/components/unrecognized-action-error.cjs.js +0 -1
  436. package/dist/node_modules/next/dist/client/components/unrecognized-action-error.es.js +0 -35
  437. package/dist/node_modules/next/dist/client/components/unstable-rethrow.browser.cjs.js +0 -1
  438. package/dist/node_modules/next/dist/client/components/unstable-rethrow.browser.es.js +0 -26
  439. package/dist/node_modules/next/dist/client/components/unstable-rethrow.cjs.js +0 -1
  440. package/dist/node_modules/next/dist/client/components/unstable-rethrow.es.js +0 -21
  441. package/dist/node_modules/next/dist/client/components/unstable-rethrow.server.cjs.js +0 -1
  442. package/dist/node_modules/next/dist/client/components/unstable-rethrow.server.es.js +0 -30
  443. package/dist/node_modules/next/dist/lib/framework/boundary-constants.cjs.js +0 -1
  444. package/dist/node_modules/next/dist/lib/framework/boundary-constants.es.js +0 -33
  445. package/dist/node_modules/next/dist/lib/scheduler.cjs.js +0 -1
  446. package/dist/node_modules/next/dist/lib/scheduler.es.js +0 -45
  447. package/dist/node_modules/next/dist/server/app-render/action-async-storage-instance.cjs.js +0 -1
  448. package/dist/node_modules/next/dist/server/app-render/action-async-storage-instance.es.js +0 -19
  449. package/dist/node_modules/next/dist/server/app-render/action-async-storage.external.cjs.js +0 -1
  450. package/dist/node_modules/next/dist/server/app-render/action-async-storage.external.es.js +0 -19
  451. package/dist/node_modules/next/dist/server/app-render/async-local-storage.cjs.js +0 -1
  452. package/dist/node_modules/next/dist/server/app-render/async-local-storage.es.js +0 -65
  453. package/dist/node_modules/next/dist/server/app-render/dynamic-rendering.cjs.js +0 -6
  454. package/dist/node_modules/next/dist/server/app-render/dynamic-rendering.es.js +0 -419
  455. package/dist/node_modules/next/dist/server/app-render/work-async-storage-instance.cjs.js +0 -1
  456. package/dist/node_modules/next/dist/server/app-render/work-async-storage-instance.es.js +0 -19
  457. package/dist/node_modules/next/dist/server/app-render/work-async-storage.external.cjs.js +0 -1
  458. package/dist/node_modules/next/dist/server/app-render/work-async-storage.external.es.js +0 -19
  459. package/dist/node_modules/next/dist/server/app-render/work-unit-async-storage-instance.cjs.js +0 -1
  460. package/dist/node_modules/next/dist/server/app-render/work-unit-async-storage-instance.es.js +0 -19
  461. package/dist/node_modules/next/dist/server/app-render/work-unit-async-storage.external.cjs.js +0 -1
  462. package/dist/node_modules/next/dist/server/app-render/work-unit-async-storage.external.es.js +0 -187
  463. package/dist/node_modules/next/dist/server/dynamic-rendering-utils.cjs.js +0 -1
  464. package/dist/node_modules/next/dist/server/dynamic-rendering-utils.es.js +0 -72
  465. package/dist/node_modules/next/dist/server/lib/router-utils/is-postpone.cjs.js +0 -1
  466. package/dist/node_modules/next/dist/server/lib/router-utils/is-postpone.es.js +0 -21
  467. package/dist/node_modules/next/dist/shared/lib/app-router-context.shared-runtime.cjs.js +0 -1
  468. package/dist/node_modules/next/dist/shared/lib/app-router-context.shared-runtime.es.js +0 -41
  469. package/dist/node_modules/next/dist/shared/lib/hooks-client-context.shared-runtime.cjs.js +0 -1
  470. package/dist/node_modules/next/dist/shared/lib/hooks-client-context.shared-runtime.es.js +0 -33
  471. package/dist/node_modules/next/dist/shared/lib/invariant-error.cjs.js +0 -1
  472. package/dist/node_modules/next/dist/shared/lib/invariant-error.es.js +0 -22
  473. package/dist/node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.cjs.js +0 -1
  474. package/dist/node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.es.js +0 -35
  475. package/dist/node_modules/next/dist/shared/lib/segment.cjs.js +0 -1
  476. package/dist/node_modules/next/dist/shared/lib/segment.es.js +0 -49
  477. package/dist/node_modules/next/dist/shared/lib/server-inserted-html.shared-runtime.cjs.js +0 -1
  478. package/dist/node_modules/next/dist/shared/lib/server-inserted-html.shared-runtime.es.js +0 -34
  479. package/dist/node_modules/next/navigation.cjs.js +0 -1
  480. package/dist/node_modules/next/navigation.es.js +0 -8
  481. package/dist/node_modules/react/cjs/react-jsx-runtime.development.cjs.js +0 -14
  482. package/dist/node_modules/react/cjs/react-jsx-runtime.development.es.js +0 -247
  483. package/dist/node_modules/react/cjs/react-jsx-runtime.production.cjs.js +0 -9
  484. package/dist/node_modules/react/cjs/react-jsx-runtime.production.es.js +0 -35
  485. package/dist/node_modules/react/jsx-runtime.cjs.js +0 -1
  486. package/dist/node_modules/react/jsx-runtime.es.js +0 -10
  487. package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.cjs.js +0 -1
  488. package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.es.js +0 -11
  489. package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.cjs.js +0 -4
  490. package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.es.js +0 -112
  491. package/dist/node_modules/react-remove-scroll/dist/es2015/UI.cjs.js +0 -1
  492. package/dist/node_modules/react-remove-scroll/dist/es2015/UI.es.js +0 -31
  493. package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.cjs.js +0 -1
  494. package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.es.js +0 -16
  495. package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.cjs.js +0 -1
  496. package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.es.js +0 -68
  497. package/dist/node_modules/react-remove-scroll/dist/es2015/medium.cjs.js +0 -1
  498. package/dist/node_modules/react-remove-scroll/dist/es2015/medium.es.js +0 -5
  499. package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.cjs.js +0 -1
  500. package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.es.js +0 -7
  501. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.cjs.js +0 -38
  502. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.es.js +0 -71
  503. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.cjs.js +0 -1
  504. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.es.js +0 -7
  505. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.cjs.js +0 -1
  506. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.es.js +0 -25
  507. package/dist/node_modules/react-style-singleton/dist/es2015/component.cjs.js +0 -1
  508. package/dist/node_modules/react-style-singleton/dist/es2015/component.es.js +0 -11
  509. package/dist/node_modules/react-style-singleton/dist/es2015/hook.cjs.js +0 -1
  510. package/dist/node_modules/react-style-singleton/dist/es2015/hook.es.js +0 -15
  511. package/dist/node_modules/react-style-singleton/dist/es2015/singleton.cjs.js +0 -1
  512. package/dist/node_modules/react-style-singleton/dist/es2015/singleton.es.js +0 -30
  513. package/dist/node_modules/tslib/tslib.es6.cjs.js +0 -1
  514. package/dist/node_modules/tslib/tslib.es6.es.js +0 -27
  515. package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.cjs.js +0 -1
  516. package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.es.js +0 -6
  517. package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.cjs.js +0 -1
  518. package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.es.js +0 -26
  519. package/dist/node_modules/use-callback-ref/dist/es2015/useRef.cjs.js +0 -1
  520. package/dist/node_modules/use-callback-ref/dist/es2015/useRef.es.js +0 -25
  521. package/dist/node_modules/use-sidecar/dist/es2015/exports.cjs.js +0 -1
  522. package/dist/node_modules/use-sidecar/dist/es2015/exports.es.js +0 -18
  523. package/dist/node_modules/use-sidecar/dist/es2015/medium.cjs.js +0 -1
  524. package/dist/node_modules/use-sidecar/dist/es2015/medium.es.js +0 -67
  525. package/dist/pages/error/error.cjs.js +0 -1
  526. package/dist/pages/error/error.es.js +0 -32
  527. package/dist/pages/forbidden/forbidden.cjs.js +0 -1
  528. package/dist/pages/forbidden/forbidden.es.js +0 -31
  529. package/dist/pages/not-found/not-found.cjs.js +0 -1
  530. package/dist/pages/not-found/not-found.es.js +0 -17
  531. package/dist/providers/locale-provider/locale-provider.cjs.js +0 -1
  532. package/dist/providers/locale-provider/locale-provider.es.js +0 -29
  533. package/dist/providers/theme-provider/ThemeProvider.cjs.js +0 -1
  534. package/dist/providers/theme-provider/ThemeProvider.es.js +0 -13
  535. package/dist/providers/user-provider/UserProvider.cjs.js +0 -1
  536. package/dist/providers/user-provider/UserProvider.es.js +0 -115
  537. package/dist/utils/utils.cjs.js +0 -1
  538. package/dist/utils/utils.es.js +0 -8
@@ -1,1125 +0,0 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./Button-BztPLDJi.es.cjs.js");const ce=require("./UserProvider-BfG9Ccu3.es.cjs.js"),P=require("react");require("@tanstack/react-table");require("@dnd-kit/sortable");require("@dnd-kit/core");require("@radix-ui/react-dropdown-menu");require("lucide-react");require("@tabler/icons-react");require("@radix-ui/react-select");require("@dnd-kit/modifiers");require("@radix-ui/react-label");require("tailwind-merge");const q=require("@radix-ui/react-slot"),ae=require("class-variance-authority");require("@dnd-kit/utilities");const A_=require("react-day-picker");require("@radix-ui/react-popover");require("./locale-provider-BMa5HMi7.es.cjs.js");require("@radix-ui/react-checkbox");require("@radix-ui/react-collapsible");const be=require("react-dom");require("cmdk");const ue=require("./locale-provider-BMa5HMi7-CUCoSBuJ.es.cjs.js");require("@radix-ui/react-separator");require("react-hook-form");require("next-themes");const I_=require("sonner");require("@radix-ui/react-tabs");function $w(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const i=$w(P),we=$w(be);ae.cva("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function kr(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),r===!1||!n.defaultPrevented)return t?.(n)}}function nv(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function L_(...e){return t=>{let r=!1;const n=e.map(o=>{const a=nv(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():nv(e[o],null)}}}}function rn(...e){return i.useCallback(L_(...e),e)}function F_(e,t){const r=i.createContext(t),n=a=>{const{children:c,...s}=a,m=i.useMemo(()=>s,Object.values(s));return ce.j.jsx(r.Provider,{value:m,children:c})};n.displayName=e+"Provider";function o(a){const c=i.useContext(r);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,o]}function W_(e,t=[]){let r=[];function n(a,c){const s=i.createContext(c),m=r.length;r=[...r,c];const f=p=>{const{scope:v,children:g,...E}=p,u=v?.[e]?.[m]||s,h=i.useMemo(()=>E,Object.values(E));return ce.j.jsx(u.Provider,{value:h,children:g})};f.displayName=a+"Provider";function l(p,v){const g=v?.[e]?.[m]||s,E=i.useContext(g);if(E)return E;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[f,l]}const o=()=>{const a=r.map(c=>i.createContext(c));return function(c){const s=c?.[e]||a;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:s}}),[c,s])}};return o.scopeName=e,[n,$_(o,...t)]}function $_(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(o){const a=n.reduce((c,{useScope:s,scopeName:m})=>{const f=s(o)[`__scope${m}`];return{...c,...f}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}var zf=globalThis?.document?i.useLayoutEffect:()=>{},z_=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],qt=z_.reduce((e,t)=>{const r=q.createSlot(`Primitive.${t}`),n=i.forwardRef((o,a)=>{const{asChild:c,...s}=o,m=c?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),ce.j.jsx(m,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function U_(e,t){e&&we.flushSync(()=>e.dispatchEvent(t))}function va(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...r)=>t.current?.(...r),[])}function Y_(e,t=globalThis?.document){const r=va(e);i.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var B_="DismissableLayer",Uf="dismissableLayer.update",K_="dismissableLayer.pointerDownOutside",X_="dismissableLayer.focusOutside",ov,zw=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Uw=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:c,onDismiss:s,...m}=e,f=i.useContext(zw),[l,p]=i.useState(null),v=l?.ownerDocument??globalThis?.document,[,g]=i.useState({}),E=rn(t,S=>p(S)),u=Array.from(f.layers),[h]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),y=u.indexOf(h),b=l?u.indexOf(l):-1,w=f.layersWithOutsidePointerEventsDisabled.size>0,k=b>=y,C=q_(S=>{const R=S.target,D=[...f.branches].some(L=>L.contains(R));!k||D||(o?.(S),c?.(S),S.defaultPrevented||s?.())},v),N=Z_(S=>{const R=S.target;[...f.branches].some(D=>D.contains(R))||(a?.(S),c?.(S),S.defaultPrevented||s?.())},v);return Y_(S=>{b===f.layers.size-1&&(n?.(S),!S.defaultPrevented&&s&&(S.preventDefault(),s()))},v),i.useEffect(()=>{if(l)return r&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(ov=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(l)),f.layers.add(l),av(),()=>{r&&f.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=ov)}},[l,v,r,f]),i.useEffect(()=>()=>{l&&(f.layers.delete(l),f.layersWithOutsidePointerEventsDisabled.delete(l),av())},[l,f]),i.useEffect(()=>{const S=()=>g({});return document.addEventListener(Uf,S),()=>document.removeEventListener(Uf,S)},[]),ce.j.jsx(qt.div,{...m,ref:E,style:{pointerEvents:w?k?"auto":"none":void 0,...e.style},onFocusCapture:kr(e.onFocusCapture,N.onFocusCapture),onBlurCapture:kr(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:kr(e.onPointerDownCapture,C.onPointerDownCapture)})});Uw.displayName=B_;var H_="DismissableLayerBranch",V_=i.forwardRef((e,t)=>{const r=i.useContext(zw),n=i.useRef(null),o=rn(t,n);return i.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),ce.j.jsx(qt.div,{...e,ref:o})});V_.displayName=H_;function q_(e,t=globalThis?.document){const r=va(e),n=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let m=function(){Yw(K_,r,f,{discrete:!0})};const f={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=m,t.addEventListener("click",o.current,{once:!0})):m()}else t.removeEventListener("click",o.current);n.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function Z_(e,t=globalThis?.document){const r=va(e),n=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!n.current&&Yw(X_,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function av(){const e=new CustomEvent(Uf);document.dispatchEvent(e)}function Yw(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?U_(o,a):o.dispatchEvent(a)}var Vu="focusScope.autoFocusOnMount",qu="focusScope.autoFocusOnUnmount",sv={bubbles:!1,cancelable:!0},G_="FocusScope",Bw=i.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...c}=e,[s,m]=i.useState(null),f=va(o),l=va(a),p=i.useRef(null),v=rn(t,u=>m(u)),g=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(n){let u=function(w){if(g.paused||!s)return;const k=w.target;s.contains(k)?p.current=k:ar(p.current,{select:!0})},h=function(w){if(g.paused||!s)return;const k=w.relatedTarget;k!==null&&(s.contains(k)||ar(p.current,{select:!0}))},y=function(w){if(document.activeElement===document.body)for(const k of w)k.removedNodes.length>0&&ar(s)};document.addEventListener("focusin",u),document.addEventListener("focusout",h);const b=new MutationObserver(y);return s&&b.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",u),document.removeEventListener("focusout",h),b.disconnect()}}},[n,s,g.paused]),i.useEffect(()=>{if(s){cv.add(g);const u=document.activeElement;if(!s.contains(u)){const h=new CustomEvent(Vu,sv);s.addEventListener(Vu,f),s.dispatchEvent(h),h.defaultPrevented||(J_(nT(Kw(s)),{select:!0}),document.activeElement===u&&ar(s))}return()=>{s.removeEventListener(Vu,f),setTimeout(()=>{const h=new CustomEvent(qu,sv);s.addEventListener(qu,l),s.dispatchEvent(h),h.defaultPrevented||ar(u??document.body,{select:!0}),s.removeEventListener(qu,l),cv.remove(g)},0)}}},[s,f,l,g]);const E=i.useCallback(u=>{if(!r&&!n||g.paused)return;const h=u.key==="Tab"&&!u.altKey&&!u.ctrlKey&&!u.metaKey,y=document.activeElement;if(h&&y){const b=u.currentTarget,[w,k]=Q_(b);w&&k?!u.shiftKey&&y===k?(u.preventDefault(),r&&ar(w,{select:!0})):u.shiftKey&&y===w&&(u.preventDefault(),r&&ar(k,{select:!0})):y===b&&u.preventDefault()}},[r,n,g.paused]);return ce.j.jsx(qt.div,{tabIndex:-1,...c,ref:v,onKeyDown:E})});Bw.displayName=G_;function J_(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(ar(n,{select:t}),document.activeElement!==r)return}function Q_(e){const t=Kw(e),r=iv(t,e),n=iv(t.reverse(),e);return[r,n]}function Kw(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function iv(e,t){for(const r of e)if(!eT(r,{upTo:t}))return r}function eT(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function tT(e){return e instanceof HTMLInputElement&&"select"in e}function ar(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&tT(e)&&t&&e.select()}}var cv=rT();function rT(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=uv(e,t),e.unshift(t)},remove(t){e=uv(e,t),e[0]?.resume()}}}function uv(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function nT(e){return e.filter(t=>t.tagName!=="A")}var oT="Portal",aT=i.forwardRef((e,t)=>{const{container:r,...n}=e,[o,a]=i.useState(!1);zf(()=>a(!0),[]);const c=r||o&&globalThis?.document?.body;return c?be.createPortal(ce.j.jsx(qt.div,{...n,ref:t}),c):null});aT.displayName=oT;function sT(e,t){return i.useReducer((r,n)=>t[r][n]??r,e)}var Qp=e=>{const{present:t,children:r}=e,n=iT(t),o=typeof r=="function"?r({present:n.isPresent}):i.Children.only(r),a=rn(n.ref,cT(o));return typeof r=="function"||n.isPresent?i.cloneElement(o,{ref:a}):null};Qp.displayName="Presence";function iT(e){const[t,r]=i.useState(),n=i.useRef(null),o=i.useRef(e),a=i.useRef("none"),c=e?"mounted":"unmounted",[s,m]=sT(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const f=qa(n.current);a.current=s==="mounted"?f:"none"},[s]),zf(()=>{const f=n.current,l=o.current;if(l!==e){const p=a.current,v=qa(f);e?m("MOUNT"):v==="none"||f?.display==="none"?m("UNMOUNT"):m(l&&p!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,m]),zf(()=>{if(t){let f;const l=t.ownerDocument.defaultView??window,p=g=>{const E=qa(n.current).includes(CSS.escape(g.animationName));if(g.target===t&&E&&(m("ANIMATION_END"),!o.current)){const u=t.style.animationFillMode;t.style.animationFillMode="forwards",f=l.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=u)})}},v=g=>{g.target===t&&(a.current=qa(n.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{l.clearTimeout(f),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else m("ANIMATION_END")},[t,m]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:i.useCallback(f=>{n.current=f?getComputedStyle(f):null,r(f)},[])}}function qa(e){return e?.animationName||"none"}function cT(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Zu=0;function uT(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??lv()),document.body.insertAdjacentElement("beforeend",e[1]??lv()),Zu++,()=>{Zu===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Zu--}},[])}function lv(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Je=function(){return Je=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Je.apply(this,arguments)};function Xw(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function lT(e,t,r){for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var Vi="right-scroll-bar-position",qi="width-before-scroll-bar",dT="with-scroll-bars-hidden",fT="--removed-body-scroll-bar-size";function Gu(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function pT(e,t){var r=P.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var mT=typeof window<"u"?i.useLayoutEffect:i.useEffect,dv=new WeakMap;function vT(e,t){var r=pT(null,function(n){return e.forEach(function(o){return Gu(o,n)})});return mT(function(){var n=dv.get(r);if(n){var o=new Set(n),a=new Set(e),c=r.current;o.forEach(function(s){a.has(s)||Gu(s,null)}),a.forEach(function(s){o.has(s)||Gu(s,c)})}dv.set(r,e)},[e]),r}function hT(e){return e}function gT(e,t){t===void 0&&(t=hT);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var c=t(a,n);return r.push(c),function(){r=r.filter(function(s){return s!==c})}},assignSyncMedium:function(a){for(n=!0;r.length;){var c=r;r=[],c.forEach(a)}r={push:function(s){return a(s)},filter:function(){return r}}},assignMedium:function(a){n=!0;var c=[];if(r.length){var s=r;r=[],s.forEach(a),c=r}var m=function(){var l=c;c=[],l.forEach(a)},f=function(){return Promise.resolve().then(m)};f(),r={push:function(l){c.push(l),f()},filter:function(l){return c=c.filter(l),r}}}};return o}function yT(e){e===void 0&&(e={});var t=gT(null);return t.options=Je({async:!0,ssr:!1},e),t}var Hw=function(e){var t=e.sideCar,r=Xw(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return i.createElement(n,Je({},r))};Hw.isSideCarExport=!0;function bT(e,t){return e.useMedium(t),Hw}var Vw=yT(),Ju=function(){},Jc=i.forwardRef(function(e,t){var r=i.useRef(null),n=i.useState({onScrollCapture:Ju,onWheelCapture:Ju,onTouchMoveCapture:Ju}),o=n[0],a=n[1],c=e.forwardProps,s=e.children,m=e.className,f=e.removeScrollBar,l=e.enabled,p=e.shards,v=e.sideCar,g=e.noRelative,E=e.noIsolation,u=e.inert,h=e.allowPinchZoom,y=e.as,b=y===void 0?"div":y,w=e.gapMode,k=Xw(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=v,N=vT([r,t]),S=Je(Je({},k),o);return i.createElement(i.Fragment,null,l&&i.createElement(C,{sideCar:Vw,removeScrollBar:f,shards:p,noRelative:g,noIsolation:E,inert:u,setCallbacks:a,allowPinchZoom:!!h,lockRef:r,gapMode:w}),c?i.cloneElement(i.Children.only(s),Je(Je({},S),{ref:N})):i.createElement(b,Je({},S,{className:m,ref:N}),s))});Jc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Jc.classNames={fullWidth:qi,zeroRight:Vi};var wT=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function xT(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=wT();return t&&e.setAttribute("nonce",t),e}function ET(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function kT(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var ST=function(){var e=0,t=null;return{add:function(r){e==0&&(t=xT())&&(ET(t,r),kT(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},CT=function(){var e=ST();return function(t,r){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},qw=function(){var e=CT(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},RT={left:0,top:0,right:0,gap:0},Qu=function(e){return parseInt(e||"",10)||0},OT=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Qu(r),Qu(n),Qu(o)]},NT=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return RT;var t=OT(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},_T=qw(),mo="data-scroll-locked",TT=function(e,t,r,n){var o=e.left,a=e.top,c=e.right,s=e.gap;return r===void 0&&(r="margin"),`
2
- .`.concat(dT,` {
3
- overflow: hidden `).concat(n,`;
4
- padding-right: `).concat(s,"px ").concat(n,`;
5
- }
6
- body[`).concat(mo,`] {
7
- overflow: hidden `).concat(n,`;
8
- overscroll-behavior: contain;
9
- `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
10
- padding-left: `.concat(o,`px;
11
- padding-top: `).concat(a,`px;
12
- padding-right: `).concat(c,`px;
13
- margin-left:0;
14
- margin-top:0;
15
- margin-right: `).concat(s,"px ").concat(n,`;
16
- `),r==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),`
17
- }
18
-
19
- .`).concat(Vi,` {
20
- right: `).concat(s,"px ").concat(n,`;
21
- }
22
-
23
- .`).concat(qi,` {
24
- margin-right: `).concat(s,"px ").concat(n,`;
25
- }
26
-
27
- .`).concat(Vi," .").concat(Vi,` {
28
- right: 0 `).concat(n,`;
29
- }
30
-
31
- .`).concat(qi," .").concat(qi,` {
32
- margin-right: 0 `).concat(n,`;
33
- }
34
-
35
- body[`).concat(mo,`] {
36
- `).concat(fT,": ").concat(s,`px;
37
- }
38
- `)},fv=function(){var e=parseInt(document.body.getAttribute(mo)||"0",10);return isFinite(e)?e:0},DT=function(){i.useEffect(function(){return document.body.setAttribute(mo,(fv()+1).toString()),function(){var e=fv()-1;e<=0?document.body.removeAttribute(mo):document.body.setAttribute(mo,e.toString())}},[])},jT=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;DT();var a=i.useMemo(function(){return NT(o)},[o]);return i.createElement(_T,{styles:TT(a,!t,o,r?"":"!important")})},Yf=!1;if(typeof window<"u")try{var Za=Object.defineProperty({},"passive",{get:function(){return Yf=!0,!0}});window.addEventListener("test",Za,Za),window.removeEventListener("test",Za,Za)}catch{Yf=!1}var fn=Yf?{passive:!1}:!1,PT=function(e){return e.tagName==="TEXTAREA"},Zw=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!PT(e)&&r[t]==="visible")},MT=function(e){return Zw(e,"overflowY")},AT=function(e){return Zw(e,"overflowX")},pv=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=Gw(e,n);if(o){var a=Jw(e,n),c=a[1],s=a[2];if(c>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},IT=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},LT=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},Gw=function(e,t){return e==="v"?MT(t):AT(t)},Jw=function(e,t){return e==="v"?IT(t):LT(t)},FT=function(e,t){return e==="h"&&t==="rtl"?-1:1},WT=function(e,t,r,n,o){var a=FT(e,window.getComputedStyle(t).direction),c=a*n,s=r.target,m=t.contains(s),f=!1,l=c>0,p=0,v=0;do{if(!s)break;var g=Jw(e,s),E=g[0],u=g[1],h=g[2],y=u-h-a*E;(E||y)&&Gw(e,s)&&(p+=y,v+=E);var b=s.parentNode;s=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!m&&s!==document.body||m&&(t.contains(s)||t===s));return(l&&Math.abs(p)<1||!l&&Math.abs(v)<1)&&(f=!0),f},Ga=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},mv=function(e){return[e.deltaX,e.deltaY]},vv=function(e){return e&&"current"in e?e.current:e},$T=function(e,t){return e[0]===t[0]&&e[1]===t[1]},zT=function(e){return`
39
- .block-interactivity-`.concat(e,` {pointer-events: none;}
40
- .allow-interactivity-`).concat(e,` {pointer-events: all;}
41
- `)},UT=0,pn=[];function YT(e){var t=i.useRef([]),r=i.useRef([0,0]),n=i.useRef(),o=i.useState(UT++)[0],a=i.useState(qw)[0],c=i.useRef(e);i.useEffect(function(){c.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var u=lT([e.lockRef.current],(e.shards||[]).map(vv)).filter(Boolean);return u.forEach(function(h){return h.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),u.forEach(function(h){return h.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=i.useCallback(function(u,h){if("touches"in u&&u.touches.length===2||u.type==="wheel"&&u.ctrlKey)return!c.current.allowPinchZoom;var y=Ga(u),b=r.current,w="deltaX"in u?u.deltaX:b[0]-y[0],k="deltaY"in u?u.deltaY:b[1]-y[1],C,N=u.target,S=Math.abs(w)>Math.abs(k)?"h":"v";if("touches"in u&&S==="h"&&N.type==="range")return!1;var R=pv(S,N);if(!R)return!0;if(R?C=S:(C=S==="v"?"h":"v",R=pv(S,N)),!R)return!1;if(!n.current&&"changedTouches"in u&&(w||k)&&(n.current=C),!C)return!0;var D=n.current||C;return WT(D,h,u,D==="h"?w:k)},[]),m=i.useCallback(function(u){var h=u;if(!(!pn.length||pn[pn.length-1]!==a)){var y="deltaY"in h?mv(h):Ga(h),b=t.current.filter(function(C){return C.name===h.type&&(C.target===h.target||h.target===C.shadowParent)&&$T(C.delta,y)})[0];if(b&&b.should){h.cancelable&&h.preventDefault();return}if(!b){var w=(c.current.shards||[]).map(vv).filter(Boolean).filter(function(C){return C.contains(h.target)}),k=w.length>0?s(h,w[0]):!c.current.noIsolation;k&&h.cancelable&&h.preventDefault()}}},[]),f=i.useCallback(function(u,h,y,b){var w={name:u,delta:h,target:y,should:b,shadowParent:BT(y)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(k){return k!==w})},1)},[]),l=i.useCallback(function(u){r.current=Ga(u),n.current=void 0},[]),p=i.useCallback(function(u){f(u.type,mv(u),u.target,s(u,e.lockRef.current))},[]),v=i.useCallback(function(u){f(u.type,Ga(u),u.target,s(u,e.lockRef.current))},[]);i.useEffect(function(){return pn.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:v}),document.addEventListener("wheel",m,fn),document.addEventListener("touchmove",m,fn),document.addEventListener("touchstart",l,fn),function(){pn=pn.filter(function(u){return u!==a}),document.removeEventListener("wheel",m,fn),document.removeEventListener("touchmove",m,fn),document.removeEventListener("touchstart",l,fn)}},[]);var g=e.removeScrollBar,E=e.inert;return i.createElement(i.Fragment,null,E?i.createElement(a,{styles:zT(o)}):null,g?i.createElement(jT,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function BT(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const KT=bT(Vw,YT);var Qw=i.forwardRef(function(e,t){return i.createElement(Jc,Je({},e,{ref:t,sideCar:KT}))});Qw.classNames=Jc.classNames;var XT=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},mn=new WeakMap,Ja=new WeakMap,Qa={},el=0,e0=function(e){return e&&(e.host||e0(e.parentNode))},HT=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=e0(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},VT=function(e,t,r,n){var o=HT(t,Array.isArray(e)?e:[e]);Qa[r]||(Qa[r]=new WeakMap);var a=Qa[r],c=[],s=new Set,m=new Set(o),f=function(p){!p||s.has(p)||(s.add(p),f(p.parentNode))};o.forEach(f);var l=function(p){!p||m.has(p)||Array.prototype.forEach.call(p.children,function(v){if(s.has(v))l(v);else try{var g=v.getAttribute(n),E=g!==null&&g!=="false",u=(mn.get(v)||0)+1,h=(a.get(v)||0)+1;mn.set(v,u),a.set(v,h),c.push(v),u===1&&E&&Ja.set(v,!0),h===1&&v.setAttribute(r,"true"),E||v.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",v,y)}})};return l(t),s.clear(),el++,function(){c.forEach(function(p){var v=mn.get(p)-1,g=a.get(p)-1;mn.set(p,v),a.set(p,g),v||(Ja.has(p)||p.removeAttribute(n),Ja.delete(p)),g||p.removeAttribute(r)}),el--,el||(mn=new WeakMap,mn=new WeakMap,Ja=new WeakMap,Qa={})}},qT=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=XT(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),VT(n,o,r,"aria-hidden")):function(){return null}},t0="Dialog",[r0]=W_(t0),[Une,_t]=r0(t0),n0="DialogTrigger",ZT=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=_t(n0,r),a=rn(t,o.triggerRef);return ce.j.jsx(qt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":tm(o.open),...n,ref:a,onClick:kr(e.onClick,o.onOpenToggle)})});ZT.displayName=n0;var GT="DialogPortal",[Yne,o0]=r0(GT,{forceMount:void 0}),Dc="DialogOverlay",JT=i.forwardRef((e,t)=>{const r=o0(Dc,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=_t(Dc,e.__scopeDialog);return a.modal?ce.j.jsx(Qp,{present:n||a.open,children:ce.j.jsx(eD,{...o,ref:t})}):null});JT.displayName=Dc;var QT=q.createSlot("DialogOverlay.RemoveScroll"),eD=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=_t(Dc,r);return ce.j.jsx(Qw,{as:QT,allowPinchZoom:!0,shards:[o.contentRef],children:ce.j.jsx(qt.div,{"data-state":tm(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),Fr="DialogContent",tD=i.forwardRef((e,t)=>{const r=o0(Fr,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=_t(Fr,e.__scopeDialog);return ce.j.jsx(Qp,{present:n||a.open,children:a.modal?ce.j.jsx(rD,{...o,ref:t}):ce.j.jsx(nD,{...o,ref:t})})});tD.displayName=Fr;var rD=i.forwardRef((e,t)=>{const r=_t(Fr,e.__scopeDialog),n=i.useRef(null),o=rn(t,r.contentRef,n);return i.useEffect(()=>{const a=n.current;if(a)return qT(a)},[]),ce.j.jsx(a0,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:kr(e.onCloseAutoFocus,a=>{a.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:kr(e.onPointerDownOutside,a=>{const c=a.detail.originalEvent,s=c.button===0&&c.ctrlKey===!0;(c.button===2||s)&&a.preventDefault()}),onFocusOutside:kr(e.onFocusOutside,a=>a.preventDefault())})}),nD=i.forwardRef((e,t)=>{const r=_t(Fr,e.__scopeDialog),n=i.useRef(!1),o=i.useRef(!1);return ce.j.jsx(a0,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(n.current||r.triggerRef.current?.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=a.target;r.triggerRef.current?.contains(c)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),a0=i.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...c}=e,s=_t(Fr,r),m=i.useRef(null),f=rn(t,m);return uT(),ce.j.jsxs(ce.j.Fragment,{children:[ce.j.jsx(Bw,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:ce.j.jsx(Uw,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":tm(s.open),...c,ref:f,onDismiss:()=>s.onOpenChange(!1)})}),ce.j.jsxs(ce.j.Fragment,{children:[ce.j.jsx(iD,{titleId:s.titleId}),ce.j.jsx(uD,{contentRef:m,descriptionId:s.descriptionId})]})]})}),em="DialogTitle",oD=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=_t(em,r);return ce.j.jsx(qt.h2,{id:o.titleId,...n,ref:t})});oD.displayName=em;var s0="DialogDescription",aD=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=_t(s0,r);return ce.j.jsx(qt.p,{id:o.descriptionId,...n,ref:t})});aD.displayName=s0;var i0="DialogClose",sD=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=_t(i0,r);return ce.j.jsx(qt.button,{type:"button",...n,ref:t,onClick:kr(e.onClick,()=>o.onOpenChange(!1))})});sD.displayName=i0;function tm(e){return e?"open":"closed"}var c0="DialogTitleWarning",[Bne,u0]=F_(c0,{contentName:Fr,titleName:em,docsSlug:"dialog"}),iD=({titleId:e})=>{const t=u0(c0),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
42
-
43
- If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
44
-
45
- For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},cD="DialogDescriptionWarning",uD=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${u0(cD).contentName}}.`;return i.useEffect(()=>{const n=e.current?.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null};ae.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});var tl={exports:{}},Zo={};/**
46
- * @license React
47
- * react-jsx-runtime.production.js
48
- *
49
- * Copyright (c) Meta Platforms, Inc. and affiliates.
50
- *
51
- * This source code is licensed under the MIT license found in the
52
- * LICENSE file in the root directory of this source tree.
53
- */var hv;function lD(){if(hv)return Zo;hv=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,o,a){var c=null;if(a!==void 0&&(c=""+a),o.key!==void 0&&(c=""+o.key),"key"in o){a={};for(var s in o)s!=="key"&&(a[s]=o[s])}else a=o;return o=a.ref,{$$typeof:e,type:n,key:c,ref:o!==void 0?o:null,props:a}}return Zo.Fragment=t,Zo.jsx=r,Zo.jsxs=r,Zo}var es={};/**
54
- * @license React
55
- * react-jsx-runtime.development.js
56
- *
57
- * Copyright (c) Meta Platforms, Inc. and affiliates.
58
- *
59
- * This source code is licensed under the MIT license found in the
60
- * LICENSE file in the root directory of this source tree.
61
- */var gv;function dD(){return gv||(gv=1,process.env.NODE_ENV!=="production"&&(function(){function e(d){if(d==null)return null;if(typeof d=="function")return d.$$typeof===L?null:d.displayName||d.name||null;if(typeof d=="string")return d;switch(d){case u:return"Fragment";case y:return"Profiler";case h:return"StrictMode";case C:return"Suspense";case N:return"SuspenseList";case D:return"Activity"}if(typeof d=="object")switch(typeof d.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),d.$$typeof){case E:return"Portal";case w:return(d.displayName||"Context")+".Provider";case b:return(d._context.displayName||"Context")+".Consumer";case k:var x=d.render;return d=d.displayName,d||(d=x.displayName||x.name||"",d=d!==""?"ForwardRef("+d+")":"ForwardRef"),d;case S:return x=d.displayName||null,x!==null?x:e(d.type)||"Memo";case R:x=d._payload,d=d._init;try{return e(d(x))}catch{}}return null}function t(d){return""+d}function r(d){try{t(d);var x=!1}catch{x=!0}if(x){x=console;var O=x.error,_=typeof Symbol=="function"&&Symbol.toStringTag&&d[Symbol.toStringTag]||d.constructor.name||"Object";return O.call(x,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",_),t(d)}}function n(d){if(d===u)return"<>";if(typeof d=="object"&&d!==null&&d.$$typeof===R)return"<...>";try{var x=e(d);return x?"<"+x+">":"<...>"}catch{return"<...>"}}function o(){var d=I.A;return d===null?null:d.getOwner()}function a(){return Error("react-stack-top-frame")}function c(d){if($.call(d,"key")){var x=Object.getOwnPropertyDescriptor(d,"key").get;if(x&&x.isReactWarning)return!1}return d.key!==void 0}function s(d,x){function O(){M||(M=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",x))}O.isReactWarning=!0,Object.defineProperty(d,"key",{get:O,configurable:!0})}function m(){var d=e(this.type);return K[d]||(K[d]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),d=this.props.ref,d!==void 0?d:null}function f(d,x,O,_,A,j,X,B){return O=j.ref,d={$$typeof:g,type:d,key:x,props:j,_owner:A},(O!==void 0?O:null)!==null?Object.defineProperty(d,"ref",{enumerable:!1,get:m}):Object.defineProperty(d,"ref",{enumerable:!1,value:null}),d._store={},Object.defineProperty(d._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(d,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(d,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:X}),Object.defineProperty(d,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:B}),Object.freeze&&(Object.freeze(d.props),Object.freeze(d)),d}function l(d,x,O,_,A,j,X,B){var T=x.children;if(T!==void 0)if(_)if(U(T)){for(_=0;_<T.length;_++)p(T[_]);Object.freeze&&Object.freeze(T)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else p(T);if($.call(x,"key")){T=e(d);var F=Object.keys(x).filter(function(se){return se!=="key"});_=0<F.length?"{key: someKey, "+F.join(": ..., ")+": ...}":"{key: someKey}",V[T+_]||(F=0<F.length?"{"+F.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
62
- let props = %s;
63
- <%s {...props} />
64
- React keys must be passed directly to JSX without using spread:
65
- let props = %s;
66
- <%s key={someKey} {...props} />`,_,T,F,T),V[T+_]=!0)}if(T=null,O!==void 0&&(r(O),T=""+O),c(x)&&(r(x.key),T=""+x.key),"key"in x){O={};for(var H in x)H!=="key"&&(O[H]=x[H])}else O=x;return T&&s(O,typeof d=="function"?d.displayName||d.name||"Unknown":d),f(d,T,j,A,o(),O,X,B)}function p(d){typeof d=="object"&&d!==null&&d.$$typeof===g&&d._store&&(d._store.validated=1)}var v=P,g=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),b=Symbol.for("react.consumer"),w=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),S=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),D=Symbol.for("react.activity"),L=Symbol.for("react.client.reference"),I=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$=Object.prototype.hasOwnProperty,U=Array.isArray,W=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(d){return d()}};var M,K={},Y=v.react_stack_bottom_frame.bind(v,a)(),z=W(n(a)),V={};es.Fragment=u,es.jsx=function(d,x,O,_,A){var j=1e4>I.recentlyCreatedOwnerStacks++;return l(d,x,O,!1,_,A,j?Error("react-stack-top-frame"):Y,j?W(n(d)):z)},es.jsxs=function(d,x,O,_,A){var j=1e4>I.recentlyCreatedOwnerStacks++;return l(d,x,O,!0,_,A,j?Error("react-stack-top-frame"):Y,j?W(n(d)):z)}})()),es}var yv;function fD(){return yv||(yv=1,process.env.NODE_ENV==="production"?tl.exports=lD():tl.exports=dD()),tl.exports}var le=fD();const pD={id:"",username:"",email:"",created_at:null,updated_at:null,features:[]};P.createContext({user:pD,isLoading:!0,fetchUser:async()=>{},logout:async()=>{},login:async()=>!1});P.createContext({locale:void 0});ae.cva("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function Sr(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),r===!1||!n.defaultPrevented)return t?.(n)}}function bv(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function mD(...e){return t=>{let r=!1;const n=e.map(o=>{const a=bv(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():bv(e[o],null)}}}}function nn(...e){return i.useCallback(mD(...e),e)}function vD(e,t){const r=i.createContext(t),n=a=>{const{children:c,...s}=a,m=i.useMemo(()=>s,Object.values(s));return ue.d.jsx(r.Provider,{value:m,children:c})};n.displayName=e+"Provider";function o(a){const c=i.useContext(r);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,o]}function hD(e,t=[]){let r=[];function n(a,c){const s=i.createContext(c),m=r.length;r=[...r,c];const f=p=>{const{scope:v,children:g,...E}=p,u=v?.[e]?.[m]||s,h=i.useMemo(()=>E,Object.values(E));return ue.d.jsx(u.Provider,{value:h,children:g})};f.displayName=a+"Provider";function l(p,v){const g=v?.[e]?.[m]||s,E=i.useContext(g);if(E)return E;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[f,l]}const o=()=>{const a=r.map(c=>i.createContext(c));return function(c){const s=c?.[e]||a;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:s}}),[c,s])}};return o.scopeName=e,[n,gD(o,...t)]}function gD(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(o){const a=n.reduce((c,{useScope:s,scopeName:m})=>{const f=s(o)[`__scope${m}`];return{...c,...f}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}var Bf=globalThis?.document?i.useLayoutEffect:()=>{},yD=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Zt=yD.reduce((e,t)=>{const r=q.createSlot(`Primitive.${t}`),n=i.forwardRef((o,a)=>{const{asChild:c,...s}=o,m=c?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),ue.d.jsx(m,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function bD(e,t){e&&we.flushSync(()=>e.dispatchEvent(t))}function ha(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...r)=>t.current?.(...r),[])}function wD(e,t=globalThis?.document){const r=ha(e);i.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var xD="DismissableLayer",Kf="dismissableLayer.update",ED="dismissableLayer.pointerDownOutside",kD="dismissableLayer.focusOutside",wv,l0=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),d0=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:c,onDismiss:s,...m}=e,f=i.useContext(l0),[l,p]=i.useState(null),v=l?.ownerDocument??globalThis?.document,[,g]=i.useState({}),E=nn(t,S=>p(S)),u=Array.from(f.layers),[h]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),y=u.indexOf(h),b=l?u.indexOf(l):-1,w=f.layersWithOutsidePointerEventsDisabled.size>0,k=b>=y,C=RD(S=>{const R=S.target,D=[...f.branches].some(L=>L.contains(R));!k||D||(o?.(S),c?.(S),S.defaultPrevented||s?.())},v),N=OD(S=>{const R=S.target;[...f.branches].some(D=>D.contains(R))||(a?.(S),c?.(S),S.defaultPrevented||s?.())},v);return wD(S=>{b===f.layers.size-1&&(n?.(S),!S.defaultPrevented&&s&&(S.preventDefault(),s()))},v),i.useEffect(()=>{if(l)return r&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(wv=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(l)),f.layers.add(l),xv(),()=>{r&&f.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=wv)}},[l,v,r,f]),i.useEffect(()=>()=>{l&&(f.layers.delete(l),f.layersWithOutsidePointerEventsDisabled.delete(l),xv())},[l,f]),i.useEffect(()=>{const S=()=>g({});return document.addEventListener(Kf,S),()=>document.removeEventListener(Kf,S)},[]),ue.d.jsx(Zt.div,{...m,ref:E,style:{pointerEvents:w?k?"auto":"none":void 0,...e.style},onFocusCapture:Sr(e.onFocusCapture,N.onFocusCapture),onBlurCapture:Sr(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:Sr(e.onPointerDownCapture,C.onPointerDownCapture)})});d0.displayName=xD;var SD="DismissableLayerBranch",CD=i.forwardRef((e,t)=>{const r=i.useContext(l0),n=i.useRef(null),o=nn(t,n);return i.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),ue.d.jsx(Zt.div,{...e,ref:o})});CD.displayName=SD;function RD(e,t=globalThis?.document){const r=ha(e),n=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let m=function(){f0(ED,r,f,{discrete:!0})};const f={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=m,t.addEventListener("click",o.current,{once:!0})):m()}else t.removeEventListener("click",o.current);n.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function OD(e,t=globalThis?.document){const r=ha(e),n=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!n.current&&f0(kD,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function xv(){const e=new CustomEvent(Kf);document.dispatchEvent(e)}function f0(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?bD(o,a):o.dispatchEvent(a)}var rl="focusScope.autoFocusOnMount",nl="focusScope.autoFocusOnUnmount",Ev={bubbles:!1,cancelable:!0},ND="FocusScope",p0=i.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...c}=e,[s,m]=i.useState(null),f=ha(o),l=ha(a),p=i.useRef(null),v=nn(t,u=>m(u)),g=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(n){let u=function(w){if(g.paused||!s)return;const k=w.target;s.contains(k)?p.current=k:sr(p.current,{select:!0})},h=function(w){if(g.paused||!s)return;const k=w.relatedTarget;k!==null&&(s.contains(k)||sr(p.current,{select:!0}))},y=function(w){if(document.activeElement===document.body)for(const k of w)k.removedNodes.length>0&&sr(s)};document.addEventListener("focusin",u),document.addEventListener("focusout",h);const b=new MutationObserver(y);return s&&b.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",u),document.removeEventListener("focusout",h),b.disconnect()}}},[n,s,g.paused]),i.useEffect(()=>{if(s){Sv.add(g);const u=document.activeElement;if(!s.contains(u)){const h=new CustomEvent(rl,Ev);s.addEventListener(rl,f),s.dispatchEvent(h),h.defaultPrevented||(_D(MD(m0(s)),{select:!0}),document.activeElement===u&&sr(s))}return()=>{s.removeEventListener(rl,f),setTimeout(()=>{const h=new CustomEvent(nl,Ev);s.addEventListener(nl,l),s.dispatchEvent(h),h.defaultPrevented||sr(u??document.body,{select:!0}),s.removeEventListener(nl,l),Sv.remove(g)},0)}}},[s,f,l,g]);const E=i.useCallback(u=>{if(!r&&!n||g.paused)return;const h=u.key==="Tab"&&!u.altKey&&!u.ctrlKey&&!u.metaKey,y=document.activeElement;if(h&&y){const b=u.currentTarget,[w,k]=TD(b);w&&k?!u.shiftKey&&y===k?(u.preventDefault(),r&&sr(w,{select:!0})):u.shiftKey&&y===w&&(u.preventDefault(),r&&sr(k,{select:!0})):y===b&&u.preventDefault()}},[r,n,g.paused]);return ue.d.jsx(Zt.div,{tabIndex:-1,...c,ref:v,onKeyDown:E})});p0.displayName=ND;function _D(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(sr(n,{select:t}),document.activeElement!==r)return}function TD(e){const t=m0(e),r=kv(t,e),n=kv(t.reverse(),e);return[r,n]}function m0(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function kv(e,t){for(const r of e)if(!DD(r,{upTo:t}))return r}function DD(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function jD(e){return e instanceof HTMLInputElement&&"select"in e}function sr(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&jD(e)&&t&&e.select()}}var Sv=PD();function PD(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=Cv(e,t),e.unshift(t)},remove(t){e=Cv(e,t),e[0]?.resume()}}}function Cv(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function MD(e){return e.filter(t=>t.tagName!=="A")}var AD="Portal",ID=i.forwardRef((e,t)=>{const{container:r,...n}=e,[o,a]=i.useState(!1);Bf(()=>a(!0),[]);const c=r||o&&globalThis?.document?.body;return c?be.createPortal(ue.d.jsx(Zt.div,{...n,ref:t}),c):null});ID.displayName=AD;function LD(e,t){return i.useReducer((r,n)=>t[r][n]??r,e)}var rm=e=>{const{present:t,children:r}=e,n=FD(t),o=typeof r=="function"?r({present:n.isPresent}):i.Children.only(r),a=nn(n.ref,WD(o));return typeof r=="function"||n.isPresent?i.cloneElement(o,{ref:a}):null};rm.displayName="Presence";function FD(e){const[t,r]=i.useState(),n=i.useRef(null),o=i.useRef(e),a=i.useRef("none"),c=e?"mounted":"unmounted",[s,m]=LD(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const f=ts(n.current);a.current=s==="mounted"?f:"none"},[s]),Bf(()=>{const f=n.current,l=o.current;if(l!==e){const p=a.current,v=ts(f);e?m("MOUNT"):v==="none"||f?.display==="none"?m("UNMOUNT"):m(l&&p!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,m]),Bf(()=>{if(t){let f;const l=t.ownerDocument.defaultView??window,p=g=>{const E=ts(n.current).includes(CSS.escape(g.animationName));if(g.target===t&&E&&(m("ANIMATION_END"),!o.current)){const u=t.style.animationFillMode;t.style.animationFillMode="forwards",f=l.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=u)})}},v=g=>{g.target===t&&(a.current=ts(n.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{l.clearTimeout(f),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else m("ANIMATION_END")},[t,m]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:i.useCallback(f=>{n.current=f?getComputedStyle(f):null,r(f)},[])}}function ts(e){return e?.animationName||"none"}function WD(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var ol=0;function $D(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Rv()),document.body.insertAdjacentElement("beforeend",e[1]??Rv()),ol++,()=>{ol===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),ol--}},[])}function Rv(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Qe=function(){return Qe=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Qe.apply(this,arguments)};function v0(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function zD(e,t,r){for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var Zi="right-scroll-bar-position",Gi="width-before-scroll-bar",UD="with-scroll-bars-hidden",YD="--removed-body-scroll-bar-size";function al(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function BD(e,t){var r=P.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var KD=typeof window<"u"?i.useLayoutEffect:i.useEffect,Ov=new WeakMap;function XD(e,t){var r=BD(null,function(n){return e.forEach(function(o){return al(o,n)})});return KD(function(){var n=Ov.get(r);if(n){var o=new Set(n),a=new Set(e),c=r.current;o.forEach(function(s){a.has(s)||al(s,null)}),a.forEach(function(s){o.has(s)||al(s,c)})}Ov.set(r,e)},[e]),r}function HD(e){return e}function VD(e,t){t===void 0&&(t=HD);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var c=t(a,n);return r.push(c),function(){r=r.filter(function(s){return s!==c})}},assignSyncMedium:function(a){for(n=!0;r.length;){var c=r;r=[],c.forEach(a)}r={push:function(s){return a(s)},filter:function(){return r}}},assignMedium:function(a){n=!0;var c=[];if(r.length){var s=r;r=[],s.forEach(a),c=r}var m=function(){var l=c;c=[],l.forEach(a)},f=function(){return Promise.resolve().then(m)};f(),r={push:function(l){c.push(l),f()},filter:function(l){return c=c.filter(l),r}}}};return o}function qD(e){e===void 0&&(e={});var t=VD(null);return t.options=Qe({async:!0,ssr:!1},e),t}var h0=function(e){var t=e.sideCar,r=v0(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return i.createElement(n,Qe({},r))};h0.isSideCarExport=!0;function ZD(e,t){return e.useMedium(t),h0}var g0=qD(),sl=function(){},Qc=i.forwardRef(function(e,t){var r=i.useRef(null),n=i.useState({onScrollCapture:sl,onWheelCapture:sl,onTouchMoveCapture:sl}),o=n[0],a=n[1],c=e.forwardProps,s=e.children,m=e.className,f=e.removeScrollBar,l=e.enabled,p=e.shards,v=e.sideCar,g=e.noRelative,E=e.noIsolation,u=e.inert,h=e.allowPinchZoom,y=e.as,b=y===void 0?"div":y,w=e.gapMode,k=v0(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=v,N=XD([r,t]),S=Qe(Qe({},k),o);return i.createElement(i.Fragment,null,l&&i.createElement(C,{sideCar:g0,removeScrollBar:f,shards:p,noRelative:g,noIsolation:E,inert:u,setCallbacks:a,allowPinchZoom:!!h,lockRef:r,gapMode:w}),c?i.cloneElement(i.Children.only(s),Qe(Qe({},S),{ref:N})):i.createElement(b,Qe({},S,{className:m,ref:N}),s))});Qc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Qc.classNames={fullWidth:Gi,zeroRight:Zi};var GD=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function JD(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=GD();return t&&e.setAttribute("nonce",t),e}function QD(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function ej(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var tj=function(){var e=0,t=null;return{add:function(r){e==0&&(t=JD())&&(QD(t,r),ej(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},rj=function(){var e=tj();return function(t,r){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},y0=function(){var e=rj(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},nj={left:0,top:0,right:0,gap:0},il=function(e){return parseInt(e||"",10)||0},oj=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[il(r),il(n),il(o)]},aj=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return nj;var t=oj(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},sj=y0(),vo="data-scroll-locked",ij=function(e,t,r,n){var o=e.left,a=e.top,c=e.right,s=e.gap;return r===void 0&&(r="margin"),`
67
- .`.concat(UD,` {
68
- overflow: hidden `).concat(n,`;
69
- padding-right: `).concat(s,"px ").concat(n,`;
70
- }
71
- body[`).concat(vo,`] {
72
- overflow: hidden `).concat(n,`;
73
- overscroll-behavior: contain;
74
- `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
75
- padding-left: `.concat(o,`px;
76
- padding-top: `).concat(a,`px;
77
- padding-right: `).concat(c,`px;
78
- margin-left:0;
79
- margin-top:0;
80
- margin-right: `).concat(s,"px ").concat(n,`;
81
- `),r==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),`
82
- }
83
-
84
- .`).concat(Zi,` {
85
- right: `).concat(s,"px ").concat(n,`;
86
- }
87
-
88
- .`).concat(Gi,` {
89
- margin-right: `).concat(s,"px ").concat(n,`;
90
- }
91
-
92
- .`).concat(Zi," .").concat(Zi,` {
93
- right: 0 `).concat(n,`;
94
- }
95
-
96
- .`).concat(Gi," .").concat(Gi,` {
97
- margin-right: 0 `).concat(n,`;
98
- }
99
-
100
- body[`).concat(vo,`] {
101
- `).concat(YD,": ").concat(s,`px;
102
- }
103
- `)},Nv=function(){var e=parseInt(document.body.getAttribute(vo)||"0",10);return isFinite(e)?e:0},cj=function(){i.useEffect(function(){return document.body.setAttribute(vo,(Nv()+1).toString()),function(){var e=Nv()-1;e<=0?document.body.removeAttribute(vo):document.body.setAttribute(vo,e.toString())}},[])},uj=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;cj();var a=i.useMemo(function(){return aj(o)},[o]);return i.createElement(sj,{styles:ij(a,!t,o,r?"":"!important")})},Xf=!1;if(typeof window<"u")try{var rs=Object.defineProperty({},"passive",{get:function(){return Xf=!0,!0}});window.addEventListener("test",rs,rs),window.removeEventListener("test",rs,rs)}catch{Xf=!1}var vn=Xf?{passive:!1}:!1,lj=function(e){return e.tagName==="TEXTAREA"},b0=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!lj(e)&&r[t]==="visible")},dj=function(e){return b0(e,"overflowY")},fj=function(e){return b0(e,"overflowX")},_v=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=w0(e,n);if(o){var a=x0(e,n),c=a[1],s=a[2];if(c>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},pj=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},mj=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},w0=function(e,t){return e==="v"?dj(t):fj(t)},x0=function(e,t){return e==="v"?pj(t):mj(t)},vj=function(e,t){return e==="h"&&t==="rtl"?-1:1},hj=function(e,t,r,n,o){var a=vj(e,window.getComputedStyle(t).direction),c=a*n,s=r.target,m=t.contains(s),f=!1,l=c>0,p=0,v=0;do{if(!s)break;var g=x0(e,s),E=g[0],u=g[1],h=g[2],y=u-h-a*E;(E||y)&&w0(e,s)&&(p+=y,v+=E);var b=s.parentNode;s=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!m&&s!==document.body||m&&(t.contains(s)||t===s));return(l&&Math.abs(p)<1||!l&&Math.abs(v)<1)&&(f=!0),f},ns=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Tv=function(e){return[e.deltaX,e.deltaY]},Dv=function(e){return e&&"current"in e?e.current:e},gj=function(e,t){return e[0]===t[0]&&e[1]===t[1]},yj=function(e){return`
104
- .block-interactivity-`.concat(e,` {pointer-events: none;}
105
- .allow-interactivity-`).concat(e,` {pointer-events: all;}
106
- `)},bj=0,hn=[];function wj(e){var t=i.useRef([]),r=i.useRef([0,0]),n=i.useRef(),o=i.useState(bj++)[0],a=i.useState(y0)[0],c=i.useRef(e);i.useEffect(function(){c.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var u=zD([e.lockRef.current],(e.shards||[]).map(Dv)).filter(Boolean);return u.forEach(function(h){return h.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),u.forEach(function(h){return h.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=i.useCallback(function(u,h){if("touches"in u&&u.touches.length===2||u.type==="wheel"&&u.ctrlKey)return!c.current.allowPinchZoom;var y=ns(u),b=r.current,w="deltaX"in u?u.deltaX:b[0]-y[0],k="deltaY"in u?u.deltaY:b[1]-y[1],C,N=u.target,S=Math.abs(w)>Math.abs(k)?"h":"v";if("touches"in u&&S==="h"&&N.type==="range")return!1;var R=_v(S,N);if(!R)return!0;if(R?C=S:(C=S==="v"?"h":"v",R=_v(S,N)),!R)return!1;if(!n.current&&"changedTouches"in u&&(w||k)&&(n.current=C),!C)return!0;var D=n.current||C;return hj(D,h,u,D==="h"?w:k)},[]),m=i.useCallback(function(u){var h=u;if(!(!hn.length||hn[hn.length-1]!==a)){var y="deltaY"in h?Tv(h):ns(h),b=t.current.filter(function(C){return C.name===h.type&&(C.target===h.target||h.target===C.shadowParent)&&gj(C.delta,y)})[0];if(b&&b.should){h.cancelable&&h.preventDefault();return}if(!b){var w=(c.current.shards||[]).map(Dv).filter(Boolean).filter(function(C){return C.contains(h.target)}),k=w.length>0?s(h,w[0]):!c.current.noIsolation;k&&h.cancelable&&h.preventDefault()}}},[]),f=i.useCallback(function(u,h,y,b){var w={name:u,delta:h,target:y,should:b,shadowParent:xj(y)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(k){return k!==w})},1)},[]),l=i.useCallback(function(u){r.current=ns(u),n.current=void 0},[]),p=i.useCallback(function(u){f(u.type,Tv(u),u.target,s(u,e.lockRef.current))},[]),v=i.useCallback(function(u){f(u.type,ns(u),u.target,s(u,e.lockRef.current))},[]);i.useEffect(function(){return hn.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:v}),document.addEventListener("wheel",m,vn),document.addEventListener("touchmove",m,vn),document.addEventListener("touchstart",l,vn),function(){hn=hn.filter(function(u){return u!==a}),document.removeEventListener("wheel",m,vn),document.removeEventListener("touchmove",m,vn),document.removeEventListener("touchstart",l,vn)}},[]);var g=e.removeScrollBar,E=e.inert;return i.createElement(i.Fragment,null,E?i.createElement(a,{styles:yj(o)}):null,g?i.createElement(uj,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function xj(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Ej=ZD(g0,wj);var E0=i.forwardRef(function(e,t){return i.createElement(Qc,Qe({},e,{ref:t,sideCar:Ej}))});E0.classNames=Qc.classNames;var kj=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},gn=new WeakMap,os=new WeakMap,as={},cl=0,k0=function(e){return e&&(e.host||k0(e.parentNode))},Sj=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=k0(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},Cj=function(e,t,r,n){var o=Sj(t,Array.isArray(e)?e:[e]);as[r]||(as[r]=new WeakMap);var a=as[r],c=[],s=new Set,m=new Set(o),f=function(p){!p||s.has(p)||(s.add(p),f(p.parentNode))};o.forEach(f);var l=function(p){!p||m.has(p)||Array.prototype.forEach.call(p.children,function(v){if(s.has(v))l(v);else try{var g=v.getAttribute(n),E=g!==null&&g!=="false",u=(gn.get(v)||0)+1,h=(a.get(v)||0)+1;gn.set(v,u),a.set(v,h),c.push(v),u===1&&E&&os.set(v,!0),h===1&&v.setAttribute(r,"true"),E||v.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",v,y)}})};return l(t),s.clear(),cl++,function(){c.forEach(function(p){var v=gn.get(p)-1,g=a.get(p)-1;gn.set(p,v),a.set(p,g),v||(os.has(p)||p.removeAttribute(n),os.delete(p)),g||p.removeAttribute(r)}),cl--,cl||(gn=new WeakMap,gn=new WeakMap,os=new WeakMap,as={})}},Rj=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=kj(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),Cj(n,o,r,"aria-hidden")):function(){return null}},S0="Dialog",[C0]=hD(S0),[Kne,Tt]=C0(S0),R0="DialogTrigger",Oj=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Tt(R0,r),a=nn(t,o.triggerRef);return ue.d.jsx(Zt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":om(o.open),...n,ref:a,onClick:Sr(e.onClick,o.onOpenToggle)})});Oj.displayName=R0;var Nj="DialogPortal",[Xne,O0]=C0(Nj,{forceMount:void 0}),jc="DialogOverlay",_j=i.forwardRef((e,t)=>{const r=O0(jc,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Tt(jc,e.__scopeDialog);return a.modal?ue.d.jsx(rm,{present:n||a.open,children:ue.d.jsx(Dj,{...o,ref:t})}):null});_j.displayName=jc;var Tj=q.createSlot("DialogOverlay.RemoveScroll"),Dj=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Tt(jc,r);return ue.d.jsx(E0,{as:Tj,allowPinchZoom:!0,shards:[o.contentRef],children:ue.d.jsx(Zt.div,{"data-state":om(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),Wr="DialogContent",jj=i.forwardRef((e,t)=>{const r=O0(Wr,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Tt(Wr,e.__scopeDialog);return ue.d.jsx(rm,{present:n||a.open,children:a.modal?ue.d.jsx(Pj,{...o,ref:t}):ue.d.jsx(Mj,{...o,ref:t})})});jj.displayName=Wr;var Pj=i.forwardRef((e,t)=>{const r=Tt(Wr,e.__scopeDialog),n=i.useRef(null),o=nn(t,r.contentRef,n);return i.useEffect(()=>{const a=n.current;if(a)return Rj(a)},[]),ue.d.jsx(N0,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Sr(e.onCloseAutoFocus,a=>{a.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:Sr(e.onPointerDownOutside,a=>{const c=a.detail.originalEvent,s=c.button===0&&c.ctrlKey===!0;(c.button===2||s)&&a.preventDefault()}),onFocusOutside:Sr(e.onFocusOutside,a=>a.preventDefault())})}),Mj=i.forwardRef((e,t)=>{const r=Tt(Wr,e.__scopeDialog),n=i.useRef(!1),o=i.useRef(!1);return ue.d.jsx(N0,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(n.current||r.triggerRef.current?.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=a.target;r.triggerRef.current?.contains(c)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),N0=i.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...c}=e,s=Tt(Wr,r),m=i.useRef(null),f=nn(t,m);return $D(),ue.d.jsxs(ue.d.Fragment,{children:[ue.d.jsx(p0,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:ue.d.jsx(d0,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":om(s.open),...c,ref:f,onDismiss:()=>s.onOpenChange(!1)})}),ue.d.jsxs(ue.d.Fragment,{children:[ue.d.jsx(Fj,{titleId:s.titleId}),ue.d.jsx($j,{contentRef:m,descriptionId:s.descriptionId})]})]})}),nm="DialogTitle",Aj=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Tt(nm,r);return ue.d.jsx(Zt.h2,{id:o.titleId,...n,ref:t})});Aj.displayName=nm;var _0="DialogDescription",Ij=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Tt(_0,r);return ue.d.jsx(Zt.p,{id:o.descriptionId,...n,ref:t})});Ij.displayName=_0;var T0="DialogClose",Lj=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Tt(T0,r);return ue.d.jsx(Zt.button,{type:"button",...n,ref:t,onClick:Sr(e.onClick,()=>o.onOpenChange(!1))})});Lj.displayName=T0;function om(e){return e?"open":"closed"}var D0="DialogTitleWarning",[Hne,j0]=vD(D0,{contentName:Wr,titleName:nm,docsSlug:"dialog"}),Fj=({titleId:e})=>{const t=j0(D0),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
107
-
108
- If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
109
-
110
- For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},Wj="DialogDescriptionWarning",$j=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${j0(Wj).contentName}}.`;return i.useEffect(()=>{const n=e.current?.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null};ae.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});var ul={exports:{}},Go={};/**
111
- * @license React
112
- * react-jsx-runtime.production.js
113
- *
114
- * Copyright (c) Meta Platforms, Inc. and affiliates.
115
- *
116
- * This source code is licensed under the MIT license found in the
117
- * LICENSE file in the root directory of this source tree.
118
- */var jv;function zj(){if(jv)return Go;jv=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,o,a){var c=null;if(a!==void 0&&(c=""+a),o.key!==void 0&&(c=""+o.key),"key"in o){a={};for(var s in o)s!=="key"&&(a[s]=o[s])}else a=o;return o=a.ref,{$$typeof:e,type:n,key:c,ref:o!==void 0?o:null,props:a}}return Go.Fragment=t,Go.jsx=r,Go.jsxs=r,Go}var ss={};/**
119
- * @license React
120
- * react-jsx-runtime.development.js
121
- *
122
- * Copyright (c) Meta Platforms, Inc. and affiliates.
123
- *
124
- * This source code is licensed under the MIT license found in the
125
- * LICENSE file in the root directory of this source tree.
126
- */var Pv;function Uj(){return Pv||(Pv=1,process.env.NODE_ENV!=="production"&&(function(){function e(d){if(d==null)return null;if(typeof d=="function")return d.$$typeof===L?null:d.displayName||d.name||null;if(typeof d=="string")return d;switch(d){case u:return"Fragment";case y:return"Profiler";case h:return"StrictMode";case C:return"Suspense";case N:return"SuspenseList";case D:return"Activity"}if(typeof d=="object")switch(typeof d.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),d.$$typeof){case E:return"Portal";case w:return(d.displayName||"Context")+".Provider";case b:return(d._context.displayName||"Context")+".Consumer";case k:var x=d.render;return d=d.displayName,d||(d=x.displayName||x.name||"",d=d!==""?"ForwardRef("+d+")":"ForwardRef"),d;case S:return x=d.displayName||null,x!==null?x:e(d.type)||"Memo";case R:x=d._payload,d=d._init;try{return e(d(x))}catch{}}return null}function t(d){return""+d}function r(d){try{t(d);var x=!1}catch{x=!0}if(x){x=console;var O=x.error,_=typeof Symbol=="function"&&Symbol.toStringTag&&d[Symbol.toStringTag]||d.constructor.name||"Object";return O.call(x,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",_),t(d)}}function n(d){if(d===u)return"<>";if(typeof d=="object"&&d!==null&&d.$$typeof===R)return"<...>";try{var x=e(d);return x?"<"+x+">":"<...>"}catch{return"<...>"}}function o(){var d=I.A;return d===null?null:d.getOwner()}function a(){return Error("react-stack-top-frame")}function c(d){if($.call(d,"key")){var x=Object.getOwnPropertyDescriptor(d,"key").get;if(x&&x.isReactWarning)return!1}return d.key!==void 0}function s(d,x){function O(){M||(M=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",x))}O.isReactWarning=!0,Object.defineProperty(d,"key",{get:O,configurable:!0})}function m(){var d=e(this.type);return K[d]||(K[d]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),d=this.props.ref,d!==void 0?d:null}function f(d,x,O,_,A,j,X,B){return O=j.ref,d={$$typeof:g,type:d,key:x,props:j,_owner:A},(O!==void 0?O:null)!==null?Object.defineProperty(d,"ref",{enumerable:!1,get:m}):Object.defineProperty(d,"ref",{enumerable:!1,value:null}),d._store={},Object.defineProperty(d._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(d,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(d,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:X}),Object.defineProperty(d,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:B}),Object.freeze&&(Object.freeze(d.props),Object.freeze(d)),d}function l(d,x,O,_,A,j,X,B){var T=x.children;if(T!==void 0)if(_)if(U(T)){for(_=0;_<T.length;_++)p(T[_]);Object.freeze&&Object.freeze(T)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else p(T);if($.call(x,"key")){T=e(d);var F=Object.keys(x).filter(function(se){return se!=="key"});_=0<F.length?"{key: someKey, "+F.join(": ..., ")+": ...}":"{key: someKey}",V[T+_]||(F=0<F.length?"{"+F.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
127
- let props = %s;
128
- <%s {...props} />
129
- React keys must be passed directly to JSX without using spread:
130
- let props = %s;
131
- <%s key={someKey} {...props} />`,_,T,F,T),V[T+_]=!0)}if(T=null,O!==void 0&&(r(O),T=""+O),c(x)&&(r(x.key),T=""+x.key),"key"in x){O={};for(var H in x)H!=="key"&&(O[H]=x[H])}else O=x;return T&&s(O,typeof d=="function"?d.displayName||d.name||"Unknown":d),f(d,T,j,A,o(),O,X,B)}function p(d){typeof d=="object"&&d!==null&&d.$$typeof===g&&d._store&&(d._store.validated=1)}var v=P,g=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),b=Symbol.for("react.consumer"),w=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),S=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),D=Symbol.for("react.activity"),L=Symbol.for("react.client.reference"),I=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$=Object.prototype.hasOwnProperty,U=Array.isArray,W=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(d){return d()}};var M,K={},Y=v.react_stack_bottom_frame.bind(v,a)(),z=W(n(a)),V={};ss.Fragment=u,ss.jsx=function(d,x,O,_,A){var j=1e4>I.recentlyCreatedOwnerStacks++;return l(d,x,O,!1,_,A,j?Error("react-stack-top-frame"):Y,j?W(n(d)):z)},ss.jsxs=function(d,x,O,_,A){var j=1e4>I.recentlyCreatedOwnerStacks++;return l(d,x,O,!0,_,A,j?Error("react-stack-top-frame"):Y,j?W(n(d)):z)}})()),ss}var Mv;function Yj(){return Mv||(Mv=1,process.env.NODE_ENV==="production"?ul.exports=zj():ul.exports=Uj()),ul.exports}var de=Yj();const Bj={id:"",username:"",email:"",created_at:null,updated_at:null,features:[]};P.createContext({user:Bj,isLoading:!0,fetchUser:async()=>{},logout:async()=>{},login:async()=>!1});P.createContext({locale:void 0});ae.cva("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function Cr(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),r===!1||!n.defaultPrevented)return t?.(n)}}function Av(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Kj(...e){return t=>{let r=!1;const n=e.map(o=>{const a=Av(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():Av(e[o],null)}}}}function on(...e){return i.useCallback(Kj(...e),e)}function Xj(e,t){const r=i.createContext(t),n=a=>{const{children:c,...s}=a,m=i.useMemo(()=>s,Object.values(s));return le.jsx(r.Provider,{value:m,children:c})};n.displayName=e+"Provider";function o(a){const c=i.useContext(r);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,o]}function Hj(e,t=[]){let r=[];function n(a,c){const s=i.createContext(c),m=r.length;r=[...r,c];const f=p=>{const{scope:v,children:g,...E}=p,u=v?.[e]?.[m]||s,h=i.useMemo(()=>E,Object.values(E));return le.jsx(u.Provider,{value:h,children:g})};f.displayName=a+"Provider";function l(p,v){const g=v?.[e]?.[m]||s,E=i.useContext(g);if(E)return E;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[f,l]}const o=()=>{const a=r.map(c=>i.createContext(c));return function(c){const s=c?.[e]||a;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:s}}),[c,s])}};return o.scopeName=e,[n,Vj(o,...t)]}function Vj(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(o){const a=n.reduce((c,{useScope:s,scopeName:m})=>{const f=s(o)[`__scope${m}`];return{...c,...f}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}var Hf=globalThis?.document?i.useLayoutEffect:()=>{},qj=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Gt=qj.reduce((e,t)=>{const r=q.createSlot(`Primitive.${t}`),n=i.forwardRef((o,a)=>{const{asChild:c,...s}=o,m=c?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),le.jsx(m,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Zj(e,t){e&&we.flushSync(()=>e.dispatchEvent(t))}function ga(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...r)=>t.current?.(...r),[])}function Gj(e,t=globalThis?.document){const r=ga(e);i.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var Jj="DismissableLayer",Vf="dismissableLayer.update",Qj="dismissableLayer.pointerDownOutside",eP="dismissableLayer.focusOutside",Iv,P0=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),M0=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:c,onDismiss:s,...m}=e,f=i.useContext(P0),[l,p]=i.useState(null),v=l?.ownerDocument??globalThis?.document,[,g]=i.useState({}),E=on(t,S=>p(S)),u=Array.from(f.layers),[h]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),y=u.indexOf(h),b=l?u.indexOf(l):-1,w=f.layersWithOutsidePointerEventsDisabled.size>0,k=b>=y,C=nP(S=>{const R=S.target,D=[...f.branches].some(L=>L.contains(R));!k||D||(o?.(S),c?.(S),S.defaultPrevented||s?.())},v),N=oP(S=>{const R=S.target;[...f.branches].some(D=>D.contains(R))||(a?.(S),c?.(S),S.defaultPrevented||s?.())},v);return Gj(S=>{b===f.layers.size-1&&(n?.(S),!S.defaultPrevented&&s&&(S.preventDefault(),s()))},v),i.useEffect(()=>{if(l)return r&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(Iv=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(l)),f.layers.add(l),Lv(),()=>{r&&f.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=Iv)}},[l,v,r,f]),i.useEffect(()=>()=>{l&&(f.layers.delete(l),f.layersWithOutsidePointerEventsDisabled.delete(l),Lv())},[l,f]),i.useEffect(()=>{const S=()=>g({});return document.addEventListener(Vf,S),()=>document.removeEventListener(Vf,S)},[]),le.jsx(Gt.div,{...m,ref:E,style:{pointerEvents:w?k?"auto":"none":void 0,...e.style},onFocusCapture:Cr(e.onFocusCapture,N.onFocusCapture),onBlurCapture:Cr(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:Cr(e.onPointerDownCapture,C.onPointerDownCapture)})});M0.displayName=Jj;var tP="DismissableLayerBranch",rP=i.forwardRef((e,t)=>{const r=i.useContext(P0),n=i.useRef(null),o=on(t,n);return i.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),le.jsx(Gt.div,{...e,ref:o})});rP.displayName=tP;function nP(e,t=globalThis?.document){const r=ga(e),n=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let m=function(){A0(Qj,r,f,{discrete:!0})};const f={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=m,t.addEventListener("click",o.current,{once:!0})):m()}else t.removeEventListener("click",o.current);n.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function oP(e,t=globalThis?.document){const r=ga(e),n=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!n.current&&A0(eP,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function Lv(){const e=new CustomEvent(Vf);document.dispatchEvent(e)}function A0(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?Zj(o,a):o.dispatchEvent(a)}var ll="focusScope.autoFocusOnMount",dl="focusScope.autoFocusOnUnmount",Fv={bubbles:!1,cancelable:!0},aP="FocusScope",I0=i.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...c}=e,[s,m]=i.useState(null),f=ga(o),l=ga(a),p=i.useRef(null),v=on(t,u=>m(u)),g=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(n){let u=function(w){if(g.paused||!s)return;const k=w.target;s.contains(k)?p.current=k:ir(p.current,{select:!0})},h=function(w){if(g.paused||!s)return;const k=w.relatedTarget;k!==null&&(s.contains(k)||ir(p.current,{select:!0}))},y=function(w){if(document.activeElement===document.body)for(const k of w)k.removedNodes.length>0&&ir(s)};document.addEventListener("focusin",u),document.addEventListener("focusout",h);const b=new MutationObserver(y);return s&&b.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",u),document.removeEventListener("focusout",h),b.disconnect()}}},[n,s,g.paused]),i.useEffect(()=>{if(s){$v.add(g);const u=document.activeElement;if(!s.contains(u)){const h=new CustomEvent(ll,Fv);s.addEventListener(ll,f),s.dispatchEvent(h),h.defaultPrevented||(sP(dP(L0(s)),{select:!0}),document.activeElement===u&&ir(s))}return()=>{s.removeEventListener(ll,f),setTimeout(()=>{const h=new CustomEvent(dl,Fv);s.addEventListener(dl,l),s.dispatchEvent(h),h.defaultPrevented||ir(u??document.body,{select:!0}),s.removeEventListener(dl,l),$v.remove(g)},0)}}},[s,f,l,g]);const E=i.useCallback(u=>{if(!r&&!n||g.paused)return;const h=u.key==="Tab"&&!u.altKey&&!u.ctrlKey&&!u.metaKey,y=document.activeElement;if(h&&y){const b=u.currentTarget,[w,k]=iP(b);w&&k?!u.shiftKey&&y===k?(u.preventDefault(),r&&ir(w,{select:!0})):u.shiftKey&&y===w&&(u.preventDefault(),r&&ir(k,{select:!0})):y===b&&u.preventDefault()}},[r,n,g.paused]);return le.jsx(Gt.div,{tabIndex:-1,...c,ref:v,onKeyDown:E})});I0.displayName=aP;function sP(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(ir(n,{select:t}),document.activeElement!==r)return}function iP(e){const t=L0(e),r=Wv(t,e),n=Wv(t.reverse(),e);return[r,n]}function L0(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Wv(e,t){for(const r of e)if(!cP(r,{upTo:t}))return r}function cP(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function uP(e){return e instanceof HTMLInputElement&&"select"in e}function ir(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&uP(e)&&t&&e.select()}}var $v=lP();function lP(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=zv(e,t),e.unshift(t)},remove(t){e=zv(e,t),e[0]?.resume()}}}function zv(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function dP(e){return e.filter(t=>t.tagName!=="A")}var fP="Portal",pP=i.forwardRef((e,t)=>{const{container:r,...n}=e,[o,a]=i.useState(!1);Hf(()=>a(!0),[]);const c=r||o&&globalThis?.document?.body;return c?be.createPortal(le.jsx(Gt.div,{...n,ref:t}),c):null});pP.displayName=fP;function mP(e,t){return i.useReducer((r,n)=>t[r][n]??r,e)}var am=e=>{const{present:t,children:r}=e,n=vP(t),o=typeof r=="function"?r({present:n.isPresent}):i.Children.only(r),a=on(n.ref,hP(o));return typeof r=="function"||n.isPresent?i.cloneElement(o,{ref:a}):null};am.displayName="Presence";function vP(e){const[t,r]=i.useState(),n=i.useRef(null),o=i.useRef(e),a=i.useRef("none"),c=e?"mounted":"unmounted",[s,m]=mP(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const f=is(n.current);a.current=s==="mounted"?f:"none"},[s]),Hf(()=>{const f=n.current,l=o.current;if(l!==e){const p=a.current,v=is(f);e?m("MOUNT"):v==="none"||f?.display==="none"?m("UNMOUNT"):m(l&&p!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,m]),Hf(()=>{if(t){let f;const l=t.ownerDocument.defaultView??window,p=g=>{const E=is(n.current).includes(CSS.escape(g.animationName));if(g.target===t&&E&&(m("ANIMATION_END"),!o.current)){const u=t.style.animationFillMode;t.style.animationFillMode="forwards",f=l.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=u)})}},v=g=>{g.target===t&&(a.current=is(n.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{l.clearTimeout(f),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else m("ANIMATION_END")},[t,m]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:i.useCallback(f=>{n.current=f?getComputedStyle(f):null,r(f)},[])}}function is(e){return e?.animationName||"none"}function hP(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var fl=0;function gP(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Uv()),document.body.insertAdjacentElement("beforeend",e[1]??Uv()),fl++,()=>{fl===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),fl--}},[])}function Uv(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var et=function(){return et=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},et.apply(this,arguments)};function F0(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function yP(e,t,r){for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var Ji="right-scroll-bar-position",Qi="width-before-scroll-bar",bP="with-scroll-bars-hidden",wP="--removed-body-scroll-bar-size";function pl(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function xP(e,t){var r=P.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var EP=typeof window<"u"?i.useLayoutEffect:i.useEffect,Yv=new WeakMap;function kP(e,t){var r=xP(null,function(n){return e.forEach(function(o){return pl(o,n)})});return EP(function(){var n=Yv.get(r);if(n){var o=new Set(n),a=new Set(e),c=r.current;o.forEach(function(s){a.has(s)||pl(s,null)}),a.forEach(function(s){o.has(s)||pl(s,c)})}Yv.set(r,e)},[e]),r}function SP(e){return e}function CP(e,t){t===void 0&&(t=SP);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var c=t(a,n);return r.push(c),function(){r=r.filter(function(s){return s!==c})}},assignSyncMedium:function(a){for(n=!0;r.length;){var c=r;r=[],c.forEach(a)}r={push:function(s){return a(s)},filter:function(){return r}}},assignMedium:function(a){n=!0;var c=[];if(r.length){var s=r;r=[],s.forEach(a),c=r}var m=function(){var l=c;c=[],l.forEach(a)},f=function(){return Promise.resolve().then(m)};f(),r={push:function(l){c.push(l),f()},filter:function(l){return c=c.filter(l),r}}}};return o}function RP(e){e===void 0&&(e={});var t=CP(null);return t.options=et({async:!0,ssr:!1},e),t}var W0=function(e){var t=e.sideCar,r=F0(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return i.createElement(n,et({},r))};W0.isSideCarExport=!0;function OP(e,t){return e.useMedium(t),W0}var $0=RP(),ml=function(){},eu=i.forwardRef(function(e,t){var r=i.useRef(null),n=i.useState({onScrollCapture:ml,onWheelCapture:ml,onTouchMoveCapture:ml}),o=n[0],a=n[1],c=e.forwardProps,s=e.children,m=e.className,f=e.removeScrollBar,l=e.enabled,p=e.shards,v=e.sideCar,g=e.noRelative,E=e.noIsolation,u=e.inert,h=e.allowPinchZoom,y=e.as,b=y===void 0?"div":y,w=e.gapMode,k=F0(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=v,N=kP([r,t]),S=et(et({},k),o);return i.createElement(i.Fragment,null,l&&i.createElement(C,{sideCar:$0,removeScrollBar:f,shards:p,noRelative:g,noIsolation:E,inert:u,setCallbacks:a,allowPinchZoom:!!h,lockRef:r,gapMode:w}),c?i.cloneElement(i.Children.only(s),et(et({},S),{ref:N})):i.createElement(b,et({},S,{className:m,ref:N}),s))});eu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};eu.classNames={fullWidth:Qi,zeroRight:Ji};var NP=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function _P(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=NP();return t&&e.setAttribute("nonce",t),e}function TP(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function DP(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var jP=function(){var e=0,t=null;return{add:function(r){e==0&&(t=_P())&&(TP(t,r),DP(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},PP=function(){var e=jP();return function(t,r){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},z0=function(){var e=PP(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},MP={left:0,top:0,right:0,gap:0},vl=function(e){return parseInt(e||"",10)||0},AP=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[vl(r),vl(n),vl(o)]},IP=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return MP;var t=AP(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},LP=z0(),ho="data-scroll-locked",FP=function(e,t,r,n){var o=e.left,a=e.top,c=e.right,s=e.gap;return r===void 0&&(r="margin"),`
132
- .`.concat(bP,` {
133
- overflow: hidden `).concat(n,`;
134
- padding-right: `).concat(s,"px ").concat(n,`;
135
- }
136
- body[`).concat(ho,`] {
137
- overflow: hidden `).concat(n,`;
138
- overscroll-behavior: contain;
139
- `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
140
- padding-left: `.concat(o,`px;
141
- padding-top: `).concat(a,`px;
142
- padding-right: `).concat(c,`px;
143
- margin-left:0;
144
- margin-top:0;
145
- margin-right: `).concat(s,"px ").concat(n,`;
146
- `),r==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),`
147
- }
148
-
149
- .`).concat(Ji,` {
150
- right: `).concat(s,"px ").concat(n,`;
151
- }
152
-
153
- .`).concat(Qi,` {
154
- margin-right: `).concat(s,"px ").concat(n,`;
155
- }
156
-
157
- .`).concat(Ji," .").concat(Ji,` {
158
- right: 0 `).concat(n,`;
159
- }
160
-
161
- .`).concat(Qi," .").concat(Qi,` {
162
- margin-right: 0 `).concat(n,`;
163
- }
164
-
165
- body[`).concat(ho,`] {
166
- `).concat(wP,": ").concat(s,`px;
167
- }
168
- `)},Bv=function(){var e=parseInt(document.body.getAttribute(ho)||"0",10);return isFinite(e)?e:0},WP=function(){i.useEffect(function(){return document.body.setAttribute(ho,(Bv()+1).toString()),function(){var e=Bv()-1;e<=0?document.body.removeAttribute(ho):document.body.setAttribute(ho,e.toString())}},[])},$P=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;WP();var a=i.useMemo(function(){return IP(o)},[o]);return i.createElement(LP,{styles:FP(a,!t,o,r?"":"!important")})},qf=!1;if(typeof window<"u")try{var cs=Object.defineProperty({},"passive",{get:function(){return qf=!0,!0}});window.addEventListener("test",cs,cs),window.removeEventListener("test",cs,cs)}catch{qf=!1}var yn=qf?{passive:!1}:!1,zP=function(e){return e.tagName==="TEXTAREA"},U0=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!zP(e)&&r[t]==="visible")},UP=function(e){return U0(e,"overflowY")},YP=function(e){return U0(e,"overflowX")},Kv=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=Y0(e,n);if(o){var a=B0(e,n),c=a[1],s=a[2];if(c>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},BP=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},KP=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},Y0=function(e,t){return e==="v"?UP(t):YP(t)},B0=function(e,t){return e==="v"?BP(t):KP(t)},XP=function(e,t){return e==="h"&&t==="rtl"?-1:1},HP=function(e,t,r,n,o){var a=XP(e,window.getComputedStyle(t).direction),c=a*n,s=r.target,m=t.contains(s),f=!1,l=c>0,p=0,v=0;do{if(!s)break;var g=B0(e,s),E=g[0],u=g[1],h=g[2],y=u-h-a*E;(E||y)&&Y0(e,s)&&(p+=y,v+=E);var b=s.parentNode;s=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!m&&s!==document.body||m&&(t.contains(s)||t===s));return(l&&Math.abs(p)<1||!l&&Math.abs(v)<1)&&(f=!0),f},us=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Xv=function(e){return[e.deltaX,e.deltaY]},Hv=function(e){return e&&"current"in e?e.current:e},VP=function(e,t){return e[0]===t[0]&&e[1]===t[1]},qP=function(e){return`
169
- .block-interactivity-`.concat(e,` {pointer-events: none;}
170
- .allow-interactivity-`).concat(e,` {pointer-events: all;}
171
- `)},ZP=0,bn=[];function GP(e){var t=i.useRef([]),r=i.useRef([0,0]),n=i.useRef(),o=i.useState(ZP++)[0],a=i.useState(z0)[0],c=i.useRef(e);i.useEffect(function(){c.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var u=yP([e.lockRef.current],(e.shards||[]).map(Hv)).filter(Boolean);return u.forEach(function(h){return h.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),u.forEach(function(h){return h.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=i.useCallback(function(u,h){if("touches"in u&&u.touches.length===2||u.type==="wheel"&&u.ctrlKey)return!c.current.allowPinchZoom;var y=us(u),b=r.current,w="deltaX"in u?u.deltaX:b[0]-y[0],k="deltaY"in u?u.deltaY:b[1]-y[1],C,N=u.target,S=Math.abs(w)>Math.abs(k)?"h":"v";if("touches"in u&&S==="h"&&N.type==="range")return!1;var R=Kv(S,N);if(!R)return!0;if(R?C=S:(C=S==="v"?"h":"v",R=Kv(S,N)),!R)return!1;if(!n.current&&"changedTouches"in u&&(w||k)&&(n.current=C),!C)return!0;var D=n.current||C;return HP(D,h,u,D==="h"?w:k)},[]),m=i.useCallback(function(u){var h=u;if(!(!bn.length||bn[bn.length-1]!==a)){var y="deltaY"in h?Xv(h):us(h),b=t.current.filter(function(C){return C.name===h.type&&(C.target===h.target||h.target===C.shadowParent)&&VP(C.delta,y)})[0];if(b&&b.should){h.cancelable&&h.preventDefault();return}if(!b){var w=(c.current.shards||[]).map(Hv).filter(Boolean).filter(function(C){return C.contains(h.target)}),k=w.length>0?s(h,w[0]):!c.current.noIsolation;k&&h.cancelable&&h.preventDefault()}}},[]),f=i.useCallback(function(u,h,y,b){var w={name:u,delta:h,target:y,should:b,shadowParent:JP(y)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(k){return k!==w})},1)},[]),l=i.useCallback(function(u){r.current=us(u),n.current=void 0},[]),p=i.useCallback(function(u){f(u.type,Xv(u),u.target,s(u,e.lockRef.current))},[]),v=i.useCallback(function(u){f(u.type,us(u),u.target,s(u,e.lockRef.current))},[]);i.useEffect(function(){return bn.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:v}),document.addEventListener("wheel",m,yn),document.addEventListener("touchmove",m,yn),document.addEventListener("touchstart",l,yn),function(){bn=bn.filter(function(u){return u!==a}),document.removeEventListener("wheel",m,yn),document.removeEventListener("touchmove",m,yn),document.removeEventListener("touchstart",l,yn)}},[]);var g=e.removeScrollBar,E=e.inert;return i.createElement(i.Fragment,null,E?i.createElement(a,{styles:qP(o)}):null,g?i.createElement($P,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function JP(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const QP=OP($0,GP);var K0=i.forwardRef(function(e,t){return i.createElement(eu,et({},e,{ref:t,sideCar:QP}))});K0.classNames=eu.classNames;var eM=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},wn=new WeakMap,ls=new WeakMap,ds={},hl=0,X0=function(e){return e&&(e.host||X0(e.parentNode))},tM=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=X0(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},rM=function(e,t,r,n){var o=tM(t,Array.isArray(e)?e:[e]);ds[r]||(ds[r]=new WeakMap);var a=ds[r],c=[],s=new Set,m=new Set(o),f=function(p){!p||s.has(p)||(s.add(p),f(p.parentNode))};o.forEach(f);var l=function(p){!p||m.has(p)||Array.prototype.forEach.call(p.children,function(v){if(s.has(v))l(v);else try{var g=v.getAttribute(n),E=g!==null&&g!=="false",u=(wn.get(v)||0)+1,h=(a.get(v)||0)+1;wn.set(v,u),a.set(v,h),c.push(v),u===1&&E&&ls.set(v,!0),h===1&&v.setAttribute(r,"true"),E||v.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",v,y)}})};return l(t),s.clear(),hl++,function(){c.forEach(function(p){var v=wn.get(p)-1,g=a.get(p)-1;wn.set(p,v),a.set(p,g),v||(ls.has(p)||p.removeAttribute(n),ls.delete(p)),g||p.removeAttribute(r)}),hl--,hl||(wn=new WeakMap,wn=new WeakMap,ls=new WeakMap,ds={})}},nM=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=eM(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),rM(n,o,r,"aria-hidden")):function(){return null}},H0="Dialog",[V0]=Hj(H0),[Vne,Dt]=V0(H0),q0="DialogTrigger",oM=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Dt(q0,r),a=on(t,o.triggerRef);return le.jsx(Gt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":im(o.open),...n,ref:a,onClick:Cr(e.onClick,o.onOpenToggle)})});oM.displayName=q0;var aM="DialogPortal",[qne,Z0]=V0(aM,{forceMount:void 0}),Pc="DialogOverlay",sM=i.forwardRef((e,t)=>{const r=Z0(Pc,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Dt(Pc,e.__scopeDialog);return a.modal?le.jsx(am,{present:n||a.open,children:le.jsx(cM,{...o,ref:t})}):null});sM.displayName=Pc;var iM=q.createSlot("DialogOverlay.RemoveScroll"),cM=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Dt(Pc,r);return le.jsx(K0,{as:iM,allowPinchZoom:!0,shards:[o.contentRef],children:le.jsx(Gt.div,{"data-state":im(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),$r="DialogContent",uM=i.forwardRef((e,t)=>{const r=Z0($r,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Dt($r,e.__scopeDialog);return le.jsx(am,{present:n||a.open,children:a.modal?le.jsx(lM,{...o,ref:t}):le.jsx(dM,{...o,ref:t})})});uM.displayName=$r;var lM=i.forwardRef((e,t)=>{const r=Dt($r,e.__scopeDialog),n=i.useRef(null),o=on(t,r.contentRef,n);return i.useEffect(()=>{const a=n.current;if(a)return nM(a)},[]),le.jsx(G0,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Cr(e.onCloseAutoFocus,a=>{a.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:Cr(e.onPointerDownOutside,a=>{const c=a.detail.originalEvent,s=c.button===0&&c.ctrlKey===!0;(c.button===2||s)&&a.preventDefault()}),onFocusOutside:Cr(e.onFocusOutside,a=>a.preventDefault())})}),dM=i.forwardRef((e,t)=>{const r=Dt($r,e.__scopeDialog),n=i.useRef(!1),o=i.useRef(!1);return le.jsx(G0,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(n.current||r.triggerRef.current?.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=a.target;r.triggerRef.current?.contains(c)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),G0=i.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...c}=e,s=Dt($r,r),m=i.useRef(null),f=on(t,m);return gP(),le.jsxs(le.Fragment,{children:[le.jsx(I0,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:le.jsx(M0,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":im(s.open),...c,ref:f,onDismiss:()=>s.onOpenChange(!1)})}),le.jsxs(le.Fragment,{children:[le.jsx(vM,{titleId:s.titleId}),le.jsx(gM,{contentRef:m,descriptionId:s.descriptionId})]})]})}),sm="DialogTitle",fM=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Dt(sm,r);return le.jsx(Gt.h2,{id:o.titleId,...n,ref:t})});fM.displayName=sm;var J0="DialogDescription",pM=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Dt(J0,r);return le.jsx(Gt.p,{id:o.descriptionId,...n,ref:t})});pM.displayName=J0;var Q0="DialogClose",mM=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Dt(Q0,r);return le.jsx(Gt.button,{type:"button",...n,ref:t,onClick:Cr(e.onClick,()=>o.onOpenChange(!1))})});mM.displayName=Q0;function im(e){return e?"open":"closed"}var ex="DialogTitleWarning",[Zne,tx]=Xj(ex,{contentName:$r,titleName:sm,docsSlug:"dialog"}),vM=({titleId:e})=>{const t=tx(ex),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
172
-
173
- If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
174
-
175
- For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},hM="DialogDescriptionWarning",gM=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${tx(hM).contentName}}.`;return i.useEffect(()=>{const n=e.current?.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null};ae.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});var gl={exports:{}},Jo={};/**
176
- * @license React
177
- * react-jsx-runtime.production.js
178
- *
179
- * Copyright (c) Meta Platforms, Inc. and affiliates.
180
- *
181
- * This source code is licensed under the MIT license found in the
182
- * LICENSE file in the root directory of this source tree.
183
- */var Vv;function yM(){if(Vv)return Jo;Vv=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,o,a){var c=null;if(a!==void 0&&(c=""+a),o.key!==void 0&&(c=""+o.key),"key"in o){a={};for(var s in o)s!=="key"&&(a[s]=o[s])}else a=o;return o=a.ref,{$$typeof:e,type:n,key:c,ref:o!==void 0?o:null,props:a}}return Jo.Fragment=t,Jo.jsx=r,Jo.jsxs=r,Jo}var fs={};/**
184
- * @license React
185
- * react-jsx-runtime.development.js
186
- *
187
- * Copyright (c) Meta Platforms, Inc. and affiliates.
188
- *
189
- * This source code is licensed under the MIT license found in the
190
- * LICENSE file in the root directory of this source tree.
191
- */var qv;function bM(){return qv||(qv=1,process.env.NODE_ENV!=="production"&&(function(){function e(d){if(d==null)return null;if(typeof d=="function")return d.$$typeof===L?null:d.displayName||d.name||null;if(typeof d=="string")return d;switch(d){case u:return"Fragment";case y:return"Profiler";case h:return"StrictMode";case C:return"Suspense";case N:return"SuspenseList";case D:return"Activity"}if(typeof d=="object")switch(typeof d.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),d.$$typeof){case E:return"Portal";case w:return(d.displayName||"Context")+".Provider";case b:return(d._context.displayName||"Context")+".Consumer";case k:var x=d.render;return d=d.displayName,d||(d=x.displayName||x.name||"",d=d!==""?"ForwardRef("+d+")":"ForwardRef"),d;case S:return x=d.displayName||null,x!==null?x:e(d.type)||"Memo";case R:x=d._payload,d=d._init;try{return e(d(x))}catch{}}return null}function t(d){return""+d}function r(d){try{t(d);var x=!1}catch{x=!0}if(x){x=console;var O=x.error,_=typeof Symbol=="function"&&Symbol.toStringTag&&d[Symbol.toStringTag]||d.constructor.name||"Object";return O.call(x,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",_),t(d)}}function n(d){if(d===u)return"<>";if(typeof d=="object"&&d!==null&&d.$$typeof===R)return"<...>";try{var x=e(d);return x?"<"+x+">":"<...>"}catch{return"<...>"}}function o(){var d=I.A;return d===null?null:d.getOwner()}function a(){return Error("react-stack-top-frame")}function c(d){if($.call(d,"key")){var x=Object.getOwnPropertyDescriptor(d,"key").get;if(x&&x.isReactWarning)return!1}return d.key!==void 0}function s(d,x){function O(){M||(M=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",x))}O.isReactWarning=!0,Object.defineProperty(d,"key",{get:O,configurable:!0})}function m(){var d=e(this.type);return K[d]||(K[d]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),d=this.props.ref,d!==void 0?d:null}function f(d,x,O,_,A,j,X,B){return O=j.ref,d={$$typeof:g,type:d,key:x,props:j,_owner:A},(O!==void 0?O:null)!==null?Object.defineProperty(d,"ref",{enumerable:!1,get:m}):Object.defineProperty(d,"ref",{enumerable:!1,value:null}),d._store={},Object.defineProperty(d._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(d,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(d,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:X}),Object.defineProperty(d,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:B}),Object.freeze&&(Object.freeze(d.props),Object.freeze(d)),d}function l(d,x,O,_,A,j,X,B){var T=x.children;if(T!==void 0)if(_)if(U(T)){for(_=0;_<T.length;_++)p(T[_]);Object.freeze&&Object.freeze(T)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else p(T);if($.call(x,"key")){T=e(d);var F=Object.keys(x).filter(function(se){return se!=="key"});_=0<F.length?"{key: someKey, "+F.join(": ..., ")+": ...}":"{key: someKey}",V[T+_]||(F=0<F.length?"{"+F.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
192
- let props = %s;
193
- <%s {...props} />
194
- React keys must be passed directly to JSX without using spread:
195
- let props = %s;
196
- <%s key={someKey} {...props} />`,_,T,F,T),V[T+_]=!0)}if(T=null,O!==void 0&&(r(O),T=""+O),c(x)&&(r(x.key),T=""+x.key),"key"in x){O={};for(var H in x)H!=="key"&&(O[H]=x[H])}else O=x;return T&&s(O,typeof d=="function"?d.displayName||d.name||"Unknown":d),f(d,T,j,A,o(),O,X,B)}function p(d){typeof d=="object"&&d!==null&&d.$$typeof===g&&d._store&&(d._store.validated=1)}var v=P,g=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),b=Symbol.for("react.consumer"),w=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),S=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),D=Symbol.for("react.activity"),L=Symbol.for("react.client.reference"),I=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$=Object.prototype.hasOwnProperty,U=Array.isArray,W=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(d){return d()}};var M,K={},Y=v.react_stack_bottom_frame.bind(v,a)(),z=W(n(a)),V={};fs.Fragment=u,fs.jsx=function(d,x,O,_,A){var j=1e4>I.recentlyCreatedOwnerStacks++;return l(d,x,O,!1,_,A,j?Error("react-stack-top-frame"):Y,j?W(n(d)):z)},fs.jsxs=function(d,x,O,_,A){var j=1e4>I.recentlyCreatedOwnerStacks++;return l(d,x,O,!0,_,A,j?Error("react-stack-top-frame"):Y,j?W(n(d)):z)}})()),fs}var Zv;function wM(){return Zv||(Zv=1,process.env.NODE_ENV==="production"?gl.exports=yM():gl.exports=bM()),gl.exports}var fe=wM();P.createContext({locale:void 0});const xM={id:"",username:"",email:"",created_at:null,updated_at:null,features:[]};P.createContext({user:xM,isLoading:!0,fetchUser:async()=>{},logout:async()=>{},login:async()=>!1});ae.cva("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function Rr(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),r===!1||!n.defaultPrevented)return t?.(n)}}function Gv(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function EM(...e){return t=>{let r=!1;const n=e.map(o=>{const a=Gv(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():Gv(e[o],null)}}}}function an(...e){return i.useCallback(EM(...e),e)}function kM(e,t){const r=i.createContext(t),n=a=>{const{children:c,...s}=a,m=i.useMemo(()=>s,Object.values(s));return de.jsx(r.Provider,{value:m,children:c})};n.displayName=e+"Provider";function o(a){const c=i.useContext(r);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,o]}function SM(e,t=[]){let r=[];function n(a,c){const s=i.createContext(c),m=r.length;r=[...r,c];const f=p=>{const{scope:v,children:g,...E}=p,u=v?.[e]?.[m]||s,h=i.useMemo(()=>E,Object.values(E));return de.jsx(u.Provider,{value:h,children:g})};f.displayName=a+"Provider";function l(p,v){const g=v?.[e]?.[m]||s,E=i.useContext(g);if(E)return E;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[f,l]}const o=()=>{const a=r.map(c=>i.createContext(c));return function(c){const s=c?.[e]||a;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:s}}),[c,s])}};return o.scopeName=e,[n,CM(o,...t)]}function CM(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(o){const a=n.reduce((c,{useScope:s,scopeName:m})=>{const f=s(o)[`__scope${m}`];return{...c,...f}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}var Zf=globalThis?.document?i.useLayoutEffect:()=>{},RM=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Jt=RM.reduce((e,t)=>{const r=q.createSlot(`Primitive.${t}`),n=i.forwardRef((o,a)=>{const{asChild:c,...s}=o,m=c?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),de.jsx(m,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function OM(e,t){e&&we.flushSync(()=>e.dispatchEvent(t))}function ya(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...r)=>t.current?.(...r),[])}function NM(e,t=globalThis?.document){const r=ya(e);i.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var _M="DismissableLayer",Gf="dismissableLayer.update",TM="dismissableLayer.pointerDownOutside",DM="dismissableLayer.focusOutside",Jv,rx=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),nx=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:c,onDismiss:s,...m}=e,f=i.useContext(rx),[l,p]=i.useState(null),v=l?.ownerDocument??globalThis?.document,[,g]=i.useState({}),E=an(t,S=>p(S)),u=Array.from(f.layers),[h]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),y=u.indexOf(h),b=l?u.indexOf(l):-1,w=f.layersWithOutsidePointerEventsDisabled.size>0,k=b>=y,C=MM(S=>{const R=S.target,D=[...f.branches].some(L=>L.contains(R));!k||D||(o?.(S),c?.(S),S.defaultPrevented||s?.())},v),N=AM(S=>{const R=S.target;[...f.branches].some(D=>D.contains(R))||(a?.(S),c?.(S),S.defaultPrevented||s?.())},v);return NM(S=>{b===f.layers.size-1&&(n?.(S),!S.defaultPrevented&&s&&(S.preventDefault(),s()))},v),i.useEffect(()=>{if(l)return r&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(Jv=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(l)),f.layers.add(l),Qv(),()=>{r&&f.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=Jv)}},[l,v,r,f]),i.useEffect(()=>()=>{l&&(f.layers.delete(l),f.layersWithOutsidePointerEventsDisabled.delete(l),Qv())},[l,f]),i.useEffect(()=>{const S=()=>g({});return document.addEventListener(Gf,S),()=>document.removeEventListener(Gf,S)},[]),de.jsx(Jt.div,{...m,ref:E,style:{pointerEvents:w?k?"auto":"none":void 0,...e.style},onFocusCapture:Rr(e.onFocusCapture,N.onFocusCapture),onBlurCapture:Rr(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:Rr(e.onPointerDownCapture,C.onPointerDownCapture)})});nx.displayName=_M;var jM="DismissableLayerBranch",PM=i.forwardRef((e,t)=>{const r=i.useContext(rx),n=i.useRef(null),o=an(t,n);return i.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),de.jsx(Jt.div,{...e,ref:o})});PM.displayName=jM;function MM(e,t=globalThis?.document){const r=ya(e),n=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let m=function(){ox(TM,r,f,{discrete:!0})};const f={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=m,t.addEventListener("click",o.current,{once:!0})):m()}else t.removeEventListener("click",o.current);n.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function AM(e,t=globalThis?.document){const r=ya(e),n=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!n.current&&ox(DM,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function Qv(){const e=new CustomEvent(Gf);document.dispatchEvent(e)}function ox(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?OM(o,a):o.dispatchEvent(a)}var yl="focusScope.autoFocusOnMount",bl="focusScope.autoFocusOnUnmount",eh={bubbles:!1,cancelable:!0},IM="FocusScope",ax=i.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...c}=e,[s,m]=i.useState(null),f=ya(o),l=ya(a),p=i.useRef(null),v=an(t,u=>m(u)),g=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(n){let u=function(w){if(g.paused||!s)return;const k=w.target;s.contains(k)?p.current=k:cr(p.current,{select:!0})},h=function(w){if(g.paused||!s)return;const k=w.relatedTarget;k!==null&&(s.contains(k)||cr(p.current,{select:!0}))},y=function(w){if(document.activeElement===document.body)for(const k of w)k.removedNodes.length>0&&cr(s)};document.addEventListener("focusin",u),document.addEventListener("focusout",h);const b=new MutationObserver(y);return s&&b.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",u),document.removeEventListener("focusout",h),b.disconnect()}}},[n,s,g.paused]),i.useEffect(()=>{if(s){rh.add(g);const u=document.activeElement;if(!s.contains(u)){const h=new CustomEvent(yl,eh);s.addEventListener(yl,f),s.dispatchEvent(h),h.defaultPrevented||(LM(UM(sx(s)),{select:!0}),document.activeElement===u&&cr(s))}return()=>{s.removeEventListener(yl,f),setTimeout(()=>{const h=new CustomEvent(bl,eh);s.addEventListener(bl,l),s.dispatchEvent(h),h.defaultPrevented||cr(u??document.body,{select:!0}),s.removeEventListener(bl,l),rh.remove(g)},0)}}},[s,f,l,g]);const E=i.useCallback(u=>{if(!r&&!n||g.paused)return;const h=u.key==="Tab"&&!u.altKey&&!u.ctrlKey&&!u.metaKey,y=document.activeElement;if(h&&y){const b=u.currentTarget,[w,k]=FM(b);w&&k?!u.shiftKey&&y===k?(u.preventDefault(),r&&cr(w,{select:!0})):u.shiftKey&&y===w&&(u.preventDefault(),r&&cr(k,{select:!0})):y===b&&u.preventDefault()}},[r,n,g.paused]);return de.jsx(Jt.div,{tabIndex:-1,...c,ref:v,onKeyDown:E})});ax.displayName=IM;function LM(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(cr(n,{select:t}),document.activeElement!==r)return}function FM(e){const t=sx(e),r=th(t,e),n=th(t.reverse(),e);return[r,n]}function sx(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function th(e,t){for(const r of e)if(!WM(r,{upTo:t}))return r}function WM(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function $M(e){return e instanceof HTMLInputElement&&"select"in e}function cr(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&$M(e)&&t&&e.select()}}var rh=zM();function zM(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=nh(e,t),e.unshift(t)},remove(t){e=nh(e,t),e[0]?.resume()}}}function nh(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function UM(e){return e.filter(t=>t.tagName!=="A")}var YM="Portal",BM=i.forwardRef((e,t)=>{const{container:r,...n}=e,[o,a]=i.useState(!1);Zf(()=>a(!0),[]);const c=r||o&&globalThis?.document?.body;return c?be.createPortal(de.jsx(Jt.div,{...n,ref:t}),c):null});BM.displayName=YM;function KM(e,t){return i.useReducer((r,n)=>t[r][n]??r,e)}var cm=e=>{const{present:t,children:r}=e,n=XM(t),o=typeof r=="function"?r({present:n.isPresent}):i.Children.only(r),a=an(n.ref,HM(o));return typeof r=="function"||n.isPresent?i.cloneElement(o,{ref:a}):null};cm.displayName="Presence";function XM(e){const[t,r]=i.useState(),n=i.useRef(null),o=i.useRef(e),a=i.useRef("none"),c=e?"mounted":"unmounted",[s,m]=KM(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const f=ps(n.current);a.current=s==="mounted"?f:"none"},[s]),Zf(()=>{const f=n.current,l=o.current;if(l!==e){const p=a.current,v=ps(f);e?m("MOUNT"):v==="none"||f?.display==="none"?m("UNMOUNT"):m(l&&p!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,m]),Zf(()=>{if(t){let f;const l=t.ownerDocument.defaultView??window,p=g=>{const E=ps(n.current).includes(CSS.escape(g.animationName));if(g.target===t&&E&&(m("ANIMATION_END"),!o.current)){const u=t.style.animationFillMode;t.style.animationFillMode="forwards",f=l.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=u)})}},v=g=>{g.target===t&&(a.current=ps(n.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{l.clearTimeout(f),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else m("ANIMATION_END")},[t,m]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:i.useCallback(f=>{n.current=f?getComputedStyle(f):null,r(f)},[])}}function ps(e){return e?.animationName||"none"}function HM(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var wl=0;function VM(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??oh()),document.body.insertAdjacentElement("beforeend",e[1]??oh()),wl++,()=>{wl===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),wl--}},[])}function oh(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var tt=function(){return tt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},tt.apply(this,arguments)};function ix(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function qM(e,t,r){for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var ec="right-scroll-bar-position",tc="width-before-scroll-bar",ZM="with-scroll-bars-hidden",GM="--removed-body-scroll-bar-size";function xl(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function JM(e,t){var r=P.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var QM=typeof window<"u"?i.useLayoutEffect:i.useEffect,ah=new WeakMap;function eA(e,t){var r=JM(null,function(n){return e.forEach(function(o){return xl(o,n)})});return QM(function(){var n=ah.get(r);if(n){var o=new Set(n),a=new Set(e),c=r.current;o.forEach(function(s){a.has(s)||xl(s,null)}),a.forEach(function(s){o.has(s)||xl(s,c)})}ah.set(r,e)},[e]),r}function tA(e){return e}function rA(e,t){t===void 0&&(t=tA);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var c=t(a,n);return r.push(c),function(){r=r.filter(function(s){return s!==c})}},assignSyncMedium:function(a){for(n=!0;r.length;){var c=r;r=[],c.forEach(a)}r={push:function(s){return a(s)},filter:function(){return r}}},assignMedium:function(a){n=!0;var c=[];if(r.length){var s=r;r=[],s.forEach(a),c=r}var m=function(){var l=c;c=[],l.forEach(a)},f=function(){return Promise.resolve().then(m)};f(),r={push:function(l){c.push(l),f()},filter:function(l){return c=c.filter(l),r}}}};return o}function nA(e){e===void 0&&(e={});var t=rA(null);return t.options=tt({async:!0,ssr:!1},e),t}var cx=function(e){var t=e.sideCar,r=ix(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return i.createElement(n,tt({},r))};cx.isSideCarExport=!0;function oA(e,t){return e.useMedium(t),cx}var ux=nA(),El=function(){},tu=i.forwardRef(function(e,t){var r=i.useRef(null),n=i.useState({onScrollCapture:El,onWheelCapture:El,onTouchMoveCapture:El}),o=n[0],a=n[1],c=e.forwardProps,s=e.children,m=e.className,f=e.removeScrollBar,l=e.enabled,p=e.shards,v=e.sideCar,g=e.noRelative,E=e.noIsolation,u=e.inert,h=e.allowPinchZoom,y=e.as,b=y===void 0?"div":y,w=e.gapMode,k=ix(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=v,N=eA([r,t]),S=tt(tt({},k),o);return i.createElement(i.Fragment,null,l&&i.createElement(C,{sideCar:ux,removeScrollBar:f,shards:p,noRelative:g,noIsolation:E,inert:u,setCallbacks:a,allowPinchZoom:!!h,lockRef:r,gapMode:w}),c?i.cloneElement(i.Children.only(s),tt(tt({},S),{ref:N})):i.createElement(b,tt({},S,{className:m,ref:N}),s))});tu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};tu.classNames={fullWidth:tc,zeroRight:ec};var aA=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function sA(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=aA();return t&&e.setAttribute("nonce",t),e}function iA(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function cA(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var uA=function(){var e=0,t=null;return{add:function(r){e==0&&(t=sA())&&(iA(t,r),cA(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},lA=function(){var e=uA();return function(t,r){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},lx=function(){var e=lA(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},dA={left:0,top:0,right:0,gap:0},kl=function(e){return parseInt(e||"",10)||0},fA=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[kl(r),kl(n),kl(o)]},pA=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return dA;var t=fA(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},mA=lx(),go="data-scroll-locked",vA=function(e,t,r,n){var o=e.left,a=e.top,c=e.right,s=e.gap;return r===void 0&&(r="margin"),`
197
- .`.concat(ZM,` {
198
- overflow: hidden `).concat(n,`;
199
- padding-right: `).concat(s,"px ").concat(n,`;
200
- }
201
- body[`).concat(go,`] {
202
- overflow: hidden `).concat(n,`;
203
- overscroll-behavior: contain;
204
- `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
205
- padding-left: `.concat(o,`px;
206
- padding-top: `).concat(a,`px;
207
- padding-right: `).concat(c,`px;
208
- margin-left:0;
209
- margin-top:0;
210
- margin-right: `).concat(s,"px ").concat(n,`;
211
- `),r==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),`
212
- }
213
-
214
- .`).concat(ec,` {
215
- right: `).concat(s,"px ").concat(n,`;
216
- }
217
-
218
- .`).concat(tc,` {
219
- margin-right: `).concat(s,"px ").concat(n,`;
220
- }
221
-
222
- .`).concat(ec," .").concat(ec,` {
223
- right: 0 `).concat(n,`;
224
- }
225
-
226
- .`).concat(tc," .").concat(tc,` {
227
- margin-right: 0 `).concat(n,`;
228
- }
229
-
230
- body[`).concat(go,`] {
231
- `).concat(GM,": ").concat(s,`px;
232
- }
233
- `)},sh=function(){var e=parseInt(document.body.getAttribute(go)||"0",10);return isFinite(e)?e:0},hA=function(){i.useEffect(function(){return document.body.setAttribute(go,(sh()+1).toString()),function(){var e=sh()-1;e<=0?document.body.removeAttribute(go):document.body.setAttribute(go,e.toString())}},[])},gA=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;hA();var a=i.useMemo(function(){return pA(o)},[o]);return i.createElement(mA,{styles:vA(a,!t,o,r?"":"!important")})},Jf=!1;if(typeof window<"u")try{var ms=Object.defineProperty({},"passive",{get:function(){return Jf=!0,!0}});window.addEventListener("test",ms,ms),window.removeEventListener("test",ms,ms)}catch{Jf=!1}var xn=Jf?{passive:!1}:!1,yA=function(e){return e.tagName==="TEXTAREA"},dx=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!yA(e)&&r[t]==="visible")},bA=function(e){return dx(e,"overflowY")},wA=function(e){return dx(e,"overflowX")},ih=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=fx(e,n);if(o){var a=px(e,n),c=a[1],s=a[2];if(c>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},xA=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},EA=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},fx=function(e,t){return e==="v"?bA(t):wA(t)},px=function(e,t){return e==="v"?xA(t):EA(t)},kA=function(e,t){return e==="h"&&t==="rtl"?-1:1},SA=function(e,t,r,n,o){var a=kA(e,window.getComputedStyle(t).direction),c=a*n,s=r.target,m=t.contains(s),f=!1,l=c>0,p=0,v=0;do{if(!s)break;var g=px(e,s),E=g[0],u=g[1],h=g[2],y=u-h-a*E;(E||y)&&fx(e,s)&&(p+=y,v+=E);var b=s.parentNode;s=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!m&&s!==document.body||m&&(t.contains(s)||t===s));return(l&&Math.abs(p)<1||!l&&Math.abs(v)<1)&&(f=!0),f},vs=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ch=function(e){return[e.deltaX,e.deltaY]},uh=function(e){return e&&"current"in e?e.current:e},CA=function(e,t){return e[0]===t[0]&&e[1]===t[1]},RA=function(e){return`
234
- .block-interactivity-`.concat(e,` {pointer-events: none;}
235
- .allow-interactivity-`).concat(e,` {pointer-events: all;}
236
- `)},OA=0,En=[];function NA(e){var t=i.useRef([]),r=i.useRef([0,0]),n=i.useRef(),o=i.useState(OA++)[0],a=i.useState(lx)[0],c=i.useRef(e);i.useEffect(function(){c.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var u=qM([e.lockRef.current],(e.shards||[]).map(uh)).filter(Boolean);return u.forEach(function(h){return h.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),u.forEach(function(h){return h.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=i.useCallback(function(u,h){if("touches"in u&&u.touches.length===2||u.type==="wheel"&&u.ctrlKey)return!c.current.allowPinchZoom;var y=vs(u),b=r.current,w="deltaX"in u?u.deltaX:b[0]-y[0],k="deltaY"in u?u.deltaY:b[1]-y[1],C,N=u.target,S=Math.abs(w)>Math.abs(k)?"h":"v";if("touches"in u&&S==="h"&&N.type==="range")return!1;var R=ih(S,N);if(!R)return!0;if(R?C=S:(C=S==="v"?"h":"v",R=ih(S,N)),!R)return!1;if(!n.current&&"changedTouches"in u&&(w||k)&&(n.current=C),!C)return!0;var D=n.current||C;return SA(D,h,u,D==="h"?w:k)},[]),m=i.useCallback(function(u){var h=u;if(!(!En.length||En[En.length-1]!==a)){var y="deltaY"in h?ch(h):vs(h),b=t.current.filter(function(C){return C.name===h.type&&(C.target===h.target||h.target===C.shadowParent)&&CA(C.delta,y)})[0];if(b&&b.should){h.cancelable&&h.preventDefault();return}if(!b){var w=(c.current.shards||[]).map(uh).filter(Boolean).filter(function(C){return C.contains(h.target)}),k=w.length>0?s(h,w[0]):!c.current.noIsolation;k&&h.cancelable&&h.preventDefault()}}},[]),f=i.useCallback(function(u,h,y,b){var w={name:u,delta:h,target:y,should:b,shadowParent:_A(y)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(k){return k!==w})},1)},[]),l=i.useCallback(function(u){r.current=vs(u),n.current=void 0},[]),p=i.useCallback(function(u){f(u.type,ch(u),u.target,s(u,e.lockRef.current))},[]),v=i.useCallback(function(u){f(u.type,vs(u),u.target,s(u,e.lockRef.current))},[]);i.useEffect(function(){return En.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:v}),document.addEventListener("wheel",m,xn),document.addEventListener("touchmove",m,xn),document.addEventListener("touchstart",l,xn),function(){En=En.filter(function(u){return u!==a}),document.removeEventListener("wheel",m,xn),document.removeEventListener("touchmove",m,xn),document.removeEventListener("touchstart",l,xn)}},[]);var g=e.removeScrollBar,E=e.inert;return i.createElement(i.Fragment,null,E?i.createElement(a,{styles:RA(o)}):null,g?i.createElement(gA,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function _A(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const TA=oA(ux,NA);var mx=i.forwardRef(function(e,t){return i.createElement(tu,tt({},e,{ref:t,sideCar:TA}))});mx.classNames=tu.classNames;var DA=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},kn=new WeakMap,hs=new WeakMap,gs={},Sl=0,vx=function(e){return e&&(e.host||vx(e.parentNode))},jA=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=vx(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},PA=function(e,t,r,n){var o=jA(t,Array.isArray(e)?e:[e]);gs[r]||(gs[r]=new WeakMap);var a=gs[r],c=[],s=new Set,m=new Set(o),f=function(p){!p||s.has(p)||(s.add(p),f(p.parentNode))};o.forEach(f);var l=function(p){!p||m.has(p)||Array.prototype.forEach.call(p.children,function(v){if(s.has(v))l(v);else try{var g=v.getAttribute(n),E=g!==null&&g!=="false",u=(kn.get(v)||0)+1,h=(a.get(v)||0)+1;kn.set(v,u),a.set(v,h),c.push(v),u===1&&E&&hs.set(v,!0),h===1&&v.setAttribute(r,"true"),E||v.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",v,y)}})};return l(t),s.clear(),Sl++,function(){c.forEach(function(p){var v=kn.get(p)-1,g=a.get(p)-1;kn.set(p,v),a.set(p,g),v||(hs.has(p)||p.removeAttribute(n),hs.delete(p)),g||p.removeAttribute(r)}),Sl--,Sl||(kn=new WeakMap,kn=new WeakMap,hs=new WeakMap,gs={})}},MA=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=DA(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),PA(n,o,r,"aria-hidden")):function(){return null}},hx="Dialog",[gx]=SM(hx),[Gne,jt]=gx(hx),yx="DialogTrigger",AA=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=jt(yx,r),a=an(t,o.triggerRef);return de.jsx(Jt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":lm(o.open),...n,ref:a,onClick:Rr(e.onClick,o.onOpenToggle)})});AA.displayName=yx;var IA="DialogPortal",[Jne,bx]=gx(IA,{forceMount:void 0}),Mc="DialogOverlay",LA=i.forwardRef((e,t)=>{const r=bx(Mc,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=jt(Mc,e.__scopeDialog);return a.modal?de.jsx(cm,{present:n||a.open,children:de.jsx(WA,{...o,ref:t})}):null});LA.displayName=Mc;var FA=q.createSlot("DialogOverlay.RemoveScroll"),WA=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=jt(Mc,r);return de.jsx(mx,{as:FA,allowPinchZoom:!0,shards:[o.contentRef],children:de.jsx(Jt.div,{"data-state":lm(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),zr="DialogContent",$A=i.forwardRef((e,t)=>{const r=bx(zr,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=jt(zr,e.__scopeDialog);return de.jsx(cm,{present:n||a.open,children:a.modal?de.jsx(zA,{...o,ref:t}):de.jsx(UA,{...o,ref:t})})});$A.displayName=zr;var zA=i.forwardRef((e,t)=>{const r=jt(zr,e.__scopeDialog),n=i.useRef(null),o=an(t,r.contentRef,n);return i.useEffect(()=>{const a=n.current;if(a)return MA(a)},[]),de.jsx(wx,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Rr(e.onCloseAutoFocus,a=>{a.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:Rr(e.onPointerDownOutside,a=>{const c=a.detail.originalEvent,s=c.button===0&&c.ctrlKey===!0;(c.button===2||s)&&a.preventDefault()}),onFocusOutside:Rr(e.onFocusOutside,a=>a.preventDefault())})}),UA=i.forwardRef((e,t)=>{const r=jt(zr,e.__scopeDialog),n=i.useRef(!1),o=i.useRef(!1);return de.jsx(wx,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(n.current||r.triggerRef.current?.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=a.target;r.triggerRef.current?.contains(c)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),wx=i.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...c}=e,s=jt(zr,r),m=i.useRef(null),f=an(t,m);return VM(),de.jsxs(de.Fragment,{children:[de.jsx(ax,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:de.jsx(nx,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":lm(s.open),...c,ref:f,onDismiss:()=>s.onOpenChange(!1)})}),de.jsxs(de.Fragment,{children:[de.jsx(XA,{titleId:s.titleId}),de.jsx(VA,{contentRef:m,descriptionId:s.descriptionId})]})]})}),um="DialogTitle",YA=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=jt(um,r);return de.jsx(Jt.h2,{id:o.titleId,...n,ref:t})});YA.displayName=um;var xx="DialogDescription",BA=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=jt(xx,r);return de.jsx(Jt.p,{id:o.descriptionId,...n,ref:t})});BA.displayName=xx;var Ex="DialogClose",KA=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=jt(Ex,r);return de.jsx(Jt.button,{type:"button",...n,ref:t,onClick:Rr(e.onClick,()=>o.onOpenChange(!1))})});KA.displayName=Ex;function lm(e){return e?"open":"closed"}var kx="DialogTitleWarning",[Qne,Sx]=kM(kx,{contentName:zr,titleName:um,docsSlug:"dialog"}),XA=({titleId:e})=>{const t=Sx(kx),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
237
-
238
- If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
239
-
240
- For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},HA="DialogDescriptionWarning",VA=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Sx(HA).contentName}}.`;return i.useEffect(()=>{const n=e.current?.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null};ae.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});ae.cva("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function Or(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),r===!1||!n.defaultPrevented)return t?.(n)}}function lh(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function qA(...e){return t=>{let r=!1;const n=e.map(o=>{const a=lh(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():lh(e[o],null)}}}}function sn(...e){return i.useCallback(qA(...e),e)}function ZA(e,t){const r=i.createContext(t),n=a=>{const{children:c,...s}=a,m=i.useMemo(()=>s,Object.values(s));return fe.jsx(r.Provider,{value:m,children:c})};n.displayName=e+"Provider";function o(a){const c=i.useContext(r);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,o]}function GA(e,t=[]){let r=[];function n(a,c){const s=i.createContext(c),m=r.length;r=[...r,c];const f=p=>{const{scope:v,children:g,...E}=p,u=v?.[e]?.[m]||s,h=i.useMemo(()=>E,Object.values(E));return fe.jsx(u.Provider,{value:h,children:g})};f.displayName=a+"Provider";function l(p,v){const g=v?.[e]?.[m]||s,E=i.useContext(g);if(E)return E;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[f,l]}const o=()=>{const a=r.map(c=>i.createContext(c));return function(c){const s=c?.[e]||a;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:s}}),[c,s])}};return o.scopeName=e,[n,JA(o,...t)]}function JA(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(o){const a=n.reduce((c,{useScope:s,scopeName:m})=>{const f=s(o)[`__scope${m}`];return{...c,...f}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}var Qf=globalThis?.document?i.useLayoutEffect:()=>{},QA=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Qt=QA.reduce((e,t)=>{const r=q.createSlot(`Primitive.${t}`),n=i.forwardRef((o,a)=>{const{asChild:c,...s}=o,m=c?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),fe.jsx(m,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function eI(e,t){e&&we.flushSync(()=>e.dispatchEvent(t))}function ba(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...r)=>t.current?.(...r),[])}function tI(e,t=globalThis?.document){const r=ba(e);i.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var rI="DismissableLayer",ep="dismissableLayer.update",nI="dismissableLayer.pointerDownOutside",oI="dismissableLayer.focusOutside",dh,Cx=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Rx=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:c,onDismiss:s,...m}=e,f=i.useContext(Cx),[l,p]=i.useState(null),v=l?.ownerDocument??globalThis?.document,[,g]=i.useState({}),E=sn(t,S=>p(S)),u=Array.from(f.layers),[h]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),y=u.indexOf(h),b=l?u.indexOf(l):-1,w=f.layersWithOutsidePointerEventsDisabled.size>0,k=b>=y,C=iI(S=>{const R=S.target,D=[...f.branches].some(L=>L.contains(R));!k||D||(o?.(S),c?.(S),S.defaultPrevented||s?.())},v),N=cI(S=>{const R=S.target;[...f.branches].some(D=>D.contains(R))||(a?.(S),c?.(S),S.defaultPrevented||s?.())},v);return tI(S=>{b===f.layers.size-1&&(n?.(S),!S.defaultPrevented&&s&&(S.preventDefault(),s()))},v),i.useEffect(()=>{if(l)return r&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(dh=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(l)),f.layers.add(l),fh(),()=>{r&&f.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=dh)}},[l,v,r,f]),i.useEffect(()=>()=>{l&&(f.layers.delete(l),f.layersWithOutsidePointerEventsDisabled.delete(l),fh())},[l,f]),i.useEffect(()=>{const S=()=>g({});return document.addEventListener(ep,S),()=>document.removeEventListener(ep,S)},[]),fe.jsx(Qt.div,{...m,ref:E,style:{pointerEvents:w?k?"auto":"none":void 0,...e.style},onFocusCapture:Or(e.onFocusCapture,N.onFocusCapture),onBlurCapture:Or(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:Or(e.onPointerDownCapture,C.onPointerDownCapture)})});Rx.displayName=rI;var aI="DismissableLayerBranch",sI=i.forwardRef((e,t)=>{const r=i.useContext(Cx),n=i.useRef(null),o=sn(t,n);return i.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),fe.jsx(Qt.div,{...e,ref:o})});sI.displayName=aI;function iI(e,t=globalThis?.document){const r=ba(e),n=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let m=function(){Ox(nI,r,f,{discrete:!0})};const f={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=m,t.addEventListener("click",o.current,{once:!0})):m()}else t.removeEventListener("click",o.current);n.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function cI(e,t=globalThis?.document){const r=ba(e),n=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!n.current&&Ox(oI,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function fh(){const e=new CustomEvent(ep);document.dispatchEvent(e)}function Ox(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?eI(o,a):o.dispatchEvent(a)}var Cl="focusScope.autoFocusOnMount",Rl="focusScope.autoFocusOnUnmount",ph={bubbles:!1,cancelable:!0},uI="FocusScope",Nx=i.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...c}=e,[s,m]=i.useState(null),f=ba(o),l=ba(a),p=i.useRef(null),v=sn(t,u=>m(u)),g=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(n){let u=function(w){if(g.paused||!s)return;const k=w.target;s.contains(k)?p.current=k:ur(p.current,{select:!0})},h=function(w){if(g.paused||!s)return;const k=w.relatedTarget;k!==null&&(s.contains(k)||ur(p.current,{select:!0}))},y=function(w){if(document.activeElement===document.body)for(const k of w)k.removedNodes.length>0&&ur(s)};document.addEventListener("focusin",u),document.addEventListener("focusout",h);const b=new MutationObserver(y);return s&&b.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",u),document.removeEventListener("focusout",h),b.disconnect()}}},[n,s,g.paused]),i.useEffect(()=>{if(s){vh.add(g);const u=document.activeElement;if(!s.contains(u)){const h=new CustomEvent(Cl,ph);s.addEventListener(Cl,f),s.dispatchEvent(h),h.defaultPrevented||(lI(vI(_x(s)),{select:!0}),document.activeElement===u&&ur(s))}return()=>{s.removeEventListener(Cl,f),setTimeout(()=>{const h=new CustomEvent(Rl,ph);s.addEventListener(Rl,l),s.dispatchEvent(h),h.defaultPrevented||ur(u??document.body,{select:!0}),s.removeEventListener(Rl,l),vh.remove(g)},0)}}},[s,f,l,g]);const E=i.useCallback(u=>{if(!r&&!n||g.paused)return;const h=u.key==="Tab"&&!u.altKey&&!u.ctrlKey&&!u.metaKey,y=document.activeElement;if(h&&y){const b=u.currentTarget,[w,k]=dI(b);w&&k?!u.shiftKey&&y===k?(u.preventDefault(),r&&ur(w,{select:!0})):u.shiftKey&&y===w&&(u.preventDefault(),r&&ur(k,{select:!0})):y===b&&u.preventDefault()}},[r,n,g.paused]);return fe.jsx(Qt.div,{tabIndex:-1,...c,ref:v,onKeyDown:E})});Nx.displayName=uI;function lI(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(ur(n,{select:t}),document.activeElement!==r)return}function dI(e){const t=_x(e),r=mh(t,e),n=mh(t.reverse(),e);return[r,n]}function _x(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function mh(e,t){for(const r of e)if(!fI(r,{upTo:t}))return r}function fI(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function pI(e){return e instanceof HTMLInputElement&&"select"in e}function ur(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&pI(e)&&t&&e.select()}}var vh=mI();function mI(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=hh(e,t),e.unshift(t)},remove(t){e=hh(e,t),e[0]?.resume()}}}function hh(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function vI(e){return e.filter(t=>t.tagName!=="A")}var hI="Portal",gI=i.forwardRef((e,t)=>{const{container:r,...n}=e,[o,a]=i.useState(!1);Qf(()=>a(!0),[]);const c=r||o&&globalThis?.document?.body;return c?be.createPortal(fe.jsx(Qt.div,{...n,ref:t}),c):null});gI.displayName=hI;function yI(e,t){return i.useReducer((r,n)=>t[r][n]??r,e)}var dm=e=>{const{present:t,children:r}=e,n=bI(t),o=typeof r=="function"?r({present:n.isPresent}):i.Children.only(r),a=sn(n.ref,wI(o));return typeof r=="function"||n.isPresent?i.cloneElement(o,{ref:a}):null};dm.displayName="Presence";function bI(e){const[t,r]=i.useState(),n=i.useRef(null),o=i.useRef(e),a=i.useRef("none"),c=e?"mounted":"unmounted",[s,m]=yI(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const f=ys(n.current);a.current=s==="mounted"?f:"none"},[s]),Qf(()=>{const f=n.current,l=o.current;if(l!==e){const p=a.current,v=ys(f);e?m("MOUNT"):v==="none"||f?.display==="none"?m("UNMOUNT"):m(l&&p!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,m]),Qf(()=>{if(t){let f;const l=t.ownerDocument.defaultView??window,p=g=>{const E=ys(n.current).includes(CSS.escape(g.animationName));if(g.target===t&&E&&(m("ANIMATION_END"),!o.current)){const u=t.style.animationFillMode;t.style.animationFillMode="forwards",f=l.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=u)})}},v=g=>{g.target===t&&(a.current=ys(n.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{l.clearTimeout(f),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else m("ANIMATION_END")},[t,m]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:i.useCallback(f=>{n.current=f?getComputedStyle(f):null,r(f)},[])}}function ys(e){return e?.animationName||"none"}function wI(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Ol=0;function xI(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??gh()),document.body.insertAdjacentElement("beforeend",e[1]??gh()),Ol++,()=>{Ol===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Ol--}},[])}function gh(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var rt=function(){return rt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},rt.apply(this,arguments)};function Tx(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function EI(e,t,r){for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var rc="right-scroll-bar-position",nc="width-before-scroll-bar",kI="with-scroll-bars-hidden",SI="--removed-body-scroll-bar-size";function Nl(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function CI(e,t){var r=P.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var RI=typeof window<"u"?i.useLayoutEffect:i.useEffect,yh=new WeakMap;function OI(e,t){var r=CI(null,function(n){return e.forEach(function(o){return Nl(o,n)})});return RI(function(){var n=yh.get(r);if(n){var o=new Set(n),a=new Set(e),c=r.current;o.forEach(function(s){a.has(s)||Nl(s,null)}),a.forEach(function(s){o.has(s)||Nl(s,c)})}yh.set(r,e)},[e]),r}function NI(e){return e}function _I(e,t){t===void 0&&(t=NI);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var c=t(a,n);return r.push(c),function(){r=r.filter(function(s){return s!==c})}},assignSyncMedium:function(a){for(n=!0;r.length;){var c=r;r=[],c.forEach(a)}r={push:function(s){return a(s)},filter:function(){return r}}},assignMedium:function(a){n=!0;var c=[];if(r.length){var s=r;r=[],s.forEach(a),c=r}var m=function(){var l=c;c=[],l.forEach(a)},f=function(){return Promise.resolve().then(m)};f(),r={push:function(l){c.push(l),f()},filter:function(l){return c=c.filter(l),r}}}};return o}function TI(e){e===void 0&&(e={});var t=_I(null);return t.options=rt({async:!0,ssr:!1},e),t}var Dx=function(e){var t=e.sideCar,r=Tx(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return i.createElement(n,rt({},r))};Dx.isSideCarExport=!0;function DI(e,t){return e.useMedium(t),Dx}var jx=TI(),_l=function(){},ru=i.forwardRef(function(e,t){var r=i.useRef(null),n=i.useState({onScrollCapture:_l,onWheelCapture:_l,onTouchMoveCapture:_l}),o=n[0],a=n[1],c=e.forwardProps,s=e.children,m=e.className,f=e.removeScrollBar,l=e.enabled,p=e.shards,v=e.sideCar,g=e.noRelative,E=e.noIsolation,u=e.inert,h=e.allowPinchZoom,y=e.as,b=y===void 0?"div":y,w=e.gapMode,k=Tx(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=v,N=OI([r,t]),S=rt(rt({},k),o);return i.createElement(i.Fragment,null,l&&i.createElement(C,{sideCar:jx,removeScrollBar:f,shards:p,noRelative:g,noIsolation:E,inert:u,setCallbacks:a,allowPinchZoom:!!h,lockRef:r,gapMode:w}),c?i.cloneElement(i.Children.only(s),rt(rt({},S),{ref:N})):i.createElement(b,rt({},S,{className:m,ref:N}),s))});ru.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ru.classNames={fullWidth:nc,zeroRight:rc};var jI=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function PI(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=jI();return t&&e.setAttribute("nonce",t),e}function MI(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function AI(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var II=function(){var e=0,t=null;return{add:function(r){e==0&&(t=PI())&&(MI(t,r),AI(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},LI=function(){var e=II();return function(t,r){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Px=function(){var e=LI(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},FI={left:0,top:0,right:0,gap:0},Tl=function(e){return parseInt(e||"",10)||0},WI=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Tl(r),Tl(n),Tl(o)]},$I=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return FI;var t=WI(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},zI=Px(),yo="data-scroll-locked",UI=function(e,t,r,n){var o=e.left,a=e.top,c=e.right,s=e.gap;return r===void 0&&(r="margin"),`
241
- .`.concat(kI,` {
242
- overflow: hidden `).concat(n,`;
243
- padding-right: `).concat(s,"px ").concat(n,`;
244
- }
245
- body[`).concat(yo,`] {
246
- overflow: hidden `).concat(n,`;
247
- overscroll-behavior: contain;
248
- `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
249
- padding-left: `.concat(o,`px;
250
- padding-top: `).concat(a,`px;
251
- padding-right: `).concat(c,`px;
252
- margin-left:0;
253
- margin-top:0;
254
- margin-right: `).concat(s,"px ").concat(n,`;
255
- `),r==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),`
256
- }
257
-
258
- .`).concat(rc,` {
259
- right: `).concat(s,"px ").concat(n,`;
260
- }
261
-
262
- .`).concat(nc,` {
263
- margin-right: `).concat(s,"px ").concat(n,`;
264
- }
265
-
266
- .`).concat(rc," .").concat(rc,` {
267
- right: 0 `).concat(n,`;
268
- }
269
-
270
- .`).concat(nc," .").concat(nc,` {
271
- margin-right: 0 `).concat(n,`;
272
- }
273
-
274
- body[`).concat(yo,`] {
275
- `).concat(SI,": ").concat(s,`px;
276
- }
277
- `)},bh=function(){var e=parseInt(document.body.getAttribute(yo)||"0",10);return isFinite(e)?e:0},YI=function(){i.useEffect(function(){return document.body.setAttribute(yo,(bh()+1).toString()),function(){var e=bh()-1;e<=0?document.body.removeAttribute(yo):document.body.setAttribute(yo,e.toString())}},[])},BI=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;YI();var a=i.useMemo(function(){return $I(o)},[o]);return i.createElement(zI,{styles:UI(a,!t,o,r?"":"!important")})},tp=!1;if(typeof window<"u")try{var bs=Object.defineProperty({},"passive",{get:function(){return tp=!0,!0}});window.addEventListener("test",bs,bs),window.removeEventListener("test",bs,bs)}catch{tp=!1}var Sn=tp?{passive:!1}:!1,KI=function(e){return e.tagName==="TEXTAREA"},Mx=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!KI(e)&&r[t]==="visible")},XI=function(e){return Mx(e,"overflowY")},HI=function(e){return Mx(e,"overflowX")},wh=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=Ax(e,n);if(o){var a=Ix(e,n),c=a[1],s=a[2];if(c>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},VI=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},qI=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},Ax=function(e,t){return e==="v"?XI(t):HI(t)},Ix=function(e,t){return e==="v"?VI(t):qI(t)},ZI=function(e,t){return e==="h"&&t==="rtl"?-1:1},GI=function(e,t,r,n,o){var a=ZI(e,window.getComputedStyle(t).direction),c=a*n,s=r.target,m=t.contains(s),f=!1,l=c>0,p=0,v=0;do{if(!s)break;var g=Ix(e,s),E=g[0],u=g[1],h=g[2],y=u-h-a*E;(E||y)&&Ax(e,s)&&(p+=y,v+=E);var b=s.parentNode;s=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!m&&s!==document.body||m&&(t.contains(s)||t===s));return(l&&Math.abs(p)<1||!l&&Math.abs(v)<1)&&(f=!0),f},ws=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},xh=function(e){return[e.deltaX,e.deltaY]},Eh=function(e){return e&&"current"in e?e.current:e},JI=function(e,t){return e[0]===t[0]&&e[1]===t[1]},QI=function(e){return`
278
- .block-interactivity-`.concat(e,` {pointer-events: none;}
279
- .allow-interactivity-`).concat(e,` {pointer-events: all;}
280
- `)},eL=0,Cn=[];function tL(e){var t=i.useRef([]),r=i.useRef([0,0]),n=i.useRef(),o=i.useState(eL++)[0],a=i.useState(Px)[0],c=i.useRef(e);i.useEffect(function(){c.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var u=EI([e.lockRef.current],(e.shards||[]).map(Eh)).filter(Boolean);return u.forEach(function(h){return h.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),u.forEach(function(h){return h.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=i.useCallback(function(u,h){if("touches"in u&&u.touches.length===2||u.type==="wheel"&&u.ctrlKey)return!c.current.allowPinchZoom;var y=ws(u),b=r.current,w="deltaX"in u?u.deltaX:b[0]-y[0],k="deltaY"in u?u.deltaY:b[1]-y[1],C,N=u.target,S=Math.abs(w)>Math.abs(k)?"h":"v";if("touches"in u&&S==="h"&&N.type==="range")return!1;var R=wh(S,N);if(!R)return!0;if(R?C=S:(C=S==="v"?"h":"v",R=wh(S,N)),!R)return!1;if(!n.current&&"changedTouches"in u&&(w||k)&&(n.current=C),!C)return!0;var D=n.current||C;return GI(D,h,u,D==="h"?w:k)},[]),m=i.useCallback(function(u){var h=u;if(!(!Cn.length||Cn[Cn.length-1]!==a)){var y="deltaY"in h?xh(h):ws(h),b=t.current.filter(function(C){return C.name===h.type&&(C.target===h.target||h.target===C.shadowParent)&&JI(C.delta,y)})[0];if(b&&b.should){h.cancelable&&h.preventDefault();return}if(!b){var w=(c.current.shards||[]).map(Eh).filter(Boolean).filter(function(C){return C.contains(h.target)}),k=w.length>0?s(h,w[0]):!c.current.noIsolation;k&&h.cancelable&&h.preventDefault()}}},[]),f=i.useCallback(function(u,h,y,b){var w={name:u,delta:h,target:y,should:b,shadowParent:rL(y)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(k){return k!==w})},1)},[]),l=i.useCallback(function(u){r.current=ws(u),n.current=void 0},[]),p=i.useCallback(function(u){f(u.type,xh(u),u.target,s(u,e.lockRef.current))},[]),v=i.useCallback(function(u){f(u.type,ws(u),u.target,s(u,e.lockRef.current))},[]);i.useEffect(function(){return Cn.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:v}),document.addEventListener("wheel",m,Sn),document.addEventListener("touchmove",m,Sn),document.addEventListener("touchstart",l,Sn),function(){Cn=Cn.filter(function(u){return u!==a}),document.removeEventListener("wheel",m,Sn),document.removeEventListener("touchmove",m,Sn),document.removeEventListener("touchstart",l,Sn)}},[]);var g=e.removeScrollBar,E=e.inert;return i.createElement(i.Fragment,null,E?i.createElement(a,{styles:QI(o)}):null,g?i.createElement(BI,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function rL(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const nL=DI(jx,tL);var Lx=i.forwardRef(function(e,t){return i.createElement(ru,rt({},e,{ref:t,sideCar:nL}))});Lx.classNames=ru.classNames;var oL=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Rn=new WeakMap,xs=new WeakMap,Es={},Dl=0,Fx=function(e){return e&&(e.host||Fx(e.parentNode))},aL=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=Fx(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},sL=function(e,t,r,n){var o=aL(t,Array.isArray(e)?e:[e]);Es[r]||(Es[r]=new WeakMap);var a=Es[r],c=[],s=new Set,m=new Set(o),f=function(p){!p||s.has(p)||(s.add(p),f(p.parentNode))};o.forEach(f);var l=function(p){!p||m.has(p)||Array.prototype.forEach.call(p.children,function(v){if(s.has(v))l(v);else try{var g=v.getAttribute(n),E=g!==null&&g!=="false",u=(Rn.get(v)||0)+1,h=(a.get(v)||0)+1;Rn.set(v,u),a.set(v,h),c.push(v),u===1&&E&&xs.set(v,!0),h===1&&v.setAttribute(r,"true"),E||v.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",v,y)}})};return l(t),s.clear(),Dl++,function(){c.forEach(function(p){var v=Rn.get(p)-1,g=a.get(p)-1;Rn.set(p,v),a.set(p,g),v||(xs.has(p)||p.removeAttribute(n),xs.delete(p)),g||p.removeAttribute(r)}),Dl--,Dl||(Rn=new WeakMap,Rn=new WeakMap,xs=new WeakMap,Es={})}},iL=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=oL(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),sL(n,o,r,"aria-hidden")):function(){return null}},Wx="Dialog",[$x]=GA(Wx),[eoe,Pt]=$x(Wx),zx="DialogTrigger",cL=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Pt(zx,r),a=sn(t,o.triggerRef);return fe.jsx(Qt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":pm(o.open),...n,ref:a,onClick:Or(e.onClick,o.onOpenToggle)})});cL.displayName=zx;var uL="DialogPortal",[toe,Ux]=$x(uL,{forceMount:void 0}),Ac="DialogOverlay",lL=i.forwardRef((e,t)=>{const r=Ux(Ac,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Pt(Ac,e.__scopeDialog);return a.modal?fe.jsx(dm,{present:n||a.open,children:fe.jsx(fL,{...o,ref:t})}):null});lL.displayName=Ac;var dL=q.createSlot("DialogOverlay.RemoveScroll"),fL=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Pt(Ac,r);return fe.jsx(Lx,{as:dL,allowPinchZoom:!0,shards:[o.contentRef],children:fe.jsx(Qt.div,{"data-state":pm(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),Ur="DialogContent",pL=i.forwardRef((e,t)=>{const r=Ux(Ur,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Pt(Ur,e.__scopeDialog);return fe.jsx(dm,{present:n||a.open,children:a.modal?fe.jsx(mL,{...o,ref:t}):fe.jsx(vL,{...o,ref:t})})});pL.displayName=Ur;var mL=i.forwardRef((e,t)=>{const r=Pt(Ur,e.__scopeDialog),n=i.useRef(null),o=sn(t,r.contentRef,n);return i.useEffect(()=>{const a=n.current;if(a)return iL(a)},[]),fe.jsx(Yx,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Or(e.onCloseAutoFocus,a=>{a.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:Or(e.onPointerDownOutside,a=>{const c=a.detail.originalEvent,s=c.button===0&&c.ctrlKey===!0;(c.button===2||s)&&a.preventDefault()}),onFocusOutside:Or(e.onFocusOutside,a=>a.preventDefault())})}),vL=i.forwardRef((e,t)=>{const r=Pt(Ur,e.__scopeDialog),n=i.useRef(!1),o=i.useRef(!1);return fe.jsx(Yx,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(n.current||r.triggerRef.current?.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=a.target;r.triggerRef.current?.contains(c)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),Yx=i.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...c}=e,s=Pt(Ur,r),m=i.useRef(null),f=sn(t,m);return xI(),fe.jsxs(fe.Fragment,{children:[fe.jsx(Nx,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:fe.jsx(Rx,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":pm(s.open),...c,ref:f,onDismiss:()=>s.onOpenChange(!1)})}),fe.jsxs(fe.Fragment,{children:[fe.jsx(bL,{titleId:s.titleId}),fe.jsx(xL,{contentRef:m,descriptionId:s.descriptionId})]})]})}),fm="DialogTitle",hL=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Pt(fm,r);return fe.jsx(Qt.h2,{id:o.titleId,...n,ref:t})});hL.displayName=fm;var Bx="DialogDescription",gL=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Pt(Bx,r);return fe.jsx(Qt.p,{id:o.descriptionId,...n,ref:t})});gL.displayName=Bx;var Kx="DialogClose",yL=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Pt(Kx,r);return fe.jsx(Qt.button,{type:"button",...n,ref:t,onClick:Or(e.onClick,()=>o.onOpenChange(!1))})});yL.displayName=Kx;function pm(e){return e?"open":"closed"}var Xx="DialogTitleWarning",[roe,Hx]=ZA(Xx,{contentName:Ur,titleName:fm,docsSlug:"dialog"}),bL=({titleId:e})=>{const t=Hx(Xx),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
281
-
282
- If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
283
-
284
- For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},wL="DialogDescriptionWarning",xL=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Hx(wL).contentName}}.`;return i.useEffect(()=>{const n=e.current?.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},jl={exports:{}},Qo={};/**
285
- * @license React
286
- * react-jsx-runtime.production.js
287
- *
288
- * Copyright (c) Meta Platforms, Inc. and affiliates.
289
- *
290
- * This source code is licensed under the MIT license found in the
291
- * LICENSE file in the root directory of this source tree.
292
- */var kh;function EL(){if(kh)return Qo;kh=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,o,a){var c=null;if(a!==void 0&&(c=""+a),o.key!==void 0&&(c=""+o.key),"key"in o){a={};for(var s in o)s!=="key"&&(a[s]=o[s])}else a=o;return o=a.ref,{$$typeof:e,type:n,key:c,ref:o!==void 0?o:null,props:a}}return Qo.Fragment=t,Qo.jsx=r,Qo.jsxs=r,Qo}var ks={};/**
293
- * @license React
294
- * react-jsx-runtime.development.js
295
- *
296
- * Copyright (c) Meta Platforms, Inc. and affiliates.
297
- *
298
- * This source code is licensed under the MIT license found in the
299
- * LICENSE file in the root directory of this source tree.
300
- */var Sh;function kL(){return Sh||(Sh=1,process.env.NODE_ENV!=="production"&&(function(){function e(d){if(d==null)return null;if(typeof d=="function")return d.$$typeof===L?null:d.displayName||d.name||null;if(typeof d=="string")return d;switch(d){case u:return"Fragment";case y:return"Profiler";case h:return"StrictMode";case C:return"Suspense";case N:return"SuspenseList";case D:return"Activity"}if(typeof d=="object")switch(typeof d.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),d.$$typeof){case E:return"Portal";case w:return(d.displayName||"Context")+".Provider";case b:return(d._context.displayName||"Context")+".Consumer";case k:var x=d.render;return d=d.displayName,d||(d=x.displayName||x.name||"",d=d!==""?"ForwardRef("+d+")":"ForwardRef"),d;case S:return x=d.displayName||null,x!==null?x:e(d.type)||"Memo";case R:x=d._payload,d=d._init;try{return e(d(x))}catch{}}return null}function t(d){return""+d}function r(d){try{t(d);var x=!1}catch{x=!0}if(x){x=console;var O=x.error,_=typeof Symbol=="function"&&Symbol.toStringTag&&d[Symbol.toStringTag]||d.constructor.name||"Object";return O.call(x,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",_),t(d)}}function n(d){if(d===u)return"<>";if(typeof d=="object"&&d!==null&&d.$$typeof===R)return"<...>";try{var x=e(d);return x?"<"+x+">":"<...>"}catch{return"<...>"}}function o(){var d=I.A;return d===null?null:d.getOwner()}function a(){return Error("react-stack-top-frame")}function c(d){if($.call(d,"key")){var x=Object.getOwnPropertyDescriptor(d,"key").get;if(x&&x.isReactWarning)return!1}return d.key!==void 0}function s(d,x){function O(){M||(M=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",x))}O.isReactWarning=!0,Object.defineProperty(d,"key",{get:O,configurable:!0})}function m(){var d=e(this.type);return K[d]||(K[d]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),d=this.props.ref,d!==void 0?d:null}function f(d,x,O,_,A,j,X,B){return O=j.ref,d={$$typeof:g,type:d,key:x,props:j,_owner:A},(O!==void 0?O:null)!==null?Object.defineProperty(d,"ref",{enumerable:!1,get:m}):Object.defineProperty(d,"ref",{enumerable:!1,value:null}),d._store={},Object.defineProperty(d._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(d,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(d,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:X}),Object.defineProperty(d,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:B}),Object.freeze&&(Object.freeze(d.props),Object.freeze(d)),d}function l(d,x,O,_,A,j,X,B){var T=x.children;if(T!==void 0)if(_)if(U(T)){for(_=0;_<T.length;_++)p(T[_]);Object.freeze&&Object.freeze(T)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else p(T);if($.call(x,"key")){T=e(d);var F=Object.keys(x).filter(function(se){return se!=="key"});_=0<F.length?"{key: someKey, "+F.join(": ..., ")+": ...}":"{key: someKey}",V[T+_]||(F=0<F.length?"{"+F.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
301
- let props = %s;
302
- <%s {...props} />
303
- React keys must be passed directly to JSX without using spread:
304
- let props = %s;
305
- <%s key={someKey} {...props} />`,_,T,F,T),V[T+_]=!0)}if(T=null,O!==void 0&&(r(O),T=""+O),c(x)&&(r(x.key),T=""+x.key),"key"in x){O={};for(var H in x)H!=="key"&&(O[H]=x[H])}else O=x;return T&&s(O,typeof d=="function"?d.displayName||d.name||"Unknown":d),f(d,T,j,A,o(),O,X,B)}function p(d){typeof d=="object"&&d!==null&&d.$$typeof===g&&d._store&&(d._store.validated=1)}var v=P,g=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),b=Symbol.for("react.consumer"),w=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),S=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),D=Symbol.for("react.activity"),L=Symbol.for("react.client.reference"),I=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$=Object.prototype.hasOwnProperty,U=Array.isArray,W=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(d){return d()}};var M,K={},Y=v.react_stack_bottom_frame.bind(v,a)(),z=W(n(a)),V={};ks.Fragment=u,ks.jsx=function(d,x,O,_,A){var j=1e4>I.recentlyCreatedOwnerStacks++;return l(d,x,O,!1,_,A,j?Error("react-stack-top-frame"):Y,j?W(n(d)):z)},ks.jsxs=function(d,x,O,_,A){var j=1e4>I.recentlyCreatedOwnerStacks++;return l(d,x,O,!0,_,A,j?Error("react-stack-top-frame"):Y,j?W(n(d)):z)}})()),ks}var Ch;function SL(){return Ch||(Ch=1,process.env.NODE_ENV==="production"?jl.exports=EL():jl.exports=kL()),jl.exports}var pe=SL();P.createContext({locale:void 0});const CL={id:"",username:"",email:"",created_at:null,updated_at:null,features:[]};P.createContext({user:CL,isLoading:!0,fetchUser:async()=>{},logout:async()=>{},login:async()=>!1});ae.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});ae.cva("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function Nr(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),r===!1||!n.defaultPrevented)return t?.(n)}}function Rh(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function RL(...e){return t=>{let r=!1;const n=e.map(o=>{const a=Rh(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():Rh(e[o],null)}}}}function cn(...e){return i.useCallback(RL(...e),e)}function OL(e,t){const r=i.createContext(t),n=a=>{const{children:c,...s}=a,m=i.useMemo(()=>s,Object.values(s));return pe.jsx(r.Provider,{value:m,children:c})};n.displayName=e+"Provider";function o(a){const c=i.useContext(r);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,o]}function NL(e,t=[]){let r=[];function n(a,c){const s=i.createContext(c),m=r.length;r=[...r,c];const f=p=>{const{scope:v,children:g,...E}=p,u=v?.[e]?.[m]||s,h=i.useMemo(()=>E,Object.values(E));return pe.jsx(u.Provider,{value:h,children:g})};f.displayName=a+"Provider";function l(p,v){const g=v?.[e]?.[m]||s,E=i.useContext(g);if(E)return E;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[f,l]}const o=()=>{const a=r.map(c=>i.createContext(c));return function(c){const s=c?.[e]||a;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:s}}),[c,s])}};return o.scopeName=e,[n,_L(o,...t)]}function _L(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(o){const a=n.reduce((c,{useScope:s,scopeName:m})=>{const f=s(o)[`__scope${m}`];return{...c,...f}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}var rp=globalThis?.document?i.useLayoutEffect:()=>{},TL=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],er=TL.reduce((e,t)=>{const r=q.createSlot(`Primitive.${t}`),n=i.forwardRef((o,a)=>{const{asChild:c,...s}=o,m=c?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),pe.jsx(m,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function DL(e,t){e&&we.flushSync(()=>e.dispatchEvent(t))}function wa(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...r)=>t.current?.(...r),[])}function jL(e,t=globalThis?.document){const r=wa(e);i.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var PL="DismissableLayer",np="dismissableLayer.update",ML="dismissableLayer.pointerDownOutside",AL="dismissableLayer.focusOutside",Oh,Vx=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),qx=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:c,onDismiss:s,...m}=e,f=i.useContext(Vx),[l,p]=i.useState(null),v=l?.ownerDocument??globalThis?.document,[,g]=i.useState({}),E=cn(t,S=>p(S)),u=Array.from(f.layers),[h]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),y=u.indexOf(h),b=l?u.indexOf(l):-1,w=f.layersWithOutsidePointerEventsDisabled.size>0,k=b>=y,C=FL(S=>{const R=S.target,D=[...f.branches].some(L=>L.contains(R));!k||D||(o?.(S),c?.(S),S.defaultPrevented||s?.())},v),N=WL(S=>{const R=S.target;[...f.branches].some(D=>D.contains(R))||(a?.(S),c?.(S),S.defaultPrevented||s?.())},v);return jL(S=>{b===f.layers.size-1&&(n?.(S),!S.defaultPrevented&&s&&(S.preventDefault(),s()))},v),i.useEffect(()=>{if(l)return r&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(Oh=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(l)),f.layers.add(l),Nh(),()=>{r&&f.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=Oh)}},[l,v,r,f]),i.useEffect(()=>()=>{l&&(f.layers.delete(l),f.layersWithOutsidePointerEventsDisabled.delete(l),Nh())},[l,f]),i.useEffect(()=>{const S=()=>g({});return document.addEventListener(np,S),()=>document.removeEventListener(np,S)},[]),pe.jsx(er.div,{...m,ref:E,style:{pointerEvents:w?k?"auto":"none":void 0,...e.style},onFocusCapture:Nr(e.onFocusCapture,N.onFocusCapture),onBlurCapture:Nr(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:Nr(e.onPointerDownCapture,C.onPointerDownCapture)})});qx.displayName=PL;var IL="DismissableLayerBranch",LL=i.forwardRef((e,t)=>{const r=i.useContext(Vx),n=i.useRef(null),o=cn(t,n);return i.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),pe.jsx(er.div,{...e,ref:o})});LL.displayName=IL;function FL(e,t=globalThis?.document){const r=wa(e),n=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let m=function(){Zx(ML,r,f,{discrete:!0})};const f={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=m,t.addEventListener("click",o.current,{once:!0})):m()}else t.removeEventListener("click",o.current);n.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function WL(e,t=globalThis?.document){const r=wa(e),n=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!n.current&&Zx(AL,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function Nh(){const e=new CustomEvent(np);document.dispatchEvent(e)}function Zx(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?DL(o,a):o.dispatchEvent(a)}var Pl="focusScope.autoFocusOnMount",Ml="focusScope.autoFocusOnUnmount",_h={bubbles:!1,cancelable:!0},$L="FocusScope",Gx=i.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...c}=e,[s,m]=i.useState(null),f=wa(o),l=wa(a),p=i.useRef(null),v=cn(t,u=>m(u)),g=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(n){let u=function(w){if(g.paused||!s)return;const k=w.target;s.contains(k)?p.current=k:lr(p.current,{select:!0})},h=function(w){if(g.paused||!s)return;const k=w.relatedTarget;k!==null&&(s.contains(k)||lr(p.current,{select:!0}))},y=function(w){if(document.activeElement===document.body)for(const k of w)k.removedNodes.length>0&&lr(s)};document.addEventListener("focusin",u),document.addEventListener("focusout",h);const b=new MutationObserver(y);return s&&b.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",u),document.removeEventListener("focusout",h),b.disconnect()}}},[n,s,g.paused]),i.useEffect(()=>{if(s){Dh.add(g);const u=document.activeElement;if(!s.contains(u)){const h=new CustomEvent(Pl,_h);s.addEventListener(Pl,f),s.dispatchEvent(h),h.defaultPrevented||(zL(XL(Jx(s)),{select:!0}),document.activeElement===u&&lr(s))}return()=>{s.removeEventListener(Pl,f),setTimeout(()=>{const h=new CustomEvent(Ml,_h);s.addEventListener(Ml,l),s.dispatchEvent(h),h.defaultPrevented||lr(u??document.body,{select:!0}),s.removeEventListener(Ml,l),Dh.remove(g)},0)}}},[s,f,l,g]);const E=i.useCallback(u=>{if(!r&&!n||g.paused)return;const h=u.key==="Tab"&&!u.altKey&&!u.ctrlKey&&!u.metaKey,y=document.activeElement;if(h&&y){const b=u.currentTarget,[w,k]=UL(b);w&&k?!u.shiftKey&&y===k?(u.preventDefault(),r&&lr(w,{select:!0})):u.shiftKey&&y===w&&(u.preventDefault(),r&&lr(k,{select:!0})):y===b&&u.preventDefault()}},[r,n,g.paused]);return pe.jsx(er.div,{tabIndex:-1,...c,ref:v,onKeyDown:E})});Gx.displayName=$L;function zL(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(lr(n,{select:t}),document.activeElement!==r)return}function UL(e){const t=Jx(e),r=Th(t,e),n=Th(t.reverse(),e);return[r,n]}function Jx(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Th(e,t){for(const r of e)if(!YL(r,{upTo:t}))return r}function YL(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function BL(e){return e instanceof HTMLInputElement&&"select"in e}function lr(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&BL(e)&&t&&e.select()}}var Dh=KL();function KL(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=jh(e,t),e.unshift(t)},remove(t){e=jh(e,t),e[0]?.resume()}}}function jh(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function XL(e){return e.filter(t=>t.tagName!=="A")}var HL="Portal",VL=i.forwardRef((e,t)=>{const{container:r,...n}=e,[o,a]=i.useState(!1);rp(()=>a(!0),[]);const c=r||o&&globalThis?.document?.body;return c?be.createPortal(pe.jsx(er.div,{...n,ref:t}),c):null});VL.displayName=HL;function qL(e,t){return i.useReducer((r,n)=>t[r][n]??r,e)}var mm=e=>{const{present:t,children:r}=e,n=ZL(t),o=typeof r=="function"?r({present:n.isPresent}):i.Children.only(r),a=cn(n.ref,GL(o));return typeof r=="function"||n.isPresent?i.cloneElement(o,{ref:a}):null};mm.displayName="Presence";function ZL(e){const[t,r]=i.useState(),n=i.useRef(null),o=i.useRef(e),a=i.useRef("none"),c=e?"mounted":"unmounted",[s,m]=qL(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const f=Ss(n.current);a.current=s==="mounted"?f:"none"},[s]),rp(()=>{const f=n.current,l=o.current;if(l!==e){const p=a.current,v=Ss(f);e?m("MOUNT"):v==="none"||f?.display==="none"?m("UNMOUNT"):m(l&&p!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,m]),rp(()=>{if(t){let f;const l=t.ownerDocument.defaultView??window,p=g=>{const E=Ss(n.current).includes(CSS.escape(g.animationName));if(g.target===t&&E&&(m("ANIMATION_END"),!o.current)){const u=t.style.animationFillMode;t.style.animationFillMode="forwards",f=l.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=u)})}},v=g=>{g.target===t&&(a.current=Ss(n.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{l.clearTimeout(f),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else m("ANIMATION_END")},[t,m]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:i.useCallback(f=>{n.current=f?getComputedStyle(f):null,r(f)},[])}}function Ss(e){return e?.animationName||"none"}function GL(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Al=0;function JL(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Ph()),document.body.insertAdjacentElement("beforeend",e[1]??Ph()),Al++,()=>{Al===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Al--}},[])}function Ph(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var nt=function(){return nt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},nt.apply(this,arguments)};function Qx(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function QL(e,t,r){for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var oc="right-scroll-bar-position",ac="width-before-scroll-bar",eF="with-scroll-bars-hidden",tF="--removed-body-scroll-bar-size";function Il(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function rF(e,t){var r=P.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var nF=typeof window<"u"?i.useLayoutEffect:i.useEffect,Mh=new WeakMap;function oF(e,t){var r=rF(null,function(n){return e.forEach(function(o){return Il(o,n)})});return nF(function(){var n=Mh.get(r);if(n){var o=new Set(n),a=new Set(e),c=r.current;o.forEach(function(s){a.has(s)||Il(s,null)}),a.forEach(function(s){o.has(s)||Il(s,c)})}Mh.set(r,e)},[e]),r}function aF(e){return e}function sF(e,t){t===void 0&&(t=aF);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var c=t(a,n);return r.push(c),function(){r=r.filter(function(s){return s!==c})}},assignSyncMedium:function(a){for(n=!0;r.length;){var c=r;r=[],c.forEach(a)}r={push:function(s){return a(s)},filter:function(){return r}}},assignMedium:function(a){n=!0;var c=[];if(r.length){var s=r;r=[],s.forEach(a),c=r}var m=function(){var l=c;c=[],l.forEach(a)},f=function(){return Promise.resolve().then(m)};f(),r={push:function(l){c.push(l),f()},filter:function(l){return c=c.filter(l),r}}}};return o}function iF(e){e===void 0&&(e={});var t=sF(null);return t.options=nt({async:!0,ssr:!1},e),t}var eE=function(e){var t=e.sideCar,r=Qx(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return i.createElement(n,nt({},r))};eE.isSideCarExport=!0;function cF(e,t){return e.useMedium(t),eE}var tE=iF(),Ll=function(){},nu=i.forwardRef(function(e,t){var r=i.useRef(null),n=i.useState({onScrollCapture:Ll,onWheelCapture:Ll,onTouchMoveCapture:Ll}),o=n[0],a=n[1],c=e.forwardProps,s=e.children,m=e.className,f=e.removeScrollBar,l=e.enabled,p=e.shards,v=e.sideCar,g=e.noRelative,E=e.noIsolation,u=e.inert,h=e.allowPinchZoom,y=e.as,b=y===void 0?"div":y,w=e.gapMode,k=Qx(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=v,N=oF([r,t]),S=nt(nt({},k),o);return i.createElement(i.Fragment,null,l&&i.createElement(C,{sideCar:tE,removeScrollBar:f,shards:p,noRelative:g,noIsolation:E,inert:u,setCallbacks:a,allowPinchZoom:!!h,lockRef:r,gapMode:w}),c?i.cloneElement(i.Children.only(s),nt(nt({},S),{ref:N})):i.createElement(b,nt({},S,{className:m,ref:N}),s))});nu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};nu.classNames={fullWidth:ac,zeroRight:oc};var uF=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function lF(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=uF();return t&&e.setAttribute("nonce",t),e}function dF(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function fF(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var pF=function(){var e=0,t=null;return{add:function(r){e==0&&(t=lF())&&(dF(t,r),fF(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},mF=function(){var e=pF();return function(t,r){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},rE=function(){var e=mF(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},vF={left:0,top:0,right:0,gap:0},Fl=function(e){return parseInt(e||"",10)||0},hF=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Fl(r),Fl(n),Fl(o)]},gF=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return vF;var t=hF(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},yF=rE(),bo="data-scroll-locked",bF=function(e,t,r,n){var o=e.left,a=e.top,c=e.right,s=e.gap;return r===void 0&&(r="margin"),`
306
- .`.concat(eF,` {
307
- overflow: hidden `).concat(n,`;
308
- padding-right: `).concat(s,"px ").concat(n,`;
309
- }
310
- body[`).concat(bo,`] {
311
- overflow: hidden `).concat(n,`;
312
- overscroll-behavior: contain;
313
- `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
314
- padding-left: `.concat(o,`px;
315
- padding-top: `).concat(a,`px;
316
- padding-right: `).concat(c,`px;
317
- margin-left:0;
318
- margin-top:0;
319
- margin-right: `).concat(s,"px ").concat(n,`;
320
- `),r==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),`
321
- }
322
-
323
- .`).concat(oc,` {
324
- right: `).concat(s,"px ").concat(n,`;
325
- }
326
-
327
- .`).concat(ac,` {
328
- margin-right: `).concat(s,"px ").concat(n,`;
329
- }
330
-
331
- .`).concat(oc," .").concat(oc,` {
332
- right: 0 `).concat(n,`;
333
- }
334
-
335
- .`).concat(ac," .").concat(ac,` {
336
- margin-right: 0 `).concat(n,`;
337
- }
338
-
339
- body[`).concat(bo,`] {
340
- `).concat(tF,": ").concat(s,`px;
341
- }
342
- `)},Ah=function(){var e=parseInt(document.body.getAttribute(bo)||"0",10);return isFinite(e)?e:0},wF=function(){i.useEffect(function(){return document.body.setAttribute(bo,(Ah()+1).toString()),function(){var e=Ah()-1;e<=0?document.body.removeAttribute(bo):document.body.setAttribute(bo,e.toString())}},[])},xF=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;wF();var a=i.useMemo(function(){return gF(o)},[o]);return i.createElement(yF,{styles:bF(a,!t,o,r?"":"!important")})},op=!1;if(typeof window<"u")try{var Cs=Object.defineProperty({},"passive",{get:function(){return op=!0,!0}});window.addEventListener("test",Cs,Cs),window.removeEventListener("test",Cs,Cs)}catch{op=!1}var On=op?{passive:!1}:!1,EF=function(e){return e.tagName==="TEXTAREA"},nE=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!EF(e)&&r[t]==="visible")},kF=function(e){return nE(e,"overflowY")},SF=function(e){return nE(e,"overflowX")},Ih=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=oE(e,n);if(o){var a=aE(e,n),c=a[1],s=a[2];if(c>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},CF=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},RF=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},oE=function(e,t){return e==="v"?kF(t):SF(t)},aE=function(e,t){return e==="v"?CF(t):RF(t)},OF=function(e,t){return e==="h"&&t==="rtl"?-1:1},NF=function(e,t,r,n,o){var a=OF(e,window.getComputedStyle(t).direction),c=a*n,s=r.target,m=t.contains(s),f=!1,l=c>0,p=0,v=0;do{if(!s)break;var g=aE(e,s),E=g[0],u=g[1],h=g[2],y=u-h-a*E;(E||y)&&oE(e,s)&&(p+=y,v+=E);var b=s.parentNode;s=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!m&&s!==document.body||m&&(t.contains(s)||t===s));return(l&&Math.abs(p)<1||!l&&Math.abs(v)<1)&&(f=!0),f},Rs=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Lh=function(e){return[e.deltaX,e.deltaY]},Fh=function(e){return e&&"current"in e?e.current:e},_F=function(e,t){return e[0]===t[0]&&e[1]===t[1]},TF=function(e){return`
343
- .block-interactivity-`.concat(e,` {pointer-events: none;}
344
- .allow-interactivity-`).concat(e,` {pointer-events: all;}
345
- `)},DF=0,Nn=[];function jF(e){var t=i.useRef([]),r=i.useRef([0,0]),n=i.useRef(),o=i.useState(DF++)[0],a=i.useState(rE)[0],c=i.useRef(e);i.useEffect(function(){c.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var u=QL([e.lockRef.current],(e.shards||[]).map(Fh)).filter(Boolean);return u.forEach(function(h){return h.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),u.forEach(function(h){return h.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=i.useCallback(function(u,h){if("touches"in u&&u.touches.length===2||u.type==="wheel"&&u.ctrlKey)return!c.current.allowPinchZoom;var y=Rs(u),b=r.current,w="deltaX"in u?u.deltaX:b[0]-y[0],k="deltaY"in u?u.deltaY:b[1]-y[1],C,N=u.target,S=Math.abs(w)>Math.abs(k)?"h":"v";if("touches"in u&&S==="h"&&N.type==="range")return!1;var R=Ih(S,N);if(!R)return!0;if(R?C=S:(C=S==="v"?"h":"v",R=Ih(S,N)),!R)return!1;if(!n.current&&"changedTouches"in u&&(w||k)&&(n.current=C),!C)return!0;var D=n.current||C;return NF(D,h,u,D==="h"?w:k)},[]),m=i.useCallback(function(u){var h=u;if(!(!Nn.length||Nn[Nn.length-1]!==a)){var y="deltaY"in h?Lh(h):Rs(h),b=t.current.filter(function(C){return C.name===h.type&&(C.target===h.target||h.target===C.shadowParent)&&_F(C.delta,y)})[0];if(b&&b.should){h.cancelable&&h.preventDefault();return}if(!b){var w=(c.current.shards||[]).map(Fh).filter(Boolean).filter(function(C){return C.contains(h.target)}),k=w.length>0?s(h,w[0]):!c.current.noIsolation;k&&h.cancelable&&h.preventDefault()}}},[]),f=i.useCallback(function(u,h,y,b){var w={name:u,delta:h,target:y,should:b,shadowParent:PF(y)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(k){return k!==w})},1)},[]),l=i.useCallback(function(u){r.current=Rs(u),n.current=void 0},[]),p=i.useCallback(function(u){f(u.type,Lh(u),u.target,s(u,e.lockRef.current))},[]),v=i.useCallback(function(u){f(u.type,Rs(u),u.target,s(u,e.lockRef.current))},[]);i.useEffect(function(){return Nn.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:v}),document.addEventListener("wheel",m,On),document.addEventListener("touchmove",m,On),document.addEventListener("touchstart",l,On),function(){Nn=Nn.filter(function(u){return u!==a}),document.removeEventListener("wheel",m,On),document.removeEventListener("touchmove",m,On),document.removeEventListener("touchstart",l,On)}},[]);var g=e.removeScrollBar,E=e.inert;return i.createElement(i.Fragment,null,E?i.createElement(a,{styles:TF(o)}):null,g?i.createElement(xF,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function PF(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const MF=cF(tE,jF);var sE=i.forwardRef(function(e,t){return i.createElement(nu,nt({},e,{ref:t,sideCar:MF}))});sE.classNames=nu.classNames;var AF=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},_n=new WeakMap,Os=new WeakMap,Ns={},Wl=0,iE=function(e){return e&&(e.host||iE(e.parentNode))},IF=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=iE(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},LF=function(e,t,r,n){var o=IF(t,Array.isArray(e)?e:[e]);Ns[r]||(Ns[r]=new WeakMap);var a=Ns[r],c=[],s=new Set,m=new Set(o),f=function(p){!p||s.has(p)||(s.add(p),f(p.parentNode))};o.forEach(f);var l=function(p){!p||m.has(p)||Array.prototype.forEach.call(p.children,function(v){if(s.has(v))l(v);else try{var g=v.getAttribute(n),E=g!==null&&g!=="false",u=(_n.get(v)||0)+1,h=(a.get(v)||0)+1;_n.set(v,u),a.set(v,h),c.push(v),u===1&&E&&Os.set(v,!0),h===1&&v.setAttribute(r,"true"),E||v.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",v,y)}})};return l(t),s.clear(),Wl++,function(){c.forEach(function(p){var v=_n.get(p)-1,g=a.get(p)-1;_n.set(p,v),a.set(p,g),v||(Os.has(p)||p.removeAttribute(n),Os.delete(p)),g||p.removeAttribute(r)}),Wl--,Wl||(_n=new WeakMap,_n=new WeakMap,Os=new WeakMap,Ns={})}},FF=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=AF(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),LF(n,o,r,"aria-hidden")):function(){return null}},cE="Dialog",[uE]=NL(cE),[noe,Mt]=uE(cE),lE="DialogTrigger",WF=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Mt(lE,r),a=cn(t,o.triggerRef);return pe.jsx(er.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":hm(o.open),...n,ref:a,onClick:Nr(e.onClick,o.onOpenToggle)})});WF.displayName=lE;var $F="DialogPortal",[ooe,dE]=uE($F,{forceMount:void 0}),Ic="DialogOverlay",zF=i.forwardRef((e,t)=>{const r=dE(Ic,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Mt(Ic,e.__scopeDialog);return a.modal?pe.jsx(mm,{present:n||a.open,children:pe.jsx(YF,{...o,ref:t})}):null});zF.displayName=Ic;var UF=q.createSlot("DialogOverlay.RemoveScroll"),YF=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Mt(Ic,r);return pe.jsx(sE,{as:UF,allowPinchZoom:!0,shards:[o.contentRef],children:pe.jsx(er.div,{"data-state":hm(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),Yr="DialogContent",BF=i.forwardRef((e,t)=>{const r=dE(Yr,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Mt(Yr,e.__scopeDialog);return pe.jsx(mm,{present:n||a.open,children:a.modal?pe.jsx(KF,{...o,ref:t}):pe.jsx(XF,{...o,ref:t})})});BF.displayName=Yr;var KF=i.forwardRef((e,t)=>{const r=Mt(Yr,e.__scopeDialog),n=i.useRef(null),o=cn(t,r.contentRef,n);return i.useEffect(()=>{const a=n.current;if(a)return FF(a)},[]),pe.jsx(fE,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Nr(e.onCloseAutoFocus,a=>{a.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:Nr(e.onPointerDownOutside,a=>{const c=a.detail.originalEvent,s=c.button===0&&c.ctrlKey===!0;(c.button===2||s)&&a.preventDefault()}),onFocusOutside:Nr(e.onFocusOutside,a=>a.preventDefault())})}),XF=i.forwardRef((e,t)=>{const r=Mt(Yr,e.__scopeDialog),n=i.useRef(!1),o=i.useRef(!1);return pe.jsx(fE,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(n.current||r.triggerRef.current?.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=a.target;r.triggerRef.current?.contains(c)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),fE=i.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...c}=e,s=Mt(Yr,r),m=i.useRef(null),f=cn(t,m);return JL(),pe.jsxs(pe.Fragment,{children:[pe.jsx(Gx,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:pe.jsx(qx,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":hm(s.open),...c,ref:f,onDismiss:()=>s.onOpenChange(!1)})}),pe.jsxs(pe.Fragment,{children:[pe.jsx(ZF,{titleId:s.titleId}),pe.jsx(JF,{contentRef:m,descriptionId:s.descriptionId})]})]})}),vm="DialogTitle",HF=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Mt(vm,r);return pe.jsx(er.h2,{id:o.titleId,...n,ref:t})});HF.displayName=vm;var pE="DialogDescription",VF=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Mt(pE,r);return pe.jsx(er.p,{id:o.descriptionId,...n,ref:t})});VF.displayName=pE;var mE="DialogClose",qF=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Mt(mE,r);return pe.jsx(er.button,{type:"button",...n,ref:t,onClick:Nr(e.onClick,()=>o.onOpenChange(!1))})});qF.displayName=mE;function hm(e){return e?"open":"closed"}var vE="DialogTitleWarning",[aoe,hE]=OL(vE,{contentName:Yr,titleName:vm,docsSlug:"dialog"}),ZF=({titleId:e})=>{const t=hE(vE),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
346
-
347
- If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
348
-
349
- For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},GF="DialogDescriptionWarning",JF=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${hE(GF).contentName}}.`;return i.useEffect(()=>{const n=e.current?.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},$l={exports:{}},ea={};/**
350
- * @license React
351
- * react-jsx-runtime.production.js
352
- *
353
- * Copyright (c) Meta Platforms, Inc. and affiliates.
354
- *
355
- * This source code is licensed under the MIT license found in the
356
- * LICENSE file in the root directory of this source tree.
357
- */var Wh;function QF(){if(Wh)return ea;Wh=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,o,a){var c=null;if(a!==void 0&&(c=""+a),o.key!==void 0&&(c=""+o.key),"key"in o){a={};for(var s in o)s!=="key"&&(a[s]=o[s])}else a=o;return o=a.ref,{$$typeof:e,type:n,key:c,ref:o!==void 0?o:null,props:a}}return ea.Fragment=t,ea.jsx=r,ea.jsxs=r,ea}var _s={};/**
358
- * @license React
359
- * react-jsx-runtime.development.js
360
- *
361
- * Copyright (c) Meta Platforms, Inc. and affiliates.
362
- *
363
- * This source code is licensed under the MIT license found in the
364
- * LICENSE file in the root directory of this source tree.
365
- */var $h;function e2(){return $h||($h=1,process.env.NODE_ENV!=="production"&&(function(){function e(d){if(d==null)return null;if(typeof d=="function")return d.$$typeof===L?null:d.displayName||d.name||null;if(typeof d=="string")return d;switch(d){case u:return"Fragment";case y:return"Profiler";case h:return"StrictMode";case C:return"Suspense";case N:return"SuspenseList";case D:return"Activity"}if(typeof d=="object")switch(typeof d.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),d.$$typeof){case E:return"Portal";case w:return(d.displayName||"Context")+".Provider";case b:return(d._context.displayName||"Context")+".Consumer";case k:var x=d.render;return d=d.displayName,d||(d=x.displayName||x.name||"",d=d!==""?"ForwardRef("+d+")":"ForwardRef"),d;case S:return x=d.displayName||null,x!==null?x:e(d.type)||"Memo";case R:x=d._payload,d=d._init;try{return e(d(x))}catch{}}return null}function t(d){return""+d}function r(d){try{t(d);var x=!1}catch{x=!0}if(x){x=console;var O=x.error,_=typeof Symbol=="function"&&Symbol.toStringTag&&d[Symbol.toStringTag]||d.constructor.name||"Object";return O.call(x,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",_),t(d)}}function n(d){if(d===u)return"<>";if(typeof d=="object"&&d!==null&&d.$$typeof===R)return"<...>";try{var x=e(d);return x?"<"+x+">":"<...>"}catch{return"<...>"}}function o(){var d=I.A;return d===null?null:d.getOwner()}function a(){return Error("react-stack-top-frame")}function c(d){if($.call(d,"key")){var x=Object.getOwnPropertyDescriptor(d,"key").get;if(x&&x.isReactWarning)return!1}return d.key!==void 0}function s(d,x){function O(){M||(M=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",x))}O.isReactWarning=!0,Object.defineProperty(d,"key",{get:O,configurable:!0})}function m(){var d=e(this.type);return K[d]||(K[d]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),d=this.props.ref,d!==void 0?d:null}function f(d,x,O,_,A,j,X,B){return O=j.ref,d={$$typeof:g,type:d,key:x,props:j,_owner:A},(O!==void 0?O:null)!==null?Object.defineProperty(d,"ref",{enumerable:!1,get:m}):Object.defineProperty(d,"ref",{enumerable:!1,value:null}),d._store={},Object.defineProperty(d._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(d,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(d,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:X}),Object.defineProperty(d,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:B}),Object.freeze&&(Object.freeze(d.props),Object.freeze(d)),d}function l(d,x,O,_,A,j,X,B){var T=x.children;if(T!==void 0)if(_)if(U(T)){for(_=0;_<T.length;_++)p(T[_]);Object.freeze&&Object.freeze(T)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else p(T);if($.call(x,"key")){T=e(d);var F=Object.keys(x).filter(function(se){return se!=="key"});_=0<F.length?"{key: someKey, "+F.join(": ..., ")+": ...}":"{key: someKey}",V[T+_]||(F=0<F.length?"{"+F.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
366
- let props = %s;
367
- <%s {...props} />
368
- React keys must be passed directly to JSX without using spread:
369
- let props = %s;
370
- <%s key={someKey} {...props} />`,_,T,F,T),V[T+_]=!0)}if(T=null,O!==void 0&&(r(O),T=""+O),c(x)&&(r(x.key),T=""+x.key),"key"in x){O={};for(var H in x)H!=="key"&&(O[H]=x[H])}else O=x;return T&&s(O,typeof d=="function"?d.displayName||d.name||"Unknown":d),f(d,T,j,A,o(),O,X,B)}function p(d){typeof d=="object"&&d!==null&&d.$$typeof===g&&d._store&&(d._store.validated=1)}var v=P,g=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),b=Symbol.for("react.consumer"),w=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),S=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),D=Symbol.for("react.activity"),L=Symbol.for("react.client.reference"),I=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$=Object.prototype.hasOwnProperty,U=Array.isArray,W=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(d){return d()}};var M,K={},Y=v.react_stack_bottom_frame.bind(v,a)(),z=W(n(a)),V={};_s.Fragment=u,_s.jsx=function(d,x,O,_,A){var j=1e4>I.recentlyCreatedOwnerStacks++;return l(d,x,O,!1,_,A,j?Error("react-stack-top-frame"):Y,j?W(n(d)):z)},_s.jsxs=function(d,x,O,_,A){var j=1e4>I.recentlyCreatedOwnerStacks++;return l(d,x,O,!0,_,A,j?Error("react-stack-top-frame"):Y,j?W(n(d)):z)}})()),_s}var zh;function t2(){return zh||(zh=1,process.env.NODE_ENV==="production"?$l.exports=QF():$l.exports=e2()),$l.exports}var me=t2();P.createContext({locale:void 0});ae.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});ae.cva("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function _r(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),r===!1||!n.defaultPrevented)return t?.(n)}}function Uh(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function r2(...e){return t=>{let r=!1;const n=e.map(o=>{const a=Uh(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():Uh(e[o],null)}}}}function un(...e){return i.useCallback(r2(...e),e)}function n2(e,t){const r=i.createContext(t),n=a=>{const{children:c,...s}=a,m=i.useMemo(()=>s,Object.values(s));return me.jsx(r.Provider,{value:m,children:c})};n.displayName=e+"Provider";function o(a){const c=i.useContext(r);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,o]}function o2(e,t=[]){let r=[];function n(a,c){const s=i.createContext(c),m=r.length;r=[...r,c];const f=p=>{const{scope:v,children:g,...E}=p,u=v?.[e]?.[m]||s,h=i.useMemo(()=>E,Object.values(E));return me.jsx(u.Provider,{value:h,children:g})};f.displayName=a+"Provider";function l(p,v){const g=v?.[e]?.[m]||s,E=i.useContext(g);if(E)return E;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[f,l]}const o=()=>{const a=r.map(c=>i.createContext(c));return function(c){const s=c?.[e]||a;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:s}}),[c,s])}};return o.scopeName=e,[n,a2(o,...t)]}function a2(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(o){const a=n.reduce((c,{useScope:s,scopeName:m})=>{const f=s(o)[`__scope${m}`];return{...c,...f}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}var ap=globalThis?.document?i.useLayoutEffect:()=>{},s2=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],tr=s2.reduce((e,t)=>{const r=q.createSlot(`Primitive.${t}`),n=i.forwardRef((o,a)=>{const{asChild:c,...s}=o,m=c?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),me.jsx(m,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function i2(e,t){e&&we.flushSync(()=>e.dispatchEvent(t))}function xa(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...r)=>t.current?.(...r),[])}function c2(e,t=globalThis?.document){const r=xa(e);i.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var u2="DismissableLayer",sp="dismissableLayer.update",l2="dismissableLayer.pointerDownOutside",d2="dismissableLayer.focusOutside",Yh,gE=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),yE=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:c,onDismiss:s,...m}=e,f=i.useContext(gE),[l,p]=i.useState(null),v=l?.ownerDocument??globalThis?.document,[,g]=i.useState({}),E=un(t,S=>p(S)),u=Array.from(f.layers),[h]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),y=u.indexOf(h),b=l?u.indexOf(l):-1,w=f.layersWithOutsidePointerEventsDisabled.size>0,k=b>=y,C=m2(S=>{const R=S.target,D=[...f.branches].some(L=>L.contains(R));!k||D||(o?.(S),c?.(S),S.defaultPrevented||s?.())},v),N=v2(S=>{const R=S.target;[...f.branches].some(D=>D.contains(R))||(a?.(S),c?.(S),S.defaultPrevented||s?.())},v);return c2(S=>{b===f.layers.size-1&&(n?.(S),!S.defaultPrevented&&s&&(S.preventDefault(),s()))},v),i.useEffect(()=>{if(l)return r&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(Yh=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(l)),f.layers.add(l),Bh(),()=>{r&&f.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=Yh)}},[l,v,r,f]),i.useEffect(()=>()=>{l&&(f.layers.delete(l),f.layersWithOutsidePointerEventsDisabled.delete(l),Bh())},[l,f]),i.useEffect(()=>{const S=()=>g({});return document.addEventListener(sp,S),()=>document.removeEventListener(sp,S)},[]),me.jsx(tr.div,{...m,ref:E,style:{pointerEvents:w?k?"auto":"none":void 0,...e.style},onFocusCapture:_r(e.onFocusCapture,N.onFocusCapture),onBlurCapture:_r(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:_r(e.onPointerDownCapture,C.onPointerDownCapture)})});yE.displayName=u2;var f2="DismissableLayerBranch",p2=i.forwardRef((e,t)=>{const r=i.useContext(gE),n=i.useRef(null),o=un(t,n);return i.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),me.jsx(tr.div,{...e,ref:o})});p2.displayName=f2;function m2(e,t=globalThis?.document){const r=xa(e),n=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let m=function(){bE(l2,r,f,{discrete:!0})};const f={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=m,t.addEventListener("click",o.current,{once:!0})):m()}else t.removeEventListener("click",o.current);n.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function v2(e,t=globalThis?.document){const r=xa(e),n=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!n.current&&bE(d2,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function Bh(){const e=new CustomEvent(sp);document.dispatchEvent(e)}function bE(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?i2(o,a):o.dispatchEvent(a)}var zl="focusScope.autoFocusOnMount",Ul="focusScope.autoFocusOnUnmount",Kh={bubbles:!1,cancelable:!0},h2="FocusScope",wE=i.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...c}=e,[s,m]=i.useState(null),f=xa(o),l=xa(a),p=i.useRef(null),v=un(t,u=>m(u)),g=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(n){let u=function(w){if(g.paused||!s)return;const k=w.target;s.contains(k)?p.current=k:dr(p.current,{select:!0})},h=function(w){if(g.paused||!s)return;const k=w.relatedTarget;k!==null&&(s.contains(k)||dr(p.current,{select:!0}))},y=function(w){if(document.activeElement===document.body)for(const k of w)k.removedNodes.length>0&&dr(s)};document.addEventListener("focusin",u),document.addEventListener("focusout",h);const b=new MutationObserver(y);return s&&b.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",u),document.removeEventListener("focusout",h),b.disconnect()}}},[n,s,g.paused]),i.useEffect(()=>{if(s){Hh.add(g);const u=document.activeElement;if(!s.contains(u)){const h=new CustomEvent(zl,Kh);s.addEventListener(zl,f),s.dispatchEvent(h),h.defaultPrevented||(g2(E2(xE(s)),{select:!0}),document.activeElement===u&&dr(s))}return()=>{s.removeEventListener(zl,f),setTimeout(()=>{const h=new CustomEvent(Ul,Kh);s.addEventListener(Ul,l),s.dispatchEvent(h),h.defaultPrevented||dr(u??document.body,{select:!0}),s.removeEventListener(Ul,l),Hh.remove(g)},0)}}},[s,f,l,g]);const E=i.useCallback(u=>{if(!r&&!n||g.paused)return;const h=u.key==="Tab"&&!u.altKey&&!u.ctrlKey&&!u.metaKey,y=document.activeElement;if(h&&y){const b=u.currentTarget,[w,k]=y2(b);w&&k?!u.shiftKey&&y===k?(u.preventDefault(),r&&dr(w,{select:!0})):u.shiftKey&&y===w&&(u.preventDefault(),r&&dr(k,{select:!0})):y===b&&u.preventDefault()}},[r,n,g.paused]);return me.jsx(tr.div,{tabIndex:-1,...c,ref:v,onKeyDown:E})});wE.displayName=h2;function g2(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(dr(n,{select:t}),document.activeElement!==r)return}function y2(e){const t=xE(e),r=Xh(t,e),n=Xh(t.reverse(),e);return[r,n]}function xE(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Xh(e,t){for(const r of e)if(!b2(r,{upTo:t}))return r}function b2(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function w2(e){return e instanceof HTMLInputElement&&"select"in e}function dr(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&w2(e)&&t&&e.select()}}var Hh=x2();function x2(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=Vh(e,t),e.unshift(t)},remove(t){e=Vh(e,t),e[0]?.resume()}}}function Vh(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function E2(e){return e.filter(t=>t.tagName!=="A")}var k2="Portal",S2=i.forwardRef((e,t)=>{const{container:r,...n}=e,[o,a]=i.useState(!1);ap(()=>a(!0),[]);const c=r||o&&globalThis?.document?.body;return c?be.createPortal(me.jsx(tr.div,{...n,ref:t}),c):null});S2.displayName=k2;function C2(e,t){return i.useReducer((r,n)=>t[r][n]??r,e)}var gm=e=>{const{present:t,children:r}=e,n=R2(t),o=typeof r=="function"?r({present:n.isPresent}):i.Children.only(r),a=un(n.ref,O2(o));return typeof r=="function"||n.isPresent?i.cloneElement(o,{ref:a}):null};gm.displayName="Presence";function R2(e){const[t,r]=i.useState(),n=i.useRef(null),o=i.useRef(e),a=i.useRef("none"),c=e?"mounted":"unmounted",[s,m]=C2(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const f=Ts(n.current);a.current=s==="mounted"?f:"none"},[s]),ap(()=>{const f=n.current,l=o.current;if(l!==e){const p=a.current,v=Ts(f);e?m("MOUNT"):v==="none"||f?.display==="none"?m("UNMOUNT"):m(l&&p!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,m]),ap(()=>{if(t){let f;const l=t.ownerDocument.defaultView??window,p=g=>{const E=Ts(n.current).includes(CSS.escape(g.animationName));if(g.target===t&&E&&(m("ANIMATION_END"),!o.current)){const u=t.style.animationFillMode;t.style.animationFillMode="forwards",f=l.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=u)})}},v=g=>{g.target===t&&(a.current=Ts(n.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{l.clearTimeout(f),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else m("ANIMATION_END")},[t,m]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:i.useCallback(f=>{n.current=f?getComputedStyle(f):null,r(f)},[])}}function Ts(e){return e?.animationName||"none"}function O2(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Yl=0;function N2(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??qh()),document.body.insertAdjacentElement("beforeend",e[1]??qh()),Yl++,()=>{Yl===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Yl--}},[])}function qh(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var ot=function(){return ot=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},ot.apply(this,arguments)};function EE(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function _2(e,t,r){for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var sc="right-scroll-bar-position",ic="width-before-scroll-bar",T2="with-scroll-bars-hidden",D2="--removed-body-scroll-bar-size";function Bl(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function j2(e,t){var r=P.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var P2=typeof window<"u"?i.useLayoutEffect:i.useEffect,Zh=new WeakMap;function M2(e,t){var r=j2(null,function(n){return e.forEach(function(o){return Bl(o,n)})});return P2(function(){var n=Zh.get(r);if(n){var o=new Set(n),a=new Set(e),c=r.current;o.forEach(function(s){a.has(s)||Bl(s,null)}),a.forEach(function(s){o.has(s)||Bl(s,c)})}Zh.set(r,e)},[e]),r}function A2(e){return e}function I2(e,t){t===void 0&&(t=A2);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var c=t(a,n);return r.push(c),function(){r=r.filter(function(s){return s!==c})}},assignSyncMedium:function(a){for(n=!0;r.length;){var c=r;r=[],c.forEach(a)}r={push:function(s){return a(s)},filter:function(){return r}}},assignMedium:function(a){n=!0;var c=[];if(r.length){var s=r;r=[],s.forEach(a),c=r}var m=function(){var l=c;c=[],l.forEach(a)},f=function(){return Promise.resolve().then(m)};f(),r={push:function(l){c.push(l),f()},filter:function(l){return c=c.filter(l),r}}}};return o}function L2(e){e===void 0&&(e={});var t=I2(null);return t.options=ot({async:!0,ssr:!1},e),t}var kE=function(e){var t=e.sideCar,r=EE(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return i.createElement(n,ot({},r))};kE.isSideCarExport=!0;function F2(e,t){return e.useMedium(t),kE}var SE=L2(),Kl=function(){},ou=i.forwardRef(function(e,t){var r=i.useRef(null),n=i.useState({onScrollCapture:Kl,onWheelCapture:Kl,onTouchMoveCapture:Kl}),o=n[0],a=n[1],c=e.forwardProps,s=e.children,m=e.className,f=e.removeScrollBar,l=e.enabled,p=e.shards,v=e.sideCar,g=e.noRelative,E=e.noIsolation,u=e.inert,h=e.allowPinchZoom,y=e.as,b=y===void 0?"div":y,w=e.gapMode,k=EE(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=v,N=M2([r,t]),S=ot(ot({},k),o);return i.createElement(i.Fragment,null,l&&i.createElement(C,{sideCar:SE,removeScrollBar:f,shards:p,noRelative:g,noIsolation:E,inert:u,setCallbacks:a,allowPinchZoom:!!h,lockRef:r,gapMode:w}),c?i.cloneElement(i.Children.only(s),ot(ot({},S),{ref:N})):i.createElement(b,ot({},S,{className:m,ref:N}),s))});ou.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ou.classNames={fullWidth:ic,zeroRight:sc};var W2=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function $2(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=W2();return t&&e.setAttribute("nonce",t),e}function z2(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function U2(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Y2=function(){var e=0,t=null;return{add:function(r){e==0&&(t=$2())&&(z2(t,r),U2(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},B2=function(){var e=Y2();return function(t,r){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},CE=function(){var e=B2(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},K2={left:0,top:0,right:0,gap:0},Xl=function(e){return parseInt(e||"",10)||0},X2=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Xl(r),Xl(n),Xl(o)]},H2=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return K2;var t=X2(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},V2=CE(),wo="data-scroll-locked",q2=function(e,t,r,n){var o=e.left,a=e.top,c=e.right,s=e.gap;return r===void 0&&(r="margin"),`
371
- .`.concat(T2,` {
372
- overflow: hidden `).concat(n,`;
373
- padding-right: `).concat(s,"px ").concat(n,`;
374
- }
375
- body[`).concat(wo,`] {
376
- overflow: hidden `).concat(n,`;
377
- overscroll-behavior: contain;
378
- `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
379
- padding-left: `.concat(o,`px;
380
- padding-top: `).concat(a,`px;
381
- padding-right: `).concat(c,`px;
382
- margin-left:0;
383
- margin-top:0;
384
- margin-right: `).concat(s,"px ").concat(n,`;
385
- `),r==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),`
386
- }
387
-
388
- .`).concat(sc,` {
389
- right: `).concat(s,"px ").concat(n,`;
390
- }
391
-
392
- .`).concat(ic,` {
393
- margin-right: `).concat(s,"px ").concat(n,`;
394
- }
395
-
396
- .`).concat(sc," .").concat(sc,` {
397
- right: 0 `).concat(n,`;
398
- }
399
-
400
- .`).concat(ic," .").concat(ic,` {
401
- margin-right: 0 `).concat(n,`;
402
- }
403
-
404
- body[`).concat(wo,`] {
405
- `).concat(D2,": ").concat(s,`px;
406
- }
407
- `)},Gh=function(){var e=parseInt(document.body.getAttribute(wo)||"0",10);return isFinite(e)?e:0},Z2=function(){i.useEffect(function(){return document.body.setAttribute(wo,(Gh()+1).toString()),function(){var e=Gh()-1;e<=0?document.body.removeAttribute(wo):document.body.setAttribute(wo,e.toString())}},[])},G2=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;Z2();var a=i.useMemo(function(){return H2(o)},[o]);return i.createElement(V2,{styles:q2(a,!t,o,r?"":"!important")})},ip=!1;if(typeof window<"u")try{var Ds=Object.defineProperty({},"passive",{get:function(){return ip=!0,!0}});window.addEventListener("test",Ds,Ds),window.removeEventListener("test",Ds,Ds)}catch{ip=!1}var Tn=ip?{passive:!1}:!1,J2=function(e){return e.tagName==="TEXTAREA"},RE=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!J2(e)&&r[t]==="visible")},Q2=function(e){return RE(e,"overflowY")},eW=function(e){return RE(e,"overflowX")},Jh=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=OE(e,n);if(o){var a=NE(e,n),c=a[1],s=a[2];if(c>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},tW=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},rW=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},OE=function(e,t){return e==="v"?Q2(t):eW(t)},NE=function(e,t){return e==="v"?tW(t):rW(t)},nW=function(e,t){return e==="h"&&t==="rtl"?-1:1},oW=function(e,t,r,n,o){var a=nW(e,window.getComputedStyle(t).direction),c=a*n,s=r.target,m=t.contains(s),f=!1,l=c>0,p=0,v=0;do{if(!s)break;var g=NE(e,s),E=g[0],u=g[1],h=g[2],y=u-h-a*E;(E||y)&&OE(e,s)&&(p+=y,v+=E);var b=s.parentNode;s=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!m&&s!==document.body||m&&(t.contains(s)||t===s));return(l&&Math.abs(p)<1||!l&&Math.abs(v)<1)&&(f=!0),f},js=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Qh=function(e){return[e.deltaX,e.deltaY]},eg=function(e){return e&&"current"in e?e.current:e},aW=function(e,t){return e[0]===t[0]&&e[1]===t[1]},sW=function(e){return`
408
- .block-interactivity-`.concat(e,` {pointer-events: none;}
409
- .allow-interactivity-`).concat(e,` {pointer-events: all;}
410
- `)},iW=0,Dn=[];function cW(e){var t=i.useRef([]),r=i.useRef([0,0]),n=i.useRef(),o=i.useState(iW++)[0],a=i.useState(CE)[0],c=i.useRef(e);i.useEffect(function(){c.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var u=_2([e.lockRef.current],(e.shards||[]).map(eg)).filter(Boolean);return u.forEach(function(h){return h.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),u.forEach(function(h){return h.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=i.useCallback(function(u,h){if("touches"in u&&u.touches.length===2||u.type==="wheel"&&u.ctrlKey)return!c.current.allowPinchZoom;var y=js(u),b=r.current,w="deltaX"in u?u.deltaX:b[0]-y[0],k="deltaY"in u?u.deltaY:b[1]-y[1],C,N=u.target,S=Math.abs(w)>Math.abs(k)?"h":"v";if("touches"in u&&S==="h"&&N.type==="range")return!1;var R=Jh(S,N);if(!R)return!0;if(R?C=S:(C=S==="v"?"h":"v",R=Jh(S,N)),!R)return!1;if(!n.current&&"changedTouches"in u&&(w||k)&&(n.current=C),!C)return!0;var D=n.current||C;return oW(D,h,u,D==="h"?w:k)},[]),m=i.useCallback(function(u){var h=u;if(!(!Dn.length||Dn[Dn.length-1]!==a)){var y="deltaY"in h?Qh(h):js(h),b=t.current.filter(function(C){return C.name===h.type&&(C.target===h.target||h.target===C.shadowParent)&&aW(C.delta,y)})[0];if(b&&b.should){h.cancelable&&h.preventDefault();return}if(!b){var w=(c.current.shards||[]).map(eg).filter(Boolean).filter(function(C){return C.contains(h.target)}),k=w.length>0?s(h,w[0]):!c.current.noIsolation;k&&h.cancelable&&h.preventDefault()}}},[]),f=i.useCallback(function(u,h,y,b){var w={name:u,delta:h,target:y,should:b,shadowParent:uW(y)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(k){return k!==w})},1)},[]),l=i.useCallback(function(u){r.current=js(u),n.current=void 0},[]),p=i.useCallback(function(u){f(u.type,Qh(u),u.target,s(u,e.lockRef.current))},[]),v=i.useCallback(function(u){f(u.type,js(u),u.target,s(u,e.lockRef.current))},[]);i.useEffect(function(){return Dn.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:v}),document.addEventListener("wheel",m,Tn),document.addEventListener("touchmove",m,Tn),document.addEventListener("touchstart",l,Tn),function(){Dn=Dn.filter(function(u){return u!==a}),document.removeEventListener("wheel",m,Tn),document.removeEventListener("touchmove",m,Tn),document.removeEventListener("touchstart",l,Tn)}},[]);var g=e.removeScrollBar,E=e.inert;return i.createElement(i.Fragment,null,E?i.createElement(a,{styles:sW(o)}):null,g?i.createElement(G2,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function uW(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const lW=F2(SE,cW);var _E=i.forwardRef(function(e,t){return i.createElement(ou,ot({},e,{ref:t,sideCar:lW}))});_E.classNames=ou.classNames;var dW=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},jn=new WeakMap,Ps=new WeakMap,Ms={},Hl=0,TE=function(e){return e&&(e.host||TE(e.parentNode))},fW=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=TE(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},pW=function(e,t,r,n){var o=fW(t,Array.isArray(e)?e:[e]);Ms[r]||(Ms[r]=new WeakMap);var a=Ms[r],c=[],s=new Set,m=new Set(o),f=function(p){!p||s.has(p)||(s.add(p),f(p.parentNode))};o.forEach(f);var l=function(p){!p||m.has(p)||Array.prototype.forEach.call(p.children,function(v){if(s.has(v))l(v);else try{var g=v.getAttribute(n),E=g!==null&&g!=="false",u=(jn.get(v)||0)+1,h=(a.get(v)||0)+1;jn.set(v,u),a.set(v,h),c.push(v),u===1&&E&&Ps.set(v,!0),h===1&&v.setAttribute(r,"true"),E||v.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",v,y)}})};return l(t),s.clear(),Hl++,function(){c.forEach(function(p){var v=jn.get(p)-1,g=a.get(p)-1;jn.set(p,v),a.set(p,g),v||(Ps.has(p)||p.removeAttribute(n),Ps.delete(p)),g||p.removeAttribute(r)}),Hl--,Hl||(jn=new WeakMap,jn=new WeakMap,Ps=new WeakMap,Ms={})}},mW=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=dW(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),pW(n,o,r,"aria-hidden")):function(){return null}},DE="Dialog",[jE]=o2(DE),[soe,At]=jE(DE),PE="DialogTrigger",vW=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=At(PE,r),a=un(t,o.triggerRef);return me.jsx(tr.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":bm(o.open),...n,ref:a,onClick:_r(e.onClick,o.onOpenToggle)})});vW.displayName=PE;var hW="DialogPortal",[ioe,ME]=jE(hW,{forceMount:void 0}),Lc="DialogOverlay",gW=i.forwardRef((e,t)=>{const r=ME(Lc,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=At(Lc,e.__scopeDialog);return a.modal?me.jsx(gm,{present:n||a.open,children:me.jsx(bW,{...o,ref:t})}):null});gW.displayName=Lc;var yW=q.createSlot("DialogOverlay.RemoveScroll"),bW=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=At(Lc,r);return me.jsx(_E,{as:yW,allowPinchZoom:!0,shards:[o.contentRef],children:me.jsx(tr.div,{"data-state":bm(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),Br="DialogContent",wW=i.forwardRef((e,t)=>{const r=ME(Br,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=At(Br,e.__scopeDialog);return me.jsx(gm,{present:n||a.open,children:a.modal?me.jsx(xW,{...o,ref:t}):me.jsx(EW,{...o,ref:t})})});wW.displayName=Br;var xW=i.forwardRef((e,t)=>{const r=At(Br,e.__scopeDialog),n=i.useRef(null),o=un(t,r.contentRef,n);return i.useEffect(()=>{const a=n.current;if(a)return mW(a)},[]),me.jsx(AE,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:_r(e.onCloseAutoFocus,a=>{a.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:_r(e.onPointerDownOutside,a=>{const c=a.detail.originalEvent,s=c.button===0&&c.ctrlKey===!0;(c.button===2||s)&&a.preventDefault()}),onFocusOutside:_r(e.onFocusOutside,a=>a.preventDefault())})}),EW=i.forwardRef((e,t)=>{const r=At(Br,e.__scopeDialog),n=i.useRef(!1),o=i.useRef(!1);return me.jsx(AE,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(n.current||r.triggerRef.current?.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=a.target;r.triggerRef.current?.contains(c)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),AE=i.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...c}=e,s=At(Br,r),m=i.useRef(null),f=un(t,m);return N2(),me.jsxs(me.Fragment,{children:[me.jsx(wE,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:me.jsx(yE,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":bm(s.open),...c,ref:f,onDismiss:()=>s.onOpenChange(!1)})}),me.jsxs(me.Fragment,{children:[me.jsx(RW,{titleId:s.titleId}),me.jsx(NW,{contentRef:m,descriptionId:s.descriptionId})]})]})}),ym="DialogTitle",kW=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=At(ym,r);return me.jsx(tr.h2,{id:o.titleId,...n,ref:t})});kW.displayName=ym;var IE="DialogDescription",SW=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=At(IE,r);return me.jsx(tr.p,{id:o.descriptionId,...n,ref:t})});SW.displayName=IE;var LE="DialogClose",CW=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=At(LE,r);return me.jsx(tr.button,{type:"button",...n,ref:t,onClick:_r(e.onClick,()=>o.onOpenChange(!1))})});CW.displayName=LE;function bm(e){return e?"open":"closed"}var FE="DialogTitleWarning",[coe,WE]=n2(FE,{contentName:Br,titleName:ym,docsSlug:"dialog"}),RW=({titleId:e})=>{const t=WE(FE),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
411
-
412
- If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
413
-
414
- For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},OW="DialogDescriptionWarning",NW=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${WE(OW).contentName}}.`;return i.useEffect(()=>{const n=e.current?.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Vl={exports:{}},ta={};/**
415
- * @license React
416
- * react-jsx-runtime.production.js
417
- *
418
- * Copyright (c) Meta Platforms, Inc. and affiliates.
419
- *
420
- * This source code is licensed under the MIT license found in the
421
- * LICENSE file in the root directory of this source tree.
422
- */var tg;function _W(){if(tg)return ta;tg=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,o,a){var c=null;if(a!==void 0&&(c=""+a),o.key!==void 0&&(c=""+o.key),"key"in o){a={};for(var s in o)s!=="key"&&(a[s]=o[s])}else a=o;return o=a.ref,{$$typeof:e,type:n,key:c,ref:o!==void 0?o:null,props:a}}return ta.Fragment=t,ta.jsx=r,ta.jsxs=r,ta}var As={};/**
423
- * @license React
424
- * react-jsx-runtime.development.js
425
- *
426
- * Copyright (c) Meta Platforms, Inc. and affiliates.
427
- *
428
- * This source code is licensed under the MIT license found in the
429
- * LICENSE file in the root directory of this source tree.
430
- */var rg;function TW(){return rg||(rg=1,process.env.NODE_ENV!=="production"&&(function(){function e(d){if(d==null)return null;if(typeof d=="function")return d.$$typeof===L?null:d.displayName||d.name||null;if(typeof d=="string")return d;switch(d){case u:return"Fragment";case y:return"Profiler";case h:return"StrictMode";case C:return"Suspense";case N:return"SuspenseList";case D:return"Activity"}if(typeof d=="object")switch(typeof d.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),d.$$typeof){case E:return"Portal";case w:return(d.displayName||"Context")+".Provider";case b:return(d._context.displayName||"Context")+".Consumer";case k:var x=d.render;return d=d.displayName,d||(d=x.displayName||x.name||"",d=d!==""?"ForwardRef("+d+")":"ForwardRef"),d;case S:return x=d.displayName||null,x!==null?x:e(d.type)||"Memo";case R:x=d._payload,d=d._init;try{return e(d(x))}catch{}}return null}function t(d){return""+d}function r(d){try{t(d);var x=!1}catch{x=!0}if(x){x=console;var O=x.error,_=typeof Symbol=="function"&&Symbol.toStringTag&&d[Symbol.toStringTag]||d.constructor.name||"Object";return O.call(x,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",_),t(d)}}function n(d){if(d===u)return"<>";if(typeof d=="object"&&d!==null&&d.$$typeof===R)return"<...>";try{var x=e(d);return x?"<"+x+">":"<...>"}catch{return"<...>"}}function o(){var d=I.A;return d===null?null:d.getOwner()}function a(){return Error("react-stack-top-frame")}function c(d){if($.call(d,"key")){var x=Object.getOwnPropertyDescriptor(d,"key").get;if(x&&x.isReactWarning)return!1}return d.key!==void 0}function s(d,x){function O(){M||(M=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",x))}O.isReactWarning=!0,Object.defineProperty(d,"key",{get:O,configurable:!0})}function m(){var d=e(this.type);return K[d]||(K[d]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),d=this.props.ref,d!==void 0?d:null}function f(d,x,O,_,A,j,X,B){return O=j.ref,d={$$typeof:g,type:d,key:x,props:j,_owner:A},(O!==void 0?O:null)!==null?Object.defineProperty(d,"ref",{enumerable:!1,get:m}):Object.defineProperty(d,"ref",{enumerable:!1,value:null}),d._store={},Object.defineProperty(d._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(d,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(d,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:X}),Object.defineProperty(d,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:B}),Object.freeze&&(Object.freeze(d.props),Object.freeze(d)),d}function l(d,x,O,_,A,j,X,B){var T=x.children;if(T!==void 0)if(_)if(U(T)){for(_=0;_<T.length;_++)p(T[_]);Object.freeze&&Object.freeze(T)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else p(T);if($.call(x,"key")){T=e(d);var F=Object.keys(x).filter(function(se){return se!=="key"});_=0<F.length?"{key: someKey, "+F.join(": ..., ")+": ...}":"{key: someKey}",V[T+_]||(F=0<F.length?"{"+F.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
431
- let props = %s;
432
- <%s {...props} />
433
- React keys must be passed directly to JSX without using spread:
434
- let props = %s;
435
- <%s key={someKey} {...props} />`,_,T,F,T),V[T+_]=!0)}if(T=null,O!==void 0&&(r(O),T=""+O),c(x)&&(r(x.key),T=""+x.key),"key"in x){O={};for(var H in x)H!=="key"&&(O[H]=x[H])}else O=x;return T&&s(O,typeof d=="function"?d.displayName||d.name||"Unknown":d),f(d,T,j,A,o(),O,X,B)}function p(d){typeof d=="object"&&d!==null&&d.$$typeof===g&&d._store&&(d._store.validated=1)}var v=P,g=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),b=Symbol.for("react.consumer"),w=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),S=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),D=Symbol.for("react.activity"),L=Symbol.for("react.client.reference"),I=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$=Object.prototype.hasOwnProperty,U=Array.isArray,W=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(d){return d()}};var M,K={},Y=v.react_stack_bottom_frame.bind(v,a)(),z=W(n(a)),V={};As.Fragment=u,As.jsx=function(d,x,O,_,A){var j=1e4>I.recentlyCreatedOwnerStacks++;return l(d,x,O,!1,_,A,j?Error("react-stack-top-frame"):Y,j?W(n(d)):z)},As.jsxs=function(d,x,O,_,A){var j=1e4>I.recentlyCreatedOwnerStacks++;return l(d,x,O,!0,_,A,j?Error("react-stack-top-frame"):Y,j?W(n(d)):z)}})()),As}var ng;function DW(){return ng||(ng=1,process.env.NODE_ENV==="production"?Vl.exports=_W():Vl.exports=TW()),Vl.exports}var ve=DW();P.createContext({locale:void 0});ae.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});ae.cva("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function Tr(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),r===!1||!n.defaultPrevented)return t?.(n)}}function og(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function jW(...e){return t=>{let r=!1;const n=e.map(o=>{const a=og(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():og(e[o],null)}}}}function ln(...e){return i.useCallback(jW(...e),e)}function PW(e,t){const r=i.createContext(t),n=a=>{const{children:c,...s}=a,m=i.useMemo(()=>s,Object.values(s));return ve.jsx(r.Provider,{value:m,children:c})};n.displayName=e+"Provider";function o(a){const c=i.useContext(r);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,o]}function MW(e,t=[]){let r=[];function n(a,c){const s=i.createContext(c),m=r.length;r=[...r,c];const f=p=>{const{scope:v,children:g,...E}=p,u=v?.[e]?.[m]||s,h=i.useMemo(()=>E,Object.values(E));return ve.jsx(u.Provider,{value:h,children:g})};f.displayName=a+"Provider";function l(p,v){const g=v?.[e]?.[m]||s,E=i.useContext(g);if(E)return E;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[f,l]}const o=()=>{const a=r.map(c=>i.createContext(c));return function(c){const s=c?.[e]||a;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:s}}),[c,s])}};return o.scopeName=e,[n,AW(o,...t)]}function AW(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(o){const a=n.reduce((c,{useScope:s,scopeName:m})=>{const f=s(o)[`__scope${m}`];return{...c,...f}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}var cp=globalThis?.document?i.useLayoutEffect:()=>{},IW=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],rr=IW.reduce((e,t)=>{const r=q.createSlot(`Primitive.${t}`),n=i.forwardRef((o,a)=>{const{asChild:c,...s}=o,m=c?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),ve.jsx(m,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function LW(e,t){e&&we.flushSync(()=>e.dispatchEvent(t))}function Ea(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...r)=>t.current?.(...r),[])}function FW(e,t=globalThis?.document){const r=Ea(e);i.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var WW="DismissableLayer",up="dismissableLayer.update",$W="dismissableLayer.pointerDownOutside",zW="dismissableLayer.focusOutside",ag,$E=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),zE=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:c,onDismiss:s,...m}=e,f=i.useContext($E),[l,p]=i.useState(null),v=l?.ownerDocument??globalThis?.document,[,g]=i.useState({}),E=ln(t,S=>p(S)),u=Array.from(f.layers),[h]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),y=u.indexOf(h),b=l?u.indexOf(l):-1,w=f.layersWithOutsidePointerEventsDisabled.size>0,k=b>=y,C=BW(S=>{const R=S.target,D=[...f.branches].some(L=>L.contains(R));!k||D||(o?.(S),c?.(S),S.defaultPrevented||s?.())},v),N=KW(S=>{const R=S.target;[...f.branches].some(D=>D.contains(R))||(a?.(S),c?.(S),S.defaultPrevented||s?.())},v);return FW(S=>{b===f.layers.size-1&&(n?.(S),!S.defaultPrevented&&s&&(S.preventDefault(),s()))},v),i.useEffect(()=>{if(l)return r&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(ag=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(l)),f.layers.add(l),sg(),()=>{r&&f.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=ag)}},[l,v,r,f]),i.useEffect(()=>()=>{l&&(f.layers.delete(l),f.layersWithOutsidePointerEventsDisabled.delete(l),sg())},[l,f]),i.useEffect(()=>{const S=()=>g({});return document.addEventListener(up,S),()=>document.removeEventListener(up,S)},[]),ve.jsx(rr.div,{...m,ref:E,style:{pointerEvents:w?k?"auto":"none":void 0,...e.style},onFocusCapture:Tr(e.onFocusCapture,N.onFocusCapture),onBlurCapture:Tr(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:Tr(e.onPointerDownCapture,C.onPointerDownCapture)})});zE.displayName=WW;var UW="DismissableLayerBranch",YW=i.forwardRef((e,t)=>{const r=i.useContext($E),n=i.useRef(null),o=ln(t,n);return i.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),ve.jsx(rr.div,{...e,ref:o})});YW.displayName=UW;function BW(e,t=globalThis?.document){const r=Ea(e),n=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let m=function(){UE($W,r,f,{discrete:!0})};const f={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=m,t.addEventListener("click",o.current,{once:!0})):m()}else t.removeEventListener("click",o.current);n.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function KW(e,t=globalThis?.document){const r=Ea(e),n=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!n.current&&UE(zW,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function sg(){const e=new CustomEvent(up);document.dispatchEvent(e)}function UE(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?LW(o,a):o.dispatchEvent(a)}var ql="focusScope.autoFocusOnMount",Zl="focusScope.autoFocusOnUnmount",ig={bubbles:!1,cancelable:!0},XW="FocusScope",YE=i.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...c}=e,[s,m]=i.useState(null),f=Ea(o),l=Ea(a),p=i.useRef(null),v=ln(t,u=>m(u)),g=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(n){let u=function(w){if(g.paused||!s)return;const k=w.target;s.contains(k)?p.current=k:fr(p.current,{select:!0})},h=function(w){if(g.paused||!s)return;const k=w.relatedTarget;k!==null&&(s.contains(k)||fr(p.current,{select:!0}))},y=function(w){if(document.activeElement===document.body)for(const k of w)k.removedNodes.length>0&&fr(s)};document.addEventListener("focusin",u),document.addEventListener("focusout",h);const b=new MutationObserver(y);return s&&b.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",u),document.removeEventListener("focusout",h),b.disconnect()}}},[n,s,g.paused]),i.useEffect(()=>{if(s){ug.add(g);const u=document.activeElement;if(!s.contains(u)){const h=new CustomEvent(ql,ig);s.addEventListener(ql,f),s.dispatchEvent(h),h.defaultPrevented||(HW(JW(BE(s)),{select:!0}),document.activeElement===u&&fr(s))}return()=>{s.removeEventListener(ql,f),setTimeout(()=>{const h=new CustomEvent(Zl,ig);s.addEventListener(Zl,l),s.dispatchEvent(h),h.defaultPrevented||fr(u??document.body,{select:!0}),s.removeEventListener(Zl,l),ug.remove(g)},0)}}},[s,f,l,g]);const E=i.useCallback(u=>{if(!r&&!n||g.paused)return;const h=u.key==="Tab"&&!u.altKey&&!u.ctrlKey&&!u.metaKey,y=document.activeElement;if(h&&y){const b=u.currentTarget,[w,k]=VW(b);w&&k?!u.shiftKey&&y===k?(u.preventDefault(),r&&fr(w,{select:!0})):u.shiftKey&&y===w&&(u.preventDefault(),r&&fr(k,{select:!0})):y===b&&u.preventDefault()}},[r,n,g.paused]);return ve.jsx(rr.div,{tabIndex:-1,...c,ref:v,onKeyDown:E})});YE.displayName=XW;function HW(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(fr(n,{select:t}),document.activeElement!==r)return}function VW(e){const t=BE(e),r=cg(t,e),n=cg(t.reverse(),e);return[r,n]}function BE(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function cg(e,t){for(const r of e)if(!qW(r,{upTo:t}))return r}function qW(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function ZW(e){return e instanceof HTMLInputElement&&"select"in e}function fr(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&ZW(e)&&t&&e.select()}}var ug=GW();function GW(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=lg(e,t),e.unshift(t)},remove(t){e=lg(e,t),e[0]?.resume()}}}function lg(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function JW(e){return e.filter(t=>t.tagName!=="A")}var QW="Portal",e$=i.forwardRef((e,t)=>{const{container:r,...n}=e,[o,a]=i.useState(!1);cp(()=>a(!0),[]);const c=r||o&&globalThis?.document?.body;return c?be.createPortal(ve.jsx(rr.div,{...n,ref:t}),c):null});e$.displayName=QW;function t$(e,t){return i.useReducer((r,n)=>t[r][n]??r,e)}var wm=e=>{const{present:t,children:r}=e,n=r$(t),o=typeof r=="function"?r({present:n.isPresent}):i.Children.only(r),a=ln(n.ref,n$(o));return typeof r=="function"||n.isPresent?i.cloneElement(o,{ref:a}):null};wm.displayName="Presence";function r$(e){const[t,r]=i.useState(),n=i.useRef(null),o=i.useRef(e),a=i.useRef("none"),c=e?"mounted":"unmounted",[s,m]=t$(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const f=Is(n.current);a.current=s==="mounted"?f:"none"},[s]),cp(()=>{const f=n.current,l=o.current;if(l!==e){const p=a.current,v=Is(f);e?m("MOUNT"):v==="none"||f?.display==="none"?m("UNMOUNT"):m(l&&p!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,m]),cp(()=>{if(t){let f;const l=t.ownerDocument.defaultView??window,p=g=>{const E=Is(n.current).includes(CSS.escape(g.animationName));if(g.target===t&&E&&(m("ANIMATION_END"),!o.current)){const u=t.style.animationFillMode;t.style.animationFillMode="forwards",f=l.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=u)})}},v=g=>{g.target===t&&(a.current=Is(n.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{l.clearTimeout(f),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else m("ANIMATION_END")},[t,m]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:i.useCallback(f=>{n.current=f?getComputedStyle(f):null,r(f)},[])}}function Is(e){return e?.animationName||"none"}function n$(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Gl=0;function o$(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??dg()),document.body.insertAdjacentElement("beforeend",e[1]??dg()),Gl++,()=>{Gl===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Gl--}},[])}function dg(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var at=function(){return at=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},at.apply(this,arguments)};function KE(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function a$(e,t,r){for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var cc="right-scroll-bar-position",uc="width-before-scroll-bar",s$="with-scroll-bars-hidden",i$="--removed-body-scroll-bar-size";function Jl(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function c$(e,t){var r=P.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var u$=typeof window<"u"?i.useLayoutEffect:i.useEffect,fg=new WeakMap;function l$(e,t){var r=c$(null,function(n){return e.forEach(function(o){return Jl(o,n)})});return u$(function(){var n=fg.get(r);if(n){var o=new Set(n),a=new Set(e),c=r.current;o.forEach(function(s){a.has(s)||Jl(s,null)}),a.forEach(function(s){o.has(s)||Jl(s,c)})}fg.set(r,e)},[e]),r}function d$(e){return e}function f$(e,t){t===void 0&&(t=d$);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var c=t(a,n);return r.push(c),function(){r=r.filter(function(s){return s!==c})}},assignSyncMedium:function(a){for(n=!0;r.length;){var c=r;r=[],c.forEach(a)}r={push:function(s){return a(s)},filter:function(){return r}}},assignMedium:function(a){n=!0;var c=[];if(r.length){var s=r;r=[],s.forEach(a),c=r}var m=function(){var l=c;c=[],l.forEach(a)},f=function(){return Promise.resolve().then(m)};f(),r={push:function(l){c.push(l),f()},filter:function(l){return c=c.filter(l),r}}}};return o}function p$(e){e===void 0&&(e={});var t=f$(null);return t.options=at({async:!0,ssr:!1},e),t}var XE=function(e){var t=e.sideCar,r=KE(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return i.createElement(n,at({},r))};XE.isSideCarExport=!0;function m$(e,t){return e.useMedium(t),XE}var HE=p$(),Ql=function(){},au=i.forwardRef(function(e,t){var r=i.useRef(null),n=i.useState({onScrollCapture:Ql,onWheelCapture:Ql,onTouchMoveCapture:Ql}),o=n[0],a=n[1],c=e.forwardProps,s=e.children,m=e.className,f=e.removeScrollBar,l=e.enabled,p=e.shards,v=e.sideCar,g=e.noRelative,E=e.noIsolation,u=e.inert,h=e.allowPinchZoom,y=e.as,b=y===void 0?"div":y,w=e.gapMode,k=KE(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=v,N=l$([r,t]),S=at(at({},k),o);return i.createElement(i.Fragment,null,l&&i.createElement(C,{sideCar:HE,removeScrollBar:f,shards:p,noRelative:g,noIsolation:E,inert:u,setCallbacks:a,allowPinchZoom:!!h,lockRef:r,gapMode:w}),c?i.cloneElement(i.Children.only(s),at(at({},S),{ref:N})):i.createElement(b,at({},S,{className:m,ref:N}),s))});au.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};au.classNames={fullWidth:uc,zeroRight:cc};var v$=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function h$(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=v$();return t&&e.setAttribute("nonce",t),e}function g$(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function y$(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var b$=function(){var e=0,t=null;return{add:function(r){e==0&&(t=h$())&&(g$(t,r),y$(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},w$=function(){var e=b$();return function(t,r){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},VE=function(){var e=w$(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},x$={left:0,top:0,right:0,gap:0},ed=function(e){return parseInt(e||"",10)||0},E$=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[ed(r),ed(n),ed(o)]},k$=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return x$;var t=E$(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},S$=VE(),xo="data-scroll-locked",C$=function(e,t,r,n){var o=e.left,a=e.top,c=e.right,s=e.gap;return r===void 0&&(r="margin"),`
436
- .`.concat(s$,` {
437
- overflow: hidden `).concat(n,`;
438
- padding-right: `).concat(s,"px ").concat(n,`;
439
- }
440
- body[`).concat(xo,`] {
441
- overflow: hidden `).concat(n,`;
442
- overscroll-behavior: contain;
443
- `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
444
- padding-left: `.concat(o,`px;
445
- padding-top: `).concat(a,`px;
446
- padding-right: `).concat(c,`px;
447
- margin-left:0;
448
- margin-top:0;
449
- margin-right: `).concat(s,"px ").concat(n,`;
450
- `),r==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),`
451
- }
452
-
453
- .`).concat(cc,` {
454
- right: `).concat(s,"px ").concat(n,`;
455
- }
456
-
457
- .`).concat(uc,` {
458
- margin-right: `).concat(s,"px ").concat(n,`;
459
- }
460
-
461
- .`).concat(cc," .").concat(cc,` {
462
- right: 0 `).concat(n,`;
463
- }
464
-
465
- .`).concat(uc," .").concat(uc,` {
466
- margin-right: 0 `).concat(n,`;
467
- }
468
-
469
- body[`).concat(xo,`] {
470
- `).concat(i$,": ").concat(s,`px;
471
- }
472
- `)},pg=function(){var e=parseInt(document.body.getAttribute(xo)||"0",10);return isFinite(e)?e:0},R$=function(){i.useEffect(function(){return document.body.setAttribute(xo,(pg()+1).toString()),function(){var e=pg()-1;e<=0?document.body.removeAttribute(xo):document.body.setAttribute(xo,e.toString())}},[])},O$=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;R$();var a=i.useMemo(function(){return k$(o)},[o]);return i.createElement(S$,{styles:C$(a,!t,o,r?"":"!important")})},lp=!1;if(typeof window<"u")try{var Ls=Object.defineProperty({},"passive",{get:function(){return lp=!0,!0}});window.addEventListener("test",Ls,Ls),window.removeEventListener("test",Ls,Ls)}catch{lp=!1}var Pn=lp?{passive:!1}:!1,N$=function(e){return e.tagName==="TEXTAREA"},qE=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!N$(e)&&r[t]==="visible")},_$=function(e){return qE(e,"overflowY")},T$=function(e){return qE(e,"overflowX")},mg=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=ZE(e,n);if(o){var a=GE(e,n),c=a[1],s=a[2];if(c>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},D$=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},j$=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},ZE=function(e,t){return e==="v"?_$(t):T$(t)},GE=function(e,t){return e==="v"?D$(t):j$(t)},P$=function(e,t){return e==="h"&&t==="rtl"?-1:1},M$=function(e,t,r,n,o){var a=P$(e,window.getComputedStyle(t).direction),c=a*n,s=r.target,m=t.contains(s),f=!1,l=c>0,p=0,v=0;do{if(!s)break;var g=GE(e,s),E=g[0],u=g[1],h=g[2],y=u-h-a*E;(E||y)&&ZE(e,s)&&(p+=y,v+=E);var b=s.parentNode;s=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!m&&s!==document.body||m&&(t.contains(s)||t===s));return(l&&Math.abs(p)<1||!l&&Math.abs(v)<1)&&(f=!0),f},Fs=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},vg=function(e){return[e.deltaX,e.deltaY]},hg=function(e){return e&&"current"in e?e.current:e},A$=function(e,t){return e[0]===t[0]&&e[1]===t[1]},I$=function(e){return`
473
- .block-interactivity-`.concat(e,` {pointer-events: none;}
474
- .allow-interactivity-`).concat(e,` {pointer-events: all;}
475
- `)},L$=0,Mn=[];function F$(e){var t=i.useRef([]),r=i.useRef([0,0]),n=i.useRef(),o=i.useState(L$++)[0],a=i.useState(VE)[0],c=i.useRef(e);i.useEffect(function(){c.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var u=a$([e.lockRef.current],(e.shards||[]).map(hg)).filter(Boolean);return u.forEach(function(h){return h.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),u.forEach(function(h){return h.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=i.useCallback(function(u,h){if("touches"in u&&u.touches.length===2||u.type==="wheel"&&u.ctrlKey)return!c.current.allowPinchZoom;var y=Fs(u),b=r.current,w="deltaX"in u?u.deltaX:b[0]-y[0],k="deltaY"in u?u.deltaY:b[1]-y[1],C,N=u.target,S=Math.abs(w)>Math.abs(k)?"h":"v";if("touches"in u&&S==="h"&&N.type==="range")return!1;var R=mg(S,N);if(!R)return!0;if(R?C=S:(C=S==="v"?"h":"v",R=mg(S,N)),!R)return!1;if(!n.current&&"changedTouches"in u&&(w||k)&&(n.current=C),!C)return!0;var D=n.current||C;return M$(D,h,u,D==="h"?w:k)},[]),m=i.useCallback(function(u){var h=u;if(!(!Mn.length||Mn[Mn.length-1]!==a)){var y="deltaY"in h?vg(h):Fs(h),b=t.current.filter(function(C){return C.name===h.type&&(C.target===h.target||h.target===C.shadowParent)&&A$(C.delta,y)})[0];if(b&&b.should){h.cancelable&&h.preventDefault();return}if(!b){var w=(c.current.shards||[]).map(hg).filter(Boolean).filter(function(C){return C.contains(h.target)}),k=w.length>0?s(h,w[0]):!c.current.noIsolation;k&&h.cancelable&&h.preventDefault()}}},[]),f=i.useCallback(function(u,h,y,b){var w={name:u,delta:h,target:y,should:b,shadowParent:W$(y)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(k){return k!==w})},1)},[]),l=i.useCallback(function(u){r.current=Fs(u),n.current=void 0},[]),p=i.useCallback(function(u){f(u.type,vg(u),u.target,s(u,e.lockRef.current))},[]),v=i.useCallback(function(u){f(u.type,Fs(u),u.target,s(u,e.lockRef.current))},[]);i.useEffect(function(){return Mn.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:v}),document.addEventListener("wheel",m,Pn),document.addEventListener("touchmove",m,Pn),document.addEventListener("touchstart",l,Pn),function(){Mn=Mn.filter(function(u){return u!==a}),document.removeEventListener("wheel",m,Pn),document.removeEventListener("touchmove",m,Pn),document.removeEventListener("touchstart",l,Pn)}},[]);var g=e.removeScrollBar,E=e.inert;return i.createElement(i.Fragment,null,E?i.createElement(a,{styles:I$(o)}):null,g?i.createElement(O$,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function W$(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const $$=m$(HE,F$);var JE=i.forwardRef(function(e,t){return i.createElement(au,at({},e,{ref:t,sideCar:$$}))});JE.classNames=au.classNames;var z$=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},An=new WeakMap,Ws=new WeakMap,$s={},td=0,QE=function(e){return e&&(e.host||QE(e.parentNode))},U$=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=QE(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},Y$=function(e,t,r,n){var o=U$(t,Array.isArray(e)?e:[e]);$s[r]||($s[r]=new WeakMap);var a=$s[r],c=[],s=new Set,m=new Set(o),f=function(p){!p||s.has(p)||(s.add(p),f(p.parentNode))};o.forEach(f);var l=function(p){!p||m.has(p)||Array.prototype.forEach.call(p.children,function(v){if(s.has(v))l(v);else try{var g=v.getAttribute(n),E=g!==null&&g!=="false",u=(An.get(v)||0)+1,h=(a.get(v)||0)+1;An.set(v,u),a.set(v,h),c.push(v),u===1&&E&&Ws.set(v,!0),h===1&&v.setAttribute(r,"true"),E||v.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",v,y)}})};return l(t),s.clear(),td++,function(){c.forEach(function(p){var v=An.get(p)-1,g=a.get(p)-1;An.set(p,v),a.set(p,g),v||(Ws.has(p)||p.removeAttribute(n),Ws.delete(p)),g||p.removeAttribute(r)}),td--,td||(An=new WeakMap,An=new WeakMap,Ws=new WeakMap,$s={})}},B$=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=z$(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),Y$(n,o,r,"aria-hidden")):function(){return null}},ek="Dialog",[tk]=MW(ek),[uoe,It]=tk(ek),rk="DialogTrigger",K$=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=It(rk,r),a=ln(t,o.triggerRef);return ve.jsx(rr.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Em(o.open),...n,ref:a,onClick:Tr(e.onClick,o.onOpenToggle)})});K$.displayName=rk;var X$="DialogPortal",[loe,nk]=tk(X$,{forceMount:void 0}),Fc="DialogOverlay",H$=i.forwardRef((e,t)=>{const r=nk(Fc,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=It(Fc,e.__scopeDialog);return a.modal?ve.jsx(wm,{present:n||a.open,children:ve.jsx(q$,{...o,ref:t})}):null});H$.displayName=Fc;var V$=q.createSlot("DialogOverlay.RemoveScroll"),q$=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=It(Fc,r);return ve.jsx(JE,{as:V$,allowPinchZoom:!0,shards:[o.contentRef],children:ve.jsx(rr.div,{"data-state":Em(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),Kr="DialogContent",Z$=i.forwardRef((e,t)=>{const r=nk(Kr,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=It(Kr,e.__scopeDialog);return ve.jsx(wm,{present:n||a.open,children:a.modal?ve.jsx(G$,{...o,ref:t}):ve.jsx(J$,{...o,ref:t})})});Z$.displayName=Kr;var G$=i.forwardRef((e,t)=>{const r=It(Kr,e.__scopeDialog),n=i.useRef(null),o=ln(t,r.contentRef,n);return i.useEffect(()=>{const a=n.current;if(a)return B$(a)},[]),ve.jsx(ok,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Tr(e.onCloseAutoFocus,a=>{a.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:Tr(e.onPointerDownOutside,a=>{const c=a.detail.originalEvent,s=c.button===0&&c.ctrlKey===!0;(c.button===2||s)&&a.preventDefault()}),onFocusOutside:Tr(e.onFocusOutside,a=>a.preventDefault())})}),J$=i.forwardRef((e,t)=>{const r=It(Kr,e.__scopeDialog),n=i.useRef(!1),o=i.useRef(!1);return ve.jsx(ok,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(n.current||r.triggerRef.current?.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=a.target;r.triggerRef.current?.contains(c)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),ok=i.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...c}=e,s=It(Kr,r),m=i.useRef(null),f=ln(t,m);return o$(),ve.jsxs(ve.Fragment,{children:[ve.jsx(YE,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:ve.jsx(zE,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":Em(s.open),...c,ref:f,onDismiss:()=>s.onOpenChange(!1)})}),ve.jsxs(ve.Fragment,{children:[ve.jsx(r5,{titleId:s.titleId}),ve.jsx(o5,{contentRef:m,descriptionId:s.descriptionId})]})]})}),xm="DialogTitle",Q$=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=It(xm,r);return ve.jsx(rr.h2,{id:o.titleId,...n,ref:t})});Q$.displayName=xm;var ak="DialogDescription",e5=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=It(ak,r);return ve.jsx(rr.p,{id:o.descriptionId,...n,ref:t})});e5.displayName=ak;var sk="DialogClose",t5=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=It(sk,r);return ve.jsx(rr.button,{type:"button",...n,ref:t,onClick:Tr(e.onClick,()=>o.onOpenChange(!1))})});t5.displayName=sk;function Em(e){return e?"open":"closed"}var ik="DialogTitleWarning",[doe,ck]=PW(ik,{contentName:Kr,titleName:xm,docsSlug:"dialog"}),r5=({titleId:e})=>{const t=ck(ik),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
476
-
477
- If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
478
-
479
- For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},n5="DialogDescriptionWarning",o5=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${ck(n5).contentName}}.`;return i.useEffect(()=>{const n=e.current?.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},rd={exports:{}},ra={};/**
480
- * @license React
481
- * react-jsx-runtime.production.js
482
- *
483
- * Copyright (c) Meta Platforms, Inc. and affiliates.
484
- *
485
- * This source code is licensed under the MIT license found in the
486
- * LICENSE file in the root directory of this source tree.
487
- */var gg;function a5(){if(gg)return ra;gg=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,o,a){var c=null;if(a!==void 0&&(c=""+a),o.key!==void 0&&(c=""+o.key),"key"in o){a={};for(var s in o)s!=="key"&&(a[s]=o[s])}else a=o;return o=a.ref,{$$typeof:e,type:n,key:c,ref:o!==void 0?o:null,props:a}}return ra.Fragment=t,ra.jsx=r,ra.jsxs=r,ra}var zs={};/**
488
- * @license React
489
- * react-jsx-runtime.development.js
490
- *
491
- * Copyright (c) Meta Platforms, Inc. and affiliates.
492
- *
493
- * This source code is licensed under the MIT license found in the
494
- * LICENSE file in the root directory of this source tree.
495
- */var yg;function s5(){return yg||(yg=1,process.env.NODE_ENV!=="production"&&(function(){function e(d){if(d==null)return null;if(typeof d=="function")return d.$$typeof===L?null:d.displayName||d.name||null;if(typeof d=="string")return d;switch(d){case u:return"Fragment";case y:return"Profiler";case h:return"StrictMode";case C:return"Suspense";case N:return"SuspenseList";case D:return"Activity"}if(typeof d=="object")switch(typeof d.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),d.$$typeof){case E:return"Portal";case w:return(d.displayName||"Context")+".Provider";case b:return(d._context.displayName||"Context")+".Consumer";case k:var x=d.render;return d=d.displayName,d||(d=x.displayName||x.name||"",d=d!==""?"ForwardRef("+d+")":"ForwardRef"),d;case S:return x=d.displayName||null,x!==null?x:e(d.type)||"Memo";case R:x=d._payload,d=d._init;try{return e(d(x))}catch{}}return null}function t(d){return""+d}function r(d){try{t(d);var x=!1}catch{x=!0}if(x){x=console;var O=x.error,_=typeof Symbol=="function"&&Symbol.toStringTag&&d[Symbol.toStringTag]||d.constructor.name||"Object";return O.call(x,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",_),t(d)}}function n(d){if(d===u)return"<>";if(typeof d=="object"&&d!==null&&d.$$typeof===R)return"<...>";try{var x=e(d);return x?"<"+x+">":"<...>"}catch{return"<...>"}}function o(){var d=I.A;return d===null?null:d.getOwner()}function a(){return Error("react-stack-top-frame")}function c(d){if($.call(d,"key")){var x=Object.getOwnPropertyDescriptor(d,"key").get;if(x&&x.isReactWarning)return!1}return d.key!==void 0}function s(d,x){function O(){M||(M=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",x))}O.isReactWarning=!0,Object.defineProperty(d,"key",{get:O,configurable:!0})}function m(){var d=e(this.type);return K[d]||(K[d]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),d=this.props.ref,d!==void 0?d:null}function f(d,x,O,_,A,j,X,B){return O=j.ref,d={$$typeof:g,type:d,key:x,props:j,_owner:A},(O!==void 0?O:null)!==null?Object.defineProperty(d,"ref",{enumerable:!1,get:m}):Object.defineProperty(d,"ref",{enumerable:!1,value:null}),d._store={},Object.defineProperty(d._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(d,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(d,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:X}),Object.defineProperty(d,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:B}),Object.freeze&&(Object.freeze(d.props),Object.freeze(d)),d}function l(d,x,O,_,A,j,X,B){var T=x.children;if(T!==void 0)if(_)if(U(T)){for(_=0;_<T.length;_++)p(T[_]);Object.freeze&&Object.freeze(T)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else p(T);if($.call(x,"key")){T=e(d);var F=Object.keys(x).filter(function(se){return se!=="key"});_=0<F.length?"{key: someKey, "+F.join(": ..., ")+": ...}":"{key: someKey}",V[T+_]||(F=0<F.length?"{"+F.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
496
- let props = %s;
497
- <%s {...props} />
498
- React keys must be passed directly to JSX without using spread:
499
- let props = %s;
500
- <%s key={someKey} {...props} />`,_,T,F,T),V[T+_]=!0)}if(T=null,O!==void 0&&(r(O),T=""+O),c(x)&&(r(x.key),T=""+x.key),"key"in x){O={};for(var H in x)H!=="key"&&(O[H]=x[H])}else O=x;return T&&s(O,typeof d=="function"?d.displayName||d.name||"Unknown":d),f(d,T,j,A,o(),O,X,B)}function p(d){typeof d=="object"&&d!==null&&d.$$typeof===g&&d._store&&(d._store.validated=1)}var v=P,g=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),b=Symbol.for("react.consumer"),w=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),S=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),D=Symbol.for("react.activity"),L=Symbol.for("react.client.reference"),I=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$=Object.prototype.hasOwnProperty,U=Array.isArray,W=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(d){return d()}};var M,K={},Y=v.react_stack_bottom_frame.bind(v,a)(),z=W(n(a)),V={};zs.Fragment=u,zs.jsx=function(d,x,O,_,A){var j=1e4>I.recentlyCreatedOwnerStacks++;return l(d,x,O,!1,_,A,j?Error("react-stack-top-frame"):Y,j?W(n(d)):z)},zs.jsxs=function(d,x,O,_,A){var j=1e4>I.recentlyCreatedOwnerStacks++;return l(d,x,O,!0,_,A,j?Error("react-stack-top-frame"):Y,j?W(n(d)):z)}})()),zs}var bg;function i5(){return bg||(bg=1,process.env.NODE_ENV==="production"?rd.exports=a5():rd.exports=s5()),rd.exports}var Z=i5();P.createContext({locale:void 0});var c5=(e,t,r,n,o,a,c,s)=>{let m=document.documentElement,f=["light","dark"];function l(g){(Array.isArray(e)?e:[e]).forEach(E=>{let u=E==="class",h=u&&a?o.map(y=>a[y]||y):o;u?(m.classList.remove(...h),m.classList.add(a&&a[g]?a[g]:g)):m.setAttribute(E,g)}),p(g)}function p(g){s&&f.includes(g)&&(m.style.colorScheme=g)}function v(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(n)l(n);else try{let g=localStorage.getItem(t)||r,E=c&&g==="system"?v():g;l(E)}catch{}};i.createContext(void 0);i.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:n,enableColorScheme:o,defaultTheme:a,value:c,themes:s,nonce:m,scriptProps:f})=>{let l=JSON.stringify([r,t,a,e,s,c,n,o]).slice(1,-1);return i.createElement("script",{...f,suppressHydrationWarning:!0,nonce:typeof window>"u"?m:"",dangerouslySetInnerHTML:{__html:`(${c5.toString()})(${l})`}})});function u5(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}Array(12).fill(0);let dp=1;class l5{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const r=this.subscribers.indexOf(t);this.subscribers.splice(r,1)}),this.publish=t=>{this.subscribers.forEach(r=>r(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var r;const{message:n,...o}=t,a=typeof t?.id=="number"||((r=t.id)==null?void 0:r.length)>0?t.id:dp++,c=this.toasts.find(m=>m.id===a),s=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(a)&&this.dismissedToasts.delete(a),c?this.toasts=this.toasts.map(m=>m.id===a?(this.publish({...m,...t,id:a,title:n}),{...m,...t,id:a,dismissible:s,title:n}):m):this.addToast({title:n,...o,dismissible:s,id:a}),a},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(r=>r({id:t,dismiss:!0})))):this.toasts.forEach(r=>{this.subscribers.forEach(n=>n({id:r.id,dismiss:!0}))}),t),this.message=(t,r)=>this.create({...r,message:t}),this.error=(t,r)=>this.create({...r,message:t,type:"error"}),this.success=(t,r)=>this.create({...r,type:"success",message:t}),this.info=(t,r)=>this.create({...r,type:"info",message:t}),this.warning=(t,r)=>this.create({...r,type:"warning",message:t}),this.loading=(t,r)=>this.create({...r,type:"loading",message:t}),this.promise=(t,r)=>{if(!r)return;let n;r.loading!==void 0&&(n=this.create({...r,promise:t,type:"loading",message:r.loading,description:typeof r.description!="function"?r.description:void 0}));const o=Promise.resolve(t instanceof Function?t():t);let a=n!==void 0,c;const s=o.then(async f=>{if(c=["resolve",f],P.isValidElement(f))a=!1,this.create({id:n,type:"default",message:f});else if(f5(f)&&!f.ok){a=!1;const l=typeof r.error=="function"?await r.error(`HTTP error! status: ${f.status}`):r.error,p=typeof r.description=="function"?await r.description(`HTTP error! status: ${f.status}`):r.description,v=typeof l=="object"&&!P.isValidElement(l)?l:{message:l};this.create({id:n,type:"error",description:p,...v})}else if(f instanceof Error){a=!1;const l=typeof r.error=="function"?await r.error(f):r.error,p=typeof r.description=="function"?await r.description(f):r.description,v=typeof l=="object"&&!P.isValidElement(l)?l:{message:l};this.create({id:n,type:"error",description:p,...v})}else if(r.success!==void 0){a=!1;const l=typeof r.success=="function"?await r.success(f):r.success,p=typeof r.description=="function"?await r.description(f):r.description,v=typeof l=="object"&&!P.isValidElement(l)?l:{message:l};this.create({id:n,type:"success",description:p,...v})}}).catch(async f=>{if(c=["reject",f],r.error!==void 0){a=!1;const l=typeof r.error=="function"?await r.error(f):r.error,p=typeof r.description=="function"?await r.description(f):r.description,v=typeof l=="object"&&!P.isValidElement(l)?l:{message:l};this.create({id:n,type:"error",description:p,...v})}}).finally(()=>{a&&(this.dismiss(n),n=void 0),r.finally==null||r.finally.call(r)}),m=()=>new Promise((f,l)=>s.then(()=>c[0]==="reject"?l(c[1]):f(c[1])).catch(l));return typeof n!="string"&&typeof n!="number"?{unwrap:m}:Object.assign(n,{unwrap:m})},this.custom=(t,r)=>{const n=r?.id||dp++;return this.create({jsx:t(n),id:n,...r}),n},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const ze=new l5,d5=(e,t)=>{const r=t?.id||dp++;return ze.addToast({title:e,...t,id:r}),r},f5=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",p5=d5,m5=()=>ze.toasts,v5=()=>ze.getActiveToasts();Object.assign(p5,{success:ze.success,info:ze.info,warning:ze.warning,error:ze.error,custom:ze.custom,message:ze.message,promise:ze.promise,dismiss:ze.dismiss,loading:ze.loading},{getHistory:m5,getToasts:v5});u5("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");ae.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});ae.cva("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function xe(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),r===!1||!n.defaultPrevented)return t?.(n)}}function wg(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function h5(...e){return t=>{let r=!1;const n=e.map(o=>{const a=wg(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():wg(e[o],null)}}}}function bt(...e){return i.useCallback(h5(...e),e)}function g5(e,t){const r=i.createContext(t),n=a=>{const{children:c,...s}=a,m=i.useMemo(()=>s,Object.values(s));return Z.jsx(r.Provider,{value:m,children:c})};n.displayName=e+"Provider";function o(a){const c=i.useContext(r);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,o]}function su(e,t=[]){let r=[];function n(a,c){const s=i.createContext(c),m=r.length;r=[...r,c];const f=p=>{const{scope:v,children:g,...E}=p,u=v?.[e]?.[m]||s,h=i.useMemo(()=>E,Object.values(E));return Z.jsx(u.Provider,{value:h,children:g})};f.displayName=a+"Provider";function l(p,v){const g=v?.[e]?.[m]||s,E=i.useContext(g);if(E)return E;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[f,l]}const o=()=>{const a=r.map(c=>i.createContext(c));return function(c){const s=c?.[e]||a;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:s}}),[c,s])}};return o.scopeName=e,[n,y5(o,...t)]}function y5(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(o){const a=n.reduce((c,{useScope:s,scopeName:m})=>{const f=s(o)[`__scope${m}`];return{...c,...f}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}var ka=globalThis?.document?i.useLayoutEffect:()=>{},b5=i[" useId ".trim().toString()]||(()=>{}),w5=0;function uk(e){const[t,r]=i.useState(b5());return ka(()=>{r(n=>n??String(w5++))},[e]),t?`radix-${t}`:""}var x5=i[" useInsertionEffect ".trim().toString()]||ka;function lk({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,a,c]=E5({defaultProp:t,onChange:r}),s=e!==void 0,m=s?e:o;{const l=i.useRef(e!==void 0);i.useEffect(()=>{const p=l.current;p!==s&&console.warn(`${n} is changing from ${p?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),l.current=s},[s,n])}const f=i.useCallback(l=>{if(s){const p=k5(l)?l(e):l;p!==e&&c.current?.(p)}else a(l)},[s,e,a,c]);return[m,f]}function E5({defaultProp:e,onChange:t}){const[r,n]=i.useState(e),o=i.useRef(r),a=i.useRef(t);return x5(()=>{a.current=t},[t]),i.useEffect(()=>{o.current!==r&&(a.current?.(r),o.current=r)},[r,o]),[r,n,a]}function k5(e){return typeof e=="function"}var S5=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Te=S5.reduce((e,t)=>{const r=q.createSlot(`Primitive.${t}`),n=i.forwardRef((o,a)=>{const{asChild:c,...s}=o,m=c?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),Z.jsx(m,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function C5(e,t){e&&we.flushSync(()=>e.dispatchEvent(t))}function Po(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...r)=>t.current?.(...r),[])}function R5(e,t=globalThis?.document){const r=Po(e);i.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var O5="DismissableLayer",fp="dismissableLayer.update",N5="dismissableLayer.pointerDownOutside",_5="dismissableLayer.focusOutside",xg,dk=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),fk=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:c,onDismiss:s,...m}=e,f=i.useContext(dk),[l,p]=i.useState(null),v=l?.ownerDocument??globalThis?.document,[,g]=i.useState({}),E=bt(t,S=>p(S)),u=Array.from(f.layers),[h]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),y=u.indexOf(h),b=l?u.indexOf(l):-1,w=f.layersWithOutsidePointerEventsDisabled.size>0,k=b>=y,C=j5(S=>{const R=S.target,D=[...f.branches].some(L=>L.contains(R));!k||D||(o?.(S),c?.(S),S.defaultPrevented||s?.())},v),N=P5(S=>{const R=S.target;[...f.branches].some(D=>D.contains(R))||(a?.(S),c?.(S),S.defaultPrevented||s?.())},v);return R5(S=>{b===f.layers.size-1&&(n?.(S),!S.defaultPrevented&&s&&(S.preventDefault(),s()))},v),i.useEffect(()=>{if(l)return r&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(xg=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(l)),f.layers.add(l),Eg(),()=>{r&&f.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=xg)}},[l,v,r,f]),i.useEffect(()=>()=>{l&&(f.layers.delete(l),f.layersWithOutsidePointerEventsDisabled.delete(l),Eg())},[l,f]),i.useEffect(()=>{const S=()=>g({});return document.addEventListener(fp,S),()=>document.removeEventListener(fp,S)},[]),Z.jsx(Te.div,{...m,ref:E,style:{pointerEvents:w?k?"auto":"none":void 0,...e.style},onFocusCapture:xe(e.onFocusCapture,N.onFocusCapture),onBlurCapture:xe(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:xe(e.onPointerDownCapture,C.onPointerDownCapture)})});fk.displayName=O5;var T5="DismissableLayerBranch",D5=i.forwardRef((e,t)=>{const r=i.useContext(dk),n=i.useRef(null),o=bt(t,n);return i.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),Z.jsx(Te.div,{...e,ref:o})});D5.displayName=T5;function j5(e,t=globalThis?.document){const r=Po(e),n=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let m=function(){pk(N5,r,f,{discrete:!0})};const f={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=m,t.addEventListener("click",o.current,{once:!0})):m()}else t.removeEventListener("click",o.current);n.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function P5(e,t=globalThis?.document){const r=Po(e),n=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!n.current&&pk(_5,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function Eg(){const e=new CustomEvent(fp);document.dispatchEvent(e)}function pk(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?C5(o,a):o.dispatchEvent(a)}var nd="focusScope.autoFocusOnMount",od="focusScope.autoFocusOnUnmount",kg={bubbles:!1,cancelable:!0},M5="FocusScope",mk=i.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...c}=e,[s,m]=i.useState(null),f=Po(o),l=Po(a),p=i.useRef(null),v=bt(t,u=>m(u)),g=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(n){let u=function(w){if(g.paused||!s)return;const k=w.target;s.contains(k)?p.current=k:pr(p.current,{select:!0})},h=function(w){if(g.paused||!s)return;const k=w.relatedTarget;k!==null&&(s.contains(k)||pr(p.current,{select:!0}))},y=function(w){if(document.activeElement===document.body)for(const k of w)k.removedNodes.length>0&&pr(s)};document.addEventListener("focusin",u),document.addEventListener("focusout",h);const b=new MutationObserver(y);return s&&b.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",u),document.removeEventListener("focusout",h),b.disconnect()}}},[n,s,g.paused]),i.useEffect(()=>{if(s){Cg.add(g);const u=document.activeElement;if(!s.contains(u)){const h=new CustomEvent(nd,kg);s.addEventListener(nd,f),s.dispatchEvent(h),h.defaultPrevented||(A5($5(vk(s)),{select:!0}),document.activeElement===u&&pr(s))}return()=>{s.removeEventListener(nd,f),setTimeout(()=>{const h=new CustomEvent(od,kg);s.addEventListener(od,l),s.dispatchEvent(h),h.defaultPrevented||pr(u??document.body,{select:!0}),s.removeEventListener(od,l),Cg.remove(g)},0)}}},[s,f,l,g]);const E=i.useCallback(u=>{if(!r&&!n||g.paused)return;const h=u.key==="Tab"&&!u.altKey&&!u.ctrlKey&&!u.metaKey,y=document.activeElement;if(h&&y){const b=u.currentTarget,[w,k]=I5(b);w&&k?!u.shiftKey&&y===k?(u.preventDefault(),r&&pr(w,{select:!0})):u.shiftKey&&y===w&&(u.preventDefault(),r&&pr(k,{select:!0})):y===b&&u.preventDefault()}},[r,n,g.paused]);return Z.jsx(Te.div,{tabIndex:-1,...c,ref:v,onKeyDown:E})});mk.displayName=M5;function A5(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(pr(n,{select:t}),document.activeElement!==r)return}function I5(e){const t=vk(e),r=Sg(t,e),n=Sg(t.reverse(),e);return[r,n]}function vk(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Sg(e,t){for(const r of e)if(!L5(r,{upTo:t}))return r}function L5(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function F5(e){return e instanceof HTMLInputElement&&"select"in e}function pr(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&F5(e)&&t&&e.select()}}var Cg=W5();function W5(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=Rg(e,t),e.unshift(t)},remove(t){e=Rg(e,t),e[0]?.resume()}}}function Rg(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function $5(e){return e.filter(t=>t.tagName!=="A")}var z5="Portal",U5=i.forwardRef((e,t)=>{const{container:r,...n}=e,[o,a]=i.useState(!1);ka(()=>a(!0),[]);const c=r||o&&globalThis?.document?.body;return c?be.createPortal(Z.jsx(Te.div,{...n,ref:t}),c):null});U5.displayName=z5;function Y5(e,t){return i.useReducer((r,n)=>t[r][n]??r,e)}var iu=e=>{const{present:t,children:r}=e,n=B5(t),o=typeof r=="function"?r({present:n.isPresent}):i.Children.only(r),a=bt(n.ref,K5(o));return typeof r=="function"||n.isPresent?i.cloneElement(o,{ref:a}):null};iu.displayName="Presence";function B5(e){const[t,r]=i.useState(),n=i.useRef(null),o=i.useRef(e),a=i.useRef("none"),c=e?"mounted":"unmounted",[s,m]=Y5(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const f=Us(n.current);a.current=s==="mounted"?f:"none"},[s]),ka(()=>{const f=n.current,l=o.current;if(l!==e){const p=a.current,v=Us(f);e?m("MOUNT"):v==="none"||f?.display==="none"?m("UNMOUNT"):m(l&&p!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,m]),ka(()=>{if(t){let f;const l=t.ownerDocument.defaultView??window,p=g=>{const E=Us(n.current).includes(CSS.escape(g.animationName));if(g.target===t&&E&&(m("ANIMATION_END"),!o.current)){const u=t.style.animationFillMode;t.style.animationFillMode="forwards",f=l.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=u)})}},v=g=>{g.target===t&&(a.current=Us(n.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{l.clearTimeout(f),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else m("ANIMATION_END")},[t,m]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:i.useCallback(f=>{n.current=f?getComputedStyle(f):null,r(f)},[])}}function Us(e){return e?.animationName||"none"}function K5(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var ad=0;function X5(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Og()),document.body.insertAdjacentElement("beforeend",e[1]??Og()),ad++,()=>{ad===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),ad--}},[])}function Og(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var st=function(){return st=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},st.apply(this,arguments)};function hk(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function H5(e,t,r){for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var lc="right-scroll-bar-position",dc="width-before-scroll-bar",V5="with-scroll-bars-hidden",q5="--removed-body-scroll-bar-size";function sd(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Z5(e,t){var r=P.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var G5=typeof window<"u"?i.useLayoutEffect:i.useEffect,Ng=new WeakMap;function J5(e,t){var r=Z5(null,function(n){return e.forEach(function(o){return sd(o,n)})});return G5(function(){var n=Ng.get(r);if(n){var o=new Set(n),a=new Set(e),c=r.current;o.forEach(function(s){a.has(s)||sd(s,null)}),a.forEach(function(s){o.has(s)||sd(s,c)})}Ng.set(r,e)},[e]),r}function Q5(e){return e}function e4(e,t){t===void 0&&(t=Q5);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var c=t(a,n);return r.push(c),function(){r=r.filter(function(s){return s!==c})}},assignSyncMedium:function(a){for(n=!0;r.length;){var c=r;r=[],c.forEach(a)}r={push:function(s){return a(s)},filter:function(){return r}}},assignMedium:function(a){n=!0;var c=[];if(r.length){var s=r;r=[],s.forEach(a),c=r}var m=function(){var l=c;c=[],l.forEach(a)},f=function(){return Promise.resolve().then(m)};f(),r={push:function(l){c.push(l),f()},filter:function(l){return c=c.filter(l),r}}}};return o}function t4(e){e===void 0&&(e={});var t=e4(null);return t.options=st({async:!0,ssr:!1},e),t}var gk=function(e){var t=e.sideCar,r=hk(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return i.createElement(n,st({},r))};gk.isSideCarExport=!0;function r4(e,t){return e.useMedium(t),gk}var yk=t4(),id=function(){},cu=i.forwardRef(function(e,t){var r=i.useRef(null),n=i.useState({onScrollCapture:id,onWheelCapture:id,onTouchMoveCapture:id}),o=n[0],a=n[1],c=e.forwardProps,s=e.children,m=e.className,f=e.removeScrollBar,l=e.enabled,p=e.shards,v=e.sideCar,g=e.noRelative,E=e.noIsolation,u=e.inert,h=e.allowPinchZoom,y=e.as,b=y===void 0?"div":y,w=e.gapMode,k=hk(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=v,N=J5([r,t]),S=st(st({},k),o);return i.createElement(i.Fragment,null,l&&i.createElement(C,{sideCar:yk,removeScrollBar:f,shards:p,noRelative:g,noIsolation:E,inert:u,setCallbacks:a,allowPinchZoom:!!h,lockRef:r,gapMode:w}),c?i.cloneElement(i.Children.only(s),st(st({},S),{ref:N})):i.createElement(b,st({},S,{className:m,ref:N}),s))});cu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};cu.classNames={fullWidth:dc,zeroRight:lc};var n4=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function o4(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=n4();return t&&e.setAttribute("nonce",t),e}function a4(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function s4(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var i4=function(){var e=0,t=null;return{add:function(r){e==0&&(t=o4())&&(a4(t,r),s4(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},c4=function(){var e=i4();return function(t,r){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},bk=function(){var e=c4(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},u4={left:0,top:0,right:0,gap:0},cd=function(e){return parseInt(e||"",10)||0},l4=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[cd(r),cd(n),cd(o)]},d4=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return u4;var t=l4(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},f4=bk(),Eo="data-scroll-locked",p4=function(e,t,r,n){var o=e.left,a=e.top,c=e.right,s=e.gap;return r===void 0&&(r="margin"),`
501
- .`.concat(V5,` {
502
- overflow: hidden `).concat(n,`;
503
- padding-right: `).concat(s,"px ").concat(n,`;
504
- }
505
- body[`).concat(Eo,`] {
506
- overflow: hidden `).concat(n,`;
507
- overscroll-behavior: contain;
508
- `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
509
- padding-left: `.concat(o,`px;
510
- padding-top: `).concat(a,`px;
511
- padding-right: `).concat(c,`px;
512
- margin-left:0;
513
- margin-top:0;
514
- margin-right: `).concat(s,"px ").concat(n,`;
515
- `),r==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),`
516
- }
517
-
518
- .`).concat(lc,` {
519
- right: `).concat(s,"px ").concat(n,`;
520
- }
521
-
522
- .`).concat(dc,` {
523
- margin-right: `).concat(s,"px ").concat(n,`;
524
- }
525
-
526
- .`).concat(lc," .").concat(lc,` {
527
- right: 0 `).concat(n,`;
528
- }
529
-
530
- .`).concat(dc," .").concat(dc,` {
531
- margin-right: 0 `).concat(n,`;
532
- }
533
-
534
- body[`).concat(Eo,`] {
535
- `).concat(q5,": ").concat(s,`px;
536
- }
537
- `)},_g=function(){var e=parseInt(document.body.getAttribute(Eo)||"0",10);return isFinite(e)?e:0},m4=function(){i.useEffect(function(){return document.body.setAttribute(Eo,(_g()+1).toString()),function(){var e=_g()-1;e<=0?document.body.removeAttribute(Eo):document.body.setAttribute(Eo,e.toString())}},[])},v4=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;m4();var a=i.useMemo(function(){return d4(o)},[o]);return i.createElement(f4,{styles:p4(a,!t,o,r?"":"!important")})},pp=!1;if(typeof window<"u")try{var Ys=Object.defineProperty({},"passive",{get:function(){return pp=!0,!0}});window.addEventListener("test",Ys,Ys),window.removeEventListener("test",Ys,Ys)}catch{pp=!1}var In=pp?{passive:!1}:!1,h4=function(e){return e.tagName==="TEXTAREA"},wk=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!h4(e)&&r[t]==="visible")},g4=function(e){return wk(e,"overflowY")},y4=function(e){return wk(e,"overflowX")},Tg=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=xk(e,n);if(o){var a=Ek(e,n),c=a[1],s=a[2];if(c>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},b4=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},w4=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},xk=function(e,t){return e==="v"?g4(t):y4(t)},Ek=function(e,t){return e==="v"?b4(t):w4(t)},x4=function(e,t){return e==="h"&&t==="rtl"?-1:1},E4=function(e,t,r,n,o){var a=x4(e,window.getComputedStyle(t).direction),c=a*n,s=r.target,m=t.contains(s),f=!1,l=c>0,p=0,v=0;do{if(!s)break;var g=Ek(e,s),E=g[0],u=g[1],h=g[2],y=u-h-a*E;(E||y)&&xk(e,s)&&(p+=y,v+=E);var b=s.parentNode;s=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!m&&s!==document.body||m&&(t.contains(s)||t===s));return(l&&Math.abs(p)<1||!l&&Math.abs(v)<1)&&(f=!0),f},Bs=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Dg=function(e){return[e.deltaX,e.deltaY]},jg=function(e){return e&&"current"in e?e.current:e},k4=function(e,t){return e[0]===t[0]&&e[1]===t[1]},S4=function(e){return`
538
- .block-interactivity-`.concat(e,` {pointer-events: none;}
539
- .allow-interactivity-`).concat(e,` {pointer-events: all;}
540
- `)},C4=0,Ln=[];function R4(e){var t=i.useRef([]),r=i.useRef([0,0]),n=i.useRef(),o=i.useState(C4++)[0],a=i.useState(bk)[0],c=i.useRef(e);i.useEffect(function(){c.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var u=H5([e.lockRef.current],(e.shards||[]).map(jg)).filter(Boolean);return u.forEach(function(h){return h.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),u.forEach(function(h){return h.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=i.useCallback(function(u,h){if("touches"in u&&u.touches.length===2||u.type==="wheel"&&u.ctrlKey)return!c.current.allowPinchZoom;var y=Bs(u),b=r.current,w="deltaX"in u?u.deltaX:b[0]-y[0],k="deltaY"in u?u.deltaY:b[1]-y[1],C,N=u.target,S=Math.abs(w)>Math.abs(k)?"h":"v";if("touches"in u&&S==="h"&&N.type==="range")return!1;var R=Tg(S,N);if(!R)return!0;if(R?C=S:(C=S==="v"?"h":"v",R=Tg(S,N)),!R)return!1;if(!n.current&&"changedTouches"in u&&(w||k)&&(n.current=C),!C)return!0;var D=n.current||C;return E4(D,h,u,D==="h"?w:k)},[]),m=i.useCallback(function(u){var h=u;if(!(!Ln.length||Ln[Ln.length-1]!==a)){var y="deltaY"in h?Dg(h):Bs(h),b=t.current.filter(function(C){return C.name===h.type&&(C.target===h.target||h.target===C.shadowParent)&&k4(C.delta,y)})[0];if(b&&b.should){h.cancelable&&h.preventDefault();return}if(!b){var w=(c.current.shards||[]).map(jg).filter(Boolean).filter(function(C){return C.contains(h.target)}),k=w.length>0?s(h,w[0]):!c.current.noIsolation;k&&h.cancelable&&h.preventDefault()}}},[]),f=i.useCallback(function(u,h,y,b){var w={name:u,delta:h,target:y,should:b,shadowParent:O4(y)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(k){return k!==w})},1)},[]),l=i.useCallback(function(u){r.current=Bs(u),n.current=void 0},[]),p=i.useCallback(function(u){f(u.type,Dg(u),u.target,s(u,e.lockRef.current))},[]),v=i.useCallback(function(u){f(u.type,Bs(u),u.target,s(u,e.lockRef.current))},[]);i.useEffect(function(){return Ln.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:v}),document.addEventListener("wheel",m,In),document.addEventListener("touchmove",m,In),document.addEventListener("touchstart",l,In),function(){Ln=Ln.filter(function(u){return u!==a}),document.removeEventListener("wheel",m,In),document.removeEventListener("touchmove",m,In),document.removeEventListener("touchstart",l,In)}},[]);var g=e.removeScrollBar,E=e.inert;return i.createElement(i.Fragment,null,E?i.createElement(a,{styles:S4(o)}):null,g?i.createElement(v4,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function O4(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const N4=r4(yk,R4);var kk=i.forwardRef(function(e,t){return i.createElement(cu,st({},e,{ref:t,sideCar:N4}))});kk.classNames=cu.classNames;var _4=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Fn=new WeakMap,Ks=new WeakMap,Xs={},ud=0,Sk=function(e){return e&&(e.host||Sk(e.parentNode))},T4=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=Sk(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},D4=function(e,t,r,n){var o=T4(t,Array.isArray(e)?e:[e]);Xs[r]||(Xs[r]=new WeakMap);var a=Xs[r],c=[],s=new Set,m=new Set(o),f=function(p){!p||s.has(p)||(s.add(p),f(p.parentNode))};o.forEach(f);var l=function(p){!p||m.has(p)||Array.prototype.forEach.call(p.children,function(v){if(s.has(v))l(v);else try{var g=v.getAttribute(n),E=g!==null&&g!=="false",u=(Fn.get(v)||0)+1,h=(a.get(v)||0)+1;Fn.set(v,u),a.set(v,h),c.push(v),u===1&&E&&Ks.set(v,!0),h===1&&v.setAttribute(r,"true"),E||v.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",v,y)}})};return l(t),s.clear(),ud++,function(){c.forEach(function(p){var v=Fn.get(p)-1,g=a.get(p)-1;Fn.set(p,v),a.set(p,g),v||(Ks.has(p)||p.removeAttribute(n),Ks.delete(p)),g||p.removeAttribute(r)}),ud--,ud||(Fn=new WeakMap,Fn=new WeakMap,Ks=new WeakMap,Xs={})}},j4=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=_4(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),D4(n,o,r,"aria-hidden")):function(){return null}},Ck="Dialog",[Rk]=su(Ck),[foe,Lt]=Rk(Ck),Ok="DialogTrigger",P4=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Lt(Ok,r),a=bt(t,o.triggerRef);return Z.jsx(Te.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Sm(o.open),...n,ref:a,onClick:xe(e.onClick,o.onOpenToggle)})});P4.displayName=Ok;var M4="DialogPortal",[poe,Nk]=Rk(M4,{forceMount:void 0}),Wc="DialogOverlay",A4=i.forwardRef((e,t)=>{const r=Nk(Wc,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Lt(Wc,e.__scopeDialog);return a.modal?Z.jsx(iu,{present:n||a.open,children:Z.jsx(L4,{...o,ref:t})}):null});A4.displayName=Wc;var I4=q.createSlot("DialogOverlay.RemoveScroll"),L4=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Lt(Wc,r);return Z.jsx(kk,{as:I4,allowPinchZoom:!0,shards:[o.contentRef],children:Z.jsx(Te.div,{"data-state":Sm(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),Xr="DialogContent",F4=i.forwardRef((e,t)=>{const r=Nk(Xr,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Lt(Xr,e.__scopeDialog);return Z.jsx(iu,{present:n||a.open,children:a.modal?Z.jsx(W4,{...o,ref:t}):Z.jsx($4,{...o,ref:t})})});F4.displayName=Xr;var W4=i.forwardRef((e,t)=>{const r=Lt(Xr,e.__scopeDialog),n=i.useRef(null),o=bt(t,r.contentRef,n);return i.useEffect(()=>{const a=n.current;if(a)return j4(a)},[]),Z.jsx(_k,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:xe(e.onCloseAutoFocus,a=>{a.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:xe(e.onPointerDownOutside,a=>{const c=a.detail.originalEvent,s=c.button===0&&c.ctrlKey===!0;(c.button===2||s)&&a.preventDefault()}),onFocusOutside:xe(e.onFocusOutside,a=>a.preventDefault())})}),$4=i.forwardRef((e,t)=>{const r=Lt(Xr,e.__scopeDialog),n=i.useRef(!1),o=i.useRef(!1);return Z.jsx(_k,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(n.current||r.triggerRef.current?.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=a.target;r.triggerRef.current?.contains(c)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),_k=i.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...c}=e,s=Lt(Xr,r),m=i.useRef(null),f=bt(t,m);return X5(),Z.jsxs(Z.Fragment,{children:[Z.jsx(mk,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:Z.jsx(fk,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":Sm(s.open),...c,ref:f,onDismiss:()=>s.onOpenChange(!1)})}),Z.jsxs(Z.Fragment,{children:[Z.jsx(B4,{titleId:s.titleId}),Z.jsx(X4,{contentRef:m,descriptionId:s.descriptionId})]})]})}),km="DialogTitle",z4=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Lt(km,r);return Z.jsx(Te.h2,{id:o.titleId,...n,ref:t})});z4.displayName=km;var Tk="DialogDescription",U4=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Lt(Tk,r);return Z.jsx(Te.p,{id:o.descriptionId,...n,ref:t})});U4.displayName=Tk;var Dk="DialogClose",Y4=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Lt(Dk,r);return Z.jsx(Te.button,{type:"button",...n,ref:t,onClick:xe(e.onClick,()=>o.onOpenChange(!1))})});Y4.displayName=Dk;function Sm(e){return e?"open":"closed"}var jk="DialogTitleWarning",[moe,Pk]=g5(jk,{contentName:Xr,titleName:km,docsSlug:"dialog"}),B4=({titleId:e})=>{const t=Pk(jk),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
541
-
542
- If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
543
-
544
- For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},K4="DialogDescriptionWarning",X4=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Pk(K4).contentName}}.`;return i.useEffect(()=>{const n=e.current?.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},ld={exports:{}},na={};/**
545
- * @license React
546
- * react-jsx-runtime.production.js
547
- *
548
- * Copyright (c) Meta Platforms, Inc. and affiliates.
549
- *
550
- * This source code is licensed under the MIT license found in the
551
- * LICENSE file in the root directory of this source tree.
552
- */var Pg;function H4(){if(Pg)return na;Pg=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,o,a){var c=null;if(a!==void 0&&(c=""+a),o.key!==void 0&&(c=""+o.key),"key"in o){a={};for(var s in o)s!=="key"&&(a[s]=o[s])}else a=o;return o=a.ref,{$$typeof:e,type:n,key:c,ref:o!==void 0?o:null,props:a}}return na.Fragment=t,na.jsx=r,na.jsxs=r,na}var Hs={};/**
553
- * @license React
554
- * react-jsx-runtime.development.js
555
- *
556
- * Copyright (c) Meta Platforms, Inc. and affiliates.
557
- *
558
- * This source code is licensed under the MIT license found in the
559
- * LICENSE file in the root directory of this source tree.
560
- */var Mg;function V4(){return Mg||(Mg=1,process.env.NODE_ENV!=="production"&&(function(){function e(d){if(d==null)return null;if(typeof d=="function")return d.$$typeof===L?null:d.displayName||d.name||null;if(typeof d=="string")return d;switch(d){case u:return"Fragment";case y:return"Profiler";case h:return"StrictMode";case C:return"Suspense";case N:return"SuspenseList";case D:return"Activity"}if(typeof d=="object")switch(typeof d.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),d.$$typeof){case E:return"Portal";case w:return(d.displayName||"Context")+".Provider";case b:return(d._context.displayName||"Context")+".Consumer";case k:var x=d.render;return d=d.displayName,d||(d=x.displayName||x.name||"",d=d!==""?"ForwardRef("+d+")":"ForwardRef"),d;case S:return x=d.displayName||null,x!==null?x:e(d.type)||"Memo";case R:x=d._payload,d=d._init;try{return e(d(x))}catch{}}return null}function t(d){return""+d}function r(d){try{t(d);var x=!1}catch{x=!0}if(x){x=console;var O=x.error,_=typeof Symbol=="function"&&Symbol.toStringTag&&d[Symbol.toStringTag]||d.constructor.name||"Object";return O.call(x,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",_),t(d)}}function n(d){if(d===u)return"<>";if(typeof d=="object"&&d!==null&&d.$$typeof===R)return"<...>";try{var x=e(d);return x?"<"+x+">":"<...>"}catch{return"<...>"}}function o(){var d=I.A;return d===null?null:d.getOwner()}function a(){return Error("react-stack-top-frame")}function c(d){if($.call(d,"key")){var x=Object.getOwnPropertyDescriptor(d,"key").get;if(x&&x.isReactWarning)return!1}return d.key!==void 0}function s(d,x){function O(){M||(M=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",x))}O.isReactWarning=!0,Object.defineProperty(d,"key",{get:O,configurable:!0})}function m(){var d=e(this.type);return K[d]||(K[d]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),d=this.props.ref,d!==void 0?d:null}function f(d,x,O,_,A,j,X,B){return O=j.ref,d={$$typeof:g,type:d,key:x,props:j,_owner:A},(O!==void 0?O:null)!==null?Object.defineProperty(d,"ref",{enumerable:!1,get:m}):Object.defineProperty(d,"ref",{enumerable:!1,value:null}),d._store={},Object.defineProperty(d._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(d,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(d,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:X}),Object.defineProperty(d,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:B}),Object.freeze&&(Object.freeze(d.props),Object.freeze(d)),d}function l(d,x,O,_,A,j,X,B){var T=x.children;if(T!==void 0)if(_)if(U(T)){for(_=0;_<T.length;_++)p(T[_]);Object.freeze&&Object.freeze(T)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else p(T);if($.call(x,"key")){T=e(d);var F=Object.keys(x).filter(function(se){return se!=="key"});_=0<F.length?"{key: someKey, "+F.join(": ..., ")+": ...}":"{key: someKey}",V[T+_]||(F=0<F.length?"{"+F.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
561
- let props = %s;
562
- <%s {...props} />
563
- React keys must be passed directly to JSX without using spread:
564
- let props = %s;
565
- <%s key={someKey} {...props} />`,_,T,F,T),V[T+_]=!0)}if(T=null,O!==void 0&&(r(O),T=""+O),c(x)&&(r(x.key),T=""+x.key),"key"in x){O={};for(var H in x)H!=="key"&&(O[H]=x[H])}else O=x;return T&&s(O,typeof d=="function"?d.displayName||d.name||"Unknown":d),f(d,T,j,A,o(),O,X,B)}function p(d){typeof d=="object"&&d!==null&&d.$$typeof===g&&d._store&&(d._store.validated=1)}var v=P,g=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),b=Symbol.for("react.consumer"),w=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),S=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),D=Symbol.for("react.activity"),L=Symbol.for("react.client.reference"),I=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$=Object.prototype.hasOwnProperty,U=Array.isArray,W=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(d){return d()}};var M,K={},Y=v.react_stack_bottom_frame.bind(v,a)(),z=W(n(a)),V={};Hs.Fragment=u,Hs.jsx=function(d,x,O,_,A){var j=1e4>I.recentlyCreatedOwnerStacks++;return l(d,x,O,!1,_,A,j?Error("react-stack-top-frame"):Y,j?W(n(d)):z)},Hs.jsxs=function(d,x,O,_,A){var j=1e4>I.recentlyCreatedOwnerStacks++;return l(d,x,O,!0,_,A,j?Error("react-stack-top-frame"):Y,j?W(n(d)):z)}})()),Hs}var Ag;function q4(){return Ag||(Ag=1,process.env.NODE_ENV==="production"?ld.exports=H4():ld.exports=V4()),ld.exports}var G=q4();P.createContext({locale:void 0});var Z4=(e,t,r,n,o,a,c,s)=>{let m=document.documentElement,f=["light","dark"];function l(g){(Array.isArray(e)?e:[e]).forEach(E=>{let u=E==="class",h=u&&a?o.map(y=>a[y]||y):o;u?(m.classList.remove(...h),m.classList.add(a&&a[g]?a[g]:g)):m.setAttribute(E,g)}),p(g)}function p(g){s&&f.includes(g)&&(m.style.colorScheme=g)}function v(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(n)l(n);else try{let g=localStorage.getItem(t)||r,E=c&&g==="system"?v():g;l(E)}catch{}};i.createContext(void 0);i.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:n,enableColorScheme:o,defaultTheme:a,value:c,themes:s,nonce:m,scriptProps:f})=>{let l=JSON.stringify([r,t,a,e,s,c,n,o]).slice(1,-1);return i.createElement("script",{...f,suppressHydrationWarning:!0,nonce:typeof window>"u"?m:"",dangerouslySetInnerHTML:{__html:`(${Z4.toString()})(${l})`}})});ae.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});ae.cva("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function Ee(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),r===!1||!n.defaultPrevented)return t?.(n)}}function Ig(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function G4(...e){return t=>{let r=!1;const n=e.map(o=>{const a=Ig(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():Ig(e[o],null)}}}}function wt(...e){return i.useCallback(G4(...e),e)}function J4(e,t){const r=i.createContext(t),n=a=>{const{children:c,...s}=a,m=i.useMemo(()=>s,Object.values(s));return G.jsx(r.Provider,{value:m,children:c})};n.displayName=e+"Provider";function o(a){const c=i.useContext(r);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,o]}function uu(e,t=[]){let r=[];function n(a,c){const s=i.createContext(c),m=r.length;r=[...r,c];const f=p=>{const{scope:v,children:g,...E}=p,u=v?.[e]?.[m]||s,h=i.useMemo(()=>E,Object.values(E));return G.jsx(u.Provider,{value:h,children:g})};f.displayName=a+"Provider";function l(p,v){const g=v?.[e]?.[m]||s,E=i.useContext(g);if(E)return E;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[f,l]}const o=()=>{const a=r.map(c=>i.createContext(c));return function(c){const s=c?.[e]||a;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:s}}),[c,s])}};return o.scopeName=e,[n,Q4(o,...t)]}function Q4(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(o){const a=n.reduce((c,{useScope:s,scopeName:m})=>{const f=s(o)[`__scope${m}`];return{...c,...f}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}var Sa=globalThis?.document?i.useLayoutEffect:()=>{},ez=i[" useId ".trim().toString()]||(()=>{}),tz=0;function Mk(e){const[t,r]=i.useState(ez());return Sa(()=>{r(n=>n??String(tz++))},[e]),t?`radix-${t}`:""}var rz=i[" useInsertionEffect ".trim().toString()]||Sa;function Ak({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,a,c]=nz({defaultProp:t,onChange:r}),s=e!==void 0,m=s?e:o;{const l=i.useRef(e!==void 0);i.useEffect(()=>{const p=l.current;p!==s&&console.warn(`${n} is changing from ${p?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),l.current=s},[s,n])}const f=i.useCallback(l=>{if(s){const p=oz(l)?l(e):l;p!==e&&c.current?.(p)}else a(l)},[s,e,a,c]);return[m,f]}function nz({defaultProp:e,onChange:t}){const[r,n]=i.useState(e),o=i.useRef(r),a=i.useRef(t);return rz(()=>{a.current=t},[t]),i.useEffect(()=>{o.current!==r&&(a.current?.(r),o.current=r)},[r,o]),[r,n,a]}function oz(e){return typeof e=="function"}var az=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],De=az.reduce((e,t)=>{const r=q.createSlot(`Primitive.${t}`),n=i.forwardRef((o,a)=>{const{asChild:c,...s}=o,m=c?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),G.jsx(m,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function sz(e,t){e&&we.flushSync(()=>e.dispatchEvent(t))}function Mo(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...r)=>t.current?.(...r),[])}function iz(e,t=globalThis?.document){const r=Mo(e);i.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var cz="DismissableLayer",mp="dismissableLayer.update",uz="dismissableLayer.pointerDownOutside",lz="dismissableLayer.focusOutside",Lg,Ik=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Lk=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:c,onDismiss:s,...m}=e,f=i.useContext(Ik),[l,p]=i.useState(null),v=l?.ownerDocument??globalThis?.document,[,g]=i.useState({}),E=wt(t,S=>p(S)),u=Array.from(f.layers),[h]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),y=u.indexOf(h),b=l?u.indexOf(l):-1,w=f.layersWithOutsidePointerEventsDisabled.size>0,k=b>=y,C=pz(S=>{const R=S.target,D=[...f.branches].some(L=>L.contains(R));!k||D||(o?.(S),c?.(S),S.defaultPrevented||s?.())},v),N=mz(S=>{const R=S.target;[...f.branches].some(D=>D.contains(R))||(a?.(S),c?.(S),S.defaultPrevented||s?.())},v);return iz(S=>{b===f.layers.size-1&&(n?.(S),!S.defaultPrevented&&s&&(S.preventDefault(),s()))},v),i.useEffect(()=>{if(l)return r&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(Lg=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(l)),f.layers.add(l),Fg(),()=>{r&&f.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=Lg)}},[l,v,r,f]),i.useEffect(()=>()=>{l&&(f.layers.delete(l),f.layersWithOutsidePointerEventsDisabled.delete(l),Fg())},[l,f]),i.useEffect(()=>{const S=()=>g({});return document.addEventListener(mp,S),()=>document.removeEventListener(mp,S)},[]),G.jsx(De.div,{...m,ref:E,style:{pointerEvents:w?k?"auto":"none":void 0,...e.style},onFocusCapture:Ee(e.onFocusCapture,N.onFocusCapture),onBlurCapture:Ee(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:Ee(e.onPointerDownCapture,C.onPointerDownCapture)})});Lk.displayName=cz;var dz="DismissableLayerBranch",fz=i.forwardRef((e,t)=>{const r=i.useContext(Ik),n=i.useRef(null),o=wt(t,n);return i.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),G.jsx(De.div,{...e,ref:o})});fz.displayName=dz;function pz(e,t=globalThis?.document){const r=Mo(e),n=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let m=function(){Fk(uz,r,f,{discrete:!0})};const f={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=m,t.addEventListener("click",o.current,{once:!0})):m()}else t.removeEventListener("click",o.current);n.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function mz(e,t=globalThis?.document){const r=Mo(e),n=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!n.current&&Fk(lz,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function Fg(){const e=new CustomEvent(mp);document.dispatchEvent(e)}function Fk(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?sz(o,a):o.dispatchEvent(a)}var dd="focusScope.autoFocusOnMount",fd="focusScope.autoFocusOnUnmount",Wg={bubbles:!1,cancelable:!0},vz="FocusScope",Wk=i.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...c}=e,[s,m]=i.useState(null),f=Mo(o),l=Mo(a),p=i.useRef(null),v=wt(t,u=>m(u)),g=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(n){let u=function(w){if(g.paused||!s)return;const k=w.target;s.contains(k)?p.current=k:mr(p.current,{select:!0})},h=function(w){if(g.paused||!s)return;const k=w.relatedTarget;k!==null&&(s.contains(k)||mr(p.current,{select:!0}))},y=function(w){if(document.activeElement===document.body)for(const k of w)k.removedNodes.length>0&&mr(s)};document.addEventListener("focusin",u),document.addEventListener("focusout",h);const b=new MutationObserver(y);return s&&b.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",u),document.removeEventListener("focusout",h),b.disconnect()}}},[n,s,g.paused]),i.useEffect(()=>{if(s){zg.add(g);const u=document.activeElement;if(!s.contains(u)){const h=new CustomEvent(dd,Wg);s.addEventListener(dd,f),s.dispatchEvent(h),h.defaultPrevented||(hz(xz($k(s)),{select:!0}),document.activeElement===u&&mr(s))}return()=>{s.removeEventListener(dd,f),setTimeout(()=>{const h=new CustomEvent(fd,Wg);s.addEventListener(fd,l),s.dispatchEvent(h),h.defaultPrevented||mr(u??document.body,{select:!0}),s.removeEventListener(fd,l),zg.remove(g)},0)}}},[s,f,l,g]);const E=i.useCallback(u=>{if(!r&&!n||g.paused)return;const h=u.key==="Tab"&&!u.altKey&&!u.ctrlKey&&!u.metaKey,y=document.activeElement;if(h&&y){const b=u.currentTarget,[w,k]=gz(b);w&&k?!u.shiftKey&&y===k?(u.preventDefault(),r&&mr(w,{select:!0})):u.shiftKey&&y===w&&(u.preventDefault(),r&&mr(k,{select:!0})):y===b&&u.preventDefault()}},[r,n,g.paused]);return G.jsx(De.div,{tabIndex:-1,...c,ref:v,onKeyDown:E})});Wk.displayName=vz;function hz(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(mr(n,{select:t}),document.activeElement!==r)return}function gz(e){const t=$k(e),r=$g(t,e),n=$g(t.reverse(),e);return[r,n]}function $k(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function $g(e,t){for(const r of e)if(!yz(r,{upTo:t}))return r}function yz(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function bz(e){return e instanceof HTMLInputElement&&"select"in e}function mr(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&bz(e)&&t&&e.select()}}var zg=wz();function wz(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=Ug(e,t),e.unshift(t)},remove(t){e=Ug(e,t),e[0]?.resume()}}}function Ug(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function xz(e){return e.filter(t=>t.tagName!=="A")}var Ez="Portal",kz=i.forwardRef((e,t)=>{const{container:r,...n}=e,[o,a]=i.useState(!1);Sa(()=>a(!0),[]);const c=r||o&&globalThis?.document?.body;return c?be.createPortal(G.jsx(De.div,{...n,ref:t}),c):null});kz.displayName=Ez;function Sz(e,t){return i.useReducer((r,n)=>t[r][n]??r,e)}var lu=e=>{const{present:t,children:r}=e,n=Cz(t),o=typeof r=="function"?r({present:n.isPresent}):i.Children.only(r),a=wt(n.ref,Rz(o));return typeof r=="function"||n.isPresent?i.cloneElement(o,{ref:a}):null};lu.displayName="Presence";function Cz(e){const[t,r]=i.useState(),n=i.useRef(null),o=i.useRef(e),a=i.useRef("none"),c=e?"mounted":"unmounted",[s,m]=Sz(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const f=Vs(n.current);a.current=s==="mounted"?f:"none"},[s]),Sa(()=>{const f=n.current,l=o.current;if(l!==e){const p=a.current,v=Vs(f);e?m("MOUNT"):v==="none"||f?.display==="none"?m("UNMOUNT"):m(l&&p!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,m]),Sa(()=>{if(t){let f;const l=t.ownerDocument.defaultView??window,p=g=>{const E=Vs(n.current).includes(CSS.escape(g.animationName));if(g.target===t&&E&&(m("ANIMATION_END"),!o.current)){const u=t.style.animationFillMode;t.style.animationFillMode="forwards",f=l.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=u)})}},v=g=>{g.target===t&&(a.current=Vs(n.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{l.clearTimeout(f),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else m("ANIMATION_END")},[t,m]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:i.useCallback(f=>{n.current=f?getComputedStyle(f):null,r(f)},[])}}function Vs(e){return e?.animationName||"none"}function Rz(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var pd=0;function Oz(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Yg()),document.body.insertAdjacentElement("beforeend",e[1]??Yg()),pd++,()=>{pd===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),pd--}},[])}function Yg(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var it=function(){return it=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},it.apply(this,arguments)};function zk(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function Nz(e,t,r){for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var fc="right-scroll-bar-position",pc="width-before-scroll-bar",_z="with-scroll-bars-hidden",Tz="--removed-body-scroll-bar-size";function md(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Dz(e,t){var r=P.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var jz=typeof window<"u"?i.useLayoutEffect:i.useEffect,Bg=new WeakMap;function Pz(e,t){var r=Dz(null,function(n){return e.forEach(function(o){return md(o,n)})});return jz(function(){var n=Bg.get(r);if(n){var o=new Set(n),a=new Set(e),c=r.current;o.forEach(function(s){a.has(s)||md(s,null)}),a.forEach(function(s){o.has(s)||md(s,c)})}Bg.set(r,e)},[e]),r}function Mz(e){return e}function Az(e,t){t===void 0&&(t=Mz);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var c=t(a,n);return r.push(c),function(){r=r.filter(function(s){return s!==c})}},assignSyncMedium:function(a){for(n=!0;r.length;){var c=r;r=[],c.forEach(a)}r={push:function(s){return a(s)},filter:function(){return r}}},assignMedium:function(a){n=!0;var c=[];if(r.length){var s=r;r=[],s.forEach(a),c=r}var m=function(){var l=c;c=[],l.forEach(a)},f=function(){return Promise.resolve().then(m)};f(),r={push:function(l){c.push(l),f()},filter:function(l){return c=c.filter(l),r}}}};return o}function Iz(e){e===void 0&&(e={});var t=Az(null);return t.options=it({async:!0,ssr:!1},e),t}var Uk=function(e){var t=e.sideCar,r=zk(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return i.createElement(n,it({},r))};Uk.isSideCarExport=!0;function Lz(e,t){return e.useMedium(t),Uk}var Yk=Iz(),vd=function(){},du=i.forwardRef(function(e,t){var r=i.useRef(null),n=i.useState({onScrollCapture:vd,onWheelCapture:vd,onTouchMoveCapture:vd}),o=n[0],a=n[1],c=e.forwardProps,s=e.children,m=e.className,f=e.removeScrollBar,l=e.enabled,p=e.shards,v=e.sideCar,g=e.noRelative,E=e.noIsolation,u=e.inert,h=e.allowPinchZoom,y=e.as,b=y===void 0?"div":y,w=e.gapMode,k=zk(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=v,N=Pz([r,t]),S=it(it({},k),o);return i.createElement(i.Fragment,null,l&&i.createElement(C,{sideCar:Yk,removeScrollBar:f,shards:p,noRelative:g,noIsolation:E,inert:u,setCallbacks:a,allowPinchZoom:!!h,lockRef:r,gapMode:w}),c?i.cloneElement(i.Children.only(s),it(it({},S),{ref:N})):i.createElement(b,it({},S,{className:m,ref:N}),s))});du.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};du.classNames={fullWidth:pc,zeroRight:fc};var Fz=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Wz(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Fz();return t&&e.setAttribute("nonce",t),e}function $z(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function zz(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Uz=function(){var e=0,t=null;return{add:function(r){e==0&&(t=Wz())&&($z(t,r),zz(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Yz=function(){var e=Uz();return function(t,r){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Bk=function(){var e=Yz(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},Bz={left:0,top:0,right:0,gap:0},hd=function(e){return parseInt(e||"",10)||0},Kz=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[hd(r),hd(n),hd(o)]},Xz=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Bz;var t=Kz(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},Hz=Bk(),ko="data-scroll-locked",Vz=function(e,t,r,n){var o=e.left,a=e.top,c=e.right,s=e.gap;return r===void 0&&(r="margin"),`
566
- .`.concat(_z,` {
567
- overflow: hidden `).concat(n,`;
568
- padding-right: `).concat(s,"px ").concat(n,`;
569
- }
570
- body[`).concat(ko,`] {
571
- overflow: hidden `).concat(n,`;
572
- overscroll-behavior: contain;
573
- `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
574
- padding-left: `.concat(o,`px;
575
- padding-top: `).concat(a,`px;
576
- padding-right: `).concat(c,`px;
577
- margin-left:0;
578
- margin-top:0;
579
- margin-right: `).concat(s,"px ").concat(n,`;
580
- `),r==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),`
581
- }
582
-
583
- .`).concat(fc,` {
584
- right: `).concat(s,"px ").concat(n,`;
585
- }
586
-
587
- .`).concat(pc,` {
588
- margin-right: `).concat(s,"px ").concat(n,`;
589
- }
590
-
591
- .`).concat(fc," .").concat(fc,` {
592
- right: 0 `).concat(n,`;
593
- }
594
-
595
- .`).concat(pc," .").concat(pc,` {
596
- margin-right: 0 `).concat(n,`;
597
- }
598
-
599
- body[`).concat(ko,`] {
600
- `).concat(Tz,": ").concat(s,`px;
601
- }
602
- `)},Kg=function(){var e=parseInt(document.body.getAttribute(ko)||"0",10);return isFinite(e)?e:0},qz=function(){i.useEffect(function(){return document.body.setAttribute(ko,(Kg()+1).toString()),function(){var e=Kg()-1;e<=0?document.body.removeAttribute(ko):document.body.setAttribute(ko,e.toString())}},[])},Zz=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;qz();var a=i.useMemo(function(){return Xz(o)},[o]);return i.createElement(Hz,{styles:Vz(a,!t,o,r?"":"!important")})},vp=!1;if(typeof window<"u")try{var qs=Object.defineProperty({},"passive",{get:function(){return vp=!0,!0}});window.addEventListener("test",qs,qs),window.removeEventListener("test",qs,qs)}catch{vp=!1}var Wn=vp?{passive:!1}:!1,Gz=function(e){return e.tagName==="TEXTAREA"},Kk=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!Gz(e)&&r[t]==="visible")},Jz=function(e){return Kk(e,"overflowY")},Qz=function(e){return Kk(e,"overflowX")},Xg=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=Xk(e,n);if(o){var a=Hk(e,n),c=a[1],s=a[2];if(c>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},eU=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},tU=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},Xk=function(e,t){return e==="v"?Jz(t):Qz(t)},Hk=function(e,t){return e==="v"?eU(t):tU(t)},rU=function(e,t){return e==="h"&&t==="rtl"?-1:1},nU=function(e,t,r,n,o){var a=rU(e,window.getComputedStyle(t).direction),c=a*n,s=r.target,m=t.contains(s),f=!1,l=c>0,p=0,v=0;do{if(!s)break;var g=Hk(e,s),E=g[0],u=g[1],h=g[2],y=u-h-a*E;(E||y)&&Xk(e,s)&&(p+=y,v+=E);var b=s.parentNode;s=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!m&&s!==document.body||m&&(t.contains(s)||t===s));return(l&&Math.abs(p)<1||!l&&Math.abs(v)<1)&&(f=!0),f},Zs=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Hg=function(e){return[e.deltaX,e.deltaY]},Vg=function(e){return e&&"current"in e?e.current:e},oU=function(e,t){return e[0]===t[0]&&e[1]===t[1]},aU=function(e){return`
603
- .block-interactivity-`.concat(e,` {pointer-events: none;}
604
- .allow-interactivity-`).concat(e,` {pointer-events: all;}
605
- `)},sU=0,$n=[];function iU(e){var t=i.useRef([]),r=i.useRef([0,0]),n=i.useRef(),o=i.useState(sU++)[0],a=i.useState(Bk)[0],c=i.useRef(e);i.useEffect(function(){c.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var u=Nz([e.lockRef.current],(e.shards||[]).map(Vg)).filter(Boolean);return u.forEach(function(h){return h.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),u.forEach(function(h){return h.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=i.useCallback(function(u,h){if("touches"in u&&u.touches.length===2||u.type==="wheel"&&u.ctrlKey)return!c.current.allowPinchZoom;var y=Zs(u),b=r.current,w="deltaX"in u?u.deltaX:b[0]-y[0],k="deltaY"in u?u.deltaY:b[1]-y[1],C,N=u.target,S=Math.abs(w)>Math.abs(k)?"h":"v";if("touches"in u&&S==="h"&&N.type==="range")return!1;var R=Xg(S,N);if(!R)return!0;if(R?C=S:(C=S==="v"?"h":"v",R=Xg(S,N)),!R)return!1;if(!n.current&&"changedTouches"in u&&(w||k)&&(n.current=C),!C)return!0;var D=n.current||C;return nU(D,h,u,D==="h"?w:k)},[]),m=i.useCallback(function(u){var h=u;if(!(!$n.length||$n[$n.length-1]!==a)){var y="deltaY"in h?Hg(h):Zs(h),b=t.current.filter(function(C){return C.name===h.type&&(C.target===h.target||h.target===C.shadowParent)&&oU(C.delta,y)})[0];if(b&&b.should){h.cancelable&&h.preventDefault();return}if(!b){var w=(c.current.shards||[]).map(Vg).filter(Boolean).filter(function(C){return C.contains(h.target)}),k=w.length>0?s(h,w[0]):!c.current.noIsolation;k&&h.cancelable&&h.preventDefault()}}},[]),f=i.useCallback(function(u,h,y,b){var w={name:u,delta:h,target:y,should:b,shadowParent:cU(y)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(k){return k!==w})},1)},[]),l=i.useCallback(function(u){r.current=Zs(u),n.current=void 0},[]),p=i.useCallback(function(u){f(u.type,Hg(u),u.target,s(u,e.lockRef.current))},[]),v=i.useCallback(function(u){f(u.type,Zs(u),u.target,s(u,e.lockRef.current))},[]);i.useEffect(function(){return $n.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:v}),document.addEventListener("wheel",m,Wn),document.addEventListener("touchmove",m,Wn),document.addEventListener("touchstart",l,Wn),function(){$n=$n.filter(function(u){return u!==a}),document.removeEventListener("wheel",m,Wn),document.removeEventListener("touchmove",m,Wn),document.removeEventListener("touchstart",l,Wn)}},[]);var g=e.removeScrollBar,E=e.inert;return i.createElement(i.Fragment,null,E?i.createElement(a,{styles:aU(o)}):null,g?i.createElement(Zz,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function cU(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const uU=Lz(Yk,iU);var Vk=i.forwardRef(function(e,t){return i.createElement(du,it({},e,{ref:t,sideCar:uU}))});Vk.classNames=du.classNames;var lU=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},zn=new WeakMap,Gs=new WeakMap,Js={},gd=0,qk=function(e){return e&&(e.host||qk(e.parentNode))},dU=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=qk(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},fU=function(e,t,r,n){var o=dU(t,Array.isArray(e)?e:[e]);Js[r]||(Js[r]=new WeakMap);var a=Js[r],c=[],s=new Set,m=new Set(o),f=function(p){!p||s.has(p)||(s.add(p),f(p.parentNode))};o.forEach(f);var l=function(p){!p||m.has(p)||Array.prototype.forEach.call(p.children,function(v){if(s.has(v))l(v);else try{var g=v.getAttribute(n),E=g!==null&&g!=="false",u=(zn.get(v)||0)+1,h=(a.get(v)||0)+1;zn.set(v,u),a.set(v,h),c.push(v),u===1&&E&&Gs.set(v,!0),h===1&&v.setAttribute(r,"true"),E||v.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",v,y)}})};return l(t),s.clear(),gd++,function(){c.forEach(function(p){var v=zn.get(p)-1,g=a.get(p)-1;zn.set(p,v),a.set(p,g),v||(Gs.has(p)||p.removeAttribute(n),Gs.delete(p)),g||p.removeAttribute(r)}),gd--,gd||(zn=new WeakMap,zn=new WeakMap,Gs=new WeakMap,Js={})}},pU=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=lU(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),fU(n,o,r,"aria-hidden")):function(){return null}},Zk="Dialog",[Gk]=uu(Zk),[voe,Ft]=Gk(Zk),Jk="DialogTrigger",mU=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ft(Jk,r),a=wt(t,o.triggerRef);return G.jsx(De.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Rm(o.open),...n,ref:a,onClick:Ee(e.onClick,o.onOpenToggle)})});mU.displayName=Jk;var vU="DialogPortal",[hoe,Qk]=Gk(vU,{forceMount:void 0}),$c="DialogOverlay",hU=i.forwardRef((e,t)=>{const r=Qk($c,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Ft($c,e.__scopeDialog);return a.modal?G.jsx(lu,{present:n||a.open,children:G.jsx(yU,{...o,ref:t})}):null});hU.displayName=$c;var gU=q.createSlot("DialogOverlay.RemoveScroll"),yU=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ft($c,r);return G.jsx(Vk,{as:gU,allowPinchZoom:!0,shards:[o.contentRef],children:G.jsx(De.div,{"data-state":Rm(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),Hr="DialogContent",bU=i.forwardRef((e,t)=>{const r=Qk(Hr,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Ft(Hr,e.__scopeDialog);return G.jsx(lu,{present:n||a.open,children:a.modal?G.jsx(wU,{...o,ref:t}):G.jsx(xU,{...o,ref:t})})});bU.displayName=Hr;var wU=i.forwardRef((e,t)=>{const r=Ft(Hr,e.__scopeDialog),n=i.useRef(null),o=wt(t,r.contentRef,n);return i.useEffect(()=>{const a=n.current;if(a)return pU(a)},[]),G.jsx(eS,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ee(e.onCloseAutoFocus,a=>{a.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:Ee(e.onPointerDownOutside,a=>{const c=a.detail.originalEvent,s=c.button===0&&c.ctrlKey===!0;(c.button===2||s)&&a.preventDefault()}),onFocusOutside:Ee(e.onFocusOutside,a=>a.preventDefault())})}),xU=i.forwardRef((e,t)=>{const r=Ft(Hr,e.__scopeDialog),n=i.useRef(!1),o=i.useRef(!1);return G.jsx(eS,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(n.current||r.triggerRef.current?.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=a.target;r.triggerRef.current?.contains(c)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),eS=i.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...c}=e,s=Ft(Hr,r),m=i.useRef(null),f=wt(t,m);return Oz(),G.jsxs(G.Fragment,{children:[G.jsx(Wk,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:G.jsx(Lk,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":Rm(s.open),...c,ref:f,onDismiss:()=>s.onOpenChange(!1)})}),G.jsxs(G.Fragment,{children:[G.jsx(CU,{titleId:s.titleId}),G.jsx(OU,{contentRef:m,descriptionId:s.descriptionId})]})]})}),Cm="DialogTitle",EU=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ft(Cm,r);return G.jsx(De.h2,{id:o.titleId,...n,ref:t})});EU.displayName=Cm;var tS="DialogDescription",kU=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ft(tS,r);return G.jsx(De.p,{id:o.descriptionId,...n,ref:t})});kU.displayName=tS;var rS="DialogClose",SU=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ft(rS,r);return G.jsx(De.button,{type:"button",...n,ref:t,onClick:Ee(e.onClick,()=>o.onOpenChange(!1))})});SU.displayName=rS;function Rm(e){return e?"open":"closed"}var nS="DialogTitleWarning",[goe,oS]=J4(nS,{contentName:Hr,titleName:Cm,docsSlug:"dialog"}),CU=({titleId:e})=>{const t=oS(nS),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
606
-
607
- If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
608
-
609
- For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},RU="DialogDescriptionWarning",OU=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${oS(RU).contentName}}.`;return i.useEffect(()=>{const n=e.current?.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},yd={exports:{}},oa={};/**
610
- * @license React
611
- * react-jsx-runtime.production.js
612
- *
613
- * Copyright (c) Meta Platforms, Inc. and affiliates.
614
- *
615
- * This source code is licensed under the MIT license found in the
616
- * LICENSE file in the root directory of this source tree.
617
- */var qg;function NU(){if(qg)return oa;qg=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,o,a){var c=null;if(a!==void 0&&(c=""+a),o.key!==void 0&&(c=""+o.key),"key"in o){a={};for(var s in o)s!=="key"&&(a[s]=o[s])}else a=o;return o=a.ref,{$$typeof:e,type:n,key:c,ref:o!==void 0?o:null,props:a}}return oa.Fragment=t,oa.jsx=r,oa.jsxs=r,oa}var Qs={};/**
618
- * @license React
619
- * react-jsx-runtime.development.js
620
- *
621
- * Copyright (c) Meta Platforms, Inc. and affiliates.
622
- *
623
- * This source code is licensed under the MIT license found in the
624
- * LICENSE file in the root directory of this source tree.
625
- */var Zg;function _U(){return Zg||(Zg=1,process.env.NODE_ENV!=="production"&&(function(){function e(d){if(d==null)return null;if(typeof d=="function")return d.$$typeof===L?null:d.displayName||d.name||null;if(typeof d=="string")return d;switch(d){case u:return"Fragment";case y:return"Profiler";case h:return"StrictMode";case C:return"Suspense";case N:return"SuspenseList";case D:return"Activity"}if(typeof d=="object")switch(typeof d.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),d.$$typeof){case E:return"Portal";case w:return(d.displayName||"Context")+".Provider";case b:return(d._context.displayName||"Context")+".Consumer";case k:var x=d.render;return d=d.displayName,d||(d=x.displayName||x.name||"",d=d!==""?"ForwardRef("+d+")":"ForwardRef"),d;case S:return x=d.displayName||null,x!==null?x:e(d.type)||"Memo";case R:x=d._payload,d=d._init;try{return e(d(x))}catch{}}return null}function t(d){return""+d}function r(d){try{t(d);var x=!1}catch{x=!0}if(x){x=console;var O=x.error,_=typeof Symbol=="function"&&Symbol.toStringTag&&d[Symbol.toStringTag]||d.constructor.name||"Object";return O.call(x,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",_),t(d)}}function n(d){if(d===u)return"<>";if(typeof d=="object"&&d!==null&&d.$$typeof===R)return"<...>";try{var x=e(d);return x?"<"+x+">":"<...>"}catch{return"<...>"}}function o(){var d=I.A;return d===null?null:d.getOwner()}function a(){return Error("react-stack-top-frame")}function c(d){if($.call(d,"key")){var x=Object.getOwnPropertyDescriptor(d,"key").get;if(x&&x.isReactWarning)return!1}return d.key!==void 0}function s(d,x){function O(){M||(M=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",x))}O.isReactWarning=!0,Object.defineProperty(d,"key",{get:O,configurable:!0})}function m(){var d=e(this.type);return K[d]||(K[d]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),d=this.props.ref,d!==void 0?d:null}function f(d,x,O,_,A,j,X,B){return O=j.ref,d={$$typeof:g,type:d,key:x,props:j,_owner:A},(O!==void 0?O:null)!==null?Object.defineProperty(d,"ref",{enumerable:!1,get:m}):Object.defineProperty(d,"ref",{enumerable:!1,value:null}),d._store={},Object.defineProperty(d._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(d,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(d,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:X}),Object.defineProperty(d,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:B}),Object.freeze&&(Object.freeze(d.props),Object.freeze(d)),d}function l(d,x,O,_,A,j,X,B){var T=x.children;if(T!==void 0)if(_)if(U(T)){for(_=0;_<T.length;_++)p(T[_]);Object.freeze&&Object.freeze(T)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else p(T);if($.call(x,"key")){T=e(d);var F=Object.keys(x).filter(function(se){return se!=="key"});_=0<F.length?"{key: someKey, "+F.join(": ..., ")+": ...}":"{key: someKey}",V[T+_]||(F=0<F.length?"{"+F.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
626
- let props = %s;
627
- <%s {...props} />
628
- React keys must be passed directly to JSX without using spread:
629
- let props = %s;
630
- <%s key={someKey} {...props} />`,_,T,F,T),V[T+_]=!0)}if(T=null,O!==void 0&&(r(O),T=""+O),c(x)&&(r(x.key),T=""+x.key),"key"in x){O={};for(var H in x)H!=="key"&&(O[H]=x[H])}else O=x;return T&&s(O,typeof d=="function"?d.displayName||d.name||"Unknown":d),f(d,T,j,A,o(),O,X,B)}function p(d){typeof d=="object"&&d!==null&&d.$$typeof===g&&d._store&&(d._store.validated=1)}var v=P,g=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),b=Symbol.for("react.consumer"),w=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),S=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),D=Symbol.for("react.activity"),L=Symbol.for("react.client.reference"),I=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$=Object.prototype.hasOwnProperty,U=Array.isArray,W=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(d){return d()}};var M,K={},Y=v.react_stack_bottom_frame.bind(v,a)(),z=W(n(a)),V={};Qs.Fragment=u,Qs.jsx=function(d,x,O,_,A){var j=1e4>I.recentlyCreatedOwnerStacks++;return l(d,x,O,!1,_,A,j?Error("react-stack-top-frame"):Y,j?W(n(d)):z)},Qs.jsxs=function(d,x,O,_,A){var j=1e4>I.recentlyCreatedOwnerStacks++;return l(d,x,O,!0,_,A,j?Error("react-stack-top-frame"):Y,j?W(n(d)):z)}})()),Qs}var Gg;function TU(){return Gg||(Gg=1,process.env.NODE_ENV==="production"?yd.exports=NU():yd.exports=_U()),yd.exports}var J=TU();P.createContext({locale:void 0});var DU=(e,t,r,n,o,a,c,s)=>{let m=document.documentElement,f=["light","dark"];function l(g){(Array.isArray(e)?e:[e]).forEach(E=>{let u=E==="class",h=u&&a?o.map(y=>a[y]||y):o;u?(m.classList.remove(...h),m.classList.add(a&&a[g]?a[g]:g)):m.setAttribute(E,g)}),p(g)}function p(g){s&&f.includes(g)&&(m.style.colorScheme=g)}function v(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(n)l(n);else try{let g=localStorage.getItem(t)||r,E=c&&g==="system"?v():g;l(E)}catch{}};i.createContext(void 0);i.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:n,enableColorScheme:o,defaultTheme:a,value:c,themes:s,nonce:m,scriptProps:f})=>{let l=JSON.stringify([r,t,a,e,s,c,n,o]).slice(1,-1);return i.createElement("script",{...f,suppressHydrationWarning:!0,nonce:typeof window>"u"?m:"",dangerouslySetInnerHTML:{__html:`(${DU.toString()})(${l})`}})});ae.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});ae.cva("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function ke(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),r===!1||!n.defaultPrevented)return t?.(n)}}function Jg(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function jU(...e){return t=>{let r=!1;const n=e.map(o=>{const a=Jg(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():Jg(e[o],null)}}}}function xt(...e){return i.useCallback(jU(...e),e)}function PU(e,t){const r=i.createContext(t),n=a=>{const{children:c,...s}=a,m=i.useMemo(()=>s,Object.values(s));return J.jsx(r.Provider,{value:m,children:c})};n.displayName=e+"Provider";function o(a){const c=i.useContext(r);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,o]}function fu(e,t=[]){let r=[];function n(a,c){const s=i.createContext(c),m=r.length;r=[...r,c];const f=p=>{const{scope:v,children:g,...E}=p,u=v?.[e]?.[m]||s,h=i.useMemo(()=>E,Object.values(E));return J.jsx(u.Provider,{value:h,children:g})};f.displayName=a+"Provider";function l(p,v){const g=v?.[e]?.[m]||s,E=i.useContext(g);if(E)return E;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[f,l]}const o=()=>{const a=r.map(c=>i.createContext(c));return function(c){const s=c?.[e]||a;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:s}}),[c,s])}};return o.scopeName=e,[n,MU(o,...t)]}function MU(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(o){const a=n.reduce((c,{useScope:s,scopeName:m})=>{const f=s(o)[`__scope${m}`];return{...c,...f}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}var Ca=globalThis?.document?i.useLayoutEffect:()=>{},AU=i[" useId ".trim().toString()]||(()=>{}),IU=0;function aS(e){const[t,r]=i.useState(AU());return Ca(()=>{r(n=>n??String(IU++))},[e]),t?`radix-${t}`:""}var LU=i[" useInsertionEffect ".trim().toString()]||Ca;function sS({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,a,c]=FU({defaultProp:t,onChange:r}),s=e!==void 0,m=s?e:o;{const l=i.useRef(e!==void 0);i.useEffect(()=>{const p=l.current;p!==s&&console.warn(`${n} is changing from ${p?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),l.current=s},[s,n])}const f=i.useCallback(l=>{if(s){const p=WU(l)?l(e):l;p!==e&&c.current?.(p)}else a(l)},[s,e,a,c]);return[m,f]}function FU({defaultProp:e,onChange:t}){const[r,n]=i.useState(e),o=i.useRef(r),a=i.useRef(t);return LU(()=>{a.current=t},[t]),i.useEffect(()=>{o.current!==r&&(a.current?.(r),o.current=r)},[r,o]),[r,n,a]}function WU(e){return typeof e=="function"}var $U=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],je=$U.reduce((e,t)=>{const r=q.createSlot(`Primitive.${t}`),n=i.forwardRef((o,a)=>{const{asChild:c,...s}=o,m=c?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),J.jsx(m,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function zU(e,t){e&&we.flushSync(()=>e.dispatchEvent(t))}function Ao(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...r)=>t.current?.(...r),[])}function UU(e,t=globalThis?.document){const r=Ao(e);i.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var YU="DismissableLayer",hp="dismissableLayer.update",BU="dismissableLayer.pointerDownOutside",KU="dismissableLayer.focusOutside",Qg,iS=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),cS=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:c,onDismiss:s,...m}=e,f=i.useContext(iS),[l,p]=i.useState(null),v=l?.ownerDocument??globalThis?.document,[,g]=i.useState({}),E=xt(t,S=>p(S)),u=Array.from(f.layers),[h]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),y=u.indexOf(h),b=l?u.indexOf(l):-1,w=f.layersWithOutsidePointerEventsDisabled.size>0,k=b>=y,C=VU(S=>{const R=S.target,D=[...f.branches].some(L=>L.contains(R));!k||D||(o?.(S),c?.(S),S.defaultPrevented||s?.())},v),N=qU(S=>{const R=S.target;[...f.branches].some(D=>D.contains(R))||(a?.(S),c?.(S),S.defaultPrevented||s?.())},v);return UU(S=>{b===f.layers.size-1&&(n?.(S),!S.defaultPrevented&&s&&(S.preventDefault(),s()))},v),i.useEffect(()=>{if(l)return r&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(Qg=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(l)),f.layers.add(l),ey(),()=>{r&&f.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=Qg)}},[l,v,r,f]),i.useEffect(()=>()=>{l&&(f.layers.delete(l),f.layersWithOutsidePointerEventsDisabled.delete(l),ey())},[l,f]),i.useEffect(()=>{const S=()=>g({});return document.addEventListener(hp,S),()=>document.removeEventListener(hp,S)},[]),J.jsx(je.div,{...m,ref:E,style:{pointerEvents:w?k?"auto":"none":void 0,...e.style},onFocusCapture:ke(e.onFocusCapture,N.onFocusCapture),onBlurCapture:ke(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:ke(e.onPointerDownCapture,C.onPointerDownCapture)})});cS.displayName=YU;var XU="DismissableLayerBranch",HU=i.forwardRef((e,t)=>{const r=i.useContext(iS),n=i.useRef(null),o=xt(t,n);return i.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),J.jsx(je.div,{...e,ref:o})});HU.displayName=XU;function VU(e,t=globalThis?.document){const r=Ao(e),n=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let m=function(){uS(BU,r,f,{discrete:!0})};const f={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=m,t.addEventListener("click",o.current,{once:!0})):m()}else t.removeEventListener("click",o.current);n.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function qU(e,t=globalThis?.document){const r=Ao(e),n=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!n.current&&uS(KU,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function ey(){const e=new CustomEvent(hp);document.dispatchEvent(e)}function uS(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?zU(o,a):o.dispatchEvent(a)}var bd="focusScope.autoFocusOnMount",wd="focusScope.autoFocusOnUnmount",ty={bubbles:!1,cancelable:!0},ZU="FocusScope",lS=i.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...c}=e,[s,m]=i.useState(null),f=Ao(o),l=Ao(a),p=i.useRef(null),v=xt(t,u=>m(u)),g=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(n){let u=function(w){if(g.paused||!s)return;const k=w.target;s.contains(k)?p.current=k:vr(p.current,{select:!0})},h=function(w){if(g.paused||!s)return;const k=w.relatedTarget;k!==null&&(s.contains(k)||vr(p.current,{select:!0}))},y=function(w){if(document.activeElement===document.body)for(const k of w)k.removedNodes.length>0&&vr(s)};document.addEventListener("focusin",u),document.addEventListener("focusout",h);const b=new MutationObserver(y);return s&&b.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",u),document.removeEventListener("focusout",h),b.disconnect()}}},[n,s,g.paused]),i.useEffect(()=>{if(s){ny.add(g);const u=document.activeElement;if(!s.contains(u)){const h=new CustomEvent(bd,ty);s.addEventListener(bd,f),s.dispatchEvent(h),h.defaultPrevented||(GU(r9(dS(s)),{select:!0}),document.activeElement===u&&vr(s))}return()=>{s.removeEventListener(bd,f),setTimeout(()=>{const h=new CustomEvent(wd,ty);s.addEventListener(wd,l),s.dispatchEvent(h),h.defaultPrevented||vr(u??document.body,{select:!0}),s.removeEventListener(wd,l),ny.remove(g)},0)}}},[s,f,l,g]);const E=i.useCallback(u=>{if(!r&&!n||g.paused)return;const h=u.key==="Tab"&&!u.altKey&&!u.ctrlKey&&!u.metaKey,y=document.activeElement;if(h&&y){const b=u.currentTarget,[w,k]=JU(b);w&&k?!u.shiftKey&&y===k?(u.preventDefault(),r&&vr(w,{select:!0})):u.shiftKey&&y===w&&(u.preventDefault(),r&&vr(k,{select:!0})):y===b&&u.preventDefault()}},[r,n,g.paused]);return J.jsx(je.div,{tabIndex:-1,...c,ref:v,onKeyDown:E})});lS.displayName=ZU;function GU(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(vr(n,{select:t}),document.activeElement!==r)return}function JU(e){const t=dS(e),r=ry(t,e),n=ry(t.reverse(),e);return[r,n]}function dS(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function ry(e,t){for(const r of e)if(!QU(r,{upTo:t}))return r}function QU(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function e9(e){return e instanceof HTMLInputElement&&"select"in e}function vr(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&e9(e)&&t&&e.select()}}var ny=t9();function t9(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=oy(e,t),e.unshift(t)},remove(t){e=oy(e,t),e[0]?.resume()}}}function oy(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function r9(e){return e.filter(t=>t.tagName!=="A")}var n9="Portal",o9=i.forwardRef((e,t)=>{const{container:r,...n}=e,[o,a]=i.useState(!1);Ca(()=>a(!0),[]);const c=r||o&&globalThis?.document?.body;return c?be.createPortal(J.jsx(je.div,{...n,ref:t}),c):null});o9.displayName=n9;function a9(e,t){return i.useReducer((r,n)=>t[r][n]??r,e)}var pu=e=>{const{present:t,children:r}=e,n=s9(t),o=typeof r=="function"?r({present:n.isPresent}):i.Children.only(r),a=xt(n.ref,i9(o));return typeof r=="function"||n.isPresent?i.cloneElement(o,{ref:a}):null};pu.displayName="Presence";function s9(e){const[t,r]=i.useState(),n=i.useRef(null),o=i.useRef(e),a=i.useRef("none"),c=e?"mounted":"unmounted",[s,m]=a9(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const f=ei(n.current);a.current=s==="mounted"?f:"none"},[s]),Ca(()=>{const f=n.current,l=o.current;if(l!==e){const p=a.current,v=ei(f);e?m("MOUNT"):v==="none"||f?.display==="none"?m("UNMOUNT"):m(l&&p!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,m]),Ca(()=>{if(t){let f;const l=t.ownerDocument.defaultView??window,p=g=>{const E=ei(n.current).includes(CSS.escape(g.animationName));if(g.target===t&&E&&(m("ANIMATION_END"),!o.current)){const u=t.style.animationFillMode;t.style.animationFillMode="forwards",f=l.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=u)})}},v=g=>{g.target===t&&(a.current=ei(n.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{l.clearTimeout(f),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else m("ANIMATION_END")},[t,m]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:i.useCallback(f=>{n.current=f?getComputedStyle(f):null,r(f)},[])}}function ei(e){return e?.animationName||"none"}function i9(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var xd=0;function c9(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??ay()),document.body.insertAdjacentElement("beforeend",e[1]??ay()),xd++,()=>{xd===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),xd--}},[])}function ay(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var ct=function(){return ct=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},ct.apply(this,arguments)};function fS(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function u9(e,t,r){for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var mc="right-scroll-bar-position",vc="width-before-scroll-bar",l9="with-scroll-bars-hidden",d9="--removed-body-scroll-bar-size";function Ed(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function f9(e,t){var r=P.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var p9=typeof window<"u"?i.useLayoutEffect:i.useEffect,sy=new WeakMap;function m9(e,t){var r=f9(null,function(n){return e.forEach(function(o){return Ed(o,n)})});return p9(function(){var n=sy.get(r);if(n){var o=new Set(n),a=new Set(e),c=r.current;o.forEach(function(s){a.has(s)||Ed(s,null)}),a.forEach(function(s){o.has(s)||Ed(s,c)})}sy.set(r,e)},[e]),r}function v9(e){return e}function h9(e,t){t===void 0&&(t=v9);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var c=t(a,n);return r.push(c),function(){r=r.filter(function(s){return s!==c})}},assignSyncMedium:function(a){for(n=!0;r.length;){var c=r;r=[],c.forEach(a)}r={push:function(s){return a(s)},filter:function(){return r}}},assignMedium:function(a){n=!0;var c=[];if(r.length){var s=r;r=[],s.forEach(a),c=r}var m=function(){var l=c;c=[],l.forEach(a)},f=function(){return Promise.resolve().then(m)};f(),r={push:function(l){c.push(l),f()},filter:function(l){return c=c.filter(l),r}}}};return o}function g9(e){e===void 0&&(e={});var t=h9(null);return t.options=ct({async:!0,ssr:!1},e),t}var pS=function(e){var t=e.sideCar,r=fS(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return i.createElement(n,ct({},r))};pS.isSideCarExport=!0;function y9(e,t){return e.useMedium(t),pS}var mS=g9(),kd=function(){},mu=i.forwardRef(function(e,t){var r=i.useRef(null),n=i.useState({onScrollCapture:kd,onWheelCapture:kd,onTouchMoveCapture:kd}),o=n[0],a=n[1],c=e.forwardProps,s=e.children,m=e.className,f=e.removeScrollBar,l=e.enabled,p=e.shards,v=e.sideCar,g=e.noRelative,E=e.noIsolation,u=e.inert,h=e.allowPinchZoom,y=e.as,b=y===void 0?"div":y,w=e.gapMode,k=fS(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=v,N=m9([r,t]),S=ct(ct({},k),o);return i.createElement(i.Fragment,null,l&&i.createElement(C,{sideCar:mS,removeScrollBar:f,shards:p,noRelative:g,noIsolation:E,inert:u,setCallbacks:a,allowPinchZoom:!!h,lockRef:r,gapMode:w}),c?i.cloneElement(i.Children.only(s),ct(ct({},S),{ref:N})):i.createElement(b,ct({},S,{className:m,ref:N}),s))});mu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};mu.classNames={fullWidth:vc,zeroRight:mc};var b9=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function w9(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=b9();return t&&e.setAttribute("nonce",t),e}function x9(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function E9(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var k9=function(){var e=0,t=null;return{add:function(r){e==0&&(t=w9())&&(x9(t,r),E9(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},S9=function(){var e=k9();return function(t,r){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},vS=function(){var e=S9(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},C9={left:0,top:0,right:0,gap:0},Sd=function(e){return parseInt(e||"",10)||0},R9=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Sd(r),Sd(n),Sd(o)]},O9=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return C9;var t=R9(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},N9=vS(),So="data-scroll-locked",_9=function(e,t,r,n){var o=e.left,a=e.top,c=e.right,s=e.gap;return r===void 0&&(r="margin"),`
631
- .`.concat(l9,` {
632
- overflow: hidden `).concat(n,`;
633
- padding-right: `).concat(s,"px ").concat(n,`;
634
- }
635
- body[`).concat(So,`] {
636
- overflow: hidden `).concat(n,`;
637
- overscroll-behavior: contain;
638
- `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
639
- padding-left: `.concat(o,`px;
640
- padding-top: `).concat(a,`px;
641
- padding-right: `).concat(c,`px;
642
- margin-left:0;
643
- margin-top:0;
644
- margin-right: `).concat(s,"px ").concat(n,`;
645
- `),r==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),`
646
- }
647
-
648
- .`).concat(mc,` {
649
- right: `).concat(s,"px ").concat(n,`;
650
- }
651
-
652
- .`).concat(vc,` {
653
- margin-right: `).concat(s,"px ").concat(n,`;
654
- }
655
-
656
- .`).concat(mc," .").concat(mc,` {
657
- right: 0 `).concat(n,`;
658
- }
659
-
660
- .`).concat(vc," .").concat(vc,` {
661
- margin-right: 0 `).concat(n,`;
662
- }
663
-
664
- body[`).concat(So,`] {
665
- `).concat(d9,": ").concat(s,`px;
666
- }
667
- `)},iy=function(){var e=parseInt(document.body.getAttribute(So)||"0",10);return isFinite(e)?e:0},T9=function(){i.useEffect(function(){return document.body.setAttribute(So,(iy()+1).toString()),function(){var e=iy()-1;e<=0?document.body.removeAttribute(So):document.body.setAttribute(So,e.toString())}},[])},D9=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;T9();var a=i.useMemo(function(){return O9(o)},[o]);return i.createElement(N9,{styles:_9(a,!t,o,r?"":"!important")})},gp=!1;if(typeof window<"u")try{var ti=Object.defineProperty({},"passive",{get:function(){return gp=!0,!0}});window.addEventListener("test",ti,ti),window.removeEventListener("test",ti,ti)}catch{gp=!1}var Un=gp?{passive:!1}:!1,j9=function(e){return e.tagName==="TEXTAREA"},hS=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!j9(e)&&r[t]==="visible")},P9=function(e){return hS(e,"overflowY")},M9=function(e){return hS(e,"overflowX")},cy=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=gS(e,n);if(o){var a=yS(e,n),c=a[1],s=a[2];if(c>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},A9=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},I9=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},gS=function(e,t){return e==="v"?P9(t):M9(t)},yS=function(e,t){return e==="v"?A9(t):I9(t)},L9=function(e,t){return e==="h"&&t==="rtl"?-1:1},F9=function(e,t,r,n,o){var a=L9(e,window.getComputedStyle(t).direction),c=a*n,s=r.target,m=t.contains(s),f=!1,l=c>0,p=0,v=0;do{if(!s)break;var g=yS(e,s),E=g[0],u=g[1],h=g[2],y=u-h-a*E;(E||y)&&gS(e,s)&&(p+=y,v+=E);var b=s.parentNode;s=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!m&&s!==document.body||m&&(t.contains(s)||t===s));return(l&&Math.abs(p)<1||!l&&Math.abs(v)<1)&&(f=!0),f},ri=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},uy=function(e){return[e.deltaX,e.deltaY]},ly=function(e){return e&&"current"in e?e.current:e},W9=function(e,t){return e[0]===t[0]&&e[1]===t[1]},$9=function(e){return`
668
- .block-interactivity-`.concat(e,` {pointer-events: none;}
669
- .allow-interactivity-`).concat(e,` {pointer-events: all;}
670
- `)},z9=0,Yn=[];function U9(e){var t=i.useRef([]),r=i.useRef([0,0]),n=i.useRef(),o=i.useState(z9++)[0],a=i.useState(vS)[0],c=i.useRef(e);i.useEffect(function(){c.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var u=u9([e.lockRef.current],(e.shards||[]).map(ly)).filter(Boolean);return u.forEach(function(h){return h.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),u.forEach(function(h){return h.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=i.useCallback(function(u,h){if("touches"in u&&u.touches.length===2||u.type==="wheel"&&u.ctrlKey)return!c.current.allowPinchZoom;var y=ri(u),b=r.current,w="deltaX"in u?u.deltaX:b[0]-y[0],k="deltaY"in u?u.deltaY:b[1]-y[1],C,N=u.target,S=Math.abs(w)>Math.abs(k)?"h":"v";if("touches"in u&&S==="h"&&N.type==="range")return!1;var R=cy(S,N);if(!R)return!0;if(R?C=S:(C=S==="v"?"h":"v",R=cy(S,N)),!R)return!1;if(!n.current&&"changedTouches"in u&&(w||k)&&(n.current=C),!C)return!0;var D=n.current||C;return F9(D,h,u,D==="h"?w:k)},[]),m=i.useCallback(function(u){var h=u;if(!(!Yn.length||Yn[Yn.length-1]!==a)){var y="deltaY"in h?uy(h):ri(h),b=t.current.filter(function(C){return C.name===h.type&&(C.target===h.target||h.target===C.shadowParent)&&W9(C.delta,y)})[0];if(b&&b.should){h.cancelable&&h.preventDefault();return}if(!b){var w=(c.current.shards||[]).map(ly).filter(Boolean).filter(function(C){return C.contains(h.target)}),k=w.length>0?s(h,w[0]):!c.current.noIsolation;k&&h.cancelable&&h.preventDefault()}}},[]),f=i.useCallback(function(u,h,y,b){var w={name:u,delta:h,target:y,should:b,shadowParent:Y9(y)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(k){return k!==w})},1)},[]),l=i.useCallback(function(u){r.current=ri(u),n.current=void 0},[]),p=i.useCallback(function(u){f(u.type,uy(u),u.target,s(u,e.lockRef.current))},[]),v=i.useCallback(function(u){f(u.type,ri(u),u.target,s(u,e.lockRef.current))},[]);i.useEffect(function(){return Yn.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:v}),document.addEventListener("wheel",m,Un),document.addEventListener("touchmove",m,Un),document.addEventListener("touchstart",l,Un),function(){Yn=Yn.filter(function(u){return u!==a}),document.removeEventListener("wheel",m,Un),document.removeEventListener("touchmove",m,Un),document.removeEventListener("touchstart",l,Un)}},[]);var g=e.removeScrollBar,E=e.inert;return i.createElement(i.Fragment,null,E?i.createElement(a,{styles:$9(o)}):null,g?i.createElement(D9,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Y9(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const B9=y9(mS,U9);var bS=i.forwardRef(function(e,t){return i.createElement(mu,ct({},e,{ref:t,sideCar:B9}))});bS.classNames=mu.classNames;var K9=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Bn=new WeakMap,ni=new WeakMap,oi={},Cd=0,wS=function(e){return e&&(e.host||wS(e.parentNode))},X9=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=wS(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},H9=function(e,t,r,n){var o=X9(t,Array.isArray(e)?e:[e]);oi[r]||(oi[r]=new WeakMap);var a=oi[r],c=[],s=new Set,m=new Set(o),f=function(p){!p||s.has(p)||(s.add(p),f(p.parentNode))};o.forEach(f);var l=function(p){!p||m.has(p)||Array.prototype.forEach.call(p.children,function(v){if(s.has(v))l(v);else try{var g=v.getAttribute(n),E=g!==null&&g!=="false",u=(Bn.get(v)||0)+1,h=(a.get(v)||0)+1;Bn.set(v,u),a.set(v,h),c.push(v),u===1&&E&&ni.set(v,!0),h===1&&v.setAttribute(r,"true"),E||v.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",v,y)}})};return l(t),s.clear(),Cd++,function(){c.forEach(function(p){var v=Bn.get(p)-1,g=a.get(p)-1;Bn.set(p,v),a.set(p,g),v||(ni.has(p)||p.removeAttribute(n),ni.delete(p)),g||p.removeAttribute(r)}),Cd--,Cd||(Bn=new WeakMap,Bn=new WeakMap,ni=new WeakMap,oi={})}},V9=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=K9(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),H9(n,o,r,"aria-hidden")):function(){return null}},xS="Dialog",[ES]=fu(xS),[yoe,Wt]=ES(xS),kS="DialogTrigger",q9=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Wt(kS,r),a=xt(t,o.triggerRef);return J.jsx(je.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Nm(o.open),...n,ref:a,onClick:ke(e.onClick,o.onOpenToggle)})});q9.displayName=kS;var Z9="DialogPortal",[boe,SS]=ES(Z9,{forceMount:void 0}),zc="DialogOverlay",G9=i.forwardRef((e,t)=>{const r=SS(zc,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Wt(zc,e.__scopeDialog);return a.modal?J.jsx(pu,{present:n||a.open,children:J.jsx(Q9,{...o,ref:t})}):null});G9.displayName=zc;var J9=q.createSlot("DialogOverlay.RemoveScroll"),Q9=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Wt(zc,r);return J.jsx(bS,{as:J9,allowPinchZoom:!0,shards:[o.contentRef],children:J.jsx(je.div,{"data-state":Nm(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),Vr="DialogContent",eY=i.forwardRef((e,t)=>{const r=SS(Vr,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Wt(Vr,e.__scopeDialog);return J.jsx(pu,{present:n||a.open,children:a.modal?J.jsx(tY,{...o,ref:t}):J.jsx(rY,{...o,ref:t})})});eY.displayName=Vr;var tY=i.forwardRef((e,t)=>{const r=Wt(Vr,e.__scopeDialog),n=i.useRef(null),o=xt(t,r.contentRef,n);return i.useEffect(()=>{const a=n.current;if(a)return V9(a)},[]),J.jsx(CS,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ke(e.onCloseAutoFocus,a=>{a.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:ke(e.onPointerDownOutside,a=>{const c=a.detail.originalEvent,s=c.button===0&&c.ctrlKey===!0;(c.button===2||s)&&a.preventDefault()}),onFocusOutside:ke(e.onFocusOutside,a=>a.preventDefault())})}),rY=i.forwardRef((e,t)=>{const r=Wt(Vr,e.__scopeDialog),n=i.useRef(!1),o=i.useRef(!1);return J.jsx(CS,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(n.current||r.triggerRef.current?.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=a.target;r.triggerRef.current?.contains(c)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),CS=i.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...c}=e,s=Wt(Vr,r),m=i.useRef(null),f=xt(t,m);return c9(),J.jsxs(J.Fragment,{children:[J.jsx(lS,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:J.jsx(cS,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":Nm(s.open),...c,ref:f,onDismiss:()=>s.onOpenChange(!1)})}),J.jsxs(J.Fragment,{children:[J.jsx(sY,{titleId:s.titleId}),J.jsx(cY,{contentRef:m,descriptionId:s.descriptionId})]})]})}),Om="DialogTitle",nY=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Wt(Om,r);return J.jsx(je.h2,{id:o.titleId,...n,ref:t})});nY.displayName=Om;var RS="DialogDescription",oY=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Wt(RS,r);return J.jsx(je.p,{id:o.descriptionId,...n,ref:t})});oY.displayName=RS;var OS="DialogClose",aY=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Wt(OS,r);return J.jsx(je.button,{type:"button",...n,ref:t,onClick:ke(e.onClick,()=>o.onOpenChange(!1))})});aY.displayName=OS;function Nm(e){return e?"open":"closed"}var NS="DialogTitleWarning",[woe,_S]=PU(NS,{contentName:Vr,titleName:Om,docsSlug:"dialog"}),sY=({titleId:e})=>{const t=_S(NS),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
671
-
672
- If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
673
-
674
- For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},iY="DialogDescriptionWarning",cY=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${_S(iY).contentName}}.`;return i.useEffect(()=>{const n=e.current?.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Rd={exports:{}},aa={};/**
675
- * @license React
676
- * react-jsx-runtime.production.js
677
- *
678
- * Copyright (c) Meta Platforms, Inc. and affiliates.
679
- *
680
- * This source code is licensed under the MIT license found in the
681
- * LICENSE file in the root directory of this source tree.
682
- */var dy;function uY(){if(dy)return aa;dy=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,o,a){var c=null;if(a!==void 0&&(c=""+a),o.key!==void 0&&(c=""+o.key),"key"in o){a={};for(var s in o)s!=="key"&&(a[s]=o[s])}else a=o;return o=a.ref,{$$typeof:e,type:n,key:c,ref:o!==void 0?o:null,props:a}}return aa.Fragment=t,aa.jsx=r,aa.jsxs=r,aa}var ai={};/**
683
- * @license React
684
- * react-jsx-runtime.development.js
685
- *
686
- * Copyright (c) Meta Platforms, Inc. and affiliates.
687
- *
688
- * This source code is licensed under the MIT license found in the
689
- * LICENSE file in the root directory of this source tree.
690
- */var fy;function lY(){return fy||(fy=1,process.env.NODE_ENV!=="production"&&(function(){function e(d){if(d==null)return null;if(typeof d=="function")return d.$$typeof===L?null:d.displayName||d.name||null;if(typeof d=="string")return d;switch(d){case u:return"Fragment";case y:return"Profiler";case h:return"StrictMode";case C:return"Suspense";case N:return"SuspenseList";case D:return"Activity"}if(typeof d=="object")switch(typeof d.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),d.$$typeof){case E:return"Portal";case w:return(d.displayName||"Context")+".Provider";case b:return(d._context.displayName||"Context")+".Consumer";case k:var x=d.render;return d=d.displayName,d||(d=x.displayName||x.name||"",d=d!==""?"ForwardRef("+d+")":"ForwardRef"),d;case S:return x=d.displayName||null,x!==null?x:e(d.type)||"Memo";case R:x=d._payload,d=d._init;try{return e(d(x))}catch{}}return null}function t(d){return""+d}function r(d){try{t(d);var x=!1}catch{x=!0}if(x){x=console;var O=x.error,_=typeof Symbol=="function"&&Symbol.toStringTag&&d[Symbol.toStringTag]||d.constructor.name||"Object";return O.call(x,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",_),t(d)}}function n(d){if(d===u)return"<>";if(typeof d=="object"&&d!==null&&d.$$typeof===R)return"<...>";try{var x=e(d);return x?"<"+x+">":"<...>"}catch{return"<...>"}}function o(){var d=I.A;return d===null?null:d.getOwner()}function a(){return Error("react-stack-top-frame")}function c(d){if($.call(d,"key")){var x=Object.getOwnPropertyDescriptor(d,"key").get;if(x&&x.isReactWarning)return!1}return d.key!==void 0}function s(d,x){function O(){M||(M=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",x))}O.isReactWarning=!0,Object.defineProperty(d,"key",{get:O,configurable:!0})}function m(){var d=e(this.type);return K[d]||(K[d]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),d=this.props.ref,d!==void 0?d:null}function f(d,x,O,_,A,j,X,B){return O=j.ref,d={$$typeof:g,type:d,key:x,props:j,_owner:A},(O!==void 0?O:null)!==null?Object.defineProperty(d,"ref",{enumerable:!1,get:m}):Object.defineProperty(d,"ref",{enumerable:!1,value:null}),d._store={},Object.defineProperty(d._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(d,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(d,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:X}),Object.defineProperty(d,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:B}),Object.freeze&&(Object.freeze(d.props),Object.freeze(d)),d}function l(d,x,O,_,A,j,X,B){var T=x.children;if(T!==void 0)if(_)if(U(T)){for(_=0;_<T.length;_++)p(T[_]);Object.freeze&&Object.freeze(T)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else p(T);if($.call(x,"key")){T=e(d);var F=Object.keys(x).filter(function(se){return se!=="key"});_=0<F.length?"{key: someKey, "+F.join(": ..., ")+": ...}":"{key: someKey}",V[T+_]||(F=0<F.length?"{"+F.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
691
- let props = %s;
692
- <%s {...props} />
693
- React keys must be passed directly to JSX without using spread:
694
- let props = %s;
695
- <%s key={someKey} {...props} />`,_,T,F,T),V[T+_]=!0)}if(T=null,O!==void 0&&(r(O),T=""+O),c(x)&&(r(x.key),T=""+x.key),"key"in x){O={};for(var H in x)H!=="key"&&(O[H]=x[H])}else O=x;return T&&s(O,typeof d=="function"?d.displayName||d.name||"Unknown":d),f(d,T,j,A,o(),O,X,B)}function p(d){typeof d=="object"&&d!==null&&d.$$typeof===g&&d._store&&(d._store.validated=1)}var v=P,g=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),b=Symbol.for("react.consumer"),w=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),S=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),D=Symbol.for("react.activity"),L=Symbol.for("react.client.reference"),I=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$=Object.prototype.hasOwnProperty,U=Array.isArray,W=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(d){return d()}};var M,K={},Y=v.react_stack_bottom_frame.bind(v,a)(),z=W(n(a)),V={};ai.Fragment=u,ai.jsx=function(d,x,O,_,A){var j=1e4>I.recentlyCreatedOwnerStacks++;return l(d,x,O,!1,_,A,j?Error("react-stack-top-frame"):Y,j?W(n(d)):z)},ai.jsxs=function(d,x,O,_,A){var j=1e4>I.recentlyCreatedOwnerStacks++;return l(d,x,O,!0,_,A,j?Error("react-stack-top-frame"):Y,j?W(n(d)):z)}})()),ai}var py;function dY(){return py||(py=1,process.env.NODE_ENV==="production"?Rd.exports=uY():Rd.exports=lY()),Rd.exports}var Q=dY();P.createContext({locale:void 0});var fY=(e,t,r,n,o,a,c,s)=>{let m=document.documentElement,f=["light","dark"];function l(g){(Array.isArray(e)?e:[e]).forEach(E=>{let u=E==="class",h=u&&a?o.map(y=>a[y]||y):o;u?(m.classList.remove(...h),m.classList.add(a&&a[g]?a[g]:g)):m.setAttribute(E,g)}),p(g)}function p(g){s&&f.includes(g)&&(m.style.colorScheme=g)}function v(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(n)l(n);else try{let g=localStorage.getItem(t)||r,E=c&&g==="system"?v():g;l(E)}catch{}};i.createContext(void 0);i.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:n,enableColorScheme:o,defaultTheme:a,value:c,themes:s,nonce:m,scriptProps:f})=>{let l=JSON.stringify([r,t,a,e,s,c,n,o]).slice(1,-1);return i.createElement("script",{...f,suppressHydrationWarning:!0,nonce:typeof window>"u"?m:"",dangerouslySetInnerHTML:{__html:`(${fY.toString()})(${l})`}})});ae.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});ae.cva("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function Se(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),r===!1||!n.defaultPrevented)return t?.(n)}}function my(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function pY(...e){return t=>{let r=!1;const n=e.map(o=>{const a=my(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():my(e[o],null)}}}}function Et(...e){return i.useCallback(pY(...e),e)}function mY(e,t){const r=i.createContext(t),n=a=>{const{children:c,...s}=a,m=i.useMemo(()=>s,Object.values(s));return Q.jsx(r.Provider,{value:m,children:c})};n.displayName=e+"Provider";function o(a){const c=i.useContext(r);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,o]}function vu(e,t=[]){let r=[];function n(a,c){const s=i.createContext(c),m=r.length;r=[...r,c];const f=p=>{const{scope:v,children:g,...E}=p,u=v?.[e]?.[m]||s,h=i.useMemo(()=>E,Object.values(E));return Q.jsx(u.Provider,{value:h,children:g})};f.displayName=a+"Provider";function l(p,v){const g=v?.[e]?.[m]||s,E=i.useContext(g);if(E)return E;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[f,l]}const o=()=>{const a=r.map(c=>i.createContext(c));return function(c){const s=c?.[e]||a;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:s}}),[c,s])}};return o.scopeName=e,[n,vY(o,...t)]}function vY(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(o){const a=n.reduce((c,{useScope:s,scopeName:m})=>{const f=s(o)[`__scope${m}`];return{...c,...f}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}var Ra=globalThis?.document?i.useLayoutEffect:()=>{},hY=i[" useId ".trim().toString()]||(()=>{}),gY=0;function TS(e){const[t,r]=i.useState(hY());return Ra(()=>{r(n=>n??String(gY++))},[e]),t?`radix-${t}`:""}var yY=i[" useInsertionEffect ".trim().toString()]||Ra;function DS({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,a,c]=bY({defaultProp:t,onChange:r}),s=e!==void 0,m=s?e:o;{const l=i.useRef(e!==void 0);i.useEffect(()=>{const p=l.current;p!==s&&console.warn(`${n} is changing from ${p?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),l.current=s},[s,n])}const f=i.useCallback(l=>{if(s){const p=wY(l)?l(e):l;p!==e&&c.current?.(p)}else a(l)},[s,e,a,c]);return[m,f]}function bY({defaultProp:e,onChange:t}){const[r,n]=i.useState(e),o=i.useRef(r),a=i.useRef(t);return yY(()=>{a.current=t},[t]),i.useEffect(()=>{o.current!==r&&(a.current?.(r),o.current=r)},[r,o]),[r,n,a]}function wY(e){return typeof e=="function"}var xY=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Pe=xY.reduce((e,t)=>{const r=q.createSlot(`Primitive.${t}`),n=i.forwardRef((o,a)=>{const{asChild:c,...s}=o,m=c?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),Q.jsx(m,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function EY(e,t){e&&we.flushSync(()=>e.dispatchEvent(t))}function Io(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...r)=>t.current?.(...r),[])}function kY(e,t=globalThis?.document){const r=Io(e);i.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var SY="DismissableLayer",yp="dismissableLayer.update",CY="dismissableLayer.pointerDownOutside",RY="dismissableLayer.focusOutside",vy,jS=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),PS=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:c,onDismiss:s,...m}=e,f=i.useContext(jS),[l,p]=i.useState(null),v=l?.ownerDocument??globalThis?.document,[,g]=i.useState({}),E=Et(t,S=>p(S)),u=Array.from(f.layers),[h]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),y=u.indexOf(h),b=l?u.indexOf(l):-1,w=f.layersWithOutsidePointerEventsDisabled.size>0,k=b>=y,C=_Y(S=>{const R=S.target,D=[...f.branches].some(L=>L.contains(R));!k||D||(o?.(S),c?.(S),S.defaultPrevented||s?.())},v),N=TY(S=>{const R=S.target;[...f.branches].some(D=>D.contains(R))||(a?.(S),c?.(S),S.defaultPrevented||s?.())},v);return kY(S=>{b===f.layers.size-1&&(n?.(S),!S.defaultPrevented&&s&&(S.preventDefault(),s()))},v),i.useEffect(()=>{if(l)return r&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(vy=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(l)),f.layers.add(l),hy(),()=>{r&&f.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=vy)}},[l,v,r,f]),i.useEffect(()=>()=>{l&&(f.layers.delete(l),f.layersWithOutsidePointerEventsDisabled.delete(l),hy())},[l,f]),i.useEffect(()=>{const S=()=>g({});return document.addEventListener(yp,S),()=>document.removeEventListener(yp,S)},[]),Q.jsx(Pe.div,{...m,ref:E,style:{pointerEvents:w?k?"auto":"none":void 0,...e.style},onFocusCapture:Se(e.onFocusCapture,N.onFocusCapture),onBlurCapture:Se(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:Se(e.onPointerDownCapture,C.onPointerDownCapture)})});PS.displayName=SY;var OY="DismissableLayerBranch",NY=i.forwardRef((e,t)=>{const r=i.useContext(jS),n=i.useRef(null),o=Et(t,n);return i.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),Q.jsx(Pe.div,{...e,ref:o})});NY.displayName=OY;function _Y(e,t=globalThis?.document){const r=Io(e),n=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let m=function(){MS(CY,r,f,{discrete:!0})};const f={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=m,t.addEventListener("click",o.current,{once:!0})):m()}else t.removeEventListener("click",o.current);n.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function TY(e,t=globalThis?.document){const r=Io(e),n=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!n.current&&MS(RY,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function hy(){const e=new CustomEvent(yp);document.dispatchEvent(e)}function MS(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?EY(o,a):o.dispatchEvent(a)}var Od="focusScope.autoFocusOnMount",Nd="focusScope.autoFocusOnUnmount",gy={bubbles:!1,cancelable:!0},DY="FocusScope",AS=i.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...c}=e,[s,m]=i.useState(null),f=Io(o),l=Io(a),p=i.useRef(null),v=Et(t,u=>m(u)),g=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(n){let u=function(w){if(g.paused||!s)return;const k=w.target;s.contains(k)?p.current=k:hr(p.current,{select:!0})},h=function(w){if(g.paused||!s)return;const k=w.relatedTarget;k!==null&&(s.contains(k)||hr(p.current,{select:!0}))},y=function(w){if(document.activeElement===document.body)for(const k of w)k.removedNodes.length>0&&hr(s)};document.addEventListener("focusin",u),document.addEventListener("focusout",h);const b=new MutationObserver(y);return s&&b.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",u),document.removeEventListener("focusout",h),b.disconnect()}}},[n,s,g.paused]),i.useEffect(()=>{if(s){by.add(g);const u=document.activeElement;if(!s.contains(u)){const h=new CustomEvent(Od,gy);s.addEventListener(Od,f),s.dispatchEvent(h),h.defaultPrevented||(jY(LY(IS(s)),{select:!0}),document.activeElement===u&&hr(s))}return()=>{s.removeEventListener(Od,f),setTimeout(()=>{const h=new CustomEvent(Nd,gy);s.addEventListener(Nd,l),s.dispatchEvent(h),h.defaultPrevented||hr(u??document.body,{select:!0}),s.removeEventListener(Nd,l),by.remove(g)},0)}}},[s,f,l,g]);const E=i.useCallback(u=>{if(!r&&!n||g.paused)return;const h=u.key==="Tab"&&!u.altKey&&!u.ctrlKey&&!u.metaKey,y=document.activeElement;if(h&&y){const b=u.currentTarget,[w,k]=PY(b);w&&k?!u.shiftKey&&y===k?(u.preventDefault(),r&&hr(w,{select:!0})):u.shiftKey&&y===w&&(u.preventDefault(),r&&hr(k,{select:!0})):y===b&&u.preventDefault()}},[r,n,g.paused]);return Q.jsx(Pe.div,{tabIndex:-1,...c,ref:v,onKeyDown:E})});AS.displayName=DY;function jY(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(hr(n,{select:t}),document.activeElement!==r)return}function PY(e){const t=IS(e),r=yy(t,e),n=yy(t.reverse(),e);return[r,n]}function IS(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function yy(e,t){for(const r of e)if(!MY(r,{upTo:t}))return r}function MY(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function AY(e){return e instanceof HTMLInputElement&&"select"in e}function hr(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&AY(e)&&t&&e.select()}}var by=IY();function IY(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=wy(e,t),e.unshift(t)},remove(t){e=wy(e,t),e[0]?.resume()}}}function wy(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function LY(e){return e.filter(t=>t.tagName!=="A")}var FY="Portal",WY=i.forwardRef((e,t)=>{const{container:r,...n}=e,[o,a]=i.useState(!1);Ra(()=>a(!0),[]);const c=r||o&&globalThis?.document?.body;return c?be.createPortal(Q.jsx(Pe.div,{...n,ref:t}),c):null});WY.displayName=FY;function $Y(e,t){return i.useReducer((r,n)=>t[r][n]??r,e)}var hu=e=>{const{present:t,children:r}=e,n=zY(t),o=typeof r=="function"?r({present:n.isPresent}):i.Children.only(r),a=Et(n.ref,UY(o));return typeof r=="function"||n.isPresent?i.cloneElement(o,{ref:a}):null};hu.displayName="Presence";function zY(e){const[t,r]=i.useState(),n=i.useRef(null),o=i.useRef(e),a=i.useRef("none"),c=e?"mounted":"unmounted",[s,m]=$Y(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const f=si(n.current);a.current=s==="mounted"?f:"none"},[s]),Ra(()=>{const f=n.current,l=o.current;if(l!==e){const p=a.current,v=si(f);e?m("MOUNT"):v==="none"||f?.display==="none"?m("UNMOUNT"):m(l&&p!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,m]),Ra(()=>{if(t){let f;const l=t.ownerDocument.defaultView??window,p=g=>{const E=si(n.current).includes(CSS.escape(g.animationName));if(g.target===t&&E&&(m("ANIMATION_END"),!o.current)){const u=t.style.animationFillMode;t.style.animationFillMode="forwards",f=l.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=u)})}},v=g=>{g.target===t&&(a.current=si(n.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{l.clearTimeout(f),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else m("ANIMATION_END")},[t,m]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:i.useCallback(f=>{n.current=f?getComputedStyle(f):null,r(f)},[])}}function si(e){return e?.animationName||"none"}function UY(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var _d=0;function YY(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??xy()),document.body.insertAdjacentElement("beforeend",e[1]??xy()),_d++,()=>{_d===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),_d--}},[])}function xy(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var ut=function(){return ut=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},ut.apply(this,arguments)};function LS(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function BY(e,t,r){for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var hc="right-scroll-bar-position",gc="width-before-scroll-bar",KY="with-scroll-bars-hidden",XY="--removed-body-scroll-bar-size";function Td(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function HY(e,t){var r=P.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var VY=typeof window<"u"?i.useLayoutEffect:i.useEffect,Ey=new WeakMap;function qY(e,t){var r=HY(null,function(n){return e.forEach(function(o){return Td(o,n)})});return VY(function(){var n=Ey.get(r);if(n){var o=new Set(n),a=new Set(e),c=r.current;o.forEach(function(s){a.has(s)||Td(s,null)}),a.forEach(function(s){o.has(s)||Td(s,c)})}Ey.set(r,e)},[e]),r}function ZY(e){return e}function GY(e,t){t===void 0&&(t=ZY);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var c=t(a,n);return r.push(c),function(){r=r.filter(function(s){return s!==c})}},assignSyncMedium:function(a){for(n=!0;r.length;){var c=r;r=[],c.forEach(a)}r={push:function(s){return a(s)},filter:function(){return r}}},assignMedium:function(a){n=!0;var c=[];if(r.length){var s=r;r=[],s.forEach(a),c=r}var m=function(){var l=c;c=[],l.forEach(a)},f=function(){return Promise.resolve().then(m)};f(),r={push:function(l){c.push(l),f()},filter:function(l){return c=c.filter(l),r}}}};return o}function JY(e){e===void 0&&(e={});var t=GY(null);return t.options=ut({async:!0,ssr:!1},e),t}var FS=function(e){var t=e.sideCar,r=LS(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return i.createElement(n,ut({},r))};FS.isSideCarExport=!0;function QY(e,t){return e.useMedium(t),FS}var WS=JY(),Dd=function(){},gu=i.forwardRef(function(e,t){var r=i.useRef(null),n=i.useState({onScrollCapture:Dd,onWheelCapture:Dd,onTouchMoveCapture:Dd}),o=n[0],a=n[1],c=e.forwardProps,s=e.children,m=e.className,f=e.removeScrollBar,l=e.enabled,p=e.shards,v=e.sideCar,g=e.noRelative,E=e.noIsolation,u=e.inert,h=e.allowPinchZoom,y=e.as,b=y===void 0?"div":y,w=e.gapMode,k=LS(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=v,N=qY([r,t]),S=ut(ut({},k),o);return i.createElement(i.Fragment,null,l&&i.createElement(C,{sideCar:WS,removeScrollBar:f,shards:p,noRelative:g,noIsolation:E,inert:u,setCallbacks:a,allowPinchZoom:!!h,lockRef:r,gapMode:w}),c?i.cloneElement(i.Children.only(s),ut(ut({},S),{ref:N})):i.createElement(b,ut({},S,{className:m,ref:N}),s))});gu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};gu.classNames={fullWidth:gc,zeroRight:hc};var e3=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function t3(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=e3();return t&&e.setAttribute("nonce",t),e}function r3(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function n3(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var o3=function(){var e=0,t=null;return{add:function(r){e==0&&(t=t3())&&(r3(t,r),n3(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},a3=function(){var e=o3();return function(t,r){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},$S=function(){var e=a3(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},s3={left:0,top:0,right:0,gap:0},jd=function(e){return parseInt(e||"",10)||0},i3=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[jd(r),jd(n),jd(o)]},c3=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return s3;var t=i3(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},u3=$S(),Co="data-scroll-locked",l3=function(e,t,r,n){var o=e.left,a=e.top,c=e.right,s=e.gap;return r===void 0&&(r="margin"),`
696
- .`.concat(KY,` {
697
- overflow: hidden `).concat(n,`;
698
- padding-right: `).concat(s,"px ").concat(n,`;
699
- }
700
- body[`).concat(Co,`] {
701
- overflow: hidden `).concat(n,`;
702
- overscroll-behavior: contain;
703
- `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
704
- padding-left: `.concat(o,`px;
705
- padding-top: `).concat(a,`px;
706
- padding-right: `).concat(c,`px;
707
- margin-left:0;
708
- margin-top:0;
709
- margin-right: `).concat(s,"px ").concat(n,`;
710
- `),r==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),`
711
- }
712
-
713
- .`).concat(hc,` {
714
- right: `).concat(s,"px ").concat(n,`;
715
- }
716
-
717
- .`).concat(gc,` {
718
- margin-right: `).concat(s,"px ").concat(n,`;
719
- }
720
-
721
- .`).concat(hc," .").concat(hc,` {
722
- right: 0 `).concat(n,`;
723
- }
724
-
725
- .`).concat(gc," .").concat(gc,` {
726
- margin-right: 0 `).concat(n,`;
727
- }
728
-
729
- body[`).concat(Co,`] {
730
- `).concat(XY,": ").concat(s,`px;
731
- }
732
- `)},ky=function(){var e=parseInt(document.body.getAttribute(Co)||"0",10);return isFinite(e)?e:0},d3=function(){i.useEffect(function(){return document.body.setAttribute(Co,(ky()+1).toString()),function(){var e=ky()-1;e<=0?document.body.removeAttribute(Co):document.body.setAttribute(Co,e.toString())}},[])},f3=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;d3();var a=i.useMemo(function(){return c3(o)},[o]);return i.createElement(u3,{styles:l3(a,!t,o,r?"":"!important")})},bp=!1;if(typeof window<"u")try{var ii=Object.defineProperty({},"passive",{get:function(){return bp=!0,!0}});window.addEventListener("test",ii,ii),window.removeEventListener("test",ii,ii)}catch{bp=!1}var Kn=bp?{passive:!1}:!1,p3=function(e){return e.tagName==="TEXTAREA"},zS=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!p3(e)&&r[t]==="visible")},m3=function(e){return zS(e,"overflowY")},v3=function(e){return zS(e,"overflowX")},Sy=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=US(e,n);if(o){var a=YS(e,n),c=a[1],s=a[2];if(c>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},h3=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},g3=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},US=function(e,t){return e==="v"?m3(t):v3(t)},YS=function(e,t){return e==="v"?h3(t):g3(t)},y3=function(e,t){return e==="h"&&t==="rtl"?-1:1},b3=function(e,t,r,n,o){var a=y3(e,window.getComputedStyle(t).direction),c=a*n,s=r.target,m=t.contains(s),f=!1,l=c>0,p=0,v=0;do{if(!s)break;var g=YS(e,s),E=g[0],u=g[1],h=g[2],y=u-h-a*E;(E||y)&&US(e,s)&&(p+=y,v+=E);var b=s.parentNode;s=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!m&&s!==document.body||m&&(t.contains(s)||t===s));return(l&&Math.abs(p)<1||!l&&Math.abs(v)<1)&&(f=!0),f},ci=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Cy=function(e){return[e.deltaX,e.deltaY]},Ry=function(e){return e&&"current"in e?e.current:e},w3=function(e,t){return e[0]===t[0]&&e[1]===t[1]},x3=function(e){return`
733
- .block-interactivity-`.concat(e,` {pointer-events: none;}
734
- .allow-interactivity-`).concat(e,` {pointer-events: all;}
735
- `)},E3=0,Xn=[];function k3(e){var t=i.useRef([]),r=i.useRef([0,0]),n=i.useRef(),o=i.useState(E3++)[0],a=i.useState($S)[0],c=i.useRef(e);i.useEffect(function(){c.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var u=BY([e.lockRef.current],(e.shards||[]).map(Ry)).filter(Boolean);return u.forEach(function(h){return h.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),u.forEach(function(h){return h.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=i.useCallback(function(u,h){if("touches"in u&&u.touches.length===2||u.type==="wheel"&&u.ctrlKey)return!c.current.allowPinchZoom;var y=ci(u),b=r.current,w="deltaX"in u?u.deltaX:b[0]-y[0],k="deltaY"in u?u.deltaY:b[1]-y[1],C,N=u.target,S=Math.abs(w)>Math.abs(k)?"h":"v";if("touches"in u&&S==="h"&&N.type==="range")return!1;var R=Sy(S,N);if(!R)return!0;if(R?C=S:(C=S==="v"?"h":"v",R=Sy(S,N)),!R)return!1;if(!n.current&&"changedTouches"in u&&(w||k)&&(n.current=C),!C)return!0;var D=n.current||C;return b3(D,h,u,D==="h"?w:k)},[]),m=i.useCallback(function(u){var h=u;if(!(!Xn.length||Xn[Xn.length-1]!==a)){var y="deltaY"in h?Cy(h):ci(h),b=t.current.filter(function(C){return C.name===h.type&&(C.target===h.target||h.target===C.shadowParent)&&w3(C.delta,y)})[0];if(b&&b.should){h.cancelable&&h.preventDefault();return}if(!b){var w=(c.current.shards||[]).map(Ry).filter(Boolean).filter(function(C){return C.contains(h.target)}),k=w.length>0?s(h,w[0]):!c.current.noIsolation;k&&h.cancelable&&h.preventDefault()}}},[]),f=i.useCallback(function(u,h,y,b){var w={name:u,delta:h,target:y,should:b,shadowParent:S3(y)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(k){return k!==w})},1)},[]),l=i.useCallback(function(u){r.current=ci(u),n.current=void 0},[]),p=i.useCallback(function(u){f(u.type,Cy(u),u.target,s(u,e.lockRef.current))},[]),v=i.useCallback(function(u){f(u.type,ci(u),u.target,s(u,e.lockRef.current))},[]);i.useEffect(function(){return Xn.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:v}),document.addEventListener("wheel",m,Kn),document.addEventListener("touchmove",m,Kn),document.addEventListener("touchstart",l,Kn),function(){Xn=Xn.filter(function(u){return u!==a}),document.removeEventListener("wheel",m,Kn),document.removeEventListener("touchmove",m,Kn),document.removeEventListener("touchstart",l,Kn)}},[]);var g=e.removeScrollBar,E=e.inert;return i.createElement(i.Fragment,null,E?i.createElement(a,{styles:x3(o)}):null,g?i.createElement(f3,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function S3(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const C3=QY(WS,k3);var BS=i.forwardRef(function(e,t){return i.createElement(gu,ut({},e,{ref:t,sideCar:C3}))});BS.classNames=gu.classNames;var R3=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Hn=new WeakMap,ui=new WeakMap,li={},Pd=0,KS=function(e){return e&&(e.host||KS(e.parentNode))},O3=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=KS(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},N3=function(e,t,r,n){var o=O3(t,Array.isArray(e)?e:[e]);li[r]||(li[r]=new WeakMap);var a=li[r],c=[],s=new Set,m=new Set(o),f=function(p){!p||s.has(p)||(s.add(p),f(p.parentNode))};o.forEach(f);var l=function(p){!p||m.has(p)||Array.prototype.forEach.call(p.children,function(v){if(s.has(v))l(v);else try{var g=v.getAttribute(n),E=g!==null&&g!=="false",u=(Hn.get(v)||0)+1,h=(a.get(v)||0)+1;Hn.set(v,u),a.set(v,h),c.push(v),u===1&&E&&ui.set(v,!0),h===1&&v.setAttribute(r,"true"),E||v.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",v,y)}})};return l(t),s.clear(),Pd++,function(){c.forEach(function(p){var v=Hn.get(p)-1,g=a.get(p)-1;Hn.set(p,v),a.set(p,g),v||(ui.has(p)||p.removeAttribute(n),ui.delete(p)),g||p.removeAttribute(r)}),Pd--,Pd||(Hn=new WeakMap,Hn=new WeakMap,ui=new WeakMap,li={})}},_3=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=R3(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),N3(n,o,r,"aria-hidden")):function(){return null}},XS="Dialog",[HS]=vu(XS),[xoe,$t]=HS(XS),VS="DialogTrigger",T3=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=$t(VS,r),a=Et(t,o.triggerRef);return Q.jsx(Pe.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Tm(o.open),...n,ref:a,onClick:Se(e.onClick,o.onOpenToggle)})});T3.displayName=VS;var D3="DialogPortal",[Eoe,qS]=HS(D3,{forceMount:void 0}),Uc="DialogOverlay",j3=i.forwardRef((e,t)=>{const r=qS(Uc,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=$t(Uc,e.__scopeDialog);return a.modal?Q.jsx(hu,{present:n||a.open,children:Q.jsx(M3,{...o,ref:t})}):null});j3.displayName=Uc;var P3=q.createSlot("DialogOverlay.RemoveScroll"),M3=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=$t(Uc,r);return Q.jsx(BS,{as:P3,allowPinchZoom:!0,shards:[o.contentRef],children:Q.jsx(Pe.div,{"data-state":Tm(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),qr="DialogContent",A3=i.forwardRef((e,t)=>{const r=qS(qr,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=$t(qr,e.__scopeDialog);return Q.jsx(hu,{present:n||a.open,children:a.modal?Q.jsx(I3,{...o,ref:t}):Q.jsx(L3,{...o,ref:t})})});A3.displayName=qr;var I3=i.forwardRef((e,t)=>{const r=$t(qr,e.__scopeDialog),n=i.useRef(null),o=Et(t,r.contentRef,n);return i.useEffect(()=>{const a=n.current;if(a)return _3(a)},[]),Q.jsx(ZS,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Se(e.onCloseAutoFocus,a=>{a.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:Se(e.onPointerDownOutside,a=>{const c=a.detail.originalEvent,s=c.button===0&&c.ctrlKey===!0;(c.button===2||s)&&a.preventDefault()}),onFocusOutside:Se(e.onFocusOutside,a=>a.preventDefault())})}),L3=i.forwardRef((e,t)=>{const r=$t(qr,e.__scopeDialog),n=i.useRef(!1),o=i.useRef(!1);return Q.jsx(ZS,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(n.current||r.triggerRef.current?.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=a.target;r.triggerRef.current?.contains(c)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),ZS=i.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...c}=e,s=$t(qr,r),m=i.useRef(null),f=Et(t,m);return YY(),Q.jsxs(Q.Fragment,{children:[Q.jsx(AS,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:Q.jsx(PS,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":Tm(s.open),...c,ref:f,onDismiss:()=>s.onOpenChange(!1)})}),Q.jsxs(Q.Fragment,{children:[Q.jsx(z3,{titleId:s.titleId}),Q.jsx(Y3,{contentRef:m,descriptionId:s.descriptionId})]})]})}),_m="DialogTitle",F3=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=$t(_m,r);return Q.jsx(Pe.h2,{id:o.titleId,...n,ref:t})});F3.displayName=_m;var GS="DialogDescription",W3=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=$t(GS,r);return Q.jsx(Pe.p,{id:o.descriptionId,...n,ref:t})});W3.displayName=GS;var JS="DialogClose",$3=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=$t(JS,r);return Q.jsx(Pe.button,{type:"button",...n,ref:t,onClick:Se(e.onClick,()=>o.onOpenChange(!1))})});$3.displayName=JS;function Tm(e){return e?"open":"closed"}var QS="DialogTitleWarning",[koe,e1]=mY(QS,{contentName:qr,titleName:_m,docsSlug:"dialog"}),z3=({titleId:e})=>{const t=e1(QS),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
736
-
737
- If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
738
-
739
- For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},U3="DialogDescriptionWarning",Y3=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${e1(U3).contentName}}.`;return i.useEffect(()=>{const n=e.current?.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Md={exports:{}},sa={};/**
740
- * @license React
741
- * react-jsx-runtime.production.js
742
- *
743
- * Copyright (c) Meta Platforms, Inc. and affiliates.
744
- *
745
- * This source code is licensed under the MIT license found in the
746
- * LICENSE file in the root directory of this source tree.
747
- */var Oy;function B3(){if(Oy)return sa;Oy=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,o,a){var c=null;if(a!==void 0&&(c=""+a),o.key!==void 0&&(c=""+o.key),"key"in o){a={};for(var s in o)s!=="key"&&(a[s]=o[s])}else a=o;return o=a.ref,{$$typeof:e,type:n,key:c,ref:o!==void 0?o:null,props:a}}return sa.Fragment=t,sa.jsx=r,sa.jsxs=r,sa}var di={};/**
748
- * @license React
749
- * react-jsx-runtime.development.js
750
- *
751
- * Copyright (c) Meta Platforms, Inc. and affiliates.
752
- *
753
- * This source code is licensed under the MIT license found in the
754
- * LICENSE file in the root directory of this source tree.
755
- */var Ny;function K3(){return Ny||(Ny=1,process.env.NODE_ENV!=="production"&&(function(){function e(d){if(d==null)return null;if(typeof d=="function")return d.$$typeof===L?null:d.displayName||d.name||null;if(typeof d=="string")return d;switch(d){case u:return"Fragment";case y:return"Profiler";case h:return"StrictMode";case C:return"Suspense";case N:return"SuspenseList";case D:return"Activity"}if(typeof d=="object")switch(typeof d.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),d.$$typeof){case E:return"Portal";case w:return(d.displayName||"Context")+".Provider";case b:return(d._context.displayName||"Context")+".Consumer";case k:var x=d.render;return d=d.displayName,d||(d=x.displayName||x.name||"",d=d!==""?"ForwardRef("+d+")":"ForwardRef"),d;case S:return x=d.displayName||null,x!==null?x:e(d.type)||"Memo";case R:x=d._payload,d=d._init;try{return e(d(x))}catch{}}return null}function t(d){return""+d}function r(d){try{t(d);var x=!1}catch{x=!0}if(x){x=console;var O=x.error,_=typeof Symbol=="function"&&Symbol.toStringTag&&d[Symbol.toStringTag]||d.constructor.name||"Object";return O.call(x,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",_),t(d)}}function n(d){if(d===u)return"<>";if(typeof d=="object"&&d!==null&&d.$$typeof===R)return"<...>";try{var x=e(d);return x?"<"+x+">":"<...>"}catch{return"<...>"}}function o(){var d=I.A;return d===null?null:d.getOwner()}function a(){return Error("react-stack-top-frame")}function c(d){if($.call(d,"key")){var x=Object.getOwnPropertyDescriptor(d,"key").get;if(x&&x.isReactWarning)return!1}return d.key!==void 0}function s(d,x){function O(){M||(M=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",x))}O.isReactWarning=!0,Object.defineProperty(d,"key",{get:O,configurable:!0})}function m(){var d=e(this.type);return K[d]||(K[d]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),d=this.props.ref,d!==void 0?d:null}function f(d,x,O,_,A,j,X,B){return O=j.ref,d={$$typeof:g,type:d,key:x,props:j,_owner:A},(O!==void 0?O:null)!==null?Object.defineProperty(d,"ref",{enumerable:!1,get:m}):Object.defineProperty(d,"ref",{enumerable:!1,value:null}),d._store={},Object.defineProperty(d._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(d,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(d,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:X}),Object.defineProperty(d,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:B}),Object.freeze&&(Object.freeze(d.props),Object.freeze(d)),d}function l(d,x,O,_,A,j,X,B){var T=x.children;if(T!==void 0)if(_)if(U(T)){for(_=0;_<T.length;_++)p(T[_]);Object.freeze&&Object.freeze(T)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else p(T);if($.call(x,"key")){T=e(d);var F=Object.keys(x).filter(function(se){return se!=="key"});_=0<F.length?"{key: someKey, "+F.join(": ..., ")+": ...}":"{key: someKey}",V[T+_]||(F=0<F.length?"{"+F.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
756
- let props = %s;
757
- <%s {...props} />
758
- React keys must be passed directly to JSX without using spread:
759
- let props = %s;
760
- <%s key={someKey} {...props} />`,_,T,F,T),V[T+_]=!0)}if(T=null,O!==void 0&&(r(O),T=""+O),c(x)&&(r(x.key),T=""+x.key),"key"in x){O={};for(var H in x)H!=="key"&&(O[H]=x[H])}else O=x;return T&&s(O,typeof d=="function"?d.displayName||d.name||"Unknown":d),f(d,T,j,A,o(),O,X,B)}function p(d){typeof d=="object"&&d!==null&&d.$$typeof===g&&d._store&&(d._store.validated=1)}var v=P,g=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),b=Symbol.for("react.consumer"),w=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),S=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),D=Symbol.for("react.activity"),L=Symbol.for("react.client.reference"),I=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$=Object.prototype.hasOwnProperty,U=Array.isArray,W=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(d){return d()}};var M,K={},Y=v.react_stack_bottom_frame.bind(v,a)(),z=W(n(a)),V={};di.Fragment=u,di.jsx=function(d,x,O,_,A){var j=1e4>I.recentlyCreatedOwnerStacks++;return l(d,x,O,!1,_,A,j?Error("react-stack-top-frame"):Y,j?W(n(d)):z)},di.jsxs=function(d,x,O,_,A){var j=1e4>I.recentlyCreatedOwnerStacks++;return l(d,x,O,!0,_,A,j?Error("react-stack-top-frame"):Y,j?W(n(d)):z)}})()),di}var _y;function X3(){return _y||(_y=1,process.env.NODE_ENV==="production"?Md.exports=B3():Md.exports=K3()),Md.exports}var ee=X3();P.createContext({locale:void 0});var H3=(e,t,r,n,o,a,c,s)=>{let m=document.documentElement,f=["light","dark"];function l(g){(Array.isArray(e)?e:[e]).forEach(E=>{let u=E==="class",h=u&&a?o.map(y=>a[y]||y):o;u?(m.classList.remove(...h),m.classList.add(a&&a[g]?a[g]:g)):m.setAttribute(E,g)}),p(g)}function p(g){s&&f.includes(g)&&(m.style.colorScheme=g)}function v(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(n)l(n);else try{let g=localStorage.getItem(t)||r,E=c&&g==="system"?v():g;l(E)}catch{}};i.createContext(void 0);i.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:n,enableColorScheme:o,defaultTheme:a,value:c,themes:s,nonce:m,scriptProps:f})=>{let l=JSON.stringify([r,t,a,e,s,c,n,o]).slice(1,-1);return i.createElement("script",{...f,suppressHydrationWarning:!0,nonce:typeof window>"u"?m:"",dangerouslySetInnerHTML:{__html:`(${H3.toString()})(${l})`}})});ae.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});ae.cva("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function Ce(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),r===!1||!n.defaultPrevented)return t?.(n)}}function Ty(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function V3(...e){return t=>{let r=!1;const n=e.map(o=>{const a=Ty(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():Ty(e[o],null)}}}}function kt(...e){return i.useCallback(V3(...e),e)}function q3(e,t){const r=i.createContext(t),n=a=>{const{children:c,...s}=a,m=i.useMemo(()=>s,Object.values(s));return ee.jsx(r.Provider,{value:m,children:c})};n.displayName=e+"Provider";function o(a){const c=i.useContext(r);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,o]}function yu(e,t=[]){let r=[];function n(a,c){const s=i.createContext(c),m=r.length;r=[...r,c];const f=p=>{const{scope:v,children:g,...E}=p,u=v?.[e]?.[m]||s,h=i.useMemo(()=>E,Object.values(E));return ee.jsx(u.Provider,{value:h,children:g})};f.displayName=a+"Provider";function l(p,v){const g=v?.[e]?.[m]||s,E=i.useContext(g);if(E)return E;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[f,l]}const o=()=>{const a=r.map(c=>i.createContext(c));return function(c){const s=c?.[e]||a;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:s}}),[c,s])}};return o.scopeName=e,[n,Z3(o,...t)]}function Z3(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(o){const a=n.reduce((c,{useScope:s,scopeName:m})=>{const f=s(o)[`__scope${m}`];return{...c,...f}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}var Oa=globalThis?.document?i.useLayoutEffect:()=>{},G3=i[" useId ".trim().toString()]||(()=>{}),J3=0;function t1(e){const[t,r]=i.useState(G3());return Oa(()=>{r(n=>n??String(J3++))},[e]),t?`radix-${t}`:""}var Q3=i[" useInsertionEffect ".trim().toString()]||Oa;function r1({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,a,c]=eB({defaultProp:t,onChange:r}),s=e!==void 0,m=s?e:o;{const l=i.useRef(e!==void 0);i.useEffect(()=>{const p=l.current;p!==s&&console.warn(`${n} is changing from ${p?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),l.current=s},[s,n])}const f=i.useCallback(l=>{if(s){const p=tB(l)?l(e):l;p!==e&&c.current?.(p)}else a(l)},[s,e,a,c]);return[m,f]}function eB({defaultProp:e,onChange:t}){const[r,n]=i.useState(e),o=i.useRef(r),a=i.useRef(t);return Q3(()=>{a.current=t},[t]),i.useEffect(()=>{o.current!==r&&(a.current?.(r),o.current=r)},[r,o]),[r,n,a]}function tB(e){return typeof e=="function"}var rB=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Me=rB.reduce((e,t)=>{const r=q.createSlot(`Primitive.${t}`),n=i.forwardRef((o,a)=>{const{asChild:c,...s}=o,m=c?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),ee.jsx(m,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function nB(e,t){e&&we.flushSync(()=>e.dispatchEvent(t))}function Lo(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...r)=>t.current?.(...r),[])}function oB(e,t=globalThis?.document){const r=Lo(e);i.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var aB="DismissableLayer",wp="dismissableLayer.update",sB="dismissableLayer.pointerDownOutside",iB="dismissableLayer.focusOutside",Dy,n1=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),o1=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:c,onDismiss:s,...m}=e,f=i.useContext(n1),[l,p]=i.useState(null),v=l?.ownerDocument??globalThis?.document,[,g]=i.useState({}),E=kt(t,S=>p(S)),u=Array.from(f.layers),[h]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),y=u.indexOf(h),b=l?u.indexOf(l):-1,w=f.layersWithOutsidePointerEventsDisabled.size>0,k=b>=y,C=lB(S=>{const R=S.target,D=[...f.branches].some(L=>L.contains(R));!k||D||(o?.(S),c?.(S),S.defaultPrevented||s?.())},v),N=dB(S=>{const R=S.target;[...f.branches].some(D=>D.contains(R))||(a?.(S),c?.(S),S.defaultPrevented||s?.())},v);return oB(S=>{b===f.layers.size-1&&(n?.(S),!S.defaultPrevented&&s&&(S.preventDefault(),s()))},v),i.useEffect(()=>{if(l)return r&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(Dy=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(l)),f.layers.add(l),jy(),()=>{r&&f.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=Dy)}},[l,v,r,f]),i.useEffect(()=>()=>{l&&(f.layers.delete(l),f.layersWithOutsidePointerEventsDisabled.delete(l),jy())},[l,f]),i.useEffect(()=>{const S=()=>g({});return document.addEventListener(wp,S),()=>document.removeEventListener(wp,S)},[]),ee.jsx(Me.div,{...m,ref:E,style:{pointerEvents:w?k?"auto":"none":void 0,...e.style},onFocusCapture:Ce(e.onFocusCapture,N.onFocusCapture),onBlurCapture:Ce(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:Ce(e.onPointerDownCapture,C.onPointerDownCapture)})});o1.displayName=aB;var cB="DismissableLayerBranch",uB=i.forwardRef((e,t)=>{const r=i.useContext(n1),n=i.useRef(null),o=kt(t,n);return i.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),ee.jsx(Me.div,{...e,ref:o})});uB.displayName=cB;function lB(e,t=globalThis?.document){const r=Lo(e),n=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let m=function(){a1(sB,r,f,{discrete:!0})};const f={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=m,t.addEventListener("click",o.current,{once:!0})):m()}else t.removeEventListener("click",o.current);n.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function dB(e,t=globalThis?.document){const r=Lo(e),n=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!n.current&&a1(iB,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function jy(){const e=new CustomEvent(wp);document.dispatchEvent(e)}function a1(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?nB(o,a):o.dispatchEvent(a)}var Ad="focusScope.autoFocusOnMount",Id="focusScope.autoFocusOnUnmount",Py={bubbles:!1,cancelable:!0},fB="FocusScope",s1=i.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...c}=e,[s,m]=i.useState(null),f=Lo(o),l=Lo(a),p=i.useRef(null),v=kt(t,u=>m(u)),g=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(n){let u=function(w){if(g.paused||!s)return;const k=w.target;s.contains(k)?p.current=k:gr(p.current,{select:!0})},h=function(w){if(g.paused||!s)return;const k=w.relatedTarget;k!==null&&(s.contains(k)||gr(p.current,{select:!0}))},y=function(w){if(document.activeElement===document.body)for(const k of w)k.removedNodes.length>0&&gr(s)};document.addEventListener("focusin",u),document.addEventListener("focusout",h);const b=new MutationObserver(y);return s&&b.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",u),document.removeEventListener("focusout",h),b.disconnect()}}},[n,s,g.paused]),i.useEffect(()=>{if(s){Ay.add(g);const u=document.activeElement;if(!s.contains(u)){const h=new CustomEvent(Ad,Py);s.addEventListener(Ad,f),s.dispatchEvent(h),h.defaultPrevented||(pB(yB(i1(s)),{select:!0}),document.activeElement===u&&gr(s))}return()=>{s.removeEventListener(Ad,f),setTimeout(()=>{const h=new CustomEvent(Id,Py);s.addEventListener(Id,l),s.dispatchEvent(h),h.defaultPrevented||gr(u??document.body,{select:!0}),s.removeEventListener(Id,l),Ay.remove(g)},0)}}},[s,f,l,g]);const E=i.useCallback(u=>{if(!r&&!n||g.paused)return;const h=u.key==="Tab"&&!u.altKey&&!u.ctrlKey&&!u.metaKey,y=document.activeElement;if(h&&y){const b=u.currentTarget,[w,k]=mB(b);w&&k?!u.shiftKey&&y===k?(u.preventDefault(),r&&gr(w,{select:!0})):u.shiftKey&&y===w&&(u.preventDefault(),r&&gr(k,{select:!0})):y===b&&u.preventDefault()}},[r,n,g.paused]);return ee.jsx(Me.div,{tabIndex:-1,...c,ref:v,onKeyDown:E})});s1.displayName=fB;function pB(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(gr(n,{select:t}),document.activeElement!==r)return}function mB(e){const t=i1(e),r=My(t,e),n=My(t.reverse(),e);return[r,n]}function i1(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function My(e,t){for(const r of e)if(!vB(r,{upTo:t}))return r}function vB(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function hB(e){return e instanceof HTMLInputElement&&"select"in e}function gr(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&hB(e)&&t&&e.select()}}var Ay=gB();function gB(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=Iy(e,t),e.unshift(t)},remove(t){e=Iy(e,t),e[0]?.resume()}}}function Iy(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function yB(e){return e.filter(t=>t.tagName!=="A")}var bB="Portal",wB=i.forwardRef((e,t)=>{const{container:r,...n}=e,[o,a]=i.useState(!1);Oa(()=>a(!0),[]);const c=r||o&&globalThis?.document?.body;return c?be.createPortal(ee.jsx(Me.div,{...n,ref:t}),c):null});wB.displayName=bB;function xB(e,t){return i.useReducer((r,n)=>t[r][n]??r,e)}var bu=e=>{const{present:t,children:r}=e,n=EB(t),o=typeof r=="function"?r({present:n.isPresent}):i.Children.only(r),a=kt(n.ref,kB(o));return typeof r=="function"||n.isPresent?i.cloneElement(o,{ref:a}):null};bu.displayName="Presence";function EB(e){const[t,r]=i.useState(),n=i.useRef(null),o=i.useRef(e),a=i.useRef("none"),c=e?"mounted":"unmounted",[s,m]=xB(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const f=fi(n.current);a.current=s==="mounted"?f:"none"},[s]),Oa(()=>{const f=n.current,l=o.current;if(l!==e){const p=a.current,v=fi(f);e?m("MOUNT"):v==="none"||f?.display==="none"?m("UNMOUNT"):m(l&&p!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,m]),Oa(()=>{if(t){let f;const l=t.ownerDocument.defaultView??window,p=g=>{const E=fi(n.current).includes(CSS.escape(g.animationName));if(g.target===t&&E&&(m("ANIMATION_END"),!o.current)){const u=t.style.animationFillMode;t.style.animationFillMode="forwards",f=l.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=u)})}},v=g=>{g.target===t&&(a.current=fi(n.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{l.clearTimeout(f),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else m("ANIMATION_END")},[t,m]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:i.useCallback(f=>{n.current=f?getComputedStyle(f):null,r(f)},[])}}function fi(e){return e?.animationName||"none"}function kB(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Ld=0;function SB(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Ly()),document.body.insertAdjacentElement("beforeend",e[1]??Ly()),Ld++,()=>{Ld===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Ld--}},[])}function Ly(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var lt=function(){return lt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},lt.apply(this,arguments)};function c1(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function CB(e,t,r){for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var yc="right-scroll-bar-position",bc="width-before-scroll-bar",RB="with-scroll-bars-hidden",OB="--removed-body-scroll-bar-size";function Fd(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function NB(e,t){var r=P.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var _B=typeof window<"u"?i.useLayoutEffect:i.useEffect,Fy=new WeakMap;function TB(e,t){var r=NB(null,function(n){return e.forEach(function(o){return Fd(o,n)})});return _B(function(){var n=Fy.get(r);if(n){var o=new Set(n),a=new Set(e),c=r.current;o.forEach(function(s){a.has(s)||Fd(s,null)}),a.forEach(function(s){o.has(s)||Fd(s,c)})}Fy.set(r,e)},[e]),r}function DB(e){return e}function jB(e,t){t===void 0&&(t=DB);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var c=t(a,n);return r.push(c),function(){r=r.filter(function(s){return s!==c})}},assignSyncMedium:function(a){for(n=!0;r.length;){var c=r;r=[],c.forEach(a)}r={push:function(s){return a(s)},filter:function(){return r}}},assignMedium:function(a){n=!0;var c=[];if(r.length){var s=r;r=[],s.forEach(a),c=r}var m=function(){var l=c;c=[],l.forEach(a)},f=function(){return Promise.resolve().then(m)};f(),r={push:function(l){c.push(l),f()},filter:function(l){return c=c.filter(l),r}}}};return o}function PB(e){e===void 0&&(e={});var t=jB(null);return t.options=lt({async:!0,ssr:!1},e),t}var u1=function(e){var t=e.sideCar,r=c1(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return i.createElement(n,lt({},r))};u1.isSideCarExport=!0;function MB(e,t){return e.useMedium(t),u1}var l1=PB(),Wd=function(){},wu=i.forwardRef(function(e,t){var r=i.useRef(null),n=i.useState({onScrollCapture:Wd,onWheelCapture:Wd,onTouchMoveCapture:Wd}),o=n[0],a=n[1],c=e.forwardProps,s=e.children,m=e.className,f=e.removeScrollBar,l=e.enabled,p=e.shards,v=e.sideCar,g=e.noRelative,E=e.noIsolation,u=e.inert,h=e.allowPinchZoom,y=e.as,b=y===void 0?"div":y,w=e.gapMode,k=c1(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=v,N=TB([r,t]),S=lt(lt({},k),o);return i.createElement(i.Fragment,null,l&&i.createElement(C,{sideCar:l1,removeScrollBar:f,shards:p,noRelative:g,noIsolation:E,inert:u,setCallbacks:a,allowPinchZoom:!!h,lockRef:r,gapMode:w}),c?i.cloneElement(i.Children.only(s),lt(lt({},S),{ref:N})):i.createElement(b,lt({},S,{className:m,ref:N}),s))});wu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};wu.classNames={fullWidth:bc,zeroRight:yc};var AB=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function IB(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=AB();return t&&e.setAttribute("nonce",t),e}function LB(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function FB(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var WB=function(){var e=0,t=null;return{add:function(r){e==0&&(t=IB())&&(LB(t,r),FB(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},$B=function(){var e=WB();return function(t,r){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},d1=function(){var e=$B(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},zB={left:0,top:0,right:0,gap:0},$d=function(e){return parseInt(e||"",10)||0},UB=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[$d(r),$d(n),$d(o)]},YB=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return zB;var t=UB(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},BB=d1(),Ro="data-scroll-locked",KB=function(e,t,r,n){var o=e.left,a=e.top,c=e.right,s=e.gap;return r===void 0&&(r="margin"),`
761
- .`.concat(RB,` {
762
- overflow: hidden `).concat(n,`;
763
- padding-right: `).concat(s,"px ").concat(n,`;
764
- }
765
- body[`).concat(Ro,`] {
766
- overflow: hidden `).concat(n,`;
767
- overscroll-behavior: contain;
768
- `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
769
- padding-left: `.concat(o,`px;
770
- padding-top: `).concat(a,`px;
771
- padding-right: `).concat(c,`px;
772
- margin-left:0;
773
- margin-top:0;
774
- margin-right: `).concat(s,"px ").concat(n,`;
775
- `),r==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),`
776
- }
777
-
778
- .`).concat(yc,` {
779
- right: `).concat(s,"px ").concat(n,`;
780
- }
781
-
782
- .`).concat(bc,` {
783
- margin-right: `).concat(s,"px ").concat(n,`;
784
- }
785
-
786
- .`).concat(yc," .").concat(yc,` {
787
- right: 0 `).concat(n,`;
788
- }
789
-
790
- .`).concat(bc," .").concat(bc,` {
791
- margin-right: 0 `).concat(n,`;
792
- }
793
-
794
- body[`).concat(Ro,`] {
795
- `).concat(OB,": ").concat(s,`px;
796
- }
797
- `)},Wy=function(){var e=parseInt(document.body.getAttribute(Ro)||"0",10);return isFinite(e)?e:0},XB=function(){i.useEffect(function(){return document.body.setAttribute(Ro,(Wy()+1).toString()),function(){var e=Wy()-1;e<=0?document.body.removeAttribute(Ro):document.body.setAttribute(Ro,e.toString())}},[])},HB=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;XB();var a=i.useMemo(function(){return YB(o)},[o]);return i.createElement(BB,{styles:KB(a,!t,o,r?"":"!important")})},xp=!1;if(typeof window<"u")try{var pi=Object.defineProperty({},"passive",{get:function(){return xp=!0,!0}});window.addEventListener("test",pi,pi),window.removeEventListener("test",pi,pi)}catch{xp=!1}var Vn=xp?{passive:!1}:!1,VB=function(e){return e.tagName==="TEXTAREA"},f1=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!VB(e)&&r[t]==="visible")},qB=function(e){return f1(e,"overflowY")},ZB=function(e){return f1(e,"overflowX")},$y=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=p1(e,n);if(o){var a=m1(e,n),c=a[1],s=a[2];if(c>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},GB=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},JB=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},p1=function(e,t){return e==="v"?qB(t):ZB(t)},m1=function(e,t){return e==="v"?GB(t):JB(t)},QB=function(e,t){return e==="h"&&t==="rtl"?-1:1},eK=function(e,t,r,n,o){var a=QB(e,window.getComputedStyle(t).direction),c=a*n,s=r.target,m=t.contains(s),f=!1,l=c>0,p=0,v=0;do{if(!s)break;var g=m1(e,s),E=g[0],u=g[1],h=g[2],y=u-h-a*E;(E||y)&&p1(e,s)&&(p+=y,v+=E);var b=s.parentNode;s=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!m&&s!==document.body||m&&(t.contains(s)||t===s));return(l&&Math.abs(p)<1||!l&&Math.abs(v)<1)&&(f=!0),f},mi=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},zy=function(e){return[e.deltaX,e.deltaY]},Uy=function(e){return e&&"current"in e?e.current:e},tK=function(e,t){return e[0]===t[0]&&e[1]===t[1]},rK=function(e){return`
798
- .block-interactivity-`.concat(e,` {pointer-events: none;}
799
- .allow-interactivity-`).concat(e,` {pointer-events: all;}
800
- `)},nK=0,qn=[];function oK(e){var t=i.useRef([]),r=i.useRef([0,0]),n=i.useRef(),o=i.useState(nK++)[0],a=i.useState(d1)[0],c=i.useRef(e);i.useEffect(function(){c.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var u=CB([e.lockRef.current],(e.shards||[]).map(Uy)).filter(Boolean);return u.forEach(function(h){return h.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),u.forEach(function(h){return h.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=i.useCallback(function(u,h){if("touches"in u&&u.touches.length===2||u.type==="wheel"&&u.ctrlKey)return!c.current.allowPinchZoom;var y=mi(u),b=r.current,w="deltaX"in u?u.deltaX:b[0]-y[0],k="deltaY"in u?u.deltaY:b[1]-y[1],C,N=u.target,S=Math.abs(w)>Math.abs(k)?"h":"v";if("touches"in u&&S==="h"&&N.type==="range")return!1;var R=$y(S,N);if(!R)return!0;if(R?C=S:(C=S==="v"?"h":"v",R=$y(S,N)),!R)return!1;if(!n.current&&"changedTouches"in u&&(w||k)&&(n.current=C),!C)return!0;var D=n.current||C;return eK(D,h,u,D==="h"?w:k)},[]),m=i.useCallback(function(u){var h=u;if(!(!qn.length||qn[qn.length-1]!==a)){var y="deltaY"in h?zy(h):mi(h),b=t.current.filter(function(C){return C.name===h.type&&(C.target===h.target||h.target===C.shadowParent)&&tK(C.delta,y)})[0];if(b&&b.should){h.cancelable&&h.preventDefault();return}if(!b){var w=(c.current.shards||[]).map(Uy).filter(Boolean).filter(function(C){return C.contains(h.target)}),k=w.length>0?s(h,w[0]):!c.current.noIsolation;k&&h.cancelable&&h.preventDefault()}}},[]),f=i.useCallback(function(u,h,y,b){var w={name:u,delta:h,target:y,should:b,shadowParent:aK(y)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(k){return k!==w})},1)},[]),l=i.useCallback(function(u){r.current=mi(u),n.current=void 0},[]),p=i.useCallback(function(u){f(u.type,zy(u),u.target,s(u,e.lockRef.current))},[]),v=i.useCallback(function(u){f(u.type,mi(u),u.target,s(u,e.lockRef.current))},[]);i.useEffect(function(){return qn.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:v}),document.addEventListener("wheel",m,Vn),document.addEventListener("touchmove",m,Vn),document.addEventListener("touchstart",l,Vn),function(){qn=qn.filter(function(u){return u!==a}),document.removeEventListener("wheel",m,Vn),document.removeEventListener("touchmove",m,Vn),document.removeEventListener("touchstart",l,Vn)}},[]);var g=e.removeScrollBar,E=e.inert;return i.createElement(i.Fragment,null,E?i.createElement(a,{styles:rK(o)}):null,g?i.createElement(HB,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function aK(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const sK=MB(l1,oK);var v1=i.forwardRef(function(e,t){return i.createElement(wu,lt({},e,{ref:t,sideCar:sK}))});v1.classNames=wu.classNames;var iK=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Zn=new WeakMap,vi=new WeakMap,hi={},zd=0,h1=function(e){return e&&(e.host||h1(e.parentNode))},cK=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=h1(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},uK=function(e,t,r,n){var o=cK(t,Array.isArray(e)?e:[e]);hi[r]||(hi[r]=new WeakMap);var a=hi[r],c=[],s=new Set,m=new Set(o),f=function(p){!p||s.has(p)||(s.add(p),f(p.parentNode))};o.forEach(f);var l=function(p){!p||m.has(p)||Array.prototype.forEach.call(p.children,function(v){if(s.has(v))l(v);else try{var g=v.getAttribute(n),E=g!==null&&g!=="false",u=(Zn.get(v)||0)+1,h=(a.get(v)||0)+1;Zn.set(v,u),a.set(v,h),c.push(v),u===1&&E&&vi.set(v,!0),h===1&&v.setAttribute(r,"true"),E||v.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",v,y)}})};return l(t),s.clear(),zd++,function(){c.forEach(function(p){var v=Zn.get(p)-1,g=a.get(p)-1;Zn.set(p,v),a.set(p,g),v||(vi.has(p)||p.removeAttribute(n),vi.delete(p)),g||p.removeAttribute(r)}),zd--,zd||(Zn=new WeakMap,Zn=new WeakMap,vi=new WeakMap,hi={})}},lK=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=iK(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),uK(n,o,r,"aria-hidden")):function(){return null}},g1="Dialog",[y1]=yu(g1),[Soe,zt]=y1(g1),b1="DialogTrigger",dK=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=zt(b1,r),a=kt(t,o.triggerRef);return ee.jsx(Me.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":jm(o.open),...n,ref:a,onClick:Ce(e.onClick,o.onOpenToggle)})});dK.displayName=b1;var fK="DialogPortal",[Coe,w1]=y1(fK,{forceMount:void 0}),Yc="DialogOverlay",pK=i.forwardRef((e,t)=>{const r=w1(Yc,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=zt(Yc,e.__scopeDialog);return a.modal?ee.jsx(bu,{present:n||a.open,children:ee.jsx(vK,{...o,ref:t})}):null});pK.displayName=Yc;var mK=q.createSlot("DialogOverlay.RemoveScroll"),vK=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=zt(Yc,r);return ee.jsx(v1,{as:mK,allowPinchZoom:!0,shards:[o.contentRef],children:ee.jsx(Me.div,{"data-state":jm(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),Zr="DialogContent",hK=i.forwardRef((e,t)=>{const r=w1(Zr,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=zt(Zr,e.__scopeDialog);return ee.jsx(bu,{present:n||a.open,children:a.modal?ee.jsx(gK,{...o,ref:t}):ee.jsx(yK,{...o,ref:t})})});hK.displayName=Zr;var gK=i.forwardRef((e,t)=>{const r=zt(Zr,e.__scopeDialog),n=i.useRef(null),o=kt(t,r.contentRef,n);return i.useEffect(()=>{const a=n.current;if(a)return lK(a)},[]),ee.jsx(x1,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ce(e.onCloseAutoFocus,a=>{a.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:Ce(e.onPointerDownOutside,a=>{const c=a.detail.originalEvent,s=c.button===0&&c.ctrlKey===!0;(c.button===2||s)&&a.preventDefault()}),onFocusOutside:Ce(e.onFocusOutside,a=>a.preventDefault())})}),yK=i.forwardRef((e,t)=>{const r=zt(Zr,e.__scopeDialog),n=i.useRef(!1),o=i.useRef(!1);return ee.jsx(x1,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(n.current||r.triggerRef.current?.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=a.target;r.triggerRef.current?.contains(c)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),x1=i.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...c}=e,s=zt(Zr,r),m=i.useRef(null),f=kt(t,m);return SB(),ee.jsxs(ee.Fragment,{children:[ee.jsx(s1,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:ee.jsx(o1,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":jm(s.open),...c,ref:f,onDismiss:()=>s.onOpenChange(!1)})}),ee.jsxs(ee.Fragment,{children:[ee.jsx(EK,{titleId:s.titleId}),ee.jsx(SK,{contentRef:m,descriptionId:s.descriptionId})]})]})}),Dm="DialogTitle",bK=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=zt(Dm,r);return ee.jsx(Me.h2,{id:o.titleId,...n,ref:t})});bK.displayName=Dm;var E1="DialogDescription",wK=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=zt(E1,r);return ee.jsx(Me.p,{id:o.descriptionId,...n,ref:t})});wK.displayName=E1;var k1="DialogClose",xK=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=zt(k1,r);return ee.jsx(Me.button,{type:"button",...n,ref:t,onClick:Ce(e.onClick,()=>o.onOpenChange(!1))})});xK.displayName=k1;function jm(e){return e?"open":"closed"}var S1="DialogTitleWarning",[Roe,C1]=q3(S1,{contentName:Zr,titleName:Dm,docsSlug:"dialog"}),EK=({titleId:e})=>{const t=C1(S1),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
801
-
802
- If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
803
-
804
- For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},kK="DialogDescriptionWarning",SK=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${C1(kK).contentName}}.`;return i.useEffect(()=>{const n=e.current?.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Ud={exports:{}},ia={};/**
805
- * @license React
806
- * react-jsx-runtime.production.js
807
- *
808
- * Copyright (c) Meta Platforms, Inc. and affiliates.
809
- *
810
- * This source code is licensed under the MIT license found in the
811
- * LICENSE file in the root directory of this source tree.
812
- */var Yy;function CK(){if(Yy)return ia;Yy=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,o,a){var c=null;if(a!==void 0&&(c=""+a),o.key!==void 0&&(c=""+o.key),"key"in o){a={};for(var s in o)s!=="key"&&(a[s]=o[s])}else a=o;return o=a.ref,{$$typeof:e,type:n,key:c,ref:o!==void 0?o:null,props:a}}return ia.Fragment=t,ia.jsx=r,ia.jsxs=r,ia}var gi={};/**
813
- * @license React
814
- * react-jsx-runtime.development.js
815
- *
816
- * Copyright (c) Meta Platforms, Inc. and affiliates.
817
- *
818
- * This source code is licensed under the MIT license found in the
819
- * LICENSE file in the root directory of this source tree.
820
- */var By;function RK(){return By||(By=1,process.env.NODE_ENV!=="production"&&(function(){function e(d){if(d==null)return null;if(typeof d=="function")return d.$$typeof===L?null:d.displayName||d.name||null;if(typeof d=="string")return d;switch(d){case u:return"Fragment";case y:return"Profiler";case h:return"StrictMode";case C:return"Suspense";case N:return"SuspenseList";case D:return"Activity"}if(typeof d=="object")switch(typeof d.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),d.$$typeof){case E:return"Portal";case w:return(d.displayName||"Context")+".Provider";case b:return(d._context.displayName||"Context")+".Consumer";case k:var x=d.render;return d=d.displayName,d||(d=x.displayName||x.name||"",d=d!==""?"ForwardRef("+d+")":"ForwardRef"),d;case S:return x=d.displayName||null,x!==null?x:e(d.type)||"Memo";case R:x=d._payload,d=d._init;try{return e(d(x))}catch{}}return null}function t(d){return""+d}function r(d){try{t(d);var x=!1}catch{x=!0}if(x){x=console;var O=x.error,_=typeof Symbol=="function"&&Symbol.toStringTag&&d[Symbol.toStringTag]||d.constructor.name||"Object";return O.call(x,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",_),t(d)}}function n(d){if(d===u)return"<>";if(typeof d=="object"&&d!==null&&d.$$typeof===R)return"<...>";try{var x=e(d);return x?"<"+x+">":"<...>"}catch{return"<...>"}}function o(){var d=I.A;return d===null?null:d.getOwner()}function a(){return Error("react-stack-top-frame")}function c(d){if($.call(d,"key")){var x=Object.getOwnPropertyDescriptor(d,"key").get;if(x&&x.isReactWarning)return!1}return d.key!==void 0}function s(d,x){function O(){M||(M=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",x))}O.isReactWarning=!0,Object.defineProperty(d,"key",{get:O,configurable:!0})}function m(){var d=e(this.type);return K[d]||(K[d]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),d=this.props.ref,d!==void 0?d:null}function f(d,x,O,_,A,j,X,B){return O=j.ref,d={$$typeof:g,type:d,key:x,props:j,_owner:A},(O!==void 0?O:null)!==null?Object.defineProperty(d,"ref",{enumerable:!1,get:m}):Object.defineProperty(d,"ref",{enumerable:!1,value:null}),d._store={},Object.defineProperty(d._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(d,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(d,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:X}),Object.defineProperty(d,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:B}),Object.freeze&&(Object.freeze(d.props),Object.freeze(d)),d}function l(d,x,O,_,A,j,X,B){var T=x.children;if(T!==void 0)if(_)if(U(T)){for(_=0;_<T.length;_++)p(T[_]);Object.freeze&&Object.freeze(T)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else p(T);if($.call(x,"key")){T=e(d);var F=Object.keys(x).filter(function(se){return se!=="key"});_=0<F.length?"{key: someKey, "+F.join(": ..., ")+": ...}":"{key: someKey}",V[T+_]||(F=0<F.length?"{"+F.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
821
- let props = %s;
822
- <%s {...props} />
823
- React keys must be passed directly to JSX without using spread:
824
- let props = %s;
825
- <%s key={someKey} {...props} />`,_,T,F,T),V[T+_]=!0)}if(T=null,O!==void 0&&(r(O),T=""+O),c(x)&&(r(x.key),T=""+x.key),"key"in x){O={};for(var H in x)H!=="key"&&(O[H]=x[H])}else O=x;return T&&s(O,typeof d=="function"?d.displayName||d.name||"Unknown":d),f(d,T,j,A,o(),O,X,B)}function p(d){typeof d=="object"&&d!==null&&d.$$typeof===g&&d._store&&(d._store.validated=1)}var v=P,g=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),b=Symbol.for("react.consumer"),w=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),S=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),D=Symbol.for("react.activity"),L=Symbol.for("react.client.reference"),I=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$=Object.prototype.hasOwnProperty,U=Array.isArray,W=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(d){return d()}};var M,K={},Y=v.react_stack_bottom_frame.bind(v,a)(),z=W(n(a)),V={};gi.Fragment=u,gi.jsx=function(d,x,O,_,A){var j=1e4>I.recentlyCreatedOwnerStacks++;return l(d,x,O,!1,_,A,j?Error("react-stack-top-frame"):Y,j?W(n(d)):z)},gi.jsxs=function(d,x,O,_,A){var j=1e4>I.recentlyCreatedOwnerStacks++;return l(d,x,O,!0,_,A,j?Error("react-stack-top-frame"):Y,j?W(n(d)):z)}})()),gi}var Ky;function OK(){return Ky||(Ky=1,process.env.NODE_ENV==="production"?Ud.exports=CK():Ud.exports=RK()),Ud.exports}var te=OK();P.createContext({locale:void 0});var NK=(e,t,r,n,o,a,c,s)=>{let m=document.documentElement,f=["light","dark"];function l(g){(Array.isArray(e)?e:[e]).forEach(E=>{let u=E==="class",h=u&&a?o.map(y=>a[y]||y):o;u?(m.classList.remove(...h),m.classList.add(a&&a[g]?a[g]:g)):m.setAttribute(E,g)}),p(g)}function p(g){s&&f.includes(g)&&(m.style.colorScheme=g)}function v(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(n)l(n);else try{let g=localStorage.getItem(t)||r,E=c&&g==="system"?v():g;l(E)}catch{}};i.createContext(void 0);i.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:n,enableColorScheme:o,defaultTheme:a,value:c,themes:s,nonce:m,scriptProps:f})=>{let l=JSON.stringify([r,t,a,e,s,c,n,o]).slice(1,-1);return i.createElement("script",{...f,suppressHydrationWarning:!0,nonce:typeof window>"u"?m:"",dangerouslySetInnerHTML:{__html:`(${NK.toString()})(${l})`}})});ae.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});ae.cva("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function Re(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),r===!1||!n.defaultPrevented)return t?.(n)}}function Xy(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function _K(...e){return t=>{let r=!1;const n=e.map(o=>{const a=Xy(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():Xy(e[o],null)}}}}function St(...e){return i.useCallback(_K(...e),e)}function TK(e,t){const r=i.createContext(t),n=a=>{const{children:c,...s}=a,m=i.useMemo(()=>s,Object.values(s));return te.jsx(r.Provider,{value:m,children:c})};n.displayName=e+"Provider";function o(a){const c=i.useContext(r);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,o]}function xu(e,t=[]){let r=[];function n(a,c){const s=i.createContext(c),m=r.length;r=[...r,c];const f=p=>{const{scope:v,children:g,...E}=p,u=v?.[e]?.[m]||s,h=i.useMemo(()=>E,Object.values(E));return te.jsx(u.Provider,{value:h,children:g})};f.displayName=a+"Provider";function l(p,v){const g=v?.[e]?.[m]||s,E=i.useContext(g);if(E)return E;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[f,l]}const o=()=>{const a=r.map(c=>i.createContext(c));return function(c){const s=c?.[e]||a;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:s}}),[c,s])}};return o.scopeName=e,[n,DK(o,...t)]}function DK(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(o){const a=n.reduce((c,{useScope:s,scopeName:m})=>{const f=s(o)[`__scope${m}`];return{...c,...f}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}var Na=globalThis?.document?i.useLayoutEffect:()=>{},jK=i[" useId ".trim().toString()]||(()=>{}),PK=0;function R1(e){const[t,r]=i.useState(jK());return Na(()=>{r(n=>n??String(PK++))},[e]),t?`radix-${t}`:""}var MK=i[" useInsertionEffect ".trim().toString()]||Na;function O1({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,a,c]=AK({defaultProp:t,onChange:r}),s=e!==void 0,m=s?e:o;{const l=i.useRef(e!==void 0);i.useEffect(()=>{const p=l.current;p!==s&&console.warn(`${n} is changing from ${p?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),l.current=s},[s,n])}const f=i.useCallback(l=>{if(s){const p=IK(l)?l(e):l;p!==e&&c.current?.(p)}else a(l)},[s,e,a,c]);return[m,f]}function AK({defaultProp:e,onChange:t}){const[r,n]=i.useState(e),o=i.useRef(r),a=i.useRef(t);return MK(()=>{a.current=t},[t]),i.useEffect(()=>{o.current!==r&&(a.current?.(r),o.current=r)},[r,o]),[r,n,a]}function IK(e){return typeof e=="function"}var LK=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ae=LK.reduce((e,t)=>{const r=q.createSlot(`Primitive.${t}`),n=i.forwardRef((o,a)=>{const{asChild:c,...s}=o,m=c?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),te.jsx(m,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function FK(e,t){e&&we.flushSync(()=>e.dispatchEvent(t))}function Fo(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...r)=>t.current?.(...r),[])}function WK(e,t=globalThis?.document){const r=Fo(e);i.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var $K="DismissableLayer",Ep="dismissableLayer.update",zK="dismissableLayer.pointerDownOutside",UK="dismissableLayer.focusOutside",Hy,N1=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),_1=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:c,onDismiss:s,...m}=e,f=i.useContext(N1),[l,p]=i.useState(null),v=l?.ownerDocument??globalThis?.document,[,g]=i.useState({}),E=St(t,S=>p(S)),u=Array.from(f.layers),[h]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),y=u.indexOf(h),b=l?u.indexOf(l):-1,w=f.layersWithOutsidePointerEventsDisabled.size>0,k=b>=y,C=KK(S=>{const R=S.target,D=[...f.branches].some(L=>L.contains(R));!k||D||(o?.(S),c?.(S),S.defaultPrevented||s?.())},v),N=XK(S=>{const R=S.target;[...f.branches].some(D=>D.contains(R))||(a?.(S),c?.(S),S.defaultPrevented||s?.())},v);return WK(S=>{b===f.layers.size-1&&(n?.(S),!S.defaultPrevented&&s&&(S.preventDefault(),s()))},v),i.useEffect(()=>{if(l)return r&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(Hy=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(l)),f.layers.add(l),Vy(),()=>{r&&f.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=Hy)}},[l,v,r,f]),i.useEffect(()=>()=>{l&&(f.layers.delete(l),f.layersWithOutsidePointerEventsDisabled.delete(l),Vy())},[l,f]),i.useEffect(()=>{const S=()=>g({});return document.addEventListener(Ep,S),()=>document.removeEventListener(Ep,S)},[]),te.jsx(Ae.div,{...m,ref:E,style:{pointerEvents:w?k?"auto":"none":void 0,...e.style},onFocusCapture:Re(e.onFocusCapture,N.onFocusCapture),onBlurCapture:Re(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:Re(e.onPointerDownCapture,C.onPointerDownCapture)})});_1.displayName=$K;var YK="DismissableLayerBranch",BK=i.forwardRef((e,t)=>{const r=i.useContext(N1),n=i.useRef(null),o=St(t,n);return i.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),te.jsx(Ae.div,{...e,ref:o})});BK.displayName=YK;function KK(e,t=globalThis?.document){const r=Fo(e),n=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let m=function(){T1(zK,r,f,{discrete:!0})};const f={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=m,t.addEventListener("click",o.current,{once:!0})):m()}else t.removeEventListener("click",o.current);n.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function XK(e,t=globalThis?.document){const r=Fo(e),n=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!n.current&&T1(UK,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function Vy(){const e=new CustomEvent(Ep);document.dispatchEvent(e)}function T1(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?FK(o,a):o.dispatchEvent(a)}var Yd="focusScope.autoFocusOnMount",Bd="focusScope.autoFocusOnUnmount",qy={bubbles:!1,cancelable:!0},HK="FocusScope",D1=i.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...c}=e,[s,m]=i.useState(null),f=Fo(o),l=Fo(a),p=i.useRef(null),v=St(t,u=>m(u)),g=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(n){let u=function(w){if(g.paused||!s)return;const k=w.target;s.contains(k)?p.current=k:yr(p.current,{select:!0})},h=function(w){if(g.paused||!s)return;const k=w.relatedTarget;k!==null&&(s.contains(k)||yr(p.current,{select:!0}))},y=function(w){if(document.activeElement===document.body)for(const k of w)k.removedNodes.length>0&&yr(s)};document.addEventListener("focusin",u),document.addEventListener("focusout",h);const b=new MutationObserver(y);return s&&b.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",u),document.removeEventListener("focusout",h),b.disconnect()}}},[n,s,g.paused]),i.useEffect(()=>{if(s){Gy.add(g);const u=document.activeElement;if(!s.contains(u)){const h=new CustomEvent(Yd,qy);s.addEventListener(Yd,f),s.dispatchEvent(h),h.defaultPrevented||(VK(QK(j1(s)),{select:!0}),document.activeElement===u&&yr(s))}return()=>{s.removeEventListener(Yd,f),setTimeout(()=>{const h=new CustomEvent(Bd,qy);s.addEventListener(Bd,l),s.dispatchEvent(h),h.defaultPrevented||yr(u??document.body,{select:!0}),s.removeEventListener(Bd,l),Gy.remove(g)},0)}}},[s,f,l,g]);const E=i.useCallback(u=>{if(!r&&!n||g.paused)return;const h=u.key==="Tab"&&!u.altKey&&!u.ctrlKey&&!u.metaKey,y=document.activeElement;if(h&&y){const b=u.currentTarget,[w,k]=qK(b);w&&k?!u.shiftKey&&y===k?(u.preventDefault(),r&&yr(w,{select:!0})):u.shiftKey&&y===w&&(u.preventDefault(),r&&yr(k,{select:!0})):y===b&&u.preventDefault()}},[r,n,g.paused]);return te.jsx(Ae.div,{tabIndex:-1,...c,ref:v,onKeyDown:E})});D1.displayName=HK;function VK(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(yr(n,{select:t}),document.activeElement!==r)return}function qK(e){const t=j1(e),r=Zy(t,e),n=Zy(t.reverse(),e);return[r,n]}function j1(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Zy(e,t){for(const r of e)if(!ZK(r,{upTo:t}))return r}function ZK(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function GK(e){return e instanceof HTMLInputElement&&"select"in e}function yr(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&GK(e)&&t&&e.select()}}var Gy=JK();function JK(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=Jy(e,t),e.unshift(t)},remove(t){e=Jy(e,t),e[0]?.resume()}}}function Jy(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function QK(e){return e.filter(t=>t.tagName!=="A")}var e6="Portal",t6=i.forwardRef((e,t)=>{const{container:r,...n}=e,[o,a]=i.useState(!1);Na(()=>a(!0),[]);const c=r||o&&globalThis?.document?.body;return c?be.createPortal(te.jsx(Ae.div,{...n,ref:t}),c):null});t6.displayName=e6;function r6(e,t){return i.useReducer((r,n)=>t[r][n]??r,e)}var Eu=e=>{const{present:t,children:r}=e,n=n6(t),o=typeof r=="function"?r({present:n.isPresent}):i.Children.only(r),a=St(n.ref,o6(o));return typeof r=="function"||n.isPresent?i.cloneElement(o,{ref:a}):null};Eu.displayName="Presence";function n6(e){const[t,r]=i.useState(),n=i.useRef(null),o=i.useRef(e),a=i.useRef("none"),c=e?"mounted":"unmounted",[s,m]=r6(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const f=yi(n.current);a.current=s==="mounted"?f:"none"},[s]),Na(()=>{const f=n.current,l=o.current;if(l!==e){const p=a.current,v=yi(f);e?m("MOUNT"):v==="none"||f?.display==="none"?m("UNMOUNT"):m(l&&p!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,m]),Na(()=>{if(t){let f;const l=t.ownerDocument.defaultView??window,p=g=>{const E=yi(n.current).includes(CSS.escape(g.animationName));if(g.target===t&&E&&(m("ANIMATION_END"),!o.current)){const u=t.style.animationFillMode;t.style.animationFillMode="forwards",f=l.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=u)})}},v=g=>{g.target===t&&(a.current=yi(n.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{l.clearTimeout(f),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else m("ANIMATION_END")},[t,m]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:i.useCallback(f=>{n.current=f?getComputedStyle(f):null,r(f)},[])}}function yi(e){return e?.animationName||"none"}function o6(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Kd=0;function a6(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Qy()),document.body.insertAdjacentElement("beforeend",e[1]??Qy()),Kd++,()=>{Kd===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Kd--}},[])}function Qy(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var dt=function(){return dt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},dt.apply(this,arguments)};function P1(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function s6(e,t,r){for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var wc="right-scroll-bar-position",xc="width-before-scroll-bar",i6="with-scroll-bars-hidden",c6="--removed-body-scroll-bar-size";function Xd(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function u6(e,t){var r=P.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var l6=typeof window<"u"?i.useLayoutEffect:i.useEffect,eb=new WeakMap;function d6(e,t){var r=u6(null,function(n){return e.forEach(function(o){return Xd(o,n)})});return l6(function(){var n=eb.get(r);if(n){var o=new Set(n),a=new Set(e),c=r.current;o.forEach(function(s){a.has(s)||Xd(s,null)}),a.forEach(function(s){o.has(s)||Xd(s,c)})}eb.set(r,e)},[e]),r}function f6(e){return e}function p6(e,t){t===void 0&&(t=f6);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var c=t(a,n);return r.push(c),function(){r=r.filter(function(s){return s!==c})}},assignSyncMedium:function(a){for(n=!0;r.length;){var c=r;r=[],c.forEach(a)}r={push:function(s){return a(s)},filter:function(){return r}}},assignMedium:function(a){n=!0;var c=[];if(r.length){var s=r;r=[],s.forEach(a),c=r}var m=function(){var l=c;c=[],l.forEach(a)},f=function(){return Promise.resolve().then(m)};f(),r={push:function(l){c.push(l),f()},filter:function(l){return c=c.filter(l),r}}}};return o}function m6(e){e===void 0&&(e={});var t=p6(null);return t.options=dt({async:!0,ssr:!1},e),t}var M1=function(e){var t=e.sideCar,r=P1(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return i.createElement(n,dt({},r))};M1.isSideCarExport=!0;function v6(e,t){return e.useMedium(t),M1}var A1=m6(),Hd=function(){},ku=i.forwardRef(function(e,t){var r=i.useRef(null),n=i.useState({onScrollCapture:Hd,onWheelCapture:Hd,onTouchMoveCapture:Hd}),o=n[0],a=n[1],c=e.forwardProps,s=e.children,m=e.className,f=e.removeScrollBar,l=e.enabled,p=e.shards,v=e.sideCar,g=e.noRelative,E=e.noIsolation,u=e.inert,h=e.allowPinchZoom,y=e.as,b=y===void 0?"div":y,w=e.gapMode,k=P1(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=v,N=d6([r,t]),S=dt(dt({},k),o);return i.createElement(i.Fragment,null,l&&i.createElement(C,{sideCar:A1,removeScrollBar:f,shards:p,noRelative:g,noIsolation:E,inert:u,setCallbacks:a,allowPinchZoom:!!h,lockRef:r,gapMode:w}),c?i.cloneElement(i.Children.only(s),dt(dt({},S),{ref:N})):i.createElement(b,dt({},S,{className:m,ref:N}),s))});ku.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ku.classNames={fullWidth:xc,zeroRight:wc};var h6=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function g6(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=h6();return t&&e.setAttribute("nonce",t),e}function y6(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function b6(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var w6=function(){var e=0,t=null;return{add:function(r){e==0&&(t=g6())&&(y6(t,r),b6(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},x6=function(){var e=w6();return function(t,r){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},I1=function(){var e=x6(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},E6={left:0,top:0,right:0,gap:0},Vd=function(e){return parseInt(e||"",10)||0},k6=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Vd(r),Vd(n),Vd(o)]},S6=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return E6;var t=k6(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},C6=I1(),Oo="data-scroll-locked",R6=function(e,t,r,n){var o=e.left,a=e.top,c=e.right,s=e.gap;return r===void 0&&(r="margin"),`
826
- .`.concat(i6,` {
827
- overflow: hidden `).concat(n,`;
828
- padding-right: `).concat(s,"px ").concat(n,`;
829
- }
830
- body[`).concat(Oo,`] {
831
- overflow: hidden `).concat(n,`;
832
- overscroll-behavior: contain;
833
- `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
834
- padding-left: `.concat(o,`px;
835
- padding-top: `).concat(a,`px;
836
- padding-right: `).concat(c,`px;
837
- margin-left:0;
838
- margin-top:0;
839
- margin-right: `).concat(s,"px ").concat(n,`;
840
- `),r==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),`
841
- }
842
-
843
- .`).concat(wc,` {
844
- right: `).concat(s,"px ").concat(n,`;
845
- }
846
-
847
- .`).concat(xc,` {
848
- margin-right: `).concat(s,"px ").concat(n,`;
849
- }
850
-
851
- .`).concat(wc," .").concat(wc,` {
852
- right: 0 `).concat(n,`;
853
- }
854
-
855
- .`).concat(xc," .").concat(xc,` {
856
- margin-right: 0 `).concat(n,`;
857
- }
858
-
859
- body[`).concat(Oo,`] {
860
- `).concat(c6,": ").concat(s,`px;
861
- }
862
- `)},tb=function(){var e=parseInt(document.body.getAttribute(Oo)||"0",10);return isFinite(e)?e:0},O6=function(){i.useEffect(function(){return document.body.setAttribute(Oo,(tb()+1).toString()),function(){var e=tb()-1;e<=0?document.body.removeAttribute(Oo):document.body.setAttribute(Oo,e.toString())}},[])},N6=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;O6();var a=i.useMemo(function(){return S6(o)},[o]);return i.createElement(C6,{styles:R6(a,!t,o,r?"":"!important")})},kp=!1;if(typeof window<"u")try{var bi=Object.defineProperty({},"passive",{get:function(){return kp=!0,!0}});window.addEventListener("test",bi,bi),window.removeEventListener("test",bi,bi)}catch{kp=!1}var Gn=kp?{passive:!1}:!1,_6=function(e){return e.tagName==="TEXTAREA"},L1=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!_6(e)&&r[t]==="visible")},T6=function(e){return L1(e,"overflowY")},D6=function(e){return L1(e,"overflowX")},rb=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=F1(e,n);if(o){var a=W1(e,n),c=a[1],s=a[2];if(c>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},j6=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},P6=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},F1=function(e,t){return e==="v"?T6(t):D6(t)},W1=function(e,t){return e==="v"?j6(t):P6(t)},M6=function(e,t){return e==="h"&&t==="rtl"?-1:1},A6=function(e,t,r,n,o){var a=M6(e,window.getComputedStyle(t).direction),c=a*n,s=r.target,m=t.contains(s),f=!1,l=c>0,p=0,v=0;do{if(!s)break;var g=W1(e,s),E=g[0],u=g[1],h=g[2],y=u-h-a*E;(E||y)&&F1(e,s)&&(p+=y,v+=E);var b=s.parentNode;s=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!m&&s!==document.body||m&&(t.contains(s)||t===s));return(l&&Math.abs(p)<1||!l&&Math.abs(v)<1)&&(f=!0),f},wi=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},nb=function(e){return[e.deltaX,e.deltaY]},ob=function(e){return e&&"current"in e?e.current:e},I6=function(e,t){return e[0]===t[0]&&e[1]===t[1]},L6=function(e){return`
863
- .block-interactivity-`.concat(e,` {pointer-events: none;}
864
- .allow-interactivity-`).concat(e,` {pointer-events: all;}
865
- `)},F6=0,Jn=[];function W6(e){var t=i.useRef([]),r=i.useRef([0,0]),n=i.useRef(),o=i.useState(F6++)[0],a=i.useState(I1)[0],c=i.useRef(e);i.useEffect(function(){c.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var u=s6([e.lockRef.current],(e.shards||[]).map(ob)).filter(Boolean);return u.forEach(function(h){return h.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),u.forEach(function(h){return h.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=i.useCallback(function(u,h){if("touches"in u&&u.touches.length===2||u.type==="wheel"&&u.ctrlKey)return!c.current.allowPinchZoom;var y=wi(u),b=r.current,w="deltaX"in u?u.deltaX:b[0]-y[0],k="deltaY"in u?u.deltaY:b[1]-y[1],C,N=u.target,S=Math.abs(w)>Math.abs(k)?"h":"v";if("touches"in u&&S==="h"&&N.type==="range")return!1;var R=rb(S,N);if(!R)return!0;if(R?C=S:(C=S==="v"?"h":"v",R=rb(S,N)),!R)return!1;if(!n.current&&"changedTouches"in u&&(w||k)&&(n.current=C),!C)return!0;var D=n.current||C;return A6(D,h,u,D==="h"?w:k)},[]),m=i.useCallback(function(u){var h=u;if(!(!Jn.length||Jn[Jn.length-1]!==a)){var y="deltaY"in h?nb(h):wi(h),b=t.current.filter(function(C){return C.name===h.type&&(C.target===h.target||h.target===C.shadowParent)&&I6(C.delta,y)})[0];if(b&&b.should){h.cancelable&&h.preventDefault();return}if(!b){var w=(c.current.shards||[]).map(ob).filter(Boolean).filter(function(C){return C.contains(h.target)}),k=w.length>0?s(h,w[0]):!c.current.noIsolation;k&&h.cancelable&&h.preventDefault()}}},[]),f=i.useCallback(function(u,h,y,b){var w={name:u,delta:h,target:y,should:b,shadowParent:$6(y)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(k){return k!==w})},1)},[]),l=i.useCallback(function(u){r.current=wi(u),n.current=void 0},[]),p=i.useCallback(function(u){f(u.type,nb(u),u.target,s(u,e.lockRef.current))},[]),v=i.useCallback(function(u){f(u.type,wi(u),u.target,s(u,e.lockRef.current))},[]);i.useEffect(function(){return Jn.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:v}),document.addEventListener("wheel",m,Gn),document.addEventListener("touchmove",m,Gn),document.addEventListener("touchstart",l,Gn),function(){Jn=Jn.filter(function(u){return u!==a}),document.removeEventListener("wheel",m,Gn),document.removeEventListener("touchmove",m,Gn),document.removeEventListener("touchstart",l,Gn)}},[]);var g=e.removeScrollBar,E=e.inert;return i.createElement(i.Fragment,null,E?i.createElement(a,{styles:L6(o)}):null,g?i.createElement(N6,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function $6(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const z6=v6(A1,W6);var $1=i.forwardRef(function(e,t){return i.createElement(ku,dt({},e,{ref:t,sideCar:z6}))});$1.classNames=ku.classNames;var U6=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Qn=new WeakMap,xi=new WeakMap,Ei={},qd=0,z1=function(e){return e&&(e.host||z1(e.parentNode))},Y6=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=z1(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},B6=function(e,t,r,n){var o=Y6(t,Array.isArray(e)?e:[e]);Ei[r]||(Ei[r]=new WeakMap);var a=Ei[r],c=[],s=new Set,m=new Set(o),f=function(p){!p||s.has(p)||(s.add(p),f(p.parentNode))};o.forEach(f);var l=function(p){!p||m.has(p)||Array.prototype.forEach.call(p.children,function(v){if(s.has(v))l(v);else try{var g=v.getAttribute(n),E=g!==null&&g!=="false",u=(Qn.get(v)||0)+1,h=(a.get(v)||0)+1;Qn.set(v,u),a.set(v,h),c.push(v),u===1&&E&&xi.set(v,!0),h===1&&v.setAttribute(r,"true"),E||v.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",v,y)}})};return l(t),s.clear(),qd++,function(){c.forEach(function(p){var v=Qn.get(p)-1,g=a.get(p)-1;Qn.set(p,v),a.set(p,g),v||(xi.has(p)||p.removeAttribute(n),xi.delete(p)),g||p.removeAttribute(r)}),qd--,qd||(Qn=new WeakMap,Qn=new WeakMap,xi=new WeakMap,Ei={})}},K6=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=U6(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),B6(n,o,r,"aria-hidden")):function(){return null}},U1="Dialog",[Y1]=xu(U1),[Ooe,Ut]=Y1(U1),B1="DialogTrigger",X6=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ut(B1,r),a=St(t,o.triggerRef);return te.jsx(Ae.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Mm(o.open),...n,ref:a,onClick:Re(e.onClick,o.onOpenToggle)})});X6.displayName=B1;var H6="DialogPortal",[Noe,K1]=Y1(H6,{forceMount:void 0}),Bc="DialogOverlay",V6=i.forwardRef((e,t)=>{const r=K1(Bc,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Ut(Bc,e.__scopeDialog);return a.modal?te.jsx(Eu,{present:n||a.open,children:te.jsx(Z6,{...o,ref:t})}):null});V6.displayName=Bc;var q6=q.createSlot("DialogOverlay.RemoveScroll"),Z6=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ut(Bc,r);return te.jsx($1,{as:q6,allowPinchZoom:!0,shards:[o.contentRef],children:te.jsx(Ae.div,{"data-state":Mm(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),Gr="DialogContent",G6=i.forwardRef((e,t)=>{const r=K1(Gr,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Ut(Gr,e.__scopeDialog);return te.jsx(Eu,{present:n||a.open,children:a.modal?te.jsx(J6,{...o,ref:t}):te.jsx(Q6,{...o,ref:t})})});G6.displayName=Gr;var J6=i.forwardRef((e,t)=>{const r=Ut(Gr,e.__scopeDialog),n=i.useRef(null),o=St(t,r.contentRef,n);return i.useEffect(()=>{const a=n.current;if(a)return K6(a)},[]),te.jsx(X1,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Re(e.onCloseAutoFocus,a=>{a.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:Re(e.onPointerDownOutside,a=>{const c=a.detail.originalEvent,s=c.button===0&&c.ctrlKey===!0;(c.button===2||s)&&a.preventDefault()}),onFocusOutside:Re(e.onFocusOutside,a=>a.preventDefault())})}),Q6=i.forwardRef((e,t)=>{const r=Ut(Gr,e.__scopeDialog),n=i.useRef(!1),o=i.useRef(!1);return te.jsx(X1,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(n.current||r.triggerRef.current?.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=a.target;r.triggerRef.current?.contains(c)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),X1=i.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...c}=e,s=Ut(Gr,r),m=i.useRef(null),f=St(t,m);return a6(),te.jsxs(te.Fragment,{children:[te.jsx(D1,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:te.jsx(_1,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":Mm(s.open),...c,ref:f,onDismiss:()=>s.onOpenChange(!1)})}),te.jsxs(te.Fragment,{children:[te.jsx(nX,{titleId:s.titleId}),te.jsx(aX,{contentRef:m,descriptionId:s.descriptionId})]})]})}),Pm="DialogTitle",eX=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ut(Pm,r);return te.jsx(Ae.h2,{id:o.titleId,...n,ref:t})});eX.displayName=Pm;var H1="DialogDescription",tX=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ut(H1,r);return te.jsx(Ae.p,{id:o.descriptionId,...n,ref:t})});tX.displayName=H1;var V1="DialogClose",rX=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ut(V1,r);return te.jsx(Ae.button,{type:"button",...n,ref:t,onClick:Re(e.onClick,()=>o.onOpenChange(!1))})});rX.displayName=V1;function Mm(e){return e?"open":"closed"}var q1="DialogTitleWarning",[_oe,Z1]=TK(q1,{contentName:Gr,titleName:Pm,docsSlug:"dialog"}),nX=({titleId:e})=>{const t=Z1(q1),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
866
-
867
- If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
868
-
869
- For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},oX="DialogDescriptionWarning",aX=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Z1(oX).contentName}}.`;return i.useEffect(()=>{const n=e.current?.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Zd={exports:{}},ca={};/**
870
- * @license React
871
- * react-jsx-runtime.production.js
872
- *
873
- * Copyright (c) Meta Platforms, Inc. and affiliates.
874
- *
875
- * This source code is licensed under the MIT license found in the
876
- * LICENSE file in the root directory of this source tree.
877
- */var ab;function sX(){if(ab)return ca;ab=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,o,a){var c=null;if(a!==void 0&&(c=""+a),o.key!==void 0&&(c=""+o.key),"key"in o){a={};for(var s in o)s!=="key"&&(a[s]=o[s])}else a=o;return o=a.ref,{$$typeof:e,type:n,key:c,ref:o!==void 0?o:null,props:a}}return ca.Fragment=t,ca.jsx=r,ca.jsxs=r,ca}var ki={};/**
878
- * @license React
879
- * react-jsx-runtime.development.js
880
- *
881
- * Copyright (c) Meta Platforms, Inc. and affiliates.
882
- *
883
- * This source code is licensed under the MIT license found in the
884
- * LICENSE file in the root directory of this source tree.
885
- */var sb;function iX(){return sb||(sb=1,process.env.NODE_ENV!=="production"&&(function(){function e(d){if(d==null)return null;if(typeof d=="function")return d.$$typeof===L?null:d.displayName||d.name||null;if(typeof d=="string")return d;switch(d){case u:return"Fragment";case y:return"Profiler";case h:return"StrictMode";case C:return"Suspense";case N:return"SuspenseList";case D:return"Activity"}if(typeof d=="object")switch(typeof d.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),d.$$typeof){case E:return"Portal";case w:return(d.displayName||"Context")+".Provider";case b:return(d._context.displayName||"Context")+".Consumer";case k:var x=d.render;return d=d.displayName,d||(d=x.displayName||x.name||"",d=d!==""?"ForwardRef("+d+")":"ForwardRef"),d;case S:return x=d.displayName||null,x!==null?x:e(d.type)||"Memo";case R:x=d._payload,d=d._init;try{return e(d(x))}catch{}}return null}function t(d){return""+d}function r(d){try{t(d);var x=!1}catch{x=!0}if(x){x=console;var O=x.error,_=typeof Symbol=="function"&&Symbol.toStringTag&&d[Symbol.toStringTag]||d.constructor.name||"Object";return O.call(x,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",_),t(d)}}function n(d){if(d===u)return"<>";if(typeof d=="object"&&d!==null&&d.$$typeof===R)return"<...>";try{var x=e(d);return x?"<"+x+">":"<...>"}catch{return"<...>"}}function o(){var d=I.A;return d===null?null:d.getOwner()}function a(){return Error("react-stack-top-frame")}function c(d){if($.call(d,"key")){var x=Object.getOwnPropertyDescriptor(d,"key").get;if(x&&x.isReactWarning)return!1}return d.key!==void 0}function s(d,x){function O(){M||(M=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",x))}O.isReactWarning=!0,Object.defineProperty(d,"key",{get:O,configurable:!0})}function m(){var d=e(this.type);return K[d]||(K[d]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),d=this.props.ref,d!==void 0?d:null}function f(d,x,O,_,A,j,X,B){return O=j.ref,d={$$typeof:g,type:d,key:x,props:j,_owner:A},(O!==void 0?O:null)!==null?Object.defineProperty(d,"ref",{enumerable:!1,get:m}):Object.defineProperty(d,"ref",{enumerable:!1,value:null}),d._store={},Object.defineProperty(d._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(d,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(d,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:X}),Object.defineProperty(d,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:B}),Object.freeze&&(Object.freeze(d.props),Object.freeze(d)),d}function l(d,x,O,_,A,j,X,B){var T=x.children;if(T!==void 0)if(_)if(U(T)){for(_=0;_<T.length;_++)p(T[_]);Object.freeze&&Object.freeze(T)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else p(T);if($.call(x,"key")){T=e(d);var F=Object.keys(x).filter(function(se){return se!=="key"});_=0<F.length?"{key: someKey, "+F.join(": ..., ")+": ...}":"{key: someKey}",V[T+_]||(F=0<F.length?"{"+F.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
886
- let props = %s;
887
- <%s {...props} />
888
- React keys must be passed directly to JSX without using spread:
889
- let props = %s;
890
- <%s key={someKey} {...props} />`,_,T,F,T),V[T+_]=!0)}if(T=null,O!==void 0&&(r(O),T=""+O),c(x)&&(r(x.key),T=""+x.key),"key"in x){O={};for(var H in x)H!=="key"&&(O[H]=x[H])}else O=x;return T&&s(O,typeof d=="function"?d.displayName||d.name||"Unknown":d),f(d,T,j,A,o(),O,X,B)}function p(d){typeof d=="object"&&d!==null&&d.$$typeof===g&&d._store&&(d._store.validated=1)}var v=P,g=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),b=Symbol.for("react.consumer"),w=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),S=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),D=Symbol.for("react.activity"),L=Symbol.for("react.client.reference"),I=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$=Object.prototype.hasOwnProperty,U=Array.isArray,W=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(d){return d()}};var M,K={},Y=v.react_stack_bottom_frame.bind(v,a)(),z=W(n(a)),V={};ki.Fragment=u,ki.jsx=function(d,x,O,_,A){var j=1e4>I.recentlyCreatedOwnerStacks++;return l(d,x,O,!1,_,A,j?Error("react-stack-top-frame"):Y,j?W(n(d)):z)},ki.jsxs=function(d,x,O,_,A){var j=1e4>I.recentlyCreatedOwnerStacks++;return l(d,x,O,!0,_,A,j?Error("react-stack-top-frame"):Y,j?W(n(d)):z)}})()),ki}var ib;function cX(){return ib||(ib=1,process.env.NODE_ENV==="production"?Zd.exports=sX():Zd.exports=iX()),Zd.exports}var re=cX();P.createContext({locale:void 0});var uX=(e,t,r,n,o,a,c,s)=>{let m=document.documentElement,f=["light","dark"];function l(g){(Array.isArray(e)?e:[e]).forEach(E=>{let u=E==="class",h=u&&a?o.map(y=>a[y]||y):o;u?(m.classList.remove(...h),m.classList.add(a&&a[g]?a[g]:g)):m.setAttribute(E,g)}),p(g)}function p(g){s&&f.includes(g)&&(m.style.colorScheme=g)}function v(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(n)l(n);else try{let g=localStorage.getItem(t)||r,E=c&&g==="system"?v():g;l(E)}catch{}};i.createContext(void 0);i.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:n,enableColorScheme:o,defaultTheme:a,value:c,themes:s,nonce:m,scriptProps:f})=>{let l=JSON.stringify([r,t,a,e,s,c,n,o]).slice(1,-1);return i.createElement("script",{...f,suppressHydrationWarning:!0,nonce:typeof window>"u"?m:"",dangerouslySetInnerHTML:{__html:`(${uX.toString()})(${l})`}})});ae.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});ae.cva("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function Oe(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),r===!1||!n.defaultPrevented)return t?.(n)}}function cb(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function lX(...e){return t=>{let r=!1;const n=e.map(o=>{const a=cb(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():cb(e[o],null)}}}}function Ct(...e){return i.useCallback(lX(...e),e)}function dX(e,t){const r=i.createContext(t),n=a=>{const{children:c,...s}=a,m=i.useMemo(()=>s,Object.values(s));return re.jsx(r.Provider,{value:m,children:c})};n.displayName=e+"Provider";function o(a){const c=i.useContext(r);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,o]}function Su(e,t=[]){let r=[];function n(a,c){const s=i.createContext(c),m=r.length;r=[...r,c];const f=p=>{const{scope:v,children:g,...E}=p,u=v?.[e]?.[m]||s,h=i.useMemo(()=>E,Object.values(E));return re.jsx(u.Provider,{value:h,children:g})};f.displayName=a+"Provider";function l(p,v){const g=v?.[e]?.[m]||s,E=i.useContext(g);if(E)return E;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[f,l]}const o=()=>{const a=r.map(c=>i.createContext(c));return function(c){const s=c?.[e]||a;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:s}}),[c,s])}};return o.scopeName=e,[n,fX(o,...t)]}function fX(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(o){const a=n.reduce((c,{useScope:s,scopeName:m})=>{const f=s(o)[`__scope${m}`];return{...c,...f}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}var _a=globalThis?.document?i.useLayoutEffect:()=>{},pX=i[" useId ".trim().toString()]||(()=>{}),mX=0;function G1(e){const[t,r]=i.useState(pX());return _a(()=>{r(n=>n??String(mX++))},[e]),t?`radix-${t}`:""}var vX=i[" useInsertionEffect ".trim().toString()]||_a;function J1({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,a,c]=hX({defaultProp:t,onChange:r}),s=e!==void 0,m=s?e:o;{const l=i.useRef(e!==void 0);i.useEffect(()=>{const p=l.current;p!==s&&console.warn(`${n} is changing from ${p?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),l.current=s},[s,n])}const f=i.useCallback(l=>{if(s){const p=gX(l)?l(e):l;p!==e&&c.current?.(p)}else a(l)},[s,e,a,c]);return[m,f]}function hX({defaultProp:e,onChange:t}){const[r,n]=i.useState(e),o=i.useRef(r),a=i.useRef(t);return vX(()=>{a.current=t},[t]),i.useEffect(()=>{o.current!==r&&(a.current?.(r),o.current=r)},[r,o]),[r,n,a]}function gX(e){return typeof e=="function"}var yX=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ie=yX.reduce((e,t)=>{const r=q.createSlot(`Primitive.${t}`),n=i.forwardRef((o,a)=>{const{asChild:c,...s}=o,m=c?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),re.jsx(m,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function bX(e,t){e&&we.flushSync(()=>e.dispatchEvent(t))}function Wo(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...r)=>t.current?.(...r),[])}function wX(e,t=globalThis?.document){const r=Wo(e);i.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var xX="DismissableLayer",Sp="dismissableLayer.update",EX="dismissableLayer.pointerDownOutside",kX="dismissableLayer.focusOutside",ub,Q1=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),eC=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:c,onDismiss:s,...m}=e,f=i.useContext(Q1),[l,p]=i.useState(null),v=l?.ownerDocument??globalThis?.document,[,g]=i.useState({}),E=Ct(t,S=>p(S)),u=Array.from(f.layers),[h]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),y=u.indexOf(h),b=l?u.indexOf(l):-1,w=f.layersWithOutsidePointerEventsDisabled.size>0,k=b>=y,C=RX(S=>{const R=S.target,D=[...f.branches].some(L=>L.contains(R));!k||D||(o?.(S),c?.(S),S.defaultPrevented||s?.())},v),N=OX(S=>{const R=S.target;[...f.branches].some(D=>D.contains(R))||(a?.(S),c?.(S),S.defaultPrevented||s?.())},v);return wX(S=>{b===f.layers.size-1&&(n?.(S),!S.defaultPrevented&&s&&(S.preventDefault(),s()))},v),i.useEffect(()=>{if(l)return r&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(ub=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(l)),f.layers.add(l),lb(),()=>{r&&f.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=ub)}},[l,v,r,f]),i.useEffect(()=>()=>{l&&(f.layers.delete(l),f.layersWithOutsidePointerEventsDisabled.delete(l),lb())},[l,f]),i.useEffect(()=>{const S=()=>g({});return document.addEventListener(Sp,S),()=>document.removeEventListener(Sp,S)},[]),re.jsx(Ie.div,{...m,ref:E,style:{pointerEvents:w?k?"auto":"none":void 0,...e.style},onFocusCapture:Oe(e.onFocusCapture,N.onFocusCapture),onBlurCapture:Oe(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:Oe(e.onPointerDownCapture,C.onPointerDownCapture)})});eC.displayName=xX;var SX="DismissableLayerBranch",CX=i.forwardRef((e,t)=>{const r=i.useContext(Q1),n=i.useRef(null),o=Ct(t,n);return i.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),re.jsx(Ie.div,{...e,ref:o})});CX.displayName=SX;function RX(e,t=globalThis?.document){const r=Wo(e),n=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let m=function(){tC(EX,r,f,{discrete:!0})};const f={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=m,t.addEventListener("click",o.current,{once:!0})):m()}else t.removeEventListener("click",o.current);n.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function OX(e,t=globalThis?.document){const r=Wo(e),n=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!n.current&&tC(kX,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function lb(){const e=new CustomEvent(Sp);document.dispatchEvent(e)}function tC(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?bX(o,a):o.dispatchEvent(a)}var Gd="focusScope.autoFocusOnMount",Jd="focusScope.autoFocusOnUnmount",db={bubbles:!1,cancelable:!0},NX="FocusScope",rC=i.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...c}=e,[s,m]=i.useState(null),f=Wo(o),l=Wo(a),p=i.useRef(null),v=Ct(t,u=>m(u)),g=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(n){let u=function(w){if(g.paused||!s)return;const k=w.target;s.contains(k)?p.current=k:br(p.current,{select:!0})},h=function(w){if(g.paused||!s)return;const k=w.relatedTarget;k!==null&&(s.contains(k)||br(p.current,{select:!0}))},y=function(w){if(document.activeElement===document.body)for(const k of w)k.removedNodes.length>0&&br(s)};document.addEventListener("focusin",u),document.addEventListener("focusout",h);const b=new MutationObserver(y);return s&&b.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",u),document.removeEventListener("focusout",h),b.disconnect()}}},[n,s,g.paused]),i.useEffect(()=>{if(s){pb.add(g);const u=document.activeElement;if(!s.contains(u)){const h=new CustomEvent(Gd,db);s.addEventListener(Gd,f),s.dispatchEvent(h),h.defaultPrevented||(_X(MX(nC(s)),{select:!0}),document.activeElement===u&&br(s))}return()=>{s.removeEventListener(Gd,f),setTimeout(()=>{const h=new CustomEvent(Jd,db);s.addEventListener(Jd,l),s.dispatchEvent(h),h.defaultPrevented||br(u??document.body,{select:!0}),s.removeEventListener(Jd,l),pb.remove(g)},0)}}},[s,f,l,g]);const E=i.useCallback(u=>{if(!r&&!n||g.paused)return;const h=u.key==="Tab"&&!u.altKey&&!u.ctrlKey&&!u.metaKey,y=document.activeElement;if(h&&y){const b=u.currentTarget,[w,k]=TX(b);w&&k?!u.shiftKey&&y===k?(u.preventDefault(),r&&br(w,{select:!0})):u.shiftKey&&y===w&&(u.preventDefault(),r&&br(k,{select:!0})):y===b&&u.preventDefault()}},[r,n,g.paused]);return re.jsx(Ie.div,{tabIndex:-1,...c,ref:v,onKeyDown:E})});rC.displayName=NX;function _X(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(br(n,{select:t}),document.activeElement!==r)return}function TX(e){const t=nC(e),r=fb(t,e),n=fb(t.reverse(),e);return[r,n]}function nC(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function fb(e,t){for(const r of e)if(!DX(r,{upTo:t}))return r}function DX(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function jX(e){return e instanceof HTMLInputElement&&"select"in e}function br(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&jX(e)&&t&&e.select()}}var pb=PX();function PX(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=mb(e,t),e.unshift(t)},remove(t){e=mb(e,t),e[0]?.resume()}}}function mb(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function MX(e){return e.filter(t=>t.tagName!=="A")}var AX="Portal",IX=i.forwardRef((e,t)=>{const{container:r,...n}=e,[o,a]=i.useState(!1);_a(()=>a(!0),[]);const c=r||o&&globalThis?.document?.body;return c?be.createPortal(re.jsx(Ie.div,{...n,ref:t}),c):null});IX.displayName=AX;function LX(e,t){return i.useReducer((r,n)=>t[r][n]??r,e)}var Cu=e=>{const{present:t,children:r}=e,n=FX(t),o=typeof r=="function"?r({present:n.isPresent}):i.Children.only(r),a=Ct(n.ref,WX(o));return typeof r=="function"||n.isPresent?i.cloneElement(o,{ref:a}):null};Cu.displayName="Presence";function FX(e){const[t,r]=i.useState(),n=i.useRef(null),o=i.useRef(e),a=i.useRef("none"),c=e?"mounted":"unmounted",[s,m]=LX(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const f=Si(n.current);a.current=s==="mounted"?f:"none"},[s]),_a(()=>{const f=n.current,l=o.current;if(l!==e){const p=a.current,v=Si(f);e?m("MOUNT"):v==="none"||f?.display==="none"?m("UNMOUNT"):m(l&&p!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,m]),_a(()=>{if(t){let f;const l=t.ownerDocument.defaultView??window,p=g=>{const E=Si(n.current).includes(CSS.escape(g.animationName));if(g.target===t&&E&&(m("ANIMATION_END"),!o.current)){const u=t.style.animationFillMode;t.style.animationFillMode="forwards",f=l.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=u)})}},v=g=>{g.target===t&&(a.current=Si(n.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{l.clearTimeout(f),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else m("ANIMATION_END")},[t,m]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:i.useCallback(f=>{n.current=f?getComputedStyle(f):null,r(f)},[])}}function Si(e){return e?.animationName||"none"}function WX(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Qd=0;function $X(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??vb()),document.body.insertAdjacentElement("beforeend",e[1]??vb()),Qd++,()=>{Qd===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Qd--}},[])}function vb(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var ft=function(){return ft=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},ft.apply(this,arguments)};function oC(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function zX(e,t,r){for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var Ec="right-scroll-bar-position",kc="width-before-scroll-bar",UX="with-scroll-bars-hidden",YX="--removed-body-scroll-bar-size";function ef(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function BX(e,t){var r=P.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var KX=typeof window<"u"?i.useLayoutEffect:i.useEffect,hb=new WeakMap;function XX(e,t){var r=BX(null,function(n){return e.forEach(function(o){return ef(o,n)})});return KX(function(){var n=hb.get(r);if(n){var o=new Set(n),a=new Set(e),c=r.current;o.forEach(function(s){a.has(s)||ef(s,null)}),a.forEach(function(s){o.has(s)||ef(s,c)})}hb.set(r,e)},[e]),r}function HX(e){return e}function VX(e,t){t===void 0&&(t=HX);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var c=t(a,n);return r.push(c),function(){r=r.filter(function(s){return s!==c})}},assignSyncMedium:function(a){for(n=!0;r.length;){var c=r;r=[],c.forEach(a)}r={push:function(s){return a(s)},filter:function(){return r}}},assignMedium:function(a){n=!0;var c=[];if(r.length){var s=r;r=[],s.forEach(a),c=r}var m=function(){var l=c;c=[],l.forEach(a)},f=function(){return Promise.resolve().then(m)};f(),r={push:function(l){c.push(l),f()},filter:function(l){return c=c.filter(l),r}}}};return o}function qX(e){e===void 0&&(e={});var t=VX(null);return t.options=ft({async:!0,ssr:!1},e),t}var aC=function(e){var t=e.sideCar,r=oC(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return i.createElement(n,ft({},r))};aC.isSideCarExport=!0;function ZX(e,t){return e.useMedium(t),aC}var sC=qX(),tf=function(){},Ru=i.forwardRef(function(e,t){var r=i.useRef(null),n=i.useState({onScrollCapture:tf,onWheelCapture:tf,onTouchMoveCapture:tf}),o=n[0],a=n[1],c=e.forwardProps,s=e.children,m=e.className,f=e.removeScrollBar,l=e.enabled,p=e.shards,v=e.sideCar,g=e.noRelative,E=e.noIsolation,u=e.inert,h=e.allowPinchZoom,y=e.as,b=y===void 0?"div":y,w=e.gapMode,k=oC(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=v,N=XX([r,t]),S=ft(ft({},k),o);return i.createElement(i.Fragment,null,l&&i.createElement(C,{sideCar:sC,removeScrollBar:f,shards:p,noRelative:g,noIsolation:E,inert:u,setCallbacks:a,allowPinchZoom:!!h,lockRef:r,gapMode:w}),c?i.cloneElement(i.Children.only(s),ft(ft({},S),{ref:N})):i.createElement(b,ft({},S,{className:m,ref:N}),s))});Ru.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ru.classNames={fullWidth:kc,zeroRight:Ec};var GX=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function JX(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=GX();return t&&e.setAttribute("nonce",t),e}function QX(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function e8(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var t8=function(){var e=0,t=null;return{add:function(r){e==0&&(t=JX())&&(QX(t,r),e8(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},r8=function(){var e=t8();return function(t,r){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},iC=function(){var e=r8(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},n8={left:0,top:0,right:0,gap:0},rf=function(e){return parseInt(e||"",10)||0},o8=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[rf(r),rf(n),rf(o)]},a8=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return n8;var t=o8(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},s8=iC(),No="data-scroll-locked",i8=function(e,t,r,n){var o=e.left,a=e.top,c=e.right,s=e.gap;return r===void 0&&(r="margin"),`
891
- .`.concat(UX,` {
892
- overflow: hidden `).concat(n,`;
893
- padding-right: `).concat(s,"px ").concat(n,`;
894
- }
895
- body[`).concat(No,`] {
896
- overflow: hidden `).concat(n,`;
897
- overscroll-behavior: contain;
898
- `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
899
- padding-left: `.concat(o,`px;
900
- padding-top: `).concat(a,`px;
901
- padding-right: `).concat(c,`px;
902
- margin-left:0;
903
- margin-top:0;
904
- margin-right: `).concat(s,"px ").concat(n,`;
905
- `),r==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),`
906
- }
907
-
908
- .`).concat(Ec,` {
909
- right: `).concat(s,"px ").concat(n,`;
910
- }
911
-
912
- .`).concat(kc,` {
913
- margin-right: `).concat(s,"px ").concat(n,`;
914
- }
915
-
916
- .`).concat(Ec," .").concat(Ec,` {
917
- right: 0 `).concat(n,`;
918
- }
919
-
920
- .`).concat(kc," .").concat(kc,` {
921
- margin-right: 0 `).concat(n,`;
922
- }
923
-
924
- body[`).concat(No,`] {
925
- `).concat(YX,": ").concat(s,`px;
926
- }
927
- `)},gb=function(){var e=parseInt(document.body.getAttribute(No)||"0",10);return isFinite(e)?e:0},c8=function(){i.useEffect(function(){return document.body.setAttribute(No,(gb()+1).toString()),function(){var e=gb()-1;e<=0?document.body.removeAttribute(No):document.body.setAttribute(No,e.toString())}},[])},u8=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;c8();var a=i.useMemo(function(){return a8(o)},[o]);return i.createElement(s8,{styles:i8(a,!t,o,r?"":"!important")})},Cp=!1;if(typeof window<"u")try{var Ci=Object.defineProperty({},"passive",{get:function(){return Cp=!0,!0}});window.addEventListener("test",Ci,Ci),window.removeEventListener("test",Ci,Ci)}catch{Cp=!1}var eo=Cp?{passive:!1}:!1,l8=function(e){return e.tagName==="TEXTAREA"},cC=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!l8(e)&&r[t]==="visible")},d8=function(e){return cC(e,"overflowY")},f8=function(e){return cC(e,"overflowX")},yb=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=uC(e,n);if(o){var a=lC(e,n),c=a[1],s=a[2];if(c>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},p8=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},m8=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},uC=function(e,t){return e==="v"?d8(t):f8(t)},lC=function(e,t){return e==="v"?p8(t):m8(t)},v8=function(e,t){return e==="h"&&t==="rtl"?-1:1},h8=function(e,t,r,n,o){var a=v8(e,window.getComputedStyle(t).direction),c=a*n,s=r.target,m=t.contains(s),f=!1,l=c>0,p=0,v=0;do{if(!s)break;var g=lC(e,s),E=g[0],u=g[1],h=g[2],y=u-h-a*E;(E||y)&&uC(e,s)&&(p+=y,v+=E);var b=s.parentNode;s=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!m&&s!==document.body||m&&(t.contains(s)||t===s));return(l&&Math.abs(p)<1||!l&&Math.abs(v)<1)&&(f=!0),f},Ri=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},bb=function(e){return[e.deltaX,e.deltaY]},wb=function(e){return e&&"current"in e?e.current:e},g8=function(e,t){return e[0]===t[0]&&e[1]===t[1]},y8=function(e){return`
928
- .block-interactivity-`.concat(e,` {pointer-events: none;}
929
- .allow-interactivity-`).concat(e,` {pointer-events: all;}
930
- `)},b8=0,to=[];function w8(e){var t=i.useRef([]),r=i.useRef([0,0]),n=i.useRef(),o=i.useState(b8++)[0],a=i.useState(iC)[0],c=i.useRef(e);i.useEffect(function(){c.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var u=zX([e.lockRef.current],(e.shards||[]).map(wb)).filter(Boolean);return u.forEach(function(h){return h.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),u.forEach(function(h){return h.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=i.useCallback(function(u,h){if("touches"in u&&u.touches.length===2||u.type==="wheel"&&u.ctrlKey)return!c.current.allowPinchZoom;var y=Ri(u),b=r.current,w="deltaX"in u?u.deltaX:b[0]-y[0],k="deltaY"in u?u.deltaY:b[1]-y[1],C,N=u.target,S=Math.abs(w)>Math.abs(k)?"h":"v";if("touches"in u&&S==="h"&&N.type==="range")return!1;var R=yb(S,N);if(!R)return!0;if(R?C=S:(C=S==="v"?"h":"v",R=yb(S,N)),!R)return!1;if(!n.current&&"changedTouches"in u&&(w||k)&&(n.current=C),!C)return!0;var D=n.current||C;return h8(D,h,u,D==="h"?w:k)},[]),m=i.useCallback(function(u){var h=u;if(!(!to.length||to[to.length-1]!==a)){var y="deltaY"in h?bb(h):Ri(h),b=t.current.filter(function(C){return C.name===h.type&&(C.target===h.target||h.target===C.shadowParent)&&g8(C.delta,y)})[0];if(b&&b.should){h.cancelable&&h.preventDefault();return}if(!b){var w=(c.current.shards||[]).map(wb).filter(Boolean).filter(function(C){return C.contains(h.target)}),k=w.length>0?s(h,w[0]):!c.current.noIsolation;k&&h.cancelable&&h.preventDefault()}}},[]),f=i.useCallback(function(u,h,y,b){var w={name:u,delta:h,target:y,should:b,shadowParent:x8(y)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(k){return k!==w})},1)},[]),l=i.useCallback(function(u){r.current=Ri(u),n.current=void 0},[]),p=i.useCallback(function(u){f(u.type,bb(u),u.target,s(u,e.lockRef.current))},[]),v=i.useCallback(function(u){f(u.type,Ri(u),u.target,s(u,e.lockRef.current))},[]);i.useEffect(function(){return to.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:v}),document.addEventListener("wheel",m,eo),document.addEventListener("touchmove",m,eo),document.addEventListener("touchstart",l,eo),function(){to=to.filter(function(u){return u!==a}),document.removeEventListener("wheel",m,eo),document.removeEventListener("touchmove",m,eo),document.removeEventListener("touchstart",l,eo)}},[]);var g=e.removeScrollBar,E=e.inert;return i.createElement(i.Fragment,null,E?i.createElement(a,{styles:y8(o)}):null,g?i.createElement(u8,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function x8(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const E8=ZX(sC,w8);var dC=i.forwardRef(function(e,t){return i.createElement(Ru,ft({},e,{ref:t,sideCar:E8}))});dC.classNames=Ru.classNames;var k8=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ro=new WeakMap,Oi=new WeakMap,Ni={},nf=0,fC=function(e){return e&&(e.host||fC(e.parentNode))},S8=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=fC(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},C8=function(e,t,r,n){var o=S8(t,Array.isArray(e)?e:[e]);Ni[r]||(Ni[r]=new WeakMap);var a=Ni[r],c=[],s=new Set,m=new Set(o),f=function(p){!p||s.has(p)||(s.add(p),f(p.parentNode))};o.forEach(f);var l=function(p){!p||m.has(p)||Array.prototype.forEach.call(p.children,function(v){if(s.has(v))l(v);else try{var g=v.getAttribute(n),E=g!==null&&g!=="false",u=(ro.get(v)||0)+1,h=(a.get(v)||0)+1;ro.set(v,u),a.set(v,h),c.push(v),u===1&&E&&Oi.set(v,!0),h===1&&v.setAttribute(r,"true"),E||v.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",v,y)}})};return l(t),s.clear(),nf++,function(){c.forEach(function(p){var v=ro.get(p)-1,g=a.get(p)-1;ro.set(p,v),a.set(p,g),v||(Oi.has(p)||p.removeAttribute(n),Oi.delete(p)),g||p.removeAttribute(r)}),nf--,nf||(ro=new WeakMap,ro=new WeakMap,Oi=new WeakMap,Ni={})}},R8=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=k8(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),C8(n,o,r,"aria-hidden")):function(){return null}},pC="Dialog",[mC]=Su(pC),[Toe,Yt]=mC(pC),vC="DialogTrigger",O8=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Yt(vC,r),a=Ct(t,o.triggerRef);return re.jsx(Ie.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Im(o.open),...n,ref:a,onClick:Oe(e.onClick,o.onOpenToggle)})});O8.displayName=vC;var N8="DialogPortal",[Doe,hC]=mC(N8,{forceMount:void 0}),Kc="DialogOverlay",_8=i.forwardRef((e,t)=>{const r=hC(Kc,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Yt(Kc,e.__scopeDialog);return a.modal?re.jsx(Cu,{present:n||a.open,children:re.jsx(D8,{...o,ref:t})}):null});_8.displayName=Kc;var T8=q.createSlot("DialogOverlay.RemoveScroll"),D8=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Yt(Kc,r);return re.jsx(dC,{as:T8,allowPinchZoom:!0,shards:[o.contentRef],children:re.jsx(Ie.div,{"data-state":Im(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),Jr="DialogContent",j8=i.forwardRef((e,t)=>{const r=hC(Jr,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Yt(Jr,e.__scopeDialog);return re.jsx(Cu,{present:n||a.open,children:a.modal?re.jsx(P8,{...o,ref:t}):re.jsx(M8,{...o,ref:t})})});j8.displayName=Jr;var P8=i.forwardRef((e,t)=>{const r=Yt(Jr,e.__scopeDialog),n=i.useRef(null),o=Ct(t,r.contentRef,n);return i.useEffect(()=>{const a=n.current;if(a)return R8(a)},[]),re.jsx(gC,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Oe(e.onCloseAutoFocus,a=>{a.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:Oe(e.onPointerDownOutside,a=>{const c=a.detail.originalEvent,s=c.button===0&&c.ctrlKey===!0;(c.button===2||s)&&a.preventDefault()}),onFocusOutside:Oe(e.onFocusOutside,a=>a.preventDefault())})}),M8=i.forwardRef((e,t)=>{const r=Yt(Jr,e.__scopeDialog),n=i.useRef(!1),o=i.useRef(!1);return re.jsx(gC,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(n.current||r.triggerRef.current?.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=a.target;r.triggerRef.current?.contains(c)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),gC=i.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...c}=e,s=Yt(Jr,r),m=i.useRef(null),f=Ct(t,m);return $X(),re.jsxs(re.Fragment,{children:[re.jsx(rC,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:re.jsx(eC,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":Im(s.open),...c,ref:f,onDismiss:()=>s.onOpenChange(!1)})}),re.jsxs(re.Fragment,{children:[re.jsx(F8,{titleId:s.titleId}),re.jsx($8,{contentRef:m,descriptionId:s.descriptionId})]})]})}),Am="DialogTitle",A8=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Yt(Am,r);return re.jsx(Ie.h2,{id:o.titleId,...n,ref:t})});A8.displayName=Am;var yC="DialogDescription",I8=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Yt(yC,r);return re.jsx(Ie.p,{id:o.descriptionId,...n,ref:t})});I8.displayName=yC;var bC="DialogClose",L8=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Yt(bC,r);return re.jsx(Ie.button,{type:"button",...n,ref:t,onClick:Oe(e.onClick,()=>o.onOpenChange(!1))})});L8.displayName=bC;function Im(e){return e?"open":"closed"}var wC="DialogTitleWarning",[joe,xC]=dX(wC,{contentName:Jr,titleName:Am,docsSlug:"dialog"}),F8=({titleId:e})=>{const t=xC(wC),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
931
-
932
- If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
933
-
934
- For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},W8="DialogDescriptionWarning",$8=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${xC(W8).contentName}}.`;return i.useEffect(()=>{const n=e.current?.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},of={exports:{}},ua={};/**
935
- * @license React
936
- * react-jsx-runtime.production.js
937
- *
938
- * Copyright (c) Meta Platforms, Inc. and affiliates.
939
- *
940
- * This source code is licensed under the MIT license found in the
941
- * LICENSE file in the root directory of this source tree.
942
- */var xb;function z8(){if(xb)return ua;xb=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,o,a){var c=null;if(a!==void 0&&(c=""+a),o.key!==void 0&&(c=""+o.key),"key"in o){a={};for(var s in o)s!=="key"&&(a[s]=o[s])}else a=o;return o=a.ref,{$$typeof:e,type:n,key:c,ref:o!==void 0?o:null,props:a}}return ua.Fragment=t,ua.jsx=r,ua.jsxs=r,ua}var _i={};/**
943
- * @license React
944
- * react-jsx-runtime.development.js
945
- *
946
- * Copyright (c) Meta Platforms, Inc. and affiliates.
947
- *
948
- * This source code is licensed under the MIT license found in the
949
- * LICENSE file in the root directory of this source tree.
950
- */var Eb;function U8(){return Eb||(Eb=1,process.env.NODE_ENV!=="production"&&(function(){function e(d){if(d==null)return null;if(typeof d=="function")return d.$$typeof===L?null:d.displayName||d.name||null;if(typeof d=="string")return d;switch(d){case u:return"Fragment";case y:return"Profiler";case h:return"StrictMode";case C:return"Suspense";case N:return"SuspenseList";case D:return"Activity"}if(typeof d=="object")switch(typeof d.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),d.$$typeof){case E:return"Portal";case w:return(d.displayName||"Context")+".Provider";case b:return(d._context.displayName||"Context")+".Consumer";case k:var x=d.render;return d=d.displayName,d||(d=x.displayName||x.name||"",d=d!==""?"ForwardRef("+d+")":"ForwardRef"),d;case S:return x=d.displayName||null,x!==null?x:e(d.type)||"Memo";case R:x=d._payload,d=d._init;try{return e(d(x))}catch{}}return null}function t(d){return""+d}function r(d){try{t(d);var x=!1}catch{x=!0}if(x){x=console;var O=x.error,_=typeof Symbol=="function"&&Symbol.toStringTag&&d[Symbol.toStringTag]||d.constructor.name||"Object";return O.call(x,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",_),t(d)}}function n(d){if(d===u)return"<>";if(typeof d=="object"&&d!==null&&d.$$typeof===R)return"<...>";try{var x=e(d);return x?"<"+x+">":"<...>"}catch{return"<...>"}}function o(){var d=I.A;return d===null?null:d.getOwner()}function a(){return Error("react-stack-top-frame")}function c(d){if($.call(d,"key")){var x=Object.getOwnPropertyDescriptor(d,"key").get;if(x&&x.isReactWarning)return!1}return d.key!==void 0}function s(d,x){function O(){M||(M=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",x))}O.isReactWarning=!0,Object.defineProperty(d,"key",{get:O,configurable:!0})}function m(){var d=e(this.type);return K[d]||(K[d]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),d=this.props.ref,d!==void 0?d:null}function f(d,x,O,_,A,j,X,B){return O=j.ref,d={$$typeof:g,type:d,key:x,props:j,_owner:A},(O!==void 0?O:null)!==null?Object.defineProperty(d,"ref",{enumerable:!1,get:m}):Object.defineProperty(d,"ref",{enumerable:!1,value:null}),d._store={},Object.defineProperty(d._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(d,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(d,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:X}),Object.defineProperty(d,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:B}),Object.freeze&&(Object.freeze(d.props),Object.freeze(d)),d}function l(d,x,O,_,A,j,X,B){var T=x.children;if(T!==void 0)if(_)if(U(T)){for(_=0;_<T.length;_++)p(T[_]);Object.freeze&&Object.freeze(T)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else p(T);if($.call(x,"key")){T=e(d);var F=Object.keys(x).filter(function(se){return se!=="key"});_=0<F.length?"{key: someKey, "+F.join(": ..., ")+": ...}":"{key: someKey}",V[T+_]||(F=0<F.length?"{"+F.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
951
- let props = %s;
952
- <%s {...props} />
953
- React keys must be passed directly to JSX without using spread:
954
- let props = %s;
955
- <%s key={someKey} {...props} />`,_,T,F,T),V[T+_]=!0)}if(T=null,O!==void 0&&(r(O),T=""+O),c(x)&&(r(x.key),T=""+x.key),"key"in x){O={};for(var H in x)H!=="key"&&(O[H]=x[H])}else O=x;return T&&s(O,typeof d=="function"?d.displayName||d.name||"Unknown":d),f(d,T,j,A,o(),O,X,B)}function p(d){typeof d=="object"&&d!==null&&d.$$typeof===g&&d._store&&(d._store.validated=1)}var v=P,g=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),b=Symbol.for("react.consumer"),w=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),S=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),D=Symbol.for("react.activity"),L=Symbol.for("react.client.reference"),I=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$=Object.prototype.hasOwnProperty,U=Array.isArray,W=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(d){return d()}};var M,K={},Y=v.react_stack_bottom_frame.bind(v,a)(),z=W(n(a)),V={};_i.Fragment=u,_i.jsx=function(d,x,O,_,A){var j=1e4>I.recentlyCreatedOwnerStacks++;return l(d,x,O,!1,_,A,j?Error("react-stack-top-frame"):Y,j?W(n(d)):z)},_i.jsxs=function(d,x,O,_,A){var j=1e4>I.recentlyCreatedOwnerStacks++;return l(d,x,O,!0,_,A,j?Error("react-stack-top-frame"):Y,j?W(n(d)):z)}})()),_i}var kb;function Y8(){return kb||(kb=1,process.env.NODE_ENV==="production"?of.exports=z8():of.exports=U8()),of.exports}var ne=Y8();P.createContext({locale:void 0});var B8=(e,t,r,n,o,a,c,s)=>{let m=document.documentElement,f=["light","dark"];function l(g){(Array.isArray(e)?e:[e]).forEach(E=>{let u=E==="class",h=u&&a?o.map(y=>a[y]||y):o;u?(m.classList.remove(...h),m.classList.add(a&&a[g]?a[g]:g)):m.setAttribute(E,g)}),p(g)}function p(g){s&&f.includes(g)&&(m.style.colorScheme=g)}function v(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(n)l(n);else try{let g=localStorage.getItem(t)||r,E=c&&g==="system"?v():g;l(E)}catch{}};i.createContext(void 0);i.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:n,enableColorScheme:o,defaultTheme:a,value:c,themes:s,nonce:m,scriptProps:f})=>{let l=JSON.stringify([r,t,a,e,s,c,n,o]).slice(1,-1);return i.createElement("script",{...f,suppressHydrationWarning:!0,nonce:typeof window>"u"?m:"",dangerouslySetInnerHTML:{__html:`(${B8.toString()})(${l})`}})});ae.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});ae.cva("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function Ne(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),r===!1||!n.defaultPrevented)return t?.(n)}}function Sb(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function K8(...e){return t=>{let r=!1;const n=e.map(o=>{const a=Sb(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():Sb(e[o],null)}}}}function Rt(...e){return i.useCallback(K8(...e),e)}function X8(e,t){const r=i.createContext(t),n=a=>{const{children:c,...s}=a,m=i.useMemo(()=>s,Object.values(s));return ne.jsx(r.Provider,{value:m,children:c})};n.displayName=e+"Provider";function o(a){const c=i.useContext(r);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,o]}function Ou(e,t=[]){let r=[];function n(a,c){const s=i.createContext(c),m=r.length;r=[...r,c];const f=p=>{const{scope:v,children:g,...E}=p,u=v?.[e]?.[m]||s,h=i.useMemo(()=>E,Object.values(E));return ne.jsx(u.Provider,{value:h,children:g})};f.displayName=a+"Provider";function l(p,v){const g=v?.[e]?.[m]||s,E=i.useContext(g);if(E)return E;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[f,l]}const o=()=>{const a=r.map(c=>i.createContext(c));return function(c){const s=c?.[e]||a;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:s}}),[c,s])}};return o.scopeName=e,[n,H8(o,...t)]}function H8(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(o){const a=n.reduce((c,{useScope:s,scopeName:m})=>{const f=s(o)[`__scope${m}`];return{...c,...f}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}var Ta=globalThis?.document?i.useLayoutEffect:()=>{},V8=i[" useId ".trim().toString()]||(()=>{}),q8=0;function EC(e){const[t,r]=i.useState(V8());return Ta(()=>{r(n=>n??String(q8++))},[e]),t?`radix-${t}`:""}var Z8=i[" useInsertionEffect ".trim().toString()]||Ta;function kC({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,a,c]=G8({defaultProp:t,onChange:r}),s=e!==void 0,m=s?e:o;{const l=i.useRef(e!==void 0);i.useEffect(()=>{const p=l.current;p!==s&&console.warn(`${n} is changing from ${p?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),l.current=s},[s,n])}const f=i.useCallback(l=>{if(s){const p=J8(l)?l(e):l;p!==e&&c.current?.(p)}else a(l)},[s,e,a,c]);return[m,f]}function G8({defaultProp:e,onChange:t}){const[r,n]=i.useState(e),o=i.useRef(r),a=i.useRef(t);return Z8(()=>{a.current=t},[t]),i.useEffect(()=>{o.current!==r&&(a.current?.(r),o.current=r)},[r,o]),[r,n,a]}function J8(e){return typeof e=="function"}var Q8=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Le=Q8.reduce((e,t)=>{const r=q.createSlot(`Primitive.${t}`),n=i.forwardRef((o,a)=>{const{asChild:c,...s}=o,m=c?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),ne.jsx(m,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function eH(e,t){e&&we.flushSync(()=>e.dispatchEvent(t))}function $o(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...r)=>t.current?.(...r),[])}function tH(e,t=globalThis?.document){const r=$o(e);i.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var rH="DismissableLayer",Rp="dismissableLayer.update",nH="dismissableLayer.pointerDownOutside",oH="dismissableLayer.focusOutside",Cb,SC=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),CC=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:c,onDismiss:s,...m}=e,f=i.useContext(SC),[l,p]=i.useState(null),v=l?.ownerDocument??globalThis?.document,[,g]=i.useState({}),E=Rt(t,S=>p(S)),u=Array.from(f.layers),[h]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),y=u.indexOf(h),b=l?u.indexOf(l):-1,w=f.layersWithOutsidePointerEventsDisabled.size>0,k=b>=y,C=iH(S=>{const R=S.target,D=[...f.branches].some(L=>L.contains(R));!k||D||(o?.(S),c?.(S),S.defaultPrevented||s?.())},v),N=cH(S=>{const R=S.target;[...f.branches].some(D=>D.contains(R))||(a?.(S),c?.(S),S.defaultPrevented||s?.())},v);return tH(S=>{b===f.layers.size-1&&(n?.(S),!S.defaultPrevented&&s&&(S.preventDefault(),s()))},v),i.useEffect(()=>{if(l)return r&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(Cb=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(l)),f.layers.add(l),Rb(),()=>{r&&f.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=Cb)}},[l,v,r,f]),i.useEffect(()=>()=>{l&&(f.layers.delete(l),f.layersWithOutsidePointerEventsDisabled.delete(l),Rb())},[l,f]),i.useEffect(()=>{const S=()=>g({});return document.addEventListener(Rp,S),()=>document.removeEventListener(Rp,S)},[]),ne.jsx(Le.div,{...m,ref:E,style:{pointerEvents:w?k?"auto":"none":void 0,...e.style},onFocusCapture:Ne(e.onFocusCapture,N.onFocusCapture),onBlurCapture:Ne(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:Ne(e.onPointerDownCapture,C.onPointerDownCapture)})});CC.displayName=rH;var aH="DismissableLayerBranch",sH=i.forwardRef((e,t)=>{const r=i.useContext(SC),n=i.useRef(null),o=Rt(t,n);return i.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),ne.jsx(Le.div,{...e,ref:o})});sH.displayName=aH;function iH(e,t=globalThis?.document){const r=$o(e),n=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let m=function(){RC(nH,r,f,{discrete:!0})};const f={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=m,t.addEventListener("click",o.current,{once:!0})):m()}else t.removeEventListener("click",o.current);n.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function cH(e,t=globalThis?.document){const r=$o(e),n=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!n.current&&RC(oH,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function Rb(){const e=new CustomEvent(Rp);document.dispatchEvent(e)}function RC(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?eH(o,a):o.dispatchEvent(a)}var af="focusScope.autoFocusOnMount",sf="focusScope.autoFocusOnUnmount",Ob={bubbles:!1,cancelable:!0},uH="FocusScope",OC=i.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...c}=e,[s,m]=i.useState(null),f=$o(o),l=$o(a),p=i.useRef(null),v=Rt(t,u=>m(u)),g=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(n){let u=function(w){if(g.paused||!s)return;const k=w.target;s.contains(k)?p.current=k:wr(p.current,{select:!0})},h=function(w){if(g.paused||!s)return;const k=w.relatedTarget;k!==null&&(s.contains(k)||wr(p.current,{select:!0}))},y=function(w){if(document.activeElement===document.body)for(const k of w)k.removedNodes.length>0&&wr(s)};document.addEventListener("focusin",u),document.addEventListener("focusout",h);const b=new MutationObserver(y);return s&&b.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",u),document.removeEventListener("focusout",h),b.disconnect()}}},[n,s,g.paused]),i.useEffect(()=>{if(s){_b.add(g);const u=document.activeElement;if(!s.contains(u)){const h=new CustomEvent(af,Ob);s.addEventListener(af,f),s.dispatchEvent(h),h.defaultPrevented||(lH(vH(NC(s)),{select:!0}),document.activeElement===u&&wr(s))}return()=>{s.removeEventListener(af,f),setTimeout(()=>{const h=new CustomEvent(sf,Ob);s.addEventListener(sf,l),s.dispatchEvent(h),h.defaultPrevented||wr(u??document.body,{select:!0}),s.removeEventListener(sf,l),_b.remove(g)},0)}}},[s,f,l,g]);const E=i.useCallback(u=>{if(!r&&!n||g.paused)return;const h=u.key==="Tab"&&!u.altKey&&!u.ctrlKey&&!u.metaKey,y=document.activeElement;if(h&&y){const b=u.currentTarget,[w,k]=dH(b);w&&k?!u.shiftKey&&y===k?(u.preventDefault(),r&&wr(w,{select:!0})):u.shiftKey&&y===w&&(u.preventDefault(),r&&wr(k,{select:!0})):y===b&&u.preventDefault()}},[r,n,g.paused]);return ne.jsx(Le.div,{tabIndex:-1,...c,ref:v,onKeyDown:E})});OC.displayName=uH;function lH(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(wr(n,{select:t}),document.activeElement!==r)return}function dH(e){const t=NC(e),r=Nb(t,e),n=Nb(t.reverse(),e);return[r,n]}function NC(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Nb(e,t){for(const r of e)if(!fH(r,{upTo:t}))return r}function fH(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function pH(e){return e instanceof HTMLInputElement&&"select"in e}function wr(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&pH(e)&&t&&e.select()}}var _b=mH();function mH(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=Tb(e,t),e.unshift(t)},remove(t){e=Tb(e,t),e[0]?.resume()}}}function Tb(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function vH(e){return e.filter(t=>t.tagName!=="A")}var hH="Portal",gH=i.forwardRef((e,t)=>{const{container:r,...n}=e,[o,a]=i.useState(!1);Ta(()=>a(!0),[]);const c=r||o&&globalThis?.document?.body;return c?be.createPortal(ne.jsx(Le.div,{...n,ref:t}),c):null});gH.displayName=hH;function yH(e,t){return i.useReducer((r,n)=>t[r][n]??r,e)}var Nu=e=>{const{present:t,children:r}=e,n=bH(t),o=typeof r=="function"?r({present:n.isPresent}):i.Children.only(r),a=Rt(n.ref,wH(o));return typeof r=="function"||n.isPresent?i.cloneElement(o,{ref:a}):null};Nu.displayName="Presence";function bH(e){const[t,r]=i.useState(),n=i.useRef(null),o=i.useRef(e),a=i.useRef("none"),c=e?"mounted":"unmounted",[s,m]=yH(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const f=Ti(n.current);a.current=s==="mounted"?f:"none"},[s]),Ta(()=>{const f=n.current,l=o.current;if(l!==e){const p=a.current,v=Ti(f);e?m("MOUNT"):v==="none"||f?.display==="none"?m("UNMOUNT"):m(l&&p!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,m]),Ta(()=>{if(t){let f;const l=t.ownerDocument.defaultView??window,p=g=>{const E=Ti(n.current).includes(CSS.escape(g.animationName));if(g.target===t&&E&&(m("ANIMATION_END"),!o.current)){const u=t.style.animationFillMode;t.style.animationFillMode="forwards",f=l.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=u)})}},v=g=>{g.target===t&&(a.current=Ti(n.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{l.clearTimeout(f),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else m("ANIMATION_END")},[t,m]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:i.useCallback(f=>{n.current=f?getComputedStyle(f):null,r(f)},[])}}function Ti(e){return e?.animationName||"none"}function wH(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var cf=0;function xH(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Db()),document.body.insertAdjacentElement("beforeend",e[1]??Db()),cf++,()=>{cf===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),cf--}},[])}function Db(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var pt=function(){return pt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},pt.apply(this,arguments)};function _C(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function EH(e,t,r){for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var Sc="right-scroll-bar-position",Cc="width-before-scroll-bar",kH="with-scroll-bars-hidden",SH="--removed-body-scroll-bar-size";function uf(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function CH(e,t){var r=P.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var RH=typeof window<"u"?i.useLayoutEffect:i.useEffect,jb=new WeakMap;function OH(e,t){var r=CH(null,function(n){return e.forEach(function(o){return uf(o,n)})});return RH(function(){var n=jb.get(r);if(n){var o=new Set(n),a=new Set(e),c=r.current;o.forEach(function(s){a.has(s)||uf(s,null)}),a.forEach(function(s){o.has(s)||uf(s,c)})}jb.set(r,e)},[e]),r}function NH(e){return e}function _H(e,t){t===void 0&&(t=NH);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var c=t(a,n);return r.push(c),function(){r=r.filter(function(s){return s!==c})}},assignSyncMedium:function(a){for(n=!0;r.length;){var c=r;r=[],c.forEach(a)}r={push:function(s){return a(s)},filter:function(){return r}}},assignMedium:function(a){n=!0;var c=[];if(r.length){var s=r;r=[],s.forEach(a),c=r}var m=function(){var l=c;c=[],l.forEach(a)},f=function(){return Promise.resolve().then(m)};f(),r={push:function(l){c.push(l),f()},filter:function(l){return c=c.filter(l),r}}}};return o}function TH(e){e===void 0&&(e={});var t=_H(null);return t.options=pt({async:!0,ssr:!1},e),t}var TC=function(e){var t=e.sideCar,r=_C(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return i.createElement(n,pt({},r))};TC.isSideCarExport=!0;function DH(e,t){return e.useMedium(t),TC}var DC=TH(),lf=function(){},_u=i.forwardRef(function(e,t){var r=i.useRef(null),n=i.useState({onScrollCapture:lf,onWheelCapture:lf,onTouchMoveCapture:lf}),o=n[0],a=n[1],c=e.forwardProps,s=e.children,m=e.className,f=e.removeScrollBar,l=e.enabled,p=e.shards,v=e.sideCar,g=e.noRelative,E=e.noIsolation,u=e.inert,h=e.allowPinchZoom,y=e.as,b=y===void 0?"div":y,w=e.gapMode,k=_C(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=v,N=OH([r,t]),S=pt(pt({},k),o);return i.createElement(i.Fragment,null,l&&i.createElement(C,{sideCar:DC,removeScrollBar:f,shards:p,noRelative:g,noIsolation:E,inert:u,setCallbacks:a,allowPinchZoom:!!h,lockRef:r,gapMode:w}),c?i.cloneElement(i.Children.only(s),pt(pt({},S),{ref:N})):i.createElement(b,pt({},S,{className:m,ref:N}),s))});_u.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};_u.classNames={fullWidth:Cc,zeroRight:Sc};var jH=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function PH(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=jH();return t&&e.setAttribute("nonce",t),e}function MH(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function AH(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var IH=function(){var e=0,t=null;return{add:function(r){e==0&&(t=PH())&&(MH(t,r),AH(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},LH=function(){var e=IH();return function(t,r){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},jC=function(){var e=LH(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},FH={left:0,top:0,right:0,gap:0},df=function(e){return parseInt(e||"",10)||0},WH=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[df(r),df(n),df(o)]},$H=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return FH;var t=WH(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},zH=jC(),_o="data-scroll-locked",UH=function(e,t,r,n){var o=e.left,a=e.top,c=e.right,s=e.gap;return r===void 0&&(r="margin"),`
956
- .`.concat(kH,` {
957
- overflow: hidden `).concat(n,`;
958
- padding-right: `).concat(s,"px ").concat(n,`;
959
- }
960
- body[`).concat(_o,`] {
961
- overflow: hidden `).concat(n,`;
962
- overscroll-behavior: contain;
963
- `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
964
- padding-left: `.concat(o,`px;
965
- padding-top: `).concat(a,`px;
966
- padding-right: `).concat(c,`px;
967
- margin-left:0;
968
- margin-top:0;
969
- margin-right: `).concat(s,"px ").concat(n,`;
970
- `),r==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),`
971
- }
972
-
973
- .`).concat(Sc,` {
974
- right: `).concat(s,"px ").concat(n,`;
975
- }
976
-
977
- .`).concat(Cc,` {
978
- margin-right: `).concat(s,"px ").concat(n,`;
979
- }
980
-
981
- .`).concat(Sc," .").concat(Sc,` {
982
- right: 0 `).concat(n,`;
983
- }
984
-
985
- .`).concat(Cc," .").concat(Cc,` {
986
- margin-right: 0 `).concat(n,`;
987
- }
988
-
989
- body[`).concat(_o,`] {
990
- `).concat(SH,": ").concat(s,`px;
991
- }
992
- `)},Pb=function(){var e=parseInt(document.body.getAttribute(_o)||"0",10);return isFinite(e)?e:0},YH=function(){i.useEffect(function(){return document.body.setAttribute(_o,(Pb()+1).toString()),function(){var e=Pb()-1;e<=0?document.body.removeAttribute(_o):document.body.setAttribute(_o,e.toString())}},[])},BH=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;YH();var a=i.useMemo(function(){return $H(o)},[o]);return i.createElement(zH,{styles:UH(a,!t,o,r?"":"!important")})},Op=!1;if(typeof window<"u")try{var Di=Object.defineProperty({},"passive",{get:function(){return Op=!0,!0}});window.addEventListener("test",Di,Di),window.removeEventListener("test",Di,Di)}catch{Op=!1}var no=Op?{passive:!1}:!1,KH=function(e){return e.tagName==="TEXTAREA"},PC=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!KH(e)&&r[t]==="visible")},XH=function(e){return PC(e,"overflowY")},HH=function(e){return PC(e,"overflowX")},Mb=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=MC(e,n);if(o){var a=AC(e,n),c=a[1],s=a[2];if(c>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},VH=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},qH=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},MC=function(e,t){return e==="v"?XH(t):HH(t)},AC=function(e,t){return e==="v"?VH(t):qH(t)},ZH=function(e,t){return e==="h"&&t==="rtl"?-1:1},GH=function(e,t,r,n,o){var a=ZH(e,window.getComputedStyle(t).direction),c=a*n,s=r.target,m=t.contains(s),f=!1,l=c>0,p=0,v=0;do{if(!s)break;var g=AC(e,s),E=g[0],u=g[1],h=g[2],y=u-h-a*E;(E||y)&&MC(e,s)&&(p+=y,v+=E);var b=s.parentNode;s=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!m&&s!==document.body||m&&(t.contains(s)||t===s));return(l&&Math.abs(p)<1||!l&&Math.abs(v)<1)&&(f=!0),f},ji=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ab=function(e){return[e.deltaX,e.deltaY]},Ib=function(e){return e&&"current"in e?e.current:e},JH=function(e,t){return e[0]===t[0]&&e[1]===t[1]},QH=function(e){return`
993
- .block-interactivity-`.concat(e,` {pointer-events: none;}
994
- .allow-interactivity-`).concat(e,` {pointer-events: all;}
995
- `)},eV=0,oo=[];function tV(e){var t=i.useRef([]),r=i.useRef([0,0]),n=i.useRef(),o=i.useState(eV++)[0],a=i.useState(jC)[0],c=i.useRef(e);i.useEffect(function(){c.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var u=EH([e.lockRef.current],(e.shards||[]).map(Ib)).filter(Boolean);return u.forEach(function(h){return h.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),u.forEach(function(h){return h.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=i.useCallback(function(u,h){if("touches"in u&&u.touches.length===2||u.type==="wheel"&&u.ctrlKey)return!c.current.allowPinchZoom;var y=ji(u),b=r.current,w="deltaX"in u?u.deltaX:b[0]-y[0],k="deltaY"in u?u.deltaY:b[1]-y[1],C,N=u.target,S=Math.abs(w)>Math.abs(k)?"h":"v";if("touches"in u&&S==="h"&&N.type==="range")return!1;var R=Mb(S,N);if(!R)return!0;if(R?C=S:(C=S==="v"?"h":"v",R=Mb(S,N)),!R)return!1;if(!n.current&&"changedTouches"in u&&(w||k)&&(n.current=C),!C)return!0;var D=n.current||C;return GH(D,h,u,D==="h"?w:k)},[]),m=i.useCallback(function(u){var h=u;if(!(!oo.length||oo[oo.length-1]!==a)){var y="deltaY"in h?Ab(h):ji(h),b=t.current.filter(function(C){return C.name===h.type&&(C.target===h.target||h.target===C.shadowParent)&&JH(C.delta,y)})[0];if(b&&b.should){h.cancelable&&h.preventDefault();return}if(!b){var w=(c.current.shards||[]).map(Ib).filter(Boolean).filter(function(C){return C.contains(h.target)}),k=w.length>0?s(h,w[0]):!c.current.noIsolation;k&&h.cancelable&&h.preventDefault()}}},[]),f=i.useCallback(function(u,h,y,b){var w={name:u,delta:h,target:y,should:b,shadowParent:rV(y)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(k){return k!==w})},1)},[]),l=i.useCallback(function(u){r.current=ji(u),n.current=void 0},[]),p=i.useCallback(function(u){f(u.type,Ab(u),u.target,s(u,e.lockRef.current))},[]),v=i.useCallback(function(u){f(u.type,ji(u),u.target,s(u,e.lockRef.current))},[]);i.useEffect(function(){return oo.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:v}),document.addEventListener("wheel",m,no),document.addEventListener("touchmove",m,no),document.addEventListener("touchstart",l,no),function(){oo=oo.filter(function(u){return u!==a}),document.removeEventListener("wheel",m,no),document.removeEventListener("touchmove",m,no),document.removeEventListener("touchstart",l,no)}},[]);var g=e.removeScrollBar,E=e.inert;return i.createElement(i.Fragment,null,E?i.createElement(a,{styles:QH(o)}):null,g?i.createElement(BH,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function rV(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const nV=DH(DC,tV);var IC=i.forwardRef(function(e,t){return i.createElement(_u,pt({},e,{ref:t,sideCar:nV}))});IC.classNames=_u.classNames;var oV=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ao=new WeakMap,Pi=new WeakMap,Mi={},ff=0,LC=function(e){return e&&(e.host||LC(e.parentNode))},aV=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=LC(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},sV=function(e,t,r,n){var o=aV(t,Array.isArray(e)?e:[e]);Mi[r]||(Mi[r]=new WeakMap);var a=Mi[r],c=[],s=new Set,m=new Set(o),f=function(p){!p||s.has(p)||(s.add(p),f(p.parentNode))};o.forEach(f);var l=function(p){!p||m.has(p)||Array.prototype.forEach.call(p.children,function(v){if(s.has(v))l(v);else try{var g=v.getAttribute(n),E=g!==null&&g!=="false",u=(ao.get(v)||0)+1,h=(a.get(v)||0)+1;ao.set(v,u),a.set(v,h),c.push(v),u===1&&E&&Pi.set(v,!0),h===1&&v.setAttribute(r,"true"),E||v.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",v,y)}})};return l(t),s.clear(),ff++,function(){c.forEach(function(p){var v=ao.get(p)-1,g=a.get(p)-1;ao.set(p,v),a.set(p,g),v||(Pi.has(p)||p.removeAttribute(n),Pi.delete(p)),g||p.removeAttribute(r)}),ff--,ff||(ao=new WeakMap,ao=new WeakMap,Pi=new WeakMap,Mi={})}},iV=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=oV(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),sV(n,o,r,"aria-hidden")):function(){return null}},FC="Dialog",[WC]=Ou(FC),[Poe,Bt]=WC(FC),$C="DialogTrigger",cV=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Bt($C,r),a=Rt(t,o.triggerRef);return ne.jsx(Le.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Fm(o.open),...n,ref:a,onClick:Ne(e.onClick,o.onOpenToggle)})});cV.displayName=$C;var uV="DialogPortal",[Moe,zC]=WC(uV,{forceMount:void 0}),Xc="DialogOverlay",lV=i.forwardRef((e,t)=>{const r=zC(Xc,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Bt(Xc,e.__scopeDialog);return a.modal?ne.jsx(Nu,{present:n||a.open,children:ne.jsx(fV,{...o,ref:t})}):null});lV.displayName=Xc;var dV=q.createSlot("DialogOverlay.RemoveScroll"),fV=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Bt(Xc,r);return ne.jsx(IC,{as:dV,allowPinchZoom:!0,shards:[o.contentRef],children:ne.jsx(Le.div,{"data-state":Fm(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),Qr="DialogContent",pV=i.forwardRef((e,t)=>{const r=zC(Qr,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Bt(Qr,e.__scopeDialog);return ne.jsx(Nu,{present:n||a.open,children:a.modal?ne.jsx(mV,{...o,ref:t}):ne.jsx(vV,{...o,ref:t})})});pV.displayName=Qr;var mV=i.forwardRef((e,t)=>{const r=Bt(Qr,e.__scopeDialog),n=i.useRef(null),o=Rt(t,r.contentRef,n);return i.useEffect(()=>{const a=n.current;if(a)return iV(a)},[]),ne.jsx(UC,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ne(e.onCloseAutoFocus,a=>{a.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:Ne(e.onPointerDownOutside,a=>{const c=a.detail.originalEvent,s=c.button===0&&c.ctrlKey===!0;(c.button===2||s)&&a.preventDefault()}),onFocusOutside:Ne(e.onFocusOutside,a=>a.preventDefault())})}),vV=i.forwardRef((e,t)=>{const r=Bt(Qr,e.__scopeDialog),n=i.useRef(!1),o=i.useRef(!1);return ne.jsx(UC,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(n.current||r.triggerRef.current?.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=a.target;r.triggerRef.current?.contains(c)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),UC=i.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...c}=e,s=Bt(Qr,r),m=i.useRef(null),f=Rt(t,m);return xH(),ne.jsxs(ne.Fragment,{children:[ne.jsx(OC,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:ne.jsx(CC,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":Fm(s.open),...c,ref:f,onDismiss:()=>s.onOpenChange(!1)})}),ne.jsxs(ne.Fragment,{children:[ne.jsx(bV,{titleId:s.titleId}),ne.jsx(xV,{contentRef:m,descriptionId:s.descriptionId})]})]})}),Lm="DialogTitle",hV=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Bt(Lm,r);return ne.jsx(Le.h2,{id:o.titleId,...n,ref:t})});hV.displayName=Lm;var YC="DialogDescription",gV=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Bt(YC,r);return ne.jsx(Le.p,{id:o.descriptionId,...n,ref:t})});gV.displayName=YC;var BC="DialogClose",yV=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Bt(BC,r);return ne.jsx(Le.button,{type:"button",...n,ref:t,onClick:Ne(e.onClick,()=>o.onOpenChange(!1))})});yV.displayName=BC;function Fm(e){return e?"open":"closed"}var KC="DialogTitleWarning",[Aoe,XC]=X8(KC,{contentName:Qr,titleName:Lm,docsSlug:"dialog"}),bV=({titleId:e})=>{const t=XC(KC),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
996
-
997
- If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
998
-
999
- For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},wV="DialogDescriptionWarning",xV=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${XC(wV).contentName}}.`;return i.useEffect(()=>{const n=e.current?.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},pf={exports:{}},la={};/**
1000
- * @license React
1001
- * react-jsx-runtime.production.js
1002
- *
1003
- * Copyright (c) Meta Platforms, Inc. and affiliates.
1004
- *
1005
- * This source code is licensed under the MIT license found in the
1006
- * LICENSE file in the root directory of this source tree.
1007
- */var Lb;function EV(){if(Lb)return la;Lb=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,o,a){var c=null;if(a!==void 0&&(c=""+a),o.key!==void 0&&(c=""+o.key),"key"in o){a={};for(var s in o)s!=="key"&&(a[s]=o[s])}else a=o;return o=a.ref,{$$typeof:e,type:n,key:c,ref:o!==void 0?o:null,props:a}}return la.Fragment=t,la.jsx=r,la.jsxs=r,la}var Ai={};/**
1008
- * @license React
1009
- * react-jsx-runtime.development.js
1010
- *
1011
- * Copyright (c) Meta Platforms, Inc. and affiliates.
1012
- *
1013
- * This source code is licensed under the MIT license found in the
1014
- * LICENSE file in the root directory of this source tree.
1015
- */var Fb;function kV(){return Fb||(Fb=1,process.env.NODE_ENV!=="production"&&(function(){function e(d){if(d==null)return null;if(typeof d=="function")return d.$$typeof===L?null:d.displayName||d.name||null;if(typeof d=="string")return d;switch(d){case u:return"Fragment";case y:return"Profiler";case h:return"StrictMode";case C:return"Suspense";case N:return"SuspenseList";case D:return"Activity"}if(typeof d=="object")switch(typeof d.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),d.$$typeof){case E:return"Portal";case w:return(d.displayName||"Context")+".Provider";case b:return(d._context.displayName||"Context")+".Consumer";case k:var x=d.render;return d=d.displayName,d||(d=x.displayName||x.name||"",d=d!==""?"ForwardRef("+d+")":"ForwardRef"),d;case S:return x=d.displayName||null,x!==null?x:e(d.type)||"Memo";case R:x=d._payload,d=d._init;try{return e(d(x))}catch{}}return null}function t(d){return""+d}function r(d){try{t(d);var x=!1}catch{x=!0}if(x){x=console;var O=x.error,_=typeof Symbol=="function"&&Symbol.toStringTag&&d[Symbol.toStringTag]||d.constructor.name||"Object";return O.call(x,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",_),t(d)}}function n(d){if(d===u)return"<>";if(typeof d=="object"&&d!==null&&d.$$typeof===R)return"<...>";try{var x=e(d);return x?"<"+x+">":"<...>"}catch{return"<...>"}}function o(){var d=I.A;return d===null?null:d.getOwner()}function a(){return Error("react-stack-top-frame")}function c(d){if($.call(d,"key")){var x=Object.getOwnPropertyDescriptor(d,"key").get;if(x&&x.isReactWarning)return!1}return d.key!==void 0}function s(d,x){function O(){M||(M=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",x))}O.isReactWarning=!0,Object.defineProperty(d,"key",{get:O,configurable:!0})}function m(){var d=e(this.type);return K[d]||(K[d]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),d=this.props.ref,d!==void 0?d:null}function f(d,x,O,_,A,j,X,B){return O=j.ref,d={$$typeof:g,type:d,key:x,props:j,_owner:A},(O!==void 0?O:null)!==null?Object.defineProperty(d,"ref",{enumerable:!1,get:m}):Object.defineProperty(d,"ref",{enumerable:!1,value:null}),d._store={},Object.defineProperty(d._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(d,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(d,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:X}),Object.defineProperty(d,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:B}),Object.freeze&&(Object.freeze(d.props),Object.freeze(d)),d}function l(d,x,O,_,A,j,X,B){var T=x.children;if(T!==void 0)if(_)if(U(T)){for(_=0;_<T.length;_++)p(T[_]);Object.freeze&&Object.freeze(T)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else p(T);if($.call(x,"key")){T=e(d);var F=Object.keys(x).filter(function(se){return se!=="key"});_=0<F.length?"{key: someKey, "+F.join(": ..., ")+": ...}":"{key: someKey}",V[T+_]||(F=0<F.length?"{"+F.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
1016
- let props = %s;
1017
- <%s {...props} />
1018
- React keys must be passed directly to JSX without using spread:
1019
- let props = %s;
1020
- <%s key={someKey} {...props} />`,_,T,F,T),V[T+_]=!0)}if(T=null,O!==void 0&&(r(O),T=""+O),c(x)&&(r(x.key),T=""+x.key),"key"in x){O={};for(var H in x)H!=="key"&&(O[H]=x[H])}else O=x;return T&&s(O,typeof d=="function"?d.displayName||d.name||"Unknown":d),f(d,T,j,A,o(),O,X,B)}function p(d){typeof d=="object"&&d!==null&&d.$$typeof===g&&d._store&&(d._store.validated=1)}var v=P,g=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),b=Symbol.for("react.consumer"),w=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),S=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),D=Symbol.for("react.activity"),L=Symbol.for("react.client.reference"),I=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$=Object.prototype.hasOwnProperty,U=Array.isArray,W=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(d){return d()}};var M,K={},Y=v.react_stack_bottom_frame.bind(v,a)(),z=W(n(a)),V={};Ai.Fragment=u,Ai.jsx=function(d,x,O,_,A){var j=1e4>I.recentlyCreatedOwnerStacks++;return l(d,x,O,!1,_,A,j?Error("react-stack-top-frame"):Y,j?W(n(d)):z)},Ai.jsxs=function(d,x,O,_,A){var j=1e4>I.recentlyCreatedOwnerStacks++;return l(d,x,O,!0,_,A,j?Error("react-stack-top-frame"):Y,j?W(n(d)):z)}})()),Ai}var Wb;function SV(){return Wb||(Wb=1,process.env.NODE_ENV==="production"?pf.exports=EV():pf.exports=kV()),pf.exports}var oe=SV();P.createContext({locale:void 0});var CV=(e,t,r,n,o,a,c,s)=>{let m=document.documentElement,f=["light","dark"];function l(g){(Array.isArray(e)?e:[e]).forEach(E=>{let u=E==="class",h=u&&a?o.map(y=>a[y]||y):o;u?(m.classList.remove(...h),m.classList.add(a&&a[g]?a[g]:g)):m.setAttribute(E,g)}),p(g)}function p(g){s&&f.includes(g)&&(m.style.colorScheme=g)}function v(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(n)l(n);else try{let g=localStorage.getItem(t)||r,E=c&&g==="system"?v():g;l(E)}catch{}};i.createContext(void 0);i.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:n,enableColorScheme:o,defaultTheme:a,value:c,themes:s,nonce:m,scriptProps:f})=>{let l=JSON.stringify([r,t,a,e,s,c,n,o]).slice(1,-1);return i.createElement("script",{...f,suppressHydrationWarning:!0,nonce:typeof window>"u"?m:"",dangerouslySetInnerHTML:{__html:`(${CV.toString()})(${l})`}})});ae.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});ae.cva("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function _e(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),r===!1||!n.defaultPrevented)return t?.(n)}}function $b(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function RV(...e){return t=>{let r=!1;const n=e.map(o=>{const a=$b(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():$b(e[o],null)}}}}function Ot(...e){return i.useCallback(RV(...e),e)}function OV(e,t){const r=i.createContext(t),n=a=>{const{children:c,...s}=a,m=i.useMemo(()=>s,Object.values(s));return oe.jsx(r.Provider,{value:m,children:c})};n.displayName=e+"Provider";function o(a){const c=i.useContext(r);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,o]}function Tu(e,t=[]){let r=[];function n(a,c){const s=i.createContext(c),m=r.length;r=[...r,c];const f=p=>{const{scope:v,children:g,...E}=p,u=v?.[e]?.[m]||s,h=i.useMemo(()=>E,Object.values(E));return oe.jsx(u.Provider,{value:h,children:g})};f.displayName=a+"Provider";function l(p,v){const g=v?.[e]?.[m]||s,E=i.useContext(g);if(E)return E;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[f,l]}const o=()=>{const a=r.map(c=>i.createContext(c));return function(c){const s=c?.[e]||a;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:s}}),[c,s])}};return o.scopeName=e,[n,NV(o,...t)]}function NV(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(o){const a=n.reduce((c,{useScope:s,scopeName:m})=>{const f=s(o)[`__scope${m}`];return{...c,...f}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}var Da=globalThis?.document?i.useLayoutEffect:()=>{},_V=i[" useId ".trim().toString()]||(()=>{}),TV=0;function HC(e){const[t,r]=i.useState(_V());return Da(()=>{r(n=>n??String(TV++))},[e]),t?`radix-${t}`:""}var DV=i[" useInsertionEffect ".trim().toString()]||Da;function VC({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,a,c]=jV({defaultProp:t,onChange:r}),s=e!==void 0,m=s?e:o;{const l=i.useRef(e!==void 0);i.useEffect(()=>{const p=l.current;p!==s&&console.warn(`${n} is changing from ${p?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),l.current=s},[s,n])}const f=i.useCallback(l=>{if(s){const p=PV(l)?l(e):l;p!==e&&c.current?.(p)}else a(l)},[s,e,a,c]);return[m,f]}function jV({defaultProp:e,onChange:t}){const[r,n]=i.useState(e),o=i.useRef(r),a=i.useRef(t);return DV(()=>{a.current=t},[t]),i.useEffect(()=>{o.current!==r&&(a.current?.(r),o.current=r)},[r,o]),[r,n,a]}function PV(e){return typeof e=="function"}var MV=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Fe=MV.reduce((e,t)=>{const r=q.createSlot(`Primitive.${t}`),n=i.forwardRef((o,a)=>{const{asChild:c,...s}=o,m=c?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),oe.jsx(m,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function AV(e,t){e&&we.flushSync(()=>e.dispatchEvent(t))}function zo(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...r)=>t.current?.(...r),[])}function IV(e,t=globalThis?.document){const r=zo(e);i.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var LV="DismissableLayer",Np="dismissableLayer.update",FV="dismissableLayer.pointerDownOutside",WV="dismissableLayer.focusOutside",zb,qC=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ZC=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:c,onDismiss:s,...m}=e,f=i.useContext(qC),[l,p]=i.useState(null),v=l?.ownerDocument??globalThis?.document,[,g]=i.useState({}),E=Ot(t,S=>p(S)),u=Array.from(f.layers),[h]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),y=u.indexOf(h),b=l?u.indexOf(l):-1,w=f.layersWithOutsidePointerEventsDisabled.size>0,k=b>=y,C=UV(S=>{const R=S.target,D=[...f.branches].some(L=>L.contains(R));!k||D||(o?.(S),c?.(S),S.defaultPrevented||s?.())},v),N=YV(S=>{const R=S.target;[...f.branches].some(D=>D.contains(R))||(a?.(S),c?.(S),S.defaultPrevented||s?.())},v);return IV(S=>{b===f.layers.size-1&&(n?.(S),!S.defaultPrevented&&s&&(S.preventDefault(),s()))},v),i.useEffect(()=>{if(l)return r&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(zb=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(l)),f.layers.add(l),Ub(),()=>{r&&f.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=zb)}},[l,v,r,f]),i.useEffect(()=>()=>{l&&(f.layers.delete(l),f.layersWithOutsidePointerEventsDisabled.delete(l),Ub())},[l,f]),i.useEffect(()=>{const S=()=>g({});return document.addEventListener(Np,S),()=>document.removeEventListener(Np,S)},[]),oe.jsx(Fe.div,{...m,ref:E,style:{pointerEvents:w?k?"auto":"none":void 0,...e.style},onFocusCapture:_e(e.onFocusCapture,N.onFocusCapture),onBlurCapture:_e(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:_e(e.onPointerDownCapture,C.onPointerDownCapture)})});ZC.displayName=LV;var $V="DismissableLayerBranch",zV=i.forwardRef((e,t)=>{const r=i.useContext(qC),n=i.useRef(null),o=Ot(t,n);return i.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),oe.jsx(Fe.div,{...e,ref:o})});zV.displayName=$V;function UV(e,t=globalThis?.document){const r=zo(e),n=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let m=function(){GC(FV,r,f,{discrete:!0})};const f={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=m,t.addEventListener("click",o.current,{once:!0})):m()}else t.removeEventListener("click",o.current);n.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function YV(e,t=globalThis?.document){const r=zo(e),n=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!n.current&&GC(WV,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function Ub(){const e=new CustomEvent(Np);document.dispatchEvent(e)}function GC(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?AV(o,a):o.dispatchEvent(a)}var mf="focusScope.autoFocusOnMount",vf="focusScope.autoFocusOnUnmount",Yb={bubbles:!1,cancelable:!0},BV="FocusScope",JC=i.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...c}=e,[s,m]=i.useState(null),f=zo(o),l=zo(a),p=i.useRef(null),v=Ot(t,u=>m(u)),g=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(n){let u=function(w){if(g.paused||!s)return;const k=w.target;s.contains(k)?p.current=k:xr(p.current,{select:!0})},h=function(w){if(g.paused||!s)return;const k=w.relatedTarget;k!==null&&(s.contains(k)||xr(p.current,{select:!0}))},y=function(w){if(document.activeElement===document.body)for(const k of w)k.removedNodes.length>0&&xr(s)};document.addEventListener("focusin",u),document.addEventListener("focusout",h);const b=new MutationObserver(y);return s&&b.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",u),document.removeEventListener("focusout",h),b.disconnect()}}},[n,s,g.paused]),i.useEffect(()=>{if(s){Kb.add(g);const u=document.activeElement;if(!s.contains(u)){const h=new CustomEvent(mf,Yb);s.addEventListener(mf,f),s.dispatchEvent(h),h.defaultPrevented||(KV(ZV(QC(s)),{select:!0}),document.activeElement===u&&xr(s))}return()=>{s.removeEventListener(mf,f),setTimeout(()=>{const h=new CustomEvent(vf,Yb);s.addEventListener(vf,l),s.dispatchEvent(h),h.defaultPrevented||xr(u??document.body,{select:!0}),s.removeEventListener(vf,l),Kb.remove(g)},0)}}},[s,f,l,g]);const E=i.useCallback(u=>{if(!r&&!n||g.paused)return;const h=u.key==="Tab"&&!u.altKey&&!u.ctrlKey&&!u.metaKey,y=document.activeElement;if(h&&y){const b=u.currentTarget,[w,k]=XV(b);w&&k?!u.shiftKey&&y===k?(u.preventDefault(),r&&xr(w,{select:!0})):u.shiftKey&&y===w&&(u.preventDefault(),r&&xr(k,{select:!0})):y===b&&u.preventDefault()}},[r,n,g.paused]);return oe.jsx(Fe.div,{tabIndex:-1,...c,ref:v,onKeyDown:E})});JC.displayName=BV;function KV(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(xr(n,{select:t}),document.activeElement!==r)return}function XV(e){const t=QC(e),r=Bb(t,e),n=Bb(t.reverse(),e);return[r,n]}function QC(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Bb(e,t){for(const r of e)if(!HV(r,{upTo:t}))return r}function HV(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function VV(e){return e instanceof HTMLInputElement&&"select"in e}function xr(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&VV(e)&&t&&e.select()}}var Kb=qV();function qV(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=Xb(e,t),e.unshift(t)},remove(t){e=Xb(e,t),e[0]?.resume()}}}function Xb(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function ZV(e){return e.filter(t=>t.tagName!=="A")}var GV="Portal",JV=i.forwardRef((e,t)=>{const{container:r,...n}=e,[o,a]=i.useState(!1);Da(()=>a(!0),[]);const c=r||o&&globalThis?.document?.body;return c?be.createPortal(oe.jsx(Fe.div,{...n,ref:t}),c):null});JV.displayName=GV;function QV(e,t){return i.useReducer((r,n)=>t[r][n]??r,e)}var Du=e=>{const{present:t,children:r}=e,n=eq(t),o=typeof r=="function"?r({present:n.isPresent}):i.Children.only(r),a=Ot(n.ref,tq(o));return typeof r=="function"||n.isPresent?i.cloneElement(o,{ref:a}):null};Du.displayName="Presence";function eq(e){const[t,r]=i.useState(),n=i.useRef(null),o=i.useRef(e),a=i.useRef("none"),c=e?"mounted":"unmounted",[s,m]=QV(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const f=Ii(n.current);a.current=s==="mounted"?f:"none"},[s]),Da(()=>{const f=n.current,l=o.current;if(l!==e){const p=a.current,v=Ii(f);e?m("MOUNT"):v==="none"||f?.display==="none"?m("UNMOUNT"):m(l&&p!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,m]),Da(()=>{if(t){let f;const l=t.ownerDocument.defaultView??window,p=g=>{const E=Ii(n.current).includes(CSS.escape(g.animationName));if(g.target===t&&E&&(m("ANIMATION_END"),!o.current)){const u=t.style.animationFillMode;t.style.animationFillMode="forwards",f=l.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=u)})}},v=g=>{g.target===t&&(a.current=Ii(n.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{l.clearTimeout(f),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else m("ANIMATION_END")},[t,m]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:i.useCallback(f=>{n.current=f?getComputedStyle(f):null,r(f)},[])}}function Ii(e){return e?.animationName||"none"}function tq(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var hf=0;function rq(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Hb()),document.body.insertAdjacentElement("beforeend",e[1]??Hb()),hf++,()=>{hf===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),hf--}},[])}function Hb(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var mt=function(){return mt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},mt.apply(this,arguments)};function eR(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function nq(e,t,r){for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var Rc="right-scroll-bar-position",Oc="width-before-scroll-bar",oq="with-scroll-bars-hidden",aq="--removed-body-scroll-bar-size";function gf(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function sq(e,t){var r=P.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var iq=typeof window<"u"?i.useLayoutEffect:i.useEffect,Vb=new WeakMap;function cq(e,t){var r=sq(null,function(n){return e.forEach(function(o){return gf(o,n)})});return iq(function(){var n=Vb.get(r);if(n){var o=new Set(n),a=new Set(e),c=r.current;o.forEach(function(s){a.has(s)||gf(s,null)}),a.forEach(function(s){o.has(s)||gf(s,c)})}Vb.set(r,e)},[e]),r}function uq(e){return e}function lq(e,t){t===void 0&&(t=uq);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var c=t(a,n);return r.push(c),function(){r=r.filter(function(s){return s!==c})}},assignSyncMedium:function(a){for(n=!0;r.length;){var c=r;r=[],c.forEach(a)}r={push:function(s){return a(s)},filter:function(){return r}}},assignMedium:function(a){n=!0;var c=[];if(r.length){var s=r;r=[],s.forEach(a),c=r}var m=function(){var l=c;c=[],l.forEach(a)},f=function(){return Promise.resolve().then(m)};f(),r={push:function(l){c.push(l),f()},filter:function(l){return c=c.filter(l),r}}}};return o}function dq(e){e===void 0&&(e={});var t=lq(null);return t.options=mt({async:!0,ssr:!1},e),t}var tR=function(e){var t=e.sideCar,r=eR(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return i.createElement(n,mt({},r))};tR.isSideCarExport=!0;function fq(e,t){return e.useMedium(t),tR}var rR=dq(),yf=function(){},ju=i.forwardRef(function(e,t){var r=i.useRef(null),n=i.useState({onScrollCapture:yf,onWheelCapture:yf,onTouchMoveCapture:yf}),o=n[0],a=n[1],c=e.forwardProps,s=e.children,m=e.className,f=e.removeScrollBar,l=e.enabled,p=e.shards,v=e.sideCar,g=e.noRelative,E=e.noIsolation,u=e.inert,h=e.allowPinchZoom,y=e.as,b=y===void 0?"div":y,w=e.gapMode,k=eR(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=v,N=cq([r,t]),S=mt(mt({},k),o);return i.createElement(i.Fragment,null,l&&i.createElement(C,{sideCar:rR,removeScrollBar:f,shards:p,noRelative:g,noIsolation:E,inert:u,setCallbacks:a,allowPinchZoom:!!h,lockRef:r,gapMode:w}),c?i.cloneElement(i.Children.only(s),mt(mt({},S),{ref:N})):i.createElement(b,mt({},S,{className:m,ref:N}),s))});ju.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ju.classNames={fullWidth:Oc,zeroRight:Rc};var pq=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function mq(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=pq();return t&&e.setAttribute("nonce",t),e}function vq(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function hq(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var gq=function(){var e=0,t=null;return{add:function(r){e==0&&(t=mq())&&(vq(t,r),hq(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},yq=function(){var e=gq();return function(t,r){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},nR=function(){var e=yq(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},bq={left:0,top:0,right:0,gap:0},bf=function(e){return parseInt(e||"",10)||0},wq=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[bf(r),bf(n),bf(o)]},xq=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return bq;var t=wq(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},Eq=nR(),To="data-scroll-locked",kq=function(e,t,r,n){var o=e.left,a=e.top,c=e.right,s=e.gap;return r===void 0&&(r="margin"),`
1021
- .`.concat(oq,` {
1022
- overflow: hidden `).concat(n,`;
1023
- padding-right: `).concat(s,"px ").concat(n,`;
1024
- }
1025
- body[`).concat(To,`] {
1026
- overflow: hidden `).concat(n,`;
1027
- overscroll-behavior: contain;
1028
- `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
1029
- padding-left: `.concat(o,`px;
1030
- padding-top: `).concat(a,`px;
1031
- padding-right: `).concat(c,`px;
1032
- margin-left:0;
1033
- margin-top:0;
1034
- margin-right: `).concat(s,"px ").concat(n,`;
1035
- `),r==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),`
1036
- }
1037
-
1038
- .`).concat(Rc,` {
1039
- right: `).concat(s,"px ").concat(n,`;
1040
- }
1041
-
1042
- .`).concat(Oc,` {
1043
- margin-right: `).concat(s,"px ").concat(n,`;
1044
- }
1045
-
1046
- .`).concat(Rc," .").concat(Rc,` {
1047
- right: 0 `).concat(n,`;
1048
- }
1049
-
1050
- .`).concat(Oc," .").concat(Oc,` {
1051
- margin-right: 0 `).concat(n,`;
1052
- }
1053
-
1054
- body[`).concat(To,`] {
1055
- `).concat(aq,": ").concat(s,`px;
1056
- }
1057
- `)},qb=function(){var e=parseInt(document.body.getAttribute(To)||"0",10);return isFinite(e)?e:0},Sq=function(){i.useEffect(function(){return document.body.setAttribute(To,(qb()+1).toString()),function(){var e=qb()-1;e<=0?document.body.removeAttribute(To):document.body.setAttribute(To,e.toString())}},[])},Cq=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;Sq();var a=i.useMemo(function(){return xq(o)},[o]);return i.createElement(Eq,{styles:kq(a,!t,o,r?"":"!important")})},_p=!1;if(typeof window<"u")try{var Li=Object.defineProperty({},"passive",{get:function(){return _p=!0,!0}});window.addEventListener("test",Li,Li),window.removeEventListener("test",Li,Li)}catch{_p=!1}var so=_p?{passive:!1}:!1,Rq=function(e){return e.tagName==="TEXTAREA"},oR=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!Rq(e)&&r[t]==="visible")},Oq=function(e){return oR(e,"overflowY")},Nq=function(e){return oR(e,"overflowX")},Zb=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=aR(e,n);if(o){var a=sR(e,n),c=a[1],s=a[2];if(c>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},_q=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},Tq=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},aR=function(e,t){return e==="v"?Oq(t):Nq(t)},sR=function(e,t){return e==="v"?_q(t):Tq(t)},Dq=function(e,t){return e==="h"&&t==="rtl"?-1:1},jq=function(e,t,r,n,o){var a=Dq(e,window.getComputedStyle(t).direction),c=a*n,s=r.target,m=t.contains(s),f=!1,l=c>0,p=0,v=0;do{if(!s)break;var g=sR(e,s),E=g[0],u=g[1],h=g[2],y=u-h-a*E;(E||y)&&aR(e,s)&&(p+=y,v+=E);var b=s.parentNode;s=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!m&&s!==document.body||m&&(t.contains(s)||t===s));return(l&&Math.abs(p)<1||!l&&Math.abs(v)<1)&&(f=!0),f},Fi=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Gb=function(e){return[e.deltaX,e.deltaY]},Jb=function(e){return e&&"current"in e?e.current:e},Pq=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Mq=function(e){return`
1058
- .block-interactivity-`.concat(e,` {pointer-events: none;}
1059
- .allow-interactivity-`).concat(e,` {pointer-events: all;}
1060
- `)},Aq=0,io=[];function Iq(e){var t=i.useRef([]),r=i.useRef([0,0]),n=i.useRef(),o=i.useState(Aq++)[0],a=i.useState(nR)[0],c=i.useRef(e);i.useEffect(function(){c.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var u=nq([e.lockRef.current],(e.shards||[]).map(Jb)).filter(Boolean);return u.forEach(function(h){return h.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),u.forEach(function(h){return h.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=i.useCallback(function(u,h){if("touches"in u&&u.touches.length===2||u.type==="wheel"&&u.ctrlKey)return!c.current.allowPinchZoom;var y=Fi(u),b=r.current,w="deltaX"in u?u.deltaX:b[0]-y[0],k="deltaY"in u?u.deltaY:b[1]-y[1],C,N=u.target,S=Math.abs(w)>Math.abs(k)?"h":"v";if("touches"in u&&S==="h"&&N.type==="range")return!1;var R=Zb(S,N);if(!R)return!0;if(R?C=S:(C=S==="v"?"h":"v",R=Zb(S,N)),!R)return!1;if(!n.current&&"changedTouches"in u&&(w||k)&&(n.current=C),!C)return!0;var D=n.current||C;return jq(D,h,u,D==="h"?w:k)},[]),m=i.useCallback(function(u){var h=u;if(!(!io.length||io[io.length-1]!==a)){var y="deltaY"in h?Gb(h):Fi(h),b=t.current.filter(function(C){return C.name===h.type&&(C.target===h.target||h.target===C.shadowParent)&&Pq(C.delta,y)})[0];if(b&&b.should){h.cancelable&&h.preventDefault();return}if(!b){var w=(c.current.shards||[]).map(Jb).filter(Boolean).filter(function(C){return C.contains(h.target)}),k=w.length>0?s(h,w[0]):!c.current.noIsolation;k&&h.cancelable&&h.preventDefault()}}},[]),f=i.useCallback(function(u,h,y,b){var w={name:u,delta:h,target:y,should:b,shadowParent:Lq(y)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(k){return k!==w})},1)},[]),l=i.useCallback(function(u){r.current=Fi(u),n.current=void 0},[]),p=i.useCallback(function(u){f(u.type,Gb(u),u.target,s(u,e.lockRef.current))},[]),v=i.useCallback(function(u){f(u.type,Fi(u),u.target,s(u,e.lockRef.current))},[]);i.useEffect(function(){return io.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:v}),document.addEventListener("wheel",m,so),document.addEventListener("touchmove",m,so),document.addEventListener("touchstart",l,so),function(){io=io.filter(function(u){return u!==a}),document.removeEventListener("wheel",m,so),document.removeEventListener("touchmove",m,so),document.removeEventListener("touchstart",l,so)}},[]);var g=e.removeScrollBar,E=e.inert;return i.createElement(i.Fragment,null,E?i.createElement(a,{styles:Mq(o)}):null,g?i.createElement(Cq,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Lq(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Fq=fq(rR,Iq);var iR=i.forwardRef(function(e,t){return i.createElement(ju,mt({},e,{ref:t,sideCar:Fq}))});iR.classNames=ju.classNames;var Wq=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},co=new WeakMap,Wi=new WeakMap,$i={},wf=0,cR=function(e){return e&&(e.host||cR(e.parentNode))},$q=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=cR(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},zq=function(e,t,r,n){var o=$q(t,Array.isArray(e)?e:[e]);$i[r]||($i[r]=new WeakMap);var a=$i[r],c=[],s=new Set,m=new Set(o),f=function(p){!p||s.has(p)||(s.add(p),f(p.parentNode))};o.forEach(f);var l=function(p){!p||m.has(p)||Array.prototype.forEach.call(p.children,function(v){if(s.has(v))l(v);else try{var g=v.getAttribute(n),E=g!==null&&g!=="false",u=(co.get(v)||0)+1,h=(a.get(v)||0)+1;co.set(v,u),a.set(v,h),c.push(v),u===1&&E&&Wi.set(v,!0),h===1&&v.setAttribute(r,"true"),E||v.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",v,y)}})};return l(t),s.clear(),wf++,function(){c.forEach(function(p){var v=co.get(p)-1,g=a.get(p)-1;co.set(p,v),a.set(p,g),v||(Wi.has(p)||p.removeAttribute(n),Wi.delete(p)),g||p.removeAttribute(r)}),wf--,wf||(co=new WeakMap,co=new WeakMap,Wi=new WeakMap,$i={})}},Uq=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=Wq(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),zq(n,o,r,"aria-hidden")):function(){return null}},uR="Dialog",[lR]=Tu(uR),[Ioe,Kt]=lR(uR),dR="DialogTrigger",Yq=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Kt(dR,r),a=Ot(t,o.triggerRef);return oe.jsx(Fe.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":$m(o.open),...n,ref:a,onClick:_e(e.onClick,o.onOpenToggle)})});Yq.displayName=dR;var Bq="DialogPortal",[Loe,fR]=lR(Bq,{forceMount:void 0}),Hc="DialogOverlay",Kq=i.forwardRef((e,t)=>{const r=fR(Hc,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Kt(Hc,e.__scopeDialog);return a.modal?oe.jsx(Du,{present:n||a.open,children:oe.jsx(Hq,{...o,ref:t})}):null});Kq.displayName=Hc;var Xq=q.createSlot("DialogOverlay.RemoveScroll"),Hq=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Kt(Hc,r);return oe.jsx(iR,{as:Xq,allowPinchZoom:!0,shards:[o.contentRef],children:oe.jsx(Fe.div,{"data-state":$m(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),en="DialogContent",Vq=i.forwardRef((e,t)=>{const r=fR(en,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Kt(en,e.__scopeDialog);return oe.jsx(Du,{present:n||a.open,children:a.modal?oe.jsx(qq,{...o,ref:t}):oe.jsx(Zq,{...o,ref:t})})});Vq.displayName=en;var qq=i.forwardRef((e,t)=>{const r=Kt(en,e.__scopeDialog),n=i.useRef(null),o=Ot(t,r.contentRef,n);return i.useEffect(()=>{const a=n.current;if(a)return Uq(a)},[]),oe.jsx(pR,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:_e(e.onCloseAutoFocus,a=>{a.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:_e(e.onPointerDownOutside,a=>{const c=a.detail.originalEvent,s=c.button===0&&c.ctrlKey===!0;(c.button===2||s)&&a.preventDefault()}),onFocusOutside:_e(e.onFocusOutside,a=>a.preventDefault())})}),Zq=i.forwardRef((e,t)=>{const r=Kt(en,e.__scopeDialog),n=i.useRef(!1),o=i.useRef(!1);return oe.jsx(pR,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(n.current||r.triggerRef.current?.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=a.target;r.triggerRef.current?.contains(c)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),pR=i.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...c}=e,s=Kt(en,r),m=i.useRef(null),f=Ot(t,m);return rq(),oe.jsxs(oe.Fragment,{children:[oe.jsx(JC,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:oe.jsx(ZC,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":$m(s.open),...c,ref:f,onDismiss:()=>s.onOpenChange(!1)})}),oe.jsxs(oe.Fragment,{children:[oe.jsx(eZ,{titleId:s.titleId}),oe.jsx(rZ,{contentRef:m,descriptionId:s.descriptionId})]})]})}),Wm="DialogTitle",Gq=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Kt(Wm,r);return oe.jsx(Fe.h2,{id:o.titleId,...n,ref:t})});Gq.displayName=Wm;var mR="DialogDescription",Jq=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Kt(mR,r);return oe.jsx(Fe.p,{id:o.descriptionId,...n,ref:t})});Jq.displayName=mR;var vR="DialogClose",Qq=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Kt(vR,r);return oe.jsx(Fe.button,{type:"button",...n,ref:t,onClick:_e(e.onClick,()=>o.onOpenChange(!1))})});Qq.displayName=vR;function $m(e){return e?"open":"closed"}var hR="DialogTitleWarning",[Foe,gR]=OV(hR,{contentName:en,titleName:Wm,docsSlug:"dialog"}),eZ=({titleId:e})=>{const t=gR(hR),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
1061
-
1062
- If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
1063
-
1064
- For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},tZ="DialogDescriptionWarning",rZ=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${gR(tZ).contentName}}.`;return i.useEffect(()=>{const n=e.current?.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},xf={exports:{}},da={};/**
1065
- * @license React
1066
- * react-jsx-runtime.production.js
1067
- *
1068
- * Copyright (c) Meta Platforms, Inc. and affiliates.
1069
- *
1070
- * This source code is licensed under the MIT license found in the
1071
- * LICENSE file in the root directory of this source tree.
1072
- */var Qb;function nZ(){if(Qb)return da;Qb=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,o,a){var c=null;if(a!==void 0&&(c=""+a),o.key!==void 0&&(c=""+o.key),"key"in o){a={};for(var s in o)s!=="key"&&(a[s]=o[s])}else a=o;return o=a.ref,{$$typeof:e,type:n,key:c,ref:o!==void 0?o:null,props:a}}return da.Fragment=t,da.jsx=r,da.jsxs=r,da}var zi={};/**
1073
- * @license React
1074
- * react-jsx-runtime.development.js
1075
- *
1076
- * Copyright (c) Meta Platforms, Inc. and affiliates.
1077
- *
1078
- * This source code is licensed under the MIT license found in the
1079
- * LICENSE file in the root directory of this source tree.
1080
- */var ew;function oZ(){return ew||(ew=1,process.env.NODE_ENV!=="production"&&(function(){function e(d){if(d==null)return null;if(typeof d=="function")return d.$$typeof===L?null:d.displayName||d.name||null;if(typeof d=="string")return d;switch(d){case u:return"Fragment";case y:return"Profiler";case h:return"StrictMode";case C:return"Suspense";case N:return"SuspenseList";case D:return"Activity"}if(typeof d=="object")switch(typeof d.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),d.$$typeof){case E:return"Portal";case w:return(d.displayName||"Context")+".Provider";case b:return(d._context.displayName||"Context")+".Consumer";case k:var x=d.render;return d=d.displayName,d||(d=x.displayName||x.name||"",d=d!==""?"ForwardRef("+d+")":"ForwardRef"),d;case S:return x=d.displayName||null,x!==null?x:e(d.type)||"Memo";case R:x=d._payload,d=d._init;try{return e(d(x))}catch{}}return null}function t(d){return""+d}function r(d){try{t(d);var x=!1}catch{x=!0}if(x){x=console;var O=x.error,_=typeof Symbol=="function"&&Symbol.toStringTag&&d[Symbol.toStringTag]||d.constructor.name||"Object";return O.call(x,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",_),t(d)}}function n(d){if(d===u)return"<>";if(typeof d=="object"&&d!==null&&d.$$typeof===R)return"<...>";try{var x=e(d);return x?"<"+x+">":"<...>"}catch{return"<...>"}}function o(){var d=I.A;return d===null?null:d.getOwner()}function a(){return Error("react-stack-top-frame")}function c(d){if($.call(d,"key")){var x=Object.getOwnPropertyDescriptor(d,"key").get;if(x&&x.isReactWarning)return!1}return d.key!==void 0}function s(d,x){function O(){M||(M=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",x))}O.isReactWarning=!0,Object.defineProperty(d,"key",{get:O,configurable:!0})}function m(){var d=e(this.type);return K[d]||(K[d]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),d=this.props.ref,d!==void 0?d:null}function f(d,x,O,_,A,j,X,B){return O=j.ref,d={$$typeof:g,type:d,key:x,props:j,_owner:A},(O!==void 0?O:null)!==null?Object.defineProperty(d,"ref",{enumerable:!1,get:m}):Object.defineProperty(d,"ref",{enumerable:!1,value:null}),d._store={},Object.defineProperty(d._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(d,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(d,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:X}),Object.defineProperty(d,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:B}),Object.freeze&&(Object.freeze(d.props),Object.freeze(d)),d}function l(d,x,O,_,A,j,X,B){var T=x.children;if(T!==void 0)if(_)if(U(T)){for(_=0;_<T.length;_++)p(T[_]);Object.freeze&&Object.freeze(T)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else p(T);if($.call(x,"key")){T=e(d);var F=Object.keys(x).filter(function(se){return se!=="key"});_=0<F.length?"{key: someKey, "+F.join(": ..., ")+": ...}":"{key: someKey}",V[T+_]||(F=0<F.length?"{"+F.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
1081
- let props = %s;
1082
- <%s {...props} />
1083
- React keys must be passed directly to JSX without using spread:
1084
- let props = %s;
1085
- <%s key={someKey} {...props} />`,_,T,F,T),V[T+_]=!0)}if(T=null,O!==void 0&&(r(O),T=""+O),c(x)&&(r(x.key),T=""+x.key),"key"in x){O={};for(var H in x)H!=="key"&&(O[H]=x[H])}else O=x;return T&&s(O,typeof d=="function"?d.displayName||d.name||"Unknown":d),f(d,T,j,A,o(),O,X,B)}function p(d){typeof d=="object"&&d!==null&&d.$$typeof===g&&d._store&&(d._store.validated=1)}var v=P,g=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),b=Symbol.for("react.consumer"),w=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),S=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),D=Symbol.for("react.activity"),L=Symbol.for("react.client.reference"),I=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$=Object.prototype.hasOwnProperty,U=Array.isArray,W=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(d){return d()}};var M,K={},Y=v.react_stack_bottom_frame.bind(v,a)(),z=W(n(a)),V={};zi.Fragment=u,zi.jsx=function(d,x,O,_,A){var j=1e4>I.recentlyCreatedOwnerStacks++;return l(d,x,O,!1,_,A,j?Error("react-stack-top-frame"):Y,j?W(n(d)):z)},zi.jsxs=function(d,x,O,_,A){var j=1e4>I.recentlyCreatedOwnerStacks++;return l(d,x,O,!0,_,A,j?Error("react-stack-top-frame"):Y,j?W(n(d)):z)}})()),zi}var tw;function aZ(){return tw||(tw=1,process.env.NODE_ENV==="production"?xf.exports=nZ():xf.exports=oZ()),xf.exports}var he=aZ();const sZ={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},iZ=(e,t,r)=>{let n;const o=sZ[e];return typeof o=="string"?n=o:t===1?n=o.one:n=o.other.replace("{{count}}",t.toString()),r?.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n};function Ef(e){return(t={})=>{const r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}const cZ={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},uZ={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},lZ={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},dZ={date:Ef({formats:cZ,defaultWidth:"full"}),time:Ef({formats:uZ,defaultWidth:"full"}),dateTime:Ef({formats:lZ,defaultWidth:"full"})},fZ={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},pZ=(e,t,r,n)=>fZ[e];function fa(e){return(t,r)=>{const n=r?.context?String(r.context):"standalone";let o;if(n==="formatting"&&e.formattingValues){const c=e.defaultFormattingWidth||e.defaultWidth,s=r?.width?String(r.width):c;o=e.formattingValues[s]||e.formattingValues[c]}else{const c=e.defaultWidth,s=r?.width?String(r.width):e.defaultWidth;o=e.values[s]||e.values[c]}const a=e.argumentCallback?e.argumentCallback(t):t;return o[a]}}const mZ={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},vZ={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},hZ={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},gZ={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},yZ={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},bZ={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},wZ=(e,t)=>{const r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},xZ={ordinalNumber:wZ,era:fa({values:mZ,defaultWidth:"wide"}),quarter:fa({values:vZ,defaultWidth:"wide",argumentCallback:e=>e-1}),month:fa({values:hZ,defaultWidth:"wide"}),day:fa({values:gZ,defaultWidth:"wide"}),dayPeriod:fa({values:yZ,defaultWidth:"wide",formattingValues:bZ,defaultFormattingWidth:"wide"})};function pa(e){return(t,r={})=>{const n=r.width,o=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;const c=a[0],s=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],m=Array.isArray(s)?kZ(s,p=>p.test(c)):EZ(s,p=>p.test(c));let f;f=e.valueCallback?e.valueCallback(m):m,f=r.valueCallback?r.valueCallback(f):f;const l=t.slice(c.length);return{value:f,rest:l}}}function EZ(e,t){for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}function kZ(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r}function SZ(e){return(t,r={})=>{const n=t.match(e.matchPattern);if(!n)return null;const o=n[0],a=t.match(e.parsePattern);if(!a)return null;let c=e.valueCallback?e.valueCallback(a[0]):a[0];c=r.valueCallback?r.valueCallback(c):c;const s=t.slice(o.length);return{value:c,rest:s}}}const CZ=/^(\d+)(th|st|nd|rd)?/i,RZ=/\d+/i,OZ={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},NZ={any:[/^b/i,/^(a|c)/i]},_Z={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},TZ={any:[/1/i,/2/i,/3/i,/4/i]},DZ={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},jZ={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},PZ={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},MZ={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},AZ={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},IZ={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},LZ={ordinalNumber:SZ({matchPattern:CZ,parsePattern:RZ,valueCallback:e=>parseInt(e,10)}),era:pa({matchPatterns:OZ,defaultMatchWidth:"wide",parsePatterns:NZ,defaultParseWidth:"any"}),quarter:pa({matchPatterns:_Z,defaultMatchWidth:"wide",parsePatterns:TZ,defaultParseWidth:"any",valueCallback:e=>e+1}),month:pa({matchPatterns:DZ,defaultMatchWidth:"wide",parsePatterns:jZ,defaultParseWidth:"any"}),day:pa({matchPatterns:PZ,defaultMatchWidth:"wide",parsePatterns:MZ,defaultParseWidth:"any"}),dayPeriod:pa({matchPatterns:AZ,defaultMatchWidth:"any",parsePatterns:IZ,defaultParseWidth:"any"})},yR={code:"en-US",formatDistance:iZ,formatLong:dZ,formatRelative:pZ,localize:xZ,match:LZ,options:{weekStartsOn:0,firstWeekContainsDate:1}};P.createContext({locale:void 0});ae.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});function FZ(e,t,r="long"){return new Intl.DateTimeFormat("en-US",{hour:"numeric",timeZone:e,timeZoneName:r}).format(t).split(/\s/g).slice(2).join(" ")}const WZ={},ma={};function Ir(e,t){try{const r=(WZ[e]||=new Intl.DateTimeFormat("en-US",{timeZone:e,timeZoneName:"longOffset"}).format)(t).split("GMT")[1];return r in ma?ma[r]:rw(r,r.split(":"))}catch{if(e in ma)return ma[e];const r=e?.match($Z);return r?rw(e,r.slice(1)):NaN}}const $Z=/([+-]\d\d):?(\d\d)?/;function rw(e,t){const r=+(t[0]||0),n=+(t[1]||0),o=+(t[2]||0)/60;return ma[e]=r*60+n>0?r*60+n+o:r*60-n-o}class ht extends Date{constructor(...t){super(),t.length>1&&typeof t[t.length-1]=="string"&&(this.timeZone=t.pop()),this.internal=new Date,isNaN(Ir(this.timeZone,this))?this.setTime(NaN):t.length?typeof t[0]=="number"&&(t.length===1||t.length===2&&typeof t[1]!="number")?this.setTime(t[0]):typeof t[0]=="string"?this.setTime(+new Date(t[0])):t[0]instanceof Date?this.setTime(+t[0]):(this.setTime(+new Date(...t)),bR(this),Tp(this)):this.setTime(Date.now())}static tz(t,...r){return r.length?new ht(...r,t):new ht(Date.now(),t)}withTimeZone(t){return new ht(+this,t)}getTimezoneOffset(){const t=-Ir(this.timeZone,this);return t>0?Math.floor(t):Math.ceil(t)}setTime(t){return Date.prototype.setTime.apply(this,arguments),Tp(this),+this}[Symbol.for("constructDateFrom")](t){return new ht(+new Date(t),this.timeZone)}}const nw=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!nw.test(e))return;const t=e.replace(nw,"$1UTC");ht.prototype[t]&&(e.startsWith("get")?ht.prototype[e]=function(){return this.internal[t]()}:(ht.prototype[e]=function(){return Date.prototype[t].apply(this.internal,arguments),zZ(this),+this},ht.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),Tp(this),+this}))});function Tp(e){e.internal.setTime(+e),e.internal.setUTCSeconds(e.internal.getUTCSeconds()-Math.round(-Ir(e.timeZone,e)*60))}function zZ(e){Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),bR(e)}function bR(e){const t=Ir(e.timeZone,e),r=t>0?Math.floor(t):Math.ceil(t),n=new Date(+e);n.setUTCHours(n.getUTCHours()-1);const o=-new Date(+e).getTimezoneOffset(),a=-new Date(+n).getTimezoneOffset(),c=o-a,s=Date.prototype.getHours.apply(e)!==e.internal.getUTCHours();c&&s&&e.internal.setUTCMinutes(e.internal.getUTCMinutes()+c);const m=o-r;m&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+m);const f=new Date(+e);f.setUTCSeconds(0);const l=o>0?f.getSeconds():(f.getSeconds()-60)%60,p=Math.round(-(Ir(e.timeZone,e)*60))%60;(p||l)&&(e.internal.setUTCSeconds(e.internal.getUTCSeconds()+p),Date.prototype.setUTCSeconds.call(e,Date.prototype.getUTCSeconds.call(e)+p+l));const v=Ir(e.timeZone,e),g=v>0?Math.floor(v):Math.ceil(v),E=-new Date(+e).getTimezoneOffset()-g,u=g!==r,h=E-m;if(u&&h){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+h);const y=Ir(e.timeZone,e),b=y>0?Math.floor(y):Math.ceil(y),w=g-b;w&&(e.internal.setUTCMinutes(e.internal.getUTCMinutes()+w),Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+w))}}class Lr extends ht{static tz(t,...r){return r.length?new Lr(...r,t):new Lr(Date.now(),t)}toISOString(){const[t,r,n]=this.tzComponents(),o=`${t}${r}:${n}`;return this.internal.toISOString().slice(0,-1)+o}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){const[t,r,n,o]=this.internal.toUTCString().split(" ");return`${t?.slice(0,-1)} ${n} ${r} ${o}`}toTimeString(){const t=this.internal.toUTCString().split(" ")[4],[r,n,o]=this.tzComponents();return`${t} GMT${r}${n}${o} (${FZ(this.timeZone,this)})`}toLocaleString(t,r){return Date.prototype.toLocaleString.call(this,t,{...r,timeZone:r?.timeZone||this.timeZone})}toLocaleDateString(t,r){return Date.prototype.toLocaleDateString.call(this,t,{...r,timeZone:r?.timeZone||this.timeZone})}toLocaleTimeString(t,r){return Date.prototype.toLocaleTimeString.call(this,t,{...r,timeZone:r?.timeZone||this.timeZone})}tzComponents(){const t=this.getTimezoneOffset(),r=t>0?"-":"+",n=String(Math.floor(Math.abs(t)/60)).padStart(2,"0"),o=String(Math.abs(t)%60).padStart(2,"0");return[r,n,o]}withTimeZone(t){return new Lr(+this,t)}[Symbol.for("constructDateFrom")](t){return new Lr(+new Date(t),this.timeZone)}}const wR=6048e5,UZ=864e5,ow=Symbol.for("constructDateFrom");function ye(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&ow in e?e[ow](t):e instanceof Date?new e.constructor(t):new Date(t)}function ge(e,t){return ye(t||e,e)}function xR(e,t,r){const n=ge(e,r?.in);return isNaN(t)?ye(e,NaN):(t&&n.setDate(n.getDate()+t),n)}function ER(e,t,r){const n=ge(e,r?.in);if(isNaN(t))return ye(e,NaN);if(!t)return n;const o=n.getDate(),a=ye(e,n.getTime());a.setMonth(n.getMonth()+t+1,0);const c=a.getDate();return o>=c?a:(n.setFullYear(a.getFullYear(),a.getMonth(),o),n)}let YZ={};function La(){return YZ}function Uo(e,t){const r=La(),n=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,o=ge(e,t?.in),a=o.getDay(),c=(a<n?7:0)+a-n;return o.setDate(o.getDate()-c),o.setHours(0,0,0,0),o}function ja(e,t){return Uo(e,{...t,weekStartsOn:1})}function kR(e,t){const r=ge(e,t?.in),n=r.getFullYear(),o=ye(r,0);o.setFullYear(n+1,0,4),o.setHours(0,0,0,0);const a=ja(o),c=ye(r,0);c.setFullYear(n,0,4),c.setHours(0,0,0,0);const s=ja(c);return r.getTime()>=a.getTime()?n+1:r.getTime()>=s.getTime()?n:n-1}function aw(e){const t=ge(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}function Ho(e,...t){const r=ye.bind(null,t.find(n=>typeof n=="object"));return t.map(r)}function Pa(e,t){const r=ge(e,t?.in);return r.setHours(0,0,0,0),r}function SR(e,t,r){const[n,o]=Ho(r?.in,e,t),a=Pa(n),c=Pa(o),s=+a-aw(a),m=+c-aw(c);return Math.round((s-m)/UZ)}function BZ(e,t){const r=kR(e,t),n=ye(e,0);return n.setFullYear(r,0,4),n.setHours(0,0,0,0),ja(n)}function KZ(e,t,r){return xR(e,t*7,r)}function XZ(e,t,r){return ER(e,t*12,r)}function HZ(e,t){let r,n=t?.in;return e.forEach(o=>{!n&&typeof o=="object"&&(n=ye.bind(null,o));const a=ge(o,n);(!r||r<a||isNaN(+a))&&(r=a)}),ye(n,r||NaN)}function VZ(e,t){let r,n=t?.in;return e.forEach(o=>{!n&&typeof o=="object"&&(n=ye.bind(null,o));const a=ge(o,n);(!r||r>a||isNaN(+a))&&(r=a)}),ye(n,r||NaN)}function qZ(e,t,r){const[n,o]=Ho(r?.in,e,t);return+Pa(n)==+Pa(o)}function CR(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function ZZ(e){return!(!CR(e)&&typeof e!="number"||isNaN(+ge(e)))}function GZ(e,t,r){const[n,o]=Ho(r?.in,e,t),a=n.getFullYear()-o.getFullYear(),c=n.getMonth()-o.getMonth();return a*12+c}function JZ(e,t){const r=ge(e,t?.in),n=r.getMonth();return r.setFullYear(r.getFullYear(),n+1,0),r.setHours(23,59,59,999),r}function QZ(e,t){const[r,n]=Ho(e,t.start,t.end);return{start:r,end:n}}function eG(e,t){const{start:r,end:n}=QZ(t?.in,e);let o=+r>+n;const a=o?+r:+n,c=o?n:r;c.setHours(0,0,0,0),c.setDate(1);let s=1;const m=[];for(;+c<=a;)m.push(ye(r,c)),c.setMonth(c.getMonth()+s);return o?m.reverse():m}function tG(e,t){const r=ge(e,t?.in);return r.setDate(1),r.setHours(0,0,0,0),r}function rG(e,t){const r=ge(e,t?.in),n=r.getFullYear();return r.setFullYear(n+1,0,0),r.setHours(23,59,59,999),r}function RR(e,t){const r=ge(e,t?.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}function OR(e,t){const r=La(),n=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,o=ge(e,t?.in),a=o.getDay(),c=(a<n?-7:0)+6-(a-n);return o.setDate(o.getDate()+c),o.setHours(23,59,59,999),o}function nG(e,t){return OR(e,{...t,weekStartsOn:1})}function oG(e,t){const r=ge(e,t?.in);return SR(r,RR(r))+1}function NR(e,t){const r=ge(e,t?.in),n=+ja(r)-+BZ(r);return Math.round(n/wR)+1}function _R(e,t){const r=ge(e,t?.in),n=r.getFullYear(),o=La(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,c=ye(t?.in||e,0);c.setFullYear(n+1,0,a),c.setHours(0,0,0,0);const s=Uo(c,t),m=ye(t?.in||e,0);m.setFullYear(n,0,a),m.setHours(0,0,0,0);const f=Uo(m,t);return+r>=+s?n+1:+r>=+f?n:n-1}function aG(e,t){const r=La(),n=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,o=_R(e,t),a=ye(t?.in||e,0);return a.setFullYear(o,0,n),a.setHours(0,0,0,0),Uo(a,t)}function TR(e,t){const r=ge(e,t?.in),n=+Uo(r,t)-+aG(r,t);return Math.round(n/wR)+1}function ie(e,t){const r=e<0?"-":"",n=Math.abs(e).toString().padStart(t,"0");return r+n}const or={y(e,t){const r=e.getFullYear(),n=r>0?r:1-r;return ie(t==="yy"?n%100:n,t.length)},M(e,t){const r=e.getMonth();return t==="M"?String(r+1):ie(r+1,2)},d(e,t){return ie(e.getDate(),t.length)},a(e,t){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h(e,t){return ie(e.getHours()%12||12,t.length)},H(e,t){return ie(e.getHours(),t.length)},m(e,t){return ie(e.getMinutes(),t.length)},s(e,t){return ie(e.getSeconds(),t.length)},S(e,t){const r=t.length,n=e.getMilliseconds(),o=Math.trunc(n*Math.pow(10,r-3));return ie(o,t.length)}},uo={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},sw={G:function(e,t,r){const n=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});case"GGGG":default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){const n=e.getFullYear(),o=n>0?n:1-n;return r.ordinalNumber(o,{unit:"year"})}return or.y(e,t)},Y:function(e,t,r,n){const o=_R(e,n),a=o>0?o:1-o;if(t==="YY"){const c=a%100;return ie(c,2)}return t==="Yo"?r.ordinalNumber(a,{unit:"year"}):ie(a,t.length)},R:function(e,t){const r=kR(e);return ie(r,t.length)},u:function(e,t){const r=e.getFullYear();return ie(r,t.length)},Q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return ie(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return ie(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){const n=e.getMonth();switch(t){case"M":case"MM":return or.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){const n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return ie(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){const o=TR(e,n);return t==="wo"?r.ordinalNumber(o,{unit:"week"}):ie(o,t.length)},I:function(e,t,r){const n=NR(e);return t==="Io"?r.ordinalNumber(n,{unit:"week"}):ie(n,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getDate(),{unit:"date"}):or.d(e,t)},D:function(e,t,r){const n=oG(e);return t==="Do"?r.ordinalNumber(n,{unit:"dayOfYear"}):ie(n,t.length)},E:function(e,t,r){const n=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});case"EEEE":default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){const o=e.getDay(),a=(o-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return ie(a,2);case"eo":return r.ordinalNumber(a,{unit:"day"});case"eee":return r.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(o,{width:"short",context:"formatting"});case"eeee":default:return r.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){const o=e.getDay(),a=(o-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return ie(a,t.length);case"co":return r.ordinalNumber(a,{unit:"day"});case"ccc":return r.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(o,{width:"narrow",context:"standalone"});case"cccccc":return r.day(o,{width:"short",context:"standalone"});case"cccc":default:return r.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,r){const n=e.getDay(),o=n===0?7:n;switch(t){case"i":return String(o);case"ii":return ie(o,t.length);case"io":return r.ordinalNumber(o,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});case"iiii":default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(e,t,r){const n=e.getHours();let o;switch(n===12?o=uo.noon:n===0?o=uo.midnight:o=n/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,r){const n=e.getHours();let o;switch(n>=17?o=uo.evening:n>=12?o=uo.afternoon:n>=4?o=uo.morning:o=uo.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){let n=e.getHours()%12;return n===0&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return or.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getHours(),{unit:"hour"}):or.H(e,t)},K:function(e,t,r){const n=e.getHours()%12;return t==="Ko"?r.ordinalNumber(n,{unit:"hour"}):ie(n,t.length)},k:function(e,t,r){let n=e.getHours();return n===0&&(n=24),t==="ko"?r.ordinalNumber(n,{unit:"hour"}):ie(n,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):or.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getSeconds(),{unit:"second"}):or.s(e,t)},S:function(e,t){return or.S(e,t)},X:function(e,t,r){const n=e.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return cw(n);case"XXXX":case"XX":return Ar(n);case"XXXXX":case"XXX":default:return Ar(n,":")}},x:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"x":return cw(n);case"xxxx":case"xx":return Ar(n);case"xxxxx":case"xxx":default:return Ar(n,":")}},O:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+iw(n,":");case"OOOO":default:return"GMT"+Ar(n,":")}},z:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+iw(n,":");case"zzzz":default:return"GMT"+Ar(n,":")}},t:function(e,t,r){const n=Math.trunc(+e/1e3);return ie(n,t.length)},T:function(e,t,r){return ie(+e,t.length)}};function iw(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),o=Math.trunc(n/60),a=n%60;return a===0?r+String(o):r+String(o)+t+ie(a,2)}function cw(e,t){return e%60===0?(e>0?"-":"+")+ie(Math.abs(e)/60,2):Ar(e,t)}function Ar(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),o=ie(Math.trunc(n/60),2),a=ie(n%60,2);return r+o+t+a}const uw=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},DR=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},sG=(e,t)=>{const r=e.match(/(P+)(p+)?/)||[],n=r[1],o=r[2];if(!o)return uw(e,t);let a;switch(n){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;case"PPPP":default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",uw(n,t)).replace("{{time}}",DR(o,t))},iG={p:DR,P:sG},cG=/^D+$/,uG=/^Y+$/,lG=["D","DD","YY","YYYY"];function dG(e){return cG.test(e)}function fG(e){return uG.test(e)}function pG(e,t,r){const n=mG(e,t,r);if(console.warn(n),lG.includes(e))throw new RangeError(n)}function mG(e,t,r){const n=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const vG=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,hG=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,gG=/^'([^]*?)'?$/,yG=/''/g,bG=/[a-zA-Z]/;function wG(e,t,r){const n=La(),o=r?.locale??n.locale??yR,a=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,c=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,s=ge(e,r?.in);if(!ZZ(s))throw new RangeError("Invalid time value");let m=t.match(hG).map(l=>{const p=l[0];if(p==="p"||p==="P"){const v=iG[p];return v(l,o.formatLong)}return l}).join("").match(vG).map(l=>{if(l==="''")return{isToken:!1,value:"'"};const p=l[0];if(p==="'")return{isToken:!1,value:xG(l)};if(sw[p])return{isToken:!0,value:l};if(p.match(bG))throw new RangeError("Format string contains an unescaped latin alphabet character `"+p+"`");return{isToken:!1,value:l}});o.localize.preprocessor&&(m=o.localize.preprocessor(s,m));const f={firstWeekContainsDate:a,weekStartsOn:c,locale:o};return m.map(l=>{if(!l.isToken)return l.value;const p=l.value;(!r?.useAdditionalWeekYearTokens&&fG(p)||!r?.useAdditionalDayOfYearTokens&&dG(p))&&pG(p,t,String(e));const v=sw[p[0]];return v(s,p,o.localize,f)}).join("")}function xG(e){const t=e.match(gG);return t?t[1].replace(yG,"'"):e}function EG(e,t){const r=ge(e,t?.in),n=r.getFullYear(),o=r.getMonth(),a=ye(r,0);return a.setFullYear(n,o+1,0),a.setHours(0,0,0,0),a.getDate()}function kG(e,t){return ge(e,t?.in).getMonth()}function SG(e,t){return ge(e,t?.in).getFullYear()}function CG(e,t){return+ge(e)>+ge(t)}function RG(e,t){return+ge(e)<+ge(t)}function OG(e,t,r){const[n,o]=Ho(r?.in,e,t);return n.getFullYear()===o.getFullYear()&&n.getMonth()===o.getMonth()}function NG(e,t,r){const[n,o]=Ho(r?.in,e,t);return n.getFullYear()===o.getFullYear()}function _G(e,t,r){const n=ge(e,r?.in),o=n.getFullYear(),a=n.getDate(),c=ye(e,0);c.setFullYear(o,t,15),c.setHours(0,0,0,0);const s=EG(c);return n.setMonth(t,Math.min(a,s)),n}function TG(e,t,r){const n=ge(e,r?.in);return isNaN(+n)?ye(e,NaN):(n.setFullYear(t),n)}const lw=5,DG=4;function jG(e,t){const r=t.startOfMonth(e),n=r.getDay()>0?r.getDay():7,o=t.addDays(e,-n+1),a=t.addDays(o,lw*7-1);return t.getMonth(e)===t.getMonth(a)?lw:DG}function jR(e,t){const r=t.startOfMonth(e),n=r.getDay();return n===1?r:n===0?t.addDays(r,-6):t.addDays(r,-1*(n-1))}function PG(e,t){const r=jR(e,t),n=jG(e,t);return t.addDays(r,n*7-1)}class Ma{constructor(t,r){this.Date=Date,this.today=()=>this.overrides?.today?this.overrides.today():this.options.timeZone?Lr.tz(this.options.timeZone):new this.Date,this.newDate=(n,o,a)=>this.overrides?.newDate?this.overrides.newDate(n,o,a):this.options.timeZone?new Lr(n,o,a,this.options.timeZone):new Date(n,o,a),this.addDays=(n,o)=>this.overrides?.addDays?this.overrides.addDays(n,o):xR(n,o),this.addMonths=(n,o)=>this.overrides?.addMonths?this.overrides.addMonths(n,o):ER(n,o),this.addWeeks=(n,o)=>this.overrides?.addWeeks?this.overrides.addWeeks(n,o):KZ(n,o),this.addYears=(n,o)=>this.overrides?.addYears?this.overrides.addYears(n,o):XZ(n,o),this.differenceInCalendarDays=(n,o)=>this.overrides?.differenceInCalendarDays?this.overrides.differenceInCalendarDays(n,o):SR(n,o),this.differenceInCalendarMonths=(n,o)=>this.overrides?.differenceInCalendarMonths?this.overrides.differenceInCalendarMonths(n,o):GZ(n,o),this.eachMonthOfInterval=n=>this.overrides?.eachMonthOfInterval?this.overrides.eachMonthOfInterval(n):eG(n),this.endOfBroadcastWeek=n=>this.overrides?.endOfBroadcastWeek?this.overrides.endOfBroadcastWeek(n):PG(n,this),this.endOfISOWeek=n=>this.overrides?.endOfISOWeek?this.overrides.endOfISOWeek(n):nG(n),this.endOfMonth=n=>this.overrides?.endOfMonth?this.overrides.endOfMonth(n):JZ(n),this.endOfWeek=(n,o)=>this.overrides?.endOfWeek?this.overrides.endOfWeek(n,o):OR(n,this.options),this.endOfYear=n=>this.overrides?.endOfYear?this.overrides.endOfYear(n):rG(n),this.format=(n,o,a)=>{const c=this.overrides?.format?this.overrides.format(n,o,this.options):wG(n,o,this.options);return this.options.numerals&&this.options.numerals!=="latn"?this.replaceDigits(c):c},this.getISOWeek=n=>this.overrides?.getISOWeek?this.overrides.getISOWeek(n):NR(n),this.getMonth=(n,o)=>this.overrides?.getMonth?this.overrides.getMonth(n,this.options):kG(n,this.options),this.getYear=(n,o)=>this.overrides?.getYear?this.overrides.getYear(n,this.options):SG(n,this.options),this.getWeek=(n,o)=>this.overrides?.getWeek?this.overrides.getWeek(n,this.options):TR(n,this.options),this.isAfter=(n,o)=>this.overrides?.isAfter?this.overrides.isAfter(n,o):CG(n,o),this.isBefore=(n,o)=>this.overrides?.isBefore?this.overrides.isBefore(n,o):RG(n,o),this.isDate=n=>this.overrides?.isDate?this.overrides.isDate(n):CR(n),this.isSameDay=(n,o)=>this.overrides?.isSameDay?this.overrides.isSameDay(n,o):qZ(n,o),this.isSameMonth=(n,o)=>this.overrides?.isSameMonth?this.overrides.isSameMonth(n,o):OG(n,o),this.isSameYear=(n,o)=>this.overrides?.isSameYear?this.overrides.isSameYear(n,o):NG(n,o),this.max=n=>this.overrides?.max?this.overrides.max(n):HZ(n),this.min=n=>this.overrides?.min?this.overrides.min(n):VZ(n),this.setMonth=(n,o)=>this.overrides?.setMonth?this.overrides.setMonth(n,o):_G(n,o),this.setYear=(n,o)=>this.overrides?.setYear?this.overrides.setYear(n,o):TG(n,o),this.startOfBroadcastWeek=(n,o)=>this.overrides?.startOfBroadcastWeek?this.overrides.startOfBroadcastWeek(n,this):jR(n,this),this.startOfDay=n=>this.overrides?.startOfDay?this.overrides.startOfDay(n):Pa(n),this.startOfISOWeek=n=>this.overrides?.startOfISOWeek?this.overrides.startOfISOWeek(n):ja(n),this.startOfMonth=n=>this.overrides?.startOfMonth?this.overrides.startOfMonth(n):tG(n),this.startOfWeek=(n,o)=>this.overrides?.startOfWeek?this.overrides.startOfWeek(n,this.options):Uo(n,this.options),this.startOfYear=n=>this.overrides?.startOfYear?this.overrides.startOfYear(n):RR(n),this.options={locale:yR,...t},this.overrides=r}getDigitMap(){const{numerals:t="latn"}=this.options,r=new Intl.NumberFormat("en-US",{numberingSystem:t}),n={};for(let o=0;o<10;o++)n[o.toString()]=r.format(o);return n}replaceDigits(t){const r=this.getDigitMap();return t.replace(/\d/g,n=>r[n]||n)}formatNumber(t){return this.replaceDigits(t.toString())}getMonthYearOrder(){const t=this.options.locale?.code;return t&&Ma.yearFirstLocales.has(t)?"year-first":"month-first"}formatMonthYear(t){const{locale:r,timeZone:n,numerals:o}=this.options,a=r?.code;if(a&&Ma.yearFirstLocales.has(a))try{return new Intl.DateTimeFormat(a,{month:"long",year:"numeric",timeZone:n,numberingSystem:o}).format(t)}catch{}const c=this.getMonthYearOrder()==="year-first"?"y LLLL":"LLLL y";return this.format(t,c)}}Ma.yearFirstLocales=new Set(["eu","hu","ja","ja-Hira","ja-JP","ko","ko-KR","lt","lt-LT","lv","lv-LV","mn","mn-MN","zh","zh-CN","zh-HK","zh-TW"]);new Ma;var dw;(function(e){e.Root="root",e.Chevron="chevron",e.Day="day",e.DayButton="day_button",e.CaptionLabel="caption_label",e.Dropdowns="dropdowns",e.Dropdown="dropdown",e.DropdownRoot="dropdown_root",e.Footer="footer",e.MonthGrid="month_grid",e.MonthCaption="month_caption",e.MonthsDropdown="months_dropdown",e.Month="month",e.Months="months",e.Nav="nav",e.NextMonthButton="button_next",e.PreviousMonthButton="button_previous",e.Week="week",e.Weeks="weeks",e.Weekday="weekday",e.Weekdays="weekdays",e.WeekNumber="week_number",e.WeekNumberHeader="week_number_header",e.YearsDropdown="years_dropdown"})(dw||(dw={}));var fw;(function(e){e.disabled="disabled",e.hidden="hidden",e.outside="outside",e.focused="focused",e.today="today"})(fw||(fw={}));var pw;(function(e){e.range_end="range_end",e.range_middle="range_middle",e.range_start="range_start",e.selected="selected"})(pw||(pw={}));var mw;(function(e){e.weeks_before_enter="weeks_before_enter",e.weeks_before_exit="weeks_before_exit",e.weeks_after_enter="weeks_after_enter",e.weeks_after_exit="weeks_after_exit",e.caption_after_enter="caption_after_enter",e.caption_after_exit="caption_after_exit",e.caption_before_enter="caption_before_enter",e.caption_before_exit="caption_before_exit"})(mw||(mw={}));P.createContext(void 0);var vw;(function(e){e[e.Today=0]="Today",e[e.Selected=1]="Selected",e[e.LastFocused=2]="LastFocused",e[e.FocusedModifier=3]="FocusedModifier"})(vw||(vw={}));function Dr(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),r===!1||!n.defaultPrevented)return t?.(n)}}function hw(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function MG(...e){return t=>{let r=!1;const n=e.map(o=>{const a=hw(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():hw(e[o],null)}}}}function Mr(...e){return i.useCallback(MG(...e),e)}function PR(e,t=[]){let r=[];function n(a,c){const s=i.createContext(c),m=r.length;r=[...r,c];const f=p=>{const{scope:v,children:g,...E}=p,u=v?.[e]?.[m]||s,h=i.useMemo(()=>E,Object.values(E));return he.jsx(u.Provider,{value:h,children:g})};f.displayName=a+"Provider";function l(p,v){const g=v?.[e]?.[m]||s,E=i.useContext(g);if(E)return E;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[f,l]}const o=()=>{const a=r.map(c=>i.createContext(c));return function(c){const s=c?.[e]||a;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:s}}),[c,s])}};return o.scopeName=e,[n,AG(o,...t)]}function AG(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(o){const a=n.reduce((c,{useScope:s,scopeName:m})=>{const f=s(o)[`__scope${m}`];return{...c,...f}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}var IG=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],nr=IG.reduce((e,t)=>{const r=q.createSlot(`Primitive.${t}`),n=i.forwardRef((o,a)=>{const{asChild:c,...s}=o,m=c?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),he.jsx(m,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function LG(e,t){e&&we.flushSync(()=>e.dispatchEvent(t))}function Yo(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...r)=>t.current?.(...r),[])}function FG(e,t=globalThis?.document){const r=Yo(e);i.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var WG="DismissableLayer",Dp="dismissableLayer.update",$G="dismissableLayer.pointerDownOutside",zG="dismissableLayer.focusOutside",gw,MR=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),AR=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:c,onDismiss:s,...m}=e,f=i.useContext(MR),[l,p]=i.useState(null),v=l?.ownerDocument??globalThis?.document,[,g]=i.useState({}),E=Mr(t,S=>p(S)),u=Array.from(f.layers),[h]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),y=u.indexOf(h),b=l?u.indexOf(l):-1,w=f.layersWithOutsidePointerEventsDisabled.size>0,k=b>=y,C=BG(S=>{const R=S.target,D=[...f.branches].some(L=>L.contains(R));!k||D||(o?.(S),c?.(S),S.defaultPrevented||s?.())},v),N=KG(S=>{const R=S.target;[...f.branches].some(D=>D.contains(R))||(a?.(S),c?.(S),S.defaultPrevented||s?.())},v);return FG(S=>{b===f.layers.size-1&&(n?.(S),!S.defaultPrevented&&s&&(S.preventDefault(),s()))},v),i.useEffect(()=>{if(l)return r&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(gw=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(l)),f.layers.add(l),yw(),()=>{r&&f.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=gw)}},[l,v,r,f]),i.useEffect(()=>()=>{l&&(f.layers.delete(l),f.layersWithOutsidePointerEventsDisabled.delete(l),yw())},[l,f]),i.useEffect(()=>{const S=()=>g({});return document.addEventListener(Dp,S),()=>document.removeEventListener(Dp,S)},[]),he.jsx(nr.div,{...m,ref:E,style:{pointerEvents:w?k?"auto":"none":void 0,...e.style},onFocusCapture:Dr(e.onFocusCapture,N.onFocusCapture),onBlurCapture:Dr(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:Dr(e.onPointerDownCapture,C.onPointerDownCapture)})});AR.displayName=WG;var UG="DismissableLayerBranch",YG=i.forwardRef((e,t)=>{const r=i.useContext(MR),n=i.useRef(null),o=Mr(t,n);return i.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),he.jsx(nr.div,{...e,ref:o})});YG.displayName=UG;function BG(e,t=globalThis?.document){const r=Yo(e),n=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let m=function(){IR($G,r,f,{discrete:!0})};const f={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=m,t.addEventListener("click",o.current,{once:!0})):m()}else t.removeEventListener("click",o.current);n.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function KG(e,t=globalThis?.document){const r=Yo(e),n=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!n.current&&IR(zG,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function yw(){const e=new CustomEvent(Dp);document.dispatchEvent(e)}function IR(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?LG(o,a):o.dispatchEvent(a)}var kf=0;function XG(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??bw()),document.body.insertAdjacentElement("beforeend",e[1]??bw()),kf++,()=>{kf===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),kf--}},[])}function bw(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Sf="focusScope.autoFocusOnMount",Cf="focusScope.autoFocusOnUnmount",ww={bubbles:!1,cancelable:!0},HG="FocusScope",LR=i.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...c}=e,[s,m]=i.useState(null),f=Yo(o),l=Yo(a),p=i.useRef(null),v=Mr(t,u=>m(u)),g=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(n){let u=function(w){if(g.paused||!s)return;const k=w.target;s.contains(k)?p.current=k:Er(p.current,{select:!0})},h=function(w){if(g.paused||!s)return;const k=w.relatedTarget;k!==null&&(s.contains(k)||Er(p.current,{select:!0}))},y=function(w){if(document.activeElement===document.body)for(const k of w)k.removedNodes.length>0&&Er(s)};document.addEventListener("focusin",u),document.addEventListener("focusout",h);const b=new MutationObserver(y);return s&&b.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",u),document.removeEventListener("focusout",h),b.disconnect()}}},[n,s,g.paused]),i.useEffect(()=>{if(s){Ew.add(g);const u=document.activeElement;if(!s.contains(u)){const h=new CustomEvent(Sf,ww);s.addEventListener(Sf,f),s.dispatchEvent(h),h.defaultPrevented||(VG(QG(FR(s)),{select:!0}),document.activeElement===u&&Er(s))}return()=>{s.removeEventListener(Sf,f),setTimeout(()=>{const h=new CustomEvent(Cf,ww);s.addEventListener(Cf,l),s.dispatchEvent(h),h.defaultPrevented||Er(u??document.body,{select:!0}),s.removeEventListener(Cf,l),Ew.remove(g)},0)}}},[s,f,l,g]);const E=i.useCallback(u=>{if(!r&&!n||g.paused)return;const h=u.key==="Tab"&&!u.altKey&&!u.ctrlKey&&!u.metaKey,y=document.activeElement;if(h&&y){const b=u.currentTarget,[w,k]=qG(b);w&&k?!u.shiftKey&&y===k?(u.preventDefault(),r&&Er(w,{select:!0})):u.shiftKey&&y===w&&(u.preventDefault(),r&&Er(k,{select:!0})):y===b&&u.preventDefault()}},[r,n,g.paused]);return he.jsx(nr.div,{tabIndex:-1,...c,ref:v,onKeyDown:E})});LR.displayName=HG;function VG(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(Er(n,{select:t}),document.activeElement!==r)return}function qG(e){const t=FR(e),r=xw(t,e),n=xw(t.reverse(),e);return[r,n]}function FR(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function xw(e,t){for(const r of e)if(!ZG(r,{upTo:t}))return r}function ZG(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function GG(e){return e instanceof HTMLInputElement&&"select"in e}function Er(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&GG(e)&&t&&e.select()}}var Ew=JG();function JG(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=kw(e,t),e.unshift(t)},remove(t){e=kw(e,t),e[0]?.resume()}}}function kw(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function QG(e){return e.filter(t=>t.tagName!=="A")}var Bo=globalThis?.document?i.useLayoutEffect:()=>{};const e7=["top","right","bottom","left"],jr=Math.min,We=Math.max,Vc=Math.round,Ui=Math.floor,yt=e=>({x:e,y:e}),t7={left:"right",right:"left",bottom:"top",top:"bottom"},r7={start:"end",end:"start"};function jp(e,t,r){return We(e,jr(t,r))}function Ht(e,t){return typeof e=="function"?e(t):e}function Vt(e){return e.split("-")[0]}function Vo(e){return e.split("-")[1]}function zm(e){return e==="x"?"y":"x"}function Um(e){return e==="y"?"height":"width"}const n7=new Set(["top","bottom"]);function gt(e){return n7.has(Vt(e))?"y":"x"}function Ym(e){return zm(gt(e))}function o7(e,t,r){r===void 0&&(r=!1);const n=Vo(e),o=Ym(e),a=Um(o);let c=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(c=qc(c)),[c,qc(c)]}function a7(e){const t=qc(e);return[Pp(e),t,Pp(t)]}function Pp(e){return e.replace(/start|end/g,t=>r7[t])}const Sw=["left","right"],Cw=["right","left"],s7=["top","bottom"],i7=["bottom","top"];function c7(e,t,r){switch(e){case"top":case"bottom":return r?t?Cw:Sw:t?Sw:Cw;case"left":case"right":return t?s7:i7;default:return[]}}function u7(e,t,r,n){const o=Vo(e);let a=c7(Vt(e),r==="start",n);return o&&(a=a.map(c=>c+"-"+o),t&&(a=a.concat(a.map(Pp)))),a}function qc(e){return e.replace(/left|right|bottom|top/g,t=>t7[t])}function l7(e){return{top:0,right:0,bottom:0,left:0,...e}}function WR(e){return typeof e!="number"?l7(e):{top:e,right:e,bottom:e,left:e}}function Zc(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function Rw(e,t,r){let{reference:n,floating:o}=e;const a=gt(t),c=Ym(t),s=Um(c),m=Vt(t),f=a==="y",l=n.x+n.width/2-o.width/2,p=n.y+n.height/2-o.height/2,v=n[s]/2-o[s]/2;let g;switch(m){case"top":g={x:l,y:n.y-o.height};break;case"bottom":g={x:l,y:n.y+n.height};break;case"right":g={x:n.x+n.width,y:p};break;case"left":g={x:n.x-o.width,y:p};break;default:g={x:n.x,y:n.y}}switch(Vo(t)){case"start":g[c]-=v*(r&&f?-1:1);break;case"end":g[c]+=v*(r&&f?-1:1);break}return g}const d7=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:a=[],platform:c}=r,s=a.filter(Boolean),m=await(c.isRTL==null?void 0:c.isRTL(t));let f=await c.getElementRects({reference:e,floating:t,strategy:o}),{x:l,y:p}=Rw(f,n,m),v=n,g={},E=0;for(let u=0;u<s.length;u++){const{name:h,fn:y}=s[u],{x:b,y:w,data:k,reset:C}=await y({x:l,y:p,initialPlacement:n,placement:v,strategy:o,middlewareData:g,rects:f,platform:c,elements:{reference:e,floating:t}});l=b??l,p=w??p,g={...g,[h]:{...g[h],...k}},C&&E<=50&&(E++,typeof C=="object"&&(C.placement&&(v=C.placement),C.rects&&(f=C.rects===!0?await c.getElementRects({reference:e,floating:t,strategy:o}):C.rects),{x:l,y:p}=Rw(f,v,m)),u=-1)}return{x:l,y:p,placement:v,strategy:o,middlewareData:g}};async function Aa(e,t){var r;t===void 0&&(t={});const{x:n,y:o,platform:a,rects:c,elements:s,strategy:m}=e,{boundary:f="clippingAncestors",rootBoundary:l="viewport",elementContext:p="floating",altBoundary:v=!1,padding:g=0}=Ht(t,e),E=WR(g),u=s[v?p==="floating"?"reference":"floating":p],h=Zc(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(u)))==null||r?u:u.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:f,rootBoundary:l,strategy:m})),y=p==="floating"?{x:n,y:o,width:c.floating.width,height:c.floating.height}:c.reference,b=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),w=await(a.isElement==null?void 0:a.isElement(b))?await(a.getScale==null?void 0:a.getScale(b))||{x:1,y:1}:{x:1,y:1},k=Zc(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:b,strategy:m}):y);return{top:(h.top-k.top+E.top)/w.y,bottom:(k.bottom-h.bottom+E.bottom)/w.y,left:(h.left-k.left+E.left)/w.x,right:(k.right-h.right+E.right)/w.x}}const f7=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:a,platform:c,elements:s,middlewareData:m}=t,{element:f,padding:l=0}=Ht(e,t)||{};if(f==null)return{};const p=WR(l),v={x:r,y:n},g=Ym(o),E=Um(g),u=await c.getDimensions(f),h=g==="y",y=h?"top":"left",b=h?"bottom":"right",w=h?"clientHeight":"clientWidth",k=a.reference[E]+a.reference[g]-v[g]-a.floating[E],C=v[g]-a.reference[g],N=await(c.getOffsetParent==null?void 0:c.getOffsetParent(f));let S=N?N[w]:0;(!S||!await(c.isElement==null?void 0:c.isElement(N)))&&(S=s.floating[w]||a.floating[E]);const R=k/2-C/2,D=S/2-u[E]/2-1,L=jr(p[y],D),I=jr(p[b],D),$=L,U=S-u[E]-I,W=S/2-u[E]/2+R,M=jp($,W,U),K=!m.arrow&&Vo(o)!=null&&W!==M&&a.reference[E]/2-(W<$?L:I)-u[E]/2<0,Y=K?W<$?W-$:W-U:0;return{[g]:v[g]+Y,data:{[g]:M,centerOffset:W-M-Y,...K&&{alignmentOffset:Y}},reset:K}}}),p7=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:a,rects:c,initialPlacement:s,platform:m,elements:f}=t,{mainAxis:l=!0,crossAxis:p=!0,fallbackPlacements:v,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:u=!0,...h}=Ht(e,t);if((r=a.arrow)!=null&&r.alignmentOffset)return{};const y=Vt(o),b=gt(s),w=Vt(s)===s,k=await(m.isRTL==null?void 0:m.isRTL(f.floating)),C=v||(w||!u?[qc(s)]:a7(s)),N=E!=="none";!v&&N&&C.push(...u7(s,u,E,k));const S=[s,...C],R=await Aa(t,h),D=[];let L=((n=a.flip)==null?void 0:n.overflows)||[];if(l&&D.push(R[y]),p){const W=o7(o,c,k);D.push(R[W[0]],R[W[1]])}if(L=[...L,{placement:o,overflows:D}],!D.every(W=>W<=0)){var I,$;const W=(((I=a.flip)==null?void 0:I.index)||0)+1,M=S[W];if(M&&(!(p==="alignment"&&b!==gt(M))||L.every(Y=>gt(Y.placement)===b?Y.overflows[0]>0:!0)))return{data:{index:W,overflows:L},reset:{placement:M}};let K=($=L.filter(Y=>Y.overflows[0]<=0).sort((Y,z)=>Y.overflows[1]-z.overflows[1])[0])==null?void 0:$.placement;if(!K)switch(g){case"bestFit":{var U;const Y=(U=L.filter(z=>{if(N){const V=gt(z.placement);return V===b||V==="y"}return!0}).map(z=>[z.placement,z.overflows.filter(V=>V>0).reduce((V,d)=>V+d,0)]).sort((z,V)=>z[1]-V[1])[0])==null?void 0:U[0];Y&&(K=Y);break}case"initialPlacement":K=s;break}if(o!==K)return{reset:{placement:K}}}return{}}}};function Ow(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Nw(e){return e7.some(t=>e[t]>=0)}const m7=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...o}=Ht(e,t);switch(n){case"referenceHidden":{const a=await Aa(t,{...o,elementContext:"reference"}),c=Ow(a,r.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:Nw(c)}}}case"escaped":{const a=await Aa(t,{...o,altBoundary:!0}),c=Ow(a,r.floating);return{data:{escapedOffsets:c,escaped:Nw(c)}}}default:return{}}}}},$R=new Set(["left","top"]);async function v7(e,t){const{placement:r,platform:n,elements:o}=e,a=await(n.isRTL==null?void 0:n.isRTL(o.floating)),c=Vt(r),s=Vo(r),m=gt(r)==="y",f=$R.has(c)?-1:1,l=a&&m?-1:1,p=Ht(t,e);let{mainAxis:v,crossAxis:g,alignmentAxis:E}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return s&&typeof E=="number"&&(g=s==="end"?E*-1:E),m?{x:g*l,y:v*f}:{x:v*f,y:g*l}}const h7=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:a,placement:c,middlewareData:s}=t,m=await v7(t,e);return c===((r=s.offset)==null?void 0:r.placement)&&(n=s.arrow)!=null&&n.alignmentOffset?{}:{x:o+m.x,y:a+m.y,data:{...m,placement:c}}}}},g7=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:a=!0,crossAxis:c=!1,limiter:s={fn:h=>{let{x:y,y:b}=h;return{x:y,y:b}}},...m}=Ht(e,t),f={x:r,y:n},l=await Aa(t,m),p=gt(Vt(o)),v=zm(p);let g=f[v],E=f[p];if(a){const h=v==="y"?"top":"left",y=v==="y"?"bottom":"right",b=g+l[h],w=g-l[y];g=jp(b,g,w)}if(c){const h=p==="y"?"top":"left",y=p==="y"?"bottom":"right",b=E+l[h],w=E-l[y];E=jp(b,E,w)}const u=s.fn({...t,[v]:g,[p]:E});return{...u,data:{x:u.x-r,y:u.y-n,enabled:{[v]:a,[p]:c}}}}}},y7=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:a,middlewareData:c}=t,{offset:s=0,mainAxis:m=!0,crossAxis:f=!0}=Ht(e,t),l={x:r,y:n},p=gt(o),v=zm(p);let g=l[v],E=l[p];const u=Ht(s,t),h=typeof u=="number"?{mainAxis:u,crossAxis:0}:{mainAxis:0,crossAxis:0,...u};if(m){const w=v==="y"?"height":"width",k=a.reference[v]-a.floating[w]+h.mainAxis,C=a.reference[v]+a.reference[w]-h.mainAxis;g<k?g=k:g>C&&(g=C)}if(f){var y,b;const w=v==="y"?"width":"height",k=$R.has(Vt(o)),C=a.reference[p]-a.floating[w]+(k&&((y=c.offset)==null?void 0:y[p])||0)+(k?0:h.crossAxis),N=a.reference[p]+a.reference[w]+(k?0:((b=c.offset)==null?void 0:b[p])||0)-(k?h.crossAxis:0);E<C?E=C:E>N&&(E=N)}return{[v]:g,[p]:E}}}},b7=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:a,platform:c,elements:s}=t,{apply:m=()=>{},...f}=Ht(e,t),l=await Aa(t,f),p=Vt(o),v=Vo(o),g=gt(o)==="y",{width:E,height:u}=a.floating;let h,y;p==="top"||p==="bottom"?(h=p,y=v===(await(c.isRTL==null?void 0:c.isRTL(s.floating))?"start":"end")?"left":"right"):(y=p,h=v==="end"?"top":"bottom");const b=u-l.top-l.bottom,w=E-l.left-l.right,k=jr(u-l[h],b),C=jr(E-l[y],w),N=!t.middlewareData.shift;let S=k,R=C;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(R=w),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(S=b),N&&!v){const L=We(l.left,0),I=We(l.right,0),$=We(l.top,0),U=We(l.bottom,0);g?R=E-2*(L!==0||I!==0?L+I:We(l.left,l.right)):S=u-2*($!==0||U!==0?$+U:We(l.top,l.bottom))}await m({...t,availableWidth:R,availableHeight:S});const D=await c.getDimensions(s.floating);return E!==D.width||u!==D.height?{reset:{rects:!0}}:{}}}};function Pu(){return typeof window<"u"}function qo(e){return zR(e)?(e.nodeName||"").toLowerCase():"#document"}function $e(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Xt(e){var t;return(t=(zR(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function zR(e){return Pu()?e instanceof Node||e instanceof $e(e).Node:!1}function Ze(e){return Pu()?e instanceof Element||e instanceof $e(e).Element:!1}function Nt(e){return Pu()?e instanceof HTMLElement||e instanceof $e(e).HTMLElement:!1}function _w(e){return!Pu()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof $e(e).ShadowRoot}const w7=new Set(["inline","contents"]);function Fa(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=Ge(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!w7.has(o)}const x7=new Set(["table","td","th"]);function E7(e){return x7.has(qo(e))}const k7=[":popover-open",":modal"];function Mu(e){return k7.some(t=>{try{return e.matches(t)}catch{return!1}})}const S7=["transform","translate","scale","rotate","perspective"],C7=["transform","translate","scale","rotate","perspective","filter"],R7=["paint","layout","strict","content"];function Bm(e){const t=Km(),r=Ze(e)?Ge(e):e;return S7.some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||C7.some(n=>(r.willChange||"").includes(n))||R7.some(n=>(r.contain||"").includes(n))}function O7(e){let t=Pr(e);for(;Nt(t)&&!Ko(t);){if(Bm(t))return t;if(Mu(t))return null;t=Pr(t)}return null}function Km(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const N7=new Set(["html","body","#document"]);function Ko(e){return N7.has(qo(e))}function Ge(e){return $e(e).getComputedStyle(e)}function Au(e){return Ze(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Pr(e){if(qo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||_w(e)&&e.host||Xt(e);return _w(t)?t.host:t}function UR(e){const t=Pr(e);return Ko(t)?e.ownerDocument?e.ownerDocument.body:e.body:Nt(t)&&Fa(t)?t:UR(t)}function Ia(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=UR(e),a=o===((n=e.ownerDocument)==null?void 0:n.body),c=$e(o);if(a){const s=Mp(c);return t.concat(c,c.visualViewport||[],Fa(o)?o:[],s&&r?Ia(s):[])}return t.concat(o,Ia(o,[],r))}function Mp(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function YR(e){const t=Ge(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=Nt(e),a=o?e.offsetWidth:r,c=o?e.offsetHeight:n,s=Vc(r)!==a||Vc(n)!==c;return s&&(r=a,n=c),{width:r,height:n,$:s}}function Xm(e){return Ze(e)?e:e.contextElement}function Do(e){const t=Xm(e);if(!Nt(t))return yt(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:a}=YR(t);let c=(a?Vc(r.width):r.width)/n,s=(a?Vc(r.height):r.height)/o;return(!c||!Number.isFinite(c))&&(c=1),(!s||!Number.isFinite(s))&&(s=1),{x:c,y:s}}const _7=yt(0);function BR(e){const t=$e(e);return!Km()||!t.visualViewport?_7:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function T7(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==$e(e)?!1:t}function tn(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),a=Xm(e);let c=yt(1);t&&(n?Ze(n)&&(c=Do(n)):c=Do(e));const s=T7(a,r,n)?BR(a):yt(0);let m=(o.left+s.x)/c.x,f=(o.top+s.y)/c.y,l=o.width/c.x,p=o.height/c.y;if(a){const v=$e(a),g=n&&Ze(n)?$e(n):n;let E=v,u=Mp(E);for(;u&&n&&g!==E;){const h=Do(u),y=u.getBoundingClientRect(),b=Ge(u),w=y.left+(u.clientLeft+parseFloat(b.paddingLeft))*h.x,k=y.top+(u.clientTop+parseFloat(b.paddingTop))*h.y;m*=h.x,f*=h.y,l*=h.x,p*=h.y,m+=w,f+=k,E=$e(u),u=Mp(E)}}return Zc({width:l,height:p,x:m,y:f})}function Iu(e,t){const r=Au(e).scrollLeft;return t?t.left+r:tn(Xt(e)).left+r}function KR(e,t){const r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-Iu(e,r),o=r.top+t.scrollTop;return{x:n,y:o}}function D7(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const a=o==="fixed",c=Xt(n),s=t?Mu(t.floating):!1;if(n===c||s&&a)return r;let m={scrollLeft:0,scrollTop:0},f=yt(1);const l=yt(0),p=Nt(n);if((p||!p&&!a)&&((qo(n)!=="body"||Fa(c))&&(m=Au(n)),Nt(n))){const g=tn(n);f=Do(n),l.x=g.x+n.clientLeft,l.y=g.y+n.clientTop}const v=c&&!p&&!a?KR(c,m):yt(0);return{width:r.width*f.x,height:r.height*f.y,x:r.x*f.x-m.scrollLeft*f.x+l.x+v.x,y:r.y*f.y-m.scrollTop*f.y+l.y+v.y}}function j7(e){return Array.from(e.getClientRects())}function P7(e){const t=Xt(e),r=Au(e),n=e.ownerDocument.body,o=We(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),a=We(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let c=-r.scrollLeft+Iu(e);const s=-r.scrollTop;return Ge(n).direction==="rtl"&&(c+=We(t.clientWidth,n.clientWidth)-o),{width:o,height:a,x:c,y:s}}const Tw=25;function M7(e,t){const r=$e(e),n=Xt(e),o=r.visualViewport;let a=n.clientWidth,c=n.clientHeight,s=0,m=0;if(o){a=o.width,c=o.height;const l=Km();(!l||l&&t==="fixed")&&(s=o.offsetLeft,m=o.offsetTop)}const f=Iu(n);if(f<=0){const l=n.ownerDocument,p=l.body,v=getComputedStyle(p),g=l.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,E=Math.abs(n.clientWidth-p.clientWidth-g);E<=Tw&&(a-=E)}else f<=Tw&&(a+=f);return{width:a,height:c,x:s,y:m}}const A7=new Set(["absolute","fixed"]);function I7(e,t){const r=tn(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,a=Nt(e)?Do(e):yt(1),c=e.clientWidth*a.x,s=e.clientHeight*a.y,m=o*a.x,f=n*a.y;return{width:c,height:s,x:m,y:f}}function Dw(e,t,r){let n;if(t==="viewport")n=M7(e,r);else if(t==="document")n=P7(Xt(e));else if(Ze(t))n=I7(t,r);else{const o=BR(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Zc(n)}function XR(e,t){const r=Pr(e);return r===t||!Ze(r)||Ko(r)?!1:Ge(r).position==="fixed"||XR(r,t)}function L7(e,t){const r=t.get(e);if(r)return r;let n=Ia(e,[],!1).filter(s=>Ze(s)&&qo(s)!=="body"),o=null;const a=Ge(e).position==="fixed";let c=a?Pr(e):e;for(;Ze(c)&&!Ko(c);){const s=Ge(c),m=Bm(c);!m&&s.position==="fixed"&&(o=null),(a?!m&&!o:!m&&s.position==="static"&&o&&A7.has(o.position)||Fa(c)&&!m&&XR(e,c))?n=n.filter(f=>f!==c):o=s,c=Pr(c)}return t.set(e,n),n}function F7(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const a=[...r==="clippingAncestors"?Mu(t)?[]:L7(t,this._c):[].concat(r),n],c=a[0],s=a.reduce((m,f)=>{const l=Dw(t,f,o);return m.top=We(l.top,m.top),m.right=jr(l.right,m.right),m.bottom=jr(l.bottom,m.bottom),m.left=We(l.left,m.left),m},Dw(t,c,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function W7(e){const{width:t,height:r}=YR(e);return{width:t,height:r}}function $7(e,t,r){const n=Nt(t),o=Xt(t),a=r==="fixed",c=tn(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const m=yt(0);function f(){m.x=Iu(o)}if(n||!n&&!a)if((qo(t)!=="body"||Fa(o))&&(s=Au(t)),n){const g=tn(t,!0,a,t);m.x=g.x+t.clientLeft,m.y=g.y+t.clientTop}else o&&f();a&&!n&&o&&f();const l=o&&!n&&!a?KR(o,s):yt(0),p=c.left+s.scrollLeft-m.x-l.x,v=c.top+s.scrollTop-m.y-l.y;return{x:p,y:v,width:c.width,height:c.height}}function Rf(e){return Ge(e).position==="static"}function jw(e,t){if(!Nt(e)||Ge(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Xt(e)===r&&(r=r.ownerDocument.body),r}function HR(e,t){const r=$e(e);if(Mu(e))return r;if(!Nt(e)){let o=Pr(e);for(;o&&!Ko(o);){if(Ze(o)&&!Rf(o))return o;o=Pr(o)}return r}let n=jw(e,t);for(;n&&E7(n)&&Rf(n);)n=jw(n,t);return n&&Ko(n)&&Rf(n)&&!Bm(n)?r:n||O7(e)||r}const z7=async function(e){const t=this.getOffsetParent||HR,r=this.getDimensions,n=await r(e.floating);return{reference:$7(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function U7(e){return Ge(e).direction==="rtl"}const Y7={convertOffsetParentRelativeRectToViewportRelativeRect:D7,getDocumentElement:Xt,getClippingRect:F7,getOffsetParent:HR,getElementRects:z7,getClientRects:j7,getDimensions:W7,getScale:Do,isElement:Ze,isRTL:U7};function VR(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function B7(e,t){let r=null,n;const o=Xt(e);function a(){var s;clearTimeout(n),(s=r)==null||s.disconnect(),r=null}function c(s,m){s===void 0&&(s=!1),m===void 0&&(m=1),a();const f=e.getBoundingClientRect(),{left:l,top:p,width:v,height:g}=f;if(s||t(),!v||!g)return;const E=Ui(p),u=Ui(o.clientWidth-(l+v)),h=Ui(o.clientHeight-(p+g)),y=Ui(l),b={rootMargin:-E+"px "+-u+"px "+-h+"px "+-y+"px",threshold:We(0,jr(1,m))||1};let w=!0;function k(C){const N=C[0].intersectionRatio;if(N!==m){if(!w)return c();N?c(!1,N):n=setTimeout(()=>{c(!1,1e-7)},1e3)}N===1&&!VR(f,e.getBoundingClientRect())&&c(),w=!1}try{r=new IntersectionObserver(k,{...b,root:o.ownerDocument})}catch{r=new IntersectionObserver(k,b)}r.observe(e)}return c(!0),a}function K7(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:m=!1}=n,f=Xm(e),l=o||a?[...f?Ia(f):[],...Ia(t)]:[];l.forEach(y=>{o&&y.addEventListener("scroll",r,{passive:!0}),a&&y.addEventListener("resize",r)});const p=f&&s?B7(f,r):null;let v=-1,g=null;c&&(g=new ResizeObserver(y=>{let[b]=y;b&&b.target===f&&g&&(g.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var w;(w=g)==null||w.observe(t)})),r()}),f&&!m&&g.observe(f),g.observe(t));let E,u=m?tn(e):null;m&&h();function h(){const y=tn(e);u&&!VR(u,y)&&r(),u=y,E=requestAnimationFrame(h)}return r(),()=>{var y;l.forEach(b=>{o&&b.removeEventListener("scroll",r),a&&b.removeEventListener("resize",r)}),p?.(),(y=g)==null||y.disconnect(),g=null,m&&cancelAnimationFrame(E)}}const X7=h7,H7=g7,V7=p7,q7=b7,Z7=m7,Pw=f7,G7=y7,J7=(e,t,r)=>{const n=new Map,o={platform:Y7,...r},a={...o.platform,_c:n};return d7(e,t,{...o,platform:a})};var Q7=typeof document<"u",eJ=function(){},Nc=Q7?P.useLayoutEffect:eJ;function Gc(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!Gc(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){const a=o[n];if(!(a==="_owner"&&e.$$typeof)&&!Gc(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function qR(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Mw(e,t){const r=qR(e);return Math.round(t*r)/r}function Of(e){const t=i.useRef(e);return Nc(()=>{t.current=e}),t}function tJ(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:a,floating:c}={},transform:s=!0,whileElementsMounted:m,open:f}=e,[l,p]=i.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[v,g]=i.useState(n);Gc(v,n)||g(n);const[E,u]=i.useState(null),[h,y]=i.useState(null),b=i.useCallback(z=>{z!==N.current&&(N.current=z,u(z))},[]),w=i.useCallback(z=>{z!==S.current&&(S.current=z,y(z))},[]),k=a||E,C=c||h,N=i.useRef(null),S=i.useRef(null),R=i.useRef(l),D=m!=null,L=Of(m),I=Of(o),$=Of(f),U=i.useCallback(()=>{if(!N.current||!S.current)return;const z={placement:t,strategy:r,middleware:v};I.current&&(z.platform=I.current),J7(N.current,S.current,z).then(V=>{const d={...V,isPositioned:$.current!==!1};W.current&&!Gc(R.current,d)&&(R.current=d,we.flushSync(()=>{p(d)}))})},[v,t,r,I,$]);Nc(()=>{f===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,p(z=>({...z,isPositioned:!1})))},[f]);const W=i.useRef(!1);Nc(()=>(W.current=!0,()=>{W.current=!1}),[]),Nc(()=>{if(k&&(N.current=k),C&&(S.current=C),k&&C){if(L.current)return L.current(k,C,U);U()}},[k,C,U,L,D]);const M=i.useMemo(()=>({reference:N,floating:S,setReference:b,setFloating:w}),[b,w]),K=i.useMemo(()=>({reference:k,floating:C}),[k,C]),Y=i.useMemo(()=>{const z={position:r,left:0,top:0};if(!K.floating)return z;const V=Mw(K.floating,l.x),d=Mw(K.floating,l.y);return s?{...z,transform:"translate("+V+"px, "+d+"px)",...qR(K.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:V,top:d}},[r,s,K.floating,l.x,l.y]);return i.useMemo(()=>({...l,update:U,refs:M,elements:K,floatingStyles:Y}),[l,U,M,K,Y])}const rJ=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:o}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?Pw({element:n.current,padding:o}).fn(r):{}:n?Pw({element:n,padding:o}).fn(r):{}}}},nJ=(e,t)=>({...X7(e),options:[e,t]}),oJ=(e,t)=>({...H7(e),options:[e,t]}),aJ=(e,t)=>({...G7(e),options:[e,t]}),sJ=(e,t)=>({...V7(e),options:[e,t]}),iJ=(e,t)=>({...q7(e),options:[e,t]}),cJ=(e,t)=>({...Z7(e),options:[e,t]}),uJ=(e,t)=>({...rJ(e),options:[e,t]});var lJ="Arrow",ZR=i.forwardRef((e,t)=>{const{children:r,width:n=10,height:o=5,...a}=e;return he.jsx(nr.svg,{...a,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:he.jsx("polygon",{points:"0,0 30,0 15,10"})})});ZR.displayName=lJ;var dJ=ZR;function fJ(e){const[t,r]=i.useState(void 0);return Bo(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let c,s;if("borderBoxSize"in a){const m=a.borderBoxSize,f=Array.isArray(m)?m[0]:m;c=f.inlineSize,s=f.blockSize}else c=e.offsetWidth,s=e.offsetHeight;r({width:c,height:s})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var GR="Popper",[JR,QR]=PR(GR),[Woe,eO]=JR(GR),tO="PopperAnchor",rO=i.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,a=eO(tO,r),c=i.useRef(null),s=Mr(t,c),m=i.useRef(null);return i.useEffect(()=>{const f=m.current;m.current=n?.current||c.current,f!==m.current&&a.onAnchorChange(m.current)}),n?null:he.jsx(nr.div,{...o,ref:s})});rO.displayName=tO;var Hm="PopperContent",[pJ,mJ]=JR(Hm),nO=i.forwardRef((e,t)=>{const{__scopePopper:r,side:n="bottom",sideOffset:o=0,align:a="center",alignOffset:c=0,arrowPadding:s=0,avoidCollisions:m=!0,collisionBoundary:f=[],collisionPadding:l=0,sticky:p="partial",hideWhenDetached:v=!1,updatePositionStrategy:g="optimized",onPlaced:E,...u}=e,h=eO(Hm,r),[y,b]=i.useState(null),w=Mr(t,B=>b(B)),[k,C]=i.useState(null),N=fJ(k),S=N?.width??0,R=N?.height??0,D=n+(a!=="center"?"-"+a:""),L=typeof l=="number"?l:{top:0,right:0,bottom:0,left:0,...l},I=Array.isArray(f)?f:[f],$=I.length>0,U={padding:L,boundary:I.filter(hJ),altBoundary:$},{refs:W,floatingStyles:M,placement:K,isPositioned:Y,middlewareData:z}=tJ({strategy:"fixed",placement:D,whileElementsMounted:(...B)=>K7(...B,{animationFrame:g==="always"}),elements:{reference:h.anchor},middleware:[nJ({mainAxis:o+R,alignmentAxis:c}),m&&oJ({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?aJ():void 0,...U}),m&&sJ({...U}),iJ({...U,apply:({elements:B,rects:T,availableWidth:F,availableHeight:H})=>{const{width:se,height:M_}=T.reference,Va=B.floating.style;Va.setProperty("--radix-popper-available-width",`${F}px`),Va.setProperty("--radix-popper-available-height",`${H}px`),Va.setProperty("--radix-popper-anchor-width",`${se}px`),Va.setProperty("--radix-popper-anchor-height",`${M_}px`)}}),k&&uJ({element:k,padding:s}),gJ({arrowWidth:S,arrowHeight:R}),v&&cJ({strategy:"referenceHidden",...U})]}),[V,d]=sO(K),x=Yo(E);Bo(()=>{Y&&x?.()},[Y,x]);const O=z.arrow?.x,_=z.arrow?.y,A=z.arrow?.centerOffset!==0,[j,X]=i.useState();return Bo(()=>{y&&X(window.getComputedStyle(y).zIndex)},[y]),he.jsx("div",{ref:W.setFloating,"data-radix-popper-content-wrapper":"",style:{...M,transform:Y?M.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:j,"--radix-popper-transform-origin":[z.transformOrigin?.x,z.transformOrigin?.y].join(" "),...z.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:he.jsx(pJ,{scope:r,placedSide:V,onArrowChange:C,arrowX:O,arrowY:_,shouldHideArrow:A,children:he.jsx(nr.div,{"data-side":V,"data-align":d,...u,ref:w,style:{...u.style,animation:Y?void 0:"none"}})})})});nO.displayName=Hm;var oO="PopperArrow",vJ={top:"bottom",right:"left",bottom:"top",left:"right"},aO=i.forwardRef(function(e,t){const{__scopePopper:r,...n}=e,o=mJ(oO,r),a=vJ[o.placedSide];return he.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:he.jsx(dJ,{...n,ref:t,style:{...n.style,display:"block"}})})});aO.displayName=oO;function hJ(e){return e!==null}var gJ=e=>({name:"transformOrigin",options:e,fn(t){const{placement:r,rects:n,middlewareData:o}=t,a=o.arrow?.centerOffset!==0,c=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[m,f]=sO(r),l={start:"0%",center:"50%",end:"100%"}[f],p=(o.arrow?.x??0)+c/2,v=(o.arrow?.y??0)+s/2;let g="",E="";return m==="bottom"?(g=a?l:`${p}px`,E=`${-s}px`):m==="top"?(g=a?l:`${p}px`,E=`${n.floating.height+s}px`):m==="right"?(g=`${-s}px`,E=a?l:`${v}px`):m==="left"&&(g=`${n.floating.width+s}px`,E=a?l:`${v}px`),{data:{x:g,y:E}}}});function sO(e){const[t,r="center"]=e.split("-");return[t,r]}var iO=rO,yJ=nO,bJ=aO,wJ="Portal",xJ=i.forwardRef((e,t)=>{const{container:r,...n}=e,[o,a]=i.useState(!1);Bo(()=>a(!0),[]);const c=r||o&&globalThis?.document?.body;return c?be.createPortal(he.jsx(nr.div,{...n,ref:t}),c):null});xJ.displayName=wJ;function EJ(e,t){return i.useReducer((r,n)=>t[r][n]??r,e)}var cO=e=>{const{present:t,children:r}=e,n=kJ(t),o=typeof r=="function"?r({present:n.isPresent}):i.Children.only(r),a=Mr(n.ref,SJ(o));return typeof r=="function"||n.isPresent?i.cloneElement(o,{ref:a}):null};cO.displayName="Presence";function kJ(e){const[t,r]=i.useState(),n=i.useRef(null),o=i.useRef(e),a=i.useRef("none"),c=e?"mounted":"unmounted",[s,m]=EJ(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const f=Yi(n.current);a.current=s==="mounted"?f:"none"},[s]),Bo(()=>{const f=n.current,l=o.current;if(l!==e){const p=a.current,v=Yi(f);e?m("MOUNT"):v==="none"||f?.display==="none"?m("UNMOUNT"):m(l&&p!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,m]),Bo(()=>{if(t){let f;const l=t.ownerDocument.defaultView??window,p=g=>{const E=Yi(n.current).includes(CSS.escape(g.animationName));if(g.target===t&&E&&(m("ANIMATION_END"),!o.current)){const u=t.style.animationFillMode;t.style.animationFillMode="forwards",f=l.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=u)})}},v=g=>{g.target===t&&(a.current=Yi(n.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{l.clearTimeout(f),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else m("ANIMATION_END")},[t,m]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:i.useCallback(f=>{n.current=f?getComputedStyle(f):null,r(f)},[])}}function Yi(e){return e?.animationName||"none"}function SJ(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var CJ=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},lo=new WeakMap,Bi=new WeakMap,Ki={},Nf=0,uO=function(e){return e&&(e.host||uO(e.parentNode))},RJ=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=uO(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},OJ=function(e,t,r,n){var o=RJ(t,Array.isArray(e)?e:[e]);Ki[r]||(Ki[r]=new WeakMap);var a=Ki[r],c=[],s=new Set,m=new Set(o),f=function(p){!p||s.has(p)||(s.add(p),f(p.parentNode))};o.forEach(f);var l=function(p){!p||m.has(p)||Array.prototype.forEach.call(p.children,function(v){if(s.has(v))l(v);else try{var g=v.getAttribute(n),E=g!==null&&g!=="false",u=(lo.get(v)||0)+1,h=(a.get(v)||0)+1;lo.set(v,u),a.set(v,h),c.push(v),u===1&&E&&Bi.set(v,!0),h===1&&v.setAttribute(r,"true"),E||v.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",v,y)}})};return l(t),s.clear(),Nf++,function(){c.forEach(function(p){var v=lo.get(p)-1,g=a.get(p)-1;lo.set(p,v),a.set(p,g),v||(Bi.has(p)||p.removeAttribute(n),Bi.delete(p)),g||p.removeAttribute(r)}),Nf--,Nf||(lo=new WeakMap,lo=new WeakMap,Bi=new WeakMap,Ki={})}},NJ=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=CJ(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),OJ(n,o,r,"aria-hidden")):function(){return null}},vt=function(){return vt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},vt.apply(this,arguments)};function lO(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function _J(e,t,r){for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var _c="right-scroll-bar-position",Tc="width-before-scroll-bar",TJ="with-scroll-bars-hidden",DJ="--removed-body-scroll-bar-size";function _f(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function jJ(e,t){var r=P.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var PJ=typeof window<"u"?i.useLayoutEffect:i.useEffect,Aw=new WeakMap;function MJ(e,t){var r=jJ(null,function(n){return e.forEach(function(o){return _f(o,n)})});return PJ(function(){var n=Aw.get(r);if(n){var o=new Set(n),a=new Set(e),c=r.current;o.forEach(function(s){a.has(s)||_f(s,null)}),a.forEach(function(s){o.has(s)||_f(s,c)})}Aw.set(r,e)},[e]),r}function AJ(e){return e}function IJ(e,t){t===void 0&&(t=AJ);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var c=t(a,n);return r.push(c),function(){r=r.filter(function(s){return s!==c})}},assignSyncMedium:function(a){for(n=!0;r.length;){var c=r;r=[],c.forEach(a)}r={push:function(s){return a(s)},filter:function(){return r}}},assignMedium:function(a){n=!0;var c=[];if(r.length){var s=r;r=[],s.forEach(a),c=r}var m=function(){var l=c;c=[],l.forEach(a)},f=function(){return Promise.resolve().then(m)};f(),r={push:function(l){c.push(l),f()},filter:function(l){return c=c.filter(l),r}}}};return o}function LJ(e){e===void 0&&(e={});var t=IJ(null);return t.options=vt({async:!0,ssr:!1},e),t}var dO=function(e){var t=e.sideCar,r=lO(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return i.createElement(n,vt({},r))};dO.isSideCarExport=!0;function FJ(e,t){return e.useMedium(t),dO}var fO=LJ(),Tf=function(){},Lu=i.forwardRef(function(e,t){var r=i.useRef(null),n=i.useState({onScrollCapture:Tf,onWheelCapture:Tf,onTouchMoveCapture:Tf}),o=n[0],a=n[1],c=e.forwardProps,s=e.children,m=e.className,f=e.removeScrollBar,l=e.enabled,p=e.shards,v=e.sideCar,g=e.noRelative,E=e.noIsolation,u=e.inert,h=e.allowPinchZoom,y=e.as,b=y===void 0?"div":y,w=e.gapMode,k=lO(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=v,N=MJ([r,t]),S=vt(vt({},k),o);return i.createElement(i.Fragment,null,l&&i.createElement(C,{sideCar:fO,removeScrollBar:f,shards:p,noRelative:g,noIsolation:E,inert:u,setCallbacks:a,allowPinchZoom:!!h,lockRef:r,gapMode:w}),c?i.cloneElement(i.Children.only(s),vt(vt({},S),{ref:N})):i.createElement(b,vt({},S,{className:m,ref:N}),s))});Lu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Lu.classNames={fullWidth:Tc,zeroRight:_c};var WJ=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function $J(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=WJ();return t&&e.setAttribute("nonce",t),e}function zJ(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function UJ(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var YJ=function(){var e=0,t=null;return{add:function(r){e==0&&(t=$J())&&(zJ(t,r),UJ(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},BJ=function(){var e=YJ();return function(t,r){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},pO=function(){var e=BJ(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},KJ={left:0,top:0,right:0,gap:0},Df=function(e){return parseInt(e||"",10)||0},XJ=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Df(r),Df(n),Df(o)]},HJ=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return KJ;var t=XJ(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},VJ=pO(),jo="data-scroll-locked",qJ=function(e,t,r,n){var o=e.left,a=e.top,c=e.right,s=e.gap;return r===void 0&&(r="margin"),`
1086
- .`.concat(TJ,` {
1087
- overflow: hidden `).concat(n,`;
1088
- padding-right: `).concat(s,"px ").concat(n,`;
1089
- }
1090
- body[`).concat(jo,`] {
1091
- overflow: hidden `).concat(n,`;
1092
- overscroll-behavior: contain;
1093
- `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
1094
- padding-left: `.concat(o,`px;
1095
- padding-top: `).concat(a,`px;
1096
- padding-right: `).concat(c,`px;
1097
- margin-left:0;
1098
- margin-top:0;
1099
- margin-right: `).concat(s,"px ").concat(n,`;
1100
- `),r==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),`
1101
- }
1102
-
1103
- .`).concat(_c,` {
1104
- right: `).concat(s,"px ").concat(n,`;
1105
- }
1106
-
1107
- .`).concat(Tc,` {
1108
- margin-right: `).concat(s,"px ").concat(n,`;
1109
- }
1110
-
1111
- .`).concat(_c," .").concat(_c,` {
1112
- right: 0 `).concat(n,`;
1113
- }
1114
-
1115
- .`).concat(Tc," .").concat(Tc,` {
1116
- margin-right: 0 `).concat(n,`;
1117
- }
1118
-
1119
- body[`).concat(jo,`] {
1120
- `).concat(DJ,": ").concat(s,`px;
1121
- }
1122
- `)},Iw=function(){var e=parseInt(document.body.getAttribute(jo)||"0",10);return isFinite(e)?e:0},ZJ=function(){i.useEffect(function(){return document.body.setAttribute(jo,(Iw()+1).toString()),function(){var e=Iw()-1;e<=0?document.body.removeAttribute(jo):document.body.setAttribute(jo,e.toString())}},[])},GJ=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;ZJ();var a=i.useMemo(function(){return HJ(o)},[o]);return i.createElement(VJ,{styles:qJ(a,!t,o,r?"":"!important")})},Ap=!1;if(typeof window<"u")try{var Xi=Object.defineProperty({},"passive",{get:function(){return Ap=!0,!0}});window.addEventListener("test",Xi,Xi),window.removeEventListener("test",Xi,Xi)}catch{Ap=!1}var fo=Ap?{passive:!1}:!1,JJ=function(e){return e.tagName==="TEXTAREA"},mO=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!JJ(e)&&r[t]==="visible")},QJ=function(e){return mO(e,"overflowY")},eQ=function(e){return mO(e,"overflowX")},Lw=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=vO(e,n);if(o){var a=hO(e,n),c=a[1],s=a[2];if(c>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},tQ=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},rQ=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},vO=function(e,t){return e==="v"?QJ(t):eQ(t)},hO=function(e,t){return e==="v"?tQ(t):rQ(t)},nQ=function(e,t){return e==="h"&&t==="rtl"?-1:1},oQ=function(e,t,r,n,o){var a=nQ(e,window.getComputedStyle(t).direction),c=a*n,s=r.target,m=t.contains(s),f=!1,l=c>0,p=0,v=0;do{if(!s)break;var g=hO(e,s),E=g[0],u=g[1],h=g[2],y=u-h-a*E;(E||y)&&vO(e,s)&&(p+=y,v+=E);var b=s.parentNode;s=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!m&&s!==document.body||m&&(t.contains(s)||t===s));return(l&&Math.abs(p)<1||!l&&Math.abs(v)<1)&&(f=!0),f},Hi=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Fw=function(e){return[e.deltaX,e.deltaY]},Ww=function(e){return e&&"current"in e?e.current:e},aQ=function(e,t){return e[0]===t[0]&&e[1]===t[1]},sQ=function(e){return`
1123
- .block-interactivity-`.concat(e,` {pointer-events: none;}
1124
- .allow-interactivity-`).concat(e,` {pointer-events: all;}
1125
- `)},iQ=0,po=[];function cQ(e){var t=i.useRef([]),r=i.useRef([0,0]),n=i.useRef(),o=i.useState(iQ++)[0],a=i.useState(pO)[0],c=i.useRef(e);i.useEffect(function(){c.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var u=_J([e.lockRef.current],(e.shards||[]).map(Ww)).filter(Boolean);return u.forEach(function(h){return h.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),u.forEach(function(h){return h.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=i.useCallback(function(u,h){if("touches"in u&&u.touches.length===2||u.type==="wheel"&&u.ctrlKey)return!c.current.allowPinchZoom;var y=Hi(u),b=r.current,w="deltaX"in u?u.deltaX:b[0]-y[0],k="deltaY"in u?u.deltaY:b[1]-y[1],C,N=u.target,S=Math.abs(w)>Math.abs(k)?"h":"v";if("touches"in u&&S==="h"&&N.type==="range")return!1;var R=Lw(S,N);if(!R)return!0;if(R?C=S:(C=S==="v"?"h":"v",R=Lw(S,N)),!R)return!1;if(!n.current&&"changedTouches"in u&&(w||k)&&(n.current=C),!C)return!0;var D=n.current||C;return oQ(D,h,u,D==="h"?w:k)},[]),m=i.useCallback(function(u){var h=u;if(!(!po.length||po[po.length-1]!==a)){var y="deltaY"in h?Fw(h):Hi(h),b=t.current.filter(function(C){return C.name===h.type&&(C.target===h.target||h.target===C.shadowParent)&&aQ(C.delta,y)})[0];if(b&&b.should){h.cancelable&&h.preventDefault();return}if(!b){var w=(c.current.shards||[]).map(Ww).filter(Boolean).filter(function(C){return C.contains(h.target)}),k=w.length>0?s(h,w[0]):!c.current.noIsolation;k&&h.cancelable&&h.preventDefault()}}},[]),f=i.useCallback(function(u,h,y,b){var w={name:u,delta:h,target:y,should:b,shadowParent:uQ(y)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(k){return k!==w})},1)},[]),l=i.useCallback(function(u){r.current=Hi(u),n.current=void 0},[]),p=i.useCallback(function(u){f(u.type,Fw(u),u.target,s(u,e.lockRef.current))},[]),v=i.useCallback(function(u){f(u.type,Hi(u),u.target,s(u,e.lockRef.current))},[]);i.useEffect(function(){return po.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:v}),document.addEventListener("wheel",m,fo),document.addEventListener("touchmove",m,fo),document.addEventListener("touchstart",l,fo),function(){po=po.filter(function(u){return u!==a}),document.removeEventListener("wheel",m,fo),document.removeEventListener("touchmove",m,fo),document.removeEventListener("touchstart",l,fo)}},[]);var g=e.removeScrollBar,E=e.inert;return i.createElement(i.Fragment,null,E?i.createElement(a,{styles:sQ(o)}):null,g?i.createElement(GJ,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function uQ(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const lQ=FJ(fO,cQ);var gO=i.forwardRef(function(e,t){return i.createElement(Lu,vt({},e,{ref:t,sideCar:lQ}))});gO.classNames=Lu.classNames;var yO="Popover",[bO]=PR(yO,[QR]),Fu=QR(),[$oe,dn]=bO(yO),wO="PopoverAnchor",dQ=i.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=dn(wO,r),a=Fu(r),{onCustomAnchorAdd:c,onCustomAnchorRemove:s}=o;return i.useEffect(()=>(c(),()=>s()),[c,s]),he.jsx(iO,{...a,...n,ref:t})});dQ.displayName=wO;var xO="PopoverTrigger",fQ=i.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=dn(xO,r),a=Fu(r),c=Mr(t,o.triggerRef),s=he.jsx(nr.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":SO(o.open),...n,ref:c,onClick:Dr(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?s:he.jsx(iO,{asChild:!0,...a,children:s})});fQ.displayName=xO;var pQ="PopoverPortal",[zoe,mQ]=bO(pQ,{forceMount:void 0}),Xo="PopoverContent",vQ=i.forwardRef((e,t)=>{const r=mQ(Xo,e.__scopePopover),{forceMount:n=r.forceMount,...o}=e,a=dn(Xo,e.__scopePopover);return he.jsx(cO,{present:n||a.open,children:a.modal?he.jsx(gQ,{...o,ref:t}):he.jsx(yQ,{...o,ref:t})})});vQ.displayName=Xo;var hQ=q.createSlot("PopoverContent.RemoveScroll"),gQ=i.forwardRef((e,t)=>{const r=dn(Xo,e.__scopePopover),n=i.useRef(null),o=Mr(t,n),a=i.useRef(!1);return i.useEffect(()=>{const c=n.current;if(c)return NJ(c)},[]),he.jsx(gO,{as:hQ,allowPinchZoom:!0,children:he.jsx(EO,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Dr(e.onCloseAutoFocus,c=>{c.preventDefault(),a.current||r.triggerRef.current?.focus()}),onPointerDownOutside:Dr(e.onPointerDownOutside,c=>{const s=c.detail.originalEvent,m=s.button===0&&s.ctrlKey===!0,f=s.button===2||m;a.current=f},{checkForDefaultPrevented:!1}),onFocusOutside:Dr(e.onFocusOutside,c=>c.preventDefault(),{checkForDefaultPrevented:!1})})})}),yQ=i.forwardRef((e,t)=>{const r=dn(Xo,e.__scopePopover),n=i.useRef(!1),o=i.useRef(!1);return he.jsx(EO,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(n.current||r.triggerRef.current?.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=a.target;r.triggerRef.current?.contains(c)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),EO=i.forwardRef((e,t)=>{const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:c,onEscapeKeyDown:s,onPointerDownOutside:m,onFocusOutside:f,onInteractOutside:l,...p}=e,v=dn(Xo,r),g=Fu(r);return XG(),he.jsx(LR,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:he.jsx(AR,{asChild:!0,disableOutsidePointerEvents:c,onInteractOutside:l,onEscapeKeyDown:s,onPointerDownOutside:m,onFocusOutside:f,onDismiss:()=>v.onOpenChange(!1),children:he.jsx(yJ,{"data-state":SO(v.open),role:"dialog",id:v.contentId,...g,...p,ref:t,style:{...p.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),kO="PopoverClose",bQ=i.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=dn(kO,r);return he.jsx(nr.button,{type:"button",...n,ref:t,onClick:Dr(e.onClick,()=>o.onOpenChange(!1))})});bQ.displayName=kO;var wQ="PopoverArrow",xQ=i.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Fu(r);return he.jsx(bJ,{...o,...n,ref:t})});xQ.displayName=wQ;function SO(e){return e?"open":"closed"}i.createContext({});i.createContext({});function EQ(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}Array(12).fill(0);let Ip=1;class kQ{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const r=this.subscribers.indexOf(t);this.subscribers.splice(r,1)}),this.publish=t=>{this.subscribers.forEach(r=>r(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var r;const{message:n,...o}=t,a=typeof t?.id=="number"||((r=t.id)==null?void 0:r.length)>0?t.id:Ip++,c=this.toasts.find(m=>m.id===a),s=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(a)&&this.dismissedToasts.delete(a),c?this.toasts=this.toasts.map(m=>m.id===a?(this.publish({...m,...t,id:a,title:n}),{...m,...t,id:a,dismissible:s,title:n}):m):this.addToast({title:n,...o,dismissible:s,id:a}),a},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(r=>r({id:t,dismiss:!0})))):this.toasts.forEach(r=>{this.subscribers.forEach(n=>n({id:r.id,dismiss:!0}))}),t),this.message=(t,r)=>this.create({...r,message:t}),this.error=(t,r)=>this.create({...r,message:t,type:"error"}),this.success=(t,r)=>this.create({...r,type:"success",message:t}),this.info=(t,r)=>this.create({...r,type:"info",message:t}),this.warning=(t,r)=>this.create({...r,type:"warning",message:t}),this.loading=(t,r)=>this.create({...r,type:"loading",message:t}),this.promise=(t,r)=>{if(!r)return;let n;r.loading!==void 0&&(n=this.create({...r,promise:t,type:"loading",message:r.loading,description:typeof r.description!="function"?r.description:void 0}));const o=Promise.resolve(t instanceof Function?t():t);let a=n!==void 0,c;const s=o.then(async f=>{if(c=["resolve",f],P.isValidElement(f))a=!1,this.create({id:n,type:"default",message:f});else if(CQ(f)&&!f.ok){a=!1;const l=typeof r.error=="function"?await r.error(`HTTP error! status: ${f.status}`):r.error,p=typeof r.description=="function"?await r.description(`HTTP error! status: ${f.status}`):r.description,v=typeof l=="object"&&!P.isValidElement(l)?l:{message:l};this.create({id:n,type:"error",description:p,...v})}else if(f instanceof Error){a=!1;const l=typeof r.error=="function"?await r.error(f):r.error,p=typeof r.description=="function"?await r.description(f):r.description,v=typeof l=="object"&&!P.isValidElement(l)?l:{message:l};this.create({id:n,type:"error",description:p,...v})}else if(r.success!==void 0){a=!1;const l=typeof r.success=="function"?await r.success(f):r.success,p=typeof r.description=="function"?await r.description(f):r.description,v=typeof l=="object"&&!P.isValidElement(l)?l:{message:l};this.create({id:n,type:"success",description:p,...v})}}).catch(async f=>{if(c=["reject",f],r.error!==void 0){a=!1;const l=typeof r.error=="function"?await r.error(f):r.error,p=typeof r.description=="function"?await r.description(f):r.description,v=typeof l=="object"&&!P.isValidElement(l)?l:{message:l};this.create({id:n,type:"error",description:p,...v})}}).finally(()=>{a&&(this.dismiss(n),n=void 0),r.finally==null||r.finally.call(r)}),m=()=>new Promise((f,l)=>s.then(()=>c[0]==="reject"?l(c[1]):f(c[1])).catch(l));return typeof n!="string"&&typeof n!="number"?{unwrap:m}:Object.assign(n,{unwrap:m})},this.custom=(t,r)=>{const n=r?.id||Ip++;return this.create({jsx:t(n),id:n,...r}),n},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const Ue=new kQ,SQ=(e,t)=>{const r=t?.id||Ip++;return Ue.addToast({title:e,...t,id:r}),r},CQ=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",RQ=SQ,OQ=()=>Ue.toasts,NQ=()=>Ue.getActiveToasts();Object.assign(RQ,{success:Ue.success,info:Ue.info,warning:Ue.warning,error:Ue.error,custom:Ue.custom,message:Ue.message,promise:Ue.promise,dismiss:Ue.dismiss,loading:Ue.loading},{getHistory:OQ,getToasts:NQ});EQ("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function _Q(e){const t=e+"CollectionProvider",[r,n]=Tu(t),[o,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),c=u=>{const{scope:h,children:y}=u,b=P.useRef(null),w=P.useRef(new Map).current;return oe.jsx(o,{scope:h,itemMap:w,collectionRef:b,children:y})};c.displayName=t;const s=e+"CollectionSlot",m=q.createSlot(s),f=P.forwardRef((u,h)=>{const{scope:y,children:b}=u,w=a(s,y),k=Ot(h,w.collectionRef);return oe.jsx(m,{ref:k,children:b})});f.displayName=s;const l=e+"CollectionItemSlot",p="data-radix-collection-item",v=q.createSlot(l),g=P.forwardRef((u,h)=>{const{scope:y,children:b,...w}=u,k=P.useRef(null),C=Ot(h,k),N=a(l,y);return P.useEffect(()=>(N.itemMap.set(k,{ref:k,...w}),()=>void N.itemMap.delete(k))),oe.jsx(v,{[p]:"",ref:C,children:b})});g.displayName=l;function E(u){const h=a(e+"CollectionConsumer",u);return P.useCallback(()=>{const y=h.collectionRef.current;if(!y)return[];const b=Array.from(y.querySelectorAll(`[${p}]`));return Array.from(h.itemMap.values()).sort((w,k)=>b.indexOf(w.ref.current)-b.indexOf(k.ref.current))},[h.collectionRef,h.itemMap])}return[{Provider:c,Slot:f,ItemSlot:g},E,n]}var TQ=i.createContext(void 0);function CO(e){const t=i.useContext(TQ);return e||t||"ltr"}var jf="rovingFocusGroup.onEntryFocus",DQ={bubbles:!1,cancelable:!0},Wa="RovingFocusGroup",[Lp,RO,jQ]=_Q(Wa),[PQ,OO]=Tu(Wa,[jQ]),[MQ,AQ]=PQ(Wa),NO=i.forwardRef((e,t)=>oe.jsx(Lp.Provider,{scope:e.__scopeRovingFocusGroup,children:oe.jsx(Lp.Slot,{scope:e.__scopeRovingFocusGroup,children:oe.jsx(IQ,{...e,ref:t})})}));NO.displayName=Wa;var IQ=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:a,currentTabStopId:c,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:m,onEntryFocus:f,preventScrollOnEntryFocus:l=!1,...p}=e,v=i.useRef(null),g=Ot(t,v),E=CO(a),[u,h]=VC({prop:c,defaultProp:s??null,onChange:m,caller:Wa}),[y,b]=i.useState(!1),w=zo(f),k=RO(r),C=i.useRef(!1),[N,S]=i.useState(0);return i.useEffect(()=>{const R=v.current;if(R)return R.addEventListener(jf,w),()=>R.removeEventListener(jf,w)},[w]),oe.jsx(MQ,{scope:r,orientation:n,dir:E,loop:o,currentTabStopId:u,onItemFocus:i.useCallback(R=>h(R),[h]),onItemShiftTab:i.useCallback(()=>b(!0),[]),onFocusableItemAdd:i.useCallback(()=>S(R=>R+1),[]),onFocusableItemRemove:i.useCallback(()=>S(R=>R-1),[]),children:oe.jsx(Fe.div,{tabIndex:y||N===0?-1:0,"data-orientation":n,...p,ref:g,style:{outline:"none",...e.style},onMouseDown:_e(e.onMouseDown,()=>{C.current=!0}),onFocus:_e(e.onFocus,R=>{const D=!C.current;if(R.target===R.currentTarget&&D&&!y){const L=new CustomEvent(jf,DQ);if(R.currentTarget.dispatchEvent(L),!L.defaultPrevented){const I=k().filter(M=>M.focusable),$=I.find(M=>M.active),U=I.find(M=>M.id===u),W=[$,U,...I].filter(Boolean).map(M=>M.ref.current);DO(W,l)}}C.current=!1}),onBlur:_e(e.onBlur,()=>b(!1))})})}),_O="RovingFocusGroupItem",TO=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:a,children:c,...s}=e,m=HC(),f=a||m,l=AQ(_O,r),p=l.currentTabStopId===f,v=RO(r),{onFocusableItemAdd:g,onFocusableItemRemove:E,currentTabStopId:u}=l;return i.useEffect(()=>{if(n)return g(),()=>E()},[n,g,E]),oe.jsx(Lp.ItemSlot,{scope:r,id:f,focusable:n,active:o,children:oe.jsx(Fe.span,{tabIndex:p?0:-1,"data-orientation":l.orientation,...s,ref:t,onMouseDown:_e(e.onMouseDown,h=>{n?l.onItemFocus(f):h.preventDefault()}),onFocus:_e(e.onFocus,()=>l.onItemFocus(f)),onKeyDown:_e(e.onKeyDown,h=>{if(h.key==="Tab"&&h.shiftKey){l.onItemShiftTab();return}if(h.target!==h.currentTarget)return;const y=WQ(h,l.orientation,l.dir);if(y!==void 0){if(h.metaKey||h.ctrlKey||h.altKey||h.shiftKey)return;h.preventDefault();let b=v().filter(w=>w.focusable).map(w=>w.ref.current);if(y==="last")b.reverse();else if(y==="prev"||y==="next"){y==="prev"&&b.reverse();const w=b.indexOf(h.currentTarget);b=l.loop?$Q(b,w+1):b.slice(w+1)}setTimeout(()=>DO(b))}}),children:typeof c=="function"?c({isCurrentTabStop:p,hasTabStop:u!=null}):c})})});TO.displayName=_O;var LQ={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function FQ(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function WQ(e,t,r){const n=FQ(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return LQ[n]}function DO(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function $Q(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var zQ=NO,UQ=TO,Wu="Tabs",[YQ]=Tu(Wu,[OO]),jO=OO(),[BQ,Vm]=YQ(Wu),KQ=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,onValueChange:o,defaultValue:a,orientation:c="horizontal",dir:s,activationMode:m="automatic",...f}=e,l=CO(s),[p,v]=VC({prop:n,onChange:o,defaultProp:a??"",caller:Wu});return oe.jsx(BQ,{scope:r,baseId:HC(),value:p,onValueChange:v,orientation:c,dir:l,activationMode:m,children:oe.jsx(Fe.div,{dir:l,"data-orientation":c,...f,ref:t})})});KQ.displayName=Wu;var PO="TabsList",XQ=i.forwardRef((e,t)=>{const{__scopeTabs:r,loop:n=!0,...o}=e,a=Vm(PO,r),c=jO(r);return oe.jsx(zQ,{asChild:!0,...c,orientation:a.orientation,dir:a.dir,loop:n,children:oe.jsx(Fe.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});XQ.displayName=PO;var MO="TabsTrigger",HQ=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,disabled:o=!1,...a}=e,c=Vm(MO,r),s=jO(r),m=IO(c.baseId,n),f=LO(c.baseId,n),l=n===c.value;return oe.jsx(UQ,{asChild:!0,...s,focusable:!o,active:l,children:oe.jsx(Fe.button,{type:"button",role:"tab","aria-selected":l,"aria-controls":f,"data-state":l?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:m,...a,ref:t,onMouseDown:_e(e.onMouseDown,p=>{!o&&p.button===0&&p.ctrlKey===!1?c.onValueChange(n):p.preventDefault()}),onKeyDown:_e(e.onKeyDown,p=>{[" ","Enter"].includes(p.key)&&c.onValueChange(n)}),onFocus:_e(e.onFocus,()=>{const p=c.activationMode!=="manual";!l&&!o&&p&&c.onValueChange(n)})})})});HQ.displayName=MO;var AO="TabsContent",VQ=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,forceMount:o,children:a,...c}=e,s=Vm(AO,r),m=IO(s.baseId,n),f=LO(s.baseId,n),l=n===s.value,p=i.useRef(l);return i.useEffect(()=>{const v=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(v)},[]),oe.jsx(Du,{present:o||l,children:({present:v})=>oe.jsx(Fe.div,{"data-state":l?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":m,hidden:!v,id:f,tabIndex:0,...c,ref:t,style:{...e.style,animationDuration:p.current?"0s":void 0},children:v&&a})})});VQ.displayName=AO;function IO(e,t){return`${e}-trigger-${t}`}function LO(e,t){return`${e}-content-${t}`}i.createContext({});i.createContext({});function qQ(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}Array(12).fill(0);let Fp=1;class ZQ{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const r=this.subscribers.indexOf(t);this.subscribers.splice(r,1)}),this.publish=t=>{this.subscribers.forEach(r=>r(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var r;const{message:n,...o}=t,a=typeof t?.id=="number"||((r=t.id)==null?void 0:r.length)>0?t.id:Fp++,c=this.toasts.find(m=>m.id===a),s=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(a)&&this.dismissedToasts.delete(a),c?this.toasts=this.toasts.map(m=>m.id===a?(this.publish({...m,...t,id:a,title:n}),{...m,...t,id:a,dismissible:s,title:n}):m):this.addToast({title:n,...o,dismissible:s,id:a}),a},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(r=>r({id:t,dismiss:!0})))):this.toasts.forEach(r=>{this.subscribers.forEach(n=>n({id:r.id,dismiss:!0}))}),t),this.message=(t,r)=>this.create({...r,message:t}),this.error=(t,r)=>this.create({...r,message:t,type:"error"}),this.success=(t,r)=>this.create({...r,type:"success",message:t}),this.info=(t,r)=>this.create({...r,type:"info",message:t}),this.warning=(t,r)=>this.create({...r,type:"warning",message:t}),this.loading=(t,r)=>this.create({...r,type:"loading",message:t}),this.promise=(t,r)=>{if(!r)return;let n;r.loading!==void 0&&(n=this.create({...r,promise:t,type:"loading",message:r.loading,description:typeof r.description!="function"?r.description:void 0}));const o=Promise.resolve(t instanceof Function?t():t);let a=n!==void 0,c;const s=o.then(async f=>{if(c=["resolve",f],P.isValidElement(f))a=!1,this.create({id:n,type:"default",message:f});else if(JQ(f)&&!f.ok){a=!1;const l=typeof r.error=="function"?await r.error(`HTTP error! status: ${f.status}`):r.error,p=typeof r.description=="function"?await r.description(`HTTP error! status: ${f.status}`):r.description,v=typeof l=="object"&&!P.isValidElement(l)?l:{message:l};this.create({id:n,type:"error",description:p,...v})}else if(f instanceof Error){a=!1;const l=typeof r.error=="function"?await r.error(f):r.error,p=typeof r.description=="function"?await r.description(f):r.description,v=typeof l=="object"&&!P.isValidElement(l)?l:{message:l};this.create({id:n,type:"error",description:p,...v})}else if(r.success!==void 0){a=!1;const l=typeof r.success=="function"?await r.success(f):r.success,p=typeof r.description=="function"?await r.description(f):r.description,v=typeof l=="object"&&!P.isValidElement(l)?l:{message:l};this.create({id:n,type:"success",description:p,...v})}}).catch(async f=>{if(c=["reject",f],r.error!==void 0){a=!1;const l=typeof r.error=="function"?await r.error(f):r.error,p=typeof r.description=="function"?await r.description(f):r.description,v=typeof l=="object"&&!P.isValidElement(l)?l:{message:l};this.create({id:n,type:"error",description:p,...v})}}).finally(()=>{a&&(this.dismiss(n),n=void 0),r.finally==null||r.finally.call(r)}),m=()=>new Promise((f,l)=>s.then(()=>c[0]==="reject"?l(c[1]):f(c[1])).catch(l));return typeof n!="string"&&typeof n!="number"?{unwrap:m}:Object.assign(n,{unwrap:m})},this.custom=(t,r)=>{const n=r?.id||Fp++;return this.create({jsx:t(n),id:n,...r}),n},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const Ye=new ZQ,GQ=(e,t)=>{const r=t?.id||Fp++;return Ye.addToast({title:e,...t,id:r}),r},JQ=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",QQ=GQ,eee=()=>Ye.toasts,tee=()=>Ye.getActiveToasts();Object.assign(QQ,{success:Ye.success,info:Ye.info,warning:Ye.warning,error:Ye.error,custom:Ye.custom,message:Ye.message,promise:Ye.promise,dismiss:Ye.dismiss,loading:Ye.loading},{getHistory:eee,getToasts:tee});qQ("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function ree(e){const t=e+"CollectionProvider",[r,n]=Ou(t),[o,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),c=u=>{const{scope:h,children:y}=u,b=P.useRef(null),w=P.useRef(new Map).current;return ne.jsx(o,{scope:h,itemMap:w,collectionRef:b,children:y})};c.displayName=t;const s=e+"CollectionSlot",m=q.createSlot(s),f=P.forwardRef((u,h)=>{const{scope:y,children:b}=u,w=a(s,y),k=Rt(h,w.collectionRef);return ne.jsx(m,{ref:k,children:b})});f.displayName=s;const l=e+"CollectionItemSlot",p="data-radix-collection-item",v=q.createSlot(l),g=P.forwardRef((u,h)=>{const{scope:y,children:b,...w}=u,k=P.useRef(null),C=Rt(h,k),N=a(l,y);return P.useEffect(()=>(N.itemMap.set(k,{ref:k,...w}),()=>void N.itemMap.delete(k))),ne.jsx(v,{[p]:"",ref:C,children:b})});g.displayName=l;function E(u){const h=a(e+"CollectionConsumer",u);return P.useCallback(()=>{const y=h.collectionRef.current;if(!y)return[];const b=Array.from(y.querySelectorAll(`[${p}]`));return Array.from(h.itemMap.values()).sort((w,k)=>b.indexOf(w.ref.current)-b.indexOf(k.ref.current))},[h.collectionRef,h.itemMap])}return[{Provider:c,Slot:f,ItemSlot:g},E,n]}var nee=i.createContext(void 0);function FO(e){const t=i.useContext(nee);return e||t||"ltr"}var Pf="rovingFocusGroup.onEntryFocus",oee={bubbles:!1,cancelable:!0},$a="RovingFocusGroup",[Wp,WO,aee]=ree($a),[see,$O]=Ou($a,[aee]),[iee,cee]=see($a),zO=i.forwardRef((e,t)=>ne.jsx(Wp.Provider,{scope:e.__scopeRovingFocusGroup,children:ne.jsx(Wp.Slot,{scope:e.__scopeRovingFocusGroup,children:ne.jsx(uee,{...e,ref:t})})}));zO.displayName=$a;var uee=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:a,currentTabStopId:c,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:m,onEntryFocus:f,preventScrollOnEntryFocus:l=!1,...p}=e,v=i.useRef(null),g=Rt(t,v),E=FO(a),[u,h]=kC({prop:c,defaultProp:s??null,onChange:m,caller:$a}),[y,b]=i.useState(!1),w=$o(f),k=WO(r),C=i.useRef(!1),[N,S]=i.useState(0);return i.useEffect(()=>{const R=v.current;if(R)return R.addEventListener(Pf,w),()=>R.removeEventListener(Pf,w)},[w]),ne.jsx(iee,{scope:r,orientation:n,dir:E,loop:o,currentTabStopId:u,onItemFocus:i.useCallback(R=>h(R),[h]),onItemShiftTab:i.useCallback(()=>b(!0),[]),onFocusableItemAdd:i.useCallback(()=>S(R=>R+1),[]),onFocusableItemRemove:i.useCallback(()=>S(R=>R-1),[]),children:ne.jsx(Le.div,{tabIndex:y||N===0?-1:0,"data-orientation":n,...p,ref:g,style:{outline:"none",...e.style},onMouseDown:Ne(e.onMouseDown,()=>{C.current=!0}),onFocus:Ne(e.onFocus,R=>{const D=!C.current;if(R.target===R.currentTarget&&D&&!y){const L=new CustomEvent(Pf,oee);if(R.currentTarget.dispatchEvent(L),!L.defaultPrevented){const I=k().filter(M=>M.focusable),$=I.find(M=>M.active),U=I.find(M=>M.id===u),W=[$,U,...I].filter(Boolean).map(M=>M.ref.current);BO(W,l)}}C.current=!1}),onBlur:Ne(e.onBlur,()=>b(!1))})})}),UO="RovingFocusGroupItem",YO=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:a,children:c,...s}=e,m=EC(),f=a||m,l=cee(UO,r),p=l.currentTabStopId===f,v=WO(r),{onFocusableItemAdd:g,onFocusableItemRemove:E,currentTabStopId:u}=l;return i.useEffect(()=>{if(n)return g(),()=>E()},[n,g,E]),ne.jsx(Wp.ItemSlot,{scope:r,id:f,focusable:n,active:o,children:ne.jsx(Le.span,{tabIndex:p?0:-1,"data-orientation":l.orientation,...s,ref:t,onMouseDown:Ne(e.onMouseDown,h=>{n?l.onItemFocus(f):h.preventDefault()}),onFocus:Ne(e.onFocus,()=>l.onItemFocus(f)),onKeyDown:Ne(e.onKeyDown,h=>{if(h.key==="Tab"&&h.shiftKey){l.onItemShiftTab();return}if(h.target!==h.currentTarget)return;const y=fee(h,l.orientation,l.dir);if(y!==void 0){if(h.metaKey||h.ctrlKey||h.altKey||h.shiftKey)return;h.preventDefault();let b=v().filter(w=>w.focusable).map(w=>w.ref.current);if(y==="last")b.reverse();else if(y==="prev"||y==="next"){y==="prev"&&b.reverse();const w=b.indexOf(h.currentTarget);b=l.loop?pee(b,w+1):b.slice(w+1)}setTimeout(()=>BO(b))}}),children:typeof c=="function"?c({isCurrentTabStop:p,hasTabStop:u!=null}):c})})});YO.displayName=UO;var lee={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function dee(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function fee(e,t,r){const n=dee(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return lee[n]}function BO(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function pee(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var mee=zO,vee=YO,$u="Tabs",[hee]=Ou($u,[$O]),KO=$O(),[gee,qm]=hee($u),yee=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,onValueChange:o,defaultValue:a,orientation:c="horizontal",dir:s,activationMode:m="automatic",...f}=e,l=FO(s),[p,v]=kC({prop:n,onChange:o,defaultProp:a??"",caller:$u});return ne.jsx(gee,{scope:r,baseId:EC(),value:p,onValueChange:v,orientation:c,dir:l,activationMode:m,children:ne.jsx(Le.div,{dir:l,"data-orientation":c,...f,ref:t})})});yee.displayName=$u;var XO="TabsList",bee=i.forwardRef((e,t)=>{const{__scopeTabs:r,loop:n=!0,...o}=e,a=qm(XO,r),c=KO(r);return ne.jsx(mee,{asChild:!0,...c,orientation:a.orientation,dir:a.dir,loop:n,children:ne.jsx(Le.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});bee.displayName=XO;var HO="TabsTrigger",wee=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,disabled:o=!1,...a}=e,c=qm(HO,r),s=KO(r),m=qO(c.baseId,n),f=ZO(c.baseId,n),l=n===c.value;return ne.jsx(vee,{asChild:!0,...s,focusable:!o,active:l,children:ne.jsx(Le.button,{type:"button",role:"tab","aria-selected":l,"aria-controls":f,"data-state":l?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:m,...a,ref:t,onMouseDown:Ne(e.onMouseDown,p=>{!o&&p.button===0&&p.ctrlKey===!1?c.onValueChange(n):p.preventDefault()}),onKeyDown:Ne(e.onKeyDown,p=>{[" ","Enter"].includes(p.key)&&c.onValueChange(n)}),onFocus:Ne(e.onFocus,()=>{const p=c.activationMode!=="manual";!l&&!o&&p&&c.onValueChange(n)})})})});wee.displayName=HO;var VO="TabsContent",xee=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,forceMount:o,children:a,...c}=e,s=qm(VO,r),m=qO(s.baseId,n),f=ZO(s.baseId,n),l=n===s.value,p=i.useRef(l);return i.useEffect(()=>{const v=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(v)},[]),ne.jsx(Nu,{present:o||l,children:({present:v})=>ne.jsx(Le.div,{"data-state":l?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":m,hidden:!v,id:f,tabIndex:0,...c,ref:t,style:{...e.style,animationDuration:p.current?"0s":void 0},children:v&&a})})});xee.displayName=VO;function qO(e,t){return`${e}-trigger-${t}`}function ZO(e,t){return`${e}-content-${t}`}i.createContext({});i.createContext({});function Eee(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}Array(12).fill(0);let $p=1;class kee{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const r=this.subscribers.indexOf(t);this.subscribers.splice(r,1)}),this.publish=t=>{this.subscribers.forEach(r=>r(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var r;const{message:n,...o}=t,a=typeof t?.id=="number"||((r=t.id)==null?void 0:r.length)>0?t.id:$p++,c=this.toasts.find(m=>m.id===a),s=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(a)&&this.dismissedToasts.delete(a),c?this.toasts=this.toasts.map(m=>m.id===a?(this.publish({...m,...t,id:a,title:n}),{...m,...t,id:a,dismissible:s,title:n}):m):this.addToast({title:n,...o,dismissible:s,id:a}),a},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(r=>r({id:t,dismiss:!0})))):this.toasts.forEach(r=>{this.subscribers.forEach(n=>n({id:r.id,dismiss:!0}))}),t),this.message=(t,r)=>this.create({...r,message:t}),this.error=(t,r)=>this.create({...r,message:t,type:"error"}),this.success=(t,r)=>this.create({...r,type:"success",message:t}),this.info=(t,r)=>this.create({...r,type:"info",message:t}),this.warning=(t,r)=>this.create({...r,type:"warning",message:t}),this.loading=(t,r)=>this.create({...r,type:"loading",message:t}),this.promise=(t,r)=>{if(!r)return;let n;r.loading!==void 0&&(n=this.create({...r,promise:t,type:"loading",message:r.loading,description:typeof r.description!="function"?r.description:void 0}));const o=Promise.resolve(t instanceof Function?t():t);let a=n!==void 0,c;const s=o.then(async f=>{if(c=["resolve",f],P.isValidElement(f))a=!1,this.create({id:n,type:"default",message:f});else if(Cee(f)&&!f.ok){a=!1;const l=typeof r.error=="function"?await r.error(`HTTP error! status: ${f.status}`):r.error,p=typeof r.description=="function"?await r.description(`HTTP error! status: ${f.status}`):r.description,v=typeof l=="object"&&!P.isValidElement(l)?l:{message:l};this.create({id:n,type:"error",description:p,...v})}else if(f instanceof Error){a=!1;const l=typeof r.error=="function"?await r.error(f):r.error,p=typeof r.description=="function"?await r.description(f):r.description,v=typeof l=="object"&&!P.isValidElement(l)?l:{message:l};this.create({id:n,type:"error",description:p,...v})}else if(r.success!==void 0){a=!1;const l=typeof r.success=="function"?await r.success(f):r.success,p=typeof r.description=="function"?await r.description(f):r.description,v=typeof l=="object"&&!P.isValidElement(l)?l:{message:l};this.create({id:n,type:"success",description:p,...v})}}).catch(async f=>{if(c=["reject",f],r.error!==void 0){a=!1;const l=typeof r.error=="function"?await r.error(f):r.error,p=typeof r.description=="function"?await r.description(f):r.description,v=typeof l=="object"&&!P.isValidElement(l)?l:{message:l};this.create({id:n,type:"error",description:p,...v})}}).finally(()=>{a&&(this.dismiss(n),n=void 0),r.finally==null||r.finally.call(r)}),m=()=>new Promise((f,l)=>s.then(()=>c[0]==="reject"?l(c[1]):f(c[1])).catch(l));return typeof n!="string"&&typeof n!="number"?{unwrap:m}:Object.assign(n,{unwrap:m})},this.custom=(t,r)=>{const n=r?.id||$p++;return this.create({jsx:t(n),id:n,...r}),n},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const Be=new kee,See=(e,t)=>{const r=t?.id||$p++;return Be.addToast({title:e,...t,id:r}),r},Cee=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",Ree=See,Oee=()=>Be.toasts,Nee=()=>Be.getActiveToasts();Object.assign(Ree,{success:Be.success,info:Be.info,warning:Be.warning,error:Be.error,custom:Be.custom,message:Be.message,promise:Be.promise,dismiss:Be.dismiss,loading:Be.loading},{getHistory:Oee,getToasts:Nee});Eee("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function _ee(e){const t=e+"CollectionProvider",[r,n]=Su(t),[o,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),c=u=>{const{scope:h,children:y}=u,b=P.useRef(null),w=P.useRef(new Map).current;return re.jsx(o,{scope:h,itemMap:w,collectionRef:b,children:y})};c.displayName=t;const s=e+"CollectionSlot",m=q.createSlot(s),f=P.forwardRef((u,h)=>{const{scope:y,children:b}=u,w=a(s,y),k=Ct(h,w.collectionRef);return re.jsx(m,{ref:k,children:b})});f.displayName=s;const l=e+"CollectionItemSlot",p="data-radix-collection-item",v=q.createSlot(l),g=P.forwardRef((u,h)=>{const{scope:y,children:b,...w}=u,k=P.useRef(null),C=Ct(h,k),N=a(l,y);return P.useEffect(()=>(N.itemMap.set(k,{ref:k,...w}),()=>void N.itemMap.delete(k))),re.jsx(v,{[p]:"",ref:C,children:b})});g.displayName=l;function E(u){const h=a(e+"CollectionConsumer",u);return P.useCallback(()=>{const y=h.collectionRef.current;if(!y)return[];const b=Array.from(y.querySelectorAll(`[${p}]`));return Array.from(h.itemMap.values()).sort((w,k)=>b.indexOf(w.ref.current)-b.indexOf(k.ref.current))},[h.collectionRef,h.itemMap])}return[{Provider:c,Slot:f,ItemSlot:g},E,n]}var Tee=i.createContext(void 0);function GO(e){const t=i.useContext(Tee);return e||t||"ltr"}var Mf="rovingFocusGroup.onEntryFocus",Dee={bubbles:!1,cancelable:!0},za="RovingFocusGroup",[zp,JO,jee]=_ee(za),[Pee,QO]=Su(za,[jee]),[Mee,Aee]=Pee(za),eN=i.forwardRef((e,t)=>re.jsx(zp.Provider,{scope:e.__scopeRovingFocusGroup,children:re.jsx(zp.Slot,{scope:e.__scopeRovingFocusGroup,children:re.jsx(Iee,{...e,ref:t})})}));eN.displayName=za;var Iee=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:a,currentTabStopId:c,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:m,onEntryFocus:f,preventScrollOnEntryFocus:l=!1,...p}=e,v=i.useRef(null),g=Ct(t,v),E=GO(a),[u,h]=J1({prop:c,defaultProp:s??null,onChange:m,caller:za}),[y,b]=i.useState(!1),w=Wo(f),k=JO(r),C=i.useRef(!1),[N,S]=i.useState(0);return i.useEffect(()=>{const R=v.current;if(R)return R.addEventListener(Mf,w),()=>R.removeEventListener(Mf,w)},[w]),re.jsx(Mee,{scope:r,orientation:n,dir:E,loop:o,currentTabStopId:u,onItemFocus:i.useCallback(R=>h(R),[h]),onItemShiftTab:i.useCallback(()=>b(!0),[]),onFocusableItemAdd:i.useCallback(()=>S(R=>R+1),[]),onFocusableItemRemove:i.useCallback(()=>S(R=>R-1),[]),children:re.jsx(Ie.div,{tabIndex:y||N===0?-1:0,"data-orientation":n,...p,ref:g,style:{outline:"none",...e.style},onMouseDown:Oe(e.onMouseDown,()=>{C.current=!0}),onFocus:Oe(e.onFocus,R=>{const D=!C.current;if(R.target===R.currentTarget&&D&&!y){const L=new CustomEvent(Mf,Dee);if(R.currentTarget.dispatchEvent(L),!L.defaultPrevented){const I=k().filter(M=>M.focusable),$=I.find(M=>M.active),U=I.find(M=>M.id===u),W=[$,U,...I].filter(Boolean).map(M=>M.ref.current);nN(W,l)}}C.current=!1}),onBlur:Oe(e.onBlur,()=>b(!1))})})}),tN="RovingFocusGroupItem",rN=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:a,children:c,...s}=e,m=G1(),f=a||m,l=Aee(tN,r),p=l.currentTabStopId===f,v=JO(r),{onFocusableItemAdd:g,onFocusableItemRemove:E,currentTabStopId:u}=l;return i.useEffect(()=>{if(n)return g(),()=>E()},[n,g,E]),re.jsx(zp.ItemSlot,{scope:r,id:f,focusable:n,active:o,children:re.jsx(Ie.span,{tabIndex:p?0:-1,"data-orientation":l.orientation,...s,ref:t,onMouseDown:Oe(e.onMouseDown,h=>{n?l.onItemFocus(f):h.preventDefault()}),onFocus:Oe(e.onFocus,()=>l.onItemFocus(f)),onKeyDown:Oe(e.onKeyDown,h=>{if(h.key==="Tab"&&h.shiftKey){l.onItemShiftTab();return}if(h.target!==h.currentTarget)return;const y=Wee(h,l.orientation,l.dir);if(y!==void 0){if(h.metaKey||h.ctrlKey||h.altKey||h.shiftKey)return;h.preventDefault();let b=v().filter(w=>w.focusable).map(w=>w.ref.current);if(y==="last")b.reverse();else if(y==="prev"||y==="next"){y==="prev"&&b.reverse();const w=b.indexOf(h.currentTarget);b=l.loop?$ee(b,w+1):b.slice(w+1)}setTimeout(()=>nN(b))}}),children:typeof c=="function"?c({isCurrentTabStop:p,hasTabStop:u!=null}):c})})});rN.displayName=tN;var Lee={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Fee(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Wee(e,t,r){const n=Fee(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return Lee[n]}function nN(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function $ee(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var zee=eN,Uee=rN,zu="Tabs",[Yee]=Su(zu,[QO]),oN=QO(),[Bee,Zm]=Yee(zu),Kee=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,onValueChange:o,defaultValue:a,orientation:c="horizontal",dir:s,activationMode:m="automatic",...f}=e,l=GO(s),[p,v]=J1({prop:n,onChange:o,defaultProp:a??"",caller:zu});return re.jsx(Bee,{scope:r,baseId:G1(),value:p,onValueChange:v,orientation:c,dir:l,activationMode:m,children:re.jsx(Ie.div,{dir:l,"data-orientation":c,...f,ref:t})})});Kee.displayName=zu;var aN="TabsList",Xee=i.forwardRef((e,t)=>{const{__scopeTabs:r,loop:n=!0,...o}=e,a=Zm(aN,r),c=oN(r);return re.jsx(zee,{asChild:!0,...c,orientation:a.orientation,dir:a.dir,loop:n,children:re.jsx(Ie.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});Xee.displayName=aN;var sN="TabsTrigger",Hee=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,disabled:o=!1,...a}=e,c=Zm(sN,r),s=oN(r),m=cN(c.baseId,n),f=uN(c.baseId,n),l=n===c.value;return re.jsx(Uee,{asChild:!0,...s,focusable:!o,active:l,children:re.jsx(Ie.button,{type:"button",role:"tab","aria-selected":l,"aria-controls":f,"data-state":l?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:m,...a,ref:t,onMouseDown:Oe(e.onMouseDown,p=>{!o&&p.button===0&&p.ctrlKey===!1?c.onValueChange(n):p.preventDefault()}),onKeyDown:Oe(e.onKeyDown,p=>{[" ","Enter"].includes(p.key)&&c.onValueChange(n)}),onFocus:Oe(e.onFocus,()=>{const p=c.activationMode!=="manual";!l&&!o&&p&&c.onValueChange(n)})})})});Hee.displayName=sN;var iN="TabsContent",Vee=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,forceMount:o,children:a,...c}=e,s=Zm(iN,r),m=cN(s.baseId,n),f=uN(s.baseId,n),l=n===s.value,p=i.useRef(l);return i.useEffect(()=>{const v=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(v)},[]),re.jsx(Cu,{present:o||l,children:({present:v})=>re.jsx(Ie.div,{"data-state":l?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":m,hidden:!v,id:f,tabIndex:0,...c,ref:t,style:{...e.style,animationDuration:p.current?"0s":void 0},children:v&&a})})});Vee.displayName=iN;function cN(e,t){return`${e}-trigger-${t}`}function uN(e,t){return`${e}-content-${t}`}i.createContext({});i.createContext({});function qee(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}Array(12).fill(0);let Up=1;class Zee{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const r=this.subscribers.indexOf(t);this.subscribers.splice(r,1)}),this.publish=t=>{this.subscribers.forEach(r=>r(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var r;const{message:n,...o}=t,a=typeof t?.id=="number"||((r=t.id)==null?void 0:r.length)>0?t.id:Up++,c=this.toasts.find(m=>m.id===a),s=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(a)&&this.dismissedToasts.delete(a),c?this.toasts=this.toasts.map(m=>m.id===a?(this.publish({...m,...t,id:a,title:n}),{...m,...t,id:a,dismissible:s,title:n}):m):this.addToast({title:n,...o,dismissible:s,id:a}),a},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(r=>r({id:t,dismiss:!0})))):this.toasts.forEach(r=>{this.subscribers.forEach(n=>n({id:r.id,dismiss:!0}))}),t),this.message=(t,r)=>this.create({...r,message:t}),this.error=(t,r)=>this.create({...r,message:t,type:"error"}),this.success=(t,r)=>this.create({...r,type:"success",message:t}),this.info=(t,r)=>this.create({...r,type:"info",message:t}),this.warning=(t,r)=>this.create({...r,type:"warning",message:t}),this.loading=(t,r)=>this.create({...r,type:"loading",message:t}),this.promise=(t,r)=>{if(!r)return;let n;r.loading!==void 0&&(n=this.create({...r,promise:t,type:"loading",message:r.loading,description:typeof r.description!="function"?r.description:void 0}));const o=Promise.resolve(t instanceof Function?t():t);let a=n!==void 0,c;const s=o.then(async f=>{if(c=["resolve",f],P.isValidElement(f))a=!1,this.create({id:n,type:"default",message:f});else if(Jee(f)&&!f.ok){a=!1;const l=typeof r.error=="function"?await r.error(`HTTP error! status: ${f.status}`):r.error,p=typeof r.description=="function"?await r.description(`HTTP error! status: ${f.status}`):r.description,v=typeof l=="object"&&!P.isValidElement(l)?l:{message:l};this.create({id:n,type:"error",description:p,...v})}else if(f instanceof Error){a=!1;const l=typeof r.error=="function"?await r.error(f):r.error,p=typeof r.description=="function"?await r.description(f):r.description,v=typeof l=="object"&&!P.isValidElement(l)?l:{message:l};this.create({id:n,type:"error",description:p,...v})}else if(r.success!==void 0){a=!1;const l=typeof r.success=="function"?await r.success(f):r.success,p=typeof r.description=="function"?await r.description(f):r.description,v=typeof l=="object"&&!P.isValidElement(l)?l:{message:l};this.create({id:n,type:"success",description:p,...v})}}).catch(async f=>{if(c=["reject",f],r.error!==void 0){a=!1;const l=typeof r.error=="function"?await r.error(f):r.error,p=typeof r.description=="function"?await r.description(f):r.description,v=typeof l=="object"&&!P.isValidElement(l)?l:{message:l};this.create({id:n,type:"error",description:p,...v})}}).finally(()=>{a&&(this.dismiss(n),n=void 0),r.finally==null||r.finally.call(r)}),m=()=>new Promise((f,l)=>s.then(()=>c[0]==="reject"?l(c[1]):f(c[1])).catch(l));return typeof n!="string"&&typeof n!="number"?{unwrap:m}:Object.assign(n,{unwrap:m})},this.custom=(t,r)=>{const n=r?.id||Up++;return this.create({jsx:t(n),id:n,...r}),n},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const Ke=new Zee,Gee=(e,t)=>{const r=t?.id||Up++;return Ke.addToast({title:e,...t,id:r}),r},Jee=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",Qee=Gee,ete=()=>Ke.toasts,tte=()=>Ke.getActiveToasts();Object.assign(Qee,{success:Ke.success,info:Ke.info,warning:Ke.warning,error:Ke.error,custom:Ke.custom,message:Ke.message,promise:Ke.promise,dismiss:Ke.dismiss,loading:Ke.loading},{getHistory:ete,getToasts:tte});qee("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function rte(e){const t=e+"CollectionProvider",[r,n]=xu(t),[o,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),c=u=>{const{scope:h,children:y}=u,b=P.useRef(null),w=P.useRef(new Map).current;return te.jsx(o,{scope:h,itemMap:w,collectionRef:b,children:y})};c.displayName=t;const s=e+"CollectionSlot",m=q.createSlot(s),f=P.forwardRef((u,h)=>{const{scope:y,children:b}=u,w=a(s,y),k=St(h,w.collectionRef);return te.jsx(m,{ref:k,children:b})});f.displayName=s;const l=e+"CollectionItemSlot",p="data-radix-collection-item",v=q.createSlot(l),g=P.forwardRef((u,h)=>{const{scope:y,children:b,...w}=u,k=P.useRef(null),C=St(h,k),N=a(l,y);return P.useEffect(()=>(N.itemMap.set(k,{ref:k,...w}),()=>void N.itemMap.delete(k))),te.jsx(v,{[p]:"",ref:C,children:b})});g.displayName=l;function E(u){const h=a(e+"CollectionConsumer",u);return P.useCallback(()=>{const y=h.collectionRef.current;if(!y)return[];const b=Array.from(y.querySelectorAll(`[${p}]`));return Array.from(h.itemMap.values()).sort((w,k)=>b.indexOf(w.ref.current)-b.indexOf(k.ref.current))},[h.collectionRef,h.itemMap])}return[{Provider:c,Slot:f,ItemSlot:g},E,n]}var nte=i.createContext(void 0);function lN(e){const t=i.useContext(nte);return e||t||"ltr"}var Af="rovingFocusGroup.onEntryFocus",ote={bubbles:!1,cancelable:!0},Ua="RovingFocusGroup",[Yp,dN,ate]=rte(Ua),[ste,fN]=xu(Ua,[ate]),[ite,cte]=ste(Ua),pN=i.forwardRef((e,t)=>te.jsx(Yp.Provider,{scope:e.__scopeRovingFocusGroup,children:te.jsx(Yp.Slot,{scope:e.__scopeRovingFocusGroup,children:te.jsx(ute,{...e,ref:t})})}));pN.displayName=Ua;var ute=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:a,currentTabStopId:c,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:m,onEntryFocus:f,preventScrollOnEntryFocus:l=!1,...p}=e,v=i.useRef(null),g=St(t,v),E=lN(a),[u,h]=O1({prop:c,defaultProp:s??null,onChange:m,caller:Ua}),[y,b]=i.useState(!1),w=Fo(f),k=dN(r),C=i.useRef(!1),[N,S]=i.useState(0);return i.useEffect(()=>{const R=v.current;if(R)return R.addEventListener(Af,w),()=>R.removeEventListener(Af,w)},[w]),te.jsx(ite,{scope:r,orientation:n,dir:E,loop:o,currentTabStopId:u,onItemFocus:i.useCallback(R=>h(R),[h]),onItemShiftTab:i.useCallback(()=>b(!0),[]),onFocusableItemAdd:i.useCallback(()=>S(R=>R+1),[]),onFocusableItemRemove:i.useCallback(()=>S(R=>R-1),[]),children:te.jsx(Ae.div,{tabIndex:y||N===0?-1:0,"data-orientation":n,...p,ref:g,style:{outline:"none",...e.style},onMouseDown:Re(e.onMouseDown,()=>{C.current=!0}),onFocus:Re(e.onFocus,R=>{const D=!C.current;if(R.target===R.currentTarget&&D&&!y){const L=new CustomEvent(Af,ote);if(R.currentTarget.dispatchEvent(L),!L.defaultPrevented){const I=k().filter(M=>M.focusable),$=I.find(M=>M.active),U=I.find(M=>M.id===u),W=[$,U,...I].filter(Boolean).map(M=>M.ref.current);hN(W,l)}}C.current=!1}),onBlur:Re(e.onBlur,()=>b(!1))})})}),mN="RovingFocusGroupItem",vN=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:a,children:c,...s}=e,m=R1(),f=a||m,l=cte(mN,r),p=l.currentTabStopId===f,v=dN(r),{onFocusableItemAdd:g,onFocusableItemRemove:E,currentTabStopId:u}=l;return i.useEffect(()=>{if(n)return g(),()=>E()},[n,g,E]),te.jsx(Yp.ItemSlot,{scope:r,id:f,focusable:n,active:o,children:te.jsx(Ae.span,{tabIndex:p?0:-1,"data-orientation":l.orientation,...s,ref:t,onMouseDown:Re(e.onMouseDown,h=>{n?l.onItemFocus(f):h.preventDefault()}),onFocus:Re(e.onFocus,()=>l.onItemFocus(f)),onKeyDown:Re(e.onKeyDown,h=>{if(h.key==="Tab"&&h.shiftKey){l.onItemShiftTab();return}if(h.target!==h.currentTarget)return;const y=fte(h,l.orientation,l.dir);if(y!==void 0){if(h.metaKey||h.ctrlKey||h.altKey||h.shiftKey)return;h.preventDefault();let b=v().filter(w=>w.focusable).map(w=>w.ref.current);if(y==="last")b.reverse();else if(y==="prev"||y==="next"){y==="prev"&&b.reverse();const w=b.indexOf(h.currentTarget);b=l.loop?pte(b,w+1):b.slice(w+1)}setTimeout(()=>hN(b))}}),children:typeof c=="function"?c({isCurrentTabStop:p,hasTabStop:u!=null}):c})})});vN.displayName=mN;var lte={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function dte(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function fte(e,t,r){const n=dte(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return lte[n]}function hN(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function pte(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var mte=pN,vte=vN,Uu="Tabs",[hte]=xu(Uu,[fN]),gN=fN(),[gte,Gm]=hte(Uu),yte=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,onValueChange:o,defaultValue:a,orientation:c="horizontal",dir:s,activationMode:m="automatic",...f}=e,l=lN(s),[p,v]=O1({prop:n,onChange:o,defaultProp:a??"",caller:Uu});return te.jsx(gte,{scope:r,baseId:R1(),value:p,onValueChange:v,orientation:c,dir:l,activationMode:m,children:te.jsx(Ae.div,{dir:l,"data-orientation":c,...f,ref:t})})});yte.displayName=Uu;var yN="TabsList",bte=i.forwardRef((e,t)=>{const{__scopeTabs:r,loop:n=!0,...o}=e,a=Gm(yN,r),c=gN(r);return te.jsx(mte,{asChild:!0,...c,orientation:a.orientation,dir:a.dir,loop:n,children:te.jsx(Ae.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});bte.displayName=yN;var bN="TabsTrigger",wte=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,disabled:o=!1,...a}=e,c=Gm(bN,r),s=gN(r),m=xN(c.baseId,n),f=EN(c.baseId,n),l=n===c.value;return te.jsx(vte,{asChild:!0,...s,focusable:!o,active:l,children:te.jsx(Ae.button,{type:"button",role:"tab","aria-selected":l,"aria-controls":f,"data-state":l?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:m,...a,ref:t,onMouseDown:Re(e.onMouseDown,p=>{!o&&p.button===0&&p.ctrlKey===!1?c.onValueChange(n):p.preventDefault()}),onKeyDown:Re(e.onKeyDown,p=>{[" ","Enter"].includes(p.key)&&c.onValueChange(n)}),onFocus:Re(e.onFocus,()=>{const p=c.activationMode!=="manual";!l&&!o&&p&&c.onValueChange(n)})})})});wte.displayName=bN;var wN="TabsContent",xte=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,forceMount:o,children:a,...c}=e,s=Gm(wN,r),m=xN(s.baseId,n),f=EN(s.baseId,n),l=n===s.value,p=i.useRef(l);return i.useEffect(()=>{const v=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(v)},[]),te.jsx(Eu,{present:o||l,children:({present:v})=>te.jsx(Ae.div,{"data-state":l?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":m,hidden:!v,id:f,tabIndex:0,...c,ref:t,style:{...e.style,animationDuration:p.current?"0s":void 0},children:v&&a})})});xte.displayName=wN;function xN(e,t){return`${e}-trigger-${t}`}function EN(e,t){return`${e}-content-${t}`}i.createContext({});i.createContext({});function Ete(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}Array(12).fill(0);let Bp=1;class kte{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const r=this.subscribers.indexOf(t);this.subscribers.splice(r,1)}),this.publish=t=>{this.subscribers.forEach(r=>r(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var r;const{message:n,...o}=t,a=typeof t?.id=="number"||((r=t.id)==null?void 0:r.length)>0?t.id:Bp++,c=this.toasts.find(m=>m.id===a),s=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(a)&&this.dismissedToasts.delete(a),c?this.toasts=this.toasts.map(m=>m.id===a?(this.publish({...m,...t,id:a,title:n}),{...m,...t,id:a,dismissible:s,title:n}):m):this.addToast({title:n,...o,dismissible:s,id:a}),a},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(r=>r({id:t,dismiss:!0})))):this.toasts.forEach(r=>{this.subscribers.forEach(n=>n({id:r.id,dismiss:!0}))}),t),this.message=(t,r)=>this.create({...r,message:t}),this.error=(t,r)=>this.create({...r,message:t,type:"error"}),this.success=(t,r)=>this.create({...r,type:"success",message:t}),this.info=(t,r)=>this.create({...r,type:"info",message:t}),this.warning=(t,r)=>this.create({...r,type:"warning",message:t}),this.loading=(t,r)=>this.create({...r,type:"loading",message:t}),this.promise=(t,r)=>{if(!r)return;let n;r.loading!==void 0&&(n=this.create({...r,promise:t,type:"loading",message:r.loading,description:typeof r.description!="function"?r.description:void 0}));const o=Promise.resolve(t instanceof Function?t():t);let a=n!==void 0,c;const s=o.then(async f=>{if(c=["resolve",f],P.isValidElement(f))a=!1,this.create({id:n,type:"default",message:f});else if(Cte(f)&&!f.ok){a=!1;const l=typeof r.error=="function"?await r.error(`HTTP error! status: ${f.status}`):r.error,p=typeof r.description=="function"?await r.description(`HTTP error! status: ${f.status}`):r.description,v=typeof l=="object"&&!P.isValidElement(l)?l:{message:l};this.create({id:n,type:"error",description:p,...v})}else if(f instanceof Error){a=!1;const l=typeof r.error=="function"?await r.error(f):r.error,p=typeof r.description=="function"?await r.description(f):r.description,v=typeof l=="object"&&!P.isValidElement(l)?l:{message:l};this.create({id:n,type:"error",description:p,...v})}else if(r.success!==void 0){a=!1;const l=typeof r.success=="function"?await r.success(f):r.success,p=typeof r.description=="function"?await r.description(f):r.description,v=typeof l=="object"&&!P.isValidElement(l)?l:{message:l};this.create({id:n,type:"success",description:p,...v})}}).catch(async f=>{if(c=["reject",f],r.error!==void 0){a=!1;const l=typeof r.error=="function"?await r.error(f):r.error,p=typeof r.description=="function"?await r.description(f):r.description,v=typeof l=="object"&&!P.isValidElement(l)?l:{message:l};this.create({id:n,type:"error",description:p,...v})}}).finally(()=>{a&&(this.dismiss(n),n=void 0),r.finally==null||r.finally.call(r)}),m=()=>new Promise((f,l)=>s.then(()=>c[0]==="reject"?l(c[1]):f(c[1])).catch(l));return typeof n!="string"&&typeof n!="number"?{unwrap:m}:Object.assign(n,{unwrap:m})},this.custom=(t,r)=>{const n=r?.id||Bp++;return this.create({jsx:t(n),id:n,...r}),n},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const Xe=new kte,Ste=(e,t)=>{const r=t?.id||Bp++;return Xe.addToast({title:e,...t,id:r}),r},Cte=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",Rte=Ste,Ote=()=>Xe.toasts,Nte=()=>Xe.getActiveToasts();Object.assign(Rte,{success:Xe.success,info:Xe.info,warning:Xe.warning,error:Xe.error,custom:Xe.custom,message:Xe.message,promise:Xe.promise,dismiss:Xe.dismiss,loading:Xe.loading},{getHistory:Ote,getToasts:Nte});Ete("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function _te(e){const t=e+"CollectionProvider",[r,n]=yu(t),[o,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),c=u=>{const{scope:h,children:y}=u,b=P.useRef(null),w=P.useRef(new Map).current;return ee.jsx(o,{scope:h,itemMap:w,collectionRef:b,children:y})};c.displayName=t;const s=e+"CollectionSlot",m=q.createSlot(s),f=P.forwardRef((u,h)=>{const{scope:y,children:b}=u,w=a(s,y),k=kt(h,w.collectionRef);return ee.jsx(m,{ref:k,children:b})});f.displayName=s;const l=e+"CollectionItemSlot",p="data-radix-collection-item",v=q.createSlot(l),g=P.forwardRef((u,h)=>{const{scope:y,children:b,...w}=u,k=P.useRef(null),C=kt(h,k),N=a(l,y);return P.useEffect(()=>(N.itemMap.set(k,{ref:k,...w}),()=>void N.itemMap.delete(k))),ee.jsx(v,{[p]:"",ref:C,children:b})});g.displayName=l;function E(u){const h=a(e+"CollectionConsumer",u);return P.useCallback(()=>{const y=h.collectionRef.current;if(!y)return[];const b=Array.from(y.querySelectorAll(`[${p}]`));return Array.from(h.itemMap.values()).sort((w,k)=>b.indexOf(w.ref.current)-b.indexOf(k.ref.current))},[h.collectionRef,h.itemMap])}return[{Provider:c,Slot:f,ItemSlot:g},E,n]}var Tte=i.createContext(void 0);function kN(e){const t=i.useContext(Tte);return e||t||"ltr"}var If="rovingFocusGroup.onEntryFocus",Dte={bubbles:!1,cancelable:!0},Ya="RovingFocusGroup",[Kp,SN,jte]=_te(Ya),[Pte,CN]=yu(Ya,[jte]),[Mte,Ate]=Pte(Ya),RN=i.forwardRef((e,t)=>ee.jsx(Kp.Provider,{scope:e.__scopeRovingFocusGroup,children:ee.jsx(Kp.Slot,{scope:e.__scopeRovingFocusGroup,children:ee.jsx(Ite,{...e,ref:t})})}));RN.displayName=Ya;var Ite=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:a,currentTabStopId:c,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:m,onEntryFocus:f,preventScrollOnEntryFocus:l=!1,...p}=e,v=i.useRef(null),g=kt(t,v),E=kN(a),[u,h]=r1({prop:c,defaultProp:s??null,onChange:m,caller:Ya}),[y,b]=i.useState(!1),w=Lo(f),k=SN(r),C=i.useRef(!1),[N,S]=i.useState(0);return i.useEffect(()=>{const R=v.current;if(R)return R.addEventListener(If,w),()=>R.removeEventListener(If,w)},[w]),ee.jsx(Mte,{scope:r,orientation:n,dir:E,loop:o,currentTabStopId:u,onItemFocus:i.useCallback(R=>h(R),[h]),onItemShiftTab:i.useCallback(()=>b(!0),[]),onFocusableItemAdd:i.useCallback(()=>S(R=>R+1),[]),onFocusableItemRemove:i.useCallback(()=>S(R=>R-1),[]),children:ee.jsx(Me.div,{tabIndex:y||N===0?-1:0,"data-orientation":n,...p,ref:g,style:{outline:"none",...e.style},onMouseDown:Ce(e.onMouseDown,()=>{C.current=!0}),onFocus:Ce(e.onFocus,R=>{const D=!C.current;if(R.target===R.currentTarget&&D&&!y){const L=new CustomEvent(If,Dte);if(R.currentTarget.dispatchEvent(L),!L.defaultPrevented){const I=k().filter(M=>M.focusable),$=I.find(M=>M.active),U=I.find(M=>M.id===u),W=[$,U,...I].filter(Boolean).map(M=>M.ref.current);_N(W,l)}}C.current=!1}),onBlur:Ce(e.onBlur,()=>b(!1))})})}),ON="RovingFocusGroupItem",NN=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:a,children:c,...s}=e,m=t1(),f=a||m,l=Ate(ON,r),p=l.currentTabStopId===f,v=SN(r),{onFocusableItemAdd:g,onFocusableItemRemove:E,currentTabStopId:u}=l;return i.useEffect(()=>{if(n)return g(),()=>E()},[n,g,E]),ee.jsx(Kp.ItemSlot,{scope:r,id:f,focusable:n,active:o,children:ee.jsx(Me.span,{tabIndex:p?0:-1,"data-orientation":l.orientation,...s,ref:t,onMouseDown:Ce(e.onMouseDown,h=>{n?l.onItemFocus(f):h.preventDefault()}),onFocus:Ce(e.onFocus,()=>l.onItemFocus(f)),onKeyDown:Ce(e.onKeyDown,h=>{if(h.key==="Tab"&&h.shiftKey){l.onItemShiftTab();return}if(h.target!==h.currentTarget)return;const y=Wte(h,l.orientation,l.dir);if(y!==void 0){if(h.metaKey||h.ctrlKey||h.altKey||h.shiftKey)return;h.preventDefault();let b=v().filter(w=>w.focusable).map(w=>w.ref.current);if(y==="last")b.reverse();else if(y==="prev"||y==="next"){y==="prev"&&b.reverse();const w=b.indexOf(h.currentTarget);b=l.loop?$te(b,w+1):b.slice(w+1)}setTimeout(()=>_N(b))}}),children:typeof c=="function"?c({isCurrentTabStop:p,hasTabStop:u!=null}):c})})});NN.displayName=ON;var Lte={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Fte(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Wte(e,t,r){const n=Fte(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return Lte[n]}function _N(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function $te(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var zte=RN,Ute=NN,Yu="Tabs",[Yte]=yu(Yu,[CN]),TN=CN(),[Bte,Jm]=Yte(Yu),Kte=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,onValueChange:o,defaultValue:a,orientation:c="horizontal",dir:s,activationMode:m="automatic",...f}=e,l=kN(s),[p,v]=r1({prop:n,onChange:o,defaultProp:a??"",caller:Yu});return ee.jsx(Bte,{scope:r,baseId:t1(),value:p,onValueChange:v,orientation:c,dir:l,activationMode:m,children:ee.jsx(Me.div,{dir:l,"data-orientation":c,...f,ref:t})})});Kte.displayName=Yu;var DN="TabsList",Xte=i.forwardRef((e,t)=>{const{__scopeTabs:r,loop:n=!0,...o}=e,a=Jm(DN,r),c=TN(r);return ee.jsx(zte,{asChild:!0,...c,orientation:a.orientation,dir:a.dir,loop:n,children:ee.jsx(Me.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});Xte.displayName=DN;var jN="TabsTrigger",Hte=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,disabled:o=!1,...a}=e,c=Jm(jN,r),s=TN(r),m=MN(c.baseId,n),f=AN(c.baseId,n),l=n===c.value;return ee.jsx(Ute,{asChild:!0,...s,focusable:!o,active:l,children:ee.jsx(Me.button,{type:"button",role:"tab","aria-selected":l,"aria-controls":f,"data-state":l?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:m,...a,ref:t,onMouseDown:Ce(e.onMouseDown,p=>{!o&&p.button===0&&p.ctrlKey===!1?c.onValueChange(n):p.preventDefault()}),onKeyDown:Ce(e.onKeyDown,p=>{[" ","Enter"].includes(p.key)&&c.onValueChange(n)}),onFocus:Ce(e.onFocus,()=>{const p=c.activationMode!=="manual";!l&&!o&&p&&c.onValueChange(n)})})})});Hte.displayName=jN;var PN="TabsContent",Vte=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,forceMount:o,children:a,...c}=e,s=Jm(PN,r),m=MN(s.baseId,n),f=AN(s.baseId,n),l=n===s.value,p=i.useRef(l);return i.useEffect(()=>{const v=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(v)},[]),ee.jsx(bu,{present:o||l,children:({present:v})=>ee.jsx(Me.div,{"data-state":l?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":m,hidden:!v,id:f,tabIndex:0,...c,ref:t,style:{...e.style,animationDuration:p.current?"0s":void 0},children:v&&a})})});Vte.displayName=PN;function MN(e,t){return`${e}-trigger-${t}`}function AN(e,t){return`${e}-content-${t}`}i.createContext({});i.createContext({});function qte(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}Array(12).fill(0);let Xp=1;class Zte{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const r=this.subscribers.indexOf(t);this.subscribers.splice(r,1)}),this.publish=t=>{this.subscribers.forEach(r=>r(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var r;const{message:n,...o}=t,a=typeof t?.id=="number"||((r=t.id)==null?void 0:r.length)>0?t.id:Xp++,c=this.toasts.find(m=>m.id===a),s=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(a)&&this.dismissedToasts.delete(a),c?this.toasts=this.toasts.map(m=>m.id===a?(this.publish({...m,...t,id:a,title:n}),{...m,...t,id:a,dismissible:s,title:n}):m):this.addToast({title:n,...o,dismissible:s,id:a}),a},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(r=>r({id:t,dismiss:!0})))):this.toasts.forEach(r=>{this.subscribers.forEach(n=>n({id:r.id,dismiss:!0}))}),t),this.message=(t,r)=>this.create({...r,message:t}),this.error=(t,r)=>this.create({...r,message:t,type:"error"}),this.success=(t,r)=>this.create({...r,type:"success",message:t}),this.info=(t,r)=>this.create({...r,type:"info",message:t}),this.warning=(t,r)=>this.create({...r,type:"warning",message:t}),this.loading=(t,r)=>this.create({...r,type:"loading",message:t}),this.promise=(t,r)=>{if(!r)return;let n;r.loading!==void 0&&(n=this.create({...r,promise:t,type:"loading",message:r.loading,description:typeof r.description!="function"?r.description:void 0}));const o=Promise.resolve(t instanceof Function?t():t);let a=n!==void 0,c;const s=o.then(async f=>{if(c=["resolve",f],P.isValidElement(f))a=!1,this.create({id:n,type:"default",message:f});else if(Jte(f)&&!f.ok){a=!1;const l=typeof r.error=="function"?await r.error(`HTTP error! status: ${f.status}`):r.error,p=typeof r.description=="function"?await r.description(`HTTP error! status: ${f.status}`):r.description,v=typeof l=="object"&&!P.isValidElement(l)?l:{message:l};this.create({id:n,type:"error",description:p,...v})}else if(f instanceof Error){a=!1;const l=typeof r.error=="function"?await r.error(f):r.error,p=typeof r.description=="function"?await r.description(f):r.description,v=typeof l=="object"&&!P.isValidElement(l)?l:{message:l};this.create({id:n,type:"error",description:p,...v})}else if(r.success!==void 0){a=!1;const l=typeof r.success=="function"?await r.success(f):r.success,p=typeof r.description=="function"?await r.description(f):r.description,v=typeof l=="object"&&!P.isValidElement(l)?l:{message:l};this.create({id:n,type:"success",description:p,...v})}}).catch(async f=>{if(c=["reject",f],r.error!==void 0){a=!1;const l=typeof r.error=="function"?await r.error(f):r.error,p=typeof r.description=="function"?await r.description(f):r.description,v=typeof l=="object"&&!P.isValidElement(l)?l:{message:l};this.create({id:n,type:"error",description:p,...v})}}).finally(()=>{a&&(this.dismiss(n),n=void 0),r.finally==null||r.finally.call(r)}),m=()=>new Promise((f,l)=>s.then(()=>c[0]==="reject"?l(c[1]):f(c[1])).catch(l));return typeof n!="string"&&typeof n!="number"?{unwrap:m}:Object.assign(n,{unwrap:m})},this.custom=(t,r)=>{const n=r?.id||Xp++;return this.create({jsx:t(n),id:n,...r}),n},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const He=new Zte,Gte=(e,t)=>{const r=t?.id||Xp++;return He.addToast({title:e,...t,id:r}),r},Jte=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",Qte=Gte,ere=()=>He.toasts,tre=()=>He.getActiveToasts();Object.assign(Qte,{success:He.success,info:He.info,warning:He.warning,error:He.error,custom:He.custom,message:He.message,promise:He.promise,dismiss:He.dismiss,loading:He.loading},{getHistory:ere,getToasts:tre});qte("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function rre(e){const t=e+"CollectionProvider",[r,n]=vu(t),[o,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),c=u=>{const{scope:h,children:y}=u,b=P.useRef(null),w=P.useRef(new Map).current;return Q.jsx(o,{scope:h,itemMap:w,collectionRef:b,children:y})};c.displayName=t;const s=e+"CollectionSlot",m=q.createSlot(s),f=P.forwardRef((u,h)=>{const{scope:y,children:b}=u,w=a(s,y),k=Et(h,w.collectionRef);return Q.jsx(m,{ref:k,children:b})});f.displayName=s;const l=e+"CollectionItemSlot",p="data-radix-collection-item",v=q.createSlot(l),g=P.forwardRef((u,h)=>{const{scope:y,children:b,...w}=u,k=P.useRef(null),C=Et(h,k),N=a(l,y);return P.useEffect(()=>(N.itemMap.set(k,{ref:k,...w}),()=>void N.itemMap.delete(k))),Q.jsx(v,{[p]:"",ref:C,children:b})});g.displayName=l;function E(u){const h=a(e+"CollectionConsumer",u);return P.useCallback(()=>{const y=h.collectionRef.current;if(!y)return[];const b=Array.from(y.querySelectorAll(`[${p}]`));return Array.from(h.itemMap.values()).sort((w,k)=>b.indexOf(w.ref.current)-b.indexOf(k.ref.current))},[h.collectionRef,h.itemMap])}return[{Provider:c,Slot:f,ItemSlot:g},E,n]}var nre=i.createContext(void 0);function IN(e){const t=i.useContext(nre);return e||t||"ltr"}var Lf="rovingFocusGroup.onEntryFocus",ore={bubbles:!1,cancelable:!0},Ba="RovingFocusGroup",[Hp,LN,are]=rre(Ba),[sre,FN]=vu(Ba,[are]),[ire,cre]=sre(Ba),WN=i.forwardRef((e,t)=>Q.jsx(Hp.Provider,{scope:e.__scopeRovingFocusGroup,children:Q.jsx(Hp.Slot,{scope:e.__scopeRovingFocusGroup,children:Q.jsx(ure,{...e,ref:t})})}));WN.displayName=Ba;var ure=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:a,currentTabStopId:c,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:m,onEntryFocus:f,preventScrollOnEntryFocus:l=!1,...p}=e,v=i.useRef(null),g=Et(t,v),E=IN(a),[u,h]=DS({prop:c,defaultProp:s??null,onChange:m,caller:Ba}),[y,b]=i.useState(!1),w=Io(f),k=LN(r),C=i.useRef(!1),[N,S]=i.useState(0);return i.useEffect(()=>{const R=v.current;if(R)return R.addEventListener(Lf,w),()=>R.removeEventListener(Lf,w)},[w]),Q.jsx(ire,{scope:r,orientation:n,dir:E,loop:o,currentTabStopId:u,onItemFocus:i.useCallback(R=>h(R),[h]),onItemShiftTab:i.useCallback(()=>b(!0),[]),onFocusableItemAdd:i.useCallback(()=>S(R=>R+1),[]),onFocusableItemRemove:i.useCallback(()=>S(R=>R-1),[]),children:Q.jsx(Pe.div,{tabIndex:y||N===0?-1:0,"data-orientation":n,...p,ref:g,style:{outline:"none",...e.style},onMouseDown:Se(e.onMouseDown,()=>{C.current=!0}),onFocus:Se(e.onFocus,R=>{const D=!C.current;if(R.target===R.currentTarget&&D&&!y){const L=new CustomEvent(Lf,ore);if(R.currentTarget.dispatchEvent(L),!L.defaultPrevented){const I=k().filter(M=>M.focusable),$=I.find(M=>M.active),U=I.find(M=>M.id===u),W=[$,U,...I].filter(Boolean).map(M=>M.ref.current);UN(W,l)}}C.current=!1}),onBlur:Se(e.onBlur,()=>b(!1))})})}),$N="RovingFocusGroupItem",zN=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:a,children:c,...s}=e,m=TS(),f=a||m,l=cre($N,r),p=l.currentTabStopId===f,v=LN(r),{onFocusableItemAdd:g,onFocusableItemRemove:E,currentTabStopId:u}=l;return i.useEffect(()=>{if(n)return g(),()=>E()},[n,g,E]),Q.jsx(Hp.ItemSlot,{scope:r,id:f,focusable:n,active:o,children:Q.jsx(Pe.span,{tabIndex:p?0:-1,"data-orientation":l.orientation,...s,ref:t,onMouseDown:Se(e.onMouseDown,h=>{n?l.onItemFocus(f):h.preventDefault()}),onFocus:Se(e.onFocus,()=>l.onItemFocus(f)),onKeyDown:Se(e.onKeyDown,h=>{if(h.key==="Tab"&&h.shiftKey){l.onItemShiftTab();return}if(h.target!==h.currentTarget)return;const y=fre(h,l.orientation,l.dir);if(y!==void 0){if(h.metaKey||h.ctrlKey||h.altKey||h.shiftKey)return;h.preventDefault();let b=v().filter(w=>w.focusable).map(w=>w.ref.current);if(y==="last")b.reverse();else if(y==="prev"||y==="next"){y==="prev"&&b.reverse();const w=b.indexOf(h.currentTarget);b=l.loop?pre(b,w+1):b.slice(w+1)}setTimeout(()=>UN(b))}}),children:typeof c=="function"?c({isCurrentTabStop:p,hasTabStop:u!=null}):c})})});zN.displayName=$N;var lre={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function dre(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function fre(e,t,r){const n=dre(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return lre[n]}function UN(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function pre(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var mre=WN,vre=zN,Bu="Tabs",[hre]=vu(Bu,[FN]),YN=FN(),[gre,Qm]=hre(Bu),yre=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,onValueChange:o,defaultValue:a,orientation:c="horizontal",dir:s,activationMode:m="automatic",...f}=e,l=IN(s),[p,v]=DS({prop:n,onChange:o,defaultProp:a??"",caller:Bu});return Q.jsx(gre,{scope:r,baseId:TS(),value:p,onValueChange:v,orientation:c,dir:l,activationMode:m,children:Q.jsx(Pe.div,{dir:l,"data-orientation":c,...f,ref:t})})});yre.displayName=Bu;var BN="TabsList",bre=i.forwardRef((e,t)=>{const{__scopeTabs:r,loop:n=!0,...o}=e,a=Qm(BN,r),c=YN(r);return Q.jsx(mre,{asChild:!0,...c,orientation:a.orientation,dir:a.dir,loop:n,children:Q.jsx(Pe.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});bre.displayName=BN;var KN="TabsTrigger",wre=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,disabled:o=!1,...a}=e,c=Qm(KN,r),s=YN(r),m=HN(c.baseId,n),f=VN(c.baseId,n),l=n===c.value;return Q.jsx(vre,{asChild:!0,...s,focusable:!o,active:l,children:Q.jsx(Pe.button,{type:"button",role:"tab","aria-selected":l,"aria-controls":f,"data-state":l?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:m,...a,ref:t,onMouseDown:Se(e.onMouseDown,p=>{!o&&p.button===0&&p.ctrlKey===!1?c.onValueChange(n):p.preventDefault()}),onKeyDown:Se(e.onKeyDown,p=>{[" ","Enter"].includes(p.key)&&c.onValueChange(n)}),onFocus:Se(e.onFocus,()=>{const p=c.activationMode!=="manual";!l&&!o&&p&&c.onValueChange(n)})})})});wre.displayName=KN;var XN="TabsContent",xre=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,forceMount:o,children:a,...c}=e,s=Qm(XN,r),m=HN(s.baseId,n),f=VN(s.baseId,n),l=n===s.value,p=i.useRef(l);return i.useEffect(()=>{const v=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(v)},[]),Q.jsx(hu,{present:o||l,children:({present:v})=>Q.jsx(Pe.div,{"data-state":l?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":m,hidden:!v,id:f,tabIndex:0,...c,ref:t,style:{...e.style,animationDuration:p.current?"0s":void 0},children:v&&a})})});xre.displayName=XN;function HN(e,t){return`${e}-trigger-${t}`}function VN(e,t){return`${e}-content-${t}`}i.createContext({});i.createContext({});function Ere(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}Array(12).fill(0);let Vp=1;class kre{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const r=this.subscribers.indexOf(t);this.subscribers.splice(r,1)}),this.publish=t=>{this.subscribers.forEach(r=>r(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var r;const{message:n,...o}=t,a=typeof t?.id=="number"||((r=t.id)==null?void 0:r.length)>0?t.id:Vp++,c=this.toasts.find(m=>m.id===a),s=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(a)&&this.dismissedToasts.delete(a),c?this.toasts=this.toasts.map(m=>m.id===a?(this.publish({...m,...t,id:a,title:n}),{...m,...t,id:a,dismissible:s,title:n}):m):this.addToast({title:n,...o,dismissible:s,id:a}),a},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(r=>r({id:t,dismiss:!0})))):this.toasts.forEach(r=>{this.subscribers.forEach(n=>n({id:r.id,dismiss:!0}))}),t),this.message=(t,r)=>this.create({...r,message:t}),this.error=(t,r)=>this.create({...r,message:t,type:"error"}),this.success=(t,r)=>this.create({...r,type:"success",message:t}),this.info=(t,r)=>this.create({...r,type:"info",message:t}),this.warning=(t,r)=>this.create({...r,type:"warning",message:t}),this.loading=(t,r)=>this.create({...r,type:"loading",message:t}),this.promise=(t,r)=>{if(!r)return;let n;r.loading!==void 0&&(n=this.create({...r,promise:t,type:"loading",message:r.loading,description:typeof r.description!="function"?r.description:void 0}));const o=Promise.resolve(t instanceof Function?t():t);let a=n!==void 0,c;const s=o.then(async f=>{if(c=["resolve",f],P.isValidElement(f))a=!1,this.create({id:n,type:"default",message:f});else if(Cre(f)&&!f.ok){a=!1;const l=typeof r.error=="function"?await r.error(`HTTP error! status: ${f.status}`):r.error,p=typeof r.description=="function"?await r.description(`HTTP error! status: ${f.status}`):r.description,v=typeof l=="object"&&!P.isValidElement(l)?l:{message:l};this.create({id:n,type:"error",description:p,...v})}else if(f instanceof Error){a=!1;const l=typeof r.error=="function"?await r.error(f):r.error,p=typeof r.description=="function"?await r.description(f):r.description,v=typeof l=="object"&&!P.isValidElement(l)?l:{message:l};this.create({id:n,type:"error",description:p,...v})}else if(r.success!==void 0){a=!1;const l=typeof r.success=="function"?await r.success(f):r.success,p=typeof r.description=="function"?await r.description(f):r.description,v=typeof l=="object"&&!P.isValidElement(l)?l:{message:l};this.create({id:n,type:"success",description:p,...v})}}).catch(async f=>{if(c=["reject",f],r.error!==void 0){a=!1;const l=typeof r.error=="function"?await r.error(f):r.error,p=typeof r.description=="function"?await r.description(f):r.description,v=typeof l=="object"&&!P.isValidElement(l)?l:{message:l};this.create({id:n,type:"error",description:p,...v})}}).finally(()=>{a&&(this.dismiss(n),n=void 0),r.finally==null||r.finally.call(r)}),m=()=>new Promise((f,l)=>s.then(()=>c[0]==="reject"?l(c[1]):f(c[1])).catch(l));return typeof n!="string"&&typeof n!="number"?{unwrap:m}:Object.assign(n,{unwrap:m})},this.custom=(t,r)=>{const n=r?.id||Vp++;return this.create({jsx:t(n),id:n,...r}),n},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const Ve=new kre,Sre=(e,t)=>{const r=t?.id||Vp++;return Ve.addToast({title:e,...t,id:r}),r},Cre=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",Rre=Sre,Ore=()=>Ve.toasts,Nre=()=>Ve.getActiveToasts();Object.assign(Rre,{success:Ve.success,info:Ve.info,warning:Ve.warning,error:Ve.error,custom:Ve.custom,message:Ve.message,promise:Ve.promise,dismiss:Ve.dismiss,loading:Ve.loading},{getHistory:Ore,getToasts:Nre});Ere("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function _re(e){const t=e+"CollectionProvider",[r,n]=fu(t),[o,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),c=u=>{const{scope:h,children:y}=u,b=P.useRef(null),w=P.useRef(new Map).current;return J.jsx(o,{scope:h,itemMap:w,collectionRef:b,children:y})};c.displayName=t;const s=e+"CollectionSlot",m=q.createSlot(s),f=P.forwardRef((u,h)=>{const{scope:y,children:b}=u,w=a(s,y),k=xt(h,w.collectionRef);return J.jsx(m,{ref:k,children:b})});f.displayName=s;const l=e+"CollectionItemSlot",p="data-radix-collection-item",v=q.createSlot(l),g=P.forwardRef((u,h)=>{const{scope:y,children:b,...w}=u,k=P.useRef(null),C=xt(h,k),N=a(l,y);return P.useEffect(()=>(N.itemMap.set(k,{ref:k,...w}),()=>void N.itemMap.delete(k))),J.jsx(v,{[p]:"",ref:C,children:b})});g.displayName=l;function E(u){const h=a(e+"CollectionConsumer",u);return P.useCallback(()=>{const y=h.collectionRef.current;if(!y)return[];const b=Array.from(y.querySelectorAll(`[${p}]`));return Array.from(h.itemMap.values()).sort((w,k)=>b.indexOf(w.ref.current)-b.indexOf(k.ref.current))},[h.collectionRef,h.itemMap])}return[{Provider:c,Slot:f,ItemSlot:g},E,n]}var Tre=i.createContext(void 0);function qN(e){const t=i.useContext(Tre);return e||t||"ltr"}var Ff="rovingFocusGroup.onEntryFocus",Dre={bubbles:!1,cancelable:!0},Ka="RovingFocusGroup",[qp,ZN,jre]=_re(Ka),[Pre,GN]=fu(Ka,[jre]),[Mre,Are]=Pre(Ka),JN=i.forwardRef((e,t)=>J.jsx(qp.Provider,{scope:e.__scopeRovingFocusGroup,children:J.jsx(qp.Slot,{scope:e.__scopeRovingFocusGroup,children:J.jsx(Ire,{...e,ref:t})})}));JN.displayName=Ka;var Ire=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:a,currentTabStopId:c,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:m,onEntryFocus:f,preventScrollOnEntryFocus:l=!1,...p}=e,v=i.useRef(null),g=xt(t,v),E=qN(a),[u,h]=sS({prop:c,defaultProp:s??null,onChange:m,caller:Ka}),[y,b]=i.useState(!1),w=Ao(f),k=ZN(r),C=i.useRef(!1),[N,S]=i.useState(0);return i.useEffect(()=>{const R=v.current;if(R)return R.addEventListener(Ff,w),()=>R.removeEventListener(Ff,w)},[w]),J.jsx(Mre,{scope:r,orientation:n,dir:E,loop:o,currentTabStopId:u,onItemFocus:i.useCallback(R=>h(R),[h]),onItemShiftTab:i.useCallback(()=>b(!0),[]),onFocusableItemAdd:i.useCallback(()=>S(R=>R+1),[]),onFocusableItemRemove:i.useCallback(()=>S(R=>R-1),[]),children:J.jsx(je.div,{tabIndex:y||N===0?-1:0,"data-orientation":n,...p,ref:g,style:{outline:"none",...e.style},onMouseDown:ke(e.onMouseDown,()=>{C.current=!0}),onFocus:ke(e.onFocus,R=>{const D=!C.current;if(R.target===R.currentTarget&&D&&!y){const L=new CustomEvent(Ff,Dre);if(R.currentTarget.dispatchEvent(L),!L.defaultPrevented){const I=k().filter(M=>M.focusable),$=I.find(M=>M.active),U=I.find(M=>M.id===u),W=[$,U,...I].filter(Boolean).map(M=>M.ref.current);t_(W,l)}}C.current=!1}),onBlur:ke(e.onBlur,()=>b(!1))})})}),QN="RovingFocusGroupItem",e_=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:a,children:c,...s}=e,m=aS(),f=a||m,l=Are(QN,r),p=l.currentTabStopId===f,v=ZN(r),{onFocusableItemAdd:g,onFocusableItemRemove:E,currentTabStopId:u}=l;return i.useEffect(()=>{if(n)return g(),()=>E()},[n,g,E]),J.jsx(qp.ItemSlot,{scope:r,id:f,focusable:n,active:o,children:J.jsx(je.span,{tabIndex:p?0:-1,"data-orientation":l.orientation,...s,ref:t,onMouseDown:ke(e.onMouseDown,h=>{n?l.onItemFocus(f):h.preventDefault()}),onFocus:ke(e.onFocus,()=>l.onItemFocus(f)),onKeyDown:ke(e.onKeyDown,h=>{if(h.key==="Tab"&&h.shiftKey){l.onItemShiftTab();return}if(h.target!==h.currentTarget)return;const y=Wre(h,l.orientation,l.dir);if(y!==void 0){if(h.metaKey||h.ctrlKey||h.altKey||h.shiftKey)return;h.preventDefault();let b=v().filter(w=>w.focusable).map(w=>w.ref.current);if(y==="last")b.reverse();else if(y==="prev"||y==="next"){y==="prev"&&b.reverse();const w=b.indexOf(h.currentTarget);b=l.loop?$re(b,w+1):b.slice(w+1)}setTimeout(()=>t_(b))}}),children:typeof c=="function"?c({isCurrentTabStop:p,hasTabStop:u!=null}):c})})});e_.displayName=QN;var Lre={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Fre(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Wre(e,t,r){const n=Fre(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return Lre[n]}function t_(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function $re(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var zre=JN,Ure=e_,Ku="Tabs",[Yre]=fu(Ku,[GN]),r_=GN(),[Bre,ev]=Yre(Ku),Kre=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,onValueChange:o,defaultValue:a,orientation:c="horizontal",dir:s,activationMode:m="automatic",...f}=e,l=qN(s),[p,v]=sS({prop:n,onChange:o,defaultProp:a??"",caller:Ku});return J.jsx(Bre,{scope:r,baseId:aS(),value:p,onValueChange:v,orientation:c,dir:l,activationMode:m,children:J.jsx(je.div,{dir:l,"data-orientation":c,...f,ref:t})})});Kre.displayName=Ku;var n_="TabsList",Xre=i.forwardRef((e,t)=>{const{__scopeTabs:r,loop:n=!0,...o}=e,a=ev(n_,r),c=r_(r);return J.jsx(zre,{asChild:!0,...c,orientation:a.orientation,dir:a.dir,loop:n,children:J.jsx(je.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});Xre.displayName=n_;var o_="TabsTrigger",Hre=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,disabled:o=!1,...a}=e,c=ev(o_,r),s=r_(r),m=s_(c.baseId,n),f=i_(c.baseId,n),l=n===c.value;return J.jsx(Ure,{asChild:!0,...s,focusable:!o,active:l,children:J.jsx(je.button,{type:"button",role:"tab","aria-selected":l,"aria-controls":f,"data-state":l?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:m,...a,ref:t,onMouseDown:ke(e.onMouseDown,p=>{!o&&p.button===0&&p.ctrlKey===!1?c.onValueChange(n):p.preventDefault()}),onKeyDown:ke(e.onKeyDown,p=>{[" ","Enter"].includes(p.key)&&c.onValueChange(n)}),onFocus:ke(e.onFocus,()=>{const p=c.activationMode!=="manual";!l&&!o&&p&&c.onValueChange(n)})})})});Hre.displayName=o_;var a_="TabsContent",Vre=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,forceMount:o,children:a,...c}=e,s=ev(a_,r),m=s_(s.baseId,n),f=i_(s.baseId,n),l=n===s.value,p=i.useRef(l);return i.useEffect(()=>{const v=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(v)},[]),J.jsx(pu,{present:o||l,children:({present:v})=>J.jsx(je.div,{"data-state":l?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":m,hidden:!v,id:f,tabIndex:0,...c,ref:t,style:{...e.style,animationDuration:p.current?"0s":void 0},children:v&&a})})});Vre.displayName=a_;function s_(e,t){return`${e}-trigger-${t}`}function i_(e,t){return`${e}-content-${t}`}i.createContext({});i.createContext({});function qre(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}Array(12).fill(0);let Zp=1;class Zre{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const r=this.subscribers.indexOf(t);this.subscribers.splice(r,1)}),this.publish=t=>{this.subscribers.forEach(r=>r(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var r;const{message:n,...o}=t,a=typeof t?.id=="number"||((r=t.id)==null?void 0:r.length)>0?t.id:Zp++,c=this.toasts.find(m=>m.id===a),s=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(a)&&this.dismissedToasts.delete(a),c?this.toasts=this.toasts.map(m=>m.id===a?(this.publish({...m,...t,id:a,title:n}),{...m,...t,id:a,dismissible:s,title:n}):m):this.addToast({title:n,...o,dismissible:s,id:a}),a},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(r=>r({id:t,dismiss:!0})))):this.toasts.forEach(r=>{this.subscribers.forEach(n=>n({id:r.id,dismiss:!0}))}),t),this.message=(t,r)=>this.create({...r,message:t}),this.error=(t,r)=>this.create({...r,message:t,type:"error"}),this.success=(t,r)=>this.create({...r,type:"success",message:t}),this.info=(t,r)=>this.create({...r,type:"info",message:t}),this.warning=(t,r)=>this.create({...r,type:"warning",message:t}),this.loading=(t,r)=>this.create({...r,type:"loading",message:t}),this.promise=(t,r)=>{if(!r)return;let n;r.loading!==void 0&&(n=this.create({...r,promise:t,type:"loading",message:r.loading,description:typeof r.description!="function"?r.description:void 0}));const o=Promise.resolve(t instanceof Function?t():t);let a=n!==void 0,c;const s=o.then(async f=>{if(c=["resolve",f],P.isValidElement(f))a=!1,this.create({id:n,type:"default",message:f});else if(Jre(f)&&!f.ok){a=!1;const l=typeof r.error=="function"?await r.error(`HTTP error! status: ${f.status}`):r.error,p=typeof r.description=="function"?await r.description(`HTTP error! status: ${f.status}`):r.description,v=typeof l=="object"&&!P.isValidElement(l)?l:{message:l};this.create({id:n,type:"error",description:p,...v})}else if(f instanceof Error){a=!1;const l=typeof r.error=="function"?await r.error(f):r.error,p=typeof r.description=="function"?await r.description(f):r.description,v=typeof l=="object"&&!P.isValidElement(l)?l:{message:l};this.create({id:n,type:"error",description:p,...v})}else if(r.success!==void 0){a=!1;const l=typeof r.success=="function"?await r.success(f):r.success,p=typeof r.description=="function"?await r.description(f):r.description,v=typeof l=="object"&&!P.isValidElement(l)?l:{message:l};this.create({id:n,type:"success",description:p,...v})}}).catch(async f=>{if(c=["reject",f],r.error!==void 0){a=!1;const l=typeof r.error=="function"?await r.error(f):r.error,p=typeof r.description=="function"?await r.description(f):r.description,v=typeof l=="object"&&!P.isValidElement(l)?l:{message:l};this.create({id:n,type:"error",description:p,...v})}}).finally(()=>{a&&(this.dismiss(n),n=void 0),r.finally==null||r.finally.call(r)}),m=()=>new Promise((f,l)=>s.then(()=>c[0]==="reject"?l(c[1]):f(c[1])).catch(l));return typeof n!="string"&&typeof n!="number"?{unwrap:m}:Object.assign(n,{unwrap:m})},this.custom=(t,r)=>{const n=r?.id||Zp++;return this.create({jsx:t(n),id:n,...r}),n},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const qe=new Zre,Gre=(e,t)=>{const r=t?.id||Zp++;return qe.addToast({title:e,...t,id:r}),r},Jre=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",Qre=Gre,ene=()=>qe.toasts,tne=()=>qe.getActiveToasts();Object.assign(Qre,{success:qe.success,info:qe.info,warning:qe.warning,error:qe.error,custom:qe.custom,message:qe.message,promise:qe.promise,dismiss:qe.dismiss,loading:qe.loading},{getHistory:ene,getToasts:tne});qre("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function rne(e){const t=e+"CollectionProvider",[r,n]=uu(t),[o,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),c=u=>{const{scope:h,children:y}=u,b=P.useRef(null),w=P.useRef(new Map).current;return G.jsx(o,{scope:h,itemMap:w,collectionRef:b,children:y})};c.displayName=t;const s=e+"CollectionSlot",m=q.createSlot(s),f=P.forwardRef((u,h)=>{const{scope:y,children:b}=u,w=a(s,y),k=wt(h,w.collectionRef);return G.jsx(m,{ref:k,children:b})});f.displayName=s;const l=e+"CollectionItemSlot",p="data-radix-collection-item",v=q.createSlot(l),g=P.forwardRef((u,h)=>{const{scope:y,children:b,...w}=u,k=P.useRef(null),C=wt(h,k),N=a(l,y);return P.useEffect(()=>(N.itemMap.set(k,{ref:k,...w}),()=>void N.itemMap.delete(k))),G.jsx(v,{[p]:"",ref:C,children:b})});g.displayName=l;function E(u){const h=a(e+"CollectionConsumer",u);return P.useCallback(()=>{const y=h.collectionRef.current;if(!y)return[];const b=Array.from(y.querySelectorAll(`[${p}]`));return Array.from(h.itemMap.values()).sort((w,k)=>b.indexOf(w.ref.current)-b.indexOf(k.ref.current))},[h.collectionRef,h.itemMap])}return[{Provider:c,Slot:f,ItemSlot:g},E,n]}var nne=i.createContext(void 0);function c_(e){const t=i.useContext(nne);return e||t||"ltr"}var Wf="rovingFocusGroup.onEntryFocus",one={bubbles:!1,cancelable:!0},Xa="RovingFocusGroup",[Gp,u_,ane]=rne(Xa),[sne,l_]=uu(Xa,[ane]),[ine,cne]=sne(Xa),d_=i.forwardRef((e,t)=>G.jsx(Gp.Provider,{scope:e.__scopeRovingFocusGroup,children:G.jsx(Gp.Slot,{scope:e.__scopeRovingFocusGroup,children:G.jsx(une,{...e,ref:t})})}));d_.displayName=Xa;var une=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:a,currentTabStopId:c,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:m,onEntryFocus:f,preventScrollOnEntryFocus:l=!1,...p}=e,v=i.useRef(null),g=wt(t,v),E=c_(a),[u,h]=Ak({prop:c,defaultProp:s??null,onChange:m,caller:Xa}),[y,b]=i.useState(!1),w=Mo(f),k=u_(r),C=i.useRef(!1),[N,S]=i.useState(0);return i.useEffect(()=>{const R=v.current;if(R)return R.addEventListener(Wf,w),()=>R.removeEventListener(Wf,w)},[w]),G.jsx(ine,{scope:r,orientation:n,dir:E,loop:o,currentTabStopId:u,onItemFocus:i.useCallback(R=>h(R),[h]),onItemShiftTab:i.useCallback(()=>b(!0),[]),onFocusableItemAdd:i.useCallback(()=>S(R=>R+1),[]),onFocusableItemRemove:i.useCallback(()=>S(R=>R-1),[]),children:G.jsx(De.div,{tabIndex:y||N===0?-1:0,"data-orientation":n,...p,ref:g,style:{outline:"none",...e.style},onMouseDown:Ee(e.onMouseDown,()=>{C.current=!0}),onFocus:Ee(e.onFocus,R=>{const D=!C.current;if(R.target===R.currentTarget&&D&&!y){const L=new CustomEvent(Wf,one);if(R.currentTarget.dispatchEvent(L),!L.defaultPrevented){const I=k().filter(M=>M.focusable),$=I.find(M=>M.active),U=I.find(M=>M.id===u),W=[$,U,...I].filter(Boolean).map(M=>M.ref.current);m_(W,l)}}C.current=!1}),onBlur:Ee(e.onBlur,()=>b(!1))})})}),f_="RovingFocusGroupItem",p_=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:a,children:c,...s}=e,m=Mk(),f=a||m,l=cne(f_,r),p=l.currentTabStopId===f,v=u_(r),{onFocusableItemAdd:g,onFocusableItemRemove:E,currentTabStopId:u}=l;return i.useEffect(()=>{if(n)return g(),()=>E()},[n,g,E]),G.jsx(Gp.ItemSlot,{scope:r,id:f,focusable:n,active:o,children:G.jsx(De.span,{tabIndex:p?0:-1,"data-orientation":l.orientation,...s,ref:t,onMouseDown:Ee(e.onMouseDown,h=>{n?l.onItemFocus(f):h.preventDefault()}),onFocus:Ee(e.onFocus,()=>l.onItemFocus(f)),onKeyDown:Ee(e.onKeyDown,h=>{if(h.key==="Tab"&&h.shiftKey){l.onItemShiftTab();return}if(h.target!==h.currentTarget)return;const y=fne(h,l.orientation,l.dir);if(y!==void 0){if(h.metaKey||h.ctrlKey||h.altKey||h.shiftKey)return;h.preventDefault();let b=v().filter(w=>w.focusable).map(w=>w.ref.current);if(y==="last")b.reverse();else if(y==="prev"||y==="next"){y==="prev"&&b.reverse();const w=b.indexOf(h.currentTarget);b=l.loop?pne(b,w+1):b.slice(w+1)}setTimeout(()=>m_(b))}}),children:typeof c=="function"?c({isCurrentTabStop:p,hasTabStop:u!=null}):c})})});p_.displayName=f_;var lne={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function dne(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function fne(e,t,r){const n=dne(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return lne[n]}function m_(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function pne(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var mne=d_,vne=p_,Xu="Tabs",[hne]=uu(Xu,[l_]),v_=l_(),[gne,tv]=hne(Xu),yne=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,onValueChange:o,defaultValue:a,orientation:c="horizontal",dir:s,activationMode:m="automatic",...f}=e,l=c_(s),[p,v]=Ak({prop:n,onChange:o,defaultProp:a??"",caller:Xu});return G.jsx(gne,{scope:r,baseId:Mk(),value:p,onValueChange:v,orientation:c,dir:l,activationMode:m,children:G.jsx(De.div,{dir:l,"data-orientation":c,...f,ref:t})})});yne.displayName=Xu;var h_="TabsList",bne=i.forwardRef((e,t)=>{const{__scopeTabs:r,loop:n=!0,...o}=e,a=tv(h_,r),c=v_(r);return G.jsx(mne,{asChild:!0,...c,orientation:a.orientation,dir:a.dir,loop:n,children:G.jsx(De.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});bne.displayName=h_;var g_="TabsTrigger",wne=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,disabled:o=!1,...a}=e,c=tv(g_,r),s=v_(r),m=b_(c.baseId,n),f=w_(c.baseId,n),l=n===c.value;return G.jsx(vne,{asChild:!0,...s,focusable:!o,active:l,children:G.jsx(De.button,{type:"button",role:"tab","aria-selected":l,"aria-controls":f,"data-state":l?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:m,...a,ref:t,onMouseDown:Ee(e.onMouseDown,p=>{!o&&p.button===0&&p.ctrlKey===!1?c.onValueChange(n):p.preventDefault()}),onKeyDown:Ee(e.onKeyDown,p=>{[" ","Enter"].includes(p.key)&&c.onValueChange(n)}),onFocus:Ee(e.onFocus,()=>{const p=c.activationMode!=="manual";!l&&!o&&p&&c.onValueChange(n)})})})});wne.displayName=g_;var y_="TabsContent",xne=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,forceMount:o,children:a,...c}=e,s=tv(y_,r),m=b_(s.baseId,n),f=w_(s.baseId,n),l=n===s.value,p=i.useRef(l);return i.useEffect(()=>{const v=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(v)},[]),G.jsx(lu,{present:o||l,children:({present:v})=>G.jsx(De.div,{"data-state":l?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":m,hidden:!v,id:f,tabIndex:0,...c,ref:t,style:{...e.style,animationDuration:p.current?"0s":void 0},children:v&&a})})});xne.displayName=y_;function b_(e,t){return`${e}-trigger-${t}`}function w_(e,t){return`${e}-content-${t}`}i.createContext({});i.createContext({});function Ene(e){const t=e+"CollectionProvider",[r,n]=su(t),[o,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),c=u=>{const{scope:h,children:y}=u,b=P.useRef(null),w=P.useRef(new Map).current;return Z.jsx(o,{scope:h,itemMap:w,collectionRef:b,children:y})};c.displayName=t;const s=e+"CollectionSlot",m=q.createSlot(s),f=P.forwardRef((u,h)=>{const{scope:y,children:b}=u,w=a(s,y),k=bt(h,w.collectionRef);return Z.jsx(m,{ref:k,children:b})});f.displayName=s;const l=e+"CollectionItemSlot",p="data-radix-collection-item",v=q.createSlot(l),g=P.forwardRef((u,h)=>{const{scope:y,children:b,...w}=u,k=P.useRef(null),C=bt(h,k),N=a(l,y);return P.useEffect(()=>(N.itemMap.set(k,{ref:k,...w}),()=>void N.itemMap.delete(k))),Z.jsx(v,{[p]:"",ref:C,children:b})});g.displayName=l;function E(u){const h=a(e+"CollectionConsumer",u);return P.useCallback(()=>{const y=h.collectionRef.current;if(!y)return[];const b=Array.from(y.querySelectorAll(`[${p}]`));return Array.from(h.itemMap.values()).sort((w,k)=>b.indexOf(w.ref.current)-b.indexOf(k.ref.current))},[h.collectionRef,h.itemMap])}return[{Provider:c,Slot:f,ItemSlot:g},E,n]}var kne=i.createContext(void 0);function x_(e){const t=i.useContext(kne);return e||t||"ltr"}var $f="rovingFocusGroup.onEntryFocus",Sne={bubbles:!1,cancelable:!0},Ha="RovingFocusGroup",[Jp,E_,Cne]=Ene(Ha),[Rne,k_]=su(Ha,[Cne]),[One,Nne]=Rne(Ha),S_=i.forwardRef((e,t)=>Z.jsx(Jp.Provider,{scope:e.__scopeRovingFocusGroup,children:Z.jsx(Jp.Slot,{scope:e.__scopeRovingFocusGroup,children:Z.jsx(_ne,{...e,ref:t})})}));S_.displayName=Ha;var _ne=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:a,currentTabStopId:c,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:m,onEntryFocus:f,preventScrollOnEntryFocus:l=!1,...p}=e,v=i.useRef(null),g=bt(t,v),E=x_(a),[u,h]=lk({prop:c,defaultProp:s??null,onChange:m,caller:Ha}),[y,b]=i.useState(!1),w=Po(f),k=E_(r),C=i.useRef(!1),[N,S]=i.useState(0);return i.useEffect(()=>{const R=v.current;if(R)return R.addEventListener($f,w),()=>R.removeEventListener($f,w)},[w]),Z.jsx(One,{scope:r,orientation:n,dir:E,loop:o,currentTabStopId:u,onItemFocus:i.useCallback(R=>h(R),[h]),onItemShiftTab:i.useCallback(()=>b(!0),[]),onFocusableItemAdd:i.useCallback(()=>S(R=>R+1),[]),onFocusableItemRemove:i.useCallback(()=>S(R=>R-1),[]),children:Z.jsx(Te.div,{tabIndex:y||N===0?-1:0,"data-orientation":n,...p,ref:g,style:{outline:"none",...e.style},onMouseDown:xe(e.onMouseDown,()=>{C.current=!0}),onFocus:xe(e.onFocus,R=>{const D=!C.current;if(R.target===R.currentTarget&&D&&!y){const L=new CustomEvent($f,Sne);if(R.currentTarget.dispatchEvent(L),!L.defaultPrevented){const I=k().filter(M=>M.focusable),$=I.find(M=>M.active),U=I.find(M=>M.id===u),W=[$,U,...I].filter(Boolean).map(M=>M.ref.current);O_(W,l)}}C.current=!1}),onBlur:xe(e.onBlur,()=>b(!1))})})}),C_="RovingFocusGroupItem",R_=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:a,children:c,...s}=e,m=uk(),f=a||m,l=Nne(C_,r),p=l.currentTabStopId===f,v=E_(r),{onFocusableItemAdd:g,onFocusableItemRemove:E,currentTabStopId:u}=l;return i.useEffect(()=>{if(n)return g(),()=>E()},[n,g,E]),Z.jsx(Jp.ItemSlot,{scope:r,id:f,focusable:n,active:o,children:Z.jsx(Te.span,{tabIndex:p?0:-1,"data-orientation":l.orientation,...s,ref:t,onMouseDown:xe(e.onMouseDown,h=>{n?l.onItemFocus(f):h.preventDefault()}),onFocus:xe(e.onFocus,()=>l.onItemFocus(f)),onKeyDown:xe(e.onKeyDown,h=>{if(h.key==="Tab"&&h.shiftKey){l.onItemShiftTab();return}if(h.target!==h.currentTarget)return;const y=jne(h,l.orientation,l.dir);if(y!==void 0){if(h.metaKey||h.ctrlKey||h.altKey||h.shiftKey)return;h.preventDefault();let b=v().filter(w=>w.focusable).map(w=>w.ref.current);if(y==="last")b.reverse();else if(y==="prev"||y==="next"){y==="prev"&&b.reverse();const w=b.indexOf(h.currentTarget);b=l.loop?Pne(b,w+1):b.slice(w+1)}setTimeout(()=>O_(b))}}),children:typeof c=="function"?c({isCurrentTabStop:p,hasTabStop:u!=null}):c})})});R_.displayName=C_;var Tne={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Dne(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function jne(e,t,r){const n=Dne(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return Tne[n]}function O_(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function Pne(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var Mne=S_,Ane=R_,Hu="Tabs",[Ine]=su(Hu,[k_]),N_=k_(),[Lne,rv]=Ine(Hu),Fne=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,onValueChange:o,defaultValue:a,orientation:c="horizontal",dir:s,activationMode:m="automatic",...f}=e,l=x_(s),[p,v]=lk({prop:n,onChange:o,defaultProp:a??"",caller:Hu});return Z.jsx(Lne,{scope:r,baseId:uk(),value:p,onValueChange:v,orientation:c,dir:l,activationMode:m,children:Z.jsx(Te.div,{dir:l,"data-orientation":c,...f,ref:t})})});Fne.displayName=Hu;var __="TabsList",Wne=i.forwardRef((e,t)=>{const{__scopeTabs:r,loop:n=!0,...o}=e,a=rv(__,r),c=N_(r);return Z.jsx(Mne,{asChild:!0,...c,orientation:a.orientation,dir:a.dir,loop:n,children:Z.jsx(Te.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});Wne.displayName=__;var T_="TabsTrigger",$ne=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,disabled:o=!1,...a}=e,c=rv(T_,r),s=N_(r),m=j_(c.baseId,n),f=P_(c.baseId,n),l=n===c.value;return Z.jsx(Ane,{asChild:!0,...s,focusable:!o,active:l,children:Z.jsx(Te.button,{type:"button",role:"tab","aria-selected":l,"aria-controls":f,"data-state":l?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:m,...a,ref:t,onMouseDown:xe(e.onMouseDown,p=>{!o&&p.button===0&&p.ctrlKey===!1?c.onValueChange(n):p.preventDefault()}),onKeyDown:xe(e.onKeyDown,p=>{[" ","Enter"].includes(p.key)&&c.onValueChange(n)}),onFocus:xe(e.onFocus,()=>{const p=c.activationMode!=="manual";!l&&!o&&p&&c.onValueChange(n)})})})});$ne.displayName=T_;var D_="TabsContent",zne=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,forceMount:o,children:a,...c}=e,s=rv(D_,r),m=j_(s.baseId,n),f=P_(s.baseId,n),l=n===s.value,p=i.useRef(l);return i.useEffect(()=>{const v=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(v)},[]),Z.jsx(iu,{present:o||l,children:({present:v})=>Z.jsx(Te.div,{"data-state":l?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":m,hidden:!v,id:f,tabIndex:0,...c,ref:t,style:{...e.style,animationDuration:p.current?"0s":void 0},children:v&&a})})});zne.displayName=D_;function j_(e,t){return`${e}-trigger-${t}`}function P_(e,t){return`${e}-content-${t}`}i.createContext({});i.createContext({});i.createContext({});i.createContext({});i.createContext({});i.createContext({});i.createContext({});i.createContext({});i.createContext({});i.createContext({});i.createContext({});i.createContext({});i.createContext({});i.createContext({});i.createContext({});i.createContext({});Object.defineProperty(exports,"TZDate",{enumerable:!0,get:()=>A_.TZDate});Object.defineProperty(exports,"toast",{enumerable:!0,get:()=>I_.toast});