@lotte-innovate/ui-component-test 0.1.74 → 0.1.75
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.mjs.js +2 -0
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.mjs.js.map +1 -0
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs.js +2 -0
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs.js.map +1 -0
- package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs.js +2 -0
- package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs.js.map +1 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs.js +2 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs.js.map +1 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs.js +2 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs.js.map +1 -0
- package/dist/node_modules/@kurkle/color/dist/color.esm.js +8 -0
- package/dist/node_modules/@kurkle/color/dist/color.esm.js.map +1 -0
- package/dist/node_modules/@radix-ui/number/dist/index.mjs.js +2 -0
- package/dist/node_modules/@radix-ui/number/dist/index.mjs.js.map +1 -0
- package/dist/node_modules/@radix-ui/primitive/dist/index.mjs.js +2 -0
- package/dist/node_modules/@radix-ui/primitive/dist/index.mjs.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-accordion/dist/index.mjs.js +2 -0
- package/dist/node_modules/@radix-ui/react-accordion/dist/index.mjs.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-alert-dialog/dist/index.mjs.js +2 -0
- package/dist/node_modules/@radix-ui/react-alert-dialog/dist/index.mjs.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-arrow/dist/index.mjs.js +2 -0
- package/dist/node_modules/@radix-ui/react-arrow/dist/index.mjs.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-aspect-ratio/dist/index.mjs.js +2 -0
- package/dist/node_modules/@radix-ui/react-aspect-ratio/dist/index.mjs.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-avatar/dist/index.mjs.js +2 -0
- package/dist/node_modules/@radix-ui/react-avatar/dist/index.mjs.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-checkbox/dist/index.mjs.js +2 -0
- package/dist/node_modules/@radix-ui/react-checkbox/dist/index.mjs.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-collapsible/dist/index.mjs.js +2 -0
- package/dist/node_modules/@radix-ui/react-collapsible/dist/index.mjs.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-collection/dist/index.mjs.js +2 -0
- package/dist/node_modules/@radix-ui/react-collection/dist/index.mjs.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.mjs.js +2 -0
- package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.mjs.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-context/dist/index.mjs.js +2 -0
- package/dist/node_modules/@radix-ui/react-context/dist/index.mjs.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-context-menu/dist/index.mjs.js +2 -0
- package/dist/node_modules/@radix-ui/react-context-menu/dist/index.mjs.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-dialog/dist/index.mjs.js +2 -0
- package/dist/node_modules/@radix-ui/react-dialog/dist/index.mjs.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-direction/dist/index.mjs.js +2 -0
- package/dist/node_modules/@radix-ui/react-direction/dist/index.mjs.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs.js +2 -0
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.mjs.js +2 -0
- package/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.mjs.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.mjs.js +2 -0
- package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.mjs.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.mjs.js +2 -0
- package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.mjs.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-hover-card/dist/index.mjs.js +2 -0
- package/dist/node_modules/@radix-ui/react-hover-card/dist/index.mjs.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-icons/dist/react-icons.esm.js +2 -0
- package/dist/node_modules/@radix-ui/react-icons/dist/react-icons.esm.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-id/dist/index.mjs.js +2 -0
- package/dist/node_modules/@radix-ui/react-id/dist/index.mjs.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-label/dist/index.mjs.js +2 -0
- package/dist/node_modules/@radix-ui/react-label/dist/index.mjs.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-menu/dist/index.mjs.js +2 -0
- package/dist/node_modules/@radix-ui/react-menu/dist/index.mjs.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-menubar/dist/index.mjs.js +2 -0
- package/dist/node_modules/@radix-ui/react-menubar/dist/index.mjs.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-navigation-menu/dist/index.mjs.js +2 -0
- package/dist/node_modules/@radix-ui/react-navigation-menu/dist/index.mjs.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-popper/dist/index.mjs.js +2 -0
- package/dist/node_modules/@radix-ui/react-popper/dist/index.mjs.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-portal/dist/index.mjs.js +2 -0
- package/dist/node_modules/@radix-ui/react-portal/dist/index.mjs.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-presence/dist/index.mjs.js +2 -0
- package/dist/node_modules/@radix-ui/react-presence/dist/index.mjs.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.mjs.js +2 -0
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.mjs.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-progress/dist/index.mjs.js +2 -0
- package/dist/node_modules/@radix-ui/react-progress/dist/index.mjs.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-radio-group/dist/index.mjs.js +2 -0
- package/dist/node_modules/@radix-ui/react-radio-group/dist/index.mjs.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.mjs.js +2 -0
- package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.mjs.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-scroll-area/dist/index.mjs.js +2 -0
- package/dist/node_modules/@radix-ui/react-scroll-area/dist/index.mjs.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-select/dist/index.mjs.js +2 -0
- package/dist/node_modules/@radix-ui/react-select/dist/index.mjs.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-slider/dist/index.mjs.js +2 -0
- package/dist/node_modules/@radix-ui/react-slider/dist/index.mjs.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-slot/dist/index.mjs.js +2 -0
- package/dist/node_modules/@radix-ui/react-slot/dist/index.mjs.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-switch/dist/index.mjs.js +2 -0
- package/dist/node_modules/@radix-ui/react-switch/dist/index.mjs.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-tabs/dist/index.mjs.js +2 -0
- package/dist/node_modules/@radix-ui/react-tabs/dist/index.mjs.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-toast/dist/index.mjs.js +2 -0
- package/dist/node_modules/@radix-ui/react-toast/dist/index.mjs.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-toggle/dist/index.mjs.js +2 -0
- package/dist/node_modules/@radix-ui/react-toggle/dist/index.mjs.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-toggle-group/dist/index.mjs.js +2 -0
- package/dist/node_modules/@radix-ui/react-toggle-group/dist/index.mjs.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-tooltip/dist/index.mjs.js +2 -0
- package/dist/node_modules/@radix-ui/react-tooltip/dist/index.mjs.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs.js +2 -0
- package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs.js +2 -0
- package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs.js +2 -0
- package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs.js +2 -0
- package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-use-previous/dist/index.mjs.js +2 -0
- package/dist/node_modules/@radix-ui/react-use-previous/dist/index.mjs.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-use-size/dist/index.mjs.js +2 -0
- package/dist/node_modules/@radix-ui/react-use-size/dist/index.mjs.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.mjs.js +2 -0
- package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.mjs.js.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/base-checkbox.props.js +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/base-checkbox.props.js.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/base-radio.props.js +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/base-radio.props.js.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/base-tab-list.props.js +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/base-tab-list.props.js.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/callout.js +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/callout.js.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/callout.props.js +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/callout.props.js.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/checkbox-group.js +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/checkbox-group.js.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/checkbox-group.primitive.js +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/checkbox-group.primitive.js.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/checkbox-group.props.js +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/checkbox-group.props.js.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/data-list.js +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/data-list.js.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/data-list.props.js +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/data-list.props.js.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/dialog.js +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/dialog.js.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/dialog.props.js +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/dialog.props.js.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/flex.js +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/flex.js.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/flex.props.js +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/flex.props.js.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/grid.js +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/grid.js.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/grid.props.js +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/grid.props.js.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/heading.js +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/heading.js.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/heading.props.js +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/heading.props.js.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/hover-card.js +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/hover-card.js.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/hover-card.props.js +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/hover-card.props.js.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/icons.js +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/icons.js.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/inset.js +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/inset.js.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/inset.props.js +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/inset.props.js.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/popover.js +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/popover.js.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/popover.props.js +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/popover.props.js.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/progress.js +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/progress.js.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/progress.props.js +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/progress.props.js.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio-cards.js +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio-cards.js.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio-cards.props.js +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio-cards.props.js.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio-group.js +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio-group.js.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio-group.props.js +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio-group.props.js.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio.js +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio.js.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/scroll-area.js +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/scroll-area.js.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/scroll-area.props.js +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/scroll-area.props.js.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/segmented-control.js +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/segmented-control.js.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/segmented-control.props.js +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/segmented-control.props.js.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/select.js +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/select.js.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/select.props.js +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/select.props.js.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/separator.js +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/separator.js.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/separator.props.js +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/separator.props.js.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/skeleton.js +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/skeleton.js.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/skeleton.props.js +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/skeleton.props.js.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/slider.js +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/slider.js.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/slider.props.js +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/slider.props.js.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/spinner.js +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/spinner.js.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/spinner.props.js +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/spinner.props.js.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/switch.js +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/switch.js.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/switch.props.js +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/switch.props.js.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/tab-nav.js +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/tab-nav.js.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/table.js +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/table.js.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/table.props.js +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/table.props.js.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/tabs.js +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/tabs.js.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/text-area.js +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/text-area.js.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/text-area.props.js +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/text-area.props.js.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/text-field.js +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/text-field.js.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/text-field.props.js +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/text-field.props.js.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/text.js +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/text.js.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/text.props.js +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/text.props.js.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/theme.js +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/theme.js.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/theme.props.js +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/theme.props.js.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/extract-margin-props.js +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/extract-margin-props.js.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/extract-props.js +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/extract-props.js.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/get-margin-styles.js +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/get-margin-styles.js.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/get-matching-gray-color.js +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/get-matching-gray-color.js.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/get-responsive-styles.js +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/get-responsive-styles.js.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/get-subtree.js +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/get-subtree.js.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/has-own-property.js +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/has-own-property.js.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/inert.js +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/inert.js.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/is-responsive-object.js +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/is-responsive-object.js.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/map-prop-values.js +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/map-prop-values.js.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/merge-styles.js +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/merge-styles.js.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/require-react-element.js +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/require-react-element.js.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/as-child.prop.js +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/as-child.prop.js.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/color.prop.js +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/color.prop.js.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/gap.props.js +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/gap.props.js.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/height.props.js +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/height.props.js.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/high-contrast.prop.js +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/high-contrast.prop.js.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/layout.props.js +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/layout.props.js.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/leading-trim.prop.js +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/leading-trim.prop.js.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/margin.props.js +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/margin.props.js.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/padding.props.js +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/padding.props.js.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/prop-def.js +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/prop-def.js.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/radius.prop.js +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/radius.prop.js.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/text-align.prop.js +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/text-align.prop.js.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/text-wrap.prop.js +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/text-wrap.prop.js.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/truncate.prop.js +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/truncate.prop.js.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/weight.prop.js +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/weight.prop.js.map +1 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/width.props.js +2 -0
- package/dist/node_modules/@radix-ui/themes/dist/esm/props/width.props.js.map +1 -0
- package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-popover/dist/index.mjs.js +2 -0
- package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-popover/dist/index.mjs.js.map +1 -0
- package/dist/node_modules/aria-hidden/dist/es2015/index.js +2 -0
- package/dist/node_modules/aria-hidden/dist/es2015/index.js.map +1 -0
- package/dist/node_modules/chart.js/auto/auto.js +2 -0
- package/dist/node_modules/chart.js/auto/auto.js.map +1 -0
- package/dist/node_modules/chart.js/dist/chart.js +8 -0
- package/dist/node_modules/chart.js/dist/chart.js.map +1 -0
- package/dist/node_modules/chart.js/dist/chunks/helpers.segment.js +8 -0
- package/dist/node_modules/chart.js/dist/chunks/helpers.segment.js.map +1 -0
- package/dist/node_modules/chartjs-plugin-datalabels/dist/chartjs-plugin-datalabels.esm.js +8 -0
- package/dist/node_modules/chartjs-plugin-datalabels/dist/chartjs-plugin-datalabels.esm.js.map +1 -0
- package/dist/node_modules/class-variance-authority/dist/index.mjs.js +2 -0
- package/dist/node_modules/class-variance-authority/dist/index.mjs.js.map +1 -0
- package/dist/node_modules/class-variance-authority/node_modules/clsx/dist/clsx.mjs.js +2 -0
- package/dist/node_modules/class-variance-authority/node_modules/clsx/dist/clsx.mjs.js.map +1 -0
- package/dist/node_modules/classnames/index.js +7 -0
- package/dist/node_modules/classnames/index.js.map +1 -0
- package/dist/node_modules/clsx/dist/clsx.mjs.js +2 -0
- package/dist/node_modules/clsx/dist/clsx.mjs.js.map +1 -0
- package/dist/node_modules/get-nonce/dist/es2015/index.js +2 -0
- package/dist/node_modules/get-nonce/dist/es2015/index.js.map +1 -0
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.js +11 -0
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.js.map +1 -0
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.js +11 -0
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.js.map +1 -0
- package/dist/node_modules/react/jsx-runtime.js +2 -0
- package/dist/node_modules/react/jsx-runtime.js.map +1 -0
- package/dist/node_modules/react-chartjs-2/dist/index.js +2 -0
- package/dist/node_modules/react-chartjs-2/dist/index.js.map +1 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js +2 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js.map +1 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +2 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js.map +1 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js +2 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js.map +1 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +2 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js.map +1 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +2 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js.map +1 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js +2 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js.map +1 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js +2 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js.map +1 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js +2 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js.map +1 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +2 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js.map +1 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +2 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js.map +1 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/component.js +2 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/component.js.map +1 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/hook.js +2 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/hook.js.map +1 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js +2 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js.map +1 -0
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.mjs.js +2 -0
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.mjs.js.map +1 -0
- package/dist/node_modules/tslib/tslib.es6.js +2 -0
- package/dist/node_modules/tslib/tslib.es6.js.map +1 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js +2 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js.map +1 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +2 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js.map +1 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js +2 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js.map +1 -0
- package/dist/node_modules/use-sidecar/dist/es2015/exports.js +2 -0
- package/dist/node_modules/use-sidecar/dist/es2015/exports.js.map +1 -0
- package/dist/node_modules/use-sidecar/dist/es2015/medium.js +2 -0
- package/dist/node_modules/use-sidecar/dist/es2015/medium.js.map +1 -0
- package/package.json +1 -1
@@ -0,0 +1,2 @@
|
|
1
|
+
import{evaluate as e,getSide as t,getOppositePlacement as n,getExpandedPlacements as i,getOppositeAxisPlacements as a,getAlignmentSides as o,getAlignment as r,getSideAxis as l,clamp as s,min as c,max as f,getPaddingObject as m,rectToClientRect as d,getAlignmentAxis as u,sides as g,getOppositeAxis as p,getAxisLength as y}from"../../utils/dist/floating-ui.utils.mjs.js";export{rectToClientRect}from"../../utils/dist/floating-ui.utils.mjs.js";function x(e,n,i){let{reference:a,floating:o}=e;const s=l(n),c=u(n),f=y(c),m=t(n),d="y"===s,g=a.x+a.width/2-o.width/2,p=a.y+a.height/2-o.height/2,x=a[f]/2-o[f]/2;let w;switch(m){case"top":w={x:g,y:a.y-o.height};break;case"bottom":w={x:g,y:a.y+a.height};break;case"right":w={x:a.x+a.width,y:p};break;case"left":w={x:a.x-o.width,y:p};break;default:w={x:a.x,y:a.y}}switch(r(n)){case"start":w[c]-=x*(i&&d?-1:1);break;case"end":w[c]+=x*(i&&d?-1:1)}return w}const w=async(e,t,n)=>{const{placement:i="bottom",strategy:a="absolute",middleware:o=[],platform:r}=n,l=o.filter(Boolean),s=await(null==r.isRTL?void 0:r.isRTL(t));let c=await r.getElementRects({reference:e,floating:t,strategy:a}),{x:f,y:m}=x(c,i,s),d=i,u={},g=0;for(let n=0;n<l.length;n++){const{name:o,fn:p}=l[n],{x:y,y:w,data:h,reset:v}=await p({x:f,y:m,initialPlacement:i,placement:d,strategy:a,middlewareData:u,rects:c,platform:r,elements:{reference:e,floating:t}});f=null!=y?y:f,m=null!=w?w:m,u={...u,[o]:{...u[o],...h}},v&&g<=50&&(g++,"object"==typeof v&&(v.placement&&(d=v.placement),v.rects&&(c=!0===v.rects?await r.getElementRects({reference:e,floating:t,strategy:a}):v.rects),({x:f,y:m}=x(c,d,s))),n=-1)}return{x:f,y:m,placement:d,strategy:a,middlewareData:u}};async function h(t,n){var i;void 0===n&&(n={});const{x:a,y:o,platform:r,rects:l,elements:s,strategy:c}=t,{boundary:f="clippingAncestors",rootBoundary:u="viewport",elementContext:g="floating",altBoundary:p=!1,padding:y=0}=e(n,t),x=m(y),w=s[p?"floating"===g?"reference":"floating":g],h=d(await r.getClippingRect({element:null==(i=await(null==r.isElement?void 0:r.isElement(w)))||i?w:w.contextElement||await(null==r.getDocumentElement?void 0:r.getDocumentElement(s.floating)),boundary:f,rootBoundary:u,strategy:c})),v="floating"===g?{...l.floating,x:a,y:o}:l.reference,b=await(null==r.getOffsetParent?void 0:r.getOffsetParent(s.floating)),A=await(null==r.isElement?void 0:r.isElement(b))&&await(null==r.getScale?void 0:r.getScale(b))||{x:1,y:1},R=d(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:b,strategy:c}):v);return{top:(h.top-R.top+x.top)/A.y,bottom:(R.bottom-h.bottom+x.bottom)/A.y,left:(h.left-R.left+x.left)/A.x,right:(R.right-h.right+x.right)/A.x}}const v=t=>({name:"arrow",options:t,async fn(n){const{x:i,y:a,placement:o,rects:l,platform:f,elements:d,middlewareData:g}=n,{element:p,padding:x=0}=e(t,n)||{};if(null==p)return{};const w=m(x),h={x:i,y:a},v=u(o),b=y(v),A=await f.getDimensions(p),R="y"===v,D=R?"top":"left",O=R?"bottom":"right",E=R?"clientHeight":"clientWidth",P=l.reference[b]+l.reference[v]-h[v]-l.floating[b],T=h[v]-l.reference[v],k=await(null==f.getOffsetParent?void 0:f.getOffsetParent(p));let L=k?k[E]:0;L&&await(null==f.isElement?void 0:f.isElement(k))||(L=d.floating[E]||l.floating[b]);const H=P/2-T/2,j=L/2-A[b]/2-1,B=c(w[D],j),C=c(w[O],j),S=B,F=L-A[b]-C,V=L/2-A[b]/2+H,W=s(S,V,F),z=!g.arrow&&null!=r(o)&&V!==W&&l.reference[b]/2-(V<S?B:C)-A[b]/2<0,q=z?V<S?V-S:V-F:0;return{[v]:h[v]+q,data:{[v]:W,centerOffset:V-W-q,...z&&{alignmentOffset:q}},reset:z}}}),b=function(r){return void 0===r&&(r={}),{name:"flip",options:r,async fn(l){var s,c;const{placement:f,middlewareData:m,rects:d,initialPlacement:u,platform:g,elements:p}=l,{mainAxis:y=!0,crossAxis:x=!0,fallbackPlacements:w,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:A=!0,...R}=e(r,l);if(null!=(s=m.arrow)&&s.alignmentOffset)return{};const D=t(f),O=t(u)===u,E=await(null==g.isRTL?void 0:g.isRTL(p.floating)),P=w||(O||!A?[n(u)]:i(u));w||"none"===b||P.push(...a(u,A,b,E));const T=[u,...P],k=await h(l,R),L=[];let H=(null==(c=m.flip)?void 0:c.overflows)||[];if(y&&L.push(k[D]),x){const e=o(f,d,E);L.push(k[e[0]],k[e[1]])}if(H=[...H,{placement:f,overflows:L}],!L.every((e=>e<=0))){var j,B;const e=((null==(j=m.flip)?void 0:j.index)||0)+1,t=T[e];if(t)return{data:{index:e,overflows:H},reset:{placement:t}};let n=null==(B=H.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:B.placement;if(!n)switch(v){case"bestFit":{var C;const e=null==(C=H.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:C[0];e&&(n=e);break}case"initialPlacement":n=u}if(f!==n)return{reset:{placement:n}}}return{}}}};function A(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function R(e){return g.some((t=>e[t]>=0))}const D=function(t){return void 0===t&&(t={}),{name:"hide",options:t,async fn(n){const{rects:i}=n,{strategy:a="referenceHidden",...o}=e(t,n);switch(a){case"referenceHidden":{const e=A(await h(n,{...o,elementContext:"reference"}),i.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:R(e)}}}case"escaped":{const e=A(await h(n,{...o,altBoundary:!0}),i.floating);return{data:{escapedOffsets:e,escaped:R(e)}}}default:return{}}}}};const O=function(n){return void 0===n&&(n=0),{name:"offset",options:n,async fn(i){var a,o;const{x:s,y:c,placement:f,middlewareData:m}=i,d=await async function(n,i){const{placement:a,platform:o,elements:s}=n,c=await(null==o.isRTL?void 0:o.isRTL(s.floating)),f=t(a),m=r(a),d="y"===l(a),u=["left","top"].includes(f)?-1:1,g=c&&d?-1:1,p=e(i,n);let{mainAxis:y,crossAxis:x,alignmentAxis:w}="number"==typeof p?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...p};return m&&"number"==typeof w&&(x="end"===m?-1*w:w),d?{x:x*g,y:y*u}:{x:y*u,y:x*g}}(i,n);return f===(null==(a=m.offset)?void 0:a.placement)&&null!=(o=m.arrow)&&o.alignmentOffset?{}:{x:s+d.x,y:c+d.y,data:{...d,placement:f}}}}},E=function(n){return void 0===n&&(n={}),{name:"shift",options:n,async fn(i){const{x:a,y:o,placement:r}=i,{mainAxis:c=!0,crossAxis:f=!1,limiter:m={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...d}=e(n,i),u={x:a,y:o},g=await h(i,d),y=l(t(r)),x=p(y);let w=u[x],v=u[y];if(c){const e="y"===x?"bottom":"right",t=w+g["y"===x?"top":"left"],n=w-g[e];w=s(t,w,n)}if(f){const e="y"===y?"bottom":"right",t=v+g["y"===y?"top":"left"],n=v-g[e];v=s(t,v,n)}const b=m.fn({...i,[x]:w,[y]:v});return{...b,data:{x:b.x-a,y:b.y-o}}}}},P=function(n){return void 0===n&&(n={}),{options:n,fn(i){const{x:a,y:o,placement:r,rects:s,middlewareData:c}=i,{offset:f=0,mainAxis:m=!0,crossAxis:d=!0}=e(n,i),u={x:a,y:o},g=l(r),y=p(g);let x=u[y],w=u[g];const h=e(f,i),v="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(m){const e="y"===y?"height":"width",t=s.reference[y]-s.floating[e]+v.mainAxis,n=s.reference[y]+s.reference[e]-v.mainAxis;x<t?x=t:x>n&&(x=n)}if(d){var b,A;const e="y"===y?"width":"height",n=["top","left"].includes(t(r)),i=s.reference[g]-s.floating[e]+(n&&(null==(b=c.offset)?void 0:b[g])||0)+(n?0:v.crossAxis),a=s.reference[g]+s.reference[e]+(n?0:(null==(A=c.offset)?void 0:A[g])||0)-(n?v.crossAxis:0);w<i?w=i:w>a&&(w=a)}return{[y]:x,[g]:w}}}},T=function(n){return void 0===n&&(n={}),{name:"size",options:n,async fn(i){const{placement:a,rects:o,platform:s,elements:m}=i,{apply:d=(()=>{}),...u}=e(n,i),g=await h(i,u),p=t(a),y=r(a),x="y"===l(a),{width:w,height:v}=o.floating;let b,A;"top"===p||"bottom"===p?(b=p,A=y===(await(null==s.isRTL?void 0:s.isRTL(m.floating))?"start":"end")?"left":"right"):(A=p,b="end"===y?"top":"bottom");const R=v-g[b],D=w-g[A],O=!i.middlewareData.shift;let E=R,P=D;if(x){const e=w-g.left-g.right;P=y||O?c(D,e):e}else{const e=v-g.top-g.bottom;E=y||O?c(R,e):e}if(O&&!y){const e=f(g.left,0),t=f(g.right,0),n=f(g.top,0),i=f(g.bottom,0);x?P=w-2*(0!==e||0!==t?e+t:f(g.left,g.right)):E=v-2*(0!==n||0!==i?n+i:f(g.top,g.bottom))}await d({...i,availableWidth:P,availableHeight:E});const T=await s.getDimensions(m.floating);return w!==T.width||v!==T.height?{reset:{rects:!0}}:{}}}};export{v as arrow,w as computePosition,h as detectOverflow,b as flip,D as hide,P as limitShift,O as offset,E as shift,T as size};
|
2
|
+
//# sourceMappingURL=floating-ui.core.mjs.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"floating-ui.core.mjs.js","sources":["../../../../../node_modules/@floating-ui/core/dist/floating-ui.core.mjs"],"sourcesContent":["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"],"names":["computeCoordsFromPlacement","_ref","placement","rtl","reference","floating","sideAxis","getSideAxis","alignmentAxis","getAlignmentAxis","alignLength","getAxisLength","side","getSide","isVertical","commonX","x","width","commonY","y","height","commonAlign","coords","getAlignment","computePosition","async","config","strategy","middleware","platform","validMiddleware","filter","Boolean","isRTL","rects","getElementRects","statefulPlacement","middlewareData","resetCount","i","length","name","fn","nextX","nextY","data","reset","initialPlacement","elements","detectOverflow","state","options","_await$platform$isEle","boundary","rootBoundary","elementContext","altBoundary","padding","evaluate","paddingObject","getPaddingObject","element","clippingClientRect","rectToClientRect","getClippingRect","isElement","contextElement","getDocumentElement","rect","offsetParent","getOffsetParent","offsetScale","getScale","elementClientRect","convertOffsetParentRelativeRectToViewportRelativeRect","top","bottom","left","right","arrow","axis","arrowDimensions","getDimensions","isYAxis","minProp","maxProp","clientProp","endDiff","startDiff","arrowOffsetParent","clientSize","centerToReference","largestPossiblePadding","minPadding","min","maxPadding","min$1","max","center","offset","clamp","shouldAddOffset","alignmentOffset","centerOffset","flip","_middlewareData$arrow","_middlewareData$flip","mainAxis","checkMainAxis","crossAxis","checkCrossAxis","fallbackPlacements","specifiedFallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment","detectOverflowOptions","isBasePlacement","getOppositePlacement","getExpandedPlacements","push","getOppositeAxisPlacements","placements","overflow","overflows","overflowsData","sides","getAlignmentSides","every","_middlewareData$flip2","_overflowsData$filter","nextIndex","index","nextPlacement","resetPlacement","d","sort","a","b","_overflowsData$map$so","map","reduce","acc","getSideOffsets","isAnySideFullyClipped","some","hide","offsets","referenceHiddenOffsets","referenceHidden","escapedOffsets","escaped","_middlewareData$offse","diffCoords","alignment","mainAxisMulti","includes","crossAxisMulti","rawValue","convertValueToCoords","shift","limiter","getOppositeAxis","mainAxisCoord","crossAxisCoord","maxSide","limitedCoords","limitShift","rawOffset","computedOffset","len","limitMin","limitMax","_middlewareData$offse2","isOriginSide","size","apply","heightSide","widthSide","overflowAvailableHeight","overflowAvailableWidth","noShift","availableHeight","availableWidth","maximumClippingWidth","maximumClippingHeight","xMin","xMax","yMin","yMax","nextDimensions"],"mappings":"0bAGA,SAASA,EAA2BC,EAAMC,EAAWC,GACnD,IAAIC,UACFA,EAASC,SACTA,GACEJ,EACJ,MAAMK,EAAWC,EAAYL,GACvBM,EAAgBC,EAAiBP,GACjCQ,EAAcC,EAAcH,GAC5BI,EAAOC,EAAQX,GACfY,EAA0B,MAAbR,EACbS,EAAUX,EAAUY,EAAIZ,EAAUa,MAAQ,EAAIZ,EA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B,EAAUvF,EAAIqF,EAAyBM,GAAyBA,CAChG,CACD,GAAIJ,IAAY3B,EAAW,CACzB,MAAMgC,EAAOzF,EAAI0B,EAAS9C,KAAM,GAC1B8G,EAAO1F,EAAI0B,EAAS7C,MAAO,GAC3B8G,EAAO3F,EAAI0B,EAAShD,IAAK,GACzBkH,EAAO5F,EAAI0B,EAAS/C,OAAQ,GAC9BO,EACFoG,EAAiBtK,EAAQ,GAAc,IAATyK,GAAuB,IAATC,EAAaD,EAAOC,EAAO1F,EAAI0B,EAAS9C,KAAM8C,EAAS7C,QAEnGwG,EAAkBlK,EAAS,GAAc,IAATwK,GAAuB,IAATC,EAAaD,EAAOC,EAAO5F,EAAI0B,EAAShD,IAAKgD,EAAS/C,QAEvG,OACKoG,EAAM,IACP9H,EACHqI,iBACAD,oBAEF,MAAMQ,QAAuBjK,EAASqD,cAAclC,EAAS3C,UAC7D,OAAIY,IAAU6K,EAAe7K,OAASG,IAAW0K,EAAe1K,OACvD,CACL0B,MAAO,CACLZ,OAAO,IAIN,EACR,EAEL"}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
import{shift as t,flip as e,size as n,hide as i,limitShift as o,arrow as r,computePosition as s}from"../../core/dist/floating-ui.core.mjs.js";export{detectOverflow,offset}from"../../core/dist/floating-ui.core.mjs.js";import{createCoords as l,rectToClientRect as c,round as f,floor as u,max as h,min as a}from"../../utils/dist/floating-ui.utils.mjs.js";import{getOverflowAncestors as d,isElement as g,getWindow as p,getComputedStyle as m,getDocumentElement as x,isHTMLElement as y,isWebKit as w,getNodeName as v,isOverflowElement as b,getNodeScroll as L,isTableElement as R,isContainingBlock as T,getContainingBlock as E,getParentNode as F,isLastTraversableNode as j}from"../../utils/dist/floating-ui.utils.dom.mjs.js";export{getOverflowAncestors}from"../../utils/dist/floating-ui.utils.dom.mjs.js";function O(t){const e=m(t);let n=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const o=y(t),r=o?t.offsetWidth:n,s=o?t.offsetHeight:i,l=f(n)!==r||f(i)!==s;return l&&(n=r,i=s),{width:n,height:i,$:l}}function W(t){return g(t)?t:t.contextElement}function H(t){const e=W(t);if(!y(e))return l(1);const n=e.getBoundingClientRect(),{width:i,height:o,$:r}=O(e);let s=(r?f(n.width):n.width)/i,c=(r?f(n.height):n.height)/o;return s&&Number.isFinite(s)||(s=1),c&&Number.isFinite(c)||(c=1),{x:s,y:c}}const z=l(0);function A(t){const e=p(t);return w()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:z}function C(t,e,n,i){void 0===e&&(e=!1),void 0===n&&(n=!1);const o=t.getBoundingClientRect(),r=W(t);let s=l(1);e&&(i?g(i)&&(s=H(i)):s=H(t));const f=function(t,e,n){return void 0===e&&(e=!1),!(!n||e&&n!==p(t))&&e}(r,n,i)?A(r):l(0);let u=(o.left+f.x)/s.x,h=(o.top+f.y)/s.y,a=o.width/s.x,d=o.height/s.y;if(r){const t=p(r),e=i&&g(i)?p(i):i;let n=t,o=n.frameElement;for(;o&&i&&e!==n;){const t=H(o),e=o.getBoundingClientRect(),i=m(o),r=e.left+(o.clientLeft+parseFloat(i.paddingLeft))*t.x,s=e.top+(o.clientTop+parseFloat(i.paddingTop))*t.y;u*=t.x,h*=t.y,a*=t.x,d*=t.y,u+=r,h+=s,n=p(o),o=n.frameElement}}return c({width:a,height:d,x:u,y:h})}const P=[":popover-open",":modal"];function B(t){return P.some((e=>{try{return t.matches(e)}catch(t){return!1}}))}function D(t){return C(x(t)).left+L(t).scrollLeft}function V(t,e,n){let i;if("viewport"===e)i=function(t,e){const n=p(t),i=x(t),o=n.visualViewport;let r=i.clientWidth,s=i.clientHeight,l=0,c=0;if(o){r=o.width,s=o.height;const t=w();(!t||t&&"fixed"===e)&&(l=o.offsetLeft,c=o.offsetTop)}return{width:r,height:s,x:l,y:c}}(t,n);else if("document"===e)i=function(t){const e=x(t),n=L(t),i=t.ownerDocument.body,o=h(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),r=h(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let s=-n.scrollLeft+D(t);const l=-n.scrollTop;return"rtl"===m(i).direction&&(s+=h(e.clientWidth,i.clientWidth)-o),{width:o,height:r,x:s,y:l}}(x(t));else if(g(e))i=function(t,e){const n=C(t,!0,"fixed"===e),i=n.top+t.clientTop,o=n.left+t.clientLeft,r=y(t)?H(t):l(1);return{width:t.clientWidth*r.x,height:t.clientHeight*r.y,x:o*r.x,y:i*r.y}}(e,n);else{const n=A(t);i={...e,x:e.x-n.x,y:e.y-n.y}}return c(i)}function S(t,e){const n=F(t);return!(n===e||!g(n)||j(n))&&("fixed"===m(n).position||S(n,e))}function I(t,e,n){const i=y(e),o=x(e),r="fixed"===n,s=C(t,!0,r,e);let c={scrollLeft:0,scrollTop:0};const f=l(0);if(i||!i&&!r)if(("body"!==v(e)||b(o))&&(c=L(e)),i){const t=C(e,!0,r,e);f.x=t.x+e.clientLeft,f.y=t.y+e.clientTop}else o&&(f.x=D(o));return{x:s.left+c.scrollLeft-f.x,y:s.top+c.scrollTop-f.y,width:s.width,height:s.height}}function q(t,e){return y(t)&&"fixed"!==m(t).position?e?e(t):t.offsetParent:null}function M(t,e){const n=p(t);if(!y(t)||B(t))return n;let i=q(t,e);for(;i&&R(i)&&"static"===m(i).position;)i=q(i,e);return i&&("html"===v(i)||"body"===v(i)&&"static"===m(i).position&&!T(i))?n:i||E(t)||n}const N={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:n,offsetParent:i,strategy:o}=t;const r="fixed"===o,s=x(i),c=!!e&&B(e.floating);if(i===s||c&&r)return n;let f={scrollLeft:0,scrollTop:0},u=l(1);const h=l(0),a=y(i);if((a||!a&&!r)&&(("body"!==v(i)||b(s))&&(f=L(i)),y(i))){const t=C(i);u=H(i),h.x=t.x+i.clientLeft,h.y=t.y+i.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-f.scrollLeft*u.x+h.x,y:n.y*u.y-f.scrollTop*u.y+h.y}},getDocumentElement:x,getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:i,strategy:o}=t;const r=[..."clippingAncestors"===n?function(t,e){const n=e.get(t);if(n)return n;let i=d(t,[],!1).filter((t=>g(t)&&"body"!==v(t))),o=null;const r="fixed"===m(t).position;let s=r?F(t):t;for(;g(s)&&!j(s);){const e=m(s),n=T(s);n||"fixed"!==e.position||(o=null),(r?!n&&!o:!n&&"static"===e.position&&o&&["absolute","fixed"].includes(o.position)||b(s)&&!n&&S(t,s))?i=i.filter((t=>t!==s)):o=e,s=F(s)}return e.set(t,i),i}(e,this._c):[].concat(n),i],s=r[0],l=r.reduce(((t,n)=>{const i=V(e,n,o);return t.top=h(i.top,t.top),t.right=a(i.right,t.right),t.bottom=a(i.bottom,t.bottom),t.left=h(i.left,t.left),t}),V(e,s,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:M,getElementRects:async function(t){const e=this.getOffsetParent||M,n=this.getDimensions;return{reference:I(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,...await n(t.floating)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:e,height:n}=O(t);return{width:e,height:n}},getScale:H,isElement:g,isRTL:function(t){return"rtl"===m(t).direction}};function $(t,e,n,i){void 0===i&&(i={});const{ancestorScroll:o=!0,ancestorResize:r=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:c=!1}=i,f=W(t),g=o||r?[...f?d(f):[],...d(e)]:[];g.forEach((t=>{o&&t.addEventListener("scroll",n,{passive:!0}),r&&t.addEventListener("resize",n)}));const p=f&&l?function(t,e){let n,i=null;const o=x(t);function r(){var t;clearTimeout(n),null==(t=i)||t.disconnect(),i=null}return function s(l,c){void 0===l&&(l=!1),void 0===c&&(c=1),r();const{left:f,top:d,width:g,height:p}=t.getBoundingClientRect();if(l||e(),!g||!p)return;const m={rootMargin:-u(d)+"px "+-u(o.clientWidth-(f+g))+"px "+-u(o.clientHeight-(d+p))+"px "+-u(f)+"px",threshold:h(0,a(1,c))||1};let x=!0;function y(t){const e=t[0].intersectionRatio;if(e!==c){if(!x)return s();e?s(!1,e):n=setTimeout((()=>{s(!1,1e-7)}),100)}x=!1}try{i=new IntersectionObserver(y,{...m,root:o.ownerDocument})}catch(t){i=new IntersectionObserver(y,m)}i.observe(t)}(!0),r}(f,n):null;let m,y=-1,w=null;s&&(w=new ResizeObserver((t=>{let[i]=t;i&&i.target===f&&w&&(w.unobserve(e),cancelAnimationFrame(y),y=requestAnimationFrame((()=>{var t;null==(t=w)||t.observe(e)}))),n()})),f&&!c&&w.observe(f),w.observe(e));let v=c?C(t):null;return c&&function e(){const i=C(t);!v||i.x===v.x&&i.y===v.y&&i.width===v.width&&i.height===v.height||n();v=i,m=requestAnimationFrame(e)}(),n(),()=>{var t;g.forEach((t=>{o&&t.removeEventListener("scroll",n),r&&t.removeEventListener("resize",n)})),null==p||p(),null==(t=w)||t.disconnect(),w=null,c&&cancelAnimationFrame(m)}}const _=t,k=e,G=n,J=i,K=r,Q=o,U=(t,e,n)=>{const i=new Map,o={platform:N,...n},r={...o.platform,_c:i};return s(t,e,{...o,platform:r})};export{K as arrow,$ as autoUpdate,U as computePosition,k as flip,J as hide,Q as limitShift,N as platform,_ as shift,G as size};
|
2
|
+
//# sourceMappingURL=floating-ui.dom.mjs.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"floating-ui.dom.mjs.js","sources":["../../../../../node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs"],"sourcesContent":["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"],"names":["getCssDimensions","element","css","getComputedStyle","width","parseFloat","height","hasOffset","isHTMLElement","offsetWidth","offsetHeight","shouldFallback","round","$","unwrapElement","isElement","contextElement","getScale","domElement","createCoords","rect","getBoundingClientRect","x","y","Number","isFinite","noOffsets","getVisualOffsets","win","getWindow","isWebKit","visualViewport","offsetLeft","offsetTop","includeScale","isFixedStrategy","offsetParent","clientRect","scale","visualOffsets","isFixed","floatingOffsetParent","shouldAddVisualOffsets","left","top","offsetWin","currentWin","currentIFrame","frameElement","iframeScale","iframeRect","clientLeft","paddingLeft","clientTop","paddingTop","rectToClientRect","topLayerSelectors","isTopLayer","floating","some","selector","matches","e","getWindowScrollBarX","getDocumentElement","getNodeScroll","scrollLeft","getClientRectFromClippingAncestor","clippingAncestor","strategy","html","clientWidth","clientHeight","visualViewportBased","getViewportRect","scroll","body","ownerDocument","max","scrollWidth","scrollHeight","scrollTop","direction","getDocumentRect","getInnerBoundingClientRect","hasFixedPositionAncestor","stopNode","parentNode","getParentNode","isLastTraversableNode","position","getRectRelativeToOffsetParent","isOffsetParentAnElement","documentElement","offsets","getNodeName","isOverflowElement","offsetRect","getTrueOffsetParent","polyfill","getOffsetParent","window","isTableElement","isContainingBlock","getContainingBlock","platform","convertOffsetParentRelativeRectToViewportRelativeRect","_ref","elements","topLayer","getClippingRect","boundary","rootBoundary","clippingAncestors","cache","cachedResult","get","result","getOverflowAncestors","filter","el","currentContainingBlockComputedStyle","elementIsFixed","currentNode","computedStyle","currentNodeIsContaining","includes","ancestor","set","getClippingElementAncestors","this","_c","concat","firstClippingAncestor","clippingRect","reduce","accRect","right","min","bottom","getElementRects","async","data","getOffsetParentFn","getDimensionsFn","getDimensions","reference","getClientRects","Array","from","isRTL","autoUpdate","update","options","ancestorScroll","ancestorResize","elementResize","ResizeObserver","layoutShift","IntersectionObserver","animationFrame","referenceEl","ancestors","forEach","addEventListener","passive","cleanupIo","onMove","timeoutId","io","root","cleanup","_io","clearTimeout","disconnect","refresh","skip","threshold","rootMargin","floor","isFirstUpdate","handleObserve","entries","ratio","intersectionRatio","setTimeout","observe","observeMove","frameId","reobserveFrame","resizeObserver","firstEntry","target","unobserve","cancelAnimationFrame","requestAnimationFrame","_resizeObserver","prevRefRect","frameLoop","nextRefRect","_resizeObserver2","removeEventListener","shift","shift$1","flip","flip$1","size","size$1","hide","hide$1","arrow","arrow$1","limitShift","limitShift$1","computePosition","Map","mergedOptions","platformWithCache","computePosition$1"],"mappings":"8xBAMA,SAASA,EAAiBC,GACxB,MAAMC,EAAMC,EAAiBF,GAG7B,IAAIG,EAAQC,WAAWH,EAAIE,QAAU,EACjCE,EAASD,WAAWH,EAAII,SAAW,EACvC,MAAMC,EAAYC,EAAcP,GAC1BQ,EAAcF,EAAYN,EAAQQ,YAAcL,EAChDM,EAAeH,EAAYN,EAAQS,aAAeJ,EAClDK,EAAiBC,EAAMR,KAAWK,GAAeG,EAAMN,KAAYI,EAKzE,OAJIC,IACFP,EAAQK,EACRH,EAASI,GAEJ,CACLN,QACAE,SACAO,EAAGF,EAEP,CAEA,SAASG,EAAcb,GACrB,OAAQc,EAAUd,GAAoCA,EAAzBA,EAAQe,cACvC,CAEA,SAASC,EAAShB,GAChB,MAAMiB,EAAaJ,EAAcb,GACjC,IAAKO,EAAcU,GACjB,OAAOC,EAAa,GAEtB,MAAMC,EAAOF,EAAWG,yBAClBjB,MACJA,EAAKE,OACLA,EAAMO,EACNA,GACEb,EAAiBkB,GACrB,IAAII,G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,EAAgBV,QAAQhI,EAAS,KAGnF8F,GAAQ,IAENS,IAAgBD,GAClB8B,EAAeJ,QAAQzB,GAEzB6B,EAAeJ,QAAQhI,IAGzB,IAAI2I,EAAcrC,EAAiB3I,EAAsB6H,GAAa,KAatE,OAZIc,GAGJ,SAASsC,IACP,MAAMC,EAAclL,EAAsB6H,IACtCmD,GAAgBE,EAAYjL,IAAM+K,EAAY/K,GAAKiL,EAAYhL,IAAM8K,EAAY9K,GAAKgL,EAAYnM,QAAUiM,EAAYjM,OAASmM,EAAYjM,SAAW+L,EAAY/L,QACtKkJ,IAEF6C,EAAcE,EACdX,EAAUO,sBAAsBG,EACjC,CATCA,GAUF9C,IACO,KACL,IAAIgD,EACJtC,EAAUC,SAAQpC,IAChB2B,GAAkB3B,EAAS0E,oBAAoB,SAAUjD,GACzDG,GAAkB5B,EAAS0E,oBAAoB,SAAUjD,EAAO,IAErD,MAAbc,GAAqBA,IACkB,OAAtCkC,EAAmBV,IAA2BU,EAAiB1B,aAChEgB,EAAiB,KACb9B,GACFkC,qBAAqBN,EACtB,CAEL,CAeK,MAACc,EAAQC,EAQRC,EAAOC,EAQPC,EAAOC,EAOPC,EAAOC,EAOPC,EAAQC,EAYRC,EAAaC,EAMbC,EAAkB,CAACpE,EAAWxF,EAAU+F,KAI5C,MAAMvC,EAAQ,IAAIqG,IACZC,EAAgB,CACpB/G,cACGgD,GAECgE,EAAoB,IACrBD,EAAc/G,SACjB0B,GAAIjB,GAEN,OAAOwG,EAAkBxE,EAAWxF,EAAU,IACzC8J,EACH/G,SAAUgH,GACV"}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
import{arrow as e,computePosition as t}from"../../dom/dist/floating-ui.dom.mjs.js";export{autoUpdate,computePosition,flip,hide,limitShift,platform,shift,size}from"../../dom/dist/floating-ui.dom.mjs.js";import*as r from"react";import{useLayoutEffect as n,useEffect as o}from"react";import*as i from"react-dom";const u=t=>({name:"arrow",options:t,fn(r){const{element:n,padding:o}="function"==typeof t?t(r):t;return n&&(i=n,{}.hasOwnProperty.call(i,"current"))?null!=n.current?e({element:n.current,padding:o}).fn(r):{}:n?e({element:n,padding:o}).fn(r):{};var i}});var f="undefined"!=typeof document?n:o;function s(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let r,n,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;0!=n--;)if(!s(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;0!=n--;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=r;0!=n--;){const r=o[n];if(("_owner"!==r||!e.$$typeof)&&!s(e[r],t[r]))return!1}return!0}return e!=e&&t!=t}function a(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function c(e,t){const r=a(e);return Math.round(t*r)/r}function l(e){const t=r.useRef(e);return f((()=>{t.current=e})),t}function m(e){void 0===e&&(e={});const{placement:n="bottom",strategy:o="absolute",middleware:u=[],platform:m,elements:{reference:d,floating:p}={},transform:g=!0,whileElementsMounted:y,open:w}=e,[h,P]=r.useState({x:0,y:0,strategy:o,placement:n,middlewareData:{},isPositioned:!1}),[S,b]=r.useState(u);s(S,u)||b(u);const[x,j]=r.useState(null),[R,M]=r.useState(null),k=r.useCallback((e=>{e!==A.current&&(A.current=e,j(e))}),[]),v=r.useCallback((e=>{e!==D.current&&(D.current=e,M(e))}),[]),C=d||x,O=p||R,A=r.useRef(null),D=r.useRef(null),$=r.useRef(h),z=null!=y,E=l(y),F=l(m),U=r.useCallback((()=>{if(!A.current||!D.current)return;const e={placement:n,strategy:o,middleware:S};F.current&&(e.platform=F.current),t(A.current,D.current,e).then((e=>{const t={...e,isPositioned:!0};V.current&&!s($.current,t)&&($.current=t,i.flushSync((()=>{P(t)})))}))}),[S,n,o,F]);f((()=>{!1===w&&$.current.isPositioned&&($.current.isPositioned=!1,P((e=>({...e,isPositioned:!1}))))}),[w]);const V=r.useRef(!1);f((()=>(V.current=!0,()=>{V.current=!1})),[]),f((()=>{if(C&&(A.current=C),O&&(D.current=O),C&&O){if(E.current)return E.current(C,O,U);U()}}),[C,O,U,E,z]);const _=r.useMemo((()=>({reference:A,floating:D,setReference:k,setFloating:v})),[k,v]),q=r.useMemo((()=>({reference:C,floating:O})),[C,O]),B=r.useMemo((()=>{const e={position:o,left:0,top:0};if(!q.floating)return e;const t=c(q.floating,h.x),r=c(q.floating,h.y);return g?{...e,transform:"translate("+t+"px, "+r+"px)",...a(q.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:t,top:r}}),[o,g,q.floating,h.x,h.y]);return r.useMemo((()=>({...h,update:U,refs:_,elements:q,floatingStyles:B})),[h,U,_,q,B])}export{u as arrow,m as useFloating};
|
2
|
+
//# sourceMappingURL=floating-ui.react-dom.mjs.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"floating-ui.react-dom.mjs.js","sources":["../../../../../node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs"],"sourcesContent":["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"],"names":["arrow","options","name","fn","state","element","padding","value","hasOwnProperty","call","current","arrow$1","index","document","useLayoutEffect","useEffect","deepEqual","a","b","toString","length","i","keys","Array","isArray","Object","key","$$typeof","getDPR","window","ownerDocument","defaultView","devicePixelRatio","roundByDPR","dpr","Math","round","useLatestRef","ref","React","useRef","useFloating","placement","strategy","middleware","platform","elements","reference","externalReference","floating","externalFloating","transform","whileElementsMounted","open","data","setData","useState","x","y","middlewareData","isPositioned","latestMiddleware","setLatestMiddleware","_reference","_setReference","_floating","_setFloating","setReference","useCallback","node","referenceRef","setFloating","floatingRef","referenceEl","floatingEl","dataRef","hasWhileElementsMounted","whileElementsMountedRef","platformRef","update","config","computePosition","then","fullData","isMountedRef","ReactDOM","flushSync","refs","useMemo","floatingStyles","initialStyles","position","left","top","willChange"],"mappings":"qTAYK,MAACA,EAAQC,IAIL,CACLC,KAAM,QACND,UACA,EAAAE,CAAGC,GACD,MAAMC,QACJA,EAAOC,QACPA,GACqB,mBAAZL,EAAyBA,EAAQG,GAASH,EACrD,OA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EAAKI,GAC7C,OAAIP,EACK,IACFuC,EACHvC,UAAW,aAAeM,EAAI,OAASC,EAAI,SACvC9B,EAAOkB,EAASG,WAAa,KAAO,CACtC6C,WAAY,cAIX,CACLH,SAAUhD,EACViD,KAAMnC,EACNoC,IAAKnC,EACN,GACA,CAACf,EAAUQ,EAAWL,EAASG,SAAUK,EAAKG,EAAGH,EAAKI,IACzD,OAAOnB,EAAMiD,SAAQ,KAAO,IACvBlC,EACHyB,SACAQ,OACAzC,WACA2C,oBACE,CAACnC,EAAMyB,EAAQQ,EAAMzC,EAAU2C,GACrC"}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
function n(n){return o(n)?(n.nodeName||"").toLowerCase():"#document"}function e(n){var e;return(null==n||null==(e=n.ownerDocument)?void 0:e.defaultView)||window}function t(n){var e;return null==(e=(o(n)?n.ownerDocument:n.document)||window.document)?void 0:e.documentElement}function o(n){return n instanceof Node||n instanceof e(n).Node}function r(n){return n instanceof Element||n instanceof e(n).Element}function c(n){return n instanceof HTMLElement||n instanceof e(n).HTMLElement}function u(n){return"undefined"!=typeof ShadowRoot&&(n instanceof ShadowRoot||n instanceof e(n).ShadowRoot)}function i(n){const{overflow:e,overflowX:t,overflowY:o,display:r}=m(n);return/auto|scroll|overlay|hidden|clip/.test(e+o+t)&&!["inline","contents"].includes(r)}function l(e){return["table","td","th"].includes(n(e))}function f(n){const e=a(),t=m(n);return"none"!==t.transform||"none"!==t.perspective||!!t.containerType&&"normal"!==t.containerType||!e&&!!t.backdropFilter&&"none"!==t.backdropFilter||!e&&!!t.filter&&"none"!==t.filter||["transform","perspective","filter"].some((n=>(t.willChange||"").includes(n)))||["paint","layout","strict","content"].some((n=>(t.contain||"").includes(n)))}function s(n){let e=w(n);for(;c(e)&&!d(e);){if(f(e))return e;e=w(e)}return null}function a(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function d(e){return["html","body","#document"].includes(n(e))}function m(n){return e(n).getComputedStyle(n)}function p(n){return r(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.pageXOffset,scrollTop:n.pageYOffset}}function w(e){if("html"===n(e))return e;const o=e.assignedSlot||e.parentNode||u(e)&&e.host||t(e);return u(o)?o.host:o}function v(n){const e=w(n);return d(e)?n.ownerDocument?n.ownerDocument.body:n.body:c(e)&&i(e)?e:v(e)}function y(n,t,o){var r;void 0===t&&(t=[]),void 0===o&&(o=!0);const c=v(n),u=c===(null==(r=n.ownerDocument)?void 0:r.body),l=e(c);return u?t.concat(l,l.visualViewport||[],i(c)?c:[],l.frameElement&&o?y(l.frameElement):[]):t.concat(c,y(c,[],o))}export{m as getComputedStyle,s as getContainingBlock,t as getDocumentElement,v as getNearestOverflowAncestor,n as getNodeName,p as getNodeScroll,y as getOverflowAncestors,w as getParentNode,e as getWindow,f as isContainingBlock,r as isElement,c as isHTMLElement,d as isLastTraversableNode,o as isNode,i as isOverflowElement,u as isShadowRoot,l as isTableElement,a as isWebKit};
|
2
|
+
//# sourceMappingURL=floating-ui.utils.dom.mjs.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"floating-ui.utils.dom.mjs.js","sources":["../../../../../node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs"],"sourcesContent":["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"],"names":["getNodeName","node","isNode","nodeName","toLowerCase","getWindow","_node$ownerDocument","ownerDocument","defaultView","window","getDocumentElement","_ref","document","documentElement","value","Node","isElement","Element","isHTMLElement","HTMLElement","isShadowRoot","ShadowRoot","isOverflowElement","element","overflow","overflowX","overflowY","display","getComputedStyle","test","includes","isTableElement","isContainingBlock","webkit","isWebKit","css","transform","perspective","containerType","backdropFilter","filter","some","willChange","contain","getContainingBlock","currentNode","getParentNode","isLastTraversableNode","CSS","supports","getNodeScroll","scrollLeft","scrollTop","pageXOffset","pageYOffset","result","assignedSlot","parentNode","host","getNearestOverflowAncestor","body","getOverflowAncestors","list","traverseIframes","_node$ownerDocument2","scrollableAncestor","isBody","win","concat","visualViewport","frameElement"],"mappings":"AAAA,SAASA,EAAYC,GACnB,OAAIC,EAAOD,IACDA,EAAKE,UAAY,IAAIC,cAKxB,WACT,CACA,SAASC,EAAUJ,GACjB,IAAIK,EACJ,OAAgB,MAARL,GAA8D,OAA7CK,EAAsBL,EAAKM,oBAAyB,EAASD,EAAoBE,cAAgBC,MAC5H,CACA,SAASC,EAAmBT,GAC1B,IAAIU,EACJ,OAA0F,OAAlFA,GAAQT,EAAOD,GAAQA,EAAKM,cAAgBN,EAAKW,WAAaH,OAAOG,eAAoB,EAASD,EAAKE,eACjH,CACA,SAASX,EAAOY,GACd,OAAOA,aAAiBC,MAAQD,aAAiBT,EAAUS,GAAOC,IACpE,CACA,SAASC,EAAUF,GACjB,OAAOA,aAAiBG,SAAWH,aAAiBT,EAAUS,GAAOG,OACvE,CACA,SAASC,EAAcJ,GACrB,OAAOA,aAAiBK,aAAeL,aAAiBT,EAAUS,GAAOK,WAC3E,CACA,SAASC,EAAaN,GAEpB,MAA0B,oBAAfO,aAGJP,aAAiBO,YAAcP,aAAiBT,EAAUS,GAAOO,WAC1E,CACA,SAASC,EAAkBC,GACzB,MAAMC,SACJA,EAAQC,UACRA,EAASC,UACTA,EAASC,QACTA,GACEC,EAAiBL,GACrB,MAAO,kCAAkCM,KAAKL,EAAWE,EAAYD,KAAe,CAAC,SAAU,YAAYK,SAASH,EACtH,CACA,SAASI,EAAeR,GACtB,MAAO,CAAC,QAAS,KAAM,MAAMO,SAAS9B,EAAYuB,GACpD,CACA,SAASS,EAAkBT,GACzB,MAAMU,EAASC,IACTC,EAAMP,EAAiBL,GAG7B,MAAyB,SAAlBY,EAAIC,WAA4C,SAApBD,EAAIE,eAA2B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C,GAC1CA,EAEFE,EAA2BF,EACpC,CACA,SAASI,EAAqB5D,EAAM6D,EAAMC,GACxC,IAAIC,OACS,IAATF,IACFA,EAAO,SAEe,IAApBC,IACFA,GAAkB,GAEpB,MAAME,EAAqBN,EAA2B1D,GAChDiE,EAASD,KAAuE,OAA9CD,EAAuB/D,EAAKM,oBAAyB,EAASyD,EAAqBJ,MACrHO,EAAM9D,EAAU4D,GACtB,OAAIC,EACKJ,EAAKM,OAAOD,EAAKA,EAAIE,gBAAkB,GAAI/C,EAAkB2C,GAAsBA,EAAqB,GAAIE,EAAIG,cAAgBP,EAAkBF,EAAqBM,EAAIG,cAAgB,IAE7LR,EAAKM,OAAOH,EAAoBJ,EAAqBI,EAAoB,GAAIF,GACtF"}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
const t=["top","right","bottom","left"],n=Math.min,o=Math.max,r=Math.round,e=Math.floor,u=t=>({x:t,y:t}),i={left:"right",right:"left",bottom:"top",top:"bottom"},f={start:"end",end:"start"};function c(t,r,e){return o(t,n(r,e))}function a(t,n){return"function"==typeof t?t(n):t}function h(t){return t.split("-")[0]}function l(t){return t.split("-")[1]}function p(t){return"x"===t?"y":"x"}function s(t){return"y"===t?"height":"width"}function m(t){return["top","bottom"].includes(h(t))?"y":"x"}function g(t){return p(m(t))}function b(t,n,o){void 0===o&&(o=!1);const r=l(t),e=g(t),u=s(e);let i="x"===e?r===(o?"end":"start")?"right":"left":"start"===r?"bottom":"top";return n.reference[u]>n.floating[u]&&(i=M(i)),[i,M(i)]}function d(t){const n=M(t);return[x(t),n,x(n)]}function x(t){return t.replace(/start|end/g,(t=>f[t]))}function y(t,n,o,r){const e=l(t);let u=function(t,n,o){const r=["left","right"],e=["right","left"],u=["top","bottom"],i=["bottom","top"];switch(t){case"top":case"bottom":return o?n?e:r:n?r:e;case"left":case"right":return n?u:i;default:return[]}}(h(t),"start"===o,r);return e&&(u=u.map((t=>t+"-"+e)),n&&(u=u.concat(u.map(x)))),u}function M(t){return t.replace(/left|right|bottom|top/g,(t=>i[t]))}function w(t){return{top:0,right:0,bottom:0,left:0,...t}}function v(t){return"number"!=typeof t?w(t):{top:t,right:t,bottom:t,left:t}}function j(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}export{c as clamp,u as createCoords,a as evaluate,w as expandPaddingObject,e as floor,l as getAlignment,g as getAlignmentAxis,b as getAlignmentSides,s as getAxisLength,d as getExpandedPlacements,x as getOppositeAlignmentPlacement,p as getOppositeAxis,y as getOppositeAxisPlacements,M as getOppositePlacement,v as getPaddingObject,h as getSide,m as getSideAxis,o as max,n as min,j as rectToClientRect,r as round,t as sides};
|
2
|
+
//# sourceMappingURL=floating-ui.utils.mjs.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"floating-ui.utils.mjs.js","sources":["../../../../../node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs"],"sourcesContent":["/**\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"],"names":["sides","min","Math","max","round","floor","createCoords","v","x","y","oppositeSideMap","left","right","bottom","top","oppositeAlignmentMap","start","end","clamp","value","evaluate","param","getSide","placement","split","getAlignment","getOppositeAxis","axis","getAxisLength","getSideAxis","includes","getAlignmentAxis","getAlignmentSides","rects","rtl","alignment","alignmentAxis","length","mainAlignmentSide","reference","floating","getOppositePlacement","getExpandedPlacements","oppositePlacement","getOppositeAlignmentPlacement","replace","getOppositeAxisPlacements","flipAlignment","direction","list","side","isStart","lr","rl","tb","bt","getSideList","map","concat","expandPaddingObject","padding","getPaddingObject","rectToClientRect","rect","width","height"],"mappings":"AAKK,MAACA,EAAQ,CAAC,MAAO,QAAS,SAAU,QAGnCC,EAAMC,KAAKD,IACXE,EAAMD,KAAKC,IACXC,EAAQF,KAAKE,MACbC,EAAQH,KAAKG,MACbC,EAAeC,IAAM,CACzBC,EAAGD,EACHE,EAAGF,IAECG,EAAkB,CACtBC,KAAM,QACNC,MAAO,OACPC,OAAQ,MACRC,IAAK,UAEDC,EAAuB,CAC3BC,MAAO,MACPC,IAAK,SAEP,SAASC,EAAMF,EAAOG,EAAOF,GAC3B,OAAOd,EAAIa,EAAOf,EAAIkB,EAAOF,GAC/B,CACA,SAASG,EAASD,EAAOE,GACvB,MAAwB,mBAAVF,EAAuBA,EAAME,GAASF,CACtD,CACA,SAASG,EAAQC,GACf,OAAOA,EAAUC,MAAM,KA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,MAAO,GAEb,CAGaC,CAAYlC,EAAQC,GAA0B,UAAdyB,EAAuBd,GAOlE,OANIC,IACFc,EAAOA,EAAKQ,KAAIP,GAAQA,EAAO,IAAMf,IACjCY,IACFE,EAAOA,EAAKS,OAAOT,EAAKQ,IAAIb,MAGzBK,CACT,CACA,SAASR,EAAqBlB,GAC5B,OAAOA,EAAUsB,QAAQ,0BAA0BK,GAAQxC,EAAgBwC,IAC7E,CACA,SAASS,EAAoBC,GAC3B,MAAO,CACL9C,IAAK,EACLF,MAAO,EACPC,OAAQ,EACRF,KAAM,KACHiD,EAEP,CACA,SAASC,EAAiBD,GACxB,MAA0B,iBAAZA,EAAuBD,EAAoBC,GAAW,CAClE9C,IAAK8C,EACLhD,MAAOgD,EACP/C,OAAQ+C,EACRjD,KAAMiD,EAEV,CACA,SAASE,EAAiBC,GACxB,MAAO,IACFA,EACHjD,IAAKiD,EAAKtD,EACVE,KAAMoD,EAAKvD,EACXI,MAAOmD,EAAKvD,EAAIuD,EAAKC,MACrBnD,OAAQkD,EAAKtD,EAAIsD,EAAKE,OAE1B"}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
/*!
|
2
|
+
* @kurkle/color v0.3.2
|
3
|
+
* https://github.com/kurkle/color#readme
|
4
|
+
* (c) 2023 Jukka Kurkela
|
5
|
+
* Released under the MIT License
|
6
|
+
*/
|
7
|
+
function e(e){return e+.5|0}const t=(e,t,f)=>Math.max(Math.min(e,f),t);function f(f){return t(e(2.55*f),0,255)}function r(f){return t(e(255*f),0,255)}function a(f){return t(e(f/2.55)/100,0,1)}function n(f){return t(e(100*f),0,100)}const i={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},s=[..."0123456789ABCDEF"],c=e=>s[15&e],b=e=>s[(240&e)>>4]+s[15&e],g=e=>(240&e)>>4==(15&e);function d(e){var t,f=e.length;return"#"===e[0]&&(4===f||5===f?t={r:255&17*i[e[1]],g:255&17*i[e[2]],b:255&17*i[e[3]],a:5===f?17*i[e[4]]:255}:7!==f&&9!==f||(t={r:i[e[1]]<<4|i[e[2]],g:i[e[3]]<<4|i[e[4]],b:i[e[5]]<<4|i[e[6]],a:9===f?i[e[7]]<<4|i[e[8]]:255})),t}function o(e){var t=(e=>g(e.r)&&g(e.g)&&g(e.b)&&g(e.a))(e)?c:b;return e?"#"+t(e.r)+t(e.g)+t(e.b)+((e,t)=>e<255?t(e):"")(e.a,t):void 0}const u=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function h(e,t,f){const r=t*Math.min(f,1-f),a=(t,a=(t+e/30)%12)=>f-r*Math.max(Math.min(a-3,9-a,1),-1);return[a(0),a(8),a(4)]}function l(e,t,f){const r=(r,a=(r+e/60)%6)=>f-f*t*Math.max(Math.min(a,4-a,1),0);return[r(5),r(3),r(1)]}function m(e,t,f){const r=h(e,1,.5);let a;for(t+f>1&&(a=1/(t+f),t*=a,f*=a),a=0;a<3;a++)r[a]*=1-t-f,r[a]+=t;return r}function y(e){const t=e.r/255,f=e.g/255,r=e.b/255,a=Math.max(t,f,r),n=Math.min(t,f,r),i=(a+n)/2;let s,c,b;return a!==n&&(b=a-n,c=i>.5?b/(2-a-n):b/(a+n),s=function(e,t,f,r,a){return e===a?(t-f)/r+(t<f?6:0):t===a?(f-e)/r+2:(e-t)/r+4}(t,f,r,b,a),s=60*s+.5),[0|s,c||0,i]}function p(e,t,f,a){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,f,a)).map(r)}function Y(e,t,f){return p(h,e,t,f)}function v(e,t,f){return p(m,e,t,f)}function x(e,t,f){return p(l,e,t,f)}function w(e){return(e%360+360)%360}function F(e){const t=u.exec(e);let a,n=255;if(!t)return;t[5]!==a&&(n=t[6]?f(+t[5]):r(+t[5]));const i=w(+t[2]),s=+t[3]/100,c=+t[4]/100;return a="hwb"===t[1]?v(i,s,c):"hsv"===t[1]?x(i,s,c):Y(i,s,c),{r:a[0],g:a[1],b:a[2],a:n}}function _(e,t){var f=y(e);f[0]=w(f[0]+t),f=Y(f),e.r=f[0],e.g=f[1],e.b=f[2]}function M(e){if(!e)return;const t=y(e),f=t[0],r=n(t[1]),i=n(t[2]);return e.a<255?`hsla(${f}, ${r}%, ${i}%, ${a(e.a)})`:`hsl(${f}, ${r}%, ${i}%)`}const X={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},k={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};let O;function S(e){O||(O=function(){const e={},t=Object.keys(k),f=Object.keys(X);let r,a,n,i,s;for(r=0;r<t.length;r++){for(i=s=t[r],a=0;a<f.length;a++)n=f[a],s=s.replace(n,X[n]);n=parseInt(k[i],16),e[s]=[n>>16&255,n>>8&255,255&n]}return e}(),O.transparent=[0,0,0,0]);const t=O[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:4===t.length?t[3]:255}}const T=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function Z(e){const r=T.exec(e);let a,n,i,s=255;if(r){if(r[7]!==a){const e=+r[7];s=r[8]?f(e):t(255*e,0,255)}return a=+r[1],n=+r[3],i=+r[5],a=255&(r[2]?f(a):t(a,0,255)),n=255&(r[4]?f(n):t(n,0,255)),i=255&(r[6]?f(i):t(i,0,255)),{r:a,g:n,b:i,a:s}}}function $(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${a(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const E=e=>e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055,R=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function A(e,t,f){if(e){let r=y(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*f,0===t?360:1)),r=Y(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function P(e,t){return e?Object.assign(t||{},e):e}function U(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=r(e[3]))):(t=P(e,{r:0,g:0,b:0,a:1})).a=r(t.a),t}class V{constructor(e){if(e instanceof V)return e;const t=typeof e;let f;var r;"object"===t?f=U(e):"string"===t&&(f=d(e)||S(e)||("r"===(r=e).charAt(0)?Z(r):F(r))),this._rgb=f,this._valid=!!f}get valid(){return this._valid}get rgb(){var e=P(this._rgb);return e&&(e.a=a(e.a)),e}set rgb(e){this._rgb=U(e)}rgbString(){return this._valid?$(this._rgb):void 0}hexString(){return this._valid?o(this._rgb):void 0}hslString(){return this._valid?M(this._rgb):void 0}mix(e,t){if(e){const f=this.rgb,r=e.rgb;let a;const n=t===a?.5:t,i=2*n-1,s=f.a-r.a,c=((i*s==-1?i:(i+s)/(1+i*s))+1)/2;a=1-c,f.r=255&c*f.r+a*r.r+.5,f.g=255&c*f.g+a*r.g+.5,f.b=255&c*f.b+a*r.b+.5,f.a=n*f.a+(1-n)*r.a,this.rgb=f}return this}interpolate(e,t){return e&&(this._rgb=function(e,t,f){const n=R(a(e.r)),i=R(a(e.g)),s=R(a(e.b));return{r:r(E(n+f*(R(a(t.r))-n))),g:r(E(i+f*(R(a(t.g))-i))),b:r(E(s+f*(R(a(t.b))-s))),a:e.a+f*(t.a-e.a)}}(this._rgb,e._rgb,t)),this}clone(){return new V(this.rgb)}alpha(e){return this._rgb.a=r(e),this}clearer(e){return this._rgb.a*=1-e,this}greyscale(){const t=this._rgb,f=e(.3*t.r+.59*t.g+.11*t.b);return t.r=t.g=t.b=f,this}opaquer(e){return this._rgb.a*=1+e,this}negate(){const e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return A(this._rgb,2,e),this}darken(e){return A(this._rgb,2,-e),this}saturate(e){return A(this._rgb,1,e),this}desaturate(e){return A(this._rgb,1,-e),this}rotate(e){return _(this._rgb,e),this}}export{V as Color,a as b2n,d as hexParse,o as hexString,Y as hsl2rgb,M as hslString,x as hsv2rgb,F as hueParse,v as hwb2rgb,t as lim,r as n2b,n as n2p,S as nameParse,f as p2b,y as rgb2hsl,Z as rgbParse,$ as rgbString,_ as rotate,e as round};
|
8
|
+
//# sourceMappingURL=color.esm.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"color.esm.js","sources":["../../../../../node_modules/@kurkle/color/dist/color.esm.js"],"sourcesContent":["/*!\n * @kurkle/color v0.3.2\n * https://github.com/kurkle/color#readme\n * (c) 2023 Jukka Kurkela\n * Released under the MIT License\n */\nfunction round(v) {\n return v + 0.5 | 0;\n}\nconst lim = (v, l, h) => Math.max(Math.min(v, h), l);\nfunction p2b(v) {\n return lim(round(v * 2.55), 0, 255);\n}\nfunction b2p(v) {\n return lim(round(v / 2.55), 0, 100);\n}\nfunction n2b(v) {\n return lim(round(v * 255), 0, 255);\n}\nfunction b2n(v) {\n return lim(round(v / 2.55) / 100, 0, 1);\n}\nfunction n2p(v) {\n return lim(round(v * 100), 0, 100);\n}\n\nconst map$1 = {0: 0, 1: 1, 2: 2, 3: 3, 4: 4, 5: 5, 6: 6, 7: 7, 8: 8, 9: 9, A: 10, B: 11, C: 12, D: 13, E: 14, F: 15, a: 10, b: 11, c: 12, d: 13, e: 14, f: 15};\nconst hex = [...'0123456789ABCDEF'];\nconst h1 = b => hex[b & 0xF];\nconst h2 = b => hex[(b & 0xF0) >> 4] + hex[b & 0xF];\nconst eq = b => ((b & 0xF0) >> 4) === (b & 0xF);\nconst isShort = v => eq(v.r) && eq(v.g) && eq(v.b) && eq(v.a);\nfunction hexParse(str) {\n var len = str.length;\n var ret;\n if (str[0] === '#') {\n if (len === 4 || len === 5) {\n ret = {\n r: 255 & map$1[str[1]] * 17,\n g: 255 & map$1[str[2]] * 17,\n b: 255 & map$1[str[3]] * 17,\n a: len === 5 ? map$1[str[4]] * 17 : 255\n };\n } else if (len === 7 || len === 9) {\n ret = {\n r: map$1[str[1]] << 4 | map$1[str[2]],\n g: map$1[str[3]] << 4 | map$1[str[4]],\n b: map$1[str[5]] << 4 | map$1[str[6]],\n a: len === 9 ? (map$1[str[7]] << 4 | map$1[str[8]]) : 255\n };\n }\n }\n return ret;\n}\nconst alpha = (a, f) => a < 255 ? f(a) : '';\nfunction hexString(v) {\n var f = isShort(v) ? h1 : h2;\n return v\n ? '#' + f(v.r) + f(v.g) + f(v.b) + alpha(v.a, f)\n : undefined;\n}\n\nconst HUE_RE = /^(hsla?|hwb|hsv)\\(\\s*([-+.e\\d]+)(?:deg)?[\\s,]+([-+.e\\d]+)%[\\s,]+([-+.e\\d]+)%(?:[\\s,]+([-+.e\\d]+)(%)?)?\\s*\\)$/;\nfunction hsl2rgbn(h, s, l) {\n const a = s * Math.min(l, 1 - l);\n const f = (n, k = (n + h / 30) % 12) => l - a * Math.max(Math.min(k - 3, 9 - k, 1), -1);\n return [f(0), f(8), f(4)];\n}\nfunction hsv2rgbn(h, s, v) {\n const f = (n, k = (n + h / 60) % 6) => v - v * s * Math.max(Math.min(k, 4 - k, 1), 0);\n return [f(5), f(3), f(1)];\n}\nfunction hwb2rgbn(h, w, b) {\n const rgb = hsl2rgbn(h, 1, 0.5);\n let i;\n if (w + b > 1) {\n i = 1 / (w + b);\n w *= i;\n b *= i;\n }\n for (i = 0; i < 3; i++) {\n rgb[i] *= 1 - w - b;\n rgb[i] += w;\n }\n return rgb;\n}\nfunction hueValue(r, g, b, d, max) {\n if (r === max) {\n return ((g - b) / d) + (g < b ? 6 : 0);\n }\n if (g === max) {\n return (b - r) / d + 2;\n }\n return (r - g) / d + 4;\n}\nfunction rgb2hsl(v) {\n const range = 255;\n const r = v.r / range;\n const g = v.g / range;\n const b = v.b / range;\n const max = Math.max(r, g, b);\n const min = Math.min(r, g, b);\n const l = (max + min) / 2;\n let h, s, d;\n if (max !== min) {\n d = max - min;\n s = l > 0.5 ? d / (2 - max - min) : d / (max + min);\n h = hueValue(r, g, b, d, max);\n h = h * 60 + 0.5;\n }\n return [h | 0, s || 0, l];\n}\nfunction calln(f, a, b, c) {\n return (\n Array.isArray(a)\n ? f(a[0], a[1], a[2])\n : f(a, b, c)\n ).map(n2b);\n}\nfunction hsl2rgb(h, s, l) {\n return calln(hsl2rgbn, h, s, l);\n}\nfunction hwb2rgb(h, w, b) {\n return calln(hwb2rgbn, h, w, b);\n}\nfunction hsv2rgb(h, s, v) {\n return calln(hsv2rgbn, h, s, v);\n}\nfunction hue(h) {\n return (h % 360 + 360) % 360;\n}\nfunction hueParse(str) {\n const m = HUE_RE.exec(str);\n let a = 255;\n let v;\n if (!m) {\n return;\n }\n if (m[5] !== v) {\n a = m[6] ? p2b(+m[5]) : n2b(+m[5]);\n }\n const h = hue(+m[2]);\n const p1 = +m[3] / 100;\n const p2 = +m[4] / 100;\n if (m[1] === 'hwb') {\n v = hwb2rgb(h, p1, p2);\n } else if (m[1] === 'hsv') {\n v = hsv2rgb(h, p1, p2);\n } else {\n v = hsl2rgb(h, p1, p2);\n }\n return {\n r: v[0],\n g: v[1],\n b: v[2],\n a: a\n };\n}\nfunction rotate(v, deg) {\n var h = rgb2hsl(v);\n h[0] = hue(h[0] + deg);\n h = hsl2rgb(h);\n v.r = h[0];\n v.g = h[1];\n v.b = h[2];\n}\nfunction hslString(v) {\n if (!v) {\n return;\n }\n const a = rgb2hsl(v);\n const h = a[0];\n const s = n2p(a[1]);\n const l = n2p(a[2]);\n return v.a < 255\n ? `hsla(${h}, ${s}%, ${l}%, ${b2n(v.a)})`\n : `hsl(${h}, ${s}%, ${l}%)`;\n}\n\nconst map = {\n x: 'dark',\n Z: 'light',\n Y: 're',\n X: 'blu',\n W: 'gr',\n V: 'medium',\n U: 'slate',\n A: 'ee',\n T: 'ol',\n S: 'or',\n B: 'ra',\n C: 'lateg',\n D: 'ights',\n R: 'in',\n Q: 'turquois',\n E: 'hi',\n P: 'ro',\n O: 'al',\n N: 'le',\n M: 'de',\n L: 'yello',\n F: 'en',\n K: 'ch',\n G: 'arks',\n H: 'ea',\n I: 'ightg',\n J: 'wh'\n};\nconst names$1 = {\n OiceXe: 'f0f8ff',\n antiquewEte: 'faebd7',\n aqua: 'ffff',\n aquamarRe: '7fffd4',\n azuY: 'f0ffff',\n beige: 'f5f5dc',\n bisque: 'ffe4c4',\n black: '0',\n blanKedOmond: 'ffebcd',\n Xe: 'ff',\n XeviTet: '8a2be2',\n bPwn: 'a52a2a',\n burlywood: 'deb887',\n caMtXe: '5f9ea0',\n KartYuse: '7fff00',\n KocTate: 'd2691e',\n cSO: 'ff7f50',\n cSnflowerXe: '6495ed',\n cSnsilk: 'fff8dc',\n crimson: 'dc143c',\n cyan: 'ffff',\n xXe: '8b',\n xcyan: '8b8b',\n xgTMnPd: 'b8860b',\n xWay: 'a9a9a9',\n xgYF: '6400',\n xgYy: 'a9a9a9',\n xkhaki: 'bdb76b',\n xmagFta: '8b008b',\n xTivegYF: '556b2f',\n xSange: 'ff8c00',\n xScEd: '9932cc',\n xYd: '8b0000',\n xsOmon: 'e9967a',\n xsHgYF: '8fbc8f',\n xUXe: '483d8b',\n xUWay: '2f4f4f',\n xUgYy: '2f4f4f',\n xQe: 'ced1',\n xviTet: '9400d3',\n dAppRk: 'ff1493',\n dApskyXe: 'bfff',\n dimWay: '696969',\n dimgYy: '696969',\n dodgerXe: '1e90ff',\n fiYbrick: 'b22222',\n flSOwEte: 'fffaf0',\n foYstWAn: '228b22',\n fuKsia: 'ff00ff',\n gaRsbSo: 'dcdcdc',\n ghostwEte: 'f8f8ff',\n gTd: 'ffd700',\n gTMnPd: 'daa520',\n Way: '808080',\n gYF: '8000',\n gYFLw: 'adff2f',\n gYy: '808080',\n honeyMw: 'f0fff0',\n hotpRk: 'ff69b4',\n RdianYd: 'cd5c5c',\n Rdigo: '4b0082',\n ivSy: 'fffff0',\n khaki: 'f0e68c',\n lavFMr: 'e6e6fa',\n lavFMrXsh: 'fff0f5',\n lawngYF: '7cfc00',\n NmoncEffon: 'fffacd',\n ZXe: 'add8e6',\n ZcSO: 'f08080',\n Zcyan: 'e0ffff',\n ZgTMnPdLw: 'fafad2',\n ZWay: 'd3d3d3',\n ZgYF: '90ee90',\n ZgYy: 'd3d3d3',\n ZpRk: 'ffb6c1',\n ZsOmon: 'ffa07a',\n ZsHgYF: '20b2aa',\n ZskyXe: '87cefa',\n ZUWay: '778899',\n ZUgYy: '778899',\n ZstAlXe: 'b0c4de',\n ZLw: 'ffffe0',\n lime: 'ff00',\n limegYF: '32cd32',\n lRF: 'faf0e6',\n magFta: 'ff00ff',\n maPon: '800000',\n VaquamarRe: '66cdaa',\n VXe: 'cd',\n VScEd: 'ba55d3',\n VpurpN: '9370db',\n VsHgYF: '3cb371',\n VUXe: '7b68ee',\n VsprRggYF: 'fa9a',\n VQe: '48d1cc',\n VviTetYd: 'c71585',\n midnightXe: '191970',\n mRtcYam: 'f5fffa',\n mistyPse: 'ffe4e1',\n moccasR: 'ffe4b5',\n navajowEte: 'ffdead',\n navy: '80',\n Tdlace: 'fdf5e6',\n Tive: '808000',\n TivedBb: '6b8e23',\n Sange: 'ffa500',\n SangeYd: 'ff4500',\n ScEd: 'da70d6',\n pOegTMnPd: 'eee8aa',\n pOegYF: '98fb98',\n pOeQe: 'afeeee',\n pOeviTetYd: 'db7093',\n papayawEp: 'ffefd5',\n pHKpuff: 'ffdab9',\n peru: 'cd853f',\n pRk: 'ffc0cb',\n plum: 'dda0dd',\n powMrXe: 'b0e0e6',\n purpN: '800080',\n YbeccapurpN: '663399',\n Yd: 'ff0000',\n Psybrown: 'bc8f8f',\n PyOXe: '4169e1',\n saddNbPwn: '8b4513',\n sOmon: 'fa8072',\n sandybPwn: 'f4a460',\n sHgYF: '2e8b57',\n sHshell: 'fff5ee',\n siFna: 'a0522d',\n silver: 'c0c0c0',\n skyXe: '87ceeb',\n UXe: '6a5acd',\n UWay: '708090',\n UgYy: '708090',\n snow: 'fffafa',\n sprRggYF: 'ff7f',\n stAlXe: '4682b4',\n tan: 'd2b48c',\n teO: '8080',\n tEstN: 'd8bfd8',\n tomato: 'ff6347',\n Qe: '40e0d0',\n viTet: 'ee82ee',\n JHt: 'f5deb3',\n wEte: 'ffffff',\n wEtesmoke: 'f5f5f5',\n Lw: 'ffff00',\n LwgYF: '9acd32'\n};\nfunction unpack() {\n const unpacked = {};\n const keys = Object.keys(names$1);\n const tkeys = Object.keys(map);\n let i, j, k, ok, nk;\n for (i = 0; i < keys.length; i++) {\n ok = nk = keys[i];\n for (j = 0; j < tkeys.length; j++) {\n k = tkeys[j];\n nk = nk.replace(k, map[k]);\n }\n k = parseInt(names$1[ok], 16);\n unpacked[nk] = [k >> 16 & 0xFF, k >> 8 & 0xFF, k & 0xFF];\n }\n return unpacked;\n}\n\nlet names;\nfunction nameParse(str) {\n if (!names) {\n names = unpack();\n names.transparent = [0, 0, 0, 0];\n }\n const a = names[str.toLowerCase()];\n return a && {\n r: a[0],\n g: a[1],\n b: a[2],\n a: a.length === 4 ? a[3] : 255\n };\n}\n\nconst RGB_RE = /^rgba?\\(\\s*([-+.\\d]+)(%)?[\\s,]+([-+.e\\d]+)(%)?[\\s,]+([-+.e\\d]+)(%)?(?:[\\s,/]+([-+.e\\d]+)(%)?)?\\s*\\)$/;\nfunction rgbParse(str) {\n const m = RGB_RE.exec(str);\n let a = 255;\n let r, g, b;\n if (!m) {\n return;\n }\n if (m[7] !== r) {\n const v = +m[7];\n a = m[8] ? p2b(v) : lim(v * 255, 0, 255);\n }\n r = +m[1];\n g = +m[3];\n b = +m[5];\n r = 255 & (m[2] ? p2b(r) : lim(r, 0, 255));\n g = 255 & (m[4] ? p2b(g) : lim(g, 0, 255));\n b = 255 & (m[6] ? p2b(b) : lim(b, 0, 255));\n return {\n r: r,\n g: g,\n b: b,\n a: a\n };\n}\nfunction rgbString(v) {\n return v && (\n v.a < 255\n ? `rgba(${v.r}, ${v.g}, ${v.b}, ${b2n(v.a)})`\n : `rgb(${v.r}, ${v.g}, ${v.b})`\n );\n}\n\nconst to = v => v <= 0.0031308 ? v * 12.92 : Math.pow(v, 1.0 / 2.4) * 1.055 - 0.055;\nconst from = v => v <= 0.04045 ? v / 12.92 : Math.pow((v + 0.055) / 1.055, 2.4);\nfunction interpolate(rgb1, rgb2, t) {\n const r = from(b2n(rgb1.r));\n const g = from(b2n(rgb1.g));\n const b = from(b2n(rgb1.b));\n return {\n r: n2b(to(r + t * (from(b2n(rgb2.r)) - r))),\n g: n2b(to(g + t * (from(b2n(rgb2.g)) - g))),\n b: n2b(to(b + t * (from(b2n(rgb2.b)) - b))),\n a: rgb1.a + t * (rgb2.a - rgb1.a)\n };\n}\n\nfunction modHSL(v, i, ratio) {\n if (v) {\n let tmp = rgb2hsl(v);\n tmp[i] = Math.max(0, Math.min(tmp[i] + tmp[i] * ratio, i === 0 ? 360 : 1));\n tmp = hsl2rgb(tmp);\n v.r = tmp[0];\n v.g = tmp[1];\n v.b = tmp[2];\n }\n}\nfunction clone(v, proto) {\n return v ? Object.assign(proto || {}, v) : v;\n}\nfunction fromObject(input) {\n var v = {r: 0, g: 0, b: 0, a: 255};\n if (Array.isArray(input)) {\n if (input.length >= 3) {\n v = {r: input[0], g: input[1], b: input[2], a: 255};\n if (input.length > 3) {\n v.a = n2b(input[3]);\n }\n }\n } else {\n v = clone(input, {r: 0, g: 0, b: 0, a: 1});\n v.a = n2b(v.a);\n }\n return v;\n}\nfunction functionParse(str) {\n if (str.charAt(0) === 'r') {\n return rgbParse(str);\n }\n return hueParse(str);\n}\nclass Color {\n constructor(input) {\n if (input instanceof Color) {\n return input;\n }\n const type = typeof input;\n let v;\n if (type === 'object') {\n v = fromObject(input);\n } else if (type === 'string') {\n v = hexParse(input) || nameParse(input) || functionParse(input);\n }\n this._rgb = v;\n this._valid = !!v;\n }\n get valid() {\n return this._valid;\n }\n get rgb() {\n var v = clone(this._rgb);\n if (v) {\n v.a = b2n(v.a);\n }\n return v;\n }\n set rgb(obj) {\n this._rgb = fromObject(obj);\n }\n rgbString() {\n return this._valid ? rgbString(this._rgb) : undefined;\n }\n hexString() {\n return this._valid ? hexString(this._rgb) : undefined;\n }\n hslString() {\n return this._valid ? hslString(this._rgb) : undefined;\n }\n mix(color, weight) {\n if (color) {\n const c1 = this.rgb;\n const c2 = color.rgb;\n let w2;\n const p = weight === w2 ? 0.5 : weight;\n const w = 2 * p - 1;\n const a = c1.a - c2.a;\n const w1 = ((w * a === -1 ? w : (w + a) / (1 + w * a)) + 1) / 2.0;\n w2 = 1 - w1;\n c1.r = 0xFF & w1 * c1.r + w2 * c2.r + 0.5;\n c1.g = 0xFF & w1 * c1.g + w2 * c2.g + 0.5;\n c1.b = 0xFF & w1 * c1.b + w2 * c2.b + 0.5;\n c1.a = p * c1.a + (1 - p) * c2.a;\n this.rgb = c1;\n }\n return this;\n }\n interpolate(color, t) {\n if (color) {\n this._rgb = interpolate(this._rgb, color._rgb, t);\n }\n return this;\n }\n clone() {\n return new Color(this.rgb);\n }\n alpha(a) {\n this._rgb.a = n2b(a);\n return this;\n }\n clearer(ratio) {\n const rgb = this._rgb;\n rgb.a *= 1 - ratio;\n return this;\n }\n greyscale() {\n const rgb = this._rgb;\n const val = round(rgb.r * 0.3 + rgb.g * 0.59 + rgb.b * 0.11);\n rgb.r = rgb.g = rgb.b = val;\n return this;\n }\n opaquer(ratio) {\n const rgb = this._rgb;\n rgb.a *= 1 + ratio;\n return this;\n }\n negate() {\n const v = this._rgb;\n v.r = 255 - v.r;\n v.g = 255 - v.g;\n v.b = 255 - v.b;\n return this;\n }\n lighten(ratio) {\n modHSL(this._rgb, 2, ratio);\n return this;\n }\n darken(ratio) {\n modHSL(this._rgb, 2, -ratio);\n return this;\n }\n saturate(ratio) {\n modHSL(this._rgb, 1, ratio);\n return this;\n }\n desaturate(ratio) {\n modHSL(this._rgb, 1, -ratio);\n return this;\n }\n rotate(deg) {\n rotate(this._rgb, deg);\n return this;\n }\n}\n\nfunction index_esm(input) {\n return new Color(input);\n}\n\nexport { Color, b2n, b2p, index_esm as default, hexParse, hexString, hsl2rgb, hslString, hsv2rgb, hueParse, hwb2rgb, lim, n2b, n2p, nameParse, p2b, rgb2hsl, rgbParse, rgbString, rotate, round };\n"],"names":["round","v","lim","l","h","Math","max","min","p2b","n2b","b2n","n2p","map$1","A","B","C","D","E","F","a","b","c","d","e","f","hex","h1","h2","eq","hexParse","str","ret","len","length","r","g","hexString","isShort","alpha","undefined","HUE_RE","hsl2rgbn","s","n","k","hsv2rgbn","hwb2rgbn","w","rgb","i","rgb2hsl","hueValue","calln","Array","isArray","map","hsl2rgb","hwb2rgb","hsv2rgb","hue","hueParse","m","exec","p1","p2","rotate","deg","hslString","x","Z","Y","X","W","V","U","T","S","R","Q","P","O","N","M","L","K","G","H","I","J","names$1","OiceXe","antiquewEte","aqua","aquamarRe","azuY","beige","bisque","black","blanKedOmond","Xe","XeviTet","bPwn","burlywood","caMtXe","KartYuse","KocTate","cSO","cSnflowerXe","cSnsilk","crimson","cyan","xXe","xcyan","xgTMnPd","xWay","xgYF","xgYy","xkhaki","xmagFta","xTivegYF","xSange","xScEd","xYd","xsOmon","xsHgYF","xUXe","xUWay","xUgYy","xQe","xviTet","dAppRk","dApskyXe","dimWay","dimgYy","dodgerXe","fiYbrick","flSOwEte","foYstWAn","fuKsia","gaRsbSo","ghostwEte","gTd","gTMnPd","Way","gYF","gYFLw","gYy","honeyMw","hotpRk","RdianYd","Rdigo","ivSy","khaki","lavFMr","lavFMrXsh","lawngYF","NmoncEffon","ZXe","ZcSO","Zcyan","ZgTMnPdLw","ZWay","ZgYF","ZgYy","ZpRk","ZsOmon","ZsHgYF","ZskyXe","ZUWay","ZUgYy","ZstAlXe","ZLw","lime","limegYF","lRF","magFta","maPon","VaquamarRe","VXe","VScEd","VpurpN","VsHgYF","VUXe","VsprRggYF","VQe","VviTetYd","midnightXe","mRtcYam","mistyPse","moccasR","navajowEte","navy","Tdlace","Tive","TivedBb","Sange","SangeYd","ScEd","pOegTMnPd","pOegYF","pOeQe","pOeviTetYd","papayawEp","pHKpuff","peru","pRk","plum","powMrXe","purpN","YbeccapurpN","Yd","Psybrown","PyOXe","saddNbPwn","sOmon","sandybPwn","sHgYF","sHshell","siFna","silver","skyXe","UXe","UWay","UgYy","snow","sprRggYF","stAlXe","tan","teO","tEstN","tomato","Qe","viTet","JHt","wEte","wEtesmoke","Lw","LwgYF","names","nameParse","unpacked","keys","Object","tkeys","j","ok","nk","replace","parseInt","unpack","transparent","toLowerCase","RGB_RE","rgbParse","rgbString","to","pow","from","modHSL","ratio","tmp","clone","proto","assign","fromObject","input","Color","constructor","type","charAt","this","_rgb","_valid","valid","obj","mix","color","weight","c1","c2","w2","p","w1","interpolate","t","rgb1","rgb2","clearer","greyscale","val","opaquer","negate","lighten","darken","saturate","desaturate"],"mappings":";;;;;;AAMA,SAASA,EAAMC,GACb,OAAOA,EAAI,GAAM,CACnB,CACK,MAACC,EAAM,CAACD,EAAGE,EAAGC,IAAMC,KAAKC,IAAID,KAAKE,IAAIN,EAAGG,GAAID,GAClD,SAASK,EAAIP,GACX,OAAOC,EAAIF,EAAU,KAAJC,GAAW,EAAG,IACjC,CAIA,SAASQ,EAAIR,GACX,OAAOC,EAAIF,EAAU,IAAJC,GAAU,EAAG,IAChC,CACA,SAASS,EAAIT,GACX,OAAOC,EAAIF,EAAMC,EAAI,MAAQ,IAAK,EAAG,EACvC,CACA,SAASU,EAAIV,GACX,OAAOC,EAAIF,EAAU,IAAJC,GAAU,EAAG,IAChC,CAEA,MAAMW,EAAQ,CAAC,EAAG,EAAG,EAAG,EAAG,EAAG,EAAG,EAAG,EAAG,EAAG,EAAG,EAAG,EAAG,EAAG,EAAG,EAAG,EAAG,EAAG,EAAG,EAAG,EAAGC,EAAG,GAAIC,EAAG,GAAIC,EAAG,GAAIC,EAAG,GAAIC,EAAG,GAAIC,EAAG,GAAIC,EAAG,GAAIC,EAAG,GAAIC,EAAG,GAAIC,EAAG,GAAIC,EAAG,GAAIC,EAAG,IACrJC,EAAM,IAAI,oBACVC,EAAKN,GAAKK,EAAQ,GAAJL,GACdO,EAAKP,GAAKK,GAAS,IAAJL,IAAa,GAAKK,EAAQ,GAAJL,GACrCQ,EAAKR,IAAW,IAAJA,IAAa,IAAY,GAAJA,GAEvC,SAASS,EAASC,GAChB,IACIC,EADAC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AAKC,KACb5P,GAAK,EAAIgP,EACNW,IACR,CACD,SAAAkB,GACE,MAAMhP,EAAM8N,KAAKC,KACXkB,EAAMjS,EAAc,GAARgD,EAAId,EAAkB,IAARc,EAAIb,EAAmB,IAARa,EAAI5B,GAEnD,OADA4B,EAAId,EAAIc,EAAIb,EAAIa,EAAI5B,EAAI6Q,EACjBnB,IACR,CACD,OAAAoB,CAAQ/B,GAGN,OAFYW,KAAKC,KACb5P,GAAK,EAAIgP,EACNW,IACR,CACD,MAAAqB,GACE,MAAMlS,EAAI6Q,KAAKC,KAIf,OAHA9Q,EAAEiC,EAAI,IAAMjC,EAAEiC,EACdjC,EAAEkC,EAAI,IAAMlC,EAAEkC,EACdlC,EAAEmB,EAAI,IAAMnB,EAAEmB,EACP0P,IACR,CACD,OAAAsB,CAAQjC,GAEN,OADAD,EAAOY,KAAKC,KAAM,EAAGZ,GACdW,IACR,CACD,MAAAuB,CAAOlC,GAEL,OADAD,EAAOY,KAAKC,KAAM,GAAIZ,GACfW,IACR,CACD,QAAAwB,CAASnC,GAEP,OADAD,EAAOY,KAAKC,KAAM,EAAGZ,GACdW,IACR,CACD,UAAAyB,CAAWpC,GAET,OADAD,EAAOY,KAAKC,KAAM,GAAIZ,GACfW,IACR,CACD,MAAA7M,CAAOC,GAEL,OADAD,EAAO6M,KAAKC,KAAM7M,GACX4M,IACR"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.mjs.js","sources":["../../../../../node_modules/@radix-ui/number/dist/index.mjs"],"sourcesContent":["// packages/core/number/src/number.ts\nfunction clamp(value, [min, max]) {\n return Math.min(max, Math.max(min, value));\n}\nexport {\n clamp\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["clamp","value","min","max","Math"],"mappings":"AACA,SAASA,EAAMC,GAAQC,EAAKC,IAC1B,OAAOC,KAAKF,IAAIC,EAAKC,KAAKD,IAAID,EAAKD,GACrC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.mjs.js","sources":["../../../../../node_modules/@radix-ui/primitive/dist/index.mjs"],"sourcesContent":["// packages/core/primitive/src/primitive.tsx\nfunction composeEventHandlers(originalEventHandler, ourEventHandler, { checkForDefaultPrevented = true } = {}) {\n return function handleEvent(event) {\n originalEventHandler?.(event);\n if (checkForDefaultPrevented === false || !event.defaultPrevented) {\n return ourEventHandler?.(event);\n }\n };\n}\nexport {\n composeEventHandlers\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["composeEventHandlers","originalEventHandler","ourEventHandler","checkForDefaultPrevented","event","defaultPrevented"],"mappings":"AACA,SAASA,EAAqBC,EAAsBC,GAAiBC,yBAAEA,GAA2B,GAAS,IACzG,OAAO,SAAqBC,GAE1B,GADAH,IAAuBG,IACU,IAA7BD,IAAuCC,EAAMC,iBAC/C,OAAOH,IAAkBE,EAE/B,CACA"}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
import e from"react";import{createContextScope as r}from"../../react-context/dist/index.mjs.js";import{createCollection as o}from"../../react-collection/dist/index.mjs.js";import{useComposedRefs as t}from"../../react-compose-refs/dist/index.mjs.js";import{composeEventHandlers as i}from"../../primitive/dist/index.mjs.js";import{useControllableState as n}from"../../react-use-controllable-state/dist/index.mjs.js";import{Primitive as a}from"../../react-primitive/dist/index.mjs.js";import{createCollapsibleScope as s,Root as c,Trigger as d,Content as l}from"../../react-collapsible/dist/index.mjs.js";import{useId as p}from"../../react-id/dist/index.mjs.js";import{useDirection as f}from"../../react-direction/dist/index.mjs.js";import{j as m}from"../../../../_virtual/jsx-runtime.js";var u="Accordion",j=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[x,b,h]=o(u),[v,w]=r(u,[h,s]),A=s(),g=e.forwardRef(((e,r)=>{const{type:o,...t}=e,i=t,n=t;return m.jsx(x.Provider,{scope:e.__scopeAccordion,children:"multiple"===o?m.jsx(k,{...n,ref:r}):m.jsx(R,{...i,ref:r})})}));g.displayName=u;var[_,y]=v(u),[C,I]=v(u,{collapsible:!1}),R=e.forwardRef(((r,o)=>{const{value:t,defaultValue:i,onValueChange:a=(()=>{}),collapsible:s=!1,...c}=r,[d,l]=n({prop:t,defaultProp:i,onChange:a});return m.jsx(_,{scope:r.__scopeAccordion,value:d?[d]:[],onItemOpen:l,onItemClose:e.useCallback((()=>s&&l("")),[s,l]),children:m.jsx(C,{scope:r.__scopeAccordion,collapsible:s,children:m.jsx(O,{...c,ref:o})})})})),k=e.forwardRef(((r,o)=>{const{value:t,defaultValue:i,onValueChange:a=(()=>{}),...s}=r,[c=[],d]=n({prop:t,defaultProp:i,onChange:a}),l=e.useCallback((e=>d(((r=[])=>[...r,e]))),[d]),p=e.useCallback((e=>d(((r=[])=>r.filter((r=>r!==e))))),[d]);return m.jsx(_,{scope:r.__scopeAccordion,value:c,onItemOpen:l,onItemClose:p,children:m.jsx(C,{scope:r.__scopeAccordion,collapsible:!0,children:m.jsx(O,{...s,ref:o})})})})),[D,N]=v(u),O=e.forwardRef(((r,o)=>{const{__scopeAccordion:n,disabled:s,dir:c,orientation:d="vertical",...l}=r,p=e.useRef(null),u=t(p,o),h=b(n),v="ltr"===f(c),w=i(r.onKeyDown,(e=>{if(!j.includes(e.key))return;const r=e.target,o=h().filter((e=>!e.ref.current?.disabled)),t=o.findIndex((e=>e.ref.current===r)),i=o.length;if(-1===t)return;e.preventDefault();let n=t;const a=i-1,s=()=>{n=t+1,n>a&&(n=0)},c=()=>{n=t-1,n<0&&(n=a)};switch(e.key){case"Home":n=0;break;case"End":n=a;break;case"ArrowRight":"horizontal"===d&&(v?s():c());break;case"ArrowDown":"vertical"===d&&s();break;case"ArrowLeft":"horizontal"===d&&(v?c():s());break;case"ArrowUp":"vertical"===d&&c()}const l=n%i;o[l].ref.current?.focus()}));return m.jsx(D,{scope:n,disabled:s,direction:c,orientation:d,children:m.jsx(x.Slot,{scope:n,children:m.jsx(a.div,{...l,"data-orientation":d,ref:u,onKeyDown:s?void 0:w})})})})),V="AccordionItem",[H,P]=v(V),z=e.forwardRef(((e,r)=>{const{__scopeAccordion:o,value:t,...i}=e,n=N(V,o),a=y(V,o),s=A(o),d=p(),l=t&&a.value.includes(t)||!1,f=n.disabled||e.disabled;return m.jsx(H,{scope:o,open:l,disabled:f,triggerId:d,children:m.jsx(c,{"data-orientation":n.orientation,"data-state":q(l),...s,...i,ref:r,disabled:f,open:l,onOpenChange:e=>{e?a.onItemOpen(t):a.onItemClose(t)}})})}));z.displayName=V;var E="AccordionHeader",K=e.forwardRef(((e,r)=>{const{__scopeAccordion:o,...t}=e,i=N(u,o),n=P(E,o);return m.jsx(a.h3,{"data-orientation":i.orientation,"data-state":q(n.open),"data-disabled":n.disabled?"":void 0,...t,ref:r})}));K.displayName=E;var L="AccordionTrigger",S=e.forwardRef(((e,r)=>{const{__scopeAccordion:o,...t}=e,i=N(u,o),n=P(L,o),a=I(L,o),s=A(o);return m.jsx(x.ItemSlot,{scope:o,children:m.jsx(d,{"aria-disabled":n.open&&!a.collapsible||void 0,"data-orientation":i.orientation,id:n.triggerId,...s,...t,ref:r})})}));S.displayName=L;var T="AccordionContent",U=e.forwardRef(((e,r)=>{const{__scopeAccordion:o,...t}=e,i=N(u,o),n=P(T,o),a=A(o);return m.jsx(l,{role:"region","aria-labelledby":n.triggerId,"data-orientation":i.orientation,...a,...t,ref:r,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})}));function q(e){return e?"open":"closed"}U.displayName=T;var B=g,F=z,G=K,J=S,M=U;export{g as Accordion,U as AccordionContent,K as AccordionHeader,z as AccordionItem,S as AccordionTrigger,M as Content,G as Header,F as Item,B as Root,J as Trigger,w as createAccordionScope};
|
2
|
+
//# sourceMappingURL=index.mjs.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.mjs.js","sources":["../../../../../node_modules/@radix-ui/react-accordion/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/accordion/src/Accordion.tsx\nimport React from \"react\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { createCollection } from \"@radix-ui/react-collection\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport * as CollapsiblePrimitive from \"@radix-ui/react-collapsible\";\nimport { createCollapsibleScope } from \"@radix-ui/react-collapsible\";\nimport { useId } from \"@radix-ui/react-id\";\nimport { useDirection } from \"@radix-ui/react-direction\";\nimport { jsx } from \"react/jsx-runtime\";\nvar ACCORDION_NAME = \"Accordion\";\nvar ACCORDION_KEYS = [\"Home\", \"End\", \"ArrowDown\", \"ArrowUp\", \"ArrowLeft\", \"ArrowRight\"];\nvar [Collection, useCollection, createCollectionScope] = createCollection(ACCORDION_NAME);\nvar [createAccordionContext, createAccordionScope] = createContextScope(ACCORDION_NAME, [\n createCollectionScope,\n createCollapsibleScope\n]);\nvar useCollapsibleScope = createCollapsibleScope();\nvar Accordion = React.forwardRef(\n (props, forwardedRef) => {\n const { type, ...accordionProps } = props;\n const singleProps = accordionProps;\n const multipleProps = accordionProps;\n return /* @__PURE__ */ jsx(Collection.Provider, { scope: props.__scopeAccordion, children: type === \"multiple\" ? /* @__PURE__ */ jsx(AccordionImplMultiple, { ...multipleProps, ref: forwardedRef }) : /* @__PURE__ */ jsx(AccordionImplSingle, { ...singleProps, ref: forwardedRef }) });\n }\n);\nAccordion.displayName = ACCORDION_NAME;\nvar [AccordionValueProvider, useAccordionValueContext] = createAccordionContext(ACCORDION_NAME);\nvar [AccordionCollapsibleProvider, useAccordionCollapsibleContext] = createAccordionContext(\n ACCORDION_NAME,\n { collapsible: false }\n);\nvar AccordionImplSingle = React.forwardRef(\n (props, forwardedRef) => {\n const {\n value: valueProp,\n defaultValue,\n onValueChange = () => {\n },\n collapsible = false,\n ...accordionSingleProps\n } = props;\n const [value, setValue] = useControllableState({\n prop: valueProp,\n defaultProp: defaultValue,\n onChange: onValueChange\n });\n return /* @__PURE__ */ jsx(\n AccordionValueProvider,\n {\n scope: props.__scopeAccordion,\n value: value ? [value] : [],\n onItemOpen: setValue,\n onItemClose: React.useCallback(() => collapsible && setValue(\"\"), [collapsible, setValue]),\n children: /* @__PURE__ */ jsx(AccordionCollapsibleProvider, { scope: props.__scopeAccordion, collapsible, children: /* @__PURE__ */ jsx(AccordionImpl, { ...accordionSingleProps, ref: forwardedRef }) })\n }\n );\n }\n);\nvar AccordionImplMultiple = React.forwardRef((props, forwardedRef) => {\n const {\n value: valueProp,\n defaultValue,\n onValueChange = () => {\n },\n ...accordionMultipleProps\n } = props;\n const [value = [], setValue] = useControllableState({\n prop: valueProp,\n defaultProp: defaultValue,\n onChange: onValueChange\n });\n const handleItemOpen = React.useCallback(\n (itemValue) => setValue((prevValue = []) => [...prevValue, itemValue]),\n [setValue]\n );\n const handleItemClose = React.useCallback(\n (itemValue) => setValue((prevValue = []) => prevValue.filter((value2) => value2 !== itemValue)),\n [setValue]\n );\n return /* @__PURE__ */ jsx(\n AccordionValueProvider,\n {\n scope: props.__scopeAccordion,\n value,\n onItemOpen: handleItemOpen,\n onItemClose: handleItemClose,\n children: /* @__PURE__ */ jsx(AccordionCollapsibleProvider, { scope: props.__scopeAccordion, collapsible: true, children: /* @__PURE__ */ jsx(AccordionImpl, { ...accordionMultipleProps, ref: forwardedRef }) })\n }\n );\n});\nvar [AccordionImplProvider, useAccordionContext] = createAccordionContext(ACCORDION_NAME);\nvar AccordionImpl = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAccordion, disabled, dir, orientation = \"vertical\", ...accordionProps } = props;\n const accordionRef = React.useRef(null);\n const composedRefs = useComposedRefs(accordionRef, forwardedRef);\n const getItems = useCollection(__scopeAccordion);\n const direction = useDirection(dir);\n const isDirectionLTR = direction === \"ltr\";\n const handleKeyDown = composeEventHandlers(props.onKeyDown, (event) => {\n if (!ACCORDION_KEYS.includes(event.key)) return;\n const target = event.target;\n const triggerCollection = getItems().filter((item) => !item.ref.current?.disabled);\n const triggerIndex = triggerCollection.findIndex((item) => item.ref.current === target);\n const triggerCount = triggerCollection.length;\n if (triggerIndex === -1) return;\n event.preventDefault();\n let nextIndex = triggerIndex;\n const homeIndex = 0;\n const endIndex = triggerCount - 1;\n const moveNext = () => {\n nextIndex = triggerIndex + 1;\n if (nextIndex > endIndex) {\n nextIndex = homeIndex;\n }\n };\n const movePrev = () => {\n nextIndex = triggerIndex - 1;\n if (nextIndex < homeIndex) {\n nextIndex = endIndex;\n }\n };\n switch (event.key) {\n case \"Home\":\n nextIndex = homeIndex;\n break;\n case \"End\":\n nextIndex = endIndex;\n break;\n case \"ArrowRight\":\n if (orientation === \"horizontal\") {\n if (isDirectionLTR) {\n moveNext();\n } else {\n movePrev();\n }\n }\n break;\n case \"ArrowDown\":\n if (orientation === \"vertical\") {\n moveNext();\n }\n break;\n case \"ArrowLeft\":\n if (orientation === \"horizontal\") {\n if (isDirectionLTR) {\n movePrev();\n } else {\n moveNext();\n }\n }\n break;\n case \"ArrowUp\":\n if (orientation === \"vertical\") {\n movePrev();\n }\n break;\n }\n const clampedIndex = nextIndex % triggerCount;\n triggerCollection[clampedIndex].ref.current?.focus();\n });\n return /* @__PURE__ */ jsx(\n AccordionImplProvider,\n {\n scope: __scopeAccordion,\n disabled,\n direction: dir,\n orientation,\n children: /* @__PURE__ */ jsx(Collection.Slot, { scope: __scopeAccordion, children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n ...accordionProps,\n \"data-orientation\": orientation,\n ref: composedRefs,\n onKeyDown: disabled ? void 0 : handleKeyDown\n }\n ) })\n }\n );\n }\n);\nvar ITEM_NAME = \"AccordionItem\";\nvar [AccordionItemProvider, useAccordionItemContext] = createAccordionContext(ITEM_NAME);\nvar AccordionItem = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAccordion, value, ...accordionItemProps } = props;\n const accordionContext = useAccordionContext(ITEM_NAME, __scopeAccordion);\n const valueContext = useAccordionValueContext(ITEM_NAME, __scopeAccordion);\n const collapsibleScope = useCollapsibleScope(__scopeAccordion);\n const triggerId = useId();\n const open = value && valueContext.value.includes(value) || false;\n const disabled = accordionContext.disabled || props.disabled;\n return /* @__PURE__ */ jsx(\n AccordionItemProvider,\n {\n scope: __scopeAccordion,\n open,\n disabled,\n triggerId,\n children: /* @__PURE__ */ jsx(\n CollapsiblePrimitive.Root,\n {\n \"data-orientation\": accordionContext.orientation,\n \"data-state\": getState(open),\n ...collapsibleScope,\n ...accordionItemProps,\n ref: forwardedRef,\n disabled,\n open,\n onOpenChange: (open2) => {\n if (open2) {\n valueContext.onItemOpen(value);\n } else {\n valueContext.onItemClose(value);\n }\n }\n }\n )\n }\n );\n }\n);\nAccordionItem.displayName = ITEM_NAME;\nvar HEADER_NAME = \"AccordionHeader\";\nvar AccordionHeader = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAccordion, ...headerProps } = props;\n const accordionContext = useAccordionContext(ACCORDION_NAME, __scopeAccordion);\n const itemContext = useAccordionItemContext(HEADER_NAME, __scopeAccordion);\n return /* @__PURE__ */ jsx(\n Primitive.h3,\n {\n \"data-orientation\": accordionContext.orientation,\n \"data-state\": getState(itemContext.open),\n \"data-disabled\": itemContext.disabled ? \"\" : void 0,\n ...headerProps,\n ref: forwardedRef\n }\n );\n }\n);\nAccordionHeader.displayName = HEADER_NAME;\nvar TRIGGER_NAME = \"AccordionTrigger\";\nvar AccordionTrigger = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAccordion, ...triggerProps } = props;\n const accordionContext = useAccordionContext(ACCORDION_NAME, __scopeAccordion);\n const itemContext = useAccordionItemContext(TRIGGER_NAME, __scopeAccordion);\n const collapsibleContext = useAccordionCollapsibleContext(TRIGGER_NAME, __scopeAccordion);\n const collapsibleScope = useCollapsibleScope(__scopeAccordion);\n return /* @__PURE__ */ jsx(Collection.ItemSlot, { scope: __scopeAccordion, children: /* @__PURE__ */ jsx(\n CollapsiblePrimitive.Trigger,\n {\n \"aria-disabled\": itemContext.open && !collapsibleContext.collapsible || void 0,\n \"data-orientation\": accordionContext.orientation,\n id: itemContext.triggerId,\n ...collapsibleScope,\n ...triggerProps,\n ref: forwardedRef\n }\n ) });\n }\n);\nAccordionTrigger.displayName = TRIGGER_NAME;\nvar CONTENT_NAME = \"AccordionContent\";\nvar AccordionContent = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAccordion, ...contentProps } = props;\n const accordionContext = useAccordionContext(ACCORDION_NAME, __scopeAccordion);\n const itemContext = useAccordionItemContext(CONTENT_NAME, __scopeAccordion);\n const collapsibleScope = useCollapsibleScope(__scopeAccordion);\n return /* @__PURE__ */ jsx(\n CollapsiblePrimitive.Content,\n {\n role: \"region\",\n \"aria-labelledby\": itemContext.triggerId,\n \"data-orientation\": accordionContext.orientation,\n ...collapsibleScope,\n ...contentProps,\n ref: forwardedRef,\n style: {\n [\"--radix-accordion-content-height\"]: \"var(--radix-collapsible-content-height)\",\n [\"--radix-accordion-content-width\"]: \"var(--radix-collapsible-content-width)\",\n ...props.style\n }\n }\n );\n }\n);\nAccordionContent.displayName = CONTENT_NAME;\nfunction getState(open) {\n return open ? \"open\" : \"closed\";\n}\nvar Root2 = Accordion;\nvar Item = AccordionItem;\nvar Header = AccordionHeader;\nvar Trigger2 = AccordionTrigger;\nvar Content2 = AccordionContent;\nexport {\n Accordion,\n AccordionContent,\n AccordionHeader,\n AccordionItem,\n AccordionTrigger,\n Content2 as Content,\n Header,\n Item,\n Root2 as Root,\n Trigger2 as Trigger,\n createAccordionScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["ACCORDION_NAME","ACCORDION_KEYS","Collection","useCollection","createCollectionScope","createCollection","createAccordionContext","createAccordionScope","createContextScope","createCollapsibleScope","useCollapsibleScope","Accordion","React","forwardRef","props","forwardedRef","type","accordionProps","singleProps","multipleProps","jsx","Provider","scope","__scopeAccordion","children","AccordionImplMultiple","ref","AccordionImplSingle","displayName","AccordionValueProvider","useAccordionValueContext","AccordionCollapsibleProvider","useAccordionCollapsibleContext","collapsible","value","valueProp","defaultValue","onValueChange","accordionSingleProps","setValue","useControllableState","prop","defaultProp","onChange","onItemOpen","onItemClose","useCallback","AccordionImpl","accordionMultipleProps","handleItemOpen","itemValue","prevValue","handleItemClose","filter","value2","AccordionImplProvider","useAccordionContext","disabled","dir","orientation","accordionRef","useRef","composedRefs","useComposedRefs","getItems","isDirectionLTR","useDirection","handleKeyDown","composeEventHandlers","onKeyDown","event","includes","key","target","triggerCollection","item","current","triggerIndex","findIndex","triggerCount","length","preventDefault","nextIndex","endIndex","moveNext","movePrev","clampedIndex","focus","direction","Slot","Primitive","div","ITEM_NAME","AccordionItemProvider","useAccordionItemContext","AccordionItem","accordionItemProps","accordionContext","valueContext","collapsibleScope","triggerId","useId","open","CollapsiblePrimitive.Root","getState","onOpenChange","open2","HEADER_NAME","AccordionHeader","headerProps","itemContext","h3","TRIGGER_NAME","AccordionTrigger","triggerProps","collapsibleContext","ItemSlot","CollapsiblePrimitive.Trigger","id","CONTENT_NAME","AccordionContent","contentProps","CollapsiblePrimitive.Content","role","style","Root2","Item","Header","Trigger2","Content2"],"mappings":"ixBAeA,IAAIA,EAAiB,YACjBC,EAAiB,CAAC,OAAQ,MAAO,YAAa,UAAW,YAAa,eACrEC,EAAYC,EAAeC,GAAyBC,EAAiBL,IACrEM,EAAwBC,GAAwBC,EAAmBR,EAAgB,CACtFI,EACAK,IAEEC,EAAsBD,IACtBE,EAAYC,EAAMC,YACpB,CAACC,EAAOC,KACN,MAAMC,KAAEA,KAASC,GAAmBH,EAC9BI,EAAcD,EACdE,EAAgBF,EACtB,OAAuBG,MAAIlB,EAAWmB,SAAU,CAAEC,MAAOR,EAAMS,iBAAkBC,SAAmB,aAATR,EAAsCI,EAAGA,IAACK,EAAuB,IAAKN,EAAeO,IAAKX,IAAkCK,EAAAA,IAAIO,EAAqB,IAAKT,EAAaQ,IAAKX,KAAkB,IAG7RJ,EAAUiB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