@getflip/swirl-components-react 0.48.2 → 0.49.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{file-manager.entry.45ca62ab.js → file-manager.entry.830b8fc2.js} +1 -1
- package/dist/floating-ui.dom.esm-ac7cc24e.79b318e4.js +780 -0
- package/dist/{index.f9a0f5aa.js → index.9cff0571.js} +119 -117
- package/dist/stencil-generated/index.d.ts +2 -0
- package/dist/{swirl-action-list-section.entry.182abd62.js → swirl-action-list-section.entry.ee68d289.js} +1 -1
- package/dist/{swirl-action-list_3.entry.76837ecc.js → swirl-action-list_3.entry.6504a8ba.js} +1 -1
- package/dist/{swirl-app-bar.entry.cb45297d.js → swirl-app-bar.entry.8ba1b91a.js} +1 -1
- package/dist/{swirl-app-icon.entry.8a1d5824.js → swirl-app-icon.entry.0fbd8c5a.js} +1 -1
- package/dist/{swirl-app-layout_7.entry.0d908ea9.js → swirl-app-layout_7.entry.b4639374.js} +1 -1
- package/dist/{swirl-autocomplete.entry.cc11e511.js → swirl-autocomplete.entry.3259cb8c.js} +2 -2
- package/dist/{swirl-avatar-group.entry.1c032b3b.js → swirl-avatar-group.entry.9c4fd376.js} +1 -1
- package/dist/{swirl-avatar.entry.aaddbbe8.js → swirl-avatar.entry.60921035.js} +1 -1
- package/dist/{swirl-badge.entry.28f73bcf.js → swirl-badge.entry.38fbe3a9.js} +1 -1
- package/dist/{swirl-banner.entry.aa1514ec.js → swirl-banner.entry.3af66cf1.js} +1 -1
- package/dist/{swirl-button-group.entry.53a5a03b.js → swirl-button-group.entry.12dbdf68.js} +1 -1
- package/dist/{swirl-button.entry.149796bd.js → swirl-button.entry.b09f0ad7.js} +1 -1
- package/dist/{swirl-card.entry.0e57886c.js → swirl-card.entry.542b287e.js} +1 -1
- package/dist/{swirl-carousel-slide.entry.44b3a161.js → swirl-carousel-slide.entry.e14e5885.js} +1 -1
- package/dist/{swirl-carousel.entry.27714e4c.js → swirl-carousel.entry.89f2c421.js} +1 -1
- package/dist/{swirl-checkbox.entry.1c7c7f05.js → swirl-checkbox.entry.1aaf955f.js} +1 -1
- package/dist/{swirl-chip.entry.12d68395.js → swirl-chip.entry.58ea9cac.js} +1 -1
- package/dist/{swirl-columns.entry.544c2d4c.js → swirl-columns.entry.02e9c0bf.js} +1 -1
- package/dist/swirl-components-react.js +99 -97
- package/dist/swirl-components-react.umd.cjs +45 -45
- package/dist/{swirl-console-layout.entry.96e8bcbf.js → swirl-console-layout.entry.8850c675.js} +1 -1
- package/dist/{swirl-date-input.entry.0c5103e5.js → swirl-date-input.entry.e9013405.js} +2 -2
- package/dist/{swirl-date-picker_2.entry.50f20f4b.js → swirl-date-picker_2.entry.c782747a.js} +1 -1
- package/dist/{swirl-description-list-item.entry.1d41d49b.js → swirl-description-list-item.entry.65cfb088.js} +1 -1
- package/dist/{swirl-description-list.entry.5275f9fe.js → swirl-description-list.entry.56d880c5.js} +1 -1
- package/dist/{swirl-dialog.entry.67f3ccaf.js → swirl-dialog.entry.b103b547.js} +1 -1
- package/dist/{swirl-file-uploader.entry.260e9fab.js → swirl-file-uploader.entry.4ab0bf5f.js} +1 -1
- package/dist/{swirl-file-viewer_7.entry.516092e1.js → swirl-file-viewer_7.entry.965855a7.js} +1 -1
- package/dist/{swirl-form-control.entry.ed75eb06.js → swirl-form-control.entry.3aa7f473.js} +1 -1
- package/dist/{swirl-form-group.entry.a75ae7ee.js → swirl-form-group.entry.5de77e4c.js} +1 -1
- package/dist/{swirl-heading.entry.e45faaf2.js → swirl-heading.entry.dc2b4cfb.js} +1 -1
- package/dist/{swirl-icon-add-photo.entry.610be1cf.js → swirl-icon-add-photo.entry.5cfc2073.js} +1 -1
- package/dist/{swirl-icon-add_6.entry.8cb93cff.js → swirl-icon-add_6.entry.7a97eb9f.js} +1 -1
- package/dist/{swirl-icon-admin-panel-settings.entry.ddb36217.js → swirl-icon-admin-panel-settings.entry.76eb86d9.js} +1 -1
- package/dist/{swirl-icon-ai.entry.25dd5264.js → swirl-icon-ai.entry.47b6c1e7.js} +1 -1
- package/dist/{swirl-icon-arrow-back.entry.ffc9928e.js → swirl-icon-arrow-back.entry.f687cfd8.js} +1 -1
- package/dist/{swirl-icon-arrow-downward_2.entry.01dd872e.js → swirl-icon-arrow-downward_2.entry.815faa7f.js} +1 -1
- package/dist/{swirl-icon-arrow-forward.entry.ac3f0c37.js → swirl-icon-arrow-forward.entry.2b49e585.js} +1 -1
- package/dist/{swirl-icon-arrow-left_4.entry.41ebca30.js → swirl-icon-arrow-left_4.entry.ff7509d9.js} +1 -1
- package/dist/{swirl-icon-arrow-right-small.entry.7c665359.js → swirl-icon-arrow-right-small.entry.f06d54c0.js} +1 -1
- package/dist/{swirl-icon-attachment.entry.5f2409f6.js → swirl-icon-attachment.entry.290a22f2.js} +1 -1
- package/dist/{swirl-icon-block.entry.cb5ca20b.js → swirl-icon-block.entry.a9e20d60.js} +1 -1
- package/dist/{swirl-icon-bookmark.entry.c3a789c0.js → swirl-icon-bookmark.entry.72cad80a.js} +1 -1
- package/dist/{swirl-icon-cancel_4.entry.8f6705d3.js → swirl-icon-cancel_4.entry.358eb370.js} +1 -1
- package/dist/{swirl-icon-chat-bubble.entry.75583e07.js → swirl-icon-chat-bubble.entry.5b0487bc.js} +1 -1
- package/dist/{swirl-icon-chats-filled.entry.3733574a.js → swirl-icon-chats-filled.entry.8701212a.js} +1 -1
- package/dist/{swirl-icon-chats-outlined.entry.eb4665ca.js → swirl-icon-chats-outlined.entry.e9750e5d.js} +1 -1
- package/dist/{swirl-icon-check-circle_3.entry.4b3c54a5.js → swirl-icon-check-circle_3.entry.a1530015.js} +1 -1
- package/dist/{swirl-icon-check-small_4.entry.79942831.js → swirl-icon-check-small_4.entry.315bcc4d.js} +1 -1
- package/dist/{swirl-icon-check-strong.entry.c32ec67b.js → swirl-icon-check-strong.entry.92a0d041.js} +1 -1
- package/dist/{swirl-icon-check.entry.a1c08cb5.js → swirl-icon-check.entry.bcefc692.js} +1 -1
- package/dist/{swirl-icon-chevron-left.entry.8772bba3.js → swirl-icon-chevron-left.entry.21589da5.js} +1 -1
- package/dist/{swirl-icon-chevron-right.entry.85b4a302.js → swirl-icon-chevron-right.entry.f007bd48.js} +1 -1
- package/dist/{swirl-icon-close-small.entry.c1619bf9.js → swirl-icon-close-small.entry.3a0e2095.js} +1 -1
- package/dist/{swirl-icon-close.entry.e31c63da.js → swirl-icon-close.entry.8d7368c3.js} +1 -1
- package/dist/{swirl-icon-cloud-upload.entry.85f21994.js → swirl-icon-cloud-upload.entry.f51484fe.js} +1 -1
- package/dist/{swirl-icon-column.entry.5eee78f3.js → swirl-icon-column.entry.a3d81040.js} +1 -1
- package/dist/{swirl-icon-comment.entry.ef1e5a3d.js → swirl-icon-comment.entry.78e2145e.js} +1 -1
- package/dist/{swirl-icon-copy.entry.3c213626.js → swirl-icon-copy.entry.1ac0bce3.js} +1 -1
- package/dist/{swirl-icon-date-range.entry.99b49236.js → swirl-icon-date-range.entry.68c3f20f.js} +1 -1
- package/dist/{swirl-icon-delete.entry.bceae424.js → swirl-icon-delete.entry.e6d56637.js} +1 -1
- package/dist/{swirl-icon-description.entry.e5ee03e2.js → swirl-icon-description.entry.c9f28e49.js} +1 -1
- package/dist/{swirl-icon-double-arrow-left.entry.0151dce4.js → swirl-icon-double-arrow-left.entry.b6ff6525.js} +1 -1
- package/dist/{swirl-icon-double-arrow-right.entry.958cd93b.js → swirl-icon-double-arrow-right.entry.2927b433.js} +1 -1
- package/dist/{swirl-icon-download.entry.2c4b1a51.js → swirl-icon-download.entry.d7718944.js} +1 -1
- package/dist/{swirl-icon-edit.entry.74ab3f25.js → swirl-icon-edit.entry.1d271cf1.js} +1 -1
- package/dist/{swirl-icon-emoji-mood.entry.a2e7c7bd.js → swirl-icon-emoji-mood.entry.045e18b0.js} +1 -1
- package/dist/{swirl-icon-emoji-satisfied.entry.999bc059.js → swirl-icon-emoji-satisfied.entry.6572e149.js} +1 -1
- package/dist/{swirl-icon-error_3.entry.e3414f76.js → swirl-icon-error_3.entry.6179ca2d.js} +1 -1
- package/dist/{swirl-icon-expand-more.entry.28932739.js → swirl-icon-expand-more.entry.491a24c1.js} +1 -1
- package/dist/{swirl-icon-filter.entry.4a4f2ea5.js → swirl-icon-filter.entry.481b5e7e.js} +1 -1
- package/dist/{swirl-icon-folder.entry.718e4512.js → swirl-icon-folder.entry.20554069.js} +1 -1
- package/dist/{swirl-icon-group-assign.entry.520276d3.js → swirl-icon-group-assign.entry.cb6236b0.js} +1 -1
- package/dist/{swirl-icon-groups-custom.entry.fdfe45fe.js → swirl-icon-groups-custom.entry.e9dea2e1.js} +1 -1
- package/dist/{swirl-icon-groups-filled.entry.dd1c0088.js → swirl-icon-groups-filled.entry.1638dfa4.js} +1 -1
- package/dist/{swirl-icon-groups-outlined.entry.a2b40a02.js → swirl-icon-groups-outlined.entry.5b431dd3.js} +1 -1
- package/dist/{swirl-icon-groups.entry.1826fee6.js → swirl-icon-groups.entry.47dc98f2.js} +1 -1
- package/dist/{swirl-icon-help.entry.7c9896c0.js → swirl-icon-help.entry.587b82c0.js} +1 -1
- package/dist/{swirl-icon-image.entry.d62915a0.js → swirl-icon-image.entry.ecf62562.js} +1 -1
- package/dist/{swirl-icon-improve-text.entry.d5a410e5.js → swirl-icon-improve-text.entry.c3286d42.js} +1 -1
- package/dist/{swirl-icon-insert-below.entry.91bedf0a.js → swirl-icon-insert-below.entry.05a1d5ff.js} +1 -1
- package/dist/{swirl-icon-insert-on-top.entry.c50ee0bf.js → swirl-icon-insert-on-top.entry.bf4d6725.js} +1 -1
- package/dist/{swirl-icon-inventory.entry.5a2c6ba9.js → swirl-icon-inventory.entry.1e13f8c2.js} +1 -1
- package/dist/{swirl-icon-like.entry.b8b94a8d.js → swirl-icon-like.entry.9ab74001.js} +1 -1
- package/dist/{swirl-icon-link.entry.5c74c4bc.js → swirl-icon-link.entry.79777742.js} +1 -1
- package/dist/swirl-icon-lock-person.entry.71e08a61.js +17 -0
- package/dist/{swirl-icon-lock.entry.c37c1544.js → swirl-icon-lock.entry.5e969f0a.js} +1 -1
- package/dist/{swirl-icon-logout.entry.9c33bfeb.js → swirl-icon-logout.entry.90da324f.js} +1 -1
- package/dist/{swirl-icon-long-text.entry.76904e4d.js → swirl-icon-long-text.entry.c20c604c.js} +1 -1
- package/dist/{swirl-icon-mail.entry.a403c3c8.js → swirl-icon-mail.entry.9acc1db6.js} +1 -1
- package/dist/{swirl-icon-manage-accounts.entry.dd7ab174.js → swirl-icon-manage-accounts.entry.52fe76f0.js} +1 -1
- package/dist/{swirl-icon-mention.entry.6ef763e5.js → swirl-icon-mention.entry.4e77518d.js} +1 -1
- package/dist/{swirl-icon-menu-filled.entry.0a2c63a8.js → swirl-icon-menu-filled.entry.c26d68a4.js} +1 -1
- package/dist/{swirl-icon-menu-outlined.entry.75ee9dda.js → swirl-icon-menu-outlined.entry.89c2db84.js} +1 -1
- package/dist/{swirl-icon-menu.entry.aa66bbe6.js → swirl-icon-menu.entry.f57e9683.js} +1 -1
- package/dist/{swirl-icon-message.entry.e68239a6.js → swirl-icon-message.entry.51665eb3.js} +1 -1
- package/dist/{swirl-icon-more-horizontal.entry.9a0481de.js → swirl-icon-more-horizontal.entry.57ecfba4.js} +1 -1
- package/dist/{swirl-icon-news-filled.entry.0e152b51.js → swirl-icon-news-filled.entry.a45177ec.js} +1 -1
- package/dist/{swirl-icon-news-outlined.entry.af4a8156.js → swirl-icon-news-outlined.entry.7a6b3960.js} +1 -1
- package/dist/{swirl-icon-notifications-active.entry.8940bf78.js → swirl-icon-notifications-active.entry.3a0babcb.js} +1 -1
- package/dist/{swirl-icon-notifications-off.entry.e639a4c5.js → swirl-icon-notifications-off.entry.695e9c11.js} +1 -1
- package/dist/{swirl-icon-notifications.entry.1c5b05f7.js → swirl-icon-notifications.entry.7ab62258.js} +1 -1
- package/dist/{swirl-icon-open-in-new.entry.279ac3d4.js → swirl-icon-open-in-new.entry.c165039a.js} +1 -1
- package/dist/{swirl-icon-people-alt.entry.5320b32d.js → swirl-icon-people-alt.entry.e520f268.js} +1 -1
- package/dist/{swirl-icon-person-off.entry.b0e82da0.js → swirl-icon-person-off.entry.bec36d57.js} +1 -1
- package/dist/{swirl-icon-person.entry.f3b476a4.js → swirl-icon-person.entry.0c366d9b.js} +1 -1
- package/dist/{swirl-icon-phone.entry.1ffb717b.js → swirl-icon-phone.entry.42466ca5.js} +1 -1
- package/dist/{swirl-icon-poll.entry.5543b3bb.js → swirl-icon-poll.entry.1631fafa.js} +1 -1
- package/dist/{swirl-icon-print.entry.714d0e6a.js → swirl-icon-print.entry.ab85cc98.js} +1 -1
- package/dist/{swirl-icon-recieved.entry.8057b6e0.js → swirl-icon-recieved.entry.21ab0023.js} +1 -1
- package/dist/{swirl-icon-search-strong.entry.c772d0ac.js → swirl-icon-search-strong.entry.4af4ca95.js} +1 -1
- package/dist/{swirl-icon-search.entry.c0c5febc.js → swirl-icon-search.entry.84e36a75.js} +1 -1
- package/dist/{swirl-icon-send.entry.06a7bdfd.js → swirl-icon-send.entry.60fc12af.js} +1 -1
- package/dist/{swirl-icon-settings.entry.8023a83a.js → swirl-icon-settings.entry.91420a87.js} +1 -1
- package/dist/{swirl-icon-short-text.entry.f6421c21.js → swirl-icon-short-text.entry.854cb604.js} +1 -1
- package/dist/{swirl-icon-simplify.entry.62ce6b27.js → swirl-icon-simplify.entry.8ee76a9d.js} +1 -1
- package/dist/{swirl-icon-spellcheck.entry.d0034c4f.js → swirl-icon-spellcheck.entry.f6de2560.js} +1 -1
- package/dist/{swirl-icon-sync.entry.2110d895.js → swirl-icon-sync.entry.b4f48aa8.js} +1 -1
- package/dist/{swirl-icon-tasks-filled.entry.f429042f.js → swirl-icon-tasks-filled.entry.af9e4c8d.js} +1 -1
- package/dist/{swirl-icon-tasks-outlined.entry.4d58b877.js → swirl-icon-tasks-outlined.entry.1e4bc2e4.js} +1 -1
- package/dist/{swirl-icon-time-filled.entry.66c66342.js → swirl-icon-time-filled.entry.f33b7014.js} +1 -1
- package/dist/{swirl-icon-time-outlined.entry.ec7dd0c1.js → swirl-icon-time-outlined.entry.3612a635.js} +1 -1
- package/dist/{swirl-icon-undo.entry.88b58ecc.js → swirl-icon-undo.entry.e4a2b72f.js} +1 -1
- package/dist/swirl-icon-unlock-person.entry.254dbfbe.js +17 -0
- package/dist/{swirl-icon-user-assign.entry.ba29105d.js → swirl-icon-user-assign.entry.8cd160cb.js} +1 -1
- package/dist/{swirl-icon-video-camera.entry.7c8b00ce.js → swirl-icon-video-camera.entry.5bfe11fc.js} +1 -1
- package/dist/{swirl-icon-voice.entry.958a2943.js → swirl-icon-voice.entry.5b4eb456.js} +1 -1
- package/dist/{swirl-icon.entry.f8718ba3.js → swirl-icon.entry.c40b220f.js} +1 -1
- package/dist/{swirl-inline-notification.entry.3b2f1fee.js → swirl-inline-notification.entry.74668ccb.js} +1 -1
- package/dist/{swirl-lightbox.entry.9c07719b.js → swirl-lightbox.entry.7cbed88e.js} +1 -1
- package/dist/{swirl-link.entry.3078f350.js → swirl-link.entry.14b3e2f7.js} +1 -1
- package/dist/{swirl-list.entry.ba945af8.js → swirl-list.entry.5bb75e5e.js} +1 -1
- package/dist/{swirl-modal.entry.dca6cf90.js → swirl-modal.entry.cb8bd8d9.js} +1 -1
- package/dist/{swirl-option-list-section.entry.9fa8bcf7.js → swirl-option-list-section.entry.985df715.js} +1 -1
- package/dist/{swirl-pagination.entry.2ce383c9.js → swirl-pagination.entry.0d6bf99e.js} +1 -1
- package/dist/{swirl-pdf-reader.entry.be6f2a9b.js → swirl-pdf-reader.entry.3e0cf350.js} +1 -1
- package/dist/{swirl-popover.entry.750b7ebd.js → swirl-popover.entry.2d35e449.js} +3 -3
- package/dist/{swirl-progress-indicator.entry.2028dc09.js → swirl-progress-indicator.entry.534e56a0.js} +1 -1
- package/dist/{swirl-radio-group.entry.004d8969.js → swirl-radio-group.entry.a2014205.js} +1 -1
- package/dist/{swirl-radio.entry.611861d0.js → swirl-radio.entry.6729ef91.js} +1 -1
- package/dist/{swirl-resource-list-file-item.entry.05122474.js → swirl-resource-list-file-item.entry.93ec78ed.js} +1 -1
- package/dist/{swirl-search.entry.2f5e2b69.js → swirl-search.entry.0a74793c.js} +1 -1
- package/dist/{swirl-select.entry.98ea914b.js → swirl-select.entry.e1ca11af.js} +1 -1
- package/dist/{swirl-shell-layout.entry.a269d175.js → swirl-shell-layout.entry.74168088.js} +1 -1
- package/dist/{swirl-shell-navigation-item.entry.b3c3489a.js → swirl-shell-navigation-item.entry.cdfa3bf4.js} +1 -1
- package/dist/{swirl-skeleton-box.entry.ecaf23a1.js → swirl-skeleton-box.entry.fa530052.js} +1 -1
- package/dist/{swirl-skeleton-text.entry.4b192044.js → swirl-skeleton-text.entry.eb4d8100.js} +1 -1
- package/dist/{swirl-stack.entry.9cc3ab51.js → swirl-stack.entry.66bc188b.js} +1 -1
- package/dist/{swirl-switch.entry.2fd15a9e.js → swirl-switch.entry.3e0015ec.js} +1 -1
- package/dist/{swirl-tab-bar.entry.cb926429.js → swirl-tab-bar.entry.e64de026.js} +1 -1
- package/dist/{swirl-tab.entry.d19e7d01.js → swirl-tab.entry.e54c0ecd.js} +1 -1
- package/dist/{swirl-table-cell.entry.b00bb56c.js → swirl-table-cell.entry.570dddc9.js} +1 -1
- package/dist/{swirl-table-column.entry.83888584.js → swirl-table-column.entry.0267a0d0.js} +1 -1
- package/dist/{swirl-table-row-group.entry.f7931140.js → swirl-table-row-group.entry.389f77e8.js} +1 -1
- package/dist/{swirl-table-row.entry.89a4c544.js → swirl-table-row.entry.95c17b0c.js} +1 -1
- package/dist/{swirl-table.entry.74dea0a1.js → swirl-table.entry.62c4be3a.js} +1 -1
- package/dist/{swirl-tabs.entry.b851f1ea.js → swirl-tabs.entry.0332aada.js} +1 -1
- package/dist/{swirl-tag.entry.5586955d.js → swirl-tag.entry.00559e49.js} +1 -1
- package/dist/{swirl-text-input.entry.55ed0a4e.js → swirl-text-input.entry.fcdddc46.js} +1 -1
- package/dist/{swirl-text.entry.4d9b9c9f.js → swirl-text.entry.5adb688a.js} +1 -1
- package/dist/{swirl-theme-provider.entry.7fe488f9.js → swirl-theme-provider.entry.d4ad1707.js} +1 -1
- package/dist/{swirl-toast-provider.entry.d79d8b9c.js → swirl-toast-provider.entry.d351494a.js} +1 -1
- package/dist/{swirl-toast.entry.3b6b08a1.js → swirl-toast.entry.55e97962.js} +1 -1
- package/dist/{swirl-tooltip.entry.64dfa249.js → swirl-tooltip.entry.7158d902.js} +2 -2
- package/dist/{swirl-tree-navigation-item.entry.f137a131.js → swirl-tree-navigation-item.entry.04aa64a2.js} +1 -1
- package/dist/{swirl-video-thumbnail.entry.8d758627.js → swirl-video-thumbnail.entry.84508765.js} +1 -1
- package/dist/{swirl-visually-hidden.entry.c2d524b4.js → swirl-visually-hidden.entry.29467a05.js} +1 -1
- package/dist/{wc-datepicker.entry.3620ece5.js → wc-datepicker.entry.57a9cc5c.js} +1 -1
- package/package.json +2 -2
- package/dist/floating-ui.dom.esm-b9f28f6d.15013ef7.js +0 -752
|
@@ -0,0 +1,780 @@
|
|
|
1
|
+
function j(t) {
|
|
2
|
+
return t.split("-")[1];
|
|
3
|
+
}
|
|
4
|
+
function st(t) {
|
|
5
|
+
return t === "y" ? "height" : "width";
|
|
6
|
+
}
|
|
7
|
+
function T(t) {
|
|
8
|
+
return t.split("-")[0];
|
|
9
|
+
}
|
|
10
|
+
function I(t) {
|
|
11
|
+
return ["top", "bottom"].includes(T(t)) ? "x" : "y";
|
|
12
|
+
}
|
|
13
|
+
function Z(t, e, n) {
|
|
14
|
+
let {
|
|
15
|
+
reference: o,
|
|
16
|
+
floating: i
|
|
17
|
+
} = t;
|
|
18
|
+
const s = o.x + o.width / 2 - i.width / 2, r = o.y + o.height / 2 - i.height / 2, c = I(e), l = st(c), a = o[l] / 2 - i[l] / 2, g = T(e), f = c === "x";
|
|
19
|
+
let u;
|
|
20
|
+
switch (g) {
|
|
21
|
+
case "top":
|
|
22
|
+
u = {
|
|
23
|
+
x: s,
|
|
24
|
+
y: o.y - i.height
|
|
25
|
+
};
|
|
26
|
+
break;
|
|
27
|
+
case "bottom":
|
|
28
|
+
u = {
|
|
29
|
+
x: s,
|
|
30
|
+
y: o.y + o.height
|
|
31
|
+
};
|
|
32
|
+
break;
|
|
33
|
+
case "right":
|
|
34
|
+
u = {
|
|
35
|
+
x: o.x + o.width,
|
|
36
|
+
y: r
|
|
37
|
+
};
|
|
38
|
+
break;
|
|
39
|
+
case "left":
|
|
40
|
+
u = {
|
|
41
|
+
x: o.x - i.width,
|
|
42
|
+
y: r
|
|
43
|
+
};
|
|
44
|
+
break;
|
|
45
|
+
default:
|
|
46
|
+
u = {
|
|
47
|
+
x: o.x,
|
|
48
|
+
y: o.y
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
switch (j(e)) {
|
|
52
|
+
case "start":
|
|
53
|
+
u[c] -= a * (n && f ? -1 : 1);
|
|
54
|
+
break;
|
|
55
|
+
case "end":
|
|
56
|
+
u[c] += a * (n && f ? -1 : 1);
|
|
57
|
+
break;
|
|
58
|
+
}
|
|
59
|
+
return u;
|
|
60
|
+
}
|
|
61
|
+
const ht = async (t, e, n) => {
|
|
62
|
+
const {
|
|
63
|
+
placement: o = "bottom",
|
|
64
|
+
strategy: i = "absolute",
|
|
65
|
+
middleware: s = [],
|
|
66
|
+
platform: r
|
|
67
|
+
} = n, c = s.filter(Boolean), l = await (r.isRTL == null ? void 0 : r.isRTL(e));
|
|
68
|
+
let a = await r.getElementRects({
|
|
69
|
+
reference: t,
|
|
70
|
+
floating: e,
|
|
71
|
+
strategy: i
|
|
72
|
+
}), {
|
|
73
|
+
x: g,
|
|
74
|
+
y: f
|
|
75
|
+
} = Z(a, o, l), u = o, d = {}, h = 0;
|
|
76
|
+
for (let m = 0; m < c.length; m++) {
|
|
77
|
+
const {
|
|
78
|
+
name: p,
|
|
79
|
+
fn: x
|
|
80
|
+
} = c[m], {
|
|
81
|
+
x: y,
|
|
82
|
+
y: v,
|
|
83
|
+
data: L,
|
|
84
|
+
reset: w
|
|
85
|
+
} = await x({
|
|
86
|
+
x: g,
|
|
87
|
+
y: f,
|
|
88
|
+
initialPlacement: o,
|
|
89
|
+
placement: u,
|
|
90
|
+
strategy: i,
|
|
91
|
+
middlewareData: d,
|
|
92
|
+
rects: a,
|
|
93
|
+
platform: r,
|
|
94
|
+
elements: {
|
|
95
|
+
reference: t,
|
|
96
|
+
floating: e
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
if (g = y != null ? y : g, f = v != null ? v : f, d = {
|
|
100
|
+
...d,
|
|
101
|
+
[p]: {
|
|
102
|
+
...d[p],
|
|
103
|
+
...L
|
|
104
|
+
}
|
|
105
|
+
}, w && h <= 50) {
|
|
106
|
+
h++, typeof w == "object" && (w.placement && (u = w.placement), w.rects && (a = w.rects === !0 ? await r.getElementRects({
|
|
107
|
+
reference: t,
|
|
108
|
+
floating: e,
|
|
109
|
+
strategy: i
|
|
110
|
+
}) : w.rects), {
|
|
111
|
+
x: g,
|
|
112
|
+
y: f
|
|
113
|
+
} = Z(a, u, l)), m = -1;
|
|
114
|
+
continue;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
return {
|
|
118
|
+
x: g,
|
|
119
|
+
y: f,
|
|
120
|
+
placement: u,
|
|
121
|
+
strategy: i,
|
|
122
|
+
middlewareData: d
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
function pt(t) {
|
|
126
|
+
return {
|
|
127
|
+
top: 0,
|
|
128
|
+
right: 0,
|
|
129
|
+
bottom: 0,
|
|
130
|
+
left: 0,
|
|
131
|
+
...t
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
function wt(t) {
|
|
135
|
+
return typeof t != "number" ? pt(t) : {
|
|
136
|
+
top: t,
|
|
137
|
+
right: t,
|
|
138
|
+
bottom: t,
|
|
139
|
+
left: t
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
function $(t) {
|
|
143
|
+
return {
|
|
144
|
+
...t,
|
|
145
|
+
top: t.y,
|
|
146
|
+
left: t.x,
|
|
147
|
+
right: t.x + t.width,
|
|
148
|
+
bottom: t.y + t.height
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
async function rt(t, e) {
|
|
152
|
+
var n;
|
|
153
|
+
e === void 0 && (e = {});
|
|
154
|
+
const {
|
|
155
|
+
x: o,
|
|
156
|
+
y: i,
|
|
157
|
+
platform: s,
|
|
158
|
+
rects: r,
|
|
159
|
+
elements: c,
|
|
160
|
+
strategy: l
|
|
161
|
+
} = t, {
|
|
162
|
+
boundary: a = "clippingAncestors",
|
|
163
|
+
rootBoundary: g = "viewport",
|
|
164
|
+
elementContext: f = "floating",
|
|
165
|
+
altBoundary: u = !1,
|
|
166
|
+
padding: d = 0
|
|
167
|
+
} = e, h = wt(d), p = c[u ? f === "floating" ? "reference" : "floating" : f], x = $(await s.getClippingRect({
|
|
168
|
+
element: (n = await (s.isElement == null ? void 0 : s.isElement(p))) == null || n ? p : p.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(c.floating)),
|
|
169
|
+
boundary: a,
|
|
170
|
+
rootBoundary: g,
|
|
171
|
+
strategy: l
|
|
172
|
+
})), y = f === "floating" ? {
|
|
173
|
+
...r.floating,
|
|
174
|
+
x: o,
|
|
175
|
+
y: i
|
|
176
|
+
} : r.reference, v = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(c.floating)), L = await (s.isElement == null ? void 0 : s.isElement(v)) ? await (s.getScale == null ? void 0 : s.getScale(v)) || {
|
|
177
|
+
x: 1,
|
|
178
|
+
y: 1
|
|
179
|
+
} : {
|
|
180
|
+
x: 1,
|
|
181
|
+
y: 1
|
|
182
|
+
}, w = $(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
183
|
+
rect: y,
|
|
184
|
+
offsetParent: v,
|
|
185
|
+
strategy: l
|
|
186
|
+
}) : y);
|
|
187
|
+
return {
|
|
188
|
+
top: (x.top - w.top + h.top) / L.y,
|
|
189
|
+
bottom: (w.bottom - x.bottom + h.bottom) / L.y,
|
|
190
|
+
left: (x.left - w.left + h.left) / L.x,
|
|
191
|
+
right: (w.right - x.right + h.right) / L.x
|
|
192
|
+
};
|
|
193
|
+
}
|
|
194
|
+
const xt = Math.min, yt = Math.max;
|
|
195
|
+
function tt(t, e, n) {
|
|
196
|
+
return yt(t, xt(e, n));
|
|
197
|
+
}
|
|
198
|
+
const vt = {
|
|
199
|
+
left: "right",
|
|
200
|
+
right: "left",
|
|
201
|
+
bottom: "top",
|
|
202
|
+
top: "bottom"
|
|
203
|
+
};
|
|
204
|
+
function _(t) {
|
|
205
|
+
return t.replace(/left|right|bottom|top/g, (e) => vt[e]);
|
|
206
|
+
}
|
|
207
|
+
function bt(t, e, n) {
|
|
208
|
+
n === void 0 && (n = !1);
|
|
209
|
+
const o = j(t), i = I(t), s = st(i);
|
|
210
|
+
let r = i === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
|
|
211
|
+
return e.reference[s] > e.floating[s] && (r = _(r)), {
|
|
212
|
+
main: r,
|
|
213
|
+
cross: _(r)
|
|
214
|
+
};
|
|
215
|
+
}
|
|
216
|
+
const At = {
|
|
217
|
+
start: "end",
|
|
218
|
+
end: "start"
|
|
219
|
+
};
|
|
220
|
+
function q(t) {
|
|
221
|
+
return t.replace(/start|end/g, (e) => At[e]);
|
|
222
|
+
}
|
|
223
|
+
function Rt(t) {
|
|
224
|
+
const e = _(t);
|
|
225
|
+
return [q(t), e, q(e)];
|
|
226
|
+
}
|
|
227
|
+
function Ct(t, e, n) {
|
|
228
|
+
const o = ["left", "right"], i = ["right", "left"], s = ["top", "bottom"], r = ["bottom", "top"];
|
|
229
|
+
switch (t) {
|
|
230
|
+
case "top":
|
|
231
|
+
case "bottom":
|
|
232
|
+
return n ? e ? i : o : e ? o : i;
|
|
233
|
+
case "left":
|
|
234
|
+
case "right":
|
|
235
|
+
return e ? s : r;
|
|
236
|
+
default:
|
|
237
|
+
return [];
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
function Et(t, e, n, o) {
|
|
241
|
+
const i = j(t);
|
|
242
|
+
let s = Ct(T(t), n === "start", o);
|
|
243
|
+
return i && (s = s.map((r) => r + "-" + i), e && (s = s.concat(s.map(q)))), s;
|
|
244
|
+
}
|
|
245
|
+
const zt = function(t) {
|
|
246
|
+
return t === void 0 && (t = {}), {
|
|
247
|
+
name: "flip",
|
|
248
|
+
options: t,
|
|
249
|
+
async fn(e) {
|
|
250
|
+
var n;
|
|
251
|
+
const {
|
|
252
|
+
placement: o,
|
|
253
|
+
middlewareData: i,
|
|
254
|
+
rects: s,
|
|
255
|
+
initialPlacement: r,
|
|
256
|
+
platform: c,
|
|
257
|
+
elements: l
|
|
258
|
+
} = e, {
|
|
259
|
+
mainAxis: a = !0,
|
|
260
|
+
crossAxis: g = !0,
|
|
261
|
+
fallbackPlacements: f,
|
|
262
|
+
fallbackStrategy: u = "bestFit",
|
|
263
|
+
fallbackAxisSideDirection: d = "none",
|
|
264
|
+
flipAlignment: h = !0,
|
|
265
|
+
...m
|
|
266
|
+
} = t, p = T(o), x = T(r) === r, y = await (c.isRTL == null ? void 0 : c.isRTL(l.floating)), v = f || (x || !h ? [_(r)] : Rt(r));
|
|
267
|
+
!f && d !== "none" && v.push(...Et(r, h, d, y));
|
|
268
|
+
const L = [r, ...v], w = await rt(e, m), B = [];
|
|
269
|
+
let N = ((n = i.flip) == null ? void 0 : n.overflows) || [];
|
|
270
|
+
if (a && B.push(w[p]), g) {
|
|
271
|
+
const {
|
|
272
|
+
main: S,
|
|
273
|
+
cross: F
|
|
274
|
+
} = bt(o, s, y);
|
|
275
|
+
B.push(w[S], w[F]);
|
|
276
|
+
}
|
|
277
|
+
if (N = [...N, {
|
|
278
|
+
placement: o,
|
|
279
|
+
overflows: B
|
|
280
|
+
}], !B.every((S) => S <= 0)) {
|
|
281
|
+
var J, K;
|
|
282
|
+
const S = (((J = i.flip) == null ? void 0 : J.index) || 0) + 1, F = L[S];
|
|
283
|
+
if (F)
|
|
284
|
+
return {
|
|
285
|
+
data: {
|
|
286
|
+
index: S,
|
|
287
|
+
overflows: N
|
|
288
|
+
},
|
|
289
|
+
reset: {
|
|
290
|
+
placement: F
|
|
291
|
+
}
|
|
292
|
+
};
|
|
293
|
+
let W = (K = N.filter((V) => V.overflows[0] <= 0).sort((V, k) => V.overflows[1] - k.overflows[1])[0]) == null ? void 0 : K.placement;
|
|
294
|
+
if (!W)
|
|
295
|
+
switch (u) {
|
|
296
|
+
case "bestFit": {
|
|
297
|
+
var Q;
|
|
298
|
+
const V = (Q = N.map((k) => [k.placement, k.overflows.filter((M) => M > 0).reduce((M, gt) => M + gt, 0)]).sort((k, M) => k[1] - M[1])[0]) == null ? void 0 : Q[0];
|
|
299
|
+
V && (W = V);
|
|
300
|
+
break;
|
|
301
|
+
}
|
|
302
|
+
case "initialPlacement":
|
|
303
|
+
W = r;
|
|
304
|
+
break;
|
|
305
|
+
}
|
|
306
|
+
if (o !== W)
|
|
307
|
+
return {
|
|
308
|
+
reset: {
|
|
309
|
+
placement: W
|
|
310
|
+
}
|
|
311
|
+
};
|
|
312
|
+
}
|
|
313
|
+
return {};
|
|
314
|
+
}
|
|
315
|
+
};
|
|
316
|
+
};
|
|
317
|
+
async function Lt(t, e) {
|
|
318
|
+
const {
|
|
319
|
+
placement: n,
|
|
320
|
+
platform: o,
|
|
321
|
+
elements: i
|
|
322
|
+
} = t, s = await (o.isRTL == null ? void 0 : o.isRTL(i.floating)), r = T(n), c = j(n), l = I(n) === "x", a = ["left", "top"].includes(r) ? -1 : 1, g = s && l ? -1 : 1, f = typeof e == "function" ? e(t) : e;
|
|
323
|
+
let {
|
|
324
|
+
mainAxis: u,
|
|
325
|
+
crossAxis: d,
|
|
326
|
+
alignmentAxis: h
|
|
327
|
+
} = typeof f == "number" ? {
|
|
328
|
+
mainAxis: f,
|
|
329
|
+
crossAxis: 0,
|
|
330
|
+
alignmentAxis: null
|
|
331
|
+
} : {
|
|
332
|
+
mainAxis: 0,
|
|
333
|
+
crossAxis: 0,
|
|
334
|
+
alignmentAxis: null,
|
|
335
|
+
...f
|
|
336
|
+
};
|
|
337
|
+
return c && typeof h == "number" && (d = c === "end" ? h * -1 : h), l ? {
|
|
338
|
+
x: d * g,
|
|
339
|
+
y: u * a
|
|
340
|
+
} : {
|
|
341
|
+
x: u * a,
|
|
342
|
+
y: d * g
|
|
343
|
+
};
|
|
344
|
+
}
|
|
345
|
+
const Xt = function(t) {
|
|
346
|
+
return t === void 0 && (t = 0), {
|
|
347
|
+
name: "offset",
|
|
348
|
+
options: t,
|
|
349
|
+
async fn(e) {
|
|
350
|
+
const {
|
|
351
|
+
x: n,
|
|
352
|
+
y: o
|
|
353
|
+
} = e, i = await Lt(e, t);
|
|
354
|
+
return {
|
|
355
|
+
x: n + i.x,
|
|
356
|
+
y: o + i.y,
|
|
357
|
+
data: i
|
|
358
|
+
};
|
|
359
|
+
}
|
|
360
|
+
};
|
|
361
|
+
};
|
|
362
|
+
function Ot(t) {
|
|
363
|
+
return t === "x" ? "y" : "x";
|
|
364
|
+
}
|
|
365
|
+
const jt = function(t) {
|
|
366
|
+
return t === void 0 && (t = {}), {
|
|
367
|
+
name: "shift",
|
|
368
|
+
options: t,
|
|
369
|
+
async fn(e) {
|
|
370
|
+
const {
|
|
371
|
+
x: n,
|
|
372
|
+
y: o,
|
|
373
|
+
placement: i
|
|
374
|
+
} = e, {
|
|
375
|
+
mainAxis: s = !0,
|
|
376
|
+
crossAxis: r = !1,
|
|
377
|
+
limiter: c = {
|
|
378
|
+
fn: (p) => {
|
|
379
|
+
let {
|
|
380
|
+
x,
|
|
381
|
+
y
|
|
382
|
+
} = p;
|
|
383
|
+
return {
|
|
384
|
+
x,
|
|
385
|
+
y
|
|
386
|
+
};
|
|
387
|
+
}
|
|
388
|
+
},
|
|
389
|
+
...l
|
|
390
|
+
} = t, a = {
|
|
391
|
+
x: n,
|
|
392
|
+
y: o
|
|
393
|
+
}, g = await rt(e, l), f = I(T(i)), u = Ot(f);
|
|
394
|
+
let d = a[f], h = a[u];
|
|
395
|
+
if (s) {
|
|
396
|
+
const p = f === "y" ? "top" : "left", x = f === "y" ? "bottom" : "right", y = d + g[p], v = d - g[x];
|
|
397
|
+
d = tt(y, d, v);
|
|
398
|
+
}
|
|
399
|
+
if (r) {
|
|
400
|
+
const p = u === "y" ? "top" : "left", x = u === "y" ? "bottom" : "right", y = h + g[p], v = h - g[x];
|
|
401
|
+
h = tt(y, h, v);
|
|
402
|
+
}
|
|
403
|
+
const m = c.fn({
|
|
404
|
+
...e,
|
|
405
|
+
[f]: d,
|
|
406
|
+
[u]: h
|
|
407
|
+
});
|
|
408
|
+
return {
|
|
409
|
+
...m,
|
|
410
|
+
data: {
|
|
411
|
+
x: m.x - n,
|
|
412
|
+
y: m.y - o
|
|
413
|
+
}
|
|
414
|
+
};
|
|
415
|
+
}
|
|
416
|
+
};
|
|
417
|
+
};
|
|
418
|
+
function ct(t) {
|
|
419
|
+
return t && t.document && t.location && t.alert && t.setInterval;
|
|
420
|
+
}
|
|
421
|
+
function E(t) {
|
|
422
|
+
if (t == null)
|
|
423
|
+
return window;
|
|
424
|
+
if (!ct(t)) {
|
|
425
|
+
const e = t.ownerDocument;
|
|
426
|
+
return e && e.defaultView || window;
|
|
427
|
+
}
|
|
428
|
+
return t;
|
|
429
|
+
}
|
|
430
|
+
function b(t) {
|
|
431
|
+
return E(t).getComputedStyle(t);
|
|
432
|
+
}
|
|
433
|
+
function R(t) {
|
|
434
|
+
return ct(t) ? "" : t ? (t.nodeName || "").toLowerCase() : "";
|
|
435
|
+
}
|
|
436
|
+
function lt() {
|
|
437
|
+
const t = navigator.userAgentData;
|
|
438
|
+
return t != null && t.brands ? t.brands.map((e) => e.brand + "/" + e.version).join(" ") : navigator.userAgent;
|
|
439
|
+
}
|
|
440
|
+
function A(t) {
|
|
441
|
+
return t instanceof E(t).HTMLElement;
|
|
442
|
+
}
|
|
443
|
+
function O(t) {
|
|
444
|
+
return t instanceof E(t).Element;
|
|
445
|
+
}
|
|
446
|
+
function Pt(t) {
|
|
447
|
+
return t instanceof E(t).Node;
|
|
448
|
+
}
|
|
449
|
+
function D(t) {
|
|
450
|
+
if (typeof ShadowRoot > "u")
|
|
451
|
+
return !1;
|
|
452
|
+
const e = E(t).ShadowRoot;
|
|
453
|
+
return t instanceof e || t instanceof ShadowRoot;
|
|
454
|
+
}
|
|
455
|
+
function Y(t) {
|
|
456
|
+
const {
|
|
457
|
+
overflow: e,
|
|
458
|
+
overflowX: n,
|
|
459
|
+
overflowY: o
|
|
460
|
+
} = b(t);
|
|
461
|
+
return /auto|scroll|overlay|hidden/.test(e + o + n);
|
|
462
|
+
}
|
|
463
|
+
function Tt(t) {
|
|
464
|
+
return ["table", "td", "th"].includes(R(t));
|
|
465
|
+
}
|
|
466
|
+
function ft(t) {
|
|
467
|
+
const e = /firefox/i.test(lt()), n = b(t);
|
|
468
|
+
return n.transform !== "none" || n.perspective !== "none" || n.contain === "paint" || ["transform", "perspective"].includes(n.willChange) || e && n.willChange === "filter" || e && (n.filter ? n.filter !== "none" : !1);
|
|
469
|
+
}
|
|
470
|
+
function at() {
|
|
471
|
+
return !/^((?!chrome|android).)*safari/i.test(lt());
|
|
472
|
+
}
|
|
473
|
+
const et = Math.min, H = Math.max, z = Math.round;
|
|
474
|
+
function C(t, e, n) {
|
|
475
|
+
var o, i, s, r;
|
|
476
|
+
e === void 0 && (e = !1), n === void 0 && (n = !1);
|
|
477
|
+
const c = t.getBoundingClientRect();
|
|
478
|
+
let l = 1, a = 1;
|
|
479
|
+
e && A(t) && (l = t.offsetWidth > 0 && z(c.width) / t.offsetWidth || 1, a = t.offsetHeight > 0 && z(c.height) / t.offsetHeight || 1);
|
|
480
|
+
const g = O(t) ? E(t) : window, f = !at() && n, u = (c.left + (f && (o = (i = g.visualViewport) == null ? void 0 : i.offsetLeft) != null ? o : 0)) / l, d = (c.top + (f && (s = (r = g.visualViewport) == null ? void 0 : r.offsetTop) != null ? s : 0)) / a, h = c.width / l, m = c.height / a;
|
|
481
|
+
return {
|
|
482
|
+
width: h,
|
|
483
|
+
height: m,
|
|
484
|
+
top: d,
|
|
485
|
+
right: u + h,
|
|
486
|
+
bottom: d + m,
|
|
487
|
+
left: u,
|
|
488
|
+
x: u,
|
|
489
|
+
y: d
|
|
490
|
+
};
|
|
491
|
+
}
|
|
492
|
+
function P(t) {
|
|
493
|
+
return ((Pt(t) ? t.ownerDocument : t.document) || window.document).documentElement;
|
|
494
|
+
}
|
|
495
|
+
function U(t) {
|
|
496
|
+
return O(t) ? {
|
|
497
|
+
scrollLeft: t.scrollLeft,
|
|
498
|
+
scrollTop: t.scrollTop
|
|
499
|
+
} : {
|
|
500
|
+
scrollLeft: t.pageXOffset,
|
|
501
|
+
scrollTop: t.pageYOffset
|
|
502
|
+
};
|
|
503
|
+
}
|
|
504
|
+
function ut(t) {
|
|
505
|
+
return C(P(t)).left + U(t).scrollLeft;
|
|
506
|
+
}
|
|
507
|
+
function St(t) {
|
|
508
|
+
const e = C(t);
|
|
509
|
+
return z(e.width) !== t.offsetWidth || z(e.height) !== t.offsetHeight;
|
|
510
|
+
}
|
|
511
|
+
function Vt(t, e, n) {
|
|
512
|
+
const o = A(e), i = P(e), s = C(
|
|
513
|
+
t,
|
|
514
|
+
o && St(e),
|
|
515
|
+
n === "fixed"
|
|
516
|
+
);
|
|
517
|
+
let r = {
|
|
518
|
+
scrollLeft: 0,
|
|
519
|
+
scrollTop: 0
|
|
520
|
+
};
|
|
521
|
+
const c = {
|
|
522
|
+
x: 0,
|
|
523
|
+
y: 0
|
|
524
|
+
};
|
|
525
|
+
if (o || !o && n !== "fixed")
|
|
526
|
+
if ((R(e) !== "body" || Y(i)) && (r = U(e)), A(e)) {
|
|
527
|
+
const l = C(e, !0);
|
|
528
|
+
c.x = l.x + e.clientLeft, c.y = l.y + e.clientTop;
|
|
529
|
+
} else
|
|
530
|
+
i && (c.x = ut(i));
|
|
531
|
+
return {
|
|
532
|
+
x: s.left + r.scrollLeft - c.x,
|
|
533
|
+
y: s.top + r.scrollTop - c.y,
|
|
534
|
+
width: s.width,
|
|
535
|
+
height: s.height
|
|
536
|
+
};
|
|
537
|
+
}
|
|
538
|
+
function dt(t) {
|
|
539
|
+
return R(t) === "html" ? t : t.assignedSlot || t.parentNode || (D(t) ? t.host : null) || P(t);
|
|
540
|
+
}
|
|
541
|
+
function nt(t) {
|
|
542
|
+
return !A(t) || b(t).position === "fixed" ? null : kt(t);
|
|
543
|
+
}
|
|
544
|
+
function kt(t) {
|
|
545
|
+
let {
|
|
546
|
+
offsetParent: e
|
|
547
|
+
} = t, n = t, o = !1;
|
|
548
|
+
for (; n && n !== e; ) {
|
|
549
|
+
const {
|
|
550
|
+
assignedSlot: i
|
|
551
|
+
} = n;
|
|
552
|
+
if (i) {
|
|
553
|
+
let s = i.offsetParent;
|
|
554
|
+
if (b(i).display === "contents") {
|
|
555
|
+
const r = i.hasAttribute("style"), c = i.style.display;
|
|
556
|
+
i.style.display = b(n).display, s = i.offsetParent, i.style.display = c, r || i.removeAttribute("style");
|
|
557
|
+
}
|
|
558
|
+
n = i, e !== s && (e = s, o = !0);
|
|
559
|
+
} else if (D(n) && n.host && o)
|
|
560
|
+
break;
|
|
561
|
+
n = D(n) && n.host || n.parentNode;
|
|
562
|
+
}
|
|
563
|
+
return e;
|
|
564
|
+
}
|
|
565
|
+
function Dt(t) {
|
|
566
|
+
let e = dt(t);
|
|
567
|
+
for (D(e) && (e = e.host); A(e) && !["html", "body"].includes(R(e)); ) {
|
|
568
|
+
if (ft(e))
|
|
569
|
+
return e;
|
|
570
|
+
{
|
|
571
|
+
const n = e.parentNode;
|
|
572
|
+
e = D(n) ? n.host : n;
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
return null;
|
|
576
|
+
}
|
|
577
|
+
function G(t) {
|
|
578
|
+
const e = E(t);
|
|
579
|
+
let n = nt(t);
|
|
580
|
+
for (; n && Tt(n) && b(n).position === "static"; )
|
|
581
|
+
n = nt(n);
|
|
582
|
+
return n && (R(n) === "html" || R(n) === "body" && b(n).position === "static" && !ft(n)) ? e : n || Dt(t) || e;
|
|
583
|
+
}
|
|
584
|
+
function ot(t) {
|
|
585
|
+
if (A(t))
|
|
586
|
+
return {
|
|
587
|
+
width: t.offsetWidth,
|
|
588
|
+
height: t.offsetHeight
|
|
589
|
+
};
|
|
590
|
+
const e = C(t);
|
|
591
|
+
return {
|
|
592
|
+
width: e.width,
|
|
593
|
+
height: e.height
|
|
594
|
+
};
|
|
595
|
+
}
|
|
596
|
+
function Nt(t) {
|
|
597
|
+
let {
|
|
598
|
+
rect: e,
|
|
599
|
+
offsetParent: n,
|
|
600
|
+
strategy: o
|
|
601
|
+
} = t;
|
|
602
|
+
const i = A(n), s = P(n);
|
|
603
|
+
if (n === s)
|
|
604
|
+
return e;
|
|
605
|
+
let r = {
|
|
606
|
+
scrollLeft: 0,
|
|
607
|
+
scrollTop: 0
|
|
608
|
+
};
|
|
609
|
+
const c = {
|
|
610
|
+
x: 0,
|
|
611
|
+
y: 0
|
|
612
|
+
};
|
|
613
|
+
if ((i || !i && o !== "fixed") && ((R(n) !== "body" || Y(s)) && (r = U(n)), A(n))) {
|
|
614
|
+
const l = C(n, !0);
|
|
615
|
+
c.x = l.x + n.clientLeft, c.y = l.y + n.clientTop;
|
|
616
|
+
}
|
|
617
|
+
return {
|
|
618
|
+
...e,
|
|
619
|
+
x: e.x - r.scrollLeft + c.x,
|
|
620
|
+
y: e.y - r.scrollTop + c.y
|
|
621
|
+
};
|
|
622
|
+
}
|
|
623
|
+
function Wt(t, e) {
|
|
624
|
+
const n = E(t), o = P(t), i = n.visualViewport;
|
|
625
|
+
let s = o.clientWidth, r = o.clientHeight, c = 0, l = 0;
|
|
626
|
+
if (i) {
|
|
627
|
+
s = i.width, r = i.height;
|
|
628
|
+
const a = at();
|
|
629
|
+
(a || !a && e === "fixed") && (c = i.offsetLeft, l = i.offsetTop);
|
|
630
|
+
}
|
|
631
|
+
return {
|
|
632
|
+
width: s,
|
|
633
|
+
height: r,
|
|
634
|
+
x: c,
|
|
635
|
+
y: l
|
|
636
|
+
};
|
|
637
|
+
}
|
|
638
|
+
function Mt(t) {
|
|
639
|
+
var e;
|
|
640
|
+
const n = P(t), o = U(t), i = (e = t.ownerDocument) == null ? void 0 : e.body, s = H(n.scrollWidth, n.clientWidth, i ? i.scrollWidth : 0, i ? i.clientWidth : 0), r = H(n.scrollHeight, n.clientHeight, i ? i.scrollHeight : 0, i ? i.clientHeight : 0);
|
|
641
|
+
let c = -o.scrollLeft + ut(t);
|
|
642
|
+
const l = -o.scrollTop;
|
|
643
|
+
return b(i || n).direction === "rtl" && (c += H(n.clientWidth, i ? i.clientWidth : 0) - s), {
|
|
644
|
+
width: s,
|
|
645
|
+
height: r,
|
|
646
|
+
x: c,
|
|
647
|
+
y: l
|
|
648
|
+
};
|
|
649
|
+
}
|
|
650
|
+
function mt(t) {
|
|
651
|
+
const e = dt(t);
|
|
652
|
+
return ["html", "body", "#document"].includes(R(e)) ? t.ownerDocument.body : A(e) && Y(e) ? e : mt(e);
|
|
653
|
+
}
|
|
654
|
+
function X(t, e) {
|
|
655
|
+
var n;
|
|
656
|
+
e === void 0 && (e = []);
|
|
657
|
+
const o = mt(t), i = o === ((n = t.ownerDocument) == null ? void 0 : n.body), s = E(o), r = i ? [s].concat(s.visualViewport || [], Y(o) ? o : []) : o, c = e.concat(r);
|
|
658
|
+
return i ? c : c.concat(X(r));
|
|
659
|
+
}
|
|
660
|
+
function Ht(t, e) {
|
|
661
|
+
const n = e.getRootNode == null ? void 0 : e.getRootNode();
|
|
662
|
+
if (t.contains(e))
|
|
663
|
+
return !0;
|
|
664
|
+
if (n && D(n)) {
|
|
665
|
+
let o = e;
|
|
666
|
+
do {
|
|
667
|
+
if (o && t === o)
|
|
668
|
+
return !0;
|
|
669
|
+
o = o.parentNode || o.host;
|
|
670
|
+
} while (o);
|
|
671
|
+
}
|
|
672
|
+
return !1;
|
|
673
|
+
}
|
|
674
|
+
function Bt(t, e) {
|
|
675
|
+
const n = C(t, !1, e === "fixed"), o = n.top + t.clientTop, i = n.left + t.clientLeft;
|
|
676
|
+
return {
|
|
677
|
+
top: o,
|
|
678
|
+
left: i,
|
|
679
|
+
x: i,
|
|
680
|
+
y: o,
|
|
681
|
+
right: i + t.clientWidth,
|
|
682
|
+
bottom: o + t.clientHeight,
|
|
683
|
+
width: t.clientWidth,
|
|
684
|
+
height: t.clientHeight
|
|
685
|
+
};
|
|
686
|
+
}
|
|
687
|
+
function it(t, e, n) {
|
|
688
|
+
return e === "viewport" ? $(Wt(t, n)) : O(e) ? Bt(e, n) : $(Mt(P(t)));
|
|
689
|
+
}
|
|
690
|
+
function Ft(t) {
|
|
691
|
+
const e = X(t), o = ["absolute", "fixed"].includes(b(t).position) && A(t) ? G(t) : t;
|
|
692
|
+
return O(o) ? e.filter((i) => O(i) && Ht(i, o) && R(i) !== "body") : [];
|
|
693
|
+
}
|
|
694
|
+
function $t(t) {
|
|
695
|
+
let {
|
|
696
|
+
element: e,
|
|
697
|
+
boundary: n,
|
|
698
|
+
rootBoundary: o,
|
|
699
|
+
strategy: i
|
|
700
|
+
} = t;
|
|
701
|
+
const r = [...n === "clippingAncestors" ? Ft(e) : [].concat(n), o], c = r[0], l = r.reduce((a, g) => {
|
|
702
|
+
const f = it(e, g, i);
|
|
703
|
+
return a.top = H(f.top, a.top), a.right = et(f.right, a.right), a.bottom = et(f.bottom, a.bottom), a.left = H(f.left, a.left), a;
|
|
704
|
+
}, it(e, c, i));
|
|
705
|
+
return {
|
|
706
|
+
width: l.right - l.left,
|
|
707
|
+
height: l.bottom - l.top,
|
|
708
|
+
x: l.left,
|
|
709
|
+
y: l.top
|
|
710
|
+
};
|
|
711
|
+
}
|
|
712
|
+
const _t = {
|
|
713
|
+
getClippingRect: $t,
|
|
714
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: Nt,
|
|
715
|
+
isElement: O,
|
|
716
|
+
getDimensions: ot,
|
|
717
|
+
getOffsetParent: G,
|
|
718
|
+
getDocumentElement: P,
|
|
719
|
+
getElementRects: (t) => {
|
|
720
|
+
let {
|
|
721
|
+
reference: e,
|
|
722
|
+
floating: n,
|
|
723
|
+
strategy: o
|
|
724
|
+
} = t;
|
|
725
|
+
return {
|
|
726
|
+
reference: Vt(e, G(n), o),
|
|
727
|
+
floating: {
|
|
728
|
+
...ot(n),
|
|
729
|
+
x: 0,
|
|
730
|
+
y: 0
|
|
731
|
+
}
|
|
732
|
+
};
|
|
733
|
+
},
|
|
734
|
+
getClientRects: (t) => Array.from(t.getClientRects()),
|
|
735
|
+
isRTL: (t) => b(t).direction === "rtl"
|
|
736
|
+
};
|
|
737
|
+
function It(t, e, n, o) {
|
|
738
|
+
o === void 0 && (o = {});
|
|
739
|
+
const {
|
|
740
|
+
ancestorScroll: i = !0,
|
|
741
|
+
ancestorResize: s = !0,
|
|
742
|
+
elementResize: r = !0,
|
|
743
|
+
animationFrame: c = !1
|
|
744
|
+
} = o, l = i && !c, a = s && !c, g = l || a ? [...O(t) ? X(t) : [], ...X(e)] : [];
|
|
745
|
+
g.forEach((m) => {
|
|
746
|
+
l && m.addEventListener("scroll", n, {
|
|
747
|
+
passive: !0
|
|
748
|
+
}), a && m.addEventListener("resize", n);
|
|
749
|
+
});
|
|
750
|
+
let f = null;
|
|
751
|
+
if (r) {
|
|
752
|
+
let m = !0;
|
|
753
|
+
f = new ResizeObserver(() => {
|
|
754
|
+
m || n(), m = !1;
|
|
755
|
+
}), O(t) && !c && f.observe(t), f.observe(e);
|
|
756
|
+
}
|
|
757
|
+
let u, d = c ? C(t) : null;
|
|
758
|
+
c && h();
|
|
759
|
+
function h() {
|
|
760
|
+
const m = C(t);
|
|
761
|
+
d && (m.x !== d.x || m.y !== d.y || m.width !== d.width || m.height !== d.height) && n(), d = m, u = requestAnimationFrame(h);
|
|
762
|
+
}
|
|
763
|
+
return n(), () => {
|
|
764
|
+
var m;
|
|
765
|
+
g.forEach((p) => {
|
|
766
|
+
l && p.removeEventListener("scroll", n), a && p.removeEventListener("resize", n);
|
|
767
|
+
}), (m = f) == null || m.disconnect(), f = null, c && cancelAnimationFrame(u);
|
|
768
|
+
};
|
|
769
|
+
}
|
|
770
|
+
const Yt = (t, e, n) => ht(t, e, {
|
|
771
|
+
platform: _t,
|
|
772
|
+
...n
|
|
773
|
+
});
|
|
774
|
+
export {
|
|
775
|
+
It as a,
|
|
776
|
+
Yt as c,
|
|
777
|
+
zt as f,
|
|
778
|
+
Xt as o,
|
|
779
|
+
jt as s
|
|
780
|
+
};
|