@carbon/ibm-products 2.71.0 → 2.72.0-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (222) hide show
  1. package/css/carbon.css +50 -0
  2. package/css/carbon.css.map +1 -1
  3. package/css/index-full-carbon.css +560 -185
  4. package/css/index-full-carbon.css.map +1 -1
  5. package/css/index-full-carbon.min.css +1 -1
  6. package/css/index-full-carbon.min.css.map +1 -1
  7. package/css/index-without-carbon-released-only.css +132 -1
  8. package/css/index-without-carbon-released-only.css.map +1 -1
  9. package/css/index-without-carbon-released-only.min.css +1 -1
  10. package/css/index-without-carbon-released-only.min.css.map +1 -1
  11. package/css/index-without-carbon.css +570 -245
  12. package/css/index-without-carbon.css.map +1 -1
  13. package/css/index-without-carbon.min.css +1 -1
  14. package/css/index-without-carbon.min.css.map +1 -1
  15. package/css/index.css +358 -33
  16. package/css/index.css.map +1 -1
  17. package/css/index.min.css +1 -1
  18. package/css/index.min.css.map +1 -1
  19. package/es/components/{BigNumbers/BigNumbers.d.ts → BigNumber/BigNumber.d.ts} +5 -5
  20. package/es/components/{BigNumbers/BigNumbers.js → BigNumber/BigNumber.js} +12 -12
  21. package/es/components/BigNumber/BigNumberSkeleton.d.ts +17 -0
  22. package/es/components/{BigNumbers/BigNumbersSkeleton.js → BigNumber/BigNumberSkeleton.js} +16 -16
  23. package/es/components/{BigNumbers → BigNumber}/constants.d.ts +3 -3
  24. package/es/components/{BigNumbers → BigNumber}/constants.js +6 -6
  25. package/es/components/{BigNumbers → BigNumber}/index.d.ts +2 -2
  26. package/es/components/Coachmark/next/Coachmark/Coachmark.d.ts +72 -0
  27. package/es/components/Coachmark/next/Coachmark/Coachmark.js +185 -0
  28. package/es/components/Coachmark/next/Coachmark/CoachmarkBeacon/CoachmarkBeacon.d.ts +44 -0
  29. package/es/components/Coachmark/next/Coachmark/CoachmarkBeacon/index.d.ts +8 -0
  30. package/es/components/Coachmark/next/Coachmark/CoachmarkBubble/CoachmarkBubble.d.ts +38 -0
  31. package/es/components/Coachmark/next/Coachmark/CoachmarkBubble/CoachmarkBubble.js +125 -0
  32. package/es/components/Coachmark/next/Coachmark/CoachmarkBubble/CoachmarkBubbleHeader.d.ts +24 -0
  33. package/es/components/Coachmark/next/Coachmark/CoachmarkBubble/CoachmarkBubbleHeader.js +25 -0
  34. package/es/components/Coachmark/next/Coachmark/CoachmarkBubble/index.d.ts +10 -0
  35. package/es/components/Coachmark/next/Coachmark/CoachmarkContent.d.ts +34 -0
  36. package/es/components/Coachmark/next/Coachmark/CoachmarkContent.js +118 -0
  37. package/es/components/Coachmark/next/Coachmark/ContentBody.d.ts +23 -0
  38. package/es/components/Coachmark/next/Coachmark/ContentBody.js +37 -0
  39. package/es/components/Coachmark/next/Coachmark/ContentHeader.d.ts +21 -0
  40. package/es/components/Coachmark/next/Coachmark/ContentHeader.js +89 -0
  41. package/{lib/components/BigNumbers → es/components/Coachmark/next/Coachmark}/index.d.ts +2 -2
  42. package/es/components/CoachmarkBeacon/CoachmarkBeacon.js +0 -1
  43. package/es/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +2 -1
  44. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.js +11 -5
  45. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.js +1 -1
  46. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemNumber/ConditionBuilderItemNumber.js +11 -4
  47. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js +2 -2
  48. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.js +1 -1
  49. package/es/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.js +42 -3
  50. package/es/components/ConditionBuilder/ConditionPreview/ConditionPreview.d.ts +3 -1
  51. package/es/components/ConditionBuilder/ConditionPreview/ConditionPreview.js +5 -3
  52. package/es/components/ConditionBuilder/utils/useTranslations.js +1 -1
  53. package/es/components/EditInPlace/EditInPlace.js +0 -3
  54. package/es/components/EmptyStates/EmptyState.d.ts +2 -2
  55. package/es/components/EmptyStates/EmptyState.js +2 -8
  56. package/es/components/FilterPanel/FilterPanelGroup/index.d.ts +1 -0
  57. package/es/components/InterstitialScreen/InterstitialScreen.d.ts +1 -25
  58. package/es/components/InterstitialScreen/InterstitialScreen.js +3 -19
  59. package/es/components/InterstitialScreen/InterstitialScreenBody.d.ts +1 -1
  60. package/es/components/InterstitialScreen/InterstitialScreenBody.js +1 -1
  61. package/es/components/InterstitialScreen/InterstitialScreenFooter.d.ts +1 -1
  62. package/es/components/InterstitialScreen/InterstitialScreenFooter.js +1 -1
  63. package/es/components/InterstitialScreen/InterstitialScreenHeader.d.ts +6 -0
  64. package/es/components/InterstitialScreen/InterstitialScreenHeader.js +1 -1
  65. package/es/components/InterstitialScreen/_story-assets/InterstitialScreenViewModule/InterstitialScreenViewModule.d.ts +1 -1
  66. package/es/components/InterstitialScreen/context.d.ts +31 -0
  67. package/es/components/InterstitialScreen/context.js +18 -0
  68. package/es/components/InterstitialScreen/index.d.ts +3 -2
  69. package/es/components/NotificationsPanel/NotificationsPanel.js +36 -13
  70. package/es/components/PageHeader/PageHeader.d.ts +2 -1
  71. package/es/components/PageHeader/PageHeader.js +2 -1
  72. package/es/components/PageHeader/next/PageHeader.d.ts +18 -3
  73. package/es/components/PageHeader/next/PageHeader.js +260 -12
  74. package/es/components/PageHeader/next/context.d.ts +25 -0
  75. package/es/components/PageHeader/next/context.js +30 -0
  76. package/es/components/PageHeader/next/index.d.ts +3 -3
  77. package/es/components/PageHeader/next/overflowHandler.d.ts +95 -0
  78. package/es/components/PageHeader/next/overflowHandler.js +162 -0
  79. package/es/components/PageHeader/next/utils.d.ts +19 -0
  80. package/es/components/PageHeader/next/utils.js +68 -0
  81. package/es/components/ProductiveCard/ProductiveCard.js +2 -1
  82. package/es/components/ScrollGradient/ScrollGradient.js +1 -2
  83. package/es/components/SidePanel/SidePanel.d.ts +4 -0
  84. package/es/components/SidePanel/SidePanel.js +8 -2
  85. package/es/components/Tearsheet/TearsheetShell.js +8 -5
  86. package/es/components/TruncatedText/TruncatedText.d.ts +48 -0
  87. package/es/components/TruncatedText/TruncatedText.js +86 -0
  88. package/es/components/TruncatedText/index.d.ts +7 -0
  89. package/es/components/TruncatedText/useTruncatedText.d.ts +16 -0
  90. package/es/components/TruncatedText/useTruncatedText.js +41 -0
  91. package/es/components/index.d.ts +4 -2
  92. package/es/global/js/hooks/useOverflowString.d.ts +2 -2
  93. package/es/global/js/hooks/useResizeObserver.d.ts +1 -1
  94. package/es/global/js/package-settings.d.ts +2 -1
  95. package/es/global/js/package-settings.js +3 -2
  96. package/es/global/js/utils/checkForOverflow.js +21 -0
  97. package/es/global/js/utils/makeDraggable/index.d.ts +1 -0
  98. package/es/global/js/utils/makeDraggable/makeDraggable.d.ts +19 -0
  99. package/es/global/js/utils/makeDraggable/makeDraggable.js +91 -0
  100. package/es/global/js/utils/makeDraggable/makeDraggable.stories.d.ts +22 -0
  101. package/es/index.js +4 -2
  102. package/es/node_modules/@floating-ui/core/dist/floating-ui.core.js +592 -0
  103. package/es/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +713 -0
  104. package/es/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +95 -0
  105. package/es/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +161 -0
  106. package/es/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +142 -0
  107. package/es/settings.d.ts +2 -1
  108. package/lib/components/{BigNumbers/BigNumbers.d.ts → BigNumber/BigNumber.d.ts} +5 -5
  109. package/lib/components/{BigNumbers/BigNumbers.js → BigNumber/BigNumber.js} +11 -11
  110. package/lib/components/BigNumber/BigNumberSkeleton.d.ts +17 -0
  111. package/lib/components/{BigNumbers/BigNumbersSkeleton.js → BigNumber/BigNumberSkeleton.js} +15 -15
  112. package/lib/components/{BigNumbers → BigNumber}/constants.d.ts +3 -3
  113. package/lib/components/{BigNumbers → BigNumber}/constants.js +6 -6
  114. package/lib/components/BigNumber/index.d.ts +7 -0
  115. package/lib/components/Coachmark/Coachmark.js +2 -2
  116. package/lib/components/Coachmark/next/Coachmark/Coachmark.d.ts +72 -0
  117. package/lib/components/Coachmark/next/Coachmark/Coachmark.js +189 -0
  118. package/lib/components/Coachmark/next/Coachmark/CoachmarkBeacon/CoachmarkBeacon.d.ts +44 -0
  119. package/lib/components/Coachmark/next/Coachmark/CoachmarkBeacon/index.d.ts +8 -0
  120. package/lib/components/Coachmark/next/Coachmark/CoachmarkBubble/CoachmarkBubble.d.ts +38 -0
  121. package/lib/components/Coachmark/next/Coachmark/CoachmarkBubble/CoachmarkBubble.js +127 -0
  122. package/lib/components/Coachmark/next/Coachmark/CoachmarkBubble/CoachmarkBubbleHeader.d.ts +24 -0
  123. package/lib/components/Coachmark/next/Coachmark/CoachmarkBubble/CoachmarkBubbleHeader.js +27 -0
  124. package/lib/components/Coachmark/next/Coachmark/CoachmarkBubble/index.d.ts +10 -0
  125. package/lib/components/Coachmark/next/Coachmark/CoachmarkContent.d.ts +34 -0
  126. package/lib/components/Coachmark/next/Coachmark/CoachmarkContent.js +122 -0
  127. package/lib/components/Coachmark/next/Coachmark/ContentBody.d.ts +23 -0
  128. package/lib/components/Coachmark/next/Coachmark/ContentBody.js +41 -0
  129. package/lib/components/Coachmark/next/Coachmark/ContentHeader.d.ts +21 -0
  130. package/lib/components/Coachmark/next/Coachmark/ContentHeader.js +93 -0
  131. package/lib/components/Coachmark/next/Coachmark/index.d.ts +7 -0
  132. package/lib/components/CoachmarkBeacon/CoachmarkBeacon.js +0 -1
  133. package/lib/components/CoachmarkFixed/CoachmarkFixed.js +2 -2
  134. package/lib/components/CoachmarkStack/CoachmarkStack.js +2 -2
  135. package/lib/components/CoachmarkStack/CoachmarkStackHome.js +2 -2
  136. package/lib/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +2 -1
  137. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.js +11 -5
  138. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.js +1 -1
  139. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemNumber/ConditionBuilderItemNumber.js +11 -4
  140. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js +2 -2
  141. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.js +1 -1
  142. package/lib/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.js +41 -2
  143. package/lib/components/ConditionBuilder/ConditionPreview/ConditionPreview.d.ts +3 -1
  144. package/lib/components/ConditionBuilder/ConditionPreview/ConditionPreview.js +5 -3
  145. package/lib/components/ConditionBuilder/utils/useTranslations.js +1 -1
  146. package/lib/components/EditInPlace/EditInPlace.js +0 -3
  147. package/lib/components/EmptyStates/EmptyState.d.ts +2 -2
  148. package/lib/components/EmptyStates/EmptyState.js +2 -8
  149. package/lib/components/FilterPanel/FilterPanelGroup/index.d.ts +1 -0
  150. package/lib/components/InterstitialScreen/InterstitialScreen.d.ts +1 -25
  151. package/lib/components/InterstitialScreen/InterstitialScreen.js +6 -25
  152. package/lib/components/InterstitialScreen/InterstitialScreenBody.d.ts +1 -1
  153. package/lib/components/InterstitialScreen/InterstitialScreenBody.js +6 -6
  154. package/lib/components/InterstitialScreen/InterstitialScreenFooter.d.ts +1 -1
  155. package/lib/components/InterstitialScreen/InterstitialScreenFooter.js +9 -9
  156. package/lib/components/InterstitialScreen/InterstitialScreenHeader.d.ts +6 -0
  157. package/lib/components/InterstitialScreen/InterstitialScreenHeader.js +5 -5
  158. package/lib/components/InterstitialScreen/_story-assets/InterstitialScreenViewModule/InterstitialScreenViewModule.d.ts +1 -1
  159. package/lib/components/InterstitialScreen/context.d.ts +31 -0
  160. package/lib/components/InterstitialScreen/context.js +21 -0
  161. package/lib/components/InterstitialScreen/index.d.ts +3 -2
  162. package/lib/components/NotificationsPanel/NotificationsPanel.js +36 -13
  163. package/lib/components/PageHeader/PageHeader.d.ts +2 -1
  164. package/lib/components/PageHeader/PageHeader.js +2 -1
  165. package/lib/components/PageHeader/next/PageHeader.d.ts +18 -3
  166. package/lib/components/PageHeader/next/PageHeader.js +261 -7
  167. package/lib/components/PageHeader/next/context.d.ts +25 -0
  168. package/lib/components/PageHeader/next/context.js +33 -0
  169. package/lib/components/PageHeader/next/index.d.ts +3 -3
  170. package/lib/components/PageHeader/next/overflowHandler.d.ts +95 -0
  171. package/lib/components/PageHeader/next/overflowHandler.js +166 -0
  172. package/lib/components/PageHeader/next/utils.d.ts +19 -0
  173. package/lib/components/PageHeader/next/utils.js +71 -0
  174. package/lib/components/ProductiveCard/ProductiveCard.js +2 -1
  175. package/lib/components/ScrollGradient/ScrollGradient.js +1 -2
  176. package/lib/components/SidePanel/SidePanel.d.ts +4 -0
  177. package/lib/components/SidePanel/SidePanel.js +8 -2
  178. package/lib/components/Tearsheet/TearsheetShell.js +8 -5
  179. package/lib/components/TruncatedText/TruncatedText.d.ts +48 -0
  180. package/lib/components/TruncatedText/TruncatedText.js +86 -0
  181. package/lib/components/TruncatedText/index.d.ts +7 -0
  182. package/lib/components/TruncatedText/useTruncatedText.d.ts +16 -0
  183. package/lib/components/TruncatedText/useTruncatedText.js +45 -0
  184. package/lib/components/index.d.ts +4 -2
  185. package/lib/global/js/hooks/useOverflowString.d.ts +2 -2
  186. package/lib/global/js/hooks/usePortalTarget.js +2 -2
  187. package/lib/global/js/hooks/useResizeObserver.d.ts +1 -1
  188. package/lib/global/js/package-settings.d.ts +2 -1
  189. package/lib/global/js/package-settings.js +3 -2
  190. package/lib/global/js/utils/checkForOverflow.js +23 -0
  191. package/lib/global/js/utils/makeDraggable/index.d.ts +1 -0
  192. package/lib/global/js/utils/makeDraggable/makeDraggable.d.ts +19 -0
  193. package/lib/global/js/utils/makeDraggable/makeDraggable.js +93 -0
  194. package/lib/global/js/utils/makeDraggable/makeDraggable.stories.d.ts +22 -0
  195. package/lib/index.js +11 -4
  196. package/lib/node_modules/@floating-ui/core/dist/floating-ui.core.js +600 -0
  197. package/lib/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +722 -0
  198. package/lib/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +102 -0
  199. package/lib/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +182 -0
  200. package/lib/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +164 -0
  201. package/lib/settings.d.ts +2 -1
  202. package/package.json +10 -11
  203. package/scss/components/{BigNumbers/_big-numbers.scss → BigNumber/_big-number.scss} +5 -5
  204. package/scss/components/{BigNumbers → BigNumber}/_carbon-imports.scss +3 -3
  205. package/scss/components/{BigNumbers → BigNumber}/_index-with-carbon.scss +2 -2
  206. package/scss/components/{BigNumbers → BigNumber}/_index.scss +2 -2
  207. package/scss/components/Card/_card.scss +2 -0
  208. package/scss/components/Coachmark/_bubble.scss +62 -0
  209. package/scss/components/Coachmark/_coachmark-beacon.scss +164 -0
  210. package/scss/components/Coachmark/_coachmark.scss +15 -0
  211. package/scss/components/ConditionBuilder/_condition-builder.scss +8 -0
  212. package/scss/components/PageHeader/_page-header.scss +144 -1
  213. package/scss/components/Tearsheet/_tearsheet.scss +6 -0
  214. package/scss/components/TruncatedText/_carbon-imports.scss +6 -0
  215. package/scss/components/TruncatedText/_index-with-carbon.scss +9 -0
  216. package/scss/components/TruncatedText/_index.scss +8 -0
  217. package/scss/components/TruncatedText/_truncated-text.scss +26 -0
  218. package/scss/components/_index-with-carbon.scss +3 -2
  219. package/scss/components/_index.scss +3 -2
  220. package/telemetry.yml +24 -5
  221. package/es/components/BigNumbers/BigNumbersSkeleton.d.ts +0 -17
  222. package/lib/components/BigNumbers/BigNumbersSkeleton.d.ts +0 -17
@@ -0,0 +1,713 @@
1
+ /**
2
+ * Copyright IBM Corp. 2020, 2025
3
+ *
4
+ * This source code is licensed under the Apache-2.0 license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+
8
+ import { offset as offset$1, flip as flip$1, shift as shift$1, arrow as arrow$1, computePosition as computePosition$1 } from '../../core/dist/floating-ui.core.js';
9
+ import { createCoords, rectToClientRect, floor, max, round, min } from '../../utils/dist/floating-ui.utils.js';
10
+ import { getOverflowAncestors, isElement, getDocumentElement, getWindow, getFrameElement, getComputedStyle, isHTMLElement, isWebKit, isTopLayer, getParentNode, isLastTraversableNode, isTableElement, isContainingBlock, getContainingBlock, getNodeName, isOverflowElement, getNodeScroll } from '../../utils/dist/floating-ui.utils.dom.js';
11
+
12
+ function getCssDimensions(element) {
13
+ const css = getComputedStyle(element);
14
+ // In testing environments, the `width` and `height` properties are empty
15
+ // strings for SVG elements, returning NaN. Fallback to `0` in this case.
16
+ let width = parseFloat(css.width) || 0;
17
+ let height = parseFloat(css.height) || 0;
18
+ const hasOffset = isHTMLElement(element);
19
+ const offsetWidth = hasOffset ? element.offsetWidth : width;
20
+ const offsetHeight = hasOffset ? element.offsetHeight : height;
21
+ const shouldFallback = round(width) !== offsetWidth || round(height) !== offsetHeight;
22
+ if (shouldFallback) {
23
+ width = offsetWidth;
24
+ height = offsetHeight;
25
+ }
26
+ return {
27
+ width,
28
+ height,
29
+ $: shouldFallback
30
+ };
31
+ }
32
+
33
+ function unwrapElement(element) {
34
+ return !isElement(element) ? element.contextElement : element;
35
+ }
36
+
37
+ function getScale(element) {
38
+ const domElement = unwrapElement(element);
39
+ if (!isHTMLElement(domElement)) {
40
+ return createCoords(1);
41
+ }
42
+ const rect = domElement.getBoundingClientRect();
43
+ const {
44
+ width,
45
+ height,
46
+ $
47
+ } = getCssDimensions(domElement);
48
+ let x = ($ ? round(rect.width) : rect.width) / width;
49
+ let y = ($ ? round(rect.height) : rect.height) / height;
50
+
51
+ // 0, NaN, or Infinity should always fallback to 1.
52
+
53
+ if (!x || !Number.isFinite(x)) {
54
+ x = 1;
55
+ }
56
+ if (!y || !Number.isFinite(y)) {
57
+ y = 1;
58
+ }
59
+ return {
60
+ x,
61
+ y
62
+ };
63
+ }
64
+
65
+ const noOffsets = /*#__PURE__*/createCoords(0);
66
+ function getVisualOffsets(element) {
67
+ const win = getWindow(element);
68
+ if (!isWebKit() || !win.visualViewport) {
69
+ return noOffsets;
70
+ }
71
+ return {
72
+ x: win.visualViewport.offsetLeft,
73
+ y: win.visualViewport.offsetTop
74
+ };
75
+ }
76
+ function shouldAddVisualOffsets(element, isFixed, floatingOffsetParent) {
77
+ if (isFixed === void 0) {
78
+ isFixed = false;
79
+ }
80
+ if (!floatingOffsetParent || isFixed && floatingOffsetParent !== getWindow(element)) {
81
+ return false;
82
+ }
83
+ return isFixed;
84
+ }
85
+
86
+ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {
87
+ if (includeScale === void 0) {
88
+ includeScale = false;
89
+ }
90
+ if (isFixedStrategy === void 0) {
91
+ isFixedStrategy = false;
92
+ }
93
+ const clientRect = element.getBoundingClientRect();
94
+ const domElement = unwrapElement(element);
95
+ let scale = createCoords(1);
96
+ if (includeScale) {
97
+ if (offsetParent) {
98
+ if (isElement(offsetParent)) {
99
+ scale = getScale(offsetParent);
100
+ }
101
+ } else {
102
+ scale = getScale(element);
103
+ }
104
+ }
105
+ const visualOffsets = shouldAddVisualOffsets(domElement, isFixedStrategy, offsetParent) ? getVisualOffsets(domElement) : createCoords(0);
106
+ let x = (clientRect.left + visualOffsets.x) / scale.x;
107
+ let y = (clientRect.top + visualOffsets.y) / scale.y;
108
+ let width = clientRect.width / scale.x;
109
+ let height = clientRect.height / scale.y;
110
+ if (domElement) {
111
+ const win = getWindow(domElement);
112
+ const offsetWin = offsetParent && isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;
113
+ let currentWin = win;
114
+ let currentIFrame = getFrameElement(currentWin);
115
+ while (currentIFrame && offsetParent && offsetWin !== currentWin) {
116
+ const iframeScale = getScale(currentIFrame);
117
+ const iframeRect = currentIFrame.getBoundingClientRect();
118
+ const css = getComputedStyle(currentIFrame);
119
+ const left = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;
120
+ const top = iframeRect.top + (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;
121
+ x *= iframeScale.x;
122
+ y *= iframeScale.y;
123
+ width *= iframeScale.x;
124
+ height *= iframeScale.y;
125
+ x += left;
126
+ y += top;
127
+ currentWin = getWindow(currentIFrame);
128
+ currentIFrame = getFrameElement(currentWin);
129
+ }
130
+ }
131
+ return rectToClientRect({
132
+ width,
133
+ height,
134
+ x,
135
+ y
136
+ });
137
+ }
138
+
139
+ // If <html> has a CSS width greater than the viewport, then this will be
140
+ // incorrect for RTL.
141
+ function getWindowScrollBarX(element, rect) {
142
+ const leftScroll = getNodeScroll(element).scrollLeft;
143
+ if (!rect) {
144
+ return getBoundingClientRect(getDocumentElement(element)).left + leftScroll;
145
+ }
146
+ return rect.left + leftScroll;
147
+ }
148
+
149
+ function getHTMLOffset(documentElement, scroll, ignoreScrollbarX) {
150
+ if (ignoreScrollbarX === void 0) {
151
+ ignoreScrollbarX = false;
152
+ }
153
+ const htmlRect = documentElement.getBoundingClientRect();
154
+ const x = htmlRect.left + scroll.scrollLeft - (ignoreScrollbarX ? 0 :
155
+ // RTL <body> scrollbar.
156
+ getWindowScrollBarX(documentElement, htmlRect));
157
+ const y = htmlRect.top + scroll.scrollTop;
158
+ return {
159
+ x,
160
+ y
161
+ };
162
+ }
163
+
164
+ function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
165
+ let {
166
+ elements,
167
+ rect,
168
+ offsetParent,
169
+ strategy
170
+ } = _ref;
171
+ const isFixed = strategy === 'fixed';
172
+ const documentElement = getDocumentElement(offsetParent);
173
+ const topLayer = elements ? isTopLayer(elements.floating) : false;
174
+ if (offsetParent === documentElement || topLayer && isFixed) {
175
+ return rect;
176
+ }
177
+ let scroll = {
178
+ scrollLeft: 0,
179
+ scrollTop: 0
180
+ };
181
+ let scale = createCoords(1);
182
+ const offsets = createCoords(0);
183
+ const isOffsetParentAnElement = isHTMLElement(offsetParent);
184
+ if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
185
+ if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
186
+ scroll = getNodeScroll(offsetParent);
187
+ }
188
+ if (isHTMLElement(offsetParent)) {
189
+ const offsetRect = getBoundingClientRect(offsetParent);
190
+ scale = getScale(offsetParent);
191
+ offsets.x = offsetRect.x + offsetParent.clientLeft;
192
+ offsets.y = offsetRect.y + offsetParent.clientTop;
193
+ }
194
+ }
195
+ const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll, true) : createCoords(0);
196
+ return {
197
+ width: rect.width * scale.x,
198
+ height: rect.height * scale.y,
199
+ x: rect.x * scale.x - scroll.scrollLeft * scale.x + offsets.x + htmlOffset.x,
200
+ y: rect.y * scale.y - scroll.scrollTop * scale.y + offsets.y + htmlOffset.y
201
+ };
202
+ }
203
+
204
+ function getClientRects(element) {
205
+ return Array.from(element.getClientRects());
206
+ }
207
+
208
+ // Gets the entire size of the scrollable document area, even extending outside
209
+ // of the `<html>` and `<body>` rect bounds if horizontally scrollable.
210
+ function getDocumentRect(element) {
211
+ const html = getDocumentElement(element);
212
+ const scroll = getNodeScroll(element);
213
+ const body = element.ownerDocument.body;
214
+ const width = max(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);
215
+ const height = max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);
216
+ let x = -scroll.scrollLeft + getWindowScrollBarX(element);
217
+ const y = -scroll.scrollTop;
218
+ if (getComputedStyle(body).direction === 'rtl') {
219
+ x += max(html.clientWidth, body.clientWidth) - width;
220
+ }
221
+ return {
222
+ width,
223
+ height,
224
+ x,
225
+ y
226
+ };
227
+ }
228
+
229
+ function getViewportRect(element, strategy) {
230
+ const win = getWindow(element);
231
+ const html = getDocumentElement(element);
232
+ const visualViewport = win.visualViewport;
233
+ let width = html.clientWidth;
234
+ let height = html.clientHeight;
235
+ let x = 0;
236
+ let y = 0;
237
+ if (visualViewport) {
238
+ width = visualViewport.width;
239
+ height = visualViewport.height;
240
+ const visualViewportBased = isWebKit();
241
+ if (!visualViewportBased || visualViewportBased && strategy === 'fixed') {
242
+ x = visualViewport.offsetLeft;
243
+ y = visualViewport.offsetTop;
244
+ }
245
+ }
246
+ return {
247
+ width,
248
+ height,
249
+ x,
250
+ y
251
+ };
252
+ }
253
+
254
+ // Returns the inner client rect, subtracting scrollbars if present.
255
+ function getInnerBoundingClientRect(element, strategy) {
256
+ const clientRect = getBoundingClientRect(element, true, strategy === 'fixed');
257
+ const top = clientRect.top + element.clientTop;
258
+ const left = clientRect.left + element.clientLeft;
259
+ const scale = isHTMLElement(element) ? getScale(element) : createCoords(1);
260
+ const width = element.clientWidth * scale.x;
261
+ const height = element.clientHeight * scale.y;
262
+ const x = left * scale.x;
263
+ const y = top * scale.y;
264
+ return {
265
+ width,
266
+ height,
267
+ x,
268
+ y
269
+ };
270
+ }
271
+ function getClientRectFromClippingAncestor(element, clippingAncestor, strategy) {
272
+ let rect;
273
+ if (clippingAncestor === 'viewport') {
274
+ rect = getViewportRect(element, strategy);
275
+ } else if (clippingAncestor === 'document') {
276
+ rect = getDocumentRect(getDocumentElement(element));
277
+ } else if (isElement(clippingAncestor)) {
278
+ rect = getInnerBoundingClientRect(clippingAncestor, strategy);
279
+ } else {
280
+ const visualOffsets = getVisualOffsets(element);
281
+ rect = {
282
+ x: clippingAncestor.x - visualOffsets.x,
283
+ y: clippingAncestor.y - visualOffsets.y,
284
+ width: clippingAncestor.width,
285
+ height: clippingAncestor.height
286
+ };
287
+ }
288
+ return rectToClientRect(rect);
289
+ }
290
+ function hasFixedPositionAncestor(element, stopNode) {
291
+ const parentNode = getParentNode(element);
292
+ if (parentNode === stopNode || !isElement(parentNode) || isLastTraversableNode(parentNode)) {
293
+ return false;
294
+ }
295
+ return getComputedStyle(parentNode).position === 'fixed' || hasFixedPositionAncestor(parentNode, stopNode);
296
+ }
297
+
298
+ // A "clipping ancestor" is an `overflow` element with the characteristic of
299
+ // clipping (or hiding) child elements. This returns all clipping ancestors
300
+ // of the given element up the tree.
301
+ function getClippingElementAncestors(element, cache) {
302
+ const cachedResult = cache.get(element);
303
+ if (cachedResult) {
304
+ return cachedResult;
305
+ }
306
+ let result = getOverflowAncestors(element, [], false).filter(el => isElement(el) && getNodeName(el) !== 'body');
307
+ let currentContainingBlockComputedStyle = null;
308
+ const elementIsFixed = getComputedStyle(element).position === 'fixed';
309
+ let currentNode = elementIsFixed ? getParentNode(element) : element;
310
+
311
+ // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
312
+ while (isElement(currentNode) && !isLastTraversableNode(currentNode)) {
313
+ const computedStyle = getComputedStyle(currentNode);
314
+ const currentNodeIsContaining = isContainingBlock(currentNode);
315
+ if (!currentNodeIsContaining && computedStyle.position === 'fixed') {
316
+ currentContainingBlockComputedStyle = null;
317
+ }
318
+ const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === 'static' && !!currentContainingBlockComputedStyle && ['absolute', 'fixed'].includes(currentContainingBlockComputedStyle.position) || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);
319
+ if (shouldDropCurrentNode) {
320
+ // Drop non-containing blocks.
321
+ result = result.filter(ancestor => ancestor !== currentNode);
322
+ } else {
323
+ // Record last containing block for next iteration.
324
+ currentContainingBlockComputedStyle = computedStyle;
325
+ }
326
+ currentNode = getParentNode(currentNode);
327
+ }
328
+ cache.set(element, result);
329
+ return result;
330
+ }
331
+
332
+ // Gets the maximum area that the element is visible in due to any number of
333
+ // clipping ancestors.
334
+ function getClippingRect(_ref) {
335
+ let {
336
+ element,
337
+ boundary,
338
+ rootBoundary,
339
+ strategy
340
+ } = _ref;
341
+ const elementClippingAncestors = boundary === 'clippingAncestors' ? isTopLayer(element) ? [] : getClippingElementAncestors(element, this._c) : [].concat(boundary);
342
+ const clippingAncestors = [...elementClippingAncestors, rootBoundary];
343
+ const firstClippingAncestor = clippingAncestors[0];
344
+ const clippingRect = clippingAncestors.reduce((accRect, clippingAncestor) => {
345
+ const rect = getClientRectFromClippingAncestor(element, clippingAncestor, strategy);
346
+ accRect.top = max(rect.top, accRect.top);
347
+ accRect.right = min(rect.right, accRect.right);
348
+ accRect.bottom = min(rect.bottom, accRect.bottom);
349
+ accRect.left = max(rect.left, accRect.left);
350
+ return accRect;
351
+ }, getClientRectFromClippingAncestor(element, firstClippingAncestor, strategy));
352
+ return {
353
+ width: clippingRect.right - clippingRect.left,
354
+ height: clippingRect.bottom - clippingRect.top,
355
+ x: clippingRect.left,
356
+ y: clippingRect.top
357
+ };
358
+ }
359
+
360
+ function getDimensions(element) {
361
+ const {
362
+ width,
363
+ height
364
+ } = getCssDimensions(element);
365
+ return {
366
+ width,
367
+ height
368
+ };
369
+ }
370
+
371
+ function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
372
+ const isOffsetParentAnElement = isHTMLElement(offsetParent);
373
+ const documentElement = getDocumentElement(offsetParent);
374
+ const isFixed = strategy === 'fixed';
375
+ const rect = getBoundingClientRect(element, true, isFixed, offsetParent);
376
+ let scroll = {
377
+ scrollLeft: 0,
378
+ scrollTop: 0
379
+ };
380
+ const offsets = createCoords(0);
381
+ if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
382
+ if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
383
+ scroll = getNodeScroll(offsetParent);
384
+ }
385
+ if (isOffsetParentAnElement) {
386
+ const offsetRect = getBoundingClientRect(offsetParent, true, isFixed, offsetParent);
387
+ offsets.x = offsetRect.x + offsetParent.clientLeft;
388
+ offsets.y = offsetRect.y + offsetParent.clientTop;
389
+ } else if (documentElement) {
390
+ // If the <body> scrollbar appears on the left (e.g. RTL systems). Use
391
+ // Firefox with layout.scrollbar.side = 3 in about:config to test this.
392
+ offsets.x = getWindowScrollBarX(documentElement);
393
+ }
394
+ }
395
+ const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
396
+ const x = rect.left + scroll.scrollLeft - offsets.x - htmlOffset.x;
397
+ const y = rect.top + scroll.scrollTop - offsets.y - htmlOffset.y;
398
+ return {
399
+ x,
400
+ y,
401
+ width: rect.width,
402
+ height: rect.height
403
+ };
404
+ }
405
+
406
+ function isStaticPositioned(element) {
407
+ return getComputedStyle(element).position === 'static';
408
+ }
409
+
410
+ function getTrueOffsetParent(element, polyfill) {
411
+ if (!isHTMLElement(element) || getComputedStyle(element).position === 'fixed') {
412
+ return null;
413
+ }
414
+ if (polyfill) {
415
+ return polyfill(element);
416
+ }
417
+ let rawOffsetParent = element.offsetParent;
418
+
419
+ // Firefox returns the <html> element as the offsetParent if it's non-static,
420
+ // while Chrome and Safari return the <body> element. The <body> element must
421
+ // be used to perform the correct calculations even if the <html> element is
422
+ // non-static.
423
+ if (getDocumentElement(element) === rawOffsetParent) {
424
+ rawOffsetParent = rawOffsetParent.ownerDocument.body;
425
+ }
426
+ return rawOffsetParent;
427
+ }
428
+
429
+ // Gets the closest ancestor positioned element. Handles some edge cases,
430
+ // such as table ancestors and cross browser bugs.
431
+ function getOffsetParent(element, polyfill) {
432
+ const win = getWindow(element);
433
+ if (isTopLayer(element)) {
434
+ return win;
435
+ }
436
+ if (!isHTMLElement(element)) {
437
+ let svgOffsetParent = getParentNode(element);
438
+ while (svgOffsetParent && !isLastTraversableNode(svgOffsetParent)) {
439
+ if (isElement(svgOffsetParent) && !isStaticPositioned(svgOffsetParent)) {
440
+ return svgOffsetParent;
441
+ }
442
+ svgOffsetParent = getParentNode(svgOffsetParent);
443
+ }
444
+ return win;
445
+ }
446
+ let offsetParent = getTrueOffsetParent(element, polyfill);
447
+ while (offsetParent && isTableElement(offsetParent) && isStaticPositioned(offsetParent)) {
448
+ offsetParent = getTrueOffsetParent(offsetParent, polyfill);
449
+ }
450
+ if (offsetParent && isLastTraversableNode(offsetParent) && isStaticPositioned(offsetParent) && !isContainingBlock(offsetParent)) {
451
+ return win;
452
+ }
453
+ return offsetParent || getContainingBlock(element) || win;
454
+ }
455
+
456
+ const getElementRects = async function (data) {
457
+ const getOffsetParentFn = this.getOffsetParent || getOffsetParent;
458
+ const getDimensionsFn = this.getDimensions;
459
+ const floatingDimensions = await getDimensionsFn(data.floating);
460
+ return {
461
+ reference: getRectRelativeToOffsetParent(data.reference, await getOffsetParentFn(data.floating), data.strategy),
462
+ floating: {
463
+ x: 0,
464
+ y: 0,
465
+ width: floatingDimensions.width,
466
+ height: floatingDimensions.height
467
+ }
468
+ };
469
+ };
470
+
471
+ function isRTL(element) {
472
+ return getComputedStyle(element).direction === 'rtl';
473
+ }
474
+
475
+ const platform = {
476
+ convertOffsetParentRelativeRectToViewportRelativeRect,
477
+ getDocumentElement,
478
+ getClippingRect,
479
+ getOffsetParent,
480
+ getElementRects,
481
+ getClientRects,
482
+ getDimensions,
483
+ getScale,
484
+ isElement,
485
+ isRTL
486
+ };
487
+
488
+ function rectsAreEqual(a, b) {
489
+ return a.x === b.x && a.y === b.y && a.width === b.width && a.height === b.height;
490
+ }
491
+
492
+ // https://samthor.au/2021/observing-dom/
493
+ function observeMove(element, onMove) {
494
+ let io = null;
495
+ let timeoutId;
496
+ const root = getDocumentElement(element);
497
+ function cleanup() {
498
+ var _io;
499
+ clearTimeout(timeoutId);
500
+ (_io = io) == null || _io.disconnect();
501
+ io = null;
502
+ }
503
+ function refresh(skip, threshold) {
504
+ if (skip === void 0) {
505
+ skip = false;
506
+ }
507
+ if (threshold === void 0) {
508
+ threshold = 1;
509
+ }
510
+ cleanup();
511
+ const elementRectForRootMargin = element.getBoundingClientRect();
512
+ const {
513
+ left,
514
+ top,
515
+ width,
516
+ height
517
+ } = elementRectForRootMargin;
518
+ if (!skip) {
519
+ onMove();
520
+ }
521
+ if (!width || !height) {
522
+ return;
523
+ }
524
+ const insetTop = floor(top);
525
+ const insetRight = floor(root.clientWidth - (left + width));
526
+ const insetBottom = floor(root.clientHeight - (top + height));
527
+ const insetLeft = floor(left);
528
+ const rootMargin = -insetTop + "px " + -insetRight + "px " + -insetBottom + "px " + -insetLeft + "px";
529
+ const options = {
530
+ rootMargin,
531
+ threshold: max(0, min(1, threshold)) || 1
532
+ };
533
+ let isFirstUpdate = true;
534
+ function handleObserve(entries) {
535
+ const ratio = entries[0].intersectionRatio;
536
+ if (ratio !== threshold) {
537
+ if (!isFirstUpdate) {
538
+ return refresh();
539
+ }
540
+ if (!ratio) {
541
+ // If the reference is clipped, the ratio is 0. Throttle the refresh
542
+ // to prevent an infinite loop of updates.
543
+ timeoutId = setTimeout(() => {
544
+ refresh(false, 1e-7);
545
+ }, 1000);
546
+ } else {
547
+ refresh(false, ratio);
548
+ }
549
+ }
550
+ if (ratio === 1 && !rectsAreEqual(elementRectForRootMargin, element.getBoundingClientRect())) {
551
+ // It's possible that even though the ratio is reported as 1, the
552
+ // element is not actually fully within the IntersectionObserver's root
553
+ // area anymore. This can happen under performance constraints. This may
554
+ // be a bug in the browser's IntersectionObserver implementation. To
555
+ // work around this, we compare the element's bounding rect now with
556
+ // what it was at the time we created the IntersectionObserver. If they
557
+ // are not equal then the element moved, so we refresh.
558
+ refresh();
559
+ }
560
+ isFirstUpdate = false;
561
+ }
562
+
563
+ // Older browsers don't support a `document` as the root and will throw an
564
+ // error.
565
+ try {
566
+ io = new IntersectionObserver(handleObserve, {
567
+ ...options,
568
+ // Handle <iframe>s
569
+ root: root.ownerDocument
570
+ });
571
+ } catch (e) {
572
+ io = new IntersectionObserver(handleObserve, options);
573
+ }
574
+ io.observe(element);
575
+ }
576
+ refresh(true);
577
+ return cleanup;
578
+ }
579
+
580
+ /**
581
+ * Automatically updates the position of the floating element when necessary.
582
+ * Should only be called when the floating element is mounted on the DOM or
583
+ * visible on the screen.
584
+ * @returns cleanup function that should be invoked when the floating element is
585
+ * removed from the DOM or hidden from the screen.
586
+ * @see https://floating-ui.com/docs/autoUpdate
587
+ */
588
+ function autoUpdate(reference, floating, update, options) {
589
+ if (options === void 0) {
590
+ options = {};
591
+ }
592
+ const {
593
+ ancestorScroll = true,
594
+ ancestorResize = true,
595
+ elementResize = typeof ResizeObserver === 'function',
596
+ layoutShift = typeof IntersectionObserver === 'function',
597
+ animationFrame = false
598
+ } = options;
599
+ const referenceEl = unwrapElement(reference);
600
+ const ancestors = ancestorScroll || ancestorResize ? [...(referenceEl ? getOverflowAncestors(referenceEl) : []), ...getOverflowAncestors(floating)] : [];
601
+ ancestors.forEach(ancestor => {
602
+ ancestorScroll && ancestor.addEventListener('scroll', update, {
603
+ passive: true
604
+ });
605
+ ancestorResize && ancestor.addEventListener('resize', update);
606
+ });
607
+ const cleanupIo = referenceEl && layoutShift ? observeMove(referenceEl, update) : null;
608
+ let reobserveFrame = -1;
609
+ let resizeObserver = null;
610
+ if (elementResize) {
611
+ resizeObserver = new ResizeObserver(_ref => {
612
+ let [firstEntry] = _ref;
613
+ if (firstEntry && firstEntry.target === referenceEl && resizeObserver) {
614
+ // Prevent update loops when using the `size` middleware.
615
+ // https://github.com/floating-ui/floating-ui/issues/1740
616
+ resizeObserver.unobserve(floating);
617
+ cancelAnimationFrame(reobserveFrame);
618
+ reobserveFrame = requestAnimationFrame(() => {
619
+ var _resizeObserver;
620
+ (_resizeObserver = resizeObserver) == null || _resizeObserver.observe(floating);
621
+ });
622
+ }
623
+ update();
624
+ });
625
+ if (referenceEl && !animationFrame) {
626
+ resizeObserver.observe(referenceEl);
627
+ }
628
+ resizeObserver.observe(floating);
629
+ }
630
+ let frameId;
631
+ let prevRefRect = animationFrame ? getBoundingClientRect(reference) : null;
632
+ if (animationFrame) {
633
+ frameLoop();
634
+ }
635
+ function frameLoop() {
636
+ const nextRefRect = getBoundingClientRect(reference);
637
+ if (prevRefRect && !rectsAreEqual(prevRefRect, nextRefRect)) {
638
+ update();
639
+ }
640
+ prevRefRect = nextRefRect;
641
+ frameId = requestAnimationFrame(frameLoop);
642
+ }
643
+ update();
644
+ return () => {
645
+ var _resizeObserver2;
646
+ ancestors.forEach(ancestor => {
647
+ ancestorScroll && ancestor.removeEventListener('scroll', update);
648
+ ancestorResize && ancestor.removeEventListener('resize', update);
649
+ });
650
+ cleanupIo == null || cleanupIo();
651
+ (_resizeObserver2 = resizeObserver) == null || _resizeObserver2.disconnect();
652
+ resizeObserver = null;
653
+ if (animationFrame) {
654
+ cancelAnimationFrame(frameId);
655
+ }
656
+ };
657
+ }
658
+
659
+ /**
660
+ * Modifies the placement by translating the floating element along the
661
+ * specified axes.
662
+ * A number (shorthand for `mainAxis` or distance), or an axes configuration
663
+ * object may be passed.
664
+ * @see https://floating-ui.com/docs/offset
665
+ */
666
+ const offset = offset$1;
667
+
668
+ /**
669
+ * Optimizes the visibility of the floating element by shifting it in order to
670
+ * keep it in view when it will overflow the clipping boundary.
671
+ * @see https://floating-ui.com/docs/shift
672
+ */
673
+ const shift = shift$1;
674
+
675
+ /**
676
+ * Optimizes the visibility of the floating element by flipping the `placement`
677
+ * in order to keep it in view when the preferred placement(s) will overflow the
678
+ * clipping boundary. Alternative to `autoPlacement`.
679
+ * @see https://floating-ui.com/docs/flip
680
+ */
681
+ const flip = flip$1;
682
+
683
+ /**
684
+ * Provides data to position an inner element of the floating element so that it
685
+ * appears centered to the reference element.
686
+ * @see https://floating-ui.com/docs/arrow
687
+ */
688
+ const arrow = arrow$1;
689
+
690
+ /**
691
+ * Computes the `x` and `y` coordinates that will place the floating element
692
+ * next to a given reference element.
693
+ */
694
+ const computePosition = (reference, floating, options) => {
695
+ // This caches the expensive `getClippingElementAncestors` function so that
696
+ // multiple lifecycle resets re-use the same result. It only lives for a
697
+ // single call. If other functions become expensive, we can add them as well.
698
+ const cache = new Map();
699
+ const mergedOptions = {
700
+ platform,
701
+ ...options
702
+ };
703
+ const platformWithCache = {
704
+ ...mergedOptions.platform,
705
+ _c: cache
706
+ };
707
+ return computePosition$1(reference, floating, {
708
+ ...mergedOptions,
709
+ platform: platformWithCache
710
+ });
711
+ };
712
+
713
+ export { arrow, autoUpdate, computePosition, flip, getOverflowAncestors, offset, platform, shift };