@sigtes/ui 0.0.11 → 0.0.12
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.
- package/dist/_virtual/_interop_require_default.cjs.js +1 -0
- package/dist/_virtual/_interop_require_default.es.js +4 -0
- package/dist/_virtual/_interop_require_wildcard.cjs.js +1 -0
- package/dist/_virtual/_interop_require_wildcard.es.js +4 -0
- package/dist/_virtual/action-async-storage-instance.cjs.js +1 -0
- package/dist/_virtual/action-async-storage-instance.es.js +4 -0
- package/dist/_virtual/action-async-storage.external.cjs.js +1 -0
- package/dist/_virtual/action-async-storage.external.es.js +4 -0
- package/dist/_virtual/app-router-context.shared-runtime.cjs.js +1 -0
- package/dist/_virtual/app-router-context.shared-runtime.es.js +4 -0
- package/dist/_virtual/app-router-headers.cjs.js +1 -0
- package/dist/_virtual/app-router-headers.es.js +4 -0
- package/dist/_virtual/async-local-storage.cjs.js +1 -0
- package/dist/_virtual/async-local-storage.es.js +4 -0
- package/dist/_virtual/bailout-to-client-rendering.cjs.js +1 -0
- package/dist/_virtual/bailout-to-client-rendering.es.js +4 -0
- package/dist/_virtual/bailout-to-csr.cjs.js +1 -0
- package/dist/_virtual/bailout-to-csr.es.js +4 -0
- package/dist/_virtual/boundary-constants.cjs.js +1 -0
- package/dist/_virtual/boundary-constants.es.js +4 -0
- package/dist/_virtual/dynamic-rendering-utils.cjs.js +1 -0
- package/dist/_virtual/dynamic-rendering-utils.es.js +4 -0
- package/dist/_virtual/dynamic-rendering.cjs.js +1 -0
- package/dist/_virtual/dynamic-rendering.es.js +4 -0
- package/dist/_virtual/forbidden.cjs.js +1 -0
- package/dist/_virtual/forbidden.es.js +4 -0
- package/dist/_virtual/get-segment-value.cjs.js +1 -0
- package/dist/_virtual/get-segment-value.es.js +4 -0
- package/dist/_virtual/hooks-client-context.shared-runtime.cjs.js +1 -0
- package/dist/_virtual/hooks-client-context.shared-runtime.es.js +4 -0
- package/dist/_virtual/hooks-server-context.cjs.js +1 -0
- package/dist/_virtual/hooks-server-context.es.js +4 -0
- package/dist/_virtual/http-access-fallback.cjs.js +1 -0
- package/dist/_virtual/http-access-fallback.es.js +4 -0
- package/dist/_virtual/invariant-error.cjs.js +1 -0
- package/dist/_virtual/invariant-error.es.js +4 -0
- package/dist/_virtual/is-next-router-error.cjs.js +1 -0
- package/dist/_virtual/is-next-router-error.es.js +4 -0
- package/dist/_virtual/is-postpone.cjs.js +1 -0
- package/dist/_virtual/is-postpone.es.js +4 -0
- package/dist/_virtual/jsx-runtime.cjs.js +1 -0
- package/dist/_virtual/jsx-runtime.cjs2.js +1 -0
- package/dist/_virtual/jsx-runtime.es.js +5 -0
- package/dist/_virtual/jsx-runtime.es2.js +4 -0
- package/dist/_virtual/navigation.cjs.js +1 -0
- package/dist/_virtual/navigation.cjs2.js +1 -0
- package/dist/_virtual/navigation.es.js +5 -0
- package/dist/_virtual/navigation.es2.js +4 -0
- package/dist/_virtual/navigation.react-server.cjs.js +1 -0
- package/dist/_virtual/navigation.react-server.es.js +4 -0
- package/dist/_virtual/not-found.cjs.js +1 -0
- package/dist/_virtual/not-found.es.js +4 -0
- package/dist/_virtual/react-jsx-runtime.development.cjs.js +1 -0
- package/dist/_virtual/react-jsx-runtime.development.es.js +4 -0
- package/dist/_virtual/react-jsx-runtime.production.cjs.js +1 -0
- package/dist/_virtual/react-jsx-runtime.production.es.js +4 -0
- package/dist/_virtual/redirect-error.cjs.js +1 -0
- package/dist/_virtual/redirect-error.es.js +4 -0
- package/dist/_virtual/redirect-status-code.cjs.js +1 -0
- package/dist/_virtual/redirect-status-code.es.js +4 -0
- package/dist/_virtual/redirect.cjs.js +1 -0
- package/dist/_virtual/redirect.es.js +4 -0
- package/dist/_virtual/scheduler.cjs.js +1 -0
- package/dist/_virtual/scheduler.es.js +4 -0
- package/dist/_virtual/segment.cjs.js +1 -0
- package/dist/_virtual/segment.es.js +4 -0
- package/dist/_virtual/server-inserted-html.shared-runtime.cjs.js +1 -0
- package/dist/_virtual/server-inserted-html.shared-runtime.es.js +4 -0
- package/dist/_virtual/static-generation-bailout.cjs.js +1 -0
- package/dist/_virtual/static-generation-bailout.es.js +4 -0
- package/dist/_virtual/unauthorized.cjs.js +1 -0
- package/dist/_virtual/unauthorized.es.js +4 -0
- package/dist/_virtual/unrecognized-action-error.cjs.js +1 -0
- package/dist/_virtual/unrecognized-action-error.es.js +4 -0
- package/dist/_virtual/unstable-rethrow.browser.cjs.js +1 -0
- package/dist/_virtual/unstable-rethrow.browser.es.js +4 -0
- package/dist/_virtual/unstable-rethrow.cjs.js +1 -0
- package/dist/_virtual/unstable-rethrow.es.js +4 -0
- package/dist/_virtual/unstable-rethrow.server.cjs.js +1 -0
- package/dist/_virtual/unstable-rethrow.server.es.js +4 -0
- package/dist/_virtual/work-async-storage-instance.cjs.js +1 -0
- package/dist/_virtual/work-async-storage-instance.es.js +4 -0
- package/dist/_virtual/work-async-storage.external.cjs.js +1 -0
- package/dist/_virtual/work-async-storage.external.es.js +4 -0
- package/dist/_virtual/work-unit-async-storage-instance.cjs.js +1 -0
- package/dist/_virtual/work-unit-async-storage-instance.es.js +4 -0
- package/dist/_virtual/work-unit-async-storage.external.cjs.js +1 -0
- package/dist/_virtual/work-unit-async-storage.external.es.js +4 -0
- package/dist/components/avatar/Avatar.cjs.js +1 -0
- package/dist/components/avatar/Avatar.es.js +10 -0
- package/dist/components/badge/Badge.cjs.js +1 -0
- package/dist/components/badge/Badge.es.js +25 -0
- package/dist/components/badge/badgeVariants.cjs.js +1 -0
- package/dist/components/badge/badgeVariants.es.js +20 -0
- package/dist/components/button/Button.cjs.js +1 -0
- package/dist/components/button/Button.es.js +27 -0
- package/dist/components/button/buttonVariants.cjs.js +1 -0
- package/dist/components/button/buttonVariants.es.js +29 -0
- package/dist/components/calendar/Calendar.cjs.js +1 -0
- package/dist/components/calendar/Calendar.es.js +174 -0
- package/dist/components/calendar/DatePicker.cjs.js +1 -0
- package/dist/components/calendar/DatePicker.es.js +56 -0
- package/dist/components/calendar/DateRangePicker.cjs.js +1 -0
- package/dist/components/calendar/DateRangePicker.es.js +57 -0
- package/dist/components/card/Card.cjs.js +1 -0
- package/dist/components/card/Card.es.js +109 -0
- package/dist/components/checkbox/Checkbox.cjs.js +1 -0
- package/dist/components/checkbox/Checkbox.es.js +33 -0
- package/dist/components/collapsible/Collapsible.cjs.js +1 -0
- package/dist/components/collapsible/Collapsible.es.js +35 -0
- package/dist/components/combobox/Combobox.cjs.js +1 -0
- package/dist/components/combobox/Combobox.es.js +105 -0
- package/dist/components/command/Command.cjs.js +1 -0
- package/dist/components/command/Command.es.js +172 -0
- package/dist/components/data-table-faceted-filter/data-table-faceted-filter.cjs.js +1 -0
- package/dist/components/data-table-faceted-filter/data-table-faceted-filter.es.js +139 -0
- package/dist/components/dialog/Dialog.cjs.js +1 -0
- package/dist/components/dialog/Dialog.es.js +144 -0
- package/dist/components/dropdown-menu/Dropdown-Menu.cjs.js +1 -0
- package/dist/components/dropdown-menu/Dropdown-Menu.es.js +251 -0
- package/dist/components/form/Form.cjs.js +1 -0
- package/dist/components/form/Form.es.js +109 -0
- package/dist/components/input/Input.cjs.js +1 -0
- package/dist/components/input/Input.es.js +22 -0
- package/dist/components/label/Label.cjs.js +1 -0
- package/dist/components/label/Label.es.js +24 -0
- package/dist/components/popover/Popover.cjs.js +1 -0
- package/dist/components/popover/Popover.es.js +46 -0
- package/dist/components/select/Select.cjs.js +1 -0
- package/dist/components/select/Select.es.js +171 -0
- package/dist/components/separator/Separator.cjs.js +1 -0
- package/dist/components/separator/Separator.es.js +28 -0
- package/dist/components/skeleton/Skeleton.cjs.js +1 -0
- package/dist/components/skeleton/Skeleton.es.js +15 -0
- package/dist/components/sonner/Sonner.cjs.js +1 -0
- package/dist/components/sonner/Sonner.es.js +23 -0
- package/dist/components/table/DargableRow.cjs.js +1 -0
- package/dist/components/table/DargableRow.es.js +46 -0
- package/dist/components/table/DataTable.cjs.js +1 -0
- package/dist/components/table/DataTable.es.js +314 -0
- package/dist/components/table/DragHandle.cjs.js +1 -0
- package/dist/components/table/DragHandle.es.js +27 -0
- package/dist/components/table/Table.cjs.js +1 -0
- package/dist/components/table/Table.es.js +125 -0
- package/dist/components/tabs/Tabs.cjs.js +1 -0
- package/dist/components/tabs/Tabs.es.js +69 -0
- package/dist/components/textarea/Textarea.cjs.js +1 -0
- package/dist/components/textarea/Textarea.es.js +22 -0
- package/dist/components.cjs.js +1 -1125
- package/dist/components.es.js +135 -38207
- package/dist/dist/_virtual/jsx-runtime.es.cjs.js +1 -0
- package/dist/dist/_virtual/jsx-runtime.es.es.js +5 -0
- package/dist/dist/_virtual/jsx-runtime.es2.cjs.js +1 -0
- package/dist/dist/_virtual/jsx-runtime.es2.es.js +4 -0
- package/dist/dist/_virtual/react-jsx-runtime.development.es.cjs.js +1 -0
- package/dist/dist/_virtual/react-jsx-runtime.development.es.es.js +4 -0
- package/dist/dist/_virtual/react-jsx-runtime.production.es.cjs.js +1 -0
- package/dist/dist/_virtual/react-jsx-runtime.production.es.es.js +4 -0
- package/dist/dist/components/badge/badgeVariants.es.cjs.js +1 -0
- package/dist/dist/components/badge/badgeVariants.es.es.js +17 -0
- package/dist/dist/components/button/Button.es.cjs.js +1 -0
- package/dist/dist/components/button/Button.es.es.js +27 -0
- package/dist/dist/components/button/buttonVariants.es.cjs.js +1 -0
- package/dist/dist/components/button/buttonVariants.es.es.js +29 -0
- package/dist/dist/components/form/Form.es.cjs.js +1 -0
- package/dist/dist/components/form/Form.es.es.js +13 -0
- package/dist/dist/dist/Button-BztPLDJi.es.cjs.js +1 -0
- package/dist/{Button-BztPLDJi.js → dist/dist/Button-BztPLDJi.es.es.js} +5 -43
- package/dist/dist/dist/UserProvider-BfG9Ccu3.es.cjs.js +22 -0
- package/dist/dist/dist/UserProvider-BfG9Ccu3.es.es.js +302 -0
- package/dist/dist/dist/components.es.es.cjs.js +1125 -0
- package/dist/dist/dist/components.es.es.es.js +35195 -0
- package/dist/dist/dist/locale-provider-BMa5HMi7-CUCoSBuJ.es.cjs.js +22 -0
- package/dist/{locale-provider-BMa5HMi7-CUCoSBuJ.js → dist/dist/locale-provider-BMa5HMi7-CUCoSBuJ.es.es.js} +46 -49
- package/dist/dist/dist/locale-provider-BMa5HMi7.es.cjs.js +1 -0
- package/dist/dist/dist/locale-provider-BMa5HMi7.es.es.js +6 -0
- package/dist/dist/node_modules/@radix-ui/primitive/dist/index.es.cjs.js +1 -0
- package/dist/dist/node_modules/@radix-ui/primitive/dist/index.es.es.js +9 -0
- package/dist/dist/node_modules/@radix-ui/react-compose-refs/dist/index.es.cjs.js +1 -0
- package/dist/dist/node_modules/@radix-ui/react-compose-refs/dist/index.es.es.js +29 -0
- package/dist/dist/node_modules/@radix-ui/react-context/dist/index.es.cjs.js +1 -0
- package/dist/dist/node_modules/@radix-ui/react-context/dist/index.es.es.js +68 -0
- package/dist/dist/node_modules/@radix-ui/react-dialog/dist/index.es.cjs.js +5 -0
- package/dist/dist/node_modules/@radix-ui/react-dialog/dist/index.es.es.js +209 -0
- package/dist/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.es.cjs.js +1 -0
- package/dist/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.es.es.js +128 -0
- package/dist/dist/node_modules/@radix-ui/react-focus-guards/dist/index.es.cjs.js +1 -0
- package/dist/dist/node_modules/@radix-ui/react-focus-guards/dist/index.es.es.js +18 -0
- package/dist/dist/node_modules/@radix-ui/react-focus-scope/dist/index.es.cjs.js +1 -0
- package/dist/dist/node_modules/@radix-ui/react-focus-scope/dist/index.es.es.js +137 -0
- package/dist/dist/node_modules/@radix-ui/react-portal/dist/index.es.cjs.js +1 -0
- package/dist/dist/node_modules/@radix-ui/react-portal/dist/index.es.es.js +16 -0
- package/dist/dist/node_modules/@radix-ui/react-presence/dist/index.es.cjs.js +1 -0
- package/dist/dist/node_modules/@radix-ui/react-presence/dist/index.es.es.js +71 -0
- package/dist/dist/node_modules/@radix-ui/react-primitive/dist/index.es.cjs.js +1 -0
- package/dist/dist/node_modules/@radix-ui/react-primitive/dist/index.es.es.js +36 -0
- package/dist/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.es.cjs.js +1 -0
- package/dist/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.es.es.js +10 -0
- package/dist/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.es.cjs.js +1 -0
- package/dist/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.es.es.js +14 -0
- package/dist/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.es.cjs.js +1 -0
- package/dist/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.es.es.js +6 -0
- package/dist/dist/node_modules/aria-hidden/dist/es2015/index.es.cjs.js +1 -0
- package/dist/dist/node_modules/aria-hidden/dist/es2015/index.es.es.js +52 -0
- package/dist/dist/node_modules/clsx/dist/clsx.es.cjs.js +1 -0
- package/dist/dist/node_modules/clsx/dist/clsx.es.es.js +17 -0
- package/dist/dist/node_modules/get-nonce/dist/es2015/index.es.cjs.js +1 -0
- package/dist/dist/node_modules/get-nonce/dist/es2015/index.es.es.js +7 -0
- package/dist/dist/node_modules/react/cjs/react-jsx-runtime.development.es.cjs.js +14 -0
- package/dist/dist/node_modules/react/cjs/react-jsx-runtime.development.es.es.js +247 -0
- package/dist/dist/node_modules/react/cjs/react-jsx-runtime.production.es.cjs.js +9 -0
- package/dist/dist/node_modules/react/cjs/react-jsx-runtime.production.es.es.js +35 -0
- package/dist/dist/node_modules/react/jsx-runtime.es.cjs.js +1 -0
- package/dist/dist/node_modules/react/jsx-runtime.es.es.js +10 -0
- package/dist/dist/node_modules/react-remove-scroll/dist/es2015/Combination.es.cjs.js +1 -0
- package/dist/dist/node_modules/react-remove-scroll/dist/es2015/Combination.es.es.js +11 -0
- package/dist/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.es.cjs.js +4 -0
- package/dist/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.es.es.js +112 -0
- package/dist/dist/node_modules/react-remove-scroll/dist/es2015/UI.es.cjs.js +1 -0
- package/dist/dist/node_modules/react-remove-scroll/dist/es2015/UI.es.es.js +31 -0
- package/dist/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.es.cjs.js +1 -0
- package/dist/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.es.es.js +16 -0
- package/dist/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.es.cjs.js +1 -0
- package/dist/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.es.es.js +68 -0
- package/dist/dist/node_modules/react-remove-scroll/dist/es2015/medium.es.cjs.js +1 -0
- package/dist/dist/node_modules/react-remove-scroll/dist/es2015/medium.es.es.js +5 -0
- package/dist/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.es.cjs.js +1 -0
- package/dist/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.es.es.js +7 -0
- package/dist/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.es.cjs.js +38 -0
- package/dist/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.es.es.js +71 -0
- package/dist/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.es.cjs.js +1 -0
- package/dist/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.es.es.js +7 -0
- package/dist/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.es.cjs.js +1 -0
- package/dist/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.es.es.js +25 -0
- package/dist/dist/node_modules/react-style-singleton/dist/es2015/component.es.cjs.js +1 -0
- package/dist/dist/node_modules/react-style-singleton/dist/es2015/component.es.es.js +11 -0
- package/dist/dist/node_modules/react-style-singleton/dist/es2015/hook.es.cjs.js +1 -0
- package/dist/dist/node_modules/react-style-singleton/dist/es2015/hook.es.es.js +15 -0
- package/dist/dist/node_modules/react-style-singleton/dist/es2015/singleton.es.cjs.js +1 -0
- package/dist/dist/node_modules/react-style-singleton/dist/es2015/singleton.es.es.js +30 -0
- package/dist/dist/node_modules/tslib/tslib.es6.es.cjs.js +1 -0
- package/dist/dist/node_modules/tslib/tslib.es6.es.es.js +27 -0
- package/dist/dist/node_modules/use-callback-ref/dist/es2015/assignRef.es.cjs.js +1 -0
- package/dist/dist/node_modules/use-callback-ref/dist/es2015/assignRef.es.es.js +6 -0
- package/dist/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.es.cjs.js +1 -0
- package/dist/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.es.es.js +26 -0
- package/dist/dist/node_modules/use-callback-ref/dist/es2015/useRef.es.cjs.js +1 -0
- package/dist/dist/node_modules/use-callback-ref/dist/es2015/useRef.es.es.js +25 -0
- package/dist/dist/node_modules/use-sidecar/dist/es2015/exports.es.cjs.js +1 -0
- package/dist/dist/node_modules/use-sidecar/dist/es2015/exports.es.es.js +18 -0
- package/dist/dist/node_modules/use-sidecar/dist/es2015/medium.es.cjs.js +1 -0
- package/dist/dist/node_modules/use-sidecar/dist/es2015/medium.es.es.js +67 -0
- package/dist/dist/providers/locale-provider/locale-provider.es.cjs.js +1 -0
- package/dist/dist/providers/locale-provider/locale-provider.es.es.js +6 -0
- package/dist/dist/providers/user-provider/UserProvider.es.cjs.js +1 -0
- package/dist/dist/providers/user-provider/UserProvider.es.es.js +25 -0
- package/dist/dist/utils/utils.es.cjs.js +1 -0
- package/dist/dist/utils/utils.es.es.js +8 -0
- package/dist/hooks/useAuthorization/useAuthorization.cjs.js +1 -0
- package/dist/hooks/useAuthorization/useAuthorization.es.js +17 -0
- package/dist/hooks/useErrors/useErrors.cjs.js +1 -0
- package/dist/hooks/useErrors/useErrors.es.js +17 -0
- package/dist/hooks/useFormState/useFormState.cjs.js +1 -0
- package/dist/hooks/useFormState/useFormState.es.js +36 -0
- package/dist/hooks.cjs.js +1 -1
- package/dist/hooks.es.js +8 -62
- package/dist/node_modules/@radix-ui/primitive/dist/index.cjs.js +1 -0
- package/dist/node_modules/@radix-ui/primitive/dist/index.es.js +9 -0
- package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.cjs.js +1 -0
- package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.es.js +29 -0
- package/dist/node_modules/@radix-ui/react-context/dist/index.cjs.js +1 -0
- package/dist/node_modules/@radix-ui/react-context/dist/index.es.js +68 -0
- package/dist/node_modules/@radix-ui/react-dialog/dist/index.cjs.js +5 -0
- package/dist/node_modules/@radix-ui/react-dialog/dist/index.es.js +258 -0
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs.js +1 -0
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.es.js +128 -0
- package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.cjs.js +1 -0
- package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.es.js +18 -0
- package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.cjs.js +1 -0
- package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.es.js +137 -0
- package/dist/node_modules/@radix-ui/react-id/dist/index.cjs.js +1 -0
- package/dist/node_modules/@radix-ui/react-id/dist/index.es.js +13 -0
- package/dist/node_modules/@radix-ui/react-portal/dist/index.cjs.js +1 -0
- package/dist/node_modules/@radix-ui/react-portal/dist/index.es.js +16 -0
- package/dist/node_modules/@radix-ui/react-presence/dist/index.cjs.js +1 -0
- package/dist/node_modules/@radix-ui/react-presence/dist/index.es.js +71 -0
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.cjs.js +1 -0
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.es.js +36 -0
- package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs.js +1 -0
- package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.es.js +10 -0
- package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.cjs.js +1 -0
- package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.es.js +52 -0
- package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.cjs.js +1 -0
- package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.es.js +14 -0
- package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.cjs.js +1 -0
- package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.es.js +6 -0
- package/dist/node_modules/@swc/helpers/cjs/_interop_require_default.cjs.js +1 -0
- package/dist/node_modules/@swc/helpers/cjs/_interop_require_default.es.js +13 -0
- package/dist/node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs.js +1 -0
- package/dist/node_modules/@swc/helpers/cjs/_interop_require_wildcard.es.js +30 -0
- package/dist/node_modules/aria-hidden/dist/es2015/index.cjs.js +1 -0
- package/dist/node_modules/aria-hidden/dist/es2015/index.es.js +52 -0
- package/dist/node_modules/clsx/dist/clsx.cjs.js +1 -0
- package/dist/node_modules/clsx/dist/clsx.es.js +17 -0
- package/dist/node_modules/date-fns/_lib/addLeadingZeros.cjs.js +1 -0
- package/dist/node_modules/date-fns/_lib/addLeadingZeros.es.js +7 -0
- package/dist/node_modules/date-fns/_lib/defaultOptions.cjs.js +1 -0
- package/dist/node_modules/date-fns/_lib/defaultOptions.es.js +7 -0
- package/dist/node_modules/date-fns/_lib/format/formatters.cjs.js +1 -0
- package/dist/node_modules/date-fns/_lib/format/formatters.es.js +583 -0
- package/dist/node_modules/date-fns/_lib/format/lightFormatters.cjs.js +1 -0
- package/dist/node_modules/date-fns/_lib/format/lightFormatters.es.js +59 -0
- package/dist/node_modules/date-fns/_lib/format/longFormatters.cjs.js +1 -0
- package/dist/node_modules/date-fns/_lib/format/longFormatters.es.js +52 -0
- package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.cjs.js +1 -0
- package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.es.js +18 -0
- package/dist/node_modules/date-fns/_lib/normalizeDates.cjs.js +1 -0
- package/dist/node_modules/date-fns/_lib/normalizeDates.es.js +11 -0
- package/dist/node_modules/date-fns/_lib/protectedTokens.cjs.js +1 -0
- package/dist/node_modules/date-fns/_lib/protectedTokens.es.js +20 -0
- package/dist/node_modules/date-fns/constants.cjs.js +1 -0
- package/dist/node_modules/date-fns/constants.es.js +6 -0
- package/dist/node_modules/date-fns/constructFrom.cjs.js +1 -0
- package/dist/node_modules/date-fns/constructFrom.es.js +8 -0
- package/dist/node_modules/date-fns/differenceInCalendarDays.cjs.js +1 -0
- package/dist/node_modules/date-fns/differenceInCalendarDays.es.js +16 -0
- package/dist/node_modules/date-fns/format.cjs.js +1 -0
- package/dist/node_modules/date-fns/format.es.js +58 -0
- package/dist/node_modules/date-fns/getDayOfYear.cjs.js +1 -0
- package/dist/node_modules/date-fns/getDayOfYear.es.js +11 -0
- package/dist/node_modules/date-fns/getISOWeek.cjs.js +1 -0
- package/dist/node_modules/date-fns/getISOWeek.es.js +12 -0
- package/dist/node_modules/date-fns/getISOWeekYear.cjs.js +1 -0
- package/dist/node_modules/date-fns/getISOWeekYear.es.js +15 -0
- package/dist/node_modules/date-fns/getWeek.cjs.js +1 -0
- package/dist/node_modules/date-fns/getWeek.es.js +12 -0
- package/dist/node_modules/date-fns/getWeekYear.cjs.js +1 -0
- package/dist/node_modules/date-fns/getWeekYear.es.js +16 -0
- package/dist/node_modules/date-fns/isDate.cjs.js +1 -0
- package/dist/node_modules/date-fns/isDate.es.js +7 -0
- package/dist/node_modules/date-fns/isValid.cjs.js +1 -0
- package/dist/node_modules/date-fns/isValid.es.js +9 -0
- package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.cjs.js +1 -0
- package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.es.js +9 -0
- package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.cjs.js +1 -0
- package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.es.js +18 -0
- package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.cjs.js +1 -0
- package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.es.js +31 -0
- package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.cjs.js +1 -0
- package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.es.js +15 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.cjs.js +1 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.es.js +70 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.cjs.js +1 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.es.js +33 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.cjs.js +1 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.es.js +11 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/localize.cjs.js +1 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/localize.es.js +155 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/match.cjs.js +1 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/match.es.js +110 -0
- package/dist/node_modules/date-fns/locale/en-US.cjs.js +1 -0
- package/dist/node_modules/date-fns/locale/en-US.es.js +21 -0
- package/dist/node_modules/date-fns/locale/pt-BR/_lib/formatDistance.cjs.js +1 -0
- package/dist/node_modules/date-fns/locale/pt-BR/_lib/formatDistance.es.js +70 -0
- package/dist/node_modules/date-fns/locale/pt-BR/_lib/formatLong.cjs.js +1 -0
- package/dist/node_modules/date-fns/locale/pt-BR/_lib/formatLong.es.js +33 -0
- package/dist/node_modules/date-fns/locale/pt-BR/_lib/formatRelative.cjs.js +1 -0
- package/dist/node_modules/date-fns/locale/pt-BR/_lib/formatRelative.es.js +17 -0
- package/dist/node_modules/date-fns/locale/pt-BR/_lib/localize.cjs.js +1 -0
- package/dist/node_modules/date-fns/locale/pt-BR/_lib/localize.es.js +154 -0
- package/dist/node_modules/date-fns/locale/pt-BR/_lib/match.cjs.js +1 -0
- package/dist/node_modules/date-fns/locale/pt-BR/_lib/match.es.js +112 -0
- package/dist/node_modules/date-fns/locale/pt-BR.cjs.js +1 -0
- package/dist/node_modules/date-fns/locale/pt-BR.es.js +21 -0
- package/dist/node_modules/date-fns/startOfDay.cjs.js +1 -0
- package/dist/node_modules/date-fns/startOfDay.es.js +9 -0
- package/dist/node_modules/date-fns/startOfISOWeek.cjs.js +1 -0
- package/dist/node_modules/date-fns/startOfISOWeek.es.js +8 -0
- package/dist/node_modules/date-fns/startOfISOWeekYear.cjs.js +1 -0
- package/dist/node_modules/date-fns/startOfISOWeekYear.es.js +11 -0
- package/dist/node_modules/date-fns/startOfWeek.cjs.js +1 -0
- package/dist/node_modules/date-fns/startOfWeek.es.js +10 -0
- package/dist/node_modules/date-fns/startOfWeekYear.cjs.js +1 -0
- package/dist/node_modules/date-fns/startOfWeekYear.es.js +12 -0
- package/dist/node_modules/date-fns/startOfYear.cjs.js +1 -0
- package/dist/node_modules/date-fns/startOfYear.es.js +9 -0
- package/dist/node_modules/date-fns/toDate.cjs.js +1 -0
- package/dist/node_modules/date-fns/toDate.es.js +8 -0
- package/dist/node_modules/get-nonce/dist/es2015/index.cjs.js +1 -0
- package/dist/node_modules/get-nonce/dist/es2015/index.es.js +7 -0
- package/dist/node_modules/next/dist/client/components/app-router-headers.cjs.js +1 -0
- package/dist/node_modules/next/dist/client/components/app-router-headers.es.js +79 -0
- package/dist/node_modules/next/dist/client/components/bailout-to-client-rendering.cjs.js +1 -0
- package/dist/node_modules/next/dist/client/components/bailout-to-client-rendering.es.js +40 -0
- package/dist/node_modules/next/dist/client/components/forbidden.cjs.js +1 -0
- package/dist/node_modules/next/dist/client/components/forbidden.es.js +34 -0
- package/dist/node_modules/next/dist/client/components/hooks-server-context.cjs.js +1 -0
- package/dist/node_modules/next/dist/client/components/hooks-server-context.es.js +36 -0
- package/dist/node_modules/next/dist/client/components/http-access-fallback/http-access-fallback.cjs.js +1 -0
- package/dist/node_modules/next/dist/client/components/http-access-fallback/http-access-fallback.es.js +63 -0
- package/dist/node_modules/next/dist/client/components/is-next-router-error.cjs.js +1 -0
- package/dist/node_modules/next/dist/client/components/is-next-router-error.es.js +24 -0
- package/dist/node_modules/next/dist/client/components/navigation.cjs.js +1 -0
- package/dist/node_modules/next/dist/client/components/navigation.es.js +137 -0
- package/dist/node_modules/next/dist/client/components/navigation.react-server.cjs.js +1 -0
- package/dist/node_modules/next/dist/client/components/navigation.react-server.es.js +85 -0
- package/dist/node_modules/next/dist/client/components/not-found.cjs.js +1 -0
- package/dist/node_modules/next/dist/client/components/not-found.es.js +28 -0
- package/dist/node_modules/next/dist/client/components/redirect-error.cjs.js +1 -0
- package/dist/node_modules/next/dist/client/components/redirect-error.es.js +41 -0
- package/dist/node_modules/next/dist/client/components/redirect-status-code.cjs.js +1 -0
- package/dist/node_modules/next/dist/client/components/redirect-status-code.es.js +21 -0
- package/dist/node_modules/next/dist/client/components/redirect.cjs.js +1 -0
- package/dist/node_modules/next/dist/client/components/redirect.es.js +80 -0
- package/dist/node_modules/next/dist/client/components/router-reducer/reducers/get-segment-value.cjs.js +1 -0
- package/dist/node_modules/next/dist/client/components/router-reducer/reducers/get-segment-value.es.js +21 -0
- package/dist/node_modules/next/dist/client/components/static-generation-bailout.cjs.js +1 -0
- package/dist/node_modules/next/dist/client/components/static-generation-bailout.es.js +36 -0
- package/dist/node_modules/next/dist/client/components/unauthorized.cjs.js +1 -0
- package/dist/node_modules/next/dist/client/components/unauthorized.es.js +34 -0
- package/dist/node_modules/next/dist/client/components/unrecognized-action-error.cjs.js +1 -0
- package/dist/node_modules/next/dist/client/components/unrecognized-action-error.es.js +35 -0
- package/dist/node_modules/next/dist/client/components/unstable-rethrow.browser.cjs.js +1 -0
- package/dist/node_modules/next/dist/client/components/unstable-rethrow.browser.es.js +26 -0
- package/dist/node_modules/next/dist/client/components/unstable-rethrow.cjs.js +1 -0
- package/dist/node_modules/next/dist/client/components/unstable-rethrow.es.js +21 -0
- package/dist/node_modules/next/dist/client/components/unstable-rethrow.server.cjs.js +1 -0
- package/dist/node_modules/next/dist/client/components/unstable-rethrow.server.es.js +30 -0
- package/dist/node_modules/next/dist/lib/framework/boundary-constants.cjs.js +1 -0
- package/dist/node_modules/next/dist/lib/framework/boundary-constants.es.js +33 -0
- package/dist/node_modules/next/dist/lib/scheduler.cjs.js +1 -0
- package/dist/node_modules/next/dist/lib/scheduler.es.js +45 -0
- package/dist/node_modules/next/dist/server/app-render/action-async-storage-instance.cjs.js +1 -0
- package/dist/node_modules/next/dist/server/app-render/action-async-storage-instance.es.js +19 -0
- package/dist/node_modules/next/dist/server/app-render/action-async-storage.external.cjs.js +1 -0
- package/dist/node_modules/next/dist/server/app-render/action-async-storage.external.es.js +19 -0
- package/dist/node_modules/next/dist/server/app-render/async-local-storage.cjs.js +1 -0
- package/dist/node_modules/next/dist/server/app-render/async-local-storage.es.js +65 -0
- package/dist/node_modules/next/dist/server/app-render/dynamic-rendering.cjs.js +6 -0
- package/dist/node_modules/next/dist/server/app-render/dynamic-rendering.es.js +419 -0
- package/dist/node_modules/next/dist/server/app-render/work-async-storage-instance.cjs.js +1 -0
- package/dist/node_modules/next/dist/server/app-render/work-async-storage-instance.es.js +19 -0
- package/dist/node_modules/next/dist/server/app-render/work-async-storage.external.cjs.js +1 -0
- package/dist/node_modules/next/dist/server/app-render/work-async-storage.external.es.js +19 -0
- package/dist/node_modules/next/dist/server/app-render/work-unit-async-storage-instance.cjs.js +1 -0
- package/dist/node_modules/next/dist/server/app-render/work-unit-async-storage-instance.es.js +19 -0
- package/dist/node_modules/next/dist/server/app-render/work-unit-async-storage.external.cjs.js +1 -0
- package/dist/node_modules/next/dist/server/app-render/work-unit-async-storage.external.es.js +187 -0
- package/dist/node_modules/next/dist/server/dynamic-rendering-utils.cjs.js +1 -0
- package/dist/node_modules/next/dist/server/dynamic-rendering-utils.es.js +72 -0
- package/dist/node_modules/next/dist/server/lib/router-utils/is-postpone.cjs.js +1 -0
- package/dist/node_modules/next/dist/server/lib/router-utils/is-postpone.es.js +21 -0
- package/dist/node_modules/next/dist/shared/lib/app-router-context.shared-runtime.cjs.js +1 -0
- package/dist/node_modules/next/dist/shared/lib/app-router-context.shared-runtime.es.js +41 -0
- package/dist/node_modules/next/dist/shared/lib/hooks-client-context.shared-runtime.cjs.js +1 -0
- package/dist/node_modules/next/dist/shared/lib/hooks-client-context.shared-runtime.es.js +33 -0
- package/dist/node_modules/next/dist/shared/lib/invariant-error.cjs.js +1 -0
- package/dist/node_modules/next/dist/shared/lib/invariant-error.es.js +22 -0
- package/dist/node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.cjs.js +1 -0
- package/dist/node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.es.js +35 -0
- package/dist/node_modules/next/dist/shared/lib/segment.cjs.js +1 -0
- package/dist/node_modules/next/dist/shared/lib/segment.es.js +49 -0
- package/dist/node_modules/next/dist/shared/lib/server-inserted-html.shared-runtime.cjs.js +1 -0
- package/dist/node_modules/next/dist/shared/lib/server-inserted-html.shared-runtime.es.js +34 -0
- package/dist/node_modules/next/navigation.cjs.js +1 -0
- package/dist/node_modules/next/navigation.es.js +8 -0
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.cjs.js +14 -0
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.es.js +247 -0
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.cjs.js +9 -0
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.es.js +35 -0
- package/dist/node_modules/react/jsx-runtime.cjs.js +1 -0
- package/dist/node_modules/react/jsx-runtime.es.js +10 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.cjs.js +1 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.es.js +11 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.cjs.js +4 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.es.js +112 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/UI.cjs.js +1 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/UI.es.js +31 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.cjs.js +1 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.es.js +16 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.cjs.js +1 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.es.js +68 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/medium.cjs.js +1 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/medium.es.js +5 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.cjs.js +1 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.es.js +7 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.cjs.js +38 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.es.js +71 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.cjs.js +1 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.es.js +7 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.cjs.js +1 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.es.js +25 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/component.cjs.js +1 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/component.es.js +11 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/hook.cjs.js +1 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/hook.es.js +15 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/singleton.cjs.js +1 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/singleton.es.js +30 -0
- package/dist/node_modules/tslib/tslib.es6.cjs.js +1 -0
- package/dist/node_modules/tslib/tslib.es6.es.js +27 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.cjs.js +1 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.es.js +6 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.cjs.js +1 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.es.js +26 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/useRef.cjs.js +1 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/useRef.es.js +25 -0
- package/dist/node_modules/use-sidecar/dist/es2015/exports.cjs.js +1 -0
- package/dist/node_modules/use-sidecar/dist/es2015/exports.es.js +18 -0
- package/dist/node_modules/use-sidecar/dist/es2015/medium.cjs.js +1 -0
- package/dist/node_modules/use-sidecar/dist/es2015/medium.es.js +67 -0
- package/dist/pages/error/error.cjs.js +1 -0
- package/dist/pages/error/error.es.js +32 -0
- package/dist/pages/forbidden/forbidden.cjs.js +1 -0
- package/dist/pages/forbidden/forbidden.es.js +31 -0
- package/dist/pages/not-found/not-found.cjs.js +1 -0
- package/dist/pages/not-found/not-found.es.js +17 -0
- package/dist/pages.cjs.js +1 -1
- package/dist/pages.es.js +5 -61
- package/dist/providers/locale-provider/locale-provider.cjs.js +1 -0
- package/dist/providers/locale-provider/locale-provider.es.js +29 -0
- package/dist/providers/theme-provider/ThemeProvider.cjs.js +1 -0
- package/dist/providers/theme-provider/ThemeProvider.es.js +13 -0
- package/dist/providers/user-provider/UserProvider.cjs.js +1 -0
- package/dist/providers/user-provider/UserProvider.es.js +115 -0
- package/dist/providers.cjs.js +1 -1
- package/dist/providers.es.js +10 -19
- package/dist/utils/utils.cjs.js +1 -0
- package/dist/utils/utils.es.js +8 -0
- package/package.json +1 -1
- package/dist/Button-C3Twt_rk.cjs +0 -1
- package/dist/UserProvider-BfG9Ccu3.js +0 -395
- package/dist/UserProvider-CQZEZTc7.cjs +0 -22
- package/dist/locale-provider-BMa5HMi7-jcDwp-6T.cjs +0 -22
- package/dist/locale-provider-BMa5HMi7.js +0 -831
- package/dist/locale-provider-DfKreh8K.cjs +0 -1
- package/dist/navigation-CbiZy04t.js +0 -1857
- package/dist/navigation-Czjt6ygu.cjs +0 -6
package/dist/components.cjs.js
CHANGED
@@ -1,1125 +1 @@
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const z=require("./Button-C3Twt_rk.cjs"),N=require("./UserProvider-CQZEZTc7.cjs"),M=require("react"),tr=require("@tanstack/react-table"),_a=require("@dnd-kit/sortable"),er=require("@dnd-kit/core"),j_=require("@radix-ui/react-dropdown-menu"),we=require("lucide-react"),rr=require("@tabler/icons-react"),N_=require("@radix-ui/react-select"),T_=require("@dnd-kit/modifiers"),D_=require("@radix-ui/react-label"),__=require("tailwind-merge"),Z=require("@radix-ui/react-slot"),ie=require("class-variance-authority"),O_=require("@dnd-kit/utilities"),nr=require("react-day-picker"),P_=require("@radix-ui/react-popover"),Lm=require("./locale-provider-DfKreh8K.cjs"),M_=require("@radix-ui/react-checkbox"),A_=require("@radix-ui/react-collapsible"),Ee=require("react-dom"),hn=require("cmdk"),de=require("./locale-provider-BMa5HMi7-jcDwp-6T.cjs"),I_=require("@radix-ui/react-separator"),ru=require("react-hook-form"),F_=require("next-themes"),$0=require("sonner"),L_=require("@radix-ui/react-tabs");function It(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=It(M),Pe=It(j_),Me=It(N_),W_=It(D_),Oa=It(P_),qv=It(M_),Wm=It(A_),ke=It(Ee),z_=It(I_),Tu=It(L_);function U0({className:e,...t}){return N.jsxRuntimeExports.jsx("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:N.jsxRuntimeExports.jsx("table",{"data-slot":"table",className:z.cn("w-full caption-bottom text-sm",e),...t})})}function Y0({className:e,...t}){return N.jsxRuntimeExports.jsx("thead",{"data-slot":"table-header",className:z.cn("[&_tr]:border-b",e),...t})}function B0({className:e,...t}){return N.jsxRuntimeExports.jsx("tbody",{"data-slot":"table-body",className:z.cn("[&_tr:last-child]:border-0",e),...t})}function $_({className:e,...t}){return N.jsxRuntimeExports.jsx("tfoot",{"data-slot":"table-footer",className:z.cn("bg-muted/50 border-t font-medium [&>tr]:last:border-b-0",e),...t})}function nu({className:e,...t}){return N.jsxRuntimeExports.jsx("tr",{"data-slot":"table-row",className:z.cn("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",e),...t})}function K0({className:e,...t}){return N.jsxRuntimeExports.jsx("th",{"data-slot":"table-head",className:z.cn("text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...t})}function zm({className:e,...t}){return N.jsxRuntimeExports.jsx("td",{"data-slot":"table-cell",className:z.cn("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...t})}function U_({className:e,...t}){return N.jsxRuntimeExports.jsx("caption",{"data-slot":"table-caption",className:z.cn("text-muted-foreground mt-4 text-sm",e),...t})}function Cp({...e}){return N.jsxRuntimeExports.jsx(Pe.Root,{"data-slot":"dropdown-menu",...e})}function Y_({...e}){return N.jsxRuntimeExports.jsx(Pe.Portal,{"data-slot":"dropdown-menu-portal",...e})}function ou({...e}){return N.jsxRuntimeExports.jsx(Pe.Trigger,{"data-slot":"dropdown-menu-trigger",...e})}function Sp({className:e,sideOffset:t=4,...r}){return N.jsxRuntimeExports.jsx(Pe.Portal,{children:N.jsxRuntimeExports.jsx(Pe.Content,{"data-slot":"dropdown-menu-content",sideOffset:t,className:z.cn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",e),...r})})}function B_({...e}){return N.jsxRuntimeExports.jsx(Pe.Group,{"data-slot":"dropdown-menu-group",...e})}function K_({className:e,inset:t,variant:r="default",...n}){return N.jsxRuntimeExports.jsx(Pe.Item,{"data-slot":"dropdown-menu-item","data-inset":t,"data-variant":r,className:z.cn("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...n})}function V0({className:e,children:t,checked:r,...n}){return N.jsxRuntimeExports.jsxs(Pe.CheckboxItem,{"data-slot":"dropdown-menu-checkbox-item",className:z.cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),checked:r,...n,children:[N.jsxRuntimeExports.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:N.jsxRuntimeExports.jsx(Pe.ItemIndicator,{children:N.jsxRuntimeExports.jsx(we.CheckIcon,{className:"size-4"})})}),t]})}function H0({...e}){return N.jsxRuntimeExports.jsx(Pe.RadioGroup,{"data-slot":"dropdown-menu-radio-group",...e})}function X0({className:e,children:t,...r}){return N.jsxRuntimeExports.jsxs(Pe.RadioItem,{"data-slot":"dropdown-menu-radio-item",className:z.cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...r,children:[N.jsxRuntimeExports.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:N.jsxRuntimeExports.jsx(Pe.ItemIndicator,{children:N.jsxRuntimeExports.jsx(we.CircleIcon,{className:"size-2 fill-current"})})}),t]})}function V_({className:e,inset:t,...r}){return N.jsxRuntimeExports.jsx(Pe.Label,{"data-slot":"dropdown-menu-label","data-inset":t,className:z.cn("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",e),...r})}function H_({className:e,...t}){return N.jsxRuntimeExports.jsx(Pe.Separator,{"data-slot":"dropdown-menu-separator",className:z.cn("bg-border -mx-1 my-1 h-px",e),...t})}function X_({className:e,...t}){return N.jsxRuntimeExports.jsx("span",{"data-slot":"dropdown-menu-shortcut",className:z.cn("text-muted-foreground ml-auto text-xs tracking-widest",e),...t})}function G_({...e}){return N.jsxRuntimeExports.jsx(Pe.Sub,{"data-slot":"dropdown-menu-sub",...e})}function q_({className:e,inset:t,children:r,...n}){return N.jsxRuntimeExports.jsxs(Pe.SubTrigger,{"data-slot":"dropdown-menu-sub-trigger","data-inset":t,className:z.cn("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8",e),...n,children:[r,N.jsxRuntimeExports.jsx(we.ChevronRightIcon,{className:"ml-auto size-4"})]})}function Z_({className:e,...t}){return N.jsxRuntimeExports.jsx(Pe.SubContent,{"data-slot":"dropdown-menu-sub-content",className:z.cn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",e),...t})}function J_(){return N.jsxRuntimeExports.jsx(ou,{asChild:!0,children:N.jsxRuntimeExports.jsxs(z.Button,{variant:"ghost",className:"data-[state=open]:bg-muted text-muted-foreground flex size-8 p-0",size:"icon",children:[N.jsxRuntimeExports.jsx(rr.IconDotsVertical,{className:"size-4"}),N.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"Abrir Menu"})]})})}function G0({...e}){return N.jsxRuntimeExports.jsx(Me.Root,{"data-slot":"select",...e})}function Q_({...e}){return N.jsxRuntimeExports.jsx(Me.Group,{"data-slot":"select-group",...e})}function q0({...e}){return N.jsxRuntimeExports.jsx(Me.Value,{"data-slot":"select-value",...e})}function Z0({className:e,size:t="default",children:r,...n}){return N.jsxRuntimeExports.jsxs(Me.Trigger,{"data-slot":"select-trigger","data-size":t,className:z.cn("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...n,children:[r,N.jsxRuntimeExports.jsx(Me.Icon,{asChild:!0,children:N.jsxRuntimeExports.jsx(we.ChevronDownIcon,{className:"size-4 opacity-50"})})]})}function J0({className:e,children:t,position:r="popper",...n}){return N.jsxRuntimeExports.jsx(Me.Portal,{children:N.jsxRuntimeExports.jsxs(Me.Content,{"data-slot":"select-content",className:z.cn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:r,...n,children:[N.jsxRuntimeExports.jsx(ex,{}),N.jsxRuntimeExports.jsx(Me.Viewport,{className:z.cn("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:t}),N.jsxRuntimeExports.jsx(tx,{})]})})}function eO({className:e,...t}){return N.jsxRuntimeExports.jsx(Me.Label,{"data-slot":"select-label",className:z.cn("text-muted-foreground px-2 py-1.5 text-xs",e),...t})}function Q0({className:e,children:t,...r}){return N.jsxRuntimeExports.jsxs(Me.Item,{"data-slot":"select-item",className:z.cn("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),...r,children:[N.jsxRuntimeExports.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:N.jsxRuntimeExports.jsx(Me.ItemIndicator,{children:N.jsxRuntimeExports.jsx(we.CheckIcon,{className:"size-4"})})}),N.jsxRuntimeExports.jsx(Me.ItemText,{children:t})]})}function tO({className:e,...t}){return N.jsxRuntimeExports.jsx(Me.Separator,{"data-slot":"select-separator",className:z.cn("bg-border pointer-events-none -mx-1 my-1 h-px",e),...t})}function ex({className:e,...t}){return N.jsxRuntimeExports.jsx(Me.ScrollUpButton,{"data-slot":"select-scroll-up-button",className:z.cn("flex cursor-default items-center justify-center py-1",e),...t,children:N.jsxRuntimeExports.jsx(we.ChevronUpIcon,{className:"size-4"})})}function tx({className:e,...t}){return N.jsxRuntimeExports.jsx(Me.ScrollDownButton,{"data-slot":"select-scroll-down-button",className:z.cn("flex cursor-default items-center justify-center py-1",e),...t,children:N.jsxRuntimeExports.jsx(we.ChevronDownIcon,{className:"size-4"})})}function rx({className:e,type:t,...r}){return N.jsxRuntimeExports.jsx("input",{type:t,"data-slot":"input",className:z.cn("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","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",e),...r})}function $m({className:e,...t}){return N.jsxRuntimeExports.jsx(W_.Root,{"data-slot":"label",className:z.cn("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...t})}function rO({data:e,columns:t,getRowId:r,onRowOrderChange:n,onRowClick:o=()=>{},tableKey:a,Actions:c,defaultColumnFilter:s}){const m=`tablePageSize_${a}`,d=`tableColumnVisibility_${a}`,[u,p]=M.useState(()=>{if(typeof window>"u")return{};const P=localStorage.getItem(d);return P?JSON.parse(P):{}}),[v,h]=M.useState({pageIndex:0,pageSize:Number(typeof window<"u"&&localStorage.getItem(m))||10}),E=M.useId(),l=er.useSensors(er.useSensor(er.MouseSensor,{}),er.useSensor(er.TouchSensor,{}),er.useSensor(er.KeyboardSensor,{})),g=M.useMemo(()=>e?.map(({id:P})=>P)||[],[e]),[y,b]=M.useState(e),[w,k]=M.useState({}),[S,T]=M.useState([]),[C,j]=M.useState([]);M.useEffect(()=>{b(e)},[e]),M.useEffect(()=>{localStorage.setItem(d,JSON.stringify(u))},[u,d]),M.useEffect(()=>{localStorage.setItem(m,String(v.pageSize))},[v.pageSize,m]);function O({columns:P}){let U=!1;for(const Y of P)if(Y.id==="drag"){U=!0;break}const V={id:"drag"};return U?[...P]:[V,...P]}function L(P){const{active:U,over:V}=P;U&&V&&U.id!==V.id&&b(Y=>{const X=Y.findIndex(R=>R.id===U.id),f=Y.findIndex(R=>R.id===V.id),x=_a.arrayMove(Y,X,f);return n&&n(x),x})}const I=tr.useReactTable({data:y,columns:O({columns:t}),state:{sorting:C,columnVisibility:u,rowSelection:w,columnFilters:S,pagination:v},getRowId:r,enableRowSelection:!0,onRowSelectionChange:k,onSortingChange:j,onColumnFiltersChange:T,onColumnVisibilityChange:p,onPaginationChange:h,getCoreRowModel:tr.getCoreRowModel(),getFilteredRowModel:tr.getFilteredRowModel(),getPaginationRowModel:tr.getPaginationRowModel(),getSortedRowModel:tr.getSortedRowModel(),getFacetedRowModel:tr.getFacetedRowModel(),getFacetedUniqueValues:tr.getFacetedUniqueValues()});function B(){const P=I.getAllColumns()[1].columnDef;return String(P.id)?String(P.id):String(P.header)}const[K,$]=M.useState(s??B());return N.jsxRuntimeExports.jsxs("div",{children:[N.jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-between px-4 lg:px-6 mb-5 gap-2",children:[N.jsxRuntimeExports.jsxs("div",{className:"relative w-full h-[32px]",children:[N.jsxRuntimeExports.jsx(we.Search,{className:"absolute left-3 top-1/2 w-4 -translate-y-1/2 text-muted-foreground"}),N.jsxRuntimeExports.jsx(rx,{type:"text",placeholder:"",className:"pl-10 h-[32px]",value:I.getColumn(K)?.getFilterValue()??"",onChange:P=>{I.getColumn(K)?.setFilterValue(P.target.value)}})]}),N.jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2",children:[N.jsxRuntimeExports.jsxs(Cp,{children:[N.jsxRuntimeExports.jsx(ou,{asChild:!0,children:N.jsxRuntimeExports.jsxs(z.Button,{variant:"outline",size:"sm",children:[N.jsxRuntimeExports.jsx(we.FilterIcon,{}),N.jsxRuntimeExports.jsx("span",{className:"sm:hidden lg:inline",children:K||"Filtro"}),N.jsxRuntimeExports.jsx("span",{className:"lg:hidden",children:K||"Filtro"}),N.jsxRuntimeExports.jsx(rr.IconChevronDown,{})]})}),N.jsxRuntimeExports.jsx(Sp,{align:"end",className:"w-56",children:N.jsxRuntimeExports.jsx(H0,{value:K,onValueChange:P=>{T([]),$(P)},children:I.getAllColumns().filter(P=>typeof P.accessorFn<"u"&&P.getCanHide()).map(P=>{const U=P.columnDef.id?String(P.columnDef.id):String(P.columnDef.header);return N.jsxRuntimeExports.jsx(X0,{value:U,children:U},U)})})})]}),N.jsxRuntimeExports.jsxs(Cp,{children:[N.jsxRuntimeExports.jsx(ou,{asChild:!0,children:N.jsxRuntimeExports.jsxs(z.Button,{variant:"outline",size:"sm",children:[N.jsxRuntimeExports.jsx(rr.IconLayoutColumns,{}),N.jsxRuntimeExports.jsx("span",{className:"hidden lg:inline",children:"Colunas"}),N.jsxRuntimeExports.jsx("span",{className:"lg:hidden",children:"Colunas"}),N.jsxRuntimeExports.jsx(rr.IconChevronDown,{})]})}),N.jsxRuntimeExports.jsx(Sp,{align:"end",className:"w-56",children:I.getAllColumns().filter(P=>typeof P.accessorFn<"u"&&P.getCanHide()).map(P=>N.jsxRuntimeExports.jsx(V0,{className:"capitalize",checked:P.getIsVisible(),onCheckedChange:U=>{P.toggleVisibility(!!U)},children:P.columnDef.id?String(P.columnDef.id):String(P.columnDef.header)},P.id))})]}),c]})]}),N.jsxRuntimeExports.jsxs("div",{className:"relative flex flex-col gap-4 overflow-auto px-4 lg:px-6",children:[N.jsxRuntimeExports.jsx("div",{className:"overflow-hidden rounded-lg border",children:N.jsxRuntimeExports.jsx(er.DndContext,{collisionDetection:er.closestCenter,modifiers:[T_.restrictToVerticalAxis],onDragEnd:L,sensors:l,id:E,children:N.jsxRuntimeExports.jsxs(U0,{children:[N.jsxRuntimeExports.jsx(Y0,{className:"sticky top-0 z-10",children:I.getHeaderGroups().map(P=>N.jsxRuntimeExports.jsx(nu,{children:P.headers.map(U=>N.jsxRuntimeExports.jsx(K0,{colSpan:U.colSpan,children:U.isPlaceholder?null:tr.flexRender(U.column.columnDef.header,U.getContext())},U.id))},P.id))}),N.jsxRuntimeExports.jsx(_a.SortableContext,{items:g,strategy:_a.verticalListSortingStrategy,children:N.jsxRuntimeExports.jsx(B0,{className:"**:data-[slot=table-cell]:first:w-8",children:I.getRowModel().rows?.length?I.getRowModel().rows.map(P=>N.jsxRuntimeExports.jsx(nx,{row:P,onRowClick:o},P.id)):N.jsxRuntimeExports.jsx(nu,{children:N.jsxRuntimeExports.jsx(zm,{colSpan:t.length,className:"h-24 text-center",children:"Nenhum Resultado."})})})})]})})}),N.jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-between px-4",children:[N.jsxRuntimeExports.jsxs("div",{className:"text-muted-foreground hidden flex-1 text-sm lg:flex",children:[I.getFilteredSelectedRowModel().rows.length," de"," ",I.getFilteredRowModel().rows.length," linhas selecionadas."]}),N.jsxRuntimeExports.jsxs("div",{className:"flex w-full items-center gap-8 lg:w-fit",children:[N.jsxRuntimeExports.jsxs("div",{className:"hidden items-center gap-2 lg:flex",children:[N.jsxRuntimeExports.jsx($m,{htmlFor:"rows-per-page",className:"text-sm font-medium",children:"linhas por paginas"}),N.jsxRuntimeExports.jsxs(G0,{value:`${I.getState().pagination.pageSize}`,onValueChange:P=>{I.setPageSize(Number(P))},children:[N.jsxRuntimeExports.jsx(Z0,{size:"sm",className:"w-20",id:"rows-per-page",children:N.jsxRuntimeExports.jsx(q0,{placeholder:I.getState().pagination.pageSize})}),N.jsxRuntimeExports.jsx(J0,{side:"top",children:[10,20,30,40,50].map(P=>N.jsxRuntimeExports.jsx(Q0,{value:`${P}`,children:P},P))})]})]}),N.jsxRuntimeExports.jsxs("div",{className:"flex w-fit items-center justify-center text-sm font-medium",children:["Página ",I.getState().pagination.pageIndex+1," de"," ",I.getPageCount()]}),N.jsxRuntimeExports.jsxs("div",{className:"ml-auto flex items-center gap-2 lg:ml-0",children:[N.jsxRuntimeExports.jsxs(z.Button,{variant:"outline",className:"hidden h-8 w-8 p-0 lg:flex",onClick:()=>I.setPageIndex(0),disabled:!I.getCanPreviousPage(),children:[N.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"Go to first page"}),N.jsxRuntimeExports.jsx(rr.IconChevronsLeft,{})]}),N.jsxRuntimeExports.jsxs(z.Button,{variant:"outline",className:"size-8",size:"icon",onClick:()=>I.previousPage(),disabled:!I.getCanPreviousPage(),children:[N.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"Go to previous page"}),N.jsxRuntimeExports.jsx(rr.IconChevronLeft,{})]}),N.jsxRuntimeExports.jsxs(z.Button,{variant:"outline",className:"size-8",size:"icon",onClick:()=>I.nextPage(),disabled:!I.getCanNextPage(),children:[N.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"Go to next page"}),N.jsxRuntimeExports.jsx(rr.IconChevronRight,{})]}),N.jsxRuntimeExports.jsxs(z.Button,{variant:"outline",className:"hidden size-8 lg:flex",size:"icon",onClick:()=>I.setPageIndex(I.getPageCount()-1),disabled:!I.getCanNextPage(),children:[N.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"Go to last page"}),N.jsxRuntimeExports.jsx(rr.IconChevronsRight,{})]})]})]})]})]})]})}function nx({row:e,onRowClick:t=()=>{}}){const{transform:r,transition:n,setNodeRef:o,isDragging:a}=_a.useSortable({id:e.original.id});return N.jsxRuntimeExports.jsx(nu,{"data-state":e.getIsSelected()&&"selected","data-dragging":a,ref:o,style:{transform:O_.CSS.Transform.toString(r),transition:n,cursor:"grab"},onClick:()=>{t(e.original)},children:e.getVisibleCells().map(c=>N.jsxRuntimeExports.jsx(zm,{className:"cursor-pointer",children:tr.flexRender(c.column.columnDef.cell,c.getContext())},c.id))})}function nO({id:e}){const{attributes:t,listeners:r}=_a.useSortable({id:e});return N.jsxRuntimeExports.jsxs(z.Button,{...t,...r,variant:"ghost",size:"icon",className:"text-muted-foreground size-7 hover:bg-transparent cursor-pointer",children:[N.jsxRuntimeExports.jsx(rr.IconGripVertical,{className:"text-muted-foreground size-3"}),N.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"Drag to reorder"})]})}function Um({className:e,classNames:t,showOutsideDays:r=!0,captionLayout:n="label",buttonVariant:o="ghost",formatters:a,components:c,...s}){const m=nr.getDefaultClassNames();return N.jsxRuntimeExports.jsx(nr.DayPicker,{showOutsideDays:r,className:z.cn("bg-background group/calendar p-3 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent",String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,e),captionLayout:n,formatters:{formatMonthDropdown:d=>d.toLocaleString("default",{month:"short"}),...a},classNames:{root:z.cn("w-fit",m.root),months:z.cn("flex gap-4 flex-col md:flex-row relative",m.months),month:z.cn("flex flex-col w-full gap-4",m.month),nav:z.cn("flex items-center gap-1 w-full absolute top-0 inset-x-0 justify-between",m.nav),button_previous:z.cn(z.buttonVariants({variant:o}),"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",m.button_previous),button_next:z.cn(z.buttonVariants({variant:o}),"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",m.button_next),month_caption:z.cn("flex items-center justify-center h-(--cell-size) w-full px-(--cell-size)",m.month_caption),dropdowns:z.cn("w-full flex items-center text-sm font-medium justify-center h-(--cell-size) gap-1.5",m.dropdowns),dropdown_root:z.cn("relative has-focus:border-ring border border-input shadow-xs has-focus:ring-ring/50 has-focus:ring-[3px] rounded-md",m.dropdown_root),dropdown:z.cn("absolute bg-popover inset-0 opacity-0",m.dropdown),caption_label:z.cn("select-none font-medium",n==="label"?"text-sm":"rounded-md pl-2 pr-1 flex items-center gap-1 text-sm h-8 [&>svg]:text-muted-foreground [&>svg]:size-3.5",m.caption_label),table:"w-full border-collapse",weekdays:z.cn("flex",m.weekdays),weekday:z.cn("text-muted-foreground rounded-md flex-1 font-normal text-[0.8rem] select-none",m.weekday),week:z.cn("flex w-full mt-2",m.week),week_number_header:z.cn("select-none w-(--cell-size)",m.week_number_header),week_number:z.cn("text-[0.8rem] select-none text-muted-foreground",m.week_number),day:z.cn("relative w-full h-full p-0 text-center [&:first-child[data-selected=true]_button]:rounded-l-md [&:last-child[data-selected=true]_button]:rounded-r-md group/day aspect-square select-none",m.day),range_start:z.cn("rounded-l-md bg-accent",m.range_start),range_middle:z.cn("rounded-none",m.range_middle),range_end:z.cn("rounded-r-md bg-accent",m.range_end),today:z.cn("bg-accent text-accent-foreground rounded-md data-[selected=true]:rounded-none",m.today),outside:z.cn("text-muted-foreground aria-selected:text-muted-foreground",m.outside),disabled:z.cn("text-muted-foreground opacity-50",m.disabled),hidden:z.cn("invisible",m.hidden),...t},components:{Root:({className:d,rootRef:u,...p})=>N.jsxRuntimeExports.jsx("div",{"data-slot":"calendar",ref:u,className:z.cn(d),...p}),Chevron:({className:d,orientation:u,...p})=>u==="left"?N.jsxRuntimeExports.jsx(we.ChevronLeftIcon,{className:z.cn("size-4",d),...p}):u==="right"?N.jsxRuntimeExports.jsx(we.ChevronRightIcon,{className:z.cn("size-4",d),...p}):N.jsxRuntimeExports.jsx(we.ChevronDownIcon,{className:z.cn("size-4",d),...p}),DayButton:ox,WeekNumber:({children:d,...u})=>N.jsxRuntimeExports.jsx("td",{...u,children:N.jsxRuntimeExports.jsx("div",{className:"flex size-(--cell-size) items-center justify-center text-center",children:d})}),...c},...s})}function ox({className:e,day:t,modifiers:r,...n}){const o=nr.getDefaultClassNames(),a=M.useRef(null);return M.useEffect(()=>{r.focused&&a.current?.focus()},[r.focused]),N.jsxRuntimeExports.jsx(z.Button,{ref:a,variant:"ghost",size:"icon","data-day":t.date.toLocaleDateString(),"data-selected-single":r.selected&&!r.range_start&&!r.range_end&&!r.range_middle,"data-range-start":r.range_start,"data-range-end":r.range_end,"data-range-middle":r.range_middle,className:z.cn("data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 dark:hover:text-accent-foreground flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-[3px] data-[range-end=true]:rounded-md data-[range-end=true]:rounded-r-md data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-md data-[range-start=true]:rounded-l-md [&>span]:text-xs [&>span]:opacity-70",o.day,e),...n})}const ax=6048e5,oO=864e5,Zv=Symbol.for("constructDateFrom");function Br(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&Zv in e?e[Zv](t):e instanceof Date?new e.constructor(t):new Date(t)}function nt(e,t){return Br(t||e,e)}let aO={};function Du(){return aO}function Pa(e,t){const r=Du(),n=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,o=nt(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 au(e,t){return Pa(e,{...t,weekStartsOn:1})}function sx(e,t){const r=nt(e,t?.in),n=r.getFullYear(),o=Br(r,0);o.setFullYear(n+1,0,4),o.setHours(0,0,0,0);const a=au(o),c=Br(r,0);c.setFullYear(n,0,4),c.setHours(0,0,0,0);const s=au(c);return r.getTime()>=a.getTime()?n+1:r.getTime()>=s.getTime()?n:n-1}function Jv(e){const t=nt(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 sO(e,...t){const r=Br.bind(null,t.find(n=>typeof n=="object"));return t.map(r)}function Qv(e,t){const r=nt(e,t?.in);return r.setHours(0,0,0,0),r}function iO(e,t,r){const[n,o]=sO(r?.in,e,t),a=Qv(n),c=Qv(o),s=+a-Jv(a),m=+c-Jv(c);return Math.round((s-m)/oO)}function cO(e,t){const r=sx(e,t),n=Br(e,0);return n.setFullYear(r,0,4),n.setHours(0,0,0,0),au(n)}function uO(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function lO(e){return!(!uO(e)&&typeof e!="number"||isNaN(+nt(e)))}function dO(e,t){const r=nt(e,t?.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}function fO(e,t){const r=nt(e,t?.in);return iO(r,dO(r))+1}function pO(e,t){const r=nt(e,t?.in),n=+au(r)-+cO(r);return Math.round(n/ax)+1}function ix(e,t){const r=nt(e,t?.in),n=r.getFullYear(),o=Du(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,c=Br(t?.in||e,0);c.setFullYear(n+1,0,a),c.setHours(0,0,0,0);const s=Pa(c,t),m=Br(t?.in||e,0);m.setFullYear(n,0,a),m.setHours(0,0,0,0);const d=Pa(m,t);return+r>=+s?n+1:+r>=+d?n:n-1}function mO(e,t){const r=Du(),n=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,o=ix(e,t),a=Br(t?.in||e,0);return a.setFullYear(o,0,n),a.setHours(0,0,0,0),Pa(a,t)}function vO(e,t){const r=nt(e,t?.in),n=+Pa(r,t)-+mO(r,t);return Math.round(n/ax)+1}function ue(e,t){const r=e<0?"-":"",n=Math.abs(e).toString().padStart(t,"0");return r+n}const vr={y(e,t){const r=e.getFullYear(),n=r>0?r:1-r;return ue(t==="yy"?n%100:n,t.length)},M(e,t){const r=e.getMonth();return t==="M"?String(r+1):ue(r+1,2)},d(e,t){return ue(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 ue(e.getHours()%12||12,t.length)},H(e,t){return ue(e.getHours(),t.length)},m(e,t){return ue(e.getMinutes(),t.length)},s(e,t){return ue(e.getSeconds(),t.length)},S(e,t){const r=t.length,n=e.getMilliseconds(),o=Math.trunc(n*Math.pow(10,r-3));return ue(o,t.length)}},jn={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},eg={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 vr.y(e,t)},Y:function(e,t,r,n){const o=ix(e,n),a=o>0?o:1-o;if(t==="YY"){const c=a%100;return ue(c,2)}return t==="Yo"?r.ordinalNumber(a,{unit:"year"}):ue(a,t.length)},R:function(e,t){const r=sx(e);return ue(r,t.length)},u:function(e,t){const r=e.getFullYear();return ue(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 ue(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 ue(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 vr.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 ue(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=vO(e,n);return t==="wo"?r.ordinalNumber(o,{unit:"week"}):ue(o,t.length)},I:function(e,t,r){const n=pO(e);return t==="Io"?r.ordinalNumber(n,{unit:"week"}):ue(n,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getDate(),{unit:"date"}):vr.d(e,t)},D:function(e,t,r){const n=fO(e);return t==="Do"?r.ordinalNumber(n,{unit:"dayOfYear"}):ue(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 ue(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 ue(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 ue(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 o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,r){const n=e.getHours();let o;switch(n===12?o=jn.noon:n===0?o=jn.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=jn.evening:n>=12?o=jn.afternoon:n>=4?o=jn.morning:o=jn.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 vr.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getHours(),{unit:"hour"}):vr.H(e,t)},K:function(e,t,r){const n=e.getHours()%12;return t==="Ko"?r.ordinalNumber(n,{unit:"hour"}):ue(n,t.length)},k:function(e,t,r){let n=e.getHours();return n===0&&(n=24),t==="ko"?r.ordinalNumber(n,{unit:"hour"}):ue(n,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):vr.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getSeconds(),{unit:"second"}):vr.s(e,t)},S:function(e,t){return vr.S(e,t)},X:function(e,t,r){const n=e.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return rg(n);case"XXXX":case"XX":return Xr(n);case"XXXXX":case"XXX":default:return Xr(n,":")}},x:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"x":return rg(n);case"xxxx":case"xx":return Xr(n);case"xxxxx":case"xxx":default:return Xr(n,":")}},O:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+tg(n,":");case"OOOO":default:return"GMT"+Xr(n,":")}},z:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+tg(n,":");case"zzzz":default:return"GMT"+Xr(n,":")}},t:function(e,t,r){const n=Math.trunc(+e/1e3);return ue(n,t.length)},T:function(e,t,r){return ue(+e,t.length)}};function tg(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+ue(a,2)}function rg(e,t){return e%60===0?(e>0?"-":"+")+ue(Math.abs(e)/60,2):Xr(e,t)}function Xr(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),o=ue(Math.trunc(n/60),2),a=ue(n%60,2);return r+o+t+a}const ng=(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"})}},cx=(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"})}},gO=(e,t)=>{const r=e.match(/(P+)(p+)?/)||[],n=r[1],o=r[2];if(!o)return ng(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}}",ng(n,t)).replace("{{time}}",cx(o,t))},hO={p:cx,P:gO},yO=/^D+$/,bO=/^Y+$/,wO=["D","DD","YY","YYYY"];function xO(e){return yO.test(e)}function EO(e){return bO.test(e)}function kO(e,t,r){const n=CO(e,t,r);if(console.warn(n),wO.includes(e))throw new RangeError(n)}function CO(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 SO=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,RO=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,jO=/^'([^]*?)'?$/,NO=/''/g,TO=/[a-zA-Z]/;function Rp(e,t,r){const n=Du(),o=r?.locale??n.locale??Lm.enUS,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=nt(e,r?.in);if(!lO(s))throw new RangeError("Invalid time value");let m=t.match(RO).map(u=>{const p=u[0];if(p==="p"||p==="P"){const v=hO[p];return v(u,o.formatLong)}return u}).join("").match(SO).map(u=>{if(u==="''")return{isToken:!1,value:"'"};const p=u[0];if(p==="'")return{isToken:!1,value:DO(u)};if(eg[p])return{isToken:!0,value:u};if(p.match(TO))throw new RangeError("Format string contains an unescaped latin alphabet character `"+p+"`");return{isToken:!1,value:u}});o.localize.preprocessor&&(m=o.localize.preprocessor(s,m));const d={firstWeekContainsDate:a,weekStartsOn:c,locale:o};return m.map(u=>{if(!u.isToken)return u.value;const p=u.value;(!r?.useAdditionalWeekYearTokens&&EO(p)||!r?.useAdditionalDayOfYearTokens&&xO(p))&&kO(p,t,String(e));const v=eg[p[0]];return v(s,p,o.localize,d)}).join("")}function DO(e){const t=e.match(jO);return t?t[1].replace(NO,"'"):e}function ns({...e}){return N.jsxRuntimeExports.jsx(Oa.Root,{"data-slot":"popover",...e})}function os({...e}){return N.jsxRuntimeExports.jsx(Oa.Trigger,{"data-slot":"popover-trigger",...e})}function as({className:e,align:t="center",sideOffset:r=4,...n}){return N.jsxRuntimeExports.jsx(Oa.Portal,{children:N.jsxRuntimeExports.jsx(Oa.Content,{"data-slot":"popover-content",align:t,sideOffset:r,className:z.cn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",e),...n})})}function _O({...e}){return N.jsxRuntimeExports.jsx(Oa.Anchor,{"data-slot":"popover-anchor",...e})}function OO({value:e,onChange:t=()=>{}}){const[r,n]=M.useState(e),{locale:o}=Lm.useLocale();return N.jsxRuntimeExports.jsxs(ns,{children:[N.jsxRuntimeExports.jsx(os,{asChild:!0,children:N.jsxRuntimeExports.jsxs(z.Button,{variant:"outline",className:z.cn("justify-start text-left font-normal cursor-pointer h-[32px] border-dashed",!r&&"text-muted-foreground"),children:[N.jsxRuntimeExports.jsx(we.Calendar,{className:"mr-2 h-4 w-4"}),r?Rp(new nr.TZDate(r.toString(),"UTC"),"dd 'de' MMMM 'de' yyyy",{locale:o}):N.jsxRuntimeExports.jsx("span",{children:"Selecione uma data"})]})}),N.jsxRuntimeExports.jsx(as,{className:"w-auto p-0",children:N.jsxRuntimeExports.jsx(Um,{mode:"single",captionLayout:"dropdown",locale:o,timeZone:"UTC",selected:r,defaultMonth:e?new nr.TZDate(e.toString()):new nr.TZDate,onSelect:a=>{n(a),t(a)},endMonth:new nr.TZDate(2099,11)})})]})}function PO({locale:e,value:t,onChange:r=()=>{}}){const[n,o]=M.useState(t),{locale:a}=Lm.useLocale();return N.jsxRuntimeExports.jsxs(ns,{children:[N.jsxRuntimeExports.jsx(os,{asChild:!0,children:N.jsxRuntimeExports.jsxs(z.Button,{variant:"outline",className:z.cn("justify-start text-left font-normal cursor-pointer h-[32px] border-dashed",!n&&"text-muted-foreground"),children:[N.jsxRuntimeExports.jsx(we.Calendar,{className:"mr-2 h-4 w-4"}),n?.from&&n?.to?`${Rp(n.from,"dd/MM/yy")} - ${Rp(n.to,"dd/MM/yy")}`:N.jsxRuntimeExports.jsx("span",{children:"Selecione um período"})]})}),N.jsxRuntimeExports.jsx(as,{className:"w-auto p-0",children:N.jsxRuntimeExports.jsx(Um,{mode:"range",selected:n,onSelect:c=>{c&&(o(c),r(c))},locale:e||a,captionLayout:"dropdown",endMonth:new nr.TZDate(2099,11),numberOfMonths:1,className:"rounded-lg border shadow-sm"})})]})}const ux=ie.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 yc({className:e,variant:t,asChild:r=!1,...n}){const o=r?Z.Slot:"span";return N.jsxRuntimeExports.jsx(o,{"data-slot":"badge",className:z.cn(ux({variant:t}),e),...n})}function MO({className:e,...t}){return N.jsxRuntimeExports.jsx("div",{"data-slot":"card",className:z.cn("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e),...t})}function AO({className:e,...t}){return N.jsxRuntimeExports.jsx("div",{"data-slot":"card-header",className:z.cn("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...t})}function IO({className:e,...t}){return N.jsxRuntimeExports.jsx("div",{"data-slot":"card-title",className:z.cn("leading-none font-semibold",e),...t})}function FO({className:e,...t}){return N.jsxRuntimeExports.jsx("div",{"data-slot":"card-description",className:z.cn("text-muted-foreground text-sm",e),...t})}function LO({className:e,...t}){return N.jsxRuntimeExports.jsx("div",{"data-slot":"card-action",className:z.cn("col-start-2 row-span-2 row-start-1 self-start justify-self-end",e),...t})}function WO({className:e,...t}){return N.jsxRuntimeExports.jsx("div",{"data-slot":"card-content",className:z.cn("px-6",e),...t})}function zO({className:e,...t}){return N.jsxRuntimeExports.jsx("div",{"data-slot":"card-footer",className:z.cn("flex items-center px-6 [.border-t]:pt-6",e),...t})}function $O({className:e,...t}){return N.jsxRuntimeExports.jsx(qv.Root,{"data-slot":"checkbox",className:z.cn("peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:N.jsxRuntimeExports.jsx(qv.Indicator,{"data-slot":"checkbox-indicator",className:"flex items-center justify-center text-current transition-none",children:N.jsxRuntimeExports.jsx(we.CheckIcon,{className:"size-3.5"})})})}function UO({...e}){return N.jsxRuntimeExports.jsx(Wm.Root,{"data-slot":"collapsible",...e})}function YO({...e}){return N.jsxRuntimeExports.jsx(Wm.CollapsibleTrigger,{"data-slot":"collapsible-trigger",...e})}function BO({...e}){return N.jsxRuntimeExports.jsx(Wm.CollapsibleContent,{"data-slot":"collapsible-content",...e})}function Ar(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e?.(o),r===!1||!o.defaultPrevented)return t?.(o)}}function og(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function KO(...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 yn(...e){return i.useCallback(KO(...e),e)}function VO(e,t){const r=i.createContext(t),n=a=>{const{children:c,...s}=a,m=i.useMemo(()=>s,Object.values(s));return N.jsxRuntimeExports.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 HO(e,t=[]){let r=[];function n(a,c){const s=i.createContext(c),m=r.length;r=[...r,c];const d=p=>{const{scope:v,children:h,...E}=p,l=v?.[e]?.[m]||s,g=i.useMemo(()=>E,Object.values(E));return N.jsxRuntimeExports.jsx(l.Provider,{value:g,children:h})};d.displayName=a+"Provider";function u(p,v){const h=v?.[e]?.[m]||s,E=i.useContext(h);if(E)return E;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[d,u]}const o=()=>{const a=r.map(c=>i.createContext(c));return function(s){const m=s?.[e]||a;return i.useMemo(()=>({[`__scope${e}`]:{...s,[e]:m}}),[s,m])}};return o.scopeName=e,[n,XO(o,...t)]}function XO(...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(a){const c=n.reduce((s,{useScope:m,scopeName:d})=>{const p=m(a)[`__scope${d}`];return{...s,...p}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:c}),[c])}};return r.scopeName=t.scopeName,r}var Ma=globalThis?.document?i.useLayoutEffect:()=>{},GO=i[" useId ".trim().toString()]||(()=>{}),qO=0;function Dl(e){const[t,r]=i.useState(GO());return Ma(()=>{r(n=>n??String(qO++))},[e]),e||(t?`radix-${t}`:"")}var ZO=i[" useInsertionEffect ".trim().toString()]||Ma;function JO({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,a,c]=QO({defaultProp:t,onChange:r}),s=e!==void 0,m=s?e:o;{const u=i.useRef(e!==void 0);i.useEffect(()=>{const p=u.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.`),u.current=s},[s,n])}const d=i.useCallback(u=>{if(s){const p=eP(u)?u(e):u;p!==e&&c.current?.(p)}else a(u)},[s,e,a,c]);return[m,d]}function QO({defaultProp:e,onChange:t}){const[r,n]=i.useState(e),o=i.useRef(r),a=i.useRef(t);return ZO(()=>{a.current=t},[t]),i.useEffect(()=>{o.current!==r&&(a.current?.(r),o.current=r)},[r,o]),[r,n,a]}function eP(e){return typeof e=="function"}var tP=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],sr=tP.reduce((e,t)=>{const r=Z.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),N.jsxRuntimeExports.jsx(m,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function rP(e,t){e&&ke.flushSync(()=>e.dispatchEvent(t))}function Aa(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...r)=>t.current?.(...r),[])}function nP(e,t=globalThis?.document){const r=Aa(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 oP="DismissableLayer",jp="dismissableLayer.update",aP="dismissableLayer.pointerDownOutside",sP="dismissableLayer.focusOutside",ag,lx=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),dx=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:c,onDismiss:s,...m}=e,d=i.useContext(lx),[u,p]=i.useState(null),v=u?.ownerDocument??globalThis?.document,[,h]=i.useState({}),E=yn(t,C=>p(C)),l=Array.from(d.layers),[g]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),y=l.indexOf(g),b=u?l.indexOf(u):-1,w=d.layersWithOutsidePointerEventsDisabled.size>0,k=b>=y,S=uP(C=>{const j=C.target,O=[...d.branches].some(L=>L.contains(j));!k||O||(o?.(C),c?.(C),C.defaultPrevented||s?.())},v),T=lP(C=>{const j=C.target;[...d.branches].some(L=>L.contains(j))||(a?.(C),c?.(C),C.defaultPrevented||s?.())},v);return nP(C=>{b===d.layers.size-1&&(n?.(C),!C.defaultPrevented&&s&&(C.preventDefault(),s()))},v),i.useEffect(()=>{if(u)return r&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(ag=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(u)),d.layers.add(u),sg(),()=>{r&&d.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=ag)}},[u,v,r,d]),i.useEffect(()=>()=>{u&&(d.layers.delete(u),d.layersWithOutsidePointerEventsDisabled.delete(u),sg())},[u,d]),i.useEffect(()=>{const C=()=>h({});return document.addEventListener(jp,C),()=>document.removeEventListener(jp,C)},[]),N.jsxRuntimeExports.jsx(sr.div,{...m,ref:E,style:{pointerEvents:w?k?"auto":"none":void 0,...e.style},onFocusCapture:Ar(e.onFocusCapture,T.onFocusCapture),onBlurCapture:Ar(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:Ar(e.onPointerDownCapture,S.onPointerDownCapture)})});dx.displayName=oP;var iP="DismissableLayerBranch",cP=i.forwardRef((e,t)=>{const r=i.useContext(lx),n=i.useRef(null),o=yn(t,n);return i.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),N.jsxRuntimeExports.jsx(sr.div,{...e,ref:o})});cP.displayName=iP;function uP(e,t=globalThis?.document){const r=Aa(e),n=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let m=function(){fx(aP,r,d,{discrete:!0})};const d={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 lP(e,t=globalThis?.document){const r=Aa(e),n=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!n.current&&fx(sP,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(jp);document.dispatchEvent(e)}function fx(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?rP(o,a):o.dispatchEvent(a)}var _l="focusScope.autoFocusOnMount",Ol="focusScope.autoFocusOnUnmount",ig={bubbles:!1,cancelable:!0},dP="FocusScope",px=i.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...c}=e,[s,m]=i.useState(null),d=Aa(o),u=Aa(a),p=i.useRef(null),v=yn(t,l=>m(l)),h=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(n){let l=function(w){if(h.paused||!s)return;const k=w.target;s.contains(k)?p.current=k:hr(p.current,{select:!0})},g=function(w){if(h.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 S of w)S.removedNodes.length>0&&hr(s)};document.addEventListener("focusin",l),document.addEventListener("focusout",g);const b=new MutationObserver(y);return s&&b.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",l),document.removeEventListener("focusout",g),b.disconnect()}}},[n,s,h.paused]),i.useEffect(()=>{if(s){ug.add(h);const l=document.activeElement;if(!s.contains(l)){const y=new CustomEvent(_l,ig);s.addEventListener(_l,d),s.dispatchEvent(y),y.defaultPrevented||(fP(hP(mx(s)),{select:!0}),document.activeElement===l&&hr(s))}return()=>{s.removeEventListener(_l,d),setTimeout(()=>{const y=new CustomEvent(Ol,ig);s.addEventListener(Ol,u),s.dispatchEvent(y),y.defaultPrevented||hr(l??document.body,{select:!0}),s.removeEventListener(Ol,u),ug.remove(h)},0)}}},[s,d,u,h]);const E=i.useCallback(l=>{if(!r&&!n||h.paused)return;const g=l.key==="Tab"&&!l.altKey&&!l.ctrlKey&&!l.metaKey,y=document.activeElement;if(g&&y){const b=l.currentTarget,[w,k]=pP(b);w&&k?!l.shiftKey&&y===k?(l.preventDefault(),r&&hr(w,{select:!0})):l.shiftKey&&y===w&&(l.preventDefault(),r&&hr(k,{select:!0})):y===b&&l.preventDefault()}},[r,n,h.paused]);return N.jsxRuntimeExports.jsx(sr.div,{tabIndex:-1,...c,ref:v,onKeyDown:E})});px.displayName=dP;function fP(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(hr(n,{select:t}),document.activeElement!==r)return}function pP(e){const t=mx(e),r=cg(t,e),n=cg(t.reverse(),e);return[r,n]}function mx(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(!mP(r,{upTo:t}))return r}function mP(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 vP(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&&vP(e)&&t&&e.select()}}var ug=gP();function gP(){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 hP(e){return e.filter(t=>t.tagName!=="A")}var yP="Portal",vx=i.forwardRef((e,t)=>{const{container:r,...n}=e,[o,a]=i.useState(!1);Ma(()=>a(!0),[]);const c=r||o&&globalThis?.document?.body;return c?Ee.createPortal(N.jsxRuntimeExports.jsx(sr.div,{...n,ref:t}),c):null});vx.displayName=yP;function bP(e,t){return i.useReducer((r,n)=>t[r][n]??r,e)}var _u=e=>{const{present:t,children:r}=e,n=wP(t),o=typeof r=="function"?r({present:n.isPresent}):i.Children.only(r),a=yn(n.ref,xP(o));return typeof r=="function"||n.isPresent?i.cloneElement(o,{ref:a}):null};_u.displayName="Presence";function wP(e){const[t,r]=i.useState(),n=i.useRef(null),o=i.useRef(e),a=i.useRef("none"),c=e?"mounted":"unmounted",[s,m]=bP(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const d=bs(n.current);a.current=s==="mounted"?d:"none"},[s]),Ma(()=>{const d=n.current,u=o.current;if(u!==e){const v=a.current,h=bs(d);e?m("MOUNT"):h==="none"||d?.display==="none"?m("UNMOUNT"):m(u&&v!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,m]),Ma(()=>{if(t){let d;const u=t.ownerDocument.defaultView??window,p=h=>{const l=bs(n.current).includes(CSS.escape(h.animationName));if(h.target===t&&l&&(m("ANIMATION_END"),!o.current)){const g=t.style.animationFillMode;t.style.animationFillMode="forwards",d=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=g)})}},v=h=>{h.target===t&&(a.current=bs(n.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{u.clearTimeout(d),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(d=>{n.current=d?getComputedStyle(d):null,r(d)},[])}}function bs(e){return e?.animationName||"none"}function xP(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 Pl=0;function EP(){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()),Pl++,()=>{Pl===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Pl--}},[])}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(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},at.apply(this,arguments)};function gx(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 kP(e,t,r){if(r||arguments.length===2)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 bc="right-scroll-bar-position",wc="width-before-scroll-bar",CP="with-scroll-bars-hidden",SP="--removed-body-scroll-bar-size";function Ml(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function RP(e,t){var r=M.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 jP=typeof window<"u"?i.useLayoutEffect:i.useEffect,fg=new WeakMap;function NP(e,t){var r=RP(null,function(n){return e.forEach(function(o){return Ml(o,n)})});return jP(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)||Ml(s,null)}),a.forEach(function(s){o.has(s)||Ml(s,c)})}fg.set(r,e)},[e]),r}function TP(e){return e}function DP(e,t){t===void 0&&(t=TP);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 u=c;c=[],u.forEach(a)},d=function(){return Promise.resolve().then(m)};d(),r={push:function(u){c.push(u),d()},filter:function(u){return c=c.filter(u),r}}}};return o}function _P(e){e===void 0&&(e={});var t=DP(null);return t.options=at({async:!0,ssr:!1},e),t}var hx=function(e){var t=e.sideCar,r=gx(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))};hx.isSideCarExport=!0;function OP(e,t){return e.useMedium(t),hx}var yx=_P(),Al=function(){},Ou=i.forwardRef(function(e,t){var r=i.useRef(null),n=i.useState({onScrollCapture:Al,onWheelCapture:Al,onTouchMoveCapture:Al}),o=n[0],a=n[1],c=e.forwardProps,s=e.children,m=e.className,d=e.removeScrollBar,u=e.enabled,p=e.shards,v=e.sideCar,h=e.noRelative,E=e.noIsolation,l=e.inert,g=e.allowPinchZoom,y=e.as,b=y===void 0?"div":y,w=e.gapMode,k=gx(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=v,T=NP([r,t]),C=at(at({},k),o);return i.createElement(i.Fragment,null,u&&i.createElement(S,{sideCar:yx,removeScrollBar:d,shards:p,noRelative:h,noIsolation:E,inert:l,setCallbacks:a,allowPinchZoom:!!g,lockRef:r,gapMode:w}),c?i.cloneElement(i.Children.only(s),at(at({},C),{ref:T})):i.createElement(b,at({},C,{className:m,ref:T}),s))});Ou.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ou.classNames={fullWidth:wc,zeroRight:bc};var PP=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function MP(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=PP();return t&&e.setAttribute("nonce",t),e}function AP(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function IP(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var FP=function(){var e=0,t=null;return{add:function(r){e==0&&(t=MP())&&(AP(t,r),IP(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},LP=function(){var e=FP();return function(t,r){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},bx=function(){var e=LP(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},WP={left:0,top:0,right:0,gap:0},Il=function(e){return parseInt(e||"",10)||0},zP=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)]},$P=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return WP;var t=zP(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])}},UP=bx(),Do="data-scroll-locked",YP=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(CP,` {
|
3
|
-
overflow: hidden `).concat(n,`;
|
4
|
-
padding-right: `).concat(s,"px ").concat(n,`;
|
5
|
-
}
|
6
|
-
body[`).concat(Do,`] {
|
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(bc,` {
|
20
|
-
right: `).concat(s,"px ").concat(n,`;
|
21
|
-
}
|
22
|
-
|
23
|
-
.`).concat(wc,` {
|
24
|
-
margin-right: `).concat(s,"px ").concat(n,`;
|
25
|
-
}
|
26
|
-
|
27
|
-
.`).concat(bc," .").concat(bc,` {
|
28
|
-
right: 0 `).concat(n,`;
|
29
|
-
}
|
30
|
-
|
31
|
-
.`).concat(wc," .").concat(wc,` {
|
32
|
-
margin-right: 0 `).concat(n,`;
|
33
|
-
}
|
34
|
-
|
35
|
-
body[`).concat(Do,`] {
|
36
|
-
`).concat(SP,": ").concat(s,`px;
|
37
|
-
}
|
38
|
-
`)},pg=function(){var e=parseInt(document.body.getAttribute(Do)||"0",10);return isFinite(e)?e:0},BP=function(){i.useEffect(function(){return document.body.setAttribute(Do,(pg()+1).toString()),function(){var e=pg()-1;e<=0?document.body.removeAttribute(Do):document.body.setAttribute(Do,e.toString())}},[])},KP=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;BP();var a=i.useMemo(function(){return $P(o)},[o]);return i.createElement(UP,{styles:YP(a,!t,o,r?"":"!important")})},Np=!1;if(typeof window<"u")try{var ws=Object.defineProperty({},"passive",{get:function(){return Np=!0,!0}});window.addEventListener("test",ws,ws),window.removeEventListener("test",ws,ws)}catch{Np=!1}var Nn=Np?{passive:!1}:!1,VP=function(e){return e.tagName==="TEXTAREA"},wx=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!VP(e)&&r[t]==="visible")},HP=function(e){return wx(e,"overflowY")},XP=function(e){return wx(e,"overflowX")},mg=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=xx(e,n);if(o){var a=Ex(e,n),c=a[1],s=a[2];if(c>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},GP=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},qP=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},xx=function(e,t){return e==="v"?HP(t):XP(t)},Ex=function(e,t){return e==="v"?GP(t):qP(t)},ZP=function(e,t){return e==="h"&&t==="rtl"?-1:1},JP=function(e,t,r,n,o){var a=ZP(e,window.getComputedStyle(t).direction),c=a*n,s=r.target,m=t.contains(s),d=!1,u=c>0,p=0,v=0;do{if(!s)break;var h=Ex(e,s),E=h[0],l=h[1],g=h[2],y=l-g-a*E;(E||y)&&xx(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(u&&Math.abs(p)<1||!u&&Math.abs(v)<1)&&(d=!0),d},xs=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},vg=function(e){return[e.deltaX,e.deltaY]},gg=function(e){return e&&"current"in e?e.current:e},QP=function(e,t){return e[0]===t[0]&&e[1]===t[1]},eM=function(e){return`
|
39
|
-
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
40
|
-
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
41
|
-
`)},tM=0,Tn=[];function rM(e){var t=i.useRef([]),r=i.useRef([0,0]),n=i.useRef(),o=i.useState(tM++)[0],a=i.useState(bx)[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 l=kP([e.lockRef.current],(e.shards||[]).map(gg),!0).filter(Boolean);return l.forEach(function(g){return g.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),l.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=i.useCallback(function(l,g){if("touches"in l&&l.touches.length===2||l.type==="wheel"&&l.ctrlKey)return!c.current.allowPinchZoom;var y=xs(l),b=r.current,w="deltaX"in l?l.deltaX:b[0]-y[0],k="deltaY"in l?l.deltaY:b[1]-y[1],S,T=l.target,C=Math.abs(w)>Math.abs(k)?"h":"v";if("touches"in l&&C==="h"&&T.type==="range")return!1;var j=mg(C,T);if(!j)return!0;if(j?S=C:(S=C==="v"?"h":"v",j=mg(C,T)),!j)return!1;if(!n.current&&"changedTouches"in l&&(w||k)&&(n.current=S),!S)return!0;var O=n.current||S;return JP(O,g,l,O==="h"?w:k)},[]),m=i.useCallback(function(l){var g=l;if(!(!Tn.length||Tn[Tn.length-1]!==a)){var y="deltaY"in g?vg(g):xs(g),b=t.current.filter(function(S){return S.name===g.type&&(S.target===g.target||g.target===S.shadowParent)&&QP(S.delta,y)})[0];if(b&&b.should){g.cancelable&&g.preventDefault();return}if(!b){var w=(c.current.shards||[]).map(gg).filter(Boolean).filter(function(S){return S.contains(g.target)}),k=w.length>0?s(g,w[0]):!c.current.noIsolation;k&&g.cancelable&&g.preventDefault()}}},[]),d=i.useCallback(function(l,g,y,b){var w={name:l,delta:g,target:y,should:b,shadowParent:nM(y)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(k){return k!==w})},1)},[]),u=i.useCallback(function(l){r.current=xs(l),n.current=void 0},[]),p=i.useCallback(function(l){d(l.type,vg(l),l.target,s(l,e.lockRef.current))},[]),v=i.useCallback(function(l){d(l.type,xs(l),l.target,s(l,e.lockRef.current))},[]);i.useEffect(function(){return Tn.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:v}),document.addEventListener("wheel",m,Nn),document.addEventListener("touchmove",m,Nn),document.addEventListener("touchstart",u,Nn),function(){Tn=Tn.filter(function(l){return l!==a}),document.removeEventListener("wheel",m,Nn),document.removeEventListener("touchmove",m,Nn),document.removeEventListener("touchstart",u,Nn)}},[]);var h=e.removeScrollBar,E=e.inert;return i.createElement(i.Fragment,null,E?i.createElement(a,{styles:eM(o)}):null,h?i.createElement(KP,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function nM(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const oM=OP(yx,rM);var kx=i.forwardRef(function(e,t){return i.createElement(Ou,at({},e,{ref:t,sideCar:oM}))});kx.classNames=Ou.classNames;var aM=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Dn=new WeakMap,Es=new WeakMap,ks={},Fl=0,Cx=function(e){return e&&(e.host||Cx(e.parentNode))},sM=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=Cx(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})},iM=function(e,t,r,n){var o=sM(t,Array.isArray(e)?e:[e]);ks[r]||(ks[r]=new WeakMap);var a=ks[r],c=[],s=new Set,m=new Set(o),d=function(p){!p||s.has(p)||(s.add(p),d(p.parentNode))};o.forEach(d);var u=function(p){!p||m.has(p)||Array.prototype.forEach.call(p.children,function(v){if(s.has(v))u(v);else try{var h=v.getAttribute(n),E=h!==null&&h!=="false",l=(Dn.get(v)||0)+1,g=(a.get(v)||0)+1;Dn.set(v,l),a.set(v,g),c.push(v),l===1&&E&&Es.set(v,!0),g===1&&v.setAttribute(r,"true"),E||v.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",v,y)}})};return u(t),s.clear(),Fl++,function(){c.forEach(function(p){var v=Dn.get(p)-1,h=a.get(p)-1;Dn.set(p,v),a.set(p,h),v||(Es.has(p)||p.removeAttribute(n),Es.delete(p)),h||p.removeAttribute(r)}),Fl--,Fl||(Dn=new WeakMap,Dn=new WeakMap,Es=new WeakMap,ks={})}},cM=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=aM(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),iM(n,o,r,"aria-hidden")):function(){return null}},Pu="Dialog",[Sx]=HO(Pu),[uM,ot]=Sx(Pu),Rx=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:o,onOpenChange:a,modal:c=!0}=e,s=i.useRef(null),m=i.useRef(null),[d,u]=JO({prop:n,defaultProp:o??!1,onChange:a,caller:Pu});return N.jsxRuntimeExports.jsx(uM,{scope:t,triggerRef:s,contentRef:m,contentId:Dl(),titleId:Dl(),descriptionId:Dl(),open:d,onOpenChange:u,onOpenToggle:i.useCallback(()=>u(p=>!p),[u]),modal:c,children:r})};Rx.displayName=Pu;var jx="DialogTrigger",Nx=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=ot(jx,r),a=yn(t,o.triggerRef);return N.jsxRuntimeExports.jsx(sr.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Km(o.open),...n,ref:a,onClick:Ar(e.onClick,o.onOpenToggle)})});Nx.displayName=jx;var Ym="DialogPortal",[lM,Tx]=Sx(Ym,{forceMount:void 0}),Dx=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:o}=e,a=ot(Ym,t);return N.jsxRuntimeExports.jsx(lM,{scope:t,forceMount:r,children:i.Children.map(n,c=>N.jsxRuntimeExports.jsx(_u,{present:r||a.open,children:N.jsxRuntimeExports.jsx(vx,{asChild:!0,container:o,children:c})}))})};Dx.displayName=Ym;var su="DialogOverlay",_x=i.forwardRef((e,t)=>{const r=Tx(su,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=ot(su,e.__scopeDialog);return a.modal?N.jsxRuntimeExports.jsx(_u,{present:n||a.open,children:N.jsxRuntimeExports.jsx(fM,{...o,ref:t})}):null});_x.displayName=su;var dM=Z.createSlot("DialogOverlay.RemoveScroll"),fM=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=ot(su,r);return N.jsxRuntimeExports.jsx(kx,{as:dM,allowPinchZoom:!0,shards:[o.contentRef],children:N.jsxRuntimeExports.jsx(sr.div,{"data-state":Km(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),Jr="DialogContent",Ox=i.forwardRef((e,t)=>{const r=Tx(Jr,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=ot(Jr,e.__scopeDialog);return N.jsxRuntimeExports.jsx(_u,{present:n||a.open,children:a.modal?N.jsxRuntimeExports.jsx(pM,{...o,ref:t}):N.jsxRuntimeExports.jsx(mM,{...o,ref:t})})});Ox.displayName=Jr;var pM=i.forwardRef((e,t)=>{const r=ot(Jr,e.__scopeDialog),n=i.useRef(null),o=yn(t,r.contentRef,n);return i.useEffect(()=>{const a=n.current;if(a)return cM(a)},[]),N.jsxRuntimeExports.jsx(Px,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ar(e.onCloseAutoFocus,a=>{a.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:Ar(e.onPointerDownOutside,a=>{const c=a.detail.originalEvent,s=c.button===0&&c.ctrlKey===!0;(c.button===2||s)&&a.preventDefault()}),onFocusOutside:Ar(e.onFocusOutside,a=>a.preventDefault())})}),mM=i.forwardRef((e,t)=>{const r=ot(Jr,e.__scopeDialog),n=i.useRef(!1),o=i.useRef(!1);return N.jsxRuntimeExports.jsx(Px,{...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()}})}),Px=i.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...c}=e,s=ot(Jr,r),m=i.useRef(null),d=yn(t,m);return EP(),N.jsxRuntimeExports.jsxs(N.jsxRuntimeExports.Fragment,{children:[N.jsxRuntimeExports.jsx(px,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:N.jsxRuntimeExports.jsx(dx,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":Km(s.open),...c,ref:d,onDismiss:()=>s.onOpenChange(!1)})}),N.jsxRuntimeExports.jsxs(N.jsxRuntimeExports.Fragment,{children:[N.jsxRuntimeExports.jsx(vM,{titleId:s.titleId}),N.jsxRuntimeExports.jsx(hM,{contentRef:m,descriptionId:s.descriptionId})]})]})}),Bm="DialogTitle",Mx=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=ot(Bm,r);return N.jsxRuntimeExports.jsx(sr.h2,{id:o.titleId,...n,ref:t})});Mx.displayName=Bm;var Ax="DialogDescription",Ix=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=ot(Ax,r);return N.jsxRuntimeExports.jsx(sr.p,{id:o.descriptionId,...n,ref:t})});Ix.displayName=Ax;var Fx="DialogClose",Lx=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=ot(Fx,r);return N.jsxRuntimeExports.jsx(sr.button,{type:"button",...n,ref:t,onClick:Ar(e.onClick,()=>o.onOpenChange(!1))})});Lx.displayName=Fx;function Km(e){return e?"open":"closed"}var Wx="DialogTitleWarning",[jie,zx]=VO(Wx,{contentName:Jr,titleName:Bm,docsSlug:"dialog"}),vM=({titleId:e})=>{const t=zx(Wx),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},gM="DialogDescriptionWarning",hM=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${zx(gM).contentName}}.`;return i.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},yM=Rx,bM=Nx,wM=Dx,xM=_x,EM=Ox,kM=Mx,CM=Ix,$x=Lx;function Ux({...e}){return N.jsxRuntimeExports.jsx(yM,{"data-slot":"dialog",...e})}function SM({...e}){return N.jsxRuntimeExports.jsx(bM,{"data-slot":"dialog-trigger",...e})}function Yx({...e}){return N.jsxRuntimeExports.jsx(wM,{"data-slot":"dialog-portal",...e})}function RM({...e}){return N.jsxRuntimeExports.jsx($x,{"data-slot":"dialog-close",...e})}function Bx({className:e,...t}){return N.jsxRuntimeExports.jsx(xM,{"data-slot":"dialog-overlay",className:z.cn("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...t})}function Kx({className:e,children:t,showCloseButton:r=!0,...n}){return N.jsxRuntimeExports.jsxs(Yx,{"data-slot":"dialog-portal",children:[N.jsxRuntimeExports.jsx(Bx,{}),N.jsxRuntimeExports.jsxs(EM,{"data-slot":"dialog-content",className:z.cn("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",e),...n,children:[t,r&&N.jsxRuntimeExports.jsxs($x,{"data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[N.jsxRuntimeExports.jsx(we.XIcon,{}),N.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function Vx({className:e,...t}){return N.jsxRuntimeExports.jsx("div",{"data-slot":"dialog-header",className:z.cn("flex flex-col gap-2 text-center sm:text-left",e),...t})}function jM({className:e,...t}){return N.jsxRuntimeExports.jsx("div",{"data-slot":"dialog-footer",className:z.cn("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...t})}function Hx({className:e,...t}){return N.jsxRuntimeExports.jsx(kM,{"data-slot":"dialog-title",className:z.cn("text-lg leading-none font-semibold",e),...t})}function Xx({className:e,...t}){return N.jsxRuntimeExports.jsx(CM,{"data-slot":"dialog-description",className:z.cn("text-muted-foreground text-sm",e),...t})}function Mu({className:e,...t}){return N.jsxRuntimeExports.jsx(hn.Command,{"data-slot":"command",className:z.cn("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",e),...t})}function NM({title:e="Command Palette",description:t="Search for a command to run...",children:r,className:n,showCloseButton:o=!0,...a}){return N.jsxRuntimeExports.jsxs(Ux,{...a,children:[N.jsxRuntimeExports.jsxs(Vx,{className:"sr-only",children:[N.jsxRuntimeExports.jsx(Hx,{children:e}),N.jsxRuntimeExports.jsx(Xx,{children:t})]}),N.jsxRuntimeExports.jsx(Kx,{className:z.cn("overflow-hidden p-0",n),showCloseButton:o,children:N.jsxRuntimeExports.jsx(Mu,{className:"[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:r})})]})}function Vm({className:e,...t}){return N.jsxRuntimeExports.jsxs("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[N.jsxRuntimeExports.jsx(we.SearchIcon,{className:"size-4 shrink-0 opacity-50"}),N.jsxRuntimeExports.jsx(hn.Command.Input,{"data-slot":"command-input",className:z.cn("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",e),...t})]})}function Hm({className:e,...t}){return N.jsxRuntimeExports.jsx(hn.Command.List,{"data-slot":"command-list",className:z.cn("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",e),...t})}function Xm({...e}){return N.jsxRuntimeExports.jsx(hn.Command.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...e})}function iu({className:e,...t}){return N.jsxRuntimeExports.jsx(hn.Command.Group,{"data-slot":"command-group",className:z.cn("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",e),...t})}function Gx({className:e,...t}){return N.jsxRuntimeExports.jsx(hn.Command.Separator,{"data-slot":"command-separator",className:z.cn("bg-border -mx-1 h-px",e),...t})}function cu({className:e,...t}){return N.jsxRuntimeExports.jsx(hn.Command.Item,{"data-slot":"command-item",className:z.cn("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}function TM({className:e,...t}){return N.jsxRuntimeExports.jsx("span",{"data-slot":"command-shortcut",className:z.cn("text-muted-foreground ml-auto text-xs tracking-widest",e),...t})}const DM=ie.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 qx(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=qx(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function _M(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=qx(e))&&(n&&(n+=" "),n+=t);return n}function OM(...e){return __.twMerge(_M(e))}function Zx({className:e,variant:t,size:r,asChild:n=!1,...o}){const a=n?Z.Slot:"button";return de.de.jsx(a,{"data-slot":"button",className:OM(DM({variant:t,size:r,className:e})),...o})}var Ll={exports:{}},fa={};/**
|
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 hg;function PM(){if(hg)return fa;hg=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 fa.Fragment=t,fa.jsx=r,fa.jsxs=r,fa}var Cs={};/**
|
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 yg;function MM(){return yg||(yg=1,process.env.NODE_ENV!=="production"&&(function(){function e(f){if(f==null)return null;if(typeof f=="function")return f.$$typeof===L?null:f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case l:return"Fragment";case y:return"Profiler";case g:return"StrictMode";case S:return"Suspense";case T:return"SuspenseList";case O:return"Activity"}if(typeof f=="object")switch(typeof f.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),f.$$typeof){case E:return"Portal";case w:return(f.displayName||"Context")+".Provider";case b:return(f._context.displayName||"Context")+".Consumer";case k:var x=f.render;return f=f.displayName,f||(f=x.displayName||x.name||"",f=f!==""?"ForwardRef("+f+")":"ForwardRef"),f;case C:return x=f.displayName||null,x!==null?x:e(f.type)||"Memo";case j:x=f._payload,f=f._init;try{return e(f(x))}catch{}}return null}function t(f){return""+f}function r(f){try{t(f);var x=!1}catch{x=!0}if(x){x=console;var R=x.error,D=typeof Symbol=="function"&&Symbol.toStringTag&&f[Symbol.toStringTag]||f.constructor.name||"Object";return R.call(x,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",D),t(f)}}function n(f){if(f===l)return"<>";if(typeof f=="object"&&f!==null&&f.$$typeof===j)return"<...>";try{var x=e(f);return x?"<"+x+">":"<...>"}catch{return"<...>"}}function o(){var f=I.A;return f===null?null:f.getOwner()}function a(){return Error("react-stack-top-frame")}function c(f){if(B.call(f,"key")){var x=Object.getOwnPropertyDescriptor(f,"key").get;if(x&&x.isReactWarning)return!1}return f.key!==void 0}function s(f,x){function R(){P||(P=!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))}R.isReactWarning=!0,Object.defineProperty(f,"key",{get:R,configurable:!0})}function m(){var f=e(this.type);return U[f]||(U[f]=!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.")),f=this.props.ref,f!==void 0?f:null}function d(f,x,R,D,F,A,G,H){return R=A.ref,f={$$typeof:h,type:f,key:x,props:A,_owner:F},(R!==void 0?R:null)!==null?Object.defineProperty(f,"ref",{enumerable:!1,get:m}):Object.defineProperty(f,"ref",{enumerable:!1,value:null}),f._store={},Object.defineProperty(f._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(f,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(f,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:G}),Object.defineProperty(f,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:H}),Object.freeze&&(Object.freeze(f.props),Object.freeze(f)),f}function u(f,x,R,D,F,A,G,H){var _=x.children;if(_!==void 0)if(D)if(K(_)){for(D=0;D<_.length;D++)p(_[D]);Object.freeze&&Object.freeze(_)}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(_);if(B.call(x,"key")){_=e(f);var W=Object.keys(x).filter(function(ce){return ce!=="key"});D=0<W.length?"{key: someKey, "+W.join(": ..., ")+": ...}":"{key: someKey}",X[_+D]||(W=0<W.length?"{"+W.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} />`,D,_,W,_),X[_+D]=!0)}if(_=null,R!==void 0&&(r(R),_=""+R),c(x)&&(r(x.key),_=""+x.key),"key"in x){R={};for(var q in x)q!=="key"&&(R[q]=x[q])}else R=x;return _&&s(R,typeof f=="function"?f.displayName||f.name||"Unknown":f),d(f,_,A,F,o(),R,G,H)}function p(f){typeof f=="object"&&f!==null&&f.$$typeof===h&&f._store&&(f._store.validated=1)}var v=M,h=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),g=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"),S=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),O=Symbol.for("react.activity"),L=Symbol.for("react.client.reference"),I=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=Object.prototype.hasOwnProperty,K=Array.isArray,$=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(f){return f()}};var P,U={},V=v.react_stack_bottom_frame.bind(v,a)(),Y=$(n(a)),X={};Cs.Fragment=l,Cs.jsx=function(f,x,R,D,F){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,x,R,!1,D,F,A?Error("react-stack-top-frame"):V,A?$(n(f)):Y)},Cs.jsxs=function(f,x,R,D,F){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,x,R,!0,D,F,A?Error("react-stack-top-frame"):V,A?$(n(f)):Y)}})()),Cs}var bg;function AM(){return bg||(bg=1,process.env.NODE_ENV==="production"?Ll.exports=PM():Ll.exports=MM()),Ll.exports}var fe=AM();const IM={id:"",username:"",email:"",created_at:null,updated_at:null,features:[]};M.createContext({user:IM,isLoading:!0,fetchUser:async()=>{},logout:async()=>{},login:async()=>!1});M.createContext({locale:void 0});ie.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 Ir(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 FM(...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 bn(...e){return i.useCallback(FM(...e),e)}function LM(e,t){const r=i.createContext(t),n=a=>{const{children:c,...s}=a,m=i.useMemo(()=>s,Object.values(s));return de.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 WM(e,t=[]){let r=[];function n(a,c){const s=i.createContext(c),m=r.length;r=[...r,c];const d=p=>{const{scope:v,children:h,...E}=p,l=v?.[e]?.[m]||s,g=i.useMemo(()=>E,Object.values(E));return de.de.jsx(l.Provider,{value:g,children:h})};d.displayName=a+"Provider";function u(p,v){const h=v?.[e]?.[m]||s,E=i.useContext(h);if(E)return E;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[d,u]}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,zM(o,...t)]}function zM(...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 d=s(o)[`__scope${m}`];return{...c,...d}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}var Tp=globalThis?.document?i.useLayoutEffect:()=>{},$M=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ir=$M.reduce((e,t)=>{const r=Z.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.de.jsx(m,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function UM(e,t){e&&ke.flushSync(()=>e.dispatchEvent(t))}function Ia(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...r)=>t.current?.(...r),[])}function YM(e,t=globalThis?.document){const r=Ia(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 BM="DismissableLayer",Dp="dismissableLayer.update",KM="dismissableLayer.pointerDownOutside",VM="dismissableLayer.focusOutside",xg,Jx=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,d=i.useContext(Jx),[u,p]=i.useState(null),v=u?.ownerDocument??globalThis?.document,[,h]=i.useState({}),E=bn(t,C=>p(C)),l=Array.from(d.layers),[g]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),y=l.indexOf(g),b=u?l.indexOf(u):-1,w=d.layersWithOutsidePointerEventsDisabled.size>0,k=b>=y,S=GM(C=>{const j=C.target,O=[...d.branches].some(L=>L.contains(j));!k||O||(o?.(C),c?.(C),C.defaultPrevented||s?.())},v),T=qM(C=>{const j=C.target;[...d.branches].some(O=>O.contains(j))||(a?.(C),c?.(C),C.defaultPrevented||s?.())},v);return YM(C=>{b===d.layers.size-1&&(n?.(C),!C.defaultPrevented&&s&&(C.preventDefault(),s()))},v),i.useEffect(()=>{if(u)return r&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(xg=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(u)),d.layers.add(u),Eg(),()=>{r&&d.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=xg)}},[u,v,r,d]),i.useEffect(()=>()=>{u&&(d.layers.delete(u),d.layersWithOutsidePointerEventsDisabled.delete(u),Eg())},[u,d]),i.useEffect(()=>{const C=()=>h({});return document.addEventListener(Dp,C),()=>document.removeEventListener(Dp,C)},[]),de.de.jsx(ir.div,{...m,ref:E,style:{pointerEvents:w?k?"auto":"none":void 0,...e.style},onFocusCapture:Ir(e.onFocusCapture,T.onFocusCapture),onBlurCapture:Ir(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:Ir(e.onPointerDownCapture,S.onPointerDownCapture)})});Qx.displayName=BM;var HM="DismissableLayerBranch",XM=i.forwardRef((e,t)=>{const r=i.useContext(Jx),n=i.useRef(null),o=bn(t,n);return i.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),de.de.jsx(ir.div,{...e,ref:o})});XM.displayName=HM;function GM(e,t=globalThis?.document){const r=Ia(e),n=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let m=function(){eE(KM,r,d,{discrete:!0})};const d={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 qM(e,t=globalThis?.document){const r=Ia(e),n=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!n.current&&eE(VM,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(Dp);document.dispatchEvent(e)}function eE(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?UM(o,a):o.dispatchEvent(a)}var Wl="focusScope.autoFocusOnMount",zl="focusScope.autoFocusOnUnmount",kg={bubbles:!1,cancelable:!0},ZM="FocusScope",tE=i.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...c}=e,[s,m]=i.useState(null),d=Ia(o),u=Ia(a),p=i.useRef(null),v=bn(t,l=>m(l)),h=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(n){let l=function(w){if(h.paused||!s)return;const k=w.target;s.contains(k)?p.current=k:yr(p.current,{select:!0})},g=function(w){if(h.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",l),document.addEventListener("focusout",g);const b=new MutationObserver(y);return s&&b.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",l),document.removeEventListener("focusout",g),b.disconnect()}}},[n,s,h.paused]),i.useEffect(()=>{if(s){Sg.add(h);const l=document.activeElement;if(!s.contains(l)){const g=new CustomEvent(Wl,kg);s.addEventListener(Wl,d),s.dispatchEvent(g),g.defaultPrevented||(JM(nA(rE(s)),{select:!0}),document.activeElement===l&&yr(s))}return()=>{s.removeEventListener(Wl,d),setTimeout(()=>{const g=new CustomEvent(zl,kg);s.addEventListener(zl,u),s.dispatchEvent(g),g.defaultPrevented||yr(l??document.body,{select:!0}),s.removeEventListener(zl,u),Sg.remove(h)},0)}}},[s,d,u,h]);const E=i.useCallback(l=>{if(!r&&!n||h.paused)return;const g=l.key==="Tab"&&!l.altKey&&!l.ctrlKey&&!l.metaKey,y=document.activeElement;if(g&&y){const b=l.currentTarget,[w,k]=QM(b);w&&k?!l.shiftKey&&y===k?(l.preventDefault(),r&&yr(w,{select:!0})):l.shiftKey&&y===w&&(l.preventDefault(),r&&yr(k,{select:!0})):y===b&&l.preventDefault()}},[r,n,h.paused]);return de.de.jsx(ir.div,{tabIndex:-1,...c,ref:v,onKeyDown:E})});tE.displayName=ZM;function JM(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(yr(n,{select:t}),document.activeElement!==r)return}function QM(e){const t=rE(e),r=Cg(t,e),n=Cg(t.reverse(),e);return[r,n]}function rE(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(!eA(r,{upTo:t}))return r}function eA(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 tA(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&&tA(e)&&t&&e.select()}}var Sg=rA();function rA(){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 nA(e){return e.filter(t=>t.tagName!=="A")}var oA="Portal",aA=i.forwardRef((e,t)=>{const{container:r,...n}=e,[o,a]=i.useState(!1);Tp(()=>a(!0),[]);const c=r||o&&globalThis?.document?.body;return c?Ee.createPortal(de.de.jsx(ir.div,{...n,ref:t}),c):null});aA.displayName=oA;function sA(e,t){return i.useReducer((r,n)=>t[r][n]??r,e)}var Gm=e=>{const{present:t,children:r}=e,n=iA(t),o=typeof r=="function"?r({present:n.isPresent}):i.Children.only(r),a=bn(n.ref,cA(o));return typeof r=="function"||n.isPresent?i.cloneElement(o,{ref:a}):null};Gm.displayName="Presence";function iA(e){const[t,r]=i.useState(),n=i.useRef(null),o=i.useRef(e),a=i.useRef("none"),c=e?"mounted":"unmounted",[s,m]=sA(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const d=Ss(n.current);a.current=s==="mounted"?d:"none"},[s]),Tp(()=>{const d=n.current,u=o.current;if(u!==e){const p=a.current,v=Ss(d);e?m("MOUNT"):v==="none"||d?.display==="none"?m("UNMOUNT"):m(u&&p!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,m]),Tp(()=>{if(t){let d;const u=t.ownerDocument.defaultView??window,p=h=>{const E=Ss(n.current).includes(CSS.escape(h.animationName));if(h.target===t&&E&&(m("ANIMATION_END"),!o.current)){const l=t.style.animationFillMode;t.style.animationFillMode="forwards",d=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=l)})}},v=h=>{h.target===t&&(a.current=Ss(n.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{u.clearTimeout(d),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(d=>{n.current=d?getComputedStyle(d):null,r(d)},[])}}function Ss(e){return e?.animationName||"none"}function cA(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 $l=0;function uA(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??jg()),document.body.insertAdjacentElement("beforeend",e[1]??jg()),$l++,()=>{$l===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),$l--}},[])}function jg(){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 nE(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 lA(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 xc="right-scroll-bar-position",Ec="width-before-scroll-bar",dA="with-scroll-bars-hidden",fA="--removed-body-scroll-bar-size";function Ul(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function pA(e,t){var r=M.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 mA=typeof window<"u"?i.useLayoutEffect:i.useEffect,Ng=new WeakMap;function vA(e,t){var r=pA(null,function(n){return e.forEach(function(o){return Ul(o,n)})});return mA(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)||Ul(s,null)}),a.forEach(function(s){o.has(s)||Ul(s,c)})}Ng.set(r,e)},[e]),r}function gA(e){return e}function hA(e,t){t===void 0&&(t=gA);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 u=c;c=[],u.forEach(a)},d=function(){return Promise.resolve().then(m)};d(),r={push:function(u){c.push(u),d()},filter:function(u){return c=c.filter(u),r}}}};return o}function yA(e){e===void 0&&(e={});var t=hA(null);return t.options=st({async:!0,ssr:!1},e),t}var oE=function(e){var t=e.sideCar,r=nE(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))};oE.isSideCarExport=!0;function bA(e,t){return e.useMedium(t),oE}var aE=yA(),Yl=function(){},Au=i.forwardRef(function(e,t){var r=i.useRef(null),n=i.useState({onScrollCapture:Yl,onWheelCapture:Yl,onTouchMoveCapture:Yl}),o=n[0],a=n[1],c=e.forwardProps,s=e.children,m=e.className,d=e.removeScrollBar,u=e.enabled,p=e.shards,v=e.sideCar,h=e.noRelative,E=e.noIsolation,l=e.inert,g=e.allowPinchZoom,y=e.as,b=y===void 0?"div":y,w=e.gapMode,k=nE(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=v,T=vA([r,t]),C=st(st({},k),o);return i.createElement(i.Fragment,null,u&&i.createElement(S,{sideCar:aE,removeScrollBar:d,shards:p,noRelative:h,noIsolation:E,inert:l,setCallbacks:a,allowPinchZoom:!!g,lockRef:r,gapMode:w}),c?i.cloneElement(i.Children.only(s),st(st({},C),{ref:T})):i.createElement(b,st({},C,{className:m,ref:T}),s))});Au.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Au.classNames={fullWidth:Ec,zeroRight:xc};var wA=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function xA(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=wA();return t&&e.setAttribute("nonce",t),e}function EA(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function kA(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var CA=function(){var e=0,t=null;return{add:function(r){e==0&&(t=xA())&&(EA(t,r),kA(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},SA=function(){var e=CA();return function(t,r){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},sE=function(){var e=SA(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},RA={left:0,top:0,right:0,gap:0},Bl=function(e){return parseInt(e||"",10)||0},jA=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[Bl(r),Bl(n),Bl(o)]},NA=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return RA;var t=jA(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])}},TA=sE(),_o="data-scroll-locked",DA=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(dA,` {
|
68
|
-
overflow: hidden `).concat(n,`;
|
69
|
-
padding-right: `).concat(s,"px ").concat(n,`;
|
70
|
-
}
|
71
|
-
body[`).concat(_o,`] {
|
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(xc,` {
|
85
|
-
right: `).concat(s,"px ").concat(n,`;
|
86
|
-
}
|
87
|
-
|
88
|
-
.`).concat(Ec,` {
|
89
|
-
margin-right: `).concat(s,"px ").concat(n,`;
|
90
|
-
}
|
91
|
-
|
92
|
-
.`).concat(xc," .").concat(xc,` {
|
93
|
-
right: 0 `).concat(n,`;
|
94
|
-
}
|
95
|
-
|
96
|
-
.`).concat(Ec," .").concat(Ec,` {
|
97
|
-
margin-right: 0 `).concat(n,`;
|
98
|
-
}
|
99
|
-
|
100
|
-
body[`).concat(_o,`] {
|
101
|
-
`).concat(fA,": ").concat(s,`px;
|
102
|
-
}
|
103
|
-
`)},Tg=function(){var e=parseInt(document.body.getAttribute(_o)||"0",10);return isFinite(e)?e:0},_A=function(){i.useEffect(function(){return document.body.setAttribute(_o,(Tg()+1).toString()),function(){var e=Tg()-1;e<=0?document.body.removeAttribute(_o):document.body.setAttribute(_o,e.toString())}},[])},OA=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;_A();var a=i.useMemo(function(){return NA(o)},[o]);return i.createElement(TA,{styles:DA(a,!t,o,r?"":"!important")})},_p=!1;if(typeof window<"u")try{var Rs=Object.defineProperty({},"passive",{get:function(){return _p=!0,!0}});window.addEventListener("test",Rs,Rs),window.removeEventListener("test",Rs,Rs)}catch{_p=!1}var _n=_p?{passive:!1}:!1,PA=function(e){return e.tagName==="TEXTAREA"},iE=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!PA(e)&&r[t]==="visible")},MA=function(e){return iE(e,"overflowY")},AA=function(e){return iE(e,"overflowX")},Dg=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=cE(e,n);if(o){var a=uE(e,n),c=a[1],s=a[2];if(c>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},IA=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},FA=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},cE=function(e,t){return e==="v"?MA(t):AA(t)},uE=function(e,t){return e==="v"?IA(t):FA(t)},LA=function(e,t){return e==="h"&&t==="rtl"?-1:1},WA=function(e,t,r,n,o){var a=LA(e,window.getComputedStyle(t).direction),c=a*n,s=r.target,m=t.contains(s),d=!1,u=c>0,p=0,v=0;do{if(!s)break;var h=uE(e,s),E=h[0],l=h[1],g=h[2],y=l-g-a*E;(E||y)&&cE(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(u&&Math.abs(p)<1||!u&&Math.abs(v)<1)&&(d=!0),d},js=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},_g=function(e){return[e.deltaX,e.deltaY]},Og=function(e){return e&&"current"in e?e.current:e},zA=function(e,t){return e[0]===t[0]&&e[1]===t[1]},$A=function(e){return`
|
104
|
-
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
105
|
-
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
106
|
-
`)},UA=0,On=[];function YA(e){var t=i.useRef([]),r=i.useRef([0,0]),n=i.useRef(),o=i.useState(UA++)[0],a=i.useState(sE)[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 l=lA([e.lockRef.current],(e.shards||[]).map(Og)).filter(Boolean);return l.forEach(function(g){return g.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),l.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=i.useCallback(function(l,g){if("touches"in l&&l.touches.length===2||l.type==="wheel"&&l.ctrlKey)return!c.current.allowPinchZoom;var y=js(l),b=r.current,w="deltaX"in l?l.deltaX:b[0]-y[0],k="deltaY"in l?l.deltaY:b[1]-y[1],S,T=l.target,C=Math.abs(w)>Math.abs(k)?"h":"v";if("touches"in l&&C==="h"&&T.type==="range")return!1;var j=Dg(C,T);if(!j)return!0;if(j?S=C:(S=C==="v"?"h":"v",j=Dg(C,T)),!j)return!1;if(!n.current&&"changedTouches"in l&&(w||k)&&(n.current=S),!S)return!0;var O=n.current||S;return WA(O,g,l,O==="h"?w:k)},[]),m=i.useCallback(function(l){var g=l;if(!(!On.length||On[On.length-1]!==a)){var y="deltaY"in g?_g(g):js(g),b=t.current.filter(function(S){return S.name===g.type&&(S.target===g.target||g.target===S.shadowParent)&&zA(S.delta,y)})[0];if(b&&b.should){g.cancelable&&g.preventDefault();return}if(!b){var w=(c.current.shards||[]).map(Og).filter(Boolean).filter(function(S){return S.contains(g.target)}),k=w.length>0?s(g,w[0]):!c.current.noIsolation;k&&g.cancelable&&g.preventDefault()}}},[]),d=i.useCallback(function(l,g,y,b){var w={name:l,delta:g,target:y,should:b,shadowParent:BA(y)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(k){return k!==w})},1)},[]),u=i.useCallback(function(l){r.current=js(l),n.current=void 0},[]),p=i.useCallback(function(l){d(l.type,_g(l),l.target,s(l,e.lockRef.current))},[]),v=i.useCallback(function(l){d(l.type,js(l),l.target,s(l,e.lockRef.current))},[]);i.useEffect(function(){return On.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:v}),document.addEventListener("wheel",m,_n),document.addEventListener("touchmove",m,_n),document.addEventListener("touchstart",u,_n),function(){On=On.filter(function(l){return l!==a}),document.removeEventListener("wheel",m,_n),document.removeEventListener("touchmove",m,_n),document.removeEventListener("touchstart",u,_n)}},[]);var h=e.removeScrollBar,E=e.inert;return i.createElement(i.Fragment,null,E?i.createElement(a,{styles:$A(o)}):null,h?i.createElement(OA,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function BA(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const KA=bA(aE,YA);var lE=i.forwardRef(function(e,t){return i.createElement(Au,st({},e,{ref:t,sideCar:KA}))});lE.classNames=Au.classNames;var VA=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Pn=new WeakMap,Ns=new WeakMap,Ts={},Kl=0,dE=function(e){return e&&(e.host||dE(e.parentNode))},HA=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=dE(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})},XA=function(e,t,r,n){var o=HA(t,Array.isArray(e)?e:[e]);Ts[r]||(Ts[r]=new WeakMap);var a=Ts[r],c=[],s=new Set,m=new Set(o),d=function(p){!p||s.has(p)||(s.add(p),d(p.parentNode))};o.forEach(d);var u=function(p){!p||m.has(p)||Array.prototype.forEach.call(p.children,function(v){if(s.has(v))u(v);else try{var h=v.getAttribute(n),E=h!==null&&h!=="false",l=(Pn.get(v)||0)+1,g=(a.get(v)||0)+1;Pn.set(v,l),a.set(v,g),c.push(v),l===1&&E&&Ns.set(v,!0),g===1&&v.setAttribute(r,"true"),E||v.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",v,y)}})};return u(t),s.clear(),Kl++,function(){c.forEach(function(p){var v=Pn.get(p)-1,h=a.get(p)-1;Pn.set(p,v),a.set(p,h),v||(Ns.has(p)||p.removeAttribute(n),Ns.delete(p)),h||p.removeAttribute(r)}),Kl--,Kl||(Pn=new WeakMap,Pn=new WeakMap,Ns=new WeakMap,Ts={})}},GA=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=VA(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),XA(n,o,r,"aria-hidden")):function(){return null}},fE="Dialog",[pE]=WM(fE),[Nie,Ft]=pE(fE),mE="DialogTrigger",qA=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ft(mE,r),a=bn(t,o.triggerRef);return de.de.jsx(ir.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Zm(o.open),...n,ref:a,onClick:Ir(e.onClick,o.onOpenToggle)})});qA.displayName=mE;var ZA="DialogPortal",[Tie,vE]=pE(ZA,{forceMount:void 0}),uu="DialogOverlay",JA=i.forwardRef((e,t)=>{const r=vE(uu,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Ft(uu,e.__scopeDialog);return a.modal?de.de.jsx(Gm,{present:n||a.open,children:de.de.jsx(eI,{...o,ref:t})}):null});JA.displayName=uu;var QA=Z.createSlot("DialogOverlay.RemoveScroll"),eI=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ft(uu,r);return de.de.jsx(lE,{as:QA,allowPinchZoom:!0,shards:[o.contentRef],children:de.de.jsx(ir.div,{"data-state":Zm(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),Qr="DialogContent",tI=i.forwardRef((e,t)=>{const r=vE(Qr,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Ft(Qr,e.__scopeDialog);return de.de.jsx(Gm,{present:n||a.open,children:a.modal?de.de.jsx(rI,{...o,ref:t}):de.de.jsx(nI,{...o,ref:t})})});tI.displayName=Qr;var rI=i.forwardRef((e,t)=>{const r=Ft(Qr,e.__scopeDialog),n=i.useRef(null),o=bn(t,r.contentRef,n);return i.useEffect(()=>{const a=n.current;if(a)return GA(a)},[]),de.de.jsx(gE,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ir(e.onCloseAutoFocus,a=>{a.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:Ir(e.onPointerDownOutside,a=>{const c=a.detail.originalEvent,s=c.button===0&&c.ctrlKey===!0;(c.button===2||s)&&a.preventDefault()}),onFocusOutside:Ir(e.onFocusOutside,a=>a.preventDefault())})}),nI=i.forwardRef((e,t)=>{const r=Ft(Qr,e.__scopeDialog),n=i.useRef(!1),o=i.useRef(!1);return de.de.jsx(gE,{...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()}})}),gE=i.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...c}=e,s=Ft(Qr,r),m=i.useRef(null),d=bn(t,m);return uA(),de.de.jsxs(de.de.Fragment,{children:[de.de.jsx(tE,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:de.de.jsx(Qx,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":Zm(s.open),...c,ref:d,onDismiss:()=>s.onOpenChange(!1)})}),de.de.jsxs(de.de.Fragment,{children:[de.de.jsx(iI,{titleId:s.titleId}),de.de.jsx(uI,{contentRef:m,descriptionId:s.descriptionId})]})]})}),qm="DialogTitle",oI=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ft(qm,r);return de.de.jsx(ir.h2,{id:o.titleId,...n,ref:t})});oI.displayName=qm;var hE="DialogDescription",aI=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ft(hE,r);return de.de.jsx(ir.p,{id:o.descriptionId,...n,ref:t})});aI.displayName=hE;var yE="DialogClose",sI=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ft(yE,r);return de.de.jsx(ir.button,{type:"button",...n,ref:t,onClick:Ir(e.onClick,()=>o.onOpenChange(!1))})});sI.displayName=yE;function Zm(e){return e?"open":"closed"}var bE="DialogTitleWarning",[Die,wE]=LM(bE,{contentName:Qr,titleName:qm,docsSlug:"dialog"}),iI=({titleId:e})=>{const t=wE(bE),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},cI="DialogDescriptionWarning",uI=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${wE(cI).contentName}}.`;return i.useEffect(()=>{const n=e.current?.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null};ie.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 Vl={exports:{}},pa={};/**
|
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 Pg;function lI(){if(Pg)return pa;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 pa.Fragment=t,pa.jsx=r,pa.jsxs=r,pa}var Ds={};/**
|
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 Mg;function dI(){return Mg||(Mg=1,process.env.NODE_ENV!=="production"&&(function(){function e(f){if(f==null)return null;if(typeof f=="function")return f.$$typeof===L?null:f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case l:return"Fragment";case y:return"Profiler";case g:return"StrictMode";case S:return"Suspense";case T:return"SuspenseList";case O:return"Activity"}if(typeof f=="object")switch(typeof f.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),f.$$typeof){case E:return"Portal";case w:return(f.displayName||"Context")+".Provider";case b:return(f._context.displayName||"Context")+".Consumer";case k:var x=f.render;return f=f.displayName,f||(f=x.displayName||x.name||"",f=f!==""?"ForwardRef("+f+")":"ForwardRef"),f;case C:return x=f.displayName||null,x!==null?x:e(f.type)||"Memo";case j:x=f._payload,f=f._init;try{return e(f(x))}catch{}}return null}function t(f){return""+f}function r(f){try{t(f);var x=!1}catch{x=!0}if(x){x=console;var R=x.error,D=typeof Symbol=="function"&&Symbol.toStringTag&&f[Symbol.toStringTag]||f.constructor.name||"Object";return R.call(x,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",D),t(f)}}function n(f){if(f===l)return"<>";if(typeof f=="object"&&f!==null&&f.$$typeof===j)return"<...>";try{var x=e(f);return x?"<"+x+">":"<...>"}catch{return"<...>"}}function o(){var f=I.A;return f===null?null:f.getOwner()}function a(){return Error("react-stack-top-frame")}function c(f){if(B.call(f,"key")){var x=Object.getOwnPropertyDescriptor(f,"key").get;if(x&&x.isReactWarning)return!1}return f.key!==void 0}function s(f,x){function R(){P||(P=!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))}R.isReactWarning=!0,Object.defineProperty(f,"key",{get:R,configurable:!0})}function m(){var f=e(this.type);return U[f]||(U[f]=!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.")),f=this.props.ref,f!==void 0?f:null}function d(f,x,R,D,F,A,G,H){return R=A.ref,f={$$typeof:h,type:f,key:x,props:A,_owner:F},(R!==void 0?R:null)!==null?Object.defineProperty(f,"ref",{enumerable:!1,get:m}):Object.defineProperty(f,"ref",{enumerable:!1,value:null}),f._store={},Object.defineProperty(f._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(f,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(f,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:G}),Object.defineProperty(f,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:H}),Object.freeze&&(Object.freeze(f.props),Object.freeze(f)),f}function u(f,x,R,D,F,A,G,H){var _=x.children;if(_!==void 0)if(D)if(K(_)){for(D=0;D<_.length;D++)p(_[D]);Object.freeze&&Object.freeze(_)}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(_);if(B.call(x,"key")){_=e(f);var W=Object.keys(x).filter(function(ce){return ce!=="key"});D=0<W.length?"{key: someKey, "+W.join(": ..., ")+": ...}":"{key: someKey}",X[_+D]||(W=0<W.length?"{"+W.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} />`,D,_,W,_),X[_+D]=!0)}if(_=null,R!==void 0&&(r(R),_=""+R),c(x)&&(r(x.key),_=""+x.key),"key"in x){R={};for(var q in x)q!=="key"&&(R[q]=x[q])}else R=x;return _&&s(R,typeof f=="function"?f.displayName||f.name||"Unknown":f),d(f,_,A,F,o(),R,G,H)}function p(f){typeof f=="object"&&f!==null&&f.$$typeof===h&&f._store&&(f._store.validated=1)}var v=M,h=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),g=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"),S=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),O=Symbol.for("react.activity"),L=Symbol.for("react.client.reference"),I=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=Object.prototype.hasOwnProperty,K=Array.isArray,$=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(f){return f()}};var P,U={},V=v.react_stack_bottom_frame.bind(v,a)(),Y=$(n(a)),X={};Ds.Fragment=l,Ds.jsx=function(f,x,R,D,F){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,x,R,!1,D,F,A?Error("react-stack-top-frame"):V,A?$(n(f)):Y)},Ds.jsxs=function(f,x,R,D,F){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,x,R,!0,D,F,A?Error("react-stack-top-frame"):V,A?$(n(f)):Y)}})()),Ds}var Ag;function fI(){return Ag||(Ag=1,process.env.NODE_ENV==="production"?Vl.exports=lI():Vl.exports=dI()),Vl.exports}var pe=fI();const pI={id:"",username:"",email:"",created_at:null,updated_at:null,features:[]};M.createContext({user:pI,isLoading:!0,fetchUser:async()=>{},logout:async()=>{},login:async()=>!1});M.createContext({locale:void 0});ie.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 Fr(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 mI(...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 wn(...e){return i.useCallback(mI(...e),e)}function vI(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 gI(e,t=[]){let r=[];function n(a,c){const s=i.createContext(c),m=r.length;r=[...r,c];const d=p=>{const{scope:v,children:h,...E}=p,l=v?.[e]?.[m]||s,g=i.useMemo(()=>E,Object.values(E));return fe.jsx(l.Provider,{value:g,children:h})};d.displayName=a+"Provider";function u(p,v){const h=v?.[e]?.[m]||s,E=i.useContext(h);if(E)return E;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[d,u]}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,hI(o,...t)]}function hI(...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 d=s(o)[`__scope${m}`];return{...c,...d}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}var Op=globalThis?.document?i.useLayoutEffect:()=>{},yI=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],cr=yI.reduce((e,t)=>{const r=Z.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 bI(e,t){e&&ke.flushSync(()=>e.dispatchEvent(t))}function Fa(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...r)=>t.current?.(...r),[])}function wI(e,t=globalThis?.document){const r=Fa(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 xI="DismissableLayer",Pp="dismissableLayer.update",EI="dismissableLayer.pointerDownOutside",kI="dismissableLayer.focusOutside",Fg,xE=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),EE=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:c,onDismiss:s,...m}=e,d=i.useContext(xE),[u,p]=i.useState(null),v=u?.ownerDocument??globalThis?.document,[,h]=i.useState({}),E=wn(t,C=>p(C)),l=Array.from(d.layers),[g]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),y=l.indexOf(g),b=u?l.indexOf(u):-1,w=d.layersWithOutsidePointerEventsDisabled.size>0,k=b>=y,S=RI(C=>{const j=C.target,O=[...d.branches].some(L=>L.contains(j));!k||O||(o?.(C),c?.(C),C.defaultPrevented||s?.())},v),T=jI(C=>{const j=C.target;[...d.branches].some(O=>O.contains(j))||(a?.(C),c?.(C),C.defaultPrevented||s?.())},v);return wI(C=>{b===d.layers.size-1&&(n?.(C),!C.defaultPrevented&&s&&(C.preventDefault(),s()))},v),i.useEffect(()=>{if(u)return r&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Fg=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(u)),d.layers.add(u),Lg(),()=>{r&&d.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=Fg)}},[u,v,r,d]),i.useEffect(()=>()=>{u&&(d.layers.delete(u),d.layersWithOutsidePointerEventsDisabled.delete(u),Lg())},[u,d]),i.useEffect(()=>{const C=()=>h({});return document.addEventListener(Pp,C),()=>document.removeEventListener(Pp,C)},[]),fe.jsx(cr.div,{...m,ref:E,style:{pointerEvents:w?k?"auto":"none":void 0,...e.style},onFocusCapture:Fr(e.onFocusCapture,T.onFocusCapture),onBlurCapture:Fr(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:Fr(e.onPointerDownCapture,S.onPointerDownCapture)})});EE.displayName=xI;var CI="DismissableLayerBranch",SI=i.forwardRef((e,t)=>{const r=i.useContext(xE),n=i.useRef(null),o=wn(t,n);return i.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),fe.jsx(cr.div,{...e,ref:o})});SI.displayName=CI;function RI(e,t=globalThis?.document){const r=Fa(e),n=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let m=function(){kE(EI,r,d,{discrete:!0})};const d={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 jI(e,t=globalThis?.document){const r=Fa(e),n=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!n.current&&kE(kI,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 Lg(){const e=new CustomEvent(Pp);document.dispatchEvent(e)}function kE(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?bI(o,a):o.dispatchEvent(a)}var Hl="focusScope.autoFocusOnMount",Xl="focusScope.autoFocusOnUnmount",Wg={bubbles:!1,cancelable:!0},NI="FocusScope",CE=i.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...c}=e,[s,m]=i.useState(null),d=Fa(o),u=Fa(a),p=i.useRef(null),v=wn(t,l=>m(l)),h=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(n){let l=function(w){if(h.paused||!s)return;const k=w.target;s.contains(k)?p.current=k:br(p.current,{select:!0})},g=function(w){if(h.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",l),document.addEventListener("focusout",g);const b=new MutationObserver(y);return s&&b.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",l),document.removeEventListener("focusout",g),b.disconnect()}}},[n,s,h.paused]),i.useEffect(()=>{if(s){$g.add(h);const l=document.activeElement;if(!s.contains(l)){const g=new CustomEvent(Hl,Wg);s.addEventListener(Hl,d),s.dispatchEvent(g),g.defaultPrevented||(TI(MI(SE(s)),{select:!0}),document.activeElement===l&&br(s))}return()=>{s.removeEventListener(Hl,d),setTimeout(()=>{const g=new CustomEvent(Xl,Wg);s.addEventListener(Xl,u),s.dispatchEvent(g),g.defaultPrevented||br(l??document.body,{select:!0}),s.removeEventListener(Xl,u),$g.remove(h)},0)}}},[s,d,u,h]);const E=i.useCallback(l=>{if(!r&&!n||h.paused)return;const g=l.key==="Tab"&&!l.altKey&&!l.ctrlKey&&!l.metaKey,y=document.activeElement;if(g&&y){const b=l.currentTarget,[w,k]=DI(b);w&&k?!l.shiftKey&&y===k?(l.preventDefault(),r&&br(w,{select:!0})):l.shiftKey&&y===w&&(l.preventDefault(),r&&br(k,{select:!0})):y===b&&l.preventDefault()}},[r,n,h.paused]);return fe.jsx(cr.div,{tabIndex:-1,...c,ref:v,onKeyDown:E})});CE.displayName=NI;function TI(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(br(n,{select:t}),document.activeElement!==r)return}function DI(e){const t=SE(e),r=zg(t,e),n=zg(t.reverse(),e);return[r,n]}function SE(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 zg(e,t){for(const r of e)if(!_I(r,{upTo:t}))return r}function _I(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 OI(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&&OI(e)&&t&&e.select()}}var $g=PI();function PI(){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 MI(e){return e.filter(t=>t.tagName!=="A")}var AI="Portal",II=i.forwardRef((e,t)=>{const{container:r,...n}=e,[o,a]=i.useState(!1);Op(()=>a(!0),[]);const c=r||o&&globalThis?.document?.body;return c?Ee.createPortal(fe.jsx(cr.div,{...n,ref:t}),c):null});II.displayName=AI;function FI(e,t){return i.useReducer((r,n)=>t[r][n]??r,e)}var Jm=e=>{const{present:t,children:r}=e,n=LI(t),o=typeof r=="function"?r({present:n.isPresent}):i.Children.only(r),a=wn(n.ref,WI(o));return typeof r=="function"||n.isPresent?i.cloneElement(o,{ref:a}):null};Jm.displayName="Presence";function LI(e){const[t,r]=i.useState(),n=i.useRef(null),o=i.useRef(e),a=i.useRef("none"),c=e?"mounted":"unmounted",[s,m]=FI(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const d=_s(n.current);a.current=s==="mounted"?d:"none"},[s]),Op(()=>{const d=n.current,u=o.current;if(u!==e){const p=a.current,v=_s(d);e?m("MOUNT"):v==="none"||d?.display==="none"?m("UNMOUNT"):m(u&&p!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,m]),Op(()=>{if(t){let d;const u=t.ownerDocument.defaultView??window,p=h=>{const E=_s(n.current).includes(CSS.escape(h.animationName));if(h.target===t&&E&&(m("ANIMATION_END"),!o.current)){const l=t.style.animationFillMode;t.style.animationFillMode="forwards",d=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=l)})}},v=h=>{h.target===t&&(a.current=_s(n.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{u.clearTimeout(d),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(d=>{n.current=d?getComputedStyle(d):null,r(d)},[])}}function _s(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 Gl=0;function zI(){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()),Gl++,()=>{Gl===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Gl--}},[])}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 RE(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 $I(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 kc="right-scroll-bar-position",Cc="width-before-scroll-bar",UI="with-scroll-bars-hidden",YI="--removed-body-scroll-bar-size";function ql(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function BI(e,t){var r=M.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 KI=typeof window<"u"?i.useLayoutEffect:i.useEffect,Bg=new WeakMap;function VI(e,t){var r=BI(null,function(n){return e.forEach(function(o){return ql(o,n)})});return KI(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)||ql(s,null)}),a.forEach(function(s){o.has(s)||ql(s,c)})}Bg.set(r,e)},[e]),r}function HI(e){return e}function XI(e,t){t===void 0&&(t=HI);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 u=c;c=[],u.forEach(a)},d=function(){return Promise.resolve().then(m)};d(),r={push:function(u){c.push(u),d()},filter:function(u){return c=c.filter(u),r}}}};return o}function GI(e){e===void 0&&(e={});var t=XI(null);return t.options=it({async:!0,ssr:!1},e),t}var jE=function(e){var t=e.sideCar,r=RE(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))};jE.isSideCarExport=!0;function qI(e,t){return e.useMedium(t),jE}var NE=GI(),Zl=function(){},Iu=i.forwardRef(function(e,t){var r=i.useRef(null),n=i.useState({onScrollCapture:Zl,onWheelCapture:Zl,onTouchMoveCapture:Zl}),o=n[0],a=n[1],c=e.forwardProps,s=e.children,m=e.className,d=e.removeScrollBar,u=e.enabled,p=e.shards,v=e.sideCar,h=e.noRelative,E=e.noIsolation,l=e.inert,g=e.allowPinchZoom,y=e.as,b=y===void 0?"div":y,w=e.gapMode,k=RE(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=v,T=VI([r,t]),C=it(it({},k),o);return i.createElement(i.Fragment,null,u&&i.createElement(S,{sideCar:NE,removeScrollBar:d,shards:p,noRelative:h,noIsolation:E,inert:l,setCallbacks:a,allowPinchZoom:!!g,lockRef:r,gapMode:w}),c?i.cloneElement(i.Children.only(s),it(it({},C),{ref:T})):i.createElement(b,it({},C,{className:m,ref:T}),s))});Iu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Iu.classNames={fullWidth:Cc,zeroRight:kc};var ZI=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function JI(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=ZI();return t&&e.setAttribute("nonce",t),e}function QI(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function eF(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var tF=function(){var e=0,t=null;return{add:function(r){e==0&&(t=JI())&&(QI(t,r),eF(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},rF=function(){var e=tF();return function(t,r){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},TE=function(){var e=rF(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},nF={left:0,top:0,right:0,gap:0},Jl=function(e){return parseInt(e||"",10)||0},oF=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[Jl(r),Jl(n),Jl(o)]},aF=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return nF;var t=oF(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])}},sF=TE(),Oo="data-scroll-locked",iF=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(UI,` {
|
133
|
-
overflow: hidden `).concat(n,`;
|
134
|
-
padding-right: `).concat(s,"px ").concat(n,`;
|
135
|
-
}
|
136
|
-
body[`).concat(Oo,`] {
|
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(kc,` {
|
150
|
-
right: `).concat(s,"px ").concat(n,`;
|
151
|
-
}
|
152
|
-
|
153
|
-
.`).concat(Cc,` {
|
154
|
-
margin-right: `).concat(s,"px ").concat(n,`;
|
155
|
-
}
|
156
|
-
|
157
|
-
.`).concat(kc," .").concat(kc,` {
|
158
|
-
right: 0 `).concat(n,`;
|
159
|
-
}
|
160
|
-
|
161
|
-
.`).concat(Cc," .").concat(Cc,` {
|
162
|
-
margin-right: 0 `).concat(n,`;
|
163
|
-
}
|
164
|
-
|
165
|
-
body[`).concat(Oo,`] {
|
166
|
-
`).concat(YI,": ").concat(s,`px;
|
167
|
-
}
|
168
|
-
`)},Kg=function(){var e=parseInt(document.body.getAttribute(Oo)||"0",10);return isFinite(e)?e:0},cF=function(){i.useEffect(function(){return document.body.setAttribute(Oo,(Kg()+1).toString()),function(){var e=Kg()-1;e<=0?document.body.removeAttribute(Oo):document.body.setAttribute(Oo,e.toString())}},[])},uF=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;cF();var a=i.useMemo(function(){return aF(o)},[o]);return i.createElement(sF,{styles:iF(a,!t,o,r?"":"!important")})},Mp=!1;if(typeof window<"u")try{var Os=Object.defineProperty({},"passive",{get:function(){return Mp=!0,!0}});window.addEventListener("test",Os,Os),window.removeEventListener("test",Os,Os)}catch{Mp=!1}var Mn=Mp?{passive:!1}:!1,lF=function(e){return e.tagName==="TEXTAREA"},DE=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!lF(e)&&r[t]==="visible")},dF=function(e){return DE(e,"overflowY")},fF=function(e){return DE(e,"overflowX")},Vg=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=_E(e,n);if(o){var a=OE(e,n),c=a[1],s=a[2];if(c>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},pF=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},mF=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},_E=function(e,t){return e==="v"?dF(t):fF(t)},OE=function(e,t){return e==="v"?pF(t):mF(t)},vF=function(e,t){return e==="h"&&t==="rtl"?-1:1},gF=function(e,t,r,n,o){var a=vF(e,window.getComputedStyle(t).direction),c=a*n,s=r.target,m=t.contains(s),d=!1,u=c>0,p=0,v=0;do{if(!s)break;var h=OE(e,s),E=h[0],l=h[1],g=h[2],y=l-g-a*E;(E||y)&&_E(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(u&&Math.abs(p)<1||!u&&Math.abs(v)<1)&&(d=!0),d},Ps=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Hg=function(e){return[e.deltaX,e.deltaY]},Xg=function(e){return e&&"current"in e?e.current:e},hF=function(e,t){return e[0]===t[0]&&e[1]===t[1]},yF=function(e){return`
|
169
|
-
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
170
|
-
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
171
|
-
`)},bF=0,An=[];function wF(e){var t=i.useRef([]),r=i.useRef([0,0]),n=i.useRef(),o=i.useState(bF++)[0],a=i.useState(TE)[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 l=$I([e.lockRef.current],(e.shards||[]).map(Xg)).filter(Boolean);return l.forEach(function(g){return g.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),l.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=i.useCallback(function(l,g){if("touches"in l&&l.touches.length===2||l.type==="wheel"&&l.ctrlKey)return!c.current.allowPinchZoom;var y=Ps(l),b=r.current,w="deltaX"in l?l.deltaX:b[0]-y[0],k="deltaY"in l?l.deltaY:b[1]-y[1],S,T=l.target,C=Math.abs(w)>Math.abs(k)?"h":"v";if("touches"in l&&C==="h"&&T.type==="range")return!1;var j=Vg(C,T);if(!j)return!0;if(j?S=C:(S=C==="v"?"h":"v",j=Vg(C,T)),!j)return!1;if(!n.current&&"changedTouches"in l&&(w||k)&&(n.current=S),!S)return!0;var O=n.current||S;return gF(O,g,l,O==="h"?w:k)},[]),m=i.useCallback(function(l){var g=l;if(!(!An.length||An[An.length-1]!==a)){var y="deltaY"in g?Hg(g):Ps(g),b=t.current.filter(function(S){return S.name===g.type&&(S.target===g.target||g.target===S.shadowParent)&&hF(S.delta,y)})[0];if(b&&b.should){g.cancelable&&g.preventDefault();return}if(!b){var w=(c.current.shards||[]).map(Xg).filter(Boolean).filter(function(S){return S.contains(g.target)}),k=w.length>0?s(g,w[0]):!c.current.noIsolation;k&&g.cancelable&&g.preventDefault()}}},[]),d=i.useCallback(function(l,g,y,b){var w={name:l,delta:g,target:y,should:b,shadowParent:xF(y)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(k){return k!==w})},1)},[]),u=i.useCallback(function(l){r.current=Ps(l),n.current=void 0},[]),p=i.useCallback(function(l){d(l.type,Hg(l),l.target,s(l,e.lockRef.current))},[]),v=i.useCallback(function(l){d(l.type,Ps(l),l.target,s(l,e.lockRef.current))},[]);i.useEffect(function(){return An.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:v}),document.addEventListener("wheel",m,Mn),document.addEventListener("touchmove",m,Mn),document.addEventListener("touchstart",u,Mn),function(){An=An.filter(function(l){return l!==a}),document.removeEventListener("wheel",m,Mn),document.removeEventListener("touchmove",m,Mn),document.removeEventListener("touchstart",u,Mn)}},[]);var h=e.removeScrollBar,E=e.inert;return i.createElement(i.Fragment,null,E?i.createElement(a,{styles:yF(o)}):null,h?i.createElement(uF,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function xF(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const EF=qI(NE,wF);var PE=i.forwardRef(function(e,t){return i.createElement(Iu,it({},e,{ref:t,sideCar:EF}))});PE.classNames=Iu.classNames;var kF=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},In=new WeakMap,Ms=new WeakMap,As={},Ql=0,ME=function(e){return e&&(e.host||ME(e.parentNode))},CF=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=ME(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})},SF=function(e,t,r,n){var o=CF(t,Array.isArray(e)?e:[e]);As[r]||(As[r]=new WeakMap);var a=As[r],c=[],s=new Set,m=new Set(o),d=function(p){!p||s.has(p)||(s.add(p),d(p.parentNode))};o.forEach(d);var u=function(p){!p||m.has(p)||Array.prototype.forEach.call(p.children,function(v){if(s.has(v))u(v);else try{var h=v.getAttribute(n),E=h!==null&&h!=="false",l=(In.get(v)||0)+1,g=(a.get(v)||0)+1;In.set(v,l),a.set(v,g),c.push(v),l===1&&E&&Ms.set(v,!0),g===1&&v.setAttribute(r,"true"),E||v.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",v,y)}})};return u(t),s.clear(),Ql++,function(){c.forEach(function(p){var v=In.get(p)-1,h=a.get(p)-1;In.set(p,v),a.set(p,h),v||(Ms.has(p)||p.removeAttribute(n),Ms.delete(p)),h||p.removeAttribute(r)}),Ql--,Ql||(In=new WeakMap,In=new WeakMap,Ms=new WeakMap,As={})}},RF=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=kF(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),SF(n,o,r,"aria-hidden")):function(){return null}},AE="Dialog",[IE]=gI(AE),[_ie,Lt]=IE(AE),FE="DialogTrigger",jF=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Lt(FE,r),a=wn(t,o.triggerRef);return fe.jsx(cr.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":ev(o.open),...n,ref:a,onClick:Fr(e.onClick,o.onOpenToggle)})});jF.displayName=FE;var NF="DialogPortal",[Oie,LE]=IE(NF,{forceMount:void 0}),lu="DialogOverlay",TF=i.forwardRef((e,t)=>{const r=LE(lu,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Lt(lu,e.__scopeDialog);return a.modal?fe.jsx(Jm,{present:n||a.open,children:fe.jsx(_F,{...o,ref:t})}):null});TF.displayName=lu;var DF=Z.createSlot("DialogOverlay.RemoveScroll"),_F=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Lt(lu,r);return fe.jsx(PE,{as:DF,allowPinchZoom:!0,shards:[o.contentRef],children:fe.jsx(cr.div,{"data-state":ev(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),en="DialogContent",OF=i.forwardRef((e,t)=>{const r=LE(en,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Lt(en,e.__scopeDialog);return fe.jsx(Jm,{present:n||a.open,children:a.modal?fe.jsx(PF,{...o,ref:t}):fe.jsx(MF,{...o,ref:t})})});OF.displayName=en;var PF=i.forwardRef((e,t)=>{const r=Lt(en,e.__scopeDialog),n=i.useRef(null),o=wn(t,r.contentRef,n);return i.useEffect(()=>{const a=n.current;if(a)return RF(a)},[]),fe.jsx(WE,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Fr(e.onCloseAutoFocus,a=>{a.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:Fr(e.onPointerDownOutside,a=>{const c=a.detail.originalEvent,s=c.button===0&&c.ctrlKey===!0;(c.button===2||s)&&a.preventDefault()}),onFocusOutside:Fr(e.onFocusOutside,a=>a.preventDefault())})}),MF=i.forwardRef((e,t)=>{const r=Lt(en,e.__scopeDialog),n=i.useRef(!1),o=i.useRef(!1);return fe.jsx(WE,{...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()}})}),WE=i.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...c}=e,s=Lt(en,r),m=i.useRef(null),d=wn(t,m);return zI(),fe.jsxs(fe.Fragment,{children:[fe.jsx(CE,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:fe.jsx(EE,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":ev(s.open),...c,ref:d,onDismiss:()=>s.onOpenChange(!1)})}),fe.jsxs(fe.Fragment,{children:[fe.jsx(LF,{titleId:s.titleId}),fe.jsx(zF,{contentRef:m,descriptionId:s.descriptionId})]})]})}),Qm="DialogTitle",AF=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Lt(Qm,r);return fe.jsx(cr.h2,{id:o.titleId,...n,ref:t})});AF.displayName=Qm;var zE="DialogDescription",IF=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Lt(zE,r);return fe.jsx(cr.p,{id:o.descriptionId,...n,ref:t})});IF.displayName=zE;var $E="DialogClose",FF=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Lt($E,r);return fe.jsx(cr.button,{type:"button",...n,ref:t,onClick:Fr(e.onClick,()=>o.onOpenChange(!1))})});FF.displayName=$E;function ev(e){return e?"open":"closed"}var UE="DialogTitleWarning",[Pie,YE]=vI(UE,{contentName:en,titleName:Qm,docsSlug:"dialog"}),LF=({titleId:e})=>{const t=YE(UE),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},WF="DialogDescriptionWarning",zF=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${YE(WF).contentName}}.`;return i.useEffect(()=>{const n=e.current?.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null};ie.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 ed={exports:{}},ma={};/**
|
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 Gg;function $F(){if(Gg)return ma;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 ma.Fragment=t,ma.jsx=r,ma.jsxs=r,ma}var Is={};/**
|
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 qg;function UF(){return qg||(qg=1,process.env.NODE_ENV!=="production"&&(function(){function e(f){if(f==null)return null;if(typeof f=="function")return f.$$typeof===L?null:f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case l:return"Fragment";case y:return"Profiler";case g:return"StrictMode";case S:return"Suspense";case T:return"SuspenseList";case O:return"Activity"}if(typeof f=="object")switch(typeof f.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),f.$$typeof){case E:return"Portal";case w:return(f.displayName||"Context")+".Provider";case b:return(f._context.displayName||"Context")+".Consumer";case k:var x=f.render;return f=f.displayName,f||(f=x.displayName||x.name||"",f=f!==""?"ForwardRef("+f+")":"ForwardRef"),f;case C:return x=f.displayName||null,x!==null?x:e(f.type)||"Memo";case j:x=f._payload,f=f._init;try{return e(f(x))}catch{}}return null}function t(f){return""+f}function r(f){try{t(f);var x=!1}catch{x=!0}if(x){x=console;var R=x.error,D=typeof Symbol=="function"&&Symbol.toStringTag&&f[Symbol.toStringTag]||f.constructor.name||"Object";return R.call(x,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",D),t(f)}}function n(f){if(f===l)return"<>";if(typeof f=="object"&&f!==null&&f.$$typeof===j)return"<...>";try{var x=e(f);return x?"<"+x+">":"<...>"}catch{return"<...>"}}function o(){var f=I.A;return f===null?null:f.getOwner()}function a(){return Error("react-stack-top-frame")}function c(f){if(B.call(f,"key")){var x=Object.getOwnPropertyDescriptor(f,"key").get;if(x&&x.isReactWarning)return!1}return f.key!==void 0}function s(f,x){function R(){P||(P=!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))}R.isReactWarning=!0,Object.defineProperty(f,"key",{get:R,configurable:!0})}function m(){var f=e(this.type);return U[f]||(U[f]=!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.")),f=this.props.ref,f!==void 0?f:null}function d(f,x,R,D,F,A,G,H){return R=A.ref,f={$$typeof:h,type:f,key:x,props:A,_owner:F},(R!==void 0?R:null)!==null?Object.defineProperty(f,"ref",{enumerable:!1,get:m}):Object.defineProperty(f,"ref",{enumerable:!1,value:null}),f._store={},Object.defineProperty(f._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(f,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(f,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:G}),Object.defineProperty(f,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:H}),Object.freeze&&(Object.freeze(f.props),Object.freeze(f)),f}function u(f,x,R,D,F,A,G,H){var _=x.children;if(_!==void 0)if(D)if(K(_)){for(D=0;D<_.length;D++)p(_[D]);Object.freeze&&Object.freeze(_)}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(_);if(B.call(x,"key")){_=e(f);var W=Object.keys(x).filter(function(ce){return ce!=="key"});D=0<W.length?"{key: someKey, "+W.join(": ..., ")+": ...}":"{key: someKey}",X[_+D]||(W=0<W.length?"{"+W.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} />`,D,_,W,_),X[_+D]=!0)}if(_=null,R!==void 0&&(r(R),_=""+R),c(x)&&(r(x.key),_=""+x.key),"key"in x){R={};for(var q in x)q!=="key"&&(R[q]=x[q])}else R=x;return _&&s(R,typeof f=="function"?f.displayName||f.name||"Unknown":f),d(f,_,A,F,o(),R,G,H)}function p(f){typeof f=="object"&&f!==null&&f.$$typeof===h&&f._store&&(f._store.validated=1)}var v=M,h=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),g=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"),S=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),O=Symbol.for("react.activity"),L=Symbol.for("react.client.reference"),I=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=Object.prototype.hasOwnProperty,K=Array.isArray,$=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(f){return f()}};var P,U={},V=v.react_stack_bottom_frame.bind(v,a)(),Y=$(n(a)),X={};Is.Fragment=l,Is.jsx=function(f,x,R,D,F){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,x,R,!1,D,F,A?Error("react-stack-top-frame"):V,A?$(n(f)):Y)},Is.jsxs=function(f,x,R,D,F){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,x,R,!0,D,F,A?Error("react-stack-top-frame"):V,A?$(n(f)):Y)}})()),Is}var Zg;function YF(){return Zg||(Zg=1,process.env.NODE_ENV==="production"?ed.exports=$F():ed.exports=UF()),ed.exports}var me=YF();M.createContext({locale:void 0});const BF={id:"",username:"",email:"",created_at:null,updated_at:null,features:[]};M.createContext({user:BF,isLoading:!0,fetchUser:async()=>{},logout:async()=>{},login:async()=>!1});ie.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 Lr(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 KF(...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 xn(...e){return i.useCallback(KF(...e),e)}function VF(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 HF(e,t=[]){let r=[];function n(a,c){const s=i.createContext(c),m=r.length;r=[...r,c];const d=p=>{const{scope:v,children:h,...E}=p,l=v?.[e]?.[m]||s,g=i.useMemo(()=>E,Object.values(E));return pe.jsx(l.Provider,{value:g,children:h})};d.displayName=a+"Provider";function u(p,v){const h=v?.[e]?.[m]||s,E=i.useContext(h);if(E)return E;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[d,u]}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,XF(o,...t)]}function XF(...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 d=s(o)[`__scope${m}`];return{...c,...d}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}var Ap=globalThis?.document?i.useLayoutEffect:()=>{},GF=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ur=GF.reduce((e,t)=>{const r=Z.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 qF(e,t){e&&ke.flushSync(()=>e.dispatchEvent(t))}function La(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...r)=>t.current?.(...r),[])}function ZF(e,t=globalThis?.document){const r=La(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 JF="DismissableLayer",Ip="dismissableLayer.update",QF="dismissableLayer.pointerDownOutside",eL="dismissableLayer.focusOutside",Qg,BE=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),KE=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:c,onDismiss:s,...m}=e,d=i.useContext(BE),[u,p]=i.useState(null),v=u?.ownerDocument??globalThis?.document,[,h]=i.useState({}),E=xn(t,C=>p(C)),l=Array.from(d.layers),[g]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),y=l.indexOf(g),b=u?l.indexOf(u):-1,w=d.layersWithOutsidePointerEventsDisabled.size>0,k=b>=y,S=nL(C=>{const j=C.target,O=[...d.branches].some(L=>L.contains(j));!k||O||(o?.(C),c?.(C),C.defaultPrevented||s?.())},v),T=oL(C=>{const j=C.target;[...d.branches].some(O=>O.contains(j))||(a?.(C),c?.(C),C.defaultPrevented||s?.())},v);return ZF(C=>{b===d.layers.size-1&&(n?.(C),!C.defaultPrevented&&s&&(C.preventDefault(),s()))},v),i.useEffect(()=>{if(u)return r&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Qg=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(u)),d.layers.add(u),eh(),()=>{r&&d.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=Qg)}},[u,v,r,d]),i.useEffect(()=>()=>{u&&(d.layers.delete(u),d.layersWithOutsidePointerEventsDisabled.delete(u),eh())},[u,d]),i.useEffect(()=>{const C=()=>h({});return document.addEventListener(Ip,C),()=>document.removeEventListener(Ip,C)},[]),pe.jsx(ur.div,{...m,ref:E,style:{pointerEvents:w?k?"auto":"none":void 0,...e.style},onFocusCapture:Lr(e.onFocusCapture,T.onFocusCapture),onBlurCapture:Lr(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:Lr(e.onPointerDownCapture,S.onPointerDownCapture)})});KE.displayName=JF;var tL="DismissableLayerBranch",rL=i.forwardRef((e,t)=>{const r=i.useContext(BE),n=i.useRef(null),o=xn(t,n);return i.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),pe.jsx(ur.div,{...e,ref:o})});rL.displayName=tL;function nL(e,t=globalThis?.document){const r=La(e),n=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let m=function(){VE(QF,r,d,{discrete:!0})};const d={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 oL(e,t=globalThis?.document){const r=La(e),n=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!n.current&&VE(eL,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 eh(){const e=new CustomEvent(Ip);document.dispatchEvent(e)}function VE(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?qF(o,a):o.dispatchEvent(a)}var td="focusScope.autoFocusOnMount",rd="focusScope.autoFocusOnUnmount",th={bubbles:!1,cancelable:!0},aL="FocusScope",HE=i.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...c}=e,[s,m]=i.useState(null),d=La(o),u=La(a),p=i.useRef(null),v=xn(t,l=>m(l)),h=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(n){let l=function(w){if(h.paused||!s)return;const k=w.target;s.contains(k)?p.current=k:wr(p.current,{select:!0})},g=function(w){if(h.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",l),document.addEventListener("focusout",g);const b=new MutationObserver(y);return s&&b.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",l),document.removeEventListener("focusout",g),b.disconnect()}}},[n,s,h.paused]),i.useEffect(()=>{if(s){nh.add(h);const l=document.activeElement;if(!s.contains(l)){const g=new CustomEvent(td,th);s.addEventListener(td,d),s.dispatchEvent(g),g.defaultPrevented||(sL(dL(XE(s)),{select:!0}),document.activeElement===l&&wr(s))}return()=>{s.removeEventListener(td,d),setTimeout(()=>{const g=new CustomEvent(rd,th);s.addEventListener(rd,u),s.dispatchEvent(g),g.defaultPrevented||wr(l??document.body,{select:!0}),s.removeEventListener(rd,u),nh.remove(h)},0)}}},[s,d,u,h]);const E=i.useCallback(l=>{if(!r&&!n||h.paused)return;const g=l.key==="Tab"&&!l.altKey&&!l.ctrlKey&&!l.metaKey,y=document.activeElement;if(g&&y){const b=l.currentTarget,[w,k]=iL(b);w&&k?!l.shiftKey&&y===k?(l.preventDefault(),r&&wr(w,{select:!0})):l.shiftKey&&y===w&&(l.preventDefault(),r&&wr(k,{select:!0})):y===b&&l.preventDefault()}},[r,n,h.paused]);return pe.jsx(ur.div,{tabIndex:-1,...c,ref:v,onKeyDown:E})});HE.displayName=aL;function sL(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(wr(n,{select:t}),document.activeElement!==r)return}function iL(e){const t=XE(e),r=rh(t,e),n=rh(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 rh(e,t){for(const r of e)if(!cL(r,{upTo:t}))return r}function cL(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 uL(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&&uL(e)&&t&&e.select()}}var nh=lL();function lL(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=oh(e,t),e.unshift(t)},remove(t){e=oh(e,t),e[0]?.resume()}}}function oh(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function dL(e){return e.filter(t=>t.tagName!=="A")}var fL="Portal",pL=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?Ee.createPortal(pe.jsx(ur.div,{...n,ref:t}),c):null});pL.displayName=fL;function mL(e,t){return i.useReducer((r,n)=>t[r][n]??r,e)}var tv=e=>{const{present:t,children:r}=e,n=vL(t),o=typeof r=="function"?r({present:n.isPresent}):i.Children.only(r),a=xn(n.ref,gL(o));return typeof r=="function"||n.isPresent?i.cloneElement(o,{ref:a}):null};tv.displayName="Presence";function vL(e){const[t,r]=i.useState(),n=i.useRef(null),o=i.useRef(e),a=i.useRef("none"),c=e?"mounted":"unmounted",[s,m]=mL(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const d=Fs(n.current);a.current=s==="mounted"?d:"none"},[s]),Ap(()=>{const d=n.current,u=o.current;if(u!==e){const p=a.current,v=Fs(d);e?m("MOUNT"):v==="none"||d?.display==="none"?m("UNMOUNT"):m(u&&p!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,m]),Ap(()=>{if(t){let d;const u=t.ownerDocument.defaultView??window,p=h=>{const E=Fs(n.current).includes(CSS.escape(h.animationName));if(h.target===t&&E&&(m("ANIMATION_END"),!o.current)){const l=t.style.animationFillMode;t.style.animationFillMode="forwards",d=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=l)})}},v=h=>{h.target===t&&(a.current=Fs(n.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{u.clearTimeout(d),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(d=>{n.current=d?getComputedStyle(d):null,r(d)},[])}}function Fs(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 nd=0;function hL(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??ah()),document.body.insertAdjacentElement("beforeend",e[1]??ah()),nd++,()=>{nd===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),nd--}},[])}function ah(){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 GE(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 yL(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",Rc="width-before-scroll-bar",bL="with-scroll-bars-hidden",wL="--removed-body-scroll-bar-size";function od(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function xL(e,t){var r=M.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 EL=typeof window<"u"?i.useLayoutEffect:i.useEffect,sh=new WeakMap;function kL(e,t){var r=xL(null,function(n){return e.forEach(function(o){return od(o,n)})});return EL(function(){var n=sh.get(r);if(n){var o=new Set(n),a=new Set(e),c=r.current;o.forEach(function(s){a.has(s)||od(s,null)}),a.forEach(function(s){o.has(s)||od(s,c)})}sh.set(r,e)},[e]),r}function CL(e){return e}function SL(e,t){t===void 0&&(t=CL);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 u=c;c=[],u.forEach(a)},d=function(){return Promise.resolve().then(m)};d(),r={push:function(u){c.push(u),d()},filter:function(u){return c=c.filter(u),r}}}};return o}function RL(e){e===void 0&&(e={});var t=SL(null);return t.options=ct({async:!0,ssr:!1},e),t}var qE=function(e){var t=e.sideCar,r=GE(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))};qE.isSideCarExport=!0;function jL(e,t){return e.useMedium(t),qE}var ZE=RL(),ad=function(){},Fu=i.forwardRef(function(e,t){var r=i.useRef(null),n=i.useState({onScrollCapture:ad,onWheelCapture:ad,onTouchMoveCapture:ad}),o=n[0],a=n[1],c=e.forwardProps,s=e.children,m=e.className,d=e.removeScrollBar,u=e.enabled,p=e.shards,v=e.sideCar,h=e.noRelative,E=e.noIsolation,l=e.inert,g=e.allowPinchZoom,y=e.as,b=y===void 0?"div":y,w=e.gapMode,k=GE(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=v,T=kL([r,t]),C=ct(ct({},k),o);return i.createElement(i.Fragment,null,u&&i.createElement(S,{sideCar:ZE,removeScrollBar:d,shards:p,noRelative:h,noIsolation:E,inert:l,setCallbacks:a,allowPinchZoom:!!g,lockRef:r,gapMode:w}),c?i.cloneElement(i.Children.only(s),ct(ct({},C),{ref:T})):i.createElement(b,ct({},C,{className:m,ref:T}),s))});Fu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Fu.classNames={fullWidth:Rc,zeroRight:Sc};var NL=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function TL(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=NL();return t&&e.setAttribute("nonce",t),e}function DL(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function _L(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var OL=function(){var e=0,t=null;return{add:function(r){e==0&&(t=TL())&&(DL(t,r),_L(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},PL=function(){var e=OL();return function(t,r){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},JE=function(){var e=PL(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},ML={left:0,top:0,right:0,gap:0},sd=function(e){return parseInt(e||"",10)||0},AL=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)]},IL=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return ML;var t=AL(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])}},FL=JE(),Po="data-scroll-locked",LL=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(bL,` {
|
198
|
-
overflow: hidden `).concat(n,`;
|
199
|
-
padding-right: `).concat(s,"px ").concat(n,`;
|
200
|
-
}
|
201
|
-
body[`).concat(Po,`] {
|
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(Sc,` {
|
215
|
-
right: `).concat(s,"px ").concat(n,`;
|
216
|
-
}
|
217
|
-
|
218
|
-
.`).concat(Rc,` {
|
219
|
-
margin-right: `).concat(s,"px ").concat(n,`;
|
220
|
-
}
|
221
|
-
|
222
|
-
.`).concat(Sc," .").concat(Sc,` {
|
223
|
-
right: 0 `).concat(n,`;
|
224
|
-
}
|
225
|
-
|
226
|
-
.`).concat(Rc," .").concat(Rc,` {
|
227
|
-
margin-right: 0 `).concat(n,`;
|
228
|
-
}
|
229
|
-
|
230
|
-
body[`).concat(Po,`] {
|
231
|
-
`).concat(wL,": ").concat(s,`px;
|
232
|
-
}
|
233
|
-
`)},ih=function(){var e=parseInt(document.body.getAttribute(Po)||"0",10);return isFinite(e)?e:0},WL=function(){i.useEffect(function(){return document.body.setAttribute(Po,(ih()+1).toString()),function(){var e=ih()-1;e<=0?document.body.removeAttribute(Po):document.body.setAttribute(Po,e.toString())}},[])},zL=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;WL();var a=i.useMemo(function(){return IL(o)},[o]);return i.createElement(FL,{styles:LL(a,!t,o,r?"":"!important")})},Fp=!1;if(typeof window<"u")try{var Ls=Object.defineProperty({},"passive",{get:function(){return Fp=!0,!0}});window.addEventListener("test",Ls,Ls),window.removeEventListener("test",Ls,Ls)}catch{Fp=!1}var Fn=Fp?{passive:!1}:!1,$L=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&&!$L(e)&&r[t]==="visible")},UL=function(e){return QE(e,"overflowY")},YL=function(e){return QE(e,"overflowX")},ch=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=ek(e,n);if(o){var a=tk(e,n),c=a[1],s=a[2];if(c>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},BL=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},KL=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},ek=function(e,t){return e==="v"?UL(t):YL(t)},tk=function(e,t){return e==="v"?BL(t):KL(t)},VL=function(e,t){return e==="h"&&t==="rtl"?-1:1},HL=function(e,t,r,n,o){var a=VL(e,window.getComputedStyle(t).direction),c=a*n,s=r.target,m=t.contains(s),d=!1,u=c>0,p=0,v=0;do{if(!s)break;var h=tk(e,s),E=h[0],l=h[1],g=h[2],y=l-g-a*E;(E||y)&&ek(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(u&&Math.abs(p)<1||!u&&Math.abs(v)<1)&&(d=!0),d},Ws=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},uh=function(e){return[e.deltaX,e.deltaY]},lh=function(e){return e&&"current"in e?e.current:e},XL=function(e,t){return e[0]===t[0]&&e[1]===t[1]},GL=function(e){return`
|
234
|
-
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
235
|
-
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
236
|
-
`)},qL=0,Ln=[];function ZL(e){var t=i.useRef([]),r=i.useRef([0,0]),n=i.useRef(),o=i.useState(qL++)[0],a=i.useState(JE)[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 l=yL([e.lockRef.current],(e.shards||[]).map(lh)).filter(Boolean);return l.forEach(function(g){return g.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),l.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=i.useCallback(function(l,g){if("touches"in l&&l.touches.length===2||l.type==="wheel"&&l.ctrlKey)return!c.current.allowPinchZoom;var y=Ws(l),b=r.current,w="deltaX"in l?l.deltaX:b[0]-y[0],k="deltaY"in l?l.deltaY:b[1]-y[1],S,T=l.target,C=Math.abs(w)>Math.abs(k)?"h":"v";if("touches"in l&&C==="h"&&T.type==="range")return!1;var j=ch(C,T);if(!j)return!0;if(j?S=C:(S=C==="v"?"h":"v",j=ch(C,T)),!j)return!1;if(!n.current&&"changedTouches"in l&&(w||k)&&(n.current=S),!S)return!0;var O=n.current||S;return HL(O,g,l,O==="h"?w:k)},[]),m=i.useCallback(function(l){var g=l;if(!(!Ln.length||Ln[Ln.length-1]!==a)){var y="deltaY"in g?uh(g):Ws(g),b=t.current.filter(function(S){return S.name===g.type&&(S.target===g.target||g.target===S.shadowParent)&&XL(S.delta,y)})[0];if(b&&b.should){g.cancelable&&g.preventDefault();return}if(!b){var w=(c.current.shards||[]).map(lh).filter(Boolean).filter(function(S){return S.contains(g.target)}),k=w.length>0?s(g,w[0]):!c.current.noIsolation;k&&g.cancelable&&g.preventDefault()}}},[]),d=i.useCallback(function(l,g,y,b){var w={name:l,delta:g,target:y,should:b,shadowParent:JL(y)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(k){return k!==w})},1)},[]),u=i.useCallback(function(l){r.current=Ws(l),n.current=void 0},[]),p=i.useCallback(function(l){d(l.type,uh(l),l.target,s(l,e.lockRef.current))},[]),v=i.useCallback(function(l){d(l.type,Ws(l),l.target,s(l,e.lockRef.current))},[]);i.useEffect(function(){return Ln.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:v}),document.addEventListener("wheel",m,Fn),document.addEventListener("touchmove",m,Fn),document.addEventListener("touchstart",u,Fn),function(){Ln=Ln.filter(function(l){return l!==a}),document.removeEventListener("wheel",m,Fn),document.removeEventListener("touchmove",m,Fn),document.removeEventListener("touchstart",u,Fn)}},[]);var h=e.removeScrollBar,E=e.inert;return i.createElement(i.Fragment,null,E?i.createElement(a,{styles:GL(o)}):null,h?i.createElement(zL,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function JL(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const QL=jL(ZE,ZL);var rk=i.forwardRef(function(e,t){return i.createElement(Fu,ct({},e,{ref:t,sideCar:QL}))});rk.classNames=Fu.classNames;var e2=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Wn=new WeakMap,zs=new WeakMap,$s={},id=0,nk=function(e){return e&&(e.host||nk(e.parentNode))},t2=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=nk(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})},r2=function(e,t,r,n){var o=t2(t,Array.isArray(e)?e:[e]);$s[r]||($s[r]=new WeakMap);var a=$s[r],c=[],s=new Set,m=new Set(o),d=function(p){!p||s.has(p)||(s.add(p),d(p.parentNode))};o.forEach(d);var u=function(p){!p||m.has(p)||Array.prototype.forEach.call(p.children,function(v){if(s.has(v))u(v);else try{var h=v.getAttribute(n),E=h!==null&&h!=="false",l=(Wn.get(v)||0)+1,g=(a.get(v)||0)+1;Wn.set(v,l),a.set(v,g),c.push(v),l===1&&E&&zs.set(v,!0),g===1&&v.setAttribute(r,"true"),E||v.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",v,y)}})};return u(t),s.clear(),id++,function(){c.forEach(function(p){var v=Wn.get(p)-1,h=a.get(p)-1;Wn.set(p,v),a.set(p,h),v||(zs.has(p)||p.removeAttribute(n),zs.delete(p)),h||p.removeAttribute(r)}),id--,id||(Wn=new WeakMap,Wn=new WeakMap,zs=new WeakMap,$s={})}},n2=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=e2(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),r2(n,o,r,"aria-hidden")):function(){return null}},ok="Dialog",[ak]=HF(ok),[Mie,Wt]=ak(ok),sk="DialogTrigger",o2=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Wt(sk,r),a=xn(t,o.triggerRef);return pe.jsx(ur.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":nv(o.open),...n,ref:a,onClick:Lr(e.onClick,o.onOpenToggle)})});o2.displayName=sk;var a2="DialogPortal",[Aie,ik]=ak(a2,{forceMount:void 0}),du="DialogOverlay",s2=i.forwardRef((e,t)=>{const r=ik(du,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Wt(du,e.__scopeDialog);return a.modal?pe.jsx(tv,{present:n||a.open,children:pe.jsx(c2,{...o,ref:t})}):null});s2.displayName=du;var i2=Z.createSlot("DialogOverlay.RemoveScroll"),c2=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Wt(du,r);return pe.jsx(rk,{as:i2,allowPinchZoom:!0,shards:[o.contentRef],children:pe.jsx(ur.div,{"data-state":nv(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),tn="DialogContent",u2=i.forwardRef((e,t)=>{const r=ik(tn,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Wt(tn,e.__scopeDialog);return pe.jsx(tv,{present:n||a.open,children:a.modal?pe.jsx(l2,{...o,ref:t}):pe.jsx(d2,{...o,ref:t})})});u2.displayName=tn;var l2=i.forwardRef((e,t)=>{const r=Wt(tn,e.__scopeDialog),n=i.useRef(null),o=xn(t,r.contentRef,n);return i.useEffect(()=>{const a=n.current;if(a)return n2(a)},[]),pe.jsx(ck,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Lr(e.onCloseAutoFocus,a=>{a.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:Lr(e.onPointerDownOutside,a=>{const c=a.detail.originalEvent,s=c.button===0&&c.ctrlKey===!0;(c.button===2||s)&&a.preventDefault()}),onFocusOutside:Lr(e.onFocusOutside,a=>a.preventDefault())})}),d2=i.forwardRef((e,t)=>{const r=Wt(tn,e.__scopeDialog),n=i.useRef(!1),o=i.useRef(!1);return pe.jsx(ck,{...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()}})}),ck=i.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...c}=e,s=Wt(tn,r),m=i.useRef(null),d=xn(t,m);return hL(),pe.jsxs(pe.Fragment,{children:[pe.jsx(HE,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:pe.jsx(KE,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":nv(s.open),...c,ref:d,onDismiss:()=>s.onOpenChange(!1)})}),pe.jsxs(pe.Fragment,{children:[pe.jsx(v2,{titleId:s.titleId}),pe.jsx(h2,{contentRef:m,descriptionId:s.descriptionId})]})]})}),rv="DialogTitle",f2=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Wt(rv,r);return pe.jsx(ur.h2,{id:o.titleId,...n,ref:t})});f2.displayName=rv;var uk="DialogDescription",p2=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Wt(uk,r);return pe.jsx(ur.p,{id:o.descriptionId,...n,ref:t})});p2.displayName=uk;var lk="DialogClose",m2=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Wt(lk,r);return pe.jsx(ur.button,{type:"button",...n,ref:t,onClick:Lr(e.onClick,()=>o.onOpenChange(!1))})});m2.displayName=lk;function nv(e){return e?"open":"closed"}var dk="DialogTitleWarning",[Iie,fk]=VF(dk,{contentName:tn,titleName:rv,docsSlug:"dialog"}),v2=({titleId:e})=>{const t=fk(dk),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},g2="DialogDescriptionWarning",h2=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${fk(g2).contentName}}.`;return i.useEffect(()=>{const n=e.current?.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null};ie.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"}});ie.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 Wr(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),r===!1||!n.defaultPrevented)return t?.(n)}}function dh(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function y2(...e){return t=>{let r=!1;const n=e.map(o=>{const a=dh(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():dh(e[o],null)}}}}function En(...e){return i.useCallback(y2(...e),e)}function b2(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 w2(e,t=[]){let r=[];function n(a,c){const s=i.createContext(c),m=r.length;r=[...r,c];const d=p=>{const{scope:v,children:h,...E}=p,l=v?.[e]?.[m]||s,g=i.useMemo(()=>E,Object.values(E));return me.jsx(l.Provider,{value:g,children:h})};d.displayName=a+"Provider";function u(p,v){const h=v?.[e]?.[m]||s,E=i.useContext(h);if(E)return E;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[d,u]}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,x2(o,...t)]}function x2(...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 d=s(o)[`__scope${m}`];return{...c,...d}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}var Lp=globalThis?.document?i.useLayoutEffect:()=>{},E2=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],lr=E2.reduce((e,t)=>{const r=Z.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 k2(e,t){e&&ke.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 C2(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 S2="DismissableLayer",Wp="dismissableLayer.update",R2="dismissableLayer.pointerDownOutside",j2="dismissableLayer.focusOutside",fh,pk=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),mk=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:c,onDismiss:s,...m}=e,d=i.useContext(pk),[u,p]=i.useState(null),v=u?.ownerDocument??globalThis?.document,[,h]=i.useState({}),E=En(t,C=>p(C)),l=Array.from(d.layers),[g]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),y=l.indexOf(g),b=u?l.indexOf(u):-1,w=d.layersWithOutsidePointerEventsDisabled.size>0,k=b>=y,S=D2(C=>{const j=C.target,O=[...d.branches].some(L=>L.contains(j));!k||O||(o?.(C),c?.(C),C.defaultPrevented||s?.())},v),T=_2(C=>{const j=C.target;[...d.branches].some(O=>O.contains(j))||(a?.(C),c?.(C),C.defaultPrevented||s?.())},v);return C2(C=>{b===d.layers.size-1&&(n?.(C),!C.defaultPrevented&&s&&(C.preventDefault(),s()))},v),i.useEffect(()=>{if(u)return r&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(fh=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(u)),d.layers.add(u),ph(),()=>{r&&d.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=fh)}},[u,v,r,d]),i.useEffect(()=>()=>{u&&(d.layers.delete(u),d.layersWithOutsidePointerEventsDisabled.delete(u),ph())},[u,d]),i.useEffect(()=>{const C=()=>h({});return document.addEventListener(Wp,C),()=>document.removeEventListener(Wp,C)},[]),me.jsx(lr.div,{...m,ref:E,style:{pointerEvents:w?k?"auto":"none":void 0,...e.style},onFocusCapture:Wr(e.onFocusCapture,T.onFocusCapture),onBlurCapture:Wr(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:Wr(e.onPointerDownCapture,S.onPointerDownCapture)})});mk.displayName=S2;var N2="DismissableLayerBranch",T2=i.forwardRef((e,t)=>{const r=i.useContext(pk),n=i.useRef(null),o=En(t,n);return i.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),me.jsx(lr.div,{...e,ref:o})});T2.displayName=N2;function D2(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(){vk(R2,r,d,{discrete:!0})};const d={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 _2(e,t=globalThis?.document){const r=Wa(e),n=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!n.current&&vk(j2,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 ph(){const e=new CustomEvent(Wp);document.dispatchEvent(e)}function vk(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?k2(o,a):o.dispatchEvent(a)}var cd="focusScope.autoFocusOnMount",ud="focusScope.autoFocusOnUnmount",mh={bubbles:!1,cancelable:!0},O2="FocusScope",gk=i.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...c}=e,[s,m]=i.useState(null),d=Wa(o),u=Wa(a),p=i.useRef(null),v=En(t,l=>m(l)),h=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(n){let l=function(w){if(h.paused||!s)return;const k=w.target;s.contains(k)?p.current=k:xr(p.current,{select:!0})},g=function(w){if(h.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",l),document.addEventListener("focusout",g);const b=new MutationObserver(y);return s&&b.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",l),document.removeEventListener("focusout",g),b.disconnect()}}},[n,s,h.paused]),i.useEffect(()=>{if(s){gh.add(h);const l=document.activeElement;if(!s.contains(l)){const g=new CustomEvent(cd,mh);s.addEventListener(cd,d),s.dispatchEvent(g),g.defaultPrevented||(P2(L2(hk(s)),{select:!0}),document.activeElement===l&&xr(s))}return()=>{s.removeEventListener(cd,d),setTimeout(()=>{const g=new CustomEvent(ud,mh);s.addEventListener(ud,u),s.dispatchEvent(g),g.defaultPrevented||xr(l??document.body,{select:!0}),s.removeEventListener(ud,u),gh.remove(h)},0)}}},[s,d,u,h]);const E=i.useCallback(l=>{if(!r&&!n||h.paused)return;const g=l.key==="Tab"&&!l.altKey&&!l.ctrlKey&&!l.metaKey,y=document.activeElement;if(g&&y){const b=l.currentTarget,[w,k]=M2(b);w&&k?!l.shiftKey&&y===k?(l.preventDefault(),r&&xr(w,{select:!0})):l.shiftKey&&y===w&&(l.preventDefault(),r&&xr(k,{select:!0})):y===b&&l.preventDefault()}},[r,n,h.paused]);return me.jsx(lr.div,{tabIndex:-1,...c,ref:v,onKeyDown:E})});gk.displayName=O2;function P2(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(xr(n,{select:t}),document.activeElement!==r)return}function M2(e){const t=hk(e),r=vh(t,e),n=vh(t.reverse(),e);return[r,n]}function hk(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 vh(e,t){for(const r of e)if(!A2(r,{upTo:t}))return r}function A2(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 I2(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&&I2(e)&&t&&e.select()}}var gh=F2();function F2(){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 L2(e){return e.filter(t=>t.tagName!=="A")}var W2="Portal",z2=i.forwardRef((e,t)=>{const{container:r,...n}=e,[o,a]=i.useState(!1);Lp(()=>a(!0),[]);const c=r||o&&globalThis?.document?.body;return c?Ee.createPortal(me.jsx(lr.div,{...n,ref:t}),c):null});z2.displayName=W2;function $2(e,t){return i.useReducer((r,n)=>t[r][n]??r,e)}var ov=e=>{const{present:t,children:r}=e,n=U2(t),o=typeof r=="function"?r({present:n.isPresent}):i.Children.only(r),a=En(n.ref,Y2(o));return typeof r=="function"||n.isPresent?i.cloneElement(o,{ref:a}):null};ov.displayName="Presence";function U2(e){const[t,r]=i.useState(),n=i.useRef(null),o=i.useRef(e),a=i.useRef("none"),c=e?"mounted":"unmounted",[s,m]=$2(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const d=Us(n.current);a.current=s==="mounted"?d:"none"},[s]),Lp(()=>{const d=n.current,u=o.current;if(u!==e){const p=a.current,v=Us(d);e?m("MOUNT"):v==="none"||d?.display==="none"?m("UNMOUNT"):m(u&&p!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,m]),Lp(()=>{if(t){let d;const u=t.ownerDocument.defaultView??window,p=h=>{const E=Us(n.current).includes(CSS.escape(h.animationName));if(h.target===t&&E&&(m("ANIMATION_END"),!o.current)){const l=t.style.animationFillMode;t.style.animationFillMode="forwards",d=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=l)})}},v=h=>{h.target===t&&(a.current=Us(n.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{u.clearTimeout(d),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(d=>{n.current=d?getComputedStyle(d):null,r(d)},[])}}function Us(e){return e?.animationName||"none"}function Y2(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 B2(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??yh()),document.body.insertAdjacentElement("beforeend",e[1]??yh()),ld++,()=>{ld===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),ld--}},[])}function yh(){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 yk(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 K2(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 jc="right-scroll-bar-position",Nc="width-before-scroll-bar",V2="with-scroll-bars-hidden",H2="--removed-body-scroll-bar-size";function dd(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function X2(e,t){var r=M.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 G2=typeof window<"u"?i.useLayoutEffect:i.useEffect,bh=new WeakMap;function q2(e,t){var r=X2(null,function(n){return e.forEach(function(o){return dd(o,n)})});return G2(function(){var n=bh.get(r);if(n){var o=new Set(n),a=new Set(e),c=r.current;o.forEach(function(s){a.has(s)||dd(s,null)}),a.forEach(function(s){o.has(s)||dd(s,c)})}bh.set(r,e)},[e]),r}function Z2(e){return e}function J2(e,t){t===void 0&&(t=Z2);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 u=c;c=[],u.forEach(a)},d=function(){return Promise.resolve().then(m)};d(),r={push:function(u){c.push(u),d()},filter:function(u){return c=c.filter(u),r}}}};return o}function Q2(e){e===void 0&&(e={});var t=J2(null);return t.options=ut({async:!0,ssr:!1},e),t}var bk=function(e){var t=e.sideCar,r=yk(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))};bk.isSideCarExport=!0;function e5(e,t){return e.useMedium(t),bk}var wk=Q2(),fd=function(){},Lu=i.forwardRef(function(e,t){var r=i.useRef(null),n=i.useState({onScrollCapture:fd,onWheelCapture:fd,onTouchMoveCapture:fd}),o=n[0],a=n[1],c=e.forwardProps,s=e.children,m=e.className,d=e.removeScrollBar,u=e.enabled,p=e.shards,v=e.sideCar,h=e.noRelative,E=e.noIsolation,l=e.inert,g=e.allowPinchZoom,y=e.as,b=y===void 0?"div":y,w=e.gapMode,k=yk(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=v,T=q2([r,t]),C=ut(ut({},k),o);return i.createElement(i.Fragment,null,u&&i.createElement(S,{sideCar:wk,removeScrollBar:d,shards:p,noRelative:h,noIsolation:E,inert:l,setCallbacks:a,allowPinchZoom:!!g,lockRef:r,gapMode:w}),c?i.cloneElement(i.Children.only(s),ut(ut({},C),{ref:T})):i.createElement(b,ut({},C,{className:m,ref:T}),s))});Lu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Lu.classNames={fullWidth:Nc,zeroRight:jc};var t5=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function r5(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=t5();return t&&e.setAttribute("nonce",t),e}function n5(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function o5(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var a5=function(){var e=0,t=null;return{add:function(r){e==0&&(t=r5())&&(n5(t,r),o5(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},s5=function(){var e=a5();return function(t,r){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},xk=function(){var e=s5(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},i5={left:0,top:0,right:0,gap:0},pd=function(e){return parseInt(e||"",10)||0},c5=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[pd(r),pd(n),pd(o)]},u5=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return i5;var t=c5(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])}},l5=xk(),Mo="data-scroll-locked",d5=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(V2,` {
|
242
|
-
overflow: hidden `).concat(n,`;
|
243
|
-
padding-right: `).concat(s,"px ").concat(n,`;
|
244
|
-
}
|
245
|
-
body[`).concat(Mo,`] {
|
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(jc,` {
|
259
|
-
right: `).concat(s,"px ").concat(n,`;
|
260
|
-
}
|
261
|
-
|
262
|
-
.`).concat(Nc,` {
|
263
|
-
margin-right: `).concat(s,"px ").concat(n,`;
|
264
|
-
}
|
265
|
-
|
266
|
-
.`).concat(jc," .").concat(jc,` {
|
267
|
-
right: 0 `).concat(n,`;
|
268
|
-
}
|
269
|
-
|
270
|
-
.`).concat(Nc," .").concat(Nc,` {
|
271
|
-
margin-right: 0 `).concat(n,`;
|
272
|
-
}
|
273
|
-
|
274
|
-
body[`).concat(Mo,`] {
|
275
|
-
`).concat(H2,": ").concat(s,`px;
|
276
|
-
}
|
277
|
-
`)},wh=function(){var e=parseInt(document.body.getAttribute(Mo)||"0",10);return isFinite(e)?e:0},f5=function(){i.useEffect(function(){return document.body.setAttribute(Mo,(wh()+1).toString()),function(){var e=wh()-1;e<=0?document.body.removeAttribute(Mo):document.body.setAttribute(Mo,e.toString())}},[])},p5=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;f5();var a=i.useMemo(function(){return u5(o)},[o]);return i.createElement(l5,{styles:d5(a,!t,o,r?"":"!important")})},zp=!1;if(typeof window<"u")try{var Ys=Object.defineProperty({},"passive",{get:function(){return zp=!0,!0}});window.addEventListener("test",Ys,Ys),window.removeEventListener("test",Ys,Ys)}catch{zp=!1}var zn=zp?{passive:!1}:!1,m5=function(e){return e.tagName==="TEXTAREA"},Ek=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!m5(e)&&r[t]==="visible")},v5=function(e){return Ek(e,"overflowY")},g5=function(e){return Ek(e,"overflowX")},xh=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=kk(e,n);if(o){var a=Ck(e,n),c=a[1],s=a[2];if(c>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},h5=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},y5=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},kk=function(e,t){return e==="v"?v5(t):g5(t)},Ck=function(e,t){return e==="v"?h5(t):y5(t)},b5=function(e,t){return e==="h"&&t==="rtl"?-1:1},w5=function(e,t,r,n,o){var a=b5(e,window.getComputedStyle(t).direction),c=a*n,s=r.target,m=t.contains(s),d=!1,u=c>0,p=0,v=0;do{if(!s)break;var h=Ck(e,s),E=h[0],l=h[1],g=h[2],y=l-g-a*E;(E||y)&&kk(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(u&&Math.abs(p)<1||!u&&Math.abs(v)<1)&&(d=!0),d},Bs=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Eh=function(e){return[e.deltaX,e.deltaY]},kh=function(e){return e&&"current"in e?e.current:e},x5=function(e,t){return e[0]===t[0]&&e[1]===t[1]},E5=function(e){return`
|
278
|
-
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
279
|
-
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
280
|
-
`)},k5=0,$n=[];function C5(e){var t=i.useRef([]),r=i.useRef([0,0]),n=i.useRef(),o=i.useState(k5++)[0],a=i.useState(xk)[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 l=K2([e.lockRef.current],(e.shards||[]).map(kh)).filter(Boolean);return l.forEach(function(g){return g.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),l.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=i.useCallback(function(l,g){if("touches"in l&&l.touches.length===2||l.type==="wheel"&&l.ctrlKey)return!c.current.allowPinchZoom;var y=Bs(l),b=r.current,w="deltaX"in l?l.deltaX:b[0]-y[0],k="deltaY"in l?l.deltaY:b[1]-y[1],S,T=l.target,C=Math.abs(w)>Math.abs(k)?"h":"v";if("touches"in l&&C==="h"&&T.type==="range")return!1;var j=xh(C,T);if(!j)return!0;if(j?S=C:(S=C==="v"?"h":"v",j=xh(C,T)),!j)return!1;if(!n.current&&"changedTouches"in l&&(w||k)&&(n.current=S),!S)return!0;var O=n.current||S;return w5(O,g,l,O==="h"?w:k)},[]),m=i.useCallback(function(l){var g=l;if(!(!$n.length||$n[$n.length-1]!==a)){var y="deltaY"in g?Eh(g):Bs(g),b=t.current.filter(function(S){return S.name===g.type&&(S.target===g.target||g.target===S.shadowParent)&&x5(S.delta,y)})[0];if(b&&b.should){g.cancelable&&g.preventDefault();return}if(!b){var w=(c.current.shards||[]).map(kh).filter(Boolean).filter(function(S){return S.contains(g.target)}),k=w.length>0?s(g,w[0]):!c.current.noIsolation;k&&g.cancelable&&g.preventDefault()}}},[]),d=i.useCallback(function(l,g,y,b){var w={name:l,delta:g,target:y,should:b,shadowParent:S5(y)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(k){return k!==w})},1)},[]),u=i.useCallback(function(l){r.current=Bs(l),n.current=void 0},[]),p=i.useCallback(function(l){d(l.type,Eh(l),l.target,s(l,e.lockRef.current))},[]),v=i.useCallback(function(l){d(l.type,Bs(l),l.target,s(l,e.lockRef.current))},[]);i.useEffect(function(){return $n.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:v}),document.addEventListener("wheel",m,zn),document.addEventListener("touchmove",m,zn),document.addEventListener("touchstart",u,zn),function(){$n=$n.filter(function(l){return l!==a}),document.removeEventListener("wheel",m,zn),document.removeEventListener("touchmove",m,zn),document.removeEventListener("touchstart",u,zn)}},[]);var h=e.removeScrollBar,E=e.inert;return i.createElement(i.Fragment,null,E?i.createElement(a,{styles:E5(o)}):null,h?i.createElement(p5,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function S5(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const R5=e5(wk,C5);var Sk=i.forwardRef(function(e,t){return i.createElement(Lu,ut({},e,{ref:t,sideCar:R5}))});Sk.classNames=Lu.classNames;var j5=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Un=new WeakMap,Ks=new WeakMap,Vs={},md=0,Rk=function(e){return e&&(e.host||Rk(e.parentNode))},N5=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=Rk(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})},T5=function(e,t,r,n){var o=N5(t,Array.isArray(e)?e:[e]);Vs[r]||(Vs[r]=new WeakMap);var a=Vs[r],c=[],s=new Set,m=new Set(o),d=function(p){!p||s.has(p)||(s.add(p),d(p.parentNode))};o.forEach(d);var u=function(p){!p||m.has(p)||Array.prototype.forEach.call(p.children,function(v){if(s.has(v))u(v);else try{var h=v.getAttribute(n),E=h!==null&&h!=="false",l=(Un.get(v)||0)+1,g=(a.get(v)||0)+1;Un.set(v,l),a.set(v,g),c.push(v),l===1&&E&&Ks.set(v,!0),g===1&&v.setAttribute(r,"true"),E||v.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",v,y)}})};return u(t),s.clear(),md++,function(){c.forEach(function(p){var v=Un.get(p)-1,h=a.get(p)-1;Un.set(p,v),a.set(p,h),v||(Ks.has(p)||p.removeAttribute(n),Ks.delete(p)),h||p.removeAttribute(r)}),md--,md||(Un=new WeakMap,Un=new WeakMap,Ks=new WeakMap,Vs={})}},D5=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=j5(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),T5(n,o,r,"aria-hidden")):function(){return null}},jk="Dialog",[Nk]=w2(jk),[Fie,zt]=Nk(jk),Tk="DialogTrigger",_5=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=zt(Tk,r),a=En(t,o.triggerRef);return me.jsx(lr.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":sv(o.open),...n,ref:a,onClick:Wr(e.onClick,o.onOpenToggle)})});_5.displayName=Tk;var O5="DialogPortal",[Lie,Dk]=Nk(O5,{forceMount:void 0}),fu="DialogOverlay",P5=i.forwardRef((e,t)=>{const r=Dk(fu,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=zt(fu,e.__scopeDialog);return a.modal?me.jsx(ov,{present:n||a.open,children:me.jsx(A5,{...o,ref:t})}):null});P5.displayName=fu;var M5=Z.createSlot("DialogOverlay.RemoveScroll"),A5=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=zt(fu,r);return me.jsx(Sk,{as:M5,allowPinchZoom:!0,shards:[o.contentRef],children:me.jsx(lr.div,{"data-state":sv(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),rn="DialogContent",I5=i.forwardRef((e,t)=>{const r=Dk(rn,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=zt(rn,e.__scopeDialog);return me.jsx(ov,{present:n||a.open,children:a.modal?me.jsx(F5,{...o,ref:t}):me.jsx(L5,{...o,ref:t})})});I5.displayName=rn;var F5=i.forwardRef((e,t)=>{const r=zt(rn,e.__scopeDialog),n=i.useRef(null),o=En(t,r.contentRef,n);return i.useEffect(()=>{const a=n.current;if(a)return D5(a)},[]),me.jsx(_k,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Wr(e.onCloseAutoFocus,a=>{a.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:Wr(e.onPointerDownOutside,a=>{const c=a.detail.originalEvent,s=c.button===0&&c.ctrlKey===!0;(c.button===2||s)&&a.preventDefault()}),onFocusOutside:Wr(e.onFocusOutside,a=>a.preventDefault())})}),L5=i.forwardRef((e,t)=>{const r=zt(rn,e.__scopeDialog),n=i.useRef(!1),o=i.useRef(!1);return me.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=zt(rn,r),m=i.useRef(null),d=En(t,m);return B2(),me.jsxs(me.Fragment,{children:[me.jsx(gk,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:me.jsx(mk,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":sv(s.open),...c,ref:d,onDismiss:()=>s.onOpenChange(!1)})}),me.jsxs(me.Fragment,{children:[me.jsx(U5,{titleId:s.titleId}),me.jsx(B5,{contentRef:m,descriptionId:s.descriptionId})]})]})}),av="DialogTitle",W5=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=zt(av,r);return me.jsx(lr.h2,{id:o.titleId,...n,ref:t})});W5.displayName=av;var Ok="DialogDescription",z5=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=zt(Ok,r);return me.jsx(lr.p,{id:o.descriptionId,...n,ref:t})});z5.displayName=Ok;var Pk="DialogClose",$5=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=zt(Pk,r);return me.jsx(lr.button,{type:"button",...n,ref:t,onClick:Wr(e.onClick,()=>o.onOpenChange(!1))})});$5.displayName=Pk;function sv(e){return e?"open":"closed"}var Mk="DialogTitleWarning",[Wie,Ak]=b2(Mk,{contentName:rn,titleName:av,docsSlug:"dialog"}),U5=({titleId:e})=>{const t=Ak(Mk),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},Y5="DialogDescriptionWarning",B5=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Ak(Y5).contentName}}.`;return i.useEffect(()=>{const n=e.current?.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},vd={exports:{}},va={};/**
|
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 Ch;function K5(){if(Ch)return va;Ch=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 va.Fragment=t,va.jsx=r,va.jsxs=r,va}var Hs={};/**
|
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 V5(){return Sh||(Sh=1,process.env.NODE_ENV!=="production"&&(function(){function e(f){if(f==null)return null;if(typeof f=="function")return f.$$typeof===L?null:f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case l:return"Fragment";case y:return"Profiler";case g:return"StrictMode";case S:return"Suspense";case T:return"SuspenseList";case O:return"Activity"}if(typeof f=="object")switch(typeof f.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),f.$$typeof){case E:return"Portal";case w:return(f.displayName||"Context")+".Provider";case b:return(f._context.displayName||"Context")+".Consumer";case k:var x=f.render;return f=f.displayName,f||(f=x.displayName||x.name||"",f=f!==""?"ForwardRef("+f+")":"ForwardRef"),f;case C:return x=f.displayName||null,x!==null?x:e(f.type)||"Memo";case j:x=f._payload,f=f._init;try{return e(f(x))}catch{}}return null}function t(f){return""+f}function r(f){try{t(f);var x=!1}catch{x=!0}if(x){x=console;var R=x.error,D=typeof Symbol=="function"&&Symbol.toStringTag&&f[Symbol.toStringTag]||f.constructor.name||"Object";return R.call(x,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",D),t(f)}}function n(f){if(f===l)return"<>";if(typeof f=="object"&&f!==null&&f.$$typeof===j)return"<...>";try{var x=e(f);return x?"<"+x+">":"<...>"}catch{return"<...>"}}function o(){var f=I.A;return f===null?null:f.getOwner()}function a(){return Error("react-stack-top-frame")}function c(f){if(B.call(f,"key")){var x=Object.getOwnPropertyDescriptor(f,"key").get;if(x&&x.isReactWarning)return!1}return f.key!==void 0}function s(f,x){function R(){P||(P=!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))}R.isReactWarning=!0,Object.defineProperty(f,"key",{get:R,configurable:!0})}function m(){var f=e(this.type);return U[f]||(U[f]=!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.")),f=this.props.ref,f!==void 0?f:null}function d(f,x,R,D,F,A,G,H){return R=A.ref,f={$$typeof:h,type:f,key:x,props:A,_owner:F},(R!==void 0?R:null)!==null?Object.defineProperty(f,"ref",{enumerable:!1,get:m}):Object.defineProperty(f,"ref",{enumerable:!1,value:null}),f._store={},Object.defineProperty(f._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(f,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(f,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:G}),Object.defineProperty(f,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:H}),Object.freeze&&(Object.freeze(f.props),Object.freeze(f)),f}function u(f,x,R,D,F,A,G,H){var _=x.children;if(_!==void 0)if(D)if(K(_)){for(D=0;D<_.length;D++)p(_[D]);Object.freeze&&Object.freeze(_)}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(_);if(B.call(x,"key")){_=e(f);var W=Object.keys(x).filter(function(ce){return ce!=="key"});D=0<W.length?"{key: someKey, "+W.join(": ..., ")+": ...}":"{key: someKey}",X[_+D]||(W=0<W.length?"{"+W.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} />`,D,_,W,_),X[_+D]=!0)}if(_=null,R!==void 0&&(r(R),_=""+R),c(x)&&(r(x.key),_=""+x.key),"key"in x){R={};for(var q in x)q!=="key"&&(R[q]=x[q])}else R=x;return _&&s(R,typeof f=="function"?f.displayName||f.name||"Unknown":f),d(f,_,A,F,o(),R,G,H)}function p(f){typeof f=="object"&&f!==null&&f.$$typeof===h&&f._store&&(f._store.validated=1)}var v=M,h=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),g=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"),S=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),O=Symbol.for("react.activity"),L=Symbol.for("react.client.reference"),I=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=Object.prototype.hasOwnProperty,K=Array.isArray,$=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(f){return f()}};var P,U={},V=v.react_stack_bottom_frame.bind(v,a)(),Y=$(n(a)),X={};Hs.Fragment=l,Hs.jsx=function(f,x,R,D,F){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,x,R,!1,D,F,A?Error("react-stack-top-frame"):V,A?$(n(f)):Y)},Hs.jsxs=function(f,x,R,D,F){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,x,R,!0,D,F,A?Error("react-stack-top-frame"):V,A?$(n(f)):Y)}})()),Hs}var Rh;function H5(){return Rh||(Rh=1,process.env.NODE_ENV==="production"?vd.exports=K5():vd.exports=V5()),vd.exports}var ve=H5();M.createContext({locale:void 0});const X5={id:"",username:"",email:"",created_at:null,updated_at:null,features:[]};M.createContext({user:X5,isLoading:!0,fetchUser:async()=>{},logout:async()=>{},login:async()=>!1});ie.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"}});ie.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 zr(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),r===!1||!n.defaultPrevented)return t?.(n)}}function jh(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function G5(...e){return t=>{let r=!1;const n=e.map(o=>{const a=jh(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():jh(e[o],null)}}}}function kn(...e){return i.useCallback(G5(...e),e)}function q5(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 Z5(e,t=[]){let r=[];function n(a,c){const s=i.createContext(c),m=r.length;r=[...r,c];const d=p=>{const{scope:v,children:h,...E}=p,l=v?.[e]?.[m]||s,g=i.useMemo(()=>E,Object.values(E));return ve.jsx(l.Provider,{value:g,children:h})};d.displayName=a+"Provider";function u(p,v){const h=v?.[e]?.[m]||s,E=i.useContext(h);if(E)return E;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[d,u]}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,J5(o,...t)]}function J5(...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 d=s(o)[`__scope${m}`];return{...c,...d}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}var $p=globalThis?.document?i.useLayoutEffect:()=>{},Q5=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],dr=Q5.reduce((e,t)=>{const r=Z.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 eW(e,t){e&&ke.flushSync(()=>e.dispatchEvent(t))}function za(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...r)=>t.current?.(...r),[])}function tW(e,t=globalThis?.document){const r=za(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 rW="DismissableLayer",Up="dismissableLayer.update",nW="dismissableLayer.pointerDownOutside",oW="dismissableLayer.focusOutside",Nh,Ik=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,d=i.useContext(Ik),[u,p]=i.useState(null),v=u?.ownerDocument??globalThis?.document,[,h]=i.useState({}),E=kn(t,C=>p(C)),l=Array.from(d.layers),[g]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),y=l.indexOf(g),b=u?l.indexOf(u):-1,w=d.layersWithOutsidePointerEventsDisabled.size>0,k=b>=y,S=iW(C=>{const j=C.target,O=[...d.branches].some(L=>L.contains(j));!k||O||(o?.(C),c?.(C),C.defaultPrevented||s?.())},v),T=cW(C=>{const j=C.target;[...d.branches].some(O=>O.contains(j))||(a?.(C),c?.(C),C.defaultPrevented||s?.())},v);return tW(C=>{b===d.layers.size-1&&(n?.(C),!C.defaultPrevented&&s&&(C.preventDefault(),s()))},v),i.useEffect(()=>{if(u)return r&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Nh=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(u)),d.layers.add(u),Th(),()=>{r&&d.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=Nh)}},[u,v,r,d]),i.useEffect(()=>()=>{u&&(d.layers.delete(u),d.layersWithOutsidePointerEventsDisabled.delete(u),Th())},[u,d]),i.useEffect(()=>{const C=()=>h({});return document.addEventListener(Up,C),()=>document.removeEventListener(Up,C)},[]),ve.jsx(dr.div,{...m,ref:E,style:{pointerEvents:w?k?"auto":"none":void 0,...e.style},onFocusCapture:zr(e.onFocusCapture,T.onFocusCapture),onBlurCapture:zr(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:zr(e.onPointerDownCapture,S.onPointerDownCapture)})});Fk.displayName=rW;var aW="DismissableLayerBranch",sW=i.forwardRef((e,t)=>{const r=i.useContext(Ik),n=i.useRef(null),o=kn(t,n);return i.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),ve.jsx(dr.div,{...e,ref:o})});sW.displayName=aW;function iW(e,t=globalThis?.document){const r=za(e),n=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let m=function(){Lk(nW,r,d,{discrete:!0})};const d={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 cW(e,t=globalThis?.document){const r=za(e),n=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!n.current&&Lk(oW,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 Th(){const e=new CustomEvent(Up);document.dispatchEvent(e)}function Lk(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?eW(o,a):o.dispatchEvent(a)}var gd="focusScope.autoFocusOnMount",hd="focusScope.autoFocusOnUnmount",Dh={bubbles:!1,cancelable:!0},uW="FocusScope",Wk=i.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...c}=e,[s,m]=i.useState(null),d=za(o),u=za(a),p=i.useRef(null),v=kn(t,l=>m(l)),h=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(n){let l=function(w){if(h.paused||!s)return;const k=w.target;s.contains(k)?p.current=k:Er(p.current,{select:!0})},g=function(w){if(h.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",l),document.addEventListener("focusout",g);const b=new MutationObserver(y);return s&&b.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",l),document.removeEventListener("focusout",g),b.disconnect()}}},[n,s,h.paused]),i.useEffect(()=>{if(s){Oh.add(h);const l=document.activeElement;if(!s.contains(l)){const g=new CustomEvent(gd,Dh);s.addEventListener(gd,d),s.dispatchEvent(g),g.defaultPrevented||(lW(vW(zk(s)),{select:!0}),document.activeElement===l&&Er(s))}return()=>{s.removeEventListener(gd,d),setTimeout(()=>{const g=new CustomEvent(hd,Dh);s.addEventListener(hd,u),s.dispatchEvent(g),g.defaultPrevented||Er(l??document.body,{select:!0}),s.removeEventListener(hd,u),Oh.remove(h)},0)}}},[s,d,u,h]);const E=i.useCallback(l=>{if(!r&&!n||h.paused)return;const g=l.key==="Tab"&&!l.altKey&&!l.ctrlKey&&!l.metaKey,y=document.activeElement;if(g&&y){const b=l.currentTarget,[w,k]=dW(b);w&&k?!l.shiftKey&&y===k?(l.preventDefault(),r&&Er(w,{select:!0})):l.shiftKey&&y===w&&(l.preventDefault(),r&&Er(k,{select:!0})):y===b&&l.preventDefault()}},[r,n,h.paused]);return ve.jsx(dr.div,{tabIndex:-1,...c,ref:v,onKeyDown:E})});Wk.displayName=uW;function lW(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(Er(n,{select:t}),document.activeElement!==r)return}function dW(e){const t=zk(e),r=_h(t,e),n=_h(t.reverse(),e);return[r,n]}function zk(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 _h(e,t){for(const r of e)if(!fW(r,{upTo:t}))return r}function fW(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 pW(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&&pW(e)&&t&&e.select()}}var Oh=mW();function mW(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=Ph(e,t),e.unshift(t)},remove(t){e=Ph(e,t),e[0]?.resume()}}}function Ph(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function vW(e){return e.filter(t=>t.tagName!=="A")}var gW="Portal",hW=i.forwardRef((e,t)=>{const{container:r,...n}=e,[o,a]=i.useState(!1);$p(()=>a(!0),[]);const c=r||o&&globalThis?.document?.body;return c?Ee.createPortal(ve.jsx(dr.div,{...n,ref:t}),c):null});hW.displayName=gW;function yW(e,t){return i.useReducer((r,n)=>t[r][n]??r,e)}var iv=e=>{const{present:t,children:r}=e,n=bW(t),o=typeof r=="function"?r({present:n.isPresent}):i.Children.only(r),a=kn(n.ref,wW(o));return typeof r=="function"||n.isPresent?i.cloneElement(o,{ref:a}):null};iv.displayName="Presence";function bW(e){const[t,r]=i.useState(),n=i.useRef(null),o=i.useRef(e),a=i.useRef("none"),c=e?"mounted":"unmounted",[s,m]=yW(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const d=Xs(n.current);a.current=s==="mounted"?d:"none"},[s]),$p(()=>{const d=n.current,u=o.current;if(u!==e){const p=a.current,v=Xs(d);e?m("MOUNT"):v==="none"||d?.display==="none"?m("UNMOUNT"):m(u&&p!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,m]),$p(()=>{if(t){let d;const u=t.ownerDocument.defaultView??window,p=h=>{const E=Xs(n.current).includes(CSS.escape(h.animationName));if(h.target===t&&E&&(m("ANIMATION_END"),!o.current)){const l=t.style.animationFillMode;t.style.animationFillMode="forwards",d=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=l)})}},v=h=>{h.target===t&&(a.current=Xs(n.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{u.clearTimeout(d),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(d=>{n.current=d?getComputedStyle(d):null,r(d)},[])}}function Xs(e){return e?.animationName||"none"}function wW(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 yd=0;function xW(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Mh()),document.body.insertAdjacentElement("beforeend",e[1]??Mh()),yd++,()=>{yd===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),yd--}},[])}function Mh(){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 $k(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 EW(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 Tc="right-scroll-bar-position",Dc="width-before-scroll-bar",kW="with-scroll-bars-hidden",CW="--removed-body-scroll-bar-size";function bd(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function SW(e,t){var r=M.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 RW=typeof window<"u"?i.useLayoutEffect:i.useEffect,Ah=new WeakMap;function jW(e,t){var r=SW(null,function(n){return e.forEach(function(o){return bd(o,n)})});return RW(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)||bd(s,null)}),a.forEach(function(s){o.has(s)||bd(s,c)})}Ah.set(r,e)},[e]),r}function NW(e){return e}function TW(e,t){t===void 0&&(t=NW);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 u=c;c=[],u.forEach(a)},d=function(){return Promise.resolve().then(m)};d(),r={push:function(u){c.push(u),d()},filter:function(u){return c=c.filter(u),r}}}};return o}function DW(e){e===void 0&&(e={});var t=TW(null);return t.options=lt({async:!0,ssr:!1},e),t}var Uk=function(e){var t=e.sideCar,r=$k(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))};Uk.isSideCarExport=!0;function _W(e,t){return e.useMedium(t),Uk}var Yk=DW(),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,d=e.removeScrollBar,u=e.enabled,p=e.shards,v=e.sideCar,h=e.noRelative,E=e.noIsolation,l=e.inert,g=e.allowPinchZoom,y=e.as,b=y===void 0?"div":y,w=e.gapMode,k=$k(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=v,T=jW([r,t]),C=lt(lt({},k),o);return i.createElement(i.Fragment,null,u&&i.createElement(S,{sideCar:Yk,removeScrollBar:d,shards:p,noRelative:h,noIsolation:E,inert:l,setCallbacks:a,allowPinchZoom:!!g,lockRef:r,gapMode:w}),c?i.cloneElement(i.Children.only(s),lt(lt({},C),{ref:T})):i.createElement(b,lt({},C,{className:m,ref:T}),s))});Wu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Wu.classNames={fullWidth:Dc,zeroRight:Tc};var OW=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function PW(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=OW();return t&&e.setAttribute("nonce",t),e}function MW(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function AW(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var IW=function(){var e=0,t=null;return{add:function(r){e==0&&(t=PW())&&(MW(t,r),AW(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},FW=function(){var e=IW();return function(t,r){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Bk=function(){var e=FW(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},LW={left:0,top:0,right:0,gap:0},xd=function(e){return parseInt(e||"",10)||0},WW=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[xd(r),xd(n),xd(o)]},zW=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return LW;var t=WW(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])}},$W=Bk(),Ao="data-scroll-locked",UW=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(kW,` {
|
307
|
-
overflow: hidden `).concat(n,`;
|
308
|
-
padding-right: `).concat(s,"px ").concat(n,`;
|
309
|
-
}
|
310
|
-
body[`).concat(Ao,`] {
|
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(Tc,` {
|
324
|
-
right: `).concat(s,"px ").concat(n,`;
|
325
|
-
}
|
326
|
-
|
327
|
-
.`).concat(Dc,` {
|
328
|
-
margin-right: `).concat(s,"px ").concat(n,`;
|
329
|
-
}
|
330
|
-
|
331
|
-
.`).concat(Tc," .").concat(Tc,` {
|
332
|
-
right: 0 `).concat(n,`;
|
333
|
-
}
|
334
|
-
|
335
|
-
.`).concat(Dc," .").concat(Dc,` {
|
336
|
-
margin-right: 0 `).concat(n,`;
|
337
|
-
}
|
338
|
-
|
339
|
-
body[`).concat(Ao,`] {
|
340
|
-
`).concat(CW,": ").concat(s,`px;
|
341
|
-
}
|
342
|
-
`)},Ih=function(){var e=parseInt(document.body.getAttribute(Ao)||"0",10);return isFinite(e)?e:0},YW=function(){i.useEffect(function(){return document.body.setAttribute(Ao,(Ih()+1).toString()),function(){var e=Ih()-1;e<=0?document.body.removeAttribute(Ao):document.body.setAttribute(Ao,e.toString())}},[])},BW=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;YW();var a=i.useMemo(function(){return zW(o)},[o]);return i.createElement($W,{styles:UW(a,!t,o,r?"":"!important")})},Yp=!1;if(typeof window<"u")try{var Gs=Object.defineProperty({},"passive",{get:function(){return Yp=!0,!0}});window.addEventListener("test",Gs,Gs),window.removeEventListener("test",Gs,Gs)}catch{Yp=!1}var Yn=Yp?{passive:!1}:!1,KW=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&&!KW(e)&&r[t]==="visible")},VW=function(e){return Kk(e,"overflowY")},HW=function(e){return Kk(e,"overflowX")},Fh=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=Vk(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},XW=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},GW=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},Vk=function(e,t){return e==="v"?VW(t):HW(t)},Hk=function(e,t){return e==="v"?XW(t):GW(t)},qW=function(e,t){return e==="h"&&t==="rtl"?-1:1},ZW=function(e,t,r,n,o){var a=qW(e,window.getComputedStyle(t).direction),c=a*n,s=r.target,m=t.contains(s),d=!1,u=c>0,p=0,v=0;do{if(!s)break;var h=Hk(e,s),E=h[0],l=h[1],g=h[2],y=l-g-a*E;(E||y)&&Vk(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(u&&Math.abs(p)<1||!u&&Math.abs(v)<1)&&(d=!0),d},qs=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Lh=function(e){return[e.deltaX,e.deltaY]},Wh=function(e){return e&&"current"in e?e.current:e},JW=function(e,t){return e[0]===t[0]&&e[1]===t[1]},QW=function(e){return`
|
343
|
-
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
344
|
-
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
345
|
-
`)},ez=0,Bn=[];function tz(e){var t=i.useRef([]),r=i.useRef([0,0]),n=i.useRef(),o=i.useState(ez++)[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 l=EW([e.lockRef.current],(e.shards||[]).map(Wh)).filter(Boolean);return l.forEach(function(g){return g.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),l.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=i.useCallback(function(l,g){if("touches"in l&&l.touches.length===2||l.type==="wheel"&&l.ctrlKey)return!c.current.allowPinchZoom;var y=qs(l),b=r.current,w="deltaX"in l?l.deltaX:b[0]-y[0],k="deltaY"in l?l.deltaY:b[1]-y[1],S,T=l.target,C=Math.abs(w)>Math.abs(k)?"h":"v";if("touches"in l&&C==="h"&&T.type==="range")return!1;var j=Fh(C,T);if(!j)return!0;if(j?S=C:(S=C==="v"?"h":"v",j=Fh(C,T)),!j)return!1;if(!n.current&&"changedTouches"in l&&(w||k)&&(n.current=S),!S)return!0;var O=n.current||S;return ZW(O,g,l,O==="h"?w:k)},[]),m=i.useCallback(function(l){var g=l;if(!(!Bn.length||Bn[Bn.length-1]!==a)){var y="deltaY"in g?Lh(g):qs(g),b=t.current.filter(function(S){return S.name===g.type&&(S.target===g.target||g.target===S.shadowParent)&&JW(S.delta,y)})[0];if(b&&b.should){g.cancelable&&g.preventDefault();return}if(!b){var w=(c.current.shards||[]).map(Wh).filter(Boolean).filter(function(S){return S.contains(g.target)}),k=w.length>0?s(g,w[0]):!c.current.noIsolation;k&&g.cancelable&&g.preventDefault()}}},[]),d=i.useCallback(function(l,g,y,b){var w={name:l,delta:g,target:y,should:b,shadowParent:rz(y)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(k){return k!==w})},1)},[]),u=i.useCallback(function(l){r.current=qs(l),n.current=void 0},[]),p=i.useCallback(function(l){d(l.type,Lh(l),l.target,s(l,e.lockRef.current))},[]),v=i.useCallback(function(l){d(l.type,qs(l),l.target,s(l,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",u,Yn),function(){Bn=Bn.filter(function(l){return l!==a}),document.removeEventListener("wheel",m,Yn),document.removeEventListener("touchmove",m,Yn),document.removeEventListener("touchstart",u,Yn)}},[]);var h=e.removeScrollBar,E=e.inert;return i.createElement(i.Fragment,null,E?i.createElement(a,{styles:QW(o)}):null,h?i.createElement(BW,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function rz(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const nz=_W(Yk,tz);var Xk=i.forwardRef(function(e,t){return i.createElement(Wu,lt({},e,{ref:t,sideCar:nz}))});Xk.classNames=Wu.classNames;var oz=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Kn=new WeakMap,Zs=new WeakMap,Js={},Ed=0,Gk=function(e){return e&&(e.host||Gk(e.parentNode))},az=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=Gk(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})},sz=function(e,t,r,n){var o=az(t,Array.isArray(e)?e:[e]);Js[r]||(Js[r]=new WeakMap);var a=Js[r],c=[],s=new Set,m=new Set(o),d=function(p){!p||s.has(p)||(s.add(p),d(p.parentNode))};o.forEach(d);var u=function(p){!p||m.has(p)||Array.prototype.forEach.call(p.children,function(v){if(s.has(v))u(v);else try{var h=v.getAttribute(n),E=h!==null&&h!=="false",l=(Kn.get(v)||0)+1,g=(a.get(v)||0)+1;Kn.set(v,l),a.set(v,g),c.push(v),l===1&&E&&Zs.set(v,!0),g===1&&v.setAttribute(r,"true"),E||v.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",v,y)}})};return u(t),s.clear(),Ed++,function(){c.forEach(function(p){var v=Kn.get(p)-1,h=a.get(p)-1;Kn.set(p,v),a.set(p,h),v||(Zs.has(p)||p.removeAttribute(n),Zs.delete(p)),h||p.removeAttribute(r)}),Ed--,Ed||(Kn=new WeakMap,Kn=new WeakMap,Zs=new WeakMap,Js={})}},iz=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=oz(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),sz(n,o,r,"aria-hidden")):function(){return null}},qk="Dialog",[Zk]=Z5(qk),[zie,$t]=Zk(qk),Jk="DialogTrigger",cz=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=$t(Jk,r),a=kn(t,o.triggerRef);return ve.jsx(dr.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":uv(o.open),...n,ref:a,onClick:zr(e.onClick,o.onOpenToggle)})});cz.displayName=Jk;var uz="DialogPortal",[$ie,Qk]=Zk(uz,{forceMount:void 0}),pu="DialogOverlay",lz=i.forwardRef((e,t)=>{const r=Qk(pu,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=$t(pu,e.__scopeDialog);return a.modal?ve.jsx(iv,{present:n||a.open,children:ve.jsx(fz,{...o,ref:t})}):null});lz.displayName=pu;var dz=Z.createSlot("DialogOverlay.RemoveScroll"),fz=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=$t(pu,r);return ve.jsx(Xk,{as:dz,allowPinchZoom:!0,shards:[o.contentRef],children:ve.jsx(dr.div,{"data-state":uv(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),nn="DialogContent",pz=i.forwardRef((e,t)=>{const r=Qk(nn,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=$t(nn,e.__scopeDialog);return ve.jsx(iv,{present:n||a.open,children:a.modal?ve.jsx(mz,{...o,ref:t}):ve.jsx(vz,{...o,ref:t})})});pz.displayName=nn;var mz=i.forwardRef((e,t)=>{const r=$t(nn,e.__scopeDialog),n=i.useRef(null),o=kn(t,r.contentRef,n);return i.useEffect(()=>{const a=n.current;if(a)return iz(a)},[]),ve.jsx(eC,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:zr(e.onCloseAutoFocus,a=>{a.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:zr(e.onPointerDownOutside,a=>{const c=a.detail.originalEvent,s=c.button===0&&c.ctrlKey===!0;(c.button===2||s)&&a.preventDefault()}),onFocusOutside:zr(e.onFocusOutside,a=>a.preventDefault())})}),vz=i.forwardRef((e,t)=>{const r=$t(nn,e.__scopeDialog),n=i.useRef(!1),o=i.useRef(!1);return ve.jsx(eC,{...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()}})}),eC=i.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...c}=e,s=$t(nn,r),m=i.useRef(null),d=kn(t,m);return xW(),ve.jsxs(ve.Fragment,{children:[ve.jsx(Wk,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:ve.jsx(Fk,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":uv(s.open),...c,ref:d,onDismiss:()=>s.onOpenChange(!1)})}),ve.jsxs(ve.Fragment,{children:[ve.jsx(bz,{titleId:s.titleId}),ve.jsx(xz,{contentRef:m,descriptionId:s.descriptionId})]})]})}),cv="DialogTitle",gz=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=$t(cv,r);return ve.jsx(dr.h2,{id:o.titleId,...n,ref:t})});gz.displayName=cv;var tC="DialogDescription",hz=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=$t(tC,r);return ve.jsx(dr.p,{id:o.descriptionId,...n,ref:t})});hz.displayName=tC;var rC="DialogClose",yz=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=$t(rC,r);return ve.jsx(dr.button,{type:"button",...n,ref:t,onClick:zr(e.onClick,()=>o.onOpenChange(!1))})});yz.displayName=rC;function uv(e){return e?"open":"closed"}var nC="DialogTitleWarning",[Uie,oC]=q5(nC,{contentName:nn,titleName:cv,docsSlug:"dialog"}),bz=({titleId:e})=>{const t=oC(nC),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},wz="DialogDescriptionWarning",xz=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${oC(wz).contentName}}.`;return i.useEffect(()=>{const n=e.current?.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},kd={exports:{}},ga={};/**
|
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 zh;function Ez(){if(zh)return ga;zh=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 ga.Fragment=t,ga.jsx=r,ga.jsxs=r,ga}var Qs={};/**
|
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 kz(){return $h||($h=1,process.env.NODE_ENV!=="production"&&(function(){function e(f){if(f==null)return null;if(typeof f=="function")return f.$$typeof===L?null:f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case l:return"Fragment";case y:return"Profiler";case g:return"StrictMode";case S:return"Suspense";case T:return"SuspenseList";case O:return"Activity"}if(typeof f=="object")switch(typeof f.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),f.$$typeof){case E:return"Portal";case w:return(f.displayName||"Context")+".Provider";case b:return(f._context.displayName||"Context")+".Consumer";case k:var x=f.render;return f=f.displayName,f||(f=x.displayName||x.name||"",f=f!==""?"ForwardRef("+f+")":"ForwardRef"),f;case C:return x=f.displayName||null,x!==null?x:e(f.type)||"Memo";case j:x=f._payload,f=f._init;try{return e(f(x))}catch{}}return null}function t(f){return""+f}function r(f){try{t(f);var x=!1}catch{x=!0}if(x){x=console;var R=x.error,D=typeof Symbol=="function"&&Symbol.toStringTag&&f[Symbol.toStringTag]||f.constructor.name||"Object";return R.call(x,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",D),t(f)}}function n(f){if(f===l)return"<>";if(typeof f=="object"&&f!==null&&f.$$typeof===j)return"<...>";try{var x=e(f);return x?"<"+x+">":"<...>"}catch{return"<...>"}}function o(){var f=I.A;return f===null?null:f.getOwner()}function a(){return Error("react-stack-top-frame")}function c(f){if(B.call(f,"key")){var x=Object.getOwnPropertyDescriptor(f,"key").get;if(x&&x.isReactWarning)return!1}return f.key!==void 0}function s(f,x){function R(){P||(P=!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))}R.isReactWarning=!0,Object.defineProperty(f,"key",{get:R,configurable:!0})}function m(){var f=e(this.type);return U[f]||(U[f]=!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.")),f=this.props.ref,f!==void 0?f:null}function d(f,x,R,D,F,A,G,H){return R=A.ref,f={$$typeof:h,type:f,key:x,props:A,_owner:F},(R!==void 0?R:null)!==null?Object.defineProperty(f,"ref",{enumerable:!1,get:m}):Object.defineProperty(f,"ref",{enumerable:!1,value:null}),f._store={},Object.defineProperty(f._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(f,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(f,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:G}),Object.defineProperty(f,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:H}),Object.freeze&&(Object.freeze(f.props),Object.freeze(f)),f}function u(f,x,R,D,F,A,G,H){var _=x.children;if(_!==void 0)if(D)if(K(_)){for(D=0;D<_.length;D++)p(_[D]);Object.freeze&&Object.freeze(_)}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(_);if(B.call(x,"key")){_=e(f);var W=Object.keys(x).filter(function(ce){return ce!=="key"});D=0<W.length?"{key: someKey, "+W.join(": ..., ")+": ...}":"{key: someKey}",X[_+D]||(W=0<W.length?"{"+W.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} />`,D,_,W,_),X[_+D]=!0)}if(_=null,R!==void 0&&(r(R),_=""+R),c(x)&&(r(x.key),_=""+x.key),"key"in x){R={};for(var q in x)q!=="key"&&(R[q]=x[q])}else R=x;return _&&s(R,typeof f=="function"?f.displayName||f.name||"Unknown":f),d(f,_,A,F,o(),R,G,H)}function p(f){typeof f=="object"&&f!==null&&f.$$typeof===h&&f._store&&(f._store.validated=1)}var v=M,h=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),g=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"),S=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),O=Symbol.for("react.activity"),L=Symbol.for("react.client.reference"),I=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=Object.prototype.hasOwnProperty,K=Array.isArray,$=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(f){return f()}};var P,U={},V=v.react_stack_bottom_frame.bind(v,a)(),Y=$(n(a)),X={};Qs.Fragment=l,Qs.jsx=function(f,x,R,D,F){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,x,R,!1,D,F,A?Error("react-stack-top-frame"):V,A?$(n(f)):Y)},Qs.jsxs=function(f,x,R,D,F){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,x,R,!0,D,F,A?Error("react-stack-top-frame"):V,A?$(n(f)):Y)}})()),Qs}var Uh;function Cz(){return Uh||(Uh=1,process.env.NODE_ENV==="production"?kd.exports=Ez():kd.exports=kz()),kd.exports}var ge=Cz();M.createContext({locale:void 0});ie.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"}});ie.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 Yh(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Sz(...e){return t=>{let r=!1;const n=e.map(o=>{const a=Yh(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():Yh(e[o],null)}}}}function Cn(...e){return i.useCallback(Sz(...e),e)}function Rz(e,t){const r=i.createContext(t),n=a=>{const{children:c,...s}=a,m=i.useMemo(()=>s,Object.values(s));return ge.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 jz(e,t=[]){let r=[];function n(a,c){const s=i.createContext(c),m=r.length;r=[...r,c];const d=p=>{const{scope:v,children:h,...E}=p,l=v?.[e]?.[m]||s,g=i.useMemo(()=>E,Object.values(E));return ge.jsx(l.Provider,{value:g,children:h})};d.displayName=a+"Provider";function u(p,v){const h=v?.[e]?.[m]||s,E=i.useContext(h);if(E)return E;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[d,u]}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,Nz(o,...t)]}function Nz(...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 d=s(o)[`__scope${m}`];return{...c,...d}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}var Bp=globalThis?.document?i.useLayoutEffect:()=>{},Tz=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],fr=Tz.reduce((e,t)=>{const r=Z.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),ge.jsx(m,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Dz(e,t){e&&ke.flushSync(()=>e.dispatchEvent(t))}function $a(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...r)=>t.current?.(...r),[])}function _z(e,t=globalThis?.document){const r=$a(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 Oz="DismissableLayer",Kp="dismissableLayer.update",Pz="dismissableLayer.pointerDownOutside",Mz="dismissableLayer.focusOutside",Bh,aC=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),sC=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:c,onDismiss:s,...m}=e,d=i.useContext(aC),[u,p]=i.useState(null),v=u?.ownerDocument??globalThis?.document,[,h]=i.useState({}),E=Cn(t,C=>p(C)),l=Array.from(d.layers),[g]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),y=l.indexOf(g),b=u?l.indexOf(u):-1,w=d.layersWithOutsidePointerEventsDisabled.size>0,k=b>=y,S=Fz(C=>{const j=C.target,O=[...d.branches].some(L=>L.contains(j));!k||O||(o?.(C),c?.(C),C.defaultPrevented||s?.())},v),T=Lz(C=>{const j=C.target;[...d.branches].some(O=>O.contains(j))||(a?.(C),c?.(C),C.defaultPrevented||s?.())},v);return _z(C=>{b===d.layers.size-1&&(n?.(C),!C.defaultPrevented&&s&&(C.preventDefault(),s()))},v),i.useEffect(()=>{if(u)return r&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Bh=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(u)),d.layers.add(u),Kh(),()=>{r&&d.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=Bh)}},[u,v,r,d]),i.useEffect(()=>()=>{u&&(d.layers.delete(u),d.layersWithOutsidePointerEventsDisabled.delete(u),Kh())},[u,d]),i.useEffect(()=>{const C=()=>h({});return document.addEventListener(Kp,C),()=>document.removeEventListener(Kp,C)},[]),ge.jsx(fr.div,{...m,ref:E,style:{pointerEvents:w?k?"auto":"none":void 0,...e.style},onFocusCapture:$r(e.onFocusCapture,T.onFocusCapture),onBlurCapture:$r(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:$r(e.onPointerDownCapture,S.onPointerDownCapture)})});sC.displayName=Oz;var Az="DismissableLayerBranch",Iz=i.forwardRef((e,t)=>{const r=i.useContext(aC),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]),ge.jsx(fr.div,{...e,ref:o})});Iz.displayName=Az;function Fz(e,t=globalThis?.document){const r=$a(e),n=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let m=function(){iC(Pz,r,d,{discrete:!0})};const d={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 Lz(e,t=globalThis?.document){const r=$a(e),n=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!n.current&&iC(Mz,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 Kh(){const e=new CustomEvent(Kp);document.dispatchEvent(e)}function iC(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?Dz(o,a):o.dispatchEvent(a)}var Cd="focusScope.autoFocusOnMount",Sd="focusScope.autoFocusOnUnmount",Vh={bubbles:!1,cancelable:!0},Wz="FocusScope",cC=i.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...c}=e,[s,m]=i.useState(null),d=$a(o),u=$a(a),p=i.useRef(null),v=Cn(t,l=>m(l)),h=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(n){let l=function(w){if(h.paused||!s)return;const k=w.target;s.contains(k)?p.current=k:kr(p.current,{select:!0})},g=function(w){if(h.paused||!s)return;const k=w.relatedTarget;k!==null&&(s.contains(k)||kr(p.current,{select:!0}))},y=function(w){if(document.activeElement===document.body)for(const k of w)k.removedNodes.length>0&&kr(s)};document.addEventListener("focusin",l),document.addEventListener("focusout",g);const b=new MutationObserver(y);return s&&b.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",l),document.removeEventListener("focusout",g),b.disconnect()}}},[n,s,h.paused]),i.useEffect(()=>{if(s){Xh.add(h);const l=document.activeElement;if(!s.contains(l)){const g=new CustomEvent(Cd,Vh);s.addEventListener(Cd,d),s.dispatchEvent(g),g.defaultPrevented||(zz(Kz(uC(s)),{select:!0}),document.activeElement===l&&kr(s))}return()=>{s.removeEventListener(Cd,d),setTimeout(()=>{const g=new CustomEvent(Sd,Vh);s.addEventListener(Sd,u),s.dispatchEvent(g),g.defaultPrevented||kr(l??document.body,{select:!0}),s.removeEventListener(Sd,u),Xh.remove(h)},0)}}},[s,d,u,h]);const E=i.useCallback(l=>{if(!r&&!n||h.paused)return;const g=l.key==="Tab"&&!l.altKey&&!l.ctrlKey&&!l.metaKey,y=document.activeElement;if(g&&y){const b=l.currentTarget,[w,k]=$z(b);w&&k?!l.shiftKey&&y===k?(l.preventDefault(),r&&kr(w,{select:!0})):l.shiftKey&&y===w&&(l.preventDefault(),r&&kr(k,{select:!0})):y===b&&l.preventDefault()}},[r,n,h.paused]);return ge.jsx(fr.div,{tabIndex:-1,...c,ref:v,onKeyDown:E})});cC.displayName=Wz;function zz(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(kr(n,{select:t}),document.activeElement!==r)return}function $z(e){const t=uC(e),r=Hh(t,e),n=Hh(t.reverse(),e);return[r,n]}function uC(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 Hh(e,t){for(const r of e)if(!Uz(r,{upTo:t}))return r}function Uz(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 Yz(e){return e instanceof HTMLInputElement&&"select"in e}function kr(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&Yz(e)&&t&&e.select()}}var Xh=Bz();function Bz(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=Gh(e,t),e.unshift(t)},remove(t){e=Gh(e,t),e[0]?.resume()}}}function Gh(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function Kz(e){return e.filter(t=>t.tagName!=="A")}var Vz="Portal",Hz=i.forwardRef((e,t)=>{const{container:r,...n}=e,[o,a]=i.useState(!1);Bp(()=>a(!0),[]);const c=r||o&&globalThis?.document?.body;return c?Ee.createPortal(ge.jsx(fr.div,{...n,ref:t}),c):null});Hz.displayName=Vz;function Xz(e,t){return i.useReducer((r,n)=>t[r][n]??r,e)}var lv=e=>{const{present:t,children:r}=e,n=Gz(t),o=typeof r=="function"?r({present:n.isPresent}):i.Children.only(r),a=Cn(n.ref,qz(o));return typeof r=="function"||n.isPresent?i.cloneElement(o,{ref:a}):null};lv.displayName="Presence";function Gz(e){const[t,r]=i.useState(),n=i.useRef(null),o=i.useRef(e),a=i.useRef("none"),c=e?"mounted":"unmounted",[s,m]=Xz(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const d=ei(n.current);a.current=s==="mounted"?d:"none"},[s]),Bp(()=>{const d=n.current,u=o.current;if(u!==e){const p=a.current,v=ei(d);e?m("MOUNT"):v==="none"||d?.display==="none"?m("UNMOUNT"):m(u&&p!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,m]),Bp(()=>{if(t){let d;const u=t.ownerDocument.defaultView??window,p=h=>{const E=ei(n.current).includes(CSS.escape(h.animationName));if(h.target===t&&E&&(m("ANIMATION_END"),!o.current)){const l=t.style.animationFillMode;t.style.animationFillMode="forwards",d=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=l)})}},v=h=>{h.target===t&&(a.current=ei(n.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{u.clearTimeout(d),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(d=>{n.current=d?getComputedStyle(d):null,r(d)},[])}}function ei(e){return e?.animationName||"none"}function qz(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 Rd=0;function Zz(){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()),Rd++,()=>{Rd===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Rd--}},[])}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 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 lC(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 Jz(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",Oc="width-before-scroll-bar",Qz="with-scroll-bars-hidden",e$="--removed-body-scroll-bar-size";function jd(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function t$(e,t){var r=M.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 r$=typeof window<"u"?i.useLayoutEffect:i.useEffect,Zh=new WeakMap;function n$(e,t){var r=t$(null,function(n){return e.forEach(function(o){return jd(o,n)})});return r$(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)||jd(s,null)}),a.forEach(function(s){o.has(s)||jd(s,c)})}Zh.set(r,e)},[e]),r}function o$(e){return e}function a$(e,t){t===void 0&&(t=o$);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 u=c;c=[],u.forEach(a)},d=function(){return Promise.resolve().then(m)};d(),r={push:function(u){c.push(u),d()},filter:function(u){return c=c.filter(u),r}}}};return o}function s$(e){e===void 0&&(e={});var t=a$(null);return t.options=dt({async:!0,ssr:!1},e),t}var dC=function(e){var t=e.sideCar,r=lC(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))};dC.isSideCarExport=!0;function i$(e,t){return e.useMedium(t),dC}var fC=s$(),Nd=function(){},zu=i.forwardRef(function(e,t){var r=i.useRef(null),n=i.useState({onScrollCapture:Nd,onWheelCapture:Nd,onTouchMoveCapture:Nd}),o=n[0],a=n[1],c=e.forwardProps,s=e.children,m=e.className,d=e.removeScrollBar,u=e.enabled,p=e.shards,v=e.sideCar,h=e.noRelative,E=e.noIsolation,l=e.inert,g=e.allowPinchZoom,y=e.as,b=y===void 0?"div":y,w=e.gapMode,k=lC(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=v,T=n$([r,t]),C=dt(dt({},k),o);return i.createElement(i.Fragment,null,u&&i.createElement(S,{sideCar:fC,removeScrollBar:d,shards:p,noRelative:h,noIsolation:E,inert:l,setCallbacks:a,allowPinchZoom:!!g,lockRef:r,gapMode:w}),c?i.cloneElement(i.Children.only(s),dt(dt({},C),{ref:T})):i.createElement(b,dt({},C,{className:m,ref:T}),s))});zu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};zu.classNames={fullWidth:Oc,zeroRight:_c};var c$=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function u$(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=c$();return t&&e.setAttribute("nonce",t),e}function l$(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function d$(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var f$=function(){var e=0,t=null;return{add:function(r){e==0&&(t=u$())&&(l$(t,r),d$(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},p$=function(){var e=f$();return function(t,r){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},pC=function(){var e=p$(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},m$={left:0,top:0,right:0,gap:0},Td=function(e){return parseInt(e||"",10)||0},v$=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[Td(r),Td(n),Td(o)]},g$=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return m$;var t=v$(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])}},h$=pC(),Io="data-scroll-locked",y$=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(Qz,` {
|
372
|
-
overflow: hidden `).concat(n,`;
|
373
|
-
padding-right: `).concat(s,"px ").concat(n,`;
|
374
|
-
}
|
375
|
-
body[`).concat(Io,`] {
|
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(_c,` {
|
389
|
-
right: `).concat(s,"px ").concat(n,`;
|
390
|
-
}
|
391
|
-
|
392
|
-
.`).concat(Oc,` {
|
393
|
-
margin-right: `).concat(s,"px ").concat(n,`;
|
394
|
-
}
|
395
|
-
|
396
|
-
.`).concat(_c," .").concat(_c,` {
|
397
|
-
right: 0 `).concat(n,`;
|
398
|
-
}
|
399
|
-
|
400
|
-
.`).concat(Oc," .").concat(Oc,` {
|
401
|
-
margin-right: 0 `).concat(n,`;
|
402
|
-
}
|
403
|
-
|
404
|
-
body[`).concat(Io,`] {
|
405
|
-
`).concat(e$,": ").concat(s,`px;
|
406
|
-
}
|
407
|
-
`)},Jh=function(){var e=parseInt(document.body.getAttribute(Io)||"0",10);return isFinite(e)?e:0},b$=function(){i.useEffect(function(){return document.body.setAttribute(Io,(Jh()+1).toString()),function(){var e=Jh()-1;e<=0?document.body.removeAttribute(Io):document.body.setAttribute(Io,e.toString())}},[])},w$=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;b$();var a=i.useMemo(function(){return g$(o)},[o]);return i.createElement(h$,{styles:y$(a,!t,o,r?"":"!important")})},Vp=!1;if(typeof window<"u")try{var ti=Object.defineProperty({},"passive",{get:function(){return Vp=!0,!0}});window.addEventListener("test",ti,ti),window.removeEventListener("test",ti,ti)}catch{Vp=!1}var Vn=Vp?{passive:!1}:!1,x$=function(e){return e.tagName==="TEXTAREA"},mC=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!x$(e)&&r[t]==="visible")},E$=function(e){return mC(e,"overflowY")},k$=function(e){return mC(e,"overflowX")},Qh=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=vC(e,n);if(o){var a=gC(e,n),c=a[1],s=a[2];if(c>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},C$=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},S$=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},vC=function(e,t){return e==="v"?E$(t):k$(t)},gC=function(e,t){return e==="v"?C$(t):S$(t)},R$=function(e,t){return e==="h"&&t==="rtl"?-1:1},j$=function(e,t,r,n,o){var a=R$(e,window.getComputedStyle(t).direction),c=a*n,s=r.target,m=t.contains(s),d=!1,u=c>0,p=0,v=0;do{if(!s)break;var h=gC(e,s),E=h[0],l=h[1],g=h[2],y=l-g-a*E;(E||y)&&vC(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(u&&Math.abs(p)<1||!u&&Math.abs(v)<1)&&(d=!0),d},ri=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ey=function(e){return[e.deltaX,e.deltaY]},ty=function(e){return e&&"current"in e?e.current:e},N$=function(e,t){return e[0]===t[0]&&e[1]===t[1]},T$=function(e){return`
|
408
|
-
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
409
|
-
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
410
|
-
`)},D$=0,Hn=[];function _$(e){var t=i.useRef([]),r=i.useRef([0,0]),n=i.useRef(),o=i.useState(D$++)[0],a=i.useState(pC)[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 l=Jz([e.lockRef.current],(e.shards||[]).map(ty)).filter(Boolean);return l.forEach(function(g){return g.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),l.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=i.useCallback(function(l,g){if("touches"in l&&l.touches.length===2||l.type==="wheel"&&l.ctrlKey)return!c.current.allowPinchZoom;var y=ri(l),b=r.current,w="deltaX"in l?l.deltaX:b[0]-y[0],k="deltaY"in l?l.deltaY:b[1]-y[1],S,T=l.target,C=Math.abs(w)>Math.abs(k)?"h":"v";if("touches"in l&&C==="h"&&T.type==="range")return!1;var j=Qh(C,T);if(!j)return!0;if(j?S=C:(S=C==="v"?"h":"v",j=Qh(C,T)),!j)return!1;if(!n.current&&"changedTouches"in l&&(w||k)&&(n.current=S),!S)return!0;var O=n.current||S;return j$(O,g,l,O==="h"?w:k)},[]),m=i.useCallback(function(l){var g=l;if(!(!Hn.length||Hn[Hn.length-1]!==a)){var y="deltaY"in g?ey(g):ri(g),b=t.current.filter(function(S){return S.name===g.type&&(S.target===g.target||g.target===S.shadowParent)&&N$(S.delta,y)})[0];if(b&&b.should){g.cancelable&&g.preventDefault();return}if(!b){var w=(c.current.shards||[]).map(ty).filter(Boolean).filter(function(S){return S.contains(g.target)}),k=w.length>0?s(g,w[0]):!c.current.noIsolation;k&&g.cancelable&&g.preventDefault()}}},[]),d=i.useCallback(function(l,g,y,b){var w={name:l,delta:g,target:y,should:b,shadowParent:O$(y)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(k){return k!==w})},1)},[]),u=i.useCallback(function(l){r.current=ri(l),n.current=void 0},[]),p=i.useCallback(function(l){d(l.type,ey(l),l.target,s(l,e.lockRef.current))},[]),v=i.useCallback(function(l){d(l.type,ri(l),l.target,s(l,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",u,Vn),function(){Hn=Hn.filter(function(l){return l!==a}),document.removeEventListener("wheel",m,Vn),document.removeEventListener("touchmove",m,Vn),document.removeEventListener("touchstart",u,Vn)}},[]);var h=e.removeScrollBar,E=e.inert;return i.createElement(i.Fragment,null,E?i.createElement(a,{styles:T$(o)}):null,h?i.createElement(w$,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function O$(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const P$=i$(fC,_$);var hC=i.forwardRef(function(e,t){return i.createElement(zu,dt({},e,{ref:t,sideCar:P$}))});hC.classNames=zu.classNames;var M$=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Xn=new WeakMap,ni=new WeakMap,oi={},Dd=0,yC=function(e){return e&&(e.host||yC(e.parentNode))},A$=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=yC(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})},I$=function(e,t,r,n){var o=A$(t,Array.isArray(e)?e:[e]);oi[r]||(oi[r]=new WeakMap);var a=oi[r],c=[],s=new Set,m=new Set(o),d=function(p){!p||s.has(p)||(s.add(p),d(p.parentNode))};o.forEach(d);var u=function(p){!p||m.has(p)||Array.prototype.forEach.call(p.children,function(v){if(s.has(v))u(v);else try{var h=v.getAttribute(n),E=h!==null&&h!=="false",l=(Xn.get(v)||0)+1,g=(a.get(v)||0)+1;Xn.set(v,l),a.set(v,g),c.push(v),l===1&&E&&ni.set(v,!0),g===1&&v.setAttribute(r,"true"),E||v.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",v,y)}})};return u(t),s.clear(),Dd++,function(){c.forEach(function(p){var v=Xn.get(p)-1,h=a.get(p)-1;Xn.set(p,v),a.set(p,h),v||(ni.has(p)||p.removeAttribute(n),ni.delete(p)),h||p.removeAttribute(r)}),Dd--,Dd||(Xn=new WeakMap,Xn=new WeakMap,ni=new WeakMap,oi={})}},F$=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=M$(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),I$(n,o,r,"aria-hidden")):function(){return null}},bC="Dialog",[wC]=jz(bC),[Yie,Ut]=wC(bC),xC="DialogTrigger",L$=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ut(xC,r),a=Cn(t,o.triggerRef);return ge.jsx(fr.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":fv(o.open),...n,ref:a,onClick:$r(e.onClick,o.onOpenToggle)})});L$.displayName=xC;var W$="DialogPortal",[Bie,EC]=wC(W$,{forceMount:void 0}),mu="DialogOverlay",z$=i.forwardRef((e,t)=>{const r=EC(mu,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Ut(mu,e.__scopeDialog);return a.modal?ge.jsx(lv,{present:n||a.open,children:ge.jsx(U$,{...o,ref:t})}):null});z$.displayName=mu;var $$=Z.createSlot("DialogOverlay.RemoveScroll"),U$=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ut(mu,r);return ge.jsx(hC,{as:$$,allowPinchZoom:!0,shards:[o.contentRef],children:ge.jsx(fr.div,{"data-state":fv(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),on="DialogContent",Y$=i.forwardRef((e,t)=>{const r=EC(on,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Ut(on,e.__scopeDialog);return ge.jsx(lv,{present:n||a.open,children:a.modal?ge.jsx(B$,{...o,ref:t}):ge.jsx(K$,{...o,ref:t})})});Y$.displayName=on;var B$=i.forwardRef((e,t)=>{const r=Ut(on,e.__scopeDialog),n=i.useRef(null),o=Cn(t,r.contentRef,n);return i.useEffect(()=>{const a=n.current;if(a)return F$(a)},[]),ge.jsx(kC,{...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())})}),K$=i.forwardRef((e,t)=>{const r=Ut(on,e.__scopeDialog),n=i.useRef(!1),o=i.useRef(!1);return ge.jsx(kC,{...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()}})}),kC=i.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...c}=e,s=Ut(on,r),m=i.useRef(null),d=Cn(t,m);return Zz(),ge.jsxs(ge.Fragment,{children:[ge.jsx(cC,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:ge.jsx(sC,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":fv(s.open),...c,ref:d,onDismiss:()=>s.onOpenChange(!1)})}),ge.jsxs(ge.Fragment,{children:[ge.jsx(G$,{titleId:s.titleId}),ge.jsx(Z$,{contentRef:m,descriptionId:s.descriptionId})]})]})}),dv="DialogTitle",V$=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ut(dv,r);return ge.jsx(fr.h2,{id:o.titleId,...n,ref:t})});V$.displayName=dv;var CC="DialogDescription",H$=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ut(CC,r);return ge.jsx(fr.p,{id:o.descriptionId,...n,ref:t})});H$.displayName=CC;var SC="DialogClose",X$=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ut(SC,r);return ge.jsx(fr.button,{type:"button",...n,ref:t,onClick:$r(e.onClick,()=>o.onOpenChange(!1))})});X$.displayName=SC;function fv(e){return e?"open":"closed"}var RC="DialogTitleWarning",[Kie,jC]=Rz(RC,{contentName:on,titleName:dv,docsSlug:"dialog"}),G$=({titleId:e})=>{const t=jC(RC),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},q$="DialogDescriptionWarning",Z$=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${jC(q$).contentName}}.`;return i.useEffect(()=>{const n=e.current?.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},_d={exports:{}},ha={};/**
|
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 ry;function J$(){if(ry)return ha;ry=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 ha.Fragment=t,ha.jsx=r,ha.jsxs=r,ha}var ai={};/**
|
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 ny;function Q$(){return ny||(ny=1,process.env.NODE_ENV!=="production"&&(function(){function e(f){if(f==null)return null;if(typeof f=="function")return f.$$typeof===L?null:f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case l:return"Fragment";case y:return"Profiler";case g:return"StrictMode";case S:return"Suspense";case T:return"SuspenseList";case O:return"Activity"}if(typeof f=="object")switch(typeof f.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),f.$$typeof){case E:return"Portal";case w:return(f.displayName||"Context")+".Provider";case b:return(f._context.displayName||"Context")+".Consumer";case k:var x=f.render;return f=f.displayName,f||(f=x.displayName||x.name||"",f=f!==""?"ForwardRef("+f+")":"ForwardRef"),f;case C:return x=f.displayName||null,x!==null?x:e(f.type)||"Memo";case j:x=f._payload,f=f._init;try{return e(f(x))}catch{}}return null}function t(f){return""+f}function r(f){try{t(f);var x=!1}catch{x=!0}if(x){x=console;var R=x.error,D=typeof Symbol=="function"&&Symbol.toStringTag&&f[Symbol.toStringTag]||f.constructor.name||"Object";return R.call(x,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",D),t(f)}}function n(f){if(f===l)return"<>";if(typeof f=="object"&&f!==null&&f.$$typeof===j)return"<...>";try{var x=e(f);return x?"<"+x+">":"<...>"}catch{return"<...>"}}function o(){var f=I.A;return f===null?null:f.getOwner()}function a(){return Error("react-stack-top-frame")}function c(f){if(B.call(f,"key")){var x=Object.getOwnPropertyDescriptor(f,"key").get;if(x&&x.isReactWarning)return!1}return f.key!==void 0}function s(f,x){function R(){P||(P=!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))}R.isReactWarning=!0,Object.defineProperty(f,"key",{get:R,configurable:!0})}function m(){var f=e(this.type);return U[f]||(U[f]=!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.")),f=this.props.ref,f!==void 0?f:null}function d(f,x,R,D,F,A,G,H){return R=A.ref,f={$$typeof:h,type:f,key:x,props:A,_owner:F},(R!==void 0?R:null)!==null?Object.defineProperty(f,"ref",{enumerable:!1,get:m}):Object.defineProperty(f,"ref",{enumerable:!1,value:null}),f._store={},Object.defineProperty(f._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(f,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(f,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:G}),Object.defineProperty(f,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:H}),Object.freeze&&(Object.freeze(f.props),Object.freeze(f)),f}function u(f,x,R,D,F,A,G,H){var _=x.children;if(_!==void 0)if(D)if(K(_)){for(D=0;D<_.length;D++)p(_[D]);Object.freeze&&Object.freeze(_)}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(_);if(B.call(x,"key")){_=e(f);var W=Object.keys(x).filter(function(ce){return ce!=="key"});D=0<W.length?"{key: someKey, "+W.join(": ..., ")+": ...}":"{key: someKey}",X[_+D]||(W=0<W.length?"{"+W.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} />`,D,_,W,_),X[_+D]=!0)}if(_=null,R!==void 0&&(r(R),_=""+R),c(x)&&(r(x.key),_=""+x.key),"key"in x){R={};for(var q in x)q!=="key"&&(R[q]=x[q])}else R=x;return _&&s(R,typeof f=="function"?f.displayName||f.name||"Unknown":f),d(f,_,A,F,o(),R,G,H)}function p(f){typeof f=="object"&&f!==null&&f.$$typeof===h&&f._store&&(f._store.validated=1)}var v=M,h=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),g=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"),S=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),O=Symbol.for("react.activity"),L=Symbol.for("react.client.reference"),I=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=Object.prototype.hasOwnProperty,K=Array.isArray,$=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(f){return f()}};var P,U={},V=v.react_stack_bottom_frame.bind(v,a)(),Y=$(n(a)),X={};ai.Fragment=l,ai.jsx=function(f,x,R,D,F){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,x,R,!1,D,F,A?Error("react-stack-top-frame"):V,A?$(n(f)):Y)},ai.jsxs=function(f,x,R,D,F){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,x,R,!0,D,F,A?Error("react-stack-top-frame"):V,A?$(n(f)):Y)}})()),ai}var oy;function e4(){return oy||(oy=1,process.env.NODE_ENV==="production"?_d.exports=J$():_d.exports=Q$()),_d.exports}var he=e4();M.createContext({locale:void 0});ie.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"}});ie.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 Ur(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),r===!1||!n.defaultPrevented)return t?.(n)}}function ay(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function t4(...e){return t=>{let r=!1;const n=e.map(o=>{const a=ay(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():ay(e[o],null)}}}}function Sn(...e){return i.useCallback(t4(...e),e)}function r4(e,t){const r=i.createContext(t),n=a=>{const{children:c,...s}=a,m=i.useMemo(()=>s,Object.values(s));return he.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 n4(e,t=[]){let r=[];function n(a,c){const s=i.createContext(c),m=r.length;r=[...r,c];const d=p=>{const{scope:v,children:h,...E}=p,l=v?.[e]?.[m]||s,g=i.useMemo(()=>E,Object.values(E));return he.jsx(l.Provider,{value:g,children:h})};d.displayName=a+"Provider";function u(p,v){const h=v?.[e]?.[m]||s,E=i.useContext(h);if(E)return E;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[d,u]}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,o4(o,...t)]}function o4(...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 d=s(o)[`__scope${m}`];return{...c,...d}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}var Hp=globalThis?.document?i.useLayoutEffect:()=>{},a4=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],pr=a4.reduce((e,t)=>{const r=Z.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 s4(e,t){e&&ke.flushSync(()=>e.dispatchEvent(t))}function Ua(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...r)=>t.current?.(...r),[])}function i4(e,t=globalThis?.document){const r=Ua(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 c4="DismissableLayer",Xp="dismissableLayer.update",u4="dismissableLayer.pointerDownOutside",l4="dismissableLayer.focusOutside",sy,NC=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),TC=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:c,onDismiss:s,...m}=e,d=i.useContext(NC),[u,p]=i.useState(null),v=u?.ownerDocument??globalThis?.document,[,h]=i.useState({}),E=Sn(t,C=>p(C)),l=Array.from(d.layers),[g]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),y=l.indexOf(g),b=u?l.indexOf(u):-1,w=d.layersWithOutsidePointerEventsDisabled.size>0,k=b>=y,S=p4(C=>{const j=C.target,O=[...d.branches].some(L=>L.contains(j));!k||O||(o?.(C),c?.(C),C.defaultPrevented||s?.())},v),T=m4(C=>{const j=C.target;[...d.branches].some(O=>O.contains(j))||(a?.(C),c?.(C),C.defaultPrevented||s?.())},v);return i4(C=>{b===d.layers.size-1&&(n?.(C),!C.defaultPrevented&&s&&(C.preventDefault(),s()))},v),i.useEffect(()=>{if(u)return r&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(sy=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(u)),d.layers.add(u),iy(),()=>{r&&d.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=sy)}},[u,v,r,d]),i.useEffect(()=>()=>{u&&(d.layers.delete(u),d.layersWithOutsidePointerEventsDisabled.delete(u),iy())},[u,d]),i.useEffect(()=>{const C=()=>h({});return document.addEventListener(Xp,C),()=>document.removeEventListener(Xp,C)},[]),he.jsx(pr.div,{...m,ref:E,style:{pointerEvents:w?k?"auto":"none":void 0,...e.style},onFocusCapture:Ur(e.onFocusCapture,T.onFocusCapture),onBlurCapture:Ur(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:Ur(e.onPointerDownCapture,S.onPointerDownCapture)})});TC.displayName=c4;var d4="DismissableLayerBranch",f4=i.forwardRef((e,t)=>{const r=i.useContext(NC),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]),he.jsx(pr.div,{...e,ref:o})});f4.displayName=d4;function p4(e,t=globalThis?.document){const r=Ua(e),n=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let m=function(){DC(u4,r,d,{discrete:!0})};const d={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 m4(e,t=globalThis?.document){const r=Ua(e),n=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!n.current&&DC(l4,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 iy(){const e=new CustomEvent(Xp);document.dispatchEvent(e)}function DC(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?s4(o,a):o.dispatchEvent(a)}var Od="focusScope.autoFocusOnMount",Pd="focusScope.autoFocusOnUnmount",cy={bubbles:!1,cancelable:!0},v4="FocusScope",_C=i.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...c}=e,[s,m]=i.useState(null),d=Ua(o),u=Ua(a),p=i.useRef(null),v=Sn(t,l=>m(l)),h=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(n){let l=function(w){if(h.paused||!s)return;const k=w.target;s.contains(k)?p.current=k:Cr(p.current,{select:!0})},g=function(w){if(h.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",l),document.addEventListener("focusout",g);const b=new MutationObserver(y);return s&&b.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",l),document.removeEventListener("focusout",g),b.disconnect()}}},[n,s,h.paused]),i.useEffect(()=>{if(s){ly.add(h);const l=document.activeElement;if(!s.contains(l)){const g=new CustomEvent(Od,cy);s.addEventListener(Od,d),s.dispatchEvent(g),g.defaultPrevented||(g4(x4(OC(s)),{select:!0}),document.activeElement===l&&Cr(s))}return()=>{s.removeEventListener(Od,d),setTimeout(()=>{const g=new CustomEvent(Pd,cy);s.addEventListener(Pd,u),s.dispatchEvent(g),g.defaultPrevented||Cr(l??document.body,{select:!0}),s.removeEventListener(Pd,u),ly.remove(h)},0)}}},[s,d,u,h]);const E=i.useCallback(l=>{if(!r&&!n||h.paused)return;const g=l.key==="Tab"&&!l.altKey&&!l.ctrlKey&&!l.metaKey,y=document.activeElement;if(g&&y){const b=l.currentTarget,[w,k]=h4(b);w&&k?!l.shiftKey&&y===k?(l.preventDefault(),r&&Cr(w,{select:!0})):l.shiftKey&&y===w&&(l.preventDefault(),r&&Cr(k,{select:!0})):y===b&&l.preventDefault()}},[r,n,h.paused]);return he.jsx(pr.div,{tabIndex:-1,...c,ref:v,onKeyDown:E})});_C.displayName=v4;function g4(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(Cr(n,{select:t}),document.activeElement!==r)return}function h4(e){const t=OC(e),r=uy(t,e),n=uy(t.reverse(),e);return[r,n]}function OC(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 uy(e,t){for(const r of e)if(!y4(r,{upTo:t}))return r}function y4(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 b4(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&&b4(e)&&t&&e.select()}}var ly=w4();function w4(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=dy(e,t),e.unshift(t)},remove(t){e=dy(e,t),e[0]?.resume()}}}function dy(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function x4(e){return e.filter(t=>t.tagName!=="A")}var E4="Portal",k4=i.forwardRef((e,t)=>{const{container:r,...n}=e,[o,a]=i.useState(!1);Hp(()=>a(!0),[]);const c=r||o&&globalThis?.document?.body;return c?Ee.createPortal(he.jsx(pr.div,{...n,ref:t}),c):null});k4.displayName=E4;function C4(e,t){return i.useReducer((r,n)=>t[r][n]??r,e)}var pv=e=>{const{present:t,children:r}=e,n=S4(t),o=typeof r=="function"?r({present:n.isPresent}):i.Children.only(r),a=Sn(n.ref,R4(o));return typeof r=="function"||n.isPresent?i.cloneElement(o,{ref:a}):null};pv.displayName="Presence";function S4(e){const[t,r]=i.useState(),n=i.useRef(null),o=i.useRef(e),a=i.useRef("none"),c=e?"mounted":"unmounted",[s,m]=C4(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const d=si(n.current);a.current=s==="mounted"?d:"none"},[s]),Hp(()=>{const d=n.current,u=o.current;if(u!==e){const p=a.current,v=si(d);e?m("MOUNT"):v==="none"||d?.display==="none"?m("UNMOUNT"):m(u&&p!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,m]),Hp(()=>{if(t){let d;const u=t.ownerDocument.defaultView??window,p=h=>{const E=si(n.current).includes(CSS.escape(h.animationName));if(h.target===t&&E&&(m("ANIMATION_END"),!o.current)){const l=t.style.animationFillMode;t.style.animationFillMode="forwards",d=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=l)})}},v=h=>{h.target===t&&(a.current=si(n.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{u.clearTimeout(d),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(d=>{n.current=d?getComputedStyle(d):null,r(d)},[])}}function si(e){return e?.animationName||"none"}function R4(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 Md=0;function j4(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??fy()),document.body.insertAdjacentElement("beforeend",e[1]??fy()),Md++,()=>{Md===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Md--}},[])}function fy(){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 PC(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 N4(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 Pc="right-scroll-bar-position",Mc="width-before-scroll-bar",T4="with-scroll-bars-hidden",D4="--removed-body-scroll-bar-size";function Ad(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function _4(e,t){var r=M.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 O4=typeof window<"u"?i.useLayoutEffect:i.useEffect,py=new WeakMap;function P4(e,t){var r=_4(null,function(n){return e.forEach(function(o){return Ad(o,n)})});return O4(function(){var n=py.get(r);if(n){var o=new Set(n),a=new Set(e),c=r.current;o.forEach(function(s){a.has(s)||Ad(s,null)}),a.forEach(function(s){o.has(s)||Ad(s,c)})}py.set(r,e)},[e]),r}function M4(e){return e}function A4(e,t){t===void 0&&(t=M4);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 u=c;c=[],u.forEach(a)},d=function(){return Promise.resolve().then(m)};d(),r={push:function(u){c.push(u),d()},filter:function(u){return c=c.filter(u),r}}}};return o}function I4(e){e===void 0&&(e={});var t=A4(null);return t.options=ft({async:!0,ssr:!1},e),t}var MC=function(e){var t=e.sideCar,r=PC(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))};MC.isSideCarExport=!0;function F4(e,t){return e.useMedium(t),MC}var AC=I4(),Id=function(){},$u=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,d=e.removeScrollBar,u=e.enabled,p=e.shards,v=e.sideCar,h=e.noRelative,E=e.noIsolation,l=e.inert,g=e.allowPinchZoom,y=e.as,b=y===void 0?"div":y,w=e.gapMode,k=PC(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=v,T=P4([r,t]),C=ft(ft({},k),o);return i.createElement(i.Fragment,null,u&&i.createElement(S,{sideCar:AC,removeScrollBar:d,shards:p,noRelative:h,noIsolation:E,inert:l,setCallbacks:a,allowPinchZoom:!!g,lockRef:r,gapMode:w}),c?i.cloneElement(i.Children.only(s),ft(ft({},C),{ref:T})):i.createElement(b,ft({},C,{className:m,ref:T}),s))});$u.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};$u.classNames={fullWidth:Mc,zeroRight:Pc};var L4=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function W4(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=L4();return t&&e.setAttribute("nonce",t),e}function z4(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function $4(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var U4=function(){var e=0,t=null;return{add:function(r){e==0&&(t=W4())&&(z4(t,r),$4(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Y4=function(){var e=U4();return function(t,r){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},IC=function(){var e=Y4(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},B4={left:0,top:0,right:0,gap:0},Fd=function(e){return parseInt(e||"",10)||0},K4=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[Fd(r),Fd(n),Fd(o)]},V4=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return B4;var t=K4(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])}},H4=IC(),Fo="data-scroll-locked",X4=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(T4,` {
|
437
|
-
overflow: hidden `).concat(n,`;
|
438
|
-
padding-right: `).concat(s,"px ").concat(n,`;
|
439
|
-
}
|
440
|
-
body[`).concat(Fo,`] {
|
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(Pc,` {
|
454
|
-
right: `).concat(s,"px ").concat(n,`;
|
455
|
-
}
|
456
|
-
|
457
|
-
.`).concat(Mc,` {
|
458
|
-
margin-right: `).concat(s,"px ").concat(n,`;
|
459
|
-
}
|
460
|
-
|
461
|
-
.`).concat(Pc," .").concat(Pc,` {
|
462
|
-
right: 0 `).concat(n,`;
|
463
|
-
}
|
464
|
-
|
465
|
-
.`).concat(Mc," .").concat(Mc,` {
|
466
|
-
margin-right: 0 `).concat(n,`;
|
467
|
-
}
|
468
|
-
|
469
|
-
body[`).concat(Fo,`] {
|
470
|
-
`).concat(D4,": ").concat(s,`px;
|
471
|
-
}
|
472
|
-
`)},my=function(){var e=parseInt(document.body.getAttribute(Fo)||"0",10);return isFinite(e)?e:0},G4=function(){i.useEffect(function(){return document.body.setAttribute(Fo,(my()+1).toString()),function(){var e=my()-1;e<=0?document.body.removeAttribute(Fo):document.body.setAttribute(Fo,e.toString())}},[])},q4=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;G4();var a=i.useMemo(function(){return V4(o)},[o]);return i.createElement(H4,{styles:X4(a,!t,o,r?"":"!important")})},Gp=!1;if(typeof window<"u")try{var ii=Object.defineProperty({},"passive",{get:function(){return Gp=!0,!0}});window.addEventListener("test",ii,ii),window.removeEventListener("test",ii,ii)}catch{Gp=!1}var Gn=Gp?{passive:!1}:!1,Z4=function(e){return e.tagName==="TEXTAREA"},FC=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!Z4(e)&&r[t]==="visible")},J4=function(e){return FC(e,"overflowY")},Q4=function(e){return FC(e,"overflowX")},vy=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=LC(e,n);if(o){var a=WC(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]},LC=function(e,t){return e==="v"?J4(t):Q4(t)},WC=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),d=!1,u=c>0,p=0,v=0;do{if(!s)break;var h=WC(e,s),E=h[0],l=h[1],g=h[2],y=l-g-a*E;(E||y)&&LC(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(u&&Math.abs(p)<1||!u&&Math.abs(v)<1)&&(d=!0),d},ci=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},gy=function(e){return[e.deltaX,e.deltaY]},hy=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`
|
473
|
-
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
474
|
-
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
475
|
-
`)},sU=0,qn=[];function iU(e){var t=i.useRef([]),r=i.useRef([0,0]),n=i.useRef(),o=i.useState(sU++)[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 l=N4([e.lockRef.current],(e.shards||[]).map(hy)).filter(Boolean);return l.forEach(function(g){return g.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),l.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=i.useCallback(function(l,g){if("touches"in l&&l.touches.length===2||l.type==="wheel"&&l.ctrlKey)return!c.current.allowPinchZoom;var y=ci(l),b=r.current,w="deltaX"in l?l.deltaX:b[0]-y[0],k="deltaY"in l?l.deltaY:b[1]-y[1],S,T=l.target,C=Math.abs(w)>Math.abs(k)?"h":"v";if("touches"in l&&C==="h"&&T.type==="range")return!1;var j=vy(C,T);if(!j)return!0;if(j?S=C:(S=C==="v"?"h":"v",j=vy(C,T)),!j)return!1;if(!n.current&&"changedTouches"in l&&(w||k)&&(n.current=S),!S)return!0;var O=n.current||S;return nU(O,g,l,O==="h"?w:k)},[]),m=i.useCallback(function(l){var g=l;if(!(!qn.length||qn[qn.length-1]!==a)){var y="deltaY"in g?gy(g):ci(g),b=t.current.filter(function(S){return S.name===g.type&&(S.target===g.target||g.target===S.shadowParent)&&oU(S.delta,y)})[0];if(b&&b.should){g.cancelable&&g.preventDefault();return}if(!b){var w=(c.current.shards||[]).map(hy).filter(Boolean).filter(function(S){return S.contains(g.target)}),k=w.length>0?s(g,w[0]):!c.current.noIsolation;k&&g.cancelable&&g.preventDefault()}}},[]),d=i.useCallback(function(l,g,y,b){var w={name:l,delta:g,target:y,should:b,shadowParent:cU(y)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(k){return k!==w})},1)},[]),u=i.useCallback(function(l){r.current=ci(l),n.current=void 0},[]),p=i.useCallback(function(l){d(l.type,gy(l),l.target,s(l,e.lockRef.current))},[]),v=i.useCallback(function(l){d(l.type,ci(l),l.target,s(l,e.lockRef.current))},[]);i.useEffect(function(){return qn.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:v}),document.addEventListener("wheel",m,Gn),document.addEventListener("touchmove",m,Gn),document.addEventListener("touchstart",u,Gn),function(){qn=qn.filter(function(l){return l!==a}),document.removeEventListener("wheel",m,Gn),document.removeEventListener("touchmove",m,Gn),document.removeEventListener("touchstart",u,Gn)}},[]);var h=e.removeScrollBar,E=e.inert;return i.createElement(i.Fragment,null,E?i.createElement(a,{styles:aU(o)}):null,h?i.createElement(q4,{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=F4(AC,iU);var zC=i.forwardRef(function(e,t){return i.createElement($u,ft({},e,{ref:t,sideCar:uU}))});zC.classNames=$u.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,ui=new WeakMap,li={},Ld=0,$C=function(e){return e&&(e.host||$C(e.parentNode))},dU=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=$C(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]);li[r]||(li[r]=new WeakMap);var a=li[r],c=[],s=new Set,m=new Set(o),d=function(p){!p||s.has(p)||(s.add(p),d(p.parentNode))};o.forEach(d);var u=function(p){!p||m.has(p)||Array.prototype.forEach.call(p.children,function(v){if(s.has(v))u(v);else try{var h=v.getAttribute(n),E=h!==null&&h!=="false",l=(Zn.get(v)||0)+1,g=(a.get(v)||0)+1;Zn.set(v,l),a.set(v,g),c.push(v),l===1&&E&&ui.set(v,!0),g===1&&v.setAttribute(r,"true"),E||v.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",v,y)}})};return u(t),s.clear(),Ld++,function(){c.forEach(function(p){var v=Zn.get(p)-1,h=a.get(p)-1;Zn.set(p,v),a.set(p,h),v||(ui.has(p)||p.removeAttribute(n),ui.delete(p)),h||p.removeAttribute(r)}),Ld--,Ld||(Zn=new WeakMap,Zn=new WeakMap,ui=new WeakMap,li={})}},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}},UC="Dialog",[YC]=n4(UC),[Vie,Yt]=YC(UC),BC="DialogTrigger",mU=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Yt(BC,r),a=Sn(t,o.triggerRef);return he.jsx(pr.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":vv(o.open),...n,ref:a,onClick:Ur(e.onClick,o.onOpenToggle)})});mU.displayName=BC;var vU="DialogPortal",[Hie,KC]=YC(vU,{forceMount:void 0}),vu="DialogOverlay",gU=i.forwardRef((e,t)=>{const r=KC(vu,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Yt(vu,e.__scopeDialog);return a.modal?he.jsx(pv,{present:n||a.open,children:he.jsx(yU,{...o,ref:t})}):null});gU.displayName=vu;var hU=Z.createSlot("DialogOverlay.RemoveScroll"),yU=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Yt(vu,r);return he.jsx(zC,{as:hU,allowPinchZoom:!0,shards:[o.contentRef],children:he.jsx(pr.div,{"data-state":vv(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),an="DialogContent",bU=i.forwardRef((e,t)=>{const r=KC(an,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Yt(an,e.__scopeDialog);return he.jsx(pv,{present:n||a.open,children:a.modal?he.jsx(wU,{...o,ref:t}):he.jsx(xU,{...o,ref:t})})});bU.displayName=an;var wU=i.forwardRef((e,t)=>{const r=Yt(an,e.__scopeDialog),n=i.useRef(null),o=Sn(t,r.contentRef,n);return i.useEffect(()=>{const a=n.current;if(a)return pU(a)},[]),he.jsx(VC,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ur(e.onCloseAutoFocus,a=>{a.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:Ur(e.onPointerDownOutside,a=>{const c=a.detail.originalEvent,s=c.button===0&&c.ctrlKey===!0;(c.button===2||s)&&a.preventDefault()}),onFocusOutside:Ur(e.onFocusOutside,a=>a.preventDefault())})}),xU=i.forwardRef((e,t)=>{const r=Yt(an,e.__scopeDialog),n=i.useRef(!1),o=i.useRef(!1);return he.jsx(VC,{...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()}})}),VC=i.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...c}=e,s=Yt(an,r),m=i.useRef(null),d=Sn(t,m);return j4(),he.jsxs(he.Fragment,{children:[he.jsx(_C,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:he.jsx(TC,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":vv(s.open),...c,ref:d,onDismiss:()=>s.onOpenChange(!1)})}),he.jsxs(he.Fragment,{children:[he.jsx(SU,{titleId:s.titleId}),he.jsx(jU,{contentRef:m,descriptionId:s.descriptionId})]})]})}),mv="DialogTitle",EU=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Yt(mv,r);return he.jsx(pr.h2,{id:o.titleId,...n,ref:t})});EU.displayName=mv;var HC="DialogDescription",kU=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Yt(HC,r);return he.jsx(pr.p,{id:o.descriptionId,...n,ref:t})});kU.displayName=HC;var XC="DialogClose",CU=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Yt(XC,r);return he.jsx(pr.button,{type:"button",...n,ref:t,onClick:Ur(e.onClick,()=>o.onOpenChange(!1))})});CU.displayName=XC;function vv(e){return e?"open":"closed"}var GC="DialogTitleWarning",[Xie,qC]=r4(GC,{contentName:an,titleName:mv,docsSlug:"dialog"}),SU=({titleId:e})=>{const t=qC(GC),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},RU="DialogDescriptionWarning",jU=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${qC(RU).contentName}}.`;return i.useEffect(()=>{const n=e.current?.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Wd={exports:{}},ya={};/**
|
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 yy;function NU(){if(yy)return ya;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 ya.Fragment=t,ya.jsx=r,ya.jsxs=r,ya}var di={};/**
|
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 by;function TU(){return by||(by=1,process.env.NODE_ENV!=="production"&&(function(){function e(f){if(f==null)return null;if(typeof f=="function")return f.$$typeof===L?null:f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case l:return"Fragment";case y:return"Profiler";case g:return"StrictMode";case S:return"Suspense";case T:return"SuspenseList";case O:return"Activity"}if(typeof f=="object")switch(typeof f.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),f.$$typeof){case E:return"Portal";case w:return(f.displayName||"Context")+".Provider";case b:return(f._context.displayName||"Context")+".Consumer";case k:var x=f.render;return f=f.displayName,f||(f=x.displayName||x.name||"",f=f!==""?"ForwardRef("+f+")":"ForwardRef"),f;case C:return x=f.displayName||null,x!==null?x:e(f.type)||"Memo";case j:x=f._payload,f=f._init;try{return e(f(x))}catch{}}return null}function t(f){return""+f}function r(f){try{t(f);var x=!1}catch{x=!0}if(x){x=console;var R=x.error,D=typeof Symbol=="function"&&Symbol.toStringTag&&f[Symbol.toStringTag]||f.constructor.name||"Object";return R.call(x,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",D),t(f)}}function n(f){if(f===l)return"<>";if(typeof f=="object"&&f!==null&&f.$$typeof===j)return"<...>";try{var x=e(f);return x?"<"+x+">":"<...>"}catch{return"<...>"}}function o(){var f=I.A;return f===null?null:f.getOwner()}function a(){return Error("react-stack-top-frame")}function c(f){if(B.call(f,"key")){var x=Object.getOwnPropertyDescriptor(f,"key").get;if(x&&x.isReactWarning)return!1}return f.key!==void 0}function s(f,x){function R(){P||(P=!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))}R.isReactWarning=!0,Object.defineProperty(f,"key",{get:R,configurable:!0})}function m(){var f=e(this.type);return U[f]||(U[f]=!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.")),f=this.props.ref,f!==void 0?f:null}function d(f,x,R,D,F,A,G,H){return R=A.ref,f={$$typeof:h,type:f,key:x,props:A,_owner:F},(R!==void 0?R:null)!==null?Object.defineProperty(f,"ref",{enumerable:!1,get:m}):Object.defineProperty(f,"ref",{enumerable:!1,value:null}),f._store={},Object.defineProperty(f._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(f,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(f,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:G}),Object.defineProperty(f,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:H}),Object.freeze&&(Object.freeze(f.props),Object.freeze(f)),f}function u(f,x,R,D,F,A,G,H){var _=x.children;if(_!==void 0)if(D)if(K(_)){for(D=0;D<_.length;D++)p(_[D]);Object.freeze&&Object.freeze(_)}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(_);if(B.call(x,"key")){_=e(f);var W=Object.keys(x).filter(function(ce){return ce!=="key"});D=0<W.length?"{key: someKey, "+W.join(": ..., ")+": ...}":"{key: someKey}",X[_+D]||(W=0<W.length?"{"+W.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} />`,D,_,W,_),X[_+D]=!0)}if(_=null,R!==void 0&&(r(R),_=""+R),c(x)&&(r(x.key),_=""+x.key),"key"in x){R={};for(var q in x)q!=="key"&&(R[q]=x[q])}else R=x;return _&&s(R,typeof f=="function"?f.displayName||f.name||"Unknown":f),d(f,_,A,F,o(),R,G,H)}function p(f){typeof f=="object"&&f!==null&&f.$$typeof===h&&f._store&&(f._store.validated=1)}var v=M,h=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),g=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"),S=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),O=Symbol.for("react.activity"),L=Symbol.for("react.client.reference"),I=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=Object.prototype.hasOwnProperty,K=Array.isArray,$=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(f){return f()}};var P,U={},V=v.react_stack_bottom_frame.bind(v,a)(),Y=$(n(a)),X={};di.Fragment=l,di.jsx=function(f,x,R,D,F){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,x,R,!1,D,F,A?Error("react-stack-top-frame"):V,A?$(n(f)):Y)},di.jsxs=function(f,x,R,D,F){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,x,R,!0,D,F,A?Error("react-stack-top-frame"):V,A?$(n(f)):Y)}})()),di}var wy;function DU(){return wy||(wy=1,process.env.NODE_ENV==="production"?Wd.exports=NU():Wd.exports=TU()),Wd.exports}var J=DU();M.createContext({locale:void 0});var _U=(e,t,r,n,o,a,c,s)=>{let m=document.documentElement,d=["light","dark"];function u(h){(Array.isArray(e)?e:[e]).forEach(E=>{let l=E==="class",g=l&&a?o.map(y=>a[y]||y):o;l?(m.classList.remove(...g),m.classList.add(a&&a[h]?a[h]:h)):m.setAttribute(E,h)}),p(h)}function p(h){s&&d.includes(h)&&(m.style.colorScheme=h)}function v(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(n)u(n);else try{let h=localStorage.getItem(t)||r,E=c&&h==="system"?v():h;u(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:d})=>{let u=JSON.stringify([r,t,a,e,s,c,n,o]).slice(1,-1);return i.createElement("script",{...d,suppressHydrationWarning:!0,nonce:typeof window>"u"?m:"",dangerouslySetInnerHTML:{__html:`(${_U.toString()})(${u})`}})});function OU(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 qp=1;class PU{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:qp++,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 d=>{if(c=["resolve",d],M.isValidElement(d))a=!1,this.create({id:n,type:"default",message:d});else if(AU(d)&&!d.ok){a=!1;const u=typeof r.error=="function"?await r.error(`HTTP error! status: ${d.status}`):r.error,p=typeof r.description=="function"?await r.description(`HTTP error! status: ${d.status}`):r.description,v=typeof u=="object"&&!M.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:p,...v})}else if(d instanceof Error){a=!1;const u=typeof r.error=="function"?await r.error(d):r.error,p=typeof r.description=="function"?await r.description(d):r.description,v=typeof u=="object"&&!M.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:p,...v})}else if(r.success!==void 0){a=!1;const u=typeof r.success=="function"?await r.success(d):r.success,p=typeof r.description=="function"?await r.description(d):r.description,v=typeof u=="object"&&!M.isValidElement(u)?u:{message:u};this.create({id:n,type:"success",description:p,...v})}}).catch(async d=>{if(c=["reject",d],r.error!==void 0){a=!1;const u=typeof r.error=="function"?await r.error(d):r.error,p=typeof r.description=="function"?await r.description(d):r.description,v=typeof u=="object"&&!M.isValidElement(u)?u:{message:u};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((d,u)=>s.then(()=>c[0]==="reject"?u(c[1]):d(c[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:m}:Object.assign(n,{unwrap:m})},this.custom=(t,r)=>{const n=r?.id||qp++;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 PU,MU=(e,t)=>{const r=t?.id||qp++;return Ve.addToast({title:e,...t,id:r}),r},AU=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",IU=MU,FU=()=>Ve.toasts,LU=()=>Ve.getActiveToasts();Object.assign(IU,{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:FU,getToasts:LU});OU("[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%)}");ie.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"}});ie.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 xy(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function WU(...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 Rt(...e){return i.useCallback(WU(...e),e)}function zU(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 Uu(e,t=[]){let r=[];function n(a,c){const s=i.createContext(c),m=r.length;r=[...r,c];const d=p=>{const{scope:v,children:h,...E}=p,l=v?.[e]?.[m]||s,g=i.useMemo(()=>E,Object.values(E));return J.jsx(l.Provider,{value:g,children:h})};d.displayName=a+"Provider";function u(p,v){const h=v?.[e]?.[m]||s,E=i.useContext(h);if(E)return E;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[d,u]}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,$U(o,...t)]}function $U(...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 d=s(o)[`__scope${m}`];return{...c,...d}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}var Ya=globalThis?.document?i.useLayoutEffect:()=>{},UU=i[" useId ".trim().toString()]||(()=>{}),YU=0;function ZC(e){const[t,r]=i.useState(UU());return Ya(()=>{r(n=>n??String(YU++))},[e]),t?`radix-${t}`:""}var BU=i[" useInsertionEffect ".trim().toString()]||Ya;function JC({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,a,c]=KU({defaultProp:t,onChange:r}),s=e!==void 0,m=s?e:o;{const u=i.useRef(e!==void 0);i.useEffect(()=>{const p=u.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.`),u.current=s},[s,n])}const d=i.useCallback(u=>{if(s){const p=VU(u)?u(e):u;p!==e&&c.current?.(p)}else a(u)},[s,e,a,c]);return[m,d]}function KU({defaultProp:e,onChange:t}){const[r,n]=i.useState(e),o=i.useRef(r),a=i.useRef(t);return BU(()=>{a.current=t},[t]),i.useEffect(()=>{o.current!==r&&(a.current?.(r),o.current=r)},[r,o]),[r,n,a]}function VU(e){return typeof e=="function"}var HU=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ae=HU.reduce((e,t)=>{const r=Z.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 XU(e,t){e&&ke.flushSync(()=>e.dispatchEvent(t))}function Go(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...r)=>t.current?.(...r),[])}function GU(e,t=globalThis?.document){const r=Go(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 qU="DismissableLayer",Zp="dismissableLayer.update",ZU="dismissableLayer.pointerDownOutside",JU="dismissableLayer.focusOutside",Ey,QC=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),e1=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:c,onDismiss:s,...m}=e,d=i.useContext(QC),[u,p]=i.useState(null),v=u?.ownerDocument??globalThis?.document,[,h]=i.useState({}),E=Rt(t,C=>p(C)),l=Array.from(d.layers),[g]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),y=l.indexOf(g),b=u?l.indexOf(u):-1,w=d.layersWithOutsidePointerEventsDisabled.size>0,k=b>=y,S=tY(C=>{const j=C.target,O=[...d.branches].some(L=>L.contains(j));!k||O||(o?.(C),c?.(C),C.defaultPrevented||s?.())},v),T=rY(C=>{const j=C.target;[...d.branches].some(O=>O.contains(j))||(a?.(C),c?.(C),C.defaultPrevented||s?.())},v);return GU(C=>{b===d.layers.size-1&&(n?.(C),!C.defaultPrevented&&s&&(C.preventDefault(),s()))},v),i.useEffect(()=>{if(u)return r&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Ey=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(u)),d.layers.add(u),ky(),()=>{r&&d.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=Ey)}},[u,v,r,d]),i.useEffect(()=>()=>{u&&(d.layers.delete(u),d.layersWithOutsidePointerEventsDisabled.delete(u),ky())},[u,d]),i.useEffect(()=>{const C=()=>h({});return document.addEventListener(Zp,C),()=>document.removeEventListener(Zp,C)},[]),J.jsx(Ae.div,{...m,ref:E,style:{pointerEvents:w?k?"auto":"none":void 0,...e.style},onFocusCapture:Ce(e.onFocusCapture,T.onFocusCapture),onBlurCapture:Ce(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:Ce(e.onPointerDownCapture,S.onPointerDownCapture)})});e1.displayName=qU;var QU="DismissableLayerBranch",eY=i.forwardRef((e,t)=>{const r=i.useContext(QC),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]),J.jsx(Ae.div,{...e,ref:o})});eY.displayName=QU;function tY(e,t=globalThis?.document){const r=Go(e),n=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let m=function(){t1(ZU,r,d,{discrete:!0})};const d={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 rY(e,t=globalThis?.document){const r=Go(e),n=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!n.current&&t1(JU,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 ky(){const e=new CustomEvent(Zp);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?XU(o,a):o.dispatchEvent(a)}var zd="focusScope.autoFocusOnMount",$d="focusScope.autoFocusOnUnmount",Cy={bubbles:!1,cancelable:!0},nY="FocusScope",r1=i.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...c}=e,[s,m]=i.useState(null),d=Go(o),u=Go(a),p=i.useRef(null),v=Rt(t,l=>m(l)),h=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(n){let l=function(w){if(h.paused||!s)return;const k=w.target;s.contains(k)?p.current=k:Sr(p.current,{select:!0})},g=function(w){if(h.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",l),document.addEventListener("focusout",g);const b=new MutationObserver(y);return s&&b.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",l),document.removeEventListener("focusout",g),b.disconnect()}}},[n,s,h.paused]),i.useEffect(()=>{if(s){Ry.add(h);const l=document.activeElement;if(!s.contains(l)){const g=new CustomEvent(zd,Cy);s.addEventListener(zd,d),s.dispatchEvent(g),g.defaultPrevented||(oY(uY(n1(s)),{select:!0}),document.activeElement===l&&Sr(s))}return()=>{s.removeEventListener(zd,d),setTimeout(()=>{const g=new CustomEvent($d,Cy);s.addEventListener($d,u),s.dispatchEvent(g),g.defaultPrevented||Sr(l??document.body,{select:!0}),s.removeEventListener($d,u),Ry.remove(h)},0)}}},[s,d,u,h]);const E=i.useCallback(l=>{if(!r&&!n||h.paused)return;const g=l.key==="Tab"&&!l.altKey&&!l.ctrlKey&&!l.metaKey,y=document.activeElement;if(g&&y){const b=l.currentTarget,[w,k]=aY(b);w&&k?!l.shiftKey&&y===k?(l.preventDefault(),r&&Sr(w,{select:!0})):l.shiftKey&&y===w&&(l.preventDefault(),r&&Sr(k,{select:!0})):y===b&&l.preventDefault()}},[r,n,h.paused]);return J.jsx(Ae.div,{tabIndex:-1,...c,ref:v,onKeyDown:E})});r1.displayName=nY;function oY(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(Sr(n,{select:t}),document.activeElement!==r)return}function aY(e){const t=n1(e),r=Sy(t,e),n=Sy(t.reverse(),e);return[r,n]}function n1(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 Sy(e,t){for(const r of e)if(!sY(r,{upTo:t}))return r}function sY(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 iY(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&&iY(e)&&t&&e.select()}}var Ry=cY();function cY(){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 uY(e){return e.filter(t=>t.tagName!=="A")}var lY="Portal",dY=i.forwardRef((e,t)=>{const{container:r,...n}=e,[o,a]=i.useState(!1);Ya(()=>a(!0),[]);const c=r||o&&globalThis?.document?.body;return c?Ee.createPortal(J.jsx(Ae.div,{...n,ref:t}),c):null});dY.displayName=lY;function fY(e,t){return i.useReducer((r,n)=>t[r][n]??r,e)}var Yu=e=>{const{present:t,children:r}=e,n=pY(t),o=typeof r=="function"?r({present:n.isPresent}):i.Children.only(r),a=Rt(n.ref,mY(o));return typeof r=="function"||n.isPresent?i.cloneElement(o,{ref:a}):null};Yu.displayName="Presence";function pY(e){const[t,r]=i.useState(),n=i.useRef(null),o=i.useRef(e),a=i.useRef("none"),c=e?"mounted":"unmounted",[s,m]=fY(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const d=fi(n.current);a.current=s==="mounted"?d:"none"},[s]),Ya(()=>{const d=n.current,u=o.current;if(u!==e){const p=a.current,v=fi(d);e?m("MOUNT"):v==="none"||d?.display==="none"?m("UNMOUNT"):m(u&&p!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,m]),Ya(()=>{if(t){let d;const u=t.ownerDocument.defaultView??window,p=h=>{const E=fi(n.current).includes(CSS.escape(h.animationName));if(h.target===t&&E&&(m("ANIMATION_END"),!o.current)){const l=t.style.animationFillMode;t.style.animationFillMode="forwards",d=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=l)})}},v=h=>{h.target===t&&(a.current=fi(n.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{u.clearTimeout(d),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(d=>{n.current=d?getComputedStyle(d):null,r(d)},[])}}function fi(e){return e?.animationName||"none"}function mY(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 Ud=0;function vY(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Ny()),document.body.insertAdjacentElement("beforeend",e[1]??Ny()),Ud++,()=>{Ud===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Ud--}},[])}function Ny(){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 o1(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 gY(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 Ac="right-scroll-bar-position",Ic="width-before-scroll-bar",hY="with-scroll-bars-hidden",yY="--removed-body-scroll-bar-size";function Yd(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function bY(e,t){var r=M.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 wY=typeof window<"u"?i.useLayoutEffect:i.useEffect,Ty=new WeakMap;function xY(e,t){var r=bY(null,function(n){return e.forEach(function(o){return Yd(o,n)})});return wY(function(){var n=Ty.get(r);if(n){var o=new Set(n),a=new Set(e),c=r.current;o.forEach(function(s){a.has(s)||Yd(s,null)}),a.forEach(function(s){o.has(s)||Yd(s,c)})}Ty.set(r,e)},[e]),r}function EY(e){return e}function kY(e,t){t===void 0&&(t=EY);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 u=c;c=[],u.forEach(a)},d=function(){return Promise.resolve().then(m)};d(),r={push:function(u){c.push(u),d()},filter:function(u){return c=c.filter(u),r}}}};return o}function CY(e){e===void 0&&(e={});var t=kY(null);return t.options=pt({async:!0,ssr:!1},e),t}var a1=function(e){var t=e.sideCar,r=o1(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))};a1.isSideCarExport=!0;function SY(e,t){return e.useMedium(t),a1}var s1=CY(),Bd=function(){},Bu=i.forwardRef(function(e,t){var r=i.useRef(null),n=i.useState({onScrollCapture:Bd,onWheelCapture:Bd,onTouchMoveCapture:Bd}),o=n[0],a=n[1],c=e.forwardProps,s=e.children,m=e.className,d=e.removeScrollBar,u=e.enabled,p=e.shards,v=e.sideCar,h=e.noRelative,E=e.noIsolation,l=e.inert,g=e.allowPinchZoom,y=e.as,b=y===void 0?"div":y,w=e.gapMode,k=o1(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=v,T=xY([r,t]),C=pt(pt({},k),o);return i.createElement(i.Fragment,null,u&&i.createElement(S,{sideCar:s1,removeScrollBar:d,shards:p,noRelative:h,noIsolation:E,inert:l,setCallbacks:a,allowPinchZoom:!!g,lockRef:r,gapMode:w}),c?i.cloneElement(i.Children.only(s),pt(pt({},C),{ref:T})):i.createElement(b,pt({},C,{className:m,ref:T}),s))});Bu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Bu.classNames={fullWidth:Ic,zeroRight:Ac};var RY=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function jY(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=RY();return t&&e.setAttribute("nonce",t),e}function NY(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function TY(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var DY=function(){var e=0,t=null;return{add:function(r){e==0&&(t=jY())&&(NY(t,r),TY(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},_Y=function(){var e=DY();return function(t,r){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},i1=function(){var e=_Y(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},OY={left:0,top:0,right:0,gap:0},Kd=function(e){return parseInt(e||"",10)||0},PY=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[Kd(r),Kd(n),Kd(o)]},MY=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return OY;var t=PY(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])}},AY=i1(),Lo="data-scroll-locked",IY=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(hY,` {
|
502
|
-
overflow: hidden `).concat(n,`;
|
503
|
-
padding-right: `).concat(s,"px ").concat(n,`;
|
504
|
-
}
|
505
|
-
body[`).concat(Lo,`] {
|
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(Ac,` {
|
519
|
-
right: `).concat(s,"px ").concat(n,`;
|
520
|
-
}
|
521
|
-
|
522
|
-
.`).concat(Ic,` {
|
523
|
-
margin-right: `).concat(s,"px ").concat(n,`;
|
524
|
-
}
|
525
|
-
|
526
|
-
.`).concat(Ac," .").concat(Ac,` {
|
527
|
-
right: 0 `).concat(n,`;
|
528
|
-
}
|
529
|
-
|
530
|
-
.`).concat(Ic," .").concat(Ic,` {
|
531
|
-
margin-right: 0 `).concat(n,`;
|
532
|
-
}
|
533
|
-
|
534
|
-
body[`).concat(Lo,`] {
|
535
|
-
`).concat(yY,": ").concat(s,`px;
|
536
|
-
}
|
537
|
-
`)},Dy=function(){var e=parseInt(document.body.getAttribute(Lo)||"0",10);return isFinite(e)?e:0},FY=function(){i.useEffect(function(){return document.body.setAttribute(Lo,(Dy()+1).toString()),function(){var e=Dy()-1;e<=0?document.body.removeAttribute(Lo):document.body.setAttribute(Lo,e.toString())}},[])},LY=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;FY();var a=i.useMemo(function(){return MY(o)},[o]);return i.createElement(AY,{styles:IY(a,!t,o,r?"":"!important")})},Jp=!1;if(typeof window<"u")try{var pi=Object.defineProperty({},"passive",{get:function(){return Jp=!0,!0}});window.addEventListener("test",pi,pi),window.removeEventListener("test",pi,pi)}catch{Jp=!1}var Jn=Jp?{passive:!1}:!1,WY=function(e){return e.tagName==="TEXTAREA"},c1=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!WY(e)&&r[t]==="visible")},zY=function(e){return c1(e,"overflowY")},$Y=function(e){return c1(e,"overflowX")},_y=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=u1(e,n);if(o){var a=l1(e,n),c=a[1],s=a[2];if(c>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},UY=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},YY=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},u1=function(e,t){return e==="v"?zY(t):$Y(t)},l1=function(e,t){return e==="v"?UY(t):YY(t)},BY=function(e,t){return e==="h"&&t==="rtl"?-1:1},KY=function(e,t,r,n,o){var a=BY(e,window.getComputedStyle(t).direction),c=a*n,s=r.target,m=t.contains(s),d=!1,u=c>0,p=0,v=0;do{if(!s)break;var h=l1(e,s),E=h[0],l=h[1],g=h[2],y=l-g-a*E;(E||y)&&u1(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(u&&Math.abs(p)<1||!u&&Math.abs(v)<1)&&(d=!0),d},mi=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Oy=function(e){return[e.deltaX,e.deltaY]},Py=function(e){return e&&"current"in e?e.current:e},VY=function(e,t){return e[0]===t[0]&&e[1]===t[1]},HY=function(e){return`
|
538
|
-
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
539
|
-
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
540
|
-
`)},XY=0,Qn=[];function GY(e){var t=i.useRef([]),r=i.useRef([0,0]),n=i.useRef(),o=i.useState(XY++)[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 l=gY([e.lockRef.current],(e.shards||[]).map(Py)).filter(Boolean);return l.forEach(function(g){return g.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),l.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=i.useCallback(function(l,g){if("touches"in l&&l.touches.length===2||l.type==="wheel"&&l.ctrlKey)return!c.current.allowPinchZoom;var y=mi(l),b=r.current,w="deltaX"in l?l.deltaX:b[0]-y[0],k="deltaY"in l?l.deltaY:b[1]-y[1],S,T=l.target,C=Math.abs(w)>Math.abs(k)?"h":"v";if("touches"in l&&C==="h"&&T.type==="range")return!1;var j=_y(C,T);if(!j)return!0;if(j?S=C:(S=C==="v"?"h":"v",j=_y(C,T)),!j)return!1;if(!n.current&&"changedTouches"in l&&(w||k)&&(n.current=S),!S)return!0;var O=n.current||S;return KY(O,g,l,O==="h"?w:k)},[]),m=i.useCallback(function(l){var g=l;if(!(!Qn.length||Qn[Qn.length-1]!==a)){var y="deltaY"in g?Oy(g):mi(g),b=t.current.filter(function(S){return S.name===g.type&&(S.target===g.target||g.target===S.shadowParent)&&VY(S.delta,y)})[0];if(b&&b.should){g.cancelable&&g.preventDefault();return}if(!b){var w=(c.current.shards||[]).map(Py).filter(Boolean).filter(function(S){return S.contains(g.target)}),k=w.length>0?s(g,w[0]):!c.current.noIsolation;k&&g.cancelable&&g.preventDefault()}}},[]),d=i.useCallback(function(l,g,y,b){var w={name:l,delta:g,target:y,should:b,shadowParent:qY(y)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(k){return k!==w})},1)},[]),u=i.useCallback(function(l){r.current=mi(l),n.current=void 0},[]),p=i.useCallback(function(l){d(l.type,Oy(l),l.target,s(l,e.lockRef.current))},[]),v=i.useCallback(function(l){d(l.type,mi(l),l.target,s(l,e.lockRef.current))},[]);i.useEffect(function(){return Qn.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:v}),document.addEventListener("wheel",m,Jn),document.addEventListener("touchmove",m,Jn),document.addEventListener("touchstart",u,Jn),function(){Qn=Qn.filter(function(l){return l!==a}),document.removeEventListener("wheel",m,Jn),document.removeEventListener("touchmove",m,Jn),document.removeEventListener("touchstart",u,Jn)}},[]);var h=e.removeScrollBar,E=e.inert;return i.createElement(i.Fragment,null,E?i.createElement(a,{styles:HY(o)}):null,h?i.createElement(LY,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function qY(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const ZY=SY(s1,GY);var d1=i.forwardRef(function(e,t){return i.createElement(Bu,pt({},e,{ref:t,sideCar:ZY}))});d1.classNames=Bu.classNames;var JY=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},eo=new WeakMap,vi=new WeakMap,gi={},Vd=0,f1=function(e){return e&&(e.host||f1(e.parentNode))},QY=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=f1(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})},eB=function(e,t,r,n){var o=QY(t,Array.isArray(e)?e:[e]);gi[r]||(gi[r]=new WeakMap);var a=gi[r],c=[],s=new Set,m=new Set(o),d=function(p){!p||s.has(p)||(s.add(p),d(p.parentNode))};o.forEach(d);var u=function(p){!p||m.has(p)||Array.prototype.forEach.call(p.children,function(v){if(s.has(v))u(v);else try{var h=v.getAttribute(n),E=h!==null&&h!=="false",l=(eo.get(v)||0)+1,g=(a.get(v)||0)+1;eo.set(v,l),a.set(v,g),c.push(v),l===1&&E&&vi.set(v,!0),g===1&&v.setAttribute(r,"true"),E||v.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",v,y)}})};return u(t),s.clear(),Vd++,function(){c.forEach(function(p){var v=eo.get(p)-1,h=a.get(p)-1;eo.set(p,v),a.set(p,h),v||(vi.has(p)||p.removeAttribute(n),vi.delete(p)),h||p.removeAttribute(r)}),Vd--,Vd||(eo=new WeakMap,eo=new WeakMap,vi=new WeakMap,gi={})}},tB=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=JY(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),eB(n,o,r,"aria-hidden")):function(){return null}},p1="Dialog",[m1]=Uu(p1),[Gie,Bt]=m1(p1),v1="DialogTrigger",rB=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Bt(v1,r),a=Rt(t,o.triggerRef);return J.jsx(Ae.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":hv(o.open),...n,ref:a,onClick:Ce(e.onClick,o.onOpenToggle)})});rB.displayName=v1;var nB="DialogPortal",[qie,g1]=m1(nB,{forceMount:void 0}),gu="DialogOverlay",oB=i.forwardRef((e,t)=>{const r=g1(gu,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Bt(gu,e.__scopeDialog);return a.modal?J.jsx(Yu,{present:n||a.open,children:J.jsx(sB,{...o,ref:t})}):null});oB.displayName=gu;var aB=Z.createSlot("DialogOverlay.RemoveScroll"),sB=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Bt(gu,r);return J.jsx(d1,{as:aB,allowPinchZoom:!0,shards:[o.contentRef],children:J.jsx(Ae.div,{"data-state":hv(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),sn="DialogContent",iB=i.forwardRef((e,t)=>{const r=g1(sn,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Bt(sn,e.__scopeDialog);return J.jsx(Yu,{present:n||a.open,children:a.modal?J.jsx(cB,{...o,ref:t}):J.jsx(uB,{...o,ref:t})})});iB.displayName=sn;var cB=i.forwardRef((e,t)=>{const r=Bt(sn,e.__scopeDialog),n=i.useRef(null),o=Rt(t,r.contentRef,n);return i.useEffect(()=>{const a=n.current;if(a)return tB(a)},[]),J.jsx(h1,{...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())})}),uB=i.forwardRef((e,t)=>{const r=Bt(sn,e.__scopeDialog),n=i.useRef(!1),o=i.useRef(!1);return J.jsx(h1,{...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()}})}),h1=i.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...c}=e,s=Bt(sn,r),m=i.useRef(null),d=Rt(t,m);return vY(),J.jsxs(J.Fragment,{children:[J.jsx(r1,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:J.jsx(e1,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":hv(s.open),...c,ref:d,onDismiss:()=>s.onOpenChange(!1)})}),J.jsxs(J.Fragment,{children:[J.jsx(pB,{titleId:s.titleId}),J.jsx(vB,{contentRef:m,descriptionId:s.descriptionId})]})]})}),gv="DialogTitle",lB=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Bt(gv,r);return J.jsx(Ae.h2,{id:o.titleId,...n,ref:t})});lB.displayName=gv;var y1="DialogDescription",dB=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Bt(y1,r);return J.jsx(Ae.p,{id:o.descriptionId,...n,ref:t})});dB.displayName=y1;var b1="DialogClose",fB=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Bt(b1,r);return J.jsx(Ae.button,{type:"button",...n,ref:t,onClick:Ce(e.onClick,()=>o.onOpenChange(!1))})});fB.displayName=b1;function hv(e){return e?"open":"closed"}var w1="DialogTitleWarning",[Zie,x1]=zU(w1,{contentName:sn,titleName:gv,docsSlug:"dialog"}),pB=({titleId:e})=>{const t=x1(w1),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},mB="DialogDescriptionWarning",vB=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${x1(mB).contentName}}.`;return i.useEffect(()=>{const n=e.current?.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Hd={exports:{}},ba={};/**
|
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 My;function gB(){if(My)return ba;My=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 ba.Fragment=t,ba.jsx=r,ba.jsxs=r,ba}var hi={};/**
|
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 Ay;function hB(){return Ay||(Ay=1,process.env.NODE_ENV!=="production"&&(function(){function e(f){if(f==null)return null;if(typeof f=="function")return f.$$typeof===L?null:f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case l:return"Fragment";case y:return"Profiler";case g:return"StrictMode";case S:return"Suspense";case T:return"SuspenseList";case O:return"Activity"}if(typeof f=="object")switch(typeof f.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),f.$$typeof){case E:return"Portal";case w:return(f.displayName||"Context")+".Provider";case b:return(f._context.displayName||"Context")+".Consumer";case k:var x=f.render;return f=f.displayName,f||(f=x.displayName||x.name||"",f=f!==""?"ForwardRef("+f+")":"ForwardRef"),f;case C:return x=f.displayName||null,x!==null?x:e(f.type)||"Memo";case j:x=f._payload,f=f._init;try{return e(f(x))}catch{}}return null}function t(f){return""+f}function r(f){try{t(f);var x=!1}catch{x=!0}if(x){x=console;var R=x.error,D=typeof Symbol=="function"&&Symbol.toStringTag&&f[Symbol.toStringTag]||f.constructor.name||"Object";return R.call(x,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",D),t(f)}}function n(f){if(f===l)return"<>";if(typeof f=="object"&&f!==null&&f.$$typeof===j)return"<...>";try{var x=e(f);return x?"<"+x+">":"<...>"}catch{return"<...>"}}function o(){var f=I.A;return f===null?null:f.getOwner()}function a(){return Error("react-stack-top-frame")}function c(f){if(B.call(f,"key")){var x=Object.getOwnPropertyDescriptor(f,"key").get;if(x&&x.isReactWarning)return!1}return f.key!==void 0}function s(f,x){function R(){P||(P=!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))}R.isReactWarning=!0,Object.defineProperty(f,"key",{get:R,configurable:!0})}function m(){var f=e(this.type);return U[f]||(U[f]=!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.")),f=this.props.ref,f!==void 0?f:null}function d(f,x,R,D,F,A,G,H){return R=A.ref,f={$$typeof:h,type:f,key:x,props:A,_owner:F},(R!==void 0?R:null)!==null?Object.defineProperty(f,"ref",{enumerable:!1,get:m}):Object.defineProperty(f,"ref",{enumerable:!1,value:null}),f._store={},Object.defineProperty(f._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(f,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(f,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:G}),Object.defineProperty(f,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:H}),Object.freeze&&(Object.freeze(f.props),Object.freeze(f)),f}function u(f,x,R,D,F,A,G,H){var _=x.children;if(_!==void 0)if(D)if(K(_)){for(D=0;D<_.length;D++)p(_[D]);Object.freeze&&Object.freeze(_)}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(_);if(B.call(x,"key")){_=e(f);var W=Object.keys(x).filter(function(ce){return ce!=="key"});D=0<W.length?"{key: someKey, "+W.join(": ..., ")+": ...}":"{key: someKey}",X[_+D]||(W=0<W.length?"{"+W.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} />`,D,_,W,_),X[_+D]=!0)}if(_=null,R!==void 0&&(r(R),_=""+R),c(x)&&(r(x.key),_=""+x.key),"key"in x){R={};for(var q in x)q!=="key"&&(R[q]=x[q])}else R=x;return _&&s(R,typeof f=="function"?f.displayName||f.name||"Unknown":f),d(f,_,A,F,o(),R,G,H)}function p(f){typeof f=="object"&&f!==null&&f.$$typeof===h&&f._store&&(f._store.validated=1)}var v=M,h=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),g=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"),S=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),O=Symbol.for("react.activity"),L=Symbol.for("react.client.reference"),I=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=Object.prototype.hasOwnProperty,K=Array.isArray,$=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(f){return f()}};var P,U={},V=v.react_stack_bottom_frame.bind(v,a)(),Y=$(n(a)),X={};hi.Fragment=l,hi.jsx=function(f,x,R,D,F){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,x,R,!1,D,F,A?Error("react-stack-top-frame"):V,A?$(n(f)):Y)},hi.jsxs=function(f,x,R,D,F){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,x,R,!0,D,F,A?Error("react-stack-top-frame"):V,A?$(n(f)):Y)}})()),hi}var Iy;function yB(){return Iy||(Iy=1,process.env.NODE_ENV==="production"?Hd.exports=gB():Hd.exports=hB()),Hd.exports}var Q=yB();M.createContext({locale:void 0});var bB=(e,t,r,n,o,a,c,s)=>{let m=document.documentElement,d=["light","dark"];function u(h){(Array.isArray(e)?e:[e]).forEach(E=>{let l=E==="class",g=l&&a?o.map(y=>a[y]||y):o;l?(m.classList.remove(...g),m.classList.add(a&&a[h]?a[h]:h)):m.setAttribute(E,h)}),p(h)}function p(h){s&&d.includes(h)&&(m.style.colorScheme=h)}function v(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(n)u(n);else try{let h=localStorage.getItem(t)||r,E=c&&h==="system"?v():h;u(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:d})=>{let u=JSON.stringify([r,t,a,e,s,c,n,o]).slice(1,-1);return i.createElement("script",{...d,suppressHydrationWarning:!0,nonce:typeof window>"u"?m:"",dangerouslySetInnerHTML:{__html:`(${bB.toString()})(${u})`}})});ie.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"}});ie.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 Fy(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function wB(...e){return t=>{let r=!1;const n=e.map(o=>{const a=Fy(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():Fy(e[o],null)}}}}function jt(...e){return i.useCallback(wB(...e),e)}function xB(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 Ku(e,t=[]){let r=[];function n(a,c){const s=i.createContext(c),m=r.length;r=[...r,c];const d=p=>{const{scope:v,children:h,...E}=p,l=v?.[e]?.[m]||s,g=i.useMemo(()=>E,Object.values(E));return Q.jsx(l.Provider,{value:g,children:h})};d.displayName=a+"Provider";function u(p,v){const h=v?.[e]?.[m]||s,E=i.useContext(h);if(E)return E;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[d,u]}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,EB(o,...t)]}function EB(...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 d=s(o)[`__scope${m}`];return{...c,...d}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}var Ba=globalThis?.document?i.useLayoutEffect:()=>{},kB=i[" useId ".trim().toString()]||(()=>{}),CB=0;function E1(e){const[t,r]=i.useState(kB());return Ba(()=>{r(n=>n??String(CB++))},[e]),t?`radix-${t}`:""}var SB=i[" useInsertionEffect ".trim().toString()]||Ba;function k1({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,a,c]=RB({defaultProp:t,onChange:r}),s=e!==void 0,m=s?e:o;{const u=i.useRef(e!==void 0);i.useEffect(()=>{const p=u.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.`),u.current=s},[s,n])}const d=i.useCallback(u=>{if(s){const p=jB(u)?u(e):u;p!==e&&c.current?.(p)}else a(u)},[s,e,a,c]);return[m,d]}function RB({defaultProp:e,onChange:t}){const[r,n]=i.useState(e),o=i.useRef(r),a=i.useRef(t);return SB(()=>{a.current=t},[t]),i.useEffect(()=>{o.current!==r&&(a.current?.(r),o.current=r)},[r,o]),[r,n,a]}function jB(e){return typeof e=="function"}var NB=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ie=NB.reduce((e,t)=>{const r=Z.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 TB(e,t){e&&ke.flushSync(()=>e.dispatchEvent(t))}function qo(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...r)=>t.current?.(...r),[])}function DB(e,t=globalThis?.document){const r=qo(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",Qp="dismissableLayer.update",OB="dismissableLayer.pointerDownOutside",PB="dismissableLayer.focusOutside",Ly,C1=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),S1=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:c,onDismiss:s,...m}=e,d=i.useContext(C1),[u,p]=i.useState(null),v=u?.ownerDocument??globalThis?.document,[,h]=i.useState({}),E=jt(t,C=>p(C)),l=Array.from(d.layers),[g]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),y=l.indexOf(g),b=u?l.indexOf(u):-1,w=d.layersWithOutsidePointerEventsDisabled.size>0,k=b>=y,S=IB(C=>{const j=C.target,O=[...d.branches].some(L=>L.contains(j));!k||O||(o?.(C),c?.(C),C.defaultPrevented||s?.())},v),T=FB(C=>{const j=C.target;[...d.branches].some(O=>O.contains(j))||(a?.(C),c?.(C),C.defaultPrevented||s?.())},v);return DB(C=>{b===d.layers.size-1&&(n?.(C),!C.defaultPrevented&&s&&(C.preventDefault(),s()))},v),i.useEffect(()=>{if(u)return r&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Ly=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(u)),d.layers.add(u),Wy(),()=>{r&&d.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=Ly)}},[u,v,r,d]),i.useEffect(()=>()=>{u&&(d.layers.delete(u),d.layersWithOutsidePointerEventsDisabled.delete(u),Wy())},[u,d]),i.useEffect(()=>{const C=()=>h({});return document.addEventListener(Qp,C),()=>document.removeEventListener(Qp,C)},[]),Q.jsx(Ie.div,{...m,ref:E,style:{pointerEvents:w?k?"auto":"none":void 0,...e.style},onFocusCapture:Se(e.onFocusCapture,T.onFocusCapture),onBlurCapture:Se(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:Se(e.onPointerDownCapture,S.onPointerDownCapture)})});S1.displayName=_B;var MB="DismissableLayerBranch",AB=i.forwardRef((e,t)=>{const r=i.useContext(C1),n=i.useRef(null),o=jt(t,n);return i.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),Q.jsx(Ie.div,{...e,ref:o})});AB.displayName=MB;function IB(e,t=globalThis?.document){const r=qo(e),n=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let m=function(){R1(OB,r,d,{discrete:!0})};const d={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 FB(e,t=globalThis?.document){const r=qo(e),n=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!n.current&&R1(PB,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 Wy(){const e=new CustomEvent(Qp);document.dispatchEvent(e)}function R1(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?TB(o,a):o.dispatchEvent(a)}var Xd="focusScope.autoFocusOnMount",Gd="focusScope.autoFocusOnUnmount",zy={bubbles:!1,cancelable:!0},LB="FocusScope",j1=i.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...c}=e,[s,m]=i.useState(null),d=qo(o),u=qo(a),p=i.useRef(null),v=jt(t,l=>m(l)),h=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(n){let l=function(w){if(h.paused||!s)return;const k=w.target;s.contains(k)?p.current=k:Rr(p.current,{select:!0})},g=function(w){if(h.paused||!s)return;const k=w.relatedTarget;k!==null&&(s.contains(k)||Rr(p.current,{select:!0}))},y=function(w){if(document.activeElement===document.body)for(const k of w)k.removedNodes.length>0&&Rr(s)};document.addEventListener("focusin",l),document.addEventListener("focusout",g);const b=new MutationObserver(y);return s&&b.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",l),document.removeEventListener("focusout",g),b.disconnect()}}},[n,s,h.paused]),i.useEffect(()=>{if(s){Uy.add(h);const l=document.activeElement;if(!s.contains(l)){const g=new CustomEvent(Xd,zy);s.addEventListener(Xd,d),s.dispatchEvent(g),g.defaultPrevented||(WB(BB(N1(s)),{select:!0}),document.activeElement===l&&Rr(s))}return()=>{s.removeEventListener(Xd,d),setTimeout(()=>{const g=new CustomEvent(Gd,zy);s.addEventListener(Gd,u),s.dispatchEvent(g),g.defaultPrevented||Rr(l??document.body,{select:!0}),s.removeEventListener(Gd,u),Uy.remove(h)},0)}}},[s,d,u,h]);const E=i.useCallback(l=>{if(!r&&!n||h.paused)return;const g=l.key==="Tab"&&!l.altKey&&!l.ctrlKey&&!l.metaKey,y=document.activeElement;if(g&&y){const b=l.currentTarget,[w,k]=zB(b);w&&k?!l.shiftKey&&y===k?(l.preventDefault(),r&&Rr(w,{select:!0})):l.shiftKey&&y===w&&(l.preventDefault(),r&&Rr(k,{select:!0})):y===b&&l.preventDefault()}},[r,n,h.paused]);return Q.jsx(Ie.div,{tabIndex:-1,...c,ref:v,onKeyDown:E})});j1.displayName=LB;function WB(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(Rr(n,{select:t}),document.activeElement!==r)return}function zB(e){const t=N1(e),r=$y(t,e),n=$y(t.reverse(),e);return[r,n]}function N1(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 $y(e,t){for(const r of e)if(!$B(r,{upTo:t}))return r}function $B(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 UB(e){return e instanceof HTMLInputElement&&"select"in e}function Rr(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&UB(e)&&t&&e.select()}}var Uy=YB();function YB(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=Yy(e,t),e.unshift(t)},remove(t){e=Yy(e,t),e[0]?.resume()}}}function Yy(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function BB(e){return e.filter(t=>t.tagName!=="A")}var KB="Portal",VB=i.forwardRef((e,t)=>{const{container:r,...n}=e,[o,a]=i.useState(!1);Ba(()=>a(!0),[]);const c=r||o&&globalThis?.document?.body;return c?Ee.createPortal(Q.jsx(Ie.div,{...n,ref:t}),c):null});VB.displayName=KB;function HB(e,t){return i.useReducer((r,n)=>t[r][n]??r,e)}var Vu=e=>{const{present:t,children:r}=e,n=XB(t),o=typeof r=="function"?r({present:n.isPresent}):i.Children.only(r),a=jt(n.ref,GB(o));return typeof r=="function"||n.isPresent?i.cloneElement(o,{ref:a}):null};Vu.displayName="Presence";function XB(e){const[t,r]=i.useState(),n=i.useRef(null),o=i.useRef(e),a=i.useRef("none"),c=e?"mounted":"unmounted",[s,m]=HB(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const d=yi(n.current);a.current=s==="mounted"?d:"none"},[s]),Ba(()=>{const d=n.current,u=o.current;if(u!==e){const p=a.current,v=yi(d);e?m("MOUNT"):v==="none"||d?.display==="none"?m("UNMOUNT"):m(u&&p!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,m]),Ba(()=>{if(t){let d;const u=t.ownerDocument.defaultView??window,p=h=>{const E=yi(n.current).includes(CSS.escape(h.animationName));if(h.target===t&&E&&(m("ANIMATION_END"),!o.current)){const l=t.style.animationFillMode;t.style.animationFillMode="forwards",d=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=l)})}},v=h=>{h.target===t&&(a.current=yi(n.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{u.clearTimeout(d),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(d=>{n.current=d?getComputedStyle(d):null,r(d)},[])}}function yi(e){return e?.animationName||"none"}function GB(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 qB(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??By()),document.body.insertAdjacentElement("beforeend",e[1]??By()),qd++,()=>{qd===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),qd--}},[])}function By(){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 T1(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 ZB(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",Lc="width-before-scroll-bar",JB="with-scroll-bars-hidden",QB="--removed-body-scroll-bar-size";function Zd(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function e9(e,t){var r=M.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 t9=typeof window<"u"?i.useLayoutEffect:i.useEffect,Ky=new WeakMap;function r9(e,t){var r=e9(null,function(n){return e.forEach(function(o){return Zd(o,n)})});return t9(function(){var n=Ky.get(r);if(n){var o=new Set(n),a=new Set(e),c=r.current;o.forEach(function(s){a.has(s)||Zd(s,null)}),a.forEach(function(s){o.has(s)||Zd(s,c)})}Ky.set(r,e)},[e]),r}function n9(e){return e}function o9(e,t){t===void 0&&(t=n9);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 u=c;c=[],u.forEach(a)},d=function(){return Promise.resolve().then(m)};d(),r={push:function(u){c.push(u),d()},filter:function(u){return c=c.filter(u),r}}}};return o}function a9(e){e===void 0&&(e={});var t=o9(null);return t.options=mt({async:!0,ssr:!1},e),t}var D1=function(e){var t=e.sideCar,r=T1(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))};D1.isSideCarExport=!0;function s9(e,t){return e.useMedium(t),D1}var _1=a9(),Jd=function(){},Hu=i.forwardRef(function(e,t){var r=i.useRef(null),n=i.useState({onScrollCapture:Jd,onWheelCapture:Jd,onTouchMoveCapture:Jd}),o=n[0],a=n[1],c=e.forwardProps,s=e.children,m=e.className,d=e.removeScrollBar,u=e.enabled,p=e.shards,v=e.sideCar,h=e.noRelative,E=e.noIsolation,l=e.inert,g=e.allowPinchZoom,y=e.as,b=y===void 0?"div":y,w=e.gapMode,k=T1(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=v,T=r9([r,t]),C=mt(mt({},k),o);return i.createElement(i.Fragment,null,u&&i.createElement(S,{sideCar:_1,removeScrollBar:d,shards:p,noRelative:h,noIsolation:E,inert:l,setCallbacks:a,allowPinchZoom:!!g,lockRef:r,gapMode:w}),c?i.cloneElement(i.Children.only(s),mt(mt({},C),{ref:T})):i.createElement(b,mt({},C,{className:m,ref:T}),s))});Hu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Hu.classNames={fullWidth:Lc,zeroRight:Fc};var i9=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function c9(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=i9();return t&&e.setAttribute("nonce",t),e}function u9(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function l9(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var d9=function(){var e=0,t=null;return{add:function(r){e==0&&(t=c9())&&(u9(t,r),l9(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},f9=function(){var e=d9();return function(t,r){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},O1=function(){var e=f9(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},p9={left:0,top:0,right:0,gap:0},Qd=function(e){return parseInt(e||"",10)||0},m9=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[Qd(r),Qd(n),Qd(o)]},v9=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return p9;var t=m9(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])}},g9=O1(),Wo="data-scroll-locked",h9=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(JB,` {
|
567
|
-
overflow: hidden `).concat(n,`;
|
568
|
-
padding-right: `).concat(s,"px ").concat(n,`;
|
569
|
-
}
|
570
|
-
body[`).concat(Wo,`] {
|
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(Lc,` {
|
588
|
-
margin-right: `).concat(s,"px ").concat(n,`;
|
589
|
-
}
|
590
|
-
|
591
|
-
.`).concat(Fc," .").concat(Fc,` {
|
592
|
-
right: 0 `).concat(n,`;
|
593
|
-
}
|
594
|
-
|
595
|
-
.`).concat(Lc," .").concat(Lc,` {
|
596
|
-
margin-right: 0 `).concat(n,`;
|
597
|
-
}
|
598
|
-
|
599
|
-
body[`).concat(Wo,`] {
|
600
|
-
`).concat(QB,": ").concat(s,`px;
|
601
|
-
}
|
602
|
-
`)},Vy=function(){var e=parseInt(document.body.getAttribute(Wo)||"0",10);return isFinite(e)?e:0},y9=function(){i.useEffect(function(){return document.body.setAttribute(Wo,(Vy()+1).toString()),function(){var e=Vy()-1;e<=0?document.body.removeAttribute(Wo):document.body.setAttribute(Wo,e.toString())}},[])},b9=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;y9();var a=i.useMemo(function(){return v9(o)},[o]);return i.createElement(g9,{styles:h9(a,!t,o,r?"":"!important")})},em=!1;if(typeof window<"u")try{var bi=Object.defineProperty({},"passive",{get:function(){return em=!0,!0}});window.addEventListener("test",bi,bi),window.removeEventListener("test",bi,bi)}catch{em=!1}var to=em?{passive:!1}:!1,w9=function(e){return e.tagName==="TEXTAREA"},P1=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!w9(e)&&r[t]==="visible")},x9=function(e){return P1(e,"overflowY")},E9=function(e){return P1(e,"overflowX")},Hy=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=M1(e,n);if(o){var a=A1(e,n),c=a[1],s=a[2];if(c>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},k9=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},C9=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},M1=function(e,t){return e==="v"?x9(t):E9(t)},A1=function(e,t){return e==="v"?k9(t):C9(t)},S9=function(e,t){return e==="h"&&t==="rtl"?-1:1},R9=function(e,t,r,n,o){var a=S9(e,window.getComputedStyle(t).direction),c=a*n,s=r.target,m=t.contains(s),d=!1,u=c>0,p=0,v=0;do{if(!s)break;var h=A1(e,s),E=h[0],l=h[1],g=h[2],y=l-g-a*E;(E||y)&&M1(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(u&&Math.abs(p)<1||!u&&Math.abs(v)<1)&&(d=!0),d},wi=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Xy=function(e){return[e.deltaX,e.deltaY]},Gy=function(e){return e&&"current"in e?e.current:e},j9=function(e,t){return e[0]===t[0]&&e[1]===t[1]},N9=function(e){return`
|
603
|
-
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
604
|
-
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
605
|
-
`)},T9=0,ro=[];function D9(e){var t=i.useRef([]),r=i.useRef([0,0]),n=i.useRef(),o=i.useState(T9++)[0],a=i.useState(O1)[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 l=ZB([e.lockRef.current],(e.shards||[]).map(Gy)).filter(Boolean);return l.forEach(function(g){return g.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),l.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=i.useCallback(function(l,g){if("touches"in l&&l.touches.length===2||l.type==="wheel"&&l.ctrlKey)return!c.current.allowPinchZoom;var y=wi(l),b=r.current,w="deltaX"in l?l.deltaX:b[0]-y[0],k="deltaY"in l?l.deltaY:b[1]-y[1],S,T=l.target,C=Math.abs(w)>Math.abs(k)?"h":"v";if("touches"in l&&C==="h"&&T.type==="range")return!1;var j=Hy(C,T);if(!j)return!0;if(j?S=C:(S=C==="v"?"h":"v",j=Hy(C,T)),!j)return!1;if(!n.current&&"changedTouches"in l&&(w||k)&&(n.current=S),!S)return!0;var O=n.current||S;return R9(O,g,l,O==="h"?w:k)},[]),m=i.useCallback(function(l){var g=l;if(!(!ro.length||ro[ro.length-1]!==a)){var y="deltaY"in g?Xy(g):wi(g),b=t.current.filter(function(S){return S.name===g.type&&(S.target===g.target||g.target===S.shadowParent)&&j9(S.delta,y)})[0];if(b&&b.should){g.cancelable&&g.preventDefault();return}if(!b){var w=(c.current.shards||[]).map(Gy).filter(Boolean).filter(function(S){return S.contains(g.target)}),k=w.length>0?s(g,w[0]):!c.current.noIsolation;k&&g.cancelable&&g.preventDefault()}}},[]),d=i.useCallback(function(l,g,y,b){var w={name:l,delta:g,target:y,should:b,shadowParent:_9(y)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(k){return k!==w})},1)},[]),u=i.useCallback(function(l){r.current=wi(l),n.current=void 0},[]),p=i.useCallback(function(l){d(l.type,Xy(l),l.target,s(l,e.lockRef.current))},[]),v=i.useCallback(function(l){d(l.type,wi(l),l.target,s(l,e.lockRef.current))},[]);i.useEffect(function(){return ro.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:v}),document.addEventListener("wheel",m,to),document.addEventListener("touchmove",m,to),document.addEventListener("touchstart",u,to),function(){ro=ro.filter(function(l){return l!==a}),document.removeEventListener("wheel",m,to),document.removeEventListener("touchmove",m,to),document.removeEventListener("touchstart",u,to)}},[]);var h=e.removeScrollBar,E=e.inert;return i.createElement(i.Fragment,null,E?i.createElement(a,{styles:N9(o)}):null,h?i.createElement(b9,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function _9(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const O9=s9(_1,D9);var I1=i.forwardRef(function(e,t){return i.createElement(Hu,mt({},e,{ref:t,sideCar:O9}))});I1.classNames=Hu.classNames;var P9=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},no=new WeakMap,xi=new WeakMap,Ei={},ef=0,F1=function(e){return e&&(e.host||F1(e.parentNode))},M9=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=F1(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})},A9=function(e,t,r,n){var o=M9(t,Array.isArray(e)?e:[e]);Ei[r]||(Ei[r]=new WeakMap);var a=Ei[r],c=[],s=new Set,m=new Set(o),d=function(p){!p||s.has(p)||(s.add(p),d(p.parentNode))};o.forEach(d);var u=function(p){!p||m.has(p)||Array.prototype.forEach.call(p.children,function(v){if(s.has(v))u(v);else try{var h=v.getAttribute(n),E=h!==null&&h!=="false",l=(no.get(v)||0)+1,g=(a.get(v)||0)+1;no.set(v,l),a.set(v,g),c.push(v),l===1&&E&&xi.set(v,!0),g===1&&v.setAttribute(r,"true"),E||v.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",v,y)}})};return u(t),s.clear(),ef++,function(){c.forEach(function(p){var v=no.get(p)-1,h=a.get(p)-1;no.set(p,v),a.set(p,h),v||(xi.has(p)||p.removeAttribute(n),xi.delete(p)),h||p.removeAttribute(r)}),ef--,ef||(no=new WeakMap,no=new WeakMap,xi=new WeakMap,Ei={})}},I9=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=P9(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),A9(n,o,r,"aria-hidden")):function(){return null}},L1="Dialog",[W1]=Ku(L1),[Jie,Kt]=W1(L1),z1="DialogTrigger",F9=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Kt(z1,r),a=jt(t,o.triggerRef);return Q.jsx(Ie.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":bv(o.open),...n,ref:a,onClick:Se(e.onClick,o.onOpenToggle)})});F9.displayName=z1;var L9="DialogPortal",[Qie,$1]=W1(L9,{forceMount:void 0}),hu="DialogOverlay",W9=i.forwardRef((e,t)=>{const r=$1(hu,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Kt(hu,e.__scopeDialog);return a.modal?Q.jsx(Vu,{present:n||a.open,children:Q.jsx($9,{...o,ref:t})}):null});W9.displayName=hu;var z9=Z.createSlot("DialogOverlay.RemoveScroll"),$9=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Kt(hu,r);return Q.jsx(I1,{as:z9,allowPinchZoom:!0,shards:[o.contentRef],children:Q.jsx(Ie.div,{"data-state":bv(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),cn="DialogContent",U9=i.forwardRef((e,t)=>{const r=$1(cn,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Kt(cn,e.__scopeDialog);return Q.jsx(Vu,{present:n||a.open,children:a.modal?Q.jsx(Y9,{...o,ref:t}):Q.jsx(B9,{...o,ref:t})})});U9.displayName=cn;var Y9=i.forwardRef((e,t)=>{const r=Kt(cn,e.__scopeDialog),n=i.useRef(null),o=jt(t,r.contentRef,n);return i.useEffect(()=>{const a=n.current;if(a)return I9(a)},[]),Q.jsx(U1,{...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())})}),B9=i.forwardRef((e,t)=>{const r=Kt(cn,e.__scopeDialog),n=i.useRef(!1),o=i.useRef(!1);return Q.jsx(U1,{...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()}})}),U1=i.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...c}=e,s=Kt(cn,r),m=i.useRef(null),d=jt(t,m);return qB(),Q.jsxs(Q.Fragment,{children:[Q.jsx(j1,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:Q.jsx(S1,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":bv(s.open),...c,ref:d,onDismiss:()=>s.onOpenChange(!1)})}),Q.jsxs(Q.Fragment,{children:[Q.jsx(X9,{titleId:s.titleId}),Q.jsx(q9,{contentRef:m,descriptionId:s.descriptionId})]})]})}),yv="DialogTitle",K9=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Kt(yv,r);return Q.jsx(Ie.h2,{id:o.titleId,...n,ref:t})});K9.displayName=yv;var Y1="DialogDescription",V9=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Kt(Y1,r);return Q.jsx(Ie.p,{id:o.descriptionId,...n,ref:t})});V9.displayName=Y1;var B1="DialogClose",H9=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Kt(B1,r);return Q.jsx(Ie.button,{type:"button",...n,ref:t,onClick:Se(e.onClick,()=>o.onOpenChange(!1))})});H9.displayName=B1;function bv(e){return e?"open":"closed"}var K1="DialogTitleWarning",[ece,V1]=xB(K1,{contentName:cn,titleName:yv,docsSlug:"dialog"}),X9=({titleId:e})=>{const t=V1(K1),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},G9="DialogDescriptionWarning",q9=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${V1(G9).contentName}}.`;return i.useEffect(()=>{const n=e.current?.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},tf={exports:{}},wa={};/**
|
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 qy;function Z9(){if(qy)return wa;qy=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 wa.Fragment=t,wa.jsx=r,wa.jsxs=r,wa}var ki={};/**
|
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 Zy;function J9(){return Zy||(Zy=1,process.env.NODE_ENV!=="production"&&(function(){function e(f){if(f==null)return null;if(typeof f=="function")return f.$$typeof===L?null:f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case l:return"Fragment";case y:return"Profiler";case g:return"StrictMode";case S:return"Suspense";case T:return"SuspenseList";case O:return"Activity"}if(typeof f=="object")switch(typeof f.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),f.$$typeof){case E:return"Portal";case w:return(f.displayName||"Context")+".Provider";case b:return(f._context.displayName||"Context")+".Consumer";case k:var x=f.render;return f=f.displayName,f||(f=x.displayName||x.name||"",f=f!==""?"ForwardRef("+f+")":"ForwardRef"),f;case C:return x=f.displayName||null,x!==null?x:e(f.type)||"Memo";case j:x=f._payload,f=f._init;try{return e(f(x))}catch{}}return null}function t(f){return""+f}function r(f){try{t(f);var x=!1}catch{x=!0}if(x){x=console;var R=x.error,D=typeof Symbol=="function"&&Symbol.toStringTag&&f[Symbol.toStringTag]||f.constructor.name||"Object";return R.call(x,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",D),t(f)}}function n(f){if(f===l)return"<>";if(typeof f=="object"&&f!==null&&f.$$typeof===j)return"<...>";try{var x=e(f);return x?"<"+x+">":"<...>"}catch{return"<...>"}}function o(){var f=I.A;return f===null?null:f.getOwner()}function a(){return Error("react-stack-top-frame")}function c(f){if(B.call(f,"key")){var x=Object.getOwnPropertyDescriptor(f,"key").get;if(x&&x.isReactWarning)return!1}return f.key!==void 0}function s(f,x){function R(){P||(P=!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))}R.isReactWarning=!0,Object.defineProperty(f,"key",{get:R,configurable:!0})}function m(){var f=e(this.type);return U[f]||(U[f]=!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.")),f=this.props.ref,f!==void 0?f:null}function d(f,x,R,D,F,A,G,H){return R=A.ref,f={$$typeof:h,type:f,key:x,props:A,_owner:F},(R!==void 0?R:null)!==null?Object.defineProperty(f,"ref",{enumerable:!1,get:m}):Object.defineProperty(f,"ref",{enumerable:!1,value:null}),f._store={},Object.defineProperty(f._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(f,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(f,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:G}),Object.defineProperty(f,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:H}),Object.freeze&&(Object.freeze(f.props),Object.freeze(f)),f}function u(f,x,R,D,F,A,G,H){var _=x.children;if(_!==void 0)if(D)if(K(_)){for(D=0;D<_.length;D++)p(_[D]);Object.freeze&&Object.freeze(_)}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(_);if(B.call(x,"key")){_=e(f);var W=Object.keys(x).filter(function(ce){return ce!=="key"});D=0<W.length?"{key: someKey, "+W.join(": ..., ")+": ...}":"{key: someKey}",X[_+D]||(W=0<W.length?"{"+W.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} />`,D,_,W,_),X[_+D]=!0)}if(_=null,R!==void 0&&(r(R),_=""+R),c(x)&&(r(x.key),_=""+x.key),"key"in x){R={};for(var q in x)q!=="key"&&(R[q]=x[q])}else R=x;return _&&s(R,typeof f=="function"?f.displayName||f.name||"Unknown":f),d(f,_,A,F,o(),R,G,H)}function p(f){typeof f=="object"&&f!==null&&f.$$typeof===h&&f._store&&(f._store.validated=1)}var v=M,h=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),g=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"),S=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),O=Symbol.for("react.activity"),L=Symbol.for("react.client.reference"),I=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=Object.prototype.hasOwnProperty,K=Array.isArray,$=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(f){return f()}};var P,U={},V=v.react_stack_bottom_frame.bind(v,a)(),Y=$(n(a)),X={};ki.Fragment=l,ki.jsx=function(f,x,R,D,F){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,x,R,!1,D,F,A?Error("react-stack-top-frame"):V,A?$(n(f)):Y)},ki.jsxs=function(f,x,R,D,F){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,x,R,!0,D,F,A?Error("react-stack-top-frame"):V,A?$(n(f)):Y)}})()),ki}var Jy;function Q9(){return Jy||(Jy=1,process.env.NODE_ENV==="production"?tf.exports=Z9():tf.exports=J9()),tf.exports}var ee=Q9();M.createContext({locale:void 0});var e3=(e,t,r,n,o,a,c,s)=>{let m=document.documentElement,d=["light","dark"];function u(h){(Array.isArray(e)?e:[e]).forEach(E=>{let l=E==="class",g=l&&a?o.map(y=>a[y]||y):o;l?(m.classList.remove(...g),m.classList.add(a&&a[h]?a[h]:h)):m.setAttribute(E,h)}),p(h)}function p(h){s&&d.includes(h)&&(m.style.colorScheme=h)}function v(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(n)u(n);else try{let h=localStorage.getItem(t)||r,E=c&&h==="system"?v():h;u(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:d})=>{let u=JSON.stringify([r,t,a,e,s,c,n,o]).slice(1,-1);return i.createElement("script",{...d,suppressHydrationWarning:!0,nonce:typeof window>"u"?m:"",dangerouslySetInnerHTML:{__html:`(${e3.toString()})(${u})`}})});ie.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"}});ie.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 Qy(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function t3(...e){return t=>{let r=!1;const n=e.map(o=>{const a=Qy(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():Qy(e[o],null)}}}}function Nt(...e){return i.useCallback(t3(...e),e)}function r3(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 Xu(e,t=[]){let r=[];function n(a,c){const s=i.createContext(c),m=r.length;r=[...r,c];const d=p=>{const{scope:v,children:h,...E}=p,l=v?.[e]?.[m]||s,g=i.useMemo(()=>E,Object.values(E));return ee.jsx(l.Provider,{value:g,children:h})};d.displayName=a+"Provider";function u(p,v){const h=v?.[e]?.[m]||s,E=i.useContext(h);if(E)return E;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[d,u]}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,n3(o,...t)]}function n3(...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 d=s(o)[`__scope${m}`];return{...c,...d}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}var Ka=globalThis?.document?i.useLayoutEffect:()=>{},o3=i[" useId ".trim().toString()]||(()=>{}),a3=0;function H1(e){const[t,r]=i.useState(o3());return Ka(()=>{r(n=>n??String(a3++))},[e]),t?`radix-${t}`:""}var s3=i[" useInsertionEffect ".trim().toString()]||Ka;function X1({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,a,c]=i3({defaultProp:t,onChange:r}),s=e!==void 0,m=s?e:o;{const u=i.useRef(e!==void 0);i.useEffect(()=>{const p=u.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.`),u.current=s},[s,n])}const d=i.useCallback(u=>{if(s){const p=c3(u)?u(e):u;p!==e&&c.current?.(p)}else a(u)},[s,e,a,c]);return[m,d]}function i3({defaultProp:e,onChange:t}){const[r,n]=i.useState(e),o=i.useRef(r),a=i.useRef(t);return s3(()=>{a.current=t},[t]),i.useEffect(()=>{o.current!==r&&(a.current?.(r),o.current=r)},[r,o]),[r,n,a]}function c3(e){return typeof e=="function"}var u3=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Fe=u3.reduce((e,t)=>{const r=Z.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 l3(e,t){e&&ke.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 d3(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 f3="DismissableLayer",tm="dismissableLayer.update",p3="dismissableLayer.pointerDownOutside",m3="dismissableLayer.focusOutside",eb,G1=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),q1=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:c,onDismiss:s,...m}=e,d=i.useContext(G1),[u,p]=i.useState(null),v=u?.ownerDocument??globalThis?.document,[,h]=i.useState({}),E=Nt(t,C=>p(C)),l=Array.from(d.layers),[g]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),y=l.indexOf(g),b=u?l.indexOf(u):-1,w=d.layersWithOutsidePointerEventsDisabled.size>0,k=b>=y,S=h3(C=>{const j=C.target,O=[...d.branches].some(L=>L.contains(j));!k||O||(o?.(C),c?.(C),C.defaultPrevented||s?.())},v),T=y3(C=>{const j=C.target;[...d.branches].some(O=>O.contains(j))||(a?.(C),c?.(C),C.defaultPrevented||s?.())},v);return d3(C=>{b===d.layers.size-1&&(n?.(C),!C.defaultPrevented&&s&&(C.preventDefault(),s()))},v),i.useEffect(()=>{if(u)return r&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(eb=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(u)),d.layers.add(u),tb(),()=>{r&&d.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=eb)}},[u,v,r,d]),i.useEffect(()=>()=>{u&&(d.layers.delete(u),d.layersWithOutsidePointerEventsDisabled.delete(u),tb())},[u,d]),i.useEffect(()=>{const C=()=>h({});return document.addEventListener(tm,C),()=>document.removeEventListener(tm,C)},[]),ee.jsx(Fe.div,{...m,ref:E,style:{pointerEvents:w?k?"auto":"none":void 0,...e.style},onFocusCapture:Re(e.onFocusCapture,T.onFocusCapture),onBlurCapture:Re(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:Re(e.onPointerDownCapture,S.onPointerDownCapture)})});q1.displayName=f3;var v3="DismissableLayerBranch",g3=i.forwardRef((e,t)=>{const r=i.useContext(G1),n=i.useRef(null),o=Nt(t,n);return i.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),ee.jsx(Fe.div,{...e,ref:o})});g3.displayName=v3;function h3(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(){Z1(p3,r,d,{discrete:!0})};const d={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 y3(e,t=globalThis?.document){const r=Zo(e),n=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!n.current&&Z1(m3,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 tb(){const e=new CustomEvent(tm);document.dispatchEvent(e)}function Z1(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?l3(o,a):o.dispatchEvent(a)}var rf="focusScope.autoFocusOnMount",nf="focusScope.autoFocusOnUnmount",rb={bubbles:!1,cancelable:!0},b3="FocusScope",J1=i.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...c}=e,[s,m]=i.useState(null),d=Zo(o),u=Zo(a),p=i.useRef(null),v=Nt(t,l=>m(l)),h=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(n){let l=function(w){if(h.paused||!s)return;const k=w.target;s.contains(k)?p.current=k:jr(p.current,{select:!0})},g=function(w){if(h.paused||!s)return;const k=w.relatedTarget;k!==null&&(s.contains(k)||jr(p.current,{select:!0}))},y=function(w){if(document.activeElement===document.body)for(const k of w)k.removedNodes.length>0&&jr(s)};document.addEventListener("focusin",l),document.addEventListener("focusout",g);const b=new MutationObserver(y);return s&&b.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",l),document.removeEventListener("focusout",g),b.disconnect()}}},[n,s,h.paused]),i.useEffect(()=>{if(s){ob.add(h);const l=document.activeElement;if(!s.contains(l)){const g=new CustomEvent(rf,rb);s.addEventListener(rf,d),s.dispatchEvent(g),g.defaultPrevented||(w3(S3(Q1(s)),{select:!0}),document.activeElement===l&&jr(s))}return()=>{s.removeEventListener(rf,d),setTimeout(()=>{const g=new CustomEvent(nf,rb);s.addEventListener(nf,u),s.dispatchEvent(g),g.defaultPrevented||jr(l??document.body,{select:!0}),s.removeEventListener(nf,u),ob.remove(h)},0)}}},[s,d,u,h]);const E=i.useCallback(l=>{if(!r&&!n||h.paused)return;const g=l.key==="Tab"&&!l.altKey&&!l.ctrlKey&&!l.metaKey,y=document.activeElement;if(g&&y){const b=l.currentTarget,[w,k]=x3(b);w&&k?!l.shiftKey&&y===k?(l.preventDefault(),r&&jr(w,{select:!0})):l.shiftKey&&y===w&&(l.preventDefault(),r&&jr(k,{select:!0})):y===b&&l.preventDefault()}},[r,n,h.paused]);return ee.jsx(Fe.div,{tabIndex:-1,...c,ref:v,onKeyDown:E})});J1.displayName=b3;function w3(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(jr(n,{select:t}),document.activeElement!==r)return}function x3(e){const t=Q1(e),r=nb(t,e),n=nb(t.reverse(),e);return[r,n]}function Q1(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(!E3(r,{upTo:t}))return r}function E3(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 k3(e){return e instanceof HTMLInputElement&&"select"in e}function jr(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&k3(e)&&t&&e.select()}}var ob=C3();function C3(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=ab(e,t),e.unshift(t)},remove(t){e=ab(e,t),e[0]?.resume()}}}function ab(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function S3(e){return e.filter(t=>t.tagName!=="A")}var R3="Portal",j3=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?Ee.createPortal(ee.jsx(Fe.div,{...n,ref:t}),c):null});j3.displayName=R3;function N3(e,t){return i.useReducer((r,n)=>t[r][n]??r,e)}var Gu=e=>{const{present:t,children:r}=e,n=T3(t),o=typeof r=="function"?r({present:n.isPresent}):i.Children.only(r),a=Nt(n.ref,D3(o));return typeof r=="function"||n.isPresent?i.cloneElement(o,{ref:a}):null};Gu.displayName="Presence";function T3(e){const[t,r]=i.useState(),n=i.useRef(null),o=i.useRef(e),a=i.useRef("none"),c=e?"mounted":"unmounted",[s,m]=N3(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const d=Ci(n.current);a.current=s==="mounted"?d:"none"},[s]),Ka(()=>{const d=n.current,u=o.current;if(u!==e){const p=a.current,v=Ci(d);e?m("MOUNT"):v==="none"||d?.display==="none"?m("UNMOUNT"):m(u&&p!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,m]),Ka(()=>{if(t){let d;const u=t.ownerDocument.defaultView??window,p=h=>{const E=Ci(n.current).includes(CSS.escape(h.animationName));if(h.target===t&&E&&(m("ANIMATION_END"),!o.current)){const l=t.style.animationFillMode;t.style.animationFillMode="forwards",d=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=l)})}},v=h=>{h.target===t&&(a.current=Ci(n.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{u.clearTimeout(d),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(d=>{n.current=d?getComputedStyle(d):null,r(d)},[])}}function Ci(e){return e?.animationName||"none"}function D3(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 of=0;function _3(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??sb()),document.body.insertAdjacentElement("beforeend",e[1]??sb()),of++,()=>{of===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),of--}},[])}function sb(){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 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 eS(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 O3(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",zc="width-before-scroll-bar",P3="with-scroll-bars-hidden",M3="--removed-body-scroll-bar-size";function af(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function A3(e,t){var r=M.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 I3=typeof window<"u"?i.useLayoutEffect:i.useEffect,ib=new WeakMap;function F3(e,t){var r=A3(null,function(n){return e.forEach(function(o){return af(o,n)})});return I3(function(){var n=ib.get(r);if(n){var o=new Set(n),a=new Set(e),c=r.current;o.forEach(function(s){a.has(s)||af(s,null)}),a.forEach(function(s){o.has(s)||af(s,c)})}ib.set(r,e)},[e]),r}function L3(e){return e}function W3(e,t){t===void 0&&(t=L3);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 u=c;c=[],u.forEach(a)},d=function(){return Promise.resolve().then(m)};d(),r={push:function(u){c.push(u),d()},filter:function(u){return c=c.filter(u),r}}}};return o}function z3(e){e===void 0&&(e={});var t=W3(null);return t.options=vt({async:!0,ssr:!1},e),t}var tS=function(e){var t=e.sideCar,r=eS(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))};tS.isSideCarExport=!0;function $3(e,t){return e.useMedium(t),tS}var rS=z3(),sf=function(){},qu=i.forwardRef(function(e,t){var r=i.useRef(null),n=i.useState({onScrollCapture:sf,onWheelCapture:sf,onTouchMoveCapture:sf}),o=n[0],a=n[1],c=e.forwardProps,s=e.children,m=e.className,d=e.removeScrollBar,u=e.enabled,p=e.shards,v=e.sideCar,h=e.noRelative,E=e.noIsolation,l=e.inert,g=e.allowPinchZoom,y=e.as,b=y===void 0?"div":y,w=e.gapMode,k=eS(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=v,T=F3([r,t]),C=vt(vt({},k),o);return i.createElement(i.Fragment,null,u&&i.createElement(S,{sideCar:rS,removeScrollBar:d,shards:p,noRelative:h,noIsolation:E,inert:l,setCallbacks:a,allowPinchZoom:!!g,lockRef:r,gapMode:w}),c?i.cloneElement(i.Children.only(s),vt(vt({},C),{ref:T})):i.createElement(b,vt({},C,{className:m,ref:T}),s))});qu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};qu.classNames={fullWidth:zc,zeroRight:Wc};var U3=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Y3(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=U3();return t&&e.setAttribute("nonce",t),e}function B3(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function K3(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var V3=function(){var e=0,t=null;return{add:function(r){e==0&&(t=Y3())&&(B3(t,r),K3(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},H3=function(){var e=V3();return function(t,r){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},nS=function(){var e=H3(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},X3={left:0,top:0,right:0,gap:0},cf=function(e){return parseInt(e||"",10)||0},G3=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[cf(r),cf(n),cf(o)]},q3=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return X3;var t=G3(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])}},Z3=nS(),zo="data-scroll-locked",J3=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(P3,` {
|
632
|
-
overflow: hidden `).concat(n,`;
|
633
|
-
padding-right: `).concat(s,"px ").concat(n,`;
|
634
|
-
}
|
635
|
-
body[`).concat(zo,`] {
|
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(Wc,` {
|
649
|
-
right: `).concat(s,"px ").concat(n,`;
|
650
|
-
}
|
651
|
-
|
652
|
-
.`).concat(zc,` {
|
653
|
-
margin-right: `).concat(s,"px ").concat(n,`;
|
654
|
-
}
|
655
|
-
|
656
|
-
.`).concat(Wc," .").concat(Wc,` {
|
657
|
-
right: 0 `).concat(n,`;
|
658
|
-
}
|
659
|
-
|
660
|
-
.`).concat(zc," .").concat(zc,` {
|
661
|
-
margin-right: 0 `).concat(n,`;
|
662
|
-
}
|
663
|
-
|
664
|
-
body[`).concat(zo,`] {
|
665
|
-
`).concat(M3,": ").concat(s,`px;
|
666
|
-
}
|
667
|
-
`)},cb=function(){var e=parseInt(document.body.getAttribute(zo)||"0",10);return isFinite(e)?e:0},Q3=function(){i.useEffect(function(){return document.body.setAttribute(zo,(cb()+1).toString()),function(){var e=cb()-1;e<=0?document.body.removeAttribute(zo):document.body.setAttribute(zo,e.toString())}},[])},eK=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;Q3();var a=i.useMemo(function(){return q3(o)},[o]);return i.createElement(Z3,{styles:J3(a,!t,o,r?"":"!important")})},rm=!1;if(typeof window<"u")try{var Si=Object.defineProperty({},"passive",{get:function(){return rm=!0,!0}});window.addEventListener("test",Si,Si),window.removeEventListener("test",Si,Si)}catch{rm=!1}var oo=rm?{passive:!1}:!1,tK=function(e){return e.tagName==="TEXTAREA"},oS=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!tK(e)&&r[t]==="visible")},rK=function(e){return oS(e,"overflowY")},nK=function(e){return oS(e,"overflowX")},ub=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=aS(e,n);if(o){var a=sS(e,n),c=a[1],s=a[2];if(c>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},oK=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},aK=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},aS=function(e,t){return e==="v"?rK(t):nK(t)},sS=function(e,t){return e==="v"?oK(t):aK(t)},sK=function(e,t){return e==="h"&&t==="rtl"?-1:1},iK=function(e,t,r,n,o){var a=sK(e,window.getComputedStyle(t).direction),c=a*n,s=r.target,m=t.contains(s),d=!1,u=c>0,p=0,v=0;do{if(!s)break;var h=sS(e,s),E=h[0],l=h[1],g=h[2],y=l-g-a*E;(E||y)&&aS(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(u&&Math.abs(p)<1||!u&&Math.abs(v)<1)&&(d=!0),d},Ri=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},lb=function(e){return[e.deltaX,e.deltaY]},db=function(e){return e&&"current"in e?e.current:e},cK=function(e,t){return e[0]===t[0]&&e[1]===t[1]},uK=function(e){return`
|
668
|
-
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
669
|
-
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
670
|
-
`)},lK=0,ao=[];function dK(e){var t=i.useRef([]),r=i.useRef([0,0]),n=i.useRef(),o=i.useState(lK++)[0],a=i.useState(nS)[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 l=O3([e.lockRef.current],(e.shards||[]).map(db)).filter(Boolean);return l.forEach(function(g){return g.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),l.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=i.useCallback(function(l,g){if("touches"in l&&l.touches.length===2||l.type==="wheel"&&l.ctrlKey)return!c.current.allowPinchZoom;var y=Ri(l),b=r.current,w="deltaX"in l?l.deltaX:b[0]-y[0],k="deltaY"in l?l.deltaY:b[1]-y[1],S,T=l.target,C=Math.abs(w)>Math.abs(k)?"h":"v";if("touches"in l&&C==="h"&&T.type==="range")return!1;var j=ub(C,T);if(!j)return!0;if(j?S=C:(S=C==="v"?"h":"v",j=ub(C,T)),!j)return!1;if(!n.current&&"changedTouches"in l&&(w||k)&&(n.current=S),!S)return!0;var O=n.current||S;return iK(O,g,l,O==="h"?w:k)},[]),m=i.useCallback(function(l){var g=l;if(!(!ao.length||ao[ao.length-1]!==a)){var y="deltaY"in g?lb(g):Ri(g),b=t.current.filter(function(S){return S.name===g.type&&(S.target===g.target||g.target===S.shadowParent)&&cK(S.delta,y)})[0];if(b&&b.should){g.cancelable&&g.preventDefault();return}if(!b){var w=(c.current.shards||[]).map(db).filter(Boolean).filter(function(S){return S.contains(g.target)}),k=w.length>0?s(g,w[0]):!c.current.noIsolation;k&&g.cancelable&&g.preventDefault()}}},[]),d=i.useCallback(function(l,g,y,b){var w={name:l,delta:g,target:y,should:b,shadowParent:fK(y)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(k){return k!==w})},1)},[]),u=i.useCallback(function(l){r.current=Ri(l),n.current=void 0},[]),p=i.useCallback(function(l){d(l.type,lb(l),l.target,s(l,e.lockRef.current))},[]),v=i.useCallback(function(l){d(l.type,Ri(l),l.target,s(l,e.lockRef.current))},[]);i.useEffect(function(){return ao.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:v}),document.addEventListener("wheel",m,oo),document.addEventListener("touchmove",m,oo),document.addEventListener("touchstart",u,oo),function(){ao=ao.filter(function(l){return l!==a}),document.removeEventListener("wheel",m,oo),document.removeEventListener("touchmove",m,oo),document.removeEventListener("touchstart",u,oo)}},[]);var h=e.removeScrollBar,E=e.inert;return i.createElement(i.Fragment,null,E?i.createElement(a,{styles:uK(o)}):null,h?i.createElement(eK,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function fK(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const pK=$3(rS,dK);var iS=i.forwardRef(function(e,t){return i.createElement(qu,vt({},e,{ref:t,sideCar:pK}))});iS.classNames=qu.classNames;var mK=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},so=new WeakMap,ji=new WeakMap,Ni={},uf=0,cS=function(e){return e&&(e.host||cS(e.parentNode))},vK=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=cS(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})},gK=function(e,t,r,n){var o=vK(t,Array.isArray(e)?e:[e]);Ni[r]||(Ni[r]=new WeakMap);var a=Ni[r],c=[],s=new Set,m=new Set(o),d=function(p){!p||s.has(p)||(s.add(p),d(p.parentNode))};o.forEach(d);var u=function(p){!p||m.has(p)||Array.prototype.forEach.call(p.children,function(v){if(s.has(v))u(v);else try{var h=v.getAttribute(n),E=h!==null&&h!=="false",l=(so.get(v)||0)+1,g=(a.get(v)||0)+1;so.set(v,l),a.set(v,g),c.push(v),l===1&&E&&ji.set(v,!0),g===1&&v.setAttribute(r,"true"),E||v.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",v,y)}})};return u(t),s.clear(),uf++,function(){c.forEach(function(p){var v=so.get(p)-1,h=a.get(p)-1;so.set(p,v),a.set(p,h),v||(ji.has(p)||p.removeAttribute(n),ji.delete(p)),h||p.removeAttribute(r)}),uf--,uf||(so=new WeakMap,so=new WeakMap,ji=new WeakMap,Ni={})}},hK=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=mK(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),gK(n,o,r,"aria-hidden")):function(){return null}},uS="Dialog",[lS]=Xu(uS),[tce,Vt]=lS(uS),dS="DialogTrigger",yK=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Vt(dS,r),a=Nt(t,o.triggerRef);return ee.jsx(Fe.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":xv(o.open),...n,ref:a,onClick:Re(e.onClick,o.onOpenToggle)})});yK.displayName=dS;var bK="DialogPortal",[rce,fS]=lS(bK,{forceMount:void 0}),yu="DialogOverlay",wK=i.forwardRef((e,t)=>{const r=fS(yu,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Vt(yu,e.__scopeDialog);return a.modal?ee.jsx(Gu,{present:n||a.open,children:ee.jsx(EK,{...o,ref:t})}):null});wK.displayName=yu;var xK=Z.createSlot("DialogOverlay.RemoveScroll"),EK=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Vt(yu,r);return ee.jsx(iS,{as:xK,allowPinchZoom:!0,shards:[o.contentRef],children:ee.jsx(Fe.div,{"data-state":xv(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),un="DialogContent",kK=i.forwardRef((e,t)=>{const r=fS(un,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Vt(un,e.__scopeDialog);return ee.jsx(Gu,{present:n||a.open,children:a.modal?ee.jsx(CK,{...o,ref:t}):ee.jsx(SK,{...o,ref:t})})});kK.displayName=un;var CK=i.forwardRef((e,t)=>{const r=Vt(un,e.__scopeDialog),n=i.useRef(null),o=Nt(t,r.contentRef,n);return i.useEffect(()=>{const a=n.current;if(a)return hK(a)},[]),ee.jsx(pS,{...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())})}),SK=i.forwardRef((e,t)=>{const r=Vt(un,e.__scopeDialog),n=i.useRef(!1),o=i.useRef(!1);return ee.jsx(pS,{...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()}})}),pS=i.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...c}=e,s=Vt(un,r),m=i.useRef(null),d=Nt(t,m);return _3(),ee.jsxs(ee.Fragment,{children:[ee.jsx(J1,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:ee.jsx(q1,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":xv(s.open),...c,ref:d,onDismiss:()=>s.onOpenChange(!1)})}),ee.jsxs(ee.Fragment,{children:[ee.jsx(TK,{titleId:s.titleId}),ee.jsx(_K,{contentRef:m,descriptionId:s.descriptionId})]})]})}),wv="DialogTitle",RK=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Vt(wv,r);return ee.jsx(Fe.h2,{id:o.titleId,...n,ref:t})});RK.displayName=wv;var mS="DialogDescription",jK=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Vt(mS,r);return ee.jsx(Fe.p,{id:o.descriptionId,...n,ref:t})});jK.displayName=mS;var vS="DialogClose",NK=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Vt(vS,r);return ee.jsx(Fe.button,{type:"button",...n,ref:t,onClick:Re(e.onClick,()=>o.onOpenChange(!1))})});NK.displayName=vS;function xv(e){return e?"open":"closed"}var gS="DialogTitleWarning",[nce,hS]=r3(gS,{contentName:un,titleName:wv,docsSlug:"dialog"}),TK=({titleId:e})=>{const t=hS(gS),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},DK="DialogDescriptionWarning",_K=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${hS(DK).contentName}}.`;return i.useEffect(()=>{const n=e.current?.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},lf={exports:{}},xa={};/**
|
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 fb;function OK(){if(fb)return xa;fb=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 xa.Fragment=t,xa.jsx=r,xa.jsxs=r,xa}var Ti={};/**
|
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 pb;function PK(){return pb||(pb=1,process.env.NODE_ENV!=="production"&&(function(){function e(f){if(f==null)return null;if(typeof f=="function")return f.$$typeof===L?null:f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case l:return"Fragment";case y:return"Profiler";case g:return"StrictMode";case S:return"Suspense";case T:return"SuspenseList";case O:return"Activity"}if(typeof f=="object")switch(typeof f.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),f.$$typeof){case E:return"Portal";case w:return(f.displayName||"Context")+".Provider";case b:return(f._context.displayName||"Context")+".Consumer";case k:var x=f.render;return f=f.displayName,f||(f=x.displayName||x.name||"",f=f!==""?"ForwardRef("+f+")":"ForwardRef"),f;case C:return x=f.displayName||null,x!==null?x:e(f.type)||"Memo";case j:x=f._payload,f=f._init;try{return e(f(x))}catch{}}return null}function t(f){return""+f}function r(f){try{t(f);var x=!1}catch{x=!0}if(x){x=console;var R=x.error,D=typeof Symbol=="function"&&Symbol.toStringTag&&f[Symbol.toStringTag]||f.constructor.name||"Object";return R.call(x,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",D),t(f)}}function n(f){if(f===l)return"<>";if(typeof f=="object"&&f!==null&&f.$$typeof===j)return"<...>";try{var x=e(f);return x?"<"+x+">":"<...>"}catch{return"<...>"}}function o(){var f=I.A;return f===null?null:f.getOwner()}function a(){return Error("react-stack-top-frame")}function c(f){if(B.call(f,"key")){var x=Object.getOwnPropertyDescriptor(f,"key").get;if(x&&x.isReactWarning)return!1}return f.key!==void 0}function s(f,x){function R(){P||(P=!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))}R.isReactWarning=!0,Object.defineProperty(f,"key",{get:R,configurable:!0})}function m(){var f=e(this.type);return U[f]||(U[f]=!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.")),f=this.props.ref,f!==void 0?f:null}function d(f,x,R,D,F,A,G,H){return R=A.ref,f={$$typeof:h,type:f,key:x,props:A,_owner:F},(R!==void 0?R:null)!==null?Object.defineProperty(f,"ref",{enumerable:!1,get:m}):Object.defineProperty(f,"ref",{enumerable:!1,value:null}),f._store={},Object.defineProperty(f._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(f,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(f,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:G}),Object.defineProperty(f,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:H}),Object.freeze&&(Object.freeze(f.props),Object.freeze(f)),f}function u(f,x,R,D,F,A,G,H){var _=x.children;if(_!==void 0)if(D)if(K(_)){for(D=0;D<_.length;D++)p(_[D]);Object.freeze&&Object.freeze(_)}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(_);if(B.call(x,"key")){_=e(f);var W=Object.keys(x).filter(function(ce){return ce!=="key"});D=0<W.length?"{key: someKey, "+W.join(": ..., ")+": ...}":"{key: someKey}",X[_+D]||(W=0<W.length?"{"+W.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} />`,D,_,W,_),X[_+D]=!0)}if(_=null,R!==void 0&&(r(R),_=""+R),c(x)&&(r(x.key),_=""+x.key),"key"in x){R={};for(var q in x)q!=="key"&&(R[q]=x[q])}else R=x;return _&&s(R,typeof f=="function"?f.displayName||f.name||"Unknown":f),d(f,_,A,F,o(),R,G,H)}function p(f){typeof f=="object"&&f!==null&&f.$$typeof===h&&f._store&&(f._store.validated=1)}var v=M,h=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),g=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"),S=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),O=Symbol.for("react.activity"),L=Symbol.for("react.client.reference"),I=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=Object.prototype.hasOwnProperty,K=Array.isArray,$=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(f){return f()}};var P,U={},V=v.react_stack_bottom_frame.bind(v,a)(),Y=$(n(a)),X={};Ti.Fragment=l,Ti.jsx=function(f,x,R,D,F){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,x,R,!1,D,F,A?Error("react-stack-top-frame"):V,A?$(n(f)):Y)},Ti.jsxs=function(f,x,R,D,F){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,x,R,!0,D,F,A?Error("react-stack-top-frame"):V,A?$(n(f)):Y)}})()),Ti}var mb;function MK(){return mb||(mb=1,process.env.NODE_ENV==="production"?lf.exports=OK():lf.exports=PK()),lf.exports}var te=MK();M.createContext({locale:void 0});var AK=(e,t,r,n,o,a,c,s)=>{let m=document.documentElement,d=["light","dark"];function u(h){(Array.isArray(e)?e:[e]).forEach(E=>{let l=E==="class",g=l&&a?o.map(y=>a[y]||y):o;l?(m.classList.remove(...g),m.classList.add(a&&a[h]?a[h]:h)):m.setAttribute(E,h)}),p(h)}function p(h){s&&d.includes(h)&&(m.style.colorScheme=h)}function v(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(n)u(n);else try{let h=localStorage.getItem(t)||r,E=c&&h==="system"?v():h;u(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:d})=>{let u=JSON.stringify([r,t,a,e,s,c,n,o]).slice(1,-1);return i.createElement("script",{...d,suppressHydrationWarning:!0,nonce:typeof window>"u"?m:"",dangerouslySetInnerHTML:{__html:`(${AK.toString()})(${u})`}})});ie.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"}});ie.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 je(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),r===!1||!n.defaultPrevented)return t?.(n)}}function vb(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function IK(...e){return t=>{let r=!1;const n=e.map(o=>{const a=vb(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():vb(e[o],null)}}}}function Tt(...e){return i.useCallback(IK(...e),e)}function FK(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 Zu(e,t=[]){let r=[];function n(a,c){const s=i.createContext(c),m=r.length;r=[...r,c];const d=p=>{const{scope:v,children:h,...E}=p,l=v?.[e]?.[m]||s,g=i.useMemo(()=>E,Object.values(E));return te.jsx(l.Provider,{value:g,children:h})};d.displayName=a+"Provider";function u(p,v){const h=v?.[e]?.[m]||s,E=i.useContext(h);if(E)return E;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[d,u]}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,LK(o,...t)]}function LK(...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 d=s(o)[`__scope${m}`];return{...c,...d}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}var Va=globalThis?.document?i.useLayoutEffect:()=>{},WK=i[" useId ".trim().toString()]||(()=>{}),zK=0;function yS(e){const[t,r]=i.useState(WK());return Va(()=>{r(n=>n??String(zK++))},[e]),t?`radix-${t}`:""}var $K=i[" useInsertionEffect ".trim().toString()]||Va;function bS({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,a,c]=UK({defaultProp:t,onChange:r}),s=e!==void 0,m=s?e:o;{const u=i.useRef(e!==void 0);i.useEffect(()=>{const p=u.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.`),u.current=s},[s,n])}const d=i.useCallback(u=>{if(s){const p=YK(u)?u(e):u;p!==e&&c.current?.(p)}else a(u)},[s,e,a,c]);return[m,d]}function UK({defaultProp:e,onChange:t}){const[r,n]=i.useState(e),o=i.useRef(r),a=i.useRef(t);return $K(()=>{a.current=t},[t]),i.useEffect(()=>{o.current!==r&&(a.current?.(r),o.current=r)},[r,o]),[r,n,a]}function YK(e){return typeof e=="function"}var BK=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Le=BK.reduce((e,t)=>{const r=Z.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 KK(e,t){e&&ke.flushSync(()=>e.dispatchEvent(t))}function Jo(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...r)=>t.current?.(...r),[])}function VK(e,t=globalThis?.document){const r=Jo(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 HK="DismissableLayer",nm="dismissableLayer.update",XK="dismissableLayer.pointerDownOutside",GK="dismissableLayer.focusOutside",gb,wS=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),xS=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:c,onDismiss:s,...m}=e,d=i.useContext(wS),[u,p]=i.useState(null),v=u?.ownerDocument??globalThis?.document,[,h]=i.useState({}),E=Tt(t,C=>p(C)),l=Array.from(d.layers),[g]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),y=l.indexOf(g),b=u?l.indexOf(u):-1,w=d.layersWithOutsidePointerEventsDisabled.size>0,k=b>=y,S=JK(C=>{const j=C.target,O=[...d.branches].some(L=>L.contains(j));!k||O||(o?.(C),c?.(C),C.defaultPrevented||s?.())},v),T=QK(C=>{const j=C.target;[...d.branches].some(O=>O.contains(j))||(a?.(C),c?.(C),C.defaultPrevented||s?.())},v);return VK(C=>{b===d.layers.size-1&&(n?.(C),!C.defaultPrevented&&s&&(C.preventDefault(),s()))},v),i.useEffect(()=>{if(u)return r&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(gb=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(u)),d.layers.add(u),hb(),()=>{r&&d.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=gb)}},[u,v,r,d]),i.useEffect(()=>()=>{u&&(d.layers.delete(u),d.layersWithOutsidePointerEventsDisabled.delete(u),hb())},[u,d]),i.useEffect(()=>{const C=()=>h({});return document.addEventListener(nm,C),()=>document.removeEventListener(nm,C)},[]),te.jsx(Le.div,{...m,ref:E,style:{pointerEvents:w?k?"auto":"none":void 0,...e.style},onFocusCapture:je(e.onFocusCapture,T.onFocusCapture),onBlurCapture:je(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:je(e.onPointerDownCapture,S.onPointerDownCapture)})});xS.displayName=HK;var qK="DismissableLayerBranch",ZK=i.forwardRef((e,t)=>{const r=i.useContext(wS),n=i.useRef(null),o=Tt(t,n);return i.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),te.jsx(Le.div,{...e,ref:o})});ZK.displayName=qK;function JK(e,t=globalThis?.document){const r=Jo(e),n=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let m=function(){ES(XK,r,d,{discrete:!0})};const d={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 QK(e,t=globalThis?.document){const r=Jo(e),n=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!n.current&&ES(GK,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 hb(){const e=new CustomEvent(nm);document.dispatchEvent(e)}function ES(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?KK(o,a):o.dispatchEvent(a)}var df="focusScope.autoFocusOnMount",ff="focusScope.autoFocusOnUnmount",yb={bubbles:!1,cancelable:!0},e6="FocusScope",kS=i.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...c}=e,[s,m]=i.useState(null),d=Jo(o),u=Jo(a),p=i.useRef(null),v=Tt(t,l=>m(l)),h=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(n){let l=function(w){if(h.paused||!s)return;const k=w.target;s.contains(k)?p.current=k:Nr(p.current,{select:!0})},g=function(w){if(h.paused||!s)return;const k=w.relatedTarget;k!==null&&(s.contains(k)||Nr(p.current,{select:!0}))},y=function(w){if(document.activeElement===document.body)for(const k of w)k.removedNodes.length>0&&Nr(s)};document.addEventListener("focusin",l),document.addEventListener("focusout",g);const b=new MutationObserver(y);return s&&b.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",l),document.removeEventListener("focusout",g),b.disconnect()}}},[n,s,h.paused]),i.useEffect(()=>{if(s){wb.add(h);const l=document.activeElement;if(!s.contains(l)){const g=new CustomEvent(df,yb);s.addEventListener(df,d),s.dispatchEvent(g),g.defaultPrevented||(t6(s6(CS(s)),{select:!0}),document.activeElement===l&&Nr(s))}return()=>{s.removeEventListener(df,d),setTimeout(()=>{const g=new CustomEvent(ff,yb);s.addEventListener(ff,u),s.dispatchEvent(g),g.defaultPrevented||Nr(l??document.body,{select:!0}),s.removeEventListener(ff,u),wb.remove(h)},0)}}},[s,d,u,h]);const E=i.useCallback(l=>{if(!r&&!n||h.paused)return;const g=l.key==="Tab"&&!l.altKey&&!l.ctrlKey&&!l.metaKey,y=document.activeElement;if(g&&y){const b=l.currentTarget,[w,k]=r6(b);w&&k?!l.shiftKey&&y===k?(l.preventDefault(),r&&Nr(w,{select:!0})):l.shiftKey&&y===w&&(l.preventDefault(),r&&Nr(k,{select:!0})):y===b&&l.preventDefault()}},[r,n,h.paused]);return te.jsx(Le.div,{tabIndex:-1,...c,ref:v,onKeyDown:E})});kS.displayName=e6;function t6(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(Nr(n,{select:t}),document.activeElement!==r)return}function r6(e){const t=CS(e),r=bb(t,e),n=bb(t.reverse(),e);return[r,n]}function CS(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(!n6(r,{upTo:t}))return r}function n6(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 o6(e){return e instanceof HTMLInputElement&&"select"in e}function Nr(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&o6(e)&&t&&e.select()}}var wb=a6();function a6(){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 s6(e){return e.filter(t=>t.tagName!=="A")}var i6="Portal",c6=i.forwardRef((e,t)=>{const{container:r,...n}=e,[o,a]=i.useState(!1);Va(()=>a(!0),[]);const c=r||o&&globalThis?.document?.body;return c?Ee.createPortal(te.jsx(Le.div,{...n,ref:t}),c):null});c6.displayName=i6;function u6(e,t){return i.useReducer((r,n)=>t[r][n]??r,e)}var Ju=e=>{const{present:t,children:r}=e,n=l6(t),o=typeof r=="function"?r({present:n.isPresent}):i.Children.only(r),a=Tt(n.ref,d6(o));return typeof r=="function"||n.isPresent?i.cloneElement(o,{ref:a}):null};Ju.displayName="Presence";function l6(e){const[t,r]=i.useState(),n=i.useRef(null),o=i.useRef(e),a=i.useRef("none"),c=e?"mounted":"unmounted",[s,m]=u6(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const d=Di(n.current);a.current=s==="mounted"?d:"none"},[s]),Va(()=>{const d=n.current,u=o.current;if(u!==e){const p=a.current,v=Di(d);e?m("MOUNT"):v==="none"||d?.display==="none"?m("UNMOUNT"):m(u&&p!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,m]),Va(()=>{if(t){let d;const u=t.ownerDocument.defaultView??window,p=h=>{const E=Di(n.current).includes(CSS.escape(h.animationName));if(h.target===t&&E&&(m("ANIMATION_END"),!o.current)){const l=t.style.animationFillMode;t.style.animationFillMode="forwards",d=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=l)})}},v=h=>{h.target===t&&(a.current=Di(n.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{u.clearTimeout(d),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(d=>{n.current=d?getComputedStyle(d):null,r(d)},[])}}function Di(e){return e?.animationName||"none"}function d6(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 pf=0;function f6(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Eb()),document.body.insertAdjacentElement("beforeend",e[1]??Eb()),pf++,()=>{pf===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),pf--}},[])}function Eb(){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 gt=function(){return gt=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},gt.apply(this,arguments)};function SS(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 p6(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",Uc="width-before-scroll-bar",m6="with-scroll-bars-hidden",v6="--removed-body-scroll-bar-size";function mf(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function g6(e,t){var r=M.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 h6=typeof window<"u"?i.useLayoutEffect:i.useEffect,kb=new WeakMap;function y6(e,t){var r=g6(null,function(n){return e.forEach(function(o){return mf(o,n)})});return h6(function(){var n=kb.get(r);if(n){var o=new Set(n),a=new Set(e),c=r.current;o.forEach(function(s){a.has(s)||mf(s,null)}),a.forEach(function(s){o.has(s)||mf(s,c)})}kb.set(r,e)},[e]),r}function b6(e){return e}function w6(e,t){t===void 0&&(t=b6);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 u=c;c=[],u.forEach(a)},d=function(){return Promise.resolve().then(m)};d(),r={push:function(u){c.push(u),d()},filter:function(u){return c=c.filter(u),r}}}};return o}function x6(e){e===void 0&&(e={});var t=w6(null);return t.options=gt({async:!0,ssr:!1},e),t}var RS=function(e){var t=e.sideCar,r=SS(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,gt({},r))};RS.isSideCarExport=!0;function E6(e,t){return e.useMedium(t),RS}var jS=x6(),vf=function(){},Qu=i.forwardRef(function(e,t){var r=i.useRef(null),n=i.useState({onScrollCapture:vf,onWheelCapture:vf,onTouchMoveCapture:vf}),o=n[0],a=n[1],c=e.forwardProps,s=e.children,m=e.className,d=e.removeScrollBar,u=e.enabled,p=e.shards,v=e.sideCar,h=e.noRelative,E=e.noIsolation,l=e.inert,g=e.allowPinchZoom,y=e.as,b=y===void 0?"div":y,w=e.gapMode,k=SS(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=v,T=y6([r,t]),C=gt(gt({},k),o);return i.createElement(i.Fragment,null,u&&i.createElement(S,{sideCar:jS,removeScrollBar:d,shards:p,noRelative:h,noIsolation:E,inert:l,setCallbacks:a,allowPinchZoom:!!g,lockRef:r,gapMode:w}),c?i.cloneElement(i.Children.only(s),gt(gt({},C),{ref:T})):i.createElement(b,gt({},C,{className:m,ref:T}),s))});Qu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Qu.classNames={fullWidth:Uc,zeroRight:$c};var k6=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function C6(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=k6();return t&&e.setAttribute("nonce",t),e}function S6(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function R6(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var j6=function(){var e=0,t=null;return{add:function(r){e==0&&(t=C6())&&(S6(t,r),R6(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},N6=function(){var e=j6();return function(t,r){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},NS=function(){var e=N6(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},T6={left:0,top:0,right:0,gap:0},gf=function(e){return parseInt(e||"",10)||0},D6=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[gf(r),gf(n),gf(o)]},_6=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return T6;var t=D6(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])}},O6=NS(),$o="data-scroll-locked",P6=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(m6,` {
|
697
|
-
overflow: hidden `).concat(n,`;
|
698
|
-
padding-right: `).concat(s,"px ").concat(n,`;
|
699
|
-
}
|
700
|
-
body[`).concat($o,`] {
|
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($c,` {
|
714
|
-
right: `).concat(s,"px ").concat(n,`;
|
715
|
-
}
|
716
|
-
|
717
|
-
.`).concat(Uc,` {
|
718
|
-
margin-right: `).concat(s,"px ").concat(n,`;
|
719
|
-
}
|
720
|
-
|
721
|
-
.`).concat($c," .").concat($c,` {
|
722
|
-
right: 0 `).concat(n,`;
|
723
|
-
}
|
724
|
-
|
725
|
-
.`).concat(Uc," .").concat(Uc,` {
|
726
|
-
margin-right: 0 `).concat(n,`;
|
727
|
-
}
|
728
|
-
|
729
|
-
body[`).concat($o,`] {
|
730
|
-
`).concat(v6,": ").concat(s,`px;
|
731
|
-
}
|
732
|
-
`)},Cb=function(){var e=parseInt(document.body.getAttribute($o)||"0",10);return isFinite(e)?e:0},M6=function(){i.useEffect(function(){return document.body.setAttribute($o,(Cb()+1).toString()),function(){var e=Cb()-1;e<=0?document.body.removeAttribute($o):document.body.setAttribute($o,e.toString())}},[])},A6=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;M6();var a=i.useMemo(function(){return _6(o)},[o]);return i.createElement(O6,{styles:P6(a,!t,o,r?"":"!important")})},om=!1;if(typeof window<"u")try{var _i=Object.defineProperty({},"passive",{get:function(){return om=!0,!0}});window.addEventListener("test",_i,_i),window.removeEventListener("test",_i,_i)}catch{om=!1}var io=om?{passive:!1}:!1,I6=function(e){return e.tagName==="TEXTAREA"},TS=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!I6(e)&&r[t]==="visible")},F6=function(e){return TS(e,"overflowY")},L6=function(e){return TS(e,"overflowX")},Sb=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=DS(e,n);if(o){var a=_S(e,n),c=a[1],s=a[2];if(c>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},W6=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},z6=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},DS=function(e,t){return e==="v"?F6(t):L6(t)},_S=function(e,t){return e==="v"?W6(t):z6(t)},$6=function(e,t){return e==="h"&&t==="rtl"?-1:1},U6=function(e,t,r,n,o){var a=$6(e,window.getComputedStyle(t).direction),c=a*n,s=r.target,m=t.contains(s),d=!1,u=c>0,p=0,v=0;do{if(!s)break;var h=_S(e,s),E=h[0],l=h[1],g=h[2],y=l-g-a*E;(E||y)&&DS(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(u&&Math.abs(p)<1||!u&&Math.abs(v)<1)&&(d=!0),d},Oi=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Rb=function(e){return[e.deltaX,e.deltaY]},jb=function(e){return e&&"current"in e?e.current:e},Y6=function(e,t){return e[0]===t[0]&&e[1]===t[1]},B6=function(e){return`
|
733
|
-
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
734
|
-
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
735
|
-
`)},K6=0,co=[];function V6(e){var t=i.useRef([]),r=i.useRef([0,0]),n=i.useRef(),o=i.useState(K6++)[0],a=i.useState(NS)[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 l=p6([e.lockRef.current],(e.shards||[]).map(jb)).filter(Boolean);return l.forEach(function(g){return g.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),l.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=i.useCallback(function(l,g){if("touches"in l&&l.touches.length===2||l.type==="wheel"&&l.ctrlKey)return!c.current.allowPinchZoom;var y=Oi(l),b=r.current,w="deltaX"in l?l.deltaX:b[0]-y[0],k="deltaY"in l?l.deltaY:b[1]-y[1],S,T=l.target,C=Math.abs(w)>Math.abs(k)?"h":"v";if("touches"in l&&C==="h"&&T.type==="range")return!1;var j=Sb(C,T);if(!j)return!0;if(j?S=C:(S=C==="v"?"h":"v",j=Sb(C,T)),!j)return!1;if(!n.current&&"changedTouches"in l&&(w||k)&&(n.current=S),!S)return!0;var O=n.current||S;return U6(O,g,l,O==="h"?w:k)},[]),m=i.useCallback(function(l){var g=l;if(!(!co.length||co[co.length-1]!==a)){var y="deltaY"in g?Rb(g):Oi(g),b=t.current.filter(function(S){return S.name===g.type&&(S.target===g.target||g.target===S.shadowParent)&&Y6(S.delta,y)})[0];if(b&&b.should){g.cancelable&&g.preventDefault();return}if(!b){var w=(c.current.shards||[]).map(jb).filter(Boolean).filter(function(S){return S.contains(g.target)}),k=w.length>0?s(g,w[0]):!c.current.noIsolation;k&&g.cancelable&&g.preventDefault()}}},[]),d=i.useCallback(function(l,g,y,b){var w={name:l,delta:g,target:y,should:b,shadowParent:H6(y)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(k){return k!==w})},1)},[]),u=i.useCallback(function(l){r.current=Oi(l),n.current=void 0},[]),p=i.useCallback(function(l){d(l.type,Rb(l),l.target,s(l,e.lockRef.current))},[]),v=i.useCallback(function(l){d(l.type,Oi(l),l.target,s(l,e.lockRef.current))},[]);i.useEffect(function(){return co.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:v}),document.addEventListener("wheel",m,io),document.addEventListener("touchmove",m,io),document.addEventListener("touchstart",u,io),function(){co=co.filter(function(l){return l!==a}),document.removeEventListener("wheel",m,io),document.removeEventListener("touchmove",m,io),document.removeEventListener("touchstart",u,io)}},[]);var h=e.removeScrollBar,E=e.inert;return i.createElement(i.Fragment,null,E?i.createElement(a,{styles:B6(o)}):null,h?i.createElement(A6,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function H6(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const X6=E6(jS,V6);var OS=i.forwardRef(function(e,t){return i.createElement(Qu,gt({},e,{ref:t,sideCar:X6}))});OS.classNames=Qu.classNames;var G6=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},uo=new WeakMap,Pi=new WeakMap,Mi={},hf=0,PS=function(e){return e&&(e.host||PS(e.parentNode))},q6=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=PS(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})},Z6=function(e,t,r,n){var o=q6(t,Array.isArray(e)?e:[e]);Mi[r]||(Mi[r]=new WeakMap);var a=Mi[r],c=[],s=new Set,m=new Set(o),d=function(p){!p||s.has(p)||(s.add(p),d(p.parentNode))};o.forEach(d);var u=function(p){!p||m.has(p)||Array.prototype.forEach.call(p.children,function(v){if(s.has(v))u(v);else try{var h=v.getAttribute(n),E=h!==null&&h!=="false",l=(uo.get(v)||0)+1,g=(a.get(v)||0)+1;uo.set(v,l),a.set(v,g),c.push(v),l===1&&E&&Pi.set(v,!0),g===1&&v.setAttribute(r,"true"),E||v.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",v,y)}})};return u(t),s.clear(),hf++,function(){c.forEach(function(p){var v=uo.get(p)-1,h=a.get(p)-1;uo.set(p,v),a.set(p,h),v||(Pi.has(p)||p.removeAttribute(n),Pi.delete(p)),h||p.removeAttribute(r)}),hf--,hf||(uo=new WeakMap,uo=new WeakMap,Pi=new WeakMap,Mi={})}},J6=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=G6(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),Z6(n,o,r,"aria-hidden")):function(){return null}},MS="Dialog",[AS]=Zu(MS),[oce,Ht]=AS(MS),IS="DialogTrigger",Q6=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ht(IS,r),a=Tt(t,o.triggerRef);return te.jsx(Le.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":kv(o.open),...n,ref:a,onClick:je(e.onClick,o.onOpenToggle)})});Q6.displayName=IS;var eV="DialogPortal",[ace,FS]=AS(eV,{forceMount:void 0}),bu="DialogOverlay",tV=i.forwardRef((e,t)=>{const r=FS(bu,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Ht(bu,e.__scopeDialog);return a.modal?te.jsx(Ju,{present:n||a.open,children:te.jsx(nV,{...o,ref:t})}):null});tV.displayName=bu;var rV=Z.createSlot("DialogOverlay.RemoveScroll"),nV=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ht(bu,r);return te.jsx(OS,{as:rV,allowPinchZoom:!0,shards:[o.contentRef],children:te.jsx(Le.div,{"data-state":kv(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),ln="DialogContent",oV=i.forwardRef((e,t)=>{const r=FS(ln,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Ht(ln,e.__scopeDialog);return te.jsx(Ju,{present:n||a.open,children:a.modal?te.jsx(aV,{...o,ref:t}):te.jsx(sV,{...o,ref:t})})});oV.displayName=ln;var aV=i.forwardRef((e,t)=>{const r=Ht(ln,e.__scopeDialog),n=i.useRef(null),o=Tt(t,r.contentRef,n);return i.useEffect(()=>{const a=n.current;if(a)return J6(a)},[]),te.jsx(LS,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:je(e.onCloseAutoFocus,a=>{a.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:je(e.onPointerDownOutside,a=>{const c=a.detail.originalEvent,s=c.button===0&&c.ctrlKey===!0;(c.button===2||s)&&a.preventDefault()}),onFocusOutside:je(e.onFocusOutside,a=>a.preventDefault())})}),sV=i.forwardRef((e,t)=>{const r=Ht(ln,e.__scopeDialog),n=i.useRef(!1),o=i.useRef(!1);return te.jsx(LS,{...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()}})}),LS=i.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...c}=e,s=Ht(ln,r),m=i.useRef(null),d=Tt(t,m);return f6(),te.jsxs(te.Fragment,{children:[te.jsx(kS,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:te.jsx(xS,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":kv(s.open),...c,ref:d,onDismiss:()=>s.onOpenChange(!1)})}),te.jsxs(te.Fragment,{children:[te.jsx(lV,{titleId:s.titleId}),te.jsx(fV,{contentRef:m,descriptionId:s.descriptionId})]})]})}),Ev="DialogTitle",iV=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ht(Ev,r);return te.jsx(Le.h2,{id:o.titleId,...n,ref:t})});iV.displayName=Ev;var WS="DialogDescription",cV=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ht(WS,r);return te.jsx(Le.p,{id:o.descriptionId,...n,ref:t})});cV.displayName=WS;var zS="DialogClose",uV=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ht(zS,r);return te.jsx(Le.button,{type:"button",...n,ref:t,onClick:je(e.onClick,()=>o.onOpenChange(!1))})});uV.displayName=zS;function kv(e){return e?"open":"closed"}var $S="DialogTitleWarning",[sce,US]=FK($S,{contentName:ln,titleName:Ev,docsSlug:"dialog"}),lV=({titleId:e})=>{const t=US($S),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},dV="DialogDescriptionWarning",fV=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${US(dV).contentName}}.`;return i.useEffect(()=>{const n=e.current?.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},yf={exports:{}},Ea={};/**
|
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 Nb;function pV(){if(Nb)return Ea;Nb=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 Ai={};/**
|
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 Tb;function mV(){return Tb||(Tb=1,process.env.NODE_ENV!=="production"&&(function(){function e(f){if(f==null)return null;if(typeof f=="function")return f.$$typeof===L?null:f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case l:return"Fragment";case y:return"Profiler";case g:return"StrictMode";case S:return"Suspense";case T:return"SuspenseList";case O:return"Activity"}if(typeof f=="object")switch(typeof f.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),f.$$typeof){case E:return"Portal";case w:return(f.displayName||"Context")+".Provider";case b:return(f._context.displayName||"Context")+".Consumer";case k:var x=f.render;return f=f.displayName,f||(f=x.displayName||x.name||"",f=f!==""?"ForwardRef("+f+")":"ForwardRef"),f;case C:return x=f.displayName||null,x!==null?x:e(f.type)||"Memo";case j:x=f._payload,f=f._init;try{return e(f(x))}catch{}}return null}function t(f){return""+f}function r(f){try{t(f);var x=!1}catch{x=!0}if(x){x=console;var R=x.error,D=typeof Symbol=="function"&&Symbol.toStringTag&&f[Symbol.toStringTag]||f.constructor.name||"Object";return R.call(x,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",D),t(f)}}function n(f){if(f===l)return"<>";if(typeof f=="object"&&f!==null&&f.$$typeof===j)return"<...>";try{var x=e(f);return x?"<"+x+">":"<...>"}catch{return"<...>"}}function o(){var f=I.A;return f===null?null:f.getOwner()}function a(){return Error("react-stack-top-frame")}function c(f){if(B.call(f,"key")){var x=Object.getOwnPropertyDescriptor(f,"key").get;if(x&&x.isReactWarning)return!1}return f.key!==void 0}function s(f,x){function R(){P||(P=!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))}R.isReactWarning=!0,Object.defineProperty(f,"key",{get:R,configurable:!0})}function m(){var f=e(this.type);return U[f]||(U[f]=!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.")),f=this.props.ref,f!==void 0?f:null}function d(f,x,R,D,F,A,G,H){return R=A.ref,f={$$typeof:h,type:f,key:x,props:A,_owner:F},(R!==void 0?R:null)!==null?Object.defineProperty(f,"ref",{enumerable:!1,get:m}):Object.defineProperty(f,"ref",{enumerable:!1,value:null}),f._store={},Object.defineProperty(f._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(f,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(f,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:G}),Object.defineProperty(f,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:H}),Object.freeze&&(Object.freeze(f.props),Object.freeze(f)),f}function u(f,x,R,D,F,A,G,H){var _=x.children;if(_!==void 0)if(D)if(K(_)){for(D=0;D<_.length;D++)p(_[D]);Object.freeze&&Object.freeze(_)}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(_);if(B.call(x,"key")){_=e(f);var W=Object.keys(x).filter(function(ce){return ce!=="key"});D=0<W.length?"{key: someKey, "+W.join(": ..., ")+": ...}":"{key: someKey}",X[_+D]||(W=0<W.length?"{"+W.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} />`,D,_,W,_),X[_+D]=!0)}if(_=null,R!==void 0&&(r(R),_=""+R),c(x)&&(r(x.key),_=""+x.key),"key"in x){R={};for(var q in x)q!=="key"&&(R[q]=x[q])}else R=x;return _&&s(R,typeof f=="function"?f.displayName||f.name||"Unknown":f),d(f,_,A,F,o(),R,G,H)}function p(f){typeof f=="object"&&f!==null&&f.$$typeof===h&&f._store&&(f._store.validated=1)}var v=M,h=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),g=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"),S=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),O=Symbol.for("react.activity"),L=Symbol.for("react.client.reference"),I=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=Object.prototype.hasOwnProperty,K=Array.isArray,$=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(f){return f()}};var P,U={},V=v.react_stack_bottom_frame.bind(v,a)(),Y=$(n(a)),X={};Ai.Fragment=l,Ai.jsx=function(f,x,R,D,F){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,x,R,!1,D,F,A?Error("react-stack-top-frame"):V,A?$(n(f)):Y)},Ai.jsxs=function(f,x,R,D,F){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,x,R,!0,D,F,A?Error("react-stack-top-frame"):V,A?$(n(f)):Y)}})()),Ai}var Db;function vV(){return Db||(Db=1,process.env.NODE_ENV==="production"?yf.exports=pV():yf.exports=mV()),yf.exports}var re=vV();M.createContext({locale:void 0});var gV=(e,t,r,n,o,a,c,s)=>{let m=document.documentElement,d=["light","dark"];function u(h){(Array.isArray(e)?e:[e]).forEach(E=>{let l=E==="class",g=l&&a?o.map(y=>a[y]||y):o;l?(m.classList.remove(...g),m.classList.add(a&&a[h]?a[h]:h)):m.setAttribute(E,h)}),p(h)}function p(h){s&&d.includes(h)&&(m.style.colorScheme=h)}function v(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(n)u(n);else try{let h=localStorage.getItem(t)||r,E=c&&h==="system"?v():h;u(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:d})=>{let u=JSON.stringify([r,t,a,e,s,c,n,o]).slice(1,-1);return i.createElement("script",{...d,suppressHydrationWarning:!0,nonce:typeof window>"u"?m:"",dangerouslySetInnerHTML:{__html:`(${gV.toString()})(${u})`}})});ie.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"}});ie.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 _b(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function hV(...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 Dt(...e){return i.useCallback(hV(...e),e)}function yV(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 el(e,t=[]){let r=[];function n(a,c){const s=i.createContext(c),m=r.length;r=[...r,c];const d=p=>{const{scope:v,children:h,...E}=p,l=v?.[e]?.[m]||s,g=i.useMemo(()=>E,Object.values(E));return re.jsx(l.Provider,{value:g,children:h})};d.displayName=a+"Provider";function u(p,v){const h=v?.[e]?.[m]||s,E=i.useContext(h);if(E)return E;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[d,u]}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,bV(o,...t)]}function bV(...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 d=s(o)[`__scope${m}`];return{...c,...d}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}var Ha=globalThis?.document?i.useLayoutEffect:()=>{},wV=i[" useId ".trim().toString()]||(()=>{}),xV=0;function YS(e){const[t,r]=i.useState(wV());return Ha(()=>{r(n=>n??String(xV++))},[e]),t?`radix-${t}`:""}var EV=i[" useInsertionEffect ".trim().toString()]||Ha;function BS({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,a,c]=kV({defaultProp:t,onChange:r}),s=e!==void 0,m=s?e:o;{const u=i.useRef(e!==void 0);i.useEffect(()=>{const p=u.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.`),u.current=s},[s,n])}const d=i.useCallback(u=>{if(s){const p=CV(u)?u(e):u;p!==e&&c.current?.(p)}else a(u)},[s,e,a,c]);return[m,d]}function kV({defaultProp:e,onChange:t}){const[r,n]=i.useState(e),o=i.useRef(r),a=i.useRef(t);return EV(()=>{a.current=t},[t]),i.useEffect(()=>{o.current!==r&&(a.current?.(r),o.current=r)},[r,o]),[r,n,a]}function CV(e){return typeof e=="function"}var SV=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],We=SV.reduce((e,t)=>{const r=Z.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 RV(e,t){e&&ke.flushSync(()=>e.dispatchEvent(t))}function Qo(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...r)=>t.current?.(...r),[])}function jV(e,t=globalThis?.document){const r=Qo(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 NV="DismissableLayer",am="dismissableLayer.update",TV="dismissableLayer.pointerDownOutside",DV="dismissableLayer.focusOutside",Ob,KS=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),VS=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:c,onDismiss:s,...m}=e,d=i.useContext(KS),[u,p]=i.useState(null),v=u?.ownerDocument??globalThis?.document,[,h]=i.useState({}),E=Dt(t,C=>p(C)),l=Array.from(d.layers),[g]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),y=l.indexOf(g),b=u?l.indexOf(u):-1,w=d.layersWithOutsidePointerEventsDisabled.size>0,k=b>=y,S=PV(C=>{const j=C.target,O=[...d.branches].some(L=>L.contains(j));!k||O||(o?.(C),c?.(C),C.defaultPrevented||s?.())},v),T=MV(C=>{const j=C.target;[...d.branches].some(O=>O.contains(j))||(a?.(C),c?.(C),C.defaultPrevented||s?.())},v);return jV(C=>{b===d.layers.size-1&&(n?.(C),!C.defaultPrevented&&s&&(C.preventDefault(),s()))},v),i.useEffect(()=>{if(u)return r&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Ob=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(u)),d.layers.add(u),Pb(),()=>{r&&d.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=Ob)}},[u,v,r,d]),i.useEffect(()=>()=>{u&&(d.layers.delete(u),d.layersWithOutsidePointerEventsDisabled.delete(u),Pb())},[u,d]),i.useEffect(()=>{const C=()=>h({});return document.addEventListener(am,C),()=>document.removeEventListener(am,C)},[]),re.jsx(We.div,{...m,ref:E,style:{pointerEvents:w?k?"auto":"none":void 0,...e.style},onFocusCapture:Ne(e.onFocusCapture,T.onFocusCapture),onBlurCapture:Ne(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:Ne(e.onPointerDownCapture,S.onPointerDownCapture)})});VS.displayName=NV;var _V="DismissableLayerBranch",OV=i.forwardRef((e,t)=>{const r=i.useContext(KS),n=i.useRef(null),o=Dt(t,n);return i.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),re.jsx(We.div,{...e,ref:o})});OV.displayName=_V;function PV(e,t=globalThis?.document){const r=Qo(e),n=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let m=function(){HS(TV,r,d,{discrete:!0})};const d={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 MV(e,t=globalThis?.document){const r=Qo(e),n=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!n.current&&HS(DV,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 Pb(){const e=new CustomEvent(am);document.dispatchEvent(e)}function HS(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?RV(o,a):o.dispatchEvent(a)}var bf="focusScope.autoFocusOnMount",wf="focusScope.autoFocusOnUnmount",Mb={bubbles:!1,cancelable:!0},AV="FocusScope",XS=i.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...c}=e,[s,m]=i.useState(null),d=Qo(o),u=Qo(a),p=i.useRef(null),v=Dt(t,l=>m(l)),h=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(n){let l=function(w){if(h.paused||!s)return;const k=w.target;s.contains(k)?p.current=k:Tr(p.current,{select:!0})},g=function(w){if(h.paused||!s)return;const k=w.relatedTarget;k!==null&&(s.contains(k)||Tr(p.current,{select:!0}))},y=function(w){if(document.activeElement===document.body)for(const k of w)k.removedNodes.length>0&&Tr(s)};document.addEventListener("focusin",l),document.addEventListener("focusout",g);const b=new MutationObserver(y);return s&&b.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",l),document.removeEventListener("focusout",g),b.disconnect()}}},[n,s,h.paused]),i.useEffect(()=>{if(s){Ib.add(h);const l=document.activeElement;if(!s.contains(l)){const g=new CustomEvent(bf,Mb);s.addEventListener(bf,d),s.dispatchEvent(g),g.defaultPrevented||(IV($V(GS(s)),{select:!0}),document.activeElement===l&&Tr(s))}return()=>{s.removeEventListener(bf,d),setTimeout(()=>{const g=new CustomEvent(wf,Mb);s.addEventListener(wf,u),s.dispatchEvent(g),g.defaultPrevented||Tr(l??document.body,{select:!0}),s.removeEventListener(wf,u),Ib.remove(h)},0)}}},[s,d,u,h]);const E=i.useCallback(l=>{if(!r&&!n||h.paused)return;const g=l.key==="Tab"&&!l.altKey&&!l.ctrlKey&&!l.metaKey,y=document.activeElement;if(g&&y){const b=l.currentTarget,[w,k]=FV(b);w&&k?!l.shiftKey&&y===k?(l.preventDefault(),r&&Tr(w,{select:!0})):l.shiftKey&&y===w&&(l.preventDefault(),r&&Tr(k,{select:!0})):y===b&&l.preventDefault()}},[r,n,h.paused]);return re.jsx(We.div,{tabIndex:-1,...c,ref:v,onKeyDown:E})});XS.displayName=AV;function IV(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(Tr(n,{select:t}),document.activeElement!==r)return}function FV(e){const t=GS(e),r=Ab(t,e),n=Ab(t.reverse(),e);return[r,n]}function GS(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 Ab(e,t){for(const r of e)if(!LV(r,{upTo:t}))return r}function LV(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 WV(e){return e instanceof HTMLInputElement&&"select"in e}function Tr(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&WV(e)&&t&&e.select()}}var Ib=zV();function zV(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=Fb(e,t),e.unshift(t)},remove(t){e=Fb(e,t),e[0]?.resume()}}}function Fb(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function $V(e){return e.filter(t=>t.tagName!=="A")}var UV="Portal",YV=i.forwardRef((e,t)=>{const{container:r,...n}=e,[o,a]=i.useState(!1);Ha(()=>a(!0),[]);const c=r||o&&globalThis?.document?.body;return c?Ee.createPortal(re.jsx(We.div,{...n,ref:t}),c):null});YV.displayName=UV;function BV(e,t){return i.useReducer((r,n)=>t[r][n]??r,e)}var tl=e=>{const{present:t,children:r}=e,n=KV(t),o=typeof r=="function"?r({present:n.isPresent}):i.Children.only(r),a=Dt(n.ref,VV(o));return typeof r=="function"||n.isPresent?i.cloneElement(o,{ref:a}):null};tl.displayName="Presence";function KV(e){const[t,r]=i.useState(),n=i.useRef(null),o=i.useRef(e),a=i.useRef("none"),c=e?"mounted":"unmounted",[s,m]=BV(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const d=Ii(n.current);a.current=s==="mounted"?d:"none"},[s]),Ha(()=>{const d=n.current,u=o.current;if(u!==e){const p=a.current,v=Ii(d);e?m("MOUNT"):v==="none"||d?.display==="none"?m("UNMOUNT"):m(u&&p!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,m]),Ha(()=>{if(t){let d;const u=t.ownerDocument.defaultView??window,p=h=>{const E=Ii(n.current).includes(CSS.escape(h.animationName));if(h.target===t&&E&&(m("ANIMATION_END"),!o.current)){const l=t.style.animationFillMode;t.style.animationFillMode="forwards",d=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=l)})}},v=h=>{h.target===t&&(a.current=Ii(n.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{u.clearTimeout(d),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(d=>{n.current=d?getComputedStyle(d):null,r(d)},[])}}function Ii(e){return e?.animationName||"none"}function VV(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 xf=0;function HV(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Lb()),document.body.insertAdjacentElement("beforeend",e[1]??Lb()),xf++,()=>{xf===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),xf--}},[])}function Lb(){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 ht=function(){return ht=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},ht.apply(this,arguments)};function qS(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 XV(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",GV="with-scroll-bars-hidden",qV="--removed-body-scroll-bar-size";function Ef(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function ZV(e,t){var r=M.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 JV=typeof window<"u"?i.useLayoutEffect:i.useEffect,Wb=new WeakMap;function QV(e,t){var r=ZV(null,function(n){return e.forEach(function(o){return Ef(o,n)})});return JV(function(){var n=Wb.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)})}Wb.set(r,e)},[e]),r}function eH(e){return e}function tH(e,t){t===void 0&&(t=eH);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 u=c;c=[],u.forEach(a)},d=function(){return Promise.resolve().then(m)};d(),r={push:function(u){c.push(u),d()},filter:function(u){return c=c.filter(u),r}}}};return o}function rH(e){e===void 0&&(e={});var t=tH(null);return t.options=ht({async:!0,ssr:!1},e),t}var ZS=function(e){var t=e.sideCar,r=qS(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,ht({},r))};ZS.isSideCarExport=!0;function nH(e,t){return e.useMedium(t),ZS}var JS=rH(),kf=function(){},rl=i.forwardRef(function(e,t){var r=i.useRef(null),n=i.useState({onScrollCapture:kf,onWheelCapture:kf,onTouchMoveCapture:kf}),o=n[0],a=n[1],c=e.forwardProps,s=e.children,m=e.className,d=e.removeScrollBar,u=e.enabled,p=e.shards,v=e.sideCar,h=e.noRelative,E=e.noIsolation,l=e.inert,g=e.allowPinchZoom,y=e.as,b=y===void 0?"div":y,w=e.gapMode,k=qS(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=v,T=QV([r,t]),C=ht(ht({},k),o);return i.createElement(i.Fragment,null,u&&i.createElement(S,{sideCar:JS,removeScrollBar:d,shards:p,noRelative:h,noIsolation:E,inert:l,setCallbacks:a,allowPinchZoom:!!g,lockRef:r,gapMode:w}),c?i.cloneElement(i.Children.only(s),ht(ht({},C),{ref:T})):i.createElement(b,ht({},C,{className:m,ref:T}),s))});rl.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};rl.classNames={fullWidth:Bc,zeroRight:Yc};var oH=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function aH(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=oH();return t&&e.setAttribute("nonce",t),e}function sH(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function iH(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var cH=function(){var e=0,t=null;return{add:function(r){e==0&&(t=aH())&&(sH(t,r),iH(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},uH=function(){var e=cH();return function(t,r){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},QS=function(){var e=uH(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},lH={left:0,top:0,right:0,gap:0},Cf=function(e){return parseInt(e||"",10)||0},dH=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[Cf(r),Cf(n),Cf(o)]},fH=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return lH;var t=dH(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])}},pH=QS(),Uo="data-scroll-locked",mH=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(GV,` {
|
762
|
-
overflow: hidden `).concat(n,`;
|
763
|
-
padding-right: `).concat(s,"px ").concat(n,`;
|
764
|
-
}
|
765
|
-
body[`).concat(Uo,`] {
|
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(Uo,`] {
|
795
|
-
`).concat(qV,": ").concat(s,`px;
|
796
|
-
}
|
797
|
-
`)},zb=function(){var e=parseInt(document.body.getAttribute(Uo)||"0",10);return isFinite(e)?e:0},vH=function(){i.useEffect(function(){return document.body.setAttribute(Uo,(zb()+1).toString()),function(){var e=zb()-1;e<=0?document.body.removeAttribute(Uo):document.body.setAttribute(Uo,e.toString())}},[])},gH=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;vH();var a=i.useMemo(function(){return fH(o)},[o]);return i.createElement(pH,{styles:mH(a,!t,o,r?"":"!important")})},sm=!1;if(typeof window<"u")try{var Fi=Object.defineProperty({},"passive",{get:function(){return sm=!0,!0}});window.addEventListener("test",Fi,Fi),window.removeEventListener("test",Fi,Fi)}catch{sm=!1}var lo=sm?{passive:!1}:!1,hH=function(e){return e.tagName==="TEXTAREA"},eR=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!hH(e)&&r[t]==="visible")},yH=function(e){return eR(e,"overflowY")},bH=function(e){return eR(e,"overflowX")},$b=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=tR(e,n);if(o){var a=rR(e,n),c=a[1],s=a[2];if(c>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},wH=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},xH=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},tR=function(e,t){return e==="v"?yH(t):bH(t)},rR=function(e,t){return e==="v"?wH(t):xH(t)},EH=function(e,t){return e==="h"&&t==="rtl"?-1:1},kH=function(e,t,r,n,o){var a=EH(e,window.getComputedStyle(t).direction),c=a*n,s=r.target,m=t.contains(s),d=!1,u=c>0,p=0,v=0;do{if(!s)break;var h=rR(e,s),E=h[0],l=h[1],g=h[2],y=l-g-a*E;(E||y)&&tR(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(u&&Math.abs(p)<1||!u&&Math.abs(v)<1)&&(d=!0),d},Li=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ub=function(e){return[e.deltaX,e.deltaY]},Yb=function(e){return e&&"current"in e?e.current:e},CH=function(e,t){return e[0]===t[0]&&e[1]===t[1]},SH=function(e){return`
|
798
|
-
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
799
|
-
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
800
|
-
`)},RH=0,fo=[];function jH(e){var t=i.useRef([]),r=i.useRef([0,0]),n=i.useRef(),o=i.useState(RH++)[0],a=i.useState(QS)[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 l=XV([e.lockRef.current],(e.shards||[]).map(Yb)).filter(Boolean);return l.forEach(function(g){return g.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),l.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=i.useCallback(function(l,g){if("touches"in l&&l.touches.length===2||l.type==="wheel"&&l.ctrlKey)return!c.current.allowPinchZoom;var y=Li(l),b=r.current,w="deltaX"in l?l.deltaX:b[0]-y[0],k="deltaY"in l?l.deltaY:b[1]-y[1],S,T=l.target,C=Math.abs(w)>Math.abs(k)?"h":"v";if("touches"in l&&C==="h"&&T.type==="range")return!1;var j=$b(C,T);if(!j)return!0;if(j?S=C:(S=C==="v"?"h":"v",j=$b(C,T)),!j)return!1;if(!n.current&&"changedTouches"in l&&(w||k)&&(n.current=S),!S)return!0;var O=n.current||S;return kH(O,g,l,O==="h"?w:k)},[]),m=i.useCallback(function(l){var g=l;if(!(!fo.length||fo[fo.length-1]!==a)){var y="deltaY"in g?Ub(g):Li(g),b=t.current.filter(function(S){return S.name===g.type&&(S.target===g.target||g.target===S.shadowParent)&&CH(S.delta,y)})[0];if(b&&b.should){g.cancelable&&g.preventDefault();return}if(!b){var w=(c.current.shards||[]).map(Yb).filter(Boolean).filter(function(S){return S.contains(g.target)}),k=w.length>0?s(g,w[0]):!c.current.noIsolation;k&&g.cancelable&&g.preventDefault()}}},[]),d=i.useCallback(function(l,g,y,b){var w={name:l,delta:g,target:y,should:b,shadowParent:NH(y)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(k){return k!==w})},1)},[]),u=i.useCallback(function(l){r.current=Li(l),n.current=void 0},[]),p=i.useCallback(function(l){d(l.type,Ub(l),l.target,s(l,e.lockRef.current))},[]),v=i.useCallback(function(l){d(l.type,Li(l),l.target,s(l,e.lockRef.current))},[]);i.useEffect(function(){return fo.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:v}),document.addEventListener("wheel",m,lo),document.addEventListener("touchmove",m,lo),document.addEventListener("touchstart",u,lo),function(){fo=fo.filter(function(l){return l!==a}),document.removeEventListener("wheel",m,lo),document.removeEventListener("touchmove",m,lo),document.removeEventListener("touchstart",u,lo)}},[]);var h=e.removeScrollBar,E=e.inert;return i.createElement(i.Fragment,null,E?i.createElement(a,{styles:SH(o)}):null,h?i.createElement(gH,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function NH(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const TH=nH(JS,jH);var nR=i.forwardRef(function(e,t){return i.createElement(rl,ht({},e,{ref:t,sideCar:TH}))});nR.classNames=rl.classNames;var DH=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},po=new WeakMap,Wi=new WeakMap,zi={},Sf=0,oR=function(e){return e&&(e.host||oR(e.parentNode))},_H=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=oR(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})},OH=function(e,t,r,n){var o=_H(t,Array.isArray(e)?e:[e]);zi[r]||(zi[r]=new WeakMap);var a=zi[r],c=[],s=new Set,m=new Set(o),d=function(p){!p||s.has(p)||(s.add(p),d(p.parentNode))};o.forEach(d);var u=function(p){!p||m.has(p)||Array.prototype.forEach.call(p.children,function(v){if(s.has(v))u(v);else try{var h=v.getAttribute(n),E=h!==null&&h!=="false",l=(po.get(v)||0)+1,g=(a.get(v)||0)+1;po.set(v,l),a.set(v,g),c.push(v),l===1&&E&&Wi.set(v,!0),g===1&&v.setAttribute(r,"true"),E||v.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",v,y)}})};return u(t),s.clear(),Sf++,function(){c.forEach(function(p){var v=po.get(p)-1,h=a.get(p)-1;po.set(p,v),a.set(p,h),v||(Wi.has(p)||p.removeAttribute(n),Wi.delete(p)),h||p.removeAttribute(r)}),Sf--,Sf||(po=new WeakMap,po=new WeakMap,Wi=new WeakMap,zi={})}},PH=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=DH(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),OH(n,o,r,"aria-hidden")):function(){return null}},aR="Dialog",[sR]=el(aR),[ice,Xt]=sR(aR),iR="DialogTrigger",MH=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Xt(iR,r),a=Dt(t,o.triggerRef);return re.jsx(We.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Sv(o.open),...n,ref:a,onClick:Ne(e.onClick,o.onOpenToggle)})});MH.displayName=iR;var AH="DialogPortal",[cce,cR]=sR(AH,{forceMount:void 0}),wu="DialogOverlay",IH=i.forwardRef((e,t)=>{const r=cR(wu,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Xt(wu,e.__scopeDialog);return a.modal?re.jsx(tl,{present:n||a.open,children:re.jsx(LH,{...o,ref:t})}):null});IH.displayName=wu;var FH=Z.createSlot("DialogOverlay.RemoveScroll"),LH=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Xt(wu,r);return re.jsx(nR,{as:FH,allowPinchZoom:!0,shards:[o.contentRef],children:re.jsx(We.div,{"data-state":Sv(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),dn="DialogContent",WH=i.forwardRef((e,t)=>{const r=cR(dn,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Xt(dn,e.__scopeDialog);return re.jsx(tl,{present:n||a.open,children:a.modal?re.jsx(zH,{...o,ref:t}):re.jsx($H,{...o,ref:t})})});WH.displayName=dn;var zH=i.forwardRef((e,t)=>{const r=Xt(dn,e.__scopeDialog),n=i.useRef(null),o=Dt(t,r.contentRef,n);return i.useEffect(()=>{const a=n.current;if(a)return PH(a)},[]),re.jsx(uR,{...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())})}),$H=i.forwardRef((e,t)=>{const r=Xt(dn,e.__scopeDialog),n=i.useRef(!1),o=i.useRef(!1);return re.jsx(uR,{...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()}})}),uR=i.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...c}=e,s=Xt(dn,r),m=i.useRef(null),d=Dt(t,m);return HV(),re.jsxs(re.Fragment,{children:[re.jsx(XS,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:re.jsx(VS,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":Sv(s.open),...c,ref:d,onDismiss:()=>s.onOpenChange(!1)})}),re.jsxs(re.Fragment,{children:[re.jsx(KH,{titleId:s.titleId}),re.jsx(HH,{contentRef:m,descriptionId:s.descriptionId})]})]})}),Cv="DialogTitle",UH=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Xt(Cv,r);return re.jsx(We.h2,{id:o.titleId,...n,ref:t})});UH.displayName=Cv;var lR="DialogDescription",YH=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Xt(lR,r);return re.jsx(We.p,{id:o.descriptionId,...n,ref:t})});YH.displayName=lR;var dR="DialogClose",BH=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Xt(dR,r);return re.jsx(We.button,{type:"button",...n,ref:t,onClick:Ne(e.onClick,()=>o.onOpenChange(!1))})});BH.displayName=dR;function Sv(e){return e?"open":"closed"}var fR="DialogTitleWarning",[uce,pR]=yV(fR,{contentName:dn,titleName:Cv,docsSlug:"dialog"}),KH=({titleId:e})=>{const t=pR(fR),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},VH="DialogDescriptionWarning",HH=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${pR(VH).contentName}}.`;return i.useEffect(()=>{const n=e.current?.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Rf={exports:{}},ka={};/**
|
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 Bb;function XH(){if(Bb)return ka;Bb=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 ka.Fragment=t,ka.jsx=r,ka.jsxs=r,ka}var $i={};/**
|
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 Kb;function GH(){return Kb||(Kb=1,process.env.NODE_ENV!=="production"&&(function(){function e(f){if(f==null)return null;if(typeof f=="function")return f.$$typeof===L?null:f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case l:return"Fragment";case y:return"Profiler";case g:return"StrictMode";case S:return"Suspense";case T:return"SuspenseList";case O:return"Activity"}if(typeof f=="object")switch(typeof f.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),f.$$typeof){case E:return"Portal";case w:return(f.displayName||"Context")+".Provider";case b:return(f._context.displayName||"Context")+".Consumer";case k:var x=f.render;return f=f.displayName,f||(f=x.displayName||x.name||"",f=f!==""?"ForwardRef("+f+")":"ForwardRef"),f;case C:return x=f.displayName||null,x!==null?x:e(f.type)||"Memo";case j:x=f._payload,f=f._init;try{return e(f(x))}catch{}}return null}function t(f){return""+f}function r(f){try{t(f);var x=!1}catch{x=!0}if(x){x=console;var R=x.error,D=typeof Symbol=="function"&&Symbol.toStringTag&&f[Symbol.toStringTag]||f.constructor.name||"Object";return R.call(x,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",D),t(f)}}function n(f){if(f===l)return"<>";if(typeof f=="object"&&f!==null&&f.$$typeof===j)return"<...>";try{var x=e(f);return x?"<"+x+">":"<...>"}catch{return"<...>"}}function o(){var f=I.A;return f===null?null:f.getOwner()}function a(){return Error("react-stack-top-frame")}function c(f){if(B.call(f,"key")){var x=Object.getOwnPropertyDescriptor(f,"key").get;if(x&&x.isReactWarning)return!1}return f.key!==void 0}function s(f,x){function R(){P||(P=!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))}R.isReactWarning=!0,Object.defineProperty(f,"key",{get:R,configurable:!0})}function m(){var f=e(this.type);return U[f]||(U[f]=!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.")),f=this.props.ref,f!==void 0?f:null}function d(f,x,R,D,F,A,G,H){return R=A.ref,f={$$typeof:h,type:f,key:x,props:A,_owner:F},(R!==void 0?R:null)!==null?Object.defineProperty(f,"ref",{enumerable:!1,get:m}):Object.defineProperty(f,"ref",{enumerable:!1,value:null}),f._store={},Object.defineProperty(f._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(f,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(f,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:G}),Object.defineProperty(f,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:H}),Object.freeze&&(Object.freeze(f.props),Object.freeze(f)),f}function u(f,x,R,D,F,A,G,H){var _=x.children;if(_!==void 0)if(D)if(K(_)){for(D=0;D<_.length;D++)p(_[D]);Object.freeze&&Object.freeze(_)}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(_);if(B.call(x,"key")){_=e(f);var W=Object.keys(x).filter(function(ce){return ce!=="key"});D=0<W.length?"{key: someKey, "+W.join(": ..., ")+": ...}":"{key: someKey}",X[_+D]||(W=0<W.length?"{"+W.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} />`,D,_,W,_),X[_+D]=!0)}if(_=null,R!==void 0&&(r(R),_=""+R),c(x)&&(r(x.key),_=""+x.key),"key"in x){R={};for(var q in x)q!=="key"&&(R[q]=x[q])}else R=x;return _&&s(R,typeof f=="function"?f.displayName||f.name||"Unknown":f),d(f,_,A,F,o(),R,G,H)}function p(f){typeof f=="object"&&f!==null&&f.$$typeof===h&&f._store&&(f._store.validated=1)}var v=M,h=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),g=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"),S=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),O=Symbol.for("react.activity"),L=Symbol.for("react.client.reference"),I=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=Object.prototype.hasOwnProperty,K=Array.isArray,$=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(f){return f()}};var P,U={},V=v.react_stack_bottom_frame.bind(v,a)(),Y=$(n(a)),X={};$i.Fragment=l,$i.jsx=function(f,x,R,D,F){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,x,R,!1,D,F,A?Error("react-stack-top-frame"):V,A?$(n(f)):Y)},$i.jsxs=function(f,x,R,D,F){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,x,R,!0,D,F,A?Error("react-stack-top-frame"):V,A?$(n(f)):Y)}})()),$i}var Vb;function qH(){return Vb||(Vb=1,process.env.NODE_ENV==="production"?Rf.exports=XH():Rf.exports=GH()),Rf.exports}var ne=qH();M.createContext({locale:void 0});var ZH=(e,t,r,n,o,a,c,s)=>{let m=document.documentElement,d=["light","dark"];function u(h){(Array.isArray(e)?e:[e]).forEach(E=>{let l=E==="class",g=l&&a?o.map(y=>a[y]||y):o;l?(m.classList.remove(...g),m.classList.add(a&&a[h]?a[h]:h)):m.setAttribute(E,h)}),p(h)}function p(h){s&&d.includes(h)&&(m.style.colorScheme=h)}function v(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(n)u(n);else try{let h=localStorage.getItem(t)||r,E=c&&h==="system"?v():h;u(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:d})=>{let u=JSON.stringify([r,t,a,e,s,c,n,o]).slice(1,-1);return i.createElement("script",{...d,suppressHydrationWarning:!0,nonce:typeof window>"u"?m:"",dangerouslySetInnerHTML:{__html:`(${ZH.toString()})(${u})`}})});ie.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"}});ie.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 Te(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),r===!1||!n.defaultPrevented)return t?.(n)}}function Hb(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function JH(...e){return t=>{let r=!1;const n=e.map(o=>{const a=Hb(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():Hb(e[o],null)}}}}function _t(...e){return i.useCallback(JH(...e),e)}function QH(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 nl(e,t=[]){let r=[];function n(a,c){const s=i.createContext(c),m=r.length;r=[...r,c];const d=p=>{const{scope:v,children:h,...E}=p,l=v?.[e]?.[m]||s,g=i.useMemo(()=>E,Object.values(E));return ne.jsx(l.Provider,{value:g,children:h})};d.displayName=a+"Provider";function u(p,v){const h=v?.[e]?.[m]||s,E=i.useContext(h);if(E)return E;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[d,u]}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,e8(o,...t)]}function e8(...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 d=s(o)[`__scope${m}`];return{...c,...d}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}var Xa=globalThis?.document?i.useLayoutEffect:()=>{},t8=i[" useId ".trim().toString()]||(()=>{}),r8=0;function mR(e){const[t,r]=i.useState(t8());return Xa(()=>{r(n=>n??String(r8++))},[e]),t?`radix-${t}`:""}var n8=i[" useInsertionEffect ".trim().toString()]||Xa;function vR({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,a,c]=o8({defaultProp:t,onChange:r}),s=e!==void 0,m=s?e:o;{const u=i.useRef(e!==void 0);i.useEffect(()=>{const p=u.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.`),u.current=s},[s,n])}const d=i.useCallback(u=>{if(s){const p=a8(u)?u(e):u;p!==e&&c.current?.(p)}else a(u)},[s,e,a,c]);return[m,d]}function o8({defaultProp:e,onChange:t}){const[r,n]=i.useState(e),o=i.useRef(r),a=i.useRef(t);return n8(()=>{a.current=t},[t]),i.useEffect(()=>{o.current!==r&&(a.current?.(r),o.current=r)},[r,o]),[r,n,a]}function a8(e){return typeof e=="function"}var s8=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ze=s8.reduce((e,t)=>{const r=Z.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 i8(e,t){e&&ke.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 c8(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 u8="DismissableLayer",im="dismissableLayer.update",l8="dismissableLayer.pointerDownOutside",d8="dismissableLayer.focusOutside",Xb,gR=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),hR=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:c,onDismiss:s,...m}=e,d=i.useContext(gR),[u,p]=i.useState(null),v=u?.ownerDocument??globalThis?.document,[,h]=i.useState({}),E=_t(t,C=>p(C)),l=Array.from(d.layers),[g]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),y=l.indexOf(g),b=u?l.indexOf(u):-1,w=d.layersWithOutsidePointerEventsDisabled.size>0,k=b>=y,S=m8(C=>{const j=C.target,O=[...d.branches].some(L=>L.contains(j));!k||O||(o?.(C),c?.(C),C.defaultPrevented||s?.())},v),T=v8(C=>{const j=C.target;[...d.branches].some(O=>O.contains(j))||(a?.(C),c?.(C),C.defaultPrevented||s?.())},v);return c8(C=>{b===d.layers.size-1&&(n?.(C),!C.defaultPrevented&&s&&(C.preventDefault(),s()))},v),i.useEffect(()=>{if(u)return r&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Xb=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(u)),d.layers.add(u),Gb(),()=>{r&&d.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=Xb)}},[u,v,r,d]),i.useEffect(()=>()=>{u&&(d.layers.delete(u),d.layersWithOutsidePointerEventsDisabled.delete(u),Gb())},[u,d]),i.useEffect(()=>{const C=()=>h({});return document.addEventListener(im,C),()=>document.removeEventListener(im,C)},[]),ne.jsx(ze.div,{...m,ref:E,style:{pointerEvents:w?k?"auto":"none":void 0,...e.style},onFocusCapture:Te(e.onFocusCapture,T.onFocusCapture),onBlurCapture:Te(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:Te(e.onPointerDownCapture,S.onPointerDownCapture)})});hR.displayName=u8;var f8="DismissableLayerBranch",p8=i.forwardRef((e,t)=>{const r=i.useContext(gR),n=i.useRef(null),o=_t(t,n);return i.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),ne.jsx(ze.div,{...e,ref:o})});p8.displayName=f8;function m8(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(){yR(l8,r,d,{discrete:!0})};const d={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 v8(e,t=globalThis?.document){const r=ea(e),n=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!n.current&&yR(d8,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 Gb(){const e=new CustomEvent(im);document.dispatchEvent(e)}function yR(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?i8(o,a):o.dispatchEvent(a)}var jf="focusScope.autoFocusOnMount",Nf="focusScope.autoFocusOnUnmount",qb={bubbles:!1,cancelable:!0},g8="FocusScope",bR=i.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...c}=e,[s,m]=i.useState(null),d=ea(o),u=ea(a),p=i.useRef(null),v=_t(t,l=>m(l)),h=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(n){let l=function(w){if(h.paused||!s)return;const k=w.target;s.contains(k)?p.current=k:Dr(p.current,{select:!0})},g=function(w){if(h.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",l),document.addEventListener("focusout",g);const b=new MutationObserver(y);return s&&b.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",l),document.removeEventListener("focusout",g),b.disconnect()}}},[n,s,h.paused]),i.useEffect(()=>{if(s){Jb.add(h);const l=document.activeElement;if(!s.contains(l)){const g=new CustomEvent(jf,qb);s.addEventListener(jf,d),s.dispatchEvent(g),g.defaultPrevented||(h8(E8(wR(s)),{select:!0}),document.activeElement===l&&Dr(s))}return()=>{s.removeEventListener(jf,d),setTimeout(()=>{const g=new CustomEvent(Nf,qb);s.addEventListener(Nf,u),s.dispatchEvent(g),g.defaultPrevented||Dr(l??document.body,{select:!0}),s.removeEventListener(Nf,u),Jb.remove(h)},0)}}},[s,d,u,h]);const E=i.useCallback(l=>{if(!r&&!n||h.paused)return;const g=l.key==="Tab"&&!l.altKey&&!l.ctrlKey&&!l.metaKey,y=document.activeElement;if(g&&y){const b=l.currentTarget,[w,k]=y8(b);w&&k?!l.shiftKey&&y===k?(l.preventDefault(),r&&Dr(w,{select:!0})):l.shiftKey&&y===w&&(l.preventDefault(),r&&Dr(k,{select:!0})):y===b&&l.preventDefault()}},[r,n,h.paused]);return ne.jsx(ze.div,{tabIndex:-1,...c,ref:v,onKeyDown:E})});bR.displayName=g8;function h8(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(Dr(n,{select:t}),document.activeElement!==r)return}function y8(e){const t=wR(e),r=Zb(t,e),n=Zb(t.reverse(),e);return[r,n]}function wR(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 Zb(e,t){for(const r of e)if(!b8(r,{upTo:t}))return r}function b8(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 w8(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&&w8(e)&&t&&e.select()}}var Jb=x8();function x8(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=Qb(e,t),e.unshift(t)},remove(t){e=Qb(e,t),e[0]?.resume()}}}function Qb(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function E8(e){return e.filter(t=>t.tagName!=="A")}var k8="Portal",C8=i.forwardRef((e,t)=>{const{container:r,...n}=e,[o,a]=i.useState(!1);Xa(()=>a(!0),[]);const c=r||o&&globalThis?.document?.body;return c?Ee.createPortal(ne.jsx(ze.div,{...n,ref:t}),c):null});C8.displayName=k8;function S8(e,t){return i.useReducer((r,n)=>t[r][n]??r,e)}var ol=e=>{const{present:t,children:r}=e,n=R8(t),o=typeof r=="function"?r({present:n.isPresent}):i.Children.only(r),a=_t(n.ref,j8(o));return typeof r=="function"||n.isPresent?i.cloneElement(o,{ref:a}):null};ol.displayName="Presence";function R8(e){const[t,r]=i.useState(),n=i.useRef(null),o=i.useRef(e),a=i.useRef("none"),c=e?"mounted":"unmounted",[s,m]=S8(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const d=Ui(n.current);a.current=s==="mounted"?d:"none"},[s]),Xa(()=>{const d=n.current,u=o.current;if(u!==e){const p=a.current,v=Ui(d);e?m("MOUNT"):v==="none"||d?.display==="none"?m("UNMOUNT"):m(u&&p!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,m]),Xa(()=>{if(t){let d;const u=t.ownerDocument.defaultView??window,p=h=>{const E=Ui(n.current).includes(CSS.escape(h.animationName));if(h.target===t&&E&&(m("ANIMATION_END"),!o.current)){const l=t.style.animationFillMode;t.style.animationFillMode="forwards",d=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=l)})}},v=h=>{h.target===t&&(a.current=Ui(n.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{u.clearTimeout(d),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(d=>{n.current=d?getComputedStyle(d):null,r(d)},[])}}function Ui(e){return e?.animationName||"none"}function j8(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 Tf=0;function N8(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??ew()),document.body.insertAdjacentElement("beforeend",e[1]??ew()),Tf++,()=>{Tf===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Tf--}},[])}function ew(){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 yt=function(){return yt=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},yt.apply(this,arguments)};function xR(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 T8(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 Kc="right-scroll-bar-position",Vc="width-before-scroll-bar",D8="with-scroll-bars-hidden",_8="--removed-body-scroll-bar-size";function Df(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function O8(e,t){var r=M.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 P8=typeof window<"u"?i.useLayoutEffect:i.useEffect,tw=new WeakMap;function M8(e,t){var r=O8(null,function(n){return e.forEach(function(o){return Df(o,n)})});return P8(function(){var n=tw.get(r);if(n){var o=new Set(n),a=new Set(e),c=r.current;o.forEach(function(s){a.has(s)||Df(s,null)}),a.forEach(function(s){o.has(s)||Df(s,c)})}tw.set(r,e)},[e]),r}function A8(e){return e}function I8(e,t){t===void 0&&(t=A8);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 u=c;c=[],u.forEach(a)},d=function(){return Promise.resolve().then(m)};d(),r={push:function(u){c.push(u),d()},filter:function(u){return c=c.filter(u),r}}}};return o}function F8(e){e===void 0&&(e={});var t=I8(null);return t.options=yt({async:!0,ssr:!1},e),t}var ER=function(e){var t=e.sideCar,r=xR(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,yt({},r))};ER.isSideCarExport=!0;function L8(e,t){return e.useMedium(t),ER}var kR=F8(),_f=function(){},al=i.forwardRef(function(e,t){var r=i.useRef(null),n=i.useState({onScrollCapture:_f,onWheelCapture:_f,onTouchMoveCapture:_f}),o=n[0],a=n[1],c=e.forwardProps,s=e.children,m=e.className,d=e.removeScrollBar,u=e.enabled,p=e.shards,v=e.sideCar,h=e.noRelative,E=e.noIsolation,l=e.inert,g=e.allowPinchZoom,y=e.as,b=y===void 0?"div":y,w=e.gapMode,k=xR(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=v,T=M8([r,t]),C=yt(yt({},k),o);return i.createElement(i.Fragment,null,u&&i.createElement(S,{sideCar:kR,removeScrollBar:d,shards:p,noRelative:h,noIsolation:E,inert:l,setCallbacks:a,allowPinchZoom:!!g,lockRef:r,gapMode:w}),c?i.cloneElement(i.Children.only(s),yt(yt({},C),{ref:T})):i.createElement(b,yt({},C,{className:m,ref:T}),s))});al.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};al.classNames={fullWidth:Vc,zeroRight:Kc};var W8=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function z8(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=W8();return t&&e.setAttribute("nonce",t),e}function $8(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function U8(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Y8=function(){var e=0,t=null;return{add:function(r){e==0&&(t=z8())&&($8(t,r),U8(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},B8=function(){var e=Y8();return function(t,r){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},CR=function(){var e=B8(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},K8={left:0,top:0,right:0,gap:0},Of=function(e){return parseInt(e||"",10)||0},V8=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[Of(r),Of(n),Of(o)]},H8=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return K8;var t=V8(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])}},X8=CR(),Yo="data-scroll-locked",G8=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(D8,` {
|
827
|
-
overflow: hidden `).concat(n,`;
|
828
|
-
padding-right: `).concat(s,"px ").concat(n,`;
|
829
|
-
}
|
830
|
-
body[`).concat(Yo,`] {
|
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(Kc,` {
|
844
|
-
right: `).concat(s,"px ").concat(n,`;
|
845
|
-
}
|
846
|
-
|
847
|
-
.`).concat(Vc,` {
|
848
|
-
margin-right: `).concat(s,"px ").concat(n,`;
|
849
|
-
}
|
850
|
-
|
851
|
-
.`).concat(Kc," .").concat(Kc,` {
|
852
|
-
right: 0 `).concat(n,`;
|
853
|
-
}
|
854
|
-
|
855
|
-
.`).concat(Vc," .").concat(Vc,` {
|
856
|
-
margin-right: 0 `).concat(n,`;
|
857
|
-
}
|
858
|
-
|
859
|
-
body[`).concat(Yo,`] {
|
860
|
-
`).concat(_8,": ").concat(s,`px;
|
861
|
-
}
|
862
|
-
`)},rw=function(){var e=parseInt(document.body.getAttribute(Yo)||"0",10);return isFinite(e)?e:0},q8=function(){i.useEffect(function(){return document.body.setAttribute(Yo,(rw()+1).toString()),function(){var e=rw()-1;e<=0?document.body.removeAttribute(Yo):document.body.setAttribute(Yo,e.toString())}},[])},Z8=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;q8();var a=i.useMemo(function(){return H8(o)},[o]);return i.createElement(X8,{styles:G8(a,!t,o,r?"":"!important")})},cm=!1;if(typeof window<"u")try{var Yi=Object.defineProperty({},"passive",{get:function(){return cm=!0,!0}});window.addEventListener("test",Yi,Yi),window.removeEventListener("test",Yi,Yi)}catch{cm=!1}var mo=cm?{passive:!1}:!1,J8=function(e){return e.tagName==="TEXTAREA"},SR=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!J8(e)&&r[t]==="visible")},Q8=function(e){return SR(e,"overflowY")},eX=function(e){return SR(e,"overflowX")},nw=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=RR(e,n);if(o){var a=jR(e,n),c=a[1],s=a[2];if(c>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},tX=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},rX=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},RR=function(e,t){return e==="v"?Q8(t):eX(t)},jR=function(e,t){return e==="v"?tX(t):rX(t)},nX=function(e,t){return e==="h"&&t==="rtl"?-1:1},oX=function(e,t,r,n,o){var a=nX(e,window.getComputedStyle(t).direction),c=a*n,s=r.target,m=t.contains(s),d=!1,u=c>0,p=0,v=0;do{if(!s)break;var h=jR(e,s),E=h[0],l=h[1],g=h[2],y=l-g-a*E;(E||y)&&RR(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(u&&Math.abs(p)<1||!u&&Math.abs(v)<1)&&(d=!0),d},Bi=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ow=function(e){return[e.deltaX,e.deltaY]},aw=function(e){return e&&"current"in e?e.current:e},aX=function(e,t){return e[0]===t[0]&&e[1]===t[1]},sX=function(e){return`
|
863
|
-
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
864
|
-
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
865
|
-
`)},iX=0,vo=[];function cX(e){var t=i.useRef([]),r=i.useRef([0,0]),n=i.useRef(),o=i.useState(iX++)[0],a=i.useState(CR)[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 l=T8([e.lockRef.current],(e.shards||[]).map(aw)).filter(Boolean);return l.forEach(function(g){return g.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),l.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=i.useCallback(function(l,g){if("touches"in l&&l.touches.length===2||l.type==="wheel"&&l.ctrlKey)return!c.current.allowPinchZoom;var y=Bi(l),b=r.current,w="deltaX"in l?l.deltaX:b[0]-y[0],k="deltaY"in l?l.deltaY:b[1]-y[1],S,T=l.target,C=Math.abs(w)>Math.abs(k)?"h":"v";if("touches"in l&&C==="h"&&T.type==="range")return!1;var j=nw(C,T);if(!j)return!0;if(j?S=C:(S=C==="v"?"h":"v",j=nw(C,T)),!j)return!1;if(!n.current&&"changedTouches"in l&&(w||k)&&(n.current=S),!S)return!0;var O=n.current||S;return oX(O,g,l,O==="h"?w:k)},[]),m=i.useCallback(function(l){var g=l;if(!(!vo.length||vo[vo.length-1]!==a)){var y="deltaY"in g?ow(g):Bi(g),b=t.current.filter(function(S){return S.name===g.type&&(S.target===g.target||g.target===S.shadowParent)&&aX(S.delta,y)})[0];if(b&&b.should){g.cancelable&&g.preventDefault();return}if(!b){var w=(c.current.shards||[]).map(aw).filter(Boolean).filter(function(S){return S.contains(g.target)}),k=w.length>0?s(g,w[0]):!c.current.noIsolation;k&&g.cancelable&&g.preventDefault()}}},[]),d=i.useCallback(function(l,g,y,b){var w={name:l,delta:g,target:y,should:b,shadowParent:uX(y)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(k){return k!==w})},1)},[]),u=i.useCallback(function(l){r.current=Bi(l),n.current=void 0},[]),p=i.useCallback(function(l){d(l.type,ow(l),l.target,s(l,e.lockRef.current))},[]),v=i.useCallback(function(l){d(l.type,Bi(l),l.target,s(l,e.lockRef.current))},[]);i.useEffect(function(){return vo.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:v}),document.addEventListener("wheel",m,mo),document.addEventListener("touchmove",m,mo),document.addEventListener("touchstart",u,mo),function(){vo=vo.filter(function(l){return l!==a}),document.removeEventListener("wheel",m,mo),document.removeEventListener("touchmove",m,mo),document.removeEventListener("touchstart",u,mo)}},[]);var h=e.removeScrollBar,E=e.inert;return i.createElement(i.Fragment,null,E?i.createElement(a,{styles:sX(o)}):null,h?i.createElement(Z8,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function uX(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const lX=L8(kR,cX);var NR=i.forwardRef(function(e,t){return i.createElement(al,yt({},e,{ref:t,sideCar:lX}))});NR.classNames=al.classNames;var dX=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},go=new WeakMap,Ki=new WeakMap,Vi={},Pf=0,TR=function(e){return e&&(e.host||TR(e.parentNode))},fX=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=TR(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})},pX=function(e,t,r,n){var o=fX(t,Array.isArray(e)?e:[e]);Vi[r]||(Vi[r]=new WeakMap);var a=Vi[r],c=[],s=new Set,m=new Set(o),d=function(p){!p||s.has(p)||(s.add(p),d(p.parentNode))};o.forEach(d);var u=function(p){!p||m.has(p)||Array.prototype.forEach.call(p.children,function(v){if(s.has(v))u(v);else try{var h=v.getAttribute(n),E=h!==null&&h!=="false",l=(go.get(v)||0)+1,g=(a.get(v)||0)+1;go.set(v,l),a.set(v,g),c.push(v),l===1&&E&&Ki.set(v,!0),g===1&&v.setAttribute(r,"true"),E||v.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",v,y)}})};return u(t),s.clear(),Pf++,function(){c.forEach(function(p){var v=go.get(p)-1,h=a.get(p)-1;go.set(p,v),a.set(p,h),v||(Ki.has(p)||p.removeAttribute(n),Ki.delete(p)),h||p.removeAttribute(r)}),Pf--,Pf||(go=new WeakMap,go=new WeakMap,Ki=new WeakMap,Vi={})}},mX=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=dX(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),pX(n,o,r,"aria-hidden")):function(){return null}},DR="Dialog",[_R]=nl(DR),[lce,Gt]=_R(DR),OR="DialogTrigger",vX=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Gt(OR,r),a=_t(t,o.triggerRef);return ne.jsx(ze.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":jv(o.open),...n,ref:a,onClick:Te(e.onClick,o.onOpenToggle)})});vX.displayName=OR;var gX="DialogPortal",[dce,PR]=_R(gX,{forceMount:void 0}),xu="DialogOverlay",hX=i.forwardRef((e,t)=>{const r=PR(xu,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Gt(xu,e.__scopeDialog);return a.modal?ne.jsx(ol,{present:n||a.open,children:ne.jsx(bX,{...o,ref:t})}):null});hX.displayName=xu;var yX=Z.createSlot("DialogOverlay.RemoveScroll"),bX=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Gt(xu,r);return ne.jsx(NR,{as:yX,allowPinchZoom:!0,shards:[o.contentRef],children:ne.jsx(ze.div,{"data-state":jv(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),fn="DialogContent",wX=i.forwardRef((e,t)=>{const r=PR(fn,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Gt(fn,e.__scopeDialog);return ne.jsx(ol,{present:n||a.open,children:a.modal?ne.jsx(xX,{...o,ref:t}):ne.jsx(EX,{...o,ref:t})})});wX.displayName=fn;var xX=i.forwardRef((e,t)=>{const r=Gt(fn,e.__scopeDialog),n=i.useRef(null),o=_t(t,r.contentRef,n);return i.useEffect(()=>{const a=n.current;if(a)return mX(a)},[]),ne.jsx(MR,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Te(e.onCloseAutoFocus,a=>{a.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:Te(e.onPointerDownOutside,a=>{const c=a.detail.originalEvent,s=c.button===0&&c.ctrlKey===!0;(c.button===2||s)&&a.preventDefault()}),onFocusOutside:Te(e.onFocusOutside,a=>a.preventDefault())})}),EX=i.forwardRef((e,t)=>{const r=Gt(fn,e.__scopeDialog),n=i.useRef(!1),o=i.useRef(!1);return ne.jsx(MR,{...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()}})}),MR=i.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...c}=e,s=Gt(fn,r),m=i.useRef(null),d=_t(t,m);return N8(),ne.jsxs(ne.Fragment,{children:[ne.jsx(bR,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:ne.jsx(hR,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":jv(s.open),...c,ref:d,onDismiss:()=>s.onOpenChange(!1)})}),ne.jsxs(ne.Fragment,{children:[ne.jsx(RX,{titleId:s.titleId}),ne.jsx(NX,{contentRef:m,descriptionId:s.descriptionId})]})]})}),Rv="DialogTitle",kX=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Gt(Rv,r);return ne.jsx(ze.h2,{id:o.titleId,...n,ref:t})});kX.displayName=Rv;var AR="DialogDescription",CX=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Gt(AR,r);return ne.jsx(ze.p,{id:o.descriptionId,...n,ref:t})});CX.displayName=AR;var IR="DialogClose",SX=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Gt(IR,r);return ne.jsx(ze.button,{type:"button",...n,ref:t,onClick:Te(e.onClick,()=>o.onOpenChange(!1))})});SX.displayName=IR;function jv(e){return e?"open":"closed"}var FR="DialogTitleWarning",[fce,LR]=QH(FR,{contentName:fn,titleName:Rv,docsSlug:"dialog"}),RX=({titleId:e})=>{const t=LR(FR),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},jX="DialogDescriptionWarning",NX=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${LR(jX).contentName}}.`;return i.useEffect(()=>{const n=e.current?.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Mf={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 sw;function TX(){if(sw)return Ca;sw=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 Hi={};/**
|
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 iw;function DX(){return iw||(iw=1,process.env.NODE_ENV!=="production"&&(function(){function e(f){if(f==null)return null;if(typeof f=="function")return f.$$typeof===L?null:f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case l:return"Fragment";case y:return"Profiler";case g:return"StrictMode";case S:return"Suspense";case T:return"SuspenseList";case O:return"Activity"}if(typeof f=="object")switch(typeof f.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),f.$$typeof){case E:return"Portal";case w:return(f.displayName||"Context")+".Provider";case b:return(f._context.displayName||"Context")+".Consumer";case k:var x=f.render;return f=f.displayName,f||(f=x.displayName||x.name||"",f=f!==""?"ForwardRef("+f+")":"ForwardRef"),f;case C:return x=f.displayName||null,x!==null?x:e(f.type)||"Memo";case j:x=f._payload,f=f._init;try{return e(f(x))}catch{}}return null}function t(f){return""+f}function r(f){try{t(f);var x=!1}catch{x=!0}if(x){x=console;var R=x.error,D=typeof Symbol=="function"&&Symbol.toStringTag&&f[Symbol.toStringTag]||f.constructor.name||"Object";return R.call(x,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",D),t(f)}}function n(f){if(f===l)return"<>";if(typeof f=="object"&&f!==null&&f.$$typeof===j)return"<...>";try{var x=e(f);return x?"<"+x+">":"<...>"}catch{return"<...>"}}function o(){var f=I.A;return f===null?null:f.getOwner()}function a(){return Error("react-stack-top-frame")}function c(f){if(B.call(f,"key")){var x=Object.getOwnPropertyDescriptor(f,"key").get;if(x&&x.isReactWarning)return!1}return f.key!==void 0}function s(f,x){function R(){P||(P=!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))}R.isReactWarning=!0,Object.defineProperty(f,"key",{get:R,configurable:!0})}function m(){var f=e(this.type);return U[f]||(U[f]=!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.")),f=this.props.ref,f!==void 0?f:null}function d(f,x,R,D,F,A,G,H){return R=A.ref,f={$$typeof:h,type:f,key:x,props:A,_owner:F},(R!==void 0?R:null)!==null?Object.defineProperty(f,"ref",{enumerable:!1,get:m}):Object.defineProperty(f,"ref",{enumerable:!1,value:null}),f._store={},Object.defineProperty(f._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(f,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(f,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:G}),Object.defineProperty(f,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:H}),Object.freeze&&(Object.freeze(f.props),Object.freeze(f)),f}function u(f,x,R,D,F,A,G,H){var _=x.children;if(_!==void 0)if(D)if(K(_)){for(D=0;D<_.length;D++)p(_[D]);Object.freeze&&Object.freeze(_)}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(_);if(B.call(x,"key")){_=e(f);var W=Object.keys(x).filter(function(ce){return ce!=="key"});D=0<W.length?"{key: someKey, "+W.join(": ..., ")+": ...}":"{key: someKey}",X[_+D]||(W=0<W.length?"{"+W.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} />`,D,_,W,_),X[_+D]=!0)}if(_=null,R!==void 0&&(r(R),_=""+R),c(x)&&(r(x.key),_=""+x.key),"key"in x){R={};for(var q in x)q!=="key"&&(R[q]=x[q])}else R=x;return _&&s(R,typeof f=="function"?f.displayName||f.name||"Unknown":f),d(f,_,A,F,o(),R,G,H)}function p(f){typeof f=="object"&&f!==null&&f.$$typeof===h&&f._store&&(f._store.validated=1)}var v=M,h=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),g=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"),S=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),O=Symbol.for("react.activity"),L=Symbol.for("react.client.reference"),I=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=Object.prototype.hasOwnProperty,K=Array.isArray,$=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(f){return f()}};var P,U={},V=v.react_stack_bottom_frame.bind(v,a)(),Y=$(n(a)),X={};Hi.Fragment=l,Hi.jsx=function(f,x,R,D,F){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,x,R,!1,D,F,A?Error("react-stack-top-frame"):V,A?$(n(f)):Y)},Hi.jsxs=function(f,x,R,D,F){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,x,R,!0,D,F,A?Error("react-stack-top-frame"):V,A?$(n(f)):Y)}})()),Hi}var cw;function _X(){return cw||(cw=1,process.env.NODE_ENV==="production"?Mf.exports=TX():Mf.exports=DX()),Mf.exports}var oe=_X();M.createContext({locale:void 0});var OX=(e,t,r,n,o,a,c,s)=>{let m=document.documentElement,d=["light","dark"];function u(h){(Array.isArray(e)?e:[e]).forEach(E=>{let l=E==="class",g=l&&a?o.map(y=>a[y]||y):o;l?(m.classList.remove(...g),m.classList.add(a&&a[h]?a[h]:h)):m.setAttribute(E,h)}),p(h)}function p(h){s&&d.includes(h)&&(m.style.colorScheme=h)}function v(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(n)u(n);else try{let h=localStorage.getItem(t)||r,E=c&&h==="system"?v():h;u(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:d})=>{let u=JSON.stringify([r,t,a,e,s,c,n,o]).slice(1,-1);return i.createElement("script",{...d,suppressHydrationWarning:!0,nonce:typeof window>"u"?m:"",dangerouslySetInnerHTML:{__html:`(${OX.toString()})(${u})`}})});ie.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"}});ie.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 De(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),r===!1||!n.defaultPrevented)return t?.(n)}}function uw(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function PX(...e){return t=>{let r=!1;const n=e.map(o=>{const a=uw(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():uw(e[o],null)}}}}function Ot(...e){return i.useCallback(PX(...e),e)}function MX(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 sl(e,t=[]){let r=[];function n(a,c){const s=i.createContext(c),m=r.length;r=[...r,c];const d=p=>{const{scope:v,children:h,...E}=p,l=v?.[e]?.[m]||s,g=i.useMemo(()=>E,Object.values(E));return oe.jsx(l.Provider,{value:g,children:h})};d.displayName=a+"Provider";function u(p,v){const h=v?.[e]?.[m]||s,E=i.useContext(h);if(E)return E;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[d,u]}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,AX(o,...t)]}function AX(...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 d=s(o)[`__scope${m}`];return{...c,...d}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}var Ga=globalThis?.document?i.useLayoutEffect:()=>{},IX=i[" useId ".trim().toString()]||(()=>{}),FX=0;function WR(e){const[t,r]=i.useState(IX());return Ga(()=>{r(n=>n??String(FX++))},[e]),t?`radix-${t}`:""}var LX=i[" useInsertionEffect ".trim().toString()]||Ga;function zR({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,a,c]=WX({defaultProp:t,onChange:r}),s=e!==void 0,m=s?e:o;{const u=i.useRef(e!==void 0);i.useEffect(()=>{const p=u.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.`),u.current=s},[s,n])}const d=i.useCallback(u=>{if(s){const p=zX(u)?u(e):u;p!==e&&c.current?.(p)}else a(u)},[s,e,a,c]);return[m,d]}function WX({defaultProp:e,onChange:t}){const[r,n]=i.useState(e),o=i.useRef(r),a=i.useRef(t);return LX(()=>{a.current=t},[t]),i.useEffect(()=>{o.current!==r&&(a.current?.(r),o.current=r)},[r,o]),[r,n,a]}function zX(e){return typeof e=="function"}var $X=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],$e=$X.reduce((e,t)=>{const r=Z.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 UX(e,t){e&&ke.flushSync(()=>e.dispatchEvent(t))}function ta(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...r)=>t.current?.(...r),[])}function YX(e,t=globalThis?.document){const r=ta(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 BX="DismissableLayer",um="dismissableLayer.update",KX="dismissableLayer.pointerDownOutside",VX="dismissableLayer.focusOutside",lw,$R=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),UR=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:c,onDismiss:s,...m}=e,d=i.useContext($R),[u,p]=i.useState(null),v=u?.ownerDocument??globalThis?.document,[,h]=i.useState({}),E=Ot(t,C=>p(C)),l=Array.from(d.layers),[g]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),y=l.indexOf(g),b=u?l.indexOf(u):-1,w=d.layersWithOutsidePointerEventsDisabled.size>0,k=b>=y,S=GX(C=>{const j=C.target,O=[...d.branches].some(L=>L.contains(j));!k||O||(o?.(C),c?.(C),C.defaultPrevented||s?.())},v),T=qX(C=>{const j=C.target;[...d.branches].some(O=>O.contains(j))||(a?.(C),c?.(C),C.defaultPrevented||s?.())},v);return YX(C=>{b===d.layers.size-1&&(n?.(C),!C.defaultPrevented&&s&&(C.preventDefault(),s()))},v),i.useEffect(()=>{if(u)return r&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(lw=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(u)),d.layers.add(u),dw(),()=>{r&&d.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=lw)}},[u,v,r,d]),i.useEffect(()=>()=>{u&&(d.layers.delete(u),d.layersWithOutsidePointerEventsDisabled.delete(u),dw())},[u,d]),i.useEffect(()=>{const C=()=>h({});return document.addEventListener(um,C),()=>document.removeEventListener(um,C)},[]),oe.jsx($e.div,{...m,ref:E,style:{pointerEvents:w?k?"auto":"none":void 0,...e.style},onFocusCapture:De(e.onFocusCapture,T.onFocusCapture),onBlurCapture:De(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:De(e.onPointerDownCapture,S.onPointerDownCapture)})});UR.displayName=BX;var HX="DismissableLayerBranch",XX=i.forwardRef((e,t)=>{const r=i.useContext($R),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($e.div,{...e,ref:o})});XX.displayName=HX;function GX(e,t=globalThis?.document){const r=ta(e),n=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let m=function(){YR(KX,r,d,{discrete:!0})};const d={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 qX(e,t=globalThis?.document){const r=ta(e),n=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!n.current&&YR(VX,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 dw(){const e=new CustomEvent(um);document.dispatchEvent(e)}function YR(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?UX(o,a):o.dispatchEvent(a)}var Af="focusScope.autoFocusOnMount",If="focusScope.autoFocusOnUnmount",fw={bubbles:!1,cancelable:!0},ZX="FocusScope",BR=i.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...c}=e,[s,m]=i.useState(null),d=ta(o),u=ta(a),p=i.useRef(null),v=Ot(t,l=>m(l)),h=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(n){let l=function(w){if(h.paused||!s)return;const k=w.target;s.contains(k)?p.current=k:_r(p.current,{select:!0})},g=function(w){if(h.paused||!s)return;const k=w.relatedTarget;k!==null&&(s.contains(k)||_r(p.current,{select:!0}))},y=function(w){if(document.activeElement===document.body)for(const k of w)k.removedNodes.length>0&&_r(s)};document.addEventListener("focusin",l),document.addEventListener("focusout",g);const b=new MutationObserver(y);return s&&b.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",l),document.removeEventListener("focusout",g),b.disconnect()}}},[n,s,h.paused]),i.useEffect(()=>{if(s){mw.add(h);const l=document.activeElement;if(!s.contains(l)){const g=new CustomEvent(Af,fw);s.addEventListener(Af,d),s.dispatchEvent(g),g.defaultPrevented||(JX(nG(KR(s)),{select:!0}),document.activeElement===l&&_r(s))}return()=>{s.removeEventListener(Af,d),setTimeout(()=>{const g=new CustomEvent(If,fw);s.addEventListener(If,u),s.dispatchEvent(g),g.defaultPrevented||_r(l??document.body,{select:!0}),s.removeEventListener(If,u),mw.remove(h)},0)}}},[s,d,u,h]);const E=i.useCallback(l=>{if(!r&&!n||h.paused)return;const g=l.key==="Tab"&&!l.altKey&&!l.ctrlKey&&!l.metaKey,y=document.activeElement;if(g&&y){const b=l.currentTarget,[w,k]=QX(b);w&&k?!l.shiftKey&&y===k?(l.preventDefault(),r&&_r(w,{select:!0})):l.shiftKey&&y===w&&(l.preventDefault(),r&&_r(k,{select:!0})):y===b&&l.preventDefault()}},[r,n,h.paused]);return oe.jsx($e.div,{tabIndex:-1,...c,ref:v,onKeyDown:E})});BR.displayName=ZX;function JX(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(_r(n,{select:t}),document.activeElement!==r)return}function QX(e){const t=KR(e),r=pw(t,e),n=pw(t.reverse(),e);return[r,n]}function KR(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 pw(e,t){for(const r of e)if(!eG(r,{upTo:t}))return r}function eG(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 tG(e){return e instanceof HTMLInputElement&&"select"in e}function _r(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&tG(e)&&t&&e.select()}}var mw=rG();function rG(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=vw(e,t),e.unshift(t)},remove(t){e=vw(e,t),e[0]?.resume()}}}function vw(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function nG(e){return e.filter(t=>t.tagName!=="A")}var oG="Portal",aG=i.forwardRef((e,t)=>{const{container:r,...n}=e,[o,a]=i.useState(!1);Ga(()=>a(!0),[]);const c=r||o&&globalThis?.document?.body;return c?Ee.createPortal(oe.jsx($e.div,{...n,ref:t}),c):null});aG.displayName=oG;function sG(e,t){return i.useReducer((r,n)=>t[r][n]??r,e)}var il=e=>{const{present:t,children:r}=e,n=iG(t),o=typeof r=="function"?r({present:n.isPresent}):i.Children.only(r),a=Ot(n.ref,cG(o));return typeof r=="function"||n.isPresent?i.cloneElement(o,{ref:a}):null};il.displayName="Presence";function iG(e){const[t,r]=i.useState(),n=i.useRef(null),o=i.useRef(e),a=i.useRef("none"),c=e?"mounted":"unmounted",[s,m]=sG(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const d=Xi(n.current);a.current=s==="mounted"?d:"none"},[s]),Ga(()=>{const d=n.current,u=o.current;if(u!==e){const p=a.current,v=Xi(d);e?m("MOUNT"):v==="none"||d?.display==="none"?m("UNMOUNT"):m(u&&p!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,m]),Ga(()=>{if(t){let d;const u=t.ownerDocument.defaultView??window,p=h=>{const E=Xi(n.current).includes(CSS.escape(h.animationName));if(h.target===t&&E&&(m("ANIMATION_END"),!o.current)){const l=t.style.animationFillMode;t.style.animationFillMode="forwards",d=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=l)})}},v=h=>{h.target===t&&(a.current=Xi(n.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{u.clearTimeout(d),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(d=>{n.current=d?getComputedStyle(d):null,r(d)},[])}}function Xi(e){return e?.animationName||"none"}function cG(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 Ff=0;function uG(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??gw()),document.body.insertAdjacentElement("beforeend",e[1]??gw()),Ff++,()=>{Ff===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Ff--}},[])}function gw(){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 bt=function(){return bt=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},bt.apply(this,arguments)};function VR(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 lG(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",Xc="width-before-scroll-bar",dG="with-scroll-bars-hidden",fG="--removed-body-scroll-bar-size";function Lf(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function pG(e,t){var r=M.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 mG=typeof window<"u"?i.useLayoutEffect:i.useEffect,hw=new WeakMap;function vG(e,t){var r=pG(null,function(n){return e.forEach(function(o){return Lf(o,n)})});return mG(function(){var n=hw.get(r);if(n){var o=new Set(n),a=new Set(e),c=r.current;o.forEach(function(s){a.has(s)||Lf(s,null)}),a.forEach(function(s){o.has(s)||Lf(s,c)})}hw.set(r,e)},[e]),r}function gG(e){return e}function hG(e,t){t===void 0&&(t=gG);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 u=c;c=[],u.forEach(a)},d=function(){return Promise.resolve().then(m)};d(),r={push:function(u){c.push(u),d()},filter:function(u){return c=c.filter(u),r}}}};return o}function yG(e){e===void 0&&(e={});var t=hG(null);return t.options=bt({async:!0,ssr:!1},e),t}var HR=function(e){var t=e.sideCar,r=VR(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,bt({},r))};HR.isSideCarExport=!0;function bG(e,t){return e.useMedium(t),HR}var XR=yG(),Wf=function(){},cl=i.forwardRef(function(e,t){var r=i.useRef(null),n=i.useState({onScrollCapture:Wf,onWheelCapture:Wf,onTouchMoveCapture:Wf}),o=n[0],a=n[1],c=e.forwardProps,s=e.children,m=e.className,d=e.removeScrollBar,u=e.enabled,p=e.shards,v=e.sideCar,h=e.noRelative,E=e.noIsolation,l=e.inert,g=e.allowPinchZoom,y=e.as,b=y===void 0?"div":y,w=e.gapMode,k=VR(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=v,T=vG([r,t]),C=bt(bt({},k),o);return i.createElement(i.Fragment,null,u&&i.createElement(S,{sideCar:XR,removeScrollBar:d,shards:p,noRelative:h,noIsolation:E,inert:l,setCallbacks:a,allowPinchZoom:!!g,lockRef:r,gapMode:w}),c?i.cloneElement(i.Children.only(s),bt(bt({},C),{ref:T})):i.createElement(b,bt({},C,{className:m,ref:T}),s))});cl.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};cl.classNames={fullWidth:Xc,zeroRight:Hc};var wG=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function xG(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=wG();return t&&e.setAttribute("nonce",t),e}function EG(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function kG(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var CG=function(){var e=0,t=null;return{add:function(r){e==0&&(t=xG())&&(EG(t,r),kG(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},SG=function(){var e=CG();return function(t,r){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},GR=function(){var e=SG(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},RG={left:0,top:0,right:0,gap:0},zf=function(e){return parseInt(e||"",10)||0},jG=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[zf(r),zf(n),zf(o)]},NG=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return RG;var t=jG(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])}},TG=GR(),Bo="data-scroll-locked",DG=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(dG,` {
|
892
|
-
overflow: hidden `).concat(n,`;
|
893
|
-
padding-right: `).concat(s,"px ").concat(n,`;
|
894
|
-
}
|
895
|
-
body[`).concat(Bo,`] {
|
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(Hc,` {
|
909
|
-
right: `).concat(s,"px ").concat(n,`;
|
910
|
-
}
|
911
|
-
|
912
|
-
.`).concat(Xc,` {
|
913
|
-
margin-right: `).concat(s,"px ").concat(n,`;
|
914
|
-
}
|
915
|
-
|
916
|
-
.`).concat(Hc," .").concat(Hc,` {
|
917
|
-
right: 0 `).concat(n,`;
|
918
|
-
}
|
919
|
-
|
920
|
-
.`).concat(Xc," .").concat(Xc,` {
|
921
|
-
margin-right: 0 `).concat(n,`;
|
922
|
-
}
|
923
|
-
|
924
|
-
body[`).concat(Bo,`] {
|
925
|
-
`).concat(fG,": ").concat(s,`px;
|
926
|
-
}
|
927
|
-
`)},yw=function(){var e=parseInt(document.body.getAttribute(Bo)||"0",10);return isFinite(e)?e:0},_G=function(){i.useEffect(function(){return document.body.setAttribute(Bo,(yw()+1).toString()),function(){var e=yw()-1;e<=0?document.body.removeAttribute(Bo):document.body.setAttribute(Bo,e.toString())}},[])},OG=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;_G();var a=i.useMemo(function(){return NG(o)},[o]);return i.createElement(TG,{styles:DG(a,!t,o,r?"":"!important")})},lm=!1;if(typeof window<"u")try{var Gi=Object.defineProperty({},"passive",{get:function(){return lm=!0,!0}});window.addEventListener("test",Gi,Gi),window.removeEventListener("test",Gi,Gi)}catch{lm=!1}var ho=lm?{passive:!1}:!1,PG=function(e){return e.tagName==="TEXTAREA"},qR=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!PG(e)&&r[t]==="visible")},MG=function(e){return qR(e,"overflowY")},AG=function(e){return qR(e,"overflowX")},bw=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=ZR(e,n);if(o){var a=JR(e,n),c=a[1],s=a[2];if(c>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},IG=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},FG=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},ZR=function(e,t){return e==="v"?MG(t):AG(t)},JR=function(e,t){return e==="v"?IG(t):FG(t)},LG=function(e,t){return e==="h"&&t==="rtl"?-1:1},WG=function(e,t,r,n,o){var a=LG(e,window.getComputedStyle(t).direction),c=a*n,s=r.target,m=t.contains(s),d=!1,u=c>0,p=0,v=0;do{if(!s)break;var h=JR(e,s),E=h[0],l=h[1],g=h[2],y=l-g-a*E;(E||y)&&ZR(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(u&&Math.abs(p)<1||!u&&Math.abs(v)<1)&&(d=!0),d},qi=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ww=function(e){return[e.deltaX,e.deltaY]},xw=function(e){return e&&"current"in e?e.current:e},zG=function(e,t){return e[0]===t[0]&&e[1]===t[1]},$G=function(e){return`
|
928
|
-
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
929
|
-
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
930
|
-
`)},UG=0,yo=[];function YG(e){var t=i.useRef([]),r=i.useRef([0,0]),n=i.useRef(),o=i.useState(UG++)[0],a=i.useState(GR)[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 l=lG([e.lockRef.current],(e.shards||[]).map(xw)).filter(Boolean);return l.forEach(function(g){return g.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),l.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=i.useCallback(function(l,g){if("touches"in l&&l.touches.length===2||l.type==="wheel"&&l.ctrlKey)return!c.current.allowPinchZoom;var y=qi(l),b=r.current,w="deltaX"in l?l.deltaX:b[0]-y[0],k="deltaY"in l?l.deltaY:b[1]-y[1],S,T=l.target,C=Math.abs(w)>Math.abs(k)?"h":"v";if("touches"in l&&C==="h"&&T.type==="range")return!1;var j=bw(C,T);if(!j)return!0;if(j?S=C:(S=C==="v"?"h":"v",j=bw(C,T)),!j)return!1;if(!n.current&&"changedTouches"in l&&(w||k)&&(n.current=S),!S)return!0;var O=n.current||S;return WG(O,g,l,O==="h"?w:k)},[]),m=i.useCallback(function(l){var g=l;if(!(!yo.length||yo[yo.length-1]!==a)){var y="deltaY"in g?ww(g):qi(g),b=t.current.filter(function(S){return S.name===g.type&&(S.target===g.target||g.target===S.shadowParent)&&zG(S.delta,y)})[0];if(b&&b.should){g.cancelable&&g.preventDefault();return}if(!b){var w=(c.current.shards||[]).map(xw).filter(Boolean).filter(function(S){return S.contains(g.target)}),k=w.length>0?s(g,w[0]):!c.current.noIsolation;k&&g.cancelable&&g.preventDefault()}}},[]),d=i.useCallback(function(l,g,y,b){var w={name:l,delta:g,target:y,should:b,shadowParent:BG(y)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(k){return k!==w})},1)},[]),u=i.useCallback(function(l){r.current=qi(l),n.current=void 0},[]),p=i.useCallback(function(l){d(l.type,ww(l),l.target,s(l,e.lockRef.current))},[]),v=i.useCallback(function(l){d(l.type,qi(l),l.target,s(l,e.lockRef.current))},[]);i.useEffect(function(){return yo.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:v}),document.addEventListener("wheel",m,ho),document.addEventListener("touchmove",m,ho),document.addEventListener("touchstart",u,ho),function(){yo=yo.filter(function(l){return l!==a}),document.removeEventListener("wheel",m,ho),document.removeEventListener("touchmove",m,ho),document.removeEventListener("touchstart",u,ho)}},[]);var h=e.removeScrollBar,E=e.inert;return i.createElement(i.Fragment,null,E?i.createElement(a,{styles:$G(o)}):null,h?i.createElement(OG,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function BG(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const KG=bG(XR,YG);var QR=i.forwardRef(function(e,t){return i.createElement(cl,bt({},e,{ref:t,sideCar:KG}))});QR.classNames=cl.classNames;var VG=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},bo=new WeakMap,Zi=new WeakMap,Ji={},$f=0,ej=function(e){return e&&(e.host||ej(e.parentNode))},HG=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=ej(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})},XG=function(e,t,r,n){var o=HG(t,Array.isArray(e)?e:[e]);Ji[r]||(Ji[r]=new WeakMap);var a=Ji[r],c=[],s=new Set,m=new Set(o),d=function(p){!p||s.has(p)||(s.add(p),d(p.parentNode))};o.forEach(d);var u=function(p){!p||m.has(p)||Array.prototype.forEach.call(p.children,function(v){if(s.has(v))u(v);else try{var h=v.getAttribute(n),E=h!==null&&h!=="false",l=(bo.get(v)||0)+1,g=(a.get(v)||0)+1;bo.set(v,l),a.set(v,g),c.push(v),l===1&&E&&Zi.set(v,!0),g===1&&v.setAttribute(r,"true"),E||v.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",v,y)}})};return u(t),s.clear(),$f++,function(){c.forEach(function(p){var v=bo.get(p)-1,h=a.get(p)-1;bo.set(p,v),a.set(p,h),v||(Zi.has(p)||p.removeAttribute(n),Zi.delete(p)),h||p.removeAttribute(r)}),$f--,$f||(bo=new WeakMap,bo=new WeakMap,Zi=new WeakMap,Ji={})}},GG=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=VG(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),XG(n,o,r,"aria-hidden")):function(){return null}},tj="Dialog",[rj]=sl(tj),[pce,qt]=rj(tj),nj="DialogTrigger",qG=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=qt(nj,r),a=Ot(t,o.triggerRef);return oe.jsx($e.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Tv(o.open),...n,ref:a,onClick:De(e.onClick,o.onOpenToggle)})});qG.displayName=nj;var ZG="DialogPortal",[mce,oj]=rj(ZG,{forceMount:void 0}),Eu="DialogOverlay",JG=i.forwardRef((e,t)=>{const r=oj(Eu,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=qt(Eu,e.__scopeDialog);return a.modal?oe.jsx(il,{present:n||a.open,children:oe.jsx(eq,{...o,ref:t})}):null});JG.displayName=Eu;var QG=Z.createSlot("DialogOverlay.RemoveScroll"),eq=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=qt(Eu,r);return oe.jsx(QR,{as:QG,allowPinchZoom:!0,shards:[o.contentRef],children:oe.jsx($e.div,{"data-state":Tv(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),pn="DialogContent",tq=i.forwardRef((e,t)=>{const r=oj(pn,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=qt(pn,e.__scopeDialog);return oe.jsx(il,{present:n||a.open,children:a.modal?oe.jsx(rq,{...o,ref:t}):oe.jsx(nq,{...o,ref:t})})});tq.displayName=pn;var rq=i.forwardRef((e,t)=>{const r=qt(pn,e.__scopeDialog),n=i.useRef(null),o=Ot(t,r.contentRef,n);return i.useEffect(()=>{const a=n.current;if(a)return GG(a)},[]),oe.jsx(aj,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:De(e.onCloseAutoFocus,a=>{a.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:De(e.onPointerDownOutside,a=>{const c=a.detail.originalEvent,s=c.button===0&&c.ctrlKey===!0;(c.button===2||s)&&a.preventDefault()}),onFocusOutside:De(e.onFocusOutside,a=>a.preventDefault())})}),nq=i.forwardRef((e,t)=>{const r=qt(pn,e.__scopeDialog),n=i.useRef(!1),o=i.useRef(!1);return oe.jsx(aj,{...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()}})}),aj=i.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...c}=e,s=qt(pn,r),m=i.useRef(null),d=Ot(t,m);return uG(),oe.jsxs(oe.Fragment,{children:[oe.jsx(BR,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:oe.jsx(UR,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":Tv(s.open),...c,ref:d,onDismiss:()=>s.onOpenChange(!1)})}),oe.jsxs(oe.Fragment,{children:[oe.jsx(iq,{titleId:s.titleId}),oe.jsx(uq,{contentRef:m,descriptionId:s.descriptionId})]})]})}),Nv="DialogTitle",oq=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=qt(Nv,r);return oe.jsx($e.h2,{id:o.titleId,...n,ref:t})});oq.displayName=Nv;var sj="DialogDescription",aq=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=qt(sj,r);return oe.jsx($e.p,{id:o.descriptionId,...n,ref:t})});aq.displayName=sj;var ij="DialogClose",sq=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=qt(ij,r);return oe.jsx($e.button,{type:"button",...n,ref:t,onClick:De(e.onClick,()=>o.onOpenChange(!1))})});sq.displayName=ij;function Tv(e){return e?"open":"closed"}var cj="DialogTitleWarning",[vce,uj]=MX(cj,{contentName:pn,titleName:Nv,docsSlug:"dialog"}),iq=({titleId:e})=>{const t=uj(cj),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},cq="DialogDescriptionWarning",uq=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${uj(cq).contentName}}.`;return i.useEffect(()=>{const n=e.current?.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Uf={exports:{}},Sa={};/**
|
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 Ew;function lq(){if(Ew)return Sa;Ew=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 Qi={};/**
|
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 kw;function dq(){return kw||(kw=1,process.env.NODE_ENV!=="production"&&(function(){function e(f){if(f==null)return null;if(typeof f=="function")return f.$$typeof===L?null:f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case l:return"Fragment";case y:return"Profiler";case g:return"StrictMode";case S:return"Suspense";case T:return"SuspenseList";case O:return"Activity"}if(typeof f=="object")switch(typeof f.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),f.$$typeof){case E:return"Portal";case w:return(f.displayName||"Context")+".Provider";case b:return(f._context.displayName||"Context")+".Consumer";case k:var x=f.render;return f=f.displayName,f||(f=x.displayName||x.name||"",f=f!==""?"ForwardRef("+f+")":"ForwardRef"),f;case C:return x=f.displayName||null,x!==null?x:e(f.type)||"Memo";case j:x=f._payload,f=f._init;try{return e(f(x))}catch{}}return null}function t(f){return""+f}function r(f){try{t(f);var x=!1}catch{x=!0}if(x){x=console;var R=x.error,D=typeof Symbol=="function"&&Symbol.toStringTag&&f[Symbol.toStringTag]||f.constructor.name||"Object";return R.call(x,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",D),t(f)}}function n(f){if(f===l)return"<>";if(typeof f=="object"&&f!==null&&f.$$typeof===j)return"<...>";try{var x=e(f);return x?"<"+x+">":"<...>"}catch{return"<...>"}}function o(){var f=I.A;return f===null?null:f.getOwner()}function a(){return Error("react-stack-top-frame")}function c(f){if(B.call(f,"key")){var x=Object.getOwnPropertyDescriptor(f,"key").get;if(x&&x.isReactWarning)return!1}return f.key!==void 0}function s(f,x){function R(){P||(P=!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))}R.isReactWarning=!0,Object.defineProperty(f,"key",{get:R,configurable:!0})}function m(){var f=e(this.type);return U[f]||(U[f]=!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.")),f=this.props.ref,f!==void 0?f:null}function d(f,x,R,D,F,A,G,H){return R=A.ref,f={$$typeof:h,type:f,key:x,props:A,_owner:F},(R!==void 0?R:null)!==null?Object.defineProperty(f,"ref",{enumerable:!1,get:m}):Object.defineProperty(f,"ref",{enumerable:!1,value:null}),f._store={},Object.defineProperty(f._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(f,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(f,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:G}),Object.defineProperty(f,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:H}),Object.freeze&&(Object.freeze(f.props),Object.freeze(f)),f}function u(f,x,R,D,F,A,G,H){var _=x.children;if(_!==void 0)if(D)if(K(_)){for(D=0;D<_.length;D++)p(_[D]);Object.freeze&&Object.freeze(_)}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(_);if(B.call(x,"key")){_=e(f);var W=Object.keys(x).filter(function(ce){return ce!=="key"});D=0<W.length?"{key: someKey, "+W.join(": ..., ")+": ...}":"{key: someKey}",X[_+D]||(W=0<W.length?"{"+W.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} />`,D,_,W,_),X[_+D]=!0)}if(_=null,R!==void 0&&(r(R),_=""+R),c(x)&&(r(x.key),_=""+x.key),"key"in x){R={};for(var q in x)q!=="key"&&(R[q]=x[q])}else R=x;return _&&s(R,typeof f=="function"?f.displayName||f.name||"Unknown":f),d(f,_,A,F,o(),R,G,H)}function p(f){typeof f=="object"&&f!==null&&f.$$typeof===h&&f._store&&(f._store.validated=1)}var v=M,h=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),g=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"),S=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),O=Symbol.for("react.activity"),L=Symbol.for("react.client.reference"),I=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=Object.prototype.hasOwnProperty,K=Array.isArray,$=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(f){return f()}};var P,U={},V=v.react_stack_bottom_frame.bind(v,a)(),Y=$(n(a)),X={};Qi.Fragment=l,Qi.jsx=function(f,x,R,D,F){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,x,R,!1,D,F,A?Error("react-stack-top-frame"):V,A?$(n(f)):Y)},Qi.jsxs=function(f,x,R,D,F){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,x,R,!0,D,F,A?Error("react-stack-top-frame"):V,A?$(n(f)):Y)}})()),Qi}var Cw;function fq(){return Cw||(Cw=1,process.env.NODE_ENV==="production"?Uf.exports=lq():Uf.exports=dq()),Uf.exports}var ae=fq();M.createContext({locale:void 0});var pq=(e,t,r,n,o,a,c,s)=>{let m=document.documentElement,d=["light","dark"];function u(h){(Array.isArray(e)?e:[e]).forEach(E=>{let l=E==="class",g=l&&a?o.map(y=>a[y]||y):o;l?(m.classList.remove(...g),m.classList.add(a&&a[h]?a[h]:h)):m.setAttribute(E,h)}),p(h)}function p(h){s&&d.includes(h)&&(m.style.colorScheme=h)}function v(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(n)u(n);else try{let h=localStorage.getItem(t)||r,E=c&&h==="system"?v():h;u(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:d})=>{let u=JSON.stringify([r,t,a,e,s,c,n,o]).slice(1,-1);return i.createElement("script",{...d,suppressHydrationWarning:!0,nonce:typeof window>"u"?m:"",dangerouslySetInnerHTML:{__html:`(${pq.toString()})(${u})`}})});ie.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"}});ie.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 Sw(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function mq(...e){return t=>{let r=!1;const n=e.map(o=>{const a=Sw(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():Sw(e[o],null)}}}}function Pt(...e){return i.useCallback(mq(...e),e)}function vq(e,t){const r=i.createContext(t),n=a=>{const{children:c,...s}=a,m=i.useMemo(()=>s,Object.values(s));return ae.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 ul(e,t=[]){let r=[];function n(a,c){const s=i.createContext(c),m=r.length;r=[...r,c];const d=p=>{const{scope:v,children:h,...E}=p,l=v?.[e]?.[m]||s,g=i.useMemo(()=>E,Object.values(E));return ae.jsx(l.Provider,{value:g,children:h})};d.displayName=a+"Provider";function u(p,v){const h=v?.[e]?.[m]||s,E=i.useContext(h);if(E)return E;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[d,u]}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,gq(o,...t)]}function gq(...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 d=s(o)[`__scope${m}`];return{...c,...d}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}var qa=globalThis?.document?i.useLayoutEffect:()=>{},hq=i[" useId ".trim().toString()]||(()=>{}),yq=0;function lj(e){const[t,r]=i.useState(hq());return qa(()=>{r(n=>n??String(yq++))},[e]),t?`radix-${t}`:""}var bq=i[" useInsertionEffect ".trim().toString()]||qa;function dj({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,a,c]=wq({defaultProp:t,onChange:r}),s=e!==void 0,m=s?e:o;{const u=i.useRef(e!==void 0);i.useEffect(()=>{const p=u.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.`),u.current=s},[s,n])}const d=i.useCallback(u=>{if(s){const p=xq(u)?u(e):u;p!==e&&c.current?.(p)}else a(u)},[s,e,a,c]);return[m,d]}function wq({defaultProp:e,onChange:t}){const[r,n]=i.useState(e),o=i.useRef(r),a=i.useRef(t);return bq(()=>{a.current=t},[t]),i.useEffect(()=>{o.current!==r&&(a.current?.(r),o.current=r)},[r,o]),[r,n,a]}function xq(e){return typeof e=="function"}var Eq=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ue=Eq.reduce((e,t)=>{const r=Z.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),ae.jsx(m,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function kq(e,t){e&&ke.flushSync(()=>e.dispatchEvent(t))}function ra(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...r)=>t.current?.(...r),[])}function Cq(e,t=globalThis?.document){const r=ra(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 Sq="DismissableLayer",dm="dismissableLayer.update",Rq="dismissableLayer.pointerDownOutside",jq="dismissableLayer.focusOutside",Rw,fj=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),pj=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:c,onDismiss:s,...m}=e,d=i.useContext(fj),[u,p]=i.useState(null),v=u?.ownerDocument??globalThis?.document,[,h]=i.useState({}),E=Pt(t,C=>p(C)),l=Array.from(d.layers),[g]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),y=l.indexOf(g),b=u?l.indexOf(u):-1,w=d.layersWithOutsidePointerEventsDisabled.size>0,k=b>=y,S=Dq(C=>{const j=C.target,O=[...d.branches].some(L=>L.contains(j));!k||O||(o?.(C),c?.(C),C.defaultPrevented||s?.())},v),T=_q(C=>{const j=C.target;[...d.branches].some(O=>O.contains(j))||(a?.(C),c?.(C),C.defaultPrevented||s?.())},v);return Cq(C=>{b===d.layers.size-1&&(n?.(C),!C.defaultPrevented&&s&&(C.preventDefault(),s()))},v),i.useEffect(()=>{if(u)return r&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Rw=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(u)),d.layers.add(u),jw(),()=>{r&&d.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=Rw)}},[u,v,r,d]),i.useEffect(()=>()=>{u&&(d.layers.delete(u),d.layersWithOutsidePointerEventsDisabled.delete(u),jw())},[u,d]),i.useEffect(()=>{const C=()=>h({});return document.addEventListener(dm,C),()=>document.removeEventListener(dm,C)},[]),ae.jsx(Ue.div,{...m,ref:E,style:{pointerEvents:w?k?"auto":"none":void 0,...e.style},onFocusCapture:_e(e.onFocusCapture,T.onFocusCapture),onBlurCapture:_e(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:_e(e.onPointerDownCapture,S.onPointerDownCapture)})});pj.displayName=Sq;var Nq="DismissableLayerBranch",Tq=i.forwardRef((e,t)=>{const r=i.useContext(fj),n=i.useRef(null),o=Pt(t,n);return i.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),ae.jsx(Ue.div,{...e,ref:o})});Tq.displayName=Nq;function Dq(e,t=globalThis?.document){const r=ra(e),n=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let m=function(){mj(Rq,r,d,{discrete:!0})};const d={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 _q(e,t=globalThis?.document){const r=ra(e),n=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!n.current&&mj(jq,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 jw(){const e=new CustomEvent(dm);document.dispatchEvent(e)}function mj(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?kq(o,a):o.dispatchEvent(a)}var Yf="focusScope.autoFocusOnMount",Bf="focusScope.autoFocusOnUnmount",Nw={bubbles:!1,cancelable:!0},Oq="FocusScope",vj=i.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...c}=e,[s,m]=i.useState(null),d=ra(o),u=ra(a),p=i.useRef(null),v=Pt(t,l=>m(l)),h=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(n){let l=function(w){if(h.paused||!s)return;const k=w.target;s.contains(k)?p.current=k:Or(p.current,{select:!0})},g=function(w){if(h.paused||!s)return;const k=w.relatedTarget;k!==null&&(s.contains(k)||Or(p.current,{select:!0}))},y=function(w){if(document.activeElement===document.body)for(const k of w)k.removedNodes.length>0&&Or(s)};document.addEventListener("focusin",l),document.addEventListener("focusout",g);const b=new MutationObserver(y);return s&&b.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",l),document.removeEventListener("focusout",g),b.disconnect()}}},[n,s,h.paused]),i.useEffect(()=>{if(s){Dw.add(h);const l=document.activeElement;if(!s.contains(l)){const g=new CustomEvent(Yf,Nw);s.addEventListener(Yf,d),s.dispatchEvent(g),g.defaultPrevented||(Pq(Lq(gj(s)),{select:!0}),document.activeElement===l&&Or(s))}return()=>{s.removeEventListener(Yf,d),setTimeout(()=>{const g=new CustomEvent(Bf,Nw);s.addEventListener(Bf,u),s.dispatchEvent(g),g.defaultPrevented||Or(l??document.body,{select:!0}),s.removeEventListener(Bf,u),Dw.remove(h)},0)}}},[s,d,u,h]);const E=i.useCallback(l=>{if(!r&&!n||h.paused)return;const g=l.key==="Tab"&&!l.altKey&&!l.ctrlKey&&!l.metaKey,y=document.activeElement;if(g&&y){const b=l.currentTarget,[w,k]=Mq(b);w&&k?!l.shiftKey&&y===k?(l.preventDefault(),r&&Or(w,{select:!0})):l.shiftKey&&y===w&&(l.preventDefault(),r&&Or(k,{select:!0})):y===b&&l.preventDefault()}},[r,n,h.paused]);return ae.jsx(Ue.div,{tabIndex:-1,...c,ref:v,onKeyDown:E})});vj.displayName=Oq;function Pq(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(Or(n,{select:t}),document.activeElement!==r)return}function Mq(e){const t=gj(e),r=Tw(t,e),n=Tw(t.reverse(),e);return[r,n]}function gj(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 Tw(e,t){for(const r of e)if(!Aq(r,{upTo:t}))return r}function Aq(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 Iq(e){return e instanceof HTMLInputElement&&"select"in e}function Or(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&Iq(e)&&t&&e.select()}}var Dw=Fq();function Fq(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=_w(e,t),e.unshift(t)},remove(t){e=_w(e,t),e[0]?.resume()}}}function _w(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function Lq(e){return e.filter(t=>t.tagName!=="A")}var Wq="Portal",zq=i.forwardRef((e,t)=>{const{container:r,...n}=e,[o,a]=i.useState(!1);qa(()=>a(!0),[]);const c=r||o&&globalThis?.document?.body;return c?Ee.createPortal(ae.jsx(Ue.div,{...n,ref:t}),c):null});zq.displayName=Wq;function $q(e,t){return i.useReducer((r,n)=>t[r][n]??r,e)}var ll=e=>{const{present:t,children:r}=e,n=Uq(t),o=typeof r=="function"?r({present:n.isPresent}):i.Children.only(r),a=Pt(n.ref,Yq(o));return typeof r=="function"||n.isPresent?i.cloneElement(o,{ref:a}):null};ll.displayName="Presence";function Uq(e){const[t,r]=i.useState(),n=i.useRef(null),o=i.useRef(e),a=i.useRef("none"),c=e?"mounted":"unmounted",[s,m]=$q(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const d=ec(n.current);a.current=s==="mounted"?d:"none"},[s]),qa(()=>{const d=n.current,u=o.current;if(u!==e){const p=a.current,v=ec(d);e?m("MOUNT"):v==="none"||d?.display==="none"?m("UNMOUNT"):m(u&&p!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,m]),qa(()=>{if(t){let d;const u=t.ownerDocument.defaultView??window,p=h=>{const E=ec(n.current).includes(CSS.escape(h.animationName));if(h.target===t&&E&&(m("ANIMATION_END"),!o.current)){const l=t.style.animationFillMode;t.style.animationFillMode="forwards",d=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=l)})}},v=h=>{h.target===t&&(a.current=ec(n.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{u.clearTimeout(d),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(d=>{n.current=d?getComputedStyle(d):null,r(d)},[])}}function ec(e){return e?.animationName||"none"}function Yq(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 Kf=0;function Bq(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Ow()),document.body.insertAdjacentElement("beforeend",e[1]??Ow()),Kf++,()=>{Kf===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Kf--}},[])}function Ow(){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 wt=function(){return wt=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},wt.apply(this,arguments)};function hj(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 Kq(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 Gc="right-scroll-bar-position",qc="width-before-scroll-bar",Vq="with-scroll-bars-hidden",Hq="--removed-body-scroll-bar-size";function Vf(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Xq(e,t){var r=M.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 Gq=typeof window<"u"?i.useLayoutEffect:i.useEffect,Pw=new WeakMap;function qq(e,t){var r=Xq(null,function(n){return e.forEach(function(o){return Vf(o,n)})});return Gq(function(){var n=Pw.get(r);if(n){var o=new Set(n),a=new Set(e),c=r.current;o.forEach(function(s){a.has(s)||Vf(s,null)}),a.forEach(function(s){o.has(s)||Vf(s,c)})}Pw.set(r,e)},[e]),r}function Zq(e){return e}function Jq(e,t){t===void 0&&(t=Zq);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 u=c;c=[],u.forEach(a)},d=function(){return Promise.resolve().then(m)};d(),r={push:function(u){c.push(u),d()},filter:function(u){return c=c.filter(u),r}}}};return o}function Qq(e){e===void 0&&(e={});var t=Jq(null);return t.options=wt({async:!0,ssr:!1},e),t}var yj=function(e){var t=e.sideCar,r=hj(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,wt({},r))};yj.isSideCarExport=!0;function eZ(e,t){return e.useMedium(t),yj}var bj=Qq(),Hf=function(){},dl=i.forwardRef(function(e,t){var r=i.useRef(null),n=i.useState({onScrollCapture:Hf,onWheelCapture:Hf,onTouchMoveCapture:Hf}),o=n[0],a=n[1],c=e.forwardProps,s=e.children,m=e.className,d=e.removeScrollBar,u=e.enabled,p=e.shards,v=e.sideCar,h=e.noRelative,E=e.noIsolation,l=e.inert,g=e.allowPinchZoom,y=e.as,b=y===void 0?"div":y,w=e.gapMode,k=hj(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=v,T=qq([r,t]),C=wt(wt({},k),o);return i.createElement(i.Fragment,null,u&&i.createElement(S,{sideCar:bj,removeScrollBar:d,shards:p,noRelative:h,noIsolation:E,inert:l,setCallbacks:a,allowPinchZoom:!!g,lockRef:r,gapMode:w}),c?i.cloneElement(i.Children.only(s),wt(wt({},C),{ref:T})):i.createElement(b,wt({},C,{className:m,ref:T}),s))});dl.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};dl.classNames={fullWidth:qc,zeroRight:Gc};var tZ=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function rZ(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=tZ();return t&&e.setAttribute("nonce",t),e}function nZ(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function oZ(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var aZ=function(){var e=0,t=null;return{add:function(r){e==0&&(t=rZ())&&(nZ(t,r),oZ(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},sZ=function(){var e=aZ();return function(t,r){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},wj=function(){var e=sZ(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},iZ={left:0,top:0,right:0,gap:0},Xf=function(e){return parseInt(e||"",10)||0},cZ=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[Xf(r),Xf(n),Xf(o)]},uZ=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return iZ;var t=cZ(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])}},lZ=wj(),Ko="data-scroll-locked",dZ=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(Vq,` {
|
957
|
-
overflow: hidden `).concat(n,`;
|
958
|
-
padding-right: `).concat(s,"px ").concat(n,`;
|
959
|
-
}
|
960
|
-
body[`).concat(Ko,`] {
|
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(Gc,` {
|
974
|
-
right: `).concat(s,"px ").concat(n,`;
|
975
|
-
}
|
976
|
-
|
977
|
-
.`).concat(qc,` {
|
978
|
-
margin-right: `).concat(s,"px ").concat(n,`;
|
979
|
-
}
|
980
|
-
|
981
|
-
.`).concat(Gc," .").concat(Gc,` {
|
982
|
-
right: 0 `).concat(n,`;
|
983
|
-
}
|
984
|
-
|
985
|
-
.`).concat(qc," .").concat(qc,` {
|
986
|
-
margin-right: 0 `).concat(n,`;
|
987
|
-
}
|
988
|
-
|
989
|
-
body[`).concat(Ko,`] {
|
990
|
-
`).concat(Hq,": ").concat(s,`px;
|
991
|
-
}
|
992
|
-
`)},Mw=function(){var e=parseInt(document.body.getAttribute(Ko)||"0",10);return isFinite(e)?e:0},fZ=function(){i.useEffect(function(){return document.body.setAttribute(Ko,(Mw()+1).toString()),function(){var e=Mw()-1;e<=0?document.body.removeAttribute(Ko):document.body.setAttribute(Ko,e.toString())}},[])},pZ=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;fZ();var a=i.useMemo(function(){return uZ(o)},[o]);return i.createElement(lZ,{styles:dZ(a,!t,o,r?"":"!important")})},fm=!1;if(typeof window<"u")try{var tc=Object.defineProperty({},"passive",{get:function(){return fm=!0,!0}});window.addEventListener("test",tc,tc),window.removeEventListener("test",tc,tc)}catch{fm=!1}var wo=fm?{passive:!1}:!1,mZ=function(e){return e.tagName==="TEXTAREA"},xj=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!mZ(e)&&r[t]==="visible")},vZ=function(e){return xj(e,"overflowY")},gZ=function(e){return xj(e,"overflowX")},Aw=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=Ej(e,n);if(o){var a=kj(e,n),c=a[1],s=a[2];if(c>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},hZ=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},yZ=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},Ej=function(e,t){return e==="v"?vZ(t):gZ(t)},kj=function(e,t){return e==="v"?hZ(t):yZ(t)},bZ=function(e,t){return e==="h"&&t==="rtl"?-1:1},wZ=function(e,t,r,n,o){var a=bZ(e,window.getComputedStyle(t).direction),c=a*n,s=r.target,m=t.contains(s),d=!1,u=c>0,p=0,v=0;do{if(!s)break;var h=kj(e,s),E=h[0],l=h[1],g=h[2],y=l-g-a*E;(E||y)&&Ej(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(u&&Math.abs(p)<1||!u&&Math.abs(v)<1)&&(d=!0),d},rc=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Iw=function(e){return[e.deltaX,e.deltaY]},Fw=function(e){return e&&"current"in e?e.current:e},xZ=function(e,t){return e[0]===t[0]&&e[1]===t[1]},EZ=function(e){return`
|
993
|
-
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
994
|
-
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
995
|
-
`)},kZ=0,xo=[];function CZ(e){var t=i.useRef([]),r=i.useRef([0,0]),n=i.useRef(),o=i.useState(kZ++)[0],a=i.useState(wj)[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 l=Kq([e.lockRef.current],(e.shards||[]).map(Fw)).filter(Boolean);return l.forEach(function(g){return g.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),l.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=i.useCallback(function(l,g){if("touches"in l&&l.touches.length===2||l.type==="wheel"&&l.ctrlKey)return!c.current.allowPinchZoom;var y=rc(l),b=r.current,w="deltaX"in l?l.deltaX:b[0]-y[0],k="deltaY"in l?l.deltaY:b[1]-y[1],S,T=l.target,C=Math.abs(w)>Math.abs(k)?"h":"v";if("touches"in l&&C==="h"&&T.type==="range")return!1;var j=Aw(C,T);if(!j)return!0;if(j?S=C:(S=C==="v"?"h":"v",j=Aw(C,T)),!j)return!1;if(!n.current&&"changedTouches"in l&&(w||k)&&(n.current=S),!S)return!0;var O=n.current||S;return wZ(O,g,l,O==="h"?w:k)},[]),m=i.useCallback(function(l){var g=l;if(!(!xo.length||xo[xo.length-1]!==a)){var y="deltaY"in g?Iw(g):rc(g),b=t.current.filter(function(S){return S.name===g.type&&(S.target===g.target||g.target===S.shadowParent)&&xZ(S.delta,y)})[0];if(b&&b.should){g.cancelable&&g.preventDefault();return}if(!b){var w=(c.current.shards||[]).map(Fw).filter(Boolean).filter(function(S){return S.contains(g.target)}),k=w.length>0?s(g,w[0]):!c.current.noIsolation;k&&g.cancelable&&g.preventDefault()}}},[]),d=i.useCallback(function(l,g,y,b){var w={name:l,delta:g,target:y,should:b,shadowParent:SZ(y)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(k){return k!==w})},1)},[]),u=i.useCallback(function(l){r.current=rc(l),n.current=void 0},[]),p=i.useCallback(function(l){d(l.type,Iw(l),l.target,s(l,e.lockRef.current))},[]),v=i.useCallback(function(l){d(l.type,rc(l),l.target,s(l,e.lockRef.current))},[]);i.useEffect(function(){return xo.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:v}),document.addEventListener("wheel",m,wo),document.addEventListener("touchmove",m,wo),document.addEventListener("touchstart",u,wo),function(){xo=xo.filter(function(l){return l!==a}),document.removeEventListener("wheel",m,wo),document.removeEventListener("touchmove",m,wo),document.removeEventListener("touchstart",u,wo)}},[]);var h=e.removeScrollBar,E=e.inert;return i.createElement(i.Fragment,null,E?i.createElement(a,{styles:EZ(o)}):null,h?i.createElement(pZ,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function SZ(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const RZ=eZ(bj,CZ);var Cj=i.forwardRef(function(e,t){return i.createElement(dl,wt({},e,{ref:t,sideCar:RZ}))});Cj.classNames=dl.classNames;var jZ=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Eo=new WeakMap,nc=new WeakMap,oc={},Gf=0,Sj=function(e){return e&&(e.host||Sj(e.parentNode))},NZ=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=Sj(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})},TZ=function(e,t,r,n){var o=NZ(t,Array.isArray(e)?e:[e]);oc[r]||(oc[r]=new WeakMap);var a=oc[r],c=[],s=new Set,m=new Set(o),d=function(p){!p||s.has(p)||(s.add(p),d(p.parentNode))};o.forEach(d);var u=function(p){!p||m.has(p)||Array.prototype.forEach.call(p.children,function(v){if(s.has(v))u(v);else try{var h=v.getAttribute(n),E=h!==null&&h!=="false",l=(Eo.get(v)||0)+1,g=(a.get(v)||0)+1;Eo.set(v,l),a.set(v,g),c.push(v),l===1&&E&&nc.set(v,!0),g===1&&v.setAttribute(r,"true"),E||v.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",v,y)}})};return u(t),s.clear(),Gf++,function(){c.forEach(function(p){var v=Eo.get(p)-1,h=a.get(p)-1;Eo.set(p,v),a.set(p,h),v||(nc.has(p)||p.removeAttribute(n),nc.delete(p)),h||p.removeAttribute(r)}),Gf--,Gf||(Eo=new WeakMap,Eo=new WeakMap,nc=new WeakMap,oc={})}},DZ=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=jZ(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),TZ(n,o,r,"aria-hidden")):function(){return null}},Rj="Dialog",[jj]=ul(Rj),[gce,Zt]=jj(Rj),Nj="DialogTrigger",_Z=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Zt(Nj,r),a=Pt(t,o.triggerRef);return ae.jsx(Ue.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":_v(o.open),...n,ref:a,onClick:_e(e.onClick,o.onOpenToggle)})});_Z.displayName=Nj;var OZ="DialogPortal",[hce,Tj]=jj(OZ,{forceMount:void 0}),ku="DialogOverlay",PZ=i.forwardRef((e,t)=>{const r=Tj(ku,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Zt(ku,e.__scopeDialog);return a.modal?ae.jsx(ll,{present:n||a.open,children:ae.jsx(AZ,{...o,ref:t})}):null});PZ.displayName=ku;var MZ=Z.createSlot("DialogOverlay.RemoveScroll"),AZ=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Zt(ku,r);return ae.jsx(Cj,{as:MZ,allowPinchZoom:!0,shards:[o.contentRef],children:ae.jsx(Ue.div,{"data-state":_v(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),mn="DialogContent",IZ=i.forwardRef((e,t)=>{const r=Tj(mn,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Zt(mn,e.__scopeDialog);return ae.jsx(ll,{present:n||a.open,children:a.modal?ae.jsx(FZ,{...o,ref:t}):ae.jsx(LZ,{...o,ref:t})})});IZ.displayName=mn;var FZ=i.forwardRef((e,t)=>{const r=Zt(mn,e.__scopeDialog),n=i.useRef(null),o=Pt(t,r.contentRef,n);return i.useEffect(()=>{const a=n.current;if(a)return DZ(a)},[]),ae.jsx(Dj,{...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())})}),LZ=i.forwardRef((e,t)=>{const r=Zt(mn,e.__scopeDialog),n=i.useRef(!1),o=i.useRef(!1);return ae.jsx(Dj,{...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()}})}),Dj=i.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...c}=e,s=Zt(mn,r),m=i.useRef(null),d=Pt(t,m);return Bq(),ae.jsxs(ae.Fragment,{children:[ae.jsx(vj,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:ae.jsx(pj,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":_v(s.open),...c,ref:d,onDismiss:()=>s.onOpenChange(!1)})}),ae.jsxs(ae.Fragment,{children:[ae.jsx(UZ,{titleId:s.titleId}),ae.jsx(BZ,{contentRef:m,descriptionId:s.descriptionId})]})]})}),Dv="DialogTitle",WZ=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Zt(Dv,r);return ae.jsx(Ue.h2,{id:o.titleId,...n,ref:t})});WZ.displayName=Dv;var _j="DialogDescription",zZ=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Zt(_j,r);return ae.jsx(Ue.p,{id:o.descriptionId,...n,ref:t})});zZ.displayName=_j;var Oj="DialogClose",$Z=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Zt(Oj,r);return ae.jsx(Ue.button,{type:"button",...n,ref:t,onClick:_e(e.onClick,()=>o.onOpenChange(!1))})});$Z.displayName=Oj;function _v(e){return e?"open":"closed"}var Pj="DialogTitleWarning",[yce,Mj]=vq(Pj,{contentName:mn,titleName:Dv,docsSlug:"dialog"}),UZ=({titleId:e})=>{const t=Mj(Pj),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},YZ="DialogDescriptionWarning",BZ=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Mj(YZ).contentName}}.`;return i.useEffect(()=>{const n=e.current?.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},qf={exports:{}},Ra={};/**
|
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 Lw;function KZ(){if(Lw)return Ra;Lw=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 ac={};/**
|
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 Ww;function VZ(){return Ww||(Ww=1,process.env.NODE_ENV!=="production"&&(function(){function e(f){if(f==null)return null;if(typeof f=="function")return f.$$typeof===L?null:f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case l:return"Fragment";case y:return"Profiler";case g:return"StrictMode";case S:return"Suspense";case T:return"SuspenseList";case O:return"Activity"}if(typeof f=="object")switch(typeof f.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),f.$$typeof){case E:return"Portal";case w:return(f.displayName||"Context")+".Provider";case b:return(f._context.displayName||"Context")+".Consumer";case k:var x=f.render;return f=f.displayName,f||(f=x.displayName||x.name||"",f=f!==""?"ForwardRef("+f+")":"ForwardRef"),f;case C:return x=f.displayName||null,x!==null?x:e(f.type)||"Memo";case j:x=f._payload,f=f._init;try{return e(f(x))}catch{}}return null}function t(f){return""+f}function r(f){try{t(f);var x=!1}catch{x=!0}if(x){x=console;var R=x.error,D=typeof Symbol=="function"&&Symbol.toStringTag&&f[Symbol.toStringTag]||f.constructor.name||"Object";return R.call(x,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",D),t(f)}}function n(f){if(f===l)return"<>";if(typeof f=="object"&&f!==null&&f.$$typeof===j)return"<...>";try{var x=e(f);return x?"<"+x+">":"<...>"}catch{return"<...>"}}function o(){var f=I.A;return f===null?null:f.getOwner()}function a(){return Error("react-stack-top-frame")}function c(f){if(B.call(f,"key")){var x=Object.getOwnPropertyDescriptor(f,"key").get;if(x&&x.isReactWarning)return!1}return f.key!==void 0}function s(f,x){function R(){P||(P=!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))}R.isReactWarning=!0,Object.defineProperty(f,"key",{get:R,configurable:!0})}function m(){var f=e(this.type);return U[f]||(U[f]=!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.")),f=this.props.ref,f!==void 0?f:null}function d(f,x,R,D,F,A,G,H){return R=A.ref,f={$$typeof:h,type:f,key:x,props:A,_owner:F},(R!==void 0?R:null)!==null?Object.defineProperty(f,"ref",{enumerable:!1,get:m}):Object.defineProperty(f,"ref",{enumerable:!1,value:null}),f._store={},Object.defineProperty(f._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(f,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(f,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:G}),Object.defineProperty(f,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:H}),Object.freeze&&(Object.freeze(f.props),Object.freeze(f)),f}function u(f,x,R,D,F,A,G,H){var _=x.children;if(_!==void 0)if(D)if(K(_)){for(D=0;D<_.length;D++)p(_[D]);Object.freeze&&Object.freeze(_)}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(_);if(B.call(x,"key")){_=e(f);var W=Object.keys(x).filter(function(ce){return ce!=="key"});D=0<W.length?"{key: someKey, "+W.join(": ..., ")+": ...}":"{key: someKey}",X[_+D]||(W=0<W.length?"{"+W.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} />`,D,_,W,_),X[_+D]=!0)}if(_=null,R!==void 0&&(r(R),_=""+R),c(x)&&(r(x.key),_=""+x.key),"key"in x){R={};for(var q in x)q!=="key"&&(R[q]=x[q])}else R=x;return _&&s(R,typeof f=="function"?f.displayName||f.name||"Unknown":f),d(f,_,A,F,o(),R,G,H)}function p(f){typeof f=="object"&&f!==null&&f.$$typeof===h&&f._store&&(f._store.validated=1)}var v=M,h=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),g=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"),S=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),O=Symbol.for("react.activity"),L=Symbol.for("react.client.reference"),I=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=Object.prototype.hasOwnProperty,K=Array.isArray,$=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(f){return f()}};var P,U={},V=v.react_stack_bottom_frame.bind(v,a)(),Y=$(n(a)),X={};ac.Fragment=l,ac.jsx=function(f,x,R,D,F){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,x,R,!1,D,F,A?Error("react-stack-top-frame"):V,A?$(n(f)):Y)},ac.jsxs=function(f,x,R,D,F){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,x,R,!0,D,F,A?Error("react-stack-top-frame"):V,A?$(n(f)):Y)}})()),ac}var zw;function HZ(){return zw||(zw=1,process.env.NODE_ENV==="production"?qf.exports=KZ():qf.exports=VZ()),qf.exports}var se=HZ();M.createContext({locale:void 0});var XZ=(e,t,r,n,o,a,c,s)=>{let m=document.documentElement,d=["light","dark"];function u(h){(Array.isArray(e)?e:[e]).forEach(E=>{let l=E==="class",g=l&&a?o.map(y=>a[y]||y):o;l?(m.classList.remove(...g),m.classList.add(a&&a[h]?a[h]:h)):m.setAttribute(E,h)}),p(h)}function p(h){s&&d.includes(h)&&(m.style.colorScheme=h)}function v(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(n)u(n);else try{let h=localStorage.getItem(t)||r,E=c&&h==="system"?v():h;u(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:d})=>{let u=JSON.stringify([r,t,a,e,s,c,n,o]).slice(1,-1);return i.createElement("script",{...d,suppressHydrationWarning:!0,nonce:typeof window>"u"?m:"",dangerouslySetInnerHTML:{__html:`(${XZ.toString()})(${u})`}})});ie.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"}});ie.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 $w(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function GZ(...e){return t=>{let r=!1;const n=e.map(o=>{const a=$w(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():$w(e[o],null)}}}}function Mt(...e){return i.useCallback(GZ(...e),e)}function qZ(e,t){const r=i.createContext(t),n=a=>{const{children:c,...s}=a,m=i.useMemo(()=>s,Object.values(s));return se.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 fl(e,t=[]){let r=[];function n(a,c){const s=i.createContext(c),m=r.length;r=[...r,c];const d=p=>{const{scope:v,children:h,...E}=p,l=v?.[e]?.[m]||s,g=i.useMemo(()=>E,Object.values(E));return se.jsx(l.Provider,{value:g,children:h})};d.displayName=a+"Provider";function u(p,v){const h=v?.[e]?.[m]||s,E=i.useContext(h);if(E)return E;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[d,u]}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,ZZ(o,...t)]}function ZZ(...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 d=s(o)[`__scope${m}`];return{...c,...d}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}var Za=globalThis?.document?i.useLayoutEffect:()=>{},JZ=i[" useId ".trim().toString()]||(()=>{}),QZ=0;function Aj(e){const[t,r]=i.useState(JZ());return Za(()=>{r(n=>n??String(QZ++))},[e]),t?`radix-${t}`:""}var e7=i[" useInsertionEffect ".trim().toString()]||Za;function Ij({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,a,c]=t7({defaultProp:t,onChange:r}),s=e!==void 0,m=s?e:o;{const u=i.useRef(e!==void 0);i.useEffect(()=>{const p=u.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.`),u.current=s},[s,n])}const d=i.useCallback(u=>{if(s){const p=r7(u)?u(e):u;p!==e&&c.current?.(p)}else a(u)},[s,e,a,c]);return[m,d]}function t7({defaultProp:e,onChange:t}){const[r,n]=i.useState(e),o=i.useRef(r),a=i.useRef(t);return e7(()=>{a.current=t},[t]),i.useEffect(()=>{o.current!==r&&(a.current?.(r),o.current=r)},[r,o]),[r,n,a]}function r7(e){return typeof e=="function"}var n7=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ye=n7.reduce((e,t)=>{const r=Z.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),se.jsx(m,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function o7(e,t){e&&ke.flushSync(()=>e.dispatchEvent(t))}function na(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...r)=>t.current?.(...r),[])}function a7(e,t=globalThis?.document){const r=na(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 s7="DismissableLayer",pm="dismissableLayer.update",i7="dismissableLayer.pointerDownOutside",c7="dismissableLayer.focusOutside",Uw,Fj=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Lj=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:c,onDismiss:s,...m}=e,d=i.useContext(Fj),[u,p]=i.useState(null),v=u?.ownerDocument??globalThis?.document,[,h]=i.useState({}),E=Mt(t,C=>p(C)),l=Array.from(d.layers),[g]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),y=l.indexOf(g),b=u?l.indexOf(u):-1,w=d.layersWithOutsidePointerEventsDisabled.size>0,k=b>=y,S=d7(C=>{const j=C.target,O=[...d.branches].some(L=>L.contains(j));!k||O||(o?.(C),c?.(C),C.defaultPrevented||s?.())},v),T=f7(C=>{const j=C.target;[...d.branches].some(O=>O.contains(j))||(a?.(C),c?.(C),C.defaultPrevented||s?.())},v);return a7(C=>{b===d.layers.size-1&&(n?.(C),!C.defaultPrevented&&s&&(C.preventDefault(),s()))},v),i.useEffect(()=>{if(u)return r&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Uw=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(u)),d.layers.add(u),Yw(),()=>{r&&d.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=Uw)}},[u,v,r,d]),i.useEffect(()=>()=>{u&&(d.layers.delete(u),d.layersWithOutsidePointerEventsDisabled.delete(u),Yw())},[u,d]),i.useEffect(()=>{const C=()=>h({});return document.addEventListener(pm,C),()=>document.removeEventListener(pm,C)},[]),se.jsx(Ye.div,{...m,ref:E,style:{pointerEvents:w?k?"auto":"none":void 0,...e.style},onFocusCapture:Oe(e.onFocusCapture,T.onFocusCapture),onBlurCapture:Oe(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:Oe(e.onPointerDownCapture,S.onPointerDownCapture)})});Lj.displayName=s7;var u7="DismissableLayerBranch",l7=i.forwardRef((e,t)=>{const r=i.useContext(Fj),n=i.useRef(null),o=Mt(t,n);return i.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),se.jsx(Ye.div,{...e,ref:o})});l7.displayName=u7;function d7(e,t=globalThis?.document){const r=na(e),n=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let m=function(){Wj(i7,r,d,{discrete:!0})};const d={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 f7(e,t=globalThis?.document){const r=na(e),n=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!n.current&&Wj(c7,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(pm);document.dispatchEvent(e)}function Wj(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?o7(o,a):o.dispatchEvent(a)}var Zf="focusScope.autoFocusOnMount",Jf="focusScope.autoFocusOnUnmount",Bw={bubbles:!1,cancelable:!0},p7="FocusScope",zj=i.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...c}=e,[s,m]=i.useState(null),d=na(o),u=na(a),p=i.useRef(null),v=Mt(t,l=>m(l)),h=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(n){let l=function(w){if(h.paused||!s)return;const k=w.target;s.contains(k)?p.current=k:Pr(p.current,{select:!0})},g=function(w){if(h.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",l),document.addEventListener("focusout",g);const b=new MutationObserver(y);return s&&b.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",l),document.removeEventListener("focusout",g),b.disconnect()}}},[n,s,h.paused]),i.useEffect(()=>{if(s){Vw.add(h);const l=document.activeElement;if(!s.contains(l)){const g=new CustomEvent(Zf,Bw);s.addEventListener(Zf,d),s.dispatchEvent(g),g.defaultPrevented||(m7(b7($j(s)),{select:!0}),document.activeElement===l&&Pr(s))}return()=>{s.removeEventListener(Zf,d),setTimeout(()=>{const g=new CustomEvent(Jf,Bw);s.addEventListener(Jf,u),s.dispatchEvent(g),g.defaultPrevented||Pr(l??document.body,{select:!0}),s.removeEventListener(Jf,u),Vw.remove(h)},0)}}},[s,d,u,h]);const E=i.useCallback(l=>{if(!r&&!n||h.paused)return;const g=l.key==="Tab"&&!l.altKey&&!l.ctrlKey&&!l.metaKey,y=document.activeElement;if(g&&y){const b=l.currentTarget,[w,k]=v7(b);w&&k?!l.shiftKey&&y===k?(l.preventDefault(),r&&Pr(w,{select:!0})):l.shiftKey&&y===w&&(l.preventDefault(),r&&Pr(k,{select:!0})):y===b&&l.preventDefault()}},[r,n,h.paused]);return se.jsx(Ye.div,{tabIndex:-1,...c,ref:v,onKeyDown:E})});zj.displayName=p7;function m7(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(Pr(n,{select:t}),document.activeElement!==r)return}function v7(e){const t=$j(e),r=Kw(t,e),n=Kw(t.reverse(),e);return[r,n]}function $j(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 Kw(e,t){for(const r of e)if(!g7(r,{upTo:t}))return r}function g7(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 h7(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&&h7(e)&&t&&e.select()}}var Vw=y7();function y7(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=Hw(e,t),e.unshift(t)},remove(t){e=Hw(e,t),e[0]?.resume()}}}function Hw(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function b7(e){return e.filter(t=>t.tagName!=="A")}var w7="Portal",x7=i.forwardRef((e,t)=>{const{container:r,...n}=e,[o,a]=i.useState(!1);Za(()=>a(!0),[]);const c=r||o&&globalThis?.document?.body;return c?Ee.createPortal(se.jsx(Ye.div,{...n,ref:t}),c):null});x7.displayName=w7;function E7(e,t){return i.useReducer((r,n)=>t[r][n]??r,e)}var pl=e=>{const{present:t,children:r}=e,n=k7(t),o=typeof r=="function"?r({present:n.isPresent}):i.Children.only(r),a=Mt(n.ref,C7(o));return typeof r=="function"||n.isPresent?i.cloneElement(o,{ref:a}):null};pl.displayName="Presence";function k7(e){const[t,r]=i.useState(),n=i.useRef(null),o=i.useRef(e),a=i.useRef("none"),c=e?"mounted":"unmounted",[s,m]=E7(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const d=sc(n.current);a.current=s==="mounted"?d:"none"},[s]),Za(()=>{const d=n.current,u=o.current;if(u!==e){const p=a.current,v=sc(d);e?m("MOUNT"):v==="none"||d?.display==="none"?m("UNMOUNT"):m(u&&p!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,m]),Za(()=>{if(t){let d;const u=t.ownerDocument.defaultView??window,p=h=>{const E=sc(n.current).includes(CSS.escape(h.animationName));if(h.target===t&&E&&(m("ANIMATION_END"),!o.current)){const l=t.style.animationFillMode;t.style.animationFillMode="forwards",d=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=l)})}},v=h=>{h.target===t&&(a.current=sc(n.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{u.clearTimeout(d),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(d=>{n.current=d?getComputedStyle(d):null,r(d)},[])}}function sc(e){return e?.animationName||"none"}function C7(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 Qf=0;function S7(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Xw()),document.body.insertAdjacentElement("beforeend",e[1]??Xw()),Qf++,()=>{Qf===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Qf--}},[])}function Xw(){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 xt=function(){return xt=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},xt.apply(this,arguments)};function Uj(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 R7(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 Zc="right-scroll-bar-position",Jc="width-before-scroll-bar",j7="with-scroll-bars-hidden",N7="--removed-body-scroll-bar-size";function ep(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function T7(e,t){var r=M.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 D7=typeof window<"u"?i.useLayoutEffect:i.useEffect,Gw=new WeakMap;function _7(e,t){var r=T7(null,function(n){return e.forEach(function(o){return ep(o,n)})});return D7(function(){var n=Gw.get(r);if(n){var o=new Set(n),a=new Set(e),c=r.current;o.forEach(function(s){a.has(s)||ep(s,null)}),a.forEach(function(s){o.has(s)||ep(s,c)})}Gw.set(r,e)},[e]),r}function O7(e){return e}function P7(e,t){t===void 0&&(t=O7);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 u=c;c=[],u.forEach(a)},d=function(){return Promise.resolve().then(m)};d(),r={push:function(u){c.push(u),d()},filter:function(u){return c=c.filter(u),r}}}};return o}function M7(e){e===void 0&&(e={});var t=P7(null);return t.options=xt({async:!0,ssr:!1},e),t}var Yj=function(e){var t=e.sideCar,r=Uj(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,xt({},r))};Yj.isSideCarExport=!0;function A7(e,t){return e.useMedium(t),Yj}var Bj=M7(),tp=function(){},ml=i.forwardRef(function(e,t){var r=i.useRef(null),n=i.useState({onScrollCapture:tp,onWheelCapture:tp,onTouchMoveCapture:tp}),o=n[0],a=n[1],c=e.forwardProps,s=e.children,m=e.className,d=e.removeScrollBar,u=e.enabled,p=e.shards,v=e.sideCar,h=e.noRelative,E=e.noIsolation,l=e.inert,g=e.allowPinchZoom,y=e.as,b=y===void 0?"div":y,w=e.gapMode,k=Uj(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=v,T=_7([r,t]),C=xt(xt({},k),o);return i.createElement(i.Fragment,null,u&&i.createElement(S,{sideCar:Bj,removeScrollBar:d,shards:p,noRelative:h,noIsolation:E,inert:l,setCallbacks:a,allowPinchZoom:!!g,lockRef:r,gapMode:w}),c?i.cloneElement(i.Children.only(s),xt(xt({},C),{ref:T})):i.createElement(b,xt({},C,{className:m,ref:T}),s))});ml.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ml.classNames={fullWidth:Jc,zeroRight:Zc};var I7=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function F7(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=I7();return t&&e.setAttribute("nonce",t),e}function L7(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function W7(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var z7=function(){var e=0,t=null;return{add:function(r){e==0&&(t=F7())&&(L7(t,r),W7(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},$7=function(){var e=z7();return function(t,r){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Kj=function(){var e=$7(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},U7={left:0,top:0,right:0,gap:0},rp=function(e){return parseInt(e||"",10)||0},Y7=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[rp(r),rp(n),rp(o)]},B7=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return U7;var t=Y7(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])}},K7=Kj(),Vo="data-scroll-locked",V7=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(j7,` {
|
1022
|
-
overflow: hidden `).concat(n,`;
|
1023
|
-
padding-right: `).concat(s,"px ").concat(n,`;
|
1024
|
-
}
|
1025
|
-
body[`).concat(Vo,`] {
|
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(Zc,` {
|
1039
|
-
right: `).concat(s,"px ").concat(n,`;
|
1040
|
-
}
|
1041
|
-
|
1042
|
-
.`).concat(Jc,` {
|
1043
|
-
margin-right: `).concat(s,"px ").concat(n,`;
|
1044
|
-
}
|
1045
|
-
|
1046
|
-
.`).concat(Zc," .").concat(Zc,` {
|
1047
|
-
right: 0 `).concat(n,`;
|
1048
|
-
}
|
1049
|
-
|
1050
|
-
.`).concat(Jc," .").concat(Jc,` {
|
1051
|
-
margin-right: 0 `).concat(n,`;
|
1052
|
-
}
|
1053
|
-
|
1054
|
-
body[`).concat(Vo,`] {
|
1055
|
-
`).concat(N7,": ").concat(s,`px;
|
1056
|
-
}
|
1057
|
-
`)},qw=function(){var e=parseInt(document.body.getAttribute(Vo)||"0",10);return isFinite(e)?e:0},H7=function(){i.useEffect(function(){return document.body.setAttribute(Vo,(qw()+1).toString()),function(){var e=qw()-1;e<=0?document.body.removeAttribute(Vo):document.body.setAttribute(Vo,e.toString())}},[])},X7=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;H7();var a=i.useMemo(function(){return B7(o)},[o]);return i.createElement(K7,{styles:V7(a,!t,o,r?"":"!important")})},mm=!1;if(typeof window<"u")try{var ic=Object.defineProperty({},"passive",{get:function(){return mm=!0,!0}});window.addEventListener("test",ic,ic),window.removeEventListener("test",ic,ic)}catch{mm=!1}var ko=mm?{passive:!1}:!1,G7=function(e){return e.tagName==="TEXTAREA"},Vj=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!G7(e)&&r[t]==="visible")},q7=function(e){return Vj(e,"overflowY")},Z7=function(e){return Vj(e,"overflowX")},Zw=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=Hj(e,n);if(o){var a=Xj(e,n),c=a[1],s=a[2];if(c>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},J7=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},Q7=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},Hj=function(e,t){return e==="v"?q7(t):Z7(t)},Xj=function(e,t){return e==="v"?J7(t):Q7(t)},eJ=function(e,t){return e==="h"&&t==="rtl"?-1:1},tJ=function(e,t,r,n,o){var a=eJ(e,window.getComputedStyle(t).direction),c=a*n,s=r.target,m=t.contains(s),d=!1,u=c>0,p=0,v=0;do{if(!s)break;var h=Xj(e,s),E=h[0],l=h[1],g=h[2],y=l-g-a*E;(E||y)&&Hj(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(u&&Math.abs(p)<1||!u&&Math.abs(v)<1)&&(d=!0),d},cc=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Jw=function(e){return[e.deltaX,e.deltaY]},Qw=function(e){return e&&"current"in e?e.current:e},rJ=function(e,t){return e[0]===t[0]&&e[1]===t[1]},nJ=function(e){return`
|
1058
|
-
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
1059
|
-
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
1060
|
-
`)},oJ=0,Co=[];function aJ(e){var t=i.useRef([]),r=i.useRef([0,0]),n=i.useRef(),o=i.useState(oJ++)[0],a=i.useState(Kj)[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 l=R7([e.lockRef.current],(e.shards||[]).map(Qw)).filter(Boolean);return l.forEach(function(g){return g.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),l.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=i.useCallback(function(l,g){if("touches"in l&&l.touches.length===2||l.type==="wheel"&&l.ctrlKey)return!c.current.allowPinchZoom;var y=cc(l),b=r.current,w="deltaX"in l?l.deltaX:b[0]-y[0],k="deltaY"in l?l.deltaY:b[1]-y[1],S,T=l.target,C=Math.abs(w)>Math.abs(k)?"h":"v";if("touches"in l&&C==="h"&&T.type==="range")return!1;var j=Zw(C,T);if(!j)return!0;if(j?S=C:(S=C==="v"?"h":"v",j=Zw(C,T)),!j)return!1;if(!n.current&&"changedTouches"in l&&(w||k)&&(n.current=S),!S)return!0;var O=n.current||S;return tJ(O,g,l,O==="h"?w:k)},[]),m=i.useCallback(function(l){var g=l;if(!(!Co.length||Co[Co.length-1]!==a)){var y="deltaY"in g?Jw(g):cc(g),b=t.current.filter(function(S){return S.name===g.type&&(S.target===g.target||g.target===S.shadowParent)&&rJ(S.delta,y)})[0];if(b&&b.should){g.cancelable&&g.preventDefault();return}if(!b){var w=(c.current.shards||[]).map(Qw).filter(Boolean).filter(function(S){return S.contains(g.target)}),k=w.length>0?s(g,w[0]):!c.current.noIsolation;k&&g.cancelable&&g.preventDefault()}}},[]),d=i.useCallback(function(l,g,y,b){var w={name:l,delta:g,target:y,should:b,shadowParent:sJ(y)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(k){return k!==w})},1)},[]),u=i.useCallback(function(l){r.current=cc(l),n.current=void 0},[]),p=i.useCallback(function(l){d(l.type,Jw(l),l.target,s(l,e.lockRef.current))},[]),v=i.useCallback(function(l){d(l.type,cc(l),l.target,s(l,e.lockRef.current))},[]);i.useEffect(function(){return Co.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:v}),document.addEventListener("wheel",m,ko),document.addEventListener("touchmove",m,ko),document.addEventListener("touchstart",u,ko),function(){Co=Co.filter(function(l){return l!==a}),document.removeEventListener("wheel",m,ko),document.removeEventListener("touchmove",m,ko),document.removeEventListener("touchstart",u,ko)}},[]);var h=e.removeScrollBar,E=e.inert;return i.createElement(i.Fragment,null,E?i.createElement(a,{styles:nJ(o)}):null,h?i.createElement(X7,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function sJ(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const iJ=A7(Bj,aJ);var Gj=i.forwardRef(function(e,t){return i.createElement(ml,xt({},e,{ref:t,sideCar:iJ}))});Gj.classNames=ml.classNames;var cJ=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},So=new WeakMap,uc=new WeakMap,lc={},np=0,qj=function(e){return e&&(e.host||qj(e.parentNode))},uJ=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=qj(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})},lJ=function(e,t,r,n){var o=uJ(t,Array.isArray(e)?e:[e]);lc[r]||(lc[r]=new WeakMap);var a=lc[r],c=[],s=new Set,m=new Set(o),d=function(p){!p||s.has(p)||(s.add(p),d(p.parentNode))};o.forEach(d);var u=function(p){!p||m.has(p)||Array.prototype.forEach.call(p.children,function(v){if(s.has(v))u(v);else try{var h=v.getAttribute(n),E=h!==null&&h!=="false",l=(So.get(v)||0)+1,g=(a.get(v)||0)+1;So.set(v,l),a.set(v,g),c.push(v),l===1&&E&&uc.set(v,!0),g===1&&v.setAttribute(r,"true"),E||v.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",v,y)}})};return u(t),s.clear(),np++,function(){c.forEach(function(p){var v=So.get(p)-1,h=a.get(p)-1;So.set(p,v),a.set(p,h),v||(uc.has(p)||p.removeAttribute(n),uc.delete(p)),h||p.removeAttribute(r)}),np--,np||(So=new WeakMap,So=new WeakMap,uc=new WeakMap,lc={})}},dJ=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"))),lJ(n,o,r,"aria-hidden")):function(){return null}},Zj="Dialog",[Jj]=fl(Zj),[bce,Jt]=Jj(Zj),Qj="DialogTrigger",fJ=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Jt(Qj,r),a=Mt(t,o.triggerRef);return se.jsx(Ye.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Pv(o.open),...n,ref:a,onClick:Oe(e.onClick,o.onOpenToggle)})});fJ.displayName=Qj;var pJ="DialogPortal",[wce,eN]=Jj(pJ,{forceMount:void 0}),Cu="DialogOverlay",mJ=i.forwardRef((e,t)=>{const r=eN(Cu,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Jt(Cu,e.__scopeDialog);return a.modal?se.jsx(pl,{present:n||a.open,children:se.jsx(gJ,{...o,ref:t})}):null});mJ.displayName=Cu;var vJ=Z.createSlot("DialogOverlay.RemoveScroll"),gJ=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Jt(Cu,r);return se.jsx(Gj,{as:vJ,allowPinchZoom:!0,shards:[o.contentRef],children:se.jsx(Ye.div,{"data-state":Pv(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),vn="DialogContent",hJ=i.forwardRef((e,t)=>{const r=eN(vn,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Jt(vn,e.__scopeDialog);return se.jsx(pl,{present:n||a.open,children:a.modal?se.jsx(yJ,{...o,ref:t}):se.jsx(bJ,{...o,ref:t})})});hJ.displayName=vn;var yJ=i.forwardRef((e,t)=>{const r=Jt(vn,e.__scopeDialog),n=i.useRef(null),o=Mt(t,r.contentRef,n);return i.useEffect(()=>{const a=n.current;if(a)return dJ(a)},[]),se.jsx(tN,{...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())})}),bJ=i.forwardRef((e,t)=>{const r=Jt(vn,e.__scopeDialog),n=i.useRef(!1),o=i.useRef(!1);return se.jsx(tN,{...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()}})}),tN=i.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...c}=e,s=Jt(vn,r),m=i.useRef(null),d=Mt(t,m);return S7(),se.jsxs(se.Fragment,{children:[se.jsx(zj,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:se.jsx(Lj,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":Pv(s.open),...c,ref:d,onDismiss:()=>s.onOpenChange(!1)})}),se.jsxs(se.Fragment,{children:[se.jsx(kJ,{titleId:s.titleId}),se.jsx(SJ,{contentRef:m,descriptionId:s.descriptionId})]})]})}),Ov="DialogTitle",wJ=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Jt(Ov,r);return se.jsx(Ye.h2,{id:o.titleId,...n,ref:t})});wJ.displayName=Ov;var rN="DialogDescription",xJ=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Jt(rN,r);return se.jsx(Ye.p,{id:o.descriptionId,...n,ref:t})});xJ.displayName=rN;var nN="DialogClose",EJ=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Jt(nN,r);return se.jsx(Ye.button,{type:"button",...n,ref:t,onClick:Oe(e.onClick,()=>o.onOpenChange(!1))})});EJ.displayName=nN;function Pv(e){return e?"open":"closed"}var oN="DialogTitleWarning",[xce,aN]=qZ(oN,{contentName:vn,titleName:Ov,docsSlug:"dialog"}),kJ=({titleId:e})=>{const t=aN(oN),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},CJ="DialogDescriptionWarning",SJ=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${aN(CJ).contentName}}.`;return i.useEffect(()=>{const n=e.current?.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},op={exports:{}},ja={};/**
|
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 e0;function RJ(){if(e0)return ja;e0=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 ja.Fragment=t,ja.jsx=r,ja.jsxs=r,ja}var dc={};/**
|
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 t0;function jJ(){return t0||(t0=1,process.env.NODE_ENV!=="production"&&(function(){function e(f){if(f==null)return null;if(typeof f=="function")return f.$$typeof===L?null:f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case l:return"Fragment";case y:return"Profiler";case g:return"StrictMode";case S:return"Suspense";case T:return"SuspenseList";case O:return"Activity"}if(typeof f=="object")switch(typeof f.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),f.$$typeof){case E:return"Portal";case w:return(f.displayName||"Context")+".Provider";case b:return(f._context.displayName||"Context")+".Consumer";case k:var x=f.render;return f=f.displayName,f||(f=x.displayName||x.name||"",f=f!==""?"ForwardRef("+f+")":"ForwardRef"),f;case C:return x=f.displayName||null,x!==null?x:e(f.type)||"Memo";case j:x=f._payload,f=f._init;try{return e(f(x))}catch{}}return null}function t(f){return""+f}function r(f){try{t(f);var x=!1}catch{x=!0}if(x){x=console;var R=x.error,D=typeof Symbol=="function"&&Symbol.toStringTag&&f[Symbol.toStringTag]||f.constructor.name||"Object";return R.call(x,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",D),t(f)}}function n(f){if(f===l)return"<>";if(typeof f=="object"&&f!==null&&f.$$typeof===j)return"<...>";try{var x=e(f);return x?"<"+x+">":"<...>"}catch{return"<...>"}}function o(){var f=I.A;return f===null?null:f.getOwner()}function a(){return Error("react-stack-top-frame")}function c(f){if(B.call(f,"key")){var x=Object.getOwnPropertyDescriptor(f,"key").get;if(x&&x.isReactWarning)return!1}return f.key!==void 0}function s(f,x){function R(){P||(P=!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))}R.isReactWarning=!0,Object.defineProperty(f,"key",{get:R,configurable:!0})}function m(){var f=e(this.type);return U[f]||(U[f]=!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.")),f=this.props.ref,f!==void 0?f:null}function d(f,x,R,D,F,A,G,H){return R=A.ref,f={$$typeof:h,type:f,key:x,props:A,_owner:F},(R!==void 0?R:null)!==null?Object.defineProperty(f,"ref",{enumerable:!1,get:m}):Object.defineProperty(f,"ref",{enumerable:!1,value:null}),f._store={},Object.defineProperty(f._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(f,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(f,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:G}),Object.defineProperty(f,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:H}),Object.freeze&&(Object.freeze(f.props),Object.freeze(f)),f}function u(f,x,R,D,F,A,G,H){var _=x.children;if(_!==void 0)if(D)if(K(_)){for(D=0;D<_.length;D++)p(_[D]);Object.freeze&&Object.freeze(_)}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(_);if(B.call(x,"key")){_=e(f);var W=Object.keys(x).filter(function(ce){return ce!=="key"});D=0<W.length?"{key: someKey, "+W.join(": ..., ")+": ...}":"{key: someKey}",X[_+D]||(W=0<W.length?"{"+W.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} />`,D,_,W,_),X[_+D]=!0)}if(_=null,R!==void 0&&(r(R),_=""+R),c(x)&&(r(x.key),_=""+x.key),"key"in x){R={};for(var q in x)q!=="key"&&(R[q]=x[q])}else R=x;return _&&s(R,typeof f=="function"?f.displayName||f.name||"Unknown":f),d(f,_,A,F,o(),R,G,H)}function p(f){typeof f=="object"&&f!==null&&f.$$typeof===h&&f._store&&(f._store.validated=1)}var v=M,h=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),g=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"),S=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),O=Symbol.for("react.activity"),L=Symbol.for("react.client.reference"),I=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=Object.prototype.hasOwnProperty,K=Array.isArray,$=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(f){return f()}};var P,U={},V=v.react_stack_bottom_frame.bind(v,a)(),Y=$(n(a)),X={};dc.Fragment=l,dc.jsx=function(f,x,R,D,F){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,x,R,!1,D,F,A?Error("react-stack-top-frame"):V,A?$(n(f)):Y)},dc.jsxs=function(f,x,R,D,F){var A=1e4>I.recentlyCreatedOwnerStacks++;return u(f,x,R,!0,D,F,A?Error("react-stack-top-frame"):V,A?$(n(f)):Y)}})()),dc}var r0;function NJ(){return r0||(r0=1,process.env.NODE_ENV==="production"?op.exports=RJ():op.exports=jJ()),op.exports}var ye=NJ();const TJ={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"}},DJ=(e,t,r)=>{let n;const o=TJ[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 ap(e){return(t={})=>{const r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}const _J={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},OJ={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},PJ={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},MJ={date:ap({formats:_J,defaultWidth:"full"}),time:ap({formats:OJ,defaultWidth:"full"}),dateTime:ap({formats:PJ,defaultWidth:"full"})},AJ={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},IJ=(e,t,r,n)=>AJ[e];function Na(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 FJ={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},LJ={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},WJ={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"]},zJ={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"]},$J={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"}},UJ={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"}},YJ=(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"},BJ={ordinalNumber:YJ,era:Na({values:FJ,defaultWidth:"wide"}),quarter:Na({values:LJ,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Na({values:WJ,defaultWidth:"wide"}),day:Na({values:zJ,defaultWidth:"wide"}),dayPeriod:Na({values:$J,defaultWidth:"wide",formattingValues:UJ,defaultFormattingWidth:"wide"})};function Ta(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)?VJ(s,p=>p.test(c)):KJ(s,p=>p.test(c));let d;d=e.valueCallback?e.valueCallback(m):m,d=r.valueCallback?r.valueCallback(d):d;const u=t.slice(c.length);return{value:d,rest:u}}}function KJ(e,t){for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}function VJ(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r}function HJ(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 XJ=/^(\d+)(th|st|nd|rd)?/i,GJ=/\d+/i,qJ={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},ZJ={any:[/^b/i,/^(a|c)/i]},JJ={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},QJ={any:[/1/i,/2/i,/3/i,/4/i]},eQ={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},tQ={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]},rQ={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},nQ={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]},oQ={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},aQ={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}},sQ={ordinalNumber:HJ({matchPattern:XJ,parsePattern:GJ,valueCallback:e=>parseInt(e,10)}),era:Ta({matchPatterns:qJ,defaultMatchWidth:"wide",parsePatterns:ZJ,defaultParseWidth:"any"}),quarter:Ta({matchPatterns:JJ,defaultMatchWidth:"wide",parsePatterns:QJ,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Ta({matchPatterns:eQ,defaultMatchWidth:"wide",parsePatterns:tQ,defaultParseWidth:"any"}),day:Ta({matchPatterns:rQ,defaultMatchWidth:"wide",parsePatterns:nQ,defaultParseWidth:"any"}),dayPeriod:Ta({matchPatterns:oQ,defaultMatchWidth:"any",parsePatterns:aQ,defaultParseWidth:"any"})},sN={code:"en-US",formatDistance:DJ,formatLong:MJ,formatRelative:IJ,localize:BJ,match:sQ,options:{weekStartsOn:0,firstWeekContainsDate:1}};M.createContext({locale:void 0});ie.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 iQ(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 cQ={},Da={};function qr(e,t){try{const r=(cQ[e]||=new Intl.DateTimeFormat("en-US",{timeZone:e,timeZoneName:"longOffset"}).format)(t).split("GMT")[1];return r in Da?Da[r]:n0(r,r.split(":"))}catch{if(e in Da)return Da[e];const r=e?.match(uQ);return r?n0(e,r.slice(1)):NaN}}const uQ=/([+-]\d\d):?(\d\d)?/;function n0(e,t){const r=+(t[0]||0),n=+(t[1]||0),o=+(t[2]||0)/60;return Da[e]=r*60+n>0?r*60+n+o:r*60-n-o}class kt extends Date{constructor(...t){super(),t.length>1&&typeof t[t.length-1]=="string"&&(this.timeZone=t.pop()),this.internal=new Date,isNaN(qr(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)),iN(this),vm(this)):this.setTime(Date.now())}static tz(t,...r){return r.length?new kt(...r,t):new kt(Date.now(),t)}withTimeZone(t){return new kt(+this,t)}getTimezoneOffset(){const t=-qr(this.timeZone,this);return t>0?Math.floor(t):Math.ceil(t)}setTime(t){return Date.prototype.setTime.apply(this,arguments),vm(this),+this}[Symbol.for("constructDateFrom")](t){return new kt(+new Date(t),this.timeZone)}}const o0=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!o0.test(e))return;const t=e.replace(o0,"$1UTC");kt.prototype[t]&&(e.startsWith("get")?kt.prototype[e]=function(){return this.internal[t]()}:(kt.prototype[e]=function(){return Date.prototype[t].apply(this.internal,arguments),lQ(this),+this},kt.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),vm(this),+this}))});function vm(e){e.internal.setTime(+e),e.internal.setUTCSeconds(e.internal.getUTCSeconds()-Math.round(-qr(e.timeZone,e)*60))}function lQ(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()),iN(e)}function iN(e){const t=qr(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 d=new Date(+e);d.setUTCSeconds(0);const u=o>0?d.getSeconds():(d.getSeconds()-60)%60,p=Math.round(-(qr(e.timeZone,e)*60))%60;(p||u)&&(e.internal.setUTCSeconds(e.internal.getUTCSeconds()+p),Date.prototype.setUTCSeconds.call(e,Date.prototype.getUTCSeconds.call(e)+p+u));const v=qr(e.timeZone,e),h=v>0?Math.floor(v):Math.ceil(v),E=-new Date(+e).getTimezoneOffset()-h,l=h!==r,g=E-m;if(l&&g){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+g);const y=qr(e.timeZone,e),b=y>0?Math.floor(y):Math.ceil(y),w=h-b;w&&(e.internal.setUTCMinutes(e.internal.getUTCMinutes()+w),Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+w))}}class Zr extends kt{static tz(t,...r){return r.length?new Zr(...r,t):new Zr(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} (${iQ(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 Zr(+this,t)}[Symbol.for("constructDateFrom")](t){return new Zr(+new Date(t),this.timeZone)}}const cN=6048e5,dQ=864e5,a0=Symbol.for("constructDateFrom");function xe(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&a0 in e?e[a0](t):e instanceof Date?new e.constructor(t):new Date(t)}function be(e,t){return xe(t||e,e)}function uN(e,t,r){const n=be(e,r?.in);return isNaN(t)?xe(e,NaN):(t&&n.setDate(n.getDate()+t),n)}function lN(e,t,r){const n=be(e,r?.in);if(isNaN(t))return xe(e,NaN);if(!t)return n;const o=n.getDate(),a=xe(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 fQ={};function ss(){return fQ}function oa(e,t){const r=ss(),n=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,o=be(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 oa(e,{...t,weekStartsOn:1})}function dN(e,t){const r=be(e,t?.in),n=r.getFullYear(),o=xe(r,0);o.setFullYear(n+1,0,4),o.setHours(0,0,0,0);const a=Ja(o),c=xe(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 s0(e){const t=be(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 ua(e,...t){const r=xe.bind(null,t.find(n=>typeof n=="object"));return t.map(r)}function Qa(e,t){const r=be(e,t?.in);return r.setHours(0,0,0,0),r}function fN(e,t,r){const[n,o]=ua(r?.in,e,t),a=Qa(n),c=Qa(o),s=+a-s0(a),m=+c-s0(c);return Math.round((s-m)/dQ)}function pQ(e,t){const r=dN(e,t),n=xe(e,0);return n.setFullYear(r,0,4),n.setHours(0,0,0,0),Ja(n)}function mQ(e,t,r){return uN(e,t*7,r)}function vQ(e,t,r){return lN(e,t*12,r)}function gQ(e,t){let r,n=t?.in;return e.forEach(o=>{!n&&typeof o=="object"&&(n=xe.bind(null,o));const a=be(o,n);(!r||r<a||isNaN(+a))&&(r=a)}),xe(n,r||NaN)}function hQ(e,t){let r,n=t?.in;return e.forEach(o=>{!n&&typeof o=="object"&&(n=xe.bind(null,o));const a=be(o,n);(!r||r>a||isNaN(+a))&&(r=a)}),xe(n,r||NaN)}function yQ(e,t,r){const[n,o]=ua(r?.in,e,t);return+Qa(n)==+Qa(o)}function pN(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function bQ(e){return!(!pN(e)&&typeof e!="number"||isNaN(+be(e)))}function wQ(e,t,r){const[n,o]=ua(r?.in,e,t),a=n.getFullYear()-o.getFullYear(),c=n.getMonth()-o.getMonth();return a*12+c}function xQ(e,t){const r=be(e,t?.in),n=r.getMonth();return r.setFullYear(r.getFullYear(),n+1,0),r.setHours(23,59,59,999),r}function EQ(e,t){const[r,n]=ua(e,t.start,t.end);return{start:r,end:n}}function kQ(e,t){const{start:r,end:n}=EQ(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(xe(r,c)),c.setMonth(c.getMonth()+s);return o?m.reverse():m}function CQ(e,t){const r=be(e,t?.in);return r.setDate(1),r.setHours(0,0,0,0),r}function SQ(e,t){const r=be(e,t?.in),n=r.getFullYear();return r.setFullYear(n+1,0,0),r.setHours(23,59,59,999),r}function mN(e,t){const r=be(e,t?.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}function vN(e,t){const r=ss(),n=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,o=be(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 RQ(e,t){return vN(e,{...t,weekStartsOn:1})}function jQ(e,t){const r=be(e,t?.in);return fN(r,mN(r))+1}function gN(e,t){const r=be(e,t?.in),n=+Ja(r)-+pQ(r);return Math.round(n/cN)+1}function hN(e,t){const r=be(e,t?.in),n=r.getFullYear(),o=ss(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,c=xe(t?.in||e,0);c.setFullYear(n+1,0,a),c.setHours(0,0,0,0);const s=oa(c,t),m=xe(t?.in||e,0);m.setFullYear(n,0,a),m.setHours(0,0,0,0);const d=oa(m,t);return+r>=+s?n+1:+r>=+d?n:n-1}function NQ(e,t){const r=ss(),n=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,o=hN(e,t),a=xe(t?.in||e,0);return a.setFullYear(o,0,n),a.setHours(0,0,0,0),oa(a,t)}function yN(e,t){const r=be(e,t?.in),n=+oa(r,t)-+NQ(r,t);return Math.round(n/cN)+1}function le(e,t){const r=e<0?"-":"",n=Math.abs(e).toString().padStart(t,"0");return r+n}const gr={y(e,t){const r=e.getFullYear(),n=r>0?r:1-r;return le(t==="yy"?n%100:n,t.length)},M(e,t){const r=e.getMonth();return t==="M"?String(r+1):le(r+1,2)},d(e,t){return le(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 le(e.getHours()%12||12,t.length)},H(e,t){return le(e.getHours(),t.length)},m(e,t){return le(e.getMinutes(),t.length)},s(e,t){return le(e.getSeconds(),t.length)},S(e,t){const r=t.length,n=e.getMilliseconds(),o=Math.trunc(n*Math.pow(10,r-3));return le(o,t.length)}},Ro={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},i0={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 gr.y(e,t)},Y:function(e,t,r,n){const o=hN(e,n),a=o>0?o:1-o;if(t==="YY"){const c=a%100;return le(c,2)}return t==="Yo"?r.ordinalNumber(a,{unit:"year"}):le(a,t.length)},R:function(e,t){const r=dN(e);return le(r,t.length)},u:function(e,t){const r=e.getFullYear();return le(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 le(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 le(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 gr.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 le(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=yN(e,n);return t==="wo"?r.ordinalNumber(o,{unit:"week"}):le(o,t.length)},I:function(e,t,r){const n=gN(e);return t==="Io"?r.ordinalNumber(n,{unit:"week"}):le(n,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getDate(),{unit:"date"}):gr.d(e,t)},D:function(e,t,r){const n=jQ(e);return t==="Do"?r.ordinalNumber(n,{unit:"dayOfYear"}):le(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 le(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 le(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 le(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=Ro.noon:n===0?o=Ro.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=Ro.evening:n>=12?o=Ro.afternoon:n>=4?o=Ro.morning:o=Ro.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 gr.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getHours(),{unit:"hour"}):gr.H(e,t)},K:function(e,t,r){const n=e.getHours()%12;return t==="Ko"?r.ordinalNumber(n,{unit:"hour"}):le(n,t.length)},k:function(e,t,r){let n=e.getHours();return n===0&&(n=24),t==="ko"?r.ordinalNumber(n,{unit:"hour"}):le(n,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):gr.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getSeconds(),{unit:"second"}):gr.s(e,t)},S:function(e,t){return gr.S(e,t)},X:function(e,t,r){const n=e.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return u0(n);case"XXXX":case"XX":return Gr(n);case"XXXXX":case"XXX":default:return Gr(n,":")}},x:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"x":return u0(n);case"xxxx":case"xx":return Gr(n);case"xxxxx":case"xxx":default:return Gr(n,":")}},O:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+c0(n,":");case"OOOO":default:return"GMT"+Gr(n,":")}},z:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+c0(n,":");case"zzzz":default:return"GMT"+Gr(n,":")}},t:function(e,t,r){const n=Math.trunc(+e/1e3);return le(n,t.length)},T:function(e,t,r){return le(+e,t.length)}};function c0(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+le(a,2)}function u0(e,t){return e%60===0?(e>0?"-":"+")+le(Math.abs(e)/60,2):Gr(e,t)}function Gr(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),o=le(Math.trunc(n/60),2),a=le(n%60,2);return r+o+t+a}const l0=(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"})}},bN=(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"})}},TQ=(e,t)=>{const r=e.match(/(P+)(p+)?/)||[],n=r[1],o=r[2];if(!o)return l0(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}}",l0(n,t)).replace("{{time}}",bN(o,t))},DQ={p:bN,P:TQ},_Q=/^D+$/,OQ=/^Y+$/,PQ=["D","DD","YY","YYYY"];function MQ(e){return _Q.test(e)}function AQ(e){return OQ.test(e)}function IQ(e,t,r){const n=FQ(e,t,r);if(console.warn(n),PQ.includes(e))throw new RangeError(n)}function FQ(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 LQ=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,WQ=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,zQ=/^'([^]*?)'?$/,$Q=/''/g,UQ=/[a-zA-Z]/;function YQ(e,t,r){const n=ss(),o=r?.locale??n.locale??sN,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=be(e,r?.in);if(!bQ(s))throw new RangeError("Invalid time value");let m=t.match(WQ).map(u=>{const p=u[0];if(p==="p"||p==="P"){const v=DQ[p];return v(u,o.formatLong)}return u}).join("").match(LQ).map(u=>{if(u==="''")return{isToken:!1,value:"'"};const p=u[0];if(p==="'")return{isToken:!1,value:BQ(u)};if(i0[p])return{isToken:!0,value:u};if(p.match(UQ))throw new RangeError("Format string contains an unescaped latin alphabet character `"+p+"`");return{isToken:!1,value:u}});o.localize.preprocessor&&(m=o.localize.preprocessor(s,m));const d={firstWeekContainsDate:a,weekStartsOn:c,locale:o};return m.map(u=>{if(!u.isToken)return u.value;const p=u.value;(!r?.useAdditionalWeekYearTokens&&AQ(p)||!r?.useAdditionalDayOfYearTokens&&MQ(p))&&IQ(p,t,String(e));const v=i0[p[0]];return v(s,p,o.localize,d)}).join("")}function BQ(e){const t=e.match(zQ);return t?t[1].replace($Q,"'"):e}function KQ(e,t){const r=be(e,t?.in),n=r.getFullYear(),o=r.getMonth(),a=xe(r,0);return a.setFullYear(n,o+1,0),a.setHours(0,0,0,0),a.getDate()}function VQ(e,t){return be(e,t?.in).getMonth()}function HQ(e,t){return be(e,t?.in).getFullYear()}function XQ(e,t){return+be(e)>+be(t)}function GQ(e,t){return+be(e)<+be(t)}function qQ(e,t,r){const[n,o]=ua(r?.in,e,t);return n.getFullYear()===o.getFullYear()&&n.getMonth()===o.getMonth()}function ZQ(e,t,r){const[n,o]=ua(r?.in,e,t);return n.getFullYear()===o.getFullYear()}function JQ(e,t,r){const n=be(e,r?.in),o=n.getFullYear(),a=n.getDate(),c=xe(e,0);c.setFullYear(o,t,15),c.setHours(0,0,0,0);const s=KQ(c);return n.setMonth(t,Math.min(a,s)),n}function QQ(e,t,r){const n=be(e,r?.in);return isNaN(+n)?xe(e,NaN):(n.setFullYear(t),n)}const d0=5,eee=4;function tee(e,t){const r=t.startOfMonth(e),n=r.getDay()>0?r.getDay():7,o=t.addDays(e,-n+1),a=t.addDays(o,d0*7-1);return t.getMonth(e)===t.getMonth(a)?d0:eee}function wN(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 ree(e,t){const r=wN(e,t),n=tee(e,t);return t.addDays(r,n*7-1)}class es{constructor(t,r){this.Date=Date,this.today=()=>this.overrides?.today?this.overrides.today():this.options.timeZone?Zr.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 Zr(n,o,a,this.options.timeZone):new Date(n,o,a),this.addDays=(n,o)=>this.overrides?.addDays?this.overrides.addDays(n,o):uN(n,o),this.addMonths=(n,o)=>this.overrides?.addMonths?this.overrides.addMonths(n,o):lN(n,o),this.addWeeks=(n,o)=>this.overrides?.addWeeks?this.overrides.addWeeks(n,o):mQ(n,o),this.addYears=(n,o)=>this.overrides?.addYears?this.overrides.addYears(n,o):vQ(n,o),this.differenceInCalendarDays=(n,o)=>this.overrides?.differenceInCalendarDays?this.overrides.differenceInCalendarDays(n,o):fN(n,o),this.differenceInCalendarMonths=(n,o)=>this.overrides?.differenceInCalendarMonths?this.overrides.differenceInCalendarMonths(n,o):wQ(n,o),this.eachMonthOfInterval=n=>this.overrides?.eachMonthOfInterval?this.overrides.eachMonthOfInterval(n):kQ(n),this.endOfBroadcastWeek=n=>this.overrides?.endOfBroadcastWeek?this.overrides.endOfBroadcastWeek(n):ree(n,this),this.endOfISOWeek=n=>this.overrides?.endOfISOWeek?this.overrides.endOfISOWeek(n):RQ(n),this.endOfMonth=n=>this.overrides?.endOfMonth?this.overrides.endOfMonth(n):xQ(n),this.endOfWeek=(n,o)=>this.overrides?.endOfWeek?this.overrides.endOfWeek(n,o):vN(n,this.options),this.endOfYear=n=>this.overrides?.endOfYear?this.overrides.endOfYear(n):SQ(n),this.format=(n,o,a)=>{const c=this.overrides?.format?this.overrides.format(n,o,this.options):YQ(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):gN(n),this.getMonth=(n,o)=>this.overrides?.getMonth?this.overrides.getMonth(n,this.options):VQ(n,this.options),this.getYear=(n,o)=>this.overrides?.getYear?this.overrides.getYear(n,this.options):HQ(n,this.options),this.getWeek=(n,o)=>this.overrides?.getWeek?this.overrides.getWeek(n,this.options):yN(n,this.options),this.isAfter=(n,o)=>this.overrides?.isAfter?this.overrides.isAfter(n,o):XQ(n,o),this.isBefore=(n,o)=>this.overrides?.isBefore?this.overrides.isBefore(n,o):GQ(n,o),this.isDate=n=>this.overrides?.isDate?this.overrides.isDate(n):pN(n),this.isSameDay=(n,o)=>this.overrides?.isSameDay?this.overrides.isSameDay(n,o):yQ(n,o),this.isSameMonth=(n,o)=>this.overrides?.isSameMonth?this.overrides.isSameMonth(n,o):qQ(n,o),this.isSameYear=(n,o)=>this.overrides?.isSameYear?this.overrides.isSameYear(n,o):ZQ(n,o),this.max=n=>this.overrides?.max?this.overrides.max(n):gQ(n),this.min=n=>this.overrides?.min?this.overrides.min(n):hQ(n),this.setMonth=(n,o)=>this.overrides?.setMonth?this.overrides.setMonth(n,o):JQ(n,o),this.setYear=(n,o)=>this.overrides?.setYear?this.overrides.setYear(n,o):QQ(n,o),this.startOfBroadcastWeek=(n,o)=>this.overrides?.startOfBroadcastWeek?this.overrides.startOfBroadcastWeek(n,this):wN(n,this),this.startOfDay=n=>this.overrides?.startOfDay?this.overrides.startOfDay(n):Qa(n),this.startOfISOWeek=n=>this.overrides?.startOfISOWeek?this.overrides.startOfISOWeek(n):Ja(n),this.startOfMonth=n=>this.overrides?.startOfMonth?this.overrides.startOfMonth(n):CQ(n),this.startOfWeek=(n,o)=>this.overrides?.startOfWeek?this.overrides.startOfWeek(n,this.options):oa(n,this.options),this.startOfYear=n=>this.overrides?.startOfYear?this.overrides.startOfYear(n):mN(n),this.options={locale:sN,...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&&es.yearFirstLocales.has(t)?"year-first":"month-first"}formatMonthYear(t){const{locale:r,timeZone:n,numerals:o}=this.options,a=r?.code;if(a&&es.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)}}es.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 es;var f0;(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"})(f0||(f0={}));var p0;(function(e){e.disabled="disabled",e.hidden="hidden",e.outside="outside",e.focused="focused",e.today="today"})(p0||(p0={}));var m0;(function(e){e.range_end="range_end",e.range_middle="range_middle",e.range_start="range_start",e.selected="selected"})(m0||(m0={}));var v0;(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"})(v0||(v0={}));M.createContext(void 0);var g0;(function(e){e[e.Today=0]="Today",e[e.Selected=1]="Selected",e[e.LastFocused=2]="LastFocused",e[e.FocusedModifier=3]="FocusedModifier"})(g0||(g0={}));function Yr(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),r===!1||!n.defaultPrevented)return t?.(n)}}function h0(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function nee(...e){return t=>{let r=!1;const n=e.map(o=>{const a=h0(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():h0(e[o],null)}}}}function Hr(...e){return i.useCallback(nee(...e),e)}function xN(e,t=[]){let r=[];function n(a,c){const s=i.createContext(c),m=r.length;r=[...r,c];const d=p=>{const{scope:v,children:h,...E}=p,l=v?.[e]?.[m]||s,g=i.useMemo(()=>E,Object.values(E));return ye.jsx(l.Provider,{value:g,children:h})};d.displayName=a+"Provider";function u(p,v){const h=v?.[e]?.[m]||s,E=i.useContext(h);if(E)return E;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[d,u]}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,oee(o,...t)]}function oee(...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 d=s(o)[`__scope${m}`];return{...c,...d}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}var aee=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],mr=aee.reduce((e,t)=>{const r=Z.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),ye.jsx(m,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function see(e,t){e&&ke.flushSync(()=>e.dispatchEvent(t))}function aa(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...r)=>t.current?.(...r),[])}function iee(e,t=globalThis?.document){const r=aa(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 cee="DismissableLayer",gm="dismissableLayer.update",uee="dismissableLayer.pointerDownOutside",lee="dismissableLayer.focusOutside",y0,EN=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),kN=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:c,onDismiss:s,...m}=e,d=i.useContext(EN),[u,p]=i.useState(null),v=u?.ownerDocument??globalThis?.document,[,h]=i.useState({}),E=Hr(t,C=>p(C)),l=Array.from(d.layers),[g]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),y=l.indexOf(g),b=u?l.indexOf(u):-1,w=d.layersWithOutsidePointerEventsDisabled.size>0,k=b>=y,S=pee(C=>{const j=C.target,O=[...d.branches].some(L=>L.contains(j));!k||O||(o?.(C),c?.(C),C.defaultPrevented||s?.())},v),T=mee(C=>{const j=C.target;[...d.branches].some(O=>O.contains(j))||(a?.(C),c?.(C),C.defaultPrevented||s?.())},v);return iee(C=>{b===d.layers.size-1&&(n?.(C),!C.defaultPrevented&&s&&(C.preventDefault(),s()))},v),i.useEffect(()=>{if(u)return r&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(y0=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(u)),d.layers.add(u),b0(),()=>{r&&d.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=y0)}},[u,v,r,d]),i.useEffect(()=>()=>{u&&(d.layers.delete(u),d.layersWithOutsidePointerEventsDisabled.delete(u),b0())},[u,d]),i.useEffect(()=>{const C=()=>h({});return document.addEventListener(gm,C),()=>document.removeEventListener(gm,C)},[]),ye.jsx(mr.div,{...m,ref:E,style:{pointerEvents:w?k?"auto":"none":void 0,...e.style},onFocusCapture:Yr(e.onFocusCapture,T.onFocusCapture),onBlurCapture:Yr(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:Yr(e.onPointerDownCapture,S.onPointerDownCapture)})});kN.displayName=cee;var dee="DismissableLayerBranch",fee=i.forwardRef((e,t)=>{const r=i.useContext(EN),n=i.useRef(null),o=Hr(t,n);return i.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),ye.jsx(mr.div,{...e,ref:o})});fee.displayName=dee;function pee(e,t=globalThis?.document){const r=aa(e),n=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let m=function(){CN(uee,r,d,{discrete:!0})};const d={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 mee(e,t=globalThis?.document){const r=aa(e),n=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!n.current&&CN(lee,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 b0(){const e=new CustomEvent(gm);document.dispatchEvent(e)}function CN(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?see(o,a):o.dispatchEvent(a)}var sp=0;function vee(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??w0()),document.body.insertAdjacentElement("beforeend",e[1]??w0()),sp++,()=>{sp===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),sp--}},[])}function w0(){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 ip="focusScope.autoFocusOnMount",cp="focusScope.autoFocusOnUnmount",x0={bubbles:!1,cancelable:!0},gee="FocusScope",SN=i.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...c}=e,[s,m]=i.useState(null),d=aa(o),u=aa(a),p=i.useRef(null),v=Hr(t,l=>m(l)),h=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(n){let l=function(w){if(h.paused||!s)return;const k=w.target;s.contains(k)?p.current=k:Mr(p.current,{select:!0})},g=function(w){if(h.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",l),document.addEventListener("focusout",g);const b=new MutationObserver(y);return s&&b.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",l),document.removeEventListener("focusout",g),b.disconnect()}}},[n,s,h.paused]),i.useEffect(()=>{if(s){k0.add(h);const l=document.activeElement;if(!s.contains(l)){const g=new CustomEvent(ip,x0);s.addEventListener(ip,d),s.dispatchEvent(g),g.defaultPrevented||(hee(Eee(RN(s)),{select:!0}),document.activeElement===l&&Mr(s))}return()=>{s.removeEventListener(ip,d),setTimeout(()=>{const g=new CustomEvent(cp,x0);s.addEventListener(cp,u),s.dispatchEvent(g),g.defaultPrevented||Mr(l??document.body,{select:!0}),s.removeEventListener(cp,u),k0.remove(h)},0)}}},[s,d,u,h]);const E=i.useCallback(l=>{if(!r&&!n||h.paused)return;const g=l.key==="Tab"&&!l.altKey&&!l.ctrlKey&&!l.metaKey,y=document.activeElement;if(g&&y){const b=l.currentTarget,[w,k]=yee(b);w&&k?!l.shiftKey&&y===k?(l.preventDefault(),r&&Mr(w,{select:!0})):l.shiftKey&&y===w&&(l.preventDefault(),r&&Mr(k,{select:!0})):y===b&&l.preventDefault()}},[r,n,h.paused]);return ye.jsx(mr.div,{tabIndex:-1,...c,ref:v,onKeyDown:E})});SN.displayName=gee;function hee(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(Mr(n,{select:t}),document.activeElement!==r)return}function yee(e){const t=RN(e),r=E0(t,e),n=E0(t.reverse(),e);return[r,n]}function RN(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 E0(e,t){for(const r of e)if(!bee(r,{upTo:t}))return r}function bee(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 wee(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&&wee(e)&&t&&e.select()}}var k0=xee();function xee(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=C0(e,t),e.unshift(t)},remove(t){e=C0(e,t),e[0]?.resume()}}}function C0(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function Eee(e){return e.filter(t=>t.tagName!=="A")}var sa=globalThis?.document?i.useLayoutEffect:()=>{};const kee=["top","right","bottom","left"],Kr=Math.min,Be=Math.max,Su=Math.round,fc=Math.floor,St=e=>({x:e,y:e}),Cee={left:"right",right:"left",bottom:"top",top:"bottom"},See={start:"end",end:"start"};function hm(e,t,r){return Be(e,Kr(t,r))}function or(e,t){return typeof e=="function"?e(t):e}function ar(e){return e.split("-")[0]}function la(e){return e.split("-")[1]}function Mv(e){return e==="x"?"y":"x"}function Av(e){return e==="y"?"height":"width"}const Ree=new Set(["top","bottom"]);function Ct(e){return Ree.has(ar(e))?"y":"x"}function Iv(e){return Mv(Ct(e))}function jee(e,t,r){r===void 0&&(r=!1);const n=la(e),o=Iv(e),a=Av(o);let c=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(c=Ru(c)),[c,Ru(c)]}function Nee(e){const t=Ru(e);return[ym(e),t,ym(t)]}function ym(e){return e.replace(/start|end/g,t=>See[t])}const S0=["left","right"],R0=["right","left"],Tee=["top","bottom"],Dee=["bottom","top"];function _ee(e,t,r){switch(e){case"top":case"bottom":return r?t?R0:S0:t?S0:R0;case"left":case"right":return t?Tee:Dee;default:return[]}}function Oee(e,t,r,n){const o=la(e);let a=_ee(ar(e),r==="start",n);return o&&(a=a.map(c=>c+"-"+o),t&&(a=a.concat(a.map(ym)))),a}function Ru(e){return e.replace(/left|right|bottom|top/g,t=>Cee[t])}function Pee(e){return{top:0,right:0,bottom:0,left:0,...e}}function jN(e){return typeof e!="number"?Pee(e):{top:e,right:e,bottom:e,left:e}}function ju(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 j0(e,t,r){let{reference:n,floating:o}=e;const a=Ct(t),c=Iv(t),s=Av(c),m=ar(t),d=a==="y",u=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 h;switch(m){case"top":h={x:u,y:n.y-o.height};break;case"bottom":h={x:u,y:n.y+n.height};break;case"right":h={x:n.x+n.width,y:p};break;case"left":h={x:n.x-o.width,y:p};break;default:h={x:n.x,y:n.y}}switch(la(t)){case"start":h[c]-=v*(r&&d?-1:1);break;case"end":h[c]+=v*(r&&d?-1:1);break}return h}const Mee=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 d=await c.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:p}=j0(d,n,m),v=n,h={},E=0;for(let l=0;l<s.length;l++){const{name:g,fn:y}=s[l],{x:b,y:w,data:k,reset:S}=await y({x:u,y:p,initialPlacement:n,placement:v,strategy:o,middlewareData:h,rects:d,platform:c,elements:{reference:e,floating:t}});u=b??u,p=w??p,h={...h,[g]:{...h[g],...k}},S&&E<=50&&(E++,typeof S=="object"&&(S.placement&&(v=S.placement),S.rects&&(d=S.rects===!0?await c.getElementRects({reference:e,floating:t,strategy:o}):S.rects),{x:u,y:p}=j0(d,v,m)),l=-1)}return{x:u,y:p,placement:v,strategy:o,middlewareData:h}};async function ts(e,t){var r;t===void 0&&(t={});const{x:n,y:o,platform:a,rects:c,elements:s,strategy:m}=e,{boundary:d="clippingAncestors",rootBoundary:u="viewport",elementContext:p="floating",altBoundary:v=!1,padding:h=0}=or(t,e),E=jN(h),l=s[v?p==="floating"?"reference":"floating":p],g=ju(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(l)))==null||r?l:l.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:d,rootBoundary:u,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=ju(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:b,strategy:m}):y);return{top:(g.top-k.top+E.top)/w.y,bottom:(k.bottom-g.bottom+E.bottom)/w.y,left:(g.left-k.left+E.left)/w.x,right:(k.right-g.right+E.right)/w.x}}const Aee=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:d,padding:u=0}=or(e,t)||{};if(d==null)return{};const p=jN(u),v={x:r,y:n},h=Iv(o),E=Av(h),l=await c.getDimensions(d),g=h==="y",y=g?"top":"left",b=g?"bottom":"right",w=g?"clientHeight":"clientWidth",k=a.reference[E]+a.reference[h]-v[h]-a.floating[E],S=v[h]-a.reference[h],T=await(c.getOffsetParent==null?void 0:c.getOffsetParent(d));let C=T?T[w]:0;(!C||!await(c.isElement==null?void 0:c.isElement(T)))&&(C=s.floating[w]||a.floating[E]);const j=k/2-S/2,O=C/2-l[E]/2-1,L=Kr(p[y],O),I=Kr(p[b],O),B=L,K=C-l[E]-I,$=C/2-l[E]/2+j,P=hm(B,$,K),U=!m.arrow&&la(o)!=null&&$!==P&&a.reference[E]/2-($<B?L:I)-l[E]/2<0,V=U?$<B?$-B:$-K:0;return{[h]:v[h]+V,data:{[h]:P,centerOffset:$-P-V,...U&&{alignmentOffset:V}},reset:U}}}),Iee=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:d}=t,{mainAxis:u=!0,crossAxis:p=!0,fallbackPlacements:v,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:l=!0,...g}=or(e,t);if((r=a.arrow)!=null&&r.alignmentOffset)return{};const y=ar(o),b=Ct(s),w=ar(s)===s,k=await(m.isRTL==null?void 0:m.isRTL(d.floating)),S=v||(w||!l?[Ru(s)]:Nee(s)),T=E!=="none";!v&&T&&S.push(...Oee(s,l,E,k));const C=[s,...S],j=await ts(t,g),O=[];let L=((n=a.flip)==null?void 0:n.overflows)||[];if(u&&O.push(j[y]),p){const $=jee(o,c,k);O.push(j[$[0]],j[$[1]])}if(L=[...L,{placement:o,overflows:O}],!O.every($=>$<=0)){var I,B;const $=(((I=a.flip)==null?void 0:I.index)||0)+1,P=C[$];if(P&&(!(p==="alignment"&&b!==Ct(P))||L.every(V=>Ct(V.placement)===b?V.overflows[0]>0:!0)))return{data:{index:$,overflows:L},reset:{placement:P}};let U=(B=L.filter(V=>V.overflows[0]<=0).sort((V,Y)=>V.overflows[1]-Y.overflows[1])[0])==null?void 0:B.placement;if(!U)switch(h){case"bestFit":{var K;const V=(K=L.filter(Y=>{if(T){const X=Ct(Y.placement);return X===b||X==="y"}return!0}).map(Y=>[Y.placement,Y.overflows.filter(X=>X>0).reduce((X,f)=>X+f,0)]).sort((Y,X)=>Y[1]-X[1])[0])==null?void 0:K[0];V&&(U=V);break}case"initialPlacement":U=s;break}if(o!==U)return{reset:{placement:U}}}return{}}}};function N0(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function T0(e){return kee.some(t=>e[t]>=0)}const Fee=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...o}=or(e,t);switch(n){case"referenceHidden":{const a=await ts(t,{...o,elementContext:"reference"}),c=N0(a,r.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:T0(c)}}}case"escaped":{const a=await ts(t,{...o,altBoundary:!0}),c=N0(a,r.floating);return{data:{escapedOffsets:c,escaped:T0(c)}}}default:return{}}}}},NN=new Set(["left","top"]);async function Lee(e,t){const{placement:r,platform:n,elements:o}=e,a=await(n.isRTL==null?void 0:n.isRTL(o.floating)),c=ar(r),s=la(r),m=Ct(r)==="y",d=NN.has(c)?-1:1,u=a&&m?-1:1,p=or(t,e);let{mainAxis:v,crossAxis:h,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"&&(h=s==="end"?E*-1:E),m?{x:h*u,y:v*d}:{x:v*d,y:h*u}}const Wee=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 Lee(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}}}}},zee=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:g=>{let{x:y,y:b}=g;return{x:y,y:b}}},...m}=or(e,t),d={x:r,y:n},u=await ts(t,m),p=Ct(ar(o)),v=Mv(p);let h=d[v],E=d[p];if(a){const g=v==="y"?"top":"left",y=v==="y"?"bottom":"right",b=h+u[g],w=h-u[y];h=hm(b,h,w)}if(c){const g=p==="y"?"top":"left",y=p==="y"?"bottom":"right",b=E+u[g],w=E-u[y];E=hm(b,E,w)}const l=s.fn({...t,[v]:h,[p]:E});return{...l,data:{x:l.x-r,y:l.y-n,enabled:{[v]:a,[p]:c}}}}}},$ee=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:d=!0}=or(e,t),u={x:r,y:n},p=Ct(o),v=Mv(p);let h=u[v],E=u[p];const l=or(s,t),g=typeof l=="number"?{mainAxis:l,crossAxis:0}:{mainAxis:0,crossAxis:0,...l};if(m){const w=v==="y"?"height":"width",k=a.reference[v]-a.floating[w]+g.mainAxis,S=a.reference[v]+a.reference[w]-g.mainAxis;h<k?h=k:h>S&&(h=S)}if(d){var y,b;const w=v==="y"?"width":"height",k=NN.has(ar(o)),S=a.reference[p]-a.floating[w]+(k&&((y=c.offset)==null?void 0:y[p])||0)+(k?0:g.crossAxis),T=a.reference[p]+a.reference[w]+(k?0:((b=c.offset)==null?void 0:b[p])||0)-(k?g.crossAxis:0);E<S?E=S:E>T&&(E=T)}return{[v]:h,[p]:E}}}},Uee=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=()=>{},...d}=or(e,t),u=await ts(t,d),p=ar(o),v=la(o),h=Ct(o)==="y",{width:E,height:l}=a.floating;let g,y;p==="top"||p==="bottom"?(g=p,y=v===(await(c.isRTL==null?void 0:c.isRTL(s.floating))?"start":"end")?"left":"right"):(y=p,g=v==="end"?"top":"bottom");const b=l-u.top-u.bottom,w=E-u.left-u.right,k=Kr(l-u[g],b),S=Kr(E-u[y],w),T=!t.middlewareData.shift;let C=k,j=S;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(j=w),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(C=b),T&&!v){const L=Be(u.left,0),I=Be(u.right,0),B=Be(u.top,0),K=Be(u.bottom,0);h?j=E-2*(L!==0||I!==0?L+I:Be(u.left,u.right)):C=l-2*(B!==0||K!==0?B+K:Be(u.top,u.bottom))}await m({...t,availableWidth:j,availableHeight:C});const O=await c.getDimensions(s.floating);return E!==O.width||l!==O.height?{reset:{rects:!0}}:{}}}};function vl(){return typeof window<"u"}function da(e){return TN(e)?(e.nodeName||"").toLowerCase():"#document"}function Ke(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Qt(e){var t;return(t=(TN(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function TN(e){return vl()?e instanceof Node||e instanceof Ke(e).Node:!1}function tt(e){return vl()?e instanceof Element||e instanceof Ke(e).Element:!1}function At(e){return vl()?e instanceof HTMLElement||e instanceof Ke(e).HTMLElement:!1}function D0(e){return!vl()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ke(e).ShadowRoot}const Yee=new Set(["inline","contents"]);function is(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=rt(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!Yee.has(o)}const Bee=new Set(["table","td","th"]);function Kee(e){return Bee.has(da(e))}const Vee=[":popover-open",":modal"];function gl(e){return Vee.some(t=>{try{return e.matches(t)}catch{return!1}})}const Hee=["transform","translate","scale","rotate","perspective"],Xee=["transform","translate","scale","rotate","perspective","filter"],Gee=["paint","layout","strict","content"];function Fv(e){const t=Lv(),r=tt(e)?rt(e):e;return Hee.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)||Xee.some(n=>(r.willChange||"").includes(n))||Gee.some(n=>(r.contain||"").includes(n))}function qee(e){let t=Vr(e);for(;At(t)&&!ia(t);){if(Fv(t))return t;if(gl(t))return null;t=Vr(t)}return null}function Lv(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Zee=new Set(["html","body","#document"]);function ia(e){return Zee.has(da(e))}function rt(e){return Ke(e).getComputedStyle(e)}function hl(e){return tt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Vr(e){if(da(e)==="html")return e;const t=e.assignedSlot||e.parentNode||D0(e)&&e.host||Qt(e);return D0(t)?t.host:t}function DN(e){const t=Vr(e);return ia(t)?e.ownerDocument?e.ownerDocument.body:e.body:At(t)&&is(t)?t:DN(t)}function rs(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=DN(e),a=o===((n=e.ownerDocument)==null?void 0:n.body),c=Ke(o);if(a){const s=bm(c);return t.concat(c,c.visualViewport||[],is(o)?o:[],s&&r?rs(s):[])}return t.concat(o,rs(o,[],r))}function bm(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function _N(e){const t=rt(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=At(e),a=o?e.offsetWidth:r,c=o?e.offsetHeight:n,s=Su(r)!==a||Su(n)!==c;return s&&(r=a,n=c),{width:r,height:n,$:s}}function Wv(e){return tt(e)?e:e.contextElement}function Ho(e){const t=Wv(e);if(!At(t))return St(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:a}=_N(t);let c=(a?Su(r.width):r.width)/n,s=(a?Su(r.height):r.height)/o;return(!c||!Number.isFinite(c))&&(c=1),(!s||!Number.isFinite(s))&&(s=1),{x:c,y:s}}const Jee=St(0);function ON(e){const t=Ke(e);return!Lv()||!t.visualViewport?Jee:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Qee(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Ke(e)?!1:t}function gn(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),a=Wv(e);let c=St(1);t&&(n?tt(n)&&(c=Ho(n)):c=Ho(e));const s=Qee(a,r,n)?ON(a):St(0);let m=(o.left+s.x)/c.x,d=(o.top+s.y)/c.y,u=o.width/c.x,p=o.height/c.y;if(a){const v=Ke(a),h=n&&tt(n)?Ke(n):n;let E=v,l=bm(E);for(;l&&n&&h!==E;){const g=Ho(l),y=l.getBoundingClientRect(),b=rt(l),w=y.left+(l.clientLeft+parseFloat(b.paddingLeft))*g.x,k=y.top+(l.clientTop+parseFloat(b.paddingTop))*g.y;m*=g.x,d*=g.y,u*=g.x,p*=g.y,m+=w,d+=k,E=Ke(l),l=bm(E)}}return ju({width:u,height:p,x:m,y:d})}function yl(e,t){const r=hl(e).scrollLeft;return t?t.left+r:gn(Qt(e)).left+r}function PN(e,t){const r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-yl(e,r),o=r.top+t.scrollTop;return{x:n,y:o}}function ete(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const a=o==="fixed",c=Qt(n),s=t?gl(t.floating):!1;if(n===c||s&&a)return r;let m={scrollLeft:0,scrollTop:0},d=St(1);const u=St(0),p=At(n);if((p||!p&&!a)&&((da(n)!=="body"||is(c))&&(m=hl(n)),At(n))){const h=gn(n);d=Ho(n),u.x=h.x+n.clientLeft,u.y=h.y+n.clientTop}const v=c&&!p&&!a?PN(c,m):St(0);return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-m.scrollLeft*d.x+u.x+v.x,y:r.y*d.y-m.scrollTop*d.y+u.y+v.y}}function tte(e){return Array.from(e.getClientRects())}function rte(e){const t=Qt(e),r=hl(e),n=e.ownerDocument.body,o=Be(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),a=Be(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let c=-r.scrollLeft+yl(e);const s=-r.scrollTop;return rt(n).direction==="rtl"&&(c+=Be(t.clientWidth,n.clientWidth)-o),{width:o,height:a,x:c,y:s}}const _0=25;function nte(e,t){const r=Ke(e),n=Qt(e),o=r.visualViewport;let a=n.clientWidth,c=n.clientHeight,s=0,m=0;if(o){a=o.width,c=o.height;const u=Lv();(!u||u&&t==="fixed")&&(s=o.offsetLeft,m=o.offsetTop)}const d=yl(n);if(d<=0){const u=n.ownerDocument,p=u.body,v=getComputedStyle(p),h=u.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,E=Math.abs(n.clientWidth-p.clientWidth-h);E<=_0&&(a-=E)}else d<=_0&&(a+=d);return{width:a,height:c,x:s,y:m}}const ote=new Set(["absolute","fixed"]);function ate(e,t){const r=gn(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,a=At(e)?Ho(e):St(1),c=e.clientWidth*a.x,s=e.clientHeight*a.y,m=o*a.x,d=n*a.y;return{width:c,height:s,x:m,y:d}}function O0(e,t,r){let n;if(t==="viewport")n=nte(e,r);else if(t==="document")n=rte(Qt(e));else if(tt(t))n=ate(t,r);else{const o=ON(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return ju(n)}function MN(e,t){const r=Vr(e);return r===t||!tt(r)||ia(r)?!1:rt(r).position==="fixed"||MN(r,t)}function ste(e,t){const r=t.get(e);if(r)return r;let n=rs(e,[],!1).filter(s=>tt(s)&&da(s)!=="body"),o=null;const a=rt(e).position==="fixed";let c=a?Vr(e):e;for(;tt(c)&&!ia(c);){const s=rt(c),m=Fv(c);!m&&s.position==="fixed"&&(o=null),(a?!m&&!o:!m&&s.position==="static"&&o&&ote.has(o.position)||is(c)&&!m&&MN(e,c))?n=n.filter(d=>d!==c):o=s,c=Vr(c)}return t.set(e,n),n}function ite(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const a=[...r==="clippingAncestors"?gl(t)?[]:ste(t,this._c):[].concat(r),n],c=a[0],s=a.reduce((m,d)=>{const u=O0(t,d,o);return m.top=Be(u.top,m.top),m.right=Kr(u.right,m.right),m.bottom=Kr(u.bottom,m.bottom),m.left=Be(u.left,m.left),m},O0(t,c,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function cte(e){const{width:t,height:r}=_N(e);return{width:t,height:r}}function ute(e,t,r){const n=At(t),o=Qt(t),a=r==="fixed",c=gn(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const m=St(0);function d(){m.x=yl(o)}if(n||!n&&!a)if((da(t)!=="body"||is(o))&&(s=hl(t)),n){const h=gn(t,!0,a,t);m.x=h.x+t.clientLeft,m.y=h.y+t.clientTop}else o&&d();a&&!n&&o&&d();const u=o&&!n&&!a?PN(o,s):St(0),p=c.left+s.scrollLeft-m.x-u.x,v=c.top+s.scrollTop-m.y-u.y;return{x:p,y:v,width:c.width,height:c.height}}function up(e){return rt(e).position==="static"}function P0(e,t){if(!At(e)||rt(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Qt(e)===r&&(r=r.ownerDocument.body),r}function AN(e,t){const r=Ke(e);if(gl(e))return r;if(!At(e)){let o=Vr(e);for(;o&&!ia(o);){if(tt(o)&&!up(o))return o;o=Vr(o)}return r}let n=P0(e,t);for(;n&&Kee(n)&&up(n);)n=P0(n,t);return n&&ia(n)&&up(n)&&!Fv(n)?r:n||qee(e)||r}const lte=async function(e){const t=this.getOffsetParent||AN,r=this.getDimensions,n=await r(e.floating);return{reference:ute(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function dte(e){return rt(e).direction==="rtl"}const fte={convertOffsetParentRelativeRectToViewportRelativeRect:ete,getDocumentElement:Qt,getClippingRect:ite,getOffsetParent:AN,getElementRects:lte,getClientRects:tte,getDimensions:cte,getScale:Ho,isElement:tt,isRTL:dte};function IN(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function pte(e,t){let r=null,n;const o=Qt(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 d=e.getBoundingClientRect(),{left:u,top:p,width:v,height:h}=d;if(s||t(),!v||!h)return;const E=fc(p),l=fc(o.clientWidth-(u+v)),g=fc(o.clientHeight-(p+h)),y=fc(u),b={rootMargin:-E+"px "+-l+"px "+-g+"px "+-y+"px",threshold:Be(0,Kr(1,m))||1};let w=!0;function k(S){const T=S[0].intersectionRatio;if(T!==m){if(!w)return c();T?c(!1,T):n=setTimeout(()=>{c(!1,1e-7)},1e3)}T===1&&!IN(d,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 mte(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,d=Wv(e),u=o||a?[...d?rs(d):[],...rs(t)]:[];u.forEach(y=>{o&&y.addEventListener("scroll",r,{passive:!0}),a&&y.addEventListener("resize",r)});const p=d&&s?pte(d,r):null;let v=-1,h=null;c&&(h=new ResizeObserver(y=>{let[b]=y;b&&b.target===d&&h&&(h.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var w;(w=h)==null||w.observe(t)})),r()}),d&&!m&&h.observe(d),h.observe(t));let E,l=m?gn(e):null;m&&g();function g(){const y=gn(e);l&&!IN(l,y)&&r(),l=y,E=requestAnimationFrame(g)}return r(),()=>{var y;u.forEach(b=>{o&&b.removeEventListener("scroll",r),a&&b.removeEventListener("resize",r)}),p?.(),(y=h)==null||y.disconnect(),h=null,m&&cancelAnimationFrame(E)}}const vte=Wee,gte=zee,hte=Iee,yte=Uee,bte=Fee,M0=Aee,wte=$ee,xte=(e,t,r)=>{const n=new Map,o={platform:fte,...r},a={...o.platform,_c:n};return Mee(e,t,{...o,platform:a})};var Ete=typeof document<"u",kte=function(){},Qc=Ete?M.useLayoutEffect:kte;function Nu(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(!Nu(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)&&!Nu(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function FN(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function A0(e,t){const r=FN(e);return Math.round(t*r)/r}function lp(e){const t=i.useRef(e);return Qc(()=>{t.current=e}),t}function Cte(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:d}=e,[u,p]=i.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[v,h]=i.useState(n);Nu(v,n)||h(n);const[E,l]=i.useState(null),[g,y]=i.useState(null),b=i.useCallback(Y=>{Y!==T.current&&(T.current=Y,l(Y))},[]),w=i.useCallback(Y=>{Y!==C.current&&(C.current=Y,y(Y))},[]),k=a||E,S=c||g,T=i.useRef(null),C=i.useRef(null),j=i.useRef(u),O=m!=null,L=lp(m),I=lp(o),B=lp(d),K=i.useCallback(()=>{if(!T.current||!C.current)return;const Y={placement:t,strategy:r,middleware:v};I.current&&(Y.platform=I.current),xte(T.current,C.current,Y).then(X=>{const f={...X,isPositioned:B.current!==!1};$.current&&!Nu(j.current,f)&&(j.current=f,ke.flushSync(()=>{p(f)}))})},[v,t,r,I,B]);Qc(()=>{d===!1&&j.current.isPositioned&&(j.current.isPositioned=!1,p(Y=>({...Y,isPositioned:!1})))},[d]);const $=i.useRef(!1);Qc(()=>($.current=!0,()=>{$.current=!1}),[]),Qc(()=>{if(k&&(T.current=k),S&&(C.current=S),k&&S){if(L.current)return L.current(k,S,K);K()}},[k,S,K,L,O]);const P=i.useMemo(()=>({reference:T,floating:C,setReference:b,setFloating:w}),[b,w]),U=i.useMemo(()=>({reference:k,floating:S}),[k,S]),V=i.useMemo(()=>{const Y={position:r,left:0,top:0};if(!U.floating)return Y;const X=A0(U.floating,u.x),f=A0(U.floating,u.y);return s?{...Y,transform:"translate("+X+"px, "+f+"px)",...FN(U.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:X,top:f}},[r,s,U.floating,u.x,u.y]);return i.useMemo(()=>({...u,update:K,refs:P,elements:U,floatingStyles:V}),[u,K,P,U,V])}const Ste=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?M0({element:n.current,padding:o}).fn(r):{}:n?M0({element:n,padding:o}).fn(r):{}}}},Rte=(e,t)=>({...vte(e),options:[e,t]}),jte=(e,t)=>({...gte(e),options:[e,t]}),Nte=(e,t)=>({...wte(e),options:[e,t]}),Tte=(e,t)=>({...hte(e),options:[e,t]}),Dte=(e,t)=>({...yte(e),options:[e,t]}),_te=(e,t)=>({...bte(e),options:[e,t]}),Ote=(e,t)=>({...Ste(e),options:[e,t]});var Pte="Arrow",LN=i.forwardRef((e,t)=>{const{children:r,width:n=10,height:o=5,...a}=e;return ye.jsx(mr.svg,{...a,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:ye.jsx("polygon",{points:"0,0 30,0 15,10"})})});LN.displayName=Pte;var Mte=LN;function Ate(e){const[t,r]=i.useState(void 0);return sa(()=>{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,d=Array.isArray(m)?m[0]:m;c=d.inlineSize,s=d.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 WN="Popper",[zN,$N]=xN(WN),[Ece,UN]=zN(WN),YN="PopperAnchor",BN=i.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,a=UN(YN,r),c=i.useRef(null),s=Hr(t,c),m=i.useRef(null);return i.useEffect(()=>{const d=m.current;m.current=n?.current||c.current,d!==m.current&&a.onAnchorChange(m.current)}),n?null:ye.jsx(mr.div,{...o,ref:s})});BN.displayName=YN;var zv="PopperContent",[Ite,Fte]=zN(zv),KN=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:d=[],collisionPadding:u=0,sticky:p="partial",hideWhenDetached:v=!1,updatePositionStrategy:h="optimized",onPlaced:E,...l}=e,g=UN(zv,r),[y,b]=i.useState(null),w=Hr(t,H=>b(H)),[k,S]=i.useState(null),T=Ate(k),C=T?.width??0,j=T?.height??0,O=n+(a!=="center"?"-"+a:""),L=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},I=Array.isArray(d)?d:[d],B=I.length>0,K={padding:L,boundary:I.filter(Wte),altBoundary:B},{refs:$,floatingStyles:P,placement:U,isPositioned:V,middlewareData:Y}=Cte({strategy:"fixed",placement:O,whileElementsMounted:(...H)=>mte(...H,{animationFrame:h==="always"}),elements:{reference:g.anchor},middleware:[Rte({mainAxis:o+j,alignmentAxis:c}),m&&jte({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?Nte():void 0,...K}),m&&Tte({...K}),Dte({...K,apply:({elements:H,rects:_,availableWidth:W,availableHeight:q})=>{const{width:ce,height:R_}=_.reference,ys=H.floating.style;ys.setProperty("--radix-popper-available-width",`${W}px`),ys.setProperty("--radix-popper-available-height",`${q}px`),ys.setProperty("--radix-popper-anchor-width",`${ce}px`),ys.setProperty("--radix-popper-anchor-height",`${R_}px`)}}),k&&Ote({element:k,padding:s}),zte({arrowWidth:C,arrowHeight:j}),v&&_te({strategy:"referenceHidden",...K})]}),[X,f]=XN(U),x=aa(E);sa(()=>{V&&x?.()},[V,x]);const R=Y.arrow?.x,D=Y.arrow?.y,F=Y.arrow?.centerOffset!==0,[A,G]=i.useState();return sa(()=>{y&&G(window.getComputedStyle(y).zIndex)},[y]),ye.jsx("div",{ref:$.setFloating,"data-radix-popper-content-wrapper":"",style:{...P,transform:V?P.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:A,"--radix-popper-transform-origin":[Y.transformOrigin?.x,Y.transformOrigin?.y].join(" "),...Y.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:ye.jsx(Ite,{scope:r,placedSide:X,onArrowChange:S,arrowX:R,arrowY:D,shouldHideArrow:F,children:ye.jsx(mr.div,{"data-side":X,"data-align":f,...l,ref:w,style:{...l.style,animation:V?void 0:"none"}})})})});KN.displayName=zv;var VN="PopperArrow",Lte={top:"bottom",right:"left",bottom:"top",left:"right"},HN=i.forwardRef(function(e,t){const{__scopePopper:r,...n}=e,o=Fte(VN,r),a=Lte[o.placedSide];return ye.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:ye.jsx(Mte,{...n,ref:t,style:{...n.style,display:"block"}})})});HN.displayName=VN;function Wte(e){return e!==null}var zte=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,d]=XN(r),u={start:"0%",center:"50%",end:"100%"}[d],p=(o.arrow?.x??0)+c/2,v=(o.arrow?.y??0)+s/2;let h="",E="";return m==="bottom"?(h=a?u:`${p}px`,E=`${-s}px`):m==="top"?(h=a?u:`${p}px`,E=`${n.floating.height+s}px`):m==="right"?(h=`${-s}px`,E=a?u:`${v}px`):m==="left"&&(h=`${n.floating.width+s}px`,E=a?u:`${v}px`),{data:{x:h,y:E}}}});function XN(e){const[t,r="center"]=e.split("-");return[t,r]}var GN=BN,$te=KN,Ute=HN,Yte="Portal",Bte=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?Ee.createPortal(ye.jsx(mr.div,{...n,ref:t}),c):null});Bte.displayName=Yte;function Kte(e,t){return i.useReducer((r,n)=>t[r][n]??r,e)}var qN=e=>{const{present:t,children:r}=e,n=Vte(t),o=typeof r=="function"?r({present:n.isPresent}):i.Children.only(r),a=Hr(n.ref,Hte(o));return typeof r=="function"||n.isPresent?i.cloneElement(o,{ref:a}):null};qN.displayName="Presence";function Vte(e){const[t,r]=i.useState(),n=i.useRef(null),o=i.useRef(e),a=i.useRef("none"),c=e?"mounted":"unmounted",[s,m]=Kte(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const d=pc(n.current);a.current=s==="mounted"?d:"none"},[s]),sa(()=>{const d=n.current,u=o.current;if(u!==e){const p=a.current,v=pc(d);e?m("MOUNT"):v==="none"||d?.display==="none"?m("UNMOUNT"):m(u&&p!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,m]),sa(()=>{if(t){let d;const u=t.ownerDocument.defaultView??window,p=h=>{const E=pc(n.current).includes(CSS.escape(h.animationName));if(h.target===t&&E&&(m("ANIMATION_END"),!o.current)){const l=t.style.animationFillMode;t.style.animationFillMode="forwards",d=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=l)})}},v=h=>{h.target===t&&(a.current=pc(n.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{u.clearTimeout(d),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(d=>{n.current=d?getComputedStyle(d):null,r(d)},[])}}function pc(e){return e?.animationName||"none"}function Hte(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 Xte=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},jo=new WeakMap,mc=new WeakMap,vc={},dp=0,ZN=function(e){return e&&(e.host||ZN(e.parentNode))},Gte=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=ZN(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})},qte=function(e,t,r,n){var o=Gte(t,Array.isArray(e)?e:[e]);vc[r]||(vc[r]=new WeakMap);var a=vc[r],c=[],s=new Set,m=new Set(o),d=function(p){!p||s.has(p)||(s.add(p),d(p.parentNode))};o.forEach(d);var u=function(p){!p||m.has(p)||Array.prototype.forEach.call(p.children,function(v){if(s.has(v))u(v);else try{var h=v.getAttribute(n),E=h!==null&&h!=="false",l=(jo.get(v)||0)+1,g=(a.get(v)||0)+1;jo.set(v,l),a.set(v,g),c.push(v),l===1&&E&&mc.set(v,!0),g===1&&v.setAttribute(r,"true"),E||v.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",v,y)}})};return u(t),s.clear(),dp++,function(){c.forEach(function(p){var v=jo.get(p)-1,h=a.get(p)-1;jo.set(p,v),a.set(p,h),v||(mc.has(p)||p.removeAttribute(n),mc.delete(p)),h||p.removeAttribute(r)}),dp--,dp||(jo=new WeakMap,jo=new WeakMap,mc=new WeakMap,vc={})}},Zte=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=Xte(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),qte(n,o,r,"aria-hidden")):function(){return null}},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 JN(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 Jte(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 eu="right-scroll-bar-position",tu="width-before-scroll-bar",Qte="with-scroll-bars-hidden",ere="--removed-body-scroll-bar-size";function fp(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function tre(e,t){var r=M.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 rre=typeof window<"u"?i.useLayoutEffect:i.useEffect,I0=new WeakMap;function nre(e,t){var r=tre(null,function(n){return e.forEach(function(o){return fp(o,n)})});return rre(function(){var n=I0.get(r);if(n){var o=new Set(n),a=new Set(e),c=r.current;o.forEach(function(s){a.has(s)||fp(s,null)}),a.forEach(function(s){o.has(s)||fp(s,c)})}I0.set(r,e)},[e]),r}function ore(e){return e}function are(e,t){t===void 0&&(t=ore);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 u=c;c=[],u.forEach(a)},d=function(){return Promise.resolve().then(m)};d(),r={push:function(u){c.push(u),d()},filter:function(u){return c=c.filter(u),r}}}};return o}function sre(e){e===void 0&&(e={});var t=are(null);return t.options=Et({async:!0,ssr:!1},e),t}var QN=function(e){var t=e.sideCar,r=JN(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))};QN.isSideCarExport=!0;function ire(e,t){return e.useMedium(t),QN}var eT=sre(),pp=function(){},bl=i.forwardRef(function(e,t){var r=i.useRef(null),n=i.useState({onScrollCapture:pp,onWheelCapture:pp,onTouchMoveCapture:pp}),o=n[0],a=n[1],c=e.forwardProps,s=e.children,m=e.className,d=e.removeScrollBar,u=e.enabled,p=e.shards,v=e.sideCar,h=e.noRelative,E=e.noIsolation,l=e.inert,g=e.allowPinchZoom,y=e.as,b=y===void 0?"div":y,w=e.gapMode,k=JN(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=v,T=nre([r,t]),C=Et(Et({},k),o);return i.createElement(i.Fragment,null,u&&i.createElement(S,{sideCar:eT,removeScrollBar:d,shards:p,noRelative:h,noIsolation:E,inert:l,setCallbacks:a,allowPinchZoom:!!g,lockRef:r,gapMode:w}),c?i.cloneElement(i.Children.only(s),Et(Et({},C),{ref:T})):i.createElement(b,Et({},C,{className:m,ref:T}),s))});bl.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};bl.classNames={fullWidth:tu,zeroRight:eu};var cre=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function ure(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=cre();return t&&e.setAttribute("nonce",t),e}function lre(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function dre(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var fre=function(){var e=0,t=null;return{add:function(r){e==0&&(t=ure())&&(lre(t,r),dre(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},pre=function(){var e=fre();return function(t,r){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},tT=function(){var e=pre(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},mre={left:0,top:0,right:0,gap:0},mp=function(e){return parseInt(e||"",10)||0},vre=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[mp(r),mp(n),mp(o)]},gre=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return mre;var t=vre(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])}},hre=tT(),Xo="data-scroll-locked",yre=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(Qte,` {
|
1087
|
-
overflow: hidden `).concat(n,`;
|
1088
|
-
padding-right: `).concat(s,"px ").concat(n,`;
|
1089
|
-
}
|
1090
|
-
body[`).concat(Xo,`] {
|
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(eu,` {
|
1104
|
-
right: `).concat(s,"px ").concat(n,`;
|
1105
|
-
}
|
1106
|
-
|
1107
|
-
.`).concat(tu,` {
|
1108
|
-
margin-right: `).concat(s,"px ").concat(n,`;
|
1109
|
-
}
|
1110
|
-
|
1111
|
-
.`).concat(eu," .").concat(eu,` {
|
1112
|
-
right: 0 `).concat(n,`;
|
1113
|
-
}
|
1114
|
-
|
1115
|
-
.`).concat(tu," .").concat(tu,` {
|
1116
|
-
margin-right: 0 `).concat(n,`;
|
1117
|
-
}
|
1118
|
-
|
1119
|
-
body[`).concat(Xo,`] {
|
1120
|
-
`).concat(ere,": ").concat(s,`px;
|
1121
|
-
}
|
1122
|
-
`)},F0=function(){var e=parseInt(document.body.getAttribute(Xo)||"0",10);return isFinite(e)?e:0},bre=function(){i.useEffect(function(){return document.body.setAttribute(Xo,(F0()+1).toString()),function(){var e=F0()-1;e<=0?document.body.removeAttribute(Xo):document.body.setAttribute(Xo,e.toString())}},[])},wre=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;bre();var a=i.useMemo(function(){return gre(o)},[o]);return i.createElement(hre,{styles:yre(a,!t,o,r?"":"!important")})},wm=!1;if(typeof window<"u")try{var gc=Object.defineProperty({},"passive",{get:function(){return wm=!0,!0}});window.addEventListener("test",gc,gc),window.removeEventListener("test",gc,gc)}catch{wm=!1}var No=wm?{passive:!1}:!1,xre=function(e){return e.tagName==="TEXTAREA"},rT=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!xre(e)&&r[t]==="visible")},Ere=function(e){return rT(e,"overflowY")},kre=function(e){return rT(e,"overflowX")},L0=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=nT(e,n);if(o){var a=oT(e,n),c=a[1],s=a[2];if(c>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},Cre=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},Sre=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},nT=function(e,t){return e==="v"?Ere(t):kre(t)},oT=function(e,t){return e==="v"?Cre(t):Sre(t)},Rre=function(e,t){return e==="h"&&t==="rtl"?-1:1},jre=function(e,t,r,n,o){var a=Rre(e,window.getComputedStyle(t).direction),c=a*n,s=r.target,m=t.contains(s),d=!1,u=c>0,p=0,v=0;do{if(!s)break;var h=oT(e,s),E=h[0],l=h[1],g=h[2],y=l-g-a*E;(E||y)&&nT(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(u&&Math.abs(p)<1||!u&&Math.abs(v)<1)&&(d=!0),d},hc=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},W0=function(e){return[e.deltaX,e.deltaY]},z0=function(e){return e&&"current"in e?e.current:e},Nre=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Tre=function(e){return`
|
1123
|
-
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
1124
|
-
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
1125
|
-
`)},Dre=0,To=[];function _re(e){var t=i.useRef([]),r=i.useRef([0,0]),n=i.useRef(),o=i.useState(Dre++)[0],a=i.useState(tT)[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 l=Jte([e.lockRef.current],(e.shards||[]).map(z0)).filter(Boolean);return l.forEach(function(g){return g.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),l.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=i.useCallback(function(l,g){if("touches"in l&&l.touches.length===2||l.type==="wheel"&&l.ctrlKey)return!c.current.allowPinchZoom;var y=hc(l),b=r.current,w="deltaX"in l?l.deltaX:b[0]-y[0],k="deltaY"in l?l.deltaY:b[1]-y[1],S,T=l.target,C=Math.abs(w)>Math.abs(k)?"h":"v";if("touches"in l&&C==="h"&&T.type==="range")return!1;var j=L0(C,T);if(!j)return!0;if(j?S=C:(S=C==="v"?"h":"v",j=L0(C,T)),!j)return!1;if(!n.current&&"changedTouches"in l&&(w||k)&&(n.current=S),!S)return!0;var O=n.current||S;return jre(O,g,l,O==="h"?w:k)},[]),m=i.useCallback(function(l){var g=l;if(!(!To.length||To[To.length-1]!==a)){var y="deltaY"in g?W0(g):hc(g),b=t.current.filter(function(S){return S.name===g.type&&(S.target===g.target||g.target===S.shadowParent)&&Nre(S.delta,y)})[0];if(b&&b.should){g.cancelable&&g.preventDefault();return}if(!b){var w=(c.current.shards||[]).map(z0).filter(Boolean).filter(function(S){return S.contains(g.target)}),k=w.length>0?s(g,w[0]):!c.current.noIsolation;k&&g.cancelable&&g.preventDefault()}}},[]),d=i.useCallback(function(l,g,y,b){var w={name:l,delta:g,target:y,should:b,shadowParent:Ore(y)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(k){return k!==w})},1)},[]),u=i.useCallback(function(l){r.current=hc(l),n.current=void 0},[]),p=i.useCallback(function(l){d(l.type,W0(l),l.target,s(l,e.lockRef.current))},[]),v=i.useCallback(function(l){d(l.type,hc(l),l.target,s(l,e.lockRef.current))},[]);i.useEffect(function(){return To.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:v}),document.addEventListener("wheel",m,No),document.addEventListener("touchmove",m,No),document.addEventListener("touchstart",u,No),function(){To=To.filter(function(l){return l!==a}),document.removeEventListener("wheel",m,No),document.removeEventListener("touchmove",m,No),document.removeEventListener("touchstart",u,No)}},[]);var h=e.removeScrollBar,E=e.inert;return i.createElement(i.Fragment,null,E?i.createElement(a,{styles:Tre(o)}):null,h?i.createElement(wre,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Ore(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Pre=ire(eT,_re);var aT=i.forwardRef(function(e,t){return i.createElement(bl,Et({},e,{ref:t,sideCar:Pre}))});aT.classNames=bl.classNames;var sT="Popover",[iT]=xN(sT,[$N]),wl=$N(),[kce,Rn]=iT(sT),cT="PopoverAnchor",Mre=i.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Rn(cT,r),a=wl(r),{onCustomAnchorAdd:c,onCustomAnchorRemove:s}=o;return i.useEffect(()=>(c(),()=>s()),[c,s]),ye.jsx(GN,{...a,...n,ref:t})});Mre.displayName=cT;var uT="PopoverTrigger",Are=i.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Rn(uT,r),a=wl(r),c=Hr(t,o.triggerRef),s=ye.jsx(mr.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":fT(o.open),...n,ref:c,onClick:Yr(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?s:ye.jsx(GN,{asChild:!0,...a,children:s})});Are.displayName=uT;var Ire="PopoverPortal",[Cce,Fre]=iT(Ire,{forceMount:void 0}),ca="PopoverContent",Lre=i.forwardRef((e,t)=>{const r=Fre(ca,e.__scopePopover),{forceMount:n=r.forceMount,...o}=e,a=Rn(ca,e.__scopePopover);return ye.jsx(qN,{present:n||a.open,children:a.modal?ye.jsx(zre,{...o,ref:t}):ye.jsx($re,{...o,ref:t})})});Lre.displayName=ca;var Wre=Z.createSlot("PopoverContent.RemoveScroll"),zre=i.forwardRef((e,t)=>{const r=Rn(ca,e.__scopePopover),n=i.useRef(null),o=Hr(t,n),a=i.useRef(!1);return i.useEffect(()=>{const c=n.current;if(c)return Zte(c)},[]),ye.jsx(aT,{as:Wre,allowPinchZoom:!0,children:ye.jsx(lT,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Yr(e.onCloseAutoFocus,c=>{c.preventDefault(),a.current||r.triggerRef.current?.focus()}),onPointerDownOutside:Yr(e.onPointerDownOutside,c=>{const s=c.detail.originalEvent,m=s.button===0&&s.ctrlKey===!0,d=s.button===2||m;a.current=d},{checkForDefaultPrevented:!1}),onFocusOutside:Yr(e.onFocusOutside,c=>c.preventDefault(),{checkForDefaultPrevented:!1})})})}),$re=i.forwardRef((e,t)=>{const r=Rn(ca,e.__scopePopover),n=i.useRef(!1),o=i.useRef(!1);return ye.jsx(lT,{...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()}})}),lT=i.forwardRef((e,t)=>{const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:c,onEscapeKeyDown:s,onPointerDownOutside:m,onFocusOutside:d,onInteractOutside:u,...p}=e,v=Rn(ca,r),h=wl(r);return vee(),ye.jsx(SN,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:ye.jsx(kN,{asChild:!0,disableOutsidePointerEvents:c,onInteractOutside:u,onEscapeKeyDown:s,onPointerDownOutside:m,onFocusOutside:d,onDismiss:()=>v.onOpenChange(!1),children:ye.jsx($te,{"data-state":fT(v.open),role:"dialog",id:v.contentId,...h,...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)"}})})})}),dT="PopoverClose",Ure=i.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Rn(dT,r);return ye.jsx(mr.button,{type:"button",...n,ref:t,onClick:Yr(e.onClick,()=>o.onOpenChange(!1))})});Ure.displayName=dT;var Yre="PopoverArrow",Bre=i.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=wl(r);return ye.jsx(Ute,{...o,...n,ref:t})});Bre.displayName=Yre;function fT(e){return e?"open":"closed"}i.createContext({});i.createContext({});function Kre(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 xm=1;class Vre{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:xm++,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 d=>{if(c=["resolve",d],M.isValidElement(d))a=!1,this.create({id:n,type:"default",message:d});else if(Xre(d)&&!d.ok){a=!1;const u=typeof r.error=="function"?await r.error(`HTTP error! status: ${d.status}`):r.error,p=typeof r.description=="function"?await r.description(`HTTP error! status: ${d.status}`):r.description,v=typeof u=="object"&&!M.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:p,...v})}else if(d instanceof Error){a=!1;const u=typeof r.error=="function"?await r.error(d):r.error,p=typeof r.description=="function"?await r.description(d):r.description,v=typeof u=="object"&&!M.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:p,...v})}else if(r.success!==void 0){a=!1;const u=typeof r.success=="function"?await r.success(d):r.success,p=typeof r.description=="function"?await r.description(d):r.description,v=typeof u=="object"&&!M.isValidElement(u)?u:{message:u};this.create({id:n,type:"success",description:p,...v})}}).catch(async d=>{if(c=["reject",d],r.error!==void 0){a=!1;const u=typeof r.error=="function"?await r.error(d):r.error,p=typeof r.description=="function"?await r.description(d):r.description,v=typeof u=="object"&&!M.isValidElement(u)?u:{message:u};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((d,u)=>s.then(()=>c[0]==="reject"?u(c[1]):d(c[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:m}:Object.assign(n,{unwrap:m})},this.custom=(t,r)=>{const n=r?.id||xm++;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 Vre,Hre=(e,t)=>{const r=t?.id||xm++;return He.addToast({title:e,...t,id:r}),r},Xre=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",Gre=Hre,qre=()=>He.toasts,Zre=()=>He.getActiveToasts();Object.assign(Gre,{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:qre,getToasts:Zre});Kre("[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 Jre(e){const t=e+"CollectionProvider",[r,n]=fl(t),[o,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),c=l=>{const{scope:g,children:y}=l,b=M.useRef(null),w=M.useRef(new Map).current;return se.jsx(o,{scope:g,itemMap:w,collectionRef:b,children:y})};c.displayName=t;const s=e+"CollectionSlot",m=Z.createSlot(s),d=M.forwardRef((l,g)=>{const{scope:y,children:b}=l,w=a(s,y),k=Mt(g,w.collectionRef);return se.jsx(m,{ref:k,children:b})});d.displayName=s;const u=e+"CollectionItemSlot",p="data-radix-collection-item",v=Z.createSlot(u),h=M.forwardRef((l,g)=>{const{scope:y,children:b,...w}=l,k=M.useRef(null),S=Mt(g,k),T=a(u,y);return M.useEffect(()=>(T.itemMap.set(k,{ref:k,...w}),()=>void T.itemMap.delete(k))),se.jsx(v,{[p]:"",ref:S,children:b})});h.displayName=u;function E(l){const g=a(e+"CollectionConsumer",l);return M.useCallback(()=>{const y=g.collectionRef.current;if(!y)return[];const b=Array.from(y.querySelectorAll(`[${p}]`));return Array.from(g.itemMap.values()).sort((w,k)=>b.indexOf(w.ref.current)-b.indexOf(k.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:c,Slot:d,ItemSlot:h},E,n]}var Qre=i.createContext(void 0);function pT(e){const t=i.useContext(Qre);return e||t||"ltr"}var vp="rovingFocusGroup.onEntryFocus",ene={bubbles:!1,cancelable:!0},cs="RovingFocusGroup",[Em,mT,tne]=Jre(cs),[rne,vT]=fl(cs,[tne]),[nne,one]=rne(cs),gT=i.forwardRef((e,t)=>se.jsx(Em.Provider,{scope:e.__scopeRovingFocusGroup,children:se.jsx(Em.Slot,{scope:e.__scopeRovingFocusGroup,children:se.jsx(ane,{...e,ref:t})})}));gT.displayName=cs;var ane=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:a,currentTabStopId:c,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:m,onEntryFocus:d,preventScrollOnEntryFocus:u=!1,...p}=e,v=i.useRef(null),h=Mt(t,v),E=pT(a),[l,g]=Ij({prop:c,defaultProp:s??null,onChange:m,caller:cs}),[y,b]=i.useState(!1),w=na(d),k=mT(r),S=i.useRef(!1),[T,C]=i.useState(0);return i.useEffect(()=>{const j=v.current;if(j)return j.addEventListener(vp,w),()=>j.removeEventListener(vp,w)},[w]),se.jsx(nne,{scope:r,orientation:n,dir:E,loop:o,currentTabStopId:l,onItemFocus:i.useCallback(j=>g(j),[g]),onItemShiftTab:i.useCallback(()=>b(!0),[]),onFocusableItemAdd:i.useCallback(()=>C(j=>j+1),[]),onFocusableItemRemove:i.useCallback(()=>C(j=>j-1),[]),children:se.jsx(Ye.div,{tabIndex:y||T===0?-1:0,"data-orientation":n,...p,ref:h,style:{outline:"none",...e.style},onMouseDown:Oe(e.onMouseDown,()=>{S.current=!0}),onFocus:Oe(e.onFocus,j=>{const O=!S.current;if(j.target===j.currentTarget&&O&&!y){const L=new CustomEvent(vp,ene);if(j.currentTarget.dispatchEvent(L),!L.defaultPrevented){const I=k().filter(P=>P.focusable),B=I.find(P=>P.active),K=I.find(P=>P.id===l),$=[B,K,...I].filter(Boolean).map(P=>P.ref.current);bT($,u)}}S.current=!1}),onBlur:Oe(e.onBlur,()=>b(!1))})})}),hT="RovingFocusGroupItem",yT=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:a,children:c,...s}=e,m=Aj(),d=a||m,u=one(hT,r),p=u.currentTabStopId===d,v=mT(r),{onFocusableItemAdd:h,onFocusableItemRemove:E,currentTabStopId:l}=u;return i.useEffect(()=>{if(n)return h(),()=>E()},[n,h,E]),se.jsx(Em.ItemSlot,{scope:r,id:d,focusable:n,active:o,children:se.jsx(Ye.span,{tabIndex:p?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:Oe(e.onMouseDown,g=>{n?u.onItemFocus(d):g.preventDefault()}),onFocus:Oe(e.onFocus,()=>u.onItemFocus(d)),onKeyDown:Oe(e.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){u.onItemShiftTab();return}if(g.target!==g.currentTarget)return;const y=cne(g,u.orientation,u.dir);if(y!==void 0){if(g.metaKey||g.ctrlKey||g.altKey||g.shiftKey)return;g.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(g.currentTarget);b=u.loop?une(b,w+1):b.slice(w+1)}setTimeout(()=>bT(b))}}),children:typeof c=="function"?c({isCurrentTabStop:p,hasTabStop:l!=null}):c})})});yT.displayName=hT;var sne={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function ine(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function cne(e,t,r){const n=ine(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return sne[n]}function bT(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function une(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var lne=gT,dne=yT,xl="Tabs",[fne]=fl(xl,[vT]),wT=vT(),[pne,$v]=fne(xl),mne=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,onValueChange:o,defaultValue:a,orientation:c="horizontal",dir:s,activationMode:m="automatic",...d}=e,u=pT(s),[p,v]=Ij({prop:n,onChange:o,defaultProp:a??"",caller:xl});return se.jsx(pne,{scope:r,baseId:Aj(),value:p,onValueChange:v,orientation:c,dir:u,activationMode:m,children:se.jsx(Ye.div,{dir:u,"data-orientation":c,...d,ref:t})})});mne.displayName=xl;var xT="TabsList",vne=i.forwardRef((e,t)=>{const{__scopeTabs:r,loop:n=!0,...o}=e,a=$v(xT,r),c=wT(r);return se.jsx(lne,{asChild:!0,...c,orientation:a.orientation,dir:a.dir,loop:n,children:se.jsx(Ye.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});vne.displayName=xT;var ET="TabsTrigger",gne=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,disabled:o=!1,...a}=e,c=$v(ET,r),s=wT(r),m=CT(c.baseId,n),d=ST(c.baseId,n),u=n===c.value;return se.jsx(dne,{asChild:!0,...s,focusable:!o,active:u,children:se.jsx(Ye.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":d,"data-state":u?"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";!u&&!o&&p&&c.onValueChange(n)})})})});gne.displayName=ET;var kT="TabsContent",hne=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,forceMount:o,children:a,...c}=e,s=$v(kT,r),m=CT(s.baseId,n),d=ST(s.baseId,n),u=n===s.value,p=i.useRef(u);return i.useEffect(()=>{const v=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(v)},[]),se.jsx(pl,{present:o||u,children:({present:v})=>se.jsx(Ye.div,{"data-state":u?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":m,hidden:!v,id:d,tabIndex:0,...c,ref:t,style:{...e.style,animationDuration:p.current?"0s":void 0},children:v&&a})})});hne.displayName=kT;function CT(e,t){return`${e}-trigger-${t}`}function ST(e,t){return`${e}-content-${t}`}i.createContext({});i.createContext({});function yne(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 km=1;class bne{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:km++,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 d=>{if(c=["resolve",d],M.isValidElement(d))a=!1,this.create({id:n,type:"default",message:d});else if(xne(d)&&!d.ok){a=!1;const u=typeof r.error=="function"?await r.error(`HTTP error! status: ${d.status}`):r.error,p=typeof r.description=="function"?await r.description(`HTTP error! status: ${d.status}`):r.description,v=typeof u=="object"&&!M.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:p,...v})}else if(d instanceof Error){a=!1;const u=typeof r.error=="function"?await r.error(d):r.error,p=typeof r.description=="function"?await r.description(d):r.description,v=typeof u=="object"&&!M.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:p,...v})}else if(r.success!==void 0){a=!1;const u=typeof r.success=="function"?await r.success(d):r.success,p=typeof r.description=="function"?await r.description(d):r.description,v=typeof u=="object"&&!M.isValidElement(u)?u:{message:u};this.create({id:n,type:"success",description:p,...v})}}).catch(async d=>{if(c=["reject",d],r.error!==void 0){a=!1;const u=typeof r.error=="function"?await r.error(d):r.error,p=typeof r.description=="function"?await r.description(d):r.description,v=typeof u=="object"&&!M.isValidElement(u)?u:{message:u};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((d,u)=>s.then(()=>c[0]==="reject"?u(c[1]):d(c[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:m}:Object.assign(n,{unwrap:m})},this.custom=(t,r)=>{const n=r?.id||km++;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 bne,wne=(e,t)=>{const r=t?.id||km++;return Xe.addToast({title:e,...t,id:r}),r},xne=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",Ene=wne,kne=()=>Xe.toasts,Cne=()=>Xe.getActiveToasts();Object.assign(Ene,{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:kne,getToasts:Cne});yne("[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 Sne(e){const t=e+"CollectionProvider",[r,n]=ul(t),[o,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),c=l=>{const{scope:g,children:y}=l,b=M.useRef(null),w=M.useRef(new Map).current;return ae.jsx(o,{scope:g,itemMap:w,collectionRef:b,children:y})};c.displayName=t;const s=e+"CollectionSlot",m=Z.createSlot(s),d=M.forwardRef((l,g)=>{const{scope:y,children:b}=l,w=a(s,y),k=Pt(g,w.collectionRef);return ae.jsx(m,{ref:k,children:b})});d.displayName=s;const u=e+"CollectionItemSlot",p="data-radix-collection-item",v=Z.createSlot(u),h=M.forwardRef((l,g)=>{const{scope:y,children:b,...w}=l,k=M.useRef(null),S=Pt(g,k),T=a(u,y);return M.useEffect(()=>(T.itemMap.set(k,{ref:k,...w}),()=>void T.itemMap.delete(k))),ae.jsx(v,{[p]:"",ref:S,children:b})});h.displayName=u;function E(l){const g=a(e+"CollectionConsumer",l);return M.useCallback(()=>{const y=g.collectionRef.current;if(!y)return[];const b=Array.from(y.querySelectorAll(`[${p}]`));return Array.from(g.itemMap.values()).sort((w,k)=>b.indexOf(w.ref.current)-b.indexOf(k.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:c,Slot:d,ItemSlot:h},E,n]}var Rne=i.createContext(void 0);function RT(e){const t=i.useContext(Rne);return e||t||"ltr"}var gp="rovingFocusGroup.onEntryFocus",jne={bubbles:!1,cancelable:!0},us="RovingFocusGroup",[Cm,jT,Nne]=Sne(us),[Tne,NT]=ul(us,[Nne]),[Dne,_ne]=Tne(us),TT=i.forwardRef((e,t)=>ae.jsx(Cm.Provider,{scope:e.__scopeRovingFocusGroup,children:ae.jsx(Cm.Slot,{scope:e.__scopeRovingFocusGroup,children:ae.jsx(One,{...e,ref:t})})}));TT.displayName=us;var One=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:a,currentTabStopId:c,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:m,onEntryFocus:d,preventScrollOnEntryFocus:u=!1,...p}=e,v=i.useRef(null),h=Pt(t,v),E=RT(a),[l,g]=dj({prop:c,defaultProp:s??null,onChange:m,caller:us}),[y,b]=i.useState(!1),w=ra(d),k=jT(r),S=i.useRef(!1),[T,C]=i.useState(0);return i.useEffect(()=>{const j=v.current;if(j)return j.addEventListener(gp,w),()=>j.removeEventListener(gp,w)},[w]),ae.jsx(Dne,{scope:r,orientation:n,dir:E,loop:o,currentTabStopId:l,onItemFocus:i.useCallback(j=>g(j),[g]),onItemShiftTab:i.useCallback(()=>b(!0),[]),onFocusableItemAdd:i.useCallback(()=>C(j=>j+1),[]),onFocusableItemRemove:i.useCallback(()=>C(j=>j-1),[]),children:ae.jsx(Ue.div,{tabIndex:y||T===0?-1:0,"data-orientation":n,...p,ref:h,style:{outline:"none",...e.style},onMouseDown:_e(e.onMouseDown,()=>{S.current=!0}),onFocus:_e(e.onFocus,j=>{const O=!S.current;if(j.target===j.currentTarget&&O&&!y){const L=new CustomEvent(gp,jne);if(j.currentTarget.dispatchEvent(L),!L.defaultPrevented){const I=k().filter(P=>P.focusable),B=I.find(P=>P.active),K=I.find(P=>P.id===l),$=[B,K,...I].filter(Boolean).map(P=>P.ref.current);OT($,u)}}S.current=!1}),onBlur:_e(e.onBlur,()=>b(!1))})})}),DT="RovingFocusGroupItem",_T=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:a,children:c,...s}=e,m=lj(),d=a||m,u=_ne(DT,r),p=u.currentTabStopId===d,v=jT(r),{onFocusableItemAdd:h,onFocusableItemRemove:E,currentTabStopId:l}=u;return i.useEffect(()=>{if(n)return h(),()=>E()},[n,h,E]),ae.jsx(Cm.ItemSlot,{scope:r,id:d,focusable:n,active:o,children:ae.jsx(Ue.span,{tabIndex:p?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:_e(e.onMouseDown,g=>{n?u.onItemFocus(d):g.preventDefault()}),onFocus:_e(e.onFocus,()=>u.onItemFocus(d)),onKeyDown:_e(e.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){u.onItemShiftTab();return}if(g.target!==g.currentTarget)return;const y=Ane(g,u.orientation,u.dir);if(y!==void 0){if(g.metaKey||g.ctrlKey||g.altKey||g.shiftKey)return;g.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(g.currentTarget);b=u.loop?Ine(b,w+1):b.slice(w+1)}setTimeout(()=>OT(b))}}),children:typeof c=="function"?c({isCurrentTabStop:p,hasTabStop:l!=null}):c})})});_T.displayName=DT;var Pne={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Mne(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Ane(e,t,r){const n=Mne(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return Pne[n]}function OT(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function Ine(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var Fne=TT,Lne=_T,El="Tabs",[Wne]=ul(El,[NT]),PT=NT(),[zne,Uv]=Wne(El),$ne=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,onValueChange:o,defaultValue:a,orientation:c="horizontal",dir:s,activationMode:m="automatic",...d}=e,u=RT(s),[p,v]=dj({prop:n,onChange:o,defaultProp:a??"",caller:El});return ae.jsx(zne,{scope:r,baseId:lj(),value:p,onValueChange:v,orientation:c,dir:u,activationMode:m,children:ae.jsx(Ue.div,{dir:u,"data-orientation":c,...d,ref:t})})});$ne.displayName=El;var MT="TabsList",Une=i.forwardRef((e,t)=>{const{__scopeTabs:r,loop:n=!0,...o}=e,a=Uv(MT,r),c=PT(r);return ae.jsx(Fne,{asChild:!0,...c,orientation:a.orientation,dir:a.dir,loop:n,children:ae.jsx(Ue.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});Une.displayName=MT;var AT="TabsTrigger",Yne=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,disabled:o=!1,...a}=e,c=Uv(AT,r),s=PT(r),m=FT(c.baseId,n),d=LT(c.baseId,n),u=n===c.value;return ae.jsx(Lne,{asChild:!0,...s,focusable:!o,active:u,children:ae.jsx(Ue.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":d,"data-state":u?"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";!u&&!o&&p&&c.onValueChange(n)})})})});Yne.displayName=AT;var IT="TabsContent",Bne=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,forceMount:o,children:a,...c}=e,s=Uv(IT,r),m=FT(s.baseId,n),d=LT(s.baseId,n),u=n===s.value,p=i.useRef(u);return i.useEffect(()=>{const v=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(v)},[]),ae.jsx(ll,{present:o||u,children:({present:v})=>ae.jsx(Ue.div,{"data-state":u?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":m,hidden:!v,id:d,tabIndex:0,...c,ref:t,style:{...e.style,animationDuration:p.current?"0s":void 0},children:v&&a})})});Bne.displayName=IT;function FT(e,t){return`${e}-trigger-${t}`}function LT(e,t){return`${e}-content-${t}`}i.createContext({});i.createContext({});function Kne(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 Sm=1;class Vne{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:Sm++,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 d=>{if(c=["resolve",d],M.isValidElement(d))a=!1,this.create({id:n,type:"default",message:d});else if(Xne(d)&&!d.ok){a=!1;const u=typeof r.error=="function"?await r.error(`HTTP error! status: ${d.status}`):r.error,p=typeof r.description=="function"?await r.description(`HTTP error! status: ${d.status}`):r.description,v=typeof u=="object"&&!M.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:p,...v})}else if(d instanceof Error){a=!1;const u=typeof r.error=="function"?await r.error(d):r.error,p=typeof r.description=="function"?await r.description(d):r.description,v=typeof u=="object"&&!M.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:p,...v})}else if(r.success!==void 0){a=!1;const u=typeof r.success=="function"?await r.success(d):r.success,p=typeof r.description=="function"?await r.description(d):r.description,v=typeof u=="object"&&!M.isValidElement(u)?u:{message:u};this.create({id:n,type:"success",description:p,...v})}}).catch(async d=>{if(c=["reject",d],r.error!==void 0){a=!1;const u=typeof r.error=="function"?await r.error(d):r.error,p=typeof r.description=="function"?await r.description(d):r.description,v=typeof u=="object"&&!M.isValidElement(u)?u:{message:u};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((d,u)=>s.then(()=>c[0]==="reject"?u(c[1]):d(c[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:m}:Object.assign(n,{unwrap:m})},this.custom=(t,r)=>{const n=r?.id||Sm++;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 Ge=new Vne,Hne=(e,t)=>{const r=t?.id||Sm++;return Ge.addToast({title:e,...t,id:r}),r},Xne=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",Gne=Hne,qne=()=>Ge.toasts,Zne=()=>Ge.getActiveToasts();Object.assign(Gne,{success:Ge.success,info:Ge.info,warning:Ge.warning,error:Ge.error,custom:Ge.custom,message:Ge.message,promise:Ge.promise,dismiss:Ge.dismiss,loading:Ge.loading},{getHistory:qne,getToasts:Zne});Kne("[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 Jne(e){const t=e+"CollectionProvider",[r,n]=sl(t),[o,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),c=l=>{const{scope:g,children:y}=l,b=M.useRef(null),w=M.useRef(new Map).current;return oe.jsx(o,{scope:g,itemMap:w,collectionRef:b,children:y})};c.displayName=t;const s=e+"CollectionSlot",m=Z.createSlot(s),d=M.forwardRef((l,g)=>{const{scope:y,children:b}=l,w=a(s,y),k=Ot(g,w.collectionRef);return oe.jsx(m,{ref:k,children:b})});d.displayName=s;const u=e+"CollectionItemSlot",p="data-radix-collection-item",v=Z.createSlot(u),h=M.forwardRef((l,g)=>{const{scope:y,children:b,...w}=l,k=M.useRef(null),S=Ot(g,k),T=a(u,y);return M.useEffect(()=>(T.itemMap.set(k,{ref:k,...w}),()=>void T.itemMap.delete(k))),oe.jsx(v,{[p]:"",ref:S,children:b})});h.displayName=u;function E(l){const g=a(e+"CollectionConsumer",l);return M.useCallback(()=>{const y=g.collectionRef.current;if(!y)return[];const b=Array.from(y.querySelectorAll(`[${p}]`));return Array.from(g.itemMap.values()).sort((w,k)=>b.indexOf(w.ref.current)-b.indexOf(k.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:c,Slot:d,ItemSlot:h},E,n]}var Qne=i.createContext(void 0);function WT(e){const t=i.useContext(Qne);return e||t||"ltr"}var hp="rovingFocusGroup.onEntryFocus",eoe={bubbles:!1,cancelable:!0},ls="RovingFocusGroup",[Rm,zT,toe]=Jne(ls),[roe,$T]=sl(ls,[toe]),[noe,ooe]=roe(ls),UT=i.forwardRef((e,t)=>oe.jsx(Rm.Provider,{scope:e.__scopeRovingFocusGroup,children:oe.jsx(Rm.Slot,{scope:e.__scopeRovingFocusGroup,children:oe.jsx(aoe,{...e,ref:t})})}));UT.displayName=ls;var aoe=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:a,currentTabStopId:c,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:m,onEntryFocus:d,preventScrollOnEntryFocus:u=!1,...p}=e,v=i.useRef(null),h=Ot(t,v),E=WT(a),[l,g]=zR({prop:c,defaultProp:s??null,onChange:m,caller:ls}),[y,b]=i.useState(!1),w=ta(d),k=zT(r),S=i.useRef(!1),[T,C]=i.useState(0);return i.useEffect(()=>{const j=v.current;if(j)return j.addEventListener(hp,w),()=>j.removeEventListener(hp,w)},[w]),oe.jsx(noe,{scope:r,orientation:n,dir:E,loop:o,currentTabStopId:l,onItemFocus:i.useCallback(j=>g(j),[g]),onItemShiftTab:i.useCallback(()=>b(!0),[]),onFocusableItemAdd:i.useCallback(()=>C(j=>j+1),[]),onFocusableItemRemove:i.useCallback(()=>C(j=>j-1),[]),children:oe.jsx($e.div,{tabIndex:y||T===0?-1:0,"data-orientation":n,...p,ref:h,style:{outline:"none",...e.style},onMouseDown:De(e.onMouseDown,()=>{S.current=!0}),onFocus:De(e.onFocus,j=>{const O=!S.current;if(j.target===j.currentTarget&&O&&!y){const L=new CustomEvent(hp,eoe);if(j.currentTarget.dispatchEvent(L),!L.defaultPrevented){const I=k().filter(P=>P.focusable),B=I.find(P=>P.active),K=I.find(P=>P.id===l),$=[B,K,...I].filter(Boolean).map(P=>P.ref.current);KT($,u)}}S.current=!1}),onBlur:De(e.onBlur,()=>b(!1))})})}),YT="RovingFocusGroupItem",BT=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:a,children:c,...s}=e,m=WR(),d=a||m,u=ooe(YT,r),p=u.currentTabStopId===d,v=zT(r),{onFocusableItemAdd:h,onFocusableItemRemove:E,currentTabStopId:l}=u;return i.useEffect(()=>{if(n)return h(),()=>E()},[n,h,E]),oe.jsx(Rm.ItemSlot,{scope:r,id:d,focusable:n,active:o,children:oe.jsx($e.span,{tabIndex:p?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:De(e.onMouseDown,g=>{n?u.onItemFocus(d):g.preventDefault()}),onFocus:De(e.onFocus,()=>u.onItemFocus(d)),onKeyDown:De(e.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){u.onItemShiftTab();return}if(g.target!==g.currentTarget)return;const y=coe(g,u.orientation,u.dir);if(y!==void 0){if(g.metaKey||g.ctrlKey||g.altKey||g.shiftKey)return;g.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(g.currentTarget);b=u.loop?uoe(b,w+1):b.slice(w+1)}setTimeout(()=>KT(b))}}),children:typeof c=="function"?c({isCurrentTabStop:p,hasTabStop:l!=null}):c})})});BT.displayName=YT;var soe={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function ioe(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function coe(e,t,r){const n=ioe(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return soe[n]}function KT(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function uoe(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var loe=UT,doe=BT,kl="Tabs",[foe]=sl(kl,[$T]),VT=$T(),[poe,Yv]=foe(kl),moe=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,onValueChange:o,defaultValue:a,orientation:c="horizontal",dir:s,activationMode:m="automatic",...d}=e,u=WT(s),[p,v]=zR({prop:n,onChange:o,defaultProp:a??"",caller:kl});return oe.jsx(poe,{scope:r,baseId:WR(),value:p,onValueChange:v,orientation:c,dir:u,activationMode:m,children:oe.jsx($e.div,{dir:u,"data-orientation":c,...d,ref:t})})});moe.displayName=kl;var HT="TabsList",voe=i.forwardRef((e,t)=>{const{__scopeTabs:r,loop:n=!0,...o}=e,a=Yv(HT,r),c=VT(r);return oe.jsx(loe,{asChild:!0,...c,orientation:a.orientation,dir:a.dir,loop:n,children:oe.jsx($e.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});voe.displayName=HT;var XT="TabsTrigger",goe=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,disabled:o=!1,...a}=e,c=Yv(XT,r),s=VT(r),m=qT(c.baseId,n),d=ZT(c.baseId,n),u=n===c.value;return oe.jsx(doe,{asChild:!0,...s,focusable:!o,active:u,children:oe.jsx($e.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":d,"data-state":u?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:m,...a,ref:t,onMouseDown:De(e.onMouseDown,p=>{!o&&p.button===0&&p.ctrlKey===!1?c.onValueChange(n):p.preventDefault()}),onKeyDown:De(e.onKeyDown,p=>{[" ","Enter"].includes(p.key)&&c.onValueChange(n)}),onFocus:De(e.onFocus,()=>{const p=c.activationMode!=="manual";!u&&!o&&p&&c.onValueChange(n)})})})});goe.displayName=XT;var GT="TabsContent",hoe=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,forceMount:o,children:a,...c}=e,s=Yv(GT,r),m=qT(s.baseId,n),d=ZT(s.baseId,n),u=n===s.value,p=i.useRef(u);return i.useEffect(()=>{const v=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(v)},[]),oe.jsx(il,{present:o||u,children:({present:v})=>oe.jsx($e.div,{"data-state":u?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":m,hidden:!v,id:d,tabIndex:0,...c,ref:t,style:{...e.style,animationDuration:p.current?"0s":void 0},children:v&&a})})});hoe.displayName=GT;function qT(e,t){return`${e}-trigger-${t}`}function ZT(e,t){return`${e}-content-${t}`}i.createContext({});i.createContext({});function yoe(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 jm=1;class boe{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:jm++,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 d=>{if(c=["resolve",d],M.isValidElement(d))a=!1,this.create({id:n,type:"default",message:d});else if(xoe(d)&&!d.ok){a=!1;const u=typeof r.error=="function"?await r.error(`HTTP error! status: ${d.status}`):r.error,p=typeof r.description=="function"?await r.description(`HTTP error! status: ${d.status}`):r.description,v=typeof u=="object"&&!M.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:p,...v})}else if(d instanceof Error){a=!1;const u=typeof r.error=="function"?await r.error(d):r.error,p=typeof r.description=="function"?await r.description(d):r.description,v=typeof u=="object"&&!M.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:p,...v})}else if(r.success!==void 0){a=!1;const u=typeof r.success=="function"?await r.success(d):r.success,p=typeof r.description=="function"?await r.description(d):r.description,v=typeof u=="object"&&!M.isValidElement(u)?u:{message:u};this.create({id:n,type:"success",description:p,...v})}}).catch(async d=>{if(c=["reject",d],r.error!==void 0){a=!1;const u=typeof r.error=="function"?await r.error(d):r.error,p=typeof r.description=="function"?await r.description(d):r.description,v=typeof u=="object"&&!M.isValidElement(u)?u:{message:u};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((d,u)=>s.then(()=>c[0]==="reject"?u(c[1]):d(c[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:m}:Object.assign(n,{unwrap:m})},this.custom=(t,r)=>{const n=r?.id||jm++;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 boe,woe=(e,t)=>{const r=t?.id||jm++;return qe.addToast({title:e,...t,id:r}),r},xoe=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",Eoe=woe,koe=()=>qe.toasts,Coe=()=>qe.getActiveToasts();Object.assign(Eoe,{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:koe,getToasts:Coe});yoe("[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 Soe(e){const t=e+"CollectionProvider",[r,n]=nl(t),[o,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),c=l=>{const{scope:g,children:y}=l,b=M.useRef(null),w=M.useRef(new Map).current;return ne.jsx(o,{scope:g,itemMap:w,collectionRef:b,children:y})};c.displayName=t;const s=e+"CollectionSlot",m=Z.createSlot(s),d=M.forwardRef((l,g)=>{const{scope:y,children:b}=l,w=a(s,y),k=_t(g,w.collectionRef);return ne.jsx(m,{ref:k,children:b})});d.displayName=s;const u=e+"CollectionItemSlot",p="data-radix-collection-item",v=Z.createSlot(u),h=M.forwardRef((l,g)=>{const{scope:y,children:b,...w}=l,k=M.useRef(null),S=_t(g,k),T=a(u,y);return M.useEffect(()=>(T.itemMap.set(k,{ref:k,...w}),()=>void T.itemMap.delete(k))),ne.jsx(v,{[p]:"",ref:S,children:b})});h.displayName=u;function E(l){const g=a(e+"CollectionConsumer",l);return M.useCallback(()=>{const y=g.collectionRef.current;if(!y)return[];const b=Array.from(y.querySelectorAll(`[${p}]`));return Array.from(g.itemMap.values()).sort((w,k)=>b.indexOf(w.ref.current)-b.indexOf(k.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:c,Slot:d,ItemSlot:h},E,n]}var Roe=i.createContext(void 0);function JT(e){const t=i.useContext(Roe);return e||t||"ltr"}var yp="rovingFocusGroup.onEntryFocus",joe={bubbles:!1,cancelable:!0},ds="RovingFocusGroup",[Nm,QT,Noe]=Soe(ds),[Toe,eD]=nl(ds,[Noe]),[Doe,_oe]=Toe(ds),tD=i.forwardRef((e,t)=>ne.jsx(Nm.Provider,{scope:e.__scopeRovingFocusGroup,children:ne.jsx(Nm.Slot,{scope:e.__scopeRovingFocusGroup,children:ne.jsx(Ooe,{...e,ref:t})})}));tD.displayName=ds;var Ooe=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:a,currentTabStopId:c,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:m,onEntryFocus:d,preventScrollOnEntryFocus:u=!1,...p}=e,v=i.useRef(null),h=_t(t,v),E=JT(a),[l,g]=vR({prop:c,defaultProp:s??null,onChange:m,caller:ds}),[y,b]=i.useState(!1),w=ea(d),k=QT(r),S=i.useRef(!1),[T,C]=i.useState(0);return i.useEffect(()=>{const j=v.current;if(j)return j.addEventListener(yp,w),()=>j.removeEventListener(yp,w)},[w]),ne.jsx(Doe,{scope:r,orientation:n,dir:E,loop:o,currentTabStopId:l,onItemFocus:i.useCallback(j=>g(j),[g]),onItemShiftTab:i.useCallback(()=>b(!0),[]),onFocusableItemAdd:i.useCallback(()=>C(j=>j+1),[]),onFocusableItemRemove:i.useCallback(()=>C(j=>j-1),[]),children:ne.jsx(ze.div,{tabIndex:y||T===0?-1:0,"data-orientation":n,...p,ref:h,style:{outline:"none",...e.style},onMouseDown:Te(e.onMouseDown,()=>{S.current=!0}),onFocus:Te(e.onFocus,j=>{const O=!S.current;if(j.target===j.currentTarget&&O&&!y){const L=new CustomEvent(yp,joe);if(j.currentTarget.dispatchEvent(L),!L.defaultPrevented){const I=k().filter(P=>P.focusable),B=I.find(P=>P.active),K=I.find(P=>P.id===l),$=[B,K,...I].filter(Boolean).map(P=>P.ref.current);oD($,u)}}S.current=!1}),onBlur:Te(e.onBlur,()=>b(!1))})})}),rD="RovingFocusGroupItem",nD=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:a,children:c,...s}=e,m=mR(),d=a||m,u=_oe(rD,r),p=u.currentTabStopId===d,v=QT(r),{onFocusableItemAdd:h,onFocusableItemRemove:E,currentTabStopId:l}=u;return i.useEffect(()=>{if(n)return h(),()=>E()},[n,h,E]),ne.jsx(Nm.ItemSlot,{scope:r,id:d,focusable:n,active:o,children:ne.jsx(ze.span,{tabIndex:p?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:Te(e.onMouseDown,g=>{n?u.onItemFocus(d):g.preventDefault()}),onFocus:Te(e.onFocus,()=>u.onItemFocus(d)),onKeyDown:Te(e.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){u.onItemShiftTab();return}if(g.target!==g.currentTarget)return;const y=Aoe(g,u.orientation,u.dir);if(y!==void 0){if(g.metaKey||g.ctrlKey||g.altKey||g.shiftKey)return;g.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(g.currentTarget);b=u.loop?Ioe(b,w+1):b.slice(w+1)}setTimeout(()=>oD(b))}}),children:typeof c=="function"?c({isCurrentTabStop:p,hasTabStop:l!=null}):c})})});nD.displayName=rD;var Poe={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Moe(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Aoe(e,t,r){const n=Moe(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return Poe[n]}function oD(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function Ioe(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var Foe=tD,Loe=nD,Cl="Tabs",[Woe]=nl(Cl,[eD]),aD=eD(),[zoe,Bv]=Woe(Cl),$oe=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,onValueChange:o,defaultValue:a,orientation:c="horizontal",dir:s,activationMode:m="automatic",...d}=e,u=JT(s),[p,v]=vR({prop:n,onChange:o,defaultProp:a??"",caller:Cl});return ne.jsx(zoe,{scope:r,baseId:mR(),value:p,onValueChange:v,orientation:c,dir:u,activationMode:m,children:ne.jsx(ze.div,{dir:u,"data-orientation":c,...d,ref:t})})});$oe.displayName=Cl;var sD="TabsList",Uoe=i.forwardRef((e,t)=>{const{__scopeTabs:r,loop:n=!0,...o}=e,a=Bv(sD,r),c=aD(r);return ne.jsx(Foe,{asChild:!0,...c,orientation:a.orientation,dir:a.dir,loop:n,children:ne.jsx(ze.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});Uoe.displayName=sD;var iD="TabsTrigger",Yoe=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,disabled:o=!1,...a}=e,c=Bv(iD,r),s=aD(r),m=uD(c.baseId,n),d=lD(c.baseId,n),u=n===c.value;return ne.jsx(Loe,{asChild:!0,...s,focusable:!o,active:u,children:ne.jsx(ze.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":d,"data-state":u?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:m,...a,ref:t,onMouseDown:Te(e.onMouseDown,p=>{!o&&p.button===0&&p.ctrlKey===!1?c.onValueChange(n):p.preventDefault()}),onKeyDown:Te(e.onKeyDown,p=>{[" ","Enter"].includes(p.key)&&c.onValueChange(n)}),onFocus:Te(e.onFocus,()=>{const p=c.activationMode!=="manual";!u&&!o&&p&&c.onValueChange(n)})})})});Yoe.displayName=iD;var cD="TabsContent",Boe=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,forceMount:o,children:a,...c}=e,s=Bv(cD,r),m=uD(s.baseId,n),d=lD(s.baseId,n),u=n===s.value,p=i.useRef(u);return i.useEffect(()=>{const v=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(v)},[]),ne.jsx(ol,{present:o||u,children:({present:v})=>ne.jsx(ze.div,{"data-state":u?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":m,hidden:!v,id:d,tabIndex:0,...c,ref:t,style:{...e.style,animationDuration:p.current?"0s":void 0},children:v&&a})})});Boe.displayName=cD;function uD(e,t){return`${e}-trigger-${t}`}function lD(e,t){return`${e}-content-${t}`}i.createContext({});i.createContext({});function Koe(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 Tm=1;class Voe{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:Tm++,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 d=>{if(c=["resolve",d],M.isValidElement(d))a=!1,this.create({id:n,type:"default",message:d});else if(Xoe(d)&&!d.ok){a=!1;const u=typeof r.error=="function"?await r.error(`HTTP error! status: ${d.status}`):r.error,p=typeof r.description=="function"?await r.description(`HTTP error! status: ${d.status}`):r.description,v=typeof u=="object"&&!M.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:p,...v})}else if(d instanceof Error){a=!1;const u=typeof r.error=="function"?await r.error(d):r.error,p=typeof r.description=="function"?await r.description(d):r.description,v=typeof u=="object"&&!M.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:p,...v})}else if(r.success!==void 0){a=!1;const u=typeof r.success=="function"?await r.success(d):r.success,p=typeof r.description=="function"?await r.description(d):r.description,v=typeof u=="object"&&!M.isValidElement(u)?u:{message:u};this.create({id:n,type:"success",description:p,...v})}}).catch(async d=>{if(c=["reject",d],r.error!==void 0){a=!1;const u=typeof r.error=="function"?await r.error(d):r.error,p=typeof r.description=="function"?await r.description(d):r.description,v=typeof u=="object"&&!M.isValidElement(u)?u:{message:u};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((d,u)=>s.then(()=>c[0]==="reject"?u(c[1]):d(c[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:m}:Object.assign(n,{unwrap:m})},this.custom=(t,r)=>{const n=r?.id||Tm++;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 Voe,Hoe=(e,t)=>{const r=t?.id||Tm++;return Ze.addToast({title:e,...t,id:r}),r},Xoe=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",Goe=Hoe,qoe=()=>Ze.toasts,Zoe=()=>Ze.getActiveToasts();Object.assign(Goe,{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:qoe,getToasts:Zoe});Koe("[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 Joe(e){const t=e+"CollectionProvider",[r,n]=el(t),[o,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),c=l=>{const{scope:g,children:y}=l,b=M.useRef(null),w=M.useRef(new Map).current;return re.jsx(o,{scope:g,itemMap:w,collectionRef:b,children:y})};c.displayName=t;const s=e+"CollectionSlot",m=Z.createSlot(s),d=M.forwardRef((l,g)=>{const{scope:y,children:b}=l,w=a(s,y),k=Dt(g,w.collectionRef);return re.jsx(m,{ref:k,children:b})});d.displayName=s;const u=e+"CollectionItemSlot",p="data-radix-collection-item",v=Z.createSlot(u),h=M.forwardRef((l,g)=>{const{scope:y,children:b,...w}=l,k=M.useRef(null),S=Dt(g,k),T=a(u,y);return M.useEffect(()=>(T.itemMap.set(k,{ref:k,...w}),()=>void T.itemMap.delete(k))),re.jsx(v,{[p]:"",ref:S,children:b})});h.displayName=u;function E(l){const g=a(e+"CollectionConsumer",l);return M.useCallback(()=>{const y=g.collectionRef.current;if(!y)return[];const b=Array.from(y.querySelectorAll(`[${p}]`));return Array.from(g.itemMap.values()).sort((w,k)=>b.indexOf(w.ref.current)-b.indexOf(k.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:c,Slot:d,ItemSlot:h},E,n]}var Qoe=i.createContext(void 0);function dD(e){const t=i.useContext(Qoe);return e||t||"ltr"}var bp="rovingFocusGroup.onEntryFocus",eae={bubbles:!1,cancelable:!0},fs="RovingFocusGroup",[Dm,fD,tae]=Joe(fs),[rae,pD]=el(fs,[tae]),[nae,oae]=rae(fs),mD=i.forwardRef((e,t)=>re.jsx(Dm.Provider,{scope:e.__scopeRovingFocusGroup,children:re.jsx(Dm.Slot,{scope:e.__scopeRovingFocusGroup,children:re.jsx(aae,{...e,ref:t})})}));mD.displayName=fs;var aae=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:a,currentTabStopId:c,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:m,onEntryFocus:d,preventScrollOnEntryFocus:u=!1,...p}=e,v=i.useRef(null),h=Dt(t,v),E=dD(a),[l,g]=BS({prop:c,defaultProp:s??null,onChange:m,caller:fs}),[y,b]=i.useState(!1),w=Qo(d),k=fD(r),S=i.useRef(!1),[T,C]=i.useState(0);return i.useEffect(()=>{const j=v.current;if(j)return j.addEventListener(bp,w),()=>j.removeEventListener(bp,w)},[w]),re.jsx(nae,{scope:r,orientation:n,dir:E,loop:o,currentTabStopId:l,onItemFocus:i.useCallback(j=>g(j),[g]),onItemShiftTab:i.useCallback(()=>b(!0),[]),onFocusableItemAdd:i.useCallback(()=>C(j=>j+1),[]),onFocusableItemRemove:i.useCallback(()=>C(j=>j-1),[]),children:re.jsx(We.div,{tabIndex:y||T===0?-1:0,"data-orientation":n,...p,ref:h,style:{outline:"none",...e.style},onMouseDown:Ne(e.onMouseDown,()=>{S.current=!0}),onFocus:Ne(e.onFocus,j=>{const O=!S.current;if(j.target===j.currentTarget&&O&&!y){const L=new CustomEvent(bp,eae);if(j.currentTarget.dispatchEvent(L),!L.defaultPrevented){const I=k().filter(P=>P.focusable),B=I.find(P=>P.active),K=I.find(P=>P.id===l),$=[B,K,...I].filter(Boolean).map(P=>P.ref.current);hD($,u)}}S.current=!1}),onBlur:Ne(e.onBlur,()=>b(!1))})})}),vD="RovingFocusGroupItem",gD=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:a,children:c,...s}=e,m=YS(),d=a||m,u=oae(vD,r),p=u.currentTabStopId===d,v=fD(r),{onFocusableItemAdd:h,onFocusableItemRemove:E,currentTabStopId:l}=u;return i.useEffect(()=>{if(n)return h(),()=>E()},[n,h,E]),re.jsx(Dm.ItemSlot,{scope:r,id:d,focusable:n,active:o,children:re.jsx(We.span,{tabIndex:p?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:Ne(e.onMouseDown,g=>{n?u.onItemFocus(d):g.preventDefault()}),onFocus:Ne(e.onFocus,()=>u.onItemFocus(d)),onKeyDown:Ne(e.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){u.onItemShiftTab();return}if(g.target!==g.currentTarget)return;const y=cae(g,u.orientation,u.dir);if(y!==void 0){if(g.metaKey||g.ctrlKey||g.altKey||g.shiftKey)return;g.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(g.currentTarget);b=u.loop?uae(b,w+1):b.slice(w+1)}setTimeout(()=>hD(b))}}),children:typeof c=="function"?c({isCurrentTabStop:p,hasTabStop:l!=null}):c})})});gD.displayName=vD;var sae={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function iae(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function cae(e,t,r){const n=iae(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return sae[n]}function hD(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function uae(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var lae=mD,dae=gD,Sl="Tabs",[fae]=el(Sl,[pD]),yD=pD(),[pae,Kv]=fae(Sl),mae=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,onValueChange:o,defaultValue:a,orientation:c="horizontal",dir:s,activationMode:m="automatic",...d}=e,u=dD(s),[p,v]=BS({prop:n,onChange:o,defaultProp:a??"",caller:Sl});return re.jsx(pae,{scope:r,baseId:YS(),value:p,onValueChange:v,orientation:c,dir:u,activationMode:m,children:re.jsx(We.div,{dir:u,"data-orientation":c,...d,ref:t})})});mae.displayName=Sl;var bD="TabsList",vae=i.forwardRef((e,t)=>{const{__scopeTabs:r,loop:n=!0,...o}=e,a=Kv(bD,r),c=yD(r);return re.jsx(lae,{asChild:!0,...c,orientation:a.orientation,dir:a.dir,loop:n,children:re.jsx(We.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});vae.displayName=bD;var wD="TabsTrigger",gae=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,disabled:o=!1,...a}=e,c=Kv(wD,r),s=yD(r),m=ED(c.baseId,n),d=kD(c.baseId,n),u=n===c.value;return re.jsx(dae,{asChild:!0,...s,focusable:!o,active:u,children:re.jsx(We.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":d,"data-state":u?"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";!u&&!o&&p&&c.onValueChange(n)})})})});gae.displayName=wD;var xD="TabsContent",hae=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,forceMount:o,children:a,...c}=e,s=Kv(xD,r),m=ED(s.baseId,n),d=kD(s.baseId,n),u=n===s.value,p=i.useRef(u);return i.useEffect(()=>{const v=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(v)},[]),re.jsx(tl,{present:o||u,children:({present:v})=>re.jsx(We.div,{"data-state":u?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":m,hidden:!v,id:d,tabIndex:0,...c,ref:t,style:{...e.style,animationDuration:p.current?"0s":void 0},children:v&&a})})});hae.displayName=xD;function ED(e,t){return`${e}-trigger-${t}`}function kD(e,t){return`${e}-content-${t}`}i.createContext({});i.createContext({});function yae(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 _m=1;class bae{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:_m++,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 d=>{if(c=["resolve",d],M.isValidElement(d))a=!1,this.create({id:n,type:"default",message:d});else if(xae(d)&&!d.ok){a=!1;const u=typeof r.error=="function"?await r.error(`HTTP error! status: ${d.status}`):r.error,p=typeof r.description=="function"?await r.description(`HTTP error! status: ${d.status}`):r.description,v=typeof u=="object"&&!M.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:p,...v})}else if(d instanceof Error){a=!1;const u=typeof r.error=="function"?await r.error(d):r.error,p=typeof r.description=="function"?await r.description(d):r.description,v=typeof u=="object"&&!M.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:p,...v})}else if(r.success!==void 0){a=!1;const u=typeof r.success=="function"?await r.success(d):r.success,p=typeof r.description=="function"?await r.description(d):r.description,v=typeof u=="object"&&!M.isValidElement(u)?u:{message:u};this.create({id:n,type:"success",description:p,...v})}}).catch(async d=>{if(c=["reject",d],r.error!==void 0){a=!1;const u=typeof r.error=="function"?await r.error(d):r.error,p=typeof r.description=="function"?await r.description(d):r.description,v=typeof u=="object"&&!M.isValidElement(u)?u:{message:u};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((d,u)=>s.then(()=>c[0]==="reject"?u(c[1]):d(c[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:m}:Object.assign(n,{unwrap:m})},this.custom=(t,r)=>{const n=r?.id||_m++;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 Je=new bae,wae=(e,t)=>{const r=t?.id||_m++;return Je.addToast({title:e,...t,id:r}),r},xae=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",Eae=wae,kae=()=>Je.toasts,Cae=()=>Je.getActiveToasts();Object.assign(Eae,{success:Je.success,info:Je.info,warning:Je.warning,error:Je.error,custom:Je.custom,message:Je.message,promise:Je.promise,dismiss:Je.dismiss,loading:Je.loading},{getHistory:kae,getToasts:Cae});yae("[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 Sae(e){const t=e+"CollectionProvider",[r,n]=Zu(t),[o,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),c=l=>{const{scope:g,children:y}=l,b=M.useRef(null),w=M.useRef(new Map).current;return te.jsx(o,{scope:g,itemMap:w,collectionRef:b,children:y})};c.displayName=t;const s=e+"CollectionSlot",m=Z.createSlot(s),d=M.forwardRef((l,g)=>{const{scope:y,children:b}=l,w=a(s,y),k=Tt(g,w.collectionRef);return te.jsx(m,{ref:k,children:b})});d.displayName=s;const u=e+"CollectionItemSlot",p="data-radix-collection-item",v=Z.createSlot(u),h=M.forwardRef((l,g)=>{const{scope:y,children:b,...w}=l,k=M.useRef(null),S=Tt(g,k),T=a(u,y);return M.useEffect(()=>(T.itemMap.set(k,{ref:k,...w}),()=>void T.itemMap.delete(k))),te.jsx(v,{[p]:"",ref:S,children:b})});h.displayName=u;function E(l){const g=a(e+"CollectionConsumer",l);return M.useCallback(()=>{const y=g.collectionRef.current;if(!y)return[];const b=Array.from(y.querySelectorAll(`[${p}]`));return Array.from(g.itemMap.values()).sort((w,k)=>b.indexOf(w.ref.current)-b.indexOf(k.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:c,Slot:d,ItemSlot:h},E,n]}var Rae=i.createContext(void 0);function CD(e){const t=i.useContext(Rae);return e||t||"ltr"}var wp="rovingFocusGroup.onEntryFocus",jae={bubbles:!1,cancelable:!0},ps="RovingFocusGroup",[Om,SD,Nae]=Sae(ps),[Tae,RD]=Zu(ps,[Nae]),[Dae,_ae]=Tae(ps),jD=i.forwardRef((e,t)=>te.jsx(Om.Provider,{scope:e.__scopeRovingFocusGroup,children:te.jsx(Om.Slot,{scope:e.__scopeRovingFocusGroup,children:te.jsx(Oae,{...e,ref:t})})}));jD.displayName=ps;var Oae=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:a,currentTabStopId:c,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:m,onEntryFocus:d,preventScrollOnEntryFocus:u=!1,...p}=e,v=i.useRef(null),h=Tt(t,v),E=CD(a),[l,g]=bS({prop:c,defaultProp:s??null,onChange:m,caller:ps}),[y,b]=i.useState(!1),w=Jo(d),k=SD(r),S=i.useRef(!1),[T,C]=i.useState(0);return i.useEffect(()=>{const j=v.current;if(j)return j.addEventListener(wp,w),()=>j.removeEventListener(wp,w)},[w]),te.jsx(Dae,{scope:r,orientation:n,dir:E,loop:o,currentTabStopId:l,onItemFocus:i.useCallback(j=>g(j),[g]),onItemShiftTab:i.useCallback(()=>b(!0),[]),onFocusableItemAdd:i.useCallback(()=>C(j=>j+1),[]),onFocusableItemRemove:i.useCallback(()=>C(j=>j-1),[]),children:te.jsx(Le.div,{tabIndex:y||T===0?-1:0,"data-orientation":n,...p,ref:h,style:{outline:"none",...e.style},onMouseDown:je(e.onMouseDown,()=>{S.current=!0}),onFocus:je(e.onFocus,j=>{const O=!S.current;if(j.target===j.currentTarget&&O&&!y){const L=new CustomEvent(wp,jae);if(j.currentTarget.dispatchEvent(L),!L.defaultPrevented){const I=k().filter(P=>P.focusable),B=I.find(P=>P.active),K=I.find(P=>P.id===l),$=[B,K,...I].filter(Boolean).map(P=>P.ref.current);DD($,u)}}S.current=!1}),onBlur:je(e.onBlur,()=>b(!1))})})}),ND="RovingFocusGroupItem",TD=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:a,children:c,...s}=e,m=yS(),d=a||m,u=_ae(ND,r),p=u.currentTabStopId===d,v=SD(r),{onFocusableItemAdd:h,onFocusableItemRemove:E,currentTabStopId:l}=u;return i.useEffect(()=>{if(n)return h(),()=>E()},[n,h,E]),te.jsx(Om.ItemSlot,{scope:r,id:d,focusable:n,active:o,children:te.jsx(Le.span,{tabIndex:p?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:je(e.onMouseDown,g=>{n?u.onItemFocus(d):g.preventDefault()}),onFocus:je(e.onFocus,()=>u.onItemFocus(d)),onKeyDown:je(e.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){u.onItemShiftTab();return}if(g.target!==g.currentTarget)return;const y=Aae(g,u.orientation,u.dir);if(y!==void 0){if(g.metaKey||g.ctrlKey||g.altKey||g.shiftKey)return;g.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(g.currentTarget);b=u.loop?Iae(b,w+1):b.slice(w+1)}setTimeout(()=>DD(b))}}),children:typeof c=="function"?c({isCurrentTabStop:p,hasTabStop:l!=null}):c})})});TD.displayName=ND;var Pae={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Mae(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Aae(e,t,r){const n=Mae(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return Pae[n]}function DD(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function Iae(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var Fae=jD,Lae=TD,Rl="Tabs",[Wae]=Zu(Rl,[RD]),_D=RD(),[zae,Vv]=Wae(Rl),$ae=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,onValueChange:o,defaultValue:a,orientation:c="horizontal",dir:s,activationMode:m="automatic",...d}=e,u=CD(s),[p,v]=bS({prop:n,onChange:o,defaultProp:a??"",caller:Rl});return te.jsx(zae,{scope:r,baseId:yS(),value:p,onValueChange:v,orientation:c,dir:u,activationMode:m,children:te.jsx(Le.div,{dir:u,"data-orientation":c,...d,ref:t})})});$ae.displayName=Rl;var OD="TabsList",Uae=i.forwardRef((e,t)=>{const{__scopeTabs:r,loop:n=!0,...o}=e,a=Vv(OD,r),c=_D(r);return te.jsx(Fae,{asChild:!0,...c,orientation:a.orientation,dir:a.dir,loop:n,children:te.jsx(Le.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});Uae.displayName=OD;var PD="TabsTrigger",Yae=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,disabled:o=!1,...a}=e,c=Vv(PD,r),s=_D(r),m=AD(c.baseId,n),d=ID(c.baseId,n),u=n===c.value;return te.jsx(Lae,{asChild:!0,...s,focusable:!o,active:u,children:te.jsx(Le.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":d,"data-state":u?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:m,...a,ref:t,onMouseDown:je(e.onMouseDown,p=>{!o&&p.button===0&&p.ctrlKey===!1?c.onValueChange(n):p.preventDefault()}),onKeyDown:je(e.onKeyDown,p=>{[" ","Enter"].includes(p.key)&&c.onValueChange(n)}),onFocus:je(e.onFocus,()=>{const p=c.activationMode!=="manual";!u&&!o&&p&&c.onValueChange(n)})})})});Yae.displayName=PD;var MD="TabsContent",Bae=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,forceMount:o,children:a,...c}=e,s=Vv(MD,r),m=AD(s.baseId,n),d=ID(s.baseId,n),u=n===s.value,p=i.useRef(u);return i.useEffect(()=>{const v=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(v)},[]),te.jsx(Ju,{present:o||u,children:({present:v})=>te.jsx(Le.div,{"data-state":u?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":m,hidden:!v,id:d,tabIndex:0,...c,ref:t,style:{...e.style,animationDuration:p.current?"0s":void 0},children:v&&a})})});Bae.displayName=MD;function AD(e,t){return`${e}-trigger-${t}`}function ID(e,t){return`${e}-content-${t}`}i.createContext({});i.createContext({});function Kae(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 Pm=1;class Vae{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:Pm++,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 d=>{if(c=["resolve",d],M.isValidElement(d))a=!1,this.create({id:n,type:"default",message:d});else if(Xae(d)&&!d.ok){a=!1;const u=typeof r.error=="function"?await r.error(`HTTP error! status: ${d.status}`):r.error,p=typeof r.description=="function"?await r.description(`HTTP error! status: ${d.status}`):r.description,v=typeof u=="object"&&!M.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:p,...v})}else if(d instanceof Error){a=!1;const u=typeof r.error=="function"?await r.error(d):r.error,p=typeof r.description=="function"?await r.description(d):r.description,v=typeof u=="object"&&!M.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:p,...v})}else if(r.success!==void 0){a=!1;const u=typeof r.success=="function"?await r.success(d):r.success,p=typeof r.description=="function"?await r.description(d):r.description,v=typeof u=="object"&&!M.isValidElement(u)?u:{message:u};this.create({id:n,type:"success",description:p,...v})}}).catch(async d=>{if(c=["reject",d],r.error!==void 0){a=!1;const u=typeof r.error=="function"?await r.error(d):r.error,p=typeof r.description=="function"?await r.description(d):r.description,v=typeof u=="object"&&!M.isValidElement(u)?u:{message:u};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((d,u)=>s.then(()=>c[0]==="reject"?u(c[1]):d(c[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:m}:Object.assign(n,{unwrap:m})},this.custom=(t,r)=>{const n=r?.id||Pm++;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 Vae,Hae=(e,t)=>{const r=t?.id||Pm++;return Qe.addToast({title:e,...t,id:r}),r},Xae=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",Gae=Hae,qae=()=>Qe.toasts,Zae=()=>Qe.getActiveToasts();Object.assign(Gae,{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:qae,getToasts:Zae});Kae("[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 Jae(e){const t=e+"CollectionProvider",[r,n]=Xu(t),[o,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),c=l=>{const{scope:g,children:y}=l,b=M.useRef(null),w=M.useRef(new Map).current;return ee.jsx(o,{scope:g,itemMap:w,collectionRef:b,children:y})};c.displayName=t;const s=e+"CollectionSlot",m=Z.createSlot(s),d=M.forwardRef((l,g)=>{const{scope:y,children:b}=l,w=a(s,y),k=Nt(g,w.collectionRef);return ee.jsx(m,{ref:k,children:b})});d.displayName=s;const u=e+"CollectionItemSlot",p="data-radix-collection-item",v=Z.createSlot(u),h=M.forwardRef((l,g)=>{const{scope:y,children:b,...w}=l,k=M.useRef(null),S=Nt(g,k),T=a(u,y);return M.useEffect(()=>(T.itemMap.set(k,{ref:k,...w}),()=>void T.itemMap.delete(k))),ee.jsx(v,{[p]:"",ref:S,children:b})});h.displayName=u;function E(l){const g=a(e+"CollectionConsumer",l);return M.useCallback(()=>{const y=g.collectionRef.current;if(!y)return[];const b=Array.from(y.querySelectorAll(`[${p}]`));return Array.from(g.itemMap.values()).sort((w,k)=>b.indexOf(w.ref.current)-b.indexOf(k.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:c,Slot:d,ItemSlot:h},E,n]}var Qae=i.createContext(void 0);function FD(e){const t=i.useContext(Qae);return e||t||"ltr"}var xp="rovingFocusGroup.onEntryFocus",ese={bubbles:!1,cancelable:!0},ms="RovingFocusGroup",[Mm,LD,tse]=Jae(ms),[rse,WD]=Xu(ms,[tse]),[nse,ose]=rse(ms),zD=i.forwardRef((e,t)=>ee.jsx(Mm.Provider,{scope:e.__scopeRovingFocusGroup,children:ee.jsx(Mm.Slot,{scope:e.__scopeRovingFocusGroup,children:ee.jsx(ase,{...e,ref:t})})}));zD.displayName=ms;var ase=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:a,currentTabStopId:c,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:m,onEntryFocus:d,preventScrollOnEntryFocus:u=!1,...p}=e,v=i.useRef(null),h=Nt(t,v),E=FD(a),[l,g]=X1({prop:c,defaultProp:s??null,onChange:m,caller:ms}),[y,b]=i.useState(!1),w=Zo(d),k=LD(r),S=i.useRef(!1),[T,C]=i.useState(0);return i.useEffect(()=>{const j=v.current;if(j)return j.addEventListener(xp,w),()=>j.removeEventListener(xp,w)},[w]),ee.jsx(nse,{scope:r,orientation:n,dir:E,loop:o,currentTabStopId:l,onItemFocus:i.useCallback(j=>g(j),[g]),onItemShiftTab:i.useCallback(()=>b(!0),[]),onFocusableItemAdd:i.useCallback(()=>C(j=>j+1),[]),onFocusableItemRemove:i.useCallback(()=>C(j=>j-1),[]),children:ee.jsx(Fe.div,{tabIndex:y||T===0?-1:0,"data-orientation":n,...p,ref:h,style:{outline:"none",...e.style},onMouseDown:Re(e.onMouseDown,()=>{S.current=!0}),onFocus:Re(e.onFocus,j=>{const O=!S.current;if(j.target===j.currentTarget&&O&&!y){const L=new CustomEvent(xp,ese);if(j.currentTarget.dispatchEvent(L),!L.defaultPrevented){const I=k().filter(P=>P.focusable),B=I.find(P=>P.active),K=I.find(P=>P.id===l),$=[B,K,...I].filter(Boolean).map(P=>P.ref.current);YD($,u)}}S.current=!1}),onBlur:Re(e.onBlur,()=>b(!1))})})}),$D="RovingFocusGroupItem",UD=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:a,children:c,...s}=e,m=H1(),d=a||m,u=ose($D,r),p=u.currentTabStopId===d,v=LD(r),{onFocusableItemAdd:h,onFocusableItemRemove:E,currentTabStopId:l}=u;return i.useEffect(()=>{if(n)return h(),()=>E()},[n,h,E]),ee.jsx(Mm.ItemSlot,{scope:r,id:d,focusable:n,active:o,children:ee.jsx(Fe.span,{tabIndex:p?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:Re(e.onMouseDown,g=>{n?u.onItemFocus(d):g.preventDefault()}),onFocus:Re(e.onFocus,()=>u.onItemFocus(d)),onKeyDown:Re(e.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){u.onItemShiftTab();return}if(g.target!==g.currentTarget)return;const y=cse(g,u.orientation,u.dir);if(y!==void 0){if(g.metaKey||g.ctrlKey||g.altKey||g.shiftKey)return;g.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(g.currentTarget);b=u.loop?use(b,w+1):b.slice(w+1)}setTimeout(()=>YD(b))}}),children:typeof c=="function"?c({isCurrentTabStop:p,hasTabStop:l!=null}):c})})});UD.displayName=$D;var sse={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function ise(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function cse(e,t,r){const n=ise(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return sse[n]}function YD(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function use(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var lse=zD,dse=UD,jl="Tabs",[fse]=Xu(jl,[WD]),BD=WD(),[pse,Hv]=fse(jl),mse=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,onValueChange:o,defaultValue:a,orientation:c="horizontal",dir:s,activationMode:m="automatic",...d}=e,u=FD(s),[p,v]=X1({prop:n,onChange:o,defaultProp:a??"",caller:jl});return ee.jsx(pse,{scope:r,baseId:H1(),value:p,onValueChange:v,orientation:c,dir:u,activationMode:m,children:ee.jsx(Fe.div,{dir:u,"data-orientation":c,...d,ref:t})})});mse.displayName=jl;var KD="TabsList",vse=i.forwardRef((e,t)=>{const{__scopeTabs:r,loop:n=!0,...o}=e,a=Hv(KD,r),c=BD(r);return ee.jsx(lse,{asChild:!0,...c,orientation:a.orientation,dir:a.dir,loop:n,children:ee.jsx(Fe.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});vse.displayName=KD;var VD="TabsTrigger",gse=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,disabled:o=!1,...a}=e,c=Hv(VD,r),s=BD(r),m=XD(c.baseId,n),d=GD(c.baseId,n),u=n===c.value;return ee.jsx(dse,{asChild:!0,...s,focusable:!o,active:u,children:ee.jsx(Fe.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":d,"data-state":u?"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";!u&&!o&&p&&c.onValueChange(n)})})})});gse.displayName=VD;var HD="TabsContent",hse=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,forceMount:o,children:a,...c}=e,s=Hv(HD,r),m=XD(s.baseId,n),d=GD(s.baseId,n),u=n===s.value,p=i.useRef(u);return i.useEffect(()=>{const v=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(v)},[]),ee.jsx(Gu,{present:o||u,children:({present:v})=>ee.jsx(Fe.div,{"data-state":u?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":m,hidden:!v,id:d,tabIndex:0,...c,ref:t,style:{...e.style,animationDuration:p.current?"0s":void 0},children:v&&a})})});hse.displayName=HD;function XD(e,t){return`${e}-trigger-${t}`}function GD(e,t){return`${e}-content-${t}`}i.createContext({});i.createContext({});function yse(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 Am=1;class bse{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:Am++,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 d=>{if(c=["resolve",d],M.isValidElement(d))a=!1,this.create({id:n,type:"default",message:d});else if(xse(d)&&!d.ok){a=!1;const u=typeof r.error=="function"?await r.error(`HTTP error! status: ${d.status}`):r.error,p=typeof r.description=="function"?await r.description(`HTTP error! status: ${d.status}`):r.description,v=typeof u=="object"&&!M.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:p,...v})}else if(d instanceof Error){a=!1;const u=typeof r.error=="function"?await r.error(d):r.error,p=typeof r.description=="function"?await r.description(d):r.description,v=typeof u=="object"&&!M.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:p,...v})}else if(r.success!==void 0){a=!1;const u=typeof r.success=="function"?await r.success(d):r.success,p=typeof r.description=="function"?await r.description(d):r.description,v=typeof u=="object"&&!M.isValidElement(u)?u:{message:u};this.create({id:n,type:"success",description:p,...v})}}).catch(async d=>{if(c=["reject",d],r.error!==void 0){a=!1;const u=typeof r.error=="function"?await r.error(d):r.error,p=typeof r.description=="function"?await r.description(d):r.description,v=typeof u=="object"&&!M.isValidElement(u)?u:{message:u};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((d,u)=>s.then(()=>c[0]==="reject"?u(c[1]):d(c[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:m}:Object.assign(n,{unwrap:m})},this.custom=(t,r)=>{const n=r?.id||Am++;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 et=new bse,wse=(e,t)=>{const r=t?.id||Am++;return et.addToast({title:e,...t,id:r}),r},xse=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",Ese=wse,kse=()=>et.toasts,Cse=()=>et.getActiveToasts();Object.assign(Ese,{success:et.success,info:et.info,warning:et.warning,error:et.error,custom:et.custom,message:et.message,promise:et.promise,dismiss:et.dismiss,loading:et.loading},{getHistory:kse,getToasts:Cse});yse("[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 Sse(e){const t=e+"CollectionProvider",[r,n]=Ku(t),[o,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),c=l=>{const{scope:g,children:y}=l,b=M.useRef(null),w=M.useRef(new Map).current;return Q.jsx(o,{scope:g,itemMap:w,collectionRef:b,children:y})};c.displayName=t;const s=e+"CollectionSlot",m=Z.createSlot(s),d=M.forwardRef((l,g)=>{const{scope:y,children:b}=l,w=a(s,y),k=jt(g,w.collectionRef);return Q.jsx(m,{ref:k,children:b})});d.displayName=s;const u=e+"CollectionItemSlot",p="data-radix-collection-item",v=Z.createSlot(u),h=M.forwardRef((l,g)=>{const{scope:y,children:b,...w}=l,k=M.useRef(null),S=jt(g,k),T=a(u,y);return M.useEffect(()=>(T.itemMap.set(k,{ref:k,...w}),()=>void T.itemMap.delete(k))),Q.jsx(v,{[p]:"",ref:S,children:b})});h.displayName=u;function E(l){const g=a(e+"CollectionConsumer",l);return M.useCallback(()=>{const y=g.collectionRef.current;if(!y)return[];const b=Array.from(y.querySelectorAll(`[${p}]`));return Array.from(g.itemMap.values()).sort((w,k)=>b.indexOf(w.ref.current)-b.indexOf(k.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:c,Slot:d,ItemSlot:h},E,n]}var Rse=i.createContext(void 0);function qD(e){const t=i.useContext(Rse);return e||t||"ltr"}var Ep="rovingFocusGroup.onEntryFocus",jse={bubbles:!1,cancelable:!0},vs="RovingFocusGroup",[Im,ZD,Nse]=Sse(vs),[Tse,JD]=Ku(vs,[Nse]),[Dse,_se]=Tse(vs),QD=i.forwardRef((e,t)=>Q.jsx(Im.Provider,{scope:e.__scopeRovingFocusGroup,children:Q.jsx(Im.Slot,{scope:e.__scopeRovingFocusGroup,children:Q.jsx(Ose,{...e,ref:t})})}));QD.displayName=vs;var Ose=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:a,currentTabStopId:c,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:m,onEntryFocus:d,preventScrollOnEntryFocus:u=!1,...p}=e,v=i.useRef(null),h=jt(t,v),E=qD(a),[l,g]=k1({prop:c,defaultProp:s??null,onChange:m,caller:vs}),[y,b]=i.useState(!1),w=qo(d),k=ZD(r),S=i.useRef(!1),[T,C]=i.useState(0);return i.useEffect(()=>{const j=v.current;if(j)return j.addEventListener(Ep,w),()=>j.removeEventListener(Ep,w)},[w]),Q.jsx(Dse,{scope:r,orientation:n,dir:E,loop:o,currentTabStopId:l,onItemFocus:i.useCallback(j=>g(j),[g]),onItemShiftTab:i.useCallback(()=>b(!0),[]),onFocusableItemAdd:i.useCallback(()=>C(j=>j+1),[]),onFocusableItemRemove:i.useCallback(()=>C(j=>j-1),[]),children:Q.jsx(Ie.div,{tabIndex:y||T===0?-1:0,"data-orientation":n,...p,ref:h,style:{outline:"none",...e.style},onMouseDown:Se(e.onMouseDown,()=>{S.current=!0}),onFocus:Se(e.onFocus,j=>{const O=!S.current;if(j.target===j.currentTarget&&O&&!y){const L=new CustomEvent(Ep,jse);if(j.currentTarget.dispatchEvent(L),!L.defaultPrevented){const I=k().filter(P=>P.focusable),B=I.find(P=>P.active),K=I.find(P=>P.id===l),$=[B,K,...I].filter(Boolean).map(P=>P.ref.current);r_($,u)}}S.current=!1}),onBlur:Se(e.onBlur,()=>b(!1))})})}),e_="RovingFocusGroupItem",t_=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:a,children:c,...s}=e,m=E1(),d=a||m,u=_se(e_,r),p=u.currentTabStopId===d,v=ZD(r),{onFocusableItemAdd:h,onFocusableItemRemove:E,currentTabStopId:l}=u;return i.useEffect(()=>{if(n)return h(),()=>E()},[n,h,E]),Q.jsx(Im.ItemSlot,{scope:r,id:d,focusable:n,active:o,children:Q.jsx(Ie.span,{tabIndex:p?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:Se(e.onMouseDown,g=>{n?u.onItemFocus(d):g.preventDefault()}),onFocus:Se(e.onFocus,()=>u.onItemFocus(d)),onKeyDown:Se(e.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){u.onItemShiftTab();return}if(g.target!==g.currentTarget)return;const y=Ase(g,u.orientation,u.dir);if(y!==void 0){if(g.metaKey||g.ctrlKey||g.altKey||g.shiftKey)return;g.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(g.currentTarget);b=u.loop?Ise(b,w+1):b.slice(w+1)}setTimeout(()=>r_(b))}}),children:typeof c=="function"?c({isCurrentTabStop:p,hasTabStop:l!=null}):c})})});t_.displayName=e_;var Pse={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Mse(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Ase(e,t,r){const n=Mse(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return Pse[n]}function r_(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function Ise(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var Fse=QD,Lse=t_,Nl="Tabs",[Wse]=Ku(Nl,[JD]),n_=JD(),[zse,Xv]=Wse(Nl),$se=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,onValueChange:o,defaultValue:a,orientation:c="horizontal",dir:s,activationMode:m="automatic",...d}=e,u=qD(s),[p,v]=k1({prop:n,onChange:o,defaultProp:a??"",caller:Nl});return Q.jsx(zse,{scope:r,baseId:E1(),value:p,onValueChange:v,orientation:c,dir:u,activationMode:m,children:Q.jsx(Ie.div,{dir:u,"data-orientation":c,...d,ref:t})})});$se.displayName=Nl;var o_="TabsList",Use=i.forwardRef((e,t)=>{const{__scopeTabs:r,loop:n=!0,...o}=e,a=Xv(o_,r),c=n_(r);return Q.jsx(Fse,{asChild:!0,...c,orientation:a.orientation,dir:a.dir,loop:n,children:Q.jsx(Ie.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});Use.displayName=o_;var a_="TabsTrigger",Yse=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,disabled:o=!1,...a}=e,c=Xv(a_,r),s=n_(r),m=i_(c.baseId,n),d=c_(c.baseId,n),u=n===c.value;return Q.jsx(Lse,{asChild:!0,...s,focusable:!o,active:u,children:Q.jsx(Ie.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":d,"data-state":u?"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";!u&&!o&&p&&c.onValueChange(n)})})})});Yse.displayName=a_;var s_="TabsContent",Bse=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,forceMount:o,children:a,...c}=e,s=Xv(s_,r),m=i_(s.baseId,n),d=c_(s.baseId,n),u=n===s.value,p=i.useRef(u);return i.useEffect(()=>{const v=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(v)},[]),Q.jsx(Vu,{present:o||u,children:({present:v})=>Q.jsx(Ie.div,{"data-state":u?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":m,hidden:!v,id:d,tabIndex:0,...c,ref:t,style:{...e.style,animationDuration:p.current?"0s":void 0},children:v&&a})})});Bse.displayName=s_;function i_(e,t){return`${e}-trigger-${t}`}function c_(e,t){return`${e}-content-${t}`}i.createContext({});i.createContext({});function Kse(e){const t=e+"CollectionProvider",[r,n]=Uu(t),[o,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),c=l=>{const{scope:g,children:y}=l,b=M.useRef(null),w=M.useRef(new Map).current;return J.jsx(o,{scope:g,itemMap:w,collectionRef:b,children:y})};c.displayName=t;const s=e+"CollectionSlot",m=Z.createSlot(s),d=M.forwardRef((l,g)=>{const{scope:y,children:b}=l,w=a(s,y),k=Rt(g,w.collectionRef);return J.jsx(m,{ref:k,children:b})});d.displayName=s;const u=e+"CollectionItemSlot",p="data-radix-collection-item",v=Z.createSlot(u),h=M.forwardRef((l,g)=>{const{scope:y,children:b,...w}=l,k=M.useRef(null),S=Rt(g,k),T=a(u,y);return M.useEffect(()=>(T.itemMap.set(k,{ref:k,...w}),()=>void T.itemMap.delete(k))),J.jsx(v,{[p]:"",ref:S,children:b})});h.displayName=u;function E(l){const g=a(e+"CollectionConsumer",l);return M.useCallback(()=>{const y=g.collectionRef.current;if(!y)return[];const b=Array.from(y.querySelectorAll(`[${p}]`));return Array.from(g.itemMap.values()).sort((w,k)=>b.indexOf(w.ref.current)-b.indexOf(k.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:c,Slot:d,ItemSlot:h},E,n]}var Vse=i.createContext(void 0);function u_(e){const t=i.useContext(Vse);return e||t||"ltr"}var kp="rovingFocusGroup.onEntryFocus",Hse={bubbles:!1,cancelable:!0},gs="RovingFocusGroup",[Fm,l_,Xse]=Kse(gs),[Gse,d_]=Uu(gs,[Xse]),[qse,Zse]=Gse(gs),f_=i.forwardRef((e,t)=>J.jsx(Fm.Provider,{scope:e.__scopeRovingFocusGroup,children:J.jsx(Fm.Slot,{scope:e.__scopeRovingFocusGroup,children:J.jsx(Jse,{...e,ref:t})})}));f_.displayName=gs;var Jse=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:a,currentTabStopId:c,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:m,onEntryFocus:d,preventScrollOnEntryFocus:u=!1,...p}=e,v=i.useRef(null),h=Rt(t,v),E=u_(a),[l,g]=JC({prop:c,defaultProp:s??null,onChange:m,caller:gs}),[y,b]=i.useState(!1),w=Go(d),k=l_(r),S=i.useRef(!1),[T,C]=i.useState(0);return i.useEffect(()=>{const j=v.current;if(j)return j.addEventListener(kp,w),()=>j.removeEventListener(kp,w)},[w]),J.jsx(qse,{scope:r,orientation:n,dir:E,loop:o,currentTabStopId:l,onItemFocus:i.useCallback(j=>g(j),[g]),onItemShiftTab:i.useCallback(()=>b(!0),[]),onFocusableItemAdd:i.useCallback(()=>C(j=>j+1),[]),onFocusableItemRemove:i.useCallback(()=>C(j=>j-1),[]),children:J.jsx(Ae.div,{tabIndex:y||T===0?-1:0,"data-orientation":n,...p,ref:h,style:{outline:"none",...e.style},onMouseDown:Ce(e.onMouseDown,()=>{S.current=!0}),onFocus:Ce(e.onFocus,j=>{const O=!S.current;if(j.target===j.currentTarget&&O&&!y){const L=new CustomEvent(kp,Hse);if(j.currentTarget.dispatchEvent(L),!L.defaultPrevented){const I=k().filter(P=>P.focusable),B=I.find(P=>P.active),K=I.find(P=>P.id===l),$=[B,K,...I].filter(Boolean).map(P=>P.ref.current);v_($,u)}}S.current=!1}),onBlur:Ce(e.onBlur,()=>b(!1))})})}),p_="RovingFocusGroupItem",m_=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:a,children:c,...s}=e,m=ZC(),d=a||m,u=Zse(p_,r),p=u.currentTabStopId===d,v=l_(r),{onFocusableItemAdd:h,onFocusableItemRemove:E,currentTabStopId:l}=u;return i.useEffect(()=>{if(n)return h(),()=>E()},[n,h,E]),J.jsx(Fm.ItemSlot,{scope:r,id:d,focusable:n,active:o,children:J.jsx(Ae.span,{tabIndex:p?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:Ce(e.onMouseDown,g=>{n?u.onItemFocus(d):g.preventDefault()}),onFocus:Ce(e.onFocus,()=>u.onItemFocus(d)),onKeyDown:Ce(e.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){u.onItemShiftTab();return}if(g.target!==g.currentTarget)return;const y=tie(g,u.orientation,u.dir);if(y!==void 0){if(g.metaKey||g.ctrlKey||g.altKey||g.shiftKey)return;g.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(g.currentTarget);b=u.loop?rie(b,w+1):b.slice(w+1)}setTimeout(()=>v_(b))}}),children:typeof c=="function"?c({isCurrentTabStop:p,hasTabStop:l!=null}):c})})});m_.displayName=p_;var Qse={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function eie(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function tie(e,t,r){const n=eie(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return Qse[n]}function v_(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function rie(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var nie=f_,oie=m_,Tl="Tabs",[aie]=Uu(Tl,[d_]),g_=d_(),[sie,Gv]=aie(Tl),iie=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,onValueChange:o,defaultValue:a,orientation:c="horizontal",dir:s,activationMode:m="automatic",...d}=e,u=u_(s),[p,v]=JC({prop:n,onChange:o,defaultProp:a??"",caller:Tl});return J.jsx(sie,{scope:r,baseId:ZC(),value:p,onValueChange:v,orientation:c,dir:u,activationMode:m,children:J.jsx(Ae.div,{dir:u,"data-orientation":c,...d,ref:t})})});iie.displayName=Tl;var h_="TabsList",cie=i.forwardRef((e,t)=>{const{__scopeTabs:r,loop:n=!0,...o}=e,a=Gv(h_,r),c=g_(r);return J.jsx(nie,{asChild:!0,...c,orientation:a.orientation,dir:a.dir,loop:n,children:J.jsx(Ae.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});cie.displayName=h_;var y_="TabsTrigger",uie=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,disabled:o=!1,...a}=e,c=Gv(y_,r),s=g_(r),m=w_(c.baseId,n),d=x_(c.baseId,n),u=n===c.value;return J.jsx(oie,{asChild:!0,...s,focusable:!o,active:u,children:J.jsx(Ae.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":d,"data-state":u?"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";!u&&!o&&p&&c.onValueChange(n)})})})});uie.displayName=y_;var b_="TabsContent",lie=i.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,forceMount:o,children:a,...c}=e,s=Gv(b_,r),m=w_(s.baseId,n),d=x_(s.baseId,n),u=n===s.value,p=i.useRef(u);return i.useEffect(()=>{const v=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(v)},[]),J.jsx(Yu,{present:o||u,children:({present:v})=>J.jsx(Ae.div,{"data-state":u?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":m,hidden:!v,id:d,tabIndex:0,...c,ref:t,style:{...e.style,animationDuration:p.current?"0s":void 0},children:v&&a})})});lie.displayName=b_;function w_(e,t){return`${e}-trigger-${t}`}function x_(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({});function die({data:e=[],placeholder:t="Selecione um item...",value:r,...n}){const[o,a]=i.useState(!1);let c=-1;r&&(c=e.findIndex(d=>d.value===r));const[s,m]=i.useState(c);return N.jsxRuntimeExports.jsxs(ns,{open:o,onOpenChange:a,children:[N.jsxRuntimeExports.jsx(os,{asChild:!0,children:N.jsxRuntimeExports.jsxs(Zx,{variant:"outline",role:"combobox","aria-expanded":o,className:"justify-between",children:[s>-1?e[s].label:N.jsxRuntimeExports.jsx("div",{className:"text-sm text-foreground opacity-50 font-normal",children:t}),N.jsxRuntimeExports.jsx(we.ChevronsUpDown,{className:"opacity-50"})]})}),N.jsxRuntimeExports.jsx(as,{className:" lg:w-[654px] md:w-[558px] p-0",children:N.jsxRuntimeExports.jsxs(Mu,{children:[N.jsxRuntimeExports.jsx(Vm,{placeholder:t,className:"h-9 opacity-50",...n}),N.jsxRuntimeExports.jsxs(Hm,{children:[N.jsxRuntimeExports.jsx(Xm,{children:"Nenhum registro encontrado."}),N.jsxRuntimeExports.jsx(iu,{children:e?.map(d=>N.jsxRuntimeExports.jsxs(cu,{value:d.label,onSelect:u=>{const p=e.findIndex(v=>v.label===u);m(p),typeof n.onValueChange=="function"&&n.onValueChange(e[p].value),a(!1)},children:[d.label,N.jsxRuntimeExports.jsx(we.Check,{className:z.cn("ml-auto",d.value===e[s]?.value?"opacity-100":"opacity-0")})]},d.value))})]})]})})]})}function E_({className:e,orientation:t="horizontal",decorative:r=!0,...n}){return N.jsxRuntimeExports.jsx(z_.Root,{"data-slot":"separator",decorative:r,orientation:t,className:z.cn("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",e),...n})}function fie({column:e,title:t,options:r,onChange:n,value:o=[]}){const a=e?.getFacetedUniqueValues(),c=new Set(o);return N.jsxRuntimeExports.jsxs(ns,{children:[N.jsxRuntimeExports.jsx(os,{asChild:!0,children:N.jsxRuntimeExports.jsxs(Zx,{variant:"outline",size:"sm",className:"h-8 border-dashed",children:[N.jsxRuntimeExports.jsx(we.PlusCircle,{}),t,c?.size>0&&N.jsxRuntimeExports.jsxs(N.jsxRuntimeExports.Fragment,{children:[N.jsxRuntimeExports.jsx(E_,{orientation:"vertical",className:"mx-2 h-4"}),N.jsxRuntimeExports.jsx(yc,{variant:"secondary",className:"rounded-sm px-1 font-normal lg:hidden",children:c.size}),N.jsxRuntimeExports.jsx("div",{className:"hidden gap-1 lg:flex",children:c.size>2?N.jsxRuntimeExports.jsxs(yc,{variant:"secondary",className:"rounded-sm px-1 font-normal",children:[c.size," selected"]}):r.filter(s=>c.has(s.value)).map(s=>N.jsxRuntimeExports.jsx(yc,{variant:"secondary",className:"rounded-sm px-1 font-normal",children:s.label},s.value))})]})]})}),N.jsxRuntimeExports.jsx(as,{className:"w-[200px] p-0",align:"start",children:N.jsxRuntimeExports.jsxs(Mu,{children:[N.jsxRuntimeExports.jsx(Vm,{placeholder:t}),N.jsxRuntimeExports.jsxs(Hm,{children:[N.jsxRuntimeExports.jsx(Xm,{children:"No results found."}),N.jsxRuntimeExports.jsx(iu,{children:r.map(s=>{const m=c.has(s.value);return N.jsxRuntimeExports.jsxs(cu,{onSelect:()=>{const d=new Set(c);m?d.delete(s.value):d.add(s.value),typeof n=="function"&&n(d);const u=Array.from(d);e?.setFilterValue(u.length?u:void 0)},children:[N.jsxRuntimeExports.jsx("div",{className:z.cn("flex size-4 items-center justify-center rounded-[4px] border",m?"bg-primary border-primary text-primary-foreground":"border-input [&_svg]:invisible"),children:N.jsxRuntimeExports.jsx(we.Check,{className:"text-primary-foreground size-3.5"})}),s.icon&&N.jsxRuntimeExports.jsx(s.icon,{className:"text-muted-foreground size-4"}),N.jsxRuntimeExports.jsx("span",{children:s.label}),a?.get(s.value)&&N.jsxRuntimeExports.jsx("span",{className:"text-muted-foreground ml-auto flex size-4 items-center justify-center font-mono text-xs",children:a.get(s.value)})]},s.value)})}),c.size>0&&N.jsxRuntimeExports.jsxs(N.jsxRuntimeExports.Fragment,{children:[N.jsxRuntimeExports.jsx(Gx,{}),N.jsxRuntimeExports.jsx(iu,{children:N.jsxRuntimeExports.jsx(cu,{onSelect:()=>{e?.setFilterValue(void 0),typeof n=="function"&&n(new Set)},className:"justify-center text-center",children:"Limpar Filtro"})})]})]})]})})]})}const pie=ru.FormProvider,k_=i.createContext({}),mie=({...e})=>N.jsxRuntimeExports.jsx(k_.Provider,{value:{name:e.name},children:N.jsxRuntimeExports.jsx(ru.Controller,{...e})}),hs=()=>{const e=i.useContext(k_),t=i.useContext(C_),{getFieldState:r}=ru.useFormContext(),n=ru.useFormState({name:e.name}),o=r(e.name,n);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:a}=t;return{id:a,name:e.name,formItemId:`${a}-form-item`,formDescriptionId:`${a}-form-item-description`,formMessageId:`${a}-form-item-message`,...o}},C_=i.createContext({});function vie({className:e,...t}){const r=i.useId();return N.jsxRuntimeExports.jsx(C_.Provider,{value:{id:r},children:N.jsxRuntimeExports.jsx("div",{"data-slot":"form-item",className:z.cn("grid gap-2",e),...t})})}function gie({className:e,...t}){const{error:r,formItemId:n}=hs();return N.jsxRuntimeExports.jsx($m,{"data-slot":"form-label","data-error":!!r,className:z.cn("data-[error=true]:text-destructive",e),htmlFor:n,...t})}function hie({...e}){const{error:t,formItemId:r,formDescriptionId:n,formMessageId:o}=hs();return N.jsxRuntimeExports.jsx(Z.Slot,{"data-slot":"form-control",id:r,"aria-describedby":t?`${n} ${o}`:`${n}`,"aria-invalid":!!t,...e})}function yie({className:e,...t}){const{formDescriptionId:r}=hs();return N.jsxRuntimeExports.jsx("p",{"data-slot":"form-description",id:r,className:z.cn("text-muted-foreground text-sm",e),...t})}function bie({className:e,...t}){const{error:r,formMessageId:n}=hs(),o=r?String(r?.message??""):t.children;return o?N.jsxRuntimeExports.jsx("p",{"data-slot":"form-message",id:n,className:z.cn("text-destructive text-sm",e),...t,children:o}):null}function S_({className:e,...t}){return N.jsxRuntimeExports.jsx("div",{"data-slot":"skeleton",className:z.cn("bg-accent animate-pulse rounded-md",e),...t})}const wie=({...e})=>{const{theme:t="system"}=F_.useTheme();return N.jsxRuntimeExports.jsx($0.Toaster,{theme:t,className:"toaster group",style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)"},...e})};function xie({className:e,...t}){return N.jsxRuntimeExports.jsx(Tu.Root,{"data-slot":"tabs",className:z.cn("flex flex-col gap-2",e),...t})}function Eie({className:e,...t}){return N.jsxRuntimeExports.jsx(Tu.List,{"data-slot":"tabs-list",className:z.cn("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",e),...t})}function kie({className:e,...t}){return N.jsxRuntimeExports.jsx(Tu.Trigger,{"data-slot":"tabs-trigger",className:z.cn("data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}function Cie({className:e,...t}){return N.jsxRuntimeExports.jsx(Tu.Content,{"data-slot":"tabs-content",className:z.cn("flex-1 outline-none",e),...t})}function Sie({className:e,...t}){return N.jsxRuntimeExports.jsx("textarea",{"data-slot":"textarea",className:z.cn("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),...t})}function Rie(){const{user:e,isLoading:t}=N.useUser(),r=e?.username,n=r?r.substring(0,2):"";return t?N.jsxRuntimeExports.jsx(S_,{className:"h-9 w-9 rounded-4xl"}):N.jsxRuntimeExports.jsx("div",{className:"rounded-full w-9 h-9 justify-center text-xs cursor-default uppercase items-center flex flex-col bg-amber-400 border-2 border-black",children:n})}exports.Button=z.Button;exports.buttonVariants=z.buttonVariants;Object.defineProperty(exports,"TZDate",{enumerable:!0,get:()=>nr.TZDate});Object.defineProperty(exports,"toast",{enumerable:!0,get:()=>$0.toast});exports.Avatar=Rie;exports.Badge=yc;exports.Calendar=Um;exports.CalendarDayButton=ox;exports.Card=MO;exports.CardAction=LO;exports.CardContent=WO;exports.CardDescription=FO;exports.CardFooter=zO;exports.CardHeader=AO;exports.CardTitle=IO;exports.Checkbox=$O;exports.Collapsible=UO;exports.CollapsibleContent=BO;exports.CollapsibleTrigger=YO;exports.Combobox=die;exports.Command=Mu;exports.CommandDialog=NM;exports.CommandEmpty=Xm;exports.CommandGroup=iu;exports.CommandInput=Vm;exports.CommandItem=cu;exports.CommandList=Hm;exports.CommandSeparator=Gx;exports.CommandShortcut=TM;exports.DataTable=rO;exports.DataTableFacetedFilter=fie;exports.DatePicker=OO;exports.DateRangePicker=PO;exports.DefaultDropdownMenuTrigger=J_;exports.Dialog=Ux;exports.DialogClose=RM;exports.DialogContent=Kx;exports.DialogDescription=Xx;exports.DialogFooter=jM;exports.DialogHeader=Vx;exports.DialogOverlay=Bx;exports.DialogPortal=Yx;exports.DialogTitle=Hx;exports.DialogTrigger=SM;exports.DragHandle=nO;exports.DraggableRow=nx;exports.DropdownMenu=Cp;exports.DropdownMenuCheckboxItem=V0;exports.DropdownMenuContent=Sp;exports.DropdownMenuGroup=B_;exports.DropdownMenuItem=K_;exports.DropdownMenuLabel=V_;exports.DropdownMenuPortal=Y_;exports.DropdownMenuRadioGroup=H0;exports.DropdownMenuRadioItem=X0;exports.DropdownMenuSeparator=H_;exports.DropdownMenuShortcut=X_;exports.DropdownMenuSub=G_;exports.DropdownMenuSubContent=Z_;exports.DropdownMenuSubTrigger=q_;exports.DropdownMenuTrigger=ou;exports.Form=pie;exports.FormControl=hie;exports.FormDescription=yie;exports.FormField=mie;exports.FormItem=vie;exports.FormLabel=gie;exports.FormMessage=bie;exports.Input=rx;exports.Label=$m;exports.Popover=ns;exports.PopoverAnchor=_O;exports.PopoverContent=as;exports.PopoverTrigger=os;exports.Select=G0;exports.SelectContent=J0;exports.SelectGroup=Q_;exports.SelectItem=Q0;exports.SelectLabel=eO;exports.SelectScrollDownButton=tx;exports.SelectScrollUpButton=ex;exports.SelectSeparator=tO;exports.SelectTrigger=Z0;exports.SelectValue=q0;exports.Separator=E_;exports.Skeleton=S_;exports.Table=U0;exports.TableBody=B0;exports.TableCaption=U_;exports.TableCell=zm;exports.TableFooter=$_;exports.TableHead=K0;exports.TableHeader=Y0;exports.TableRow=nu;exports.Tabs=xie;exports.TabsContent=Cie;exports.TabsList=Eie;exports.TabsTrigger=kie;exports.Textarea=Sie;exports.Toaster=wie;exports.badgeVariants=ux;exports.useFormField=hs;
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const D=require("./components/button/Button.cjs.js"),p=require("./components/button/buttonVariants.cjs.js"),t=require("./components/table/Table.cjs.js"),b=require("./components/table/DataTable.cjs.js"),s=require("./components/table/DargableRow.cjs.js"),g=require("./components/table/DragHandle.cjs.js"),e=require("./components/dropdown-menu/Dropdown-Menu.cjs.js"),o=require("./components/select/Select.cjs.js"),C=require("./components/input/Input.cjs.js"),m=require("./components/label/Label.cjs.js"),c=require("./components/calendar/Calendar.cjs.js"),T=require("./components/calendar/DatePicker.cjs.js"),S=require("./components/calendar/DateRangePicker.cjs.js"),w=require("react-day-picker"),i=require("./components/popover/Popover.cjs.js"),M=require("./components/badge/Badge.cjs.js"),q=require("./components/badge/badgeVariants.cjs.js"),l=require("./components/card/Card.cjs.js"),F=require("./components/checkbox/Checkbox.cjs.js"),d=require("./components/collapsible/Collapsible.cjs.js"),r=require("./components/dialog/Dialog.cjs.js"),a=require("./components/command/Command.cjs.js"),P=require("./components/combobox/Combobox.cjs.js"),I=require("./components/separator/Separator.cjs.js"),k=require("./components/data-table-faceted-filter/data-table-faceted-filter.cjs.js"),n=require("./components/form/Form.cjs.js"),v=require("./components/skeleton/Skeleton.cjs.js"),B=require("./components/sonner/Sonner.cjs.js"),y=require("sonner"),u=require("./components/tabs/Tabs.cjs.js"),L=require("./components/textarea/Textarea.cjs.js"),R=require("./components/avatar/Avatar.cjs.js");;/* empty css */exports.Button=D.Button;exports.buttonVariants=p.buttonVariants;exports.Table=t.Table;exports.TableBody=t.TableBody;exports.TableCaption=t.TableCaption;exports.TableCell=t.TableCell;exports.TableFooter=t.TableFooter;exports.TableHead=t.TableHead;exports.TableHeader=t.TableHeader;exports.TableRow=t.TableRow;exports.DataTable=b.DataTable;exports.DraggableRow=s.DraggableRow;exports.DragHandle=g.DragHandle;exports.DefaultDropdownMenuTrigger=e.DefaultDropdownMenuTrigger;exports.DropdownMenu=e.DropdownMenu;exports.DropdownMenuCheckboxItem=e.DropdownMenuCheckboxItem;exports.DropdownMenuContent=e.DropdownMenuContent;exports.DropdownMenuGroup=e.DropdownMenuGroup;exports.DropdownMenuItem=e.DropdownMenuItem;exports.DropdownMenuLabel=e.DropdownMenuLabel;exports.DropdownMenuPortal=e.DropdownMenuPortal;exports.DropdownMenuRadioGroup=e.DropdownMenuRadioGroup;exports.DropdownMenuRadioItem=e.DropdownMenuRadioItem;exports.DropdownMenuSeparator=e.DropdownMenuSeparator;exports.DropdownMenuShortcut=e.DropdownMenuShortcut;exports.DropdownMenuSub=e.DropdownMenuSub;exports.DropdownMenuSubContent=e.DropdownMenuSubContent;exports.DropdownMenuSubTrigger=e.DropdownMenuSubTrigger;exports.DropdownMenuTrigger=e.DropdownMenuTrigger;exports.Select=o.Select;exports.SelectContent=o.SelectContent;exports.SelectGroup=o.SelectGroup;exports.SelectItem=o.SelectItem;exports.SelectLabel=o.SelectLabel;exports.SelectScrollDownButton=o.SelectScrollDownButton;exports.SelectScrollUpButton=o.SelectScrollUpButton;exports.SelectSeparator=o.SelectSeparator;exports.SelectTrigger=o.SelectTrigger;exports.SelectValue=o.SelectValue;exports.Input=C.Input;exports.Label=m.Label;exports.Calendar=c.Calendar;exports.CalendarDayButton=c.CalendarDayButton;exports.DatePicker=T.DatePicker;exports.DateRangePicker=S.DateRangePicker;Object.defineProperty(exports,"TZDate",{enumerable:!0,get:()=>w.TZDate});exports.Popover=i.Popover;exports.PopoverAnchor=i.PopoverAnchor;exports.PopoverContent=i.PopoverContent;exports.PopoverTrigger=i.PopoverTrigger;exports.Badge=M.Badge;exports.badgeVariants=q.badgeVariants;exports.Card=l.Card;exports.CardAction=l.CardAction;exports.CardContent=l.CardContent;exports.CardDescription=l.CardDescription;exports.CardFooter=l.CardFooter;exports.CardHeader=l.CardHeader;exports.CardTitle=l.CardTitle;exports.Checkbox=F.Checkbox;exports.Collapsible=d.Collapsible;exports.CollapsibleContent=d.CollapsibleContent;exports.CollapsibleTrigger=d.CollapsibleTrigger;exports.Dialog=r.Dialog;exports.DialogClose=r.DialogClose;exports.DialogContent=r.DialogContent;exports.DialogDescription=r.DialogDescription;exports.DialogFooter=r.DialogFooter;exports.DialogHeader=r.DialogHeader;exports.DialogOverlay=r.DialogOverlay;exports.DialogPortal=r.DialogPortal;exports.DialogTitle=r.DialogTitle;exports.DialogTrigger=r.DialogTrigger;exports.Command=a.Command;exports.CommandDialog=a.CommandDialog;exports.CommandEmpty=a.CommandEmpty;exports.CommandGroup=a.CommandGroup;exports.CommandInput=a.CommandInput;exports.CommandItem=a.CommandItem;exports.CommandList=a.CommandList;exports.CommandSeparator=a.CommandSeparator;exports.CommandShortcut=a.CommandShortcut;exports.Combobox=P.Combobox;exports.Separator=I.Separator;exports.DataTableFacetedFilter=k.DataTableFacetedFilter;exports.Form=n.Form;exports.FormControl=n.FormControl;exports.FormDescription=n.FormDescription;exports.FormField=n.FormField;exports.FormItem=n.FormItem;exports.FormLabel=n.FormLabel;exports.FormMessage=n.FormMessage;exports.useFormField=n.useFormField;exports.Skeleton=v.Skeleton;exports.Toaster=B.Toaster;Object.defineProperty(exports,"toast",{enumerable:!0,get:()=>y.toast});exports.Tabs=u.Tabs;exports.TabsContent=u.TabsContent;exports.TabsList=u.TabsList;exports.TabsTrigger=u.TabsTrigger;exports.Textarea=L.Textarea;exports.Avatar=R.Avatar;
|