-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcomponent---src-pages-index-tsx-757f03140460170d30b9.js.map
1 lines (1 loc) · 828 KB
/
component---src-pages-index-tsx-757f03140460170d30b9.js.map
1
{"version":3,"file":"component---src-pages-index-tsx-757f03140460170d30b9.js","mappings":";oIAAA,SAASA,EAASC,EAAWC,EAAO,IAAKC,EAAU,CAAC,GACnD,GAAyB,mBAAdF,EACV,MAAM,IAAIG,UAAU,+DAA+DH,QAGpF,GAAIC,EAAO,EACV,MAAM,IAAIG,WAAW,gCAItB,MAAM,UAACC,GAAgC,kBAAZH,EAAwB,CAACG,UAAWH,GAAWA,EAE1E,IAAII,EACAC,EACAC,EACAC,EACAC,EAEJ,SAASC,IACR,MAAMC,EAAOC,KAAKC,MAAQL,EAE1B,GAAIG,EAAOX,GAAQW,GAAQ,EAC1BJ,EAAYO,WAAWJ,EAAOV,EAAOW,QAIrC,GAFAJ,OAAYQ,GAEPX,EAAW,CACf,MAAMY,EAAcX,EACdY,EAAgBX,EACtBD,OAAgBU,EAChBT,OAAkBS,EAClBN,EAASV,EAAUmB,MAAMF,EAAaC,EACvC,CAEF,CAEA,MAAME,EAAY,YAAaC,GAC9B,GAAIf,GAAiBgB,OAAShB,EAC7B,MAAM,IAAIiB,MAAM,oDAGjBjB,EAAgBgB,KAChBf,EAAkBc,EAClBZ,EAAYI,KAAKC,MAEjB,MAAMU,EAAUnB,IAAcG,EAM9B,GAJKA,IACJA,EAAYO,WAAWJ,EAAOV,IAG3BuB,EAAS,CACZ,MAAMP,EAAcX,EACdY,EAAgBX,EACtBD,OAAgBU,EAChBT,OAAkBS,EAClBN,EAASV,EAAUmB,MAAMF,EAAaC,EACvC,CAEA,OAAOR,CACR,EA0BA,OAxBAU,EAAUK,MAAQ,KACZjB,IAILkB,aAAalB,GACbA,OAAYQ,EAAS,EAGtBI,EAAUO,MAAQ,KACjB,IAAKnB,EACJ,OAGD,MAAMS,EAAcX,EACdY,EAAgBX,EACtBD,OAAgB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xC,OAFIyzD,EAAKxhE,YAAWA,EAAYwhE,EAAKxhE,WACjCye,EAAMze,YAAWA,GAAaA,EAAYA,EAAY,IAAM,IAAMye,EAAMze,WACxD,gBAAoB,MAAO2yC,EAAS,CACtDhiC,OAAQ,eACRD,KAAM,eACNixD,YAAa,KACZH,EAAKvoB,KAAMA,EAAMwoB,EAAU,CAC5BzhE,UAAWA,EACXkY,MAAOsoD,EAAcA,EAAc,CACjCtuD,MAAOuM,EAAMvM,OAASsvD,EAAKtvD,OAC1BsvD,EAAKtpD,OAAQuG,EAAMvG,OACtBye,OAAQ+qC,EACRhrC,MAAOgrC,EACP1gD,MAAO,+BACLtP,GAAsB,gBAAoB,QAAS,KAAMA,GAAQ+M,EAAMtI,SAAS,EAEtF,YAAuB5Y,IAAhBmiE,EAAyC,gBAAoBA,EAAYkC,SAAU,MAAMJ,GAAQD,EAAKC,KAASD,EAAK9B,EAC7H","sources":["webpack://flowbite-react-template-gatsby/./node_modules/debounce/index.js","webpack://flowbite-react-template-gatsby/./node_modules/tailwind-merge/dist/bundle-mjs.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/helpers/is-object.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/helpers/clone-deep.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/helpers/merge-deep.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Accordion/theme.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/theme.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Alert/theme.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Avatar/theme.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Badge/theme.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Blockquote/theme.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Breadcrumb/theme.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Button/theme.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Card/theme.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Carousel/theme.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Checkbox/theme.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Datepicker/theme.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/DarkThemeToggle/theme.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Dropdown/theme.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/FileInput/theme.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/FloatingLabel/theme.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Footer/theme.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/HelperText/theme.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Kbd/theme.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Label/theme.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/ListGroup/theme.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/List/theme.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Modal/theme.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Navbar/theme.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Pagination/theme.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Popover/theme.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Progress/theme.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Radio/theme.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/RangeSlider/theme.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Rating/theme.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Select/theme.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/TextInput/theme.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Textarea/theme.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/ToggleSwitch/theme.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Sidebar/theme.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Spinner/theme.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Table/theme.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Tabs/theme.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Timeline/theme.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Toast/theme.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Tooltip/theme.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/theme-store/index.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Accordion/AccordionPanelContext.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Accordion/AccordionContent.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Accordion/AccordionPanel.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Accordion/AccordionTitle.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Accordion/Accordion.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Avatar/AvatarGroup.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Avatar/AvatarGroupCounter.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Avatar/Avatar.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Badge/Badge.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Spinner/Spinner.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Button/ButtonBase.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Button/ButtonGroup.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Button/Button.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Banner/BannerCollapseButton.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Banner/Banner.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Breadcrumb/BreadcrumbItem.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Breadcrumb/Breadcrumb.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/helpers/omit.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Card/Card.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/helpers/drag-scroll/index.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/helpers/is-client.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Checkbox/Checkbox.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/hooks/use-watch-localstorage-value.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/hooks/use-theme-mode.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/DarkThemeToggle/DarkThemeToggle.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/hooks/use-is-mounted.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/HelperText/HelperText.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/TextInput/TextInput.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Datepicker/DatepickerContext.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Datepicker/helpers.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Datepicker/Views/Days.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Datepicker/Views/Decades.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Datepicker/Views/Months.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Datepicker/Views/Years.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Datepicker/Datepicker.mjs","webpack://flowbite-react-template-gatsby/./node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs","webpack://flowbite-react-template-gatsby/./node_modules/@floating-ui/react/dist/floating-ui.react.utils.mjs","webpack://flowbite-react-template-gatsby/./node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs","webpack://flowbite-react-template-gatsby/./node_modules/@floating-ui/core/dist/floating-ui.core.mjs","webpack://flowbite-react-template-gatsby/./node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs","webpack://flowbite-react-template-gatsby/./node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs","webpack://flowbite-react-template-gatsby/./node_modules/tabbable/dist/index.esm.js","webpack://flowbite-react-template-gatsby/./node_modules/@floating-ui/react/dist/floating-ui.react.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Floating/helpers.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/hooks/use-floating.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Dropdown/DropdownContext.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Dropdown/DropdownDivider.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Dropdown/DropdownHeader.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Dropdown/DropdownItem.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Dropdown/Dropdown.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/FileInput/FileInput.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/FloatingLabel/FloatingLabel.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Flowbite/Flowbite.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Footer/FooterBrand.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Footer/FooterCopyright.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Footer/FooterDivider.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Footer/FooterIcon.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Footer/FooterLink.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Footer/FooterLinkGroup.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Footer/FooterTitle.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Footer/Footer.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/List/ListItem.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/List/List.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/ListGroup/ListGroupItem.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/ListGroup/ListGroup.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Modal/ModalContext.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Modal/ModalBody.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Modal/ModalFooter.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Modal/ModalHeader.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Modal/Modal.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Navbar/NavbarContext.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Navbar/NavbarBrand.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Navbar/NavbarCollapse.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Navbar/NavbarLink.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Navbar/NavbarToggle.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Navbar/Navbar.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Pagination/PaginationButton.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Pagination/Pagination.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Pagination/helpers.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Progress/Progress.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Radio/Radio.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/RangeSlider/RangeSlider.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Rating/RatingAdvanced.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Rating/RatingContext.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Rating/RatingStar.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Rating/Rating.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Select/Select.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Floating/Floating.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Tooltip/Tooltip.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Sidebar/SidebarContext.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Sidebar/SidebarItemContext.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Sidebar/SidebarCollapse.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Sidebar/SidebarCTA.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Sidebar/SidebarItem.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Sidebar/SidebarItemGroup.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Sidebar/SidebarItems.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Sidebar/SidebarLogo.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Sidebar/Sidebar.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Table/TableBodyContext.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Table/TableContext.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Table/TableBody.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Table/TableCell.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Table/TableHeadContext.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Table/TableHead.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Table/TableHeadCell.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Table/TableRow.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Table/Table.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Tabs/TabItem.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Tabs/Tabs.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Textarea/Textarea.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Timeline/TimelineContentContext.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Timeline/TimelineBody.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Timeline/TimelineContext.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Timeline/TimelineItemContext.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Timeline/TimelineContent.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Timeline/TimelineItem.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Timeline/TimelinePoint.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Timeline/TimelineTime.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Timeline/TimelineTitle.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Timeline/Timeline.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Toast/ToastContext.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Toast/ToastToggle.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/Toast/Toast.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/dist/esm/components/ToggleSwitch/ToggleSwitch.mjs","webpack://flowbite-react-template-gatsby/./src/pages/index.tsx","webpack://flowbite-react-template-gatsby/./node_modules/classnames/index.js","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/node_modules/react-icons/lib/iconsManifest.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/node_modules/react-icons/lib/iconContext.mjs","webpack://flowbite-react-template-gatsby/./node_modules/flowbite-react/node_modules/react-icons/lib/iconBase.mjs"],"sourcesContent":["function debounce(function_, wait = 100, options = {}) {\n\tif (typeof function_ !== 'function') {\n\t\tthrow new TypeError(`Expected the first parameter to be a function, got \\`${typeof function_}\\`.`);\n\t}\n\n\tif (wait < 0) {\n\t\tthrow new RangeError('`wait` must not be negative.');\n\t}\n\n\t// TODO: Deprecate the boolean parameter at some point.\n\tconst {immediate} = typeof options === 'boolean' ? {immediate: options} : options;\n\n\tlet storedContext;\n\tlet storedArguments;\n\tlet timeoutId;\n\tlet timestamp;\n\tlet result;\n\n\tfunction later() {\n\t\tconst last = Date.now() - timestamp;\n\n\t\tif (last < wait && last >= 0) {\n\t\t\ttimeoutId = setTimeout(later, wait - last);\n\t\t} else {\n\t\t\ttimeoutId = undefined;\n\n\t\t\tif (!immediate) {\n\t\t\t\tconst callContext = storedContext;\n\t\t\t\tconst callArguments = storedArguments;\n\t\t\t\tstoredContext = undefined;\n\t\t\t\tstoredArguments = undefined;\n\t\t\t\tresult = function_.apply(callContext, callArguments);\n\t\t\t}\n\t\t}\n\t}\n\n\tconst debounced = function (...arguments_) {\n\t\tif (storedContext && this !== storedContext) {\n\t\t\tthrow new Error('Debounced method called with different contexts.');\n\t\t}\n\n\t\tstoredContext = this; // eslint-disable-line unicorn/no-this-assignment\n\t\tstoredArguments = arguments_;\n\t\ttimestamp = Date.now();\n\n\t\tconst callNow = immediate && !timeoutId;\n\n\t\tif (!timeoutId) {\n\t\t\ttimeoutId = setTimeout(later, wait);\n\t\t}\n\n\t\tif (callNow) {\n\t\t\tconst callContext = storedContext;\n\t\t\tconst callArguments = storedArguments;\n\t\t\tstoredContext = undefined;\n\t\t\tstoredArguments = undefined;\n\t\t\tresult = function_.apply(callContext, callArguments);\n\t\t}\n\n\t\treturn result;\n\t};\n\n\tdebounced.clear = () => {\n\t\tif (!timeoutId) {\n\t\t\treturn;\n\t\t}\n\n\t\tclearTimeout(timeoutId);\n\t\ttimeoutId = undefined;\n\t};\n\n\tdebounced.flush = () => {\n\t\tif (!timeoutId) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst callContext = storedContext;\n\t\tconst callArguments = storedArguments;\n\t\tstoredContext = undefined;\n\t\tstoredArguments = undefined;\n\t\tresult = function_.apply(callContext, callArguments);\n\n\t\tclearTimeout(timeoutId);\n\t\ttimeoutId = undefined;\n\t};\n\n\treturn debounced;\n}\n\n// Adds compatibility for ES modules\nmodule.exports.debounce = debounce;\n\nmodule.exports = debounce;\n","const CLASS_PART_SEPARATOR = '-';\nfunction createClassUtils(config) {\n const classMap = createClassMap(config);\n const {\n conflictingClassGroups,\n conflictingClassGroupModifiers\n } = config;\n function getClassGroupId(className) {\n const classParts = className.split(CLASS_PART_SEPARATOR);\n // Classes like `-inset-1` produce an empty string as first classPart. We assume that classes for negative values are used correctly and remove it from classParts.\n if (classParts[0] === '' && classParts.length !== 1) {\n classParts.shift();\n }\n return getGroupRecursive(classParts, classMap) || getGroupIdForArbitraryProperty(className);\n }\n function getConflictingClassGroupIds(classGroupId, hasPostfixModifier) {\n const conflicts = conflictingClassGroups[classGroupId] || [];\n if (hasPostfixModifier && conflictingClassGroupModifiers[classGroupId]) {\n return [...conflicts, ...conflictingClassGroupModifiers[classGroupId]];\n }\n return conflicts;\n }\n return {\n getClassGroupId,\n getConflictingClassGroupIds\n };\n}\nfunction getGroupRecursive(classParts, classPartObject) {\n if (classParts.length === 0) {\n return classPartObject.classGroupId;\n }\n const currentClassPart = classParts[0];\n const nextClassPartObject = classPartObject.nextPart.get(currentClassPart);\n const classGroupFromNextClassPart = nextClassPartObject ? getGroupRecursive(classParts.slice(1), nextClassPartObject) : undefined;\n if (classGroupFromNextClassPart) {\n return classGroupFromNextClassPart;\n }\n if (classPartObject.validators.length === 0) {\n return undefined;\n }\n const classRest = classParts.join(CLASS_PART_SEPARATOR);\n return classPartObject.validators.find(({\n validator\n }) => validator(classRest))?.classGroupId;\n}\nconst arbitraryPropertyRegex = /^\\[(.+)\\]$/;\nfunction getGroupIdForArbitraryProperty(className) {\n if (arbitraryPropertyRegex.test(className)) {\n const arbitraryPropertyClassName = arbitraryPropertyRegex.exec(className)[1];\n const property = arbitraryPropertyClassName?.substring(0, arbitraryPropertyClassName.indexOf(':'));\n if (property) {\n // I use two dots here because one dot is used as prefix for class groups in plugins\n return 'arbitrary..' + property;\n }\n }\n}\n/**\n * Exported for testing only\n */\nfunction createClassMap(config) {\n const {\n theme,\n prefix\n } = config;\n const classMap = {\n nextPart: new Map(),\n validators: []\n };\n const prefixedClassGroupEntries = getPrefixedClassGroupEntries(Object.entries(config.classGroups), prefix);\n prefixedClassGroupEntries.forEach(([classGroupId, classGroup]) => {\n processClassesRecursively(classGroup, classMap, classGroupId, theme);\n });\n return classMap;\n}\nfunction processClassesRecursively(classGroup, classPartObject, classGroupId, theme) {\n classGroup.forEach(classDefinition => {\n if (typeof classDefinition === 'string') {\n const classPartObjectToEdit = classDefinition === '' ? classPartObject : getPart(classPartObject, classDefinition);\n classPartObjectToEdit.classGroupId = classGroupId;\n return;\n }\n if (typeof classDefinition === 'function') {\n if (isThemeGetter(classDefinition)) {\n processClassesRecursively(classDefinition(theme), classPartObject, classGroupId, theme);\n return;\n }\n classPartObject.validators.push({\n validator: classDefinition,\n classGroupId\n });\n return;\n }\n Object.entries(classDefinition).forEach(([key, classGroup]) => {\n processClassesRecursively(classGroup, getPart(classPartObject, key), classGroupId, theme);\n });\n });\n}\nfunction getPart(classPartObject, path) {\n let currentClassPartObject = classPartObject;\n path.split(CLASS_PART_SEPARATOR).forEach(pathPart => {\n if (!currentClassPartObject.nextPart.has(pathPart)) {\n currentClassPartObject.nextPart.set(pathPart, {\n nextPart: new Map(),\n validators: []\n });\n }\n currentClassPartObject = currentClassPartObject.nextPart.get(pathPart);\n });\n return currentClassPartObject;\n}\nfunction isThemeGetter(func) {\n return func.isThemeGetter;\n}\nfunction getPrefixedClassGroupEntries(classGroupEntries, prefix) {\n if (!prefix) {\n return classGroupEntries;\n }\n return classGroupEntries.map(([classGroupId, classGroup]) => {\n const prefixedClassGroup = classGroup.map(classDefinition => {\n if (typeof classDefinition === 'string') {\n return prefix + classDefinition;\n }\n if (typeof classDefinition === 'object') {\n return Object.fromEntries(Object.entries(classDefinition).map(([key, value]) => [prefix + key, value]));\n }\n return classDefinition;\n });\n return [classGroupId, prefixedClassGroup];\n });\n}\n\n// LRU cache inspired from hashlru (https://github.com/dominictarr/hashlru/blob/v1.0.4/index.js) but object replaced with Map to improve performance\nfunction createLruCache(maxCacheSize) {\n if (maxCacheSize < 1) {\n return {\n get: () => undefined,\n set: () => {}\n };\n }\n let cacheSize = 0;\n let cache = new Map();\n let previousCache = new Map();\n function update(key, value) {\n cache.set(key, value);\n cacheSize++;\n if (cacheSize > maxCacheSize) {\n cacheSize = 0;\n previousCache = cache;\n cache = new Map();\n }\n }\n return {\n get(key) {\n let value = cache.get(key);\n if (value !== undefined) {\n return value;\n }\n if ((value = previousCache.get(key)) !== undefined) {\n update(key, value);\n return value;\n }\n },\n set(key, value) {\n if (cache.has(key)) {\n cache.set(key, value);\n } else {\n update(key, value);\n }\n }\n };\n}\nconst IMPORTANT_MODIFIER = '!';\nfunction createSplitModifiers(config) {\n const separator = config.separator;\n const isSeparatorSingleCharacter = separator.length === 1;\n const firstSeparatorCharacter = separator[0];\n const separatorLength = separator.length;\n // splitModifiers inspired by https://github.com/tailwindlabs/tailwindcss/blob/v3.2.2/src/util/splitAtTopLevelOnly.js\n return function splitModifiers(className) {\n const modifiers = [];\n let bracketDepth = 0;\n let modifierStart = 0;\n let postfixModifierPosition;\n for (let index = 0; index < className.length; index++) {\n let currentCharacter = className[index];\n if (bracketDepth === 0) {\n if (currentCharacter === firstSeparatorCharacter && (isSeparatorSingleCharacter || className.slice(index, index + separatorLength) === separator)) {\n modifiers.push(className.slice(modifierStart, index));\n modifierStart = index + separatorLength;\n continue;\n }\n if (currentCharacter === '/') {\n postfixModifierPosition = index;\n continue;\n }\n }\n if (currentCharacter === '[') {\n bracketDepth++;\n } else if (currentCharacter === ']') {\n bracketDepth--;\n }\n }\n const baseClassNameWithImportantModifier = modifiers.length === 0 ? className : className.substring(modifierStart);\n const hasImportantModifier = baseClassNameWithImportantModifier.startsWith(IMPORTANT_MODIFIER);\n const baseClassName = hasImportantModifier ? baseClassNameWithImportantModifier.substring(1) : baseClassNameWithImportantModifier;\n const maybePostfixModifierPosition = postfixModifierPosition && postfixModifierPosition > modifierStart ? postfixModifierPosition - modifierStart : undefined;\n return {\n modifiers,\n hasImportantModifier,\n baseClassName,\n maybePostfixModifierPosition\n };\n };\n}\n/**\n * Sorts modifiers according to following schema:\n * - Predefined modifiers are sorted alphabetically\n * - When an arbitrary variant appears, it must be preserved which modifiers are before and after it\n */\nfunction sortModifiers(modifiers) {\n if (modifiers.length <= 1) {\n return modifiers;\n }\n const sortedModifiers = [];\n let unsortedModifiers = [];\n modifiers.forEach(modifier => {\n const isArbitraryVariant = modifier[0] === '[';\n if (isArbitraryVariant) {\n sortedModifiers.push(...unsortedModifiers.sort(), modifier);\n unsortedModifiers = [];\n } else {\n unsortedModifiers.push(modifier);\n }\n });\n sortedModifiers.push(...unsortedModifiers.sort());\n return sortedModifiers;\n}\nfunction createConfigUtils(config) {\n return {\n cache: createLruCache(config.cacheSize),\n splitModifiers: createSplitModifiers(config),\n ...createClassUtils(config)\n };\n}\nconst SPLIT_CLASSES_REGEX = /\\s+/;\nfunction mergeClassList(classList, configUtils) {\n const {\n splitModifiers,\n getClassGroupId,\n getConflictingClassGroupIds\n } = configUtils;\n /**\n * Set of classGroupIds in following format:\n * `{importantModifier}{variantModifiers}{classGroupId}`\n * @example 'float'\n * @example 'hover:focus:bg-color'\n * @example 'md:!pr'\n */\n const classGroupsInConflict = new Set();\n return classList.trim().split(SPLIT_CLASSES_REGEX).map(originalClassName => {\n const {\n modifiers,\n hasImportantModifier,\n baseClassName,\n maybePostfixModifierPosition\n } = splitModifiers(originalClassName);\n let classGroupId = getClassGroupId(maybePostfixModifierPosition ? baseClassName.substring(0, maybePostfixModifierPosition) : baseClassName);\n let hasPostfixModifier = Boolean(maybePostfixModifierPosition);\n if (!classGroupId) {\n if (!maybePostfixModifierPosition) {\n return {\n isTailwindClass: false,\n originalClassName\n };\n }\n classGroupId = getClassGroupId(baseClassName);\n if (!classGroupId) {\n return {\n isTailwindClass: false,\n originalClassName\n };\n }\n hasPostfixModifier = false;\n }\n const variantModifier = sortModifiers(modifiers).join(':');\n const modifierId = hasImportantModifier ? variantModifier + IMPORTANT_MODIFIER : variantModifier;\n return {\n isTailwindClass: true,\n modifierId,\n classGroupId,\n originalClassName,\n hasPostfixModifier\n };\n }).reverse()\n // Last class in conflict wins, so we need to filter conflicting classes in reverse order.\n .filter(parsed => {\n if (!parsed.isTailwindClass) {\n return true;\n }\n const {\n modifierId,\n classGroupId,\n hasPostfixModifier\n } = parsed;\n const classId = modifierId + classGroupId;\n if (classGroupsInConflict.has(classId)) {\n return false;\n }\n classGroupsInConflict.add(classId);\n getConflictingClassGroupIds(classGroupId, hasPostfixModifier).forEach(group => classGroupsInConflict.add(modifierId + group));\n return true;\n }).reverse().map(parsed => parsed.originalClassName).join(' ');\n}\n\n/**\n * The code in this file is copied from https://github.com/lukeed/clsx and modified to suit the needs of tailwind-merge better.\n *\n * Specifically:\n * - Runtime code from https://github.com/lukeed/clsx/blob/v1.2.1/src/index.js\n * - TypeScript types from https://github.com/lukeed/clsx/blob/v1.2.1/clsx.d.ts\n *\n * Original code has MIT license: Copyright (c) Luke Edwards <[email protected]> (lukeed.com)\n */\nfunction twJoin() {\n let index = 0;\n let argument;\n let resolvedValue;\n let string = '';\n while (index < arguments.length) {\n if (argument = arguments[index++]) {\n if (resolvedValue = toValue(argument)) {\n string && (string += ' ');\n string += resolvedValue;\n }\n }\n }\n return string;\n}\nfunction toValue(mix) {\n if (typeof mix === 'string') {\n return mix;\n }\n let resolvedValue;\n let string = '';\n for (let k = 0; k < mix.length; k++) {\n if (mix[k]) {\n if (resolvedValue = toValue(mix[k])) {\n string && (string += ' ');\n string += resolvedValue;\n }\n }\n }\n return string;\n}\nfunction createTailwindMerge(createConfigFirst, ...createConfigRest) {\n let configUtils;\n let cacheGet;\n let cacheSet;\n let functionToCall = initTailwindMerge;\n function initTailwindMerge(classList) {\n const config = createConfigRest.reduce((previousConfig, createConfigCurrent) => createConfigCurrent(previousConfig), createConfigFirst());\n configUtils = createConfigUtils(config);\n cacheGet = configUtils.cache.get;\n cacheSet = configUtils.cache.set;\n functionToCall = tailwindMerge;\n return tailwindMerge(classList);\n }\n function tailwindMerge(classList) {\n const cachedResult = cacheGet(classList);\n if (cachedResult) {\n return cachedResult;\n }\n const result = mergeClassList(classList, configUtils);\n cacheSet(classList, result);\n return result;\n }\n return function callTailwindMerge() {\n return functionToCall(twJoin.apply(null, arguments));\n };\n}\nfunction fromTheme(key) {\n const themeGetter = theme => theme[key] || [];\n themeGetter.isThemeGetter = true;\n return themeGetter;\n}\nconst arbitraryValueRegex = /^\\[(?:([a-z-]+):)?(.+)\\]$/i;\nconst fractionRegex = /^\\d+\\/\\d+$/;\nconst stringLengths = /*#__PURE__*/new Set(['px', 'full', 'screen']);\nconst tshirtUnitRegex = /^(\\d+(\\.\\d+)?)?(xs|sm|md|lg|xl)$/;\nconst lengthUnitRegex = /\\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\\b(calc|min|max|clamp)\\(.+\\)|^0$/;\nconst colorFunctionRegex = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\\(.+\\)$/;\n// Shadow always begins with x and y offset separated by underscore optionally prepended by inset\nconst shadowRegex = /^(inset_)?-?((\\d+)?\\.?(\\d+)[a-z]+|0)_-?((\\d+)?\\.?(\\d+)[a-z]+|0)/;\nconst imageRegex = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\\(.+\\)$/;\nfunction isLength(value) {\n return isNumber(value) || stringLengths.has(value) || fractionRegex.test(value);\n}\nfunction isArbitraryLength(value) {\n return getIsArbitraryValue(value, 'length', isLengthOnly);\n}\nfunction isNumber(value) {\n return Boolean(value) && !Number.isNaN(Number(value));\n}\nfunction isArbitraryNumber(value) {\n return getIsArbitraryValue(value, 'number', isNumber);\n}\nfunction isInteger(value) {\n return Boolean(value) && Number.isInteger(Number(value));\n}\nfunction isPercent(value) {\n return value.endsWith('%') && isNumber(value.slice(0, -1));\n}\nfunction isArbitraryValue(value) {\n return arbitraryValueRegex.test(value);\n}\nfunction isTshirtSize(value) {\n return tshirtUnitRegex.test(value);\n}\nconst sizeLabels = /*#__PURE__*/new Set(['length', 'size', 'percentage']);\nfunction isArbitrarySize(value) {\n return getIsArbitraryValue(value, sizeLabels, isNever);\n}\nfunction isArbitraryPosition(value) {\n return getIsArbitraryValue(value, 'position', isNever);\n}\nconst imageLabels = /*#__PURE__*/new Set(['image', 'url']);\nfunction isArbitraryImage(value) {\n return getIsArbitraryValue(value, imageLabels, isImage);\n}\nfunction isArbitraryShadow(value) {\n return getIsArbitraryValue(value, '', isShadow);\n}\nfunction isAny() {\n return true;\n}\nfunction getIsArbitraryValue(value, label, testValue) {\n const result = arbitraryValueRegex.exec(value);\n if (result) {\n if (result[1]) {\n return typeof label === 'string' ? result[1] === label : label.has(result[1]);\n }\n return testValue(result[2]);\n }\n return false;\n}\nfunction isLengthOnly(value) {\n // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.\n // For example, `hsl(0 0% 0%)` would be classified as a length without this check.\n // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.\n return lengthUnitRegex.test(value) && !colorFunctionRegex.test(value);\n}\nfunction isNever() {\n return false;\n}\nfunction isShadow(value) {\n return shadowRegex.test(value);\n}\nfunction isImage(value) {\n return imageRegex.test(value);\n}\nconst validators = /*#__PURE__*/Object.defineProperty({\n __proto__: null,\n isAny,\n isArbitraryImage,\n isArbitraryLength,\n isArbitraryNumber,\n isArbitraryPosition,\n isArbitraryShadow,\n isArbitrarySize,\n isArbitraryValue,\n isInteger,\n isLength,\n isNumber,\n isPercent,\n isTshirtSize\n}, Symbol.toStringTag, {\n value: 'Module'\n});\nfunction getDefaultConfig() {\n const colors = fromTheme('colors');\n const spacing = fromTheme('spacing');\n const blur = fromTheme('blur');\n const brightness = fromTheme('brightness');\n const borderColor = fromTheme('borderColor');\n const borderRadius = fromTheme('borderRadius');\n const borderSpacing = fromTheme('borderSpacing');\n const borderWidth = fromTheme('borderWidth');\n const contrast = fromTheme('contrast');\n const grayscale = fromTheme('grayscale');\n const hueRotate = fromTheme('hueRotate');\n const invert = fromTheme('invert');\n const gap = fromTheme('gap');\n const gradientColorStops = fromTheme('gradientColorStops');\n const gradientColorStopPositions = fromTheme('gradientColorStopPositions');\n const inset = fromTheme('inset');\n const margin = fromTheme('margin');\n const opacity = fromTheme('opacity');\n const padding = fromTheme('padding');\n const saturate = fromTheme('saturate');\n const scale = fromTheme('scale');\n const sepia = fromTheme('sepia');\n const skew = fromTheme('skew');\n const space = fromTheme('space');\n const translate = fromTheme('translate');\n const getOverscroll = () => ['auto', 'contain', 'none'];\n const getOverflow = () => ['auto', 'hidden', 'clip', 'visible', 'scroll'];\n const getSpacingWithAutoAndArbitrary = () => ['auto', isArbitraryValue, spacing];\n const getSpacingWithArbitrary = () => [isArbitraryValue, spacing];\n const getLengthWithEmptyAndArbitrary = () => ['', isLength, isArbitraryLength];\n const getNumberWithAutoAndArbitrary = () => ['auto', isNumber, isArbitraryValue];\n const getPositions = () => ['bottom', 'center', 'left', 'left-bottom', 'left-top', 'right', 'right-bottom', 'right-top', 'top'];\n const getLineStyles = () => ['solid', 'dashed', 'dotted', 'double', 'none'];\n const getBlendModes = () => ['normal', 'multiply', 'screen', 'overlay', 'darken', 'lighten', 'color-dodge', 'color-burn', 'hard-light', 'soft-light', 'difference', 'exclusion', 'hue', 'saturation', 'color', 'luminosity', 'plus-lighter'];\n const getAlign = () => ['start', 'end', 'center', 'between', 'around', 'evenly', 'stretch'];\n const getZeroAndEmpty = () => ['', '0', isArbitraryValue];\n const getBreaks = () => ['auto', 'avoid', 'all', 'avoid-page', 'page', 'left', 'right', 'column'];\n const getNumber = () => [isNumber, isArbitraryNumber];\n const getNumberAndArbitrary = () => [isNumber, isArbitraryValue];\n return {\n cacheSize: 500,\n separator: ':',\n theme: {\n colors: [isAny],\n spacing: [isLength, isArbitraryLength],\n blur: ['none', '', isTshirtSize, isArbitraryValue],\n brightness: getNumber(),\n borderColor: [colors],\n borderRadius: ['none', '', 'full', isTshirtSize, isArbitraryValue],\n borderSpacing: getSpacingWithArbitrary(),\n borderWidth: getLengthWithEmptyAndArbitrary(),\n contrast: getNumber(),\n grayscale: getZeroAndEmpty(),\n hueRotate: getNumberAndArbitrary(),\n invert: getZeroAndEmpty(),\n gap: getSpacingWithArbitrary(),\n gradientColorStops: [colors],\n gradientColorStopPositions: [isPercent, isArbitraryLength],\n inset: getSpacingWithAutoAndArbitrary(),\n margin: getSpacingWithAutoAndArbitrary(),\n opacity: getNumber(),\n padding: getSpacingWithArbitrary(),\n saturate: getNumber(),\n scale: getNumber(),\n sepia: getZeroAndEmpty(),\n skew: getNumberAndArbitrary(),\n space: getSpacingWithArbitrary(),\n translate: getSpacingWithArbitrary()\n },\n classGroups: {\n // Layout\n /**\n * Aspect Ratio\n * @see https://tailwindcss.com/docs/aspect-ratio\n */\n aspect: [{\n aspect: ['auto', 'square', 'video', isArbitraryValue]\n }],\n /**\n * Container\n * @see https://tailwindcss.com/docs/container\n */\n container: ['container'],\n /**\n * Columns\n * @see https://tailwindcss.com/docs/columns\n */\n columns: [{\n columns: [isTshirtSize]\n }],\n /**\n * Break After\n * @see https://tailwindcss.com/docs/break-after\n */\n 'break-after': [{\n 'break-after': getBreaks()\n }],\n /**\n * Break Before\n * @see https://tailwindcss.com/docs/break-before\n */\n 'break-before': [{\n 'break-before': getBreaks()\n }],\n /**\n * Break Inside\n * @see https://tailwindcss.com/docs/break-inside\n */\n 'break-inside': [{\n 'break-inside': ['auto', 'avoid', 'avoid-page', 'avoid-column']\n }],\n /**\n * Box Decoration Break\n * @see https://tailwindcss.com/docs/box-decoration-break\n */\n 'box-decoration': [{\n 'box-decoration': ['slice', 'clone']\n }],\n /**\n * Box Sizing\n * @see https://tailwindcss.com/docs/box-sizing\n */\n box: [{\n box: ['border', 'content']\n }],\n /**\n * Display\n * @see https://tailwindcss.com/docs/display\n */\n display: ['block', 'inline-block', 'inline', 'flex', 'inline-flex', 'table', 'inline-table', 'table-caption', 'table-cell', 'table-column', 'table-column-group', 'table-footer-group', 'table-header-group', 'table-row-group', 'table-row', 'flow-root', 'grid', 'inline-grid', 'contents', 'list-item', 'hidden'],\n /**\n * Floats\n * @see https://tailwindcss.com/docs/float\n */\n float: [{\n float: ['right', 'left', 'none', 'start', 'end']\n }],\n /**\n * Clear\n * @see https://tailwindcss.com/docs/clear\n */\n clear: [{\n clear: ['left', 'right', 'both', 'none', 'start', 'end']\n }],\n /**\n * Isolation\n * @see https://tailwindcss.com/docs/isolation\n */\n isolation: ['isolate', 'isolation-auto'],\n /**\n * Object Fit\n * @see https://tailwindcss.com/docs/object-fit\n */\n 'object-fit': [{\n object: ['contain', 'cover', 'fill', 'none', 'scale-down']\n }],\n /**\n * Object Position\n * @see https://tailwindcss.com/docs/object-position\n */\n 'object-position': [{\n object: [...getPositions(), isArbitraryValue]\n }],\n /**\n * Overflow\n * @see https://tailwindcss.com/docs/overflow\n */\n overflow: [{\n overflow: getOverflow()\n }],\n /**\n * Overflow X\n * @see https://tailwindcss.com/docs/overflow\n */\n 'overflow-x': [{\n 'overflow-x': getOverflow()\n }],\n /**\n * Overflow Y\n * @see https://tailwindcss.com/docs/overflow\n */\n 'overflow-y': [{\n 'overflow-y': getOverflow()\n }],\n /**\n * Overscroll Behavior\n * @see https://tailwindcss.com/docs/overscroll-behavior\n */\n overscroll: [{\n overscroll: getOverscroll()\n }],\n /**\n * Overscroll Behavior X\n * @see https://tailwindcss.com/docs/overscroll-behavior\n */\n 'overscroll-x': [{\n 'overscroll-x': getOverscroll()\n }],\n /**\n * Overscroll Behavior Y\n * @see https://tailwindcss.com/docs/overscroll-behavior\n */\n 'overscroll-y': [{\n 'overscroll-y': getOverscroll()\n }],\n /**\n * Position\n * @see https://tailwindcss.com/docs/position\n */\n position: ['static', 'fixed', 'absolute', 'relative', 'sticky'],\n /**\n * Top / Right / Bottom / Left\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n inset: [{\n inset: [inset]\n }],\n /**\n * Right / Left\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n 'inset-x': [{\n 'inset-x': [inset]\n }],\n /**\n * Top / Bottom\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n 'inset-y': [{\n 'inset-y': [inset]\n }],\n /**\n * Start\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n start: [{\n start: [inset]\n }],\n /**\n * End\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n end: [{\n end: [inset]\n }],\n /**\n * Top\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n top: [{\n top: [inset]\n }],\n /**\n * Right\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n right: [{\n right: [inset]\n }],\n /**\n * Bottom\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n bottom: [{\n bottom: [inset]\n }],\n /**\n * Left\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n left: [{\n left: [inset]\n }],\n /**\n * Visibility\n * @see https://tailwindcss.com/docs/visibility\n */\n visibility: ['visible', 'invisible', 'collapse'],\n /**\n * Z-Index\n * @see https://tailwindcss.com/docs/z-index\n */\n z: [{\n z: ['auto', isInteger, isArbitraryValue]\n }],\n // Flexbox and Grid\n /**\n * Flex Basis\n * @see https://tailwindcss.com/docs/flex-basis\n */\n basis: [{\n basis: getSpacingWithAutoAndArbitrary()\n }],\n /**\n * Flex Direction\n * @see https://tailwindcss.com/docs/flex-direction\n */\n 'flex-direction': [{\n flex: ['row', 'row-reverse', 'col', 'col-reverse']\n }],\n /**\n * Flex Wrap\n * @see https://tailwindcss.com/docs/flex-wrap\n */\n 'flex-wrap': [{\n flex: ['wrap', 'wrap-reverse', 'nowrap']\n }],\n /**\n * Flex\n * @see https://tailwindcss.com/docs/flex\n */\n flex: [{\n flex: ['1', 'auto', 'initial', 'none', isArbitraryValue]\n }],\n /**\n * Flex Grow\n * @see https://tailwindcss.com/docs/flex-grow\n */\n grow: [{\n grow: getZeroAndEmpty()\n }],\n /**\n * Flex Shrink\n * @see https://tailwindcss.com/docs/flex-shrink\n */\n shrink: [{\n shrink: getZeroAndEmpty()\n }],\n /**\n * Order\n * @see https://tailwindcss.com/docs/order\n */\n order: [{\n order: ['first', 'last', 'none', isInteger, isArbitraryValue]\n }],\n /**\n * Grid Template Columns\n * @see https://tailwindcss.com/docs/grid-template-columns\n */\n 'grid-cols': [{\n 'grid-cols': [isAny]\n }],\n /**\n * Grid Column Start / End\n * @see https://tailwindcss.com/docs/grid-column\n */\n 'col-start-end': [{\n col: ['auto', {\n span: ['full', isInteger, isArbitraryValue]\n }, isArbitraryValue]\n }],\n /**\n * Grid Column Start\n * @see https://tailwindcss.com/docs/grid-column\n */\n 'col-start': [{\n 'col-start': getNumberWithAutoAndArbitrary()\n }],\n /**\n * Grid Column End\n * @see https://tailwindcss.com/docs/grid-column\n */\n 'col-end': [{\n 'col-end': getNumberWithAutoAndArbitrary()\n }],\n /**\n * Grid Template Rows\n * @see https://tailwindcss.com/docs/grid-template-rows\n */\n 'grid-rows': [{\n 'grid-rows': [isAny]\n }],\n /**\n * Grid Row Start / End\n * @see https://tailwindcss.com/docs/grid-row\n */\n 'row-start-end': [{\n row: ['auto', {\n span: [isInteger, isArbitraryValue]\n }, isArbitraryValue]\n }],\n /**\n * Grid Row Start\n * @see https://tailwindcss.com/docs/grid-row\n */\n 'row-start': [{\n 'row-start': getNumberWithAutoAndArbitrary()\n }],\n /**\n * Grid Row End\n * @see https://tailwindcss.com/docs/grid-row\n */\n 'row-end': [{\n 'row-end': getNumberWithAutoAndArbitrary()\n }],\n /**\n * Grid Auto Flow\n * @see https://tailwindcss.com/docs/grid-auto-flow\n */\n 'grid-flow': [{\n 'grid-flow': ['row', 'col', 'dense', 'row-dense', 'col-dense']\n }],\n /**\n * Grid Auto Columns\n * @see https://tailwindcss.com/docs/grid-auto-columns\n */\n 'auto-cols': [{\n 'auto-cols': ['auto', 'min', 'max', 'fr', isArbitraryValue]\n }],\n /**\n * Grid Auto Rows\n * @see https://tailwindcss.com/docs/grid-auto-rows\n */\n 'auto-rows': [{\n 'auto-rows': ['auto', 'min', 'max', 'fr', isArbitraryValue]\n }],\n /**\n * Gap\n * @see https://tailwindcss.com/docs/gap\n */\n gap: [{\n gap: [gap]\n }],\n /**\n * Gap X\n * @see https://tailwindcss.com/docs/gap\n */\n 'gap-x': [{\n 'gap-x': [gap]\n }],\n /**\n * Gap Y\n * @see https://tailwindcss.com/docs/gap\n */\n 'gap-y': [{\n 'gap-y': [gap]\n }],\n /**\n * Justify Content\n * @see https://tailwindcss.com/docs/justify-content\n */\n 'justify-content': [{\n justify: ['normal', ...getAlign()]\n }],\n /**\n * Justify Items\n * @see https://tailwindcss.com/docs/justify-items\n */\n 'justify-items': [{\n 'justify-items': ['start', 'end', 'center', 'stretch']\n }],\n /**\n * Justify Self\n * @see https://tailwindcss.com/docs/justify-self\n */\n 'justify-self': [{\n 'justify-self': ['auto', 'start', 'end', 'center', 'stretch']\n }],\n /**\n * Align Content\n * @see https://tailwindcss.com/docs/align-content\n */\n 'align-content': [{\n content: ['normal', ...getAlign(), 'baseline']\n }],\n /**\n * Align Items\n * @see https://tailwindcss.com/docs/align-items\n */\n 'align-items': [{\n items: ['start', 'end', 'center', 'baseline', 'stretch']\n }],\n /**\n * Align Self\n * @see https://tailwindcss.com/docs/align-self\n */\n 'align-self': [{\n self: ['auto', 'start', 'end', 'center', 'stretch', 'baseline']\n }],\n /**\n * Place Content\n * @see https://tailwindcss.com/docs/place-content\n */\n 'place-content': [{\n 'place-content': [...getAlign(), 'baseline']\n }],\n /**\n * Place Items\n * @see https://tailwindcss.com/docs/place-items\n */\n 'place-items': [{\n 'place-items': ['start', 'end', 'center', 'baseline', 'stretch']\n }],\n /**\n * Place Self\n * @see https://tailwindcss.com/docs/place-self\n */\n 'place-self': [{\n 'place-self': ['auto', 'start', 'end', 'center', 'stretch']\n }],\n // Spacing\n /**\n * Padding\n * @see https://tailwindcss.com/docs/padding\n */\n p: [{\n p: [padding]\n }],\n /**\n * Padding X\n * @see https://tailwindcss.com/docs/padding\n */\n px: [{\n px: [padding]\n }],\n /**\n * Padding Y\n * @see https://tailwindcss.com/docs/padding\n */\n py: [{\n py: [padding]\n }],\n /**\n * Padding Start\n * @see https://tailwindcss.com/docs/padding\n */\n ps: [{\n ps: [padding]\n }],\n /**\n * Padding End\n * @see https://tailwindcss.com/docs/padding\n */\n pe: [{\n pe: [padding]\n }],\n /**\n * Padding Top\n * @see https://tailwindcss.com/docs/padding\n */\n pt: [{\n pt: [padding]\n }],\n /**\n * Padding Right\n * @see https://tailwindcss.com/docs/padding\n */\n pr: [{\n pr: [padding]\n }],\n /**\n * Padding Bottom\n * @see https://tailwindcss.com/docs/padding\n */\n pb: [{\n pb: [padding]\n }],\n /**\n * Padding Left\n * @see https://tailwindcss.com/docs/padding\n */\n pl: [{\n pl: [padding]\n }],\n /**\n * Margin\n * @see https://tailwindcss.com/docs/margin\n */\n m: [{\n m: [margin]\n }],\n /**\n * Margin X\n * @see https://tailwindcss.com/docs/margin\n */\n mx: [{\n mx: [margin]\n }],\n /**\n * Margin Y\n * @see https://tailwindcss.com/docs/margin\n */\n my: [{\n my: [margin]\n }],\n /**\n * Margin Start\n * @see https://tailwindcss.com/docs/margin\n */\n ms: [{\n ms: [margin]\n }],\n /**\n * Margin End\n * @see https://tailwindcss.com/docs/margin\n */\n me: [{\n me: [margin]\n }],\n /**\n * Margin Top\n * @see https://tailwindcss.com/docs/margin\n */\n mt: [{\n mt: [margin]\n }],\n /**\n * Margin Right\n * @see https://tailwindcss.com/docs/margin\n */\n mr: [{\n mr: [margin]\n }],\n /**\n * Margin Bottom\n * @see https://tailwindcss.com/docs/margin\n */\n mb: [{\n mb: [margin]\n }],\n /**\n * Margin Left\n * @see https://tailwindcss.com/docs/margin\n */\n ml: [{\n ml: [margin]\n }],\n /**\n * Space Between X\n * @see https://tailwindcss.com/docs/space\n */\n 'space-x': [{\n 'space-x': [space]\n }],\n /**\n * Space Between X Reverse\n * @see https://tailwindcss.com/docs/space\n */\n 'space-x-reverse': ['space-x-reverse'],\n /**\n * Space Between Y\n * @see https://tailwindcss.com/docs/space\n */\n 'space-y': [{\n 'space-y': [space]\n }],\n /**\n * Space Between Y Reverse\n * @see https://tailwindcss.com/docs/space\n */\n 'space-y-reverse': ['space-y-reverse'],\n // Sizing\n /**\n * Width\n * @see https://tailwindcss.com/docs/width\n */\n w: [{\n w: ['auto', 'min', 'max', 'fit', 'svw', 'lvw', 'dvw', isArbitraryValue, spacing]\n }],\n /**\n * Min-Width\n * @see https://tailwindcss.com/docs/min-width\n */\n 'min-w': [{\n 'min-w': [isArbitraryValue, spacing, 'min', 'max', 'fit']\n }],\n /**\n * Max-Width\n * @see https://tailwindcss.com/docs/max-width\n */\n 'max-w': [{\n 'max-w': [isArbitraryValue, spacing, 'none', 'full', 'min', 'max', 'fit', 'prose', {\n screen: [isTshirtSize]\n }, isTshirtSize]\n }],\n /**\n * Height\n * @see https://tailwindcss.com/docs/height\n */\n h: [{\n h: [isArbitraryValue, spacing, 'auto', 'min', 'max', 'fit', 'svh', 'lvh', 'dvh']\n }],\n /**\n * Min-Height\n * @see https://tailwindcss.com/docs/min-height\n */\n 'min-h': [{\n 'min-h': [isArbitraryValue, spacing, 'min', 'max', 'fit', 'svh', 'lvh', 'dvh']\n }],\n /**\n * Max-Height\n * @see https://tailwindcss.com/docs/max-height\n */\n 'max-h': [{\n 'max-h': [isArbitraryValue, spacing, 'min', 'max', 'fit', 'svh', 'lvh', 'dvh']\n }],\n /**\n * Size\n * @see https://tailwindcss.com/docs/size\n */\n size: [{\n size: [isArbitraryValue, spacing, 'auto', 'min', 'max', 'fit']\n }],\n // Typography\n /**\n * Font Size\n * @see https://tailwindcss.com/docs/font-size\n */\n 'font-size': [{\n text: ['base', isTshirtSize, isArbitraryLength]\n }],\n /**\n * Font Smoothing\n * @see https://tailwindcss.com/docs/font-smoothing\n */\n 'font-smoothing': ['antialiased', 'subpixel-antialiased'],\n /**\n * Font Style\n * @see https://tailwindcss.com/docs/font-style\n */\n 'font-style': ['italic', 'not-italic'],\n /**\n * Font Weight\n * @see https://tailwindcss.com/docs/font-weight\n */\n 'font-weight': [{\n font: ['thin', 'extralight', 'light', 'normal', 'medium', 'semibold', 'bold', 'extrabold', 'black', isArbitraryNumber]\n }],\n /**\n * Font Family\n * @see https://tailwindcss.com/docs/font-family\n */\n 'font-family': [{\n font: [isAny]\n }],\n /**\n * Font Variant Numeric\n * @see https://tailwindcss.com/docs/font-variant-numeric\n */\n 'fvn-normal': ['normal-nums'],\n /**\n * Font Variant Numeric\n * @see https://tailwindcss.com/docs/font-variant-numeric\n */\n 'fvn-ordinal': ['ordinal'],\n /**\n * Font Variant Numeric\n * @see https://tailwindcss.com/docs/font-variant-numeric\n */\n 'fvn-slashed-zero': ['slashed-zero'],\n /**\n * Font Variant Numeric\n * @see https://tailwindcss.com/docs/font-variant-numeric\n */\n 'fvn-figure': ['lining-nums', 'oldstyle-nums'],\n /**\n * Font Variant Numeric\n * @see https://tailwindcss.com/docs/font-variant-numeric\n */\n 'fvn-spacing': ['proportional-nums', 'tabular-nums'],\n /**\n * Font Variant Numeric\n * @see https://tailwindcss.com/docs/font-variant-numeric\n */\n 'fvn-fraction': ['diagonal-fractions', 'stacked-fractons'],\n /**\n * Letter Spacing\n * @see https://tailwindcss.com/docs/letter-spacing\n */\n tracking: [{\n tracking: ['tighter', 'tight', 'normal', 'wide', 'wider', 'widest', isArbitraryValue]\n }],\n /**\n * Line Clamp\n * @see https://tailwindcss.com/docs/line-clamp\n */\n 'line-clamp': [{\n 'line-clamp': ['none', isNumber, isArbitraryNumber]\n }],\n /**\n * Line Height\n * @see https://tailwindcss.com/docs/line-height\n */\n leading: [{\n leading: ['none', 'tight', 'snug', 'normal', 'relaxed', 'loose', isLength, isArbitraryValue]\n }],\n /**\n * List Style Image\n * @see https://tailwindcss.com/docs/list-style-image\n */\n 'list-image': [{\n 'list-image': ['none', isArbitraryValue]\n }],\n /**\n * List Style Type\n * @see https://tailwindcss.com/docs/list-style-type\n */\n 'list-style-type': [{\n list: ['none', 'disc', 'decimal', isArbitraryValue]\n }],\n /**\n * List Style Position\n * @see https://tailwindcss.com/docs/list-style-position\n */\n 'list-style-position': [{\n list: ['inside', 'outside']\n }],\n /**\n * Placeholder Color\n * @deprecated since Tailwind CSS v3.0.0\n * @see https://tailwindcss.com/docs/placeholder-color\n */\n 'placeholder-color': [{\n placeholder: [colors]\n }],\n /**\n * Placeholder Opacity\n * @see https://tailwindcss.com/docs/placeholder-opacity\n */\n 'placeholder-opacity': [{\n 'placeholder-opacity': [opacity]\n }],\n /**\n * Text Alignment\n * @see https://tailwindcss.com/docs/text-align\n */\n 'text-alignment': [{\n text: ['left', 'center', 'right', 'justify', 'start', 'end']\n }],\n /**\n * Text Color\n * @see https://tailwindcss.com/docs/text-color\n */\n 'text-color': [{\n text: [colors]\n }],\n /**\n * Text Opacity\n * @see https://tailwindcss.com/docs/text-opacity\n */\n 'text-opacity': [{\n 'text-opacity': [opacity]\n }],\n /**\n * Text Decoration\n * @see https://tailwindcss.com/docs/text-decoration\n */\n 'text-decoration': ['underline', 'overline', 'line-through', 'no-underline'],\n /**\n * Text Decoration Style\n * @see https://tailwindcss.com/docs/text-decoration-style\n */\n 'text-decoration-style': [{\n decoration: [...getLineStyles(), 'wavy']\n }],\n /**\n * Text Decoration Thickness\n * @see https://tailwindcss.com/docs/text-decoration-thickness\n */\n 'text-decoration-thickness': [{\n decoration: ['auto', 'from-font', isLength, isArbitraryLength]\n }],\n /**\n * Text Underline Offset\n * @see https://tailwindcss.com/docs/text-underline-offset\n */\n 'underline-offset': [{\n 'underline-offset': ['auto', isLength, isArbitraryValue]\n }],\n /**\n * Text Decoration Color\n * @see https://tailwindcss.com/docs/text-decoration-color\n */\n 'text-decoration-color': [{\n decoration: [colors]\n }],\n /**\n * Text Transform\n * @see https://tailwindcss.com/docs/text-transform\n */\n 'text-transform': ['uppercase', 'lowercase', 'capitalize', 'normal-case'],\n /**\n * Text Overflow\n * @see https://tailwindcss.com/docs/text-overflow\n */\n 'text-overflow': ['truncate', 'text-ellipsis', 'text-clip'],\n /**\n * Text Wrap\n * @see https://tailwindcss.com/docs/text-wrap\n */\n 'text-wrap': [{\n text: ['wrap', 'nowrap', 'balance', 'pretty']\n }],\n /**\n * Text Indent\n * @see https://tailwindcss.com/docs/text-indent\n */\n indent: [{\n indent: getSpacingWithArbitrary()\n }],\n /**\n * Vertical Alignment\n * @see https://tailwindcss.com/docs/vertical-align\n */\n 'vertical-align': [{\n align: ['baseline', 'top', 'middle', 'bottom', 'text-top', 'text-bottom', 'sub', 'super', isArbitraryValue]\n }],\n /**\n * Whitespace\n * @see https://tailwindcss.com/docs/whitespace\n */\n whitespace: [{\n whitespace: ['normal', 'nowrap', 'pre', 'pre-line', 'pre-wrap', 'break-spaces']\n }],\n /**\n * Word Break\n * @see https://tailwindcss.com/docs/word-break\n */\n break: [{\n break: ['normal', 'words', 'all', 'keep']\n }],\n /**\n * Hyphens\n * @see https://tailwindcss.com/docs/hyphens\n */\n hyphens: [{\n hyphens: ['none', 'manual', 'auto']\n }],\n /**\n * Content\n * @see https://tailwindcss.com/docs/content\n */\n content: [{\n content: ['none', isArbitraryValue]\n }],\n // Backgrounds\n /**\n * Background Attachment\n * @see https://tailwindcss.com/docs/background-attachment\n */\n 'bg-attachment': [{\n bg: ['fixed', 'local', 'scroll']\n }],\n /**\n * Background Clip\n * @see https://tailwindcss.com/docs/background-clip\n */\n 'bg-clip': [{\n 'bg-clip': ['border', 'padding', 'content', 'text']\n }],\n /**\n * Background Opacity\n * @deprecated since Tailwind CSS v3.0.0\n * @see https://tailwindcss.com/docs/background-opacity\n */\n 'bg-opacity': [{\n 'bg-opacity': [opacity]\n }],\n /**\n * Background Origin\n * @see https://tailwindcss.com/docs/background-origin\n */\n 'bg-origin': [{\n 'bg-origin': ['border', 'padding', 'content']\n }],\n /**\n * Background Position\n * @see https://tailwindcss.com/docs/background-position\n */\n 'bg-position': [{\n bg: [...getPositions(), isArbitraryPosition]\n }],\n /**\n * Background Repeat\n * @see https://tailwindcss.com/docs/background-repeat\n */\n 'bg-repeat': [{\n bg: ['no-repeat', {\n repeat: ['', 'x', 'y', 'round', 'space']\n }]\n }],\n /**\n * Background Size\n * @see https://tailwindcss.com/docs/background-size\n */\n 'bg-size': [{\n bg: ['auto', 'cover', 'contain', isArbitrarySize]\n }],\n /**\n * Background Image\n * @see https://tailwindcss.com/docs/background-image\n */\n 'bg-image': [{\n bg: ['none', {\n 'gradient-to': ['t', 'tr', 'r', 'br', 'b', 'bl', 'l', 'tl']\n }, isArbitraryImage]\n }],\n /**\n * Background Color\n * @see https://tailwindcss.com/docs/background-color\n */\n 'bg-color': [{\n bg: [colors]\n }],\n /**\n * Gradient Color Stops From Position\n * @see https://tailwindcss.com/docs/gradient-color-stops\n */\n 'gradient-from-pos': [{\n from: [gradientColorStopPositions]\n }],\n /**\n * Gradient Color Stops Via Position\n * @see https://tailwindcss.com/docs/gradient-color-stops\n */\n 'gradient-via-pos': [{\n via: [gradientColorStopPositions]\n }],\n /**\n * Gradient Color Stops To Position\n * @see https://tailwindcss.com/docs/gradient-color-stops\n */\n 'gradient-to-pos': [{\n to: [gradientColorStopPositions]\n }],\n /**\n * Gradient Color Stops From\n * @see https://tailwindcss.com/docs/gradient-color-stops\n */\n 'gradient-from': [{\n from: [gradientColorStops]\n }],\n /**\n * Gradient Color Stops Via\n * @see https://tailwindcss.com/docs/gradient-color-stops\n */\n 'gradient-via': [{\n via: [gradientColorStops]\n }],\n /**\n * Gradient Color Stops To\n * @see https://tailwindcss.com/docs/gradient-color-stops\n */\n 'gradient-to': [{\n to: [gradientColorStops]\n }],\n // Borders\n /**\n * Border Radius\n * @see https://tailwindcss.com/docs/border-radius\n */\n rounded: [{\n rounded: [borderRadius]\n }],\n /**\n * Border Radius Start\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-s': [{\n 'rounded-s': [borderRadius]\n }],\n /**\n * Border Radius End\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-e': [{\n 'rounded-e': [borderRadius]\n }],\n /**\n * Border Radius Top\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-t': [{\n 'rounded-t': [borderRadius]\n }],\n /**\n * Border Radius Right\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-r': [{\n 'rounded-r': [borderRadius]\n }],\n /**\n * Border Radius Bottom\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-b': [{\n 'rounded-b': [borderRadius]\n }],\n /**\n * Border Radius Left\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-l': [{\n 'rounded-l': [borderRadius]\n }],\n /**\n * Border Radius Start Start\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-ss': [{\n 'rounded-ss': [borderRadius]\n }],\n /**\n * Border Radius Start End\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-se': [{\n 'rounded-se': [borderRadius]\n }],\n /**\n * Border Radius End End\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-ee': [{\n 'rounded-ee': [borderRadius]\n }],\n /**\n * Border Radius End Start\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-es': [{\n 'rounded-es': [borderRadius]\n }],\n /**\n * Border Radius Top Left\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-tl': [{\n 'rounded-tl': [borderRadius]\n }],\n /**\n * Border Radius Top Right\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-tr': [{\n 'rounded-tr': [borderRadius]\n }],\n /**\n * Border Radius Bottom Right\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-br': [{\n 'rounded-br': [borderRadius]\n }],\n /**\n * Border Radius Bottom Left\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-bl': [{\n 'rounded-bl': [borderRadius]\n }],\n /**\n * Border Width\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w': [{\n border: [borderWidth]\n }],\n /**\n * Border Width X\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-x': [{\n 'border-x': [borderWidth]\n }],\n /**\n * Border Width Y\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-y': [{\n 'border-y': [borderWidth]\n }],\n /**\n * Border Width Start\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-s': [{\n 'border-s': [borderWidth]\n }],\n /**\n * Border Width End\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-e': [{\n 'border-e': [borderWidth]\n }],\n /**\n * Border Width Top\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-t': [{\n 'border-t': [borderWidth]\n }],\n /**\n * Border Width Right\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-r': [{\n 'border-r': [borderWidth]\n }],\n /**\n * Border Width Bottom\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-b': [{\n 'border-b': [borderWidth]\n }],\n /**\n * Border Width Left\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-l': [{\n 'border-l': [borderWidth]\n }],\n /**\n * Border Opacity\n * @see https://tailwindcss.com/docs/border-opacity\n */\n 'border-opacity': [{\n 'border-opacity': [opacity]\n }],\n /**\n * Border Style\n * @see https://tailwindcss.com/docs/border-style\n */\n 'border-style': [{\n border: [...getLineStyles(), 'hidden']\n }],\n /**\n * Divide Width X\n * @see https://tailwindcss.com/docs/divide-width\n */\n 'divide-x': [{\n 'divide-x': [borderWidth]\n }],\n /**\n * Divide Width X Reverse\n * @see https://tailwindcss.com/docs/divide-width\n */\n 'divide-x-reverse': ['divide-x-reverse'],\n /**\n * Divide Width Y\n * @see https://tailwindcss.com/docs/divide-width\n */\n 'divide-y': [{\n 'divide-y': [borderWidth]\n }],\n /**\n * Divide Width Y Reverse\n * @see https://tailwindcss.com/docs/divide-width\n */\n 'divide-y-reverse': ['divide-y-reverse'],\n /**\n * Divide Opacity\n * @see https://tailwindcss.com/docs/divide-opacity\n */\n 'divide-opacity': [{\n 'divide-opacity': [opacity]\n }],\n /**\n * Divide Style\n * @see https://tailwindcss.com/docs/divide-style\n */\n 'divide-style': [{\n divide: getLineStyles()\n }],\n /**\n * Border Color\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color': [{\n border: [borderColor]\n }],\n /**\n * Border Color X\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color-x': [{\n 'border-x': [borderColor]\n }],\n /**\n * Border Color Y\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color-y': [{\n 'border-y': [borderColor]\n }],\n /**\n * Border Color Top\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color-t': [{\n 'border-t': [borderColor]\n }],\n /**\n * Border Color Right\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color-r': [{\n 'border-r': [borderColor]\n }],\n /**\n * Border Color Bottom\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color-b': [{\n 'border-b': [borderColor]\n }],\n /**\n * Border Color Left\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color-l': [{\n 'border-l': [borderColor]\n }],\n /**\n * Divide Color\n * @see https://tailwindcss.com/docs/divide-color\n */\n 'divide-color': [{\n divide: [borderColor]\n }],\n /**\n * Outline Style\n * @see https://tailwindcss.com/docs/outline-style\n */\n 'outline-style': [{\n outline: ['', ...getLineStyles()]\n }],\n /**\n * Outline Offset\n * @see https://tailwindcss.com/docs/outline-offset\n */\n 'outline-offset': [{\n 'outline-offset': [isLength, isArbitraryValue]\n }],\n /**\n * Outline Width\n * @see https://tailwindcss.com/docs/outline-width\n */\n 'outline-w': [{\n outline: [isLength, isArbitraryLength]\n }],\n /**\n * Outline Color\n * @see https://tailwindcss.com/docs/outline-color\n */\n 'outline-color': [{\n outline: [colors]\n }],\n /**\n * Ring Width\n * @see https://tailwindcss.com/docs/ring-width\n */\n 'ring-w': [{\n ring: getLengthWithEmptyAndArbitrary()\n }],\n /**\n * Ring Width Inset\n * @see https://tailwindcss.com/docs/ring-width\n */\n 'ring-w-inset': ['ring-inset'],\n /**\n * Ring Color\n * @see https://tailwindcss.com/docs/ring-color\n */\n 'ring-color': [{\n ring: [colors]\n }],\n /**\n * Ring Opacity\n * @see https://tailwindcss.com/docs/ring-opacity\n */\n 'ring-opacity': [{\n 'ring-opacity': [opacity]\n }],\n /**\n * Ring Offset Width\n * @see https://tailwindcss.com/docs/ring-offset-width\n */\n 'ring-offset-w': [{\n 'ring-offset': [isLength, isArbitraryLength]\n }],\n /**\n * Ring Offset Color\n * @see https://tailwindcss.com/docs/ring-offset-color\n */\n 'ring-offset-color': [{\n 'ring-offset': [colors]\n }],\n // Effects\n /**\n * Box Shadow\n * @see https://tailwindcss.com/docs/box-shadow\n */\n shadow: [{\n shadow: ['', 'inner', 'none', isTshirtSize, isArbitraryShadow]\n }],\n /**\n * Box Shadow Color\n * @see https://tailwindcss.com/docs/box-shadow-color\n */\n 'shadow-color': [{\n shadow: [isAny]\n }],\n /**\n * Opacity\n * @see https://tailwindcss.com/docs/opacity\n */\n opacity: [{\n opacity: [opacity]\n }],\n /**\n * Mix Blend Mode\n * @see https://tailwindcss.com/docs/mix-blend-mode\n */\n 'mix-blend': [{\n 'mix-blend': getBlendModes()\n }],\n /**\n * Background Blend Mode\n * @see https://tailwindcss.com/docs/background-blend-mode\n */\n 'bg-blend': [{\n 'bg-blend': getBlendModes()\n }],\n // Filters\n /**\n * Filter\n * @deprecated since Tailwind CSS v3.0.0\n * @see https://tailwindcss.com/docs/filter\n */\n filter: [{\n filter: ['', 'none']\n }],\n /**\n * Blur\n * @see https://tailwindcss.com/docs/blur\n */\n blur: [{\n blur: [blur]\n }],\n /**\n * Brightness\n * @see https://tailwindcss.com/docs/brightness\n */\n brightness: [{\n brightness: [brightness]\n }],\n /**\n * Contrast\n * @see https://tailwindcss.com/docs/contrast\n */\n contrast: [{\n contrast: [contrast]\n }],\n /**\n * Drop Shadow\n * @see https://tailwindcss.com/docs/drop-shadow\n */\n 'drop-shadow': [{\n 'drop-shadow': ['', 'none', isTshirtSize, isArbitraryValue]\n }],\n /**\n * Grayscale\n * @see https://tailwindcss.com/docs/grayscale\n */\n grayscale: [{\n grayscale: [grayscale]\n }],\n /**\n * Hue Rotate\n * @see https://tailwindcss.com/docs/hue-rotate\n */\n 'hue-rotate': [{\n 'hue-rotate': [hueRotate]\n }],\n /**\n * Invert\n * @see https://tailwindcss.com/docs/invert\n */\n invert: [{\n invert: [invert]\n }],\n /**\n * Saturate\n * @see https://tailwindcss.com/docs/saturate\n */\n saturate: [{\n saturate: [saturate]\n }],\n /**\n * Sepia\n * @see https://tailwindcss.com/docs/sepia\n */\n sepia: [{\n sepia: [sepia]\n }],\n /**\n * Backdrop Filter\n * @deprecated since Tailwind CSS v3.0.0\n * @see https://tailwindcss.com/docs/backdrop-filter\n */\n 'backdrop-filter': [{\n 'backdrop-filter': ['', 'none']\n }],\n /**\n * Backdrop Blur\n * @see https://tailwindcss.com/docs/backdrop-blur\n */\n 'backdrop-blur': [{\n 'backdrop-blur': [blur]\n }],\n /**\n * Backdrop Brightness\n * @see https://tailwindcss.com/docs/backdrop-brightness\n */\n 'backdrop-brightness': [{\n 'backdrop-brightness': [brightness]\n }],\n /**\n * Backdrop Contrast\n * @see https://tailwindcss.com/docs/backdrop-contrast\n */\n 'backdrop-contrast': [{\n 'backdrop-contrast': [contrast]\n }],\n /**\n * Backdrop Grayscale\n * @see https://tailwindcss.com/docs/backdrop-grayscale\n */\n 'backdrop-grayscale': [{\n 'backdrop-grayscale': [grayscale]\n }],\n /**\n * Backdrop Hue Rotate\n * @see https://tailwindcss.com/docs/backdrop-hue-rotate\n */\n 'backdrop-hue-rotate': [{\n 'backdrop-hue-rotate': [hueRotate]\n }],\n /**\n * Backdrop Invert\n * @see https://tailwindcss.com/docs/backdrop-invert\n */\n 'backdrop-invert': [{\n 'backdrop-invert': [invert]\n }],\n /**\n * Backdrop Opacity\n * @see https://tailwindcss.com/docs/backdrop-opacity\n */\n 'backdrop-opacity': [{\n 'backdrop-opacity': [opacity]\n }],\n /**\n * Backdrop Saturate\n * @see https://tailwindcss.com/docs/backdrop-saturate\n */\n 'backdrop-saturate': [{\n 'backdrop-saturate': [saturate]\n }],\n /**\n * Backdrop Sepia\n * @see https://tailwindcss.com/docs/backdrop-sepia\n */\n 'backdrop-sepia': [{\n 'backdrop-sepia': [sepia]\n }],\n // Tables\n /**\n * Border Collapse\n * @see https://tailwindcss.com/docs/border-collapse\n */\n 'border-collapse': [{\n border: ['collapse', 'separate']\n }],\n /**\n * Border Spacing\n * @see https://tailwindcss.com/docs/border-spacing\n */\n 'border-spacing': [{\n 'border-spacing': [borderSpacing]\n }],\n /**\n * Border Spacing X\n * @see https://tailwindcss.com/docs/border-spacing\n */\n 'border-spacing-x': [{\n 'border-spacing-x': [borderSpacing]\n }],\n /**\n * Border Spacing Y\n * @see https://tailwindcss.com/docs/border-spacing\n */\n 'border-spacing-y': [{\n 'border-spacing-y': [borderSpacing]\n }],\n /**\n * Table Layout\n * @see https://tailwindcss.com/docs/table-layout\n */\n 'table-layout': [{\n table: ['auto', 'fixed']\n }],\n /**\n * Caption Side\n * @see https://tailwindcss.com/docs/caption-side\n */\n caption: [{\n caption: ['top', 'bottom']\n }],\n // Transitions and Animation\n /**\n * Tranisition Property\n * @see https://tailwindcss.com/docs/transition-property\n */\n transition: [{\n transition: ['none', 'all', '', 'colors', 'opacity', 'shadow', 'transform', isArbitraryValue]\n }],\n /**\n * Transition Duration\n * @see https://tailwindcss.com/docs/transition-duration\n */\n duration: [{\n duration: getNumberAndArbitrary()\n }],\n /**\n * Transition Timing Function\n * @see https://tailwindcss.com/docs/transition-timing-function\n */\n ease: [{\n ease: ['linear', 'in', 'out', 'in-out', isArbitraryValue]\n }],\n /**\n * Transition Delay\n * @see https://tailwindcss.com/docs/transition-delay\n */\n delay: [{\n delay: getNumberAndArbitrary()\n }],\n /**\n * Animation\n * @see https://tailwindcss.com/docs/animation\n */\n animate: [{\n animate: ['none', 'spin', 'ping', 'pulse', 'bounce', isArbitraryValue]\n }],\n // Transforms\n /**\n * Transform\n * @see https://tailwindcss.com/docs/transform\n */\n transform: [{\n transform: ['', 'gpu', 'none']\n }],\n /**\n * Scale\n * @see https://tailwindcss.com/docs/scale\n */\n scale: [{\n scale: [scale]\n }],\n /**\n * Scale X\n * @see https://tailwindcss.com/docs/scale\n */\n 'scale-x': [{\n 'scale-x': [scale]\n }],\n /**\n * Scale Y\n * @see https://tailwindcss.com/docs/scale\n */\n 'scale-y': [{\n 'scale-y': [scale]\n }],\n /**\n * Rotate\n * @see https://tailwindcss.com/docs/rotate\n */\n rotate: [{\n rotate: [isInteger, isArbitraryValue]\n }],\n /**\n * Translate X\n * @see https://tailwindcss.com/docs/translate\n */\n 'translate-x': [{\n 'translate-x': [translate]\n }],\n /**\n * Translate Y\n * @see https://tailwindcss.com/docs/translate\n */\n 'translate-y': [{\n 'translate-y': [translate]\n }],\n /**\n * Skew X\n * @see https://tailwindcss.com/docs/skew\n */\n 'skew-x': [{\n 'skew-x': [skew]\n }],\n /**\n * Skew Y\n * @see https://tailwindcss.com/docs/skew\n */\n 'skew-y': [{\n 'skew-y': [skew]\n }],\n /**\n * Transform Origin\n * @see https://tailwindcss.com/docs/transform-origin\n */\n 'transform-origin': [{\n origin: ['center', 'top', 'top-right', 'right', 'bottom-right', 'bottom', 'bottom-left', 'left', 'top-left', isArbitraryValue]\n }],\n // Interactivity\n /**\n * Accent Color\n * @see https://tailwindcss.com/docs/accent-color\n */\n accent: [{\n accent: ['auto', colors]\n }],\n /**\n * Appearance\n * @see https://tailwindcss.com/docs/appearance\n */\n appearance: [{\n appearance: ['none', 'auto']\n }],\n /**\n * Cursor\n * @see https://tailwindcss.com/docs/cursor\n */\n cursor: [{\n cursor: ['auto', 'default', 'pointer', 'wait', 'text', 'move', 'help', 'not-allowed', 'none', 'context-menu', 'progress', 'cell', 'crosshair', 'vertical-text', 'alias', 'copy', 'no-drop', 'grab', 'grabbing', 'all-scroll', 'col-resize', 'row-resize', 'n-resize', 'e-resize', 's-resize', 'w-resize', 'ne-resize', 'nw-resize', 'se-resize', 'sw-resize', 'ew-resize', 'ns-resize', 'nesw-resize', 'nwse-resize', 'zoom-in', 'zoom-out', isArbitraryValue]\n }],\n /**\n * Caret Color\n * @see https://tailwindcss.com/docs/just-in-time-mode#caret-color-utilities\n */\n 'caret-color': [{\n caret: [colors]\n }],\n /**\n * Pointer Events\n * @see https://tailwindcss.com/docs/pointer-events\n */\n 'pointer-events': [{\n 'pointer-events': ['none', 'auto']\n }],\n /**\n * Resize\n * @see https://tailwindcss.com/docs/resize\n */\n resize: [{\n resize: ['none', 'y', 'x', '']\n }],\n /**\n * Scroll Behavior\n * @see https://tailwindcss.com/docs/scroll-behavior\n */\n 'scroll-behavior': [{\n scroll: ['auto', 'smooth']\n }],\n /**\n * Scroll Margin\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-m': [{\n 'scroll-m': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Margin X\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-mx': [{\n 'scroll-mx': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Margin Y\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-my': [{\n 'scroll-my': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Margin Start\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-ms': [{\n 'scroll-ms': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Margin End\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-me': [{\n 'scroll-me': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Margin Top\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-mt': [{\n 'scroll-mt': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Margin Right\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-mr': [{\n 'scroll-mr': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Margin Bottom\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-mb': [{\n 'scroll-mb': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Margin Left\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-ml': [{\n 'scroll-ml': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-p': [{\n 'scroll-p': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding X\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-px': [{\n 'scroll-px': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding Y\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-py': [{\n 'scroll-py': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding Start\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-ps': [{\n 'scroll-ps': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding End\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-pe': [{\n 'scroll-pe': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding Top\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-pt': [{\n 'scroll-pt': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding Right\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-pr': [{\n 'scroll-pr': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding Bottom\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-pb': [{\n 'scroll-pb': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding Left\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-pl': [{\n 'scroll-pl': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Snap Align\n * @see https://tailwindcss.com/docs/scroll-snap-align\n */\n 'snap-align': [{\n snap: ['start', 'end', 'center', 'align-none']\n }],\n /**\n * Scroll Snap Stop\n * @see https://tailwindcss.com/docs/scroll-snap-stop\n */\n 'snap-stop': [{\n snap: ['normal', 'always']\n }],\n /**\n * Scroll Snap Type\n * @see https://tailwindcss.com/docs/scroll-snap-type\n */\n 'snap-type': [{\n snap: ['none', 'x', 'y', 'both']\n }],\n /**\n * Scroll Snap Type Strictness\n * @see https://tailwindcss.com/docs/scroll-snap-type\n */\n 'snap-strictness': [{\n snap: ['mandatory', 'proximity']\n }],\n /**\n * Touch Action\n * @see https://tailwindcss.com/docs/touch-action\n */\n touch: [{\n touch: ['auto', 'none', 'manipulation']\n }],\n /**\n * Touch Action X\n * @see https://tailwindcss.com/docs/touch-action\n */\n 'touch-x': [{\n 'touch-pan': ['x', 'left', 'right']\n }],\n /**\n * Touch Action Y\n * @see https://tailwindcss.com/docs/touch-action\n */\n 'touch-y': [{\n 'touch-pan': ['y', 'up', 'down']\n }],\n /**\n * Touch Action Pinch Zoom\n * @see https://tailwindcss.com/docs/touch-action\n */\n 'touch-pz': ['touch-pinch-zoom'],\n /**\n * User Select\n * @see https://tailwindcss.com/docs/user-select\n */\n select: [{\n select: ['none', 'text', 'all', 'auto']\n }],\n /**\n * Will Change\n * @see https://tailwindcss.com/docs/will-change\n */\n 'will-change': [{\n 'will-change': ['auto', 'scroll', 'contents', 'transform', isArbitraryValue]\n }],\n // SVG\n /**\n * Fill\n * @see https://tailwindcss.com/docs/fill\n */\n fill: [{\n fill: [colors, 'none']\n }],\n /**\n * Stroke Width\n * @see https://tailwindcss.com/docs/stroke-width\n */\n 'stroke-w': [{\n stroke: [isLength, isArbitraryLength, isArbitraryNumber]\n }],\n /**\n * Stroke\n * @see https://tailwindcss.com/docs/stroke\n */\n stroke: [{\n stroke: [colors, 'none']\n }],\n // Accessibility\n /**\n * Screen Readers\n * @see https://tailwindcss.com/docs/screen-readers\n */\n sr: ['sr-only', 'not-sr-only'],\n /**\n * Forced Color Adjust\n * @see https://tailwindcss.com/docs/forced-color-adjust\n */\n 'forced-color-adjust': [{\n 'forced-color-adjust': ['auto', 'none']\n }]\n },\n conflictingClassGroups: {\n overflow: ['overflow-x', 'overflow-y'],\n overscroll: ['overscroll-x', 'overscroll-y'],\n inset: ['inset-x', 'inset-y', 'start', 'end', 'top', 'right', 'bottom', 'left'],\n 'inset-x': ['right', 'left'],\n 'inset-y': ['top', 'bottom'],\n flex: ['basis', 'grow', 'shrink'],\n gap: ['gap-x', 'gap-y'],\n p: ['px', 'py', 'ps', 'pe', 'pt', 'pr', 'pb', 'pl'],\n px: ['pr', 'pl'],\n py: ['pt', 'pb'],\n m: ['mx', 'my', 'ms', 'me', 'mt', 'mr', 'mb', 'ml'],\n mx: ['mr', 'ml'],\n my: ['mt', 'mb'],\n size: ['w', 'h'],\n 'font-size': ['leading'],\n 'fvn-normal': ['fvn-ordinal', 'fvn-slashed-zero', 'fvn-figure', 'fvn-spacing', 'fvn-fraction'],\n 'fvn-ordinal': ['fvn-normal'],\n 'fvn-slashed-zero': ['fvn-normal'],\n 'fvn-figure': ['fvn-normal'],\n 'fvn-spacing': ['fvn-normal'],\n 'fvn-fraction': ['fvn-normal'],\n 'line-clamp': ['display', 'overflow'],\n rounded: ['rounded-s', 'rounded-e', 'rounded-t', 'rounded-r', 'rounded-b', 'rounded-l', 'rounded-ss', 'rounded-se', 'rounded-ee', 'rounded-es', 'rounded-tl', 'rounded-tr', 'rounded-br', 'rounded-bl'],\n 'rounded-s': ['rounded-ss', 'rounded-es'],\n 'rounded-e': ['rounded-se', 'rounded-ee'],\n 'rounded-t': ['rounded-tl', 'rounded-tr'],\n 'rounded-r': ['rounded-tr', 'rounded-br'],\n 'rounded-b': ['rounded-br', 'rounded-bl'],\n 'rounded-l': ['rounded-tl', 'rounded-bl'],\n 'border-spacing': ['border-spacing-x', 'border-spacing-y'],\n 'border-w': ['border-w-s', 'border-w-e', 'border-w-t', 'border-w-r', 'border-w-b', 'border-w-l'],\n 'border-w-x': ['border-w-r', 'border-w-l'],\n 'border-w-y': ['border-w-t', 'border-w-b'],\n 'border-color': ['border-color-t', 'border-color-r', 'border-color-b', 'border-color-l'],\n 'border-color-x': ['border-color-r', 'border-color-l'],\n 'border-color-y': ['border-color-t', 'border-color-b'],\n 'scroll-m': ['scroll-mx', 'scroll-my', 'scroll-ms', 'scroll-me', 'scroll-mt', 'scroll-mr', 'scroll-mb', 'scroll-ml'],\n 'scroll-mx': ['scroll-mr', 'scroll-ml'],\n 'scroll-my': ['scroll-mt', 'scroll-mb'],\n 'scroll-p': ['scroll-px', 'scroll-py', 'scroll-ps', 'scroll-pe', 'scroll-pt', 'scroll-pr', 'scroll-pb', 'scroll-pl'],\n 'scroll-px': ['scroll-pr', 'scroll-pl'],\n 'scroll-py': ['scroll-pt', 'scroll-pb'],\n touch: ['touch-x', 'touch-y', 'touch-pz'],\n 'touch-x': ['touch'],\n 'touch-y': ['touch'],\n 'touch-pz': ['touch']\n },\n conflictingClassGroupModifiers: {\n 'font-size': ['leading']\n }\n };\n}\n\n/**\n * @param baseConfig Config where other config will be merged into. This object will be mutated.\n * @param configExtension Partial config to merge into the `baseConfig`.\n */\nfunction mergeConfigs(baseConfig, {\n cacheSize,\n prefix,\n separator,\n extend = {},\n override = {}\n}) {\n overrideProperty(baseConfig, 'cacheSize', cacheSize);\n overrideProperty(baseConfig, 'prefix', prefix);\n overrideProperty(baseConfig, 'separator', separator);\n for (const configKey in override) {\n overrideConfigProperties(baseConfig[configKey], override[configKey]);\n }\n for (const key in extend) {\n mergeConfigProperties(baseConfig[key], extend[key]);\n }\n return baseConfig;\n}\nfunction overrideProperty(baseObject, overrideKey, overrideValue) {\n if (overrideValue !== undefined) {\n baseObject[overrideKey] = overrideValue;\n }\n}\nfunction overrideConfigProperties(baseObject, overrideObject) {\n if (overrideObject) {\n for (const key in overrideObject) {\n overrideProperty(baseObject, key, overrideObject[key]);\n }\n }\n}\nfunction mergeConfigProperties(baseObject, mergeObject) {\n if (mergeObject) {\n for (const key in mergeObject) {\n const mergeValue = mergeObject[key];\n if (mergeValue !== undefined) {\n baseObject[key] = (baseObject[key] || []).concat(mergeValue);\n }\n }\n }\n}\nfunction extendTailwindMerge(configExtension, ...createConfig) {\n return typeof configExtension === 'function' ? createTailwindMerge(getDefaultConfig, configExtension, ...createConfig) : createTailwindMerge(() => mergeConfigs(getDefaultConfig(), configExtension), ...createConfig);\n}\nconst twMerge = /*#__PURE__*/createTailwindMerge(getDefaultConfig);\nexport { createTailwindMerge, extendTailwindMerge, fromTheme, getDefaultConfig, mergeConfigs, twJoin, twMerge, validators };\n//# sourceMappingURL=bundle-mjs.mjs.map\n","function isObject(item) {\n return item !== null && typeof item === \"object\" && item.constructor === Object;\n}\n\nexport { isObject };\n//# sourceMappingURL=is-object.mjs.map\n","import { isObject } from './is-object.mjs';\n\nfunction cloneDeep(source) {\n if (!isObject(source)) {\n return source;\n }\n const output = {};\n for (const key in source) {\n output[key] = cloneDeep(source[key]);\n }\n return output;\n}\n\nexport { cloneDeep };\n//# sourceMappingURL=clone-deep.mjs.map\n","import { cloneDeep } from './clone-deep.mjs';\nimport { isObject } from './is-object.mjs';\n\nfunction mergeDeep(target, source) {\n if (isObject(source) && Object.keys(source).length === 0) {\n return cloneDeep({ ...target, ...source });\n }\n const output = { ...target, ...source };\n if (isObject(source) && isObject(target)) {\n for (const key in source) {\n if (isObject(source[key]) && key in target && isObject(target[key])) {\n output[key] = mergeDeep(target[key], source[key]);\n } else {\n output[key] = isObject(source[key]) ? cloneDeep(source[key]) : source[key];\n }\n }\n }\n return output;\n}\n\nexport { mergeDeep };\n//# sourceMappingURL=merge-deep.mjs.map\n","import { createTheme } from '../../helpers/create-theme.mjs';\n\nconst accordionTheme = createTheme({\n root: {\n base: \"divide-y divide-gray-200 border-gray-200 dark:divide-gray-700 dark:border-gray-700\",\n flush: {\n off: \"rounded-lg border\",\n on: \"border-b\"\n }\n },\n content: {\n base: \"p-5 first:rounded-t-lg last:rounded-b-lg dark:bg-gray-900\"\n },\n title: {\n arrow: {\n base: \"h-6 w-6 shrink-0\",\n open: {\n off: \"\",\n on: \"rotate-180\"\n }\n },\n base: \"flex w-full items-center justify-between p-5 text-left font-medium text-gray-500 first:rounded-t-lg last:rounded-b-lg dark:text-gray-400\",\n flush: {\n off: \"hover:bg-gray-100 focus:ring-4 focus:ring-gray-200 dark:hover:bg-gray-800 dark:focus:ring-gray-800\",\n on: \"bg-transparent dark:bg-transparent\"\n },\n heading: \"\",\n open: {\n off: \"\",\n on: \"bg-gray-100 text-gray-900 dark:bg-gray-800 dark:text-white\"\n }\n }\n});\n\nexport { accordionTheme };\n//# sourceMappingURL=theme.mjs.map\n","import { accordionTheme } from './components/Accordion/theme.mjs';\nimport { alertTheme } from './components/Alert/theme.mjs';\nimport { avatarTheme } from './components/Avatar/theme.mjs';\nimport { badgeTheme } from './components/Badge/theme.mjs';\nimport { blockquoteTheme } from './components/Blockquote/theme.mjs';\nimport { breadcrumbTheme } from './components/Breadcrumb/theme.mjs';\nimport { buttonTheme, buttonGroupTheme } from './components/Button/theme.mjs';\nimport { cardTheme } from './components/Card/theme.mjs';\nimport { carouselTheme } from './components/Carousel/theme.mjs';\nimport { checkboxTheme } from './components/Checkbox/theme.mjs';\nimport { darkThemeToggleTheme } from './components/DarkThemeToggle/theme.mjs';\nimport { datePickerTheme } from './components/Datepicker/theme.mjs';\nimport { dropdownTheme } from './components/Dropdown/theme.mjs';\nimport { fileInputTheme } from './components/FileInput/theme.mjs';\nimport { floatingLabelTheme } from './components/FloatingLabel/theme.mjs';\nimport { footerTheme } from './components/Footer/theme.mjs';\nimport { helperTextTheme } from './components/HelperText/theme.mjs';\nimport { kbdTheme } from './components/Kbd/theme.mjs';\nimport { labelTheme } from './components/Label/theme.mjs';\nimport { listTheme } from './components/List/theme.mjs';\nimport { listGroupTheme } from './components/ListGroup/theme.mjs';\nimport { modalTheme } from './components/Modal/theme.mjs';\nimport { navbarTheme } from './components/Navbar/theme.mjs';\nimport { paginationTheme } from './components/Pagination/theme.mjs';\nimport { popoverTheme } from './components/Popover/theme.mjs';\nimport { progressTheme } from './components/Progress/theme.mjs';\nimport { radioTheme } from './components/Radio/theme.mjs';\nimport { rangeSliderTheme } from './components/RangeSlider/theme.mjs';\nimport { ratingTheme, ratingAdvancedTheme } from './components/Rating/theme.mjs';\nimport { selectTheme } from './components/Select/theme.mjs';\nimport { sidebarTheme } from './components/Sidebar/theme.mjs';\nimport { spinnerTheme } from './components/Spinner/theme.mjs';\nimport { tableTheme } from './components/Table/theme.mjs';\nimport { tabTheme } from './components/Tabs/theme.mjs';\nimport { textareaTheme } from './components/Textarea/theme.mjs';\nimport { textInputTheme } from './components/TextInput/theme.mjs';\nimport { timelineTheme } from './components/Timeline/theme.mjs';\nimport { toastTheme } from './components/Toast/theme.mjs';\nimport { toggleSwitchTheme } from './components/ToggleSwitch/theme.mjs';\nimport { tooltipTheme } from './components/Tooltip/theme.mjs';\n\nconst theme = {\n accordion: accordionTheme,\n alert: alertTheme,\n avatar: avatarTheme,\n badge: badgeTheme,\n blockquote: blockquoteTheme,\n breadcrumb: breadcrumbTheme,\n button: buttonTheme,\n buttonGroup: buttonGroupTheme,\n card: cardTheme,\n carousel: carouselTheme,\n checkbox: checkboxTheme,\n datepicker: datePickerTheme,\n darkThemeToggle: darkThemeToggleTheme,\n dropdown: dropdownTheme,\n fileInput: fileInputTheme,\n floatingLabel: floatingLabelTheme,\n footer: footerTheme,\n helperText: helperTextTheme,\n kbd: kbdTheme,\n label: labelTheme,\n listGroup: listGroupTheme,\n list: listTheme,\n modal: modalTheme,\n navbar: navbarTheme,\n pagination: paginationTheme,\n popover: popoverTheme,\n progress: progressTheme,\n radio: radioTheme,\n rangeSlider: rangeSliderTheme,\n rating: ratingTheme,\n ratingAdvanced: ratingAdvancedTheme,\n select: selectTheme,\n textInput: textInputTheme,\n textarea: textareaTheme,\n toggleSwitch: toggleSwitchTheme,\n sidebar: sidebarTheme,\n spinner: spinnerTheme,\n table: tableTheme,\n tabs: tabTheme,\n timeline: timelineTheme,\n toast: toastTheme,\n tooltip: tooltipTheme\n};\n\nexport { theme };\n//# sourceMappingURL=theme.mjs.map\n","import { createTheme } from '../../helpers/create-theme.mjs';\n\nconst alertTheme = createTheme({\n base: \"flex flex-col gap-2 p-4 text-sm\",\n borderAccent: \"border-t-4\",\n closeButton: {\n base: \"-m-1.5 ml-auto inline-flex h-8 w-8 rounded-lg p-1.5 focus:ring-2\",\n icon: \"h-5 w-5\",\n color: {\n info: \"bg-cyan-100 text-cyan-500 hover:bg-cyan-200 focus:ring-cyan-400 dark:bg-cyan-200 dark:text-cyan-600 dark:hover:bg-cyan-300\",\n gray: \"bg-gray-100 text-gray-500 hover:bg-gray-200 focus:ring-gray-400 dark:bg-gray-700 dark:text-gray-300 dark:hover:bg-gray-800 dark:hover:text-white\",\n failure: \"bg-red-100 text-red-500 hover:bg-red-200 focus:ring-red-400 dark:bg-red-200 dark:text-red-600 dark:hover:bg-red-300\",\n success: \"bg-green-100 text-green-500 hover:bg-green-200 focus:ring-green-400 dark:bg-green-200 dark:text-green-600 dark:hover:bg-green-300\",\n warning: \"bg-yellow-100 text-yellow-500 hover:bg-yellow-200 focus:ring-yellow-400 dark:bg-yellow-200 dark:text-yellow-600 dark:hover:bg-yellow-300\",\n red: \"bg-red-100 text-red-500 hover:bg-red-200 focus:ring-red-400 dark:bg-red-200 dark:text-red-600 dark:hover:bg-red-300\",\n green: \"bg-green-100 text-green-500 hover:bg-green-200 focus:ring-green-400 dark:bg-green-200 dark:text-green-600 dark:hover:bg-green-300\",\n yellow: \"bg-yellow-100 text-yellow-500 hover:bg-yellow-200 focus:ring-yellow-400 dark:bg-yellow-200 dark:text-yellow-600 dark:hover:bg-yellow-300\",\n blue: \"bg-blue-100 text-blue-500 hover:bg-blue-200 focus:ring-blue-400 dark:bg-blue-200 dark:text-blue-600 dark:hover:bg-blue-300\",\n cyan: \"bg-cyan-100 text-cyan-500 hover:bg-cyan-200 focus:ring-cyan-400 dark:bg-cyan-200 dark:text-cyan-600 dark:hover:bg-cyan-300\",\n pink: \"bg-pink-100 text-pink-500 hover:bg-pink-200 focus:ring-pink-400 dark:bg-pink-200 dark:text-pink-600 dark:hover:bg-pink-300\",\n lime: \"bg-lime-100 text-lime-500 hover:bg-lime-200 focus:ring-lime-400 dark:bg-lime-200 dark:text-lime-600 dark:hover:bg-lime-300\",\n dark: \"bg-gray-100 text-gray-500 hover:bg-gray-200 focus:ring-gray-400 dark:bg-gray-200 dark:text-gray-600 dark:hover:bg-gray-300\",\n indigo: \"bg-indigo-100 text-indigo-500 hover:bg-indigo-200 focus:ring-indigo-400 dark:bg-indigo-200 dark:text-indigo-600 dark:hover:bg-indigo-300\",\n purple: \"bg-purple-100 text-purple-500 hover:bg-purple-200 focus:ring-purple-400 dark:bg-purple-200 dark:text-purple-600 dark:hover:bg-purple-300\",\n teal: \"bg-teal-100 text-teal-500 hover:bg-teal-200 focus:ring-teal-400 dark:bg-teal-200 dark:text-teal-600 dark:hover:bg-teal-300\",\n light: \"bg-gray-50 text-gray-500 hover:bg-gray-100 focus:ring-gray-200 dark:bg-gray-600 dark:text-gray-200 dark:hover:bg-gray-700 dark:hover:text-white\"\n }\n },\n color: {\n info: \"border-cyan-500 bg-cyan-100 text-cyan-700 dark:bg-cyan-200 dark:text-cyan-800\",\n gray: \"border-gray-500 bg-gray-100 text-gray-700 dark:bg-gray-700 dark:text-gray-300\",\n failure: \"border-red-500 bg-red-100 text-red-700 dark:bg-red-200 dark:text-red-800\",\n success: \"border-green-500 bg-green-100 text-green-700 dark:bg-green-200 dark:text-green-800\",\n warning: \"border-yellow-500 bg-yellow-100 text-yellow-700 dark:bg-yellow-200 dark:text-yellow-800\",\n red: \"border-red-500 bg-red-100 text-red-700 dark:bg-red-200 dark:text-red-800\",\n green: \"border-green-500 bg-green-100 text-green-700 dark:bg-green-200 dark:text-green-800\",\n yellow: \"border-yellow-500 bg-yellow-100 text-yellow-700 dark:bg-yellow-200 dark:text-yellow-800\",\n blue: \"border-blue-500 bg-blue-100 text-blue-700 dark:bg-blue-200 dark:text-blue-800\",\n cyan: \"border-cyan-500 bg-cyan-100 text-cyan-700 dark:bg-cyan-200 dark:text-cyan-800\",\n pink: \"border-pink-500 bg-pink-100 text-pink-700 dark:bg-pink-200 dark:text-pink-800\",\n lime: \"border-lime-500 bg-lime-100 text-lime-700 dark:bg-lime-200 dark:text-lime-800\",\n dark: \"border-gray-600 bg-gray-800 text-gray-200 dark:bg-gray-900 dark:text-gray-300\",\n indigo: \"border-indigo-500 bg-indigo-100 text-indigo-700 dark:bg-indigo-200 dark:text-indigo-800\",\n purple: \"border-purple-500 bg-purple-100 text-purple-700 dark:bg-purple-200 dark:text-purple-800\",\n teal: \"border-teal-500 bg-teal-100 text-teal-700 dark:bg-teal-200 dark:text-teal-800\",\n light: \"border-gray-400 bg-gray-50 text-gray-600 dark:bg-gray-500 dark:text-gray-200\"\n },\n icon: \"mr-3 inline h-5 w-5 flex-shrink-0\",\n rounded: \"rounded-lg\",\n wrapper: \"flex items-center\"\n});\n\nexport { alertTheme };\n//# sourceMappingURL=theme.mjs.map\n","import { createTheme } from '../../helpers/create-theme.mjs';\n\nconst avatarTheme = createTheme({\n root: {\n base: \"flex items-center justify-center space-x-4 rounded\",\n bordered: \"p-1 ring-2\",\n rounded: \"rounded-full\",\n color: {\n dark: \"ring-gray-800 dark:ring-gray-800\",\n failure: \"ring-red-500 dark:ring-red-700\",\n gray: \"ring-gray-500 dark:ring-gray-400\",\n info: \"ring-cyan-400 dark:ring-cyan-800\",\n light: \"ring-gray-300 dark:ring-gray-500\",\n purple: \"ring-purple-500 dark:ring-purple-600\",\n success: \"ring-green-500 dark:ring-green-500\",\n warning: \"ring-yellow-300 dark:ring-yellow-500\",\n pink: \"ring-pink-500 dark:ring-pink-500\"\n },\n img: {\n base: \"rounded\",\n off: \"relative overflow-hidden bg-gray-100 dark:bg-gray-600\",\n on: \"\",\n placeholder: \"absolute -bottom-1 h-auto w-auto text-gray-400\"\n },\n size: {\n xs: \"h-6 w-6\",\n sm: \"h-8 w-8\",\n md: \"h-10 w-10\",\n lg: \"h-20 w-20\",\n xl: \"h-36 w-36\"\n },\n stacked: \"ring-2 ring-gray-300 dark:ring-gray-500\",\n statusPosition: {\n \"bottom-left\": \"-bottom-1 -left-1\",\n \"bottom-center\": \"-bottom-1\",\n \"bottom-right\": \"-bottom-1 -right-1\",\n \"top-left\": \"-left-1 -top-1\",\n \"top-center\": \"-top-1\",\n \"top-right\": \"-right-1 -top-1\",\n \"center-right\": \"-right-1\",\n center: \"\",\n \"center-left\": \"-left-1\"\n },\n status: {\n away: \"bg-yellow-400\",\n base: \"absolute h-3.5 w-3.5 rounded-full border-2 border-white dark:border-gray-800\",\n busy: \"bg-red-400\",\n offline: \"bg-gray-400\",\n online: \"bg-green-400\"\n },\n initials: {\n text: \"font-medium text-gray-600 dark:text-gray-300\",\n base: \"relative inline-flex items-center justify-center overflow-hidden bg-gray-100 dark:bg-gray-600\"\n }\n },\n group: {\n base: \"flex -space-x-4\"\n },\n groupCounter: {\n base: \"relative flex h-10 w-10 items-center justify-center rounded-full bg-gray-700 text-xs font-medium text-white ring-2 ring-gray-300 hover:bg-gray-600 dark:ring-gray-500\"\n }\n});\n\nexport { avatarTheme };\n//# sourceMappingURL=theme.mjs.map\n","import { createTheme } from '../../helpers/create-theme.mjs';\n\nconst badgeTheme = createTheme({\n root: {\n base: \"flex h-fit items-center gap-1 font-semibold\",\n color: {\n info: \"bg-cyan-100 text-cyan-800 group-hover:bg-cyan-200 dark:bg-cyan-200 dark:text-cyan-800 dark:group-hover:bg-cyan-300\",\n gray: \"bg-gray-100 text-gray-800 group-hover:bg-gray-200 dark:bg-gray-700 dark:text-gray-300 dark:group-hover:bg-gray-600\",\n failure: \"bg-red-100 text-red-800 group-hover:bg-red-200 dark:bg-red-200 dark:text-red-900 dark:group-hover:bg-red-300\",\n success: \"bg-green-100 text-green-800 group-hover:bg-green-200 dark:bg-green-200 dark:text-green-900 dark:group-hover:bg-green-300\",\n warning: \"bg-yellow-100 text-yellow-800 group-hover:bg-yellow-200 dark:bg-yellow-200 dark:text-yellow-900 dark:group-hover:bg-yellow-300\",\n indigo: \"bg-indigo-100 text-indigo-800 group-hover:bg-indigo-200 dark:bg-indigo-200 dark:text-indigo-900 dark:group-hover:bg-indigo-300\",\n purple: \"bg-purple-100 text-purple-800 group-hover:bg-purple-200 dark:bg-purple-200 dark:text-purple-900 dark:group-hover:bg-purple-300\",\n pink: \"bg-pink-100 text-pink-800 group-hover:bg-pink-200 dark:bg-pink-200 dark:text-pink-900 dark:group-hover:bg-pink-300\",\n blue: \"bg-blue-100 text-blue-800 group-hover:bg-blue-200 dark:bg-blue-200 dark:text-blue-900 dark:group-hover:bg-blue-300\",\n cyan: \"bg-cyan-100 text-cyan-800 group-hover:bg-cyan-200 dark:bg-cyan-200 dark:text-cyan-900 dark:group-hover:bg-cyan-300\",\n dark: \"bg-gray-600 text-gray-100 group-hover:bg-gray-500 dark:bg-gray-900 dark:text-gray-200 dark:group-hover:bg-gray-700\",\n light: \"bg-gray-200 text-gray-800 group-hover:bg-gray-300 dark:bg-gray-400 dark:text-gray-900 dark:group-hover:bg-gray-500\",\n green: \"bg-green-100 text-green-800 group-hover:bg-green-200 dark:bg-green-200 dark:text-green-900 dark:group-hover:bg-green-300\",\n lime: \"bg-lime-100 text-lime-800 group-hover:bg-lime-200 dark:bg-lime-200 dark:text-lime-900 dark:group-hover:bg-lime-300\",\n red: \"bg-red-100 text-red-800 group-hover:bg-red-200 dark:bg-red-200 dark:text-red-900 dark:group-hover:bg-red-300\",\n teal: \"bg-teal-100 text-teal-800 group-hover:bg-teal-200 dark:bg-teal-200 dark:text-teal-900 dark:group-hover:bg-teal-300\",\n yellow: \"bg-yellow-100 text-yellow-800 group-hover:bg-yellow-200 dark:bg-yellow-200 dark:text-yellow-900 dark:group-hover:bg-yellow-300\"\n },\n href: \"group\",\n size: {\n xs: \"p-1 text-xs\",\n sm: \"p-1.5 text-sm\"\n }\n },\n icon: {\n off: \"rounded px-2 py-0.5\",\n on: \"rounded-full p-1.5\",\n size: {\n xs: \"h-3 w-3\",\n sm: \"h-3.5 w-3.5\"\n }\n }\n});\n\nexport { badgeTheme };\n//# sourceMappingURL=theme.mjs.map\n","import { createTheme } from '../../helpers/create-theme.mjs';\n\nconst blockquoteTheme = createTheme({\n root: {\n base: \"text-xl font-semibold italic text-gray-900 dark:text-white\"\n }\n});\n\nexport { blockquoteTheme };\n//# sourceMappingURL=theme.mjs.map\n","import { createTheme } from '../../helpers/create-theme.mjs';\n\nconst breadcrumbTheme = createTheme({\n root: {\n base: \"\",\n list: \"flex items-center\"\n },\n item: {\n base: \"group flex items-center\",\n chevron: \"mx-1 h-4 w-4 text-gray-400 group-first:hidden md:mx-2\",\n href: {\n off: \"flex items-center text-sm font-medium text-gray-500 dark:text-gray-400\",\n on: \"flex items-center text-sm font-medium text-gray-700 hover:text-gray-900 dark:text-gray-400 dark:hover:text-white\"\n },\n icon: \"mr-2 h-4 w-4\"\n }\n});\n\nexport { breadcrumbTheme };\n//# sourceMappingURL=theme.mjs.map\n","import { createTheme } from '../../helpers/create-theme.mjs';\n\nconst buttonTheme = createTheme({\n base: \"group relative flex items-stretch justify-center p-0.5 text-center font-medium transition-[color,background-color,border-color,text-decoration-color,fill,stroke,box-shadow] focus:z-10 focus:outline-none\",\n fullSized: \"w-full\",\n color: {\n dark: \"border border-transparent bg-gray-800 text-white focus:ring-4 focus:ring-gray-300 enabled:hover:bg-gray-900 dark:border-gray-700 dark:bg-gray-800 dark:focus:ring-gray-800 dark:enabled:hover:bg-gray-700\",\n failure: \"border border-transparent bg-red-700 text-white focus:ring-4 focus:ring-red-300 enabled:hover:bg-red-800 dark:bg-red-600 dark:focus:ring-red-900 dark:enabled:hover:bg-red-700\",\n gray: \":ring-cyan-700 border border-gray-200 bg-white text-gray-900 focus:text-cyan-700 focus:ring-4 enabled:hover:bg-gray-100 enabled:hover:text-cyan-700 dark:border-gray-600 dark:bg-transparent dark:text-gray-400 dark:enabled:hover:bg-gray-700 dark:enabled:hover:text-white\",\n info: \"border border-transparent bg-cyan-700 text-white focus:ring-4 focus:ring-cyan-300 enabled:hover:bg-cyan-800 dark:bg-cyan-600 dark:focus:ring-cyan-800 dark:enabled:hover:bg-cyan-700\",\n light: \"border border-gray-300 bg-white text-gray-900 focus:ring-4 focus:ring-cyan-300 enabled:hover:bg-gray-100 dark:border-gray-600 dark:bg-gray-600 dark:text-white dark:focus:ring-gray-700 dark:enabled:hover:border-gray-700 dark:enabled:hover:bg-gray-700\",\n purple: \"border border-transparent bg-purple-700 text-white focus:ring-4 focus:ring-purple-300 enabled:hover:bg-purple-800 dark:bg-purple-600 dark:focus:ring-purple-900 dark:enabled:hover:bg-purple-700\",\n success: \"border border-transparent bg-green-700 text-white focus:ring-4 focus:ring-green-300 enabled:hover:bg-green-800 dark:bg-green-600 dark:focus:ring-green-800 dark:enabled:hover:bg-green-700\",\n warning: \"border border-transparent bg-yellow-400 text-white focus:ring-4 focus:ring-yellow-300 enabled:hover:bg-yellow-500 dark:focus:ring-yellow-900\",\n blue: \"border border-transparent bg-blue-700 text-white focus:ring-4 focus:ring-blue-300 enabled:hover:bg-blue-800 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800\",\n cyan: \"border border-cyan-300 bg-white text-cyan-900 focus:ring-4 focus:ring-cyan-300 enabled:hover:bg-cyan-100 dark:border-cyan-600 dark:bg-cyan-600 dark:text-white dark:focus:ring-cyan-700 dark:enabled:hover:border-cyan-700 dark:enabled:hover:bg-cyan-700\",\n green: \"border border-green-300 bg-white text-green-900 focus:ring-4 focus:ring-green-300 enabled:hover:bg-green-100 dark:border-green-600 dark:bg-green-600 dark:text-white dark:focus:ring-green-700 dark:enabled:hover:border-green-700 dark:enabled:hover:bg-green-700\",\n indigo: \"border border-indigo-300 bg-white text-indigo-900 focus:ring-4 focus:ring-indigo-300 enabled:hover:bg-indigo-100 dark:border-indigo-600 dark:bg-indigo-600 dark:text-white dark:focus:ring-indigo-700 dark:enabled:hover:border-indigo-700 dark:enabled:hover:bg-indigo-700\",\n lime: \"border border-lime-300 bg-white text-lime-900 focus:ring-4 focus:ring-lime-300 enabled:hover:bg-lime-100 dark:border-lime-600 dark:bg-lime-600 dark:text-white dark:focus:ring-lime-700 dark:enabled:hover:border-lime-700 dark:enabled:hover:bg-lime-700\",\n pink: \"border border-pink-300 bg-white text-pink-900 focus:ring-4 focus:ring-pink-300 enabled:hover:bg-pink-100 dark:border-pink-600 dark:bg-pink-600 dark:text-white dark:focus:ring-pink-700 dark:enabled:hover:border-pink-700 dark:enabled:hover:bg-pink-700\",\n red: \"border border-red-300 bg-white text-red-900 focus:ring-4 focus:ring-red-300 enabled:hover:bg-red-100 dark:border-red-600 dark:bg-red-600 dark:text-white dark:focus:ring-red-700 dark:enabled:hover:border-red-700 dark:enabled:hover:bg-red-700\",\n teal: \"border border-teal-300 bg-white text-teal-900 focus:ring-4 focus:ring-teal-300 enabled:hover:bg-teal-100 dark:border-teal-600 dark:bg-teal-600 dark:text-white dark:focus:ring-teal-700 dark:enabled:hover:border-teal-700 dark:enabled:hover:bg-teal-700\",\n yellow: \"border border-yellow-300 bg-white text-yellow-900 focus:ring-4 focus:ring-yellow-300 enabled:hover:bg-yellow-100 dark:border-yellow-600 dark:bg-yellow-600 dark:text-white dark:focus:ring-yellow-700 dark:enabled:hover:border-yellow-700 dark:enabled:hover:bg-yellow-700\"\n },\n disabled: \"cursor-not-allowed opacity-50\",\n isProcessing: \"cursor-wait\",\n spinnerSlot: \"absolute top-0 flex h-full items-center\",\n spinnerLeftPosition: {\n xs: \"left-2\",\n sm: \"left-3\",\n md: \"left-4\",\n lg: \"left-5\",\n xl: \"left-6\"\n },\n gradient: {\n cyan: \"bg-gradient-to-r from-cyan-400 via-cyan-500 to-cyan-600 text-white focus:ring-4 focus:ring-cyan-300 enabled:hover:bg-gradient-to-br dark:focus:ring-cyan-800\",\n failure: \"bg-gradient-to-r from-red-400 via-red-500 to-red-600 text-white focus:ring-4 focus:ring-red-300 enabled:hover:bg-gradient-to-br dark:focus:ring-red-800\",\n info: \"bg-gradient-to-r from-cyan-500 via-cyan-600 to-cyan-700 text-white focus:ring-4 focus:ring-cyan-300 enabled:hover:bg-gradient-to-br dark:focus:ring-cyan-800 \",\n lime: \"bg-gradient-to-r from-lime-200 via-lime-400 to-lime-500 text-gray-900 focus:ring-4 focus:ring-lime-300 enabled:hover:bg-gradient-to-br dark:focus:ring-lime-800\",\n pink: \"bg-gradient-to-r from-pink-400 via-pink-500 to-pink-600 text-white focus:ring-4 focus:ring-pink-300 enabled:hover:bg-gradient-to-br dark:focus:ring-pink-800\",\n purple: \"bg-gradient-to-r from-purple-500 via-purple-600 to-purple-700 text-white focus:ring-4 focus:ring-purple-300 enabled:hover:bg-gradient-to-br dark:focus:ring-purple-800\",\n success: \"bg-gradient-to-r from-green-400 via-green-500 to-green-600 text-white focus:ring-4 focus:ring-green-300 enabled:hover:bg-gradient-to-br dark:focus:ring-green-800\",\n teal: \"bg-gradient-to-r from-teal-400 via-teal-500 to-teal-600 text-white focus:ring-4 focus:ring-teal-300 enabled:hover:bg-gradient-to-br dark:focus:ring-teal-800\"\n },\n gradientDuoTone: {\n cyanToBlue: \"bg-gradient-to-r from-cyan-500 to-cyan-500 text-white focus:ring-4 focus:ring-cyan-300 enabled:hover:bg-gradient-to-bl dark:focus:ring-cyan-800\",\n greenToBlue: \"bg-gradient-to-br from-green-400 to-cyan-600 text-white focus:ring-4 focus:ring-green-200 enabled:hover:bg-gradient-to-bl dark:focus:ring-green-800\",\n pinkToOrange: \"bg-gradient-to-br from-pink-500 to-orange-400 text-white focus:ring-4 focus:ring-pink-200 enabled:hover:bg-gradient-to-bl dark:focus:ring-pink-800\",\n purpleToBlue: \"bg-gradient-to-br from-purple-600 to-cyan-500 text-white focus:ring-4 focus:ring-cyan-300 enabled:hover:bg-gradient-to-bl dark:focus:ring-cyan-800\",\n purpleToPink: \"bg-gradient-to-r from-purple-500 to-pink-500 text-white focus:ring-4 focus:ring-purple-200 enabled:hover:bg-gradient-to-l dark:focus:ring-purple-800\",\n redToYellow: \"bg-gradient-to-r from-red-200 via-red-300 to-yellow-200 text-gray-900 focus:ring-4 focus:ring-red-100 enabled:hover:bg-gradient-to-bl dark:focus:ring-red-400\",\n tealToLime: \"bg-gradient-to-r from-teal-200 to-lime-200 text-gray-900 focus:ring-4 focus:ring-lime-200 enabled:hover:bg-gradient-to-l enabled:hover:from-teal-200 enabled:hover:to-lime-200 enabled:hover:text-gray-900 dark:focus:ring-teal-700\"\n },\n inner: {\n base: \"flex items-stretch transition-all duration-200\",\n position: {\n none: \"\",\n start: \"rounded-r-none\",\n middle: \"rounded-none\",\n end: \"rounded-l-none\"\n },\n outline: \"border border-transparent\",\n isProcessingPadding: {\n xs: \"pl-8\",\n sm: \"pl-10\",\n md: \"pl-12\",\n lg: \"pl-16\",\n xl: \"pl-20\"\n }\n },\n label: \"ml-2 inline-flex h-4 w-4 items-center justify-center rounded-full bg-cyan-200 text-xs font-semibold text-cyan-800\",\n outline: {\n color: {\n gray: \"border border-gray-900 dark:border-white\",\n default: \"border-0\",\n light: \"\"\n },\n off: \"\",\n on: \"flex w-full justify-center bg-white text-gray-900 transition-all duration-75 ease-in group-enabled:group-hover:bg-opacity-0 group-enabled:group-hover:text-inherit dark:bg-gray-900 dark:text-white\",\n pill: {\n off: \"rounded-md\",\n on: \"rounded-full\"\n }\n },\n pill: {\n off: \"rounded-lg\",\n on: \"rounded-full\"\n },\n size: {\n xs: \"px-2 py-1 text-xs\",\n sm: \"px-3 py-1.5 text-sm\",\n md: \"px-4 py-2 text-sm\",\n lg: \"px-5 py-2.5 text-base\",\n xl: \"px-6 py-3 text-base\"\n }\n});\nconst buttonGroupTheme = createTheme({\n base: \"inline-flex\",\n position: {\n none: \"\",\n start: \"rounded-r-none focus:ring-2\",\n middle: \"rounded-none border-l-0 pl-0 focus:ring-2\",\n end: \"rounded-l-none border-l-0 pl-0 focus:ring-2\"\n }\n});\n\nexport { buttonGroupTheme, buttonTheme };\n//# sourceMappingURL=theme.mjs.map\n","import { createTheme } from '../../helpers/create-theme.mjs';\n\nconst cardTheme = createTheme({\n root: {\n base: \"flex rounded-lg border border-gray-200 bg-white shadow-md dark:border-gray-700 dark:bg-gray-800\",\n children: \"flex h-full flex-col justify-center gap-4 p-6\",\n horizontal: {\n off: \"flex-col\",\n on: \"flex-col md:max-w-xl md:flex-row\"\n },\n href: \"hover:bg-gray-100 dark:hover:bg-gray-700\"\n },\n img: {\n base: \"\",\n horizontal: {\n off: \"rounded-t-lg\",\n on: \"h-96 w-full rounded-t-lg object-cover md:h-auto md:w-48 md:rounded-none md:rounded-l-lg\"\n }\n }\n});\n\nexport { cardTheme };\n//# sourceMappingURL=theme.mjs.map\n","import { createTheme } from '../../helpers/create-theme.mjs';\n\nconst carouselTheme = createTheme({\n root: {\n base: \"relative h-full w-full\",\n leftControl: \"absolute left-0 top-0 flex h-full items-center justify-center px-4 focus:outline-none\",\n rightControl: \"absolute right-0 top-0 flex h-full items-center justify-center px-4 focus:outline-none\"\n },\n indicators: {\n active: {\n off: \"bg-white/50 hover:bg-white dark:bg-gray-800/50 dark:hover:bg-gray-800\",\n on: \"bg-white dark:bg-gray-800\"\n },\n base: \"h-3 w-3 rounded-full\",\n wrapper: \"absolute bottom-5 left-1/2 flex -translate-x-1/2 space-x-3\"\n },\n item: {\n base: \"absolute left-1/2 top-1/2 block w-full -translate-x-1/2 -translate-y-1/2\",\n wrapper: {\n off: \"w-full flex-shrink-0 transform cursor-default snap-center\",\n on: \"w-full flex-shrink-0 transform cursor-grab snap-center\"\n }\n },\n control: {\n base: \"inline-flex h-8 w-8 items-center justify-center rounded-full bg-white/30 group-hover:bg-white/50 group-focus:outline-none group-focus:ring-4 group-focus:ring-white dark:bg-gray-800/30 dark:group-hover:bg-gray-800/60 dark:group-focus:ring-gray-800/70 sm:h-10 sm:w-10\",\n icon: \"h-5 w-5 text-white dark:text-gray-800 sm:h-6 sm:w-6\"\n },\n scrollContainer: {\n base: \"flex h-full snap-mandatory overflow-y-hidden overflow-x-scroll scroll-smooth rounded-lg\",\n snap: \"snap-x\"\n }\n});\n\nexport { carouselTheme };\n//# sourceMappingURL=theme.mjs.map\n","import { createTheme } from '../../helpers/create-theme.mjs';\n\nconst checkboxTheme = createTheme({\n root: {\n base: \"h-4 w-4 rounded border border-gray-300 bg-gray-100 focus:ring-2 dark:border-gray-600 dark:bg-gray-700\",\n color: {\n default: \"text-cyan-600 focus:ring-cyan-600 dark:ring-offset-gray-800 dark:focus:ring-cyan-600\",\n dark: \"text-gray-800 focus:ring-gray-800 dark:ring-offset-gray-800 dark:focus:ring-gray-800\",\n failure: \"text-red-900 focus:ring-red-900 dark:ring-offset-red-900 dark:focus:ring-red-900\",\n gray: \"text-gray-900 focus:ring-gray-900 dark:ring-offset-gray-900 dark:focus:ring-gray-900\",\n info: \"text-cyan-800 focus:ring-cyan-800 dark:ring-offset-gray-800 dark:focus:ring-cyan-800\",\n light: \"text-gray-900 focus:ring-gray-900 dark:ring-offset-gray-900 dark:focus:ring-gray-900\",\n purple: \"text-purple-600 focus:ring-purple-600 dark:ring-offset-purple-600 dark:focus:ring-purple-600\",\n success: \"text-green-800 focus:ring-green-800 dark:ring-offset-green-800 dark:focus:ring-green-800\",\n warning: \"text-yellow-400 focus:ring-yellow-400 dark:ring-offset-yellow-400 dark:focus:ring-yellow-400\",\n blue: \"text-blue-700 focus:ring-blue-600 dark:ring-offset-blue-700 dark:focus:ring-blue-700\",\n cyan: \"text-cyan-600 focus:ring-cyan-600 dark:ring-offset-cyan-600 dark:focus:ring-cyan-600\",\n green: \"text-green-600 focus:ring-green-600 dark:ring-offset-green-600 dark:focus:ring-green-600\",\n indigo: \"text-indigo-700 focus:ring-indigo-700 dark:ring-offset-indigo-700 dark:focus:ring-indigo-700\",\n lime: \"text-lime-700 focus:ring-lime-700 dark:ring-offset-lime-700 dark:focus:ring-lime-700\",\n pink: \"text-pink-600 focus:ring-pink-600 dark:ring-offset-pink-600 dark:focus:ring-pink-600\",\n red: \"text-red-600 focus:ring-red-600 dark:ring-offset-red-600 dark:focus:ring-red-600\",\n teal: \"text-teal-600 focus:ring-teal-600 dark:ring-offset-teal-600 dark:focus:ring-teal-600\",\n yellow: \"text-yellow-400 focus:ring-yellow-400 dark:ring-offset-yellow-400 dark:focus:ring-yellow-400\"\n }\n }\n});\n\nexport { checkboxTheme };\n//# sourceMappingURL=theme.mjs.map\n","import { createTheme } from '../../helpers/create-theme.mjs';\n\nconst datePickerTheme = createTheme({\n root: {\n base: \"relative\"\n },\n popup: {\n root: {\n base: \"absolute top-10 z-50 block pt-2\",\n inline: \"relative top-0 z-auto\",\n inner: \"inline-block rounded-lg bg-white p-4 shadow-lg dark:bg-gray-700\"\n },\n header: {\n base: \"\",\n title: \"px-2 py-3 text-center font-semibold text-gray-900 dark:text-white\",\n selectors: {\n base: \"mb-2 flex justify-between\",\n button: {\n base: \"rounded-lg bg-white px-5 py-2.5 text-sm font-semibold text-gray-900 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-gray-200 dark:bg-gray-700 dark:text-white dark:hover:bg-gray-600\",\n prev: \"\",\n next: \"\",\n view: \"\"\n }\n }\n },\n view: {\n base: \"p-1\"\n },\n footer: {\n base: \"mt-2 flex space-x-2\",\n button: {\n base: \"w-full rounded-lg px-5 py-2 text-center text-sm font-medium focus:ring-4 focus:ring-cyan-300\",\n today: \"bg-cyan-700 text-white hover:bg-cyan-800 dark:bg-cyan-600 dark:hover:bg-cyan-700\",\n clear: \"border border-gray-300 bg-white text-gray-900 hover:bg-gray-100 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:hover:bg-gray-600\"\n }\n }\n },\n views: {\n days: {\n header: {\n base: \"mb-1 grid grid-cols-7\",\n title: \"h-6 text-center text-sm font-medium leading-6 text-gray-500 dark:text-gray-400\"\n },\n items: {\n base: \"grid w-64 grid-cols-7\",\n item: {\n base: \"block flex-1 cursor-pointer rounded-lg border-0 text-center text-sm font-semibold leading-9 text-gray-900 hover:bg-gray-100 dark:text-white dark:hover:bg-gray-600 \",\n selected: \"bg-cyan-700 text-white hover:bg-cyan-600\",\n disabled: \"text-gray-500\"\n }\n }\n },\n months: {\n items: {\n base: \"grid w-64 grid-cols-4\",\n item: {\n base: \"block flex-1 cursor-pointer rounded-lg border-0 text-center text-sm font-semibold leading-9 text-gray-900 hover:bg-gray-100 dark:text-white dark:hover:bg-gray-600\",\n selected: \"bg-cyan-700 text-white hover:bg-cyan-600\",\n disabled: \"text-gray-500\"\n }\n }\n },\n years: {\n items: {\n base: \"grid w-64 grid-cols-4\",\n item: {\n base: \"block flex-1 cursor-pointer rounded-lg border-0 text-center text-sm font-semibold leading-9 text-gray-900 hover:bg-gray-100 dark:text-white dark:hover:bg-gray-600\",\n selected: \"bg-cyan-700 text-white hover:bg-cyan-600\",\n disabled: \"text-gray-500\"\n }\n }\n },\n decades: {\n items: {\n base: \"grid w-64 grid-cols-4\",\n item: {\n base: \"block flex-1 cursor-pointer rounded-lg border-0 text-center text-sm font-semibold leading-9 text-gray-900 hover:bg-gray-100 dark:text-white dark:hover:bg-gray-600\",\n selected: \"bg-cyan-700 text-white hover:bg-cyan-600\",\n disabled: \"text-gray-500\"\n }\n }\n }\n }\n});\n\nexport { datePickerTheme };\n//# sourceMappingURL=theme.mjs.map\n","import { createTheme } from '../../helpers/create-theme.mjs';\n\nconst darkThemeToggleTheme = createTheme({\n root: {\n base: \"rounded-lg p-2.5 text-sm text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-4 focus:ring-gray-200 dark:text-gray-400 dark:hover:bg-gray-700 dark:focus:ring-gray-700\",\n icon: \"h-5 w-5\"\n }\n});\n\nexport { darkThemeToggleTheme };\n//# sourceMappingURL=theme.mjs.map\n","import { createTheme } from '../../helpers/create-theme.mjs';\n\nconst dropdownTheme = createTheme({\n arrowIcon: \"ml-2 h-4 w-4\",\n content: \"py-1 focus:outline-none\",\n floating: {\n animation: \"transition-opacity\",\n arrow: {\n base: \"absolute z-10 h-2 w-2 rotate-45\",\n style: {\n dark: \"bg-gray-900 dark:bg-gray-700\",\n light: \"bg-white\",\n auto: \"bg-white dark:bg-gray-700\"\n },\n placement: \"-4px\"\n },\n base: \"z-10 w-fit divide-y divide-gray-100 rounded shadow focus:outline-none\",\n content: \"py-1 text-sm text-gray-700 dark:text-gray-200\",\n divider: \"my-1 h-px bg-gray-100 dark:bg-gray-600\",\n header: \"block px-4 py-2 text-sm text-gray-700 dark:text-gray-200\",\n hidden: \"invisible opacity-0\",\n item: {\n container: \"\",\n base: \"flex w-full cursor-pointer items-center justify-start px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 focus:bg-gray-100 focus:outline-none dark:text-gray-200 dark:hover:bg-gray-600 dark:hover:text-white dark:focus:bg-gray-600 dark:focus:text-white\",\n icon: \"mr-2 h-4 w-4\"\n },\n style: {\n dark: \"bg-gray-900 text-white dark:bg-gray-700\",\n light: \"border border-gray-200 bg-white text-gray-900\",\n auto: \"border border-gray-200 bg-white text-gray-900 dark:border-none dark:bg-gray-700 dark:text-white\"\n },\n target: \"w-fit\"\n },\n inlineWrapper: \"flex items-center\"\n});\n\nexport { dropdownTheme };\n//# sourceMappingURL=theme.mjs.map\n","import { createTheme } from '../../helpers/create-theme.mjs';\n\nconst fileInputTheme = createTheme({\n root: {\n base: \"flex\"\n },\n field: {\n base: \"relative w-full\",\n input: {\n base: \"block w-full overflow-hidden rounded-lg border disabled:cursor-not-allowed disabled:opacity-50\",\n sizes: {\n sm: \"sm:text-xs\",\n md: \"text-sm\",\n lg: \"sm:text-base\"\n },\n colors: {\n gray: \"border-gray-300 bg-gray-50 text-gray-900 focus:border-cyan-500 focus:ring-cyan-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-cyan-500 dark:focus:ring-cyan-500\",\n info: \"border-cyan-500 bg-cyan-50 text-cyan-900 placeholder-cyan-700 focus:border-cyan-500 focus:ring-cyan-500 dark:border-cyan-400 dark:bg-cyan-100 dark:focus:border-cyan-500 dark:focus:ring-cyan-500\",\n failure: \"border-red-500 bg-red-50 text-red-900 placeholder-red-700 focus:border-red-500 focus:ring-red-500 dark:border-red-400 dark:bg-red-100 dark:focus:border-red-500 dark:focus:ring-red-500\",\n warning: \"border-yellow-500 bg-yellow-50 text-yellow-900 placeholder-yellow-700 focus:border-yellow-500 focus:ring-yellow-500 dark:border-yellow-400 dark:bg-yellow-100 dark:focus:border-yellow-500 dark:focus:ring-yellow-500\",\n success: \"border-green-500 bg-green-50 text-green-900 placeholder-green-700 focus:border-green-500 focus:ring-green-500 dark:border-green-400 dark:bg-green-100 dark:focus:border-green-500 dark:focus:ring-green-500\"\n }\n }\n }\n});\n\nexport { fileInputTheme };\n//# sourceMappingURL=theme.mjs.map\n","import { createTheme } from '../../helpers/create-theme.mjs';\n\nconst floatingLabelTheme = createTheme({\n input: {\n default: {\n filled: {\n sm: \"peer block w-full appearance-none rounded-t-lg border-0 border-b-2 border-gray-300 bg-gray-50 px-2.5 pb-2.5 pt-5 text-xs text-gray-900 focus:border-blue-600 focus:outline-none focus:ring-0 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:focus:border-blue-500\",\n md: \"peer block w-full appearance-none rounded-t-lg border-0 border-b-2 border-gray-300 bg-gray-50 px-2.5 pb-2.5 pt-5 text-sm text-gray-900 focus:border-blue-600 focus:outline-none focus:ring-0 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:focus:border-blue-500\"\n },\n outlined: {\n sm: \"peer block w-full appearance-none rounded-lg border border-gray-300 bg-transparent px-2.5 pb-2.5 pt-4 text-xs text-gray-900 focus:border-blue-600 focus:outline-none focus:ring-0 dark:border-gray-600 dark:text-white dark:focus:border-blue-500\",\n md: \"peer block w-full appearance-none rounded-lg border border-gray-300 bg-transparent px-2.5 pb-2.5 pt-4 text-sm text-gray-900 focus:border-blue-600 focus:outline-none focus:ring-0 dark:border-gray-600 dark:text-white dark:focus:border-blue-500\"\n },\n standard: {\n sm: \"peer block w-full appearance-none border-0 border-b-2 border-gray-300 bg-transparent px-0 py-2.5 text-xs text-gray-900 focus:border-blue-600 focus:outline-none focus:ring-0 dark:border-gray-600 dark:text-white dark:focus:border-blue-500\",\n md: \"peer block w-full appearance-none border-0 border-b-2 border-gray-300 bg-transparent px-0 py-2.5 text-sm text-gray-900 focus:border-blue-600 focus:outline-none focus:ring-0 dark:border-gray-600 dark:text-white dark:focus:border-blue-500\"\n }\n },\n success: {\n filled: {\n sm: \"peer block w-full appearance-none rounded-t-lg border-0 border-b-2 border-green-600 bg-gray-50 px-2.5 pb-2.5 pt-5 text-xs text-gray-900 focus:border-green-600 focus:outline-none focus:ring-0 dark:border-green-500 dark:bg-gray-700 dark:text-white dark:focus:border-green-500\",\n md: \"peer block w-full appearance-none rounded-t-lg border-0 border-b-2 border-green-600 bg-gray-50 px-2.5 pb-2.5 pt-5 text-sm text-gray-900 focus:border-green-600 focus:outline-none focus:ring-0 dark:border-green-500 dark:bg-gray-700 dark:text-white dark:focus:border-green-500\"\n },\n outlined: {\n sm: \"peer block w-full appearance-none rounded-lg border border-green-600 bg-transparent px-2.5 pb-2.5 pt-4 text-xs text-gray-900 focus:border-green-600 focus:outline-none focus:ring-0 dark:border-green-500 dark:text-white dark:focus:border-green-500\",\n md: \"peer block w-full appearance-none rounded-lg border border-green-600 bg-transparent px-2.5 pb-2.5 pt-4 text-sm text-gray-900 focus:border-green-600 focus:outline-none focus:ring-0 dark:border-green-500 dark:text-white dark:focus:border-green-500\"\n },\n standard: {\n sm: \"peer block w-full appearance-none border-0 border-b-2 border-green-600 bg-transparent px-0 py-2.5 text-xs text-gray-900 focus:border-green-600 focus:outline-none focus:ring-0 dark:border-green-500 dark:text-white dark:focus:border-green-500\",\n md: \"peer block w-full appearance-none border-0 border-b-2 border-green-600 bg-transparent px-0 py-2.5 text-sm text-gray-900 focus:border-green-600 focus:outline-none focus:ring-0 dark:border-green-500 dark:text-white dark:focus:border-green-500\"\n }\n },\n error: {\n filled: {\n sm: \"peer block w-full appearance-none rounded-t-lg border-0 border-b-2 border-red-600 bg-gray-50 px-2.5 pb-2.5 pt-5 text-xs text-gray-900 focus:border-red-600 focus:outline-none focus:ring-0 dark:border-red-500 dark:bg-gray-700 dark:text-white dark:focus:border-red-500\",\n md: \"peer block w-full appearance-none rounded-t-lg border-0 border-b-2 border-red-600 bg-gray-50 px-2.5 pb-2.5 pt-5 text-sm text-gray-900 focus:border-red-600 focus:outline-none focus:ring-0 dark:border-red-500 dark:bg-gray-700 dark:text-white dark:focus:border-red-500\"\n },\n outlined: {\n sm: \"peer block w-full appearance-none rounded-lg border border-red-600 bg-transparent px-2.5 pb-2.5 pt-4 text-xs text-gray-900 focus:border-red-600 focus:outline-none focus:ring-0 dark:border-red-500 dark:text-white dark:focus:border-red-500\",\n md: \"peer block w-full appearance-none rounded-lg border border-red-600 bg-transparent px-2.5 pb-2.5 pt-4 text-sm text-gray-900 focus:border-red-600 focus:outline-none focus:ring-0 dark:border-red-500 dark:text-white dark:focus:border-red-500\"\n },\n standard: {\n sm: \"peer block w-full appearance-none border-0 border-b-2 border-red-600 bg-transparent px-0 py-2.5 text-xs text-gray-900 focus:border-red-600 focus:outline-none focus:ring-0 dark:border-red-500 dark:text-white dark:focus:border-red-500\",\n md: \"peer block w-full appearance-none border-0 border-b-2 border-red-600 bg-transparent px-0 py-2.5 text-sm text-gray-900 focus:border-red-600 focus:outline-none focus:ring-0 dark:border-red-500 dark:text-white dark:focus:border-red-500\"\n }\n }\n },\n label: {\n default: {\n filled: {\n sm: \"absolute left-2.5 top-4 z-10 origin-[0] -translate-y-4 scale-75 text-xs text-gray-500 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:-translate-y-4 peer-focus:scale-75 peer-focus:text-blue-600 dark:text-gray-400 peer-focus:dark:text-blue-500\",\n md: \"absolute left-2.5 top-4 z-10 origin-[0] -translate-y-4 scale-75 text-sm text-gray-500 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:-translate-y-4 peer-focus:scale-75 peer-focus:text-blue-600 dark:text-gray-400 peer-focus:dark:text-blue-500\"\n },\n outlined: {\n sm: \"absolute left-1 top-2 z-10 origin-[0] -translate-y-4 scale-75 bg-white px-2 text-xs text-gray-500 transition-transform duration-300 peer-placeholder-shown:top-1/2 peer-placeholder-shown:-translate-y-1/2 peer-placeholder-shown:scale-100 peer-focus:top-2 peer-focus:-translate-y-4 peer-focus:scale-75 peer-focus:px-2 peer-focus:text-blue-600 dark:bg-gray-900 dark:text-gray-400 peer-focus:dark:text-blue-500\",\n md: \"absolute left-1 top-2 z-10 origin-[0] -translate-y-4 scale-75 bg-white px-2 text-sm text-gray-500 transition-transform duration-300 peer-placeholder-shown:top-1/2 peer-placeholder-shown:-translate-y-1/2 peer-placeholder-shown:scale-100 peer-focus:top-2 peer-focus:-translate-y-4 peer-focus:scale-75 peer-focus:px-2 peer-focus:text-blue-600 dark:bg-gray-900 dark:text-gray-400 peer-focus:dark:text-blue-500\"\n },\n standard: {\n sm: \"absolute top-3 -z-10 origin-[0] -translate-y-6 scale-75 text-xs text-gray-500 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:left-0 peer-focus:-translate-y-6 peer-focus:scale-75 peer-focus:text-blue-600 dark:text-gray-400 peer-focus:dark:text-blue-500\",\n md: \"absolute top-3 -z-10 origin-[0] -translate-y-6 scale-75 text-sm text-gray-500 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:left-0 peer-focus:-translate-y-6 peer-focus:scale-75 peer-focus:text-blue-600 dark:text-gray-400 peer-focus:dark:text-blue-500\"\n }\n },\n success: {\n filled: {\n sm: \"absolute left-2.5 top-4 z-10 origin-[0] -translate-y-4 scale-75 text-sm text-green-600 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:-translate-y-4 peer-focus:scale-75 dark:text-green-500\",\n md: \"absolute left-2.5 top-4 z-10 origin-[0] -translate-y-4 scale-75 text-sm text-green-600 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:-translate-y-4 peer-focus:scale-75 dark:text-green-500\"\n },\n outlined: {\n sm: \"absolute left-1 top-2 z-10 origin-[0] -translate-y-4 scale-75 bg-white px-2 text-sm text-green-600 transition-transform duration-300 peer-placeholder-shown:top-1/2 peer-placeholder-shown:-translate-y-1/2 peer-placeholder-shown:scale-100 peer-focus:top-2 peer-focus:-translate-y-4 peer-focus:scale-75 peer-focus:px-2 dark:bg-gray-900 dark:text-green-500\",\n md: \"absolute left-1 top-2 z-10 origin-[0] -translate-y-4 scale-75 bg-white px-2 text-sm text-green-600 transition-transform duration-300 peer-placeholder-shown:top-1/2 peer-placeholder-shown:-translate-y-1/2 peer-placeholder-shown:scale-100 peer-focus:top-2 peer-focus:-translate-y-4 peer-focus:scale-75 peer-focus:px-2 dark:bg-gray-900 dark:text-green-500\"\n },\n standard: {\n sm: \"absolute top-3 -z-10 origin-[0] -translate-y-6 scale-75 text-xs text-green-600 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:left-0 peer-focus:-translate-y-6 peer-focus:scale-75 dark:text-green-500\",\n md: \"absolute top-3 -z-10 origin-[0] -translate-y-6 scale-75 text-sm text-green-600 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:left-0 peer-focus:-translate-y-6 peer-focus:scale-75 dark:text-green-500\"\n }\n },\n error: {\n filled: {\n sm: \"absolute left-2.5 top-4 z-10 origin-[0] -translate-y-4 scale-75 text-xs text-red-600 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:-translate-y-4 peer-focus:scale-75 dark:text-red-500\",\n md: \"absolute left-2.5 top-4 z-10 origin-[0] -translate-y-4 scale-75 text-xs text-red-600 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:-translate-y-4 peer-focus:scale-75 dark:text-red-500\"\n },\n outlined: {\n sm: \"absolute left-1 top-2 z-10 origin-[0] -translate-y-4 scale-75 bg-white px-2 text-xs text-red-600 transition-transform duration-300 peer-placeholder-shown:top-1/2 peer-placeholder-shown:-translate-y-1/2 peer-placeholder-shown:scale-100 peer-focus:top-2 peer-focus:-translate-y-4 peer-focus:scale-75 peer-focus:px-2 dark:bg-gray-900 dark:text-red-500\",\n md: \"absolute left-1 top-2 z-10 origin-[0] -translate-y-4 scale-75 bg-white px-2 text-xs text-red-600 transition-transform duration-300 peer-placeholder-shown:top-1/2 peer-placeholder-shown:-translate-y-1/2 peer-placeholder-shown:scale-100 peer-focus:top-2 peer-focus:-translate-y-4 peer-focus:scale-75 peer-focus:px-2 dark:bg-gray-900 dark:text-red-500\"\n },\n standard: {\n sm: \"absolute top-3 -z-10 origin-[0] -translate-y-6 scale-75 text-xs text-red-600 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:left-0 peer-focus:-translate-y-6 peer-focus:scale-75 dark:text-red-500\",\n md: \"absolute top-3 -z-10 origin-[0] -translate-y-6 scale-75 text-sm text-red-600 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:left-0 peer-focus:-translate-y-6 peer-focus:scale-75 dark:text-red-500\"\n }\n }\n },\n helperText: {\n default: \"mt-2 text-xs text-gray-600 dark:text-gray-400\",\n success: \"mt-2 text-xs text-green-600 dark:text-green-400\",\n error: \"mt-2 text-xs text-red-600 dark:text-red-400\"\n }\n});\n\nexport { floatingLabelTheme };\n//# sourceMappingURL=theme.mjs.map\n","import { createTheme } from '../../helpers/create-theme.mjs';\n\nconst footerTheme = createTheme({\n root: {\n base: \"w-full rounded-lg bg-white shadow dark:bg-gray-800 md:flex md:items-center md:justify-between\",\n container: \"w-full p-6\",\n bgDark: \"bg-gray-800\"\n },\n groupLink: {\n base: \"flex flex-wrap text-sm text-gray-500 dark:text-white\",\n link: {\n base: \"me-4 last:mr-0 md:mr-6\",\n href: \"hover:underline\"\n },\n col: \"flex-col space-y-4\"\n },\n icon: {\n base: \"text-gray-500 dark:hover:text-white\",\n size: \"h-5 w-5\"\n },\n title: {\n base: \"mb-6 text-sm font-semibold uppercase text-gray-500 dark:text-white\"\n },\n divider: {\n base: \"my-6 w-full border-gray-200 dark:border-gray-700 sm:mx-auto lg:my-8\"\n },\n copyright: {\n base: \"text-sm text-gray-500 dark:text-gray-400 sm:text-center\",\n href: \"ml-1 hover:underline\",\n span: \"ml-1\"\n },\n brand: {\n base: \"mb-4 flex items-center sm:mb-0\",\n img: \"mr-3 h-8\",\n span: \"self-center whitespace-nowrap text-2xl font-semibold text-gray-800 dark:text-white\"\n }\n});\n\nexport { footerTheme };\n//# sourceMappingURL=theme.mjs.map\n","import { createTheme } from '../../helpers/create-theme.mjs';\n\nconst helperTextTheme = createTheme({\n root: {\n base: \"mt-2 text-sm\",\n colors: {\n gray: \"text-gray-500 dark:text-gray-400\",\n info: \"text-cyan-700 dark:text-cyan-800\",\n success: \"text-green-600 dark:text-green-500\",\n failure: \"text-red-600 dark:text-red-500\",\n warning: \"text-yellow-500 dark:text-yellow-600\"\n }\n }\n});\n\nexport { helperTextTheme };\n//# sourceMappingURL=theme.mjs.map\n","import { createTheme } from '../../helpers/create-theme.mjs';\n\nconst kbdTheme = createTheme({\n root: {\n base: \"rounded-lg border border-gray-200 bg-gray-100 px-2 py-1.5 text-xs font-semibold text-gray-800 dark:border-gray-500 dark:bg-gray-600 dark:text-gray-100\",\n icon: \"inline-block\"\n }\n});\n\nexport { kbdTheme };\n//# sourceMappingURL=theme.mjs.map\n","import { createTheme } from '../../helpers/create-theme.mjs';\n\nconst labelTheme = createTheme({\n root: {\n base: \"text-sm font-medium\",\n disabled: \"opacity-50\",\n colors: {\n default: \"text-gray-900 dark:text-white\",\n info: \"text-cyan-500 dark:text-cyan-600\",\n failure: \"text-red-700 dark:text-red-500\",\n warning: \"text-yellow-500 dark:text-yellow-600\",\n success: \"text-green-700 dark:text-green-500\"\n }\n }\n});\n\nexport { labelTheme };\n//# sourceMappingURL=theme.mjs.map\n","import { createTheme } from '../../helpers/create-theme.mjs';\n\nconst listGroupTheme = createTheme({\n root: {\n base: \"list-none rounded-lg border border-gray-200 bg-white text-left text-sm font-medium text-gray-900 dark:border-gray-600 dark:bg-gray-700 dark:text-white\"\n },\n item: {\n base: \"[&>*]:first:rounded-t-lg [&>*]:last:rounded-b-lg [&>*]:last:border-b-0\",\n link: {\n base: \"flex w-full items-center border-b border-gray-200 px-4 py-2 dark:border-gray-600\",\n active: {\n off: \"hover:bg-gray-100 hover:text-cyan-700 focus:text-cyan-700 focus:outline-none focus:ring-2 focus:ring-cyan-700 dark:border-gray-600 dark:hover:bg-gray-600 dark:hover:text-white dark:focus:text-white dark:focus:ring-gray-500\",\n on: \"bg-cyan-700 text-white dark:bg-gray-800\"\n },\n disabled: {\n off: \"\",\n on: \"cursor-not-allowed bg-gray-100 text-gray-900 hover:bg-gray-100 hover:text-gray-900 focus:text-gray-900\"\n },\n href: {\n off: \"\",\n on: \"\"\n },\n icon: \"mr-2 h-4 w-4 fill-current\"\n }\n }\n});\n\nexport { listGroupTheme };\n//# sourceMappingURL=theme.mjs.map\n","import { createTheme } from '../../helpers/create-theme.mjs';\n\nconst listTheme = createTheme({\n root: {\n base: \"list-inside space-y-1 text-gray-500 dark:text-gray-400\",\n ordered: {\n off: \"list-disc\",\n on: \"list-decimal\"\n },\n horizontal: \"flex list-none flex-wrap items-center justify-center space-x-4 space-y-0\",\n unstyled: \"list-none\",\n nested: \"mt-2 ps-5\"\n },\n item: {\n withIcon: {\n off: \"\",\n on: \"flex items-center\"\n },\n icon: \"me-2 h-3.5 w-3.5 flex-shrink-0\"\n }\n});\n\nexport { listTheme };\n//# sourceMappingURL=theme.mjs.map\n","import { createTheme } from '../../helpers/create-theme.mjs';\n\nconst modalTheme = createTheme({\n root: {\n base: \"fixed inset-x-0 top-0 z-50 h-screen overflow-y-auto overflow-x-hidden md:inset-0 md:h-full\",\n show: {\n on: \"flex bg-gray-900 bg-opacity-50 dark:bg-opacity-80\",\n off: \"hidden\"\n },\n sizes: {\n sm: \"max-w-sm\",\n md: \"max-w-md\",\n lg: \"max-w-lg\",\n xl: \"max-w-xl\",\n \"2xl\": \"max-w-2xl\",\n \"3xl\": \"max-w-3xl\",\n \"4xl\": \"max-w-4xl\",\n \"5xl\": \"max-w-5xl\",\n \"6xl\": \"max-w-6xl\",\n \"7xl\": \"max-w-7xl\"\n },\n positions: {\n \"top-left\": \"items-start justify-start\",\n \"top-center\": \"items-start justify-center\",\n \"top-right\": \"items-start justify-end\",\n \"center-left\": \"items-center justify-start\",\n center: \"items-center justify-center\",\n \"center-right\": \"items-center justify-end\",\n \"bottom-right\": \"items-end justify-end\",\n \"bottom-center\": \"items-end justify-center\",\n \"bottom-left\": \"items-end justify-start\"\n }\n },\n content: {\n base: \"relative h-full w-full p-4 md:h-auto\",\n inner: \"relative flex max-h-[90dvh] flex-col rounded-lg bg-white shadow dark:bg-gray-700\"\n },\n body: {\n base: \"flex-1 overflow-auto p-6\",\n popup: \"pt-0\"\n },\n header: {\n base: \"flex items-start justify-between rounded-t border-b p-5 dark:border-gray-600\",\n popup: \"border-b-0 p-2\",\n title: \"text-xl font-medium text-gray-900 dark:text-white\",\n close: {\n base: \"ml-auto inline-flex items-center rounded-lg bg-transparent p-1.5 text-sm text-gray-400 hover:bg-gray-200 hover:text-gray-900 dark:hover:bg-gray-600 dark:hover:text-white\",\n icon: \"h-5 w-5\"\n }\n },\n footer: {\n base: \"flex items-center space-x-2 rounded-b border-gray-200 p-6 dark:border-gray-600\",\n popup: \"border-t\"\n }\n});\n\nexport { modalTheme };\n//# sourceMappingURL=theme.mjs.map\n","import { createTheme } from '../../helpers/create-theme.mjs';\n\nconst navbarTheme = createTheme({\n root: {\n base: \"bg-white px-2 py-2.5 dark:border-gray-700 dark:bg-gray-800 sm:px-4\",\n rounded: {\n on: \"rounded\",\n off: \"\"\n },\n bordered: {\n on: \"border\",\n off: \"\"\n },\n inner: {\n base: \"mx-auto flex flex-wrap items-center justify-between\",\n fluid: {\n on: \"\",\n off: \"container\"\n }\n }\n },\n brand: {\n base: \"flex items-center\"\n },\n collapse: {\n base: \"w-full md:block md:w-auto\",\n list: \"mt-4 flex flex-col md:mt-0 md:flex-row md:space-x-8 md:text-sm md:font-medium\",\n hidden: {\n on: \"hidden\",\n off: \"\"\n }\n },\n link: {\n base: \"block py-2 pl-3 pr-4 md:p-0\",\n active: {\n on: \"bg-cyan-700 text-white dark:text-white md:bg-transparent md:text-cyan-700\",\n off: \"border-b border-gray-100 text-gray-700 hover:bg-gray-50 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white md:border-0 md:hover:bg-transparent md:hover:text-cyan-700 md:dark:hover:bg-transparent md:dark:hover:text-white\"\n },\n disabled: {\n on: \"text-gray-400 hover:cursor-not-allowed dark:text-gray-600\",\n off: \"\"\n }\n },\n toggle: {\n base: \"inline-flex items-center rounded-lg p-2 text-sm text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-gray-200 dark:text-gray-400 dark:hover:bg-gray-700 dark:focus:ring-gray-600 md:hidden\",\n icon: \"h-6 w-6 shrink-0\"\n }\n});\n\nexport { navbarTheme };\n//# sourceMappingURL=theme.mjs.map\n","import { createTheme } from '../../helpers/create-theme.mjs';\n\nconst paginationTheme = createTheme({\n base: \"\",\n layout: {\n table: {\n base: \"text-sm text-gray-700 dark:text-gray-400\",\n span: \"font-semibold text-gray-900 dark:text-white\"\n }\n },\n pages: {\n base: \"xs:mt-0 mt-2 inline-flex items-center -space-x-px\",\n showIcon: \"inline-flex\",\n previous: {\n base: \"ml-0 rounded-l-lg border border-gray-300 bg-white px-3 py-2 leading-tight text-gray-500 enabled:hover:bg-gray-100 enabled:hover:text-gray-700 dark:border-gray-700 dark:bg-gray-800 dark:text-gray-400 enabled:dark:hover:bg-gray-700 enabled:dark:hover:text-white\",\n icon: \"h-5 w-5\"\n },\n next: {\n base: \"rounded-r-lg border border-gray-300 bg-white px-3 py-2 leading-tight text-gray-500 enabled:hover:bg-gray-100 enabled:hover:text-gray-700 dark:border-gray-700 dark:bg-gray-800 dark:text-gray-400 enabled:dark:hover:bg-gray-700 enabled:dark:hover:text-white\",\n icon: \"h-5 w-5\"\n },\n selector: {\n base: \"w-12 border border-gray-300 bg-white py-2 leading-tight text-gray-500 enabled:hover:bg-gray-100 enabled:hover:text-gray-700 dark:border-gray-700 dark:bg-gray-800 dark:text-gray-400 enabled:dark:hover:bg-gray-700 enabled:dark:hover:text-white\",\n active: \"bg-cyan-50 text-cyan-600 hover:bg-cyan-100 hover:text-cyan-700 dark:border-gray-700 dark:bg-gray-700 dark:text-white\",\n disabled: \"cursor-not-allowed opacity-50\"\n }\n }\n});\n\nexport { paginationTheme };\n//# sourceMappingURL=theme.mjs.map\n","const popoverTheme = {\n base: \"absolute z-20 inline-block w-max max-w-[100vw] bg-white outline-none border border-gray-200 rounded-lg shadow-sm dark:border-gray-600 dark:bg-gray-800\",\n content: \"z-10 overflow-hidden rounded-[7px]\",\n arrow: {\n base: \"absolute h-2 w-2 z-0 rotate-45 mix-blend-lighten bg-white border border-gray-200 dark:border-gray-600 dark:bg-gray-800 dark:mix-blend-color\",\n placement: \"-4px\"\n }\n};\n\nexport { popoverTheme };\n//# sourceMappingURL=theme.mjs.map\n","import { createTheme } from '../../helpers/create-theme.mjs';\n\nconst progressTheme = createTheme({\n base: \"w-full overflow-hidden rounded-full bg-gray-200 dark:bg-gray-700\",\n label: \"mb-1 flex justify-between font-medium dark:text-white\",\n bar: \"space-x-2 rounded-full text-center font-medium leading-none text-cyan-300 dark:text-cyan-100\",\n color: {\n dark: \"bg-gray-600 dark:bg-gray-300\",\n blue: \"bg-blue-600\",\n red: \"bg-red-600 dark:bg-red-500\",\n green: \"bg-green-600 dark:bg-green-500\",\n yellow: \"bg-yellow-400\",\n indigo: \"bg-indigo-600 dark:bg-indigo-500\",\n purple: \"bg-purple-600 dark:bg-purple-500\",\n cyan: \"bg-cyan-600\",\n gray: \"bg-gray-500\",\n lime: \"bg-lime-600\",\n pink: \"bg-pink-500\",\n teal: \"bg-teal-600\"\n },\n size: {\n sm: \"h-1.5\",\n md: \"h-2.5\",\n lg: \"h-4\",\n xl: \"h-6\"\n }\n});\n\nexport { progressTheme };\n//# sourceMappingURL=theme.mjs.map\n","import { createTheme } from '../../helpers/create-theme.mjs';\n\nconst radioTheme = createTheme({\n root: {\n base: \"h-4 w-4 border border-gray-300 text-cyan-600 focus:ring-2 focus:ring-cyan-500 dark:border-gray-600 dark:bg-gray-700 dark:focus:bg-cyan-600 dark:focus:ring-cyan-600\"\n }\n});\n\nexport { radioTheme };\n//# sourceMappingURL=theme.mjs.map\n","import { createTheme } from '../../helpers/create-theme.mjs';\n\nconst rangeSliderTheme = createTheme({\n root: {\n base: \"flex\"\n },\n field: {\n base: \"relative w-full\",\n input: {\n base: \"w-full cursor-pointer appearance-none rounded-lg bg-gray-200 dark:bg-gray-700\",\n sizes: {\n sm: \"h-1\",\n md: \"h-2\",\n lg: \"h-3\"\n }\n }\n }\n});\n\nexport { rangeSliderTheme };\n//# sourceMappingURL=theme.mjs.map\n","import { createTheme } from '../../helpers/create-theme.mjs';\n\nconst ratingTheme = createTheme({\n root: {\n base: \"flex items-center\"\n },\n star: {\n empty: \"text-gray-300 dark:text-gray-500\",\n filled: \"text-yellow-400\",\n sizes: {\n sm: \"h-5 w-5\",\n md: \"h-7 w-7\",\n lg: \"h-10 w-10\"\n }\n }\n});\nconst ratingAdvancedTheme = createTheme({\n base: \"flex items-center\",\n label: \"text-sm font-medium text-cyan-600 dark:text-cyan-500\",\n progress: {\n base: \"mx-4 h-5 w-2/4 rounded bg-gray-200 dark:bg-gray-700\",\n fill: \"h-5 rounded bg-yellow-400\",\n label: \"text-sm font-medium text-cyan-600 dark:text-cyan-500\"\n }\n});\n\nexport { ratingAdvancedTheme, ratingTheme };\n//# sourceMappingURL=theme.mjs.map\n","import { createTheme } from '../../helpers/create-theme.mjs';\n\nconst selectTheme = createTheme({\n base: \"flex\",\n addon: \"inline-flex items-center rounded-l-md border border-r-0 border-gray-300 bg-gray-200 px-3 text-sm text-gray-900 dark:border-gray-600 dark:bg-gray-600 dark:text-gray-400\",\n field: {\n base: \"relative w-full\",\n icon: {\n base: \"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3\",\n svg: \"h-5 w-5 text-gray-500 dark:text-gray-400\"\n },\n select: {\n base: \"block w-full border disabled:cursor-not-allowed disabled:opacity-50\",\n withIcon: {\n on: \"pl-10\",\n off: \"\"\n },\n withAddon: {\n on: \"rounded-r-lg\",\n off: \"rounded-lg\"\n },\n withShadow: {\n on: \"shadow-sm dark:shadow-sm-light\",\n off: \"\"\n },\n sizes: {\n sm: \"p-2 sm:text-xs\",\n md: \"p-2.5 text-sm\",\n lg: \"p-4 sm:text-base\"\n },\n colors: {\n gray: \"border-gray-300 bg-gray-50 text-gray-900 focus:border-cyan-500 focus:ring-cyan-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-cyan-500 dark:focus:ring-cyan-500\",\n info: \"border-cyan-500 bg-cyan-50 text-cyan-900 placeholder-cyan-700 focus:border-cyan-500 focus:ring-cyan-500 dark:border-cyan-400 dark:bg-cyan-100 dark:focus:border-cyan-500 dark:focus:ring-cyan-500\",\n failure: \"border-red-500 bg-red-50 text-red-900 placeholder-red-700 focus:border-red-500 focus:ring-red-500 dark:border-red-400 dark:bg-red-100 dark:focus:border-red-500 dark:focus:ring-red-500\",\n warning: \"border-yellow-500 bg-yellow-50 text-yellow-900 placeholder-yellow-700 focus:border-yellow-500 focus:ring-yellow-500 dark:border-yellow-400 dark:bg-yellow-100 dark:focus:border-yellow-500 dark:focus:ring-yellow-500\",\n success: \"border-green-500 bg-green-50 text-green-900 placeholder-green-700 focus:border-green-500 focus:ring-green-500 dark:border-green-400 dark:bg-green-100 dark:focus:border-green-500 dark:focus:ring-green-500\"\n }\n }\n }\n});\n\nexport { selectTheme };\n//# sourceMappingURL=theme.mjs.map\n","import { createTheme } from '../../helpers/create-theme.mjs';\n\nconst textInputTheme = createTheme({\n base: \"flex\",\n addon: \"inline-flex items-center rounded-l-md border border-r-0 border-gray-300 bg-gray-200 px-3 text-sm text-gray-900 dark:border-gray-600 dark:bg-gray-600 dark:text-gray-400\",\n field: {\n base: \"relative w-full\",\n icon: {\n base: \"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3\",\n svg: \"h-5 w-5 text-gray-500 dark:text-gray-400\"\n },\n rightIcon: {\n base: \"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3\",\n svg: \"h-5 w-5 text-gray-500 dark:text-gray-400\"\n },\n input: {\n base: \"block w-full border disabled:cursor-not-allowed disabled:opacity-50\",\n sizes: {\n sm: \"p-2 sm:text-xs\",\n md: \"p-2.5 text-sm\",\n lg: \"p-4 sm:text-base\"\n },\n colors: {\n gray: \"border-gray-300 bg-gray-50 text-gray-900 focus:border-cyan-500 focus:ring-cyan-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-cyan-500 dark:focus:ring-cyan-500\",\n info: \"border-cyan-500 bg-cyan-50 text-cyan-900 placeholder-cyan-700 focus:border-cyan-500 focus:ring-cyan-500 dark:border-cyan-400 dark:bg-cyan-100 dark:focus:border-cyan-500 dark:focus:ring-cyan-500\",\n failure: \"border-red-500 bg-red-50 text-red-900 placeholder-red-700 focus:border-red-500 focus:ring-red-500 dark:border-red-400 dark:bg-red-100 dark:focus:border-red-500 dark:focus:ring-red-500\",\n warning: \"border-yellow-500 bg-yellow-50 text-yellow-900 placeholder-yellow-700 focus:border-yellow-500 focus:ring-yellow-500 dark:border-yellow-400 dark:bg-yellow-100 dark:focus:border-yellow-500 dark:focus:ring-yellow-500\",\n success: \"border-green-500 bg-green-50 text-green-900 placeholder-green-700 focus:border-green-500 focus:ring-green-500 dark:border-green-400 dark:bg-green-100 dark:focus:border-green-500 dark:focus:ring-green-500\"\n },\n withRightIcon: {\n on: \"pr-10\",\n off: \"\"\n },\n withIcon: {\n on: \"pl-10\",\n off: \"\"\n },\n withAddon: {\n on: \"rounded-r-lg\",\n off: \"rounded-lg\"\n },\n withShadow: {\n on: \"shadow-sm dark:shadow-sm-light\",\n off: \"\"\n }\n }\n }\n});\n\nexport { textInputTheme };\n//# sourceMappingURL=theme.mjs.map\n","import { createTheme } from '../../helpers/create-theme.mjs';\n\nconst textareaTheme = createTheme({\n base: \"block w-full rounded-lg border text-sm disabled:cursor-not-allowed disabled:opacity-50\",\n colors: {\n gray: \"border-gray-300 bg-gray-50 text-gray-900 focus:border-cyan-500 focus:ring-cyan-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-cyan-500 dark:focus:ring-cyan-500\",\n info: \"border-cyan-500 bg-cyan-50 text-cyan-900 placeholder-cyan-700 focus:border-cyan-500 focus:ring-cyan-500 dark:border-cyan-400 dark:bg-cyan-100 dark:focus:border-cyan-500 dark:focus:ring-cyan-500\",\n failure: \"border-red-500 bg-red-50 text-red-900 placeholder-red-700 focus:border-red-500 focus:ring-red-500 dark:border-red-400 dark:bg-red-100 dark:focus:border-red-500 dark:focus:ring-red-500\",\n warning: \"border-yellow-500 bg-yellow-50 text-yellow-900 placeholder-yellow-700 focus:border-yellow-500 focus:ring-yellow-500 dark:border-yellow-400 dark:bg-yellow-100 dark:focus:border-yellow-500 dark:focus:ring-yellow-500\",\n success: \"border-green-500 bg-green-50 text-green-900 placeholder-green-700 focus:border-green-500 focus:ring-green-500 dark:border-green-400 dark:bg-green-100 dark:focus:border-green-500 dark:focus:ring-green-500\"\n },\n withShadow: {\n on: \"shadow-sm dark:shadow-sm-light\",\n off: \"\"\n }\n});\n\nexport { textareaTheme };\n//# sourceMappingURL=theme.mjs.map\n","import { createTheme } from '../../helpers/create-theme.mjs';\n\nconst toggleSwitchTheme = createTheme({\n root: {\n base: \"group relative flex items-center rounded-lg focus:outline-none\",\n active: {\n on: \"cursor-pointer\",\n off: \"cursor-not-allowed opacity-50\"\n },\n label: \"ml-3 text-sm font-medium text-gray-900 dark:text-gray-300\"\n },\n toggle: {\n base: \"rounded-full border group-focus:ring-4 group-focus:ring-cyan-500/25\",\n checked: {\n on: \"after:translate-x-full after:border-white\",\n off: \"border-gray-200 bg-gray-200 dark:border-gray-600 dark:bg-gray-700\",\n color: {\n blue: \"border-cyan-700 bg-cyan-700\",\n dark: \"bg-dark-700 border-dark-900\",\n failure: \"border-red-900 bg-red-700\",\n gray: \"border-gray-600 bg-gray-500\",\n green: \"border-green-700 bg-green-600\",\n light: \"bg-light-700 border-light-900\",\n red: \"border-red-900 bg-red-700\",\n purple: \"border-purple-900 bg-purple-700\",\n success: \"border-green-500 bg-green-500\",\n yellow: \"border-yellow-400 bg-yellow-400\",\n warning: \"border-yellow-600 bg-yellow-600\",\n cyan: \"border-cyan-500 bg-cyan-500\",\n lime: \"border-lime-400 bg-lime-400\",\n indigo: \"border-indigo-400 bg-indigo-400\",\n teal: \"bg-gradient-to-r from-teal-400 via-teal-500 to-teal-600 hover:bg-gradient-to-br focus:ring-4\",\n info: \"border-cyan-600 bg-cyan-600\",\n pink: \"border-pink-600 bg-pink-600\"\n }\n },\n sizes: {\n sm: \"h-5 w-9 after:absolute after:left-[2px] after:top-[2px] after:h-4 after:w-4\",\n md: \"h-6 w-11 after:absolute after:left-[2px] after:top-[2px] after:h-5 after:w-5\",\n lg: \"h-7 w-14 after:absolute after:left-[4px] after:top-0.5 after:h-6 after:w-6\"\n }\n }\n});\n\nexport { toggleSwitchTheme };\n//# sourceMappingURL=theme.mjs.map\n","import { createTheme } from '../../helpers/create-theme.mjs';\n\nconst sidebarTheme = createTheme({\n root: {\n base: \"h-full\",\n collapsed: {\n on: \"w-16\",\n off: \"w-64\"\n },\n inner: \"h-full overflow-y-auto overflow-x-hidden rounded bg-gray-50 px-3 py-4 dark:bg-gray-800\"\n },\n collapse: {\n button: \"group flex w-full items-center rounded-lg p-2 text-base font-normal text-gray-900 transition duration-75 hover:bg-gray-100 dark:text-white dark:hover:bg-gray-700\",\n icon: {\n base: \"h-6 w-6 text-gray-500 transition duration-75 group-hover:text-gray-900 dark:text-gray-400 dark:group-hover:text-white\",\n open: {\n off: \"\",\n on: \"text-gray-900\"\n }\n },\n label: {\n base: \"ml-3 flex-1 whitespace-nowrap text-left\",\n icon: {\n base: \"h-6 w-6 transition delay-0 ease-in-out\",\n open: {\n on: \"rotate-180\",\n off: \"\"\n }\n }\n },\n list: \"space-y-2 py-2\"\n },\n cta: {\n base: \"mt-6 rounded-lg bg-gray-100 p-4 dark:bg-gray-700\",\n color: {\n blue: \"bg-cyan-50 dark:bg-cyan-900\",\n dark: \"bg-dark-50 dark:bg-dark-900\",\n failure: \"bg-red-50 dark:bg-red-900\",\n gray: \"bg-alternative-50 dark:bg-alternative-900\",\n green: \"bg-green-50 dark:bg-green-900\",\n light: \"bg-light-50 dark:bg-light-900\",\n red: \"bg-red-50 dark:bg-red-900\",\n purple: \"bg-purple-50 dark:bg-purple-900\",\n success: \"bg-green-50 dark:bg-green-900\",\n yellow: \"bg-yellow-50 dark:bg-yellow-900\",\n warning: \"bg-yellow-50 dark:bg-yellow-900\"\n }\n },\n item: {\n base: \"flex items-center justify-center rounded-lg p-2 text-base font-normal text-gray-900 hover:bg-gray-100 dark:text-white dark:hover:bg-gray-700\",\n active: \"bg-gray-100 dark:bg-gray-700\",\n collapsed: {\n insideCollapse: \"group w-full pl-8 transition duration-75\",\n noIcon: \"font-bold\"\n },\n content: {\n base: \"flex-1 whitespace-nowrap px-3\"\n },\n icon: {\n base: \"h-6 w-6 flex-shrink-0 text-gray-500 transition duration-75 group-hover:text-gray-900 dark:text-gray-400 dark:group-hover:text-white\",\n active: \"text-gray-700 dark:text-gray-100\"\n },\n label: \"\",\n listItem: \"\"\n },\n items: {\n base: \"\"\n },\n itemGroup: {\n base: \"mt-4 space-y-2 border-t border-gray-200 pt-4 first:mt-0 first:border-t-0 first:pt-0 dark:border-gray-700\"\n },\n logo: {\n base: \"mb-5 flex items-center pl-2.5\",\n collapsed: {\n on: \"hidden\",\n off: \"self-center whitespace-nowrap text-xl font-semibold dark:text-white\"\n },\n img: \"mr-3 h-6 sm:h-7\"\n }\n});\n\nexport { sidebarTheme };\n//# sourceMappingURL=theme.mjs.map\n","import { createTheme } from '../../helpers/create-theme.mjs';\n\nconst spinnerTheme = createTheme({\n base: \"inline animate-spin text-gray-200\",\n color: {\n failure: \"fill-red-600\",\n gray: \"fill-gray-600\",\n info: \"fill-cyan-600\",\n pink: \"fill-pink-600\",\n purple: \"fill-purple-600\",\n success: \"fill-green-500\",\n warning: \"fill-yellow-400\"\n },\n light: {\n off: {\n base: \"dark:text-gray-600\",\n color: {\n failure: \"\",\n gray: \"dark:fill-gray-300\",\n info: \"\",\n pink: \"\",\n purple: \"\",\n success: \"\",\n warning: \"\"\n }\n },\n on: {\n base: \"\",\n color: {\n failure: \"\",\n gray: \"\",\n info: \"\",\n pink: \"\",\n purple: \"\",\n success: \"\",\n warning: \"\"\n }\n }\n },\n size: {\n xs: \"h-3 w-3\",\n sm: \"h-4 w-4\",\n md: \"h-6 w-6\",\n lg: \"h-8 w-8\",\n xl: \"h-10 w-10\"\n }\n});\n\nexport { spinnerTheme };\n//# sourceMappingURL=theme.mjs.map\n","import { createTheme } from '../../helpers/create-theme.mjs';\n\nconst tableTheme = createTheme({\n root: {\n base: \"w-full text-left text-sm text-gray-500 dark:text-gray-400\",\n shadow: \"absolute left-0 top-0 -z-10 h-full w-full rounded-lg bg-white drop-shadow-md dark:bg-black\",\n wrapper: \"relative\"\n },\n body: {\n base: \"group/body\",\n cell: {\n base: \"px-6 py-4 group-first/body:group-first/row:first:rounded-tl-lg group-first/body:group-first/row:last:rounded-tr-lg group-last/body:group-last/row:first:rounded-bl-lg group-last/body:group-last/row:last:rounded-br-lg\"\n }\n },\n head: {\n base: \"group/head text-xs uppercase text-gray-700 dark:text-gray-400\",\n cell: {\n base: \"bg-gray-50 px-6 py-3 group-first/head:first:rounded-tl-lg group-first/head:last:rounded-tr-lg dark:bg-gray-700\"\n }\n },\n row: {\n base: \"group/row\",\n hovered: \"hover:bg-gray-50 dark:hover:bg-gray-600\",\n striped: \"odd:bg-white even:bg-gray-50 odd:dark:bg-gray-800 even:dark:bg-gray-700\"\n }\n});\n\nexport { tableTheme };\n//# sourceMappingURL=theme.mjs.map\n","import { createTheme } from '../../helpers/create-theme.mjs';\n\nconst tabTheme = createTheme({\n base: \"flex flex-col gap-2\",\n tablist: {\n base: \"flex text-center\",\n styles: {\n default: \"flex-wrap border-b border-gray-200 dark:border-gray-700\",\n underline: \"-mb-px flex-wrap border-b border-gray-200 dark:border-gray-700\",\n pills: \"flex-wrap space-x-2 text-sm font-medium text-gray-500 dark:text-gray-400\",\n fullWidth: \"grid w-full grid-flow-col divide-x divide-gray-200 rounded-none text-sm font-medium shadow dark:divide-gray-700 dark:text-gray-400\"\n },\n tabitem: {\n base: \"flex items-center justify-center rounded-t-lg p-4 text-sm font-medium first:ml-0 focus:outline-none focus:ring-4 focus:ring-cyan-300 disabled:cursor-not-allowed disabled:text-gray-400 disabled:dark:text-gray-500\",\n styles: {\n default: {\n base: \"rounded-t-lg\",\n active: {\n on: \"bg-gray-100 text-cyan-600 dark:bg-gray-800 dark:text-cyan-500\",\n off: \"text-gray-500 hover:bg-gray-50 hover:text-gray-600 dark:text-gray-400 dark:hover:bg-gray-800 dark:hover:text-gray-300\"\n }\n },\n underline: {\n base: \"rounded-t-lg\",\n active: {\n on: \"active rounded-t-lg border-b-2 border-cyan-600 text-cyan-600 dark:border-cyan-500 dark:text-cyan-500\",\n off: \"border-b-2 border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-600 dark:text-gray-400 dark:hover:text-gray-300\"\n }\n },\n pills: {\n base: \"\",\n active: {\n on: \"rounded-lg bg-cyan-600 text-white\",\n off: \"rounded-lg hover:bg-gray-100 hover:text-gray-900 dark:hover:bg-gray-800 dark:hover:text-white\"\n }\n },\n fullWidth: {\n base: \"ml-0 flex w-full rounded-none first:ml-0\",\n active: {\n on: \"active rounded-none bg-gray-100 p-4 text-gray-900 dark:bg-gray-700 dark:text-white\",\n off: \"rounded-none bg-white hover:bg-gray-50 hover:text-gray-700 dark:bg-gray-800 dark:hover:bg-gray-700 dark:hover:text-white\"\n }\n }\n },\n icon: \"mr-2 h-5 w-5\"\n }\n },\n tabitemcontainer: {\n base: \"\",\n styles: {\n default: \"\",\n underline: \"\",\n pills: \"\",\n fullWidth: \"\"\n }\n },\n tabpanel: \"py-3\"\n});\n\nexport { tabTheme };\n//# sourceMappingURL=theme.mjs.map\n","import { createTheme } from '../../helpers/create-theme.mjs';\n\nconst timelineTheme = createTheme({\n root: {\n direction: {\n horizontal: \"sm:flex\",\n vertical: \"relative border-l border-gray-200 dark:border-gray-700\"\n }\n },\n item: {\n root: {\n horizontal: \"relative mb-6 sm:mb-0\",\n vertical: \"mb-10 ml-6\"\n },\n content: {\n root: {\n base: \"mt-3 sm:pr-8\"\n },\n body: {\n base: \"mb-4 text-base font-normal text-gray-500 dark:text-gray-400\"\n },\n time: {\n base: \"mb-1 text-sm font-normal leading-none text-gray-400 dark:text-gray-500\"\n },\n title: {\n base: \"text-lg font-semibold text-gray-900 dark:text-white\"\n }\n },\n point: {\n horizontal: \"flex items-center\",\n line: \"hidden h-0.5 w-full bg-gray-200 dark:bg-gray-700 sm:flex\",\n marker: {\n base: {\n horizontal: \"absolute -left-1.5 h-3 w-3 rounded-full border border-white bg-gray-200 dark:border-gray-900 dark:bg-gray-700\",\n vertical: \"absolute -left-1.5 mt-1.5 h-3 w-3 rounded-full border border-white bg-gray-200 dark:border-gray-900 dark:bg-gray-700\"\n },\n icon: {\n base: \"h-3 w-3 text-cyan-600 dark:text-cyan-300\",\n wrapper: \"absolute -left-3 flex h-6 w-6 items-center justify-center rounded-full bg-cyan-200 ring-8 ring-white dark:bg-cyan-900 dark:ring-gray-900\"\n }\n },\n vertical: \"\"\n }\n }\n});\n\nexport { timelineTheme };\n//# sourceMappingURL=theme.mjs.map\n","import { createTheme } from '../../helpers/create-theme.mjs';\n\nconst toastTheme = createTheme({\n root: {\n base: \"flex w-full max-w-xs items-center rounded-lg bg-white p-4 text-gray-500 shadow dark:bg-gray-800 dark:text-gray-400\",\n closed: \"opacity-0 ease-out\"\n },\n toggle: {\n base: \"-m-1.5 ml-auto inline-flex h-8 w-8 rounded-lg bg-white p-1.5 text-gray-400 hover:bg-gray-100 hover:text-gray-900 focus:ring-2 focus:ring-gray-300 dark:bg-gray-800 dark:text-gray-500 dark:hover:bg-gray-700 dark:hover:text-white\",\n icon: \"h-5 w-5 shrink-0\"\n }\n});\n\nexport { toastTheme };\n//# sourceMappingURL=theme.mjs.map\n","import { createTheme } from '../../helpers/create-theme.mjs';\n\nconst tooltipTheme = createTheme({\n target: \"w-fit\",\n animation: \"transition-opacity\",\n arrow: {\n base: \"absolute z-10 h-2 w-2 rotate-45\",\n style: {\n dark: \"bg-gray-900 dark:bg-gray-700\",\n light: \"bg-white\",\n auto: \"bg-white dark:bg-gray-700\"\n },\n placement: \"-4px\"\n },\n base: \"absolute z-10 inline-block rounded-lg px-3 py-2 text-sm font-medium shadow-sm\",\n hidden: \"invisible opacity-0\",\n style: {\n dark: \"bg-gray-900 text-white dark:bg-gray-700\",\n light: \"border border-gray-200 bg-white text-gray-900\",\n auto: \"border border-gray-200 bg-white text-gray-900 dark:border-none dark:bg-gray-700 dark:text-white\"\n },\n content: \"relative z-20\"\n});\n\nexport { tooltipTheme };\n//# sourceMappingURL=theme.mjs.map\n","import { cloneDeep } from '../helpers/clone-deep.mjs';\nimport { mergeDeep } from '../helpers/merge-deep.mjs';\nimport { theme } from '../theme.mjs';\n\nconst store = {\n theme: cloneDeep(theme)\n};\nfunction setThemeMode(mode) {\n store.mode = mode;\n}\nfunction getThemeMode() {\n return store.mode;\n}\nfunction setTheme(theme$1) {\n if (theme$1)\n store.theme = mergeDeep(theme, theme$1);\n}\nfunction getTheme() {\n return cloneDeep(store.theme);\n}\n\nexport { getTheme, getThemeMode, setTheme, setThemeMode };\n//# sourceMappingURL=index.mjs.map\n","'use client';\nimport { createContext, useContext } from 'react';\n\nconst AccordionPanelContext = createContext(void 0);\nfunction useAccordionContext() {\n const context = useContext(AccordionPanelContext);\n if (!context) {\n throw new Error(\"useAccordionContext should be used within the AccordionPanelContext provider!\");\n }\n return context;\n}\n\nexport { AccordionPanelContext, useAccordionContext };\n//# sourceMappingURL=AccordionPanelContext.mjs.map\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { twMerge } from 'tailwind-merge';\nimport { mergeDeep } from '../../helpers/merge-deep.mjs';\nimport { getTheme } from '../../theme-store/index.mjs';\nimport { useAccordionContext } from './AccordionPanelContext.mjs';\n\nconst AccordionContent = ({\n children,\n className,\n theme: customTheme = {},\n ...props\n}) => {\n const { isOpen } = useAccordionContext();\n const theme = mergeDeep(getTheme().accordion.content, customTheme);\n return /* @__PURE__ */ jsx(\n \"div\",\n {\n className: twMerge(theme.base, className),\n \"data-testid\": \"flowbite-accordion-content\",\n hidden: !isOpen,\n ...props,\n children\n }\n );\n};\n\nexport { AccordionContent };\n//# sourceMappingURL=AccordionContent.mjs.map\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { useState } from 'react';\nimport { AccordionPanelContext } from './AccordionPanelContext.mjs';\n\nconst AccordionPanel = ({ children, ...props }) => {\n const { alwaysOpen } = props;\n const [isOpen, setOpen] = useState(props.isOpen);\n const provider = alwaysOpen ? {\n ...props,\n isOpen,\n setOpen: () => setOpen(!isOpen)\n } : props;\n return /* @__PURE__ */ jsx(AccordionPanelContext.Provider, { value: provider, children });\n};\n\nexport { AccordionPanel };\n//# sourceMappingURL=AccordionPanel.mjs.map\n","'use client';\nimport { jsxs, jsx } from 'react/jsx-runtime';\nimport { twMerge } from 'tailwind-merge';\nimport { mergeDeep } from '../../helpers/merge-deep.mjs';\nimport { getTheme } from '../../theme-store/index.mjs';\nimport { useAccordionContext } from './AccordionPanelContext.mjs';\n\nconst AccordionTitle = ({\n as: Heading = \"h2\",\n children,\n className,\n theme: customTheme = {},\n ...props\n}) => {\n const { arrowIcon: ArrowIcon, flush, isOpen, setOpen } = useAccordionContext();\n const onClick = () => typeof setOpen !== \"undefined\" && setOpen();\n const theme = mergeDeep(getTheme().accordion.title, customTheme);\n return /* @__PURE__ */ jsxs(\n \"button\",\n {\n className: twMerge(theme.base, theme.flush[flush ? \"on\" : \"off\"], theme.open[isOpen ? \"on\" : \"off\"], className),\n onClick,\n type: \"button\",\n ...props,\n children: [\n /* @__PURE__ */ jsx(Heading, { className: theme.heading, \"data-testid\": \"flowbite-accordion-heading\", children }),\n ArrowIcon && /* @__PURE__ */ jsx(\n ArrowIcon,\n {\n \"aria-hidden\": true,\n className: twMerge(theme.arrow.base, theme.arrow.open[isOpen ? \"on\" : \"off\"]),\n \"data-testid\": \"flowbite-accordion-arrow\"\n }\n )\n ]\n }\n );\n};\n\nexport { AccordionTitle };\n//# sourceMappingURL=AccordionTitle.mjs.map\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { useState, useMemo, Children, cloneElement } from 'react';\nimport { HiChevronDown } from 'react-icons/hi';\nimport { twMerge } from 'tailwind-merge';\nimport { mergeDeep } from '../../helpers/merge-deep.mjs';\nimport { getTheme } from '../../theme-store/index.mjs';\nimport { AccordionContent } from './AccordionContent.mjs';\nimport { AccordionPanel } from './AccordionPanel.mjs';\nimport { AccordionTitle } from './AccordionTitle.mjs';\n\nconst AccordionComponent = ({\n alwaysOpen = false,\n arrowIcon = HiChevronDown,\n children,\n flush = false,\n collapseAll = false,\n className,\n theme: customTheme = {},\n ...props\n}) => {\n const [isOpen, setOpen] = useState(collapseAll ? -1 : 0);\n const panels = useMemo(\n () => Children.map(\n children,\n (child, i) => cloneElement(child, {\n alwaysOpen,\n arrowIcon,\n flush,\n isOpen: isOpen === i,\n setOpen: () => setOpen(isOpen === i ? -1 : i)\n })\n ),\n [alwaysOpen, arrowIcon, children, flush, isOpen]\n );\n const theme = mergeDeep(getTheme().accordion.root, customTheme);\n return /* @__PURE__ */ jsx(\n \"div\",\n {\n className: twMerge(theme.base, theme.flush[flush ? \"on\" : \"off\"], className),\n \"data-testid\": \"flowbite-accordion\",\n ...props,\n children: panels\n }\n );\n};\nAccordionComponent.displayName = \"Accordion\";\nAccordionPanel.displayName = \"Accordion.Panel\";\nAccordionTitle.displayName = \"Accordion.Title\";\nAccordionContent.displayName = \"Accordion.Content\";\nconst Accordion = Object.assign(AccordionComponent, {\n Panel: AccordionPanel,\n Title: AccordionTitle,\n Content: AccordionContent\n});\n\nexport { Accordion };\n//# sourceMappingURL=Accordion.mjs.map\n","import { jsx } from 'react/jsx-runtime';\nimport { twMerge } from 'tailwind-merge';\nimport { mergeDeep } from '../../helpers/merge-deep.mjs';\nimport { getTheme } from '../../theme-store/index.mjs';\n\nconst AvatarGroup = ({ children, className, theme: customTheme = {}, ...props }) => {\n const theme = mergeDeep(getTheme().avatar.group, customTheme);\n return /* @__PURE__ */ jsx(\"div\", { \"data-testid\": \"avatar-group-element\", className: twMerge(theme.base, className), ...props, children });\n};\nAvatarGroup.displayName = \"Avatar.Group\";\n\nexport { AvatarGroup };\n//# sourceMappingURL=AvatarGroup.mjs.map\n","import { jsxs } from 'react/jsx-runtime';\nimport { twMerge } from 'tailwind-merge';\nimport { mergeDeep } from '../../helpers/merge-deep.mjs';\nimport { getTheme } from '../../theme-store/index.mjs';\n\nconst AvatarGroupCounter = ({\n className,\n href,\n theme: customTheme = {},\n total,\n ...props\n}) => {\n const theme = mergeDeep(getTheme().avatar.groupCounter, customTheme);\n return /* @__PURE__ */ jsxs(\"a\", { href, className: twMerge(theme.base, className), ...props, children: [\n \"+\",\n total\n ] });\n};\nAvatarGroupCounter.displayName = \"Avatar.GroupCounter\";\n\nexport { AvatarGroupCounter };\n//# sourceMappingURL=AvatarGroupCounter.mjs.map\n","import { jsxs, jsx } from 'react/jsx-runtime';\nimport { twMerge } from 'tailwind-merge';\nimport { mergeDeep } from '../../helpers/merge-deep.mjs';\nimport { getTheme } from '../../theme-store/index.mjs';\nimport { AvatarGroup } from './AvatarGroup.mjs';\nimport { AvatarGroupCounter } from './AvatarGroupCounter.mjs';\n\nconst AvatarComponent = ({\n alt = \"\",\n bordered = false,\n children,\n className,\n color = \"light\",\n img,\n placeholderInitials = \"\",\n rounded = false,\n size = \"md\",\n stacked = false,\n status,\n statusPosition = \"top-left\",\n theme: customTheme = {},\n ...props\n}) => {\n const theme = mergeDeep(getTheme().avatar, customTheme);\n const imgClassName = twMerge(\n theme.root.img.base,\n bordered && theme.root.bordered,\n bordered && theme.root.color[color],\n rounded && theme.root.rounded,\n stacked && theme.root.stacked,\n theme.root.img.on,\n theme.root.size[size]\n );\n const imgProps = {\n className: twMerge(imgClassName, theme.root.img.on),\n \"data-testid\": \"flowbite-avatar-img\"\n };\n return /* @__PURE__ */ jsxs(\"div\", { className: twMerge(theme.root.base, className), \"data-testid\": \"flowbite-avatar\", ...props, children: [\n /* @__PURE__ */ jsxs(\"div\", { className: \"relative\", children: [\n img ? typeof img === \"string\" ? /* @__PURE__ */ jsx(\"img\", { alt, src: img, ...imgProps }) : img({ alt, ...imgProps }) : placeholderInitials ? /* @__PURE__ */ jsx(\n \"div\",\n {\n className: twMerge(\n theme.root.img.off,\n theme.root.initials.base,\n stacked && theme.root.stacked,\n bordered && theme.root.bordered,\n bordered && theme.root.color[color],\n theme.root.size[size],\n rounded && theme.root.rounded\n ),\n \"data-testid\": \"flowbite-avatar-initials-placeholder\",\n children: /* @__PURE__ */ jsx(\"span\", { className: twMerge(theme.root.initials.text), \"data-testid\": \"flowbite-avatar-initials-placeholder-text\", children: placeholderInitials })\n }\n ) : /* @__PURE__ */ jsx(\"div\", { className: twMerge(imgClassName, theme.root.img.off), \"data-testid\": \"flowbite-avatar-img\", children: /* @__PURE__ */ jsx(\n \"svg\",\n {\n className: theme.root.img.placeholder,\n fill: \"currentColor\",\n viewBox: \"0 0 20 20\",\n xmlns: \"http://www.w3.org/2000/svg\",\n children: /* @__PURE__ */ jsx(\"path\", { fillRule: \"evenodd\", d: \"M10 9a3 3 0 100-6 3 3 0 000 6zm-7 9a7 7 0 1114 0H3z\", clipRule: \"evenodd\" })\n }\n ) }),\n status && /* @__PURE__ */ jsx(\n \"span\",\n {\n \"data-testid\": \"flowbite-avatar-status\",\n className: twMerge(\n theme.root.status.base,\n theme.root.status[status],\n theme.root.statusPosition[statusPosition]\n )\n }\n )\n ] }),\n children && /* @__PURE__ */ jsx(\"div\", { children })\n ] });\n};\nAvatarComponent.displayName = \"Avatar\";\nconst Avatar = Object.assign(AvatarComponent, {\n Group: AvatarGroup,\n Counter: AvatarGroupCounter\n});\n\nexport { Avatar };\n//# sourceMappingURL=Avatar.mjs.map\n","import { jsx, jsxs } from 'react/jsx-runtime';\nimport { twMerge } from 'tailwind-merge';\nimport { mergeDeep } from '../../helpers/merge-deep.mjs';\nimport { getTheme } from '../../theme-store/index.mjs';\n\nconst Badge = ({\n children,\n color = \"info\",\n href,\n icon: Icon,\n size = \"xs\",\n className,\n theme: customTheme = {},\n ...props\n}) => {\n const theme = mergeDeep(getTheme().badge, customTheme);\n const Content = () => /* @__PURE__ */ jsxs(\n \"span\",\n {\n className: twMerge(\n theme.root.base,\n theme.root.color[color],\n theme.root.size[size],\n theme.icon[Icon ? \"on\" : \"off\"],\n className\n ),\n \"data-testid\": \"flowbite-badge\",\n ...props,\n children: [\n Icon && /* @__PURE__ */ jsx(Icon, { \"aria-hidden\": true, className: theme.icon.size[size], \"data-testid\": \"flowbite-badge-icon\" }),\n children && /* @__PURE__ */ jsx(\"span\", { children })\n ]\n }\n );\n return href ? /* @__PURE__ */ jsx(\"a\", { className: theme.root.href, href, children: /* @__PURE__ */ jsx(Content, {}) }) : /* @__PURE__ */ jsx(Content, {});\n};\nBadge.displayName = \"Badge\";\n\nexport { Badge };\n//# sourceMappingURL=Badge.mjs.map\n","import { jsx, jsxs } from 'react/jsx-runtime';\nimport { twMerge } from 'tailwind-merge';\nimport { mergeDeep } from '../../helpers/merge-deep.mjs';\nimport { getTheme } from '../../theme-store/index.mjs';\n\nconst Spinner = ({\n className,\n color = \"info\",\n light,\n size = \"md\",\n theme: customTheme = {},\n ...props\n}) => {\n const theme = mergeDeep(getTheme().spinner, customTheme);\n return /* @__PURE__ */ jsx(\"span\", { role: \"status\", ...props, children: /* @__PURE__ */ jsxs(\n \"svg\",\n {\n fill: \"none\",\n viewBox: \"0 0 100 101\",\n className: twMerge(\n theme.base,\n theme.color[color],\n theme.light[light ? \"on\" : \"off\"].base,\n theme.light[light ? \"on\" : \"off\"].color[color],\n theme.size[size],\n className\n ),\n children: [\n /* @__PURE__ */ jsx(\n \"path\",\n {\n d: \"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z\",\n fill: \"currentColor\"\n }\n ),\n /* @__PURE__ */ jsx(\n \"path\",\n {\n d: \"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z\",\n fill: \"currentFill\"\n }\n )\n ]\n }\n ) });\n};\nSpinner.displayName = \"Spinner\";\n\nexport { Spinner };\n//# sourceMappingURL=Spinner.mjs.map\n","import { forwardRef, createElement } from 'react';\n\nconst ButtonBase = forwardRef(\n ({ children, as: Component, href, type = \"button\", ...props }, ref) => {\n const BaseComponent = Component || (href ? \"a\" : \"button\");\n return createElement(BaseComponent, { ref, href, type, ...props }, children);\n }\n);\nButtonBase.displayName = \"ButtonBaseComponent\";\n\nexport { ButtonBase };\n//# sourceMappingURL=ButtonBase.mjs.map\n","import { jsx } from 'react/jsx-runtime';\nimport { useMemo, Children, isValidElement, cloneElement } from 'react';\nimport { twMerge } from 'tailwind-merge';\nimport { mergeDeep } from '../../helpers/merge-deep.mjs';\nimport { getTheme } from '../../theme-store/index.mjs';\n\nconst processChildren = (children, outline, pill) => {\n return Children.map(children, (child, index) => {\n if (isValidElement(child)) {\n if (child.props.children) {\n return cloneElement(child, {\n ...child.props,\n children: processChildren(child.props.children, outline, pill),\n positionInGroup: determinePosition(index, Children.count(children))\n });\n } else {\n return cloneElement(child, {\n outline,\n pill,\n positionInGroup: determinePosition(index, Children.count(children))\n });\n }\n }\n return child;\n });\n};\nconst determinePosition = (index, totalChildren) => {\n return index === 0 ? \"start\" : index === totalChildren - 1 ? \"end\" : \"middle\";\n};\nconst ButtonGroup = ({\n children,\n className,\n outline,\n pill,\n theme: customTheme = {},\n ...props\n}) => {\n const items = useMemo(() => processChildren(children, outline, pill), [children, outline, pill]);\n const theme = mergeDeep(getTheme().buttonGroup, customTheme);\n return /* @__PURE__ */ jsx(\"div\", { className: twMerge(theme.base, className), role: \"group\", ...props, children: items });\n};\nButtonGroup.displayName = \"Button.Group\";\n\nexport { ButtonGroup };\n//# sourceMappingURL=ButtonGroup.mjs.map\n","import { jsx, jsxs, Fragment } from 'react/jsx-runtime';\nimport { forwardRef } from 'react';\nimport { twMerge } from 'tailwind-merge';\nimport { mergeDeep } from '../../helpers/merge-deep.mjs';\nimport { getTheme } from '../../theme-store/index.mjs';\nimport { Spinner } from '../Spinner/Spinner.mjs';\nimport { ButtonBase } from './ButtonBase.mjs';\nimport { ButtonGroup } from './ButtonGroup.mjs';\n\nconst ButtonComponent = forwardRef(\n ({\n children,\n className,\n color = \"info\",\n disabled,\n fullSized,\n isProcessing = false,\n processingLabel = \"Loading...\",\n processingSpinner,\n gradientDuoTone,\n gradientMonochrome,\n label,\n outline = false,\n pill = false,\n positionInGroup = \"none\",\n size = \"md\",\n theme: customTheme = {},\n ...props\n }, ref) => {\n const { buttonGroup: groupTheme, button: buttonTheme } = getTheme();\n const theme = mergeDeep(buttonTheme, customTheme);\n const theirProps = props;\n return /* @__PURE__ */ jsx(\n ButtonBase,\n {\n ref,\n disabled,\n className: twMerge(\n theme.base,\n disabled && theme.disabled,\n !gradientDuoTone && !gradientMonochrome && theme.color[color],\n gradientDuoTone && !gradientMonochrome && theme.gradientDuoTone[gradientDuoTone],\n !gradientDuoTone && gradientMonochrome && theme.gradient[gradientMonochrome],\n outline && (theme.outline.color[color] ?? theme.outline.color.default),\n theme.pill[pill ? \"on\" : \"off\"],\n fullSized && theme.fullSized,\n groupTheme.position[positionInGroup],\n className\n ),\n ...theirProps,\n children: /* @__PURE__ */ jsx(\n \"span\",\n {\n className: twMerge(\n theme.inner.base,\n theme.outline[outline ? \"on\" : \"off\"],\n theme.outline.pill[outline && pill ? \"on\" : \"off\"],\n theme.size[size],\n outline && !theme.outline.color[color] && theme.inner.outline,\n isProcessing && theme.isProcessing,\n isProcessing && theme.inner.isProcessingPadding[size],\n theme.inner.position[positionInGroup]\n ),\n children: /* @__PURE__ */ jsxs(Fragment, { children: [\n isProcessing && /* @__PURE__ */ jsx(\"span\", { className: twMerge(theme.spinnerSlot, theme.spinnerLeftPosition[size]), children: processingSpinner || /* @__PURE__ */ jsx(Spinner, { size }) }),\n typeof children !== \"undefined\" ? children : /* @__PURE__ */ jsx(\"span\", { \"data-testid\": \"flowbite-button-label\", className: twMerge(theme.label), children: isProcessing ? processingLabel : label })\n ] })\n }\n )\n }\n );\n }\n);\nButtonComponent.displayName = \"Button\";\nconst Button = Object.assign(ButtonComponent, {\n Group: ButtonGroup\n});\n\nexport { Button };\n//# sourceMappingURL=Button.mjs.map\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { Button } from '../Button/Button.mjs';\nimport '../Button/ButtonGroup.mjs';\n\nconst BannerCollapseButton = ({ children, ...props }) => {\n const onClick = (event) => {\n const collapseButton = event.target;\n const parentBanner = collapseButton.closest('[role=\"banner\"]');\n parentBanner?.remove();\n };\n return /* @__PURE__ */ jsx(Button, { onClick, ...props, children });\n};\nBannerCollapseButton.displayName = \"Banner.CollapseButton\";\n\nexport { BannerCollapseButton };\n//# sourceMappingURL=BannerCollapseButton.mjs.map\n","import { jsx } from 'react/jsx-runtime';\nimport { BannerCollapseButton } from './BannerCollapseButton.mjs';\n\nconst BannerComponent = ({ children, ...props }) => {\n return /* @__PURE__ */ jsx(\"div\", { \"data-testid\": \"flowbite-banner\", role: \"banner\", tabIndex: -1, ...props, children });\n};\nBannerComponent.displayName = \"Banner\";\nconst Banner = Object.assign(BannerComponent, {\n CollapseButton: BannerCollapseButton\n});\n\nexport { Banner };\n//# sourceMappingURL=Banner.mjs.map\n","import { jsxs, jsx } from 'react/jsx-runtime';\nimport { forwardRef } from 'react';\nimport { HiOutlineChevronRight } from 'react-icons/hi';\nimport { twMerge } from 'tailwind-merge';\nimport { mergeDeep } from '../../helpers/merge-deep.mjs';\nimport { getTheme } from '../../theme-store/index.mjs';\n\nconst BreadcrumbItem = forwardRef(\n ({ children, className, href, icon: Icon, theme: customTheme = {}, ...props }, ref) => {\n const isLink = typeof href !== \"undefined\";\n const Component = isLink ? \"a\" : \"span\";\n const theme = mergeDeep(getTheme().breadcrumb.item, customTheme);\n return /* @__PURE__ */ jsxs(\"li\", { className: twMerge(theme.base, className), ...props, children: [\n /* @__PURE__ */ jsx(HiOutlineChevronRight, { \"aria-hidden\": true, className: theme.chevron, \"data-testid\": \"flowbite-breadcrumb-separator\" }),\n /* @__PURE__ */ jsxs(\n Component,\n {\n ref,\n className: theme.href[isLink ? \"on\" : \"off\"],\n \"data-testid\": \"flowbite-breadcrumb-item\",\n href,\n children: [\n Icon && /* @__PURE__ */ jsx(Icon, { \"aria-hidden\": true, className: theme.icon }),\n children\n ]\n }\n )\n ] });\n }\n);\nBreadcrumbItem.displayName = \"Breadcrumb.Item\";\n\nexport { BreadcrumbItem };\n//# sourceMappingURL=BreadcrumbItem.mjs.map\n","import { jsx } from 'react/jsx-runtime';\nimport { twMerge } from 'tailwind-merge';\nimport { mergeDeep } from '../../helpers/merge-deep.mjs';\nimport { getTheme } from '../../theme-store/index.mjs';\nimport { BreadcrumbItem } from './BreadcrumbItem.mjs';\n\nconst BreadcrumbComponent = ({\n children,\n className,\n theme: customTheme = {},\n ...props\n}) => {\n const theme = mergeDeep(getTheme().breadcrumb.root, customTheme);\n return /* @__PURE__ */ jsx(\"nav\", { \"aria-label\": \"Breadcrumb\", className: twMerge(theme.base, className), ...props, children: /* @__PURE__ */ jsx(\"ol\", { className: theme.list, children }) });\n};\nBreadcrumbComponent.displayName = \"Breadcrumb\";\nconst Breadcrumb = Object.assign(BreadcrumbComponent, {\n Item: BreadcrumbItem\n});\n\nexport { Breadcrumb };\n//# sourceMappingURL=Breadcrumb.mjs.map\n","const omit = (keys) => (obj) => {\n const result = {};\n for (const key in obj) {\n if (keys.includes(key)) {\n continue;\n }\n result[key] = obj[key];\n }\n return result;\n};\n\nexport { omit };\n//# sourceMappingURL=omit.mjs.map\n","import { jsxs, jsx } from 'react/jsx-runtime';\nimport { twMerge } from 'tailwind-merge';\nimport { mergeDeep } from '../../helpers/merge-deep.mjs';\nimport { omit } from '../../helpers/omit.mjs';\nimport { getTheme } from '../../theme-store/index.mjs';\n\nconst Card = (props) => {\n const { children, className, horizontal, href, theme: customTheme = {} } = props;\n const Component = typeof href === \"undefined\" ? \"div\" : \"a\";\n const theirProps = removeCustomProps(props);\n const theme = mergeDeep(getTheme().card, customTheme);\n return /* @__PURE__ */ jsxs(\n Component,\n {\n \"data-testid\": \"flowbite-card\",\n href,\n className: twMerge(\n theme.root.base,\n theme.root.horizontal[horizontal ? \"on\" : \"off\"],\n href && theme.root.href,\n className\n ),\n ...theirProps,\n children: [\n /* @__PURE__ */ jsx(Image, { ...props }),\n /* @__PURE__ */ jsx(\"div\", { className: theme.root.children, children })\n ]\n }\n );\n};\nconst Image = ({ theme: customTheme = {}, ...props }) => {\n const theme = mergeDeep(getTheme().card, customTheme);\n if (props.renderImage) {\n return props.renderImage(theme, props.horizontal ?? false);\n }\n if (props.imgSrc) {\n return /* @__PURE__ */ jsx(\n \"img\",\n {\n \"data-testid\": \"flowbite-card-image\",\n alt: props.imgAlt ?? \"\",\n src: props.imgSrc,\n className: twMerge(theme.img.base, theme.img.horizontal[props.horizontal ? \"on\" : \"off\"])\n }\n );\n }\n return null;\n};\nconst removeCustomProps = omit([\n \"renderImage\",\n \"imgSrc\",\n \"imgAlt\",\n \"children\",\n \"className\",\n \"horizontal\",\n \"href\",\n \"theme\"\n]);\n\nexport { Card };\n//# sourceMappingURL=Card.mjs.map\n","import { jsx } from 'react/jsx-runtime';\nimport classnames from 'classnames';\nimport debounce from 'debounce';\nimport React, { PureComponent } from 'react';\n\nvar __defProp = Object.defineProperty;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __publicField = (obj, key, value) => {\n __defNormalProp(obj, typeof key !== \"symbol\" ? key + \"\" : key, value);\n return value;\n};\nconst SCROLL_END_DEBOUNCE = 300;\nconst LEFT_BUTTON = 0;\nclass ScrollContainer extends PureComponent {\n constructor(props) {\n super(props);\n __publicField(this, \"container\");\n __publicField(this, \"scrolling\");\n __publicField(this, \"started\");\n __publicField(this, \"pressed\");\n __publicField(this, \"isMobile\", false);\n __publicField(this, \"internal\");\n __publicField(this, \"scrollLeft\");\n __publicField(this, \"scrollTop\");\n __publicField(this, \"clientX\");\n __publicField(this, \"clientY\");\n // Simulate 'onEndScroll' event that fires when scrolling is stopped\n __publicField(this, \"onEndScroll\", () => {\n this.scrolling = false;\n if (!this.pressed && this.started) {\n this.processEnd();\n }\n });\n __publicField(this, \"onScroll\", () => {\n const container = this.container.current;\n if (container.scrollLeft !== this.scrollLeft || container.scrollTop !== this.scrollTop) {\n this.scrolling = true;\n this.processScroll();\n this.onEndScroll();\n }\n });\n __publicField(this, \"onTouchStart\", (e) => {\n const { nativeMobileScroll } = this.props;\n if (this.isDraggable(e.target)) {\n this.internal = true;\n if (nativeMobileScroll && this.scrolling) {\n this.pressed = true;\n } else {\n const touch = e.touches[0];\n this.processClick(touch.clientX, touch.clientY);\n if (!nativeMobileScroll && this.props.stopPropagation) {\n e.stopPropagation();\n }\n }\n }\n });\n __publicField(this, \"onTouchEnd\", () => {\n const { nativeMobileScroll } = this.props;\n if (this.pressed) {\n if (this.started && (!this.scrolling || !nativeMobileScroll)) {\n this.processEnd();\n } else {\n this.pressed = false;\n }\n this.forceUpdate();\n }\n });\n __publicField(this, \"onTouchMove\", (e) => {\n const { nativeMobileScroll } = this.props;\n if (this.pressed && (!nativeMobileScroll || !this.isMobile)) {\n const touch = e.touches[0];\n if (touch) {\n this.processMove(touch.clientX, touch.clientY);\n }\n e.preventDefault();\n if (this.props.stopPropagation) {\n e.stopPropagation();\n }\n }\n });\n __publicField(this, \"onMouseDown\", (e) => {\n if (this.isDraggable(e.target) && this.isScrollable()) {\n this.internal = true;\n if (this.props?.buttons?.indexOf(e.button) !== -1) {\n this.processClick(e.clientX, e.clientY);\n e.preventDefault();\n if (this.props.stopPropagation) {\n e.stopPropagation();\n }\n }\n }\n });\n __publicField(this, \"onMouseMove\", (e) => {\n if (this.pressed) {\n this.processMove(e.clientX, e.clientY);\n e.preventDefault();\n if (this.props.stopPropagation) {\n e.stopPropagation();\n }\n }\n });\n __publicField(this, \"onMouseUp\", (e) => {\n if (this.pressed) {\n if (this.started) {\n this.processEnd();\n } else {\n this.internal = false;\n this.pressed = false;\n this.forceUpdate();\n if (this.props.onClick) {\n this.props.onClick(e);\n }\n }\n e.preventDefault();\n if (this.props.stopPropagation) {\n e.stopPropagation();\n }\n }\n });\n this.container = React.createRef();\n this.onEndScroll = debounce(this.onEndScroll, SCROLL_END_DEBOUNCE);\n this.scrolling = false;\n this.started = false;\n this.pressed = false;\n this.internal = false;\n this.getRef = this.getRef.bind(this);\n }\n componentDidMount() {\n const { nativeMobileScroll } = this.props;\n const container = this.container.current;\n window.addEventListener(\"mouseup\", this.onMouseUp);\n window.addEventListener(\"mousemove\", this.onMouseMove);\n window.addEventListener(\"touchmove\", this.onTouchMove, { passive: false });\n window.addEventListener(\"touchend\", this.onTouchEnd);\n container.addEventListener(\"touchstart\", this.onTouchStart, {\n passive: false\n });\n container.addEventListener(\"mousedown\", this.onMouseDown, {\n passive: false\n });\n if (nativeMobileScroll) {\n this.isMobile = this.isMobileDevice();\n if (this.isMobile) {\n this.forceUpdate();\n }\n }\n }\n componentWillUnmount() {\n window.removeEventListener(\"mouseup\", this.onMouseUp);\n window.removeEventListener(\"mousemove\", this.onMouseMove);\n window.removeEventListener(\"touchmove\", this.onTouchMove);\n window.removeEventListener(\"touchend\", this.onTouchEnd);\n }\n getElement() {\n return this.container.current;\n }\n isMobileDevice() {\n return typeof window.orientation !== \"undefined\" || navigator.userAgent.indexOf(\"IEMobile\") !== -1;\n }\n isDraggable(target) {\n const ignoreElements = this.props.ignoreElements;\n if (ignoreElements) {\n const closest = target.closest(ignoreElements);\n return closest === null || closest.contains(this.getElement());\n } else {\n return true;\n }\n }\n isScrollable() {\n const container = this.container.current;\n return container && (container.scrollWidth > container.clientWidth || container.scrollHeight > container.clientHeight);\n }\n processClick(clientX, clientY) {\n const container = this.container.current;\n this.scrollLeft = container?.scrollLeft;\n this.scrollTop = container?.scrollTop;\n this.clientX = clientX;\n this.clientY = clientY;\n this.pressed = true;\n }\n processStart(changeCursor = true) {\n const { onStartScroll } = this.props;\n this.started = true;\n if (changeCursor) {\n document.body.classList.add(\"cursor-grab\");\n }\n if (onStartScroll) {\n onStartScroll({\n external: !this.internal\n });\n }\n this.forceUpdate();\n }\n // Process native scroll (scrollbar, mobile scroll)\n processScroll() {\n if (this.started) {\n const { onScroll } = this.props;\n if (onScroll) {\n onScroll({\n external: !this.internal\n });\n }\n } else {\n this.processStart(false);\n }\n }\n // Process non-native scroll\n processMove(newClientX, newClientY) {\n const { horizontal, vertical, activationDistance, onScroll } = this.props;\n const container = this.container.current;\n if (!this.started) {\n if (horizontal && Math.abs(newClientX - this.clientX) > activationDistance || vertical && Math.abs(newClientY - this.clientY) > activationDistance) {\n this.clientX = newClientX;\n this.clientY = newClientY;\n this.processStart();\n }\n } else {\n if (horizontal) {\n container.scrollLeft -= newClientX - this.clientX;\n }\n if (vertical) {\n container.scrollTop -= newClientY - this.clientY;\n }\n if (onScroll) {\n onScroll({ external: !this.internal });\n }\n this.clientX = newClientX;\n this.clientY = newClientY;\n this.scrollLeft = container.scrollLeft;\n this.scrollTop = container.scrollTop;\n }\n }\n processEnd() {\n const { onEndScroll } = this.props;\n const container = this.container.current;\n if (container && onEndScroll) {\n onEndScroll({\n external: !this.internal\n });\n }\n this.pressed = false;\n this.started = false;\n this.scrolling = false;\n this.internal = false;\n document.body.classList.remove(\"cursor-grab\");\n this.forceUpdate();\n }\n getRef(el) {\n [this.container, this.props.innerRef].forEach((ref) => {\n if (ref) {\n if (typeof ref === \"function\") {\n ref(el);\n } else {\n ref.current = el;\n }\n }\n });\n }\n render() {\n const { children, draggingClassName, className, style, hideScrollbars } = this.props;\n return /* @__PURE__ */ jsx(\n \"div\",\n {\n className: classnames(className, this.pressed && draggingClassName, {\n \"!scroll-auto [&>*]:pointer-events-none [&>*]:cursor-grab\": this.pressed,\n \"overflow-auto\": this.isMobile,\n \"overflow-hidden !overflow-x-hidden [overflow:-moz-scrollbars-none] [scrollbar-width:none]\": hideScrollbars,\n \"[&::-webkit-scrollbar]:[-webkit-appearance:none !important] [&::-webkit-scrollbar]:!hidden [&::-webkit-scrollbar]:!h-0 [&::-webkit-scrollbar]:!w-0 [&::-webkit-scrollbar]:!bg-transparent\": hideScrollbars\n }),\n style,\n ref: this.getRef,\n onScroll: this.onScroll,\n children\n }\n );\n }\n}\n__publicField(ScrollContainer, \"defaultProps\", {\n nativeMobileScroll: true,\n hideScrollbars: true,\n activationDistance: 10,\n vertical: true,\n horizontal: true,\n stopPropagation: false,\n style: {},\n buttons: [LEFT_BUTTON]\n});\n\nexport { ScrollContainer as default };\n//# sourceMappingURL=index.mjs.map\n","const isClient = () => {\n return typeof window !== \"undefined\";\n};\n\nexport { isClient };\n//# sourceMappingURL=is-client.mjs.map\n","import { jsx } from 'react/jsx-runtime';\nimport { forwardRef } from 'react';\nimport { twMerge } from 'tailwind-merge';\nimport { mergeDeep } from '../../helpers/merge-deep.mjs';\nimport { getTheme } from '../../theme-store/index.mjs';\n\nconst Checkbox = forwardRef(\n ({ className, color = \"default\", theme: customTheme = {}, ...props }, ref) => {\n const theme = mergeDeep(getTheme().checkbox, customTheme);\n return /* @__PURE__ */ jsx(\n \"input\",\n {\n ref,\n type: \"checkbox\",\n className: twMerge(theme.root.base, theme.root.color[color], className),\n ...props\n }\n );\n }\n);\nCheckbox.displayName = \"Checkbox\";\n\nexport { Checkbox };\n//# sourceMappingURL=Checkbox.mjs.map\n","'use client';\nimport { useEffect } from 'react';\n\nconst useWatchLocalStorageValue = ({\n key: watchKey,\n onChange\n}) => {\n function handleStorageChange({ key, newValue }) {\n if (key === watchKey)\n onChange(newValue);\n }\n useEffect(() => {\n window.addEventListener(\"storage\", handleStorageChange);\n return () => window.removeEventListener(\"storage\", handleStorageChange);\n }, []);\n};\n\nexport { useWatchLocalStorageValue };\n//# sourceMappingURL=use-watch-localstorage-value.mjs.map\n","'use client';\nimport { useState, useEffect } from 'react';\nimport { isClient } from '../helpers/is-client.mjs';\nimport { useWatchLocalStorageValue } from './use-watch-localstorage-value.mjs';\nimport { getThemeMode } from '../theme-store/index.mjs';\n\nconst DEFAULT_MODE = \"light\";\nconst LS_THEME_MODE = \"flowbite-theme-mode\";\nconst SYNC_THEME_MODE = \"flowbite-theme-mode-sync\";\nconst useThemeMode = () => {\n const [mode, setMode] = useState(getInitialMode(getThemeMode()));\n useEffect(() => {\n setModeInLS(mode);\n setModeInDOM(mode);\n }, []);\n useWatchLocalStorageValue({\n key: LS_THEME_MODE,\n onChange(newValue) {\n if (newValue)\n return handleSetMode(newValue);\n }\n });\n useSyncMode((mode2) => setMode(mode2));\n const handleSetMode = (mode2) => {\n setMode(mode2);\n setModeInLS(mode2);\n setModeInDOM(mode2);\n document.dispatchEvent(new CustomEvent(SYNC_THEME_MODE, { detail: mode2 }));\n };\n const toggleMode = () => {\n let newMode = mode;\n if (newMode === \"auto\")\n newMode = computeModeValue(newMode);\n newMode = newMode === \"dark\" ? \"light\" : \"dark\";\n handleSetMode(newMode);\n };\n const clearMode = () => {\n const newMode = getThemeMode() ?? DEFAULT_MODE;\n handleSetMode(newMode);\n };\n return { mode, computedMode: computeModeValue(mode), setMode: handleSetMode, toggleMode, clearMode };\n};\nconst useSyncMode = (onChange) => {\n useEffect(() => {\n function handleSync(e) {\n const mode = e.detail;\n onChange(mode);\n }\n document.addEventListener(SYNC_THEME_MODE, handleSync);\n return () => document.removeEventListener(SYNC_THEME_MODE, handleSync);\n }, []);\n};\nconst setModeInLS = (mode) => localStorage.setItem(LS_THEME_MODE, mode);\nconst setModeInDOM = (mode) => {\n const computedMode = computeModeValue(mode);\n if (computedMode === \"dark\") {\n document.documentElement.classList.add(\"dark\");\n } else {\n document.documentElement.classList.remove(\"dark\");\n }\n};\nconst getInitialMode = (defaultMode) => {\n if (!isClient())\n return DEFAULT_MODE;\n const LSMode = localStorage.getItem(LS_THEME_MODE);\n return LSMode ?? defaultMode ?? DEFAULT_MODE;\n};\nconst computeModeValue = (mode) => {\n return mode === \"auto\" ? prefersColorScheme() : mode;\n};\nconst prefersColorScheme = () => {\n return window.matchMedia?.(\"(prefers-color-scheme: dark)\").matches ? \"dark\" : \"light\";\n};\n\nexport { useThemeMode };\n//# sourceMappingURL=use-theme-mode.mjs.map\n","'use client';\nimport { jsxs, jsx } from 'react/jsx-runtime';\nimport { HiSun, HiMoon } from 'react-icons/hi';\nimport { twMerge } from 'tailwind-merge';\nimport { mergeDeep } from '../../helpers/merge-deep.mjs';\nimport { useIsMounted } from '../../hooks/use-is-mounted.mjs';\nimport { useThemeMode } from '../../hooks/use-theme-mode.mjs';\nimport { getTheme } from '../../theme-store/index.mjs';\n\nconst DarkThemeToggle = ({\n className,\n theme: customTheme = {},\n iconDark: IconDark = HiSun,\n iconLight: IconLight = HiMoon,\n ...props\n}) => {\n const isMounted = useIsMounted();\n const { computedMode, toggleMode } = useThemeMode();\n const theme = mergeDeep(getTheme().darkThemeToggle, customTheme);\n return /* @__PURE__ */ jsxs(\n \"button\",\n {\n type: \"button\",\n \"aria-label\": \"Toggle dark mode\",\n \"data-testid\": \"dark-theme-toggle\",\n className: twMerge(theme.root.base, className),\n onClick: toggleMode,\n ...props,\n children: [\n /* @__PURE__ */ jsx(\n IconDark,\n {\n \"aria-label\": \"Currently dark mode\",\n \"data-active\": isMounted && computedMode === \"dark\",\n className: twMerge(theme.root.icon, \"hidden dark:block\")\n }\n ),\n /* @__PURE__ */ jsx(\n IconLight,\n {\n \"aria-label\": \"Currently light mode\",\n \"data-active\": isMounted && computedMode === \"light\",\n className: twMerge(theme.root.icon, \"dark:hidden\")\n }\n )\n ]\n }\n );\n};\nDarkThemeToggle.displayName = \"DarkThemeToggle\";\n\nexport { DarkThemeToggle };\n//# sourceMappingURL=DarkThemeToggle.mjs.map\n","'use client';\nimport { useState, useEffect } from 'react';\n\nfunction useIsMounted() {\n const [mounted, setMounted] = useState(false);\n useEffect(() => setMounted(true), []);\n return mounted;\n}\n\nexport { useIsMounted };\n//# sourceMappingURL=use-is-mounted.mjs.map\n","import { jsx } from 'react/jsx-runtime';\nimport { twMerge } from 'tailwind-merge';\nimport { mergeDeep } from '../../helpers/merge-deep.mjs';\nimport { getTheme } from '../../theme-store/index.mjs';\n\nconst HelperText = ({\n children,\n className,\n color = \"default\",\n theme: customTheme = {},\n value,\n ...props\n}) => {\n const theme = mergeDeep(getTheme().helperText, customTheme);\n return /* @__PURE__ */ jsx(\"p\", { className: twMerge(theme.root.base, theme.root.colors[color], className), ...props, children: value ?? children ?? \"\" });\n};\nHelperText.displayName = \"HelperText\";\n\nexport { HelperText };\n//# sourceMappingURL=HelperText.mjs.map\n","import { jsxs, Fragment, jsx } from 'react/jsx-runtime';\nimport { forwardRef } from 'react';\nimport { twMerge } from 'tailwind-merge';\nimport { mergeDeep } from '../../helpers/merge-deep.mjs';\nimport { getTheme } from '../../theme-store/index.mjs';\nimport { HelperText } from '../HelperText/HelperText.mjs';\n\nconst TextInput = forwardRef(\n ({\n addon,\n className,\n color = \"gray\",\n helperText,\n icon: Icon,\n rightIcon: RightIcon,\n shadow,\n sizing = \"md\",\n theme: customTheme = {},\n type = \"text\",\n ...props\n }, ref) => {\n const theme = mergeDeep(getTheme().textInput, customTheme);\n return /* @__PURE__ */ jsxs(Fragment, { children: [\n /* @__PURE__ */ jsxs(\"div\", { className: twMerge(theme.base, className), children: [\n addon && /* @__PURE__ */ jsx(\"span\", { className: theme.addon, children: addon }),\n /* @__PURE__ */ jsxs(\"div\", { className: theme.field.base, children: [\n Icon && /* @__PURE__ */ jsx(\"div\", { className: theme.field.icon.base, children: /* @__PURE__ */ jsx(Icon, { className: theme.field.icon.svg }) }),\n RightIcon && /* @__PURE__ */ jsx(\"div\", { \"data-testid\": \"right-icon\", className: theme.field.rightIcon.base, children: /* @__PURE__ */ jsx(RightIcon, { className: theme.field.rightIcon.svg }) }),\n /* @__PURE__ */ jsx(\n \"input\",\n {\n className: twMerge(\n theme.field.input.base,\n theme.field.input.colors[color],\n theme.field.input.sizes[sizing],\n theme.field.input.withIcon[Icon ? \"on\" : \"off\"],\n theme.field.input.withRightIcon[RightIcon ? \"on\" : \"off\"],\n theme.field.input.withAddon[addon ? \"on\" : \"off\"],\n theme.field.input.withShadow[shadow ? \"on\" : \"off\"]\n ),\n type,\n ...props,\n ref\n }\n )\n ] })\n ] }),\n helperText && /* @__PURE__ */ jsx(HelperText, { color, children: helperText })\n ] });\n }\n);\nTextInput.displayName = \"TextInput\";\n\nexport { TextInput };\n//# sourceMappingURL=TextInput.mjs.map\n","'use client';\nimport { createContext, useContext } from 'react';\n\nconst DatepickerContext = createContext(void 0);\nfunction useDatePickerContext() {\n const context = useContext(DatepickerContext);\n if (!context) {\n throw new Error(\"useDatePickerContext should be used within the DatePickerContext provider!\");\n }\n return context;\n}\n\nexport { DatepickerContext, useDatePickerContext };\n//# sourceMappingURL=DatepickerContext.mjs.map\n","var Views = /* @__PURE__ */ ((Views2) => {\n Views2[Views2[\"Days\"] = 0] = \"Days\";\n Views2[Views2[\"Months\"] = 1] = \"Months\";\n Views2[Views2[\"Years\"] = 2] = \"Years\";\n Views2[Views2[\"Decades\"] = 3] = \"Decades\";\n return Views2;\n})(Views || {});\nvar WeekStart = /* @__PURE__ */ ((WeekStart2) => {\n WeekStart2[WeekStart2[\"Sunday\"] = 0] = \"Sunday\";\n WeekStart2[WeekStart2[\"Monday\"] = 1] = \"Monday\";\n WeekStart2[WeekStart2[\"Tuesday\"] = 2] = \"Tuesday\";\n WeekStart2[WeekStart2[\"Wednesday\"] = 3] = \"Wednesday\";\n WeekStart2[WeekStart2[\"Thursday\"] = 4] = \"Thursday\";\n WeekStart2[WeekStart2[\"Friday\"] = 5] = \"Friday\";\n WeekStart2[WeekStart2[\"Saturday\"] = 6] = \"Saturday\";\n return WeekStart2;\n})(WeekStart || {});\nconst isDateInRange = (date, minDate, maxDate) => {\n const dateTime = new Date(date.getFullYear(), date.getMonth(), date.getDate()).getTime();\n if (minDate && maxDate) {\n const minDateTime = new Date(minDate.getFullYear(), minDate.getMonth(), minDate.getDate()).getTime();\n const maxDateTime = new Date(maxDate.getFullYear(), maxDate.getMonth(), maxDate.getDate()).getTime();\n return dateTime >= minDateTime && dateTime <= maxDateTime;\n }\n if (minDate) {\n const minDateTime = new Date(minDate.getFullYear(), minDate.getMonth(), minDate.getDate()).getTime();\n return dateTime >= minDateTime;\n }\n if (maxDate) {\n const maxDateTime = new Date(maxDate.getFullYear(), maxDate.getMonth(), maxDate.getDate()).getTime();\n return dateTime <= maxDateTime;\n }\n return true;\n};\nconst isDateEqual = (date, selectedDate) => {\n date = new Date(date.getFullYear(), date.getMonth(), date.getDate());\n selectedDate = new Date(selectedDate.getFullYear(), selectedDate.getMonth(), selectedDate.getDate());\n return date.getTime() === selectedDate.getTime();\n};\nconst getFirstDateInRange = (date, minDate, maxDate) => {\n if (!isDateInRange(date, minDate, maxDate)) {\n if (minDate && date < minDate) {\n date = minDate;\n } else if (maxDate && date > maxDate) {\n date = maxDate;\n }\n }\n return date;\n};\nconst getFirstDayOfTheMonth = (date, weekStart) => {\n const firstDayOfMonth = new Date(date.getFullYear(), date.getMonth(), 1);\n const dayOfWeek = firstDayOfMonth.getDay();\n let diff = dayOfWeek - weekStart;\n if (diff < 0) {\n diff += 7;\n }\n return addDays(firstDayOfMonth, -diff);\n};\nconst getWeekDays = (lang, weekStart) => {\n const weekdays = [];\n const date = /* @__PURE__ */ new Date(0);\n date.setDate(date.getDate() - date.getDay() + weekStart);\n const formatter = new Intl.DateTimeFormat(lang, { weekday: \"short\" });\n for (let i = 0; i < 7; i++) {\n weekdays.push(formatter.format(addDays(date, i)));\n }\n return weekdays;\n};\nconst addDays = (date, amount) => {\n const newDate = new Date(date);\n newDate.setDate(newDate.getDate() + amount);\n return newDate;\n};\nconst addMonths = (date, amount) => {\n const newDate = new Date(date);\n newDate.setMonth(newDate.getMonth() + amount);\n return newDate;\n};\nconst addYears = (date, amount) => {\n const newDate = new Date(date);\n newDate.setFullYear(newDate.getFullYear() + amount);\n return newDate;\n};\nconst getFormattedDate = (language, date, options) => {\n let defaultOptions = {\n day: \"numeric\",\n month: \"long\",\n year: \"numeric\"\n };\n if (options) {\n defaultOptions = options;\n }\n return new Intl.DateTimeFormat(language, defaultOptions).format(date);\n};\nconst startOfYearPeriod = (date, years) => {\n const year = date.getFullYear();\n return Math.floor(year / years) * years;\n};\nconst isDateInDecade = (date, startYear) => {\n const year = date.getFullYear();\n const endYear = startYear + 9;\n return year >= startYear && year <= endYear;\n};\n\nexport { Views, WeekStart, addDays, addMonths, addYears, getFirstDateInRange, getFirstDayOfTheMonth, getFormattedDate, getWeekDays, isDateEqual, isDateInDecade, isDateInRange, startOfYearPeriod };\n//# sourceMappingURL=helpers.mjs.map\n","import { jsxs, Fragment, jsx } from 'react/jsx-runtime';\nimport { twMerge } from 'tailwind-merge';\nimport { mergeDeep } from '../../../helpers/merge-deep.mjs';\nimport { useDatePickerContext } from '../DatepickerContext.mjs';\nimport { getWeekDays, getFirstDayOfTheMonth, addDays, getFormattedDate, isDateEqual, isDateInRange } from '../helpers.mjs';\n\nconst DatepickerViewsDays = ({ theme: customTheme = {} }) => {\n const {\n theme: rootTheme,\n weekStart,\n minDate,\n maxDate,\n viewDate,\n selectedDate,\n changeSelectedDate,\n language\n } = useDatePickerContext();\n const theme = mergeDeep(rootTheme.views.days, customTheme);\n const weekDays = getWeekDays(language, weekStart);\n const startDate = getFirstDayOfTheMonth(viewDate, weekStart);\n return /* @__PURE__ */ jsxs(Fragment, { children: [\n /* @__PURE__ */ jsx(\"div\", { className: theme.header.base, children: weekDays.map((day, index) => /* @__PURE__ */ jsx(\"span\", { className: theme.header.title, children: day }, index)) }),\n /* @__PURE__ */ jsx(\"div\", { className: theme.items.base, children: [...Array(42)].map((_date, index) => {\n const currentDate = addDays(startDate, index);\n const day = getFormattedDate(language, currentDate, { day: \"numeric\" });\n const isSelected = isDateEqual(selectedDate, currentDate);\n const isDisabled = !isDateInRange(currentDate, minDate, maxDate);\n return /* @__PURE__ */ jsx(\n \"button\",\n {\n disabled: isDisabled,\n type: \"button\",\n className: twMerge(\n theme.items.item.base,\n isSelected && theme.items.item.selected,\n isDisabled && theme.items.item.disabled\n ),\n onClick: () => {\n if (isDisabled)\n return;\n changeSelectedDate(currentDate, true);\n },\n children: day\n },\n index\n );\n }) })\n ] });\n};\n\nexport { DatepickerViewsDays };\n//# sourceMappingURL=Days.mjs.map\n","import { jsx } from 'react/jsx-runtime';\nimport { twMerge } from 'tailwind-merge';\nimport { mergeDeep } from '../../../helpers/merge-deep.mjs';\nimport { useDatePickerContext } from '../DatepickerContext.mjs';\nimport { startOfYearPeriod, addYears, isDateInDecade, isDateInRange, Views } from '../helpers.mjs';\n\nconst DatepickerViewsDecades = ({ theme: customTheme = {} }) => {\n const { theme: rootTheme, selectedDate, viewDate, setViewDate, setView } = useDatePickerContext();\n const theme = mergeDeep(rootTheme.views.decades, customTheme);\n return /* @__PURE__ */ jsx(\"div\", { className: theme.items.base, children: [...Array(12)].map((_year, index) => {\n const first = startOfYearPeriod(viewDate, 100);\n const year = first - 10 + index * 10;\n const firstDate = new Date(year, 0, 1);\n const lastDate = addYears(firstDate, 9);\n const isSelected = isDateInDecade(viewDate, year);\n const isDisabled = !isDateInRange(viewDate, firstDate, lastDate);\n return /* @__PURE__ */ jsx(\n \"button\",\n {\n disabled: isDisabled,\n type: \"button\",\n className: twMerge(\n theme.items.item.base,\n isSelected && theme.items.item.selected,\n isDisabled && theme.items.item.disabled\n ),\n onClick: () => {\n if (isDisabled)\n return;\n setViewDate(addYears(viewDate, year - selectedDate.getFullYear()));\n setView(Views.Years);\n },\n children: year\n },\n index\n );\n }) });\n};\n\nexport { DatepickerViewsDecades };\n//# sourceMappingURL=Decades.mjs.map\n","import { jsx } from 'react/jsx-runtime';\nimport { twMerge } from 'tailwind-merge';\nimport { mergeDeep } from '../../../helpers/merge-deep.mjs';\nimport { useDatePickerContext } from '../DatepickerContext.mjs';\nimport { getFormattedDate, isDateEqual, isDateInRange, Views } from '../helpers.mjs';\n\nconst DatepickerViewsMonth = ({ theme: customTheme = {} }) => {\n const {\n theme: rootTheme,\n minDate,\n maxDate,\n selectedDate,\n viewDate,\n language,\n setViewDate,\n setView\n } = useDatePickerContext();\n const theme = mergeDeep(rootTheme.views.months, customTheme);\n return /* @__PURE__ */ jsx(\"div\", { className: theme.items.base, children: [...Array(12)].map((_month, index) => {\n const newDate = new Date(viewDate.getTime());\n newDate.setMonth(index);\n const month = getFormattedDate(language, newDate, { month: \"short\" });\n const isSelected = isDateEqual(selectedDate, newDate);\n const isDisabled = !isDateInRange(newDate, minDate, maxDate);\n return /* @__PURE__ */ jsx(\n \"button\",\n {\n disabled: isDisabled,\n type: \"button\",\n className: twMerge(\n theme.items.item.base,\n isSelected && theme.items.item.selected,\n isDisabled && theme.items.item.disabled\n ),\n onClick: () => {\n if (isDisabled)\n return;\n setViewDate(newDate);\n setView(Views.Days);\n },\n children: month\n },\n index\n );\n }) });\n};\n\nexport { DatepickerViewsMonth };\n//# sourceMappingURL=Months.mjs.map\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { twMerge } from 'tailwind-merge';\nimport { mergeDeep } from '../../../helpers/merge-deep.mjs';\nimport { useDatePickerContext } from '../DatepickerContext.mjs';\nimport { startOfYearPeriod, isDateEqual, isDateInRange, Views } from '../helpers.mjs';\n\nconst DatepickerViewsYears = ({ theme: customTheme = {} }) => {\n const { theme: rootTheme, selectedDate, minDate, maxDate, viewDate, setViewDate, setView } = useDatePickerContext();\n const theme = mergeDeep(rootTheme.views.years, customTheme);\n return /* @__PURE__ */ jsx(\"div\", { className: theme.items.base, children: [...Array(12)].map((_year, index) => {\n const first = startOfYearPeriod(viewDate, 10);\n const year = first - 1 + index * 1;\n const newDate = new Date(viewDate.getTime());\n newDate.setFullYear(year);\n const isSelected = isDateEqual(selectedDate, newDate);\n const isDisabled = !isDateInRange(newDate, minDate, maxDate);\n return /* @__PURE__ */ jsx(\n \"button\",\n {\n disabled: isDisabled,\n type: \"button\",\n className: twMerge(\n theme.items.item.base,\n isSelected && theme.items.item.selected,\n isDisabled && theme.items.item.disabled\n ),\n onClick: () => {\n if (isDisabled)\n return;\n setViewDate(newDate);\n setView(Views.Months);\n },\n children: year\n },\n index\n );\n }) });\n};\n\nexport { DatepickerViewsYears };\n//# sourceMappingURL=Years.mjs.map\n","'use client';\nimport { jsx, jsxs } from 'react/jsx-runtime';\nimport { forwardRef, useState, useRef, useImperativeHandle, useEffect } from 'react';\nimport { HiCalendar, HiArrowLeft, HiArrowRight } from 'react-icons/hi';\nimport { twMerge } from 'tailwind-merge';\nimport { mergeDeep } from '../../helpers/merge-deep.mjs';\nimport { getTheme } from '../../theme-store/index.mjs';\nimport { TextInput } from '../TextInput/TextInput.mjs';\nimport { DatepickerContext } from './DatepickerContext.mjs';\nimport { getFirstDateInRange, Views, isDateEqual, getFormattedDate, WeekStart, startOfYearPeriod, addYears, addMonths } from './helpers.mjs';\nimport { DatepickerViewsDays } from './Views/Days.mjs';\nimport { DatepickerViewsDecades } from './Views/Decades.mjs';\nimport { DatepickerViewsMonth } from './Views/Months.mjs';\nimport { DatepickerViewsYears } from './Views/Years.mjs';\n\nconst DatepickerRender = ({\n title,\n open,\n inline = false,\n autoHide = true,\n // Hide when selected the day\n showClearButton = true,\n labelClearButton = \"Clear\",\n showTodayButton = true,\n labelTodayButton = \"Today\",\n defaultDate = /* @__PURE__ */ new Date(),\n minDate,\n maxDate,\n language = \"en\",\n weekStart = WeekStart.Sunday,\n className,\n theme: customTheme = {},\n onSelectedDateChanged,\n ...props\n}, ref) => {\n const theme = mergeDeep(getTheme().datepicker, customTheme);\n defaultDate = getFirstDateInRange(defaultDate, minDate, maxDate);\n const [isOpen, setIsOpen] = useState(open);\n const [view, setView] = useState(Views.Days);\n const [selectedDate, setSelectedDate] = useState(defaultDate);\n const [viewDate, setViewDate] = useState(defaultDate);\n const inputRef = useRef(null);\n const datepickerRef = useRef(null);\n const changeSelectedDate = (date, useAutohide) => {\n setSelectedDate(date);\n if (onSelectedDateChanged) {\n onSelectedDateChanged(date);\n }\n if (autoHide && view === Views.Days && useAutohide == true && !inline) {\n setIsOpen(false);\n }\n };\n const clearDate = () => {\n changeSelectedDate(defaultDate, true);\n if (defaultDate) {\n setViewDate(defaultDate);\n }\n };\n useImperativeHandle(ref, () => ({\n focus() {\n inputRef.current?.focus();\n },\n clear() {\n clearDate();\n }\n }));\n const renderView = (type) => {\n switch (type) {\n case Views.Decades:\n return /* @__PURE__ */ jsx(DatepickerViewsDecades, { theme: theme.views.decades });\n case Views.Years:\n return /* @__PURE__ */ jsx(DatepickerViewsYears, { theme: theme.views.years });\n case Views.Months:\n return /* @__PURE__ */ jsx(DatepickerViewsMonth, { theme: theme.views.months });\n case Views.Days:\n default:\n return /* @__PURE__ */ jsx(DatepickerViewsDays, { theme: theme.views.days });\n }\n };\n const getNextView = () => {\n switch (view) {\n case Views.Days:\n return Views.Months;\n case Views.Months:\n return Views.Years;\n case Views.Years:\n return Views.Decades;\n }\n return view;\n };\n const getViewTitle = () => {\n switch (view) {\n case Views.Decades:\n return `${startOfYearPeriod(viewDate, 100)} - ${startOfYearPeriod(viewDate, 100) + 90}`;\n case Views.Years:\n return `${startOfYearPeriod(viewDate, 10)} - ${startOfYearPeriod(viewDate, 10) + 9}`;\n case Views.Months:\n return getFormattedDate(language, viewDate, { year: \"numeric\" });\n case Views.Days:\n default:\n return getFormattedDate(language, viewDate, { month: \"long\", year: \"numeric\" });\n }\n };\n const getViewDatePage = (view2, date, value) => {\n switch (view2) {\n case Views.Days:\n return new Date(addMonths(date, value));\n case Views.Months:\n return new Date(addYears(date, value));\n case Views.Years:\n return new Date(addYears(date, value * 10));\n case Views.Decades:\n return new Date(addYears(date, value * 100));\n default:\n return new Date(addYears(date, value * 10));\n }\n };\n useEffect(() => {\n const handleClickOutside = (event) => {\n const clickedInsideDatepicker = datepickerRef?.current?.contains(event.target);\n const clickedInsideInput = inputRef?.current?.contains(event.target);\n if (!clickedInsideDatepicker && !clickedInsideInput) {\n setIsOpen(false);\n }\n };\n document.addEventListener(\"mousedown\", handleClickOutside);\n return () => {\n document.removeEventListener(\"mousedown\", handleClickOutside);\n };\n }, [inputRef, datepickerRef, setIsOpen]);\n return /* @__PURE__ */ jsx(\n DatepickerContext.Provider,\n {\n value: {\n theme,\n language,\n minDate,\n maxDate,\n weekStart,\n isOpen,\n setIsOpen,\n view,\n setView,\n viewDate,\n setViewDate,\n selectedDate,\n setSelectedDate,\n changeSelectedDate\n },\n children: /* @__PURE__ */ jsxs(\"div\", { className: twMerge(theme.root.base, className), children: [\n !inline && /* @__PURE__ */ jsx(\n TextInput,\n {\n theme: theme.root.input,\n icon: HiCalendar,\n ref: inputRef,\n onFocus: () => {\n if (!isDateEqual(viewDate, selectedDate)) {\n setViewDate(selectedDate);\n }\n setIsOpen(true);\n },\n value: selectedDate && getFormattedDate(language, selectedDate),\n readOnly: true,\n ...props\n }\n ),\n (isOpen || inline) && /* @__PURE__ */ jsx(\"div\", { ref: datepickerRef, className: twMerge(theme.popup.root.base, inline && theme.popup.root.inline), children: /* @__PURE__ */ jsxs(\"div\", { className: theme.popup.root.inner, children: [\n /* @__PURE__ */ jsxs(\"div\", { className: theme.popup.header.base, children: [\n title && /* @__PURE__ */ jsx(\"div\", { className: theme.popup.header.title, children: title }),\n /* @__PURE__ */ jsxs(\"div\", { className: theme.popup.header.selectors.base, children: [\n /* @__PURE__ */ jsx(\n \"button\",\n {\n type: \"button\",\n className: twMerge(\n theme.popup.header.selectors.button.base,\n theme.popup.header.selectors.button.prev\n ),\n onClick: () => setViewDate(getViewDatePage(view, viewDate, -1)),\n children: /* @__PURE__ */ jsx(HiArrowLeft, {})\n }\n ),\n /* @__PURE__ */ jsx(\n \"button\",\n {\n type: \"button\",\n className: twMerge(\n theme.popup.header.selectors.button.base,\n theme.popup.header.selectors.button.view\n ),\n onClick: () => setView(getNextView()),\n children: getViewTitle()\n }\n ),\n /* @__PURE__ */ jsx(\n \"button\",\n {\n type: \"button\",\n className: twMerge(\n theme.popup.header.selectors.button.base,\n theme.popup.header.selectors.button.next\n ),\n onClick: () => setViewDate(getViewDatePage(view, viewDate, 1)),\n children: /* @__PURE__ */ jsx(HiArrowRight, {})\n }\n )\n ] })\n ] }),\n /* @__PURE__ */ jsx(\"div\", { className: theme.popup.view.base, children: renderView(view) }),\n (showClearButton || showTodayButton) && /* @__PURE__ */ jsxs(\"div\", { className: theme.popup.footer.base, children: [\n showTodayButton && /* @__PURE__ */ jsx(\n \"button\",\n {\n type: \"button\",\n className: twMerge(theme.popup.footer.button.base, theme.popup.footer.button.today),\n onClick: () => {\n const today = /* @__PURE__ */ new Date();\n changeSelectedDate(today, true);\n setViewDate(today);\n },\n children: labelTodayButton\n }\n ),\n showClearButton && /* @__PURE__ */ jsx(\n \"button\",\n {\n type: \"button\",\n className: twMerge(theme.popup.footer.button.base, theme.popup.footer.button.clear),\n onClick: () => {\n changeSelectedDate(defaultDate, true);\n if (defaultDate) {\n setViewDate(defaultDate);\n }\n },\n children: labelClearButton\n }\n )\n ] })\n ] }) })\n ] })\n }\n );\n};\nconst Datepicker = forwardRef(DatepickerRender);\nDatepicker.displayName = \"Datepicker\";\n\nexport { Datepicker };\n//# sourceMappingURL=Datepicker.mjs.map\n","function getNodeName(node) {\n if (isNode(node)) {\n return (node.nodeName || '').toLowerCase();\n }\n // Mocked nodes in testing environments may not be instances of Node. By\n // returning `#document` an infinite loop won't occur.\n // https://github.com/floating-ui/floating-ui/issues/2317\n return '#document';\n}\nfunction getWindow(node) {\n var _node$ownerDocument;\n return (node == null || (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;\n}\nfunction getDocumentElement(node) {\n var _ref;\n return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;\n}\nfunction isNode(value) {\n return value instanceof Node || value instanceof getWindow(value).Node;\n}\nfunction isElement(value) {\n return value instanceof Element || value instanceof getWindow(value).Element;\n}\nfunction isHTMLElement(value) {\n return value instanceof HTMLElement || value instanceof getWindow(value).HTMLElement;\n}\nfunction isShadowRoot(value) {\n // Browsers without `ShadowRoot` support.\n if (typeof ShadowRoot === 'undefined') {\n return false;\n }\n return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;\n}\nfunction isOverflowElement(element) {\n const {\n overflow,\n overflowX,\n overflowY,\n display\n } = getComputedStyle(element);\n return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !['inline', 'contents'].includes(display);\n}\nfunction isTableElement(element) {\n return ['table', 'td', 'th'].includes(getNodeName(element));\n}\nfunction isContainingBlock(element) {\n const webkit = isWebKit();\n const css = getComputedStyle(element);\n\n // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block\n return css.transform !== 'none' || css.perspective !== 'none' || (css.containerType ? css.containerType !== 'normal' : false) || !webkit && (css.backdropFilter ? css.backdropFilter !== 'none' : false) || !webkit && (css.filter ? css.filter !== 'none' : false) || ['transform', 'perspective', 'filter'].some(value => (css.willChange || '').includes(value)) || ['paint', 'layout', 'strict', 'content'].some(value => (css.contain || '').includes(value));\n}\nfunction getContainingBlock(element) {\n let currentNode = getParentNode(element);\n while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {\n if (isContainingBlock(currentNode)) {\n return currentNode;\n } else {\n currentNode = getParentNode(currentNode);\n }\n }\n return null;\n}\nfunction isWebKit() {\n if (typeof CSS === 'undefined' || !CSS.supports) return false;\n return CSS.supports('-webkit-backdrop-filter', 'none');\n}\nfunction isLastTraversableNode(node) {\n return ['html', 'body', '#document'].includes(getNodeName(node));\n}\nfunction getComputedStyle(element) {\n return getWindow(element).getComputedStyle(element);\n}\nfunction getNodeScroll(element) {\n if (isElement(element)) {\n return {\n scrollLeft: element.scrollLeft,\n scrollTop: element.scrollTop\n };\n }\n return {\n scrollLeft: element.pageXOffset,\n scrollTop: element.pageYOffset\n };\n}\nfunction getParentNode(node) {\n if (getNodeName(node) === 'html') {\n return node;\n }\n const result =\n // Step into the shadow DOM of the parent of a slotted node.\n node.assignedSlot ||\n // DOM Element detected.\n node.parentNode ||\n // ShadowRoot detected.\n isShadowRoot(node) && node.host ||\n // Fallback.\n getDocumentElement(node);\n return isShadowRoot(result) ? result.host : result;\n}\nfunction getNearestOverflowAncestor(node) {\n const parentNode = getParentNode(node);\n if (isLastTraversableNode(parentNode)) {\n return node.ownerDocument ? node.ownerDocument.body : node.body;\n }\n if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {\n return parentNode;\n }\n return getNearestOverflowAncestor(parentNode);\n}\nfunction getOverflowAncestors(node, list, traverseIframes) {\n var _node$ownerDocument2;\n if (list === void 0) {\n list = [];\n }\n if (traverseIframes === void 0) {\n traverseIframes = true;\n }\n const scrollableAncestor = getNearestOverflowAncestor(node);\n const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);\n const win = getWindow(scrollableAncestor);\n if (isBody) {\n return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], win.frameElement && traverseIframes ? getOverflowAncestors(win.frameElement) : []);\n }\n return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));\n}\n\nexport { getComputedStyle, getContainingBlock, getDocumentElement, getNearestOverflowAncestor, getNodeName, getNodeScroll, getOverflowAncestors, getParentNode, getWindow, isContainingBlock, isElement, isHTMLElement, isLastTraversableNode, isNode, isOverflowElement, isShadowRoot, isTableElement, isWebKit };\n","import { isShadowRoot, isHTMLElement } from '@floating-ui/utils/dom';\n\nfunction activeElement(doc) {\n let activeElement = doc.activeElement;\n while (((_activeElement = activeElement) == null || (_activeElement = _activeElement.shadowRoot) == null ? void 0 : _activeElement.activeElement) != null) {\n var _activeElement;\n activeElement = activeElement.shadowRoot.activeElement;\n }\n return activeElement;\n}\nfunction contains(parent, child) {\n if (!parent || !child) {\n return false;\n }\n const rootNode = child.getRootNode == null ? void 0 : child.getRootNode();\n\n // First, attempt with faster native method\n if (parent.contains(child)) {\n return true;\n }\n\n // then fallback to custom implementation with Shadow DOM support\n if (rootNode && isShadowRoot(rootNode)) {\n let next = child;\n while (next) {\n if (parent === next) {\n return true;\n }\n // @ts-ignore\n next = next.parentNode || next.host;\n }\n }\n\n // Give up, the result is false\n return false;\n}\n// Avoid Chrome DevTools blue warning.\nfunction getPlatform() {\n const uaData = navigator.userAgentData;\n if (uaData != null && uaData.platform) {\n return uaData.platform;\n }\n return navigator.platform;\n}\nfunction getUserAgent() {\n const uaData = navigator.userAgentData;\n if (uaData && Array.isArray(uaData.brands)) {\n return uaData.brands.map(_ref => {\n let {\n brand,\n version\n } = _ref;\n return brand + \"/\" + version;\n }).join(' ');\n }\n return navigator.userAgent;\n}\n\n// License: https://github.com/adobe/react-spectrum/blob/b35d5c02fe900badccd0cf1a8f23bb593419f238/packages/@react-aria/utils/src/isVirtualEvent.ts\nfunction isVirtualClick(event) {\n // FIXME: Firefox is now emitting a deprecation warning for `mozInputSource`.\n // Try to find a workaround for this. `react-aria` source still has the check.\n if (event.mozInputSource === 0 && event.isTrusted) {\n return true;\n }\n if (isAndroid() && event.pointerType) {\n return event.type === 'click' && event.buttons === 1;\n }\n return event.detail === 0 && !event.pointerType;\n}\nfunction isVirtualPointerEvent(event) {\n if (isJSDOM()) return false;\n return !isAndroid() && event.width === 0 && event.height === 0 || isAndroid() && event.width === 1 && event.height === 1 && event.pressure === 0 && event.detail === 0 && event.pointerType === 'mouse' ||\n // iOS VoiceOver returns 0.333• for width/height.\n event.width < 1 && event.height < 1 && event.pressure === 0 && event.detail === 0 && event.pointerType === 'touch';\n}\nfunction isSafari() {\n // Chrome DevTools does not complain about navigator.vendor\n return /apple/i.test(navigator.vendor);\n}\nfunction isAndroid() {\n const re = /android/i;\n return re.test(getPlatform()) || re.test(getUserAgent());\n}\nfunction isMac() {\n return getPlatform().toLowerCase().startsWith('mac') && !navigator.maxTouchPoints;\n}\nfunction isJSDOM() {\n return getUserAgent().includes('jsdom/');\n}\nfunction isMouseLikePointerType(pointerType, strict) {\n // On some Linux machines with Chromium, mouse inputs return a `pointerType`\n // of \"pen\": https://github.com/floating-ui/floating-ui/issues/2015\n const values = ['mouse', 'pen'];\n if (!strict) {\n values.push('', undefined);\n }\n return values.includes(pointerType);\n}\nfunction isReactEvent(event) {\n return 'nativeEvent' in event;\n}\nfunction isRootElement(element) {\n return element.matches('html,body');\n}\nfunction getDocument(node) {\n return (node == null ? void 0 : node.ownerDocument) || document;\n}\nfunction isEventTargetWithin(event, node) {\n if (node == null) {\n return false;\n }\n if ('composedPath' in event) {\n return event.composedPath().includes(node);\n }\n\n // TS thinks `event` is of type never as it assumes all browsers support composedPath, but browsers without shadow dom don't\n const e = event;\n return e.target != null && node.contains(e.target);\n}\nfunction getTarget(event) {\n if ('composedPath' in event) {\n return event.composedPath()[0];\n }\n\n // TS thinks `event` is of type never as it assumes all browsers support\n // `composedPath()`, but browsers without shadow DOM don't.\n return event.target;\n}\nconst TYPEABLE_SELECTOR = \"input:not([type='hidden']):not([disabled]),\" + \"[contenteditable]:not([contenteditable='false']),textarea:not([disabled])\";\nfunction isTypeableElement(element) {\n return isHTMLElement(element) && element.matches(TYPEABLE_SELECTOR);\n}\nfunction stopEvent(event) {\n event.preventDefault();\n event.stopPropagation();\n}\nfunction isTypeableCombobox(element) {\n if (!element) return false;\n return element.getAttribute('role') === 'combobox' && isTypeableElement(element);\n}\n\nexport { TYPEABLE_SELECTOR, activeElement, contains, getDocument, getPlatform, getTarget, getUserAgent, isAndroid, isEventTargetWithin, isJSDOM, isMac, isMouseLikePointerType, isReactEvent, isRootElement, isSafari, isTypeableCombobox, isTypeableElement, isVirtualClick, isVirtualPointerEvent, stopEvent };\n","/**\n * Custom positioning reference element.\n * @see https://floating-ui.com/docs/virtual-elements\n */\n\nconst sides = ['top', 'right', 'bottom', 'left'];\nconst alignments = ['start', 'end'];\nconst placements = /*#__PURE__*/sides.reduce((acc, side) => acc.concat(side, side + \"-\" + alignments[0], side + \"-\" + alignments[1]), []);\nconst min = Math.min;\nconst max = Math.max;\nconst round = Math.round;\nconst floor = Math.floor;\nconst createCoords = v => ({\n x: v,\n y: v\n});\nconst oppositeSideMap = {\n left: 'right',\n right: 'left',\n bottom: 'top',\n top: 'bottom'\n};\nconst oppositeAlignmentMap = {\n start: 'end',\n end: 'start'\n};\nfunction clamp(start, value, end) {\n return max(start, min(value, end));\n}\nfunction evaluate(value, param) {\n return typeof value === 'function' ? value(param) : value;\n}\nfunction getSide(placement) {\n return placement.split('-')[0];\n}\nfunction getAlignment(placement) {\n return placement.split('-')[1];\n}\nfunction getOppositeAxis(axis) {\n return axis === 'x' ? 'y' : 'x';\n}\nfunction getAxisLength(axis) {\n return axis === 'y' ? 'height' : 'width';\n}\nfunction getSideAxis(placement) {\n return ['top', 'bottom'].includes(getSide(placement)) ? 'y' : 'x';\n}\nfunction getAlignmentAxis(placement) {\n return getOppositeAxis(getSideAxis(placement));\n}\nfunction getAlignmentSides(placement, rects, rtl) {\n if (rtl === void 0) {\n rtl = false;\n }\n const alignment = getAlignment(placement);\n const alignmentAxis = getAlignmentAxis(placement);\n const length = getAxisLength(alignmentAxis);\n let mainAlignmentSide = alignmentAxis === 'x' ? alignment === (rtl ? 'end' : 'start') ? 'right' : 'left' : alignment === 'start' ? 'bottom' : 'top';\n if (rects.reference[length] > rects.floating[length]) {\n mainAlignmentSide = getOppositePlacement(mainAlignmentSide);\n }\n return [mainAlignmentSide, getOppositePlacement(mainAlignmentSide)];\n}\nfunction getExpandedPlacements(placement) {\n const oppositePlacement = getOppositePlacement(placement);\n return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];\n}\nfunction getOppositeAlignmentPlacement(placement) {\n return placement.replace(/start|end/g, alignment => oppositeAlignmentMap[alignment]);\n}\nfunction getSideList(side, isStart, rtl) {\n const lr = ['left', 'right'];\n const rl = ['right', 'left'];\n const tb = ['top', 'bottom'];\n const bt = ['bottom', 'top'];\n switch (side) {\n case 'top':\n case 'bottom':\n if (rtl) return isStart ? rl : lr;\n return isStart ? lr : rl;\n case 'left':\n case 'right':\n return isStart ? tb : bt;\n default:\n return [];\n }\n}\nfunction getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {\n const alignment = getAlignment(placement);\n let list = getSideList(getSide(placement), direction === 'start', rtl);\n if (alignment) {\n list = list.map(side => side + \"-\" + alignment);\n if (flipAlignment) {\n list = list.concat(list.map(getOppositeAlignmentPlacement));\n }\n }\n return list;\n}\nfunction getOppositePlacement(placement) {\n return placement.replace(/left|right|bottom|top/g, side => oppositeSideMap[side]);\n}\nfunction expandPaddingObject(padding) {\n return {\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n ...padding\n };\n}\nfunction getPaddingObject(padding) {\n return typeof padding !== 'number' ? expandPaddingObject(padding) : {\n top: padding,\n right: padding,\n bottom: padding,\n left: padding\n };\n}\nfunction rectToClientRect(rect) {\n return {\n ...rect,\n top: rect.y,\n left: rect.x,\n right: rect.x + rect.width,\n bottom: rect.y + rect.height\n };\n}\n\nexport { alignments, clamp, createCoords, evaluate, expandPaddingObject, floor, getAlignment, getAlignmentAxis, getAlignmentSides, getAxisLength, getExpandedPlacements, getOppositeAlignmentPlacement, getOppositeAxis, getOppositeAxisPlacements, getOppositePlacement, getPaddingObject, getSide, getSideAxis, max, min, placements, rectToClientRect, round, sides };\n","import { getSideAxis, getAlignmentAxis, getAxisLength, getSide, getAlignment, evaluate, getPaddingObject, rectToClientRect, min, clamp, placements, getAlignmentSides, getOppositeAlignmentPlacement, getOppositePlacement, getExpandedPlacements, getOppositeAxisPlacements, sides, max, getOppositeAxis } from '@floating-ui/utils';\nexport { rectToClientRect } from '@floating-ui/utils';\n\nfunction computeCoordsFromPlacement(_ref, placement, rtl) {\n let {\n reference,\n floating\n } = _ref;\n const sideAxis = getSideAxis(placement);\n const alignmentAxis = getAlignmentAxis(placement);\n const alignLength = getAxisLength(alignmentAxis);\n const side = getSide(placement);\n const isVertical = sideAxis === 'y';\n const commonX = reference.x + reference.width / 2 - floating.width / 2;\n const commonY = reference.y + reference.height / 2 - floating.height / 2;\n const commonAlign = reference[alignLength] / 2 - floating[alignLength] / 2;\n let coords;\n switch (side) {\n case 'top':\n coords = {\n x: commonX,\n y: reference.y - floating.height\n };\n break;\n case 'bottom':\n coords = {\n x: commonX,\n y: reference.y + reference.height\n };\n break;\n case 'right':\n coords = {\n x: reference.x + reference.width,\n y: commonY\n };\n break;\n case 'left':\n coords = {\n x: reference.x - floating.width,\n y: commonY\n };\n break;\n default:\n coords = {\n x: reference.x,\n y: reference.y\n };\n }\n switch (getAlignment(placement)) {\n case 'start':\n coords[alignmentAxis] -= commonAlign * (rtl && isVertical ? -1 : 1);\n break;\n case 'end':\n coords[alignmentAxis] += commonAlign * (rtl && isVertical ? -1 : 1);\n break;\n }\n return coords;\n}\n\n/**\n * Computes the `x` and `y` coordinates that will place the floating element\n * next to a given reference element.\n *\n * This export does not have any `platform` interface logic. You will need to\n * write one for the platform you are using Floating UI with.\n */\nconst computePosition = async (reference, floating, config) => {\n const {\n placement = 'bottom',\n strategy = 'absolute',\n middleware = [],\n platform\n } = config;\n const validMiddleware = middleware.filter(Boolean);\n const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(floating));\n let rects = await platform.getElementRects({\n reference,\n floating,\n strategy\n });\n let {\n x,\n y\n } = computeCoordsFromPlacement(rects, placement, rtl);\n let statefulPlacement = placement;\n let middlewareData = {};\n let resetCount = 0;\n for (let i = 0; i < validMiddleware.length; i++) {\n const {\n name,\n fn\n } = validMiddleware[i];\n const {\n x: nextX,\n y: nextY,\n data,\n reset\n } = await fn({\n x,\n y,\n initialPlacement: placement,\n placement: statefulPlacement,\n strategy,\n middlewareData,\n rects,\n platform,\n elements: {\n reference,\n floating\n }\n });\n x = nextX != null ? nextX : x;\n y = nextY != null ? nextY : y;\n middlewareData = {\n ...middlewareData,\n [name]: {\n ...middlewareData[name],\n ...data\n }\n };\n if (reset && resetCount <= 50) {\n resetCount++;\n if (typeof reset === 'object') {\n if (reset.placement) {\n statefulPlacement = reset.placement;\n }\n if (reset.rects) {\n rects = reset.rects === true ? await platform.getElementRects({\n reference,\n floating,\n strategy\n }) : reset.rects;\n }\n ({\n x,\n y\n } = computeCoordsFromPlacement(rects, statefulPlacement, rtl));\n }\n i = -1;\n }\n }\n return {\n x,\n y,\n placement: statefulPlacement,\n strategy,\n middlewareData\n };\n};\n\n/**\n * Resolves with an object of overflow side offsets that determine how much the\n * element is overflowing a given clipping boundary on each side.\n * - positive = overflowing the boundary by that number of pixels\n * - negative = how many pixels left before it will overflow\n * - 0 = lies flush with the boundary\n * @see https://floating-ui.com/docs/detectOverflow\n */\nasync function detectOverflow(state, options) {\n var _await$platform$isEle;\n if (options === void 0) {\n options = {};\n }\n const {\n x,\n y,\n platform,\n rects,\n elements,\n strategy\n } = state;\n const {\n boundary = 'clippingAncestors',\n rootBoundary = 'viewport',\n elementContext = 'floating',\n altBoundary = false,\n padding = 0\n } = evaluate(options, state);\n const paddingObject = getPaddingObject(padding);\n const altContext = elementContext === 'floating' ? 'reference' : 'floating';\n const element = elements[altBoundary ? altContext : elementContext];\n const clippingClientRect = rectToClientRect(await platform.getClippingRect({\n element: ((_await$platform$isEle = await (platform.isElement == null ? void 0 : platform.isElement(element))) != null ? _await$platform$isEle : true) ? element : element.contextElement || (await (platform.getDocumentElement == null ? void 0 : platform.getDocumentElement(elements.floating))),\n boundary,\n rootBoundary,\n strategy\n }));\n const rect = elementContext === 'floating' ? {\n ...rects.floating,\n x,\n y\n } : rects.reference;\n const offsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(elements.floating));\n const offsetScale = (await (platform.isElement == null ? void 0 : platform.isElement(offsetParent))) ? (await (platform.getScale == null ? void 0 : platform.getScale(offsetParent))) || {\n x: 1,\n y: 1\n } : {\n x: 1,\n y: 1\n };\n const elementClientRect = rectToClientRect(platform.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform.convertOffsetParentRelativeRectToViewportRelativeRect({\n elements,\n rect,\n offsetParent,\n strategy\n }) : rect);\n return {\n top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,\n bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,\n left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,\n right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x\n };\n}\n\n/**\n * Provides data to position an inner element of the floating element so that it\n * appears centered to the reference element.\n * @see https://floating-ui.com/docs/arrow\n */\nconst arrow = options => ({\n name: 'arrow',\n options,\n async fn(state) {\n const {\n x,\n y,\n placement,\n rects,\n platform,\n elements,\n middlewareData\n } = state;\n // Since `element` is required, we don't Partial<> the type.\n const {\n element,\n padding = 0\n } = evaluate(options, state) || {};\n if (element == null) {\n return {};\n }\n const paddingObject = getPaddingObject(padding);\n const coords = {\n x,\n y\n };\n const axis = getAlignmentAxis(placement);\n const length = getAxisLength(axis);\n const arrowDimensions = await platform.getDimensions(element);\n const isYAxis = axis === 'y';\n const minProp = isYAxis ? 'top' : 'left';\n const maxProp = isYAxis ? 'bottom' : 'right';\n const clientProp = isYAxis ? 'clientHeight' : 'clientWidth';\n const endDiff = rects.reference[length] + rects.reference[axis] - coords[axis] - rects.floating[length];\n const startDiff = coords[axis] - rects.reference[axis];\n const arrowOffsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(element));\n let clientSize = arrowOffsetParent ? arrowOffsetParent[clientProp] : 0;\n\n // DOM platform can return `window` as the `offsetParent`.\n if (!clientSize || !(await (platform.isElement == null ? void 0 : platform.isElement(arrowOffsetParent)))) {\n clientSize = elements.floating[clientProp] || rects.floating[length];\n }\n const centerToReference = endDiff / 2 - startDiff / 2;\n\n // If the padding is large enough that it causes the arrow to no longer be\n // centered, modify the padding so that it is centered.\n const largestPossiblePadding = clientSize / 2 - arrowDimensions[length] / 2 - 1;\n const minPadding = min(paddingObject[minProp], largestPossiblePadding);\n const maxPadding = min(paddingObject[maxProp], largestPossiblePadding);\n\n // Make sure the arrow doesn't overflow the floating element if the center\n // point is outside the floating element's bounds.\n const min$1 = minPadding;\n const max = clientSize - arrowDimensions[length] - maxPadding;\n const center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference;\n const offset = clamp(min$1, center, max);\n\n // If the reference is small enough that the arrow's padding causes it to\n // to point to nothing for an aligned placement, adjust the offset of the\n // floating element itself. To ensure `shift()` continues to take action,\n // a single reset is performed when this is true.\n const shouldAddOffset = !middlewareData.arrow && getAlignment(placement) != null && center !== offset && rects.reference[length] / 2 - (center < min$1 ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0;\n const alignmentOffset = shouldAddOffset ? center < min$1 ? center - min$1 : center - max : 0;\n return {\n [axis]: coords[axis] + alignmentOffset,\n data: {\n [axis]: offset,\n centerOffset: center - offset - alignmentOffset,\n ...(shouldAddOffset && {\n alignmentOffset\n })\n },\n reset: shouldAddOffset\n };\n }\n});\n\nfunction getPlacementList(alignment, autoAlignment, allowedPlacements) {\n const allowedPlacementsSortedByAlignment = alignment ? [...allowedPlacements.filter(placement => getAlignment(placement) === alignment), ...allowedPlacements.filter(placement => getAlignment(placement) !== alignment)] : allowedPlacements.filter(placement => getSide(placement) === placement);\n return allowedPlacementsSortedByAlignment.filter(placement => {\n if (alignment) {\n return getAlignment(placement) === alignment || (autoAlignment ? getOppositeAlignmentPlacement(placement) !== placement : false);\n }\n return true;\n });\n}\n/**\n * Optimizes the visibility of the floating element by choosing the placement\n * that has the most space available automatically, without needing to specify a\n * preferred placement. Alternative to `flip`.\n * @see https://floating-ui.com/docs/autoPlacement\n */\nconst autoPlacement = function (options) {\n if (options === void 0) {\n options = {};\n }\n return {\n name: 'autoPlacement',\n options,\n async fn(state) {\n var _middlewareData$autoP, _middlewareData$autoP2, _placementsThatFitOnE;\n const {\n rects,\n middlewareData,\n placement,\n platform,\n elements\n } = state;\n const {\n crossAxis = false,\n alignment,\n allowedPlacements = placements,\n autoAlignment = true,\n ...detectOverflowOptions\n } = evaluate(options, state);\n const placements$1 = alignment !== undefined || allowedPlacements === placements ? getPlacementList(alignment || null, autoAlignment, allowedPlacements) : allowedPlacements;\n const overflow = await detectOverflow(state, detectOverflowOptions);\n const currentIndex = ((_middlewareData$autoP = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP.index) || 0;\n const currentPlacement = placements$1[currentIndex];\n if (currentPlacement == null) {\n return {};\n }\n const alignmentSides = getAlignmentSides(currentPlacement, rects, await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating)));\n\n // Make `computeCoords` start from the right place.\n if (placement !== currentPlacement) {\n return {\n reset: {\n placement: placements$1[0]\n }\n };\n }\n const currentOverflows = [overflow[getSide(currentPlacement)], overflow[alignmentSides[0]], overflow[alignmentSides[1]]];\n const allOverflows = [...(((_middlewareData$autoP2 = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP2.overflows) || []), {\n placement: currentPlacement,\n overflows: currentOverflows\n }];\n const nextPlacement = placements$1[currentIndex + 1];\n\n // There are more placements to check.\n if (nextPlacement) {\n return {\n data: {\n index: currentIndex + 1,\n overflows: allOverflows\n },\n reset: {\n placement: nextPlacement\n }\n };\n }\n const placementsSortedByMostSpace = allOverflows.map(d => {\n const alignment = getAlignment(d.placement);\n return [d.placement, alignment && crossAxis ?\n // Check along the mainAxis and main crossAxis side.\n d.overflows.slice(0, 2).reduce((acc, v) => acc + v, 0) :\n // Check only the mainAxis.\n d.overflows[0], d.overflows];\n }).sort((a, b) => a[1] - b[1]);\n const placementsThatFitOnEachSide = placementsSortedByMostSpace.filter(d => d[2].slice(0,\n // Aligned placements should not check their opposite crossAxis\n // side.\n getAlignment(d[0]) ? 2 : 3).every(v => v <= 0));\n const resetPlacement = ((_placementsThatFitOnE = placementsThatFitOnEachSide[0]) == null ? void 0 : _placementsThatFitOnE[0]) || placementsSortedByMostSpace[0][0];\n if (resetPlacement !== placement) {\n return {\n data: {\n index: currentIndex + 1,\n overflows: allOverflows\n },\n reset: {\n placement: resetPlacement\n }\n };\n }\n return {};\n }\n };\n};\n\n/**\n * Optimizes the visibility of the floating element by flipping the `placement`\n * in order to keep it in view when the preferred placement(s) will overflow the\n * clipping boundary. Alternative to `autoPlacement`.\n * @see https://floating-ui.com/docs/flip\n */\nconst flip = function (options) {\n if (options === void 0) {\n options = {};\n }\n return {\n name: 'flip',\n options,\n async fn(state) {\n var _middlewareData$arrow, _middlewareData$flip;\n const {\n placement,\n middlewareData,\n rects,\n initialPlacement,\n platform,\n elements\n } = state;\n const {\n mainAxis: checkMainAxis = true,\n crossAxis: checkCrossAxis = true,\n fallbackPlacements: specifiedFallbackPlacements,\n fallbackStrategy = 'bestFit',\n fallbackAxisSideDirection = 'none',\n flipAlignment = true,\n ...detectOverflowOptions\n } = evaluate(options, state);\n\n // If a reset by the arrow was caused due to an alignment offset being\n // added, we should skip any logic now since `flip()` has already done its\n // work.\n // https://github.com/floating-ui/floating-ui/issues/2549#issuecomment-1719601643\n if ((_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {\n return {};\n }\n const side = getSide(placement);\n const isBasePlacement = getSide(initialPlacement) === initialPlacement;\n const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));\n const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));\n if (!specifiedFallbackPlacements && fallbackAxisSideDirection !== 'none') {\n fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));\n }\n const placements = [initialPlacement, ...fallbackPlacements];\n const overflow = await detectOverflow(state, detectOverflowOptions);\n const overflows = [];\n let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [];\n if (checkMainAxis) {\n overflows.push(overflow[side]);\n }\n if (checkCrossAxis) {\n const sides = getAlignmentSides(placement, rects, rtl);\n overflows.push(overflow[sides[0]], overflow[sides[1]]);\n }\n overflowsData = [...overflowsData, {\n placement,\n overflows\n }];\n\n // One or more sides is overflowing.\n if (!overflows.every(side => side <= 0)) {\n var _middlewareData$flip2, _overflowsData$filter;\n const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;\n const nextPlacement = placements[nextIndex];\n if (nextPlacement) {\n // Try next placement and re-run the lifecycle.\n return {\n data: {\n index: nextIndex,\n overflows: overflowsData\n },\n reset: {\n placement: nextPlacement\n }\n };\n }\n\n // First, find the candidates that fit on the mainAxis side of overflow,\n // then find the placement that fits the best on the main crossAxis side.\n let resetPlacement = (_overflowsData$filter = overflowsData.filter(d => d.overflows[0] <= 0).sort((a, b) => a.overflows[1] - b.overflows[1])[0]) == null ? void 0 : _overflowsData$filter.placement;\n\n // Otherwise fallback.\n if (!resetPlacement) {\n switch (fallbackStrategy) {\n case 'bestFit':\n {\n var _overflowsData$map$so;\n const placement = (_overflowsData$map$so = overflowsData.map(d => [d.placement, d.overflows.filter(overflow => overflow > 0).reduce((acc, overflow) => acc + overflow, 0)]).sort((a, b) => a[1] - b[1])[0]) == null ? void 0 : _overflowsData$map$so[0];\n if (placement) {\n resetPlacement = placement;\n }\n break;\n }\n case 'initialPlacement':\n resetPlacement = initialPlacement;\n break;\n }\n }\n if (placement !== resetPlacement) {\n return {\n reset: {\n placement: resetPlacement\n }\n };\n }\n }\n return {};\n }\n };\n};\n\nfunction getSideOffsets(overflow, rect) {\n return {\n top: overflow.top - rect.height,\n right: overflow.right - rect.width,\n bottom: overflow.bottom - rect.height,\n left: overflow.left - rect.width\n };\n}\nfunction isAnySideFullyClipped(overflow) {\n return sides.some(side => overflow[side] >= 0);\n}\n/**\n * Provides data to hide the floating element in applicable situations, such as\n * when it is not in the same clipping context as the reference element.\n * @see https://floating-ui.com/docs/hide\n */\nconst hide = function (options) {\n if (options === void 0) {\n options = {};\n }\n return {\n name: 'hide',\n options,\n async fn(state) {\n const {\n rects\n } = state;\n const {\n strategy = 'referenceHidden',\n ...detectOverflowOptions\n } = evaluate(options, state);\n switch (strategy) {\n case 'referenceHidden':\n {\n const overflow = await detectOverflow(state, {\n ...detectOverflowOptions,\n elementContext: 'reference'\n });\n const offsets = getSideOffsets(overflow, rects.reference);\n return {\n data: {\n referenceHiddenOffsets: offsets,\n referenceHidden: isAnySideFullyClipped(offsets)\n }\n };\n }\n case 'escaped':\n {\n const overflow = await detectOverflow(state, {\n ...detectOverflowOptions,\n altBoundary: true\n });\n const offsets = getSideOffsets(overflow, rects.floating);\n return {\n data: {\n escapedOffsets: offsets,\n escaped: isAnySideFullyClipped(offsets)\n }\n };\n }\n default:\n {\n return {};\n }\n }\n }\n };\n};\n\nfunction getBoundingRect(rects) {\n const minX = min(...rects.map(rect => rect.left));\n const minY = min(...rects.map(rect => rect.top));\n const maxX = max(...rects.map(rect => rect.right));\n const maxY = max(...rects.map(rect => rect.bottom));\n return {\n x: minX,\n y: minY,\n width: maxX - minX,\n height: maxY - minY\n };\n}\nfunction getRectsByLine(rects) {\n const sortedRects = rects.slice().sort((a, b) => a.y - b.y);\n const groups = [];\n let prevRect = null;\n for (let i = 0; i < sortedRects.length; i++) {\n const rect = sortedRects[i];\n if (!prevRect || rect.y - prevRect.y > prevRect.height / 2) {\n groups.push([rect]);\n } else {\n groups[groups.length - 1].push(rect);\n }\n prevRect = rect;\n }\n return groups.map(rect => rectToClientRect(getBoundingRect(rect)));\n}\n/**\n * Provides improved positioning for inline reference elements that can span\n * over multiple lines, such as hyperlinks or range selections.\n * @see https://floating-ui.com/docs/inline\n */\nconst inline = function (options) {\n if (options === void 0) {\n options = {};\n }\n return {\n name: 'inline',\n options,\n async fn(state) {\n const {\n placement,\n elements,\n rects,\n platform,\n strategy\n } = state;\n // A MouseEvent's client{X,Y} coords can be up to 2 pixels off a\n // ClientRect's bounds, despite the event listener being triggered. A\n // padding of 2 seems to handle this issue.\n const {\n padding = 2,\n x,\n y\n } = evaluate(options, state);\n const nativeClientRects = Array.from((await (platform.getClientRects == null ? void 0 : platform.getClientRects(elements.reference))) || []);\n const clientRects = getRectsByLine(nativeClientRects);\n const fallback = rectToClientRect(getBoundingRect(nativeClientRects));\n const paddingObject = getPaddingObject(padding);\n function getBoundingClientRect() {\n // There are two rects and they are disjoined.\n if (clientRects.length === 2 && clientRects[0].left > clientRects[1].right && x != null && y != null) {\n // Find the first rect in which the point is fully inside.\n return clientRects.find(rect => x > rect.left - paddingObject.left && x < rect.right + paddingObject.right && y > rect.top - paddingObject.top && y < rect.bottom + paddingObject.bottom) || fallback;\n }\n\n // There are 2 or more connected rects.\n if (clientRects.length >= 2) {\n if (getSideAxis(placement) === 'y') {\n const firstRect = clientRects[0];\n const lastRect = clientRects[clientRects.length - 1];\n const isTop = getSide(placement) === 'top';\n const top = firstRect.top;\n const bottom = lastRect.bottom;\n const left = isTop ? firstRect.left : lastRect.left;\n const right = isTop ? firstRect.right : lastRect.right;\n const width = right - left;\n const height = bottom - top;\n return {\n top,\n bottom,\n left,\n right,\n width,\n height,\n x: left,\n y: top\n };\n }\n const isLeftSide = getSide(placement) === 'left';\n const maxRight = max(...clientRects.map(rect => rect.right));\n const minLeft = min(...clientRects.map(rect => rect.left));\n const measureRects = clientRects.filter(rect => isLeftSide ? rect.left === minLeft : rect.right === maxRight);\n const top = measureRects[0].top;\n const bottom = measureRects[measureRects.length - 1].bottom;\n const left = minLeft;\n const right = maxRight;\n const width = right - left;\n const height = bottom - top;\n return {\n top,\n bottom,\n left,\n right,\n width,\n height,\n x: left,\n y: top\n };\n }\n return fallback;\n }\n const resetRects = await platform.getElementRects({\n reference: {\n getBoundingClientRect\n },\n floating: elements.floating,\n strategy\n });\n if (rects.reference.x !== resetRects.reference.x || rects.reference.y !== resetRects.reference.y || rects.reference.width !== resetRects.reference.width || rects.reference.height !== resetRects.reference.height) {\n return {\n reset: {\n rects: resetRects\n }\n };\n }\n return {};\n }\n };\n};\n\n// For type backwards-compatibility, the `OffsetOptions` type was also\n// Derivable.\n\nasync function convertValueToCoords(state, options) {\n const {\n placement,\n platform,\n elements\n } = state;\n const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));\n const side = getSide(placement);\n const alignment = getAlignment(placement);\n const isVertical = getSideAxis(placement) === 'y';\n const mainAxisMulti = ['left', 'top'].includes(side) ? -1 : 1;\n const crossAxisMulti = rtl && isVertical ? -1 : 1;\n const rawValue = evaluate(options, state);\n let {\n mainAxis,\n crossAxis,\n alignmentAxis\n } = typeof rawValue === 'number' ? {\n mainAxis: rawValue,\n crossAxis: 0,\n alignmentAxis: null\n } : {\n mainAxis: 0,\n crossAxis: 0,\n alignmentAxis: null,\n ...rawValue\n };\n if (alignment && typeof alignmentAxis === 'number') {\n crossAxis = alignment === 'end' ? alignmentAxis * -1 : alignmentAxis;\n }\n return isVertical ? {\n x: crossAxis * crossAxisMulti,\n y: mainAxis * mainAxisMulti\n } : {\n x: mainAxis * mainAxisMulti,\n y: crossAxis * crossAxisMulti\n };\n}\n\n/**\n * Modifies the placement by translating the floating element along the\n * specified axes.\n * A number (shorthand for `mainAxis` or distance), or an axes configuration\n * object may be passed.\n * @see https://floating-ui.com/docs/offset\n */\nconst offset = function (options) {\n if (options === void 0) {\n options = 0;\n }\n return {\n name: 'offset',\n options,\n async fn(state) {\n var _middlewareData$offse, _middlewareData$arrow;\n const {\n x,\n y,\n placement,\n middlewareData\n } = state;\n const diffCoords = await convertValueToCoords(state, options);\n\n // If the placement is the same and the arrow caused an alignment offset\n // then we don't need to change the positioning coordinates.\n if (placement === ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse.placement) && (_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {\n return {};\n }\n return {\n x: x + diffCoords.x,\n y: y + diffCoords.y,\n data: {\n ...diffCoords,\n placement\n }\n };\n }\n };\n};\n\n/**\n * Optimizes the visibility of the floating element by shifting it in order to\n * keep it in view when it will overflow the clipping boundary.\n * @see https://floating-ui.com/docs/shift\n */\nconst shift = function (options) {\n if (options === void 0) {\n options = {};\n }\n return {\n name: 'shift',\n options,\n async fn(state) {\n const {\n x,\n y,\n placement\n } = state;\n const {\n mainAxis: checkMainAxis = true,\n crossAxis: checkCrossAxis = false,\n limiter = {\n fn: _ref => {\n let {\n x,\n y\n } = _ref;\n return {\n x,\n y\n };\n }\n },\n ...detectOverflowOptions\n } = evaluate(options, state);\n const coords = {\n x,\n y\n };\n const overflow = await detectOverflow(state, detectOverflowOptions);\n const crossAxis = getSideAxis(getSide(placement));\n const mainAxis = getOppositeAxis(crossAxis);\n let mainAxisCoord = coords[mainAxis];\n let crossAxisCoord = coords[crossAxis];\n if (checkMainAxis) {\n const minSide = mainAxis === 'y' ? 'top' : 'left';\n const maxSide = mainAxis === 'y' ? 'bottom' : 'right';\n const min = mainAxisCoord + overflow[minSide];\n const max = mainAxisCoord - overflow[maxSide];\n mainAxisCoord = clamp(min, mainAxisCoord, max);\n }\n if (checkCrossAxis) {\n const minSide = crossAxis === 'y' ? 'top' : 'left';\n const maxSide = crossAxis === 'y' ? 'bottom' : 'right';\n const min = crossAxisCoord + overflow[minSide];\n const max = crossAxisCoord - overflow[maxSide];\n crossAxisCoord = clamp(min, crossAxisCoord, max);\n }\n const limitedCoords = limiter.fn({\n ...state,\n [mainAxis]: mainAxisCoord,\n [crossAxis]: crossAxisCoord\n });\n return {\n ...limitedCoords,\n data: {\n x: limitedCoords.x - x,\n y: limitedCoords.y - y\n }\n };\n }\n };\n};\n/**\n * Built-in `limiter` that will stop `shift()` at a certain point.\n */\nconst limitShift = function (options) {\n if (options === void 0) {\n options = {};\n }\n return {\n options,\n fn(state) {\n const {\n x,\n y,\n placement,\n rects,\n middlewareData\n } = state;\n const {\n offset = 0,\n mainAxis: checkMainAxis = true,\n crossAxis: checkCrossAxis = true\n } = evaluate(options, state);\n const coords = {\n x,\n y\n };\n const crossAxis = getSideAxis(placement);\n const mainAxis = getOppositeAxis(crossAxis);\n let mainAxisCoord = coords[mainAxis];\n let crossAxisCoord = coords[crossAxis];\n const rawOffset = evaluate(offset, state);\n const computedOffset = typeof rawOffset === 'number' ? {\n mainAxis: rawOffset,\n crossAxis: 0\n } : {\n mainAxis: 0,\n crossAxis: 0,\n ...rawOffset\n };\n if (checkMainAxis) {\n const len = mainAxis === 'y' ? 'height' : 'width';\n const limitMin = rects.reference[mainAxis] - rects.floating[len] + computedOffset.mainAxis;\n const limitMax = rects.reference[mainAxis] + rects.reference[len] - computedOffset.mainAxis;\n if (mainAxisCoord < limitMin) {\n mainAxisCoord = limitMin;\n } else if (mainAxisCoord > limitMax) {\n mainAxisCoord = limitMax;\n }\n }\n if (checkCrossAxis) {\n var _middlewareData$offse, _middlewareData$offse2;\n const len = mainAxis === 'y' ? 'width' : 'height';\n const isOriginSide = ['top', 'left'].includes(getSide(placement));\n const limitMin = rects.reference[crossAxis] - rects.floating[len] + (isOriginSide ? ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse[crossAxis]) || 0 : 0) + (isOriginSide ? 0 : computedOffset.crossAxis);\n const limitMax = rects.reference[crossAxis] + rects.reference[len] + (isOriginSide ? 0 : ((_middlewareData$offse2 = middlewareData.offset) == null ? void 0 : _middlewareData$offse2[crossAxis]) || 0) - (isOriginSide ? computedOffset.crossAxis : 0);\n if (crossAxisCoord < limitMin) {\n crossAxisCoord = limitMin;\n } else if (crossAxisCoord > limitMax) {\n crossAxisCoord = limitMax;\n }\n }\n return {\n [mainAxis]: mainAxisCoord,\n [crossAxis]: crossAxisCoord\n };\n }\n };\n};\n\n/**\n * Provides data that allows you to change the size of the floating element —\n * for instance, prevent it from overflowing the clipping boundary or match the\n * width of the reference element.\n * @see https://floating-ui.com/docs/size\n */\nconst size = function (options) {\n if (options === void 0) {\n options = {};\n }\n return {\n name: 'size',\n options,\n async fn(state) {\n const {\n placement,\n rects,\n platform,\n elements\n } = state;\n const {\n apply = () => {},\n ...detectOverflowOptions\n } = evaluate(options, state);\n const overflow = await detectOverflow(state, detectOverflowOptions);\n const side = getSide(placement);\n const alignment = getAlignment(placement);\n const isYAxis = getSideAxis(placement) === 'y';\n const {\n width,\n height\n } = rects.floating;\n let heightSide;\n let widthSide;\n if (side === 'top' || side === 'bottom') {\n heightSide = side;\n widthSide = alignment === ((await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating))) ? 'start' : 'end') ? 'left' : 'right';\n } else {\n widthSide = side;\n heightSide = alignment === 'end' ? 'top' : 'bottom';\n }\n const overflowAvailableHeight = height - overflow[heightSide];\n const overflowAvailableWidth = width - overflow[widthSide];\n const noShift = !state.middlewareData.shift;\n let availableHeight = overflowAvailableHeight;\n let availableWidth = overflowAvailableWidth;\n if (isYAxis) {\n const maximumClippingWidth = width - overflow.left - overflow.right;\n availableWidth = alignment || noShift ? min(overflowAvailableWidth, maximumClippingWidth) : maximumClippingWidth;\n } else {\n const maximumClippingHeight = height - overflow.top - overflow.bottom;\n availableHeight = alignment || noShift ? min(overflowAvailableHeight, maximumClippingHeight) : maximumClippingHeight;\n }\n if (noShift && !alignment) {\n const xMin = max(overflow.left, 0);\n const xMax = max(overflow.right, 0);\n const yMin = max(overflow.top, 0);\n const yMax = max(overflow.bottom, 0);\n if (isYAxis) {\n availableWidth = width - 2 * (xMin !== 0 || xMax !== 0 ? xMin + xMax : max(overflow.left, overflow.right));\n } else {\n availableHeight = height - 2 * (yMin !== 0 || yMax !== 0 ? yMin + yMax : max(overflow.top, overflow.bottom));\n }\n }\n await apply({\n ...state,\n availableWidth,\n availableHeight\n });\n const nextDimensions = await platform.getDimensions(elements.floating);\n if (width !== nextDimensions.width || height !== nextDimensions.height) {\n return {\n reset: {\n rects: true\n }\n };\n }\n return {};\n }\n };\n};\n\nexport { arrow, autoPlacement, computePosition, detectOverflow, flip, hide, inline, limitShift, offset, shift, size };\n","import { rectToClientRect, autoPlacement as autoPlacement$1, shift as shift$1, flip as flip$1, size as size$1, hide as hide$1, arrow as arrow$1, inline as inline$1, limitShift as limitShift$1, computePosition as computePosition$1 } from '@floating-ui/core';\nexport { detectOverflow, offset } from '@floating-ui/core';\nimport { round, createCoords, max, min, floor } from '@floating-ui/utils';\nimport { getComputedStyle, isHTMLElement, isElement, getWindow, isWebKit, getDocumentElement, getNodeName, isOverflowElement, getNodeScroll, getOverflowAncestors, getParentNode, isLastTraversableNode, isContainingBlock, isTableElement, getContainingBlock } from '@floating-ui/utils/dom';\nexport { getOverflowAncestors } from '@floating-ui/utils/dom';\n\nfunction getCssDimensions(element) {\n const css = getComputedStyle(element);\n // In testing environments, the `width` and `height` properties are empty\n // strings for SVG elements, returning NaN. Fallback to `0` in this case.\n let width = parseFloat(css.width) || 0;\n let height = parseFloat(css.height) || 0;\n const hasOffset = isHTMLElement(element);\n const offsetWidth = hasOffset ? element.offsetWidth : width;\n const offsetHeight = hasOffset ? element.offsetHeight : height;\n const shouldFallback = round(width) !== offsetWidth || round(height) !== offsetHeight;\n if (shouldFallback) {\n width = offsetWidth;\n height = offsetHeight;\n }\n return {\n width,\n height,\n $: shouldFallback\n };\n}\n\nfunction unwrapElement(element) {\n return !isElement(element) ? element.contextElement : element;\n}\n\nfunction getScale(element) {\n const domElement = unwrapElement(element);\n if (!isHTMLElement(domElement)) {\n return createCoords(1);\n }\n const rect = domElement.getBoundingClientRect();\n const {\n width,\n height,\n $\n } = getCssDimensions(domElement);\n let x = ($ ? round(rect.width) : rect.width) / width;\n let y = ($ ? round(rect.height) : rect.height) / height;\n\n // 0, NaN, or Infinity should always fallback to 1.\n\n if (!x || !Number.isFinite(x)) {\n x = 1;\n }\n if (!y || !Number.isFinite(y)) {\n y = 1;\n }\n return {\n x,\n y\n };\n}\n\nconst noOffsets = /*#__PURE__*/createCoords(0);\nfunction getVisualOffsets(element) {\n const win = getWindow(element);\n if (!isWebKit() || !win.visualViewport) {\n return noOffsets;\n }\n return {\n x: win.visualViewport.offsetLeft,\n y: win.visualViewport.offsetTop\n };\n}\nfunction shouldAddVisualOffsets(element, isFixed, floatingOffsetParent) {\n if (isFixed === void 0) {\n isFixed = false;\n }\n if (!floatingOffsetParent || isFixed && floatingOffsetParent !== getWindow(element)) {\n return false;\n }\n return isFixed;\n}\n\nfunction getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {\n if (includeScale === void 0) {\n includeScale = false;\n }\n if (isFixedStrategy === void 0) {\n isFixedStrategy = false;\n }\n const clientRect = element.getBoundingClientRect();\n const domElement = unwrapElement(element);\n let scale = createCoords(1);\n if (includeScale) {\n if (offsetParent) {\n if (isElement(offsetParent)) {\n scale = getScale(offsetParent);\n }\n } else {\n scale = getScale(element);\n }\n }\n const visualOffsets = shouldAddVisualOffsets(domElement, isFixedStrategy, offsetParent) ? getVisualOffsets(domElement) : createCoords(0);\n let x = (clientRect.left + visualOffsets.x) / scale.x;\n let y = (clientRect.top + visualOffsets.y) / scale.y;\n let width = clientRect.width / scale.x;\n let height = clientRect.height / scale.y;\n if (domElement) {\n const win = getWindow(domElement);\n const offsetWin = offsetParent && isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;\n let currentWin = win;\n let currentIFrame = currentWin.frameElement;\n while (currentIFrame && offsetParent && offsetWin !== currentWin) {\n const iframeScale = getScale(currentIFrame);\n const iframeRect = currentIFrame.getBoundingClientRect();\n const css = getComputedStyle(currentIFrame);\n const left = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;\n const top = iframeRect.top + (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;\n x *= iframeScale.x;\n y *= iframeScale.y;\n width *= iframeScale.x;\n height *= iframeScale.y;\n x += left;\n y += top;\n currentWin = getWindow(currentIFrame);\n currentIFrame = currentWin.frameElement;\n }\n }\n return rectToClientRect({\n width,\n height,\n x,\n y\n });\n}\n\nconst topLayerSelectors = [':popover-open', ':modal'];\nfunction isTopLayer(floating) {\n return topLayerSelectors.some(selector => {\n try {\n return floating.matches(selector);\n } catch (e) {\n return false;\n }\n });\n}\n\nfunction convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {\n let {\n elements,\n rect,\n offsetParent,\n strategy\n } = _ref;\n const isFixed = strategy === 'fixed';\n const documentElement = getDocumentElement(offsetParent);\n const topLayer = elements ? isTopLayer(elements.floating) : false;\n if (offsetParent === documentElement || topLayer && isFixed) {\n return rect;\n }\n let scroll = {\n scrollLeft: 0,\n scrollTop: 0\n };\n let scale = createCoords(1);\n const offsets = createCoords(0);\n const isOffsetParentAnElement = isHTMLElement(offsetParent);\n if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {\n if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {\n scroll = getNodeScroll(offsetParent);\n }\n if (isHTMLElement(offsetParent)) {\n const offsetRect = getBoundingClientRect(offsetParent);\n scale = getScale(offsetParent);\n offsets.x = offsetRect.x + offsetParent.clientLeft;\n offsets.y = offsetRect.y + offsetParent.clientTop;\n }\n }\n return {\n width: rect.width * scale.x,\n height: rect.height * scale.y,\n x: rect.x * scale.x - scroll.scrollLeft * scale.x + offsets.x,\n y: rect.y * scale.y - scroll.scrollTop * scale.y + offsets.y\n };\n}\n\nfunction getClientRects(element) {\n return Array.from(element.getClientRects());\n}\n\nfunction getWindowScrollBarX(element) {\n // If <html> has a CSS width greater than the viewport, then this will be\n // incorrect for RTL.\n return getBoundingClientRect(getDocumentElement(element)).left + getNodeScroll(element).scrollLeft;\n}\n\n// Gets the entire size of the scrollable document area, even extending outside\n// of the `<html>` and `<body>` rect bounds if horizontally scrollable.\nfunction getDocumentRect(element) {\n const html = getDocumentElement(element);\n const scroll = getNodeScroll(element);\n const body = element.ownerDocument.body;\n const width = max(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);\n const height = max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);\n let x = -scroll.scrollLeft + getWindowScrollBarX(element);\n const y = -scroll.scrollTop;\n if (getComputedStyle(body).direction === 'rtl') {\n x += max(html.clientWidth, body.clientWidth) - width;\n }\n return {\n width,\n height,\n x,\n y\n };\n}\n\nfunction getViewportRect(element, strategy) {\n const win = getWindow(element);\n const html = getDocumentElement(element);\n const visualViewport = win.visualViewport;\n let width = html.clientWidth;\n let height = html.clientHeight;\n let x = 0;\n let y = 0;\n if (visualViewport) {\n width = visualViewport.width;\n height = visualViewport.height;\n const visualViewportBased = isWebKit();\n if (!visualViewportBased || visualViewportBased && strategy === 'fixed') {\n x = visualViewport.offsetLeft;\n y = visualViewport.offsetTop;\n }\n }\n return {\n width,\n height,\n x,\n y\n };\n}\n\n// Returns the inner client rect, subtracting scrollbars if present.\nfunction getInnerBoundingClientRect(element, strategy) {\n const clientRect = getBoundingClientRect(element, true, strategy === 'fixed');\n const top = clientRect.top + element.clientTop;\n const left = clientRect.left + element.clientLeft;\n const scale = isHTMLElement(element) ? getScale(element) : createCoords(1);\n const width = element.clientWidth * scale.x;\n const height = element.clientHeight * scale.y;\n const x = left * scale.x;\n const y = top * scale.y;\n return {\n width,\n height,\n x,\n y\n };\n}\nfunction getClientRectFromClippingAncestor(element, clippingAncestor, strategy) {\n let rect;\n if (clippingAncestor === 'viewport') {\n rect = getViewportRect(element, strategy);\n } else if (clippingAncestor === 'document') {\n rect = getDocumentRect(getDocumentElement(element));\n } else if (isElement(clippingAncestor)) {\n rect = getInnerBoundingClientRect(clippingAncestor, strategy);\n } else {\n const visualOffsets = getVisualOffsets(element);\n rect = {\n ...clippingAncestor,\n x: clippingAncestor.x - visualOffsets.x,\n y: clippingAncestor.y - visualOffsets.y\n };\n }\n return rectToClientRect(rect);\n}\nfunction hasFixedPositionAncestor(element, stopNode) {\n const parentNode = getParentNode(element);\n if (parentNode === stopNode || !isElement(parentNode) || isLastTraversableNode(parentNode)) {\n return false;\n }\n return getComputedStyle(parentNode).position === 'fixed' || hasFixedPositionAncestor(parentNode, stopNode);\n}\n\n// A \"clipping ancestor\" is an `overflow` element with the characteristic of\n// clipping (or hiding) child elements. This returns all clipping ancestors\n// of the given element up the tree.\nfunction getClippingElementAncestors(element, cache) {\n const cachedResult = cache.get(element);\n if (cachedResult) {\n return cachedResult;\n }\n let result = getOverflowAncestors(element, [], false).filter(el => isElement(el) && getNodeName(el) !== 'body');\n let currentContainingBlockComputedStyle = null;\n const elementIsFixed = getComputedStyle(element).position === 'fixed';\n let currentNode = elementIsFixed ? getParentNode(element) : element;\n\n // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block\n while (isElement(currentNode) && !isLastTraversableNode(currentNode)) {\n const computedStyle = getComputedStyle(currentNode);\n const currentNodeIsContaining = isContainingBlock(currentNode);\n if (!currentNodeIsContaining && computedStyle.position === 'fixed') {\n currentContainingBlockComputedStyle = null;\n }\n const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === 'static' && !!currentContainingBlockComputedStyle && ['absolute', 'fixed'].includes(currentContainingBlockComputedStyle.position) || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);\n if (shouldDropCurrentNode) {\n // Drop non-containing blocks.\n result = result.filter(ancestor => ancestor !== currentNode);\n } else {\n // Record last containing block for next iteration.\n currentContainingBlockComputedStyle = computedStyle;\n }\n currentNode = getParentNode(currentNode);\n }\n cache.set(element, result);\n return result;\n}\n\n// Gets the maximum area that the element is visible in due to any number of\n// clipping ancestors.\nfunction getClippingRect(_ref) {\n let {\n element,\n boundary,\n rootBoundary,\n strategy\n } = _ref;\n const elementClippingAncestors = boundary === 'clippingAncestors' ? getClippingElementAncestors(element, this._c) : [].concat(boundary);\n const clippingAncestors = [...elementClippingAncestors, rootBoundary];\n const firstClippingAncestor = clippingAncestors[0];\n const clippingRect = clippingAncestors.reduce((accRect, clippingAncestor) => {\n const rect = getClientRectFromClippingAncestor(element, clippingAncestor, strategy);\n accRect.top = max(rect.top, accRect.top);\n accRect.right = min(rect.right, accRect.right);\n accRect.bottom = min(rect.bottom, accRect.bottom);\n accRect.left = max(rect.left, accRect.left);\n return accRect;\n }, getClientRectFromClippingAncestor(element, firstClippingAncestor, strategy));\n return {\n width: clippingRect.right - clippingRect.left,\n height: clippingRect.bottom - clippingRect.top,\n x: clippingRect.left,\n y: clippingRect.top\n };\n}\n\nfunction getDimensions(element) {\n const {\n width,\n height\n } = getCssDimensions(element);\n return {\n width,\n height\n };\n}\n\nfunction getRectRelativeToOffsetParent(element, offsetParent, strategy) {\n const isOffsetParentAnElement = isHTMLElement(offsetParent);\n const documentElement = getDocumentElement(offsetParent);\n const isFixed = strategy === 'fixed';\n const rect = getBoundingClientRect(element, true, isFixed, offsetParent);\n let scroll = {\n scrollLeft: 0,\n scrollTop: 0\n };\n const offsets = createCoords(0);\n if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {\n if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {\n scroll = getNodeScroll(offsetParent);\n }\n if (isOffsetParentAnElement) {\n const offsetRect = getBoundingClientRect(offsetParent, true, isFixed, offsetParent);\n offsets.x = offsetRect.x + offsetParent.clientLeft;\n offsets.y = offsetRect.y + offsetParent.clientTop;\n } else if (documentElement) {\n offsets.x = getWindowScrollBarX(documentElement);\n }\n }\n const x = rect.left + scroll.scrollLeft - offsets.x;\n const y = rect.top + scroll.scrollTop - offsets.y;\n return {\n x,\n y,\n width: rect.width,\n height: rect.height\n };\n}\n\nfunction getTrueOffsetParent(element, polyfill) {\n if (!isHTMLElement(element) || getComputedStyle(element).position === 'fixed') {\n return null;\n }\n if (polyfill) {\n return polyfill(element);\n }\n return element.offsetParent;\n}\n\n// Gets the closest ancestor positioned element. Handles some edge cases,\n// such as table ancestors and cross browser bugs.\nfunction getOffsetParent(element, polyfill) {\n const window = getWindow(element);\n if (!isHTMLElement(element) || isTopLayer(element)) {\n return window;\n }\n let offsetParent = getTrueOffsetParent(element, polyfill);\n while (offsetParent && isTableElement(offsetParent) && getComputedStyle(offsetParent).position === 'static') {\n offsetParent = getTrueOffsetParent(offsetParent, polyfill);\n }\n if (offsetParent && (getNodeName(offsetParent) === 'html' || getNodeName(offsetParent) === 'body' && getComputedStyle(offsetParent).position === 'static' && !isContainingBlock(offsetParent))) {\n return window;\n }\n return offsetParent || getContainingBlock(element) || window;\n}\n\nconst getElementRects = async function (data) {\n const getOffsetParentFn = this.getOffsetParent || getOffsetParent;\n const getDimensionsFn = this.getDimensions;\n return {\n reference: getRectRelativeToOffsetParent(data.reference, await getOffsetParentFn(data.floating), data.strategy),\n floating: {\n x: 0,\n y: 0,\n ...(await getDimensionsFn(data.floating))\n }\n };\n};\n\nfunction isRTL(element) {\n return getComputedStyle(element).direction === 'rtl';\n}\n\nconst platform = {\n convertOffsetParentRelativeRectToViewportRelativeRect,\n getDocumentElement,\n getClippingRect,\n getOffsetParent,\n getElementRects,\n getClientRects,\n getDimensions,\n getScale,\n isElement,\n isRTL\n};\n\n// https://samthor.au/2021/observing-dom/\nfunction observeMove(element, onMove) {\n let io = null;\n let timeoutId;\n const root = getDocumentElement(element);\n function cleanup() {\n var _io;\n clearTimeout(timeoutId);\n (_io = io) == null || _io.disconnect();\n io = null;\n }\n function refresh(skip, threshold) {\n if (skip === void 0) {\n skip = false;\n }\n if (threshold === void 0) {\n threshold = 1;\n }\n cleanup();\n const {\n left,\n top,\n width,\n height\n } = element.getBoundingClientRect();\n if (!skip) {\n onMove();\n }\n if (!width || !height) {\n return;\n }\n const insetTop = floor(top);\n const insetRight = floor(root.clientWidth - (left + width));\n const insetBottom = floor(root.clientHeight - (top + height));\n const insetLeft = floor(left);\n const rootMargin = -insetTop + \"px \" + -insetRight + \"px \" + -insetBottom + \"px \" + -insetLeft + \"px\";\n const options = {\n rootMargin,\n threshold: max(0, min(1, threshold)) || 1\n };\n let isFirstUpdate = true;\n function handleObserve(entries) {\n const ratio = entries[0].intersectionRatio;\n if (ratio !== threshold) {\n if (!isFirstUpdate) {\n return refresh();\n }\n if (!ratio) {\n timeoutId = setTimeout(() => {\n refresh(false, 1e-7);\n }, 100);\n } else {\n refresh(false, ratio);\n }\n }\n isFirstUpdate = false;\n }\n\n // Older browsers don't support a `document` as the root and will throw an\n // error.\n try {\n io = new IntersectionObserver(handleObserve, {\n ...options,\n // Handle <iframe>s\n root: root.ownerDocument\n });\n } catch (e) {\n io = new IntersectionObserver(handleObserve, options);\n }\n io.observe(element);\n }\n refresh(true);\n return cleanup;\n}\n\n/**\n * Automatically updates the position of the floating element when necessary.\n * Should only be called when the floating element is mounted on the DOM or\n * visible on the screen.\n * @returns cleanup function that should be invoked when the floating element is\n * removed from the DOM or hidden from the screen.\n * @see https://floating-ui.com/docs/autoUpdate\n */\nfunction autoUpdate(reference, floating, update, options) {\n if (options === void 0) {\n options = {};\n }\n const {\n ancestorScroll = true,\n ancestorResize = true,\n elementResize = typeof ResizeObserver === 'function',\n layoutShift = typeof IntersectionObserver === 'function',\n animationFrame = false\n } = options;\n const referenceEl = unwrapElement(reference);\n const ancestors = ancestorScroll || ancestorResize ? [...(referenceEl ? getOverflowAncestors(referenceEl) : []), ...getOverflowAncestors(floating)] : [];\n ancestors.forEach(ancestor => {\n ancestorScroll && ancestor.addEventListener('scroll', update, {\n passive: true\n });\n ancestorResize && ancestor.addEventListener('resize', update);\n });\n const cleanupIo = referenceEl && layoutShift ? observeMove(referenceEl, update) : null;\n let reobserveFrame = -1;\n let resizeObserver = null;\n if (elementResize) {\n resizeObserver = new ResizeObserver(_ref => {\n let [firstEntry] = _ref;\n if (firstEntry && firstEntry.target === referenceEl && resizeObserver) {\n // Prevent update loops when using the `size` middleware.\n // https://github.com/floating-ui/floating-ui/issues/1740\n resizeObserver.unobserve(floating);\n cancelAnimationFrame(reobserveFrame);\n reobserveFrame = requestAnimationFrame(() => {\n var _resizeObserver;\n (_resizeObserver = resizeObserver) == null || _resizeObserver.observe(floating);\n });\n }\n update();\n });\n if (referenceEl && !animationFrame) {\n resizeObserver.observe(referenceEl);\n }\n resizeObserver.observe(floating);\n }\n let frameId;\n let prevRefRect = animationFrame ? getBoundingClientRect(reference) : null;\n if (animationFrame) {\n frameLoop();\n }\n function frameLoop() {\n const nextRefRect = getBoundingClientRect(reference);\n if (prevRefRect && (nextRefRect.x !== prevRefRect.x || nextRefRect.y !== prevRefRect.y || nextRefRect.width !== prevRefRect.width || nextRefRect.height !== prevRefRect.height)) {\n update();\n }\n prevRefRect = nextRefRect;\n frameId = requestAnimationFrame(frameLoop);\n }\n update();\n return () => {\n var _resizeObserver2;\n ancestors.forEach(ancestor => {\n ancestorScroll && ancestor.removeEventListener('scroll', update);\n ancestorResize && ancestor.removeEventListener('resize', update);\n });\n cleanupIo == null || cleanupIo();\n (_resizeObserver2 = resizeObserver) == null || _resizeObserver2.disconnect();\n resizeObserver = null;\n if (animationFrame) {\n cancelAnimationFrame(frameId);\n }\n };\n}\n\n/**\n * Optimizes the visibility of the floating element by choosing the placement\n * that has the most space available automatically, without needing to specify a\n * preferred placement. Alternative to `flip`.\n * @see https://floating-ui.com/docs/autoPlacement\n */\nconst autoPlacement = autoPlacement$1;\n\n/**\n * Optimizes the visibility of the floating element by shifting it in order to\n * keep it in view when it will overflow the clipping boundary.\n * @see https://floating-ui.com/docs/shift\n */\nconst shift = shift$1;\n\n/**\n * Optimizes the visibility of the floating element by flipping the `placement`\n * in order to keep it in view when the preferred placement(s) will overflow the\n * clipping boundary. Alternative to `autoPlacement`.\n * @see https://floating-ui.com/docs/flip\n */\nconst flip = flip$1;\n\n/**\n * Provides data that allows you to change the size of the floating element —\n * for instance, prevent it from overflowing the clipping boundary or match the\n * width of the reference element.\n * @see https://floating-ui.com/docs/size\n */\nconst size = size$1;\n\n/**\n * Provides data to hide the floating element in applicable situations, such as\n * when it is not in the same clipping context as the reference element.\n * @see https://floating-ui.com/docs/hide\n */\nconst hide = hide$1;\n\n/**\n * Provides data to position an inner element of the floating element so that it\n * appears centered to the reference element.\n * @see https://floating-ui.com/docs/arrow\n */\nconst arrow = arrow$1;\n\n/**\n * Provides improved positioning for inline reference elements that can span\n * over multiple lines, such as hyperlinks or range selections.\n * @see https://floating-ui.com/docs/inline\n */\nconst inline = inline$1;\n\n/**\n * Built-in `limiter` that will stop `shift()` at a certain point.\n */\nconst limitShift = limitShift$1;\n\n/**\n * Computes the `x` and `y` coordinates that will place the floating element\n * next to a given reference element.\n */\nconst computePosition = (reference, floating, options) => {\n // This caches the expensive `getClippingElementAncestors` function so that\n // multiple lifecycle resets re-use the same result. It only lives for a\n // single call. If other functions become expensive, we can add them as well.\n const cache = new Map();\n const mergedOptions = {\n platform,\n ...options\n };\n const platformWithCache = {\n ...mergedOptions.platform,\n _c: cache\n };\n return computePosition$1(reference, floating, {\n ...mergedOptions,\n platform: platformWithCache\n });\n};\n\nexport { arrow, autoPlacement, autoUpdate, computePosition, flip, hide, inline, limitShift, platform, shift, size };\n","import { arrow as arrow$1, computePosition } from '@floating-ui/dom';\nexport { autoPlacement, autoUpdate, computePosition, detectOverflow, flip, getOverflowAncestors, hide, inline, limitShift, offset, platform, shift, size } from '@floating-ui/dom';\nimport * as React from 'react';\nimport { useLayoutEffect, useEffect } from 'react';\nimport * as ReactDOM from 'react-dom';\n\n/**\n * Provides data to position an inner element of the floating element so that it\n * appears centered to the reference element.\n * This wraps the core `arrow` middleware to allow React refs as the element.\n * @see https://floating-ui.com/docs/arrow\n */\nconst arrow = options => {\n function isRef(value) {\n return {}.hasOwnProperty.call(value, 'current');\n }\n return {\n name: 'arrow',\n options,\n fn(state) {\n const {\n element,\n padding\n } = typeof options === 'function' ? options(state) : options;\n if (element && isRef(element)) {\n if (element.current != null) {\n return arrow$1({\n element: element.current,\n padding\n }).fn(state);\n }\n return {};\n }\n if (element) {\n return arrow$1({\n element,\n padding\n }).fn(state);\n }\n return {};\n }\n };\n};\n\nvar index = typeof document !== 'undefined' ? useLayoutEffect : useEffect;\n\n// Fork of `fast-deep-equal` that only does the comparisons we need and compares\n// functions\nfunction deepEqual(a, b) {\n if (a === b) {\n return true;\n }\n if (typeof a !== typeof b) {\n return false;\n }\n if (typeof a === 'function' && a.toString() === b.toString()) {\n return true;\n }\n let length;\n let i;\n let keys;\n if (a && b && typeof a === 'object') {\n if (Array.isArray(a)) {\n length = a.length;\n if (length !== b.length) return false;\n for (i = length; i-- !== 0;) {\n if (!deepEqual(a[i], b[i])) {\n return false;\n }\n }\n return true;\n }\n keys = Object.keys(a);\n length = keys.length;\n if (length !== Object.keys(b).length) {\n return false;\n }\n for (i = length; i-- !== 0;) {\n if (!{}.hasOwnProperty.call(b, keys[i])) {\n return false;\n }\n }\n for (i = length; i-- !== 0;) {\n const key = keys[i];\n if (key === '_owner' && a.$$typeof) {\n continue;\n }\n if (!deepEqual(a[key], b[key])) {\n return false;\n }\n }\n return true;\n }\n\n // biome-ignore lint/suspicious/noSelfCompare: in source\n return a !== a && b !== b;\n}\n\nfunction getDPR(element) {\n if (typeof window === 'undefined') {\n return 1;\n }\n const win = element.ownerDocument.defaultView || window;\n return win.devicePixelRatio || 1;\n}\n\nfunction roundByDPR(element, value) {\n const dpr = getDPR(element);\n return Math.round(value * dpr) / dpr;\n}\n\nfunction useLatestRef(value) {\n const ref = React.useRef(value);\n index(() => {\n ref.current = value;\n });\n return ref;\n}\n\n/**\n * Provides data to position a floating element.\n * @see https://floating-ui.com/docs/useFloating\n */\nfunction useFloating(options) {\n if (options === void 0) {\n options = {};\n }\n const {\n placement = 'bottom',\n strategy = 'absolute',\n middleware = [],\n platform,\n elements: {\n reference: externalReference,\n floating: externalFloating\n } = {},\n transform = true,\n whileElementsMounted,\n open\n } = options;\n const [data, setData] = React.useState({\n x: 0,\n y: 0,\n strategy,\n placement,\n middlewareData: {},\n isPositioned: false\n });\n const [latestMiddleware, setLatestMiddleware] = React.useState(middleware);\n if (!deepEqual(latestMiddleware, middleware)) {\n setLatestMiddleware(middleware);\n }\n const [_reference, _setReference] = React.useState(null);\n const [_floating, _setFloating] = React.useState(null);\n const setReference = React.useCallback(node => {\n if (node !== referenceRef.current) {\n referenceRef.current = node;\n _setReference(node);\n }\n }, []);\n const setFloating = React.useCallback(node => {\n if (node !== floatingRef.current) {\n floatingRef.current = node;\n _setFloating(node);\n }\n }, []);\n const referenceEl = externalReference || _reference;\n const floatingEl = externalFloating || _floating;\n const referenceRef = React.useRef(null);\n const floatingRef = React.useRef(null);\n const dataRef = React.useRef(data);\n const hasWhileElementsMounted = whileElementsMounted != null;\n const whileElementsMountedRef = useLatestRef(whileElementsMounted);\n const platformRef = useLatestRef(platform);\n const update = React.useCallback(() => {\n if (!referenceRef.current || !floatingRef.current) {\n return;\n }\n const config = {\n placement,\n strategy,\n middleware: latestMiddleware\n };\n if (platformRef.current) {\n config.platform = platformRef.current;\n }\n computePosition(referenceRef.current, floatingRef.current, config).then(data => {\n const fullData = {\n ...data,\n isPositioned: true\n };\n if (isMountedRef.current && !deepEqual(dataRef.current, fullData)) {\n dataRef.current = fullData;\n ReactDOM.flushSync(() => {\n setData(fullData);\n });\n }\n });\n }, [latestMiddleware, placement, strategy, platformRef]);\n index(() => {\n if (open === false && dataRef.current.isPositioned) {\n dataRef.current.isPositioned = false;\n setData(data => ({\n ...data,\n isPositioned: false\n }));\n }\n }, [open]);\n const isMountedRef = React.useRef(false);\n index(() => {\n isMountedRef.current = true;\n return () => {\n isMountedRef.current = false;\n };\n }, []);\n\n // biome-ignore lint/correctness/useExhaustiveDependencies: `hasWhileElementsMounted` is intentionally included.\n index(() => {\n if (referenceEl) referenceRef.current = referenceEl;\n if (floatingEl) floatingRef.current = floatingEl;\n if (referenceEl && floatingEl) {\n if (whileElementsMountedRef.current) {\n return whileElementsMountedRef.current(referenceEl, floatingEl, update);\n }\n update();\n }\n }, [referenceEl, floatingEl, update, whileElementsMountedRef, hasWhileElementsMounted]);\n const refs = React.useMemo(() => ({\n reference: referenceRef,\n floating: floatingRef,\n setReference,\n setFloating\n }), [setReference, setFloating]);\n const elements = React.useMemo(() => ({\n reference: referenceEl,\n floating: floatingEl\n }), [referenceEl, floatingEl]);\n const floatingStyles = React.useMemo(() => {\n const initialStyles = {\n position: strategy,\n left: 0,\n top: 0\n };\n if (!elements.floating) {\n return initialStyles;\n }\n const x = roundByDPR(elements.floating, data.x);\n const y = roundByDPR(elements.floating, data.y);\n if (transform) {\n return {\n ...initialStyles,\n transform: \"translate(\" + x + \"px, \" + y + \"px)\",\n ...(getDPR(elements.floating) >= 1.5 && {\n willChange: 'transform'\n })\n };\n }\n return {\n position: strategy,\n left: x,\n top: y\n };\n }, [strategy, transform, elements.floating, data.x, data.y]);\n return React.useMemo(() => ({\n ...data,\n update,\n refs,\n elements,\n floatingStyles\n }), [data, update, refs, elements, floatingStyles]);\n}\n\nexport { arrow, useFloating };\n","/*!\n* tabbable 6.2.0\n* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE\n*/\n// NOTE: separate `:not()` selectors has broader browser support than the newer\n// `:not([inert], [inert] *)` (Feb 2023)\n// CAREFUL: JSDom does not support `:not([inert] *)` as a selector; using it causes\n// the entire query to fail, resulting in no nodes found, which will break a lot\n// of things... so we have to rely on JS to identify nodes inside an inert container\nvar candidateSelectors = ['input:not([inert])', 'select:not([inert])', 'textarea:not([inert])', 'a[href]:not([inert])', 'button:not([inert])', '[tabindex]:not(slot):not([inert])', 'audio[controls]:not([inert])', 'video[controls]:not([inert])', '[contenteditable]:not([contenteditable=\"false\"]):not([inert])', 'details>summary:first-of-type:not([inert])', 'details:not([inert])'];\nvar candidateSelector = /* #__PURE__ */candidateSelectors.join(',');\nvar NoElement = typeof Element === 'undefined';\nvar matches = NoElement ? function () {} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector;\nvar getRootNode = !NoElement && Element.prototype.getRootNode ? function (element) {\n var _element$getRootNode;\n return element === null || element === void 0 ? void 0 : (_element$getRootNode = element.getRootNode) === null || _element$getRootNode === void 0 ? void 0 : _element$getRootNode.call(element);\n} : function (element) {\n return element === null || element === void 0 ? void 0 : element.ownerDocument;\n};\n\n/**\n * Determines if a node is inert or in an inert ancestor.\n * @param {Element} [node]\n * @param {boolean} [lookUp] If true and `node` is not inert, looks up at ancestors to\n * see if any of them are inert. If false, only `node` itself is considered.\n * @returns {boolean} True if inert itself or by way of being in an inert ancestor.\n * False if `node` is falsy.\n */\nvar isInert = function isInert(node, lookUp) {\n var _node$getAttribute;\n if (lookUp === void 0) {\n lookUp = true;\n }\n // CAREFUL: JSDom does not support inert at all, so we can't use the `HTMLElement.inert`\n // JS API property; we have to check the attribute, which can either be empty or 'true';\n // if it's `null` (not specified) or 'false', it's an active element\n var inertAtt = node === null || node === void 0 ? void 0 : (_node$getAttribute = node.getAttribute) === null || _node$getAttribute === void 0 ? void 0 : _node$getAttribute.call(node, 'inert');\n var inert = inertAtt === '' || inertAtt === 'true';\n\n // NOTE: this could also be handled with `node.matches('[inert], :is([inert] *)')`\n // if it weren't for `matches()` not being a function on shadow roots; the following\n // code works for any kind of node\n // CAREFUL: JSDom does not appear to support certain selectors like `:not([inert] *)`\n // so it likely would not support `:is([inert] *)` either...\n var result = inert || lookUp && node && isInert(node.parentNode); // recursive\n\n return result;\n};\n\n/**\n * Determines if a node's content is editable.\n * @param {Element} [node]\n * @returns True if it's content-editable; false if it's not or `node` is falsy.\n */\nvar isContentEditable = function isContentEditable(node) {\n var _node$getAttribute2;\n // CAREFUL: JSDom does not support the `HTMLElement.isContentEditable` API so we have\n // to use the attribute directly to check for this, which can either be empty or 'true';\n // if it's `null` (not specified) or 'false', it's a non-editable element\n var attValue = node === null || node === void 0 ? void 0 : (_node$getAttribute2 = node.getAttribute) === null || _node$getAttribute2 === void 0 ? void 0 : _node$getAttribute2.call(node, 'contenteditable');\n return attValue === '' || attValue === 'true';\n};\n\n/**\n * @param {Element} el container to check in\n * @param {boolean} includeContainer add container to check\n * @param {(node: Element) => boolean} filter filter candidates\n * @returns {Element[]}\n */\nvar getCandidates = function getCandidates(el, includeContainer, filter) {\n // even if `includeContainer=false`, we still have to check it for inertness because\n // if it's inert, all its children are inert\n if (isInert(el)) {\n return [];\n }\n var candidates = Array.prototype.slice.apply(el.querySelectorAll(candidateSelector));\n if (includeContainer && matches.call(el, candidateSelector)) {\n candidates.unshift(el);\n }\n candidates = candidates.filter(filter);\n return candidates;\n};\n\n/**\n * @callback GetShadowRoot\n * @param {Element} element to check for shadow root\n * @returns {ShadowRoot|boolean} ShadowRoot if available or boolean indicating if a shadowRoot is attached but not available.\n */\n\n/**\n * @callback ShadowRootFilter\n * @param {Element} shadowHostNode the element which contains shadow content\n * @returns {boolean} true if a shadow root could potentially contain valid candidates.\n */\n\n/**\n * @typedef {Object} CandidateScope\n * @property {Element} scopeParent contains inner candidates\n * @property {Element[]} candidates list of candidates found in the scope parent\n */\n\n/**\n * @typedef {Object} IterativeOptions\n * @property {GetShadowRoot|boolean} getShadowRoot true if shadow support is enabled; falsy if not;\n * if a function, implies shadow support is enabled and either returns the shadow root of an element\n * or a boolean stating if it has an undisclosed shadow root\n * @property {(node: Element) => boolean} filter filter candidates\n * @property {boolean} flatten if true then result will flatten any CandidateScope into the returned list\n * @property {ShadowRootFilter} shadowRootFilter filter shadow roots;\n */\n\n/**\n * @param {Element[]} elements list of element containers to match candidates from\n * @param {boolean} includeContainer add container list to check\n * @param {IterativeOptions} options\n * @returns {Array.<Element|CandidateScope>}\n */\nvar getCandidatesIteratively = function getCandidatesIteratively(elements, includeContainer, options) {\n var candidates = [];\n var elementsToCheck = Array.from(elements);\n while (elementsToCheck.length) {\n var element = elementsToCheck.shift();\n if (isInert(element, false)) {\n // no need to look up since we're drilling down\n // anything inside this container will also be inert\n continue;\n }\n if (element.tagName === 'SLOT') {\n // add shadow dom slot scope (slot itself cannot be focusable)\n var assigned = element.assignedElements();\n var content = assigned.length ? assigned : element.children;\n var nestedCandidates = getCandidatesIteratively(content, true, options);\n if (options.flatten) {\n candidates.push.apply(candidates, nestedCandidates);\n } else {\n candidates.push({\n scopeParent: element,\n candidates: nestedCandidates\n });\n }\n } else {\n // check candidate element\n var validCandidate = matches.call(element, candidateSelector);\n if (validCandidate && options.filter(element) && (includeContainer || !elements.includes(element))) {\n candidates.push(element);\n }\n\n // iterate over shadow content if possible\n var shadowRoot = element.shadowRoot ||\n // check for an undisclosed shadow\n typeof options.getShadowRoot === 'function' && options.getShadowRoot(element);\n\n // no inert look up because we're already drilling down and checking for inertness\n // on the way down, so all containers to this root node should have already been\n // vetted as non-inert\n var validShadowRoot = !isInert(shadowRoot, false) && (!options.shadowRootFilter || options.shadowRootFilter(element));\n if (shadowRoot && validShadowRoot) {\n // add shadow dom scope IIF a shadow root node was given; otherwise, an undisclosed\n // shadow exists, so look at light dom children as fallback BUT create a scope for any\n // child candidates found because they're likely slotted elements (elements that are\n // children of the web component element (which has the shadow), in the light dom, but\n // slotted somewhere _inside_ the undisclosed shadow) -- the scope is created below,\n // _after_ we return from this recursive call\n var _nestedCandidates = getCandidatesIteratively(shadowRoot === true ? element.children : shadowRoot.children, true, options);\n if (options.flatten) {\n candidates.push.apply(candidates, _nestedCandidates);\n } else {\n candidates.push({\n scopeParent: element,\n candidates: _nestedCandidates\n });\n }\n } else {\n // there's not shadow so just dig into the element's (light dom) children\n // __without__ giving the element special scope treatment\n elementsToCheck.unshift.apply(elementsToCheck, element.children);\n }\n }\n }\n return candidates;\n};\n\n/**\n * @private\n * Determines if the node has an explicitly specified `tabindex` attribute.\n * @param {HTMLElement} node\n * @returns {boolean} True if so; false if not.\n */\nvar hasTabIndex = function hasTabIndex(node) {\n return !isNaN(parseInt(node.getAttribute('tabindex'), 10));\n};\n\n/**\n * Determine the tab index of a given node.\n * @param {HTMLElement} node\n * @returns {number} Tab order (negative, 0, or positive number).\n * @throws {Error} If `node` is falsy.\n */\nvar getTabIndex = function getTabIndex(node) {\n if (!node) {\n throw new Error('No node provided');\n }\n if (node.tabIndex < 0) {\n // in Chrome, <details/>, <audio controls/> and <video controls/> elements get a default\n // `tabIndex` of -1 when the 'tabindex' attribute isn't specified in the DOM,\n // yet they are still part of the regular tab order; in FF, they get a default\n // `tabIndex` of 0; since Chrome still puts those elements in the regular tab\n // order, consider their tab index to be 0.\n // Also browsers do not return `tabIndex` correctly for contentEditable nodes;\n // so if they don't have a tabindex attribute specifically set, assume it's 0.\n if ((/^(AUDIO|VIDEO|DETAILS)$/.test(node.tagName) || isContentEditable(node)) && !hasTabIndex(node)) {\n return 0;\n }\n }\n return node.tabIndex;\n};\n\n/**\n * Determine the tab index of a given node __for sort order purposes__.\n * @param {HTMLElement} node\n * @param {boolean} [isScope] True for a custom element with shadow root or slot that, by default,\n * has tabIndex -1, but needs to be sorted by document order in order for its content to be\n * inserted into the correct sort position.\n * @returns {number} Tab order (negative, 0, or positive number).\n */\nvar getSortOrderTabIndex = function getSortOrderTabIndex(node, isScope) {\n var tabIndex = getTabIndex(node);\n if (tabIndex < 0 && isScope && !hasTabIndex(node)) {\n return 0;\n }\n return tabIndex;\n};\nvar sortOrderedTabbables = function sortOrderedTabbables(a, b) {\n return a.tabIndex === b.tabIndex ? a.documentOrder - b.documentOrder : a.tabIndex - b.tabIndex;\n};\nvar isInput = function isInput(node) {\n return node.tagName === 'INPUT';\n};\nvar isHiddenInput = function isHiddenInput(node) {\n return isInput(node) && node.type === 'hidden';\n};\nvar isDetailsWithSummary = function isDetailsWithSummary(node) {\n var r = node.tagName === 'DETAILS' && Array.prototype.slice.apply(node.children).some(function (child) {\n return child.tagName === 'SUMMARY';\n });\n return r;\n};\nvar getCheckedRadio = function getCheckedRadio(nodes, form) {\n for (var i = 0; i < nodes.length; i++) {\n if (nodes[i].checked && nodes[i].form === form) {\n return nodes[i];\n }\n }\n};\nvar isTabbableRadio = function isTabbableRadio(node) {\n if (!node.name) {\n return true;\n }\n var radioScope = node.form || getRootNode(node);\n var queryRadios = function queryRadios(name) {\n return radioScope.querySelectorAll('input[type=\"radio\"][name=\"' + name + '\"]');\n };\n var radioSet;\n if (typeof window !== 'undefined' && typeof window.CSS !== 'undefined' && typeof window.CSS.escape === 'function') {\n radioSet = queryRadios(window.CSS.escape(node.name));\n } else {\n try {\n radioSet = queryRadios(node.name);\n } catch (err) {\n // eslint-disable-next-line no-console\n console.error('Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s', err.message);\n return false;\n }\n }\n var checked = getCheckedRadio(radioSet, node.form);\n return !checked || checked === node;\n};\nvar isRadio = function isRadio(node) {\n return isInput(node) && node.type === 'radio';\n};\nvar isNonTabbableRadio = function isNonTabbableRadio(node) {\n return isRadio(node) && !isTabbableRadio(node);\n};\n\n// determines if a node is ultimately attached to the window's document\nvar isNodeAttached = function isNodeAttached(node) {\n var _nodeRoot;\n // The root node is the shadow root if the node is in a shadow DOM; some document otherwise\n // (but NOT _the_ document; see second 'If' comment below for more).\n // If rootNode is shadow root, it'll have a host, which is the element to which the shadow\n // is attached, and the one we need to check if it's in the document or not (because the\n // shadow, and all nodes it contains, is never considered in the document since shadows\n // behave like self-contained DOMs; but if the shadow's HOST, which is part of the document,\n // is hidden, or is not in the document itself but is detached, it will affect the shadow's\n // visibility, including all the nodes it contains). The host could be any normal node,\n // or a custom element (i.e. web component). Either way, that's the one that is considered\n // part of the document, not the shadow root, nor any of its children (i.e. the node being\n // tested).\n // To further complicate things, we have to look all the way up until we find a shadow HOST\n // that is attached (or find none) because the node might be in nested shadows...\n // If rootNode is not a shadow root, it won't have a host, and so rootNode should be the\n // document (per the docs) and while it's a Document-type object, that document does not\n // appear to be the same as the node's `ownerDocument` for some reason, so it's safer\n // to ignore the rootNode at this point, and use `node.ownerDocument`. Otherwise,\n // using `rootNode.contains(node)` will _always_ be true we'll get false-positives when\n // node is actually detached.\n // NOTE: If `nodeRootHost` or `node` happens to be the `document` itself (which is possible\n // if a tabbable/focusable node was quickly added to the DOM, focused, and then removed\n // from the DOM as in https://github.com/focus-trap/focus-trap-react/issues/905), then\n // `ownerDocument` will be `null`, hence the optional chaining on it.\n var nodeRoot = node && getRootNode(node);\n var nodeRootHost = (_nodeRoot = nodeRoot) === null || _nodeRoot === void 0 ? void 0 : _nodeRoot.host;\n\n // in some cases, a detached node will return itself as the root instead of a document or\n // shadow root object, in which case, we shouldn't try to look further up the host chain\n var attached = false;\n if (nodeRoot && nodeRoot !== node) {\n var _nodeRootHost, _nodeRootHost$ownerDo, _node$ownerDocument;\n attached = !!((_nodeRootHost = nodeRootHost) !== null && _nodeRootHost !== void 0 && (_nodeRootHost$ownerDo = _nodeRootHost.ownerDocument) !== null && _nodeRootHost$ownerDo !== void 0 && _nodeRootHost$ownerDo.contains(nodeRootHost) || node !== null && node !== void 0 && (_node$ownerDocument = node.ownerDocument) !== null && _node$ownerDocument !== void 0 && _node$ownerDocument.contains(node));\n while (!attached && nodeRootHost) {\n var _nodeRoot2, _nodeRootHost2, _nodeRootHost2$ownerD;\n // since it's not attached and we have a root host, the node MUST be in a nested shadow DOM,\n // which means we need to get the host's host and check if that parent host is contained\n // in (i.e. attached to) the document\n nodeRoot = getRootNode(nodeRootHost);\n nodeRootHost = (_nodeRoot2 = nodeRoot) === null || _nodeRoot2 === void 0 ? void 0 : _nodeRoot2.host;\n attached = !!((_nodeRootHost2 = nodeRootHost) !== null && _nodeRootHost2 !== void 0 && (_nodeRootHost2$ownerD = _nodeRootHost2.ownerDocument) !== null && _nodeRootHost2$ownerD !== void 0 && _nodeRootHost2$ownerD.contains(nodeRootHost));\n }\n }\n return attached;\n};\nvar isZeroArea = function isZeroArea(node) {\n var _node$getBoundingClie = node.getBoundingClientRect(),\n width = _node$getBoundingClie.width,\n height = _node$getBoundingClie.height;\n return width === 0 && height === 0;\n};\nvar isHidden = function isHidden(node, _ref) {\n var displayCheck = _ref.displayCheck,\n getShadowRoot = _ref.getShadowRoot;\n // NOTE: visibility will be `undefined` if node is detached from the document\n // (see notes about this further down), which means we will consider it visible\n // (this is legacy behavior from a very long way back)\n // NOTE: we check this regardless of `displayCheck=\"none\"` because this is a\n // _visibility_ check, not a _display_ check\n if (getComputedStyle(node).visibility === 'hidden') {\n return true;\n }\n var isDirectSummary = matches.call(node, 'details>summary:first-of-type');\n var nodeUnderDetails = isDirectSummary ? node.parentElement : node;\n if (matches.call(nodeUnderDetails, 'details:not([open]) *')) {\n return true;\n }\n if (!displayCheck || displayCheck === 'full' || displayCheck === 'legacy-full') {\n if (typeof getShadowRoot === 'function') {\n // figure out if we should consider the node to be in an undisclosed shadow and use the\n // 'non-zero-area' fallback\n var originalNode = node;\n while (node) {\n var parentElement = node.parentElement;\n var rootNode = getRootNode(node);\n if (parentElement && !parentElement.shadowRoot && getShadowRoot(parentElement) === true // check if there's an undisclosed shadow\n ) {\n // node has an undisclosed shadow which means we can only treat it as a black box, so we\n // fall back to a non-zero-area test\n return isZeroArea(node);\n } else if (node.assignedSlot) {\n // iterate up slot\n node = node.assignedSlot;\n } else if (!parentElement && rootNode !== node.ownerDocument) {\n // cross shadow boundary\n node = rootNode.host;\n } else {\n // iterate up normal dom\n node = parentElement;\n }\n }\n node = originalNode;\n }\n // else, `getShadowRoot` might be true, but all that does is enable shadow DOM support\n // (i.e. it does not also presume that all nodes might have undisclosed shadows); or\n // it might be a falsy value, which means shadow DOM support is disabled\n\n // Since we didn't find it sitting in an undisclosed shadow (or shadows are disabled)\n // now we can just test to see if it would normally be visible or not, provided it's\n // attached to the main document.\n // NOTE: We must consider case where node is inside a shadow DOM and given directly to\n // `isTabbable()` or `isFocusable()` -- regardless of `getShadowRoot` option setting.\n\n if (isNodeAttached(node)) {\n // this works wherever the node is: if there's at least one client rect, it's\n // somehow displayed; it also covers the CSS 'display: contents' case where the\n // node itself is hidden in place of its contents; and there's no need to search\n // up the hierarchy either\n return !node.getClientRects().length;\n }\n\n // Else, the node isn't attached to the document, which means the `getClientRects()`\n // API will __always__ return zero rects (this can happen, for example, if React\n // is used to render nodes onto a detached tree, as confirmed in this thread:\n // https://github.com/facebook/react/issues/9117#issuecomment-284228870)\n //\n // It also means that even window.getComputedStyle(node).display will return `undefined`\n // because styles are only computed for nodes that are in the document.\n //\n // NOTE: THIS HAS BEEN THE CASE FOR YEARS. It is not new, nor is it caused by tabbable\n // somehow. Though it was never stated officially, anyone who has ever used tabbable\n // APIs on nodes in detached containers has actually implicitly used tabbable in what\n // was later (as of v5.2.0 on Apr 9, 2021) called `displayCheck=\"none\"` mode -- essentially\n // considering __everything__ to be visible because of the innability to determine styles.\n //\n // v6.0.0: As of this major release, the default 'full' option __no longer treats detached\n // nodes as visible with the 'none' fallback.__\n if (displayCheck !== 'legacy-full') {\n return true; // hidden\n }\n // else, fallback to 'none' mode and consider the node visible\n } else if (displayCheck === 'non-zero-area') {\n // NOTE: Even though this tests that the node's client rect is non-zero to determine\n // whether it's displayed, and that a detached node will __always__ have a zero-area\n // client rect, we don't special-case for whether the node is attached or not. In\n // this mode, we do want to consider nodes that have a zero area to be hidden at all\n // times, and that includes attached or not.\n return isZeroArea(node);\n }\n\n // visible, as far as we can tell, or per current `displayCheck=none` mode, we assume\n // it's visible\n return false;\n};\n\n// form fields (nested) inside a disabled fieldset are not focusable/tabbable\n// unless they are in the _first_ <legend> element of the top-most disabled\n// fieldset\nvar isDisabledFromFieldset = function isDisabledFromFieldset(node) {\n if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(node.tagName)) {\n var parentNode = node.parentElement;\n // check if `node` is contained in a disabled <fieldset>\n while (parentNode) {\n if (parentNode.tagName === 'FIELDSET' && parentNode.disabled) {\n // look for the first <legend> among the children of the disabled <fieldset>\n for (var i = 0; i < parentNode.children.length; i++) {\n var child = parentNode.children.item(i);\n // when the first <legend> (in document order) is found\n if (child.tagName === 'LEGEND') {\n // if its parent <fieldset> is not nested in another disabled <fieldset>,\n // return whether `node` is a descendant of its first <legend>\n return matches.call(parentNode, 'fieldset[disabled] *') ? true : !child.contains(node);\n }\n }\n // the disabled <fieldset> containing `node` has no <legend>\n return true;\n }\n parentNode = parentNode.parentElement;\n }\n }\n\n // else, node's tabbable/focusable state should not be affected by a fieldset's\n // enabled/disabled state\n return false;\n};\nvar isNodeMatchingSelectorFocusable = function isNodeMatchingSelectorFocusable(options, node) {\n if (node.disabled ||\n // we must do an inert look up to filter out any elements inside an inert ancestor\n // because we're limited in the type of selectors we can use in JSDom (see related\n // note related to `candidateSelectors`)\n isInert(node) || isHiddenInput(node) || isHidden(node, options) ||\n // For a details element with a summary, the summary element gets the focus\n isDetailsWithSummary(node) || isDisabledFromFieldset(node)) {\n return false;\n }\n return true;\n};\nvar isNodeMatchingSelectorTabbable = function isNodeMatchingSelectorTabbable(options, node) {\n if (isNonTabbableRadio(node) || getTabIndex(node) < 0 || !isNodeMatchingSelectorFocusable(options, node)) {\n return false;\n }\n return true;\n};\nvar isValidShadowRootTabbable = function isValidShadowRootTabbable(shadowHostNode) {\n var tabIndex = parseInt(shadowHostNode.getAttribute('tabindex'), 10);\n if (isNaN(tabIndex) || tabIndex >= 0) {\n return true;\n }\n // If a custom element has an explicit negative tabindex,\n // browsers will not allow tab targeting said element's children.\n return false;\n};\n\n/**\n * @param {Array.<Element|CandidateScope>} candidates\n * @returns Element[]\n */\nvar sortByOrder = function sortByOrder(candidates) {\n var regularTabbables = [];\n var orderedTabbables = [];\n candidates.forEach(function (item, i) {\n var isScope = !!item.scopeParent;\n var element = isScope ? item.scopeParent : item;\n var candidateTabindex = getSortOrderTabIndex(element, isScope);\n var elements = isScope ? sortByOrder(item.candidates) : element;\n if (candidateTabindex === 0) {\n isScope ? regularTabbables.push.apply(regularTabbables, elements) : regularTabbables.push(element);\n } else {\n orderedTabbables.push({\n documentOrder: i,\n tabIndex: candidateTabindex,\n item: item,\n isScope: isScope,\n content: elements\n });\n }\n });\n return orderedTabbables.sort(sortOrderedTabbables).reduce(function (acc, sortable) {\n sortable.isScope ? acc.push.apply(acc, sortable.content) : acc.push(sortable.content);\n return acc;\n }, []).concat(regularTabbables);\n};\nvar tabbable = function tabbable(container, options) {\n options = options || {};\n var candidates;\n if (options.getShadowRoot) {\n candidates = getCandidatesIteratively([container], options.includeContainer, {\n filter: isNodeMatchingSelectorTabbable.bind(null, options),\n flatten: false,\n getShadowRoot: options.getShadowRoot,\n shadowRootFilter: isValidShadowRootTabbable\n });\n } else {\n candidates = getCandidates(container, options.includeContainer, isNodeMatchingSelectorTabbable.bind(null, options));\n }\n return sortByOrder(candidates);\n};\nvar focusable = function focusable(container, options) {\n options = options || {};\n var candidates;\n if (options.getShadowRoot) {\n candidates = getCandidatesIteratively([container], options.includeContainer, {\n filter: isNodeMatchingSelectorFocusable.bind(null, options),\n flatten: true,\n getShadowRoot: options.getShadowRoot\n });\n } else {\n candidates = getCandidates(container, options.includeContainer, isNodeMatchingSelectorFocusable.bind(null, options));\n }\n return candidates;\n};\nvar isTabbable = function isTabbable(node, options) {\n options = options || {};\n if (!node) {\n throw new Error('No node provided');\n }\n if (matches.call(node, candidateSelector) === false) {\n return false;\n }\n return isNodeMatchingSelectorTabbable(options, node);\n};\nvar focusableCandidateSelector = /* #__PURE__ */candidateSelectors.concat('iframe').join(',');\nvar isFocusable = function isFocusable(node, options) {\n options = options || {};\n if (!node) {\n throw new Error('No node provided');\n }\n if (matches.call(node, focusableCandidateSelector) === false) {\n return false;\n }\n return isNodeMatchingSelectorFocusable(options, node);\n};\n\nexport { focusable, getTabIndex, isFocusable, isTabbable, tabbable };\n//# sourceMappingURL=index.esm.js.map\n","import * as React from 'react';\nimport { useLayoutEffect, useEffect, useRef } from 'react';\nimport { stopEvent, getDocument, isMouseLikePointerType, contains, activeElement, isSafari, isTypeableCombobox, isVirtualClick, isVirtualPointerEvent, getTarget, getPlatform, isTypeableElement, isReactEvent, isRootElement, isEventTargetWithin, isMac, getUserAgent } from '@floating-ui/react/utils';\nimport { floor } from '@floating-ui/utils';\nimport { platform, getOverflowAncestors, useFloating as useFloating$1, offset, detectOverflow } from '@floating-ui/react-dom';\nexport { arrow, autoPlacement, autoUpdate, computePosition, detectOverflow, flip, getOverflowAncestors, hide, inline, limitShift, offset, platform, shift, size } from '@floating-ui/react-dom';\nimport { isElement, isHTMLElement, getNodeName, getWindow, isLastTraversableNode, getParentNode, getComputedStyle } from '@floating-ui/utils/dom';\nimport { tabbable, isTabbable } from 'tabbable';\nimport { createPortal, flushSync } from 'react-dom';\n\n/**\n * Merges an array of refs into a single memoized callback ref or `null`.\n * @see https://floating-ui.com/docs/react-utils#usemergerefs\n */\nfunction useMergeRefs(refs) {\n // biome-ignore lint/correctness/useExhaustiveDependencies: intentional\n return React.useMemo(() => {\n if (refs.every(ref => ref == null)) {\n return null;\n }\n return value => {\n refs.forEach(ref => {\n if (typeof ref === 'function') {\n ref(value);\n } else if (ref != null) {\n ref.current = value;\n }\n });\n };\n }, refs);\n}\n\n// `toString()` prevents bundlers from trying to `import { useInsertionEffect } from 'react'`\nconst useInsertionEffect = React[/*#__PURE__*/'useInsertionEffect'.toString()];\nconst useSafeInsertionEffect = useInsertionEffect || (fn => fn());\nfunction useEffectEvent(callback) {\n const ref = React.useRef(() => {\n if (process.env.NODE_ENV !== \"production\") {\n throw new Error('Cannot call an event handler while rendering.');\n }\n });\n useSafeInsertionEffect(() => {\n ref.current = callback;\n });\n return React.useCallback(function () {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n return ref.current == null ? void 0 : ref.current(...args);\n }, []);\n}\n\nconst ARROW_UP = 'ArrowUp';\nconst ARROW_DOWN = 'ArrowDown';\nconst ARROW_LEFT = 'ArrowLeft';\nconst ARROW_RIGHT = 'ArrowRight';\nfunction isDifferentRow(index, cols, prevRow) {\n return Math.floor(index / cols) !== prevRow;\n}\nfunction isIndexOutOfBounds(listRef, index) {\n return index < 0 || index >= listRef.current.length;\n}\nfunction getMinIndex(listRef, disabledIndices) {\n return findNonDisabledIndex(listRef, {\n disabledIndices\n });\n}\nfunction getMaxIndex(listRef, disabledIndices) {\n return findNonDisabledIndex(listRef, {\n decrement: true,\n startingIndex: listRef.current.length,\n disabledIndices\n });\n}\nfunction findNonDisabledIndex(listRef, _temp) {\n let {\n startingIndex = -1,\n decrement = false,\n disabledIndices,\n amount = 1\n } = _temp === void 0 ? {} : _temp;\n const list = listRef.current;\n const isDisabledIndex = disabledIndices ? index => disabledIndices.includes(index) : index => {\n const element = list[index];\n return element == null || element.hasAttribute('disabled') || element.getAttribute('aria-disabled') === 'true';\n };\n let index = startingIndex;\n do {\n index += decrement ? -amount : amount;\n } while (index >= 0 && index <= list.length - 1 && isDisabledIndex(index));\n return index;\n}\nfunction getGridNavigatedIndex(elementsRef, _ref) {\n let {\n event,\n orientation,\n loop,\n cols,\n disabledIndices,\n minIndex,\n maxIndex,\n prevIndex,\n stopEvent: stop = false\n } = _ref;\n let nextIndex = prevIndex;\n if (event.key === ARROW_UP) {\n stop && stopEvent(event);\n if (prevIndex === -1) {\n nextIndex = maxIndex;\n } else {\n nextIndex = findNonDisabledIndex(elementsRef, {\n startingIndex: nextIndex,\n amount: cols,\n decrement: true,\n disabledIndices\n });\n if (loop && (prevIndex - cols < minIndex || nextIndex < 0)) {\n const col = prevIndex % cols;\n const maxCol = maxIndex % cols;\n const offset = maxIndex - (maxCol - col);\n if (maxCol === col) {\n nextIndex = maxIndex;\n } else {\n nextIndex = maxCol > col ? offset : offset - cols;\n }\n }\n }\n if (isIndexOutOfBounds(elementsRef, nextIndex)) {\n nextIndex = prevIndex;\n }\n }\n if (event.key === ARROW_DOWN) {\n stop && stopEvent(event);\n if (prevIndex === -1) {\n nextIndex = minIndex;\n } else {\n nextIndex = findNonDisabledIndex(elementsRef, {\n startingIndex: prevIndex,\n amount: cols,\n disabledIndices\n });\n if (loop && prevIndex + cols > maxIndex) {\n nextIndex = findNonDisabledIndex(elementsRef, {\n startingIndex: prevIndex % cols - cols,\n amount: cols,\n disabledIndices\n });\n }\n }\n if (isIndexOutOfBounds(elementsRef, nextIndex)) {\n nextIndex = prevIndex;\n }\n }\n\n // Remains on the same row/column.\n if (orientation === 'both') {\n const prevRow = floor(prevIndex / cols);\n if (event.key === ARROW_RIGHT) {\n stop && stopEvent(event);\n if (prevIndex % cols !== cols - 1) {\n nextIndex = findNonDisabledIndex(elementsRef, {\n startingIndex: prevIndex,\n disabledIndices\n });\n if (loop && isDifferentRow(nextIndex, cols, prevRow)) {\n nextIndex = findNonDisabledIndex(elementsRef, {\n startingIndex: prevIndex - prevIndex % cols - 1,\n disabledIndices\n });\n }\n } else if (loop) {\n nextIndex = findNonDisabledIndex(elementsRef, {\n startingIndex: prevIndex - prevIndex % cols - 1,\n disabledIndices\n });\n }\n if (isDifferentRow(nextIndex, cols, prevRow)) {\n nextIndex = prevIndex;\n }\n }\n if (event.key === ARROW_LEFT) {\n stop && stopEvent(event);\n if (prevIndex % cols !== 0) {\n nextIndex = findNonDisabledIndex(elementsRef, {\n startingIndex: prevIndex,\n disabledIndices,\n decrement: true\n });\n if (loop && isDifferentRow(nextIndex, cols, prevRow)) {\n nextIndex = findNonDisabledIndex(elementsRef, {\n startingIndex: prevIndex + (cols - prevIndex % cols),\n decrement: true,\n disabledIndices\n });\n }\n } else if (loop) {\n nextIndex = findNonDisabledIndex(elementsRef, {\n startingIndex: prevIndex + (cols - prevIndex % cols),\n decrement: true,\n disabledIndices\n });\n }\n if (isDifferentRow(nextIndex, cols, prevRow)) {\n nextIndex = prevIndex;\n }\n }\n const lastRow = floor(maxIndex / cols) === prevRow;\n if (isIndexOutOfBounds(elementsRef, nextIndex)) {\n if (loop && lastRow) {\n nextIndex = event.key === ARROW_LEFT ? maxIndex : findNonDisabledIndex(elementsRef, {\n startingIndex: prevIndex - prevIndex % cols - 1,\n disabledIndices\n });\n } else {\n nextIndex = prevIndex;\n }\n }\n }\n return nextIndex;\n}\n\n/** For each cell index, gets the item index that occupies that cell */\nfunction buildCellMap(sizes, cols, dense) {\n const cellMap = [];\n let startIndex = 0;\n sizes.forEach((_ref2, index) => {\n let {\n width,\n height\n } = _ref2;\n if (width > cols) {\n if (process.env.NODE_ENV !== \"production\") {\n throw new Error(\"[Floating UI]: Invalid grid - item width at index \" + index + \" is greater than grid columns\");\n }\n }\n let itemPlaced = false;\n if (dense) {\n startIndex = 0;\n }\n while (!itemPlaced) {\n const targetCells = [];\n for (let i = 0; i < width; i++) {\n for (let j = 0; j < height; j++) {\n targetCells.push(startIndex + i + j * cols);\n }\n }\n if (startIndex % cols + width <= cols && targetCells.every(cell => cellMap[cell] == null)) {\n targetCells.forEach(cell => {\n cellMap[cell] = index;\n });\n itemPlaced = true;\n } else {\n startIndex++;\n }\n }\n });\n\n // convert into a non-sparse array\n return [...cellMap];\n}\n\n/** Gets cell index of an item's corner or -1 when index is -1. */\nfunction getCellIndexOfCorner(index, sizes, cellMap, cols, corner) {\n if (index === -1) return -1;\n const firstCellIndex = cellMap.indexOf(index);\n switch (corner) {\n case 'tl':\n return firstCellIndex;\n case 'tr':\n return firstCellIndex + sizes[index].width - 1;\n case 'bl':\n return firstCellIndex + (sizes[index].height - 1) * cols;\n case 'br':\n return cellMap.lastIndexOf(index);\n }\n}\n\n/** Gets all cell indices that correspond to the specified indices */\nfunction getCellIndices(indices, cellMap) {\n return cellMap.flatMap((index, cellIndex) => indices.includes(index) ? [cellIndex] : []);\n}\n\nlet rafId = 0;\nfunction enqueueFocus(el, options) {\n if (options === void 0) {\n options = {};\n }\n const {\n preventScroll = false,\n cancelPrevious = true,\n sync = false\n } = options;\n cancelPrevious && cancelAnimationFrame(rafId);\n const exec = () => el == null ? void 0 : el.focus({\n preventScroll\n });\n if (sync) {\n exec();\n } else {\n rafId = requestAnimationFrame(exec);\n }\n}\n\nvar index = typeof document !== 'undefined' ? useLayoutEffect : useEffect;\n\nfunction sortByDocumentPosition(a, b) {\n const position = a.compareDocumentPosition(b);\n if (position & Node.DOCUMENT_POSITION_FOLLOWING || position & Node.DOCUMENT_POSITION_CONTAINED_BY) {\n return -1;\n }\n if (position & Node.DOCUMENT_POSITION_PRECEDING || position & Node.DOCUMENT_POSITION_CONTAINS) {\n return 1;\n }\n return 0;\n}\nfunction areMapsEqual(map1, map2) {\n if (map1.size !== map2.size) {\n return false;\n }\n for (const [key, value] of map1.entries()) {\n if (value !== map2.get(key)) {\n return false;\n }\n }\n return true;\n}\nconst FloatingListContext = /*#__PURE__*/React.createContext({\n register: () => {},\n unregister: () => {},\n map: /*#__PURE__*/new Map(),\n elementsRef: {\n current: []\n }\n});\n/**\n * Provides context for a list of items within the floating element.\n * @see https://floating-ui.com/docs/FloatingList\n */\nfunction FloatingList(_ref) {\n let {\n children,\n elementsRef,\n labelsRef\n } = _ref;\n const [map, setMap] = React.useState(() => new Map());\n const register = React.useCallback(node => {\n setMap(prevMap => new Map(prevMap).set(node, null));\n }, []);\n const unregister = React.useCallback(node => {\n setMap(prevMap => {\n const map = new Map(prevMap);\n map.delete(node);\n return map;\n });\n }, []);\n index(() => {\n const newMap = new Map(map);\n const nodes = Array.from(newMap.keys()).sort(sortByDocumentPosition);\n nodes.forEach((node, index) => {\n newMap.set(node, index);\n });\n if (!areMapsEqual(map, newMap)) {\n setMap(newMap);\n }\n }, [map]);\n return /*#__PURE__*/React.createElement(FloatingListContext.Provider, {\n value: React.useMemo(() => ({\n register,\n unregister,\n map,\n elementsRef,\n labelsRef\n }), [register, unregister, map, elementsRef, labelsRef])\n }, children);\n}\n/**\n * Used to register a list item and its index (DOM position) in the\n * `FloatingList`.\n * @see https://floating-ui.com/docs/FloatingList#uselistitem\n */\nfunction useListItem(_temp) {\n let {\n label\n } = _temp === void 0 ? {} : _temp;\n const [index$1, setIndex] = React.useState(null);\n const componentRef = React.useRef(null);\n const {\n register,\n unregister,\n map,\n elementsRef,\n labelsRef\n } = React.useContext(FloatingListContext);\n const ref = React.useCallback(node => {\n componentRef.current = node;\n if (index$1 !== null) {\n elementsRef.current[index$1] = node;\n if (labelsRef) {\n var _node$textContent;\n const isLabelDefined = label !== undefined;\n labelsRef.current[index$1] = isLabelDefined ? label : (_node$textContent = node == null ? void 0 : node.textContent) != null ? _node$textContent : null;\n }\n }\n }, [index$1, elementsRef, labelsRef, label]);\n index(() => {\n const node = componentRef.current;\n if (node) {\n register(node);\n return () => {\n unregister(node);\n };\n }\n }, [register, unregister]);\n index(() => {\n const index = componentRef.current ? map.get(componentRef.current) : null;\n if (index != null) {\n setIndex(index);\n }\n }, [map]);\n return React.useMemo(() => ({\n ref,\n index: index$1 == null ? -1 : index$1\n }), [index$1, ref]);\n}\n\nfunction renderJsx(render, computedProps) {\n if (typeof render === 'function') {\n return render(computedProps);\n }\n if (render) {\n return /*#__PURE__*/React.cloneElement(render, computedProps);\n }\n return /*#__PURE__*/React.createElement(\"div\", computedProps);\n}\nconst CompositeContext = /*#__PURE__*/React.createContext({\n activeIndex: 0,\n onNavigate: () => {}\n});\nconst horizontalKeys = [ARROW_LEFT, ARROW_RIGHT];\nconst verticalKeys = [ARROW_UP, ARROW_DOWN];\nconst allKeys = [...horizontalKeys, ...verticalKeys];\n\n/**\n * Creates a single tab stop whose items are navigated by arrow keys, which\n * provides list navigation outside of floating element contexts.\n *\n * This is useful to enable navigation of a list of items that aren’t part of a\n * floating element. A menubar is an example of a composite, with each reference\n * element being an item.\n * @see https://floating-ui.com/docs/Composite\n */\nconst Composite = /*#__PURE__*/React.forwardRef(function Composite(_ref, forwardedRef) {\n let {\n render,\n orientation = 'both',\n loop = true,\n cols = 1,\n disabledIndices = [],\n activeIndex: externalActiveIndex,\n onNavigate: externalSetActiveIndex,\n itemSizes,\n dense = false,\n ...props\n } = _ref;\n const [internalActiveIndex, internalSetActiveIndex] = React.useState(0);\n const activeIndex = externalActiveIndex != null ? externalActiveIndex : internalActiveIndex;\n const onNavigate = useEffectEvent(externalSetActiveIndex != null ? externalSetActiveIndex : internalSetActiveIndex);\n const elementsRef = React.useRef([]);\n const renderElementProps = render && typeof render !== 'function' ? render.props : {};\n const contextValue = React.useMemo(() => ({\n activeIndex,\n onNavigate\n }), [activeIndex, onNavigate]);\n const isGrid = cols > 1;\n function handleKeyDown(event) {\n if (!allKeys.includes(event.key)) return;\n let nextIndex = activeIndex;\n if (isGrid) {\n const sizes = itemSizes || Array.from({\n length: elementsRef.current.length\n }, () => ({\n width: 1,\n height: 1\n }));\n // To calculate movements on the grid, we use hypothetical cell indices\n // as if every item was 1x1, then convert back to real indices.\n const cellMap = buildCellMap(sizes, cols, dense);\n const minGridIndex = cellMap.findIndex(index => index != null && !disabledIndices.includes(index));\n // last enabled index\n const maxGridIndex = cellMap.reduce((foundIndex, index, cellIndex) => index != null && !(disabledIndices != null && disabledIndices.includes(index)) ? cellIndex : foundIndex, -1);\n nextIndex = cellMap[getGridNavigatedIndex({\n current: cellMap.map(itemIndex => itemIndex ? elementsRef.current[itemIndex] : null)\n }, {\n event,\n orientation,\n loop,\n cols,\n // treat undefined (empty grid spaces) as disabled indices so we\n // don't end up in them\n disabledIndices: getCellIndices([...disabledIndices, undefined], cellMap),\n minIndex: minGridIndex,\n maxIndex: maxGridIndex,\n prevIndex: getCellIndexOfCorner(activeIndex, sizes, cellMap, cols,\n // use a corner matching the edge closest to the direction we're\n // moving in so we don't end up in the same item. Prefer\n // top/left over bottom/right.\n event.key === ARROW_DOWN ? 'bl' : event.key === ARROW_RIGHT ? 'tr' : 'tl')\n })]; // navigated cell will never be nullish\n }\n const minIndex = getMinIndex(elementsRef, disabledIndices);\n const maxIndex = getMaxIndex(elementsRef, disabledIndices);\n const toEndKeys = {\n horizontal: [ARROW_RIGHT],\n vertical: [ARROW_DOWN],\n both: [ARROW_RIGHT, ARROW_DOWN]\n }[orientation];\n const toStartKeys = {\n horizontal: [ARROW_LEFT],\n vertical: [ARROW_UP],\n both: [ARROW_LEFT, ARROW_UP]\n }[orientation];\n const preventedKeys = isGrid ? allKeys : {\n horizontal: horizontalKeys,\n vertical: verticalKeys,\n both: allKeys\n }[orientation];\n if (nextIndex === activeIndex && [...toEndKeys, ...toStartKeys].includes(event.key)) {\n if (loop && nextIndex === maxIndex && toEndKeys.includes(event.key)) {\n nextIndex = minIndex;\n } else if (loop && nextIndex === minIndex && toStartKeys.includes(event.key)) {\n nextIndex = maxIndex;\n } else {\n nextIndex = findNonDisabledIndex(elementsRef, {\n startingIndex: nextIndex,\n decrement: toStartKeys.includes(event.key),\n disabledIndices\n });\n }\n }\n if (nextIndex !== activeIndex && !isIndexOutOfBounds(elementsRef, nextIndex)) {\n event.stopPropagation();\n if (preventedKeys.includes(event.key)) {\n event.preventDefault();\n }\n onNavigate(nextIndex);\n\n // Wait for FocusManager `returnFocus` to execute.\n queueMicrotask(() => {\n enqueueFocus(elementsRef.current[nextIndex]);\n });\n }\n }\n const computedProps = {\n ...props,\n ...renderElementProps,\n ref: forwardedRef,\n 'aria-orientation': orientation === 'both' ? undefined : orientation,\n onKeyDown(e) {\n props.onKeyDown == null || props.onKeyDown(e);\n renderElementProps.onKeyDown == null || renderElementProps.onKeyDown(e);\n handleKeyDown(e);\n }\n };\n return /*#__PURE__*/React.createElement(CompositeContext.Provider, {\n value: contextValue\n }, /*#__PURE__*/React.createElement(FloatingList, {\n elementsRef: elementsRef\n }, renderJsx(render, computedProps)));\n});\n/**\n * @see https://floating-ui.com/docs/Composite\n */\nconst CompositeItem = /*#__PURE__*/React.forwardRef(function CompositeItem(_ref2, forwardedRef) {\n let {\n render,\n ...props\n } = _ref2;\n const renderElementProps = render && typeof render !== 'function' ? render.props : {};\n const {\n activeIndex,\n onNavigate\n } = React.useContext(CompositeContext);\n const {\n ref,\n index\n } = useListItem();\n const mergedRef = useMergeRefs([ref, forwardedRef, renderElementProps.ref]);\n const isActive = activeIndex === index;\n const computedProps = {\n ...props,\n ...renderElementProps,\n ref: mergedRef,\n tabIndex: isActive ? 0 : -1,\n 'data-active': isActive ? '' : undefined,\n onFocus(e) {\n props.onFocus == null || props.onFocus(e);\n renderElementProps.onFocus == null || renderElementProps.onFocus(e);\n onNavigate(index);\n }\n };\n return renderJsx(render, computedProps);\n});\n\nfunction _extends() {\n _extends = Object.assign ? Object.assign.bind() : function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n return target;\n };\n return _extends.apply(this, arguments);\n}\n\nlet serverHandoffComplete = false;\nlet count = 0;\nconst genId = () => \"floating-ui-\" + count++;\nfunction useFloatingId() {\n const [id, setId] = React.useState(() => serverHandoffComplete ? genId() : undefined);\n\n // biome-ignore lint/correctness/useExhaustiveDependencies: intentional\n index(() => {\n if (id == null) {\n setId(genId());\n }\n }, []);\n React.useEffect(() => {\n if (!serverHandoffComplete) {\n serverHandoffComplete = true;\n }\n }, []);\n return id;\n}\n\n// `toString()` prevents bundlers from trying to `import { useId } from 'react'`\nconst useReactId = React[/*#__PURE__*/'useId'.toString()];\n\n/**\n * Uses React 18's built-in `useId()` when available, or falls back to a\n * slightly less performant (requiring a double render) implementation for\n * earlier React versions.\n * @see https://floating-ui.com/docs/react-utils#useid\n */\nconst useId = useReactId || useFloatingId;\n\n/**\n * Renders a pointing arrow triangle.\n * @see https://floating-ui.com/docs/FloatingArrow\n */\nconst FloatingArrow = /*#__PURE__*/React.forwardRef(function FloatingArrow(_ref, ref) {\n let {\n context: {\n placement,\n elements: {\n floating\n },\n middlewareData: {\n arrow\n }\n },\n width = 14,\n height = 7,\n tipRadius = 0,\n strokeWidth = 0,\n staticOffset,\n stroke,\n d,\n style: {\n transform,\n ...restStyle\n } = {},\n ...rest\n } = _ref;\n if (process.env.NODE_ENV !== \"production\") {\n if (!ref) {\n console.warn('Floating UI: The `ref` prop is required for the `FloatingArrow`', 'component.');\n }\n }\n const clipPathId = useId();\n if (!floating) {\n return null;\n }\n\n // Strokes must be double the border width, this ensures the stroke's width\n // works as you'd expect.\n strokeWidth *= 2;\n const halfStrokeWidth = strokeWidth / 2;\n const svgX = width / 2 * (tipRadius / -8 + 1);\n const svgY = height / 2 * tipRadius / 4;\n const [side, alignment] = placement.split('-');\n const isRTL = platform.isRTL(floating);\n const isCustomShape = !!d;\n const isVerticalSide = side === 'top' || side === 'bottom';\n const yOffsetProp = staticOffset && alignment === 'end' ? 'bottom' : 'top';\n let xOffsetProp = staticOffset && alignment === 'end' ? 'right' : 'left';\n if (staticOffset && isRTL) {\n xOffsetProp = alignment === 'end' ? 'left' : 'right';\n }\n const arrowX = (arrow == null ? void 0 : arrow.x) != null ? staticOffset || arrow.x : '';\n const arrowY = (arrow == null ? void 0 : arrow.y) != null ? staticOffset || arrow.y : '';\n const dValue = d ||\n // biome-ignore lint/style/useTemplate: readability\n 'M0,0' + (\" H\" + width) + (\" L\" + (width - svgX) + \",\" + (height - svgY)) + (\" Q\" + width / 2 + \",\" + height + \" \" + svgX + \",\" + (height - svgY)) + ' Z';\n const rotation = {\n top: isCustomShape ? 'rotate(180deg)' : '',\n left: isCustomShape ? 'rotate(90deg)' : 'rotate(-90deg)',\n bottom: isCustomShape ? '' : 'rotate(180deg)',\n right: isCustomShape ? 'rotate(-90deg)' : 'rotate(90deg)'\n }[side];\n return /*#__PURE__*/React.createElement(\"svg\", _extends({}, rest, {\n \"aria-hidden\": true,\n ref: ref,\n width: isCustomShape ? width : width + strokeWidth,\n height: width,\n viewBox: \"0 0 \" + width + \" \" + (height > width ? height : width),\n style: {\n position: 'absolute',\n pointerEvents: 'none',\n [xOffsetProp]: arrowX,\n [yOffsetProp]: arrowY,\n [side]: isVerticalSide || isCustomShape ? '100%' : \"calc(100% - \" + strokeWidth / 2 + \"px)\",\n transform: \"\" + rotation + (transform != null ? transform : ''),\n ...restStyle\n }\n }), strokeWidth > 0 && /*#__PURE__*/React.createElement(\"path\", {\n clipPath: \"url(#\" + clipPathId + \")\",\n fill: \"none\",\n stroke: stroke\n // Account for the stroke on the fill path rendered below.\n ,\n strokeWidth: strokeWidth + (d ? 0 : 1),\n d: dValue\n }), /*#__PURE__*/React.createElement(\"path\", {\n stroke: strokeWidth && !d ? rest.fill : 'none',\n d: dValue\n }), /*#__PURE__*/React.createElement(\"clipPath\", {\n id: clipPathId\n }, /*#__PURE__*/React.createElement(\"rect\", {\n x: -halfStrokeWidth,\n y: halfStrokeWidth * (isCustomShape ? -1 : 1),\n width: width + strokeWidth,\n height: width\n })));\n});\n\nfunction createPubSub() {\n const map = new Map();\n return {\n emit(event, data) {\n var _map$get;\n (_map$get = map.get(event)) == null || _map$get.forEach(handler => handler(data));\n },\n on(event, listener) {\n map.set(event, [...(map.get(event) || []), listener]);\n },\n off(event, listener) {\n var _map$get2;\n map.set(event, ((_map$get2 = map.get(event)) == null ? void 0 : _map$get2.filter(l => l !== listener)) || []);\n }\n };\n}\n\nconst FloatingNodeContext = /*#__PURE__*/React.createContext(null);\nconst FloatingTreeContext = /*#__PURE__*/React.createContext(null);\n\n/**\n * Returns the parent node id for nested floating elements, if available.\n * Returns `null` for top-level floating elements.\n */\nconst useFloatingParentNodeId = () => {\n var _React$useContext;\n return ((_React$useContext = React.useContext(FloatingNodeContext)) == null ? void 0 : _React$useContext.id) || null;\n};\n\n/**\n * Returns the nearest floating tree context, if available.\n */\nconst useFloatingTree = () => React.useContext(FloatingTreeContext);\n\n/**\n * Registers a node into the `FloatingTree`, returning its id.\n * @see https://floating-ui.com/docs/FloatingTree\n */\nfunction useFloatingNodeId(customParentId) {\n const id = useId();\n const tree = useFloatingTree();\n const reactParentId = useFloatingParentNodeId();\n const parentId = customParentId || reactParentId;\n index(() => {\n const node = {\n id,\n parentId\n };\n tree == null || tree.addNode(node);\n return () => {\n tree == null || tree.removeNode(node);\n };\n }, [tree, id, parentId]);\n return id;\n}\n\n/**\n * Provides parent node context for nested floating elements.\n * @see https://floating-ui.com/docs/FloatingTree\n */\nfunction FloatingNode(_ref) {\n let {\n children,\n id\n } = _ref;\n const parentId = useFloatingParentNodeId();\n return /*#__PURE__*/React.createElement(FloatingNodeContext.Provider, {\n value: React.useMemo(() => ({\n id,\n parentId\n }), [id, parentId])\n }, children);\n}\n\n/**\n * Provides context for nested floating elements when they are not children of\n * each other on the DOM.\n * This is not necessary in all cases, except when there must be explicit communication between parent and child floating elements. It is necessary for:\n * - The `bubbles` option in the `useDismiss()` Hook\n * - Nested virtual list navigation\n * - Nested floating elements that each open on hover\n * - Custom communication between parent and child floating elements\n * @see https://floating-ui.com/docs/FloatingTree\n */\nfunction FloatingTree(_ref2) {\n let {\n children\n } = _ref2;\n const nodesRef = React.useRef([]);\n const addNode = React.useCallback(node => {\n nodesRef.current = [...nodesRef.current, node];\n }, []);\n const removeNode = React.useCallback(node => {\n nodesRef.current = nodesRef.current.filter(n => n !== node);\n }, []);\n const events = React.useState(() => createPubSub())[0];\n return /*#__PURE__*/React.createElement(FloatingTreeContext.Provider, {\n value: React.useMemo(() => ({\n nodesRef,\n addNode,\n removeNode,\n events\n }), [addNode, removeNode, events])\n }, children);\n}\n\nfunction createAttribute(name) {\n return \"data-floating-ui-\" + name;\n}\n\nfunction useLatestRef(value) {\n const ref = useRef(value);\n index(() => {\n ref.current = value;\n });\n return ref;\n}\n\nconst safePolygonIdentifier = /*#__PURE__*/createAttribute('safe-polygon');\nfunction getDelay(value, prop, pointerType) {\n if (pointerType && !isMouseLikePointerType(pointerType)) {\n return 0;\n }\n if (typeof value === 'number') {\n return value;\n }\n return value == null ? void 0 : value[prop];\n}\n/**\n * Opens the floating element while hovering over the reference element, like\n * CSS `:hover`.\n * @see https://floating-ui.com/docs/useHover\n */\nfunction useHover(context, props) {\n if (props === void 0) {\n props = {};\n }\n const {\n open,\n onOpenChange,\n dataRef,\n events,\n elements: {\n domReference,\n floating\n },\n refs\n } = context;\n const {\n enabled = true,\n delay = 0,\n handleClose = null,\n mouseOnly = false,\n restMs = 0,\n move = true\n } = props;\n const tree = useFloatingTree();\n const parentId = useFloatingParentNodeId();\n const handleCloseRef = useLatestRef(handleClose);\n const delayRef = useLatestRef(delay);\n const pointerTypeRef = React.useRef();\n const timeoutRef = React.useRef();\n const handlerRef = React.useRef();\n const restTimeoutRef = React.useRef();\n const blockMouseMoveRef = React.useRef(true);\n const performedPointerEventsMutationRef = React.useRef(false);\n const unbindMouseMoveRef = React.useRef(() => {});\n const isHoverOpen = React.useCallback(() => {\n var _dataRef$current$open;\n const type = (_dataRef$current$open = dataRef.current.openEvent) == null ? void 0 : _dataRef$current$open.type;\n return (type == null ? void 0 : type.includes('mouse')) && type !== 'mousedown';\n }, [dataRef]);\n\n // When closing before opening, clear the delay timeouts to cancel it\n // from showing.\n React.useEffect(() => {\n if (!enabled) {\n return;\n }\n function onOpenChange(_ref) {\n let {\n open\n } = _ref;\n if (!open) {\n clearTimeout(timeoutRef.current);\n clearTimeout(restTimeoutRef.current);\n blockMouseMoveRef.current = true;\n }\n }\n events.on('openchange', onOpenChange);\n return () => {\n events.off('openchange', onOpenChange);\n };\n }, [enabled, events]);\n React.useEffect(() => {\n if (!enabled || !handleCloseRef.current || !open) {\n return;\n }\n function onLeave(event) {\n if (isHoverOpen()) {\n onOpenChange(false, event, 'hover');\n }\n }\n const html = getDocument(floating).documentElement;\n html.addEventListener('mouseleave', onLeave);\n return () => {\n html.removeEventListener('mouseleave', onLeave);\n };\n }, [floating, open, onOpenChange, enabled, handleCloseRef, isHoverOpen]);\n const closeWithDelay = React.useCallback(function (event, runElseBranch, reason) {\n if (runElseBranch === void 0) {\n runElseBranch = true;\n }\n if (reason === void 0) {\n reason = 'hover';\n }\n const closeDelay = getDelay(delayRef.current, 'close', pointerTypeRef.current);\n if (closeDelay && !handlerRef.current) {\n clearTimeout(timeoutRef.current);\n timeoutRef.current = setTimeout(() => onOpenChange(false, event, reason), closeDelay);\n } else if (runElseBranch) {\n clearTimeout(timeoutRef.current);\n onOpenChange(false, event, reason);\n }\n }, [delayRef, onOpenChange]);\n const cleanupMouseMoveHandler = React.useCallback(() => {\n unbindMouseMoveRef.current();\n handlerRef.current = undefined;\n }, []);\n const clearPointerEvents = React.useCallback(() => {\n if (performedPointerEventsMutationRef.current) {\n const body = getDocument(refs.floating.current).body;\n body.style.pointerEvents = '';\n body.removeAttribute(safePolygonIdentifier);\n performedPointerEventsMutationRef.current = false;\n }\n }, [refs]);\n\n // Registering the mouse events on the reference directly to bypass React's\n // delegation system. If the cursor was on a disabled element and then entered\n // the reference (no gap), `mouseenter` doesn't fire in the delegation system.\n React.useEffect(() => {\n if (!enabled) {\n return;\n }\n function isClickLikeOpenEvent() {\n return dataRef.current.openEvent ? ['click', 'mousedown'].includes(dataRef.current.openEvent.type) : false;\n }\n function onMouseEnter(event) {\n clearTimeout(timeoutRef.current);\n blockMouseMoveRef.current = false;\n if (mouseOnly && !isMouseLikePointerType(pointerTypeRef.current) || restMs > 0 && getDelay(delayRef.current, 'open') === 0) {\n return;\n }\n const openDelay = getDelay(delayRef.current, 'open', pointerTypeRef.current);\n if (openDelay) {\n timeoutRef.current = setTimeout(() => {\n onOpenChange(true, event, 'hover');\n }, openDelay);\n } else {\n onOpenChange(true, event, 'hover');\n }\n }\n function onMouseLeave(event) {\n if (isClickLikeOpenEvent()) {\n return;\n }\n unbindMouseMoveRef.current();\n const doc = getDocument(floating);\n clearTimeout(restTimeoutRef.current);\n if (handleCloseRef.current) {\n // Prevent clearing `onScrollMouseLeave` timeout.\n if (!open) {\n clearTimeout(timeoutRef.current);\n }\n handlerRef.current = handleCloseRef.current({\n ...context,\n tree,\n x: event.clientX,\n y: event.clientY,\n onClose() {\n clearPointerEvents();\n cleanupMouseMoveHandler();\n closeWithDelay(event, true, 'safe-polygon');\n }\n });\n const handler = handlerRef.current;\n doc.addEventListener('mousemove', handler);\n unbindMouseMoveRef.current = () => {\n doc.removeEventListener('mousemove', handler);\n };\n return;\n }\n\n // Allow interactivity without `safePolygon` on touch devices. With a\n // pointer, a short close delay is an alternative, so it should work\n // consistently.\n const shouldClose = pointerTypeRef.current === 'touch' ? !contains(floating, event.relatedTarget) : true;\n if (shouldClose) {\n closeWithDelay(event);\n }\n }\n\n // Ensure the floating element closes after scrolling even if the pointer\n // did not move.\n // https://github.com/floating-ui/floating-ui/discussions/1692\n function onScrollMouseLeave(event) {\n if (isClickLikeOpenEvent()) {\n return;\n }\n handleCloseRef.current == null || handleCloseRef.current({\n ...context,\n tree,\n x: event.clientX,\n y: event.clientY,\n onClose() {\n clearPointerEvents();\n cleanupMouseMoveHandler();\n closeWithDelay(event);\n }\n })(event);\n }\n if (isElement(domReference)) {\n const ref = domReference;\n open && ref.addEventListener('mouseleave', onScrollMouseLeave);\n floating == null || floating.addEventListener('mouseleave', onScrollMouseLeave);\n move && ref.addEventListener('mousemove', onMouseEnter, {\n once: true\n });\n ref.addEventListener('mouseenter', onMouseEnter);\n ref.addEventListener('mouseleave', onMouseLeave);\n return () => {\n open && ref.removeEventListener('mouseleave', onScrollMouseLeave);\n floating == null || floating.removeEventListener('mouseleave', onScrollMouseLeave);\n move && ref.removeEventListener('mousemove', onMouseEnter);\n ref.removeEventListener('mouseenter', onMouseEnter);\n ref.removeEventListener('mouseleave', onMouseLeave);\n };\n }\n }, [domReference, floating, enabled, context, mouseOnly, restMs, move, closeWithDelay, cleanupMouseMoveHandler, clearPointerEvents, onOpenChange, open, tree, delayRef, handleCloseRef, dataRef]);\n\n // Block pointer-events of every element other than the reference and floating\n // while the floating element is open and has a `handleClose` handler. Also\n // handles nested floating elements.\n // https://github.com/floating-ui/floating-ui/issues/1722\n index(() => {\n var _handleCloseRef$curre;\n if (!enabled) {\n return;\n }\n if (open && (_handleCloseRef$curre = handleCloseRef.current) != null && _handleCloseRef$curre.__options.blockPointerEvents && isHoverOpen()) {\n const body = getDocument(floating).body;\n body.setAttribute(safePolygonIdentifier, '');\n body.style.pointerEvents = 'none';\n performedPointerEventsMutationRef.current = true;\n if (isElement(domReference) && floating) {\n var _tree$nodesRef$curren;\n const ref = domReference;\n const parentFloating = tree == null || (_tree$nodesRef$curren = tree.nodesRef.current.find(node => node.id === parentId)) == null || (_tree$nodesRef$curren = _tree$nodesRef$curren.context) == null ? void 0 : _tree$nodesRef$curren.elements.floating;\n if (parentFloating) {\n parentFloating.style.pointerEvents = '';\n }\n ref.style.pointerEvents = 'auto';\n floating.style.pointerEvents = 'auto';\n return () => {\n ref.style.pointerEvents = '';\n floating.style.pointerEvents = '';\n };\n }\n }\n }, [enabled, open, parentId, floating, domReference, tree, handleCloseRef, isHoverOpen]);\n index(() => {\n if (!open) {\n pointerTypeRef.current = undefined;\n cleanupMouseMoveHandler();\n clearPointerEvents();\n }\n }, [open, cleanupMouseMoveHandler, clearPointerEvents]);\n\n // biome-ignore lint/correctness/useExhaustiveDependencies: intentional\n React.useEffect(() => {\n return () => {\n cleanupMouseMoveHandler();\n clearTimeout(timeoutRef.current);\n clearTimeout(restTimeoutRef.current);\n clearPointerEvents();\n };\n }, [enabled, domReference, cleanupMouseMoveHandler, clearPointerEvents]);\n return React.useMemo(() => {\n if (!enabled) {\n return {};\n }\n function setPointerRef(event) {\n pointerTypeRef.current = event.pointerType;\n }\n return {\n reference: {\n onPointerDown: setPointerRef,\n onPointerEnter: setPointerRef,\n onMouseMove(event) {\n if (open || restMs === 0) {\n return;\n }\n clearTimeout(restTimeoutRef.current);\n restTimeoutRef.current = setTimeout(() => {\n if (!blockMouseMoveRef.current) {\n onOpenChange(true, event.nativeEvent, 'hover');\n }\n }, restMs);\n }\n },\n floating: {\n onMouseEnter() {\n clearTimeout(timeoutRef.current);\n },\n onMouseLeave(event) {\n closeWithDelay(event.nativeEvent, false);\n }\n }\n };\n }, [enabled, restMs, open, onOpenChange, closeWithDelay]);\n}\n\nconst FloatingDelayGroupContext = /*#__PURE__*/React.createContext({\n delay: 0,\n initialDelay: 0,\n timeoutMs: 0,\n currentId: null,\n setCurrentId: () => {},\n setState: () => {},\n isInstantPhase: false\n});\nconst useDelayGroupContext = () => React.useContext(FloatingDelayGroupContext);\n/**\n * Provides context for a group of floating elements that should share a\n * `delay`.\n * @see https://floating-ui.com/docs/FloatingDelayGroup\n */\nconst FloatingDelayGroup = _ref => {\n let {\n children,\n delay,\n timeoutMs = 0\n } = _ref;\n const [state, setState] = React.useReducer((prev, next) => ({\n ...prev,\n ...next\n }), {\n delay,\n timeoutMs,\n initialDelay: delay,\n currentId: null,\n isInstantPhase: false\n });\n const initialCurrentIdRef = React.useRef(null);\n const setCurrentId = React.useCallback(currentId => {\n setState({\n currentId\n });\n }, []);\n index(() => {\n if (state.currentId) {\n if (initialCurrentIdRef.current === null) {\n initialCurrentIdRef.current = state.currentId;\n } else {\n setState({\n isInstantPhase: true\n });\n }\n } else {\n setState({\n isInstantPhase: false\n });\n initialCurrentIdRef.current = null;\n }\n }, [state.currentId]);\n return /*#__PURE__*/React.createElement(FloatingDelayGroupContext.Provider, {\n value: React.useMemo(() => ({\n ...state,\n setState,\n setCurrentId\n }), [state, setCurrentId])\n }, children);\n};\n/**\n * Enables grouping when called inside a component that's a child of a\n * `FloatingDelayGroup`.\n * @see https://floating-ui.com/docs/FloatingDelayGroup\n */\nconst useDelayGroup = (_ref2, _ref3) => {\n let {\n open,\n onOpenChange\n } = _ref2;\n let {\n id\n } = _ref3;\n const {\n currentId,\n setCurrentId,\n initialDelay,\n setState,\n timeoutMs\n } = useDelayGroupContext();\n index(() => {\n if (currentId) {\n setState({\n delay: {\n open: 1,\n close: getDelay(initialDelay, 'close')\n }\n });\n if (currentId !== id) {\n onOpenChange(false);\n }\n }\n }, [id, onOpenChange, setState, currentId, initialDelay]);\n index(() => {\n function unset() {\n onOpenChange(false);\n setState({\n delay: initialDelay,\n currentId: null\n });\n }\n if (!open && currentId === id) {\n if (timeoutMs) {\n const timeout = window.setTimeout(unset, timeoutMs);\n return () => {\n clearTimeout(timeout);\n };\n }\n unset();\n }\n }, [open, setState, currentId, id, onOpenChange, initialDelay, timeoutMs]);\n index(() => {\n if (open) {\n setCurrentId(id);\n }\n }, [open, setCurrentId, id]);\n};\n\nfunction getAncestors(nodes, id) {\n var _nodes$find;\n let allAncestors = [];\n let currentParentId = (_nodes$find = nodes.find(node => node.id === id)) == null ? void 0 : _nodes$find.parentId;\n while (currentParentId) {\n const currentNode = nodes.find(node => node.id === currentParentId);\n currentParentId = currentNode == null ? void 0 : currentNode.parentId;\n if (currentNode) {\n allAncestors = allAncestors.concat(currentNode);\n }\n }\n return allAncestors;\n}\n\nfunction getChildren(nodes, id) {\n let allChildren = nodes.filter(node => {\n var _node$context;\n return node.parentId === id && ((_node$context = node.context) == null ? void 0 : _node$context.open);\n });\n let currentChildren = allChildren;\n while (currentChildren.length) {\n currentChildren = nodes.filter(node => {\n var _currentChildren;\n return (_currentChildren = currentChildren) == null ? void 0 : _currentChildren.some(n => {\n var _node$context2;\n return node.parentId === n.id && ((_node$context2 = node.context) == null ? void 0 : _node$context2.open);\n });\n });\n allChildren = allChildren.concat(currentChildren);\n }\n return allChildren;\n}\nfunction getDeepestNode(nodes, id) {\n let deepestNodeId;\n let maxDepth = -1;\n function findDeepest(nodeId, depth) {\n if (depth > maxDepth) {\n deepestNodeId = nodeId;\n maxDepth = depth;\n }\n const children = getChildren(nodes, nodeId);\n children.forEach(child => {\n findDeepest(child.id, depth + 1);\n });\n }\n findDeepest(id, 0);\n return nodes.find(node => node.id === deepestNodeId);\n}\n\n// Modified to add conditional `aria-hidden` support:\n// https://github.com/theKashey/aria-hidden/blob/9220c8f4a4fd35f63bee5510a9f41a37264382d4/src/index.ts\nlet counterMap = /*#__PURE__*/new WeakMap();\nlet uncontrolledElementsSet = /*#__PURE__*/new WeakSet();\nlet markerMap = {};\nlet lockCount = 0;\nconst supportsInert = () => typeof HTMLElement !== 'undefined' && 'inert' in HTMLElement.prototype;\nconst unwrapHost = node => node && (node.host || unwrapHost(node.parentNode));\nconst correctElements = (parent, targets) => targets.map(target => {\n if (parent.contains(target)) {\n return target;\n }\n const correctedTarget = unwrapHost(target);\n if (parent.contains(correctedTarget)) {\n return correctedTarget;\n }\n return null;\n}).filter(x => x != null);\nfunction applyAttributeToOthers(uncorrectedAvoidElements, body, ariaHidden, inert) {\n const markerName = 'data-floating-ui-inert';\n const controlAttribute = inert ? 'inert' : ariaHidden ? 'aria-hidden' : null;\n const avoidElements = correctElements(body, uncorrectedAvoidElements);\n const elementsToKeep = new Set();\n const elementsToStop = new Set(avoidElements);\n const hiddenElements = [];\n if (!markerMap[markerName]) {\n markerMap[markerName] = new WeakMap();\n }\n const markerCounter = markerMap[markerName];\n avoidElements.forEach(keep);\n deep(body);\n elementsToKeep.clear();\n function keep(el) {\n if (!el || elementsToKeep.has(el)) {\n return;\n }\n elementsToKeep.add(el);\n el.parentNode && keep(el.parentNode);\n }\n function deep(parent) {\n if (!parent || elementsToStop.has(parent)) {\n return;\n }\n Array.prototype.forEach.call(parent.children, node => {\n if (elementsToKeep.has(node)) {\n deep(node);\n } else {\n const attr = controlAttribute ? node.getAttribute(controlAttribute) : null;\n const alreadyHidden = attr !== null && attr !== 'false';\n const counterValue = (counterMap.get(node) || 0) + 1;\n const markerValue = (markerCounter.get(node) || 0) + 1;\n counterMap.set(node, counterValue);\n markerCounter.set(node, markerValue);\n hiddenElements.push(node);\n if (counterValue === 1 && alreadyHidden) {\n uncontrolledElementsSet.add(node);\n }\n if (markerValue === 1) {\n node.setAttribute(markerName, '');\n }\n if (!alreadyHidden && controlAttribute) {\n node.setAttribute(controlAttribute, 'true');\n }\n }\n });\n }\n lockCount++;\n return () => {\n hiddenElements.forEach(element => {\n const counterValue = (counterMap.get(element) || 0) - 1;\n const markerValue = (markerCounter.get(element) || 0) - 1;\n counterMap.set(element, counterValue);\n markerCounter.set(element, markerValue);\n if (!counterValue) {\n if (!uncontrolledElementsSet.has(element) && controlAttribute) {\n element.removeAttribute(controlAttribute);\n }\n uncontrolledElementsSet.delete(element);\n }\n if (!markerValue) {\n element.removeAttribute(markerName);\n }\n });\n lockCount--;\n if (!lockCount) {\n counterMap = new WeakMap();\n counterMap = new WeakMap();\n uncontrolledElementsSet = new WeakSet();\n markerMap = {};\n }\n };\n}\nfunction markOthers(avoidElements, ariaHidden, inert) {\n if (ariaHidden === void 0) {\n ariaHidden = false;\n }\n if (inert === void 0) {\n inert = false;\n }\n const body = getDocument(avoidElements[0]).body;\n return applyAttributeToOthers(avoidElements.concat(Array.from(body.querySelectorAll('[aria-live]'))), body, ariaHidden, inert);\n}\n\nconst getTabbableOptions = () => ({\n getShadowRoot: true,\n displayCheck:\n // JSDOM does not support the `tabbable` library. To solve this we can\n // check if `ResizeObserver` is a real function (not polyfilled), which\n // determines if the current environment is JSDOM-like.\n typeof ResizeObserver === 'function' && ResizeObserver.toString().includes('[native code]') ? 'full' : 'none'\n});\nfunction getTabbableIn(container, direction) {\n const allTabbable = tabbable(container, getTabbableOptions());\n if (direction === 'prev') {\n allTabbable.reverse();\n }\n const activeIndex = allTabbable.indexOf(activeElement(getDocument(container)));\n const nextTabbableElements = allTabbable.slice(activeIndex + 1);\n return nextTabbableElements[0];\n}\nfunction getNextTabbable() {\n return getTabbableIn(document.body, 'next');\n}\nfunction getPreviousTabbable() {\n return getTabbableIn(document.body, 'prev');\n}\nfunction isOutsideEvent(event, container) {\n const containerElement = container || event.currentTarget;\n const relatedTarget = event.relatedTarget;\n return !relatedTarget || !contains(containerElement, relatedTarget);\n}\nfunction disableFocusInside(container) {\n const tabbableElements = tabbable(container, getTabbableOptions());\n tabbableElements.forEach(element => {\n element.dataset.tabindex = element.getAttribute('tabindex') || '';\n element.setAttribute('tabindex', '-1');\n });\n}\nfunction enableFocusInside(container) {\n const elements = container.querySelectorAll('[data-tabindex]');\n elements.forEach(element => {\n const tabindex = element.dataset.tabindex;\n // biome-ignore lint/performance/noDelete: purity\n delete element.dataset.tabindex;\n if (tabindex) {\n element.setAttribute('tabindex', tabindex);\n } else {\n element.removeAttribute('tabindex');\n }\n });\n}\n\n// See Diego Haz's Sandbox for making this logic work well on Safari/iOS:\n// https://codesandbox.io/s/tabbable-portal-f4tng?file=/src/FocusTrap.tsx\n\nconst HIDDEN_STYLES = {\n border: 0,\n clip: 'rect(0 0 0 0)',\n height: '1px',\n margin: '-1px',\n overflow: 'hidden',\n padding: 0,\n position: 'fixed',\n whiteSpace: 'nowrap',\n width: '1px',\n top: 0,\n left: 0\n};\nlet timeoutId;\nfunction setActiveElementOnTab(event) {\n if (event.key === 'Tab') {\n event.target;\n clearTimeout(timeoutId);\n }\n}\nconst FocusGuard = /*#__PURE__*/React.forwardRef(function FocusGuard(props, ref) {\n const [role, setRole] = React.useState();\n index(() => {\n if (isSafari()) {\n // Unlike other screen readers such as NVDA and JAWS, the virtual cursor\n // on VoiceOver does trigger the onFocus event, so we can use the focus\n // trap element. On Safari, only buttons trigger the onFocus event.\n // NB: \"group\" role in the Sandbox no longer appears to work, must be a\n // button role.\n setRole('button');\n }\n document.addEventListener('keydown', setActiveElementOnTab);\n return () => {\n document.removeEventListener('keydown', setActiveElementOnTab);\n };\n }, []);\n const restProps = {\n ref,\n tabIndex: 0,\n // Role is only for VoiceOver\n role,\n 'aria-hidden': role ? undefined : true,\n [createAttribute('focus-guard')]: '',\n style: HIDDEN_STYLES\n };\n return /*#__PURE__*/React.createElement(\"span\", _extends({}, props, restProps));\n});\n\nconst PortalContext = /*#__PURE__*/React.createContext(null);\nconst attr = /*#__PURE__*/createAttribute('portal');\n\n/**\n * @see https://floating-ui.com/docs/FloatingPortal#usefloatingportalnode\n */\nfunction useFloatingPortalNode(_temp) {\n let {\n id,\n root\n } = _temp === void 0 ? {} : _temp;\n const [portalNode, setPortalNode] = React.useState(null);\n const uniqueId = useId();\n const portalContext = usePortalContext();\n const portalNodeRef = React.useRef(null);\n index(() => {\n return () => {\n portalNode == null || portalNode.remove();\n // Allow the subsequent layout effects to create a new node on updates.\n // The portal node will still be cleaned up on unmount.\n // https://github.com/floating-ui/floating-ui/issues/2454\n queueMicrotask(() => {\n portalNodeRef.current = null;\n });\n };\n }, [portalNode]);\n index(() => {\n if (portalNodeRef.current) return;\n const existingIdRoot = id ? document.getElementById(id) : null;\n if (!existingIdRoot) return;\n const subRoot = document.createElement('div');\n subRoot.id = uniqueId;\n subRoot.setAttribute(attr, '');\n existingIdRoot.appendChild(subRoot);\n portalNodeRef.current = subRoot;\n setPortalNode(subRoot);\n }, [id, uniqueId]);\n index(() => {\n if (portalNodeRef.current) return;\n let container = root || (portalContext == null ? void 0 : portalContext.portalNode);\n if (container && !isElement(container)) container = container.current;\n container = container || document.body;\n let idWrapper = null;\n if (id) {\n idWrapper = document.createElement('div');\n idWrapper.id = id;\n container.appendChild(idWrapper);\n }\n const subRoot = document.createElement('div');\n subRoot.id = uniqueId;\n subRoot.setAttribute(attr, '');\n container = idWrapper || container;\n container.appendChild(subRoot);\n portalNodeRef.current = subRoot;\n setPortalNode(subRoot);\n }, [id, root, uniqueId, portalContext]);\n return portalNode;\n}\n/**\n * Portals the floating element into a given container element — by default,\n * outside of the app root and into the body.\n * This is necessary to ensure the floating element can appear outside any\n * potential parent containers that cause clipping (such as `overflow: hidden`),\n * while retaining its location in the React tree.\n * @see https://floating-ui.com/docs/FloatingPortal\n */\nfunction FloatingPortal(_ref) {\n let {\n children,\n id,\n root = null,\n preserveTabOrder = true\n } = _ref;\n const portalNode = useFloatingPortalNode({\n id,\n root\n });\n const [focusManagerState, setFocusManagerState] = React.useState(null);\n const beforeOutsideRef = React.useRef(null);\n const afterOutsideRef = React.useRef(null);\n const beforeInsideRef = React.useRef(null);\n const afterInsideRef = React.useRef(null);\n const shouldRenderGuards =\n // The FocusManager and therefore floating element are currently open/\n // rendered.\n !!focusManagerState &&\n // Guards are only for non-modal focus management.\n !focusManagerState.modal &&\n // Don't render if unmount is transitioning.\n focusManagerState.open && preserveTabOrder && !!(root || portalNode);\n\n // https://codesandbox.io/s/tabbable-portal-f4tng?file=/src/TabbablePortal.tsx\n React.useEffect(() => {\n if (!portalNode || !preserveTabOrder || focusManagerState != null && focusManagerState.modal) {\n return;\n }\n\n // Make sure elements inside the portal element are tabbable only when the\n // portal has already been focused, either by tabbing into a focus trap\n // element outside or using the mouse.\n function onFocus(event) {\n if (portalNode && isOutsideEvent(event)) {\n const focusing = event.type === 'focusin';\n const manageFocus = focusing ? enableFocusInside : disableFocusInside;\n manageFocus(portalNode);\n }\n }\n // Listen to the event on the capture phase so they run before the focus\n // trap elements onFocus prop is called.\n portalNode.addEventListener('focusin', onFocus, true);\n portalNode.addEventListener('focusout', onFocus, true);\n return () => {\n portalNode.removeEventListener('focusin', onFocus, true);\n portalNode.removeEventListener('focusout', onFocus, true);\n };\n }, [portalNode, preserveTabOrder, focusManagerState == null ? void 0 : focusManagerState.modal]);\n return /*#__PURE__*/React.createElement(PortalContext.Provider, {\n value: React.useMemo(() => ({\n preserveTabOrder,\n beforeOutsideRef,\n afterOutsideRef,\n beforeInsideRef,\n afterInsideRef,\n portalNode,\n setFocusManagerState\n }), [preserveTabOrder, portalNode])\n }, shouldRenderGuards && portalNode && /*#__PURE__*/React.createElement(FocusGuard, {\n \"data-type\": \"outside\",\n ref: beforeOutsideRef,\n onFocus: event => {\n if (isOutsideEvent(event, portalNode)) {\n var _beforeInsideRef$curr;\n (_beforeInsideRef$curr = beforeInsideRef.current) == null || _beforeInsideRef$curr.focus();\n } else {\n const prevTabbable = getPreviousTabbable() || (focusManagerState == null ? void 0 : focusManagerState.refs.domReference.current);\n prevTabbable == null || prevTabbable.focus();\n }\n }\n }), shouldRenderGuards && portalNode && /*#__PURE__*/React.createElement(\"span\", {\n \"aria-owns\": portalNode.id,\n style: HIDDEN_STYLES\n }), portalNode && /*#__PURE__*/createPortal(children, portalNode), shouldRenderGuards && portalNode && /*#__PURE__*/React.createElement(FocusGuard, {\n \"data-type\": \"outside\",\n ref: afterOutsideRef,\n onFocus: event => {\n if (isOutsideEvent(event, portalNode)) {\n var _afterInsideRef$curre;\n (_afterInsideRef$curre = afterInsideRef.current) == null || _afterInsideRef$curre.focus();\n } else {\n const nextTabbable = getNextTabbable() || (focusManagerState == null ? void 0 : focusManagerState.refs.domReference.current);\n nextTabbable == null || nextTabbable.focus();\n (focusManagerState == null ? void 0 : focusManagerState.closeOnFocusOut) && (focusManagerState == null ? void 0 : focusManagerState.onOpenChange(false, event.nativeEvent));\n }\n }\n }));\n}\nconst usePortalContext = () => React.useContext(PortalContext);\n\nconst LIST_LIMIT = 20;\nlet previouslyFocusedElements = [];\nfunction addPreviouslyFocusedElement(element) {\n previouslyFocusedElements = previouslyFocusedElements.filter(el => el.isConnected);\n let tabbableEl = element;\n if (!tabbableEl || getNodeName(tabbableEl) === 'body') return;\n if (!isTabbable(tabbableEl, getTabbableOptions())) {\n const tabbableChild = tabbable(tabbableEl, getTabbableOptions())[0];\n if (!tabbableChild) return;\n tabbableEl = tabbableChild;\n }\n previouslyFocusedElements.push(tabbableEl);\n if (previouslyFocusedElements.length > LIST_LIMIT) {\n previouslyFocusedElements = previouslyFocusedElements.slice(-LIST_LIMIT);\n }\n}\nfunction getPreviouslyFocusedElement() {\n return previouslyFocusedElements.slice().reverse().find(el => el.isConnected);\n}\nconst VisuallyHiddenDismiss = /*#__PURE__*/React.forwardRef(function VisuallyHiddenDismiss(props, ref) {\n return /*#__PURE__*/React.createElement(\"button\", _extends({}, props, {\n type: \"button\",\n ref: ref,\n tabIndex: -1,\n style: HIDDEN_STYLES\n }));\n});\n/**\n * Provides focus management for the floating element.\n * @see https://floating-ui.com/docs/FloatingFocusManager\n */\nfunction FloatingFocusManager(props) {\n const {\n context,\n children,\n disabled = false,\n order = ['content'],\n guards: _guards = true,\n initialFocus = 0,\n returnFocus = true,\n modal = true,\n visuallyHiddenDismiss = false,\n closeOnFocusOut = true\n } = props;\n const {\n open,\n refs,\n nodeId,\n onOpenChange,\n events,\n dataRef,\n elements: {\n domReference,\n floating\n }\n } = context;\n const ignoreInitialFocus = typeof initialFocus === 'number' && initialFocus < 0;\n // If the reference is a combobox and is typeable (e.g. input/textarea),\n // there are different focus semantics. The guards should not be rendered, but\n // aria-hidden should be applied to all nodes still. Further, the visually\n // hidden dismiss button should only appear at the end of the list, not the\n // start.\n const isUntrappedTypeableCombobox = isTypeableCombobox(domReference) && ignoreInitialFocus;\n\n // Force the guards to be rendered if the `inert` attribute is not supported.\n const guards = supportsInert() ? _guards : true;\n const orderRef = useLatestRef(order);\n const initialFocusRef = useLatestRef(initialFocus);\n const returnFocusRef = useLatestRef(returnFocus);\n const tree = useFloatingTree();\n const portalContext = usePortalContext();\n const startDismissButtonRef = React.useRef(null);\n const endDismissButtonRef = React.useRef(null);\n const preventReturnFocusRef = React.useRef(false);\n const isPointerDownRef = React.useRef(false);\n const isInsidePortal = portalContext != null;\n const getTabbableContent = React.useCallback(function (container) {\n if (container === void 0) {\n container = floating;\n }\n return container ? tabbable(container, getTabbableOptions()) : [];\n }, [floating]);\n const getTabbableElements = React.useCallback(container => {\n const content = getTabbableContent(container);\n return orderRef.current.map(type => {\n if (domReference && type === 'reference') {\n return domReference;\n }\n if (floating && type === 'floating') {\n return floating;\n }\n return content;\n }).filter(Boolean).flat();\n }, [domReference, floating, orderRef, getTabbableContent]);\n React.useEffect(() => {\n if (disabled || !modal) return;\n function onKeyDown(event) {\n if (event.key === 'Tab') {\n // The focus guards have nothing to focus, so we need to stop the event.\n if (contains(floating, activeElement(getDocument(floating))) && getTabbableContent().length === 0 && !isUntrappedTypeableCombobox) {\n stopEvent(event);\n }\n const els = getTabbableElements();\n const target = getTarget(event);\n if (orderRef.current[0] === 'reference' && target === domReference) {\n stopEvent(event);\n if (event.shiftKey) {\n enqueueFocus(els[els.length - 1]);\n } else {\n enqueueFocus(els[1]);\n }\n }\n if (orderRef.current[1] === 'floating' && target === floating && event.shiftKey) {\n stopEvent(event);\n enqueueFocus(els[0]);\n }\n }\n }\n const doc = getDocument(floating);\n doc.addEventListener('keydown', onKeyDown);\n return () => {\n doc.removeEventListener('keydown', onKeyDown);\n };\n }, [disabled, domReference, floating, modal, orderRef, isUntrappedTypeableCombobox, getTabbableContent, getTabbableElements]);\n React.useEffect(() => {\n if (disabled || !closeOnFocusOut) return;\n\n // In Safari, buttons lose focus when pressing them.\n function handlePointerDown() {\n isPointerDownRef.current = true;\n setTimeout(() => {\n isPointerDownRef.current = false;\n });\n }\n function handleFocusOutside(event) {\n const relatedTarget = event.relatedTarget;\n queueMicrotask(() => {\n const movedToUnrelatedNode = !(contains(domReference, relatedTarget) || contains(floating, relatedTarget) || contains(relatedTarget, floating) || contains(portalContext == null ? void 0 : portalContext.portalNode, relatedTarget) || relatedTarget != null && relatedTarget.hasAttribute(createAttribute('focus-guard')) || tree && (getChildren(tree.nodesRef.current, nodeId).find(node => {\n var _node$context, _node$context2;\n return contains((_node$context = node.context) == null ? void 0 : _node$context.elements.floating, relatedTarget) || contains((_node$context2 = node.context) == null ? void 0 : _node$context2.elements.domReference, relatedTarget);\n }) || getAncestors(tree.nodesRef.current, nodeId).find(node => {\n var _node$context3, _node$context4;\n return ((_node$context3 = node.context) == null ? void 0 : _node$context3.elements.floating) === relatedTarget || ((_node$context4 = node.context) == null ? void 0 : _node$context4.elements.domReference) === relatedTarget;\n })));\n\n // Focus did not move inside the floating tree, and there are no tabbable\n // portal guards to handle closing.\n if (relatedTarget && movedToUnrelatedNode && !isPointerDownRef.current &&\n // Fix React 18 Strict Mode returnFocus due to double rendering.\n relatedTarget !== getPreviouslyFocusedElement()) {\n preventReturnFocusRef.current = true;\n onOpenChange(false, event);\n }\n });\n }\n if (floating && isHTMLElement(domReference)) {\n domReference.addEventListener('focusout', handleFocusOutside);\n domReference.addEventListener('pointerdown', handlePointerDown);\n !modal && floating.addEventListener('focusout', handleFocusOutside);\n return () => {\n domReference.removeEventListener('focusout', handleFocusOutside);\n domReference.removeEventListener('pointerdown', handlePointerDown);\n !modal && floating.removeEventListener('focusout', handleFocusOutside);\n };\n }\n }, [disabled, domReference, floating, modal, nodeId, tree, portalContext, onOpenChange, closeOnFocusOut]);\n React.useEffect(() => {\n var _portalContext$portal;\n if (disabled) return;\n\n // Don't hide portals nested within the parent portal.\n const portalNodes = Array.from((portalContext == null || (_portalContext$portal = portalContext.portalNode) == null ? void 0 : _portalContext$portal.querySelectorAll(\"[\" + createAttribute('portal') + \"]\")) || []);\n if (floating) {\n const insideElements = [floating, ...portalNodes, startDismissButtonRef.current, endDismissButtonRef.current, orderRef.current.includes('reference') || isUntrappedTypeableCombobox ? domReference : null].filter(x => x != null);\n const cleanup = modal || isUntrappedTypeableCombobox ? markOthers(insideElements, guards, !guards) : markOthers(insideElements);\n return () => {\n cleanup();\n };\n }\n }, [disabled, domReference, floating, modal, orderRef, portalContext, isUntrappedTypeableCombobox, guards]);\n index(() => {\n if (disabled || !floating) return;\n const doc = getDocument(floating);\n const previouslyFocusedElement = activeElement(doc);\n\n // Wait for any layout effect state setters to execute to set `tabIndex`.\n queueMicrotask(() => {\n const focusableElements = getTabbableElements(floating);\n const initialFocusValue = initialFocusRef.current;\n const elToFocus = (typeof initialFocusValue === 'number' ? focusableElements[initialFocusValue] : initialFocusValue.current) || floating;\n const focusAlreadyInsideFloatingEl = contains(floating, previouslyFocusedElement);\n if (!ignoreInitialFocus && !focusAlreadyInsideFloatingEl && open) {\n enqueueFocus(elToFocus, {\n preventScroll: elToFocus === floating\n });\n }\n });\n }, [disabled, open, floating, ignoreInitialFocus, getTabbableElements, initialFocusRef]);\n index(() => {\n if (disabled || !floating) return;\n let preventReturnFocusScroll = false;\n const doc = getDocument(floating);\n const previouslyFocusedElement = activeElement(doc);\n const contextData = dataRef.current;\n addPreviouslyFocusedElement(previouslyFocusedElement);\n\n // Dismissing via outside press should always ignore `returnFocus` to\n // prevent unwanted scrolling.\n function onOpenChange(_ref) {\n let {\n reason,\n event,\n nested\n } = _ref;\n if (reason === 'escape-key' && refs.domReference.current) {\n addPreviouslyFocusedElement(refs.domReference.current);\n }\n if (reason === 'hover' && event.type === 'mouseleave') {\n preventReturnFocusRef.current = true;\n }\n if (reason !== 'outside-press') return;\n if (nested) {\n preventReturnFocusRef.current = false;\n preventReturnFocusScroll = true;\n } else {\n preventReturnFocusRef.current = !(isVirtualClick(event) || isVirtualPointerEvent(event));\n }\n }\n events.on('openchange', onOpenChange);\n return () => {\n events.off('openchange', onOpenChange);\n const activeEl = activeElement(doc);\n const isFocusInsideFloatingTree = contains(floating, activeEl) || tree && getChildren(tree.nodesRef.current, nodeId).some(node => {\n var _node$context5;\n return contains((_node$context5 = node.context) == null ? void 0 : _node$context5.elements.floating, activeEl);\n });\n const shouldFocusReference = isFocusInsideFloatingTree || contextData.openEvent && ['click', 'mousedown'].includes(contextData.openEvent.type);\n if (shouldFocusReference && refs.domReference.current) {\n addPreviouslyFocusedElement(refs.domReference.current);\n }\n const returnElement = getPreviouslyFocusedElement();\n if (returnFocusRef.current && !preventReturnFocusRef.current && isHTMLElement(returnElement) && (\n // If the focus moved somewhere else after mount, avoid returning focus\n // since it likely entered a different element which should be\n // respected: https://github.com/floating-ui/floating-ui/issues/2607\n returnElement !== activeEl && activeEl !== doc.body ? isFocusInsideFloatingTree : true)) {\n enqueueFocus(returnElement, {\n // When dismissing nested floating elements, by the time the rAF has\n // executed, the menus will all have been unmounted. When they try\n // to get focused, the calls get ignored — leaving the root\n // reference focused as desired.\n cancelPrevious: false,\n preventScroll: preventReturnFocusScroll\n });\n }\n };\n }, [disabled, floating, returnFocusRef, dataRef, refs, events, tree, nodeId]);\n\n // Synchronize the `context` & `modal` value to the FloatingPortal context.\n // It will decide whether or not it needs to render its own guards.\n index(() => {\n if (disabled || !portalContext) return;\n portalContext.setFocusManagerState({\n modal,\n closeOnFocusOut,\n open,\n onOpenChange,\n refs\n });\n return () => {\n portalContext.setFocusManagerState(null);\n };\n }, [disabled, portalContext, modal, open, onOpenChange, refs, closeOnFocusOut]);\n index(() => {\n if (disabled || !floating || typeof MutationObserver !== 'function' || ignoreInitialFocus) {\n return;\n }\n const handleMutation = () => {\n const tabIndex = floating.getAttribute('tabindex');\n if (orderRef.current.includes('floating') || activeElement(getDocument(floating)) !== refs.domReference.current && getTabbableContent().length === 0) {\n if (tabIndex !== '0') {\n floating.setAttribute('tabindex', '0');\n }\n } else if (tabIndex !== '-1') {\n floating.setAttribute('tabindex', '-1');\n }\n };\n handleMutation();\n const observer = new MutationObserver(handleMutation);\n observer.observe(floating, {\n childList: true,\n subtree: true,\n attributes: true\n });\n return () => {\n observer.disconnect();\n };\n }, [disabled, floating, refs, orderRef, getTabbableContent, ignoreInitialFocus]);\n function renderDismissButton(location) {\n if (disabled || !visuallyHiddenDismiss || !modal) {\n return null;\n }\n return /*#__PURE__*/React.createElement(VisuallyHiddenDismiss, {\n ref: location === 'start' ? startDismissButtonRef : endDismissButtonRef,\n onClick: event => onOpenChange(false, event.nativeEvent)\n }, typeof visuallyHiddenDismiss === 'string' ? visuallyHiddenDismiss : 'Dismiss');\n }\n const shouldRenderGuards = !disabled && guards && (isInsidePortal || modal);\n return /*#__PURE__*/React.createElement(React.Fragment, null, shouldRenderGuards && /*#__PURE__*/React.createElement(FocusGuard, {\n \"data-type\": \"inside\",\n ref: portalContext == null ? void 0 : portalContext.beforeInsideRef,\n onFocus: event => {\n if (modal) {\n const els = getTabbableElements();\n enqueueFocus(order[0] === 'reference' ? els[0] : els[els.length - 1]);\n } else if (portalContext != null && portalContext.preserveTabOrder && portalContext.portalNode) {\n preventReturnFocusRef.current = false;\n if (isOutsideEvent(event, portalContext.portalNode)) {\n const nextTabbable = getNextTabbable() || domReference;\n nextTabbable == null || nextTabbable.focus();\n } else {\n var _portalContext$before;\n (_portalContext$before = portalContext.beforeOutsideRef.current) == null || _portalContext$before.focus();\n }\n }\n }\n }), !isUntrappedTypeableCombobox && renderDismissButton('start'), children, renderDismissButton('end'), shouldRenderGuards && /*#__PURE__*/React.createElement(FocusGuard, {\n \"data-type\": \"inside\",\n ref: portalContext == null ? void 0 : portalContext.afterInsideRef,\n onFocus: event => {\n if (modal) {\n enqueueFocus(getTabbableElements()[0]);\n } else if (portalContext != null && portalContext.preserveTabOrder && portalContext.portalNode) {\n if (closeOnFocusOut) {\n preventReturnFocusRef.current = true;\n }\n if (isOutsideEvent(event, portalContext.portalNode)) {\n const prevTabbable = getPreviousTabbable() || domReference;\n prevTabbable == null || prevTabbable.focus();\n } else {\n var _portalContext$afterO;\n (_portalContext$afterO = portalContext.afterOutsideRef.current) == null || _portalContext$afterO.focus();\n }\n }\n }\n }));\n}\n\nconst activeLocks = /*#__PURE__*/new Set();\n/**\n * Provides base styling for a fixed overlay element to dim content or block\n * pointer events behind a floating element.\n * It's a regular `<div>`, so it can be styled via any CSS solution you prefer.\n * @see https://floating-ui.com/docs/FloatingOverlay\n */\nconst FloatingOverlay = /*#__PURE__*/React.forwardRef(function FloatingOverlay(_ref, ref) {\n let {\n lockScroll = false,\n ...rest\n } = _ref;\n const lockId = useId();\n index(() => {\n if (!lockScroll) return;\n activeLocks.add(lockId);\n const isIOS = /iP(hone|ad|od)|iOS/.test(getPlatform());\n const bodyStyle = document.body.style;\n // RTL <body> scrollbar\n const scrollbarX = Math.round(document.documentElement.getBoundingClientRect().left) + document.documentElement.scrollLeft;\n const paddingProp = scrollbarX ? 'paddingLeft' : 'paddingRight';\n const scrollbarWidth = window.innerWidth - document.documentElement.clientWidth;\n const scrollX = bodyStyle.left ? parseFloat(bodyStyle.left) : window.pageXOffset;\n const scrollY = bodyStyle.top ? parseFloat(bodyStyle.top) : window.pageYOffset;\n bodyStyle.overflow = 'hidden';\n if (scrollbarWidth) {\n bodyStyle[paddingProp] = scrollbarWidth + \"px\";\n }\n\n // Only iOS doesn't respect `overflow: hidden` on document.body, and this\n // technique has fewer side effects.\n if (isIOS) {\n var _window$visualViewpor, _window$visualViewpor2;\n // iOS 12 does not support `visualViewport`.\n const offsetLeft = ((_window$visualViewpor = window.visualViewport) == null ? void 0 : _window$visualViewpor.offsetLeft) || 0;\n const offsetTop = ((_window$visualViewpor2 = window.visualViewport) == null ? void 0 : _window$visualViewpor2.offsetTop) || 0;\n Object.assign(bodyStyle, {\n position: 'fixed',\n top: -(scrollY - Math.floor(offsetTop)) + \"px\",\n left: -(scrollX - Math.floor(offsetLeft)) + \"px\",\n right: '0'\n });\n }\n return () => {\n activeLocks.delete(lockId);\n if (activeLocks.size === 0) {\n Object.assign(bodyStyle, {\n overflow: '',\n [paddingProp]: ''\n });\n if (isIOS) {\n Object.assign(bodyStyle, {\n position: '',\n top: '',\n left: '',\n right: ''\n });\n window.scrollTo(scrollX, scrollY);\n }\n }\n };\n }, [lockId, lockScroll]);\n return /*#__PURE__*/React.createElement(\"div\", _extends({\n ref: ref\n }, rest, {\n style: {\n position: 'fixed',\n overflow: 'auto',\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n ...rest.style\n }\n }));\n});\n\nfunction isButtonTarget(event) {\n return isHTMLElement(event.target) && event.target.tagName === 'BUTTON';\n}\nfunction isSpaceIgnored(element) {\n return isTypeableElement(element);\n}\n/**\n * Opens or closes the floating element when clicking the reference element.\n * @see https://floating-ui.com/docs/useClick\n */\nfunction useClick(context, props) {\n if (props === void 0) {\n props = {};\n }\n const {\n open,\n onOpenChange,\n dataRef,\n elements: {\n domReference\n }\n } = context;\n const {\n enabled = true,\n event: eventOption = 'click',\n toggle = true,\n ignoreMouse = false,\n keyboardHandlers = true\n } = props;\n const pointerTypeRef = React.useRef();\n const didKeyDownRef = React.useRef(false);\n return React.useMemo(() => {\n if (!enabled) return {};\n return {\n reference: {\n onPointerDown(event) {\n pointerTypeRef.current = event.pointerType;\n },\n onMouseDown(event) {\n // Ignore all buttons except for the \"main\" button.\n // https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/button\n if (event.button !== 0) {\n return;\n }\n if (isMouseLikePointerType(pointerTypeRef.current, true) && ignoreMouse) {\n return;\n }\n if (eventOption === 'click') {\n return;\n }\n if (open && toggle && (dataRef.current.openEvent ? dataRef.current.openEvent.type === 'mousedown' : true)) {\n onOpenChange(false, event.nativeEvent, 'click');\n } else {\n // Prevent stealing focus from the floating element\n event.preventDefault();\n onOpenChange(true, event.nativeEvent, 'click');\n }\n },\n onClick(event) {\n if (eventOption === 'mousedown' && pointerTypeRef.current) {\n pointerTypeRef.current = undefined;\n return;\n }\n if (isMouseLikePointerType(pointerTypeRef.current, true) && ignoreMouse) {\n return;\n }\n if (open && toggle && (dataRef.current.openEvent ? dataRef.current.openEvent.type === 'click' : true)) {\n onOpenChange(false, event.nativeEvent, 'click');\n } else {\n onOpenChange(true, event.nativeEvent, 'click');\n }\n },\n onKeyDown(event) {\n pointerTypeRef.current = undefined;\n if (event.defaultPrevented || !keyboardHandlers || isButtonTarget(event)) {\n return;\n }\n if (event.key === ' ' && !isSpaceIgnored(domReference)) {\n // Prevent scrolling\n event.preventDefault();\n didKeyDownRef.current = true;\n }\n if (event.key === 'Enter') {\n if (open && toggle) {\n onOpenChange(false, event.nativeEvent, 'click');\n } else {\n onOpenChange(true, event.nativeEvent, 'click');\n }\n }\n },\n onKeyUp(event) {\n if (event.defaultPrevented || !keyboardHandlers || isButtonTarget(event) || isSpaceIgnored(domReference)) {\n return;\n }\n if (event.key === ' ' && didKeyDownRef.current) {\n didKeyDownRef.current = false;\n if (open && toggle) {\n onOpenChange(false, event.nativeEvent, 'click');\n } else {\n onOpenChange(true, event.nativeEvent, 'click');\n }\n }\n }\n }\n };\n }, [enabled, dataRef, eventOption, ignoreMouse, keyboardHandlers, domReference, toggle, open, onOpenChange]);\n}\n\nfunction createVirtualElement(domRef, data) {\n let offsetX = null;\n let offsetY = null;\n let isAutoUpdateEvent = false;\n return {\n contextElement: domRef.current || undefined,\n getBoundingClientRect() {\n var _domRef$current, _data$dataRef$current;\n const domRect = ((_domRef$current = domRef.current) == null ? void 0 : _domRef$current.getBoundingClientRect()) || {\n width: 0,\n height: 0,\n x: 0,\n y: 0\n };\n const isXAxis = data.axis === 'x' || data.axis === 'both';\n const isYAxis = data.axis === 'y' || data.axis === 'both';\n const canTrackCursorOnAutoUpdate = ['mouseenter', 'mousemove'].includes(((_data$dataRef$current = data.dataRef.current.openEvent) == null ? void 0 : _data$dataRef$current.type) || '') && data.pointerType !== 'touch';\n let width = domRect.width;\n let height = domRect.height;\n let x = domRect.x;\n let y = domRect.y;\n if (offsetX == null && data.x && isXAxis) {\n offsetX = domRect.x - data.x;\n }\n if (offsetY == null && data.y && isYAxis) {\n offsetY = domRect.y - data.y;\n }\n x -= offsetX || 0;\n y -= offsetY || 0;\n width = 0;\n height = 0;\n if (!isAutoUpdateEvent || canTrackCursorOnAutoUpdate) {\n width = data.axis === 'y' ? domRect.width : 0;\n height = data.axis === 'x' ? domRect.height : 0;\n x = isXAxis && data.x != null ? data.x : x;\n y = isYAxis && data.y != null ? data.y : y;\n } else if (isAutoUpdateEvent && !canTrackCursorOnAutoUpdate) {\n height = data.axis === 'x' ? domRect.height : height;\n width = data.axis === 'y' ? domRect.width : width;\n }\n isAutoUpdateEvent = true;\n return {\n width,\n height,\n x,\n y,\n top: y,\n right: x + width,\n bottom: y + height,\n left: x\n };\n }\n };\n}\nfunction isMouseBasedEvent(event) {\n return event != null && event.clientX != null;\n}\n/**\n * Positions the floating element relative to a client point (in the viewport),\n * such as the mouse position. By default, it follows the mouse cursor.\n * @see https://floating-ui.com/docs/useClientPoint\n */\nfunction useClientPoint(context, props) {\n if (props === void 0) {\n props = {};\n }\n const {\n open,\n refs,\n dataRef,\n elements: {\n floating\n }\n } = context;\n const {\n enabled = true,\n axis = 'both',\n x = null,\n y = null\n } = props;\n const initialRef = React.useRef(false);\n const cleanupListenerRef = React.useRef(null);\n const [pointerType, setPointerType] = React.useState();\n const [reactive, setReactive] = React.useState([]);\n const setReference = useEffectEvent((x, y) => {\n if (initialRef.current) return;\n\n // Prevent setting if the open event was not a mouse-like one\n // (e.g. focus to open, then hover over the reference element).\n // Only apply if the event exists.\n if (dataRef.current.openEvent && !isMouseBasedEvent(dataRef.current.openEvent)) {\n return;\n }\n refs.setPositionReference(createVirtualElement(refs.domReference, {\n x,\n y,\n axis,\n dataRef,\n pointerType\n }));\n });\n const handleReferenceEnterOrMove = useEffectEvent(event => {\n if (x != null || y != null) return;\n if (!open) {\n setReference(event.clientX, event.clientY);\n } else if (!cleanupListenerRef.current) {\n // If there's no cleanup, there's no listener, but we want to ensure\n // we add the listener if the cursor landed on the floating element and\n // then back on the reference (i.e. it's interactive).\n setReactive([]);\n }\n });\n\n // If the pointer is a mouse-like pointer, we want to continue following the\n // mouse even if the floating element is transitioning out. On touch\n // devices, this is undesirable because the floating element will move to\n // the dismissal touch point.\n const openCheck = isMouseLikePointerType(pointerType) ? floating : open;\n const addListener = React.useCallback(() => {\n // Explicitly specified `x`/`y` coordinates shouldn't add a listener.\n if (!openCheck || !enabled || x != null || y != null) return;\n const win = getWindow(refs.floating.current);\n function handleMouseMove(event) {\n const target = getTarget(event);\n if (!contains(refs.floating.current, target)) {\n setReference(event.clientX, event.clientY);\n } else {\n win.removeEventListener('mousemove', handleMouseMove);\n cleanupListenerRef.current = null;\n }\n }\n if (!dataRef.current.openEvent || isMouseBasedEvent(dataRef.current.openEvent)) {\n win.addEventListener('mousemove', handleMouseMove);\n const cleanup = () => {\n win.removeEventListener('mousemove', handleMouseMove);\n cleanupListenerRef.current = null;\n };\n cleanupListenerRef.current = cleanup;\n return cleanup;\n }\n refs.setPositionReference(refs.domReference.current);\n }, [dataRef, enabled, openCheck, refs, setReference, x, y]);\n\n // biome-ignore lint/correctness/useExhaustiveDependencies: intentionally specifying `reactive`\n React.useEffect(() => {\n return addListener();\n }, [addListener, reactive]);\n React.useEffect(() => {\n if (enabled && !floating) {\n initialRef.current = false;\n }\n }, [enabled, floating]);\n React.useEffect(() => {\n if (!enabled && open) {\n initialRef.current = true;\n }\n }, [enabled, open]);\n index(() => {\n if (enabled && (x != null || y != null)) {\n initialRef.current = false;\n setReference(x, y);\n }\n }, [enabled, x, y, setReference]);\n return React.useMemo(() => {\n if (!enabled) return {};\n function setPointerTypeRef(_ref) {\n let {\n pointerType\n } = _ref;\n setPointerType(pointerType);\n }\n return {\n reference: {\n onPointerDown: setPointerTypeRef,\n onPointerEnter: setPointerTypeRef,\n onMouseMove: handleReferenceEnterOrMove,\n onMouseEnter: handleReferenceEnterOrMove\n }\n };\n }, [enabled, handleReferenceEnterOrMove]);\n}\n\nconst bubbleHandlerKeys = {\n pointerdown: 'onPointerDown',\n mousedown: 'onMouseDown',\n click: 'onClick'\n};\nconst captureHandlerKeys = {\n pointerdown: 'onPointerDownCapture',\n mousedown: 'onMouseDownCapture',\n click: 'onClickCapture'\n};\nconst normalizeProp = normalizable => {\n var _normalizable$escapeK, _normalizable$outside;\n return {\n escapeKey: typeof normalizable === 'boolean' ? normalizable : (_normalizable$escapeK = normalizable == null ? void 0 : normalizable.escapeKey) != null ? _normalizable$escapeK : false,\n outsidePress: typeof normalizable === 'boolean' ? normalizable : (_normalizable$outside = normalizable == null ? void 0 : normalizable.outsidePress) != null ? _normalizable$outside : true\n };\n};\n/**\n * Closes the floating element when a dismissal is requested — by default, when\n * the user presses the `escape` key or outside of the floating element.\n * @see https://floating-ui.com/docs/useDismiss\n */\nfunction useDismiss(context, props) {\n if (props === void 0) {\n props = {};\n }\n const {\n open,\n onOpenChange,\n nodeId,\n elements: {\n reference,\n domReference,\n floating\n },\n dataRef\n } = context;\n const {\n enabled = true,\n escapeKey = true,\n outsidePress: unstable_outsidePress = true,\n outsidePressEvent = 'pointerdown',\n referencePress = false,\n referencePressEvent = 'pointerdown',\n ancestorScroll = false,\n bubbles,\n capture\n } = props;\n const tree = useFloatingTree();\n const outsidePressFn = useEffectEvent(typeof unstable_outsidePress === 'function' ? unstable_outsidePress : () => false);\n const outsidePress = typeof unstable_outsidePress === 'function' ? outsidePressFn : unstable_outsidePress;\n const insideReactTreeRef = React.useRef(false);\n const endedOrStartedInsideRef = React.useRef(false);\n const {\n escapeKey: escapeKeyBubbles,\n outsidePress: outsidePressBubbles\n } = normalizeProp(bubbles);\n const {\n escapeKey: escapeKeyCapture,\n outsidePress: outsidePressCapture\n } = normalizeProp(capture);\n const closeOnEscapeKeyDown = useEffectEvent(event => {\n if (!open || !enabled || !escapeKey || event.key !== 'Escape') {\n return;\n }\n const children = tree ? getChildren(tree.nodesRef.current, nodeId) : [];\n if (!escapeKeyBubbles) {\n event.stopPropagation();\n if (children.length > 0) {\n let shouldDismiss = true;\n children.forEach(child => {\n var _child$context;\n if ((_child$context = child.context) != null && _child$context.open && !child.context.dataRef.current.__escapeKeyBubbles) {\n shouldDismiss = false;\n return;\n }\n });\n if (!shouldDismiss) {\n return;\n }\n }\n }\n onOpenChange(false, isReactEvent(event) ? event.nativeEvent : event, 'escape-key');\n });\n const closeOnEscapeKeyDownCapture = useEffectEvent(event => {\n var _getTarget2;\n const callback = () => {\n var _getTarget;\n closeOnEscapeKeyDown(event);\n (_getTarget = getTarget(event)) == null || _getTarget.removeEventListener('keydown', callback);\n };\n (_getTarget2 = getTarget(event)) == null || _getTarget2.addEventListener('keydown', callback);\n });\n const closeOnPressOutside = useEffectEvent(event => {\n // Given developers can stop the propagation of the synthetic event,\n // we can only be confident with a positive value.\n const insideReactTree = insideReactTreeRef.current;\n insideReactTreeRef.current = false;\n\n // When click outside is lazy (`click` event), handle dragging.\n // Don't close if:\n // - The click started inside the floating element.\n // - The click ended inside the floating element.\n const endedOrStartedInside = endedOrStartedInsideRef.current;\n endedOrStartedInsideRef.current = false;\n if (outsidePressEvent === 'click' && endedOrStartedInside) {\n return;\n }\n if (insideReactTree) {\n return;\n }\n if (typeof outsidePress === 'function' && !outsidePress(event)) {\n return;\n }\n const target = getTarget(event);\n const inertSelector = \"[\" + createAttribute('inert') + \"]\";\n const markers = getDocument(floating).querySelectorAll(inertSelector);\n let targetRootAncestor = isElement(target) ? target : null;\n while (targetRootAncestor && !isLastTraversableNode(targetRootAncestor)) {\n const nextParent = getParentNode(targetRootAncestor);\n if (isLastTraversableNode(nextParent) || !isElement(nextParent)) {\n break;\n }\n targetRootAncestor = nextParent;\n }\n\n // Check if the click occurred on a third-party element injected after the\n // floating element rendered.\n if (markers.length && isElement(target) && !isRootElement(target) &&\n // Clicked on a direct ancestor (e.g. FloatingOverlay).\n !contains(target, floating) &&\n // If the target root element contains none of the markers, then the\n // element was injected after the floating element rendered.\n Array.from(markers).every(marker => !contains(targetRootAncestor, marker))) {\n return;\n }\n\n // Check if the click occurred on the scrollbar\n if (isHTMLElement(target) && floating) {\n // In Firefox, `target.scrollWidth > target.clientWidth` for inline\n // elements.\n const canScrollX = target.clientWidth > 0 && target.scrollWidth > target.clientWidth;\n const canScrollY = target.clientHeight > 0 && target.scrollHeight > target.clientHeight;\n let xCond = canScrollY && event.offsetX > target.clientWidth;\n\n // In some browsers it is possible to change the <body> (or window)\n // scrollbar to the left side, but is very rare and is difficult to\n // check for. Plus, for modal dialogs with backdrops, it is more\n // important that the backdrop is checked but not so much the window.\n if (canScrollY) {\n const isRTL = getComputedStyle(target).direction === 'rtl';\n if (isRTL) {\n xCond = event.offsetX <= target.offsetWidth - target.clientWidth;\n }\n }\n if (xCond || canScrollX && event.offsetY > target.clientHeight) {\n return;\n }\n }\n const targetIsInsideChildren = tree && getChildren(tree.nodesRef.current, nodeId).some(node => {\n var _node$context;\n return isEventTargetWithin(event, (_node$context = node.context) == null ? void 0 : _node$context.elements.floating);\n });\n if (isEventTargetWithin(event, floating) || isEventTargetWithin(event, domReference) || targetIsInsideChildren) {\n return;\n }\n const children = tree ? getChildren(tree.nodesRef.current, nodeId) : [];\n if (children.length > 0) {\n let shouldDismiss = true;\n children.forEach(child => {\n var _child$context2;\n if ((_child$context2 = child.context) != null && _child$context2.open && !child.context.dataRef.current.__outsidePressBubbles) {\n shouldDismiss = false;\n return;\n }\n });\n if (!shouldDismiss) {\n return;\n }\n }\n onOpenChange(false, event, 'outside-press');\n });\n const closeOnPressOutsideCapture = useEffectEvent(event => {\n var _getTarget4;\n const callback = () => {\n var _getTarget3;\n closeOnPressOutside(event);\n (_getTarget3 = getTarget(event)) == null || _getTarget3.removeEventListener(outsidePressEvent, callback);\n };\n (_getTarget4 = getTarget(event)) == null || _getTarget4.addEventListener(outsidePressEvent, callback);\n });\n React.useEffect(() => {\n if (!open || !enabled) {\n return;\n }\n dataRef.current.__escapeKeyBubbles = escapeKeyBubbles;\n dataRef.current.__outsidePressBubbles = outsidePressBubbles;\n function onScroll(event) {\n onOpenChange(false, event, 'ancestor-scroll');\n }\n const doc = getDocument(floating);\n escapeKey && doc.addEventListener('keydown', escapeKeyCapture ? closeOnEscapeKeyDownCapture : closeOnEscapeKeyDown, escapeKeyCapture);\n outsidePress && doc.addEventListener(outsidePressEvent, outsidePressCapture ? closeOnPressOutsideCapture : closeOnPressOutside, outsidePressCapture);\n let ancestors = [];\n if (ancestorScroll) {\n if (isElement(domReference)) {\n ancestors = getOverflowAncestors(domReference);\n }\n if (isElement(floating)) {\n ancestors = ancestors.concat(getOverflowAncestors(floating));\n }\n if (!isElement(reference) && reference && reference.contextElement) {\n ancestors = ancestors.concat(getOverflowAncestors(reference.contextElement));\n }\n }\n\n // Ignore the visual viewport for scrolling dismissal (allow pinch-zoom)\n ancestors = ancestors.filter(ancestor => {\n var _doc$defaultView;\n return ancestor !== ((_doc$defaultView = doc.defaultView) == null ? void 0 : _doc$defaultView.visualViewport);\n });\n ancestors.forEach(ancestor => {\n ancestor.addEventListener('scroll', onScroll, {\n passive: true\n });\n });\n return () => {\n escapeKey && doc.removeEventListener('keydown', escapeKeyCapture ? closeOnEscapeKeyDownCapture : closeOnEscapeKeyDown, escapeKeyCapture);\n outsidePress && doc.removeEventListener(outsidePressEvent, outsidePressCapture ? closeOnPressOutsideCapture : closeOnPressOutside, outsidePressCapture);\n ancestors.forEach(ancestor => {\n ancestor.removeEventListener('scroll', onScroll);\n });\n };\n }, [dataRef, floating, domReference, reference, escapeKey, outsidePress, outsidePressEvent, open, onOpenChange, ancestorScroll, enabled, escapeKeyBubbles, outsidePressBubbles, closeOnEscapeKeyDown, escapeKeyCapture, closeOnEscapeKeyDownCapture, closeOnPressOutside, outsidePressCapture, closeOnPressOutsideCapture]);\n\n // biome-ignore lint/correctness/useExhaustiveDependencies: intentional\n React.useEffect(() => {\n insideReactTreeRef.current = false;\n }, [outsidePress, outsidePressEvent]);\n return React.useMemo(() => {\n if (!enabled) {\n return {};\n }\n return {\n reference: {\n onKeyDown: closeOnEscapeKeyDown,\n [bubbleHandlerKeys[referencePressEvent]]: event => {\n if (referencePress) {\n onOpenChange(false, event.nativeEvent, 'reference-press');\n }\n }\n },\n floating: {\n onKeyDown: closeOnEscapeKeyDown,\n onMouseDown() {\n endedOrStartedInsideRef.current = true;\n },\n onMouseUp() {\n endedOrStartedInsideRef.current = true;\n },\n [captureHandlerKeys[outsidePressEvent]]: () => {\n insideReactTreeRef.current = true;\n }\n }\n };\n }, [enabled, referencePress, outsidePressEvent, referencePressEvent, onOpenChange, closeOnEscapeKeyDown]);\n}\n\nlet devMessageSet;\nif (process.env.NODE_ENV !== \"production\") {\n devMessageSet = /*#__PURE__*/new Set();\n}\n\n/**\n * Provides data to position a floating element and context to add interactions.\n * @see https://floating-ui.com/docs/useFloating\n */\nfunction useFloating(options) {\n var _options$elements2;\n if (options === void 0) {\n options = {};\n }\n const {\n open = false,\n onOpenChange: unstable_onOpenChange,\n nodeId\n } = options;\n if (process.env.NODE_ENV !== \"production\") {\n var _options$elements;\n const err = 'Floating UI: Cannot pass a virtual element to the ' + '`elements.reference` option, as it must be a real DOM element. ' + 'Use `refs.setPositionReference` instead.';\n if ((_options$elements = options.elements) != null && _options$elements.reference && !isElement(options.elements.reference)) {\n var _devMessageSet;\n if (!((_devMessageSet = devMessageSet) != null && _devMessageSet.has(err))) {\n var _devMessageSet2;\n (_devMessageSet2 = devMessageSet) == null || _devMessageSet2.add(err);\n console.error(err);\n }\n }\n }\n const [_domReference, setDomReference] = React.useState(null);\n const domReference = ((_options$elements2 = options.elements) == null ? void 0 : _options$elements2.reference) || _domReference;\n const position = useFloating$1(options);\n const tree = useFloatingTree();\n const nested = useFloatingParentNodeId() != null;\n const onOpenChange = useEffectEvent((open, event, reason) => {\n if (open) {\n dataRef.current.openEvent = event;\n }\n events.emit('openchange', {\n open,\n event,\n reason,\n nested\n });\n unstable_onOpenChange == null || unstable_onOpenChange(open, event, reason);\n });\n const domReferenceRef = React.useRef(null);\n const dataRef = React.useRef({});\n const events = React.useState(() => createPubSub())[0];\n const floatingId = useId();\n const setPositionReference = React.useCallback(node => {\n const positionReference = isElement(node) ? {\n getBoundingClientRect: () => node.getBoundingClientRect(),\n contextElement: node\n } : node;\n position.refs.setReference(positionReference);\n }, [position.refs]);\n const setReference = React.useCallback(node => {\n if (isElement(node) || node === null) {\n domReferenceRef.current = node;\n setDomReference(node);\n }\n\n // Backwards-compatibility for passing a virtual element to `reference`\n // after it has set the DOM reference.\n if (isElement(position.refs.reference.current) || position.refs.reference.current === null ||\n // Don't allow setting virtual elements using the old technique back to\n // `null` to support `positionReference` + an unstable `reference`\n // callback ref.\n node !== null && !isElement(node)) {\n position.refs.setReference(node);\n }\n }, [position.refs]);\n const refs = React.useMemo(() => ({\n ...position.refs,\n setReference,\n setPositionReference,\n domReference: domReferenceRef\n }), [position.refs, setReference, setPositionReference]);\n const elements = React.useMemo(() => ({\n ...position.elements,\n domReference: domReference\n }), [position.elements, domReference]);\n const context = React.useMemo(() => ({\n ...position,\n refs,\n elements,\n dataRef,\n nodeId,\n floatingId,\n events,\n open,\n onOpenChange\n }), [position, nodeId, floatingId, events, open, onOpenChange, refs, elements]);\n index(() => {\n const node = tree == null ? void 0 : tree.nodesRef.current.find(node => node.id === nodeId);\n if (node) {\n node.context = context;\n }\n });\n return React.useMemo(() => ({\n ...position,\n context,\n refs,\n elements\n }), [position, refs, elements, context]);\n}\n\n/**\n * Opens the floating element while the reference element has focus, like CSS\n * `:focus`.\n * @see https://floating-ui.com/docs/useFocus\n */\nfunction useFocus(context, props) {\n if (props === void 0) {\n props = {};\n }\n const {\n open,\n onOpenChange,\n events,\n refs,\n elements: {\n domReference\n }\n } = context;\n const {\n enabled = true,\n visibleOnly = true\n } = props;\n const blockFocusRef = React.useRef(false);\n const timeoutRef = React.useRef();\n const keyboardModalityRef = React.useRef(true);\n React.useEffect(() => {\n if (!enabled) {\n return;\n }\n const win = getWindow(domReference);\n\n // If the reference was focused and the user left the tab/window, and the\n // floating element was not open, the focus should be blocked when they\n // return to the tab/window.\n function onBlur() {\n if (!open && isHTMLElement(domReference) && domReference === activeElement(getDocument(domReference))) {\n blockFocusRef.current = true;\n }\n }\n function onKeyDown() {\n keyboardModalityRef.current = true;\n }\n win.addEventListener('blur', onBlur);\n win.addEventListener('keydown', onKeyDown, true);\n return () => {\n win.removeEventListener('blur', onBlur);\n win.removeEventListener('keydown', onKeyDown, true);\n };\n }, [domReference, open, enabled]);\n React.useEffect(() => {\n if (!enabled) {\n return;\n }\n function onOpenChange(_ref) {\n let {\n reason\n } = _ref;\n if (reason === 'reference-press' || reason === 'escape-key') {\n blockFocusRef.current = true;\n }\n }\n events.on('openchange', onOpenChange);\n return () => {\n events.off('openchange', onOpenChange);\n };\n }, [events, enabled]);\n React.useEffect(() => {\n return () => {\n clearTimeout(timeoutRef.current);\n };\n }, []);\n return React.useMemo(() => {\n if (!enabled) {\n return {};\n }\n return {\n reference: {\n onPointerDown(event) {\n if (isVirtualPointerEvent(event.nativeEvent)) return;\n keyboardModalityRef.current = false;\n },\n onMouseLeave() {\n blockFocusRef.current = false;\n },\n onFocus(event) {\n if (blockFocusRef.current) return;\n const target = getTarget(event.nativeEvent);\n if (visibleOnly && isElement(target)) {\n try {\n // Mac Safari unreliably matches `:focus-visible` on the reference\n // if focus was outside the page initially - use the fallback\n // instead.\n if (isSafari() && isMac()) throw Error();\n if (!target.matches(':focus-visible')) return;\n } catch (e) {\n // Old browsers will throw an error when using `:focus-visible`.\n if (!keyboardModalityRef.current && !isTypeableElement(target)) {\n return;\n }\n }\n }\n onOpenChange(true, event.nativeEvent, 'focus');\n },\n onBlur(event) {\n blockFocusRef.current = false;\n const relatedTarget = event.relatedTarget;\n\n // Hit the non-modal focus management portal guard. Focus will be\n // moved into the floating element immediately after.\n const movedToFocusGuard = isElement(relatedTarget) && relatedTarget.hasAttribute(createAttribute('focus-guard')) && relatedTarget.getAttribute('data-type') === 'outside';\n\n // Wait for the window blur listener to fire.\n timeoutRef.current = window.setTimeout(() => {\n const activeEl = activeElement(domReference ? domReference.ownerDocument : document);\n\n // Focus left the page, keep it open.\n if (!relatedTarget && activeEl === domReference) return;\n\n // When focusing the reference element (e.g. regular click), then\n // clicking into the floating element, prevent it from hiding.\n // Note: it must be focusable, e.g. `tabindex=\"-1\"`.\n // We can not rely on relatedTarget to point to the correct element\n // as it will only point to the shadow host of the newly focused element\n // and not the element that actually has received focus if it is located\n // inside a shadow root.\n if (contains(refs.floating.current, activeEl) || contains(domReference, activeEl) || movedToFocusGuard) {\n return;\n }\n onOpenChange(false, event.nativeEvent, 'focus');\n });\n }\n }\n };\n }, [enabled, visibleOnly, domReference, refs, onOpenChange]);\n}\n\nconst ACTIVE_KEY = 'active';\nconst SELECTED_KEY = 'selected';\nfunction mergeProps(userProps, propsList, elementKey) {\n const map = new Map();\n const isItem = elementKey === 'item';\n let domUserProps = userProps;\n if (isItem && userProps) {\n const {\n [ACTIVE_KEY]: _,\n [SELECTED_KEY]: __,\n ...validProps\n } = userProps;\n domUserProps = validProps;\n }\n return {\n ...(elementKey === 'floating' && {\n tabIndex: -1\n }),\n ...domUserProps,\n ...propsList.map(value => {\n const propsOrGetProps = value ? value[elementKey] : null;\n if (typeof propsOrGetProps === 'function') {\n return userProps ? propsOrGetProps(userProps) : null;\n }\n return propsOrGetProps;\n }).concat(userProps).reduce((acc, props) => {\n if (!props) {\n return acc;\n }\n Object.entries(props).forEach(_ref => {\n let [key, value] = _ref;\n if (isItem && [ACTIVE_KEY, SELECTED_KEY].includes(key)) {\n return;\n }\n if (key.indexOf('on') === 0) {\n if (!map.has(key)) {\n map.set(key, []);\n }\n if (typeof value === 'function') {\n var _map$get;\n (_map$get = map.get(key)) == null || _map$get.push(value);\n acc[key] = function () {\n var _map$get2;\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n return (_map$get2 = map.get(key)) == null ? void 0 : _map$get2.map(fn => fn(...args)).find(val => val !== undefined);\n };\n }\n } else {\n acc[key] = value;\n }\n });\n return acc;\n }, {})\n };\n}\n\n/**\n * Merges an array of interaction hooks' props into prop getters, allowing\n * event handler functions to be composed together without overwriting one\n * another.\n * @see https://floating-ui.com/docs/useInteractions\n */\nfunction useInteractions(propsList) {\n if (propsList === void 0) {\n propsList = [];\n }\n // The dependencies are a dynamic array, so we can't use the linter's\n // suggestion to add it to the deps array.\n const deps = propsList;\n\n // biome-ignore lint/correctness/useExhaustiveDependencies: intentional\n const getReferenceProps = React.useCallback(userProps => mergeProps(userProps, propsList, 'reference'), deps);\n\n // biome-ignore lint/correctness/useExhaustiveDependencies: intentional\n const getFloatingProps = React.useCallback(userProps => mergeProps(userProps, propsList, 'floating'), deps);\n\n // biome-ignore lint/correctness/useExhaustiveDependencies: intentional\n const getItemProps = React.useCallback(userProps => mergeProps(userProps, propsList, 'item'),\n // Granularly check for `item` changes, because the `getItemProps` getter\n // should be as referentially stable as possible since it may be passed as\n // a prop to many components. All `item` key values must therefore be\n // memoized.\n propsList.map(key => key == null ? void 0 : key.item));\n return React.useMemo(() => ({\n getReferenceProps,\n getFloatingProps,\n getItemProps\n }), [getReferenceProps, getFloatingProps, getItemProps]);\n}\n\nlet isPreventScrollSupported = false;\nfunction doSwitch(orientation, vertical, horizontal) {\n switch (orientation) {\n case 'vertical':\n return vertical;\n case 'horizontal':\n return horizontal;\n default:\n return vertical || horizontal;\n }\n}\nfunction isMainOrientationKey(key, orientation) {\n const vertical = key === ARROW_UP || key === ARROW_DOWN;\n const horizontal = key === ARROW_LEFT || key === ARROW_RIGHT;\n return doSwitch(orientation, vertical, horizontal);\n}\nfunction isMainOrientationToEndKey(key, orientation, rtl) {\n const vertical = key === ARROW_DOWN;\n const horizontal = rtl ? key === ARROW_LEFT : key === ARROW_RIGHT;\n return doSwitch(orientation, vertical, horizontal) || key === 'Enter' || key === ' ' || key === '';\n}\nfunction isCrossOrientationOpenKey(key, orientation, rtl) {\n const vertical = rtl ? key === ARROW_LEFT : key === ARROW_RIGHT;\n const horizontal = key === ARROW_DOWN;\n return doSwitch(orientation, vertical, horizontal);\n}\nfunction isCrossOrientationCloseKey(key, orientation, rtl) {\n const vertical = rtl ? key === ARROW_RIGHT : key === ARROW_LEFT;\n const horizontal = key === ARROW_UP;\n return doSwitch(orientation, vertical, horizontal);\n}\n/**\n * Adds arrow key-based navigation of a list of items, either using real DOM\n * focus or virtual focus.\n * @see https://floating-ui.com/docs/useListNavigation\n */\nfunction useListNavigation(context, props) {\n const {\n open,\n onOpenChange,\n refs,\n elements: {\n domReference,\n floating\n }\n } = context;\n const {\n listRef,\n activeIndex,\n onNavigate: unstable_onNavigate = () => {},\n enabled = true,\n selectedIndex = null,\n allowEscape = false,\n loop = false,\n nested = false,\n rtl = false,\n virtual = false,\n focusItemOnOpen = 'auto',\n focusItemOnHover = true,\n openOnArrowKeyDown = true,\n disabledIndices = undefined,\n orientation = 'vertical',\n cols = 1,\n scrollItemIntoView = true,\n virtualItemRef,\n itemSizes,\n dense = false\n } = props;\n if (process.env.NODE_ENV !== \"production\") {\n if (allowEscape) {\n if (!loop) {\n console.warn(['Floating UI: `useListNavigation` looping must be enabled to allow', 'escaping.'].join(' '));\n }\n if (!virtual) {\n console.warn(['Floating UI: `useListNavigation` must be virtual to allow', 'escaping.'].join(' '));\n }\n }\n if (orientation === 'vertical' && cols > 1) {\n console.warn(['Floating UI: In grid list navigation mode (`cols` > 1), the', '`orientation` should be either \"horizontal\" or \"both\".'].join(' '));\n }\n }\n const parentId = useFloatingParentNodeId();\n const tree = useFloatingTree();\n const onNavigate = useEffectEvent(unstable_onNavigate);\n const focusItemOnOpenRef = React.useRef(focusItemOnOpen);\n const indexRef = React.useRef(selectedIndex != null ? selectedIndex : -1);\n const keyRef = React.useRef(null);\n const isPointerModalityRef = React.useRef(true);\n const previousOnNavigateRef = React.useRef(onNavigate);\n const previousMountedRef = React.useRef(!!floating);\n const forceSyncFocus = React.useRef(false);\n const forceScrollIntoViewRef = React.useRef(false);\n const disabledIndicesRef = useLatestRef(disabledIndices);\n const latestOpenRef = useLatestRef(open);\n const scrollItemIntoViewRef = useLatestRef(scrollItemIntoView);\n const [activeId, setActiveId] = React.useState();\n const [virtualId, setVirtualId] = React.useState();\n const focusItem = useEffectEvent(function (listRef, indexRef, forceScrollIntoView) {\n if (forceScrollIntoView === void 0) {\n forceScrollIntoView = false;\n }\n const item = listRef.current[indexRef.current];\n if (!item) return;\n if (virtual) {\n setActiveId(item.id);\n tree == null || tree.events.emit('virtualfocus', item);\n if (virtualItemRef) {\n virtualItemRef.current = item;\n }\n } else {\n enqueueFocus(item, {\n preventScroll: true,\n // Mac Safari does not move the virtual cursor unless the focus call\n // is sync. However, for the very first focus call, we need to wait\n // for the position to be ready in order to prevent unwanted\n // scrolling. This means the virtual cursor will not move to the first\n // item when first opening the floating element, but will on\n // subsequent calls. `preventScroll` is supported in modern Safari,\n // so we can use that instead.\n // iOS Safari must be async or the first item will not be focused.\n sync: isMac() && isSafari() ? isPreventScrollSupported || forceSyncFocus.current : false\n });\n }\n requestAnimationFrame(() => {\n const scrollIntoViewOptions = scrollItemIntoViewRef.current;\n const shouldScrollIntoView = scrollIntoViewOptions && item && (forceScrollIntoView || !isPointerModalityRef.current);\n if (shouldScrollIntoView) {\n // JSDOM doesn't support `.scrollIntoView()` but it's widely supported\n // by all browsers.\n item.scrollIntoView == null || item.scrollIntoView(typeof scrollIntoViewOptions === 'boolean' ? {\n block: 'nearest',\n inline: 'nearest'\n } : scrollIntoViewOptions);\n }\n });\n });\n index(() => {\n document.createElement('div').focus({\n get preventScroll() {\n isPreventScrollSupported = true;\n return false;\n }\n });\n }, []);\n\n // Sync `selectedIndex` to be the `activeIndex` upon opening the floating\n // element. Also, reset `activeIndex` upon closing the floating element.\n index(() => {\n if (!enabled) {\n return;\n }\n if (open && floating) {\n if (focusItemOnOpenRef.current && selectedIndex != null) {\n // Regardless of the pointer modality, we want to ensure the selected\n // item comes into view when the floating element is opened.\n forceScrollIntoViewRef.current = true;\n indexRef.current = selectedIndex;\n onNavigate(selectedIndex);\n }\n } else if (previousMountedRef.current) {\n // Since the user can specify `onNavigate` conditionally\n // (onNavigate: open ? setActiveIndex : setSelectedIndex),\n // we store and call the previous function.\n indexRef.current = -1;\n previousOnNavigateRef.current(null);\n }\n }, [enabled, open, floating, selectedIndex, onNavigate]);\n\n // Sync `activeIndex` to be the focused item while the floating element is\n // open.\n index(() => {\n if (!enabled) {\n return;\n }\n if (open && floating) {\n if (activeIndex == null) {\n forceSyncFocus.current = false;\n if (selectedIndex != null) {\n return;\n }\n\n // Reset while the floating element was open (e.g. the list changed).\n if (previousMountedRef.current) {\n indexRef.current = -1;\n focusItem(listRef, indexRef);\n }\n\n // Initial sync.\n if (!previousMountedRef.current && focusItemOnOpenRef.current && (keyRef.current != null || focusItemOnOpenRef.current === true && keyRef.current == null)) {\n let runs = 0;\n const waitForListPopulated = () => {\n if (listRef.current[0] == null) {\n // Avoid letting the browser paint if possible on the first try,\n // otherwise use rAF. Don't try more than twice, since something\n // is wrong otherwise.\n if (runs < 2) {\n const scheduler = runs ? requestAnimationFrame : queueMicrotask;\n scheduler(waitForListPopulated);\n }\n runs++;\n } else {\n indexRef.current = keyRef.current == null || isMainOrientationToEndKey(keyRef.current, orientation, rtl) || nested ? getMinIndex(listRef, disabledIndicesRef.current) : getMaxIndex(listRef, disabledIndicesRef.current);\n keyRef.current = null;\n onNavigate(indexRef.current);\n }\n };\n waitForListPopulated();\n }\n } else if (!isIndexOutOfBounds(listRef, activeIndex)) {\n indexRef.current = activeIndex;\n focusItem(listRef, indexRef, forceScrollIntoViewRef.current);\n forceScrollIntoViewRef.current = false;\n }\n }\n }, [enabled, open, floating, activeIndex, selectedIndex, nested, listRef, orientation, rtl, onNavigate, focusItem, disabledIndicesRef]);\n\n // Ensure the parent floating element has focus when a nested child closes\n // to allow arrow key navigation to work after the pointer leaves the child.\n index(() => {\n var _nodes$find;\n if (!enabled || floating || !tree || virtual || !previousMountedRef.current) {\n return;\n }\n const nodes = tree.nodesRef.current;\n const parent = (_nodes$find = nodes.find(node => node.id === parentId)) == null || (_nodes$find = _nodes$find.context) == null ? void 0 : _nodes$find.elements.floating;\n const activeEl = activeElement(getDocument(floating));\n const treeContainsActiveEl = nodes.some(node => node.context && contains(node.context.elements.floating, activeEl));\n if (parent && !treeContainsActiveEl && isPointerModalityRef.current) {\n parent.focus({\n preventScroll: true\n });\n }\n }, [enabled, floating, tree, parentId, virtual]);\n index(() => {\n if (!enabled || !tree || !virtual || parentId) return;\n function handleVirtualFocus(item) {\n setVirtualId(item.id);\n if (virtualItemRef) {\n virtualItemRef.current = item;\n }\n }\n tree.events.on('virtualfocus', handleVirtualFocus);\n return () => {\n tree.events.off('virtualfocus', handleVirtualFocus);\n };\n }, [enabled, tree, virtual, parentId, virtualItemRef]);\n index(() => {\n previousOnNavigateRef.current = onNavigate;\n previousMountedRef.current = !!floating;\n });\n index(() => {\n if (!open) {\n keyRef.current = null;\n }\n }, [open]);\n const hasActiveIndex = activeIndex != null;\n const item = React.useMemo(() => {\n function syncCurrentTarget(currentTarget) {\n if (!open) return;\n const index = listRef.current.indexOf(currentTarget);\n if (index !== -1) {\n onNavigate(index);\n }\n }\n const props = {\n onFocus(_ref) {\n let {\n currentTarget\n } = _ref;\n syncCurrentTarget(currentTarget);\n },\n onClick: _ref2 => {\n let {\n currentTarget\n } = _ref2;\n return currentTarget.focus({\n preventScroll: true\n });\n },\n // Safari\n ...(focusItemOnHover && {\n onMouseMove(_ref3) {\n let {\n currentTarget\n } = _ref3;\n syncCurrentTarget(currentTarget);\n },\n onPointerLeave(_ref4) {\n let {\n pointerType\n } = _ref4;\n if (!isPointerModalityRef.current || pointerType === 'touch') {\n return;\n }\n indexRef.current = -1;\n focusItem(listRef, indexRef);\n onNavigate(null);\n if (!virtual) {\n enqueueFocus(refs.floating.current, {\n preventScroll: true\n });\n }\n }\n })\n };\n return props;\n }, [open, refs, focusItem, focusItemOnHover, listRef, onNavigate, virtual]);\n return React.useMemo(() => {\n if (!enabled) {\n return {};\n }\n const disabledIndices = disabledIndicesRef.current;\n function onKeyDown(event) {\n isPointerModalityRef.current = false;\n forceSyncFocus.current = true;\n\n // If the floating element is animating out, ignore navigation. Otherwise,\n // the `activeIndex` gets set to 0 despite not being open so the next time\n // the user ArrowDowns, the first item won't be focused.\n if (!latestOpenRef.current && event.currentTarget === refs.floating.current) {\n return;\n }\n if (nested && isCrossOrientationCloseKey(event.key, orientation, rtl)) {\n stopEvent(event);\n onOpenChange(false, event.nativeEvent, 'list-navigation');\n if (isHTMLElement(domReference) && !virtual) {\n domReference.focus();\n }\n return;\n }\n const currentIndex = indexRef.current;\n const minIndex = getMinIndex(listRef, disabledIndices);\n const maxIndex = getMaxIndex(listRef, disabledIndices);\n if (event.key === 'Home') {\n stopEvent(event);\n indexRef.current = minIndex;\n onNavigate(indexRef.current);\n }\n if (event.key === 'End') {\n stopEvent(event);\n indexRef.current = maxIndex;\n onNavigate(indexRef.current);\n }\n\n // Grid navigation.\n if (cols > 1) {\n const sizes = itemSizes || Array.from({\n length: listRef.current.length\n }, () => ({\n width: 1,\n height: 1\n }));\n // To calculate movements on the grid, we use hypothetical cell indices\n // as if every item was 1x1, then convert back to real indices.\n const cellMap = buildCellMap(sizes, cols, dense);\n const minGridIndex = cellMap.findIndex(index => index != null && !(disabledIndices != null && disabledIndices.includes(index)));\n // last enabled index\n const maxGridIndex = cellMap.reduce((foundIndex, index, cellIndex) => index != null && !(disabledIndices != null && disabledIndices.includes(index)) ? cellIndex : foundIndex, -1);\n indexRef.current = cellMap[getGridNavigatedIndex({\n current: cellMap.map(itemIndex => itemIndex != null ? listRef.current[itemIndex] : null)\n }, {\n event,\n orientation,\n loop,\n cols,\n // treat undefined (empty grid spaces) as disabled indices so we\n // don't end up in them\n disabledIndices: getCellIndices([...(disabledIndices || []), undefined], cellMap),\n minIndex: minGridIndex,\n maxIndex: maxGridIndex,\n prevIndex: getCellIndexOfCorner(indexRef.current, sizes, cellMap, cols,\n // use a corner matching the edge closest to the direction\n // we're moving in so we don't end up in the same item. Prefer\n // top/left over bottom/right.\n event.key === ARROW_DOWN ? 'bl' : event.key === ARROW_RIGHT ? 'tr' : 'tl'),\n stopEvent: true\n })]; // navigated cell will never be nullish\n\n onNavigate(indexRef.current);\n if (orientation === 'both') {\n return;\n }\n }\n if (isMainOrientationKey(event.key, orientation)) {\n stopEvent(event);\n\n // Reset the index if no item is focused.\n if (open && !virtual && activeElement(event.currentTarget.ownerDocument) === event.currentTarget) {\n indexRef.current = isMainOrientationToEndKey(event.key, orientation, rtl) ? minIndex : maxIndex;\n onNavigate(indexRef.current);\n return;\n }\n if (isMainOrientationToEndKey(event.key, orientation, rtl)) {\n if (loop) {\n indexRef.current = currentIndex >= maxIndex ? allowEscape && currentIndex !== listRef.current.length ? -1 : minIndex : findNonDisabledIndex(listRef, {\n startingIndex: currentIndex,\n disabledIndices\n });\n } else {\n indexRef.current = Math.min(maxIndex, findNonDisabledIndex(listRef, {\n startingIndex: currentIndex,\n disabledIndices\n }));\n }\n } else {\n if (loop) {\n indexRef.current = currentIndex <= minIndex ? allowEscape && currentIndex !== -1 ? listRef.current.length : maxIndex : findNonDisabledIndex(listRef, {\n startingIndex: currentIndex,\n decrement: true,\n disabledIndices\n });\n } else {\n indexRef.current = Math.max(minIndex, findNonDisabledIndex(listRef, {\n startingIndex: currentIndex,\n decrement: true,\n disabledIndices\n }));\n }\n }\n if (isIndexOutOfBounds(listRef, indexRef.current)) {\n onNavigate(null);\n } else {\n onNavigate(indexRef.current);\n }\n }\n }\n function checkVirtualMouse(event) {\n if (focusItemOnOpen === 'auto' && isVirtualClick(event.nativeEvent)) {\n focusItemOnOpenRef.current = true;\n }\n }\n function checkVirtualPointer(event) {\n // `pointerdown` fires first, reset the state then perform the checks.\n focusItemOnOpenRef.current = focusItemOnOpen;\n if (focusItemOnOpen === 'auto' && isVirtualPointerEvent(event.nativeEvent)) {\n focusItemOnOpenRef.current = true;\n }\n }\n const ariaActiveDescendantProp = virtual && open && hasActiveIndex && {\n 'aria-activedescendant': virtualId || activeId\n };\n const activeItem = listRef.current.find(item => (item == null ? void 0 : item.id) === activeId);\n return {\n reference: {\n ...ariaActiveDescendantProp,\n onKeyDown(event) {\n isPointerModalityRef.current = false;\n const isArrowKey = event.key.indexOf('Arrow') === 0;\n const isCrossOpenKey = isCrossOrientationOpenKey(event.key, orientation, rtl);\n const isCrossCloseKey = isCrossOrientationCloseKey(event.key, orientation, rtl);\n const isMainKey = isMainOrientationKey(event.key, orientation);\n const isNavigationKey = (nested ? isCrossOpenKey : isMainKey) || event.key === 'Enter' || event.key.trim() === '';\n if (virtual && open) {\n const rootNode = tree == null ? void 0 : tree.nodesRef.current.find(node => node.parentId == null);\n const deepestNode = tree && rootNode ? getDeepestNode(tree.nodesRef.current, rootNode.id) : null;\n if (isArrowKey && deepestNode && virtualItemRef) {\n const eventObject = new KeyboardEvent('keydown', {\n key: event.key,\n bubbles: true\n });\n if (isCrossOpenKey || isCrossCloseKey) {\n var _deepestNode$context, _deepestNode$context2;\n const isCurrentTarget = ((_deepestNode$context = deepestNode.context) == null ? void 0 : _deepestNode$context.elements.domReference) === event.currentTarget;\n const dispatchItem = isCrossCloseKey && !isCurrentTarget ? (_deepestNode$context2 = deepestNode.context) == null ? void 0 : _deepestNode$context2.elements.domReference : isCrossOpenKey ? activeItem : null;\n if (dispatchItem) {\n stopEvent(event);\n dispatchItem.dispatchEvent(eventObject);\n setVirtualId(undefined);\n }\n }\n if (isMainKey && deepestNode.context) {\n if (deepestNode.context.open && deepestNode.parentId && event.currentTarget !== deepestNode.context.elements.domReference) {\n var _deepestNode$context$;\n stopEvent(event);\n (_deepestNode$context$ = deepestNode.context.elements.domReference) == null || _deepestNode$context$.dispatchEvent(eventObject);\n return;\n }\n }\n }\n return onKeyDown(event);\n }\n\n // If a floating element should not open on arrow key down, avoid\n // setting `activeIndex` while it's closed.\n if (!open && !openOnArrowKeyDown && isArrowKey) {\n return;\n }\n if (isNavigationKey) {\n keyRef.current = nested && isMainKey ? null : event.key;\n }\n if (nested) {\n if (isCrossOpenKey) {\n stopEvent(event);\n if (open) {\n indexRef.current = getMinIndex(listRef, disabledIndices);\n onNavigate(indexRef.current);\n } else {\n onOpenChange(true, event.nativeEvent, 'list-navigation');\n }\n }\n return;\n }\n if (isMainKey) {\n if (selectedIndex != null) {\n indexRef.current = selectedIndex;\n }\n stopEvent(event);\n if (!open && openOnArrowKeyDown) {\n onOpenChange(true, event.nativeEvent, 'list-navigation');\n } else {\n onKeyDown(event);\n }\n if (open) {\n onNavigate(indexRef.current);\n }\n }\n },\n onFocus() {\n if (open) {\n onNavigate(null);\n }\n },\n onPointerDown: checkVirtualPointer,\n onMouseDown: checkVirtualMouse,\n onClick: checkVirtualMouse\n },\n floating: {\n 'aria-orientation': orientation === 'both' ? undefined : orientation,\n ...(!isTypeableCombobox(domReference) && ariaActiveDescendantProp),\n onKeyDown,\n onPointerMove() {\n isPointerModalityRef.current = true;\n }\n },\n item\n };\n }, [domReference, refs, activeId, virtualId, disabledIndicesRef, latestOpenRef, listRef, enabled, orientation, rtl, virtual, open, hasActiveIndex, nested, selectedIndex, openOnArrowKeyDown, allowEscape, cols, loop, focusItemOnOpen, onNavigate, onOpenChange, item, tree, virtualItemRef, itemSizes, dense]);\n}\n\nconst componentRoleToAriaRoleMap = /*#__PURE__*/new Map([['select', 'listbox'], ['combobox', 'listbox'], ['label', false]]);\n\n/**\n * Adds base screen reader props to the reference and floating elements for a\n * given floating element `role`.\n * @see https://floating-ui.com/docs/useRole\n */\nfunction useRole(context, props) {\n var _componentRoleToAriaR;\n if (props === void 0) {\n props = {};\n }\n const {\n open,\n floatingId\n } = context;\n const {\n enabled = true,\n role = 'dialog'\n } = props;\n const ariaRole = (_componentRoleToAriaR = componentRoleToAriaRoleMap.get(role)) != null ? _componentRoleToAriaR : role;\n const referenceId = useId();\n const parentId = useFloatingParentNodeId();\n const isNested = parentId != null;\n return React.useMemo(() => {\n if (!enabled) return {};\n const floatingProps = {\n id: floatingId,\n ...(ariaRole && {\n role: ariaRole\n })\n };\n if (ariaRole === 'tooltip' || role === 'label') {\n return {\n reference: {\n [\"aria-\" + (role === 'label' ? 'labelledby' : 'describedby')]: open ? floatingId : undefined\n },\n floating: floatingProps\n };\n }\n return {\n reference: {\n 'aria-expanded': open ? 'true' : 'false',\n 'aria-haspopup': ariaRole === 'alertdialog' ? 'dialog' : ariaRole,\n 'aria-controls': open ? floatingId : undefined,\n ...(ariaRole === 'listbox' && {\n role: 'combobox'\n }),\n ...(ariaRole === 'menu' && {\n id: referenceId\n }),\n ...(ariaRole === 'menu' && isNested && {\n role: 'menuitem'\n }),\n ...(role === 'select' && {\n 'aria-autocomplete': 'none'\n }),\n ...(role === 'combobox' && {\n 'aria-autocomplete': 'list'\n })\n },\n floating: {\n ...floatingProps,\n ...(ariaRole === 'menu' && {\n 'aria-labelledby': referenceId\n })\n },\n item(_ref) {\n let {\n active,\n selected\n } = _ref;\n const commonProps = {\n role: 'option',\n ...(active && {\n id: floatingId + \"-option\"\n })\n };\n\n // For `menu`, we are unable to tell if the item is a `menuitemradio`\n // or `menuitemcheckbox`. For backwards-compatibility reasons, also\n // avoid defaulting to `menuitem` as it may overwrite custom role props.\n switch (role) {\n case 'select':\n return {\n ...commonProps,\n 'aria-selected': active && selected\n };\n case 'combobox':\n {\n return {\n ...commonProps,\n ...(active && {\n 'aria-selected': true\n })\n };\n }\n }\n return {};\n }\n };\n }, [enabled, role, ariaRole, open, floatingId, referenceId, isNested]);\n}\n\n// Converts a JS style key like `backgroundColor` to a CSS transition-property\n// like `background-color`.\nconst camelCaseToKebabCase = str => str.replace(/[A-Z]+(?![a-z])|[A-Z]/g, ($, ofs) => (ofs ? '-' : '') + $.toLowerCase());\nfunction execWithArgsOrReturn(valueOrFn, args) {\n return typeof valueOrFn === 'function' ? valueOrFn(args) : valueOrFn;\n}\nfunction useDelayUnmount(open, durationMs) {\n const [isMounted, setIsMounted] = React.useState(open);\n if (open && !isMounted) {\n setIsMounted(true);\n }\n React.useEffect(() => {\n if (!open) {\n const timeout = setTimeout(() => setIsMounted(false), durationMs);\n return () => clearTimeout(timeout);\n }\n }, [open, durationMs]);\n return isMounted;\n}\n/**\n * Provides a status string to apply CSS transitions to a floating element,\n * correctly handling placement-aware transitions.\n * @see https://floating-ui.com/docs/useTransition#usetransitionstatus\n */\nfunction useTransitionStatus(context, props) {\n if (props === void 0) {\n props = {};\n }\n const {\n open,\n elements: {\n floating\n }\n } = context;\n const {\n duration = 250\n } = props;\n const isNumberDuration = typeof duration === 'number';\n const closeDuration = (isNumberDuration ? duration : duration.close) || 0;\n const [initiated, setInitiated] = React.useState(false);\n const [status, setStatus] = React.useState('unmounted');\n const isMounted = useDelayUnmount(open, closeDuration);\n\n // `initiated` check prevents this `setState` call from breaking\n // <FloatingPortal />. This call is necessary to ensure subsequent opens\n // after the initial one allows the correct side animation to play when the\n // placement has changed.\n index(() => {\n if (initiated && !isMounted) {\n setStatus('unmounted');\n }\n }, [initiated, isMounted]);\n index(() => {\n if (!floating) return;\n if (open) {\n setStatus('initial');\n const frame = requestAnimationFrame(() => {\n setStatus('open');\n });\n return () => {\n cancelAnimationFrame(frame);\n };\n }\n setInitiated(true);\n setStatus('close');\n }, [open, floating]);\n return {\n isMounted,\n status\n };\n}\n/**\n * Provides styles to apply CSS transitions to a floating element, correctly\n * handling placement-aware transitions. Wrapper around `useTransitionStatus`.\n * @see https://floating-ui.com/docs/useTransition#usetransitionstyles\n */\nfunction useTransitionStyles(context, props) {\n if (props === void 0) {\n props = {};\n }\n const {\n initial: unstable_initial = {\n opacity: 0\n },\n open: unstable_open,\n close: unstable_close,\n common: unstable_common,\n duration = 250\n } = props;\n const placement = context.placement;\n const side = placement.split('-')[0];\n const fnArgs = React.useMemo(() => ({\n side,\n placement\n }), [side, placement]);\n const isNumberDuration = typeof duration === 'number';\n const openDuration = (isNumberDuration ? duration : duration.open) || 0;\n const closeDuration = (isNumberDuration ? duration : duration.close) || 0;\n const [styles, setStyles] = React.useState(() => ({\n ...execWithArgsOrReturn(unstable_common, fnArgs),\n ...execWithArgsOrReturn(unstable_initial, fnArgs)\n }));\n const {\n isMounted,\n status\n } = useTransitionStatus(context, {\n duration\n });\n const initialRef = useLatestRef(unstable_initial);\n const openRef = useLatestRef(unstable_open);\n const closeRef = useLatestRef(unstable_close);\n const commonRef = useLatestRef(unstable_common);\n index(() => {\n const initialStyles = execWithArgsOrReturn(initialRef.current, fnArgs);\n const closeStyles = execWithArgsOrReturn(closeRef.current, fnArgs);\n const commonStyles = execWithArgsOrReturn(commonRef.current, fnArgs);\n const openStyles = execWithArgsOrReturn(openRef.current, fnArgs) || Object.keys(initialStyles).reduce((acc, key) => {\n acc[key] = '';\n return acc;\n }, {});\n if (status === 'initial') {\n setStyles(styles => ({\n transitionProperty: styles.transitionProperty,\n ...commonStyles,\n ...initialStyles\n }));\n }\n if (status === 'open') {\n setStyles({\n transitionProperty: Object.keys(openStyles).map(camelCaseToKebabCase).join(','),\n transitionDuration: openDuration + \"ms\",\n ...commonStyles,\n ...openStyles\n });\n }\n if (status === 'close') {\n const styles = closeStyles || initialStyles;\n setStyles({\n transitionProperty: Object.keys(styles).map(camelCaseToKebabCase).join(','),\n transitionDuration: closeDuration + \"ms\",\n ...commonStyles,\n ...styles\n });\n }\n }, [closeDuration, closeRef, initialRef, openRef, commonRef, openDuration, status, fnArgs]);\n return {\n isMounted,\n styles\n };\n}\n\n/**\n * Provides a matching callback that can be used to focus an item as the user\n * types, often used in tandem with `useListNavigation()`.\n * @see https://floating-ui.com/docs/useTypeahead\n */\nfunction useTypeahead(context, props) {\n var _ref;\n const {\n open,\n dataRef\n } = context;\n const {\n listRef,\n activeIndex,\n onMatch: unstable_onMatch,\n onTypingChange: unstable_onTypingChange,\n enabled = true,\n findMatch = null,\n resetMs = 750,\n ignoreKeys = [],\n selectedIndex = null\n } = props;\n const timeoutIdRef = React.useRef();\n const stringRef = React.useRef('');\n const prevIndexRef = React.useRef((_ref = selectedIndex != null ? selectedIndex : activeIndex) != null ? _ref : -1);\n const matchIndexRef = React.useRef(null);\n const onMatch = useEffectEvent(unstable_onMatch);\n const onTypingChange = useEffectEvent(unstable_onTypingChange);\n const findMatchRef = useLatestRef(findMatch);\n const ignoreKeysRef = useLatestRef(ignoreKeys);\n index(() => {\n if (open) {\n clearTimeout(timeoutIdRef.current);\n matchIndexRef.current = null;\n stringRef.current = '';\n }\n }, [open]);\n index(() => {\n // Sync arrow key navigation but not typeahead navigation.\n if (open && stringRef.current === '') {\n var _ref2;\n prevIndexRef.current = (_ref2 = selectedIndex != null ? selectedIndex : activeIndex) != null ? _ref2 : -1;\n }\n }, [open, selectedIndex, activeIndex]);\n return React.useMemo(() => {\n if (!enabled) {\n return {};\n }\n function setTypingChange(value) {\n if (value) {\n if (!dataRef.current.typing) {\n dataRef.current.typing = value;\n onTypingChange(value);\n }\n } else {\n if (dataRef.current.typing) {\n dataRef.current.typing = value;\n onTypingChange(value);\n }\n }\n }\n function getMatchingIndex(list, orderedList, string) {\n const str = findMatchRef.current ? findMatchRef.current(orderedList, string) : orderedList.find(text => (text == null ? void 0 : text.toLocaleLowerCase().indexOf(string.toLocaleLowerCase())) === 0);\n return str ? list.indexOf(str) : -1;\n }\n function onKeyDown(event) {\n const listContent = listRef.current;\n if (stringRef.current.length > 0 && stringRef.current[0] !== ' ') {\n if (getMatchingIndex(listContent, listContent, stringRef.current) === -1) {\n setTypingChange(false);\n } else if (event.key === ' ') {\n stopEvent(event);\n }\n }\n if (listContent == null || ignoreKeysRef.current.includes(event.key) ||\n // Character key.\n event.key.length !== 1 ||\n // Modifier key.\n event.ctrlKey || event.metaKey || event.altKey) {\n return;\n }\n if (open && event.key !== ' ') {\n stopEvent(event);\n setTypingChange(true);\n }\n\n // Bail out if the list contains a word like \"llama\" or \"aaron\". TODO:\n // allow it in this case, too.\n const allowRapidSuccessionOfFirstLetter = listContent.every(text => {\n var _text$, _text$2;\n return text ? ((_text$ = text[0]) == null ? void 0 : _text$.toLocaleLowerCase()) !== ((_text$2 = text[1]) == null ? void 0 : _text$2.toLocaleLowerCase()) : true;\n });\n\n // Allows the user to cycle through items that start with the same letter\n // in rapid succession.\n if (allowRapidSuccessionOfFirstLetter && stringRef.current === event.key) {\n stringRef.current = '';\n prevIndexRef.current = matchIndexRef.current;\n }\n stringRef.current += event.key;\n clearTimeout(timeoutIdRef.current);\n timeoutIdRef.current = setTimeout(() => {\n stringRef.current = '';\n prevIndexRef.current = matchIndexRef.current;\n setTypingChange(false);\n }, resetMs);\n const prevIndex = prevIndexRef.current;\n const index = getMatchingIndex(listContent, [...listContent.slice((prevIndex || 0) + 1), ...listContent.slice(0, (prevIndex || 0) + 1)], stringRef.current);\n if (index !== -1) {\n onMatch(index);\n matchIndexRef.current = index;\n } else if (event.key !== ' ') {\n stringRef.current = '';\n setTypingChange(false);\n }\n }\n return {\n reference: {\n onKeyDown\n },\n floating: {\n onKeyDown,\n onKeyUp(event) {\n if (event.key === ' ') {\n setTypingChange(false);\n }\n }\n }\n };\n }, [enabled, open, dataRef, listRef, resetMs, ignoreKeysRef, findMatchRef, onMatch, onTypingChange]);\n}\n\nfunction getArgsWithCustomFloatingHeight(state, height) {\n return {\n ...state,\n rects: {\n ...state.rects,\n floating: {\n ...state.rects.floating,\n height\n }\n }\n };\n}\n/**\n * Positions the floating element such that an inner element inside\n * of it is anchored to the reference element.\n * @see https://floating-ui.com/docs/inner\n */\nconst inner = props => ({\n name: 'inner',\n options: props,\n async fn(state) {\n const {\n listRef,\n overflowRef,\n onFallbackChange,\n offset: innerOffset = 0,\n index = 0,\n minItemsVisible = 4,\n referenceOverflowThreshold = 0,\n scrollRef,\n ...detectOverflowOptions\n } = props;\n const {\n rects,\n elements: {\n floating\n }\n } = state;\n const item = listRef.current[index];\n if (process.env.NODE_ENV !== \"production\") {\n if (!state.placement.startsWith('bottom')) {\n console.warn(['Floating UI: `placement` side must be \"bottom\" when using the', '`inner` middleware.'].join(' '));\n }\n }\n if (!item) {\n return {};\n }\n const nextArgs = {\n ...state,\n ...(await offset(-item.offsetTop - floating.clientTop - rects.reference.height / 2 - item.offsetHeight / 2 - innerOffset).fn(state))\n };\n const el = (scrollRef == null ? void 0 : scrollRef.current) || floating;\n const overflow = await detectOverflow(getArgsWithCustomFloatingHeight(nextArgs, el.scrollHeight), detectOverflowOptions);\n const refOverflow = await detectOverflow(nextArgs, {\n ...detectOverflowOptions,\n elementContext: 'reference'\n });\n const diffY = Math.max(0, overflow.top);\n const nextY = nextArgs.y + diffY;\n const maxHeight = Math.max(0, el.scrollHeight - diffY - Math.max(0, overflow.bottom));\n el.style.maxHeight = maxHeight + \"px\";\n el.scrollTop = diffY;\n\n // There is not enough space, fallback to standard anchored positioning\n if (onFallbackChange) {\n if (el.offsetHeight < item.offsetHeight * Math.min(minItemsVisible, listRef.current.length - 1) - 1 || refOverflow.top >= -referenceOverflowThreshold || refOverflow.bottom >= -referenceOverflowThreshold) {\n flushSync(() => onFallbackChange(true));\n } else {\n flushSync(() => onFallbackChange(false));\n }\n }\n if (overflowRef) {\n overflowRef.current = await detectOverflow(getArgsWithCustomFloatingHeight({\n ...nextArgs,\n y: nextY\n }, el.offsetHeight), detectOverflowOptions);\n }\n return {\n y: nextY\n };\n }\n});\n/**\n * Changes the `inner` middleware's `offset` upon a `wheel` event to\n * expand the floating element's height, revealing more list items.\n * @see https://floating-ui.com/docs/inner\n */\nfunction useInnerOffset(context, props) {\n const {\n open,\n elements\n } = context;\n const {\n enabled = true,\n overflowRef,\n scrollRef,\n onChange: unstable_onChange\n } = props;\n const onChange = useEffectEvent(unstable_onChange);\n const controlledScrollingRef = React.useRef(false);\n const prevScrollTopRef = React.useRef(null);\n const initialOverflowRef = React.useRef(null);\n React.useEffect(() => {\n if (!enabled) {\n return;\n }\n function onWheel(e) {\n if (e.ctrlKey || !el || overflowRef.current == null) {\n return;\n }\n const dY = e.deltaY;\n const isAtTop = overflowRef.current.top >= -0.5;\n const isAtBottom = overflowRef.current.bottom >= -0.5;\n const remainingScroll = el.scrollHeight - el.clientHeight;\n const sign = dY < 0 ? -1 : 1;\n const method = dY < 0 ? 'max' : 'min';\n if (el.scrollHeight <= el.clientHeight) {\n return;\n }\n if (!isAtTop && dY > 0 || !isAtBottom && dY < 0) {\n e.preventDefault();\n flushSync(() => {\n onChange(d => d + Math[method](dY, remainingScroll * sign));\n });\n } else if (/firefox/i.test(getUserAgent())) {\n // Needed to propagate scrolling during momentum scrolling phase once\n // it gets limited by the boundary. UX improvement, not critical.\n el.scrollTop += dY;\n }\n }\n const el = (scrollRef == null ? void 0 : scrollRef.current) || elements.floating;\n if (open && el) {\n el.addEventListener('wheel', onWheel);\n\n // Wait for the position to be ready.\n requestAnimationFrame(() => {\n prevScrollTopRef.current = el.scrollTop;\n if (overflowRef.current != null) {\n initialOverflowRef.current = {\n ...overflowRef.current\n };\n }\n });\n return () => {\n prevScrollTopRef.current = null;\n initialOverflowRef.current = null;\n el.removeEventListener('wheel', onWheel);\n };\n }\n }, [enabled, open, elements.floating, overflowRef, scrollRef, onChange]);\n return React.useMemo(() => {\n if (!enabled) {\n return {};\n }\n return {\n floating: {\n onKeyDown() {\n controlledScrollingRef.current = true;\n },\n onWheel() {\n controlledScrollingRef.current = false;\n },\n onPointerMove() {\n controlledScrollingRef.current = false;\n },\n onScroll() {\n const el = (scrollRef == null ? void 0 : scrollRef.current) || elements.floating;\n if (!overflowRef.current || !el || !controlledScrollingRef.current) {\n return;\n }\n if (prevScrollTopRef.current !== null) {\n const scrollDiff = el.scrollTop - prevScrollTopRef.current;\n if (overflowRef.current.bottom < -0.5 && scrollDiff < -1 || overflowRef.current.top < -0.5 && scrollDiff > 1) {\n flushSync(() => onChange(d => d + scrollDiff));\n }\n }\n\n // [Firefox] Wait for the height change to have been applied.\n requestAnimationFrame(() => {\n prevScrollTopRef.current = el.scrollTop;\n });\n }\n }\n };\n }, [enabled, overflowRef, elements.floating, scrollRef, onChange]);\n}\n\nfunction isPointInPolygon(point, polygon) {\n const [x, y] = point;\n let isInside = false;\n const length = polygon.length;\n for (let i = 0, j = length - 1; i < length; j = i++) {\n const [xi, yi] = polygon[i] || [0, 0];\n const [xj, yj] = polygon[j] || [0, 0];\n const intersect = yi >= y !== yj >= y && x <= (xj - xi) * (y - yi) / (yj - yi) + xi;\n if (intersect) {\n isInside = !isInside;\n }\n }\n return isInside;\n}\nfunction isInside(point, rect) {\n return point[0] >= rect.x && point[0] <= rect.x + rect.width && point[1] >= rect.y && point[1] <= rect.y + rect.height;\n}\n/**\n * Generates a safe polygon area that the user can traverse without closing the\n * floating element once leaving the reference element.\n * @see https://floating-ui.com/docs/useHover#safepolygon\n */\nfunction safePolygon(options) {\n if (options === void 0) {\n options = {};\n }\n const {\n buffer = 0.5,\n blockPointerEvents = false,\n requireIntent = true\n } = options;\n let timeoutId;\n let hasLanded = false;\n let lastX = null;\n let lastY = null;\n let lastCursorTime = performance.now();\n function getCursorSpeed(x, y) {\n const currentTime = performance.now();\n const elapsedTime = currentTime - lastCursorTime;\n if (lastX === null || lastY === null || elapsedTime === 0) {\n lastX = x;\n lastY = y;\n lastCursorTime = currentTime;\n return null;\n }\n const deltaX = x - lastX;\n const deltaY = y - lastY;\n const distance = Math.sqrt(deltaX * deltaX + deltaY * deltaY);\n const speed = distance / elapsedTime; // px / ms\n\n lastX = x;\n lastY = y;\n lastCursorTime = currentTime;\n return speed;\n }\n const fn = _ref => {\n let {\n x,\n y,\n placement,\n elements,\n onClose,\n nodeId,\n tree\n } = _ref;\n return function onMouseMove(event) {\n function close() {\n clearTimeout(timeoutId);\n onClose();\n }\n clearTimeout(timeoutId);\n if (!elements.domReference || !elements.floating || placement == null || x == null || y == null) {\n return;\n }\n const {\n clientX,\n clientY\n } = event;\n const clientPoint = [clientX, clientY];\n const target = getTarget(event);\n const isLeave = event.type === 'mouseleave';\n const isOverFloatingEl = contains(elements.floating, target);\n const isOverReferenceEl = contains(elements.domReference, target);\n const refRect = elements.domReference.getBoundingClientRect();\n const rect = elements.floating.getBoundingClientRect();\n const side = placement.split('-')[0];\n const cursorLeaveFromRight = x > rect.right - rect.width / 2;\n const cursorLeaveFromBottom = y > rect.bottom - rect.height / 2;\n const isOverReferenceRect = isInside(clientPoint, refRect);\n const isFloatingWider = rect.width > refRect.width;\n const isFloatingTaller = rect.height > refRect.height;\n const left = (isFloatingWider ? refRect : rect).left;\n const right = (isFloatingWider ? refRect : rect).right;\n const top = (isFloatingTaller ? refRect : rect).top;\n const bottom = (isFloatingTaller ? refRect : rect).bottom;\n if (isOverFloatingEl) {\n hasLanded = true;\n if (!isLeave) {\n return;\n }\n }\n if (isOverReferenceEl) {\n hasLanded = false;\n }\n if (isOverReferenceEl && !isLeave) {\n hasLanded = true;\n return;\n }\n\n // Prevent overlapping floating element from being stuck in an open-close\n // loop: https://github.com/floating-ui/floating-ui/issues/1910\n if (isLeave && isElement(event.relatedTarget) && contains(elements.floating, event.relatedTarget)) {\n return;\n }\n\n // If any nested child is open, abort.\n if (tree && getChildren(tree.nodesRef.current, nodeId).some(_ref2 => {\n let {\n context\n } = _ref2;\n return context == null ? void 0 : context.open;\n })) {\n return;\n }\n\n // If the pointer is leaving from the opposite side, the \"buffer\" logic\n // creates a point where the floating element remains open, but should be\n // ignored.\n // A constant of 1 handles floating point rounding errors.\n if (side === 'top' && y >= refRect.bottom - 1 || side === 'bottom' && y <= refRect.top + 1 || side === 'left' && x >= refRect.right - 1 || side === 'right' && x <= refRect.left + 1) {\n return close();\n }\n\n // Ignore when the cursor is within the rectangular trough between the\n // two elements. Since the triangle is created from the cursor point,\n // which can start beyond the ref element's edge, traversing back and\n // forth from the ref to the floating element can cause it to close. This\n // ensures it always remains open in that case.\n let rectPoly = [];\n switch (side) {\n case 'top':\n rectPoly = [[left, refRect.top + 1], [left, rect.bottom - 1], [right, rect.bottom - 1], [right, refRect.top + 1]];\n break;\n case 'bottom':\n rectPoly = [[left, rect.top + 1], [left, refRect.bottom - 1], [right, refRect.bottom - 1], [right, rect.top + 1]];\n break;\n case 'left':\n rectPoly = [[rect.right - 1, bottom], [rect.right - 1, top], [refRect.left + 1, top], [refRect.left + 1, bottom]];\n break;\n case 'right':\n rectPoly = [[refRect.right - 1, bottom], [refRect.right - 1, top], [rect.left + 1, top], [rect.left + 1, bottom]];\n break;\n }\n function getPolygon(_ref3) {\n let [x, y] = _ref3;\n switch (side) {\n case 'top':\n {\n const cursorPointOne = [isFloatingWider ? x + buffer / 2 : cursorLeaveFromRight ? x + buffer * 4 : x - buffer * 4, y + buffer + 1];\n const cursorPointTwo = [isFloatingWider ? x - buffer / 2 : cursorLeaveFromRight ? x + buffer * 4 : x - buffer * 4, y + buffer + 1];\n const commonPoints = [[rect.left, cursorLeaveFromRight ? rect.bottom - buffer : isFloatingWider ? rect.bottom - buffer : rect.top], [rect.right, cursorLeaveFromRight ? isFloatingWider ? rect.bottom - buffer : rect.top : rect.bottom - buffer]];\n return [cursorPointOne, cursorPointTwo, ...commonPoints];\n }\n case 'bottom':\n {\n const cursorPointOne = [isFloatingWider ? x + buffer / 2 : cursorLeaveFromRight ? x + buffer * 4 : x - buffer * 4, y - buffer];\n const cursorPointTwo = [isFloatingWider ? x - buffer / 2 : cursorLeaveFromRight ? x + buffer * 4 : x - buffer * 4, y - buffer];\n const commonPoints = [[rect.left, cursorLeaveFromRight ? rect.top + buffer : isFloatingWider ? rect.top + buffer : rect.bottom], [rect.right, cursorLeaveFromRight ? isFloatingWider ? rect.top + buffer : rect.bottom : rect.top + buffer]];\n return [cursorPointOne, cursorPointTwo, ...commonPoints];\n }\n case 'left':\n {\n const cursorPointOne = [x + buffer + 1, isFloatingTaller ? y + buffer / 2 : cursorLeaveFromBottom ? y + buffer * 4 : y - buffer * 4];\n const cursorPointTwo = [x + buffer + 1, isFloatingTaller ? y - buffer / 2 : cursorLeaveFromBottom ? y + buffer * 4 : y - buffer * 4];\n const commonPoints = [[cursorLeaveFromBottom ? rect.right - buffer : isFloatingTaller ? rect.right - buffer : rect.left, rect.top], [cursorLeaveFromBottom ? isFloatingTaller ? rect.right - buffer : rect.left : rect.right - buffer, rect.bottom]];\n return [...commonPoints, cursorPointOne, cursorPointTwo];\n }\n case 'right':\n {\n const cursorPointOne = [x - buffer, isFloatingTaller ? y + buffer / 2 : cursorLeaveFromBottom ? y + buffer * 4 : y - buffer * 4];\n const cursorPointTwo = [x - buffer, isFloatingTaller ? y - buffer / 2 : cursorLeaveFromBottom ? y + buffer * 4 : y - buffer * 4];\n const commonPoints = [[cursorLeaveFromBottom ? rect.left + buffer : isFloatingTaller ? rect.left + buffer : rect.right, rect.top], [cursorLeaveFromBottom ? isFloatingTaller ? rect.left + buffer : rect.right : rect.left + buffer, rect.bottom]];\n return [cursorPointOne, cursorPointTwo, ...commonPoints];\n }\n }\n }\n if (isPointInPolygon([clientX, clientY], rectPoly)) {\n return;\n }\n if (hasLanded && !isOverReferenceRect) {\n return close();\n }\n if (!isLeave && requireIntent) {\n const cursorSpeed = getCursorSpeed(event.clientX, event.clientY);\n const cursorSpeedThreshold = 0.1;\n if (cursorSpeed !== null && cursorSpeed < cursorSpeedThreshold) {\n return close();\n }\n }\n if (!isPointInPolygon([clientX, clientY], getPolygon([x, y]))) {\n close();\n } else if (!hasLanded && requireIntent) {\n timeoutId = window.setTimeout(close, 40);\n }\n };\n };\n fn.__options = {\n blockPointerEvents\n };\n return fn;\n}\n\nexport { Composite, CompositeItem, FloatingArrow, FloatingDelayGroup, FloatingFocusManager, FloatingList, FloatingNode, FloatingOverlay, FloatingPortal, FloatingTree, inner, safePolygon, useClick, useClientPoint, useDelayGroup, useDelayGroupContext, useDismiss, useFloating, useFloatingNodeId, useFloatingParentNodeId, useFloatingPortalNode, useFloatingTree, useFocus, useHover, useId, useInnerOffset, useInteractions, useListItem, useListNavigation, useMergeRefs, useRole, useTransitionStatus, useTransitionStyles, useTypeahead };\n","import { offset, autoPlacement, flip, shift, arrow } from '@floating-ui/react';\n\nconst getMiddleware = ({\n arrowRef,\n placement\n}) => {\n const middleware = [];\n middleware.push(offset(8));\n middleware.push(placement === \"auto\" ? autoPlacement() : flip());\n middleware.push(shift({ padding: 8 }));\n if (arrowRef?.current) {\n middleware.push(arrow({ element: arrowRef.current }));\n }\n return middleware;\n};\nconst getPlacement = ({ placement }) => {\n return placement === \"auto\" ? void 0 : placement;\n};\nconst getArrowPlacement = ({ placement }) => {\n return {\n top: \"bottom\",\n right: \"left\",\n bottom: \"top\",\n left: \"right\"\n }[placement.split(\"-\")[0]];\n};\n\nexport { getArrowPlacement, getMiddleware, getPlacement };\n//# sourceMappingURL=helpers.mjs.map\n","import { useFloating, autoUpdate, useInteractions, useClick, useHover, safePolygon, useDismiss, useRole } from '@floating-ui/react';\nimport { getPlacement, getMiddleware } from '../components/Floating/helpers.mjs';\n\nconst useBaseFLoating = ({\n open,\n arrowRef,\n placement = \"top\",\n setOpen\n}) => {\n return useFloating({\n placement: getPlacement({ placement }),\n open,\n onOpenChange: setOpen,\n whileElementsMounted: autoUpdate,\n middleware: getMiddleware({ placement, arrowRef })\n });\n};\nconst useFloatingInteractions = ({\n context,\n trigger,\n role = \"tooltip\",\n interactions = []\n}) => {\n return useInteractions([\n useClick(context, { enabled: trigger === \"click\" }),\n useHover(context, {\n enabled: trigger === \"hover\",\n handleClose: safePolygon()\n }),\n useDismiss(context),\n useRole(context, { role }),\n ...interactions\n ]);\n};\n\nexport { useBaseFLoating, useFloatingInteractions };\n//# sourceMappingURL=use-floating.mjs.map\n","'use client';\nimport { createContext, useContext } from 'react';\n\nconst DropdownContext = createContext(void 0);\nfunction useDropdownContext() {\n const context = useContext(DropdownContext);\n if (!context) {\n throw new Error(\"useDropdownContext should be used within the DropdownContext provider!\");\n }\n return context;\n}\n\nexport { DropdownContext, useDropdownContext };\n//# sourceMappingURL=DropdownContext.mjs.map\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { twMerge } from 'tailwind-merge';\nimport { useDropdownContext } from './DropdownContext.mjs';\n\nconst DropdownDivider = ({ className, theme: customTheme = {}, ...props }) => {\n const { theme: rootTheme } = useDropdownContext();\n const theme = customTheme.divider ?? rootTheme.floating.divider;\n return /* @__PURE__ */ jsx(\"div\", { className: twMerge(theme, className), ...props });\n};\n\nexport { DropdownDivider };\n//# sourceMappingURL=DropdownDivider.mjs.map\n","'use client';\nimport { jsxs, Fragment, jsx } from 'react/jsx-runtime';\nimport { twMerge } from 'tailwind-merge';\nimport { useDropdownContext } from './DropdownContext.mjs';\nimport { DropdownDivider } from './DropdownDivider.mjs';\n\nconst DropdownHeader = ({ children, className, theme: customTheme = {}, ...props }) => {\n const { theme: rootTheme } = useDropdownContext();\n const theme = customTheme.header ?? rootTheme.floating.header;\n return /* @__PURE__ */ jsxs(Fragment, { children: [\n /* @__PURE__ */ jsx(\"div\", { className: twMerge(theme, className), ...props, children }),\n /* @__PURE__ */ jsx(DropdownDivider, {})\n ] });\n};\n\nexport { DropdownHeader };\n//# sourceMappingURL=DropdownHeader.mjs.map\n","'use client';\nimport { jsx, jsxs } from 'react/jsx-runtime';\nimport { useListItem, useMergeRefs } from '@floating-ui/react';\nimport { forwardRef } from 'react';\nimport { twMerge } from 'tailwind-merge';\nimport { mergeDeep } from '../../helpers/merge-deep.mjs';\nimport { ButtonBase } from '../Button/ButtonBase.mjs';\nimport { useDropdownContext } from './DropdownContext.mjs';\n\nconst DropdownItem = forwardRef(\n ({ children, className, icon: Icon, onClick, theme: customTheme = {}, ...props }, forwardedRef) => {\n const { ref: listItemRef, index } = useListItem({ label: typeof children === \"string\" ? children : void 0 });\n const ref = useMergeRefs([forwardedRef, listItemRef]);\n const { theme: rootTheme, activeIndex, dismissOnClick, getItemProps, handleSelect } = useDropdownContext();\n const isActive = activeIndex === index;\n const theme = mergeDeep(rootTheme.floating.item, customTheme);\n const theirProps = props;\n return /* @__PURE__ */ jsx(\"li\", { role: \"menuitem\", className: theme.container, children: /* @__PURE__ */ jsxs(\n ButtonBase,\n {\n ref,\n className: twMerge(theme.base, className),\n ...theirProps,\n ...getItemProps({\n onClick: () => {\n onClick?.();\n dismissOnClick && handleSelect(null);\n }\n }),\n tabIndex: isActive ? 0 : -1,\n children: [\n Icon && /* @__PURE__ */ jsx(Icon, { className: theme.icon }),\n children\n ]\n }\n ) });\n }\n);\nDropdownItem.displayName = \"DropdownItem\";\n\nexport { DropdownItem };\n//# sourceMappingURL=DropdownItem.mjs.map\n","'use client';\nimport { jsxs, jsx } from 'react/jsx-runtime';\nimport { useListNavigation, useTypeahead, FloatingFocusManager, FloatingList } from '@floating-ui/react';\nimport { useState, useRef, useCallback, useMemo, useEffect, cloneElement } from 'react';\nimport { HiOutlineChevronDown, HiOutlineChevronUp, HiOutlineChevronRight, HiOutlineChevronLeft } from 'react-icons/hi';\nimport { twMerge } from 'tailwind-merge';\nimport { mergeDeep } from '../../helpers/merge-deep.mjs';\nimport { useBaseFLoating, useFloatingInteractions } from '../../hooks/use-floating.mjs';\nimport { getTheme } from '../../theme-store/index.mjs';\nimport { Button } from '../Button/Button.mjs';\nimport '../Button/ButtonGroup.mjs';\nimport { DropdownContext } from './DropdownContext.mjs';\nimport { DropdownDivider } from './DropdownDivider.mjs';\nimport { DropdownHeader } from './DropdownHeader.mjs';\nimport { DropdownItem } from './DropdownItem.mjs';\n\nconst icons = {\n top: HiOutlineChevronUp,\n right: HiOutlineChevronRight,\n bottom: HiOutlineChevronDown,\n left: HiOutlineChevronLeft\n};\nconst Trigger = ({\n refs,\n children,\n inline,\n theme,\n disabled,\n setButtonWidth,\n getReferenceProps,\n renderTrigger,\n ...buttonProps\n}) => {\n const ref = refs.reference;\n const a11yProps = getReferenceProps();\n useEffect(() => {\n if (ref.current) {\n setButtonWidth?.(ref.current.clientWidth);\n }\n }, [ref, setButtonWidth]);\n if (renderTrigger) {\n const triggerElement = renderTrigger(theme);\n return cloneElement(triggerElement, { ref: refs.setReference, disabled, ...a11yProps, ...triggerElement.props });\n }\n return inline ? /* @__PURE__ */ jsx(\"button\", { type: \"button\", ref: refs.setReference, className: theme?.inlineWrapper, disabled, ...a11yProps, children }) : /* @__PURE__ */ jsx(Button, { ...buttonProps, disabled, type: \"button\", ref: refs.setReference, ...a11yProps, children });\n};\nconst DropdownComponent = ({\n children,\n className,\n dismissOnClick = true,\n theme: customTheme = {},\n renderTrigger,\n ...props\n}) => {\n const [open, setOpen] = useState(false);\n const [activeIndex, setActiveIndex] = useState(null);\n const [selectedIndex, setSelectedIndex] = useState(null);\n const [buttonWidth, setButtonWidth] = useState(void 0);\n const elementsRef = useRef([]);\n const labelsRef = useRef([]);\n const theme = mergeDeep(getTheme().dropdown, customTheme);\n const theirProps = props;\n const dataTestId = props[\"data-testid\"] || \"flowbite-dropdown-target\";\n const {\n placement = props.inline ? \"bottom-start\" : \"bottom\",\n trigger = \"click\",\n label,\n inline,\n arrowIcon = true,\n ...buttonProps\n } = theirProps;\n const handleSelect = useCallback((index) => {\n setSelectedIndex(index);\n setOpen(false);\n }, []);\n const handleTypeaheadMatch = useCallback(\n (index) => {\n if (open) {\n setActiveIndex(index);\n } else {\n handleSelect(index);\n }\n },\n [open, handleSelect]\n );\n const { context, floatingStyles, refs } = useBaseFLoating({\n open,\n setOpen,\n placement\n });\n const listNav = useListNavigation(context, {\n listRef: elementsRef,\n activeIndex,\n selectedIndex,\n onNavigate: setActiveIndex\n });\n const typeahead = useTypeahead(context, {\n listRef: labelsRef,\n activeIndex,\n selectedIndex,\n onMatch: handleTypeaheadMatch\n });\n const { getReferenceProps, getFloatingProps, getItemProps } = useFloatingInteractions({\n context,\n role: \"menu\",\n trigger,\n interactions: [listNav, typeahead]\n });\n const Icon = useMemo(() => {\n const [p] = placement.split(\"-\");\n return icons[p] ?? HiOutlineChevronDown;\n }, [placement]);\n return /* @__PURE__ */ jsxs(DropdownContext.Provider, { value: { theme, activeIndex, dismissOnClick, getItemProps, handleSelect }, children: [\n /* @__PURE__ */ jsxs(\n Trigger,\n {\n ...buttonProps,\n refs,\n inline,\n theme,\n \"data-testid\": dataTestId,\n className: twMerge(theme.floating.target, buttonProps.className),\n setButtonWidth,\n getReferenceProps,\n renderTrigger,\n children: [\n label,\n arrowIcon && /* @__PURE__ */ jsx(Icon, { className: theme.arrowIcon })\n ]\n }\n ),\n open && /* @__PURE__ */ jsx(FloatingFocusManager, { context, modal: false, children: /* @__PURE__ */ jsx(\n \"div\",\n {\n ref: refs.setFloating,\n style: { ...floatingStyles, minWidth: buttonWidth },\n \"data-testid\": \"flowbite-dropdown\",\n \"aria-expanded\": open,\n ...getFloatingProps({\n className: twMerge(\n theme.floating.base,\n theme.floating.animation,\n \"duration-100\",\n !open && theme.floating.hidden,\n theme.floating.style.auto,\n className\n )\n }),\n children: /* @__PURE__ */ jsx(FloatingList, { elementsRef, labelsRef, children: /* @__PURE__ */ jsx(\"ul\", { className: theme.content, tabIndex: -1, children }) })\n }\n ) })\n ] });\n};\nDropdownComponent.displayName = \"Dropdown\";\nDropdownHeader.displayName = \"Dropdown.Header\";\nDropdownDivider.displayName = \"Dropdown.Divider\";\nconst Dropdown = Object.assign(DropdownComponent, {\n Item: DropdownItem,\n Header: DropdownHeader,\n Divider: DropdownDivider\n});\n\nexport { Dropdown };\n//# sourceMappingURL=Dropdown.mjs.map\n","import { jsxs, Fragment, jsx } from 'react/jsx-runtime';\nimport { forwardRef } from 'react';\nimport { twMerge } from 'tailwind-merge';\nimport { mergeDeep } from '../../helpers/merge-deep.mjs';\nimport { getTheme } from '../../theme-store/index.mjs';\nimport { HelperText } from '../HelperText/HelperText.mjs';\n\nconst FileInput = forwardRef(\n ({ className, color = \"gray\", helperText, sizing = \"md\", theme: customTheme = {}, ...props }, ref) => {\n const theme = mergeDeep(getTheme().fileInput, customTheme);\n return /* @__PURE__ */ jsxs(Fragment, { children: [\n /* @__PURE__ */ jsx(\"div\", { className: twMerge(theme.root.base, className), children: /* @__PURE__ */ jsx(\"div\", { className: theme.field.base, children: /* @__PURE__ */ jsx(\n \"input\",\n {\n className: twMerge(\n theme.field.input.base,\n theme.field.input.colors[color],\n theme.field.input.sizes[sizing]\n ),\n ...props,\n type: \"file\",\n ref\n }\n ) }) }),\n helperText && /* @__PURE__ */ jsx(HelperText, { color, children: helperText })\n ] });\n }\n);\nFileInput.displayName = \"FileInput\";\n\nexport { FileInput };\n//# sourceMappingURL=FileInput.mjs.map\n","import { jsxs, jsx } from 'react/jsx-runtime';\nimport { forwardRef, useId } from 'react';\nimport { twMerge } from 'tailwind-merge';\nimport { mergeDeep } from '../../helpers/merge-deep.mjs';\nimport { getTheme } from '../../theme-store/index.mjs';\n\nconst FloatingLabel = forwardRef(\n ({\n label,\n helperText,\n color = \"default\",\n sizing = \"md\",\n variant,\n disabled = false,\n theme: customTheme = {},\n className,\n ...props\n }, ref) => {\n const randomId = useId();\n const theme = mergeDeep(getTheme().floatingLabel, customTheme);\n return /* @__PURE__ */ jsxs(\"div\", { children: [\n /* @__PURE__ */ jsxs(\"div\", { className: twMerge(\"relative\", variant === \"standard\" ? \"z-0\" : \"\"), children: [\n /* @__PURE__ */ jsx(\n \"input\",\n {\n type: \"text\",\n id: props.id ? props.id : \"floatingLabel\" + randomId,\n \"aria-describedby\": \"outlined_success_help\",\n className: twMerge(theme.input[color][variant][sizing], className),\n placeholder: \" \",\n \"data-testid\": \"floating-label\",\n disabled,\n ...props,\n ref\n }\n ),\n /* @__PURE__ */ jsx(\n \"label\",\n {\n htmlFor: props.id ? props.id : \"floatingLabel\" + randomId,\n className: twMerge(theme.label[color][variant][sizing], className),\n children: label\n }\n )\n ] }),\n /* @__PURE__ */ jsx(\"p\", { id: \"outlined_helper_text\" + randomId, className: twMerge(theme.helperText[color], className), children: helperText })\n ] });\n }\n);\nFloatingLabel.displayName = \"FloatingLabel\";\n\nexport { FloatingLabel };\n//# sourceMappingURL=FloatingLabel.mjs.map\n","import { jsxs, Fragment, jsx } from 'react/jsx-runtime';\nimport { ThemeInit } from '../../theme-store/init/index.mjs';\n\nconst Flowbite = ({ children, theme }) => {\n return /* @__PURE__ */ jsxs(Fragment, { children: [\n /* @__PURE__ */ jsx(ThemeInit, { mode: theme?.mode, theme: theme?.theme }),\n children\n ] });\n};\nFlowbite.displayName = \"Flowbite\";\n\nexport { Flowbite };\n//# sourceMappingURL=Flowbite.mjs.map\n","import { jsx, jsxs } from 'react/jsx-runtime';\nimport { twMerge } from 'tailwind-merge';\nimport { mergeDeep } from '../../helpers/merge-deep.mjs';\nimport { getTheme } from '../../theme-store/index.mjs';\n\nconst FooterBrand = ({\n alt,\n className,\n children,\n href,\n name,\n src,\n theme: customTheme = {},\n ...props\n}) => {\n const theme = mergeDeep(getTheme().footer.brand, customTheme);\n return /* @__PURE__ */ jsx(\"div\", { children: href ? /* @__PURE__ */ jsxs(\"a\", { \"data-testid\": \"flowbite-footer-brand\", href, className: twMerge(theme.base, className), ...props, children: [\n /* @__PURE__ */ jsx(\"img\", { alt, src, className: theme.img }),\n /* @__PURE__ */ jsx(\"span\", { \"data-testid\": \"flowbite-footer-brand-span\", className: theme.span, children: name }),\n children\n ] }) : /* @__PURE__ */ jsx(\n \"img\",\n {\n alt,\n \"data-testid\": \"flowbite-footer-brand\",\n src,\n className: twMerge(theme.img, className),\n ...props\n }\n ) });\n};\n\nexport { FooterBrand };\n//# sourceMappingURL=FooterBrand.mjs.map\n","import { jsxs, jsx } from 'react/jsx-runtime';\nimport { twMerge } from 'tailwind-merge';\nimport { mergeDeep } from '../../helpers/merge-deep.mjs';\nimport { getTheme } from '../../theme-store/index.mjs';\n\nconst FooterCopyright = ({\n by,\n className,\n href,\n theme: customTheme = {},\n year,\n ...props\n}) => {\n const theme = mergeDeep(getTheme().footer.copyright, customTheme);\n return /* @__PURE__ */ jsxs(\"div\", { \"data-testid\": \"flowbite-footer-copyright\", className: twMerge(theme.base, className), ...props, children: [\n \"\\xA9 \",\n year,\n href ? /* @__PURE__ */ jsx(\"a\", { href, className: theme.href, children: by }) : /* @__PURE__ */ jsx(\"span\", { \"data-testid\": \"flowbite-footer-copyright-span\", className: theme.span, children: by })\n ] });\n};\n\nexport { FooterCopyright };\n//# sourceMappingURL=FooterCopyright.mjs.map\n","import { jsx } from 'react/jsx-runtime';\nimport { twMerge } from 'tailwind-merge';\nimport { mergeDeep } from '../../helpers/merge-deep.mjs';\nimport { getTheme } from '../../theme-store/index.mjs';\n\nconst FooterDivider = ({ className, theme: customTheme = {}, ...props }) => {\n const theme = mergeDeep(getTheme().footer.divider, customTheme);\n return /* @__PURE__ */ jsx(\"hr\", { \"data-testid\": \"footer-divider\", className: twMerge(theme.base, className), ...props });\n};\n\nexport { FooterDivider };\n//# sourceMappingURL=FooterDivider.mjs.map\n","import { jsx } from 'react/jsx-runtime';\nimport { twMerge } from 'tailwind-merge';\nimport { mergeDeep } from '../../helpers/merge-deep.mjs';\nimport { getTheme } from '../../theme-store/index.mjs';\n\nconst FooterIcon = ({\n ariaLabel,\n className,\n href,\n icon: Icon,\n theme: customTheme = {},\n ...props\n}) => {\n const theme = mergeDeep(getTheme().footer.icon, customTheme);\n return /* @__PURE__ */ jsx(\"div\", { children: href ? /* @__PURE__ */ jsx(\n \"a\",\n {\n \"aria-label\": ariaLabel,\n \"data-testid\": \"flowbite-footer-icon\",\n href,\n className: twMerge(theme.base, className),\n ...props,\n children: /* @__PURE__ */ jsx(Icon, { className: theme.size })\n }\n ) : /* @__PURE__ */ jsx(Icon, { \"data-testid\": \"flowbite-footer-icon\", className: theme.size, ...props }) });\n};\n\nexport { FooterIcon };\n//# sourceMappingURL=FooterIcon.mjs.map\n","import { jsx } from 'react/jsx-runtime';\nimport { twMerge } from 'tailwind-merge';\nimport { mergeDeep } from '../../helpers/merge-deep.mjs';\nimport { getTheme } from '../../theme-store/index.mjs';\n\nconst FooterLink = ({\n as: Component = \"a\",\n children,\n className,\n href,\n theme: customTheme = {},\n ...props\n}) => {\n const theme = mergeDeep(getTheme().footer.groupLink.link, customTheme);\n return /* @__PURE__ */ jsx(\"li\", { className: twMerge(theme.base, className), children: /* @__PURE__ */ jsx(Component, { href, className: theme.href, ...props, children }) });\n};\n\nexport { FooterLink };\n//# sourceMappingURL=FooterLink.mjs.map\n","import { jsx } from 'react/jsx-runtime';\nimport { twMerge } from 'tailwind-merge';\nimport { mergeDeep } from '../../helpers/merge-deep.mjs';\nimport { getTheme } from '../../theme-store/index.mjs';\n\nconst FooterLinkGroup = ({\n children,\n className,\n col = false,\n theme: customTheme = {},\n ...props\n}) => {\n const theme = mergeDeep(getTheme().footer.groupLink, customTheme);\n return /* @__PURE__ */ jsx(\"ul\", { \"data-testid\": \"footer-groupLink\", className: twMerge(theme.base, col && theme.col, className), ...props, children });\n};\n\nexport { FooterLinkGroup };\n//# sourceMappingURL=FooterLinkGroup.mjs.map\n","import { jsx } from 'react/jsx-runtime';\nimport { twMerge } from 'tailwind-merge';\nimport { mergeDeep } from '../../helpers/merge-deep.mjs';\nimport { getTheme } from '../../theme-store/index.mjs';\n\nconst FooterTitle = ({\n as: Component = \"h2\",\n className,\n theme: customTheme = {},\n title,\n ...props\n}) => {\n const theme = mergeDeep(getTheme().footer.title, customTheme);\n return /* @__PURE__ */ jsx(Component, { \"data-testid\": \"flowbite-footer-title\", className: twMerge(theme.base, className), ...props, children: title });\n};\n\nexport { FooterTitle };\n//# sourceMappingURL=FooterTitle.mjs.map\n","import { jsx } from 'react/jsx-runtime';\nimport { twMerge } from 'tailwind-merge';\nimport { mergeDeep } from '../../helpers/merge-deep.mjs';\nimport { getTheme } from '../../theme-store/index.mjs';\nimport { FooterBrand } from './FooterBrand.mjs';\nimport { FooterCopyright } from './FooterCopyright.mjs';\nimport { FooterDivider } from './FooterDivider.mjs';\nimport { FooterIcon } from './FooterIcon.mjs';\nimport { FooterLink } from './FooterLink.mjs';\nimport { FooterLinkGroup } from './FooterLinkGroup.mjs';\nimport { FooterTitle } from './FooterTitle.mjs';\n\nconst FooterComponent = ({\n bgDark = false,\n children,\n className,\n container = false,\n theme: customTheme = {},\n ...props\n}) => {\n const theme = mergeDeep(getTheme().footer, customTheme);\n return /* @__PURE__ */ jsx(\n \"footer\",\n {\n \"data-testid\": \"flowbite-footer\",\n className: twMerge(theme.root.base, bgDark && theme.root.bgDark, container && theme.root.container, className),\n ...props,\n children\n }\n );\n};\nFooterComponent.displayName = \"Footer\";\nFooterCopyright.displayName = \"Footer.Copyright\";\nFooterLink.displayName = \"Footer.Link\";\nFooterBrand.displayName = \"Footer.Brand\";\nFooterLinkGroup.displayName = \"Footer.LinkGroup\";\nFooterIcon.displayName = \"Footer.Icon\";\nFooterTitle.displayName = \"Footer.Title\";\nFooterDivider.displayName = \"Footer.Divider\";\nconst Footer = Object.assign(FooterComponent, {\n Copyright: FooterCopyright,\n Link: FooterLink,\n LinkGroup: FooterLinkGroup,\n Brand: FooterBrand,\n Icon: FooterIcon,\n Title: FooterTitle,\n Divider: FooterDivider\n});\n\nexport { Footer, FooterComponent };\n//# sourceMappingURL=Footer.mjs.map\n","import { jsxs, jsx } from 'react/jsx-runtime';\nimport { twMerge } from 'tailwind-merge';\nimport { mergeDeep } from '../../helpers/merge-deep.mjs';\nimport { getTheme } from '../../theme-store/index.mjs';\n\nconst ListItem = ({ children, className, icon: Icon, theme: customTheme = {}, ...props }) => {\n const theme = mergeDeep(getTheme().list.item, customTheme);\n return /* @__PURE__ */ jsxs(\"li\", { className: twMerge(theme.withIcon[Icon ? \"on\" : \"off\"], className), ...props, children: [\n Icon && /* @__PURE__ */ jsx(Icon, { className: twMerge(theme.icon) }),\n children\n ] });\n};\n\nexport { ListItem };\n//# sourceMappingURL=ListItem.mjs.map\n","import { jsx } from 'react/jsx-runtime';\nimport { twMerge } from 'tailwind-merge';\nimport { mergeDeep } from '../../helpers/merge-deep.mjs';\nimport { getTheme } from '../../theme-store/index.mjs';\nimport { ListItem } from './ListItem.mjs';\n\nconst ListComponent = ({\n children,\n className,\n unstyled,\n nested,\n ordered,\n horizontal,\n theme: customTheme = {},\n ...props\n}) => {\n const theme = mergeDeep(getTheme().list, customTheme);\n const Component = ordered ? \"ol\" : \"ul\";\n return /* @__PURE__ */ jsx(\n Component,\n {\n className: twMerge(\n theme.root.base,\n theme.root.ordered[ordered ? \"on\" : \"off\"],\n unstyled && theme.root.unstyled,\n nested && theme.root.nested,\n horizontal && theme.root.horizontal,\n className\n ),\n ...props,\n children\n }\n );\n};\nListComponent.displayName = \"List\";\nListItem.displayName = \"List.Item\";\nconst List = Object.assign(ListComponent, { Item: ListItem });\n\nexport { List };\n//# sourceMappingURL=List.mjs.map\n","import { jsx, jsxs } from 'react/jsx-runtime';\nimport { twMerge } from 'tailwind-merge';\nimport { mergeDeep } from '../../helpers/merge-deep.mjs';\nimport { getTheme } from '../../theme-store/index.mjs';\n\nconst ListGroupItem = ({\n active: isActive,\n children,\n className,\n href,\n icon: Icon,\n onClick,\n theme: customTheme = {},\n disabled,\n ...props\n}) => {\n const theme = mergeDeep(getTheme().listGroup.item, customTheme);\n const isLink = typeof href !== \"undefined\";\n const Component = isLink ? \"a\" : \"button\";\n return /* @__PURE__ */ jsx(\"li\", { className: twMerge(theme.base, className), children: /* @__PURE__ */ jsxs(\n Component,\n {\n href,\n onClick,\n type: isLink ? void 0 : \"button\",\n disabled,\n className: twMerge(\n theme.link.active[isActive ? \"on\" : \"off\"],\n theme.link.disabled[disabled ? \"on\" : \"off\"],\n theme.link.base,\n theme.link.href[isLink ? \"on\" : \"off\"]\n ),\n ...props,\n children: [\n Icon && /* @__PURE__ */ jsx(Icon, { \"aria-hidden\": true, \"data-testid\": \"flowbite-list-group-item-icon\", className: theme.link.icon }),\n children\n ]\n }\n ) });\n};\n\nexport { ListGroupItem };\n//# sourceMappingURL=ListGroupItem.mjs.map\n","import { jsx } from 'react/jsx-runtime';\nimport { twMerge } from 'tailwind-merge';\nimport { mergeDeep } from '../../helpers/merge-deep.mjs';\nimport { getTheme } from '../../theme-store/index.mjs';\nimport { ListGroupItem } from './ListGroupItem.mjs';\n\nconst ListGroupComponent = ({ children, className, theme: customTheme = {}, ...props }) => {\n const theme = mergeDeep(getTheme().listGroup, customTheme);\n return /* @__PURE__ */ jsx(\"ul\", { className: twMerge(theme.root.base, className), ...props, children });\n};\nListGroupComponent.displayName = \"ListGroup\";\nListGroupItem.displayName = \"ListGroup.Item\";\nconst ListGroup = Object.assign(ListGroupComponent, {\n Item: ListGroupItem\n});\n\nexport { ListGroup };\n//# sourceMappingURL=ListGroup.mjs.map\n","'use client';\nimport { createContext, useContext } from 'react';\n\nconst ModalContext = createContext(void 0);\nfunction useModalContext() {\n const context = useContext(ModalContext);\n if (!context) {\n throw new Error(\"useModalContext should be used within the ModalContext provider!\");\n }\n return context;\n}\n\nexport { ModalContext, useModalContext };\n//# sourceMappingURL=ModalContext.mjs.map\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { twMerge } from 'tailwind-merge';\nimport { mergeDeep } from '../../helpers/merge-deep.mjs';\nimport { useModalContext } from './ModalContext.mjs';\n\nconst ModalBody = ({ children, className, theme: customTheme = {}, ...props }) => {\n const { theme: rootTheme, popup } = useModalContext();\n const theme = mergeDeep(rootTheme.body, customTheme);\n return /* @__PURE__ */ jsx(\"div\", { className: twMerge(theme.base, popup && [theme.popup], className), ...props, children });\n};\n\nexport { ModalBody };\n//# sourceMappingURL=ModalBody.mjs.map\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { twMerge } from 'tailwind-merge';\nimport { mergeDeep } from '../../helpers/merge-deep.mjs';\nimport { useModalContext } from './ModalContext.mjs';\n\nconst ModalFooter = ({ children, className, theme: customTheme = {}, ...props }) => {\n const { theme: rootTheme, popup } = useModalContext();\n const theme = mergeDeep(rootTheme.footer, customTheme);\n return /* @__PURE__ */ jsx(\"div\", { className: twMerge(theme.base, !popup && theme.popup, className), ...props, children });\n};\n\nexport { ModalFooter };\n//# sourceMappingURL=ModalFooter.mjs.map\n","'use client';\nimport { jsxs, jsx } from 'react/jsx-runtime';\nimport { useId, useLayoutEffect } from 'react';\nimport { HiOutlineX } from 'react-icons/hi';\nimport { twMerge } from 'tailwind-merge';\nimport { mergeDeep } from '../../helpers/merge-deep.mjs';\nimport { useModalContext } from './ModalContext.mjs';\n\nconst ModalHeader = ({\n as: Component = \"h3\",\n children,\n className,\n theme: customTheme = {},\n id,\n ...props\n}) => {\n const innerHeaderId = useId();\n const headerId = id || innerHeaderId;\n const { theme: rootTheme, popup, onClose, setHeaderId } = useModalContext();\n const theme = mergeDeep(rootTheme.header, customTheme);\n useLayoutEffect(() => {\n setHeaderId(headerId);\n return () => setHeaderId(void 0);\n }, [headerId, setHeaderId]);\n return /* @__PURE__ */ jsxs(\"div\", { className: twMerge(theme.base, popup && theme.popup, className), ...props, children: [\n /* @__PURE__ */ jsx(Component, { id: headerId, className: theme.title, children }),\n /* @__PURE__ */ jsx(\"button\", { \"aria-label\": \"Close\", className: theme.close.base, type: \"button\", onClick: onClose, children: /* @__PURE__ */ jsx(HiOutlineX, { \"aria-hidden\": true, className: theme.close.icon }) })\n ] });\n};\n\nexport { ModalHeader };\n//# sourceMappingURL=ModalHeader.mjs.map\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { useFloating, useMergeRefs, useClick, useDismiss, useRole, useInteractions, FloatingPortal, FloatingOverlay, FloatingFocusManager } from '@floating-ui/react';\nimport { forwardRef, useState } from 'react';\nimport { twMerge } from 'tailwind-merge';\nimport { mergeDeep } from '../../helpers/merge-deep.mjs';\nimport { getTheme } from '../../theme-store/index.mjs';\nimport { ModalBody } from './ModalBody.mjs';\nimport { ModalContext } from './ModalContext.mjs';\nimport { ModalFooter } from './ModalFooter.mjs';\nimport { ModalHeader } from './ModalHeader.mjs';\n\nconst ModalComponent = forwardRef(\n ({\n children,\n className,\n dismissible = false,\n onClose,\n popup,\n position = \"center\",\n root,\n show,\n size = \"2xl\",\n theme: customTheme = {},\n initialFocus,\n ...props\n }, theirRef) => {\n const [headerId, setHeaderId] = useState(void 0);\n const theme = mergeDeep(getTheme().modal, customTheme);\n const { context } = useFloating({\n open: show,\n onOpenChange: () => onClose && onClose()\n });\n const ref = useMergeRefs([context.refs.setFloating, theirRef]);\n const click = useClick(context);\n const dismiss = useDismiss(context, { outsidePressEvent: \"mousedown\", enabled: dismissible });\n const role = useRole(context);\n const { getFloatingProps } = useInteractions([click, dismiss, role]);\n if (!show) {\n return null;\n }\n return /* @__PURE__ */ jsx(ModalContext.Provider, { value: { theme, popup, onClose, setHeaderId }, children: /* @__PURE__ */ jsx(FloatingPortal, { root, children: /* @__PURE__ */ jsx(\n FloatingOverlay,\n {\n lockScroll: true,\n \"data-testid\": \"modal-overlay\",\n className: twMerge(\n theme.root.base,\n theme.root.positions[position],\n show ? theme.root.show.on : theme.root.show.off,\n className\n ),\n ...props,\n children: /* @__PURE__ */ jsx(FloatingFocusManager, { context, initialFocus, children: /* @__PURE__ */ jsx(\n \"div\",\n {\n ref,\n ...getFloatingProps(props),\n \"aria-labelledby\": headerId,\n className: twMerge(theme.content.base, theme.root.sizes[size]),\n children: /* @__PURE__ */ jsx(\"div\", { className: theme.content.inner, children })\n }\n ) })\n }\n ) }) });\n }\n);\nModalComponent.displayName = \"Modal\";\nModalHeader.displayName = \"Modal.Header\";\nModalBody.displayName = \"Modal.Body\";\nModalFooter.displayName = \"Modal.Footer\";\nconst Modal = Object.assign(ModalComponent, {\n Header: ModalHeader,\n Body: ModalBody,\n Footer: ModalFooter\n});\n\nexport { Modal };\n//# sourceMappingURL=Modal.mjs.map\n","'use client';\nimport { createContext, useContext } from 'react';\n\nconst NavbarContext = createContext(void 0);\nfunction useNavbarContext() {\n const context = useContext(NavbarContext);\n if (!context) {\n throw new Error(\"useNavBarContext should be used within the NavbarContext provider!\");\n }\n return context;\n}\n\nexport { NavbarContext, useNavbarContext };\n//# sourceMappingURL=NavbarContext.mjs.map\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { twMerge } from 'tailwind-merge';\nimport { mergeDeep } from '../../helpers/merge-deep.mjs';\nimport { useNavbarContext } from './NavbarContext.mjs';\n\nconst NavbarBrand = ({\n as: Component = \"a\",\n children,\n className,\n theme: customTheme = {},\n ...props\n}) => {\n const { theme: rootTheme } = useNavbarContext();\n const theme = mergeDeep(rootTheme.brand, customTheme);\n return /* @__PURE__ */ jsx(Component, { className: twMerge(theme.base, className), ...props, children });\n};\n\nexport { NavbarBrand };\n//# sourceMappingURL=NavbarBrand.mjs.map\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { twMerge } from 'tailwind-merge';\nimport { mergeDeep } from '../../helpers/merge-deep.mjs';\nimport { useNavbarContext } from './NavbarContext.mjs';\n\nconst NavbarCollapse = ({ children, className, theme: customTheme = {}, ...props }) => {\n const { theme: rootTheme, isOpen } = useNavbarContext();\n const theme = mergeDeep(rootTheme.collapse, customTheme);\n return /* @__PURE__ */ jsx(\n \"div\",\n {\n \"data-testid\": \"flowbite-navbar-collapse\",\n className: twMerge(theme.base, theme.hidden[!isOpen ? \"on\" : \"off\"], className),\n ...props,\n children: /* @__PURE__ */ jsx(\"ul\", { className: theme.list, children })\n }\n );\n};\n\nexport { NavbarCollapse };\n//# sourceMappingURL=NavbarCollapse.mjs.map\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { twMerge } from 'tailwind-merge';\nimport { mergeDeep } from '../../helpers/merge-deep.mjs';\nimport { useNavbarContext } from './NavbarContext.mjs';\n\nconst NavbarLink = ({\n active,\n as: Component = \"a\",\n disabled,\n children,\n className,\n theme: customTheme = {},\n onClick,\n ...props\n}) => {\n const { theme: rootTheme, setIsOpen } = useNavbarContext();\n const theme = mergeDeep(rootTheme.link, customTheme);\n const handleClick = (event) => {\n setIsOpen(false);\n onClick?.(event);\n };\n return /* @__PURE__ */ jsx(\"li\", { children: /* @__PURE__ */ jsx(\n Component,\n {\n className: twMerge(\n theme.base,\n active && theme.active.on,\n !active && !disabled && theme.active.off,\n theme.disabled[disabled ? \"on\" : \"off\"],\n className\n ),\n onClick: handleClick,\n ...props,\n children\n }\n ) });\n};\n\nexport { NavbarLink };\n//# sourceMappingURL=NavbarLink.mjs.map\n","'use client';\nimport { jsxs, jsx } from 'react/jsx-runtime';\nimport { FaBars } from 'react-icons/fa';\nimport { twMerge } from 'tailwind-merge';\nimport { mergeDeep } from '../../helpers/merge-deep.mjs';\nimport { useNavbarContext } from './NavbarContext.mjs';\n\nconst NavbarToggle = ({\n barIcon: BarIcon = FaBars,\n className,\n theme: customTheme = {},\n ...props\n}) => {\n const { theme: rootTheme, isOpen, setIsOpen } = useNavbarContext();\n const theme = mergeDeep(rootTheme.toggle, customTheme);\n const handleClick = () => {\n setIsOpen(!isOpen);\n };\n return /* @__PURE__ */ jsxs(\n \"button\",\n {\n \"data-testid\": \"flowbite-navbar-toggle\",\n onClick: handleClick,\n className: twMerge(theme.base, className),\n ...props,\n children: [\n /* @__PURE__ */ jsx(\"span\", { className: \"sr-only\", children: \"Open main menu\" }),\n /* @__PURE__ */ jsx(BarIcon, { \"aria-hidden\": true, className: theme.icon })\n ]\n }\n );\n};\n\nexport { NavbarToggle };\n//# sourceMappingURL=NavbarToggle.mjs.map\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { useState } from 'react';\nimport { twMerge } from 'tailwind-merge';\nimport { mergeDeep } from '../../helpers/merge-deep.mjs';\nimport { getTheme } from '../../theme-store/index.mjs';\nimport { NavbarBrand } from './NavbarBrand.mjs';\nimport { NavbarCollapse } from './NavbarCollapse.mjs';\nimport { NavbarContext } from './NavbarContext.mjs';\nimport { NavbarLink } from './NavbarLink.mjs';\nimport { NavbarToggle } from './NavbarToggle.mjs';\n\nconst NavbarComponent = ({\n border,\n children,\n className,\n fluid = false,\n menuOpen,\n rounded,\n theme: customTheme = {},\n ...props\n}) => {\n const [isOpen, setIsOpen] = useState(menuOpen);\n const theme = mergeDeep(getTheme().navbar, customTheme);\n return /* @__PURE__ */ jsx(NavbarContext.Provider, { value: { theme, isOpen, setIsOpen }, children: /* @__PURE__ */ jsx(\n \"nav\",\n {\n className: twMerge(\n theme.root.base,\n theme.root.bordered[border ? \"on\" : \"off\"],\n theme.root.rounded[rounded ? \"on\" : \"off\"],\n className\n ),\n ...props,\n children: /* @__PURE__ */ jsx(\"div\", { className: twMerge(theme.root.inner.base, theme.root.inner.fluid[fluid ? \"on\" : \"off\"]), children })\n }\n ) });\n};\nNavbarComponent.displayName = \"Navbar\";\nNavbarBrand.displayName = \"Navbar.Brand\";\nNavbarCollapse.displayName = \"Navbar.Collapse\";\nNavbarLink.displayName = \"Navbar.Link\";\nNavbarToggle.displayName = \"Navbar.Toggle\";\nconst Navbar = Object.assign(NavbarComponent, {\n Brand: NavbarBrand,\n Collapse: NavbarCollapse,\n Link: NavbarLink,\n Toggle: NavbarToggle\n});\n\nexport { Navbar };\n//# sourceMappingURL=Navbar.mjs.map\n","import { jsx } from 'react/jsx-runtime';\nimport { twMerge } from 'tailwind-merge';\nimport { mergeDeep } from '../../helpers/merge-deep.mjs';\nimport { getTheme } from '../../theme-store/index.mjs';\n\nconst PaginationButton = ({\n active,\n children,\n className,\n onClick,\n theme: customTheme = {},\n ...props\n}) => {\n const theme = mergeDeep(getTheme().pagination, customTheme);\n return /* @__PURE__ */ jsx(\n \"button\",\n {\n type: \"button\",\n className: twMerge(active && theme.pages.selector.active, className),\n onClick,\n ...props,\n children\n }\n );\n};\nPaginationButton.displayName = \"Pagination.Button\";\nconst PaginationNavigation = ({\n children,\n className,\n onClick,\n theme: customTheme = {},\n disabled = false,\n ...props\n}) => {\n const theme = mergeDeep(getTheme().pagination, customTheme);\n return /* @__PURE__ */ jsx(\n \"button\",\n {\n type: \"button\",\n className: twMerge(disabled && theme.pages.selector.disabled, className),\n disabled,\n onClick,\n ...props,\n children\n }\n );\n};\nPaginationNavigation.displayName = \"Pagination.Navigation\";\n\nexport { PaginationButton, PaginationNavigation };\n//# sourceMappingURL=PaginationButton.mjs.map\n","import { jsxs, jsx } from 'react/jsx-runtime';\nimport { HiChevronLeft, HiChevronRight } from 'react-icons/hi';\nimport { twMerge } from 'tailwind-merge';\nimport { mergeDeep } from '../../helpers/merge-deep.mjs';\nimport { getTheme } from '../../theme-store/index.mjs';\nimport { range } from './helpers.mjs';\nimport { PaginationButton, PaginationNavigation } from './PaginationButton.mjs';\n\nconst PaginationComponent = ({\n className,\n currentPage,\n layout = \"pagination\",\n nextLabel = \"Next\",\n onPageChange,\n previousLabel = \"Previous\",\n renderPaginationButton = (props2) => /* @__PURE__ */ jsx(PaginationButton, { ...props2 }),\n showIcons: showIcon = false,\n theme: customTheme = {},\n totalPages,\n ...props\n}) => {\n const theme = mergeDeep(getTheme().pagination, customTheme);\n const lastPage = Math.min(Math.max(layout === \"pagination\" ? currentPage + 2 : currentPage + 4, 5), totalPages);\n const firstPage = Math.max(1, lastPage - 4);\n const goToNextPage = () => {\n onPageChange(Math.min(currentPage + 1, totalPages));\n };\n const goToPreviousPage = () => {\n onPageChange(Math.max(currentPage - 1, 1));\n };\n return /* @__PURE__ */ jsxs(\"nav\", { className: twMerge(theme.base, className), ...props, children: [\n layout === \"table\" && /* @__PURE__ */ jsxs(\"div\", { className: theme.layout.table.base, children: [\n \"Showing \",\n /* @__PURE__ */ jsx(\"span\", { className: theme.layout.table.span, children: firstPage }),\n \" to\\xA0\",\n /* @__PURE__ */ jsx(\"span\", { className: theme.layout.table.span, children: lastPage }),\n \" of\\xA0\",\n /* @__PURE__ */ jsx(\"span\", { className: theme.layout.table.span, children: totalPages }),\n \" Entries\"\n ] }),\n /* @__PURE__ */ jsxs(\"ul\", { className: theme.pages.base, children: [\n /* @__PURE__ */ jsx(\"li\", { children: /* @__PURE__ */ jsxs(\n PaginationNavigation,\n {\n className: twMerge(theme.pages.previous.base, showIcon && theme.pages.showIcon),\n onClick: goToPreviousPage,\n disabled: currentPage === 1,\n children: [\n showIcon && /* @__PURE__ */ jsx(HiChevronLeft, { \"aria-hidden\": true, className: theme.pages.previous.icon }),\n previousLabel\n ]\n }\n ) }),\n layout === \"pagination\" && range(firstPage, lastPage).map((page) => /* @__PURE__ */ jsx(\"li\", { \"aria-current\": page === currentPage ? \"page\" : void 0, children: renderPaginationButton({\n className: twMerge(theme.pages.selector.base, currentPage === page && theme.pages.selector.active),\n active: page === currentPage,\n onClick: () => onPageChange(page),\n children: page\n }) }, page)),\n /* @__PURE__ */ jsx(\"li\", { children: /* @__PURE__ */ jsxs(\n PaginationNavigation,\n {\n className: twMerge(theme.pages.next.base, showIcon && theme.pages.showIcon),\n onClick: goToNextPage,\n disabled: currentPage === totalPages,\n children: [\n nextLabel,\n showIcon && /* @__PURE__ */ jsx(HiChevronRight, { \"aria-hidden\": true, className: theme.pages.next.icon })\n ]\n }\n ) })\n ] })\n ] });\n};\nPaginationComponent.displayName = \"Pagination\";\nconst Pagination = Object.assign(PaginationComponent, {\n Button: PaginationButton\n});\n\nexport { Pagination };\n//# sourceMappingURL=Pagination.mjs.map\n","const range = (start, end) => {\n if (start >= end) {\n return [];\n }\n return [...Array(end - start + 1).keys()].map((key) => key + start);\n};\n\nexport { range };\n//# sourceMappingURL=helpers.mjs.map\n","import { jsx, Fragment, jsxs } from 'react/jsx-runtime';\nimport { useId } from 'react';\nimport { twMerge } from 'tailwind-merge';\nimport { mergeDeep } from '../../helpers/merge-deep.mjs';\nimport { getTheme } from '../../theme-store/index.mjs';\n\nconst Progress = ({\n className,\n color = \"cyan\",\n labelProgress = false,\n labelText = false,\n progress,\n progressLabelPosition = \"inside\",\n size = \"md\",\n textLabel = \"progressbar\",\n textLabelPosition = \"inside\",\n theme: customTheme = {},\n ...props\n}) => {\n const id = useId();\n const theme = mergeDeep(getTheme().progress, customTheme);\n return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs(\"div\", { id, \"aria-label\": textLabel, \"aria-valuenow\": progress, role: \"progressbar\", ...props, children: [\n (textLabel && labelText && textLabelPosition === \"outside\" || progress > 0 && labelProgress && progressLabelPosition === \"outside\") && /* @__PURE__ */ jsxs(\"div\", { className: theme.label, \"data-testid\": \"flowbite-progress-outer-label-container\", children: [\n textLabel && labelText && textLabelPosition === \"outside\" && /* @__PURE__ */ jsx(\"span\", { \"data-testid\": \"flowbite-progress-outer-text-label\", children: textLabel }),\n labelProgress && progressLabelPosition === \"outside\" && /* @__PURE__ */ jsxs(\"span\", { \"data-testid\": \"flowbite-progress-outer-progress-label\", children: [\n progress,\n \"%\"\n ] })\n ] }),\n /* @__PURE__ */ jsx(\"div\", { className: twMerge(theme.base, theme.size[size], className), children: /* @__PURE__ */ jsxs(\"div\", { style: { width: `${progress}%` }, className: twMerge(theme.bar, theme.color[color], theme.size[size]), children: [\n textLabel && labelText && textLabelPosition === \"inside\" && /* @__PURE__ */ jsx(\"span\", { \"data-testid\": \"flowbite-progress-inner-text-label\", children: textLabel }),\n progress > 0 && labelProgress && progressLabelPosition === \"inside\" && /* @__PURE__ */ jsxs(\"span\", { \"data-testid\": \"flowbite-progress-inner-progress-label\", children: [\n progress,\n \"%\"\n ] })\n ] }) })\n ] }) });\n};\nProgress.displayName = \"Progress\";\n\nexport { Progress };\n//# sourceMappingURL=Progress.mjs.map\n","import { jsx } from 'react/jsx-runtime';\nimport { forwardRef } from 'react';\nimport { twMerge } from 'tailwind-merge';\nimport { mergeDeep } from '../../helpers/merge-deep.mjs';\nimport { getTheme } from '../../theme-store/index.mjs';\n\nconst Radio = forwardRef(\n ({ className, theme: customTheme = {}, ...props }, ref) => {\n const theme = mergeDeep(getTheme().radio, customTheme);\n return /* @__PURE__ */ jsx(\"input\", { ref, type: \"radio\", className: twMerge(theme.root.base, className), ...props });\n }\n);\nRadio.displayName = \"Radio\";\n\nexport { Radio };\n//# sourceMappingURL=Radio.mjs.map\n","import { jsx, Fragment } from 'react/jsx-runtime';\nimport { forwardRef } from 'react';\nimport { twMerge } from 'tailwind-merge';\nimport { mergeDeep } from '../../helpers/merge-deep.mjs';\nimport { getTheme } from '../../theme-store/index.mjs';\n\nconst RangeSlider = forwardRef(\n ({ className, sizing = \"md\", theme: customTheme = {}, ...props }, ref) => {\n const theme = mergeDeep(getTheme().rangeSlider, customTheme);\n return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(\"div\", { \"data-testid\": \"flowbite-range-slider\", className: twMerge(theme.root.base, className), children: /* @__PURE__ */ jsx(\"div\", { className: theme.field.base, children: /* @__PURE__ */ jsx(\n \"input\",\n {\n ref,\n type: \"range\",\n className: twMerge(theme.field.input.base, theme.field.input.sizes[sizing]),\n ...props\n }\n ) }) }) });\n }\n);\nRangeSlider.displayName = \"RangeSlider\";\n\nexport { RangeSlider };\n//# sourceMappingURL=RangeSlider.mjs.map\n","import { jsxs, jsx } from 'react/jsx-runtime';\nimport { twMerge } from 'tailwind-merge';\nimport { mergeDeep } from '../../helpers/merge-deep.mjs';\nimport { getTheme } from '../../theme-store/index.mjs';\n\nconst RatingAdvanced = ({\n children,\n className,\n percentFilled = 0,\n theme: customTheme = {},\n ...props\n}) => {\n const theme = mergeDeep(getTheme().ratingAdvanced, customTheme);\n return /* @__PURE__ */ jsxs(\"div\", { className: twMerge(theme.base, className), ...props, children: [\n /* @__PURE__ */ jsx(\"span\", { className: theme.label, children }),\n /* @__PURE__ */ jsx(\"div\", { className: theme.progress.base, children: /* @__PURE__ */ jsx(\n \"div\",\n {\n className: theme.progress.fill,\n \"data-testid\": \"flowbite-rating-fill\",\n style: { width: `${percentFilled}%` }\n }\n ) }),\n /* @__PURE__ */ jsx(\"span\", { className: theme.progress.label, children: `${percentFilled}%` })\n ] });\n};\n\nexport { RatingAdvanced };\n//# sourceMappingURL=RatingAdvanced.mjs.map\n","'use client';\nimport { createContext, useContext } from 'react';\n\nconst RatingContext = createContext(void 0);\nfunction useRatingContext() {\n const context = useContext(RatingContext);\n if (!context) {\n throw new Error(\"useRatingContext should be used within the RatingContext provider!\");\n }\n return context;\n}\n\nexport { RatingContext, useRatingContext };\n//# sourceMappingURL=RatingContext.mjs.map\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { HiStar } from 'react-icons/hi';\nimport { twMerge } from 'tailwind-merge';\nimport { mergeDeep } from '../../helpers/merge-deep.mjs';\nimport { useRatingContext } from './RatingContext.mjs';\n\nconst RatingStar = ({\n className,\n filled = true,\n starIcon: Icon = HiStar,\n theme: customTheme = {},\n ...props\n}) => {\n const { theme: rootTheme, size = \"sm\" } = useRatingContext();\n const theme = mergeDeep(rootTheme.star, customTheme);\n return /* @__PURE__ */ jsx(\n Icon,\n {\n \"data-testid\": \"flowbite-rating-star\",\n className: twMerge(theme.sizes[size], theme[filled ? \"filled\" : \"empty\"], className),\n ...props\n }\n );\n};\n\nexport { RatingStar };\n//# sourceMappingURL=RatingStar.mjs.map\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { twMerge } from 'tailwind-merge';\nimport { mergeDeep } from '../../helpers/merge-deep.mjs';\nimport { getTheme } from '../../theme-store/index.mjs';\nimport { RatingAdvanced } from './RatingAdvanced.mjs';\nimport { RatingContext } from './RatingContext.mjs';\nimport { RatingStar } from './RatingStar.mjs';\n\nconst RatingComponent = ({ children, className, size = \"sm\", theme: customTheme = {}, ...props }) => {\n const theme = mergeDeep(getTheme().rating, customTheme);\n return /* @__PURE__ */ jsx(RatingContext.Provider, { value: { theme, size }, children: /* @__PURE__ */ jsx(\"div\", { className: twMerge(theme.root.base, className), ...props, children }) });\n};\nRatingComponent.displayName = \"Rating\";\nRatingStar.displayName = \"Rating.Star\";\nRatingAdvanced.displayName = \"Rating.Advanced\";\nconst Rating = Object.assign(RatingComponent, {\n Star: RatingStar,\n Advanced: RatingAdvanced\n});\n\nexport { Rating };\n//# sourceMappingURL=Rating.mjs.map\n","import { jsxs, jsx } from 'react/jsx-runtime';\nimport { forwardRef } from 'react';\nimport { twMerge } from 'tailwind-merge';\nimport { mergeDeep } from '../../helpers/merge-deep.mjs';\nimport { getTheme } from '../../theme-store/index.mjs';\nimport { HelperText } from '../HelperText/HelperText.mjs';\n\nconst Select = forwardRef(\n ({\n addon,\n children,\n className,\n color = \"gray\",\n helperText,\n icon: Icon,\n shadow,\n sizing = \"md\",\n theme: customTheme = {},\n ...props\n }, ref) => {\n const theme = mergeDeep(getTheme().select, customTheme);\n return /* @__PURE__ */ jsxs(\"div\", { className: twMerge(theme.base, className), children: [\n addon && /* @__PURE__ */ jsx(\"span\", { className: theme.addon, children: addon }),\n /* @__PURE__ */ jsxs(\"div\", { className: theme.field.base, children: [\n Icon && /* @__PURE__ */ jsx(\"div\", { className: theme.field.icon.base, children: /* @__PURE__ */ jsx(Icon, { className: theme.field.icon.svg }) }),\n /* @__PURE__ */ jsx(\n \"select\",\n {\n className: twMerge(\n theme.field.select.base,\n theme.field.select.colors[color],\n theme.field.select.sizes[sizing],\n theme.field.select.withIcon[Icon ? \"on\" : \"off\"],\n theme.field.select.withAddon[addon ? \"on\" : \"off\"],\n theme.field.select.withShadow[shadow ? \"on\" : \"off\"]\n ),\n ...props,\n ref,\n children\n }\n ),\n helperText && /* @__PURE__ */ jsx(HelperText, { color, children: helperText })\n ] })\n ] });\n }\n);\nSelect.displayName = \"Select\";\n\nexport { Select };\n//# sourceMappingURL=Select.mjs.map\n","'use client';\nimport { jsxs, Fragment, jsx } from 'react/jsx-runtime';\nimport { useFocus, autoUpdate } from '@floating-ui/react';\nimport { useRef, useState, useEffect } from 'react';\nimport { twMerge } from 'tailwind-merge';\nimport { useBaseFLoating, useFloatingInteractions } from '../../hooks/use-floating.mjs';\nimport { getArrowPlacement } from './helpers.mjs';\n\nconst Floating = ({\n animation = \"duration-300\",\n arrow = true,\n children,\n className,\n content,\n placement = \"top\",\n style = \"dark\",\n theme,\n trigger = \"hover\",\n minWidth,\n ...props\n}) => {\n const arrowRef = useRef(null);\n const [open, setOpen] = useState(false);\n const floatingProperties = useBaseFLoating({\n open,\n placement,\n arrowRef,\n setOpen\n });\n const {\n context,\n middlewareData: { arrow: { x: arrowX, y: arrowY } = {} },\n refs,\n strategy,\n update,\n x,\n y\n } = floatingProperties;\n const focus = useFocus(context);\n const { getFloatingProps, getReferenceProps } = useFloatingInteractions({\n context,\n role: \"tooltip\",\n trigger,\n interactions: [focus]\n });\n useEffect(() => {\n if (refs.reference.current && refs.floating.current && open) {\n return autoUpdate(refs.reference.current, refs.floating.current, update);\n }\n }, [open, refs.floating, refs.reference, update]);\n return /* @__PURE__ */ jsxs(Fragment, { children: [\n /* @__PURE__ */ jsx(\n \"div\",\n {\n ref: refs.setReference,\n className: theme.target,\n \"data-testid\": \"flowbite-tooltip-target\",\n ...getReferenceProps(),\n children\n }\n ),\n /* @__PURE__ */ jsxs(\n \"div\",\n {\n ref: refs.setFloating,\n \"data-testid\": \"flowbite-tooltip\",\n ...getFloatingProps({\n className: twMerge(\n theme.base,\n animation && `${theme.animation} ${animation}`,\n !open && theme.hidden,\n theme.style[style],\n className\n ),\n style: {\n position: strategy,\n top: y ?? \" \",\n left: x ?? \" \",\n minWidth\n },\n ...props\n }),\n children: [\n /* @__PURE__ */ jsx(\"div\", { className: theme.content, children: content }),\n arrow && /* @__PURE__ */ jsx(\n \"div\",\n {\n className: twMerge(\n theme.arrow.base,\n style === \"dark\" && theme.arrow.style.dark,\n style === \"light\" && theme.arrow.style.light,\n style === \"auto\" && theme.arrow.style.auto\n ),\n \"data-testid\": \"flowbite-tooltip-arrow\",\n ref: arrowRef,\n style: {\n top: arrowY ?? \" \",\n left: arrowX ?? \" \",\n right: \" \",\n bottom: \" \",\n [getArrowPlacement({ placement: floatingProperties.placement })]: theme.arrow.placement\n },\n children: \"\\xA0\"\n }\n )\n ]\n }\n )\n ] });\n};\n\nexport { Floating };\n//# sourceMappingURL=Floating.mjs.map\n","import { jsx } from 'react/jsx-runtime';\nimport { mergeDeep } from '../../helpers/merge-deep.mjs';\nimport { getTheme } from '../../theme-store/index.mjs';\nimport { Floating } from '../Floating/Floating.mjs';\n\nconst Tooltip = ({\n animation = \"duration-300\",\n arrow = true,\n children,\n className,\n content,\n placement = \"top\",\n style = \"dark\",\n theme: customTheme = {},\n trigger = \"hover\",\n ...props\n}) => {\n const theme = mergeDeep(getTheme().tooltip, customTheme);\n return /* @__PURE__ */ jsx(\n Floating,\n {\n animation,\n arrow,\n content,\n placement,\n style,\n theme,\n trigger,\n className,\n ...props,\n children\n }\n );\n};\nTooltip.displayName = \"Tooltip\";\n\nexport { Tooltip };\n//# sourceMappingURL=Tooltip.mjs.map\n","'use client';\nimport { createContext, useContext } from 'react';\n\nconst SidebarContext = createContext(void 0);\nfunction useSidebarContext() {\n const context = useContext(SidebarContext);\n if (!context) {\n throw new Error(\"useSidebarContext should be used within the SidebarContext provider!\");\n }\n return context;\n}\n\nexport { SidebarContext, useSidebarContext };\n//# sourceMappingURL=SidebarContext.mjs.map\n","'use client';\nimport { createContext, useContext } from 'react';\n\nconst SidebarItemContext = createContext(void 0);\nfunction useSidebarItemContext() {\n const context = useContext(SidebarItemContext);\n if (!context) {\n throw new Error(\"useSidebarItemContext should be used within the SidebarItemContext provider!\");\n }\n return context;\n}\n\nexport { SidebarItemContext, useSidebarItemContext };\n//# sourceMappingURL=SidebarItemContext.mjs.map\n","'use client';\nimport { jsxs, jsx, Fragment } from 'react/jsx-runtime';\nimport { useId, useState, useEffect } from 'react';\nimport { HiChevronDown } from 'react-icons/hi';\nimport { twMerge } from 'tailwind-merge';\nimport { mergeDeep } from '../../helpers/merge-deep.mjs';\nimport { Tooltip } from '../Tooltip/Tooltip.mjs';\nimport { useSidebarContext } from './SidebarContext.mjs';\nimport { SidebarItemContext } from './SidebarItemContext.mjs';\n\nconst SidebarCollapse = ({\n children,\n className,\n icon: Icon,\n label,\n chevronIcon: ChevronIcon = HiChevronDown,\n renderChevronIcon,\n open = false,\n theme: customTheme = {},\n ...props\n}) => {\n const id = useId();\n const [isOpen, setOpen] = useState(open);\n const { theme: rootTheme, isCollapsed } = useSidebarContext();\n const theme = mergeDeep(rootTheme.collapse, customTheme);\n useEffect(() => setOpen(open), [open]);\n const Wrapper = ({ children: children2 }) => /* @__PURE__ */ jsx(\"li\", { children: isCollapsed && !isOpen ? /* @__PURE__ */ jsx(Tooltip, { content: label, placement: \"right\", children: children2 }) : children2 });\n return /* @__PURE__ */ jsxs(Wrapper, { children: [\n /* @__PURE__ */ jsxs(\n \"button\",\n {\n id: `flowbite-sidebar-collapse-${id}`,\n onClick: () => setOpen(!isOpen),\n title: label,\n type: \"button\",\n className: twMerge(theme.button, className),\n ...props,\n children: [\n Icon && /* @__PURE__ */ jsx(\n Icon,\n {\n \"aria-hidden\": true,\n \"data-testid\": \"flowbite-sidebar-collapse-icon\",\n className: twMerge(theme.icon.base, theme.icon.open[isOpen ? \"on\" : \"off\"])\n }\n ),\n isCollapsed ? /* @__PURE__ */ jsx(\"span\", { className: \"sr-only\", children: label }) : /* @__PURE__ */ jsxs(Fragment, { children: [\n /* @__PURE__ */ jsx(\"span\", { \"data-testid\": \"flowbite-sidebar-collapse-label\", className: theme.label.base, children: label }),\n renderChevronIcon ? renderChevronIcon(theme, isOpen) : /* @__PURE__ */ jsx(\n ChevronIcon,\n {\n \"aria-hidden\": true,\n className: twMerge(theme.label.icon.base, theme.label.icon.open[isOpen ? \"on\" : \"off\"])\n }\n )\n ] })\n ]\n }\n ),\n /* @__PURE__ */ jsx(\"ul\", { \"aria-labelledby\": `flowbite-sidebar-collapse-${id}`, hidden: !isOpen, className: theme.list, children: /* @__PURE__ */ jsx(SidebarItemContext.Provider, { value: { isInsideCollapse: true }, children }) })\n ] });\n};\nSidebarCollapse.displayName = \"Sidebar.Collapse\";\n\nexport { SidebarCollapse };\n//# sourceMappingURL=SidebarCollapse.mjs.map\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { twMerge } from 'tailwind-merge';\nimport { mergeDeep } from '../../helpers/merge-deep.mjs';\nimport { useSidebarContext } from './SidebarContext.mjs';\n\nconst SidebarCTA = ({\n children,\n color = \"info\",\n className,\n theme: customTheme = {},\n ...props\n}) => {\n const { theme: rootTheme, isCollapsed } = useSidebarContext();\n const theme = mergeDeep(rootTheme.cta, customTheme);\n return /* @__PURE__ */ jsx(\n \"div\",\n {\n \"data-testid\": \"sidebar-cta\",\n hidden: isCollapsed,\n className: twMerge(theme.base, theme.color[color], className),\n ...props,\n children\n }\n );\n};\nSidebarCTA.displayName = \"Sidebar.CTA\";\n\nexport { SidebarCTA };\n//# sourceMappingURL=SidebarCTA.mjs.map\n","'use client';\nimport { jsx, jsxs } from 'react/jsx-runtime';\nimport { forwardRef, useId } from 'react';\nimport { twMerge } from 'tailwind-merge';\nimport { mergeDeep } from '../../helpers/merge-deep.mjs';\nimport { Badge } from '../Badge/Badge.mjs';\nimport { Tooltip } from '../Tooltip/Tooltip.mjs';\nimport { useSidebarContext } from './SidebarContext.mjs';\nimport { useSidebarItemContext } from './SidebarItemContext.mjs';\n\nconst ListItem = ({ id, theme, isCollapsed, tooltipChildren, children: wrapperChildren, ...props }) => /* @__PURE__ */ jsx(\"li\", { ...props, children: isCollapsed ? /* @__PURE__ */ jsx(\n Tooltip,\n {\n content: /* @__PURE__ */ jsx(Children, { id, theme, children: tooltipChildren }),\n placement: \"right\",\n children: wrapperChildren\n }\n) : wrapperChildren });\nconst Children = ({ id, theme, children }) => {\n return /* @__PURE__ */ jsx(\n \"span\",\n {\n \"data-testid\": \"flowbite-sidebar-item-content\",\n id: `flowbite-sidebar-item-${id}`,\n className: twMerge(theme.content.base),\n children\n }\n );\n};\nconst SidebarItem = forwardRef(\n ({\n active: isActive,\n as: Component = \"a\",\n children,\n className,\n icon: Icon,\n label,\n labelColor = \"info\",\n theme: customTheme = {},\n ...props\n }, ref) => {\n const id = useId();\n const { theme: rootTheme, isCollapsed } = useSidebarContext();\n const { isInsideCollapse } = useSidebarItemContext();\n const theme = mergeDeep(rootTheme.item, customTheme);\n return /* @__PURE__ */ jsx(ListItem, { theme, className: theme.listItem, id, isCollapsed, tooltipChildren: children, children: /* @__PURE__ */ jsxs(\n Component,\n {\n \"aria-labelledby\": `flowbite-sidebar-item-${id}`,\n ref,\n className: twMerge(\n theme.base,\n isActive && theme.active,\n !isCollapsed && isInsideCollapse && theme.collapsed?.insideCollapse,\n className\n ),\n ...props,\n children: [\n Icon && /* @__PURE__ */ jsx(\n Icon,\n {\n \"aria-hidden\": true,\n \"data-testid\": \"flowbite-sidebar-item-icon\",\n className: twMerge(theme.icon?.base, isActive && theme.icon?.active)\n }\n ),\n isCollapsed && !Icon && /* @__PURE__ */ jsx(\"span\", { className: theme.collapsed?.noIcon, children: children.charAt(0).toLocaleUpperCase() ?? \"?\" }),\n !isCollapsed && /* @__PURE__ */ jsx(Children, { id, theme, children }),\n !isCollapsed && label && /* @__PURE__ */ jsx(Badge, { color: labelColor, \"data-testid\": \"flowbite-sidebar-label\", hidden: isCollapsed, className: theme.label, children: label })\n ]\n }\n ) });\n }\n);\nSidebarItem.displayName = \"Sidebar.Item\";\n\nexport { SidebarItem };\n//# sourceMappingURL=SidebarItem.mjs.map\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { twMerge } from 'tailwind-merge';\nimport { mergeDeep } from '../../helpers/merge-deep.mjs';\nimport { useSidebarContext } from './SidebarContext.mjs';\nimport { SidebarItemContext } from './SidebarItemContext.mjs';\n\nconst SidebarItemGroup = ({\n children,\n className,\n theme: customTheme = {},\n ...props\n}) => {\n const { theme: rootTheme } = useSidebarContext();\n const theme = mergeDeep(rootTheme.itemGroup, customTheme);\n return /* @__PURE__ */ jsx(\"ul\", { \"data-testid\": \"flowbite-sidebar-item-group\", className: twMerge(theme.base, className), ...props, children: /* @__PURE__ */ jsx(SidebarItemContext.Provider, { value: { isInsideCollapse: false }, children }) });\n};\nSidebarItemGroup.displayName = \"Sidebar.ItemGroup\";\n\nexport { SidebarItemGroup };\n//# sourceMappingURL=SidebarItemGroup.mjs.map\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { twMerge } from 'tailwind-merge';\nimport { mergeDeep } from '../../helpers/merge-deep.mjs';\nimport { useSidebarContext } from './SidebarContext.mjs';\n\nconst SidebarItems = ({ children, className, theme: customTheme = {}, ...props }) => {\n const { theme: rootTheme } = useSidebarContext();\n const theme = mergeDeep(rootTheme.items, customTheme);\n return /* @__PURE__ */ jsx(\"div\", { className: twMerge(theme.base, className), \"data-testid\": \"flowbite-sidebar-items\", ...props, children });\n};\nSidebarItems.displayName = \"Sidebar.Items\";\n\nexport { SidebarItems };\n//# sourceMappingURL=SidebarItems.mjs.map\n","'use client';\nimport { jsxs, jsx } from 'react/jsx-runtime';\nimport { useId } from 'react';\nimport { twMerge } from 'tailwind-merge';\nimport { mergeDeep } from '../../helpers/merge-deep.mjs';\nimport { useSidebarContext } from './SidebarContext.mjs';\n\nconst SidebarLogo = ({\n children,\n className,\n href,\n img,\n imgAlt = \"\",\n theme: customTheme = {},\n ...props\n}) => {\n const id = useId();\n const { theme: rootTheme, isCollapsed } = useSidebarContext();\n const theme = mergeDeep(rootTheme.logo, customTheme);\n return /* @__PURE__ */ jsxs(\n \"a\",\n {\n \"aria-labelledby\": `flowbite-sidebar-logo-${id}`,\n href,\n className: twMerge(theme.base, className),\n ...props,\n children: [\n /* @__PURE__ */ jsx(\"img\", { alt: imgAlt, src: img, className: theme.img }),\n /* @__PURE__ */ jsx(\"span\", { className: theme.collapsed[isCollapsed ? \"on\" : \"off\"], id: `flowbite-sidebar-logo-${id}`, children })\n ]\n }\n );\n};\nSidebarLogo.displayName = \"Sidebar.Logo\";\n\nexport { SidebarLogo };\n//# sourceMappingURL=SidebarLogo.mjs.map\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { twMerge } from 'tailwind-merge';\nimport { mergeDeep } from '../../helpers/merge-deep.mjs';\nimport { getTheme } from '../../theme-store/index.mjs';\nimport { SidebarCollapse } from './SidebarCollapse.mjs';\nimport { SidebarContext } from './SidebarContext.mjs';\nimport { SidebarCTA } from './SidebarCTA.mjs';\nimport { SidebarItem } from './SidebarItem.mjs';\nimport { SidebarItemGroup } from './SidebarItemGroup.mjs';\nimport { SidebarItems } from './SidebarItems.mjs';\nimport { SidebarLogo } from './SidebarLogo.mjs';\n\nconst SidebarComponent = ({\n children,\n as: Component = \"nav\",\n collapseBehavior = \"collapse\",\n collapsed: isCollapsed = false,\n theme: customTheme = {},\n className,\n ...props\n}) => {\n const theme = mergeDeep(getTheme().sidebar, customTheme);\n return /* @__PURE__ */ jsx(SidebarContext.Provider, { value: { theme, isCollapsed }, children: /* @__PURE__ */ jsx(\n Component,\n {\n \"aria-label\": \"Sidebar\",\n hidden: isCollapsed && collapseBehavior === \"hide\",\n className: twMerge(theme.root.base, theme.root.collapsed[isCollapsed ? \"on\" : \"off\"], className),\n ...props,\n children: /* @__PURE__ */ jsx(\"div\", { className: theme.root.inner, children })\n }\n ) });\n};\nSidebarComponent.displayName = \"Sidebar\";\nconst Sidebar = Object.assign(SidebarComponent, {\n Collapse: SidebarCollapse,\n CTA: SidebarCTA,\n Item: SidebarItem,\n Items: SidebarItems,\n ItemGroup: SidebarItemGroup,\n Logo: SidebarLogo\n});\n\nexport { Sidebar };\n//# sourceMappingURL=Sidebar.mjs.map\n","'use client';\nimport { createContext, useContext } from 'react';\n\nconst TableBodyContext = createContext(void 0);\nfunction useTableBodyContext() {\n const context = useContext(TableBodyContext);\n if (!context) {\n throw new Error(\"useTableBodyContext should be used within the TableBodyContext provider!\");\n }\n return context;\n}\n\nexport { TableBodyContext, useTableBodyContext };\n//# sourceMappingURL=TableBodyContext.mjs.map\n","'use client';\nimport { createContext, useContext } from 'react';\n\nconst TableContext = createContext(void 0);\nfunction useTableContext() {\n const context = useContext(TableContext);\n if (!context) {\n throw new Error(\"useTableContext should be used within the TableContext provider!\");\n }\n return context;\n}\n\nexport { TableContext, useTableContext };\n//# sourceMappingURL=TableContext.mjs.map\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { forwardRef } from 'react';\nimport { twMerge } from 'tailwind-merge';\nimport { mergeDeep } from '../../helpers/merge-deep.mjs';\nimport { TableBodyContext } from './TableBodyContext.mjs';\nimport { useTableContext } from './TableContext.mjs';\n\nconst TableBody = forwardRef(\n ({ children, className, theme: customTheme = {}, ...props }, ref) => {\n const { theme: rootTheme } = useTableContext();\n const theme = mergeDeep(rootTheme.body, customTheme);\n return /* @__PURE__ */ jsx(TableBodyContext.Provider, { value: { theme }, children: /* @__PURE__ */ jsx(\"tbody\", { className: twMerge(theme.base, className), ref, ...props, children }) });\n }\n);\nTableBody.displayName = \"Table.Body\";\n\nexport { TableBody };\n//# sourceMappingURL=TableBody.mjs.map\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { forwardRef } from 'react';\nimport { twMerge } from 'tailwind-merge';\nimport { mergeDeep } from '../../helpers/merge-deep.mjs';\nimport { useTableBodyContext } from './TableBodyContext.mjs';\n\nconst TableCell = forwardRef(\n ({ children, className, theme: customTheme = {}, ...props }, ref) => {\n const { theme: bodyTheme } = useTableBodyContext();\n const theme = mergeDeep(bodyTheme.cell, customTheme);\n return /* @__PURE__ */ jsx(\"td\", { className: twMerge(theme.base, className), ref, ...props, children });\n }\n);\nTableCell.displayName = \"Table.Cell\";\n\nexport { TableCell };\n//# sourceMappingURL=TableCell.mjs.map\n","'use client';\nimport { createContext, useContext } from 'react';\n\nconst TableHeadContext = createContext(void 0);\nfunction useTableHeadContext() {\n const context = useContext(TableHeadContext);\n if (!context) {\n throw new Error(\"useTableHeadContext should be used within the TableHeadContext provider!\");\n }\n return context;\n}\n\nexport { TableHeadContext, useTableHeadContext };\n//# sourceMappingURL=TableHeadContext.mjs.map\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { forwardRef } from 'react';\nimport { twMerge } from 'tailwind-merge';\nimport { mergeDeep } from '../../helpers/merge-deep.mjs';\nimport { useTableContext } from './TableContext.mjs';\nimport { TableHeadContext } from './TableHeadContext.mjs';\n\nconst TableHead = forwardRef(\n ({ children, className, theme: customTheme = {}, ...props }, ref) => {\n const { theme: rootTheme } = useTableContext();\n const theme = mergeDeep(rootTheme.head, customTheme);\n return /* @__PURE__ */ jsx(TableHeadContext.Provider, { value: { theme }, children: /* @__PURE__ */ jsx(\"thead\", { className: twMerge(theme.base, className), ref, ...props, children: /* @__PURE__ */ jsx(\"tr\", { children }) }) });\n }\n);\nTableHead.displayName = \"Table.Head\";\n\nexport { TableHead };\n//# sourceMappingURL=TableHead.mjs.map\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { forwardRef } from 'react';\nimport { twMerge } from 'tailwind-merge';\nimport { mergeDeep } from '../../helpers/merge-deep.mjs';\nimport { useTableHeadContext } from './TableHeadContext.mjs';\n\nconst TableHeadCell = forwardRef(\n ({ children, className, theme: customTheme = {}, ...props }, ref) => {\n const { theme: headTheme } = useTableHeadContext();\n const theme = mergeDeep(headTheme.cell, customTheme);\n return /* @__PURE__ */ jsx(\"th\", { className: twMerge(theme.base, className), ref, ...props, children });\n }\n);\nTableHeadCell.displayName = \"Table.HeadCell\";\n\nexport { TableHeadCell };\n//# sourceMappingURL=TableHeadCell.mjs.map\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { forwardRef } from 'react';\nimport { twMerge } from 'tailwind-merge';\nimport { mergeDeep } from '../../helpers/merge-deep.mjs';\nimport { useTableContext } from './TableContext.mjs';\n\nconst TableRow = forwardRef(\n ({ children, className, theme: customTheme = {}, ...props }, ref) => {\n const { theme: rootTheme, hoverable, striped } = useTableContext();\n const theme = mergeDeep(rootTheme.row, customTheme);\n return /* @__PURE__ */ jsx(\n \"tr\",\n {\n ref,\n \"data-testid\": \"table-row-element\",\n className: twMerge(theme.base, striped && theme.striped, hoverable && theme.hovered, className),\n ...props,\n children\n }\n );\n }\n);\nTableRow.displayName = \"Table.Row\";\n\nexport { TableRow };\n//# sourceMappingURL=TableRow.mjs.map\n","'use client';\nimport { jsx, jsxs } from 'react/jsx-runtime';\nimport { forwardRef } from 'react';\nimport { twMerge } from 'tailwind-merge';\nimport { mergeDeep } from '../../helpers/merge-deep.mjs';\nimport { getTheme } from '../../theme-store/index.mjs';\nimport { TableBody } from './TableBody.mjs';\nimport { TableCell } from './TableCell.mjs';\nimport { TableContext } from './TableContext.mjs';\nimport { TableHead } from './TableHead.mjs';\nimport { TableHeadCell } from './TableHeadCell.mjs';\nimport { TableRow } from './TableRow.mjs';\n\nconst TableComponent = forwardRef(\n ({ children, className, striped, hoverable, theme: customTheme = {}, ...props }, ref) => {\n const theme = mergeDeep(getTheme().table, customTheme);\n return /* @__PURE__ */ jsx(\"div\", { \"data-testid\": \"table-element\", className: twMerge(theme.root.wrapper), children: /* @__PURE__ */ jsxs(TableContext.Provider, { value: { theme, striped, hoverable }, children: [\n /* @__PURE__ */ jsx(\"div\", { className: twMerge(theme.root.shadow, className) }),\n /* @__PURE__ */ jsx(\"table\", { className: twMerge(theme.root.base, className), ...props, ref, children })\n ] }) });\n }\n);\nTableComponent.displayName = \"Table\";\nconst Table = Object.assign(TableComponent, {\n Head: TableHead,\n Body: TableBody,\n Row: TableRow,\n Cell: TableCell,\n HeadCell: TableHeadCell\n});\n\nexport { Table };\n//# sourceMappingURL=Table.mjs.map\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\n\nconst TabItem = ({ children, className }) => /* @__PURE__ */ jsx(\"div\", { className, children });\nTabItem.displayName = \"Tabs.Item\";\n\nexport { TabItem };\n//# sourceMappingURL=TabItem.mjs.map\n","'use client';\nimport { jsxs, jsx } from 'react/jsx-runtime';\nimport { forwardRef, useId, useMemo, Children, useRef, useState, useEffect, useImperativeHandle } from 'react';\nimport { twMerge } from 'tailwind-merge';\nimport { mergeDeep } from '../../helpers/merge-deep.mjs';\nimport { getTheme } from '../../theme-store/index.mjs';\nimport { TabItem } from './TabItem.mjs';\n\nconst TabsComponent = forwardRef(\n ({ children, className, onActiveTabChange, style = \"default\", theme: customTheme = {}, ...props }, ref) => {\n const theme = mergeDeep(getTheme().tabs, customTheme);\n const id = useId();\n const tabs = useMemo(\n () => Children.map(\n Children.toArray(children),\n ({ props: props2 }) => props2\n ),\n [children]\n );\n const tabRefs = useRef([]);\n const [activeTab, setActiveTab] = useState(\n Math.max(\n 0,\n tabs.findIndex((tab) => tab.active)\n )\n );\n const [focusedTab, setFocusedTab] = useState(-1);\n const setActiveTabWithCallback = (activeTab2) => {\n setActiveTab(activeTab2);\n if (onActiveTabChange)\n onActiveTabChange(activeTab2);\n };\n const handleClick = ({ target }) => {\n setActiveTabWithCallback(target);\n setFocusedTab(target);\n };\n const handleKeyboard = ({ event, target }) => {\n if (event.key === \"ArrowLeft\") {\n setFocusedTab(Math.max(0, focusedTab - 1));\n }\n if (event.key === \"ArrowRight\") {\n setFocusedTab(Math.min(tabs.length - 1, focusedTab + 1));\n }\n if (event.key === \"Enter\") {\n setActiveTabWithCallback(target);\n setFocusedTab(target);\n }\n };\n const tabItemStyle = theme.tablist.tabitem.styles[style];\n const tabItemContainerStyle = theme.tabitemcontainer.styles[style];\n useEffect(() => {\n tabRefs.current[focusedTab]?.focus();\n }, [focusedTab]);\n useImperativeHandle(ref, () => ({\n setActiveTab: setActiveTabWithCallback\n }));\n return /* @__PURE__ */ jsxs(\"div\", { className: twMerge(theme.base, className), children: [\n /* @__PURE__ */ jsx(\n \"div\",\n {\n \"aria-label\": \"Tabs\",\n role: \"tablist\",\n className: twMerge(theme.tablist.base, theme.tablist.styles[style], className),\n ...props,\n children: tabs.map((tab, index) => /* @__PURE__ */ jsxs(\n \"button\",\n {\n type: \"button\",\n \"aria-controls\": `${id}-tabpanel-${index}`,\n \"aria-selected\": index === activeTab,\n className: twMerge(\n theme.tablist.tabitem.base,\n tabItemStyle.base,\n index === activeTab && tabItemStyle.active.on,\n index !== activeTab && !tab.disabled && tabItemStyle.active.off\n ),\n disabled: tab.disabled,\n id: `${id}-tab-${index}`,\n onClick: () => handleClick({ target: index }),\n onKeyDown: (event) => handleKeyboard({ event, target: index }),\n ref: (element) => tabRefs.current[index] = element,\n role: \"tab\",\n tabIndex: index === focusedTab ? 0 : -1,\n style: { zIndex: index === focusedTab ? 2 : 1 },\n children: [\n tab.icon && /* @__PURE__ */ jsx(tab.icon, { className: theme.tablist.tabitem.icon }),\n tab.title\n ]\n },\n index\n ))\n }\n ),\n /* @__PURE__ */ jsx(\"div\", { className: twMerge(theme.tabitemcontainer.base, tabItemContainerStyle), children: tabs.map((tab, index) => /* @__PURE__ */ jsx(\n \"div\",\n {\n \"aria-labelledby\": `${id}-tab-${index}`,\n className: theme.tabpanel,\n hidden: index !== activeTab,\n id: `${id}-tabpanel-${index}`,\n role: \"tabpanel\",\n tabIndex: 0,\n children: tab.children\n },\n index\n )) })\n ] });\n }\n);\nTabsComponent.displayName = \"Tabs\";\nconst Tabs = Object.assign(TabsComponent, {\n Item: TabItem\n});\n\nexport { Tabs };\n//# sourceMappingURL=Tabs.mjs.map\n","import { jsxs, Fragment, jsx } from 'react/jsx-runtime';\nimport { forwardRef } from 'react';\nimport { twMerge } from 'tailwind-merge';\nimport { mergeDeep } from '../../helpers/merge-deep.mjs';\nimport { getTheme } from '../../theme-store/index.mjs';\nimport { HelperText } from '../HelperText/HelperText.mjs';\n\nconst Textarea = forwardRef(\n ({ className, color = \"gray\", helperText, shadow, theme: customTheme = {}, ...props }, ref) => {\n const theme = mergeDeep(getTheme().textarea, customTheme);\n return /* @__PURE__ */ jsxs(Fragment, { children: [\n /* @__PURE__ */ jsx(\n \"textarea\",\n {\n ref,\n className: twMerge(theme.base, theme.colors[color], theme.withShadow[shadow ? \"on\" : \"off\"], className),\n ...props\n }\n ),\n helperText && /* @__PURE__ */ jsx(HelperText, { color, children: helperText })\n ] });\n }\n);\nTextarea.displayName = \"Textarea\";\n\nexport { Textarea };\n//# sourceMappingURL=Textarea.mjs.map\n","'use client';\nimport { createContext, useContext } from 'react';\n\nconst TimelineContentContext = createContext(void 0);\nfunction useTimelineContentContext() {\n const context = useContext(TimelineContentContext);\n if (!context) {\n throw new Error(\"useTimelineContentContext should be used within the TimelineContentContext provider!\");\n }\n return context;\n}\n\nexport { TimelineContentContext, useTimelineContentContext };\n//# sourceMappingURL=TimelineContentContext.mjs.map\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { twMerge } from 'tailwind-merge';\nimport { mergeDeep } from '../../helpers/merge-deep.mjs';\nimport { useTimelineContentContext } from './TimelineContentContext.mjs';\n\nconst TimelineBody = ({ children, className, theme: customTheme = {}, ...props }) => {\n const { theme: contentTheme } = useTimelineContentContext();\n const theme = mergeDeep(contentTheme.body, customTheme);\n return /* @__PURE__ */ jsx(\"div\", { className: twMerge(theme.base, className), ...props, children });\n};\n\nexport { TimelineBody };\n//# sourceMappingURL=TimelineBody.mjs.map\n","'use client';\nimport { createContext, useContext } from 'react';\n\nconst TimelineContext = createContext(void 0);\nfunction useTimelineContext() {\n const context = useContext(TimelineContext);\n if (!context) {\n throw new Error(\"useTimelineContext should be used within the TimelineContext provider!\");\n }\n return context;\n}\n\nexport { TimelineContext, useTimelineContext };\n//# sourceMappingURL=TimelineContext.mjs.map\n","'use client';\nimport { createContext, useContext } from 'react';\n\nconst TimelineItemContext = createContext(void 0);\nfunction useTimelineItemContext() {\n const context = useContext(TimelineItemContext);\n if (!context) {\n throw new Error(\"useTimelineItemContext should be used within the TimelineItemContext provider!\");\n }\n return context;\n}\n\nexport { TimelineItemContext, useTimelineItemContext };\n//# sourceMappingURL=TimelineItemContext.mjs.map\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { twMerge } from 'tailwind-merge';\nimport { mergeDeep } from '../../helpers/merge-deep.mjs';\nimport { TimelineContentContext } from './TimelineContentContext.mjs';\nimport { useTimelineContext } from './TimelineContext.mjs';\nimport { useTimelineItemContext } from './TimelineItemContext.mjs';\n\nconst TimelineContent = ({\n children,\n className,\n theme: customTheme = {},\n ...props\n}) => {\n const { horizontal } = useTimelineContext();\n const { theme: itemTheme } = useTimelineItemContext();\n const theme = mergeDeep(itemTheme.content, customTheme);\n return /* @__PURE__ */ jsx(TimelineContentContext.Provider, { value: { theme }, children: /* @__PURE__ */ jsx(\"div\", { \"data-testid\": \"timeline-content\", className: twMerge(horizontal && theme.root.base, className), ...props, children }) });\n};\n\nexport { TimelineContent };\n//# sourceMappingURL=TimelineContent.mjs.map\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { twMerge } from 'tailwind-merge';\nimport { mergeDeep } from '../../helpers/merge-deep.mjs';\nimport { useTimelineContext } from './TimelineContext.mjs';\nimport { TimelineItemContext } from './TimelineItemContext.mjs';\n\nconst TimelineItem = ({ children, className, theme: customTheme = {}, ...props }) => {\n const { theme: rootTheme, horizontal } = useTimelineContext();\n const theme = mergeDeep(rootTheme.item, customTheme);\n return /* @__PURE__ */ jsx(TimelineItemContext.Provider, { value: { theme }, children: /* @__PURE__ */ jsx(\n \"li\",\n {\n \"data-testid\": \"timeline-item\",\n className: twMerge(horizontal && theme.root.horizontal, !horizontal && theme.root.vertical, className),\n ...props,\n children\n }\n ) });\n};\n\nexport { TimelineItem };\n//# sourceMappingURL=TimelineItem.mjs.map\n","'use client';\nimport { jsxs, jsx } from 'react/jsx-runtime';\nimport { twMerge } from 'tailwind-merge';\nimport { mergeDeep } from '../../helpers/merge-deep.mjs';\nimport { useTimelineContext } from './TimelineContext.mjs';\nimport { useTimelineItemContext } from './TimelineItemContext.mjs';\n\nconst TimelinePoint = ({\n children,\n className,\n icon: Icon,\n theme: customTheme = {},\n ...props\n}) => {\n const { horizontal } = useTimelineContext();\n const { theme: itemTheme } = useTimelineItemContext();\n const theme = mergeDeep(itemTheme.point, customTheme);\n return /* @__PURE__ */ jsxs(\n \"div\",\n {\n \"data-testid\": \"timeline-point\",\n className: twMerge(horizontal && theme.horizontal, !horizontal && theme.vertical, className),\n ...props,\n children: [\n children,\n Icon ? /* @__PURE__ */ jsx(\"span\", { className: twMerge(theme.marker.icon.wrapper), children: /* @__PURE__ */ jsx(Icon, { \"aria-hidden\": true, className: twMerge(theme.marker.icon.base) }) }) : /* @__PURE__ */ jsx(\n \"div\",\n {\n className: twMerge(horizontal && theme.marker.base.horizontal, !horizontal && theme.marker.base.vertical)\n }\n ),\n horizontal && /* @__PURE__ */ jsx(\"div\", { className: twMerge(theme.line) })\n ]\n }\n );\n};\n\nexport { TimelinePoint };\n//# sourceMappingURL=TimelinePoint.mjs.map\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { twMerge } from 'tailwind-merge';\nimport { mergeDeep } from '../../helpers/merge-deep.mjs';\nimport { useTimelineContentContext } from './TimelineContentContext.mjs';\n\nconst TimelineTime = ({ children, className, theme: customTheme = {}, ...props }) => {\n const { theme: contentTheme } = useTimelineContentContext();\n const theme = mergeDeep(contentTheme.time, customTheme);\n return /* @__PURE__ */ jsx(\"time\", { className: twMerge(theme.base, className), ...props, children });\n};\n\nexport { TimelineTime };\n//# sourceMappingURL=TimelineTime.mjs.map\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { twMerge } from 'tailwind-merge';\nimport { mergeDeep } from '../../helpers/merge-deep.mjs';\nimport { useTimelineContentContext } from './TimelineContentContext.mjs';\n\nconst TimelineTitle = ({\n as: Tag = \"h3\",\n children,\n className,\n theme: customTheme = {},\n ...props\n}) => {\n const { theme: contentTheme } = useTimelineContentContext();\n const theme = mergeDeep(contentTheme.title, customTheme);\n return /* @__PURE__ */ jsx(Tag, { className: twMerge(theme.base, className), ...props, children });\n};\n\nexport { TimelineTitle };\n//# sourceMappingURL=TimelineTitle.mjs.map\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { twMerge } from 'tailwind-merge';\nimport { mergeDeep } from '../../helpers/merge-deep.mjs';\nimport { getTheme } from '../../theme-store/index.mjs';\nimport { TimelineBody } from './TimelineBody.mjs';\nimport { TimelineContent } from './TimelineContent.mjs';\nimport { TimelineContext } from './TimelineContext.mjs';\nimport { TimelineItem } from './TimelineItem.mjs';\nimport { TimelinePoint } from './TimelinePoint.mjs';\nimport { TimelineTime } from './TimelineTime.mjs';\nimport { TimelineTitle } from './TimelineTitle.mjs';\n\nconst TimelineComponent = ({\n children,\n className,\n horizontal,\n theme: customTheme = {},\n ...props\n}) => {\n const theme = mergeDeep(getTheme().timeline, customTheme);\n return /* @__PURE__ */ jsx(TimelineContext.Provider, { value: { theme, horizontal }, children: /* @__PURE__ */ jsx(\n \"ol\",\n {\n \"data-testid\": \"timeline-component\",\n className: twMerge(\n horizontal && theme.root.direction.horizontal,\n !horizontal && theme.root.direction.vertical,\n className\n ),\n ...props,\n children\n }\n ) });\n};\nTimelineComponent.displayName = \"Timeline\";\nTimelineItem.displayName = \"Timeline.Item\";\nTimelinePoint.displayName = \"Timeline.Point\";\nTimelineContent.displayName = \"Timeline.Content\";\nTimelineTime.displayName = \"Timeline.Time\";\nTimelineTitle.displayName = \"Timeline.Title\";\nTimelineBody.displayName = \"Timeline.Body\";\nconst Timeline = Object.assign(TimelineComponent, {\n Item: TimelineItem,\n Point: TimelinePoint,\n Content: TimelineContent,\n Time: TimelineTime,\n Title: TimelineTitle,\n Body: TimelineBody\n});\n\nexport { Timeline };\n//# sourceMappingURL=Timeline.mjs.map\n","'use client';\nimport { createContext, useContext } from 'react';\n\nconst ToastContext = createContext(void 0);\nfunction useToastContext() {\n const context = useContext(ToastContext);\n if (!context) {\n throw new Error(\"useToastContext should be used within the ToastContext provider!\");\n }\n return context;\n}\n\nexport { ToastContext, useToastContext };\n//# sourceMappingURL=ToastContext.mjs.map\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { HiX } from 'react-icons/hi';\nimport { twMerge } from 'tailwind-merge';\nimport { mergeDeep } from '../../helpers/merge-deep.mjs';\nimport { useToastContext } from './ToastContext.mjs';\n\nconst ToastToggle = ({\n className,\n onClick,\n theme: customTheme = {},\n xIcon: XIcon = HiX,\n onDismiss,\n ...props\n}) => {\n const { theme: rootTheme, duration, isClosed, isRemoved, setIsClosed, setIsRemoved } = useToastContext();\n const theme = mergeDeep(rootTheme.toggle, customTheme);\n const handleClick = (e) => {\n if (onClick)\n onClick(e);\n if (onDismiss) {\n onDismiss();\n return;\n }\n setIsClosed(!isClosed);\n setTimeout(() => setIsRemoved(!isRemoved), duration);\n };\n return /* @__PURE__ */ jsx(\n \"button\",\n {\n \"aria-label\": \"Close\",\n onClick: handleClick,\n type: \"button\",\n className: twMerge(theme.base, className),\n ...props,\n children: /* @__PURE__ */ jsx(XIcon, { \"aria-hidden\": true, className: theme.icon })\n }\n );\n};\n\nexport { ToastToggle };\n//# sourceMappingURL=ToastToggle.mjs.map\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { useState } from 'react';\nimport { twMerge } from 'tailwind-merge';\nimport { mergeDeep } from '../../helpers/merge-deep.mjs';\nimport { getTheme } from '../../theme-store/index.mjs';\nimport { ToastContext } from './ToastContext.mjs';\nimport { ToastToggle } from './ToastToggle.mjs';\n\nconst durationClasses = {\n 75: \"duration-75\",\n 100: \"duration-100\",\n 150: \"duration-150\",\n 200: \"duration-200\",\n 300: \"duration-300\",\n 500: \"duration-500\",\n 700: \"duration-700\",\n 1e3: \"duration-1000\"\n};\nconst ToastComponent = ({ children, className, duration = 300, theme: customTheme = {}, ...props }) => {\n const [isClosed, setIsClosed] = useState(false);\n const [isRemoved, setIsRemoved] = useState(false);\n const theme = mergeDeep(getTheme().toast, customTheme);\n if (isRemoved) {\n return null;\n }\n return /* @__PURE__ */ jsx(ToastContext.Provider, { value: { theme, duration, isClosed, isRemoved, setIsClosed, setIsRemoved }, children: /* @__PURE__ */ jsx(\n \"div\",\n {\n \"data-testid\": \"flowbite-toast\",\n role: \"alert\",\n className: twMerge(theme.root.base, durationClasses[duration], isClosed && theme.root.closed, className),\n ...props,\n children\n }\n ) });\n};\nToastComponent.displayName = \"Toast\";\nToastToggle.displayName = \"Toast.Toggle\";\nconst Toast = Object.assign(ToastComponent, {\n Toggle: ToastToggle\n});\n\nexport { Toast };\n//# sourceMappingURL=Toast.mjs.map\n","import { jsxs, Fragment, jsx } from 'react/jsx-runtime';\nimport { forwardRef, useId } from 'react';\nimport { twMerge } from 'tailwind-merge';\nimport { mergeDeep } from '../../helpers/merge-deep.mjs';\nimport { getTheme } from '../../theme-store/index.mjs';\n\nconst ToggleSwitch = forwardRef(\n ({\n checked,\n className,\n color = \"blue\",\n sizing = \"md\",\n disabled,\n label,\n name,\n onChange,\n theme: customTheme = {},\n ...props\n }, ref) => {\n const id = useId();\n const theme = mergeDeep(getTheme().toggleSwitch, customTheme);\n const toggle = () => onChange(!checked);\n const handleClick = () => {\n toggle();\n };\n const handleOnKeyDown = (event) => {\n if (event.code == \"Enter\") {\n event.preventDefault();\n }\n };\n return /* @__PURE__ */ jsxs(Fragment, { children: [\n name && checked ? /* @__PURE__ */ jsx(\"input\", { ref, checked, hidden: true, name, readOnly: true, type: \"checkbox\", className: \"sr-only\" }) : null,\n /* @__PURE__ */ jsxs(\n \"button\",\n {\n \"aria-checked\": checked,\n \"aria-labelledby\": `${id}-flowbite-toggleswitch-label`,\n disabled,\n id: `${id}-flowbite-toggleswitch`,\n onClick: handleClick,\n onKeyDown: handleOnKeyDown,\n role: \"switch\",\n tabIndex: 0,\n type: \"button\",\n className: twMerge(theme.root.base, theme.root.active[disabled ? \"off\" : \"on\"], className),\n ...props,\n children: [\n /* @__PURE__ */ jsx(\n \"div\",\n {\n \"data-testid\": \"flowbite-toggleswitch-toggle\",\n className: twMerge(\n theme.toggle.base,\n theme.toggle.checked[checked ? \"on\" : \"off\"],\n checked && theme.toggle.checked.color[color],\n theme.toggle.sizes[sizing]\n )\n }\n ),\n label?.length ? /* @__PURE__ */ jsx(\n \"span\",\n {\n \"data-testid\": \"flowbite-toggleswitch-label\",\n id: `${id}-flowbite-toggleswitch-label`,\n className: theme.root.label,\n children: label\n }\n ) : null\n ]\n }\n )\n ] });\n }\n);\nToggleSwitch.displayName = \"ToggleSwitch\";\n\nexport { ToggleSwitch };\n//# sourceMappingURL=ToggleSwitch.mjs.map\n","import { DarkThemeToggle } from \"flowbite-react\";\nimport type { HeadFC, PageProps } from \"gatsby\";\nimport * as React from \"react\";\n\nconst IndexPage: React.FC<PageProps> = () => {\n return (\n <main className=\"flex min-h-screen items-center justify-center gap-2 dark:bg-gray-800\">\n <h1 className=\"text-9xl\t dark:text-white\">Putera Kahfi</h1>\n <DarkThemeToggle />\n </main>\n );\n};\n\nexport default IndexPage;\n\nexport const Head: HeadFC = () => <title>Home Page</title>;\n","/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = '';\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (arg) {\n\t\t\t\tclasses = appendClass(classes, parseValue(arg));\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction parseValue (arg) {\n\t\tif (typeof arg === 'string' || typeof arg === 'number') {\n\t\t\treturn arg;\n\t\t}\n\n\t\tif (typeof arg !== 'object') {\n\t\t\treturn '';\n\t\t}\n\n\t\tif (Array.isArray(arg)) {\n\t\t\treturn classNames.apply(null, arg);\n\t\t}\n\n\t\tif (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {\n\t\t\treturn arg.toString();\n\t\t}\n\n\t\tvar classes = '';\n\n\t\tfor (var key in arg) {\n\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\tclasses = appendClass(classes, key);\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction appendClass (value, newClass) {\n\t\tif (!newClass) {\n\t\t\treturn value;\n\t\t}\n\t\n\t\tif (value) {\n\t\t\treturn value + ' ' + newClass;\n\t\t}\n\t\n\t\treturn value + newClass;\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n","export var IconsManifest = [\n {\n \"id\": \"ci\",\n \"name\": \"Circum Icons\",\n \"projectUrl\": \"https://circumicons.com/\",\n \"license\": \"MPL-2.0 license\",\n \"licenseUrl\": \"https://github.com/Klarr-Agency/Circum-Icons/blob/main/LICENSE\"\n },\n {\n \"id\": \"fa\",\n \"name\": \"Font Awesome 5\",\n \"projectUrl\": \"https://fontawesome.com/\",\n \"license\": \"CC BY 4.0 License\",\n \"licenseUrl\": \"https://creativecommons.org/licenses/by/4.0/\"\n },\n {\n \"id\": \"fa6\",\n \"name\": \"Font Awesome 6\",\n \"projectUrl\": \"https://fontawesome.com/\",\n \"license\": \"CC BY 4.0 License\",\n \"licenseUrl\": \"https://creativecommons.org/licenses/by/4.0/\"\n },\n {\n \"id\": \"io\",\n \"name\": \"Ionicons 4\",\n \"projectUrl\": \"https://ionicons.com/\",\n \"license\": \"MIT\",\n \"licenseUrl\": \"https://github.com/ionic-team/ionicons/blob/master/LICENSE\"\n },\n {\n \"id\": \"io5\",\n \"name\": \"Ionicons 5\",\n \"projectUrl\": \"https://ionicons.com/\",\n \"license\": \"MIT\",\n \"licenseUrl\": \"https://github.com/ionic-team/ionicons/blob/master/LICENSE\"\n },\n {\n \"id\": \"md\",\n \"name\": \"Material Design icons\",\n \"projectUrl\": \"http://google.github.io/material-design-icons/\",\n \"license\": \"Apache License Version 2.0\",\n \"licenseUrl\": \"https://github.com/google/material-design-icons/blob/master/LICENSE\"\n },\n {\n \"id\": \"ti\",\n \"name\": \"Typicons\",\n \"projectUrl\": \"http://s-ings.com/typicons/\",\n \"license\": \"CC BY-SA 3.0\",\n \"licenseUrl\": \"https://creativecommons.org/licenses/by-sa/3.0/\"\n },\n {\n \"id\": \"go\",\n \"name\": \"Github Octicons icons\",\n \"projectUrl\": \"https://octicons.github.com/\",\n \"license\": \"MIT\",\n \"licenseUrl\": \"https://github.com/primer/octicons/blob/master/LICENSE\"\n },\n {\n \"id\": \"fi\",\n \"name\": \"Feather\",\n \"projectUrl\": \"https://feathericons.com/\",\n \"license\": \"MIT\",\n \"licenseUrl\": \"https://github.com/feathericons/feather/blob/master/LICENSE\"\n },\n {\n \"id\": \"lu\",\n \"name\": \"Lucide\",\n \"projectUrl\": \"https://lucide.dev/\",\n \"license\": \"ISC\",\n \"licenseUrl\": \"https://github.com/lucide-icons/lucide/blob/main/LICENSE\"\n },\n {\n \"id\": \"gi\",\n \"name\": \"Game Icons\",\n \"projectUrl\": \"https://game-icons.net/\",\n \"license\": \"CC BY 3.0\",\n \"licenseUrl\": \"https://creativecommons.org/licenses/by/3.0/\"\n },\n {\n \"id\": \"wi\",\n \"name\": \"Weather Icons\",\n \"projectUrl\": \"https://erikflowers.github.io/weather-icons/\",\n \"license\": \"SIL OFL 1.1\",\n \"licenseUrl\": \"http://scripts.sil.org/OFL\"\n },\n {\n \"id\": \"di\",\n \"name\": \"Devicons\",\n \"projectUrl\": \"https://vorillaz.github.io/devicons/\",\n \"license\": \"MIT\",\n \"licenseUrl\": \"https://opensource.org/licenses/MIT\"\n },\n {\n \"id\": \"ai\",\n \"name\": \"Ant Design Icons\",\n \"projectUrl\": \"https://github.com/ant-design/ant-design-icons\",\n \"license\": \"MIT\",\n \"licenseUrl\": \"https://opensource.org/licenses/MIT\"\n },\n {\n \"id\": \"bs\",\n \"name\": \"Bootstrap Icons\",\n \"projectUrl\": \"https://github.com/twbs/icons\",\n \"license\": \"MIT\",\n \"licenseUrl\": \"https://opensource.org/licenses/MIT\"\n },\n {\n \"id\": \"ri\",\n \"name\": \"Remix Icon\",\n \"projectUrl\": \"https://github.com/Remix-Design/RemixIcon\",\n \"license\": \"Apache License Version 2.0\",\n \"licenseUrl\": \"http://www.apache.org/licenses/\"\n },\n {\n \"id\": \"fc\",\n \"name\": \"Flat Color Icons\",\n \"projectUrl\": \"https://github.com/icons8/flat-color-icons\",\n \"license\": \"MIT\",\n \"licenseUrl\": \"https://opensource.org/licenses/MIT\"\n },\n {\n \"id\": \"gr\",\n \"name\": \"Grommet-Icons\",\n \"projectUrl\": \"https://github.com/grommet/grommet-icons\",\n \"license\": \"Apache License Version 2.0\",\n \"licenseUrl\": \"http://www.apache.org/licenses/\"\n },\n {\n \"id\": \"hi\",\n \"name\": \"Heroicons\",\n \"projectUrl\": \"https://github.com/tailwindlabs/heroicons\",\n \"license\": \"MIT\",\n \"licenseUrl\": \"https://opensource.org/licenses/MIT\"\n },\n {\n \"id\": \"hi2\",\n \"name\": \"Heroicons 2\",\n \"projectUrl\": \"https://github.com/tailwindlabs/heroicons\",\n \"license\": \"MIT\",\n \"licenseUrl\": \"https://opensource.org/licenses/MIT\"\n },\n {\n \"id\": \"si\",\n \"name\": \"Simple Icons\",\n \"projectUrl\": \"https://simpleicons.org/\",\n \"license\": \"CC0 1.0 Universal\",\n \"licenseUrl\": \"https://creativecommons.org/publicdomain/zero/1.0/\"\n },\n {\n \"id\": \"sl\",\n \"name\": \"Simple Line Icons\",\n \"projectUrl\": \"https://thesabbir.github.io/simple-line-icons/\",\n \"license\": \"MIT\",\n \"licenseUrl\": \"https://opensource.org/licenses/MIT\"\n },\n {\n \"id\": \"im\",\n \"name\": \"IcoMoon Free\",\n \"projectUrl\": \"https://github.com/Keyamoon/IcoMoon-Free\",\n \"license\": \"CC BY 4.0 License\",\n \"licenseUrl\": \"https://github.com/Keyamoon/IcoMoon-Free/blob/master/License.txt\"\n },\n {\n \"id\": \"bi\",\n \"name\": \"BoxIcons\",\n \"projectUrl\": \"https://github.com/atisawd/boxicons\",\n \"license\": \"MIT\",\n \"licenseUrl\": \"https://github.com/atisawd/boxicons/blob/master/LICENSE\"\n },\n {\n \"id\": \"cg\",\n \"name\": \"css.gg\",\n \"projectUrl\": \"https://github.com/astrit/css.gg\",\n \"license\": \"MIT\",\n \"licenseUrl\": \"https://opensource.org/licenses/MIT\"\n },\n {\n \"id\": \"vsc\",\n \"name\": \"VS Code Icons\",\n \"projectUrl\": \"https://github.com/microsoft/vscode-codicons\",\n \"license\": \"CC BY 4.0\",\n \"licenseUrl\": \"https://creativecommons.org/licenses/by/4.0/\"\n },\n {\n \"id\": \"tb\",\n \"name\": \"Tabler Icons\",\n \"projectUrl\": \"https://github.com/tabler/tabler-icons\",\n \"license\": \"MIT\",\n \"licenseUrl\": \"https://opensource.org/licenses/MIT\"\n },\n {\n \"id\": \"tfi\",\n \"name\": \"Themify Icons\",\n \"projectUrl\": \"https://github.com/lykmapipo/themify-icons\",\n \"license\": \"MIT\",\n \"licenseUrl\": \"https://github.com/thecreation/standard-icons/blob/master/modules/themify-icons/LICENSE\"\n },\n {\n \"id\": \"rx\",\n \"name\": \"Radix Icons\",\n \"projectUrl\": \"https://icons.radix-ui.com\",\n \"license\": \"MIT\",\n \"licenseUrl\": \"https://github.com/radix-ui/icons/blob/master/LICENSE\"\n },\n {\n \"id\": \"pi\",\n \"name\": \"Phosphor Icons\",\n \"projectUrl\": \"https://github.com/phosphor-icons/core\",\n \"license\": \"MIT\",\n \"licenseUrl\": \"https://github.com/phosphor-icons/core/blob/main/LICENSE\"\n },\n {\n \"id\": \"lia\",\n \"name\": \"Icons8 Line Awesome\",\n \"projectUrl\": \"https://icons8.com/line-awesome\",\n \"license\": \"MIT\",\n \"licenseUrl\": \"https://github.com/icons8/line-awesome/blob/master/LICENSE.md\"\n }\n]","import React from \"react\";\nexport var DefaultContext = {\n color: undefined,\n size: undefined,\n className: undefined,\n style: undefined,\n attr: undefined\n};\nexport var IconContext = React.createContext && /*#__PURE__*/React.createContext(DefaultContext);","var _excluded = [\"attr\", \"size\", \"title\"];\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return typeof key === \"symbol\" ? key : String(key); }\nfunction _toPrimitive(input, hint) { if (typeof input !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (typeof res !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\nimport React from \"react\";\nimport { IconContext, DefaultContext } from \"./iconContext.mjs\";\nfunction Tree2Element(tree) {\n return tree && tree.map((node, i) => /*#__PURE__*/React.createElement(node.tag, _objectSpread({\n key: i\n }, node.attr), Tree2Element(node.child)));\n}\nexport function GenIcon(data) {\n // eslint-disable-next-line react/display-name\n return props => /*#__PURE__*/React.createElement(IconBase, _extends({\n attr: _objectSpread({}, data.attr)\n }, props), Tree2Element(data.child));\n}\nexport function IconBase(props) {\n var elem = conf => {\n var {\n attr,\n size,\n title\n } = props,\n svgProps = _objectWithoutProperties(props, _excluded);\n var computedSize = size || conf.size || \"1em\";\n var className;\n if (conf.className) className = conf.className;\n if (props.className) className = (className ? className + \" \" : \"\") + props.className;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n stroke: \"currentColor\",\n fill: \"currentColor\",\n strokeWidth: \"0\"\n }, conf.attr, attr, svgProps, {\n className: className,\n style: _objectSpread(_objectSpread({\n color: props.color || conf.color\n }, conf.style), props.style),\n height: computedSize,\n width: computedSize,\n xmlns: \"http://www.w3.org/2000/svg\"\n }), title && /*#__PURE__*/React.createElement(\"title\", null, title), props.children);\n };\n return IconContext !== undefined ? /*#__PURE__*/React.createElement(IconContext.Consumer, null, conf => elem(conf)) : elem(DefaultContext);\n}"],"names":["debounce","function_","wait","options","TypeError","RangeError","immediate","storedContext","storedArguments","timeoutId","timestamp","result","later","last","Date","now","setTimeout","undefined","callContext","callArguments","apply","debounced","arguments_","this","Error","callNow","clear","clearTimeout","flush","module","exports","createClassUtils","config","classMap","theme","prefix","nextPart","Map","validators","prefixedClassGroupEntries","classGroupEntries","map","classGroupId","classGroup","classDefinition","Object","fromEntries","entries","key","value","getPrefixedClassGroupEntries","classGroups","forEach","processClassesRecursively","createClassMap","conflictingClassGroups","conflictingClassGroupModifiers","getClassGroupId","className","classParts","split","length","shift","getGroupRecursive","arbitraryPropertyRegex","test","arbitraryPropertyClassName","exec","property","substring","indexOf","getGroupIdForArbitraryProperty","getConflictingClassGroupIds","hasPostfixModifier","conflicts","classPartObject","currentClassPart","nextClassPartObject","get","classGroupFromNextClassPart","slice","classRest","join","find","validator","isThemeGetter","push","getPart","path","currentClassPartObject","pathPart","has","set","createLruCache","maxCacheSize","cacheSize","cache","previousCache","update","createSplitModifiers","separator","isSeparatorSingleCharacter","firstSeparatorCharacter","separatorLength","modifiers","postfixModifierPosition","bracketDepth","modifierStart","index","currentCharacter","baseClassNameWithImportantModifier","hasImportantModifier","startsWith","baseClassName","maybePostfixModifierPosition","SPLIT_CLASSES_REGEX","twJoin","argument","resolvedValue","string","arguments","toValue","mix","k","createTailwindMerge","createConfigFirst","createConfigRest","configUtils","cacheGet","cacheSet","functionToCall","classList","reduce","previousConfig","createConfigCurrent","splitModifiers","createConfigUtils","tailwindMerge","cachedResult","classGroupsInConflict","Set","trim","originalClassName","Boolean","isTailwindClass","variantModifier","sortedModifiers","unsortedModifiers","modifier","sort","sortModifiers","modifierId","reverse","filter","parsed","classId","add","group","mergeClassList","fromTheme","themeGetter","arbitraryValueRegex","fractionRegex","stringLengths","tshirtUnitRegex","lengthUnitRegex","colorFunctionRegex","shadowRegex","imageRegex","isLength","isNumber","isArbitraryLength","getIsArbitraryValue","isLengthOnly","Number","isNaN","isArbitraryNumber","isInteger","isPercent","endsWith","isArbitraryValue","isTshirtSize","sizeLabels","isArbitrarySize","isNever","isArbitraryPosition","imageLabels","isArbitraryImage","isImage","isArbitraryShadow","isShadow","isAny","label","testValue","Symbol","toStringTag","getDefaultConfig","colors","spacing","blur","brightness","borderColor","borderRadius","borderSpacing","borderWidth","contrast","grayscale","hueRotate","invert","gap","gradientColorStops","gradientColorStopPositions","inset","margin","opacity","padding","saturate","scale","sepia","skew","space","translate","getSpacingWithAutoAndArbitrary","getSpacingWithArbitrary","getLengthWithEmptyAndArbitrary","getNumberWithAutoAndArbitrary","getZeroAndEmpty","getNumber","getNumberAndArbitrary","aspect","container","columns","box","display","float","isolation","object","overflow","overscroll","position","start","end","top","right","bottom","left","visibility","z","basis","flex","grow","shrink","order","col","span","row","justify","content","items","self","p","px","py","ps","pe","pt","pr","pb","pl","m","mx","my","ms","me","mt","mr","mb","ml","w","screen","h","size","text","font","tracking","leading","list","placeholder","decoration","indent","align","whitespace","break","hyphens","bg","repeat","from","via","to","rounded","border","divide","outline","ring","shadow","table","caption","transition","duration","ease","delay","animate","transform","rotate","origin","accent","appearance","cursor","caret","resize","scroll","snap","touch","select","fill","stroke","sr","isObject","item","constructor","cloneDeep","source","output","target","keys","accordion","root","base","off","on","title","arrow","open","heading","alert","borderAccent","closeButton","icon","color","info","gray","failure","success","warning","red","green","yellow","blue","cyan","pink","lime","dark","indigo","purple","teal","light","wrapper","avatar","bordered","img","xs","sm","md","lg","xl","stacked","statusPosition","center","status","away","busy","offline","online","initials","groupCounter","badge","href","blockquote","breadcrumb","chevron","button","fullSized","disabled","isProcessing","spinnerSlot","spinnerLeftPosition","gradient","gradientDuoTone","cyanToBlue","greenToBlue","pinkToOrange","purpleToBlue","purpleToPink","redToYellow","tealToLime","inner","none","middle","isProcessingPadding","default","pill","buttonGroup","card","children","horizontal","carousel","leftControl","rightControl","indicators","active","control","scrollContainer","checkbox","datepicker","popup","inline","header","selectors","prev","next","view","footer","today","views","days","selected","months","years","decades","darkThemeToggle","dropdown","arrowIcon","floating","animation","style","auto","placement","divider","hidden","inlineWrapper","fileInput","field","input","sizes","floatingLabel","filled","outlined","standard","error","helperText","bgDark","groupLink","link","copyright","brand","kbd","listGroup","ordered","unstyled","nested","withIcon","modal","show","positions","body","close","navbar","fluid","collapse","toggle","pagination","layout","pages","showIcon","previous","selector","popover","progress","bar","radio","rangeSlider","rating","star","empty","ratingAdvanced","addon","svg","withAddon","withShadow","textInput","rightIcon","withRightIcon","textarea","toggleSwitch","checked","sidebar","collapsed","cta","insideCollapse","noIcon","listItem","itemGroup","logo","spinner","cell","head","hovered","striped","tabs","tablist","styles","underline","pills","fullWidth","tabitem","tabitemcontainer","tabpanel","timeline","direction","vertical","time","point","line","marker","toast","closed","tooltip","store","getThemeMode","mode","AccordionPanelContext","createContext","useAccordionContext","context","useContext","AccordionContent","customTheme","props","isOpen","jsx","AccordionPanel","alwaysOpen","setOpen","useState","provider","Provider","AccordionTitle","as","Heading","ArrowIcon","jsxs","onClick","type","AccordionComponent","collapseAll","panels","useMemo","Children","child","i","cloneElement","displayName","assign","Panel","Title","Content","AvatarGroup","AvatarGroupCounter","total","AvatarComponent","alt","placeholderInitials","imgClassName","imgProps","src","viewBox","xmlns","fillRule","d","clipRule","Group","Counter","Badge","Icon","Spinner","role","ButtonBase","forwardRef","Component","ref","BaseComponent","createElement","processChildren","isValidElement","positionInGroup","determinePosition","count","totalChildren","ButtonGroup","ButtonComponent","processingLabel","processingSpinner","gradientMonochrome","groupTheme","buttonTheme","theirProps","Fragment","Button","BannerCollapseButton","event","parentBanner","closest","remove","BannerComponent","tabIndex","CollapseButton","BreadcrumbItem","isLink","BreadcrumbComponent","Item","__defProp","defineProperty","__publicField","obj","enumerable","configurable","writable","__defNormalProp","ScrollContainer","PureComponent","super","scrolling","pressed","started","processEnd","current","scrollLeft","scrollTop","processScroll","onEndScroll","e","nativeMobileScroll","isDraggable","internal","touches","processClick","clientX","clientY","stopPropagation","forceUpdate","isMobile","processMove","preventDefault","isScrollable","buttons","getRef","bind","componentDidMount","window","addEventListener","onMouseUp","onMouseMove","onTouchMove","passive","onTouchEnd","onTouchStart","onMouseDown","isMobileDevice","componentWillUnmount","removeEventListener","getElement","orientation","navigator","userAgent","ignoreElements","contains","scrollWidth","clientWidth","scrollHeight","clientHeight","processStart","changeCursor","onStartScroll","document","external","onScroll","newClientX","newClientY","activationDistance","Math","abs","el","innerRef","render","draggingClassName","hideScrollbars","classnames","isClient","Checkbox","DEFAULT_MODE","LS_THEME_MODE","SYNC_THEME_MODE","useThemeMode","setMode","getInitialMode","useEffect","setModeInLS","setModeInDOM","watchKey","onChange","handleStorageChange","newValue","useWatchLocalStorageValue","handleSetMode","useSyncMode","mode2","dispatchEvent","CustomEvent","detail","computedMode","computeModeValue","toggleMode","newMode","clearMode","handleSync","localStorage","setItem","documentElement","defaultMode","getItem","prefersColorScheme","matchMedia","matches","DarkThemeToggle","iconDark","IconDark","iconLight","IconLight","isMounted","mounted","setMounted","useIsMounted","HelperText","TextInput","RightIcon","sizing","DatepickerContext","useDatePickerContext","Views","Views2","WeekStart","WeekStart2","isDateInRange","date","minDate","maxDate","dateTime","getFullYear","getMonth","getDate","getTime","minDateTime","maxDateTime","isDateEqual","selectedDate","addDays","amount","newDate","setDate","addYears","setFullYear","getFormattedDate","language","defaultOptions","day","month","year","Intl","DateTimeFormat","format","startOfYearPeriod","floor","DatepickerViewsDays","rootTheme","weekStart","viewDate","changeSelectedDate","weekDays","lang","weekdays","getDay","formatter","weekday","getWeekDays","startDate","firstDayOfMonth","diff","getFirstDayOfTheMonth","Array","_date","currentDate","isSelected","isDisabled","DatepickerViewsDecades","setViewDate","setView","_year","firstDate","lastDate","startYear","isDateInDecade","Years","DatepickerViewsMonth","_month","setMonth","Days","DatepickerViewsYears","Months","Datepicker","autoHide","showClearButton","labelClearButton","showTodayButton","labelTodayButton","defaultDate","Sunday","onSelectedDateChanged","getFirstDateInRange","setIsOpen","setSelectedDate","inputRef","useRef","datepickerRef","useAutohide","useImperativeHandle","focus","getViewDatePage","view2","addMonths","Decades","handleClickOutside","clickedInsideDatepicker","clickedInsideInput","onFocus","readOnly","getNextView","getViewTitle","renderView","getNodeName","node","isNode","nodeName","toLowerCase","_node$ownerDocument","ownerDocument","defaultView","getDocumentElement","_ref","Node","isElement","Element","isHTMLElement","HTMLElement","isShadowRoot","ShadowRoot","isOverflowElement","element","overflowX","overflowY","includes","isTableElement","isContainingBlock","webkit","isWebKit","css","perspective","containerType","backdropFilter","some","willChange","contain","CSS","supports","isLastTraversableNode","getComputedStyle","getNodeScroll","pageXOffset","pageYOffset","getParentNode","assignedSlot","parentNode","host","getNearestOverflowAncestor","getOverflowAncestors","traverseIframes","_node$ownerDocument2","scrollableAncestor","isBody","win","concat","visualViewport","frameElement","activeElement","doc","_activeElement","shadowRoot","parent","rootNode","getRootNode","getPlatform","uaData","userAgentData","platform","isArray","brands","version","isVirtualClick","mozInputSource","isTrusted","isAndroid","pointerType","isVirtualPointerEvent","width","height","pressure","isSafari","vendor","re","isMac","maxTouchPoints","strict","values","getDocument","isEventTargetWithin","composedPath","isTypeableElement","stopEvent","isTypeableCombobox","getAttribute","alignments","placements","acc","side","min","max","round","createCoords","v","x","y","oppositeSideMap","oppositeAlignmentMap","clamp","param","axis","getAxisLength","getAlignmentAxis","getAlignmentSides","rects","rtl","alignment","alignmentAxis","mainAlignmentSide","reference","getOppositePlacement","getOppositeAlignmentPlacement","replace","expandPaddingObject","rect","computeCoordsFromPlacement","sideAxis","alignLength","isVertical","commonX","commonY","commonAlign","coords","async","state","_await$platform$isEle","elements","strategy","boundary","rootBoundary","elementContext","altBoundary","paddingObject","clippingClientRect","getClippingRect","contextElement","offsetParent","getOffsetParent","offsetScale","getScale","elementClientRect","convertOffsetParentRelativeRectToViewportRelativeRect","name","fn","_middlewareData$offse","_middlewareData$arrow","middlewareData","diffCoords","isRTL","mainAxisMulti","crossAxisMulti","rawValue","mainAxis","crossAxis","convertValueToCoords","offset","alignmentOffset","data","getCssDimensions","parseFloat","hasOffset","offsetWidth","offsetHeight","shouldFallback","$","unwrapElement","domElement","getBoundingClientRect","isFinite","noOffsets","getVisualOffsets","offsetLeft","offsetTop","includeScale","isFixedStrategy","clientRect","visualOffsets","isFixed","floatingOffsetParent","shouldAddVisualOffsets","offsetWin","currentWin","currentIFrame","iframeScale","iframeRect","clientLeft","paddingLeft","clientTop","paddingTop","topLayerSelectors","isTopLayer","getWindowScrollBarX","getClientRectFromClippingAncestor","clippingAncestor","html","visualViewportBased","getViewportRect","getDocumentRect","getInnerBoundingClientRect","hasFixedPositionAncestor","stopNode","getRectRelativeToOffsetParent","isOffsetParentAnElement","offsets","offsetRect","getTrueOffsetParent","polyfill","currentNode","getContainingBlock","topLayer","clippingAncestors","currentContainingBlockComputedStyle","elementIsFixed","computedStyle","currentNodeIsContaining","ancestor","getClippingElementAncestors","_c","firstClippingAncestor","clippingRect","accRect","getElementRects","getOffsetParentFn","getDimensionsFn","getDimensions","getClientRects","autoUpdate","ancestorScroll","ancestorResize","elementResize","ResizeObserver","layoutShift","IntersectionObserver","animationFrame","referenceEl","ancestors","cleanupIo","onMove","io","cleanup","_io","disconnect","refresh","skip","threshold","rootMargin","isFirstUpdate","handleObserve","ratio","intersectionRatio","observe","observeMove","frameId","reobserveFrame","resizeObserver","firstEntry","unobserve","cancelAnimationFrame","requestAnimationFrame","_resizeObserver","prevRefRect","frameLoop","nextRefRect","_resizeObserver2","_middlewareData$autoP","_middlewareData$autoP2","_placementsThatFitOnE","allowedPlacements","autoAlignment","detectOverflowOptions","placements$1","getPlacementList","currentIndex","autoPlacement","currentPlacement","alignmentSides","reset","currentOverflows","allOverflows","overflows","nextPlacement","placementsSortedByMostSpace","a","b","resetPlacement","every","checkMainAxis","checkCrossAxis","limiter","mainAxisCoord","crossAxisCoord","maxSide","limitedCoords","_middlewareData$flip","initialPlacement","fallbackPlacements","specifiedFallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment","isBasePlacement","oppositePlacement","getExpandedPlacements","isStart","lr","rl","tb","bt","getSideList","getOppositeAxisPlacements","overflowsData","flip","sides","_middlewareData$flip2","_overflowsData$filter","nextIndex","_overflowsData$map$so","arrowDimensions","isYAxis","minProp","maxProp","clientProp","endDiff","startDiff","arrowOffsetParent","clientSize","centerToReference","largestPossiblePadding","minPadding","maxPadding","min$1","shouldAddOffset","centerOffset","mergedOptions","platformWithCache","middleware","validMiddleware","statefulPlacement","resetCount","nextX","nextY","computePosition","useLayoutEffect","deepEqual","toString","hasOwnProperty","call","$$typeof","getDPR","devicePixelRatio","roundByDPR","dpr","useLatestRef","candidateSelectors","candidateSelector","NoElement","prototype","msMatchesSelector","webkitMatchesSelector","_element$getRootNode","isInert","lookUp","_node$getAttribute","inertAtt","getCandidates","includeContainer","candidates","querySelectorAll","unshift","getCandidatesIteratively","elementsToCheck","tagName","assigned","assignedElements","nestedCandidates","flatten","scopeParent","getShadowRoot","validShadowRoot","shadowRootFilter","_nestedCandidates","hasTabIndex","parseInt","getTabIndex","_node$getAttribute2","attValue","isContentEditable","sortOrderedTabbables","documentOrder","isInput","isNonTabbableRadio","isRadio","radioSet","radioScope","form","queryRadios","escape","err","console","message","nodes","getCheckedRadio","isTabbableRadio","isZeroArea","_node$getBoundingClie","isHidden","displayCheck","nodeUnderDetails","parentElement","originalNode","_nodeRoot","_nodeRootHost","_nodeRootHost$ownerDo","nodeRoot","nodeRootHost","attached","_nodeRoot2","_nodeRootHost2","_nodeRootHost2$ownerD","isNodeAttached","isNodeMatchingSelectorFocusable","isHiddenInput","isDetailsWithSummary","isDisabledFromFieldset","isNodeMatchingSelectorTabbable","isValidShadowRootTabbable","shadowHostNode","sortByOrder","regularTabbables","orderedTabbables","isScope","candidateTabindex","getSortOrderTabIndex","sortable","tabbable","refs","useSafeInsertionEffect","useEffectEvent","callback","_len","args","_key","ARROW_UP","ARROW_DOWN","ARROW_LEFT","ARROW_RIGHT","isDifferentRow","cols","prevRow","isIndexOutOfBounds","listRef","getMinIndex","disabledIndices","findNonDisabledIndex","getMaxIndex","decrement","startingIndex","_temp","isDisabledIndex","hasAttribute","getGridNavigatedIndex","elementsRef","loop","minIndex","maxIndex","prevIndex","stop","maxCol","lastRow","buildCellMap","dense","cellMap","startIndex","_ref2","itemPlaced","targetCells","j","getCellIndexOfCorner","corner","firstCellIndex","lastIndexOf","getCellIndices","indices","flatMap","cellIndex","rafId","enqueueFocus","preventScroll","cancelPrevious","sync","sortByDocumentPosition","compareDocumentPosition","DOCUMENT_POSITION_FOLLOWING","DOCUMENT_POSITION_CONTAINED_BY","DOCUMENT_POSITION_PRECEDING","DOCUMENT_POSITION_CONTAINS","FloatingListContext","register","unregister","FloatingList","labelsRef","setMap","prevMap","delete","newMap","map1","map2","areMapsEqual","useListItem","index$1","setIndex","componentRef","_node$textContent","isLabelDefined","textContent","horizontalKeys","verticalKeys","_extends","serverHandoffComplete","genId","useId","id","setId","createPubSub","emit","_map$get","handler","listener","_map$get2","l","FloatingNodeContext","FloatingTreeContext","useFloatingParentNodeId","_React$useContext","useFloatingTree","createAttribute","safePolygonIdentifier","getDelay","prop","useHover","onOpenChange","dataRef","events","domReference","enabled","handleClose","mouseOnly","restMs","move","tree","parentId","handleCloseRef","delayRef","pointerTypeRef","timeoutRef","handlerRef","restTimeoutRef","blockMouseMoveRef","performedPointerEventsMutationRef","unbindMouseMoveRef","isHoverOpen","_dataRef$current$open","openEvent","onLeave","closeWithDelay","runElseBranch","reason","closeDelay","cleanupMouseMoveHandler","clearPointerEvents","pointerEvents","removeAttribute","onScrollMouseLeave","onMouseEnter","once","onMouseLeave","isClickLikeOpenEvent","openDelay","onClose","relatedTarget","_handleCloseRef$curre","__options","blockPointerEvents","setAttribute","_tree$nodesRef$curren","parentFloating","nodesRef","setPointerRef","onPointerDown","onPointerEnter","nativeEvent","getChildren","allChildren","_node$context","currentChildren","_currentChildren","n","_node$context2","counterMap","WeakMap","uncontrolledElementsSet","WeakSet","markerMap","lockCount","unwrapHost","applyAttributeToOthers","uncorrectedAvoidElements","ariaHidden","inert","markerName","controlAttribute","avoidElements","correctedTarget","elementsToKeep","elementsToStop","hiddenElements","markerCounter","keep","deep","attr","alreadyHidden","counterValue","markerValue","markOthers","getTabbableOptions","getTabbableIn","allTabbable","activeIndex","getNextTabbable","getPreviousTabbable","isOutsideEvent","containerElement","currentTarget","disableFocusInside","dataset","tabindex","enableFocusInside","HIDDEN_STYLES","clip","whiteSpace","setActiveElementOnTab","FocusGuard","setRole","restProps","PortalContext","FloatingPortal","preserveTabOrder","portalNode","setPortalNode","uniqueId","portalContext","usePortalContext","portalNodeRef","queueMicrotask","existingIdRoot","getElementById","subRoot","appendChild","idWrapper","useFloatingPortalNode","focusManagerState","setFocusManagerState","beforeOutsideRef","afterOutsideRef","beforeInsideRef","afterInsideRef","shouldRenderGuards","_beforeInsideRef$curr","prevTabbable","createPortal","_afterInsideRef$curre","nextTabbable","closeOnFocusOut","previouslyFocusedElements","addPreviouslyFocusedElement","isConnected","tabbableEl","isTabbable","tabbableChild","getPreviouslyFocusedElement","VisuallyHiddenDismiss","guards","_guards","initialFocus","returnFocus","visuallyHiddenDismiss","nodeId","ignoreInitialFocus","isUntrappedTypeableCombobox","orderRef","initialFocusRef","returnFocusRef","startDismissButtonRef","endDismissButtonRef","preventReturnFocusRef","isPointerDownRef","isInsidePortal","getTabbableContent","getTabbableElements","flat","renderDismissButton","location","onKeyDown","els","shiftKey","handleFocusOutside","handlePointerDown","movedToUnrelatedNode","_nodes$find","allAncestors","currentParentId","getAncestors","_node$context3","_node$context4","_portalContext$portal","portalNodes","insideElements","previouslyFocusedElement","focusableElements","initialFocusValue","elToFocus","focusAlreadyInsideFloatingEl","preventReturnFocusScroll","contextData","activeEl","isFocusInsideFloatingTree","_node$context5","returnElement","MutationObserver","handleMutation","observer","childList","subtree","attributes","_portalContext$before","_portalContext$afterO","activeLocks","FloatingOverlay","lockScroll","rest","lockId","isIOS","bodyStyle","paddingProp","scrollbarWidth","innerWidth","scrollX","scrollY","_window$visualViewpor","_window$visualViewpor2","scrollTo","isButtonTarget","isSpaceIgnored","useClick","eventOption","ignoreMouse","keyboardHandlers","didKeyDownRef","defaultPrevented","onKeyUp","bubbleHandlerKeys","pointerdown","mousedown","click","captureHandlerKeys","normalizeProp","normalizable","_normalizable$escapeK","_normalizable$outside","escapeKey","outsidePress","useDismiss","unstable_outsidePress","outsidePressEvent","referencePress","referencePressEvent","bubbles","capture","outsidePressFn","insideReactTreeRef","endedOrStartedInsideRef","escapeKeyBubbles","outsidePressBubbles","escapeKeyCapture","outsidePressCapture","closeOnEscapeKeyDown","shouldDismiss","_child$context","__escapeKeyBubbles","isReactEvent","closeOnEscapeKeyDownCapture","_getTarget2","_getTarget","closeOnPressOutside","insideReactTree","endedOrStartedInside","inertSelector","markers","targetRootAncestor","nextParent","canScrollX","canScrollY","xCond","offsetX","offsetY","targetIsInsideChildren","_child$context2","__outsidePressBubbles","closeOnPressOutsideCapture","_getTarget4","_getTarget3","_doc$defaultView","_options$elements2","unstable_onOpenChange","_domReference","setDomReference","externalReference","externalFloating","whileElementsMounted","setData","isPositioned","latestMiddleware","setLatestMiddleware","_reference","_setReference","_floating","_setFloating","setReference","referenceRef","setFloating","floatingRef","floatingEl","hasWhileElementsMounted","whileElementsMountedRef","platformRef","then","fullData","isMountedRef","floatingStyles","initialStyles","useFloating","domReferenceRef","floatingId","setPositionReference","positionReference","ACTIVE_KEY","SELECTED_KEY","mergeProps","userProps","propsList","elementKey","isItem","domUserProps","_","__","validProps","propsOrGetProps","val","useInteractions","deps","getReferenceProps","getFloatingProps","getItemProps","isPreventScrollSupported","doSwitch","isMainOrientationKey","isMainOrientationToEndKey","isCrossOrientationCloseKey","useListNavigation","onNavigate","unstable_onNavigate","selectedIndex","allowEscape","virtual","focusItemOnOpen","focusItemOnHover","openOnArrowKeyDown","scrollItemIntoView","virtualItemRef","itemSizes","focusItemOnOpenRef","indexRef","keyRef","isPointerModalityRef","previousOnNavigateRef","previousMountedRef","forceSyncFocus","forceScrollIntoViewRef","disabledIndicesRef","latestOpenRef","scrollItemIntoViewRef","activeId","setActiveId","virtualId","setVirtualId","focusItem","forceScrollIntoView","scrollIntoViewOptions","scrollIntoView","block","runs","waitForListPopulated","treeContainsActiveEl","handleVirtualFocus","hasActiveIndex","syncCurrentTarget","_ref3","onPointerLeave","_ref4","minGridIndex","findIndex","maxGridIndex","foundIndex","itemIndex","checkVirtualMouse","ariaActiveDescendantProp","activeItem","isArrowKey","isCrossOpenKey","isCrossOrientationOpenKey","isCrossCloseKey","isMainKey","isNavigationKey","deepestNode","deepestNodeId","maxDepth","findDeepest","depth","getDeepestNode","eventObject","KeyboardEvent","_deepestNode$context","_deepestNode$context2","isCurrentTarget","dispatchItem","_deepestNode$context$","onPointerMove","componentRoleToAriaRoleMap","useRole","_componentRoleToAriaR","ariaRole","referenceId","isNested","floatingProps","commonProps","isPointInPolygon","polygon","isInside","xi","yi","xj","yj","safePolygon","buffer","requireIntent","hasLanded","lastX","lastY","lastCursorTime","performance","clientPoint","isLeave","isOverFloatingEl","isOverReferenceEl","refRect","cursorLeaveFromRight","cursorLeaveFromBottom","isOverReferenceRect","isFloatingWider","isFloatingTaller","rectPoly","cursorSpeed","currentTime","elapsedTime","deltaX","deltaY","distance","sqrt","getCursorSpeed","cursorPointOne","cursorPointTwo","getPolygon","getMiddleware","arrowRef","getPlacement","trigger","interactions","DropdownContext","useDropdownContext","DropdownDivider","DropdownHeader","DropdownItem","forwardedRef","listItemRef","dismissOnClick","handleSelect","isActive","icons","Trigger","setButtonWidth","renderTrigger","buttonProps","a11yProps","triggerElement","DropdownComponent","setActiveIndex","setSelectedIndex","buttonWidth","dataTestId","useCallback","handleTypeaheadMatch","listNav","typeahead","onMatch","unstable_onMatch","onTypingChange","unstable_onTypingChange","findMatch","resetMs","ignoreKeys","timeoutIdRef","stringRef","prevIndexRef","matchIndexRef","findMatchRef","ignoreKeysRef","setTypingChange","typing","getMatchingIndex","orderedList","str","toLocaleLowerCase","listContent","ctrlKey","metaKey","altKey","_text$","_text$2","useTypeahead","minWidth","Header","Divider","FileInput","FloatingLabel","variant","randomId","htmlFor","FooterBrand","FooterCopyright","by","FooterDivider","FooterIcon","ariaLabel","FooterLink","FooterLinkGroup","FooterTitle","FooterComponent","Copyright","Link","LinkGroup","Brand","ListItem","ListComponent","ListGroupItem","ListGroupComponent","ModalContext","useModalContext","ModalBody","ModalFooter","ModalHeader","innerHeaderId","headerId","setHeaderId","ModalComponent","dismissible","theirRef","dismiss","Body","Footer","NavbarContext","useNavbarContext","NavbarBrand","NavbarCollapse","NavbarLink","NavbarToggle","barIcon","BarIcon","NavbarComponent","menuOpen","Collapse","Toggle","PaginationButton","PaginationNavigation","PaginationComponent","currentPage","nextLabel","onPageChange","previousLabel","renderPaginationButton","props2","showIcons","totalPages","lastPage","firstPage","page","Radio","RangeSlider","RatingAdvanced","percentFilled","RatingContext","RatingStar","starIcon","useRatingContext","RatingComponent","Star","Advanced","Select","Floating","floatingProperties","arrowX","arrowY","visibleOnly","blockFocusRef","keyboardModalityRef","onBlur","movedToFocusGuard","useFocus","Tooltip","SidebarContext","useSidebarContext","SidebarItemContext","SidebarCollapse","chevronIcon","ChevronIcon","renderChevronIcon","isCollapsed","Wrapper","children2","isInsideCollapse","SidebarCTA","tooltipChildren","wrapperChildren","SidebarItem","labelColor","useSidebarItemContext","charAt","toLocaleUpperCase","SidebarItemGroup","SidebarItems","SidebarLogo","imgAlt","SidebarComponent","collapseBehavior","CTA","Items","ItemGroup","Logo","TableBodyContext","TableContext","useTableContext","TableBody","TableCell","bodyTheme","useTableBodyContext","TableHeadContext","TableHead","TableHeadCell","headTheme","useTableHeadContext","TableRow","hoverable","TableComponent","Head","Row","Cell","HeadCell","TabItem","TabsComponent","onActiveTabChange","toArray","tabRefs","activeTab","setActiveTab","tab","focusedTab","setFocusedTab","setActiveTabWithCallback","activeTab2","tabItemStyle","tabItemContainerStyle","handleClick","handleKeyboard","zIndex","Textarea","TimelineContentContext","useTimelineContentContext","TimelineBody","contentTheme","TimelineContext","useTimelineContext","TimelineItemContext","useTimelineItemContext","TimelineContent","itemTheme","TimelineItem","TimelinePoint","TimelineTime","TimelineTitle","Tag","TimelineComponent","Point","Time","ToastContext","ToastToggle","xIcon","XIcon","onDismiss","isClosed","isRemoved","setIsClosed","setIsRemoved","useToastContext","durationClasses","ToastComponent","ToggleSwitch","code","IndexPage","React","hasOwn","classNames","classes","arg","appendClass","parseValue","newClass","DefaultContext","IconContext","_excluded","_objectWithoutProperties","excluded","sourceKeys","_objectWithoutPropertiesLoose","getOwnPropertySymbols","sourceSymbolKeys","propertyIsEnumerable","ownKeys","r","t","o","getOwnPropertyDescriptor","_objectSpread","_defineProperty","getOwnPropertyDescriptors","defineProperties","hint","prim","toPrimitive","res","String","_toPrimitive","_toPropertyKey","Tree2Element","tag","GenIcon","IconBase","elem","conf","svgProps","computedSize","strokeWidth","Consumer"],"sourceRoot":""}