@soomo/react-text-annotator 3.0.0-staging.37 → 3.0.0-staging.38
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/react-text-annotator.css +1 -1
- package/dist/react-text-annotator.es11.js +1 -1
- package/dist/react-text-annotator.es13.js +51 -2
- package/dist/react-text-annotator.es13.js.map +1 -1
- package/dist/react-text-annotator.es14.js +146 -30
- package/dist/react-text-annotator.es14.js.map +1 -1
- package/dist/react-text-annotator.es15.js +2 -898
- package/dist/react-text-annotator.es15.js.map +1 -1
- package/dist/react-text-annotator.es16.js +29 -49
- package/dist/react-text-annotator.es16.js.map +1 -1
- package/dist/react-text-annotator.es17.js +896 -145
- package/dist/react-text-annotator.es17.js.map +1 -1
- package/dist/react-text-annotator.es7.js +3 -3
- package/dist/react-text-annotator.es9.js +2 -2
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
.r6o-canvas-highlight-layer{position:fixed;top:0;bottom:0;left:0;width:100vw;height:100vh;pointer-events:none}.r6o-canvas-highlight-layer.bg{mix-blend-mode:multiply;z-index:1}.r6o-annotatable .r6o-span-highlight-layer{
|
|
1
|
+
.r6o-canvas-highlight-layer{position:fixed;top:0;bottom:0;left:0;width:100vw;height:100vh;pointer-events:none}.r6o-canvas-highlight-layer.bg{mix-blend-mode:multiply;z-index:1}.r6o-annotatable .r6o-span-highlight-layer{position:absolute;top:0;left:0;width:100%;height:100%;mix-blend-mode:multiply;pointer-events:none;z-index:1}.r6o-annotatable .r6o-span-highlight-layer.hidden{display:none}.r6o-annotatable .r6o-span-highlight-layer .r6o-annotation{border-style:solid;border-width:0;box-sizing:content-box;display:block;position:absolute}.r6o-annotation{box-sizing:content-box}.r6o-presence-layer{left:0;position:fixed;top:0;bottom:0;width:100vw;pointer-events:none}html,body{overscroll-behavior-y:none}.r6o-annotatable{position:relative;-webkit-tap-highlight-color:transparent}.r6o-annotatable.no-focus-outline{outline:none}.hovered *{cursor:pointer}*::selection,::selection{background:#0080ff2e}::-moz-selection{background:#0080ff2e}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { offset as offset$1, shift as shift$1, flip as flip$1, inline as inline$1, computePosition as computePosition$1 } from "./react-text-annotator.es25.js";
|
|
2
2
|
import { createCoords, rectToClientRect, round, floor, max, min } from "./react-text-annotator.es24.js";
|
|
3
|
-
import { getOverflowAncestors, isElement, getWindow, getComputedStyle, getDocumentElement, isHTMLElement, isWebKit, isTopLayer, getNodeName, isOverflowElement, getNodeScroll, getParentNode, isLastTraversableNode, isTableElement, isContainingBlock, getContainingBlock } from "./react-text-annotator.
|
|
3
|
+
import { getOverflowAncestors, isElement, getWindow, getComputedStyle, getDocumentElement, isHTMLElement, isWebKit, isTopLayer, getNodeName, isOverflowElement, getNodeScroll, getParentNode, isLastTraversableNode, isTableElement, isContainingBlock, getContainingBlock } from "./react-text-annotator.es14.js";
|
|
4
4
|
function getCssDimensions(element) {
|
|
5
5
|
const css = getComputedStyle(element);
|
|
6
6
|
let width = parseFloat(css.width) || 0;
|
|
@@ -1,5 +1,54 @@
|
|
|
1
|
-
|
|
1
|
+
import { isShadowRoot } from "./react-text-annotator.es14.js";
|
|
2
|
+
function contains(parent, child) {
|
|
3
|
+
if (!parent || !child) {
|
|
4
|
+
return false;
|
|
5
|
+
}
|
|
6
|
+
const rootNode = child.getRootNode == null ? void 0 : child.getRootNode();
|
|
7
|
+
if (parent.contains(child)) {
|
|
8
|
+
return true;
|
|
9
|
+
}
|
|
10
|
+
if (rootNode && isShadowRoot(rootNode)) {
|
|
11
|
+
let next = child;
|
|
12
|
+
while (next) {
|
|
13
|
+
if (parent === next) {
|
|
14
|
+
return true;
|
|
15
|
+
}
|
|
16
|
+
next = next.parentNode || next.host;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
return false;
|
|
20
|
+
}
|
|
21
|
+
function isReactEvent(event) {
|
|
22
|
+
return "nativeEvent" in event;
|
|
23
|
+
}
|
|
24
|
+
function isRootElement(element) {
|
|
25
|
+
return element.matches("html,body");
|
|
26
|
+
}
|
|
27
|
+
function getDocument(node) {
|
|
28
|
+
return (node == null ? void 0 : node.ownerDocument) || document;
|
|
29
|
+
}
|
|
30
|
+
function isEventTargetWithin(event, node) {
|
|
31
|
+
if (node == null) {
|
|
32
|
+
return false;
|
|
33
|
+
}
|
|
34
|
+
if ("composedPath" in event) {
|
|
35
|
+
return event.composedPath().includes(node);
|
|
36
|
+
}
|
|
37
|
+
const e = event;
|
|
38
|
+
return e.target != null && node.contains(e.target);
|
|
39
|
+
}
|
|
40
|
+
function getTarget(event) {
|
|
41
|
+
if ("composedPath" in event) {
|
|
42
|
+
return event.composedPath()[0];
|
|
43
|
+
}
|
|
44
|
+
return event.target;
|
|
45
|
+
}
|
|
2
46
|
export {
|
|
3
|
-
|
|
47
|
+
contains,
|
|
48
|
+
getDocument,
|
|
49
|
+
getTarget,
|
|
50
|
+
isEventTargetWithin,
|
|
51
|
+
isReactEvent,
|
|
52
|
+
isRootElement
|
|
4
53
|
};
|
|
5
54
|
//# sourceMappingURL=react-text-annotator.es13.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react-text-annotator.es13.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
1
|
+
{"version":3,"file":"react-text-annotator.es13.js","sources":["../../../node_modules/@floating-ui/react/dist/floating-ui.react.utils.mjs"],"sourcesContent":["import { isShadowRoot, isHTMLElement } from '@floating-ui/utils/dom';\n\nfunction activeElement(doc) {\n let activeElement = doc.activeElement;\n while (((_activeElement = activeElement) == null || (_activeElement = _activeElement.shadowRoot) == null ? void 0 : _activeElement.activeElement) != null) {\n var _activeElement;\n activeElement = activeElement.shadowRoot.activeElement;\n }\n return activeElement;\n}\nfunction contains(parent, child) {\n if (!parent || !child) {\n return false;\n }\n const rootNode = child.getRootNode == null ? void 0 : child.getRootNode();\n\n // First, attempt with faster native method\n if (parent.contains(child)) {\n return true;\n }\n\n // then fallback to custom implementation with Shadow DOM support\n if (rootNode && isShadowRoot(rootNode)) {\n let next = child;\n while (next) {\n if (parent === next) {\n return true;\n }\n // @ts-ignore\n next = next.parentNode || next.host;\n }\n }\n\n // Give up, the result is false\n return false;\n}\n// Avoid Chrome DevTools blue warning.\nfunction getPlatform() {\n const uaData = navigator.userAgentData;\n if (uaData != null && uaData.platform) {\n return uaData.platform;\n }\n return navigator.platform;\n}\nfunction getUserAgent() {\n const uaData = navigator.userAgentData;\n if (uaData && Array.isArray(uaData.brands)) {\n return uaData.brands.map(_ref => {\n let {\n brand,\n version\n } = _ref;\n return brand + \"/\" + version;\n }).join(' ');\n }\n return navigator.userAgent;\n}\n\n// License: https://github.com/adobe/react-spectrum/blob/b35d5c02fe900badccd0cf1a8f23bb593419f238/packages/@react-aria/utils/src/isVirtualEvent.ts\nfunction isVirtualClick(event) {\n // FIXME: Firefox is now emitting a deprecation warning for `mozInputSource`.\n // Try to find a workaround for this. `react-aria` source still has the check.\n if (event.mozInputSource === 0 && event.isTrusted) {\n return true;\n }\n if (isAndroid() && event.pointerType) {\n return event.type === 'click' && event.buttons === 1;\n }\n return event.detail === 0 && !event.pointerType;\n}\nfunction isVirtualPointerEvent(event) {\n if (isJSDOM()) return false;\n return !isAndroid() && event.width === 0 && event.height === 0 || isAndroid() && event.width === 1 && event.height === 1 && event.pressure === 0 && event.detail === 0 && event.pointerType === 'mouse' ||\n // iOS VoiceOver returns 0.333• for width/height.\n event.width < 1 && event.height < 1 && event.pressure === 0 && event.detail === 0 && event.pointerType === 'touch';\n}\nfunction isSafari() {\n // Chrome DevTools does not complain about navigator.vendor\n return /apple/i.test(navigator.vendor);\n}\nfunction isAndroid() {\n const re = /android/i;\n return re.test(getPlatform()) || re.test(getUserAgent());\n}\nfunction isMac() {\n return getPlatform().toLowerCase().startsWith('mac') && !navigator.maxTouchPoints;\n}\nfunction isJSDOM() {\n return getUserAgent().includes('jsdom/');\n}\nfunction isMouseLikePointerType(pointerType, strict) {\n // On some Linux machines with Chromium, mouse inputs return a `pointerType`\n // of \"pen\": https://github.com/floating-ui/floating-ui/issues/2015\n const values = ['mouse', 'pen'];\n if (!strict) {\n values.push('', undefined);\n }\n return values.includes(pointerType);\n}\nfunction isReactEvent(event) {\n return 'nativeEvent' in event;\n}\nfunction isRootElement(element) {\n return element.matches('html,body');\n}\nfunction getDocument(node) {\n return (node == null ? void 0 : node.ownerDocument) || document;\n}\nfunction isEventTargetWithin(event, node) {\n if (node == null) {\n return false;\n }\n if ('composedPath' in event) {\n return event.composedPath().includes(node);\n }\n\n // TS thinks `event` is of type never as it assumes all browsers support composedPath, but browsers without shadow dom don't\n const e = event;\n return e.target != null && node.contains(e.target);\n}\nfunction getTarget(event) {\n if ('composedPath' in event) {\n return event.composedPath()[0];\n }\n\n // TS thinks `event` is of type never as it assumes all browsers support\n // `composedPath()`, but browsers without shadow DOM don't.\n return event.target;\n}\nconst TYPEABLE_SELECTOR = \"input:not([type='hidden']):not([disabled]),\" + \"[contenteditable]:not([contenteditable='false']),textarea:not([disabled])\";\nfunction isTypeableElement(element) {\n return isHTMLElement(element) && element.matches(TYPEABLE_SELECTOR);\n}\nfunction stopEvent(event) {\n event.preventDefault();\n event.stopPropagation();\n}\nfunction isTypeableCombobox(element) {\n if (!element) return false;\n return element.getAttribute('role') === 'combobox' && isTypeableElement(element);\n}\n\nexport { TYPEABLE_SELECTOR, activeElement, contains, getDocument, getPlatform, getTarget, getUserAgent, isAndroid, isEventTargetWithin, isJSDOM, isMac, isMouseLikePointerType, isReactEvent, isRootElement, isSafari, isTypeableCombobox, isTypeableElement, isVirtualClick, isVirtualPointerEvent, stopEvent };\n"],"names":[],"mappings":";AAUA,SAAS,SAAS,QAAQ,OAAO;AAC/B,MAAI,CAAC,UAAU,CAAC,OAAO;AACrB,WAAO;AAAA,EACR;AACD,QAAM,WAAW,MAAM,eAAe,OAAO,SAAS,MAAM;AAG5D,MAAI,OAAO,SAAS,KAAK,GAAG;AAC1B,WAAO;AAAA,EACR;AAGD,MAAI,YAAY,aAAa,QAAQ,GAAG;AACtC,QAAI,OAAO;AACX,WAAO,MAAM;AACX,UAAI,WAAW,MAAM;AACnB,eAAO;AAAA,MACR;AAED,aAAO,KAAK,cAAc,KAAK;AAAA,IAChC;AAAA,EACF;AAGD,SAAO;AACT;AAgEA,SAAS,aAAa,OAAO;AAC3B,SAAO,iBAAiB;AAC1B;AACA,SAAS,cAAc,SAAS;AAC9B,SAAO,QAAQ,QAAQ,WAAW;AACpC;AACA,SAAS,YAAY,MAAM;AACzB,UAAQ,QAAQ,OAAO,SAAS,KAAK,kBAAkB;AACzD;AACA,SAAS,oBAAoB,OAAO,MAAM;AACxC,MAAI,QAAQ,MAAM;AAChB,WAAO;AAAA,EACR;AACD,MAAI,kBAAkB,OAAO;AAC3B,WAAO,MAAM,aAAY,EAAG,SAAS,IAAI;AAAA,EAC1C;AAGD,QAAM,IAAI;AACV,SAAO,EAAE,UAAU,QAAQ,KAAK,SAAS,EAAE,MAAM;AACnD;AACA,SAAS,UAAU,OAAO;AACxB,MAAI,kBAAkB,OAAO;AAC3B,WAAO,MAAM,eAAe,CAAC;AAAA,EAC9B;AAID,SAAO,MAAM;AACf;","x_google_ignoreList":[0]}
|
|
@@ -1,34 +1,150 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
var
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
1
|
+
function getNodeName(node) {
|
|
2
|
+
if (isNode(node)) {
|
|
3
|
+
return (node.nodeName || "").toLowerCase();
|
|
4
|
+
}
|
|
5
|
+
return "#document";
|
|
6
|
+
}
|
|
7
|
+
function getWindow(node) {
|
|
8
|
+
var _node$ownerDocument;
|
|
9
|
+
return (node == null || (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
|
|
10
|
+
}
|
|
11
|
+
function getDocumentElement(node) {
|
|
12
|
+
var _ref;
|
|
13
|
+
return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;
|
|
14
|
+
}
|
|
15
|
+
function isNode(value) {
|
|
16
|
+
return value instanceof Node || value instanceof getWindow(value).Node;
|
|
17
|
+
}
|
|
18
|
+
function isElement(value) {
|
|
19
|
+
return value instanceof Element || value instanceof getWindow(value).Element;
|
|
20
|
+
}
|
|
21
|
+
function isHTMLElement(value) {
|
|
22
|
+
return value instanceof HTMLElement || value instanceof getWindow(value).HTMLElement;
|
|
23
|
+
}
|
|
24
|
+
function isShadowRoot(value) {
|
|
25
|
+
if (typeof ShadowRoot === "undefined") {
|
|
26
|
+
return false;
|
|
27
|
+
}
|
|
28
|
+
return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;
|
|
29
|
+
}
|
|
30
|
+
function isOverflowElement(element) {
|
|
31
|
+
const {
|
|
32
|
+
overflow,
|
|
33
|
+
overflowX,
|
|
34
|
+
overflowY,
|
|
35
|
+
display
|
|
36
|
+
} = getComputedStyle(element);
|
|
37
|
+
return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !["inline", "contents"].includes(display);
|
|
38
|
+
}
|
|
39
|
+
function isTableElement(element) {
|
|
40
|
+
return ["table", "td", "th"].includes(getNodeName(element));
|
|
41
|
+
}
|
|
42
|
+
function isTopLayer(element) {
|
|
43
|
+
return [":popover-open", ":modal"].some((selector) => {
|
|
44
|
+
try {
|
|
45
|
+
return element.matches(selector);
|
|
46
|
+
} catch (e) {
|
|
47
|
+
return false;
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
function isContainingBlock(elementOrCss) {
|
|
52
|
+
const webkit = isWebKit();
|
|
53
|
+
const css = isElement(elementOrCss) ? getComputedStyle(elementOrCss) : elementOrCss;
|
|
54
|
+
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));
|
|
55
|
+
}
|
|
56
|
+
function getContainingBlock(element) {
|
|
57
|
+
let currentNode = getParentNode(element);
|
|
58
|
+
while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {
|
|
59
|
+
if (isContainingBlock(currentNode)) {
|
|
60
|
+
return currentNode;
|
|
61
|
+
} else if (isTopLayer(currentNode)) {
|
|
62
|
+
return null;
|
|
63
|
+
}
|
|
64
|
+
currentNode = getParentNode(currentNode);
|
|
65
|
+
}
|
|
66
|
+
return null;
|
|
67
|
+
}
|
|
68
|
+
function isWebKit() {
|
|
69
|
+
if (typeof CSS === "undefined" || !CSS.supports) return false;
|
|
70
|
+
return CSS.supports("-webkit-backdrop-filter", "none");
|
|
71
|
+
}
|
|
72
|
+
function isLastTraversableNode(node) {
|
|
73
|
+
return ["html", "body", "#document"].includes(getNodeName(node));
|
|
74
|
+
}
|
|
75
|
+
function getComputedStyle(element) {
|
|
76
|
+
return getWindow(element).getComputedStyle(element);
|
|
77
|
+
}
|
|
78
|
+
function getNodeScroll(element) {
|
|
79
|
+
if (isElement(element)) {
|
|
80
|
+
return {
|
|
81
|
+
scrollLeft: element.scrollLeft,
|
|
82
|
+
scrollTop: element.scrollTop
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
return {
|
|
86
|
+
scrollLeft: element.scrollX,
|
|
87
|
+
scrollTop: element.scrollY
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
function getParentNode(node) {
|
|
91
|
+
if (getNodeName(node) === "html") {
|
|
92
|
+
return node;
|
|
93
|
+
}
|
|
94
|
+
const result = (
|
|
95
|
+
// Step into the shadow DOM of the parent of a slotted node.
|
|
96
|
+
node.assignedSlot || // DOM Element detected.
|
|
97
|
+
node.parentNode || // ShadowRoot detected.
|
|
98
|
+
isShadowRoot(node) && node.host || // Fallback.
|
|
99
|
+
getDocumentElement(node)
|
|
100
|
+
);
|
|
101
|
+
return isShadowRoot(result) ? result.host : result;
|
|
102
|
+
}
|
|
103
|
+
function getNearestOverflowAncestor(node) {
|
|
104
|
+
const parentNode = getParentNode(node);
|
|
105
|
+
if (isLastTraversableNode(parentNode)) {
|
|
106
|
+
return node.ownerDocument ? node.ownerDocument.body : node.body;
|
|
107
|
+
}
|
|
108
|
+
if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {
|
|
109
|
+
return parentNode;
|
|
110
|
+
}
|
|
111
|
+
return getNearestOverflowAncestor(parentNode);
|
|
112
|
+
}
|
|
113
|
+
function getOverflowAncestors(node, list, traverseIframes) {
|
|
114
|
+
var _node$ownerDocument2;
|
|
115
|
+
if (list === void 0) {
|
|
116
|
+
list = [];
|
|
117
|
+
}
|
|
118
|
+
if (traverseIframes === void 0) {
|
|
119
|
+
traverseIframes = true;
|
|
120
|
+
}
|
|
121
|
+
const scrollableAncestor = getNearestOverflowAncestor(node);
|
|
122
|
+
const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);
|
|
123
|
+
const win = getWindow(scrollableAncestor);
|
|
124
|
+
if (isBody) {
|
|
125
|
+
return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], win.frameElement && traverseIframes ? getOverflowAncestors(win.frameElement) : []);
|
|
126
|
+
}
|
|
127
|
+
return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));
|
|
30
128
|
}
|
|
31
129
|
export {
|
|
32
|
-
|
|
130
|
+
getComputedStyle,
|
|
131
|
+
getContainingBlock,
|
|
132
|
+
getDocumentElement,
|
|
133
|
+
getNearestOverflowAncestor,
|
|
134
|
+
getNodeName,
|
|
135
|
+
getNodeScroll,
|
|
136
|
+
getOverflowAncestors,
|
|
137
|
+
getParentNode,
|
|
138
|
+
getWindow,
|
|
139
|
+
isContainingBlock,
|
|
140
|
+
isElement,
|
|
141
|
+
isHTMLElement,
|
|
142
|
+
isLastTraversableNode,
|
|
143
|
+
isNode,
|
|
144
|
+
isOverflowElement,
|
|
145
|
+
isShadowRoot,
|
|
146
|
+
isTableElement,
|
|
147
|
+
isTopLayer,
|
|
148
|
+
isWebKit
|
|
33
149
|
};
|
|
34
150
|
//# sourceMappingURL=react-text-annotator.es14.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react-text-annotator.es14.js","sources":["../../../node_modules/
|
|
1
|
+
{"version":3,"file":"react-text-annotator.es14.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 isTopLayer(element) {\n return [':popover-open', ':modal'].some(selector => {\n try {\n return element.matches(selector);\n } catch (e) {\n return false;\n }\n });\n}\nfunction isContainingBlock(elementOrCss) {\n const webkit = isWebKit();\n const css = isElement(elementOrCss) ? getComputedStyle(elementOrCss) : elementOrCss;\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 if (isTopLayer(currentNode)) {\n return null;\n }\n currentNode = getParentNode(currentNode);\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.scrollX,\n scrollTop: element.scrollY\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, isTopLayer, isWebKit };\n"],"names":[],"mappings":"AAAA,SAAS,YAAY,MAAM;AACzB,MAAI,OAAO,IAAI,GAAG;AAChB,YAAQ,KAAK,YAAY,IAAI,YAAW;AAAA,EACzC;AAID,SAAO;AACT;AACA,SAAS,UAAU,MAAM;AACvB,MAAI;AACJ,UAAQ,QAAQ,SAAS,sBAAsB,KAAK,kBAAkB,OAAO,SAAS,oBAAoB,gBAAgB;A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