@adgytec/adgytec-web-ui-components 2.1.4 → 2.1.5

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.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useGlobalListeners","names":["$eXv8n$shadowDOM","$3ARPR$react","$lIB5W$useRef","$lIB5W$useCallback","$awe0O$useRef","$awe0O$useCallback","$awe0O$useEffect"],"sources":["../../node_modules/react-aria/dist/private/utils/focusWithoutScrolling.mjs","../../node_modules/react-aria/dist/private/utils/domHelpers.mjs","../../node_modules/react-stately/dist/private/flags/flags.mjs","../../node_modules/react-aria/dist/private/utils/shadowdom/DOMFunctions.mjs","../../node_modules/react-aria/dist/private/utils/isElementVisible.mjs","../../node_modules/react-aria/dist/private/utils/isFocusable.mjs","../../node_modules/react-aria/dist/private/utils/useLayoutEffect.mjs","../../node_modules/react-aria/dist/private/interactions/utils.mjs","../../node_modules/react-aria/dist/private/utils/platform.mjs","../../node_modules/react-aria/dist/private/utils/isVirtualEvent.mjs","../../node_modules/react-aria/dist/private/utils/openLink.mjs","../../node_modules/react-aria/dist/private/utils/useGlobalListeners.mjs"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ function $1969ac565cfec8d0$export$de79e2c695e052f3(element) {\n if ($1969ac565cfec8d0$var$supportsPreventScroll()) element.focus({\n preventScroll: true\n });\n else {\n let scrollableElements = $1969ac565cfec8d0$var$getScrollableElements(element);\n element.focus();\n $1969ac565cfec8d0$var$restoreScrollPosition(scrollableElements);\n }\n}\nlet $1969ac565cfec8d0$var$supportsPreventScrollCached = null;\nfunction $1969ac565cfec8d0$var$supportsPreventScroll() {\n if ($1969ac565cfec8d0$var$supportsPreventScrollCached == null) {\n $1969ac565cfec8d0$var$supportsPreventScrollCached = false;\n try {\n let focusElem = document.createElement('div');\n focusElem.focus({\n get preventScroll () {\n $1969ac565cfec8d0$var$supportsPreventScrollCached = true;\n return true;\n }\n });\n } catch {\n // Ignore\n }\n }\n return $1969ac565cfec8d0$var$supportsPreventScrollCached;\n}\nfunction $1969ac565cfec8d0$var$getScrollableElements(element) {\n let parent = element.parentNode;\n let scrollableElements = [];\n let rootScrollingElement = document.scrollingElement || document.documentElement;\n while(parent instanceof HTMLElement && parent !== rootScrollingElement){\n if (parent.offsetHeight < parent.scrollHeight || parent.offsetWidth < parent.scrollWidth) scrollableElements.push({\n element: parent,\n scrollTop: parent.scrollTop,\n scrollLeft: parent.scrollLeft\n });\n parent = parent.parentNode;\n }\n if (rootScrollingElement instanceof HTMLElement) scrollableElements.push({\n element: rootScrollingElement,\n scrollTop: rootScrollingElement.scrollTop,\n scrollLeft: rootScrollingElement.scrollLeft\n });\n return scrollableElements;\n}\nfunction $1969ac565cfec8d0$var$restoreScrollPosition(scrollableElements) {\n for (let { element: element, scrollTop: scrollTop, scrollLeft: scrollLeft } of scrollableElements){\n element.scrollTop = scrollTop;\n element.scrollLeft = scrollLeft;\n }\n}\n\n\nexport {$1969ac565cfec8d0$export$de79e2c695e052f3 as focusWithoutScrolling};\n//# sourceMappingURL=focusWithoutScrolling.mjs.map\n","const $d447af545b77c9f1$export$b204af158042fbac = (el)=>{\n return el?.ownerDocument ?? document;\n};\nconst $d447af545b77c9f1$export$f21a1ffae260145a = (el)=>{\n if (el && 'window' in el && el.window === el) return el;\n const doc = $d447af545b77c9f1$export$b204af158042fbac(el);\n return doc.defaultView || window;\n};\n/**\n * Type guard that checks if a value is a Node. Verifies the presence and type of the nodeType property.\n */ function $d447af545b77c9f1$var$isNode(value) {\n return value !== null && typeof value === 'object' && 'nodeType' in value && typeof value.nodeType === 'number';\n}\nfunction $d447af545b77c9f1$export$af51f0f06c0f328a(node) {\n return $d447af545b77c9f1$var$isNode(node) && node.nodeType === Node.DOCUMENT_FRAGMENT_NODE && 'host' in node;\n}\n\n\nexport {$d447af545b77c9f1$export$b204af158042fbac as getOwnerDocument, $d447af545b77c9f1$export$f21a1ffae260145a as getOwnerWindow, $d447af545b77c9f1$export$af51f0f06c0f328a as isShadowRoot};\n//# sourceMappingURL=domHelpers.mjs.map\n","/*\n * Copyright 2023 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ let $6a20a7989e6c817a$var$_tableNestedRows = false;\nlet $6a20a7989e6c817a$var$_shadowDOM = false;\nfunction $6a20a7989e6c817a$export$d9d8a0f82de49530() {\n $6a20a7989e6c817a$var$_tableNestedRows = true;\n}\nfunction $6a20a7989e6c817a$export$1b00cb14a96194e6() {\n return $6a20a7989e6c817a$var$_tableNestedRows;\n}\nfunction $6a20a7989e6c817a$export$12b151d9882e9985() {\n $6a20a7989e6c817a$var$_shadowDOM = true;\n}\nfunction $6a20a7989e6c817a$export$98658e8c59125e6a() {\n return $6a20a7989e6c817a$var$_shadowDOM;\n}\n\n\nexport {$6a20a7989e6c817a$export$d9d8a0f82de49530 as enableTableNestedRows, $6a20a7989e6c817a$export$1b00cb14a96194e6 as tableNestedRows, $6a20a7989e6c817a$export$12b151d9882e9985 as enableShadowDOM, $6a20a7989e6c817a$export$98658e8c59125e6a as shadowDOM};\n//# sourceMappingURL=flags.mjs.map\n","import {getOwnerWindow as $d447af545b77c9f1$export$f21a1ffae260145a, isShadowRoot as $d447af545b77c9f1$export$af51f0f06c0f328a} from \"../domHelpers.mjs\";\nimport {shadowDOM as $eXv8n$shadowDOM} from \"react-stately/private/flags/flags\";\n\n// Source: https://github.com/microsoft/tabster/blob/a89fc5d7e332d48f68d03b1ca6e344489d1c3898/src/Shadowdomize/DOMFunctions.ts#L16\n/* eslint-disable rsp-rules/no-non-shadow-contains, rsp-rules/safe-event-target */ \n\nfunction $23f2114a1b82827e$export$4282f70798064fe0(node, otherNode) {\n if (!(0, $eXv8n$shadowDOM)()) return otherNode && node ? node.contains(otherNode) : false;\n if (!node || !otherNode) return false;\n let currentNode = otherNode;\n while(currentNode !== null){\n if (currentNode === node) return true;\n if (currentNode.tagName === 'SLOT' && currentNode.assignedSlot) // Element is slotted\n currentNode = currentNode.assignedSlot.parentNode;\n else if ((0, $d447af545b77c9f1$export$af51f0f06c0f328a)(currentNode)) // Element is in shadow root\n currentNode = currentNode.host;\n else currentNode = currentNode.parentNode;\n }\n return false;\n}\nconst $23f2114a1b82827e$export$cd4e5573fbe2b576 = (doc = document)=>{\n if (!(0, $eXv8n$shadowDOM)()) return doc.activeElement;\n let activeElement = doc.activeElement;\n while(activeElement && 'shadowRoot' in activeElement && activeElement.shadowRoot?.activeElement)activeElement = activeElement.shadowRoot.activeElement;\n return activeElement;\n};\nfunction $23f2114a1b82827e$export$e58f029f0fbfdb29(event) {\n if ((0, $eXv8n$shadowDOM)() && event.target instanceof Element && event.target.shadowRoot) {\n if ('composedPath' in event) return event.composedPath()[0] ?? null;\n else if ('composedPath' in event.nativeEvent) return event.nativeEvent.composedPath()[0] ?? null;\n }\n return event.target;\n}\nfunction $23f2114a1b82827e$export$b4f377a2b6254582(node) {\n if (!node) return false;\n // Get the active element within the node's parent shadow root (or the document). Can return null.\n let root = node.getRootNode();\n let ownerWindow = (0, $d447af545b77c9f1$export$f21a1ffae260145a)(node);\n if (!(root instanceof ownerWindow.Document || root instanceof ownerWindow.ShadowRoot)) return false;\n let activeElement = root.activeElement;\n // Check if the active element is within this node. These nodes are within the same shadow root.\n return activeElement != null && node.contains(activeElement);\n}\n\n\nexport {$23f2114a1b82827e$export$4282f70798064fe0 as nodeContains, $23f2114a1b82827e$export$cd4e5573fbe2b576 as getActiveElement, $23f2114a1b82827e$export$e58f029f0fbfdb29 as getEventTarget, $23f2114a1b82827e$export$b4f377a2b6254582 as isFocusWithin};\n//# sourceMappingURL=DOMFunctions.mjs.map\n","import {getOwnerWindow as $d447af545b77c9f1$export$f21a1ffae260145a} from \"./domHelpers.mjs\";\n\n/*\n * Copyright 2021 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \nconst $ae77152785188400$var$supportsCheckVisibility = typeof Element !== 'undefined' && 'checkVisibility' in Element.prototype;\nfunction $ae77152785188400$var$isStyleVisible(element) {\n const windowObject = (0, $d447af545b77c9f1$export$f21a1ffae260145a)(element);\n if (!(element instanceof windowObject.HTMLElement) && !(element instanceof windowObject.SVGElement)) return false;\n let { display: display, visibility: visibility } = element.style;\n let isVisible = display !== 'none' && visibility !== 'hidden' && visibility !== 'collapse';\n if (isVisible) {\n const { getComputedStyle: getComputedStyle } = element.ownerDocument.defaultView;\n let { display: computedDisplay, visibility: computedVisibility } = getComputedStyle(element);\n isVisible = computedDisplay !== 'none' && computedVisibility !== 'hidden' && computedVisibility !== 'collapse';\n }\n return isVisible;\n}\nfunction $ae77152785188400$var$isAttributeVisible(element, childElement) {\n return !element.hasAttribute('hidden') && // Ignore HiddenSelect when tree walking.\n !element.hasAttribute('data-react-aria-prevent-focus') && (element.nodeName === 'DETAILS' && childElement && childElement.nodeName !== 'SUMMARY' ? element.hasAttribute('open') : true);\n}\nfunction $ae77152785188400$export$e989c0fffaa6b27a(element, childElement) {\n if ($ae77152785188400$var$supportsCheckVisibility) return element.checkVisibility({\n visibilityProperty: true\n }) && !element.closest('[data-react-aria-prevent-focus]');\n return element.nodeName !== '#comment' && $ae77152785188400$var$isStyleVisible(element) && $ae77152785188400$var$isAttributeVisible(element, childElement) && (!element.parentElement || $ae77152785188400$export$e989c0fffaa6b27a(element.parentElement, element));\n}\n\n\nexport {$ae77152785188400$export$e989c0fffaa6b27a as isElementVisible};\n//# sourceMappingURL=isElementVisible.mjs.map\n","import {isElementVisible as $ae77152785188400$export$e989c0fffaa6b27a} from \"./isElementVisible.mjs\";\n\n/*\n * Copyright 2025 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \nconst $3b8b240c1bf84ab9$var$focusableElements = [\n 'input:not([disabled]):not([type=hidden])',\n 'select:not([disabled])',\n 'textarea:not([disabled])',\n 'button:not([disabled])',\n 'a[href]',\n 'area[href]',\n 'summary',\n 'iframe',\n 'object',\n 'embed',\n 'audio[controls]',\n 'video[controls]',\n '[contenteditable]:not([contenteditable^=\"false\"])',\n 'permission'\n];\nconst $3b8b240c1bf84ab9$var$FOCUSABLE_ELEMENT_SELECTOR = $3b8b240c1bf84ab9$var$focusableElements.join(':not([hidden]),') + ',[tabindex]:not([disabled]):not([hidden])';\n$3b8b240c1bf84ab9$var$focusableElements.push('[tabindex]:not([tabindex=\"-1\"]):not([disabled])');\nconst $3b8b240c1bf84ab9$var$TABBABLE_ELEMENT_SELECTOR = $3b8b240c1bf84ab9$var$focusableElements.join(':not([hidden]):not([tabindex=\"-1\"]),');\nfunction $3b8b240c1bf84ab9$export$4c063cf1350e6fed(element, options) {\n return element.matches($3b8b240c1bf84ab9$var$FOCUSABLE_ELEMENT_SELECTOR) && !$3b8b240c1bf84ab9$var$isInert(element) && (options?.skipVisibilityCheck || (0, $ae77152785188400$export$e989c0fffaa6b27a)(element));\n}\nfunction $3b8b240c1bf84ab9$export$bebd5a1431fec25d(element) {\n return element.matches($3b8b240c1bf84ab9$var$TABBABLE_ELEMENT_SELECTOR) && (0, $ae77152785188400$export$e989c0fffaa6b27a)(element) && !$3b8b240c1bf84ab9$var$isInert(element);\n}\nfunction $3b8b240c1bf84ab9$var$isInert(element) {\n let node = element;\n while(node != null){\n if (node instanceof node.ownerDocument.defaultView.HTMLElement && node.inert) return true;\n node = node.parentElement;\n }\n return false;\n}\n\n\nexport {$3b8b240c1bf84ab9$export$4c063cf1350e6fed as isFocusable, $3b8b240c1bf84ab9$export$bebd5a1431fec25d as isTabbable};\n//# sourceMappingURL=isFocusable.mjs.map\n","import $3ARPR$react from \"react\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \nconst $c4867b2f328c2698$export$e5c5a5f917a5871c = typeof document !== 'undefined' ? (0, $3ARPR$react).useLayoutEffect : ()=>{};\n\n\nexport {$c4867b2f328c2698$export$e5c5a5f917a5871c as useLayoutEffect};\n//# sourceMappingURL=useLayoutEffect.mjs.map\n","import {focusWithoutScrolling as $1969ac565cfec8d0$export$de79e2c695e052f3} from \"../utils/focusWithoutScrolling.mjs\";\nimport {getActiveElement as $23f2114a1b82827e$export$cd4e5573fbe2b576, getEventTarget as $23f2114a1b82827e$export$e58f029f0fbfdb29} from \"../utils/shadowdom/DOMFunctions.mjs\";\nimport {getOwnerWindow as $d447af545b77c9f1$export$f21a1ffae260145a} from \"../utils/domHelpers.mjs\";\nimport {isFocusable as $3b8b240c1bf84ab9$export$4c063cf1350e6fed} from \"../utils/isFocusable.mjs\";\nimport {useLayoutEffect as $c4867b2f328c2698$export$e5c5a5f917a5871c} from \"../utils/useLayoutEffect.mjs\";\nimport {useRef as $lIB5W$useRef, useCallback as $lIB5W$useCallback} from \"react\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n\n\n\nfunction $a92dc41f639950be$export$525bc4921d56d4a(nativeEvent) {\n let event = nativeEvent;\n event.nativeEvent = nativeEvent;\n event.isDefaultPrevented = ()=>event.defaultPrevented;\n // cancelBubble is technically deprecated in the spec, but still supported in all browsers.\n event.isPropagationStopped = ()=>event.cancelBubble;\n event.persist = ()=>{};\n return event;\n}\nfunction $a92dc41f639950be$export$c2b7abe5d61ec696(event, target) {\n Object.defineProperty(event, 'target', {\n value: target\n });\n Object.defineProperty(event, 'currentTarget', {\n value: target\n });\n}\nfunction $a92dc41f639950be$export$715c682d09d639cc(onBlur) {\n let stateRef = (0, $lIB5W$useRef)({\n isFocused: false,\n observer: null\n });\n // Clean up MutationObserver on unmount. See below.\n (0, $c4867b2f328c2698$export$e5c5a5f917a5871c)(()=>{\n const state = stateRef.current;\n return ()=>{\n if (state.observer) {\n state.observer.disconnect();\n state.observer = null;\n }\n };\n }, []);\n // This function is called during a React onFocus event.\n return (0, $lIB5W$useCallback)((e)=>{\n // React does not fire onBlur when an element is disabled. https://github.com/facebook/react/issues/9142\n // Most browsers fire a native focusout event in this case, except for Firefox. In that case, we use a\n // MutationObserver to watch for the disabled attribute, and dispatch these events ourselves.\n // For browsers that do, focusout fires before the MutationObserver, so onBlur should not fire twice.\n let eventTarget = (0, $23f2114a1b82827e$export$e58f029f0fbfdb29)(e);\n if (eventTarget instanceof HTMLButtonElement || eventTarget instanceof HTMLInputElement || eventTarget instanceof HTMLTextAreaElement || eventTarget instanceof HTMLSelectElement) {\n stateRef.current.isFocused = true;\n let target = eventTarget;\n let onBlurHandler = (e)=>{\n stateRef.current.isFocused = false;\n if (target.disabled) {\n // For backward compatibility, dispatch a (fake) React synthetic event.\n let event = $a92dc41f639950be$export$525bc4921d56d4a(e);\n onBlur?.(event);\n }\n // We no longer need the MutationObserver once the target is blurred.\n if (stateRef.current.observer) {\n stateRef.current.observer.disconnect();\n stateRef.current.observer = null;\n }\n };\n target.addEventListener('focusout', onBlurHandler, {\n once: true\n });\n stateRef.current.observer = new MutationObserver(()=>{\n if (stateRef.current.isFocused && target.disabled) {\n stateRef.current.observer?.disconnect();\n let relatedTargetEl = target === (0, $23f2114a1b82827e$export$cd4e5573fbe2b576)() ? null : (0, $23f2114a1b82827e$export$cd4e5573fbe2b576)();\n target.dispatchEvent(new FocusEvent('blur', {\n relatedTarget: relatedTargetEl\n }));\n target.dispatchEvent(new FocusEvent('focusout', {\n bubbles: true,\n relatedTarget: relatedTargetEl\n }));\n }\n });\n stateRef.current.observer.observe(target, {\n attributes: true,\n attributeFilter: [\n 'disabled'\n ]\n });\n }\n }, [\n onBlur\n ]);\n}\nlet $a92dc41f639950be$export$fda7da73ab5d4c48 = false;\nfunction $a92dc41f639950be$export$cabe61c495ee3649(target) {\n // The browser will focus the nearest focusable ancestor of our target.\n while(target && !(0, $3b8b240c1bf84ab9$export$4c063cf1350e6fed)(target, {\n skipVisibilityCheck: true\n }))target = target.parentElement;\n let window = (0, $d447af545b77c9f1$export$f21a1ffae260145a)(target);\n let activeElement = window.document.activeElement;\n if (!activeElement || activeElement === target) return;\n $a92dc41f639950be$export$fda7da73ab5d4c48 = true;\n let isRefocusing = false;\n let onBlur = (e)=>{\n if ((0, $23f2114a1b82827e$export$e58f029f0fbfdb29)(e) === activeElement || isRefocusing) e.stopImmediatePropagation();\n };\n let onFocusOut = (e)=>{\n if ((0, $23f2114a1b82827e$export$e58f029f0fbfdb29)(e) === activeElement || isRefocusing) {\n e.stopImmediatePropagation();\n // If there was no focusable ancestor, we don't expect a focus event.\n // Re-focus the original active element here.\n if (!target && !isRefocusing) {\n isRefocusing = true;\n (0, $1969ac565cfec8d0$export$de79e2c695e052f3)(activeElement);\n cleanup();\n }\n }\n };\n let onFocus = (e)=>{\n if ((0, $23f2114a1b82827e$export$e58f029f0fbfdb29)(e) === target || isRefocusing) e.stopImmediatePropagation();\n };\n let onFocusIn = (e)=>{\n if ((0, $23f2114a1b82827e$export$e58f029f0fbfdb29)(e) === target || isRefocusing) {\n e.stopImmediatePropagation();\n if (!isRefocusing) {\n isRefocusing = true;\n (0, $1969ac565cfec8d0$export$de79e2c695e052f3)(activeElement);\n cleanup();\n }\n }\n };\n window.addEventListener('blur', onBlur, true);\n window.addEventListener('focusout', onFocusOut, true);\n window.addEventListener('focusin', onFocusIn, true);\n window.addEventListener('focus', onFocus, true);\n let cleanup = ()=>{\n cancelAnimationFrame(raf);\n window.removeEventListener('blur', onBlur, true);\n window.removeEventListener('focusout', onFocusOut, true);\n window.removeEventListener('focusin', onFocusIn, true);\n window.removeEventListener('focus', onFocus, true);\n $a92dc41f639950be$export$fda7da73ab5d4c48 = false;\n isRefocusing = false;\n };\n let raf = requestAnimationFrame(cleanup);\n return cleanup;\n}\n\n\nexport {$a92dc41f639950be$export$525bc4921d56d4a as createSyntheticEvent, $a92dc41f639950be$export$c2b7abe5d61ec696 as setEventTarget, $a92dc41f639950be$export$715c682d09d639cc as useSyntheticBlurEvent, $a92dc41f639950be$export$fda7da73ab5d4c48 as ignoreFocusEvent, $a92dc41f639950be$export$cabe61c495ee3649 as preventFocus};\n//# sourceMappingURL=utils.mjs.map\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ function $2add3ce32c6007eb$var$testUserAgent(re) {\n if (typeof window === 'undefined' || window.navigator == null) return false;\n let brands = window.navigator['userAgentData']?.brands;\n return Array.isArray(brands) && brands.some((brand)=>re.test(brand.brand)) || re.test(window.navigator.userAgent);\n}\nfunction $2add3ce32c6007eb$var$testPlatform(re) {\n return typeof window !== 'undefined' && window.navigator != null ? re.test(window.navigator['userAgentData']?.platform || window.navigator.platform) : false;\n}\nfunction $2add3ce32c6007eb$var$cached(fn) {\n if (process.env.NODE_ENV === 'test') return fn;\n let res = null;\n return ()=>{\n if (res == null) res = fn();\n return res;\n };\n}\nconst $2add3ce32c6007eb$export$9ac100e40613ea10 = $2add3ce32c6007eb$var$cached(function() {\n return $2add3ce32c6007eb$var$testPlatform(/^Mac/i);\n});\nconst $2add3ce32c6007eb$export$186c6964ca17d99 = $2add3ce32c6007eb$var$cached(function() {\n return $2add3ce32c6007eb$var$testPlatform(/^iPhone/i);\n});\nconst $2add3ce32c6007eb$export$7bef049ce92e4224 = $2add3ce32c6007eb$var$cached(function() {\n return $2add3ce32c6007eb$var$testPlatform(/^iPad/i) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.\n $2add3ce32c6007eb$export$9ac100e40613ea10() && navigator.maxTouchPoints > 1;\n});\nconst $2add3ce32c6007eb$export$fedb369cb70207f1 = $2add3ce32c6007eb$var$cached(function() {\n return $2add3ce32c6007eb$export$186c6964ca17d99() || $2add3ce32c6007eb$export$7bef049ce92e4224();\n});\nconst $2add3ce32c6007eb$export$e1865c3bedcd822b = $2add3ce32c6007eb$var$cached(function() {\n return $2add3ce32c6007eb$export$9ac100e40613ea10() || $2add3ce32c6007eb$export$fedb369cb70207f1();\n});\nconst $2add3ce32c6007eb$export$78551043582a6a98 = $2add3ce32c6007eb$var$cached(function() {\n return $2add3ce32c6007eb$var$testUserAgent(/AppleWebKit/i) && !$2add3ce32c6007eb$export$6446a186d09e379e();\n});\nconst $2add3ce32c6007eb$export$6446a186d09e379e = $2add3ce32c6007eb$var$cached(function() {\n return $2add3ce32c6007eb$var$testUserAgent(/Chrome/i);\n});\nconst $2add3ce32c6007eb$export$a11b0059900ceec8 = $2add3ce32c6007eb$var$cached(function() {\n return $2add3ce32c6007eb$var$testUserAgent(/Android/i);\n});\nconst $2add3ce32c6007eb$export$b7d78993b74f766d = $2add3ce32c6007eb$var$cached(function() {\n return $2add3ce32c6007eb$var$testUserAgent(/Firefox/i);\n});\n\n\nexport {$2add3ce32c6007eb$export$9ac100e40613ea10 as isMac, $2add3ce32c6007eb$export$186c6964ca17d99 as isIPhone, $2add3ce32c6007eb$export$7bef049ce92e4224 as isIPad, $2add3ce32c6007eb$export$fedb369cb70207f1 as isIOS, $2add3ce32c6007eb$export$e1865c3bedcd822b as isAppleDevice, $2add3ce32c6007eb$export$78551043582a6a98 as isWebKit, $2add3ce32c6007eb$export$6446a186d09e379e as isChrome, $2add3ce32c6007eb$export$a11b0059900ceec8 as isAndroid, $2add3ce32c6007eb$export$b7d78993b74f766d as isFirefox};\n//# sourceMappingURL=platform.mjs.map\n","import {isAndroid as $2add3ce32c6007eb$export$a11b0059900ceec8} from \"./platform.mjs\";\n\n/*\n * Copyright 2022 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \nfunction $b5c62b033c25b96d$export$60278871457622de(event) {\n // JAWS/NVDA with Firefox.\n if (event.pointerType === '' && event.isTrusted) return true;\n // Android TalkBack's detail value varies depending on the event listener providing the event so we have specific logic here instead\n // If pointerType is defined, event is from a click listener. For events from mousedown listener, detail === 0 is a sufficient check\n // to detect TalkBack virtual clicks.\n if ((0, $2add3ce32c6007eb$export$a11b0059900ceec8)() && event.pointerType) return event.type === 'click' && event.buttons === 1;\n return event.detail === 0 && !event.pointerType;\n}\nfunction $b5c62b033c25b96d$export$29bf1b5f2c56cf63(event) {\n // If the pointer size is zero, then we assume it's from a screen reader.\n // Android TalkBack double tap will sometimes return a event with width and height of 1\n // and pointerType === 'mouse' so we need to check for a specific combination of event attributes.\n // Cannot use \"event.pressure === 0\" as the sole check due to Safari pointer events always returning pressure === 0\n // instead of .5, see https://bugs.webkit.org/show_bug.cgi?id=206216. event.pointerType === 'mouse' is to distingush\n // Talkback double tap from Windows Firefox touch screen press\n return !(0, $2add3ce32c6007eb$export$a11b0059900ceec8)() && event.width === 0 && event.height === 0 || event.width === 1 && event.height === 1 && event.pressure === 0 && event.detail === 0 && event.pointerType === 'mouse';\n}\n\n\nexport {$b5c62b033c25b96d$export$60278871457622de as isVirtualClick, $b5c62b033c25b96d$export$29bf1b5f2c56cf63 as isVirtualPointerEvent};\n//# sourceMappingURL=isVirtualEvent.mjs.map\n","import {focusWithoutScrolling as $1969ac565cfec8d0$export$de79e2c695e052f3} from \"./focusWithoutScrolling.mjs\";\nimport {isFirefox as $2add3ce32c6007eb$export$b7d78993b74f766d, isIPad as $2add3ce32c6007eb$export$7bef049ce92e4224, isMac as $2add3ce32c6007eb$export$9ac100e40613ea10, isWebKit as $2add3ce32c6007eb$export$78551043582a6a98} from \"./platform.mjs\";\nimport $epzQQ$react, {createContext as $epzQQ$createContext, useMemo as $epzQQ$useMemo, useContext as $epzQQ$useContext} from \"react\";\n\n/*\n * Copyright 2023 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\nconst $caaf0dd3060ed57c$var$RouterContext = /*#__PURE__*/ (0, $epzQQ$createContext)({\n isNative: true,\n open: $caaf0dd3060ed57c$var$openSyntheticLink,\n useHref: (href)=>href\n});\nfunction $caaf0dd3060ed57c$export$323e4fc2fa4753fb(props) {\n let { children: children, navigate: navigate, useHref: useHref } = props;\n let ctx = (0, $epzQQ$useMemo)(()=>({\n isNative: false,\n open: (target, modifiers, href, routerOptions)=>{\n $caaf0dd3060ed57c$var$getSyntheticLink(target, (link)=>{\n if ($caaf0dd3060ed57c$export$efa8c9099e530235(link, modifiers)) navigate(href, routerOptions);\n else $caaf0dd3060ed57c$export$95185d699e05d4d7(link, modifiers);\n });\n },\n useHref: useHref || ((href)=>href)\n }), [\n navigate,\n useHref\n ]);\n return /*#__PURE__*/ (0, $epzQQ$react).createElement($caaf0dd3060ed57c$var$RouterContext.Provider, {\n value: ctx\n }, children);\n}\nfunction $caaf0dd3060ed57c$export$9a302a45f65d0572() {\n return (0, $epzQQ$useContext)($caaf0dd3060ed57c$var$RouterContext);\n}\nfunction $caaf0dd3060ed57c$export$efa8c9099e530235(link, modifiers) {\n // Use getAttribute here instead of link.target. Firefox will default link.target to \"_parent\" when inside an iframe.\n let target = link.getAttribute('target');\n return (!target || target === '_self') && link.origin === location.origin && !link.hasAttribute('download') && !modifiers.metaKey && // open in new tab (mac)\n !modifiers.ctrlKey && // open in new tab (windows)\n !modifiers.altKey && // download\n !modifiers.shiftKey;\n}\nfunction $caaf0dd3060ed57c$export$95185d699e05d4d7(target, modifiers, setOpening = true) {\n let { metaKey: metaKey, ctrlKey: ctrlKey, altKey: altKey, shiftKey: shiftKey } = modifiers;\n // Firefox does not recognize keyboard events as a user action by default, and the popup blocker\n // will prevent links with target=\"_blank\" from opening. However, it does allow the event if the\n // Command/Control key is held, which opens the link in a background tab. This seems like the best we can do.\n // See https://bugzilla.mozilla.org/show_bug.cgi?id=257870 and https://bugzilla.mozilla.org/show_bug.cgi?id=746640.\n if ((0, $2add3ce32c6007eb$export$b7d78993b74f766d)() && window.event?.type?.startsWith('key') && target.target === '_blank') {\n if ((0, $2add3ce32c6007eb$export$9ac100e40613ea10)()) metaKey = true;\n else ctrlKey = true;\n }\n // WebKit does not support firing click events with modifier keys, but does support keyboard events.\n // https://github.com/WebKit/WebKit/blob/c03d0ac6e6db178f90923a0a63080b5ca210d25f/Source/WebCore/html/HTMLAnchorElement.cpp#L184\n let event = (0, $2add3ce32c6007eb$export$78551043582a6a98)() && (0, $2add3ce32c6007eb$export$9ac100e40613ea10)() && !(0, $2add3ce32c6007eb$export$7bef049ce92e4224)() && process.env.NODE_ENV !== 'test' ? new KeyboardEvent('keydown', {\n keyIdentifier: 'Enter',\n metaKey: metaKey,\n ctrlKey: ctrlKey,\n altKey: altKey,\n shiftKey: shiftKey\n }) : new MouseEvent('click', {\n metaKey: metaKey,\n ctrlKey: ctrlKey,\n altKey: altKey,\n shiftKey: shiftKey,\n detail: 1,\n bubbles: true,\n cancelable: true\n });\n $caaf0dd3060ed57c$export$95185d699e05d4d7.isOpening = setOpening;\n (0, $1969ac565cfec8d0$export$de79e2c695e052f3)(target);\n target.dispatchEvent(event);\n $caaf0dd3060ed57c$export$95185d699e05d4d7.isOpening = false;\n}\n// https://github.com/parcel-bundler/parcel/issues/8724\n$caaf0dd3060ed57c$export$95185d699e05d4d7.isOpening = false;\nfunction $caaf0dd3060ed57c$var$getSyntheticLink(target, open) {\n if (target instanceof HTMLAnchorElement) open(target);\n else if (target.hasAttribute('data-href')) {\n let link = document.createElement('a');\n link.href = target.getAttribute('data-href');\n if (target.hasAttribute('data-target')) link.target = target.getAttribute('data-target');\n if (target.hasAttribute('data-rel')) link.rel = target.getAttribute('data-rel');\n if (target.hasAttribute('data-download')) link.download = target.getAttribute('data-download');\n if (target.hasAttribute('data-ping')) link.ping = target.getAttribute('data-ping');\n if (target.hasAttribute('data-referrer-policy')) link.referrerPolicy = target.getAttribute('data-referrer-policy');\n target.appendChild(link);\n open(link);\n target.removeChild(link);\n }\n}\nfunction $caaf0dd3060ed57c$var$openSyntheticLink(target, modifiers) {\n $caaf0dd3060ed57c$var$getSyntheticLink(target, (link)=>$caaf0dd3060ed57c$export$95185d699e05d4d7(link, modifiers));\n}\nfunction $caaf0dd3060ed57c$export$bdc77b0c0a3a85d6(props) {\n let router = $caaf0dd3060ed57c$export$9a302a45f65d0572();\n const href = router.useHref(props.href ?? '');\n return {\n 'data-href': props.href ? href : undefined,\n 'data-target': props.target,\n 'data-rel': props.rel,\n 'data-download': props.download,\n 'data-ping': props.ping,\n 'data-referrer-policy': props.referrerPolicy\n };\n}\nfunction $caaf0dd3060ed57c$export$51437d503373d223(props) {\n return {\n 'data-href': props.href,\n 'data-target': props.target,\n 'data-rel': props.rel,\n 'data-download': props.download,\n 'data-ping': props.ping,\n 'data-referrer-policy': props.referrerPolicy\n };\n}\nfunction $caaf0dd3060ed57c$export$7e924b3091a3bd18(props) {\n let router = $caaf0dd3060ed57c$export$9a302a45f65d0572();\n const href = router.useHref(props?.href ?? '');\n return {\n href: props?.href ? href : undefined,\n target: props?.target,\n rel: props?.rel,\n download: props?.download,\n ping: props?.ping,\n referrerPolicy: props?.referrerPolicy\n };\n}\nfunction $caaf0dd3060ed57c$export$13aea1a3cb5e3f1f(e, router, href, routerOptions) {\n // If a custom router is provided, prevent default and forward if this link should client navigate.\n if (!router.isNative && e.currentTarget instanceof HTMLAnchorElement && e.currentTarget.href && // If props are applied to a router Link component, it may have already prevented default.\n !e.isDefaultPrevented() && $caaf0dd3060ed57c$export$efa8c9099e530235(e.currentTarget, e) && href) {\n e.preventDefault();\n router.open(e.currentTarget, e, href, routerOptions);\n }\n}\n\n\nexport {$caaf0dd3060ed57c$export$323e4fc2fa4753fb as RouterProvider, $caaf0dd3060ed57c$export$efa8c9099e530235 as shouldClientNavigate, $caaf0dd3060ed57c$export$95185d699e05d4d7 as openLink, $caaf0dd3060ed57c$export$9a302a45f65d0572 as useRouter, $caaf0dd3060ed57c$export$bdc77b0c0a3a85d6 as useSyntheticLinkProps, $caaf0dd3060ed57c$export$51437d503373d223 as getSyntheticLinkProps, $caaf0dd3060ed57c$export$7e924b3091a3bd18 as useLinkProps, $caaf0dd3060ed57c$export$13aea1a3cb5e3f1f as handleLinkClick};\n//# sourceMappingURL=openLink.mjs.map\n","import {useRef as $awe0O$useRef, useCallback as $awe0O$useCallback, useEffect as $awe0O$useEffect} from \"react\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \nfunction $48a7d519b337145d$export$4eaf04e54aa8eed6() {\n let globalListeners = (0, $awe0O$useRef)(new Map());\n let addGlobalListener = (0, $awe0O$useCallback)((eventTarget, type, listener, options)=>{\n // Make sure we remove the listener after it is called with the `once` option.\n let fn = options?.once ? (...args)=>{\n globalListeners.current.delete(listener);\n listener(...args);\n } : listener;\n globalListeners.current.set(listener, {\n type: type,\n eventTarget: eventTarget,\n fn: fn,\n options: options\n });\n eventTarget.addEventListener(type, fn, options);\n }, []);\n let removeGlobalListener = (0, $awe0O$useCallback)((eventTarget, type, listener, options)=>{\n let fn = globalListeners.current.get(listener)?.fn || listener;\n eventTarget.removeEventListener(type, fn, options);\n globalListeners.current.delete(listener);\n }, []);\n let removeAllGlobalListeners = (0, $awe0O$useCallback)(()=>{\n globalListeners.current.forEach((value, key)=>{\n removeGlobalListener(value.eventTarget, value.type, key, value.options);\n });\n }, [\n removeGlobalListener\n ]);\n (0, $awe0O$useEffect)(()=>{\n return removeAllGlobalListeners;\n }, [\n removeAllGlobalListeners\n ]);\n return {\n addGlobalListener: addGlobalListener,\n removeGlobalListener: removeGlobalListener,\n removeAllGlobalListeners: removeAllGlobalListeners\n };\n}\n\n\nexport {$48a7d519b337145d$export$4eaf04e54aa8eed6 as useGlobalListeners};\n//# sourceMappingURL=useGlobalListeners.mjs.map\n"],"x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11],"mappings":";;AAUI,SAAS,EAA0C,GAAS;CAC5D,IAAI,EAA4C,GAAG,EAAQ,MAAM,EAC7D,eAAe,GACnB,CAAC;MACI;EACD,IAAI,IAAqB,EAA4C,CAAO;EAE5E,AADA,EAAQ,MAAM,GACd,EAA4C,CAAkB;CAClE;AACJ;AACA,IAAI,IAAoD;AACxD,SAAS,IAA8C;CACnD,IAAI,KAAqD,MAAM;EAC3D,IAAoD;EACpD,IAAI;GAEA,SADyB,cAAc,KAC/B,EAAE,MAAM,EACZ,IAAI,gBAAiB;IAEjB,OADA,IAAoD,IAC7C;GACX,EACJ,CAAC;EACL,QAAS,CAET;CACJ;CACA,OAAO;AACX;AACA,SAAS,EAA4C,GAAS;CAC1D,IAAI,IAAS,EAAQ,YACjB,IAAqB,CAAC,GACtB,IAAuB,SAAS,oBAAoB,SAAS;CACjE,OAAM,aAAkB,eAAe,MAAW,IAM9C,CALI,EAAO,eAAe,EAAO,gBAAgB,EAAO,cAAc,EAAO,gBAAa,EAAmB,KAAK;EAC9G,SAAS;EACT,WAAW,EAAO;EAClB,YAAY,EAAO;CACvB,CAAC,G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;EACR,SAAS;EACT,YAAY;CAChB,CAAC;CAID,AAHA,EAA0C,YAAY,GACtD,EAA+C,CAAM,GACrD,EAAO,cAAc,CAAK,GAC1B,EAA0C,YAAY;AAC1D;AAEA,EAA0C,YAAY;;;ACxEtD,SAAS,IAA4C;CACjD,IAAI,IAAsBC,kBAAe,IAAI,IAAI,CAAC,GAC9C,IAAwBC,GAAqB,GAAa,GAAM,GAAU,MAAU;EAEpF,IAAI,IAAK,GAAS,QAAQ,GAAG,MAAO;GAEhC,AADA,EAAgB,QAAQ,OAAO,CAAQ,GACvC,EAAS,GAAG,CAAI;EACpB,IAAI;EAOJ,AANA,EAAgB,QAAQ,IAAI,GAAU;GAC5B;GACO;GACT;GACK;EACb,CAAC,GACD,EAAY,iBAAiB,GAAM,GAAI,CAAO;CAClD,GAAG,CAAC,CAAC,GACD,IAA2BA,GAAqB,GAAa,GAAM,GAAU,MAAU;EACvF,IAAI,IAAK,EAAgB,QAAQ,IAAI,CAAQ,GAAG,MAAM;EAEtD,AADA,EAAY,oBAAoB,GAAM,GAAI,CAAO,GACjD,EAAgB,QAAQ,OAAO,CAAQ;CAC3C,GAAG,CAAC,CAAC,GACD,IAA+BA,QAAwB;EACvD,EAAgB,QAAQ,SAAS,GAAO,MAAM;GAC1C,EAAqB,EAAM,aAAa,EAAM,MAAM,GAAK,EAAM,OAAO;EAC1E,CAAC;CACL,GAAG,CACC,CACJ,CAAC;CAMD,OALA,QACW,GACR,CACC,CACJ,CAAC,GACM;EACgB;EACG;EACI;CAC9B;AACJ"}
@@ -1,4 +1,4 @@
1
- import { a as e, c as t, d as n, f as r, i, l as a, m as o, n as s, o as c, p as l, r as u, s as d, u as f } from "./usePress";
1
+ import { _ as e, a as t, c as n, d as r, g as i, h as a, i as o, l as s, m as c, n as l, p as u, s as d, t as f } from "./useGlobalListeners";
2
2
  import { useCallback as p, useEffect as m, useMemo as h, useRef as g, useState as _ } from "react";
3
3
  //#region node_modules/react-aria/dist/private/interactions/useFocusVisible.mjs
4
4
  var v = null, y = /* @__PURE__ */ new Set(), b = /* @__PURE__ */ new Map(), x = !1, S = !1, C = {
@@ -8,42 +8,42 @@ var v = null, y = /* @__PURE__ */ new Set(), b = /* @__PURE__ */ new Map(), x =
8
8
  function w(e, t) {
9
9
  for (let n of y) n(e, t);
10
10
  }
11
- function T(t) {
12
- return !(t.metaKey || !e() && t.altKey || t.ctrlKey || t.key === "Control" || t.key === "Shift" || t.key === "Meta");
11
+ function T(e) {
12
+ return !(e.metaKey || !t() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
13
13
  }
14
14
  function E(e) {
15
- x = !0, !u.isOpening && T(e) && (v = "keyboard", w("keyboard", e));
15
+ x = !0, !l.isOpening && T(e) && (v = "keyboard", w("keyboard", e));
16
16
  }
17
17
  function D(e) {
18
18
  v = "pointer", "pointerType" in e && e.pointerType, (e.type === "mousedown" || e.type === "pointerdown") && (x = !0, w("pointer", e));
19
19
  }
20
20
  function O(e) {
21
- !u.isOpening && i(e) && (x = !0, v = "virtual");
21
+ !l.isOpening && o(e) && (x = !0, v = "virtual");
22
22
  }
23
- function k(e) {
24
- let t = o(r(e)), n = l(r(e));
25
- r(e) === t || r(e) === n || a || !e.isTrusted || (!x && !S && (v = "virtual", w("virtual", e)), x = !1, S = !1);
23
+ function k(t) {
24
+ let n = e(a(t)), o = i(a(t));
25
+ a(t) === n || a(t) === o || r || !t.isTrusted || (!x && !S && (v = "virtual", w("virtual", t)), x = !1, S = !1);
26
26
  }
27
27
  function A() {
28
- a || (x = !1, S = !0);
28
+ r || (x = !1, S = !0);
29
29
  }
30
- function j(e) {
30
+ function j(t) {
31
31
  if (typeof window > "u" || typeof document > "u") return;
32
- let t = o(e), n = l(e);
33
- if (b.get(t)) return;
34
- let r = t.HTMLElement.prototype.focus;
35
- t.HTMLElement.prototype.focus = function() {
36
- x = !0, r.apply(this, arguments);
37
- }, n.addEventListener("keydown", E, !0), n.addEventListener("keyup", E, !0), n.addEventListener("click", O, !0), t.addEventListener("focus", k, !0), t.addEventListener("blur", A, !1), typeof PointerEvent < "u" ? (n.addEventListener("pointerdown", D, !0), n.addEventListener("pointermove", D, !0), n.addEventListener("pointerup", D, !0)) : process.env.NODE_ENV === "test" && (n.addEventListener("mousedown", D, !0), n.addEventListener("mousemove", D, !0), n.addEventListener("mouseup", D, !0)), t.addEventListener("beforeunload", () => {
38
- M(e);
39
- }, { once: !0 }), b.set(t, { focus: r });
40
- }
41
- var M = (e, t) => {
42
- let n = o(e), r = l(e);
43
- t && r.removeEventListener("DOMContentLoaded", t), b.has(n) && (n.HTMLElement.prototype.focus = b.get(n).focus, r.removeEventListener("keydown", E, !0), r.removeEventListener("keyup", E, !0), r.removeEventListener("click", O, !0), n.removeEventListener("focus", k, !0), n.removeEventListener("blur", A, !1), typeof PointerEvent < "u" ? (r.removeEventListener("pointerdown", D, !0), r.removeEventListener("pointermove", D, !0), r.removeEventListener("pointerup", D, !0)) : process.env.NODE_ENV === "test" && (r.removeEventListener("mousedown", D, !0), r.removeEventListener("mousemove", D, !0), r.removeEventListener("mouseup", D, !0)), b.delete(n));
32
+ let n = e(t), r = i(t);
33
+ if (b.get(n)) return;
34
+ let a = n.HTMLElement.prototype.focus;
35
+ n.HTMLElement.prototype.focus = function() {
36
+ x = !0, a.apply(this, arguments);
37
+ }, r.addEventListener("keydown", E, !0), r.addEventListener("keyup", E, !0), r.addEventListener("click", O, !0), n.addEventListener("focus", k, !0), n.addEventListener("blur", A, !1), typeof PointerEvent < "u" ? (r.addEventListener("pointerdown", D, !0), r.addEventListener("pointermove", D, !0), r.addEventListener("pointerup", D, !0)) : process.env.NODE_ENV === "test" && (r.addEventListener("mousedown", D, !0), r.addEventListener("mousemove", D, !0), r.addEventListener("mouseup", D, !0)), n.addEventListener("beforeunload", () => {
38
+ M(t);
39
+ }, { once: !0 }), b.set(n, { focus: a });
40
+ }
41
+ var M = (t, n) => {
42
+ let r = e(t), a = i(t);
43
+ n && a.removeEventListener("DOMContentLoaded", n), b.has(r) && (r.HTMLElement.prototype.focus = b.get(r).focus, a.removeEventListener("keydown", E, !0), a.removeEventListener("keyup", E, !0), a.removeEventListener("click", O, !0), r.removeEventListener("focus", k, !0), r.removeEventListener("blur", A, !1), typeof PointerEvent < "u" ? (a.removeEventListener("pointerdown", D, !0), a.removeEventListener("pointermove", D, !0), a.removeEventListener("pointerup", D, !0)) : process.env.NODE_ENV === "test" && (a.removeEventListener("mousedown", D, !0), a.removeEventListener("mousemove", D, !0), a.removeEventListener("mouseup", D, !0)), b.delete(r));
44
44
  };
45
45
  function N(e) {
46
- let t = l(e), n;
46
+ let t = i(e), n;
47
47
  return t.readyState === "loading" ? (n = () => {
48
48
  j(e);
49
49
  }, t.addEventListener("DOMContentLoaded", n)) : j(e), () => M(e, n);
@@ -63,9 +63,9 @@ var F = new Set([
63
63
  "submit",
64
64
  "reset"
65
65
  ]);
66
- function I(e, t, i) {
67
- let a = i ? r(i) : void 0, s = l(a), c = o(a), u = c === void 0 ? HTMLInputElement : c.HTMLInputElement, d = c === void 0 ? HTMLTextAreaElement : c.HTMLTextAreaElement, f = c === void 0 ? HTMLElement : c.HTMLElement, p = c === void 0 ? KeyboardEvent : c.KeyboardEvent, m = n(s);
68
- return e = e || m instanceof u && !F.has(m.type) || m instanceof d || m instanceof f && m.isContentEditable, !(e && t === "keyboard" && i instanceof p && !C[i.key]);
66
+ function I(t, n, r) {
67
+ let o = r ? a(r) : void 0, s = i(o), l = e(o), u = l === void 0 ? HTMLInputElement : l.HTMLInputElement, d = l === void 0 ? HTMLTextAreaElement : l.HTMLTextAreaElement, f = l === void 0 ? HTMLElement : l.HTMLElement, p = l === void 0 ? KeyboardEvent : l.KeyboardEvent, m = c(s);
68
+ return t = t || m instanceof u && !F.has(m.type) || m instanceof d || m instanceof f && m.isContentEditable, !(t && n === "keyboard" && r instanceof p && !C[r.key]);
69
69
  }
70
70
  function L(e, t, n) {
71
71
  j(), m(() => {
@@ -81,53 +81,53 @@ function L(e, t, n) {
81
81
  //#endregion
82
82
  //#region node_modules/react-aria/dist/private/interactions/useFocus.mjs
83
83
  function R(e) {
84
- let { isDisabled: t, onFocus: i, onBlur: a, onFocusChange: o } = e, s = p((e) => {
85
- if (r(e) === e.currentTarget) return a && a(e), o && o(!1), !0;
86
- }, [a, o]), c = d(s), u = p((e) => {
87
- let t = r(e), a = l(t), s = a ? n(a) : n();
88
- t === e.currentTarget && t === s && (i && i(e), o && o(!0), c(e));
84
+ let { isDisabled: t, onFocus: r, onBlur: o, onFocusChange: s } = e, l = p((e) => {
85
+ if (a(e) === e.currentTarget) return o && o(e), s && s(!1), !0;
86
+ }, [o, s]), u = n(l), d = p((e) => {
87
+ let t = a(e), n = i(t), o = n ? c(n) : c();
88
+ t === e.currentTarget && t === o && (r && r(e), s && s(!0), u(e));
89
89
  }, [
90
- o,
91
- i,
92
- c
90
+ s,
91
+ r,
92
+ u
93
93
  ]);
94
94
  return { focusProps: {
95
- onFocus: !t && (i || o || a) ? u : void 0,
96
- onBlur: !t && (a || o) ? s : void 0
95
+ onFocus: !t && (r || s || o) ? d : void 0,
96
+ onBlur: !t && (o || s) ? l : void 0
97
97
  } };
98
98
  }
99
99
  //#endregion
100
100
  //#region node_modules/react-aria/dist/private/interactions/useFocusWithin.mjs
101
101
  function z(e) {
102
- let { isDisabled: i, onBlurWithin: a, onFocusWithin: o, onFocusWithinChange: u } = e, m = g({ isFocusWithin: !1 }), { addGlobalListener: h, removeAllGlobalListeners: _ } = s(), v = p((e) => {
103
- f(e.currentTarget, r(e)) && m.current.isFocusWithin && !f(e.currentTarget, e.relatedTarget) && (m.current.isFocusWithin = !1, _(), a && a(e), u && u(!1));
102
+ let { isDisabled: t, onBlurWithin: r, onFocusWithin: o, onFocusWithinChange: l } = e, m = g({ isFocusWithin: !1 }), { addGlobalListener: h, removeAllGlobalListeners: _ } = f(), v = p((e) => {
103
+ u(e.currentTarget, a(e)) && m.current.isFocusWithin && !u(e.currentTarget, e.relatedTarget) && (m.current.isFocusWithin = !1, _(), r && r(e), l && l(!1));
104
104
  }, [
105
- a,
106
- u,
105
+ r,
106
+ l,
107
107
  m,
108
108
  _
109
- ]), y = d(v), b = p((e) => {
110
- if (!f(e.currentTarget, r(e))) return;
111
- let i = r(e), a = l(i), s = n(a);
112
- if (!m.current.isFocusWithin && s === i) {
113
- o && o(e), u && u(!0), m.current.isFocusWithin = !0, y(e);
114
- let n = e.currentTarget;
115
- h(a, "focus", (e) => {
116
- let i = r(e);
117
- if (m.current.isFocusWithin && !f(n, i)) {
118
- let e = new a.defaultView.FocusEvent("blur", { relatedTarget: i });
119
- t(e, n), v(c(e));
109
+ ]), y = n(v), b = p((e) => {
110
+ if (!u(e.currentTarget, a(e))) return;
111
+ let t = a(e), n = i(t), r = c(n);
112
+ if (!m.current.isFocusWithin && r === t) {
113
+ o && o(e), l && l(!0), m.current.isFocusWithin = !0, y(e);
114
+ let t = e.currentTarget;
115
+ h(n, "focus", (e) => {
116
+ let r = a(e);
117
+ if (m.current.isFocusWithin && !u(t, r)) {
118
+ let e = new n.defaultView.FocusEvent("blur", { relatedTarget: r });
119
+ s(e, t), v(d(e));
120
120
  }
121
121
  }, { capture: !0 });
122
122
  }
123
123
  }, [
124
124
  o,
125
- u,
125
+ l,
126
126
  y,
127
127
  h,
128
128
  v
129
129
  ]);
130
- return i ? { focusWithinProps: {
130
+ return t ? { focusWithinProps: {
131
131
  onFocus: void 0,
132
132
  onBlur: void 0
133
133
  } } : { focusWithinProps: {
@@ -175,67 +175,67 @@ function W(e) {
175
175
  e.pointerType === "touch" && U();
176
176
  }
177
177
  function G() {
178
- let e = l(null);
178
+ let e = i(null);
179
179
  if (e !== void 0) return H === 0 && (typeof PointerEvent < "u" ? e.addEventListener("pointerup", W) : process.env.NODE_ENV === "test" && e.addEventListener("touchend", U)), H++, () => {
180
180
  H--, !(H > 0) && (typeof PointerEvent < "u" ? e.removeEventListener("pointerup", W) : process.env.NODE_ENV === "test" && e.removeEventListener("touchend", U));
181
181
  };
182
182
  }
183
183
  function K(e) {
184
- let { onHoverStart: t, onHoverChange: n, onHoverEnd: i, isDisabled: a } = e, [o, c] = _(!1), u = g({
184
+ let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, isDisabled: o } = e, [s, c] = _(!1), l = g({
185
185
  isHovered: !1,
186
186
  ignoreEmulatedMouseEvents: !1,
187
187
  pointerType: "",
188
188
  target: null
189
189
  }).current;
190
190
  m(G, []);
191
- let { addGlobalListener: d, removeAllGlobalListeners: p } = s(), { hoverProps: v, triggerHoverEnd: y } = h(() => {
192
- let e = (e, i) => {
193
- if (u.pointerType = i, a || i === "touch" || u.isHovered || !f(e.currentTarget, r(e))) return;
194
- u.isHovered = !0;
195
- let s = e.currentTarget;
196
- u.target = s, d(l(r(e)), "pointerover", (e) => {
197
- u.isHovered && u.target && !f(u.target, r(e)) && o(e, e.pointerType);
191
+ let { addGlobalListener: d, removeAllGlobalListeners: p } = f(), { hoverProps: v, triggerHoverEnd: y } = h(() => {
192
+ let e = (e, r) => {
193
+ if (l.pointerType = r, o || r === "touch" || l.isHovered || !u(e.currentTarget, a(e))) return;
194
+ l.isHovered = !0;
195
+ let f = e.currentTarget;
196
+ l.target = f, d(i(a(e)), "pointerover", (e) => {
197
+ l.isHovered && l.target && !u(l.target, a(e)) && s(e, e.pointerType);
198
198
  }, { capture: !0 }), t && t({
199
199
  type: "hoverstart",
200
- target: s,
201
- pointerType: i
200
+ target: f,
201
+ pointerType: r
202
202
  }), n && n(!0), c(!0);
203
- }, o = (e, t) => {
204
- let r = u.target;
205
- u.pointerType = "", u.target = null, !(t === "touch" || !u.isHovered || !r) && (u.isHovered = !1, p(), i && i({
203
+ }, s = (e, t) => {
204
+ let i = l.target;
205
+ l.pointerType = "", l.target = null, !(t === "touch" || !l.isHovered || !i) && (l.isHovered = !1, p(), r && r({
206
206
  type: "hoverend",
207
- target: r,
207
+ target: i,
208
208
  pointerType: t
209
209
  }), n && n(!1), c(!1));
210
- }, s = {};
211
- return typeof PointerEvent < "u" ? (s.onPointerEnter = (t) => {
210
+ }, f = {};
211
+ return typeof PointerEvent < "u" ? (f.onPointerEnter = (t) => {
212
212
  V && t.pointerType === "mouse" || e(t, t.pointerType);
213
- }, s.onPointerLeave = (e) => {
214
- !a && f(e.currentTarget, r(e)) && o(e, e.pointerType);
215
- }) : process.env.NODE_ENV === "test" && (s.onTouchStart = () => {
216
- u.ignoreEmulatedMouseEvents = !0;
217
- }, s.onMouseEnter = (t) => {
218
- !u.ignoreEmulatedMouseEvents && !V && e(t, "mouse"), u.ignoreEmulatedMouseEvents = !1;
219
- }, s.onMouseLeave = (e) => {
220
- !a && f(e.currentTarget, r(e)) && o(e, "mouse");
213
+ }, f.onPointerLeave = (e) => {
214
+ !o && u(e.currentTarget, a(e)) && s(e, e.pointerType);
215
+ }) : process.env.NODE_ENV === "test" && (f.onTouchStart = () => {
216
+ l.ignoreEmulatedMouseEvents = !0;
217
+ }, f.onMouseEnter = (t) => {
218
+ !l.ignoreEmulatedMouseEvents && !V && e(t, "mouse"), l.ignoreEmulatedMouseEvents = !1;
219
+ }, f.onMouseLeave = (e) => {
220
+ !o && u(e.currentTarget, a(e)) && s(e, "mouse");
221
221
  }), {
222
- hoverProps: s,
223
- triggerHoverEnd: o
222
+ hoverProps: f,
223
+ triggerHoverEnd: s
224
224
  };
225
225
  }, [
226
226
  t,
227
227
  n,
228
- i,
229
- a,
230
- u,
228
+ r,
229
+ o,
230
+ l,
231
231
  d,
232
232
  p
233
233
  ]);
234
234
  return m(() => {
235
- a && y({ currentTarget: u.target }, u.pointerType);
236
- }, [a]), {
235
+ o && y({ currentTarget: l.target }, l.pointerType);
236
+ }, [o]), {
237
237
  hoverProps: v,
238
- isHovered: o
238
+ isHovered: s
239
239
  };
240
240
  }
241
241
  //#endregion